diff --git a/lib/ActionInputValidator/Validations.js b/lib/ActionInputValidator/Validations.js index 65f4b7a36..403326979 100644 --- a/lib/ActionInputValidator/Validations.js +++ b/lib/ActionInputValidator/Validations.js @@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { diff --git a/lib/DeploymentProvider/Providers/BaseWebAppDeploymentProvider.js b/lib/DeploymentProvider/Providers/BaseWebAppDeploymentProvider.js index dedca202d..d57d426c4 100644 --- a/lib/DeploymentProvider/Providers/BaseWebAppDeploymentProvider.js +++ b/lib/DeploymentProvider/Providers/BaseWebAppDeploymentProvider.js @@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { diff --git a/lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js b/lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js index dc4acd4c8..bbccc50ef 100644 --- a/lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js +++ b/lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js @@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -75,8 +65,7 @@ class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebApp break; case packageUtility_1.PackageType.folder: let tempPackagePath = utility.generateTemporaryFolderOrZipPath(`${process.env.RUNNER_TEMP}`, false); - // exluding release.zip while creating zip for deployment. - webPackage = (yield zipUtility.archiveFolderWithExcludePatterns(webPackage, "", tempPackagePath, ['release.zip'])); + webPackage = (yield zipUtility.archiveFolder(webPackage, "", tempPackagePath)); core.debug("Compressed folder into zip " + webPackage); core.debug("Initiated deployment via kudu service for webapp package : " + webPackage); this.actionParams.type = "zip"; diff --git a/lib/actionparameters.js b/lib/actionparameters.js index 06495c463..d6f49c4cc 100644 --- a/lib/actionparameters.js +++ b/lib/actionparameters.js @@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __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.ActionParameters = exports.appKindMap = exports.WebAppKind = void 0; const core = __importStar(require("@actions/core")); diff --git a/lib/main.js b/lib/main.js index 772032c8d..edaab4975 100644 --- a/lib/main.js +++ b/lib/main.js @@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( }) : 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 __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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid index 93e9edb8d..0c2d46962 100644 --- a/node_modules/.bin/uuid +++ b/node_modules/.bin/uuid @@ -10,7 +10,7 @@ case `uname` in esac if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../uuid/bin/uuid" "$@" + exec "$basedir/node" "$basedir/../uuid/dist/bin/uuid" "$@" else - exec node "$basedir/../uuid/bin/uuid" "$@" + exec node "$basedir/../uuid/dist/bin/uuid" "$@" fi diff --git a/node_modules/.bin/uuid.cmd b/node_modules/.bin/uuid.cmd index 5b5c3dc06..5663d427b 100644 --- a/node_modules/.bin/uuid.cmd +++ b/node_modules/.bin/uuid.cmd @@ -14,4 +14,4 @@ IF EXIST "%dp0%\node.exe" ( SET PATHEXT=%PATHEXT:;.JS;=;% ) -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\bin\uuid" %* +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\dist\bin\uuid" %* diff --git a/node_modules/.bin/uuid.ps1 b/node_modules/.bin/uuid.ps1 index 9e6c24b14..78046284b 100644 --- a/node_modules/.bin/uuid.ps1 +++ b/node_modules/.bin/uuid.ps1 @@ -11,17 +11,17 @@ $ret=0 if (Test-Path "$basedir/node$exe") { # Support pipeline input if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../uuid/bin/uuid" $args + $input | & "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args } else { - & "$basedir/node$exe" "$basedir/../uuid/bin/uuid" $args + & "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args } $ret=$LASTEXITCODE } else { # Support pipeline input if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../uuid/bin/uuid" $args + $input | & "node$exe" "$basedir/../uuid/dist/bin/uuid" $args } else { - & "node$exe" "$basedir/../uuid/bin/uuid" $args + & "node$exe" "$basedir/../uuid/dist/bin/uuid" $args } $ret=$LASTEXITCODE } diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 865c2aaa8..8583f8ce1 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -5,20 +5,18 @@ "requires": true, "packages": { "node_modules/@actions/core": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", - "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", - "license": "MIT", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz", + "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==", "dependencies": { - "@actions/exec": "^1.1.1", - "@actions/http-client": "^2.0.1" + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" } }, "node_modules/@actions/exec": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", - "license": "MIT", "dependencies": { "@actions/io": "^1.0.1" } @@ -27,7 +25,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@actions/github/-/github-4.0.0.tgz", "integrity": "sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==", - "license": "MIT", "dependencies": { "@actions/http-client": "^1.0.8", "@octokit/core": "^3.0.0", @@ -39,16 +36,14 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz", "integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==", - "license": "MIT", "dependencies": { "tunnel": "0.0.6" } }, "node_modules/@actions/http-client": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", - "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", - "license": "MIT", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.1.tgz", + "integrity": "sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==", "dependencies": { "tunnel": "^0.0.6", "undici": "^5.25.4" @@ -57,15 +52,13 @@ "node_modules/@actions/io": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", - "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==", - "license": "MIT" + "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==" }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -75,47 +68,43 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.0.tgz", - "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.2.tgz", + "integrity": "sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz", - "integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.0", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.27.3", - "@babel/helpers": "^7.27.6", - "@babel/parser": "^7.28.0", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.0", - "@babel/types": "^7.28.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -131,32 +120,29 @@ } }, "node_modules/@babel/generator": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.0.tgz", - "integrity": "sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", + "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.28.0", - "@babel/types": "^7.28.0", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" + "@babel/types": "^7.25.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -164,40 +150,29 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz", - "integrity": "sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.27.3" + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" }, "engines": { "node": ">=6.9.0" @@ -207,67 +182,160 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dev": true, - "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", - "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", + "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.6" + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", + "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.28.0" + "@babel/types": "^7.25.2" }, "bin": { "parser": "bin/babel-parser.js" @@ -281,7 +349,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -294,7 +361,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -307,7 +373,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -315,44 +380,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", - "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -365,7 +397,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -374,13 +405,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", - "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -394,7 +424,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -407,7 +436,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -420,7 +448,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -433,7 +460,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -446,7 +472,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -459,7 +484,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -467,28 +491,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -500,13 +507,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", - "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz", + "integrity": "sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -516,48 +522,46 @@ } }, "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.0.tgz", - "integrity": "sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==", + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.3.tgz", + "integrity": "sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.0", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.0", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.0", - "debug": "^4.3.1" + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.2", + "debug": "^4.3.1", + "globals": "^11.1.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", + "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" }, "engines": { "node": ">=6.9.0" @@ -567,15 +571,13 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -588,7 +590,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -598,7 +599,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", - "license": "MIT", "engines": { "node": ">=14" } @@ -608,7 +608,6 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -625,7 +624,6 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -635,7 +633,6 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -653,7 +650,6 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/reporters": "^29.7.0", @@ -701,7 +697,6 @@ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.7.0", "@jest/types": "^29.6.3", @@ -717,7 +712,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.7.0", "jest-snapshot": "^29.7.0" @@ -731,7 +725,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" }, @@ -744,7 +737,6 @@ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@sinonjs/fake-timers": "^10.0.2", @@ -762,7 +754,6 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -778,7 +769,6 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, - "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.7.0", @@ -822,7 +812,6 @@ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, - "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -835,7 +824,6 @@ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", @@ -850,7 +838,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", @@ -866,7 +853,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", @@ -882,7 +868,6 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.6.3", @@ -909,7 +894,6 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", @@ -923,14 +907,17 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -938,24 +925,30 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -965,7 +958,6 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3" } @@ -974,7 +966,6 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", - "license": "MIT", "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", @@ -989,7 +980,6 @@ "version": "6.0.12", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "is-plain-object": "^5.0.0", @@ -1000,7 +990,6 @@ "version": "4.8.0", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", - "license": "MIT", "dependencies": { "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", @@ -1010,14 +999,12 @@ "node_modules/@octokit/openapi-types": { "version": "12.11.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", - "license": "MIT" + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.21.3", "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.40.0" }, @@ -1029,7 +1016,6 @@ "version": "4.15.1", "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.15.1.tgz", "integrity": "sha512-4gQg4ySoW7ktKB0Mf38fHzcSffVZd6mT5deJQtpqkuPuAqzlED5AJTeW8Uk7dPRn7KaOlWcXB0MedTFJU1j4qA==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.13.0", "deprecation": "^2.3.1" @@ -1042,7 +1028,6 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", - "license": "MIT", "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.1.0", @@ -1056,7 +1041,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", @@ -1067,7 +1051,6 @@ "version": "6.41.0", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", - "license": "MIT", "dependencies": { "@octokit/openapi-types": "^12.11.0" } @@ -1076,15 +1059,13 @@ "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -1094,7 +1075,6 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.0" } @@ -1103,36 +1083,31 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -1142,11 +1117,10 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } @@ -1156,18 +1130,16 @@ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", - "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.20.7" } @@ -1177,7 +1149,6 @@ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -1186,15 +1157,13 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -1204,45 +1173,40 @@ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } }, "node_modules/@types/jest": { - "version": "29.5.14", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", - "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" } }, "node_modules/@types/node": { - "version": "20.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.8.tgz", - "integrity": "sha512-HzbgCY53T6bfu4tT7Aq3TvViJyHjLjPNaAS3HOuMc9pw97KHsUtXNX4L+wu59g1WnjsZSko35MbEqnO58rihhw==", + "version": "20.14.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.13.tgz", + "integrity": "sha512-+bHoGiZb8UiQ0+WEtmph2IWQCjIqg8MDZMAV+ppRRhUZnquF5mQkP/9vpSwJClEiSM/C7fZZExPzfU0vJTyp8w==", "dev": true, - "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~5.26.4" } }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, - "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -1251,21 +1215,18 @@ "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "license": "ISC" + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "dev": true, - "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -1274,11 +1235,10 @@ } }, "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.3.tgz", + "integrity": "sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==", "dev": true, - "license": "MIT", "dependencies": { "acorn": "^8.11.0" }, @@ -1290,7 +1250,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/actions-secret-parser/-/actions-secret-parser-1.0.4.tgz", "integrity": "sha512-gDAB8GK2Vj9CN5r97DZlmpxqrMcpAGKGWiIY3hpFhJMieLpl3K3ocVR49/Q4ANaA5a/2wNRE3Qng+x0K8mkmkQ==", - "license": "MIT", "dependencies": { "@actions/core": "^1.1.10", "jsonpath": "^1.0.2", @@ -1303,7 +1262,6 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -1318,7 +1276,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz", "integrity": "sha512-WJ70OI4jCaMy52vGa/ypFSKFb/TrYNPaQ2xco5nUwE0C5H8piume/uAZNNdXXiMQ6DbRmiE7l8oNBHu05ZKkrw==", - "license": "MIT", "dependencies": { "ansi-wrap": "0.1.0" }, @@ -1331,7 +1288,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -1341,7 +1297,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1356,7 +1311,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1366,7 +1320,6 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1380,7 +1333,6 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1389,7 +1341,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/archiver/-/archiver-2.1.1.tgz", "integrity": "sha512-01psM0DMD3YItvhnAXZODfsViaeDidrJwfne3lsoVrbyYa/xFQwTbVjY+2WlEBm7qH1fCsyxAA1SgNr/XenTlQ==", - "license": "MIT", "dependencies": { "archiver-utils": "^1.3.0", "async": "^2.0.0", @@ -1408,7 +1359,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-1.3.0.tgz", "integrity": "sha512-h+hTREBXcW5e1L9RihGXdH4PHHdGipG/jE2sMZrqIH6BmZAxeGU5IWjVsKhokdCSWX7km6Kkh406zZNEElHFPQ==", - "license": "MIT", "dependencies": { "glob": "^7.0.0", "graceful-fs": "^4.1.0", @@ -1425,15 +1375,13 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } @@ -1442,7 +1390,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1451,7 +1398,6 @@ "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "license": "MIT", "dependencies": { "lodash": "^4.17.14" } @@ -1460,7 +1406,6 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/async-array-reduce/-/async-array-reduce-0.2.1.tgz", "integrity": "sha512-/ywTADOcaEnwiAnOEi0UB/rAcIq5bTFfCV9euv3jLYFUMmy6KvKccTQUnLlp8Ensmfj43wHSmbGiPqjsZ6RhNA==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1474,14 +1419,12 @@ "type": "individual", "url": "https://paulmillr.com/funding/" } - ], - "license": "MIT" + ] }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -1493,10 +1436,9 @@ } }, "node_modules/azure-actions-appservice-rest": { - "version": "1.3.29", - "resolved": "https://registry.npmjs.org/azure-actions-appservice-rest/-/azure-actions-appservice-rest-1.3.29.tgz", - "integrity": "sha512-UWEyHoBi1ve3hFLeLpfCHKUKR8AIUSABD8F5YK9Zc8nHqFshKNsBIEgE55MvMmmAkV3cynhNJi8/Ns1Cr/ktXw==", - "license": "MIT", + "version": "1.3.16", + "resolved": "https://registry.npmjs.org/azure-actions-appservice-rest/-/azure-actions-appservice-rest-1.3.16.tgz", + "integrity": "sha512-mJkAIumv4mXZzXHprsCeVD8wme2qfATVCsSfuVshBqyt1unJaNIugsEGChcSW98g5aZ87bpB0wj+RkzF8FpQ6g==", "dependencies": { "@actions/core": "^1.1.10", "@actions/io": "^1.0.1", @@ -1512,16 +1454,23 @@ "node_modules/azure-actions-appservice-rest/node_modules/@types/node": { "version": "14.18.63", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==", - "license": "MIT" + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + }, + "node_modules/azure-actions-appservice-rest/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } }, "node_modules/azure-actions-utility": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/azure-actions-utility/-/azure-actions-utility-1.0.5.tgz", - "integrity": "sha512-xnJEg/k5G/Dzrqt8e+lXYuKLJppxxTAxnnoxU+LBS6ajgxwXel1Z+QQf38cbNsfalpWnKGNB1K/TBgUHkyWLoQ==", - "license": "MIT", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/azure-actions-utility/-/azure-actions-utility-1.0.3.tgz", + "integrity": "sha512-lLaarW71FBhSEvuN+UEQ4vidLDfcCl67wW6Zu95g+/rgeohRF/5vuVsABLtGmcw7eIjxMoDDfR3SSbBf5rvBKg==", "dependencies": { - "@actions/core": "^1.1.10", + "@actions/core": "^1.1.1", "@actions/io": "^1.0.1", "archiver": "^2.1.1", "decompress-zip": "^0.3.0", @@ -1536,7 +1485,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/azure-actions-webclient/-/azure-actions-webclient-1.1.1.tgz", "integrity": "sha512-g5/3fGp/8OHhfDixkZMnZ/ZNdh+WxXVgYBJx+jdRbRxRz7o1wxuRh5Rw3qJ8Zmz3H8NjAVVrVGQ9U8pgcZfGCQ==", - "license": "MIT", "dependencies": { "@actions/core": "^1.1.3", "@actions/exec": "^1.0.1", @@ -1553,7 +1501,6 @@ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", @@ -1575,7 +1522,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1592,7 +1538,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -1609,7 +1554,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -1621,27 +1565,23 @@ } }, "node_modules/babel-preset-current-node-syntax": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", - "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" + "@babel/plugin-syntax-top-level-await": "^7.8.3" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -1652,7 +1592,6 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, - "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" @@ -1667,8 +1606,7 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", @@ -1687,20 +1625,17 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", - "license": "Apache-2.0" + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" }, "node_modules/binary": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", "integrity": "sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==", - "license": "MIT", "dependencies": { "buffers": "~0.1.1", "chainsaw": "~0.1.0" @@ -1713,7 +1648,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "license": "MIT", "dependencies": { "readable-stream": "^2.3.5", "safe-buffer": "^5.1.1" @@ -1722,14 +1656,12 @@ "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "license": "MIT" + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "license": "MIT", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1740,7 +1672,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -1749,9 +1680,9 @@ } }, "node_modules/browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", + "version": "4.23.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz", + "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==", "dev": true, "funding": [ { @@ -1767,12 +1698,11 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" + "caniuse-lite": "^1.0.30001640", + "electron-to-chromium": "^1.4.820", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.1.0" }, "bin": { "browserslist": "cli.js" @@ -1786,7 +1716,6 @@ "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, - "license": "MIT", "dependencies": { "fast-json-stable-stringify": "2.x" }, @@ -1799,7 +1728,6 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } @@ -1822,7 +1750,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -1832,7 +1759,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "license": "MIT", "dependencies": { "buffer-alloc-unsafe": "^1.1.0", "buffer-fill": "^1.0.0" @@ -1841,14 +1767,12 @@ "node_modules/buffer-alloc-unsafe": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "license": "MIT" + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" }, "node_modules/buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", "engines": { "node": "*" } @@ -1856,15 +1780,13 @@ "node_modules/buffer-fill": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "license": "MIT" + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/buffers": { "version": "0.1.1", @@ -1875,44 +1797,15 @@ } }, "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "license": "MIT", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dependencies": { - "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -1926,7 +1819,6 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -1936,15 +1828,14 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", + "version": "1.0.30001646", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001646.tgz", + "integrity": "sha512-dRg00gudiBDDTmUhClSdv3hqRfpbOnU28IpI1T6PBTLWa+kOj0681C8uML3PifYfREuBrVjDGhL3adYpBT6spw==", "dev": true, "funding": [ { @@ -1959,14 +1850,12 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/chainsaw": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", "integrity": "sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==", - "license": "MIT/X11", "dependencies": { "traverse": ">=0.3.0 <0.4" }, @@ -1979,7 +1868,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1996,7 +1884,6 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -2012,24 +1899,21 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", - "dev": true, - "license": "MIT" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -2043,7 +1927,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "license": "MIT", "engines": { "node": ">=0.8" } @@ -2051,15 +1934,13 @@ "node_modules/clone-stats": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==", - "license": "MIT" + "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==" }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, - "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -2069,15 +1950,13 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -2089,14 +1968,12 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/compress-commons": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-1.2.2.tgz", "integrity": "sha512-SLTU8iWWmcORfUN+4351Z2aZXKJe1tr0jSilPMCZlLPzpdTXnkBW1LevW/MfuANBKJek8Xu9ggqrtVmQrChLtg==", - "license": "MIT", "dependencies": { "buffer-crc32": "^0.2.1", "crc32-stream": "^2.0.0", @@ -2110,21 +1987,18 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/copy": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/copy/-/copy-0.3.2.tgz", "integrity": "sha512-drDFuUZctIuvSuvL9dOF/v5GxrwB1Q8eMIRlYONC0lSMEq+L2xabXP3jme8cQFdDO8cgP8JsuYhQg7JtTwezmg==", - "license": "MIT", "dependencies": { "async-each": "^1.0.0", "bluebird": "^3.4.1", @@ -2152,14 +2026,12 @@ "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/crc": { "version": "3.8.0", "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", - "license": "MIT", "dependencies": { "buffer": "^5.1.0" } @@ -2168,7 +2040,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-2.0.0.tgz", "integrity": "sha512-UjZSqFCbn+jZUHJIh6Y3vMF7EJLcJWNm4tKDf2peJRwlZKHvkkvOMTvAei6zjU9gO1xONVr3rRFw0gixm2eUng==", - "license": "MIT", "dependencies": { "crc": "^3.4.4", "readable-stream": "^2.0.0" @@ -2182,7 +2053,6 @@ "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -2203,15 +2073,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -2222,13 +2090,12 @@ } }, "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", "dev": true, - "license": "MIT", "dependencies": { - "ms": "^2.1.3" + "ms": "2.1.2" }, "engines": { "node": ">=6.0" @@ -2243,7 +2110,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/decompress-zip/-/decompress-zip-0.3.3.tgz", "integrity": "sha512-/fy1L4s+4jujqj3kNptWjilFw3E6De8U6XUFvqmh4npN3Vsypm3oT2V0bXcmbBWS+5j5tr4okYaFrOmyZkszEg==", - "license": "MIT", "dependencies": { "binary": "^0.3.0", "graceful-fs": "^4.1.3", @@ -2263,14 +2129,12 @@ "node_modules/decompress-zip/node_modules/isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "license": "MIT" + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" }, "node_modules/decompress-zip/node_modules/readable-stream": { "version": "1.1.14", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.1", @@ -2281,15 +2145,13 @@ "node_modules/decompress-zip/node_modules/string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "license": "MIT" + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" }, "node_modules/dedent": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.6.0.tgz", - "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", "dev": true, - "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -2302,15 +2164,13 @@ "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==", - "license": "MIT" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2319,7 +2179,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -2336,7 +2195,6 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "license": "MIT", "dependencies": { "is-descriptor": "^0.1.0" }, @@ -2347,15 +2205,13 @@ "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "license": "ISC" + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2365,7 +2221,6 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } @@ -2375,38 +2230,21 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/electron-to-chromium": { - "version": "1.5.185", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.185.tgz", - "integrity": "sha512-dYOZfUk57hSMPePoIQ1fZWl1Fkj+OshhEVuPacNKWzC1efe56OsHY3l/jCfiAgIICOU3VgOIdoq7ahg7r7n6MQ==", - "dev": true, - "license": "ISC" + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", + "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", + "dev": true }, "node_modules/emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -2418,14 +2256,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dependencies": { "once": "^1.4.0" } @@ -2435,16 +2271,17 @@ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } }, "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, "engines": { "node": ">= 0.4" } @@ -2453,29 +2290,15 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, "engines": { "node": ">= 0.4" } }, "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -2485,7 +2308,6 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2494,7 +2316,6 @@ "version": "1.14.3", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "license": "BSD-2-Clause", "dependencies": { "esprima": "^4.0.1", "estraverse": "^4.2.0", @@ -2516,7 +2337,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -2529,7 +2349,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -2538,7 +2357,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -2548,7 +2366,6 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -2580,7 +2397,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", "integrity": "sha512-rtmc+cjLZqnu9dSYosX9EWmSJhTwpACgJQTfj4hgg2JjOD/6SIQalZrt4a3aQeh++oNxkazcaxrhPUj6+g5G/Q==", - "license": "MIT", "dependencies": { "os-homedir": "^1.0.1" }, @@ -2593,7 +2409,6 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", "jest-get-type": "^29.6.3", @@ -2609,7 +2424,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "license": "MIT", "dependencies": { "is-extendable": "^0.1.0" }, @@ -2621,21 +2435,18 @@ "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, - "license": "MIT" + "dev": true }, "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==", - "license": "MIT" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -2644,7 +2455,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/file-contents/-/file-contents-0.3.2.tgz", "integrity": "sha512-7xaJjA+9eTve2l1FzoagBX26tICgaTwLPAY9vi/FDutEUKNeBR4YYvvQ8bgxuYJb09edaAQoEGIa6Juim88dpQ==", - "license": "MIT", "dependencies": { "define-property": "^0.2.5", "extend-shallow": "^2.0.1", @@ -2667,7 +2477,6 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/file-stat/-/file-stat-0.2.3.tgz", "integrity": "sha512-wjHoKZzas90Jl1XOBfLnNGc5gl9JTm7sTceuoO4P3OdadlCz1ELrOxYmiamqLJP4S8+phD7wzW8S1oBj+8vnBQ==", - "license": "MIT", "dependencies": { "fs-exists-sync": "^0.1.0", "graceful-fs": "^4.1.4", @@ -2683,7 +2492,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2696,7 +2504,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -2706,37 +2513,27 @@ } }, "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "is-callable": "^1.1.3" } }, "node_modules/fs": { "version": "0.0.1-security", "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==", - "license": "ISC" + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, "node_modules/fs-exists-sync": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", "integrity": "sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2744,14 +2541,12 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2761,7 +2556,6 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -2771,27 +2565,20 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "engines": { "node": ">= 0.4" @@ -2805,30 +2592,15 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -2841,7 +2613,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2861,7 +2632,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", "integrity": "sha512-JDYOvfxio/t42HKdxkAYaCiBN7oYiuxykOxKxdaUW5Qn0zaYN3gRQWolrwdnf0shM9/EP0ebuuTmyoXNr1cC5w==", - "license": "ISC", "dependencies": { "is-glob": "^2.0.0" } @@ -2870,7 +2640,6 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", "integrity": "sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==", - "license": "MIT", "dependencies": { "global-prefix": "^0.1.4", "is-windows": "^0.2.0" @@ -2883,7 +2652,6 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", "integrity": "sha512-gOPiyxcD9dJGCEArAhF4Hd0BAqvAe/JzERP7tYumE4yIkmIedPUVXcJFWbV3/p/ovIIvKjkrTk+f1UVkq7vvbw==", - "license": "MIT", "dependencies": { "homedir-polyfill": "^1.0.0", "ini": "^1.3.4", @@ -2898,7 +2666,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -2906,13 +2673,21 @@ "which": "bin/which" } }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=4" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2921,15 +2696,13 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2938,7 +2711,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/has-glob/-/has-glob-0.1.1.tgz", "integrity": "sha512-WMHzb7oCwDcMDngWy0b+viLjED8zvSi5d4/YdBetADHX/rLH+noJaRTytuyN6thTxxM7lK+FloogQHHdOOR+7g==", - "license": "MIT", "dependencies": { "is-glob": "^2.0.1" }, @@ -2950,7 +2722,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -2958,11 +2729,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "engines": { "node": ">= 0.4" }, @@ -2974,7 +2755,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -2989,7 +2769,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -3001,7 +2780,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "license": "MIT", "dependencies": { "parse-passwd": "^1.0.0" }, @@ -3013,15 +2791,13 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -3043,15 +2819,13 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "BSD-3-Clause" + ] }, "node_modules/import-local": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, - "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -3071,7 +2845,6 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -3081,7 +2854,6 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -3090,20 +2862,17 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, "node_modules/is-absolute": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", "integrity": "sha512-7Kr05z5LkcOpoMvxHN1PC11WbPabdNFmMYYo0eZvWu3BfVS0T03yoqYDczoCBx17xqk2x1XAZrcKiFVL88jxlQ==", - "license": "MIT", "dependencies": { "is-relative": "^0.2.1", "is-windows": "^0.2.0" @@ -3116,7 +2885,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", - "license": "MIT", "dependencies": { "hasown": "^2.0.0" }, @@ -3125,13 +2893,12 @@ } }, "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "license": "MIT", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -3144,20 +2911,17 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3166,11 +2930,10 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz", + "integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==", "dev": true, - "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -3185,7 +2948,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", - "license": "MIT", "dependencies": { "hasown": "^2.0.0" }, @@ -3197,7 +2959,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "license": "MIT", "dependencies": { "is-accessor-descriptor": "^1.0.1", "is-data-descriptor": "^1.0.1" @@ -3210,7 +2971,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3219,7 +2979,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", "integrity": "sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3229,7 +2988,6 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -3239,21 +2997,16 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/is-generator-function": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", - "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", - "license": "MIT", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", "dependencies": { - "call-bound": "^1.0.3", - "get-proto": "^1.0.0", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -3266,7 +3019,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", "integrity": "sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg==", - "license": "MIT", "dependencies": { "is-extglob": "^1.0.0" }, @@ -3279,7 +3031,6 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -3288,34 +3039,14 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-relative": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", "integrity": "sha512-9AMzjRmLqcue629b4ezEVSK6kJsYJlUIhMcygmYORUgwUNJiavHcC3HkaGx0XYpyVKQSOqFbMEZmW42cY87sYw==", - "license": "MIT", "dependencies": { "is-unc-path": "^0.1.1" }, @@ -3328,7 +3059,6 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -3337,12 +3067,11 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", + "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", "dependencies": { - "which-typed-array": "^1.1.16" + "which-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -3355,7 +3084,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", "integrity": "sha512-HhLc5VDMH4pu3oMtIuunz/DFQUIoR561kMME3U3Afhj8b7vH085vkIkemrz1kLXCEIuoMAmO3yVmafWdSbGW8w==", - "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.0" }, @@ -3366,14 +3094,12 @@ "node_modules/is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", - "license": "MIT" + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" }, "node_modules/is-valid-glob": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", "integrity": "sha512-CvG8EtJZ8FyzVOGPzrDorzyN65W1Ld8BVnqshRCah6pFIsprGx3dKgFtjLn/Vw9kGqR4OlR84U7yhT9ZVTyWIQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3382,7 +3108,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", "integrity": "sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3390,20 +3115,17 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isobject": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "license": "MIT", "dependencies": { "isarray": "1.0.0" }, @@ -3416,7 +3138,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=8" } @@ -3426,7 +3147,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -3439,11 +3159,10 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3456,7 +3175,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -3471,7 +3189,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -3486,7 +3203,6 @@ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -3500,7 +3216,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -3527,7 +3242,6 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, - "license": "MIT", "dependencies": { "execa": "^5.0.0", "jest-util": "^29.7.0", @@ -3542,7 +3256,6 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -3574,7 +3287,6 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/test-result": "^29.7.0", @@ -3608,7 +3320,6 @@ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.7.0", @@ -3654,7 +3365,6 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.6.3", @@ -3670,7 +3380,6 @@ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, - "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -3683,7 +3392,6 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -3700,7 +3408,6 @@ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -3718,7 +3425,6 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -3728,7 +3434,6 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", @@ -3754,7 +3459,6 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", "pretty-format": "^29.7.0" @@ -3768,7 +3472,6 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.7.0", @@ -3784,7 +3487,6 @@ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^29.6.3", @@ -3805,7 +3507,6 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -3820,7 +3521,6 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -3838,7 +3538,6 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -3848,7 +3547,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -3869,7 +3567,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, - "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", "jest-snapshot": "^29.7.0" @@ -3883,7 +3580,6 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/environment": "^29.7.0", @@ -3916,7 +3612,6 @@ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -3950,7 +3645,6 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -3978,11 +3672,10 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3995,7 +3688,6 @@ "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -4013,7 +3705,6 @@ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "camelcase": "^6.2.0", @@ -4031,7 +3722,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -4044,7 +3734,6 @@ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "@jest/types": "^29.6.3", @@ -4064,7 +3753,6 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", @@ -4080,7 +3768,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4095,15 +3782,13 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -4113,31 +3798,28 @@ } }, "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=6" + "node": ">=4" } }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -4149,7 +3831,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", "integrity": "sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w==", - "license": "MIT", "dependencies": { "esprima": "1.2.2", "static-eval": "2.0.2", @@ -4172,7 +3853,6 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "license": "MIT", "dependencies": { "is-buffer": "^1.1.5" }, @@ -4185,7 +3865,6 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4194,7 +3873,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", - "license": "MIT", "dependencies": { "set-getter": "^0.1.0" }, @@ -4206,7 +3884,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "license": "MIT", "dependencies": { "readable-stream": "^2.0.5" }, @@ -4219,7 +3896,6 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4228,7 +3904,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "license": "MIT", "dependencies": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" @@ -4241,15 +3916,13 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -4260,21 +3933,18 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "license": "MIT" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/log-ok": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/log-ok/-/log-ok-0.1.1.tgz", "integrity": "sha512-cc8VrkS6C+9TFuYAwuHpshrcrGRAv7d0tUJ0GdM72ZBlKXtlgjUZF84O+OhQUdiVHoF7U/nVxwpjOdwUJ8d3Vg==", - "license": "MIT", "dependencies": { "ansi-green": "^0.1.1", "success-symbol": "^0.1.0" @@ -4288,7 +3958,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -4298,7 +3967,6 @@ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, - "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -4310,11 +3978,10 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4326,15 +3993,13 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -4343,7 +4008,6 @@ "version": "0.4.4", "resolved": "https://registry.npmjs.org/matched/-/matched-0.4.4.tgz", "integrity": "sha512-zpasnbB5vQkvb0nfcKV0zEoGgMtV7atlWR1Vk3E8tEKh6EicMseKtVV+5vc+zsZwvDlcNMKlKK/CVOEeAalYRQ==", - "license": "MIT", "dependencies": { "arr-union": "^3.1.0", "async-array-reduce": "^0.2.0", @@ -4359,28 +4023,17 @@ "node": ">= 0.12.0" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -4394,7 +4047,6 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4403,7 +4055,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -4415,7 +4066,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4424,7 +4074,6 @@ "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", "dependencies": { "minimist": "^1.2.6" }, @@ -4435,28 +4084,24 @@ "node_modules/mkpath": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/mkpath/-/mkpath-0.1.0.tgz", - "integrity": "sha512-bauHShmaxVQiEvlrAPWxSPn8spSL8gDVRl11r8vLT4r/KdnknLqtqwQbToZ2Oa8sJkExYY1z6/d+X7pNiqo4yg==", - "license": "MIT" + "integrity": "sha512-bauHShmaxVQiEvlrAPWxSPn8spSL8gDVRl11r8vLT4r/KdnknLqtqwQbToZ2Oa8sJkExYY1z6/d+X7pNiqo4yg==" }, "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "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, - "license": "MIT" + "dev": true }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -4476,21 +4121,18 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "dev": true }, "node_modules/node-stream-zip": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==", - "license": "MIT", "engines": { "node": ">=0.12.0" }, @@ -4503,7 +4145,6 @@ "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", - "license": "ISC", "dependencies": { "abbrev": "1" }, @@ -4515,7 +4156,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", - "license": "MIT", "dependencies": { "remove-trailing-separator": "^1.0.1" }, @@ -4528,7 +4168,6 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -4537,10 +4176,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", "engines": { "node": ">= 0.4" }, @@ -4552,7 +4190,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", "dependencies": { "wrappy": "1" } @@ -4562,7 +4199,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -4577,7 +4213,6 @@ "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "license": "MIT", "dependencies": { "deep-is": "~0.1.3", "fast-levenshtein": "~2.0.6", @@ -4594,7 +4229,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4604,7 +4238,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -4620,7 +4253,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -4633,7 +4265,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -4649,7 +4280,6 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4659,7 +4289,6 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -4677,7 +4306,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4686,7 +4314,6 @@ "version": "0.12.7", "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", - "license": "MIT", "dependencies": { "process": "^0.11.1", "util": "^0.10.3" @@ -4697,7 +4324,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -4706,7 +4332,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4716,7 +4341,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -4725,37 +4349,32 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/path/node_modules/inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "license": "ISC" + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" }, "node_modules/path/node_modules/util": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "license": "MIT", "dependencies": { "inherits": "2.0.3" } }, "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -4764,11 +4383,10 @@ } }, "node_modules/pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } @@ -4778,7 +4396,6 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -4787,10 +4404,9 @@ } }, "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", "engines": { "node": ">= 0.4" } @@ -4808,7 +4424,6 @@ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", @@ -4823,7 +4438,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -4835,7 +4449,6 @@ "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -4843,15 +4456,13 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "license": "MIT" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -4874,27 +4485,24 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ], - "license": "MIT" + ] }, "node_modules/q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", "deprecated": "You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.\n\n(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)", - "license": "MIT", "engines": { "node": ">=0.6.0", "teleport": ">=0.2.0" } }, "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "license": "BSD-3-Clause", + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.3.tgz", + "integrity": "sha512-AWJm14H1vVaO/iNZ4/hO+HyaTehuy9nRqVdkTqlJt0HWvBiBIEXFmb4C0DGeYo3Xes9rrEW+TxHsaigCbN5ICQ==", "dependencies": { - "side-channel": "^1.1.0" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -4908,7 +4516,6 @@ "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "license": "MIT", "engines": { "node": ">=0.4.x" } @@ -4917,14 +4524,12 @@ "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -4938,8 +4543,7 @@ "node_modules/remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", - "license": "ISC" + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==" }, "node_modules/replace-ext": { "version": "0.0.1", @@ -4954,28 +4558,23 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, - "license": "MIT", "dependencies": { - "is-core-module": "^2.16.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, - "engines": { - "node": ">= 0.4" - }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4985,7 +4584,6 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -4997,7 +4595,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", "integrity": "sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==", - "license": "MIT", "dependencies": { "expand-tilde": "^1.2.2", "global-modules": "^0.2.3" @@ -5011,17 +4608,15 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -5029,38 +4624,18 @@ "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/sax": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", - "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", - "license": "ISC" + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -5069,7 +4644,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -5086,7 +4660,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", - "license": "MIT", "dependencies": { "to-object-path": "^0.3.0" }, @@ -5099,7 +4672,6 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -5112,7 +4684,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5121,7 +4692,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", "integrity": "sha512-Ny0KN4dyT8ZSCE0frtcbAJGoM/HTArpyPkeli1/00aYfm0sbD/Gk/4x7N2DP9QKGpBsiQH7n6rpm1L79RtviEQ==", - "license": "BSD*", "bin": { "shjs": "bin/shjs" }, @@ -5130,69 +4700,14 @@ } }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", "dependencies": { - "call-bound": "^1.0.2", + "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" }, "engines": { "node": ">= 0.4" @@ -5205,22 +4720,19 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5230,7 +4742,6 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "devOptional": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -5240,7 +4751,6 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -5250,15 +4760,13 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -5270,7 +4778,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", - "license": "MIT", "dependencies": { "escodegen": "^1.8.1" } @@ -5279,7 +4786,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" } @@ -5289,7 +4795,6 @@ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -5303,7 +4808,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -5318,7 +4822,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -5331,7 +4834,6 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5340,7 +4842,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/strip-bom-buffer/-/strip-bom-buffer-0.1.1.tgz", "integrity": "sha512-dbIOX/cOLFgLH/2ofd7n78uPD3uPkXyt3P1IgaVoGiPYEdOnb7D1mawyhOTXyYWva1kCuRxJY5FkMsVKYlZRRg==", - "license": "MIT", "dependencies": { "is-buffer": "^1.1.0", "is-utf8": "^0.2.0" @@ -5353,7 +4854,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-0.1.2.tgz", "integrity": "sha512-3DgNqQFTfOwWgxn3cXsa6h/WRgFa7dVb6/7YqwfJlBpLSSQbiU1VhaBNRKmtLI59CHjc9awLp9yGJREu7AnaMQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5363,7 +4863,6 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -5373,7 +4872,6 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -5385,7 +4883,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/success-symbol/-/success-symbol-0.1.0.tgz", "integrity": "sha512-7S6uOTxPklNGxOSbDIg4KlVLBQw1UiGVyfCUYgYxrZUKRblUkmGj7r8xlfQoFudvqLv6Ap5gd76/IIFfI9JG2A==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5395,7 +4892,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5408,7 +4904,6 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5420,7 +4915,6 @@ "version": "1.6.2", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "license": "MIT", "dependencies": { "bl": "^1.0.0", "buffer-alloc": "^1.2.0", @@ -5439,7 +4933,6 @@ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -5453,7 +4946,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -5463,54 +4955,26 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/to-buffer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.1.tgz", - "integrity": "sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ==", - "license": "MIT", - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/to-buffer/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "license": "MIT" - }, - "node_modules/to-buffer/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/to-file": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/to-file/-/to-file-0.2.0.tgz", "integrity": "sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==", - "license": "MIT", "dependencies": { "define-property": "^0.2.5", "extend-shallow": "^2.0.1", @@ -5529,7 +4993,6 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/file-contents/-/file-contents-0.2.4.tgz", "integrity": "sha512-PEz7U6YlXr+dvWCtW63DUY1LUTHOVs1rv4s1/I/39dpvvidQqMSTY6JklazQS60MMoI/ztpo5kMlpdvGagvLbA==", - "license": "MIT", "dependencies": { "extend-shallow": "^2.0.0", "file-stat": "^0.1.0", @@ -5547,7 +5010,6 @@ "version": "0.2.7", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", "integrity": "sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5556,7 +5018,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/file-stat/-/file-stat-0.1.3.tgz", "integrity": "sha512-f72m4132aOd5DVtREdDX8I0Dd7Zf/3PiUYYvn4BFCxfsLqj6r8joBZzrRlfvsNvxhADw+jpEa0AnWPII9H0Fbg==", - "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "lazy-cache": "^0.2.3", @@ -5570,7 +5031,6 @@ "version": "0.2.7", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", "integrity": "sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5579,7 +5039,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", - "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -5592,7 +5051,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -5604,7 +5062,6 @@ "version": "0.0.3", "resolved": "https://registry.npmjs.org/touch/-/touch-0.0.3.tgz", "integrity": "sha512-/LQ54KM9rPf3rGXGo2UPQWx3ol242Zg6Whq27H5DEmZhCJo+pm9N5BzRGepO9vTVhYxpXJdcc1+3uaYt9NyeKg==", - "license": "ISC", "dependencies": { "nopt": "~1.0.10" }, @@ -5616,7 +5073,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", - "license": "MIT", "dependencies": { "abbrev": "1" }, @@ -5630,14 +5086,12 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/traverse": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", "integrity": "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==", - "license": "MIT/X11", "engines": { "node": "*" } @@ -5647,7 +5101,6 @@ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", "dev": true, - "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -5687,11 +5140,10 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -5704,7 +5156,6 @@ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, - "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -5747,7 +5198,6 @@ "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "license": "MIT", "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } @@ -5756,7 +5206,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "license": "MIT", "dependencies": { "prelude-ls": "~1.1.2" }, @@ -5769,7 +5218,6 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -5779,7 +5227,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -5787,25 +5234,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/typed-rest-client": { "version": "1.8.11", "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz", "integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==", - "license": "MIT", "dependencies": { "qs": "^6.9.1", "tunnel": "0.0.6", @@ -5813,11 +5245,10 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -5830,7 +5261,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5838,14 +5268,12 @@ "node_modules/underscore": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", - "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==", - "license": "MIT" + "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" }, "node_modules/undici": { - "version": "5.29.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", - "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", - "license": "MIT", + "version": "5.28.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz", + "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==", "dependencies": { "@fastify/busboy": "^2.0.0" }, @@ -5854,22 +5282,20 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true }, "node_modules/universal-user-agent": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", - "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", - "license": "ISC" + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==" }, "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", "dev": true, "funding": [ { @@ -5885,10 +5311,9 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -5901,7 +5326,6 @@ "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", @@ -5913,32 +5337,27 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "license": "MIT", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/v8-to-istanbul": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, - "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -5952,7 +5371,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", "integrity": "sha512-Ci3wnR2uuSAWFMSglZuB8Z2apBdtOyz8CV7dC6/U1XbltXBC+IuutUkXQISz01P+US2ouBuesSbV6zILZ6BuzQ==", - "license": "MIT", "dependencies": { "clone": "^1.0.0", "clone-stats": "^0.0.1", @@ -5967,7 +5385,6 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -5975,14 +5392,12 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -5993,7 +5408,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -6005,17 +5419,14 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "license": "MIT", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", "has-tostringtag": "^1.0.2" }, "engines": { @@ -6029,7 +5440,6 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6039,7 +5449,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -6055,15 +5464,13 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, - "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -6076,7 +5483,6 @@ "version": "0.4.23", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "license": "MIT", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -6089,7 +5495,6 @@ "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "license": "MIT", "engines": { "node": ">=4.0" } @@ -6099,7 +5504,6 @@ "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.31.tgz", "integrity": "sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==", "deprecated": "Deprecated due to CVE-2021-21366 resolved in 0.5.0", - "license": "(LGPL-2.0 or MIT)", "engines": { "node": ">=0.1" } @@ -6108,7 +5512,6 @@ "version": "0.0.27", "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.27.tgz", "integrity": "sha512-fg03WRxtkCV6ohClePNAECYsmpKKTv5L8y/X3Dn1hQrec3POx2jHZ/0P2qQ6HvsrU1BmeqXcof3NGGueG6LxwQ==", - "license": "MIT", "engines": { "node": ">=0.6.0" } @@ -6117,7 +5520,6 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", "engines": { "node": ">=0.4" } @@ -6127,7 +5529,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -6136,15 +5537,13 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -6163,7 +5562,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -6173,7 +5571,6 @@ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -6183,7 +5580,6 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -6195,7 +5591,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-1.2.0.tgz", "integrity": "sha512-2olrDUuPM4NvRIgGPhvrp84f7/HmWR6RiQrgwFF2VctmnssFiogtYL3DcA8Vl2bsSmju79sVXe38TsII7JleUg==", - "license": "MIT", "dependencies": { "archiver-utils": "^1.3.0", "compress-commons": "^1.2.0", diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index ac8ced92b..8a471430a 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -333,154 +333,3 @@ toPlatformPath('/foo/bar') // => \foo\bar // On a Linux runner. toPlatformPath('\\foo\\bar') // => /foo/bar ``` - -#### Platform helper - -Provides shorthands for getting information about platform action is running on. - -```js -import { platform } from '@actions/core' - -/* equals to a call of os.platform() */ -platform.platform // 'win32' | 'darwin' | 'linux' | 'freebsd' | 'openbsd' | 'android' | 'cygwin' | 'sunos' - -/* equals to a call of os.arch() */ -platform.arch // 'x64' | 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 'riscv64' | 's390' | 's390x' - -/* common shorthands for platform-specific logic */ -platform.isWindows // true -platform.isMacOS // false -platform.isLinux // false - -/* run platform-specific script to get more details about the exact platform, works on Windows, MacOS and Linux */ -const { - name, // Microsoft Windows 11 Enterprise - version, // 10.0.22621 -} = await platform.getDetails() -``` - -#### Populating job summary - -These methods can be used to populate a [job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary). A job summary is a buffer that can be added to throughout your job via `core.summary` methods. - -Job summaries when complete must be written to the summary buffer file via the `core.summary.write()` method. - -All methods except `addRaw()` utilize the `addRaw()` method to append to the buffer, followed by an EOL using the `addEOL()` method. - -```typescript - -// Write raw text, optionally add an EOL after the content, defaults to false -core.summary.addRaw('Some content here :speech_balloon:', true) -// Output: Some content here :speech_balloon:\n - -// Add an operating system-specific end-of-line marker -core.summary.addEOL() -// Output (POSIX): \n -// Output (Windows): \r\n - -// Add a codeblock with an optional language for syntax highlighting -core.summary.addCodeBlock('console.log(\'hello world\')', 'javascript') -// Output:
console.log('hello world')
- -// Add a list, second parameter indicates if list is ordered, defaults to false -core.summary.addList(['item1','item2','item3'], true) -// Output:
  1. item1
  2. item2
  3. item3
- -// Add a collapsible HTML details element -core.summary.addDetails('Label', 'Some detail that will be collapsed') -// Output:
LabelSome detail that will be collapsed
- -// Add an image, image options parameter is optional, you can supply one of or both width and height in pixels -core.summary.addImage('example.png', 'alt description of img', {width: '100', height: '100'}) -// Output: alt description of img - -// Add an HTML section heading element, optionally pass a level that translates to 'hX' ie. h2. Defaults to h1 -core.summary.addHeading('My Heading', '2') -// Output:

My Heading

- -// Add an HTML thematic break
-core.summary.addSeparator() -// Output:
- -// Add an HTML line break
-core.summary.addBreak() -// Output:
- -// Add an HTML blockquote with an optional citation -core.summary.addQuote('To be or not to be', 'Shakespeare') -// Output:
To be or not to be
- -// Add an HTML anchor tag -core.summary.addLink('click here', 'https://github.com') -// Output: click here - -``` - -Tables are added using the `addTable()` method, and an array of `SummaryTableRow`. - -```typescript - -export type SummaryTableRow = (SummaryTableCell | string)[] - -export interface SummaryTableCell { - /** - * Cell content - */ - data: string - /** - * Render cell as header - * (optional) default: false - */ - header?: boolean - /** - * Number of columns the cell extends - * (optional) default: '1' - */ - colspan?: string - /** - * Number of rows the cell extends - * (optional) default: '1' - */ - rowspan?: string -} - -``` - -For example - -```typescript - -const tableData = [ - {data: 'Header1', header: true}, - {data: 'Header2', header: true}, - {data: 'Header3', header: true}, - {data: 'MyData1'}, - {data: 'MyData2'}, - {data: 'MyData3'} -] - -// Add an HTML table -core.summary.addTable([tableData]) -// Output:
Header1Header2Header3
MyData1MyData2MyData3
- -``` - -In addition to job summary content, there are utility functions for interfacing with the buffer. - -```typescript - -// Empties the summary buffer AND wipes the summary file on disk -core.summary.clear() - -// Returns the current summary buffer as a string -core.summary.stringify() - -// If the summary buffer is empty -core.summary.isEmptyBuffer() - -// Resets the summary buffer without writing to the summary file on disk -core.summary.emptyBuffer() - -// Writes text in the buffer to the summary buffer file and empties the buffer, optionally overwriting all existing content in the summary file with buffer contents. Defaults to false. -core.summary.write({overwrite: true}) -``` \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index 728a0149a..0b28c66b8 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -1,11 +1,7 @@ "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); + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -18,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( 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); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -80,13 +76,13 @@ class Command { } } function escapeData(s) { - return (0, utils_1.toCommandValue)(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return (0, utils_1.toCommandValue)(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index 476bcf64d..51c7c6375 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index a0803d7ad..ceecdd326 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -196,7 +196,3 @@ export { markdownSummary } from './summary'; * Path exports */ export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils'; -/** - * Platform utilities exports - */ -export * as platform from './platform'; diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index 8f85466da..48df6ad09 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -1,11 +1,7 @@ "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); + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -18,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( 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); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -32,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; const command_1 = require("./command"); const file_command_1 = require("./file-command"); const utils_1 = require("./utils"); @@ -52,7 +48,7 @@ var ExitCode; * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode || (exports.ExitCode = ExitCode = {})); +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -63,13 +59,13 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = (0, utils_1.toCommandValue)(val); + const convertedVal = utils_1.toCommandValue(val); process.env[name] = convertedVal; const filePath = process.env['GITHUB_ENV'] || ''; if (filePath) { - return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); + return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); } - (0, command_1.issueCommand)('set-env', { name }, convertedVal); + command_1.issueCommand('set-env', { name }, convertedVal); } exports.exportVariable = exportVariable; /** @@ -77,7 +73,7 @@ exports.exportVariable = exportVariable; * @param secret value of the secret */ function setSecret(secret) { - (0, command_1.issueCommand)('add-mask', {}, secret); + command_1.issueCommand('add-mask', {}, secret); } exports.setSecret = setSecret; /** @@ -87,10 +83,10 @@ exports.setSecret = setSecret; function addPath(inputPath) { const filePath = process.env['GITHUB_PATH'] || ''; if (filePath) { - (0, file_command_1.issueFileCommand)('PATH', inputPath); + file_command_1.issueFileCommand('PATH', inputPath); } else { - (0, command_1.issueCommand)('add-path', {}, inputPath); + command_1.issueCommand('add-path', {}, inputPath); } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } @@ -165,10 +161,10 @@ exports.getBooleanInput = getBooleanInput; function setOutput(name, value) { const filePath = process.env['GITHUB_OUTPUT'] || ''; if (filePath) { - return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); + return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); } process.stdout.write(os.EOL); - (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); + command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); } exports.setOutput = setOutput; /** @@ -177,7 +173,7 @@ exports.setOutput = setOutput; * */ function setCommandEcho(enabled) { - (0, command_1.issue)('echo', enabled ? 'on' : 'off'); + command_1.issue('echo', enabled ? 'on' : 'off'); } exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- @@ -208,7 +204,7 @@ exports.isDebug = isDebug; * @param message debug message */ function debug(message) { - (0, command_1.issueCommand)('debug', {}, message); + command_1.issueCommand('debug', {}, message); } exports.debug = debug; /** @@ -217,7 +213,7 @@ exports.debug = debug; * @param properties optional properties to add to the annotation. */ function error(message, properties = {}) { - (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); + command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } exports.error = error; /** @@ -226,7 +222,7 @@ exports.error = error; * @param properties optional properties to add to the annotation. */ function warning(message, properties = {}) { - (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); + command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } exports.warning = warning; /** @@ -235,7 +231,7 @@ exports.warning = warning; * @param properties optional properties to add to the annotation. */ function notice(message, properties = {}) { - (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); + command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } exports.notice = notice; /** @@ -254,14 +250,14 @@ exports.info = info; * @param name The name of the output group */ function startGroup(name) { - (0, command_1.issue)('group', name); + command_1.issue('group', name); } exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { - (0, command_1.issue)('endgroup'); + command_1.issue('endgroup'); } exports.endGroup = endGroup; /** @@ -299,9 +295,9 @@ exports.group = group; function saveState(name, value) { const filePath = process.env['GITHUB_STATE'] || ''; if (filePath) { - return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); + return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); } - (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); + command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); } exports.saveState = saveState; /** @@ -337,8 +333,4 @@ var path_utils_1 = require("./path-utils"); Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); -/** - * Platform utilities exports - */ -exports.platform = __importStar(require("./platform")); //# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index 12617183b..99f7fd85c 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAAuE;AACvE,mCAA2D;AAE3D,uCAAwB;AACxB,2CAA4B;AAE5B,6CAAuC;AAavC;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,wBAAR,QAAQ,QAUnB;AAuCD,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,IAAA,sBAAc,EAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,OAAO,IAAA,+BAAgB,EAAC,KAAK,EAAE,IAAA,qCAAsB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAA;KAClE;IAED,IAAA,sBAAY,EAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;AAC/C,CAAC;AAVD,wCAUC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,IAAA,sBAAY,EAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,IAAA,+BAAgB,EAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,IAAA,sBAAY,EAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,GAAG,CAAA;KACX;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AAZD,4BAYC;AAED;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,OAAsB;IAEtB,MAAM,MAAM,GAAa,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;SAC7C,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;IAExB,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,MAAM,CAAA;KACd;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;AAC1C,CAAC;AAbD,8CAaC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,OAAsB;IAClE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACnC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,MAAM,IAAI,SAAS,CACjB,6DAA6D,IAAI,IAAI;QACnE,4EAA4E,CAC/E,CAAA;AACH,CAAC;AAVD,0CAUC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA;IACnD,IAAI,QAAQ,EAAE;QACZ,OAAO,IAAA,+BAAgB,EAAC,QAAQ,EAAE,IAAA,qCAAsB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;KACvE;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAA,sBAAY,EAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC;AARD,8BAQC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,IAAA,eAAK,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,IAAA,sBAAY,EAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CACnB,OAAuB,EACvB,aAAmC,EAAE;IAErC,IAAA,sBAAY,EACV,OAAO,EACP,IAAA,2BAAmB,EAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,sBASC;AAED;;;;GAIG;AACH,SAAgB,OAAO,CACrB,OAAuB,EACvB,aAAmC,EAAE;IAErC,IAAA,sBAAY,EACV,SAAS,EACT,IAAA,2BAAmB,EAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,0BASC;AAED;;;;GAIG;AACH,SAAgB,MAAM,CACpB,OAAuB,EACvB,aAAmC,EAAE;IAErC,IAAA,sBAAY,EACV,QAAQ,EACR,IAAA,2BAAmB,EAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,wBASC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,IAAA,eAAK,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,IAAA,eAAK,EAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAA;IAClD,IAAI,QAAQ,EAAE;QACZ,OAAO,IAAA,+BAAgB,EAAC,OAAO,EAAE,IAAA,qCAAsB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;KACtE;IAED,IAAA,sBAAY,EAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC;AAPD,8BAOC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC;AAED,SAAsB,UAAU,CAAC,GAAY;;QAC3C,OAAO,MAAM,uBAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IACzC,CAAC;CAAA;AAFD,gCAEC;AAED;;GAEG;AACH,qCAAiC;AAAzB,kGAAA,OAAO,OAAA;AAEf;;GAEG;AACH,qCAAyC;AAAjC,0GAAA,eAAe,OAAA;AAEvB;;GAEG;AACH,2CAAqE;AAA7D,yGAAA,WAAW,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,4GAAA,cAAc,OAAA;AAEhD;;GAEG;AACH,uDAAsC"} \ No newline at end of file +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAAuE;AACvE,mCAA2D;AAE3D,uCAAwB;AACxB,2CAA4B;AAE5B,6CAAuC;AAavC;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAuCD,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,OAAO,+BAAgB,CAAC,KAAK,EAAE,qCAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAA;KAClE;IAED,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;AAC/C,CAAC;AAVD,wCAUC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,+BAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,GAAG,CAAA;KACX;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AAZD,4BAYC;AAED;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,OAAsB;IAEtB,MAAM,MAAM,GAAa,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;SAC7C,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;IAExB,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,MAAM,CAAA;KACd;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;AAC1C,CAAC;AAbD,8CAaC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,OAAsB;IAClE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACnC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,MAAM,IAAI,SAAS,CACjB,6DAA6D,IAAI,IAAI;QACnE,4EAA4E,CAC/E,CAAA;AACH,CAAC;AAVD,0CAUC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA;IACnD,IAAI,QAAQ,EAAE;QACZ,OAAO,+BAAgB,CAAC,QAAQ,EAAE,qCAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;KACvE;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC5B,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,sBAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC;AARD,8BAQC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,eAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CACnB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,OAAO,EACP,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,sBASC;AAED;;;;GAIG;AACH,SAAgB,OAAO,CACrB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,SAAS,EACT,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,0BASC;AAED;;;;GAIG;AACH,SAAgB,MAAM,CACpB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,QAAQ,EACR,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,wBASC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAA;IAClD,IAAI,QAAQ,EAAE;QACZ,OAAO,+BAAgB,CAAC,OAAO,EAAE,qCAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;KACtE;IAED,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,sBAAc,CAAC,KAAK,CAAC,CAAC,CAAA;AAC3D,CAAC;AAPD,8BAOC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC;AAED,SAAsB,UAAU,CAAC,GAAY;;QAC3C,OAAO,MAAM,uBAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IACzC,CAAC;CAAA;AAFD,gCAEC;AAED;;GAEG;AACH,qCAAiC;AAAzB,kGAAA,OAAO,OAAA;AAEf;;GAEG;AACH,qCAAyC;AAAjC,0GAAA,eAAe,OAAA;AAEvB;;GAEG;AACH,2CAAqE;AAA7D,yGAAA,WAAW,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,4GAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.js b/node_modules/@actions/core/lib/file-command.js index e4cae444a..2d0d738fd 100644 --- a/node_modules/@actions/core/lib/file-command.js +++ b/node_modules/@actions/core/lib/file-command.js @@ -2,11 +2,7 @@ // For internal use, subject to change. 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); + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -19,7 +15,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( 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); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -27,9 +23,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ -const crypto = __importStar(require("crypto")); const fs = __importStar(require("fs")); const os = __importStar(require("os")); +const uuid_1 = require("uuid"); const utils_1 = require("./utils"); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; @@ -39,14 +35,14 @@ function issueFileCommand(command, message) { if (!fs.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { encoding: 'utf8' }); } exports.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter = `ghadelimiter_${crypto.randomUUID()}`; - const convertedValue = (0, utils_1.toCommandValue)(value); + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); // These should realistically never happen, but just in case someone finds a // way to exploit uuid generation let's not allow keys or values that contain // the delimiter. diff --git a/node_modules/@actions/core/lib/file-command.js.map b/node_modules/@actions/core/lib/file-command.js.map index 8510a5731..b1a9d54d7 100644 --- a/node_modules/@actions/core/lib/file-command.js.map +++ b/node_modules/@actions/core/lib/file-command.js.map @@ -1 +1 @@ -{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,+CAAgC;AAChC,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,IAAA,sBAAc,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,MAAM,CAAC,UAAU,EAAE,EAAE,CAAA;IACvD,MAAM,cAAc,GAAG,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"} \ No newline at end of file +{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,SAAM,EAAE,EAAE,CAAA;IAC5C,MAAM,cAAc,GAAG,sBAAc,CAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/oidc-utils.js b/node_modules/@actions/core/lib/oidc-utils.js index f8895d086..092e93d7e 100644 --- a/node_modules/@actions/core/lib/oidc-utils.js +++ b/node_modules/@actions/core/lib/oidc-utils.js @@ -62,9 +62,9 @@ class OidcClient { const encodedAudience = encodeURIComponent(audience); id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - (0, core_1.debug)(`ID token url is ${id_token_url}`); + core_1.debug(`ID token url is ${id_token_url}`); const id_token = yield OidcClient.getCall(id_token_url); - (0, core_1.setSecret)(id_token); + core_1.setSecret(id_token); return id_token; } catch (error) { diff --git a/node_modules/@actions/core/lib/oidc-utils.js.map b/node_modules/@actions/core/lib/oidc-utils.js.map index f144099cd..22506b807 100644 --- a/node_modules/@actions/core/lib/oidc-utils.js.map +++ b/node_modules/@actions/core/lib/oidc-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,MAAM,CAAO,OAAO,CAAC,YAAoB;;;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;YAEhD,MAAM,GAAG,GAAG,MAAM,UAAU;iBACzB,OAAO,CAAgB,YAAY,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,IAAI,KAAK,CACb;uBACa,KAAK,CAAC,UAAU;yBACd,KAAK,CAAC,OAAO,EAAE,CAC/B,CAAA;YACH,CAAC,CAAC,CAAA;YAEJ,MAAM,QAAQ,GAAG,MAAA,GAAG,CAAC,MAAM,0CAAE,KAAK,CAAA;YAClC,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;aACjE;YACD,OAAO,QAAQ,CAAA;;KAChB;IAED,MAAM,CAAO,UAAU,CAAC,QAAiB;;YACvC,IAAI;gBACF,gDAAgD;gBAChD,IAAI,YAAY,GAAW,UAAU,CAAC,aAAa,EAAE,CAAA;gBACrD,IAAI,QAAQ,EAAE;oBACZ,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;oBACpD,YAAY,GAAG,GAAG,YAAY,aAAa,eAAe,EAAE,CAAA;iBAC7D;gBAED,IAAA,YAAK,EAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,IAAA,gBAAS,EAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"} \ No newline at end of file +{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,MAAM,CAAO,OAAO,CAAC,YAAoB;;;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;YAEhD,MAAM,GAAG,GAAG,MAAM,UAAU;iBACzB,OAAO,CAAgB,YAAY,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,IAAI,KAAK,CACb;uBACa,KAAK,CAAC,UAAU;yBACd,KAAK,CAAC,OAAO,EAAE,CAC/B,CAAA;YACH,CAAC,CAAC,CAAA;YAEJ,MAAM,QAAQ,SAAG,GAAG,CAAC,MAAM,0CAAE,KAAK,CAAA;YAClC,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;aACjE;YACD,OAAO,QAAQ,CAAA;;KAChB;IAED,MAAM,CAAO,UAAU,CAAC,QAAiB;;YACvC,IAAI;gBACF,gDAAgD;gBAChD,IAAI,YAAY,GAAW,UAAU,CAAC,aAAa,EAAE,CAAA;gBACrD,IAAI,QAAQ,EAAE;oBACZ,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;oBACpD,YAAY,GAAG,GAAG,YAAY,aAAa,eAAe,EAAE,CAAA;iBAC7D;gBAED,YAAK,CAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,gBAAS,CAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/path-utils.js b/node_modules/@actions/core/lib/path-utils.js index d13f4ec8d..7251c829c 100644 --- a/node_modules/@actions/core/lib/path-utils.js +++ b/node_modules/@actions/core/lib/path-utils.js @@ -1,11 +1,7 @@ "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); + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -18,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( 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); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; diff --git a/node_modules/@actions/core/lib/path-utils.js.map b/node_modules/@actions/core/lib/path-utils.js.map index b29600854..7ab1cacec 100644 --- a/node_modules/@actions/core/lib/path-utils.js.map +++ b/node_modules/@actions/core/lib/path-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"} \ No newline at end of file +{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/platform.d.ts b/node_modules/@actions/core/lib/platform.d.ts deleted file mode 100644 index 34dbd93b0..000000000 --- a/node_modules/@actions/core/lib/platform.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -export declare const platform: NodeJS.Platform; -export declare const arch: string; -export declare const isWindows: boolean; -export declare const isMacOS: boolean; -export declare const isLinux: boolean; -export declare function getDetails(): Promise<{ - name: string; - platform: string; - arch: string; - version: string; - isWindows: boolean; - isMacOS: boolean; - isLinux: boolean; -}>; diff --git a/node_modules/@actions/core/lib/platform.js b/node_modules/@actions/core/lib/platform.js deleted file mode 100644 index c6b58c539..000000000 --- a/node_modules/@actions/core/lib/platform.js +++ /dev/null @@ -1,94 +0,0 @@ -"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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; -const os_1 = __importDefault(require("os")); -const exec = __importStar(require("@actions/exec")); -const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { - const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { - silent: true - }); - const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, { - silent: true - }); - return { - name: name.trim(), - version: version.trim() - }; -}); -const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { - var _a, _b, _c, _d; - const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { - silent: true - }); - const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; - const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; - return { - name, - version - }; -}); -const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { - const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { - silent: true - }); - const [name, version] = stdout.trim().split('\n'); - return { - name, - version - }; -}); -exports.platform = os_1.default.platform(); -exports.arch = os_1.default.arch(); -exports.isWindows = exports.platform === 'win32'; -exports.isMacOS = exports.platform === 'darwin'; -exports.isLinux = exports.platform === 'linux'; -function getDetails() { - return __awaiter(this, void 0, void 0, function* () { - return Object.assign(Object.assign({}, (yield (exports.isWindows - ? getWindowsInfo() - : exports.isMacOS - ? getMacOsInfo() - : getLinuxInfo()))), { platform: exports.platform, - arch: exports.arch, - isWindows: exports.isWindows, - isMacOS: exports.isMacOS, - isLinux: exports.isLinux }); - }); -} -exports.getDetails = getDetails; -//# sourceMappingURL=platform.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/platform.js.map b/node_modules/@actions/core/lib/platform.js.map deleted file mode 100644 index 976102b0c..000000000 --- a/node_modules/@actions/core/lib/platform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmB;AACnB,oDAAqC;AAErC,MAAM,cAAc,GAAG,GAAmD,EAAE;IAC1E,MAAM,EAAC,MAAM,EAAE,OAAO,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAChD,kFAAkF,EAClF,SAAS,EACT;QACE,MAAM,EAAE,IAAI;KACb,CACF,CAAA;IAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAC7C,kFAAkF,EAClF,SAAS,EACT;QACE,MAAM,EAAE,IAAI;KACb,CACF,CAAA;IAED,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;QACjB,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;KACxB,CAAA;AACH,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,GAGlB,EAAE;;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE;QAC9D,MAAM,EAAE,IAAI;KACb,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG,MAAA,MAAA,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,0CAAG,CAAC,CAAC,mCAAI,EAAE,CAAA;IACjE,MAAM,IAAI,GAAG,MAAA,MAAA,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,0CAAG,CAAC,CAAC,mCAAI,EAAE,CAAA;IAE3D,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAA;AACH,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,GAGlB,EAAE;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;QAC3E,MAAM,EAAE,IAAI;KACb,CAAC,CAAA;IAEF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAEjD,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAA;AACH,CAAC,CAAA,CAAA;AAEY,QAAA,QAAQ,GAAG,YAAE,CAAC,QAAQ,EAAE,CAAA;AACxB,QAAA,IAAI,GAAG,YAAE,CAAC,IAAI,EAAE,CAAA;AAChB,QAAA,SAAS,GAAG,gBAAQ,KAAK,OAAO,CAAA;AAChC,QAAA,OAAO,GAAG,gBAAQ,KAAK,QAAQ,CAAA;AAC/B,QAAA,OAAO,GAAG,gBAAQ,KAAK,OAAO,CAAA;AAE3C,SAAsB,UAAU;;QAS9B,uCACK,CAAC,MAAM,CAAC,iBAAS;YAClB,CAAC,CAAC,cAAc,EAAE;YAClB,CAAC,CAAC,eAAO;gBACT,CAAC,CAAC,YAAY,EAAE;gBAChB,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,KACpB,QAAQ,EAAR,gBAAQ;YACR,IAAI,EAAJ,YAAI;YACJ,SAAS,EAAT,iBAAS;YACT,OAAO,EAAP,eAAO;YACP,OAAO,EAAP,eAAO,IACR;IACH,CAAC;CAAA;AArBD,gCAqBC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/summary.d.ts b/node_modules/@actions/core/lib/summary.d.ts index 0ea4384a9..bb7925555 100644 --- a/node_modules/@actions/core/lib/summary.d.ts +++ b/node_modules/@actions/core/lib/summary.d.ts @@ -1,6 +1,6 @@ export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; -export type SummaryTableRow = (SummaryTableCell | string)[]; +export declare type SummaryTableRow = (SummaryTableCell | string)[]; export interface SummaryTableCell { /** * Cell content diff --git a/node_modules/@actions/core/lib/summary.js.map b/node_modules/@actions/core/lib/summary.js.map index 96373515a..d598f264f 100644 --- a/node_modules/@actions/core/lib/summary.js.map +++ b/node_modules/@actions/core/lib/summary.js.map @@ -1 +1 @@ -{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAsB;AACtB,2BAAsC;AACtC,MAAM,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,aAAQ,CAAA;AAEnC,QAAA,eAAe,GAAG,qBAAqB,CAAA;AACvC,QAAA,gBAAgB,GAC3B,2GAA2G,CAAA;AA+C7G,MAAM,OAAO;IAIX;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACW,QAAQ;;YACpB,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,OAAO,IAAI,CAAC,SAAS,CAAA;aACtB;YAED,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAA;YAChD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,4CAA4C,uBAAe,6DAA6D,CACzH,CAAA;aACF;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,WAAW,EAAE,cAAS,CAAC,IAAI,GAAG,cAAS,CAAC,IAAI,CAAC,CAAA;aAC3D;YAAC,WAAM;gBACN,MAAM,IAAI,KAAK,CACb,mCAAmC,WAAW,0DAA0D,CACzG,CAAA;aACF;YAED,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,IAAI,CACV,GAAW,EACX,OAAsB,EACtB,QAAuC,EAAE;QAEzC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aACpC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,KAAK,KAAK,GAAG,CAAC;aAC3C,IAAI,CAAC,EAAE,CAAC,CAAA;QAEX,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,IAAI,GAAG,GAAG,SAAS,GAAG,CAAA;SAC9B;QAED,OAAO,IAAI,GAAG,GAAG,SAAS,IAAI,OAAO,KAAK,GAAG,GAAG,CAAA;IAClD,CAAC;IAED;;;;;;OAMG;IACG,KAAK,CAAC,OAA6B;;YACvC,MAAM,SAAS,GAAG,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAA,CAAA;YACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAA;YACtC,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAA;YACpD,MAAM,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAA;YAC3D,OAAO,IAAI,CAAC,WAAW,EAAE,CAAA;QAC3B,CAAC;KAAA;IAED;;;;OAIG;IACG,KAAK;;YACT,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAA;QACpD,CAAC;KAAA;IAED;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED;;;;OAIG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,WAAW;QACT,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAY,EAAE,MAAM,GAAG,KAAK;QACjC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAA;QACpB,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,QAAG,CAAC,CAAA;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,IAAY,EAAE,IAAa;QACtC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,KAAe,EAAE,OAAO,GAAG,KAAK;QACtC,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;QACjC,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAuB;QAC9B,MAAM,SAAS,GAAG,IAAI;aACnB,GAAG,CAAC,GAAG,CAAC,EAAE;YACT,MAAM,KAAK,GAAG,GAAG;iBACd,GAAG,CAAC,IAAI,CAAC,EAAE;gBACV,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;oBAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;iBAC7B;gBAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;gBAC7C,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;gBAChC,MAAM,KAAK,mCACN,CAAC,OAAO,IAAI,EAAC,OAAO,EAAC,CAAC,GACtB,CAAC,OAAO,IAAI,EAAC,OAAO,EAAC,CAAC,CAC1B,CAAA;gBAED,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;YACpC,CAAC,CAAC;iBACD,IAAI,CAAC,EAAE,CAAC,CAAA;YAEX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAC/B,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,CAAC,CAAA;QAEX,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,KAAa,EAAE,OAAe;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,CAAA;QAC3E,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,GAAW,EAAE,GAAW,EAAE,OAA6B;QAC9D,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,OAAO,IAAI,EAAE,CAAA;QACrC,MAAM,KAAK,mCACN,CAAC,KAAK,IAAI,EAAC,KAAK,EAAC,CAAC,GAClB,CAAC,MAAM,IAAI,EAAC,MAAM,EAAC,CAAC,CACxB,CAAA;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,kBAAG,GAAG,EAAE,GAAG,IAAK,KAAK,EAAE,CAAA;QAC5D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,IAAY,EAAE,KAAuB;QAC9C,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAA;QACvB,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;YACnE,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,IAAI,CAAA;QACR,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,YAAY;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,IAAa;QAClC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAY,EAAE,IAAY;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAC,IAAI,EAAC,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAA;AAE9B;;GAEG;AACU,QAAA,eAAe,GAAG,QAAQ,CAAA;AAC1B,QAAA,OAAO,GAAG,QAAQ,CAAA"} \ No newline at end of file +{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAsB;AACtB,2BAAsC;AACtC,MAAM,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,aAAQ,CAAA;AAEnC,QAAA,eAAe,GAAG,qBAAqB,CAAA;AACvC,QAAA,gBAAgB,GAC3B,2GAA2G,CAAA;AA+C7G,MAAM,OAAO;IAIX;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACW,QAAQ;;YACpB,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,OAAO,IAAI,CAAC,SAAS,CAAA;aACtB;YAED,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAA;YAChD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,4CAA4C,uBAAe,6DAA6D,CACzH,CAAA;aACF;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,WAAW,EAAE,cAAS,CAAC,IAAI,GAAG,cAAS,CAAC,IAAI,CAAC,CAAA;aAC3D;YAAC,WAAM;gBACN,MAAM,IAAI,KAAK,CACb,mCAAmC,WAAW,0DAA0D,CACzG,CAAA;aACF;YAED,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,IAAI,CACV,GAAW,EACX,OAAsB,EACtB,QAAuC,EAAE;QAEzC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aACpC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,KAAK,KAAK,GAAG,CAAC;aAC3C,IAAI,CAAC,EAAE,CAAC,CAAA;QAEX,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,IAAI,GAAG,GAAG,SAAS,GAAG,CAAA;SAC9B;QAED,OAAO,IAAI,GAAG,GAAG,SAAS,IAAI,OAAO,KAAK,GAAG,GAAG,CAAA;IAClD,CAAC;IAED;;;;;;OAMG;IACG,KAAK,CAAC,OAA6B;;YACvC,MAAM,SAAS,GAAG,CAAC,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAA,CAAA;YACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAA;YACtC,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAA;YACpD,MAAM,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAA;YAC3D,OAAO,IAAI,CAAC,WAAW,EAAE,CAAA;QAC3B,CAAC;KAAA;IAED;;;;OAIG;IACG,KAAK;;YACT,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAA;QACpD,CAAC;KAAA;IAED;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED;;;;OAIG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,WAAW;QACT,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAY,EAAE,MAAM,GAAG,KAAK;QACjC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAA;QACpB,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,QAAG,CAAC,CAAA;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,IAAY,EAAE,IAAa;QACtC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAA;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,KAAe,EAAE,OAAO,GAAG,KAAK;QACtC,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;QACjC,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACnE,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAuB;QAC9B,MAAM,SAAS,GAAG,IAAI;aACnB,GAAG,CAAC,GAAG,CAAC,EAAE;YACT,MAAM,KAAK,GAAG,GAAG;iBACd,GAAG,CAAC,IAAI,CAAC,EAAE;gBACV,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;oBAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;iBAC7B;gBAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAC,GAAG,IAAI,CAAA;gBAC7C,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;gBAChC,MAAM,KAAK,mCACN,CAAC,OAAO,IAAI,EAAC,OAAO,EAAC,CAAC,GACtB,CAAC,OAAO,IAAI,EAAC,OAAO,EAAC,CAAC,CAC1B,CAAA;gBAED,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;YACpC,CAAC,CAAC;iBACD,IAAI,CAAC,EAAE,CAAC,CAAA;YAEX,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAC/B,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,CAAC,CAAA;QAEX,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,KAAa,EAAE,OAAe;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,CAAA;QAC3E,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,GAAW,EAAE,GAAW,EAAE,OAA6B;QAC9D,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,OAAO,IAAI,EAAE,CAAA;QACrC,MAAM,KAAK,mCACN,CAAC,KAAK,IAAI,EAAC,KAAK,EAAC,CAAC,GAClB,CAAC,MAAM,IAAI,EAAC,MAAM,EAAC,CAAC,CACxB,CAAA;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,kBAAG,GAAG,EAAE,GAAG,IAAK,KAAK,EAAE,CAAA;QAC5D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,IAAY,EAAE,KAAuB;QAC9C,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAA;QACvB,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;YACnE,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,IAAI,CAAA;QACR,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,YAAY;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,IAAa;QAClC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAY,EAAE,IAAY;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAC,IAAI,EAAC,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAA;AAE9B;;GAEG;AACU,QAAA,eAAe,GAAG,QAAQ,CAAA;AAC1B,QAAA,OAAO,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 6d60010e3..1558268c4 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,6 +1,6 @@ { "name": "@actions/core", - "version": "1.11.1", + "version": "1.10.1", "description": "Actions core lib", "keywords": [ "github", @@ -36,10 +36,11 @@ "url": "https://github.com/actions/toolkit/issues" }, "dependencies": { - "@actions/exec": "^1.1.1", - "@actions/http-client": "^2.0.1" + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" }, "devDependencies": { - "@types/node": "^16.18.112" + "@types/node": "^12.0.2", + "@types/uuid": "^8.3.4" } } \ No newline at end of file diff --git a/node_modules/@actions/http-client/lib/index.js b/node_modules/@actions/http-client/lib/index.js index c337ca6e2..f627c6a3e 100644 --- a/node_modules/@actions/http-client/lib/index.js +++ b/node_modules/@actions/http-client/lib/index.js @@ -561,7 +561,7 @@ class HttpClient { } const usingSsl = parsedUrl.protocol === 'https:'; proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { - token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + token: `${proxyUrl.username}:${proxyUrl.password}` }))); this._proxyAgentDispatcher = proxyAgent; if (usingSsl && this._ignoreSslError) { diff --git a/node_modules/@actions/http-client/lib/index.js.map b/node_modules/@actions/http-client/lib/index.js.map index 2a0d1a825..1fce6fc2b 100644 --- a/node_modules/@actions/http-client/lib/index.js.map +++ b/node_modules/@actions/http-client/lib/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CAAA;AAC9B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kDAAoC,CAAA;AACtC,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,SAAiB;IAC3C,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAA;IACnD,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;AACtC,CAAC;AAHD,kCAGC;AAED,MAAM,iBAAiB,GAAa;IAClC,SAAS,CAAC,gBAAgB;IAC1B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,QAAQ;IAClB,SAAS,CAAC,iBAAiB;IAC3B,SAAS,CAAC,iBAAiB;CAC5B,CAAA;AACD,MAAM,sBAAsB,GAAa;IACvC,SAAS,CAAC,UAAU;IACpB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,cAAc;CACzB,CAAA;AACD,MAAM,kBAAkB,GAAa,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AACzE,MAAM,yBAAyB,GAAG,EAAE,CAAA;AACpC,MAAM,2BAA2B,GAAG,CAAC,CAAA;AAErC,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe,EAAE,UAAkB;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;IACxD,CAAC;CAIF;AAVD,0CAUC;AAED,MAAa,kBAAkB;IAC7B,YAAY,OAA6B;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAGK,QAAQ;;YACZ,OAAO,IAAI,OAAO,CAAS,CAAM,OAAO,EAAC,EAAE;gBACzC,IAAI,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAE5B,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;oBACxC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;gBACzC,CAAC,CAAC,CAAA;gBAEF,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;oBAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;gBAC5B,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,cAAc;;YAClB,OAAO,IAAI,OAAO,CAAS,CAAM,OAAO,EAAC,EAAE;gBACzC,MAAM,MAAM,GAAa,EAAE,CAAA;gBAE3B,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;oBACxC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACpB,CAAC,CAAC,CAAA;gBAEF,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;oBAC1B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;gBAChC,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAjCD,gDAiCC;AAED,SAAgB,OAAO,CAAC,UAAkB;IACxC,MAAM,SAAS,GAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;IAC1C,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;AACxC,CAAC;AAHD,0BAGC;AAED,MAAa,UAAU;IAkBrB,YACE,SAAkB,EAClB,QAA+B,EAC/B,cAAmC;QAhB7B,oBAAe,GAAG,KAAK,CAAA;QAEvB,oBAAe,GAAG,IAAI,CAAA;QACtB,4BAAuB,GAAG,KAAK,CAAA;QAC/B,kBAAa,GAAG,EAAE,CAAA;QAClB,kBAAa,GAAG,KAAK,CAAA;QACrB,gBAAW,GAAG,CAAC,CAAA;QAIf,eAAU,GAAG,KAAK,CAAA;QAClB,cAAS,GAAG,KAAK,CAAA;QAOvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,EAAE,CAAA;QAC9B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,cAAc,EAAE;YAClB,IAAI,cAAc,CAAC,cAAc,IAAI,IAAI,EAAE;gBACzC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAA;aACrD;YAED,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,aAAa,CAAA;YAElD,IAAI,cAAc,CAAC,cAAc,IAAI,IAAI,EAAE;gBACzC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAA;aACrD;YAED,IAAI,cAAc,CAAC,sBAAsB,IAAI,IAAI,EAAE;gBACjD,IAAI,CAAC,uBAAuB,GAAG,cAAc,CAAC,sBAAsB,CAAA;aACrE;YAED,IAAI,cAAc,CAAC,YAAY,IAAI,IAAI,EAAE;gBACvC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;aAC9D;YAED,IAAI,cAAc,CAAC,SAAS,IAAI,IAAI,EAAE;gBACpC,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,SAAS,CAAA;aAC3C;YAED,IAAI,cAAc,CAAC,YAAY,IAAI,IAAI,EAAE;gBACvC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,YAAY,CAAA;aACjD;YAED,IAAI,cAAc,CAAC,UAAU,IAAI,IAAI,EAAE;gBACrC,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,UAAU,CAAA;aAC7C;SACF;IACH,CAAC;IAEK,OAAO,CACX,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QAC3E,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACvE,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QAC1E,CAAC;KAAA;IAEK,IAAI,CACR,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACxE,CAAC;KAAA;IAEK,KAAK,CACT,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACzE,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACvE,CAAC;KAAA;IAEK,IAAI,CACR,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACxE,CAAC;KAAA;IAEK,UAAU,CACd,IAAY,EACZ,UAAkB,EAClB,MAA6B,EAC7B,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAA;QAClE,CAAC;KAAA;IAED;;;OAGG;IACG,OAAO,CACX,UAAkB,EAClB,oBAA8C,EAAE;;YAEhD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,GAAG,CAC5C,UAAU,EACV,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,QAAQ,CACZ,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,IAAI,CAC7C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,OAAO,CACX,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,GAAG,CAC5C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,SAAS,CACb,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,KAAK,CAC9C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAED;;;;OAIG;IACG,OAAO,CACX,IAAY,EACZ,UAAkB,EAClB,IAA2C,EAC3C,OAAkC;;YAElC,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;aACrD;YAED,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;YACrC,IAAI,IAAI,GAAoB,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YAE1E,oEAAoE;YACpE,MAAM,QAAQ,GACZ,IAAI,CAAC,aAAa,IAAI,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACrD,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC;gBACtB,CAAC,CAAC,CAAC,CAAA;YACP,IAAI,QAAQ,GAAG,CAAC,CAAA;YAEhB,IAAI,QAAwC,CAAA;YAC5C,GAAG;gBACD,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;gBAE5C,4CAA4C;gBAC5C,IACE,QAAQ;oBACR,QAAQ,CAAC,OAAO;oBAChB,QAAQ,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,YAAY,EACtD;oBACA,IAAI,qBAAqD,CAAA;oBAEzD,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;wBACnC,IAAI,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,EAAE;4BAC7C,qBAAqB,GAAG,OAAO,CAAA;4BAC/B,MAAK;yBACN;qBACF;oBAED,IAAI,qBAAqB,EAAE;wBACzB,OAAO,qBAAqB,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;qBACpE;yBAAM;wBACL,+EAA+E;wBAC/E,yCAAyC;wBACzC,OAAO,QAAQ,CAAA;qBAChB;iBACF;gBAED,IAAI,kBAAkB,GAAW,IAAI,CAAC,aAAa,CAAA;gBACnD,OACE,QAAQ,CAAC,OAAO,CAAC,UAAU;oBAC3B,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC;oBACvD,IAAI,CAAC,eAAe;oBACpB,kBAAkB,GAAG,CAAC,EACtB;oBACA,MAAM,WAAW,GACf,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;oBACtC,IAAI,CAAC,WAAW,EAAE;wBAChB,kDAAkD;wBAClD,MAAK;qBACN;oBACD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAA;oBAC9C,IACE,SAAS,CAAC,QAAQ,KAAK,QAAQ;wBAC/B,SAAS,CAAC,QAAQ,KAAK,iBAAiB,CAAC,QAAQ;wBACjD,CAAC,IAAI,CAAC,uBAAuB,EAC7B;wBACA,MAAM,IAAI,KAAK,CACb,8KAA8K,CAC/K,CAAA;qBACF;oBAED,qEAAqE;oBACrE,mCAAmC;oBACnC,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBAEzB,mEAAmE;oBACnE,IAAI,iBAAiB,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,EAAE;wBACrD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;4BAC5B,oCAAoC;4BACpC,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,eAAe,EAAE;gCAC5C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAA;6BACvB;yBACF;qBACF;oBAED,kDAAkD;oBAClD,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;oBAC7D,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBAC5C,kBAAkB,EAAE,CAAA;iBACrB;gBAED,IACE,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU;oBAC5B,CAAC,sBAAsB,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,EAC7D;oBACA,8DAA8D;oBAC9D,OAAO,QAAQ,CAAA;iBAChB;gBAED,QAAQ,IAAI,CAAC,CAAA;gBAEb,IAAI,QAAQ,GAAG,QAAQ,EAAE;oBACvB,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBACzB,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAA;iBAChD;aACF,QAAQ,QAAQ,GAAG,QAAQ,EAAC;YAE7B,OAAO,QAAQ,CAAA;QACjB,CAAC;KAAA;IAED;;OAEG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;SACtB;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;IACvB,CAAC;IAED;;;;OAIG;IACG,UAAU,CACd,IAAqB,EACrB,IAA2C;;YAE3C,OAAO,IAAI,OAAO,CAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzD,SAAS,iBAAiB,CAAC,GAAW,EAAE,GAAwB;oBAC9D,IAAI,GAAG,EAAE;wBACP,MAAM,CAAC,GAAG,CAAC,CAAA;qBACZ;yBAAM,IAAI,CAAC,GAAG,EAAE;wBACf,qDAAqD;wBACrD,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;qBACnC;yBAAM;wBACL,OAAO,CAAC,GAAG,CAAC,CAAA;qBACb;gBACH,CAAC;gBAED,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAA;YAC5D,CAAC,CAAC,CAAA;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACH,sBAAsB,CACpB,IAAqB,EACrB,IAA2C,EAC3C,QAAyD;QAEzD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;gBACzB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE,CAAA;aAC1B;YACD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;SACzE;QAED,IAAI,cAAc,GAAG,KAAK,CAAA;QAC1B,SAAS,YAAY,CAAC,GAAW,EAAE,GAAwB;YACzD,IAAI,CAAC,cAAc,EAAE;gBACnB,cAAc,GAAG,IAAI,CAAA;gBACrB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACnB;QACH,CAAC;QAED,MAAM,GAAG,GAAuB,IAAI,CAAC,UAAU,CAAC,OAAO,CACrD,IAAI,CAAC,OAAO,EACZ,CAAC,GAAyB,EAAE,EAAE;YAC5B,MAAM,GAAG,GAAuB,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAA;YAC3D,YAAY,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;QAC9B,CAAC,CACF,CAAA;QAED,IAAI,MAAkB,CAAA;QACtB,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;YACtB,MAAM,GAAG,IAAI,CAAA;QACf,CAAC,CAAC,CAAA;QAEF,wEAAwE;QACxE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE;YACpD,IAAI,MAAM,EAAE;gBACV,MAAM,CAAC,GAAG,EAAE,CAAA;aACb;YACD,YAAY,CAAC,IAAI,KAAK,CAAC,oBAAoB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAClE,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,GAAG;YAC3B,8BAA8B;YAC9B,0BAA0B;YAC1B,YAAY,CAAC,GAAG,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;QAEF,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;SACxB;QAED,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE;gBACf,GAAG,CAAC,GAAG,EAAE,CAAA;YACX,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SACf;aAAM;YACL,GAAG,CAAC,GAAG,EAAE,CAAA;SACV;IACH,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,SAAiB;QACxB,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;IAClC,CAAC;IAED,kBAAkB,CAAC,SAAiB;QAClC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;QACpC,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC1C,MAAM,QAAQ,GAAG,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAA;QAC9C,IAAI,CAAC,QAAQ,EAAE;YACb,OAAM;SACP;QAED,OAAO,IAAI,CAAC,wBAAwB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC3D,CAAC;IAEO,eAAe,CACrB,MAAc,EACd,UAAe,EACf,OAAkC;QAElC,MAAM,IAAI,GAAqC,EAAE,CAAA;QAEjD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAA;QAC3B,MAAM,QAAQ,GAAY,IAAI,CAAC,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAC9D,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;QACzC,MAAM,WAAW,GAAW,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAE/C,IAAI,CAAC,OAAO,GAAwB,EAAE,CAAA;QACtC,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAA;QAC3C,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI;YACrC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC/B,CAAC,CAAC,WAAW,CAAA;QACf,IAAI,CAAC,OAAO,CAAC,IAAI;YACf,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAA;QACjE,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA;QAC5B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAClD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,SAAS,CAAA;SACpD;QAED,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAEnD,+CAA+C;QAC/C,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACnC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aACrC;SACF;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAEO,aAAa,CACnB,OAAkC;QAElC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;YACtD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAC1C,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAC7B,CAAA;SACF;QAED,OAAO,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;IACrC,CAAC;IAEO,2BAA2B,CACjC,iBAA2C,EAC3C,MAAc,EACd,QAAgB;QAEhB,IAAI,YAAgC,CAAA;QACpC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;YACtD,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;SAClE;QACD,OAAO,iBAAiB,CAAC,MAAM,CAAC,IAAI,YAAY,IAAI,QAAQ,CAAA;IAC9D,CAAC;IAEO,SAAS,CAAC,SAAc;QAC9B,IAAI,KAAK,CAAA;QACT,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC1C,MAAM,QAAQ,GAAG,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAA;QAE9C,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YAC/B,KAAK,GAAG,IAAI,CAAC,WAAW,CAAA;SACzB;QAED,IAAI,CAAC,QAAQ,EAAE;YACb,KAAK,GAAG,IAAI,CAAC,MAAM,CAAA;SACpB;QAED,+CAA+C;QAC/C,IAAI,KAAK,EAAE;YACT,OAAO,KAAK,CAAA;SACb;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAChD,IAAI,UAAU,GAAG,GAAG,CAAA;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAA;SAC3E;QAED,sGAAsG;QACtG,IAAI,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACjC,MAAM,YAAY,GAAG;gBACnB,UAAU;gBACV,SAAS,EAAE,IAAI,CAAC,UAAU;gBAC1B,KAAK,kCACA,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI;oBAC9C,SAAS,EAAE,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE;iBACvD,CAAC,KACF,IAAI,EAAE,QAAQ,CAAC,QAAQ,EACvB,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;aACF,CAAA;YAED,IAAI,WAAqB,CAAA;YACzB,MAAM,SAAS,GAAG,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAA;YAChD,IAAI,QAAQ,EAAE;gBACZ,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAA;aACvE;iBAAM;gBACL,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAA;aACrE;YAED,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;YACjC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;SACzB;QAED,uDAAuD;QACvD,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,OAAO,GAAG,EAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAC,CAAA;YACxD,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YACrE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;SACpB;QAED,IAAI,QAAQ,IAAI,IAAI,CAAC,eAAe,EAAE;YACpC,wGAAwG;YACxG,kFAAkF;YAClF,mDAAmD;YACnD,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE;gBACjD,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAA;SACH;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,wBAAwB,CAAC,SAAc,EAAE,QAAa;QAC5D,IAAI,UAAU,CAAA;QAEd,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAA;SACxC;QAED,+CAA+C;QAC/C,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAA;SAClB;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAChD,UAAU,GAAG,IAAI,mBAAU,iBACzB,GAAG,EAAE,QAAQ,CAAC,IAAI,EAClB,UAAU,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IACjC,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI;YAC9C,KAAK,EAAE,SAAS,MAAM,CAAC,IAAI,CACzB,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAC5C,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;SACvB,CAAC,EACF,CAAA;QACF,IAAI,CAAC,qBAAqB,GAAG,UAAU,CAAA;QAEvC,IAAI,QAAQ,IAAI,IAAI,CAAC,eAAe,EAAE;YACpC,wGAAwG;YACxG,kFAAkF;YAClF,mDAAmD;YACnD,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,EAAE;gBACtE,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAA;SACH;QAED,OAAO,UAAU,CAAA;IACnB,CAAC;IAEa,0BAA0B,CAAC,WAAmB;;YAC1D,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAA;YAC9D,MAAM,EAAE,GAAW,2BAA2B,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAA;YACzE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;QAChE,CAAC;KAAA;IAEa,gBAAgB,CAC5B,GAAuB,EACvB,OAA4B;;YAE5B,OAAO,IAAI,OAAO,CAAuB,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACjE,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,CAAA;gBAE9C,MAAM,QAAQ,GAAyB;oBACrC,UAAU;oBACV,MAAM,EAAE,IAAI;oBACZ,OAAO,EAAE,EAAE;iBACZ,CAAA;gBAED,uCAAuC;gBACvC,IAAI,UAAU,KAAK,SAAS,CAAC,QAAQ,EAAE;oBACrC,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;gBAED,+BAA+B;gBAE/B,SAAS,oBAAoB,CAAC,GAAQ,EAAE,KAAU;oBAChD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;wBAC7B,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;wBACzB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE;4BACvB,OAAO,CAAC,CAAA;yBACT;qBACF;oBAED,OAAO,KAAK,CAAA;gBACd,CAAC;gBAED,IAAI,GAAQ,CAAA;gBACZ,IAAI,QAA4B,CAAA;gBAEhC,IAAI;oBACF,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAA;oBAC/B,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBACnC,IAAI,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE;4BACvC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAA;yBACjD;6BAAM;4BACL,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;yBAC3B;wBAED,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAA;qBACtB;oBAED,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,CAAA;iBACvC;gBAAC,OAAO,GAAG,EAAE;oBACZ,iEAAiE;iBAClE;gBAED,yDAAyD;gBACzD,IAAI,UAAU,GAAG,GAAG,EAAE;oBACpB,IAAI,GAAW,CAAA;oBAEf,0DAA0D;oBAC1D,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE;wBACtB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAA;qBAClB;yBAAM,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBAC1C,yEAAyE;wBACzE,GAAG,GAAG,QAAQ,CAAA;qBACf;yBAAM;wBACL,GAAG,GAAG,oBAAoB,UAAU,GAAG,CAAA;qBACxC;oBAED,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;oBAChD,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;oBAE5B,MAAM,CAAC,GAAG,CAAC,CAAA;iBACZ;qBAAM;oBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;YACH,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AA7rBD,gCA6rBC;AAED,MAAM,aAAa,GAAG,CAAC,GAA2B,EAAO,EAAE,CACzD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CAAA;AAC9B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kDAAoC,CAAA;AACtC,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,SAAiB;IAC3C,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAA;IACnD,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;AACtC,CAAC;AAHD,kCAGC;AAED,MAAM,iBAAiB,GAAa;IAClC,SAAS,CAAC,gBAAgB;IAC1B,SAAS,CAAC,aAAa;IACvB,SAAS,CAAC,QAAQ;IAClB,SAAS,CAAC,iBAAiB;IAC3B,SAAS,CAAC,iBAAiB;CAC5B,CAAA;AACD,MAAM,sBAAsB,GAAa;IACvC,SAAS,CAAC,UAAU;IACpB,SAAS,CAAC,kBAAkB;IAC5B,SAAS,CAAC,cAAc;CACzB,CAAA;AACD,MAAM,kBAAkB,GAAa,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AACzE,MAAM,yBAAyB,GAAG,EAAE,CAAA;AACpC,MAAM,2BAA2B,GAAG,CAAC,CAAA;AAErC,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe,EAAE,UAAkB;QAC7C,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;IACxD,CAAC;CAIF;AAVD,0CAUC;AAED,MAAa,kBAAkB;IAC7B,YAAY,OAA6B;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAGK,QAAQ;;YACZ,OAAO,IAAI,OAAO,CAAS,CAAM,OAAO,EAAC,EAAE;gBACzC,IAAI,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAE5B,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;oBACxC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;gBACzC,CAAC,CAAC,CAAA;gBAEF,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;oBAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;gBAC5B,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,cAAc;;YAClB,OAAO,IAAI,OAAO,CAAS,CAAM,OAAO,EAAC,EAAE;gBACzC,MAAM,MAAM,GAAa,EAAE,CAAA;gBAE3B,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;oBACxC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;gBACpB,CAAC,CAAC,CAAA;gBAEF,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;oBAC1B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA;gBAChC,CAAC,CAAC,CAAA;YACJ,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAjCD,gDAiCC;AAED,SAAgB,OAAO,CAAC,UAAkB;IACxC,MAAM,SAAS,GAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;IAC1C,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;AACxC,CAAC;AAHD,0BAGC;AAED,MAAa,UAAU;IAkBrB,YACE,SAAkB,EAClB,QAA+B,EAC/B,cAAmC;QAhB7B,oBAAe,GAAG,KAAK,CAAA;QAEvB,oBAAe,GAAG,IAAI,CAAA;QACtB,4BAAuB,GAAG,KAAK,CAAA;QAC/B,kBAAa,GAAG,EAAE,CAAA;QAClB,kBAAa,GAAG,KAAK,CAAA;QACrB,gBAAW,GAAG,CAAC,CAAA;QAIf,eAAU,GAAG,KAAK,CAAA;QAClB,cAAS,GAAG,KAAK,CAAA;QAOvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,EAAE,CAAA;QAC9B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,cAAc,EAAE;YAClB,IAAI,cAAc,CAAC,cAAc,IAAI,IAAI,EAAE;gBACzC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAA;aACrD;YAED,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,aAAa,CAAA;YAElD,IAAI,cAAc,CAAC,cAAc,IAAI,IAAI,EAAE;gBACzC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC,cAAc,CAAA;aACrD;YAED,IAAI,cAAc,CAAC,sBAAsB,IAAI,IAAI,EAAE;gBACjD,IAAI,CAAC,uBAAuB,GAAG,cAAc,CAAC,sBAAsB,CAAA;aACrE;YAED,IAAI,cAAc,CAAC,YAAY,IAAI,IAAI,EAAE;gBACvC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;aAC9D;YAED,IAAI,cAAc,CAAC,SAAS,IAAI,IAAI,EAAE;gBACpC,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,SAAS,CAAA;aAC3C;YAED,IAAI,cAAc,CAAC,YAAY,IAAI,IAAI,EAAE;gBACvC,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,YAAY,CAAA;aACjD;YAED,IAAI,cAAc,CAAC,UAAU,IAAI,IAAI,EAAE;gBACrC,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,UAAU,CAAA;aAC7C;SACF;IACH,CAAC;IAEK,OAAO,CACX,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QAC3E,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACvE,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QAC1E,CAAC;KAAA;IAEK,IAAI,CACR,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACxE,CAAC;KAAA;IAEK,KAAK,CACT,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACzE,CAAC;KAAA;IAEK,GAAG,CACP,UAAkB,EAClB,IAAY,EACZ,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACvE,CAAC;KAAA;IAEK,IAAI,CACR,UAAkB,EAClB,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAA;QACxE,CAAC;KAAA;IAEK,UAAU,CACd,IAAY,EACZ,UAAkB,EAClB,MAA6B,EAC7B,iBAA4C;;YAE5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAA;QAClE,CAAC;KAAA;IAED;;;OAGG;IACG,OAAO,CACX,UAAkB,EAClB,oBAA8C,EAAE;;YAEhD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,GAAG,CAC5C,UAAU,EACV,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,QAAQ,CACZ,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,IAAI,CAC7C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,OAAO,CACX,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,GAAG,CAC5C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAEK,SAAS,CACb,UAAkB,EAClB,GAAQ,EACR,oBAA8C,EAAE;;YAEhD,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;YACjD,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAClE,iBAAiB,EACjB,OAAO,CAAC,MAAM,EACd,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,2BAA2B,CACvE,iBAAiB,EACjB,OAAO,CAAC,WAAW,EACnB,UAAU,CAAC,eAAe,CAC3B,CAAA;YACD,MAAM,GAAG,GAAuB,MAAM,IAAI,CAAC,KAAK,CAC9C,UAAU,EACV,IAAI,EACJ,iBAAiB,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,gBAAgB,CAAI,GAAG,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QAC3D,CAAC;KAAA;IAED;;;;OAIG;IACG,OAAO,CACX,IAAY,EACZ,UAAkB,EAClB,IAA2C,EAC3C,OAAkC;;YAElC,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;aACrD;YAED,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;YACrC,IAAI,IAAI,GAAoB,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YAE1E,oEAAoE;YACpE,MAAM,QAAQ,GACZ,IAAI,CAAC,aAAa,IAAI,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACrD,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC;gBACtB,CAAC,CAAC,CAAC,CAAA;YACP,IAAI,QAAQ,GAAG,CAAC,CAAA;YAEhB,IAAI,QAAwC,CAAA;YAC5C,GAAG;gBACD,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;gBAE5C,4CAA4C;gBAC5C,IACE,QAAQ;oBACR,QAAQ,CAAC,OAAO;oBAChB,QAAQ,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,CAAC,YAAY,EACtD;oBACA,IAAI,qBAAqD,CAAA;oBAEzD,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;wBACnC,IAAI,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,EAAE;4BAC7C,qBAAqB,GAAG,OAAO,CAAA;4BAC/B,MAAK;yBACN;qBACF;oBAED,IAAI,qBAAqB,EAAE;wBACzB,OAAO,qBAAqB,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;qBACpE;yBAAM;wBACL,+EAA+E;wBAC/E,yCAAyC;wBACzC,OAAO,QAAQ,CAAA;qBAChB;iBACF;gBAED,IAAI,kBAAkB,GAAW,IAAI,CAAC,aAAa,CAAA;gBACnD,OACE,QAAQ,CAAC,OAAO,CAAC,UAAU;oBAC3B,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC;oBACvD,IAAI,CAAC,eAAe;oBACpB,kBAAkB,GAAG,CAAC,EACtB;oBACA,MAAM,WAAW,GACf,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;oBACtC,IAAI,CAAC,WAAW,EAAE;wBAChB,kDAAkD;wBAClD,MAAK;qBACN;oBACD,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAA;oBAC9C,IACE,SAAS,CAAC,QAAQ,KAAK,QAAQ;wBAC/B,SAAS,CAAC,QAAQ,KAAK,iBAAiB,CAAC,QAAQ;wBACjD,CAAC,IAAI,CAAC,uBAAuB,EAC7B;wBACA,MAAM,IAAI,KAAK,CACb,8KAA8K,CAC/K,CAAA;qBACF;oBAED,qEAAqE;oBACrE,mCAAmC;oBACnC,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBAEzB,mEAAmE;oBACnE,IAAI,iBAAiB,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,EAAE;wBACrD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;4BAC5B,oCAAoC;4BACpC,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,eAAe,EAAE;gCAC5C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAA;6BACvB;yBACF;qBACF;oBAED,kDAAkD;oBAClD,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;oBAC7D,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBAC5C,kBAAkB,EAAE,CAAA;iBACrB;gBAED,IACE,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU;oBAC5B,CAAC,sBAAsB,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,EAC7D;oBACA,8DAA8D;oBAC9D,OAAO,QAAQ,CAAA;iBAChB;gBAED,QAAQ,IAAI,CAAC,CAAA;gBAEb,IAAI,QAAQ,GAAG,QAAQ,EAAE;oBACvB,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBACzB,MAAM,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAA;iBAChD;aACF,QAAQ,QAAQ,GAAG,QAAQ,EAAC;YAE7B,OAAO,QAAQ,CAAA;QACjB,CAAC;KAAA;IAED;;OAEG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;SACtB;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;IACvB,CAAC;IAED;;;;OAIG;IACG,UAAU,CACd,IAAqB,EACrB,IAA2C;;YAE3C,OAAO,IAAI,OAAO,CAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACzD,SAAS,iBAAiB,CAAC,GAAW,EAAE,GAAwB;oBAC9D,IAAI,GAAG,EAAE;wBACP,MAAM,CAAC,GAAG,CAAC,CAAA;qBACZ;yBAAM,IAAI,CAAC,GAAG,EAAE;wBACf,qDAAqD;wBACrD,MAAM,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;qBACnC;yBAAM;wBACL,OAAO,CAAC,GAAG,CAAC,CAAA;qBACb;gBACH,CAAC;gBAED,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAA;YAC5D,CAAC,CAAC,CAAA;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACH,sBAAsB,CACpB,IAAqB,EACrB,IAA2C,EAC3C,QAAyD;QAEzD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;gBACzB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE,CAAA;aAC1B;YACD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;SACzE;QAED,IAAI,cAAc,GAAG,KAAK,CAAA;QAC1B,SAAS,YAAY,CAAC,GAAW,EAAE,GAAwB;YACzD,IAAI,CAAC,cAAc,EAAE;gBACnB,cAAc,GAAG,IAAI,CAAA;gBACrB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACnB;QACH,CAAC;QAED,MAAM,GAAG,GAAuB,IAAI,CAAC,UAAU,CAAC,OAAO,CACrD,IAAI,CAAC,OAAO,EACZ,CAAC,GAAyB,EAAE,EAAE;YAC5B,MAAM,GAAG,GAAuB,IAAI,kBAAkB,CAAC,GAAG,CAAC,CAAA;YAC3D,YAAY,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;QAC9B,CAAC,CACF,CAAA;QAED,IAAI,MAAkB,CAAA;QACtB,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;YACtB,MAAM,GAAG,IAAI,CAAA;QACf,CAAC,CAAC,CAAA;QAEF,wEAAwE;QACxE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE;YACpD,IAAI,MAAM,EAAE;gBACV,MAAM,CAAC,GAAG,EAAE,CAAA;aACb;YACD,YAAY,CAAC,IAAI,KAAK,CAAC,oBAAoB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAClE,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,GAAG;YAC3B,8BAA8B;YAC9B,0BAA0B;YAC1B,YAAY,CAAC,GAAG,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;QAEF,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;SACxB;QAED,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YACpC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE;gBACf,GAAG,CAAC,GAAG,EAAE,CAAA;YACX,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SACf;aAAM;YACL,GAAG,CAAC,GAAG,EAAE,CAAA;SACV;IACH,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,SAAiB;QACxB,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;IAClC,CAAC;IAED,kBAAkB,CAAC,SAAiB;QAClC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAA;QACpC,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC1C,MAAM,QAAQ,GAAG,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAA;QAC9C,IAAI,CAAC,QAAQ,EAAE;YACb,OAAM;SACP;QAED,OAAO,IAAI,CAAC,wBAAwB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC3D,CAAC;IAEO,eAAe,CACrB,MAAc,EACd,UAAe,EACf,OAAkC;QAElC,MAAM,IAAI,GAAqC,EAAE,CAAA;QAEjD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAA;QAC3B,MAAM,QAAQ,GAAY,IAAI,CAAC,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAC9D,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;QACzC,MAAM,WAAW,GAAW,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAE/C,IAAI,CAAC,OAAO,GAAwB,EAAE,CAAA;QACtC,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAA;QAC3C,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI;YACrC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC/B,CAAC,CAAC,WAAW,CAAA;QACf,IAAI,CAAC,OAAO,CAAC,IAAI;YACf,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAA;QACjE,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAA;QAC5B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAClD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,SAAS,CAAA;SACpD;QAED,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAEnD,+CAA+C;QAC/C,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACnC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;aACrC;SACF;QAED,OAAO,IAAI,CAAA;IACb,CAAC;IAEO,aAAa,CACnB,OAAkC;QAElC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;YACtD,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAC1C,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAC7B,CAAA;SACF;QAED,OAAO,aAAa,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;IACrC,CAAC;IAEO,2BAA2B,CACjC,iBAA2C,EAC3C,MAAc,EACd,QAAgB;QAEhB,IAAI,YAAgC,CAAA;QACpC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;YACtD,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;SAClE;QACD,OAAO,iBAAiB,CAAC,MAAM,CAAC,IAAI,YAAY,IAAI,QAAQ,CAAA;IAC9D,CAAC;IAEO,SAAS,CAAC,SAAc;QAC9B,IAAI,KAAK,CAAA;QACT,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAC1C,MAAM,QAAQ,GAAG,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAA;QAE9C,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YAC/B,KAAK,GAAG,IAAI,CAAC,WAAW,CAAA;SACzB;QAED,IAAI,CAAC,QAAQ,EAAE;YACb,KAAK,GAAG,IAAI,CAAC,MAAM,CAAA;SACpB;QAED,+CAA+C;QAC/C,IAAI,KAAK,EAAE;YACT,OAAO,KAAK,CAAA;SACb;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAChD,IAAI,UAAU,GAAG,GAAG,CAAA;QACpB,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAA;SAC3E;QAED,sGAAsG;QACtG,IAAI,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACjC,MAAM,YAAY,GAAG;gBACnB,UAAU;gBACV,SAAS,EAAE,IAAI,CAAC,UAAU;gBAC1B,KAAK,kCACA,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI;oBAC9C,SAAS,EAAE,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE;iBACvD,CAAC,KACF,IAAI,EAAE,QAAQ,CAAC,QAAQ,EACvB,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;aACF,CAAA;YAED,IAAI,WAAqB,CAAA;YACzB,MAAM,SAAS,GAAG,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAA;YAChD,IAAI,QAAQ,EAAE;gBACZ,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAA;aACvE;iBAAM;gBACL,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAA;aACrE;YAED,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;YACjC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;SACzB;QAED,uDAAuD;QACvD,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,OAAO,GAAG,EAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAC,CAAA;YACxD,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YACrE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;SACpB;QAED,IAAI,QAAQ,IAAI,IAAI,CAAC,eAAe,EAAE;YACpC,wGAAwG;YACxG,kFAAkF;YAClF,mDAAmD;YACnD,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,EAAE;gBACjD,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAA;SACH;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,wBAAwB,CAAC,SAAc,EAAE,QAAa;QAC5D,IAAI,UAAU,CAAA;QAEd,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAA;SACxC;QAED,+CAA+C;QAC/C,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAA;SAClB;QAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAChD,UAAU,GAAG,IAAI,mBAAU,iBACzB,GAAG,EAAE,QAAQ,CAAC,IAAI,EAClB,UAAU,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IACjC,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI;YAC9C,KAAK,EAAE,GAAG,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,EAAE;SACnD,CAAC,EACF,CAAA;QACF,IAAI,CAAC,qBAAqB,GAAG,UAAU,CAAA;QAEvC,IAAI,QAAQ,IAAI,IAAI,CAAC,eAAe,EAAE;YACpC,wGAAwG;YACxG,kFAAkF;YAClF,mDAAmD;YACnD,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,EAAE;gBACtE,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAA;SACH;QAED,OAAO,UAAU,CAAA;IACnB,CAAC;IAEa,0BAA0B,CAAC,WAAmB;;YAC1D,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,yBAAyB,EAAE,WAAW,CAAC,CAAA;YAC9D,MAAM,EAAE,GAAW,2BAA2B,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAA;YACzE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;QAChE,CAAC;KAAA;IAEa,gBAAgB,CAC5B,GAAuB,EACvB,OAA4B;;YAE5B,OAAO,IAAI,OAAO,CAAuB,CAAO,OAAO,EAAE,MAAM,EAAE,EAAE;gBACjE,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,CAAA;gBAE9C,MAAM,QAAQ,GAAyB;oBACrC,UAAU;oBACV,MAAM,EAAE,IAAI;oBACZ,OAAO,EAAE,EAAE;iBACZ,CAAA;gBAED,uCAAuC;gBACvC,IAAI,UAAU,KAAK,SAAS,CAAC,QAAQ,EAAE;oBACrC,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;gBAED,+BAA+B;gBAE/B,SAAS,oBAAoB,CAAC,GAAQ,EAAE,KAAU;oBAChD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;wBAC7B,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;wBACzB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE;4BACvB,OAAO,CAAC,CAAA;yBACT;qBACF;oBAED,OAAO,KAAK,CAAA;gBACd,CAAC;gBAED,IAAI,GAAQ,CAAA;gBACZ,IAAI,QAA4B,CAAA;gBAEhC,IAAI;oBACF,QAAQ,GAAG,MAAM,GAAG,CAAC,QAAQ,EAAE,CAAA;oBAC/B,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBACnC,IAAI,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE;4BACvC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAA;yBACjD;6BAAM;4BACL,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;yBAC3B;wBAED,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAA;qBACtB;oBAED,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,CAAA;iBACvC;gBAAC,OAAO,GAAG,EAAE;oBACZ,iEAAiE;iBAClE;gBAED,yDAAyD;gBACzD,IAAI,UAAU,GAAG,GAAG,EAAE;oBACpB,IAAI,GAAW,CAAA;oBAEf,0DAA0D;oBAC1D,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE;wBACtB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAA;qBAClB;yBAAM,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBAC1C,yEAAyE;wBACzE,GAAG,GAAG,QAAQ,CAAA;qBACf;yBAAM;wBACL,GAAG,GAAG,oBAAoB,UAAU,GAAG,CAAA;qBACxC;oBAED,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;oBAChD,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;oBAE5B,MAAM,CAAC,GAAG,CAAC,CAAA;iBACZ;qBAAM;oBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;YACH,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AA3rBD,gCA2rBC;AAED,MAAM,aAAa,GAAG,CAAC,GAA2B,EAAO,EAAE,CACzD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/http-client/lib/proxy.js b/node_modules/@actions/http-client/lib/proxy.js index fac1cfc5e..d9c43ad1b 100644 --- a/node_modules/@actions/http-client/lib/proxy.js +++ b/node_modules/@actions/http-client/lib/proxy.js @@ -16,11 +16,11 @@ function getProxyUrl(reqUrl) { })(); if (proxyVar) { try { - return new DecodedURL(proxyVar); + return new URL(proxyVar); } catch (_a) { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new DecodedURL(`http://${proxyVar}`); + return new URL(`http://${proxyVar}`); } } else { @@ -79,17 +79,4 @@ function isLoopbackAddress(host) { hostLower.startsWith('[::1]') || hostLower.startsWith('[0:0:0:0:0:0:0:1]')); } -class DecodedURL extends URL { - constructor(url, base) { - super(url, base); - this._decodedUsername = decodeURIComponent(super.username); - this._decodedPassword = decodeURIComponent(super.password); - } - get username() { - return this._decodedUsername; - } - get password() { - return this._decodedPassword; - } -} //# sourceMappingURL=proxy.js.map \ No newline at end of file diff --git a/node_modules/@actions/http-client/lib/proxy.js.map b/node_modules/@actions/http-client/lib/proxy.js.map index 0d7f8ccda..585c17de7 100644 --- a/node_modules/@actions/http-client/lib/proxy.js.map +++ b/node_modules/@actions/http-client/lib/proxy.js.map @@ -1 +1 @@ -{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,MAAW;IACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAA;IAE7C,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;QACvB,OAAO,SAAS,CAAA;KACjB;IAED,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;QACrB,IAAI,QAAQ,EAAE;YACZ,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;SAChE;aAAM;YACL,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC9D;IACH,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,QAAQ,EAAE;QACZ,IAAI;YACF,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAA;SAChC;QAAC,WAAM;YACN,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;gBACrE,OAAO,IAAI,UAAU,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAA;SAC9C;KACF;SAAM;QACL,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AAzBD,kCAyBC;AAED,SAAgB,WAAW,CAAC,MAAW;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,OAAO,KAAK,CAAA;KACb;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAA;IAC/B,IAAI,iBAAiB,CAAC,OAAO,CAAC,EAAE;QAC9B,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;IACxE,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,KAAK,CAAA;KACb;IAED,6BAA6B;IAC7B,IAAI,OAA2B,CAAA;IAC/B,IAAI,MAAM,CAAC,IAAI,EAAE;QACf,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;KAC9B;SAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,EAAE;QACtC,OAAO,GAAG,EAAE,CAAA;KACb;SAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACvC,OAAO,GAAG,GAAG,CAAA;KACd;IAED,qDAAqD;IACrD,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;IACrD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAA;KACrD;IAED,uCAAuC;IACvC,KAAK,MAAM,gBAAgB,IAAI,OAAO;SACnC,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SAChC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;QACjB,IACE,gBAAgB,KAAK,GAAG;YACxB,aAAa,CAAC,IAAI,CAChB,CAAC,CAAC,EAAE,CACF,CAAC,KAAK,gBAAgB;gBACtB,CAAC,CAAC,QAAQ,CAAC,IAAI,gBAAgB,EAAE,CAAC;gBAClC,CAAC,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC;oBAC/B,CAAC,CAAC,QAAQ,CAAC,GAAG,gBAAgB,EAAE,CAAC,CAAC,CACvC,EACD;YACA,OAAO,IAAI,CAAA;SACZ;KACF;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAnDD,kCAmDC;AAED,SAAS,iBAAiB,CAAC,IAAY;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IACpC,OAAO,CACL,SAAS,KAAK,WAAW;QACzB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;QAC5B,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;QAC7B,SAAS,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAC1C,CAAA;AACH,CAAC;AAED,MAAM,UAAW,SAAQ,GAAG;IAI1B,YAAY,GAAiB,EAAE,IAAmB;QAChD,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;QAChB,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC1D,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAC5D,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,gBAAgB,CAAA;IAC9B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,gBAAgB,CAAA;IAC9B,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../src/proxy.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,MAAW;IACrC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAA;IAE7C,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;QACvB,OAAO,SAAS,CAAA;KACjB;IAED,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;QACrB,IAAI,QAAQ,EAAE;YACZ,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;SAChE;aAAM;YACL,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;SAC9D;IACH,CAAC,CAAC,EAAE,CAAA;IAEJ,IAAI,QAAQ,EAAE;QACZ,IAAI;YACF,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAA;SACzB;QAAC,WAAM;YACN,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;gBACrE,OAAO,IAAI,GAAG,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAA;SACvC;KACF;SAAM;QACL,OAAO,SAAS,CAAA;KACjB;AACH,CAAC;AAzBD,kCAyBC;AAED,SAAgB,WAAW,CAAC,MAAW;IACrC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,OAAO,KAAK,CAAA;KACb;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAA;IAC/B,IAAI,iBAAiB,CAAC,OAAO,CAAC,EAAE;QAC9B,OAAO,IAAI,CAAA;KACZ;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;IACxE,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,KAAK,CAAA;KACb;IAED,6BAA6B;IAC7B,IAAI,OAA2B,CAAA;IAC/B,IAAI,MAAM,CAAC,IAAI,EAAE;QACf,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;KAC9B;SAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,OAAO,EAAE;QACtC,OAAO,GAAG,EAAE,CAAA;KACb;SAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACvC,OAAO,GAAG,GAAG,CAAA;KACd;IAED,qDAAqD;IACrD,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAA;IACrD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,aAAa,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC,CAAA;KACrD;IAED,uCAAuC;IACvC,KAAK,MAAM,gBAAgB,IAAI,OAAO;SACnC,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;SAChC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;QACjB,IACE,gBAAgB,KAAK,GAAG;YACxB,aAAa,CAAC,IAAI,CAChB,CAAC,CAAC,EAAE,CACF,CAAC,KAAK,gBAAgB;gBACtB,CAAC,CAAC,QAAQ,CAAC,IAAI,gBAAgB,EAAE,CAAC;gBAClC,CAAC,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC;oBAC/B,CAAC,CAAC,QAAQ,CAAC,GAAG,gBAAgB,EAAE,CAAC,CAAC,CACvC,EACD;YACA,OAAO,IAAI,CAAA;SACZ;KACF;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAnDD,kCAmDC;AAED,SAAS,iBAAiB,CAAC,IAAY;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IACpC,OAAO,CACL,SAAS,KAAK,WAAW;QACzB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;QAC5B,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;QAC7B,SAAS,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAC1C,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json index 3960a83a5..0ae89c34b 100644 --- a/node_modules/@actions/http-client/package.json +++ b/node_modules/@actions/http-client/package.json @@ -1,6 +1,6 @@ { "name": "@actions/http-client", - "version": "2.2.3", + "version": "2.2.1", "description": "Actions Http Client", "keywords": [ "github", diff --git a/node_modules/@babel/code-frame/lib/index.js b/node_modules/@babel/code-frame/lib/index.js index b409f3013..53461aa13 100644 --- a/node_modules/@babel/code-frame/lib/index.js +++ b/node_modules/@babel/code-frame/lib/index.js @@ -1,94 +1,33 @@ -'use strict'; +"use strict"; -Object.defineProperty(exports, '__esModule', { value: true }); - -var picocolors = require('picocolors'); -var jsTokens = require('js-tokens'); -var helperValidatorIdentifier = require('@babel/helper-validator-identifier'); - -function isColorSupported() { - return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported - ); -} +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.codeFrameColumns = codeFrameColumns; +exports.default = _default; +var _highlight = require("@babel/highlight"); +var _picocolors = _interopRequireWildcard(require("picocolors"), true); +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? 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; } +const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default; const compose = (f, g) => v => f(g(v)); -function buildDefs(colors) { +let pcWithForcedColor = undefined; +function getColors(forceColor) { + if (forceColor) { + var _pcWithForcedColor; + (_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true); + return pcWithForcedColor; + } + return colors; +} +let deprecationWarningShown = false; +function getDefs(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 + message: compose(colors.red, colors.bold) }; } -const defsOn = buildDefs(picocolors.createColors(true)); -const defsOff = buildDefs(picocolors.createColors(false)); -function getDefs(enabled) { - return enabled ? defsOn : defsOff; -} - -const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]); -const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/; -const BRACKET = /^[()[\]{}]$/; -let tokenize; -{ - const JSX_TAG = /^[a-z][\w-]*$/i; - const getTokenType = function (token, offset, text) { - if (token.type === "name") { - if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) { - return "keyword"; - } - if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === " defs[type](str)).join("\n"); - } else { - highlighted += value; - } - } - return highlighted; -} - -let deprecationWarningShown = false; const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; function getMarkerLines(loc, source, opts) { const startLoc = Object.assign({ @@ -147,8 +86,12 @@ function getMarkerLines(loc, source, opts) { }; } function codeFrameColumns(rawLines, loc, opts = {}) { - const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode; - const defs = getDefs(shouldHighlight); + const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts); + const colors = getColors(opts.forceColor); + const defs = getDefs(colors); + const maybeHighlight = (fmt, string) => { + return highlighted ? fmt(string) : string; + }; const lines = rawLines.split(NEWLINE); const { start, @@ -157,7 +100,7 @@ function codeFrameColumns(rawLines, loc, opts = {}) { } = getMarkerLines(loc, lines, opts); const hasColumns = loc.start && typeof loc.start.column === "number"; const numberMaxWidth = String(end).length; - const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines; + const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines; let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => { const number = start + 1 + index; const paddedNumber = ` ${number}`.slice(-numberMaxWidth); @@ -169,26 +112,26 @@ function codeFrameColumns(rawLines, loc, opts = {}) { if (Array.isArray(hasMarker)) { const markerSpacing = line.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(""); + markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join(""); if (lastMarkerLine && opts.message) { - markerLine += " " + defs.message(opts.message); + markerLine += " " + maybeHighlight(defs.message, opts.message); } } - return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); + return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join(""); } else { - return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`; + return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`; } }).join("\n"); if (opts.message && !hasColumns) { frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`; } - if (shouldHighlight) { - return defs.reset(frame); + if (highlighted) { + return colors.reset(frame); } else { return frame; } } -function index (rawLines, lineNumber, colNumber, opts = {}) { +function _default(rawLines, lineNumber, colNumber, opts = {}) { if (!deprecationWarningShown) { deprecationWarningShown = true; const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; @@ -210,7 +153,4 @@ function index (rawLines, lineNumber, colNumber, opts = {}) { return codeFrameColumns(rawLines, location, opts); } -exports.codeFrameColumns = codeFrameColumns; -exports.default = index; -exports.highlight = highlight; //# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/code-frame/lib/index.js.map b/node_modules/@babel/code-frame/lib/index.js.map index 46a181dcd..268f2c527 100644 --- a/node_modules/@babel/code-frame/lib/index.js.map +++ b/node_modules/@babel/code-frame/lib/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../src/defs.ts","../src/highlight.ts","../src/index.ts"],"sourcesContent":["import picocolors, { createColors } from \"picocolors\";\nimport type { Colors, Formatter } from \"picocolors/types\";\n\nexport function isColorSupported() {\n return (\n // See https://github.com/alexeyraspopov/picocolors/issues/62\n typeof process === \"object\" &&\n (process.env.FORCE_COLOR === \"0\" || process.env.FORCE_COLOR === \"false\")\n ? false\n : picocolors.isColorSupported\n );\n}\n\nexport type InternalTokenType =\n | \"keyword\"\n | \"capitalized\"\n | \"jsxIdentifier\"\n | \"punctuator\"\n | \"number\"\n | \"string\"\n | \"regex\"\n | \"comment\"\n | \"invalid\";\n\ntype UITokens = \"gutter\" | \"marker\" | \"message\";\n\nexport type Defs = {\n [_ in InternalTokenType | UITokens | \"reset\"]: Formatter;\n};\n\nconst compose: (f: (gv: U) => V, g: (v: T) => U) => (v: T) => V =\n (f, g) => v =>\n f(g(v));\n\n/**\n * Styles for token types.\n */\nfunction buildDefs(colors: Colors): Defs {\n return {\n keyword: colors.cyan,\n capitalized: colors.yellow,\n jsxIdentifier: colors.yellow,\n punctuator: colors.yellow,\n number: colors.magenta,\n string: colors.green,\n regex: colors.magenta,\n comment: colors.gray,\n invalid: compose(compose(colors.white, colors.bgRed), colors.bold),\n\n gutter: colors.gray,\n marker: compose(colors.red, colors.bold),\n message: compose(colors.red, colors.bold),\n\n reset: colors.reset,\n };\n}\n\nconst defsOn = buildDefs(createColors(true));\nconst defsOff = buildDefs(createColors(false));\n\nexport function getDefs(enabled: boolean): Defs {\n return enabled ? defsOn : defsOff;\n}\n","import type { Token as JSToken, JSXToken } from \"js-tokens\";\nimport jsTokens from \"js-tokens\";\n\nimport {\n isStrictReservedWord,\n isKeyword,\n} from \"@babel/helper-validator-identifier\";\n\nimport { getDefs, type InternalTokenType } from \"./defs.ts\";\n\n/**\n * Names that are always allowed as identifiers, but also appear as keywords\n * within certain syntactic productions.\n *\n * https://tc39.es/ecma262/#sec-keywords-and-reserved-words\n *\n * `target` has been omitted since it is very likely going to be a false\n * positive.\n */\nconst sometimesKeywords = new Set([\"as\", \"async\", \"from\", \"get\", \"of\", \"set\"]);\n\ntype Token = {\n type: InternalTokenType | \"uncolored\";\n value: string;\n};\n\n/**\n * RegExp to test for newlines in terminal.\n */\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * RegExp to test for the three types of brackets.\n */\nconst BRACKET = /^[()[\\]{}]$/;\n\nlet tokenize: (\n text: string,\n) => Generator<{ type: InternalTokenType | \"uncolored\"; value: string }>;\n\nif (process.env.BABEL_8_BREAKING) {\n /**\n * Get the type of token, specifying punctuator type.\n */\n const getTokenType = function (\n token: JSToken | JSXToken,\n ): InternalTokenType | \"uncolored\" {\n if (token.type === \"IdentifierName\") {\n if (\n isKeyword(token.value) ||\n isStrictReservedWord(token.value, true) ||\n sometimesKeywords.has(token.value)\n ) {\n return \"keyword\";\n }\n\n if (token.value[0] !== token.value[0].toLowerCase()) {\n return \"capitalized\";\n }\n }\n\n if (token.type === \"Punctuator\" && BRACKET.test(token.value)) {\n return \"uncolored\";\n }\n\n if (token.type === \"Invalid\" && token.value === \"@\") {\n return \"punctuator\";\n }\n\n switch (token.type) {\n case \"NumericLiteral\":\n return \"number\";\n\n case \"StringLiteral\":\n case \"JSXString\":\n case \"NoSubstitutionTemplate\":\n return \"string\";\n\n case \"RegularExpressionLiteral\":\n return \"regex\";\n\n case \"Punctuator\":\n case \"JSXPunctuator\":\n return \"punctuator\";\n\n case \"MultiLineComment\":\n case \"SingleLineComment\":\n return \"comment\";\n\n case \"Invalid\":\n case \"JSXInvalid\":\n return \"invalid\";\n\n case \"JSXIdentifier\":\n return \"jsxIdentifier\";\n\n default:\n return \"uncolored\";\n }\n };\n\n /**\n * Turn a string of JS into an array of objects.\n */\n tokenize = function* (text: string): Generator {\n for (const token of jsTokens(text, { jsx: true })) {\n switch (token.type) {\n case \"TemplateHead\":\n yield { type: \"string\", value: token.value.slice(0, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateMiddle\":\n yield { type: \"punctuator\", value: \"}\" };\n yield { type: \"string\", value: token.value.slice(1, -2) };\n yield { type: \"punctuator\", value: \"${\" };\n break;\n\n case \"TemplateTail\":\n yield { type: \"punctuator\", value: \"}\" };\n yield { type: \"string\", value: token.value.slice(1) };\n break;\n\n default:\n yield {\n type: getTokenType(token),\n value: token.value,\n };\n }\n }\n };\n} else {\n /**\n * RegExp to test for what seems to be a JSX tag name.\n */\n const JSX_TAG = /^[a-z][\\w-]*$/i;\n\n // The token here is defined in js-tokens@4. However we don't bother\n // typing it since the whole block will be removed in Babel 8\n const getTokenType = function (token: any, offset: number, text: string) {\n if (token.type === \"name\") {\n if (\n isKeyword(token.value) ||\n isStrictReservedWord(token.value, true) ||\n sometimesKeywords.has(token.value)\n ) {\n return \"keyword\";\n }\n\n if (\n JSX_TAG.test(token.value) &&\n (text[offset - 1] === \"<\" || text.slice(offset - 2, offset) === \" defs[type as InternalTokenType](str))\n .join(\"\\n\");\n } else {\n highlighted += value;\n }\n }\n\n return highlighted;\n}\n","import { getDefs, isColorSupported } from \"./defs.ts\";\nimport { highlight } from \"./highlight.ts\";\n\nexport { highlight };\n\nlet deprecationWarningShown = false;\n\ntype Location = {\n column: number;\n line: number;\n};\n\ntype NodeLocation = {\n end?: Location;\n start: Location;\n};\n\nexport interface Options {\n /** Syntax highlight the code as JavaScript for terminals. default: false */\n highlightCode?: boolean;\n /** The number of lines to show above the error. default: 2 */\n linesAbove?: number;\n /** The number of lines to show below the error. default: 3 */\n linesBelow?: number;\n /**\n * Forcibly syntax highlight the code as JavaScript (for non-terminals);\n * overrides highlightCode.\n * default: false\n */\n forceColor?: boolean;\n /**\n * Pass in a string to be displayed inline (if possible) next to the\n * highlighted location in the code. If it can't be positioned inline,\n * it will be placed above the code frame.\n * default: nothing\n */\n message?: string;\n}\n\n/**\n * RegExp to test for newlines in terminal.\n */\n\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * Extract what lines should be marked and highlighted.\n */\n\ntype MarkerLines = Record;\n\nfunction getMarkerLines(\n loc: NodeLocation,\n source: Array,\n opts: Options,\n): {\n start: number;\n end: number;\n markerLines: MarkerLines;\n} {\n const startLoc: Location = {\n column: 0,\n line: -1,\n ...loc.start,\n };\n const endLoc: Location = {\n ...startLoc,\n ...loc.end,\n };\n const { linesAbove = 2, linesBelow = 3 } = opts || {};\n const startLine = startLoc.line;\n const startColumn = startLoc.column;\n const endLine = endLoc.line;\n const endColumn = endLoc.column;\n\n let start = Math.max(startLine - (linesAbove + 1), 0);\n let end = Math.min(source.length, endLine + linesBelow);\n\n if (startLine === -1) {\n start = 0;\n }\n\n if (endLine === -1) {\n end = source.length;\n }\n\n const lineDiff = endLine - startLine;\n const markerLines: MarkerLines = {};\n\n if (lineDiff) {\n for (let i = 0; i <= lineDiff; i++) {\n const lineNumber = i + startLine;\n\n if (!startColumn) {\n markerLines[lineNumber] = true;\n } else if (i === 0) {\n const sourceLength = source[lineNumber - 1].length;\n\n markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];\n } else if (i === lineDiff) {\n markerLines[lineNumber] = [0, endColumn];\n } else {\n const sourceLength = source[lineNumber - i].length;\n\n markerLines[lineNumber] = [0, sourceLength];\n }\n }\n } else {\n if (startColumn === endColumn) {\n if (startColumn) {\n markerLines[startLine] = [startColumn, 0];\n } else {\n markerLines[startLine] = true;\n }\n } else {\n markerLines[startLine] = [startColumn, endColumn - startColumn];\n }\n }\n\n return { start, end, markerLines };\n}\n\nexport function codeFrameColumns(\n rawLines: string,\n loc: NodeLocation,\n opts: Options = {},\n): string {\n const shouldHighlight =\n opts.forceColor || (isColorSupported() && opts.highlightCode);\n const defs = getDefs(shouldHighlight);\n\n const lines = rawLines.split(NEWLINE);\n const { start, end, markerLines } = getMarkerLines(loc, lines, opts);\n const hasColumns = loc.start && typeof loc.start.column === \"number\";\n\n const numberMaxWidth = String(end).length;\n\n const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;\n\n let frame = highlightedLines\n .split(NEWLINE, end)\n .slice(start, end)\n .map((line, index) => {\n const number = start + 1 + index;\n const paddedNumber = ` ${number}`.slice(-numberMaxWidth);\n const gutter = ` ${paddedNumber} |`;\n const hasMarker = markerLines[number];\n const lastMarkerLine = !markerLines[number + 1];\n if (hasMarker) {\n let markerLine = \"\";\n if (Array.isArray(hasMarker)) {\n const markerSpacing = line\n .slice(0, Math.max(hasMarker[0] - 1, 0))\n .replace(/[^\\t]/g, \" \");\n const numberOfMarkers = hasMarker[1] || 1;\n\n markerLine = [\n \"\\n \",\n defs.gutter(gutter.replace(/\\d/g, \" \")),\n \" \",\n markerSpacing,\n defs.marker(\"^\").repeat(numberOfMarkers),\n ].join(\"\");\n\n if (lastMarkerLine && opts.message) {\n markerLine += \" \" + defs.message(opts.message);\n }\n }\n return [\n defs.marker(\">\"),\n defs.gutter(gutter),\n line.length > 0 ? ` ${line}` : \"\",\n markerLine,\n ].join(\"\");\n } else {\n return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : \"\"}`;\n }\n })\n .join(\"\\n\");\n\n if (opts.message && !hasColumns) {\n frame = `${\" \".repeat(numberMaxWidth + 1)}${opts.message}\\n${frame}`;\n }\n\n if (shouldHighlight) {\n return defs.reset(frame);\n } else {\n return frame;\n }\n}\n\n/**\n * Create a code frame, adding line numbers, code highlighting, and pointing to a given position.\n */\n\nexport default function (\n rawLines: string,\n lineNumber: number,\n colNumber?: number | null,\n opts: Options = {},\n): string {\n if (!deprecationWarningShown) {\n deprecationWarningShown = true;\n\n const message =\n \"Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.\";\n\n if (process.emitWarning) {\n // A string is directly supplied to emitWarning, because when supplying an\n // Error object node throws in the tests because of different contexts\n process.emitWarning(message, \"DeprecationWarning\");\n } else {\n const deprecationError = new Error(message);\n deprecationError.name = \"DeprecationWarning\";\n console.warn(new Error(message));\n }\n }\n\n colNumber = Math.max(colNumber, 0);\n\n const location: NodeLocation = {\n start: { column: colNumber, line: lineNumber },\n };\n\n return codeFrameColumns(rawLines, location, opts);\n}\n"],"names":["isColorSupported","process","env","FORCE_COLOR","picocolors","compose","f","g","v","buildDefs","colors","keyword","cyan","capitalized","yellow","jsxIdentifier","punctuator","number","magenta","string","green","regex","comment","gray","invalid","white","bgRed","bold","gutter","marker","red","message","reset","defsOn","createColors","defsOff","getDefs","enabled","sometimesKeywords","Set","NEWLINE","BRACKET","tokenize","JSX_TAG","getTokenType","token","offset","text","type","isKeyword","value","isStrictReservedWord","has","test","slice","toLowerCase","match","jsTokens","default","exec","matchToToken","index","highlight","defs","highlighted","split","map","str","join","deprecationWarningShown","getMarkerLines","loc","source","opts","startLoc","Object","assign","column","line","start","endLoc","end","linesAbove","linesBelow","startLine","startColumn","endLine","endColumn","Math","max","min","length","lineDiff","markerLines","i","lineNumber","sourceLength","codeFrameColumns","rawLines","shouldHighlight","forceColor","highlightCode","lines","hasColumns","numberMaxWidth","String","highlightedLines","frame","paddedNumber","hasMarker","lastMarkerLine","markerLine","Array","isArray","markerSpacing","replace","numberOfMarkers","repeat","colNumber","emitWarning","deprecationError","Error","name","console","warn","location"],"mappings":";;;;;;;;AAGO,SAASA,gBAAgBA,GAAG;EACjC,QAEE,OAAOC,OAAO,KAAK,QAAQ,KACxBA,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,GAAG,IAAIF,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,OAAO,CAAC,GACtE,KAAK,GACLC,UAAU,CAACJ,gBAAAA;AAAgB,IAAA;AAEnC,CAAA;AAmBA,MAAMK,OAAkE,GACtEA,CAACC,CAAC,EAAEC,CAAC,KAAKC,CAAC,IACTF,CAAC,CAACC,CAAC,CAACC,CAAC,CAAC,CAAC,CAAA;AAKX,SAASC,SAASA,CAACC,MAAc,EAAQ;EACvC,OAAO;IACLC,OAAO,EAAED,MAAM,CAACE,IAAI;IACpBC,WAAW,EAAEH,MAAM,CAACI,MAAM;IAC1BC,aAAa,EAAEL,MAAM,CAACI,MAAM;IAC5BE,UAAU,EAAEN,MAAM,CAACI,MAAM;IACzBG,MAAM,EAAEP,MAAM,CAACQ,OAAO;IACtBC,MAAM,EAAET,MAAM,CAACU,KAAK;IACpBC,KAAK,EAAEX,MAAM,CAACQ,OAAO;IACrBI,OAAO,EAAEZ,MAAM,CAACa,IAAI;AACpBC,IAAAA,OAAO,EAAEnB,OAAO,CAACA,OAAO,CAACK,MAAM,CAACe,KAAK,EAAEf,MAAM,CAACgB,KAAK,CAAC,EAAEhB,MAAM,CAACiB,IAAI,CAAC;IAElEC,MAAM,EAAElB,MAAM,CAACa,IAAI;IACnBM,MAAM,EAAExB,OAAO,CAACK,MAAM,CAACoB,GAAG,EAAEpB,MAAM,CAACiB,IAAI,CAAC;IACxCI,OAAO,EAAE1B,OAAO,CAACK,MAAM,CAACoB,GAAG,EAAEpB,MAAM,CAACiB,IAAI,CAAC;IAEzCK,KAAK,EAAEtB,MAAM,CAACsB,KAAAA;GACf,CAAA;AACH,CAAA;AAEA,MAAMC,MAAM,GAAGxB,SAAS,CAACyB,uBAAY,CAAC,IAAI,CAAC,CAAC,CAAA;AAC5C,MAAMC,OAAO,GAAG1B,SAAS,CAACyB,uBAAY,CAAC,KAAK,CAAC,CAAC,CAAA;AAEvC,SAASE,OAAOA,CAACC,OAAgB,EAAQ;AAC9C,EAAA,OAAOA,OAAO,GAAGJ,MAAM,GAAGE,OAAO,CAAA;AACnC;;AC3CA,MAAMG,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAU9E,MAAMC,SAAO,GAAG,yBAAyB,CAAA;AAKzC,MAAMC,OAAO,GAAG,aAAa,CAAA;AAE7B,IAAIC,QAEoE,CAAA;AA6FjE;EAIL,MAAMC,OAAO,GAAG,gBAAgB,CAAA;EAIhC,MAAMC,YAAY,GAAG,UAAUC,KAAU,EAAEC,MAAc,EAAEC,IAAY,EAAE;AACvE,IAAA,IAAIF,KAAK,CAACG,IAAI,KAAK,MAAM,EAAE;MACzB,IACEC,mCAAS,CAACJ,KAAK,CAACK,KAAK,CAAC,IACtBC,8CAAoB,CAACN,KAAK,CAACK,KAAK,EAAE,IAAI,CAAC,IACvCZ,iBAAiB,CAACc,GAAG,CAACP,KAAK,CAACK,KAAK,CAAC,EAClC;AACA,QAAA,OAAO,SAAS,CAAA;AAClB,OAAA;AAEA,MAAA,IACEP,OAAO,CAACU,IAAI,CAACR,KAAK,CAACK,KAAK,CAAC,KACxBH,IAAI,CAACD,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,IAAIC,IAAI,CAACO,KAAK,CAACR,MAAM,GAAG,CAAC,EAAEA,MAAM,CAAC,KAAK,IAAI,CAAC,EACrE;AACA,QAAA,OAAO,eAAe,CAAA;AACxB,OAAA;AAEA,MAAA,IAAID,KAAK,CAACK,KAAK,CAAC,CAAC,CAAC,KAAKL,KAAK,CAACK,KAAK,CAAC,CAAC,CAAC,CAACK,WAAW,EAAE,EAAE;AACnD,QAAA,OAAO,aAAa,CAAA;AACtB,OAAA;AACF,KAAA;AAEA,IAAA,IAAIV,KAAK,CAACG,IAAI,KAAK,YAAY,IAAIP,OAAO,CAACY,IAAI,CAACR,KAAK,CAACK,KAAK,CAAC,EAAE;AAC5D,MAAA,OAAO,SAAS,CAAA;AAClB,KAAA;AAEA,IAAA,IACEL,KAAK,CAACG,IAAI,KAAK,SAAS,KACvBH,KAAK,CAACK,KAAK,KAAK,GAAG,IAAIL,KAAK,CAACK,KAAK,KAAK,GAAG,CAAC,EAC5C;AACA,MAAA,OAAO,YAAY,CAAA;AACrB,KAAA;IAEA,OAAOL,KAAK,CAACG,IAAI,CAAA;GAClB,CAAA;AAEDN,EAAAA,QAAQ,GAAG,WAAWK,IAAY,EAAE;AAClC,IAAA,IAAIS,KAAK,CAAA;IACT,OAAQA,KAAK,GAAIC,QAAQ,CAASC,OAAO,CAACC,IAAI,CAACZ,IAAI,CAAC,EAAG;AACrD,MAAA,MAAMF,KAAK,GAAIY,QAAQ,CAASG,YAAY,CAACJ,KAAK,CAAC,CAAA;MAEnD,MAAM;QACJR,IAAI,EAAEJ,YAAY,CAACC,KAAK,EAAEW,KAAK,CAACK,KAAK,EAAEd,IAAI,CAAC;QAC5CG,KAAK,EAAEL,KAAK,CAACK,KAAAA;OACd,CAAA;AACH,KAAA;GACD,CAAA;AACH,CAAA;AAEO,SAASY,SAASA,CAACf,IAAY,EAAE;AACtC,EAAA,IAAIA,IAAI,KAAK,EAAE,EAAE,OAAO,EAAE,CAAA;AAE1B,EAAA,MAAMgB,IAAI,GAAG3B,OAAO,CAAC,IAAI,CAAC,CAAA;EAE1B,IAAI4B,WAAW,GAAG,EAAE,CAAA;AAEpB,EAAA,KAAK,MAAM;IAAEhB,IAAI;AAAEE,IAAAA,KAAAA;AAAM,GAAC,IAAIR,QAAQ,CAACK,IAAI,CAAC,EAAE;IAC5C,IAAIC,IAAI,IAAIe,IAAI,EAAE;MAChBC,WAAW,IAAId,KAAK,CACjBe,KAAK,CAACzB,SAAO,CAAC,CACd0B,GAAG,CAACC,GAAG,IAAIJ,IAAI,CAACf,IAAI,CAAsB,CAACmB,GAAG,CAAC,CAAC,CAChDC,IAAI,CAAC,IAAI,CAAC,CAAA;AACf,KAAC,MAAM;AACLJ,MAAAA,WAAW,IAAId,KAAK,CAAA;AACtB,KAAA;AACF,GAAA;AAEA,EAAA,OAAOc,WAAW,CAAA;AACpB;;AC1MA,IAAIK,uBAAuB,GAAG,KAAK,CAAA;AAsCnC,MAAM7B,OAAO,GAAG,yBAAyB,CAAA;AAQzC,SAAS8B,cAAcA,CACrBC,GAAiB,EACjBC,MAAqB,EACrBC,IAAa,EAKb;AACA,EAAA,MAAMC,QAAkB,GAAAC,MAAA,CAAAC,MAAA,CAAA;AACtBC,IAAAA,MAAM,EAAE,CAAC;AACTC,IAAAA,IAAI,EAAE,CAAC,CAAA;GACJP,EAAAA,GAAG,CAACQ,KAAK,CACb,CAAA;EACD,MAAMC,MAAgB,GAAAL,MAAA,CAAAC,MAAA,CACjBF,EAAAA,EAAAA,QAAQ,EACRH,GAAG,CAACU,GAAG,CACX,CAAA;EACD,MAAM;AAAEC,IAAAA,UAAU,GAAG,CAAC;AAAEC,IAAAA,UAAU,GAAG,CAAA;AAAE,GAAC,GAAGV,IAAI,IAAI,EAAE,CAAA;AACrD,EAAA,MAAMW,SAAS,GAAGV,QAAQ,CAACI,IAAI,CAAA;AAC/B,EAAA,MAAMO,WAAW,GAAGX,QAAQ,CAACG,MAAM,CAAA;AACnC,EAAA,MAAMS,OAAO,GAAGN,MAAM,CAACF,IAAI,CAAA;AAC3B,EAAA,MAAMS,SAAS,GAAGP,MAAM,CAACH,MAAM,CAAA;AAE/B,EAAA,IAAIE,KAAK,GAAGS,IAAI,CAACC,GAAG,CAACL,SAAS,IAAIF,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AACrD,EAAA,IAAID,GAAG,GAAGO,IAAI,CAACE,GAAG,CAAClB,MAAM,CAACmB,MAAM,EAAEL,OAAO,GAAGH,UAAU,CAAC,CAAA;AAEvD,EAAA,IAAIC,SAAS,KAAK,CAAC,CAAC,EAAE;AACpBL,IAAAA,KAAK,GAAG,CAAC,CAAA;AACX,GAAA;AAEA,EAAA,IAAIO,OAAO,KAAK,CAAC,CAAC,EAAE;IAClBL,GAAG,GAAGT,MAAM,CAACmB,MAAM,CAAA;AACrB,GAAA;AAEA,EAAA,MAAMC,QAAQ,GAAGN,OAAO,GAAGF,SAAS,CAAA;EACpC,MAAMS,WAAwB,GAAG,EAAE,CAAA;AAEnC,EAAA,IAAID,QAAQ,EAAE;IACZ,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIF,QAAQ,EAAEE,CAAC,EAAE,EAAE;AAClC,MAAA,MAAMC,UAAU,GAAGD,CAAC,GAAGV,SAAS,CAAA;MAEhC,IAAI,CAACC,WAAW,EAAE;AAChBQ,QAAAA,WAAW,CAACE,UAAU,CAAC,GAAG,IAAI,CAAA;AAChC,OAAC,MAAM,IAAID,CAAC,KAAK,CAAC,EAAE;QAClB,MAAME,YAAY,GAAGxB,MAAM,CAACuB,UAAU,GAAG,CAAC,CAAC,CAACJ,MAAM,CAAA;AAElDE,QAAAA,WAAW,CAACE,UAAU,CAAC,GAAG,CAACV,WAAW,EAAEW,YAAY,GAAGX,WAAW,GAAG,CAAC,CAAC,CAAA;AACzE,OAAC,MAAM,IAAIS,CAAC,KAAKF,QAAQ,EAAE;QACzBC,WAAW,CAACE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAER,SAAS,CAAC,CAAA;AAC1C,OAAC,MAAM;QACL,MAAMS,YAAY,GAAGxB,MAAM,CAACuB,UAAU,GAAGD,CAAC,CAAC,CAACH,MAAM,CAAA;QAElDE,WAAW,CAACE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAEC,YAAY,CAAC,CAAA;AAC7C,OAAA;AACF,KAAA;AACF,GAAC,MAAM;IACL,IAAIX,WAAW,KAAKE,SAAS,EAAE;AAC7B,MAAA,IAAIF,WAAW,EAAE;QACfQ,WAAW,CAACT,SAAS,CAAC,GAAG,CAACC,WAAW,EAAE,CAAC,CAAC,CAAA;AAC3C,OAAC,MAAM;AACLQ,QAAAA,WAAW,CAACT,SAAS,CAAC,GAAG,IAAI,CAAA;AAC/B,OAAA;AACF,KAAC,MAAM;MACLS,WAAW,CAACT,SAAS,CAAC,GAAG,CAACC,WAAW,EAAEE,SAAS,GAAGF,WAAW,CAAC,CAAA;AACjE,KAAA;AACF,GAAA;EAEA,OAAO;IAAEN,KAAK;IAAEE,GAAG;AAAEY,IAAAA,WAAAA;GAAa,CAAA;AACpC,CAAA;AAEO,SAASI,gBAAgBA,CAC9BC,QAAgB,EAChB3B,GAAiB,EACjBE,IAAa,GAAG,EAAE,EACV;AACR,EAAA,MAAM0B,eAAe,GACnB1B,IAAI,CAAC2B,UAAU,IAAKpG,gBAAgB,EAAE,IAAIyE,IAAI,CAAC4B,aAAc,CAAA;AAC/D,EAAA,MAAMtC,IAAI,GAAG3B,OAAO,CAAC+D,eAAe,CAAC,CAAA;AAErC,EAAA,MAAMG,KAAK,GAAGJ,QAAQ,CAACjC,KAAK,CAACzB,OAAO,CAAC,CAAA;EACrC,MAAM;IAAEuC,KAAK;IAAEE,GAAG;AAAEY,IAAAA,WAAAA;GAAa,GAAGvB,cAAc,CAACC,GAAG,EAAE+B,KAAK,EAAE7B,IAAI,CAAC,CAAA;AACpE,EAAA,MAAM8B,UAAU,GAAGhC,GAAG,CAACQ,KAAK,IAAI,OAAOR,GAAG,CAACQ,KAAK,CAACF,MAAM,KAAK,QAAQ,CAAA;AAEpE,EAAA,MAAM2B,cAAc,GAAGC,MAAM,CAACxB,GAAG,CAAC,CAACU,MAAM,CAAA;EAEzC,MAAMe,gBAAgB,GAAGP,eAAe,GAAGrC,SAAS,CAACoC,QAAQ,CAAC,GAAGA,QAAQ,CAAA;EAEzE,IAAIS,KAAK,GAAGD,gBAAgB,CACzBzC,KAAK,CAACzB,OAAO,EAAEyC,GAAG,CAAC,CACnB3B,KAAK,CAACyB,KAAK,EAAEE,GAAG,CAAC,CACjBf,GAAG,CAAC,CAACY,IAAI,EAAEjB,KAAK,KAAK;AACpB,IAAA,MAAM5C,MAAM,GAAG8D,KAAK,GAAG,CAAC,GAAGlB,KAAK,CAAA;IAChC,MAAM+C,YAAY,GAAG,CAAA,CAAA,EAAI3F,MAAM,CAAA,CAAE,CAACqC,KAAK,CAAC,CAACkD,cAAc,CAAC,CAAA;AACxD,IAAA,MAAM5E,MAAM,GAAG,CAAIgF,CAAAA,EAAAA,YAAY,CAAI,EAAA,CAAA,CAAA;AACnC,IAAA,MAAMC,SAAS,GAAGhB,WAAW,CAAC5E,MAAM,CAAC,CAAA;IACrC,MAAM6F,cAAc,GAAG,CAACjB,WAAW,CAAC5E,MAAM,GAAG,CAAC,CAAC,CAAA;AAC/C,IAAA,IAAI4F,SAAS,EAAE;MACb,IAAIE,UAAU,GAAG,EAAE,CAAA;AACnB,MAAA,IAAIC,KAAK,CAACC,OAAO,CAACJ,SAAS,CAAC,EAAE;AAC5B,QAAA,MAAMK,aAAa,GAAGpC,IAAI,CACvBxB,KAAK,CAAC,CAAC,EAAEkC,IAAI,CAACC,GAAG,CAACoB,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CACvCM,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;AACzB,QAAA,MAAMC,eAAe,GAAGP,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;AAEzCE,QAAAA,UAAU,GAAG,CACX,KAAK,EACLhD,IAAI,CAACnC,MAAM,CAACA,MAAM,CAACuF,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,EACvC,GAAG,EACHD,aAAa,EACbnD,IAAI,CAAClC,MAAM,CAAC,GAAG,CAAC,CAACwF,MAAM,CAACD,eAAe,CAAC,CACzC,CAAChD,IAAI,CAAC,EAAE,CAAC,CAAA;AAEV,QAAA,IAAI0C,cAAc,IAAIrC,IAAI,CAAC1C,OAAO,EAAE;UAClCgF,UAAU,IAAI,GAAG,GAAGhD,IAAI,CAAChC,OAAO,CAAC0C,IAAI,CAAC1C,OAAO,CAAC,CAAA;AAChD,SAAA;AACF,OAAA;AACA,MAAA,OAAO,CACLgC,IAAI,CAAClC,MAAM,CAAC,GAAG,CAAC,EAChBkC,IAAI,CAACnC,MAAM,CAACA,MAAM,CAAC,EACnBkD,IAAI,CAACa,MAAM,GAAG,CAAC,GAAG,CAAA,CAAA,EAAIb,IAAI,CAAE,CAAA,GAAG,EAAE,EACjCiC,UAAU,CACX,CAAC3C,IAAI,CAAC,EAAE,CAAC,CAAA;AACZ,KAAC,MAAM;AACL,MAAA,OAAO,IAAIL,IAAI,CAACnC,MAAM,CAACA,MAAM,CAAC,CAAGkD,EAAAA,IAAI,CAACa,MAAM,GAAG,CAAC,GAAG,CAAA,CAAA,EAAIb,IAAI,CAAE,CAAA,GAAG,EAAE,CAAE,CAAA,CAAA;AACtE,KAAA;AACF,GAAC,CAAC,CACDV,IAAI,CAAC,IAAI,CAAC,CAAA;AAEb,EAAA,IAAIK,IAAI,CAAC1C,OAAO,IAAI,CAACwE,UAAU,EAAE;AAC/BI,IAAAA,KAAK,GAAG,CAAG,EAAA,GAAG,CAACU,MAAM,CAACb,cAAc,GAAG,CAAC,CAAC,GAAG/B,IAAI,CAAC1C,OAAO,CAAA,EAAA,EAAK4E,KAAK,CAAE,CAAA,CAAA;AACtE,GAAA;AAEA,EAAA,IAAIR,eAAe,EAAE;AACnB,IAAA,OAAOpC,IAAI,CAAC/B,KAAK,CAAC2E,KAAK,CAAC,CAAA;AAC1B,GAAC,MAAM;AACL,IAAA,OAAOA,KAAK,CAAA;AACd,GAAA;AACF,CAAA;AAMe,cAAA,EACbT,QAAgB,EAChBH,UAAkB,EAClBuB,SAAyB,EACzB7C,IAAa,GAAG,EAAE,EACV;EACR,IAAI,CAACJ,uBAAuB,EAAE;AAC5BA,IAAAA,uBAAuB,GAAG,IAAI,CAAA;IAE9B,MAAMtC,OAAO,GACX,qGAAqG,CAAA;IAEvG,IAAI9B,OAAO,CAACsH,WAAW,EAAE;AAGvBtH,MAAAA,OAAO,CAACsH,WAAW,CAACxF,OAAO,EAAE,oBAAoB,CAAC,CAAA;AACpD,KAAC,MAAM;AACL,MAAA,MAAMyF,gBAAgB,GAAG,IAAIC,KAAK,CAAC1F,OAAO,CAAC,CAAA;MAC3CyF,gBAAgB,CAACE,IAAI,GAAG,oBAAoB,CAAA;MAC5CC,OAAO,CAACC,IAAI,CAAC,IAAIH,KAAK,CAAC1F,OAAO,CAAC,CAAC,CAAA;AAClC,KAAA;AACF,GAAA;EAEAuF,SAAS,GAAG9B,IAAI,CAACC,GAAG,CAAC6B,SAAS,EAAE,CAAC,CAAC,CAAA;AAElC,EAAA,MAAMO,QAAsB,GAAG;AAC7B9C,IAAAA,KAAK,EAAE;AAAEF,MAAAA,MAAM,EAAEyC,SAAS;AAAExC,MAAAA,IAAI,EAAEiB,UAAAA;AAAW,KAAA;GAC9C,CAAA;AAED,EAAA,OAAOE,gBAAgB,CAACC,QAAQ,EAAE2B,QAAQ,EAAEpD,IAAI,CAAC,CAAA;AACnD;;;;;;"} \ No newline at end of file +{"version":3,"names":["_highlight","require","_picocolors","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","colors","process","env","FORCE_COLOR","createColors","_colors","compose","f","g","v","pcWithForcedColor","undefined","getColors","forceColor","_pcWithForcedColor","deprecationWarningShown","getDefs","gutter","gray","marker","red","bold","message","NEWLINE","getMarkerLines","loc","source","opts","startLoc","assign","column","line","start","endLoc","end","linesAbove","linesBelow","startLine","startColumn","endLine","endColumn","Math","max","min","length","lineDiff","markerLines","lineNumber","sourceLength","codeFrameColumns","rawLines","highlighted","highlightCode","shouldHighlight","defs","maybeHighlight","fmt","string","lines","split","hasColumns","numberMaxWidth","String","highlightedLines","highlight","frame","slice","map","index","number","paddedNumber","hasMarker","lastMarkerLine","markerLine","Array","isArray","markerSpacing","replace","numberOfMarkers","repeat","join","reset","_default","colNumber","emitWarning","deprecationError","Error","name","console","warn","location"],"sources":["../src/index.ts"],"sourcesContent":["import highlight, { shouldHighlight } from \"@babel/highlight\";\n\nimport _colors, { createColors } from \"picocolors\";\nimport type { Colors, Formatter } from \"picocolors/types\";\n// See https://github.com/alexeyraspopov/picocolors/issues/62\nconst colors =\n typeof process === \"object\" &&\n (process.env.FORCE_COLOR === \"0\" || process.env.FORCE_COLOR === \"false\")\n ? createColors(false)\n : _colors;\n\nconst compose: (f: (gv: U) => V, g: (v: T) => U) => (v: T) => V =\n (f, g) => v =>\n f(g(v));\n\nlet pcWithForcedColor: Colors = undefined;\nfunction getColors(forceColor: boolean) {\n if (forceColor) {\n pcWithForcedColor ??= createColors(true);\n return pcWithForcedColor;\n }\n return colors;\n}\n\nlet deprecationWarningShown = false;\n\ntype Location = {\n column: number;\n line: number;\n};\n\ntype NodeLocation = {\n end?: Location;\n start: Location;\n};\n\nexport interface Options {\n /** Syntax highlight the code as JavaScript for terminals. default: false */\n highlightCode?: boolean;\n /** The number of lines to show above the error. default: 2 */\n linesAbove?: number;\n /** The number of lines to show below the error. default: 3 */\n linesBelow?: number;\n /**\n * Forcibly syntax highlight the code as JavaScript (for non-terminals);\n * overrides highlightCode.\n * default: false\n */\n forceColor?: boolean;\n /**\n * Pass in a string to be displayed inline (if possible) next to the\n * highlighted location in the code. If it can't be positioned inline,\n * it will be placed above the code frame.\n * default: nothing\n */\n message?: string;\n}\n\n/**\n * Styles for code frame token types.\n */\nfunction getDefs(colors: Colors) {\n return {\n gutter: colors.gray,\n marker: compose(colors.red, colors.bold),\n message: compose(colors.red, colors.bold),\n };\n}\n\n/**\n * RegExp to test for newlines in terminal.\n */\n\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\n\n/**\n * Extract what lines should be marked and highlighted.\n */\n\ntype MarkerLines = Record;\n\nfunction getMarkerLines(\n loc: NodeLocation,\n source: Array,\n opts: Options,\n): {\n start: number;\n end: number;\n markerLines: MarkerLines;\n} {\n const startLoc: Location = {\n column: 0,\n line: -1,\n ...loc.start,\n };\n const endLoc: Location = {\n ...startLoc,\n ...loc.end,\n };\n const { linesAbove = 2, linesBelow = 3 } = opts || {};\n const startLine = startLoc.line;\n const startColumn = startLoc.column;\n const endLine = endLoc.line;\n const endColumn = endLoc.column;\n\n let start = Math.max(startLine - (linesAbove + 1), 0);\n let end = Math.min(source.length, endLine + linesBelow);\n\n if (startLine === -1) {\n start = 0;\n }\n\n if (endLine === -1) {\n end = source.length;\n }\n\n const lineDiff = endLine - startLine;\n const markerLines: MarkerLines = {};\n\n if (lineDiff) {\n for (let i = 0; i <= lineDiff; i++) {\n const lineNumber = i + startLine;\n\n if (!startColumn) {\n markerLines[lineNumber] = true;\n } else if (i === 0) {\n const sourceLength = source[lineNumber - 1].length;\n\n markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];\n } else if (i === lineDiff) {\n markerLines[lineNumber] = [0, endColumn];\n } else {\n const sourceLength = source[lineNumber - i].length;\n\n markerLines[lineNumber] = [0, sourceLength];\n }\n }\n } else {\n if (startColumn === endColumn) {\n if (startColumn) {\n markerLines[startLine] = [startColumn, 0];\n } else {\n markerLines[startLine] = true;\n }\n } else {\n markerLines[startLine] = [startColumn, endColumn - startColumn];\n }\n }\n\n return { start, end, markerLines };\n}\n\nexport function codeFrameColumns(\n rawLines: string,\n loc: NodeLocation,\n opts: Options = {},\n): string {\n const highlighted =\n (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);\n const colors = getColors(opts.forceColor);\n const defs = getDefs(colors);\n const maybeHighlight = (fmt: Formatter, string: string) => {\n return highlighted ? fmt(string) : string;\n };\n const lines = rawLines.split(NEWLINE);\n const { start, end, markerLines } = getMarkerLines(loc, lines, opts);\n const hasColumns = loc.start && typeof loc.start.column === \"number\";\n\n const numberMaxWidth = String(end).length;\n\n const highlightedLines = highlighted ? highlight(rawLines, opts) : rawLines;\n\n let frame = highlightedLines\n .split(NEWLINE, end)\n .slice(start, end)\n .map((line, index) => {\n const number = start + 1 + index;\n const paddedNumber = ` ${number}`.slice(-numberMaxWidth);\n const gutter = ` ${paddedNumber} |`;\n const hasMarker = markerLines[number];\n const lastMarkerLine = !markerLines[number + 1];\n if (hasMarker) {\n let markerLine = \"\";\n if (Array.isArray(hasMarker)) {\n const markerSpacing = line\n .slice(0, Math.max(hasMarker[0] - 1, 0))\n .replace(/[^\\t]/g, \" \");\n const numberOfMarkers = hasMarker[1] || 1;\n\n markerLine = [\n \"\\n \",\n maybeHighlight(defs.gutter, gutter.replace(/\\d/g, \" \")),\n \" \",\n markerSpacing,\n maybeHighlight(defs.marker, \"^\").repeat(numberOfMarkers),\n ].join(\"\");\n\n if (lastMarkerLine && opts.message) {\n markerLine += \" \" + maybeHighlight(defs.message, opts.message);\n }\n }\n return [\n maybeHighlight(defs.marker, \">\"),\n maybeHighlight(defs.gutter, gutter),\n line.length > 0 ? ` ${line}` : \"\",\n markerLine,\n ].join(\"\");\n } else {\n return ` ${maybeHighlight(defs.gutter, gutter)}${\n line.length > 0 ? ` ${line}` : \"\"\n }`;\n }\n })\n .join(\"\\n\");\n\n if (opts.message && !hasColumns) {\n frame = `${\" \".repeat(numberMaxWidth + 1)}${opts.message}\\n${frame}`;\n }\n\n if (highlighted) {\n return colors.reset(frame);\n } else {\n return frame;\n }\n}\n\n/**\n * Create a code frame, adding line numbers, code highlighting, and pointing to a given position.\n */\n\nexport default function (\n rawLines: string,\n lineNumber: number,\n colNumber?: number | null,\n opts: Options = {},\n): string {\n if (!deprecationWarningShown) {\n deprecationWarningShown = true;\n\n const message =\n \"Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.\";\n\n if (process.emitWarning) {\n // A string is directly supplied to emitWarning, because when supplying an\n // Error object node throws in the tests because of different contexts\n process.emitWarning(message, \"DeprecationWarning\");\n } else {\n const deprecationError = new Error(message);\n deprecationError.name = \"DeprecationWarning\";\n console.warn(new Error(message));\n }\n }\n\n colNumber = Math.max(colNumber, 0);\n\n const location: NodeLocation = {\n start: { column: colNumber, line: lineNumber },\n };\n\n return codeFrameColumns(rawLines, location, opts);\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAmD,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAGnD,MAAMW,MAAM,GACV,OAAOC,OAAO,KAAK,QAAQ,KAC1BA,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,GAAG,IAAIF,OAAO,CAACC,GAAG,CAACC,WAAW,KAAK,OAAO,CAAC,GACpE,IAAAC,wBAAY,EAAC,KAAK,CAAC,GACnBC,mBAAO;AAEb,MAAMC,OAAkE,GACtEA,CAACC,CAAC,EAAEC,CAAC,KAAKC,CAAC,IACTF,CAAC,CAACC,CAAC,CAACC,CAAC,CAAC,CAAC;AAEX,IAAIC,iBAAyB,GAAGC,SAAS;AACzC,SAASC,SAASA,CAACC,UAAmB,EAAE;EACtC,IAAIA,UAAU,EAAE;IAAA,IAAAC,kBAAA;IACd,CAAAA,kBAAA,GAAAJ,iBAAiB,YAAAI,kBAAA,GAAjBJ,iBAAiB,GAAK,IAAAN,wBAAY,EAAC,IAAI,CAAC;IACxC,OAAOM,iBAAiB;EAC1B;EACA,OAAOV,MAAM;AACf;AAEA,IAAIe,uBAAuB,GAAG,KAAK;AAqCnC,SAASC,OAAOA,CAAChB,MAAc,EAAE;EAC/B,OAAO;IACLiB,MAAM,EAAEjB,MAAM,CAACkB,IAAI;IACnBC,MAAM,EAAEb,OAAO,CAACN,MAAM,CAACoB,GAAG,EAAEpB,MAAM,CAACqB,IAAI,CAAC;IACxCC,OAAO,EAAEhB,OAAO,CAACN,MAAM,CAACoB,GAAG,EAAEpB,MAAM,CAACqB,IAAI;EAC1C,CAAC;AACH;AAMA,MAAME,OAAO,GAAG,yBAAyB;AAQzC,SAASC,cAAcA,CACrBC,GAAiB,EACjBC,MAAqB,EACrBC,IAAa,EAKb;EACA,MAAMC,QAAkB,GAAApC,MAAA,CAAAqC,MAAA;IACtBC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE,CAAC;EAAC,GACLN,GAAG,CAACO,KAAK,CACb;EACD,MAAMC,MAAgB,GAAAzC,MAAA,CAAAqC,MAAA,KACjBD,QAAQ,EACRH,GAAG,CAACS,GAAG,CACX;EACD,MAAM;IAAEC,UAAU,GAAG,CAAC;IAAEC,UAAU,GAAG;EAAE,CAAC,GAAGT,IAAI,IAAI,CAAC,CAAC;EACrD,MAAMU,SAAS,GAAGT,QAAQ,CAACG,IAAI;EAC/B,MAAMO,WAAW,GAAGV,QAAQ,CAACE,MAAM;EACnC,MAAMS,OAAO,GAAGN,MAAM,CAACF,IAAI;EAC3B,MAAMS,SAAS,GAAGP,MAAM,CAACH,MAAM;EAE/B,IAAIE,KAAK,GAAGS,IAAI,CAACC,GAAG,CAACL,SAAS,IAAIF,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;EACrD,IAAID,GAAG,GAAGO,IAAI,CAACE,GAAG,CAACjB,MAAM,CAACkB,MAAM,EAAEL,OAAO,GAAGH,UAAU,CAAC;EAEvD,IAAIC,SAAS,KAAK,CAAC,CAAC,EAAE;IACpBL,KAAK,GAAG,CAAC;EACX;EAEA,IAAIO,OAAO,KAAK,CAAC,CAAC,EAAE;IAClBL,GAAG,GAAGR,MAAM,CAACkB,MAAM;EACrB;EAEA,MAAMC,QAAQ,GAAGN,OAAO,GAAGF,SAAS;EACpC,MAAMS,WAAwB,GAAG,CAAC,CAAC;EAEnC,IAAID,QAAQ,EAAE;IACZ,KAAK,IAAI/C,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAI+C,QAAQ,EAAE/C,CAAC,EAAE,EAAE;MAClC,MAAMiD,UAAU,GAAGjD,CAAC,GAAGuC,SAAS;MAEhC,IAAI,CAACC,WAAW,EAAE;QAChBQ,WAAW,CAACC,UAAU,CAAC,GAAG,IAAI;MAChC,CAAC,MAAM,IAAIjD,CAAC,KAAK,CAAC,EAAE;QAClB,MAAMkD,YAAY,GAAGtB,MAAM,CAACqB,UAAU,GAAG,CAAC,CAAC,CAACH,MAAM;QAElDE,WAAW,CAACC,UAAU,CAAC,GAAG,CAACT,WAAW,EAAEU,YAAY,GAAGV,WAAW,GAAG,CAAC,CAAC;MACzE,CAAC,MAAM,IAAIxC,CAAC,KAAK+C,QAAQ,EAAE;QACzBC,WAAW,CAACC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAEP,SAAS,CAAC;MAC1C,CAAC,MAAM;QACL,MAAMQ,YAAY,GAAGtB,MAAM,CAACqB,UAAU,GAAGjD,CAAC,CAAC,CAAC8C,MAAM;QAElDE,WAAW,CAACC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAEC,YAAY,CAAC;MAC7C;IACF;EACF,CAAC,MAAM;IACL,IAAIV,WAAW,KAAKE,SAAS,EAAE;MAC7B,IAAIF,WAAW,EAAE;QACfQ,WAAW,CAACT,SAAS,CAAC,GAAG,CAACC,WAAW,EAAE,CAAC,CAAC;MAC3C,CAAC,MAAM;QACLQ,WAAW,CAACT,SAAS,CAAC,GAAG,IAAI;MAC/B;IACF,CAAC,MAAM;MACLS,WAAW,CAACT,SAAS,CAAC,GAAG,CAACC,WAAW,EAAEE,SAAS,GAAGF,WAAW,CAAC;IACjE;EACF;EAEA,OAAO;IAAEN,KAAK;IAAEE,GAAG;IAAEY;EAAY,CAAC;AACpC;AAEO,SAASG,gBAAgBA,CAC9BC,QAAgB,EAChBzB,GAAiB,EACjBE,IAAa,GAAG,CAAC,CAAC,EACV;EACR,MAAMwB,WAAW,GACf,CAACxB,IAAI,CAACyB,aAAa,IAAIzB,IAAI,CAACd,UAAU,KAAK,IAAAwC,0BAAe,EAAC1B,IAAI,CAAC;EAClE,MAAM3B,MAAM,GAAGY,SAAS,CAACe,IAAI,CAACd,UAAU,CAAC;EACzC,MAAMyC,IAAI,GAAGtC,OAAO,CAAChB,MAAM,CAAC;EAC5B,MAAMuD,cAAc,GAAGA,CAACC,GAAc,EAAEC,MAAc,KAAK;IACzD,OAAON,WAAW,GAAGK,GAAG,CAACC,MAAM,CAAC,GAAGA,MAAM;EAC3C,CAAC;EACD,MAAMC,KAAK,GAAGR,QAAQ,CAACS,KAAK,CAACpC,OAAO,CAAC;EACrC,MAAM;IAAES,KAAK;IAAEE,GAAG;IAAEY;EAAY,CAAC,GAAGtB,cAAc,CAACC,GAAG,EAAEiC,KAAK,EAAE/B,IAAI,CAAC;EACpE,MAAMiC,UAAU,GAAGnC,GAAG,CAACO,KAAK,IAAI,OAAOP,GAAG,CAACO,KAAK,CAACF,MAAM,KAAK,QAAQ;EAEpE,MAAM+B,cAAc,GAAGC,MAAM,CAAC5B,GAAG,CAAC,CAACU,MAAM;EAEzC,MAAMmB,gBAAgB,GAAGZ,WAAW,GAAG,IAAAa,kBAAS,EAACd,QAAQ,EAAEvB,IAAI,CAAC,GAAGuB,QAAQ;EAE3E,IAAIe,KAAK,GAAGF,gBAAgB,CACzBJ,KAAK,CAACpC,OAAO,EAAEW,GAAG,CAAC,CACnBgC,KAAK,CAAClC,KAAK,EAAEE,GAAG,CAAC,CACjBiC,GAAG,CAAC,CAACpC,IAAI,EAAEqC,KAAK,KAAK;IACpB,MAAMC,MAAM,GAAGrC,KAAK,GAAG,CAAC,GAAGoC,KAAK;IAChC,MAAME,YAAY,GAAI,IAAGD,MAAO,EAAC,CAACH,KAAK,CAAC,CAACL,cAAc,CAAC;IACxD,MAAM5C,MAAM,GAAI,IAAGqD,YAAa,IAAG;IACnC,MAAMC,SAAS,GAAGzB,WAAW,CAACuB,MAAM,CAAC;IACrC,MAAMG,cAAc,GAAG,CAAC1B,WAAW,CAACuB,MAAM,GAAG,CAAC,CAAC;IAC/C,IAAIE,SAAS,EAAE;MACb,IAAIE,UAAU,GAAG,EAAE;MACnB,IAAIC,KAAK,CAACC,OAAO,CAACJ,SAAS,CAAC,EAAE;QAC5B,MAAMK,aAAa,GAAG7C,IAAI,CACvBmC,KAAK,CAAC,CAAC,EAAEzB,IAAI,CAACC,GAAG,CAAC6B,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CACvCM,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;QACzB,MAAMC,eAAe,GAAGP,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;QAEzCE,UAAU,GAAG,CACX,KAAK,EACLlB,cAAc,CAACD,IAAI,CAACrC,MAAM,EAAEA,MAAM,CAAC4D,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,EACvD,GAAG,EACHD,aAAa,EACbrB,cAAc,CAACD,IAAI,CAACnC,MAAM,EAAE,GAAG,CAAC,CAAC4D,MAAM,CAACD,eAAe,CAAC,CACzD,CAACE,IAAI,CAAC,EAAE,CAAC;QAEV,IAAIR,cAAc,IAAI7C,IAAI,CAACL,OAAO,EAAE;UAClCmD,UAAU,IAAI,GAAG,GAAGlB,cAAc,CAACD,IAAI,CAAChC,OAAO,EAAEK,IAAI,CAACL,OAAO,CAAC;QAChE;MACF;MACA,OAAO,CACLiC,cAAc,CAACD,IAAI,CAACnC,MAAM,EAAE,GAAG,CAAC,EAChCoC,cAAc,CAACD,IAAI,CAACrC,MAAM,EAAEA,MAAM,CAAC,EACnCc,IAAI,CAACa,MAAM,GAAG,CAAC,GAAI,IAAGb,IAAK,EAAC,GAAG,EAAE,EACjC0C,UAAU,CACX,CAACO,IAAI,CAAC,EAAE,CAAC;IACZ,CAAC,MAAM;MACL,OAAQ,IAAGzB,cAAc,CAACD,IAAI,CAACrC,MAAM,EAAEA,MAAM,CAAE,GAC7Cc,IAAI,CAACa,MAAM,GAAG,CAAC,GAAI,IAAGb,IAAK,EAAC,GAAG,EAChC,EAAC;IACJ;EACF,CAAC,CAAC,CACDiD,IAAI,CAAC,IAAI,CAAC;EAEb,IAAIrD,IAAI,CAACL,OAAO,IAAI,CAACsC,UAAU,EAAE;IAC/BK,KAAK,GAAI,GAAE,GAAG,CAACc,MAAM,CAAClB,cAAc,GAAG,CAAC,CAAE,GAAElC,IAAI,CAACL,OAAQ,KAAI2C,KAAM,EAAC;EACtE;EAEA,IAAId,WAAW,EAAE;IACf,OAAOnD,MAAM,CAACiF,KAAK,CAAChB,KAAK,CAAC;EAC5B,CAAC,MAAM;IACL,OAAOA,KAAK;EACd;AACF;AAMe,SAAAiB,SACbhC,QAAgB,EAChBH,UAAkB,EAClBoC,SAAyB,EACzBxD,IAAa,GAAG,CAAC,CAAC,EACV;EACR,IAAI,CAACZ,uBAAuB,EAAE;IAC5BA,uBAAuB,GAAG,IAAI;IAE9B,MAAMO,OAAO,GACX,qGAAqG;IAEvG,IAAIrB,OAAO,CAACmF,WAAW,EAAE;MAGvBnF,OAAO,CAACmF,WAAW,CAAC9D,OAAO,EAAE,oBAAoB,CAAC;IACpD,CAAC,MAAM;MACL,MAAM+D,gBAAgB,GAAG,IAAIC,KAAK,CAAChE,OAAO,CAAC;MAC3C+D,gBAAgB,CAACE,IAAI,GAAG,oBAAoB;MAC5CC,OAAO,CAACC,IAAI,CAAC,IAAIH,KAAK,CAAChE,OAAO,CAAC,CAAC;IAClC;EACF;EAEA6D,SAAS,GAAG1C,IAAI,CAACC,GAAG,CAACyC,SAAS,EAAE,CAAC,CAAC;EAElC,MAAMO,QAAsB,GAAG;IAC7B1D,KAAK,EAAE;MAAEF,MAAM,EAAEqD,SAAS;MAAEpD,IAAI,EAAEgB;IAAW;EAC/C,CAAC;EAED,OAAOE,gBAAgB,CAACC,QAAQ,EAAEwC,QAAQ,EAAE/D,IAAI,CAAC;AACnD","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/code-frame/package.json b/node_modules/@babel/code-frame/package.json index c95c24490..9e672b764 100644 --- a/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/code-frame/package.json @@ -1,6 +1,6 @@ { "name": "@babel/code-frame", - "version": "7.27.1", + "version": "7.24.7", "description": "Generate errors that contain a code frame that point to source locations.", "author": "The Babel Team (https://babel.dev/team)", "homepage": "https://babel.dev/docs/en/next/babel-code-frame", @@ -16,9 +16,8 @@ }, "main": "./lib/index.js", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "devDependencies": { "import-meta-resolve": "^4.1.0", diff --git a/node_modules/@babel/compat-data/README.md b/node_modules/@babel/compat-data/README.md index c19189872..381f3deb4 100644 --- a/node_modules/@babel/compat-data/README.md +++ b/node_modules/@babel/compat-data/README.md @@ -1,6 +1,6 @@ # @babel/compat-data -> The compat-data to determine required Babel plugins +> See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information. diff --git a/node_modules/@babel/compat-data/data/corejs2-built-ins.json b/node_modules/@babel/compat-data/data/corejs2-built-ins.json index ba76060c2..5fe8ca8dd 100644 --- a/node_modules/@babel/compat-data/data/corejs2-built-ins.json +++ b/node_modules/@babel/compat-data/data/corejs2-built-ins.json @@ -140,7 +140,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "34", "electron": "0.36" }, @@ -389,7 +388,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "34", "electron": "0.36" }, @@ -860,7 +858,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -993,7 +990,6 @@ "deno": "1", "ios": "10.3", "samsung": "6", - "rhino": "1.8", "opera_mobile": "41", "electron": "1.4" }, @@ -1230,7 +1226,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1257,7 +1252,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1271,7 +1265,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1285,7 +1278,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1299,7 +1291,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1313,7 +1304,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1327,7 +1317,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1341,7 +1330,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1355,7 +1343,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1369,7 +1356,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1383,7 +1369,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, @@ -1397,7 +1382,6 @@ "deno": "1", "ios": "10", "samsung": "5", - "rhino": "1.8", "opera_mobile": "36", "electron": "0.37" }, diff --git a/node_modules/@babel/compat-data/data/plugin-bugfixes.json b/node_modules/@babel/compat-data/data/plugin-bugfixes.json index 3d1aed6e8..82e4e2111 100644 --- a/node_modules/@babel/compat-data/data/plugin-bugfixes.json +++ b/node_modules/@babel/compat-data/data/plugin-bugfixes.json @@ -107,6 +107,18 @@ "opera_mobile": "64", "electron": "13.0" }, + "bugfix/transform-firefox-class-in-computed-class-key": { + "chrome": "74", + "opera": "62", + "edge": "79", + "safari": "16", + "node": "12", + "deno": "1", + "ios": "16", + "samsung": "11", + "opera_mobile": "53", + "electron": "6.0" + }, "transform-optional-chaining": { "chrome": "80", "opera": "67", @@ -117,7 +129,6 @@ "deno": "1", "ios": "13.4", "samsung": "13", - "rhino": "1.8", "opera_mobile": "57", "electron": "8.0" }, @@ -131,7 +142,6 @@ "deno": "1", "ios": "13.4", "samsung": "13", - "rhino": "1.8", "opera_mobile": "57", "electron": "8.0" }, @@ -139,7 +149,7 @@ "chrome": "49", "opera": "36", "edge": "15", - "firefox": "52", + "firefox": "53", "safari": "10", "node": "6", "deno": "1", diff --git a/node_modules/@babel/compat-data/data/plugins.json b/node_modules/@babel/compat-data/data/plugins.json index 49dfc2ee4..0b269f846 100644 --- a/node_modules/@babel/compat-data/data/plugins.json +++ b/node_modules/@babel/compat-data/data/plugins.json @@ -1,27 +1,9 @@ { - "transform-explicit-resource-management": { - "chrome": "134", - "edge": "134", - "node": "24", - "electron": "35.0" - }, "transform-duplicate-named-capturing-groups-regex": { "chrome": "126", - "opera": "112", "edge": "126", "firefox": "129", "safari": "17.4", - "node": "23", - "ios": "17.4", - "electron": "31.0" - }, - "transform-regexp-modifiers": { - "chrome": "125", - "opera": "111", - "edge": "125", - "firefox": "132", - "node": "23", - "samsung": "27", "electron": "31.0" }, "transform-unicode-sets-regex": { @@ -33,7 +15,6 @@ "node": "20", "deno": "1.32", "ios": "17", - "samsung": "23", "opera_mobile": "75", "electron": "24.0" }, @@ -41,7 +22,7 @@ "chrome": "98", "opera": "84", "edge": "98", - "firefox": "75", + "firefox": "95", "safari": "15", "node": "12", "deno": "1.18", @@ -54,7 +35,6 @@ "chrome": "74", "opera": "62", "edge": "79", - "firefox": "126", "safari": "16", "node": "12", "deno": "1", @@ -244,7 +224,6 @@ "deno": "1", "ios": "13.4", "samsung": "13", - "rhino": "1.8", "opera_mobile": "57", "electron": "8.0" }, @@ -258,7 +237,6 @@ "deno": "1", "ios": "13.4", "samsung": "13", - "rhino": "1.8", "opera_mobile": "57", "electron": "8.0" }, @@ -346,7 +324,7 @@ "chrome": "49", "opera": "36", "edge": "18", - "firefox": "52", + "firefox": "53", "safari": "16.3", "node": "6", "deno": "1", @@ -618,7 +596,6 @@ "deno": "1", "ios": "8", "samsung": "4", - "rhino": "1.8", "opera_mobile": "32", "electron": "0.30" }, @@ -716,18 +693,18 @@ "electron": "1.1" }, "transform-typeof-symbol": { - "chrome": "48", - "opera": "35", + "chrome": "38", + "opera": "25", "edge": "12", "firefox": "36", "safari": "9", - "node": "6", + "node": "0.12", "deno": "1", "ios": "9", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "35", - "electron": "0.37" + "samsung": "3", + "rhino": "1.7.13", + "opera_mobile": "25", + "electron": "0.20" }, "transform-new-target": { "chrome": "46", @@ -811,7 +788,7 @@ "deno": "1.0", "edge": "79", "firefox": "80", - "node": "13.2.0", + "node": "13.2", "opera": "60", "opera_mobile": "51", "safari": "14.1", @@ -825,7 +802,7 @@ "deno": "1.0", "edge": "79", "firefox": "80", - "node": "13.2.0", + "node": "13.2", "opera": "60", "opera_mobile": "51", "safari": "14.1", diff --git a/node_modules/@babel/compat-data/native-modules.js b/node_modules/@babel/compat-data/native-modules.js index f8c25fa37..8e97da4bc 100644 --- a/node_modules/@babel/compat-data/native-modules.js +++ b/node_modules/@babel/compat-data/native-modules.js @@ -1,2 +1 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly module.exports = require("./data/native-modules.json"); diff --git a/node_modules/@babel/compat-data/overlapping-plugins.js b/node_modules/@babel/compat-data/overlapping-plugins.js index 0dd35f157..88242e467 100644 --- a/node_modules/@babel/compat-data/overlapping-plugins.js +++ b/node_modules/@babel/compat-data/overlapping-plugins.js @@ -1,2 +1 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly module.exports = require("./data/overlapping-plugins.json"); diff --git a/node_modules/@babel/compat-data/package.json b/node_modules/@babel/compat-data/package.json index 4b84f861e..616df8701 100644 --- a/node_modules/@babel/compat-data/package.json +++ b/node_modules/@babel/compat-data/package.json @@ -1,9 +1,9 @@ { "name": "@babel/compat-data", - "version": "7.28.0", + "version": "7.25.2", "author": "The Babel Team (https://babel.dev/team)", "license": "MIT", - "description": "The compat-data to determine required Babel plugins", + "description": "", "repository": { "type": "git", "url": "https://github.com/babel/babel.git", @@ -21,7 +21,7 @@ "./plugin-bugfixes": "./plugin-bugfixes.js" }, "scripts": { - "build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs" + "build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.js && node ./scripts/build-modules-support.js && node ./scripts/build-bugfixes-targets.js" }, "keywords": [ "babel", @@ -29,9 +29,9 @@ "compat-data" ], "devDependencies": { - "@mdn/browser-compat-data": "^6.0.8", - "core-js-compat": "^3.43.0", - "electron-to-chromium": "^1.5.140" + "@mdn/browser-compat-data": "^5.5.36", + "core-js-compat": "^3.37.1", + "electron-to-chromium": "^1.4.816" }, "engines": { "node": ">=6.9.0" diff --git a/node_modules/@babel/compat-data/plugin-bugfixes.js b/node_modules/@babel/compat-data/plugin-bugfixes.js index 9aaf36417..f390181a6 100644 --- a/node_modules/@babel/compat-data/plugin-bugfixes.js +++ b/node_modules/@babel/compat-data/plugin-bugfixes.js @@ -1,2 +1 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly module.exports = require("./data/plugin-bugfixes.json"); diff --git a/node_modules/@babel/compat-data/plugins.js b/node_modules/@babel/compat-data/plugins.js index b191017be..42646edce 100644 --- a/node_modules/@babel/compat-data/plugins.js +++ b/node_modules/@babel/compat-data/plugins.js @@ -1,2 +1 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly module.exports = require("./data/plugins.json"); diff --git a/node_modules/@babel/core/cjs-proxy.cjs b/node_modules/@babel/core/cjs-proxy.cjs new file mode 100644 index 000000000..17dac4a9f --- /dev/null +++ b/node_modules/@babel/core/cjs-proxy.cjs @@ -0,0 +1,59 @@ +"use strict"; + +const babelP = import("./lib/index.js"); +let babel = null; +Object.defineProperty(exports, "__ initialize @babel/core cjs proxy __", { + set(val) { + babel = val; + }, +}); + +exports.version = require("./package.json").version; + +const functionNames = [ + "createConfigItem", + "loadPartialConfig", + "loadOptions", + "transform", + "transformFile", + "transformFromAst", + "parse", +]; +const propertyNames = [ + "buildExternalHelpers", + "types", + "tokTypes", + "traverse", + "template", +]; + +for (const name of functionNames) { + exports[name] = function (...args) { + babelP.then(babel => { + babel[name](...args); + }); + }; + exports[`${name}Async`] = function (...args) { + return babelP.then(babel => babel[`${name}Async`](...args)); + }; + exports[`${name}Sync`] = function (...args) { + if (!babel) throw notLoadedError(`${name}Sync`, "callable"); + return babel[`${name}Sync`](...args); + }; +} + +for (const name of propertyNames) { + Object.defineProperty(exports, name, { + get() { + if (!babel) throw notLoadedError(name, "accessible"); + return babel[name]; + }, + }); +} + +function notLoadedError(name, keyword) { + return new Error( + `The \`${name}\` export of @babel/core is only ${keyword}` + + ` from the CommonJS version after that the ESM version is loaded.` + ); +} diff --git a/node_modules/@babel/core/lib/config/cache-contexts.js b/node_modules/@babel/core/lib/config/cache-contexts.js index f2ececdae..d7c091273 100644 --- a/node_modules/@babel/core/lib/config/cache-contexts.js +++ b/node_modules/@babel/core/lib/config/cache-contexts.js @@ -1,5 +1,3 @@ -"use strict"; - 0 && 0; //# sourceMappingURL=cache-contexts.js.map diff --git a/node_modules/@babel/core/lib/config/config-chain.js.map b/node_modules/@babel/core/lib/config/config-chain.js.map index c0b50bc5e..8e58051db 100644 --- a/node_modules/@babel/core/lib/config/config-chain.js.map +++ b/node_modules/@babel/core/lib/config/config-chain.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","_debug","_options","_patternToRegex","_printer","_rewriteStackTrace","_configError","_index","_caching","_configDescriptors","debug","buildDebug","buildPresetChain","arg","context","chain","buildPresetChainWalker","plugins","dedupDescriptors","presets","options","map","o","normalizeOptions","files","Set","exports","makeChainWalker","root","preset","loadPresetDescriptors","env","envName","loadPresetEnvDescriptors","overrides","index","loadPresetOverridesDescriptors","overridesEnv","loadPresetOverridesEnvDescriptors","createLogger","makeWeakCacheSync","buildRootDescriptors","alias","createUncachedDescriptors","makeStrongCacheSync","buildEnvDescriptors","buildOverrideDescriptors","buildOverrideEnvDescriptors","buildRootChain","opts","configReport","babelRcReport","programmaticLogger","ConfigPrinter","programmaticChain","loadProgrammaticChain","dirname","cwd","undefined","programmaticReport","output","configFile","loadConfig","caller","findRootConfig","babelrc","babelrcRoots","babelrcRootsDirectory","configFileChain","emptyChain","configFileLogger","validatedFile","validateConfigFile","result","loadFileChain","mergeChain","ignoreFile","babelrcFile","isIgnored","fileChain","filename","pkgData","findPackageData","babelrcLoadEnabled","ignore","config","findRelativeConfig","add","filepath","shouldIgnore","validateBabelrcFile","babelrcLogger","showConfig","console","log","filter","x","join","fileHandling","absoluteRoot","directories","includes","babelrcPatterns","Array","isArray","pat","path","resolve","length","some","pathPatternToRegex","directory","matchPattern","file","validate","validateExtendFile","input","createCachedDescriptors","baseLogger","buildProgrammaticLogger","loadFileChainWalker","loadFileDescriptors","loadFileEnvDescriptors","loadFileOverridesDescriptors","loadFileOverridesEnvDescriptors","buildFileLogger","configure","ChainFormatter","Config","descriptors","_","_context$caller","Programmatic","callerName","name","_options$env","_options$overrides","Error","_options$overrides2","_override$env","override","chainWalker","flattenedConfigs","rootOpts","configIsApplicable","push","envOpts","forEach","overrideOps","overrideEnvOpts","only","logger","mergeExtendsChain","mergeChainOpts","extends","has","from","delete","target","source","Object","assign","passPerPreset","test","include","exclude","hasOwnProperty","call","sourceMaps","sourceMap","items","Map","item","value","fnKey","nameMap","get","set","desc","ownPass","reduce","acc","configName","configFieldIsApplicable","patterns","matchesPatterns","ignoreListReplacer","_key","RegExp","String","_context$filename","message","JSON","stringify","_context$filename2","pattern","pathToTest","endHiddenCallStack","ConfigError"],"sources":["../../src/config/config-chain.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-use-before-define */\n\nimport path from \"node:path\";\nimport buildDebug from \"debug\";\nimport type { Handler } from \"gensync\";\nimport { validate } from \"./validation/options.ts\";\nimport type {\n ValidatedOptions,\n IgnoreList,\n ConfigApplicableTest,\n BabelrcSearch,\n CallerMetadata,\n IgnoreItem,\n} from \"./validation/options.ts\";\nimport pathPatternToRegex from \"./pattern-to-regex.ts\";\nimport { ConfigPrinter, ChainFormatter } from \"./printer.ts\";\nimport type { ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\n\nimport { endHiddenCallStack } from \"../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nconst debug = buildDebug(\"babel:config:config-chain\");\n\nimport {\n findPackageData,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile, FilePackageData } from \"./files/index.ts\";\n\nimport { makeWeakCacheSync, makeStrongCacheSync } from \"./caching.ts\";\n\nimport {\n createCachedDescriptors,\n createUncachedDescriptors,\n} from \"./config-descriptors.ts\";\nimport type {\n UnloadedDescriptor,\n OptionsAndDescriptors,\n ValidatedFile,\n} from \"./config-descriptors.ts\";\n\nexport type ConfigChain = {\n plugins: Array>;\n presets: Array>;\n options: Array;\n files: Set;\n};\n\nexport type PresetInstance = {\n options: ValidatedOptions;\n alias: string;\n dirname: string;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type ConfigContext = {\n filename: string | undefined;\n cwd: string;\n root: string;\n envName: string;\n caller: CallerMetadata | undefined;\n showConfig: boolean;\n};\n\n/**\n * Build a config chain for a given preset.\n */\nexport function* buildPresetChain(\n arg: PresetInstance,\n context: any,\n): Handler {\n const chain = yield* buildPresetChainWalker(arg, context);\n if (!chain) return null;\n\n return {\n plugins: dedupDescriptors(chain.plugins),\n presets: dedupDescriptors(chain.presets),\n options: chain.options.map(o => normalizeOptions(o)),\n files: new Set(),\n };\n}\n\nexport const buildPresetChainWalker = makeChainWalker({\n root: preset => loadPresetDescriptors(preset),\n env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),\n overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),\n overridesEnv: (preset, index, envName) =>\n loadPresetOverridesEnvDescriptors(preset)(index)(envName),\n createLogger: () => () => {}, // Currently we don't support logging how preset is expanded\n});\nconst loadPresetDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n buildRootDescriptors(preset, preset.alias, createUncachedDescriptors),\n);\nconst loadPresetEnvDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadPresetOverridesDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadPresetOverridesEnvDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nexport type FileHandling = \"transpile\" | \"ignored\" | \"unsupported\";\nexport type RootConfigChain = ConfigChain & {\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set;\n};\n\n/**\n * Build a config chain for Babel's full root configuration.\n */\nexport function* buildRootChain(\n opts: ValidatedOptions,\n context: ConfigContext,\n): Handler {\n let configReport, babelRcReport;\n const programmaticLogger = new ConfigPrinter();\n const programmaticChain = yield* loadProgrammaticChain(\n {\n options: opts,\n dirname: context.cwd,\n },\n context,\n undefined,\n programmaticLogger,\n );\n if (!programmaticChain) return null;\n const programmaticReport = yield* programmaticLogger.output();\n\n let configFile;\n if (typeof opts.configFile === \"string\") {\n configFile = yield* loadConfig(\n opts.configFile,\n context.cwd,\n context.envName,\n context.caller,\n );\n } else if (opts.configFile !== false) {\n configFile = yield* findRootConfig(\n context.root,\n context.envName,\n context.caller,\n );\n }\n\n let { babelrc, babelrcRoots } = opts;\n let babelrcRootsDirectory = context.cwd;\n\n const configFileChain = emptyChain();\n const configFileLogger = new ConfigPrinter();\n if (configFile) {\n const validatedFile = validateConfigFile(configFile);\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n configFileLogger,\n );\n if (!result) return null;\n configReport = yield* configFileLogger.output();\n\n // Allow config files to toggle `.babelrc` resolution on and off and\n // specify where the roots are.\n if (babelrc === undefined) {\n babelrc = validatedFile.options.babelrc;\n }\n if (babelrcRoots === undefined) {\n babelrcRootsDirectory = validatedFile.dirname;\n babelrcRoots = validatedFile.options.babelrcRoots;\n }\n\n mergeChain(configFileChain, result);\n }\n\n let ignoreFile, babelrcFile;\n let isIgnored = false;\n const fileChain = emptyChain();\n // resolve all .babelrc files\n if (\n (babelrc === true || babelrc === undefined) &&\n typeof context.filename === \"string\"\n ) {\n const pkgData = yield* findPackageData(context.filename);\n\n if (\n pkgData &&\n babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)\n ) {\n ({ ignore: ignoreFile, config: babelrcFile } = yield* findRelativeConfig(\n pkgData,\n context.envName,\n context.caller,\n ));\n\n if (ignoreFile) {\n fileChain.files.add(ignoreFile.filepath);\n }\n\n if (\n ignoreFile &&\n shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)\n ) {\n isIgnored = true;\n }\n\n if (babelrcFile && !isIgnored) {\n const validatedFile = validateBabelrcFile(babelrcFile);\n const babelrcLogger = new ConfigPrinter();\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n babelrcLogger,\n );\n if (!result) {\n isIgnored = true;\n } else {\n babelRcReport = yield* babelrcLogger.output();\n mergeChain(fileChain, result);\n }\n }\n\n if (babelrcFile && isIgnored) {\n fileChain.files.add(babelrcFile.filepath);\n }\n }\n }\n\n if (context.showConfig) {\n console.log(\n `Babel configs on \"${context.filename}\" (ascending priority):\\n` +\n // print config by the order of ascending priority\n [configReport, babelRcReport, programmaticReport]\n .filter(x => !!x)\n .join(\"\\n\\n\") +\n \"\\n-----End Babel configs-----\",\n );\n }\n // Insert file chain in front so programmatic options have priority\n // over configuration file chain items.\n const chain = mergeChain(\n mergeChain(mergeChain(emptyChain(), configFileChain), fileChain),\n programmaticChain,\n );\n\n return {\n plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),\n presets: isIgnored ? [] : dedupDescriptors(chain.presets),\n options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),\n fileHandling: isIgnored ? \"ignored\" : \"transpile\",\n ignore: ignoreFile || undefined,\n babelrc: babelrcFile || undefined,\n config: configFile || undefined,\n files: chain.files,\n };\n}\n\nfunction babelrcLoadEnabled(\n context: ConfigContext,\n pkgData: FilePackageData,\n babelrcRoots: BabelrcSearch | undefined,\n babelrcRootsDirectory: string,\n): boolean {\n if (typeof babelrcRoots === \"boolean\") return babelrcRoots;\n\n const absoluteRoot = context.root;\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcRoots === undefined) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n let babelrcPatterns = babelrcRoots;\n if (!Array.isArray(babelrcPatterns)) {\n babelrcPatterns = [babelrcPatterns as IgnoreItem];\n }\n babelrcPatterns = babelrcPatterns.map(pat => {\n return typeof pat === \"string\"\n ? path.resolve(babelrcRootsDirectory, pat)\n : pat;\n });\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n return babelrcPatterns.some(pat => {\n if (typeof pat === \"string\") {\n pat = pathPatternToRegex(pat, babelrcRootsDirectory);\n }\n\n return pkgData.directories.some(directory => {\n return matchPattern(pat, babelrcRootsDirectory, directory, context);\n });\n });\n}\n\nconst validateConfigFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"configfile\", file.options, file.filepath),\n }),\n);\n\nconst validateBabelrcFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"babelrcfile\", file.options, file.filepath),\n }),\n);\n\nconst validateExtendFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"extendsfile\", file.options, file.filepath),\n }),\n);\n\n/**\n * Build a config chain for just the programmatic options passed into Babel.\n */\nconst loadProgrammaticChain = makeChainWalker({\n root: input => buildRootDescriptors(input, \"base\", createCachedDescriptors),\n env: (input, envName) =>\n buildEnvDescriptors(input, \"base\", createCachedDescriptors, envName),\n overrides: (input, index) =>\n buildOverrideDescriptors(input, \"base\", createCachedDescriptors, index),\n overridesEnv: (input, index, envName) =>\n buildOverrideEnvDescriptors(\n input,\n \"base\",\n createCachedDescriptors,\n index,\n envName,\n ),\n createLogger: (input, context, baseLogger) =>\n buildProgrammaticLogger(input, context, baseLogger),\n});\n\n/**\n * Build a config chain for a given file.\n */\nconst loadFileChainWalker = makeChainWalker({\n root: file => loadFileDescriptors(file),\n env: (file, envName) => loadFileEnvDescriptors(file)(envName),\n overrides: (file, index) => loadFileOverridesDescriptors(file)(index),\n overridesEnv: (file, index, envName) =>\n loadFileOverridesEnvDescriptors(file)(index)(envName),\n createLogger: (file, context, baseLogger) =>\n buildFileLogger(file.filepath, context, baseLogger),\n});\n\nfunction* loadFileChain(\n input: ValidatedFile,\n context: ConfigContext,\n files: Set,\n baseLogger: ConfigPrinter,\n) {\n const chain = yield* loadFileChainWalker(input, context, files, baseLogger);\n chain?.files.add(input.filepath);\n\n return chain;\n}\n\nconst loadFileDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n buildRootDescriptors(file, file.filepath, createUncachedDescriptors),\n);\nconst loadFileEnvDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadFileOverridesDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadFileOverridesEnvDescriptors = makeWeakCacheSync(\n (file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nfunction buildFileLogger(\n filepath: string,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Config, {\n filepath,\n });\n}\n\nfunction buildRootDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n) {\n return descriptors(dirname, options, alias);\n}\n\nfunction buildProgrammaticLogger(\n _: unknown,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Programmatic, {\n callerName: context.caller?.name,\n });\n}\n\nfunction buildEnvDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n envName: string,\n) {\n const opts = options.env?.[envName];\n return opts ? descriptors(dirname, opts, `${alias}.env[\"${envName}\"]`) : null;\n}\n\nfunction buildOverrideDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n) {\n const opts = options.overrides?.[index];\n if (!opts) throw new Error(\"Assertion failure - missing override\");\n\n return descriptors(dirname, opts, `${alias}.overrides[${index}]`);\n}\n\nfunction buildOverrideEnvDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n envName: string,\n) {\n const override = options.overrides?.[index];\n if (!override) throw new Error(\"Assertion failure - missing override\");\n\n const opts = override.env?.[envName];\n return opts\n ? descriptors(\n dirname,\n opts,\n `${alias}.overrides[${index}].env[\"${envName}\"]`,\n )\n : null;\n}\n\nfunction makeChainWalker<\n ArgT extends {\n options: ValidatedOptions;\n dirname: string;\n filepath?: string;\n },\n>({\n root,\n env,\n overrides,\n overridesEnv,\n createLogger,\n}: {\n root: (configEntry: ArgT) => OptionsAndDescriptors;\n env: (configEntry: ArgT, env: string) => OptionsAndDescriptors | null;\n overrides: (configEntry: ArgT, index: number) => OptionsAndDescriptors;\n overridesEnv: (\n configEntry: ArgT,\n index: number,\n env: string,\n ) => OptionsAndDescriptors | null;\n createLogger: (\n configEntry: ArgT,\n context: ConfigContext,\n printer: ConfigPrinter | void,\n ) => (\n opts: OptionsAndDescriptors,\n index?: number | null,\n env?: string | null,\n ) => void;\n}): (\n configEntry: ArgT,\n context: ConfigContext,\n files?: Set,\n baseLogger?: ConfigPrinter,\n) => Handler {\n return function* chainWalker(input, context, files = new Set(), baseLogger) {\n const { dirname } = input;\n\n const flattenedConfigs: Array<{\n config: OptionsAndDescriptors;\n index: number | undefined | null;\n envName: string | undefined | null;\n }> = [];\n\n const rootOpts = root(input);\n if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: rootOpts,\n envName: undefined,\n index: undefined,\n });\n\n const envOpts = env(input, context.envName);\n if (\n envOpts &&\n configIsApplicable(envOpts, dirname, context, input.filepath)\n ) {\n flattenedConfigs.push({\n config: envOpts,\n envName: context.envName,\n index: undefined,\n });\n }\n\n (rootOpts.options.overrides || []).forEach((_, index) => {\n const overrideOps = overrides(input, index);\n if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: overrideOps,\n index,\n envName: undefined,\n });\n\n const overrideEnvOpts = overridesEnv(input, index, context.envName);\n if (\n overrideEnvOpts &&\n configIsApplicable(\n overrideEnvOpts,\n dirname,\n context,\n input.filepath,\n )\n ) {\n flattenedConfigs.push({\n config: overrideEnvOpts,\n index,\n envName: context.envName,\n });\n }\n }\n });\n }\n\n // Process 'ignore' and 'only' before 'extends' items are processed so\n // that we don't do extra work loading extended configs if a file is\n // ignored.\n if (\n flattenedConfigs.some(\n ({\n config: {\n options: { ignore, only },\n },\n }) => shouldIgnore(context, ignore, only, dirname),\n )\n ) {\n return null;\n }\n\n const chain = emptyChain();\n const logger = createLogger(input, context, baseLogger);\n\n for (const { config, index, envName } of flattenedConfigs) {\n if (\n !(yield* mergeExtendsChain(\n chain,\n config.options,\n dirname,\n context,\n files,\n baseLogger,\n ))\n ) {\n return null;\n }\n\n logger(config, index, envName);\n yield* mergeChainOpts(chain, config);\n }\n return chain;\n };\n}\n\nfunction* mergeExtendsChain(\n chain: ConfigChain,\n opts: ValidatedOptions,\n dirname: string,\n context: ConfigContext,\n files: Set,\n baseLogger?: ConfigPrinter,\n): Handler {\n if (opts.extends === undefined) return true;\n\n const file = yield* loadConfig(\n opts.extends,\n dirname,\n context.envName,\n context.caller,\n );\n\n if (files.has(file)) {\n throw new Error(\n `Configuration cycle detected loading ${file.filepath}.\\n` +\n `File already loaded following the config chain:\\n` +\n Array.from(files, file => ` - ${file.filepath}`).join(\"\\n\"),\n );\n }\n\n files.add(file);\n const fileChain = yield* loadFileChain(\n validateExtendFile(file),\n context,\n files,\n baseLogger,\n );\n files.delete(file);\n\n if (!fileChain) return false;\n\n mergeChain(chain, fileChain);\n\n return true;\n}\n\nfunction mergeChain(target: ConfigChain, source: ConfigChain): ConfigChain {\n target.options.push(...source.options);\n target.plugins.push(...source.plugins);\n target.presets.push(...source.presets);\n for (const file of source.files) {\n target.files.add(file);\n }\n\n return target;\n}\n\nfunction* mergeChainOpts(\n target: ConfigChain,\n { options, plugins, presets }: OptionsAndDescriptors,\n): Handler {\n target.options.push(options);\n target.plugins.push(...(yield* plugins()));\n target.presets.push(...(yield* presets()));\n\n return target;\n}\n\nfunction emptyChain(): ConfigChain {\n return {\n options: [],\n presets: [],\n plugins: [],\n files: new Set(),\n };\n}\n\nfunction normalizeOptions(opts: ValidatedOptions): ValidatedOptions {\n const options = {\n ...opts,\n };\n delete options.extends;\n delete options.env;\n delete options.overrides;\n delete options.plugins;\n delete options.presets;\n delete options.passPerPreset;\n delete options.ignore;\n delete options.only;\n delete options.test;\n delete options.include;\n delete options.exclude;\n\n // \"sourceMap\" is just aliased to sourceMap, so copy it over as\n // we merge the options together.\n if (Object.hasOwn(options, \"sourceMap\")) {\n options.sourceMaps = options.sourceMap;\n delete options.sourceMap;\n }\n return options;\n}\n\nfunction dedupDescriptors(\n items: Array>,\n): Array> {\n const map: Map<\n Function,\n Map }>\n > = new Map();\n\n const descriptors = [];\n\n for (const item of items) {\n if (typeof item.value === \"function\") {\n const fnKey = item.value;\n let nameMap = map.get(fnKey);\n if (!nameMap) {\n nameMap = new Map();\n map.set(fnKey, nameMap);\n }\n let desc = nameMap.get(item.name);\n if (!desc) {\n desc = { value: item };\n descriptors.push(desc);\n\n // Treat passPerPreset presets as unique, skipping them\n // in the merge processing steps.\n if (!item.ownPass) nameMap.set(item.name, desc);\n } else {\n desc.value = item;\n }\n } else {\n descriptors.push({ value: item });\n }\n }\n\n return descriptors.reduce((acc, desc) => {\n acc.push(desc.value);\n return acc;\n }, []);\n}\n\nfunction configIsApplicable(\n { options }: OptionsAndDescriptors,\n dirname: string,\n context: ConfigContext,\n configName: string,\n): boolean {\n return (\n (options.test === undefined ||\n configFieldIsApplicable(context, options.test, dirname, configName)) &&\n (options.include === undefined ||\n configFieldIsApplicable(context, options.include, dirname, configName)) &&\n (options.exclude === undefined ||\n !configFieldIsApplicable(context, options.exclude, dirname, configName))\n );\n}\n\nfunction configFieldIsApplicable(\n context: ConfigContext,\n test: ConfigApplicableTest,\n dirname: string,\n configName: string,\n): boolean {\n const patterns = Array.isArray(test) ? test : [test];\n\n return matchesPatterns(context, patterns, dirname, configName);\n}\n\n/**\n * Print the ignoreList-values in a more helpful way than the default.\n */\nfunction ignoreListReplacer(\n _key: string,\n value: IgnoreList | IgnoreItem,\n): IgnoreList | IgnoreItem | string {\n if (value instanceof RegExp) {\n return String(value);\n }\n\n return value;\n}\n\n/**\n * Tests if a filename should be ignored based on \"ignore\" and \"only\" options.\n */\nfunction shouldIgnore(\n context: ConfigContext,\n ignore: IgnoreList | undefined | null,\n only: IgnoreList | undefined | null,\n dirname: string,\n): boolean {\n if (ignore && matchesPatterns(context, ignore, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it matches one of \\`ignore: ${JSON.stringify(\n ignore,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n if (only && !matchesPatterns(context, only, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it fails to match one of \\`only: ${JSON.stringify(\n only,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n return false;\n}\n\n/**\n * Returns result of calling function with filename if pattern is a function.\n * Otherwise returns result of matching pattern Regex with filename.\n */\nfunction matchesPatterns(\n context: ConfigContext,\n patterns: IgnoreList,\n dirname: string,\n configName?: string,\n): boolean {\n return patterns.some(pattern =>\n matchPattern(pattern, dirname, context.filename, context, configName),\n );\n}\n\nfunction matchPattern(\n pattern: IgnoreItem,\n dirname: string,\n pathToTest: string | undefined,\n context: ConfigContext,\n configName?: string,\n): boolean {\n if (typeof pattern === \"function\") {\n return !!endHiddenCallStack(pattern)(pathToTest, {\n dirname,\n envName: context.envName,\n caller: context.caller,\n });\n }\n\n if (typeof pathToTest !== \"string\") {\n throw new ConfigError(\n `Configuration contains string/RegExp pattern, but no filename was passed to Babel`,\n configName,\n );\n }\n\n if (typeof pattern === \"string\") {\n pattern = pathPatternToRegex(pattern, dirname);\n }\n return pattern.test(pathToTest);\n}\n"],"mappings":";;;;;;;;AAEA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,QAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAKA,IAAAO,MAAA,GAAAP,OAAA;AAQA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,kBAAA,GAAAT,OAAA;AAZA,MAAMU,KAAK,GAAGC,OAASA,CAAC,CAAC,2BAA2B,CAAC;AAgD9C,UAAUC,gBAAgBA,CAC/BC,GAAmB,EACnBC,OAAY,EACiB;EAC7B,MAAMC,KAAK,GAAG,OAAOC,sBAAsB,CAACH,GAAG,EAAEC,OAAO,CAAC;EACzD,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;EAEvB,OAAO;IACLE,OAAO,EAAEC,gBAAgB,CAACH,KAAK,CAACE,OAAO,CAAC;IACxCE,OAAO,EAAED,gBAAgB,CAACH,KAAK,CAACI,OAAO,CAAC;IACxCC,OAAO,EAAEL,KAAK,CAACK,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIC,gBAAgB,CAACD,CAAC,CAAC,CAAC;IACpDE,KAAK,EAAE,IAAIC,GAAG,CAAC;EACjB,CAAC;AACH;AAEO,MAAMT,sBAAsB,GAAAU,OAAA,CAAAV,sBAAA,GAAGW,eAAe,CAAiB;EACpEC,IAAI,EAAEC,MAAM,IAAIC,qBAAqB,CAACD,MAAM,CAAC;EAC7CE,GAAG,EAAEA,CAACF,MAAM,EAAEG,OAAO,KAAKC,wBAAwB,CAACJ,MAAM,CAAC,CAACG,OAAO,CAAC;EACnEE,SAAS,EAAEA,CAACL,MAAM,EAAEM,KAAK,KAAKC,8BAA8B,CAACP,MAAM,CAAC,CAACM,KAAK,CAAC;EAC3EE,YAAY,EAAEA,CAACR,MAAM,EAAEM,KAAK,EAAEH,OAAO,KACnCM,iCAAiC,CAACT,MAAM,CAAC,CAACM,KAAK,CAAC,CAACH,OAAO,CAAC;EAC3DO,YAAY,EAAEA,CAAA,KAAM,MAAM,CAAC;AAC7B,CAAC,CAAC;AACF,MAAMT,qBAAqB,GAAG,IAAAU,0BAAiB,EAAEX,MAAsB,IACrEY,oBAAoB,CAACZ,MAAM,EAAEA,MAAM,CAACa,KAAK,EAAEC,4CAAyB,CACtE,CAAC;AACD,MAAMV,wBAAwB,GAAG,IAAAO,0BAAiB,EAAEX,MAAsB,IACxE,IAAAe,4BAAmB,EAAEZ,OAAe,IAClCa,mBAAmB,CACjBhB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBX,OACF,CACF,CACF,CAAC;AACD,MAAMI,8BAA8B,GAAG,IAAAI,0BAAiB,EACrDX,MAAsB,IACrB,IAAAe,4BAAmB,EAAET,KAAa,IAChCW,wBAAwB,CACtBjB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBR,KACF,CACF,CACJ,CAAC;AACD,MAAMG,iCAAiC,GAAG,IAAAE,0BAAiB,EACxDX,MAAsB,IACrB,IAAAe,4BAAmB,EAAET,KAAa,IAChC,IAAAS,4BAAmB,EAAEZ,OAAe,IAClCe,2BAA2B,CACzBlB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBR,KAAK,EACLH,OACF,CACF,CACF,CACJ,CAAC;AAcM,UAAUgB,cAAcA,CAC7BC,IAAsB,EACtBnC,OAAsB,EACW;EACjC,IAAIoC,YAAY,EAAEC,aAAa;EAC/B,MAAMC,kBAAkB,GAAG,IAAIC,sBAAa,CAAC,CAAC;EAC9C,MAAMC,iBAAiB,GAAG,OAAOC,qBAAqB,CACpD;IACEnC,OAAO,EAAE6B,IAAI;IACbO,OAAO,EAAE1C,OAAO,CAAC2C;EACnB,CAAC,EACD3C,OAAO,EACP4C,SAAS,EACTN,kBACF,CAAC;EACD,IAAI,CAACE,iBAAiB,EAAE,OAAO,IAAI;EACnC,MAAMK,kBAAkB,GAAG,OAAOP,kBAAkB,CAACQ,MAAM,CAAC,CAAC;EAE7D,IAAIC,UAAU;EACd,IAAI,OAAOZ,IAAI,CAACY,UAAU,KAAK,QAAQ,EAAE;IACvCA,UAAU,GAAG,OAAO,IAAAC,iBAAU,EAC5Bb,IAAI,CAACY,UAAU,EACf/C,OAAO,CAAC2C,GAAG,EACX3C,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EACH,CAAC,MAAM,IAAId,IAAI,CAACY,UAAU,KAAK,KAAK,EAAE;IACpCA,UAAU,GAAG,OAAO,IAAAG,qBAAc,EAChClD,OAAO,CAACc,IAAI,EACZd,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EACH;EAEA,IAAI;IAAEE,OAAO;IAAEC;EAAa,CAAC,GAAGjB,IAAI;EACpC,IAAIkB,qBAAqB,GAAGrD,OAAO,CAAC2C,GAAG;EAEvC,MAAMW,eAAe,GAAGC,UAAU,CAAC,CAAC;EACpC,MAAMC,gBAAgB,GAAG,IAAIjB,sBAAa,CAAC,CAAC;EAC5C,IAAIQ,UAAU,EAAE;IACd,MAAMU,aAAa,GAAGC,kBAAkB,CAACX,UAAU,CAAC;IACpD,MAAMY,MAAM,GAAG,OAAOC,aAAa,CACjCH,aAAa,EACbzD,OAAO,EACP4C,SAAS,EACTY,gBACF,CAAC;IACD,IAAI,CAACG,MAAM,EAAE,OAAO,IAAI;IACxBvB,YAAY,GAAG,OAAOoB,gBAAgB,CAACV,MAAM,CAAC,CAAC;IAI/C,IAAIK,OAAO,KAAKP,SAAS,EAAE;MACzBO,OAAO,GAAGM,aAAa,CAACnD,OAAO,CAAC6C,OAAO;IACzC;IACA,IAAIC,YAAY,KAAKR,SAAS,EAAE;MAC9BS,qBAAqB,GAAGI,aAAa,CAACf,OAAO;MAC7CU,YAAY,GAAGK,aAAa,CAACnD,OAAO,CAAC8C,YAAY;IACnD;IAEAS,UAAU,CAACP,eAAe,EAAEK,MAAM,CAAC;EACrC;EAEA,IAAIG,UAAU,EAAEC,WAAW;EAC3B,IAAIC,SAAS,GAAG,KAAK;EACrB,MAAMC,SAAS,GAAGV,UAAU,CAAC,CAAC;EAE9B,IACE,CAACJ,OAAO,KAAK,IAAI,IAAIA,OAAO,KAAKP,SAAS,KAC1C,OAAO5C,OAAO,CAACkE,QAAQ,KAAK,QAAQ,EACpC;IACA,MAAMC,OAAO,GAAG,OAAO,IAAAC,sBAAe,EAACpE,OAAO,CAACkE,QAAQ,CAAC;IAExD,IACEC,OAAO,IACPE,kBAAkB,CAACrE,OAAO,EAAEmE,OAAO,EAAEf,YAAY,EAAEC,qBAAqB,CAAC,EACzE;MACA,CAAC;QAAEiB,MAAM,EAAER,UAAU;QAAES,MAAM,EAAER;MAAY,CAAC,GAAG,OAAO,IAAAS,yBAAkB,EACtEL,OAAO,EACPnE,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;MAED,IAAIa,UAAU,EAAE;QACdG,SAAS,CAACvD,KAAK,CAAC+D,GAAG,CAACX,UAAU,CAACY,QAAQ,CAAC;MAC1C;MAEA,IACEZ,UAAU,IACVa,YAAY,CAAC3E,OAAO,EAAE8D,UAAU,CAACQ,MAAM,EAAE,IAAI,EAAER,UAAU,CAACpB,OAAO,CAAC,EAClE;QACAsB,SAAS,GAAG,IAAI;MAClB;MAEA,IAAID,WAAW,IAAI,CAACC,SAAS,EAAE;QAC7B,MAAMP,aAAa,GAAGmB,mBAAmB,CAACb,WAAW,CAAC;QACtD,MAAMc,aAAa,GAAG,IAAItC,sBAAa,CAAC,CAAC;QACzC,MAAMoB,MAAM,GAAG,OAAOC,aAAa,CACjCH,aAAa,EACbzD,OAAO,EACP4C,SAAS,EACTiC,aACF,CAAC;QACD,IAAI,CAAClB,MAAM,EAAE;UACXK,SAAS,GAAG,IAAI;QAClB,CAAC,MAAM;UACL3B,aAAa,GAAG,OAAOwC,aAAa,CAAC/B,MAAM,CAAC,CAAC;UAC7Ce,UAAU,CAACI,SAAS,EAAEN,MAAM,CAAC;QAC/B;MACF;MAEA,IAAII,WAAW,IAAIC,SAAS,EAAE;QAC5BC,SAAS,CAACvD,KAAK,CAAC+D,GAAG,CAACV,WAAW,CAACW,QAAQ,CAAC;MAC3C;IACF;EACF;EAEA,IAAI1E,OAAO,CAAC8E,UAAU,EAAE;IACtBC,OAAO,CAACC,GAAG,CACT,qBAAqBhF,OAAO,CAACkE,QAAQ,2BAA2B,GAE9D,CAAC9B,YAAY,EAAEC,aAAa,EAAEQ,kBAAkB,CAAC,CAC9CoC,MAAM,CAACC,CAAC,IAAI,CAAC,CAACA,CAAC,CAAC,CAChBC,IAAI,CAAC,MAAM,CAAC,GACf,+BACJ,CAAC;EACH;EAGA,MAAMlF,KAAK,GAAG4D,UAAU,CACtBA,UAAU,CAACA,UAAU,CAACN,UAAU,CAAC,CAAC,EAAED,eAAe,CAAC,EAAEW,SAAS,CAAC,EAChEzB,iBACF,CAAC;EAED,OAAO;IACLrC,OAAO,EAAE6D,SAAS,GAAG,EAAE,GAAG5D,gBAAgB,CAACH,KAAK,CAACE,OAAO,CAAC;IACzDE,OAAO,EAAE2D,SAAS,GAAG,EAAE,GAAG5D,gBAAgB,CAACH,KAAK,CAACI,OAAO,CAAC;IACzDC,OAAO,EAAE0D,SAAS,GAAG,EAAE,GAAG/D,KAAK,CAACK,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIC,gBAAgB,CAACD,CAAC,CAAC,CAAC;IACrE4E,YAAY,EAAEpB,SAAS,GAAG,SAAS,GAAG,WAAW;IACjDM,MAAM,EAAER,UAAU,IAAIlB,SAAS;IAC/BO,OAAO,EAAEY,WAAW,IAAInB,SAAS;IACjC2B,MAAM,EAAExB,UAAU,IAAIH,SAAS;IAC/BlC,KAAK,EAAET,KAAK,CAACS;EACf,CAAC;AACH;AAEA,SAAS2D,kBAAkBA,CACzBrE,OAAsB,EACtBmE,OAAwB,EACxBf,YAAuC,EACvCC,qBAA6B,EACpB;EACT,IAAI,OAAOD,YAAY,KAAK,SAAS,EAAE,OAAOA,YAAY;EAE1D,MAAMiC,YAAY,GAAGrF,OAAO,CAACc,IAAI;EAIjC,IAAIsC,YAAY,KAAKR,SAAS,EAAE;IAC9B,OAAOuB,OAAO,CAACmB,WAAW,CAACC,QAAQ,CAACF,YAAY,CAAC;EACnD;EAEA,IAAIG,eAAe,GAAGpC,YAAY;EAClC,IAAI,CAACqC,KAAK,CAACC,OAAO,CAACF,eAAe,CAAC,EAAE;IACnCA,eAAe,GAAG,CAACA,eAAe,CAAe;EACnD;EACAA,eAAe,GAAGA,eAAe,CAACjF,GAAG,CAACoF,GAAG,IAAI;IAC3C,OAAO,OAAOA,GAAG,KAAK,QAAQ,GAC1BC,MAAGA,CAAC,CAACC,OAAO,CAACxC,qBAAqB,EAAEsC,GAAG,CAAC,GACxCA,GAAG;EACT,CAAC,CAAC;EAIF,IAAIH,eAAe,CAACM,MAAM,KAAK,CAAC,IAAIN,eAAe,CAAC,CAAC,CAAC,KAAKH,YAAY,EAAE;IACvE,OAAOlB,OAAO,CAACmB,WAAW,CAACC,QAAQ,CAACF,YAAY,CAAC;EACnD;EAEA,OAAOG,eAAe,CAACO,IAAI,CAACJ,GAAG,IAAI;IACjC,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;MAC3BA,GAAG,GAAG,IAAAK,uBAAkB,EAACL,GAAG,EAAEtC,qBAAqB,CAAC;IACtD;IAEA,OAAOc,OAAO,CAACmB,WAAW,CAACS,IAAI,CAACE,SAAS,IAAI;MAC3C,OAAOC,YAAY,CAACP,GAAG,EAAEtC,qBAAqB,EAAE4C,SAAS,EAAEjG,OAAO,CAAC;IACrE,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AAEA,MAAM0D,kBAAkB,GAAG,IAAAhC,0BAAiB,EACzCyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,YAAY,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC7D,CAAC,CACH,CAAC;AAED,MAAME,mBAAmB,GAAG,IAAAlD,0BAAiB,EAC1CyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,aAAa,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC9D,CAAC,CACH,CAAC;AAED,MAAM2B,kBAAkB,GAAG,IAAA3E,0BAAiB,EACzCyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,aAAa,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC9D,CAAC,CACH,CAAC;AAKD,MAAMjC,qBAAqB,GAAG5B,eAAe,CAAC;EAC5CC,IAAI,EAAEwF,KAAK,IAAI3E,oBAAoB,CAAC2E,KAAK,EAAE,MAAM,EAAEC,0CAAuB,CAAC;EAC3EtF,GAAG,EAAEA,CAACqF,KAAK,EAAEpF,OAAO,KAClBa,mBAAmB,CAACuE,KAAK,EAAE,MAAM,EAAEC,0CAAuB,EAAErF,OAAO,CAAC;EACtEE,SAAS,EAAEA,CAACkF,KAAK,EAAEjF,KAAK,KACtBW,wBAAwB,CAACsE,KAAK,EAAE,MAAM,EAAEC,0CAAuB,EAAElF,KAAK,CAAC;EACzEE,YAAY,EAAEA,CAAC+E,KAAK,EAAEjF,KAAK,EAAEH,OAAO,KAClCe,2BAA2B,CACzBqE,KAAK,EACL,MAAM,EACNC,0CAAuB,EACvBlF,KAAK,EACLH,OACF,CAAC;EACHO,YAAY,EAAEA,CAAC6E,KAAK,EAAEtG,OAAO,EAAEwG,UAAU,KACvCC,uBAAuB,CAACH,KAAK,EAAEtG,OAAO,EAAEwG,UAAU;AACtD,CAAC,CAAC;AAKF,MAAME,mBAAmB,GAAG7F,eAAe,CAAgB;EACzDC,IAAI,EAAEqF,IAAI,IAAIQ,mBAAmB,CAACR,IAAI,CAAC;EACvClF,GAAG,EAAEA,CAACkF,IAAI,EAAEjF,OAAO,KAAK0F,sBAAsB,CAACT,IAAI,CAAC,CAACjF,OAAO,CAAC;EAC7DE,SAAS,EAAEA,CAAC+E,IAAI,EAAE9E,KAAK,KAAKwF,4BAA4B,CAACV,IAAI,CAAC,CAAC9E,KAAK,CAAC;EACrEE,YAAY,EAAEA,CAAC4E,IAAI,EAAE9E,KAAK,EAAEH,OAAO,KACjC4F,+BAA+B,CAACX,IAAI,CAAC,CAAC9E,KAAK,CAAC,CAACH,OAAO,CAAC;EACvDO,YAAY,EAAEA,CAAC0E,IAAI,EAAEnG,OAAO,EAAEwG,UAAU,KACtCO,eAAe,CAACZ,IAAI,CAACzB,QAAQ,EAAE1E,OAAO,EAAEwG,UAAU;AACtD,CAAC,CAAC;AAEF,UAAU5C,aAAaA,CACrB0C,KAAoB,EACpBtG,OAAsB,EACtBU,KAAsB,EACtB8F,UAAyB,EACzB;EACA,MAAMvG,KAAK,GAAG,OAAOyG,mBAAmB,CAACJ,KAAK,EAAEtG,OAAO,EAAEU,KAAK,EAAE8F,UAAU,CAAC;EAC3EvG,KAAK,YAALA,KAAK,CAAES,KAAK,CAAC+D,GAAG,CAAC6B,KAAK,CAAC5B,QAAQ,CAAC;EAEhC,OAAOzE,KAAK;AACd;AAEA,MAAM0G,mBAAmB,GAAG,IAAAjF,0BAAiB,EAAEyE,IAAmB,IAChExE,oBAAoB,CAACwE,IAAI,EAAEA,IAAI,CAACzB,QAAQ,EAAE7C,4CAAyB,CACrE,CAAC;AACD,MAAM+E,sBAAsB,GAAG,IAAAlF,0BAAiB,EAAEyE,IAAmB,IACnE,IAAArE,4BAAmB,EAAEZ,OAAe,IAClCa,mBAAmB,CACjBoE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBX,OACF,CACF,CACF,CAAC;AACD,MAAM2F,4BAA4B,GAAG,IAAAnF,0BAAiB,EAAEyE,IAAmB,IACzE,IAAArE,4BAAmB,EAAET,KAAa,IAChCW,wBAAwB,CACtBmE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBR,KACF,CACF,CACF,CAAC;AACD,MAAMyF,+BAA+B,GAAG,IAAApF,0BAAiB,EACtDyE,IAAmB,IAClB,IAAArE,4BAAmB,EAAET,KAAa,IAChC,IAAAS,4BAAmB,EAAEZ,OAAe,IAClCe,2BAA2B,CACzBkE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBR,KAAK,EACLH,OACF,CACF,CACF,CACJ,CAAC;AAED,SAAS6F,eAAeA,CACtBrC,QAAgB,EAChB1E,OAAsB,EACtBwG,UAAgC,EAChC;EACA,IAAI,CAACA,UAAU,EAAE;IACf,OAAO,MAAM,CAAC,CAAC;EACjB;EACA,OAAOA,UAAU,CAACQ,SAAS,CAAChH,OAAO,CAAC8E,UAAU,EAAEmC,uBAAc,CAACC,MAAM,EAAE;IACrExC;EACF,CAAC,CAAC;AACJ;AAEA,SAAS/C,oBAAoBA,CAC3B;EAAEe,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B;EACA,OAAOA,WAAW,CAACzE,OAAO,EAAEpC,OAAO,EAAEsB,KAAK,CAAC;AAC7C;AAEA,SAAS6E,uBAAuBA,CAC9BW,CAAU,EACVpH,OAAsB,EACtBwG,UAAgC,EAChC;EAAA,IAAAa,eAAA;EACA,IAAI,CAACb,UAAU,EAAE;IACf,OAAO,MAAM,CAAC,CAAC;EACjB;EACA,OAAOA,UAAU,CAACQ,SAAS,CAAChH,OAAO,CAAC8E,UAAU,EAAEmC,uBAAc,CAACK,YAAY,EAAE;IAC3EC,UAAU,GAAAF,eAAA,GAAErH,OAAO,CAACiD,MAAM,qBAAdoE,eAAA,CAAgBG;EAC9B,CAAC,CAAC;AACJ;AAEA,SAASzF,mBAAmBA,CAC1B;EAAEW,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1BjG,OAAe,EACf;EAAA,IAAAuG,YAAA;EACA,MAAMtF,IAAI,IAAAsF,YAAA,GAAGnH,OAAO,CAACW,GAAG,qBAAXwG,YAAA,CAAcvG,OAAO,CAAC;EACnC,OAAOiB,IAAI,GAAGgF,WAAW,CAACzE,OAAO,EAAEP,IAAI,EAAE,GAAGP,KAAK,SAASV,OAAO,IAAI,CAAC,GAAG,IAAI;AAC/E;AAEA,SAASc,wBAAwBA,CAC/B;EAAEU,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B9F,KAAa,EACb;EAAA,IAAAqG,kBAAA;EACA,MAAMvF,IAAI,IAAAuF,kBAAA,GAAGpH,OAAO,CAACc,SAAS,qBAAjBsG,kBAAA,CAAoBrG,KAAK,CAAC;EACvC,IAAI,CAACc,IAAI,EAAE,MAAM,IAAIwF,KAAK,CAAC,sCAAsC,CAAC;EAElE,OAAOR,WAAW,CAACzE,OAAO,EAAEP,IAAI,EAAE,GAAGP,KAAK,cAAcP,KAAK,GAAG,CAAC;AACnE;AAEA,SAASY,2BAA2BA,CAClC;EAAES,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B9F,KAAa,EACbH,OAAe,EACf;EAAA,IAAA0G,mBAAA,EAAAC,aAAA;EACA,MAAMC,QAAQ,IAAAF,mBAAA,GAAGtH,OAAO,CAACc,SAAS,qBAAjBwG,mBAAA,CAAoBvG,KAAK,CAAC;EAC3C,IAAI,CAACyG,QAAQ,EAAE,MAAM,IAAIH,KAAK,CAAC,sCAAsC,CAAC;EAEtE,MAAMxF,IAAI,IAAA0F,aAAA,GAAGC,QAAQ,CAAC7G,GAAG,qBAAZ4G,aAAA,CAAe3G,OAAO,CAAC;EACpC,OAAOiB,IAAI,GACPgF,WAAW,CACTzE,OAAO,EACPP,IAAI,EACJ,GAAGP,KAAK,cAAcP,KAAK,UAAUH,OAAO,IAC9C,CAAC,GACD,IAAI;AACV;AAEA,SAASL,eAAeA,CAMtB;EACAC,IAAI;EACJG,GAAG;EACHG,SAAS;EACTG,YAAY;EACZE;AAmBF,CAAC,EAKgC;EAC/B,OAAO,UAAUsG,WAAWA,CAACzB,KAAK,EAAEtG,OAAO,EAAEU,KAAK,GAAG,IAAIC,GAAG,CAAC,CAAC,EAAE6F,UAAU,EAAE;IAC1E,MAAM;MAAE9D;IAAQ,CAAC,GAAG4D,KAAK;IAEzB,MAAM0B,gBAIJ,GAAG,EAAE;IAEP,MAAMC,QAAQ,GAAGnH,IAAI,CAACwF,KAAK,CAAC;IAC5B,IAAI4B,kBAAkB,CAACD,QAAQ,EAAEvF,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAAE;MAClEsD,gBAAgB,CAACG,IAAI,CAAC;QACpB5D,MAAM,EAAE0D,QAAQ;QAChB/G,OAAO,EAAE0B,SAAS;QAClBvB,KAAK,EAAEuB;MACT,CAAC,CAAC;MAEF,MAAMwF,OAAO,GAAGnH,GAAG,CAACqF,KAAK,EAAEtG,OAAO,CAACkB,OAAO,CAAC;MAC3C,IACEkH,OAAO,IACPF,kBAAkB,CAACE,OAAO,EAAE1F,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAC7D;QACAsD,gBAAgB,CAACG,IAAI,CAAC;UACpB5D,MAAM,EAAE6D,OAAO;UACflH,OAAO,EAAElB,OAAO,CAACkB,OAAO;UACxBG,KAAK,EAAEuB;QACT,CAAC,CAAC;MACJ;MAEA,CAACqF,QAAQ,CAAC3H,OAAO,CAACc,SAAS,IAAI,EAAE,EAAEiH,OAAO,CAAC,CAACjB,CAAC,EAAE/F,KAAK,KAAK;QACvD,MAAMiH,WAAW,GAAGlH,SAAS,CAACkF,KAAK,EAAEjF,KAAK,CAAC;QAC3C,IAAI6G,kBAAkB,CAACI,WAAW,EAAE5F,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAAE;UACrEsD,gBAAgB,CAACG,IAAI,CAAC;YACpB5D,MAAM,EAAE+D,WAAW;YACnBjH,KAAK;YACLH,OAAO,EAAE0B;UACX,CAAC,CAAC;UAEF,MAAM2F,eAAe,GAAGhH,YAAY,CAAC+E,KAAK,EAAEjF,KAAK,EAAErB,OAAO,CAACkB,OAAO,CAAC;UACnE,IACEqH,eAAe,IACfL,kBAAkB,CAChBK,eAAe,EACf7F,OAAO,EACP1C,OAAO,EACPsG,KAAK,CAAC5B,QACR,CAAC,EACD;YACAsD,gBAAgB,CAACG,IAAI,CAAC;cACpB5D,MAAM,EAAEgE,eAAe;cACvBlH,KAAK;cACLH,OAAO,EAAElB,OAAO,CAACkB;YACnB,CAAC,CAAC;UACJ;QACF;MACF,CAAC,CAAC;IACJ;IAKA,IACE8G,gBAAgB,CAACjC,IAAI,CACnB,CAAC;MACCxB,MAAM,EAAE;QACNjE,OAAO,EAAE;UAAEgE,MAAM;UAAEkE;QAAK;MAC1B;IACF,CAAC,KAAK7D,YAAY,CAAC3E,OAAO,EAAEsE,MAAM,EAAEkE,IAAI,EAAE9F,OAAO,CACnD,CAAC,EACD;MACA,OAAO,IAAI;IACb;IAEA,MAAMzC,KAAK,GAAGsD,UAAU,CAAC,CAAC;IAC1B,MAAMkF,MAAM,GAAGhH,YAAY,CAAC6E,KAAK,EAAEtG,OAAO,EAAEwG,UAAU,CAAC;IAEvD,KAAK,MAAM;MAAEjC,MAAM;MAAElD,KAAK;MAAEH;IAAQ,CAAC,IAAI8G,gBAAgB,EAAE;MACzD,IACE,EAAE,OAAOU,iBAAiB,CACxBzI,KAAK,EACLsE,MAAM,CAACjE,OAAO,EACdoC,OAAO,EACP1C,OAAO,EACPU,KAAK,EACL8F,UACF,CAAC,CAAC,EACF;QACA,OAAO,IAAI;MACb;MAEAiC,MAAM,CAAClE,MAAM,EAAElD,KAAK,EAAEH,OAAO,CAAC;MAC9B,OAAOyH,cAAc,CAAC1I,KAAK,EAAEsE,MAAM,CAAC;IACtC;IACA,OAAOtE,KAAK;EACd,CAAC;AACH;AAEA,UAAUyI,iBAAiBA,CACzBzI,KAAkB,EAClBkC,IAAsB,EACtBO,OAAe,EACf1C,OAAsB,EACtBU,KAAsB,EACtB8F,UAA0B,EACR;EAClB,IAAIrE,IAAI,CAACyG,OAAO,KAAKhG,SAAS,EAAE,OAAO,IAAI;EAE3C,MAAMuD,IAAI,GAAG,OAAO,IAAAnD,iBAAU,EAC5Bb,IAAI,CAACyG,OAAO,EACZlG,OAAO,EACP1C,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EAED,IAAIvC,KAAK,CAACmI,GAAG,CAAC1C,IAAI,CAAC,EAAE;IACnB,MAAM,IAAIwB,KAAK,CACb,wCAAwCxB,IAAI,CAACzB,QAAQ,KAAK,GACxD,mDAAmD,GACnDe,KAAK,CAACqD,IAAI,CAACpI,KAAK,EAAEyF,IAAI,IAAI,MAAMA,IAAI,CAACzB,QAAQ,EAAE,CAAC,CAACS,IAAI,CAAC,IAAI,CAC9D,CAAC;EACH;EAEAzE,KAAK,CAAC+D,GAAG,CAAC0B,IAAI,CAAC;EACf,MAAMlC,SAAS,GAAG,OAAOL,aAAa,CACpCyC,kBAAkB,CAACF,IAAI,CAAC,EACxBnG,OAAO,EACPU,KAAK,EACL8F,UACF,CAAC;EACD9F,KAAK,CAACqI,MAAM,CAAC5C,IAAI,CAAC;EAElB,IAAI,CAAClC,SAAS,EAAE,OAAO,KAAK;EAE5BJ,UAAU,CAAC5D,KAAK,EAAEgE,SAAS,CAAC;EAE5B,OAAO,IAAI;AACb;AAEA,SAASJ,UAAUA,CAACmF,MAAmB,EAAEC,MAAmB,EAAe;EACzED,MAAM,CAAC1I,OAAO,CAAC6H,IAAI,CAAC,GAAGc,MAAM,CAAC3I,OAAO,CAAC;EACtC0I,MAAM,CAAC7I,OAAO,CAACgI,IAAI,CAAC,GAAGc,MAAM,CAAC9I,OAAO,CAAC;EACtC6I,MAAM,CAAC3I,OAAO,CAAC8H,IAAI,CAAC,GAAGc,MAAM,CAAC5I,OAAO,CAAC;EACtC,KAAK,MAAM8F,IAAI,IAAI8C,MAAM,CAACvI,KAAK,EAAE;IAC/BsI,MAAM,CAACtI,KAAK,CAAC+D,GAAG,CAAC0B,IAAI,CAAC;EACxB;EAEA,OAAO6C,MAAM;AACf;AAEA,UAAUL,cAAcA,CACtBK,MAAmB,EACnB;EAAE1I,OAAO;EAAEH,OAAO;EAAEE;AAA+B,CAAC,EAC9B;EACtB2I,MAAM,CAAC1I,OAAO,CAAC6H,IAAI,CAAC7H,OAAO,CAAC;EAC5B0I,MAAM,CAAC7I,OAAO,CAACgI,IAAI,CAAC,IAAI,OAAOhI,OAAO,CAAC,CAAC,CAAC,CAAC;EAC1C6I,MAAM,CAAC3I,OAAO,CAAC8H,IAAI,CAAC,IAAI,OAAO9H,OAAO,CAAC,CAAC,CAAC,CAAC;EAE1C,OAAO2I,MAAM;AACf;AAEA,SAASzF,UAAUA,CAAA,EAAgB;EACjC,OAAO;IACLjD,OAAO,EAAE,EAAE;IACXD,OAAO,EAAE,EAAE;IACXF,OAAO,EAAE,EAAE;IACXO,KAAK,EAAE,IAAIC,GAAG,CAAC;EACjB,CAAC;AACH;AAEA,SAASF,gBAAgBA,CAAC0B,IAAsB,EAAoB;EAClE,MAAM7B,OAAO,GAAA4I,MAAA,CAAAC,MAAA,KACRhH,IAAI,CACR;EACD,OAAO7B,OAAO,CAACsI,OAAO;EACtB,OAAOtI,OAAO,CAACW,GAAG;EAClB,OAAOX,OAAO,CAACc,SAAS;EACxB,OAAOd,OAAO,CAACH,OAAO;EACtB,OAAOG,OAAO,CAACD,OAAO;EACtB,OAAOC,OAAO,CAAC8I,aAAa;EAC5B,OAAO9I,OAAO,CAACgE,MAAM;EACrB,OAAOhE,OAAO,CAACkI,IAAI;EACnB,OAAOlI,OAAO,CAAC+I,IAAI;EACnB,OAAO/I,OAAO,CAACgJ,OAAO;EACtB,OAAOhJ,OAAO,CAACiJ,OAAO;EAItB,IAAIC,cAAA,CAAAC,IAAA,CAAcnJ,OAAO,EAAE,WAAW,CAAC,EAAE;IACvCA,OAAO,CAACoJ,UAAU,GAAGpJ,OAAO,CAACqJ,SAAS;IACtC,OAAOrJ,OAAO,CAACqJ,SAAS;EAC1B;EACA,OAAOrJ,OAAO;AAChB;AAEA,SAASF,gBAAgBA,CACvBwJ,KAAqC,EACL;EAChC,MAAMrJ,GAGL,GAAG,IAAIsJ,GAAG,CAAC,CAAC;EAEb,MAAM1C,WAAW,GAAG,EAAE;EAEtB,KAAK,MAAM2C,IAAI,IAAIF,KAAK,EAAE;IACxB,IAAI,OAAOE,IAAI,CAACC,KAAK,KAAK,UAAU,EAAE;MACpC,MAAMC,KAAK,GAAGF,IAAI,CAACC,KAAK;MACxB,IAAIE,OAAO,GAAG1J,GAAG,CAAC2J,GAAG,CAACF,KAAK,CAAC;MAC5B,IAAI,CAACC,OAAO,EAAE;QACZA,OAAO,GAAG,IAAIJ,GAAG,CAAC,CAAC;QACnBtJ,GAAG,CAAC4J,GAAG,CAACH,KAAK,EAAEC,OAAO,CAAC;MACzB;MACA,IAAIG,IAAI,GAAGH,OAAO,CAACC,GAAG,CAACJ,IAAI,CAACtC,IAAI,CAAC;MACjC,IAAI,CAAC4C,IAAI,EAAE;QACTA,IAAI,GAAG;UAAEL,KAAK,EAAED;QAAK,CAAC;QACtB3C,WAAW,CAACgB,IAAI,CAACiC,IAAI,CAAC;QAItB,IAAI,CAACN,IAAI,CAACO,OAAO,EAAEJ,OAAO,CAACE,GAAG,CAACL,IAAI,CAACtC,IAAI,EAAE4C,IAAI,CAAC;MACjD,CAAC,MAAM;QACLA,IAAI,CAACL,KAAK,GAAGD,IAAI;MACnB;IACF,CAAC,MAAM;MACL3C,WAAW,CAACgB,IAAI,CAAC;QAAE4B,KAAK,EAAED;MAAK,CAAC,CAAC;IACnC;EACF;EAEA,OAAO3C,WAAW,CAACmD,MAAM,CAAC,CAACC,GAAG,EAAEH,IAAI,KAAK;IACvCG,GAAG,CAACpC,IAAI,CAACiC,IAAI,CAACL,KAAK,CAAC;IACpB,OAAOQ,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR;AAEA,SAASrC,kBAAkBA,CACzB;EAAE5H;AAA+B,CAAC,EAClCoC,OAAe,EACf1C,OAAsB,EACtBwK,UAAkB,EACT;EACT,OACE,CAAClK,OAAO,CAAC+I,IAAI,KAAKzG,SAAS,IACzB6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAAC+I,IAAI,EAAE3G,OAAO,EAAE8H,UAAU,CAAC,MACpElK,OAAO,CAACgJ,OAAO,KAAK1G,SAAS,IAC5B6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAACgJ,OAAO,EAAE5G,OAAO,EAAE8H,UAAU,CAAC,CAAC,KACxElK,OAAO,CAACiJ,OAAO,KAAK3G,SAAS,IAC5B,CAAC6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAACiJ,OAAO,EAAE7G,OAAO,EAAE8H,UAAU,CAAC,CAAC;AAE9E;AAEA,SAASC,uBAAuBA,CAC9BzK,OAAsB,EACtBqJ,IAA0B,EAC1B3G,OAAe,EACf8H,UAAkB,EACT;EACT,MAAME,QAAQ,GAAGjF,KAAK,CAACC,OAAO,CAAC2D,IAAI,CAAC,GAAGA,IAAI,GAAG,CAACA,IAAI,CAAC;EAEpD,OAAOsB,eAAe,CAAC3K,OAAO,EAAE0K,QAAQ,EAAEhI,OAAO,EAAE8H,UAAU,CAAC;AAChE;AAKA,SAASI,kBAAkBA,CACzBC,IAAY,EACZd,KAA8B,EACI;EAClC,IAAIA,KAAK,YAAYe,MAAM,EAAE;IAC3B,OAAOC,MAAM,CAAChB,KAAK,CAAC;EACtB;EAEA,OAAOA,KAAK;AACd;AAKA,SAASpF,YAAYA,CACnB3E,OAAsB,EACtBsE,MAAqC,EACrCkE,IAAmC,EACnC9F,OAAe,EACN;EACT,IAAI4B,MAAM,IAAIqG,eAAe,CAAC3K,OAAO,EAAEsE,MAAM,EAAE5B,OAAO,CAAC,EAAE;IAAA,IAAAsI,iBAAA;IACvD,MAAMC,OAAO,GAAG,6BAAAD,iBAAA,GACdhL,OAAO,CAACkE,QAAQ,YAAA8G,iBAAA,GAAI,WAAW,yCACQE,IAAI,CAACC,SAAS,CACrD7G,MAAM,EACNsG,kBACF,CAAC,YAAYlI,OAAO,GAAG;IACvB9C,KAAK,CAACqL,OAAO,CAAC;IACd,IAAIjL,OAAO,CAAC8E,UAAU,EAAE;MACtBC,OAAO,CAACC,GAAG,CAACiG,OAAO,CAAC;IACtB;IACA,OAAO,IAAI;EACb;EAEA,IAAIzC,IAAI,IAAI,CAACmC,eAAe,CAAC3K,OAAO,EAAEwI,IAAI,EAAE9F,OAAO,CAAC,EAAE;IAAA,IAAA0I,kBAAA;IACpD,MAAMH,OAAO,GAAG,6BAAAG,kBAAA,GACdpL,OAAO,CAACkE,QAAQ,YAAAkH,kBAAA,GAAI,WAAW,8CACaF,IAAI,CAACC,SAAS,CAC1D3C,IAAI,EACJoC,kBACF,CAAC,YAAYlI,OAAO,GAAG;IACvB9C,KAAK,CAACqL,OAAO,CAAC;IACd,IAAIjL,OAAO,CAAC8E,UAAU,EAAE;MACtBC,OAAO,CAACC,GAAG,CAACiG,OAAO,CAAC;IACtB;IACA,OAAO,IAAI;EACb;EAEA,OAAO,KAAK;AACd;AAMA,SAASN,eAAeA,CACtB3K,OAAsB,EACtB0K,QAAoB,EACpBhI,OAAe,EACf8H,UAAmB,EACV;EACT,OAAOE,QAAQ,CAAC3E,IAAI,CAACsF,OAAO,IAC1BnF,YAAY,CAACmF,OAAO,EAAE3I,OAAO,EAAE1C,OAAO,CAACkE,QAAQ,EAAElE,OAAO,EAAEwK,UAAU,CACtE,CAAC;AACH;AAEA,SAAStE,YAAYA,CACnBmF,OAAmB,EACnB3I,OAAe,EACf4I,UAA8B,EAC9BtL,OAAsB,EACtBwK,UAAmB,EACV;EACT,IAAI,OAAOa,OAAO,KAAK,UAAU,EAAE;IACjC,OAAO,CAAC,CAAC,IAAAE,qCAAkB,EAACF,OAAO,CAAC,CAACC,UAAU,EAAE;MAC/C5I,OAAO;MACPxB,OAAO,EAAElB,OAAO,CAACkB,OAAO;MACxB+B,MAAM,EAAEjD,OAAO,CAACiD;IAClB,CAAC,CAAC;EACJ;EAEA,IAAI,OAAOqI,UAAU,KAAK,QAAQ,EAAE;IAClC,MAAM,IAAIE,oBAAW,CACnB,mFAAmF,EACnFhB,UACF,CAAC;EACH;EAEA,IAAI,OAAOa,OAAO,KAAK,QAAQ,EAAE;IAC/BA,OAAO,GAAG,IAAArF,uBAAkB,EAACqF,OAAO,EAAE3I,OAAO,CAAC;EAChD;EACA,OAAO2I,OAAO,CAAChC,IAAI,CAACiC,UAAU,CAAC;AACjC;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","_debug","_options","_patternToRegex","_printer","_rewriteStackTrace","_configError","_index","_caching","_configDescriptors","debug","buildDebug","buildPresetChain","arg","context","chain","buildPresetChainWalker","plugins","dedupDescriptors","presets","options","map","o","normalizeOptions","files","Set","exports","makeChainWalker","root","preset","loadPresetDescriptors","env","envName","loadPresetEnvDescriptors","overrides","index","loadPresetOverridesDescriptors","overridesEnv","loadPresetOverridesEnvDescriptors","createLogger","makeWeakCacheSync","buildRootDescriptors","alias","createUncachedDescriptors","makeStrongCacheSync","buildEnvDescriptors","buildOverrideDescriptors","buildOverrideEnvDescriptors","buildRootChain","opts","configReport","babelRcReport","programmaticLogger","ConfigPrinter","programmaticChain","loadProgrammaticChain","dirname","cwd","undefined","programmaticReport","output","configFile","loadConfig","caller","findRootConfig","babelrc","babelrcRoots","babelrcRootsDirectory","configFileChain","emptyChain","configFileLogger","validatedFile","validateConfigFile","result","loadFileChain","mergeChain","ignoreFile","babelrcFile","isIgnored","fileChain","filename","pkgData","findPackageData","babelrcLoadEnabled","ignore","config","findRelativeConfig","add","filepath","shouldIgnore","validateBabelrcFile","babelrcLogger","showConfig","console","log","filter","x","join","fileHandling","absoluteRoot","directories","includes","babelrcPatterns","Array","isArray","pat","path","resolve","length","some","pathPatternToRegex","directory","matchPattern","file","validate","validateExtendFile","input","createCachedDescriptors","baseLogger","buildProgrammaticLogger","loadFileChainWalker","loadFileDescriptors","loadFileEnvDescriptors","loadFileOverridesDescriptors","loadFileOverridesEnvDescriptors","buildFileLogger","configure","ChainFormatter","Config","descriptors","_","_context$caller","Programmatic","callerName","name","_options$env","_options$overrides","Error","_options$overrides2","_override$env","override","chainWalker","flattenedConfigs","rootOpts","configIsApplicable","push","envOpts","forEach","overrideOps","overrideEnvOpts","only","logger","mergeExtendsChain","mergeChainOpts","extends","has","from","delete","target","source","Object","assign","passPerPreset","test","include","exclude","hasOwnProperty","call","sourceMaps","sourceMap","items","Map","item","value","fnKey","nameMap","get","set","desc","ownPass","reduce","acc","configName","configFieldIsApplicable","patterns","matchesPatterns","ignoreListReplacer","_key","RegExp","String","_context$filename","message","JSON","stringify","_context$filename2","pattern","pathToTest","endHiddenCallStack","ConfigError"],"sources":["../../src/config/config-chain.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-use-before-define */\n\nimport path from \"path\";\nimport buildDebug from \"debug\";\nimport type { Handler } from \"gensync\";\nimport { validate } from \"./validation/options.ts\";\nimport type {\n ValidatedOptions,\n IgnoreList,\n ConfigApplicableTest,\n BabelrcSearch,\n CallerMetadata,\n IgnoreItem,\n} from \"./validation/options.ts\";\nimport pathPatternToRegex from \"./pattern-to-regex.ts\";\nimport { ConfigPrinter, ChainFormatter } from \"./printer.ts\";\nimport type { ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\n\nimport { endHiddenCallStack } from \"../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nconst debug = buildDebug(\"babel:config:config-chain\");\n\nimport {\n findPackageData,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile, FilePackageData } from \"./files/index.ts\";\n\nimport { makeWeakCacheSync, makeStrongCacheSync } from \"./caching.ts\";\n\nimport {\n createCachedDescriptors,\n createUncachedDescriptors,\n} from \"./config-descriptors.ts\";\nimport type {\n UnloadedDescriptor,\n OptionsAndDescriptors,\n ValidatedFile,\n} from \"./config-descriptors.ts\";\n\nexport type ConfigChain = {\n plugins: Array>;\n presets: Array>;\n options: Array;\n files: Set;\n};\n\nexport type PresetInstance = {\n options: ValidatedOptions;\n alias: string;\n dirname: string;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type ConfigContext = {\n filename: string | undefined;\n cwd: string;\n root: string;\n envName: string;\n caller: CallerMetadata | undefined;\n showConfig: boolean;\n};\n\n/**\n * Build a config chain for a given preset.\n */\nexport function* buildPresetChain(\n arg: PresetInstance,\n context: any,\n): Handler {\n const chain = yield* buildPresetChainWalker(arg, context);\n if (!chain) return null;\n\n return {\n plugins: dedupDescriptors(chain.plugins),\n presets: dedupDescriptors(chain.presets),\n options: chain.options.map(o => normalizeOptions(o)),\n files: new Set(),\n };\n}\n\nexport const buildPresetChainWalker = makeChainWalker({\n root: preset => loadPresetDescriptors(preset),\n env: (preset, envName) => loadPresetEnvDescriptors(preset)(envName),\n overrides: (preset, index) => loadPresetOverridesDescriptors(preset)(index),\n overridesEnv: (preset, index, envName) =>\n loadPresetOverridesEnvDescriptors(preset)(index)(envName),\n createLogger: () => () => {}, // Currently we don't support logging how preset is expanded\n});\nconst loadPresetDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n buildRootDescriptors(preset, preset.alias, createUncachedDescriptors),\n);\nconst loadPresetEnvDescriptors = makeWeakCacheSync((preset: PresetInstance) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadPresetOverridesDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadPresetOverridesEnvDescriptors = makeWeakCacheSync(\n (preset: PresetInstance) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n preset,\n preset.alias,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nexport type FileHandling = \"transpile\" | \"ignored\" | \"unsupported\";\nexport type RootConfigChain = ConfigChain & {\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set;\n};\n\n/**\n * Build a config chain for Babel's full root configuration.\n */\nexport function* buildRootChain(\n opts: ValidatedOptions,\n context: ConfigContext,\n): Handler {\n let configReport, babelRcReport;\n const programmaticLogger = new ConfigPrinter();\n const programmaticChain = yield* loadProgrammaticChain(\n {\n options: opts,\n dirname: context.cwd,\n },\n context,\n undefined,\n programmaticLogger,\n );\n if (!programmaticChain) return null;\n const programmaticReport = yield* programmaticLogger.output();\n\n let configFile;\n if (typeof opts.configFile === \"string\") {\n configFile = yield* loadConfig(\n opts.configFile,\n context.cwd,\n context.envName,\n context.caller,\n );\n } else if (opts.configFile !== false) {\n configFile = yield* findRootConfig(\n context.root,\n context.envName,\n context.caller,\n );\n }\n\n let { babelrc, babelrcRoots } = opts;\n let babelrcRootsDirectory = context.cwd;\n\n const configFileChain = emptyChain();\n const configFileLogger = new ConfigPrinter();\n if (configFile) {\n const validatedFile = validateConfigFile(configFile);\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n configFileLogger,\n );\n if (!result) return null;\n configReport = yield* configFileLogger.output();\n\n // Allow config files to toggle `.babelrc` resolution on and off and\n // specify where the roots are.\n if (babelrc === undefined) {\n babelrc = validatedFile.options.babelrc;\n }\n if (babelrcRoots === undefined) {\n babelrcRootsDirectory = validatedFile.dirname;\n babelrcRoots = validatedFile.options.babelrcRoots;\n }\n\n mergeChain(configFileChain, result);\n }\n\n let ignoreFile, babelrcFile;\n let isIgnored = false;\n const fileChain = emptyChain();\n // resolve all .babelrc files\n if (\n (babelrc === true || babelrc === undefined) &&\n typeof context.filename === \"string\"\n ) {\n const pkgData = yield* findPackageData(context.filename);\n\n if (\n pkgData &&\n babelrcLoadEnabled(context, pkgData, babelrcRoots, babelrcRootsDirectory)\n ) {\n ({ ignore: ignoreFile, config: babelrcFile } = yield* findRelativeConfig(\n pkgData,\n context.envName,\n context.caller,\n ));\n\n if (ignoreFile) {\n fileChain.files.add(ignoreFile.filepath);\n }\n\n if (\n ignoreFile &&\n shouldIgnore(context, ignoreFile.ignore, null, ignoreFile.dirname)\n ) {\n isIgnored = true;\n }\n\n if (babelrcFile && !isIgnored) {\n const validatedFile = validateBabelrcFile(babelrcFile);\n const babelrcLogger = new ConfigPrinter();\n const result = yield* loadFileChain(\n validatedFile,\n context,\n undefined,\n babelrcLogger,\n );\n if (!result) {\n isIgnored = true;\n } else {\n babelRcReport = yield* babelrcLogger.output();\n mergeChain(fileChain, result);\n }\n }\n\n if (babelrcFile && isIgnored) {\n fileChain.files.add(babelrcFile.filepath);\n }\n }\n }\n\n if (context.showConfig) {\n console.log(\n `Babel configs on \"${context.filename}\" (ascending priority):\\n` +\n // print config by the order of ascending priority\n [configReport, babelRcReport, programmaticReport]\n .filter(x => !!x)\n .join(\"\\n\\n\") +\n \"\\n-----End Babel configs-----\",\n );\n }\n // Insert file chain in front so programmatic options have priority\n // over configuration file chain items.\n const chain = mergeChain(\n mergeChain(mergeChain(emptyChain(), configFileChain), fileChain),\n programmaticChain,\n );\n\n return {\n plugins: isIgnored ? [] : dedupDescriptors(chain.plugins),\n presets: isIgnored ? [] : dedupDescriptors(chain.presets),\n options: isIgnored ? [] : chain.options.map(o => normalizeOptions(o)),\n fileHandling: isIgnored ? \"ignored\" : \"transpile\",\n ignore: ignoreFile || undefined,\n babelrc: babelrcFile || undefined,\n config: configFile || undefined,\n files: chain.files,\n };\n}\n\nfunction babelrcLoadEnabled(\n context: ConfigContext,\n pkgData: FilePackageData,\n babelrcRoots: BabelrcSearch | undefined,\n babelrcRootsDirectory: string,\n): boolean {\n if (typeof babelrcRoots === \"boolean\") return babelrcRoots;\n\n const absoluteRoot = context.root;\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcRoots === undefined) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n let babelrcPatterns = babelrcRoots;\n if (!Array.isArray(babelrcPatterns)) {\n babelrcPatterns = [babelrcPatterns as IgnoreItem];\n }\n babelrcPatterns = babelrcPatterns.map(pat => {\n return typeof pat === \"string\"\n ? path.resolve(babelrcRootsDirectory, pat)\n : pat;\n });\n\n // Fast path to avoid having to match patterns if the babelrc is just\n // loading in the standard root directory.\n if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) {\n return pkgData.directories.includes(absoluteRoot);\n }\n\n return babelrcPatterns.some(pat => {\n if (typeof pat === \"string\") {\n pat = pathPatternToRegex(pat, babelrcRootsDirectory);\n }\n\n return pkgData.directories.some(directory => {\n return matchPattern(pat, babelrcRootsDirectory, directory, context);\n });\n });\n}\n\nconst validateConfigFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"configfile\", file.options, file.filepath),\n }),\n);\n\nconst validateBabelrcFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"babelrcfile\", file.options, file.filepath),\n }),\n);\n\nconst validateExtendFile = makeWeakCacheSync(\n (file: ConfigFile): ValidatedFile => ({\n filepath: file.filepath,\n dirname: file.dirname,\n options: validate(\"extendsfile\", file.options, file.filepath),\n }),\n);\n\n/**\n * Build a config chain for just the programmatic options passed into Babel.\n */\nconst loadProgrammaticChain = makeChainWalker({\n root: input => buildRootDescriptors(input, \"base\", createCachedDescriptors),\n env: (input, envName) =>\n buildEnvDescriptors(input, \"base\", createCachedDescriptors, envName),\n overrides: (input, index) =>\n buildOverrideDescriptors(input, \"base\", createCachedDescriptors, index),\n overridesEnv: (input, index, envName) =>\n buildOverrideEnvDescriptors(\n input,\n \"base\",\n createCachedDescriptors,\n index,\n envName,\n ),\n createLogger: (input, context, baseLogger) =>\n buildProgrammaticLogger(input, context, baseLogger),\n});\n\n/**\n * Build a config chain for a given file.\n */\nconst loadFileChainWalker = makeChainWalker({\n root: file => loadFileDescriptors(file),\n env: (file, envName) => loadFileEnvDescriptors(file)(envName),\n overrides: (file, index) => loadFileOverridesDescriptors(file)(index),\n overridesEnv: (file, index, envName) =>\n loadFileOverridesEnvDescriptors(file)(index)(envName),\n createLogger: (file, context, baseLogger) =>\n buildFileLogger(file.filepath, context, baseLogger),\n});\n\nfunction* loadFileChain(\n input: ValidatedFile,\n context: ConfigContext,\n files: Set,\n baseLogger: ConfigPrinter,\n) {\n const chain = yield* loadFileChainWalker(input, context, files, baseLogger);\n chain?.files.add(input.filepath);\n\n return chain;\n}\n\nconst loadFileDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n buildRootDescriptors(file, file.filepath, createUncachedDescriptors),\n);\nconst loadFileEnvDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((envName: string) =>\n buildEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n envName,\n ),\n ),\n);\nconst loadFileOverridesDescriptors = makeWeakCacheSync((file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n buildOverrideDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n ),\n ),\n);\nconst loadFileOverridesEnvDescriptors = makeWeakCacheSync(\n (file: ValidatedFile) =>\n makeStrongCacheSync((index: number) =>\n makeStrongCacheSync((envName: string) =>\n buildOverrideEnvDescriptors(\n file,\n file.filepath,\n createUncachedDescriptors,\n index,\n envName,\n ),\n ),\n ),\n);\n\nfunction buildFileLogger(\n filepath: string,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Config, {\n filepath,\n });\n}\n\nfunction buildRootDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n) {\n return descriptors(dirname, options, alias);\n}\n\nfunction buildProgrammaticLogger(\n _: unknown,\n context: ConfigContext,\n baseLogger: ConfigPrinter | void,\n) {\n if (!baseLogger) {\n return () => {};\n }\n return baseLogger.configure(context.showConfig, ChainFormatter.Programmatic, {\n callerName: context.caller?.name,\n });\n}\n\nfunction buildEnvDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n envName: string,\n) {\n const opts = options.env?.[envName];\n return opts ? descriptors(dirname, opts, `${alias}.env[\"${envName}\"]`) : null;\n}\n\nfunction buildOverrideDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n) {\n const opts = options.overrides?.[index];\n if (!opts) throw new Error(\"Assertion failure - missing override\");\n\n return descriptors(dirname, opts, `${alias}.overrides[${index}]`);\n}\n\nfunction buildOverrideEnvDescriptors(\n { dirname, options }: Partial,\n alias: string,\n descriptors: (\n dirname: string,\n options: ValidatedOptions,\n alias: string,\n ) => OptionsAndDescriptors,\n index: number,\n envName: string,\n) {\n const override = options.overrides?.[index];\n if (!override) throw new Error(\"Assertion failure - missing override\");\n\n const opts = override.env?.[envName];\n return opts\n ? descriptors(\n dirname,\n opts,\n `${alias}.overrides[${index}].env[\"${envName}\"]`,\n )\n : null;\n}\n\nfunction makeChainWalker<\n ArgT extends {\n options: ValidatedOptions;\n dirname: string;\n filepath?: string;\n },\n>({\n root,\n env,\n overrides,\n overridesEnv,\n createLogger,\n}: {\n root: (configEntry: ArgT) => OptionsAndDescriptors;\n env: (configEntry: ArgT, env: string) => OptionsAndDescriptors | null;\n overrides: (configEntry: ArgT, index: number) => OptionsAndDescriptors;\n overridesEnv: (\n configEntry: ArgT,\n index: number,\n env: string,\n ) => OptionsAndDescriptors | null;\n createLogger: (\n configEntry: ArgT,\n context: ConfigContext,\n printer: ConfigPrinter | void,\n ) => (\n opts: OptionsAndDescriptors,\n index?: number | null,\n env?: string | null,\n ) => void;\n}): (\n configEntry: ArgT,\n context: ConfigContext,\n files?: Set,\n baseLogger?: ConfigPrinter,\n) => Handler {\n return function* chainWalker(input, context, files = new Set(), baseLogger) {\n const { dirname } = input;\n\n const flattenedConfigs: Array<{\n config: OptionsAndDescriptors;\n index: number | undefined | null;\n envName: string | undefined | null;\n }> = [];\n\n const rootOpts = root(input);\n if (configIsApplicable(rootOpts, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: rootOpts,\n envName: undefined,\n index: undefined,\n });\n\n const envOpts = env(input, context.envName);\n if (\n envOpts &&\n configIsApplicable(envOpts, dirname, context, input.filepath)\n ) {\n flattenedConfigs.push({\n config: envOpts,\n envName: context.envName,\n index: undefined,\n });\n }\n\n (rootOpts.options.overrides || []).forEach((_, index) => {\n const overrideOps = overrides(input, index);\n if (configIsApplicable(overrideOps, dirname, context, input.filepath)) {\n flattenedConfigs.push({\n config: overrideOps,\n index,\n envName: undefined,\n });\n\n const overrideEnvOpts = overridesEnv(input, index, context.envName);\n if (\n overrideEnvOpts &&\n configIsApplicable(\n overrideEnvOpts,\n dirname,\n context,\n input.filepath,\n )\n ) {\n flattenedConfigs.push({\n config: overrideEnvOpts,\n index,\n envName: context.envName,\n });\n }\n }\n });\n }\n\n // Process 'ignore' and 'only' before 'extends' items are processed so\n // that we don't do extra work loading extended configs if a file is\n // ignored.\n if (\n flattenedConfigs.some(\n ({\n config: {\n options: { ignore, only },\n },\n }) => shouldIgnore(context, ignore, only, dirname),\n )\n ) {\n return null;\n }\n\n const chain = emptyChain();\n const logger = createLogger(input, context, baseLogger);\n\n for (const { config, index, envName } of flattenedConfigs) {\n if (\n !(yield* mergeExtendsChain(\n chain,\n config.options,\n dirname,\n context,\n files,\n baseLogger,\n ))\n ) {\n return null;\n }\n\n logger(config, index, envName);\n yield* mergeChainOpts(chain, config);\n }\n return chain;\n };\n}\n\nfunction* mergeExtendsChain(\n chain: ConfigChain,\n opts: ValidatedOptions,\n dirname: string,\n context: ConfigContext,\n files: Set,\n baseLogger?: ConfigPrinter,\n): Handler {\n if (opts.extends === undefined) return true;\n\n const file = yield* loadConfig(\n opts.extends,\n dirname,\n context.envName,\n context.caller,\n );\n\n if (files.has(file)) {\n throw new Error(\n `Configuration cycle detected loading ${file.filepath}.\\n` +\n `File already loaded following the config chain:\\n` +\n Array.from(files, file => ` - ${file.filepath}`).join(\"\\n\"),\n );\n }\n\n files.add(file);\n const fileChain = yield* loadFileChain(\n validateExtendFile(file),\n context,\n files,\n baseLogger,\n );\n files.delete(file);\n\n if (!fileChain) return false;\n\n mergeChain(chain, fileChain);\n\n return true;\n}\n\nfunction mergeChain(target: ConfigChain, source: ConfigChain): ConfigChain {\n target.options.push(...source.options);\n target.plugins.push(...source.plugins);\n target.presets.push(...source.presets);\n for (const file of source.files) {\n target.files.add(file);\n }\n\n return target;\n}\n\nfunction* mergeChainOpts(\n target: ConfigChain,\n { options, plugins, presets }: OptionsAndDescriptors,\n): Handler {\n target.options.push(options);\n target.plugins.push(...(yield* plugins()));\n target.presets.push(...(yield* presets()));\n\n return target;\n}\n\nfunction emptyChain(): ConfigChain {\n return {\n options: [],\n presets: [],\n plugins: [],\n files: new Set(),\n };\n}\n\nfunction normalizeOptions(opts: ValidatedOptions): ValidatedOptions {\n const options = {\n ...opts,\n };\n delete options.extends;\n delete options.env;\n delete options.overrides;\n delete options.plugins;\n delete options.presets;\n delete options.passPerPreset;\n delete options.ignore;\n delete options.only;\n delete options.test;\n delete options.include;\n delete options.exclude;\n\n // \"sourceMap\" is just aliased to sourceMap, so copy it over as\n // we merge the options together.\n if (Object.hasOwn(options, \"sourceMap\")) {\n options.sourceMaps = options.sourceMap;\n delete options.sourceMap;\n }\n return options;\n}\n\nfunction dedupDescriptors(\n items: Array>,\n): Array> {\n const map: Map<\n Function,\n Map }>\n > = new Map();\n\n const descriptors = [];\n\n for (const item of items) {\n if (typeof item.value === \"function\") {\n const fnKey = item.value;\n let nameMap = map.get(fnKey);\n if (!nameMap) {\n nameMap = new Map();\n map.set(fnKey, nameMap);\n }\n let desc = nameMap.get(item.name);\n if (!desc) {\n desc = { value: item };\n descriptors.push(desc);\n\n // Treat passPerPreset presets as unique, skipping them\n // in the merge processing steps.\n if (!item.ownPass) nameMap.set(item.name, desc);\n } else {\n desc.value = item;\n }\n } else {\n descriptors.push({ value: item });\n }\n }\n\n return descriptors.reduce((acc, desc) => {\n acc.push(desc.value);\n return acc;\n }, []);\n}\n\nfunction configIsApplicable(\n { options }: OptionsAndDescriptors,\n dirname: string,\n context: ConfigContext,\n configName: string,\n): boolean {\n return (\n (options.test === undefined ||\n configFieldIsApplicable(context, options.test, dirname, configName)) &&\n (options.include === undefined ||\n configFieldIsApplicable(context, options.include, dirname, configName)) &&\n (options.exclude === undefined ||\n !configFieldIsApplicable(context, options.exclude, dirname, configName))\n );\n}\n\nfunction configFieldIsApplicable(\n context: ConfigContext,\n test: ConfigApplicableTest,\n dirname: string,\n configName: string,\n): boolean {\n const patterns = Array.isArray(test) ? test : [test];\n\n return matchesPatterns(context, patterns, dirname, configName);\n}\n\n/**\n * Print the ignoreList-values in a more helpful way than the default.\n */\nfunction ignoreListReplacer(\n _key: string,\n value: IgnoreList | IgnoreItem,\n): IgnoreList | IgnoreItem | string {\n if (value instanceof RegExp) {\n return String(value);\n }\n\n return value;\n}\n\n/**\n * Tests if a filename should be ignored based on \"ignore\" and \"only\" options.\n */\nfunction shouldIgnore(\n context: ConfigContext,\n ignore: IgnoreList | undefined | null,\n only: IgnoreList | undefined | null,\n dirname: string,\n): boolean {\n if (ignore && matchesPatterns(context, ignore, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it matches one of \\`ignore: ${JSON.stringify(\n ignore,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n if (only && !matchesPatterns(context, only, dirname)) {\n const message = `No config is applied to \"${\n context.filename ?? \"(unknown)\"\n }\" because it fails to match one of \\`only: ${JSON.stringify(\n only,\n ignoreListReplacer,\n )}\\` from \"${dirname}\"`;\n debug(message);\n if (context.showConfig) {\n console.log(message);\n }\n return true;\n }\n\n return false;\n}\n\n/**\n * Returns result of calling function with filename if pattern is a function.\n * Otherwise returns result of matching pattern Regex with filename.\n */\nfunction matchesPatterns(\n context: ConfigContext,\n patterns: IgnoreList,\n dirname: string,\n configName?: string,\n): boolean {\n return patterns.some(pattern =>\n matchPattern(pattern, dirname, context.filename, context, configName),\n );\n}\n\nfunction matchPattern(\n pattern: IgnoreItem,\n dirname: string,\n pathToTest: string | undefined,\n context: ConfigContext,\n configName?: string,\n): boolean {\n if (typeof pattern === \"function\") {\n return !!endHiddenCallStack(pattern)(pathToTest, {\n dirname,\n envName: context.envName,\n caller: context.caller,\n });\n }\n\n if (typeof pathToTest !== \"string\") {\n throw new ConfigError(\n `Configuration contains string/RegExp pattern, but no filename was passed to Babel`,\n configName,\n );\n }\n\n if (typeof pattern === \"string\") {\n pattern = pathPatternToRegex(pattern, dirname);\n }\n return pattern.test(pathToTest);\n}\n"],"mappings":";;;;;;;;AAEA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,QAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAGA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAKA,IAAAO,MAAA,GAAAP,OAAA;AAQA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,kBAAA,GAAAT,OAAA;AAZA,MAAMU,KAAK,GAAGC,OAASA,CAAC,CAAC,2BAA2B,CAAC;AAgD9C,UAAUC,gBAAgBA,CAC/BC,GAAmB,EACnBC,OAAY,EACiB;EAC7B,MAAMC,KAAK,GAAG,OAAOC,sBAAsB,CAACH,GAAG,EAAEC,OAAO,CAAC;EACzD,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;EAEvB,OAAO;IACLE,OAAO,EAAEC,gBAAgB,CAACH,KAAK,CAACE,OAAO,CAAC;IACxCE,OAAO,EAAED,gBAAgB,CAACH,KAAK,CAACI,OAAO,CAAC;IACxCC,OAAO,EAAEL,KAAK,CAACK,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIC,gBAAgB,CAACD,CAAC,CAAC,CAAC;IACpDE,KAAK,EAAE,IAAIC,GAAG,CAAC;EACjB,CAAC;AACH;AAEO,MAAMT,sBAAsB,GAAAU,OAAA,CAAAV,sBAAA,GAAGW,eAAe,CAAiB;EACpEC,IAAI,EAAEC,MAAM,IAAIC,qBAAqB,CAACD,MAAM,CAAC;EAC7CE,GAAG,EAAEA,CAACF,MAAM,EAAEG,OAAO,KAAKC,wBAAwB,CAACJ,MAAM,CAAC,CAACG,OAAO,CAAC;EACnEE,SAAS,EAAEA,CAACL,MAAM,EAAEM,KAAK,KAAKC,8BAA8B,CAACP,MAAM,CAAC,CAACM,KAAK,CAAC;EAC3EE,YAAY,EAAEA,CAACR,MAAM,EAAEM,KAAK,EAAEH,OAAO,KACnCM,iCAAiC,CAACT,MAAM,CAAC,CAACM,KAAK,CAAC,CAACH,OAAO,CAAC;EAC3DO,YAAY,EAAEA,CAAA,KAAM,MAAM,CAAC;AAC7B,CAAC,CAAC;AACF,MAAMT,qBAAqB,GAAG,IAAAU,0BAAiB,EAAEX,MAAsB,IACrEY,oBAAoB,CAACZ,MAAM,EAAEA,MAAM,CAACa,KAAK,EAAEC,4CAAyB,CACtE,CAAC;AACD,MAAMV,wBAAwB,GAAG,IAAAO,0BAAiB,EAAEX,MAAsB,IACxE,IAAAe,4BAAmB,EAAEZ,OAAe,IAClCa,mBAAmB,CACjBhB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBX,OACF,CACF,CACF,CAAC;AACD,MAAMI,8BAA8B,GAAG,IAAAI,0BAAiB,EACrDX,MAAsB,IACrB,IAAAe,4BAAmB,EAAET,KAAa,IAChCW,wBAAwB,CACtBjB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBR,KACF,CACF,CACJ,CAAC;AACD,MAAMG,iCAAiC,GAAG,IAAAE,0BAAiB,EACxDX,MAAsB,IACrB,IAAAe,4BAAmB,EAAET,KAAa,IAChC,IAAAS,4BAAmB,EAAEZ,OAAe,IAClCe,2BAA2B,CACzBlB,MAAM,EACNA,MAAM,CAACa,KAAK,EACZC,4CAAyB,EACzBR,KAAK,EACLH,OACF,CACF,CACF,CACJ,CAAC;AAcM,UAAUgB,cAAcA,CAC7BC,IAAsB,EACtBnC,OAAsB,EACW;EACjC,IAAIoC,YAAY,EAAEC,aAAa;EAC/B,MAAMC,kBAAkB,GAAG,IAAIC,sBAAa,CAAC,CAAC;EAC9C,MAAMC,iBAAiB,GAAG,OAAOC,qBAAqB,CACpD;IACEnC,OAAO,EAAE6B,IAAI;IACbO,OAAO,EAAE1C,OAAO,CAAC2C;EACnB,CAAC,EACD3C,OAAO,EACP4C,SAAS,EACTN,kBACF,CAAC;EACD,IAAI,CAACE,iBAAiB,EAAE,OAAO,IAAI;EACnC,MAAMK,kBAAkB,GAAG,OAAOP,kBAAkB,CAACQ,MAAM,CAAC,CAAC;EAE7D,IAAIC,UAAU;EACd,IAAI,OAAOZ,IAAI,CAACY,UAAU,KAAK,QAAQ,EAAE;IACvCA,UAAU,GAAG,OAAO,IAAAC,iBAAU,EAC5Bb,IAAI,CAACY,UAAU,EACf/C,OAAO,CAAC2C,GAAG,EACX3C,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EACH,CAAC,MAAM,IAAId,IAAI,CAACY,UAAU,KAAK,KAAK,EAAE;IACpCA,UAAU,GAAG,OAAO,IAAAG,qBAAc,EAChClD,OAAO,CAACc,IAAI,EACZd,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EACH;EAEA,IAAI;IAAEE,OAAO;IAAEC;EAAa,CAAC,GAAGjB,IAAI;EACpC,IAAIkB,qBAAqB,GAAGrD,OAAO,CAAC2C,GAAG;EAEvC,MAAMW,eAAe,GAAGC,UAAU,CAAC,CAAC;EACpC,MAAMC,gBAAgB,GAAG,IAAIjB,sBAAa,CAAC,CAAC;EAC5C,IAAIQ,UAAU,EAAE;IACd,MAAMU,aAAa,GAAGC,kBAAkB,CAACX,UAAU,CAAC;IACpD,MAAMY,MAAM,GAAG,OAAOC,aAAa,CACjCH,aAAa,EACbzD,OAAO,EACP4C,SAAS,EACTY,gBACF,CAAC;IACD,IAAI,CAACG,MAAM,EAAE,OAAO,IAAI;IACxBvB,YAAY,GAAG,OAAOoB,gBAAgB,CAACV,MAAM,CAAC,CAAC;IAI/C,IAAIK,OAAO,KAAKP,SAAS,EAAE;MACzBO,OAAO,GAAGM,aAAa,CAACnD,OAAO,CAAC6C,OAAO;IACzC;IACA,IAAIC,YAAY,KAAKR,SAAS,EAAE;MAC9BS,qBAAqB,GAAGI,aAAa,CAACf,OAAO;MAC7CU,YAAY,GAAGK,aAAa,CAACnD,OAAO,CAAC8C,YAAY;IACnD;IAEAS,UAAU,CAACP,eAAe,EAAEK,MAAM,CAAC;EACrC;EAEA,IAAIG,UAAU,EAAEC,WAAW;EAC3B,IAAIC,SAAS,GAAG,KAAK;EACrB,MAAMC,SAAS,GAAGV,UAAU,CAAC,CAAC;EAE9B,IACE,CAACJ,OAAO,KAAK,IAAI,IAAIA,OAAO,KAAKP,SAAS,KAC1C,OAAO5C,OAAO,CAACkE,QAAQ,KAAK,QAAQ,EACpC;IACA,MAAMC,OAAO,GAAG,OAAO,IAAAC,sBAAe,EAACpE,OAAO,CAACkE,QAAQ,CAAC;IAExD,IACEC,OAAO,IACPE,kBAAkB,CAACrE,OAAO,EAAEmE,OAAO,EAAEf,YAAY,EAAEC,qBAAqB,CAAC,EACzE;MACA,CAAC;QAAEiB,MAAM,EAAER,UAAU;QAAES,MAAM,EAAER;MAAY,CAAC,GAAG,OAAO,IAAAS,yBAAkB,EACtEL,OAAO,EACPnE,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;MAED,IAAIa,UAAU,EAAE;QACdG,SAAS,CAACvD,KAAK,CAAC+D,GAAG,CAACX,UAAU,CAACY,QAAQ,CAAC;MAC1C;MAEA,IACEZ,UAAU,IACVa,YAAY,CAAC3E,OAAO,EAAE8D,UAAU,CAACQ,MAAM,EAAE,IAAI,EAAER,UAAU,CAACpB,OAAO,CAAC,EAClE;QACAsB,SAAS,GAAG,IAAI;MAClB;MAEA,IAAID,WAAW,IAAI,CAACC,SAAS,EAAE;QAC7B,MAAMP,aAAa,GAAGmB,mBAAmB,CAACb,WAAW,CAAC;QACtD,MAAMc,aAAa,GAAG,IAAItC,sBAAa,CAAC,CAAC;QACzC,MAAMoB,MAAM,GAAG,OAAOC,aAAa,CACjCH,aAAa,EACbzD,OAAO,EACP4C,SAAS,EACTiC,aACF,CAAC;QACD,IAAI,CAAClB,MAAM,EAAE;UACXK,SAAS,GAAG,IAAI;QAClB,CAAC,MAAM;UACL3B,aAAa,GAAG,OAAOwC,aAAa,CAAC/B,MAAM,CAAC,CAAC;UAC7Ce,UAAU,CAACI,SAAS,EAAEN,MAAM,CAAC;QAC/B;MACF;MAEA,IAAII,WAAW,IAAIC,SAAS,EAAE;QAC5BC,SAAS,CAACvD,KAAK,CAAC+D,GAAG,CAACV,WAAW,CAACW,QAAQ,CAAC;MAC3C;IACF;EACF;EAEA,IAAI1E,OAAO,CAAC8E,UAAU,EAAE;IACtBC,OAAO,CAACC,GAAG,CACT,qBAAqBhF,OAAO,CAACkE,QAAQ,2BAA2B,GAE9D,CAAC9B,YAAY,EAAEC,aAAa,EAAEQ,kBAAkB,CAAC,CAC9CoC,MAAM,CAACC,CAAC,IAAI,CAAC,CAACA,CAAC,CAAC,CAChBC,IAAI,CAAC,MAAM,CAAC,GACf,+BACJ,CAAC;EACH;EAGA,MAAMlF,KAAK,GAAG4D,UAAU,CACtBA,UAAU,CAACA,UAAU,CAACN,UAAU,CAAC,CAAC,EAAED,eAAe,CAAC,EAAEW,SAAS,CAAC,EAChEzB,iBACF,CAAC;EAED,OAAO;IACLrC,OAAO,EAAE6D,SAAS,GAAG,EAAE,GAAG5D,gBAAgB,CAACH,KAAK,CAACE,OAAO,CAAC;IACzDE,OAAO,EAAE2D,SAAS,GAAG,EAAE,GAAG5D,gBAAgB,CAACH,KAAK,CAACI,OAAO,CAAC;IACzDC,OAAO,EAAE0D,SAAS,GAAG,EAAE,GAAG/D,KAAK,CAACK,OAAO,CAACC,GAAG,CAACC,CAAC,IAAIC,gBAAgB,CAACD,CAAC,CAAC,CAAC;IACrE4E,YAAY,EAAEpB,SAAS,GAAG,SAAS,GAAG,WAAW;IACjDM,MAAM,EAAER,UAAU,IAAIlB,SAAS;IAC/BO,OAAO,EAAEY,WAAW,IAAInB,SAAS;IACjC2B,MAAM,EAAExB,UAAU,IAAIH,SAAS;IAC/BlC,KAAK,EAAET,KAAK,CAACS;EACf,CAAC;AACH;AAEA,SAAS2D,kBAAkBA,CACzBrE,OAAsB,EACtBmE,OAAwB,EACxBf,YAAuC,EACvCC,qBAA6B,EACpB;EACT,IAAI,OAAOD,YAAY,KAAK,SAAS,EAAE,OAAOA,YAAY;EAE1D,MAAMiC,YAAY,GAAGrF,OAAO,CAACc,IAAI;EAIjC,IAAIsC,YAAY,KAAKR,SAAS,EAAE;IAC9B,OAAOuB,OAAO,CAACmB,WAAW,CAACC,QAAQ,CAACF,YAAY,CAAC;EACnD;EAEA,IAAIG,eAAe,GAAGpC,YAAY;EAClC,IAAI,CAACqC,KAAK,CAACC,OAAO,CAACF,eAAe,CAAC,EAAE;IACnCA,eAAe,GAAG,CAACA,eAAe,CAAe;EACnD;EACAA,eAAe,GAAGA,eAAe,CAACjF,GAAG,CAACoF,GAAG,IAAI;IAC3C,OAAO,OAAOA,GAAG,KAAK,QAAQ,GAC1BC,MAAGA,CAAC,CAACC,OAAO,CAACxC,qBAAqB,EAAEsC,GAAG,CAAC,GACxCA,GAAG;EACT,CAAC,CAAC;EAIF,IAAIH,eAAe,CAACM,MAAM,KAAK,CAAC,IAAIN,eAAe,CAAC,CAAC,CAAC,KAAKH,YAAY,EAAE;IACvE,OAAOlB,OAAO,CAACmB,WAAW,CAACC,QAAQ,CAACF,YAAY,CAAC;EACnD;EAEA,OAAOG,eAAe,CAACO,IAAI,CAACJ,GAAG,IAAI;IACjC,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;MAC3BA,GAAG,GAAG,IAAAK,uBAAkB,EAACL,GAAG,EAAEtC,qBAAqB,CAAC;IACtD;IAEA,OAAOc,OAAO,CAACmB,WAAW,CAACS,IAAI,CAACE,SAAS,IAAI;MAC3C,OAAOC,YAAY,CAACP,GAAG,EAAEtC,qBAAqB,EAAE4C,SAAS,EAAEjG,OAAO,CAAC;IACrE,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AAEA,MAAM0D,kBAAkB,GAAG,IAAAhC,0BAAiB,EACzCyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,YAAY,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC7D,CAAC,CACH,CAAC;AAED,MAAME,mBAAmB,GAAG,IAAAlD,0BAAiB,EAC1CyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,aAAa,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC9D,CAAC,CACH,CAAC;AAED,MAAM2B,kBAAkB,GAAG,IAAA3E,0BAAiB,EACzCyE,IAAgB,KAAqB;EACpCzB,QAAQ,EAAEyB,IAAI,CAACzB,QAAQ;EACvBhC,OAAO,EAAEyD,IAAI,CAACzD,OAAO;EACrBpC,OAAO,EAAE,IAAA8F,iBAAQ,EAAC,aAAa,EAAED,IAAI,CAAC7F,OAAO,EAAE6F,IAAI,CAACzB,QAAQ;AAC9D,CAAC,CACH,CAAC;AAKD,MAAMjC,qBAAqB,GAAG5B,eAAe,CAAC;EAC5CC,IAAI,EAAEwF,KAAK,IAAI3E,oBAAoB,CAAC2E,KAAK,EAAE,MAAM,EAAEC,0CAAuB,CAAC;EAC3EtF,GAAG,EAAEA,CAACqF,KAAK,EAAEpF,OAAO,KAClBa,mBAAmB,CAACuE,KAAK,EAAE,MAAM,EAAEC,0CAAuB,EAAErF,OAAO,CAAC;EACtEE,SAAS,EAAEA,CAACkF,KAAK,EAAEjF,KAAK,KACtBW,wBAAwB,CAACsE,KAAK,EAAE,MAAM,EAAEC,0CAAuB,EAAElF,KAAK,CAAC;EACzEE,YAAY,EAAEA,CAAC+E,KAAK,EAAEjF,KAAK,EAAEH,OAAO,KAClCe,2BAA2B,CACzBqE,KAAK,EACL,MAAM,EACNC,0CAAuB,EACvBlF,KAAK,EACLH,OACF,CAAC;EACHO,YAAY,EAAEA,CAAC6E,KAAK,EAAEtG,OAAO,EAAEwG,UAAU,KACvCC,uBAAuB,CAACH,KAAK,EAAEtG,OAAO,EAAEwG,UAAU;AACtD,CAAC,CAAC;AAKF,MAAME,mBAAmB,GAAG7F,eAAe,CAAgB;EACzDC,IAAI,EAAEqF,IAAI,IAAIQ,mBAAmB,CAACR,IAAI,CAAC;EACvClF,GAAG,EAAEA,CAACkF,IAAI,EAAEjF,OAAO,KAAK0F,sBAAsB,CAACT,IAAI,CAAC,CAACjF,OAAO,CAAC;EAC7DE,SAAS,EAAEA,CAAC+E,IAAI,EAAE9E,KAAK,KAAKwF,4BAA4B,CAACV,IAAI,CAAC,CAAC9E,KAAK,CAAC;EACrEE,YAAY,EAAEA,CAAC4E,IAAI,EAAE9E,KAAK,EAAEH,OAAO,KACjC4F,+BAA+B,CAACX,IAAI,CAAC,CAAC9E,KAAK,CAAC,CAACH,OAAO,CAAC;EACvDO,YAAY,EAAEA,CAAC0E,IAAI,EAAEnG,OAAO,EAAEwG,UAAU,KACtCO,eAAe,CAACZ,IAAI,CAACzB,QAAQ,EAAE1E,OAAO,EAAEwG,UAAU;AACtD,CAAC,CAAC;AAEF,UAAU5C,aAAaA,CACrB0C,KAAoB,EACpBtG,OAAsB,EACtBU,KAAsB,EACtB8F,UAAyB,EACzB;EACA,MAAMvG,KAAK,GAAG,OAAOyG,mBAAmB,CAACJ,KAAK,EAAEtG,OAAO,EAAEU,KAAK,EAAE8F,UAAU,CAAC;EAC3EvG,KAAK,YAALA,KAAK,CAAES,KAAK,CAAC+D,GAAG,CAAC6B,KAAK,CAAC5B,QAAQ,CAAC;EAEhC,OAAOzE,KAAK;AACd;AAEA,MAAM0G,mBAAmB,GAAG,IAAAjF,0BAAiB,EAAEyE,IAAmB,IAChExE,oBAAoB,CAACwE,IAAI,EAAEA,IAAI,CAACzB,QAAQ,EAAE7C,4CAAyB,CACrE,CAAC;AACD,MAAM+E,sBAAsB,GAAG,IAAAlF,0BAAiB,EAAEyE,IAAmB,IACnE,IAAArE,4BAAmB,EAAEZ,OAAe,IAClCa,mBAAmB,CACjBoE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBX,OACF,CACF,CACF,CAAC;AACD,MAAM2F,4BAA4B,GAAG,IAAAnF,0BAAiB,EAAEyE,IAAmB,IACzE,IAAArE,4BAAmB,EAAET,KAAa,IAChCW,wBAAwB,CACtBmE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBR,KACF,CACF,CACF,CAAC;AACD,MAAMyF,+BAA+B,GAAG,IAAApF,0BAAiB,EACtDyE,IAAmB,IAClB,IAAArE,4BAAmB,EAAET,KAAa,IAChC,IAAAS,4BAAmB,EAAEZ,OAAe,IAClCe,2BAA2B,CACzBkE,IAAI,EACJA,IAAI,CAACzB,QAAQ,EACb7C,4CAAyB,EACzBR,KAAK,EACLH,OACF,CACF,CACF,CACJ,CAAC;AAED,SAAS6F,eAAeA,CACtBrC,QAAgB,EAChB1E,OAAsB,EACtBwG,UAAgC,EAChC;EACA,IAAI,CAACA,UAAU,EAAE;IACf,OAAO,MAAM,CAAC,CAAC;EACjB;EACA,OAAOA,UAAU,CAACQ,SAAS,CAAChH,OAAO,CAAC8E,UAAU,EAAEmC,uBAAc,CAACC,MAAM,EAAE;IACrExC;EACF,CAAC,CAAC;AACJ;AAEA,SAAS/C,oBAAoBA,CAC3B;EAAEe,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B;EACA,OAAOA,WAAW,CAACzE,OAAO,EAAEpC,OAAO,EAAEsB,KAAK,CAAC;AAC7C;AAEA,SAAS6E,uBAAuBA,CAC9BW,CAAU,EACVpH,OAAsB,EACtBwG,UAAgC,EAChC;EAAA,IAAAa,eAAA;EACA,IAAI,CAACb,UAAU,EAAE;IACf,OAAO,MAAM,CAAC,CAAC;EACjB;EACA,OAAOA,UAAU,CAACQ,SAAS,CAAChH,OAAO,CAAC8E,UAAU,EAAEmC,uBAAc,CAACK,YAAY,EAAE;IAC3EC,UAAU,GAAAF,eAAA,GAAErH,OAAO,CAACiD,MAAM,qBAAdoE,eAAA,CAAgBG;EAC9B,CAAC,CAAC;AACJ;AAEA,SAASzF,mBAAmBA,CAC1B;EAAEW,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1BjG,OAAe,EACf;EAAA,IAAAuG,YAAA;EACA,MAAMtF,IAAI,IAAAsF,YAAA,GAAGnH,OAAO,CAACW,GAAG,qBAAXwG,YAAA,CAAcvG,OAAO,CAAC;EACnC,OAAOiB,IAAI,GAAGgF,WAAW,CAACzE,OAAO,EAAEP,IAAI,EAAE,GAAGP,KAAK,SAASV,OAAO,IAAI,CAAC,GAAG,IAAI;AAC/E;AAEA,SAASc,wBAAwBA,CAC/B;EAAEU,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B9F,KAAa,EACb;EAAA,IAAAqG,kBAAA;EACA,MAAMvF,IAAI,IAAAuF,kBAAA,GAAGpH,OAAO,CAACc,SAAS,qBAAjBsG,kBAAA,CAAoBrG,KAAK,CAAC;EACvC,IAAI,CAACc,IAAI,EAAE,MAAM,IAAIwF,KAAK,CAAC,sCAAsC,CAAC;EAElE,OAAOR,WAAW,CAACzE,OAAO,EAAEP,IAAI,EAAE,GAAGP,KAAK,cAAcP,KAAK,GAAG,CAAC;AACnE;AAEA,SAASY,2BAA2BA,CAClC;EAAES,OAAO;EAAEpC;AAAgC,CAAC,EAC5CsB,KAAa,EACbuF,WAI0B,EAC1B9F,KAAa,EACbH,OAAe,EACf;EAAA,IAAA0G,mBAAA,EAAAC,aAAA;EACA,MAAMC,QAAQ,IAAAF,mBAAA,GAAGtH,OAAO,CAACc,SAAS,qBAAjBwG,mBAAA,CAAoBvG,KAAK,CAAC;EAC3C,IAAI,CAACyG,QAAQ,EAAE,MAAM,IAAIH,KAAK,CAAC,sCAAsC,CAAC;EAEtE,MAAMxF,IAAI,IAAA0F,aAAA,GAAGC,QAAQ,CAAC7G,GAAG,qBAAZ4G,aAAA,CAAe3G,OAAO,CAAC;EACpC,OAAOiB,IAAI,GACPgF,WAAW,CACTzE,OAAO,EACPP,IAAI,EACJ,GAAGP,KAAK,cAAcP,KAAK,UAAUH,OAAO,IAC9C,CAAC,GACD,IAAI;AACV;AAEA,SAASL,eAAeA,CAMtB;EACAC,IAAI;EACJG,GAAG;EACHG,SAAS;EACTG,YAAY;EACZE;AAmBF,CAAC,EAKgC;EAC/B,OAAO,UAAUsG,WAAWA,CAACzB,KAAK,EAAEtG,OAAO,EAAEU,KAAK,GAAG,IAAIC,GAAG,CAAC,CAAC,EAAE6F,UAAU,EAAE;IAC1E,MAAM;MAAE9D;IAAQ,CAAC,GAAG4D,KAAK;IAEzB,MAAM0B,gBAIJ,GAAG,EAAE;IAEP,MAAMC,QAAQ,GAAGnH,IAAI,CAACwF,KAAK,CAAC;IAC5B,IAAI4B,kBAAkB,CAACD,QAAQ,EAAEvF,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAAE;MAClEsD,gBAAgB,CAACG,IAAI,CAAC;QACpB5D,MAAM,EAAE0D,QAAQ;QAChB/G,OAAO,EAAE0B,SAAS;QAClBvB,KAAK,EAAEuB;MACT,CAAC,CAAC;MAEF,MAAMwF,OAAO,GAAGnH,GAAG,CAACqF,KAAK,EAAEtG,OAAO,CAACkB,OAAO,CAAC;MAC3C,IACEkH,OAAO,IACPF,kBAAkB,CAACE,OAAO,EAAE1F,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAC7D;QACAsD,gBAAgB,CAACG,IAAI,CAAC;UACpB5D,MAAM,EAAE6D,OAAO;UACflH,OAAO,EAAElB,OAAO,CAACkB,OAAO;UACxBG,KAAK,EAAEuB;QACT,CAAC,CAAC;MACJ;MAEA,CAACqF,QAAQ,CAAC3H,OAAO,CAACc,SAAS,IAAI,EAAE,EAAEiH,OAAO,CAAC,CAACjB,CAAC,EAAE/F,KAAK,KAAK;QACvD,MAAMiH,WAAW,GAAGlH,SAAS,CAACkF,KAAK,EAAEjF,KAAK,CAAC;QAC3C,IAAI6G,kBAAkB,CAACI,WAAW,EAAE5F,OAAO,EAAE1C,OAAO,EAAEsG,KAAK,CAAC5B,QAAQ,CAAC,EAAE;UACrEsD,gBAAgB,CAACG,IAAI,CAAC;YACpB5D,MAAM,EAAE+D,WAAW;YACnBjH,KAAK;YACLH,OAAO,EAAE0B;UACX,CAAC,CAAC;UAEF,MAAM2F,eAAe,GAAGhH,YAAY,CAAC+E,KAAK,EAAEjF,KAAK,EAAErB,OAAO,CAACkB,OAAO,CAAC;UACnE,IACEqH,eAAe,IACfL,kBAAkB,CAChBK,eAAe,EACf7F,OAAO,EACP1C,OAAO,EACPsG,KAAK,CAAC5B,QACR,CAAC,EACD;YACAsD,gBAAgB,CAACG,IAAI,CAAC;cACpB5D,MAAM,EAAEgE,eAAe;cACvBlH,KAAK;cACLH,OAAO,EAAElB,OAAO,CAACkB;YACnB,CAAC,CAAC;UACJ;QACF;MACF,CAAC,CAAC;IACJ;IAKA,IACE8G,gBAAgB,CAACjC,IAAI,CACnB,CAAC;MACCxB,MAAM,EAAE;QACNjE,OAAO,EAAE;UAAEgE,MAAM;UAAEkE;QAAK;MAC1B;IACF,CAAC,KAAK7D,YAAY,CAAC3E,OAAO,EAAEsE,MAAM,EAAEkE,IAAI,EAAE9F,OAAO,CACnD,CAAC,EACD;MACA,OAAO,IAAI;IACb;IAEA,MAAMzC,KAAK,GAAGsD,UAAU,CAAC,CAAC;IAC1B,MAAMkF,MAAM,GAAGhH,YAAY,CAAC6E,KAAK,EAAEtG,OAAO,EAAEwG,UAAU,CAAC;IAEvD,KAAK,MAAM;MAAEjC,MAAM;MAAElD,KAAK;MAAEH;IAAQ,CAAC,IAAI8G,gBAAgB,EAAE;MACzD,IACE,EAAE,OAAOU,iBAAiB,CACxBzI,KAAK,EACLsE,MAAM,CAACjE,OAAO,EACdoC,OAAO,EACP1C,OAAO,EACPU,KAAK,EACL8F,UACF,CAAC,CAAC,EACF;QACA,OAAO,IAAI;MACb;MAEAiC,MAAM,CAAClE,MAAM,EAAElD,KAAK,EAAEH,OAAO,CAAC;MAC9B,OAAOyH,cAAc,CAAC1I,KAAK,EAAEsE,MAAM,CAAC;IACtC;IACA,OAAOtE,KAAK;EACd,CAAC;AACH;AAEA,UAAUyI,iBAAiBA,CACzBzI,KAAkB,EAClBkC,IAAsB,EACtBO,OAAe,EACf1C,OAAsB,EACtBU,KAAsB,EACtB8F,UAA0B,EACR;EAClB,IAAIrE,IAAI,CAACyG,OAAO,KAAKhG,SAAS,EAAE,OAAO,IAAI;EAE3C,MAAMuD,IAAI,GAAG,OAAO,IAAAnD,iBAAU,EAC5Bb,IAAI,CAACyG,OAAO,EACZlG,OAAO,EACP1C,OAAO,CAACkB,OAAO,EACflB,OAAO,CAACiD,MACV,CAAC;EAED,IAAIvC,KAAK,CAACmI,GAAG,CAAC1C,IAAI,CAAC,EAAE;IACnB,MAAM,IAAIwB,KAAK,CACb,wCAAwCxB,IAAI,CAACzB,QAAQ,KAAK,GACxD,mDAAmD,GACnDe,KAAK,CAACqD,IAAI,CAACpI,KAAK,EAAEyF,IAAI,IAAI,MAAMA,IAAI,CAACzB,QAAQ,EAAE,CAAC,CAACS,IAAI,CAAC,IAAI,CAC9D,CAAC;EACH;EAEAzE,KAAK,CAAC+D,GAAG,CAAC0B,IAAI,CAAC;EACf,MAAMlC,SAAS,GAAG,OAAOL,aAAa,CACpCyC,kBAAkB,CAACF,IAAI,CAAC,EACxBnG,OAAO,EACPU,KAAK,EACL8F,UACF,CAAC;EACD9F,KAAK,CAACqI,MAAM,CAAC5C,IAAI,CAAC;EAElB,IAAI,CAAClC,SAAS,EAAE,OAAO,KAAK;EAE5BJ,UAAU,CAAC5D,KAAK,EAAEgE,SAAS,CAAC;EAE5B,OAAO,IAAI;AACb;AAEA,SAASJ,UAAUA,CAACmF,MAAmB,EAAEC,MAAmB,EAAe;EACzED,MAAM,CAAC1I,OAAO,CAAC6H,IAAI,CAAC,GAAGc,MAAM,CAAC3I,OAAO,CAAC;EACtC0I,MAAM,CAAC7I,OAAO,CAACgI,IAAI,CAAC,GAAGc,MAAM,CAAC9I,OAAO,CAAC;EACtC6I,MAAM,CAAC3I,OAAO,CAAC8H,IAAI,CAAC,GAAGc,MAAM,CAAC5I,OAAO,CAAC;EACtC,KAAK,MAAM8F,IAAI,IAAI8C,MAAM,CAACvI,KAAK,EAAE;IAC/BsI,MAAM,CAACtI,KAAK,CAAC+D,GAAG,CAAC0B,IAAI,CAAC;EACxB;EAEA,OAAO6C,MAAM;AACf;AAEA,UAAUL,cAAcA,CACtBK,MAAmB,EACnB;EAAE1I,OAAO;EAAEH,OAAO;EAAEE;AAA+B,CAAC,EAC9B;EACtB2I,MAAM,CAAC1I,OAAO,CAAC6H,IAAI,CAAC7H,OAAO,CAAC;EAC5B0I,MAAM,CAAC7I,OAAO,CAACgI,IAAI,CAAC,IAAI,OAAOhI,OAAO,CAAC,CAAC,CAAC,CAAC;EAC1C6I,MAAM,CAAC3I,OAAO,CAAC8H,IAAI,CAAC,IAAI,OAAO9H,OAAO,CAAC,CAAC,CAAC,CAAC;EAE1C,OAAO2I,MAAM;AACf;AAEA,SAASzF,UAAUA,CAAA,EAAgB;EACjC,OAAO;IACLjD,OAAO,EAAE,EAAE;IACXD,OAAO,EAAE,EAAE;IACXF,OAAO,EAAE,EAAE;IACXO,KAAK,EAAE,IAAIC,GAAG,CAAC;EACjB,CAAC;AACH;AAEA,SAASF,gBAAgBA,CAAC0B,IAAsB,EAAoB;EAClE,MAAM7B,OAAO,GAAA4I,MAAA,CAAAC,MAAA,KACRhH,IAAI,CACR;EACD,OAAO7B,OAAO,CAACsI,OAAO;EACtB,OAAOtI,OAAO,CAACW,GAAG;EAClB,OAAOX,OAAO,CAACc,SAAS;EACxB,OAAOd,OAAO,CAACH,OAAO;EACtB,OAAOG,OAAO,CAACD,OAAO;EACtB,OAAOC,OAAO,CAAC8I,aAAa;EAC5B,OAAO9I,OAAO,CAACgE,MAAM;EACrB,OAAOhE,OAAO,CAACkI,IAAI;EACnB,OAAOlI,OAAO,CAAC+I,IAAI;EACnB,OAAO/I,OAAO,CAACgJ,OAAO;EACtB,OAAOhJ,OAAO,CAACiJ,OAAO;EAItB,IAAIC,cAAA,CAAAC,IAAA,CAAcnJ,OAAO,EAAE,WAAW,CAAC,EAAE;IACvCA,OAAO,CAACoJ,UAAU,GAAGpJ,OAAO,CAACqJ,SAAS;IACtC,OAAOrJ,OAAO,CAACqJ,SAAS;EAC1B;EACA,OAAOrJ,OAAO;AAChB;AAEA,SAASF,gBAAgBA,CACvBwJ,KAAqC,EACL;EAChC,MAAMrJ,GAGL,GAAG,IAAIsJ,GAAG,CAAC,CAAC;EAEb,MAAM1C,WAAW,GAAG,EAAE;EAEtB,KAAK,MAAM2C,IAAI,IAAIF,KAAK,EAAE;IACxB,IAAI,OAAOE,IAAI,CAACC,KAAK,KAAK,UAAU,EAAE;MACpC,MAAMC,KAAK,GAAGF,IAAI,CAACC,KAAK;MACxB,IAAIE,OAAO,GAAG1J,GAAG,CAAC2J,GAAG,CAACF,KAAK,CAAC;MAC5B,IAAI,CAACC,OAAO,EAAE;QACZA,OAAO,GAAG,IAAIJ,GAAG,CAAC,CAAC;QACnBtJ,GAAG,CAAC4J,GAAG,CAACH,KAAK,EAAEC,OAAO,CAAC;MACzB;MACA,IAAIG,IAAI,GAAGH,OAAO,CAACC,GAAG,CAACJ,IAAI,CAACtC,IAAI,CAAC;MACjC,IAAI,CAAC4C,IAAI,EAAE;QACTA,IAAI,GAAG;UAAEL,KAAK,EAAED;QAAK,CAAC;QACtB3C,WAAW,CAACgB,IAAI,CAACiC,IAAI,CAAC;QAItB,IAAI,CAACN,IAAI,CAACO,OAAO,EAAEJ,OAAO,CAACE,GAAG,CAACL,IAAI,CAACtC,IAAI,EAAE4C,IAAI,CAAC;MACjD,CAAC,MAAM;QACLA,IAAI,CAACL,KAAK,GAAGD,IAAI;MACnB;IACF,CAAC,MAAM;MACL3C,WAAW,CAACgB,IAAI,CAAC;QAAE4B,KAAK,EAAED;MAAK,CAAC,CAAC;IACnC;EACF;EAEA,OAAO3C,WAAW,CAACmD,MAAM,CAAC,CAACC,GAAG,EAAEH,IAAI,KAAK;IACvCG,GAAG,CAACpC,IAAI,CAACiC,IAAI,CAACL,KAAK,CAAC;IACpB,OAAOQ,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR;AAEA,SAASrC,kBAAkBA,CACzB;EAAE5H;AAA+B,CAAC,EAClCoC,OAAe,EACf1C,OAAsB,EACtBwK,UAAkB,EACT;EACT,OACE,CAAClK,OAAO,CAAC+I,IAAI,KAAKzG,SAAS,IACzB6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAAC+I,IAAI,EAAE3G,OAAO,EAAE8H,UAAU,CAAC,MACpElK,OAAO,CAACgJ,OAAO,KAAK1G,SAAS,IAC5B6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAACgJ,OAAO,EAAE5G,OAAO,EAAE8H,UAAU,CAAC,CAAC,KACxElK,OAAO,CAACiJ,OAAO,KAAK3G,SAAS,IAC5B,CAAC6H,uBAAuB,CAACzK,OAAO,EAAEM,OAAO,CAACiJ,OAAO,EAAE7G,OAAO,EAAE8H,UAAU,CAAC,CAAC;AAE9E;AAEA,SAASC,uBAAuBA,CAC9BzK,OAAsB,EACtBqJ,IAA0B,EAC1B3G,OAAe,EACf8H,UAAkB,EACT;EACT,MAAME,QAAQ,GAAGjF,KAAK,CAACC,OAAO,CAAC2D,IAAI,CAAC,GAAGA,IAAI,GAAG,CAACA,IAAI,CAAC;EAEpD,OAAOsB,eAAe,CAAC3K,OAAO,EAAE0K,QAAQ,EAAEhI,OAAO,EAAE8H,UAAU,CAAC;AAChE;AAKA,SAASI,kBAAkBA,CACzBC,IAAY,EACZd,KAA8B,EACI;EAClC,IAAIA,KAAK,YAAYe,MAAM,EAAE;IAC3B,OAAOC,MAAM,CAAChB,KAAK,CAAC;EACtB;EAEA,OAAOA,KAAK;AACd;AAKA,SAASpF,YAAYA,CACnB3E,OAAsB,EACtBsE,MAAqC,EACrCkE,IAAmC,EACnC9F,OAAe,EACN;EACT,IAAI4B,MAAM,IAAIqG,eAAe,CAAC3K,OAAO,EAAEsE,MAAM,EAAE5B,OAAO,CAAC,EAAE;IAAA,IAAAsI,iBAAA;IACvD,MAAMC,OAAO,GAAG,6BAAAD,iBAAA,GACdhL,OAAO,CAACkE,QAAQ,YAAA8G,iBAAA,GAAI,WAAW,yCACQE,IAAI,CAACC,SAAS,CACrD7G,MAAM,EACNsG,kBACF,CAAC,YAAYlI,OAAO,GAAG;IACvB9C,KAAK,CAACqL,OAAO,CAAC;IACd,IAAIjL,OAAO,CAAC8E,UAAU,EAAE;MACtBC,OAAO,CAACC,GAAG,CAACiG,OAAO,CAAC;IACtB;IACA,OAAO,IAAI;EACb;EAEA,IAAIzC,IAAI,IAAI,CAACmC,eAAe,CAAC3K,OAAO,EAAEwI,IAAI,EAAE9F,OAAO,CAAC,EAAE;IAAA,IAAA0I,kBAAA;IACpD,MAAMH,OAAO,GAAG,6BAAAG,kBAAA,GACdpL,OAAO,CAACkE,QAAQ,YAAAkH,kBAAA,GAAI,WAAW,8CACaF,IAAI,CAACC,SAAS,CAC1D3C,IAAI,EACJoC,kBACF,CAAC,YAAYlI,OAAO,GAAG;IACvB9C,KAAK,CAACqL,OAAO,CAAC;IACd,IAAIjL,OAAO,CAAC8E,UAAU,EAAE;MACtBC,OAAO,CAACC,GAAG,CAACiG,OAAO,CAAC;IACtB;IACA,OAAO,IAAI;EACb;EAEA,OAAO,KAAK;AACd;AAMA,SAASN,eAAeA,CACtB3K,OAAsB,EACtB0K,QAAoB,EACpBhI,OAAe,EACf8H,UAAmB,EACV;EACT,OAAOE,QAAQ,CAAC3E,IAAI,CAACsF,OAAO,IAC1BnF,YAAY,CAACmF,OAAO,EAAE3I,OAAO,EAAE1C,OAAO,CAACkE,QAAQ,EAAElE,OAAO,EAAEwK,UAAU,CACtE,CAAC;AACH;AAEA,SAAStE,YAAYA,CACnBmF,OAAmB,EACnB3I,OAAe,EACf4I,UAA8B,EAC9BtL,OAAsB,EACtBwK,UAAmB,EACV;EACT,IAAI,OAAOa,OAAO,KAAK,UAAU,EAAE;IACjC,OAAO,CAAC,CAAC,IAAAE,qCAAkB,EAACF,OAAO,CAAC,CAACC,UAAU,EAAE;MAC/C5I,OAAO;MACPxB,OAAO,EAAElB,OAAO,CAACkB,OAAO;MACxB+B,MAAM,EAAEjD,OAAO,CAACiD;IAClB,CAAC,CAAC;EACJ;EAEA,IAAI,OAAOqI,UAAU,KAAK,QAAQ,EAAE;IAClC,MAAM,IAAIE,oBAAW,CACnB,mFAAmF,EACnFhB,UACF,CAAC;EACH;EAEA,IAAI,OAAOa,OAAO,KAAK,QAAQ,EAAE;IAC/BA,OAAO,GAAG,IAAArF,uBAAkB,EAACqF,OAAO,EAAE3I,OAAO,CAAC;EAChD;EACA,OAAO2I,OAAO,CAAChC,IAAI,CAACiC,UAAU,CAAC;AACjC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/configuration.js b/node_modules/@babel/core/lib/config/files/configuration.js index 7e0c48913..9c6d49ce4 100644 --- a/node_modules/@babel/core/lib/config/files/configuration.js +++ b/node_modules/@babel/core/lib/config/files/configuration.js @@ -51,11 +51,9 @@ var _moduleTypes = require("./module-types.js"); var _patternToRegex = require("../pattern-to-regex.js"); var _configError = require("../../errors/config-error.js"); var fs = require("../../gensync-utils/fs.js"); -require("module"); var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js"); -var _async = require("../../gensync-utils/async.js"); const debug = _debug()("babel:config:loading:files:configuration"); -const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts", "babel.config.ts", "babel.config.mts"]; +const ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"]; const RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"]; const BABELIGNORE_FILENAME = ".babelignore"; const runConfig = (0, _caching.makeWeakCache)(function* runConfig(options, cache) { @@ -67,7 +65,7 @@ const runConfig = (0, _caching.makeWeakCache)(function* runConfig(options, cache }); function* readConfigCode(filepath, data) { if (!_fs().existsSync(filepath)) return null; - let options = yield* (0, _moduleTypes.default)(filepath, (yield* (0, _async.isAsync)()) ? "auto" : "require", "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", "You appear to be using a configuration file that contains top-level " + "await, which is only supported when running Babel asynchronously."); + let options = yield* (0, _moduleTypes.default)(filepath, "You appear to be using a native ECMAScript module configuration " + "file, which is only supported when running Babel asynchronously."); let cacheNeedsConfiguration = false; if (typeof options === "function") { ({ @@ -103,8 +101,8 @@ function buildConfigFileObject(options, filepath) { return configFile; } const packageToBabelConfig = (0, _caching.makeWeakCacheSync)(file => { - const babel = file.options.babel; - if (babel === undefined) return null; + const babel = file.options["babel"]; + if (typeof babel === "undefined") return null; if (typeof babel !== "object" || Array.isArray(babel) || babel === null) { throw new _configError.default(`.babel property must be an object`, file.filepath); } @@ -128,7 +126,7 @@ const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => { if (Array.isArray(options)) { throw new _configError.default(`Expected config object but found array`, filepath); } - delete options.$schema; + delete options["$schema"]; return { filepath, dirname: _path().dirname(filepath), @@ -137,7 +135,7 @@ const readConfigJSON5 = (0, _utils.makeStaticFileCache)((filepath, content) => { }); const readIgnoreConfig = (0, _utils.makeStaticFileCache)((filepath, content) => { const ignoreDir = _path().dirname(filepath); - const ignorePatterns = content.split("\n").map(line => line.replace(/#.*$/, "").trim()).filter(Boolean); + const ignorePatterns = content.split("\n").map(line => line.replace(/#.*$/, "").trim()).filter(line => !!line); for (const pattern of ignorePatterns) { if (pattern[0] === "!") { throw new _configError.default(`Negation of file paths is not supported.`, filepath); @@ -226,9 +224,7 @@ function readConfig(filepath, envName, caller) { case ".js": case ".cjs": case ".mjs": - case ".ts": case ".cts": - case ".mts": return readConfigCode(filepath, { envName, caller diff --git a/node_modules/@babel/core/lib/config/files/configuration.js.map b/node_modules/@babel/core/lib/config/files/configuration.js.map index e7aa5f477..6ecd1aefe 100644 --- a/node_modules/@babel/core/lib/config/files/configuration.js.map +++ b/node_modules/@babel/core/lib/config/files/configuration.js.map @@ -1 +1 @@ -{"version":3,"names":["_debug","data","require","_fs","_path","_json","_gensync","_caching","_configApi","_utils","_moduleTypes","_patternToRegex","_configError","fs","_rewriteStackTrace","_async","debug","buildDebug","ROOT_CONFIG_FILENAMES","exports","RELATIVE_CONFIG_FILENAMES","BABELIGNORE_FILENAME","runConfig","makeWeakCache","options","cache","endHiddenCallStack","makeConfigAPI","cacheNeedsConfiguration","configured","readConfigCode","filepath","nodeFs","existsSync","loadCodeDefault","isAsync","Array","isArray","ConfigError","then","catch","throwConfigError","buildConfigFileObject","cfboaf","WeakMap","configFilesByFilepath","get","set","Map","configFile","dirname","path","packageToBabelConfig","makeWeakCacheSync","file","babel","undefined","readConfigJSON5","makeStaticFileCache","content","json5","parse","err","message","$schema","readIgnoreConfig","ignoreDir","ignorePatterns","split","map","line","replace","trim","filter","Boolean","pattern","ignore","pathPatternToRegex","findConfigUpwards","rootDir","filename","join","nextDir","findRelativeConfig","packageData","envName","caller","config","loc","directories","_packageData$pkg","loadOneConfig","pkg","ignoreLoc","findRootConfig","names","previousConfig","configs","gensync","all","readConfig","reduce","basename","loadConfig","name","v","w","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","code","conf","ext","extname","resolveShowConfigPath","targetPath","env","BABEL_SHOW_CONFIG_FOR","absolutePath","stats","stat","isFile"],"sources":["../../../src/config/files/configuration.ts"],"sourcesContent":["import buildDebug from \"debug\";\nimport nodeFs from \"node:fs\";\nimport path from \"node:path\";\nimport json5 from \"json5\";\nimport gensync from \"gensync\";\nimport type { Handler } from \"gensync\";\nimport { makeWeakCache, makeWeakCacheSync } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport { makeConfigAPI } from \"../helpers/config-api.ts\";\nimport type { ConfigAPI } from \"../helpers/config-api.ts\";\nimport { makeStaticFileCache } from \"./utils.ts\";\nimport loadCodeDefault from \"./module-types.ts\";\nimport pathPatternToRegex from \"../pattern-to-regex.ts\";\nimport type { FilePackageData, RelativeConfig, ConfigFile } from \"./types.ts\";\nimport type { CallerMetadata, InputOptions } from \"../validation/options.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport * as fs from \"../../gensync-utils/fs.ts\";\n\nimport { createRequire } from \"node:module\";\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:configuration\");\n\nexport const ROOT_CONFIG_FILENAMES = [\n \"babel.config.js\",\n \"babel.config.cjs\",\n \"babel.config.mjs\",\n \"babel.config.json\",\n \"babel.config.cts\",\n \"babel.config.ts\",\n \"babel.config.mts\",\n];\nconst RELATIVE_CONFIG_FILENAMES = [\n \".babelrc\",\n \".babelrc.js\",\n \".babelrc.cjs\",\n \".babelrc.mjs\",\n \".babelrc.json\",\n \".babelrc.cts\",\n];\n\nconst BABELIGNORE_FILENAME = \".babelignore\";\n\ntype ConfigCacheData = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\n\nconst runConfig = makeWeakCache(function* runConfig(\n options: Function,\n cache: CacheConfigurator,\n): Handler<{\n options: InputOptions | null;\n cacheNeedsConfiguration: boolean;\n}> {\n // if we want to make it possible to use async configs\n yield* [];\n\n return {\n options: endHiddenCallStack(options as any as (api: ConfigAPI) => unknown)(\n makeConfigAPI(cache),\n ),\n cacheNeedsConfiguration: !cache.configured(),\n };\n});\n\nfunction* readConfigCode(\n filepath: string,\n data: ConfigCacheData,\n): Handler {\n if (!nodeFs.existsSync(filepath)) return null;\n\n let options = yield* loadCodeDefault(\n filepath,\n (yield* isAsync()) ? \"auto\" : \"require\",\n \"You appear to be using a native ECMAScript module configuration \" +\n \"file, which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n \"You appear to be using a configuration file that contains top-level \" +\n \"await, which is only supported when running Babel asynchronously.\",\n );\n\n let cacheNeedsConfiguration = false;\n if (typeof options === \"function\") {\n ({ options, cacheNeedsConfiguration } = yield* runConfig(options, data));\n }\n\n if (!options || typeof options !== \"object\" || Array.isArray(options)) {\n throw new ConfigError(\n `Configuration should be an exported JavaScript object.`,\n filepath,\n );\n }\n\n // @ts-expect-error todo(flow->ts)\n if (typeof options.then === \"function\") {\n // @ts-expect-error We use ?. in case options is a thenable but not a promise\n options.catch?.(() => {});\n throw new ConfigError(\n `You appear to be using an async configuration, ` +\n `which your current version of Babel does not support. ` +\n `We may add support for this in the future, ` +\n `but if you're on the most recent version of @babel/core and still ` +\n `seeing this error, then you'll need to synchronously return your config.`,\n filepath,\n );\n }\n\n if (cacheNeedsConfiguration) throwConfigError(filepath);\n\n return buildConfigFileObject(options, filepath);\n}\n\n// We cache the generated ConfigFile object rather than creating a new one\n// every time, so that it can be used as a cache key in other functions.\nconst cfboaf /* configFilesByOptionsAndFilepath */ = new WeakMap<\n InputOptions,\n Map\n>();\nfunction buildConfigFileObject(\n options: InputOptions,\n filepath: string,\n): ConfigFile {\n let configFilesByFilepath = cfboaf.get(options);\n if (!configFilesByFilepath) {\n cfboaf.set(options, (configFilesByFilepath = new Map()));\n }\n\n let configFile = configFilesByFilepath.get(filepath);\n if (!configFile) {\n configFile = {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n configFilesByFilepath.set(filepath, configFile);\n }\n\n return configFile;\n}\n\nconst packageToBabelConfig = makeWeakCacheSync(\n (file: ConfigFile): ConfigFile | null => {\n const babel: unknown = file.options.babel;\n\n if (babel === undefined) return null;\n\n if (typeof babel !== \"object\" || Array.isArray(babel) || babel === null) {\n throw new ConfigError(`.babel property must be an object`, file.filepath);\n }\n\n return {\n filepath: file.filepath,\n dirname: file.dirname,\n options: babel,\n };\n },\n);\n\nconst readConfigJSON5 = makeStaticFileCache((filepath, content): ConfigFile => {\n let options;\n try {\n options = json5.parse(content);\n } catch (err) {\n throw new ConfigError(\n `Error while parsing config - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new ConfigError(`No config detected`, filepath);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(`Config returned typeof ${typeof options}`, filepath);\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n delete options.$schema;\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n});\n\nconst readIgnoreConfig = makeStaticFileCache((filepath, content) => {\n const ignoreDir = path.dirname(filepath);\n const ignorePatterns = content\n .split(\"\\n\")\n .map(line =>\n line.replace(process.env.BABEL_8_BREAKING ? /^#.*$/ : /#.*$/, \"\").trim(),\n )\n .filter(Boolean);\n\n for (const pattern of ignorePatterns) {\n if (pattern[0] === \"!\") {\n throw new ConfigError(\n `Negation of file paths is not supported.`,\n filepath,\n );\n }\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n ignore: ignorePatterns.map(pattern =>\n pathPatternToRegex(pattern, ignoreDir),\n ),\n };\n});\n\nexport function findConfigUpwards(rootDir: string): string | null {\n let dirname = rootDir;\n for (;;) {\n for (const filename of ROOT_CONFIG_FILENAMES) {\n if (nodeFs.existsSync(path.join(dirname, filename))) {\n return dirname;\n }\n }\n\n const nextDir = path.dirname(dirname);\n if (dirname === nextDir) break;\n dirname = nextDir;\n }\n\n return null;\n}\n\nexport function* findRelativeConfig(\n packageData: FilePackageData,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n let config = null;\n let ignore = null;\n\n const dirname = path.dirname(packageData.filepath);\n\n for (const loc of packageData.directories) {\n if (!config) {\n config = yield* loadOneConfig(\n RELATIVE_CONFIG_FILENAMES,\n loc,\n envName,\n caller,\n packageData.pkg?.dirname === loc\n ? packageToBabelConfig(packageData.pkg)\n : null,\n );\n }\n\n if (!ignore) {\n const ignoreLoc = path.join(loc, BABELIGNORE_FILENAME);\n ignore = yield* readIgnoreConfig(ignoreLoc);\n\n if (ignore) {\n debug(\"Found ignore %o from %o.\", ignore.filepath, dirname);\n }\n }\n }\n\n return { config, ignore };\n}\n\nexport function findRootConfig(\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);\n}\n\nfunction* loadOneConfig(\n names: string[],\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n previousConfig: ConfigFile | null = null,\n): Handler {\n const configs = yield* gensync.all(\n names.map(filename =>\n readConfig(path.join(dirname, filename), envName, caller),\n ),\n );\n const config = configs.reduce((previousConfig: ConfigFile | null, config) => {\n if (config && previousConfig) {\n throw new ConfigError(\n `Multiple configuration files found. Please remove one:\\n` +\n ` - ${path.basename(previousConfig.filepath)}\\n` +\n ` - ${config.filepath}\\n` +\n `from ${dirname}`,\n );\n }\n\n return config || previousConfig;\n }, previousConfig);\n\n if (config) {\n debug(\"Found configuration %o from %o.\", config.filepath, dirname);\n }\n return config;\n}\n\nexport function* loadConfig(\n name: string,\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n const filepath = require.resolve(name, { paths: [dirname] });\n\n const conf = yield* readConfig(filepath, envName, caller);\n if (!conf) {\n throw new ConfigError(\n `Config file contains no configuration data`,\n filepath,\n );\n }\n\n debug(\"Loaded config %o from %o.\", name, dirname);\n return conf;\n}\n\n/**\n * Read the given config file, returning the result. Returns null if no config was found, but will\n * throw if there are parsing errors while loading a config.\n */\nfunction readConfig(\n filepath: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n const ext = path.extname(filepath);\n switch (ext) {\n case \".js\":\n case \".cjs\":\n case \".mjs\":\n case \".ts\":\n case \".cts\":\n case \".mts\":\n return readConfigCode(filepath, { envName, caller });\n default:\n return readConfigJSON5(filepath);\n }\n}\n\nexport function* resolveShowConfigPath(\n dirname: string,\n): Handler {\n const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;\n if (targetPath != null) {\n const absolutePath = path.resolve(dirname, targetPath);\n const stats = yield* fs.stat(absolutePath);\n if (!stats.isFile()) {\n throw new Error(\n `${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`,\n );\n }\n return absolutePath;\n }\n return null;\n}\n\nfunction throwConfigError(filepath: string): never {\n throw new ConfigError(\n `\\\nCaching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don't call this function again.\n api.cache(true);\n\n // Don't cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === \"production\");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === \"production\");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};`,\n filepath,\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,QAAA,GAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AAGA,IAAAU,YAAA,GAAAV,OAAA;AAEA,IAAAW,EAAA,GAAAX,OAAA;AAEAA,OAAA;AACA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AAGA,MAAMc,KAAK,GAAGC,OAASA,CAAC,CAAC,0CAA0C,CAAC;AAE7D,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,CACnC,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,CACnB;AACD,MAAME,yBAAyB,GAAG,CAChC,UAAU,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,CACf;AAED,MAAMC,oBAAoB,GAAG,cAAc;AAO3C,MAAMC,SAAS,GAAG,IAAAC,sBAAa,EAAC,UAAUD,SAASA,CACjDE,OAAiB,EACjBC,KAAyC,EAIxC;EAED,OAAO,EAAE;EAET,OAAO;IACLD,OAAO,EAAE,IAAAE,qCAAkB,EAACF,OAA6C,CAAC,CACxE,IAAAG,wBAAa,EAACF,KAAK,CACrB,CAAC;IACDG,uBAAuB,EAAE,CAACH,KAAK,CAACI,UAAU,CAAC;EAC7C,CAAC;AACH,CAAC,CAAC;AAEF,UAAUC,cAAcA,CACtBC,QAAgB,EAChB9B,IAAqB,EACO;EAC5B,IAAI,CAAC+B,IAAKA,CAAC,CAACC,UAAU,CAACF,QAAQ,CAAC,EAAE,OAAO,IAAI;EAE7C,IAAIP,OAAO,GAAG,OAAO,IAAAU,oBAAe,EAClCH,QAAQ,EACR,CAAC,OAAO,IAAAI,cAAO,EAAC,CAAC,IAAI,MAAM,GAAG,SAAS,EACvC,kEAAkE,GAChE,kEAAkE,GAClE,iEAAiE,EACnE,sEAAsE,GACpE,mEACJ,CAAC;EAED,IAAIP,uBAAuB,GAAG,KAAK;EACnC,IAAI,OAAOJ,OAAO,KAAK,UAAU,EAAE;IACjC,CAAC;MAAEA,OAAO;MAAEI;IAAwB,CAAC,GAAG,OAAON,SAAS,CAACE,OAAO,EAAEvB,IAAI,CAAC;EACzE;EAEA,IAAI,CAACuB,OAAO,IAAI,OAAOA,OAAO,KAAK,QAAQ,IAAIY,KAAK,CAACC,OAAO,CAACb,OAAO,CAAC,EAAE;IACrE,MAAM,IAAIc,oBAAW,CACnB,wDAAwD,EACxDP,QACF,CAAC;EACH;EAGA,IAAI,OAAOP,OAAO,CAACe,IAAI,KAAK,UAAU,EAAE;IAEtCf,OAAO,CAACgB,KAAK,YAAbhB,OAAO,CAACgB,KAAK,CAAG,MAAM,CAAC,CAAC,CAAC;IACzB,MAAM,IAAIF,oBAAW,CACnB,iDAAiD,GAC/C,wDAAwD,GACxD,6CAA6C,GAC7C,oEAAoE,GACpE,0EAA0E,EAC5EP,QACF,CAAC;EACH;EAEA,IAAIH,uBAAuB,EAAEa,gBAAgB,CAACV,QAAQ,CAAC;EAEvD,OAAOW,qBAAqB,CAAClB,OAAO,EAAEO,QAAQ,CAAC;AACjD;AAIA,MAAMY,MAAM,GAAyC,IAAIC,OAAO,CAG9D,CAAC;AACH,SAASF,qBAAqBA,CAC5BlB,OAAqB,EACrBO,QAAgB,EACJ;EACZ,IAAIc,qBAAqB,GAAGF,MAAM,CAACG,GAAG,CAACtB,OAAO,CAAC;EAC/C,IAAI,CAACqB,qBAAqB,EAAE;IAC1BF,MAAM,CAACI,GAAG,CAACvB,OAAO,EAAGqB,qBAAqB,GAAG,IAAIG,GAAG,CAAC,CAAE,CAAC;EAC1D;EAEA,IAAIC,UAAU,GAAGJ,qBAAqB,CAACC,GAAG,CAACf,QAAQ,CAAC;EACpD,IAAI,CAACkB,UAAU,EAAE;IACfA,UAAU,GAAG;MACXlB,QAAQ;MACRmB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACnB,QAAQ,CAAC;MAC/BP;IACF,CAAC;IACDqB,qBAAqB,CAACE,GAAG,CAAChB,QAAQ,EAAEkB,UAAU,CAAC;EACjD;EAEA,OAAOA,UAAU;AACnB;AAEA,MAAMG,oBAAoB,GAAG,IAAAC,0BAAiB,EAC3CC,IAAgB,IAAwB;EACvC,MAAMC,KAAc,GAAGD,IAAI,CAAC9B,OAAO,CAAC+B,KAAK;EAEzC,IAAIA,KAAK,KAAKC,SAAS,EAAE,OAAO,IAAI;EAEpC,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAInB,KAAK,CAACC,OAAO,CAACkB,KAAK,CAAC,IAAIA,KAAK,KAAK,IAAI,EAAE;IACvE,MAAM,IAAIjB,oBAAW,CAAC,mCAAmC,EAAEgB,IAAI,CAACvB,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ,EAAEuB,IAAI,CAACvB,QAAQ;IACvBmB,OAAO,EAAEI,IAAI,CAACJ,OAAO;IACrB1B,OAAO,EAAE+B;EACX,CAAC;AACH,CACF,CAAC;AAED,MAAME,eAAe,GAAG,IAAAC,0BAAmB,EAAC,CAAC3B,QAAQ,EAAE4B,OAAO,KAAiB;EAC7E,IAAInC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGoC,MAAIA,CAAC,CAACC,KAAK,CAACF,OAAO,CAAC;EAChC,CAAC,CAAC,OAAOG,GAAG,EAAE;IACZ,MAAM,IAAIxB,oBAAW,CACnB,gCAAgCwB,GAAG,CAACC,OAAO,EAAE,EAC7ChC,QACF,CAAC;EACH;EAEA,IAAI,CAACP,OAAO,EAAE,MAAM,IAAIc,oBAAW,CAAC,oBAAoB,EAAEP,QAAQ,CAAC;EAEnE,IAAI,OAAOP,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAIc,oBAAW,CAAC,0BAA0B,OAAOd,OAAO,EAAE,EAAEO,QAAQ,CAAC;EAC7E;EACA,IAAIK,KAAK,CAACC,OAAO,CAACb,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAIc,oBAAW,CAAC,wCAAwC,EAAEP,QAAQ,CAAC;EAC3E;EAEA,OAAOP,OAAO,CAACwC,OAAO;EAEtB,OAAO;IACLjC,QAAQ;IACRmB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACnB,QAAQ,CAAC;IAC/BP;EACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAMyC,gBAAgB,GAAG,IAAAP,0BAAmB,EAAC,CAAC3B,QAAQ,EAAE4B,OAAO,KAAK;EAClE,MAAMO,SAAS,GAAGf,MAAGA,CAAC,CAACD,OAAO,CAACnB,QAAQ,CAAC;EACxC,MAAMoC,cAAc,GAAGR,OAAO,CAC3BS,KAAK,CAAC,IAAI,CAAC,CACXC,GAAG,CAACC,IAAI,IACPA,IAAI,CAACC,OAAO,CAA0C,MAAM,EAAE,EAAE,CAAC,CAACC,IAAI,CAAC,CACzE,CAAC,CACAC,MAAM,CAACC,OAAO,CAAC;EAElB,KAAK,MAAMC,OAAO,IAAIR,cAAc,EAAE;IACpC,IAAIQ,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;MACtB,MAAM,IAAIrC,oBAAW,CACnB,0CAA0C,EAC1CP,QACF,CAAC;IACH;EACF;EAEA,OAAO;IACLA,QAAQ;IACRmB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACnB,QAAQ,CAAC;IAC/B6C,MAAM,EAAET,cAAc,CAACE,GAAG,CAACM,OAAO,IAChC,IAAAE,uBAAkB,EAACF,OAAO,EAAET,SAAS,CACvC;EACF,CAAC;AACH,CAAC,CAAC;AAEK,SAASY,iBAAiBA,CAACC,OAAe,EAAiB;EAChE,IAAI7B,OAAO,GAAG6B,OAAO;EACrB,SAAS;IACP,KAAK,MAAMC,QAAQ,IAAI9D,qBAAqB,EAAE;MAC5C,IAAIc,IAAKA,CAAC,CAACC,UAAU,CAACkB,MAAGA,CAAC,CAAC8B,IAAI,CAAC/B,OAAO,EAAE8B,QAAQ,CAAC,CAAC,EAAE;QACnD,OAAO9B,OAAO;MAChB;IACF;IAEA,MAAMgC,OAAO,GAAG/B,MAAGA,CAAC,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAKgC,OAAO,EAAE;IACzBhC,OAAO,GAAGgC,OAAO;EACnB;EAEA,OAAO,IAAI;AACb;AAEO,UAAUC,kBAAkBA,CACjCC,WAA4B,EAC5BC,OAAe,EACfC,MAAkC,EACT;EACzB,IAAIC,MAAM,GAAG,IAAI;EACjB,IAAIX,MAAM,GAAG,IAAI;EAEjB,MAAM1B,OAAO,GAAGC,MAAGA,CAAC,CAACD,OAAO,CAACkC,WAAW,CAACrD,QAAQ,CAAC;EAElD,KAAK,MAAMyD,GAAG,IAAIJ,WAAW,CAACK,WAAW,EAAE;IACzC,IAAI,CAACF,MAAM,EAAE;MAAA,IAAAG,gBAAA;MACXH,MAAM,GAAG,OAAOI,aAAa,CAC3BvE,yBAAyB,EACzBoE,GAAG,EACHH,OAAO,EACPC,MAAM,EACN,EAAAI,gBAAA,GAAAN,WAAW,CAACQ,GAAG,qBAAfF,gBAAA,CAAiBxC,OAAO,MAAKsC,GAAG,GAC5BpC,oBAAoB,CAACgC,WAAW,CAACQ,GAAG,CAAC,GACrC,IACN,CAAC;IACH;IAEA,IAAI,CAAChB,MAAM,EAAE;MACX,MAAMiB,SAAS,GAAG1C,MAAGA,CAAC,CAAC8B,IAAI,CAACO,GAAG,EAAEnE,oBAAoB,CAAC;MACtDuD,MAAM,GAAG,OAAOX,gBAAgB,CAAC4B,SAAS,CAAC;MAE3C,IAAIjB,MAAM,EAAE;QACV5D,KAAK,CAAC,0BAA0B,EAAE4D,MAAM,CAAC7C,QAAQ,EAAEmB,OAAO,CAAC;MAC7D;IACF;EACF;EAEA,OAAO;IAAEqC,MAAM;IAAEX;EAAO,CAAC;AAC3B;AAEO,SAASkB,cAAcA,CAC5B5C,OAAe,EACfmC,OAAe,EACfC,MAAkC,EACN;EAC5B,OAAOK,aAAa,CAACzE,qBAAqB,EAAEgC,OAAO,EAAEmC,OAAO,EAAEC,MAAM,CAAC;AACvE;AAEA,UAAUK,aAAaA,CACrBI,KAAe,EACf7C,OAAe,EACfmC,OAAe,EACfC,MAAkC,EAClCU,cAAiC,GAAG,IAAI,EACZ;EAC5B,MAAMC,OAAO,GAAG,OAAOC,SAAMA,CAAC,CAACC,GAAG,CAChCJ,KAAK,CAAC1B,GAAG,CAACW,QAAQ,IAChBoB,UAAU,CAACjD,MAAGA,CAAC,CAAC8B,IAAI,CAAC/B,OAAO,EAAE8B,QAAQ,CAAC,EAAEK,OAAO,EAAEC,MAAM,CAC1D,CACF,CAAC;EACD,MAAMC,MAAM,GAAGU,OAAO,CAACI,MAAM,CAAC,CAACL,cAAiC,EAAET,MAAM,KAAK;IAC3E,IAAIA,MAAM,IAAIS,cAAc,EAAE;MAC5B,MAAM,IAAI1D,oBAAW,CACnB,0DAA0D,GACxD,MAAMa,MAAGA,CAAC,CAACmD,QAAQ,CAACN,cAAc,CAACjE,QAAQ,CAAC,IAAI,GAChD,MAAMwD,MAAM,CAACxD,QAAQ,IAAI,GACzB,QAAQmB,OAAO,EACnB,CAAC;IACH;IAEA,OAAOqC,MAAM,IAAIS,cAAc;EACjC,CAAC,EAAEA,cAAc,CAAC;EAElB,IAAIT,MAAM,EAAE;IACVvE,KAAK,CAAC,iCAAiC,EAAEuE,MAAM,CAACxD,QAAQ,EAAEmB,OAAO,CAAC;EACpE;EACA,OAAOqC,MAAM;AACf;AAEO,UAAUgB,UAAUA,CACzBC,IAAY,EACZtD,OAAe,EACfmC,OAAe,EACfC,MAAkC,EACb;EACrB,MAAMvD,QAAQ,GAAG,GAAA0E,CAAA,EAAAC,CAAA,MAAAD,CAAA,GAAAA,CAAA,CAAArC,KAAA,OAAAsC,CAAA,GAAAA,CAAA,CAAAtC,KAAA,QAAAqC,CAAA,OAAAC,CAAA,OAAAD,CAAA,OAAAC,CAAA,QAAAD,CAAA,QAAAC,CAAA,MAAAC,OAAA,CAAAC,QAAA,CAAAC,IAAA,WAAA3G,OAAA,CAAA4G,OAAA,IAAAC,CAAA;IAAAC,KAAA,GAAAC,CAAA;EAAA,GAAAC,CAAA,GAAAhH,OAAA;IAAA,IAAAiH,CAAA,GAAAD,CAAA,CAAAE,SAAA,CAAAL,CAAA,EAAAG,CAAA,CAAAG,gBAAA,CAAAJ,CAAA,EAAAK,MAAA,CAAAL,CAAA;IAAA,IAAAE,CAAA,SAAAA,CAAA;IAAAA,CAAA,OAAAI,KAAA,2BAAAR,CAAA;IAAAI,CAAA,CAAAK,IAAA;IAAA,MAAAL,CAAA;EAAA,GAAgBX,IAAI,EAAE;IAAEQ,KAAK,EAAE,CAAC9D,OAAO;EAAE,CAAC,CAAC;EAE5D,MAAMuE,IAAI,GAAG,OAAOrB,UAAU,CAACrE,QAAQ,EAAEsD,OAAO,EAAEC,MAAM,CAAC;EACzD,IAAI,CAACmC,IAAI,EAAE;IACT,MAAM,IAAInF,oBAAW,CACnB,4CAA4C,EAC5CP,QACF,CAAC;EACH;EAEAf,KAAK,CAAC,2BAA2B,EAAEwF,IAAI,EAAEtD,OAAO,CAAC;EACjD,OAAOuE,IAAI;AACb;AAMA,SAASrB,UAAUA,CACjBrE,QAAgB,EAChBsD,OAAe,EACfC,MAAkC,EACN;EAC5B,MAAMoC,GAAG,GAAGvE,MAAGA,CAAC,CAACwE,OAAO,CAAC5F,QAAQ,CAAC;EAClC,QAAQ2F,GAAG;IACT,KAAK,KAAK;IACV,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,KAAK;IACV,KAAK,MAAM;IACX,KAAK,MAAM;MACT,OAAO5F,cAAc,CAACC,QAAQ,EAAE;QAAEsD,OAAO;QAAEC;MAAO,CAAC,CAAC;IACtD;MACE,OAAO7B,eAAe,CAAC1B,QAAQ,CAAC;EACpC;AACF;AAEO,UAAU6F,qBAAqBA,CACpC1E,OAAe,EACS;EACxB,MAAM2E,UAAU,GAAGlB,OAAO,CAACmB,GAAG,CAACC,qBAAqB;EACpD,IAAIF,UAAU,IAAI,IAAI,EAAE;IACtB,MAAMG,YAAY,GAAG7E,MAAGA,CAAC,CAAC2D,OAAO,CAAC5D,OAAO,EAAE2E,UAAU,CAAC;IACtD,MAAMI,KAAK,GAAG,OAAOpH,EAAE,CAACqH,IAAI,CAACF,YAAY,CAAC;IAC1C,IAAI,CAACC,KAAK,CAACE,MAAM,CAAC,CAAC,EAAE;MACnB,MAAM,IAAIZ,KAAK,CACb,GAAGS,YAAY,sFACjB,CAAC;IACH;IACA,OAAOA,YAAY;EACrB;EACA,OAAO,IAAI;AACb;AAEA,SAASvF,gBAAgBA,CAACV,QAAgB,EAAS;EACjD,MAAM,IAAIO,oBAAW,CACnB;AACJ;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,GAAG,EACCP,QACF,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_debug","data","require","_fs","_path","_json","_gensync","_caching","_configApi","_utils","_moduleTypes","_patternToRegex","_configError","fs","_rewriteStackTrace","debug","buildDebug","ROOT_CONFIG_FILENAMES","exports","RELATIVE_CONFIG_FILENAMES","BABELIGNORE_FILENAME","runConfig","makeWeakCache","options","cache","endHiddenCallStack","makeConfigAPI","cacheNeedsConfiguration","configured","readConfigCode","filepath","nodeFs","existsSync","loadCodeDefault","Array","isArray","ConfigError","then","catch","throwConfigError","buildConfigFileObject","cfboaf","WeakMap","configFilesByFilepath","get","set","Map","configFile","dirname","path","packageToBabelConfig","makeWeakCacheSync","file","babel","readConfigJSON5","makeStaticFileCache","content","json5","parse","err","message","readIgnoreConfig","ignoreDir","ignorePatterns","split","map","line","replace","trim","filter","pattern","ignore","pathPatternToRegex","findConfigUpwards","rootDir","filename","join","nextDir","findRelativeConfig","packageData","envName","caller","config","loc","directories","_packageData$pkg","loadOneConfig","pkg","ignoreLoc","findRootConfig","names","previousConfig","configs","gensync","all","readConfig","reduce","basename","loadConfig","name","v","w","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","code","conf","ext","extname","resolveShowConfigPath","targetPath","env","BABEL_SHOW_CONFIG_FOR","absolutePath","stats","stat","isFile"],"sources":["../../../src/config/files/configuration.ts"],"sourcesContent":["import buildDebug from \"debug\";\nimport nodeFs from \"fs\";\nimport path from \"path\";\nimport json5 from \"json5\";\nimport gensync from \"gensync\";\nimport type { Handler } from \"gensync\";\nimport { makeWeakCache, makeWeakCacheSync } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport { makeConfigAPI } from \"../helpers/config-api.ts\";\nimport type { ConfigAPI } from \"../helpers/config-api.ts\";\nimport { makeStaticFileCache } from \"./utils.ts\";\nimport loadCodeDefault from \"./module-types.ts\";\nimport pathPatternToRegex from \"../pattern-to-regex.ts\";\nimport type { FilePackageData, RelativeConfig, ConfigFile } from \"./types.ts\";\nimport type { CallerMetadata, InputOptions } from \"../validation/options.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport * as fs from \"../../gensync-utils/fs.ts\";\n\nimport { createRequire } from \"module\";\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:configuration\");\n\nexport const ROOT_CONFIG_FILENAMES = [\n \"babel.config.js\",\n \"babel.config.cjs\",\n \"babel.config.mjs\",\n \"babel.config.json\",\n \"babel.config.cts\",\n];\nconst RELATIVE_CONFIG_FILENAMES = [\n \".babelrc\",\n \".babelrc.js\",\n \".babelrc.cjs\",\n \".babelrc.mjs\",\n \".babelrc.json\",\n \".babelrc.cts\",\n];\n\nconst BABELIGNORE_FILENAME = \".babelignore\";\n\ntype ConfigCacheData = {\n envName: string;\n caller: CallerMetadata | undefined;\n};\n\nconst runConfig = makeWeakCache(function* runConfig(\n options: Function,\n cache: CacheConfigurator,\n): Handler<{\n options: InputOptions | null;\n cacheNeedsConfiguration: boolean;\n}> {\n // @ts-expect-error - if we want to make it possible to use async configs\n yield* [];\n\n return {\n options: endHiddenCallStack(options as any as (api: ConfigAPI) => unknown)(\n makeConfigAPI(cache),\n ),\n cacheNeedsConfiguration: !cache.configured(),\n };\n});\n\nfunction* readConfigCode(\n filepath: string,\n data: ConfigCacheData,\n): Handler {\n if (!nodeFs.existsSync(filepath)) return null;\n\n let options = yield* loadCodeDefault(\n filepath,\n \"You appear to be using a native ECMAScript module configuration \" +\n \"file, which is only supported when running Babel asynchronously.\",\n );\n\n let cacheNeedsConfiguration = false;\n if (typeof options === \"function\") {\n ({ options, cacheNeedsConfiguration } = yield* runConfig(options, data));\n }\n\n if (!options || typeof options !== \"object\" || Array.isArray(options)) {\n throw new ConfigError(\n `Configuration should be an exported JavaScript object.`,\n filepath,\n );\n }\n\n // @ts-expect-error todo(flow->ts)\n if (typeof options.then === \"function\") {\n // @ts-expect-error We use ?. in case options is a thenable but not a promise\n options.catch?.(() => {});\n\n throw new ConfigError(\n `You appear to be using an async configuration, ` +\n `which your current version of Babel does not support. ` +\n `We may add support for this in the future, ` +\n `but if you're on the most recent version of @babel/core and still ` +\n `seeing this error, then you'll need to synchronously return your config.`,\n filepath,\n );\n }\n\n if (cacheNeedsConfiguration) throwConfigError(filepath);\n\n return buildConfigFileObject(options, filepath);\n}\n\n// We cache the generated ConfigFile object rather than creating a new one\n// every time, so that it can be used as a cache key in other functions.\nconst cfboaf /* configFilesByOptionsAndFilepath */ = new WeakMap<\n InputOptions,\n Map\n>();\nfunction buildConfigFileObject(\n options: InputOptions,\n filepath: string,\n): ConfigFile {\n let configFilesByFilepath = cfboaf.get(options);\n if (!configFilesByFilepath) {\n cfboaf.set(options, (configFilesByFilepath = new Map()));\n }\n\n let configFile = configFilesByFilepath.get(filepath);\n if (!configFile) {\n configFile = {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n configFilesByFilepath.set(filepath, configFile);\n }\n\n return configFile;\n}\n\nconst packageToBabelConfig = makeWeakCacheSync(\n (file: ConfigFile): ConfigFile | null => {\n const babel: unknown = file.options[\"babel\"];\n\n if (typeof babel === \"undefined\") return null;\n\n if (typeof babel !== \"object\" || Array.isArray(babel) || babel === null) {\n throw new ConfigError(`.babel property must be an object`, file.filepath);\n }\n\n return {\n filepath: file.filepath,\n dirname: file.dirname,\n options: babel,\n };\n },\n);\n\nconst readConfigJSON5 = makeStaticFileCache((filepath, content): ConfigFile => {\n let options;\n try {\n options = json5.parse(content);\n } catch (err) {\n throw new ConfigError(\n `Error while parsing config - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new ConfigError(`No config detected`, filepath);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(`Config returned typeof ${typeof options}`, filepath);\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n delete options[\"$schema\"];\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n});\n\nconst readIgnoreConfig = makeStaticFileCache((filepath, content) => {\n const ignoreDir = path.dirname(filepath);\n const ignorePatterns = content\n .split(\"\\n\")\n .map(line => line.replace(/#.*$/, \"\").trim())\n .filter(line => !!line);\n\n for (const pattern of ignorePatterns) {\n if (pattern[0] === \"!\") {\n throw new ConfigError(\n `Negation of file paths is not supported.`,\n filepath,\n );\n }\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n ignore: ignorePatterns.map(pattern =>\n pathPatternToRegex(pattern, ignoreDir),\n ),\n };\n});\n\nexport function findConfigUpwards(rootDir: string): string | null {\n let dirname = rootDir;\n for (;;) {\n for (const filename of ROOT_CONFIG_FILENAMES) {\n if (nodeFs.existsSync(path.join(dirname, filename))) {\n return dirname;\n }\n }\n\n const nextDir = path.dirname(dirname);\n if (dirname === nextDir) break;\n dirname = nextDir;\n }\n\n return null;\n}\n\nexport function* findRelativeConfig(\n packageData: FilePackageData,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n let config = null;\n let ignore = null;\n\n const dirname = path.dirname(packageData.filepath);\n\n for (const loc of packageData.directories) {\n if (!config) {\n config = yield* loadOneConfig(\n RELATIVE_CONFIG_FILENAMES,\n loc,\n envName,\n caller,\n packageData.pkg?.dirname === loc\n ? packageToBabelConfig(packageData.pkg)\n : null,\n );\n }\n\n if (!ignore) {\n const ignoreLoc = path.join(loc, BABELIGNORE_FILENAME);\n ignore = yield* readIgnoreConfig(ignoreLoc);\n\n if (ignore) {\n debug(\"Found ignore %o from %o.\", ignore.filepath, dirname);\n }\n }\n }\n\n return { config, ignore };\n}\n\nexport function findRootConfig(\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n return loadOneConfig(ROOT_CONFIG_FILENAMES, dirname, envName, caller);\n}\n\nfunction* loadOneConfig(\n names: string[],\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n previousConfig: ConfigFile | null = null,\n): Handler {\n const configs = yield* gensync.all(\n names.map(filename =>\n readConfig(path.join(dirname, filename), envName, caller),\n ),\n );\n const config = configs.reduce((previousConfig: ConfigFile | null, config) => {\n if (config && previousConfig) {\n throw new ConfigError(\n `Multiple configuration files found. Please remove one:\\n` +\n ` - ${path.basename(previousConfig.filepath)}\\n` +\n ` - ${config.filepath}\\n` +\n `from ${dirname}`,\n );\n }\n\n return config || previousConfig;\n }, previousConfig);\n\n if (config) {\n debug(\"Found configuration %o from %o.\", config.filepath, dirname);\n }\n return config;\n}\n\nexport function* loadConfig(\n name: string,\n dirname: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n const filepath = require.resolve(name, { paths: [dirname] });\n\n const conf = yield* readConfig(filepath, envName, caller);\n if (!conf) {\n throw new ConfigError(\n `Config file contains no configuration data`,\n filepath,\n );\n }\n\n debug(\"Loaded config %o from %o.\", name, dirname);\n return conf;\n}\n\n/**\n * Read the given config file, returning the result. Returns null if no config was found, but will\n * throw if there are parsing errors while loading a config.\n */\nfunction readConfig(\n filepath: string,\n envName: string,\n caller: CallerMetadata | undefined,\n): Handler {\n const ext = path.extname(filepath);\n switch (ext) {\n case \".js\":\n case \".cjs\":\n case \".mjs\":\n case \".cts\":\n return readConfigCode(filepath, { envName, caller });\n default:\n return readConfigJSON5(filepath);\n }\n}\n\nexport function* resolveShowConfigPath(\n dirname: string,\n): Handler {\n const targetPath = process.env.BABEL_SHOW_CONFIG_FOR;\n if (targetPath != null) {\n const absolutePath = path.resolve(dirname, targetPath);\n const stats = yield* fs.stat(absolutePath);\n if (!stats.isFile()) {\n throw new Error(\n `${absolutePath}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`,\n );\n }\n return absolutePath;\n }\n return null;\n}\n\nfunction throwConfigError(filepath: string): never {\n throw new ConfigError(\n `\\\nCaching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don't call this function again.\n api.cache(true);\n\n // Don't cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === \"production\");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === \"production\");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};`,\n filepath,\n );\n}\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,MAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,KAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,QAAA,GAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AAGA,IAAAU,YAAA,GAAAV,OAAA;AAEA,IAAAW,EAAA,GAAAX,OAAA;AAGA,IAAAY,kBAAA,GAAAZ,OAAA;AAGA,MAAMa,KAAK,GAAGC,OAASA,CAAC,CAAC,0CAA0C,CAAC;AAE7D,MAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,CACnC,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,CACnB;AACD,MAAME,yBAAyB,GAAG,CAChC,UAAU,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,CACf;AAED,MAAMC,oBAAoB,GAAG,cAAc;AAO3C,MAAMC,SAAS,GAAG,IAAAC,sBAAa,EAAC,UAAUD,SAASA,CACjDE,OAAiB,EACjBC,KAAyC,EAIxC;EAED,OAAO,EAAE;EAET,OAAO;IACLD,OAAO,EAAE,IAAAE,qCAAkB,EAACF,OAA6C,CAAC,CACxE,IAAAG,wBAAa,EAACF,KAAK,CACrB,CAAC;IACDG,uBAAuB,EAAE,CAACH,KAAK,CAACI,UAAU,CAAC;EAC7C,CAAC;AACH,CAAC,CAAC;AAEF,UAAUC,cAAcA,CACtBC,QAAgB,EAChB7B,IAAqB,EACO;EAC5B,IAAI,CAAC8B,IAAKA,CAAC,CAACC,UAAU,CAACF,QAAQ,CAAC,EAAE,OAAO,IAAI;EAE7C,IAAIP,OAAO,GAAG,OAAO,IAAAU,oBAAe,EAClCH,QAAQ,EACR,kEAAkE,GAChE,kEACJ,CAAC;EAED,IAAIH,uBAAuB,GAAG,KAAK;EACnC,IAAI,OAAOJ,OAAO,KAAK,UAAU,EAAE;IACjC,CAAC;MAAEA,OAAO;MAAEI;IAAwB,CAAC,GAAG,OAAON,SAAS,CAACE,OAAO,EAAEtB,IAAI,CAAC;EACzE;EAEA,IAAI,CAACsB,OAAO,IAAI,OAAOA,OAAO,KAAK,QAAQ,IAAIW,KAAK,CAACC,OAAO,CAACZ,OAAO,CAAC,EAAE;IACrE,MAAM,IAAIa,oBAAW,CACnB,wDAAwD,EACxDN,QACF,CAAC;EACH;EAGA,IAAI,OAAOP,OAAO,CAACc,IAAI,KAAK,UAAU,EAAE;IAEtCd,OAAO,CAACe,KAAK,YAAbf,OAAO,CAACe,KAAK,CAAG,MAAM,CAAC,CAAC,CAAC;IAEzB,MAAM,IAAIF,oBAAW,CACnB,iDAAiD,GAC/C,wDAAwD,GACxD,6CAA6C,GAC7C,oEAAoE,GACpE,0EAA0E,EAC5EN,QACF,CAAC;EACH;EAEA,IAAIH,uBAAuB,EAAEY,gBAAgB,CAACT,QAAQ,CAAC;EAEvD,OAAOU,qBAAqB,CAACjB,OAAO,EAAEO,QAAQ,CAAC;AACjD;AAIA,MAAMW,MAAM,GAAyC,IAAIC,OAAO,CAG9D,CAAC;AACH,SAASF,qBAAqBA,CAC5BjB,OAAqB,EACrBO,QAAgB,EACJ;EACZ,IAAIa,qBAAqB,GAAGF,MAAM,CAACG,GAAG,CAACrB,OAAO,CAAC;EAC/C,IAAI,CAACoB,qBAAqB,EAAE;IAC1BF,MAAM,CAACI,GAAG,CAACtB,OAAO,EAAGoB,qBAAqB,GAAG,IAAIG,GAAG,CAAC,CAAE,CAAC;EAC1D;EAEA,IAAIC,UAAU,GAAGJ,qBAAqB,CAACC,GAAG,CAACd,QAAQ,CAAC;EACpD,IAAI,CAACiB,UAAU,EAAE;IACfA,UAAU,GAAG;MACXjB,QAAQ;MACRkB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAAClB,QAAQ,CAAC;MAC/BP;IACF,CAAC;IACDoB,qBAAqB,CAACE,GAAG,CAACf,QAAQ,EAAEiB,UAAU,CAAC;EACjD;EAEA,OAAOA,UAAU;AACnB;AAEA,MAAMG,oBAAoB,GAAG,IAAAC,0BAAiB,EAC3CC,IAAgB,IAAwB;EACvC,MAAMC,KAAc,GAAGD,IAAI,CAAC7B,OAAO,CAAC,OAAO,CAAC;EAE5C,IAAI,OAAO8B,KAAK,KAAK,WAAW,EAAE,OAAO,IAAI;EAE7C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAInB,KAAK,CAACC,OAAO,CAACkB,KAAK,CAAC,IAAIA,KAAK,KAAK,IAAI,EAAE;IACvE,MAAM,IAAIjB,oBAAW,CAAC,mCAAmC,EAAEgB,IAAI,CAACtB,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ,EAAEsB,IAAI,CAACtB,QAAQ;IACvBkB,OAAO,EAAEI,IAAI,CAACJ,OAAO;IACrBzB,OAAO,EAAE8B;EACX,CAAC;AACH,CACF,CAAC;AAED,MAAMC,eAAe,GAAG,IAAAC,0BAAmB,EAAC,CAACzB,QAAQ,EAAE0B,OAAO,KAAiB;EAC7E,IAAIjC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGkC,MAAIA,CAAC,CAACC,KAAK,CAACF,OAAO,CAAC;EAChC,CAAC,CAAC,OAAOG,GAAG,EAAE;IACZ,MAAM,IAAIvB,oBAAW,CACnB,gCAAgCuB,GAAG,CAACC,OAAO,EAAE,EAC7C9B,QACF,CAAC;EACH;EAEA,IAAI,CAACP,OAAO,EAAE,MAAM,IAAIa,oBAAW,CAAC,oBAAoB,EAAEN,QAAQ,CAAC;EAEnE,IAAI,OAAOP,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAIa,oBAAW,CAAC,0BAA0B,OAAOb,OAAO,EAAE,EAAEO,QAAQ,CAAC;EAC7E;EACA,IAAII,KAAK,CAACC,OAAO,CAACZ,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAIa,oBAAW,CAAC,wCAAwC,EAAEN,QAAQ,CAAC;EAC3E;EAEA,OAAOP,OAAO,CAAC,SAAS,CAAC;EAEzB,OAAO;IACLO,QAAQ;IACRkB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAAClB,QAAQ,CAAC;IAC/BP;EACF,CAAC;AACH,CAAC,CAAC;AAEF,MAAMsC,gBAAgB,GAAG,IAAAN,0BAAmB,EAAC,CAACzB,QAAQ,EAAE0B,OAAO,KAAK;EAClE,MAAMM,SAAS,GAAGb,MAAGA,CAAC,CAACD,OAAO,CAAClB,QAAQ,CAAC;EACxC,MAAMiC,cAAc,GAAGP,OAAO,CAC3BQ,KAAK,CAAC,IAAI,CAAC,CACXC,GAAG,CAASC,IAAI,IAAIA,IAAI,CAACC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CACpDC,MAAM,CAACH,IAAI,IAAI,CAAC,CAACA,IAAI,CAAC;EAEzB,KAAK,MAAMI,OAAO,IAAIP,cAAc,EAAE;IACpC,IAAIO,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;MACtB,MAAM,IAAIlC,oBAAW,CACnB,0CAA0C,EAC1CN,QACF,CAAC;IACH;EACF;EAEA,OAAO;IACLA,QAAQ;IACRkB,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAAClB,QAAQ,CAAC;IAC/ByC,MAAM,EAAER,cAAc,CAACE,GAAG,CAACK,OAAO,IAChC,IAAAE,uBAAkB,EAACF,OAAO,EAAER,SAAS,CACvC;EACF,CAAC;AACH,CAAC,CAAC;AAEK,SAASW,iBAAiBA,CAACC,OAAe,EAAiB;EAChE,IAAI1B,OAAO,GAAG0B,OAAO;EACrB,SAAS;IACP,KAAK,MAAMC,QAAQ,IAAI1D,qBAAqB,EAAE;MAC5C,IAAIc,IAAKA,CAAC,CAACC,UAAU,CAACiB,MAAGA,CAAC,CAAC2B,IAAI,CAAC5B,OAAO,EAAE2B,QAAQ,CAAC,CAAC,EAAE;QACnD,OAAO3B,OAAO;MAChB;IACF;IAEA,MAAM6B,OAAO,GAAG5B,MAAGA,CAAC,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAK6B,OAAO,EAAE;IACzB7B,OAAO,GAAG6B,OAAO;EACnB;EAEA,OAAO,IAAI;AACb;AAEO,UAAUC,kBAAkBA,CACjCC,WAA4B,EAC5BC,OAAe,EACfC,MAAkC,EACT;EACzB,IAAIC,MAAM,GAAG,IAAI;EACjB,IAAIX,MAAM,GAAG,IAAI;EAEjB,MAAMvB,OAAO,GAAGC,MAAGA,CAAC,CAACD,OAAO,CAAC+B,WAAW,CAACjD,QAAQ,CAAC;EAElD,KAAK,MAAMqD,GAAG,IAAIJ,WAAW,CAACK,WAAW,EAAE;IACzC,IAAI,CAACF,MAAM,EAAE;MAAA,IAAAG,gBAAA;MACXH,MAAM,GAAG,OAAOI,aAAa,CAC3BnE,yBAAyB,EACzBgE,GAAG,EACHH,OAAO,EACPC,MAAM,EACN,EAAAI,gBAAA,GAAAN,WAAW,CAACQ,GAAG,qBAAfF,gBAAA,CAAiBrC,OAAO,MAAKmC,GAAG,GAC5BjC,oBAAoB,CAAC6B,WAAW,CAACQ,GAAG,CAAC,GACrC,IACN,CAAC;IACH;IAEA,IAAI,CAAChB,MAAM,EAAE;MACX,MAAMiB,SAAS,GAAGvC,MAAGA,CAAC,CAAC2B,IAAI,CAACO,GAAG,EAAE/D,oBAAoB,CAAC;MACtDmD,MAAM,GAAG,OAAOV,gBAAgB,CAAC2B,SAAS,CAAC;MAE3C,IAAIjB,MAAM,EAAE;QACVxD,KAAK,CAAC,0BAA0B,EAAEwD,MAAM,CAACzC,QAAQ,EAAEkB,OAAO,CAAC;MAC7D;IACF;EACF;EAEA,OAAO;IAAEkC,MAAM;IAAEX;EAAO,CAAC;AAC3B;AAEO,SAASkB,cAAcA,CAC5BzC,OAAe,EACfgC,OAAe,EACfC,MAAkC,EACN;EAC5B,OAAOK,aAAa,CAACrE,qBAAqB,EAAE+B,OAAO,EAAEgC,OAAO,EAAEC,MAAM,CAAC;AACvE;AAEA,UAAUK,aAAaA,CACrBI,KAAe,EACf1C,OAAe,EACfgC,OAAe,EACfC,MAAkC,EAClCU,cAAiC,GAAG,IAAI,EACZ;EAC5B,MAAMC,OAAO,GAAG,OAAOC,SAAMA,CAAC,CAACC,GAAG,CAChCJ,KAAK,CAACzB,GAAG,CAACU,QAAQ,IAChBoB,UAAU,CAAC9C,MAAGA,CAAC,CAAC2B,IAAI,CAAC5B,OAAO,EAAE2B,QAAQ,CAAC,EAAEK,OAAO,EAAEC,MAAM,CAC1D,CACF,CAAC;EACD,MAAMC,MAAM,GAAGU,OAAO,CAACI,MAAM,CAAC,CAACL,cAAiC,EAAET,MAAM,KAAK;IAC3E,IAAIA,MAAM,IAAIS,cAAc,EAAE;MAC5B,MAAM,IAAIvD,oBAAW,CACnB,0DAA0D,GACxD,MAAMa,MAAGA,CAAC,CAACgD,QAAQ,CAACN,cAAc,CAAC7D,QAAQ,CAAC,IAAI,GAChD,MAAMoD,MAAM,CAACpD,QAAQ,IAAI,GACzB,QAAQkB,OAAO,EACnB,CAAC;IACH;IAEA,OAAOkC,MAAM,IAAIS,cAAc;EACjC,CAAC,EAAEA,cAAc,CAAC;EAElB,IAAIT,MAAM,EAAE;IACVnE,KAAK,CAAC,iCAAiC,EAAEmE,MAAM,CAACpD,QAAQ,EAAEkB,OAAO,CAAC;EACpE;EACA,OAAOkC,MAAM;AACf;AAEO,UAAUgB,UAAUA,CACzBC,IAAY,EACZnD,OAAe,EACfgC,OAAe,EACfC,MAAkC,EACb;EACrB,MAAMnD,QAAQ,GAAG,GAAAsE,CAAA,EAAAC,CAAA,MAAAD,CAAA,GAAAA,CAAA,CAAApC,KAAA,OAAAqC,CAAA,GAAAA,CAAA,CAAArC,KAAA,QAAAoC,CAAA,OAAAC,CAAA,OAAAD,CAAA,OAAAC,CAAA,QAAAD,CAAA,QAAAC,CAAA,MAAAC,OAAA,CAAAC,QAAA,CAAAC,IAAA,WAAAtG,OAAA,CAAAuG,OAAA,IAAAC,CAAA;IAAAC,KAAA,GAAAC,CAAA;EAAA,GAAAC,CAAA,GAAA3G,OAAA;IAAA,IAAA4G,CAAA,GAAAD,CAAA,CAAAE,SAAA,CAAAL,CAAA,EAAAG,CAAA,CAAAG,gBAAA,CAAAJ,CAAA,EAAAK,MAAA,CAAAL,CAAA;IAAA,IAAAE,CAAA,SAAAA,CAAA;IAAAA,CAAA,OAAAI,KAAA,2BAAAR,CAAA;IAAAI,CAAA,CAAAK,IAAA;IAAA,MAAAL,CAAA;EAAA,GAAgBX,IAAI,EAAE;IAAEQ,KAAK,EAAE,CAAC3D,OAAO;EAAE,CAAC,CAAC;EAE5D,MAAMoE,IAAI,GAAG,OAAOrB,UAAU,CAACjE,QAAQ,EAAEkD,OAAO,EAAEC,MAAM,CAAC;EACzD,IAAI,CAACmC,IAAI,EAAE;IACT,MAAM,IAAIhF,oBAAW,CACnB,4CAA4C,EAC5CN,QACF,CAAC;EACH;EAEAf,KAAK,CAAC,2BAA2B,EAAEoF,IAAI,EAAEnD,OAAO,CAAC;EACjD,OAAOoE,IAAI;AACb;AAMA,SAASrB,UAAUA,CACjBjE,QAAgB,EAChBkD,OAAe,EACfC,MAAkC,EACN;EAC5B,MAAMoC,GAAG,GAAGpE,MAAGA,CAAC,CAACqE,OAAO,CAACxF,QAAQ,CAAC;EAClC,QAAQuF,GAAG;IACT,KAAK,KAAK;IACV,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,MAAM;MACT,OAAOxF,cAAc,CAACC,QAAQ,EAAE;QAAEkD,OAAO;QAAEC;MAAO,CAAC,CAAC;IACtD;MACE,OAAO3B,eAAe,CAACxB,QAAQ,CAAC;EACpC;AACF;AAEO,UAAUyF,qBAAqBA,CACpCvE,OAAe,EACS;EACxB,MAAMwE,UAAU,GAAGlB,OAAO,CAACmB,GAAG,CAACC,qBAAqB;EACpD,IAAIF,UAAU,IAAI,IAAI,EAAE;IACtB,MAAMG,YAAY,GAAG1E,MAAGA,CAAC,CAACwD,OAAO,CAACzD,OAAO,EAAEwE,UAAU,CAAC;IACtD,MAAMI,KAAK,GAAG,OAAO/G,EAAE,CAACgH,IAAI,CAACF,YAAY,CAAC;IAC1C,IAAI,CAACC,KAAK,CAACE,MAAM,CAAC,CAAC,EAAE;MACnB,MAAM,IAAIZ,KAAK,CACb,GAAGS,YAAY,sFACjB,CAAC;IACH;IACA,OAAOA,YAAY;EACrB;EACA,OAAO,IAAI;AACb;AAEA,SAASpF,gBAAgBA,CAACT,QAAgB,EAAS;EACjD,MAAM,IAAIM,oBAAW,CACnB;AACJ;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,GAAG,EACCN,QACF,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/index-browser.js.map b/node_modules/@babel/core/lib/config/files/index-browser.js.map index e10ddeeef..fdcc2c528 100644 --- a/node_modules/@babel/core/lib/config/files/index-browser.js.map +++ b/node_modules/@babel/core/lib/config/files/index-browser.js.map @@ -1 +1 @@ -{"version":3,"names":["findConfigUpwards","rootDir","findPackageData","filepath","directories","pkg","isPackage","findRelativeConfig","pkgData","envName","caller","config","ignore","findRootConfig","dirname","loadConfig","name","Error","resolveShowConfigPath","ROOT_CONFIG_FILENAMES","exports","resolvePlugin","resolvePreset","loadPlugin","loadPreset"],"sources":["../../../src/config/files/index-browser.ts"],"sourcesContent":["/* c8 ignore start */\n\nimport type { Handler } from \"gensync\";\n\nimport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\n\nimport type { CallerMetadata } from \"../validation/options.ts\";\n\nexport type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };\n\nexport function findConfigUpwards(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n rootDir: string,\n): string | null {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* findPackageData(filepath: string): Handler {\n return {\n filepath,\n directories: [],\n pkg: null,\n isPackage: false,\n };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRelativeConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n pkgData: FilePackageData,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n return { config: null, ignore: null };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRootConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* loadConfig(\n name: string,\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);\n}\n\n// eslint-disable-next-line require-yield\nexport function* resolveShowConfigPath(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n): Handler {\n return null;\n}\n\nexport const ROOT_CONFIG_FILENAMES: string[] = [];\n\ntype Resolved =\n | { loader: \"require\"; filepath: string }\n | { loader: \"import\"; filepath: string };\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePlugin(name: string, dirname: string): Resolved | null {\n return null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePreset(name: string, dirname: string): Resolved | null {\n return null;\n}\n\nexport function loadPlugin(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load plugin ${name} relative to ${dirname} in a browser`,\n );\n}\n\nexport function loadPreset(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load preset ${name} relative to ${dirname} in a browser`,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAeO,SAASA,iBAAiBA,CAE/BC,OAAe,EACA;EACf,OAAO,IAAI;AACb;AAGO,UAAUC,eAAeA,CAACC,QAAgB,EAA4B;EAC3E,OAAO;IACLA,QAAQ;IACRC,WAAW,EAAE,EAAE;IACfC,GAAG,EAAE,IAAI;IACTC,SAAS,EAAE;EACb,CAAC;AACH;AAGO,UAAUC,kBAAkBA,CAEjCC,OAAwB,EAExBC,OAAe,EAEfC,MAAkC,EACT;EACzB,OAAO;IAAEC,MAAM,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAK,CAAC;AACvC;AAGO,UAAUC,cAAcA,CAE7BC,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACN;EAC5B,OAAO,IAAI;AACb;AAGO,UAAUK,UAAUA,CACzBC,IAAY,EACZF,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACb;EACrB,MAAM,IAAIO,KAAK,CAAC,eAAeD,IAAI,gBAAgBF,OAAO,eAAe,CAAC;AAC5E;AAGO,UAAUI,qBAAqBA,CAEpCJ,OAAe,EACS;EACxB,OAAO,IAAI;AACb;AAEO,MAAMK,qBAA+B,GAAAC,OAAA,CAAAD,qBAAA,GAAG,EAAE;AAO1C,SAASE,aAAaA,CAACL,IAAY,EAAEF,OAAe,EAAmB;EAC5E,OAAO,IAAI;AACb;AAGO,SAASQ,aAAaA,CAACN,IAAY,EAAEF,OAAe,EAAmB;EAC5E,OAAO,IAAI;AACb;AAEO,SAASS,UAAUA,CACxBP,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAEO,SAASU,UAAUA,CACxBR,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["findConfigUpwards","rootDir","findPackageData","filepath","directories","pkg","isPackage","findRelativeConfig","pkgData","envName","caller","config","ignore","findRootConfig","dirname","loadConfig","name","Error","resolveShowConfigPath","ROOT_CONFIG_FILENAMES","exports","resolvePlugin","resolvePreset","loadPlugin","loadPreset"],"sources":["../../../src/config/files/index-browser.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\n\nimport type { CallerMetadata } from \"../validation/options.ts\";\n\nexport type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };\n\nexport function findConfigUpwards(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n rootDir: string,\n): string | null {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* findPackageData(filepath: string): Handler {\n return {\n filepath,\n directories: [],\n pkg: null,\n isPackage: false,\n };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRelativeConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n pkgData: FilePackageData,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n return { config: null, ignore: null };\n}\n\n// eslint-disable-next-line require-yield\nexport function* findRootConfig(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n return null;\n}\n\n// eslint-disable-next-line require-yield\nexport function* loadConfig(\n name: string,\n dirname: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n envName: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n caller: CallerMetadata | undefined,\n): Handler {\n throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);\n}\n\n// eslint-disable-next-line require-yield\nexport function* resolveShowConfigPath(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n dirname: string,\n): Handler {\n return null;\n}\n\nexport const ROOT_CONFIG_FILENAMES: string[] = [];\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePlugin(name: string, dirname: string): string | null {\n return null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function resolvePreset(name: string, dirname: string): string | null {\n return null;\n}\n\nexport function loadPlugin(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load plugin ${name} relative to ${dirname} in a browser`,\n );\n}\n\nexport function loadPreset(\n name: string,\n dirname: string,\n): Handler<{\n filepath: string;\n value: unknown;\n}> {\n throw new Error(\n `Cannot load preset ${name} relative to ${dirname} in a browser`,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAaO,SAASA,iBAAiBA,CAE/BC,OAAe,EACA;EACf,OAAO,IAAI;AACb;AAGO,UAAUC,eAAeA,CAACC,QAAgB,EAA4B;EAC3E,OAAO;IACLA,QAAQ;IACRC,WAAW,EAAE,EAAE;IACfC,GAAG,EAAE,IAAI;IACTC,SAAS,EAAE;EACb,CAAC;AACH;AAGO,UAAUC,kBAAkBA,CAEjCC,OAAwB,EAExBC,OAAe,EAEfC,MAAkC,EACT;EACzB,OAAO;IAAEC,MAAM,EAAE,IAAI;IAAEC,MAAM,EAAE;EAAK,CAAC;AACvC;AAGO,UAAUC,cAAcA,CAE7BC,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACN;EAC5B,OAAO,IAAI;AACb;AAGO,UAAUK,UAAUA,CACzBC,IAAY,EACZF,OAAe,EAEfL,OAAe,EAEfC,MAAkC,EACb;EACrB,MAAM,IAAIO,KAAK,CAAC,eAAeD,IAAI,gBAAgBF,OAAO,eAAe,CAAC;AAC5E;AAGO,UAAUI,qBAAqBA,CAEpCJ,OAAe,EACS;EACxB,OAAO,IAAI;AACb;AAEO,MAAMK,qBAA+B,GAAAC,OAAA,CAAAD,qBAAA,GAAG,EAAE;AAG1C,SAASE,aAAaA,CAACL,IAAY,EAAEF,OAAe,EAAiB;EAC1E,OAAO,IAAI;AACb;AAGO,SAASQ,aAAaA,CAACN,IAAY,EAAEF,OAAe,EAAiB;EAC1E,OAAO,IAAI;AACb;AAEO,SAASS,UAAUA,CACxBP,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAEO,SAASU,UAAUA,CACxBR,IAAY,EACZF,OAAe,EAId;EACD,MAAM,IAAIG,KAAK,CACb,sBAAsBD,IAAI,gBAAgBF,OAAO,eACnD,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/module-types.js b/node_modules/@babel/core/lib/config/files/module-types.js index c7bf69941..a49f6134a 100644 --- a/node_modules/@babel/core/lib/config/files/module-types.js +++ b/node_modules/@babel/core/lib/config/files/module-types.js @@ -20,7 +20,6 @@ function _url() { }; return data; } -require("module"); function _semver() { const data = require("semver"); _semver = function () { @@ -38,8 +37,8 @@ function _debug() { var _rewriteStackTrace = require("../../errors/rewrite-stack-trace.js"); var _configError = require("../../errors/config-error.js"); var _transformFile = require("../../transform-file.js"); -function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } -function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } const debug = _debug()("babel:config:loading:files:module-types"); { try { @@ -61,128 +60,94 @@ function loadCjsDefault(filepath) { LOADING_CJS_FILES.delete(filepath); } { - return module != null && (module.__esModule || module[Symbol.toStringTag] === "Module") ? module.default || (arguments[1] ? module : undefined) : module; + var _module; + return (_module = module) != null && _module.__esModule ? module.default || (arguments[1] ? module : undefined) : module; } } -const loadMjsFromPath = (0, _rewriteStackTrace.endHiddenCallStack)(function () { - var _loadMjsFromPath = _asyncToGenerator(function* (filepath) { - const url = (0, _url().pathToFileURL)(filepath).toString() + "?import"; +const loadMjsDefault = (0, _rewriteStackTrace.endHiddenCallStack)(function () { + var _loadMjsDefault = _asyncToGenerator(function* (filepath) { + const url = (0, _url().pathToFileURL)(filepath).toString(); { if (!import_) { throw new _configError.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n", filepath); } - return yield import_(url); + return (yield import_(url)).default; } }); - function loadMjsFromPath(_x) { - return _loadMjsFromPath.apply(this, arguments); + function loadMjsDefault(_x) { + return _loadMjsDefault.apply(this, arguments); } - return loadMjsFromPath; + return loadMjsDefault; }()); -const tsNotSupportedError = ext => `\ -You are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either: -- Use a .cts config file -- Update to Node.js 23.6.0, which has native TypeScript support -- Install tsx to transpile ${ext} files on the fly\ -`; -const SUPPORTED_EXTENSIONS = { - ".js": "unknown", - ".mjs": "esm", - ".cjs": "cjs", - ".ts": "unknown", - ".mts": "esm", - ".cts": "cjs" -}; -const asyncModules = new Set(); -function* loadCodeDefault(filepath, loader, esmError, tlaError) { - let async; - const ext = _path().extname(filepath); - const isTS = ext === ".ts" || ext === ".cts" || ext === ".mts"; - const type = SUPPORTED_EXTENSIONS[hasOwnProperty.call(SUPPORTED_EXTENSIONS, ext) ? ext : ".js"]; - const pattern = `${loader} ${type}`; - switch (pattern) { - case "require cjs": - case "auto cjs": - if (isTS) { - return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath)); - } else { +function* loadCodeDefault(filepath, asyncError) { + switch (_path().extname(filepath)) { + case ".cjs": + { return loadCjsDefault(filepath, arguments[2]); } - case "auto unknown": - case "require unknown": - case "require esm": + case ".mjs": + break; + case ".cts": + return loadCtsDefault(filepath); + default: try { - if (isTS) { - return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath)); - } else { + { return loadCjsDefault(filepath, arguments[2]); } } catch (e) { - if (e.code === "ERR_REQUIRE_ASYNC_MODULE" || e.code === "ERR_REQUIRE_CYCLE_MODULE" && asyncModules.has(filepath)) { - asyncModules.add(filepath); - if (!(async != null ? async : async = yield* (0, _async.isAsync)())) { - throw new _configError.default(tlaError, filepath); - } - } else if (e.code === "ERR_REQUIRE_ESM" || type === "esm") {} else { - throw e; - } - } - case "auto esm": - if (async != null ? async : async = yield* (0, _async.isAsync)()) { - const promise = isTS ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath)) : loadMjsFromPath(filepath); - return (yield* (0, _async.waitFor)(promise)).default; + if (e.code !== "ERR_REQUIRE_ESM") throw e; } - if (isTS) { - throw new _configError.default(tsNotSupportedError(ext), filepath); - } else { - throw new _configError.default(esmError, filepath); - } - default: - throw new Error("Internal Babel error: unreachable code."); - } -} -function ensureTsSupport(filepath, ext, callback) { - if (process.features.typescript || require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]) { - return callback(); } - if (ext !== ".cts") { - throw new _configError.default(tsNotSupportedError(ext), filepath); + if (yield* (0, _async.isAsync)()) { + return yield* (0, _async.waitFor)(loadMjsDefault(filepath)); } - const opts = { - babelrc: false, - configFile: false, - sourceType: "unambiguous", - sourceMaps: "inline", - sourceFileName: _path().basename(filepath), - presets: [[getTSPreset(filepath), Object.assign({ - onlyRemoveTypeImports: true, - optimizeConstEnums: true - }, { - allowDeclareFields: true - })]] - }; - let handler = function (m, filename) { - if (handler && filename.endsWith(".cts")) { - try { - return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { - filename - })).code, filename); - } catch (error) { - const packageJson = require("@babel/preset-typescript/package.json"); - if (_semver().lt(packageJson.version, "7.21.4")) { - console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."); + throw new _configError.default(asyncError, filepath); +} +function loadCtsDefault(filepath) { + const ext = ".cts"; + const hasTsSupport = !!(require.extensions[".ts"] || require.extensions[".cts"] || require.extensions[".mts"]); + let handler; + if (!hasTsSupport) { + const opts = { + babelrc: false, + configFile: false, + sourceType: "unambiguous", + sourceMaps: "inline", + sourceFileName: _path().basename(filepath), + presets: [[getTSPreset(filepath), Object.assign({ + onlyRemoveTypeImports: true, + optimizeConstEnums: true + }, { + allowDeclareFields: true + })]] + }; + handler = function (m, filename) { + if (handler && filename.endsWith(ext)) { + try { + return m._compile((0, _transformFile.transformFileSync)(filename, Object.assign({}, opts, { + filename + })).code, filename); + } catch (error) { + if (!hasTsSupport) { + const packageJson = require("@babel/preset-typescript/package.json"); + if (_semver().lt(packageJson.version, "7.21.4")) { + console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."); + } + } + throw error; } - throw error; } - } - return require.extensions[".js"](m, filename); - }; - require.extensions[ext] = handler; + return require.extensions[".js"](m, filename); + }; + require.extensions[ext] = handler; + } try { - return callback(); + return loadCjsDefault(filepath); } finally { - if (require.extensions[ext] === handler) delete require.extensions[ext]; - handler = undefined; + if (!hasTsSupport) { + if (require.extensions[ext] === handler) delete require.extensions[ext]; + handler = undefined; + } } } function getTSPreset(filepath) { diff --git a/node_modules/@babel/core/lib/config/files/module-types.js.map b/node_modules/@babel/core/lib/config/files/module-types.js.map index e7087bcb2..070726144 100644 --- a/node_modules/@babel/core/lib/config/files/module-types.js.map +++ b/node_modules/@babel/core/lib/config/files/module-types.js.map @@ -1 +1 @@ -{"version":3,"names":["_async","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","__esModule","Symbol","toStringTag","default","undefined","loadMjsFromPath","_loadMjsFromPath","url","pathToFileURL","toString","ConfigError","_x","tsNotSupportedError","ext","SUPPORTED_EXTENSIONS","asyncModules","loadCodeDefault","loader","esmError","tlaError","async","path","extname","isTS","type","hasOwnProperty","call","pattern","ensureTsSupport","code","isAsync","promise","waitFor","Error","callback","features","typescript","extensions","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","handler","m","filename","endsWith","_compile","transformFileSync","error","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\nimport { createRequire } from \"node:module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default\n : module;\n } else {\n return module != null &&\n (module.__esModule || module[Symbol.toStringTag] === \"Module\")\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsFromPath = endHiddenCallStack(async function loadMjsFromPath(\n filepath: string,\n) {\n // Add ?import as a workaround for https://github.com/nodejs/node/issues/55500\n const url = pathToFileURL(filepath).toString() + \"?import\";\n\n if (process.env.BABEL_8_BREAKING) {\n return await import(url);\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return await import_(url);\n }\n});\n\nconst tsNotSupportedError = (ext: string) => `\\\nYou are using a ${ext} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install tsx to transpile ${ext} files on the fly\\\n`;\n\nconst SUPPORTED_EXTENSIONS = {\n \".js\": \"unknown\",\n \".mjs\": \"esm\",\n \".cjs\": \"cjs\",\n \".ts\": \"unknown\",\n \".mts\": \"esm\",\n \".cts\": \"cjs\",\n} as const;\n\nconst asyncModules = new Set();\n\nexport default function* loadCodeDefault(\n filepath: string,\n loader: \"require\" | \"auto\",\n esmError: string,\n tlaError: string,\n): Handler {\n let async;\n\n const ext = path.extname(filepath);\n const isTS = ext === \".ts\" || ext === \".cts\" || ext === \".mts\";\n\n const type =\n SUPPORTED_EXTENSIONS[\n Object.hasOwn(SUPPORTED_EXTENSIONS, ext)\n ? (ext as keyof typeof SUPPORTED_EXTENSIONS)\n : (\".js\" as const)\n ];\n\n const pattern = `${loader} ${type}` as const;\n switch (pattern) {\n case \"require cjs\":\n case \"auto cjs\":\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \"auto unknown\":\n case \"require unknown\":\n case \"require esm\":\n try {\n if (isTS) {\n return ensureTsSupport(filepath, ext, () => loadCjsDefault(filepath));\n } else if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (\n e.code === \"ERR_REQUIRE_ASYNC_MODULE\" ||\n // Node.js 13.0.0 throws ERR_REQUIRE_CYCLE_MODULE instead of\n // ERR_REQUIRE_ASYNC_MODULE when requiring a module a second time\n // https://github.com/nodejs/node/issues/55516\n // This `asyncModules` won't catch all of such cases, but it will\n // at least catch those caused by Babel trying to load a module twice.\n (e.code === \"ERR_REQUIRE_CYCLE_MODULE\" && asyncModules.has(filepath))\n ) {\n asyncModules.add(filepath);\n if (!(async ??= yield* isAsync())) {\n throw new ConfigError(tlaError, filepath);\n }\n // fall through: require() failed due to TLA\n } else if (\n e.code === \"ERR_REQUIRE_ESM\" ||\n (!process.env.BABEL_8_BREAKING && type === \"esm\")\n ) {\n // fall through: require() failed due to ESM\n } else {\n throw e;\n }\n }\n // fall through: require() failed due to ESM or TLA, try import()\n case \"auto esm\":\n if ((async ??= yield* isAsync())) {\n const promise = isTS\n ? ensureTsSupport(filepath, ext, () => loadMjsFromPath(filepath))\n : loadMjsFromPath(filepath);\n\n return (yield* waitFor(promise)).default;\n }\n if (isTS) {\n throw new ConfigError(tsNotSupportedError(ext), filepath);\n } else {\n throw new ConfigError(esmError, filepath);\n }\n default:\n throw new Error(\"Internal Babel error: unreachable code.\");\n }\n}\n\nfunction ensureTsSupport(\n filepath: string,\n ext: string,\n callback: () => T,\n): T {\n if (\n process.features.typescript ||\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n ) {\n return callback();\n }\n\n if (ext !== \".cts\") {\n throw new ConfigError(tsNotSupportedError(ext), filepath);\n }\n\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING ? {} : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n let handler: NodeJS.RequireExtensions[\"\"] = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(\".cts\")) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n\n try {\n return callback();\n } finally {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACAF,OAAA;AACA,SAAAI,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAF,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAI,kBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAGA,IAAAQ,cAAA,GAAAR,OAAA;AAA4D,SAAAS,mBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,cAAAC,CAAA,GAAAP,CAAA,CAAAK,CAAA,EAAAC,CAAA,GAAAE,CAAA,GAAAD,CAAA,CAAAE,KAAA,WAAAT,CAAA,gBAAAE,CAAA,CAAAF,CAAA,KAAAO,CAAA,CAAAG,IAAA,GAAAT,CAAA,CAAAO,CAAA,IAAAG,OAAA,CAAAC,OAAA,CAAAJ,CAAA,EAAAK,IAAA,CAAAV,CAAA,EAAAC,CAAA;AAAA,SAAAU,kBAAAd,CAAA,6BAAAC,CAAA,SAAAC,CAAA,GAAAa,SAAA,aAAAJ,OAAA,WAAAR,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAL,CAAA,CAAAgB,KAAA,CAAAf,CAAA,EAAAC,CAAA,YAAAe,MAAAjB,CAAA,IAAAD,kBAAA,CAAAM,CAAA,EAAAF,CAAA,EAAAC,CAAA,EAAAa,KAAA,EAAAC,MAAA,UAAAlB,CAAA,cAAAkB,OAAAlB,CAAA,IAAAD,kBAAA,CAAAM,CAAA,EAAAF,CAAA,EAAAC,CAAA,EAAAa,KAAA,EAAAC,MAAA,WAAAlB,CAAA,KAAAiB,KAAA;AAE5D,MAAME,KAAK,GAAGC,OAASA,CAAC,CAAC,yCAAyC,CAAC;AAIhC;EACjC,IAAI;IAGF,IAAIC,OAES,GAAG/B,OAAO,CAAC,cAAc,CAAC;EACzC,CAAC,CAAC,OAAAgC,OAAA,EAAM,CAAC;AACX;AAEO,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,QAAKA,CAAC,CAACC,SAAS,CACzCC,OAAO,CAACC,QAAQ,CAACC,IAAI,EAGrB,kBACF,CAAC;AAED,MAAMC,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC;AAEnC,SAASC,cAAcA,CAACC,QAAgB,EAAE;EAMxC,IAAIH,iBAAiB,CAACI,GAAG,CAACD,QAAQ,CAAC,EAAE;IACnCd,KAAK,CAAC,mCAAmC,EAAEc,QAAQ,CAAC;IACpD,OAAO,CAAC,CAAC;EACX;EAEA,IAAIE,MAAM;EACV,IAAI;IACFL,iBAAiB,CAACM,GAAG,CAACH,QAAQ,CAAC;IAC/BE,MAAM,GAAG,IAAAE,qCAAkB,EAAC/C,OAAO,CAAC,CAAC2C,QAAQ,CAAC;EAChD,CAAC,SAAS;IACRH,iBAAiB,CAACQ,MAAM,CAACL,QAAQ,CAAC;EACpC;EAOO;IACL,OAAOE,MAAM,IAAI,IAAI,KAClBA,MAAM,CAACI,UAAU,IAAIJ,MAAM,CAACK,MAAM,CAACC,WAAW,CAAC,KAAK,QAAQ,CAAC,GAC5DN,MAAM,CAACO,OAAO,KACsB3B,SAAS,CAAC,CAAC,CAAC,GAAGoB,MAAM,GAAGQ,SAAS,CAAC,GACtER,MAAM;EACZ;AACF;AAEA,MAAMS,eAAe,GAAG,IAAAP,qCAAkB;EAAA,IAAAQ,gBAAA,GAAA/B,iBAAA,CAAC,WACzCmB,QAAgB,EAChB;IAEA,MAAMa,GAAG,GAAG,IAAAC,oBAAa,EAACd,QAAQ,CAAC,CAACe,QAAQ,CAAC,CAAC,GAAG,SAAS;IAInD;MACL,IAAI,CAAC3B,OAAO,EAAE;QACZ,MAAM,IAAI4B,oBAAW,CACnB,gFAAgF,EAChFhB,QACF,CAAC;MACH;MAEA,aAAaZ,OAAO,CAACyB,GAAG,CAAC;IAC3B;EACF,CAAC;EAAA,SAlByDF,eAAeA,CAAAM,EAAA;IAAA,OAAAL,gBAAA,CAAA7B,KAAA,OAAAD,SAAA;EAAA;EAAA,OAAf6B,eAAe;AAAA,GAkBxE,CAAC;AAEF,MAAMO,mBAAmB,GAAIC,GAAW,IAAK;AAC7C,kBAAkBA,GAAG;AACrB;AACA;AACA,6BAA6BA,GAAG;AAChC,CAAC;AAED,MAAMC,oBAAoB,GAAG;EAC3B,KAAK,EAAE,SAAS;EAChB,MAAM,EAAE,KAAK;EACb,MAAM,EAAE,KAAK;EACb,KAAK,EAAE,SAAS;EAChB,MAAM,EAAE,KAAK;EACb,MAAM,EAAE;AACV,CAAU;AAEV,MAAMC,YAAY,GAAG,IAAIvB,GAAG,CAAC,CAAC;AAEf,UAAUwB,eAAeA,CACtCtB,QAAgB,EAChBuB,MAA0B,EAC1BC,QAAgB,EAChBC,QAAgB,EACE;EAClB,IAAIC,KAAK;EAET,MAAMP,GAAG,GAAGQ,MAAGA,CAAC,CAACC,OAAO,CAAC5B,QAAQ,CAAC;EAClC,MAAM6B,IAAI,GAAGV,GAAG,KAAK,KAAK,IAAIA,GAAG,KAAK,MAAM,IAAIA,GAAG,KAAK,MAAM;EAE9D,MAAMW,IAAI,GACRV,oBAAoB,CAClBW,cAAA,CAAAC,IAAA,CAAcZ,oBAAoB,EAAED,GAAG,CAAC,GACnCA,GAAG,GACH,KAAe,CACrB;EAEH,MAAMc,OAAO,GAAG,GAAGV,MAAM,IAAIO,IAAI,EAAW;EAC5C,QAAQG,OAAO;IACb,KAAK,aAAa;IAClB,KAAK,UAAU;MACb,IAAIJ,IAAI,EAAE;QACR,OAAOK,eAAe,CAAClC,QAAQ,EAAEmB,GAAG,EAAE,MAAMpB,cAAc,CAACC,QAAQ,CAAC,CAAC;MACvE,CAAC,MAEM;QACL,OAAOD,cAAc,CACnBC,QAAQ,EAEyBlB,SAAS,CAAC,CAAC,CAC9C,CAAC;MACH;IACF,KAAK,cAAc;IACnB,KAAK,iBAAiB;IACtB,KAAK,aAAa;MAChB,IAAI;QACF,IAAI+C,IAAI,EAAE;UACR,OAAOK,eAAe,CAAClC,QAAQ,EAAEmB,GAAG,EAAE,MAAMpB,cAAc,CAACC,QAAQ,CAAC,CAAC;QACvE,CAAC,MAEM;UACL,OAAOD,cAAc,CACnBC,QAAQ,EAEyBlB,SAAS,CAAC,CAAC,CAC9C,CAAC;QACH;MACF,CAAC,CAAC,OAAOb,CAAC,EAAE;QACV,IACEA,CAAC,CAACkE,IAAI,KAAK,0BAA0B,IAMpClE,CAAC,CAACkE,IAAI,KAAK,0BAA0B,IAAId,YAAY,CAACpB,GAAG,CAACD,QAAQ,CAAE,EACrE;UACAqB,YAAY,CAAClB,GAAG,CAACH,QAAQ,CAAC;UAC1B,IAAI,EAAE0B,KAAK,WAALA,KAAK,GAALA,KAAK,GAAK,OAAO,IAAAU,cAAO,EAAC,CAAC,CAAC,EAAE;YACjC,MAAM,IAAIpB,oBAAW,CAACS,QAAQ,EAAEzB,QAAQ,CAAC;UAC3C;QAEF,CAAC,MAAM,IACL/B,CAAC,CAACkE,IAAI,KAAK,iBAAiB,IACML,IAAI,KAAK,KAAK,EAChD,CAEF,CAAC,MAAM;UACL,MAAM7D,CAAC;QACT;MACF;IAEF,KAAK,UAAU;MACb,IAAKyD,KAAK,WAALA,KAAK,GAALA,KAAK,GAAK,OAAO,IAAAU,cAAO,EAAC,CAAC,EAAG;QAChC,MAAMC,OAAO,GAAGR,IAAI,GAChBK,eAAe,CAAClC,QAAQ,EAAEmB,GAAG,EAAE,MAAMR,eAAe,CAACX,QAAQ,CAAC,CAAC,GAC/DW,eAAe,CAACX,QAAQ,CAAC;QAE7B,OAAO,CAAC,OAAO,IAAAsC,cAAO,EAACD,OAAO,CAAC,EAAE5B,OAAO;MAC1C;MACA,IAAIoB,IAAI,EAAE;QACR,MAAM,IAAIb,oBAAW,CAACE,mBAAmB,CAACC,GAAG,CAAC,EAAEnB,QAAQ,CAAC;MAC3D,CAAC,MAAM;QACL,MAAM,IAAIgB,oBAAW,CAACQ,QAAQ,EAAExB,QAAQ,CAAC;MAC3C;IACF;MACE,MAAM,IAAIuC,KAAK,CAAC,yCAAyC,CAAC;EAC9D;AACF;AAEA,SAASL,eAAeA,CACtBlC,QAAgB,EAChBmB,GAAW,EACXqB,QAAiB,EACd;EACH,IACE9C,OAAO,CAAC+C,QAAQ,CAACC,UAAU,IAC3BrF,OAAO,CAACsF,UAAU,CAAC,KAAK,CAAC,IACzBtF,OAAO,CAACsF,UAAU,CAAC,MAAM,CAAC,IAC1BtF,OAAO,CAACsF,UAAU,CAAC,MAAM,CAAC,EAC1B;IACA,OAAOH,QAAQ,CAAC,CAAC;EACnB;EAEA,IAAIrB,GAAG,KAAK,MAAM,EAAE;IAClB,MAAM,IAAIH,oBAAW,CAACE,mBAAmB,CAACC,GAAG,CAAC,EAAEnB,QAAQ,CAAC;EAC3D;EAEA,MAAM4C,IAAkB,GAAG;IACzBC,OAAO,EAAE,KAAK;IACdC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,aAAa;IACzBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAEtB,MAAGA,CAAC,CAACuB,QAAQ,CAAClD,QAAQ,CAAC;IACvCmD,OAAO,EAAE,CACP,CACEC,WAAW,CAACpD,QAAQ,CAAC,EAAAqD,MAAA,CAAAC,MAAA;MAEnBC,qBAAqB,EAAE,IAAI;MAC3BC,kBAAkB,EAAE;IAAI,GACgB;MAAEC,kBAAkB,EAAE;IAAK,CAAC,EAEvE;EAEL,CAAC;EAED,IAAIC,OAAqC,GAAG,SAAAA,CAAUC,CAAC,EAAEC,QAAQ,EAAE;IAEjE,IAAIF,OAAO,IAAIE,QAAQ,CAACC,QAAQ,CAAC,MAAM,CAAC,EAAE;MACxC,IAAI;QAEF,OAAOF,CAAC,CAACG,QAAQ,CACf,IAAAC,gCAAiB,EAACH,QAAQ,EAAAP,MAAA,CAAAC,MAAA,KACrBV,IAAI;UACPgB;QAAQ,EACT,CAAC,CAACzB,IAAI,EACPyB,QACF,CAAC;MACH,CAAC,CAAC,OAAOI,KAAK,EAAE;QAGd,MAAMC,WAAW,GAAG5G,OAAO,CAAC,uCAAuC,CAAC;QACpE,IAAImC,QAAKA,CAAC,CAAC0E,EAAE,CAACD,WAAW,CAACE,OAAO,EAAE,QAAQ,CAAC,EAAE;UAC5CC,OAAO,CAACJ,KAAK,CACX,4FACF,CAAC;QACH;QACA,MAAMA,KAAK;MACb;IACF;IACA,OAAO3G,OAAO,CAACsF,UAAU,CAAC,KAAK,CAAC,CAACgB,CAAC,EAAEC,QAAQ,CAAC;EAC/C,CAAC;EACDvG,OAAO,CAACsF,UAAU,CAACxB,GAAG,CAAC,GAAGuC,OAAO;EAEjC,IAAI;IACF,OAAOlB,QAAQ,CAAC,CAAC;EACnB,CAAC,SAAS;IACR,IAAInF,OAAO,CAACsF,UAAU,CAACxB,GAAG,CAAC,KAAKuC,OAAO,EAAE,OAAOrG,OAAO,CAACsF,UAAU,CAACxB,GAAG,CAAC;IACvEuC,OAAO,GAAGhD,SAAS;EACrB;AACF;AAEA,SAAS0C,WAAWA,CAACpD,QAAgB,EAAE;EACrC,IAAI;IAEF,OAAO3C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAO2G,KAAK,EAAE;IACd,IAAIA,KAAK,CAAC7B,IAAI,KAAK,kBAAkB,EAAE,MAAM6B,KAAK;IAElD,IAAIK,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAI3E,OAAO,CAACC,QAAQ,CAAC2E,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAIrD,oBAAW,CAACqD,OAAO,EAAErE,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_async","require","_path","data","_url","_semver","_debug","_rewriteStackTrace","_configError","_transformFile","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","debug","buildDebug","import_","_unused","supportsESM","exports","semver","satisfies","process","versions","node","LOADING_CJS_FILES","Set","loadCjsDefault","filepath","has","module","add","endHiddenCallStack","delete","_module","__esModule","default","loadMjsDefault","_loadMjsDefault","url","pathToFileURL","toString","ConfigError","_x","loadCodeDefault","asyncError","path","extname","loadCtsDefault","e","code","isAsync","waitFor","ext","hasTsSupport","extensions","handler","opts","babelrc","configFile","sourceType","sourceMaps","sourceFileName","basename","presets","getTSPreset","Object","assign","onlyRemoveTypeImports","optimizeConstEnums","allowDeclareFields","m","filename","endsWith","_compile","transformFileSync","packageJson","lt","version","console","message","pnp"],"sources":["../../../src/config/files/module-types.ts"],"sourcesContent":["import { isAsync, waitFor } from \"../../gensync-utils/async.ts\";\nimport type { Handler } from \"gensync\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { createRequire } from \"module\";\nimport semver from \"semver\";\nimport buildDebug from \"debug\";\n\nimport { endHiddenCallStack } from \"../../errors/rewrite-stack-trace.ts\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nimport type { InputOptions } from \"../index.ts\";\nimport { transformFileSync } from \"../../transform-file.ts\";\n\nconst debug = buildDebug(\"babel:config:loading:files:module-types\");\n\nconst require = createRequire(import.meta.url);\n\nif (!process.env.BABEL_8_BREAKING) {\n try {\n // Old Node.js versions don't support import() syntax.\n // eslint-disable-next-line no-var\n var import_:\n | ((specifier: string | URL) => any)\n | undefined = require(\"./import.cjs\");\n } catch {}\n}\n\nexport const supportsESM = semver.satisfies(\n process.versions.node,\n // older versions, starting from 10, support the dynamic\n // import syntax but always return a rejected promise.\n \"^12.17 || >=13.2\",\n);\n\nconst LOADING_CJS_FILES = new Set();\n\nfunction loadCjsDefault(filepath: string) {\n // The `require()` call below can make this code reentrant if a require hook\n // like @babel/register has been loaded into the system. That would cause\n // Babel to attempt to compile the `.babelrc.js` file as it loads below. To\n // cover this case, we auto-ignore re-entrant config processing. ESM loaders\n // do not have this problem, because loaders do not apply to themselves.\n if (LOADING_CJS_FILES.has(filepath)) {\n debug(\"Auto-ignoring usage of config %o.\", filepath);\n return {};\n }\n\n let module;\n try {\n LOADING_CJS_FILES.add(filepath);\n module = endHiddenCallStack(require)(filepath);\n } finally {\n LOADING_CJS_FILES.delete(filepath);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return module?.__esModule ? module.default : module;\n } else {\n return module?.__esModule\n ? module.default ||\n /* fallbackToTranspiledModule */ (arguments[1] ? module : undefined)\n : module;\n }\n}\n\nconst loadMjsDefault = endHiddenCallStack(async function loadMjsDefault(\n filepath: string,\n) {\n const url = pathToFileURL(filepath).toString();\n\n if (process.env.BABEL_8_BREAKING) {\n return (await import(url)).default;\n } else {\n if (!import_) {\n throw new ConfigError(\n \"Internal error: Native ECMAScript modules aren't supported by this platform.\\n\",\n filepath,\n );\n }\n\n return (await import_(url)).default;\n }\n});\n\nexport default function* loadCodeDefault(\n filepath: string,\n asyncError: string,\n): Handler {\n switch (path.extname(filepath)) {\n case \".cjs\":\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n case \".mjs\":\n break;\n case \".cts\":\n return loadCtsDefault(filepath);\n default:\n try {\n if (process.env.BABEL_8_BREAKING) {\n return loadCjsDefault(filepath);\n } else {\n return loadCjsDefault(\n filepath,\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n /* fallbackToTranspiledModule */ arguments[2],\n );\n }\n } catch (e) {\n if (e.code !== \"ERR_REQUIRE_ESM\") throw e;\n }\n }\n if (yield* isAsync()) {\n return yield* waitFor(loadMjsDefault(filepath));\n }\n throw new ConfigError(asyncError, filepath);\n}\n\nfunction loadCtsDefault(filepath: string) {\n const ext = \".cts\";\n const hasTsSupport = !!(\n require.extensions[\".ts\"] ||\n require.extensions[\".cts\"] ||\n require.extensions[\".mts\"]\n );\n\n let handler: NodeJS.RequireExtensions[\"\"];\n\n if (!hasTsSupport) {\n const opts: InputOptions = {\n babelrc: false,\n configFile: false,\n sourceType: \"unambiguous\",\n sourceMaps: \"inline\",\n sourceFileName: path.basename(filepath),\n presets: [\n [\n getTSPreset(filepath),\n {\n onlyRemoveTypeImports: true,\n optimizeConstEnums: true,\n ...(process.env.BABEL_8_BREAKING\n ? {}\n : { allowDeclareFields: true }),\n },\n ],\n ],\n };\n\n handler = function (m, filename) {\n // If we want to support `.ts`, `.d.ts` must be handled specially.\n if (handler && filename.endsWith(ext)) {\n try {\n // @ts-expect-error Undocumented API\n return m._compile(\n transformFileSync(filename, {\n ...opts,\n filename,\n }).code,\n filename,\n );\n } catch (error) {\n if (!hasTsSupport) {\n // TODO(Babel 8): Add this as an optional peer dependency\n // eslint-disable-next-line import/no-extraneous-dependencies\n const packageJson = require(\"@babel/preset-typescript/package.json\");\n if (semver.lt(packageJson.version, \"7.21.4\")) {\n console.error(\n \"`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.\",\n );\n }\n }\n throw error;\n }\n }\n return require.extensions[\".js\"](m, filename);\n };\n require.extensions[ext] = handler;\n }\n try {\n return loadCjsDefault(filepath);\n } finally {\n if (!hasTsSupport) {\n if (require.extensions[ext] === handler) delete require.extensions[ext];\n handler = undefined;\n }\n }\n}\n\nfunction getTSPreset(filepath: string) {\n try {\n // eslint-disable-next-line import/no-extraneous-dependencies\n return require(\"@babel/preset-typescript\");\n } catch (error) {\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n let message =\n \"You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!\";\n\n if (!process.env.BABEL_8_BREAKING) {\n if (process.versions.pnp) {\n // Using Yarn PnP, which doesn't allow requiring packages that are not\n // explicitly specified as dependencies.\n message += `\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\\t\"@babel/core@*\":\n\\t\\tpeerDependencies:\n\\t\\t\\t\"@babel/preset-typescript\": \"*\"\n`;\n }\n }\n\n throw new ConfigError(message, filepath);\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAAAC,MAAA;EAAA,MAAAC,IAAA,GAAAF,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAC,KAAA;EAAA,MAAAD,IAAA,GAAAF,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAD,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAF,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAF,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAI,kBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAGA,IAAAQ,cAAA,GAAAR,OAAA;AAA4D,SAAAS,mBAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,GAAA,EAAAC,GAAA,cAAAC,IAAA,GAAAP,GAAA,CAAAK,GAAA,EAAAC,GAAA,OAAAE,KAAA,GAAAD,IAAA,CAAAC,KAAA,WAAAC,KAAA,IAAAP,MAAA,CAAAO,KAAA,iBAAAF,IAAA,CAAAG,IAAA,IAAAT,OAAA,CAAAO,KAAA,YAAAG,OAAA,CAAAV,OAAA,CAAAO,KAAA,EAAAI,IAAA,CAAAT,KAAA,EAAAC,MAAA;AAAA,SAAAS,kBAAAC,EAAA,6BAAAC,IAAA,SAAAC,IAAA,GAAAC,SAAA,aAAAN,OAAA,WAAAV,OAAA,EAAAC,MAAA,QAAAF,GAAA,GAAAc,EAAA,CAAAI,KAAA,CAAAH,IAAA,EAAAC,IAAA,YAAAb,MAAAK,KAAA,IAAAT,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,UAAAI,KAAA,cAAAJ,OAAAe,GAAA,IAAApB,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,WAAAe,GAAA,KAAAhB,KAAA,CAAAiB,SAAA;AAE5D,MAAMC,KAAK,GAAGC,OAASA,CAAC,CAAC,yCAAyC,CAAC;AAIhC;EACjC,IAAI;IAGF,IAAIC,OAES,GAAGjC,OAAO,CAAC,cAAc,CAAC;EACzC,CAAC,CAAC,OAAAkC,OAAA,EAAM,CAAC;AACX;AAEO,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,QAAKA,CAAC,CAACC,SAAS,CACzCC,OAAO,CAACC,QAAQ,CAACC,IAAI,EAGrB,kBACF,CAAC;AAED,MAAMC,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC;AAEnC,SAASC,cAAcA,CAACC,QAAgB,EAAE;EAMxC,IAAIH,iBAAiB,CAACI,GAAG,CAACD,QAAQ,CAAC,EAAE;IACnCd,KAAK,CAAC,mCAAmC,EAAEc,QAAQ,CAAC;IACpD,OAAO,CAAC,CAAC;EACX;EAEA,IAAIE,MAAM;EACV,IAAI;IACFL,iBAAiB,CAACM,GAAG,CAACH,QAAQ,CAAC;IAC/BE,MAAM,GAAG,IAAAE,qCAAkB,EAACjD,OAAO,CAAC,CAAC6C,QAAQ,CAAC;EAChD,CAAC,SAAS;IACRH,iBAAiB,CAACQ,MAAM,CAACL,QAAQ,CAAC;EACpC;EAIO;IAAA,IAAAM,OAAA;IACL,OAAO,CAAAA,OAAA,GAAAJ,MAAM,aAANI,OAAA,CAAQC,UAAU,GACrBL,MAAM,CAACM,OAAO,KACsB1B,SAAS,CAAC,CAAC,CAAC,GAAGoB,MAAM,GAAGjB,SAAS,CAAC,GACtEiB,MAAM;EACZ;AACF;AAEA,MAAMO,cAAc,GAAG,IAAAL,qCAAkB;EAAA,IAAAM,eAAA,GAAAhC,iBAAA,CAAC,WACxCsB,QAAgB,EAChB;IACA,MAAMW,GAAG,GAAG,IAAAC,oBAAa,EAACZ,QAAQ,CAAC,CAACa,QAAQ,CAAC,CAAC;IAIvC;MACL,IAAI,CAACzB,OAAO,EAAE;QACZ,MAAM,IAAI0B,oBAAW,CACnB,gFAAgF,EAChFd,QACF,CAAC;MACH;MAEA,OAAO,OAAOZ,OAAO,CAACuB,GAAG,CAAC,EAAEH,OAAO;IACrC;EACF,CAAC;EAAA,SAjBwDC,cAAcA,CAAAM,EAAA;IAAA,OAAAL,eAAA,CAAA3B,KAAA,OAAAD,SAAA;EAAA;EAAA,OAAd2B,cAAc;AAAA,GAiBtE,CAAC;AAEa,UAAUO,eAAeA,CACtChB,QAAgB,EAChBiB,UAAkB,EACA;EAClB,QAAQC,MAAGA,CAAC,CAACC,OAAO,CAACnB,QAAQ,CAAC;IAC5B,KAAK,MAAM;MAGF;QACL,OAAOD,cAAc,CACnBC,QAAQ,EAEyBlB,SAAS,CAAC,CAAC,CAC9C,CAAC;MACH;IACF,KAAK,MAAM;MACT;IACF,KAAK,MAAM;MACT,OAAOsC,cAAc,CAACpB,QAAQ,CAAC;IACjC;MACE,IAAI;QAGK;UACL,OAAOD,cAAc,CACnBC,QAAQ,EAEyBlB,SAAS,CAAC,CAAC,CAC9C,CAAC;QACH;MACF,CAAC,CAAC,OAAOuC,CAAC,EAAE;QACV,IAAIA,CAAC,CAACC,IAAI,KAAK,iBAAiB,EAAE,MAAMD,CAAC;MAC3C;EACJ;EACA,IAAI,OAAO,IAAAE,cAAO,EAAC,CAAC,EAAE;IACpB,OAAO,OAAO,IAAAC,cAAO,EAACf,cAAc,CAACT,QAAQ,CAAC,CAAC;EACjD;EACA,MAAM,IAAIc,oBAAW,CAACG,UAAU,EAAEjB,QAAQ,CAAC;AAC7C;AAEA,SAASoB,cAAcA,CAACpB,QAAgB,EAAE;EACxC,MAAMyB,GAAG,GAAG,MAAM;EAClB,MAAMC,YAAY,GAAG,CAAC,EACpBvE,OAAO,CAACwE,UAAU,CAAC,KAAK,CAAC,IACzBxE,OAAO,CAACwE,UAAU,CAAC,MAAM,CAAC,IAC1BxE,OAAO,CAACwE,UAAU,CAAC,MAAM,CAAC,CAC3B;EAED,IAAIC,OAAqC;EAEzC,IAAI,CAACF,YAAY,EAAE;IACjB,MAAMG,IAAkB,GAAG;MACzBC,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,KAAK;MACjBC,UAAU,EAAE,aAAa;MACzBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAEhB,MAAGA,CAAC,CAACiB,QAAQ,CAACnC,QAAQ,CAAC;MACvCoC,OAAO,EAAE,CACP,CACEC,WAAW,CAACrC,QAAQ,CAAC,EAAAsC,MAAA,CAAAC,MAAA;QAEnBC,qBAAqB,EAAE,IAAI;QAC3BC,kBAAkB,EAAE;MAAI,GAGpB;QAAEC,kBAAkB,EAAE;MAAK,CAAC,EAEnC;IAEL,CAAC;IAEDd,OAAO,GAAG,SAAAA,CAAUe,CAAC,EAAEC,QAAQ,EAAE;MAE/B,IAAIhB,OAAO,IAAIgB,QAAQ,CAACC,QAAQ,CAACpB,GAAG,CAAC,EAAE;QACrC,IAAI;UAEF,OAAOkB,CAAC,CAACG,QAAQ,CACf,IAAAC,gCAAiB,EAACH,QAAQ,EAAAN,MAAA,CAAAC,MAAA,KACrBV,IAAI;YACPe;UAAQ,EACT,CAAC,CAACtB,IAAI,EACPsB,QACF,CAAC;QACH,CAAC,CAAC,OAAOtE,KAAK,EAAE;UACd,IAAI,CAACoD,YAAY,EAAE;YAGjB,MAAMsB,WAAW,GAAG7F,OAAO,CAAC,uCAAuC,CAAC;YACpE,IAAIqC,QAAKA,CAAC,CAACyD,EAAE,CAACD,WAAW,CAACE,OAAO,EAAE,QAAQ,CAAC,EAAE;cAC5CC,OAAO,CAAC7E,KAAK,CACX,4FACF,CAAC;YACH;UACF;UACA,MAAMA,KAAK;QACb;MACF;MACA,OAAOnB,OAAO,CAACwE,UAAU,CAAC,KAAK,CAAC,CAACgB,CAAC,EAAEC,QAAQ,CAAC;IAC/C,CAAC;IACDzF,OAAO,CAACwE,UAAU,CAACF,GAAG,CAAC,GAAGG,OAAO;EACnC;EACA,IAAI;IACF,OAAO7B,cAAc,CAACC,QAAQ,CAAC;EACjC,CAAC,SAAS;IACR,IAAI,CAAC0B,YAAY,EAAE;MACjB,IAAIvE,OAAO,CAACwE,UAAU,CAACF,GAAG,CAAC,KAAKG,OAAO,EAAE,OAAOzE,OAAO,CAACwE,UAAU,CAACF,GAAG,CAAC;MACvEG,OAAO,GAAG3C,SAAS;IACrB;EACF;AACF;AAEA,SAASoD,WAAWA,CAACrC,QAAgB,EAAE;EACrC,IAAI;IAEF,OAAO7C,OAAO,CAAC,0BAA0B,CAAC;EAC5C,CAAC,CAAC,OAAOmB,KAAK,EAAE;IACd,IAAIA,KAAK,CAACgD,IAAI,KAAK,kBAAkB,EAAE,MAAMhD,KAAK;IAElD,IAAI8E,OAAO,GACT,yIAAyI;IAExG;MACjC,IAAI1D,OAAO,CAACC,QAAQ,CAAC0D,GAAG,EAAE;QAGxBD,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;MACK;IACF;IAEA,MAAM,IAAItC,oBAAW,CAACsC,OAAO,EAAEpD,QAAQ,CAAC;EAC1C;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/package.js.map b/node_modules/@babel/core/lib/config/files/package.js.map index 38aeb2c70..bb4b162e2 100644 --- a/node_modules/@babel/core/lib/config/files/package.js.map +++ b/node_modules/@babel/core/lib/config/files/package.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","_utils","_configError","PACKAGE_FILENAME","readConfigPackage","makeStaticFileCache","filepath","content","options","JSON","parse","err","ConfigError","message","Error","Array","isArray","dirname","path","findPackageData","pkg","directories","isPackage","basename","push","join","nextLoc"],"sources":["../../../src/config/files/package.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { makeStaticFileCache } from \"./utils.ts\";\n\nimport type { ConfigFile, FilePackageData } from \"./types.ts\";\n\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst PACKAGE_FILENAME = \"package.json\";\n\nconst readConfigPackage = makeStaticFileCache(\n (filepath, content): ConfigFile => {\n let options;\n try {\n options = JSON.parse(content) as unknown;\n } catch (err) {\n throw new ConfigError(\n `Error while parsing JSON - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new Error(`${filepath}: No config detected`);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(\n `Config returned typeof ${typeof options}`,\n filepath,\n );\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n },\n);\n\n/**\n * Find metadata about the package that this file is inside of. Resolution\n * of Babel's config requires general package information to decide when to\n * search for .babelrc files\n */\nexport function* findPackageData(filepath: string): Handler {\n let pkg = null;\n const directories = [];\n let isPackage = true;\n\n let dirname = path.dirname(filepath);\n while (!pkg && path.basename(dirname) !== \"node_modules\") {\n directories.push(dirname);\n\n pkg = yield* readConfigPackage(path.join(dirname, PACKAGE_FILENAME));\n\n const nextLoc = path.dirname(dirname);\n if (dirname === nextLoc) {\n isPackage = false;\n break;\n }\n dirname = nextLoc;\n }\n\n return { filepath, directories, pkg, isPackage };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,gBAAgB,GAAG,cAAc;AAEvC,MAAMC,iBAAiB,GAAG,IAAAC,0BAAmB,EAC3C,CAACC,QAAQ,EAAEC,OAAO,KAAiB;EACjC,IAAIC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACH,OAAO,CAAY;EAC1C,CAAC,CAAC,OAAOI,GAAG,EAAE;IACZ,MAAM,IAAIC,oBAAW,CACnB,8BAA8BD,GAAG,CAACE,OAAO,EAAE,EAC3CP,QACF,CAAC;EACH;EAEA,IAAI,CAACE,OAAO,EAAE,MAAM,IAAIM,KAAK,CAAC,GAAGR,QAAQ,sBAAsB,CAAC;EAEhE,IAAI,OAAOE,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAII,oBAAW,CACnB,0BAA0B,OAAOJ,OAAO,EAAE,EAC1CF,QACF,CAAC;EACH;EACA,IAAIS,KAAK,CAACC,OAAO,CAACR,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAII,oBAAW,CAAC,wCAAwC,EAAEN,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ;IACRW,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;IAC/BE;EACF,CAAC;AACH,CACF,CAAC;AAOM,UAAUW,eAAeA,CAACb,QAAgB,EAA4B;EAC3E,IAAIc,GAAG,GAAG,IAAI;EACd,MAAMC,WAAW,GAAG,EAAE;EACtB,IAAIC,SAAS,GAAG,IAAI;EAEpB,IAAIL,OAAO,GAAGC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;EACpC,OAAO,CAACc,GAAG,IAAIF,MAAGA,CAAC,CAACK,QAAQ,CAACN,OAAO,CAAC,KAAK,cAAc,EAAE;IACxDI,WAAW,CAACG,IAAI,CAACP,OAAO,CAAC;IAEzBG,GAAG,GAAG,OAAOhB,iBAAiB,CAACc,MAAGA,CAAC,CAACO,IAAI,CAACR,OAAO,EAAEd,gBAAgB,CAAC,CAAC;IAEpE,MAAMuB,OAAO,GAAGR,MAAGA,CAAC,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAKS,OAAO,EAAE;MACvBJ,SAAS,GAAG,KAAK;MACjB;IACF;IACAL,OAAO,GAAGS,OAAO;EACnB;EAEA,OAAO;IAAEpB,QAAQ;IAAEe,WAAW;IAAED,GAAG;IAAEE;EAAU,CAAC;AAClD;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","_utils","_configError","PACKAGE_FILENAME","readConfigPackage","makeStaticFileCache","filepath","content","options","JSON","parse","err","ConfigError","message","Error","Array","isArray","dirname","path","findPackageData","pkg","directories","isPackage","basename","push","join","nextLoc"],"sources":["../../../src/config/files/package.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { makeStaticFileCache } from \"./utils.ts\";\n\nimport type { ConfigFile, FilePackageData } from \"./types.ts\";\n\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst PACKAGE_FILENAME = \"package.json\";\n\nconst readConfigPackage = makeStaticFileCache(\n (filepath, content): ConfigFile => {\n let options;\n try {\n options = JSON.parse(content) as unknown;\n } catch (err) {\n throw new ConfigError(\n `Error while parsing JSON - ${err.message}`,\n filepath,\n );\n }\n\n if (!options) throw new Error(`${filepath}: No config detected`);\n\n if (typeof options !== \"object\") {\n throw new ConfigError(\n `Config returned typeof ${typeof options}`,\n filepath,\n );\n }\n if (Array.isArray(options)) {\n throw new ConfigError(`Expected config object but found array`, filepath);\n }\n\n return {\n filepath,\n dirname: path.dirname(filepath),\n options,\n };\n },\n);\n\n/**\n * Find metadata about the package that this file is inside of. Resolution\n * of Babel's config requires general package information to decide when to\n * search for .babelrc files\n */\nexport function* findPackageData(filepath: string): Handler {\n let pkg = null;\n const directories = [];\n let isPackage = true;\n\n let dirname = path.dirname(filepath);\n while (!pkg && path.basename(dirname) !== \"node_modules\") {\n directories.push(dirname);\n\n pkg = yield* readConfigPackage(path.join(dirname, PACKAGE_FILENAME));\n\n const nextLoc = path.dirname(dirname);\n if (dirname === nextLoc) {\n isPackage = false;\n break;\n }\n dirname = nextLoc;\n }\n\n return { filepath, directories, pkg, isPackage };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,gBAAgB,GAAG,cAAc;AAEvC,MAAMC,iBAAiB,GAAG,IAAAC,0BAAmB,EAC3C,CAACC,QAAQ,EAAEC,OAAO,KAAiB;EACjC,IAAIC,OAAO;EACX,IAAI;IACFA,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACH,OAAO,CAAY;EAC1C,CAAC,CAAC,OAAOI,GAAG,EAAE;IACZ,MAAM,IAAIC,oBAAW,CACnB,8BAA8BD,GAAG,CAACE,OAAO,EAAE,EAC3CP,QACF,CAAC;EACH;EAEA,IAAI,CAACE,OAAO,EAAE,MAAM,IAAIM,KAAK,CAAC,GAAGR,QAAQ,sBAAsB,CAAC;EAEhE,IAAI,OAAOE,OAAO,KAAK,QAAQ,EAAE;IAC/B,MAAM,IAAII,oBAAW,CACnB,0BAA0B,OAAOJ,OAAO,EAAE,EAC1CF,QACF,CAAC;EACH;EACA,IAAIS,KAAK,CAACC,OAAO,CAACR,OAAO,CAAC,EAAE;IAC1B,MAAM,IAAII,oBAAW,CAAC,wCAAwC,EAAEN,QAAQ,CAAC;EAC3E;EAEA,OAAO;IACLA,QAAQ;IACRW,OAAO,EAAEC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;IAC/BE;EACF,CAAC;AACH,CACF,CAAC;AAOM,UAAUW,eAAeA,CAACb,QAAgB,EAA4B;EAC3E,IAAIc,GAAG,GAAG,IAAI;EACd,MAAMC,WAAW,GAAG,EAAE;EACtB,IAAIC,SAAS,GAAG,IAAI;EAEpB,IAAIL,OAAO,GAAGC,MAAGA,CAAC,CAACD,OAAO,CAACX,QAAQ,CAAC;EACpC,OAAO,CAACc,GAAG,IAAIF,MAAGA,CAAC,CAACK,QAAQ,CAACN,OAAO,CAAC,KAAK,cAAc,EAAE;IACxDI,WAAW,CAACG,IAAI,CAACP,OAAO,CAAC;IAEzBG,GAAG,GAAG,OAAOhB,iBAAiB,CAACc,MAAGA,CAAC,CAACO,IAAI,CAACR,OAAO,EAAEd,gBAAgB,CAAC,CAAC;IAEpE,MAAMuB,OAAO,GAAGR,MAAGA,CAAC,CAACD,OAAO,CAACA,OAAO,CAAC;IACrC,IAAIA,OAAO,KAAKS,OAAO,EAAE;MACvBJ,SAAS,GAAG,KAAK;MACjB;IACF;IACAL,OAAO,GAAGS,OAAO;EACnB;EAEA,OAAO;IAAEpB,QAAQ;IAAEe,WAAW;IAAED,GAAG;IAAEE;EAAU,CAAC;AAClD;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/plugins.js b/node_modules/@babel/core/lib/config/files/plugins.js index 88f82dc61..25435ae42 100644 --- a/node_modules/@babel/core/lib/config/files/plugins.js +++ b/node_modules/@babel/core/lib/config/files/plugins.js @@ -30,7 +30,6 @@ function _url() { return data; } var _importMetaResolve = require("../../vendor/import-meta-resolve.js"); -require("module"); function _fs() { const data = require("fs"); _fs = function () { @@ -50,11 +49,8 @@ const OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/; const resolvePlugin = exports.resolvePlugin = resolveStandardizedName.bind(null, "plugin"); const resolvePreset = exports.resolvePreset = resolveStandardizedName.bind(null, "preset"); function* loadPlugin(name, dirname) { - const { - filepath, - loader - } = resolvePlugin(name, dirname, yield* (0, _async.isAsync)()); - const value = yield* requireModule("plugin", loader, filepath); + const filepath = resolvePlugin(name, dirname, yield* (0, _async.isAsync)()); + const value = yield* requireModule("plugin", filepath); debug("Loaded plugin %o from %o.", name, dirname); return { filepath, @@ -62,11 +58,8 @@ function* loadPlugin(name, dirname) { }; } function* loadPreset(name, dirname) { - const { - filepath, - loader - } = resolvePreset(name, dirname, yield* (0, _async.isAsync)()); - const value = yield* requireModule("preset", loader, filepath); + const filepath = resolvePreset(name, dirname, yield* (0, _async.isAsync)()); + const value = yield* requireModule("preset", filepath); debug("Loaded preset %o from %o.", name, dirname); return { filepath, @@ -161,10 +154,7 @@ function resolveStandardizedNameForRequire(type, name, dirname) { while (!res.done) { res = it.next(tryRequireResolve(res.value, dirname)); } - return { - loader: "require", - filepath: res.value - }; + return res.value; } function resolveStandardizedNameForImport(type, name, dirname) { const parentUrl = (0, _url().pathToFileURL)(_path().join(dirname, "./babel-virtual-resolve-base.js")).href; @@ -173,18 +163,15 @@ function resolveStandardizedNameForImport(type, name, dirname) { while (!res.done) { res = it.next(tryImportMetaResolve(res.value, parentUrl)); } - return { - loader: "auto", - filepath: (0, _url().fileURLToPath)(res.value) - }; + return (0, _url().fileURLToPath)(res.value); } -function resolveStandardizedName(type, name, dirname, allowAsync) { - if (!_moduleTypes.supportsESM || !allowAsync) { +function resolveStandardizedName(type, name, dirname, resolveESM) { + if (!_moduleTypes.supportsESM || !resolveESM) { return resolveStandardizedNameForRequire(type, name, dirname); } try { const resolved = resolveStandardizedNameForImport(type, name, dirname); - if (!(0, _fs().existsSync)(resolved.filepath)) { + if (!(0, _fs().existsSync)(resolved)) { throw Object.assign(new Error(`Could not resolve "${name}" in file ${dirname}.`), { type: "MODULE_NOT_FOUND" }); @@ -203,7 +190,7 @@ function resolveStandardizedName(type, name, dirname, allowAsync) { { var LOADING_MODULES = new Set(); } -function* requireModule(type, loader, name) { +function* requireModule(type, name) { { if (!(yield* (0, _async.isAsync)()) && LOADING_MODULES.has(name)) { throw new Error(`Reentrant ${type} detected trying to load "${name}". This module is not ignored ` + "and is trying to load itself while compiling itself, leading to a dependency cycle. " + 'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.'); @@ -214,7 +201,7 @@ function* requireModule(type, loader, name) { LOADING_MODULES.add(name); } { - return yield* (0, _moduleTypes.default)(name, loader, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously " + "or when using the Node.js `--experimental-require-module` flag.", `You appear to be using a ${type} that contains top-level await, ` + "which is only supported when running Babel asynchronously.", true); + return yield* (0, _moduleTypes.default)(name, `You appear to be using a native ECMAScript module ${type}, ` + "which is only supported when running Babel asynchronously.", true); } } catch (err) { err.message = `[BABEL]: ${err.message} (While processing: ${name})`; diff --git a/node_modules/@babel/core/lib/config/files/plugins.js.map b/node_modules/@babel/core/lib/config/files/plugins.js.map index 8285b3425..e6fe3ff4e 100644 --- a/node_modules/@babel/core/lib/config/files/plugins.js.map +++ b/node_modules/@babel/core/lib/config/files/plugins.js.map @@ -1 +1 @@ -{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","loader","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","allowAsync","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"node:module\";\nimport { existsSync } from \"node:fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", loader, filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const { filepath, loader } = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", loader, filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters[0],\n options: Parameters[1],\n): Result {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return { loader: \"require\" as const, filepath: res.value };\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return { loader: \"auto\" as const, filepath: fileURLToPath(res.value) };\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n allowAsync: boolean,\n) {\n if (!supportsESM || !allowAsync) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved.filepath)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(\n type: string,\n loader: \"require\" | \"auto\",\n name: string,\n): Handler {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n loader,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously \" +\n \"or when using the Node.js `--experimental-require-module` flag.\",\n `You appear to be using a ${type} that contains top-level await, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAEAA,OAAA;AACA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC,mBAAmB,GACvB,+DAA+D;AACjE,MAAMC,mBAAmB,GACvB,+DAA+D;AACjE,MAAMC,oBAAoB,GAAG,sBAAsB;AAE5C,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAGE,uBAAuB,CAACC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AAClE,MAAMC,aAAa,GAAAH,OAAA,CAAAG,aAAA,GAAGF,uBAAuB,CAACC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AAElE,UAAUE,UAAUA,CACzBC,IAAY,EACZC,OAAe,EACgC;EAC/C,MAAM;IAAEC,QAAQ;IAAEC;EAAO,CAAC,GAAGT,aAAa,CAACM,IAAI,EAAEC,OAAO,EAAE,OAAO,IAAAG,cAAO,EAAC,CAAC,CAAC;EAE3E,MAAMC,KAAK,GAAG,OAAOC,aAAa,CAAC,QAAQ,EAAEH,MAAM,EAAED,QAAQ,CAAC;EAC9DlB,KAAK,CAAC,2BAA2B,EAAEgB,IAAI,EAAEC,OAAO,CAAC;EAEjD,OAAO;IAAEC,QAAQ;IAAEG;EAAM,CAAC;AAC5B;AAEO,UAAUE,UAAUA,CACzBP,IAAY,EACZC,OAAe,EACgC;EAC/C,MAAM;IAAEC,QAAQ;IAAEC;EAAO,CAAC,GAAGL,aAAa,CAACE,IAAI,EAAEC,OAAO,EAAE,OAAO,IAAAG,cAAO,EAAC,CAAC,CAAC;EAE3E,MAAMC,KAAK,GAAG,OAAOC,aAAa,CAAC,QAAQ,EAAEH,MAAM,EAAED,QAAQ,CAAC;EAE9DlB,KAAK,CAAC,2BAA2B,EAAEgB,IAAI,EAAEC,OAAO,CAAC;EAEjD,OAAO;IAAEC,QAAQ;IAAEG;EAAM,CAAC;AAC5B;AAEA,SAASG,eAAeA,CAACC,IAAyB,EAAET,IAAY,EAAE;EAEhE,IAAIU,MAAGA,CAAC,CAACC,UAAU,CAACX,IAAI,CAAC,EAAE,OAAOA,IAAI;EAEtC,MAAMY,QAAQ,GAAGH,IAAI,KAAK,QAAQ;EAElC,OACET,IAAI,CAEDa,OAAO,CACND,QAAQ,GAAGxB,sBAAsB,GAAGD,sBAAsB,EAC1D,SAASsB,IAAI,GACf,CAAC,CAEAI,OAAO,CACND,QAAQ,GAAGtB,mBAAmB,GAAGD,mBAAmB,EACpD,KAAKoB,IAAI,GACX,CAAC,CAEAI,OAAO,CACND,QAAQ,GAAGpB,mBAAmB,GAAGD,mBAAmB,EACpD,WAAWkB,IAAI,GACjB,CAAC,CAEAI,OAAO,CAACpB,oBAAoB,EAAE,YAAYgB,IAAI,EAAE,CAAC,CAEjDI,OAAO,CAAC3B,QAAQ,EAAE,EAAE,CAAC;AAE5B;AAIA,UAAU4B,yBAAyBA,CACjCL,IAAyB,EACzBT,IAAY,EAC8B;EAC1C,MAAMe,gBAAgB,GAAGP,eAAe,CAACC,IAAI,EAAET,IAAI,CAAC;EACpD,MAAM;IAAEgB,KAAK;IAAEX;EAAM,CAAC,GAAG,MAAMU,gBAAgB;EAC/C,IAAI,CAACC,KAAK,EAAE,OAAOX,KAAK;EAGxB,IAAIW,KAAK,CAACC,IAAI,KAAK,kBAAkB,EAAE,MAAMD,KAAK;EAElD,IAAID,gBAAgB,KAAKf,IAAI,IAAI,CAAC,CAAC,MAAMA,IAAI,EAAEgB,KAAK,EAAE;IACpDA,KAAK,CAACE,OAAO,IAAI,+BAA+BlB,IAAI,kBAAkBA,IAAI,GAAG;EAC/E;EAEA,IAAI,CAAC,CAAC,MAAMQ,eAAe,CAACC,IAAI,EAAE,SAAS,GAAGT,IAAI,CAAC,EAAEgB,KAAK,EAAE;IAC1DA,KAAK,CAACE,OAAO,IAAI,4BAA4BlB,IAAI,IAAI;EACvD;EAEA,MAAMmB,YAAY,GAAGV,IAAI,KAAK,QAAQ,GAAG,QAAQ,GAAG,QAAQ;EAC5D,IAAI,CAAC,CAAC,MAAMD,eAAe,CAACW,YAAY,EAAEnB,IAAI,CAAC,EAAEgB,KAAK,EAAE;IACtDA,KAAK,CAACE,OAAO,IAAI,mCAAmCC,YAAY,SAASV,IAAI,GAAG;EAClF;EAEA,IAAIA,IAAI,KAAK,QAAQ,EAAE;IACrB,MAAMW,aAAa,GAAGL,gBAAgB,CAACF,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC;IAC3E,IAAIO,aAAa,KAAKL,gBAAgB,IAAI,CAAC,CAAC,MAAMK,aAAa,EAAEJ,KAAK,EAAE;MACtEA,KAAK,CAACE,OAAO,IAAI,qBAAqBE,aAAa,IAAI;IACzD;EACF;EAEAJ,KAAK,CAACE,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;EAEC,MAAMF,KAAK;AACb;AAEA,SAASK,iBAAiBA,CACxBC,EAAU,EACVrB,OAA2B,EACX;EAChB,IAAI;IACF,IAAIA,OAAO,EAAE;MACX,OAAO;QAAEe,KAAK,EAAE,IAAI;QAAEX,KAAK,EAAE,GAAAkB,CAAA,EAAAC,CAAA,MAAAD,CAAA,GAAAA,CAAA,CAAAE,KAAA,OAAAD,CAAA,GAAAA,CAAA,CAAAC,KAAA,QAAAF,CAAA,OAAAC,CAAA,OAAAD,CAAA,OAAAC,CAAA,QAAAD,CAAA,QAAAC,CAAA,MAAAE,OAAA,CAAAC,QAAA,CAAAC,IAAA,WAAAnD,OAAA,CAAAoD,OAAA,IAAAC,CAAA;UAAAC,KAAA,GAAAC,CAAA;QAAA,GAAAC,CAAA,GAAAxD,OAAA;UAAA,IAAAyD,CAAA,GAAAD,CAAA,CAAAE,SAAA,CAAAL,CAAA,EAAAG,CAAA,CAAAG,gBAAA,CAAAJ,CAAA,EAAAK,MAAA,CAAAL,CAAA;UAAA,IAAAE,CAAA,SAAAA,CAAA;UAAAA,CAAA,OAAAI,KAAA,2BAAAR,CAAA;UAAAI,CAAA,CAAAjB,IAAA;UAAA,MAAAiB,CAAA;QAAA,GAAgBZ,EAAE,EAAE;UAAES,KAAK,EAAE,CAAC9B,OAAO;QAAE,CAAC;MAAE,CAAC;IAC1E,CAAC,MAAM;MACL,OAAO;QAAEe,KAAK,EAAE,IAAI;QAAEX,KAAK,EAAE5B,OAAO,CAACoD,OAAO,CAACP,EAAE;MAAE,CAAC;IACpD;EACF,CAAC,CAAC,OAAON,KAAK,EAAE;IACd,OAAO;MAAEA,KAAK;MAAEX,KAAK,EAAE;IAAK,CAAC;EAC/B;AACF;AAEA,SAASkC,oBAAoBA,CAC3BjB,EAA2C,EAC3CkB,OAAgD,EAChC;EAChB,IAAI;IACF,OAAO;MAAExB,KAAK,EAAE,IAAI;MAAEX,KAAK,EAAE,IAAAoC,0BAAiB,EAACnB,EAAE,EAAEkB,OAAO;IAAE,CAAC;EAC/D,CAAC,CAAC,OAAOxB,KAAK,EAAE;IACd,OAAO;MAAEA,KAAK;MAAEX,KAAK,EAAE;IAAK,CAAC;EAC/B;AACF;AAEA,SAASqC,iCAAiCA,CACxCjC,IAAyB,EACzBT,IAAY,EACZC,OAAe,EACf;EACA,MAAM0C,EAAE,GAAG7B,yBAAyB,CAACL,IAAI,EAAET,IAAI,CAAC;EAChD,IAAI4C,GAAG,GAAGD,EAAE,CAACE,IAAI,CAAC,CAAC;EACnB,OAAO,CAACD,GAAG,CAACE,IAAI,EAAE;IAChBF,GAAG,GAAGD,EAAE,CAACE,IAAI,CAACxB,iBAAiB,CAACuB,GAAG,CAACvC,KAAK,EAAEJ,OAAO,CAAC,CAAC;EACtD;EACA,OAAO;IAAEE,MAAM,EAAE,SAAkB;IAAED,QAAQ,EAAE0C,GAAG,CAACvC;EAAM,CAAC;AAC5D;AACA,SAAS0C,gCAAgCA,CACvCtC,IAAyB,EACzBT,IAAY,EACZC,OAAe,EACf;EACA,MAAM+C,SAAS,GAAG,IAAAC,oBAAa,EAC7BvC,MAAGA,CAAC,CAACwC,IAAI,CAACjD,OAAO,EAAE,iCAAiC,CACtD,CAAC,CAACkD,IAAI;EAEN,MAAMR,EAAE,GAAG7B,yBAAyB,CAACL,IAAI,EAAET,IAAI,CAAC;EAChD,IAAI4C,GAAG,GAAGD,EAAE,CAACE,IAAI,CAAC,CAAC;EACnB,OAAO,CAACD,GAAG,CAACE,IAAI,EAAE;IAChBF,GAAG,GAAGD,EAAE,CAACE,IAAI,CAACN,oBAAoB,CAACK,GAAG,CAACvC,KAAK,EAAE2C,SAAS,CAAC,CAAC;EAC3D;EACA,OAAO;IAAE7C,MAAM,EAAE,MAAe;IAAED,QAAQ,EAAE,IAAAkD,oBAAa,EAACR,GAAG,CAACvC,KAAK;EAAE,CAAC;AACxE;AAEA,SAAST,uBAAuBA,CAC9Ba,IAAyB,EACzBT,IAAY,EACZC,OAAe,EACfoD,UAAmB,EACnB;EACA,IAAI,CAACC,wBAAW,IAAI,CAACD,UAAU,EAAE;IAC/B,OAAOX,iCAAiC,CAACjC,IAAI,EAAET,IAAI,EAAEC,OAAO,CAAC;EAC/D;EAEA,IAAI;IACF,MAAMsD,QAAQ,GAAGR,gCAAgC,CAACtC,IAAI,EAAET,IAAI,EAAEC,OAAO,CAAC;IAEtE,IAAI,CAAC,IAAAuD,gBAAU,EAACD,QAAQ,CAACrD,QAAQ,CAAC,EAAE;MAClC,MAAMuD,MAAM,CAACC,MAAM,CACjB,IAAIpB,KAAK,CAAC,sBAAsBtC,IAAI,aAAaC,OAAO,GAAG,CAAC,EAC5D;QAAEQ,IAAI,EAAE;MAAmB,CAC7B,CAAC;IACH;IACA,OAAO8C,QAAQ;EACjB,CAAC,CAAC,OAAOI,CAAC,EAAE;IACV,IAAI;MACF,OAAOjB,iCAAiC,CAACjC,IAAI,EAAET,IAAI,EAAEC,OAAO,CAAC;IAC/D,CAAC,CAAC,OAAO2D,EAAE,EAAE;MACX,IAAID,CAAC,CAAClD,IAAI,KAAK,kBAAkB,EAAE,MAAMkD,CAAC;MAC1C,IAAIC,EAAE,CAACnD,IAAI,KAAK,kBAAkB,EAAE,MAAMmD,EAAE;MAC5C,MAAMD,CAAC;IACT;EACF;AACF;AAEmC;EAEjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CACrBG,IAAY,EACZN,MAA0B,EAC1BH,IAAY,EACM;EACiB;IACjC,IAAI,EAAE,OAAO,IAAAI,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC/D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIsC,KAAK,CACb,aAAa7B,IAAI,6BAA6BT,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC6D,eAAe,CAACG,GAAG,CAAChE,IAAI,CAAC;IAC3B;IAYO;MACL,OAAO,OAAO,IAAAiE,oBAAe,EAC3BjE,IAAI,EACJG,MAAM,EACN,qDAAqDM,IAAI,IAAI,GAC3D,4DAA4D,GAC5D,iEAAiE,EACnE,4BAA4BA,IAAI,kCAAkC,GAChE,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBlB,IAAI,GAAG;IACnE,MAAMkE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAACnE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_debug","data","require","_path","_async","_moduleTypes","_url","_importMetaResolve","_fs","debug","buildDebug","EXACT_RE","BABEL_PLUGIN_PREFIX_RE","BABEL_PRESET_PREFIX_RE","BABEL_PLUGIN_ORG_RE","BABEL_PRESET_ORG_RE","OTHER_PLUGIN_ORG_RE","OTHER_PRESET_ORG_RE","OTHER_ORG_DEFAULT_RE","resolvePlugin","exports","resolveStandardizedName","bind","resolvePreset","loadPlugin","name","dirname","filepath","isAsync","value","requireModule","loadPreset","standardizeName","type","path","isAbsolute","isPreset","replace","resolveAlternativesHelper","standardizedName","error","code","message","oppositeType","transformName","tryRequireResolve","id","v","w","split","process","versions","node","resolve","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","tryImportMetaResolve","options","importMetaResolve","resolveStandardizedNameForRequire","it","res","next","done","resolveStandardizedNameForImport","parentUrl","pathToFileURL","join","href","fileURLToPath","resolveESM","supportsESM","resolved","existsSync","Object","assign","e","e2","LOADING_MODULES","Set","has","add","loadCodeDefault","err","delete"],"sources":["../../../src/config/files/plugins.ts"],"sourcesContent":["/**\n * This file handles all logic for converting string-based configuration references into loaded objects.\n */\n\nimport buildDebug from \"debug\";\nimport path from \"path\";\nimport type { Handler } from \"gensync\";\nimport { isAsync } from \"../../gensync-utils/async.ts\";\nimport loadCodeDefault, { supportsESM } from \"./module-types.ts\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\n\nimport { resolve as importMetaResolve } from \"../../vendor/import-meta-resolve.js\";\n\nimport { createRequire } from \"module\";\nimport { existsSync } from \"fs\";\nconst require = createRequire(import.meta.url);\n\nconst debug = buildDebug(\"babel:config:loading:files:plugins\");\n\nconst EXACT_RE = /^module:/;\nconst BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-plugin-)/;\nconst BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\\/|babel-preset-)/;\nconst BABEL_PLUGIN_ORG_RE = /^(@babel\\/)(?!plugin-|[^/]+\\/)/;\nconst BABEL_PRESET_ORG_RE = /^(@babel\\/)(?!preset-|[^/]+\\/)/;\nconst OTHER_PLUGIN_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-plugin(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_PRESET_ORG_RE =\n /^(@(?!babel\\/)[^/]+\\/)(?![^/]*babel-preset(?:-|\\/|$)|[^/]+\\/)/;\nconst OTHER_ORG_DEFAULT_RE = /^(@(?!babel$)[^/]+)$/;\n\nexport const resolvePlugin = resolveStandardizedName.bind(null, \"plugin\");\nexport const resolvePreset = resolveStandardizedName.bind(null, \"preset\");\n\nexport function* loadPlugin(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const filepath = resolvePlugin(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"plugin\", filepath);\n debug(\"Loaded plugin %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nexport function* loadPreset(\n name: string,\n dirname: string,\n): Handler<{ filepath: string; value: unknown }> {\n const filepath = resolvePreset(name, dirname, yield* isAsync());\n\n const value = yield* requireModule(\"preset\", filepath);\n\n debug(\"Loaded preset %o from %o.\", name, dirname);\n\n return { filepath, value };\n}\n\nfunction standardizeName(type: \"plugin\" | \"preset\", name: string) {\n // Let absolute and relative paths through.\n if (path.isAbsolute(name)) return name;\n\n const isPreset = type === \"preset\";\n\n return (\n name\n // foo -> babel-preset-foo\n .replace(\n isPreset ? BABEL_PRESET_PREFIX_RE : BABEL_PLUGIN_PREFIX_RE,\n `babel-${type}-`,\n )\n // @babel/es2015 -> @babel/preset-es2015\n .replace(\n isPreset ? BABEL_PRESET_ORG_RE : BABEL_PLUGIN_ORG_RE,\n `$1${type}-`,\n )\n // @foo/mypreset -> @foo/babel-preset-mypreset\n .replace(\n isPreset ? OTHER_PRESET_ORG_RE : OTHER_PLUGIN_ORG_RE,\n `$1babel-${type}-`,\n )\n // @foo -> @foo/babel-preset\n .replace(OTHER_ORG_DEFAULT_RE, `$1/babel-${type}`)\n // module:mypreset -> mypreset\n .replace(EXACT_RE, \"\")\n );\n}\n\ntype Result = { error: Error; value: null } | { error: null; value: T };\n\nfunction* resolveAlternativesHelper(\n type: \"plugin\" | \"preset\",\n name: string,\n): Iterator> {\n const standardizedName = standardizeName(type, name);\n const { error, value } = yield standardizedName;\n if (!error) return value;\n\n // @ts-expect-error code may not index error\n if (error.code !== \"MODULE_NOT_FOUND\") throw error;\n\n if (standardizedName !== name && !(yield name).error) {\n error.message += `\\n- If you want to resolve \"${name}\", use \"module:${name}\"`;\n }\n\n if (!(yield standardizeName(type, \"@babel/\" + name)).error) {\n error.message += `\\n- Did you mean \"@babel/${name}\"?`;\n }\n\n const oppositeType = type === \"preset\" ? \"plugin\" : \"preset\";\n if (!(yield standardizeName(oppositeType, name)).error) {\n error.message += `\\n- Did you accidentally pass a ${oppositeType} as a ${type}?`;\n }\n\n if (type === \"plugin\") {\n const transformName = standardizedName.replace(\"-proposal-\", \"-transform-\");\n if (transformName !== standardizedName && !(yield transformName).error) {\n error.message += `\\n- Did you mean \"${transformName}\"?`;\n }\n }\n\n error.message += `\\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;\n\n throw error;\n}\n\nfunction tryRequireResolve(\n id: string,\n dirname: string | undefined,\n): Result {\n try {\n if (dirname) {\n return { error: null, value: require.resolve(id, { paths: [dirname] }) };\n } else {\n return { error: null, value: require.resolve(id) };\n }\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction tryImportMetaResolve(\n id: Parameters[0],\n options: Parameters[1],\n): Result {\n try {\n return { error: null, value: importMetaResolve(id, options) };\n } catch (error) {\n return { error, value: null };\n }\n}\n\nfunction resolveStandardizedNameForRequire(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryRequireResolve(res.value, dirname));\n }\n return res.value;\n}\nfunction resolveStandardizedNameForImport(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n) {\n const parentUrl = pathToFileURL(\n path.join(dirname, \"./babel-virtual-resolve-base.js\"),\n ).href;\n\n const it = resolveAlternativesHelper(type, name);\n let res = it.next();\n while (!res.done) {\n res = it.next(tryImportMetaResolve(res.value, parentUrl));\n }\n return fileURLToPath(res.value);\n}\n\nfunction resolveStandardizedName(\n type: \"plugin\" | \"preset\",\n name: string,\n dirname: string,\n resolveESM: boolean,\n) {\n if (!supportsESM || !resolveESM) {\n return resolveStandardizedNameForRequire(type, name, dirname);\n }\n\n try {\n const resolved = resolveStandardizedNameForImport(type, name, dirname);\n // import-meta-resolve 4.0 does not throw if the module is not found.\n if (!existsSync(resolved)) {\n throw Object.assign(\n new Error(`Could not resolve \"${name}\" in file ${dirname}.`),\n { type: \"MODULE_NOT_FOUND\" },\n );\n }\n return resolved;\n } catch (e) {\n try {\n return resolveStandardizedNameForRequire(type, name, dirname);\n } catch (e2) {\n if (e.type === \"MODULE_NOT_FOUND\") throw e;\n if (e2.type === \"MODULE_NOT_FOUND\") throw e2;\n throw e;\n }\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // eslint-disable-next-line no-var\n var LOADING_MODULES = new Set();\n}\nfunction* requireModule(type: string, name: string): Handler {\n if (!process.env.BABEL_8_BREAKING) {\n if (!(yield* isAsync()) && LOADING_MODULES.has(name)) {\n throw new Error(\n `Reentrant ${type} detected trying to load \"${name}\". This module is not ignored ` +\n \"and is trying to load itself while compiling itself, leading to a dependency cycle. \" +\n 'We recommend adding it to your \"ignore\" list in your babelrc, or to a .babelignore.',\n );\n }\n }\n\n try {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.add(name);\n }\n\n if (process.env.BABEL_8_BREAKING) {\n return yield* loadCodeDefault(\n name,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously.\",\n );\n } else {\n return yield* loadCodeDefault(\n name,\n `You appear to be using a native ECMAScript module ${type}, ` +\n \"which is only supported when running Babel asynchronously.\",\n // For backward compatibility, we need to support malformed presets\n // defined as separate named exports rather than a single default\n // export.\n // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js\n // @ts-ignore(Babel 7 vs Babel 8) This param has been removed\n true,\n );\n }\n } catch (err) {\n err.message = `[BABEL]: ${err.message} (While processing: ${name})`;\n throw err;\n } finally {\n if (!process.env.BABEL_8_BREAKING) {\n LOADING_MODULES.delete(name);\n }\n }\n}\n"],"mappings":";;;;;;;;AAIA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAG,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,SAAAI,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,kBAAA,GAAAL,OAAA;AAGA,SAAAM,IAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,GAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,MAAMQ,KAAK,GAAGC,OAASA,CAAC,CAAC,oCAAoC,CAAC;AAE9D,MAAMC,QAAQ,GAAG,UAAU;AAC3B,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,sBAAsB,GAAG,sCAAsC;AACrE,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC,mBAAmB,GAAG,gCAAgC;AAC5D,MAAMC,mBAAmB,GACvB,+DAA+D;AACjE,MAAMC,mBAAmB,GACvB,+DAA+D;AACjE,MAAMC,oBAAoB,GAAG,sBAAsB;AAE5C,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAGE,uBAAuB,CAACC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AAClE,MAAMC,aAAa,GAAAH,OAAA,CAAAG,aAAA,GAAGF,uBAAuB,CAACC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AAElE,UAAUE,UAAUA,CACzBC,IAAY,EACZC,OAAe,EACgC;EAC/C,MAAMC,QAAQ,GAAGR,aAAa,CAACM,IAAI,EAAEC,OAAO,EAAE,OAAO,IAAAE,cAAO,EAAC,CAAC,CAAC;EAE/D,MAAMC,KAAK,GAAG,OAAOC,aAAa,CAAC,QAAQ,EAAEH,QAAQ,CAAC;EACtDlB,KAAK,CAAC,2BAA2B,EAAEgB,IAAI,EAAEC,OAAO,CAAC;EAEjD,OAAO;IAAEC,QAAQ;IAAEE;EAAM,CAAC;AAC5B;AAEO,UAAUE,UAAUA,CACzBN,IAAY,EACZC,OAAe,EACgC;EAC/C,MAAMC,QAAQ,GAAGJ,aAAa,CAACE,IAAI,EAAEC,OAAO,EAAE,OAAO,IAAAE,cAAO,EAAC,CAAC,CAAC;EAE/D,MAAMC,KAAK,GAAG,OAAOC,aAAa,CAAC,QAAQ,EAAEH,QAAQ,CAAC;EAEtDlB,KAAK,CAAC,2BAA2B,EAAEgB,IAAI,EAAEC,OAAO,CAAC;EAEjD,OAAO;IAAEC,QAAQ;IAAEE;EAAM,CAAC;AAC5B;AAEA,SAASG,eAAeA,CAACC,IAAyB,EAAER,IAAY,EAAE;EAEhE,IAAIS,MAAGA,CAAC,CAACC,UAAU,CAACV,IAAI,CAAC,EAAE,OAAOA,IAAI;EAEtC,MAAMW,QAAQ,GAAGH,IAAI,KAAK,QAAQ;EAElC,OACER,IAAI,CAEDY,OAAO,CACND,QAAQ,GAAGvB,sBAAsB,GAAGD,sBAAsB,EAC1D,SAASqB,IAAI,GACf,CAAC,CAEAI,OAAO,CACND,QAAQ,GAAGrB,mBAAmB,GAAGD,mBAAmB,EACpD,KAAKmB,IAAI,GACX,CAAC,CAEAI,OAAO,CACND,QAAQ,GAAGnB,mBAAmB,GAAGD,mBAAmB,EACpD,WAAWiB,IAAI,GACjB,CAAC,CAEAI,OAAO,CAACnB,oBAAoB,EAAE,YAAYe,IAAI,EAAE,CAAC,CAEjDI,OAAO,CAAC1B,QAAQ,EAAE,EAAE,CAAC;AAE5B;AAIA,UAAU2B,yBAAyBA,CACjCL,IAAyB,EACzBR,IAAY,EAC8B;EAC1C,MAAMc,gBAAgB,GAAGP,eAAe,CAACC,IAAI,EAAER,IAAI,CAAC;EACpD,MAAM;IAAEe,KAAK;IAAEX;EAAM,CAAC,GAAG,MAAMU,gBAAgB;EAC/C,IAAI,CAACC,KAAK,EAAE,OAAOX,KAAK;EAGxB,IAAIW,KAAK,CAACC,IAAI,KAAK,kBAAkB,EAAE,MAAMD,KAAK;EAElD,IAAID,gBAAgB,KAAKd,IAAI,IAAI,CAAC,CAAC,MAAMA,IAAI,EAAEe,KAAK,EAAE;IACpDA,KAAK,CAACE,OAAO,IAAI,+BAA+BjB,IAAI,kBAAkBA,IAAI,GAAG;EAC/E;EAEA,IAAI,CAAC,CAAC,MAAMO,eAAe,CAACC,IAAI,EAAE,SAAS,GAAGR,IAAI,CAAC,EAAEe,KAAK,EAAE;IAC1DA,KAAK,CAACE,OAAO,IAAI,4BAA4BjB,IAAI,IAAI;EACvD;EAEA,MAAMkB,YAAY,GAAGV,IAAI,KAAK,QAAQ,GAAG,QAAQ,GAAG,QAAQ;EAC5D,IAAI,CAAC,CAAC,MAAMD,eAAe,CAACW,YAAY,EAAElB,IAAI,CAAC,EAAEe,KAAK,EAAE;IACtDA,KAAK,CAACE,OAAO,IAAI,mCAAmCC,YAAY,SAASV,IAAI,GAAG;EAClF;EAEA,IAAIA,IAAI,KAAK,QAAQ,EAAE;IACrB,MAAMW,aAAa,GAAGL,gBAAgB,CAACF,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC;IAC3E,IAAIO,aAAa,KAAKL,gBAAgB,IAAI,CAAC,CAAC,MAAMK,aAAa,EAAEJ,KAAK,EAAE;MACtEA,KAAK,CAACE,OAAO,IAAI,qBAAqBE,aAAa,IAAI;IACzD;EACF;EAEAJ,KAAK,CAACE,OAAO,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;EAEC,MAAMF,KAAK;AACb;AAEA,SAASK,iBAAiBA,CACxBC,EAAU,EACVpB,OAA2B,EACX;EAChB,IAAI;IACF,IAAIA,OAAO,EAAE;MACX,OAAO;QAAEc,KAAK,EAAE,IAAI;QAAEX,KAAK,EAAE,GAAAkB,CAAA,EAAAC,CAAA,MAAAD,CAAA,GAAAA,CAAA,CAAAE,KAAA,OAAAD,CAAA,GAAAA,CAAA,CAAAC,KAAA,QAAAF,CAAA,OAAAC,CAAA,OAAAD,CAAA,OAAAC,CAAA,QAAAD,CAAA,QAAAC,CAAA,MAAAE,OAAA,CAAAC,QAAA,CAAAC,IAAA,WAAAlD,OAAA,CAAAmD,OAAA,IAAAC,CAAA;UAAAC,KAAA,GAAAC,CAAA;QAAA,GAAAC,CAAA,GAAAvD,OAAA;UAAA,IAAAwD,CAAA,GAAAD,CAAA,CAAAE,SAAA,CAAAL,CAAA,EAAAG,CAAA,CAAAG,gBAAA,CAAAJ,CAAA,EAAAK,MAAA,CAAAL,CAAA;UAAA,IAAAE,CAAA,SAAAA,CAAA;UAAAA,CAAA,OAAAI,KAAA,2BAAAR,CAAA;UAAAI,CAAA,CAAAjB,IAAA;UAAA,MAAAiB,CAAA;QAAA,GAAgBZ,EAAE,EAAE;UAAES,KAAK,EAAE,CAAC7B,OAAO;QAAE,CAAC;MAAE,CAAC;IAC1E,CAAC,MAAM;MACL,OAAO;QAAEc,KAAK,EAAE,IAAI;QAAEX,KAAK,EAAE3B,OAAO,CAACmD,OAAO,CAACP,EAAE;MAAE,CAAC;IACpD;EACF,CAAC,CAAC,OAAON,KAAK,EAAE;IACd,OAAO;MAAEA,KAAK;MAAEX,KAAK,EAAE;IAAK,CAAC;EAC/B;AACF;AAEA,SAASkC,oBAAoBA,CAC3BjB,EAA2C,EAC3CkB,OAAgD,EAChC;EAChB,IAAI;IACF,OAAO;MAAExB,KAAK,EAAE,IAAI;MAAEX,KAAK,EAAE,IAAAoC,0BAAiB,EAACnB,EAAE,EAAEkB,OAAO;IAAE,CAAC;EAC/D,CAAC,CAAC,OAAOxB,KAAK,EAAE;IACd,OAAO;MAAEA,KAAK;MAAEX,KAAK,EAAE;IAAK,CAAC;EAC/B;AACF;AAEA,SAASqC,iCAAiCA,CACxCjC,IAAyB,EACzBR,IAAY,EACZC,OAAe,EACf;EACA,MAAMyC,EAAE,GAAG7B,yBAAyB,CAACL,IAAI,EAAER,IAAI,CAAC;EAChD,IAAI2C,GAAG,GAAGD,EAAE,CAACE,IAAI,CAAC,CAAC;EACnB,OAAO,CAACD,GAAG,CAACE,IAAI,EAAE;IAChBF,GAAG,GAAGD,EAAE,CAACE,IAAI,CAACxB,iBAAiB,CAACuB,GAAG,CAACvC,KAAK,EAAEH,OAAO,CAAC,CAAC;EACtD;EACA,OAAO0C,GAAG,CAACvC,KAAK;AAClB;AACA,SAAS0C,gCAAgCA,CACvCtC,IAAyB,EACzBR,IAAY,EACZC,OAAe,EACf;EACA,MAAM8C,SAAS,GAAG,IAAAC,oBAAa,EAC7BvC,MAAGA,CAAC,CAACwC,IAAI,CAAChD,OAAO,EAAE,iCAAiC,CACtD,CAAC,CAACiD,IAAI;EAEN,MAAMR,EAAE,GAAG7B,yBAAyB,CAACL,IAAI,EAAER,IAAI,CAAC;EAChD,IAAI2C,GAAG,GAAGD,EAAE,CAACE,IAAI,CAAC,CAAC;EACnB,OAAO,CAACD,GAAG,CAACE,IAAI,EAAE;IAChBF,GAAG,GAAGD,EAAE,CAACE,IAAI,CAACN,oBAAoB,CAACK,GAAG,CAACvC,KAAK,EAAE2C,SAAS,CAAC,CAAC;EAC3D;EACA,OAAO,IAAAI,oBAAa,EAACR,GAAG,CAACvC,KAAK,CAAC;AACjC;AAEA,SAASR,uBAAuBA,CAC9BY,IAAyB,EACzBR,IAAY,EACZC,OAAe,EACfmD,UAAmB,EACnB;EACA,IAAI,CAACC,wBAAW,IAAI,CAACD,UAAU,EAAE;IAC/B,OAAOX,iCAAiC,CAACjC,IAAI,EAAER,IAAI,EAAEC,OAAO,CAAC;EAC/D;EAEA,IAAI;IACF,MAAMqD,QAAQ,GAAGR,gCAAgC,CAACtC,IAAI,EAAER,IAAI,EAAEC,OAAO,CAAC;IAEtE,IAAI,CAAC,IAAAsD,gBAAU,EAACD,QAAQ,CAAC,EAAE;MACzB,MAAME,MAAM,CAACC,MAAM,CACjB,IAAIpB,KAAK,CAAC,sBAAsBrC,IAAI,aAAaC,OAAO,GAAG,CAAC,EAC5D;QAAEO,IAAI,EAAE;MAAmB,CAC7B,CAAC;IACH;IACA,OAAO8C,QAAQ;EACjB,CAAC,CAAC,OAAOI,CAAC,EAAE;IACV,IAAI;MACF,OAAOjB,iCAAiC,CAACjC,IAAI,EAAER,IAAI,EAAEC,OAAO,CAAC;IAC/D,CAAC,CAAC,OAAO0D,EAAE,EAAE;MACX,IAAID,CAAC,CAAClD,IAAI,KAAK,kBAAkB,EAAE,MAAMkD,CAAC;MAC1C,IAAIC,EAAE,CAACnD,IAAI,KAAK,kBAAkB,EAAE,MAAMmD,EAAE;MAC5C,MAAMD,CAAC;IACT;EACF;AACF;AAEmC;EAEjC,IAAIE,eAAe,GAAG,IAAIC,GAAG,CAAC,CAAC;AACjC;AACA,UAAUxD,aAAaA,CAACG,IAAY,EAAER,IAAY,EAAoB;EACjC;IACjC,IAAI,EAAE,OAAO,IAAAG,cAAO,EAAC,CAAC,CAAC,IAAIyD,eAAe,CAACE,GAAG,CAAC9D,IAAI,CAAC,EAAE;MACpD,MAAM,IAAIqC,KAAK,CACb,aAAa7B,IAAI,6BAA6BR,IAAI,gCAAgC,GAChF,sFAAsF,GACtF,qFACJ,CAAC;IACH;EACF;EAEA,IAAI;IACiC;MACjC4D,eAAe,CAACG,GAAG,CAAC/D,IAAI,CAAC;IAC3B;IAQO;MACL,OAAO,OAAO,IAAAgE,oBAAe,EAC3BhE,IAAI,EACJ,qDAAqDQ,IAAI,IAAI,GAC3D,4DAA4D,EAM9D,IACF,CAAC;IACH;EACF,CAAC,CAAC,OAAOyD,GAAG,EAAE;IACZA,GAAG,CAAChD,OAAO,GAAG,YAAYgD,GAAG,CAAChD,OAAO,uBAAuBjB,IAAI,GAAG;IACnE,MAAMiE,GAAG;EACX,CAAC,SAAS;IAC2B;MACjCL,eAAe,CAACM,MAAM,CAAClE,IAAI,CAAC;IAC9B;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/files/types.js b/node_modules/@babel/core/lib/config/files/types.js index 8fd1422aa..c03b5a6fd 100644 --- a/node_modules/@babel/core/lib/config/files/types.js +++ b/node_modules/@babel/core/lib/config/files/types.js @@ -1,5 +1,3 @@ -"use strict"; - 0 && 0; //# sourceMappingURL=types.js.map diff --git a/node_modules/@babel/core/lib/config/files/utils.js.map b/node_modules/@babel/core/lib/config/files/utils.js.map index f3be2259b..d4969030c 100644 --- a/node_modules/@babel/core/lib/config/files/utils.js.map +++ b/node_modules/@babel/core/lib/config/files/utils.js.map @@ -1 +1 @@ -{"version":3,"names":["_caching","require","fs","_fs2","data","makeStaticFileCache","fn","makeStrongCache","filepath","cache","cached","invalidate","fileMtime","readFile","nodeFs","existsSync","statSync","mtime","e","code"],"sources":["../../../src/config/files/utils.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport { makeStrongCache } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport * as fs from \"../../gensync-utils/fs.ts\";\nimport nodeFs from \"node:fs\";\n\nexport function makeStaticFileCache(\n fn: (filepath: string, contents: string) => T,\n) {\n return makeStrongCache(function* (\n filepath: string,\n cache: CacheConfigurator,\n ): Handler {\n const cached = cache.invalidate(() => fileMtime(filepath));\n\n if (cached === null) {\n return null;\n }\n\n return fn(filepath, yield* fs.readFile(filepath, \"utf8\"));\n });\n}\n\nfunction fileMtime(filepath: string): number | null {\n if (!nodeFs.existsSync(filepath)) return null;\n\n try {\n return +nodeFs.statSync(filepath).mtime;\n } catch (e) {\n if (e.code !== \"ENOENT\" && e.code !== \"ENOTDIR\") throw e;\n }\n\n return null;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,EAAA,GAAAD,OAAA;AACA,SAAAE,KAAA;EAAA,MAAAC,IAAA,GAAAH,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASC,mBAAmBA,CACjCC,EAA6C,EAC7C;EACA,OAAO,IAAAC,wBAAe,EAAC,WACrBC,QAAgB,EAChBC,KAA8B,EACX;IACnB,MAAMC,MAAM,GAAGD,KAAK,CAACE,UAAU,CAAC,MAAMC,SAAS,CAACJ,QAAQ,CAAC,CAAC;IAE1D,IAAIE,MAAM,KAAK,IAAI,EAAE;MACnB,OAAO,IAAI;IACb;IAEA,OAAOJ,EAAE,CAACE,QAAQ,EAAE,OAAON,EAAE,CAACW,QAAQ,CAACL,QAAQ,EAAE,MAAM,CAAC,CAAC;EAC3D,CAAC,CAAC;AACJ;AAEA,SAASI,SAASA,CAACJ,QAAgB,EAAiB;EAClD,IAAI,CAACM,KAAKA,CAAC,CAACC,UAAU,CAACP,QAAQ,CAAC,EAAE,OAAO,IAAI;EAE7C,IAAI;IACF,OAAO,CAACM,KAAKA,CAAC,CAACE,QAAQ,CAACR,QAAQ,CAAC,CAACS,KAAK;EACzC,CAAC,CAAC,OAAOC,CAAC,EAAE;IACV,IAAIA,CAAC,CAACC,IAAI,KAAK,QAAQ,IAAID,CAAC,CAACC,IAAI,KAAK,SAAS,EAAE,MAAMD,CAAC;EAC1D;EAEA,OAAO,IAAI;AACb;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_caching","require","fs","_fs2","data","makeStaticFileCache","fn","makeStrongCache","filepath","cache","cached","invalidate","fileMtime","readFile","nodeFs","existsSync","statSync","mtime","e","code"],"sources":["../../../src/config/files/utils.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\n\nimport { makeStrongCache } from \"../caching.ts\";\nimport type { CacheConfigurator } from \"../caching.ts\";\nimport * as fs from \"../../gensync-utils/fs.ts\";\nimport nodeFs from \"fs\";\n\nexport function makeStaticFileCache(\n fn: (filepath: string, contents: string) => T,\n) {\n return makeStrongCache(function* (\n filepath: string,\n cache: CacheConfigurator,\n ): Handler {\n const cached = cache.invalidate(() => fileMtime(filepath));\n\n if (cached === null) {\n return null;\n }\n\n return fn(filepath, yield* fs.readFile(filepath, \"utf8\"));\n });\n}\n\nfunction fileMtime(filepath: string): number | null {\n if (!nodeFs.existsSync(filepath)) return null;\n\n try {\n return +nodeFs.statSync(filepath).mtime;\n } catch (e) {\n if (e.code !== \"ENOENT\" && e.code !== \"ENOTDIR\") throw e;\n }\n\n return null;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,EAAA,GAAAD,OAAA;AACA,SAAAE,KAAA;EAAA,MAAAC,IAAA,GAAAH,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,SAASC,mBAAmBA,CACjCC,EAA6C,EAC7C;EACA,OAAO,IAAAC,wBAAe,EAAC,WACrBC,QAAgB,EAChBC,KAA8B,EACX;IACnB,MAAMC,MAAM,GAAGD,KAAK,CAACE,UAAU,CAAC,MAAMC,SAAS,CAACJ,QAAQ,CAAC,CAAC;IAE1D,IAAIE,MAAM,KAAK,IAAI,EAAE;MACnB,OAAO,IAAI;IACb;IAEA,OAAOJ,EAAE,CAACE,QAAQ,EAAE,OAAON,EAAE,CAACW,QAAQ,CAACL,QAAQ,EAAE,MAAM,CAAC,CAAC;EAC3D,CAAC,CAAC;AACJ;AAEA,SAASI,SAASA,CAACJ,QAAgB,EAAiB;EAClD,IAAI,CAACM,KAAKA,CAAC,CAACC,UAAU,CAACP,QAAQ,CAAC,EAAE,OAAO,IAAI;EAE7C,IAAI;IACF,OAAO,CAACM,KAAKA,CAAC,CAACE,QAAQ,CAACR,QAAQ,CAAC,CAACS,KAAK;EACzC,CAAC,CAAC,OAAOC,CAAC,EAAE;IACV,IAAIA,CAAC,CAACC,IAAI,KAAK,QAAQ,IAAID,CAAC,CAACC,IAAI,KAAK,SAAS,EAAE,MAAMD,CAAC;EAC1D;EAEA,OAAO,IAAI;AACb;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/full.js b/node_modules/@babel/core/lib/config/full.js index c2477ce73..6b8c2959d 100644 --- a/node_modules/@babel/core/lib/config/full.js +++ b/node_modules/@babel/core/lib/config/full.js @@ -235,9 +235,9 @@ const instantiatePlugin = (0, _caching.makeWeakCache)(function* ({ const inherits = yield* (0, _async.forwardAsync)(loadPluginDescriptor, run => { return cache.invalidate(data => run(inheritsDescriptor, data)); }); - plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre); - plugin.post = chainMaybeAsync(inherits.post, plugin.post); - plugin.manipulateOptions = chainMaybeAsync(inherits.manipulateOptions, plugin.manipulateOptions); + plugin.pre = chain(inherits.pre, plugin.pre); + plugin.post = chain(inherits.post, plugin.post); + plugin.manipulateOptions = chain(inherits.manipulateOptions, plugin.manipulateOptions); plugin.visitor = _traverse().default.visitors.merge([inherits.visitor || {}, plugin.visitor || {}]); if (inherits.externalDependencies.length > 0) { if (externalDependencies.length === 0) { @@ -296,15 +296,13 @@ function* loadPresetDescriptor(descriptor, context) { externalDependencies: preset.externalDependencies }; } -function chainMaybeAsync(a, b) { - if (!a) return b; - if (!b) return a; +function chain(a, b) { + const fns = [a, b].filter(Boolean); + if (fns.length <= 1) return fns[0]; return function (...args) { - const res = a.apply(this, args); - if (res && typeof res.then === "function") { - return res.then(() => b.apply(this, args)); + for (const fn of fns) { + fn.apply(this, args); } - return b.apply(this, args); }; } 0 && 0; diff --git a/node_modules/@babel/core/lib/config/full.js.map b/node_modules/@babel/core/lib/config/full.js.map index 60419f0c1..63b374165 100644 --- a/node_modules/@babel/core/lib/config/full.js.map +++ b/node_modules/@babel/core/lib/config/full.js.map @@ -1 +1 @@ -{"version":3,"names":["_gensync","data","require","_async","_util","context","_plugin","_item","_configChain","_deepArray","_traverse","_caching","_options","_plugins","_configApi","_partial","_configError","_default","exports","default","gensync","loadFullConfig","inputOpts","_opts$assumptions","result","loadPrivatePartialConfig","options","fileHandling","optionDefaults","plugins","presets","Error","presetContext","Object","assign","targets","toDescriptor","item","desc","getItemDescriptor","presetsDescriptors","map","initialPluginsDescriptors","pluginDescriptorsByPass","passes","externalDependencies","ignored","enhanceError","recursePresetDescriptors","rawPresets","pluginDescriptorsPass","i","length","descriptor","preset","loadPresetDescriptor","e","code","checkNoUnwrappedItemOptionPairs","push","ownPass","chain","pass","unshift","splice","o","filter","p","forEach","opts","mergeOptions","pluginContext","assumptions","loadPluginDescriptors","descs","plugin","loadPluginDescriptor","slice","passPerPreset","freezeDeepArray","fn","arg1","arg2","test","message","_context$filename","filename","makeDescriptorLoader","apiFactory","makeWeakCache","value","dirname","alias","cache","factory","maybeAsync","api","JSON","stringify","isThenable","configured","mode","error","pluginDescriptorLoader","makePluginAPI","presetDescriptorLoader","makePresetAPI","instantiatePlugin","pluginObj","validatePluginObject","visitor","traverse","explode","inherits","inheritsDescriptor","name","undefined","forwardAsync","run","invalidate","pre","chainMaybeAsync","post","manipulateOptions","visitors","merge","Plugin","needsFilename","val","validateIfOptionNeedsFilename","include","exclude","formattedPresetName","ConfigError","join","validatePreset","_options$overrides","overrides","overrideOptions","instantiatePreset","makeWeakCacheSync","validate","buildPresetChain","a","b","args","res","apply","then"],"sources":["../../src/config/full.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\nimport {\n forwardAsync,\n maybeAsync,\n isThenable,\n} from \"../gensync-utils/async.ts\";\n\nimport { mergeOptions } from \"./util.ts\";\nimport * as context from \"../index.ts\";\nimport Plugin from \"./plugin.ts\";\nimport { getItemDescriptor } from \"./item.ts\";\nimport { buildPresetChain } from \"./config-chain.ts\";\nimport { finalize as freezeDeepArray } from \"./helpers/deep-array.ts\";\nimport type { DeepArray, ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\nimport type {\n ConfigContext,\n ConfigChain,\n PresetInstance,\n} from \"./config-chain.ts\";\nimport type { UnloadedDescriptor } from \"./config-descriptors.ts\";\nimport traverse from \"@babel/traverse\";\nimport { makeWeakCache, makeWeakCacheSync } from \"./caching.ts\";\nimport type { CacheConfigurator } from \"./caching.ts\";\nimport {\n validate,\n checkNoUnwrappedItemOptionPairs,\n} from \"./validation/options.ts\";\nimport type { InputOptions, PluginItem } from \"./validation/options.ts\";\nimport { validatePluginObject } from \"./validation/plugins.ts\";\nimport { makePluginAPI, makePresetAPI } from \"./helpers/config-api.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nimport loadPrivatePartialConfig from \"./partial.ts\";\nimport type { ValidatedOptions } from \"./validation/options.ts\";\n\nimport type * as Context from \"./cache-contexts.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\n\ntype LoadedDescriptor = {\n value: any;\n options: object;\n dirname: string;\n alias: string;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type { InputOptions } from \"./validation/options.ts\";\n\nexport type ResolvedConfig = {\n options: any;\n passes: PluginPasses;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type { Plugin };\nexport type PluginPassList = Array;\nexport type PluginPasses = Array;\n\nexport default gensync(function* loadFullConfig(\n inputOpts: InputOptions,\n): Handler {\n const result = yield* loadPrivatePartialConfig(inputOpts);\n if (!result) {\n return null;\n }\n const { options, context, fileHandling } = result;\n\n if (fileHandling === \"ignored\") {\n return null;\n }\n\n const optionDefaults: ValidatedOptions = {};\n\n const { plugins, presets } = options;\n\n if (!plugins || !presets) {\n throw new Error(\"Assertion failure - plugins and presets exist\");\n }\n\n const presetContext: Context.FullPreset = {\n ...context,\n targets: options.targets,\n };\n\n const toDescriptor = (item: PluginItem) => {\n const desc = getItemDescriptor(item);\n if (!desc) {\n throw new Error(\"Assertion failure - must be config item\");\n }\n\n return desc;\n };\n\n const presetsDescriptors = presets.map(toDescriptor);\n const initialPluginsDescriptors = plugins.map(toDescriptor);\n const pluginDescriptorsByPass: Array>> = [\n [],\n ];\n const passes: Array> = [];\n\n const externalDependencies: DeepArray = [];\n\n const ignored = yield* enhanceError(\n context,\n function* recursePresetDescriptors(\n rawPresets: Array>,\n pluginDescriptorsPass: Array>,\n ): Handler {\n const presets: Array<{\n preset: ConfigChain | null;\n pass: Array>;\n }> = [];\n\n for (let i = 0; i < rawPresets.length; i++) {\n const descriptor = rawPresets[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var preset = yield* loadPresetDescriptor(descriptor, presetContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_OPTION\") {\n checkNoUnwrappedItemOptionPairs(rawPresets, i, \"preset\", e);\n }\n throw e;\n }\n\n externalDependencies.push(preset.externalDependencies);\n\n // Presets normally run in reverse order, but if they\n // have their own pass they run after the presets\n // in the previous pass.\n if (descriptor.ownPass) {\n presets.push({ preset: preset.chain, pass: [] });\n } else {\n presets.unshift({\n preset: preset.chain,\n pass: pluginDescriptorsPass,\n });\n }\n }\n }\n\n // resolve presets\n if (presets.length > 0) {\n // The passes are created in the same order as the preset list, but are inserted before any\n // existing additional passes.\n pluginDescriptorsByPass.splice(\n 1,\n 0,\n ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass),\n );\n\n for (const { preset, pass } of presets) {\n if (!preset) return true;\n\n pass.push(...preset.plugins);\n\n const ignored = yield* recursePresetDescriptors(preset.presets, pass);\n if (ignored) return true;\n\n preset.options.forEach(opts => {\n mergeOptions(optionDefaults, opts);\n });\n }\n }\n },\n )(presetsDescriptors, pluginDescriptorsByPass[0]);\n\n if (ignored) return null;\n\n const opts: ValidatedOptions = optionDefaults;\n mergeOptions(opts, options);\n\n const pluginContext: Context.FullPlugin = {\n ...presetContext,\n assumptions: opts.assumptions ?? {},\n };\n\n yield* enhanceError(context, function* loadPluginDescriptors() {\n pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);\n\n for (const descs of pluginDescriptorsByPass) {\n const pass: Plugin[] = [];\n passes.push(pass);\n\n for (let i = 0; i < descs.length; i++) {\n const descriptor = descs[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var plugin = yield* loadPluginDescriptor(descriptor, pluginContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_PLUGIN_PROPERTY\") {\n // print special message for `plugins: [\"@babel/foo\", { foo: \"option\" }]`\n checkNoUnwrappedItemOptionPairs(descs, i, \"plugin\", e);\n }\n throw e;\n }\n pass.push(plugin);\n\n externalDependencies.push(plugin.externalDependencies);\n }\n }\n }\n })();\n\n opts.plugins = passes[0];\n opts.presets = passes\n .slice(1)\n .filter(plugins => plugins.length > 0)\n .map(plugins => ({ plugins }));\n opts.passPerPreset = opts.presets.length > 0;\n\n return {\n options: opts,\n passes: passes,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n});\n\nfunction enhanceError(context: ConfigContext, fn: T): T {\n return function* (arg1: unknown, arg2: unknown) {\n try {\n return yield* fn(arg1, arg2);\n } catch (e) {\n // There are a few case where thrown errors will try to annotate themselves multiple times, so\n // to keep things simple we just bail out if re-wrapping the message.\n if (!/^\\[BABEL\\]/.test(e.message)) {\n e.message = `[BABEL] ${context.filename ?? \"unknown file\"}: ${\n e.message\n }`;\n }\n\n throw e;\n }\n } as any;\n}\n\n/**\n * Load a generic plugin/preset from the given descriptor loaded from the config object.\n */\nconst makeDescriptorLoader = (\n apiFactory: (\n cache: CacheConfigurator,\n externalDependencies: Array,\n ) => API,\n) =>\n makeWeakCache(function* (\n { value, options, dirname, alias }: UnloadedDescriptor,\n cache: CacheConfigurator,\n ): Handler {\n // Disabled presets should already have been filtered out\n if (options === false) throw new Error(\"Assertion failure\");\n\n options = options || {};\n\n const externalDependencies: Array = [];\n\n let item: unknown = value;\n if (typeof value === \"function\") {\n const factory = maybeAsync(\n value as (api: API, options: object, dirname: string) => unknown,\n `You appear to be using an async plugin/preset, but Babel has been called synchronously`,\n );\n\n const api = {\n ...context,\n ...apiFactory(cache, externalDependencies),\n };\n try {\n item = yield* factory(api, options, dirname);\n } catch (e) {\n if (alias) {\n e.message += ` (While processing: ${JSON.stringify(alias)})`;\n }\n throw e;\n }\n }\n\n if (!item || typeof item !== \"object\") {\n throw new Error(\"Plugin/Preset did not return an object.\");\n }\n\n if (isThenable(item)) {\n // if we want to support async plugins\n yield* [];\n\n throw new Error(\n `You appear to be using a promise as a plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, ` +\n `you may need to upgrade your @babel/core version. ` +\n `As an alternative, you can prefix the promise with \"await\". ` +\n `(While processing: ${JSON.stringify(alias)})`,\n );\n }\n\n if (\n externalDependencies.length > 0 &&\n (!cache.configured() || cache.mode() === \"forever\")\n ) {\n let error =\n `A plugin/preset has external untracked dependencies ` +\n `(${externalDependencies[0]}), but the cache `;\n if (!cache.configured()) {\n error += `has not been configured to be invalidated when the external dependencies change. `;\n } else {\n error += ` has been configured to never be invalidated. `;\n }\n error +=\n `Plugins/presets should configure their cache to be invalidated when the external ` +\n `dependencies change, for example using \\`api.cache.invalidate(() => ` +\n `statSync(filepath).mtimeMs)\\` or \\`api.cache.never()\\`\\n` +\n `(While processing: ${JSON.stringify(alias)})`;\n\n throw new Error(error);\n }\n\n return {\n value: item,\n options,\n dirname,\n alias,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n });\n\nconst pluginDescriptorLoader = makeDescriptorLoader<\n Context.SimplePlugin,\n PluginAPI\n>(makePluginAPI);\nconst presetDescriptorLoader = makeDescriptorLoader<\n Context.SimplePreset,\n PresetAPI\n>(makePresetAPI);\n\nconst instantiatePlugin = makeWeakCache(function* (\n { value, options, dirname, alias, externalDependencies }: LoadedDescriptor,\n cache: CacheConfigurator,\n): Handler {\n const pluginObj = validatePluginObject(value);\n\n const plugin = {\n ...pluginObj,\n };\n if (plugin.visitor) {\n plugin.visitor = traverse.explode({\n ...plugin.visitor,\n });\n }\n\n if (plugin.inherits) {\n const inheritsDescriptor: UnloadedDescriptor = {\n name: undefined,\n alias: `${alias}$inherits`,\n value: plugin.inherits,\n options,\n dirname,\n };\n\n const inherits = yield* forwardAsync(loadPluginDescriptor, run => {\n // If the inherited plugin changes, reinstantiate this plugin.\n return cache.invalidate(data => run(inheritsDescriptor, data));\n });\n\n plugin.pre = chainMaybeAsync(inherits.pre, plugin.pre);\n plugin.post = chainMaybeAsync(inherits.post, plugin.post);\n plugin.manipulateOptions = chainMaybeAsync(\n inherits.manipulateOptions,\n plugin.manipulateOptions,\n );\n plugin.visitor = traverse.visitors.merge([\n inherits.visitor || {},\n plugin.visitor || {},\n ]);\n\n if (inherits.externalDependencies.length > 0) {\n if (externalDependencies.length === 0) {\n externalDependencies = inherits.externalDependencies;\n } else {\n externalDependencies = freezeDeepArray([\n externalDependencies,\n inherits.externalDependencies,\n ]);\n }\n }\n }\n\n return new Plugin(plugin, options, alias, externalDependencies);\n});\n\n/**\n * Instantiate a plugin for the given descriptor, returning the plugin/options pair.\n */\nfunction* loadPluginDescriptor(\n descriptor: UnloadedDescriptor,\n context: Context.SimplePlugin,\n): Handler {\n if (descriptor.value instanceof Plugin) {\n if (descriptor.options) {\n throw new Error(\n \"Passed options to an existing Plugin instance will not work.\",\n );\n }\n\n return descriptor.value;\n }\n\n return yield* instantiatePlugin(\n yield* pluginDescriptorLoader(descriptor, context),\n context,\n );\n}\n\nconst needsFilename = (val: unknown) => val && typeof val !== \"function\";\n\nconst validateIfOptionNeedsFilename = (\n options: ValidatedOptions,\n descriptor: UnloadedDescriptor,\n): void => {\n if (\n needsFilename(options.test) ||\n needsFilename(options.include) ||\n needsFilename(options.exclude)\n ) {\n const formattedPresetName = descriptor.name\n ? `\"${descriptor.name}\"`\n : \"/* your preset */\";\n throw new ConfigError(\n [\n `Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`,\n `\\`\\`\\``,\n `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`,\n `\\`\\`\\``,\n `See https://babeljs.io/docs/en/options#filename for more information.`,\n ].join(\"\\n\"),\n );\n }\n};\n\nconst validatePreset = (\n preset: PresetInstance,\n context: ConfigContext,\n descriptor: UnloadedDescriptor,\n): void => {\n if (!context.filename) {\n const { options } = preset;\n validateIfOptionNeedsFilename(options, descriptor);\n options.overrides?.forEach(overrideOptions =>\n validateIfOptionNeedsFilename(overrideOptions, descriptor),\n );\n }\n};\n\nconst instantiatePreset = makeWeakCacheSync(\n ({\n value,\n dirname,\n alias,\n externalDependencies,\n }: LoadedDescriptor): PresetInstance => {\n return {\n options: validate(\"preset\", value),\n alias,\n dirname,\n externalDependencies,\n };\n },\n);\n\n/**\n * Generate a config object that will act as the root of a new nested config.\n */\nfunction* loadPresetDescriptor(\n descriptor: UnloadedDescriptor,\n context: Context.FullPreset,\n): Handler<{\n chain: ConfigChain | null;\n externalDependencies: ReadonlyDeepArray;\n}> {\n const preset = instantiatePreset(\n yield* presetDescriptorLoader(descriptor, context),\n );\n validatePreset(preset, context, descriptor);\n return {\n chain: yield* buildPresetChain(preset, context),\n externalDependencies: preset.externalDependencies,\n };\n}\n\nfunction chainMaybeAsync>(\n a: undefined | ((...args: Args) => R),\n b: undefined | ((...args: Args) => R),\n): (...args: Args) => R {\n if (!a) return b;\n if (!b) return a;\n\n return function (this: unknown, ...args: Args) {\n const res = a.apply(this, args);\n if (res && typeof res.then === \"function\") {\n return res.then(() => b.apply(this, args));\n }\n return b.apply(this, args);\n } as (...args: Args) => R;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAE,MAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAQA,SAAAQ,UAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,SAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAU,QAAA,GAAAT,OAAA;AAEA,IAAAU,QAAA,GAAAV,OAAA;AAKA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAGA,IAAAa,QAAA,GAAAb,OAAA;AAIA,IAAAc,YAAA,GAAAd,OAAA;AAAoD,IAAAe,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAsBrCC,SAAMA,CAAC,CAAC,UAAUC,cAAcA,CAC7CC,SAAuB,EACS;EAAA,IAAAC,iBAAA;EAChC,MAAMC,MAAM,GAAG,OAAO,IAAAC,gBAAwB,EAACH,SAAS,CAAC;EACzD,IAAI,CAACE,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EACA,MAAM;IAAEE,OAAO;IAAErB,OAAO;IAAEsB;EAAa,CAAC,GAAGH,MAAM;EAEjD,IAAIG,YAAY,KAAK,SAAS,EAAE;IAC9B,OAAO,IAAI;EACb;EAEA,MAAMC,cAAgC,GAAG,CAAC,CAAC;EAE3C,MAAM;IAAEC,OAAO;IAAEC;EAAQ,CAAC,GAAGJ,OAAO;EAEpC,IAAI,CAACG,OAAO,IAAI,CAACC,OAAO,EAAE;IACxB,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;EAClE;EAEA,MAAMC,aAAiC,GAAAC,MAAA,CAAAC,MAAA,KAClC7B,OAAO;IACV8B,OAAO,EAAET,OAAO,CAACS;EAAO,EACzB;EAED,MAAMC,YAAY,GAAIC,IAAgB,IAAK;IACzC,MAAMC,IAAI,GAAG,IAAAC,uBAAiB,EAACF,IAAI,CAAC;IACpC,IAAI,CAACC,IAAI,EAAE;MACT,MAAM,IAAIP,KAAK,CAAC,yCAAyC,CAAC;IAC5D;IAEA,OAAOO,IAAI;EACb,CAAC;EAED,MAAME,kBAAkB,GAAGV,OAAO,CAACW,GAAG,CAACL,YAAY,CAAC;EACpD,MAAMM,yBAAyB,GAAGb,OAAO,CAACY,GAAG,CAACL,YAAY,CAAC;EAC3D,MAAMO,uBAAoE,GAAG,CAC3E,EAAE,CACH;EACD,MAAMC,MAA4B,GAAG,EAAE;EAEvC,MAAMC,oBAAuC,GAAG,EAAE;EAElD,MAAMC,OAAO,GAAG,OAAOC,YAAY,CACjC1C,OAAO,EACP,UAAU2C,wBAAwBA,CAChCC,UAAgD,EAChDC,qBAA2D,EACrC;IACtB,MAAMpB,OAGJ,GAAG,EAAE;IAEP,KAAK,IAAIqB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,UAAU,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;MAC1C,MAAME,UAAU,GAAGJ,UAAU,CAACE,CAAC,CAAC;MAChC,IAAIE,UAAU,CAAC3B,OAAO,KAAK,KAAK,EAAE;QAChC,IAAI;UAEF,IAAI4B,MAAM,GAAG,OAAOC,oBAAoB,CAACF,UAAU,EAAErB,aAAa,CAAC;QACrE,CAAC,CAAC,OAAOwB,CAAC,EAAE;UACV,IAAIA,CAAC,CAACC,IAAI,KAAK,sBAAsB,EAAE;YACrC,IAAAC,wCAA+B,EAACT,UAAU,EAAEE,CAAC,EAAE,QAAQ,EAAEK,CAAC,CAAC;UAC7D;UACA,MAAMA,CAAC;QACT;QAEAX,oBAAoB,CAACc,IAAI,CAACL,MAAM,CAACT,oBAAoB,CAAC;QAKtD,IAAIQ,UAAU,CAACO,OAAO,EAAE;UACtB9B,OAAO,CAAC6B,IAAI,CAAC;YAAEL,MAAM,EAAEA,MAAM,CAACO,KAAK;YAAEC,IAAI,EAAE;UAAG,CAAC,CAAC;QAClD,CAAC,MAAM;UACLhC,OAAO,CAACiC,OAAO,CAAC;YACdT,MAAM,EAAEA,MAAM,CAACO,KAAK;YACpBC,IAAI,EAAEZ;UACR,CAAC,CAAC;QACJ;MACF;IACF;IAGA,IAAIpB,OAAO,CAACsB,MAAM,GAAG,CAAC,EAAE;MAGtBT,uBAAuB,CAACqB,MAAM,CAC5B,CAAC,EACD,CAAC,EACD,GAAGlC,OAAO,CAACW,GAAG,CAACwB,CAAC,IAAIA,CAAC,CAACH,IAAI,CAAC,CAACI,MAAM,CAACC,CAAC,IAAIA,CAAC,KAAKjB,qBAAqB,CACrE,CAAC;MAED,KAAK,MAAM;QAAEI,MAAM;QAAEQ;MAAK,CAAC,IAAIhC,OAAO,EAAE;QACtC,IAAI,CAACwB,MAAM,EAAE,OAAO,IAAI;QAExBQ,IAAI,CAACH,IAAI,CAAC,GAAGL,MAAM,CAACzB,OAAO,CAAC;QAE5B,MAAMiB,OAAO,GAAG,OAAOE,wBAAwB,CAACM,MAAM,CAACxB,OAAO,EAAEgC,IAAI,CAAC;QACrE,IAAIhB,OAAO,EAAE,OAAO,IAAI;QAExBQ,MAAM,CAAC5B,OAAO,CAAC0C,OAAO,CAACC,IAAI,IAAI;UAC7B,IAAAC,kBAAY,EAAC1C,cAAc,EAAEyC,IAAI,CAAC;QACpC,CAAC,CAAC;MACJ;IACF;EACF,CACF,CAAC,CAAC7B,kBAAkB,EAAEG,uBAAuB,CAAC,CAAC,CAAC,CAAC;EAEjD,IAAIG,OAAO,EAAE,OAAO,IAAI;EAExB,MAAMuB,IAAsB,GAAGzC,cAAc;EAC7C,IAAA0C,kBAAY,EAACD,IAAI,EAAE3C,OAAO,CAAC;EAE3B,MAAM6C,aAAiC,GAAAtC,MAAA,CAAAC,MAAA,KAClCF,aAAa;IAChBwC,WAAW,GAAAjD,iBAAA,GAAE8C,IAAI,CAACG,WAAW,YAAAjD,iBAAA,GAAI,CAAC;EAAC,EACpC;EAED,OAAOwB,YAAY,CAAC1C,OAAO,EAAE,UAAUoE,qBAAqBA,CAAA,EAAG;IAC7D9B,uBAAuB,CAAC,CAAC,CAAC,CAACoB,OAAO,CAAC,GAAGrB,yBAAyB,CAAC;IAEhE,KAAK,MAAMgC,KAAK,IAAI/B,uBAAuB,EAAE;MAC3C,MAAMmB,IAAc,GAAG,EAAE;MACzBlB,MAAM,CAACe,IAAI,CAACG,IAAI,CAAC;MAEjB,KAAK,IAAIX,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGuB,KAAK,CAACtB,MAAM,EAAED,CAAC,EAAE,EAAE;QACrC,MAAME,UAAU,GAAGqB,KAAK,CAACvB,CAAC,CAAC;QAC3B,IAAIE,UAAU,CAAC3B,OAAO,KAAK,KAAK,EAAE;UAChC,IAAI;YAEF,IAAIiD,MAAM,GAAG,OAAOC,oBAAoB,CAACvB,UAAU,EAAEkB,aAAa,CAAC;UACrE,CAAC,CAAC,OAAOf,CAAC,EAAE;YACV,IAAIA,CAAC,CAACC,IAAI,KAAK,+BAA+B,EAAE;cAE9C,IAAAC,wCAA+B,EAACgB,KAAK,EAAEvB,CAAC,EAAE,QAAQ,EAAEK,CAAC,CAAC;YACxD;YACA,MAAMA,CAAC;UACT;UACAM,IAAI,CAACH,IAAI,CAACgB,MAAM,CAAC;UAEjB9B,oBAAoB,CAACc,IAAI,CAACgB,MAAM,CAAC9B,oBAAoB,CAAC;QACxD;MACF;IACF;EACF,CAAC,CAAC,CAAC,CAAC;EAEJwB,IAAI,CAACxC,OAAO,GAAGe,MAAM,CAAC,CAAC,CAAC;EACxByB,IAAI,CAACvC,OAAO,GAAGc,MAAM,CAClBiC,KAAK,CAAC,CAAC,CAAC,CACRX,MAAM,CAACrC,OAAO,IAAIA,OAAO,CAACuB,MAAM,GAAG,CAAC,CAAC,CACrCX,GAAG,CAACZ,OAAO,KAAK;IAAEA;EAAQ,CAAC,CAAC,CAAC;EAChCwC,IAAI,CAACS,aAAa,GAAGT,IAAI,CAACvC,OAAO,CAACsB,MAAM,GAAG,CAAC;EAE5C,OAAO;IACL1B,OAAO,EAAE2C,IAAI;IACbzB,MAAM,EAAEA,MAAM;IACdC,oBAAoB,EAAE,IAAAkC,mBAAe,EAAClC,oBAAoB;EAC5D,CAAC;AACH,CAAC,CAAC;AAEF,SAASE,YAAYA,CAAqB1C,OAAsB,EAAE2E,EAAK,EAAK;EAC1E,OAAO,WAAWC,IAAa,EAAEC,IAAa,EAAE;IAC9C,IAAI;MACF,OAAO,OAAOF,EAAE,CAACC,IAAI,EAAEC,IAAI,CAAC;IAC9B,CAAC,CAAC,OAAO1B,CAAC,EAAE;MAGV,IAAI,CAAC,YAAY,CAAC2B,IAAI,CAAC3B,CAAC,CAAC4B,OAAO,CAAC,EAAE;QAAA,IAAAC,iBAAA;QACjC7B,CAAC,CAAC4B,OAAO,GAAG,YAAAC,iBAAA,GAAWhF,OAAO,CAACiF,QAAQ,YAAAD,iBAAA,GAAI,cAAc,KACvD7B,CAAC,CAAC4B,OAAO,EACT;MACJ;MAEA,MAAM5B,CAAC;IACT;EACF,CAAC;AACH;AAKA,MAAM+B,oBAAoB,GACxBC,UAGQ,IAER,IAAAC,sBAAa,EAAC,WACZ;EAAEC,KAAK;EAAEhE,OAAO;EAAEiE,OAAO;EAAEC;AAA+B,CAAC,EAC3DC,KAAiC,EACN;EAE3B,IAAInE,OAAO,KAAK,KAAK,EAAE,MAAM,IAAIK,KAAK,CAAC,mBAAmB,CAAC;EAE3DL,OAAO,GAAGA,OAAO,IAAI,CAAC,CAAC;EAEvB,MAAMmB,oBAAmC,GAAG,EAAE;EAE9C,IAAIR,IAAa,GAAGqD,KAAK;EACzB,IAAI,OAAOA,KAAK,KAAK,UAAU,EAAE;IAC/B,MAAMI,OAAO,GAAG,IAAAC,iBAAU,EACxBL,KAAK,EACL,wFACF,CAAC;IAED,MAAMM,GAAG,GAAA/D,MAAA,CAAAC,MAAA,KACJ7B,OAAO,EACPmF,UAAU,CAACK,KAAK,EAAEhD,oBAAoB,CAAC,CAC3C;IACD,IAAI;MACFR,IAAI,GAAG,OAAOyD,OAAO,CAACE,GAAG,EAAEtE,OAAO,EAAEiE,OAAO,CAAC;IAC9C,CAAC,CAAC,OAAOnC,CAAC,EAAE;MACV,IAAIoC,KAAK,EAAE;QACTpC,CAAC,CAAC4B,OAAO,IAAI,uBAAuBa,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAAG;MAC9D;MACA,MAAMpC,CAAC;IACT;EACF;EAEA,IAAI,CAACnB,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IACrC,MAAM,IAAIN,KAAK,CAAC,yCAAyC,CAAC;EAC5D;EAEA,IAAI,IAAAoE,iBAAU,EAAC9D,IAAI,CAAC,EAAE;IAEpB,OAAO,EAAE;IAET,MAAM,IAAIN,KAAK,CACb,gDAAgD,GAC9C,wDAAwD,GACxD,sCAAsC,GACtC,oDAAoD,GACpD,8DAA8D,GAC9D,sBAAsBkE,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAC/C,CAAC;EACH;EAEA,IACE/C,oBAAoB,CAACO,MAAM,GAAG,CAAC,KAC9B,CAACyC,KAAK,CAACO,UAAU,CAAC,CAAC,IAAIP,KAAK,CAACQ,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,EACnD;IACA,IAAIC,KAAK,GACP,sDAAsD,GACtD,IAAIzD,oBAAoB,CAAC,CAAC,CAAC,mBAAmB;IAChD,IAAI,CAACgD,KAAK,CAACO,UAAU,CAAC,CAAC,EAAE;MACvBE,KAAK,IAAI,mFAAmF;IAC9F,CAAC,MAAM;MACLA,KAAK,IAAI,gDAAgD;IAC3D;IACAA,KAAK,IACH,mFAAmF,GACnF,sEAAsE,GACtE,0DAA0D,GAC1D,sBAAsBL,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAAG;IAEhD,MAAM,IAAI7D,KAAK,CAACuE,KAAK,CAAC;EACxB;EAEA,OAAO;IACLZ,KAAK,EAAErD,IAAI;IACXX,OAAO;IACPiE,OAAO;IACPC,KAAK;IACL/C,oBAAoB,EAAE,IAAAkC,mBAAe,EAAClC,oBAAoB;EAC5D,CAAC;AACH,CAAC,CAAC;AAEJ,MAAM0D,sBAAsB,GAAGhB,oBAAoB,CAGjDiB,wBAAa,CAAC;AAChB,MAAMC,sBAAsB,GAAGlB,oBAAoB,CAGjDmB,wBAAa,CAAC;AAEhB,MAAMC,iBAAiB,GAAG,IAAAlB,sBAAa,EAAC,WACtC;EAAEC,KAAK;EAAEhE,OAAO;EAAEiE,OAAO;EAAEC,KAAK;EAAE/C;AAAuC,CAAC,EAC1EgD,KAA8C,EAC7B;EACjB,MAAMe,SAAS,GAAG,IAAAC,6BAAoB,EAACnB,KAAK,CAAC;EAE7C,MAAMf,MAAM,GAAA1C,MAAA,CAAAC,MAAA,KACP0E,SAAS,CACb;EACD,IAAIjC,MAAM,CAACmC,OAAO,EAAE;IAClBnC,MAAM,CAACmC,OAAO,GAAGC,mBAAQ,CAACC,OAAO,CAAA/E,MAAA,CAAAC,MAAA,KAC5ByC,MAAM,CAACmC,OAAO,CAClB,CAAC;EACJ;EAEA,IAAInC,MAAM,CAACsC,QAAQ,EAAE;IACnB,MAAMC,kBAAiD,GAAG;MACxDC,IAAI,EAAEC,SAAS;MACfxB,KAAK,EAAE,GAAGA,KAAK,WAAW;MAC1BF,KAAK,EAAEf,MAAM,CAACsC,QAAQ;MACtBvF,OAAO;MACPiE;IACF,CAAC;IAED,MAAMsB,QAAQ,GAAG,OAAO,IAAAI,mBAAY,EAACzC,oBAAoB,EAAE0C,GAAG,IAAI;MAEhE,OAAOzB,KAAK,CAAC0B,UAAU,CAACtH,IAAI,IAAIqH,GAAG,CAACJ,kBAAkB,EAAEjH,IAAI,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF0E,MAAM,CAAC6C,GAAG,GAAGC,eAAe,CAACR,QAAQ,CAACO,GAAG,EAAE7C,MAAM,CAAC6C,GAAG,CAAC;IACtD7C,MAAM,CAAC+C,IAAI,GAAGD,eAAe,CAACR,QAAQ,CAACS,IAAI,EAAE/C,MAAM,CAAC+C,IAAI,CAAC;IACzD/C,MAAM,CAACgD,iBAAiB,GAAGF,eAAe,CACxCR,QAAQ,CAACU,iBAAiB,EAC1BhD,MAAM,CAACgD,iBACT,CAAC;IACDhD,MAAM,CAACmC,OAAO,GAAGC,mBAAQ,CAACa,QAAQ,CAACC,KAAK,CAAC,CACvCZ,QAAQ,CAACH,OAAO,IAAI,CAAC,CAAC,EACtBnC,MAAM,CAACmC,OAAO,IAAI,CAAC,CAAC,CACrB,CAAC;IAEF,IAAIG,QAAQ,CAACpE,oBAAoB,CAACO,MAAM,GAAG,CAAC,EAAE;MAC5C,IAAIP,oBAAoB,CAACO,MAAM,KAAK,CAAC,EAAE;QACrCP,oBAAoB,GAAGoE,QAAQ,CAACpE,oBAAoB;MACtD,CAAC,MAAM;QACLA,oBAAoB,GAAG,IAAAkC,mBAAe,EAAC,CACrClC,oBAAoB,EACpBoE,QAAQ,CAACpE,oBAAoB,CAC9B,CAAC;MACJ;IACF;EACF;EAEA,OAAO,IAAIiF,eAAM,CAACnD,MAAM,EAAEjD,OAAO,EAAEkE,KAAK,EAAE/C,oBAAoB,CAAC;AACjE,CAAC,CAAC;AAKF,UAAU+B,oBAAoBA,CAC5BvB,UAAyC,EACzChD,OAA6B,EACZ;EACjB,IAAIgD,UAAU,CAACqC,KAAK,YAAYoC,eAAM,EAAE;IACtC,IAAIzE,UAAU,CAAC3B,OAAO,EAAE;MACtB,MAAM,IAAIK,KAAK,CACb,8DACF,CAAC;IACH;IAEA,OAAOsB,UAAU,CAACqC,KAAK;EACzB;EAEA,OAAO,OAAOiB,iBAAiB,CAC7B,OAAOJ,sBAAsB,CAAClD,UAAU,EAAEhD,OAAO,CAAC,EAClDA,OACF,CAAC;AACH;AAEA,MAAM0H,aAAa,GAAIC,GAAY,IAAKA,GAAG,IAAI,OAAOA,GAAG,KAAK,UAAU;AAExE,MAAMC,6BAA6B,GAAGA,CACpCvG,OAAyB,EACzB2B,UAAyC,KAChC;EACT,IACE0E,aAAa,CAACrG,OAAO,CAACyD,IAAI,CAAC,IAC3B4C,aAAa,CAACrG,OAAO,CAACwG,OAAO,CAAC,IAC9BH,aAAa,CAACrG,OAAO,CAACyG,OAAO,CAAC,EAC9B;IACA,MAAMC,mBAAmB,GAAG/E,UAAU,CAAC8D,IAAI,GACvC,IAAI9D,UAAU,CAAC8D,IAAI,GAAG,GACtB,mBAAmB;IACvB,MAAM,IAAIkB,oBAAW,CACnB,CACE,UAAUD,mBAAmB,+DAA+D,EAC5F,QAAQ,EACR,8DAA8DA,mBAAmB,OAAO,EACxF,QAAQ,EACR,uEAAuE,CACxE,CAACE,IAAI,CAAC,IAAI,CACb,CAAC;EACH;AACF,CAAC;AAED,MAAMC,cAAc,GAAGA,CACrBjF,MAAsB,EACtBjD,OAAsB,EACtBgD,UAAyC,KAChC;EACT,IAAI,CAAChD,OAAO,CAACiF,QAAQ,EAAE;IAAA,IAAAkD,kBAAA;IACrB,MAAM;MAAE9G;IAAQ,CAAC,GAAG4B,MAAM;IAC1B2E,6BAA6B,CAACvG,OAAO,EAAE2B,UAAU,CAAC;IAClD,CAAAmF,kBAAA,GAAA9G,OAAO,CAAC+G,SAAS,aAAjBD,kBAAA,CAAmBpE,OAAO,CAACsE,eAAe,IACxCT,6BAA6B,CAACS,eAAe,EAAErF,UAAU,CAC3D,CAAC;EACH;AACF,CAAC;AAED,MAAMsF,iBAAiB,GAAG,IAAAC,0BAAiB,EACzC,CAAC;EACClD,KAAK;EACLC,OAAO;EACPC,KAAK;EACL/C;AACgB,CAAC,KAAqB;EACtC,OAAO;IACLnB,OAAO,EAAE,IAAAmH,iBAAQ,EAAC,QAAQ,EAAEnD,KAAK,CAAC;IAClCE,KAAK;IACLD,OAAO;IACP9C;EACF,CAAC;AACH,CACF,CAAC;AAKD,UAAUU,oBAAoBA,CAC5BF,UAAyC,EACzChD,OAA2B,EAI1B;EACD,MAAMiD,MAAM,GAAGqF,iBAAiB,CAC9B,OAAOlC,sBAAsB,CAACpD,UAAU,EAAEhD,OAAO,CACnD,CAAC;EACDkI,cAAc,CAACjF,MAAM,EAAEjD,OAAO,EAAEgD,UAAU,CAAC;EAC3C,OAAO;IACLQ,KAAK,EAAE,OAAO,IAAAiF,6BAAgB,EAACxF,MAAM,EAAEjD,OAAO,CAAC;IAC/CwC,oBAAoB,EAAES,MAAM,CAACT;EAC/B,CAAC;AACH;AAEA,SAAS4E,eAAeA,CACtBsB,CAAqC,EACrCC,CAAqC,EACf;EACtB,IAAI,CAACD,CAAC,EAAE,OAAOC,CAAC;EAChB,IAAI,CAACA,CAAC,EAAE,OAAOD,CAAC;EAEhB,OAAO,UAAyB,GAAGE,IAAU,EAAE;IAC7C,MAAMC,GAAG,GAAGH,CAAC,CAACI,KAAK,CAAC,IAAI,EAAEF,IAAI,CAAC;IAC/B,IAAIC,GAAG,IAAI,OAAOA,GAAG,CAACE,IAAI,KAAK,UAAU,EAAE;MACzC,OAAOF,GAAG,CAACE,IAAI,CAAC,MAAMJ,CAAC,CAACG,KAAK,CAAC,IAAI,EAAEF,IAAI,CAAC,CAAC;IAC5C;IACA,OAAOD,CAAC,CAACG,KAAK,CAAC,IAAI,EAAEF,IAAI,CAAC;EAC5B,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_gensync","data","require","_async","_util","context","_plugin","_item","_configChain","_deepArray","_traverse","_caching","_options","_plugins","_configApi","_partial","_configError","_default","exports","default","gensync","loadFullConfig","inputOpts","_opts$assumptions","result","loadPrivatePartialConfig","options","fileHandling","optionDefaults","plugins","presets","Error","presetContext","Object","assign","targets","toDescriptor","item","desc","getItemDescriptor","presetsDescriptors","map","initialPluginsDescriptors","pluginDescriptorsByPass","passes","externalDependencies","ignored","enhanceError","recursePresetDescriptors","rawPresets","pluginDescriptorsPass","i","length","descriptor","preset","loadPresetDescriptor","e","code","checkNoUnwrappedItemOptionPairs","push","ownPass","chain","pass","unshift","splice","o","filter","p","forEach","opts","mergeOptions","pluginContext","assumptions","loadPluginDescriptors","descs","plugin","loadPluginDescriptor","slice","passPerPreset","freezeDeepArray","fn","arg1","arg2","test","message","_context$filename","filename","makeDescriptorLoader","apiFactory","makeWeakCache","value","dirname","alias","cache","factory","maybeAsync","api","JSON","stringify","isThenable","configured","mode","error","pluginDescriptorLoader","makePluginAPI","presetDescriptorLoader","makePresetAPI","instantiatePlugin","pluginObj","validatePluginObject","visitor","traverse","explode","inherits","inheritsDescriptor","name","undefined","forwardAsync","run","invalidate","pre","post","manipulateOptions","visitors","merge","Plugin","needsFilename","val","validateIfOptionNeedsFilename","include","exclude","formattedPresetName","ConfigError","join","validatePreset","_options$overrides","overrides","overrideOptions","instantiatePreset","makeWeakCacheSync","validate","buildPresetChain","a","b","fns","Boolean","args","apply"],"sources":["../../src/config/full.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\nimport {\n forwardAsync,\n maybeAsync,\n isThenable,\n} from \"../gensync-utils/async.ts\";\n\nimport { mergeOptions } from \"./util.ts\";\nimport * as context from \"../index.ts\";\nimport Plugin from \"./plugin.ts\";\nimport { getItemDescriptor } from \"./item.ts\";\nimport { buildPresetChain } from \"./config-chain.ts\";\nimport { finalize as freezeDeepArray } from \"./helpers/deep-array.ts\";\nimport type { DeepArray, ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\nimport type {\n ConfigContext,\n ConfigChain,\n PresetInstance,\n} from \"./config-chain.ts\";\nimport type { UnloadedDescriptor } from \"./config-descriptors.ts\";\nimport traverse from \"@babel/traverse\";\nimport { makeWeakCache, makeWeakCacheSync } from \"./caching.ts\";\nimport type { CacheConfigurator } from \"./caching.ts\";\nimport {\n validate,\n checkNoUnwrappedItemOptionPairs,\n} from \"./validation/options.ts\";\nimport type { PluginItem } from \"./validation/options.ts\";\nimport { validatePluginObject } from \"./validation/plugins.ts\";\nimport { makePluginAPI, makePresetAPI } from \"./helpers/config-api.ts\";\nimport type { PluginAPI, PresetAPI } from \"./helpers/config-api.ts\";\n\nimport loadPrivatePartialConfig from \"./partial.ts\";\nimport type { ValidatedOptions } from \"./validation/options.ts\";\n\nimport type * as Context from \"./cache-contexts.ts\";\nimport ConfigError from \"../errors/config-error.ts\";\n\ntype LoadedDescriptor = {\n value: any;\n options: object;\n dirname: string;\n alias: string;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type { InputOptions } from \"./validation/options.ts\";\n\nexport type ResolvedConfig = {\n options: any;\n passes: PluginPasses;\n externalDependencies: ReadonlyDeepArray;\n};\n\nexport type { Plugin };\nexport type PluginPassList = Array;\nexport type PluginPasses = Array;\n\nexport default gensync(function* loadFullConfig(\n inputOpts: unknown,\n): Handler {\n const result = yield* loadPrivatePartialConfig(inputOpts);\n if (!result) {\n return null;\n }\n const { options, context, fileHandling } = result;\n\n if (fileHandling === \"ignored\") {\n return null;\n }\n\n const optionDefaults = {};\n\n const { plugins, presets } = options;\n\n if (!plugins || !presets) {\n throw new Error(\"Assertion failure - plugins and presets exist\");\n }\n\n const presetContext: Context.FullPreset = {\n ...context,\n targets: options.targets,\n };\n\n const toDescriptor = (item: PluginItem) => {\n const desc = getItemDescriptor(item);\n if (!desc) {\n throw new Error(\"Assertion failure - must be config item\");\n }\n\n return desc;\n };\n\n const presetsDescriptors = presets.map(toDescriptor);\n const initialPluginsDescriptors = plugins.map(toDescriptor);\n const pluginDescriptorsByPass: Array>> = [\n [],\n ];\n const passes: Array> = [];\n\n const externalDependencies: DeepArray = [];\n\n const ignored = yield* enhanceError(\n context,\n function* recursePresetDescriptors(\n rawPresets: Array>,\n pluginDescriptorsPass: Array>,\n ): Handler {\n const presets: Array<{\n preset: ConfigChain | null;\n pass: Array>;\n }> = [];\n\n for (let i = 0; i < rawPresets.length; i++) {\n const descriptor = rawPresets[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var preset = yield* loadPresetDescriptor(descriptor, presetContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_OPTION\") {\n checkNoUnwrappedItemOptionPairs(rawPresets, i, \"preset\", e);\n }\n throw e;\n }\n\n externalDependencies.push(preset.externalDependencies);\n\n // Presets normally run in reverse order, but if they\n // have their own pass they run after the presets\n // in the previous pass.\n if (descriptor.ownPass) {\n presets.push({ preset: preset.chain, pass: [] });\n } else {\n presets.unshift({\n preset: preset.chain,\n pass: pluginDescriptorsPass,\n });\n }\n }\n }\n\n // resolve presets\n if (presets.length > 0) {\n // The passes are created in the same order as the preset list, but are inserted before any\n // existing additional passes.\n pluginDescriptorsByPass.splice(\n 1,\n 0,\n ...presets.map(o => o.pass).filter(p => p !== pluginDescriptorsPass),\n );\n\n for (const { preset, pass } of presets) {\n if (!preset) return true;\n\n pass.push(...preset.plugins);\n\n const ignored = yield* recursePresetDescriptors(preset.presets, pass);\n if (ignored) return true;\n\n preset.options.forEach(opts => {\n mergeOptions(optionDefaults, opts);\n });\n }\n }\n },\n )(presetsDescriptors, pluginDescriptorsByPass[0]);\n\n if (ignored) return null;\n\n const opts: any = optionDefaults;\n mergeOptions(opts, options);\n\n const pluginContext: Context.FullPlugin = {\n ...presetContext,\n assumptions: opts.assumptions ?? {},\n };\n\n yield* enhanceError(context, function* loadPluginDescriptors() {\n pluginDescriptorsByPass[0].unshift(...initialPluginsDescriptors);\n\n for (const descs of pluginDescriptorsByPass) {\n const pass: Plugin[] = [];\n passes.push(pass);\n\n for (let i = 0; i < descs.length; i++) {\n const descriptor = descs[i];\n if (descriptor.options !== false) {\n try {\n // eslint-disable-next-line no-var\n var plugin = yield* loadPluginDescriptor(descriptor, pluginContext);\n } catch (e) {\n if (e.code === \"BABEL_UNKNOWN_PLUGIN_PROPERTY\") {\n // print special message for `plugins: [\"@babel/foo\", { foo: \"option\" }]`\n checkNoUnwrappedItemOptionPairs(descs, i, \"plugin\", e);\n }\n throw e;\n }\n pass.push(plugin);\n\n externalDependencies.push(plugin.externalDependencies);\n }\n }\n }\n })();\n\n opts.plugins = passes[0];\n opts.presets = passes\n .slice(1)\n .filter(plugins => plugins.length > 0)\n .map(plugins => ({ plugins }));\n opts.passPerPreset = opts.presets.length > 0;\n\n return {\n options: opts,\n passes: passes,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n});\n\nfunction enhanceError(context: ConfigContext, fn: T): T {\n return function* (arg1: unknown, arg2: unknown) {\n try {\n return yield* fn(arg1, arg2);\n } catch (e) {\n // There are a few case where thrown errors will try to annotate themselves multiple times, so\n // to keep things simple we just bail out if re-wrapping the message.\n if (!/^\\[BABEL\\]/.test(e.message)) {\n e.message = `[BABEL] ${context.filename ?? \"unknown file\"}: ${\n e.message\n }`;\n }\n\n throw e;\n }\n } as any;\n}\n\n/**\n * Load a generic plugin/preset from the given descriptor loaded from the config object.\n */\nconst makeDescriptorLoader = (\n apiFactory: (\n cache: CacheConfigurator,\n externalDependencies: Array,\n ) => API,\n) =>\n makeWeakCache(function* (\n { value, options, dirname, alias }: UnloadedDescriptor,\n cache: CacheConfigurator,\n ): Handler {\n // Disabled presets should already have been filtered out\n if (options === false) throw new Error(\"Assertion failure\");\n\n options = options || {};\n\n const externalDependencies: Array = [];\n\n let item: unknown = value;\n if (typeof value === \"function\") {\n const factory = maybeAsync(\n value as (api: API, options: object, dirname: string) => unknown,\n `You appear to be using an async plugin/preset, but Babel has been called synchronously`,\n );\n\n const api = {\n ...context,\n ...apiFactory(cache, externalDependencies),\n };\n try {\n item = yield* factory(api, options, dirname);\n } catch (e) {\n if (alias) {\n e.message += ` (While processing: ${JSON.stringify(alias)})`;\n }\n throw e;\n }\n }\n\n if (!item || typeof item !== \"object\") {\n throw new Error(\"Plugin/Preset did not return an object.\");\n }\n\n if (isThenable(item)) {\n // @ts-expect-error - if we want to support async plugins\n yield* [];\n\n throw new Error(\n `You appear to be using a promise as a plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, ` +\n `you may need to upgrade your @babel/core version. ` +\n `As an alternative, you can prefix the promise with \"await\". ` +\n `(While processing: ${JSON.stringify(alias)})`,\n );\n }\n\n if (\n externalDependencies.length > 0 &&\n (!cache.configured() || cache.mode() === \"forever\")\n ) {\n let error =\n `A plugin/preset has external untracked dependencies ` +\n `(${externalDependencies[0]}), but the cache `;\n if (!cache.configured()) {\n error += `has not been configured to be invalidated when the external dependencies change. `;\n } else {\n error += ` has been configured to never be invalidated. `;\n }\n error +=\n `Plugins/presets should configure their cache to be invalidated when the external ` +\n `dependencies change, for example using \\`api.cache.invalidate(() => ` +\n `statSync(filepath).mtimeMs)\\` or \\`api.cache.never()\\`\\n` +\n `(While processing: ${JSON.stringify(alias)})`;\n\n throw new Error(error);\n }\n\n return {\n value: item,\n options,\n dirname,\n alias,\n externalDependencies: freezeDeepArray(externalDependencies),\n };\n });\n\nconst pluginDescriptorLoader = makeDescriptorLoader<\n Context.SimplePlugin,\n PluginAPI\n>(makePluginAPI);\nconst presetDescriptorLoader = makeDescriptorLoader<\n Context.SimplePreset,\n PresetAPI\n>(makePresetAPI);\n\nconst instantiatePlugin = makeWeakCache(function* (\n { value, options, dirname, alias, externalDependencies }: LoadedDescriptor,\n cache: CacheConfigurator,\n): Handler {\n const pluginObj = validatePluginObject(value);\n\n const plugin = {\n ...pluginObj,\n };\n if (plugin.visitor) {\n plugin.visitor = traverse.explode({\n ...plugin.visitor,\n });\n }\n\n if (plugin.inherits) {\n const inheritsDescriptor: UnloadedDescriptor = {\n name: undefined,\n alias: `${alias}$inherits`,\n value: plugin.inherits,\n options,\n dirname,\n };\n\n const inherits = yield* forwardAsync(loadPluginDescriptor, run => {\n // If the inherited plugin changes, reinstantiate this plugin.\n return cache.invalidate(data => run(inheritsDescriptor, data));\n });\n\n plugin.pre = chain(inherits.pre, plugin.pre);\n plugin.post = chain(inherits.post, plugin.post);\n plugin.manipulateOptions = chain(\n inherits.manipulateOptions,\n plugin.manipulateOptions,\n );\n plugin.visitor = traverse.visitors.merge([\n inherits.visitor || {},\n plugin.visitor || {},\n ]);\n\n if (inherits.externalDependencies.length > 0) {\n if (externalDependencies.length === 0) {\n externalDependencies = inherits.externalDependencies;\n } else {\n externalDependencies = freezeDeepArray([\n externalDependencies,\n inherits.externalDependencies,\n ]);\n }\n }\n }\n\n return new Plugin(plugin, options, alias, externalDependencies);\n});\n\n/**\n * Instantiate a plugin for the given descriptor, returning the plugin/options pair.\n */\nfunction* loadPluginDescriptor(\n descriptor: UnloadedDescriptor,\n context: Context.SimplePlugin,\n): Handler {\n if (descriptor.value instanceof Plugin) {\n if (descriptor.options) {\n throw new Error(\n \"Passed options to an existing Plugin instance will not work.\",\n );\n }\n\n return descriptor.value;\n }\n\n return yield* instantiatePlugin(\n yield* pluginDescriptorLoader(descriptor, context),\n context,\n );\n}\n\nconst needsFilename = (val: unknown) => val && typeof val !== \"function\";\n\nconst validateIfOptionNeedsFilename = (\n options: ValidatedOptions,\n descriptor: UnloadedDescriptor,\n): void => {\n if (\n needsFilename(options.test) ||\n needsFilename(options.include) ||\n needsFilename(options.exclude)\n ) {\n const formattedPresetName = descriptor.name\n ? `\"${descriptor.name}\"`\n : \"/* your preset */\";\n throw new ConfigError(\n [\n `Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`,\n `\\`\\`\\``,\n `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`,\n `\\`\\`\\``,\n `See https://babeljs.io/docs/en/options#filename for more information.`,\n ].join(\"\\n\"),\n );\n }\n};\n\nconst validatePreset = (\n preset: PresetInstance,\n context: ConfigContext,\n descriptor: UnloadedDescriptor,\n): void => {\n if (!context.filename) {\n const { options } = preset;\n validateIfOptionNeedsFilename(options, descriptor);\n options.overrides?.forEach(overrideOptions =>\n validateIfOptionNeedsFilename(overrideOptions, descriptor),\n );\n }\n};\n\nconst instantiatePreset = makeWeakCacheSync(\n ({\n value,\n dirname,\n alias,\n externalDependencies,\n }: LoadedDescriptor): PresetInstance => {\n return {\n options: validate(\"preset\", value),\n alias,\n dirname,\n externalDependencies,\n };\n },\n);\n\n/**\n * Generate a config object that will act as the root of a new nested config.\n */\nfunction* loadPresetDescriptor(\n descriptor: UnloadedDescriptor,\n context: Context.FullPreset,\n): Handler<{\n chain: ConfigChain | null;\n externalDependencies: ReadonlyDeepArray;\n}> {\n const preset = instantiatePreset(\n yield* presetDescriptorLoader(descriptor, context),\n );\n validatePreset(preset, context, descriptor);\n return {\n chain: yield* buildPresetChain(preset, context),\n externalDependencies: preset.externalDependencies,\n };\n}\n\nfunction chain(\n a: undefined | ((...args: Args) => void),\n b: undefined | ((...args: Args) => void),\n) {\n const fns = [a, b].filter(Boolean);\n if (fns.length <= 1) return fns[0];\n\n return function (this: unknown, ...args: unknown[]) {\n for (const fn of fns) {\n fn.apply(this, args);\n }\n };\n}\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAE,MAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAQA,SAAAQ,UAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,SAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAU,QAAA,GAAAT,OAAA;AAEA,IAAAU,QAAA,GAAAV,OAAA;AAKA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,UAAA,GAAAZ,OAAA;AAGA,IAAAa,QAAA,GAAAb,OAAA;AAIA,IAAAc,YAAA,GAAAd,OAAA;AAAoD,IAAAe,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAsBrCC,SAAMA,CAAC,CAAC,UAAUC,cAAcA,CAC7CC,SAAkB,EACc;EAAA,IAAAC,iBAAA;EAChC,MAAMC,MAAM,GAAG,OAAO,IAAAC,gBAAwB,EAACH,SAAS,CAAC;EACzD,IAAI,CAACE,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EACA,MAAM;IAAEE,OAAO;IAAErB,OAAO;IAAEsB;EAAa,CAAC,GAAGH,MAAM;EAEjD,IAAIG,YAAY,KAAK,SAAS,EAAE;IAC9B,OAAO,IAAI;EACb;EAEA,MAAMC,cAAc,GAAG,CAAC,CAAC;EAEzB,MAAM;IAAEC,OAAO;IAAEC;EAAQ,CAAC,GAAGJ,OAAO;EAEpC,IAAI,CAACG,OAAO,IAAI,CAACC,OAAO,EAAE;IACxB,MAAM,IAAIC,KAAK,CAAC,+CAA+C,CAAC;EAClE;EAEA,MAAMC,aAAiC,GAAAC,MAAA,CAAAC,MAAA,KAClC7B,OAAO;IACV8B,OAAO,EAAET,OAAO,CAACS;EAAO,EACzB;EAED,MAAMC,YAAY,GAAIC,IAAgB,IAAK;IACzC,MAAMC,IAAI,GAAG,IAAAC,uBAAiB,EAACF,IAAI,CAAC;IACpC,IAAI,CAACC,IAAI,EAAE;MACT,MAAM,IAAIP,KAAK,CAAC,yCAAyC,CAAC;IAC5D;IAEA,OAAOO,IAAI;EACb,CAAC;EAED,MAAME,kBAAkB,GAAGV,OAAO,CAACW,GAAG,CAACL,YAAY,CAAC;EACpD,MAAMM,yBAAyB,GAAGb,OAAO,CAACY,GAAG,CAACL,YAAY,CAAC;EAC3D,MAAMO,uBAAoE,GAAG,CAC3E,EAAE,CACH;EACD,MAAMC,MAA4B,GAAG,EAAE;EAEvC,MAAMC,oBAAuC,GAAG,EAAE;EAElD,MAAMC,OAAO,GAAG,OAAOC,YAAY,CACjC1C,OAAO,EACP,UAAU2C,wBAAwBA,CAChCC,UAAgD,EAChDC,qBAA2D,EACrC;IACtB,MAAMpB,OAGJ,GAAG,EAAE;IAEP,KAAK,IAAIqB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,UAAU,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;MAC1C,MAAME,UAAU,GAAGJ,UAAU,CAACE,CAAC,CAAC;MAChC,IAAIE,UAAU,CAAC3B,OAAO,KAAK,KAAK,EAAE;QAChC,IAAI;UAEF,IAAI4B,MAAM,GAAG,OAAOC,oBAAoB,CAACF,UAAU,EAAErB,aAAa,CAAC;QACrE,CAAC,CAAC,OAAOwB,CAAC,EAAE;UACV,IAAIA,CAAC,CAACC,IAAI,KAAK,sBAAsB,EAAE;YACrC,IAAAC,wCAA+B,EAACT,UAAU,EAAEE,CAAC,EAAE,QAAQ,EAAEK,CAAC,CAAC;UAC7D;UACA,MAAMA,CAAC;QACT;QAEAX,oBAAoB,CAACc,IAAI,CAACL,MAAM,CAACT,oBAAoB,CAAC;QAKtD,IAAIQ,UAAU,CAACO,OAAO,EAAE;UACtB9B,OAAO,CAAC6B,IAAI,CAAC;YAAEL,MAAM,EAAEA,MAAM,CAACO,KAAK;YAAEC,IAAI,EAAE;UAAG,CAAC,CAAC;QAClD,CAAC,MAAM;UACLhC,OAAO,CAACiC,OAAO,CAAC;YACdT,MAAM,EAAEA,MAAM,CAACO,KAAK;YACpBC,IAAI,EAAEZ;UACR,CAAC,CAAC;QACJ;MACF;IACF;IAGA,IAAIpB,OAAO,CAACsB,MAAM,GAAG,CAAC,EAAE;MAGtBT,uBAAuB,CAACqB,MAAM,CAC5B,CAAC,EACD,CAAC,EACD,GAAGlC,OAAO,CAACW,GAAG,CAACwB,CAAC,IAAIA,CAAC,CAACH,IAAI,CAAC,CAACI,MAAM,CAACC,CAAC,IAAIA,CAAC,KAAKjB,qBAAqB,CACrE,CAAC;MAED,KAAK,MAAM;QAAEI,MAAM;QAAEQ;MAAK,CAAC,IAAIhC,OAAO,EAAE;QACtC,IAAI,CAACwB,MAAM,EAAE,OAAO,IAAI;QAExBQ,IAAI,CAACH,IAAI,CAAC,GAAGL,MAAM,CAACzB,OAAO,CAAC;QAE5B,MAAMiB,OAAO,GAAG,OAAOE,wBAAwB,CAACM,MAAM,CAACxB,OAAO,EAAEgC,IAAI,CAAC;QACrE,IAAIhB,OAAO,EAAE,OAAO,IAAI;QAExBQ,MAAM,CAAC5B,OAAO,CAAC0C,OAAO,CAACC,IAAI,IAAI;UAC7B,IAAAC,kBAAY,EAAC1C,cAAc,EAAEyC,IAAI,CAAC;QACpC,CAAC,CAAC;MACJ;IACF;EACF,CACF,CAAC,CAAC7B,kBAAkB,EAAEG,uBAAuB,CAAC,CAAC,CAAC,CAAC;EAEjD,IAAIG,OAAO,EAAE,OAAO,IAAI;EAExB,MAAMuB,IAAS,GAAGzC,cAAc;EAChC,IAAA0C,kBAAY,EAACD,IAAI,EAAE3C,OAAO,CAAC;EAE3B,MAAM6C,aAAiC,GAAAtC,MAAA,CAAAC,MAAA,KAClCF,aAAa;IAChBwC,WAAW,GAAAjD,iBAAA,GAAE8C,IAAI,CAACG,WAAW,YAAAjD,iBAAA,GAAI,CAAC;EAAC,EACpC;EAED,OAAOwB,YAAY,CAAC1C,OAAO,EAAE,UAAUoE,qBAAqBA,CAAA,EAAG;IAC7D9B,uBAAuB,CAAC,CAAC,CAAC,CAACoB,OAAO,CAAC,GAAGrB,yBAAyB,CAAC;IAEhE,KAAK,MAAMgC,KAAK,IAAI/B,uBAAuB,EAAE;MAC3C,MAAMmB,IAAc,GAAG,EAAE;MACzBlB,MAAM,CAACe,IAAI,CAACG,IAAI,CAAC;MAEjB,KAAK,IAAIX,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGuB,KAAK,CAACtB,MAAM,EAAED,CAAC,EAAE,EAAE;QACrC,MAAME,UAAU,GAAGqB,KAAK,CAACvB,CAAC,CAAC;QAC3B,IAAIE,UAAU,CAAC3B,OAAO,KAAK,KAAK,EAAE;UAChC,IAAI;YAEF,IAAIiD,MAAM,GAAG,OAAOC,oBAAoB,CAACvB,UAAU,EAAEkB,aAAa,CAAC;UACrE,CAAC,CAAC,OAAOf,CAAC,EAAE;YACV,IAAIA,CAAC,CAACC,IAAI,KAAK,+BAA+B,EAAE;cAE9C,IAAAC,wCAA+B,EAACgB,KAAK,EAAEvB,CAAC,EAAE,QAAQ,EAAEK,CAAC,CAAC;YACxD;YACA,MAAMA,CAAC;UACT;UACAM,IAAI,CAACH,IAAI,CAACgB,MAAM,CAAC;UAEjB9B,oBAAoB,CAACc,IAAI,CAACgB,MAAM,CAAC9B,oBAAoB,CAAC;QACxD;MACF;IACF;EACF,CAAC,CAAC,CAAC,CAAC;EAEJwB,IAAI,CAACxC,OAAO,GAAGe,MAAM,CAAC,CAAC,CAAC;EACxByB,IAAI,CAACvC,OAAO,GAAGc,MAAM,CAClBiC,KAAK,CAAC,CAAC,CAAC,CACRX,MAAM,CAACrC,OAAO,IAAIA,OAAO,CAACuB,MAAM,GAAG,CAAC,CAAC,CACrCX,GAAG,CAACZ,OAAO,KAAK;IAAEA;EAAQ,CAAC,CAAC,CAAC;EAChCwC,IAAI,CAACS,aAAa,GAAGT,IAAI,CAACvC,OAAO,CAACsB,MAAM,GAAG,CAAC;EAE5C,OAAO;IACL1B,OAAO,EAAE2C,IAAI;IACbzB,MAAM,EAAEA,MAAM;IACdC,oBAAoB,EAAE,IAAAkC,mBAAe,EAAClC,oBAAoB;EAC5D,CAAC;AACH,CAAC,CAAC;AAEF,SAASE,YAAYA,CAAqB1C,OAAsB,EAAE2E,EAAK,EAAK;EAC1E,OAAO,WAAWC,IAAa,EAAEC,IAAa,EAAE;IAC9C,IAAI;MACF,OAAO,OAAOF,EAAE,CAACC,IAAI,EAAEC,IAAI,CAAC;IAC9B,CAAC,CAAC,OAAO1B,CAAC,EAAE;MAGV,IAAI,CAAC,YAAY,CAAC2B,IAAI,CAAC3B,CAAC,CAAC4B,OAAO,CAAC,EAAE;QAAA,IAAAC,iBAAA;QACjC7B,CAAC,CAAC4B,OAAO,GAAG,YAAAC,iBAAA,GAAWhF,OAAO,CAACiF,QAAQ,YAAAD,iBAAA,GAAI,cAAc,KACvD7B,CAAC,CAAC4B,OAAO,EACT;MACJ;MAEA,MAAM5B,CAAC;IACT;EACF,CAAC;AACH;AAKA,MAAM+B,oBAAoB,GACxBC,UAGQ,IAER,IAAAC,sBAAa,EAAC,WACZ;EAAEC,KAAK;EAAEhE,OAAO;EAAEiE,OAAO;EAAEC;AAA+B,CAAC,EAC3DC,KAAiC,EACN;EAE3B,IAAInE,OAAO,KAAK,KAAK,EAAE,MAAM,IAAIK,KAAK,CAAC,mBAAmB,CAAC;EAE3DL,OAAO,GAAGA,OAAO,IAAI,CAAC,CAAC;EAEvB,MAAMmB,oBAAmC,GAAG,EAAE;EAE9C,IAAIR,IAAa,GAAGqD,KAAK;EACzB,IAAI,OAAOA,KAAK,KAAK,UAAU,EAAE;IAC/B,MAAMI,OAAO,GAAG,IAAAC,iBAAU,EACxBL,KAAK,EACL,wFACF,CAAC;IAED,MAAMM,GAAG,GAAA/D,MAAA,CAAAC,MAAA,KACJ7B,OAAO,EACPmF,UAAU,CAACK,KAAK,EAAEhD,oBAAoB,CAAC,CAC3C;IACD,IAAI;MACFR,IAAI,GAAG,OAAOyD,OAAO,CAACE,GAAG,EAAEtE,OAAO,EAAEiE,OAAO,CAAC;IAC9C,CAAC,CAAC,OAAOnC,CAAC,EAAE;MACV,IAAIoC,KAAK,EAAE;QACTpC,CAAC,CAAC4B,OAAO,IAAI,uBAAuBa,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAAG;MAC9D;MACA,MAAMpC,CAAC;IACT;EACF;EAEA,IAAI,CAACnB,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;IACrC,MAAM,IAAIN,KAAK,CAAC,yCAAyC,CAAC;EAC5D;EAEA,IAAI,IAAAoE,iBAAU,EAAC9D,IAAI,CAAC,EAAE;IAEpB,OAAO,EAAE;IAET,MAAM,IAAIN,KAAK,CACb,gDAAgD,GAC9C,wDAAwD,GACxD,sCAAsC,GACtC,oDAAoD,GACpD,8DAA8D,GAC9D,sBAAsBkE,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAC/C,CAAC;EACH;EAEA,IACE/C,oBAAoB,CAACO,MAAM,GAAG,CAAC,KAC9B,CAACyC,KAAK,CAACO,UAAU,CAAC,CAAC,IAAIP,KAAK,CAACQ,IAAI,CAAC,CAAC,KAAK,SAAS,CAAC,EACnD;IACA,IAAIC,KAAK,GACP,sDAAsD,GACtD,IAAIzD,oBAAoB,CAAC,CAAC,CAAC,mBAAmB;IAChD,IAAI,CAACgD,KAAK,CAACO,UAAU,CAAC,CAAC,EAAE;MACvBE,KAAK,IAAI,mFAAmF;IAC9F,CAAC,MAAM;MACLA,KAAK,IAAI,gDAAgD;IAC3D;IACAA,KAAK,IACH,mFAAmF,GACnF,sEAAsE,GACtE,0DAA0D,GAC1D,sBAAsBL,IAAI,CAACC,SAAS,CAACN,KAAK,CAAC,GAAG;IAEhD,MAAM,IAAI7D,KAAK,CAACuE,KAAK,CAAC;EACxB;EAEA,OAAO;IACLZ,KAAK,EAAErD,IAAI;IACXX,OAAO;IACPiE,OAAO;IACPC,KAAK;IACL/C,oBAAoB,EAAE,IAAAkC,mBAAe,EAAClC,oBAAoB;EAC5D,CAAC;AACH,CAAC,CAAC;AAEJ,MAAM0D,sBAAsB,GAAGhB,oBAAoB,CAGjDiB,wBAAa,CAAC;AAChB,MAAMC,sBAAsB,GAAGlB,oBAAoB,CAGjDmB,wBAAa,CAAC;AAEhB,MAAMC,iBAAiB,GAAG,IAAAlB,sBAAa,EAAC,WACtC;EAAEC,KAAK;EAAEhE,OAAO;EAAEiE,OAAO;EAAEC,KAAK;EAAE/C;AAAuC,CAAC,EAC1EgD,KAA8C,EAC7B;EACjB,MAAMe,SAAS,GAAG,IAAAC,6BAAoB,EAACnB,KAAK,CAAC;EAE7C,MAAMf,MAAM,GAAA1C,MAAA,CAAAC,MAAA,KACP0E,SAAS,CACb;EACD,IAAIjC,MAAM,CAACmC,OAAO,EAAE;IAClBnC,MAAM,CAACmC,OAAO,GAAGC,mBAAQ,CAACC,OAAO,CAAA/E,MAAA,CAAAC,MAAA,KAC5ByC,MAAM,CAACmC,OAAO,CAClB,CAAC;EACJ;EAEA,IAAInC,MAAM,CAACsC,QAAQ,EAAE;IACnB,MAAMC,kBAAiD,GAAG;MACxDC,IAAI,EAAEC,SAAS;MACfxB,KAAK,EAAE,GAAGA,KAAK,WAAW;MAC1BF,KAAK,EAAEf,MAAM,CAACsC,QAAQ;MACtBvF,OAAO;MACPiE;IACF,CAAC;IAED,MAAMsB,QAAQ,GAAG,OAAO,IAAAI,mBAAY,EAACzC,oBAAoB,EAAE0C,GAAG,IAAI;MAEhE,OAAOzB,KAAK,CAAC0B,UAAU,CAACtH,IAAI,IAAIqH,GAAG,CAACJ,kBAAkB,EAAEjH,IAAI,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF0E,MAAM,CAAC6C,GAAG,GAAG3D,KAAK,CAACoD,QAAQ,CAACO,GAAG,EAAE7C,MAAM,CAAC6C,GAAG,CAAC;IAC5C7C,MAAM,CAAC8C,IAAI,GAAG5D,KAAK,CAACoD,QAAQ,CAACQ,IAAI,EAAE9C,MAAM,CAAC8C,IAAI,CAAC;IAC/C9C,MAAM,CAAC+C,iBAAiB,GAAG7D,KAAK,CAC9BoD,QAAQ,CAACS,iBAAiB,EAC1B/C,MAAM,CAAC+C,iBACT,CAAC;IACD/C,MAAM,CAACmC,OAAO,GAAGC,mBAAQ,CAACY,QAAQ,CAACC,KAAK,CAAC,CACvCX,QAAQ,CAACH,OAAO,IAAI,CAAC,CAAC,EACtBnC,MAAM,CAACmC,OAAO,IAAI,CAAC,CAAC,CACrB,CAAC;IAEF,IAAIG,QAAQ,CAACpE,oBAAoB,CAACO,MAAM,GAAG,CAAC,EAAE;MAC5C,IAAIP,oBAAoB,CAACO,MAAM,KAAK,CAAC,EAAE;QACrCP,oBAAoB,GAAGoE,QAAQ,CAACpE,oBAAoB;MACtD,CAAC,MAAM;QACLA,oBAAoB,GAAG,IAAAkC,mBAAe,EAAC,CACrClC,oBAAoB,EACpBoE,QAAQ,CAACpE,oBAAoB,CAC9B,CAAC;MACJ;IACF;EACF;EAEA,OAAO,IAAIgF,eAAM,CAAClD,MAAM,EAAEjD,OAAO,EAAEkE,KAAK,EAAE/C,oBAAoB,CAAC;AACjE,CAAC,CAAC;AAKF,UAAU+B,oBAAoBA,CAC5BvB,UAAyC,EACzChD,OAA6B,EACZ;EACjB,IAAIgD,UAAU,CAACqC,KAAK,YAAYmC,eAAM,EAAE;IACtC,IAAIxE,UAAU,CAAC3B,OAAO,EAAE;MACtB,MAAM,IAAIK,KAAK,CACb,8DACF,CAAC;IACH;IAEA,OAAOsB,UAAU,CAACqC,KAAK;EACzB;EAEA,OAAO,OAAOiB,iBAAiB,CAC7B,OAAOJ,sBAAsB,CAAClD,UAAU,EAAEhD,OAAO,CAAC,EAClDA,OACF,CAAC;AACH;AAEA,MAAMyH,aAAa,GAAIC,GAAY,IAAKA,GAAG,IAAI,OAAOA,GAAG,KAAK,UAAU;AAExE,MAAMC,6BAA6B,GAAGA,CACpCtG,OAAyB,EACzB2B,UAAyC,KAChC;EACT,IACEyE,aAAa,CAACpG,OAAO,CAACyD,IAAI,CAAC,IAC3B2C,aAAa,CAACpG,OAAO,CAACuG,OAAO,CAAC,IAC9BH,aAAa,CAACpG,OAAO,CAACwG,OAAO,CAAC,EAC9B;IACA,MAAMC,mBAAmB,GAAG9E,UAAU,CAAC8D,IAAI,GACvC,IAAI9D,UAAU,CAAC8D,IAAI,GAAG,GACtB,mBAAmB;IACvB,MAAM,IAAIiB,oBAAW,CACnB,CACE,UAAUD,mBAAmB,+DAA+D,EAC5F,QAAQ,EACR,8DAA8DA,mBAAmB,OAAO,EACxF,QAAQ,EACR,uEAAuE,CACxE,CAACE,IAAI,CAAC,IAAI,CACb,CAAC;EACH;AACF,CAAC;AAED,MAAMC,cAAc,GAAGA,CACrBhF,MAAsB,EACtBjD,OAAsB,EACtBgD,UAAyC,KAChC;EACT,IAAI,CAAChD,OAAO,CAACiF,QAAQ,EAAE;IAAA,IAAAiD,kBAAA;IACrB,MAAM;MAAE7G;IAAQ,CAAC,GAAG4B,MAAM;IAC1B0E,6BAA6B,CAACtG,OAAO,EAAE2B,UAAU,CAAC;IAClD,CAAAkF,kBAAA,GAAA7G,OAAO,CAAC8G,SAAS,aAAjBD,kBAAA,CAAmBnE,OAAO,CAACqE,eAAe,IACxCT,6BAA6B,CAACS,eAAe,EAAEpF,UAAU,CAC3D,CAAC;EACH;AACF,CAAC;AAED,MAAMqF,iBAAiB,GAAG,IAAAC,0BAAiB,EACzC,CAAC;EACCjD,KAAK;EACLC,OAAO;EACPC,KAAK;EACL/C;AACgB,CAAC,KAAqB;EACtC,OAAO;IACLnB,OAAO,EAAE,IAAAkH,iBAAQ,EAAC,QAAQ,EAAElD,KAAK,CAAC;IAClCE,KAAK;IACLD,OAAO;IACP9C;EACF,CAAC;AACH,CACF,CAAC;AAKD,UAAUU,oBAAoBA,CAC5BF,UAAyC,EACzChD,OAA2B,EAI1B;EACD,MAAMiD,MAAM,GAAGoF,iBAAiB,CAC9B,OAAOjC,sBAAsB,CAACpD,UAAU,EAAEhD,OAAO,CACnD,CAAC;EACDiI,cAAc,CAAChF,MAAM,EAAEjD,OAAO,EAAEgD,UAAU,CAAC;EAC3C,OAAO;IACLQ,KAAK,EAAE,OAAO,IAAAgF,6BAAgB,EAACvF,MAAM,EAAEjD,OAAO,CAAC;IAC/CwC,oBAAoB,EAAES,MAAM,CAACT;EAC/B,CAAC;AACH;AAEA,SAASgB,KAAKA,CACZiF,CAAwC,EACxCC,CAAwC,EACxC;EACA,MAAMC,GAAG,GAAG,CAACF,CAAC,EAAEC,CAAC,CAAC,CAAC7E,MAAM,CAAC+E,OAAO,CAAC;EAClC,IAAID,GAAG,CAAC5F,MAAM,IAAI,CAAC,EAAE,OAAO4F,GAAG,CAAC,CAAC,CAAC;EAElC,OAAO,UAAyB,GAAGE,IAAe,EAAE;IAClD,KAAK,MAAMlE,EAAE,IAAIgE,GAAG,EAAE;MACpBhE,EAAE,CAACmE,KAAK,CAAC,IAAI,EAAED,IAAI,CAAC;IACtB;EACF,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/helpers/config-api.js b/node_modules/@babel/core/lib/config/helpers/config-api.js index 57d3f3796..3a80653ef 100644 --- a/node_modules/@babel/core/lib/config/helpers/config-api.js +++ b/node_modules/@babel/core/lib/config/helpers/config-api.js @@ -17,7 +17,7 @@ var _index = require("../../index.js"); var _caching = require("../caching.js"); function makeConfigAPI(cache) { const env = value => cache.using(data => { - if (value === undefined) return data.envName; + if (typeof value === "undefined") return data.envName; if (typeof value === "function") { return (0, _caching.assertSimpleType)(value(data.envName)); } diff --git a/node_modules/@babel/core/lib/config/helpers/config-api.js.map b/node_modules/@babel/core/lib/config/helpers/config-api.js.map index f0efdcf90..56778960c 100644 --- a/node_modules/@babel/core/lib/config/helpers/config-api.js.map +++ b/node_modules/@babel/core/lib/config/helpers/config-api.js.map @@ -1 +1 @@ -{"version":3,"names":["_semver","data","require","_index","_caching","makeConfigAPI","cache","env","value","using","undefined","envName","assertSimpleType","Array","isArray","some","entry","Error","caller","cb","version","coreVersion","simple","async","assertVersion","makePresetAPI","externalDependencies","targets","JSON","parse","stringify","addExternalDependency","ref","push","Object","assign","makePluginAPI","assumption","name","assumptions","range","Number","isInteger","semver","satisfies","limit","stackTraceLimit","err","code"],"sources":["../../../src/config/helpers/config-api.ts"],"sourcesContent":["import semver from \"semver\";\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport { version as coreVersion } from \"../../index.ts\";\nimport { assertSimpleType } from \"../caching.ts\";\nimport type {\n CacheConfigurator,\n SimpleCacheConfigurator,\n SimpleType,\n} from \"../caching.ts\";\n\nimport type { AssumptionName, CallerMetadata } from \"../validation/options.ts\";\n\nimport type * as Context from \"../cache-contexts\";\n\ntype EnvFunction = {\n (): string;\n (extractor: (babelEnv: string) => T): T;\n (envVar: string): boolean;\n (envVars: Array): boolean;\n};\n\ntype CallerFactory = {\n (\n extractor: (callerMetadata: CallerMetadata | undefined) => T,\n ): T;\n (\n extractor: (callerMetadata: CallerMetadata | undefined) => unknown,\n ): SimpleType;\n};\ntype TargetsFunction = () => Targets;\ntype AssumptionFunction = (name: AssumptionName) => boolean | undefined;\n\nexport type ConfigAPI = {\n version: string;\n cache: SimpleCacheConfigurator;\n env: EnvFunction;\n async: () => boolean;\n assertVersion: typeof assertVersion;\n caller?: CallerFactory;\n};\n\nexport type PresetAPI = {\n targets: TargetsFunction;\n addExternalDependency: (ref: string) => void;\n} & ConfigAPI;\n\nexport type PluginAPI = {\n assumption: AssumptionFunction;\n} & PresetAPI;\n\nexport function makeConfigAPI(\n cache: CacheConfigurator,\n): ConfigAPI {\n // TODO(@nicolo-ribaudo): If we remove the explicit type from `value`\n // and the `as any` type cast, TypeScript crashes in an infinite\n // recursion. After upgrading to TS4.7 and finishing the noImplicitAny\n // PR, we should check if it still crashes and report it to the TS team.\n const env: EnvFunction = ((\n value: string | string[] | ((babelEnv: string) => T),\n ) =>\n cache.using(data => {\n if (value === undefined) return data.envName;\n if (typeof value === \"function\") {\n return assertSimpleType(value(data.envName));\n }\n return (Array.isArray(value) ? value : [value]).some(entry => {\n if (typeof entry !== \"string\") {\n throw new Error(\"Unexpected non-string value\");\n }\n return entry === data.envName;\n });\n })) as any;\n\n const caller = (\n cb: (CallerMetadata: CallerMetadata | undefined) => SimpleType,\n ) => cache.using(data => assertSimpleType(cb(data.caller)));\n\n return {\n version: coreVersion,\n cache: cache.simple(),\n // Expose \".env()\" so people can easily get the same env that we expose using the \"env\" key.\n env,\n async: () => false,\n caller,\n assertVersion,\n };\n}\n\nexport function makePresetAPI(\n cache: CacheConfigurator,\n externalDependencies: Array,\n): PresetAPI {\n const targets = () =>\n // We are using JSON.parse/JSON.stringify because it's only possible to cache\n // primitive values. We can safely stringify the targets object because it\n // only contains strings as its properties.\n // Please make the Record and Tuple proposal happen!\n JSON.parse(cache.using(data => JSON.stringify(data.targets)));\n\n const addExternalDependency = (ref: string) => {\n externalDependencies.push(ref);\n };\n\n return { ...makeConfigAPI(cache), targets, addExternalDependency };\n}\n\nexport function makePluginAPI(\n cache: CacheConfigurator,\n externalDependencies: Array,\n): PluginAPI {\n const assumption = (name: string) =>\n cache.using(data => data.assumptions[name]);\n\n return { ...makePresetAPI(cache, externalDependencies), assumption };\n}\n\nfunction assertVersion(range: string | number): void {\n if (typeof range === \"number\") {\n if (!Number.isInteger(range)) {\n throw new Error(\"Expected string or integer value.\");\n }\n range = `^${range}.0.0-0`;\n }\n if (typeof range !== \"string\") {\n throw new Error(\"Expected string or integer value.\");\n }\n\n // We want \"*\" to also allow any pre-release, but we do not pass\n // the includePrerelease option to semver.satisfies because we\n // do not want ^7.0.0 to match 8.0.0-alpha.1.\n if (range === \"*\" || semver.satisfies(coreVersion, range)) return;\n\n const limit = Error.stackTraceLimit;\n\n if (typeof limit === \"number\" && limit < 25) {\n // Bump up the limit if needed so that users are more likely\n // to be able to see what is calling Babel.\n Error.stackTraceLimit = 25;\n }\n\n const err = new Error(\n `Requires Babel \"${range}\", but was loaded with \"${coreVersion}\". ` +\n `If you are sure you have a compatible version of @babel/core, ` +\n `it is likely that something in your build process is loading the ` +\n `wrong version. Inspect the stack trace of this error to look for ` +\n `the first entry that doesn't mention \"@babel/core\" or \"babel-core\" ` +\n `to see what is calling Babel.`,\n );\n\n if (typeof limit === \"number\") {\n Error.stackTraceLimit = limit;\n }\n\n throw Object.assign(err, {\n code: \"BABEL_VERSION_UNSUPPORTED\",\n version: coreVersion,\n range,\n });\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,IAAAE,MAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AA+CO,SAASG,aAAaA,CAC3BC,KAAqC,EAC1B;EAKX,MAAMC,GAAgB,GACpBC,KAAuD,IAEvDF,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI;IAClB,IAAIO,KAAK,KAAKE,SAAS,EAAE,OAAOT,IAAI,CAACU,OAAO;IAC5C,IAAI,OAAOH,KAAK,KAAK,UAAU,EAAE;MAC/B,OAAO,IAAAI,yBAAgB,EAACJ,KAAK,CAACP,IAAI,CAACU,OAAO,CAAC,CAAC;IAC9C;IACA,OAAO,CAACE,KAAK,CAACC,OAAO,CAACN,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC,EAAEO,IAAI,CAACC,KAAK,IAAI;MAC5D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC7B,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;MAChD;MACA,OAAOD,KAAK,KAAKf,IAAI,CAACU,OAAO;IAC/B,CAAC,CAAC;EACJ,CAAC,CAAS;EAEZ,MAAMO,MAAM,GACVC,EAA8D,IAC3Db,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI,IAAAW,yBAAgB,EAACO,EAAE,CAAClB,IAAI,CAACiB,MAAM,CAAC,CAAC,CAAC;EAE3D,OAAO;IACLE,OAAO,EAAEC,cAAW;IACpBf,KAAK,EAAEA,KAAK,CAACgB,MAAM,CAAC,CAAC;IAErBf,GAAG;IACHgB,KAAK,EAAEA,CAAA,KAAM,KAAK;IAClBL,MAAM;IACNM;EACF,CAAC;AACH;AAEO,SAASC,aAAaA,CAC3BnB,KAAqC,EACrCoB,oBAAmC,EACxB;EACX,MAAMC,OAAO,GAAGA,CAAA,KAKdC,IAAI,CAACC,KAAK,CAACvB,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI2B,IAAI,CAACE,SAAS,CAAC7B,IAAI,CAAC0B,OAAO,CAAC,CAAC,CAAC;EAE/D,MAAMI,qBAAqB,GAAIC,GAAW,IAAK;IAC7CN,oBAAoB,CAACO,IAAI,CAACD,GAAG,CAAC;EAChC,CAAC;EAED,OAAAE,MAAA,CAAAC,MAAA,KAAY9B,aAAa,CAACC,KAAK,CAAC;IAAEqB,OAAO;IAAEI;EAAqB;AAClE;AAEO,SAASK,aAAaA,CAC3B9B,KAAqC,EACrCoB,oBAAmC,EACxB;EACX,MAAMW,UAAU,GAAIC,IAAY,IAC9BhC,KAAK,CAACG,KAAK,CAACR,IAAI,IAAIA,IAAI,CAACsC,WAAW,CAACD,IAAI,CAAC,CAAC;EAE7C,OAAAJ,MAAA,CAAAC,MAAA,KAAYV,aAAa,CAACnB,KAAK,EAAEoB,oBAAoB,CAAC;IAAEW;EAAU;AACpE;AAEA,SAASb,aAAaA,CAACgB,KAAsB,EAAQ;EACnD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAI,CAACC,MAAM,CAACC,SAAS,CAACF,KAAK,CAAC,EAAE;MAC5B,MAAM,IAAIvB,KAAK,CAAC,mCAAmC,CAAC;IACtD;IACAuB,KAAK,GAAG,IAAIA,KAAK,QAAQ;EAC3B;EACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,MAAM,IAAIvB,KAAK,CAAC,mCAAmC,CAAC;EACtD;EAKA,IAAIuB,KAAK,KAAK,GAAG,IAAIG,QAAKA,CAAC,CAACC,SAAS,CAACvB,cAAW,EAAEmB,KAAK,CAAC,EAAE;EAE3D,MAAMK,KAAK,GAAG5B,KAAK,CAAC6B,eAAe;EAEnC,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,GAAG,EAAE,EAAE;IAG3C5B,KAAK,CAAC6B,eAAe,GAAG,EAAE;EAC5B;EAEA,MAAMC,GAAG,GAAG,IAAI9B,KAAK,CACnB,mBAAmBuB,KAAK,2BAA2BnB,cAAW,KAAK,GACjE,gEAAgE,GAChE,mEAAmE,GACnE,mEAAmE,GACnE,qEAAqE,GACrE,+BACJ,CAAC;EAED,IAAI,OAAOwB,KAAK,KAAK,QAAQ,EAAE;IAC7B5B,KAAK,CAAC6B,eAAe,GAAGD,KAAK;EAC/B;EAEA,MAAMX,MAAM,CAACC,MAAM,CAACY,GAAG,EAAE;IACvBC,IAAI,EAAE,2BAA2B;IACjC5B,OAAO,EAAEC,cAAW;IACpBmB;EACF,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_semver","data","require","_index","_caching","makeConfigAPI","cache","env","value","using","envName","assertSimpleType","Array","isArray","some","entry","Error","caller","cb","version","coreVersion","simple","async","assertVersion","makePresetAPI","externalDependencies","targets","JSON","parse","stringify","addExternalDependency","ref","push","Object","assign","makePluginAPI","assumption","name","assumptions","range","Number","isInteger","semver","satisfies","limit","stackTraceLimit","err","code"],"sources":["../../../src/config/helpers/config-api.ts"],"sourcesContent":["import semver from \"semver\";\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nimport { version as coreVersion } from \"../../index.ts\";\nimport { assertSimpleType } from \"../caching.ts\";\nimport type {\n CacheConfigurator,\n SimpleCacheConfigurator,\n SimpleType,\n} from \"../caching.ts\";\n\nimport type { AssumptionName, CallerMetadata } from \"../validation/options.ts\";\n\nimport type * as Context from \"../cache-contexts\";\n\ntype EnvFunction = {\n (): string;\n (extractor: (babelEnv: string) => T): T;\n (envVar: string): boolean;\n (envVars: Array): boolean;\n};\n\ntype CallerFactory = {\n (\n extractor: (callerMetadata: CallerMetadata | undefined) => T,\n ): T;\n (\n extractor: (callerMetadata: CallerMetadata | undefined) => unknown,\n ): SimpleType;\n};\ntype TargetsFunction = () => Targets;\ntype AssumptionFunction = (name: AssumptionName) => boolean | undefined;\n\nexport type ConfigAPI = {\n version: string;\n cache: SimpleCacheConfigurator;\n env: EnvFunction;\n async: () => boolean;\n assertVersion: typeof assertVersion;\n caller?: CallerFactory;\n};\n\nexport type PresetAPI = {\n targets: TargetsFunction;\n addExternalDependency: (ref: string) => void;\n} & ConfigAPI;\n\nexport type PluginAPI = {\n assumption: AssumptionFunction;\n} & PresetAPI;\n\nexport function makeConfigAPI(\n cache: CacheConfigurator,\n): ConfigAPI {\n // TODO(@nicolo-ribaudo): If we remove the explicit type from `value`\n // and the `as any` type cast, TypeScript crashes in an infinite\n // recursion. After upgrading to TS4.7 and finishing the noImplicitAny\n // PR, we should check if it still crashes and report it to the TS team.\n const env: EnvFunction = ((\n value: string | string[] | ((babelEnv: string) => T),\n ) =>\n cache.using(data => {\n if (typeof value === \"undefined\") return data.envName;\n if (typeof value === \"function\") {\n return assertSimpleType(value(data.envName));\n }\n return (Array.isArray(value) ? value : [value]).some(entry => {\n if (typeof entry !== \"string\") {\n throw new Error(\"Unexpected non-string value\");\n }\n return entry === data.envName;\n });\n })) as any;\n\n const caller = (\n cb: (CallerMetadata: CallerMetadata | undefined) => SimpleType,\n ) => cache.using(data => assertSimpleType(cb(data.caller)));\n\n return {\n version: coreVersion,\n cache: cache.simple(),\n // Expose \".env()\" so people can easily get the same env that we expose using the \"env\" key.\n env,\n async: () => false,\n caller,\n assertVersion,\n };\n}\n\nexport function makePresetAPI(\n cache: CacheConfigurator,\n externalDependencies: Array,\n): PresetAPI {\n const targets = () =>\n // We are using JSON.parse/JSON.stringify because it's only possible to cache\n // primitive values. We can safely stringify the targets object because it\n // only contains strings as its properties.\n // Please make the Record and Tuple proposal happen!\n JSON.parse(cache.using(data => JSON.stringify(data.targets)));\n\n const addExternalDependency = (ref: string) => {\n externalDependencies.push(ref);\n };\n\n return { ...makeConfigAPI(cache), targets, addExternalDependency };\n}\n\nexport function makePluginAPI(\n cache: CacheConfigurator,\n externalDependencies: Array,\n): PluginAPI {\n const assumption = (name: string) =>\n cache.using(data => data.assumptions[name]);\n\n return { ...makePresetAPI(cache, externalDependencies), assumption };\n}\n\nfunction assertVersion(range: string | number): void {\n if (typeof range === \"number\") {\n if (!Number.isInteger(range)) {\n throw new Error(\"Expected string or integer value.\");\n }\n range = `^${range}.0.0-0`;\n }\n if (typeof range !== \"string\") {\n throw new Error(\"Expected string or integer value.\");\n }\n\n // We want \"*\" to also allow any pre-release, but we do not pass\n // the includePrerelease option to semver.satisfies because we\n // do not want ^7.0.0 to match 8.0.0-alpha.1.\n if (range === \"*\" || semver.satisfies(coreVersion, range)) return;\n\n const limit = Error.stackTraceLimit;\n\n if (typeof limit === \"number\" && limit < 25) {\n // Bump up the limit if needed so that users are more likely\n // to be able to see what is calling Babel.\n Error.stackTraceLimit = 25;\n }\n\n const err = new Error(\n `Requires Babel \"${range}\", but was loaded with \"${coreVersion}\". ` +\n `If you are sure you have a compatible version of @babel/core, ` +\n `it is likely that something in your build process is loading the ` +\n `wrong version. Inspect the stack trace of this error to look for ` +\n `the first entry that doesn't mention \"@babel/core\" or \"babel-core\" ` +\n `to see what is calling Babel.`,\n );\n\n if (typeof limit === \"number\") {\n Error.stackTraceLimit = limit;\n }\n\n throw Object.assign(err, {\n code: \"BABEL_VERSION_UNSUPPORTED\",\n version: coreVersion,\n range,\n });\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,IAAAE,MAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AA+CO,SAASG,aAAaA,CAC3BC,KAAqC,EAC1B;EAKX,MAAMC,GAAgB,GACpBC,KAAuD,IAEvDF,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI;IAClB,IAAI,OAAOO,KAAK,KAAK,WAAW,EAAE,OAAOP,IAAI,CAACS,OAAO;IACrD,IAAI,OAAOF,KAAK,KAAK,UAAU,EAAE;MAC/B,OAAO,IAAAG,yBAAgB,EAACH,KAAK,CAACP,IAAI,CAACS,OAAO,CAAC,CAAC;IAC9C;IACA,OAAO,CAACE,KAAK,CAACC,OAAO,CAACL,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC,EAAEM,IAAI,CAACC,KAAK,IAAI;MAC5D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;QAC7B,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;MAChD;MACA,OAAOD,KAAK,KAAKd,IAAI,CAACS,OAAO;IAC/B,CAAC,CAAC;EACJ,CAAC,CAAS;EAEZ,MAAMO,MAAM,GACVC,EAA8D,IAC3DZ,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI,IAAAU,yBAAgB,EAACO,EAAE,CAACjB,IAAI,CAACgB,MAAM,CAAC,CAAC,CAAC;EAE3D,OAAO;IACLE,OAAO,EAAEC,cAAW;IACpBd,KAAK,EAAEA,KAAK,CAACe,MAAM,CAAC,CAAC;IAErBd,GAAG;IACHe,KAAK,EAAEA,CAAA,KAAM,KAAK;IAClBL,MAAM;IACNM;EACF,CAAC;AACH;AAEO,SAASC,aAAaA,CAC3BlB,KAAqC,EACrCmB,oBAAmC,EACxB;EACX,MAAMC,OAAO,GAAGA,CAAA,KAKdC,IAAI,CAACC,KAAK,CAACtB,KAAK,CAACG,KAAK,CAACR,IAAI,IAAI0B,IAAI,CAACE,SAAS,CAAC5B,IAAI,CAACyB,OAAO,CAAC,CAAC,CAAC;EAE/D,MAAMI,qBAAqB,GAAIC,GAAW,IAAK;IAC7CN,oBAAoB,CAACO,IAAI,CAACD,GAAG,CAAC;EAChC,CAAC;EAED,OAAAE,MAAA,CAAAC,MAAA,KAAY7B,aAAa,CAACC,KAAK,CAAC;IAAEoB,OAAO;IAAEI;EAAqB;AAClE;AAEO,SAASK,aAAaA,CAC3B7B,KAAqC,EACrCmB,oBAAmC,EACxB;EACX,MAAMW,UAAU,GAAIC,IAAY,IAC9B/B,KAAK,CAACG,KAAK,CAACR,IAAI,IAAIA,IAAI,CAACqC,WAAW,CAACD,IAAI,CAAC,CAAC;EAE7C,OAAAJ,MAAA,CAAAC,MAAA,KAAYV,aAAa,CAAClB,KAAK,EAAEmB,oBAAoB,CAAC;IAAEW;EAAU;AACpE;AAEA,SAASb,aAAaA,CAACgB,KAAsB,EAAQ;EACnD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAI,CAACC,MAAM,CAACC,SAAS,CAACF,KAAK,CAAC,EAAE;MAC5B,MAAM,IAAIvB,KAAK,CAAC,mCAAmC,CAAC;IACtD;IACAuB,KAAK,GAAG,IAAIA,KAAK,QAAQ;EAC3B;EACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,MAAM,IAAIvB,KAAK,CAAC,mCAAmC,CAAC;EACtD;EAKA,IAAIuB,KAAK,KAAK,GAAG,IAAIG,QAAKA,CAAC,CAACC,SAAS,CAACvB,cAAW,EAAEmB,KAAK,CAAC,EAAE;EAE3D,MAAMK,KAAK,GAAG5B,KAAK,CAAC6B,eAAe;EAEnC,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,GAAG,EAAE,EAAE;IAG3C5B,KAAK,CAAC6B,eAAe,GAAG,EAAE;EAC5B;EAEA,MAAMC,GAAG,GAAG,IAAI9B,KAAK,CACnB,mBAAmBuB,KAAK,2BAA2BnB,cAAW,KAAK,GACjE,gEAAgE,GAChE,mEAAmE,GACnE,mEAAmE,GACnE,qEAAqE,GACrE,+BACJ,CAAC;EAED,IAAI,OAAOwB,KAAK,KAAK,QAAQ,EAAE;IAC7B5B,KAAK,CAAC6B,eAAe,GAAGD,KAAK;EAC/B;EAEA,MAAMX,MAAM,CAACC,MAAM,CAACY,GAAG,EAAE;IACvBC,IAAI,EAAE,2BAA2B;IACjC5B,OAAO,EAAEC,cAAW;IACpBmB;EACF,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/index.js.map b/node_modules/@babel/core/lib/config/index.js.map index 05044a950..2abf03cd4 100644 --- a/node_modules/@babel/core/lib/config/index.js.map +++ b/node_modules/@babel/core/lib/config/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_gensync","data","require","_full","_partial","_item","_rewriteStackTrace","loadPartialConfigRunner","gensync","loadPartialConfigImpl","loadPartialConfigAsync","args","beginHiddenCallStack","async","loadPartialConfigSync","sync","loadPartialConfig","opts","callback","undefined","errback","loadOptionsImpl","_config$options","config","loadFullConfig","options","loadOptionsRunner","loadOptionsAsync","loadOptionsSync","loadOptions","createConfigItemRunner","createConfigItemImpl","createConfigItemAsync","createConfigItemSync","createConfigItem","target"],"sources":["../../src/config/index.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\n\nexport type {\n ResolvedConfig,\n InputOptions,\n PluginPasses,\n Plugin,\n} from \"./full.ts\";\n\nimport type { InputOptions, PluginTarget } from \"./validation/options.ts\";\nexport type { ConfigAPI } from \"./helpers/config-api.ts\";\nimport type {\n PluginAPI as basePluginAPI,\n PresetAPI as basePresetAPI,\n} from \"./helpers/config-api.ts\";\nexport type { PluginObject } from \"./validation/plugins.ts\";\ntype PluginAPI = basePluginAPI & typeof import(\"..\");\ntype PresetAPI = basePresetAPI & typeof import(\"..\");\nexport type { PluginAPI, PresetAPI };\n// todo: may need to refine PresetObject to be a subset of ValidatedOptions\nexport type {\n CallerMetadata,\n ValidatedOptions as PresetObject,\n} from \"./validation/options.ts\";\n\nimport loadFullConfig, { type ResolvedConfig } from \"./full.ts\";\nimport {\n type PartialConfig,\n loadPartialConfig as loadPartialConfigImpl,\n} from \"./partial.ts\";\n\nexport { loadFullConfig as default };\nexport type { PartialConfig } from \"./partial.ts\";\n\nimport { createConfigItem as createConfigItemImpl } from \"./item.ts\";\nimport type { ConfigItem } from \"./item.ts\";\nexport type { ConfigItem };\n\nimport { beginHiddenCallStack } from \"../errors/rewrite-stack-trace.ts\";\n\nconst loadPartialConfigRunner = gensync(loadPartialConfigImpl);\nexport function loadPartialConfigAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadPartialConfigRunner.async)(...args);\n}\nexport function loadPartialConfigSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadPartialConfigRunner.sync)(...args);\n}\nexport function loadPartialConfig(\n opts: Parameters[0],\n callback?: (err: Error, val: PartialConfig | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(loadPartialConfigRunner.errback)(opts, callback);\n } else if (typeof opts === \"function\") {\n beginHiddenCallStack(loadPartialConfigRunner.errback)(\n undefined,\n opts as (err: Error, val: PartialConfig | null) => void,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'loadPartialConfig' function expects a callback. If you need to call it synchronously, please use 'loadPartialConfigSync'.\",\n );\n } else {\n return loadPartialConfigSync(opts);\n }\n }\n}\n\nfunction* loadOptionsImpl(opts: InputOptions): Handler {\n const config = yield* loadFullConfig(opts);\n // NOTE: We want to return \"null\" explicitly, while ?. alone returns undefined\n return config?.options ?? null;\n}\nconst loadOptionsRunner = gensync(loadOptionsImpl);\nexport function loadOptionsAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadOptionsRunner.async)(...args);\n}\nexport function loadOptionsSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadOptionsRunner.sync)(...args);\n}\nexport function loadOptions(\n opts: Parameters[0],\n callback?: (err: Error, val: ResolvedConfig | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(loadOptionsRunner.errback)(opts, callback);\n } else if (typeof opts === \"function\") {\n beginHiddenCallStack(loadOptionsRunner.errback)(\n undefined,\n opts as (err: Error, val: ResolvedConfig | null) => void,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'loadOptions' function expects a callback. If you need to call it synchronously, please use 'loadOptionsSync'.\",\n );\n } else {\n return loadOptionsSync(opts);\n }\n }\n}\n\nconst createConfigItemRunner = gensync(createConfigItemImpl);\nexport function createConfigItemAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(createConfigItemRunner.async)(...args);\n}\nexport function createConfigItemSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(createConfigItemRunner.sync)(...args);\n}\nexport function createConfigItem(\n target: PluginTarget,\n options: Parameters[1],\n callback?: (err: Error, val: ConfigItem | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(createConfigItemRunner.errback)(\n target,\n options,\n callback,\n );\n } else if (typeof options === \"function\") {\n beginHiddenCallStack(createConfigItemRunner.errback)(\n target,\n undefined,\n callback,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'createConfigItem' function expects a callback. If you need to call it synchronously, please use 'createConfigItemSync'.\",\n );\n } else {\n return createConfigItemSync(target, options);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAyBA,IAAAE,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAQA,IAAAG,KAAA,GAAAH,OAAA;AAIA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,MAAMK,uBAAuB,GAAGC,SAAMA,CAAC,CAACC,0BAAqB,CAAC;AACvD,SAASC,sBAAsBA,CACpC,GAAGC,IAAsD,EACzD;EACA,OAAO,IAAAC,uCAAoB,EAACL,uBAAuB,CAACM,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AACrE;AACO,SAASG,qBAAqBA,CACnC,GAAGH,IAAqD,EACxD;EACA,OAAO,IAAAC,uCAAoB,EAACL,uBAAuB,CAACQ,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AACpE;AACO,SAASK,iBAAiBA,CAC/BC,IAAiD,EACjDC,QAA0D,EAC1D;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACL,uBAAuB,CAACa,OAAO,CAAC,CAACH,IAAI,EAAEC,QAAQ,CAAC;EACvE,CAAC,MAAM,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IACrC,IAAAL,uCAAoB,EAACL,uBAAuB,CAACa,OAAO,CAAC,CACnDD,SAAS,EACTF,IACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOH,qBAAqB,CAACG,IAAI,CAAC;IACpC;EACF;AACF;AAEA,UAAUI,eAAeA,CAACJ,IAAkB,EAAkC;EAAA,IAAAK,eAAA;EAC5E,MAAMC,MAAM,GAAG,OAAO,IAAAC,aAAc,EAACP,IAAI,CAAC;EAE1C,QAAAK,eAAA,GAAOC,MAAM,oBAANA,MAAM,CAAEE,OAAO,YAAAH,eAAA,GAAI,IAAI;AAChC;AACA,MAAMI,iBAAiB,GAAGlB,SAAMA,CAAC,CAACa,eAAe,CAAC;AAC3C,SAASM,gBAAgBA,CAC9B,GAAGhB,IAAgD,EACnD;EACA,OAAO,IAAAC,uCAAoB,EAACc,iBAAiB,CAACb,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AAC/D;AACO,SAASiB,eAAeA,CAC7B,GAAGjB,IAA+C,EAClD;EACA,OAAO,IAAAC,uCAAoB,EAACc,iBAAiB,CAACX,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AAC9D;AACO,SAASkB,WAAWA,CACzBZ,IAA2C,EAC3CC,QAA2D,EAC3D;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACc,iBAAiB,CAACN,OAAO,CAAC,CAACH,IAAI,EAAEC,QAAQ,CAAC;EACjE,CAAC,MAAM,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IACrC,IAAAL,uCAAoB,EAACc,iBAAiB,CAACN,OAAO,CAAC,CAC7CD,SAAS,EACTF,IACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOW,eAAe,CAACX,IAAI,CAAC;IAC9B;EACF;AACF;AAEA,MAAMa,sBAAsB,GAAGtB,SAAMA,CAAC,CAACuB,sBAAoB,CAAC;AACrD,SAASC,qBAAqBA,CACnC,GAAGrB,IAAqD,EACxD;EACA,OAAO,IAAAC,uCAAoB,EAACkB,sBAAsB,CAACjB,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AACpE;AACO,SAASsB,oBAAoBA,CAClC,GAAGtB,IAAoD,EACvD;EACA,OAAO,IAAAC,uCAAoB,EAACkB,sBAAsB,CAACf,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AACnE;AACO,SAASuB,gBAAgBA,CAC9BC,MAAoB,EACpBV,OAAmD,EACnDP,QAAkE,EAClE;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACkB,sBAAsB,CAACV,OAAO,CAAC,CAClDe,MAAM,EACNV,OAAO,EACPP,QACF,CAAC;EACH,CAAC,MAAM,IAAI,OAAOO,OAAO,KAAK,UAAU,EAAE;IACxC,IAAAb,uCAAoB,EAACkB,sBAAsB,CAACV,OAAO,CAAC,CAClDe,MAAM,EACNhB,SAAS,EACTD,QACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOe,oBAAoB,CAACE,MAAM,EAAEV,OAAO,CAAC;IAC9C;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_gensync","data","require","_full","_partial","_item","_rewriteStackTrace","loadPartialConfigRunner","gensync","loadPartialConfigImpl","loadPartialConfigAsync","args","beginHiddenCallStack","async","loadPartialConfigSync","sync","loadPartialConfig","opts","callback","undefined","errback","loadOptionsImpl","_config$options","config","loadFullConfig","options","loadOptionsRunner","loadOptionsAsync","loadOptionsSync","loadOptions","createConfigItemRunner","createConfigItemImpl","createConfigItemAsync","createConfigItemSync","createConfigItem","target"],"sources":["../../src/config/index.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\n\nexport type {\n ResolvedConfig,\n InputOptions,\n PluginPasses,\n Plugin,\n} from \"./full.ts\";\n\nimport type { PluginTarget } from \"./validation/options.ts\";\n\nimport type {\n PluginAPI as basePluginAPI,\n PresetAPI as basePresetAPI,\n} from \"./helpers/config-api.ts\";\nexport type { PluginObject } from \"./validation/plugins.ts\";\ntype PluginAPI = basePluginAPI & typeof import(\"..\");\ntype PresetAPI = basePresetAPI & typeof import(\"..\");\nexport type { PluginAPI, PresetAPI };\n// todo: may need to refine PresetObject to be a subset of ValidatedOptions\nexport type {\n CallerMetadata,\n ValidatedOptions as PresetObject,\n} from \"./validation/options.ts\";\n\nimport loadFullConfig, { type ResolvedConfig } from \"./full.ts\";\nimport {\n type PartialConfig,\n loadPartialConfig as loadPartialConfigImpl,\n} from \"./partial.ts\";\n\nexport { loadFullConfig as default };\nexport type { PartialConfig } from \"./partial.ts\";\n\nimport { createConfigItem as createConfigItemImpl } from \"./item.ts\";\nimport type { ConfigItem } from \"./item.ts\";\nexport type { ConfigItem };\n\nimport { beginHiddenCallStack } from \"../errors/rewrite-stack-trace.ts\";\n\nconst loadPartialConfigRunner = gensync(loadPartialConfigImpl);\nexport function loadPartialConfigAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadPartialConfigRunner.async)(...args);\n}\nexport function loadPartialConfigSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadPartialConfigRunner.sync)(...args);\n}\nexport function loadPartialConfig(\n opts: Parameters[0],\n callback?: (err: Error, val: PartialConfig | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(loadPartialConfigRunner.errback)(opts, callback);\n } else if (typeof opts === \"function\") {\n beginHiddenCallStack(loadPartialConfigRunner.errback)(\n undefined,\n opts as (err: Error, val: PartialConfig | null) => void,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'loadPartialConfig' function expects a callback. If you need to call it synchronously, please use 'loadPartialConfigSync'.\",\n );\n } else {\n return loadPartialConfigSync(opts);\n }\n }\n}\n\nfunction* loadOptionsImpl(opts: unknown): Handler {\n const config = yield* loadFullConfig(opts);\n // NOTE: We want to return \"null\" explicitly, while ?. alone returns undefined\n return config?.options ?? null;\n}\nconst loadOptionsRunner = gensync(loadOptionsImpl);\nexport function loadOptionsAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadOptionsRunner.async)(...args);\n}\nexport function loadOptionsSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(loadOptionsRunner.sync)(...args);\n}\nexport function loadOptions(\n opts: Parameters[0],\n callback?: (err: Error, val: ResolvedConfig | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(loadOptionsRunner.errback)(opts, callback);\n } else if (typeof opts === \"function\") {\n beginHiddenCallStack(loadOptionsRunner.errback)(\n undefined,\n opts as (err: Error, val: ResolvedConfig | null) => void,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'loadOptions' function expects a callback. If you need to call it synchronously, please use 'loadOptionsSync'.\",\n );\n } else {\n return loadOptionsSync(opts);\n }\n }\n}\n\nconst createConfigItemRunner = gensync(createConfigItemImpl);\nexport function createConfigItemAsync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(createConfigItemRunner.async)(...args);\n}\nexport function createConfigItemSync(\n ...args: Parameters\n) {\n return beginHiddenCallStack(createConfigItemRunner.sync)(...args);\n}\nexport function createConfigItem(\n target: PluginTarget,\n options: Parameters[1],\n callback?: (err: Error, val: ConfigItem | null) => void,\n) {\n if (callback !== undefined) {\n beginHiddenCallStack(createConfigItemRunner.errback)(\n target,\n options,\n callback,\n );\n } else if (typeof options === \"function\") {\n beginHiddenCallStack(createConfigItemRunner.errback)(\n target,\n undefined,\n callback,\n );\n } else {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'createConfigItem' function expects a callback. If you need to call it synchronously, please use 'createConfigItemSync'.\",\n );\n } else {\n return createConfigItemSync(target, options);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAyBA,IAAAE,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAQA,IAAAG,KAAA,GAAAH,OAAA;AAIA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,MAAMK,uBAAuB,GAAGC,SAAMA,CAAC,CAACC,0BAAqB,CAAC;AACvD,SAASC,sBAAsBA,CACpC,GAAGC,IAAsD,EACzD;EACA,OAAO,IAAAC,uCAAoB,EAACL,uBAAuB,CAACM,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AACrE;AACO,SAASG,qBAAqBA,CACnC,GAAGH,IAAqD,EACxD;EACA,OAAO,IAAAC,uCAAoB,EAACL,uBAAuB,CAACQ,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AACpE;AACO,SAASK,iBAAiBA,CAC/BC,IAAiD,EACjDC,QAA0D,EAC1D;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACL,uBAAuB,CAACa,OAAO,CAAC,CAACH,IAAI,EAAEC,QAAQ,CAAC;EACvE,CAAC,MAAM,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IACrC,IAAAL,uCAAoB,EAACL,uBAAuB,CAACa,OAAO,CAAC,CACnDD,SAAS,EACTF,IACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOH,qBAAqB,CAACG,IAAI,CAAC;IACpC;EACF;AACF;AAEA,UAAUI,eAAeA,CAACJ,IAAa,EAAkC;EAAA,IAAAK,eAAA;EACvE,MAAMC,MAAM,GAAG,OAAO,IAAAC,aAAc,EAACP,IAAI,CAAC;EAE1C,QAAAK,eAAA,GAAOC,MAAM,oBAANA,MAAM,CAAEE,OAAO,YAAAH,eAAA,GAAI,IAAI;AAChC;AACA,MAAMI,iBAAiB,GAAGlB,SAAMA,CAAC,CAACa,eAAe,CAAC;AAC3C,SAASM,gBAAgBA,CAC9B,GAAGhB,IAAgD,EACnD;EACA,OAAO,IAAAC,uCAAoB,EAACc,iBAAiB,CAACb,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AAC/D;AACO,SAASiB,eAAeA,CAC7B,GAAGjB,IAA+C,EAClD;EACA,OAAO,IAAAC,uCAAoB,EAACc,iBAAiB,CAACX,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AAC9D;AACO,SAASkB,WAAWA,CACzBZ,IAA2C,EAC3CC,QAA2D,EAC3D;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACc,iBAAiB,CAACN,OAAO,CAAC,CAACH,IAAI,EAAEC,QAAQ,CAAC;EACjE,CAAC,MAAM,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IACrC,IAAAL,uCAAoB,EAACc,iBAAiB,CAACN,OAAO,CAAC,CAC7CD,SAAS,EACTF,IACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOW,eAAe,CAACX,IAAI,CAAC;IAC9B;EACF;AACF;AAEA,MAAMa,sBAAsB,GAAGtB,SAAMA,CAAC,CAACuB,sBAAoB,CAAC;AACrD,SAASC,qBAAqBA,CACnC,GAAGrB,IAAqD,EACxD;EACA,OAAO,IAAAC,uCAAoB,EAACkB,sBAAsB,CAACjB,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AACpE;AACO,SAASsB,oBAAoBA,CAClC,GAAGtB,IAAoD,EACvD;EACA,OAAO,IAAAC,uCAAoB,EAACkB,sBAAsB,CAACf,IAAI,CAAC,CAAC,GAAGJ,IAAI,CAAC;AACnE;AACO,SAASuB,gBAAgBA,CAC9BC,MAAoB,EACpBV,OAAmD,EACnDP,QAAkE,EAClE;EACA,IAAIA,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAAP,uCAAoB,EAACkB,sBAAsB,CAACV,OAAO,CAAC,CAClDe,MAAM,EACNV,OAAO,EACPP,QACF,CAAC;EACH,CAAC,MAAM,IAAI,OAAOO,OAAO,KAAK,UAAU,EAAE;IACxC,IAAAb,uCAAoB,EAACkB,sBAAsB,CAACV,OAAO,CAAC,CAClDe,MAAM,EACNhB,SAAS,EACTD,QACF,CAAC;EACH,CAAC,MAAM;IAKE;MACL,OAAOe,oBAAoB,CAACE,MAAM,EAAEV,OAAO,CAAC;IAC9C;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/item.js.map b/node_modules/@babel/core/lib/config/item.js.map index 877504d48..ca1278535 100644 --- a/node_modules/@babel/core/lib/config/item.js.map +++ b/node_modules/@babel/core/lib/config/item.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","_configDescriptors","createItemFromDescriptor","desc","ConfigItem","createConfigItem","value","dirname","type","descriptor","createDescriptor","path","resolve","alias","CONFIG_ITEM_BRAND","Symbol","for","getItemDescriptor","item","_descriptor","undefined","constructor","options","name","file","Object","defineProperty","enumerable","request","resolved","freeze","prototype"],"sources":["../../src/config/item.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport type { PluginTarget, PluginOptions } from \"./validation/options.ts\";\n\nimport path from \"node:path\";\nimport { createDescriptor } from \"./config-descriptors.ts\";\n\nimport type { UnloadedDescriptor } from \"./config-descriptors.ts\";\n\nexport function createItemFromDescriptor(\n desc: UnloadedDescriptor,\n): ConfigItem {\n return new ConfigItem(desc);\n}\n\n/**\n * Create a config item using the same value format used in Babel's config\n * files. Items returned from this function should be cached by the caller\n * ideally, as recreating the config item will mean re-resolving the item\n * and re-evaluating the plugin/preset function.\n */\nexport function* createConfigItem(\n value:\n | PluginTarget\n | [PluginTarget, PluginOptions]\n | [PluginTarget, PluginOptions, string | void],\n {\n dirname = \".\",\n type,\n }: {\n dirname?: string;\n type?: \"preset\" | \"plugin\";\n } = {},\n): Handler> {\n const descriptor = yield* createDescriptor(value, path.resolve(dirname), {\n type,\n alias: \"programmatic item\",\n });\n\n return createItemFromDescriptor(descriptor);\n}\n\nconst CONFIG_ITEM_BRAND = Symbol.for(\"@babel/core@7 - ConfigItem\");\n\nexport function getItemDescriptor(\n item: unknown,\n): UnloadedDescriptor | void {\n if ((item as any)?.[CONFIG_ITEM_BRAND]) {\n return (item as ConfigItem)._descriptor;\n }\n\n return undefined;\n}\n\nexport type { ConfigItem };\n\n/**\n * A public representation of a plugin/preset that will _eventually_ be load.\n * Users can use this to interact with the results of a loaded Babel\n * configuration.\n *\n * Any changes to public properties of this class should be considered a\n * breaking change to Babel's API.\n */\nclass ConfigItem {\n /**\n * The private underlying descriptor that Babel actually cares about.\n * If you access this, you are a bad person.\n */\n _descriptor: UnloadedDescriptor;\n\n // TODO(Babel 9): Check if this symbol needs to be updated\n /**\n * Used to detect ConfigItem instances from other Babel instances.\n */\n [CONFIG_ITEM_BRAND] = true;\n\n /**\n * The resolved value of the item itself.\n */\n value: object | Function;\n\n /**\n * The options, if any, that were passed to the item.\n * Mutating this will lead to undefined behavior.\n *\n * \"false\" means that this item has been disabled.\n */\n options: object | void | false;\n\n /**\n * The directory that the options for this item are relative to.\n */\n dirname: string;\n\n /**\n * Get the name of the plugin, if the user gave it one.\n */\n name: string | void;\n\n /**\n * Data about the file that the item was loaded from, if Babel knows it.\n */\n file: {\n // The requested path, e.g. \"@babel/env\".\n request: string;\n // The resolved absolute path of the file.\n resolved: string;\n } | void;\n\n constructor(descriptor: UnloadedDescriptor) {\n // Make people less likely to stumble onto this if they are exploring\n // programmatically, and also make sure that if people happen to\n // pass the item through JSON.stringify, it doesn't show up.\n this._descriptor = descriptor;\n Object.defineProperty(this, \"_descriptor\", { enumerable: false });\n\n Object.defineProperty(this, CONFIG_ITEM_BRAND, { enumerable: false });\n\n this.value = this._descriptor.value;\n this.options = this._descriptor.options;\n this.dirname = this._descriptor.dirname;\n this.name = this._descriptor.name;\n this.file = this._descriptor.file\n ? {\n request: this._descriptor.file.request,\n resolved: this._descriptor.file.resolved,\n }\n : undefined;\n\n // Freeze the object to make it clear that people shouldn't expect mutating\n // this object to do anything. A new item should be created if they want\n // to change something.\n Object.freeze(this);\n }\n}\n\nObject.freeze(ConfigItem.prototype);\n"],"mappings":";;;;;;;;AAGA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAE,kBAAA,GAAAD,OAAA;AAIO,SAASE,wBAAwBA,CACtCC,IAA6B,EACZ;EACjB,OAAO,IAAIC,UAAU,CAACD,IAAI,CAAC;AAC7B;AAQO,UAAUE,gBAAgBA,CAC/BC,KAGgD,EAChD;EACEC,OAAO,GAAG,GAAG;EACbC;AAIF,CAAC,GAAG,CAAC,CAAC,EACoB;EAC1B,MAAMC,UAAU,GAAG,OAAO,IAAAC,mCAAgB,EAACJ,KAAK,EAAEK,MAAGA,CAAC,CAACC,OAAO,CAACL,OAAO,CAAC,EAAE;IACvEC,IAAI;IACJK,KAAK,EAAE;EACT,CAAC,CAAC;EAEF,OAAOX,wBAAwB,CAACO,UAAU,CAAC;AAC7C;AAEA,MAAMK,iBAAiB,GAAGC,MAAM,CAACC,GAAG,CAAC,4BAA4B,CAAC;AAE3D,SAASC,iBAAiBA,CAC/BC,IAAa,EACmB;EAChC,IAAKA,IAAI,YAAJA,IAAI,CAAWJ,iBAAiB,CAAC,EAAE;IACtC,OAAQI,IAAI,CAAqBC,WAAW;EAC9C;EAEA,OAAOC,SAAS;AAClB;AAYA,MAAMhB,UAAU,CAAM;EA8CpBiB,WAAWA,CAACZ,UAAmC,EAAE;IAAA,KAzCjDU,WAAW;IAAA,KAMVL,iBAAiB,IAAI,IAAI;IAAA,KAK1BR,KAAK;IAAA,KAQLgB,OAAO;IAAA,KAKPf,OAAO;IAAA,KAKPgB,IAAI;IAAA,KAKJC,IAAI;IAWF,IAAI,CAACL,WAAW,GAAGV,UAAU;IAC7BgB,MAAM,CAACC,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE;MAAEC,UAAU,EAAE;IAAM,CAAC,CAAC;IAEjEF,MAAM,CAACC,cAAc,CAAC,IAAI,EAAEZ,iBAAiB,EAAE;MAAEa,UAAU,EAAE;IAAM,CAAC,CAAC;IAErE,IAAI,CAACrB,KAAK,GAAG,IAAI,CAACa,WAAW,CAACb,KAAK;IACnC,IAAI,CAACgB,OAAO,GAAG,IAAI,CAACH,WAAW,CAACG,OAAO;IACvC,IAAI,CAACf,OAAO,GAAG,IAAI,CAACY,WAAW,CAACZ,OAAO;IACvC,IAAI,CAACgB,IAAI,GAAG,IAAI,CAACJ,WAAW,CAACI,IAAI;IACjC,IAAI,CAACC,IAAI,GAAG,IAAI,CAACL,WAAW,CAACK,IAAI,GAC7B;MACEI,OAAO,EAAE,IAAI,CAACT,WAAW,CAACK,IAAI,CAACI,OAAO;MACtCC,QAAQ,EAAE,IAAI,CAACV,WAAW,CAACK,IAAI,CAACK;IAClC,CAAC,GACDT,SAAS;IAKbK,MAAM,CAACK,MAAM,CAAC,IAAI,CAAC;EACrB;AACF;AAEAL,MAAM,CAACK,MAAM,CAAC1B,UAAU,CAAC2B,SAAS,CAAC;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","_configDescriptors","createItemFromDescriptor","desc","ConfigItem","createConfigItem","value","dirname","type","descriptor","createDescriptor","path","resolve","alias","CONFIG_ITEM_BRAND","Symbol","for","getItemDescriptor","item","_descriptor","undefined","constructor","options","name","file","Object","defineProperty","enumerable","request","resolved","freeze","prototype"],"sources":["../../src/config/item.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport type { PluginTarget, PluginOptions } from \"./validation/options.ts\";\n\nimport path from \"path\";\nimport { createDescriptor } from \"./config-descriptors.ts\";\n\nimport type { UnloadedDescriptor } from \"./config-descriptors.ts\";\n\nexport function createItemFromDescriptor(\n desc: UnloadedDescriptor,\n): ConfigItem {\n return new ConfigItem(desc);\n}\n\n/**\n * Create a config item using the same value format used in Babel's config\n * files. Items returned from this function should be cached by the caller\n * ideally, as recreating the config item will mean re-resolving the item\n * and re-evaluating the plugin/preset function.\n */\nexport function* createConfigItem(\n value:\n | PluginTarget\n | [PluginTarget, PluginOptions]\n | [PluginTarget, PluginOptions, string | void],\n {\n dirname = \".\",\n type,\n }: {\n dirname?: string;\n type?: \"preset\" | \"plugin\";\n } = {},\n): Handler> {\n const descriptor = yield* createDescriptor(value, path.resolve(dirname), {\n type,\n alias: \"programmatic item\",\n });\n\n return createItemFromDescriptor(descriptor);\n}\n\nconst CONFIG_ITEM_BRAND = Symbol.for(\"@babel/core@7 - ConfigItem\");\n\nexport function getItemDescriptor(\n item: unknown,\n): UnloadedDescriptor | void {\n if ((item as any)?.[CONFIG_ITEM_BRAND]) {\n return (item as ConfigItem)._descriptor;\n }\n\n return undefined;\n}\n\nexport type { ConfigItem };\n\n/**\n * A public representation of a plugin/preset that will _eventually_ be load.\n * Users can use this to interact with the results of a loaded Babel\n * configuration.\n *\n * Any changes to public properties of this class should be considered a\n * breaking change to Babel's API.\n */\nclass ConfigItem {\n /**\n * The private underlying descriptor that Babel actually cares about.\n * If you access this, you are a bad person.\n */\n _descriptor: UnloadedDescriptor;\n\n // TODO(Babel 9): Check if this symbol needs to be updated\n /**\n * Used to detect ConfigItem instances from other Babel instances.\n */\n [CONFIG_ITEM_BRAND] = true;\n\n /**\n * The resolved value of the item itself.\n */\n value: object | Function;\n\n /**\n * The options, if any, that were passed to the item.\n * Mutating this will lead to undefined behavior.\n *\n * \"false\" means that this item has been disabled.\n */\n options: object | void | false;\n\n /**\n * The directory that the options for this item are relative to.\n */\n dirname: string;\n\n /**\n * Get the name of the plugin, if the user gave it one.\n */\n name: string | void;\n\n /**\n * Data about the file that the item was loaded from, if Babel knows it.\n */\n file: {\n // The requested path, e.g. \"@babel/env\".\n request: string;\n // The resolved absolute path of the file.\n resolved: string;\n } | void;\n\n constructor(descriptor: UnloadedDescriptor) {\n // Make people less likely to stumble onto this if they are exploring\n // programmatically, and also make sure that if people happen to\n // pass the item through JSON.stringify, it doesn't show up.\n this._descriptor = descriptor;\n Object.defineProperty(this, \"_descriptor\", { enumerable: false });\n\n Object.defineProperty(this, CONFIG_ITEM_BRAND, { enumerable: false });\n\n this.value = this._descriptor.value;\n this.options = this._descriptor.options;\n this.dirname = this._descriptor.dirname;\n this.name = this._descriptor.name;\n this.file = this._descriptor.file\n ? {\n request: this._descriptor.file.request,\n resolved: this._descriptor.file.resolved,\n }\n : undefined;\n\n // Freeze the object to make it clear that people shouldn't expect mutating\n // this object to do anything. A new item should be created if they want\n // to change something.\n Object.freeze(this);\n }\n}\n\nObject.freeze(ConfigItem.prototype);\n"],"mappings":";;;;;;;;AAGA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAE,kBAAA,GAAAD,OAAA;AAIO,SAASE,wBAAwBA,CACtCC,IAA6B,EACZ;EACjB,OAAO,IAAIC,UAAU,CAACD,IAAI,CAAC;AAC7B;AAQO,UAAUE,gBAAgBA,CAC/BC,KAGgD,EAChD;EACEC,OAAO,GAAG,GAAG;EACbC;AAIF,CAAC,GAAG,CAAC,CAAC,EACoB;EAC1B,MAAMC,UAAU,GAAG,OAAO,IAAAC,mCAAgB,EAACJ,KAAK,EAAEK,MAAGA,CAAC,CAACC,OAAO,CAACL,OAAO,CAAC,EAAE;IACvEC,IAAI;IACJK,KAAK,EAAE;EACT,CAAC,CAAC;EAEF,OAAOX,wBAAwB,CAACO,UAAU,CAAC;AAC7C;AAEA,MAAMK,iBAAiB,GAAGC,MAAM,CAACC,GAAG,CAAC,4BAA4B,CAAC;AAE3D,SAASC,iBAAiBA,CAC/BC,IAAa,EACmB;EAChC,IAAKA,IAAI,YAAJA,IAAI,CAAWJ,iBAAiB,CAAC,EAAE;IACtC,OAAQI,IAAI,CAAqBC,WAAW;EAC9C;EAEA,OAAOC,SAAS;AAClB;AAYA,MAAMhB,UAAU,CAAM;EA8CpBiB,WAAWA,CAACZ,UAAmC,EAAE;IAAA,KAzCjDU,WAAW;IAAA,KAMVL,iBAAiB,IAAI,IAAI;IAAA,KAK1BR,KAAK;IAAA,KAQLgB,OAAO;IAAA,KAKPf,OAAO;IAAA,KAKPgB,IAAI;IAAA,KAKJC,IAAI;IAWF,IAAI,CAACL,WAAW,GAAGV,UAAU;IAC7BgB,MAAM,CAACC,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE;MAAEC,UAAU,EAAE;IAAM,CAAC,CAAC;IAEjEF,MAAM,CAACC,cAAc,CAAC,IAAI,EAAEZ,iBAAiB,EAAE;MAAEa,UAAU,EAAE;IAAM,CAAC,CAAC;IAErE,IAAI,CAACrB,KAAK,GAAG,IAAI,CAACa,WAAW,CAACb,KAAK;IACnC,IAAI,CAACgB,OAAO,GAAG,IAAI,CAACH,WAAW,CAACG,OAAO;IACvC,IAAI,CAACf,OAAO,GAAG,IAAI,CAACY,WAAW,CAACZ,OAAO;IACvC,IAAI,CAACgB,IAAI,GAAG,IAAI,CAACJ,WAAW,CAACI,IAAI;IACjC,IAAI,CAACC,IAAI,GAAG,IAAI,CAACL,WAAW,CAACK,IAAI,GAC7B;MACEI,OAAO,EAAE,IAAI,CAACT,WAAW,CAACK,IAAI,CAACI,OAAO;MACtCC,QAAQ,EAAE,IAAI,CAACV,WAAW,CAACK,IAAI,CAACK;IAClC,CAAC,GACDT,SAAS;IAKbK,MAAM,CAACK,MAAM,CAAC,IAAI,CAAC;EACrB;AACF;AAEAL,MAAM,CAACK,MAAM,CAAC1B,UAAU,CAAC2B,SAAS,CAAC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/partial.js b/node_modules/@babel/core/lib/config/partial.js index a5a2f656e..5874ad99b 100644 --- a/node_modules/@babel/core/lib/config/partial.js +++ b/node_modules/@babel/core/lib/config/partial.js @@ -21,7 +21,7 @@ var _options = require("./validation/options.js"); var _index = require("./files/index.js"); var _resolveTargets = require("./resolve-targets.js"); const _excluded = ["showIgnoredFiles"]; -function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; } +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function resolveRootMode(rootDir, rootMode) { switch (rootMode) { case "root": diff --git a/node_modules/@babel/core/lib/config/partial.js.map b/node_modules/@babel/core/lib/config/partial.js.map index 6115e5510..de50fdbf4 100644 --- a/node_modules/@babel/core/lib/config/partial.js.map +++ b/node_modules/@babel/core/lib/config/partial.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","r","e","t","n","hasOwnProperty","call","indexOf","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","Object","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n InputOptions,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\nexport type PrivPartialConfig = {\n showIgnoredFiles?: boolean;\n options: NormalizedOptions;\n context: ConfigContext;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n ignore: IgnoreFile | void;\n fileHandling: FileHandling;\n files: Set;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: InputOptions,\n): Handler {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\nexport function* loadPartialConfig(\n opts?: InputOptions,\n): Handler {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AASA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,gBAAAC,CAAA,IAAAH,CAAA,SAAAI,cAAA,CAAAC,IAAA,CAAAL,CAAA,EAAAG,CAAA,gBAAAF,CAAA,CAAAK,OAAA,CAAAH,CAAA,aAAAD,CAAA,CAAAC,CAAA,IAAAH,CAAA,CAAAG,CAAA,YAAAD,CAAA;AAEtD,SAASK,eAAeA,CAACC,OAAe,EAAEC,QAAkB,EAAU;EACpE,QAAQA,QAAQ;IACd,KAAK,MAAM;MACT,OAAOD,OAAO;IAEhB,KAAK,iBAAiB;MAAE;QACtB,MAAME,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,OAAOE,aAAa,KAAK,IAAI,GAAGF,OAAO,GAAGE,aAAa;MACzD;IAEA,KAAK,QAAQ;MAAE;QACb,MAAMA,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,IAAIE,aAAa,KAAK,IAAI,EAAE,OAAOA,aAAa;QAEhD,MAAME,MAAM,CAACC,MAAM,CACjB,IAAIC,KAAK,CACP,4DAA4D,GAC1D,wCAAwCN,OAAO,MAAM,GACrD,mEAAmE,GACnE,IAAIO,4BAAqB,CAACC,IAAI,CAAC,IAAI,CAAC,IACxC,CAAC,EACD;UACEC,IAAI,EAAE,sBAAsB;UAC5BC,OAAO,EAAEV;QACX,CACF,CAAC;MACH;IACA;MACE,MAAM,IAAIM,KAAK,CAAC,6CAA6C,CAAC;EAClE;AACF;AAae,UAAUK,wBAAwBA,CAC/CC,SAAuB,EACY;EACnC,IACEA,SAAS,IAAI,IAAI,KAChB,OAAOA,SAAS,KAAK,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACF,SAAS,CAAC,CAAC,EAC3D;IACA,MAAM,IAAIN,KAAK,CAAC,qDAAqD,CAAC;EACxE;EAEA,MAAMS,IAAI,GAAGH,SAAS,GAAG,IAAAI,iBAAQ,EAAC,WAAW,EAAEJ,SAAS,CAAC,GAAG,CAAC,CAAC;EAE9D,MAAM;IACJK,OAAO,GAAG,IAAAC,mBAAM,EAAC,CAAC;IAClBC,GAAG,GAAG,GAAG;IACTC,IAAI,EAAEpB,OAAO,GAAG,GAAG;IACnBC,QAAQ,GAAG,MAAM;IACjBoB,MAAM;IACNC,aAAa,GAAG;EAClB,CAAC,GAAGP,IAAI;EACR,MAAMQ,WAAW,GAAGC,MAAGA,CAAC,CAACC,OAAO,CAACN,GAAG,CAAC;EACrC,MAAMO,eAAe,GAAG3B,eAAe,CACrCyB,MAAGA,CAAC,CAACC,OAAO,CAACF,WAAW,EAAEvB,OAAO,CAAC,EAClCC,QACF,CAAC;EAED,MAAM0B,QAAQ,GACZ,OAAOZ,IAAI,CAACY,QAAQ,KAAK,QAAQ,GAC7BH,MAAGA,CAAC,CAACC,OAAO,CAACN,GAAG,EAAEJ,IAAI,CAACY,QAAQ,CAAC,GAChCC,SAAS;EAEf,MAAMC,cAAc,GAAG,OAAO,IAAAC,4BAAqB,EAACP,WAAW,CAAC;EAEhE,MAAMQ,OAAsB,GAAG;IAC7BJ,QAAQ;IACRR,GAAG,EAAEI,WAAW;IAChBH,IAAI,EAAEM,eAAe;IACrBT,OAAO;IACPI,MAAM;IACNW,UAAU,EAAEH,cAAc,KAAKF;EACjC,CAAC;EAED,MAAMM,WAAW,GAAG,OAAO,IAAAC,2BAAc,EAACnB,IAAI,EAAEgB,OAAO,CAAC;EACxD,IAAI,CAACE,WAAW,EAAE,OAAO,IAAI;EAE7B,MAAME,MAAwB,GAAG;IAC/BC,WAAW,EAAE,CAAC;EAChB,CAAC;EACDH,WAAW,CAACI,OAAO,CAACC,OAAO,CAACC,IAAI,IAAI;IAClC,IAAAC,kBAAY,EAACL,MAAM,EAASI,IAAI,CAAC;EACnC,CAAC,CAAC;EAEF,MAAMF,OAA0B,GAAAjC,MAAA,CAAAC,MAAA,KAC3B8B,MAAM;IACTM,OAAO,EAAE,IAAAC,8BAAc,EAACP,MAAM,EAAET,eAAe,CAAC;IAKhDJ,aAAa;IACbqB,OAAO,EAAE,KAAK;IACdC,UAAU,EAAE,KAAK;IACjBC,sBAAsB,EAAE,KAAK;IAC7BC,aAAa,EAAE,KAAK;IACpB7B,OAAO,EAAEc,OAAO,CAACd,OAAO;IACxBE,GAAG,EAAEY,OAAO,CAACZ,GAAG;IAChBC,IAAI,EAAEW,OAAO,CAACX,IAAI;IAClBnB,QAAQ,EAAE,MAAM;IAChB0B,QAAQ,EACN,OAAOI,OAAO,CAACJ,QAAQ,KAAK,QAAQ,GAAGI,OAAO,CAACJ,QAAQ,GAAGC,SAAS;IAErEmB,OAAO,EAAEd,WAAW,CAACc,OAAO,CAACC,GAAG,CAACC,UAAU,IACzC,IAAAC,8BAAwB,EAACD,UAAU,CACrC,CAAC;IACDE,OAAO,EAAElB,WAAW,CAACkB,OAAO,CAACH,GAAG,CAACC,UAAU,IACzC,IAAAC,8BAAwB,EAACD,UAAU,CACrC;EAAC,EACF;EAED,OAAO;IACLZ,OAAO;IACPN,OAAO;IACPqB,YAAY,EAAEnB,WAAW,CAACmB,YAAY;IACtCC,MAAM,EAAEpB,WAAW,CAACoB,MAAM;IAC1BV,OAAO,EAAEV,WAAW,CAACU,OAAO;IAC5BW,MAAM,EAAErB,WAAW,CAACqB,MAAM;IAC1BC,KAAK,EAAEtB,WAAW,CAACsB;EACrB,CAAC;AACH;AAEO,UAAUC,iBAAiBA,CAChCjB,IAAmB,EACY;EAC/B,IAAIkB,gBAAgB,GAAG,KAAK;EAG5B,IAAI,OAAOlB,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,IAAI,IAAI,CAAC1B,KAAK,CAACC,OAAO,CAACyB,IAAI,CAAC,EAAE;IAAA,IAAAmB,KAAA,GACpCnB,IAAI;IAAA,CAApC;MAAEkB;IAA0B,CAAC,GAAAC,KAAO;IAAbnB,IAAI,GAAAhD,6BAAA,CAAAmE,KAAA,EAAApE,SAAA;IAAAoE,KAAA;EAC9B;EAEA,MAAMC,MAA4C,GAChD,OAAOhD,wBAAwB,CAAC4B,IAAI,CAAC;EACvC,IAAI,CAACoB,MAAM,EAAE,OAAO,IAAI;EAExB,MAAM;IAAEtB,OAAO;IAAEM,OAAO;IAAEU,MAAM;IAAEC,MAAM;IAAEF,YAAY;IAAEG;EAAM,CAAC,GAAGI,MAAM;EAExE,IAAIP,YAAY,KAAK,SAAS,IAAI,CAACK,gBAAgB,EAAE;IACnD,OAAO,IAAI;EACb;EAEA,CAACpB,OAAO,CAACU,OAAO,IAAI,EAAE,EAAET,OAAO,CAACsB,IAAI,IAAI;IAEtC,IAAIA,IAAI,CAACC,KAAK,YAAYC,eAAM,EAAE;MAChC,MAAM,IAAIxD,KAAK,CACb,sDAAsD,GACpD,2BACJ,CAAC;IACH;EACF,CAAC,CAAC;EAEF,OAAO,IAAIyD,aAAa,CACtB1B,OAAO,EACPM,OAAO,GAAGA,OAAO,CAACqB,QAAQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlBnD,MAAM,CAAC+D,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAxB,MAAM,CAAC+D,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","_plugin","_util","_item","_configChain","_environment","_options","_index","_resolveTargets","_excluded","_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","Object","keys","key","i","length","indexOf","resolveRootMode","rootDir","rootMode","upwardRootDir","findConfigUpwards","assign","Error","ROOT_CONFIG_FILENAMES","join","code","dirname","loadPrivatePartialConfig","inputOpts","Array","isArray","args","validate","envName","getEnv","cwd","root","caller","cloneInputAst","absoluteCwd","path","resolve","absoluteRootDir","filename","undefined","showConfigPath","resolveShowConfigPath","context","showConfig","configChain","buildRootChain","merged","assumptions","options","forEach","opts","mergeOptions","targets","resolveTargets","babelrc","configFile","browserslistConfigFile","passPerPreset","plugins","map","descriptor","createItemFromDescriptor","presets","fileHandling","ignore","config","files","loadPartialConfig","showIgnoredFiles","_opts","result","item","value","Plugin","PartialConfig","filepath","constructor","babelignore","freeze","hasFilesystemConfig","prototype"],"sources":["../../src/config/partial.ts"],"sourcesContent":["import path from \"path\";\nimport type { Handler } from \"gensync\";\nimport Plugin from \"./plugin.ts\";\nimport { mergeOptions } from \"./util.ts\";\nimport { createItemFromDescriptor } from \"./item.ts\";\nimport { buildRootChain } from \"./config-chain.ts\";\nimport type { ConfigContext, FileHandling } from \"./config-chain.ts\";\nimport { getEnv } from \"./helpers/environment.ts\";\nimport { validate } from \"./validation/options.ts\";\n\nimport type {\n ValidatedOptions,\n NormalizedOptions,\n RootMode,\n} from \"./validation/options.ts\";\n\nimport {\n findConfigUpwards,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./files/index.ts\";\nimport type { ConfigFile, IgnoreFile } from \"./files/index.ts\";\nimport { resolveTargets } from \"./resolve-targets.ts\";\n\nfunction resolveRootMode(rootDir: string, rootMode: RootMode): string {\n switch (rootMode) {\n case \"root\":\n return rootDir;\n\n case \"upward-optional\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n return upwardRootDir === null ? rootDir : upwardRootDir;\n }\n\n case \"upward\": {\n const upwardRootDir = findConfigUpwards(rootDir);\n if (upwardRootDir !== null) return upwardRootDir;\n\n throw Object.assign(\n new Error(\n `Babel was run with rootMode:\"upward\" but a root could not ` +\n `be found when searching upward from \"${rootDir}\".\\n` +\n `One of the following config files must be in the directory tree: ` +\n `\"${ROOT_CONFIG_FILENAMES.join(\", \")}\".`,\n ) as any,\n {\n code: \"BABEL_ROOT_NOT_FOUND\",\n dirname: rootDir,\n },\n );\n }\n default:\n throw new Error(`Assertion failure - unknown rootMode value.`);\n }\n}\n\ntype PrivPartialConfig = {\n options: NormalizedOptions;\n context: ConfigContext;\n fileHandling: FileHandling;\n ignore: IgnoreFile | void;\n babelrc: ConfigFile | void;\n config: ConfigFile | void;\n files: Set;\n};\n\nexport default function* loadPrivatePartialConfig(\n inputOpts: unknown,\n): Handler {\n if (\n inputOpts != null &&\n (typeof inputOpts !== \"object\" || Array.isArray(inputOpts))\n ) {\n throw new Error(\"Babel options must be an object, null, or undefined\");\n }\n\n const args = inputOpts ? validate(\"arguments\", inputOpts) : {};\n\n const {\n envName = getEnv(),\n cwd = \".\",\n root: rootDir = \".\",\n rootMode = \"root\",\n caller,\n cloneInputAst = true,\n } = args;\n const absoluteCwd = path.resolve(cwd);\n const absoluteRootDir = resolveRootMode(\n path.resolve(absoluteCwd, rootDir),\n rootMode,\n );\n\n const filename =\n typeof args.filename === \"string\"\n ? path.resolve(cwd, args.filename)\n : undefined;\n\n const showConfigPath = yield* resolveShowConfigPath(absoluteCwd);\n\n const context: ConfigContext = {\n filename,\n cwd: absoluteCwd,\n root: absoluteRootDir,\n envName,\n caller,\n showConfig: showConfigPath === filename,\n };\n\n const configChain = yield* buildRootChain(args, context);\n if (!configChain) return null;\n\n const merged: ValidatedOptions = {\n assumptions: {},\n };\n configChain.options.forEach(opts => {\n mergeOptions(merged as any, opts);\n });\n\n const options: NormalizedOptions = {\n ...merged,\n targets: resolveTargets(merged, absoluteRootDir),\n\n // Tack the passes onto the object itself so that, if this object is\n // passed back to Babel a second time, it will be in the right structure\n // to not change behavior.\n cloneInputAst,\n babelrc: false,\n configFile: false,\n browserslistConfigFile: false,\n passPerPreset: false,\n envName: context.envName,\n cwd: context.cwd,\n root: context.root,\n rootMode: \"root\",\n filename:\n typeof context.filename === \"string\" ? context.filename : undefined,\n\n plugins: configChain.plugins.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n presets: configChain.presets.map(descriptor =>\n createItemFromDescriptor(descriptor),\n ),\n };\n\n return {\n options,\n context,\n fileHandling: configChain.fileHandling,\n ignore: configChain.ignore,\n babelrc: configChain.babelrc,\n config: configChain.config,\n files: configChain.files,\n };\n}\n\ntype LoadPartialConfigOpts = {\n showIgnoredFiles?: boolean;\n};\n\nexport function* loadPartialConfig(\n opts?: LoadPartialConfigOpts,\n): Handler {\n let showIgnoredFiles = false;\n // We only extract showIgnoredFiles if opts is an object, so that\n // loadPrivatePartialConfig can throw the appropriate error if it's not.\n if (typeof opts === \"object\" && opts !== null && !Array.isArray(opts)) {\n ({ showIgnoredFiles, ...opts } = opts);\n }\n\n const result: PrivPartialConfig | undefined | null =\n yield* loadPrivatePartialConfig(opts);\n if (!result) return null;\n\n const { options, babelrc, ignore, config, fileHandling, files } = result;\n\n if (fileHandling === \"ignored\" && !showIgnoredFiles) {\n return null;\n }\n\n (options.plugins || []).forEach(item => {\n // @ts-expect-error todo(flow->ts): better type annotation for `item.value`\n if (item.value instanceof Plugin) {\n throw new Error(\n \"Passing cached plugin instances is not supported in \" +\n \"babel.loadPartialConfig()\",\n );\n }\n });\n\n return new PartialConfig(\n options,\n babelrc ? babelrc.filepath : undefined,\n ignore ? ignore.filepath : undefined,\n config ? config.filepath : undefined,\n fileHandling,\n files,\n );\n}\n\nexport type { PartialConfig };\n\nclass PartialConfig {\n /**\n * These properties are public, so any changes to them should be considered\n * a breaking change to Babel's API.\n */\n options: NormalizedOptions;\n babelrc: string | void;\n babelignore: string | void;\n config: string | void;\n fileHandling: FileHandling;\n files: Set;\n\n constructor(\n options: NormalizedOptions,\n babelrc: string | void,\n ignore: string | void,\n config: string | void,\n fileHandling: FileHandling,\n files: Set,\n ) {\n this.options = options;\n this.babelignore = ignore;\n this.babelrc = babelrc;\n this.config = config;\n this.fileHandling = fileHandling;\n this.files = files;\n\n // Freeze since this is a public API and it should be extremely obvious that\n // reassigning properties on here does nothing.\n Object.freeze(this);\n }\n\n /**\n * Returns true if there is a config file in the filesystem for this config.\n */\n hasFilesystemConfig(): boolean {\n return this.babelrc !== undefined || this.config !== undefined;\n }\n}\nObject.freeze(PartialConfig.prototype);\n"],"mappings":";;;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAQA,IAAAO,MAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAAsD,MAAAS,SAAA;AAAA,SAAAC,8BAAAC,MAAA,EAAAC,QAAA,QAAAD,MAAA,yBAAAE,MAAA,WAAAC,UAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAL,MAAA,OAAAM,GAAA,EAAAC,CAAA,OAAAA,CAAA,MAAAA,CAAA,GAAAJ,UAAA,CAAAK,MAAA,EAAAD,CAAA,MAAAD,GAAA,GAAAH,UAAA,CAAAI,CAAA,OAAAN,QAAA,CAAAQ,OAAA,CAAAH,GAAA,kBAAAJ,MAAA,CAAAI,GAAA,IAAAN,MAAA,CAAAM,GAAA,YAAAJ,MAAA;AAEtD,SAASQ,eAAeA,CAACC,OAAe,EAAEC,QAAkB,EAAU;EACpE,QAAQA,QAAQ;IACd,KAAK,MAAM;MACT,OAAOD,OAAO;IAEhB,KAAK,iBAAiB;MAAE;QACtB,MAAME,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,OAAOE,aAAa,KAAK,IAAI,GAAGF,OAAO,GAAGE,aAAa;MACzD;IAEA,KAAK,QAAQ;MAAE;QACb,MAAMA,aAAa,GAAG,IAAAC,wBAAiB,EAACH,OAAO,CAAC;QAChD,IAAIE,aAAa,KAAK,IAAI,EAAE,OAAOA,aAAa;QAEhD,MAAMT,MAAM,CAACW,MAAM,CACjB,IAAIC,KAAK,CACP,4DAA4D,GAC1D,wCAAwCL,OAAO,MAAM,GACrD,mEAAmE,GACnE,IAAIM,4BAAqB,CAACC,IAAI,CAAC,IAAI,CAAC,IACxC,CAAC,EACD;UACEC,IAAI,EAAE,sBAAsB;UAC5BC,OAAO,EAAET;QACX,CACF,CAAC;MACH;IACA;MACE,MAAM,IAAIK,KAAK,CAAC,6CAA6C,CAAC;EAClE;AACF;AAYe,UAAUK,wBAAwBA,CAC/CC,SAAkB,EACiB;EACnC,IACEA,SAAS,IAAI,IAAI,KAChB,OAAOA,SAAS,KAAK,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACF,SAAS,CAAC,CAAC,EAC3D;IACA,MAAM,IAAIN,KAAK,CAAC,qDAAqD,CAAC;EACxE;EAEA,MAAMS,IAAI,GAAGH,SAAS,GAAG,IAAAI,iBAAQ,EAAC,WAAW,EAAEJ,SAAS,CAAC,GAAG,CAAC,CAAC;EAE9D,MAAM;IACJK,OAAO,GAAG,IAAAC,mBAAM,EAAC,CAAC;IAClBC,GAAG,GAAG,GAAG;IACTC,IAAI,EAAEnB,OAAO,GAAG,GAAG;IACnBC,QAAQ,GAAG,MAAM;IACjBmB,MAAM;IACNC,aAAa,GAAG;EAClB,CAAC,GAAGP,IAAI;EACR,MAAMQ,WAAW,GAAGC,MAAGA,CAAC,CAACC,OAAO,CAACN,GAAG,CAAC;EACrC,MAAMO,eAAe,GAAG1B,eAAe,CACrCwB,MAAGA,CAAC,CAACC,OAAO,CAACF,WAAW,EAAEtB,OAAO,CAAC,EAClCC,QACF,CAAC;EAED,MAAMyB,QAAQ,GACZ,OAAOZ,IAAI,CAACY,QAAQ,KAAK,QAAQ,GAC7BH,MAAGA,CAAC,CAACC,OAAO,CAACN,GAAG,EAAEJ,IAAI,CAACY,QAAQ,CAAC,GAChCC,SAAS;EAEf,MAAMC,cAAc,GAAG,OAAO,IAAAC,4BAAqB,EAACP,WAAW,CAAC;EAEhE,MAAMQ,OAAsB,GAAG;IAC7BJ,QAAQ;IACRR,GAAG,EAAEI,WAAW;IAChBH,IAAI,EAAEM,eAAe;IACrBT,OAAO;IACPI,MAAM;IACNW,UAAU,EAAEH,cAAc,KAAKF;EACjC,CAAC;EAED,MAAMM,WAAW,GAAG,OAAO,IAAAC,2BAAc,EAACnB,IAAI,EAAEgB,OAAO,CAAC;EACxD,IAAI,CAACE,WAAW,EAAE,OAAO,IAAI;EAE7B,MAAME,MAAwB,GAAG;IAC/BC,WAAW,EAAE,CAAC;EAChB,CAAC;EACDH,WAAW,CAACI,OAAO,CAACC,OAAO,CAACC,IAAI,IAAI;IAClC,IAAAC,kBAAY,EAACL,MAAM,EAASI,IAAI,CAAC;EACnC,CAAC,CAAC;EAEF,MAAMF,OAA0B,GAAA3C,MAAA,CAAAW,MAAA,KAC3B8B,MAAM;IACTM,OAAO,EAAE,IAAAC,8BAAc,EAACP,MAAM,EAAET,eAAe,CAAC;IAKhDJ,aAAa;IACbqB,OAAO,EAAE,KAAK;IACdC,UAAU,EAAE,KAAK;IACjBC,sBAAsB,EAAE,KAAK;IAC7BC,aAAa,EAAE,KAAK;IACpB7B,OAAO,EAAEc,OAAO,CAACd,OAAO;IACxBE,GAAG,EAAEY,OAAO,CAACZ,GAAG;IAChBC,IAAI,EAAEW,OAAO,CAACX,IAAI;IAClBlB,QAAQ,EAAE,MAAM;IAChByB,QAAQ,EACN,OAAOI,OAAO,CAACJ,QAAQ,KAAK,QAAQ,GAAGI,OAAO,CAACJ,QAAQ,GAAGC,SAAS;IAErEmB,OAAO,EAAEd,WAAW,CAACc,OAAO,CAACC,GAAG,CAACC,UAAU,IACzC,IAAAC,8BAAwB,EAACD,UAAU,CACrC,CAAC;IACDE,OAAO,EAAElB,WAAW,CAACkB,OAAO,CAACH,GAAG,CAACC,UAAU,IACzC,IAAAC,8BAAwB,EAACD,UAAU,CACrC;EAAC,EACF;EAED,OAAO;IACLZ,OAAO;IACPN,OAAO;IACPqB,YAAY,EAAEnB,WAAW,CAACmB,YAAY;IACtCC,MAAM,EAAEpB,WAAW,CAACoB,MAAM;IAC1BV,OAAO,EAAEV,WAAW,CAACU,OAAO;IAC5BW,MAAM,EAAErB,WAAW,CAACqB,MAAM;IAC1BC,KAAK,EAAEtB,WAAW,CAACsB;EACrB,CAAC;AACH;AAMO,UAAUC,iBAAiBA,CAChCjB,IAA4B,EACG;EAC/B,IAAIkB,gBAAgB,GAAG,KAAK;EAG5B,IAAI,OAAOlB,IAAI,KAAK,QAAQ,IAAIA,IAAI,KAAK,IAAI,IAAI,CAAC1B,KAAK,CAACC,OAAO,CAACyB,IAAI,CAAC,EAAE;IAAA,IAAAmB,KAAA,GACpCnB,IAAI;IAAA,CAApC;MAAEkB;IAA0B,CAAC,GAAAC,KAAO;IAAbnB,IAAI,GAAAlD,6BAAA,CAAAqE,KAAA,EAAAtE,SAAA;IAAAsE,KAAA;EAC9B;EAEA,MAAMC,MAA4C,GAChD,OAAOhD,wBAAwB,CAAC4B,IAAI,CAAC;EACvC,IAAI,CAACoB,MAAM,EAAE,OAAO,IAAI;EAExB,MAAM;IAAEtB,OAAO;IAAEM,OAAO;IAAEU,MAAM;IAAEC,MAAM;IAAEF,YAAY;IAAEG;EAAM,CAAC,GAAGI,MAAM;EAExE,IAAIP,YAAY,KAAK,SAAS,IAAI,CAACK,gBAAgB,EAAE;IACnD,OAAO,IAAI;EACb;EAEA,CAACpB,OAAO,CAACU,OAAO,IAAI,EAAE,EAAET,OAAO,CAACsB,IAAI,IAAI;IAEtC,IAAIA,IAAI,CAACC,KAAK,YAAYC,eAAM,EAAE;MAChC,MAAM,IAAIxD,KAAK,CACb,sDAAsD,GACpD,2BACJ,CAAC;IACH;EACF,CAAC,CAAC;EAEF,OAAO,IAAIyD,aAAa,CACtB1B,OAAO,EACPM,OAAO,GAAGA,OAAO,CAACqB,QAAQ,GAAGpC,SAAS,EACtCyB,MAAM,GAAGA,MAAM,CAACW,QAAQ,GAAGpC,SAAS,EACpC0B,MAAM,GAAGA,MAAM,CAACU,QAAQ,GAAGpC,SAAS,EACpCwB,YAAY,EACZG,KACF,CAAC;AACH;AAIA,MAAMQ,aAAa,CAAC;EAYlBE,WAAWA,CACT5B,OAA0B,EAC1BM,OAAsB,EACtBU,MAAqB,EACrBC,MAAqB,EACrBF,YAA0B,EAC1BG,KAAkB,EAClB;IAAA,KAdFlB,OAAO;IAAA,KACPM,OAAO;IAAA,KACPuB,WAAW;IAAA,KACXZ,MAAM;IAAA,KACNF,YAAY;IAAA,KACZG,KAAK;IAUH,IAAI,CAAClB,OAAO,GAAGA,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGb,MAAM;IACzB,IAAI,CAACV,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACW,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACG,KAAK,GAAGA,KAAK;IAIlB7D,MAAM,CAACyE,MAAM,CAAC,IAAI,CAAC;EACrB;EAKAC,mBAAmBA,CAAA,EAAY;IAC7B,OAAO,IAAI,CAACzB,OAAO,KAAKf,SAAS,IAAI,IAAI,CAAC0B,MAAM,KAAK1B,SAAS;EAChE;AACF;AACAlC,MAAM,CAACyE,MAAM,CAACJ,aAAa,CAACM,SAAS,CAAC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/pattern-to-regex.js.map b/node_modules/@babel/core/lib/config/pattern-to-regex.js.map index 5a02bc677..ed93e425f 100644 --- a/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +++ b/node_modules/@babel/core/lib/config/pattern-to-regex.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","sep","path","endSep","substitution","starPat","starPatLast","starStarPat","starStarPatLast","escapeRegExp","string","replace","pathToPattern","pattern","dirname","parts","resolve","split","RegExp","map","part","i","last","length","indexOf","slice","join"],"sources":["../../src/config/pattern-to-regex.ts"],"sourcesContent":["import path from \"node:path\";\n\nconst sep = `\\\\${path.sep}`;\nconst endSep = `(?:${sep}|$)`;\n\nconst substitution = `[^${sep}]+`;\n\nconst starPat = `(?:${substitution}${sep})`;\nconst starPatLast = `(?:${substitution}${endSep})`;\n\nconst starStarPat = `${starPat}*?`;\nconst starStarPatLast = `${starPat}*?${starPatLast}?`;\n\nfunction escapeRegExp(string: string) {\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\");\n}\n\n/**\n * Implement basic pattern matching that will allow users to do the simple\n * tests with * and **. If users want full complex pattern matching, then can\n * always use regex matching, or function validation.\n */\nexport default function pathToPattern(\n pattern: string,\n dirname: string,\n): RegExp {\n const parts = path.resolve(dirname, pattern).split(path.sep);\n\n return new RegExp(\n [\n \"^\",\n ...parts.map((part, i) => {\n const last = i === parts.length - 1;\n\n // ** matches 0 or more path parts.\n if (part === \"**\") return last ? starStarPatLast : starStarPat;\n\n // * matches 1 path part.\n if (part === \"*\") return last ? starPatLast : starPat;\n\n // *.ext matches a wildcard with an extension.\n if (part.indexOf(\"*.\") === 0) {\n return (\n substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep)\n );\n }\n\n // Otherwise match the pattern text.\n return escapeRegExp(part) + (last ? endSep : sep);\n }),\n ].join(\"\"),\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAME,GAAG,GAAG,KAAKC,MAAGA,CAAC,CAACD,GAAG,EAAE;AAC3B,MAAME,MAAM,GAAG,MAAMF,GAAG,KAAK;AAE7B,MAAMG,YAAY,GAAG,KAAKH,GAAG,IAAI;AAEjC,MAAMI,OAAO,GAAG,MAAMD,YAAY,GAAGH,GAAG,GAAG;AAC3C,MAAMK,WAAW,GAAG,MAAMF,YAAY,GAAGD,MAAM,GAAG;AAElD,MAAMI,WAAW,GAAG,GAAGF,OAAO,IAAI;AAClC,MAAMG,eAAe,GAAG,GAAGH,OAAO,KAAKC,WAAW,GAAG;AAErD,SAASG,YAAYA,CAACC,MAAc,EAAE;EACpC,OAAOA,MAAM,CAACC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC;AACtD;AAOe,SAASC,aAAaA,CACnCC,OAAe,EACfC,OAAe,EACP;EACR,MAAMC,KAAK,GAAGb,MAAGA,CAAC,CAACc,OAAO,CAACF,OAAO,EAAED,OAAO,CAAC,CAACI,KAAK,CAACf,MAAGA,CAAC,CAACD,GAAG,CAAC;EAE5D,OAAO,IAAIiB,MAAM,CACf,CACE,GAAG,EACH,GAAGH,KAAK,CAACI,GAAG,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;IACxB,MAAMC,IAAI,GAAGD,CAAC,KAAKN,KAAK,CAACQ,MAAM,GAAG,CAAC;IAGnC,IAAIH,IAAI,KAAK,IAAI,EAAE,OAAOE,IAAI,GAAGd,eAAe,GAAGD,WAAW;IAG9D,IAAIa,IAAI,KAAK,GAAG,EAAE,OAAOE,IAAI,GAAGhB,WAAW,GAAGD,OAAO;IAGrD,IAAIe,IAAI,CAACI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;MAC5B,OACEpB,YAAY,GAAGK,YAAY,CAACW,IAAI,CAACK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAIH,IAAI,GAAGnB,MAAM,GAAGF,GAAG,CAAC;IAEtE;IAGA,OAAOQ,YAAY,CAACW,IAAI,CAAC,IAAIE,IAAI,GAAGnB,MAAM,GAAGF,GAAG,CAAC;EACnD,CAAC,CAAC,CACH,CAACyB,IAAI,CAAC,EAAE,CACX,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","sep","path","endSep","substitution","starPat","starPatLast","starStarPat","starStarPatLast","escapeRegExp","string","replace","pathToPattern","pattern","dirname","parts","resolve","split","RegExp","map","part","i","last","length","indexOf","slice","join"],"sources":["../../src/config/pattern-to-regex.ts"],"sourcesContent":["import path from \"path\";\n\nconst sep = `\\\\${path.sep}`;\nconst endSep = `(?:${sep}|$)`;\n\nconst substitution = `[^${sep}]+`;\n\nconst starPat = `(?:${substitution}${sep})`;\nconst starPatLast = `(?:${substitution}${endSep})`;\n\nconst starStarPat = `${starPat}*?`;\nconst starStarPatLast = `${starPat}*?${starPatLast}?`;\n\nfunction escapeRegExp(string: string) {\n return string.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\");\n}\n\n/**\n * Implement basic pattern matching that will allow users to do the simple\n * tests with * and **. If users want full complex pattern matching, then can\n * always use regex matching, or function validation.\n */\nexport default function pathToPattern(\n pattern: string,\n dirname: string,\n): RegExp {\n const parts = path.resolve(dirname, pattern).split(path.sep);\n\n return new RegExp(\n [\n \"^\",\n ...parts.map((part, i) => {\n const last = i === parts.length - 1;\n\n // ** matches 0 or more path parts.\n if (part === \"**\") return last ? starStarPatLast : starStarPat;\n\n // * matches 1 path part.\n if (part === \"*\") return last ? starPatLast : starPat;\n\n // *.ext matches a wildcard with an extension.\n if (part.indexOf(\"*.\") === 0) {\n return (\n substitution + escapeRegExp(part.slice(1)) + (last ? endSep : sep)\n );\n }\n\n // Otherwise match the pattern text.\n return escapeRegExp(part) + (last ? endSep : sep);\n }),\n ].join(\"\"),\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,MAAME,GAAG,GAAG,KAAKC,MAAGA,CAAC,CAACD,GAAG,EAAE;AAC3B,MAAME,MAAM,GAAG,MAAMF,GAAG,KAAK;AAE7B,MAAMG,YAAY,GAAG,KAAKH,GAAG,IAAI;AAEjC,MAAMI,OAAO,GAAG,MAAMD,YAAY,GAAGH,GAAG,GAAG;AAC3C,MAAMK,WAAW,GAAG,MAAMF,YAAY,GAAGD,MAAM,GAAG;AAElD,MAAMI,WAAW,GAAG,GAAGF,OAAO,IAAI;AAClC,MAAMG,eAAe,GAAG,GAAGH,OAAO,KAAKC,WAAW,GAAG;AAErD,SAASG,YAAYA,CAACC,MAAc,EAAE;EACpC,OAAOA,MAAM,CAACC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC;AACtD;AAOe,SAASC,aAAaA,CACnCC,OAAe,EACfC,OAAe,EACP;EACR,MAAMC,KAAK,GAAGb,MAAGA,CAAC,CAACc,OAAO,CAACF,OAAO,EAAED,OAAO,CAAC,CAACI,KAAK,CAACf,MAAGA,CAAC,CAACD,GAAG,CAAC;EAE5D,OAAO,IAAIiB,MAAM,CACf,CACE,GAAG,EACH,GAAGH,KAAK,CAACI,GAAG,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;IACxB,MAAMC,IAAI,GAAGD,CAAC,KAAKN,KAAK,CAACQ,MAAM,GAAG,CAAC;IAGnC,IAAIH,IAAI,KAAK,IAAI,EAAE,OAAOE,IAAI,GAAGd,eAAe,GAAGD,WAAW;IAG9D,IAAIa,IAAI,KAAK,GAAG,EAAE,OAAOE,IAAI,GAAGhB,WAAW,GAAGD,OAAO;IAGrD,IAAIe,IAAI,CAACI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;MAC5B,OACEpB,YAAY,GAAGK,YAAY,CAACW,IAAI,CAACK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAIH,IAAI,GAAGnB,MAAM,GAAGF,GAAG,CAAC;IAEtE;IAGA,OAAOQ,YAAY,CAACW,IAAI,CAAC,IAAIE,IAAI,GAAGnB,MAAM,GAAGF,GAAG,CAAC;EACnD,CAAC,CAAC,CACH,CAACyB,IAAI,CAAC,EAAE,CACX,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/plugin.js.map b/node_modules/@babel/core/lib/config/plugin.js.map index 181eafdad..87acda89d 100644 --- a/node_modules/@babel/core/lib/config/plugin.js.map +++ b/node_modules/@babel/core/lib/config/plugin.js.map @@ -1 +1 @@ -{"version":3,"names":["_deepArray","require","Plugin","constructor","plugin","options","key","externalDependencies","finalize","manipulateOptions","post","pre","visitor","parserOverride","generatorOverride","name","exports","default"],"sources":["../../src/config/plugin.ts"],"sourcesContent":["import { finalize } from \"./helpers/deep-array.ts\";\nimport type { ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\nimport type { PluginObject } from \"./validation/plugins.ts\";\n\nexport default class Plugin {\n key: string | undefined | null;\n manipulateOptions?: (options: unknown, parserOpts: unknown) => void;\n post?: PluginObject[\"post\"];\n pre?: PluginObject[\"pre\"];\n visitor: PluginObject[\"visitor\"];\n\n parserOverride?: PluginObject[\"parserOverride\"];\n generatorOverride?: Function;\n\n options: object;\n\n externalDependencies: ReadonlyDeepArray;\n\n constructor(\n plugin: PluginObject,\n options: object,\n key?: string,\n externalDependencies: ReadonlyDeepArray = finalize([]),\n ) {\n this.key = plugin.name || key;\n\n this.manipulateOptions = plugin.manipulateOptions;\n this.post = plugin.post;\n this.pre = plugin.pre;\n this.visitor = plugin.visitor || {};\n this.parserOverride = plugin.parserOverride;\n this.generatorOverride = plugin.generatorOverride;\n\n this.options = options;\n this.externalDependencies = externalDependencies;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIe,MAAMC,MAAM,CAAC;EAc1BC,WAAWA,CACTC,MAAoB,EACpBC,OAAe,EACfC,GAAY,EACZC,oBAA+C,GAAG,IAAAC,mBAAQ,EAAC,EAAE,CAAC,EAC9D;IAAA,KAlBFF,GAAG;IAAA,KACHG,iBAAiB;IAAA,KACjBC,IAAI;IAAA,KACJC,GAAG;IAAA,KACHC,OAAO;IAAA,KAEPC,cAAc;IAAA,KACdC,iBAAiB;IAAA,KAEjBT,OAAO;IAAA,KAEPE,oBAAoB;IAQlB,IAAI,CAACD,GAAG,GAAGF,MAAM,CAACW,IAAI,IAAIT,GAAG;IAE7B,IAAI,CAACG,iBAAiB,GAAGL,MAAM,CAACK,iBAAiB;IACjD,IAAI,CAACC,IAAI,GAAGN,MAAM,CAACM,IAAI;IACvB,IAAI,CAACC,GAAG,GAAGP,MAAM,CAACO,GAAG;IACrB,IAAI,CAACC,OAAO,GAAGR,MAAM,CAACQ,OAAO,IAAI,CAAC,CAAC;IACnC,IAAI,CAACC,cAAc,GAAGT,MAAM,CAACS,cAAc;IAC3C,IAAI,CAACC,iBAAiB,GAAGV,MAAM,CAACU,iBAAiB;IAEjD,IAAI,CAACT,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACE,oBAAoB,GAAGA,oBAAoB;EAClD;AACF;AAACS,OAAA,CAAAC,OAAA,GAAAf,MAAA;AAAA","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_deepArray","require","Plugin","constructor","plugin","options","key","externalDependencies","finalize","manipulateOptions","post","pre","visitor","parserOverride","generatorOverride","name","exports","default"],"sources":["../../src/config/plugin.ts"],"sourcesContent":["import { finalize } from \"./helpers/deep-array.ts\";\nimport type { ReadonlyDeepArray } from \"./helpers/deep-array.ts\";\nimport type { PluginObject } from \"./validation/plugins.ts\";\n\nexport default class Plugin {\n key: string | undefined | null;\n manipulateOptions?: (options: unknown, parserOpts: unknown) => void;\n post?: PluginObject[\"post\"];\n pre?: PluginObject[\"pre\"];\n visitor: PluginObject[\"visitor\"];\n\n parserOverride?: Function;\n generatorOverride?: Function;\n\n options: object;\n\n externalDependencies: ReadonlyDeepArray;\n\n constructor(\n plugin: PluginObject,\n options: object,\n key?: string,\n externalDependencies: ReadonlyDeepArray = finalize([]),\n ) {\n this.key = plugin.name || key;\n\n this.manipulateOptions = plugin.manipulateOptions;\n this.post = plugin.post;\n this.pre = plugin.pre;\n this.visitor = plugin.visitor || {};\n this.parserOverride = plugin.parserOverride;\n this.generatorOverride = plugin.generatorOverride;\n\n this.options = options;\n this.externalDependencies = externalDependencies;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIe,MAAMC,MAAM,CAAC;EAc1BC,WAAWA,CACTC,MAAoB,EACpBC,OAAe,EACfC,GAAY,EACZC,oBAA+C,GAAG,IAAAC,mBAAQ,EAAC,EAAE,CAAC,EAC9D;IAAA,KAlBFF,GAAG;IAAA,KACHG,iBAAiB;IAAA,KACjBC,IAAI;IAAA,KACJC,GAAG;IAAA,KACHC,OAAO;IAAA,KAEPC,cAAc;IAAA,KACdC,iBAAiB;IAAA,KAEjBT,OAAO;IAAA,KAEPE,oBAAoB;IAQlB,IAAI,CAACD,GAAG,GAAGF,MAAM,CAACW,IAAI,IAAIT,GAAG;IAE7B,IAAI,CAACG,iBAAiB,GAAGL,MAAM,CAACK,iBAAiB;IACjD,IAAI,CAACC,IAAI,GAAGN,MAAM,CAACM,IAAI;IACvB,IAAI,CAACC,GAAG,GAAGP,MAAM,CAACO,GAAG;IACrB,IAAI,CAACC,OAAO,GAAGR,MAAM,CAACQ,OAAO,IAAI,CAAC,CAAC;IACnC,IAAI,CAACC,cAAc,GAAGT,MAAM,CAACS,cAAc;IAC3C,IAAI,CAACC,iBAAiB,GAAGV,MAAM,CAACU,iBAAiB;IAEjD,IAAI,CAACT,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACE,oBAAoB,GAAGA,oBAAoB;EAClD;AACF;AAACS,OAAA,CAAAC,OAAA,GAAAf,MAAA;AAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map b/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map index 25ed272df..839585dd2 100644 --- a/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +++ b/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map @@ -1 +1 @@ -{"version":3,"names":["_helperCompilationTargets","data","require","resolveBrowserslistConfigFile","browserslistConfigFile","configFilePath","undefined","resolveTargets","options","root","optTargets","targets","Array","isArray","browsers","Object","assign","esmodules","getTargets","ignoreBrowserslistConfig","browserslistEnv"],"sources":["../../src/config/resolve-targets-browser.ts"],"sourcesContent":["/* c8 ignore start */\n\nimport type { ValidatedOptions } from \"./validation/options.ts\";\nimport getTargets, {\n type InputTargets,\n} from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nexport function resolveBrowserslistConfigFile(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n browserslistConfigFile: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n configFilePath: string,\n): string | void {\n return undefined;\n}\n\nexport function resolveTargets(\n options: ValidatedOptions,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n root: string,\n): Targets {\n const optTargets = options.targets;\n let targets: InputTargets;\n\n if (typeof optTargets === \"string\" || Array.isArray(optTargets)) {\n targets = { browsers: optTargets };\n } else if (optTargets) {\n if (\"esmodules\" in optTargets) {\n targets = { ...optTargets, esmodules: \"intersect\" };\n } else {\n // https://github.com/microsoft/TypeScript/issues/17002\n targets = optTargets as InputTargets;\n }\n }\n\n return getTargets(targets, {\n ignoreBrowserslistConfig: true,\n browserslistEnv: options.browserslistEnv,\n });\n}\n"],"mappings":";;;;;;;AAGA,SAAAA,0BAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,yBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMO,SAASE,6BAA6BA,CAE3CC,sBAA8B,EAE9BC,cAAsB,EACP;EACf,OAAOC,SAAS;AAClB;AAEO,SAASC,cAAcA,CAC5BC,OAAyB,EAEzBC,IAAY,EACH;EACT,MAAMC,UAAU,GAAGF,OAAO,CAACG,OAAO;EAClC,IAAIA,OAAqB;EAEzB,IAAI,OAAOD,UAAU,KAAK,QAAQ,IAAIE,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;IAC/DC,OAAO,GAAG;MAAEG,QAAQ,EAAEJ;IAAW,CAAC;EACpC,CAAC,MAAM,IAAIA,UAAU,EAAE;IACrB,IAAI,WAAW,IAAIA,UAAU,EAAE;MAC7BC,OAAO,GAAAI,MAAA,CAAAC,MAAA,KAAQN,UAAU;QAAEO,SAAS,EAAE;MAAW,EAAE;IACrD,CAAC,MAAM;MAELN,OAAO,GAAGD,UAA0B;IACtC;EACF;EAEA,OAAO,IAAAQ,mCAAU,EAACP,OAAO,EAAE;IACzBQ,wBAAwB,EAAE,IAAI;IAC9BC,eAAe,EAAEZ,OAAO,CAACY;EAC3B,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_helperCompilationTargets","data","require","resolveBrowserslistConfigFile","browserslistConfigFile","configFilePath","undefined","resolveTargets","options","root","optTargets","targets","Array","isArray","browsers","Object","assign","esmodules","getTargets","ignoreBrowserslistConfig","browserslistEnv"],"sources":["../../src/config/resolve-targets-browser.ts"],"sourcesContent":["import type { ValidatedOptions } from \"./validation/options.ts\";\nimport getTargets, {\n type InputTargets,\n} from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nexport function resolveBrowserslistConfigFile(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n browserslistConfigFile: string,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n configFilePath: string,\n): string | void {\n return undefined;\n}\n\nexport function resolveTargets(\n options: ValidatedOptions,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n root: string,\n): Targets {\n const optTargets = options.targets;\n let targets: InputTargets;\n\n if (typeof optTargets === \"string\" || Array.isArray(optTargets)) {\n targets = { browsers: optTargets };\n } else if (optTargets) {\n if (\"esmodules\" in optTargets) {\n targets = { ...optTargets, esmodules: \"intersect\" };\n } else {\n // https://github.com/microsoft/TypeScript/issues/17002\n targets = optTargets as InputTargets;\n }\n }\n\n return getTargets(targets, {\n ignoreBrowserslistConfig: true,\n browserslistEnv: options.browserslistEnv,\n });\n}\n"],"mappings":";;;;;;;AACA,SAAAA,0BAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,yBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMO,SAASE,6BAA6BA,CAE3CC,sBAA8B,EAE9BC,cAAsB,EACP;EACf,OAAOC,SAAS;AAClB;AAEO,SAASC,cAAcA,CAC5BC,OAAyB,EAEzBC,IAAY,EACH;EACT,MAAMC,UAAU,GAAGF,OAAO,CAACG,OAAO;EAClC,IAAIA,OAAqB;EAEzB,IAAI,OAAOD,UAAU,KAAK,QAAQ,IAAIE,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;IAC/DC,OAAO,GAAG;MAAEG,QAAQ,EAAEJ;IAAW,CAAC;EACpC,CAAC,MAAM,IAAIA,UAAU,EAAE;IACrB,IAAI,WAAW,IAAIA,UAAU,EAAE;MAC7BC,OAAO,GAAAI,MAAA,CAAAC,MAAA,KAAQN,UAAU;QAAEO,SAAS,EAAE;MAAW,EAAE;IACrD,CAAC,MAAM;MAELN,OAAO,GAAGD,UAA0B;IACtC;EACF;EAEA,OAAO,IAAAQ,mCAAU,EAACP,OAAO,EAAE;IACzBQ,wBAAwB,EAAE,IAAI;IAC9BC,eAAe,EAAEZ,OAAO,CAACY;EAC3B,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/resolve-targets.js.map b/node_modules/@babel/core/lib/config/resolve-targets.js.map index de3822f3c..0fada4ede 100644 --- a/node_modules/@babel/core/lib/config/resolve-targets.js.map +++ b/node_modules/@babel/core/lib/config/resolve-targets.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","_helperCompilationTargets","resolveBrowserslistConfigFile","browserslistConfigFile","configFileDir","path","resolve","resolveTargets","options","root","optTargets","targets","Array","isArray","browsers","Object","assign","esmodules","configFile","ignoreBrowserslistConfig","getTargets","configPath","browserslistEnv"],"sources":["../../src/config/resolve-targets.ts"],"sourcesContent":["type browserType = typeof import(\"./resolve-targets-browser\");\ntype nodeType = typeof import(\"./resolve-targets\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({}) as any as browserType as nodeType;\n\nimport type { ValidatedOptions } from \"./validation/options.ts\";\nimport path from \"node:path\";\nimport getTargets, {\n type InputTargets,\n} from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nexport function resolveBrowserslistConfigFile(\n browserslistConfigFile: string,\n configFileDir: string,\n): string | undefined {\n return path.resolve(configFileDir, browserslistConfigFile);\n}\n\nexport function resolveTargets(\n options: ValidatedOptions,\n root: string,\n): Targets {\n const optTargets = options.targets;\n let targets: InputTargets;\n\n if (typeof optTargets === \"string\" || Array.isArray(optTargets)) {\n targets = { browsers: optTargets };\n } else if (optTargets) {\n if (\"esmodules\" in optTargets) {\n targets = { ...optTargets, esmodules: \"intersect\" };\n } else {\n // https://github.com/microsoft/TypeScript/issues/17002\n targets = optTargets as InputTargets;\n }\n }\n\n const { browserslistConfigFile } = options;\n let configFile;\n let ignoreBrowserslistConfig = false;\n if (typeof browserslistConfigFile === \"string\") {\n configFile = browserslistConfigFile;\n } else {\n ignoreBrowserslistConfig = browserslistConfigFile === false;\n }\n\n return getTargets(targets, {\n ignoreBrowserslistConfig,\n configFile,\n configPath: root,\n browserslistEnv: options.browserslistEnv,\n });\n}\n"],"mappings":";;;;;;;AAQA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,0BAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,yBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAJA,CAAC,CAAC,CAAC;AAUI,SAASG,6BAA6BA,CAC3CC,sBAA8B,EAC9BC,aAAqB,EACD;EACpB,OAAOC,MAAGA,CAAC,CAACC,OAAO,CAACF,aAAa,EAAED,sBAAsB,CAAC;AAC5D;AAEO,SAASI,cAAcA,CAC5BC,OAAyB,EACzBC,IAAY,EACH;EACT,MAAMC,UAAU,GAAGF,OAAO,CAACG,OAAO;EAClC,IAAIA,OAAqB;EAEzB,IAAI,OAAOD,UAAU,KAAK,QAAQ,IAAIE,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;IAC/DC,OAAO,GAAG;MAAEG,QAAQ,EAAEJ;IAAW,CAAC;EACpC,CAAC,MAAM,IAAIA,UAAU,EAAE;IACrB,IAAI,WAAW,IAAIA,UAAU,EAAE;MAC7BC,OAAO,GAAAI,MAAA,CAAAC,MAAA,KAAQN,UAAU;QAAEO,SAAS,EAAE;MAAW,EAAE;IACrD,CAAC,MAAM;MAELN,OAAO,GAAGD,UAA0B;IACtC;EACF;EAEA,MAAM;IAAEP;EAAuB,CAAC,GAAGK,OAAO;EAC1C,IAAIU,UAAU;EACd,IAAIC,wBAAwB,GAAG,KAAK;EACpC,IAAI,OAAOhB,sBAAsB,KAAK,QAAQ,EAAE;IAC9Ce,UAAU,GAAGf,sBAAsB;EACrC,CAAC,MAAM;IACLgB,wBAAwB,GAAGhB,sBAAsB,KAAK,KAAK;EAC7D;EAEA,OAAO,IAAAiB,mCAAU,EAACT,OAAO,EAAE;IACzBQ,wBAAwB;IACxBD,UAAU;IACVG,UAAU,EAAEZ,IAAI;IAChBa,eAAe,EAAEd,OAAO,CAACc;EAC3B,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","_helperCompilationTargets","resolveBrowserslistConfigFile","browserslistConfigFile","configFileDir","path","resolve","resolveTargets","options","root","optTargets","targets","Array","isArray","browsers","Object","assign","esmodules","configFile","ignoreBrowserslistConfig","getTargets","configPath","browserslistEnv"],"sources":["../../src/config/resolve-targets.ts"],"sourcesContent":["type browserType = typeof import(\"./resolve-targets-browser\");\ntype nodeType = typeof import(\"./resolve-targets\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({}) as any as browserType as nodeType;\n\nimport type { ValidatedOptions } from \"./validation/options.ts\";\nimport path from \"path\";\nimport getTargets, {\n type InputTargets,\n} from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"@babel/helper-compilation-targets\";\n\nexport function resolveBrowserslistConfigFile(\n browserslistConfigFile: string,\n configFileDir: string,\n): string | undefined {\n return path.resolve(configFileDir, browserslistConfigFile);\n}\n\nexport function resolveTargets(\n options: ValidatedOptions,\n root: string,\n): Targets {\n const optTargets = options.targets;\n let targets: InputTargets;\n\n if (typeof optTargets === \"string\" || Array.isArray(optTargets)) {\n targets = { browsers: optTargets };\n } else if (optTargets) {\n if (\"esmodules\" in optTargets) {\n targets = { ...optTargets, esmodules: \"intersect\" };\n } else {\n // https://github.com/microsoft/TypeScript/issues/17002\n targets = optTargets as InputTargets;\n }\n }\n\n const { browserslistConfigFile } = options;\n let configFile;\n let ignoreBrowserslistConfig = false;\n if (typeof browserslistConfigFile === \"string\") {\n configFile = browserslistConfigFile;\n } else {\n ignoreBrowserslistConfig = browserslistConfigFile === false;\n }\n\n return getTargets(targets, {\n ignoreBrowserslistConfig,\n configFile,\n configPath: root,\n browserslistEnv: options.browserslistEnv,\n });\n}\n"],"mappings":";;;;;;;AAQA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,0BAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,yBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAJA,CAAC,CAAC,CAAC;AAUI,SAASG,6BAA6BA,CAC3CC,sBAA8B,EAC9BC,aAAqB,EACD;EACpB,OAAOC,MAAGA,CAAC,CAACC,OAAO,CAACF,aAAa,EAAED,sBAAsB,CAAC;AAC5D;AAEO,SAASI,cAAcA,CAC5BC,OAAyB,EACzBC,IAAY,EACH;EACT,MAAMC,UAAU,GAAGF,OAAO,CAACG,OAAO;EAClC,IAAIA,OAAqB;EAEzB,IAAI,OAAOD,UAAU,KAAK,QAAQ,IAAIE,KAAK,CAACC,OAAO,CAACH,UAAU,CAAC,EAAE;IAC/DC,OAAO,GAAG;MAAEG,QAAQ,EAAEJ;IAAW,CAAC;EACpC,CAAC,MAAM,IAAIA,UAAU,EAAE;IACrB,IAAI,WAAW,IAAIA,UAAU,EAAE;MAC7BC,OAAO,GAAAI,MAAA,CAAAC,MAAA,KAAQN,UAAU;QAAEO,SAAS,EAAE;MAAW,EAAE;IACrD,CAAC,MAAM;MAELN,OAAO,GAAGD,UAA0B;IACtC;EACF;EAEA,MAAM;IAAEP;EAAuB,CAAC,GAAGK,OAAO;EAC1C,IAAIU,UAAU;EACd,IAAIC,wBAAwB,GAAG,KAAK;EACpC,IAAI,OAAOhB,sBAAsB,KAAK,QAAQ,EAAE;IAC9Ce,UAAU,GAAGf,sBAAsB;EACrC,CAAC,MAAM;IACLgB,wBAAwB,GAAGhB,sBAAsB,KAAK,KAAK;EAC7D;EAEA,OAAO,IAAAiB,mCAAU,EAACT,OAAO,EAAE;IACzBQ,wBAAwB;IACxBD,UAAU;IACVG,UAAU,EAAEZ,IAAI;IAChBa,eAAe,EAAEd,OAAO,CAACc;EAC3B,CAAC,CAAC;AACJ;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/validation/option-assertions.js b/node_modules/@babel/core/lib/config/validation/option-assertions.js index 022797172..73d577c58 100644 --- a/node_modules/@babel/core/lib/config/validation/option-assertions.js +++ b/node_modules/@babel/core/lib/config/validation/option-assertions.js @@ -73,8 +73,8 @@ function assertCompact(loc, value) { return value; } function assertSourceType(loc, value) { - if (value !== undefined && value !== "module" && value !== "commonjs" && value !== "script" && value !== "unambiguous") { - throw new Error(`${msg(loc)} must be "module", "commonjs", "script", "unambiguous", or undefined`); + if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") { + throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`); } return value; } diff --git a/node_modules/@babel/core/lib/config/validation/option-assertions.js.map b/node_modules/@babel/core/lib/config/validation/option-assertions.js.map index 41ba72fae..f68e0d32b 100644 --- a/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +++ b/node_modules/@babel/core/lib/config/validation/option-assertions.js.map @@ -1 +1 @@ -{"version":3,"names":["_helperCompilationTargets","data","require","_options","msg","loc","type","parent","name","index","JSON","stringify","Error","access","assertRootMode","value","undefined","assertSourceMaps","assertCompact","assertSourceType","assertCallerMetadata","obj","assertObject","prop","Object","keys","propLoc","assertInputSourceMap","assertString","assertFunction","assertBoolean","Array","isArray","assertArray","assertIgnoreList","arr","forEach","item","i","assertIgnoreItem","RegExp","assertConfigApplicableTest","checkValidTest","assertConfigFileSearch","assertBabelrcSearch","assertPluginList","assertPluginItem","length","assertPluginTarget","opts","assertTargets","isBrowsersQueryValid","browsersLoc","esmodulesLoc","assertBrowsersList","browsers","esmodules","key","val","subLoc","hasOwnProperty","call","TargetNames","validTargets","join","assertBrowserVersion","Math","round","assertAssumptions","root","inPreset","source","assumptionsNames","has"],"sources":["../../../src/config/validation/option-assertions.ts"],"sourcesContent":["import {\n isBrowsersQueryValid,\n TargetNames,\n} from \"@babel/helper-compilation-targets\";\n\nimport type {\n ConfigFileSearch,\n BabelrcSearch,\n IgnoreList,\n IgnoreItem,\n PluginList,\n PluginItem,\n PluginTarget,\n ConfigApplicableTest,\n SourceMapsOption,\n SourceTypeOption,\n CompactOption,\n RootInputSourceMapOption,\n NestingPath,\n CallerMetadata,\n RootMode,\n TargetsListOrObject,\n AssumptionName,\n} from \"./options.ts\";\n\nimport { assumptionsNames } from \"./options.ts\";\n\nexport type { RootPath } from \"./options.ts\";\n\nexport type ValidatorSet = {\n [name: string]: Validator;\n};\n\nexport type Validator = (loc: OptionPath, value: unknown) => T;\n\nexport function msg(loc: NestingPath | GeneralPath): string {\n switch (loc.type) {\n case \"root\":\n return ``;\n case \"env\":\n return `${msg(loc.parent)}.env[\"${loc.name}\"]`;\n case \"overrides\":\n return `${msg(loc.parent)}.overrides[${loc.index}]`;\n case \"option\":\n return `${msg(loc.parent)}.${loc.name}`;\n case \"access\":\n return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`;\n default:\n // @ts-expect-error should not happen when code is type checked\n throw new Error(`Assertion failure: Unknown type ${loc.type}`);\n }\n}\n\nexport function access(loc: GeneralPath, name: string | number): AccessPath {\n return {\n type: \"access\",\n name,\n parent: loc,\n };\n}\n\nexport type OptionPath = Readonly<{\n type: \"option\";\n name: string;\n parent: NestingPath;\n}>;\ntype AccessPath = Readonly<{\n type: \"access\";\n name: string | number;\n parent: GeneralPath;\n}>;\ntype GeneralPath = OptionPath | AccessPath;\n\nexport function assertRootMode(\n loc: OptionPath,\n value: unknown,\n): RootMode | void {\n if (\n value !== undefined &&\n value !== \"root\" &&\n value !== \"upward\" &&\n value !== \"upward-optional\"\n ) {\n throw new Error(\n `${msg(loc)} must be a \"root\", \"upward\", \"upward-optional\" or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertSourceMaps(\n loc: OptionPath,\n value: unknown,\n): SourceMapsOption | void {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n value !== \"inline\" &&\n value !== \"both\"\n ) {\n throw new Error(\n `${msg(loc)} must be a boolean, \"inline\", \"both\", or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertCompact(\n loc: OptionPath,\n value: unknown,\n): CompactOption | void {\n if (value !== undefined && typeof value !== \"boolean\" && value !== \"auto\") {\n throw new Error(`${msg(loc)} must be a boolean, \"auto\", or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertSourceType(\n loc: OptionPath,\n value: unknown,\n): SourceTypeOption | void {\n if (\n value !== undefined &&\n value !== \"module\" &&\n value !== \"commonjs\" &&\n value !== \"script\" &&\n value !== \"unambiguous\"\n ) {\n throw new Error(\n `${msg(loc)} must be \"module\", \"commonjs\", \"script\", \"unambiguous\", or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertCallerMetadata(\n loc: OptionPath,\n value: unknown,\n): CallerMetadata | undefined {\n const obj = assertObject(loc, value);\n if (obj) {\n if (typeof obj.name !== \"string\") {\n throw new Error(\n `${msg(loc)} set but does not contain \"name\" property string`,\n );\n }\n\n for (const prop of Object.keys(obj)) {\n const propLoc = access(loc, prop);\n const value = obj[prop];\n if (\n value != null &&\n typeof value !== \"boolean\" &&\n typeof value !== \"string\" &&\n typeof value !== \"number\"\n ) {\n // NOTE(logan): I'm limiting the type here so that we can guarantee that\n // the \"caller\" value will serialize to JSON nicely. We can always\n // allow more complex structures later though.\n throw new Error(\n `${msg(\n propLoc,\n )} must be null, undefined, a boolean, a string, or a number.`,\n );\n }\n }\n }\n // @ts-expect-error todo(flow->ts)\n return value;\n}\n\nexport function assertInputSourceMap(\n loc: OptionPath,\n value: unknown,\n): RootInputSourceMapOption {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n (typeof value !== \"object\" || !value)\n ) {\n throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);\n }\n return value as RootInputSourceMapOption;\n}\n\nexport function assertString(loc: GeneralPath, value: unknown): string | void {\n if (value !== undefined && typeof value !== \"string\") {\n throw new Error(`${msg(loc)} must be a string, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertFunction(\n loc: GeneralPath,\n value: unknown,\n): Function | void {\n if (value !== undefined && typeof value !== \"function\") {\n throw new Error(`${msg(loc)} must be a function, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertBoolean(\n loc: GeneralPath,\n value: unknown,\n): boolean | void {\n if (value !== undefined && typeof value !== \"boolean\") {\n throw new Error(`${msg(loc)} must be a boolean, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertObject(\n loc: GeneralPath,\n value: unknown,\n): { readonly [key: string]: unknown } | void {\n if (\n value !== undefined &&\n (typeof value !== \"object\" || Array.isArray(value) || !value)\n ) {\n throw new Error(`${msg(loc)} must be an object, or undefined`);\n }\n // @ts-expect-error todo(flow->ts) value is still typed as unknown, also assert function typically should not return a value\n return value;\n}\n\nexport function assertArray(\n loc: GeneralPath,\n value: Array | undefined | null,\n): ReadonlyArray | undefined | null {\n if (value != null && !Array.isArray(value)) {\n throw new Error(`${msg(loc)} must be an array, or undefined`);\n }\n return value;\n}\n\nexport function assertIgnoreList(\n loc: OptionPath,\n value: unknown[] | undefined,\n): IgnoreList | void {\n const arr = assertArray(loc, value);\n arr?.forEach((item, i) => assertIgnoreItem(access(loc, i), item));\n // @ts-expect-error todo(flow->ts)\n return arr;\n}\nfunction assertIgnoreItem(loc: GeneralPath, value: unknown): IgnoreItem {\n if (\n typeof value !== \"string\" &&\n typeof value !== \"function\" &&\n !(value instanceof RegExp)\n ) {\n throw new Error(\n `${msg(\n loc,\n )} must be an array of string/Function/RegExp values, or undefined`,\n );\n }\n return value as IgnoreItem;\n}\n\nexport function assertConfigApplicableTest(\n loc: OptionPath,\n value: unknown,\n): ConfigApplicableTest | void {\n if (value === undefined) {\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n }\n\n if (Array.isArray(value)) {\n value.forEach((item, i) => {\n if (!checkValidTest(item)) {\n throw new Error(\n `${msg(access(loc, i))} must be a string/Function/RegExp.`,\n );\n }\n });\n } else if (!checkValidTest(value)) {\n throw new Error(\n `${msg(loc)} must be a string/Function/RegExp, or an array of those`,\n );\n }\n return value as ConfigApplicableTest;\n}\n\nfunction checkValidTest(value: unknown): value is string | Function | RegExp {\n return (\n typeof value === \"string\" ||\n typeof value === \"function\" ||\n value instanceof RegExp\n );\n}\n\nexport function assertConfigFileSearch(\n loc: OptionPath,\n value: unknown,\n): ConfigFileSearch | void {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n typeof value !== \"string\"\n ) {\n throw new Error(\n `${msg(loc)} must be a undefined, a boolean, a string, ` +\n `got ${JSON.stringify(value)}`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertBabelrcSearch(\n loc: OptionPath,\n value: unknown,\n): BabelrcSearch | void {\n if (value === undefined || typeof value === \"boolean\") {\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n }\n\n if (Array.isArray(value)) {\n value.forEach((item, i) => {\n if (!checkValidTest(item)) {\n throw new Error(\n `${msg(access(loc, i))} must be a string/Function/RegExp.`,\n );\n }\n });\n } else if (!checkValidTest(value)) {\n throw new Error(\n `${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` +\n `or an array of those, got ${JSON.stringify(value as any)}`,\n );\n }\n return value as BabelrcSearch;\n}\n\nexport function assertPluginList(\n loc: OptionPath,\n value: unknown[] | null | undefined,\n): PluginList | void {\n const arr = assertArray(loc, value);\n if (arr) {\n // Loop instead of using `.map` in order to preserve object identity\n // for plugin array for use during config chain processing.\n arr.forEach((item, i) => assertPluginItem(access(loc, i), item));\n }\n return arr as any;\n}\nfunction assertPluginItem(loc: GeneralPath, value: unknown): PluginItem {\n if (Array.isArray(value)) {\n if (value.length === 0) {\n throw new Error(`${msg(loc)} must include an object`);\n }\n\n if (value.length > 3) {\n throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`);\n }\n\n assertPluginTarget(access(loc, 0), value[0]);\n\n if (value.length > 1) {\n const opts = value[1];\n if (\n opts !== undefined &&\n opts !== false &&\n (typeof opts !== \"object\" || Array.isArray(opts) || opts === null)\n ) {\n throw new Error(\n `${msg(access(loc, 1))} must be an object, false, or undefined`,\n );\n }\n }\n if (value.length === 3) {\n const name = value[2];\n if (name !== undefined && typeof name !== \"string\") {\n throw new Error(\n `${msg(access(loc, 2))} must be a string, or undefined`,\n );\n }\n }\n } else {\n assertPluginTarget(loc, value);\n }\n\n // @ts-expect-error todo(flow->ts)\n return value;\n}\nfunction assertPluginTarget(loc: GeneralPath, value: unknown): PluginTarget {\n if (\n (typeof value !== \"object\" || !value) &&\n typeof value !== \"string\" &&\n typeof value !== \"function\"\n ) {\n throw new Error(`${msg(loc)} must be a string, object, function`);\n }\n return value;\n}\n\nexport function assertTargets(\n loc: GeneralPath,\n value: any,\n): TargetsListOrObject {\n if (isBrowsersQueryValid(value)) return value;\n\n if (typeof value !== \"object\" || !value || Array.isArray(value)) {\n throw new Error(\n `${msg(loc)} must be a string, an array of strings or an object`,\n );\n }\n\n const browsersLoc = access(loc, \"browsers\");\n const esmodulesLoc = access(loc, \"esmodules\");\n\n assertBrowsersList(browsersLoc, value.browsers);\n assertBoolean(esmodulesLoc, value.esmodules);\n\n for (const key of Object.keys(value)) {\n const val = value[key];\n const subLoc = access(loc, key);\n\n if (key === \"esmodules\") assertBoolean(subLoc, val);\n else if (key === \"browsers\") assertBrowsersList(subLoc, val);\n else if (!Object.hasOwn(TargetNames, key)) {\n const validTargets = Object.keys(TargetNames).join(\", \");\n throw new Error(\n `${msg(\n subLoc,\n )} is not a valid target. Supported targets are ${validTargets}`,\n );\n } else assertBrowserVersion(subLoc, val);\n }\n\n return value;\n}\n\nfunction assertBrowsersList(loc: GeneralPath, value: unknown) {\n if (value !== undefined && !isBrowsersQueryValid(value)) {\n throw new Error(\n `${msg(loc)} must be undefined, a string or an array of strings`,\n );\n }\n}\n\nfunction assertBrowserVersion(loc: GeneralPath, value: unknown) {\n if (typeof value === \"number\" && Math.round(value) === value) return;\n if (typeof value === \"string\") return;\n\n throw new Error(`${msg(loc)} must be a string or an integer number`);\n}\n\nexport function assertAssumptions(\n loc: GeneralPath,\n value: { [key: string]: unknown },\n): { [name: string]: boolean } | void {\n if (value === undefined) return;\n\n if (typeof value !== \"object\" || value === null) {\n throw new Error(`${msg(loc)} must be an object or undefined.`);\n }\n\n // todo(flow->ts): remove any\n let root: any = loc;\n do {\n root = root.parent;\n } while (root.type !== \"root\");\n const inPreset = root.source === \"preset\";\n\n for (const name of Object.keys(value)) {\n const subLoc = access(loc, name);\n if (!assumptionsNames.has(name as AssumptionName)) {\n throw new Error(`${msg(subLoc)} is not a supported assumption.`);\n }\n if (typeof value[name] !== \"boolean\") {\n throw new Error(`${msg(subLoc)} must be a boolean.`);\n }\n if (inPreset && value[name] === false) {\n throw new Error(\n `${msg(subLoc)} cannot be set to 'false' inside presets.`,\n );\n }\n }\n\n // @ts-expect-error todo(flow->ts)\n return value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,0BAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,yBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAyBA,IAAAE,QAAA,GAAAD,OAAA;AAUO,SAASE,GAAGA,CAACC,GAA8B,EAAU;EAC1D,QAAQA,GAAG,CAACC,IAAI;IACd,KAAK,MAAM;MACT,OAAO,EAAE;IACX,KAAK,KAAK;MACR,OAAO,GAAGF,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,SAASF,GAAG,CAACG,IAAI,IAAI;IAChD,KAAK,WAAW;MACd,OAAO,GAAGJ,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,cAAcF,GAAG,CAACI,KAAK,GAAG;IACrD,KAAK,QAAQ;MACX,OAAO,GAAGL,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,IAAIF,GAAG,CAACG,IAAI,EAAE;IACzC,KAAK,QAAQ;MACX,OAAO,GAAGJ,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,IAAIG,IAAI,CAACC,SAAS,CAACN,GAAG,CAACG,IAAI,CAAC,GAAG;IAC1D;MAEE,MAAM,IAAII,KAAK,CAAC,mCAAmCP,GAAG,CAACC,IAAI,EAAE,CAAC;EAClE;AACF;AAEO,SAASO,MAAMA,CAACR,GAAgB,EAAEG,IAAqB,EAAc;EAC1E,OAAO;IACLF,IAAI,EAAE,QAAQ;IACdE,IAAI;IACJD,MAAM,EAAEF;EACV,CAAC;AACH;AAcO,SAASS,cAAcA,CAC5BT,GAAe,EACfU,KAAc,EACG;EACjB,IACEA,KAAK,KAAKC,SAAS,IACnBD,KAAK,KAAK,MAAM,IAChBA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,iBAAiB,EAC3B;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,6DACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASE,gBAAgBA,CAC9BZ,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,IAC1BA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,MAAM,EAChB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,oDACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASG,aAAaA,CAC3Bb,GAAe,EACfU,KAAc,EACQ;EACtB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,IAAIA,KAAK,KAAK,MAAM,EAAE;IACzE,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,0CAA0C,CAAC;EACxE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASI,gBAAgBA,CAC9Bd,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnBD,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,UAAU,IACpBA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,aAAa,EACvB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,sEACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASK,oBAAoBA,CAClCf,GAAe,EACfU,KAAc,EACc;EAC5B,MAAMM,GAAG,GAAGC,YAAY,CAACjB,GAAG,EAAEU,KAAK,CAAC;EACpC,IAAIM,GAAG,EAAE;IACP,IAAI,OAAOA,GAAG,CAACb,IAAI,KAAK,QAAQ,EAAE;MAChC,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,kDACb,CAAC;IACH;IAEA,KAAK,MAAMkB,IAAI,IAAIC,MAAM,CAACC,IAAI,CAACJ,GAAG,CAAC,EAAE;MACnC,MAAMK,OAAO,GAAGb,MAAM,CAACR,GAAG,EAAEkB,IAAI,CAAC;MACjC,MAAMR,KAAK,GAAGM,GAAG,CAACE,IAAI,CAAC;MACvB,IACER,KAAK,IAAI,IAAI,IACb,OAAOA,KAAK,KAAK,SAAS,IAC1B,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,QAAQ,EACzB;QAIA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CACJsB,OACF,CAAC,6DACH,CAAC;MACH;IACF;EACF;EAEA,OAAOX,KAAK;AACd;AAEO,SAASY,oBAAoBA,CAClCtB,GAAe,EACfU,KAAc,EACY;EAC1B,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,KACzB,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,CAAC,EACrC;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,0CAA0C,CAAC;EACxE;EACA,OAAOU,KAAK;AACd;AAEO,SAASa,YAAYA,CAACvB,GAAgB,EAAEU,KAAc,EAAiB;EAC5E,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IACpD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,iCAAiC,CAAC;EAC/D;EAEA,OAAOU,KAAK;AACd;AAEO,SAASc,cAAcA,CAC5BxB,GAAgB,EAChBU,KAAc,EACG;EACjB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,UAAU,EAAE;IACtD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,mCAAmC,CAAC;EACjE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASe,aAAaA,CAC3BzB,GAAgB,EAChBU,KAAc,EACE;EAChB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,EAAE;IACrD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASO,YAAYA,CAC1BjB,GAAgB,EAChBU,KAAc,EAC8B;EAC5C,IACEA,KAAK,KAAKC,SAAS,KAClB,OAAOD,KAAK,KAAK,QAAQ,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC,EAC7D;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASkB,WAAWA,CACzB5B,GAAgB,EAChBU,KAAkC,EACG;EACrC,IAAIA,KAAK,IAAI,IAAI,IAAI,CAACgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IAC1C,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,iCAAiC,CAAC;EAC/D;EACA,OAAOU,KAAK;AACd;AAEO,SAASmB,gBAAgBA,CAC9B7B,GAAe,EACfU,KAA4B,EACT;EACnB,MAAMoB,GAAG,GAAGF,WAAW,CAAC5B,GAAG,EAAEU,KAAK,CAAC;EACnCoB,GAAG,YAAHA,GAAG,CAAEC,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAKC,gBAAgB,CAAC1B,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,EAAED,IAAI,CAAC,CAAC;EAEjE,OAAOF,GAAG;AACZ;AACA,SAASI,gBAAgBA,CAAClC,GAAgB,EAAEU,KAAc,EAAc;EACtE,IACE,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,IAC3B,EAAEA,KAAK,YAAYyB,MAAM,CAAC,EAC1B;IACA,MAAM,IAAI5B,KAAK,CACb,GAAGR,GAAG,CACJC,GACF,CAAC,kEACH,CAAC;EACH;EACA,OAAOU,KAAK;AACd;AAEO,SAAS0B,0BAA0BA,CACxCpC,GAAe,EACfU,KAAc,EACe;EAC7B,IAAIA,KAAK,KAAKC,SAAS,EAAE;IAEvB,OAAOD,KAAK;EACd;EAEA,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxBA,KAAK,CAACqB,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;MACzB,IAAI,CAACI,cAAc,CAACL,IAAI,CAAC,EAAE;QACzB,MAAM,IAAIzB,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,CAAC,oCACxB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,CAACI,cAAc,CAAC3B,KAAK,CAAC,EAAE;IACjC,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,yDACb,CAAC;EACH;EACA,OAAOU,KAAK;AACd;AAEA,SAAS2B,cAAcA,CAAC3B,KAAc,EAAuC;EAC3E,OACE,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,IAC3BA,KAAK,YAAYyB,MAAM;AAE3B;AAEO,SAASG,sBAAsBA,CACpCtC,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,IAC1B,OAAOA,KAAK,KAAK,QAAQ,EACzB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,6CAA6C,GACtD,OAAOK,IAAI,CAACC,SAAS,CAACI,KAAK,CAAC,EAChC,CAAC;EACH;EAEA,OAAOA,KAAK;AACd;AAEO,SAAS6B,mBAAmBA,CACjCvC,GAAe,EACfU,KAAc,EACQ;EACtB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,EAAE;IAErD,OAAOA,KAAK;EACd;EAEA,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxBA,KAAK,CAACqB,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;MACzB,IAAI,CAACI,cAAc,CAACL,IAAI,CAAC,EAAE;QACzB,MAAM,IAAIzB,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,CAAC,oCACxB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,CAACI,cAAc,CAAC3B,KAAK,CAAC,EAAE;IACjC,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,4DAA4D,GACrE,6BAA6BK,IAAI,CAACC,SAAS,CAACI,KAAY,CAAC,EAC7D,CAAC;EACH;EACA,OAAOA,KAAK;AACd;AAEO,SAAS8B,gBAAgBA,CAC9BxC,GAAe,EACfU,KAAmC,EAChB;EACnB,MAAMoB,GAAG,GAAGF,WAAW,CAAC5B,GAAG,EAAEU,KAAK,CAAC;EACnC,IAAIoB,GAAG,EAAE;IAGPA,GAAG,CAACC,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAKQ,gBAAgB,CAACjC,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,EAAED,IAAI,CAAC,CAAC;EAClE;EACA,OAAOF,GAAG;AACZ;AACA,SAASW,gBAAgBA,CAACzC,GAAgB,EAAEU,KAAc,EAAc;EACtE,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxB,IAAIA,KAAK,CAACgC,MAAM,KAAK,CAAC,EAAE;MACtB,MAAM,IAAInC,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,yBAAyB,CAAC;IACvD;IAEA,IAAIU,KAAK,CAACgC,MAAM,GAAG,CAAC,EAAE;MACpB,MAAM,IAAInC,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,yCAAyC,CAAC;IACvE;IAEA2C,kBAAkB,CAACnC,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,EAAEU,KAAK,CAAC,CAAC,CAAC,CAAC;IAE5C,IAAIA,KAAK,CAACgC,MAAM,GAAG,CAAC,EAAE;MACpB,MAAME,IAAI,GAAGlC,KAAK,CAAC,CAAC,CAAC;MACrB,IACEkC,IAAI,KAAKjC,SAAS,IAClBiC,IAAI,KAAK,KAAK,KACb,OAAOA,IAAI,KAAK,QAAQ,IAAIlB,KAAK,CAACC,OAAO,CAACiB,IAAI,CAAC,IAAIA,IAAI,KAAK,IAAI,CAAC,EAClE;QACA,MAAM,IAAIrC,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,CAAC,yCACxB,CAAC;MACH;IACF;IACA,IAAIU,KAAK,CAACgC,MAAM,KAAK,CAAC,EAAE;MACtB,MAAMvC,IAAI,GAAGO,KAAK,CAAC,CAAC,CAAC;MACrB,IAAIP,IAAI,KAAKQ,SAAS,IAAI,OAAOR,IAAI,KAAK,QAAQ,EAAE;QAClD,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,CAAC,iCACxB,CAAC;MACH;IACF;EACF,CAAC,MAAM;IACL2C,kBAAkB,CAAC3C,GAAG,EAAEU,KAAK,CAAC;EAChC;EAGA,OAAOA,KAAK;AACd;AACA,SAASiC,kBAAkBA,CAAC3C,GAAgB,EAAEU,KAAc,EAAgB;EAC1E,IACE,CAAC,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,KACpC,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,EAC3B;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,qCAAqC,CAAC;EACnE;EACA,OAAOU,KAAK;AACd;AAEO,SAASmC,aAAaA,CAC3B7C,GAAgB,EAChBU,KAAU,EACW;EACrB,IAAI,IAAAoC,gDAAoB,EAACpC,KAAK,CAAC,EAAE,OAAOA,KAAK;EAE7C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IAC/D,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,qDACb,CAAC;EACH;EAEA,MAAM+C,WAAW,GAAGvC,MAAM,CAACR,GAAG,EAAE,UAAU,CAAC;EAC3C,MAAMgD,YAAY,GAAGxC,MAAM,CAACR,GAAG,EAAE,WAAW,CAAC;EAE7CiD,kBAAkB,CAACF,WAAW,EAAErC,KAAK,CAACwC,QAAQ,CAAC;EAC/CzB,aAAa,CAACuB,YAAY,EAAEtC,KAAK,CAACyC,SAAS,CAAC;EAE5C,KAAK,MAAMC,GAAG,IAAIjC,MAAM,CAACC,IAAI,CAACV,KAAK,CAAC,EAAE;IACpC,MAAM2C,GAAG,GAAG3C,KAAK,CAAC0C,GAAG,CAAC;IACtB,MAAME,MAAM,GAAG9C,MAAM,CAACR,GAAG,EAAEoD,GAAG,CAAC;IAE/B,IAAIA,GAAG,KAAK,WAAW,EAAE3B,aAAa,CAAC6B,MAAM,EAAED,GAAG,CAAC,CAAC,KAC/C,IAAID,GAAG,KAAK,UAAU,EAAEH,kBAAkB,CAACK,MAAM,EAAED,GAAG,CAAC,CAAC,KACxD,IAAI,CAACE,cAAA,CAAAC,IAAA,CAAcC,uCAAW,EAAEL,GAAG,CAAC,EAAE;MACzC,MAAMM,YAAY,GAAGvC,MAAM,CAACC,IAAI,CAACqC,uCAAW,CAAC,CAACE,IAAI,CAAC,IAAI,CAAC;MACxD,MAAM,IAAIpD,KAAK,CACb,GAAGR,GAAG,CACJuD,MACF,CAAC,iDAAiDI,YAAY,EAChE,CAAC;IACH,CAAC,MAAME,oBAAoB,CAACN,MAAM,EAAED,GAAG,CAAC;EAC1C;EAEA,OAAO3C,KAAK;AACd;AAEA,SAASuC,kBAAkBA,CAACjD,GAAgB,EAAEU,KAAc,EAAE;EAC5D,IAAIA,KAAK,KAAKC,SAAS,IAAI,CAAC,IAAAmC,gDAAoB,EAACpC,KAAK,CAAC,EAAE;IACvD,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,qDACb,CAAC;EACH;AACF;AAEA,SAAS4D,oBAAoBA,CAAC5D,GAAgB,EAAEU,KAAc,EAAE;EAC9D,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAImD,IAAI,CAACC,KAAK,CAACpD,KAAK,CAAC,KAAKA,KAAK,EAAE;EAC9D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;EAE/B,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,wCAAwC,CAAC;AACtE;AAEO,SAAS+D,iBAAiBA,CAC/B/D,GAAgB,EAChBU,KAAiC,EACG;EACpC,IAAIA,KAAK,KAAKC,SAAS,EAAE;EAEzB,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;IAC/C,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAGA,IAAIgE,IAAS,GAAGhE,GAAG;EACnB,GAAG;IACDgE,IAAI,GAAGA,IAAI,CAAC9D,MAAM;EACpB,CAAC,QAAQ8D,IAAI,CAAC/D,IAAI,KAAK,MAAM;EAC7B,MAAMgE,QAAQ,GAAGD,IAAI,CAACE,MAAM,KAAK,QAAQ;EAEzC,KAAK,MAAM/D,IAAI,IAAIgB,MAAM,CAACC,IAAI,CAACV,KAAK,CAAC,EAAE;IACrC,MAAM4C,MAAM,GAAG9C,MAAM,CAACR,GAAG,EAAEG,IAAI,CAAC;IAChC,IAAI,CAACgE,yBAAgB,CAACC,GAAG,CAACjE,IAAsB,CAAC,EAAE;MACjD,MAAM,IAAII,KAAK,CAAC,GAAGR,GAAG,CAACuD,MAAM,CAAC,iCAAiC,CAAC;IAClE;IACA,IAAI,OAAO5C,KAAK,CAACP,IAAI,CAAC,KAAK,SAAS,EAAE;MACpC,MAAM,IAAII,KAAK,CAAC,GAAGR,GAAG,CAACuD,MAAM,CAAC,qBAAqB,CAAC;IACtD;IACA,IAAIW,QAAQ,IAAIvD,KAAK,CAACP,IAAI,CAAC,KAAK,KAAK,EAAE;MACrC,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACuD,MAAM,CAAC,2CAChB,CAAC;IACH;EACF;EAGA,OAAO5C,KAAK;AACd;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_helperCompilationTargets","data","require","_options","msg","loc","type","parent","name","index","JSON","stringify","Error","access","assertRootMode","value","undefined","assertSourceMaps","assertCompact","assertSourceType","assertCallerMetadata","obj","assertObject","prop","Object","keys","propLoc","assertInputSourceMap","assertString","assertFunction","assertBoolean","Array","isArray","assertArray","assertIgnoreList","arr","forEach","item","i","assertIgnoreItem","RegExp","assertConfigApplicableTest","checkValidTest","assertConfigFileSearch","assertBabelrcSearch","assertPluginList","assertPluginItem","length","assertPluginTarget","opts","assertTargets","isBrowsersQueryValid","browsersLoc","esmodulesLoc","assertBrowsersList","browsers","esmodules","key","val","subLoc","hasOwnProperty","call","TargetNames","validTargets","join","assertBrowserVersion","Math","round","assertAssumptions","root","inPreset","source","assumptionsNames","has"],"sources":["../../../src/config/validation/option-assertions.ts"],"sourcesContent":["import {\n isBrowsersQueryValid,\n TargetNames,\n} from \"@babel/helper-compilation-targets\";\n\nimport type {\n ConfigFileSearch,\n BabelrcSearch,\n IgnoreList,\n IgnoreItem,\n PluginList,\n PluginItem,\n PluginTarget,\n ConfigApplicableTest,\n SourceMapsOption,\n SourceTypeOption,\n CompactOption,\n RootInputSourceMapOption,\n NestingPath,\n CallerMetadata,\n RootMode,\n TargetsListOrObject,\n AssumptionName,\n} from \"./options.ts\";\n\nimport { assumptionsNames } from \"./options.ts\";\n\nexport type { RootPath } from \"./options.ts\";\n\nexport type ValidatorSet = {\n [name: string]: Validator;\n};\n\nexport type Validator = (loc: OptionPath, value: unknown) => T;\n\nexport function msg(loc: NestingPath | GeneralPath): string {\n switch (loc.type) {\n case \"root\":\n return ``;\n case \"env\":\n return `${msg(loc.parent)}.env[\"${loc.name}\"]`;\n case \"overrides\":\n return `${msg(loc.parent)}.overrides[${loc.index}]`;\n case \"option\":\n return `${msg(loc.parent)}.${loc.name}`;\n case \"access\":\n return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`;\n default:\n // @ts-expect-error should not happen when code is type checked\n throw new Error(`Assertion failure: Unknown type ${loc.type}`);\n }\n}\n\nexport function access(loc: GeneralPath, name: string | number): AccessPath {\n return {\n type: \"access\",\n name,\n parent: loc,\n };\n}\n\nexport type OptionPath = Readonly<{\n type: \"option\";\n name: string;\n parent: NestingPath;\n}>;\ntype AccessPath = Readonly<{\n type: \"access\";\n name: string | number;\n parent: GeneralPath;\n}>;\ntype GeneralPath = OptionPath | AccessPath;\n\nexport function assertRootMode(\n loc: OptionPath,\n value: unknown,\n): RootMode | void {\n if (\n value !== undefined &&\n value !== \"root\" &&\n value !== \"upward\" &&\n value !== \"upward-optional\"\n ) {\n throw new Error(\n `${msg(loc)} must be a \"root\", \"upward\", \"upward-optional\" or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertSourceMaps(\n loc: OptionPath,\n value: unknown,\n): SourceMapsOption | void {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n value !== \"inline\" &&\n value !== \"both\"\n ) {\n throw new Error(\n `${msg(loc)} must be a boolean, \"inline\", \"both\", or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertCompact(\n loc: OptionPath,\n value: unknown,\n): CompactOption | void {\n if (value !== undefined && typeof value !== \"boolean\" && value !== \"auto\") {\n throw new Error(`${msg(loc)} must be a boolean, \"auto\", or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertSourceType(\n loc: OptionPath,\n value: unknown,\n): SourceTypeOption | void {\n if (\n value !== undefined &&\n value !== \"module\" &&\n value !== \"script\" &&\n value !== \"unambiguous\"\n ) {\n throw new Error(\n `${msg(loc)} must be \"module\", \"script\", \"unambiguous\", or undefined`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertCallerMetadata(\n loc: OptionPath,\n value: unknown,\n): CallerMetadata | undefined {\n const obj = assertObject(loc, value);\n if (obj) {\n if (typeof obj.name !== \"string\") {\n throw new Error(\n `${msg(loc)} set but does not contain \"name\" property string`,\n );\n }\n\n for (const prop of Object.keys(obj)) {\n const propLoc = access(loc, prop);\n const value = obj[prop];\n if (\n value != null &&\n typeof value !== \"boolean\" &&\n typeof value !== \"string\" &&\n typeof value !== \"number\"\n ) {\n // NOTE(logan): I'm limiting the type here so that we can guarantee that\n // the \"caller\" value will serialize to JSON nicely. We can always\n // allow more complex structures later though.\n throw new Error(\n `${msg(\n propLoc,\n )} must be null, undefined, a boolean, a string, or a number.`,\n );\n }\n }\n }\n // @ts-expect-error todo(flow->ts)\n return value;\n}\n\nexport function assertInputSourceMap(\n loc: OptionPath,\n value: unknown,\n): RootInputSourceMapOption {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n (typeof value !== \"object\" || !value)\n ) {\n throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);\n }\n return value as RootInputSourceMapOption;\n}\n\nexport function assertString(loc: GeneralPath, value: unknown): string | void {\n if (value !== undefined && typeof value !== \"string\") {\n throw new Error(`${msg(loc)} must be a string, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertFunction(\n loc: GeneralPath,\n value: unknown,\n): Function | void {\n if (value !== undefined && typeof value !== \"function\") {\n throw new Error(`${msg(loc)} must be a function, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertBoolean(\n loc: GeneralPath,\n value: unknown,\n): boolean | void {\n if (value !== undefined && typeof value !== \"boolean\") {\n throw new Error(`${msg(loc)} must be a boolean, or undefined`);\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertObject(\n loc: GeneralPath,\n value: unknown,\n): { readonly [key: string]: unknown } | void {\n if (\n value !== undefined &&\n (typeof value !== \"object\" || Array.isArray(value) || !value)\n ) {\n throw new Error(`${msg(loc)} must be an object, or undefined`);\n }\n // @ts-expect-error todo(flow->ts) value is still typed as unknown, also assert function typically should not return a value\n return value;\n}\n\nexport function assertArray(\n loc: GeneralPath,\n value: Array | undefined | null,\n): ReadonlyArray | undefined | null {\n if (value != null && !Array.isArray(value)) {\n throw new Error(`${msg(loc)} must be an array, or undefined`);\n }\n return value;\n}\n\nexport function assertIgnoreList(\n loc: OptionPath,\n value: unknown[] | undefined,\n): IgnoreList | void {\n const arr = assertArray(loc, value);\n arr?.forEach((item, i) => assertIgnoreItem(access(loc, i), item));\n // @ts-expect-error todo(flow->ts)\n return arr;\n}\nfunction assertIgnoreItem(loc: GeneralPath, value: unknown): IgnoreItem {\n if (\n typeof value !== \"string\" &&\n typeof value !== \"function\" &&\n !(value instanceof RegExp)\n ) {\n throw new Error(\n `${msg(\n loc,\n )} must be an array of string/Function/RegExp values, or undefined`,\n );\n }\n return value as IgnoreItem;\n}\n\nexport function assertConfigApplicableTest(\n loc: OptionPath,\n value: unknown,\n): ConfigApplicableTest | void {\n if (value === undefined) {\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n }\n\n if (Array.isArray(value)) {\n value.forEach((item, i) => {\n if (!checkValidTest(item)) {\n throw new Error(\n `${msg(access(loc, i))} must be a string/Function/RegExp.`,\n );\n }\n });\n } else if (!checkValidTest(value)) {\n throw new Error(\n `${msg(loc)} must be a string/Function/RegExp, or an array of those`,\n );\n }\n return value as ConfigApplicableTest;\n}\n\nfunction checkValidTest(value: unknown): value is string | Function | RegExp {\n return (\n typeof value === \"string\" ||\n typeof value === \"function\" ||\n value instanceof RegExp\n );\n}\n\nexport function assertConfigFileSearch(\n loc: OptionPath,\n value: unknown,\n): ConfigFileSearch | void {\n if (\n value !== undefined &&\n typeof value !== \"boolean\" &&\n typeof value !== \"string\"\n ) {\n throw new Error(\n `${msg(loc)} must be a undefined, a boolean, a string, ` +\n `got ${JSON.stringify(value)}`,\n );\n }\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n}\n\nexport function assertBabelrcSearch(\n loc: OptionPath,\n value: unknown,\n): BabelrcSearch | void {\n if (value === undefined || typeof value === \"boolean\") {\n // @ts-expect-error: TS can only narrow down the type when \"strictNullCheck\" is true\n return value;\n }\n\n if (Array.isArray(value)) {\n value.forEach((item, i) => {\n if (!checkValidTest(item)) {\n throw new Error(\n `${msg(access(loc, i))} must be a string/Function/RegExp.`,\n );\n }\n });\n } else if (!checkValidTest(value)) {\n throw new Error(\n `${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` +\n `or an array of those, got ${JSON.stringify(value as any)}`,\n );\n }\n return value as BabelrcSearch;\n}\n\nexport function assertPluginList(\n loc: OptionPath,\n value: unknown[] | null | undefined,\n): PluginList | void {\n const arr = assertArray(loc, value);\n if (arr) {\n // Loop instead of using `.map` in order to preserve object identity\n // for plugin array for use during config chain processing.\n arr.forEach((item, i) => assertPluginItem(access(loc, i), item));\n }\n return arr as any;\n}\nfunction assertPluginItem(loc: GeneralPath, value: unknown): PluginItem {\n if (Array.isArray(value)) {\n if (value.length === 0) {\n throw new Error(`${msg(loc)} must include an object`);\n }\n\n if (value.length > 3) {\n throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`);\n }\n\n assertPluginTarget(access(loc, 0), value[0]);\n\n if (value.length > 1) {\n const opts = value[1];\n if (\n opts !== undefined &&\n opts !== false &&\n (typeof opts !== \"object\" || Array.isArray(opts) || opts === null)\n ) {\n throw new Error(\n `${msg(access(loc, 1))} must be an object, false, or undefined`,\n );\n }\n }\n if (value.length === 3) {\n const name = value[2];\n if (name !== undefined && typeof name !== \"string\") {\n throw new Error(\n `${msg(access(loc, 2))} must be a string, or undefined`,\n );\n }\n }\n } else {\n assertPluginTarget(loc, value);\n }\n\n // @ts-expect-error todo(flow->ts)\n return value;\n}\nfunction assertPluginTarget(loc: GeneralPath, value: unknown): PluginTarget {\n if (\n (typeof value !== \"object\" || !value) &&\n typeof value !== \"string\" &&\n typeof value !== \"function\"\n ) {\n throw new Error(`${msg(loc)} must be a string, object, function`);\n }\n return value;\n}\n\nexport function assertTargets(\n loc: GeneralPath,\n value: any,\n): TargetsListOrObject {\n if (isBrowsersQueryValid(value)) return value;\n\n if (typeof value !== \"object\" || !value || Array.isArray(value)) {\n throw new Error(\n `${msg(loc)} must be a string, an array of strings or an object`,\n );\n }\n\n const browsersLoc = access(loc, \"browsers\");\n const esmodulesLoc = access(loc, \"esmodules\");\n\n assertBrowsersList(browsersLoc, value.browsers);\n assertBoolean(esmodulesLoc, value.esmodules);\n\n for (const key of Object.keys(value)) {\n const val = value[key];\n const subLoc = access(loc, key);\n\n if (key === \"esmodules\") assertBoolean(subLoc, val);\n else if (key === \"browsers\") assertBrowsersList(subLoc, val);\n else if (!Object.hasOwn(TargetNames, key)) {\n const validTargets = Object.keys(TargetNames).join(\", \");\n throw new Error(\n `${msg(\n subLoc,\n )} is not a valid target. Supported targets are ${validTargets}`,\n );\n } else assertBrowserVersion(subLoc, val);\n }\n\n return value;\n}\n\nfunction assertBrowsersList(loc: GeneralPath, value: unknown) {\n if (value !== undefined && !isBrowsersQueryValid(value)) {\n throw new Error(\n `${msg(loc)} must be undefined, a string or an array of strings`,\n );\n }\n}\n\nfunction assertBrowserVersion(loc: GeneralPath, value: unknown) {\n if (typeof value === \"number\" && Math.round(value) === value) return;\n if (typeof value === \"string\") return;\n\n throw new Error(`${msg(loc)} must be a string or an integer number`);\n}\n\nexport function assertAssumptions(\n loc: GeneralPath,\n value: { [key: string]: unknown },\n): { [name: string]: boolean } | void {\n if (value === undefined) return;\n\n if (typeof value !== \"object\" || value === null) {\n throw new Error(`${msg(loc)} must be an object or undefined.`);\n }\n\n // todo(flow->ts): remove any\n let root: any = loc;\n do {\n root = root.parent;\n } while (root.type !== \"root\");\n const inPreset = root.source === \"preset\";\n\n for (const name of Object.keys(value)) {\n const subLoc = access(loc, name);\n if (!assumptionsNames.has(name as AssumptionName)) {\n throw new Error(`${msg(subLoc)} is not a supported assumption.`);\n }\n if (typeof value[name] !== \"boolean\") {\n throw new Error(`${msg(subLoc)} must be a boolean.`);\n }\n if (inPreset && value[name] === false) {\n throw new Error(\n `${msg(subLoc)} cannot be set to 'false' inside presets.`,\n );\n }\n }\n\n // @ts-expect-error todo(flow->ts)\n return value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,0BAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,yBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAyBA,IAAAE,QAAA,GAAAD,OAAA;AAUO,SAASE,GAAGA,CAACC,GAA8B,EAAU;EAC1D,QAAQA,GAAG,CAACC,IAAI;IACd,KAAK,MAAM;MACT,OAAO,EAAE;IACX,KAAK,KAAK;MACR,OAAO,GAAGF,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,SAASF,GAAG,CAACG,IAAI,IAAI;IAChD,KAAK,WAAW;MACd,OAAO,GAAGJ,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,cAAcF,GAAG,CAACI,KAAK,GAAG;IACrD,KAAK,QAAQ;MACX,OAAO,GAAGL,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,IAAIF,GAAG,CAACG,IAAI,EAAE;IACzC,KAAK,QAAQ;MACX,OAAO,GAAGJ,GAAG,CAACC,GAAG,CAACE,MAAM,CAAC,IAAIG,IAAI,CAACC,SAAS,CAACN,GAAG,CAACG,IAAI,CAAC,GAAG;IAC1D;MAEE,MAAM,IAAII,KAAK,CAAC,mCAAmCP,GAAG,CAACC,IAAI,EAAE,CAAC;EAClE;AACF;AAEO,SAASO,MAAMA,CAACR,GAAgB,EAAEG,IAAqB,EAAc;EAC1E,OAAO;IACLF,IAAI,EAAE,QAAQ;IACdE,IAAI;IACJD,MAAM,EAAEF;EACV,CAAC;AACH;AAcO,SAASS,cAAcA,CAC5BT,GAAe,EACfU,KAAc,EACG;EACjB,IACEA,KAAK,KAAKC,SAAS,IACnBD,KAAK,KAAK,MAAM,IAChBA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,iBAAiB,EAC3B;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,6DACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASE,gBAAgBA,CAC9BZ,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,IAC1BA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,MAAM,EAChB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,oDACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASG,aAAaA,CAC3Bb,GAAe,EACfU,KAAc,EACQ;EACtB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,IAAIA,KAAK,KAAK,MAAM,EAAE;IACzE,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,0CAA0C,CAAC;EACxE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASI,gBAAgBA,CAC9Bd,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnBD,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,QAAQ,IAClBA,KAAK,KAAK,aAAa,EACvB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,0DACb,CAAC;EACH;EAEA,OAAOU,KAAK;AACd;AAEO,SAASK,oBAAoBA,CAClCf,GAAe,EACfU,KAAc,EACc;EAC5B,MAAMM,GAAG,GAAGC,YAAY,CAACjB,GAAG,EAAEU,KAAK,CAAC;EACpC,IAAIM,GAAG,EAAE;IACP,IAAI,OAAOA,GAAG,CAACb,IAAI,KAAK,QAAQ,EAAE;MAChC,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,kDACb,CAAC;IACH;IAEA,KAAK,MAAMkB,IAAI,IAAIC,MAAM,CAACC,IAAI,CAACJ,GAAG,CAAC,EAAE;MACnC,MAAMK,OAAO,GAAGb,MAAM,CAACR,GAAG,EAAEkB,IAAI,CAAC;MACjC,MAAMR,KAAK,GAAGM,GAAG,CAACE,IAAI,CAAC;MACvB,IACER,KAAK,IAAI,IAAI,IACb,OAAOA,KAAK,KAAK,SAAS,IAC1B,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,QAAQ,EACzB;QAIA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CACJsB,OACF,CAAC,6DACH,CAAC;MACH;IACF;EACF;EAEA,OAAOX,KAAK;AACd;AAEO,SAASY,oBAAoBA,CAClCtB,GAAe,EACfU,KAAc,EACY;EAC1B,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,KACzB,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,CAAC,EACrC;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,0CAA0C,CAAC;EACxE;EACA,OAAOU,KAAK;AACd;AAEO,SAASa,YAAYA,CAACvB,GAAgB,EAAEU,KAAc,EAAiB;EAC5E,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IACpD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,iCAAiC,CAAC;EAC/D;EAEA,OAAOU,KAAK;AACd;AAEO,SAASc,cAAcA,CAC5BxB,GAAgB,EAChBU,KAAc,EACG;EACjB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,UAAU,EAAE;IACtD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,mCAAmC,CAAC;EACjE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASe,aAAaA,CAC3BzB,GAAgB,EAChBU,KAAc,EACE;EAChB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,EAAE;IACrD,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASO,YAAYA,CAC1BjB,GAAgB,EAChBU,KAAc,EAC8B;EAC5C,IACEA,KAAK,KAAKC,SAAS,KAClB,OAAOD,KAAK,KAAK,QAAQ,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC,EAC7D;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAEA,OAAOU,KAAK;AACd;AAEO,SAASkB,WAAWA,CACzB5B,GAAgB,EAChBU,KAAkC,EACG;EACrC,IAAIA,KAAK,IAAI,IAAI,IAAI,CAACgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IAC1C,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,iCAAiC,CAAC;EAC/D;EACA,OAAOU,KAAK;AACd;AAEO,SAASmB,gBAAgBA,CAC9B7B,GAAe,EACfU,KAA4B,EACT;EACnB,MAAMoB,GAAG,GAAGF,WAAW,CAAC5B,GAAG,EAAEU,KAAK,CAAC;EACnCoB,GAAG,YAAHA,GAAG,CAAEC,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAKC,gBAAgB,CAAC1B,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,EAAED,IAAI,CAAC,CAAC;EAEjE,OAAOF,GAAG;AACZ;AACA,SAASI,gBAAgBA,CAAClC,GAAgB,EAAEU,KAAc,EAAc;EACtE,IACE,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,IAC3B,EAAEA,KAAK,YAAYyB,MAAM,CAAC,EAC1B;IACA,MAAM,IAAI5B,KAAK,CACb,GAAGR,GAAG,CACJC,GACF,CAAC,kEACH,CAAC;EACH;EACA,OAAOU,KAAK;AACd;AAEO,SAAS0B,0BAA0BA,CACxCpC,GAAe,EACfU,KAAc,EACe;EAC7B,IAAIA,KAAK,KAAKC,SAAS,EAAE;IAEvB,OAAOD,KAAK;EACd;EAEA,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxBA,KAAK,CAACqB,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;MACzB,IAAI,CAACI,cAAc,CAACL,IAAI,CAAC,EAAE;QACzB,MAAM,IAAIzB,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,CAAC,oCACxB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,CAACI,cAAc,CAAC3B,KAAK,CAAC,EAAE;IACjC,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,yDACb,CAAC;EACH;EACA,OAAOU,KAAK;AACd;AAEA,SAAS2B,cAAcA,CAAC3B,KAAc,EAAuC;EAC3E,OACE,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,IAC3BA,KAAK,YAAYyB,MAAM;AAE3B;AAEO,SAASG,sBAAsBA,CACpCtC,GAAe,EACfU,KAAc,EACW;EACzB,IACEA,KAAK,KAAKC,SAAS,IACnB,OAAOD,KAAK,KAAK,SAAS,IAC1B,OAAOA,KAAK,KAAK,QAAQ,EACzB;IACA,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,6CAA6C,GACtD,OAAOK,IAAI,CAACC,SAAS,CAACI,KAAK,CAAC,EAChC,CAAC;EACH;EAEA,OAAOA,KAAK;AACd;AAEO,SAAS6B,mBAAmBA,CACjCvC,GAAe,EACfU,KAAc,EACQ;EACtB,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,SAAS,EAAE;IAErD,OAAOA,KAAK;EACd;EAEA,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxBA,KAAK,CAACqB,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAK;MACzB,IAAI,CAACI,cAAc,CAACL,IAAI,CAAC,EAAE;QACzB,MAAM,IAAIzB,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,CAAC,oCACxB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,CAACI,cAAc,CAAC3B,KAAK,CAAC,EAAE;IACjC,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,4DAA4D,GACrE,6BAA6BK,IAAI,CAACC,SAAS,CAACI,KAAY,CAAC,EAC7D,CAAC;EACH;EACA,OAAOA,KAAK;AACd;AAEO,SAAS8B,gBAAgBA,CAC9BxC,GAAe,EACfU,KAAmC,EAChB;EACnB,MAAMoB,GAAG,GAAGF,WAAW,CAAC5B,GAAG,EAAEU,KAAK,CAAC;EACnC,IAAIoB,GAAG,EAAE;IAGPA,GAAG,CAACC,OAAO,CAAC,CAACC,IAAI,EAAEC,CAAC,KAAKQ,gBAAgB,CAACjC,MAAM,CAACR,GAAG,EAAEiC,CAAC,CAAC,EAAED,IAAI,CAAC,CAAC;EAClE;EACA,OAAOF,GAAG;AACZ;AACA,SAASW,gBAAgBA,CAACzC,GAAgB,EAAEU,KAAc,EAAc;EACtE,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IACxB,IAAIA,KAAK,CAACgC,MAAM,KAAK,CAAC,EAAE;MACtB,MAAM,IAAInC,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,yBAAyB,CAAC;IACvD;IAEA,IAAIU,KAAK,CAACgC,MAAM,GAAG,CAAC,EAAE;MACpB,MAAM,IAAInC,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,yCAAyC,CAAC;IACvE;IAEA2C,kBAAkB,CAACnC,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,EAAEU,KAAK,CAAC,CAAC,CAAC,CAAC;IAE5C,IAAIA,KAAK,CAACgC,MAAM,GAAG,CAAC,EAAE;MACpB,MAAME,IAAI,GAAGlC,KAAK,CAAC,CAAC,CAAC;MACrB,IACEkC,IAAI,KAAKjC,SAAS,IAClBiC,IAAI,KAAK,KAAK,KACb,OAAOA,IAAI,KAAK,QAAQ,IAAIlB,KAAK,CAACC,OAAO,CAACiB,IAAI,CAAC,IAAIA,IAAI,KAAK,IAAI,CAAC,EAClE;QACA,MAAM,IAAIrC,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,CAAC,yCACxB,CAAC;MACH;IACF;IACA,IAAIU,KAAK,CAACgC,MAAM,KAAK,CAAC,EAAE;MACtB,MAAMvC,IAAI,GAAGO,KAAK,CAAC,CAAC,CAAC;MACrB,IAAIP,IAAI,KAAKQ,SAAS,IAAI,OAAOR,IAAI,KAAK,QAAQ,EAAE;QAClD,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACS,MAAM,CAACR,GAAG,EAAE,CAAC,CAAC,CAAC,iCACxB,CAAC;MACH;IACF;EACF,CAAC,MAAM;IACL2C,kBAAkB,CAAC3C,GAAG,EAAEU,KAAK,CAAC;EAChC;EAGA,OAAOA,KAAK;AACd;AACA,SAASiC,kBAAkBA,CAAC3C,GAAgB,EAAEU,KAAc,EAAgB;EAC1E,IACE,CAAC,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,KACpC,OAAOA,KAAK,KAAK,QAAQ,IACzB,OAAOA,KAAK,KAAK,UAAU,EAC3B;IACA,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,qCAAqC,CAAC;EACnE;EACA,OAAOU,KAAK;AACd;AAEO,SAASmC,aAAaA,CAC3B7C,GAAgB,EAChBU,KAAU,EACW;EACrB,IAAI,IAAAoC,gDAAoB,EAACpC,KAAK,CAAC,EAAE,OAAOA,KAAK;EAE7C,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACA,KAAK,IAAIgB,KAAK,CAACC,OAAO,CAACjB,KAAK,CAAC,EAAE;IAC/D,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,qDACb,CAAC;EACH;EAEA,MAAM+C,WAAW,GAAGvC,MAAM,CAACR,GAAG,EAAE,UAAU,CAAC;EAC3C,MAAMgD,YAAY,GAAGxC,MAAM,CAACR,GAAG,EAAE,WAAW,CAAC;EAE7CiD,kBAAkB,CAACF,WAAW,EAAErC,KAAK,CAACwC,QAAQ,CAAC;EAC/CzB,aAAa,CAACuB,YAAY,EAAEtC,KAAK,CAACyC,SAAS,CAAC;EAE5C,KAAK,MAAMC,GAAG,IAAIjC,MAAM,CAACC,IAAI,CAACV,KAAK,CAAC,EAAE;IACpC,MAAM2C,GAAG,GAAG3C,KAAK,CAAC0C,GAAG,CAAC;IACtB,MAAME,MAAM,GAAG9C,MAAM,CAACR,GAAG,EAAEoD,GAAG,CAAC;IAE/B,IAAIA,GAAG,KAAK,WAAW,EAAE3B,aAAa,CAAC6B,MAAM,EAAED,GAAG,CAAC,CAAC,KAC/C,IAAID,GAAG,KAAK,UAAU,EAAEH,kBAAkB,CAACK,MAAM,EAAED,GAAG,CAAC,CAAC,KACxD,IAAI,CAACE,cAAA,CAAAC,IAAA,CAAcC,uCAAW,EAAEL,GAAG,CAAC,EAAE;MACzC,MAAMM,YAAY,GAAGvC,MAAM,CAACC,IAAI,CAACqC,uCAAW,CAAC,CAACE,IAAI,CAAC,IAAI,CAAC;MACxD,MAAM,IAAIpD,KAAK,CACb,GAAGR,GAAG,CACJuD,MACF,CAAC,iDAAiDI,YAAY,EAChE,CAAC;IACH,CAAC,MAAME,oBAAoB,CAACN,MAAM,EAAED,GAAG,CAAC;EAC1C;EAEA,OAAO3C,KAAK;AACd;AAEA,SAASuC,kBAAkBA,CAACjD,GAAgB,EAAEU,KAAc,EAAE;EAC5D,IAAIA,KAAK,KAAKC,SAAS,IAAI,CAAC,IAAAmC,gDAAoB,EAACpC,KAAK,CAAC,EAAE;IACvD,MAAM,IAAIH,KAAK,CACb,GAAGR,GAAG,CAACC,GAAG,CAAC,qDACb,CAAC;EACH;AACF;AAEA,SAAS4D,oBAAoBA,CAAC5D,GAAgB,EAAEU,KAAc,EAAE;EAC9D,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAImD,IAAI,CAACC,KAAK,CAACpD,KAAK,CAAC,KAAKA,KAAK,EAAE;EAC9D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;EAE/B,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,wCAAwC,CAAC;AACtE;AAEO,SAAS+D,iBAAiBA,CAC/B/D,GAAgB,EAChBU,KAAiC,EACG;EACpC,IAAIA,KAAK,KAAKC,SAAS,EAAE;EAEzB,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,EAAE;IAC/C,MAAM,IAAIH,KAAK,CAAC,GAAGR,GAAG,CAACC,GAAG,CAAC,kCAAkC,CAAC;EAChE;EAGA,IAAIgE,IAAS,GAAGhE,GAAG;EACnB,GAAG;IACDgE,IAAI,GAAGA,IAAI,CAAC9D,MAAM;EACpB,CAAC,QAAQ8D,IAAI,CAAC/D,IAAI,KAAK,MAAM;EAC7B,MAAMgE,QAAQ,GAAGD,IAAI,CAACE,MAAM,KAAK,QAAQ;EAEzC,KAAK,MAAM/D,IAAI,IAAIgB,MAAM,CAACC,IAAI,CAACV,KAAK,CAAC,EAAE;IACrC,MAAM4C,MAAM,GAAG9C,MAAM,CAACR,GAAG,EAAEG,IAAI,CAAC;IAChC,IAAI,CAACgE,yBAAgB,CAACC,GAAG,CAACjE,IAAsB,CAAC,EAAE;MACjD,MAAM,IAAII,KAAK,CAAC,GAAGR,GAAG,CAACuD,MAAM,CAAC,iCAAiC,CAAC;IAClE;IACA,IAAI,OAAO5C,KAAK,CAACP,IAAI,CAAC,KAAK,SAAS,EAAE;MACpC,MAAM,IAAII,KAAK,CAAC,GAAGR,GAAG,CAACuD,MAAM,CAAC,qBAAqB,CAAC;IACtD;IACA,IAAIW,QAAQ,IAAIvD,KAAK,CAACP,IAAI,CAAC,KAAK,KAAK,EAAE;MACrC,MAAM,IAAII,KAAK,CACb,GAAGR,GAAG,CAACuD,MAAM,CAAC,2CAChB,CAAC;IACH;EACF;EAGA,OAAO5C,KAAK;AACd;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/validation/options.js.map b/node_modules/@babel/core/lib/config/validation/options.js.map index 9ffcab04b..7ad201613 100644 --- a/node_modules/@babel/core/lib/config/validation/options.js.map +++ b/node_modules/@babel/core/lib/config/validation/options.js.map @@ -1 +1 @@ -{"version":3,"names":["_removed","require","_optionAssertions","_configError","ROOT_VALIDATORS","cwd","assertString","root","rootMode","assertRootMode","configFile","assertConfigFileSearch","caller","assertCallerMetadata","filename","filenameRelative","code","assertBoolean","ast","cloneInputAst","envName","BABELRC_VALIDATORS","babelrc","babelrcRoots","assertBabelrcSearch","NONPRESET_VALIDATORS","extends","ignore","assertIgnoreList","only","targets","assertTargets","browserslistConfigFile","browserslistEnv","COMMON_VALIDATORS","inputSourceMap","assertInputSourceMap","presets","assertPluginList","plugins","passPerPreset","assumptions","assertAssumptions","env","assertEnvSet","overrides","assertOverridesList","test","assertConfigApplicableTest","include","exclude","retainLines","comments","shouldPrintComment","assertFunction","compact","assertCompact","minified","auxiliaryCommentBefore","auxiliaryCommentAfter","sourceType","assertSourceType","wrapPluginVisitorMethod","highlightCode","sourceMaps","assertSourceMaps","sourceMap","sourceFileName","sourceRoot","parserOpts","assertObject","generatorOpts","Object","assign","getModuleId","moduleRoot","moduleIds","moduleId","knownAssumptions","assumptionsNames","exports","Set","getSource","loc","type","source","parent","validate","opts","validateNested","error","configError","ConfigError","message","assertNoDuplicateSourcemap","keys","forEach","key","optLoc","name","Error","msg","validator","throwUnknownError","removed","version","unknownOptErr","hasOwnProperty","call","value","obj","access","envLoc","arr","assertArray","index","item","entries","objLoc","overridesLoc","checkNoUnwrappedItemOptionPairs","items","e","lastItem","thisItem","file","options","undefined","request","JSON","stringify"],"sources":["../../../src/config/validation/options.ts"],"sourcesContent":["import type { InputTargets, Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigItem } from \"../item.ts\";\nimport type Plugin from \"../plugin.ts\";\n\nimport removed from \"./removed.ts\";\nimport {\n msg,\n access,\n assertString,\n assertBoolean,\n assertObject,\n assertArray,\n assertCallerMetadata,\n assertInputSourceMap,\n assertIgnoreList,\n assertPluginList,\n assertConfigApplicableTest,\n assertConfigFileSearch,\n assertBabelrcSearch,\n assertFunction,\n assertRootMode,\n assertSourceMaps,\n assertCompact,\n assertSourceType,\n assertTargets,\n assertAssumptions,\n} from \"./option-assertions.ts\";\nimport type {\n ValidatorSet,\n Validator,\n OptionPath,\n} from \"./option-assertions.ts\";\nimport type { UnloadedDescriptor } from \"../config-descriptors.ts\";\nimport type { PluginAPI } from \"../helpers/config-api.ts\";\nimport type { ParserOptions } from \"@babel/parser\";\nimport type { GeneratorOptions } from \"@babel/generator\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst ROOT_VALIDATORS: ValidatorSet = {\n cwd: assertString as Validator,\n root: assertString as Validator,\n rootMode: assertRootMode as Validator,\n configFile: assertConfigFileSearch as Validator<\n ValidatedOptions[\"configFile\"]\n >,\n\n caller: assertCallerMetadata as Validator,\n filename: assertString as Validator,\n filenameRelative: assertString as Validator<\n ValidatedOptions[\"filenameRelative\"]\n >,\n code: assertBoolean as Validator,\n ast: assertBoolean as Validator,\n\n cloneInputAst: assertBoolean as Validator,\n\n envName: assertString as Validator,\n};\n\nconst BABELRC_VALIDATORS: ValidatorSet = {\n babelrc: assertBoolean as Validator,\n babelrcRoots: assertBabelrcSearch as Validator<\n ValidatedOptions[\"babelrcRoots\"]\n >,\n};\n\nconst NONPRESET_VALIDATORS: ValidatorSet = {\n extends: assertString as Validator,\n ignore: assertIgnoreList as Validator,\n only: assertIgnoreList as Validator,\n\n targets: assertTargets as Validator,\n browserslistConfigFile: assertConfigFileSearch as Validator<\n ValidatedOptions[\"browserslistConfigFile\"]\n >,\n browserslistEnv: assertString as Validator<\n ValidatedOptions[\"browserslistEnv\"]\n >,\n};\n\nconst COMMON_VALIDATORS: ValidatorSet = {\n // TODO: Should 'inputSourceMap' be moved to be a root-only option?\n // We may want a boolean-only version to be a common option, with the\n // object only allowed as a root config argument.\n inputSourceMap: assertInputSourceMap as Validator<\n ValidatedOptions[\"inputSourceMap\"]\n >,\n presets: assertPluginList as Validator,\n plugins: assertPluginList as Validator,\n passPerPreset: assertBoolean as Validator,\n assumptions: assertAssumptions as Validator,\n\n env: assertEnvSet as Validator,\n overrides: assertOverridesList as Validator,\n\n // We could limit these to 'overrides' blocks, but it's not clear why we'd\n // bother, when the ability to limit a config to a specific set of files\n // is a fairly general useful feature.\n test: assertConfigApplicableTest as Validator,\n include: assertConfigApplicableTest as Validator,\n exclude: assertConfigApplicableTest as Validator,\n\n retainLines: assertBoolean as Validator,\n comments: assertBoolean as Validator,\n shouldPrintComment: assertFunction as Validator<\n ValidatedOptions[\"shouldPrintComment\"]\n >,\n compact: assertCompact as Validator,\n minified: assertBoolean as Validator,\n auxiliaryCommentBefore: assertString as Validator<\n ValidatedOptions[\"auxiliaryCommentBefore\"]\n >,\n auxiliaryCommentAfter: assertString as Validator<\n ValidatedOptions[\"auxiliaryCommentAfter\"]\n >,\n sourceType: assertSourceType as Validator,\n wrapPluginVisitorMethod: assertFunction as Validator<\n ValidatedOptions[\"wrapPluginVisitorMethod\"]\n >,\n highlightCode: assertBoolean as Validator,\n sourceMaps: assertSourceMaps as Validator,\n sourceMap: assertSourceMaps as Validator,\n sourceFileName: assertString as Validator,\n sourceRoot: assertString as Validator,\n parserOpts: assertObject as Validator,\n generatorOpts: assertObject as Validator,\n};\nif (!process.env.BABEL_8_BREAKING) {\n Object.assign(COMMON_VALIDATORS, {\n getModuleId: assertFunction,\n moduleRoot: assertString,\n moduleIds: assertBoolean,\n moduleId: assertString,\n });\n}\n\nexport type InputOptions = ValidatedOptions;\n\nexport type ValidatedOptions = {\n cwd?: string;\n filename?: string;\n filenameRelative?: string;\n babelrc?: boolean;\n babelrcRoots?: BabelrcSearch;\n configFile?: ConfigFileSearch;\n root?: string;\n rootMode?: RootMode;\n code?: boolean;\n ast?: boolean;\n cloneInputAst?: boolean;\n inputSourceMap?: RootInputSourceMapOption;\n envName?: string;\n caller?: CallerMetadata;\n extends?: string;\n env?: EnvSet;\n ignore?: IgnoreList;\n only?: IgnoreList;\n overrides?: OverridesList;\n showIgnoredFiles?: boolean;\n // Generally verify if a given config object should be applied to the given file.\n test?: ConfigApplicableTest;\n include?: ConfigApplicableTest;\n exclude?: ConfigApplicableTest;\n presets?: PluginList;\n plugins?: PluginList;\n passPerPreset?: boolean;\n assumptions?: {\n [name: string]: boolean;\n };\n // browserslists-related options\n targets?: TargetsListOrObject;\n browserslistConfigFile?: ConfigFileSearch;\n browserslistEnv?: string;\n // Options for @babel/generator\n retainLines?: boolean;\n comments?: boolean;\n shouldPrintComment?: Function;\n compact?: CompactOption;\n minified?: boolean;\n auxiliaryCommentBefore?: string;\n auxiliaryCommentAfter?: string;\n // Parser\n sourceType?: SourceTypeOption;\n wrapPluginVisitorMethod?: Function;\n highlightCode?: boolean;\n // Sourcemap generation options.\n sourceMaps?: SourceMapsOption;\n sourceMap?: SourceMapsOption;\n sourceFileName?: string;\n sourceRoot?: string;\n // Deprecate top level parserOpts\n parserOpts?: ParserOptions;\n // Deprecate top level generatorOpts\n generatorOpts?: GeneratorOptions;\n};\n\nexport type NormalizedOptions = {\n readonly targets: Targets;\n} & Omit;\n\nexport type CallerMetadata = {\n // If 'caller' is specified, require that the name is given for debugging\n // messages.\n name: string;\n};\nexport type EnvSet = {\n [x: string]: T;\n};\nexport type IgnoreItem =\n | string\n | RegExp\n | ((\n path: string | undefined,\n context: { dirname: string; caller: CallerMetadata; envName: string },\n ) => unknown);\nexport type IgnoreList = ReadonlyArray;\n\nexport type PluginOptions = object | void | false;\nexport type PluginTarget = string | object | Function;\nexport type PluginItem =\n | ConfigItem\n | Plugin\n | PluginTarget\n | [PluginTarget, PluginOptions]\n | [PluginTarget, PluginOptions, string | void];\nexport type PluginList = ReadonlyArray;\n\nexport type OverridesList = Array;\nexport type ConfigApplicableTest = IgnoreItem | Array;\n\nexport type ConfigFileSearch = string | boolean;\nexport type BabelrcSearch = boolean | IgnoreItem | IgnoreList;\nexport type SourceMapsOption = boolean | \"inline\" | \"both\";\nexport type SourceTypeOption = \"module\" | \"commonjs\" | \"script\" | \"unambiguous\";\nexport type CompactOption = boolean | \"auto\";\nexport type RootInputSourceMapOption = object | boolean;\nexport type RootMode = \"root\" | \"upward\" | \"upward-optional\";\n\nexport type TargetsListOrObject =\n | Targets\n | InputTargets\n | InputTargets[\"browsers\"];\n\nexport type OptionsSource =\n | \"arguments\"\n | \"configfile\"\n | \"babelrcfile\"\n | \"extendsfile\"\n | \"preset\"\n | \"plugin\";\n\nexport type RootPath = Readonly<{\n type: \"root\";\n source: OptionsSource;\n}>;\n\ntype OverridesPath = Readonly<{\n type: \"overrides\";\n index: number;\n parent: RootPath;\n}>;\n\ntype EnvPath = Readonly<{\n type: \"env\";\n name: string;\n parent: RootPath | OverridesPath;\n}>;\n\nexport type NestingPath = RootPath | OverridesPath | EnvPath;\n\nconst knownAssumptions = [\n \"arrayLikeIsIterable\",\n \"constantReexports\",\n \"constantSuper\",\n \"enumerableModuleMeta\",\n \"ignoreFunctionLength\",\n \"ignoreToPrimitiveHint\",\n \"iterableIsArray\",\n \"mutableTemplateObject\",\n \"noClassCalls\",\n \"noDocumentAll\",\n \"noIncompleteNsImportDetection\",\n \"noNewArrows\",\n \"noUninitializedPrivateFieldAccess\",\n \"objectRestNoSymbols\",\n \"privateFieldsAsSymbols\",\n \"privateFieldsAsProperties\",\n \"pureGetters\",\n \"setClassMethods\",\n \"setComputedProperties\",\n \"setPublicClassFields\",\n \"setSpreadProperties\",\n \"skipForOfIteratorClosing\",\n \"superIsCallableConstructor\",\n] as const;\nexport type AssumptionName = (typeof knownAssumptions)[number];\nexport const assumptionsNames = new Set(knownAssumptions);\n\nfunction getSource(loc: NestingPath): OptionsSource {\n return loc.type === \"root\" ? loc.source : getSource(loc.parent);\n}\n\nexport function validate(\n type: OptionsSource,\n opts: any,\n filename?: string,\n): ValidatedOptions {\n try {\n return validateNested(\n {\n type: \"root\",\n source: type,\n },\n opts,\n );\n } catch (error) {\n const configError = new ConfigError(error.message, filename);\n // @ts-expect-error TODO: .code is not defined on ConfigError or Error\n if (error.code) configError.code = error.code;\n throw configError;\n }\n}\n\nfunction validateNested(loc: NestingPath, opts: { [key: string]: unknown }) {\n const type = getSource(loc);\n\n assertNoDuplicateSourcemap(opts);\n\n Object.keys(opts).forEach((key: string) => {\n const optLoc = {\n type: \"option\",\n name: key,\n parent: loc,\n } as const;\n\n if (type === \"preset\" && NONPRESET_VALIDATORS[key]) {\n throw new Error(`${msg(optLoc)} is not allowed in preset options`);\n }\n if (type !== \"arguments\" && ROOT_VALIDATORS[key]) {\n throw new Error(\n `${msg(optLoc)} is only allowed in root programmatic options`,\n );\n }\n if (\n type !== \"arguments\" &&\n type !== \"configfile\" &&\n BABELRC_VALIDATORS[key]\n ) {\n if (type === \"babelrcfile\" || type === \"extendsfile\") {\n throw new Error(\n `${msg(\n optLoc,\n )} is not allowed in .babelrc or \"extends\"ed files, only in root programmatic options, ` +\n `or babel.config.js/config file options`,\n );\n }\n\n throw new Error(\n `${msg(\n optLoc,\n )} is only allowed in root programmatic options, or babel.config.js/config file options`,\n );\n }\n\n const validator =\n COMMON_VALIDATORS[key] ||\n NONPRESET_VALIDATORS[key] ||\n BABELRC_VALIDATORS[key] ||\n ROOT_VALIDATORS[key] ||\n (throwUnknownError as Validator);\n\n validator(optLoc, opts[key]);\n });\n\n return opts;\n}\n\nfunction throwUnknownError(loc: OptionPath) {\n const key = loc.name;\n\n if (removed[key]) {\n const { message, version = 5 } = removed[key];\n\n throw new Error(\n `Using removed Babel ${version} option: ${msg(loc)} - ${message}`,\n );\n } else {\n const unknownOptErr = new Error(\n `Unknown option: ${msg(\n loc,\n )}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`,\n );\n // @ts-expect-error todo(flow->ts): consider creating something like BabelConfigError with code field in it\n unknownOptErr.code = \"BABEL_UNKNOWN_OPTION\";\n\n throw unknownOptErr;\n }\n}\n\nfunction assertNoDuplicateSourcemap(opts: any): void {\n if (Object.hasOwn(opts, \"sourceMap\") && Object.hasOwn(opts, \"sourceMaps\")) {\n throw new Error(\".sourceMap is an alias for .sourceMaps, cannot use both\");\n }\n}\n\nfunction assertEnvSet(\n loc: OptionPath,\n value: unknown,\n): void | EnvSet {\n if (loc.parent.type === \"env\") {\n throw new Error(`${msg(loc)} is not allowed inside of another .env block`);\n }\n const parent: RootPath | OverridesPath = loc.parent;\n\n const obj = assertObject(loc, value);\n if (obj) {\n // Validate but don't copy the .env object in order to preserve\n // object identity for use during config chain processing.\n for (const envName of Object.keys(obj)) {\n const env = assertObject(access(loc, envName), obj[envName]);\n if (!env) continue;\n\n const envLoc = {\n type: \"env\",\n name: envName,\n parent,\n } as const;\n validateNested(envLoc, env);\n }\n }\n return obj;\n}\n\nfunction assertOverridesList(\n loc: OptionPath,\n value: unknown[],\n): undefined | OverridesList {\n if (loc.parent.type === \"env\") {\n throw new Error(`${msg(loc)} is not allowed inside an .env block`);\n }\n if (loc.parent.type === \"overrides\") {\n throw new Error(`${msg(loc)} is not allowed inside an .overrides block`);\n }\n const parent: RootPath = loc.parent;\n\n const arr = assertArray(loc, value);\n if (arr) {\n for (const [index, item] of arr.entries()) {\n const objLoc = access(loc, index);\n const env = assertObject(objLoc, item);\n if (!env) throw new Error(`${msg(objLoc)} must be an object`);\n\n const overridesLoc = {\n type: \"overrides\",\n index,\n parent,\n } as const;\n validateNested(overridesLoc, env);\n }\n }\n return arr as OverridesList;\n}\n\nexport function checkNoUnwrappedItemOptionPairs(\n items: Array>,\n index: number,\n type: \"plugin\" | \"preset\",\n e: Error,\n): void {\n if (index === 0) return;\n\n const lastItem = items[index - 1];\n const thisItem = items[index];\n\n if (\n lastItem.file &&\n lastItem.options === undefined &&\n typeof thisItem.value === \"object\"\n ) {\n e.message +=\n `\\n- Maybe you meant to use\\n` +\n `\"${type}s\": [\\n [\"${lastItem.file.request}\", ${JSON.stringify(\n thisItem.value,\n undefined,\n 2,\n )}]\\n]\\n` +\n `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`;\n }\n}\n"],"mappings":";;;;;;;;AAKA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AA+BA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,eAA6B,GAAG;EACpCC,GAAG,EAAEC,8BAAkD;EACvDC,IAAI,EAAED,8BAAmD;EACzDE,QAAQ,EAAEC,gCAAyD;EACnEC,UAAU,EAAEC,wCAEX;EAEDC,MAAM,EAAEC,sCAA6D;EACrEC,QAAQ,EAAER,8BAAuD;EACjES,gBAAgB,EAAET,8BAEjB;EACDU,IAAI,EAAEC,+BAAoD;EAC1DC,GAAG,EAAED,+BAAmD;EAExDE,aAAa,EAAEF,+BAA6D;EAE5EG,OAAO,EAAEd;AACX,CAAC;AAED,MAAMe,kBAAgC,GAAG;EACvCC,OAAO,EAAEL,+BAAuD;EAChEM,YAAY,EAAEC;AAGhB,CAAC;AAED,MAAMC,oBAAkC,GAAG;EACzCC,OAAO,EAAEpB,8BAAsD;EAC/DqB,MAAM,EAAEC,kCAAyD;EACjEC,IAAI,EAAED,kCAAuD;EAE7DE,OAAO,EAAEC,+BAAuD;EAChEC,sBAAsB,EAAErB,wCAEvB;EACDsB,eAAe,EAAE3B;AAGnB,CAAC;AAED,MAAM4B,iBAA+B,GAAG;EAItCC,cAAc,EAAEC,sCAEf;EACDC,OAAO,EAAEC,kCAA0D;EACnEC,OAAO,EAAED,kCAA0D;EACnEE,aAAa,EAAEvB,+BAA6D;EAC5EwB,WAAW,EAAEC,mCAA+D;EAE5EC,GAAG,EAAEC,YAAkD;EACvDC,SAAS,EAAEC,mBAA+D;EAK1EC,IAAI,EAAEC,4CAAiE;EACvEC,OAAO,EAAED,4CAAoE;EAC7EE,OAAO,EAAEF,4CAAoE;EAE7EG,WAAW,EAAElC,+BAA2D;EACxEmC,QAAQ,EAAEnC,+BAAwD;EAClEoC,kBAAkB,EAAEC,gCAEnB;EACDC,OAAO,EAAEC,+BAAuD;EAChEC,QAAQ,EAAExC,+BAAwD;EAClEyC,sBAAsB,EAAEpD,8BAEvB;EACDqD,qBAAqB,EAAErD,8BAEtB;EACDsD,UAAU,EAAEC,kCAA6D;EACzEC,uBAAuB,EAAER,gCAExB;EACDS,aAAa,EAAE9C,+BAA6D;EAC5E+C,UAAU,EAAEC,kCAA6D;EACzEC,SAAS,EAAED,kCAA4D;EACvEE,cAAc,EAAE7D,8BAA6D;EAC7E8D,UAAU,EAAE9D,8BAAyD;EACrE+D,UAAU,EAAEC,8BAAyD;EACrEC,aAAa,EAAED;AACjB,CAAC;AACkC;EACjCE,MAAM,CAACC,MAAM,CAACvC,iBAAiB,EAAE;IAC/BwC,WAAW,EAAEpB,gCAAc;IAC3BqB,UAAU,EAAErE,8BAAY;IACxBsE,SAAS,EAAE3D,+BAAa;IACxB4D,QAAQ,EAAEvE;EACZ,CAAC,CAAC;AACJ;AAwIA,MAAMwE,gBAAgB,GAAG,CACvB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,+BAA+B,EAC/B,aAAa,EACb,mCAAmC,EACnC,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,CACpB;AAEH,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAIE,GAAG,CAACH,gBAAgB,CAAC;AAEzD,SAASI,SAASA,CAACC,GAAgB,EAAiB;EAClD,OAAOA,GAAG,CAACC,IAAI,KAAK,MAAM,GAAGD,GAAG,CAACE,MAAM,GAAGH,SAAS,CAACC,GAAG,CAACG,MAAM,CAAC;AACjE;AAEO,SAASC,QAAQA,CACtBH,IAAmB,EACnBI,IAAS,EACT1E,QAAiB,EACC;EAClB,IAAI;IACF,OAAO2E,cAAc,CACnB;MACEL,IAAI,EAAE,MAAM;MACZC,MAAM,EAAED;IACV,CAAC,EACDI,IACF,CAAC;EACH,CAAC,CAAC,OAAOE,KAAK,EAAE;IACd,MAAMC,WAAW,GAAG,IAAIC,oBAAW,CAACF,KAAK,CAACG,OAAO,EAAE/E,QAAQ,CAAC;IAE5D,IAAI4E,KAAK,CAAC1E,IAAI,EAAE2E,WAAW,CAAC3E,IAAI,GAAG0E,KAAK,CAAC1E,IAAI;IAC7C,MAAM2E,WAAW;EACnB;AACF;AAEA,SAASF,cAAcA,CAACN,GAAgB,EAAEK,IAAgC,EAAE;EAC1E,MAAMJ,IAAI,GAAGF,SAAS,CAACC,GAAG,CAAC;EAE3BW,0BAA0B,CAACN,IAAI,CAAC;EAEhChB,MAAM,CAACuB,IAAI,CAACP,IAAI,CAAC,CAACQ,OAAO,CAAEC,GAAW,IAAK;IACzC,MAAMC,MAAM,GAAG;MACbd,IAAI,EAAE,QAAQ;MACde,IAAI,EAAEF,GAAG;MACTX,MAAM,EAAEH;IACV,CAAU;IAEV,IAAIC,IAAI,KAAK,QAAQ,IAAI3D,oBAAoB,CAACwE,GAAG,CAAC,EAAE;MAClD,MAAM,IAAIG,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAACH,MAAM,CAAC,mCAAmC,CAAC;IACpE;IACA,IAAId,IAAI,KAAK,WAAW,IAAIhF,eAAe,CAAC6F,GAAG,CAAC,EAAE;MAChD,MAAM,IAAIG,KAAK,CACb,GAAG,IAAAC,qBAAG,EAACH,MAAM,CAAC,+CAChB,CAAC;IACH;IACA,IACEd,IAAI,KAAK,WAAW,IACpBA,IAAI,KAAK,YAAY,IACrB/D,kBAAkB,CAAC4E,GAAG,CAAC,EACvB;MACA,IAAIb,IAAI,KAAK,aAAa,IAAIA,IAAI,KAAK,aAAa,EAAE;QACpD,MAAM,IAAIgB,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJH,MACF,CAAC,uFAAuF,GACtF,wCACJ,CAAC;MACH;MAEA,MAAM,IAAIE,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJH,MACF,CAAC,uFACH,CAAC;IACH;IAEA,MAAMI,SAAS,GACbpE,iBAAiB,CAAC+D,GAAG,CAAC,IACtBxE,oBAAoB,CAACwE,GAAG,CAAC,IACzB5E,kBAAkB,CAAC4E,GAAG,CAAC,IACvB7F,eAAe,CAAC6F,GAAG,CAAC,IACnBM,iBAAqC;IAExCD,SAAS,CAACJ,MAAM,EAAEV,IAAI,CAACS,GAAG,CAAC,CAAC;EAC9B,CAAC,CAAC;EAEF,OAAOT,IAAI;AACb;AAEA,SAASe,iBAAiBA,CAACpB,GAAe,EAAE;EAC1C,MAAMc,GAAG,GAAGd,GAAG,CAACgB,IAAI;EAEpB,IAAIK,gBAAO,CAACP,GAAG,CAAC,EAAE;IAChB,MAAM;MAAEJ,OAAO;MAAEY,OAAO,GAAG;IAAE,CAAC,GAAGD,gBAAO,CAACP,GAAG,CAAC;IAE7C,MAAM,IAAIG,KAAK,CACb,uBAAuBK,OAAO,YAAY,IAAAJ,qBAAG,EAAClB,GAAG,CAAC,MAAMU,OAAO,EACjE,CAAC;EACH,CAAC,MAAM;IACL,MAAMa,aAAa,GAAG,IAAIN,KAAK,CAC7B,mBAAmB,IAAAC,qBAAG,EACpBlB,GACF,CAAC,gGACH,CAAC;IAEDuB,aAAa,CAAC1F,IAAI,GAAG,sBAAsB;IAE3C,MAAM0F,aAAa;EACrB;AACF;AAEA,SAASZ,0BAA0BA,CAACN,IAAS,EAAQ;EACnD,IAAImB,cAAA,CAAAC,IAAA,CAAcpB,IAAI,EAAE,WAAW,CAAC,IAAImB,cAAA,CAAAC,IAAA,CAAcpB,IAAI,EAAE,YAAY,CAAC,EAAE;IACzE,MAAM,IAAIY,KAAK,CAAC,yDAAyD,CAAC;EAC5E;AACF;AAEA,SAASxD,YAAYA,CACnBuC,GAAe,EACf0B,KAAc,EACmB;EACjC,IAAI1B,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,KAAK,EAAE;IAC7B,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,8CAA8C,CAAC;EAC5E;EACA,MAAMG,MAAgC,GAAGH,GAAG,CAACG,MAAM;EAEnD,MAAMwB,GAAG,GAAG,IAAAxC,8BAAY,EAACa,GAAG,EAAE0B,KAAK,CAAC;EACpC,IAAIC,GAAG,EAAE;IAGP,KAAK,MAAM1F,OAAO,IAAIoD,MAAM,CAACuB,IAAI,CAACe,GAAG,CAAC,EAAE;MACtC,MAAMnE,GAAG,GAAG,IAAA2B,8BAAY,EAAC,IAAAyC,wBAAM,EAAC5B,GAAG,EAAE/D,OAAO,CAAC,EAAE0F,GAAG,CAAC1F,OAAO,CAAC,CAAC;MAC5D,IAAI,CAACuB,GAAG,EAAE;MAEV,MAAMqE,MAAM,GAAG;QACb5B,IAAI,EAAE,KAAK;QACXe,IAAI,EAAE/E,OAAO;QACbkE;MACF,CAAU;MACVG,cAAc,CAACuB,MAAM,EAAErE,GAAG,CAAC;IAC7B;EACF;EACA,OAAOmE,GAAG;AACZ;AAEA,SAAShE,mBAAmBA,CAC1BqC,GAAe,EACf0B,KAAgB,EACW;EAC3B,IAAI1B,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,KAAK,EAAE;IAC7B,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,sCAAsC,CAAC;EACpE;EACA,IAAIA,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,WAAW,EAAE;IACnC,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,4CAA4C,CAAC;EAC1E;EACA,MAAMG,MAAgB,GAAGH,GAAG,CAACG,MAAM;EAEnC,MAAM2B,GAAG,GAAG,IAAAC,6BAAW,EAAC/B,GAAG,EAAE0B,KAAK,CAAC;EACnC,IAAII,GAAG,EAAE;IACP,KAAK,MAAM,CAACE,KAAK,EAAEC,IAAI,CAAC,IAAIH,GAAG,CAACI,OAAO,CAAC,CAAC,EAAE;MACzC,MAAMC,MAAM,GAAG,IAAAP,wBAAM,EAAC5B,GAAG,EAAEgC,KAAK,CAAC;MACjC,MAAMxE,GAAG,GAAG,IAAA2B,8BAAY,EAACgD,MAAM,EAAEF,IAAI,CAAC;MACtC,IAAI,CAACzE,GAAG,EAAE,MAAM,IAAIyD,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAACiB,MAAM,CAAC,oBAAoB,CAAC;MAE7D,MAAMC,YAAY,GAAG;QACnBnC,IAAI,EAAE,WAAW;QACjB+B,KAAK;QACL7B;MACF,CAAU;MACVG,cAAc,CAAC8B,YAAY,EAAE5E,GAAG,CAAC;IACnC;EACF;EACA,OAAOsE,GAAG;AACZ;AAEO,SAASO,+BAA+BA,CAC7CC,KAAqC,EACrCN,KAAa,EACb/B,IAAyB,EACzBsC,CAAQ,EACF;EACN,IAAIP,KAAK,KAAK,CAAC,EAAE;EAEjB,MAAMQ,QAAQ,GAAGF,KAAK,CAACN,KAAK,GAAG,CAAC,CAAC;EACjC,MAAMS,QAAQ,GAAGH,KAAK,CAACN,KAAK,CAAC;EAE7B,IACEQ,QAAQ,CAACE,IAAI,IACbF,QAAQ,CAACG,OAAO,KAAKC,SAAS,IAC9B,OAAOH,QAAQ,CAACf,KAAK,KAAK,QAAQ,EAClC;IACAa,CAAC,CAAC7B,OAAO,IACP,8BAA8B,GAC9B,IAAIT,IAAI,cAAcuC,QAAQ,CAACE,IAAI,CAACG,OAAO,MAAMC,IAAI,CAACC,SAAS,CAC7DN,QAAQ,CAACf,KAAK,EACdkB,SAAS,EACT,CACF,CAAC,QAAQ,GACT,iBAAiB3C,IAAI,gEAAgE;EACzF;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_removed","require","_optionAssertions","_configError","ROOT_VALIDATORS","cwd","assertString","root","rootMode","assertRootMode","configFile","assertConfigFileSearch","caller","assertCallerMetadata","filename","filenameRelative","code","assertBoolean","ast","cloneInputAst","envName","BABELRC_VALIDATORS","babelrc","babelrcRoots","assertBabelrcSearch","NONPRESET_VALIDATORS","extends","ignore","assertIgnoreList","only","targets","assertTargets","browserslistConfigFile","browserslistEnv","COMMON_VALIDATORS","inputSourceMap","assertInputSourceMap","presets","assertPluginList","plugins","passPerPreset","assumptions","assertAssumptions","env","assertEnvSet","overrides","assertOverridesList","test","assertConfigApplicableTest","include","exclude","retainLines","comments","shouldPrintComment","assertFunction","compact","assertCompact","minified","auxiliaryCommentBefore","auxiliaryCommentAfter","sourceType","assertSourceType","wrapPluginVisitorMethod","highlightCode","sourceMaps","assertSourceMaps","sourceMap","sourceFileName","sourceRoot","parserOpts","assertObject","generatorOpts","Object","assign","getModuleId","moduleRoot","moduleIds","moduleId","knownAssumptions","assumptionsNames","exports","Set","getSource","loc","type","source","parent","validate","opts","validateNested","error","configError","ConfigError","message","assertNoDuplicateSourcemap","keys","forEach","key","optLoc","name","Error","msg","validator","throwUnknownError","removed","version","unknownOptErr","hasOwnProperty","call","value","obj","access","envLoc","arr","assertArray","index","item","entries","objLoc","overridesLoc","checkNoUnwrappedItemOptionPairs","items","e","lastItem","thisItem","file","options","undefined","request","JSON","stringify"],"sources":["../../../src/config/validation/options.ts"],"sourcesContent":["import type { InputTargets, Targets } from \"@babel/helper-compilation-targets\";\n\nimport type { ConfigItem } from \"../item.ts\";\nimport type Plugin from \"../plugin.ts\";\n\nimport removed from \"./removed.ts\";\nimport {\n msg,\n access,\n assertString,\n assertBoolean,\n assertObject,\n assertArray,\n assertCallerMetadata,\n assertInputSourceMap,\n assertIgnoreList,\n assertPluginList,\n assertConfigApplicableTest,\n assertConfigFileSearch,\n assertBabelrcSearch,\n assertFunction,\n assertRootMode,\n assertSourceMaps,\n assertCompact,\n assertSourceType,\n assertTargets,\n assertAssumptions,\n} from \"./option-assertions.ts\";\nimport type {\n ValidatorSet,\n Validator,\n OptionPath,\n} from \"./option-assertions.ts\";\nimport type { UnloadedDescriptor } from \"../config-descriptors.ts\";\nimport type { PluginAPI } from \"../helpers/config-api.ts\";\nimport type { ParserOptions } from \"@babel/parser\";\nimport type { GeneratorOptions } from \"@babel/generator\";\nimport ConfigError from \"../../errors/config-error.ts\";\n\nconst ROOT_VALIDATORS: ValidatorSet = {\n cwd: assertString as Validator,\n root: assertString as Validator,\n rootMode: assertRootMode as Validator,\n configFile: assertConfigFileSearch as Validator<\n ValidatedOptions[\"configFile\"]\n >,\n\n caller: assertCallerMetadata as Validator,\n filename: assertString as Validator,\n filenameRelative: assertString as Validator<\n ValidatedOptions[\"filenameRelative\"]\n >,\n code: assertBoolean as Validator,\n ast: assertBoolean as Validator,\n\n cloneInputAst: assertBoolean as Validator,\n\n envName: assertString as Validator,\n};\n\nconst BABELRC_VALIDATORS: ValidatorSet = {\n babelrc: assertBoolean as Validator,\n babelrcRoots: assertBabelrcSearch as Validator<\n ValidatedOptions[\"babelrcRoots\"]\n >,\n};\n\nconst NONPRESET_VALIDATORS: ValidatorSet = {\n extends: assertString as Validator,\n ignore: assertIgnoreList as Validator,\n only: assertIgnoreList as Validator,\n\n targets: assertTargets as Validator,\n browserslistConfigFile: assertConfigFileSearch as Validator<\n ValidatedOptions[\"browserslistConfigFile\"]\n >,\n browserslistEnv: assertString as Validator<\n ValidatedOptions[\"browserslistEnv\"]\n >,\n};\n\nconst COMMON_VALIDATORS: ValidatorSet = {\n // TODO: Should 'inputSourceMap' be moved to be a root-only option?\n // We may want a boolean-only version to be a common option, with the\n // object only allowed as a root config argument.\n inputSourceMap: assertInputSourceMap as Validator<\n ValidatedOptions[\"inputSourceMap\"]\n >,\n presets: assertPluginList as Validator,\n plugins: assertPluginList as Validator,\n passPerPreset: assertBoolean as Validator,\n assumptions: assertAssumptions as Validator,\n\n env: assertEnvSet as Validator,\n overrides: assertOverridesList as Validator,\n\n // We could limit these to 'overrides' blocks, but it's not clear why we'd\n // bother, when the ability to limit a config to a specific set of files\n // is a fairly general useful feature.\n test: assertConfigApplicableTest as Validator,\n include: assertConfigApplicableTest as Validator,\n exclude: assertConfigApplicableTest as Validator,\n\n retainLines: assertBoolean as Validator,\n comments: assertBoolean as Validator,\n shouldPrintComment: assertFunction as Validator<\n ValidatedOptions[\"shouldPrintComment\"]\n >,\n compact: assertCompact as Validator,\n minified: assertBoolean as Validator,\n auxiliaryCommentBefore: assertString as Validator<\n ValidatedOptions[\"auxiliaryCommentBefore\"]\n >,\n auxiliaryCommentAfter: assertString as Validator<\n ValidatedOptions[\"auxiliaryCommentAfter\"]\n >,\n sourceType: assertSourceType as Validator,\n wrapPluginVisitorMethod: assertFunction as Validator<\n ValidatedOptions[\"wrapPluginVisitorMethod\"]\n >,\n highlightCode: assertBoolean as Validator,\n sourceMaps: assertSourceMaps as Validator,\n sourceMap: assertSourceMaps as Validator,\n sourceFileName: assertString as Validator,\n sourceRoot: assertString as Validator,\n parserOpts: assertObject as Validator,\n generatorOpts: assertObject as Validator,\n};\nif (!process.env.BABEL_8_BREAKING) {\n Object.assign(COMMON_VALIDATORS, {\n getModuleId: assertFunction,\n moduleRoot: assertString,\n moduleIds: assertBoolean,\n moduleId: assertString,\n });\n}\n\nexport type InputOptions = ValidatedOptions;\n\nexport type ValidatedOptions = {\n cwd?: string;\n filename?: string;\n filenameRelative?: string;\n babelrc?: boolean;\n babelrcRoots?: BabelrcSearch;\n configFile?: ConfigFileSearch;\n root?: string;\n rootMode?: RootMode;\n code?: boolean;\n ast?: boolean;\n cloneInputAst?: boolean;\n inputSourceMap?: RootInputSourceMapOption;\n envName?: string;\n caller?: CallerMetadata;\n extends?: string;\n env?: EnvSet;\n ignore?: IgnoreList;\n only?: IgnoreList;\n overrides?: OverridesList;\n // Generally verify if a given config object should be applied to the given file.\n test?: ConfigApplicableTest;\n include?: ConfigApplicableTest;\n exclude?: ConfigApplicableTest;\n presets?: PluginList;\n plugins?: PluginList;\n passPerPreset?: boolean;\n assumptions?: {\n [name: string]: boolean;\n };\n // browserslists-related options\n targets?: TargetsListOrObject;\n browserslistConfigFile?: ConfigFileSearch;\n browserslistEnv?: string;\n // Options for @babel/generator\n retainLines?: boolean;\n comments?: boolean;\n shouldPrintComment?: Function;\n compact?: CompactOption;\n minified?: boolean;\n auxiliaryCommentBefore?: string;\n auxiliaryCommentAfter?: string;\n // Parser\n sourceType?: SourceTypeOption;\n wrapPluginVisitorMethod?: Function;\n highlightCode?: boolean;\n // Sourcemap generation options.\n sourceMaps?: SourceMapsOption;\n sourceMap?: SourceMapsOption;\n sourceFileName?: string;\n sourceRoot?: string;\n // Deprecate top level parserOpts\n parserOpts?: ParserOptions;\n // Deprecate top level generatorOpts\n generatorOpts?: GeneratorOptions;\n};\n\nexport type NormalizedOptions = {\n readonly targets: Targets;\n} & Omit;\n\nexport type CallerMetadata = {\n // If 'caller' is specified, require that the name is given for debugging\n // messages.\n name: string;\n};\nexport type EnvSet = {\n [x: string]: T;\n};\nexport type IgnoreItem =\n | string\n | RegExp\n | ((\n path: string | undefined,\n context: { dirname: string; caller: CallerMetadata; envName: string },\n ) => unknown);\nexport type IgnoreList = ReadonlyArray;\n\nexport type PluginOptions = object | void | false;\nexport type PluginTarget = string | object | Function;\nexport type PluginItem =\n | ConfigItem\n | Plugin\n | PluginTarget\n | [PluginTarget, PluginOptions]\n | [PluginTarget, PluginOptions, string | void];\nexport type PluginList = ReadonlyArray;\n\nexport type OverridesList = Array;\nexport type ConfigApplicableTest = IgnoreItem | Array;\n\nexport type ConfigFileSearch = string | boolean;\nexport type BabelrcSearch = boolean | IgnoreItem | IgnoreList;\nexport type SourceMapsOption = boolean | \"inline\" | \"both\";\nexport type SourceTypeOption = \"module\" | \"script\" | \"unambiguous\";\nexport type CompactOption = boolean | \"auto\";\nexport type RootInputSourceMapOption = object | boolean;\nexport type RootMode = \"root\" | \"upward\" | \"upward-optional\";\n\nexport type TargetsListOrObject =\n | Targets\n | InputTargets\n | InputTargets[\"browsers\"];\n\nexport type OptionsSource =\n | \"arguments\"\n | \"configfile\"\n | \"babelrcfile\"\n | \"extendsfile\"\n | \"preset\"\n | \"plugin\";\n\nexport type RootPath = Readonly<{\n type: \"root\";\n source: OptionsSource;\n}>;\n\ntype OverridesPath = Readonly<{\n type: \"overrides\";\n index: number;\n parent: RootPath;\n}>;\n\ntype EnvPath = Readonly<{\n type: \"env\";\n name: string;\n parent: RootPath | OverridesPath;\n}>;\n\nexport type NestingPath = RootPath | OverridesPath | EnvPath;\n\nconst knownAssumptions = [\n \"arrayLikeIsIterable\",\n \"constantReexports\",\n \"constantSuper\",\n \"enumerableModuleMeta\",\n \"ignoreFunctionLength\",\n \"ignoreToPrimitiveHint\",\n \"iterableIsArray\",\n \"mutableTemplateObject\",\n \"noClassCalls\",\n \"noDocumentAll\",\n \"noIncompleteNsImportDetection\",\n \"noNewArrows\",\n \"noUninitializedPrivateFieldAccess\",\n \"objectRestNoSymbols\",\n \"privateFieldsAsSymbols\",\n \"privateFieldsAsProperties\",\n \"pureGetters\",\n \"setClassMethods\",\n \"setComputedProperties\",\n \"setPublicClassFields\",\n \"setSpreadProperties\",\n \"skipForOfIteratorClosing\",\n \"superIsCallableConstructor\",\n] as const;\nexport type AssumptionName = (typeof knownAssumptions)[number];\nexport const assumptionsNames = new Set(knownAssumptions);\n\nfunction getSource(loc: NestingPath): OptionsSource {\n return loc.type === \"root\" ? loc.source : getSource(loc.parent);\n}\n\nexport function validate(\n type: OptionsSource,\n opts: any,\n filename?: string,\n): ValidatedOptions {\n try {\n return validateNested(\n {\n type: \"root\",\n source: type,\n },\n opts,\n );\n } catch (error) {\n const configError = new ConfigError(error.message, filename);\n // @ts-expect-error TODO: .code is not defined on ConfigError or Error\n if (error.code) configError.code = error.code;\n throw configError;\n }\n}\n\nfunction validateNested(loc: NestingPath, opts: { [key: string]: unknown }) {\n const type = getSource(loc);\n\n assertNoDuplicateSourcemap(opts);\n\n Object.keys(opts).forEach((key: string) => {\n const optLoc = {\n type: \"option\",\n name: key,\n parent: loc,\n } as const;\n\n if (type === \"preset\" && NONPRESET_VALIDATORS[key]) {\n throw new Error(`${msg(optLoc)} is not allowed in preset options`);\n }\n if (type !== \"arguments\" && ROOT_VALIDATORS[key]) {\n throw new Error(\n `${msg(optLoc)} is only allowed in root programmatic options`,\n );\n }\n if (\n type !== \"arguments\" &&\n type !== \"configfile\" &&\n BABELRC_VALIDATORS[key]\n ) {\n if (type === \"babelrcfile\" || type === \"extendsfile\") {\n throw new Error(\n `${msg(\n optLoc,\n )} is not allowed in .babelrc or \"extends\"ed files, only in root programmatic options, ` +\n `or babel.config.js/config file options`,\n );\n }\n\n throw new Error(\n `${msg(\n optLoc,\n )} is only allowed in root programmatic options, or babel.config.js/config file options`,\n );\n }\n\n const validator =\n COMMON_VALIDATORS[key] ||\n NONPRESET_VALIDATORS[key] ||\n BABELRC_VALIDATORS[key] ||\n ROOT_VALIDATORS[key] ||\n (throwUnknownError as Validator);\n\n validator(optLoc, opts[key]);\n });\n\n return opts;\n}\n\nfunction throwUnknownError(loc: OptionPath) {\n const key = loc.name;\n\n if (removed[key]) {\n const { message, version = 5 } = removed[key];\n\n throw new Error(\n `Using removed Babel ${version} option: ${msg(loc)} - ${message}`,\n );\n } else {\n const unknownOptErr = new Error(\n `Unknown option: ${msg(\n loc,\n )}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`,\n );\n // @ts-expect-error todo(flow->ts): consider creating something like BabelConfigError with code field in it\n unknownOptErr.code = \"BABEL_UNKNOWN_OPTION\";\n\n throw unknownOptErr;\n }\n}\n\nfunction assertNoDuplicateSourcemap(opts: any): void {\n if (Object.hasOwn(opts, \"sourceMap\") && Object.hasOwn(opts, \"sourceMaps\")) {\n throw new Error(\".sourceMap is an alias for .sourceMaps, cannot use both\");\n }\n}\n\nfunction assertEnvSet(\n loc: OptionPath,\n value: unknown,\n): void | EnvSet {\n if (loc.parent.type === \"env\") {\n throw new Error(`${msg(loc)} is not allowed inside of another .env block`);\n }\n const parent: RootPath | OverridesPath = loc.parent;\n\n const obj = assertObject(loc, value);\n if (obj) {\n // Validate but don't copy the .env object in order to preserve\n // object identity for use during config chain processing.\n for (const envName of Object.keys(obj)) {\n const env = assertObject(access(loc, envName), obj[envName]);\n if (!env) continue;\n\n const envLoc = {\n type: \"env\",\n name: envName,\n parent,\n } as const;\n validateNested(envLoc, env);\n }\n }\n return obj;\n}\n\nfunction assertOverridesList(\n loc: OptionPath,\n value: unknown[],\n): undefined | OverridesList {\n if (loc.parent.type === \"env\") {\n throw new Error(`${msg(loc)} is not allowed inside an .env block`);\n }\n if (loc.parent.type === \"overrides\") {\n throw new Error(`${msg(loc)} is not allowed inside an .overrides block`);\n }\n const parent: RootPath = loc.parent;\n\n const arr = assertArray(loc, value);\n if (arr) {\n for (const [index, item] of arr.entries()) {\n const objLoc = access(loc, index);\n const env = assertObject(objLoc, item);\n if (!env) throw new Error(`${msg(objLoc)} must be an object`);\n\n const overridesLoc = {\n type: \"overrides\",\n index,\n parent,\n } as const;\n validateNested(overridesLoc, env);\n }\n }\n return arr as OverridesList;\n}\n\nexport function checkNoUnwrappedItemOptionPairs(\n items: Array>,\n index: number,\n type: \"plugin\" | \"preset\",\n e: Error,\n): void {\n if (index === 0) return;\n\n const lastItem = items[index - 1];\n const thisItem = items[index];\n\n if (\n lastItem.file &&\n lastItem.options === undefined &&\n typeof thisItem.value === \"object\"\n ) {\n e.message +=\n `\\n- Maybe you meant to use\\n` +\n `\"${type}s\": [\\n [\"${lastItem.file.request}\", ${JSON.stringify(\n thisItem.value,\n undefined,\n 2,\n )}]\\n]\\n` +\n `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`;\n }\n}\n"],"mappings":";;;;;;;;AAKA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AA+BA,IAAAE,YAAA,GAAAF,OAAA;AAEA,MAAMG,eAA6B,GAAG;EACpCC,GAAG,EAAEC,8BAAkD;EACvDC,IAAI,EAAED,8BAAmD;EACzDE,QAAQ,EAAEC,gCAAyD;EACnEC,UAAU,EAAEC,wCAEX;EAEDC,MAAM,EAAEC,sCAA6D;EACrEC,QAAQ,EAAER,8BAAuD;EACjES,gBAAgB,EAAET,8BAEjB;EACDU,IAAI,EAAEC,+BAAoD;EAC1DC,GAAG,EAAED,+BAAmD;EAExDE,aAAa,EAAEF,+BAA6D;EAE5EG,OAAO,EAAEd;AACX,CAAC;AAED,MAAMe,kBAAgC,GAAG;EACvCC,OAAO,EAAEL,+BAAuD;EAChEM,YAAY,EAAEC;AAGhB,CAAC;AAED,MAAMC,oBAAkC,GAAG;EACzCC,OAAO,EAAEpB,8BAAsD;EAC/DqB,MAAM,EAAEC,kCAAyD;EACjEC,IAAI,EAAED,kCAAuD;EAE7DE,OAAO,EAAEC,+BAAuD;EAChEC,sBAAsB,EAAErB,wCAEvB;EACDsB,eAAe,EAAE3B;AAGnB,CAAC;AAED,MAAM4B,iBAA+B,GAAG;EAItCC,cAAc,EAAEC,sCAEf;EACDC,OAAO,EAAEC,kCAA0D;EACnEC,OAAO,EAAED,kCAA0D;EACnEE,aAAa,EAAEvB,+BAA6D;EAC5EwB,WAAW,EAAEC,mCAA+D;EAE5EC,GAAG,EAAEC,YAAkD;EACvDC,SAAS,EAAEC,mBAA+D;EAK1EC,IAAI,EAAEC,4CAAiE;EACvEC,OAAO,EAAED,4CAAoE;EAC7EE,OAAO,EAAEF,4CAAoE;EAE7EG,WAAW,EAAElC,+BAA2D;EACxEmC,QAAQ,EAAEnC,+BAAwD;EAClEoC,kBAAkB,EAAEC,gCAEnB;EACDC,OAAO,EAAEC,+BAAuD;EAChEC,QAAQ,EAAExC,+BAAwD;EAClEyC,sBAAsB,EAAEpD,8BAEvB;EACDqD,qBAAqB,EAAErD,8BAEtB;EACDsD,UAAU,EAAEC,kCAA6D;EACzEC,uBAAuB,EAAER,gCAExB;EACDS,aAAa,EAAE9C,+BAA6D;EAC5E+C,UAAU,EAAEC,kCAA6D;EACzEC,SAAS,EAAED,kCAA4D;EACvEE,cAAc,EAAE7D,8BAA6D;EAC7E8D,UAAU,EAAE9D,8BAAyD;EACrE+D,UAAU,EAAEC,8BAAyD;EACrEC,aAAa,EAAED;AACjB,CAAC;AACkC;EACjCE,MAAM,CAACC,MAAM,CAACvC,iBAAiB,EAAE;IAC/BwC,WAAW,EAAEpB,gCAAc;IAC3BqB,UAAU,EAAErE,8BAAY;IACxBsE,SAAS,EAAE3D,+BAAa;IACxB4D,QAAQ,EAAEvE;EACZ,CAAC,CAAC;AACJ;AAuIA,MAAMwE,gBAAgB,GAAG,CACvB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,+BAA+B,EAC/B,aAAa,EACb,mCAAmC,EACnC,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,CACpB;AAEH,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAIE,GAAG,CAACH,gBAAgB,CAAC;AAEzD,SAASI,SAASA,CAACC,GAAgB,EAAiB;EAClD,OAAOA,GAAG,CAACC,IAAI,KAAK,MAAM,GAAGD,GAAG,CAACE,MAAM,GAAGH,SAAS,CAACC,GAAG,CAACG,MAAM,CAAC;AACjE;AAEO,SAASC,QAAQA,CACtBH,IAAmB,EACnBI,IAAS,EACT1E,QAAiB,EACC;EAClB,IAAI;IACF,OAAO2E,cAAc,CACnB;MACEL,IAAI,EAAE,MAAM;MACZC,MAAM,EAAED;IACV,CAAC,EACDI,IACF,CAAC;EACH,CAAC,CAAC,OAAOE,KAAK,EAAE;IACd,MAAMC,WAAW,GAAG,IAAIC,oBAAW,CAACF,KAAK,CAACG,OAAO,EAAE/E,QAAQ,CAAC;IAE5D,IAAI4E,KAAK,CAAC1E,IAAI,EAAE2E,WAAW,CAAC3E,IAAI,GAAG0E,KAAK,CAAC1E,IAAI;IAC7C,MAAM2E,WAAW;EACnB;AACF;AAEA,SAASF,cAAcA,CAACN,GAAgB,EAAEK,IAAgC,EAAE;EAC1E,MAAMJ,IAAI,GAAGF,SAAS,CAACC,GAAG,CAAC;EAE3BW,0BAA0B,CAACN,IAAI,CAAC;EAEhChB,MAAM,CAACuB,IAAI,CAACP,IAAI,CAAC,CAACQ,OAAO,CAAEC,GAAW,IAAK;IACzC,MAAMC,MAAM,GAAG;MACbd,IAAI,EAAE,QAAQ;MACde,IAAI,EAAEF,GAAG;MACTX,MAAM,EAAEH;IACV,CAAU;IAEV,IAAIC,IAAI,KAAK,QAAQ,IAAI3D,oBAAoB,CAACwE,GAAG,CAAC,EAAE;MAClD,MAAM,IAAIG,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAACH,MAAM,CAAC,mCAAmC,CAAC;IACpE;IACA,IAAId,IAAI,KAAK,WAAW,IAAIhF,eAAe,CAAC6F,GAAG,CAAC,EAAE;MAChD,MAAM,IAAIG,KAAK,CACb,GAAG,IAAAC,qBAAG,EAACH,MAAM,CAAC,+CAChB,CAAC;IACH;IACA,IACEd,IAAI,KAAK,WAAW,IACpBA,IAAI,KAAK,YAAY,IACrB/D,kBAAkB,CAAC4E,GAAG,CAAC,EACvB;MACA,IAAIb,IAAI,KAAK,aAAa,IAAIA,IAAI,KAAK,aAAa,EAAE;QACpD,MAAM,IAAIgB,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJH,MACF,CAAC,uFAAuF,GACtF,wCACJ,CAAC;MACH;MAEA,MAAM,IAAIE,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJH,MACF,CAAC,uFACH,CAAC;IACH;IAEA,MAAMI,SAAS,GACbpE,iBAAiB,CAAC+D,GAAG,CAAC,IACtBxE,oBAAoB,CAACwE,GAAG,CAAC,IACzB5E,kBAAkB,CAAC4E,GAAG,CAAC,IACvB7F,eAAe,CAAC6F,GAAG,CAAC,IACnBM,iBAAqC;IAExCD,SAAS,CAACJ,MAAM,EAAEV,IAAI,CAACS,GAAG,CAAC,CAAC;EAC9B,CAAC,CAAC;EAEF,OAAOT,IAAI;AACb;AAEA,SAASe,iBAAiBA,CAACpB,GAAe,EAAE;EAC1C,MAAMc,GAAG,GAAGd,GAAG,CAACgB,IAAI;EAEpB,IAAIK,gBAAO,CAACP,GAAG,CAAC,EAAE;IAChB,MAAM;MAAEJ,OAAO;MAAEY,OAAO,GAAG;IAAE,CAAC,GAAGD,gBAAO,CAACP,GAAG,CAAC;IAE7C,MAAM,IAAIG,KAAK,CACb,uBAAuBK,OAAO,YAAY,IAAAJ,qBAAG,EAAClB,GAAG,CAAC,MAAMU,OAAO,EACjE,CAAC;EACH,CAAC,MAAM;IACL,MAAMa,aAAa,GAAG,IAAIN,KAAK,CAC7B,mBAAmB,IAAAC,qBAAG,EACpBlB,GACF,CAAC,gGACH,CAAC;IAEDuB,aAAa,CAAC1F,IAAI,GAAG,sBAAsB;IAE3C,MAAM0F,aAAa;EACrB;AACF;AAEA,SAASZ,0BAA0BA,CAACN,IAAS,EAAQ;EACnD,IAAImB,cAAA,CAAAC,IAAA,CAAcpB,IAAI,EAAE,WAAW,CAAC,IAAImB,cAAA,CAAAC,IAAA,CAAcpB,IAAI,EAAE,YAAY,CAAC,EAAE;IACzE,MAAM,IAAIY,KAAK,CAAC,yDAAyD,CAAC;EAC5E;AACF;AAEA,SAASxD,YAAYA,CACnBuC,GAAe,EACf0B,KAAc,EACmB;EACjC,IAAI1B,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,KAAK,EAAE;IAC7B,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,8CAA8C,CAAC;EAC5E;EACA,MAAMG,MAAgC,GAAGH,GAAG,CAACG,MAAM;EAEnD,MAAMwB,GAAG,GAAG,IAAAxC,8BAAY,EAACa,GAAG,EAAE0B,KAAK,CAAC;EACpC,IAAIC,GAAG,EAAE;IAGP,KAAK,MAAM1F,OAAO,IAAIoD,MAAM,CAACuB,IAAI,CAACe,GAAG,CAAC,EAAE;MACtC,MAAMnE,GAAG,GAAG,IAAA2B,8BAAY,EAAC,IAAAyC,wBAAM,EAAC5B,GAAG,EAAE/D,OAAO,CAAC,EAAE0F,GAAG,CAAC1F,OAAO,CAAC,CAAC;MAC5D,IAAI,CAACuB,GAAG,EAAE;MAEV,MAAMqE,MAAM,GAAG;QACb5B,IAAI,EAAE,KAAK;QACXe,IAAI,EAAE/E,OAAO;QACbkE;MACF,CAAU;MACVG,cAAc,CAACuB,MAAM,EAAErE,GAAG,CAAC;IAC7B;EACF;EACA,OAAOmE,GAAG;AACZ;AAEA,SAAShE,mBAAmBA,CAC1BqC,GAAe,EACf0B,KAAgB,EACW;EAC3B,IAAI1B,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,KAAK,EAAE;IAC7B,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,sCAAsC,CAAC;EACpE;EACA,IAAIA,GAAG,CAACG,MAAM,CAACF,IAAI,KAAK,WAAW,EAAE;IACnC,MAAM,IAAIgB,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAAClB,GAAG,CAAC,4CAA4C,CAAC;EAC1E;EACA,MAAMG,MAAgB,GAAGH,GAAG,CAACG,MAAM;EAEnC,MAAM2B,GAAG,GAAG,IAAAC,6BAAW,EAAC/B,GAAG,EAAE0B,KAAK,CAAC;EACnC,IAAII,GAAG,EAAE;IACP,KAAK,MAAM,CAACE,KAAK,EAAEC,IAAI,CAAC,IAAIH,GAAG,CAACI,OAAO,CAAC,CAAC,EAAE;MACzC,MAAMC,MAAM,GAAG,IAAAP,wBAAM,EAAC5B,GAAG,EAAEgC,KAAK,CAAC;MACjC,MAAMxE,GAAG,GAAG,IAAA2B,8BAAY,EAACgD,MAAM,EAAEF,IAAI,CAAC;MACtC,IAAI,CAACzE,GAAG,EAAE,MAAM,IAAIyD,KAAK,CAAC,GAAG,IAAAC,qBAAG,EAACiB,MAAM,CAAC,oBAAoB,CAAC;MAE7D,MAAMC,YAAY,GAAG;QACnBnC,IAAI,EAAE,WAAW;QACjB+B,KAAK;QACL7B;MACF,CAAU;MACVG,cAAc,CAAC8B,YAAY,EAAE5E,GAAG,CAAC;IACnC;EACF;EACA,OAAOsE,GAAG;AACZ;AAEO,SAASO,+BAA+BA,CAC7CC,KAAqC,EACrCN,KAAa,EACb/B,IAAyB,EACzBsC,CAAQ,EACF;EACN,IAAIP,KAAK,KAAK,CAAC,EAAE;EAEjB,MAAMQ,QAAQ,GAAGF,KAAK,CAACN,KAAK,GAAG,CAAC,CAAC;EACjC,MAAMS,QAAQ,GAAGH,KAAK,CAACN,KAAK,CAAC;EAE7B,IACEQ,QAAQ,CAACE,IAAI,IACbF,QAAQ,CAACG,OAAO,KAAKC,SAAS,IAC9B,OAAOH,QAAQ,CAACf,KAAK,KAAK,QAAQ,EAClC;IACAa,CAAC,CAAC7B,OAAO,IACP,8BAA8B,GAC9B,IAAIT,IAAI,cAAcuC,QAAQ,CAACE,IAAI,CAACG,OAAO,MAAMC,IAAI,CAACC,SAAS,CAC7DN,QAAQ,CAACf,KAAK,EACdkB,SAAS,EACT,CACF,CAAC,QAAQ,GACT,iBAAiB3C,IAAI,gEAAgE;EACzF;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/config/validation/plugins.js.map b/node_modules/@babel/core/lib/config/validation/plugins.js.map index 2f20d9770..41a4ba932 100644 --- a/node_modules/@babel/core/lib/config/validation/plugins.js.map +++ b/node_modules/@babel/core/lib/config/validation/plugins.js.map @@ -1 +1 @@ -{"version":3,"names":["_optionAssertions","require","VALIDATORS","name","assertString","manipulateOptions","assertFunction","pre","post","inherits","visitor","assertVisitorMap","parserOverride","generatorOverride","loc","value","obj","assertObject","Object","keys","forEach","prop","assertVisitorHandler","enter","exit","Error","msg","key","handler","validatePluginObject","rootPath","type","source","validator","optLoc","parent","invalidPluginPropertyError","code"],"sources":["../../../src/config/validation/plugins.ts"],"sourcesContent":["import {\n assertString,\n assertFunction,\n assertObject,\n msg,\n} from \"./option-assertions.ts\";\n\nimport type {\n ValidatorSet,\n Validator,\n OptionPath,\n RootPath,\n} from \"./option-assertions.ts\";\nimport type { parse, ParserOptions } from \"@babel/parser\";\nimport type { Visitor } from \"@babel/traverse\";\nimport type { ValidatedOptions } from \"./options.ts\";\nimport type { File, PluginAPI, PluginPass } from \"../../index.ts\";\n\n// Note: The casts here are just meant to be static assertions to make sure\n// that the assertion functions actually assert that the value's type matches\n// the declared types.\nconst VALIDATORS: ValidatorSet = {\n name: assertString as Validator,\n manipulateOptions: assertFunction as Validator<\n PluginObject[\"manipulateOptions\"]\n >,\n pre: assertFunction as Validator,\n post: assertFunction as Validator,\n inherits: assertFunction as Validator,\n visitor: assertVisitorMap as Validator,\n\n parserOverride: assertFunction as Validator,\n generatorOverride: assertFunction as Validator<\n PluginObject[\"generatorOverride\"]\n >,\n};\n\nfunction assertVisitorMap(loc: OptionPath, value: unknown): Visitor {\n const obj = assertObject(loc, value);\n if (obj) {\n Object.keys(obj).forEach(prop => {\n if (prop !== \"_exploded\" && prop !== \"_verified\") {\n assertVisitorHandler(prop, obj[prop]);\n }\n });\n\n if (obj.enter || obj.exit) {\n throw new Error(\n `${msg(\n loc,\n )} cannot contain catch-all \"enter\" or \"exit\" handlers. Please target individual nodes.`,\n );\n }\n }\n return obj as Visitor;\n}\n\nfunction assertVisitorHandler(\n key: string,\n value: unknown,\n): asserts value is VisitorHandler {\n if (value && typeof value === \"object\") {\n Object.keys(value).forEach((handler: string) => {\n if (handler !== \"enter\" && handler !== \"exit\") {\n throw new Error(\n `.visitor[\"${key}\"] may only have .enter and/or .exit handlers.`,\n );\n }\n });\n } else if (typeof value !== \"function\") {\n throw new Error(`.visitor[\"${key}\"] must be a function`);\n }\n}\n\ntype VisitorHandler =\n | Function\n | {\n enter?: Function;\n exit?: Function;\n };\n\nexport type PluginObject = {\n name?: string;\n manipulateOptions?: (\n options: ValidatedOptions,\n parserOpts: ParserOptions,\n ) => void;\n pre?: (this: S, file: File) => void | Promise;\n post?: (this: S, file: File) => void | Promise;\n inherits?: (\n api: PluginAPI,\n options: unknown,\n dirname: string,\n ) => PluginObject;\n visitor?: Visitor;\n parserOverride?: (\n ...args: [...Parameters, typeof parse]\n ) => ReturnType;\n generatorOverride?: Function;\n};\n\nexport function validatePluginObject(obj: {\n [key: string]: unknown;\n}): PluginObject {\n const rootPath: RootPath = {\n type: \"root\",\n source: \"plugin\",\n };\n Object.keys(obj).forEach((key: string) => {\n const validator = VALIDATORS[key];\n\n if (validator) {\n const optLoc: OptionPath = {\n type: \"option\",\n name: key,\n parent: rootPath,\n };\n validator(optLoc, obj[key]);\n } else {\n const invalidPluginPropertyError = new Error(\n `.${key} is not a valid Plugin property`,\n );\n // @ts-expect-error todo(flow->ts) consider adding BabelConfigError with code field\n invalidPluginPropertyError.code = \"BABEL_UNKNOWN_PLUGIN_PROPERTY\";\n throw invalidPluginPropertyError;\n }\n });\n\n return obj as any;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAqBA,MAAMC,UAAwB,GAAG;EAC/BC,IAAI,EAAEC,8BAA+C;EACrDC,iBAAiB,EAAEC,gCAElB;EACDC,GAAG,EAAED,gCAAgD;EACrDE,IAAI,EAAEF,gCAAiD;EACvDG,QAAQ,EAAEH,gCAAqD;EAC/DI,OAAO,EAAEC,gBAAsD;EAE/DC,cAAc,EAAEN,gCAA2D;EAC3EO,iBAAiB,EAAEP;AAGrB,CAAC;AAED,SAASK,gBAAgBA,CAACG,GAAe,EAAEC,KAAc,EAAW;EAClE,MAAMC,GAAG,GAAG,IAAAC,8BAAY,EAACH,GAAG,EAAEC,KAAK,CAAC;EACpC,IAAIC,GAAG,EAAE;IACPE,MAAM,CAACC,IAAI,CAACH,GAAG,CAAC,CAACI,OAAO,CAACC,IAAI,IAAI;MAC/B,IAAIA,IAAI,KAAK,WAAW,IAAIA,IAAI,KAAK,WAAW,EAAE;QAChDC,oBAAoB,CAACD,IAAI,EAAEL,GAAG,CAACK,IAAI,CAAC,CAAC;MACvC;IACF,CAAC,CAAC;IAEF,IAAIL,GAAG,CAACO,KAAK,IAAIP,GAAG,CAACQ,IAAI,EAAE;MACzB,MAAM,IAAIC,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJZ,GACF,CAAC,uFACH,CAAC;IACH;EACF;EACA,OAAOE,GAAG;AACZ;AAEA,SAASM,oBAAoBA,CAC3BK,GAAW,EACXZ,KAAc,EACmB;EACjC,IAAIA,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IACtCG,MAAM,CAACC,IAAI,CAACJ,KAAK,CAAC,CAACK,OAAO,CAAEQ,OAAe,IAAK;MAC9C,IAAIA,OAAO,KAAK,OAAO,IAAIA,OAAO,KAAK,MAAM,EAAE;QAC7C,MAAM,IAAIH,KAAK,CACb,aAAaE,GAAG,gDAClB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,OAAOZ,KAAK,KAAK,UAAU,EAAE;IACtC,MAAM,IAAIU,KAAK,CAAC,aAAaE,GAAG,uBAAuB,CAAC;EAC1D;AACF;AA6BO,SAASE,oBAAoBA,CAACb,GAEpC,EAAgB;EACf,MAAMc,QAAkB,GAAG;IACzBC,IAAI,EAAE,MAAM;IACZC,MAAM,EAAE;EACV,CAAC;EACDd,MAAM,CAACC,IAAI,CAACH,GAAG,CAAC,CAACI,OAAO,CAAEO,GAAW,IAAK;IACxC,MAAMM,SAAS,GAAG/B,UAAU,CAACyB,GAAG,CAAC;IAEjC,IAAIM,SAAS,EAAE;MACb,MAAMC,MAAkB,GAAG;QACzBH,IAAI,EAAE,QAAQ;QACd5B,IAAI,EAAEwB,GAAG;QACTQ,MAAM,EAAEL;MACV,CAAC;MACDG,SAAS,CAACC,MAAM,EAAElB,GAAG,CAACW,GAAG,CAAC,CAAC;IAC7B,CAAC,MAAM;MACL,MAAMS,0BAA0B,GAAG,IAAIX,KAAK,CAC1C,IAAIE,GAAG,iCACT,CAAC;MAEDS,0BAA0B,CAACC,IAAI,GAAG,+BAA+B;MACjE,MAAMD,0BAA0B;IAClC;EACF,CAAC,CAAC;EAEF,OAAOpB,GAAG;AACZ;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_optionAssertions","require","VALIDATORS","name","assertString","manipulateOptions","assertFunction","pre","post","inherits","visitor","assertVisitorMap","parserOverride","generatorOverride","loc","value","obj","assertObject","Object","keys","forEach","prop","assertVisitorHandler","enter","exit","Error","msg","key","handler","validatePluginObject","rootPath","type","source","validator","optLoc","parent","invalidPluginPropertyError","code"],"sources":["../../../src/config/validation/plugins.ts"],"sourcesContent":["import {\n assertString,\n assertFunction,\n assertObject,\n msg,\n} from \"./option-assertions.ts\";\n\nimport type {\n ValidatorSet,\n Validator,\n OptionPath,\n RootPath,\n} from \"./option-assertions.ts\";\nimport type { ParserOptions } from \"@babel/parser\";\nimport type { Visitor } from \"@babel/traverse\";\nimport type { ValidatedOptions } from \"./options.ts\";\nimport type { File, PluginAPI, PluginPass } from \"../../index.ts\";\n\n// Note: The casts here are just meant to be static assertions to make sure\n// that the assertion functions actually assert that the value's type matches\n// the declared types.\nconst VALIDATORS: ValidatorSet = {\n name: assertString as Validator,\n manipulateOptions: assertFunction as Validator<\n PluginObject[\"manipulateOptions\"]\n >,\n pre: assertFunction as Validator,\n post: assertFunction as Validator,\n inherits: assertFunction as Validator,\n visitor: assertVisitorMap as Validator,\n\n parserOverride: assertFunction as Validator,\n generatorOverride: assertFunction as Validator<\n PluginObject[\"generatorOverride\"]\n >,\n};\n\nfunction assertVisitorMap(loc: OptionPath, value: unknown): Visitor {\n const obj = assertObject(loc, value);\n if (obj) {\n Object.keys(obj).forEach(prop => {\n if (prop !== \"_exploded\" && prop !== \"_verified\") {\n assertVisitorHandler(prop, obj[prop]);\n }\n });\n\n if (obj.enter || obj.exit) {\n throw new Error(\n `${msg(\n loc,\n )} cannot contain catch-all \"enter\" or \"exit\" handlers. Please target individual nodes.`,\n );\n }\n }\n return obj as Visitor;\n}\n\nfunction assertVisitorHandler(\n key: string,\n value: unknown,\n): asserts value is VisitorHandler {\n if (value && typeof value === \"object\") {\n Object.keys(value).forEach((handler: string) => {\n if (handler !== \"enter\" && handler !== \"exit\") {\n throw new Error(\n `.visitor[\"${key}\"] may only have .enter and/or .exit handlers.`,\n );\n }\n });\n } else if (typeof value !== \"function\") {\n throw new Error(`.visitor[\"${key}\"] must be a function`);\n }\n}\n\ntype VisitorHandler =\n | Function\n | {\n enter?: Function;\n exit?: Function;\n };\n\nexport type PluginObject = {\n name?: string;\n manipulateOptions?: (\n options: ValidatedOptions,\n parserOpts: ParserOptions,\n ) => void;\n pre?: (this: S, file: File) => void;\n post?: (this: S, file: File) => void;\n inherits?: (\n api: PluginAPI,\n options: unknown,\n dirname: string,\n ) => PluginObject;\n visitor?: Visitor;\n parserOverride?: Function;\n generatorOverride?: Function;\n};\n\nexport function validatePluginObject(obj: {\n [key: string]: unknown;\n}): PluginObject {\n const rootPath: RootPath = {\n type: \"root\",\n source: \"plugin\",\n };\n Object.keys(obj).forEach((key: string) => {\n const validator = VALIDATORS[key];\n\n if (validator) {\n const optLoc: OptionPath = {\n type: \"option\",\n name: key,\n parent: rootPath,\n };\n validator(optLoc, obj[key]);\n } else {\n const invalidPluginPropertyError = new Error(\n `.${key} is not a valid Plugin property`,\n );\n // @ts-expect-error todo(flow->ts) consider adding BabelConfigError with code field\n invalidPluginPropertyError.code = \"BABEL_UNKNOWN_PLUGIN_PROPERTY\";\n throw invalidPluginPropertyError;\n }\n });\n\n return obj as any;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAqBA,MAAMC,UAAwB,GAAG;EAC/BC,IAAI,EAAEC,8BAA+C;EACrDC,iBAAiB,EAAEC,gCAElB;EACDC,GAAG,EAAED,gCAAgD;EACrDE,IAAI,EAAEF,gCAAiD;EACvDG,QAAQ,EAAEH,gCAAqD;EAC/DI,OAAO,EAAEC,gBAAsD;EAE/DC,cAAc,EAAEN,gCAA2D;EAC3EO,iBAAiB,EAAEP;AAGrB,CAAC;AAED,SAASK,gBAAgBA,CAACG,GAAe,EAAEC,KAAc,EAAW;EAClE,MAAMC,GAAG,GAAG,IAAAC,8BAAY,EAACH,GAAG,EAAEC,KAAK,CAAC;EACpC,IAAIC,GAAG,EAAE;IACPE,MAAM,CAACC,IAAI,CAACH,GAAG,CAAC,CAACI,OAAO,CAACC,IAAI,IAAI;MAC/B,IAAIA,IAAI,KAAK,WAAW,IAAIA,IAAI,KAAK,WAAW,EAAE;QAChDC,oBAAoB,CAACD,IAAI,EAAEL,GAAG,CAACK,IAAI,CAAC,CAAC;MACvC;IACF,CAAC,CAAC;IAEF,IAAIL,GAAG,CAACO,KAAK,IAAIP,GAAG,CAACQ,IAAI,EAAE;MACzB,MAAM,IAAIC,KAAK,CACb,GAAG,IAAAC,qBAAG,EACJZ,GACF,CAAC,uFACH,CAAC;IACH;EACF;EACA,OAAOE,GAAG;AACZ;AAEA,SAASM,oBAAoBA,CAC3BK,GAAW,EACXZ,KAAc,EACmB;EACjC,IAAIA,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IACtCG,MAAM,CAACC,IAAI,CAACJ,KAAK,CAAC,CAACK,OAAO,CAAEQ,OAAe,IAAK;MAC9C,IAAIA,OAAO,KAAK,OAAO,IAAIA,OAAO,KAAK,MAAM,EAAE;QAC7C,MAAM,IAAIH,KAAK,CACb,aAAaE,GAAG,gDAClB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC,MAAM,IAAI,OAAOZ,KAAK,KAAK,UAAU,EAAE;IACtC,MAAM,IAAIU,KAAK,CAAC,aAAaE,GAAG,uBAAuB,CAAC;EAC1D;AACF;AA2BO,SAASE,oBAAoBA,CAACb,GAEpC,EAAgB;EACf,MAAMc,QAAkB,GAAG;IACzBC,IAAI,EAAE,MAAM;IACZC,MAAM,EAAE;EACV,CAAC;EACDd,MAAM,CAACC,IAAI,CAACH,GAAG,CAAC,CAACI,OAAO,CAAEO,GAAW,IAAK;IACxC,MAAMM,SAAS,GAAG/B,UAAU,CAACyB,GAAG,CAAC;IAEjC,IAAIM,SAAS,EAAE;MACb,MAAMC,MAAkB,GAAG;QACzBH,IAAI,EAAE,QAAQ;QACd5B,IAAI,EAAEwB,GAAG;QACTQ,MAAM,EAAEL;MACV,CAAC;MACDG,SAAS,CAACC,MAAM,EAAElB,GAAG,CAACW,GAAG,CAAC,CAAC;IAC7B,CAAC,MAAM;MACL,MAAMS,0BAA0B,GAAG,IAAIX,KAAK,CAC1C,IAAIE,GAAG,iCACT,CAAC;MAEDS,0BAA0B,CAACC,IAAI,GAAG,+BAA+B;MACjE,MAAMD,0BAA0B;IAClC;EACF,CAAC,CAAC;EAEF,OAAOpB,GAAG;AACZ;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/gensync-utils/async.js b/node_modules/@babel/core/lib/gensync-utils/async.js index 42946c63a..9e00fde8b 100644 --- a/node_modules/@babel/core/lib/gensync-utils/async.js +++ b/node_modules/@babel/core/lib/gensync-utils/async.js @@ -15,8 +15,8 @@ function _gensync() { }; return data; } -function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } -function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } const runGenerator = _gensync()(function* (item) { return yield* item; }); diff --git a/node_modules/@babel/core/lib/gensync-utils/async.js.map b/node_modules/@babel/core/lib/gensync-utils/async.js.map index 595d75715..ac27b9337 100644 --- a/node_modules/@babel/core/lib/gensync-utils/async.js.map +++ b/node_modules/@babel/core/lib/gensync-utils/async.js.map @@ -1 +1 @@ -{"version":3,"names":["_gensync","data","require","asyncGeneratorStep","n","t","e","r","o","a","c","i","u","value","done","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","runGenerator","gensync","item","isAsync","exports","sync","errback","cb","maybeAsync","fn","message","args","result","isThenable","Error","async","withKind","_ref","_x","forwardAsync","action","g","kind","adapted","onFirstPause","name","arity","firstPause","completed","err","waitFor","x","_ref2","_x2","val"],"sources":["../../src/gensync-utils/async.ts"],"sourcesContent":["import gensync, { type Gensync, type Handler, type Callback } from \"gensync\";\n\ntype MaybePromise = T | Promise;\n\nconst runGenerator: {\n sync(gen: Handler): Return;\n async(gen: Handler): Promise;\n errback(gen: Handler, cb: Callback): void;\n} = gensync(function* (item: Handler): Handler {\n return yield* item;\n});\n\n// This Gensync returns true if the current execution context is\n// asynchronous, otherwise it returns false.\nexport const isAsync = gensync({\n sync: () => false,\n errback: cb => cb(null, true),\n});\n\n// This function wraps any functions (which could be either synchronous or\n// asynchronous) with a Gensync. If the wrapped function returns a promise\n// but the current execution context is synchronous, it will throw the\n// provided error.\n// This is used to handle user-provided functions which could be asynchronous.\nexport function maybeAsync(\n fn: (...args: Args) => Return,\n message: string,\n): Gensync {\n return gensync({\n sync(...args) {\n const result = fn.apply(this, args);\n if (isThenable(result)) throw new Error(message);\n return result;\n },\n async(...args) {\n return Promise.resolve(fn.apply(this, args));\n },\n });\n}\n\nconst withKind = gensync({\n sync: cb => cb(\"sync\"),\n async: async cb => cb(\"async\"),\n}) as (cb: (kind: \"sync\" | \"async\") => MaybePromise) => Handler;\n\n// This function wraps a generator (or a Gensync) into another function which,\n// when called, will run the provided generator in a sync or async way, depending\n// on the execution context where this forwardAsync function is called.\n// This is useful, for example, when passing a callback to a function which isn't\n// aware of gensync, but it only knows about synchronous and asynchronous functions.\n// An example is cache.using, which being exposed to the user must be as simple as\n// possible:\n// yield* forwardAsync(gensyncFn, wrappedFn =>\n// cache.using(x => {\n// // Here we don't know about gensync. wrappedFn is a\n// // normal sync or async function\n// return wrappedFn(x);\n// })\n// )\nexport function forwardAsync(\n action: (...args: Args) => Handler,\n cb: (\n adapted: (...args: Args) => MaybePromise,\n ) => MaybePromise,\n): Handler {\n const g = gensync(action);\n return withKind(kind => {\n const adapted = g[kind];\n return cb(adapted);\n });\n}\n\n// If the given generator is executed asynchronously, the first time that it\n// is paused (i.e. When it yields a gensync generator which can't be run\n// synchronously), call the \"firstPause\" callback.\nexport const onFirstPause = gensync<\n [gen: Handler, firstPause: () => void],\n unknown\n>({\n name: \"onFirstPause\",\n arity: 2,\n sync: function (item) {\n return runGenerator.sync(item);\n },\n errback: function (item, firstPause, cb) {\n let completed = false;\n\n runGenerator.errback(item, (err, value) => {\n completed = true;\n cb(err, value);\n });\n\n if (!completed) {\n firstPause();\n }\n },\n}) as (gen: Handler, firstPause: () => void) => Handler;\n\n// Wait for the given promise to be resolved\nexport const waitFor = gensync({\n sync: x => x,\n async: async x => x,\n}) as (p: T | Promise) => Handler;\n\nexport function isThenable(val: any): val is PromiseLike {\n return (\n !!val &&\n (typeof val === \"object\" || typeof val === \"function\") &&\n !!val.then &&\n typeof val.then === \"function\"\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6E,SAAAE,mBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,cAAAC,CAAA,GAAAP,CAAA,CAAAK,CAAA,EAAAC,CAAA,GAAAE,CAAA,GAAAD,CAAA,CAAAE,KAAA,WAAAT,CAAA,gBAAAE,CAAA,CAAAF,CAAA,KAAAO,CAAA,CAAAG,IAAA,GAAAT,CAAA,CAAAO,CAAA,IAAAG,OAAA,CAAAC,OAAA,CAAAJ,CAAA,EAAAK,IAAA,CAAAV,CAAA,EAAAC,CAAA;AAAA,SAAAU,kBAAAd,CAAA,6BAAAC,CAAA,SAAAC,CAAA,GAAAa,SAAA,aAAAJ,OAAA,WAAAR,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAL,CAAA,CAAAgB,KAAA,CAAAf,CAAA,EAAAC,CAAA,YAAAe,MAAAjB,CAAA,IAAAD,kBAAA,CAAAM,CAAA,EAAAF,CAAA,EAAAC,CAAA,EAAAa,KAAA,EAAAC,MAAA,UAAAlB,CAAA,cAAAkB,OAAAlB,CAAA,IAAAD,kBAAA,CAAAM,CAAA,EAAAF,CAAA,EAAAC,CAAA,EAAAa,KAAA,EAAAC,MAAA,WAAAlB,CAAA,KAAAiB,KAAA;AAI7E,MAAME,YAIL,GAAGC,SAAMA,CAAC,CAAC,WAAWC,IAAkB,EAAgB;EACvD,OAAO,OAAOA,IAAI;AACpB,CAAC,CAAC;AAIK,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGF,SAAMA,CAAC,CAAC;EAC7BI,IAAI,EAAEA,CAAA,KAAM,KAAK;EACjBC,OAAO,EAAEC,EAAE,IAAIA,EAAE,CAAC,IAAI,EAAE,IAAI;AAC9B,CAAC,CAAC;AAOK,SAASC,UAAUA,CACxBC,EAA6B,EAC7BC,OAAe,EACQ;EACvB,OAAOT,SAAMA,CAAC,CAAC;IACbI,IAAIA,CAAC,GAAGM,IAAI,EAAE;MACZ,MAAMC,MAAM,GAAGH,EAAE,CAACZ,KAAK,CAAC,IAAI,EAAEc,IAAI,CAAC;MACnC,IAAIE,UAAU,CAACD,MAAM,CAAC,EAAE,MAAM,IAAIE,KAAK,CAACJ,OAAO,CAAC;MAChD,OAAOE,MAAM;IACf,CAAC;IACDG,KAAKA,CAAC,GAAGJ,IAAI,EAAE;MACb,OAAOnB,OAAO,CAACC,OAAO,CAACgB,EAAE,CAACZ,KAAK,CAAC,IAAI,EAAEc,IAAI,CAAC,CAAC;IAC9C;EACF,CAAC,CAAC;AACJ;AAEA,MAAMK,QAAQ,GAAGf,SAAMA,CAAC,CAAC;EACvBI,IAAI,EAAEE,EAAE,IAAIA,EAAE,CAAC,MAAM,CAAC;EACtBQ,KAAK;IAAA,IAAAE,IAAA,GAAAtB,iBAAA,CAAE,WAAMY,EAAE;MAAA,OAAIA,EAAE,CAAC,OAAO,CAAC;IAAA;IAAA,gBAA9BQ,KAAKA,CAAAG,EAAA;MAAA,OAAAD,IAAA,CAAApB,KAAA,OAAAD,SAAA;IAAA;EAAA;AACP,CAAC,CAAuE;AAgBjE,SAASuB,YAAYA,CAC1BC,MAA0C,EAC1Cb,EAEyB,EACR;EACjB,MAAMc,CAAC,GAAGpB,SAAMA,CAAC,CAACmB,MAAM,CAAC;EACzB,OAAOJ,QAAQ,CAACM,IAAI,IAAI;IACtB,MAAMC,OAAO,GAAGF,CAAC,CAACC,IAAI,CAAC;IACvB,OAAOf,EAAE,CAACgB,OAAO,CAAC;EACpB,CAAC,CAAC;AACJ;AAKO,MAAMC,YAAY,GAAApB,OAAA,CAAAoB,YAAA,GAAGvB,SAAMA,CAAC,CAGjC;EACAwB,IAAI,EAAE,cAAc;EACpBC,KAAK,EAAE,CAAC;EACRrB,IAAI,EAAE,SAAAA,CAAUH,IAAI,EAAE;IACpB,OAAOF,YAAY,CAACK,IAAI,CAACH,IAAI,CAAC;EAChC,CAAC;EACDI,OAAO,EAAE,SAAAA,CAAUJ,IAAI,EAAEyB,UAAU,EAAEpB,EAAE,EAAE;IACvC,IAAIqB,SAAS,GAAG,KAAK;IAErB5B,YAAY,CAACM,OAAO,CAACJ,IAAI,EAAE,CAAC2B,GAAG,EAAEvC,KAAK,KAAK;MACzCsC,SAAS,GAAG,IAAI;MAChBrB,EAAE,CAACsB,GAAG,EAAEvC,KAAK,CAAC;IAChB,CAAC,CAAC;IAEF,IAAI,CAACsC,SAAS,EAAE;MACdD,UAAU,CAAC,CAAC;IACd;EACF;AACF,CAAC,CAA+D;AAGzD,MAAMG,OAAO,GAAA1B,OAAA,CAAA0B,OAAA,GAAG7B,SAAMA,CAAC,CAAC;EAC7BI,IAAI,EAAE0B,CAAC,IAAIA,CAAC;EACZhB,KAAK;IAAA,IAAAiB,KAAA,GAAArC,iBAAA,CAAE,WAAMoC,CAAC;MAAA,OAAIA,CAAC;IAAA;IAAA,gBAAnBhB,KAAKA,CAAAkB,GAAA;MAAA,OAAAD,KAAA,CAAAnC,KAAA,OAAAD,SAAA;IAAA;EAAA;AACP,CAAC,CAAyC;AAEnC,SAASiB,UAAUA,CAAUqB,GAAQ,EAAyB;EACnE,OACE,CAAC,CAACA,GAAG,KACJ,OAAOA,GAAG,KAAK,QAAQ,IAAI,OAAOA,GAAG,KAAK,UAAU,CAAC,IACtD,CAAC,CAACA,GAAG,CAACxC,IAAI,IACV,OAAOwC,GAAG,CAACxC,IAAI,KAAK,UAAU;AAElC;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_gensync","data","require","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","args","arguments","apply","err","undefined","runGenerator","gensync","item","isAsync","exports","sync","errback","cb","maybeAsync","message","result","isThenable","Error","async","withKind","_ref","_x","forwardAsync","action","g","kind","adapted","onFirstPause","name","arity","firstPause","completed","waitFor","x","_ref2","_x2","val"],"sources":["../../src/gensync-utils/async.ts"],"sourcesContent":["import gensync, { type Gensync, type Handler, type Callback } from \"gensync\";\n\ntype MaybePromise = T | Promise;\n\nconst runGenerator: {\n sync(gen: Handler): Return;\n async(gen: Handler): Promise;\n errback(gen: Handler, cb: Callback): void;\n} = gensync(function* (item: Handler): Handler {\n return yield* item;\n});\n\n// This Gensync returns true if the current execution context is\n// asynchronous, otherwise it returns false.\nexport const isAsync = gensync({\n sync: () => false,\n errback: cb => cb(null, true),\n});\n\n// This function wraps any functions (which could be either synchronous or\n// asynchronous) with a Gensync. If the wrapped function returns a promise\n// but the current execution context is synchronous, it will throw the\n// provided error.\n// This is used to handle user-provided functions which could be asynchronous.\nexport function maybeAsync(\n fn: (...args: Args) => Return,\n message: string,\n): Gensync {\n return gensync({\n sync(...args) {\n const result = fn.apply(this, args);\n if (isThenable(result)) throw new Error(message);\n return result;\n },\n async(...args) {\n return Promise.resolve(fn.apply(this, args));\n },\n });\n}\n\nconst withKind = gensync({\n sync: cb => cb(\"sync\"),\n async: async cb => cb(\"async\"),\n}) as (cb: (kind: \"sync\" | \"async\") => MaybePromise) => Handler;\n\n// This function wraps a generator (or a Gensync) into another function which,\n// when called, will run the provided generator in a sync or async way, depending\n// on the execution context where this forwardAsync function is called.\n// This is useful, for example, when passing a callback to a function which isn't\n// aware of gensync, but it only knows about synchronous and asynchronous functions.\n// An example is cache.using, which being exposed to the user must be as simple as\n// possible:\n// yield* forwardAsync(gensyncFn, wrappedFn =>\n// cache.using(x => {\n// // Here we don't know about gensync. wrappedFn is a\n// // normal sync or async function\n// return wrappedFn(x);\n// })\n// )\nexport function forwardAsync(\n action: (...args: Args) => Handler,\n cb: (\n adapted: (...args: Args) => MaybePromise,\n ) => MaybePromise,\n): Handler {\n const g = gensync(action);\n return withKind(kind => {\n const adapted = g[kind];\n return cb(adapted);\n });\n}\n\n// If the given generator is executed asynchronously, the first time that it\n// is paused (i.e. When it yields a gensync generator which can't be run\n// synchronously), call the \"firstPause\" callback.\nexport const onFirstPause = gensync<\n [gen: Handler, firstPause: () => void],\n unknown\n>({\n name: \"onFirstPause\",\n arity: 2,\n sync: function (item) {\n return runGenerator.sync(item);\n },\n errback: function (item, firstPause, cb) {\n let completed = false;\n\n runGenerator.errback(item, (err, value) => {\n completed = true;\n cb(err, value);\n });\n\n if (!completed) {\n firstPause();\n }\n },\n}) as (gen: Handler, firstPause: () => void) => Handler;\n\n// Wait for the given promise to be resolved\nexport const waitFor = gensync({\n sync: x => x,\n async: async x => x,\n}) as (p: T | Promise) => Handler;\n\nexport function isThenable(val: any): val is PromiseLike {\n return (\n !!val &&\n (typeof val === \"object\" || typeof val === \"function\") &&\n !!val.then &&\n typeof val.then === \"function\"\n );\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6E,SAAAE,mBAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,GAAA,EAAAC,GAAA,cAAAC,IAAA,GAAAP,GAAA,CAAAK,GAAA,EAAAC,GAAA,OAAAE,KAAA,GAAAD,IAAA,CAAAC,KAAA,WAAAC,KAAA,IAAAP,MAAA,CAAAO,KAAA,iBAAAF,IAAA,CAAAG,IAAA,IAAAT,OAAA,CAAAO,KAAA,YAAAG,OAAA,CAAAV,OAAA,CAAAO,KAAA,EAAAI,IAAA,CAAAT,KAAA,EAAAC,MAAA;AAAA,SAAAS,kBAAAC,EAAA,6BAAAC,IAAA,SAAAC,IAAA,GAAAC,SAAA,aAAAN,OAAA,WAAAV,OAAA,EAAAC,MAAA,QAAAF,GAAA,GAAAc,EAAA,CAAAI,KAAA,CAAAH,IAAA,EAAAC,IAAA,YAAAb,MAAAK,KAAA,IAAAT,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,UAAAI,KAAA,cAAAJ,OAAAe,GAAA,IAAApB,kBAAA,CAAAC,GAAA,EAAAC,OAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,MAAA,WAAAe,GAAA,KAAAhB,KAAA,CAAAiB,SAAA;AAI7E,MAAMC,YAIL,GAAGC,SAAMA,CAAC,CAAC,WAAWC,IAAkB,EAAgB;EACvD,OAAO,OAAOA,IAAI;AACpB,CAAC,CAAC;AAIK,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAGF,SAAMA,CAAC,CAAC;EAC7BI,IAAI,EAAEA,CAAA,KAAM,KAAK;EACjBC,OAAO,EAAEC,EAAE,IAAIA,EAAE,CAAC,IAAI,EAAE,IAAI;AAC9B,CAAC,CAAC;AAOK,SAASC,UAAUA,CACxBf,EAA6B,EAC7BgB,OAAe,EACQ;EACvB,OAAOR,SAAMA,CAAC,CAAC;IACbI,IAAIA,CAAC,GAAGV,IAAI,EAAE;MACZ,MAAMe,MAAM,GAAGjB,EAAE,CAACI,KAAK,CAAC,IAAI,EAAEF,IAAI,CAAC;MACnC,IAAIgB,UAAU,CAACD,MAAM,CAAC,EAAE,MAAM,IAAIE,KAAK,CAACH,OAAO,CAAC;MAChD,OAAOC,MAAM;IACf,CAAC;IACDG,KAAKA,CAAC,GAAGlB,IAAI,EAAE;MACb,OAAOL,OAAO,CAACV,OAAO,CAACa,EAAE,CAACI,KAAK,CAAC,IAAI,EAAEF,IAAI,CAAC,CAAC;IAC9C;EACF,CAAC,CAAC;AACJ;AAEA,MAAMmB,QAAQ,GAAGb,SAAMA,CAAC,CAAC;EACvBI,IAAI,EAAEE,EAAE,IAAIA,EAAE,CAAC,MAAM,CAAC;EACtBM,KAAK;IAAA,IAAAE,IAAA,GAAAvB,iBAAA,CAAE,WAAMe,EAAE;MAAA,OAAIA,EAAE,CAAC,OAAO,CAAC;IAAA;IAAA,gBAAAM,MAAAG,EAAA;MAAA,OAAAD,IAAA,CAAAlB,KAAA,OAAAD,SAAA;IAAA;EAAA;AAChC,CAAC,CAAuE;AAgBjE,SAASqB,YAAYA,CAC1BC,MAA0C,EAC1CX,EAEyB,EACR;EACjB,MAAMY,CAAC,GAAGlB,SAAMA,CAAC,CAACiB,MAAM,CAAC;EACzB,OAAOJ,QAAQ,CAACM,IAAI,IAAI;IACtB,MAAMC,OAAO,GAAGF,CAAC,CAACC,IAAI,CAAC;IACvB,OAAOb,EAAE,CAACc,OAAO,CAAC;EACpB,CAAC,CAAC;AACJ;AAKO,MAAMC,YAAY,GAAAlB,OAAA,CAAAkB,YAAA,GAAGrB,SAAMA,CAAC,CAGjC;EACAsB,IAAI,EAAE,cAAc;EACpBC,KAAK,EAAE,CAAC;EACRnB,IAAI,EAAE,SAAAA,CAAUH,IAAI,EAAE;IACpB,OAAOF,YAAY,CAACK,IAAI,CAACH,IAAI,CAAC;EAChC,CAAC;EACDI,OAAO,EAAE,SAAAA,CAAUJ,IAAI,EAAEuB,UAAU,EAAElB,EAAE,EAAE;IACvC,IAAImB,SAAS,GAAG,KAAK;IAErB1B,YAAY,CAACM,OAAO,CAACJ,IAAI,EAAE,CAACJ,GAAG,EAAEX,KAAK,KAAK;MACzCuC,SAAS,GAAG,IAAI;MAChBnB,EAAE,CAACT,GAAG,EAAEX,KAAK,CAAC;IAChB,CAAC,CAAC;IAEF,IAAI,CAACuC,SAAS,EAAE;MACdD,UAAU,CAAC,CAAC;IACd;EACF;AACF,CAAC,CAA+D;AAGzD,MAAME,OAAO,GAAAvB,OAAA,CAAAuB,OAAA,GAAG1B,SAAMA,CAAC,CAAC;EAC7BI,IAAI,EAAEuB,CAAC,IAAIA,CAAC;EACZf,KAAK;IAAA,IAAAgB,KAAA,GAAArC,iBAAA,CAAE,WAAMoC,CAAC;MAAA,OAAIA,CAAC;IAAA;IAAA,gBAAAf,MAAAiB,GAAA;MAAA,OAAAD,KAAA,CAAAhC,KAAA,OAAAD,SAAA;IAAA;EAAA;AACrB,CAAC,CAAyC;AAEnC,SAASe,UAAUA,CAAUoB,GAAQ,EAAyB;EACnE,OACE,CAAC,CAACA,GAAG,KACJ,OAAOA,GAAG,KAAK,QAAQ,IAAI,OAAOA,GAAG,KAAK,UAAU,CAAC,IACtD,CAAC,CAACA,GAAG,CAACxC,IAAI,IACV,OAAOwC,GAAG,CAACxC,IAAI,KAAK,UAAU;AAElC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/gensync-utils/fs.js.map b/node_modules/@babel/core/lib/gensync-utils/fs.js.map index ef4e8d954..a1fd53ae1 100644 --- a/node_modules/@babel/core/lib/gensync-utils/fs.js.map +++ b/node_modules/@babel/core/lib/gensync-utils/fs.js.map @@ -1 +1 @@ -{"version":3,"names":["_fs","data","require","_gensync","readFile","exports","gensync","sync","fs","readFileSync","errback","stat","statSync"],"sources":["../../src/gensync-utils/fs.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport gensync from \"gensync\";\n\nexport const readFile = gensync<[filepath: string, encoding: \"utf8\"], string>({\n sync: fs.readFileSync,\n errback: fs.readFile,\n});\n\nexport const stat = gensync({\n sync: fs.statSync,\n errback: fs.stat,\n});\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,SAAMA,CAAC,CAA+C;EAC5EC,IAAI,EAAEC,IAACA,CAAC,CAACC,YAAY;EACrBC,OAAO,EAAEF,IAACA,CAAC,CAACJ;AACd,CAAC,CAAC;AAEK,MAAMO,IAAI,GAAAN,OAAA,CAAAM,IAAA,GAAGL,SAAMA,CAAC,CAAC;EAC1BC,IAAI,EAAEC,IAACA,CAAC,CAACI,QAAQ;EACjBF,OAAO,EAAEF,IAACA,CAAC,CAACG;AACd,CAAC,CAAC;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_fs","data","require","_gensync","readFile","exports","gensync","sync","fs","readFileSync","errback","stat","statSync"],"sources":["../../src/gensync-utils/fs.ts"],"sourcesContent":["import fs from \"fs\";\nimport gensync from \"gensync\";\n\nexport const readFile = gensync<[filepath: string, encoding: \"utf8\"], string>({\n sync: fs.readFileSync,\n errback: fs.readFile,\n});\n\nexport const stat = gensync({\n sync: fs.statSync,\n errback: fs.stat,\n});\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAGE,SAAMA,CAAC,CAA+C;EAC5EC,IAAI,EAAEC,IAACA,CAAC,CAACC,YAAY;EACrBC,OAAO,EAAEF,IAACA,CAAC,CAACJ;AACd,CAAC,CAAC;AAEK,MAAMO,IAAI,GAAAN,OAAA,CAAAM,IAAA,GAAGL,SAAMA,CAAC,CAAC;EAC1BC,IAAI,EAAEC,IAACA,CAAC,CAACI,QAAQ;EACjBF,OAAO,EAAEF,IAACA,CAAC,CAACG;AACd,CAAC,CAAC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/index.js b/node_modules/@babel/core/lib/index.js index d4430504b..26f24c63d 100644 --- a/node_modules/@babel/core/lib/index.js +++ b/node_modules/@babel/core/lib/index.js @@ -94,7 +94,18 @@ Object.defineProperty(exports, "parseSync", { return _parse.parseSync; } }); -exports.resolvePreset = exports.resolvePlugin = void 0; +Object.defineProperty(exports, "resolvePlugin", { + enumerable: true, + get: function () { + return _index.resolvePlugin; + } +}); +Object.defineProperty(exports, "resolvePreset", { + enumerable: true, + get: function () { + return _index.resolvePreset; + } +}); Object.defineProperty((0, exports), "template", { enumerable: true, get: function () { @@ -170,7 +181,7 @@ Object.defineProperty((0, exports), "traverse", { exports.version = exports.types = void 0; var _file = require("./transformation/file/file.js"); var _buildExternalHelpers = require("./tools/build-external-helpers.js"); -var resolvers = require("./config/files/index.js"); +var _index = require("./config/files/index.js"); var _environment = require("./config/helpers/environment.js"); function _types() { const data = require("@babel/types"); @@ -211,13 +222,11 @@ var _transform = require("./transform.js"); var _transformFile = require("./transform-file.js"); var _transformAst = require("./transform-ast.js"); var _parse = require("./parse.js"); +var thisFile = require("./index.js"); ; -const version = exports.version = "7.28.0"; -const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath; -exports.resolvePlugin = resolvePlugin; -const resolvePreset = (name, dirname) => resolvers.resolvePreset(name, dirname, false).filepath; -exports.resolvePreset = resolvePreset; +const version = exports.version = "7.25.2"; const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); +; { exports.OptionManager = class OptionManager { init(opts) { diff --git a/node_modules/@babel/core/lib/index.js.map b/node_modules/@babel/core/lib/index.js.map index 02637dc9a..6108b829c 100644 --- a/node_modules/@babel/core/lib/index.js.map +++ b/node_modules/@babel/core/lib/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_file","require","_buildExternalHelpers","resolvers","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","version","resolvePlugin","name","dirname","filepath","resolvePreset","DEFAULT_EXTENSIONS","freeze","OptionManager","init","opts","loadOptionsSync","Plugin","alias","Error","types","traverse","tokTypes","template"],"sources":["../src/index.ts"],"sourcesContent":["if (!process.env.IS_PUBLISH && !USE_ESM && process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"BABEL_8_BREAKING is only supported in ESM. Please run `make use-esm`.\",\n );\n}\n\nexport const version = PACKAGE_JSON.version;\n\nexport { default as File } from \"./transformation/file/file.ts\";\nexport type { default as PluginPass } from \"./transformation/plugin-pass.ts\";\nexport { default as buildExternalHelpers } from \"./tools/build-external-helpers.ts\";\n\nimport * as resolvers from \"./config/files/index.ts\";\n// For backwards-compatibility, we expose the resolvers\n// with the old API.\nexport const resolvePlugin = (name: string, dirname: string) =>\n resolvers.resolvePlugin(name, dirname, false).filepath;\nexport const resolvePreset = (name: string, dirname: string) =>\n resolvers.resolvePreset(name, dirname, false).filepath;\n\nexport { getEnv } from \"./config/helpers/environment.ts\";\n\n// NOTE: Lazy re-exports aren't detected by the Node.js CJS-ESM interop.\n// These are handled by pluginInjectNodeReexportsHints in our babel.config.js\n// so that they can work well.\nexport * as types from \"@babel/types\";\nexport { tokTypes } from \"@babel/parser\";\nexport { default as traverse } from \"@babel/traverse\";\nexport { default as template } from \"@babel/template\";\n\n// rollup-plugin-dts assumes that all re-exported types are also valid values\n// Visitor is only a type, so we need to use this workaround to prevent\n// rollup-plugin-dts from breaking it.\n// TODO: Figure out how to fix this upstream.\nexport type { NodePath, Scope } from \"@babel/traverse\";\nexport type Visitor = import(\"@babel/traverse\").Visitor;\n\nexport {\n createConfigItem,\n createConfigItemAsync,\n createConfigItemSync,\n} from \"./config/index.ts\";\n\nexport {\n loadOptions,\n loadOptionsAsync,\n loadPartialConfig,\n loadPartialConfigAsync,\n loadPartialConfigSync,\n} from \"./config/index.ts\";\nimport { loadOptionsSync } from \"./config/index.ts\";\nexport { loadOptionsSync };\n\nexport type {\n CallerMetadata,\n ConfigAPI,\n ConfigItem,\n InputOptions,\n PluginAPI,\n PluginObject,\n PresetAPI,\n PresetObject,\n} from \"./config/index.ts\";\n\nexport {\n type FileResult,\n transform,\n transformAsync,\n transformSync,\n} from \"./transform.ts\";\nexport {\n transformFile,\n transformFileAsync,\n transformFileSync,\n} from \"./transform-file.ts\";\nexport {\n transformFromAst,\n transformFromAstAsync,\n transformFromAstSync,\n} from \"./transform-ast.ts\";\nexport { parse, parseAsync, parseSync } from \"./parse.ts\";\n\n/**\n * Recommended set of compilable extensions. Not used in @babel/core directly, but meant as\n * as an easy source for tooling making use of @babel/core.\n */\nexport const DEFAULT_EXTENSIONS = Object.freeze([\n \".js\",\n \".jsx\",\n \".es6\",\n \".es\",\n \".mjs\",\n \".cjs\",\n] as const);\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // For easier backward-compatibility, provide an API like the one we exposed in Babel 6.\n // eslint-disable-next-line no-restricted-globals\n exports.OptionManager = class OptionManager {\n init(opts: any) {\n return loadOptionsSync(opts);\n }\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.Plugin = function Plugin(alias: string) {\n throw new Error(\n `The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAQA,IAAAG,YAAA,GAAAH,OAAA;AAAyD,SAAAI,OAAA;EAAA,MAAAC,IAAA,GAAAL,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAAC,MAAA,CAAAC,cAAA,KAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,MAAA;EAAA;AAAA;AAMzD,SAAAO,QAAA;EAAA,MAAAN,IAAA,GAAAL,OAAA;EAAAW,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAL,OAAA;EAAAY,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAL,OAAA;EAAAa,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,IAAAS,OAAA,GAAAd,OAAA;AA2BA,IAAAe,UAAA,GAAAf,OAAA;AAMA,IAAAgB,cAAA,GAAAhB,OAAA;AAKA,IAAAiB,aAAA,GAAAjB,OAAA;AAKA,IAAAkB,MAAA,GAAAlB,OAAA;AAA0D;AA1EnD,MAAMmB,OAAO,GAAAX,OAAA,CAAAW,OAAA,WAAuB;AASpC,MAAMC,aAAa,GAAGA,CAACC,IAAY,EAAEC,OAAe,KACzDpB,SAAS,CAACkB,aAAa,CAACC,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAACf,OAAA,CAAAY,aAAA,GAAAA,aAAA;AAClD,MAAMI,aAAa,GAAGA,CAACH,IAAY,EAAEC,OAAe,KACzDpB,SAAS,CAACsB,aAAa,CAACH,IAAI,EAAEC,OAAO,EAAE,KAAK,CAAC,CAACC,QAAQ;AAACf,OAAA,CAAAgB,aAAA,GAAAA,aAAA;AAoElD,MAAMC,kBAAkB,GAAAjB,OAAA,CAAAiB,kBAAA,GAAGnB,MAAM,CAACoB,MAAM,CAAC,CAC9C,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAEoC;EAG7ClB,OAAO,CAACmB,aAAa,GAAG,MAAMA,aAAa,CAAC;IAC1CC,IAAIA,CAACC,IAAS,EAAE;MACd,OAAO,IAAAC,uBAAe,EAACD,IAAI,CAAC;IAC9B;EACF,CAAC;EAGDrB,OAAO,CAACuB,MAAM,GAAG,SAASA,MAAMA,CAACC,KAAa,EAAE;IAC9C,MAAM,IAAIC,KAAK,CACb,QAAQD,KAAK,kEACf,CAAC;EACH,CAAC;AACH;AAAC,MAAAxB,OAAA,CAAA0B,KAAA,GAAA1B,OAAA,CAAA2B,QAAA,GAAA3B,OAAA,CAAA4B,QAAA,GAAA5B,OAAA,CAAA6B,QAAA","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_file","require","_buildExternalHelpers","_index","_environment","_types","data","Object","defineProperty","exports","enumerable","get","_parser","_traverse","_template","_index2","_transform","_transformFile","_transformAst","_parse","thisFile","version","DEFAULT_EXTENSIONS","freeze","OptionManager","init","opts","loadOptionsSync","Plugin","alias","Error","types","traverse","tokTypes","template"],"sources":["../src/index.ts"],"sourcesContent":["if (!process.env.IS_PUBLISH && !USE_ESM && process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"BABEL_8_BREAKING is only supported in ESM. Please run `make use-esm`.\",\n );\n}\n\nexport const version = PACKAGE_JSON.version;\n\nexport { default as File } from \"./transformation/file/file.ts\";\nexport type { default as PluginPass } from \"./transformation/plugin-pass.ts\";\nexport { default as buildExternalHelpers } from \"./tools/build-external-helpers.ts\";\nexport { resolvePlugin, resolvePreset } from \"./config/files/index.ts\";\n\nexport { getEnv } from \"./config/helpers/environment.ts\";\n\n// NOTE: Lazy re-exports aren't detected by the Node.js CJS-ESM interop.\n// These are handled by pluginInjectNodeReexportsHints in our babel.config.js\n// so that they can work well.\nexport * as types from \"@babel/types\";\nexport { tokTypes } from \"@babel/parser\";\nexport { default as traverse } from \"@babel/traverse\";\nexport { default as template } from \"@babel/template\";\n\n// rollup-plugin-dts assumes that all re-exported types are also valid values\n// Visitor is only a type, so we need to use this workaround to prevent\n// rollup-plugin-dts from breaking it.\n// TODO: Figure out how to fix this upstream.\nexport type { NodePath, Scope } from \"@babel/traverse\";\nexport type Visitor = import(\"@babel/traverse\").Visitor;\n\nexport {\n createConfigItem,\n createConfigItemSync,\n createConfigItemAsync,\n} from \"./config/index.ts\";\n\nexport {\n loadPartialConfig,\n loadPartialConfigSync,\n loadPartialConfigAsync,\n loadOptions,\n loadOptionsAsync,\n} from \"./config/index.ts\";\nimport { loadOptionsSync } from \"./config/index.ts\";\nexport { loadOptionsSync };\n\nexport type {\n CallerMetadata,\n InputOptions,\n PluginAPI,\n PluginObject,\n PresetAPI,\n PresetObject,\n ConfigItem,\n} from \"./config/index.ts\";\n\nexport {\n transform,\n transformSync,\n transformAsync,\n type FileResult,\n} from \"./transform.ts\";\nexport {\n transformFile,\n transformFileSync,\n transformFileAsync,\n} from \"./transform-file.ts\";\nexport {\n transformFromAst,\n transformFromAstSync,\n transformFromAstAsync,\n} from \"./transform-ast.ts\";\nexport { parse, parseSync, parseAsync } from \"./parse.ts\";\n\n/**\n * Recommended set of compilable extensions. Not used in @babel/core directly, but meant as\n * as an easy source for tooling making use of @babel/core.\n */\nexport const DEFAULT_EXTENSIONS = Object.freeze([\n \".js\",\n \".jsx\",\n \".es6\",\n \".es\",\n \".mjs\",\n \".cjs\",\n] as const);\n\nimport Module from \"module\";\nimport * as thisFile from \"./index.ts\";\nif (USE_ESM && !IS_STANDALONE) {\n // Pass this module to the CJS proxy, so that it can be synchronously accessed.\n const cjsProxy = Module.createRequire(import.meta.url)(\"../cjs-proxy.cjs\");\n cjsProxy[\"__ initialize @babel/core cjs proxy __\"] = thisFile;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n // For easier backward-compatibility, provide an API like the one we exposed in Babel 6.\n // eslint-disable-next-line no-restricted-globals\n exports.OptionManager = class OptionManager {\n init(opts: unknown) {\n return loadOptionsSync(opts);\n }\n };\n\n // eslint-disable-next-line no-restricted-globals\n exports.Plugin = function Plugin(alias: string) {\n throw new Error(\n `The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`,\n );\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAAG,YAAA,GAAAH,OAAA;AAAyD,SAAAI,OAAA;EAAA,MAAAC,IAAA,GAAAL,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAAC,MAAA,CAAAC,cAAA,KAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,MAAA;EAAA;AAAA;AAMzD,SAAAO,QAAA;EAAA,MAAAN,IAAA,GAAAL,OAAA;EAAAW,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAL,OAAA;EAAAY,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAL,OAAA;EAAAa,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,IAAAS,OAAA,GAAAd,OAAA;AA0BA,IAAAe,UAAA,GAAAf,OAAA;AAMA,IAAAgB,cAAA,GAAAhB,OAAA;AAKA,IAAAiB,aAAA,GAAAjB,OAAA;AAKA,IAAAkB,MAAA,GAAAlB,OAAA;AAgBA,IAAAmB,QAAA,GAAAnB,OAAA;AAAuC;AAlFhC,MAAMoB,OAAO,GAAAZ,OAAA,CAAAY,OAAA,WAAuB;AAwEpC,MAAMC,kBAAkB,GAAAb,OAAA,CAAAa,kBAAA,GAAGf,MAAM,CAACgB,MAAM,CAAC,CAC9C,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,CACE,CAAC;AAAC;AAUmC;EAG7Cd,OAAO,CAACe,aAAa,GAAG,MAAMA,aAAa,CAAC;IAC1CC,IAAIA,CAACC,IAAa,EAAE;MAClB,OAAO,IAAAC,uBAAe,EAACD,IAAI,CAAC;IAC9B;EACF,CAAC;EAGDjB,OAAO,CAACmB,MAAM,GAAG,SAASA,MAAMA,CAACC,KAAa,EAAE;IAC9C,MAAM,IAAIC,KAAK,CACb,QAAQD,KAAK,kEACf,CAAC;EACH,CAAC;AACH;AAAC,MAAApB,OAAA,CAAAsB,KAAA,GAAAtB,OAAA,CAAAuB,QAAA,GAAAvB,OAAA,CAAAwB,QAAA,GAAAxB,OAAA,CAAAyB,QAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/parser/index.js.map b/node_modules/@babel/core/lib/parser/index.js.map index 4dcd1cf34..1ac2c97e2 100644 --- a/node_modules/@babel/core/lib/parser/index.js.map +++ b/node_modules/@babel/core/lib/parser/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type ParseResult } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport generateMissingPluginMessage from \"./util/missing-plugin-helper.ts\";\nimport type { PluginPasses } from \"../config/index.ts\";\n\nexport type { ParseResult };\n\nexport default function* parser(\n pluginPasses: PluginPasses,\n { parserOpts, highlightCode = true, filename = \"unknown\" }: any,\n code: string,\n): Handler {\n try {\n const results = [];\n for (const plugins of pluginPasses) {\n for (const plugin of plugins) {\n const { parserOverride } = plugin;\n if (parserOverride) {\n const ast = parserOverride(code, parserOpts, parse);\n\n if (ast !== undefined) results.push(ast);\n }\n }\n }\n\n if (results.length === 0) {\n return parse(code, parserOpts);\n } else if (results.length === 1) {\n // If we want to allow async parsers\n yield* [];\n if (typeof (results[0] as any).then === \"function\") {\n throw new Error(\n `You appear to be using an async parser plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n return results[0];\n }\n // TODO: Add an error code\n throw new Error(\"More than one plugin attempted to override parsing.\");\n } catch (err) {\n if (err.code === \"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED\") {\n err.message +=\n \"\\nConsider renaming the file to '.mjs', or setting sourceType:module \" +\n \"or sourceType:unambiguous in your Babel config for this file.\";\n // err.code will be changed to BABEL_PARSE_ERROR later.\n }\n\n const { loc, missingPlugin } = err;\n if (loc) {\n const codeFrame = codeFrameColumns(\n code,\n {\n start: {\n line: loc.line,\n column: loc.column + 1,\n },\n },\n {\n highlightCode,\n },\n );\n if (missingPlugin) {\n err.message =\n `${filename}: ` +\n generateMissingPluginMessage(\n missingPlugin[0],\n loc,\n codeFrame,\n filename,\n );\n } else {\n err.message = `${filename}: ${err.message}\\n\\n` + codeFrame;\n }\n err.code = \"BABEL_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAG,oBAAA,GAAAF,OAAA;AAKe,UAAUG,MAAMA,CAC7BC,YAA0B,EAC1B;EAAEC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAEC,QAAQ,GAAG;AAAe,CAAC,EAC/DC,IAAY,EACU;EACtB,IAAI;IACF,MAAMC,OAAO,GAAG,EAAE;IAClB,KAAK,MAAMC,OAAO,IAAIN,YAAY,EAAE;MAClC,KAAK,MAAMO,MAAM,IAAID,OAAO,EAAE;QAC5B,MAAM;UAAEE;QAAe,CAAC,GAAGD,MAAM;QACjC,IAAIC,cAAc,EAAE;UAClB,MAAMC,GAAG,GAAGD,cAAc,CAACJ,IAAI,EAAEH,UAAU,EAAES,eAAK,CAAC;UAEnD,IAAID,GAAG,KAAKE,SAAS,EAAEN,OAAO,CAACO,IAAI,CAACH,GAAG,CAAC;QAC1C;MACF;IACF;IAEA,IAAIJ,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MACxB,OAAO,IAAAH,eAAK,EAACN,IAAI,EAAEH,UAAU,CAAC;IAChC,CAAC,MAAM,IAAII,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MAE/B,OAAO,EAAE;MACT,IAAI,OAAQR,OAAO,CAAC,CAAC,CAAC,CAASS,IAAI,KAAK,UAAU,EAAE;QAClD,MAAM,IAAIC,KAAK,CACb,iDAAiD,GAC/C,wDAAwD,GACxD,8DAA8D,GAC9D,2BACJ,CAAC;MACH;MACA,OAAOV,OAAO,CAAC,CAAC,CAAC;IACnB;IAEA,MAAM,IAAIU,KAAK,CAAC,qDAAqD,CAAC;EACxE,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZ,IAAIA,GAAG,CAACZ,IAAI,KAAK,yCAAyC,EAAE;MAC1DY,GAAG,CAACC,OAAO,IACT,uEAAuE,GACvE,+DAA+D;IAEnE;IAEA,MAAM;MAAEC,GAAG;MAAEC;IAAc,CAAC,GAAGH,GAAG;IAClC,IAAIE,GAAG,EAAE;MACP,MAAME,SAAS,GAAG,IAAAC,6BAAgB,EAChCjB,IAAI,EACJ;QACEkB,KAAK,EAAE;UACLC,IAAI,EAAEL,GAAG,CAACK,IAAI;UACdC,MAAM,EAAEN,GAAG,CAACM,MAAM,GAAG;QACvB;MACF,CAAC,EACD;QACEtB;MACF,CACF,CAAC;MACD,IAAIiB,aAAa,EAAE;QACjBH,GAAG,CAACC,OAAO,GACT,GAAGd,QAAQ,IAAI,GACf,IAAAsB,4BAA4B,EAC1BN,aAAa,CAAC,CAAC,CAAC,EAChBD,GAAG,EACHE,SAAS,EACTjB,QACF,CAAC;MACL,CAAC,MAAM;QACLa,GAAG,CAACC,OAAO,GAAG,GAAGd,QAAQ,KAAKa,GAAG,CAACC,OAAO,MAAM,GAAGG,SAAS;MAC7D;MACAJ,GAAG,CAACZ,IAAI,GAAG,mBAAmB;IAChC;IACA,MAAMY,GAAG;EACX;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_parser","data","require","_codeFrame","_missingPluginHelper","parser","pluginPasses","parserOpts","highlightCode","filename","code","results","plugins","plugin","parserOverride","ast","parse","undefined","push","length","then","Error","err","message","loc","missingPlugin","codeFrame","codeFrameColumns","start","line","column","generateMissingPluginMessage"],"sources":["../../src/parser/index.ts"],"sourcesContent":["import type { Handler } from \"gensync\";\nimport { parse, type File as ParseResult } from \"@babel/parser\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport generateMissingPluginMessage from \"./util/missing-plugin-helper.ts\";\nimport type { PluginPasses } from \"../config/index.ts\";\n\nexport type { ParseResult };\n\nexport default function* parser(\n pluginPasses: PluginPasses,\n { parserOpts, highlightCode = true, filename = \"unknown\" }: any,\n code: string,\n): Handler {\n try {\n const results = [];\n for (const plugins of pluginPasses) {\n for (const plugin of plugins) {\n const { parserOverride } = plugin;\n if (parserOverride) {\n const ast = parserOverride(code, parserOpts, parse);\n\n if (ast !== undefined) results.push(ast);\n }\n }\n }\n\n if (results.length === 0) {\n return parse(code, parserOpts);\n } else if (results.length === 1) {\n // @ts-expect-error - If we want to allow async parsers\n yield* [];\n if (typeof results[0].then === \"function\") {\n throw new Error(\n `You appear to be using an async parser plugin, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n return results[0];\n }\n // TODO: Add an error code\n throw new Error(\"More than one plugin attempted to override parsing.\");\n } catch (err) {\n if (err.code === \"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED\") {\n err.message +=\n \"\\nConsider renaming the file to '.mjs', or setting sourceType:module \" +\n \"or sourceType:unambiguous in your Babel config for this file.\";\n // err.code will be changed to BABEL_PARSE_ERROR later.\n }\n\n const { loc, missingPlugin } = err;\n if (loc) {\n const codeFrame = codeFrameColumns(\n code,\n {\n start: {\n line: loc.line,\n column: loc.column + 1,\n },\n },\n {\n highlightCode,\n },\n );\n if (missingPlugin) {\n err.message =\n `${filename}: ` +\n generateMissingPluginMessage(\n missingPlugin[0],\n loc,\n codeFrame,\n filename,\n );\n } else {\n err.message = `${filename}: ${err.message}\\n\\n` + codeFrame;\n }\n err.code = \"BABEL_PARSE_ERROR\";\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,IAAAG,oBAAA,GAAAF,OAAA;AAKe,UAAUG,MAAMA,CAC7BC,YAA0B,EAC1B;EAAEC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAEC,QAAQ,GAAG;AAAe,CAAC,EAC/DC,IAAY,EACU;EACtB,IAAI;IACF,MAAMC,OAAO,GAAG,EAAE;IAClB,KAAK,MAAMC,OAAO,IAAIN,YAAY,EAAE;MAClC,KAAK,MAAMO,MAAM,IAAID,OAAO,EAAE;QAC5B,MAAM;UAAEE;QAAe,CAAC,GAAGD,MAAM;QACjC,IAAIC,cAAc,EAAE;UAClB,MAAMC,GAAG,GAAGD,cAAc,CAACJ,IAAI,EAAEH,UAAU,EAAES,eAAK,CAAC;UAEnD,IAAID,GAAG,KAAKE,SAAS,EAAEN,OAAO,CAACO,IAAI,CAACH,GAAG,CAAC;QAC1C;MACF;IACF;IAEA,IAAIJ,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MACxB,OAAO,IAAAH,eAAK,EAACN,IAAI,EAAEH,UAAU,CAAC;IAChC,CAAC,MAAM,IAAII,OAAO,CAACQ,MAAM,KAAK,CAAC,EAAE;MAE/B,OAAO,EAAE;MACT,IAAI,OAAOR,OAAO,CAAC,CAAC,CAAC,CAACS,IAAI,KAAK,UAAU,EAAE;QACzC,MAAM,IAAIC,KAAK,CACb,iDAAiD,GAC/C,wDAAwD,GACxD,8DAA8D,GAC9D,2BACJ,CAAC;MACH;MACA,OAAOV,OAAO,CAAC,CAAC,CAAC;IACnB;IAEA,MAAM,IAAIU,KAAK,CAAC,qDAAqD,CAAC;EACxE,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZ,IAAIA,GAAG,CAACZ,IAAI,KAAK,yCAAyC,EAAE;MAC1DY,GAAG,CAACC,OAAO,IACT,uEAAuE,GACvE,+DAA+D;IAEnE;IAEA,MAAM;MAAEC,GAAG;MAAEC;IAAc,CAAC,GAAGH,GAAG;IAClC,IAAIE,GAAG,EAAE;MACP,MAAME,SAAS,GAAG,IAAAC,6BAAgB,EAChCjB,IAAI,EACJ;QACEkB,KAAK,EAAE;UACLC,IAAI,EAAEL,GAAG,CAACK,IAAI;UACdC,MAAM,EAAEN,GAAG,CAACM,MAAM,GAAG;QACvB;MACF,CAAC,EACD;QACEtB;MACF,CACF,CAAC;MACD,IAAIiB,aAAa,EAAE;QACjBH,GAAG,CAACC,OAAO,GACT,GAAGd,QAAQ,IAAI,GACf,IAAAsB,4BAA4B,EAC1BN,aAAa,CAAC,CAAC,CAAC,EAChBD,GAAG,EACHE,SAAS,EACTjB,QACF,CAAC;MACL,CAAC,MAAM;QACLa,GAAG,CAACC,OAAO,GAAG,GAAGd,QAAQ,KAAKa,GAAG,CAACC,OAAO,MAAM,GAAGG,SAAS;MAC7D;MACAJ,GAAG,CAACZ,IAAI,GAAG,mBAAmB;IAChC;IACA,MAAMY,GAAG;EACX;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js b/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js index 5e05a265f..166e9738b 100644 --- a/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +++ b/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js @@ -87,6 +87,12 @@ const pluginNameMap = { url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react" } }, + importAttributes: { + syntax: { + name: "@babel/plugin-syntax-import-attributes", + url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" + } + }, pipelineOperator: { syntax: { name: "@babel/plugin-syntax-pipeline-operator", @@ -198,12 +204,6 @@ const pluginNameMap = { url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions" } }, - importAttributes: { - syntax: { - name: "@babel/plugin-syntax-import-attributes", - url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes" - } - }, importMeta: { syntax: { name: "@babel/plugin-syntax-import-meta", diff --git a/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map b/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map index c6dfa8f94..6aebfa756 100644 --- a/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +++ b/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map @@ -1 +1 @@ -{"version":3,"names":["pluginNameMap","asyncDoExpressions","syntax","name","url","decimal","decorators","transform","doExpressions","exportDefaultFrom","flow","functionBind","functionSent","jsx","pipelineOperator","recordAndTuple","throwExpressions","typescript","Object","assign","asyncGenerators","classProperties","classPrivateProperties","classPrivateMethods","classStaticBlock","dynamicImport","exportNamespaceFrom","importAssertions","importAttributes","importMeta","logicalAssignment","moduleStringNames","numericSeparator","nullishCoalescingOperator","objectRestSpread","optionalCatchBinding","optionalChaining","privateIn","regexpUnicodeSets","getNameURLCombination","generateMissingPluginMessage","missingPluginName","loc","codeFrame","filename","helpMessage","line","column","pluginInfo","syntaxPlugin","transformPlugin","syntaxPluginInfo","transformPluginInfo","sectionType","startsWith","msgFilename"],"sources":["../../../src/parser/util/missing-plugin-helper.ts"],"sourcesContent":["const pluginNameMap: Record<\n string,\n Partial>>\n> = {\n asyncDoExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-async-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions\",\n },\n },\n decimal: {\n syntax: {\n name: \"@babel/plugin-syntax-decimal\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal\",\n },\n },\n decorators: {\n syntax: {\n name: \"@babel/plugin-syntax-decorators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators\",\n },\n transform: {\n name: \"@babel/plugin-proposal-decorators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators\",\n },\n },\n doExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions\",\n },\n transform: {\n name: \"@babel/plugin-proposal-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions\",\n },\n },\n exportDefaultFrom: {\n syntax: {\n name: \"@babel/plugin-syntax-export-default-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from\",\n },\n transform: {\n name: \"@babel/plugin-proposal-export-default-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from\",\n },\n },\n flow: {\n syntax: {\n name: \"@babel/plugin-syntax-flow\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow\",\n },\n transform: {\n name: \"@babel/preset-flow\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-flow\",\n },\n },\n functionBind: {\n syntax: {\n name: \"@babel/plugin-syntax-function-bind\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind\",\n },\n transform: {\n name: \"@babel/plugin-proposal-function-bind\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind\",\n },\n },\n functionSent: {\n syntax: {\n name: \"@babel/plugin-syntax-function-sent\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent\",\n },\n transform: {\n name: \"@babel/plugin-proposal-function-sent\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent\",\n },\n },\n jsx: {\n syntax: {\n name: \"@babel/plugin-syntax-jsx\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx\",\n },\n transform: {\n name: \"@babel/preset-react\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-react\",\n },\n },\n pipelineOperator: {\n syntax: {\n name: \"@babel/plugin-syntax-pipeline-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator\",\n },\n transform: {\n name: \"@babel/plugin-proposal-pipeline-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator\",\n },\n },\n recordAndTuple: {\n syntax: {\n name: \"@babel/plugin-syntax-record-and-tuple\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple\",\n },\n },\n throwExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-throw-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions\",\n },\n transform: {\n name: \"@babel/plugin-proposal-throw-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions\",\n },\n },\n typescript: {\n syntax: {\n name: \"@babel/plugin-syntax-typescript\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript\",\n },\n transform: {\n name: \"@babel/preset-typescript\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript\",\n },\n },\n};\n\nif (!process.env.BABEL_8_BREAKING) {\n // TODO: This plugins are now supported by default by @babel/parser.\n Object.assign(pluginNameMap, {\n asyncGenerators: {\n syntax: {\n name: \"@babel/plugin-syntax-async-generators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators\",\n },\n transform: {\n name: \"@babel/plugin-transform-async-generator-functions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions\",\n },\n },\n classProperties: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties\",\n },\n },\n classPrivateProperties: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties\",\n },\n },\n classPrivateMethods: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-private-methods\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods\",\n },\n },\n classStaticBlock: {\n syntax: {\n name: \"@babel/plugin-syntax-class-static-block\",\n url: \"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-static-block\",\n url: \"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block\",\n },\n },\n dynamicImport: {\n syntax: {\n name: \"@babel/plugin-syntax-dynamic-import\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import\",\n },\n },\n exportNamespaceFrom: {\n syntax: {\n name: \"@babel/plugin-syntax-export-namespace-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from\",\n },\n transform: {\n name: \"@babel/plugin-transform-export-namespace-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from\",\n },\n },\n // Will be removed\n importAssertions: {\n syntax: {\n name: \"@babel/plugin-syntax-import-assertions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions\",\n },\n },\n importAttributes: {\n syntax: {\n name: \"@babel/plugin-syntax-import-attributes\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes\",\n },\n },\n importMeta: {\n syntax: {\n name: \"@babel/plugin-syntax-import-meta\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta\",\n },\n },\n logicalAssignment: {\n syntax: {\n name: \"@babel/plugin-syntax-logical-assignment-operators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators\",\n },\n transform: {\n name: \"@babel/plugin-transform-logical-assignment-operators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators\",\n },\n },\n moduleStringNames: {\n syntax: {\n name: \"@babel/plugin-syntax-module-string-names\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names\",\n },\n },\n numericSeparator: {\n syntax: {\n name: \"@babel/plugin-syntax-numeric-separator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator\",\n },\n transform: {\n name: \"@babel/plugin-transform-numeric-separator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator\",\n },\n },\n nullishCoalescingOperator: {\n syntax: {\n name: \"@babel/plugin-syntax-nullish-coalescing-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator\",\n },\n transform: {\n name: \"@babel/plugin-transform-nullish-coalescing-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator\",\n },\n },\n objectRestSpread: {\n syntax: {\n name: \"@babel/plugin-syntax-object-rest-spread\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread\",\n },\n transform: {\n name: \"@babel/plugin-transform-object-rest-spread\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread\",\n },\n },\n optionalCatchBinding: {\n syntax: {\n name: \"@babel/plugin-syntax-optional-catch-binding\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding\",\n },\n transform: {\n name: \"@babel/plugin-transform-optional-catch-binding\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding\",\n },\n },\n optionalChaining: {\n syntax: {\n name: \"@babel/plugin-syntax-optional-chaining\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining\",\n },\n transform: {\n name: \"@babel/plugin-transform-optional-chaining\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining\",\n },\n },\n privateIn: {\n syntax: {\n name: \"@babel/plugin-syntax-private-property-in-object\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object\",\n },\n transform: {\n name: \"@babel/plugin-transform-private-property-in-object\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object\",\n },\n },\n regexpUnicodeSets: {\n syntax: {\n name: \"@babel/plugin-syntax-unicode-sets-regex\",\n url: \"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md\",\n },\n transform: {\n name: \"@babel/plugin-transform-unicode-sets-regex\",\n url: \"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md\",\n },\n },\n });\n}\n\nconst getNameURLCombination = ({ name, url }: { name: string; url: string }) =>\n `${name} (${url})`;\n\n/*\nReturns a string of the format:\nSupport for the experimental syntax [@babel/parser plugin name] isn't currently enabled ([loc]):\n\n[code frame]\n\nAdd [npm package name] ([url]) to the 'plugins' section of your Babel config\nto enable [parsing|transformation].\n*/\nexport default function generateMissingPluginMessage(\n missingPluginName: string,\n loc: {\n line: number;\n column: number;\n },\n codeFrame: string,\n filename: string,\n): string {\n let helpMessage =\n `Support for the experimental syntax '${missingPluginName}' isn't currently enabled ` +\n `(${loc.line}:${loc.column + 1}):\\n\\n` +\n codeFrame;\n const pluginInfo = pluginNameMap[missingPluginName];\n if (pluginInfo) {\n const { syntax: syntaxPlugin, transform: transformPlugin } = pluginInfo;\n if (syntaxPlugin) {\n const syntaxPluginInfo = getNameURLCombination(syntaxPlugin);\n if (transformPlugin) {\n const transformPluginInfo = getNameURLCombination(transformPlugin);\n const sectionType = transformPlugin.name.startsWith(\"@babel/plugin\")\n ? \"plugins\"\n : \"presets\";\n helpMessage += `\\n\\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`;\n } else {\n helpMessage +=\n `\\n\\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config ` +\n `to enable parsing.`;\n }\n }\n }\n\n const msgFilename =\n filename === \"unknown\" ? \"\" : filename;\n helpMessage += `\n\nIf you already added the plugin for this syntax to your config, it's possible that your config \\\nisn't being loaded.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded \\\nconfiguration:\n\\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${msgFilename} \nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.\n`;\n return helpMessage;\n}\n"],"mappings":";;;;;;AAAA,MAAMA,aAGL,GAAG;EACFC,kBAAkB,EAAE;IAClBC,MAAM,EAAE;MACNC,IAAI,EAAE,2CAA2C;MACjDC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,OAAO,EAAE;IACPH,MAAM,EAAE;MACNC,IAAI,EAAE,8BAA8B;MACpCC,GAAG,EAAE;IACP;EACF,CAAC;EACDE,UAAU,EAAE;IACVJ,MAAM,EAAE;MACNC,IAAI,EAAE,iCAAiC;MACvCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,mCAAmC;MACzCC,GAAG,EAAE;IACP;EACF,CAAC;EACDI,aAAa,EAAE;IACbN,MAAM,EAAE;MACNC,IAAI,EAAE,qCAAqC;MAC3CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,uCAAuC;MAC7CC,GAAG,EAAE;IACP;EACF,CAAC;EACDK,iBAAiB,EAAE;IACjBP,MAAM,EAAE;MACNC,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,4CAA4C;MAClDC,GAAG,EAAE;IACP;EACF,CAAC;EACDM,IAAI,EAAE;IACJR,MAAM,EAAE;MACNC,IAAI,EAAE,2BAA2B;MACjCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,oBAAoB;MAC1BC,GAAG,EAAE;IACP;EACF,CAAC;EACDO,YAAY,EAAE;IACZT,MAAM,EAAE;MACNC,IAAI,EAAE,oCAAoC;MAC1CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,sCAAsC;MAC5CC,GAAG,EAAE;IACP;EACF,CAAC;EACDQ,YAAY,EAAE;IACZV,MAAM,EAAE;MACNC,IAAI,EAAE,oCAAoC;MAC1CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,sCAAsC;MAC5CC,GAAG,EAAE;IACP;EACF,CAAC;EACDS,GAAG,EAAE;IACHX,MAAM,EAAE;MACNC,IAAI,EAAE,0BAA0B;MAChCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,qBAAqB;MAC3BC,GAAG,EAAE;IACP;EACF,CAAC;EACDU,gBAAgB,EAAE;IAChBZ,MAAM,EAAE;MACNC,IAAI,EAAE,wCAAwC;MAC9CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP;EACF,CAAC;EACDW,cAAc,EAAE;IACdb,MAAM,EAAE;MACNC,IAAI,EAAE,uCAAuC;MAC7CC,GAAG,EAAE;IACP;EACF,CAAC;EACDY,gBAAgB,EAAE;IAChBd,MAAM,EAAE;MACNC,IAAI,EAAE,wCAAwC;MAC9CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP;EACF,CAAC;EACDa,UAAU,EAAE;IACVf,MAAM,EAAE;MACNC,IAAI,EAAE,iCAAiC;MACvCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0BAA0B;MAChCC,GAAG,EAAE;IACP;EACF;AACF,CAAC;AAEkC;EAEjCc,MAAM,CAACC,MAAM,CAACnB,aAAa,EAAE;IAC3BoB,eAAe,EAAE;MACflB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,mDAAmD;QACzDC,GAAG,EAAE;MACP;IACF,CAAC;IACDiB,eAAe,EAAE;MACfnB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACDkB,sBAAsB,EAAE;MACtBpB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACDmB,mBAAmB,EAAE;MACnBrB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP;IACF,CAAC;IACDoB,gBAAgB,EAAE;MAChBtB,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF,CAAC;IACDqB,aAAa,EAAE;MACbvB,MAAM,EAAE;QACNC,IAAI,EAAE,qCAAqC;QAC3CC,GAAG,EAAE;MACP;IACF,CAAC;IACDsB,mBAAmB,EAAE;MACnBxB,MAAM,EAAE;QACNC,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,+CAA+C;QACrDC,GAAG,EAAE;MACP;IACF,CAAC;IAEDuB,gBAAgB,EAAE;MAChBzB,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP;IACF,CAAC;IACDwB,gBAAgB,EAAE;MAChB1B,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP;IACF,CAAC;IACDyB,UAAU,EAAE;MACV3B,MAAM,EAAE;QACNC,IAAI,EAAE,kCAAkC;QACxCC,GAAG,EAAE;MACP;IACF,CAAC;IACD0B,iBAAiB,EAAE;MACjB5B,MAAM,EAAE;QACNC,IAAI,EAAE,mDAAmD;QACzDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,sDAAsD;QAC5DC,GAAG,EAAE;MACP;IACF,CAAC;IACD2B,iBAAiB,EAAE;MACjB7B,MAAM,EAAE;QACNC,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACD4B,gBAAgB,EAAE;MAChB9B,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,2CAA2C;QACjDC,GAAG,EAAE;MACP;IACF,CAAC;IACD6B,yBAAyB,EAAE;MACzB/B,MAAM,EAAE;QACNC,IAAI,EAAE,kDAAkD;QACxDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,qDAAqD;QAC3DC,GAAG,EAAE;MACP;IACF,CAAC;IACD8B,gBAAgB,EAAE;MAChBhC,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF,CAAC;IACD+B,oBAAoB,EAAE;MACpBjC,MAAM,EAAE;QACNC,IAAI,EAAE,6CAA6C;QACnDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,gDAAgD;QACtDC,GAAG,EAAE;MACP;IACF,CAAC;IACDgC,gBAAgB,EAAE;MAChBlC,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,2CAA2C;QACjDC,GAAG,EAAE;MACP;IACF,CAAC;IACDiC,SAAS,EAAE;MACTnC,MAAM,EAAE;QACNC,IAAI,EAAE,iDAAiD;QACvDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,oDAAoD;QAC1DC,GAAG,EAAE;MACP;IACF,CAAC;IACDkC,iBAAiB,EAAE;MACjBpC,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF;EACF,CAAC,CAAC;AACJ;AAEA,MAAMmC,qBAAqB,GAAGA,CAAC;EAAEpC,IAAI;EAAEC;AAAmC,CAAC,KACzE,GAAGD,IAAI,KAAKC,GAAG,GAAG;AAWL,SAASoC,4BAA4BA,CAClDC,iBAAyB,EACzBC,GAGC,EACDC,SAAiB,EACjBC,QAAgB,EACR;EACR,IAAIC,WAAW,GACb,wCAAwCJ,iBAAiB,4BAA4B,GACrF,IAAIC,GAAG,CAACI,IAAI,IAAIJ,GAAG,CAACK,MAAM,GAAG,CAAC,QAAQ,GACtCJ,SAAS;EACX,MAAMK,UAAU,GAAGhD,aAAa,CAACyC,iBAAiB,CAAC;EACnD,IAAIO,UAAU,EAAE;IACd,MAAM;MAAE9C,MAAM,EAAE+C,YAAY;MAAE1C,SAAS,EAAE2C;IAAgB,CAAC,GAAGF,UAAU;IACvE,IAAIC,YAAY,EAAE;MAChB,MAAME,gBAAgB,GAAGZ,qBAAqB,CAACU,YAAY,CAAC;MAC5D,IAAIC,eAAe,EAAE;QACnB,MAAME,mBAAmB,GAAGb,qBAAqB,CAACW,eAAe,CAAC;QAClE,MAAMG,WAAW,GAAGH,eAAe,CAAC/C,IAAI,CAACmD,UAAU,CAAC,eAAe,CAAC,GAChE,SAAS,GACT,SAAS;QACbT,WAAW,IAAI,WAAWO,mBAAmB,YAAYC,WAAW;AAC5E,qCAAqCF,gBAAgB,8CAA8C;MAC7F,CAAC,MAAM;QACLN,WAAW,IACT,WAAWM,gBAAgB,iDAAiD,GAC5E,oBAAoB;MACxB;IACF;EACF;EAEA,MAAMI,WAAW,GACfX,QAAQ,KAAK,SAAS,GAAG,0BAA0B,GAAGA,QAAQ;EAChEC,WAAW,IAAI;AACjB;AACA;AACA;AACA;AACA;AACA,wCAAwCU,WAAW;AACnD;AACA,CAAC;EACC,OAAOV,WAAW;AACpB;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["pluginNameMap","asyncDoExpressions","syntax","name","url","decimal","decorators","transform","doExpressions","exportDefaultFrom","flow","functionBind","functionSent","jsx","importAttributes","pipelineOperator","recordAndTuple","throwExpressions","typescript","Object","assign","asyncGenerators","classProperties","classPrivateProperties","classPrivateMethods","classStaticBlock","dynamicImport","exportNamespaceFrom","importAssertions","importMeta","logicalAssignment","moduleStringNames","numericSeparator","nullishCoalescingOperator","objectRestSpread","optionalCatchBinding","optionalChaining","privateIn","regexpUnicodeSets","getNameURLCombination","generateMissingPluginMessage","missingPluginName","loc","codeFrame","filename","helpMessage","line","column","pluginInfo","syntaxPlugin","transformPlugin","syntaxPluginInfo","transformPluginInfo","sectionType","startsWith","msgFilename"],"sources":["../../../src/parser/util/missing-plugin-helper.ts"],"sourcesContent":["const pluginNameMap: Record<\n string,\n Partial>>\n> = {\n asyncDoExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-async-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions\",\n },\n },\n decimal: {\n syntax: {\n name: \"@babel/plugin-syntax-decimal\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal\",\n },\n },\n decorators: {\n syntax: {\n name: \"@babel/plugin-syntax-decorators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators\",\n },\n transform: {\n name: \"@babel/plugin-proposal-decorators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators\",\n },\n },\n doExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions\",\n },\n transform: {\n name: \"@babel/plugin-proposal-do-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions\",\n },\n },\n exportDefaultFrom: {\n syntax: {\n name: \"@babel/plugin-syntax-export-default-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from\",\n },\n transform: {\n name: \"@babel/plugin-proposal-export-default-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from\",\n },\n },\n flow: {\n syntax: {\n name: \"@babel/plugin-syntax-flow\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow\",\n },\n transform: {\n name: \"@babel/preset-flow\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-flow\",\n },\n },\n functionBind: {\n syntax: {\n name: \"@babel/plugin-syntax-function-bind\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind\",\n },\n transform: {\n name: \"@babel/plugin-proposal-function-bind\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind\",\n },\n },\n functionSent: {\n syntax: {\n name: \"@babel/plugin-syntax-function-sent\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent\",\n },\n transform: {\n name: \"@babel/plugin-proposal-function-sent\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent\",\n },\n },\n jsx: {\n syntax: {\n name: \"@babel/plugin-syntax-jsx\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx\",\n },\n transform: {\n name: \"@babel/preset-react\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-react\",\n },\n },\n importAttributes: {\n syntax: {\n name: \"@babel/plugin-syntax-import-attributes\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes\",\n },\n },\n pipelineOperator: {\n syntax: {\n name: \"@babel/plugin-syntax-pipeline-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator\",\n },\n transform: {\n name: \"@babel/plugin-proposal-pipeline-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator\",\n },\n },\n recordAndTuple: {\n syntax: {\n name: \"@babel/plugin-syntax-record-and-tuple\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple\",\n },\n },\n throwExpressions: {\n syntax: {\n name: \"@babel/plugin-syntax-throw-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions\",\n },\n transform: {\n name: \"@babel/plugin-proposal-throw-expressions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions\",\n },\n },\n typescript: {\n syntax: {\n name: \"@babel/plugin-syntax-typescript\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript\",\n },\n transform: {\n name: \"@babel/preset-typescript\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript\",\n },\n },\n};\n\nif (!process.env.BABEL_8_BREAKING) {\n // TODO: This plugins are now supported by default by @babel/parser.\n Object.assign(pluginNameMap, {\n asyncGenerators: {\n syntax: {\n name: \"@babel/plugin-syntax-async-generators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators\",\n },\n transform: {\n name: \"@babel/plugin-transform-async-generator-functions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions\",\n },\n },\n classProperties: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties\",\n },\n },\n classPrivateProperties: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties\",\n },\n },\n classPrivateMethods: {\n syntax: {\n name: \"@babel/plugin-syntax-class-properties\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties\",\n },\n transform: {\n name: \"@babel/plugin-transform-private-methods\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods\",\n },\n },\n classStaticBlock: {\n syntax: {\n name: \"@babel/plugin-syntax-class-static-block\",\n url: \"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block\",\n },\n transform: {\n name: \"@babel/plugin-transform-class-static-block\",\n url: \"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block\",\n },\n },\n dynamicImport: {\n syntax: {\n name: \"@babel/plugin-syntax-dynamic-import\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import\",\n },\n },\n exportNamespaceFrom: {\n syntax: {\n name: \"@babel/plugin-syntax-export-namespace-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from\",\n },\n transform: {\n name: \"@babel/plugin-transform-export-namespace-from\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from\",\n },\n },\n // Will be removed\n importAssertions: {\n syntax: {\n name: \"@babel/plugin-syntax-import-assertions\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions\",\n },\n },\n importMeta: {\n syntax: {\n name: \"@babel/plugin-syntax-import-meta\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta\",\n },\n },\n logicalAssignment: {\n syntax: {\n name: \"@babel/plugin-syntax-logical-assignment-operators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators\",\n },\n transform: {\n name: \"@babel/plugin-transform-logical-assignment-operators\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators\",\n },\n },\n moduleStringNames: {\n syntax: {\n name: \"@babel/plugin-syntax-module-string-names\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names\",\n },\n },\n numericSeparator: {\n syntax: {\n name: \"@babel/plugin-syntax-numeric-separator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator\",\n },\n transform: {\n name: \"@babel/plugin-transform-numeric-separator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator\",\n },\n },\n nullishCoalescingOperator: {\n syntax: {\n name: \"@babel/plugin-syntax-nullish-coalescing-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator\",\n },\n transform: {\n name: \"@babel/plugin-transform-nullish-coalescing-operator\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator\",\n },\n },\n objectRestSpread: {\n syntax: {\n name: \"@babel/plugin-syntax-object-rest-spread\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread\",\n },\n transform: {\n name: \"@babel/plugin-transform-object-rest-spread\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread\",\n },\n },\n optionalCatchBinding: {\n syntax: {\n name: \"@babel/plugin-syntax-optional-catch-binding\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding\",\n },\n transform: {\n name: \"@babel/plugin-transform-optional-catch-binding\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding\",\n },\n },\n optionalChaining: {\n syntax: {\n name: \"@babel/plugin-syntax-optional-chaining\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining\",\n },\n transform: {\n name: \"@babel/plugin-transform-optional-chaining\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining\",\n },\n },\n privateIn: {\n syntax: {\n name: \"@babel/plugin-syntax-private-property-in-object\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object\",\n },\n transform: {\n name: \"@babel/plugin-transform-private-property-in-object\",\n url: \"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object\",\n },\n },\n regexpUnicodeSets: {\n syntax: {\n name: \"@babel/plugin-syntax-unicode-sets-regex\",\n url: \"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md\",\n },\n transform: {\n name: \"@babel/plugin-transform-unicode-sets-regex\",\n url: \"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md\",\n },\n },\n });\n}\n\nconst getNameURLCombination = ({ name, url }: { name: string; url: string }) =>\n `${name} (${url})`;\n\n/*\nReturns a string of the format:\nSupport for the experimental syntax [@babel/parser plugin name] isn't currently enabled ([loc]):\n\n[code frame]\n\nAdd [npm package name] ([url]) to the 'plugins' section of your Babel config\nto enable [parsing|transformation].\n*/\nexport default function generateMissingPluginMessage(\n missingPluginName: string,\n loc: {\n line: number;\n column: number;\n },\n codeFrame: string,\n filename: string,\n): string {\n let helpMessage =\n `Support for the experimental syntax '${missingPluginName}' isn't currently enabled ` +\n `(${loc.line}:${loc.column + 1}):\\n\\n` +\n codeFrame;\n const pluginInfo = pluginNameMap[missingPluginName];\n if (pluginInfo) {\n const { syntax: syntaxPlugin, transform: transformPlugin } = pluginInfo;\n if (syntaxPlugin) {\n const syntaxPluginInfo = getNameURLCombination(syntaxPlugin);\n if (transformPlugin) {\n const transformPluginInfo = getNameURLCombination(transformPlugin);\n const sectionType = transformPlugin.name.startsWith(\"@babel/plugin\")\n ? \"plugins\"\n : \"presets\";\n helpMessage += `\\n\\nAdd ${transformPluginInfo} to the '${sectionType}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${syntaxPluginInfo} to the 'plugins' section to enable parsing.`;\n } else {\n helpMessage +=\n `\\n\\nAdd ${syntaxPluginInfo} to the 'plugins' section of your Babel config ` +\n `to enable parsing.`;\n }\n }\n }\n\n const msgFilename =\n filename === \"unknown\" ? \"\" : filename;\n helpMessage += `\n\nIf you already added the plugin for this syntax to your config, it's possible that your config \\\nisn't being loaded.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded \\\nconfiguration:\n\\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${msgFilename} \nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.\n`;\n return helpMessage;\n}\n"],"mappings":";;;;;;AAAA,MAAMA,aAGL,GAAG;EACFC,kBAAkB,EAAE;IAClBC,MAAM,EAAE;MACNC,IAAI,EAAE,2CAA2C;MACjDC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,OAAO,EAAE;IACPH,MAAM,EAAE;MACNC,IAAI,EAAE,8BAA8B;MACpCC,GAAG,EAAE;IACP;EACF,CAAC;EACDE,UAAU,EAAE;IACVJ,MAAM,EAAE;MACNC,IAAI,EAAE,iCAAiC;MACvCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,mCAAmC;MACzCC,GAAG,EAAE;IACP;EACF,CAAC;EACDI,aAAa,EAAE;IACbN,MAAM,EAAE;MACNC,IAAI,EAAE,qCAAqC;MAC3CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,uCAAuC;MAC7CC,GAAG,EAAE;IACP;EACF,CAAC;EACDK,iBAAiB,EAAE;IACjBP,MAAM,EAAE;MACNC,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,4CAA4C;MAClDC,GAAG,EAAE;IACP;EACF,CAAC;EACDM,IAAI,EAAE;IACJR,MAAM,EAAE;MACNC,IAAI,EAAE,2BAA2B;MACjCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,oBAAoB;MAC1BC,GAAG,EAAE;IACP;EACF,CAAC;EACDO,YAAY,EAAE;IACZT,MAAM,EAAE;MACNC,IAAI,EAAE,oCAAoC;MAC1CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,sCAAsC;MAC5CC,GAAG,EAAE;IACP;EACF,CAAC;EACDQ,YAAY,EAAE;IACZV,MAAM,EAAE;MACNC,IAAI,EAAE,oCAAoC;MAC1CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,sCAAsC;MAC5CC,GAAG,EAAE;IACP;EACF,CAAC;EACDS,GAAG,EAAE;IACHX,MAAM,EAAE;MACNC,IAAI,EAAE,0BAA0B;MAChCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,qBAAqB;MAC3BC,GAAG,EAAE;IACP;EACF,CAAC;EACDU,gBAAgB,EAAE;IAChBZ,MAAM,EAAE;MACNC,IAAI,EAAE,wCAAwC;MAC9CC,GAAG,EAAE;IACP;EACF,CAAC;EACDW,gBAAgB,EAAE;IAChBb,MAAM,EAAE;MACNC,IAAI,EAAE,wCAAwC;MAC9CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP;EACF,CAAC;EACDY,cAAc,EAAE;IACdd,MAAM,EAAE;MACNC,IAAI,EAAE,uCAAuC;MAC7CC,GAAG,EAAE;IACP;EACF,CAAC;EACDa,gBAAgB,EAAE;IAChBf,MAAM,EAAE;MACNC,IAAI,EAAE,wCAAwC;MAC9CC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0CAA0C;MAChDC,GAAG,EAAE;IACP;EACF,CAAC;EACDc,UAAU,EAAE;IACVhB,MAAM,EAAE;MACNC,IAAI,EAAE,iCAAiC;MACvCC,GAAG,EAAE;IACP,CAAC;IACDG,SAAS,EAAE;MACTJ,IAAI,EAAE,0BAA0B;MAChCC,GAAG,EAAE;IACP;EACF;AACF,CAAC;AAEkC;EAEjCe,MAAM,CAACC,MAAM,CAACpB,aAAa,EAAE;IAC3BqB,eAAe,EAAE;MACfnB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,mDAAmD;QACzDC,GAAG,EAAE;MACP;IACF,CAAC;IACDkB,eAAe,EAAE;MACfpB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACDmB,sBAAsB,EAAE;MACtBrB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACDoB,mBAAmB,EAAE;MACnBtB,MAAM,EAAE;QACNC,IAAI,EAAE,uCAAuC;QAC7CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP;IACF,CAAC;IACDqB,gBAAgB,EAAE;MAChBvB,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF,CAAC;IACDsB,aAAa,EAAE;MACbxB,MAAM,EAAE;QACNC,IAAI,EAAE,qCAAqC;QAC3CC,GAAG,EAAE;MACP;IACF,CAAC;IACDuB,mBAAmB,EAAE;MACnBzB,MAAM,EAAE;QACNC,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,+CAA+C;QACrDC,GAAG,EAAE;MACP;IACF,CAAC;IAEDwB,gBAAgB,EAAE;MAChB1B,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP;IACF,CAAC;IACDyB,UAAU,EAAE;MACV3B,MAAM,EAAE;QACNC,IAAI,EAAE,kCAAkC;QACxCC,GAAG,EAAE;MACP;IACF,CAAC;IACD0B,iBAAiB,EAAE;MACjB5B,MAAM,EAAE;QACNC,IAAI,EAAE,mDAAmD;QACzDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,sDAAsD;QAC5DC,GAAG,EAAE;MACP;IACF,CAAC;IACD2B,iBAAiB,EAAE;MACjB7B,MAAM,EAAE;QACNC,IAAI,EAAE,0CAA0C;QAChDC,GAAG,EAAE;MACP;IACF,CAAC;IACD4B,gBAAgB,EAAE;MAChB9B,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,2CAA2C;QACjDC,GAAG,EAAE;MACP;IACF,CAAC;IACD6B,yBAAyB,EAAE;MACzB/B,MAAM,EAAE;QACNC,IAAI,EAAE,kDAAkD;QACxDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,qDAAqD;QAC3DC,GAAG,EAAE;MACP;IACF,CAAC;IACD8B,gBAAgB,EAAE;MAChBhC,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF,CAAC;IACD+B,oBAAoB,EAAE;MACpBjC,MAAM,EAAE;QACNC,IAAI,EAAE,6CAA6C;QACnDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,gDAAgD;QACtDC,GAAG,EAAE;MACP;IACF,CAAC;IACDgC,gBAAgB,EAAE;MAChBlC,MAAM,EAAE;QACNC,IAAI,EAAE,wCAAwC;QAC9CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,2CAA2C;QACjDC,GAAG,EAAE;MACP;IACF,CAAC;IACDiC,SAAS,EAAE;MACTnC,MAAM,EAAE;QACNC,IAAI,EAAE,iDAAiD;QACvDC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,oDAAoD;QAC1DC,GAAG,EAAE;MACP;IACF,CAAC;IACDkC,iBAAiB,EAAE;MACjBpC,MAAM,EAAE;QACNC,IAAI,EAAE,yCAAyC;QAC/CC,GAAG,EAAE;MACP,CAAC;MACDG,SAAS,EAAE;QACTJ,IAAI,EAAE,4CAA4C;QAClDC,GAAG,EAAE;MACP;IACF;EACF,CAAC,CAAC;AACJ;AAEA,MAAMmC,qBAAqB,GAAGA,CAAC;EAAEpC,IAAI;EAAEC;AAAmC,CAAC,KACzE,GAAGD,IAAI,KAAKC,GAAG,GAAG;AAWL,SAASoC,4BAA4BA,CAClDC,iBAAyB,EACzBC,GAGC,EACDC,SAAiB,EACjBC,QAAgB,EACR;EACR,IAAIC,WAAW,GACb,wCAAwCJ,iBAAiB,4BAA4B,GACrF,IAAIC,GAAG,CAACI,IAAI,IAAIJ,GAAG,CAACK,MAAM,GAAG,CAAC,QAAQ,GACtCJ,SAAS;EACX,MAAMK,UAAU,GAAGhD,aAAa,CAACyC,iBAAiB,CAAC;EACnD,IAAIO,UAAU,EAAE;IACd,MAAM;MAAE9C,MAAM,EAAE+C,YAAY;MAAE1C,SAAS,EAAE2C;IAAgB,CAAC,GAAGF,UAAU;IACvE,IAAIC,YAAY,EAAE;MAChB,MAAME,gBAAgB,GAAGZ,qBAAqB,CAACU,YAAY,CAAC;MAC5D,IAAIC,eAAe,EAAE;QACnB,MAAME,mBAAmB,GAAGb,qBAAqB,CAACW,eAAe,CAAC;QAClE,MAAMG,WAAW,GAAGH,eAAe,CAAC/C,IAAI,CAACmD,UAAU,CAAC,eAAe,CAAC,GAChE,SAAS,GACT,SAAS;QACbT,WAAW,IAAI,WAAWO,mBAAmB,YAAYC,WAAW;AAC5E,qCAAqCF,gBAAgB,8CAA8C;MAC7F,CAAC,MAAM;QACLN,WAAW,IACT,WAAWM,gBAAgB,iDAAiD,GAC5E,oBAAoB;MACxB;IACF;EACF;EAEA,MAAMI,WAAW,GACfX,QAAQ,KAAK,SAAS,GAAG,0BAA0B,GAAGA,QAAQ;EAChEC,WAAW,IAAI;AACjB;AACA;AACA;AACA;AACA;AACA,wCAAwCU,WAAW;AACnD;AACA,CAAC;EACC,OAAOV,WAAW;AACpB;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transform-file-browser.js.map b/node_modules/@babel/core/lib/transform-file-browser.js.map index b632a42fd..f0c061453 100644 --- a/node_modules/@babel/core/lib/transform-file-browser.js.map +++ b/node_modules/@babel/core/lib/transform-file-browser.js.map @@ -1 +1 @@ -{"version":3,"names":["transformFile","exports","filename","opts","callback","Error","transformFileSync","transformFileAsync","Promise","reject"],"sources":["../src/transform-file-browser.ts"],"sourcesContent":["/* c8 ignore start */\n\n// duplicated from transform-file so we do not have to import anything here\ntype TransformFile = {\n (filename: string, callback: (error: Error, file: null) => void): void;\n (\n filename: string,\n opts: any,\n callback: (error: Error, file: null) => void,\n ): void;\n};\n\nexport const transformFile: TransformFile = function transformFile(\n filename,\n opts,\n callback?: (error: Error, file: null) => void,\n) {\n if (typeof opts === \"function\") {\n callback = opts;\n }\n\n callback(new Error(\"Transforming files is not supported in browsers\"), null);\n};\n\nexport function transformFileSync(): never {\n throw new Error(\"Transforming files is not supported in browsers\");\n}\n\nexport function transformFileAsync() {\n return Promise.reject(\n new Error(\"Transforming files is not supported in browsers\"),\n );\n}\n"],"mappings":";;;;;;;;AAYO,MAAMA,aAA4B,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAASA,aAAaA,CAChEE,QAAQ,EACRC,IAAI,EACJC,QAA6C,EAC7C;EACA,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IAC9BC,QAAQ,GAAGD,IAAI;EACjB;EAEAC,QAAQ,CAAC,IAAIC,KAAK,CAAC,iDAAiD,CAAC,EAAE,IAAI,CAAC;AAC9E,CAAC;AAEM,SAASC,iBAAiBA,CAAA,EAAU;EACzC,MAAM,IAAID,KAAK,CAAC,iDAAiD,CAAC;AACpE;AAEO,SAASE,kBAAkBA,CAAA,EAAG;EACnC,OAAOC,OAAO,CAACC,MAAM,CACnB,IAAIJ,KAAK,CAAC,iDAAiD,CAC7D,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["transformFile","exports","filename","opts","callback","Error","transformFileSync","transformFileAsync","Promise","reject"],"sources":["../src/transform-file-browser.ts"],"sourcesContent":["// duplicated from transform-file so we do not have to import anything here\ntype TransformFile = {\n (filename: string, callback: (error: Error, file: null) => void): void;\n (\n filename: string,\n opts: any,\n callback: (error: Error, file: null) => void,\n ): void;\n};\n\nexport const transformFile: TransformFile = function transformFile(\n filename,\n opts,\n callback?: (error: Error, file: null) => void,\n) {\n if (typeof opts === \"function\") {\n callback = opts;\n }\n\n callback(new Error(\"Transforming files is not supported in browsers\"), null);\n};\n\nexport function transformFileSync(): never {\n throw new Error(\"Transforming files is not supported in browsers\");\n}\n\nexport function transformFileAsync() {\n return Promise.reject(\n new Error(\"Transforming files is not supported in browsers\"),\n );\n}\n"],"mappings":";;;;;;;;AAUO,MAAMA,aAA4B,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAASA,aAAaA,CAChEE,QAAQ,EACRC,IAAI,EACJC,QAA6C,EAC7C;EACA,IAAI,OAAOD,IAAI,KAAK,UAAU,EAAE;IAC9BC,QAAQ,GAAGD,IAAI;EACjB;EAEAC,QAAQ,CAAC,IAAIC,KAAK,CAAC,iDAAiD,CAAC,EAAE,IAAI,CAAC;AAC9E,CAAC;AAEM,SAASC,iBAAiBA,CAAA,EAAU;EACzC,MAAM,IAAID,KAAK,CAAC,iDAAiD,CAAC;AACpE;AAEO,SAASE,kBAAkBA,CAAA,EAAG;EACnC,OAAOC,OAAO,CAACC,MAAM,CACnB,IAAIJ,KAAK,CAAC,iDAAiD,CAC7D,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs b/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs index e606e5506..a532ff129 100644 --- a/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +++ b/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs @@ -1,6 +1,4 @@ -{ - exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName; -} +exports.getModuleName = () => require("@babel/helper-module-transforms").getModuleName; 0 && 0; //# sourceMappingURL=babel-7-helpers.cjs.map diff --git a/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map b/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map index d27a70c0b..bfc0d1b36 100644 --- a/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +++ b/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map @@ -1 +1 @@ -{"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nif (!process.env.BABEL_8_BREAKING) {\n exports.getModuleName = () =>\n require(\"@babel/helper-module-transforms\").getModuleName;\n} else if (process.env.IS_PUBLISH) {\n throw new Error(\n \"Internal Babel error: This file should only be loaded in Babel 7\",\n );\n}\n"],"mappings":"AAEmC;EACjCA,OAAO,CAACC,aAAa,GAAG,MACtBC,OAAO,CAAC,iCAAiC,CAAC,CAACD,aAAa;AAC5D;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["exports","getModuleName","require"],"sources":["../../../src/transformation/file/babel-7-helpers.cjs"],"sourcesContent":["// TODO(Babel 8): Remove this file\n\nexports.getModuleName = () =>\n require(\"@babel/helper-module-transforms\").getModuleName;\n"],"mappings":"AAEAA,OAAO,CAACC,aAAa,GAAG,MACtBC,OAAO,CAAC,iCAAiC,CAAC,CAACD,aAAa;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/file/file.js b/node_modules/@babel/core/lib/transformation/file/file.js index 5cf925465..61caa1710 100644 --- a/node_modules/@babel/core/lib/transformation/file/file.js +++ b/node_modules/@babel/core/lib/transformation/file/file.js @@ -39,7 +39,9 @@ function _semver() { }; return data; } -var _babel7Helpers = require("./babel-7-helpers.cjs"); +var babel7 = _interopRequireWildcard(require("./babel-7-helpers.cjs"), true); +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? 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; } const { cloneNode, interpreterDirective @@ -116,7 +118,6 @@ class File { return this._map.has(key); } availableHelper(name, versionRange) { - if (helpers().isInternal(name)) return false; let minVersion; try { minVersion = helpers().minVersion(name); @@ -131,12 +132,6 @@ class File { } } addHelper(name) { - if (helpers().isInternal(name)) { - throw new Error("Cannot use internal helper " + name); - } - return this._addHelper(name); - } - _addHelper(name) { const declar = this.declarations[name]; if (declar) return cloneNode(declar); const generator = this.get("helperGenerator"); @@ -148,7 +143,7 @@ class File { const uid = this.declarations[name] = this.scope.generateUidIdentifier(name); const dependencies = {}; for (const dep of helpers().getDependencies(name)) { - dependencies[dep] = this._addHelper(dep); + dependencies[dep] = this.addHelper(dep); } const { nodes, @@ -210,7 +205,7 @@ exports.default = File; }; { File.prototype.getModuleName = function getModuleName() { - return _babel7Helpers.getModuleName()(this.opts, this.opts); + return babel7.getModuleName()(this.opts, this.opts); }; } } diff --git a/node_modules/@babel/core/lib/transformation/file/file.js.map b/node_modules/@babel/core/lib/transformation/file/file.js.map index 39ae82033..41012b4a0 100644 --- a/node_modules/@babel/core/lib/transformation/file/file.js.map +++ b/node_modules/@babel/core/lib/transformation/file/file.js.map @@ -1 +1 @@ -{"version":3,"names":["helpers","data","require","_traverse","_codeFrame","_t","_semver","_babel7Helpers","cloneNode","interpreterDirective","errorVisitor","enter","path","state","loc","node","stop","File","constructor","options","code","ast","inputMap","_map","Map","opts","declarations","scope","metadata","hub","file","getCode","getScope","addHelper","bind","buildError","buildCodeFrameError","NodePath","get","parentPath","parent","container","key","setContext","shebang","interpreter","value","replaceWith","remove","set","val","Error","has","availableHelper","name","versionRange","isInternal","minVersion","err","semver","valid","intersects","_addHelper","declar","generator","res","uid","generateUidIdentifier","dependencies","dep","getDependencies","nodes","globals","Object","keys","getAllBindings","forEach","hasBinding","rename","_compact","added","unshiftContainer","isVariableDeclaration","registerDeclaration","msg","_Error","SyntaxError","traverse","txt","highlightCode","codeFrameColumns","start","line","column","end","undefined","exports","default","prototype","addImport","addTemplateObject","getModuleName","babel7"],"sources":["../../../src/transformation/file/file.ts"],"sourcesContent":["import * as helpers from \"@babel/helpers\";\nimport { NodePath } from \"@babel/traverse\";\nimport type { HubInterface, Visitor, Scope } from \"@babel/traverse\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport traverse from \"@babel/traverse\";\nimport { cloneNode, interpreterDirective } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport semver from \"semver\";\n\nimport type { NormalizedFile } from \"../normalize-file.ts\";\n\n// @ts-expect-error This file is `any`\nimport babel7 from \"./babel-7-helpers.cjs\" with { if: \"!process.env.BABEL_8_BREAKING && (!USE_ESM || IS_STANDALONE)\" };\n\nconst errorVisitor: Visitor<{ loc: t.SourceLocation | null }> = {\n enter(path, state) {\n const loc = path.node.loc;\n if (loc) {\n state.loc = loc;\n path.stop();\n }\n },\n};\n\nexport default class File {\n _map: Map = new Map();\n opts: { [key: string]: any };\n declarations: { [key: string]: t.Identifier } = {};\n path: NodePath;\n ast: t.File;\n scope: Scope;\n metadata: { [key: string]: any } = {};\n code: string = \"\";\n inputMap: any;\n\n hub: HubInterface & { file: File } = {\n // keep it for the usage in babel-core, ex: path.hub.file.opts.filename\n file: this,\n getCode: () => this.code,\n getScope: () => this.scope,\n addHelper: this.addHelper.bind(this),\n buildError: this.buildCodeFrameError.bind(this),\n };\n\n constructor(options: any, { code, ast, inputMap }: NormalizedFile) {\n this.opts = options;\n this.code = code;\n this.ast = ast;\n this.inputMap = inputMap;\n\n this.path = NodePath.get({\n hub: this.hub,\n parentPath: null,\n parent: this.ast,\n container: this.ast,\n key: \"program\",\n }).setContext() as NodePath;\n this.scope = this.path.scope;\n }\n\n /**\n * Provide backward-compatible access to the interpreter directive handling\n * in Babel 6.x. If you are writing a plugin for Babel 7.x, it would be\n * best to use 'program.interpreter' directly.\n */\n get shebang(): string {\n const { interpreter } = this.path.node;\n return interpreter ? interpreter.value : \"\";\n }\n set shebang(value: string) {\n if (value) {\n this.path.get(\"interpreter\").replaceWith(interpreterDirective(value));\n } else {\n this.path.get(\"interpreter\").remove();\n }\n }\n\n set(key: unknown, val: unknown) {\n if (!process.env.BABEL_8_BREAKING) {\n if (key === \"helpersNamespace\") {\n throw new Error(\n \"Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.\" +\n \"If you are using @babel/plugin-external-helpers you will need to use a newer \" +\n \"version than the one you currently have installed. \" +\n \"If you have your own implementation, you'll want to explore using 'helperGenerator' \" +\n \"alongside 'file.availableHelper()'.\",\n );\n }\n }\n\n this._map.set(key, val);\n }\n\n get(key: unknown): any {\n return this._map.get(key);\n }\n\n has(key: unknown): boolean {\n return this._map.has(key);\n }\n\n /**\n * Check if a given helper is available in @babel/core's helper list.\n *\n * This _also_ allows you to pass a Babel version specifically. If the\n * helper exists, but was not available for the full given range, it will be\n * considered unavailable.\n */\n availableHelper(name: string, versionRange?: string | null): boolean {\n if (helpers.isInternal(name)) return false;\n\n let minVersion;\n try {\n minVersion = helpers.minVersion(name);\n } catch (err) {\n if (err.code !== \"BABEL_HELPER_UNKNOWN\") throw err;\n\n return false;\n }\n\n if (typeof versionRange !== \"string\") return true;\n\n // semver.intersects() has some surprising behavior with comparing ranges\n // with pre-release versions. We add '^' to ensure that we are always\n // comparing ranges with ranges, which sidesteps this logic.\n // For example:\n //\n // semver.intersects(`<7.0.1`, \"7.0.0-beta.0\") // false - surprising\n // semver.intersects(`<7.0.1`, \"^7.0.0-beta.0\") // true - expected\n //\n // This is because the first falls back to\n //\n // semver.satisfies(\"7.0.0-beta.0\", `<7.0.1`) // false - surprising\n //\n // and this fails because a prerelease version can only satisfy a range\n // if it is a prerelease within the same major/minor/patch range.\n //\n // Note: If this is found to have issues, please also revisit the logic in\n // transform-runtime's definitions.js file.\n if (semver.valid(versionRange)) versionRange = `^${versionRange}`;\n\n if (process.env.BABEL_8_BREAKING) {\n return (\n !semver.intersects(`<${minVersion}`, versionRange) &&\n !semver.intersects(`>=9.0.0`, versionRange)\n );\n } else {\n return (\n !semver.intersects(`<${minVersion}`, versionRange) &&\n !semver.intersects(`>=8.0.0`, versionRange)\n );\n }\n }\n\n addHelper(name: string): t.Identifier {\n if (helpers.isInternal(name)) {\n throw new Error(\"Cannot use internal helper \" + name);\n }\n return this._addHelper(name);\n }\n\n _addHelper(name: string): t.Identifier {\n const declar = this.declarations[name];\n if (declar) return cloneNode(declar);\n\n const generator = this.get(\"helperGenerator\");\n if (generator) {\n const res = generator(name);\n if (res) return res;\n }\n\n // make sure that the helper exists\n helpers.minVersion(name);\n\n const uid = (this.declarations[name] =\n this.scope.generateUidIdentifier(name));\n\n const dependencies: { [key: string]: t.Identifier } = {};\n for (const dep of helpers.getDependencies(name)) {\n dependencies[dep] = this._addHelper(dep);\n }\n\n const { nodes, globals } = helpers.get(\n name,\n dep => dependencies[dep],\n uid.name,\n Object.keys(this.scope.getAllBindings()),\n );\n\n globals.forEach(name => {\n if (this.path.scope.hasBinding(name, true /* noGlobals */)) {\n this.path.scope.rename(name);\n }\n });\n\n nodes.forEach(node => {\n // @ts-expect-error Fixme: document _compact node property\n node._compact = true;\n });\n\n const added = this.path.unshiftContainer(\"body\", nodes);\n // TODO: NodePath#unshiftContainer should automatically register new\n // bindings.\n for (const path of added) {\n if (path.isVariableDeclaration()) this.scope.registerDeclaration(path);\n }\n\n return uid;\n }\n\n buildCodeFrameError(\n node: t.Node | undefined | null,\n msg: string,\n _Error: typeof Error = SyntaxError,\n ): Error {\n let loc = node?.loc;\n\n if (!loc && node) {\n const state: { loc?: t.SourceLocation | null } = {\n loc: null,\n };\n traverse(node, errorVisitor, this.scope, state);\n loc = state.loc;\n\n let txt =\n \"This is an error on an internal node. Probably an internal error.\";\n if (loc) txt += \" Location has been estimated.\";\n\n msg += ` (${txt})`;\n }\n\n if (loc) {\n const { highlightCode = true } = this.opts;\n\n msg +=\n \"\\n\" +\n codeFrameColumns(\n this.code,\n {\n start: {\n line: loc.start.line,\n column: loc.start.column + 1,\n },\n end:\n loc.end && loc.start.line === loc.end.line\n ? {\n line: loc.end.line,\n column: loc.end.column + 1,\n }\n : undefined,\n },\n { highlightCode },\n );\n }\n\n return new _Error(msg);\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // @ts-expect-error Babel 7\n File.prototype.addImport = function addImport() {\n throw new Error(\n \"This API has been removed. If you're looking for this \" +\n \"functionality in Babel 7, you should import the \" +\n \"'@babel/helper-module-imports' module and use the functions exposed \" +\n \" from that module, such as 'addNamed' or 'addDefault'.\",\n );\n };\n // @ts-expect-error Babel 7\n File.prototype.addTemplateObject = function addTemplateObject() {\n throw new Error(\n \"This function has been moved into the template literal transform itself.\",\n );\n };\n\n if (!USE_ESM || IS_STANDALONE) {\n // @ts-expect-error Babel 7\n File.prototype.getModuleName = function getModuleName() {\n return babel7.getModuleName()(this.opts, this.opts);\n };\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,GAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,EAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,IAAAM,cAAA,GAAAL,OAAA;AAAuH;EAP9GM,SAAS;EAAEC;AAAoB,IAAAJ,EAAA;AASxC,MAAMK,YAAuD,GAAG;EAC9DC,KAAKA,CAACC,IAAI,EAAEC,KAAK,EAAE;IACjB,MAAMC,GAAG,GAAGF,IAAI,CAACG,IAAI,CAACD,GAAG;IACzB,IAAIA,GAAG,EAAE;MACPD,KAAK,CAACC,GAAG,GAAGA,GAAG;MACfF,IAAI,CAACI,IAAI,CAAC,CAAC;IACb;EACF;AACF,CAAC;AAEc,MAAMC,IAAI,CAAC;EAoBxBC,WAAWA,CAACC,OAAY,EAAE;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAyB,CAAC,EAAE;IAAA,KAnBnEC,IAAI,GAA0B,IAAIC,GAAG,CAAC,CAAC;IAAA,KACvCC,IAAI;IAAA,KACJC,YAAY,GAAoC,CAAC,CAAC;IAAA,KAClDd,IAAI;IAAA,KACJS,GAAG;IAAA,KACHM,KAAK;IAAA,KACLC,QAAQ,GAA2B,CAAC,CAAC;IAAA,KACrCR,IAAI,GAAW,EAAE;IAAA,KACjBE,QAAQ;IAAA,KAERO,GAAG,GAAkC;MAEnCC,IAAI,EAAE,IAAI;MACVC,OAAO,EAAEA,CAAA,KAAM,IAAI,CAACX,IAAI;MACxBY,QAAQ,EAAEA,CAAA,KAAM,IAAI,CAACL,KAAK;MAC1BM,SAAS,EAAE,IAAI,CAACA,SAAS,CAACC,IAAI,CAAC,IAAI,CAAC;MACpCC,UAAU,EAAE,IAAI,CAACC,mBAAmB,CAACF,IAAI,CAAC,IAAI;IAChD,CAAC;IAGC,IAAI,CAACT,IAAI,GAAGN,OAAO;IACnB,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IAExB,IAAI,CAACV,IAAI,GAAGyB,oBAAQ,CAACC,GAAG,CAAC;MACvBT,GAAG,EAAE,IAAI,CAACA,GAAG;MACbU,UAAU,EAAE,IAAI;MAChBC,MAAM,EAAE,IAAI,CAACnB,GAAG;MAChBoB,SAAS,EAAE,IAAI,CAACpB,GAAG;MACnBqB,GAAG,EAAE;IACP,CAAC,CAAC,CAACC,UAAU,CAAC,CAAwB;IACtC,IAAI,CAAChB,KAAK,GAAG,IAAI,CAACf,IAAI,CAACe,KAAK;EAC9B;EAOA,IAAIiB,OAAOA,CAAA,EAAW;IACpB,MAAM;MAAEC;IAAY,CAAC,GAAG,IAAI,CAACjC,IAAI,CAACG,IAAI;IACtC,OAAO8B,WAAW,GAAGA,WAAW,CAACC,KAAK,GAAG,EAAE;EAC7C;EACA,IAAIF,OAAOA,CAACE,KAAa,EAAE;IACzB,IAAIA,KAAK,EAAE;MACT,IAAI,CAAClC,IAAI,CAAC0B,GAAG,CAAC,aAAa,CAAC,CAACS,WAAW,CAACtC,oBAAoB,CAACqC,KAAK,CAAC,CAAC;IACvE,CAAC,MAAM;MACL,IAAI,CAAClC,IAAI,CAAC0B,GAAG,CAAC,aAAa,CAAC,CAACU,MAAM,CAAC,CAAC;IACvC;EACF;EAEAC,GAAGA,CAACP,GAAY,EAAEQ,GAAY,EAAE;IACK;MACjC,IAAIR,GAAG,KAAK,kBAAkB,EAAE;QAC9B,MAAM,IAAIS,KAAK,CACb,6EAA6E,GAC3E,+EAA+E,GAC/E,qDAAqD,GACrD,sFAAsF,GACtF,qCACJ,CAAC;MACH;IACF;IAEA,IAAI,CAAC5B,IAAI,CAAC0B,GAAG,CAACP,GAAG,EAAEQ,GAAG,CAAC;EACzB;EAEAZ,GAAGA,CAACI,GAAY,EAAO;IACrB,OAAO,IAAI,CAACnB,IAAI,CAACe,GAAG,CAACI,GAAG,CAAC;EAC3B;EAEAU,GAAGA,CAACV,GAAY,EAAW;IACzB,OAAO,IAAI,CAACnB,IAAI,CAAC6B,GAAG,CAACV,GAAG,CAAC;EAC3B;EASAW,eAAeA,CAACC,IAAY,EAAEC,YAA4B,EAAW;IACnE,IAAIvD,OAAO,CAAD,CAAC,CAACwD,UAAU,CAACF,IAAI,CAAC,EAAE,OAAO,KAAK;IAE1C,IAAIG,UAAU;IACd,IAAI;MACFA,UAAU,GAAGzD,OAAO,CAAD,CAAC,CAACyD,UAAU,CAACH,IAAI,CAAC;IACvC,CAAC,CAAC,OAAOI,GAAG,EAAE;MACZ,IAAIA,GAAG,CAACtC,IAAI,KAAK,sBAAsB,EAAE,MAAMsC,GAAG;MAElD,OAAO,KAAK;IACd;IAEA,IAAI,OAAOH,YAAY,KAAK,QAAQ,EAAE,OAAO,IAAI;IAmBjD,IAAII,QAAKA,CAAC,CAACC,KAAK,CAACL,YAAY,CAAC,EAAEA,YAAY,GAAG,IAAIA,YAAY,EAAE;IAO1D;MACL,OACE,CAACI,QAAKA,CAAC,CAACE,UAAU,CAAC,IAAIJ,UAAU,EAAE,EAAEF,YAAY,CAAC,IAClD,CAACI,QAAKA,CAAC,CAACE,UAAU,CAAC,SAAS,EAAEN,YAAY,CAAC;IAE/C;EACF;EAEAtB,SAASA,CAACqB,IAAY,EAAgB;IACpC,IAAItD,OAAO,CAAD,CAAC,CAACwD,UAAU,CAACF,IAAI,CAAC,EAAE;MAC5B,MAAM,IAAIH,KAAK,CAAC,6BAA6B,GAAGG,IAAI,CAAC;IACvD;IACA,OAAO,IAAI,CAACQ,UAAU,CAACR,IAAI,CAAC;EAC9B;EAEAQ,UAAUA,CAACR,IAAY,EAAgB;IACrC,MAAMS,MAAM,GAAG,IAAI,CAACrC,YAAY,CAAC4B,IAAI,CAAC;IACtC,IAAIS,MAAM,EAAE,OAAOvD,SAAS,CAACuD,MAAM,CAAC;IAEpC,MAAMC,SAAS,GAAG,IAAI,CAAC1B,GAAG,CAAC,iBAAiB,CAAC;IAC7C,IAAI0B,SAAS,EAAE;MACb,MAAMC,GAAG,GAAGD,SAAS,CAACV,IAAI,CAAC;MAC3B,IAAIW,GAAG,EAAE,OAAOA,GAAG;IACrB;IAGAjE,OAAO,CAAD,CAAC,CAACyD,UAAU,CAACH,IAAI,CAAC;IAExB,MAAMY,GAAG,GAAI,IAAI,CAACxC,YAAY,CAAC4B,IAAI,CAAC,GAClC,IAAI,CAAC3B,KAAK,CAACwC,qBAAqB,CAACb,IAAI,CAAE;IAEzC,MAAMc,YAA6C,GAAG,CAAC,CAAC;IACxD,KAAK,MAAMC,GAAG,IAAIrE,OAAO,CAAD,CAAC,CAACsE,eAAe,CAAChB,IAAI,CAAC,EAAE;MAC/Cc,YAAY,CAACC,GAAG,CAAC,GAAG,IAAI,CAACP,UAAU,CAACO,GAAG,CAAC;IAC1C;IAEA,MAAM;MAAEE,KAAK;MAAEC;IAAQ,CAAC,GAAGxE,OAAO,CAAD,CAAC,CAACsC,GAAG,CACpCgB,IAAI,EACJe,GAAG,IAAID,YAAY,CAACC,GAAG,CAAC,EACxBH,GAAG,CAACZ,IAAI,EACRmB,MAAM,CAACC,IAAI,CAAC,IAAI,CAAC/C,KAAK,CAACgD,cAAc,CAAC,CAAC,CACzC,CAAC;IAEDH,OAAO,CAACI,OAAO,CAACtB,IAAI,IAAI;MACtB,IAAI,IAAI,CAAC1C,IAAI,CAACe,KAAK,CAACkD,UAAU,CAACvB,IAAI,EAAE,IAAoB,CAAC,EAAE;QAC1D,IAAI,CAAC1C,IAAI,CAACe,KAAK,CAACmD,MAAM,CAACxB,IAAI,CAAC;MAC9B;IACF,CAAC,CAAC;IAEFiB,KAAK,CAACK,OAAO,CAAC7D,IAAI,IAAI;MAEpBA,IAAI,CAACgE,QAAQ,GAAG,IAAI;IACtB,CAAC,CAAC;IAEF,MAAMC,KAAK,GAAG,IAAI,CAACpE,IAAI,CAACqE,gBAAgB,CAAC,MAAM,EAAEV,KAAK,CAAC;IAGvD,KAAK,MAAM3D,IAAI,IAAIoE,KAAK,EAAE;MACxB,IAAIpE,IAAI,CAACsE,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAACvD,KAAK,CAACwD,mBAAmB,CAACvE,IAAI,CAAC;IACxE;IAEA,OAAOsD,GAAG;EACZ;EAEA9B,mBAAmBA,CACjBrB,IAA+B,EAC/BqE,GAAW,EACXC,MAAoB,GAAGC,WAAW,EAC3B;IACP,IAAIxE,GAAG,GAAGC,IAAI,oBAAJA,IAAI,CAAED,GAAG;IAEnB,IAAI,CAACA,GAAG,IAAIC,IAAI,EAAE;MAChB,MAAMF,KAAwC,GAAG;QAC/CC,GAAG,EAAE;MACP,CAAC;MACD,IAAAyE,mBAAQ,EAACxE,IAAI,EAAEL,YAAY,EAAE,IAAI,CAACiB,KAAK,EAAEd,KAAK,CAAC;MAC/CC,GAAG,GAAGD,KAAK,CAACC,GAAG;MAEf,IAAI0E,GAAG,GACL,mEAAmE;MACrE,IAAI1E,GAAG,EAAE0E,GAAG,IAAI,+BAA+B;MAE/CJ,GAAG,IAAI,KAAKI,GAAG,GAAG;IACpB;IAEA,IAAI1E,GAAG,EAAE;MACP,MAAM;QAAE2E,aAAa,GAAG;MAAK,CAAC,GAAG,IAAI,CAAChE,IAAI;MAE1C2D,GAAG,IACD,IAAI,GACJ,IAAAM,6BAAgB,EACd,IAAI,CAACtE,IAAI,EACT;QACEuE,KAAK,EAAE;UACLC,IAAI,EAAE9E,GAAG,CAAC6E,KAAK,CAACC,IAAI;UACpBC,MAAM,EAAE/E,GAAG,CAAC6E,KAAK,CAACE,MAAM,GAAG;QAC7B,CAAC;QACDC,GAAG,EACDhF,GAAG,CAACgF,GAAG,IAAIhF,GAAG,CAAC6E,KAAK,CAACC,IAAI,KAAK9E,GAAG,CAACgF,GAAG,CAACF,IAAI,GACtC;UACEA,IAAI,EAAE9E,GAAG,CAACgF,GAAG,CAACF,IAAI;UAClBC,MAAM,EAAE/E,GAAG,CAACgF,GAAG,CAACD,MAAM,GAAG;QAC3B,CAAC,GACDE;MACR,CAAC,EACD;QAAEN;MAAc,CAClB,CAAC;IACL;IAEA,OAAO,IAAIJ,MAAM,CAACD,GAAG,CAAC;EACxB;AACF;AAACY,OAAA,CAAAC,OAAA,GAAAhF,IAAA;AAEkC;EAEjCA,IAAI,CAACiF,SAAS,CAACC,SAAS,GAAG,SAASA,SAASA,CAAA,EAAG;IAC9C,MAAM,IAAIhD,KAAK,CACb,wDAAwD,GACtD,kDAAkD,GAClD,sEAAsE,GACtE,wDACJ,CAAC;EACH,CAAC;EAEDlC,IAAI,CAACiF,SAAS,CAACE,iBAAiB,GAAG,SAASA,iBAAiBA,CAAA,EAAG;IAC9D,MAAM,IAAIjD,KAAK,CACb,0EACF,CAAC;EACH,CAAC;EAE8B;IAE7BlC,IAAI,CAACiF,SAAS,CAACG,aAAa,GAAG,SAASA,aAAaA,CAAA,EAAG;MACtD,OAAOC,cAAM,CAACD,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC5E,IAAI,EAAE,IAAI,CAACA,IAAI,CAAC;IACrD,CAAC;EACH;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["helpers","data","require","_traverse","_codeFrame","_t","_semver","babel7","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","cloneNode","interpreterDirective","errorVisitor","enter","path","state","loc","node","stop","File","constructor","options","code","ast","inputMap","_map","Map","opts","declarations","scope","metadata","hub","file","getCode","getScope","addHelper","bind","buildError","buildCodeFrameError","NodePath","parentPath","parent","container","key","setContext","shebang","interpreter","value","replaceWith","remove","val","Error","availableHelper","name","versionRange","minVersion","err","semver","valid","intersects","declar","generator","res","uid","generateUidIdentifier","dependencies","dep","getDependencies","nodes","globals","keys","getAllBindings","forEach","hasBinding","rename","_compact","added","unshiftContainer","isVariableDeclaration","registerDeclaration","msg","_Error","SyntaxError","traverse","txt","highlightCode","codeFrameColumns","start","line","column","end","undefined","exports","prototype","addImport","addTemplateObject","getModuleName"],"sources":["../../../src/transformation/file/file.ts"],"sourcesContent":["import * as helpers from \"@babel/helpers\";\nimport { NodePath } from \"@babel/traverse\";\nimport type { HubInterface, Visitor, Scope } from \"@babel/traverse\";\nimport { codeFrameColumns } from \"@babel/code-frame\";\nimport traverse from \"@babel/traverse\";\nimport { cloneNode, interpreterDirective } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport semver from \"semver\";\n\nimport type { NormalizedFile } from \"../normalize-file.ts\";\n\n// @ts-expect-error This file is `any`\nimport * as babel7 from \"./babel-7-helpers.cjs\";\n\nconst errorVisitor: Visitor<{ loc: t.SourceLocation | null }> = {\n enter(path, state) {\n const loc = path.node.loc;\n if (loc) {\n state.loc = loc;\n path.stop();\n }\n },\n};\n\nexport default class File {\n _map: Map = new Map();\n opts: { [key: string]: any };\n declarations: { [key: string]: t.Identifier } = {};\n path: NodePath;\n ast: t.File;\n scope: Scope;\n metadata: { [key: string]: any } = {};\n code: string = \"\";\n inputMap: any;\n\n hub: HubInterface & { file: File } = {\n // keep it for the usage in babel-core, ex: path.hub.file.opts.filename\n file: this,\n getCode: () => this.code,\n getScope: () => this.scope,\n addHelper: this.addHelper.bind(this),\n buildError: this.buildCodeFrameError.bind(this),\n };\n\n constructor(options: any, { code, ast, inputMap }: NormalizedFile) {\n this.opts = options;\n this.code = code;\n this.ast = ast;\n this.inputMap = inputMap;\n\n this.path = NodePath.get({\n hub: this.hub,\n parentPath: null,\n parent: this.ast,\n container: this.ast,\n key: \"program\",\n }).setContext() as NodePath;\n this.scope = this.path.scope;\n }\n\n /**\n * Provide backward-compatible access to the interpreter directive handling\n * in Babel 6.x. If you are writing a plugin for Babel 7.x, it would be\n * best to use 'program.interpreter' directly.\n */\n get shebang(): string {\n const { interpreter } = this.path.node;\n return interpreter ? interpreter.value : \"\";\n }\n set shebang(value: string) {\n if (value) {\n this.path.get(\"interpreter\").replaceWith(interpreterDirective(value));\n } else {\n this.path.get(\"interpreter\").remove();\n }\n }\n\n set(key: unknown, val: unknown) {\n if (!process.env.BABEL_8_BREAKING) {\n if (key === \"helpersNamespace\") {\n throw new Error(\n \"Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.\" +\n \"If you are using @babel/plugin-external-helpers you will need to use a newer \" +\n \"version than the one you currently have installed. \" +\n \"If you have your own implementation, you'll want to explore using 'helperGenerator' \" +\n \"alongside 'file.availableHelper()'.\",\n );\n }\n }\n\n this._map.set(key, val);\n }\n\n get(key: unknown): any {\n return this._map.get(key);\n }\n\n has(key: unknown): boolean {\n return this._map.has(key);\n }\n\n /**\n * Check if a given helper is available in @babel/core's helper list.\n *\n * This _also_ allows you to pass a Babel version specifically. If the\n * helper exists, but was not available for the full given range, it will be\n * considered unavailable.\n */\n availableHelper(name: string, versionRange?: string | null): boolean {\n let minVersion;\n try {\n minVersion = helpers.minVersion(name);\n } catch (err) {\n if (err.code !== \"BABEL_HELPER_UNKNOWN\") throw err;\n\n return false;\n }\n\n if (typeof versionRange !== \"string\") return true;\n\n // semver.intersects() has some surprising behavior with comparing ranges\n // with pre-release versions. We add '^' to ensure that we are always\n // comparing ranges with ranges, which sidesteps this logic.\n // For example:\n //\n // semver.intersects(`<7.0.1`, \"7.0.0-beta.0\") // false - surprising\n // semver.intersects(`<7.0.1`, \"^7.0.0-beta.0\") // true - expected\n //\n // This is because the first falls back to\n //\n // semver.satisfies(\"7.0.0-beta.0\", `<7.0.1`) // false - surprising\n //\n // and this fails because a prerelease version can only satisfy a range\n // if it is a prerelease within the same major/minor/patch range.\n //\n // Note: If this is found to have issues, please also revisit the logic in\n // transform-runtime's definitions.js file.\n if (semver.valid(versionRange)) versionRange = `^${versionRange}`;\n\n if (process.env.BABEL_8_BREAKING) {\n return (\n !semver.intersects(`<${minVersion}`, versionRange) &&\n !semver.intersects(`>=9.0.0`, versionRange)\n );\n } else {\n return (\n !semver.intersects(`<${minVersion}`, versionRange) &&\n !semver.intersects(`>=8.0.0`, versionRange)\n );\n }\n }\n\n addHelper(name: string): t.Identifier {\n const declar = this.declarations[name];\n if (declar) return cloneNode(declar);\n\n const generator = this.get(\"helperGenerator\");\n if (generator) {\n const res = generator(name);\n if (res) return res;\n }\n\n // make sure that the helper exists\n helpers.minVersion(name);\n\n const uid = (this.declarations[name] =\n this.scope.generateUidIdentifier(name));\n\n const dependencies: { [key: string]: t.Identifier } = {};\n for (const dep of helpers.getDependencies(name)) {\n dependencies[dep] = this.addHelper(dep);\n }\n\n const { nodes, globals } = helpers.get(\n name,\n dep => dependencies[dep],\n uid.name,\n Object.keys(this.scope.getAllBindings()),\n );\n\n globals.forEach(name => {\n if (this.path.scope.hasBinding(name, true /* noGlobals */)) {\n this.path.scope.rename(name);\n }\n });\n\n nodes.forEach(node => {\n // @ts-expect-error Fixme: document _compact node property\n node._compact = true;\n });\n\n const added = this.path.unshiftContainer(\"body\", nodes);\n // TODO: NodePath#unshiftContainer should automatically register new\n // bindings.\n for (const path of added) {\n if (path.isVariableDeclaration()) this.scope.registerDeclaration(path);\n }\n\n return uid;\n }\n\n buildCodeFrameError(\n node: t.Node | undefined | null,\n msg: string,\n _Error: typeof Error = SyntaxError,\n ): Error {\n let loc = node?.loc;\n\n if (!loc && node) {\n const state: { loc?: t.SourceLocation | null } = {\n loc: null,\n };\n traverse(node, errorVisitor, this.scope, state);\n loc = state.loc;\n\n let txt =\n \"This is an error on an internal node. Probably an internal error.\";\n if (loc) txt += \" Location has been estimated.\";\n\n msg += ` (${txt})`;\n }\n\n if (loc) {\n const { highlightCode = true } = this.opts;\n\n msg +=\n \"\\n\" +\n codeFrameColumns(\n this.code,\n {\n start: {\n line: loc.start.line,\n column: loc.start.column + 1,\n },\n end:\n loc.end && loc.start.line === loc.end.line\n ? {\n line: loc.end.line,\n column: loc.end.column + 1,\n }\n : undefined,\n },\n { highlightCode },\n );\n }\n\n return new _Error(msg);\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n // @ts-expect-error Babel 7\n File.prototype.addImport = function addImport() {\n throw new Error(\n \"This API has been removed. If you're looking for this \" +\n \"functionality in Babel 7, you should import the \" +\n \"'@babel/helper-module-imports' module and use the functions exposed \" +\n \" from that module, such as 'addNamed' or 'addDefault'.\",\n );\n };\n // @ts-expect-error Babel 7\n File.prototype.addTemplateObject = function addTemplateObject() {\n throw new Error(\n \"This function has been moved into the template literal transform itself.\",\n );\n };\n\n if (!USE_ESM || IS_STANDALONE) {\n // @ts-expect-error Babel 7\n File.prototype.getModuleName = function getModuleName() {\n return babel7.getModuleName()(this.opts, this.opts);\n };\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,GAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,EAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,IAAAM,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAAgD,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAAA;EAPvCW,SAAS;EAAEC;AAAoB,IAAAzB,EAAA;AASxC,MAAM0B,YAAuD,GAAG;EAC9DC,KAAKA,CAACC,IAAI,EAAEC,KAAK,EAAE;IACjB,MAAMC,GAAG,GAAGF,IAAI,CAACG,IAAI,CAACD,GAAG;IACzB,IAAIA,GAAG,EAAE;MACPD,KAAK,CAACC,GAAG,GAAGA,GAAG;MACfF,IAAI,CAACI,IAAI,CAAC,CAAC;IACb;EACF;AACF,CAAC;AAEc,MAAMC,IAAI,CAAC;EAoBxBC,WAAWA,CAACC,OAAY,EAAE;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAyB,CAAC,EAAE;IAAA,KAnBnEC,IAAI,GAA0B,IAAIC,GAAG,CAAC,CAAC;IAAA,KACvCC,IAAI;IAAA,KACJC,YAAY,GAAoC,CAAC,CAAC;IAAA,KAClDd,IAAI;IAAA,KACJS,GAAG;IAAA,KACHM,KAAK;IAAA,KACLC,QAAQ,GAA2B,CAAC,CAAC;IAAA,KACrCR,IAAI,GAAW,EAAE;IAAA,KACjBE,QAAQ;IAAA,KAERO,GAAG,GAAkC;MAEnCC,IAAI,EAAE,IAAI;MACVC,OAAO,EAAEA,CAAA,KAAM,IAAI,CAACX,IAAI;MACxBY,QAAQ,EAAEA,CAAA,KAAM,IAAI,CAACL,KAAK;MAC1BM,SAAS,EAAE,IAAI,CAACA,SAAS,CAACC,IAAI,CAAC,IAAI,CAAC;MACpCC,UAAU,EAAE,IAAI,CAACC,mBAAmB,CAACF,IAAI,CAAC,IAAI;IAChD,CAAC;IAGC,IAAI,CAACT,IAAI,GAAGN,OAAO;IACnB,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IAExB,IAAI,CAACV,IAAI,GAAGyB,oBAAQ,CAACzC,GAAG,CAAC;MACvBiC,GAAG,EAAE,IAAI,CAACA,GAAG;MACbS,UAAU,EAAE,IAAI;MAChBC,MAAM,EAAE,IAAI,CAAClB,GAAG;MAChBmB,SAAS,EAAE,IAAI,CAACnB,GAAG;MACnBoB,GAAG,EAAE;IACP,CAAC,CAAC,CAACC,UAAU,CAAC,CAAwB;IACtC,IAAI,CAACf,KAAK,GAAG,IAAI,CAACf,IAAI,CAACe,KAAK;EAC9B;EAOA,IAAIgB,OAAOA,CAAA,EAAW;IACpB,MAAM;MAAEC;IAAY,CAAC,GAAG,IAAI,CAAChC,IAAI,CAACG,IAAI;IACtC,OAAO6B,WAAW,GAAGA,WAAW,CAACC,KAAK,GAAG,EAAE;EAC7C;EACA,IAAIF,OAAOA,CAACE,KAAa,EAAE;IACzB,IAAIA,KAAK,EAAE;MACT,IAAI,CAACjC,IAAI,CAAChB,GAAG,CAAC,aAAa,CAAC,CAACkD,WAAW,CAACrC,oBAAoB,CAACoC,KAAK,CAAC,CAAC;IACvE,CAAC,MAAM;MACL,IAAI,CAACjC,IAAI,CAAChB,GAAG,CAAC,aAAa,CAAC,CAACmD,MAAM,CAAC,CAAC;IACvC;EACF;EAEAxC,GAAGA,CAACkC,GAAY,EAAEO,GAAY,EAAE;IACK;MACjC,IAAIP,GAAG,KAAK,kBAAkB,EAAE;QAC9B,MAAM,IAAIQ,KAAK,CACb,6EAA6E,GAC3E,+EAA+E,GAC/E,qDAAqD,GACrD,sFAAsF,GACtF,qCACJ,CAAC;MACH;IACF;IAEA,IAAI,CAAC1B,IAAI,CAAChB,GAAG,CAACkC,GAAG,EAAEO,GAAG,CAAC;EACzB;EAEApD,GAAGA,CAAC6C,GAAY,EAAO;IACrB,OAAO,IAAI,CAAClB,IAAI,CAAC3B,GAAG,CAAC6C,GAAG,CAAC;EAC3B;EAEA9C,GAAGA,CAAC8C,GAAY,EAAW;IACzB,OAAO,IAAI,CAAClB,IAAI,CAAC5B,GAAG,CAAC8C,GAAG,CAAC;EAC3B;EASAS,eAAeA,CAACC,IAAY,EAAEC,YAA4B,EAAW;IACnE,IAAIC,UAAU;IACd,IAAI;MACFA,UAAU,GAAG1E,OAAO,CAAD,CAAC,CAAC0E,UAAU,CAACF,IAAI,CAAC;IACvC,CAAC,CAAC,OAAOG,GAAG,EAAE;MACZ,IAAIA,GAAG,CAAClC,IAAI,KAAK,sBAAsB,EAAE,MAAMkC,GAAG;MAElD,OAAO,KAAK;IACd;IAEA,IAAI,OAAOF,YAAY,KAAK,QAAQ,EAAE,OAAO,IAAI;IAmBjD,IAAIG,QAAKA,CAAC,CAACC,KAAK,CAACJ,YAAY,CAAC,EAAEA,YAAY,GAAG,IAAIA,YAAY,EAAE;IAO1D;MACL,OACE,CAACG,QAAKA,CAAC,CAACE,UAAU,CAAC,IAAIJ,UAAU,EAAE,EAAED,YAAY,CAAC,IAClD,CAACG,QAAKA,CAAC,CAACE,UAAU,CAAC,SAAS,EAAEL,YAAY,CAAC;IAE/C;EACF;EAEAnB,SAASA,CAACkB,IAAY,EAAgB;IACpC,MAAMO,MAAM,GAAG,IAAI,CAAChC,YAAY,CAACyB,IAAI,CAAC;IACtC,IAAIO,MAAM,EAAE,OAAOlD,SAAS,CAACkD,MAAM,CAAC;IAEpC,MAAMC,SAAS,GAAG,IAAI,CAAC/D,GAAG,CAAC,iBAAiB,CAAC;IAC7C,IAAI+D,SAAS,EAAE;MACb,MAAMC,GAAG,GAAGD,SAAS,CAACR,IAAI,CAAC;MAC3B,IAAIS,GAAG,EAAE,OAAOA,GAAG;IACrB;IAGAjF,OAAO,CAAD,CAAC,CAAC0E,UAAU,CAACF,IAAI,CAAC;IAExB,MAAMU,GAAG,GAAI,IAAI,CAACnC,YAAY,CAACyB,IAAI,CAAC,GAClC,IAAI,CAACxB,KAAK,CAACmC,qBAAqB,CAACX,IAAI,CAAE;IAEzC,MAAMY,YAA6C,GAAG,CAAC,CAAC;IACxD,KAAK,MAAMC,GAAG,IAAIrF,OAAO,CAAD,CAAC,CAACsF,eAAe,CAACd,IAAI,CAAC,EAAE;MAC/CY,YAAY,CAACC,GAAG,CAAC,GAAG,IAAI,CAAC/B,SAAS,CAAC+B,GAAG,CAAC;IACzC;IAEA,MAAM;MAAEE,KAAK;MAAEC;IAAQ,CAAC,GAAGxF,OAAO,CAAD,CAAC,CAACiB,GAAG,CACpCuD,IAAI,EACJa,GAAG,IAAID,YAAY,CAACC,GAAG,CAAC,EACxBH,GAAG,CAACV,IAAI,EACRnD,MAAM,CAACoE,IAAI,CAAC,IAAI,CAACzC,KAAK,CAAC0C,cAAc,CAAC,CAAC,CACzC,CAAC;IAEDF,OAAO,CAACG,OAAO,CAACnB,IAAI,IAAI;MACtB,IAAI,IAAI,CAACvC,IAAI,CAACe,KAAK,CAAC4C,UAAU,CAACpB,IAAI,EAAE,IAAoB,CAAC,EAAE;QAC1D,IAAI,CAACvC,IAAI,CAACe,KAAK,CAAC6C,MAAM,CAACrB,IAAI,CAAC;MAC9B;IACF,CAAC,CAAC;IAEFe,KAAK,CAACI,OAAO,CAACvD,IAAI,IAAI;MAEpBA,IAAI,CAAC0D,QAAQ,GAAG,IAAI;IACtB,CAAC,CAAC;IAEF,MAAMC,KAAK,GAAG,IAAI,CAAC9D,IAAI,CAAC+D,gBAAgB,CAAC,MAAM,EAAET,KAAK,CAAC;IAGvD,KAAK,MAAMtD,IAAI,IAAI8D,KAAK,EAAE;MACxB,IAAI9D,IAAI,CAACgE,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAACjD,KAAK,CAACkD,mBAAmB,CAACjE,IAAI,CAAC;IACxE;IAEA,OAAOiD,GAAG;EACZ;EAEAzB,mBAAmBA,CACjBrB,IAA+B,EAC/B+D,GAAW,EACXC,MAAoB,GAAGC,WAAW,EAC3B;IACP,IAAIlE,GAAG,GAAGC,IAAI,oBAAJA,IAAI,CAAED,GAAG;IAEnB,IAAI,CAACA,GAAG,IAAIC,IAAI,EAAE;MAChB,MAAMF,KAAwC,GAAG;QAC/CC,GAAG,EAAE;MACP,CAAC;MACD,IAAAmE,mBAAQ,EAAClE,IAAI,EAAEL,YAAY,EAAE,IAAI,CAACiB,KAAK,EAAEd,KAAK,CAAC;MAC/CC,GAAG,GAAGD,KAAK,CAACC,GAAG;MAEf,IAAIoE,GAAG,GACL,mEAAmE;MACrE,IAAIpE,GAAG,EAAEoE,GAAG,IAAI,+BAA+B;MAE/CJ,GAAG,IAAI,KAAKI,GAAG,GAAG;IACpB;IAEA,IAAIpE,GAAG,EAAE;MACP,MAAM;QAAEqE,aAAa,GAAG;MAAK,CAAC,GAAG,IAAI,CAAC1D,IAAI;MAE1CqD,GAAG,IACD,IAAI,GACJ,IAAAM,6BAAgB,EACd,IAAI,CAAChE,IAAI,EACT;QACEiE,KAAK,EAAE;UACLC,IAAI,EAAExE,GAAG,CAACuE,KAAK,CAACC,IAAI;UACpBC,MAAM,EAAEzE,GAAG,CAACuE,KAAK,CAACE,MAAM,GAAG;QAC7B,CAAC;QACDC,GAAG,EACD1E,GAAG,CAAC0E,GAAG,IAAI1E,GAAG,CAACuE,KAAK,CAACC,IAAI,KAAKxE,GAAG,CAAC0E,GAAG,CAACF,IAAI,GACtC;UACEA,IAAI,EAAExE,GAAG,CAAC0E,GAAG,CAACF,IAAI;UAClBC,MAAM,EAAEzE,GAAG,CAAC0E,GAAG,CAACD,MAAM,GAAG;QAC3B,CAAC,GACDE;MACR,CAAC,EACD;QAAEN;MAAc,CAClB,CAAC;IACL;IAEA,OAAO,IAAIJ,MAAM,CAACD,GAAG,CAAC;EACxB;AACF;AAACY,OAAA,CAAAhG,OAAA,GAAAuB,IAAA;AAEkC;EAEjCA,IAAI,CAAC0E,SAAS,CAACC,SAAS,GAAG,SAASA,SAASA,CAAA,EAAG;IAC9C,MAAM,IAAI3C,KAAK,CACb,wDAAwD,GACtD,kDAAkD,GAClD,sEAAsE,GACtE,wDACJ,CAAC;EACH,CAAC;EAEDhC,IAAI,CAAC0E,SAAS,CAACE,iBAAiB,GAAG,SAASA,iBAAiBA,CAAA,EAAG;IAC9D,MAAM,IAAI5C,KAAK,CACb,0EACF,CAAC;EACH,CAAC;EAE8B;IAE7BhC,IAAI,CAAC0E,SAAS,CAACG,aAAa,GAAG,SAASA,aAAaA,CAAA,EAAG;MACtD,OAAO5G,MAAM,CAAC4G,aAAa,CAAC,CAAC,CAAC,IAAI,CAACrE,IAAI,EAAE,IAAI,CAACA,IAAI,CAAC;IACrD,CAAC;EACH;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/index.js b/node_modules/@babel/core/lib/transformation/index.js index 7997e0af9..7d3247fc8 100644 --- a/node_modules/@babel/core/lib/transformation/index.js +++ b/node_modules/@babel/core/lib/transformation/index.js @@ -17,7 +17,6 @@ var _normalizeOpts = require("./normalize-opts.js"); var _normalizeFile = require("./normalize-file.js"); var _generate = require("./file/generate.js"); var _deepArray = require("../config/helpers/deep-array.js"); -var _async = require("../gensync-utils/async.js"); function* run(config, code, ast) { const file = yield* (0, _normalizeFile.default)(config.passes, (0, _normalizeOpts.default)(config), code, ast); const opts = file.opts; @@ -58,21 +57,24 @@ function* run(config, code, ast) { }; } function* transformFile(file, pluginPasses) { - const async = yield* (0, _async.isAsync)(); for (const pluginPairs of pluginPasses) { const passPairs = []; const passes = []; const visitors = []; for (const plugin of pluginPairs.concat([(0, _blockHoistPlugin.default)()])) { - const pass = new _pluginPass.default(file, plugin.key, plugin.options, async); + const pass = new _pluginPass.default(file, plugin.key, plugin.options); passPairs.push([plugin, pass]); passes.push(pass); visitors.push(plugin.visitor); } for (const [plugin, pass] of passPairs) { - if (plugin.pre) { - const fn = (0, _async.maybeAsync)(plugin.pre, `You appear to be using an async plugin/preset, but Babel has been called synchronously`); - yield* fn.call(pass, file); + const fn = plugin.pre; + if (fn) { + const result = fn.call(pass, file); + yield* []; + if (isThenable(result)) { + throw new Error(`You appear to be using an plugin with an async .pre, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } } } const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod); @@ -80,13 +82,20 @@ function* transformFile(file, pluginPasses) { (0, _traverse().default)(file.ast, visitor, file.scope); } for (const [plugin, pass] of passPairs) { - if (plugin.post) { - const fn = (0, _async.maybeAsync)(plugin.post, `You appear to be using an async plugin/preset, but Babel has been called synchronously`); - yield* fn.call(pass, file); + const fn = plugin.post; + if (fn) { + const result = fn.call(pass, file); + yield* []; + if (isThenable(result)) { + throw new Error(`You appear to be using an plugin with an async .post, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } } } } } +function isThenable(val) { + return !!val && (typeof val === "object" || typeof val === "function") && !!val.then && typeof val.then === "function"; +} 0 && 0; //# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/core/lib/transformation/index.js.map b/node_modules/@babel/core/lib/transformation/index.js.map index 2d3ea15d0..a1364e60f 100644 --- a/node_modules/@babel/core/lib/transformation/index.js.map +++ b/node_modules/@babel/core/lib/transformation/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_traverse","data","require","_pluginPass","_blockHoistPlugin","_normalizeOpts","_normalizeFile","_generate","_deepArray","_async","run","config","code","ast","file","normalizeFile","passes","normalizeOptions","opts","transformFile","e","_opts$filename","message","filename","outputCode","outputMap","generateCode","_opts$filename2","metadata","options","undefined","map","sourceType","program","externalDependencies","flattenToSet","pluginPasses","async","isAsync","pluginPairs","passPairs","visitors","plugin","concat","loadBlockHoistPlugin","pass","PluginPass","key","push","visitor","pre","fn","maybeAsync","call","traverse","merge","wrapPluginVisitorMethod","scope","post"],"sources":["../../src/transformation/index.ts"],"sourcesContent":["import traverse from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\nimport type { GeneratorResult } from \"@babel/generator\";\n\nimport type { Handler } from \"gensync\";\n\nimport type { ResolvedConfig, Plugin, PluginPasses } from \"../config/index.ts\";\n\nimport PluginPass from \"./plugin-pass.ts\";\nimport loadBlockHoistPlugin from \"./block-hoist-plugin.ts\";\nimport normalizeOptions from \"./normalize-opts.ts\";\nimport normalizeFile from \"./normalize-file.ts\";\n\nimport generateCode from \"./file/generate.ts\";\nimport type File from \"./file/file.ts\";\n\nimport { flattenToSet } from \"../config/helpers/deep-array.ts\";\nimport { isAsync, maybeAsync } from \"../gensync-utils/async.ts\";\n\nexport type FileResultCallback = {\n (err: Error, file: null): void;\n (err: null, file: FileResult | null): void;\n};\n\nexport type FileResult = {\n metadata: { [key: string]: any };\n options: { [key: string]: any };\n ast: t.File | null;\n code: string | null;\n map: GeneratorResult[\"map\"] | null;\n sourceType: \"script\" | \"module\";\n externalDependencies: Set;\n};\n\nexport function* run(\n config: ResolvedConfig,\n code: string,\n ast?: t.File | t.Program | null,\n): Handler {\n const file = yield* normalizeFile(\n config.passes,\n normalizeOptions(config),\n code,\n ast,\n );\n\n const opts = file.opts;\n try {\n yield* transformFile(file, config.passes);\n } catch (e) {\n e.message = `${opts.filename ?? \"unknown file\"}: ${e.message}`;\n if (!e.code) {\n e.code = \"BABEL_TRANSFORM_ERROR\";\n }\n throw e;\n }\n\n let outputCode, outputMap;\n try {\n if (opts.code !== false) {\n ({ outputCode, outputMap } = generateCode(config.passes, file));\n }\n } catch (e) {\n e.message = `${opts.filename ?? \"unknown file\"}: ${e.message}`;\n if (!e.code) {\n e.code = \"BABEL_GENERATE_ERROR\";\n }\n throw e;\n }\n\n return {\n metadata: file.metadata,\n options: opts,\n ast: opts.ast === true ? file.ast : null,\n code: outputCode === undefined ? null : outputCode,\n map: outputMap === undefined ? null : outputMap,\n sourceType: file.ast.program.sourceType,\n externalDependencies: flattenToSet(config.externalDependencies),\n };\n}\n\nfunction* transformFile(file: File, pluginPasses: PluginPasses): Handler {\n const async = yield* isAsync();\n\n for (const pluginPairs of pluginPasses) {\n const passPairs: [Plugin, PluginPass][] = [];\n const passes = [];\n const visitors = [];\n\n for (const plugin of pluginPairs.concat([loadBlockHoistPlugin()])) {\n const pass = new PluginPass(file, plugin.key, plugin.options, async);\n\n passPairs.push([plugin, pass]);\n passes.push(pass);\n visitors.push(plugin.visitor);\n }\n\n for (const [plugin, pass] of passPairs) {\n if (plugin.pre) {\n const fn = maybeAsync(\n plugin.pre,\n `You appear to be using an async plugin/preset, but Babel has been called synchronously`,\n );\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n yield* fn.call(pass, file);\n }\n }\n\n // merge all plugin visitors into a single visitor\n const visitor = traverse.visitors.merge(\n visitors,\n passes,\n file.opts.wrapPluginVisitorMethod,\n );\n if (process.env.BABEL_8_BREAKING) {\n traverse(file.ast.program, visitor, file.scope, null, file.path, true);\n } else {\n traverse(file.ast, visitor, file.scope);\n }\n\n for (const [plugin, pass] of passPairs) {\n if (plugin.post) {\n const fn = maybeAsync(\n plugin.post,\n `You appear to be using an async plugin/preset, but Babel has been called synchronously`,\n );\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n yield* fn.call(pass, file);\n }\n }\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,IAAAE,WAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAGA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAiBO,UAAUQ,GAAGA,CAClBC,MAAsB,EACtBC,IAAY,EACZC,GAA+B,EACV;EACrB,MAAMC,IAAI,GAAG,OAAO,IAAAC,sBAAa,EAC/BJ,MAAM,CAACK,MAAM,EACb,IAAAC,sBAAgB,EAACN,MAAM,CAAC,EACxBC,IAAI,EACJC,GACF,CAAC;EAED,MAAMK,IAAI,GAAGJ,IAAI,CAACI,IAAI;EACtB,IAAI;IACF,OAAOC,aAAa,CAACL,IAAI,EAAEH,MAAM,CAACK,MAAM,CAAC;EAC3C,CAAC,CAAC,OAAOI,CAAC,EAAE;IAAA,IAAAC,cAAA;IACVD,CAAC,CAACE,OAAO,GAAG,IAAAD,cAAA,GAAGH,IAAI,CAACK,QAAQ,YAAAF,cAAA,GAAI,cAAc,KAAKD,CAAC,CAACE,OAAO,EAAE;IAC9D,IAAI,CAACF,CAAC,CAACR,IAAI,EAAE;MACXQ,CAAC,CAACR,IAAI,GAAG,uBAAuB;IAClC;IACA,MAAMQ,CAAC;EACT;EAEA,IAAII,UAAU,EAAEC,SAAS;EACzB,IAAI;IACF,IAAIP,IAAI,CAACN,IAAI,KAAK,KAAK,EAAE;MACvB,CAAC;QAAEY,UAAU;QAAEC;MAAU,CAAC,GAAG,IAAAC,iBAAY,EAACf,MAAM,CAACK,MAAM,EAAEF,IAAI,CAAC;IAChE;EACF,CAAC,CAAC,OAAOM,CAAC,EAAE;IAAA,IAAAO,eAAA;IACVP,CAAC,CAACE,OAAO,GAAG,IAAAK,eAAA,GAAGT,IAAI,CAACK,QAAQ,YAAAI,eAAA,GAAI,cAAc,KAAKP,CAAC,CAACE,OAAO,EAAE;IAC9D,IAAI,CAACF,CAAC,CAACR,IAAI,EAAE;MACXQ,CAAC,CAACR,IAAI,GAAG,sBAAsB;IACjC;IACA,MAAMQ,CAAC;EACT;EAEA,OAAO;IACLQ,QAAQ,EAAEd,IAAI,CAACc,QAAQ;IACvBC,OAAO,EAAEX,IAAI;IACbL,GAAG,EAAEK,IAAI,CAACL,GAAG,KAAK,IAAI,GAAGC,IAAI,CAACD,GAAG,GAAG,IAAI;IACxCD,IAAI,EAAEY,UAAU,KAAKM,SAAS,GAAG,IAAI,GAAGN,UAAU;IAClDO,GAAG,EAAEN,SAAS,KAAKK,SAAS,GAAG,IAAI,GAAGL,SAAS;IAC/CO,UAAU,EAAElB,IAAI,CAACD,GAAG,CAACoB,OAAO,CAACD,UAAU;IACvCE,oBAAoB,EAAE,IAAAC,uBAAY,EAACxB,MAAM,CAACuB,oBAAoB;EAChE,CAAC;AACH;AAEA,UAAUf,aAAaA,CAACL,IAAU,EAAEsB,YAA0B,EAAiB;EAC7E,MAAMC,KAAK,GAAG,OAAO,IAAAC,cAAO,EAAC,CAAC;EAE9B,KAAK,MAAMC,WAAW,IAAIH,YAAY,EAAE;IACtC,MAAMI,SAAiC,GAAG,EAAE;IAC5C,MAAMxB,MAAM,GAAG,EAAE;IACjB,MAAMyB,QAAQ,GAAG,EAAE;IAEnB,KAAK,MAAMC,MAAM,IAAIH,WAAW,CAACI,MAAM,CAAC,CAAC,IAAAC,yBAAoB,EAAC,CAAC,CAAC,CAAC,EAAE;MACjE,MAAMC,IAAI,GAAG,IAAIC,mBAAU,CAAChC,IAAI,EAAE4B,MAAM,CAACK,GAAG,EAAEL,MAAM,CAACb,OAAO,EAAEQ,KAAK,CAAC;MAEpEG,SAAS,CAACQ,IAAI,CAAC,CAACN,MAAM,EAAEG,IAAI,CAAC,CAAC;MAC9B7B,MAAM,CAACgC,IAAI,CAACH,IAAI,CAAC;MACjBJ,QAAQ,CAACO,IAAI,CAACN,MAAM,CAACO,OAAO,CAAC;IAC/B;IAEA,KAAK,MAAM,CAACP,MAAM,EAAEG,IAAI,CAAC,IAAIL,SAAS,EAAE;MACtC,IAAIE,MAAM,CAACQ,GAAG,EAAE;QACd,MAAMC,EAAE,GAAG,IAAAC,iBAAU,EACnBV,MAAM,CAACQ,GAAG,EACV,wFACF,CAAC;QAGD,OAAOC,EAAE,CAACE,IAAI,CAACR,IAAI,EAAE/B,IAAI,CAAC;MAC5B;IACF;IAGA,MAAMmC,OAAO,GAAGK,mBAAQ,CAACb,QAAQ,CAACc,KAAK,CACrCd,QAAQ,EACRzB,MAAM,EACNF,IAAI,CAACI,IAAI,CAACsC,uBACZ,CAAC;IAGM;MACL,IAAAF,mBAAQ,EAACxC,IAAI,CAACD,GAAG,EAAEoC,OAAO,EAAEnC,IAAI,CAAC2C,KAAK,CAAC;IACzC;IAEA,KAAK,MAAM,CAACf,MAAM,EAAEG,IAAI,CAAC,IAAIL,SAAS,EAAE;MACtC,IAAIE,MAAM,CAACgB,IAAI,EAAE;QACf,MAAMP,EAAE,GAAG,IAAAC,iBAAU,EACnBV,MAAM,CAACgB,IAAI,EACX,wFACF,CAAC;QAGD,OAAOP,EAAE,CAACE,IAAI,CAACR,IAAI,EAAE/B,IAAI,CAAC;MAC5B;IACF;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_traverse","data","require","_pluginPass","_blockHoistPlugin","_normalizeOpts","_normalizeFile","_generate","_deepArray","run","config","code","ast","file","normalizeFile","passes","normalizeOptions","opts","transformFile","e","_opts$filename","message","filename","outputCode","outputMap","generateCode","_opts$filename2","metadata","options","undefined","map","sourceType","program","externalDependencies","flattenToSet","pluginPasses","pluginPairs","passPairs","visitors","plugin","concat","loadBlockHoistPlugin","pass","PluginPass","key","push","visitor","fn","pre","result","call","isThenable","Error","traverse","merge","wrapPluginVisitorMethod","scope","post","val","then"],"sources":["../../src/transformation/index.ts"],"sourcesContent":["import traverse from \"@babel/traverse\";\nimport type * as t from \"@babel/types\";\nimport type { GeneratorResult } from \"@babel/generator\";\n\nimport type { Handler } from \"gensync\";\n\nimport type { ResolvedConfig, Plugin, PluginPasses } from \"../config/index.ts\";\n\nimport PluginPass from \"./plugin-pass.ts\";\nimport loadBlockHoistPlugin from \"./block-hoist-plugin.ts\";\nimport normalizeOptions from \"./normalize-opts.ts\";\nimport normalizeFile from \"./normalize-file.ts\";\n\nimport generateCode from \"./file/generate.ts\";\nimport type File from \"./file/file.ts\";\n\nimport { flattenToSet } from \"../config/helpers/deep-array.ts\";\n\nexport type FileResultCallback = {\n (err: Error, file: null): void;\n (err: null, file: FileResult | null): void;\n};\n\nexport type FileResult = {\n metadata: { [key: string]: any };\n options: { [key: string]: any };\n ast: t.File | null;\n code: string | null;\n map: GeneratorResult[\"map\"] | null;\n sourceType: \"script\" | \"module\";\n externalDependencies: Set;\n};\n\nexport function* run(\n config: ResolvedConfig,\n code: string,\n ast?: t.File | t.Program | null,\n): Handler {\n const file = yield* normalizeFile(\n config.passes,\n normalizeOptions(config),\n code,\n ast,\n );\n\n const opts = file.opts;\n try {\n yield* transformFile(file, config.passes);\n } catch (e) {\n e.message = `${opts.filename ?? \"unknown file\"}: ${e.message}`;\n if (!e.code) {\n e.code = \"BABEL_TRANSFORM_ERROR\";\n }\n throw e;\n }\n\n let outputCode, outputMap;\n try {\n if (opts.code !== false) {\n ({ outputCode, outputMap } = generateCode(config.passes, file));\n }\n } catch (e) {\n e.message = `${opts.filename ?? \"unknown file\"}: ${e.message}`;\n if (!e.code) {\n e.code = \"BABEL_GENERATE_ERROR\";\n }\n throw e;\n }\n\n return {\n metadata: file.metadata,\n options: opts,\n ast: opts.ast === true ? file.ast : null,\n code: outputCode === undefined ? null : outputCode,\n map: outputMap === undefined ? null : outputMap,\n sourceType: file.ast.program.sourceType,\n externalDependencies: flattenToSet(config.externalDependencies),\n };\n}\n\nfunction* transformFile(file: File, pluginPasses: PluginPasses): Handler {\n for (const pluginPairs of pluginPasses) {\n const passPairs: [Plugin, PluginPass][] = [];\n const passes = [];\n const visitors = [];\n\n for (const plugin of pluginPairs.concat([loadBlockHoistPlugin()])) {\n const pass = new PluginPass(file, plugin.key, plugin.options);\n\n passPairs.push([plugin, pass]);\n passes.push(pass);\n visitors.push(plugin.visitor);\n }\n\n for (const [plugin, pass] of passPairs) {\n const fn = plugin.pre;\n if (fn) {\n // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression\n const result = fn.call(pass, file);\n\n // @ts-expect-error - If we want to support async .pre\n yield* [];\n\n if (isThenable(result)) {\n throw new Error(\n `You appear to be using an plugin with an async .pre, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n }\n }\n\n // merge all plugin visitors into a single visitor\n const visitor = traverse.visitors.merge(\n visitors,\n passes,\n file.opts.wrapPluginVisitorMethod,\n );\n if (process.env.BABEL_8_BREAKING) {\n traverse(file.ast.program, visitor, file.scope, null, file.path, true);\n } else {\n traverse(file.ast, visitor, file.scope);\n }\n\n for (const [plugin, pass] of passPairs) {\n const fn = plugin.post;\n if (fn) {\n // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression\n const result = fn.call(pass, file);\n\n // @ts-expect-error - If we want to support async .post\n yield* [];\n\n if (isThenable(result)) {\n throw new Error(\n `You appear to be using an plugin with an async .post, ` +\n `which your current version of Babel does not support. ` +\n `If you're using a published plugin, you may need to upgrade ` +\n `your @babel/core version.`,\n );\n }\n }\n }\n }\n}\n\nfunction isThenable>(val: any): val is T {\n return (\n !!val &&\n (typeof val === \"object\" || typeof val === \"function\") &&\n !!val.then &&\n typeof val.then === \"function\"\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,IAAAE,WAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAGA,IAAAM,UAAA,GAAAN,OAAA;AAiBO,UAAUO,GAAGA,CAClBC,MAAsB,EACtBC,IAAY,EACZC,GAA+B,EACV;EACrB,MAAMC,IAAI,GAAG,OAAO,IAAAC,sBAAa,EAC/BJ,MAAM,CAACK,MAAM,EACb,IAAAC,sBAAgB,EAACN,MAAM,CAAC,EACxBC,IAAI,EACJC,GACF,CAAC;EAED,MAAMK,IAAI,GAAGJ,IAAI,CAACI,IAAI;EACtB,IAAI;IACF,OAAOC,aAAa,CAACL,IAAI,EAAEH,MAAM,CAACK,MAAM,CAAC;EAC3C,CAAC,CAAC,OAAOI,CAAC,EAAE;IAAA,IAAAC,cAAA;IACVD,CAAC,CAACE,OAAO,GAAG,IAAAD,cAAA,GAAGH,IAAI,CAACK,QAAQ,YAAAF,cAAA,GAAI,cAAc,KAAKD,CAAC,CAACE,OAAO,EAAE;IAC9D,IAAI,CAACF,CAAC,CAACR,IAAI,EAAE;MACXQ,CAAC,CAACR,IAAI,GAAG,uBAAuB;IAClC;IACA,MAAMQ,CAAC;EACT;EAEA,IAAII,UAAU,EAAEC,SAAS;EACzB,IAAI;IACF,IAAIP,IAAI,CAACN,IAAI,KAAK,KAAK,EAAE;MACvB,CAAC;QAAEY,UAAU;QAAEC;MAAU,CAAC,GAAG,IAAAC,iBAAY,EAACf,MAAM,CAACK,MAAM,EAAEF,IAAI,CAAC;IAChE;EACF,CAAC,CAAC,OAAOM,CAAC,EAAE;IAAA,IAAAO,eAAA;IACVP,CAAC,CAACE,OAAO,GAAG,IAAAK,eAAA,GAAGT,IAAI,CAACK,QAAQ,YAAAI,eAAA,GAAI,cAAc,KAAKP,CAAC,CAACE,OAAO,EAAE;IAC9D,IAAI,CAACF,CAAC,CAACR,IAAI,EAAE;MACXQ,CAAC,CAACR,IAAI,GAAG,sBAAsB;IACjC;IACA,MAAMQ,CAAC;EACT;EAEA,OAAO;IACLQ,QAAQ,EAAEd,IAAI,CAACc,QAAQ;IACvBC,OAAO,EAAEX,IAAI;IACbL,GAAG,EAAEK,IAAI,CAACL,GAAG,KAAK,IAAI,GAAGC,IAAI,CAACD,GAAG,GAAG,IAAI;IACxCD,IAAI,EAAEY,UAAU,KAAKM,SAAS,GAAG,IAAI,GAAGN,UAAU;IAClDO,GAAG,EAAEN,SAAS,KAAKK,SAAS,GAAG,IAAI,GAAGL,SAAS;IAC/CO,UAAU,EAAElB,IAAI,CAACD,GAAG,CAACoB,OAAO,CAACD,UAAU;IACvCE,oBAAoB,EAAE,IAAAC,uBAAY,EAACxB,MAAM,CAACuB,oBAAoB;EAChE,CAAC;AACH;AAEA,UAAUf,aAAaA,CAACL,IAAU,EAAEsB,YAA0B,EAAiB;EAC7E,KAAK,MAAMC,WAAW,IAAID,YAAY,EAAE;IACtC,MAAME,SAAiC,GAAG,EAAE;IAC5C,MAAMtB,MAAM,GAAG,EAAE;IACjB,MAAMuB,QAAQ,GAAG,EAAE;IAEnB,KAAK,MAAMC,MAAM,IAAIH,WAAW,CAACI,MAAM,CAAC,CAAC,IAAAC,yBAAoB,EAAC,CAAC,CAAC,CAAC,EAAE;MACjE,MAAMC,IAAI,GAAG,IAAIC,mBAAU,CAAC9B,IAAI,EAAE0B,MAAM,CAACK,GAAG,EAAEL,MAAM,CAACX,OAAO,CAAC;MAE7DS,SAAS,CAACQ,IAAI,CAAC,CAACN,MAAM,EAAEG,IAAI,CAAC,CAAC;MAC9B3B,MAAM,CAAC8B,IAAI,CAACH,IAAI,CAAC;MACjBJ,QAAQ,CAACO,IAAI,CAACN,MAAM,CAACO,OAAO,CAAC;IAC/B;IAEA,KAAK,MAAM,CAACP,MAAM,EAAEG,IAAI,CAAC,IAAIL,SAAS,EAAE;MACtC,MAAMU,EAAE,GAAGR,MAAM,CAACS,GAAG;MACrB,IAAID,EAAE,EAAE;QAEN,MAAME,MAAM,GAAGF,EAAE,CAACG,IAAI,CAACR,IAAI,EAAE7B,IAAI,CAAC;QAGlC,OAAO,EAAE;QAET,IAAIsC,UAAU,CAACF,MAAM,CAAC,EAAE;UACtB,MAAM,IAAIG,KAAK,CACb,uDAAuD,GACrD,wDAAwD,GACxD,8DAA8D,GAC9D,2BACJ,CAAC;QACH;MACF;IACF;IAGA,MAAMN,OAAO,GAAGO,mBAAQ,CAACf,QAAQ,CAACgB,KAAK,CACrChB,QAAQ,EACRvB,MAAM,EACNF,IAAI,CAACI,IAAI,CAACsC,uBACZ,CAAC;IAGM;MACL,IAAAF,mBAAQ,EAACxC,IAAI,CAACD,GAAG,EAAEkC,OAAO,EAAEjC,IAAI,CAAC2C,KAAK,CAAC;IACzC;IAEA,KAAK,MAAM,CAACjB,MAAM,EAAEG,IAAI,CAAC,IAAIL,SAAS,EAAE;MACtC,MAAMU,EAAE,GAAGR,MAAM,CAACkB,IAAI;MACtB,IAAIV,EAAE,EAAE;QAEN,MAAME,MAAM,GAAGF,EAAE,CAACG,IAAI,CAACR,IAAI,EAAE7B,IAAI,CAAC;QAGlC,OAAO,EAAE;QAET,IAAIsC,UAAU,CAACF,MAAM,CAAC,EAAE;UACtB,MAAM,IAAIG,KAAK,CACb,wDAAwD,GACtD,wDAAwD,GACxD,8DAA8D,GAC9D,2BACJ,CAAC;QACH;MACF;IACF;EACF;AACF;AAEA,SAASD,UAAUA,CAA6BO,GAAQ,EAAY;EAClE,OACE,CAAC,CAACA,GAAG,KACJ,OAAOA,GAAG,KAAK,QAAQ,IAAI,OAAOA,GAAG,KAAK,UAAU,CAAC,IACtD,CAAC,CAACA,GAAG,CAACC,IAAI,IACV,OAAOD,GAAG,CAACC,IAAI,KAAK,UAAU;AAElC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/normalize-file.js.map b/node_modules/@babel/core/lib/transformation/normalize-file.js.map index e591c7b15..6456f57b6 100644 --- a/node_modules/@babel/core/lib/transformation/normalize-file.js.map +++ b/node_modules/@babel/core/lib/transformation/normalize-file.js.map @@ -1 +1 @@ -{"version":3,"names":["_fs","data","require","_path","_debug","_t","_convertSourceMap","_file","_index","_cloneDeep","file","traverseFast","debug","buildDebug","INLINE_SOURCEMAP_REGEX","EXTERNAL_SOURCEMAP_REGEX","normalizeFile","pluginPasses","options","code","ast","type","Error","cloneInputAst","cloneDeep","parser","inputMap","inputSourceMap","convertSourceMap","fromObject","lastComment","extractComments","fromComment","err","filename","match","exec","inputMapContent","fs","readFileSync","path","resolve","dirname","fromJSON","File","extractCommentsFromList","regex","comments","filter","value","test","node","leadingComments","innerComments","trailingComments"],"sources":["../../src/transformation/normalize-file.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport path from \"node:path\";\nimport buildDebug from \"debug\";\nimport type { Handler } from \"gensync\";\nimport { file, traverseFast } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { PluginPasses } from \"../config/index.ts\";\nimport convertSourceMap from \"convert-source-map\";\nimport type { SourceMapConverter as Converter } from \"convert-source-map\";\nimport File from \"./file/file.ts\";\nimport parser from \"../parser/index.ts\";\nimport cloneDeep from \"./util/clone-deep.ts\";\n\nconst debug = buildDebug(\"babel:transform:file\");\n\n// These regexps are copied from the convert-source-map package,\n// but without // or /* at the beginning of the comment.\n\nconst INLINE_SOURCEMAP_REGEX =\n /^[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+?;)?base64,.*$/;\nconst EXTERNAL_SOURCEMAP_REGEX =\n /^[@#][ \\t]+sourceMappingURL=([^\\s'\"`]+)[ \\t]*$/;\n\nexport type NormalizedFile = {\n code: string;\n ast: t.File;\n inputMap: Converter | null;\n};\n\nexport default function* normalizeFile(\n pluginPasses: PluginPasses,\n options: { [key: string]: any },\n code: string,\n ast?: t.File | t.Program | null,\n): Handler {\n code = `${code || \"\"}`;\n\n if (ast) {\n if (ast.type === \"Program\") {\n ast = file(ast, [], []);\n } else if (ast.type !== \"File\") {\n throw new Error(\"AST root must be a Program or File node\");\n }\n\n if (options.cloneInputAst) {\n ast = cloneDeep(ast);\n }\n } else {\n ast = yield* parser(pluginPasses, options, code);\n }\n\n let inputMap = null;\n if (options.inputSourceMap !== false) {\n // If an explicit object is passed in, it overrides the processing of\n // source maps that may be in the file itself.\n if (typeof options.inputSourceMap === \"object\") {\n inputMap = convertSourceMap.fromObject(options.inputSourceMap);\n }\n\n if (!inputMap) {\n const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast);\n if (lastComment) {\n try {\n inputMap = convertSourceMap.fromComment(\"//\" + lastComment);\n } catch (err) {\n if (process.env.BABEL_8_BREAKING) {\n console.warn(\n \"discarding unknown inline input sourcemap\",\n options.filename,\n err,\n );\n } else {\n debug(\"discarding unknown inline input sourcemap\");\n }\n }\n }\n }\n\n if (!inputMap) {\n const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);\n if (typeof options.filename === \"string\" && lastComment) {\n try {\n // when `lastComment` is non-null, EXTERNAL_SOURCEMAP_REGEX must have matches\n const match: [string, string] = EXTERNAL_SOURCEMAP_REGEX.exec(\n lastComment,\n ) as any;\n const inputMapContent = fs.readFileSync(\n path.resolve(path.dirname(options.filename), match[1]),\n \"utf8\",\n );\n inputMap = convertSourceMap.fromJSON(inputMapContent);\n } catch (err) {\n debug(\"discarding unknown file input sourcemap\", err);\n }\n } else if (lastComment) {\n debug(\"discarding un-loadable file input sourcemap\");\n }\n }\n }\n\n return new File(options, {\n code,\n ast: ast,\n inputMap,\n });\n}\n\nfunction extractCommentsFromList(\n regex: RegExp,\n comments: t.Comment[],\n lastComment: string | null,\n): [t.Comment[], string | null] {\n if (comments) {\n comments = comments.filter(({ value }) => {\n if (regex.test(value)) {\n lastComment = value;\n return false;\n }\n return true;\n });\n }\n return [comments, lastComment];\n}\n\nfunction extractComments(regex: RegExp, ast: t.Node) {\n let lastComment: string = null;\n traverseFast(ast, node => {\n [node.leadingComments, lastComment] = extractCommentsFromList(\n regex,\n node.leadingComments,\n lastComment,\n );\n [node.innerComments, lastComment] = extractCommentsFromList(\n regex,\n node.innerComments,\n lastComment,\n );\n [node.trailingComments, lastComment] = extractCommentsFromList(\n regex,\n node.trailingComments,\n lastComment,\n );\n });\n return lastComment;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,GAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,EAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,kBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAA6C;EAPpCQ,IAAI;EAAEC;AAAY,IAAAN,EAAA;AAS3B,MAAMO,KAAK,GAAGC,OAASA,CAAC,CAAC,sBAAsB,CAAC;AAKhD,MAAMC,sBAAsB,GAC1B,0FAA0F;AAC5F,MAAMC,wBAAwB,GAC5B,gDAAgD;AAQnC,UAAUC,aAAaA,CACpCC,YAA0B,EAC1BC,OAA+B,EAC/BC,IAAY,EACZC,GAA+B,EAChB;EACfD,IAAI,GAAG,GAAGA,IAAI,IAAI,EAAE,EAAE;EAEtB,IAAIC,GAAG,EAAE;IACP,IAAIA,GAAG,CAACC,IAAI,KAAK,SAAS,EAAE;MAC1BD,GAAG,GAAGV,IAAI,CAACU,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC,MAAM,IAAIA,GAAG,CAACC,IAAI,KAAK,MAAM,EAAE;MAC9B,MAAM,IAAIC,KAAK,CAAC,yCAAyC,CAAC;IAC5D;IAEA,IAAIJ,OAAO,CAACK,aAAa,EAAE;MACzBH,GAAG,GAAG,IAAAI,kBAAS,EAACJ,GAAG,CAAC;IACtB;EACF,CAAC,MAAM;IACLA,GAAG,GAAG,OAAO,IAAAK,cAAM,EAACR,YAAY,EAAEC,OAAO,EAAEC,IAAI,CAAC;EAClD;EAEA,IAAIO,QAAQ,GAAG,IAAI;EACnB,IAAIR,OAAO,CAACS,cAAc,KAAK,KAAK,EAAE;IAGpC,IAAI,OAAOT,OAAO,CAACS,cAAc,KAAK,QAAQ,EAAE;MAC9CD,QAAQ,GAAGE,kBAAeA,CAAC,CAACC,UAAU,CAACX,OAAO,CAACS,cAAc,CAAC;IAChE;IAEA,IAAI,CAACD,QAAQ,EAAE;MACb,MAAMI,WAAW,GAAGC,eAAe,CAACjB,sBAAsB,EAAEM,GAAG,CAAC;MAChE,IAAIU,WAAW,EAAE;QACf,IAAI;UACFJ,QAAQ,GAAGE,kBAAeA,CAAC,CAACI,WAAW,CAAC,IAAI,GAAGF,WAAW,CAAC;QAC7D,CAAC,CAAC,OAAOG,GAAG,EAAE;UAOL;YACLrB,KAAK,CAAC,2CAA2C,CAAC;UACpD;QACF;MACF;IACF;IAEA,IAAI,CAACc,QAAQ,EAAE;MACb,MAAMI,WAAW,GAAGC,eAAe,CAAChB,wBAAwB,EAAEK,GAAG,CAAC;MAClE,IAAI,OAAOF,OAAO,CAACgB,QAAQ,KAAK,QAAQ,IAAIJ,WAAW,EAAE;QACvD,IAAI;UAEF,MAAMK,KAAuB,GAAGpB,wBAAwB,CAACqB,IAAI,CAC3DN,WACF,CAAQ;UACR,MAAMO,eAAe,GAAGC,IAACA,CAAC,CAACC,YAAY,CACrCC,MAAGA,CAAC,CAACC,OAAO,CAACD,MAAGA,CAAC,CAACE,OAAO,CAACxB,OAAO,CAACgB,QAAQ,CAAC,EAAEC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,MACF,CAAC;UACDT,QAAQ,GAAGE,kBAAeA,CAAC,CAACe,QAAQ,CAACN,eAAe,CAAC;QACvD,CAAC,CAAC,OAAOJ,GAAG,EAAE;UACZrB,KAAK,CAAC,yCAAyC,EAAEqB,GAAG,CAAC;QACvD;MACF,CAAC,MAAM,IAAIH,WAAW,EAAE;QACtBlB,KAAK,CAAC,6CAA6C,CAAC;MACtD;IACF;EACF;EAEA,OAAO,IAAIgC,aAAI,CAAC1B,OAAO,EAAE;IACvBC,IAAI;IACJC,GAAG,EAAEA,GAAG;IACRM;EACF,CAAC,CAAC;AACJ;AAEA,SAASmB,uBAAuBA,CAC9BC,KAAa,EACbC,QAAqB,EACrBjB,WAA0B,EACI;EAC9B,IAAIiB,QAAQ,EAAE;IACZA,QAAQ,GAAGA,QAAQ,CAACC,MAAM,CAAC,CAAC;MAAEC;IAAM,CAAC,KAAK;MACxC,IAAIH,KAAK,CAACI,IAAI,CAACD,KAAK,CAAC,EAAE;QACrBnB,WAAW,GAAGmB,KAAK;QACnB,OAAO,KAAK;MACd;MACA,OAAO,IAAI;IACb,CAAC,CAAC;EACJ;EACA,OAAO,CAACF,QAAQ,EAAEjB,WAAW,CAAC;AAChC;AAEA,SAASC,eAAeA,CAACe,KAAa,EAAE1B,GAAW,EAAE;EACnD,IAAIU,WAAmB,GAAG,IAAI;EAC9BnB,YAAY,CAACS,GAAG,EAAE+B,IAAI,IAAI;IACxB,CAACA,IAAI,CAACC,eAAe,EAAEtB,WAAW,CAAC,GAAGe,uBAAuB,CAC3DC,KAAK,EACLK,IAAI,CAACC,eAAe,EACpBtB,WACF,CAAC;IACD,CAACqB,IAAI,CAACE,aAAa,EAAEvB,WAAW,CAAC,GAAGe,uBAAuB,CACzDC,KAAK,EACLK,IAAI,CAACE,aAAa,EAClBvB,WACF,CAAC;IACD,CAACqB,IAAI,CAACG,gBAAgB,EAAExB,WAAW,CAAC,GAAGe,uBAAuB,CAC5DC,KAAK,EACLK,IAAI,CAACG,gBAAgB,EACrBxB,WACF,CAAC;EACH,CAAC,CAAC;EACF,OAAOA,WAAW;AACpB;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_fs","data","require","_path","_debug","_t","_convertSourceMap","_file","_index","_cloneDeep","file","traverseFast","debug","buildDebug","INLINE_SOURCEMAP_REGEX","EXTERNAL_SOURCEMAP_REGEX","normalizeFile","pluginPasses","options","code","ast","type","Error","cloneInputAst","cloneDeep","parser","inputMap","inputSourceMap","convertSourceMap","fromObject","lastComment","extractComments","fromComment","err","filename","match","exec","inputMapContent","fs","readFileSync","path","resolve","dirname","fromJSON","File","extractCommentsFromList","regex","comments","filter","value","test","node","leadingComments","innerComments","trailingComments"],"sources":["../../src/transformation/normalize-file.ts"],"sourcesContent":["import fs from \"fs\";\nimport path from \"path\";\nimport buildDebug from \"debug\";\nimport type { Handler } from \"gensync\";\nimport { file, traverseFast } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport type { PluginPasses } from \"../config/index.ts\";\nimport convertSourceMap from \"convert-source-map\";\nimport type { SourceMapConverter as Converter } from \"convert-source-map\";\nimport File from \"./file/file.ts\";\nimport parser from \"../parser/index.ts\";\nimport cloneDeep from \"./util/clone-deep.ts\";\n\nconst debug = buildDebug(\"babel:transform:file\");\n\n// These regexps are copied from the convert-source-map package,\n// but without // or /* at the beginning of the comment.\n\nconst INLINE_SOURCEMAP_REGEX =\n /^[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+?;)?base64,.*$/;\nconst EXTERNAL_SOURCEMAP_REGEX =\n /^[@#][ \\t]+sourceMappingURL=([^\\s'\"`]+)[ \\t]*$/;\n\nexport type NormalizedFile = {\n code: string;\n ast: t.File;\n inputMap: Converter | null;\n};\n\nexport default function* normalizeFile(\n pluginPasses: PluginPasses,\n options: { [key: string]: any },\n code: string,\n ast?: t.File | t.Program | null,\n): Handler {\n code = `${code || \"\"}`;\n\n if (ast) {\n if (ast.type === \"Program\") {\n ast = file(ast, [], []);\n } else if (ast.type !== \"File\") {\n throw new Error(\"AST root must be a Program or File node\");\n }\n\n if (options.cloneInputAst) {\n ast = cloneDeep(ast);\n }\n } else {\n // @ts-expect-error todo: use babel-types ast typings in Babel parser\n ast = yield* parser(pluginPasses, options, code);\n }\n\n let inputMap = null;\n if (options.inputSourceMap !== false) {\n // If an explicit object is passed in, it overrides the processing of\n // source maps that may be in the file itself.\n if (typeof options.inputSourceMap === \"object\") {\n inputMap = convertSourceMap.fromObject(options.inputSourceMap);\n }\n\n if (!inputMap) {\n const lastComment = extractComments(INLINE_SOURCEMAP_REGEX, ast);\n if (lastComment) {\n try {\n inputMap = convertSourceMap.fromComment(\"//\" + lastComment);\n } catch (err) {\n if (process.env.BABEL_8_BREAKING) {\n console.warn(\n \"discarding unknown inline input sourcemap\",\n options.filename,\n err,\n );\n } else {\n debug(\"discarding unknown inline input sourcemap\");\n }\n }\n }\n }\n\n if (!inputMap) {\n const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);\n if (typeof options.filename === \"string\" && lastComment) {\n try {\n // when `lastComment` is non-null, EXTERNAL_SOURCEMAP_REGEX must have matches\n const match: [string, string] = EXTERNAL_SOURCEMAP_REGEX.exec(\n lastComment,\n ) as any;\n const inputMapContent = fs.readFileSync(\n path.resolve(path.dirname(options.filename), match[1]),\n \"utf8\",\n );\n inputMap = convertSourceMap.fromJSON(inputMapContent);\n } catch (err) {\n debug(\"discarding unknown file input sourcemap\", err);\n }\n } else if (lastComment) {\n debug(\"discarding un-loadable file input sourcemap\");\n }\n }\n }\n\n return new File(options, {\n code,\n ast: ast as t.File,\n inputMap,\n });\n}\n\nfunction extractCommentsFromList(\n regex: RegExp,\n comments: t.Comment[],\n lastComment: string | null,\n): [t.Comment[], string | null] {\n if (comments) {\n comments = comments.filter(({ value }) => {\n if (regex.test(value)) {\n lastComment = value;\n return false;\n }\n return true;\n });\n }\n return [comments, lastComment];\n}\n\nfunction extractComments(regex: RegExp, ast: t.Node) {\n let lastComment: string = null;\n traverseFast(ast, node => {\n [node.leadingComments, lastComment] = extractCommentsFromList(\n regex,\n node.leadingComments,\n lastComment,\n );\n [node.innerComments, lastComment] = extractCommentsFromList(\n regex,\n node.innerComments,\n lastComment,\n );\n [node.trailingComments, lastComment] = extractCommentsFromList(\n regex,\n node.trailingComments,\n lastComment,\n );\n });\n return lastComment;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,GAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,EAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,kBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAM,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAA6C;EAPpCQ,IAAI;EAAEC;AAAY,IAAAN,EAAA;AAS3B,MAAMO,KAAK,GAAGC,OAASA,CAAC,CAAC,sBAAsB,CAAC;AAKhD,MAAMC,sBAAsB,GAC1B,0FAA0F;AAC5F,MAAMC,wBAAwB,GAC5B,gDAAgD;AAQnC,UAAUC,aAAaA,CACpCC,YAA0B,EAC1BC,OAA+B,EAC/BC,IAAY,EACZC,GAA+B,EAChB;EACfD,IAAI,GAAG,GAAGA,IAAI,IAAI,EAAE,EAAE;EAEtB,IAAIC,GAAG,EAAE;IACP,IAAIA,GAAG,CAACC,IAAI,KAAK,SAAS,EAAE;MAC1BD,GAAG,GAAGV,IAAI,CAACU,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC;IACzB,CAAC,MAAM,IAAIA,GAAG,CAACC,IAAI,KAAK,MAAM,EAAE;MAC9B,MAAM,IAAIC,KAAK,CAAC,yCAAyC,CAAC;IAC5D;IAEA,IAAIJ,OAAO,CAACK,aAAa,EAAE;MACzBH,GAAG,GAAG,IAAAI,kBAAS,EAACJ,GAAG,CAAC;IACtB;EACF,CAAC,MAAM;IAELA,GAAG,GAAG,OAAO,IAAAK,cAAM,EAACR,YAAY,EAAEC,OAAO,EAAEC,IAAI,CAAC;EAClD;EAEA,IAAIO,QAAQ,GAAG,IAAI;EACnB,IAAIR,OAAO,CAACS,cAAc,KAAK,KAAK,EAAE;IAGpC,IAAI,OAAOT,OAAO,CAACS,cAAc,KAAK,QAAQ,EAAE;MAC9CD,QAAQ,GAAGE,kBAAeA,CAAC,CAACC,UAAU,CAACX,OAAO,CAACS,cAAc,CAAC;IAChE;IAEA,IAAI,CAACD,QAAQ,EAAE;MACb,MAAMI,WAAW,GAAGC,eAAe,CAACjB,sBAAsB,EAAEM,GAAG,CAAC;MAChE,IAAIU,WAAW,EAAE;QACf,IAAI;UACFJ,QAAQ,GAAGE,kBAAeA,CAAC,CAACI,WAAW,CAAC,IAAI,GAAGF,WAAW,CAAC;QAC7D,CAAC,CAAC,OAAOG,GAAG,EAAE;UAOL;YACLrB,KAAK,CAAC,2CAA2C,CAAC;UACpD;QACF;MACF;IACF;IAEA,IAAI,CAACc,QAAQ,EAAE;MACb,MAAMI,WAAW,GAAGC,eAAe,CAAChB,wBAAwB,EAAEK,GAAG,CAAC;MAClE,IAAI,OAAOF,OAAO,CAACgB,QAAQ,KAAK,QAAQ,IAAIJ,WAAW,EAAE;QACvD,IAAI;UAEF,MAAMK,KAAuB,GAAGpB,wBAAwB,CAACqB,IAAI,CAC3DN,WACF,CAAQ;UACR,MAAMO,eAAe,GAAGC,IAACA,CAAC,CAACC,YAAY,CACrCC,MAAGA,CAAC,CAACC,OAAO,CAACD,MAAGA,CAAC,CAACE,OAAO,CAACxB,OAAO,CAACgB,QAAQ,CAAC,EAAEC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,MACF,CAAC;UACDT,QAAQ,GAAGE,kBAAeA,CAAC,CAACe,QAAQ,CAACN,eAAe,CAAC;QACvD,CAAC,CAAC,OAAOJ,GAAG,EAAE;UACZrB,KAAK,CAAC,yCAAyC,EAAEqB,GAAG,CAAC;QACvD;MACF,CAAC,MAAM,IAAIH,WAAW,EAAE;QACtBlB,KAAK,CAAC,6CAA6C,CAAC;MACtD;IACF;EACF;EAEA,OAAO,IAAIgC,aAAI,CAAC1B,OAAO,EAAE;IACvBC,IAAI;IACJC,GAAG,EAAEA,GAAa;IAClBM;EACF,CAAC,CAAC;AACJ;AAEA,SAASmB,uBAAuBA,CAC9BC,KAAa,EACbC,QAAqB,EACrBjB,WAA0B,EACI;EAC9B,IAAIiB,QAAQ,EAAE;IACZA,QAAQ,GAAGA,QAAQ,CAACC,MAAM,CAAC,CAAC;MAAEC;IAAM,CAAC,KAAK;MACxC,IAAIH,KAAK,CAACI,IAAI,CAACD,KAAK,CAAC,EAAE;QACrBnB,WAAW,GAAGmB,KAAK;QACnB,OAAO,KAAK;MACd;MACA,OAAO,IAAI;IACb,CAAC,CAAC;EACJ;EACA,OAAO,CAACF,QAAQ,EAAEjB,WAAW,CAAC;AAChC;AAEA,SAASC,eAAeA,CAACe,KAAa,EAAE1B,GAAW,EAAE;EACnD,IAAIU,WAAmB,GAAG,IAAI;EAC9BnB,YAAY,CAACS,GAAG,EAAE+B,IAAI,IAAI;IACxB,CAACA,IAAI,CAACC,eAAe,EAAEtB,WAAW,CAAC,GAAGe,uBAAuB,CAC3DC,KAAK,EACLK,IAAI,CAACC,eAAe,EACpBtB,WACF,CAAC;IACD,CAACqB,IAAI,CAACE,aAAa,EAAEvB,WAAW,CAAC,GAAGe,uBAAuB,CACzDC,KAAK,EACLK,IAAI,CAACE,aAAa,EAClBvB,WACF,CAAC;IACD,CAACqB,IAAI,CAACG,gBAAgB,EAAExB,WAAW,CAAC,GAAGe,uBAAuB,CAC5DC,KAAK,EACLK,IAAI,CAACG,gBAAgB,EACrBxB,WACF,CAAC;EACH,CAAC,CAAC;EACF,OAAOA,WAAW;AACpB;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/normalize-opts.js.map b/node_modules/@babel/core/lib/transformation/normalize-opts.js.map index da09f019c..24121da9e 100644 --- a/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +++ b/node_modules/@babel/core/lib/transformation/normalize-opts.js.map @@ -1 +1 @@ -{"version":3,"names":["_path","data","require","normalizeOptions","config","filename","cwd","filenameRelative","path","relative","sourceType","inputSourceMap","sourceMaps","sourceRoot","options","moduleRoot","sourceFileName","basename","comments","compact","opts","Object","assign","parserOpts","extname","plugins","generatorOpts","auxiliaryCommentBefore","auxiliaryCommentAfter","retainLines","shouldPrintComment","minified","passes","plugin","manipulateOptions"],"sources":["../../src/transformation/normalize-opts.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { ResolvedConfig } from \"../config/index.ts\";\n\nexport default function normalizeOptions(config: ResolvedConfig) {\n const {\n filename,\n cwd,\n filenameRelative = typeof filename === \"string\"\n ? path.relative(cwd, filename)\n : \"unknown\",\n sourceType = \"module\",\n inputSourceMap,\n sourceMaps = !!inputSourceMap,\n sourceRoot = process.env.BABEL_8_BREAKING\n ? undefined\n : config.options.moduleRoot,\n\n sourceFileName = path.basename(filenameRelative),\n\n comments = true,\n compact = \"auto\",\n } = config.options;\n\n const opts = config.options;\n\n const options = {\n ...opts,\n\n parserOpts: {\n sourceType:\n path.extname(filenameRelative) === \".mjs\" ? \"module\" : sourceType,\n\n sourceFileName: filename,\n plugins: [],\n ...opts.parserOpts,\n },\n\n generatorOpts: {\n // General generator flags.\n filename,\n\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n retainLines: opts.retainLines,\n comments,\n shouldPrintComment: opts.shouldPrintComment,\n compact,\n minified: opts.minified,\n\n // Source-map generation flags.\n sourceMaps,\n\n sourceRoot,\n sourceFileName,\n ...opts.generatorOpts,\n },\n };\n\n for (const plugins of config.passes) {\n for (const plugin of plugins) {\n if (plugin.manipulateOptions) {\n plugin.manipulateOptions(options, options.parserOpts);\n }\n }\n }\n\n return options;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGe,SAASE,gBAAgBA,CAACC,MAAsB,EAAE;EAC/D,MAAM;IACJC,QAAQ;IACRC,GAAG;IACHC,gBAAgB,GAAG,OAAOF,QAAQ,KAAK,QAAQ,GAC3CG,MAAGA,CAAC,CAACC,QAAQ,CAACH,GAAG,EAAED,QAAQ,CAAC,GAC5B,SAAS;IACbK,UAAU,GAAG,QAAQ;IACrBC,cAAc;IACdC,UAAU,GAAG,CAAC,CAACD,cAAc;IAC7BE,UAAU,GAENT,MAAM,CAACU,OAAO,CAACC,UAAU;IAE7BC,cAAc,GAAGR,MAAGA,CAAC,CAACS,QAAQ,CAACV,gBAAgB,CAAC;IAEhDW,QAAQ,GAAG,IAAI;IACfC,OAAO,GAAG;EACZ,CAAC,GAAGf,MAAM,CAACU,OAAO;EAElB,MAAMM,IAAI,GAAGhB,MAAM,CAACU,OAAO;EAE3B,MAAMA,OAAO,GAAAO,MAAA,CAAAC,MAAA,KACRF,IAAI;IAEPG,UAAU,EAAAF,MAAA,CAAAC,MAAA;MACRZ,UAAU,EACRF,MAAGA,CAAC,CAACgB,OAAO,CAACjB,gBAAgB,CAAC,KAAK,MAAM,GAAG,QAAQ,GAAGG,UAAU;MAEnEM,cAAc,EAAEX,QAAQ;MACxBoB,OAAO,EAAE;IAAE,GACRL,IAAI,CAACG,UAAU,CACnB;IAEDG,aAAa,EAAAL,MAAA,CAAAC,MAAA;MAEXjB,QAAQ;MAERsB,sBAAsB,EAAEP,IAAI,CAACO,sBAAsB;MACnDC,qBAAqB,EAAER,IAAI,CAACQ,qBAAqB;MACjDC,WAAW,EAAET,IAAI,CAACS,WAAW;MAC7BX,QAAQ;MACRY,kBAAkB,EAAEV,IAAI,CAACU,kBAAkB;MAC3CX,OAAO;MACPY,QAAQ,EAAEX,IAAI,CAACW,QAAQ;MAGvBnB,UAAU;MAEVC,UAAU;MACVG;IAAc,GACXI,IAAI,CAACM,aAAa;EACtB,EACF;EAED,KAAK,MAAMD,OAAO,IAAIrB,MAAM,CAAC4B,MAAM,EAAE;IACnC,KAAK,MAAMC,MAAM,IAAIR,OAAO,EAAE;MAC5B,IAAIQ,MAAM,CAACC,iBAAiB,EAAE;QAC5BD,MAAM,CAACC,iBAAiB,CAACpB,OAAO,EAAEA,OAAO,CAACS,UAAU,CAAC;MACvD;IACF;EACF;EAEA,OAAOT,OAAO;AAChB;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_path","data","require","normalizeOptions","config","filename","cwd","filenameRelative","path","relative","sourceType","inputSourceMap","sourceMaps","sourceRoot","options","moduleRoot","sourceFileName","basename","comments","compact","opts","Object","assign","parserOpts","extname","plugins","generatorOpts","auxiliaryCommentBefore","auxiliaryCommentAfter","retainLines","shouldPrintComment","minified","passes","plugin","manipulateOptions"],"sources":["../../src/transformation/normalize-opts.ts"],"sourcesContent":["import path from \"path\";\nimport type { ResolvedConfig } from \"../config/index.ts\";\n\nexport default function normalizeOptions(config: ResolvedConfig) {\n const {\n filename,\n cwd,\n filenameRelative = typeof filename === \"string\"\n ? path.relative(cwd, filename)\n : \"unknown\",\n sourceType = \"module\",\n inputSourceMap,\n sourceMaps = !!inputSourceMap,\n sourceRoot = process.env.BABEL_8_BREAKING\n ? undefined\n : config.options.moduleRoot,\n\n sourceFileName = path.basename(filenameRelative),\n\n comments = true,\n compact = \"auto\",\n } = config.options;\n\n const opts = config.options;\n\n const options = {\n ...opts,\n\n parserOpts: {\n sourceType:\n path.extname(filenameRelative) === \".mjs\" ? \"module\" : sourceType,\n\n sourceFileName: filename,\n plugins: [],\n ...opts.parserOpts,\n },\n\n generatorOpts: {\n // General generator flags.\n filename,\n\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n retainLines: opts.retainLines,\n comments,\n shouldPrintComment: opts.shouldPrintComment,\n compact,\n minified: opts.minified,\n\n // Source-map generation flags.\n sourceMaps,\n\n sourceRoot,\n sourceFileName,\n ...opts.generatorOpts,\n },\n };\n\n for (const plugins of config.passes) {\n for (const plugin of plugins) {\n if (plugin.manipulateOptions) {\n plugin.manipulateOptions(options, options.parserOpts);\n }\n }\n }\n\n return options;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGe,SAASE,gBAAgBA,CAACC,MAAsB,EAAE;EAC/D,MAAM;IACJC,QAAQ;IACRC,GAAG;IACHC,gBAAgB,GAAG,OAAOF,QAAQ,KAAK,QAAQ,GAC3CG,MAAGA,CAAC,CAACC,QAAQ,CAACH,GAAG,EAAED,QAAQ,CAAC,GAC5B,SAAS;IACbK,UAAU,GAAG,QAAQ;IACrBC,cAAc;IACdC,UAAU,GAAG,CAAC,CAACD,cAAc;IAC7BE,UAAU,GAENT,MAAM,CAACU,OAAO,CAACC,UAAU;IAE7BC,cAAc,GAAGR,MAAGA,CAAC,CAACS,QAAQ,CAACV,gBAAgB,CAAC;IAEhDW,QAAQ,GAAG,IAAI;IACfC,OAAO,GAAG;EACZ,CAAC,GAAGf,MAAM,CAACU,OAAO;EAElB,MAAMM,IAAI,GAAGhB,MAAM,CAACU,OAAO;EAE3B,MAAMA,OAAO,GAAAO,MAAA,CAAAC,MAAA,KACRF,IAAI;IAEPG,UAAU,EAAAF,MAAA,CAAAC,MAAA;MACRZ,UAAU,EACRF,MAAGA,CAAC,CAACgB,OAAO,CAACjB,gBAAgB,CAAC,KAAK,MAAM,GAAG,QAAQ,GAAGG,UAAU;MAEnEM,cAAc,EAAEX,QAAQ;MACxBoB,OAAO,EAAE;IAAE,GACRL,IAAI,CAACG,UAAU,CACnB;IAEDG,aAAa,EAAAL,MAAA,CAAAC,MAAA;MAEXjB,QAAQ;MAERsB,sBAAsB,EAAEP,IAAI,CAACO,sBAAsB;MACnDC,qBAAqB,EAAER,IAAI,CAACQ,qBAAqB;MACjDC,WAAW,EAAET,IAAI,CAACS,WAAW;MAC7BX,QAAQ;MACRY,kBAAkB,EAAEV,IAAI,CAACU,kBAAkB;MAC3CX,OAAO;MACPY,QAAQ,EAAEX,IAAI,CAACW,QAAQ;MAGvBnB,UAAU;MAEVC,UAAU;MACVG;IAAc,GACXI,IAAI,CAACM,aAAa;EACtB,EACF;EAED,KAAK,MAAMD,OAAO,IAAIrB,MAAM,CAAC4B,MAAM,EAAE;IACnC,KAAK,MAAMC,MAAM,IAAIR,OAAO,EAAE;MAC5B,IAAIQ,MAAM,CAACC,iBAAiB,EAAE;QAC5BD,MAAM,CAACC,iBAAiB,CAACpB,OAAO,EAAEA,OAAO,CAACS,UAAU,CAAC;MACvD;IACF;EACF;EAEA,OAAOT,OAAO;AAChB;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/plugin-pass.js b/node_modules/@babel/core/lib/transformation/plugin-pass.js index d8f2c5cca..e39c88542 100644 --- a/node_modules/@babel/core/lib/transformation/plugin-pass.js +++ b/node_modules/@babel/core/lib/transformation/plugin-pass.js @@ -5,20 +5,18 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; class PluginPass { - constructor(file, key, options, isAsync) { + constructor(file, key, options) { this._map = new Map(); this.key = void 0; this.file = void 0; this.opts = void 0; this.cwd = void 0; this.filename = void 0; - this.isAsync = void 0; this.key = key; this.file = file; this.opts = options || {}; this.cwd = file.opts.cwd; this.filename = file.opts.filename; - this.isAsync = isAsync; } set(key, val) { this._map.set(key, val); diff --git a/node_modules/@babel/core/lib/transformation/plugin-pass.js.map b/node_modules/@babel/core/lib/transformation/plugin-pass.js.map index e691707fc..c716f7a33 100644 --- a/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +++ b/node_modules/@babel/core/lib/transformation/plugin-pass.js.map @@ -1 +1 @@ -{"version":3,"names":["PluginPass","constructor","file","key","options","isAsync","_map","Map","opts","cwd","filename","set","val","get","availableHelper","name","versionRange","addHelper","buildCodeFrameError","node","msg","_Error","exports","default","prototype","getModuleName","addImport"],"sources":["../../src/transformation/plugin-pass.ts"],"sourcesContent":["import type * as t from \"@babel/types\";\nimport type File from \"./file/file.ts\";\n\nexport default class PluginPass {\n _map: Map = new Map();\n key: string | undefined | null;\n file: File;\n opts: Partial;\n\n /**\n * The working directory that Babel's programmatic options are loaded\n * relative to.\n */\n cwd: string;\n\n /** The absolute path of the file being compiled. */\n filename: string | void;\n\n /**\n * Is Babel executed in async mode or not.\n */\n isAsync: boolean;\n\n constructor(\n file: File,\n key: string | null,\n options: Options | undefined,\n isAsync: boolean,\n ) {\n this.key = key;\n this.file = file;\n this.opts = options || {};\n this.cwd = file.opts.cwd;\n this.filename = file.opts.filename;\n this.isAsync = isAsync;\n }\n\n set(key: unknown, val: unknown) {\n this._map.set(key, val);\n }\n\n get(key: unknown): any {\n return this._map.get(key);\n }\n\n availableHelper(name: string, versionRange?: string | null) {\n return this.file.availableHelper(name, versionRange);\n }\n\n addHelper(name: string) {\n return this.file.addHelper(name);\n }\n\n buildCodeFrameError(\n node: t.Node | undefined | null,\n msg: string,\n _Error?: typeof Error,\n ) {\n return this.file.buildCodeFrameError(node, msg, _Error);\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n (PluginPass as any).prototype.getModuleName = function getModuleName(\n this: PluginPass,\n ): string | undefined {\n // @ts-expect-error only exists in Babel 7\n return this.file.getModuleName();\n };\n (PluginPass as any).prototype.addImport = function addImport(\n this: PluginPass,\n ): void {\n // @ts-expect-error only exists in Babel 7\n this.file.addImport();\n };\n}\n"],"mappings":";;;;;;AAGe,MAAMA,UAAU,CAAmB;EAoBhDC,WAAWA,CACTC,IAAU,EACVC,GAAkB,EAClBC,OAA4B,EAC5BC,OAAgB,EAChB;IAAA,KAxBFC,IAAI,GAA0B,IAAIC,GAAG,CAAC,CAAC;IAAA,KACvCJ,GAAG;IAAA,KACHD,IAAI;IAAA,KACJM,IAAI;IAAA,KAMJC,GAAG;IAAA,KAGHC,QAAQ;IAAA,KAKRL,OAAO;IAQL,IAAI,CAACF,GAAG,GAAGA,GAAG;IACd,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACM,IAAI,GAAGJ,OAAO,IAAI,CAAC,CAAC;IACzB,IAAI,CAACK,GAAG,GAAGP,IAAI,CAACM,IAAI,CAACC,GAAG;IACxB,IAAI,CAACC,QAAQ,GAAGR,IAAI,CAACM,IAAI,CAACE,QAAQ;IAClC,IAAI,CAACL,OAAO,GAAGA,OAAO;EACxB;EAEAM,GAAGA,CAACR,GAAY,EAAES,GAAY,EAAE;IAC9B,IAAI,CAACN,IAAI,CAACK,GAAG,CAACR,GAAG,EAAES,GAAG,CAAC;EACzB;EAEAC,GAAGA,CAACV,GAAY,EAAO;IACrB,OAAO,IAAI,CAACG,IAAI,CAACO,GAAG,CAACV,GAAG,CAAC;EAC3B;EAEAW,eAAeA,CAACC,IAAY,EAAEC,YAA4B,EAAE;IAC1D,OAAO,IAAI,CAACd,IAAI,CAACY,eAAe,CAACC,IAAI,EAAEC,YAAY,CAAC;EACtD;EAEAC,SAASA,CAACF,IAAY,EAAE;IACtB,OAAO,IAAI,CAACb,IAAI,CAACe,SAAS,CAACF,IAAI,CAAC;EAClC;EAEAG,mBAAmBA,CACjBC,IAA+B,EAC/BC,GAAW,EACXC,MAAqB,EACrB;IACA,OAAO,IAAI,CAACnB,IAAI,CAACgB,mBAAmB,CAACC,IAAI,EAAEC,GAAG,EAAEC,MAAM,CAAC;EACzD;AACF;AAACC,OAAA,CAAAC,OAAA,GAAAvB,UAAA;AAEkC;EAChCA,UAAU,CAASwB,SAAS,CAACC,aAAa,GAAG,SAASA,aAAaA,CAAA,EAE9C;IAEpB,OAAO,IAAI,CAACvB,IAAI,CAACuB,aAAa,CAAC,CAAC;EAClC,CAAC;EACAzB,UAAU,CAASwB,SAAS,CAACE,SAAS,GAAG,SAASA,SAASA,CAAA,EAEpD;IAEN,IAAI,CAACxB,IAAI,CAACwB,SAAS,CAAC,CAAC;EACvB,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["PluginPass","constructor","file","key","options","_map","Map","opts","cwd","filename","set","val","get","availableHelper","name","versionRange","addHelper","buildCodeFrameError","node","msg","_Error","exports","default","prototype","getModuleName","addImport"],"sources":["../../src/transformation/plugin-pass.ts"],"sourcesContent":["import type * as t from \"@babel/types\";\nimport type File from \"./file/file.ts\";\n\nexport default class PluginPass {\n _map: Map = new Map();\n key: string | undefined | null;\n file: File;\n opts: Partial;\n\n // The working directory that Babel's programmatic options are loaded\n // relative to.\n cwd: string;\n\n // The absolute path of the file being compiled.\n filename: string | void;\n\n constructor(file: File, key?: string | null, options?: Options) {\n this.key = key;\n this.file = file;\n this.opts = options || {};\n this.cwd = file.opts.cwd;\n this.filename = file.opts.filename;\n }\n\n set(key: unknown, val: unknown) {\n this._map.set(key, val);\n }\n\n get(key: unknown): any {\n return this._map.get(key);\n }\n\n availableHelper(name: string, versionRange?: string | null) {\n return this.file.availableHelper(name, versionRange);\n }\n\n addHelper(name: string) {\n return this.file.addHelper(name);\n }\n\n buildCodeFrameError(\n node: t.Node | undefined | null,\n msg: string,\n _Error?: typeof Error,\n ) {\n return this.file.buildCodeFrameError(node, msg, _Error);\n }\n}\n\nif (!process.env.BABEL_8_BREAKING) {\n (PluginPass as any).prototype.getModuleName = function getModuleName(\n this: PluginPass,\n ): string | undefined {\n // @ts-expect-error only exists in Babel 7\n return this.file.getModuleName();\n };\n (PluginPass as any).prototype.addImport = function addImport(\n this: PluginPass,\n ): void {\n // @ts-expect-error only exists in Babel 7\n this.file.addImport();\n };\n}\n"],"mappings":";;;;;;AAGe,MAAMA,UAAU,CAAmB;EAahDC,WAAWA,CAACC,IAAU,EAAEC,GAAmB,EAAEC,OAAiB,EAAE;IAAA,KAZhEC,IAAI,GAA0B,IAAIC,GAAG,CAAC,CAAC;IAAA,KACvCH,GAAG;IAAA,KACHD,IAAI;IAAA,KACJK,IAAI;IAAA,KAIJC,GAAG;IAAA,KAGHC,QAAQ;IAGN,IAAI,CAACN,GAAG,GAAGA,GAAG;IACd,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACK,IAAI,GAAGH,OAAO,IAAI,CAAC,CAAC;IACzB,IAAI,CAACI,GAAG,GAAGN,IAAI,CAACK,IAAI,CAACC,GAAG;IACxB,IAAI,CAACC,QAAQ,GAAGP,IAAI,CAACK,IAAI,CAACE,QAAQ;EACpC;EAEAC,GAAGA,CAACP,GAAY,EAAEQ,GAAY,EAAE;IAC9B,IAAI,CAACN,IAAI,CAACK,GAAG,CAACP,GAAG,EAAEQ,GAAG,CAAC;EACzB;EAEAC,GAAGA,CAACT,GAAY,EAAO;IACrB,OAAO,IAAI,CAACE,IAAI,CAACO,GAAG,CAACT,GAAG,CAAC;EAC3B;EAEAU,eAAeA,CAACC,IAAY,EAAEC,YAA4B,EAAE;IAC1D,OAAO,IAAI,CAACb,IAAI,CAACW,eAAe,CAACC,IAAI,EAAEC,YAAY,CAAC;EACtD;EAEAC,SAASA,CAACF,IAAY,EAAE;IACtB,OAAO,IAAI,CAACZ,IAAI,CAACc,SAAS,CAACF,IAAI,CAAC;EAClC;EAEAG,mBAAmBA,CACjBC,IAA+B,EAC/BC,GAAW,EACXC,MAAqB,EACrB;IACA,OAAO,IAAI,CAAClB,IAAI,CAACe,mBAAmB,CAACC,IAAI,EAAEC,GAAG,EAAEC,MAAM,CAAC;EACzD;AACF;AAACC,OAAA,CAAAC,OAAA,GAAAtB,UAAA;AAEkC;EAChCA,UAAU,CAASuB,SAAS,CAACC,aAAa,GAAG,SAASA,aAAaA,CAAA,EAE9C;IAEpB,OAAO,IAAI,CAACtB,IAAI,CAACsB,aAAa,CAAC,CAAC;EAClC,CAAC;EACAxB,UAAU,CAASuB,SAAS,CAACE,SAAS,GAAG,SAASA,SAASA,CAAA,EAEpD;IAEN,IAAI,CAACvB,IAAI,CAACuB,SAAS,CAAC,CAAC;EACvB,CAAC;AACH;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/transformation/util/clone-deep.js b/node_modules/@babel/core/lib/transformation/util/clone-deep.js index bc8eaa8ae..fc4148fc6 100644 --- a/node_modules/@babel/core/lib/transformation/util/clone-deep.js +++ b/node_modules/@babel/core/lib/transformation/util/clone-deep.js @@ -4,52 +4,32 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; -const circleSet = new Set(); -let depth = 0; -function deepClone(value, cache, allowCircle) { +function deepClone(value, cache) { if (value !== null) { - if (allowCircle) { - if (cache.has(value)) return cache.get(value); - } else if (++depth > 250) { - if (circleSet.has(value)) { - depth = 0; - circleSet.clear(); - throw new Error("Babel-deepClone: Cycles are not allowed in AST"); - } - circleSet.add(value); - } + if (cache.has(value)) return cache.get(value); let cloned; if (Array.isArray(value)) { cloned = new Array(value.length); - if (allowCircle) cache.set(value, cloned); + cache.set(value, cloned); for (let i = 0; i < value.length; i++) { - cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache, allowCircle); + cloned[i] = typeof value[i] !== "object" ? value[i] : deepClone(value[i], cache); } } else { cloned = {}; - if (allowCircle) cache.set(value, cloned); + cache.set(value, cloned); const keys = Object.keys(value); for (let i = 0; i < keys.length; i++) { const key = keys[i]; - cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache, allowCircle || key === "leadingComments" || key === "innerComments" || key === "trailingComments" || key === "extra"); + cloned[key] = typeof value[key] !== "object" ? value[key] : deepClone(value[key], cache); } } - if (!allowCircle) { - if (depth-- > 250) circleSet.delete(value); - } return cloned; } return value; } function _default(value) { if (typeof value !== "object") return value; - { - try { - return deepClone(value, new Map(), true); - } catch (_) { - return structuredClone(value); - } - } + return deepClone(value, new Map()); } 0 && 0; diff --git a/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map b/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map index 2c0a5648d..4a1c6199f 100644 --- a/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +++ b/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map @@ -1 +1 @@ -{"version":3,"names":["circleSet","Set","depth","deepClone","value","cache","allowCircle","has","get","clear","Error","add","cloned","Array","isArray","length","set","i","keys","Object","key","delete","_default","Map","_","structuredClone"],"sources":["../../../src/transformation/util/clone-deep.ts"],"sourcesContent":["const circleSet = new Set();\nlet depth = 0;\n// https://github.com/babel/babel/pull/14583#discussion_r882828856\nfunction deepClone(\n value: any,\n cache: Map,\n allowCircle: boolean,\n): any {\n if (value !== null) {\n if (allowCircle) {\n if (cache.has(value)) return cache.get(value);\n } else if (++depth > 250) {\n if (circleSet.has(value)) {\n depth = 0;\n circleSet.clear();\n throw new Error(\"Babel-deepClone: Cycles are not allowed in AST\");\n }\n circleSet.add(value);\n }\n let cloned: any;\n if (Array.isArray(value)) {\n cloned = new Array(value.length);\n if (allowCircle) cache.set(value, cloned);\n for (let i = 0; i < value.length; i++) {\n cloned[i] =\n typeof value[i] !== \"object\"\n ? value[i]\n : deepClone(value[i], cache, allowCircle);\n }\n } else {\n cloned = {};\n if (allowCircle) cache.set(value, cloned);\n const keys = Object.keys(value);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n cloned[key] =\n typeof value[key] !== \"object\"\n ? value[key]\n : deepClone(\n value[key],\n cache,\n allowCircle ||\n key === \"leadingComments\" ||\n key === \"innerComments\" ||\n key === \"trailingComments\" ||\n key === \"extra\",\n );\n }\n }\n if (!allowCircle) {\n if (depth-- > 250) circleSet.delete(value);\n }\n return cloned;\n }\n return value;\n}\n\nexport default function (value: T): T {\n if (typeof value !== \"object\") return value;\n\n if (process.env.BABEL_8_BREAKING) {\n if (!process.env.IS_PUBLISH && depth > 0) {\n throw new Error(\"depth > 0\");\n }\n return deepClone(value, new Map(), false);\n } else {\n try {\n return deepClone(value, new Map(), true);\n } catch (_) {\n return structuredClone(value);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,MAAMA,SAAS,GAAG,IAAIC,GAAG,CAAC,CAAC;AAC3B,IAAIC,KAAK,GAAG,CAAC;AAEb,SAASC,SAASA,CAChBC,KAAU,EACVC,KAAoB,EACpBC,WAAoB,EACf;EACL,IAAIF,KAAK,KAAK,IAAI,EAAE;IAClB,IAAIE,WAAW,EAAE;MACf,IAAID,KAAK,CAACE,GAAG,CAACH,KAAK,CAAC,EAAE,OAAOC,KAAK,CAACG,GAAG,CAACJ,KAAK,CAAC;IAC/C,CAAC,MAAM,IAAI,EAAEF,KAAK,GAAG,GAAG,EAAE;MACxB,IAAIF,SAAS,CAACO,GAAG,CAACH,KAAK,CAAC,EAAE;QACxBF,KAAK,GAAG,CAAC;QACTF,SAAS,CAACS,KAAK,CAAC,CAAC;QACjB,MAAM,IAAIC,KAAK,CAAC,gDAAgD,CAAC;MACnE;MACAV,SAAS,CAACW,GAAG,CAACP,KAAK,CAAC;IACtB;IACA,IAAIQ,MAAW;IACf,IAAIC,KAAK,CAACC,OAAO,CAACV,KAAK,CAAC,EAAE;MACxBQ,MAAM,GAAG,IAAIC,KAAK,CAACT,KAAK,CAACW,MAAM,CAAC;MAChC,IAAIT,WAAW,EAAED,KAAK,CAACW,GAAG,CAACZ,KAAK,EAAEQ,MAAM,CAAC;MACzC,KAAK,IAAIK,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGb,KAAK,CAACW,MAAM,EAAEE,CAAC,EAAE,EAAE;QACrCL,MAAM,CAACK,CAAC,CAAC,GACP,OAAOb,KAAK,CAACa,CAAC,CAAC,KAAK,QAAQ,GACxBb,KAAK,CAACa,CAAC,CAAC,GACRd,SAAS,CAACC,KAAK,CAACa,CAAC,CAAC,EAAEZ,KAAK,EAAEC,WAAW,CAAC;MAC/C;IACF,CAAC,MAAM;MACLM,MAAM,GAAG,CAAC,CAAC;MACX,IAAIN,WAAW,EAAED,KAAK,CAACW,GAAG,CAACZ,KAAK,EAAEQ,MAAM,CAAC;MACzC,MAAMM,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACd,KAAK,CAAC;MAC/B,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACH,MAAM,EAAEE,CAAC,EAAE,EAAE;QACpC,MAAMG,GAAG,GAAGF,IAAI,CAACD,CAAC,CAAC;QACnBL,MAAM,CAACQ,GAAG,CAAC,GACT,OAAOhB,KAAK,CAACgB,GAAG,CAAC,KAAK,QAAQ,GAC1BhB,KAAK,CAACgB,GAAG,CAAC,GACVjB,SAAS,CACPC,KAAK,CAACgB,GAAG,CAAC,EACVf,KAAK,EACLC,WAAW,IACTc,GAAG,KAAK,iBAAiB,IACzBA,GAAG,KAAK,eAAe,IACvBA,GAAG,KAAK,kBAAkB,IAC1BA,GAAG,KAAK,OACZ,CAAC;MACT;IACF;IACA,IAAI,CAACd,WAAW,EAAE;MAChB,IAAIJ,KAAK,EAAE,GAAG,GAAG,EAAEF,SAAS,CAACqB,MAAM,CAACjB,KAAK,CAAC;IAC5C;IACA,OAAOQ,MAAM;EACf;EACA,OAAOR,KAAK;AACd;AAEe,SAAAkB,SAAalB,KAAQ,EAAK;EACvC,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK;EAOpC;IACL,IAAI;MACF,OAAOD,SAAS,CAACC,KAAK,EAAE,IAAImB,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC;IAC1C,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,OAAOC,eAAe,CAACrB,KAAK,CAAC;IAC/B;EACF;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["deepClone","value","cache","has","get","cloned","Array","isArray","length","set","i","keys","Object","key","_default","Map"],"sources":["../../../src/transformation/util/clone-deep.ts"],"sourcesContent":["//https://github.com/babel/babel/pull/14583#discussion_r882828856\nfunction deepClone(value: any, cache: Map): any {\n if (value !== null) {\n if (cache.has(value)) return cache.get(value);\n let cloned: any;\n if (Array.isArray(value)) {\n cloned = new Array(value.length);\n cache.set(value, cloned);\n for (let i = 0; i < value.length; i++) {\n cloned[i] =\n typeof value[i] !== \"object\" ? value[i] : deepClone(value[i], cache);\n }\n } else {\n cloned = {};\n cache.set(value, cloned);\n const keys = Object.keys(value);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n cloned[key] =\n typeof value[key] !== \"object\"\n ? value[key]\n : deepClone(value[key], cache);\n }\n }\n return cloned;\n }\n return value;\n}\n\nexport default function (value: T): T {\n if (typeof value !== \"object\") return value;\n return deepClone(value, new Map());\n}\n"],"mappings":";;;;;;AACA,SAASA,SAASA,CAACC,KAAU,EAAEC,KAAoB,EAAO;EACxD,IAAID,KAAK,KAAK,IAAI,EAAE;IAClB,IAAIC,KAAK,CAACC,GAAG,CAACF,KAAK,CAAC,EAAE,OAAOC,KAAK,CAACE,GAAG,CAACH,KAAK,CAAC;IAC7C,IAAII,MAAW;IACf,IAAIC,KAAK,CAACC,OAAO,CAACN,KAAK,CAAC,EAAE;MACxBI,MAAM,GAAG,IAAIC,KAAK,CAACL,KAAK,CAACO,MAAM,CAAC;MAChCN,KAAK,CAACO,GAAG,CAACR,KAAK,EAAEI,MAAM,CAAC;MACxB,KAAK,IAAIK,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,KAAK,CAACO,MAAM,EAAEE,CAAC,EAAE,EAAE;QACrCL,MAAM,CAACK,CAAC,CAAC,GACP,OAAOT,KAAK,CAACS,CAAC,CAAC,KAAK,QAAQ,GAAGT,KAAK,CAACS,CAAC,CAAC,GAAGV,SAAS,CAACC,KAAK,CAACS,CAAC,CAAC,EAAER,KAAK,CAAC;MACxE;IACF,CAAC,MAAM;MACLG,MAAM,GAAG,CAAC,CAAC;MACXH,KAAK,CAACO,GAAG,CAACR,KAAK,EAAEI,MAAM,CAAC;MACxB,MAAMM,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACV,KAAK,CAAC;MAC/B,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,IAAI,CAACH,MAAM,EAAEE,CAAC,EAAE,EAAE;QACpC,MAAMG,GAAG,GAAGF,IAAI,CAACD,CAAC,CAAC;QACnBL,MAAM,CAACQ,GAAG,CAAC,GACT,OAAOZ,KAAK,CAACY,GAAG,CAAC,KAAK,QAAQ,GAC1BZ,KAAK,CAACY,GAAG,CAAC,GACVb,SAAS,CAACC,KAAK,CAACY,GAAG,CAAC,EAAEX,KAAK,CAAC;MACpC;IACF;IACA,OAAOG,MAAM;EACf;EACA,OAAOJ,KAAK;AACd;AAEe,SAAAa,SAAab,KAAQ,EAAK;EACvC,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK;EAC3C,OAAOD,SAAS,CAACC,KAAK,EAAE,IAAIc,GAAG,CAAC,CAAC,CAAC;AACpC;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/lib/vendor/import-meta-resolve.js b/node_modules/@babel/core/lib/vendor/import-meta-resolve.js index 90a5911bd..73d05ae02 100644 --- a/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +++ b/node_modules/@babel/core/lib/vendor/import-meta-resolve.js @@ -61,7 +61,8 @@ function _util() { }; return data; } -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? 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; } const own$1 = {}.hasOwnProperty; const classRegExp = /^([A-Z][a-z\d]*)+$/; const kTypes = new Set(['string', 'function', 'number', 'object', 'Function', 'Object', 'boolean', 'bigint', 'symbol']); diff --git a/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map b/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map index d9e5b4276..5265b7c1d 100644 --- a/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +++ b/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map @@ -1 +1 @@ -{"version":3,"names":["_assert","data","require","_fs","_interopRequireWildcard","_process","_url","_path","_module","_v","_util","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","own$1","classRegExp","kTypes","Set","codes","formatList","array","type","length","join","slice","messages","Map","nodeInternalPrefix","userStackTraceLimit","ERR_INVALID_ARG_TYPE","createError","name","expected","actual","assert","Array","isArray","message","endsWith","includes","types","instances","other","value","push","toLowerCase","exec","pos","indexOf","determineSpecificType","TypeError","ERR_INVALID_MODULE_SPECIFIER","request","reason","base","undefined","ERR_INVALID_PACKAGE_CONFIG","path","Error","ERR_INVALID_PACKAGE_TARGET","packagePath","key","target","isImport","relatedError","startsWith","JSON","stringify","ERR_MODULE_NOT_FOUND","exactUrl","ERR_NETWORK_IMPORT_DISALLOWED","ERR_PACKAGE_IMPORT_NOT_DEFINED","specifier","ERR_PACKAGE_PATH_NOT_EXPORTED","subpath","ERR_UNSUPPORTED_DIR_IMPORT","ERR_UNSUPPORTED_RESOLVE_REQUEST","ERR_UNKNOWN_FILE_EXTENSION","extension","ERR_INVALID_ARG_VALUE","inspected","inspect","sym","constructor","makeNodeErrorWithCode","Base","NodeError","parameters","limit","stackTraceLimit","isErrorStackTraceLimitWritable","error","getMessage","defineProperties","enumerable","writable","configurable","toString","captureLargerStackTrace","code","v8","startupSnapshot","isBuildingSnapshot","_unused","desc","isExtensible","hideStackFrames","wrappedFunction","hidden","stackTraceLimitIsWritable","Number","POSITIVE_INFINITY","captureStackTrace","self","Reflect","apply","regex","expectedLength","unshift","format","String","depth","colors","hasOwnProperty$1","ERR_INVALID_PACKAGE_CONFIG$1","cache","read","jsonPath","existing","string","fs","readFileSync","toNamespacedPath","exception","result","exists","pjsonPath","main","exports","imports","parsed","parse","error_","cause","fileURLToPath","getPackageScopeConfig","resolved","packageJSONUrl","URL","packageJSONPath","pathname","packageConfig","lastPackageJSONUrl","getPackageType","url","extensionFormatMap","mimeToFormat","mime","test","protocolHandlers","getDataProtocolModuleFormat","getFileProtocolModuleFormat","getHttpProtocolModuleFormat","node:","extname","index","codePointAt","_context","ignoreErrors","packageType","filepath","defaultGetFormatWithoutErrors","context","protocol","DEFAULT_CONDITIONS","freeze","DEFAULT_CONDITIONS_SET","getDefaultConditions","getDefaultConditionsSet","getConditionsSet","conditions","RegExpPrototypeSymbolReplace","RegExp","prototype","Symbol","replace","own","invalidSegmentRegEx","deprecatedInvalidSegmentRegEx","invalidPackageNameRegEx","patternRegEx","encodedSeparatorRegEx","emittedPackageWarnings","doubleSlashRegEx","emitInvalidSegmentDeprecation","match","packageJsonUrl","internal","isTarget","process","noDeprecation","double","emitWarning","emitLegacyIndexDeprecation","parentURL","href","urlPath","URL$1","basePath","resolve","tryStatSync","statSync","_unused2","fileExists","stats","throwIfNoEntry","isFile","legacyMainResolve","guess","tries","finalizeResolution","preserveSymlinks","filePath","isDirectory","real","realpathSync","search","hash","pathToFileURL","sep","importNotDefined","exportsNotFound","throwInvalidSubpath","invalidPackageTarget","resolvePackageTargetString","pattern","isPathMap","isURL","_unused3","exportTarget","packageResolve","resolvedTarget","resolvedPath","isArrayIndex","keyNumber","resolvePackageTarget","packageSubpath","targetList","lastException","targetItem","resolveResult","keys","getOwnPropertyNames","conditionalTarget","isConditionalExportsMainSugar","isConditionalSugar","keyIndex","currentIsConditionalSugar","emitTrailingSlashPatternDeprecation","pjsonUrl","add","packageExportsResolve","bestMatch","bestMatchSubpath","patternIndex","patternTrailer","patternKeyCompare","lastIndexOf","a","b","aPatternIndex","bPatternIndex","baseLengthA","baseLengthB","packageImportsResolve","parsePackageName","separatorIndex","validPackageName","isScoped","packageName","builtinModules","packageJsonPath","lastPath","stat","isRelativeSpecifier","shouldBeTreatedAsRelativeOrAbsolutePath","moduleResolve","isData","isRemote","checkIfDisallowedImport","parsedParentURL","parentProtocol","parsedProtocol","Boolean","throwIfInvalidParentURL","defaultResolve","_unused4","_unused5","maybeReturn","parent"],"sources":["../../src/vendor/import-meta-resolve.js"],"sourcesContent":["\n/****************************************************************************\\\n * NOTE FROM BABEL AUTHORS *\n * This file is inlined from https://github.com/wooorm/import-meta-resolve, *\n * because we need to compile it to CommonJS. *\n\\****************************************************************************/\n\n/*\n(The MIT License)\n\nCopyright (c) 2021 Titus Wormer \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n---\n\nThis is a derivative work based on:\n.\nWhich is licensed:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n*/\n\nimport assert from 'assert';\nimport fs, { realpathSync, statSync } from 'fs';\nimport process from 'process';\nimport { fileURLToPath, URL as URL$1, pathToFileURL } from 'url';\nimport path from 'path';\nimport { builtinModules } from 'module';\nimport v8 from 'v8';\nimport { format, inspect } from 'util';\n\n/**\n * @typedef ErrnoExceptionFields\n * @property {number | undefined} [errnode]\n * @property {string | undefined} [code]\n * @property {string | undefined} [path]\n * @property {string | undefined} [syscall]\n * @property {string | undefined} [url]\n *\n * @typedef {Error & ErrnoExceptionFields} ErrnoException\n */\n\n\nconst own$1 = {}.hasOwnProperty;\n\nconst classRegExp = /^([A-Z][a-z\\d]*)+$/;\n// Sorted by a rough estimate on most frequently used entries.\nconst kTypes = new Set([\n 'string',\n 'function',\n 'number',\n 'object',\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function',\n 'Object',\n 'boolean',\n 'bigint',\n 'symbol'\n]);\n\nconst codes = {};\n\n/**\n * Create a list string in the form like 'A and B' or 'A, B, ..., and Z'.\n * We cannot use Intl.ListFormat because it's not available in\n * --without-intl builds.\n *\n * @param {Array} array\n * An array of strings.\n * @param {string} [type]\n * The list type to be inserted before the last element.\n * @returns {string}\n */\nfunction formatList(array, type = 'and') {\n return array.length < 3\n ? array.join(` ${type} `)\n : `${array.slice(0, -1).join(', ')}, ${type} ${array[array.length - 1]}`\n}\n\n/** @type {Map} */\nconst messages = new Map();\nconst nodeInternalPrefix = '__node_internal_';\n/** @type {number} */\nlet userStackTraceLimit;\n\ncodes.ERR_INVALID_ARG_TYPE = createError(\n 'ERR_INVALID_ARG_TYPE',\n /**\n * @param {string} name\n * @param {Array | string} expected\n * @param {unknown} actual\n */\n (name, expected, actual) => {\n assert(typeof name === 'string', \"'name' must be a string\");\n if (!Array.isArray(expected)) {\n expected = [expected];\n }\n\n let message = 'The ';\n if (name.endsWith(' argument')) {\n // For cases like 'first argument'\n message += `${name} `;\n } else {\n const type = name.includes('.') ? 'property' : 'argument';\n message += `\"${name}\" ${type} `;\n }\n\n message += 'must be ';\n\n /** @type {Array} */\n const types = [];\n /** @type {Array} */\n const instances = [];\n /** @type {Array} */\n const other = [];\n\n for (const value of expected) {\n assert(\n typeof value === 'string',\n 'All expected entries have to be of type string'\n );\n\n if (kTypes.has(value)) {\n types.push(value.toLowerCase());\n } else if (classRegExp.exec(value) === null) {\n assert(\n value !== 'object',\n 'The value \"object\" should be written as \"Object\"'\n );\n other.push(value);\n } else {\n instances.push(value);\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = types.indexOf('object');\n if (pos !== -1) {\n types.slice(pos, 1);\n instances.push('Object');\n }\n }\n\n if (types.length > 0) {\n message += `${types.length > 1 ? 'one of type' : 'of type'} ${formatList(\n types,\n 'or'\n )}`;\n if (instances.length > 0 || other.length > 0) message += ' or ';\n }\n\n if (instances.length > 0) {\n message += `an instance of ${formatList(instances, 'or')}`;\n if (other.length > 0) message += ' or ';\n }\n\n if (other.length > 0) {\n if (other.length > 1) {\n message += `one of ${formatList(other, 'or')}`;\n } else {\n if (other[0].toLowerCase() !== other[0]) message += 'an ';\n message += `${other[0]}`;\n }\n }\n\n message += `. Received ${determineSpecificType(actual)}`;\n\n return message\n },\n TypeError\n);\n\ncodes.ERR_INVALID_MODULE_SPECIFIER = createError(\n 'ERR_INVALID_MODULE_SPECIFIER',\n /**\n * @param {string} request\n * @param {string} reason\n * @param {string} [base]\n */\n (request, reason, base = undefined) => {\n return `Invalid module \"${request}\" ${reason}${\n base ? ` imported from ${base}` : ''\n }`\n },\n TypeError\n);\n\ncodes.ERR_INVALID_PACKAGE_CONFIG = createError(\n 'ERR_INVALID_PACKAGE_CONFIG',\n /**\n * @param {string} path\n * @param {string} [base]\n * @param {string} [message]\n */\n (path, base, message) => {\n return `Invalid package config ${path}${\n base ? ` while importing ${base}` : ''\n }${message ? `. ${message}` : ''}`\n },\n Error\n);\n\ncodes.ERR_INVALID_PACKAGE_TARGET = createError(\n 'ERR_INVALID_PACKAGE_TARGET',\n /**\n * @param {string} packagePath\n * @param {string} key\n * @param {unknown} target\n * @param {boolean} [isImport=false]\n * @param {string} [base]\n */\n (packagePath, key, target, isImport = false, base = undefined) => {\n const relatedError =\n typeof target === 'string' &&\n !isImport &&\n target.length > 0 &&\n !target.startsWith('./');\n if (key === '.') {\n assert(isImport === false);\n return (\n `Invalid \"exports\" main target ${JSON.stringify(target)} defined ` +\n `in the package config ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }${relatedError ? '; targets must start with \"./\"' : ''}`\n )\n }\n\n return `Invalid \"${\n isImport ? 'imports' : 'exports'\n }\" target ${JSON.stringify(\n target\n )} defined for '${key}' in the package config ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }${relatedError ? '; targets must start with \"./\"' : ''}`\n },\n Error\n);\n\ncodes.ERR_MODULE_NOT_FOUND = createError(\n 'ERR_MODULE_NOT_FOUND',\n /**\n * @param {string} path\n * @param {string} base\n * @param {boolean} [exactUrl]\n */\n (path, base, exactUrl = false) => {\n return `Cannot find ${\n exactUrl ? 'module' : 'package'\n } '${path}' imported from ${base}`\n },\n Error\n);\n\ncodes.ERR_NETWORK_IMPORT_DISALLOWED = createError(\n 'ERR_NETWORK_IMPORT_DISALLOWED',\n \"import of '%s' by %s is not supported: %s\",\n Error\n);\n\ncodes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(\n 'ERR_PACKAGE_IMPORT_NOT_DEFINED',\n /**\n * @param {string} specifier\n * @param {string} packagePath\n * @param {string} base\n */\n (specifier, packagePath, base) => {\n return `Package import specifier \"${specifier}\" is not defined${\n packagePath ? ` in package ${packagePath}package.json` : ''\n } imported from ${base}`\n },\n TypeError\n);\n\ncodes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(\n 'ERR_PACKAGE_PATH_NOT_EXPORTED',\n /**\n * @param {string} packagePath\n * @param {string} subpath\n * @param {string} [base]\n */\n (packagePath, subpath, base = undefined) => {\n if (subpath === '.')\n return `No \"exports\" main defined in ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }`\n return `Package subpath '${subpath}' is not defined by \"exports\" in ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }`\n },\n Error\n);\n\ncodes.ERR_UNSUPPORTED_DIR_IMPORT = createError(\n 'ERR_UNSUPPORTED_DIR_IMPORT',\n \"Directory import '%s' is not supported \" +\n 'resolving ES modules imported from %s',\n Error\n);\n\ncodes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(\n 'ERR_UNSUPPORTED_RESOLVE_REQUEST',\n 'Failed to resolve module specifier \"%s\" from \"%s\": Invalid relative URL or base scheme is not hierarchical.',\n TypeError\n);\n\ncodes.ERR_UNKNOWN_FILE_EXTENSION = createError(\n 'ERR_UNKNOWN_FILE_EXTENSION',\n /**\n * @param {string} extension\n * @param {string} path\n */\n (extension, path) => {\n return `Unknown file extension \"${extension}\" for ${path}`\n },\n TypeError\n);\n\ncodes.ERR_INVALID_ARG_VALUE = createError(\n 'ERR_INVALID_ARG_VALUE',\n /**\n * @param {string} name\n * @param {unknown} value\n * @param {string} [reason='is invalid']\n */\n (name, value, reason = 'is invalid') => {\n let inspected = inspect(value);\n\n if (inspected.length > 128) {\n inspected = `${inspected.slice(0, 128)}...`;\n }\n\n const type = name.includes('.') ? 'property' : 'argument';\n\n return `The ${type} '${name}' ${reason}. Received ${inspected}`\n },\n TypeError\n // Note: extra classes have been shaken out.\n // , RangeError\n);\n\n/**\n * Utility function for registering the error codes. Only used here. Exported\n * *only* to allow for testing.\n * @param {string} sym\n * @param {MessageFunction | string} value\n * @param {ErrorConstructor} constructor\n * @returns {new (...parameters: Array) => Error}\n */\nfunction createError(sym, value, constructor) {\n // Special case for SystemError that formats the error message differently\n // The SystemErrors only have SystemError as their base classes.\n messages.set(sym, value);\n\n return makeNodeErrorWithCode(constructor, sym)\n}\n\n/**\n * @param {ErrorConstructor} Base\n * @param {string} key\n * @returns {ErrorConstructor}\n */\nfunction makeNodeErrorWithCode(Base, key) {\n // @ts-expect-error It’s a Node error.\n return NodeError\n /**\n * @param {Array} parameters\n */\n function NodeError(...parameters) {\n const limit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n const error = new Base();\n // Reset the limit and setting the name property.\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;\n const message = getMessage(key, parameters, error);\n Object.defineProperties(error, {\n // Note: no need to implement `kIsNodeError` symbol, would be hard,\n // probably.\n message: {\n value: message,\n enumerable: false,\n writable: true,\n configurable: true\n },\n toString: {\n /** @this {Error} */\n value() {\n return `${this.name} [${key}]: ${this.message}`\n },\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n captureLargerStackTrace(error);\n // @ts-expect-error It’s a Node error.\n error.code = key;\n return error\n }\n}\n\n/**\n * @returns {boolean}\n */\nfunction isErrorStackTraceLimitWritable() {\n // Do no touch Error.stackTraceLimit as V8 would attempt to install\n // it again during deserialization.\n try {\n if (v8.startupSnapshot.isBuildingSnapshot()) {\n return false\n }\n } catch {}\n\n const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit');\n if (desc === undefined) {\n return Object.isExtensible(Error)\n }\n\n return own$1.call(desc, 'writable') && desc.writable !== undefined\n ? desc.writable\n : desc.set !== undefined\n}\n\n/**\n * This function removes unnecessary frames from Node.js core errors.\n * @template {(...parameters: unknown[]) => unknown} T\n * @param {T} wrappedFunction\n * @returns {T}\n */\nfunction hideStackFrames(wrappedFunction) {\n // We rename the functions that will be hidden to cut off the stacktrace\n // at the outermost one\n const hidden = nodeInternalPrefix + wrappedFunction.name;\n Object.defineProperty(wrappedFunction, 'name', {value: hidden});\n return wrappedFunction\n}\n\nconst captureLargerStackTrace = hideStackFrames(\n /**\n * @param {Error} error\n * @returns {Error}\n */\n // @ts-expect-error: fine\n function (error) {\n const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();\n if (stackTraceLimitIsWritable) {\n userStackTraceLimit = Error.stackTraceLimit;\n Error.stackTraceLimit = Number.POSITIVE_INFINITY;\n }\n\n Error.captureStackTrace(error);\n\n // Reset the limit\n if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit;\n\n return error\n }\n);\n\n/**\n * @param {string} key\n * @param {Array} parameters\n * @param {Error} self\n * @returns {string}\n */\nfunction getMessage(key, parameters, self) {\n const message = messages.get(key);\n assert(message !== undefined, 'expected `message` to be found');\n\n if (typeof message === 'function') {\n assert(\n message.length <= parameters.length, // Default options do not count.\n `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +\n `match the required ones (${message.length}).`\n );\n return Reflect.apply(message, self, parameters)\n }\n\n const regex = /%[dfijoOs]/g;\n let expectedLength = 0;\n while (regex.exec(message) !== null) expectedLength++;\n assert(\n expectedLength === parameters.length,\n `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +\n `match the required ones (${expectedLength}).`\n );\n if (parameters.length === 0) return message\n\n parameters.unshift(message);\n return Reflect.apply(format, null, parameters)\n}\n\n/**\n * Determine the specific type of a value for type-mismatch errors.\n * @param {unknown} value\n * @returns {string}\n */\nfunction determineSpecificType(value) {\n if (value === null || value === undefined) {\n return String(value)\n }\n\n if (typeof value === 'function' && value.name) {\n return `function ${value.name}`\n }\n\n if (typeof value === 'object') {\n if (value.constructor && value.constructor.name) {\n return `an instance of ${value.constructor.name}`\n }\n\n return `${inspect(value, {depth: -1})}`\n }\n\n let inspected = inspect(value, {colors: false});\n\n if (inspected.length > 28) {\n inspected = `${inspected.slice(0, 25)}...`;\n }\n\n return `type ${typeof value} (${inspected})`\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n// Removed the native dependency.\n// Also: no need to cache, we do that in resolve already.\n\n\nconst hasOwnProperty$1 = {}.hasOwnProperty;\n\nconst {ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1} = codes;\n\n/** @type {Map} */\nconst cache = new Map();\n\n/**\n * @param {string} jsonPath\n * @param {{specifier: URL | string, base?: URL}} options\n * @returns {PackageConfig}\n */\nfunction read(jsonPath, {base, specifier}) {\n const existing = cache.get(jsonPath);\n\n if (existing) {\n return existing\n }\n\n /** @type {string | undefined} */\n let string;\n\n try {\n string = fs.readFileSync(path.toNamespacedPath(jsonPath), 'utf8');\n } catch (error) {\n const exception = /** @type {ErrnoException} */ (error);\n\n if (exception.code !== 'ENOENT') {\n throw exception\n }\n }\n\n /** @type {PackageConfig} */\n const result = {\n exists: false,\n pjsonPath: jsonPath,\n main: undefined,\n name: undefined,\n type: 'none', // Ignore unknown types for forwards compatibility\n exports: undefined,\n imports: undefined\n };\n\n if (string !== undefined) {\n /** @type {Record} */\n let parsed;\n\n try {\n parsed = JSON.parse(string);\n } catch (error_) {\n const cause = /** @type {ErrnoException} */ (error_);\n const error = new ERR_INVALID_PACKAGE_CONFIG$1(\n jsonPath,\n (base ? `\"${specifier}\" from ` : '') + fileURLToPath(base || specifier),\n cause.message\n );\n error.cause = cause;\n throw error\n }\n\n result.exists = true;\n\n if (\n hasOwnProperty$1.call(parsed, 'name') &&\n typeof parsed.name === 'string'\n ) {\n result.name = parsed.name;\n }\n\n if (\n hasOwnProperty$1.call(parsed, 'main') &&\n typeof parsed.main === 'string'\n ) {\n result.main = parsed.main;\n }\n\n if (hasOwnProperty$1.call(parsed, 'exports')) {\n // @ts-expect-error: assume valid.\n result.exports = parsed.exports;\n }\n\n if (hasOwnProperty$1.call(parsed, 'imports')) {\n // @ts-expect-error: assume valid.\n result.imports = parsed.imports;\n }\n\n // Ignore unknown types for forwards compatibility\n if (\n hasOwnProperty$1.call(parsed, 'type') &&\n (parsed.type === 'commonjs' || parsed.type === 'module')\n ) {\n result.type = parsed.type;\n }\n }\n\n cache.set(jsonPath, result);\n\n return result\n}\n\n/**\n * @param {URL | string} resolved\n * @returns {PackageConfig}\n */\nfunction getPackageScopeConfig(resolved) {\n // Note: in Node, this is now a native module.\n let packageJSONUrl = new URL('package.json', resolved);\n\n while (true) {\n const packageJSONPath = packageJSONUrl.pathname;\n if (packageJSONPath.endsWith('node_modules/package.json')) {\n break\n }\n\n const packageConfig = read(fileURLToPath(packageJSONUrl), {\n specifier: resolved\n });\n\n if (packageConfig.exists) {\n return packageConfig\n }\n\n const lastPackageJSONUrl = packageJSONUrl;\n packageJSONUrl = new URL('../package.json', packageJSONUrl);\n\n // Terminates at root where ../package.json equals ../../package.json\n // (can't just check \"/package.json\" for Windows support).\n if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {\n break\n }\n }\n\n const packageJSONPath = fileURLToPath(packageJSONUrl);\n // ^^ Note: in Node, this is now a native module.\n\n return {\n pjsonPath: packageJSONPath,\n exists: false,\n type: 'none'\n }\n}\n\n/**\n * Returns the package type for a given URL.\n * @param {URL} url - The URL to get the package type for.\n * @returns {PackageType}\n */\nfunction getPackageType(url) {\n // To do @anonrig: Write a C++ function that returns only \"type\".\n return getPackageScopeConfig(url).type\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst {ERR_UNKNOWN_FILE_EXTENSION} = codes;\n\nconst hasOwnProperty = {}.hasOwnProperty;\n\n/** @type {Record} */\nconst extensionFormatMap = {\n // @ts-expect-error: hush.\n __proto__: null,\n '.cjs': 'commonjs',\n '.js': 'module',\n '.json': 'json',\n '.mjs': 'module'\n};\n\n/**\n * @param {string | null} mime\n * @returns {string | null}\n */\nfunction mimeToFormat(mime) {\n if (\n mime &&\n /\\s*(text|application)\\/javascript\\s*(;\\s*charset=utf-?8\\s*)?/i.test(mime)\n )\n return 'module'\n if (mime === 'application/json') return 'json'\n return null\n}\n\n/**\n * @callback ProtocolHandler\n * @param {URL} parsed\n * @param {{parentURL: string, source?: Buffer}} context\n * @param {boolean} ignoreErrors\n * @returns {string | null | void}\n */\n\n/**\n * @type {Record}\n */\nconst protocolHandlers = {\n // @ts-expect-error: hush.\n __proto__: null,\n 'data:': getDataProtocolModuleFormat,\n 'file:': getFileProtocolModuleFormat,\n 'http:': getHttpProtocolModuleFormat,\n 'https:': getHttpProtocolModuleFormat,\n 'node:'() {\n return 'builtin'\n }\n};\n\n/**\n * @param {URL} parsed\n */\nfunction getDataProtocolModuleFormat(parsed) {\n const {1: mime} = /^([^/]+\\/[^;,]+)[^,]*?(;base64)?,/.exec(\n parsed.pathname\n ) || [null, null, null];\n return mimeToFormat(mime)\n}\n\n/**\n * Returns the file extension from a URL.\n *\n * Should give similar result to\n * `require('node:path').extname(require('node:url').fileURLToPath(url))`\n * when used with a `file:` URL.\n *\n * @param {URL} url\n * @returns {string}\n */\nfunction extname(url) {\n const pathname = url.pathname;\n let index = pathname.length;\n\n while (index--) {\n const code = pathname.codePointAt(index);\n\n if (code === 47 /* `/` */) {\n return ''\n }\n\n if (code === 46 /* `.` */) {\n return pathname.codePointAt(index - 1) === 47 /* `/` */\n ? ''\n : pathname.slice(index)\n }\n }\n\n return ''\n}\n\n/**\n * @type {ProtocolHandler}\n */\nfunction getFileProtocolModuleFormat(url, _context, ignoreErrors) {\n const value = extname(url);\n\n if (value === '.js') {\n const packageType = getPackageType(url);\n\n if (packageType !== 'none') {\n return packageType\n }\n\n return 'commonjs'\n }\n\n if (value === '') {\n const packageType = getPackageType(url);\n\n // Legacy behavior\n if (packageType === 'none' || packageType === 'commonjs') {\n return 'commonjs'\n }\n\n // Note: we don’t implement WASM, so we don’t need\n // `getFormatOfExtensionlessFile` from `formats`.\n return 'module'\n }\n\n const format = extensionFormatMap[value];\n if (format) return format\n\n // Explicit undefined return indicates load hook should rerun format check\n if (ignoreErrors) {\n return undefined\n }\n\n const filepath = fileURLToPath(url);\n throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath)\n}\n\nfunction getHttpProtocolModuleFormat() {\n // To do: HTTPS imports.\n}\n\n/**\n * @param {URL} url\n * @param {{parentURL: string}} context\n * @returns {string | null}\n */\nfunction defaultGetFormatWithoutErrors(url, context) {\n const protocol = url.protocol;\n\n if (!hasOwnProperty.call(protocolHandlers, protocol)) {\n return null\n }\n\n return protocolHandlers[protocol](url, context, true) || null\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst {ERR_INVALID_ARG_VALUE} = codes;\n\n// In Node itself these values are populated from CLI arguments, before any\n// user code runs.\n// Here we just define the defaults.\nconst DEFAULT_CONDITIONS = Object.freeze(['node', 'import']);\nconst DEFAULT_CONDITIONS_SET = new Set(DEFAULT_CONDITIONS);\n\n/**\n * Returns the default conditions for ES module loading.\n */\nfunction getDefaultConditions() {\n return DEFAULT_CONDITIONS\n}\n\n/**\n * Returns the default conditions for ES module loading, as a Set.\n */\nfunction getDefaultConditionsSet() {\n return DEFAULT_CONDITIONS_SET\n}\n\n/**\n * @param {Array} [conditions]\n * @returns {Set}\n */\nfunction getConditionsSet(conditions) {\n if (conditions !== undefined && conditions !== getDefaultConditions()) {\n if (!Array.isArray(conditions)) {\n throw new ERR_INVALID_ARG_VALUE(\n 'conditions',\n conditions,\n 'expected an array'\n )\n }\n\n return new Set(conditions)\n }\n\n return getDefaultConditionsSet()\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];\n\nconst {\n ERR_NETWORK_IMPORT_DISALLOWED,\n ERR_INVALID_MODULE_SPECIFIER,\n ERR_INVALID_PACKAGE_CONFIG,\n ERR_INVALID_PACKAGE_TARGET,\n ERR_MODULE_NOT_FOUND,\n ERR_PACKAGE_IMPORT_NOT_DEFINED,\n ERR_PACKAGE_PATH_NOT_EXPORTED,\n ERR_UNSUPPORTED_DIR_IMPORT,\n ERR_UNSUPPORTED_RESOLVE_REQUEST\n} = codes;\n\nconst own = {}.hasOwnProperty;\n\nconst invalidSegmentRegEx =\n /(^|\\\\|\\/)((\\.|%2e)(\\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\\\|\\/|$)/i;\nconst deprecatedInvalidSegmentRegEx =\n /(^|\\\\|\\/)((\\.|%2e)(\\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\\\|\\/|$)/i;\nconst invalidPackageNameRegEx = /^\\.|%|\\\\/;\nconst patternRegEx = /\\*/g;\nconst encodedSeparatorRegEx = /%2f|%5c/i;\n/** @type {Set} */\nconst emittedPackageWarnings = new Set();\n\nconst doubleSlashRegEx = /[/\\\\]{2}/;\n\n/**\n *\n * @param {string} target\n * @param {string} request\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} base\n * @param {boolean} isTarget\n */\nfunction emitInvalidSegmentDeprecation(\n target,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n isTarget\n) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const pjsonPath = fileURLToPath(packageJsonUrl);\n const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;\n process.emitWarning(\n `Use of deprecated ${\n double ? 'double slash' : 'leading or trailing slash matching'\n } resolving \"${target}\" for module ` +\n `request \"${request}\" ${\n request === match ? '' : `matched to \"${match}\" `\n }in the \"${\n internal ? 'imports' : 'exports'\n }\" field module resolution of the package at ${pjsonPath}${\n base ? ` imported from ${fileURLToPath(base)}` : ''\n }.`,\n 'DeprecationWarning',\n 'DEP0166'\n );\n}\n\n/**\n * @param {URL} url\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @param {string} [main]\n * @returns {void}\n */\nfunction emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const format = defaultGetFormatWithoutErrors(url, {parentURL: base.href});\n if (format !== 'module') return\n const urlPath = fileURLToPath(url.href);\n const packagePath = fileURLToPath(new URL$1('.', packageJsonUrl));\n const basePath = fileURLToPath(base);\n if (!main) {\n process.emitWarning(\n `No \"main\" or \"exports\" field defined in the package.json for ${packagePath} resolving the main entry point \"${urlPath.slice(\n packagePath.length\n )}\", imported from ${basePath}.\\nDefault \"index\" lookups for the main are deprecated for ES modules.`,\n 'DeprecationWarning',\n 'DEP0151'\n );\n } else if (path.resolve(packagePath, main) !== urlPath) {\n process.emitWarning(\n `Package ${packagePath} has a \"main\" field set to \"${main}\", ` +\n `excluding the full filename and extension to the resolved file at \"${urlPath.slice(\n packagePath.length\n )}\", imported from ${basePath}.\\n Automatic extension resolution of the \"main\" field is ` +\n 'deprecated for ES modules.',\n 'DeprecationWarning',\n 'DEP0151'\n );\n }\n}\n\n/**\n * @param {string} path\n * @returns {Stats | undefined}\n */\nfunction tryStatSync(path) {\n // Note: from Node 15 onwards we can use `throwIfNoEntry: false` instead.\n try {\n return statSync(path)\n } catch {\n // Note: in Node code this returns `new Stats`,\n // but in Node 22 that’s marked as a deprecated internal API.\n // Which, well, we kinda are, but still to prevent that warning,\n // just yield `undefined`.\n }\n}\n\n/**\n * Legacy CommonJS main resolution:\n * 1. let M = pkg_url + (json main field)\n * 2. TRY(M, M.js, M.json, M.node)\n * 3. TRY(M/index.js, M/index.json, M/index.node)\n * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)\n * 5. NOT_FOUND\n *\n * @param {URL} url\n * @returns {boolean}\n */\nfunction fileExists(url) {\n const stats = statSync(url, {throwIfNoEntry: false});\n const isFile = stats ? stats.isFile() : undefined;\n return isFile === null || isFile === undefined ? false : isFile\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {PackageConfig} packageConfig\n * @param {URL} base\n * @returns {URL}\n */\nfunction legacyMainResolve(packageJsonUrl, packageConfig, base) {\n /** @type {URL | undefined} */\n let guess;\n if (packageConfig.main !== undefined) {\n guess = new URL$1(packageConfig.main, packageJsonUrl);\n // Note: fs check redundances will be handled by Descriptor cache here.\n if (fileExists(guess)) return guess\n\n const tries = [\n `./${packageConfig.main}.js`,\n `./${packageConfig.main}.json`,\n `./${packageConfig.main}.node`,\n `./${packageConfig.main}/index.js`,\n `./${packageConfig.main}/index.json`,\n `./${packageConfig.main}/index.node`\n ];\n let i = -1;\n\n while (++i < tries.length) {\n guess = new URL$1(tries[i], packageJsonUrl);\n if (fileExists(guess)) break\n guess = undefined;\n }\n\n if (guess) {\n emitLegacyIndexDeprecation(\n guess,\n packageJsonUrl,\n base,\n packageConfig.main\n );\n return guess\n }\n // Fallthrough.\n }\n\n const tries = ['./index.js', './index.json', './index.node'];\n let i = -1;\n\n while (++i < tries.length) {\n guess = new URL$1(tries[i], packageJsonUrl);\n if (fileExists(guess)) break\n guess = undefined;\n }\n\n if (guess) {\n emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);\n return guess\n }\n\n // Not found.\n throw new ERR_MODULE_NOT_FOUND(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n fileURLToPath(base)\n )\n}\n\n/**\n * @param {URL} resolved\n * @param {URL} base\n * @param {boolean} [preserveSymlinks]\n * @returns {URL}\n */\nfunction finalizeResolution(resolved, base, preserveSymlinks) {\n if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {\n throw new ERR_INVALID_MODULE_SPECIFIER(\n resolved.pathname,\n 'must not include encoded \"/\" or \"\\\\\" characters',\n fileURLToPath(base)\n )\n }\n\n /** @type {string} */\n let filePath;\n\n try {\n filePath = fileURLToPath(resolved);\n } catch (error) {\n const cause = /** @type {ErrnoException} */ (error);\n Object.defineProperty(cause, 'input', {value: String(resolved)});\n Object.defineProperty(cause, 'module', {value: String(base)});\n throw cause\n }\n\n const stats = tryStatSync(\n filePath.endsWith('/') ? filePath.slice(-1) : filePath\n );\n\n if (stats && stats.isDirectory()) {\n const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath(base));\n // @ts-expect-error Add this for `import.meta.resolve`.\n error.url = String(resolved);\n throw error\n }\n\n if (!stats || !stats.isFile()) {\n const error = new ERR_MODULE_NOT_FOUND(\n filePath || resolved.pathname,\n base && fileURLToPath(base),\n true\n );\n // @ts-expect-error Add this for `import.meta.resolve`.\n error.url = String(resolved);\n throw error\n }\n\n if (!preserveSymlinks) {\n const real = realpathSync(filePath);\n const {search, hash} = resolved;\n resolved = pathToFileURL(real + (filePath.endsWith(path.sep) ? '/' : ''));\n resolved.search = search;\n resolved.hash = hash;\n }\n\n return resolved\n}\n\n/**\n * @param {string} specifier\n * @param {URL | undefined} packageJsonUrl\n * @param {URL} base\n * @returns {Error}\n */\nfunction importNotDefined(specifier, packageJsonUrl, base) {\n return new ERR_PACKAGE_IMPORT_NOT_DEFINED(\n specifier,\n packageJsonUrl && fileURLToPath(new URL$1('.', packageJsonUrl)),\n fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} subpath\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @returns {Error}\n */\nfunction exportsNotFound(subpath, packageJsonUrl, base) {\n return new ERR_PACKAGE_PATH_NOT_EXPORTED(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n subpath,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} request\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} [base]\n * @returns {never}\n */\nfunction throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {\n const reason = `request is not a valid match in pattern \"${match}\" for the \"${\n internal ? 'imports' : 'exports'\n }\" resolution of ${fileURLToPath(packageJsonUrl)}`;\n throw new ERR_INVALID_MODULE_SPECIFIER(\n request,\n reason,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} subpath\n * @param {unknown} target\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} [base]\n * @returns {Error}\n */\nfunction invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {\n target =\n typeof target === 'object' && target !== null\n ? JSON.stringify(target, null, '')\n : `${target}`;\n\n return new ERR_INVALID_PACKAGE_TARGET(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n subpath,\n target,\n internal,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} target\n * @param {string} subpath\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @param {boolean} pattern\n * @param {boolean} internal\n * @param {boolean} isPathMap\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction resolvePackageTargetString(\n target,\n subpath,\n match,\n packageJsonUrl,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n) {\n if (subpath !== '' && !pattern && target[target.length - 1] !== '/')\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n\n if (!target.startsWith('./')) {\n if (internal && !target.startsWith('../') && !target.startsWith('/')) {\n let isURL = false;\n\n try {\n new URL$1(target);\n isURL = true;\n } catch {\n // Continue regardless of error.\n }\n\n if (!isURL) {\n const exportTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target + subpath;\n\n return packageResolve(exportTarget, packageJsonUrl, conditions)\n }\n }\n\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n }\n\n if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {\n if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {\n if (!isPathMap) {\n const request = pattern\n ? match.replace('*', () => subpath)\n : match + subpath;\n const resolvedTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target;\n emitInvalidSegmentDeprecation(\n resolvedTarget,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n true\n );\n }\n } else {\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n }\n }\n\n const resolved = new URL$1(target, packageJsonUrl);\n const resolvedPath = resolved.pathname;\n const packagePath = new URL$1('.', packageJsonUrl).pathname;\n\n if (!resolvedPath.startsWith(packagePath))\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n\n if (subpath === '') return resolved\n\n if (invalidSegmentRegEx.exec(subpath) !== null) {\n const request = pattern\n ? match.replace('*', () => subpath)\n : match + subpath;\n if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {\n if (!isPathMap) {\n const resolvedTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target;\n emitInvalidSegmentDeprecation(\n resolvedTarget,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n false\n );\n }\n } else {\n throwInvalidSubpath(request, match, packageJsonUrl, internal, base);\n }\n }\n\n if (pattern) {\n return new URL$1(\n RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n resolved.href,\n () => subpath\n )\n )\n }\n\n return new URL$1(subpath, resolved)\n}\n\n/**\n * @param {string} key\n * @returns {boolean}\n */\nfunction isArrayIndex(key) {\n const keyNumber = Number(key);\n if (`${keyNumber}` !== key) return false\n return keyNumber >= 0 && keyNumber < 0xff_ff_ff_ff\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {unknown} target\n * @param {string} subpath\n * @param {string} packageSubpath\n * @param {URL} base\n * @param {boolean} pattern\n * @param {boolean} internal\n * @param {boolean} isPathMap\n * @param {Set | undefined} conditions\n * @returns {URL | null}\n */\nfunction resolvePackageTarget(\n packageJsonUrl,\n target,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n) {\n if (typeof target === 'string') {\n return resolvePackageTargetString(\n target,\n subpath,\n packageSubpath,\n packageJsonUrl,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n )\n }\n\n if (Array.isArray(target)) {\n /** @type {Array} */\n const targetList = target;\n if (targetList.length === 0) return null\n\n /** @type {ErrnoException | null | undefined} */\n let lastException;\n let i = -1;\n\n while (++i < targetList.length) {\n const targetItem = targetList[i];\n /** @type {URL | null} */\n let resolveResult;\n try {\n resolveResult = resolvePackageTarget(\n packageJsonUrl,\n targetItem,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n );\n } catch (error) {\n const exception = /** @type {ErrnoException} */ (error);\n lastException = exception;\n if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue\n throw error\n }\n\n if (resolveResult === undefined) continue\n\n if (resolveResult === null) {\n lastException = null;\n continue\n }\n\n return resolveResult\n }\n\n if (lastException === undefined || lastException === null) {\n return null\n }\n\n throw lastException\n }\n\n if (typeof target === 'object' && target !== null) {\n const keys = Object.getOwnPropertyNames(target);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n if (isArrayIndex(key)) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJsonUrl),\n base,\n '\"exports\" cannot contain numeric property keys.'\n )\n }\n }\n\n i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n if (key === 'default' || (conditions && conditions.has(key))) {\n // @ts-expect-error: indexable.\n const conditionalTarget = /** @type {unknown} */ (target[key]);\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n conditionalTarget,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n );\n if (resolveResult === undefined) continue\n return resolveResult\n }\n }\n\n return null\n }\n\n if (target === null) {\n return null\n }\n\n throw invalidPackageTarget(\n packageSubpath,\n target,\n packageJsonUrl,\n internal,\n base\n )\n}\n\n/**\n * @param {unknown} exports\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @returns {boolean}\n */\nfunction isConditionalExportsMainSugar(exports, packageJsonUrl, base) {\n if (typeof exports === 'string' || Array.isArray(exports)) return true\n if (typeof exports !== 'object' || exports === null) return false\n\n const keys = Object.getOwnPropertyNames(exports);\n let isConditionalSugar = false;\n let i = 0;\n let keyIndex = -1;\n while (++keyIndex < keys.length) {\n const key = keys[keyIndex];\n const currentIsConditionalSugar = key === '' || key[0] !== '.';\n if (i++ === 0) {\n isConditionalSugar = currentIsConditionalSugar;\n } else if (isConditionalSugar !== currentIsConditionalSugar) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJsonUrl),\n base,\n '\"exports\" cannot contain some keys starting with \\'.\\' and some not.' +\n ' The exports object must either be an object of package subpath keys' +\n ' or an object of main entry condition name keys only.'\n )\n }\n }\n\n return isConditionalSugar\n}\n\n/**\n * @param {string} match\n * @param {URL} pjsonUrl\n * @param {URL} base\n */\nfunction emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const pjsonPath = fileURLToPath(pjsonUrl);\n if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return\n emittedPackageWarnings.add(pjsonPath + '|' + match);\n process.emitWarning(\n `Use of deprecated trailing slash pattern mapping \"${match}\" in the ` +\n `\"exports\" field module resolution of the package at ${pjsonPath}${\n base ? ` imported from ${fileURLToPath(base)}` : ''\n }. Mapping specifiers ending in \"/\" is no longer supported.`,\n 'DeprecationWarning',\n 'DEP0155'\n );\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {string} packageSubpath\n * @param {Record} packageConfig\n * @param {URL} base\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n) {\n let exports = packageConfig.exports;\n\n if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {\n exports = {'.': exports};\n }\n\n if (\n own.call(exports, packageSubpath) &&\n !packageSubpath.includes('*') &&\n !packageSubpath.endsWith('/')\n ) {\n // @ts-expect-error: indexable.\n const target = exports[packageSubpath];\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n '',\n packageSubpath,\n base,\n false,\n false,\n false,\n conditions\n );\n if (resolveResult === null || resolveResult === undefined) {\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n }\n\n return resolveResult\n }\n\n let bestMatch = '';\n let bestMatchSubpath = '';\n const keys = Object.getOwnPropertyNames(exports);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n const patternIndex = key.indexOf('*');\n\n if (\n patternIndex !== -1 &&\n packageSubpath.startsWith(key.slice(0, patternIndex))\n ) {\n // When this reaches EOL, this can throw at the top of the whole function:\n //\n // if (StringPrototypeEndsWith(packageSubpath, '/'))\n // throwInvalidSubpath(packageSubpath)\n //\n // To match \"imports\" and the spec.\n if (packageSubpath.endsWith('/')) {\n emitTrailingSlashPatternDeprecation(\n packageSubpath,\n packageJsonUrl,\n base\n );\n }\n\n const patternTrailer = key.slice(patternIndex + 1);\n\n if (\n packageSubpath.length >= key.length &&\n packageSubpath.endsWith(patternTrailer) &&\n patternKeyCompare(bestMatch, key) === 1 &&\n key.lastIndexOf('*') === patternIndex\n ) {\n bestMatch = key;\n bestMatchSubpath = packageSubpath.slice(\n patternIndex,\n packageSubpath.length - patternTrailer.length\n );\n }\n }\n }\n\n if (bestMatch) {\n // @ts-expect-error: indexable.\n const target = /** @type {unknown} */ (exports[bestMatch]);\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n bestMatchSubpath,\n bestMatch,\n base,\n true,\n false,\n packageSubpath.endsWith('/'),\n conditions\n );\n\n if (resolveResult === null || resolveResult === undefined) {\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n }\n\n return resolveResult\n }\n\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n}\n\n/**\n * @param {string} a\n * @param {string} b\n */\nfunction patternKeyCompare(a, b) {\n const aPatternIndex = a.indexOf('*');\n const bPatternIndex = b.indexOf('*');\n const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;\n const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;\n if (baseLengthA > baseLengthB) return -1\n if (baseLengthB > baseLengthA) return 1\n if (aPatternIndex === -1) return 1\n if (bPatternIndex === -1) return -1\n if (a.length > b.length) return -1\n if (b.length > a.length) return 1\n return 0\n}\n\n/**\n * @param {string} name\n * @param {URL} base\n * @param {Set} [conditions]\n * @returns {URL}\n */\nfunction packageImportsResolve(name, base, conditions) {\n if (name === '#' || name.startsWith('#/') || name.endsWith('/')) {\n const reason = 'is not a valid internal imports specifier name';\n throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base))\n }\n\n /** @type {URL | undefined} */\n let packageJsonUrl;\n\n const packageConfig = getPackageScopeConfig(base);\n\n if (packageConfig.exists) {\n packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);\n const imports = packageConfig.imports;\n if (imports) {\n if (own.call(imports, name) && !name.includes('*')) {\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n imports[name],\n '',\n name,\n base,\n false,\n true,\n false,\n conditions\n );\n if (resolveResult !== null && resolveResult !== undefined) {\n return resolveResult\n }\n } else {\n let bestMatch = '';\n let bestMatchSubpath = '';\n const keys = Object.getOwnPropertyNames(imports);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n const patternIndex = key.indexOf('*');\n\n if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {\n const patternTrailer = key.slice(patternIndex + 1);\n if (\n name.length >= key.length &&\n name.endsWith(patternTrailer) &&\n patternKeyCompare(bestMatch, key) === 1 &&\n key.lastIndexOf('*') === patternIndex\n ) {\n bestMatch = key;\n bestMatchSubpath = name.slice(\n patternIndex,\n name.length - patternTrailer.length\n );\n }\n }\n }\n\n if (bestMatch) {\n const target = imports[bestMatch];\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n bestMatchSubpath,\n bestMatch,\n base,\n true,\n true,\n false,\n conditions\n );\n\n if (resolveResult !== null && resolveResult !== undefined) {\n return resolveResult\n }\n }\n }\n }\n }\n\n throw importNotDefined(name, packageJsonUrl, base)\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n */\nfunction parsePackageName(specifier, base) {\n let separatorIndex = specifier.indexOf('/');\n let validPackageName = true;\n let isScoped = false;\n if (specifier[0] === '@') {\n isScoped = true;\n if (separatorIndex === -1 || specifier.length === 0) {\n validPackageName = false;\n } else {\n separatorIndex = specifier.indexOf('/', separatorIndex + 1);\n }\n }\n\n const packageName =\n separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex);\n\n // Package name cannot have leading . and cannot have percent-encoding or\n // \\\\ separators.\n if (invalidPackageNameRegEx.exec(packageName) !== null) {\n validPackageName = false;\n }\n\n if (!validPackageName) {\n throw new ERR_INVALID_MODULE_SPECIFIER(\n specifier,\n 'is not a valid package name',\n fileURLToPath(base)\n )\n }\n\n const packageSubpath =\n '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex));\n\n return {packageName, packageSubpath, isScoped}\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction packageResolve(specifier, base, conditions) {\n if (builtinModules.includes(specifier)) {\n return new URL$1('node:' + specifier)\n }\n\n const {packageName, packageSubpath, isScoped} = parsePackageName(\n specifier,\n base\n );\n\n // ResolveSelf\n const packageConfig = getPackageScopeConfig(base);\n\n // Can’t test.\n /* c8 ignore next 16 */\n if (packageConfig.exists) {\n const packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);\n if (\n packageConfig.name === packageName &&\n packageConfig.exports !== undefined &&\n packageConfig.exports !== null\n ) {\n return packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n )\n }\n }\n\n let packageJsonUrl = new URL$1(\n './node_modules/' + packageName + '/package.json',\n base\n );\n let packageJsonPath = fileURLToPath(packageJsonUrl);\n /** @type {string} */\n let lastPath;\n do {\n const stat = tryStatSync(packageJsonPath.slice(0, -13));\n if (!stat || !stat.isDirectory()) {\n lastPath = packageJsonPath;\n packageJsonUrl = new URL$1(\n (isScoped ? '../../../../node_modules/' : '../../../node_modules/') +\n packageName +\n '/package.json',\n packageJsonUrl\n );\n packageJsonPath = fileURLToPath(packageJsonUrl);\n continue\n }\n\n // Package match.\n const packageConfig = read(packageJsonPath, {base, specifier});\n if (packageConfig.exports !== undefined && packageConfig.exports !== null) {\n return packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n )\n }\n\n if (packageSubpath === '.') {\n return legacyMainResolve(packageJsonUrl, packageConfig, base)\n }\n\n return new URL$1(packageSubpath, packageJsonUrl)\n // Cross-platform root check.\n } while (packageJsonPath.length !== lastPath.length)\n\n throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), false)\n}\n\n/**\n * @param {string} specifier\n * @returns {boolean}\n */\nfunction isRelativeSpecifier(specifier) {\n if (specifier[0] === '.') {\n if (specifier.length === 1 || specifier[1] === '/') return true\n if (\n specifier[1] === '.' &&\n (specifier.length === 2 || specifier[2] === '/')\n ) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * @param {string} specifier\n * @returns {boolean}\n */\nfunction shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {\n if (specifier === '') return false\n if (specifier[0] === '/') return true\n return isRelativeSpecifier(specifier)\n}\n\n/**\n * The “Resolver Algorithm Specification” as detailed in the Node docs (which is\n * sync and slightly lower-level than `resolve`).\n *\n * @param {string} specifier\n * `/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc.\n * @param {URL} base\n * Full URL (to a file) that `specifier` is resolved relative from.\n * @param {Set} [conditions]\n * Conditions.\n * @param {boolean} [preserveSymlinks]\n * Keep symlinks instead of resolving them.\n * @returns {URL}\n * A URL object to the found thing.\n */\nfunction moduleResolve(specifier, base, conditions, preserveSymlinks) {\n // Note: The Node code supports `base` as a string (in this internal API) too,\n // we don’t.\n const protocol = base.protocol;\n const isData = protocol === 'data:';\n const isRemote = isData || protocol === 'http:' || protocol === 'https:';\n // Order swapped from spec for minor perf gain.\n // Ok since relative URLs cannot parse as URLs.\n /** @type {URL | undefined} */\n let resolved;\n\n if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {\n try {\n resolved = new URL$1(specifier, base);\n } catch (error_) {\n const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);\n error.cause = error_;\n throw error\n }\n } else if (protocol === 'file:' && specifier[0] === '#') {\n resolved = packageImportsResolve(specifier, base, conditions);\n } else {\n try {\n resolved = new URL$1(specifier);\n } catch (error_) {\n // Note: actual code uses `canBeRequiredWithoutScheme`.\n if (isRemote && !builtinModules.includes(specifier)) {\n const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);\n error.cause = error_;\n throw error\n }\n\n resolved = packageResolve(specifier, base, conditions);\n }\n }\n\n assert(resolved !== undefined, 'expected to be defined');\n\n if (resolved.protocol !== 'file:') {\n return resolved\n }\n\n return finalizeResolution(resolved, base, preserveSymlinks)\n}\n\n/**\n * @param {string} specifier\n * @param {URL | undefined} parsed\n * @param {URL | undefined} parsedParentURL\n */\nfunction checkIfDisallowedImport(specifier, parsed, parsedParentURL) {\n if (parsedParentURL) {\n // Avoid accessing the `protocol` property due to the lazy getters.\n const parentProtocol = parsedParentURL.protocol;\n\n if (parentProtocol === 'http:' || parentProtocol === 'https:') {\n if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {\n // Avoid accessing the `protocol` property due to the lazy getters.\n const parsedProtocol = parsed?.protocol;\n\n // `data:` and `blob:` disallowed due to allowing file: access via\n // indirection\n if (\n parsedProtocol &&\n parsedProtocol !== 'https:' &&\n parsedProtocol !== 'http:'\n ) {\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'remote imports cannot import from a local location.'\n )\n }\n\n return {url: parsed?.href || ''}\n }\n\n if (builtinModules.includes(specifier)) {\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'remote imports cannot import from a local location.'\n )\n }\n\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'only relative and absolute specifiers are supported.'\n )\n }\n }\n}\n\n// Note: this is from:\n// \n/**\n * Checks if a value has the shape of a WHATWG URL object.\n *\n * Using a symbol or instanceof would not be able to recognize URL objects\n * coming from other implementations (e.g. in Electron), so instead we are\n * checking some well known properties for a lack of a better test.\n *\n * We use `href` and `protocol` as they are the only properties that are\n * easy to retrieve and calculate due to the lazy nature of the getters.\n *\n * @template {unknown} Value\n * @param {Value} self\n * @returns {Value is URL}\n */\nfunction isURL(self) {\n return Boolean(\n self &&\n typeof self === 'object' &&\n 'href' in self &&\n typeof self.href === 'string' &&\n 'protocol' in self &&\n typeof self.protocol === 'string' &&\n self.href &&\n self.protocol\n )\n}\n\n/**\n * Validate user-input in `context` supplied by a custom loader.\n *\n * @param {unknown} parentURL\n * @returns {asserts parentURL is URL | string | undefined}\n */\nfunction throwIfInvalidParentURL(parentURL) {\n if (parentURL === undefined) {\n return // Main entry point, so no parent\n }\n\n if (typeof parentURL !== 'string' && !isURL(parentURL)) {\n throw new codes.ERR_INVALID_ARG_TYPE(\n 'parentURL',\n ['string', 'URL'],\n parentURL\n )\n }\n}\n\n/**\n * @param {string} specifier\n * @param {{parentURL?: string, conditions?: Array}} context\n * @returns {{url: string, format?: string | null}}\n */\nfunction defaultResolve(specifier, context = {}) {\n const {parentURL} = context;\n assert(parentURL !== undefined, 'expected `parentURL` to be defined');\n throwIfInvalidParentURL(parentURL);\n\n /** @type {URL | undefined} */\n let parsedParentURL;\n if (parentURL) {\n try {\n parsedParentURL = new URL$1(parentURL);\n } catch {\n // Ignore exception\n }\n }\n\n /** @type {URL | undefined} */\n let parsed;\n /** @type {string | undefined} */\n let protocol;\n\n try {\n parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier)\n ? new URL$1(specifier, parsedParentURL)\n : new URL$1(specifier);\n\n // Avoid accessing the `protocol` property due to the lazy getters.\n protocol = parsed.protocol;\n\n if (protocol === 'data:') {\n return {url: parsed.href, format: null}\n }\n } catch {\n // Ignore exception\n }\n\n // There are multiple deep branches that can either throw or return; instead\n // of duplicating that deeply nested logic for the possible returns, DRY and\n // check for a return. This seems the least gnarly.\n const maybeReturn = checkIfDisallowedImport(\n specifier,\n parsed,\n parsedParentURL\n );\n\n if (maybeReturn) return maybeReturn\n\n // This must come after checkIfDisallowedImport\n if (protocol === undefined && parsed) {\n protocol = parsed.protocol;\n }\n\n if (protocol === 'node:') {\n return {url: specifier}\n }\n\n // This must come after checkIfDisallowedImport\n if (parsed && parsed.protocol === 'node:') return {url: specifier}\n\n const conditions = getConditionsSet(context.conditions);\n\n const url = moduleResolve(specifier, new URL$1(parentURL), conditions, false);\n\n return {\n // Do NOT cast `url` to a string: that will work even when there are real\n // problems, silencing them\n url: url.href,\n format: defaultGetFormatWithoutErrors(url, {parentURL})\n }\n}\n\n/**\n * @typedef {import('./lib/errors.js').ErrnoException} ErrnoException\n */\n\n\n/**\n * Match `import.meta.resolve` except that `parent` is required (you can pass\n * `import.meta.url`).\n *\n * @param {string} specifier\n * The module specifier to resolve relative to parent\n * (`/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`,\n * etc).\n * @param {string} parent\n * The absolute parent module URL to resolve from.\n * You must pass `import.meta.url` or something else.\n * @returns {string}\n * Returns a string to a full `file:`, `data:`, or `node:` URL\n * to the found thing.\n */\nfunction resolve(specifier, parent) {\n if (!parent) {\n throw new Error(\n 'Please pass `parent`: `import-meta-resolve` cannot ponyfill that'\n )\n }\n\n try {\n return defaultResolve(specifier, {parentURL: parent}).url\n } catch (error) {\n // See: \n const exception = /** @type {ErrnoException} */ (error);\n\n if (\n (exception.code === 'ERR_UNSUPPORTED_DIR_IMPORT' ||\n exception.code === 'ERR_MODULE_NOT_FOUND') &&\n typeof exception.url === 'string'\n ) {\n return exception.url\n }\n\n throw error\n }\n}\n\nexport { moduleResolve, resolve };\n"],"mappings":";;;;;;;AAoFA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAG,uBAAA,CAAAF,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,MAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,KAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,QAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,OAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,GAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,EAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,MAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,KAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuC,SAAAG,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAcvC,MAAMkB,KAAK,GAAG,CAAC,CAAC,CAACL,cAAc;AAE/B,MAAMM,WAAW,GAAG,oBAAoB;AAExC,MAAMC,MAAM,GAAG,IAAIC,GAAG,CAAC,CACrB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,EAER,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,CACT,CAAC;AAEF,MAAMC,KAAK,GAAG,CAAC,CAAC;AAahB,SAASC,UAAUA,CAACC,KAAK,EAAEC,IAAI,GAAG,KAAK,EAAE;EACvC,OAAOD,KAAK,CAACE,MAAM,GAAG,CAAC,GACnBF,KAAK,CAACG,IAAI,CAAC,IAAIF,IAAI,GAAG,CAAC,GACvB,GAAGD,KAAK,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACD,IAAI,CAAC,IAAI,CAAC,KAAKF,IAAI,IAAID,KAAK,CAACA,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC,EAAE;AAC5E;AAGA,MAAMG,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;AAC1B,MAAMC,kBAAkB,GAAG,kBAAkB;AAE7C,IAAIC,mBAAmB;AAEvBV,KAAK,CAACW,oBAAoB,GAAGC,WAAW,CACtC,sBAAsB,EAMtB,CAACC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,KAAK;EAC1BC,QAAKA,CAAC,CAAC,OAAOH,IAAI,KAAK,QAAQ,EAAE,yBAAyB,CAAC;EAC3D,IAAI,CAACI,KAAK,CAACC,OAAO,CAACJ,QAAQ,CAAC,EAAE;IAC5BA,QAAQ,GAAG,CAACA,QAAQ,CAAC;EACvB;EAEA,IAAIK,OAAO,GAAG,MAAM;EACpB,IAAIN,IAAI,CAACO,QAAQ,CAAC,WAAW,CAAC,EAAE;IAE9BD,OAAO,IAAI,GAAGN,IAAI,GAAG;EACvB,CAAC,MAAM;IACL,MAAMV,IAAI,GAAGU,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,GAAG,UAAU;IACzDF,OAAO,IAAI,IAAIN,IAAI,KAAKV,IAAI,GAAG;EACjC;EAEAgB,OAAO,IAAI,UAAU;EAGrB,MAAMG,KAAK,GAAG,EAAE;EAEhB,MAAMC,SAAS,GAAG,EAAE;EAEpB,MAAMC,KAAK,GAAG,EAAE;EAEhB,KAAK,MAAMC,KAAK,IAAIX,QAAQ,EAAE;IAC5BE,QAAKA,CAAC,CACJ,OAAOS,KAAK,KAAK,QAAQ,EACzB,gDACF,CAAC;IAED,IAAI3B,MAAM,CAACV,GAAG,CAACqC,KAAK,CAAC,EAAE;MACrBH,KAAK,CAACI,IAAI,CAACD,KAAK,CAACE,WAAW,CAAC,CAAC,CAAC;IACjC,CAAC,MAAM,IAAI9B,WAAW,CAAC+B,IAAI,CAACH,KAAK,CAAC,KAAK,IAAI,EAAE;MAC3CT,QAAKA,CAAC,CACJS,KAAK,KAAK,QAAQ,EAClB,kDACF,CAAC;MACDD,KAAK,CAACE,IAAI,CAACD,KAAK,CAAC;IACnB,CAAC,MAAM;MACLF,SAAS,CAACG,IAAI,CAACD,KAAK,CAAC;IACvB;EACF;EAIA,IAAIF,SAAS,CAACnB,MAAM,GAAG,CAAC,EAAE;IACxB,MAAMyB,GAAG,GAAGP,KAAK,CAACQ,OAAO,CAAC,QAAQ,CAAC;IACnC,IAAID,GAAG,KAAK,CAAC,CAAC,EAAE;MACdP,KAAK,CAAChB,KAAK,CAACuB,GAAG,EAAE,CAAC,CAAC;MACnBN,SAAS,CAACG,IAAI,CAAC,QAAQ,CAAC;IAC1B;EACF;EAEA,IAAIJ,KAAK,CAAClB,MAAM,GAAG,CAAC,EAAE;IACpBe,OAAO,IAAI,GAAGG,KAAK,CAAClB,MAAM,GAAG,CAAC,GAAG,aAAa,GAAG,SAAS,IAAIH,UAAU,CACtEqB,KAAK,EACL,IACF,CAAC,EAAE;IACH,IAAIC,SAAS,CAACnB,MAAM,GAAG,CAAC,IAAIoB,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAEe,OAAO,IAAI,MAAM;EACjE;EAEA,IAAII,SAAS,CAACnB,MAAM,GAAG,CAAC,EAAE;IACxBe,OAAO,IAAI,kBAAkBlB,UAAU,CAACsB,SAAS,EAAE,IAAI,CAAC,EAAE;IAC1D,IAAIC,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAEe,OAAO,IAAI,MAAM;EACzC;EAEA,IAAIK,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAE;IACpB,IAAIoB,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAE;MACpBe,OAAO,IAAI,UAAUlB,UAAU,CAACuB,KAAK,EAAE,IAAI,CAAC,EAAE;IAChD,CAAC,MAAM;MACL,IAAIA,KAAK,CAAC,CAAC,CAAC,CAACG,WAAW,CAAC,CAAC,KAAKH,KAAK,CAAC,CAAC,CAAC,EAAEL,OAAO,IAAI,KAAK;MACzDA,OAAO,IAAI,GAAGK,KAAK,CAAC,CAAC,CAAC,EAAE;IAC1B;EACF;EAEAL,OAAO,IAAI,cAAcY,qBAAqB,CAAChB,MAAM,CAAC,EAAE;EAExD,OAAOI,OAAO;AAChB,CAAC,EACDa,SACF,CAAC;AAEDhC,KAAK,CAACiC,4BAA4B,GAAGrB,WAAW,CAC9C,8BAA8B,EAM9B,CAACsB,OAAO,EAAEC,MAAM,EAAEC,IAAI,GAAGC,SAAS,KAAK;EACrC,OAAO,mBAAmBH,OAAO,KAAKC,MAAM,GAC1CC,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;AACJ,CAAC,EACDJ,SACF,CAAC;AAEDhC,KAAK,CAACsC,0BAA0B,GAAG1B,WAAW,CAC5C,4BAA4B,EAM5B,CAAC2B,IAAI,EAAEH,IAAI,EAAEjB,OAAO,KAAK;EACvB,OAAO,0BAA0BoB,IAAI,GACnCH,IAAI,GAAG,oBAAoBA,IAAI,EAAE,GAAG,EAAE,GACrCjB,OAAO,GAAG,KAAKA,OAAO,EAAE,GAAG,EAAE,EAAE;AACpC,CAAC,EACDqB,KACF,CAAC;AAEDxC,KAAK,CAACyC,0BAA0B,GAAG7B,WAAW,CAC5C,4BAA4B,EAQ5B,CAAC8B,WAAW,EAAEC,GAAG,EAAEC,MAAM,EAAEC,QAAQ,GAAG,KAAK,EAAET,IAAI,GAAGC,SAAS,KAAK;EAChE,MAAMS,YAAY,GAChB,OAAOF,MAAM,KAAK,QAAQ,IAC1B,CAACC,QAAQ,IACTD,MAAM,CAACxC,MAAM,GAAG,CAAC,IACjB,CAACwC,MAAM,CAACG,UAAU,CAAC,IAAI,CAAC;EAC1B,IAAIJ,GAAG,KAAK,GAAG,EAAE;IACf3B,QAAKA,CAAC,CAAC6B,QAAQ,KAAK,KAAK,CAAC;IAC1B,OACE,iCAAiCG,IAAI,CAACC,SAAS,CAACL,MAAM,CAAC,WAAW,GAClE,yBAAyBF,WAAW,eAClCN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,GACnCU,YAAY,GAAG,gCAAgC,GAAG,EAAE,EAAE;EAE7D;EAEA,OAAO,YACLD,QAAQ,GAAG,SAAS,GAAG,SAAS,YACtBG,IAAI,CAACC,SAAS,CACxBL,MACF,CAAC,iBAAiBD,GAAG,2BAA2BD,WAAW,eACzDN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,GACnCU,YAAY,GAAG,gCAAgC,GAAG,EAAE,EAAE;AAC3D,CAAC,EACDN,KACF,CAAC;AAEDxC,KAAK,CAACkD,oBAAoB,GAAGtC,WAAW,CACtC,sBAAsB,EAMtB,CAAC2B,IAAI,EAAEH,IAAI,EAAEe,QAAQ,GAAG,KAAK,KAAK;EAChC,OAAO,eACLA,QAAQ,GAAG,QAAQ,GAAG,SAAS,KAC5BZ,IAAI,mBAAmBH,IAAI,EAAE;AACpC,CAAC,EACDI,KACF,CAAC;AAEDxC,KAAK,CAACoD,6BAA6B,GAAGxC,WAAW,CAC/C,+BAA+B,EAC/B,2CAA2C,EAC3C4B,KACF,CAAC;AAEDxC,KAAK,CAACqD,8BAA8B,GAAGzC,WAAW,CAChD,gCAAgC,EAMhC,CAAC0C,SAAS,EAAEZ,WAAW,EAAEN,IAAI,KAAK;EAChC,OAAO,6BAA6BkB,SAAS,mBAC3CZ,WAAW,GAAG,eAAeA,WAAW,cAAc,GAAG,EAAE,kBAC3CN,IAAI,EAAE;AAC1B,CAAC,EACDJ,SACF,CAAC;AAEDhC,KAAK,CAACuD,6BAA6B,GAAG3C,WAAW,CAC/C,+BAA+B,EAM/B,CAAC8B,WAAW,EAAEc,OAAO,EAAEpB,IAAI,GAAGC,SAAS,KAAK;EAC1C,IAAImB,OAAO,KAAK,GAAG,EACjB,OAAO,gCAAgCd,WAAW,eAChDN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;EACJ,OAAO,oBAAoBoB,OAAO,oCAAoCd,WAAW,eAC/EN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;AACJ,CAAC,EACDI,KACF,CAAC;AAEDxC,KAAK,CAACyD,0BAA0B,GAAG7C,WAAW,CAC5C,4BAA4B,EAC5B,yCAAyC,GACvC,uCAAuC,EACzC4B,KACF,CAAC;AAEDxC,KAAK,CAAC0D,+BAA+B,GAAG9C,WAAW,CACjD,iCAAiC,EACjC,6GAA6G,EAC7GoB,SACF,CAAC;AAEDhC,KAAK,CAAC2D,0BAA0B,GAAG/C,WAAW,CAC5C,4BAA4B,EAK5B,CAACgD,SAAS,EAAErB,IAAI,KAAK;EACnB,OAAO,2BAA2BqB,SAAS,SAASrB,IAAI,EAAE;AAC5D,CAAC,EACDP,SACF,CAAC;AAEDhC,KAAK,CAAC6D,qBAAqB,GAAGjD,WAAW,CACvC,uBAAuB,EAMvB,CAACC,IAAI,EAAEY,KAAK,EAAEU,MAAM,GAAG,YAAY,KAAK;EACtC,IAAI2B,SAAS,GAAG,IAAAC,eAAO,EAACtC,KAAK,CAAC;EAE9B,IAAIqC,SAAS,CAAC1D,MAAM,GAAG,GAAG,EAAE;IAC1B0D,SAAS,GAAG,GAAGA,SAAS,CAACxD,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK;EAC7C;EAEA,MAAMH,IAAI,GAAGU,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,GAAG,UAAU;EAEzD,OAAO,OAAOlB,IAAI,KAAKU,IAAI,KAAKsB,MAAM,cAAc2B,SAAS,EAAE;AACjE,CAAC,EACD9B,SAGF,CAAC;AAUD,SAASpB,WAAWA,CAACoD,GAAG,EAAEvC,KAAK,EAAEwC,WAAW,EAAE;EAG5C1D,QAAQ,CAACjB,GAAG,CAAC0E,GAAG,EAAEvC,KAAK,CAAC;EAExB,OAAOyC,qBAAqB,CAACD,WAAW,EAAED,GAAG,CAAC;AAChD;AAOA,SAASE,qBAAqBA,CAACC,IAAI,EAAExB,GAAG,EAAE;EAExC,OAAOyB,SAAS;EAIhB,SAASA,SAASA,CAAC,GAAGC,UAAU,EAAE;IAChC,MAAMC,KAAK,GAAG9B,KAAK,CAAC+B,eAAe;IACnC,IAAIC,8BAA8B,CAAC,CAAC,EAAEhC,KAAK,CAAC+B,eAAe,GAAG,CAAC;IAC/D,MAAME,KAAK,GAAG,IAAIN,IAAI,CAAC,CAAC;IAExB,IAAIK,8BAA8B,CAAC,CAAC,EAAEhC,KAAK,CAAC+B,eAAe,GAAGD,KAAK;IACnE,MAAMnD,OAAO,GAAGuD,UAAU,CAAC/B,GAAG,EAAE0B,UAAU,EAAEI,KAAK,CAAC;IAClDhF,MAAM,CAACkF,gBAAgB,CAACF,KAAK,EAAE;MAG7BtD,OAAO,EAAE;QACPM,KAAK,EAAEN,OAAO;QACdyD,UAAU,EAAE,KAAK;QACjBC,QAAQ,EAAE,IAAI;QACdC,YAAY,EAAE;MAChB,CAAC;MACDC,QAAQ,EAAE;QAERtD,KAAKA,CAAA,EAAG;UACN,OAAO,GAAG,IAAI,CAACZ,IAAI,KAAK8B,GAAG,MAAM,IAAI,CAACxB,OAAO,EAAE;QACjD,CAAC;QACDyD,UAAU,EAAE,KAAK;QACjBC,QAAQ,EAAE,IAAI;QACdC,YAAY,EAAE;MAChB;IACF,CAAC,CAAC;IAEFE,uBAAuB,CAACP,KAAK,CAAC;IAE9BA,KAAK,CAACQ,IAAI,GAAGtC,GAAG;IAChB,OAAO8B,KAAK;EACd;AACF;AAKA,SAASD,8BAA8BA,CAAA,EAAG;EAGxC,IAAI;IACF,IAAIU,GAACA,CAAC,CAACC,eAAe,CAACC,kBAAkB,CAAC,CAAC,EAAE;MAC3C,OAAO,KAAK;IACd;EACF,CAAC,CAAC,OAAAC,OAAA,EAAM,CAAC;EAET,MAAMC,IAAI,GAAG7F,MAAM,CAACE,wBAAwB,CAAC6C,KAAK,EAAE,iBAAiB,CAAC;EACtE,IAAI8C,IAAI,KAAKjD,SAAS,EAAE;IACtB,OAAO5C,MAAM,CAAC8F,YAAY,CAAC/C,KAAK,CAAC;EACnC;EAEA,OAAO5C,KAAK,CAACJ,IAAI,CAAC8F,IAAI,EAAE,UAAU,CAAC,IAAIA,IAAI,CAACT,QAAQ,KAAKxC,SAAS,GAC9DiD,IAAI,CAACT,QAAQ,GACbS,IAAI,CAAChG,GAAG,KAAK+C,SAAS;AAC5B;AAQA,SAASmD,eAAeA,CAACC,eAAe,EAAE;EAGxC,MAAMC,MAAM,GAAGjF,kBAAkB,GAAGgF,eAAe,CAAC5E,IAAI;EACxDpB,MAAM,CAACC,cAAc,CAAC+F,eAAe,EAAE,MAAM,EAAE;IAAChE,KAAK,EAAEiE;EAAM,CAAC,CAAC;EAC/D,OAAOD,eAAe;AACxB;AAEA,MAAMT,uBAAuB,GAAGQ,eAAe,CAM7C,UAAUf,KAAK,EAAE;EACf,MAAMkB,yBAAyB,GAAGnB,8BAA8B,CAAC,CAAC;EAClE,IAAImB,yBAAyB,EAAE;IAC7BjF,mBAAmB,GAAG8B,KAAK,CAAC+B,eAAe;IAC3C/B,KAAK,CAAC+B,eAAe,GAAGqB,MAAM,CAACC,iBAAiB;EAClD;EAEArD,KAAK,CAACsD,iBAAiB,CAACrB,KAAK,CAAC;EAG9B,IAAIkB,yBAAyB,EAAEnD,KAAK,CAAC+B,eAAe,GAAG7D,mBAAmB;EAE1E,OAAO+D,KAAK;AACd,CACF,CAAC;AAQD,SAASC,UAAUA,CAAC/B,GAAG,EAAE0B,UAAU,EAAE0B,IAAI,EAAE;EACzC,MAAM5E,OAAO,GAAGZ,QAAQ,CAAClB,GAAG,CAACsD,GAAG,CAAC;EACjC3B,QAAKA,CAAC,CAACG,OAAO,KAAKkB,SAAS,EAAE,gCAAgC,CAAC;EAE/D,IAAI,OAAOlB,OAAO,KAAK,UAAU,EAAE;IACjCH,QAAKA,CAAC,CACJG,OAAO,CAACf,MAAM,IAAIiE,UAAU,CAACjE,MAAM,EACnC,SAASuC,GAAG,oCAAoC0B,UAAU,CAACjE,MAAM,aAAa,GAC5E,4BAA4Be,OAAO,CAACf,MAAM,IAC9C,CAAC;IACD,OAAO4F,OAAO,CAACC,KAAK,CAAC9E,OAAO,EAAE4E,IAAI,EAAE1B,UAAU,CAAC;EACjD;EAEA,MAAM6B,KAAK,GAAG,aAAa;EAC3B,IAAIC,cAAc,GAAG,CAAC;EACtB,OAAOD,KAAK,CAACtE,IAAI,CAACT,OAAO,CAAC,KAAK,IAAI,EAAEgF,cAAc,EAAE;EACrDnF,QAAKA,CAAC,CACJmF,cAAc,KAAK9B,UAAU,CAACjE,MAAM,EACpC,SAASuC,GAAG,oCAAoC0B,UAAU,CAACjE,MAAM,aAAa,GAC5E,4BAA4B+F,cAAc,IAC9C,CAAC;EACD,IAAI9B,UAAU,CAACjE,MAAM,KAAK,CAAC,EAAE,OAAOe,OAAO;EAE3CkD,UAAU,CAAC+B,OAAO,CAACjF,OAAO,CAAC;EAC3B,OAAO6E,OAAO,CAACC,KAAK,CAACI,cAAM,EAAE,IAAI,EAAEhC,UAAU,CAAC;AAChD;AAOA,SAAStC,qBAAqBA,CAACN,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKY,SAAS,EAAE;IACzC,OAAOiE,MAAM,CAAC7E,KAAK,CAAC;EACtB;EAEA,IAAI,OAAOA,KAAK,KAAK,UAAU,IAAIA,KAAK,CAACZ,IAAI,EAAE;IAC7C,OAAO,YAAYY,KAAK,CAACZ,IAAI,EAAE;EACjC;EAEA,IAAI,OAAOY,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,CAACwC,WAAW,IAAIxC,KAAK,CAACwC,WAAW,CAACpD,IAAI,EAAE;MAC/C,OAAO,kBAAkBY,KAAK,CAACwC,WAAW,CAACpD,IAAI,EAAE;IACnD;IAEA,OAAO,GAAG,IAAAkD,eAAO,EAACtC,KAAK,EAAE;MAAC8E,KAAK,EAAE,CAAC;IAAC,CAAC,CAAC,EAAE;EACzC;EAEA,IAAIzC,SAAS,GAAG,IAAAC,eAAO,EAACtC,KAAK,EAAE;IAAC+E,MAAM,EAAE;EAAK,CAAC,CAAC;EAE/C,IAAI1C,SAAS,CAAC1D,MAAM,GAAG,EAAE,EAAE;IACzB0D,SAAS,GAAG,GAAGA,SAAS,CAACxD,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK;EAC5C;EAEA,OAAO,QAAQ,OAAOmB,KAAK,KAAKqC,SAAS,GAAG;AAC9C;AASA,MAAM2C,gBAAgB,GAAG,CAAC,CAAC,CAAClH,cAAc;AAE1C,MAAM;EAAC+C,0BAA0B,EAAEoE;AAA4B,CAAC,GAAG1G,KAAK;AAGxE,MAAM2G,KAAK,GAAG,IAAInG,GAAG,CAAC,CAAC;AAOvB,SAASoG,IAAIA,CAACC,QAAQ,EAAE;EAACzE,IAAI;EAAEkB;AAAS,CAAC,EAAE;EACzC,MAAMwD,QAAQ,GAAGH,KAAK,CAACtH,GAAG,CAACwH,QAAQ,CAAC;EAEpC,IAAIC,QAAQ,EAAE;IACZ,OAAOA,QAAQ;EACjB;EAGA,IAAIC,MAAM;EAEV,IAAI;IACFA,MAAM,GAAGC,aAAE,CAACC,YAAY,CAAC1E,MAAGA,CAAC,CAAC2E,gBAAgB,CAACL,QAAQ,CAAC,EAAE,MAAM,CAAC;EACnE,CAAC,CAAC,OAAOpC,KAAK,EAAE;IACd,MAAM0C,SAAS,GAAkC1C,KAAM;IAEvD,IAAI0C,SAAS,CAAClC,IAAI,KAAK,QAAQ,EAAE;MAC/B,MAAMkC,SAAS;IACjB;EACF;EAGA,MAAMC,MAAM,GAAG;IACbC,MAAM,EAAE,KAAK;IACbC,SAAS,EAAET,QAAQ;IACnBU,IAAI,EAAElF,SAAS;IACfxB,IAAI,EAAEwB,SAAS;IACflC,IAAI,EAAE,MAAM;IACZqH,OAAO,EAAEnF,SAAS;IAClBoF,OAAO,EAAEpF;EACX,CAAC;EAED,IAAI0E,MAAM,KAAK1E,SAAS,EAAE;IAExB,IAAIqF,MAAM;IAEV,IAAI;MACFA,MAAM,GAAG1E,IAAI,CAAC2E,KAAK,CAACZ,MAAM,CAAC;IAC7B,CAAC,CAAC,OAAOa,MAAM,EAAE;MACf,MAAMC,KAAK,GAAkCD,MAAO;MACpD,MAAMnD,KAAK,GAAG,IAAIiC,4BAA4B,CAC5CG,QAAQ,EACR,CAACzE,IAAI,GAAG,IAAIkB,SAAS,SAAS,GAAG,EAAE,IAAI,IAAAwE,oBAAa,EAAC1F,IAAI,IAAIkB,SAAS,CAAC,EACvEuE,KAAK,CAAC1G,OACR,CAAC;MACDsD,KAAK,CAACoD,KAAK,GAAGA,KAAK;MACnB,MAAMpD,KAAK;IACb;IAEA2C,MAAM,CAACC,MAAM,GAAG,IAAI;IAEpB,IACEZ,gBAAgB,CAACjH,IAAI,CAACkI,MAAM,EAAE,MAAM,CAAC,IACrC,OAAOA,MAAM,CAAC7G,IAAI,KAAK,QAAQ,EAC/B;MACAuG,MAAM,CAACvG,IAAI,GAAG6G,MAAM,CAAC7G,IAAI;IAC3B;IAEA,IACE4F,gBAAgB,CAACjH,IAAI,CAACkI,MAAM,EAAE,MAAM,CAAC,IACrC,OAAOA,MAAM,CAACH,IAAI,KAAK,QAAQ,EAC/B;MACAH,MAAM,CAACG,IAAI,GAAGG,MAAM,CAACH,IAAI;IAC3B;IAEA,IAAId,gBAAgB,CAACjH,IAAI,CAACkI,MAAM,EAAE,SAAS,CAAC,EAAE;MAE5CN,MAAM,CAACI,OAAO,GAAGE,MAAM,CAACF,OAAO;IACjC;IAEA,IAAIf,gBAAgB,CAACjH,IAAI,CAACkI,MAAM,EAAE,SAAS,CAAC,EAAE;MAE5CN,MAAM,CAACK,OAAO,GAAGC,MAAM,CAACD,OAAO;IACjC;IAGA,IACEhB,gBAAgB,CAACjH,IAAI,CAACkI,MAAM,EAAE,MAAM,CAAC,KACpCA,MAAM,CAACvH,IAAI,KAAK,UAAU,IAAIuH,MAAM,CAACvH,IAAI,KAAK,QAAQ,CAAC,EACxD;MACAiH,MAAM,CAACjH,IAAI,GAAGuH,MAAM,CAACvH,IAAI;IAC3B;EACF;EAEAwG,KAAK,CAACrH,GAAG,CAACuH,QAAQ,EAAEO,MAAM,CAAC;EAE3B,OAAOA,MAAM;AACf;AAMA,SAASW,qBAAqBA,CAACC,QAAQ,EAAE;EAEvC,IAAIC,cAAc,GAAG,IAAIC,GAAG,CAAC,cAAc,EAAEF,QAAQ,CAAC;EAEtD,OAAO,IAAI,EAAE;IACX,MAAMG,eAAe,GAAGF,cAAc,CAACG,QAAQ;IAC/C,IAAID,eAAe,CAAC/G,QAAQ,CAAC,2BAA2B,CAAC,EAAE;MACzD;IACF;IAEA,MAAMiH,aAAa,GAAGzB,IAAI,CAAC,IAAAkB,oBAAa,EAACG,cAAc,CAAC,EAAE;MACxD3E,SAAS,EAAE0E;IACb,CAAC,CAAC;IAEF,IAAIK,aAAa,CAAChB,MAAM,EAAE;MACxB,OAAOgB,aAAa;IACtB;IAEA,MAAMC,kBAAkB,GAAGL,cAAc;IACzCA,cAAc,GAAG,IAAIC,GAAG,CAAC,iBAAiB,EAAED,cAAc,CAAC;IAI3D,IAAIA,cAAc,CAACG,QAAQ,KAAKE,kBAAkB,CAACF,QAAQ,EAAE;MAC3D;IACF;EACF;EAEA,MAAMD,eAAe,GAAG,IAAAL,oBAAa,EAACG,cAAc,CAAC;EAGrD,OAAO;IACLX,SAAS,EAAEa,eAAe;IAC1Bd,MAAM,EAAE,KAAK;IACblH,IAAI,EAAE;EACR,CAAC;AACH;AAOA,SAASoI,cAAcA,CAACC,GAAG,EAAE;EAE3B,OAAOT,qBAAqB,CAACS,GAAG,CAAC,CAACrI,IAAI;AACxC;AAOA,MAAM;EAACwD;AAA0B,CAAC,GAAG3D,KAAK;AAE1C,MAAMT,cAAc,GAAG,CAAC,CAAC,CAACA,cAAc;AAGxC,MAAMkJ,kBAAkB,GAAG;EAEzBvJ,SAAS,EAAE,IAAI;EACf,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,MAAM;EACf,MAAM,EAAE;AACV,CAAC;AAMD,SAASwJ,YAAYA,CAACC,IAAI,EAAE;EAC1B,IACEA,IAAI,IACJ,+DAA+D,CAACC,IAAI,CAACD,IAAI,CAAC,EAE1E,OAAO,QAAQ;EACjB,IAAIA,IAAI,KAAK,kBAAkB,EAAE,OAAO,MAAM;EAC9C,OAAO,IAAI;AACb;AAaA,MAAME,gBAAgB,GAAG;EAEvB3J,SAAS,EAAE,IAAI;EACf,OAAO,EAAE4J,2BAA2B;EACpC,OAAO,EAAEC,2BAA2B;EACpC,OAAO,EAAEC,2BAA2B;EACpC,QAAQ,EAAEA,2BAA2B;EACrC,OAAOC,CAAA,EAAG;IACR,OAAO,SAAS;EAClB;AACF,CAAC;AAKD,SAASH,2BAA2BA,CAACpB,MAAM,EAAE;EAC3C,MAAM;IAAC,CAAC,EAAEiB;EAAI,CAAC,GAAG,mCAAmC,CAAC/G,IAAI,CACxD8F,MAAM,CAACU,QACT,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;EACvB,OAAOM,YAAY,CAACC,IAAI,CAAC;AAC3B;AAYA,SAASO,OAAOA,CAACV,GAAG,EAAE;EACpB,MAAMJ,QAAQ,GAAGI,GAAG,CAACJ,QAAQ;EAC7B,IAAIe,KAAK,GAAGf,QAAQ,CAAChI,MAAM;EAE3B,OAAO+I,KAAK,EAAE,EAAE;IACd,MAAMlE,IAAI,GAAGmD,QAAQ,CAACgB,WAAW,CAACD,KAAK,CAAC;IAExC,IAAIlE,IAAI,KAAK,EAAE,EAAY;MACzB,OAAO,EAAE;IACX;IAEA,IAAIA,IAAI,KAAK,EAAE,EAAY;MACzB,OAAOmD,QAAQ,CAACgB,WAAW,CAACD,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,GACzC,EAAE,GACFf,QAAQ,CAAC9H,KAAK,CAAC6I,KAAK,CAAC;IAC3B;EACF;EAEA,OAAO,EAAE;AACX;AAKA,SAASJ,2BAA2BA,CAACP,GAAG,EAAEa,QAAQ,EAAEC,YAAY,EAAE;EAChE,MAAM7H,KAAK,GAAGyH,OAAO,CAACV,GAAG,CAAC;EAE1B,IAAI/G,KAAK,KAAK,KAAK,EAAE;IACnB,MAAM8H,WAAW,GAAGhB,cAAc,CAACC,GAAG,CAAC;IAEvC,IAAIe,WAAW,KAAK,MAAM,EAAE;MAC1B,OAAOA,WAAW;IACpB;IAEA,OAAO,UAAU;EACnB;EAEA,IAAI9H,KAAK,KAAK,EAAE,EAAE;IAChB,MAAM8H,WAAW,GAAGhB,cAAc,CAACC,GAAG,CAAC;IAGvC,IAAIe,WAAW,KAAK,MAAM,IAAIA,WAAW,KAAK,UAAU,EAAE;MACxD,OAAO,UAAU;IACnB;IAIA,OAAO,QAAQ;EACjB;EAEA,MAAMlD,MAAM,GAAGoC,kBAAkB,CAAChH,KAAK,CAAC;EACxC,IAAI4E,MAAM,EAAE,OAAOA,MAAM;EAGzB,IAAIiD,YAAY,EAAE;IAChB,OAAOjH,SAAS;EAClB;EAEA,MAAMmH,QAAQ,GAAG,IAAA1B,oBAAa,EAACU,GAAG,CAAC;EACnC,MAAM,IAAI7E,0BAA0B,CAAClC,KAAK,EAAE+H,QAAQ,CAAC;AACvD;AAEA,SAASR,2BAA2BA,CAAA,EAAG,CAEvC;AAOA,SAASS,6BAA6BA,CAACjB,GAAG,EAAEkB,OAAO,EAAE;EACnD,MAAMC,QAAQ,GAAGnB,GAAG,CAACmB,QAAQ;EAE7B,IAAI,CAACpK,cAAc,CAACC,IAAI,CAACqJ,gBAAgB,EAAEc,QAAQ,CAAC,EAAE;IACpD,OAAO,IAAI;EACb;EAEA,OAAOd,gBAAgB,CAACc,QAAQ,CAAC,CAACnB,GAAG,EAAEkB,OAAO,EAAE,IAAI,CAAC,IAAI,IAAI;AAC/D;AAOA,MAAM;EAAC7F;AAAqB,CAAC,GAAG7D,KAAK;AAKrC,MAAM4J,kBAAkB,GAAGnK,MAAM,CAACoK,MAAM,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC5D,MAAMC,sBAAsB,GAAG,IAAI/J,GAAG,CAAC6J,kBAAkB,CAAC;AAK1D,SAASG,oBAAoBA,CAAA,EAAG;EAC9B,OAAOH,kBAAkB;AAC3B;AAKA,SAASI,uBAAuBA,CAAA,EAAG;EACjC,OAAOF,sBAAsB;AAC/B;AAMA,SAASG,gBAAgBA,CAACC,UAAU,EAAE;EACpC,IAAIA,UAAU,KAAK7H,SAAS,IAAI6H,UAAU,KAAKH,oBAAoB,CAAC,CAAC,EAAE;IACrE,IAAI,CAAC9I,KAAK,CAACC,OAAO,CAACgJ,UAAU,CAAC,EAAE;MAC9B,MAAM,IAAIrG,qBAAqB,CAC7B,YAAY,EACZqG,UAAU,EACV,mBACF,CAAC;IACH;IAEA,OAAO,IAAInK,GAAG,CAACmK,UAAU,CAAC;EAC5B;EAEA,OAAOF,uBAAuB,CAAC,CAAC;AAClC;AAOA,MAAMG,4BAA4B,GAAGC,MAAM,CAACC,SAAS,CAACC,MAAM,CAACC,OAAO,CAAC;AAErE,MAAM;EACJnH,6BAA6B;EAC7BnB,4BAA4B;EAC5BK,0BAA0B;EAC1BG,0BAA0B;EAC1BS,oBAAoB;EACpBG,8BAA8B;EAC9BE,6BAA6B;EAC7BE,0BAA0B;EAC1BC;AACF,CAAC,GAAG1D,KAAK;AAET,MAAMwK,GAAG,GAAG,CAAC,CAAC,CAACjL,cAAc;AAE7B,MAAMkL,mBAAmB,GACvB,0KAA0K;AAC5K,MAAMC,6BAA6B,GACjC,yKAAyK;AAC3K,MAAMC,uBAAuB,GAAG,UAAU;AAC1C,MAAMC,YAAY,GAAG,KAAK;AAC1B,MAAMC,qBAAqB,GAAG,UAAU;AAExC,MAAMC,sBAAsB,GAAG,IAAI/K,GAAG,CAAC,CAAC;AAExC,MAAMgL,gBAAgB,GAAG,UAAU;AAYnC,SAASC,6BAA6BA,CACpCpI,MAAM,EACNV,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJgJ,QAAQ,EACR;EAEA,IAAIC,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMhE,SAAS,GAAG,IAAAQ,oBAAa,EAACoD,cAAc,CAAC;EAC/C,MAAMK,MAAM,GAAGR,gBAAgB,CAACnJ,IAAI,CAACwJ,QAAQ,GAAGxI,MAAM,GAAGV,OAAO,CAAC,KAAK,IAAI;EAC1EmJ,SAAMA,CAAC,CAACG,WAAW,CACjB,qBACED,MAAM,GAAG,cAAc,GAAG,oCAAoC,eACjD3I,MAAM,eAAe,GAClC,YAAYV,OAAO,KACjBA,OAAO,KAAK+I,KAAK,GAAG,EAAE,GAAG,eAAeA,KAAK,IAAI,WAEjDE,QAAQ,GAAG,SAAS,GAAG,SAAS,+CACa7D,SAAS,GACtDlF,IAAI,GAAG,kBAAkB,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAAE,GAAG,EAAE,GAClD,EACL,oBAAoB,EACpB,SACF,CAAC;AACH;AASA,SAASqJ,0BAA0BA,CAACjD,GAAG,EAAE0C,cAAc,EAAE9I,IAAI,EAAEmF,IAAI,EAAE;EAEnE,IAAI8D,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMjF,MAAM,GAAGoD,6BAA6B,CAACjB,GAAG,EAAE;IAACkD,SAAS,EAAEtJ,IAAI,CAACuJ;EAAI,CAAC,CAAC;EACzE,IAAItF,MAAM,KAAK,QAAQ,EAAE;EACzB,MAAMuF,OAAO,GAAG,IAAA9D,oBAAa,EAACU,GAAG,CAACmD,IAAI,CAAC;EACvC,MAAMjJ,WAAW,GAAG,IAAAoF,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC;EACjE,MAAMY,QAAQ,GAAG,IAAAhE,oBAAa,EAAC1F,IAAI,CAAC;EACpC,IAAI,CAACmF,IAAI,EAAE;IACT8D,SAAMA,CAAC,CAACG,WAAW,CACjB,gEAAgE9I,WAAW,oCAAoCkJ,OAAO,CAACtL,KAAK,CAC1HoC,WAAW,CAACtC,MACd,CAAC,oBAAoB0L,QAAQ,wEAAwE,EACrG,oBAAoB,EACpB,SACF,CAAC;EACH,CAAC,MAAM,IAAIvJ,MAAGA,CAAC,CAACwJ,OAAO,CAACrJ,WAAW,EAAE6E,IAAI,CAAC,KAAKqE,OAAO,EAAE;IACtDP,SAAMA,CAAC,CAACG,WAAW,CACjB,WAAW9I,WAAW,+BAA+B6E,IAAI,KAAK,GAC5D,sEAAsEqE,OAAO,CAACtL,KAAK,CACjFoC,WAAW,CAACtC,MACd,CAAC,oBAAoB0L,QAAQ,4DAA4D,GACzF,4BAA4B,EAC9B,oBAAoB,EACpB,SACF,CAAC;EACH;AACF;AAMA,SAASE,WAAWA,CAACzJ,IAAI,EAAE;EAEzB,IAAI;IACF,OAAO,IAAA0J,cAAQ,EAAC1J,IAAI,CAAC;EACvB,CAAC,CAAC,OAAA2J,QAAA,EAAM,CAKR;AACF;AAaA,SAASC,UAAUA,CAAC3D,GAAG,EAAE;EACvB,MAAM4D,KAAK,GAAG,IAAAH,cAAQ,EAACzD,GAAG,EAAE;IAAC6D,cAAc,EAAE;EAAK,CAAC,CAAC;EACpD,MAAMC,MAAM,GAAGF,KAAK,GAAGA,KAAK,CAACE,MAAM,CAAC,CAAC,GAAGjK,SAAS;EACjD,OAAOiK,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKjK,SAAS,GAAG,KAAK,GAAGiK,MAAM;AACjE;AAQA,SAASC,iBAAiBA,CAACrB,cAAc,EAAE7C,aAAa,EAAEjG,IAAI,EAAE;EAE9D,IAAIoK,KAAK;EACT,IAAInE,aAAa,CAACd,IAAI,KAAKlF,SAAS,EAAE;IACpCmK,KAAK,GAAG,KAAIX,UAAK,EAACxD,aAAa,CAACd,IAAI,EAAE2D,cAAc,CAAC;IAErD,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE,OAAOA,KAAK;IAEnC,MAAMC,KAAK,GAAG,CACZ,KAAKpE,aAAa,CAACd,IAAI,KAAK,EAC5B,KAAKc,aAAa,CAACd,IAAI,OAAO,EAC9B,KAAKc,aAAa,CAACd,IAAI,OAAO,EAC9B,KAAKc,aAAa,CAACd,IAAI,WAAW,EAClC,KAAKc,aAAa,CAACd,IAAI,aAAa,EACpC,KAAKc,aAAa,CAACd,IAAI,aAAa,CACrC;IACD,IAAIvI,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAGyN,KAAK,CAACrM,MAAM,EAAE;MACzBoM,KAAK,GAAG,KAAIX,UAAK,EAACY,KAAK,CAACzN,CAAC,CAAC,EAAEkM,cAAc,CAAC;MAC3C,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE;MACvBA,KAAK,GAAGnK,SAAS;IACnB;IAEA,IAAImK,KAAK,EAAE;MACTf,0BAA0B,CACxBe,KAAK,EACLtB,cAAc,EACd9I,IAAI,EACJiG,aAAa,CAACd,IAChB,CAAC;MACD,OAAOiF,KAAK;IACd;EAEF;EAEA,MAAMC,KAAK,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,cAAc,CAAC;EAC5D,IAAIzN,CAAC,GAAG,CAAC,CAAC;EAEV,OAAO,EAAEA,CAAC,GAAGyN,KAAK,CAACrM,MAAM,EAAE;IACzBoM,KAAK,GAAG,KAAIX,UAAK,EAACY,KAAK,CAACzN,CAAC,CAAC,EAAEkM,cAAc,CAAC;IAC3C,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE;IACvBA,KAAK,GAAGnK,SAAS;EACnB;EAEA,IAAImK,KAAK,EAAE;IACTf,0BAA0B,CAACe,KAAK,EAAEtB,cAAc,EAAE9I,IAAI,EAAEiG,aAAa,CAACd,IAAI,CAAC;IAC3E,OAAOiF,KAAK;EACd;EAGA,MAAM,IAAItJ,oBAAoB,CAC5B,IAAA4E,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C,IAAApD,oBAAa,EAAC1F,IAAI,CACpB,CAAC;AACH;AAQA,SAASsK,kBAAkBA,CAAC1E,QAAQ,EAAE5F,IAAI,EAAEuK,gBAAgB,EAAE;EAC5D,IAAI9B,qBAAqB,CAACjJ,IAAI,CAACoG,QAAQ,CAACI,QAAQ,CAAC,KAAK,IAAI,EAAE;IAC1D,MAAM,IAAInG,4BAA4B,CACpC+F,QAAQ,CAACI,QAAQ,EACjB,iDAAiD,EACjD,IAAAN,oBAAa,EAAC1F,IAAI,CACpB,CAAC;EACH;EAGA,IAAIwK,QAAQ;EAEZ,IAAI;IACFA,QAAQ,GAAG,IAAA9E,oBAAa,EAACE,QAAQ,CAAC;EACpC,CAAC,CAAC,OAAOvD,KAAK,EAAE;IACd,MAAMoD,KAAK,GAAkCpD,KAAM;IACnDhF,MAAM,CAACC,cAAc,CAACmI,KAAK,EAAE,OAAO,EAAE;MAACpG,KAAK,EAAE6E,MAAM,CAAC0B,QAAQ;IAAC,CAAC,CAAC;IAChEvI,MAAM,CAACC,cAAc,CAACmI,KAAK,EAAE,QAAQ,EAAE;MAACpG,KAAK,EAAE6E,MAAM,CAAClE,IAAI;IAAC,CAAC,CAAC;IAC7D,MAAMyF,KAAK;EACb;EAEA,MAAMuE,KAAK,GAAGJ,WAAW,CACvBY,QAAQ,CAACxL,QAAQ,CAAC,GAAG,CAAC,GAAGwL,QAAQ,CAACtM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAGsM,QAChD,CAAC;EAED,IAAIR,KAAK,IAAIA,KAAK,CAACS,WAAW,CAAC,CAAC,EAAE;IAChC,MAAMpI,KAAK,GAAG,IAAIhB,0BAA0B,CAACmJ,QAAQ,EAAE,IAAA9E,oBAAa,EAAC1F,IAAI,CAAC,CAAC;IAE3EqC,KAAK,CAAC+D,GAAG,GAAGlC,MAAM,CAAC0B,QAAQ,CAAC;IAC5B,MAAMvD,KAAK;EACb;EAEA,IAAI,CAAC2H,KAAK,IAAI,CAACA,KAAK,CAACE,MAAM,CAAC,CAAC,EAAE;IAC7B,MAAM7H,KAAK,GAAG,IAAIvB,oBAAoB,CACpC0J,QAAQ,IAAI5E,QAAQ,CAACI,QAAQ,EAC7BhG,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAC3B,IACF,CAAC;IAEDqC,KAAK,CAAC+D,GAAG,GAAGlC,MAAM,CAAC0B,QAAQ,CAAC;IAC5B,MAAMvD,KAAK;EACb;EAEA,IAAI,CAACkI,gBAAgB,EAAE;IACrB,MAAMG,IAAI,GAAG,IAAAC,kBAAY,EAACH,QAAQ,CAAC;IACnC,MAAM;MAACI,MAAM;MAAEC;IAAI,CAAC,GAAGjF,QAAQ;IAC/BA,QAAQ,GAAG,IAAAkF,oBAAa,EAACJ,IAAI,IAAIF,QAAQ,CAACxL,QAAQ,CAACmB,MAAGA,CAAC,CAAC4K,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACzEnF,QAAQ,CAACgF,MAAM,GAAGA,MAAM;IACxBhF,QAAQ,CAACiF,IAAI,GAAGA,IAAI;EACtB;EAEA,OAAOjF,QAAQ;AACjB;AAQA,SAASoF,gBAAgBA,CAAC9J,SAAS,EAAE4H,cAAc,EAAE9I,IAAI,EAAE;EACzD,OAAO,IAAIiB,8BAA8B,CACvCC,SAAS,EACT4H,cAAc,IAAI,IAAApD,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC/D,IAAApD,oBAAa,EAAC1F,IAAI,CACpB,CAAC;AACH;AAQA,SAASiL,eAAeA,CAAC7J,OAAO,EAAE0H,cAAc,EAAE9I,IAAI,EAAE;EACtD,OAAO,IAAImB,6BAA6B,CACtC,IAAAuE,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C1H,OAAO,EACPpB,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAUA,SAASkL,mBAAmBA,CAACpL,OAAO,EAAE+I,KAAK,EAAEC,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,EAAE;EAC3E,MAAMD,MAAM,GAAG,4CAA4C8I,KAAK,cAC9DE,QAAQ,GAAG,SAAS,GAAG,SAAS,mBACf,IAAArD,oBAAa,EAACoD,cAAc,CAAC,EAAE;EAClD,MAAM,IAAIjJ,4BAA4B,CACpCC,OAAO,EACPC,MAAM,EACNC,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAUA,SAASmL,oBAAoBA,CAAC/J,OAAO,EAAEZ,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,EAAE;EAC7EQ,MAAM,GACJ,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,GACzCI,IAAI,CAACC,SAAS,CAACL,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,GAChC,GAAGA,MAAM,EAAE;EAEjB,OAAO,IAAIH,0BAA0B,CACnC,IAAAqF,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C1H,OAAO,EACPZ,MAAM,EACNuI,QAAQ,EACR/I,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAcA,SAASoL,0BAA0BA,CACjC5K,MAAM,EACNY,OAAO,EACPyH,KAAK,EACLC,cAAc,EACd9I,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UAAU,EACV;EACA,IAAI1G,OAAO,KAAK,EAAE,IAAI,CAACiK,OAAO,IAAI7K,MAAM,CAACA,MAAM,CAACxC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,EACjE,MAAMmN,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAE3E,IAAI,CAACQ,MAAM,CAACG,UAAU,CAAC,IAAI,CAAC,EAAE;IAC5B,IAAIoI,QAAQ,IAAI,CAACvI,MAAM,CAACG,UAAU,CAAC,KAAK,CAAC,IAAI,CAACH,MAAM,CAACG,UAAU,CAAC,GAAG,CAAC,EAAE;MACpE,IAAI4K,KAAK,GAAG,KAAK;MAEjB,IAAI;QACF,KAAI9B,UAAK,EAACjJ,MAAM,CAAC;QACjB+K,KAAK,GAAG,IAAI;MACd,CAAC,CAAC,OAAAC,QAAA,EAAM,CAER;MAEA,IAAI,CAACD,KAAK,EAAE;QACV,MAAME,YAAY,GAAGJ,OAAO,GACxBtD,4BAA4B,CAAC3K,IAAI,CAC/BoL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM,GAAGY,OAAO;QAEpB,OAAOsK,cAAc,CAACD,YAAY,EAAE3C,cAAc,EAAEhB,UAAU,CAAC;MACjE;IACF;IAEA,MAAMqD,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAC3E;EAEA,IAAIqI,mBAAmB,CAAC7I,IAAI,CAACgB,MAAM,CAACtC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;IACtD,IAAIoK,6BAA6B,CAAC9I,IAAI,CAACgB,MAAM,CAACtC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;MAChE,IAAI,CAACoN,SAAS,EAAE;QACd,MAAMxL,OAAO,GAAGuL,OAAO,GACnBxC,KAAK,CAACV,OAAO,CAAC,GAAG,EAAE,MAAM/G,OAAO,CAAC,GACjCyH,KAAK,GAAGzH,OAAO;QACnB,MAAMuK,cAAc,GAAGN,OAAO,GAC1BtD,4BAA4B,CAAC3K,IAAI,CAC/BoL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM;QACVoI,6BAA6B,CAC3B+C,cAAc,EACd7L,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJ,IACF,CAAC;MACH;IACF,CAAC,MAAM;MACL,MAAMmL,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;IAC3E;EACF;EAEA,MAAM4F,QAAQ,GAAG,KAAI6D,UAAK,EAACjJ,MAAM,EAAEsI,cAAc,CAAC;EAClD,MAAM8C,YAAY,GAAGhG,QAAQ,CAACI,QAAQ;EACtC,MAAM1F,WAAW,GAAG,KAAImJ,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC9C,QAAQ;EAE3D,IAAI,CAAC4F,YAAY,CAACjL,UAAU,CAACL,WAAW,CAAC,EACvC,MAAM6K,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAE3E,IAAIoB,OAAO,KAAK,EAAE,EAAE,OAAOwE,QAAQ;EAEnC,IAAIyC,mBAAmB,CAAC7I,IAAI,CAAC4B,OAAO,CAAC,KAAK,IAAI,EAAE;IAC9C,MAAMtB,OAAO,GAAGuL,OAAO,GACnBxC,KAAK,CAACV,OAAO,CAAC,GAAG,EAAE,MAAM/G,OAAO,CAAC,GACjCyH,KAAK,GAAGzH,OAAO;IACnB,IAAIkH,6BAA6B,CAAC9I,IAAI,CAAC4B,OAAO,CAAC,KAAK,IAAI,EAAE;MACxD,IAAI,CAACkK,SAAS,EAAE;QACd,MAAMK,cAAc,GAAGN,OAAO,GAC1BtD,4BAA4B,CAAC3K,IAAI,CAC/BoL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM;QACVoI,6BAA6B,CAC3B+C,cAAc,EACd7L,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJ,KACF,CAAC;MACH;IACF,CAAC,MAAM;MACLkL,mBAAmB,CAACpL,OAAO,EAAE+I,KAAK,EAAEC,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;IACrE;EACF;EAEA,IAAIqL,OAAO,EAAE;IACX,OAAO,KAAI5B,UAAK,EACd1B,4BAA4B,CAAC3K,IAAI,CAC/BoL,YAAY,EACZ5C,QAAQ,CAAC2D,IAAI,EACb,MAAMnI,OACR,CACF,CAAC;EACH;EAEA,OAAO,KAAIqI,UAAK,EAACrI,OAAO,EAAEwE,QAAQ,CAAC;AACrC;AAMA,SAASiG,YAAYA,CAACtL,GAAG,EAAE;EACzB,MAAMuL,SAAS,GAAGtI,MAAM,CAACjD,GAAG,CAAC;EAC7B,IAAI,GAAGuL,SAAS,EAAE,KAAKvL,GAAG,EAAE,OAAO,KAAK;EACxC,OAAOuL,SAAS,IAAI,CAAC,IAAIA,SAAS,GAAG,UAAa;AACpD;AAcA,SAASC,oBAAoBA,CAC3BjD,cAAc,EACdtI,MAAM,EACNY,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UAAU,EACV;EACA,IAAI,OAAOtH,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO4K,0BAA0B,CAC/B5K,MAAM,EACNY,OAAO,EACP4K,cAAc,EACdlD,cAAc,EACd9I,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;EACH;EAEA,IAAIjJ,KAAK,CAACC,OAAO,CAAC0B,MAAM,CAAC,EAAE;IAEzB,MAAMyL,UAAU,GAAGzL,MAAM;IACzB,IAAIyL,UAAU,CAACjO,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;IAGxC,IAAIkO,aAAa;IACjB,IAAItP,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAGqP,UAAU,CAACjO,MAAM,EAAE;MAC9B,MAAMmO,UAAU,GAAGF,UAAU,CAACrP,CAAC,CAAC;MAEhC,IAAIwP,aAAa;MACjB,IAAI;QACFA,aAAa,GAAGL,oBAAoB,CAClCjD,cAAc,EACdqD,UAAU,EACV/K,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;MACH,CAAC,CAAC,OAAOzF,KAAK,EAAE;QACd,MAAM0C,SAAS,GAAkC1C,KAAM;QACvD6J,aAAa,GAAGnH,SAAS;QACzB,IAAIA,SAAS,CAAClC,IAAI,KAAK,4BAA4B,EAAE;QACrD,MAAMR,KAAK;MACb;MAEA,IAAI+J,aAAa,KAAKnM,SAAS,EAAE;MAEjC,IAAImM,aAAa,KAAK,IAAI,EAAE;QAC1BF,aAAa,GAAG,IAAI;QACpB;MACF;MAEA,OAAOE,aAAa;IACtB;IAEA,IAAIF,aAAa,KAAKjM,SAAS,IAAIiM,aAAa,KAAK,IAAI,EAAE;MACzD,OAAO,IAAI;IACb;IAEA,MAAMA,aAAa;EACrB;EAEA,IAAI,OAAO1L,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,EAAE;IACjD,MAAM6L,IAAI,GAAGhP,MAAM,CAACiP,mBAAmB,CAAC9L,MAAM,CAAC;IAC/C,IAAI5D,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAGyP,IAAI,CAACrO,MAAM,EAAE;MACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAACzP,CAAC,CAAC;MACnB,IAAIiP,YAAY,CAACtL,GAAG,CAAC,EAAE;QACrB,MAAM,IAAIL,0BAA0B,CAClC,IAAAwF,oBAAa,EAACoD,cAAc,CAAC,EAC7B9I,IAAI,EACJ,iDACF,CAAC;MACH;IACF;IAEApD,CAAC,GAAG,CAAC,CAAC;IAEN,OAAO,EAAEA,CAAC,GAAGyP,IAAI,CAACrO,MAAM,EAAE;MACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAACzP,CAAC,CAAC;MACnB,IAAI2D,GAAG,KAAK,SAAS,IAAKuH,UAAU,IAAIA,UAAU,CAAC9K,GAAG,CAACuD,GAAG,CAAE,EAAE;QAE5D,MAAMgM,iBAAiB,GAA2B/L,MAAM,CAACD,GAAG,CAAE;QAC9D,MAAM6L,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdyD,iBAAiB,EACjBnL,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;QACD,IAAIsE,aAAa,KAAKnM,SAAS,EAAE;QACjC,OAAOmM,aAAa;MACtB;IACF;IAEA,OAAO,IAAI;EACb;EAEA,IAAI5L,MAAM,KAAK,IAAI,EAAE;IACnB,OAAO,IAAI;EACb;EAEA,MAAM2K,oBAAoB,CACxBa,cAAc,EACdxL,MAAM,EACNsI,cAAc,EACdC,QAAQ,EACR/I,IACF,CAAC;AACH;AAQA,SAASwM,6BAA6BA,CAACpH,OAAO,EAAE0D,cAAc,EAAE9I,IAAI,EAAE;EACpE,IAAI,OAAOoF,OAAO,KAAK,QAAQ,IAAIvG,KAAK,CAACC,OAAO,CAACsG,OAAO,CAAC,EAAE,OAAO,IAAI;EACtE,IAAI,OAAOA,OAAO,KAAK,QAAQ,IAAIA,OAAO,KAAK,IAAI,EAAE,OAAO,KAAK;EAEjE,MAAMiH,IAAI,GAAGhP,MAAM,CAACiP,mBAAmB,CAAClH,OAAO,CAAC;EAChD,IAAIqH,kBAAkB,GAAG,KAAK;EAC9B,IAAI7P,CAAC,GAAG,CAAC;EACT,IAAI8P,QAAQ,GAAG,CAAC,CAAC;EACjB,OAAO,EAAEA,QAAQ,GAAGL,IAAI,CAACrO,MAAM,EAAE;IAC/B,MAAMuC,GAAG,GAAG8L,IAAI,CAACK,QAAQ,CAAC;IAC1B,MAAMC,yBAAyB,GAAGpM,GAAG,KAAK,EAAE,IAAIA,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;IAC9D,IAAI3D,CAAC,EAAE,KAAK,CAAC,EAAE;MACb6P,kBAAkB,GAAGE,yBAAyB;IAChD,CAAC,MAAM,IAAIF,kBAAkB,KAAKE,yBAAyB,EAAE;MAC3D,MAAM,IAAIzM,0BAA0B,CAClC,IAAAwF,oBAAa,EAACoD,cAAc,CAAC,EAC7B9I,IAAI,EACJ,sEAAsE,GACpE,sEAAsE,GACtE,uDACJ,CAAC;IACH;EACF;EAEA,OAAOyM,kBAAkB;AAC3B;AAOA,SAASG,mCAAmCA,CAAC/D,KAAK,EAAEgE,QAAQ,EAAE7M,IAAI,EAAE;EAElE,IAAIiJ,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMhE,SAAS,GAAG,IAAAQ,oBAAa,EAACmH,QAAQ,CAAC;EACzC,IAAInE,sBAAsB,CAAC1L,GAAG,CAACkI,SAAS,GAAG,GAAG,GAAG2D,KAAK,CAAC,EAAE;EACzDH,sBAAsB,CAACoE,GAAG,CAAC5H,SAAS,GAAG,GAAG,GAAG2D,KAAK,CAAC;EACnDI,SAAMA,CAAC,CAACG,WAAW,CACjB,qDAAqDP,KAAK,WAAW,GACnE,uDAAuD3D,SAAS,GAC9DlF,IAAI,GAAG,kBAAkB,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAAE,GAAG,EAAE,4DACO,EAC9D,oBAAoB,EACpB,SACF,CAAC;AACH;AAUA,SAAS+M,qBAAqBA,CAC5BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UAAU,EACV;EACA,IAAI1C,OAAO,GAAGa,aAAa,CAACb,OAAO;EAEnC,IAAIoH,6BAA6B,CAACpH,OAAO,EAAE0D,cAAc,EAAE9I,IAAI,CAAC,EAAE;IAChEoF,OAAO,GAAG;MAAC,GAAG,EAAEA;IAAO,CAAC;EAC1B;EAEA,IACEgD,GAAG,CAAChL,IAAI,CAACgI,OAAO,EAAE4G,cAAc,CAAC,IACjC,CAACA,cAAc,CAAC/M,QAAQ,CAAC,GAAG,CAAC,IAC7B,CAAC+M,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAC7B;IAEA,MAAMwB,MAAM,GAAG4E,OAAO,CAAC4G,cAAc,CAAC;IACtC,MAAMI,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACN,EAAE,EACFwL,cAAc,EACdhM,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL8H,UACF,CAAC;IACD,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;MACzD,MAAMgL,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;IAC7D;IAEA,OAAOoM,aAAa;EACtB;EAEA,IAAIY,SAAS,GAAG,EAAE;EAClB,IAAIC,gBAAgB,GAAG,EAAE;EACzB,MAAMZ,IAAI,GAAGhP,MAAM,CAACiP,mBAAmB,CAAClH,OAAO,CAAC;EAChD,IAAIxI,CAAC,GAAG,CAAC,CAAC;EAEV,OAAO,EAAEA,CAAC,GAAGyP,IAAI,CAACrO,MAAM,EAAE;IACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAACzP,CAAC,CAAC;IACnB,MAAMsQ,YAAY,GAAG3M,GAAG,CAACb,OAAO,CAAC,GAAG,CAAC;IAErC,IACEwN,YAAY,KAAK,CAAC,CAAC,IACnBlB,cAAc,CAACrL,UAAU,CAACJ,GAAG,CAACrC,KAAK,CAAC,CAAC,EAAEgP,YAAY,CAAC,CAAC,EACrD;MAOA,IAAIlB,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAAE;QAChC4N,mCAAmC,CACjCZ,cAAc,EACdlD,cAAc,EACd9I,IACF,CAAC;MACH;MAEA,MAAMmN,cAAc,GAAG5M,GAAG,CAACrC,KAAK,CAACgP,YAAY,GAAG,CAAC,CAAC;MAElD,IACElB,cAAc,CAAChO,MAAM,IAAIuC,GAAG,CAACvC,MAAM,IACnCgO,cAAc,CAAChN,QAAQ,CAACmO,cAAc,CAAC,IACvCC,iBAAiB,CAACJ,SAAS,EAAEzM,GAAG,CAAC,KAAK,CAAC,IACvCA,GAAG,CAAC8M,WAAW,CAAC,GAAG,CAAC,KAAKH,YAAY,EACrC;QACAF,SAAS,GAAGzM,GAAG;QACf0M,gBAAgB,GAAGjB,cAAc,CAAC9N,KAAK,CACrCgP,YAAY,EACZlB,cAAc,CAAChO,MAAM,GAAGmP,cAAc,CAACnP,MACzC,CAAC;MACH;IACF;EACF;EAEA,IAAIgP,SAAS,EAAE;IAEb,MAAMxM,MAAM,GAA2B4E,OAAO,CAAC4H,SAAS,CAAE;IAC1D,MAAMZ,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACNyM,gBAAgB,EAChBD,SAAS,EACThN,IAAI,EACJ,IAAI,EACJ,KAAK,EACLgM,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAC5B8I,UACF,CAAC;IAED,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;MACzD,MAAMgL,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;IAC7D;IAEA,OAAOoM,aAAa;EACtB;EAEA,MAAMnB,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;AAC7D;AAMA,SAASoN,iBAAiBA,CAACE,CAAC,EAAEC,CAAC,EAAE;EAC/B,MAAMC,aAAa,GAAGF,CAAC,CAAC5N,OAAO,CAAC,GAAG,CAAC;EACpC,MAAM+N,aAAa,GAAGF,CAAC,CAAC7N,OAAO,CAAC,GAAG,CAAC;EACpC,MAAMgO,WAAW,GAAGF,aAAa,KAAK,CAAC,CAAC,GAAGF,CAAC,CAACtP,MAAM,GAAGwP,aAAa,GAAG,CAAC;EACvE,MAAMG,WAAW,GAAGF,aAAa,KAAK,CAAC,CAAC,GAAGF,CAAC,CAACvP,MAAM,GAAGyP,aAAa,GAAG,CAAC;EACvE,IAAIC,WAAW,GAAGC,WAAW,EAAE,OAAO,CAAC,CAAC;EACxC,IAAIA,WAAW,GAAGD,WAAW,EAAE,OAAO,CAAC;EACvC,IAAIF,aAAa,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC;EAClC,IAAIC,aAAa,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;EACnC,IAAIH,CAAC,CAACtP,MAAM,GAAGuP,CAAC,CAACvP,MAAM,EAAE,OAAO,CAAC,CAAC;EAClC,IAAIuP,CAAC,CAACvP,MAAM,GAAGsP,CAAC,CAACtP,MAAM,EAAE,OAAO,CAAC;EACjC,OAAO,CAAC;AACV;AAQA,SAAS4P,qBAAqBA,CAACnP,IAAI,EAAEuB,IAAI,EAAE8H,UAAU,EAAE;EACrD,IAAIrJ,IAAI,KAAK,GAAG,IAAIA,IAAI,CAACkC,UAAU,CAAC,IAAI,CAAC,IAAIlC,IAAI,CAACO,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC/D,MAAMe,MAAM,GAAG,gDAAgD;IAC/D,MAAM,IAAIF,4BAA4B,CAACpB,IAAI,EAAEsB,MAAM,EAAE,IAAA2F,oBAAa,EAAC1F,IAAI,CAAC,CAAC;EAC3E;EAGA,IAAI8I,cAAc;EAElB,MAAM7C,aAAa,GAAGN,qBAAqB,CAAC3F,IAAI,CAAC;EAEjD,IAAIiG,aAAa,CAAChB,MAAM,EAAE;IACxB6D,cAAc,GAAG,IAAAgC,oBAAa,EAAC7E,aAAa,CAACf,SAAS,CAAC;IACvD,MAAMG,OAAO,GAAGY,aAAa,CAACZ,OAAO;IACrC,IAAIA,OAAO,EAAE;MACX,IAAI+C,GAAG,CAAChL,IAAI,CAACiI,OAAO,EAAE5G,IAAI,CAAC,IAAI,CAACA,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,EAAE;QAClD,MAAMmN,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdzD,OAAO,CAAC5G,IAAI,CAAC,EACb,EAAE,EACFA,IAAI,EACJuB,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL8H,UACF,CAAC;QACD,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;UACzD,OAAOmM,aAAa;QACtB;MACF,CAAC,MAAM;QACL,IAAIY,SAAS,GAAG,EAAE;QAClB,IAAIC,gBAAgB,GAAG,EAAE;QACzB,MAAMZ,IAAI,GAAGhP,MAAM,CAACiP,mBAAmB,CAACjH,OAAO,CAAC;QAChD,IAAIzI,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,EAAEA,CAAC,GAAGyP,IAAI,CAACrO,MAAM,EAAE;UACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAACzP,CAAC,CAAC;UACnB,MAAMsQ,YAAY,GAAG3M,GAAG,CAACb,OAAO,CAAC,GAAG,CAAC;UAErC,IAAIwN,YAAY,KAAK,CAAC,CAAC,IAAIzO,IAAI,CAACkC,UAAU,CAACJ,GAAG,CAACrC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;YAC5D,MAAMiP,cAAc,GAAG5M,GAAG,CAACrC,KAAK,CAACgP,YAAY,GAAG,CAAC,CAAC;YAClD,IACEzO,IAAI,CAACT,MAAM,IAAIuC,GAAG,CAACvC,MAAM,IACzBS,IAAI,CAACO,QAAQ,CAACmO,cAAc,CAAC,IAC7BC,iBAAiB,CAACJ,SAAS,EAAEzM,GAAG,CAAC,KAAK,CAAC,IACvCA,GAAG,CAAC8M,WAAW,CAAC,GAAG,CAAC,KAAKH,YAAY,EACrC;cACAF,SAAS,GAAGzM,GAAG;cACf0M,gBAAgB,GAAGxO,IAAI,CAACP,KAAK,CAC3BgP,YAAY,EACZzO,IAAI,CAACT,MAAM,GAAGmP,cAAc,CAACnP,MAC/B,CAAC;YACH;UACF;QACF;QAEA,IAAIgP,SAAS,EAAE;UACb,MAAMxM,MAAM,GAAG6E,OAAO,CAAC2H,SAAS,CAAC;UACjC,MAAMZ,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACNyM,gBAAgB,EAChBD,SAAS,EACThN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL8H,UACF,CAAC;UAED,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;YACzD,OAAOmM,aAAa;UACtB;QACF;MACF;IACF;EACF;EAEA,MAAMpB,gBAAgB,CAACvM,IAAI,EAAEqK,cAAc,EAAE9I,IAAI,CAAC;AACpD;AAMA,SAAS6N,gBAAgBA,CAAC3M,SAAS,EAAElB,IAAI,EAAE;EACzC,IAAI8N,cAAc,GAAG5M,SAAS,CAACxB,OAAO,CAAC,GAAG,CAAC;EAC3C,IAAIqO,gBAAgB,GAAG,IAAI;EAC3B,IAAIC,QAAQ,GAAG,KAAK;EACpB,IAAI9M,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACxB8M,QAAQ,GAAG,IAAI;IACf,IAAIF,cAAc,KAAK,CAAC,CAAC,IAAI5M,SAAS,CAAClD,MAAM,KAAK,CAAC,EAAE;MACnD+P,gBAAgB,GAAG,KAAK;IAC1B,CAAC,MAAM;MACLD,cAAc,GAAG5M,SAAS,CAACxB,OAAO,CAAC,GAAG,EAAEoO,cAAc,GAAG,CAAC,CAAC;IAC7D;EACF;EAEA,MAAMG,WAAW,GACfH,cAAc,KAAK,CAAC,CAAC,GAAG5M,SAAS,GAAGA,SAAS,CAAChD,KAAK,CAAC,CAAC,EAAE4P,cAAc,CAAC;EAIxE,IAAIvF,uBAAuB,CAAC/I,IAAI,CAACyO,WAAW,CAAC,KAAK,IAAI,EAAE;IACtDF,gBAAgB,GAAG,KAAK;EAC1B;EAEA,IAAI,CAACA,gBAAgB,EAAE;IACrB,MAAM,IAAIlO,4BAA4B,CACpCqB,SAAS,EACT,6BAA6B,EAC7B,IAAAwE,oBAAa,EAAC1F,IAAI,CACpB,CAAC;EACH;EAEA,MAAMgM,cAAc,GAClB,GAAG,IAAI8B,cAAc,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG5M,SAAS,CAAChD,KAAK,CAAC4P,cAAc,CAAC,CAAC;EAEtE,OAAO;IAACG,WAAW;IAAEjC,cAAc;IAAEgC;EAAQ,CAAC;AAChD;AAQA,SAAStC,cAAcA,CAACxK,SAAS,EAAElB,IAAI,EAAE8H,UAAU,EAAE;EACnD,IAAIoG,wBAAc,CAACjP,QAAQ,CAACiC,SAAS,CAAC,EAAE;IACtC,OAAO,KAAIuI,UAAK,EAAC,OAAO,GAAGvI,SAAS,CAAC;EACvC;EAEA,MAAM;IAAC+M,WAAW;IAAEjC,cAAc;IAAEgC;EAAQ,CAAC,GAAGH,gBAAgB,CAC9D3M,SAAS,EACTlB,IACF,CAAC;EAGD,MAAMiG,aAAa,GAAGN,qBAAqB,CAAC3F,IAAI,CAAC;EAIjD,IAAIiG,aAAa,CAAChB,MAAM,EAAE;IACxB,MAAM6D,cAAc,GAAG,IAAAgC,oBAAa,EAAC7E,aAAa,CAACf,SAAS,CAAC;IAC7D,IACEe,aAAa,CAACxH,IAAI,KAAKwP,WAAW,IAClChI,aAAa,CAACb,OAAO,KAAKnF,SAAS,IACnCgG,aAAa,CAACb,OAAO,KAAK,IAAI,EAC9B;MACA,OAAO2H,qBAAqB,CAC1BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UACF,CAAC;IACH;EACF;EAEA,IAAIgB,cAAc,GAAG,KAAIW,UAAK,EAC5B,iBAAiB,GAAGwE,WAAW,GAAG,eAAe,EACjDjO,IACF,CAAC;EACD,IAAImO,eAAe,GAAG,IAAAzI,oBAAa,EAACoD,cAAc,CAAC;EAEnD,IAAIsF,QAAQ;EACZ,GAAG;IACD,MAAMC,IAAI,GAAGzE,WAAW,CAACuE,eAAe,CAACjQ,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,CAACmQ,IAAI,IAAI,CAACA,IAAI,CAAC5D,WAAW,CAAC,CAAC,EAAE;MAChC2D,QAAQ,GAAGD,eAAe;MAC1BrF,cAAc,GAAG,KAAIW,UAAK,EACxB,CAACuE,QAAQ,GAAG,2BAA2B,GAAG,wBAAwB,IAChEC,WAAW,GACX,eAAe,EACjBnF,cACF,CAAC;MACDqF,eAAe,GAAG,IAAAzI,oBAAa,EAACoD,cAAc,CAAC;MAC/C;IACF;IAGA,MAAM7C,aAAa,GAAGzB,IAAI,CAAC2J,eAAe,EAAE;MAACnO,IAAI;MAAEkB;IAAS,CAAC,CAAC;IAC9D,IAAI+E,aAAa,CAACb,OAAO,KAAKnF,SAAS,IAAIgG,aAAa,CAACb,OAAO,KAAK,IAAI,EAAE;MACzE,OAAO2H,qBAAqB,CAC1BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UACF,CAAC;IACH;IAEA,IAAIkE,cAAc,KAAK,GAAG,EAAE;MAC1B,OAAO7B,iBAAiB,CAACrB,cAAc,EAAE7C,aAAa,EAAEjG,IAAI,CAAC;IAC/D;IAEA,OAAO,KAAIyJ,UAAK,EAACuC,cAAc,EAAElD,cAAc,CAAC;EAElD,CAAC,QAAQqF,eAAe,CAACnQ,MAAM,KAAKoQ,QAAQ,CAACpQ,MAAM;EAEnD,MAAM,IAAI8C,oBAAoB,CAACmN,WAAW,EAAE,IAAAvI,oBAAa,EAAC1F,IAAI,CAAC,EAAE,KAAK,CAAC;AACzE;AAMA,SAASsO,mBAAmBA,CAACpN,SAAS,EAAE;EACtC,IAAIA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACxB,IAAIA,SAAS,CAAClD,MAAM,KAAK,CAAC,IAAIkD,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,IAAI;IAC/D,IACEA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,KACnBA,SAAS,CAAClD,MAAM,KAAK,CAAC,IAAIkD,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,EAChD;MACA,OAAO,IAAI;IACb;EACF;EAEA,OAAO,KAAK;AACd;AAMA,SAASqN,uCAAuCA,CAACrN,SAAS,EAAE;EAC1D,IAAIA,SAAS,KAAK,EAAE,EAAE,OAAO,KAAK;EAClC,IAAIA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,IAAI;EACrC,OAAOoN,mBAAmB,CAACpN,SAAS,CAAC;AACvC;AAiBA,SAASsN,aAAaA,CAACtN,SAAS,EAAElB,IAAI,EAAE8H,UAAU,EAAEyC,gBAAgB,EAAE;EAGpE,MAAMhD,QAAQ,GAAGvH,IAAI,CAACuH,QAAQ;EAC9B,MAAMkH,MAAM,GAAGlH,QAAQ,KAAK,OAAO;EACnC,MAAMmH,QAAQ,GAAGD,MAAM,IAAIlH,QAAQ,KAAK,OAAO,IAAIA,QAAQ,KAAK,QAAQ;EAIxE,IAAI3B,QAAQ;EAEZ,IAAI2I,uCAAuC,CAACrN,SAAS,CAAC,EAAE;IACtD,IAAI;MACF0E,QAAQ,GAAG,KAAI6D,UAAK,EAACvI,SAAS,EAAElB,IAAI,CAAC;IACvC,CAAC,CAAC,OAAOwF,MAAM,EAAE;MACf,MAAMnD,KAAK,GAAG,IAAIf,+BAA+B,CAACJ,SAAS,EAAElB,IAAI,CAAC;MAClEqC,KAAK,CAACoD,KAAK,GAAGD,MAAM;MACpB,MAAMnD,KAAK;IACb;EACF,CAAC,MAAM,IAAIkF,QAAQ,KAAK,OAAO,IAAIrG,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACvD0E,QAAQ,GAAGgI,qBAAqB,CAAC1M,SAAS,EAAElB,IAAI,EAAE8H,UAAU,CAAC;EAC/D,CAAC,MAAM;IACL,IAAI;MACFlC,QAAQ,GAAG,KAAI6D,UAAK,EAACvI,SAAS,CAAC;IACjC,CAAC,CAAC,OAAOsE,MAAM,EAAE;MAEf,IAAIkJ,QAAQ,IAAI,CAACR,wBAAc,CAACjP,QAAQ,CAACiC,SAAS,CAAC,EAAE;QACnD,MAAMmB,KAAK,GAAG,IAAIf,+BAA+B,CAACJ,SAAS,EAAElB,IAAI,CAAC;QAClEqC,KAAK,CAACoD,KAAK,GAAGD,MAAM;QACpB,MAAMnD,KAAK;MACb;MAEAuD,QAAQ,GAAG8F,cAAc,CAACxK,SAAS,EAAElB,IAAI,EAAE8H,UAAU,CAAC;IACxD;EACF;EAEAlJ,QAAKA,CAAC,CAACgH,QAAQ,KAAK3F,SAAS,EAAE,wBAAwB,CAAC;EAExD,IAAI2F,QAAQ,CAAC2B,QAAQ,KAAK,OAAO,EAAE;IACjC,OAAO3B,QAAQ;EACjB;EAEA,OAAO0E,kBAAkB,CAAC1E,QAAQ,EAAE5F,IAAI,EAAEuK,gBAAgB,CAAC;AAC7D;AAOA,SAASoE,uBAAuBA,CAACzN,SAAS,EAAEoE,MAAM,EAAEsJ,eAAe,EAAE;EACnE,IAAIA,eAAe,EAAE;IAEnB,MAAMC,cAAc,GAAGD,eAAe,CAACrH,QAAQ;IAE/C,IAAIsH,cAAc,KAAK,OAAO,IAAIA,cAAc,KAAK,QAAQ,EAAE;MAC7D,IAAIN,uCAAuC,CAACrN,SAAS,CAAC,EAAE;QAEtD,MAAM4N,cAAc,GAAGxJ,MAAM,oBAANA,MAAM,CAAEiC,QAAQ;QAIvC,IACEuH,cAAc,IACdA,cAAc,KAAK,QAAQ,IAC3BA,cAAc,KAAK,OAAO,EAC1B;UACA,MAAM,IAAI9N,6BAA6B,CACrCE,SAAS,EACT0N,eAAe,EACf,qDACF,CAAC;QACH;QAEA,OAAO;UAACxI,GAAG,EAAE,CAAAd,MAAM,oBAANA,MAAM,CAAEiE,IAAI,KAAI;QAAE,CAAC;MAClC;MAEA,IAAI2E,wBAAc,CAACjP,QAAQ,CAACiC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAIF,6BAA6B,CACrCE,SAAS,EACT0N,eAAe,EACf,qDACF,CAAC;MACH;MAEA,MAAM,IAAI5N,6BAA6B,CACrCE,SAAS,EACT0N,eAAe,EACf,sDACF,CAAC;IACH;EACF;AACF;AAkBA,SAASrD,KAAKA,CAAC5H,IAAI,EAAE;EACnB,OAAOoL,OAAO,CACZpL,IAAI,IACF,OAAOA,IAAI,KAAK,QAAQ,IACxB,MAAM,IAAIA,IAAI,IACd,OAAOA,IAAI,CAAC4F,IAAI,KAAK,QAAQ,IAC7B,UAAU,IAAI5F,IAAI,IAClB,OAAOA,IAAI,CAAC4D,QAAQ,KAAK,QAAQ,IACjC5D,IAAI,CAAC4F,IAAI,IACT5F,IAAI,CAAC4D,QACT,CAAC;AACH;AAQA,SAASyH,uBAAuBA,CAAC1F,SAAS,EAAE;EAC1C,IAAIA,SAAS,KAAKrJ,SAAS,EAAE;IAC3B;EACF;EAEA,IAAI,OAAOqJ,SAAS,KAAK,QAAQ,IAAI,CAACiC,KAAK,CAACjC,SAAS,CAAC,EAAE;IACtD,MAAM,IAAI1L,KAAK,CAACW,oBAAoB,CAClC,WAAW,EACX,CAAC,QAAQ,EAAE,KAAK,CAAC,EACjB+K,SACF,CAAC;EACH;AACF;AAOA,SAAS2F,cAAcA,CAAC/N,SAAS,EAAEoG,OAAO,GAAG,CAAC,CAAC,EAAE;EAC/C,MAAM;IAACgC;EAAS,CAAC,GAAGhC,OAAO;EAC3B1I,QAAKA,CAAC,CAAC0K,SAAS,KAAKrJ,SAAS,EAAE,oCAAoC,CAAC;EACrE+O,uBAAuB,CAAC1F,SAAS,CAAC;EAGlC,IAAIsF,eAAe;EACnB,IAAItF,SAAS,EAAE;IACb,IAAI;MACFsF,eAAe,GAAG,KAAInF,UAAK,EAACH,SAAS,CAAC;IACxC,CAAC,CAAC,OAAA4F,QAAA,EAAM,CAER;EACF;EAGA,IAAI5J,MAAM;EAEV,IAAIiC,QAAQ;EAEZ,IAAI;IACFjC,MAAM,GAAGiJ,uCAAuC,CAACrN,SAAS,CAAC,GACvD,KAAIuI,UAAK,EAACvI,SAAS,EAAE0N,eAAe,CAAC,GACrC,KAAInF,UAAK,EAACvI,SAAS,CAAC;IAGxBqG,QAAQ,GAAGjC,MAAM,CAACiC,QAAQ;IAE1B,IAAIA,QAAQ,KAAK,OAAO,EAAE;MACxB,OAAO;QAACnB,GAAG,EAAEd,MAAM,CAACiE,IAAI;QAAEtF,MAAM,EAAE;MAAI,CAAC;IACzC;EACF,CAAC,CAAC,OAAAkL,QAAA,EAAM,CAER;EAKA,MAAMC,WAAW,GAAGT,uBAAuB,CACzCzN,SAAS,EACToE,MAAM,EACNsJ,eACF,CAAC;EAED,IAAIQ,WAAW,EAAE,OAAOA,WAAW;EAGnC,IAAI7H,QAAQ,KAAKtH,SAAS,IAAIqF,MAAM,EAAE;IACpCiC,QAAQ,GAAGjC,MAAM,CAACiC,QAAQ;EAC5B;EAEA,IAAIA,QAAQ,KAAK,OAAO,EAAE;IACxB,OAAO;MAACnB,GAAG,EAAElF;IAAS,CAAC;EACzB;EAGA,IAAIoE,MAAM,IAAIA,MAAM,CAACiC,QAAQ,KAAK,OAAO,EAAE,OAAO;IAACnB,GAAG,EAAElF;EAAS,CAAC;EAElE,MAAM4G,UAAU,GAAGD,gBAAgB,CAACP,OAAO,CAACQ,UAAU,CAAC;EAEvD,MAAM1B,GAAG,GAAGoI,aAAa,CAACtN,SAAS,EAAE,KAAIuI,UAAK,EAACH,SAAS,CAAC,EAAExB,UAAU,EAAE,KAAK,CAAC;EAE7E,OAAO;IAGL1B,GAAG,EAAEA,GAAG,CAACmD,IAAI;IACbtF,MAAM,EAAEoD,6BAA6B,CAACjB,GAAG,EAAE;MAACkD;IAAS,CAAC;EACxD,CAAC;AACH;AAsBA,SAASK,OAAOA,CAACzI,SAAS,EAAEmO,MAAM,EAAE;EAClC,IAAI,CAACA,MAAM,EAAE;IACX,MAAM,IAAIjP,KAAK,CACb,kEACF,CAAC;EACH;EAEA,IAAI;IACF,OAAO6O,cAAc,CAAC/N,SAAS,EAAE;MAACoI,SAAS,EAAE+F;IAAM,CAAC,CAAC,CAACjJ,GAAG;EAC3D,CAAC,CAAC,OAAO/D,KAAK,EAAE;IAEd,MAAM0C,SAAS,GAAkC1C,KAAM;IAEvD,IACE,CAAC0C,SAAS,CAAClC,IAAI,KAAK,4BAA4B,IAC9CkC,SAAS,CAAClC,IAAI,KAAK,sBAAsB,KAC3C,OAAOkC,SAAS,CAACqB,GAAG,KAAK,QAAQ,EACjC;MACA,OAAOrB,SAAS,CAACqB,GAAG;IACtB;IAEA,MAAM/D,KAAK;EACb;AACF;AAAC","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_assert","data","require","_fs","_interopRequireWildcard","_process","_url","_path","_module","_v","_util","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","own$1","classRegExp","kTypes","Set","codes","formatList","array","type","length","join","slice","messages","Map","nodeInternalPrefix","userStackTraceLimit","ERR_INVALID_ARG_TYPE","createError","name","expected","actual","assert","Array","isArray","message","endsWith","includes","types","instances","other","value","push","toLowerCase","exec","pos","indexOf","determineSpecificType","TypeError","ERR_INVALID_MODULE_SPECIFIER","request","reason","base","undefined","ERR_INVALID_PACKAGE_CONFIG","path","Error","ERR_INVALID_PACKAGE_TARGET","packagePath","key","target","isImport","relatedError","startsWith","JSON","stringify","ERR_MODULE_NOT_FOUND","exactUrl","ERR_NETWORK_IMPORT_DISALLOWED","ERR_PACKAGE_IMPORT_NOT_DEFINED","specifier","ERR_PACKAGE_PATH_NOT_EXPORTED","subpath","ERR_UNSUPPORTED_DIR_IMPORT","ERR_UNSUPPORTED_RESOLVE_REQUEST","ERR_UNKNOWN_FILE_EXTENSION","extension","ERR_INVALID_ARG_VALUE","inspected","inspect","sym","constructor","makeNodeErrorWithCode","Base","NodeError","parameters","limit","stackTraceLimit","isErrorStackTraceLimitWritable","error","getMessage","defineProperties","enumerable","writable","configurable","toString","captureLargerStackTrace","code","v8","startupSnapshot","isBuildingSnapshot","_unused","desc","isExtensible","hideStackFrames","wrappedFunction","hidden","stackTraceLimitIsWritable","Number","POSITIVE_INFINITY","captureStackTrace","self","Reflect","apply","regex","expectedLength","unshift","format","String","depth","colors","hasOwnProperty$1","ERR_INVALID_PACKAGE_CONFIG$1","cache","read","jsonPath","existing","string","fs","readFileSync","toNamespacedPath","exception","result","exists","pjsonPath","main","exports","imports","parsed","parse","error_","cause","fileURLToPath","getPackageScopeConfig","resolved","packageJSONUrl","URL","packageJSONPath","pathname","packageConfig","lastPackageJSONUrl","getPackageType","url","extensionFormatMap","mimeToFormat","mime","test","protocolHandlers","getDataProtocolModuleFormat","getFileProtocolModuleFormat","getHttpProtocolModuleFormat","node:","extname","index","codePointAt","_context","ignoreErrors","packageType","filepath","defaultGetFormatWithoutErrors","context","protocol","DEFAULT_CONDITIONS","freeze","DEFAULT_CONDITIONS_SET","getDefaultConditions","getDefaultConditionsSet","getConditionsSet","conditions","RegExpPrototypeSymbolReplace","RegExp","prototype","Symbol","replace","own","invalidSegmentRegEx","deprecatedInvalidSegmentRegEx","invalidPackageNameRegEx","patternRegEx","encodedSeparatorRegEx","emittedPackageWarnings","doubleSlashRegEx","emitInvalidSegmentDeprecation","match","packageJsonUrl","internal","isTarget","process","noDeprecation","double","emitWarning","emitLegacyIndexDeprecation","parentURL","href","urlPath","URL$1","basePath","resolve","tryStatSync","statSync","_unused2","fileExists","stats","throwIfNoEntry","isFile","legacyMainResolve","guess","tries","finalizeResolution","preserveSymlinks","filePath","isDirectory","real","realpathSync","search","hash","pathToFileURL","sep","importNotDefined","exportsNotFound","throwInvalidSubpath","invalidPackageTarget","resolvePackageTargetString","pattern","isPathMap","isURL","_unused3","exportTarget","packageResolve","resolvedTarget","resolvedPath","isArrayIndex","keyNumber","resolvePackageTarget","packageSubpath","targetList","lastException","targetItem","resolveResult","keys","getOwnPropertyNames","conditionalTarget","isConditionalExportsMainSugar","isConditionalSugar","keyIndex","currentIsConditionalSugar","emitTrailingSlashPatternDeprecation","pjsonUrl","add","packageExportsResolve","bestMatch","bestMatchSubpath","patternIndex","patternTrailer","patternKeyCompare","lastIndexOf","b","aPatternIndex","bPatternIndex","baseLengthA","baseLengthB","packageImportsResolve","parsePackageName","separatorIndex","validPackageName","isScoped","packageName","builtinModules","packageJsonPath","lastPath","stat","isRelativeSpecifier","shouldBeTreatedAsRelativeOrAbsolutePath","moduleResolve","isData","isRemote","checkIfDisallowedImport","parsedParentURL","parentProtocol","parsedProtocol","Boolean","throwIfInvalidParentURL","defaultResolve","_unused4","_unused5","maybeReturn","parent"],"sources":["../../src/vendor/import-meta-resolve.js"],"sourcesContent":["\n/****************************************************************************\\\n * NOTE FROM BABEL AUTHORS *\n * This file is inlined from https://github.com/wooorm/import-meta-resolve, *\n * because we need to compile it to CommonJS. *\n\\****************************************************************************/\n\n/*\n(The MIT License)\n\nCopyright (c) 2021 Titus Wormer \n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n---\n\nThis is a derivative work based on:\n.\nWhich is licensed:\n\n\"\"\"\nCopyright Node.js contributors. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n\nThis license applies to parts of Node.js originating from the\nhttps://github.com/joyent/node repository:\n\n\"\"\"\nCopyright Joyent, Inc. and other Node contributors. All rights reserved.\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n\"\"\"\n*/\n\nimport assert from 'assert';\nimport fs, { realpathSync, statSync } from 'fs';\nimport process from 'process';\nimport { fileURLToPath, URL as URL$1, pathToFileURL } from 'url';\nimport path from 'path';\nimport { builtinModules } from 'module';\nimport v8 from 'v8';\nimport { format, inspect } from 'util';\n\n/**\n * @typedef ErrnoExceptionFields\n * @property {number | undefined} [errnode]\n * @property {string | undefined} [code]\n * @property {string | undefined} [path]\n * @property {string | undefined} [syscall]\n * @property {string | undefined} [url]\n *\n * @typedef {Error & ErrnoExceptionFields} ErrnoException\n */\n\n\nconst own$1 = {}.hasOwnProperty;\n\nconst classRegExp = /^([A-Z][a-z\\d]*)+$/;\n// Sorted by a rough estimate on most frequently used entries.\nconst kTypes = new Set([\n 'string',\n 'function',\n 'number',\n 'object',\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function',\n 'Object',\n 'boolean',\n 'bigint',\n 'symbol'\n]);\n\nconst codes = {};\n\n/**\n * Create a list string in the form like 'A and B' or 'A, B, ..., and Z'.\n * We cannot use Intl.ListFormat because it's not available in\n * --without-intl builds.\n *\n * @param {Array} array\n * An array of strings.\n * @param {string} [type]\n * The list type to be inserted before the last element.\n * @returns {string}\n */\nfunction formatList(array, type = 'and') {\n return array.length < 3\n ? array.join(` ${type} `)\n : `${array.slice(0, -1).join(', ')}, ${type} ${array[array.length - 1]}`\n}\n\n/** @type {Map} */\nconst messages = new Map();\nconst nodeInternalPrefix = '__node_internal_';\n/** @type {number} */\nlet userStackTraceLimit;\n\ncodes.ERR_INVALID_ARG_TYPE = createError(\n 'ERR_INVALID_ARG_TYPE',\n /**\n * @param {string} name\n * @param {Array | string} expected\n * @param {unknown} actual\n */\n (name, expected, actual) => {\n assert(typeof name === 'string', \"'name' must be a string\");\n if (!Array.isArray(expected)) {\n expected = [expected];\n }\n\n let message = 'The ';\n if (name.endsWith(' argument')) {\n // For cases like 'first argument'\n message += `${name} `;\n } else {\n const type = name.includes('.') ? 'property' : 'argument';\n message += `\"${name}\" ${type} `;\n }\n\n message += 'must be ';\n\n /** @type {Array} */\n const types = [];\n /** @type {Array} */\n const instances = [];\n /** @type {Array} */\n const other = [];\n\n for (const value of expected) {\n assert(\n typeof value === 'string',\n 'All expected entries have to be of type string'\n );\n\n if (kTypes.has(value)) {\n types.push(value.toLowerCase());\n } else if (classRegExp.exec(value) === null) {\n assert(\n value !== 'object',\n 'The value \"object\" should be written as \"Object\"'\n );\n other.push(value);\n } else {\n instances.push(value);\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = types.indexOf('object');\n if (pos !== -1) {\n types.slice(pos, 1);\n instances.push('Object');\n }\n }\n\n if (types.length > 0) {\n message += `${types.length > 1 ? 'one of type' : 'of type'} ${formatList(\n types,\n 'or'\n )}`;\n if (instances.length > 0 || other.length > 0) message += ' or ';\n }\n\n if (instances.length > 0) {\n message += `an instance of ${formatList(instances, 'or')}`;\n if (other.length > 0) message += ' or ';\n }\n\n if (other.length > 0) {\n if (other.length > 1) {\n message += `one of ${formatList(other, 'or')}`;\n } else {\n if (other[0].toLowerCase() !== other[0]) message += 'an ';\n message += `${other[0]}`;\n }\n }\n\n message += `. Received ${determineSpecificType(actual)}`;\n\n return message\n },\n TypeError\n);\n\ncodes.ERR_INVALID_MODULE_SPECIFIER = createError(\n 'ERR_INVALID_MODULE_SPECIFIER',\n /**\n * @param {string} request\n * @param {string} reason\n * @param {string} [base]\n */\n (request, reason, base = undefined) => {\n return `Invalid module \"${request}\" ${reason}${\n base ? ` imported from ${base}` : ''\n }`\n },\n TypeError\n);\n\ncodes.ERR_INVALID_PACKAGE_CONFIG = createError(\n 'ERR_INVALID_PACKAGE_CONFIG',\n /**\n * @param {string} path\n * @param {string} [base]\n * @param {string} [message]\n */\n (path, base, message) => {\n return `Invalid package config ${path}${\n base ? ` while importing ${base}` : ''\n }${message ? `. ${message}` : ''}`\n },\n Error\n);\n\ncodes.ERR_INVALID_PACKAGE_TARGET = createError(\n 'ERR_INVALID_PACKAGE_TARGET',\n /**\n * @param {string} packagePath\n * @param {string} key\n * @param {unknown} target\n * @param {boolean} [isImport=false]\n * @param {string} [base]\n */\n (packagePath, key, target, isImport = false, base = undefined) => {\n const relatedError =\n typeof target === 'string' &&\n !isImport &&\n target.length > 0 &&\n !target.startsWith('./');\n if (key === '.') {\n assert(isImport === false);\n return (\n `Invalid \"exports\" main target ${JSON.stringify(target)} defined ` +\n `in the package config ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }${relatedError ? '; targets must start with \"./\"' : ''}`\n )\n }\n\n return `Invalid \"${\n isImport ? 'imports' : 'exports'\n }\" target ${JSON.stringify(\n target\n )} defined for '${key}' in the package config ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }${relatedError ? '; targets must start with \"./\"' : ''}`\n },\n Error\n);\n\ncodes.ERR_MODULE_NOT_FOUND = createError(\n 'ERR_MODULE_NOT_FOUND',\n /**\n * @param {string} path\n * @param {string} base\n * @param {boolean} [exactUrl]\n */\n (path, base, exactUrl = false) => {\n return `Cannot find ${\n exactUrl ? 'module' : 'package'\n } '${path}' imported from ${base}`\n },\n Error\n);\n\ncodes.ERR_NETWORK_IMPORT_DISALLOWED = createError(\n 'ERR_NETWORK_IMPORT_DISALLOWED',\n \"import of '%s' by %s is not supported: %s\",\n Error\n);\n\ncodes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(\n 'ERR_PACKAGE_IMPORT_NOT_DEFINED',\n /**\n * @param {string} specifier\n * @param {string} packagePath\n * @param {string} base\n */\n (specifier, packagePath, base) => {\n return `Package import specifier \"${specifier}\" is not defined${\n packagePath ? ` in package ${packagePath}package.json` : ''\n } imported from ${base}`\n },\n TypeError\n);\n\ncodes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(\n 'ERR_PACKAGE_PATH_NOT_EXPORTED',\n /**\n * @param {string} packagePath\n * @param {string} subpath\n * @param {string} [base]\n */\n (packagePath, subpath, base = undefined) => {\n if (subpath === '.')\n return `No \"exports\" main defined in ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }`\n return `Package subpath '${subpath}' is not defined by \"exports\" in ${packagePath}package.json${\n base ? ` imported from ${base}` : ''\n }`\n },\n Error\n);\n\ncodes.ERR_UNSUPPORTED_DIR_IMPORT = createError(\n 'ERR_UNSUPPORTED_DIR_IMPORT',\n \"Directory import '%s' is not supported \" +\n 'resolving ES modules imported from %s',\n Error\n);\n\ncodes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(\n 'ERR_UNSUPPORTED_RESOLVE_REQUEST',\n 'Failed to resolve module specifier \"%s\" from \"%s\": Invalid relative URL or base scheme is not hierarchical.',\n TypeError\n);\n\ncodes.ERR_UNKNOWN_FILE_EXTENSION = createError(\n 'ERR_UNKNOWN_FILE_EXTENSION',\n /**\n * @param {string} extension\n * @param {string} path\n */\n (extension, path) => {\n return `Unknown file extension \"${extension}\" for ${path}`\n },\n TypeError\n);\n\ncodes.ERR_INVALID_ARG_VALUE = createError(\n 'ERR_INVALID_ARG_VALUE',\n /**\n * @param {string} name\n * @param {unknown} value\n * @param {string} [reason='is invalid']\n */\n (name, value, reason = 'is invalid') => {\n let inspected = inspect(value);\n\n if (inspected.length > 128) {\n inspected = `${inspected.slice(0, 128)}...`;\n }\n\n const type = name.includes('.') ? 'property' : 'argument';\n\n return `The ${type} '${name}' ${reason}. Received ${inspected}`\n },\n TypeError\n // Note: extra classes have been shaken out.\n // , RangeError\n);\n\n/**\n * Utility function for registering the error codes. Only used here. Exported\n * *only* to allow for testing.\n * @param {string} sym\n * @param {MessageFunction | string} value\n * @param {ErrorConstructor} constructor\n * @returns {new (...parameters: Array) => Error}\n */\nfunction createError(sym, value, constructor) {\n // Special case for SystemError that formats the error message differently\n // The SystemErrors only have SystemError as their base classes.\n messages.set(sym, value);\n\n return makeNodeErrorWithCode(constructor, sym)\n}\n\n/**\n * @param {ErrorConstructor} Base\n * @param {string} key\n * @returns {ErrorConstructor}\n */\nfunction makeNodeErrorWithCode(Base, key) {\n // @ts-expect-error It’s a Node error.\n return NodeError\n /**\n * @param {Array} parameters\n */\n function NodeError(...parameters) {\n const limit = Error.stackTraceLimit;\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;\n const error = new Base();\n // Reset the limit and setting the name property.\n if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;\n const message = getMessage(key, parameters, error);\n Object.defineProperties(error, {\n // Note: no need to implement `kIsNodeError` symbol, would be hard,\n // probably.\n message: {\n value: message,\n enumerable: false,\n writable: true,\n configurable: true\n },\n toString: {\n /** @this {Error} */\n value() {\n return `${this.name} [${key}]: ${this.message}`\n },\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n captureLargerStackTrace(error);\n // @ts-expect-error It’s a Node error.\n error.code = key;\n return error\n }\n}\n\n/**\n * @returns {boolean}\n */\nfunction isErrorStackTraceLimitWritable() {\n // Do no touch Error.stackTraceLimit as V8 would attempt to install\n // it again during deserialization.\n try {\n if (v8.startupSnapshot.isBuildingSnapshot()) {\n return false\n }\n } catch {}\n\n const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit');\n if (desc === undefined) {\n return Object.isExtensible(Error)\n }\n\n return own$1.call(desc, 'writable') && desc.writable !== undefined\n ? desc.writable\n : desc.set !== undefined\n}\n\n/**\n * This function removes unnecessary frames from Node.js core errors.\n * @template {(...parameters: unknown[]) => unknown} T\n * @param {T} wrappedFunction\n * @returns {T}\n */\nfunction hideStackFrames(wrappedFunction) {\n // We rename the functions that will be hidden to cut off the stacktrace\n // at the outermost one\n const hidden = nodeInternalPrefix + wrappedFunction.name;\n Object.defineProperty(wrappedFunction, 'name', {value: hidden});\n return wrappedFunction\n}\n\nconst captureLargerStackTrace = hideStackFrames(\n /**\n * @param {Error} error\n * @returns {Error}\n */\n // @ts-expect-error: fine\n function (error) {\n const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();\n if (stackTraceLimitIsWritable) {\n userStackTraceLimit = Error.stackTraceLimit;\n Error.stackTraceLimit = Number.POSITIVE_INFINITY;\n }\n\n Error.captureStackTrace(error);\n\n // Reset the limit\n if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit;\n\n return error\n }\n);\n\n/**\n * @param {string} key\n * @param {Array} parameters\n * @param {Error} self\n * @returns {string}\n */\nfunction getMessage(key, parameters, self) {\n const message = messages.get(key);\n assert(message !== undefined, 'expected `message` to be found');\n\n if (typeof message === 'function') {\n assert(\n message.length <= parameters.length, // Default options do not count.\n `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +\n `match the required ones (${message.length}).`\n );\n return Reflect.apply(message, self, parameters)\n }\n\n const regex = /%[dfijoOs]/g;\n let expectedLength = 0;\n while (regex.exec(message) !== null) expectedLength++;\n assert(\n expectedLength === parameters.length,\n `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +\n `match the required ones (${expectedLength}).`\n );\n if (parameters.length === 0) return message\n\n parameters.unshift(message);\n return Reflect.apply(format, null, parameters)\n}\n\n/**\n * Determine the specific type of a value for type-mismatch errors.\n * @param {unknown} value\n * @returns {string}\n */\nfunction determineSpecificType(value) {\n if (value === null || value === undefined) {\n return String(value)\n }\n\n if (typeof value === 'function' && value.name) {\n return `function ${value.name}`\n }\n\n if (typeof value === 'object') {\n if (value.constructor && value.constructor.name) {\n return `an instance of ${value.constructor.name}`\n }\n\n return `${inspect(value, {depth: -1})}`\n }\n\n let inspected = inspect(value, {colors: false});\n\n if (inspected.length > 28) {\n inspected = `${inspected.slice(0, 25)}...`;\n }\n\n return `type ${typeof value} (${inspected})`\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n// Removed the native dependency.\n// Also: no need to cache, we do that in resolve already.\n\n\nconst hasOwnProperty$1 = {}.hasOwnProperty;\n\nconst {ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1} = codes;\n\n/** @type {Map} */\nconst cache = new Map();\n\n/**\n * @param {string} jsonPath\n * @param {{specifier: URL | string, base?: URL}} options\n * @returns {PackageConfig}\n */\nfunction read(jsonPath, {base, specifier}) {\n const existing = cache.get(jsonPath);\n\n if (existing) {\n return existing\n }\n\n /** @type {string | undefined} */\n let string;\n\n try {\n string = fs.readFileSync(path.toNamespacedPath(jsonPath), 'utf8');\n } catch (error) {\n const exception = /** @type {ErrnoException} */ (error);\n\n if (exception.code !== 'ENOENT') {\n throw exception\n }\n }\n\n /** @type {PackageConfig} */\n const result = {\n exists: false,\n pjsonPath: jsonPath,\n main: undefined,\n name: undefined,\n type: 'none', // Ignore unknown types for forwards compatibility\n exports: undefined,\n imports: undefined\n };\n\n if (string !== undefined) {\n /** @type {Record} */\n let parsed;\n\n try {\n parsed = JSON.parse(string);\n } catch (error_) {\n const cause = /** @type {ErrnoException} */ (error_);\n const error = new ERR_INVALID_PACKAGE_CONFIG$1(\n jsonPath,\n (base ? `\"${specifier}\" from ` : '') + fileURLToPath(base || specifier),\n cause.message\n );\n error.cause = cause;\n throw error\n }\n\n result.exists = true;\n\n if (\n hasOwnProperty$1.call(parsed, 'name') &&\n typeof parsed.name === 'string'\n ) {\n result.name = parsed.name;\n }\n\n if (\n hasOwnProperty$1.call(parsed, 'main') &&\n typeof parsed.main === 'string'\n ) {\n result.main = parsed.main;\n }\n\n if (hasOwnProperty$1.call(parsed, 'exports')) {\n // @ts-expect-error: assume valid.\n result.exports = parsed.exports;\n }\n\n if (hasOwnProperty$1.call(parsed, 'imports')) {\n // @ts-expect-error: assume valid.\n result.imports = parsed.imports;\n }\n\n // Ignore unknown types for forwards compatibility\n if (\n hasOwnProperty$1.call(parsed, 'type') &&\n (parsed.type === 'commonjs' || parsed.type === 'module')\n ) {\n result.type = parsed.type;\n }\n }\n\n cache.set(jsonPath, result);\n\n return result\n}\n\n/**\n * @param {URL | string} resolved\n * @returns {PackageConfig}\n */\nfunction getPackageScopeConfig(resolved) {\n // Note: in Node, this is now a native module.\n let packageJSONUrl = new URL('package.json', resolved);\n\n while (true) {\n const packageJSONPath = packageJSONUrl.pathname;\n if (packageJSONPath.endsWith('node_modules/package.json')) {\n break\n }\n\n const packageConfig = read(fileURLToPath(packageJSONUrl), {\n specifier: resolved\n });\n\n if (packageConfig.exists) {\n return packageConfig\n }\n\n const lastPackageJSONUrl = packageJSONUrl;\n packageJSONUrl = new URL('../package.json', packageJSONUrl);\n\n // Terminates at root where ../package.json equals ../../package.json\n // (can't just check \"/package.json\" for Windows support).\n if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {\n break\n }\n }\n\n const packageJSONPath = fileURLToPath(packageJSONUrl);\n // ^^ Note: in Node, this is now a native module.\n\n return {\n pjsonPath: packageJSONPath,\n exists: false,\n type: 'none'\n }\n}\n\n/**\n * Returns the package type for a given URL.\n * @param {URL} url - The URL to get the package type for.\n * @returns {PackageType}\n */\nfunction getPackageType(url) {\n // To do @anonrig: Write a C++ function that returns only \"type\".\n return getPackageScopeConfig(url).type\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst {ERR_UNKNOWN_FILE_EXTENSION} = codes;\n\nconst hasOwnProperty = {}.hasOwnProperty;\n\n/** @type {Record} */\nconst extensionFormatMap = {\n // @ts-expect-error: hush.\n __proto__: null,\n '.cjs': 'commonjs',\n '.js': 'module',\n '.json': 'json',\n '.mjs': 'module'\n};\n\n/**\n * @param {string | null} mime\n * @returns {string | null}\n */\nfunction mimeToFormat(mime) {\n if (\n mime &&\n /\\s*(text|application)\\/javascript\\s*(;\\s*charset=utf-?8\\s*)?/i.test(mime)\n )\n return 'module'\n if (mime === 'application/json') return 'json'\n return null\n}\n\n/**\n * @callback ProtocolHandler\n * @param {URL} parsed\n * @param {{parentURL: string, source?: Buffer}} context\n * @param {boolean} ignoreErrors\n * @returns {string | null | void}\n */\n\n/**\n * @type {Record}\n */\nconst protocolHandlers = {\n // @ts-expect-error: hush.\n __proto__: null,\n 'data:': getDataProtocolModuleFormat,\n 'file:': getFileProtocolModuleFormat,\n 'http:': getHttpProtocolModuleFormat,\n 'https:': getHttpProtocolModuleFormat,\n 'node:'() {\n return 'builtin'\n }\n};\n\n/**\n * @param {URL} parsed\n */\nfunction getDataProtocolModuleFormat(parsed) {\n const {1: mime} = /^([^/]+\\/[^;,]+)[^,]*?(;base64)?,/.exec(\n parsed.pathname\n ) || [null, null, null];\n return mimeToFormat(mime)\n}\n\n/**\n * Returns the file extension from a URL.\n *\n * Should give similar result to\n * `require('node:path').extname(require('node:url').fileURLToPath(url))`\n * when used with a `file:` URL.\n *\n * @param {URL} url\n * @returns {string}\n */\nfunction extname(url) {\n const pathname = url.pathname;\n let index = pathname.length;\n\n while (index--) {\n const code = pathname.codePointAt(index);\n\n if (code === 47 /* `/` */) {\n return ''\n }\n\n if (code === 46 /* `.` */) {\n return pathname.codePointAt(index - 1) === 47 /* `/` */\n ? ''\n : pathname.slice(index)\n }\n }\n\n return ''\n}\n\n/**\n * @type {ProtocolHandler}\n */\nfunction getFileProtocolModuleFormat(url, _context, ignoreErrors) {\n const value = extname(url);\n\n if (value === '.js') {\n const packageType = getPackageType(url);\n\n if (packageType !== 'none') {\n return packageType\n }\n\n return 'commonjs'\n }\n\n if (value === '') {\n const packageType = getPackageType(url);\n\n // Legacy behavior\n if (packageType === 'none' || packageType === 'commonjs') {\n return 'commonjs'\n }\n\n // Note: we don’t implement WASM, so we don’t need\n // `getFormatOfExtensionlessFile` from `formats`.\n return 'module'\n }\n\n const format = extensionFormatMap[value];\n if (format) return format\n\n // Explicit undefined return indicates load hook should rerun format check\n if (ignoreErrors) {\n return undefined\n }\n\n const filepath = fileURLToPath(url);\n throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath)\n}\n\nfunction getHttpProtocolModuleFormat() {\n // To do: HTTPS imports.\n}\n\n/**\n * @param {URL} url\n * @param {{parentURL: string}} context\n * @returns {string | null}\n */\nfunction defaultGetFormatWithoutErrors(url, context) {\n const protocol = url.protocol;\n\n if (!hasOwnProperty.call(protocolHandlers, protocol)) {\n return null\n }\n\n return protocolHandlers[protocol](url, context, true) || null\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst {ERR_INVALID_ARG_VALUE} = codes;\n\n// In Node itself these values are populated from CLI arguments, before any\n// user code runs.\n// Here we just define the defaults.\nconst DEFAULT_CONDITIONS = Object.freeze(['node', 'import']);\nconst DEFAULT_CONDITIONS_SET = new Set(DEFAULT_CONDITIONS);\n\n/**\n * Returns the default conditions for ES module loading.\n */\nfunction getDefaultConditions() {\n return DEFAULT_CONDITIONS\n}\n\n/**\n * Returns the default conditions for ES module loading, as a Set.\n */\nfunction getDefaultConditionsSet() {\n return DEFAULT_CONDITIONS_SET\n}\n\n/**\n * @param {Array} [conditions]\n * @returns {Set}\n */\nfunction getConditionsSet(conditions) {\n if (conditions !== undefined && conditions !== getDefaultConditions()) {\n if (!Array.isArray(conditions)) {\n throw new ERR_INVALID_ARG_VALUE(\n 'conditions',\n conditions,\n 'expected an array'\n )\n }\n\n return new Set(conditions)\n }\n\n return getDefaultConditionsSet()\n}\n\n// Manually “tree shaken” from:\n// \n// Last checked on: Apr 29, 2023.\n\n\nconst RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];\n\nconst {\n ERR_NETWORK_IMPORT_DISALLOWED,\n ERR_INVALID_MODULE_SPECIFIER,\n ERR_INVALID_PACKAGE_CONFIG,\n ERR_INVALID_PACKAGE_TARGET,\n ERR_MODULE_NOT_FOUND,\n ERR_PACKAGE_IMPORT_NOT_DEFINED,\n ERR_PACKAGE_PATH_NOT_EXPORTED,\n ERR_UNSUPPORTED_DIR_IMPORT,\n ERR_UNSUPPORTED_RESOLVE_REQUEST\n} = codes;\n\nconst own = {}.hasOwnProperty;\n\nconst invalidSegmentRegEx =\n /(^|\\\\|\\/)((\\.|%2e)(\\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\\\|\\/|$)/i;\nconst deprecatedInvalidSegmentRegEx =\n /(^|\\\\|\\/)((\\.|%2e)(\\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\\\|\\/|$)/i;\nconst invalidPackageNameRegEx = /^\\.|%|\\\\/;\nconst patternRegEx = /\\*/g;\nconst encodedSeparatorRegEx = /%2f|%5c/i;\n/** @type {Set} */\nconst emittedPackageWarnings = new Set();\n\nconst doubleSlashRegEx = /[/\\\\]{2}/;\n\n/**\n *\n * @param {string} target\n * @param {string} request\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} base\n * @param {boolean} isTarget\n */\nfunction emitInvalidSegmentDeprecation(\n target,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n isTarget\n) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const pjsonPath = fileURLToPath(packageJsonUrl);\n const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;\n process.emitWarning(\n `Use of deprecated ${\n double ? 'double slash' : 'leading or trailing slash matching'\n } resolving \"${target}\" for module ` +\n `request \"${request}\" ${\n request === match ? '' : `matched to \"${match}\" `\n }in the \"${\n internal ? 'imports' : 'exports'\n }\" field module resolution of the package at ${pjsonPath}${\n base ? ` imported from ${fileURLToPath(base)}` : ''\n }.`,\n 'DeprecationWarning',\n 'DEP0166'\n );\n}\n\n/**\n * @param {URL} url\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @param {string} [main]\n * @returns {void}\n */\nfunction emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const format = defaultGetFormatWithoutErrors(url, {parentURL: base.href});\n if (format !== 'module') return\n const urlPath = fileURLToPath(url.href);\n const packagePath = fileURLToPath(new URL$1('.', packageJsonUrl));\n const basePath = fileURLToPath(base);\n if (!main) {\n process.emitWarning(\n `No \"main\" or \"exports\" field defined in the package.json for ${packagePath} resolving the main entry point \"${urlPath.slice(\n packagePath.length\n )}\", imported from ${basePath}.\\nDefault \"index\" lookups for the main are deprecated for ES modules.`,\n 'DeprecationWarning',\n 'DEP0151'\n );\n } else if (path.resolve(packagePath, main) !== urlPath) {\n process.emitWarning(\n `Package ${packagePath} has a \"main\" field set to \"${main}\", ` +\n `excluding the full filename and extension to the resolved file at \"${urlPath.slice(\n packagePath.length\n )}\", imported from ${basePath}.\\n Automatic extension resolution of the \"main\" field is ` +\n 'deprecated for ES modules.',\n 'DeprecationWarning',\n 'DEP0151'\n );\n }\n}\n\n/**\n * @param {string} path\n * @returns {Stats | undefined}\n */\nfunction tryStatSync(path) {\n // Note: from Node 15 onwards we can use `throwIfNoEntry: false` instead.\n try {\n return statSync(path)\n } catch {\n // Note: in Node code this returns `new Stats`,\n // but in Node 22 that’s marked as a deprecated internal API.\n // Which, well, we kinda are, but still to prevent that warning,\n // just yield `undefined`.\n }\n}\n\n/**\n * Legacy CommonJS main resolution:\n * 1. let M = pkg_url + (json main field)\n * 2. TRY(M, M.js, M.json, M.node)\n * 3. TRY(M/index.js, M/index.json, M/index.node)\n * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)\n * 5. NOT_FOUND\n *\n * @param {URL} url\n * @returns {boolean}\n */\nfunction fileExists(url) {\n const stats = statSync(url, {throwIfNoEntry: false});\n const isFile = stats ? stats.isFile() : undefined;\n return isFile === null || isFile === undefined ? false : isFile\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {PackageConfig} packageConfig\n * @param {URL} base\n * @returns {URL}\n */\nfunction legacyMainResolve(packageJsonUrl, packageConfig, base) {\n /** @type {URL | undefined} */\n let guess;\n if (packageConfig.main !== undefined) {\n guess = new URL$1(packageConfig.main, packageJsonUrl);\n // Note: fs check redundances will be handled by Descriptor cache here.\n if (fileExists(guess)) return guess\n\n const tries = [\n `./${packageConfig.main}.js`,\n `./${packageConfig.main}.json`,\n `./${packageConfig.main}.node`,\n `./${packageConfig.main}/index.js`,\n `./${packageConfig.main}/index.json`,\n `./${packageConfig.main}/index.node`\n ];\n let i = -1;\n\n while (++i < tries.length) {\n guess = new URL$1(tries[i], packageJsonUrl);\n if (fileExists(guess)) break\n guess = undefined;\n }\n\n if (guess) {\n emitLegacyIndexDeprecation(\n guess,\n packageJsonUrl,\n base,\n packageConfig.main\n );\n return guess\n }\n // Fallthrough.\n }\n\n const tries = ['./index.js', './index.json', './index.node'];\n let i = -1;\n\n while (++i < tries.length) {\n guess = new URL$1(tries[i], packageJsonUrl);\n if (fileExists(guess)) break\n guess = undefined;\n }\n\n if (guess) {\n emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);\n return guess\n }\n\n // Not found.\n throw new ERR_MODULE_NOT_FOUND(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n fileURLToPath(base)\n )\n}\n\n/**\n * @param {URL} resolved\n * @param {URL} base\n * @param {boolean} [preserveSymlinks]\n * @returns {URL}\n */\nfunction finalizeResolution(resolved, base, preserveSymlinks) {\n if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {\n throw new ERR_INVALID_MODULE_SPECIFIER(\n resolved.pathname,\n 'must not include encoded \"/\" or \"\\\\\" characters',\n fileURLToPath(base)\n )\n }\n\n /** @type {string} */\n let filePath;\n\n try {\n filePath = fileURLToPath(resolved);\n } catch (error) {\n const cause = /** @type {ErrnoException} */ (error);\n Object.defineProperty(cause, 'input', {value: String(resolved)});\n Object.defineProperty(cause, 'module', {value: String(base)});\n throw cause\n }\n\n const stats = tryStatSync(\n filePath.endsWith('/') ? filePath.slice(-1) : filePath\n );\n\n if (stats && stats.isDirectory()) {\n const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath(base));\n // @ts-expect-error Add this for `import.meta.resolve`.\n error.url = String(resolved);\n throw error\n }\n\n if (!stats || !stats.isFile()) {\n const error = new ERR_MODULE_NOT_FOUND(\n filePath || resolved.pathname,\n base && fileURLToPath(base),\n true\n );\n // @ts-expect-error Add this for `import.meta.resolve`.\n error.url = String(resolved);\n throw error\n }\n\n if (!preserveSymlinks) {\n const real = realpathSync(filePath);\n const {search, hash} = resolved;\n resolved = pathToFileURL(real + (filePath.endsWith(path.sep) ? '/' : ''));\n resolved.search = search;\n resolved.hash = hash;\n }\n\n return resolved\n}\n\n/**\n * @param {string} specifier\n * @param {URL | undefined} packageJsonUrl\n * @param {URL} base\n * @returns {Error}\n */\nfunction importNotDefined(specifier, packageJsonUrl, base) {\n return new ERR_PACKAGE_IMPORT_NOT_DEFINED(\n specifier,\n packageJsonUrl && fileURLToPath(new URL$1('.', packageJsonUrl)),\n fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} subpath\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @returns {Error}\n */\nfunction exportsNotFound(subpath, packageJsonUrl, base) {\n return new ERR_PACKAGE_PATH_NOT_EXPORTED(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n subpath,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} request\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} [base]\n * @returns {never}\n */\nfunction throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {\n const reason = `request is not a valid match in pattern \"${match}\" for the \"${\n internal ? 'imports' : 'exports'\n }\" resolution of ${fileURLToPath(packageJsonUrl)}`;\n throw new ERR_INVALID_MODULE_SPECIFIER(\n request,\n reason,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} subpath\n * @param {unknown} target\n * @param {URL} packageJsonUrl\n * @param {boolean} internal\n * @param {URL} [base]\n * @returns {Error}\n */\nfunction invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {\n target =\n typeof target === 'object' && target !== null\n ? JSON.stringify(target, null, '')\n : `${target}`;\n\n return new ERR_INVALID_PACKAGE_TARGET(\n fileURLToPath(new URL$1('.', packageJsonUrl)),\n subpath,\n target,\n internal,\n base && fileURLToPath(base)\n )\n}\n\n/**\n * @param {string} target\n * @param {string} subpath\n * @param {string} match\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @param {boolean} pattern\n * @param {boolean} internal\n * @param {boolean} isPathMap\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction resolvePackageTargetString(\n target,\n subpath,\n match,\n packageJsonUrl,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n) {\n if (subpath !== '' && !pattern && target[target.length - 1] !== '/')\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n\n if (!target.startsWith('./')) {\n if (internal && !target.startsWith('../') && !target.startsWith('/')) {\n let isURL = false;\n\n try {\n new URL$1(target);\n isURL = true;\n } catch {\n // Continue regardless of error.\n }\n\n if (!isURL) {\n const exportTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target + subpath;\n\n return packageResolve(exportTarget, packageJsonUrl, conditions)\n }\n }\n\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n }\n\n if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {\n if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {\n if (!isPathMap) {\n const request = pattern\n ? match.replace('*', () => subpath)\n : match + subpath;\n const resolvedTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target;\n emitInvalidSegmentDeprecation(\n resolvedTarget,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n true\n );\n }\n } else {\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n }\n }\n\n const resolved = new URL$1(target, packageJsonUrl);\n const resolvedPath = resolved.pathname;\n const packagePath = new URL$1('.', packageJsonUrl).pathname;\n\n if (!resolvedPath.startsWith(packagePath))\n throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)\n\n if (subpath === '') return resolved\n\n if (invalidSegmentRegEx.exec(subpath) !== null) {\n const request = pattern\n ? match.replace('*', () => subpath)\n : match + subpath;\n if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {\n if (!isPathMap) {\n const resolvedTarget = pattern\n ? RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n target,\n () => subpath\n )\n : target;\n emitInvalidSegmentDeprecation(\n resolvedTarget,\n request,\n match,\n packageJsonUrl,\n internal,\n base,\n false\n );\n }\n } else {\n throwInvalidSubpath(request, match, packageJsonUrl, internal, base);\n }\n }\n\n if (pattern) {\n return new URL$1(\n RegExpPrototypeSymbolReplace.call(\n patternRegEx,\n resolved.href,\n () => subpath\n )\n )\n }\n\n return new URL$1(subpath, resolved)\n}\n\n/**\n * @param {string} key\n * @returns {boolean}\n */\nfunction isArrayIndex(key) {\n const keyNumber = Number(key);\n if (`${keyNumber}` !== key) return false\n return keyNumber >= 0 && keyNumber < 0xff_ff_ff_ff\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {unknown} target\n * @param {string} subpath\n * @param {string} packageSubpath\n * @param {URL} base\n * @param {boolean} pattern\n * @param {boolean} internal\n * @param {boolean} isPathMap\n * @param {Set | undefined} conditions\n * @returns {URL | null}\n */\nfunction resolvePackageTarget(\n packageJsonUrl,\n target,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n) {\n if (typeof target === 'string') {\n return resolvePackageTargetString(\n target,\n subpath,\n packageSubpath,\n packageJsonUrl,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n )\n }\n\n if (Array.isArray(target)) {\n /** @type {Array} */\n const targetList = target;\n if (targetList.length === 0) return null\n\n /** @type {ErrnoException | null | undefined} */\n let lastException;\n let i = -1;\n\n while (++i < targetList.length) {\n const targetItem = targetList[i];\n /** @type {URL | null} */\n let resolveResult;\n try {\n resolveResult = resolvePackageTarget(\n packageJsonUrl,\n targetItem,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n );\n } catch (error) {\n const exception = /** @type {ErrnoException} */ (error);\n lastException = exception;\n if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue\n throw error\n }\n\n if (resolveResult === undefined) continue\n\n if (resolveResult === null) {\n lastException = null;\n continue\n }\n\n return resolveResult\n }\n\n if (lastException === undefined || lastException === null) {\n return null\n }\n\n throw lastException\n }\n\n if (typeof target === 'object' && target !== null) {\n const keys = Object.getOwnPropertyNames(target);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n if (isArrayIndex(key)) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJsonUrl),\n base,\n '\"exports\" cannot contain numeric property keys.'\n )\n }\n }\n\n i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n if (key === 'default' || (conditions && conditions.has(key))) {\n // @ts-expect-error: indexable.\n const conditionalTarget = /** @type {unknown} */ (target[key]);\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n conditionalTarget,\n subpath,\n packageSubpath,\n base,\n pattern,\n internal,\n isPathMap,\n conditions\n );\n if (resolveResult === undefined) continue\n return resolveResult\n }\n }\n\n return null\n }\n\n if (target === null) {\n return null\n }\n\n throw invalidPackageTarget(\n packageSubpath,\n target,\n packageJsonUrl,\n internal,\n base\n )\n}\n\n/**\n * @param {unknown} exports\n * @param {URL} packageJsonUrl\n * @param {URL} base\n * @returns {boolean}\n */\nfunction isConditionalExportsMainSugar(exports, packageJsonUrl, base) {\n if (typeof exports === 'string' || Array.isArray(exports)) return true\n if (typeof exports !== 'object' || exports === null) return false\n\n const keys = Object.getOwnPropertyNames(exports);\n let isConditionalSugar = false;\n let i = 0;\n let keyIndex = -1;\n while (++keyIndex < keys.length) {\n const key = keys[keyIndex];\n const currentIsConditionalSugar = key === '' || key[0] !== '.';\n if (i++ === 0) {\n isConditionalSugar = currentIsConditionalSugar;\n } else if (isConditionalSugar !== currentIsConditionalSugar) {\n throw new ERR_INVALID_PACKAGE_CONFIG(\n fileURLToPath(packageJsonUrl),\n base,\n '\"exports\" cannot contain some keys starting with \\'.\\' and some not.' +\n ' The exports object must either be an object of package subpath keys' +\n ' or an object of main entry condition name keys only.'\n )\n }\n }\n\n return isConditionalSugar\n}\n\n/**\n * @param {string} match\n * @param {URL} pjsonUrl\n * @param {URL} base\n */\nfunction emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {\n // @ts-expect-error: apparently it does exist, TS.\n if (process.noDeprecation) {\n return\n }\n\n const pjsonPath = fileURLToPath(pjsonUrl);\n if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return\n emittedPackageWarnings.add(pjsonPath + '|' + match);\n process.emitWarning(\n `Use of deprecated trailing slash pattern mapping \"${match}\" in the ` +\n `\"exports\" field module resolution of the package at ${pjsonPath}${\n base ? ` imported from ${fileURLToPath(base)}` : ''\n }. Mapping specifiers ending in \"/\" is no longer supported.`,\n 'DeprecationWarning',\n 'DEP0155'\n );\n}\n\n/**\n * @param {URL} packageJsonUrl\n * @param {string} packageSubpath\n * @param {Record} packageConfig\n * @param {URL} base\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n) {\n let exports = packageConfig.exports;\n\n if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {\n exports = {'.': exports};\n }\n\n if (\n own.call(exports, packageSubpath) &&\n !packageSubpath.includes('*') &&\n !packageSubpath.endsWith('/')\n ) {\n // @ts-expect-error: indexable.\n const target = exports[packageSubpath];\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n '',\n packageSubpath,\n base,\n false,\n false,\n false,\n conditions\n );\n if (resolveResult === null || resolveResult === undefined) {\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n }\n\n return resolveResult\n }\n\n let bestMatch = '';\n let bestMatchSubpath = '';\n const keys = Object.getOwnPropertyNames(exports);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n const patternIndex = key.indexOf('*');\n\n if (\n patternIndex !== -1 &&\n packageSubpath.startsWith(key.slice(0, patternIndex))\n ) {\n // When this reaches EOL, this can throw at the top of the whole function:\n //\n // if (StringPrototypeEndsWith(packageSubpath, '/'))\n // throwInvalidSubpath(packageSubpath)\n //\n // To match \"imports\" and the spec.\n if (packageSubpath.endsWith('/')) {\n emitTrailingSlashPatternDeprecation(\n packageSubpath,\n packageJsonUrl,\n base\n );\n }\n\n const patternTrailer = key.slice(patternIndex + 1);\n\n if (\n packageSubpath.length >= key.length &&\n packageSubpath.endsWith(patternTrailer) &&\n patternKeyCompare(bestMatch, key) === 1 &&\n key.lastIndexOf('*') === patternIndex\n ) {\n bestMatch = key;\n bestMatchSubpath = packageSubpath.slice(\n patternIndex,\n packageSubpath.length - patternTrailer.length\n );\n }\n }\n }\n\n if (bestMatch) {\n // @ts-expect-error: indexable.\n const target = /** @type {unknown} */ (exports[bestMatch]);\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n bestMatchSubpath,\n bestMatch,\n base,\n true,\n false,\n packageSubpath.endsWith('/'),\n conditions\n );\n\n if (resolveResult === null || resolveResult === undefined) {\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n }\n\n return resolveResult\n }\n\n throw exportsNotFound(packageSubpath, packageJsonUrl, base)\n}\n\n/**\n * @param {string} a\n * @param {string} b\n */\nfunction patternKeyCompare(a, b) {\n const aPatternIndex = a.indexOf('*');\n const bPatternIndex = b.indexOf('*');\n const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;\n const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;\n if (baseLengthA > baseLengthB) return -1\n if (baseLengthB > baseLengthA) return 1\n if (aPatternIndex === -1) return 1\n if (bPatternIndex === -1) return -1\n if (a.length > b.length) return -1\n if (b.length > a.length) return 1\n return 0\n}\n\n/**\n * @param {string} name\n * @param {URL} base\n * @param {Set} [conditions]\n * @returns {URL}\n */\nfunction packageImportsResolve(name, base, conditions) {\n if (name === '#' || name.startsWith('#/') || name.endsWith('/')) {\n const reason = 'is not a valid internal imports specifier name';\n throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base))\n }\n\n /** @type {URL | undefined} */\n let packageJsonUrl;\n\n const packageConfig = getPackageScopeConfig(base);\n\n if (packageConfig.exists) {\n packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);\n const imports = packageConfig.imports;\n if (imports) {\n if (own.call(imports, name) && !name.includes('*')) {\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n imports[name],\n '',\n name,\n base,\n false,\n true,\n false,\n conditions\n );\n if (resolveResult !== null && resolveResult !== undefined) {\n return resolveResult\n }\n } else {\n let bestMatch = '';\n let bestMatchSubpath = '';\n const keys = Object.getOwnPropertyNames(imports);\n let i = -1;\n\n while (++i < keys.length) {\n const key = keys[i];\n const patternIndex = key.indexOf('*');\n\n if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {\n const patternTrailer = key.slice(patternIndex + 1);\n if (\n name.length >= key.length &&\n name.endsWith(patternTrailer) &&\n patternKeyCompare(bestMatch, key) === 1 &&\n key.lastIndexOf('*') === patternIndex\n ) {\n bestMatch = key;\n bestMatchSubpath = name.slice(\n patternIndex,\n name.length - patternTrailer.length\n );\n }\n }\n }\n\n if (bestMatch) {\n const target = imports[bestMatch];\n const resolveResult = resolvePackageTarget(\n packageJsonUrl,\n target,\n bestMatchSubpath,\n bestMatch,\n base,\n true,\n true,\n false,\n conditions\n );\n\n if (resolveResult !== null && resolveResult !== undefined) {\n return resolveResult\n }\n }\n }\n }\n }\n\n throw importNotDefined(name, packageJsonUrl, base)\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n */\nfunction parsePackageName(specifier, base) {\n let separatorIndex = specifier.indexOf('/');\n let validPackageName = true;\n let isScoped = false;\n if (specifier[0] === '@') {\n isScoped = true;\n if (separatorIndex === -1 || specifier.length === 0) {\n validPackageName = false;\n } else {\n separatorIndex = specifier.indexOf('/', separatorIndex + 1);\n }\n }\n\n const packageName =\n separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex);\n\n // Package name cannot have leading . and cannot have percent-encoding or\n // \\\\ separators.\n if (invalidPackageNameRegEx.exec(packageName) !== null) {\n validPackageName = false;\n }\n\n if (!validPackageName) {\n throw new ERR_INVALID_MODULE_SPECIFIER(\n specifier,\n 'is not a valid package name',\n fileURLToPath(base)\n )\n }\n\n const packageSubpath =\n '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex));\n\n return {packageName, packageSubpath, isScoped}\n}\n\n/**\n * @param {string} specifier\n * @param {URL} base\n * @param {Set | undefined} conditions\n * @returns {URL}\n */\nfunction packageResolve(specifier, base, conditions) {\n if (builtinModules.includes(specifier)) {\n return new URL$1('node:' + specifier)\n }\n\n const {packageName, packageSubpath, isScoped} = parsePackageName(\n specifier,\n base\n );\n\n // ResolveSelf\n const packageConfig = getPackageScopeConfig(base);\n\n // Can’t test.\n /* c8 ignore next 16 */\n if (packageConfig.exists) {\n const packageJsonUrl = pathToFileURL(packageConfig.pjsonPath);\n if (\n packageConfig.name === packageName &&\n packageConfig.exports !== undefined &&\n packageConfig.exports !== null\n ) {\n return packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n )\n }\n }\n\n let packageJsonUrl = new URL$1(\n './node_modules/' + packageName + '/package.json',\n base\n );\n let packageJsonPath = fileURLToPath(packageJsonUrl);\n /** @type {string} */\n let lastPath;\n do {\n const stat = tryStatSync(packageJsonPath.slice(0, -13));\n if (!stat || !stat.isDirectory()) {\n lastPath = packageJsonPath;\n packageJsonUrl = new URL$1(\n (isScoped ? '../../../../node_modules/' : '../../../node_modules/') +\n packageName +\n '/package.json',\n packageJsonUrl\n );\n packageJsonPath = fileURLToPath(packageJsonUrl);\n continue\n }\n\n // Package match.\n const packageConfig = read(packageJsonPath, {base, specifier});\n if (packageConfig.exports !== undefined && packageConfig.exports !== null) {\n return packageExportsResolve(\n packageJsonUrl,\n packageSubpath,\n packageConfig,\n base,\n conditions\n )\n }\n\n if (packageSubpath === '.') {\n return legacyMainResolve(packageJsonUrl, packageConfig, base)\n }\n\n return new URL$1(packageSubpath, packageJsonUrl)\n // Cross-platform root check.\n } while (packageJsonPath.length !== lastPath.length)\n\n throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), false)\n}\n\n/**\n * @param {string} specifier\n * @returns {boolean}\n */\nfunction isRelativeSpecifier(specifier) {\n if (specifier[0] === '.') {\n if (specifier.length === 1 || specifier[1] === '/') return true\n if (\n specifier[1] === '.' &&\n (specifier.length === 2 || specifier[2] === '/')\n ) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * @param {string} specifier\n * @returns {boolean}\n */\nfunction shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {\n if (specifier === '') return false\n if (specifier[0] === '/') return true\n return isRelativeSpecifier(specifier)\n}\n\n/**\n * The “Resolver Algorithm Specification” as detailed in the Node docs (which is\n * sync and slightly lower-level than `resolve`).\n *\n * @param {string} specifier\n * `/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc.\n * @param {URL} base\n * Full URL (to a file) that `specifier` is resolved relative from.\n * @param {Set} [conditions]\n * Conditions.\n * @param {boolean} [preserveSymlinks]\n * Keep symlinks instead of resolving them.\n * @returns {URL}\n * A URL object to the found thing.\n */\nfunction moduleResolve(specifier, base, conditions, preserveSymlinks) {\n // Note: The Node code supports `base` as a string (in this internal API) too,\n // we don’t.\n const protocol = base.protocol;\n const isData = protocol === 'data:';\n const isRemote = isData || protocol === 'http:' || protocol === 'https:';\n // Order swapped from spec for minor perf gain.\n // Ok since relative URLs cannot parse as URLs.\n /** @type {URL | undefined} */\n let resolved;\n\n if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {\n try {\n resolved = new URL$1(specifier, base);\n } catch (error_) {\n const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);\n error.cause = error_;\n throw error\n }\n } else if (protocol === 'file:' && specifier[0] === '#') {\n resolved = packageImportsResolve(specifier, base, conditions);\n } else {\n try {\n resolved = new URL$1(specifier);\n } catch (error_) {\n // Note: actual code uses `canBeRequiredWithoutScheme`.\n if (isRemote && !builtinModules.includes(specifier)) {\n const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);\n error.cause = error_;\n throw error\n }\n\n resolved = packageResolve(specifier, base, conditions);\n }\n }\n\n assert(resolved !== undefined, 'expected to be defined');\n\n if (resolved.protocol !== 'file:') {\n return resolved\n }\n\n return finalizeResolution(resolved, base, preserveSymlinks)\n}\n\n/**\n * @param {string} specifier\n * @param {URL | undefined} parsed\n * @param {URL | undefined} parsedParentURL\n */\nfunction checkIfDisallowedImport(specifier, parsed, parsedParentURL) {\n if (parsedParentURL) {\n // Avoid accessing the `protocol` property due to the lazy getters.\n const parentProtocol = parsedParentURL.protocol;\n\n if (parentProtocol === 'http:' || parentProtocol === 'https:') {\n if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {\n // Avoid accessing the `protocol` property due to the lazy getters.\n const parsedProtocol = parsed?.protocol;\n\n // `data:` and `blob:` disallowed due to allowing file: access via\n // indirection\n if (\n parsedProtocol &&\n parsedProtocol !== 'https:' &&\n parsedProtocol !== 'http:'\n ) {\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'remote imports cannot import from a local location.'\n )\n }\n\n return {url: parsed?.href || ''}\n }\n\n if (builtinModules.includes(specifier)) {\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'remote imports cannot import from a local location.'\n )\n }\n\n throw new ERR_NETWORK_IMPORT_DISALLOWED(\n specifier,\n parsedParentURL,\n 'only relative and absolute specifiers are supported.'\n )\n }\n }\n}\n\n// Note: this is from:\n// \n/**\n * Checks if a value has the shape of a WHATWG URL object.\n *\n * Using a symbol or instanceof would not be able to recognize URL objects\n * coming from other implementations (e.g. in Electron), so instead we are\n * checking some well known properties for a lack of a better test.\n *\n * We use `href` and `protocol` as they are the only properties that are\n * easy to retrieve and calculate due to the lazy nature of the getters.\n *\n * @template {unknown} Value\n * @param {Value} self\n * @returns {Value is URL}\n */\nfunction isURL(self) {\n return Boolean(\n self &&\n typeof self === 'object' &&\n 'href' in self &&\n typeof self.href === 'string' &&\n 'protocol' in self &&\n typeof self.protocol === 'string' &&\n self.href &&\n self.protocol\n )\n}\n\n/**\n * Validate user-input in `context` supplied by a custom loader.\n *\n * @param {unknown} parentURL\n * @returns {asserts parentURL is URL | string | undefined}\n */\nfunction throwIfInvalidParentURL(parentURL) {\n if (parentURL === undefined) {\n return // Main entry point, so no parent\n }\n\n if (typeof parentURL !== 'string' && !isURL(parentURL)) {\n throw new codes.ERR_INVALID_ARG_TYPE(\n 'parentURL',\n ['string', 'URL'],\n parentURL\n )\n }\n}\n\n/**\n * @param {string} specifier\n * @param {{parentURL?: string, conditions?: Array}} context\n * @returns {{url: string, format?: string | null}}\n */\nfunction defaultResolve(specifier, context = {}) {\n const {parentURL} = context;\n assert(parentURL !== undefined, 'expected `parentURL` to be defined');\n throwIfInvalidParentURL(parentURL);\n\n /** @type {URL | undefined} */\n let parsedParentURL;\n if (parentURL) {\n try {\n parsedParentURL = new URL$1(parentURL);\n } catch {\n // Ignore exception\n }\n }\n\n /** @type {URL | undefined} */\n let parsed;\n /** @type {string | undefined} */\n let protocol;\n\n try {\n parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier)\n ? new URL$1(specifier, parsedParentURL)\n : new URL$1(specifier);\n\n // Avoid accessing the `protocol` property due to the lazy getters.\n protocol = parsed.protocol;\n\n if (protocol === 'data:') {\n return {url: parsed.href, format: null}\n }\n } catch {\n // Ignore exception\n }\n\n // There are multiple deep branches that can either throw or return; instead\n // of duplicating that deeply nested logic for the possible returns, DRY and\n // check for a return. This seems the least gnarly.\n const maybeReturn = checkIfDisallowedImport(\n specifier,\n parsed,\n parsedParentURL\n );\n\n if (maybeReturn) return maybeReturn\n\n // This must come after checkIfDisallowedImport\n if (protocol === undefined && parsed) {\n protocol = parsed.protocol;\n }\n\n if (protocol === 'node:') {\n return {url: specifier}\n }\n\n // This must come after checkIfDisallowedImport\n if (parsed && parsed.protocol === 'node:') return {url: specifier}\n\n const conditions = getConditionsSet(context.conditions);\n\n const url = moduleResolve(specifier, new URL$1(parentURL), conditions, false);\n\n return {\n // Do NOT cast `url` to a string: that will work even when there are real\n // problems, silencing them\n url: url.href,\n format: defaultGetFormatWithoutErrors(url, {parentURL})\n }\n}\n\n/**\n * @typedef {import('./lib/errors.js').ErrnoException} ErrnoException\n */\n\n\n/**\n * Match `import.meta.resolve` except that `parent` is required (you can pass\n * `import.meta.url`).\n *\n * @param {string} specifier\n * The module specifier to resolve relative to parent\n * (`/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`,\n * etc).\n * @param {string} parent\n * The absolute parent module URL to resolve from.\n * You must pass `import.meta.url` or something else.\n * @returns {string}\n * Returns a string to a full `file:`, `data:`, or `node:` URL\n * to the found thing.\n */\nfunction resolve(specifier, parent) {\n if (!parent) {\n throw new Error(\n 'Please pass `parent`: `import-meta-resolve` cannot ponyfill that'\n )\n }\n\n try {\n return defaultResolve(specifier, {parentURL: parent}).url\n } catch (error) {\n // See: \n const exception = /** @type {ErrnoException} */ (error);\n\n if (\n (exception.code === 'ERR_UNSUPPORTED_DIR_IMPORT' ||\n exception.code === 'ERR_MODULE_NOT_FOUND') &&\n typeof exception.url === 'string'\n ) {\n return exception.url\n }\n\n throw error\n }\n}\n\nexport { moduleResolve, resolve };\n"],"mappings":";;;;;;;AAoFA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAG,uBAAA,CAAAF,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,KAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,MAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,KAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,QAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,OAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,GAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,EAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,MAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,KAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuC,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAcvC,MAAMW,KAAK,GAAG,CAAC,CAAC,CAACJ,cAAc;AAE/B,MAAMK,WAAW,GAAG,oBAAoB;AAExC,MAAMC,MAAM,GAAG,IAAIC,GAAG,CAAC,CACrB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,EAER,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,CACT,CAAC;AAEF,MAAMC,KAAK,GAAG,CAAC,CAAC;AAahB,SAASC,UAAUA,CAACC,KAAK,EAAEC,IAAI,GAAG,KAAK,EAAE;EACvC,OAAOD,KAAK,CAACE,MAAM,GAAG,CAAC,GACnBF,KAAK,CAACG,IAAI,CAAC,IAAIF,IAAI,GAAG,CAAC,GACvB,GAAGD,KAAK,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACD,IAAI,CAAC,IAAI,CAAC,KAAKF,IAAI,IAAID,KAAK,CAACA,KAAK,CAACE,MAAM,GAAG,CAAC,CAAC,EAAE;AAC5E;AAGA,MAAMG,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;AAC1B,MAAMC,kBAAkB,GAAG,kBAAkB;AAE7C,IAAIC,mBAAmB;AAEvBV,KAAK,CAACW,oBAAoB,GAAGC,WAAW,CACtC,sBAAsB,EAMtB,CAACC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,KAAK;EAC1BC,QAAKA,CAAC,CAAC,OAAOH,IAAI,KAAK,QAAQ,EAAE,yBAAyB,CAAC;EAC3D,IAAI,CAACI,KAAK,CAACC,OAAO,CAACJ,QAAQ,CAAC,EAAE;IAC5BA,QAAQ,GAAG,CAACA,QAAQ,CAAC;EACvB;EAEA,IAAIK,OAAO,GAAG,MAAM;EACpB,IAAIN,IAAI,CAACO,QAAQ,CAAC,WAAW,CAAC,EAAE;IAE9BD,OAAO,IAAI,GAAGN,IAAI,GAAG;EACvB,CAAC,MAAM;IACL,MAAMV,IAAI,GAAGU,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,GAAG,UAAU;IACzDF,OAAO,IAAI,IAAIN,IAAI,KAAKV,IAAI,GAAG;EACjC;EAEAgB,OAAO,IAAI,UAAU;EAGrB,MAAMG,KAAK,GAAG,EAAE;EAEhB,MAAMC,SAAS,GAAG,EAAE;EAEpB,MAAMC,KAAK,GAAG,EAAE;EAEhB,KAAK,MAAMC,KAAK,IAAIX,QAAQ,EAAE;IAC5BE,QAAKA,CAAC,CACJ,OAAOS,KAAK,KAAK,QAAQ,EACzB,gDACF,CAAC;IAED,IAAI3B,MAAM,CAACf,GAAG,CAAC0C,KAAK,CAAC,EAAE;MACrBH,KAAK,CAACI,IAAI,CAACD,KAAK,CAACE,WAAW,CAAC,CAAC,CAAC;IACjC,CAAC,MAAM,IAAI9B,WAAW,CAAC+B,IAAI,CAACH,KAAK,CAAC,KAAK,IAAI,EAAE;MAC3CT,QAAKA,CAAC,CACJS,KAAK,KAAK,QAAQ,EAClB,kDACF,CAAC;MACDD,KAAK,CAACE,IAAI,CAACD,KAAK,CAAC;IACnB,CAAC,MAAM;MACLF,SAAS,CAACG,IAAI,CAACD,KAAK,CAAC;IACvB;EACF;EAIA,IAAIF,SAAS,CAACnB,MAAM,GAAG,CAAC,EAAE;IACxB,MAAMyB,GAAG,GAAGP,KAAK,CAACQ,OAAO,CAAC,QAAQ,CAAC;IACnC,IAAID,GAAG,KAAK,CAAC,CAAC,EAAE;MACdP,KAAK,CAAChB,KAAK,CAACuB,GAAG,EAAE,CAAC,CAAC;MACnBN,SAAS,CAACG,IAAI,CAAC,QAAQ,CAAC;IAC1B;EACF;EAEA,IAAIJ,KAAK,CAAClB,MAAM,GAAG,CAAC,EAAE;IACpBe,OAAO,IAAI,GAAGG,KAAK,CAAClB,MAAM,GAAG,CAAC,GAAG,aAAa,GAAG,SAAS,IAAIH,UAAU,CACtEqB,KAAK,EACL,IACF,CAAC,EAAE;IACH,IAAIC,SAAS,CAACnB,MAAM,GAAG,CAAC,IAAIoB,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAEe,OAAO,IAAI,MAAM;EACjE;EAEA,IAAII,SAAS,CAACnB,MAAM,GAAG,CAAC,EAAE;IACxBe,OAAO,IAAI,kBAAkBlB,UAAU,CAACsB,SAAS,EAAE,IAAI,CAAC,EAAE;IAC1D,IAAIC,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAEe,OAAO,IAAI,MAAM;EACzC;EAEA,IAAIK,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAE;IACpB,IAAIoB,KAAK,CAACpB,MAAM,GAAG,CAAC,EAAE;MACpBe,OAAO,IAAI,UAAUlB,UAAU,CAACuB,KAAK,EAAE,IAAI,CAAC,EAAE;IAChD,CAAC,MAAM;MACL,IAAIA,KAAK,CAAC,CAAC,CAAC,CAACG,WAAW,CAAC,CAAC,KAAKH,KAAK,CAAC,CAAC,CAAC,EAAEL,OAAO,IAAI,KAAK;MACzDA,OAAO,IAAI,GAAGK,KAAK,CAAC,CAAC,CAAC,EAAE;IAC1B;EACF;EAEAL,OAAO,IAAI,cAAcY,qBAAqB,CAAChB,MAAM,CAAC,EAAE;EAExD,OAAOI,OAAO;AAChB,CAAC,EACDa,SACF,CAAC;AAEDhC,KAAK,CAACiC,4BAA4B,GAAGrB,WAAW,CAC9C,8BAA8B,EAM9B,CAACsB,OAAO,EAAEC,MAAM,EAAEC,IAAI,GAAGC,SAAS,KAAK;EACrC,OAAO,mBAAmBH,OAAO,KAAKC,MAAM,GAC1CC,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;AACJ,CAAC,EACDJ,SACF,CAAC;AAEDhC,KAAK,CAACsC,0BAA0B,GAAG1B,WAAW,CAC5C,4BAA4B,EAM5B,CAAC2B,IAAI,EAAEH,IAAI,EAAEjB,OAAO,KAAK;EACvB,OAAO,0BAA0BoB,IAAI,GACnCH,IAAI,GAAG,oBAAoBA,IAAI,EAAE,GAAG,EAAE,GACrCjB,OAAO,GAAG,KAAKA,OAAO,EAAE,GAAG,EAAE,EAAE;AACpC,CAAC,EACDqB,KACF,CAAC;AAEDxC,KAAK,CAACyC,0BAA0B,GAAG7B,WAAW,CAC5C,4BAA4B,EAQ5B,CAAC8B,WAAW,EAAEC,GAAG,EAAEC,MAAM,EAAEC,QAAQ,GAAG,KAAK,EAAET,IAAI,GAAGC,SAAS,KAAK;EAChE,MAAMS,YAAY,GAChB,OAAOF,MAAM,KAAK,QAAQ,IAC1B,CAACC,QAAQ,IACTD,MAAM,CAACxC,MAAM,GAAG,CAAC,IACjB,CAACwC,MAAM,CAACG,UAAU,CAAC,IAAI,CAAC;EAC1B,IAAIJ,GAAG,KAAK,GAAG,EAAE;IACf3B,QAAKA,CAAC,CAAC6B,QAAQ,KAAK,KAAK,CAAC;IAC1B,OACE,iCAAiCG,IAAI,CAACC,SAAS,CAACL,MAAM,CAAC,WAAW,GAClE,yBAAyBF,WAAW,eAClCN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,GACnCU,YAAY,GAAG,gCAAgC,GAAG,EAAE,EAAE;EAE7D;EAEA,OAAO,YACLD,QAAQ,GAAG,SAAS,GAAG,SAAS,YACtBG,IAAI,CAACC,SAAS,CACxBL,MACF,CAAC,iBAAiBD,GAAG,2BAA2BD,WAAW,eACzDN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,GACnCU,YAAY,GAAG,gCAAgC,GAAG,EAAE,EAAE;AAC3D,CAAC,EACDN,KACF,CAAC;AAEDxC,KAAK,CAACkD,oBAAoB,GAAGtC,WAAW,CACtC,sBAAsB,EAMtB,CAAC2B,IAAI,EAAEH,IAAI,EAAEe,QAAQ,GAAG,KAAK,KAAK;EAChC,OAAO,eACLA,QAAQ,GAAG,QAAQ,GAAG,SAAS,KAC5BZ,IAAI,mBAAmBH,IAAI,EAAE;AACpC,CAAC,EACDI,KACF,CAAC;AAEDxC,KAAK,CAACoD,6BAA6B,GAAGxC,WAAW,CAC/C,+BAA+B,EAC/B,2CAA2C,EAC3C4B,KACF,CAAC;AAEDxC,KAAK,CAACqD,8BAA8B,GAAGzC,WAAW,CAChD,gCAAgC,EAMhC,CAAC0C,SAAS,EAAEZ,WAAW,EAAEN,IAAI,KAAK;EAChC,OAAO,6BAA6BkB,SAAS,mBAC3CZ,WAAW,GAAG,eAAeA,WAAW,cAAc,GAAG,EAAE,kBAC3CN,IAAI,EAAE;AAC1B,CAAC,EACDJ,SACF,CAAC;AAEDhC,KAAK,CAACuD,6BAA6B,GAAG3C,WAAW,CAC/C,+BAA+B,EAM/B,CAAC8B,WAAW,EAAEc,OAAO,EAAEpB,IAAI,GAAGC,SAAS,KAAK;EAC1C,IAAImB,OAAO,KAAK,GAAG,EACjB,OAAO,gCAAgCd,WAAW,eAChDN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;EACJ,OAAO,oBAAoBoB,OAAO,oCAAoCd,WAAW,eAC/EN,IAAI,GAAG,kBAAkBA,IAAI,EAAE,GAAG,EAAE,EACpC;AACJ,CAAC,EACDI,KACF,CAAC;AAEDxC,KAAK,CAACyD,0BAA0B,GAAG7C,WAAW,CAC5C,4BAA4B,EAC5B,yCAAyC,GACvC,uCAAuC,EACzC4B,KACF,CAAC;AAEDxC,KAAK,CAAC0D,+BAA+B,GAAG9C,WAAW,CACjD,iCAAiC,EACjC,6GAA6G,EAC7GoB,SACF,CAAC;AAEDhC,KAAK,CAAC2D,0BAA0B,GAAG/C,WAAW,CAC5C,4BAA4B,EAK5B,CAACgD,SAAS,EAAErB,IAAI,KAAK;EACnB,OAAO,2BAA2BqB,SAAS,SAASrB,IAAI,EAAE;AAC5D,CAAC,EACDP,SACF,CAAC;AAEDhC,KAAK,CAAC6D,qBAAqB,GAAGjD,WAAW,CACvC,uBAAuB,EAMvB,CAACC,IAAI,EAAEY,KAAK,EAAEU,MAAM,GAAG,YAAY,KAAK;EACtC,IAAI2B,SAAS,GAAG,IAAAC,eAAO,EAACtC,KAAK,CAAC;EAE9B,IAAIqC,SAAS,CAAC1D,MAAM,GAAG,GAAG,EAAE;IAC1B0D,SAAS,GAAG,GAAGA,SAAS,CAACxD,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK;EAC7C;EAEA,MAAMH,IAAI,GAAGU,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,GAAG,UAAU,GAAG,UAAU;EAEzD,OAAO,OAAOlB,IAAI,KAAKU,IAAI,KAAKsB,MAAM,cAAc2B,SAAS,EAAE;AACjE,CAAC,EACD9B,SAGF,CAAC;AAUD,SAASpB,WAAWA,CAACoD,GAAG,EAAEvC,KAAK,EAAEwC,WAAW,EAAE;EAG5C1D,QAAQ,CAACZ,GAAG,CAACqE,GAAG,EAAEvC,KAAK,CAAC;EAExB,OAAOyC,qBAAqB,CAACD,WAAW,EAAED,GAAG,CAAC;AAChD;AAOA,SAASE,qBAAqBA,CAACC,IAAI,EAAExB,GAAG,EAAE;EAExC,OAAOyB,SAAS;EAIhB,SAASA,SAASA,CAAC,GAAGC,UAAU,EAAE;IAChC,MAAMC,KAAK,GAAG9B,KAAK,CAAC+B,eAAe;IACnC,IAAIC,8BAA8B,CAAC,CAAC,EAAEhC,KAAK,CAAC+B,eAAe,GAAG,CAAC;IAC/D,MAAME,KAAK,GAAG,IAAIN,IAAI,CAAC,CAAC;IAExB,IAAIK,8BAA8B,CAAC,CAAC,EAAEhC,KAAK,CAAC+B,eAAe,GAAGD,KAAK;IACnE,MAAMnD,OAAO,GAAGuD,UAAU,CAAC/B,GAAG,EAAE0B,UAAU,EAAEI,KAAK,CAAC;IAClDrF,MAAM,CAACuF,gBAAgB,CAACF,KAAK,EAAE;MAG7BtD,OAAO,EAAE;QACPM,KAAK,EAAEN,OAAO;QACdyD,UAAU,EAAE,KAAK;QACjBC,QAAQ,EAAE,IAAI;QACdC,YAAY,EAAE;MAChB,CAAC;MACDC,QAAQ,EAAE;QAERtD,KAAKA,CAAA,EAAG;UACN,OAAO,GAAG,IAAI,CAACZ,IAAI,KAAK8B,GAAG,MAAM,IAAI,CAACxB,OAAO,EAAE;QACjD,CAAC;QACDyD,UAAU,EAAE,KAAK;QACjBC,QAAQ,EAAE,IAAI;QACdC,YAAY,EAAE;MAChB;IACF,CAAC,CAAC;IAEFE,uBAAuB,CAACP,KAAK,CAAC;IAE9BA,KAAK,CAACQ,IAAI,GAAGtC,GAAG;IAChB,OAAO8B,KAAK;EACd;AACF;AAKA,SAASD,8BAA8BA,CAAA,EAAG;EAGxC,IAAI;IACF,IAAIU,GAACA,CAAC,CAACC,eAAe,CAACC,kBAAkB,CAAC,CAAC,EAAE;MAC3C,OAAO,KAAK;IACd;EACF,CAAC,CAAC,OAAAC,OAAA,EAAM,CAAC;EAET,MAAMC,IAAI,GAAGlG,MAAM,CAACE,wBAAwB,CAACkD,KAAK,EAAE,iBAAiB,CAAC;EACtE,IAAI8C,IAAI,KAAKjD,SAAS,EAAE;IACtB,OAAOjD,MAAM,CAACmG,YAAY,CAAC/C,KAAK,CAAC;EACnC;EAEA,OAAO5C,KAAK,CAACH,IAAI,CAAC6F,IAAI,EAAE,UAAU,CAAC,IAAIA,IAAI,CAACT,QAAQ,KAAKxC,SAAS,GAC9DiD,IAAI,CAACT,QAAQ,GACbS,IAAI,CAAC3F,GAAG,KAAK0C,SAAS;AAC5B;AAQA,SAASmD,eAAeA,CAACC,eAAe,EAAE;EAGxC,MAAMC,MAAM,GAAGjF,kBAAkB,GAAGgF,eAAe,CAAC5E,IAAI;EACxDzB,MAAM,CAACC,cAAc,CAACoG,eAAe,EAAE,MAAM,EAAE;IAAChE,KAAK,EAAEiE;EAAM,CAAC,CAAC;EAC/D,OAAOD,eAAe;AACxB;AAEA,MAAMT,uBAAuB,GAAGQ,eAAe,CAM7C,UAAUf,KAAK,EAAE;EACf,MAAMkB,yBAAyB,GAAGnB,8BAA8B,CAAC,CAAC;EAClE,IAAImB,yBAAyB,EAAE;IAC7BjF,mBAAmB,GAAG8B,KAAK,CAAC+B,eAAe;IAC3C/B,KAAK,CAAC+B,eAAe,GAAGqB,MAAM,CAACC,iBAAiB;EAClD;EAEArD,KAAK,CAACsD,iBAAiB,CAACrB,KAAK,CAAC;EAG9B,IAAIkB,yBAAyB,EAAEnD,KAAK,CAAC+B,eAAe,GAAG7D,mBAAmB;EAE1E,OAAO+D,KAAK;AACd,CACF,CAAC;AAQD,SAASC,UAAUA,CAAC/B,GAAG,EAAE0B,UAAU,EAAE0B,IAAI,EAAE;EACzC,MAAM5E,OAAO,GAAGZ,QAAQ,CAACvB,GAAG,CAAC2D,GAAG,CAAC;EACjC3B,QAAKA,CAAC,CAACG,OAAO,KAAKkB,SAAS,EAAE,gCAAgC,CAAC;EAE/D,IAAI,OAAOlB,OAAO,KAAK,UAAU,EAAE;IACjCH,QAAKA,CAAC,CACJG,OAAO,CAACf,MAAM,IAAIiE,UAAU,CAACjE,MAAM,EACnC,SAASuC,GAAG,oCAAoC0B,UAAU,CAACjE,MAAM,aAAa,GAC5E,4BAA4Be,OAAO,CAACf,MAAM,IAC9C,CAAC;IACD,OAAO4F,OAAO,CAACC,KAAK,CAAC9E,OAAO,EAAE4E,IAAI,EAAE1B,UAAU,CAAC;EACjD;EAEA,MAAM6B,KAAK,GAAG,aAAa;EAC3B,IAAIC,cAAc,GAAG,CAAC;EACtB,OAAOD,KAAK,CAACtE,IAAI,CAACT,OAAO,CAAC,KAAK,IAAI,EAAEgF,cAAc,EAAE;EACrDnF,QAAKA,CAAC,CACJmF,cAAc,KAAK9B,UAAU,CAACjE,MAAM,EACpC,SAASuC,GAAG,oCAAoC0B,UAAU,CAACjE,MAAM,aAAa,GAC5E,4BAA4B+F,cAAc,IAC9C,CAAC;EACD,IAAI9B,UAAU,CAACjE,MAAM,KAAK,CAAC,EAAE,OAAOe,OAAO;EAE3CkD,UAAU,CAAC+B,OAAO,CAACjF,OAAO,CAAC;EAC3B,OAAO6E,OAAO,CAACC,KAAK,CAACI,cAAM,EAAE,IAAI,EAAEhC,UAAU,CAAC;AAChD;AAOA,SAAStC,qBAAqBA,CAACN,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKY,SAAS,EAAE;IACzC,OAAOiE,MAAM,CAAC7E,KAAK,CAAC;EACtB;EAEA,IAAI,OAAOA,KAAK,KAAK,UAAU,IAAIA,KAAK,CAACZ,IAAI,EAAE;IAC7C,OAAO,YAAYY,KAAK,CAACZ,IAAI,EAAE;EACjC;EAEA,IAAI,OAAOY,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,CAACwC,WAAW,IAAIxC,KAAK,CAACwC,WAAW,CAACpD,IAAI,EAAE;MAC/C,OAAO,kBAAkBY,KAAK,CAACwC,WAAW,CAACpD,IAAI,EAAE;IACnD;IAEA,OAAO,GAAG,IAAAkD,eAAO,EAACtC,KAAK,EAAE;MAAC8E,KAAK,EAAE,CAAC;IAAC,CAAC,CAAC,EAAE;EACzC;EAEA,IAAIzC,SAAS,GAAG,IAAAC,eAAO,EAACtC,KAAK,EAAE;IAAC+E,MAAM,EAAE;EAAK,CAAC,CAAC;EAE/C,IAAI1C,SAAS,CAAC1D,MAAM,GAAG,EAAE,EAAE;IACzB0D,SAAS,GAAG,GAAGA,SAAS,CAACxD,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK;EAC5C;EAEA,OAAO,QAAQ,OAAOmB,KAAK,KAAKqC,SAAS,GAAG;AAC9C;AASA,MAAM2C,gBAAgB,GAAG,CAAC,CAAC,CAACjH,cAAc;AAE1C,MAAM;EAAC8C,0BAA0B,EAAEoE;AAA4B,CAAC,GAAG1G,KAAK;AAGxE,MAAM2G,KAAK,GAAG,IAAInG,GAAG,CAAC,CAAC;AAOvB,SAASoG,IAAIA,CAACC,QAAQ,EAAE;EAACzE,IAAI;EAAEkB;AAAS,CAAC,EAAE;EACzC,MAAMwD,QAAQ,GAAGH,KAAK,CAAC3H,GAAG,CAAC6H,QAAQ,CAAC;EAEpC,IAAIC,QAAQ,EAAE;IACZ,OAAOA,QAAQ;EACjB;EAGA,IAAIC,MAAM;EAEV,IAAI;IACFA,MAAM,GAAGC,aAAE,CAACC,YAAY,CAAC1E,MAAGA,CAAC,CAAC2E,gBAAgB,CAACL,QAAQ,CAAC,EAAE,MAAM,CAAC;EACnE,CAAC,CAAC,OAAOpC,KAAK,EAAE;IACd,MAAM0C,SAAS,GAAkC1C,KAAM;IAEvD,IAAI0C,SAAS,CAAClC,IAAI,KAAK,QAAQ,EAAE;MAC/B,MAAMkC,SAAS;IACjB;EACF;EAGA,MAAMC,MAAM,GAAG;IACbC,MAAM,EAAE,KAAK;IACbC,SAAS,EAAET,QAAQ;IACnBU,IAAI,EAAElF,SAAS;IACfxB,IAAI,EAAEwB,SAAS;IACflC,IAAI,EAAE,MAAM;IACZqH,OAAO,EAAEnF,SAAS;IAClBoF,OAAO,EAAEpF;EACX,CAAC;EAED,IAAI0E,MAAM,KAAK1E,SAAS,EAAE;IAExB,IAAIqF,MAAM;IAEV,IAAI;MACFA,MAAM,GAAG1E,IAAI,CAAC2E,KAAK,CAACZ,MAAM,CAAC;IAC7B,CAAC,CAAC,OAAOa,MAAM,EAAE;MACf,MAAMC,KAAK,GAAkCD,MAAO;MACpD,MAAMnD,KAAK,GAAG,IAAIiC,4BAA4B,CAC5CG,QAAQ,EACR,CAACzE,IAAI,GAAG,IAAIkB,SAAS,SAAS,GAAG,EAAE,IAAI,IAAAwE,oBAAa,EAAC1F,IAAI,IAAIkB,SAAS,CAAC,EACvEuE,KAAK,CAAC1G,OACR,CAAC;MACDsD,KAAK,CAACoD,KAAK,GAAGA,KAAK;MACnB,MAAMpD,KAAK;IACb;IAEA2C,MAAM,CAACC,MAAM,GAAG,IAAI;IAEpB,IACEZ,gBAAgB,CAAChH,IAAI,CAACiI,MAAM,EAAE,MAAM,CAAC,IACrC,OAAOA,MAAM,CAAC7G,IAAI,KAAK,QAAQ,EAC/B;MACAuG,MAAM,CAACvG,IAAI,GAAG6G,MAAM,CAAC7G,IAAI;IAC3B;IAEA,IACE4F,gBAAgB,CAAChH,IAAI,CAACiI,MAAM,EAAE,MAAM,CAAC,IACrC,OAAOA,MAAM,CAACH,IAAI,KAAK,QAAQ,EAC/B;MACAH,MAAM,CAACG,IAAI,GAAGG,MAAM,CAACH,IAAI;IAC3B;IAEA,IAAId,gBAAgB,CAAChH,IAAI,CAACiI,MAAM,EAAE,SAAS,CAAC,EAAE;MAE5CN,MAAM,CAACI,OAAO,GAAGE,MAAM,CAACF,OAAO;IACjC;IAEA,IAAIf,gBAAgB,CAAChH,IAAI,CAACiI,MAAM,EAAE,SAAS,CAAC,EAAE;MAE5CN,MAAM,CAACK,OAAO,GAAGC,MAAM,CAACD,OAAO;IACjC;IAGA,IACEhB,gBAAgB,CAAChH,IAAI,CAACiI,MAAM,EAAE,MAAM,CAAC,KACpCA,MAAM,CAACvH,IAAI,KAAK,UAAU,IAAIuH,MAAM,CAACvH,IAAI,KAAK,QAAQ,CAAC,EACxD;MACAiH,MAAM,CAACjH,IAAI,GAAGuH,MAAM,CAACvH,IAAI;IAC3B;EACF;EAEAwG,KAAK,CAAChH,GAAG,CAACkH,QAAQ,EAAEO,MAAM,CAAC;EAE3B,OAAOA,MAAM;AACf;AAMA,SAASW,qBAAqBA,CAACC,QAAQ,EAAE;EAEvC,IAAIC,cAAc,GAAG,IAAIC,GAAG,CAAC,cAAc,EAAEF,QAAQ,CAAC;EAEtD,OAAO,IAAI,EAAE;IACX,MAAMG,eAAe,GAAGF,cAAc,CAACG,QAAQ;IAC/C,IAAID,eAAe,CAAC/G,QAAQ,CAAC,2BAA2B,CAAC,EAAE;MACzD;IACF;IAEA,MAAMiH,aAAa,GAAGzB,IAAI,CAAC,IAAAkB,oBAAa,EAACG,cAAc,CAAC,EAAE;MACxD3E,SAAS,EAAE0E;IACb,CAAC,CAAC;IAEF,IAAIK,aAAa,CAAChB,MAAM,EAAE;MACxB,OAAOgB,aAAa;IACtB;IAEA,MAAMC,kBAAkB,GAAGL,cAAc;IACzCA,cAAc,GAAG,IAAIC,GAAG,CAAC,iBAAiB,EAAED,cAAc,CAAC;IAI3D,IAAIA,cAAc,CAACG,QAAQ,KAAKE,kBAAkB,CAACF,QAAQ,EAAE;MAC3D;IACF;EACF;EAEA,MAAMD,eAAe,GAAG,IAAAL,oBAAa,EAACG,cAAc,CAAC;EAGrD,OAAO;IACLX,SAAS,EAAEa,eAAe;IAC1Bd,MAAM,EAAE,KAAK;IACblH,IAAI,EAAE;EACR,CAAC;AACH;AAOA,SAASoI,cAAcA,CAACC,GAAG,EAAE;EAE3B,OAAOT,qBAAqB,CAACS,GAAG,CAAC,CAACrI,IAAI;AACxC;AAOA,MAAM;EAACwD;AAA0B,CAAC,GAAG3D,KAAK;AAE1C,MAAMR,cAAc,GAAG,CAAC,CAAC,CAACA,cAAc;AAGxC,MAAMiJ,kBAAkB,GAAG;EAEzBvJ,SAAS,EAAE,IAAI;EACf,MAAM,EAAE,UAAU;EAClB,KAAK,EAAE,QAAQ;EACf,OAAO,EAAE,MAAM;EACf,MAAM,EAAE;AACV,CAAC;AAMD,SAASwJ,YAAYA,CAACC,IAAI,EAAE;EAC1B,IACEA,IAAI,IACJ,+DAA+D,CAACC,IAAI,CAACD,IAAI,CAAC,EAE1E,OAAO,QAAQ;EACjB,IAAIA,IAAI,KAAK,kBAAkB,EAAE,OAAO,MAAM;EAC9C,OAAO,IAAI;AACb;AAaA,MAAME,gBAAgB,GAAG;EAEvB3J,SAAS,EAAE,IAAI;EACf,OAAO,EAAE4J,2BAA2B;EACpC,OAAO,EAAEC,2BAA2B;EACpC,OAAO,EAAEC,2BAA2B;EACpC,QAAQ,EAAEA,2BAA2B;EACrC,OAAOC,CAAA,EAAG;IACR,OAAO,SAAS;EAClB;AACF,CAAC;AAKD,SAASH,2BAA2BA,CAACpB,MAAM,EAAE;EAC3C,MAAM;IAAC,CAAC,EAAEiB;EAAI,CAAC,GAAG,mCAAmC,CAAC/G,IAAI,CACxD8F,MAAM,CAACU,QACT,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;EACvB,OAAOM,YAAY,CAACC,IAAI,CAAC;AAC3B;AAYA,SAASO,OAAOA,CAACV,GAAG,EAAE;EACpB,MAAMJ,QAAQ,GAAGI,GAAG,CAACJ,QAAQ;EAC7B,IAAIe,KAAK,GAAGf,QAAQ,CAAChI,MAAM;EAE3B,OAAO+I,KAAK,EAAE,EAAE;IACd,MAAMlE,IAAI,GAAGmD,QAAQ,CAACgB,WAAW,CAACD,KAAK,CAAC;IAExC,IAAIlE,IAAI,KAAK,EAAE,EAAY;MACzB,OAAO,EAAE;IACX;IAEA,IAAIA,IAAI,KAAK,EAAE,EAAY;MACzB,OAAOmD,QAAQ,CAACgB,WAAW,CAACD,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE,GACzC,EAAE,GACFf,QAAQ,CAAC9H,KAAK,CAAC6I,KAAK,CAAC;IAC3B;EACF;EAEA,OAAO,EAAE;AACX;AAKA,SAASJ,2BAA2BA,CAACP,GAAG,EAAEa,QAAQ,EAAEC,YAAY,EAAE;EAChE,MAAM7H,KAAK,GAAGyH,OAAO,CAACV,GAAG,CAAC;EAE1B,IAAI/G,KAAK,KAAK,KAAK,EAAE;IACnB,MAAM8H,WAAW,GAAGhB,cAAc,CAACC,GAAG,CAAC;IAEvC,IAAIe,WAAW,KAAK,MAAM,EAAE;MAC1B,OAAOA,WAAW;IACpB;IAEA,OAAO,UAAU;EACnB;EAEA,IAAI9H,KAAK,KAAK,EAAE,EAAE;IAChB,MAAM8H,WAAW,GAAGhB,cAAc,CAACC,GAAG,CAAC;IAGvC,IAAIe,WAAW,KAAK,MAAM,IAAIA,WAAW,KAAK,UAAU,EAAE;MACxD,OAAO,UAAU;IACnB;IAIA,OAAO,QAAQ;EACjB;EAEA,MAAMlD,MAAM,GAAGoC,kBAAkB,CAAChH,KAAK,CAAC;EACxC,IAAI4E,MAAM,EAAE,OAAOA,MAAM;EAGzB,IAAIiD,YAAY,EAAE;IAChB,OAAOjH,SAAS;EAClB;EAEA,MAAMmH,QAAQ,GAAG,IAAA1B,oBAAa,EAACU,GAAG,CAAC;EACnC,MAAM,IAAI7E,0BAA0B,CAAClC,KAAK,EAAE+H,QAAQ,CAAC;AACvD;AAEA,SAASR,2BAA2BA,CAAA,EAAG,CAEvC;AAOA,SAASS,6BAA6BA,CAACjB,GAAG,EAAEkB,OAAO,EAAE;EACnD,MAAMC,QAAQ,GAAGnB,GAAG,CAACmB,QAAQ;EAE7B,IAAI,CAACnK,cAAc,CAACC,IAAI,CAACoJ,gBAAgB,EAAEc,QAAQ,CAAC,EAAE;IACpD,OAAO,IAAI;EACb;EAEA,OAAOd,gBAAgB,CAACc,QAAQ,CAAC,CAACnB,GAAG,EAAEkB,OAAO,EAAE,IAAI,CAAC,IAAI,IAAI;AAC/D;AAOA,MAAM;EAAC7F;AAAqB,CAAC,GAAG7D,KAAK;AAKrC,MAAM4J,kBAAkB,GAAGxK,MAAM,CAACyK,MAAM,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC5D,MAAMC,sBAAsB,GAAG,IAAI/J,GAAG,CAAC6J,kBAAkB,CAAC;AAK1D,SAASG,oBAAoBA,CAAA,EAAG;EAC9B,OAAOH,kBAAkB;AAC3B;AAKA,SAASI,uBAAuBA,CAAA,EAAG;EACjC,OAAOF,sBAAsB;AAC/B;AAMA,SAASG,gBAAgBA,CAACC,UAAU,EAAE;EACpC,IAAIA,UAAU,KAAK7H,SAAS,IAAI6H,UAAU,KAAKH,oBAAoB,CAAC,CAAC,EAAE;IACrE,IAAI,CAAC9I,KAAK,CAACC,OAAO,CAACgJ,UAAU,CAAC,EAAE;MAC9B,MAAM,IAAIrG,qBAAqB,CAC7B,YAAY,EACZqG,UAAU,EACV,mBACF,CAAC;IACH;IAEA,OAAO,IAAInK,GAAG,CAACmK,UAAU,CAAC;EAC5B;EAEA,OAAOF,uBAAuB,CAAC,CAAC;AAClC;AAOA,MAAMG,4BAA4B,GAAGC,MAAM,CAACC,SAAS,CAACC,MAAM,CAACC,OAAO,CAAC;AAErE,MAAM;EACJnH,6BAA6B;EAC7BnB,4BAA4B;EAC5BK,0BAA0B;EAC1BG,0BAA0B;EAC1BS,oBAAoB;EACpBG,8BAA8B;EAC9BE,6BAA6B;EAC7BE,0BAA0B;EAC1BC;AACF,CAAC,GAAG1D,KAAK;AAET,MAAMwK,GAAG,GAAG,CAAC,CAAC,CAAChL,cAAc;AAE7B,MAAMiL,mBAAmB,GACvB,0KAA0K;AAC5K,MAAMC,6BAA6B,GACjC,yKAAyK;AAC3K,MAAMC,uBAAuB,GAAG,UAAU;AAC1C,MAAMC,YAAY,GAAG,KAAK;AAC1B,MAAMC,qBAAqB,GAAG,UAAU;AAExC,MAAMC,sBAAsB,GAAG,IAAI/K,GAAG,CAAC,CAAC;AAExC,MAAMgL,gBAAgB,GAAG,UAAU;AAYnC,SAASC,6BAA6BA,CACpCpI,MAAM,EACNV,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJgJ,QAAQ,EACR;EAEA,IAAIC,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMhE,SAAS,GAAG,IAAAQ,oBAAa,EAACoD,cAAc,CAAC;EAC/C,MAAMK,MAAM,GAAGR,gBAAgB,CAACnJ,IAAI,CAACwJ,QAAQ,GAAGxI,MAAM,GAAGV,OAAO,CAAC,KAAK,IAAI;EAC1EmJ,SAAMA,CAAC,CAACG,WAAW,CACjB,qBACED,MAAM,GAAG,cAAc,GAAG,oCAAoC,eACjD3I,MAAM,eAAe,GAClC,YAAYV,OAAO,KACjBA,OAAO,KAAK+I,KAAK,GAAG,EAAE,GAAG,eAAeA,KAAK,IAAI,WAEjDE,QAAQ,GAAG,SAAS,GAAG,SAAS,+CACa7D,SAAS,GACtDlF,IAAI,GAAG,kBAAkB,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAAE,GAAG,EAAE,GAClD,EACL,oBAAoB,EACpB,SACF,CAAC;AACH;AASA,SAASqJ,0BAA0BA,CAACjD,GAAG,EAAE0C,cAAc,EAAE9I,IAAI,EAAEmF,IAAI,EAAE;EAEnE,IAAI8D,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMjF,MAAM,GAAGoD,6BAA6B,CAACjB,GAAG,EAAE;IAACkD,SAAS,EAAEtJ,IAAI,CAACuJ;EAAI,CAAC,CAAC;EACzE,IAAItF,MAAM,KAAK,QAAQ,EAAE;EACzB,MAAMuF,OAAO,GAAG,IAAA9D,oBAAa,EAACU,GAAG,CAACmD,IAAI,CAAC;EACvC,MAAMjJ,WAAW,GAAG,IAAAoF,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC;EACjE,MAAMY,QAAQ,GAAG,IAAAhE,oBAAa,EAAC1F,IAAI,CAAC;EACpC,IAAI,CAACmF,IAAI,EAAE;IACT8D,SAAMA,CAAC,CAACG,WAAW,CACjB,gEAAgE9I,WAAW,oCAAoCkJ,OAAO,CAACtL,KAAK,CAC1HoC,WAAW,CAACtC,MACd,CAAC,oBAAoB0L,QAAQ,wEAAwE,EACrG,oBAAoB,EACpB,SACF,CAAC;EACH,CAAC,MAAM,IAAIvJ,MAAGA,CAAC,CAACwJ,OAAO,CAACrJ,WAAW,EAAE6E,IAAI,CAAC,KAAKqE,OAAO,EAAE;IACtDP,SAAMA,CAAC,CAACG,WAAW,CACjB,WAAW9I,WAAW,+BAA+B6E,IAAI,KAAK,GAC5D,sEAAsEqE,OAAO,CAACtL,KAAK,CACjFoC,WAAW,CAACtC,MACd,CAAC,oBAAoB0L,QAAQ,4DAA4D,GACzF,4BAA4B,EAC9B,oBAAoB,EACpB,SACF,CAAC;EACH;AACF;AAMA,SAASE,WAAWA,CAACzJ,IAAI,EAAE;EAEzB,IAAI;IACF,OAAO,IAAA0J,cAAQ,EAAC1J,IAAI,CAAC;EACvB,CAAC,CAAC,OAAA2J,QAAA,EAAM,CAKR;AACF;AAaA,SAASC,UAAUA,CAAC3D,GAAG,EAAE;EACvB,MAAM4D,KAAK,GAAG,IAAAH,cAAQ,EAACzD,GAAG,EAAE;IAAC6D,cAAc,EAAE;EAAK,CAAC,CAAC;EACpD,MAAMC,MAAM,GAAGF,KAAK,GAAGA,KAAK,CAACE,MAAM,CAAC,CAAC,GAAGjK,SAAS;EACjD,OAAOiK,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKjK,SAAS,GAAG,KAAK,GAAGiK,MAAM;AACjE;AAQA,SAASC,iBAAiBA,CAACrB,cAAc,EAAE7C,aAAa,EAAEjG,IAAI,EAAE;EAE9D,IAAIoK,KAAK;EACT,IAAInE,aAAa,CAACd,IAAI,KAAKlF,SAAS,EAAE;IACpCmK,KAAK,GAAG,KAAIX,UAAK,EAACxD,aAAa,CAACd,IAAI,EAAE2D,cAAc,CAAC;IAErD,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE,OAAOA,KAAK;IAEnC,MAAMC,KAAK,GAAG,CACZ,KAAKpE,aAAa,CAACd,IAAI,KAAK,EAC5B,KAAKc,aAAa,CAACd,IAAI,OAAO,EAC9B,KAAKc,aAAa,CAACd,IAAI,OAAO,EAC9B,KAAKc,aAAa,CAACd,IAAI,WAAW,EAClC,KAAKc,aAAa,CAACd,IAAI,aAAa,EACpC,KAAKc,aAAa,CAACd,IAAI,aAAa,CACrC;IACD,IAAI7H,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAG+M,KAAK,CAACrM,MAAM,EAAE;MACzBoM,KAAK,GAAG,KAAIX,UAAK,EAACY,KAAK,CAAC/M,CAAC,CAAC,EAAEwL,cAAc,CAAC;MAC3C,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE;MACvBA,KAAK,GAAGnK,SAAS;IACnB;IAEA,IAAImK,KAAK,EAAE;MACTf,0BAA0B,CACxBe,KAAK,EACLtB,cAAc,EACd9I,IAAI,EACJiG,aAAa,CAACd,IAChB,CAAC;MACD,OAAOiF,KAAK;IACd;EAEF;EAEA,MAAMC,KAAK,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,cAAc,CAAC;EAC5D,IAAI/M,CAAC,GAAG,CAAC,CAAC;EAEV,OAAO,EAAEA,CAAC,GAAG+M,KAAK,CAACrM,MAAM,EAAE;IACzBoM,KAAK,GAAG,KAAIX,UAAK,EAACY,KAAK,CAAC/M,CAAC,CAAC,EAAEwL,cAAc,CAAC;IAC3C,IAAIiB,UAAU,CAACK,KAAK,CAAC,EAAE;IACvBA,KAAK,GAAGnK,SAAS;EACnB;EAEA,IAAImK,KAAK,EAAE;IACTf,0BAA0B,CAACe,KAAK,EAAEtB,cAAc,EAAE9I,IAAI,EAAEiG,aAAa,CAACd,IAAI,CAAC;IAC3E,OAAOiF,KAAK;EACd;EAGA,MAAM,IAAItJ,oBAAoB,CAC5B,IAAA4E,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C,IAAApD,oBAAa,EAAC1F,IAAI,CACpB,CAAC;AACH;AAQA,SAASsK,kBAAkBA,CAAC1E,QAAQ,EAAE5F,IAAI,EAAEuK,gBAAgB,EAAE;EAC5D,IAAI9B,qBAAqB,CAACjJ,IAAI,CAACoG,QAAQ,CAACI,QAAQ,CAAC,KAAK,IAAI,EAAE;IAC1D,MAAM,IAAInG,4BAA4B,CACpC+F,QAAQ,CAACI,QAAQ,EACjB,iDAAiD,EACjD,IAAAN,oBAAa,EAAC1F,IAAI,CACpB,CAAC;EACH;EAGA,IAAIwK,QAAQ;EAEZ,IAAI;IACFA,QAAQ,GAAG,IAAA9E,oBAAa,EAACE,QAAQ,CAAC;EACpC,CAAC,CAAC,OAAOvD,KAAK,EAAE;IACd,MAAMoD,KAAK,GAAkCpD,KAAM;IACnDrF,MAAM,CAACC,cAAc,CAACwI,KAAK,EAAE,OAAO,EAAE;MAACpG,KAAK,EAAE6E,MAAM,CAAC0B,QAAQ;IAAC,CAAC,CAAC;IAChE5I,MAAM,CAACC,cAAc,CAACwI,KAAK,EAAE,QAAQ,EAAE;MAACpG,KAAK,EAAE6E,MAAM,CAAClE,IAAI;IAAC,CAAC,CAAC;IAC7D,MAAMyF,KAAK;EACb;EAEA,MAAMuE,KAAK,GAAGJ,WAAW,CACvBY,QAAQ,CAACxL,QAAQ,CAAC,GAAG,CAAC,GAAGwL,QAAQ,CAACtM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAGsM,QAChD,CAAC;EAED,IAAIR,KAAK,IAAIA,KAAK,CAACS,WAAW,CAAC,CAAC,EAAE;IAChC,MAAMpI,KAAK,GAAG,IAAIhB,0BAA0B,CAACmJ,QAAQ,EAAE,IAAA9E,oBAAa,EAAC1F,IAAI,CAAC,CAAC;IAE3EqC,KAAK,CAAC+D,GAAG,GAAGlC,MAAM,CAAC0B,QAAQ,CAAC;IAC5B,MAAMvD,KAAK;EACb;EAEA,IAAI,CAAC2H,KAAK,IAAI,CAACA,KAAK,CAACE,MAAM,CAAC,CAAC,EAAE;IAC7B,MAAM7H,KAAK,GAAG,IAAIvB,oBAAoB,CACpC0J,QAAQ,IAAI5E,QAAQ,CAACI,QAAQ,EAC7BhG,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAC3B,IACF,CAAC;IAEDqC,KAAK,CAAC+D,GAAG,GAAGlC,MAAM,CAAC0B,QAAQ,CAAC;IAC5B,MAAMvD,KAAK;EACb;EAEA,IAAI,CAACkI,gBAAgB,EAAE;IACrB,MAAMG,IAAI,GAAG,IAAAC,kBAAY,EAACH,QAAQ,CAAC;IACnC,MAAM;MAACI,MAAM;MAAEC;IAAI,CAAC,GAAGjF,QAAQ;IAC/BA,QAAQ,GAAG,IAAAkF,oBAAa,EAACJ,IAAI,IAAIF,QAAQ,CAACxL,QAAQ,CAACmB,MAAGA,CAAC,CAAC4K,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACzEnF,QAAQ,CAACgF,MAAM,GAAGA,MAAM;IACxBhF,QAAQ,CAACiF,IAAI,GAAGA,IAAI;EACtB;EAEA,OAAOjF,QAAQ;AACjB;AAQA,SAASoF,gBAAgBA,CAAC9J,SAAS,EAAE4H,cAAc,EAAE9I,IAAI,EAAE;EACzD,OAAO,IAAIiB,8BAA8B,CACvCC,SAAS,EACT4H,cAAc,IAAI,IAAApD,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC/D,IAAApD,oBAAa,EAAC1F,IAAI,CACpB,CAAC;AACH;AAQA,SAASiL,eAAeA,CAAC7J,OAAO,EAAE0H,cAAc,EAAE9I,IAAI,EAAE;EACtD,OAAO,IAAImB,6BAA6B,CACtC,IAAAuE,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C1H,OAAO,EACPpB,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAUA,SAASkL,mBAAmBA,CAACpL,OAAO,EAAE+I,KAAK,EAAEC,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,EAAE;EAC3E,MAAMD,MAAM,GAAG,4CAA4C8I,KAAK,cAC9DE,QAAQ,GAAG,SAAS,GAAG,SAAS,mBACf,IAAArD,oBAAa,EAACoD,cAAc,CAAC,EAAE;EAClD,MAAM,IAAIjJ,4BAA4B,CACpCC,OAAO,EACPC,MAAM,EACNC,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAUA,SAASmL,oBAAoBA,CAAC/J,OAAO,EAAEZ,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,EAAE;EAC7EQ,MAAM,GACJ,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,GACzCI,IAAI,CAACC,SAAS,CAACL,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,GAChC,GAAGA,MAAM,EAAE;EAEjB,OAAO,IAAIH,0BAA0B,CACnC,IAAAqF,oBAAa,EAAC,KAAI+D,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC,EAC7C1H,OAAO,EACPZ,MAAM,EACNuI,QAAQ,EACR/I,IAAI,IAAI,IAAA0F,oBAAa,EAAC1F,IAAI,CAC5B,CAAC;AACH;AAcA,SAASoL,0BAA0BA,CACjC5K,MAAM,EACNY,OAAO,EACPyH,KAAK,EACLC,cAAc,EACd9I,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UAAU,EACV;EACA,IAAI1G,OAAO,KAAK,EAAE,IAAI,CAACiK,OAAO,IAAI7K,MAAM,CAACA,MAAM,CAACxC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,EACjE,MAAMmN,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAE3E,IAAI,CAACQ,MAAM,CAACG,UAAU,CAAC,IAAI,CAAC,EAAE;IAC5B,IAAIoI,QAAQ,IAAI,CAACvI,MAAM,CAACG,UAAU,CAAC,KAAK,CAAC,IAAI,CAACH,MAAM,CAACG,UAAU,CAAC,GAAG,CAAC,EAAE;MACpE,IAAI4K,KAAK,GAAG,KAAK;MAEjB,IAAI;QACF,KAAI9B,UAAK,EAACjJ,MAAM,CAAC;QACjB+K,KAAK,GAAG,IAAI;MACd,CAAC,CAAC,OAAAC,QAAA,EAAM,CAER;MAEA,IAAI,CAACD,KAAK,EAAE;QACV,MAAME,YAAY,GAAGJ,OAAO,GACxBtD,4BAA4B,CAAC1K,IAAI,CAC/BmL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM,GAAGY,OAAO;QAEpB,OAAOsK,cAAc,CAACD,YAAY,EAAE3C,cAAc,EAAEhB,UAAU,CAAC;MACjE;IACF;IAEA,MAAMqD,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAC3E;EAEA,IAAIqI,mBAAmB,CAAC7I,IAAI,CAACgB,MAAM,CAACtC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;IACtD,IAAIoK,6BAA6B,CAAC9I,IAAI,CAACgB,MAAM,CAACtC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;MAChE,IAAI,CAACoN,SAAS,EAAE;QACd,MAAMxL,OAAO,GAAGuL,OAAO,GACnBxC,KAAK,CAACV,OAAO,CAAC,GAAG,EAAE,MAAM/G,OAAO,CAAC,GACjCyH,KAAK,GAAGzH,OAAO;QACnB,MAAMuK,cAAc,GAAGN,OAAO,GAC1BtD,4BAA4B,CAAC1K,IAAI,CAC/BmL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM;QACVoI,6BAA6B,CAC3B+C,cAAc,EACd7L,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJ,IACF,CAAC;MACH;IACF,CAAC,MAAM;MACL,MAAMmL,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;IAC3E;EACF;EAEA,MAAM4F,QAAQ,GAAG,KAAI6D,UAAK,EAACjJ,MAAM,EAAEsI,cAAc,CAAC;EAClD,MAAM8C,YAAY,GAAGhG,QAAQ,CAACI,QAAQ;EACtC,MAAM1F,WAAW,GAAG,KAAImJ,UAAK,EAAC,GAAG,EAAEX,cAAc,CAAC,CAAC9C,QAAQ;EAE3D,IAAI,CAAC4F,YAAY,CAACjL,UAAU,CAACL,WAAW,CAAC,EACvC,MAAM6K,oBAAoB,CAACtC,KAAK,EAAErI,MAAM,EAAEsI,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;EAE3E,IAAIoB,OAAO,KAAK,EAAE,EAAE,OAAOwE,QAAQ;EAEnC,IAAIyC,mBAAmB,CAAC7I,IAAI,CAAC4B,OAAO,CAAC,KAAK,IAAI,EAAE;IAC9C,MAAMtB,OAAO,GAAGuL,OAAO,GACnBxC,KAAK,CAACV,OAAO,CAAC,GAAG,EAAE,MAAM/G,OAAO,CAAC,GACjCyH,KAAK,GAAGzH,OAAO;IACnB,IAAIkH,6BAA6B,CAAC9I,IAAI,CAAC4B,OAAO,CAAC,KAAK,IAAI,EAAE;MACxD,IAAI,CAACkK,SAAS,EAAE;QACd,MAAMK,cAAc,GAAGN,OAAO,GAC1BtD,4BAA4B,CAAC1K,IAAI,CAC/BmL,YAAY,EACZhI,MAAM,EACN,MAAMY,OACR,CAAC,GACDZ,MAAM;QACVoI,6BAA6B,CAC3B+C,cAAc,EACd7L,OAAO,EACP+I,KAAK,EACLC,cAAc,EACdC,QAAQ,EACR/I,IAAI,EACJ,KACF,CAAC;MACH;IACF,CAAC,MAAM;MACLkL,mBAAmB,CAACpL,OAAO,EAAE+I,KAAK,EAAEC,cAAc,EAAEC,QAAQ,EAAE/I,IAAI,CAAC;IACrE;EACF;EAEA,IAAIqL,OAAO,EAAE;IACX,OAAO,KAAI5B,UAAK,EACd1B,4BAA4B,CAAC1K,IAAI,CAC/BmL,YAAY,EACZ5C,QAAQ,CAAC2D,IAAI,EACb,MAAMnI,OACR,CACF,CAAC;EACH;EAEA,OAAO,KAAIqI,UAAK,EAACrI,OAAO,EAAEwE,QAAQ,CAAC;AACrC;AAMA,SAASiG,YAAYA,CAACtL,GAAG,EAAE;EACzB,MAAMuL,SAAS,GAAGtI,MAAM,CAACjD,GAAG,CAAC;EAC7B,IAAI,GAAGuL,SAAS,EAAE,KAAKvL,GAAG,EAAE,OAAO,KAAK;EACxC,OAAOuL,SAAS,IAAI,CAAC,IAAIA,SAAS,GAAG,UAAa;AACpD;AAcA,SAASC,oBAAoBA,CAC3BjD,cAAc,EACdtI,MAAM,EACNY,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UAAU,EACV;EACA,IAAI,OAAOtH,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO4K,0BAA0B,CAC/B5K,MAAM,EACNY,OAAO,EACP4K,cAAc,EACdlD,cAAc,EACd9I,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;EACH;EAEA,IAAIjJ,KAAK,CAACC,OAAO,CAAC0B,MAAM,CAAC,EAAE;IAEzB,MAAMyL,UAAU,GAAGzL,MAAM;IACzB,IAAIyL,UAAU,CAACjO,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;IAGxC,IAAIkO,aAAa;IACjB,IAAI5O,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAG2O,UAAU,CAACjO,MAAM,EAAE;MAC9B,MAAMmO,UAAU,GAAGF,UAAU,CAAC3O,CAAC,CAAC;MAEhC,IAAI8O,aAAa;MACjB,IAAI;QACFA,aAAa,GAAGL,oBAAoB,CAClCjD,cAAc,EACdqD,UAAU,EACV/K,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;MACH,CAAC,CAAC,OAAOzF,KAAK,EAAE;QACd,MAAM0C,SAAS,GAAkC1C,KAAM;QACvD6J,aAAa,GAAGnH,SAAS;QACzB,IAAIA,SAAS,CAAClC,IAAI,KAAK,4BAA4B,EAAE;QACrD,MAAMR,KAAK;MACb;MAEA,IAAI+J,aAAa,KAAKnM,SAAS,EAAE;MAEjC,IAAImM,aAAa,KAAK,IAAI,EAAE;QAC1BF,aAAa,GAAG,IAAI;QACpB;MACF;MAEA,OAAOE,aAAa;IACtB;IAEA,IAAIF,aAAa,KAAKjM,SAAS,IAAIiM,aAAa,KAAK,IAAI,EAAE;MACzD,OAAO,IAAI;IACb;IAEA,MAAMA,aAAa;EACrB;EAEA,IAAI,OAAO1L,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,EAAE;IACjD,MAAM6L,IAAI,GAAGrP,MAAM,CAACsP,mBAAmB,CAAC9L,MAAM,CAAC;IAC/C,IAAIlD,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,EAAEA,CAAC,GAAG+O,IAAI,CAACrO,MAAM,EAAE;MACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAAC/O,CAAC,CAAC;MACnB,IAAIuO,YAAY,CAACtL,GAAG,CAAC,EAAE;QACrB,MAAM,IAAIL,0BAA0B,CAClC,IAAAwF,oBAAa,EAACoD,cAAc,CAAC,EAC7B9I,IAAI,EACJ,iDACF,CAAC;MACH;IACF;IAEA1C,CAAC,GAAG,CAAC,CAAC;IAEN,OAAO,EAAEA,CAAC,GAAG+O,IAAI,CAACrO,MAAM,EAAE;MACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAAC/O,CAAC,CAAC;MACnB,IAAIiD,GAAG,KAAK,SAAS,IAAKuH,UAAU,IAAIA,UAAU,CAACnL,GAAG,CAAC4D,GAAG,CAAE,EAAE;QAE5D,MAAMgM,iBAAiB,GAA2B/L,MAAM,CAACD,GAAG,CAAE;QAC9D,MAAM6L,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdyD,iBAAiB,EACjBnL,OAAO,EACP4K,cAAc,EACdhM,IAAI,EACJqL,OAAO,EACPtC,QAAQ,EACRuC,SAAS,EACTxD,UACF,CAAC;QACD,IAAIsE,aAAa,KAAKnM,SAAS,EAAE;QACjC,OAAOmM,aAAa;MACtB;IACF;IAEA,OAAO,IAAI;EACb;EAEA,IAAI5L,MAAM,KAAK,IAAI,EAAE;IACnB,OAAO,IAAI;EACb;EAEA,MAAM2K,oBAAoB,CACxBa,cAAc,EACdxL,MAAM,EACNsI,cAAc,EACdC,QAAQ,EACR/I,IACF,CAAC;AACH;AAQA,SAASwM,6BAA6BA,CAACpH,OAAO,EAAE0D,cAAc,EAAE9I,IAAI,EAAE;EACpE,IAAI,OAAOoF,OAAO,KAAK,QAAQ,IAAIvG,KAAK,CAACC,OAAO,CAACsG,OAAO,CAAC,EAAE,OAAO,IAAI;EACtE,IAAI,OAAOA,OAAO,KAAK,QAAQ,IAAIA,OAAO,KAAK,IAAI,EAAE,OAAO,KAAK;EAEjE,MAAMiH,IAAI,GAAGrP,MAAM,CAACsP,mBAAmB,CAAClH,OAAO,CAAC;EAChD,IAAIqH,kBAAkB,GAAG,KAAK;EAC9B,IAAInP,CAAC,GAAG,CAAC;EACT,IAAIoP,QAAQ,GAAG,CAAC,CAAC;EACjB,OAAO,EAAEA,QAAQ,GAAGL,IAAI,CAACrO,MAAM,EAAE;IAC/B,MAAMuC,GAAG,GAAG8L,IAAI,CAACK,QAAQ,CAAC;IAC1B,MAAMC,yBAAyB,GAAGpM,GAAG,KAAK,EAAE,IAAIA,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG;IAC9D,IAAIjD,CAAC,EAAE,KAAK,CAAC,EAAE;MACbmP,kBAAkB,GAAGE,yBAAyB;IAChD,CAAC,MAAM,IAAIF,kBAAkB,KAAKE,yBAAyB,EAAE;MAC3D,MAAM,IAAIzM,0BAA0B,CAClC,IAAAwF,oBAAa,EAACoD,cAAc,CAAC,EAC7B9I,IAAI,EACJ,sEAAsE,GACpE,sEAAsE,GACtE,uDACJ,CAAC;IACH;EACF;EAEA,OAAOyM,kBAAkB;AAC3B;AAOA,SAASG,mCAAmCA,CAAC/D,KAAK,EAAEgE,QAAQ,EAAE7M,IAAI,EAAE;EAElE,IAAIiJ,SAAMA,CAAC,CAACC,aAAa,EAAE;IACzB;EACF;EAEA,MAAMhE,SAAS,GAAG,IAAAQ,oBAAa,EAACmH,QAAQ,CAAC;EACzC,IAAInE,sBAAsB,CAAC/L,GAAG,CAACuI,SAAS,GAAG,GAAG,GAAG2D,KAAK,CAAC,EAAE;EACzDH,sBAAsB,CAACoE,GAAG,CAAC5H,SAAS,GAAG,GAAG,GAAG2D,KAAK,CAAC;EACnDI,SAAMA,CAAC,CAACG,WAAW,CACjB,qDAAqDP,KAAK,WAAW,GACnE,uDAAuD3D,SAAS,GAC9DlF,IAAI,GAAG,kBAAkB,IAAA0F,oBAAa,EAAC1F,IAAI,CAAC,EAAE,GAAG,EAAE,4DACO,EAC9D,oBAAoB,EACpB,SACF,CAAC;AACH;AAUA,SAAS+M,qBAAqBA,CAC5BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UAAU,EACV;EACA,IAAI1C,OAAO,GAAGa,aAAa,CAACb,OAAO;EAEnC,IAAIoH,6BAA6B,CAACpH,OAAO,EAAE0D,cAAc,EAAE9I,IAAI,CAAC,EAAE;IAChEoF,OAAO,GAAG;MAAC,GAAG,EAAEA;IAAO,CAAC;EAC1B;EAEA,IACEgD,GAAG,CAAC/K,IAAI,CAAC+H,OAAO,EAAE4G,cAAc,CAAC,IACjC,CAACA,cAAc,CAAC/M,QAAQ,CAAC,GAAG,CAAC,IAC7B,CAAC+M,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAC7B;IAEA,MAAMwB,MAAM,GAAG4E,OAAO,CAAC4G,cAAc,CAAC;IACtC,MAAMI,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACN,EAAE,EACFwL,cAAc,EACdhM,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL8H,UACF,CAAC;IACD,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;MACzD,MAAMgL,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;IAC7D;IAEA,OAAOoM,aAAa;EACtB;EAEA,IAAIY,SAAS,GAAG,EAAE;EAClB,IAAIC,gBAAgB,GAAG,EAAE;EACzB,MAAMZ,IAAI,GAAGrP,MAAM,CAACsP,mBAAmB,CAAClH,OAAO,CAAC;EAChD,IAAI9H,CAAC,GAAG,CAAC,CAAC;EAEV,OAAO,EAAEA,CAAC,GAAG+O,IAAI,CAACrO,MAAM,EAAE;IACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAAC/O,CAAC,CAAC;IACnB,MAAM4P,YAAY,GAAG3M,GAAG,CAACb,OAAO,CAAC,GAAG,CAAC;IAErC,IACEwN,YAAY,KAAK,CAAC,CAAC,IACnBlB,cAAc,CAACrL,UAAU,CAACJ,GAAG,CAACrC,KAAK,CAAC,CAAC,EAAEgP,YAAY,CAAC,CAAC,EACrD;MAOA,IAAIlB,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAAE;QAChC4N,mCAAmC,CACjCZ,cAAc,EACdlD,cAAc,EACd9I,IACF,CAAC;MACH;MAEA,MAAMmN,cAAc,GAAG5M,GAAG,CAACrC,KAAK,CAACgP,YAAY,GAAG,CAAC,CAAC;MAElD,IACElB,cAAc,CAAChO,MAAM,IAAIuC,GAAG,CAACvC,MAAM,IACnCgO,cAAc,CAAChN,QAAQ,CAACmO,cAAc,CAAC,IACvCC,iBAAiB,CAACJ,SAAS,EAAEzM,GAAG,CAAC,KAAK,CAAC,IACvCA,GAAG,CAAC8M,WAAW,CAAC,GAAG,CAAC,KAAKH,YAAY,EACrC;QACAF,SAAS,GAAGzM,GAAG;QACf0M,gBAAgB,GAAGjB,cAAc,CAAC9N,KAAK,CACrCgP,YAAY,EACZlB,cAAc,CAAChO,MAAM,GAAGmP,cAAc,CAACnP,MACzC,CAAC;MACH;IACF;EACF;EAEA,IAAIgP,SAAS,EAAE;IAEb,MAAMxM,MAAM,GAA2B4E,OAAO,CAAC4H,SAAS,CAAE;IAC1D,MAAMZ,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACNyM,gBAAgB,EAChBD,SAAS,EACThN,IAAI,EACJ,IAAI,EACJ,KAAK,EACLgM,cAAc,CAAChN,QAAQ,CAAC,GAAG,CAAC,EAC5B8I,UACF,CAAC;IAED,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;MACzD,MAAMgL,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;IAC7D;IAEA,OAAOoM,aAAa;EACtB;EAEA,MAAMnB,eAAe,CAACe,cAAc,EAAElD,cAAc,EAAE9I,IAAI,CAAC;AAC7D;AAMA,SAASoN,iBAAiBA,CAACrQ,CAAC,EAAEuQ,CAAC,EAAE;EAC/B,MAAMC,aAAa,GAAGxQ,CAAC,CAAC2C,OAAO,CAAC,GAAG,CAAC;EACpC,MAAM8N,aAAa,GAAGF,CAAC,CAAC5N,OAAO,CAAC,GAAG,CAAC;EACpC,MAAM+N,WAAW,GAAGF,aAAa,KAAK,CAAC,CAAC,GAAGxQ,CAAC,CAACiB,MAAM,GAAGuP,aAAa,GAAG,CAAC;EACvE,MAAMG,WAAW,GAAGF,aAAa,KAAK,CAAC,CAAC,GAAGF,CAAC,CAACtP,MAAM,GAAGwP,aAAa,GAAG,CAAC;EACvE,IAAIC,WAAW,GAAGC,WAAW,EAAE,OAAO,CAAC,CAAC;EACxC,IAAIA,WAAW,GAAGD,WAAW,EAAE,OAAO,CAAC;EACvC,IAAIF,aAAa,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC;EAClC,IAAIC,aAAa,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;EACnC,IAAIzQ,CAAC,CAACiB,MAAM,GAAGsP,CAAC,CAACtP,MAAM,EAAE,OAAO,CAAC,CAAC;EAClC,IAAIsP,CAAC,CAACtP,MAAM,GAAGjB,CAAC,CAACiB,MAAM,EAAE,OAAO,CAAC;EACjC,OAAO,CAAC;AACV;AAQA,SAAS2P,qBAAqBA,CAAClP,IAAI,EAAEuB,IAAI,EAAE8H,UAAU,EAAE;EACrD,IAAIrJ,IAAI,KAAK,GAAG,IAAIA,IAAI,CAACkC,UAAU,CAAC,IAAI,CAAC,IAAIlC,IAAI,CAACO,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC/D,MAAMe,MAAM,GAAG,gDAAgD;IAC/D,MAAM,IAAIF,4BAA4B,CAACpB,IAAI,EAAEsB,MAAM,EAAE,IAAA2F,oBAAa,EAAC1F,IAAI,CAAC,CAAC;EAC3E;EAGA,IAAI8I,cAAc;EAElB,MAAM7C,aAAa,GAAGN,qBAAqB,CAAC3F,IAAI,CAAC;EAEjD,IAAIiG,aAAa,CAAChB,MAAM,EAAE;IACxB6D,cAAc,GAAG,IAAAgC,oBAAa,EAAC7E,aAAa,CAACf,SAAS,CAAC;IACvD,MAAMG,OAAO,GAAGY,aAAa,CAACZ,OAAO;IACrC,IAAIA,OAAO,EAAE;MACX,IAAI+C,GAAG,CAAC/K,IAAI,CAACgI,OAAO,EAAE5G,IAAI,CAAC,IAAI,CAACA,IAAI,CAACQ,QAAQ,CAAC,GAAG,CAAC,EAAE;QAClD,MAAMmN,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdzD,OAAO,CAAC5G,IAAI,CAAC,EACb,EAAE,EACFA,IAAI,EACJuB,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL8H,UACF,CAAC;QACD,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;UACzD,OAAOmM,aAAa;QACtB;MACF,CAAC,MAAM;QACL,IAAIY,SAAS,GAAG,EAAE;QAClB,IAAIC,gBAAgB,GAAG,EAAE;QACzB,MAAMZ,IAAI,GAAGrP,MAAM,CAACsP,mBAAmB,CAACjH,OAAO,CAAC;QAChD,IAAI/H,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,EAAEA,CAAC,GAAG+O,IAAI,CAACrO,MAAM,EAAE;UACxB,MAAMuC,GAAG,GAAG8L,IAAI,CAAC/O,CAAC,CAAC;UACnB,MAAM4P,YAAY,GAAG3M,GAAG,CAACb,OAAO,CAAC,GAAG,CAAC;UAErC,IAAIwN,YAAY,KAAK,CAAC,CAAC,IAAIzO,IAAI,CAACkC,UAAU,CAACJ,GAAG,CAACrC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;YAC5D,MAAMiP,cAAc,GAAG5M,GAAG,CAACrC,KAAK,CAACgP,YAAY,GAAG,CAAC,CAAC;YAClD,IACEzO,IAAI,CAACT,MAAM,IAAIuC,GAAG,CAACvC,MAAM,IACzBS,IAAI,CAACO,QAAQ,CAACmO,cAAc,CAAC,IAC7BC,iBAAiB,CAACJ,SAAS,EAAEzM,GAAG,CAAC,KAAK,CAAC,IACvCA,GAAG,CAAC8M,WAAW,CAAC,GAAG,CAAC,KAAKH,YAAY,EACrC;cACAF,SAAS,GAAGzM,GAAG;cACf0M,gBAAgB,GAAGxO,IAAI,CAACP,KAAK,CAC3BgP,YAAY,EACZzO,IAAI,CAACT,MAAM,GAAGmP,cAAc,CAACnP,MAC/B,CAAC;YACH;UACF;QACF;QAEA,IAAIgP,SAAS,EAAE;UACb,MAAMxM,MAAM,GAAG6E,OAAO,CAAC2H,SAAS,CAAC;UACjC,MAAMZ,aAAa,GAAGL,oBAAoB,CACxCjD,cAAc,EACdtI,MAAM,EACNyM,gBAAgB,EAChBD,SAAS,EACThN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL8H,UACF,CAAC;UAED,IAAIsE,aAAa,KAAK,IAAI,IAAIA,aAAa,KAAKnM,SAAS,EAAE;YACzD,OAAOmM,aAAa;UACtB;QACF;MACF;IACF;EACF;EAEA,MAAMpB,gBAAgB,CAACvM,IAAI,EAAEqK,cAAc,EAAE9I,IAAI,CAAC;AACpD;AAMA,SAAS4N,gBAAgBA,CAAC1M,SAAS,EAAElB,IAAI,EAAE;EACzC,IAAI6N,cAAc,GAAG3M,SAAS,CAACxB,OAAO,CAAC,GAAG,CAAC;EAC3C,IAAIoO,gBAAgB,GAAG,IAAI;EAC3B,IAAIC,QAAQ,GAAG,KAAK;EACpB,IAAI7M,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACxB6M,QAAQ,GAAG,IAAI;IACf,IAAIF,cAAc,KAAK,CAAC,CAAC,IAAI3M,SAAS,CAAClD,MAAM,KAAK,CAAC,EAAE;MACnD8P,gBAAgB,GAAG,KAAK;IAC1B,CAAC,MAAM;MACLD,cAAc,GAAG3M,SAAS,CAACxB,OAAO,CAAC,GAAG,EAAEmO,cAAc,GAAG,CAAC,CAAC;IAC7D;EACF;EAEA,MAAMG,WAAW,GACfH,cAAc,KAAK,CAAC,CAAC,GAAG3M,SAAS,GAAGA,SAAS,CAAChD,KAAK,CAAC,CAAC,EAAE2P,cAAc,CAAC;EAIxE,IAAItF,uBAAuB,CAAC/I,IAAI,CAACwO,WAAW,CAAC,KAAK,IAAI,EAAE;IACtDF,gBAAgB,GAAG,KAAK;EAC1B;EAEA,IAAI,CAACA,gBAAgB,EAAE;IACrB,MAAM,IAAIjO,4BAA4B,CACpCqB,SAAS,EACT,6BAA6B,EAC7B,IAAAwE,oBAAa,EAAC1F,IAAI,CACpB,CAAC;EACH;EAEA,MAAMgM,cAAc,GAClB,GAAG,IAAI6B,cAAc,KAAK,CAAC,CAAC,GAAG,EAAE,GAAG3M,SAAS,CAAChD,KAAK,CAAC2P,cAAc,CAAC,CAAC;EAEtE,OAAO;IAACG,WAAW;IAAEhC,cAAc;IAAE+B;EAAQ,CAAC;AAChD;AAQA,SAASrC,cAAcA,CAACxK,SAAS,EAAElB,IAAI,EAAE8H,UAAU,EAAE;EACnD,IAAImG,wBAAc,CAAChP,QAAQ,CAACiC,SAAS,CAAC,EAAE;IACtC,OAAO,KAAIuI,UAAK,EAAC,OAAO,GAAGvI,SAAS,CAAC;EACvC;EAEA,MAAM;IAAC8M,WAAW;IAAEhC,cAAc;IAAE+B;EAAQ,CAAC,GAAGH,gBAAgB,CAC9D1M,SAAS,EACTlB,IACF,CAAC;EAGD,MAAMiG,aAAa,GAAGN,qBAAqB,CAAC3F,IAAI,CAAC;EAIjD,IAAIiG,aAAa,CAAChB,MAAM,EAAE;IACxB,MAAM6D,cAAc,GAAG,IAAAgC,oBAAa,EAAC7E,aAAa,CAACf,SAAS,CAAC;IAC7D,IACEe,aAAa,CAACxH,IAAI,KAAKuP,WAAW,IAClC/H,aAAa,CAACb,OAAO,KAAKnF,SAAS,IACnCgG,aAAa,CAACb,OAAO,KAAK,IAAI,EAC9B;MACA,OAAO2H,qBAAqB,CAC1BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UACF,CAAC;IACH;EACF;EAEA,IAAIgB,cAAc,GAAG,KAAIW,UAAK,EAC5B,iBAAiB,GAAGuE,WAAW,GAAG,eAAe,EACjDhO,IACF,CAAC;EACD,IAAIkO,eAAe,GAAG,IAAAxI,oBAAa,EAACoD,cAAc,CAAC;EAEnD,IAAIqF,QAAQ;EACZ,GAAG;IACD,MAAMC,IAAI,GAAGxE,WAAW,CAACsE,eAAe,CAAChQ,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACvD,IAAI,CAACkQ,IAAI,IAAI,CAACA,IAAI,CAAC3D,WAAW,CAAC,CAAC,EAAE;MAChC0D,QAAQ,GAAGD,eAAe;MAC1BpF,cAAc,GAAG,KAAIW,UAAK,EACxB,CAACsE,QAAQ,GAAG,2BAA2B,GAAG,wBAAwB,IAChEC,WAAW,GACX,eAAe,EACjBlF,cACF,CAAC;MACDoF,eAAe,GAAG,IAAAxI,oBAAa,EAACoD,cAAc,CAAC;MAC/C;IACF;IAGA,MAAM7C,aAAa,GAAGzB,IAAI,CAAC0J,eAAe,EAAE;MAAClO,IAAI;MAAEkB;IAAS,CAAC,CAAC;IAC9D,IAAI+E,aAAa,CAACb,OAAO,KAAKnF,SAAS,IAAIgG,aAAa,CAACb,OAAO,KAAK,IAAI,EAAE;MACzE,OAAO2H,qBAAqB,CAC1BjE,cAAc,EACdkD,cAAc,EACd/F,aAAa,EACbjG,IAAI,EACJ8H,UACF,CAAC;IACH;IAEA,IAAIkE,cAAc,KAAK,GAAG,EAAE;MAC1B,OAAO7B,iBAAiB,CAACrB,cAAc,EAAE7C,aAAa,EAAEjG,IAAI,CAAC;IAC/D;IAEA,OAAO,KAAIyJ,UAAK,EAACuC,cAAc,EAAElD,cAAc,CAAC;EAElD,CAAC,QAAQoF,eAAe,CAAClQ,MAAM,KAAKmQ,QAAQ,CAACnQ,MAAM;EAEnD,MAAM,IAAI8C,oBAAoB,CAACkN,WAAW,EAAE,IAAAtI,oBAAa,EAAC1F,IAAI,CAAC,EAAE,KAAK,CAAC;AACzE;AAMA,SAASqO,mBAAmBA,CAACnN,SAAS,EAAE;EACtC,IAAIA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACxB,IAAIA,SAAS,CAAClD,MAAM,KAAK,CAAC,IAAIkD,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,IAAI;IAC/D,IACEA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,KACnBA,SAAS,CAAClD,MAAM,KAAK,CAAC,IAAIkD,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,EAChD;MACA,OAAO,IAAI;IACb;EACF;EAEA,OAAO,KAAK;AACd;AAMA,SAASoN,uCAAuCA,CAACpN,SAAS,EAAE;EAC1D,IAAIA,SAAS,KAAK,EAAE,EAAE,OAAO,KAAK;EAClC,IAAIA,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,OAAO,IAAI;EACrC,OAAOmN,mBAAmB,CAACnN,SAAS,CAAC;AACvC;AAiBA,SAASqN,aAAaA,CAACrN,SAAS,EAAElB,IAAI,EAAE8H,UAAU,EAAEyC,gBAAgB,EAAE;EAGpE,MAAMhD,QAAQ,GAAGvH,IAAI,CAACuH,QAAQ;EAC9B,MAAMiH,MAAM,GAAGjH,QAAQ,KAAK,OAAO;EACnC,MAAMkH,QAAQ,GAAGD,MAAM,IAAIjH,QAAQ,KAAK,OAAO,IAAIA,QAAQ,KAAK,QAAQ;EAIxE,IAAI3B,QAAQ;EAEZ,IAAI0I,uCAAuC,CAACpN,SAAS,CAAC,EAAE;IACtD,IAAI;MACF0E,QAAQ,GAAG,KAAI6D,UAAK,EAACvI,SAAS,EAAElB,IAAI,CAAC;IACvC,CAAC,CAAC,OAAOwF,MAAM,EAAE;MACf,MAAMnD,KAAK,GAAG,IAAIf,+BAA+B,CAACJ,SAAS,EAAElB,IAAI,CAAC;MAClEqC,KAAK,CAACoD,KAAK,GAAGD,MAAM;MACpB,MAAMnD,KAAK;IACb;EACF,CAAC,MAAM,IAAIkF,QAAQ,KAAK,OAAO,IAAIrG,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IACvD0E,QAAQ,GAAG+H,qBAAqB,CAACzM,SAAS,EAAElB,IAAI,EAAE8H,UAAU,CAAC;EAC/D,CAAC,MAAM;IACL,IAAI;MACFlC,QAAQ,GAAG,KAAI6D,UAAK,EAACvI,SAAS,CAAC;IACjC,CAAC,CAAC,OAAOsE,MAAM,EAAE;MAEf,IAAIiJ,QAAQ,IAAI,CAACR,wBAAc,CAAChP,QAAQ,CAACiC,SAAS,CAAC,EAAE;QACnD,MAAMmB,KAAK,GAAG,IAAIf,+BAA+B,CAACJ,SAAS,EAAElB,IAAI,CAAC;QAClEqC,KAAK,CAACoD,KAAK,GAAGD,MAAM;QACpB,MAAMnD,KAAK;MACb;MAEAuD,QAAQ,GAAG8F,cAAc,CAACxK,SAAS,EAAElB,IAAI,EAAE8H,UAAU,CAAC;IACxD;EACF;EAEAlJ,QAAKA,CAAC,CAACgH,QAAQ,KAAK3F,SAAS,EAAE,wBAAwB,CAAC;EAExD,IAAI2F,QAAQ,CAAC2B,QAAQ,KAAK,OAAO,EAAE;IACjC,OAAO3B,QAAQ;EACjB;EAEA,OAAO0E,kBAAkB,CAAC1E,QAAQ,EAAE5F,IAAI,EAAEuK,gBAAgB,CAAC;AAC7D;AAOA,SAASmE,uBAAuBA,CAACxN,SAAS,EAAEoE,MAAM,EAAEqJ,eAAe,EAAE;EACnE,IAAIA,eAAe,EAAE;IAEnB,MAAMC,cAAc,GAAGD,eAAe,CAACpH,QAAQ;IAE/C,IAAIqH,cAAc,KAAK,OAAO,IAAIA,cAAc,KAAK,QAAQ,EAAE;MAC7D,IAAIN,uCAAuC,CAACpN,SAAS,CAAC,EAAE;QAEtD,MAAM2N,cAAc,GAAGvJ,MAAM,oBAANA,MAAM,CAAEiC,QAAQ;QAIvC,IACEsH,cAAc,IACdA,cAAc,KAAK,QAAQ,IAC3BA,cAAc,KAAK,OAAO,EAC1B;UACA,MAAM,IAAI7N,6BAA6B,CACrCE,SAAS,EACTyN,eAAe,EACf,qDACF,CAAC;QACH;QAEA,OAAO;UAACvI,GAAG,EAAE,CAAAd,MAAM,oBAANA,MAAM,CAAEiE,IAAI,KAAI;QAAE,CAAC;MAClC;MAEA,IAAI0E,wBAAc,CAAChP,QAAQ,CAACiC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAIF,6BAA6B,CACrCE,SAAS,EACTyN,eAAe,EACf,qDACF,CAAC;MACH;MAEA,MAAM,IAAI3N,6BAA6B,CACrCE,SAAS,EACTyN,eAAe,EACf,sDACF,CAAC;IACH;EACF;AACF;AAkBA,SAASpD,KAAKA,CAAC5H,IAAI,EAAE;EACnB,OAAOmL,OAAO,CACZnL,IAAI,IACF,OAAOA,IAAI,KAAK,QAAQ,IACxB,MAAM,IAAIA,IAAI,IACd,OAAOA,IAAI,CAAC4F,IAAI,KAAK,QAAQ,IAC7B,UAAU,IAAI5F,IAAI,IAClB,OAAOA,IAAI,CAAC4D,QAAQ,KAAK,QAAQ,IACjC5D,IAAI,CAAC4F,IAAI,IACT5F,IAAI,CAAC4D,QACT,CAAC;AACH;AAQA,SAASwH,uBAAuBA,CAACzF,SAAS,EAAE;EAC1C,IAAIA,SAAS,KAAKrJ,SAAS,EAAE;IAC3B;EACF;EAEA,IAAI,OAAOqJ,SAAS,KAAK,QAAQ,IAAI,CAACiC,KAAK,CAACjC,SAAS,CAAC,EAAE;IACtD,MAAM,IAAI1L,KAAK,CAACW,oBAAoB,CAClC,WAAW,EACX,CAAC,QAAQ,EAAE,KAAK,CAAC,EACjB+K,SACF,CAAC;EACH;AACF;AAOA,SAAS0F,cAAcA,CAAC9N,SAAS,EAAEoG,OAAO,GAAG,CAAC,CAAC,EAAE;EAC/C,MAAM;IAACgC;EAAS,CAAC,GAAGhC,OAAO;EAC3B1I,QAAKA,CAAC,CAAC0K,SAAS,KAAKrJ,SAAS,EAAE,oCAAoC,CAAC;EACrE8O,uBAAuB,CAACzF,SAAS,CAAC;EAGlC,IAAIqF,eAAe;EACnB,IAAIrF,SAAS,EAAE;IACb,IAAI;MACFqF,eAAe,GAAG,KAAIlF,UAAK,EAACH,SAAS,CAAC;IACxC,CAAC,CAAC,OAAA2F,QAAA,EAAM,CAER;EACF;EAGA,IAAI3J,MAAM;EAEV,IAAIiC,QAAQ;EAEZ,IAAI;IACFjC,MAAM,GAAGgJ,uCAAuC,CAACpN,SAAS,CAAC,GACvD,KAAIuI,UAAK,EAACvI,SAAS,EAAEyN,eAAe,CAAC,GACrC,KAAIlF,UAAK,EAACvI,SAAS,CAAC;IAGxBqG,QAAQ,GAAGjC,MAAM,CAACiC,QAAQ;IAE1B,IAAIA,QAAQ,KAAK,OAAO,EAAE;MACxB,OAAO;QAACnB,GAAG,EAAEd,MAAM,CAACiE,IAAI;QAAEtF,MAAM,EAAE;MAAI,CAAC;IACzC;EACF,CAAC,CAAC,OAAAiL,QAAA,EAAM,CAER;EAKA,MAAMC,WAAW,GAAGT,uBAAuB,CACzCxN,SAAS,EACToE,MAAM,EACNqJ,eACF,CAAC;EAED,IAAIQ,WAAW,EAAE,OAAOA,WAAW;EAGnC,IAAI5H,QAAQ,KAAKtH,SAAS,IAAIqF,MAAM,EAAE;IACpCiC,QAAQ,GAAGjC,MAAM,CAACiC,QAAQ;EAC5B;EAEA,IAAIA,QAAQ,KAAK,OAAO,EAAE;IACxB,OAAO;MAACnB,GAAG,EAAElF;IAAS,CAAC;EACzB;EAGA,IAAIoE,MAAM,IAAIA,MAAM,CAACiC,QAAQ,KAAK,OAAO,EAAE,OAAO;IAACnB,GAAG,EAAElF;EAAS,CAAC;EAElE,MAAM4G,UAAU,GAAGD,gBAAgB,CAACP,OAAO,CAACQ,UAAU,CAAC;EAEvD,MAAM1B,GAAG,GAAGmI,aAAa,CAACrN,SAAS,EAAE,KAAIuI,UAAK,EAACH,SAAS,CAAC,EAAExB,UAAU,EAAE,KAAK,CAAC;EAE7E,OAAO;IAGL1B,GAAG,EAAEA,GAAG,CAACmD,IAAI;IACbtF,MAAM,EAAEoD,6BAA6B,CAACjB,GAAG,EAAE;MAACkD;IAAS,CAAC;EACxD,CAAC;AACH;AAsBA,SAASK,OAAOA,CAACzI,SAAS,EAAEkO,MAAM,EAAE;EAClC,IAAI,CAACA,MAAM,EAAE;IACX,MAAM,IAAIhP,KAAK,CACb,kEACF,CAAC;EACH;EAEA,IAAI;IACF,OAAO4O,cAAc,CAAC9N,SAAS,EAAE;MAACoI,SAAS,EAAE8F;IAAM,CAAC,CAAC,CAAChJ,GAAG;EAC3D,CAAC,CAAC,OAAO/D,KAAK,EAAE;IAEd,MAAM0C,SAAS,GAAkC1C,KAAM;IAEvD,IACE,CAAC0C,SAAS,CAAClC,IAAI,KAAK,4BAA4B,IAC9CkC,SAAS,CAAClC,IAAI,KAAK,sBAAsB,KAC3C,OAAOkC,SAAS,CAACqB,GAAG,KAAK,QAAQ,EACjC;MACA,OAAOrB,SAAS,CAACqB,GAAG;IACtB;IAEA,MAAM/D,KAAK;EACb;AACF;AAAC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/core/package.json b/node_modules/@babel/core/package.json index a70bdeea0..3a1cd9815 100644 --- a/node_modules/@babel/core/package.json +++ b/node_modules/@babel/core/package.json @@ -1,6 +1,6 @@ { "name": "@babel/core", - "version": "7.28.0", + "version": "7.25.2", "description": "Babel compiler core.", "main": "./lib/index.js", "author": "The Babel Team (https://babel.dev/team)", @@ -47,15 +47,15 @@ }, "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.0", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.27.3", - "@babel/helpers": "^7.27.6", - "@babel/parser": "^7.28.0", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.0", - "@babel/types": "^7.28.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -63,20 +63,20 @@ "semver": "^6.3.1" }, "devDependencies": { - "@babel/helper-transform-fixture-test-runner": "^7.28.0", - "@babel/plugin-syntax-flow": "^7.27.1", - "@babel/plugin-transform-flow-strip-types": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/preset-env": "^7.28.0", - "@babel/preset-typescript": "^7.27.1", - "@jridgewell/trace-mapping": "^0.3.28", + "@babel/helper-transform-fixture-test-runner": "^7.25.2", + "@babel/plugin-syntax-flow": "^7.24.7", + "@babel/plugin-transform-flow-strip-types": "^7.25.2", + "@babel/plugin-transform-modules-commonjs": "^7.24.8", + "@babel/preset-env": "^7.25.2", + "@babel/preset-typescript": "^7.24.7", + "@jridgewell/trace-mapping": "^0.3.25", "@types/convert-source-map": "^2.0.0", "@types/debug": "^4.1.0", + "@types/gensync": "^1.0.0", "@types/resolve": "^1.3.2", "@types/semver": "^5.4.0", "rimraf": "^3.0.0", - "ts-node": "^11.0.0-beta.1", - "tsx": "^4.20.3" + "ts-node": "^11.0.0-beta.1" }, "type": "commonjs" } \ No newline at end of file diff --git a/node_modules/@babel/core/src/config/files/index-browser.ts b/node_modules/@babel/core/src/config/files/index-browser.ts index 435c06840..d25736325 100644 --- a/node_modules/@babel/core/src/config/files/index-browser.ts +++ b/node_modules/@babel/core/src/config/files/index-browser.ts @@ -1,5 +1,3 @@ -/* c8 ignore start */ - import type { Handler } from "gensync"; import type { @@ -76,17 +74,13 @@ export function* resolveShowConfigPath( export const ROOT_CONFIG_FILENAMES: string[] = []; -type Resolved = - | { loader: "require"; filepath: string } - | { loader: "import"; filepath: string }; - // eslint-disable-next-line @typescript-eslint/no-unused-vars -export function resolvePlugin(name: string, dirname: string): Resolved | null { +export function resolvePlugin(name: string, dirname: string): string | null { return null; } // eslint-disable-next-line @typescript-eslint/no-unused-vars -export function resolvePreset(name: string, dirname: string): Resolved | null { +export function resolvePreset(name: string, dirname: string): string | null { return null; } diff --git a/node_modules/@babel/core/src/config/resolve-targets-browser.ts b/node_modules/@babel/core/src/config/resolve-targets-browser.ts index aa1edd1dc..f93294d29 100644 --- a/node_modules/@babel/core/src/config/resolve-targets-browser.ts +++ b/node_modules/@babel/core/src/config/resolve-targets-browser.ts @@ -1,5 +1,3 @@ -/* c8 ignore start */ - import type { ValidatedOptions } from "./validation/options.ts"; import getTargets, { type InputTargets, diff --git a/node_modules/@babel/core/src/config/resolve-targets.ts b/node_modules/@babel/core/src/config/resolve-targets.ts index 21f86754d..6271c9f42 100644 --- a/node_modules/@babel/core/src/config/resolve-targets.ts +++ b/node_modules/@babel/core/src/config/resolve-targets.ts @@ -6,7 +6,7 @@ type nodeType = typeof import("./resolve-targets"); ({}) as any as browserType as nodeType; import type { ValidatedOptions } from "./validation/options.ts"; -import path from "node:path"; +import path from "path"; import getTargets, { type InputTargets, } from "@babel/helper-compilation-targets"; diff --git a/node_modules/@babel/core/src/transform-file-browser.ts b/node_modules/@babel/core/src/transform-file-browser.ts index 0a15ca5ea..f316cb432 100644 --- a/node_modules/@babel/core/src/transform-file-browser.ts +++ b/node_modules/@babel/core/src/transform-file-browser.ts @@ -1,5 +1,3 @@ -/* c8 ignore start */ - // duplicated from transform-file so we do not have to import anything here type TransformFile = { (filename: string, callback: (error: Error, file: null) => void): void; diff --git a/node_modules/@babel/generator/lib/buffer.js.map b/node_modules/@babel/generator/lib/buffer.js.map index d92c017dc..87a96b42d 100644 --- a/node_modules/@babel/generator/lib/buffer.js.map +++ b/node_modules/@babel/generator/lib/buffer.js.map @@ -1 +1 @@ -{"version":3,"names":["Buffer","constructor","map","indentChar","_map","_buf","_str","_appendCount","_last","_queue","_queueCursor","_canMarkIdName","_indentChar","_fastIndentations","_position","line","column","_sourcePosition","identifierName","undefined","identifierNamePos","filename","i","push","repeat","_allocQueue","queue","char","_pushQueue","cursor","length","item","_popQueue","Error","get","_flush","result","code","trimRight","decodedMap","getDecoded","__mergedMap","resultMap","value","Object","defineProperty","writable","rawMappings","mappings","getRawMappings","append","str","maybeNewline","_append","appendChar","_appendChar","sourcePosition","queueIndentation","queueCursor","sourcePos","fastIndentation","String","fromCharCode","_mark","len","position","charCodeAt","indexOf","last","_this$_map","mark","removeTrailingNewline","removeLastSemicolon","getLastChar","getNewlineCount","count","endsWithCharAndNewline","lastCp","hasContent","exactSource","loc","cb","source","prop","_normalizePosition","sourceWithOffset","columnOffset","pos","target","Math","max","getCurrentColumn","lastIndex","getCurrentLine","exports","default"],"sources":["../src/buffer.ts"],"sourcesContent":["import type SourceMap from \"./source-map.ts\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charcodes from \"charcodes\";\n\nexport type Pos = {\n line: number;\n column: number;\n index: number;\n};\nexport type Loc = {\n start?: Pos;\n end?: Pos;\n filename?: string;\n};\ntype SourcePos = {\n line: number | undefined;\n column: number | undefined;\n identifierName: string | undefined;\n filename: string | undefined;\n};\ntype InternalSourcePos = SourcePos & { identifierNamePos: Pos };\n\ntype QueueItem = {\n char: number;\n repeat: number;\n line: number | undefined;\n column: number | undefined;\n identifierName: undefined; // Not used, it always undefined.\n identifierNamePos: undefined; // Not used, it always undefined.\n filename: string | undefined;\n};\n\nexport default class Buffer {\n constructor(map: SourceMap | null, indentChar: string) {\n this._map = map;\n this._indentChar = indentChar;\n\n for (let i = 0; i < 64; i++) {\n this._fastIndentations.push(indentChar.repeat(i));\n }\n\n this._allocQueue();\n }\n\n _map: SourceMap = null;\n _buf = \"\";\n _str = \"\";\n _appendCount = 0;\n _last = 0;\n _queue: QueueItem[] = [];\n _queueCursor = 0;\n _canMarkIdName = true;\n _indentChar = \"\";\n _fastIndentations: string[] = [];\n\n _position = {\n line: 1,\n column: 0,\n };\n _sourcePosition: InternalSourcePos = {\n identifierName: undefined,\n identifierNamePos: undefined,\n line: undefined,\n column: undefined,\n filename: undefined,\n };\n\n _allocQueue() {\n const queue = this._queue;\n\n for (let i = 0; i < 16; i++) {\n queue.push({\n char: 0,\n repeat: 1,\n line: undefined,\n column: undefined,\n identifierName: undefined,\n identifierNamePos: undefined,\n filename: \"\",\n });\n }\n }\n\n _pushQueue(\n char: number,\n repeat: number,\n line: number | undefined,\n column: number | undefined,\n filename: string | undefined,\n ) {\n const cursor = this._queueCursor;\n if (cursor === this._queue.length) {\n this._allocQueue();\n }\n const item = this._queue[cursor];\n item.char = char;\n item.repeat = repeat;\n item.line = line;\n item.column = column;\n item.filename = filename;\n\n this._queueCursor++;\n }\n\n _popQueue(): QueueItem {\n if (this._queueCursor === 0) {\n throw new Error(\"Cannot pop from empty queue\");\n }\n return this._queue[--this._queueCursor];\n }\n\n /**\n * Get the final string output from the buffer, along with the sourcemap if one exists.\n */\n\n get() {\n this._flush();\n\n const map = this._map;\n const result = {\n // Whatever trim is used here should not execute a regex against the\n // source string since it may be arbitrarily large after all transformations\n code: (this._buf + this._str).trimRight(),\n // Decoded sourcemap is free to generate.\n decodedMap: map?.getDecoded(),\n // Used as a marker for backwards compatibility. We moved input map merging\n // into the generator. We cannot merge the input map a second time, so the\n // presence of this field tells us we've already done the work.\n get __mergedMap() {\n return this.map;\n },\n // Encoding the sourcemap is moderately CPU expensive.\n get map() {\n const resultMap = map ? map.get() : null;\n result.map = resultMap;\n return resultMap;\n },\n set map(value) {\n Object.defineProperty(result, \"map\", { value, writable: true });\n },\n // Retrieving the raw mappings is very memory intensive.\n get rawMappings() {\n const mappings = map?.getRawMappings();\n result.rawMappings = mappings;\n return mappings;\n },\n set rawMappings(value) {\n Object.defineProperty(result, \"rawMappings\", { value, writable: true });\n },\n };\n\n return result;\n }\n\n /**\n * Add a string to the buffer that cannot be reverted.\n */\n\n append(str: string, maybeNewline: boolean): void {\n this._flush();\n\n this._append(str, this._sourcePosition, maybeNewline);\n }\n\n appendChar(char: number): void {\n this._flush();\n this._appendChar(char, 1, this._sourcePosition);\n }\n\n /**\n * Add a string to the buffer than can be reverted.\n */\n queue(char: number): void {\n // Drop trailing spaces when a newline is inserted.\n if (char === charcodes.lineFeed) {\n while (this._queueCursor !== 0) {\n const char = this._queue[this._queueCursor - 1].char;\n if (char !== charcodes.space && char !== charcodes.tab) {\n break;\n }\n\n this._queueCursor--;\n }\n }\n\n const sourcePosition = this._sourcePosition;\n this._pushQueue(\n char,\n 1,\n sourcePosition.line,\n sourcePosition.column,\n sourcePosition.filename,\n );\n }\n\n /**\n * Same as queue, but this indentation will never have a sourcemap marker.\n */\n queueIndentation(repeat: number): void {\n if (repeat === 0) return;\n this._pushQueue(-1, repeat, undefined, undefined, undefined);\n }\n\n _flush(): void {\n const queueCursor = this._queueCursor;\n const queue = this._queue;\n for (let i = 0; i < queueCursor; i++) {\n const item: QueueItem = queue[i];\n this._appendChar(item.char, item.repeat, item);\n }\n this._queueCursor = 0;\n }\n\n _appendChar(\n char: number,\n repeat: number,\n sourcePos: InternalSourcePos,\n ): void {\n this._last = char;\n\n if (char === -1) {\n const fastIndentation = this._fastIndentations[repeat];\n if (fastIndentation !== undefined) {\n this._str += fastIndentation;\n } else {\n this._str +=\n repeat > 1 ? this._indentChar.repeat(repeat) : this._indentChar;\n }\n } else {\n this._str +=\n repeat > 1\n ? String.fromCharCode(char).repeat(repeat)\n : String.fromCharCode(char);\n }\n\n if (char !== charcodes.lineFeed) {\n this._mark(\n sourcePos.line,\n sourcePos.column,\n sourcePos.identifierName,\n sourcePos.identifierNamePos,\n sourcePos.filename,\n );\n this._position.column += repeat;\n } else {\n this._position.line++;\n this._position.column = 0;\n }\n\n if (this._canMarkIdName) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n }\n\n _append(\n str: string,\n sourcePos: InternalSourcePos,\n maybeNewline: boolean,\n ): void {\n const len = str.length;\n const position = this._position;\n\n this._last = str.charCodeAt(len - 1);\n\n if (++this._appendCount > 4096) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n +this._str; // Unexplainable huge performance boost. Ref: https://github.com/davidmarkclements/flatstr License: MIT\n this._buf += this._str;\n this._str = str;\n this._appendCount = 0;\n } else {\n this._str += str;\n }\n\n if (!maybeNewline && !this._map) {\n position.column += len;\n return;\n }\n\n const { column, identifierName, identifierNamePos, filename } = sourcePos;\n let line = sourcePos.line;\n\n if (\n (identifierName != null || identifierNamePos != null) &&\n this._canMarkIdName\n ) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n\n // Search for newline chars. We search only for `\\n`, since both `\\r` and\n // `\\r\\n` are normalized to `\\n` during parse. We exclude `\\u2028` and\n // `\\u2029` for performance reasons, they're so uncommon that it's probably\n // ok. It's also unclear how other sourcemap utilities handle them...\n let i = str.indexOf(\"\\n\");\n let last = 0;\n\n // If the string starts with a newline char, then adding a mark is redundant.\n // This catches both \"no newlines\" and \"newline after several chars\".\n if (i !== 0) {\n this._mark(line, column, identifierName, identifierNamePos, filename);\n }\n\n // Now, find each remaining newline char in the string.\n while (i !== -1) {\n position.line++;\n position.column = 0;\n last = i + 1;\n\n // We mark the start of each line, which happens directly after this newline char\n // unless this is the last char.\n // When manually adding multi-line content (such as a comment), `line` will be `undefined`.\n if (last < len && line !== undefined) {\n this._mark(++line, 0, null, null, filename);\n }\n i = str.indexOf(\"\\n\", last);\n }\n position.column += len - last;\n }\n\n _mark(\n line: number | undefined,\n column: number | undefined,\n identifierName: string | undefined,\n identifierNamePos: Pos | undefined,\n filename: string | undefined,\n ): void {\n this._map?.mark(\n this._position,\n line,\n column,\n identifierName,\n identifierNamePos,\n filename,\n );\n }\n\n removeTrailingNewline(): void {\n const queueCursor = this._queueCursor;\n if (\n queueCursor !== 0 &&\n this._queue[queueCursor - 1].char === charcodes.lineFeed\n ) {\n this._queueCursor--;\n }\n }\n\n removeLastSemicolon(): void {\n const queueCursor = this._queueCursor;\n if (\n queueCursor !== 0 &&\n this._queue[queueCursor - 1].char === charcodes.semicolon\n ) {\n this._queueCursor--;\n }\n }\n\n getLastChar(): number {\n const queueCursor = this._queueCursor;\n return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last;\n }\n\n /**\n * This will only detect at most 1 newline after a call to `flush()`,\n * but this has not been found so far, and an accurate count can be achieved if needed later.\n */\n getNewlineCount(): number {\n const queueCursor = this._queueCursor;\n let count = 0;\n if (queueCursor === 0) return this._last === charcodes.lineFeed ? 1 : 0;\n for (let i = queueCursor - 1; i >= 0; i--) {\n if (this._queue[i].char !== charcodes.lineFeed) {\n break;\n }\n count++;\n }\n return count === queueCursor && this._last === charcodes.lineFeed\n ? count + 1\n : count;\n }\n\n /**\n * check if current _last + queue ends with newline, return the character before newline\n */\n endsWithCharAndNewline(): number {\n const queue = this._queue;\n const queueCursor = this._queueCursor;\n if (queueCursor !== 0) {\n // every element in queue is one-length whitespace string\n const lastCp = queue[queueCursor - 1].char;\n if (lastCp !== charcodes.lineFeed) return;\n if (queueCursor > 1) {\n return queue[queueCursor - 2].char;\n } else {\n return this._last;\n }\n }\n // We assume that everything being matched is at most a single token plus some whitespace,\n // which everything currently is, but otherwise we'd have to expand _last or check _buf.\n }\n\n hasContent(): boolean {\n return this._queueCursor !== 0 || !!this._last;\n }\n\n /**\n * Certain sourcemap usecases expect mappings to be more accurate than\n * Babel's generic sourcemap handling allows. For now, we special-case\n * identifiers to allow for the primary cases to work.\n * The goal of this line is to ensure that the map output from Babel will\n * have an exact range on identifiers in the output code. Without this\n * line, Babel would potentially include some number of trailing tokens\n * that are printed after the identifier, but before another location has\n * been assigned.\n * This allows tooling like Rollup and Webpack to more accurately perform\n * their own transformations. Most importantly, this allows the import/export\n * transformations performed by those tools to loose less information when\n * applying their own transformations on top of the code and map results\n * generated by Babel itself.\n *\n * The primary example of this is the snippet:\n *\n * import mod from \"mod\";\n * mod();\n *\n * With this line, there will be one mapping range over \"mod\" and another\n * over \"();\", where previously it would have been a single mapping.\n */\n exactSource(loc: Loc | undefined, cb: () => void) {\n if (!this._map) {\n cb();\n return;\n }\n\n this.source(\"start\", loc);\n // @ts-expect-error identifierName is not defined\n const identifierName = loc.identifierName;\n const sourcePos = this._sourcePosition;\n if (identifierName) {\n this._canMarkIdName = false;\n sourcePos.identifierName = identifierName;\n }\n cb();\n\n if (identifierName) {\n this._canMarkIdName = true;\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n this.source(\"end\", loc);\n }\n\n /**\n * Sets a given position as the current source location so generated code after this call\n * will be given this position in the sourcemap.\n */\n\n source(prop: \"start\" | \"end\", loc: Loc | undefined): void {\n if (!this._map) return;\n\n // Since this is called extremely often, we reuse the same _sourcePosition\n // object for the whole lifetime of the buffer.\n this._normalizePosition(prop, loc, 0);\n }\n\n sourceWithOffset(\n prop: \"start\" | \"end\",\n loc: Loc | undefined,\n columnOffset: number,\n ): void {\n if (!this._map) return;\n\n this._normalizePosition(prop, loc, columnOffset);\n }\n\n _normalizePosition(prop: \"start\" | \"end\", loc: Loc, columnOffset: number) {\n const pos = loc[prop];\n const target = this._sourcePosition;\n\n if (pos) {\n target.line = pos.line;\n // TODO: Fix https://github.com/babel/babel/issues/15712 in downstream\n target.column = Math.max(pos.column + columnOffset, 0);\n target.filename = loc.filename;\n }\n }\n\n getCurrentColumn(): number {\n const queue = this._queue;\n const queueCursor = this._queueCursor;\n\n let lastIndex = -1;\n let len = 0;\n for (let i = 0; i < queueCursor; i++) {\n const item = queue[i];\n if (item.char === charcodes.lineFeed) {\n lastIndex = len;\n }\n len += item.repeat;\n }\n\n return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex;\n }\n\n getCurrentLine(): number {\n let count = 0;\n\n const queue = this._queue;\n for (let i = 0; i < this._queueCursor; i++) {\n if (queue[i].char === charcodes.lineFeed) {\n count++;\n }\n }\n\n return this._position.line + count;\n }\n}\n"],"mappings":";;;;;;AAkCe,MAAMA,MAAM,CAAC;EAC1BC,WAAWA,CAACC,GAAqB,EAAEC,UAAkB,EAAE;IAAA,KAWvDC,IAAI,GAAc,IAAI;IAAA,KACtBC,IAAI,GAAG,EAAE;IAAA,KACTC,IAAI,GAAG,EAAE;IAAA,KACTC,YAAY,GAAG,CAAC;IAAA,KAChBC,KAAK,GAAG,CAAC;IAAA,KACTC,MAAM,GAAgB,EAAE;IAAA,KACxBC,YAAY,GAAG,CAAC;IAAA,KAChBC,cAAc,GAAG,IAAI;IAAA,KACrBC,WAAW,GAAG,EAAE;IAAA,KAChBC,iBAAiB,GAAa,EAAE;IAAA,KAEhCC,SAAS,GAAG;MACVC,IAAI,EAAE,CAAC;MACPC,MAAM,EAAE;IACV,CAAC;IAAA,KACDC,eAAe,GAAsB;MACnCC,cAAc,EAAEC,SAAS;MACzBC,iBAAiB,EAAED,SAAS;MAC5BJ,IAAI,EAAEI,SAAS;MACfH,MAAM,EAAEG,SAAS;MACjBE,QAAQ,EAAEF;IACZ,CAAC;IA/BC,IAAI,CAACf,IAAI,GAAGF,GAAG;IACf,IAAI,CAACU,WAAW,GAAGT,UAAU;IAE7B,KAAK,IAAImB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;MAC3B,IAAI,CAACT,iBAAiB,CAACU,IAAI,CAACpB,UAAU,CAACqB,MAAM,CAACF,CAAC,CAAC,CAAC;IACnD;IAEA,IAAI,CAACG,WAAW,CAAC,CAAC;EACpB;EAyBAA,WAAWA,CAAA,EAAG;IACZ,MAAMC,KAAK,GAAG,IAAI,CAACjB,MAAM;IAEzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;MAC3BI,KAAK,CAACH,IAAI,CAAC;QACTI,IAAI,EAAE,CAAC;QACPH,MAAM,EAAE,CAAC;QACTT,IAAI,EAAEI,SAAS;QACfH,MAAM,EAAEG,SAAS;QACjBD,cAAc,EAAEC,SAAS;QACzBC,iBAAiB,EAAED,SAAS;QAC5BE,QAAQ,EAAE;MACZ,CAAC,CAAC;IACJ;EACF;EAEAO,UAAUA,CACRD,IAAY,EACZH,MAAc,EACdT,IAAwB,EACxBC,MAA0B,EAC1BK,QAA4B,EAC5B;IACA,MAAMQ,MAAM,GAAG,IAAI,CAACnB,YAAY;IAChC,IAAImB,MAAM,KAAK,IAAI,CAACpB,MAAM,CAACqB,MAAM,EAAE;MACjC,IAAI,CAACL,WAAW,CAAC,CAAC;IACpB;IACA,MAAMM,IAAI,GAAG,IAAI,CAACtB,MAAM,CAACoB,MAAM,CAAC;IAChCE,IAAI,CAACJ,IAAI,GAAGA,IAAI;IAChBI,IAAI,CAACP,MAAM,GAAGA,MAAM;IACpBO,IAAI,CAAChB,IAAI,GAAGA,IAAI;IAChBgB,IAAI,CAACf,MAAM,GAAGA,MAAM;IACpBe,IAAI,CAACV,QAAQ,GAAGA,QAAQ;IAExB,IAAI,CAACX,YAAY,EAAE;EACrB;EAEAsB,SAASA,CAAA,EAAc;IACrB,IAAI,IAAI,CAACtB,YAAY,KAAK,CAAC,EAAE;MAC3B,MAAM,IAAIuB,KAAK,CAAC,6BAA6B,CAAC;IAChD;IACA,OAAO,IAAI,CAACxB,MAAM,CAAC,EAAE,IAAI,CAACC,YAAY,CAAC;EACzC;EAMAwB,GAAGA,CAAA,EAAG;IACJ,IAAI,CAACC,MAAM,CAAC,CAAC;IAEb,MAAMjC,GAAG,GAAG,IAAI,CAACE,IAAI;IACrB,MAAMgC,MAAM,GAAG;MAGbC,IAAI,EAAE,CAAC,IAAI,CAAChC,IAAI,GAAG,IAAI,CAACC,IAAI,EAAEgC,SAAS,CAAC,CAAC;MAEzCC,UAAU,EAAErC,GAAG,oBAAHA,GAAG,CAAEsC,UAAU,CAAC,CAAC;MAI7B,IAAIC,WAAWA,CAAA,EAAG;QAChB,OAAO,IAAI,CAACvC,GAAG;MACjB,CAAC;MAED,IAAIA,GAAGA,CAAA,EAAG;QACR,MAAMwC,SAAS,GAAGxC,GAAG,GAAGA,GAAG,CAACgC,GAAG,CAAC,CAAC,GAAG,IAAI;QACxCE,MAAM,CAAClC,GAAG,GAAGwC,SAAS;QACtB,OAAOA,SAAS;MAClB,CAAC;MACD,IAAIxC,GAAGA,CAACyC,KAAK,EAAE;QACbC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAE,KAAK,EAAE;UAAEO,KAAK;UAAEG,QAAQ,EAAE;QAAK,CAAC,CAAC;MACjE,CAAC;MAED,IAAIC,WAAWA,CAAA,EAAG;QAChB,MAAMC,QAAQ,GAAG9C,GAAG,oBAAHA,GAAG,CAAE+C,cAAc,CAAC,CAAC;QACtCb,MAAM,CAACW,WAAW,GAAGC,QAAQ;QAC7B,OAAOA,QAAQ;MACjB,CAAC;MACD,IAAID,WAAWA,CAACJ,KAAK,EAAE;QACrBC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAE,aAAa,EAAE;UAAEO,KAAK;UAAEG,QAAQ,EAAE;QAAK,CAAC,CAAC;MACzE;IACF,CAAC;IAED,OAAOV,MAAM;EACf;EAMAc,MAAMA,CAACC,GAAW,EAAEC,YAAqB,EAAQ;IAC/C,IAAI,CAACjB,MAAM,CAAC,CAAC;IAEb,IAAI,CAACkB,OAAO,CAACF,GAAG,EAAE,IAAI,CAAClC,eAAe,EAAEmC,YAAY,CAAC;EACvD;EAEAE,UAAUA,CAAC3B,IAAY,EAAQ;IAC7B,IAAI,CAACQ,MAAM,CAAC,CAAC;IACb,IAAI,CAACoB,WAAW,CAAC5B,IAAI,EAAE,CAAC,EAAE,IAAI,CAACV,eAAe,CAAC;EACjD;EAKAS,KAAKA,CAACC,IAAY,EAAQ;IAExB,IAAIA,IAAI,OAAuB,EAAE;MAC/B,OAAO,IAAI,CAACjB,YAAY,KAAK,CAAC,EAAE;QAC9B,MAAMiB,IAAI,GAAG,IAAI,CAAClB,MAAM,CAAC,IAAI,CAACC,YAAY,GAAG,CAAC,CAAC,CAACiB,IAAI;QACpD,IAAIA,IAAI,OAAoB,IAAIA,IAAI,MAAkB,EAAE;UACtD;QACF;QAEA,IAAI,CAACjB,YAAY,EAAE;MACrB;IACF;IAEA,MAAM8C,cAAc,GAAG,IAAI,CAACvC,eAAe;IAC3C,IAAI,CAACW,UAAU,CACbD,IAAI,EACJ,CAAC,EACD6B,cAAc,CAACzC,IAAI,EACnByC,cAAc,CAACxC,MAAM,EACrBwC,cAAc,CAACnC,QACjB,CAAC;EACH;EAKAoC,gBAAgBA,CAACjC,MAAc,EAAQ;IACrC,IAAIA,MAAM,KAAK,CAAC,EAAE;IAClB,IAAI,CAACI,UAAU,CAAC,CAAC,CAAC,EAAEJ,MAAM,EAAEL,SAAS,EAAEA,SAAS,EAAEA,SAAS,CAAC;EAC9D;EAEAgB,MAAMA,CAAA,EAAS;IACb,MAAMuB,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,MAAMgB,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoC,WAAW,EAAEpC,CAAC,EAAE,EAAE;MACpC,MAAMS,IAAe,GAAGL,KAAK,CAACJ,CAAC,CAAC;MAChC,IAAI,CAACiC,WAAW,CAACxB,IAAI,CAACJ,IAAI,EAAEI,IAAI,CAACP,MAAM,EAAEO,IAAI,CAAC;IAChD;IACA,IAAI,CAACrB,YAAY,GAAG,CAAC;EACvB;EAEA6C,WAAWA,CACT5B,IAAY,EACZH,MAAc,EACdmC,SAA4B,EACtB;IACN,IAAI,CAACnD,KAAK,GAAGmB,IAAI;IAEjB,IAAIA,IAAI,KAAK,CAAC,CAAC,EAAE;MACf,MAAMiC,eAAe,GAAG,IAAI,CAAC/C,iBAAiB,CAACW,MAAM,CAAC;MACtD,IAAIoC,eAAe,KAAKzC,SAAS,EAAE;QACjC,IAAI,CAACb,IAAI,IAAIsD,eAAe;MAC9B,CAAC,MAAM;QACL,IAAI,CAACtD,IAAI,IACPkB,MAAM,GAAG,CAAC,GAAG,IAAI,CAACZ,WAAW,CAACY,MAAM,CAACA,MAAM,CAAC,GAAG,IAAI,CAACZ,WAAW;MACnE;IACF,CAAC,MAAM;MACL,IAAI,CAACN,IAAI,IACPkB,MAAM,GAAG,CAAC,GACNqC,MAAM,CAACC,YAAY,CAACnC,IAAI,CAAC,CAACH,MAAM,CAACA,MAAM,CAAC,GACxCqC,MAAM,CAACC,YAAY,CAACnC,IAAI,CAAC;IACjC;IAEA,IAAIA,IAAI,OAAuB,EAAE;MAC/B,IAAI,CAACoC,KAAK,CACRJ,SAAS,CAAC5C,IAAI,EACd4C,SAAS,CAAC3C,MAAM,EAChB2C,SAAS,CAACzC,cAAc,EACxByC,SAAS,CAACvC,iBAAiB,EAC3BuC,SAAS,CAACtC,QACZ,CAAC;MACD,IAAI,CAACP,SAAS,CAACE,MAAM,IAAIQ,MAAM;IACjC,CAAC,MAAM;MACL,IAAI,CAACV,SAAS,CAACC,IAAI,EAAE;MACrB,IAAI,CAACD,SAAS,CAACE,MAAM,GAAG,CAAC;IAC3B;IAEA,IAAI,IAAI,CAACL,cAAc,EAAE;MACvBgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;EACF;EAEAkC,OAAOA,CACLF,GAAW,EACXQ,SAA4B,EAC5BP,YAAqB,EACf;IACN,MAAMY,GAAG,GAAGb,GAAG,CAACrB,MAAM;IACtB,MAAMmC,QAAQ,GAAG,IAAI,CAACnD,SAAS;IAE/B,IAAI,CAACN,KAAK,GAAG2C,GAAG,CAACe,UAAU,CAACF,GAAG,GAAG,CAAC,CAAC;IAEpC,IAAI,EAAE,IAAI,CAACzD,YAAY,GAAG,IAAI,EAAE;MAE9B,CAAC,IAAI,CAACD,IAAI;MACV,IAAI,CAACD,IAAI,IAAI,IAAI,CAACC,IAAI;MACtB,IAAI,CAACA,IAAI,GAAG6C,GAAG;MACf,IAAI,CAAC5C,YAAY,GAAG,CAAC;IACvB,CAAC,MAAM;MACL,IAAI,CAACD,IAAI,IAAI6C,GAAG;IAClB;IAEA,IAAI,CAACC,YAAY,IAAI,CAAC,IAAI,CAAChD,IAAI,EAAE;MAC/B6D,QAAQ,CAACjD,MAAM,IAAIgD,GAAG;MACtB;IACF;IAEA,MAAM;MAAEhD,MAAM;MAAEE,cAAc;MAAEE,iBAAiB;MAAEC;IAAS,CAAC,GAAGsC,SAAS;IACzE,IAAI5C,IAAI,GAAG4C,SAAS,CAAC5C,IAAI;IAEzB,IACE,CAACG,cAAc,IAAI,IAAI,IAAIE,iBAAiB,IAAI,IAAI,KACpD,IAAI,CAACT,cAAc,EACnB;MACAgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;IAMA,IAAIG,CAAC,GAAG6B,GAAG,CAACgB,OAAO,CAAC,IAAI,CAAC;IACzB,IAAIC,IAAI,GAAG,CAAC;IAIZ,IAAI9C,CAAC,KAAK,CAAC,EAAE;MACX,IAAI,CAACyC,KAAK,CAAChD,IAAI,EAAEC,MAAM,EAAEE,cAAc,EAAEE,iBAAiB,EAAEC,QAAQ,CAAC;IACvE;IAGA,OAAOC,CAAC,KAAK,CAAC,CAAC,EAAE;MACf2C,QAAQ,CAAClD,IAAI,EAAE;MACfkD,QAAQ,CAACjD,MAAM,GAAG,CAAC;MACnBoD,IAAI,GAAG9C,CAAC,GAAG,CAAC;MAKZ,IAAI8C,IAAI,GAAGJ,GAAG,IAAIjD,IAAI,KAAKI,SAAS,EAAE;QACpC,IAAI,CAAC4C,KAAK,CAAC,EAAEhD,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAEM,QAAQ,CAAC;MAC7C;MACAC,CAAC,GAAG6B,GAAG,CAACgB,OAAO,CAAC,IAAI,EAAEC,IAAI,CAAC;IAC7B;IACAH,QAAQ,CAACjD,MAAM,IAAIgD,GAAG,GAAGI,IAAI;EAC/B;EAEAL,KAAKA,CACHhD,IAAwB,EACxBC,MAA0B,EAC1BE,cAAkC,EAClCE,iBAAkC,EAClCC,QAA4B,EACtB;IAAA,IAAAgD,UAAA;IACN,CAAAA,UAAA,OAAI,CAACjE,IAAI,aAATiE,UAAA,CAAWC,IAAI,CACb,IAAI,CAACxD,SAAS,EACdC,IAAI,EACJC,MAAM,EACNE,cAAc,EACdE,iBAAiB,EACjBC,QACF,CAAC;EACH;EAEAkD,qBAAqBA,CAAA,EAAS;IAC5B,MAAMb,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IACEgD,WAAW,KAAK,CAAC,IACjB,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,OAAuB,EACxD;MACA,IAAI,CAACjB,YAAY,EAAE;IACrB;EACF;EAEA8D,mBAAmBA,CAAA,EAAS;IAC1B,MAAMd,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IACEgD,WAAW,KAAK,CAAC,IACjB,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,OAAwB,EACzD;MACA,IAAI,CAACjB,YAAY,EAAE;IACrB;EACF;EAEA+D,WAAWA,CAAA,EAAW;IACpB,MAAMf,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,OAAOgD,WAAW,KAAK,CAAC,GAAG,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,GAAG,IAAI,CAACnB,KAAK;EAC3E;EAMAkE,eAAeA,CAAA,EAAW;IACxB,MAAMhB,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IAAIiE,KAAK,GAAG,CAAC;IACb,IAAIjB,WAAW,KAAK,CAAC,EAAE,OAAO,IAAI,CAAClD,KAAK,OAAuB,GAAG,CAAC,GAAG,CAAC;IACvE,KAAK,IAAIc,CAAC,GAAGoC,WAAW,GAAG,CAAC,EAAEpC,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MACzC,IAAI,IAAI,CAACb,MAAM,CAACa,CAAC,CAAC,CAACK,IAAI,OAAuB,EAAE;QAC9C;MACF;MACAgD,KAAK,EAAE;IACT;IACA,OAAOA,KAAK,KAAKjB,WAAW,IAAI,IAAI,CAAClD,KAAK,OAAuB,GAC7DmE,KAAK,GAAG,CAAC,GACTA,KAAK;EACX;EAKAC,sBAAsBA,CAAA,EAAW;IAC/B,MAAMlD,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,MAAMiD,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IAAIgD,WAAW,KAAK,CAAC,EAAE;MAErB,MAAMmB,MAAM,GAAGnD,KAAK,CAACgC,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI;MAC1C,IAAIkD,MAAM,OAAuB,EAAE;MACnC,IAAInB,WAAW,GAAG,CAAC,EAAE;QACnB,OAAOhC,KAAK,CAACgC,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI;MACpC,CAAC,MAAM;QACL,OAAO,IAAI,CAACnB,KAAK;MACnB;IACF;EAGF;EAEAsE,UAAUA,CAAA,EAAY;IACpB,OAAO,IAAI,CAACpE,YAAY,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAACF,KAAK;EAChD;EAyBAuE,WAAWA,CAACC,GAAoB,EAAEC,EAAc,EAAE;IAChD,IAAI,CAAC,IAAI,CAAC7E,IAAI,EAAE;MACd6E,EAAE,CAAC,CAAC;MACJ;IACF;IAEA,IAAI,CAACC,MAAM,CAAC,OAAO,EAAEF,GAAG,CAAC;IAEzB,MAAM9D,cAAc,GAAG8D,GAAG,CAAC9D,cAAc;IACzC,MAAMyC,SAAS,GAAG,IAAI,CAAC1C,eAAe;IACtC,IAAIC,cAAc,EAAE;MAClB,IAAI,CAACP,cAAc,GAAG,KAAK;MAC3BgD,SAAS,CAACzC,cAAc,GAAGA,cAAc;IAC3C;IACA+D,EAAE,CAAC,CAAC;IAEJ,IAAI/D,cAAc,EAAE;MAClB,IAAI,CAACP,cAAc,GAAG,IAAI;MAC1BgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;IACA,IAAI,CAAC+D,MAAM,CAAC,KAAK,EAAEF,GAAG,CAAC;EACzB;EAOAE,MAAMA,CAACC,IAAqB,EAAEH,GAAoB,EAAQ;IACxD,IAAI,CAAC,IAAI,CAAC5E,IAAI,EAAE;IAIhB,IAAI,CAACgF,kBAAkB,CAACD,IAAI,EAAEH,GAAG,EAAE,CAAC,CAAC;EACvC;EAEAK,gBAAgBA,CACdF,IAAqB,EACrBH,GAAoB,EACpBM,YAAoB,EACd;IACN,IAAI,CAAC,IAAI,CAAClF,IAAI,EAAE;IAEhB,IAAI,CAACgF,kBAAkB,CAACD,IAAI,EAAEH,GAAG,EAAEM,YAAY,CAAC;EAClD;EAEAF,kBAAkBA,CAACD,IAAqB,EAAEH,GAAQ,EAAEM,YAAoB,EAAE;IACxE,MAAMC,GAAG,GAAGP,GAAG,CAACG,IAAI,CAAC;IACrB,MAAMK,MAAM,GAAG,IAAI,CAACvE,eAAe;IAEnC,IAAIsE,GAAG,EAAE;MACPC,MAAM,CAACzE,IAAI,GAAGwE,GAAG,CAACxE,IAAI;MAEtByE,MAAM,CAACxE,MAAM,GAAGyE,IAAI,CAACC,GAAG,CAACH,GAAG,CAACvE,MAAM,GAAGsE,YAAY,EAAE,CAAC,CAAC;MACtDE,MAAM,CAACnE,QAAQ,GAAG2D,GAAG,CAAC3D,QAAQ;IAChC;EACF;EAEAsE,gBAAgBA,CAAA,EAAW;IACzB,MAAMjE,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,MAAMiD,WAAW,GAAG,IAAI,CAAChD,YAAY;IAErC,IAAIkF,SAAS,GAAG,CAAC,CAAC;IAClB,IAAI5B,GAAG,GAAG,CAAC;IACX,KAAK,IAAI1C,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoC,WAAW,EAAEpC,CAAC,EAAE,EAAE;MACpC,MAAMS,IAAI,GAAGL,KAAK,CAACJ,CAAC,CAAC;MACrB,IAAIS,IAAI,CAACJ,IAAI,OAAuB,EAAE;QACpCiE,SAAS,GAAG5B,GAAG;MACjB;MACAA,GAAG,IAAIjC,IAAI,CAACP,MAAM;IACpB;IAEA,OAAOoE,SAAS,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC9E,SAAS,CAACE,MAAM,GAAGgD,GAAG,GAAGA,GAAG,GAAG,CAAC,GAAG4B,SAAS;EAC7E;EAEAC,cAAcA,CAAA,EAAW;IACvB,IAAIlB,KAAK,GAAG,CAAC;IAEb,MAAMjD,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,IAAI,CAACZ,YAAY,EAAEY,CAAC,EAAE,EAAE;MAC1C,IAAII,KAAK,CAACJ,CAAC,CAAC,CAACK,IAAI,OAAuB,EAAE;QACxCgD,KAAK,EAAE;MACT;IACF;IAEA,OAAO,IAAI,CAAC7D,SAAS,CAACC,IAAI,GAAG4D,KAAK;EACpC;AACF;AAACmB,OAAA,CAAAC,OAAA,GAAA/F,MAAA","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["Buffer","constructor","map","indentChar","_map","_buf","_str","_appendCount","_last","_queue","_queueCursor","_canMarkIdName","_indentChar","_fastIndentations","_position","line","column","_sourcePosition","identifierName","undefined","identifierNamePos","filename","i","push","repeat","_allocQueue","queue","char","_pushQueue","cursor","length","item","_popQueue","Error","get","_flush","result","code","trimRight","decodedMap","getDecoded","__mergedMap","resultMap","value","Object","defineProperty","writable","rawMappings","mappings","getRawMappings","append","str","maybeNewline","_append","appendChar","_appendChar","sourcePosition","queueIndentation","queueCursor","sourcePos","fastIndentation","String","fromCharCode","_mark","len","position","charCodeAt","indexOf","last","_this$_map","mark","removeTrailingNewline","removeLastSemicolon","getLastChar","getNewlineCount","count","endsWithCharAndNewline","lastCp","hasContent","exactSource","loc","cb","source","prop","_normalizePosition","sourceWithOffset","columnOffset","pos","target","Math","max","getCurrentColumn","lastIndex","getCurrentLine","exports","default"],"sources":["../src/buffer.ts"],"sourcesContent":["import type SourceMap from \"./source-map.ts\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charcodes from \"charcodes\";\n\nexport type Pos = {\n line: number;\n column: number;\n};\nexport type Loc = {\n start?: Pos;\n end?: Pos;\n filename?: string;\n};\ntype SourcePos = {\n line: number | undefined;\n column: number | undefined;\n identifierName: string | undefined;\n filename: string | undefined;\n};\ntype InternalSourcePos = SourcePos & { identifierNamePos: Pos };\n\ntype QueueItem = {\n char: number;\n repeat: number;\n line: number | undefined;\n column: number | undefined;\n identifierName: undefined; // Not used, it always undefined.\n identifierNamePos: undefined; // Not used, it always undefined.\n filename: string | undefined;\n};\n\nexport default class Buffer {\n constructor(map: SourceMap | null, indentChar: string) {\n this._map = map;\n this._indentChar = indentChar;\n\n for (let i = 0; i < 64; i++) {\n this._fastIndentations.push(indentChar.repeat(i));\n }\n\n this._allocQueue();\n }\n\n _map: SourceMap = null;\n _buf = \"\";\n _str = \"\";\n _appendCount = 0;\n _last = 0;\n _queue: QueueItem[] = [];\n _queueCursor = 0;\n _canMarkIdName = true;\n _indentChar = \"\";\n _fastIndentations: string[] = [];\n\n _position = {\n line: 1,\n column: 0,\n };\n _sourcePosition: InternalSourcePos = {\n identifierName: undefined,\n identifierNamePos: undefined,\n line: undefined,\n column: undefined,\n filename: undefined,\n };\n\n _allocQueue() {\n const queue = this._queue;\n\n for (let i = 0; i < 16; i++) {\n queue.push({\n char: 0,\n repeat: 1,\n line: undefined,\n column: undefined,\n identifierName: undefined,\n identifierNamePos: undefined,\n filename: \"\",\n });\n }\n }\n\n _pushQueue(\n char: number,\n repeat: number,\n line: number | undefined,\n column: number | undefined,\n filename: string | undefined,\n ) {\n const cursor = this._queueCursor;\n if (cursor === this._queue.length) {\n this._allocQueue();\n }\n const item = this._queue[cursor];\n item.char = char;\n item.repeat = repeat;\n item.line = line;\n item.column = column;\n item.filename = filename;\n\n this._queueCursor++;\n }\n\n _popQueue(): QueueItem {\n if (this._queueCursor === 0) {\n throw new Error(\"Cannot pop from empty queue\");\n }\n return this._queue[--this._queueCursor];\n }\n\n /**\n * Get the final string output from the buffer, along with the sourcemap if one exists.\n */\n\n get() {\n this._flush();\n\n const map = this._map;\n const result = {\n // Whatever trim is used here should not execute a regex against the\n // source string since it may be arbitrarily large after all transformations\n code: (this._buf + this._str).trimRight(),\n // Decoded sourcemap is free to generate.\n decodedMap: map?.getDecoded(),\n // Used as a marker for backwards compatibility. We moved input map merging\n // into the generator. We cannot merge the input map a second time, so the\n // presence of this field tells us we've already done the work.\n get __mergedMap() {\n return this.map;\n },\n // Encoding the sourcemap is moderately CPU expensive.\n get map() {\n const resultMap = map ? map.get() : null;\n result.map = resultMap;\n return resultMap;\n },\n set map(value) {\n Object.defineProperty(result, \"map\", { value, writable: true });\n },\n // Retrieving the raw mappings is very memory intensive.\n get rawMappings() {\n const mappings = map?.getRawMappings();\n result.rawMappings = mappings;\n return mappings;\n },\n set rawMappings(value) {\n Object.defineProperty(result, \"rawMappings\", { value, writable: true });\n },\n };\n\n return result;\n }\n\n /**\n * Add a string to the buffer that cannot be reverted.\n */\n\n append(str: string, maybeNewline: boolean): void {\n this._flush();\n\n this._append(str, this._sourcePosition, maybeNewline);\n }\n\n appendChar(char: number): void {\n this._flush();\n this._appendChar(char, 1, this._sourcePosition);\n }\n\n /**\n * Add a string to the buffer than can be reverted.\n */\n queue(char: number): void {\n // Drop trailing spaces when a newline is inserted.\n if (char === charcodes.lineFeed) {\n while (this._queueCursor !== 0) {\n const char = this._queue[this._queueCursor - 1].char;\n if (char !== charcodes.space && char !== charcodes.tab) {\n break;\n }\n\n this._queueCursor--;\n }\n }\n\n const sourcePosition = this._sourcePosition;\n this._pushQueue(\n char,\n 1,\n sourcePosition.line,\n sourcePosition.column,\n sourcePosition.filename,\n );\n }\n\n /**\n * Same as queue, but this indentation will never have a sourcemap marker.\n */\n queueIndentation(repeat: number): void {\n if (repeat === 0) return;\n this._pushQueue(-1, repeat, undefined, undefined, undefined);\n }\n\n _flush(): void {\n const queueCursor = this._queueCursor;\n const queue = this._queue;\n for (let i = 0; i < queueCursor; i++) {\n const item: QueueItem = queue[i];\n this._appendChar(item.char, item.repeat, item);\n }\n this._queueCursor = 0;\n }\n\n _appendChar(\n char: number,\n repeat: number,\n sourcePos: InternalSourcePos,\n ): void {\n this._last = char;\n\n if (char === -1) {\n const fastIndentation = this._fastIndentations[repeat];\n if (fastIndentation !== undefined) {\n this._str += fastIndentation;\n } else {\n this._str +=\n repeat > 1 ? this._indentChar.repeat(repeat) : this._indentChar;\n }\n } else {\n this._str +=\n repeat > 1\n ? String.fromCharCode(char).repeat(repeat)\n : String.fromCharCode(char);\n }\n\n if (char !== charcodes.lineFeed) {\n this._mark(\n sourcePos.line,\n sourcePos.column,\n sourcePos.identifierName,\n sourcePos.identifierNamePos,\n sourcePos.filename,\n );\n this._position.column += repeat;\n } else {\n this._position.line++;\n this._position.column = 0;\n }\n\n if (this._canMarkIdName) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n }\n\n _append(\n str: string,\n sourcePos: InternalSourcePos,\n maybeNewline: boolean,\n ): void {\n const len = str.length;\n const position = this._position;\n\n this._last = str.charCodeAt(len - 1);\n\n if (++this._appendCount > 4096) {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n +this._str; // Unexplainable huge performance boost. Ref: https://github.com/davidmarkclements/flatstr License: MIT\n this._buf += this._str;\n this._str = str;\n this._appendCount = 0;\n } else {\n this._str += str;\n }\n\n if (!maybeNewline && !this._map) {\n position.column += len;\n return;\n }\n\n const { column, identifierName, identifierNamePos, filename } = sourcePos;\n let line = sourcePos.line;\n\n if (\n (identifierName != null || identifierNamePos != null) &&\n this._canMarkIdName\n ) {\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n\n // Search for newline chars. We search only for `\\n`, since both `\\r` and\n // `\\r\\n` are normalized to `\\n` during parse. We exclude `\\u2028` and\n // `\\u2029` for performance reasons, they're so uncommon that it's probably\n // ok. It's also unclear how other sourcemap utilities handle them...\n let i = str.indexOf(\"\\n\");\n let last = 0;\n\n // If the string starts with a newline char, then adding a mark is redundant.\n // This catches both \"no newlines\" and \"newline after several chars\".\n if (i !== 0) {\n this._mark(line, column, identifierName, identifierNamePos, filename);\n }\n\n // Now, find each remaining newline char in the string.\n while (i !== -1) {\n position.line++;\n position.column = 0;\n last = i + 1;\n\n // We mark the start of each line, which happens directly after this newline char\n // unless this is the last char.\n // When manually adding multi-line content (such as a comment), `line` will be `undefined`.\n if (last < len && line !== undefined) {\n this._mark(++line, 0, null, null, filename);\n }\n i = str.indexOf(\"\\n\", last);\n }\n position.column += len - last;\n }\n\n _mark(\n line: number | undefined,\n column: number | undefined,\n identifierName: string | undefined,\n identifierNamePos: Pos | undefined,\n filename: string | undefined,\n ): void {\n this._map?.mark(\n this._position,\n line,\n column,\n identifierName,\n identifierNamePos,\n filename,\n );\n }\n\n removeTrailingNewline(): void {\n const queueCursor = this._queueCursor;\n if (\n queueCursor !== 0 &&\n this._queue[queueCursor - 1].char === charcodes.lineFeed\n ) {\n this._queueCursor--;\n }\n }\n\n removeLastSemicolon(): void {\n const queueCursor = this._queueCursor;\n if (\n queueCursor !== 0 &&\n this._queue[queueCursor - 1].char === charcodes.semicolon\n ) {\n this._queueCursor--;\n }\n }\n\n getLastChar(): number {\n const queueCursor = this._queueCursor;\n return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last;\n }\n\n /**\n * This will only detect at most 1 newline after a call to `flush()`,\n * but this has not been found so far, and an accurate count can be achieved if needed later.\n */\n getNewlineCount(): number {\n const queueCursor = this._queueCursor;\n let count = 0;\n if (queueCursor === 0) return this._last === charcodes.lineFeed ? 1 : 0;\n for (let i = queueCursor - 1; i >= 0; i--) {\n if (this._queue[i].char !== charcodes.lineFeed) {\n break;\n }\n count++;\n }\n return count === queueCursor && this._last === charcodes.lineFeed\n ? count + 1\n : count;\n }\n\n /**\n * check if current _last + queue ends with newline, return the character before newline\n */\n endsWithCharAndNewline(): number {\n const queue = this._queue;\n const queueCursor = this._queueCursor;\n if (queueCursor !== 0) {\n // every element in queue is one-length whitespace string\n const lastCp = queue[queueCursor - 1].char;\n if (lastCp !== charcodes.lineFeed) return;\n if (queueCursor > 1) {\n return queue[queueCursor - 2].char;\n } else {\n return this._last;\n }\n }\n // We assume that everything being matched is at most a single token plus some whitespace,\n // which everything currently is, but otherwise we'd have to expand _last or check _buf.\n }\n\n hasContent(): boolean {\n return this._queueCursor !== 0 || !!this._last;\n }\n\n /**\n * Certain sourcemap usecases expect mappings to be more accurate than\n * Babel's generic sourcemap handling allows. For now, we special-case\n * identifiers to allow for the primary cases to work.\n * The goal of this line is to ensure that the map output from Babel will\n * have an exact range on identifiers in the output code. Without this\n * line, Babel would potentially include some number of trailing tokens\n * that are printed after the identifier, but before another location has\n * been assigned.\n * This allows tooling like Rollup and Webpack to more accurately perform\n * their own transformations. Most importantly, this allows the import/export\n * transformations performed by those tools to loose less information when\n * applying their own transformations on top of the code and map results\n * generated by Babel itself.\n *\n * The primary example of this is the snippet:\n *\n * import mod from \"mod\";\n * mod();\n *\n * With this line, there will be one mapping range over \"mod\" and another\n * over \"();\", where previously it would have been a single mapping.\n */\n exactSource(loc: Loc | undefined, cb: () => void) {\n if (!this._map) {\n cb();\n return;\n }\n\n this.source(\"start\", loc);\n // @ts-expect-error identifierName is not defined\n const identifierName = loc.identifierName;\n const sourcePos = this._sourcePosition;\n if (identifierName) {\n this._canMarkIdName = false;\n sourcePos.identifierName = identifierName;\n }\n cb();\n\n if (identifierName) {\n this._canMarkIdName = true;\n sourcePos.identifierName = undefined;\n sourcePos.identifierNamePos = undefined;\n }\n this.source(\"end\", loc);\n }\n\n /**\n * Sets a given position as the current source location so generated code after this call\n * will be given this position in the sourcemap.\n */\n\n source(prop: \"start\" | \"end\", loc: Loc | undefined): void {\n if (!this._map) return;\n\n // Since this is called extremely often, we reuse the same _sourcePosition\n // object for the whole lifetime of the buffer.\n this._normalizePosition(prop, loc, 0);\n }\n\n sourceWithOffset(\n prop: \"start\" | \"end\",\n loc: Loc | undefined,\n columnOffset: number,\n ): void {\n if (!this._map) return;\n\n this._normalizePosition(prop, loc, columnOffset);\n }\n\n _normalizePosition(prop: \"start\" | \"end\", loc: Loc, columnOffset: number) {\n const pos = loc[prop];\n const target = this._sourcePosition;\n\n if (pos) {\n target.line = pos.line;\n // TODO: Fix https://github.com/babel/babel/issues/15712 in downstream\n target.column = Math.max(pos.column + columnOffset, 0);\n target.filename = loc.filename;\n }\n }\n\n getCurrentColumn(): number {\n const queue = this._queue;\n const queueCursor = this._queueCursor;\n\n let lastIndex = -1;\n let len = 0;\n for (let i = 0; i < queueCursor; i++) {\n const item = queue[i];\n if (item.char === charcodes.lineFeed) {\n lastIndex = len;\n }\n len += item.repeat;\n }\n\n return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex;\n }\n\n getCurrentLine(): number {\n let count = 0;\n\n const queue = this._queue;\n for (let i = 0; i < this._queueCursor; i++) {\n if (queue[i].char === charcodes.lineFeed) {\n count++;\n }\n }\n\n return this._position.line + count;\n }\n}\n"],"mappings":";;;;;;AAiCe,MAAMA,MAAM,CAAC;EAC1BC,WAAWA,CAACC,GAAqB,EAAEC,UAAkB,EAAE;IAAA,KAWvDC,IAAI,GAAc,IAAI;IAAA,KACtBC,IAAI,GAAG,EAAE;IAAA,KACTC,IAAI,GAAG,EAAE;IAAA,KACTC,YAAY,GAAG,CAAC;IAAA,KAChBC,KAAK,GAAG,CAAC;IAAA,KACTC,MAAM,GAAgB,EAAE;IAAA,KACxBC,YAAY,GAAG,CAAC;IAAA,KAChBC,cAAc,GAAG,IAAI;IAAA,KACrBC,WAAW,GAAG,EAAE;IAAA,KAChBC,iBAAiB,GAAa,EAAE;IAAA,KAEhCC,SAAS,GAAG;MACVC,IAAI,EAAE,CAAC;MACPC,MAAM,EAAE;IACV,CAAC;IAAA,KACDC,eAAe,GAAsB;MACnCC,cAAc,EAAEC,SAAS;MACzBC,iBAAiB,EAAED,SAAS;MAC5BJ,IAAI,EAAEI,SAAS;MACfH,MAAM,EAAEG,SAAS;MACjBE,QAAQ,EAAEF;IACZ,CAAC;IA/BC,IAAI,CAACf,IAAI,GAAGF,GAAG;IACf,IAAI,CAACU,WAAW,GAAGT,UAAU;IAE7B,KAAK,IAAImB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;MAC3B,IAAI,CAACT,iBAAiB,CAACU,IAAI,CAACpB,UAAU,CAACqB,MAAM,CAACF,CAAC,CAAC,CAAC;IACnD;IAEA,IAAI,CAACG,WAAW,CAAC,CAAC;EACpB;EAyBAA,WAAWA,CAAA,EAAG;IACZ,MAAMC,KAAK,GAAG,IAAI,CAACjB,MAAM;IAEzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,EAAE,EAAEA,CAAC,EAAE,EAAE;MAC3BI,KAAK,CAACH,IAAI,CAAC;QACTI,IAAI,EAAE,CAAC;QACPH,MAAM,EAAE,CAAC;QACTT,IAAI,EAAEI,SAAS;QACfH,MAAM,EAAEG,SAAS;QACjBD,cAAc,EAAEC,SAAS;QACzBC,iBAAiB,EAAED,SAAS;QAC5BE,QAAQ,EAAE;MACZ,CAAC,CAAC;IACJ;EACF;EAEAO,UAAUA,CACRD,IAAY,EACZH,MAAc,EACdT,IAAwB,EACxBC,MAA0B,EAC1BK,QAA4B,EAC5B;IACA,MAAMQ,MAAM,GAAG,IAAI,CAACnB,YAAY;IAChC,IAAImB,MAAM,KAAK,IAAI,CAACpB,MAAM,CAACqB,MAAM,EAAE;MACjC,IAAI,CAACL,WAAW,CAAC,CAAC;IACpB;IACA,MAAMM,IAAI,GAAG,IAAI,CAACtB,MAAM,CAACoB,MAAM,CAAC;IAChCE,IAAI,CAACJ,IAAI,GAAGA,IAAI;IAChBI,IAAI,CAACP,MAAM,GAAGA,MAAM;IACpBO,IAAI,CAAChB,IAAI,GAAGA,IAAI;IAChBgB,IAAI,CAACf,MAAM,GAAGA,MAAM;IACpBe,IAAI,CAACV,QAAQ,GAAGA,QAAQ;IAExB,IAAI,CAACX,YAAY,EAAE;EACrB;EAEAsB,SAASA,CAAA,EAAc;IACrB,IAAI,IAAI,CAACtB,YAAY,KAAK,CAAC,EAAE;MAC3B,MAAM,IAAIuB,KAAK,CAAC,6BAA6B,CAAC;IAChD;IACA,OAAO,IAAI,CAACxB,MAAM,CAAC,EAAE,IAAI,CAACC,YAAY,CAAC;EACzC;EAMAwB,GAAGA,CAAA,EAAG;IACJ,IAAI,CAACC,MAAM,CAAC,CAAC;IAEb,MAAMjC,GAAG,GAAG,IAAI,CAACE,IAAI;IACrB,MAAMgC,MAAM,GAAG;MAGbC,IAAI,EAAE,CAAC,IAAI,CAAChC,IAAI,GAAG,IAAI,CAACC,IAAI,EAAEgC,SAAS,CAAC,CAAC;MAEzCC,UAAU,EAAErC,GAAG,oBAAHA,GAAG,CAAEsC,UAAU,CAAC,CAAC;MAI7B,IAAIC,WAAWA,CAAA,EAAG;QAChB,OAAO,IAAI,CAACvC,GAAG;MACjB,CAAC;MAED,IAAIA,GAAGA,CAAA,EAAG;QACR,MAAMwC,SAAS,GAAGxC,GAAG,GAAGA,GAAG,CAACgC,GAAG,CAAC,CAAC,GAAG,IAAI;QACxCE,MAAM,CAAClC,GAAG,GAAGwC,SAAS;QACtB,OAAOA,SAAS;MAClB,CAAC;MACD,IAAIxC,GAAGA,CAACyC,KAAK,EAAE;QACbC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAE,KAAK,EAAE;UAAEO,KAAK;UAAEG,QAAQ,EAAE;QAAK,CAAC,CAAC;MACjE,CAAC;MAED,IAAIC,WAAWA,CAAA,EAAG;QAChB,MAAMC,QAAQ,GAAG9C,GAAG,oBAAHA,GAAG,CAAE+C,cAAc,CAAC,CAAC;QACtCb,MAAM,CAACW,WAAW,GAAGC,QAAQ;QAC7B,OAAOA,QAAQ;MACjB,CAAC;MACD,IAAID,WAAWA,CAACJ,KAAK,EAAE;QACrBC,MAAM,CAACC,cAAc,CAACT,MAAM,EAAE,aAAa,EAAE;UAAEO,KAAK;UAAEG,QAAQ,EAAE;QAAK,CAAC,CAAC;MACzE;IACF,CAAC;IAED,OAAOV,MAAM;EACf;EAMAc,MAAMA,CAACC,GAAW,EAAEC,YAAqB,EAAQ;IAC/C,IAAI,CAACjB,MAAM,CAAC,CAAC;IAEb,IAAI,CAACkB,OAAO,CAACF,GAAG,EAAE,IAAI,CAAClC,eAAe,EAAEmC,YAAY,CAAC;EACvD;EAEAE,UAAUA,CAAC3B,IAAY,EAAQ;IAC7B,IAAI,CAACQ,MAAM,CAAC,CAAC;IACb,IAAI,CAACoB,WAAW,CAAC5B,IAAI,EAAE,CAAC,EAAE,IAAI,CAACV,eAAe,CAAC;EACjD;EAKAS,KAAKA,CAACC,IAAY,EAAQ;IAExB,IAAIA,IAAI,OAAuB,EAAE;MAC/B,OAAO,IAAI,CAACjB,YAAY,KAAK,CAAC,EAAE;QAC9B,MAAMiB,IAAI,GAAG,IAAI,CAAClB,MAAM,CAAC,IAAI,CAACC,YAAY,GAAG,CAAC,CAAC,CAACiB,IAAI;QACpD,IAAIA,IAAI,OAAoB,IAAIA,IAAI,MAAkB,EAAE;UACtD;QACF;QAEA,IAAI,CAACjB,YAAY,EAAE;MACrB;IACF;IAEA,MAAM8C,cAAc,GAAG,IAAI,CAACvC,eAAe;IAC3C,IAAI,CAACW,UAAU,CACbD,IAAI,EACJ,CAAC,EACD6B,cAAc,CAACzC,IAAI,EACnByC,cAAc,CAACxC,MAAM,EACrBwC,cAAc,CAACnC,QACjB,CAAC;EACH;EAKAoC,gBAAgBA,CAACjC,MAAc,EAAQ;IACrC,IAAIA,MAAM,KAAK,CAAC,EAAE;IAClB,IAAI,CAACI,UAAU,CAAC,CAAC,CAAC,EAAEJ,MAAM,EAAEL,SAAS,EAAEA,SAAS,EAAEA,SAAS,CAAC;EAC9D;EAEAgB,MAAMA,CAAA,EAAS;IACb,MAAMuB,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,MAAMgB,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoC,WAAW,EAAEpC,CAAC,EAAE,EAAE;MACpC,MAAMS,IAAe,GAAGL,KAAK,CAACJ,CAAC,CAAC;MAChC,IAAI,CAACiC,WAAW,CAACxB,IAAI,CAACJ,IAAI,EAAEI,IAAI,CAACP,MAAM,EAAEO,IAAI,CAAC;IAChD;IACA,IAAI,CAACrB,YAAY,GAAG,CAAC;EACvB;EAEA6C,WAAWA,CACT5B,IAAY,EACZH,MAAc,EACdmC,SAA4B,EACtB;IACN,IAAI,CAACnD,KAAK,GAAGmB,IAAI;IAEjB,IAAIA,IAAI,KAAK,CAAC,CAAC,EAAE;MACf,MAAMiC,eAAe,GAAG,IAAI,CAAC/C,iBAAiB,CAACW,MAAM,CAAC;MACtD,IAAIoC,eAAe,KAAKzC,SAAS,EAAE;QACjC,IAAI,CAACb,IAAI,IAAIsD,eAAe;MAC9B,CAAC,MAAM;QACL,IAAI,CAACtD,IAAI,IACPkB,MAAM,GAAG,CAAC,GAAG,IAAI,CAACZ,WAAW,CAACY,MAAM,CAACA,MAAM,CAAC,GAAG,IAAI,CAACZ,WAAW;MACnE;IACF,CAAC,MAAM;MACL,IAAI,CAACN,IAAI,IACPkB,MAAM,GAAG,CAAC,GACNqC,MAAM,CAACC,YAAY,CAACnC,IAAI,CAAC,CAACH,MAAM,CAACA,MAAM,CAAC,GACxCqC,MAAM,CAACC,YAAY,CAACnC,IAAI,CAAC;IACjC;IAEA,IAAIA,IAAI,OAAuB,EAAE;MAC/B,IAAI,CAACoC,KAAK,CACRJ,SAAS,CAAC5C,IAAI,EACd4C,SAAS,CAAC3C,MAAM,EAChB2C,SAAS,CAACzC,cAAc,EACxByC,SAAS,CAACvC,iBAAiB,EAC3BuC,SAAS,CAACtC,QACZ,CAAC;MACD,IAAI,CAACP,SAAS,CAACE,MAAM,IAAIQ,MAAM;IACjC,CAAC,MAAM;MACL,IAAI,CAACV,SAAS,CAACC,IAAI,EAAE;MACrB,IAAI,CAACD,SAAS,CAACE,MAAM,GAAG,CAAC;IAC3B;IAEA,IAAI,IAAI,CAACL,cAAc,EAAE;MACvBgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;EACF;EAEAkC,OAAOA,CACLF,GAAW,EACXQ,SAA4B,EAC5BP,YAAqB,EACf;IACN,MAAMY,GAAG,GAAGb,GAAG,CAACrB,MAAM;IACtB,MAAMmC,QAAQ,GAAG,IAAI,CAACnD,SAAS;IAE/B,IAAI,CAACN,KAAK,GAAG2C,GAAG,CAACe,UAAU,CAACF,GAAG,GAAG,CAAC,CAAC;IAEpC,IAAI,EAAE,IAAI,CAACzD,YAAY,GAAG,IAAI,EAAE;MAE9B,CAAC,IAAI,CAACD,IAAI;MACV,IAAI,CAACD,IAAI,IAAI,IAAI,CAACC,IAAI;MACtB,IAAI,CAACA,IAAI,GAAG6C,GAAG;MACf,IAAI,CAAC5C,YAAY,GAAG,CAAC;IACvB,CAAC,MAAM;MACL,IAAI,CAACD,IAAI,IAAI6C,GAAG;IAClB;IAEA,IAAI,CAACC,YAAY,IAAI,CAAC,IAAI,CAAChD,IAAI,EAAE;MAC/B6D,QAAQ,CAACjD,MAAM,IAAIgD,GAAG;MACtB;IACF;IAEA,MAAM;MAAEhD,MAAM;MAAEE,cAAc;MAAEE,iBAAiB;MAAEC;IAAS,CAAC,GAAGsC,SAAS;IACzE,IAAI5C,IAAI,GAAG4C,SAAS,CAAC5C,IAAI;IAEzB,IACE,CAACG,cAAc,IAAI,IAAI,IAAIE,iBAAiB,IAAI,IAAI,KACpD,IAAI,CAACT,cAAc,EACnB;MACAgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;IAMA,IAAIG,CAAC,GAAG6B,GAAG,CAACgB,OAAO,CAAC,IAAI,CAAC;IACzB,IAAIC,IAAI,GAAG,CAAC;IAIZ,IAAI9C,CAAC,KAAK,CAAC,EAAE;MACX,IAAI,CAACyC,KAAK,CAAChD,IAAI,EAAEC,MAAM,EAAEE,cAAc,EAAEE,iBAAiB,EAAEC,QAAQ,CAAC;IACvE;IAGA,OAAOC,CAAC,KAAK,CAAC,CAAC,EAAE;MACf2C,QAAQ,CAAClD,IAAI,EAAE;MACfkD,QAAQ,CAACjD,MAAM,GAAG,CAAC;MACnBoD,IAAI,GAAG9C,CAAC,GAAG,CAAC;MAKZ,IAAI8C,IAAI,GAAGJ,GAAG,IAAIjD,IAAI,KAAKI,SAAS,EAAE;QACpC,IAAI,CAAC4C,KAAK,CAAC,EAAEhD,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAEM,QAAQ,CAAC;MAC7C;MACAC,CAAC,GAAG6B,GAAG,CAACgB,OAAO,CAAC,IAAI,EAAEC,IAAI,CAAC;IAC7B;IACAH,QAAQ,CAACjD,MAAM,IAAIgD,GAAG,GAAGI,IAAI;EAC/B;EAEAL,KAAKA,CACHhD,IAAwB,EACxBC,MAA0B,EAC1BE,cAAkC,EAClCE,iBAAkC,EAClCC,QAA4B,EACtB;IAAA,IAAAgD,UAAA;IACN,CAAAA,UAAA,OAAI,CAACjE,IAAI,aAATiE,UAAA,CAAWC,IAAI,CACb,IAAI,CAACxD,SAAS,EACdC,IAAI,EACJC,MAAM,EACNE,cAAc,EACdE,iBAAiB,EACjBC,QACF,CAAC;EACH;EAEAkD,qBAAqBA,CAAA,EAAS;IAC5B,MAAMb,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IACEgD,WAAW,KAAK,CAAC,IACjB,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,OAAuB,EACxD;MACA,IAAI,CAACjB,YAAY,EAAE;IACrB;EACF;EAEA8D,mBAAmBA,CAAA,EAAS;IAC1B,MAAMd,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IACEgD,WAAW,KAAK,CAAC,IACjB,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,OAAwB,EACzD;MACA,IAAI,CAACjB,YAAY,EAAE;IACrB;EACF;EAEA+D,WAAWA,CAAA,EAAW;IACpB,MAAMf,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,OAAOgD,WAAW,KAAK,CAAC,GAAG,IAAI,CAACjD,MAAM,CAACiD,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI,GAAG,IAAI,CAACnB,KAAK;EAC3E;EAMAkE,eAAeA,CAAA,EAAW;IACxB,MAAMhB,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IAAIiE,KAAK,GAAG,CAAC;IACb,IAAIjB,WAAW,KAAK,CAAC,EAAE,OAAO,IAAI,CAAClD,KAAK,OAAuB,GAAG,CAAC,GAAG,CAAC;IACvE,KAAK,IAAIc,CAAC,GAAGoC,WAAW,GAAG,CAAC,EAAEpC,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MACzC,IAAI,IAAI,CAACb,MAAM,CAACa,CAAC,CAAC,CAACK,IAAI,OAAuB,EAAE;QAC9C;MACF;MACAgD,KAAK,EAAE;IACT;IACA,OAAOA,KAAK,KAAKjB,WAAW,IAAI,IAAI,CAAClD,KAAK,OAAuB,GAC7DmE,KAAK,GAAG,CAAC,GACTA,KAAK;EACX;EAKAC,sBAAsBA,CAAA,EAAW;IAC/B,MAAMlD,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,MAAMiD,WAAW,GAAG,IAAI,CAAChD,YAAY;IACrC,IAAIgD,WAAW,KAAK,CAAC,EAAE;MAErB,MAAMmB,MAAM,GAAGnD,KAAK,CAACgC,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI;MAC1C,IAAIkD,MAAM,OAAuB,EAAE;MACnC,IAAInB,WAAW,GAAG,CAAC,EAAE;QACnB,OAAOhC,KAAK,CAACgC,WAAW,GAAG,CAAC,CAAC,CAAC/B,IAAI;MACpC,CAAC,MAAM;QACL,OAAO,IAAI,CAACnB,KAAK;MACnB;IACF;EAGF;EAEAsE,UAAUA,CAAA,EAAY;IACpB,OAAO,IAAI,CAACpE,YAAY,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAACF,KAAK;EAChD;EAyBAuE,WAAWA,CAACC,GAAoB,EAAEC,EAAc,EAAE;IAChD,IAAI,CAAC,IAAI,CAAC7E,IAAI,EAAE;MACd6E,EAAE,CAAC,CAAC;MACJ;IACF;IAEA,IAAI,CAACC,MAAM,CAAC,OAAO,EAAEF,GAAG,CAAC;IAEzB,MAAM9D,cAAc,GAAG8D,GAAG,CAAC9D,cAAc;IACzC,MAAMyC,SAAS,GAAG,IAAI,CAAC1C,eAAe;IACtC,IAAIC,cAAc,EAAE;MAClB,IAAI,CAACP,cAAc,GAAG,KAAK;MAC3BgD,SAAS,CAACzC,cAAc,GAAGA,cAAc;IAC3C;IACA+D,EAAE,CAAC,CAAC;IAEJ,IAAI/D,cAAc,EAAE;MAClB,IAAI,CAACP,cAAc,GAAG,IAAI;MAC1BgD,SAAS,CAACzC,cAAc,GAAGC,SAAS;MACpCwC,SAAS,CAACvC,iBAAiB,GAAGD,SAAS;IACzC;IACA,IAAI,CAAC+D,MAAM,CAAC,KAAK,EAAEF,GAAG,CAAC;EACzB;EAOAE,MAAMA,CAACC,IAAqB,EAAEH,GAAoB,EAAQ;IACxD,IAAI,CAAC,IAAI,CAAC5E,IAAI,EAAE;IAIhB,IAAI,CAACgF,kBAAkB,CAACD,IAAI,EAAEH,GAAG,EAAE,CAAC,CAAC;EACvC;EAEAK,gBAAgBA,CACdF,IAAqB,EACrBH,GAAoB,EACpBM,YAAoB,EACd;IACN,IAAI,CAAC,IAAI,CAAClF,IAAI,EAAE;IAEhB,IAAI,CAACgF,kBAAkB,CAACD,IAAI,EAAEH,GAAG,EAAEM,YAAY,CAAC;EAClD;EAEAF,kBAAkBA,CAACD,IAAqB,EAAEH,GAAQ,EAAEM,YAAoB,EAAE;IACxE,MAAMC,GAAG,GAAGP,GAAG,CAACG,IAAI,CAAC;IACrB,MAAMK,MAAM,GAAG,IAAI,CAACvE,eAAe;IAEnC,IAAIsE,GAAG,EAAE;MACPC,MAAM,CAACzE,IAAI,GAAGwE,GAAG,CAACxE,IAAI;MAEtByE,MAAM,CAACxE,MAAM,GAAGyE,IAAI,CAACC,GAAG,CAACH,GAAG,CAACvE,MAAM,GAAGsE,YAAY,EAAE,CAAC,CAAC;MACtDE,MAAM,CAACnE,QAAQ,GAAG2D,GAAG,CAAC3D,QAAQ;IAChC;EACF;EAEAsE,gBAAgBA,CAAA,EAAW;IACzB,MAAMjE,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,MAAMiD,WAAW,GAAG,IAAI,CAAChD,YAAY;IAErC,IAAIkF,SAAS,GAAG,CAAC,CAAC;IAClB,IAAI5B,GAAG,GAAG,CAAC;IACX,KAAK,IAAI1C,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoC,WAAW,EAAEpC,CAAC,EAAE,EAAE;MACpC,MAAMS,IAAI,GAAGL,KAAK,CAACJ,CAAC,CAAC;MACrB,IAAIS,IAAI,CAACJ,IAAI,OAAuB,EAAE;QACpCiE,SAAS,GAAG5B,GAAG;MACjB;MACAA,GAAG,IAAIjC,IAAI,CAACP,MAAM;IACpB;IAEA,OAAOoE,SAAS,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC9E,SAAS,CAACE,MAAM,GAAGgD,GAAG,GAAGA,GAAG,GAAG,CAAC,GAAG4B,SAAS;EAC7E;EAEAC,cAAcA,CAAA,EAAW;IACvB,IAAIlB,KAAK,GAAG,CAAC;IAEb,MAAMjD,KAAK,GAAG,IAAI,CAACjB,MAAM;IACzB,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,IAAI,CAACZ,YAAY,EAAEY,CAAC,EAAE,EAAE;MAC1C,IAAII,KAAK,CAACJ,CAAC,CAAC,CAACK,IAAI,OAAuB,EAAE;QACxCgD,KAAK,EAAE;MACT;IACF;IAEA,OAAO,IAAI,CAAC7D,SAAS,CAACC,IAAI,GAAG4D,KAAK;EACpC;AACF;AAACmB,OAAA,CAAAC,OAAA,GAAA/F,MAAA","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/base.js b/node_modules/@babel/generator/lib/generators/base.js index eca90770b..60dfc68d9 100644 --- a/node_modules/@babel/generator/lib/generators/base.js +++ b/node_modules/@babel/generator/lib/generators/base.js @@ -12,9 +12,9 @@ exports.Placeholder = Placeholder; exports.Program = Program; function File(node) { if (node.program) { - this.print(node.program.interpreter); + this.print(node.program.interpreter, node); } - this.print(node.program); + this.print(node.program, node); } function Program(node) { var _node$directives; @@ -24,32 +24,39 @@ function Program(node) { if (directivesLen) { var _node$directives$trai; const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, undefined, newline); + this.printSequence(node.directives, node, { + trailingCommentsLineOffset: newline + }); if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) { this.newline(newline); } } - this.printSequence(node.body); + this.printSequence(node.body, node); } function BlockStatement(node) { var _node$directives2; this.tokenChar(123); - const exit = this.enterDelimited(); const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length; if (directivesLen) { var _node$directives$trai2; const newline = node.body.length ? 2 : 1; - this.printSequence(node.directives, true, newline); + this.printSequence(node.directives, node, { + indent: true, + trailingCommentsLineOffset: newline + }); if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) { this.newline(newline); } } - this.printSequence(node.body, true); + const exit = this.enterForStatementInit(false); + this.printSequence(node.body, node, { + indent: true + }); exit(); this.rightBrace(node); } function Directive(node) { - this.print(node.value); + this.print(node.value, node); this.semicolon(); } const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/; diff --git a/node_modules/@babel/generator/lib/generators/base.js.map b/node_modules/@babel/generator/lib/generators/base.js.map index c40d63c55..57513bab1 100644 --- a/node_modules/@babel/generator/lib/generators/base.js.map +++ b/node_modules/@babel/generator/lib/generators/base.js.map @@ -1 +1 @@ -{"version":3,"names":["File","node","program","print","interpreter","Program","_node$directives","noIndentInnerCommentsHere","printInnerComments","directivesLen","directives","length","_node$directives$trai","newline","body","printSequence","undefined","trailingComments","BlockStatement","_node$directives2","token","exit","enterDelimited","_node$directives$trai2","rightBrace","Directive","value","semicolon","unescapedSingleQuoteRE","unescapedDoubleQuoteRE","DirectiveLiteral","raw","getPossibleRaw","format","minified","test","Error","InterpreterDirective","Placeholder","name","expectedNode"],"sources":["../../src/generators/base.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function File(this: Printer, node: t.File) {\n if (node.program) {\n // Print this here to ensure that Program node 'leadingComments' still\n // get printed after the hashbang.\n this.print(node.program.interpreter);\n }\n\n this.print(node.program);\n}\n\nexport function Program(this: Printer, node: t.Program) {\n // An empty Program doesn't have any inner tokens, so\n // we must explicitly print its inner comments.\n this.noIndentInnerCommentsHere();\n this.printInnerComments();\n\n const directivesLen = node.directives?.length;\n if (directivesLen) {\n const newline = node.body.length ? 2 : 1;\n this.printSequence(node.directives, undefined, newline);\n if (!node.directives[directivesLen - 1].trailingComments?.length) {\n this.newline(newline);\n }\n }\n\n this.printSequence(node.body);\n}\n\nexport function BlockStatement(this: Printer, node: t.BlockStatement) {\n this.token(\"{\");\n const exit = this.enterDelimited();\n\n const directivesLen = node.directives?.length;\n if (directivesLen) {\n const newline = node.body.length ? 2 : 1;\n this.printSequence(node.directives, true, newline);\n if (!node.directives[directivesLen - 1].trailingComments?.length) {\n this.newline(newline);\n }\n }\n\n this.printSequence(node.body, true);\n\n exit();\n this.rightBrace(node);\n}\n\nexport function Directive(this: Printer, node: t.Directive) {\n this.print(node.value);\n this.semicolon();\n}\n\n// These regexes match an even number of \\ followed by a quote\nconst unescapedSingleQuoteRE = /(?:^|[^\\\\])(?:\\\\\\\\)*'/;\nconst unescapedDoubleQuoteRE = /(?:^|[^\\\\])(?:\\\\\\\\)*\"/;\n\nexport function DirectiveLiteral(this: Printer, node: t.DirectiveLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.token(raw);\n return;\n }\n\n const { value } = node;\n\n // NOTE: In directives we can't change escapings,\n // because they change the behavior.\n // e.g. \"us\\x65 strict\" (\\x65 is e) is not a \"use strict\" directive.\n\n if (!unescapedDoubleQuoteRE.test(value)) {\n this.token(`\"${value}\"`);\n } else if (!unescapedSingleQuoteRE.test(value)) {\n this.token(`'${value}'`);\n } else {\n throw new Error(\n \"Malformed AST: it is not possible to print a directive containing\" +\n \" both unescaped single and double quotes.\",\n );\n }\n}\n\nexport function InterpreterDirective(\n this: Printer,\n node: t.InterpreterDirective,\n) {\n this.token(`#!${node.value}`);\n this.newline(1, true);\n}\n\nexport function Placeholder(this: Printer, node: t.Placeholder) {\n this.token(\"%%\");\n this.print(node.name);\n this.token(\"%%\");\n\n if (node.expectedNode === \"Statement\") {\n this.semicolon();\n }\n}\n"],"mappings":";;;;;;;;;;;;AAGO,SAASA,IAAIA,CAAgBC,IAAY,EAAE;EAChD,IAAIA,IAAI,CAACC,OAAO,EAAE;IAGhB,IAAI,CAACC,KAAK,CAACF,IAAI,CAACC,OAAO,CAACE,WAAW,CAAC;EACtC;EAEA,IAAI,CAACD,KAAK,CAACF,IAAI,CAACC,OAAO,CAAC;AAC1B;AAEO,SAASG,OAAOA,CAAgBJ,IAAe,EAAE;EAAA,IAAAK,gBAAA;EAGtD,IAAI,CAACC,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAACC,kBAAkB,CAAC,CAAC;EAEzB,MAAMC,aAAa,IAAAH,gBAAA,GAAGL,IAAI,CAACS,UAAU,qBAAfJ,gBAAA,CAAiBK,MAAM;EAC7C,IAAIF,aAAa,EAAE;IAAA,IAAAG,qBAAA;IACjB,MAAMC,OAAO,GAAGZ,IAAI,CAACa,IAAI,CAACH,MAAM,GAAG,CAAC,GAAG,CAAC;IACxC,IAAI,CAACI,aAAa,CAACd,IAAI,CAACS,UAAU,EAAEM,SAAS,EAAEH,OAAO,CAAC;IACvD,IAAI,GAAAD,qBAAA,GAACX,IAAI,CAACS,UAAU,CAACD,aAAa,GAAG,CAAC,CAAC,CAACQ,gBAAgB,aAAnDL,qBAAA,CAAqDD,MAAM,GAAE;MAChE,IAAI,CAACE,OAAO,CAACA,OAAO,CAAC;IACvB;EACF;EAEA,IAAI,CAACE,aAAa,CAACd,IAAI,CAACa,IAAI,CAAC;AAC/B;AAEO,SAASI,cAAcA,CAAgBjB,IAAsB,EAAE;EAAA,IAAAkB,iBAAA;EACpE,IAAI,CAACC,SAAK,IAAI,CAAC;EACf,MAAMC,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAElC,MAAMb,aAAa,IAAAU,iBAAA,GAAGlB,IAAI,CAACS,UAAU,qBAAfS,iBAAA,CAAiBR,MAAM;EAC7C,IAAIF,aAAa,EAAE;IAAA,IAAAc,sBAAA;IACjB,MAAMV,OAAO,GAAGZ,IAAI,CAACa,IAAI,CAACH,MAAM,GAAG,CAAC,GAAG,CAAC;IACxC,IAAI,CAACI,aAAa,CAACd,IAAI,CAACS,UAAU,EAAE,IAAI,EAAEG,OAAO,CAAC;IAClD,IAAI,GAAAU,sBAAA,GAACtB,IAAI,CAACS,UAAU,CAACD,aAAa,GAAG,CAAC,CAAC,CAACQ,gBAAgB,aAAnDM,sBAAA,CAAqDZ,MAAM,GAAE;MAChE,IAAI,CAACE,OAAO,CAACA,OAAO,CAAC;IACvB;EACF;EAEA,IAAI,CAACE,aAAa,CAACd,IAAI,CAACa,IAAI,EAAE,IAAI,CAAC;EAEnCO,IAAI,CAAC,CAAC;EACN,IAAI,CAACG,UAAU,CAACvB,IAAI,CAAC;AACvB;AAEO,SAASwB,SAASA,CAAgBxB,IAAiB,EAAE;EAC1D,IAAI,CAACE,KAAK,CAACF,IAAI,CAACyB,KAAK,CAAC;EACtB,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAGA,MAAMC,sBAAsB,GAAG,uBAAuB;AACtD,MAAMC,sBAAsB,GAAG,uBAAuB;AAE/C,SAASC,gBAAgBA,CAAgB7B,IAAwB,EAAE;EACxE,MAAM8B,GAAG,GAAG,IAAI,CAACC,cAAc,CAAC/B,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAACgC,MAAM,CAACC,QAAQ,IAAIH,GAAG,KAAKf,SAAS,EAAE;IAC9C,IAAI,CAACI,KAAK,CAACW,GAAG,CAAC;IACf;EACF;EAEA,MAAM;IAAEL;EAAM,CAAC,GAAGzB,IAAI;EAMtB,IAAI,CAAC4B,sBAAsB,CAACM,IAAI,CAACT,KAAK,CAAC,EAAE;IACvC,IAAI,CAACN,KAAK,CAAC,IAAIM,KAAK,GAAG,CAAC;EAC1B,CAAC,MAAM,IAAI,CAACE,sBAAsB,CAACO,IAAI,CAACT,KAAK,CAAC,EAAE;IAC9C,IAAI,CAACN,KAAK,CAAC,IAAIM,KAAK,GAAG,CAAC;EAC1B,CAAC,MAAM;IACL,MAAM,IAAIU,KAAK,CACb,mEAAmE,GACjE,2CACJ,CAAC;EACH;AACF;AAEO,SAASC,oBAAoBA,CAElCpC,IAA4B,EAC5B;EACA,IAAI,CAACmB,KAAK,CAAC,KAAKnB,IAAI,CAACyB,KAAK,EAAE,CAAC;EAC7B,IAAI,CAACb,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC;AACvB;AAEO,SAASyB,WAAWA,CAAgBrC,IAAmB,EAAE;EAC9D,IAAI,CAACmB,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACjB,KAAK,CAACF,IAAI,CAACsC,IAAI,CAAC;EACrB,IAAI,CAACnB,KAAK,CAAC,IAAI,CAAC;EAEhB,IAAInB,IAAI,CAACuC,YAAY,KAAK,WAAW,EAAE;IACrC,IAAI,CAACb,SAAS,CAAC,CAAC;EAClB;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["File","node","program","print","interpreter","Program","_node$directives","noIndentInnerCommentsHere","printInnerComments","directivesLen","directives","length","_node$directives$trai","newline","body","printSequence","trailingCommentsLineOffset","trailingComments","BlockStatement","_node$directives2","token","_node$directives$trai2","indent","exit","enterForStatementInit","rightBrace","Directive","value","semicolon","unescapedSingleQuoteRE","unescapedDoubleQuoteRE","DirectiveLiteral","raw","getPossibleRaw","format","minified","undefined","test","Error","InterpreterDirective","Placeholder","name","expectedNode"],"sources":["../../src/generators/base.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function File(this: Printer, node: t.File) {\n if (node.program) {\n // Print this here to ensure that Program node 'leadingComments' still\n // get printed after the hashbang.\n this.print(node.program.interpreter, node);\n }\n\n this.print(node.program, node);\n}\n\nexport function Program(this: Printer, node: t.Program) {\n // An empty Program doesn't have any inner tokens, so\n // we must explicitly print its inner comments.\n this.noIndentInnerCommentsHere();\n this.printInnerComments();\n\n const directivesLen = node.directives?.length;\n if (directivesLen) {\n const newline = node.body.length ? 2 : 1;\n this.printSequence(node.directives, node, {\n trailingCommentsLineOffset: newline,\n });\n if (!node.directives[directivesLen - 1].trailingComments?.length) {\n this.newline(newline);\n }\n }\n\n this.printSequence(node.body, node);\n}\n\nexport function BlockStatement(this: Printer, node: t.BlockStatement) {\n this.token(\"{\");\n\n const directivesLen = node.directives?.length;\n if (directivesLen) {\n const newline = node.body.length ? 2 : 1;\n this.printSequence(node.directives, node, {\n indent: true,\n trailingCommentsLineOffset: newline,\n });\n if (!node.directives[directivesLen - 1].trailingComments?.length) {\n this.newline(newline);\n }\n }\n\n const exit = this.enterForStatementInit(false);\n this.printSequence(node.body, node, { indent: true });\n exit();\n\n this.rightBrace(node);\n}\n\nexport function Directive(this: Printer, node: t.Directive) {\n this.print(node.value, node);\n this.semicolon();\n}\n\n// These regexes match an even number of \\ followed by a quote\nconst unescapedSingleQuoteRE = /(?:^|[^\\\\])(?:\\\\\\\\)*'/;\nconst unescapedDoubleQuoteRE = /(?:^|[^\\\\])(?:\\\\\\\\)*\"/;\n\nexport function DirectiveLiteral(this: Printer, node: t.DirectiveLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.token(raw);\n return;\n }\n\n const { value } = node;\n\n // NOTE: In directives we can't change escapings,\n // because they change the behavior.\n // e.g. \"us\\x65 strict\" (\\x65 is e) is not a \"use strict\" directive.\n\n if (!unescapedDoubleQuoteRE.test(value)) {\n this.token(`\"${value}\"`);\n } else if (!unescapedSingleQuoteRE.test(value)) {\n this.token(`'${value}'`);\n } else {\n throw new Error(\n \"Malformed AST: it is not possible to print a directive containing\" +\n \" both unescaped single and double quotes.\",\n );\n }\n}\n\nexport function InterpreterDirective(\n this: Printer,\n node: t.InterpreterDirective,\n) {\n this.token(`#!${node.value}`);\n this.newline(1, true);\n}\n\nexport function Placeholder(this: Printer, node: t.Placeholder) {\n this.token(\"%%\");\n this.print(node.name);\n this.token(\"%%\");\n\n if (node.expectedNode === \"Statement\") {\n this.semicolon();\n }\n}\n"],"mappings":";;;;;;;;;;;;AAGO,SAASA,IAAIA,CAAgBC,IAAY,EAAE;EAChD,IAAIA,IAAI,CAACC,OAAO,EAAE;IAGhB,IAAI,CAACC,KAAK,CAACF,IAAI,CAACC,OAAO,CAACE,WAAW,EAAEH,IAAI,CAAC;EAC5C;EAEA,IAAI,CAACE,KAAK,CAACF,IAAI,CAACC,OAAO,EAAED,IAAI,CAAC;AAChC;AAEO,SAASI,OAAOA,CAAgBJ,IAAe,EAAE;EAAA,IAAAK,gBAAA;EAGtD,IAAI,CAACC,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAACC,kBAAkB,CAAC,CAAC;EAEzB,MAAMC,aAAa,IAAAH,gBAAA,GAAGL,IAAI,CAACS,UAAU,qBAAfJ,gBAAA,CAAiBK,MAAM;EAC7C,IAAIF,aAAa,EAAE;IAAA,IAAAG,qBAAA;IACjB,MAAMC,OAAO,GAAGZ,IAAI,CAACa,IAAI,CAACH,MAAM,GAAG,CAAC,GAAG,CAAC;IACxC,IAAI,CAACI,aAAa,CAACd,IAAI,CAACS,UAAU,EAAET,IAAI,EAAE;MACxCe,0BAA0B,EAAEH;IAC9B,CAAC,CAAC;IACF,IAAI,GAAAD,qBAAA,GAACX,IAAI,CAACS,UAAU,CAACD,aAAa,GAAG,CAAC,CAAC,CAACQ,gBAAgB,aAAnDL,qBAAA,CAAqDD,MAAM,GAAE;MAChE,IAAI,CAACE,OAAO,CAACA,OAAO,CAAC;IACvB;EACF;EAEA,IAAI,CAACE,aAAa,CAACd,IAAI,CAACa,IAAI,EAAEb,IAAI,CAAC;AACrC;AAEO,SAASiB,cAAcA,CAAgBjB,IAAsB,EAAE;EAAA,IAAAkB,iBAAA;EACpE,IAAI,CAACC,SAAK,IAAI,CAAC;EAEf,MAAMX,aAAa,IAAAU,iBAAA,GAAGlB,IAAI,CAACS,UAAU,qBAAfS,iBAAA,CAAiBR,MAAM;EAC7C,IAAIF,aAAa,EAAE;IAAA,IAAAY,sBAAA;IACjB,MAAMR,OAAO,GAAGZ,IAAI,CAACa,IAAI,CAACH,MAAM,GAAG,CAAC,GAAG,CAAC;IACxC,IAAI,CAACI,aAAa,CAACd,IAAI,CAACS,UAAU,EAAET,IAAI,EAAE;MACxCqB,MAAM,EAAE,IAAI;MACZN,0BAA0B,EAAEH;IAC9B,CAAC,CAAC;IACF,IAAI,GAAAQ,sBAAA,GAACpB,IAAI,CAACS,UAAU,CAACD,aAAa,GAAG,CAAC,CAAC,CAACQ,gBAAgB,aAAnDI,sBAAA,CAAqDV,MAAM,GAAE;MAChE,IAAI,CAACE,OAAO,CAACA,OAAO,CAAC;IACvB;EACF;EAEA,MAAMU,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAC9C,IAAI,CAACT,aAAa,CAACd,IAAI,CAACa,IAAI,EAAEb,IAAI,EAAE;IAAEqB,MAAM,EAAE;EAAK,CAAC,CAAC;EACrDC,IAAI,CAAC,CAAC;EAEN,IAAI,CAACE,UAAU,CAACxB,IAAI,CAAC;AACvB;AAEO,SAASyB,SAASA,CAAgBzB,IAAiB,EAAE;EAC1D,IAAI,CAACE,KAAK,CAACF,IAAI,CAAC0B,KAAK,EAAE1B,IAAI,CAAC;EAC5B,IAAI,CAAC2B,SAAS,CAAC,CAAC;AAClB;AAGA,MAAMC,sBAAsB,GAAG,uBAAuB;AACtD,MAAMC,sBAAsB,GAAG,uBAAuB;AAE/C,SAASC,gBAAgBA,CAAgB9B,IAAwB,EAAE;EACxE,MAAM+B,GAAG,GAAG,IAAI,CAACC,cAAc,CAAChC,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAACiC,MAAM,CAACC,QAAQ,IAAIH,GAAG,KAAKI,SAAS,EAAE;IAC9C,IAAI,CAAChB,KAAK,CAACY,GAAG,CAAC;IACf;EACF;EAEA,MAAM;IAAEL;EAAM,CAAC,GAAG1B,IAAI;EAMtB,IAAI,CAAC6B,sBAAsB,CAACO,IAAI,CAACV,KAAK,CAAC,EAAE;IACvC,IAAI,CAACP,KAAK,CAAC,IAAIO,KAAK,GAAG,CAAC;EAC1B,CAAC,MAAM,IAAI,CAACE,sBAAsB,CAACQ,IAAI,CAACV,KAAK,CAAC,EAAE;IAC9C,IAAI,CAACP,KAAK,CAAC,IAAIO,KAAK,GAAG,CAAC;EAC1B,CAAC,MAAM;IACL,MAAM,IAAIW,KAAK,CACb,mEAAmE,GACjE,2CACJ,CAAC;EACH;AACF;AAEO,SAASC,oBAAoBA,CAElCtC,IAA4B,EAC5B;EACA,IAAI,CAACmB,KAAK,CAAC,KAAKnB,IAAI,CAAC0B,KAAK,EAAE,CAAC;EAC7B,IAAI,CAACd,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC;AACvB;AAEO,SAAS2B,WAAWA,CAAgBvC,IAAmB,EAAE;EAC9D,IAAI,CAACmB,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACjB,KAAK,CAACF,IAAI,CAACwC,IAAI,CAAC;EACrB,IAAI,CAACrB,KAAK,CAAC,IAAI,CAAC;EAEhB,IAAInB,IAAI,CAACyC,YAAY,KAAK,WAAW,EAAE;IACrC,IAAI,CAACd,SAAS,CAAC,CAAC;EAClB;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/classes.js b/node_modules/@babel/generator/lib/generators/classes.js index 6cdc97541..2b33bd4ae 100644 --- a/node_modules/@babel/generator/lib/generators/classes.js +++ b/node_modules/@babel/generator/lib/generators/classes.js @@ -20,7 +20,7 @@ const { function ClassDeclaration(node, parent) { const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent); if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent)) { - this.printJoin(node.decorators); + this.printJoin(node.decorators, node); } if (node.declare) { this.word("declare"); @@ -33,24 +33,24 @@ function ClassDeclaration(node, parent) { this.word("class"); if (node.id) { this.space(); - this.print(node.id); + this.print(node.id, node); } - this.print(node.typeParameters); + this.print(node.typeParameters, node); if (node.superClass) { this.space(); this.word("extends"); this.space(); - this.print(node.superClass); - this.print(node.superTypeParameters); + this.print(node.superClass, node); + this.print(node.superTypeParameters, node); } if (node.implements) { this.space(); this.word("implements"); this.space(); - this.printList(node.implements); + this.printList(node.implements, node); } this.space(); - this.print(node.body); + this.print(node.body, node); } function ClassBody(node) { this.tokenChar(123); @@ -58,58 +58,28 @@ function ClassBody(node) { this.tokenChar(125); } else { this.newline(); - const separator = classBodyEmptySemicolonsPrinter(this, node); - separator == null || separator(-1); - const exit = this.enterDelimited(); - this.printJoin(node.body, true, true, separator, true); + const exit = this.enterForStatementInit(false); + this.printSequence(node.body, node, { + indent: true + }); exit(); if (!this.endsWith(10)) this.newline(); this.rightBrace(node); } } -function classBodyEmptySemicolonsPrinter(printer, node) { - if (!printer.tokenMap || node.start == null || node.end == null) { - return null; - } - const indexes = printer.tokenMap.getIndexes(node); - if (!indexes) return null; - let k = 1; - let occurrenceCount = 0; - let nextLocIndex = 0; - const advanceNextLocIndex = () => { - while (nextLocIndex < node.body.length && node.body[nextLocIndex].start == null) { - nextLocIndex++; - } - }; - advanceNextLocIndex(); - return i => { - if (nextLocIndex <= i) { - nextLocIndex = i + 1; - advanceNextLocIndex(); - } - const end = nextLocIndex === node.body.length ? node.end : node.body[nextLocIndex].start; - let tok; - while (k < indexes.length && printer.tokenMap.matchesOriginal(tok = printer._tokens[indexes[k]], ";") && tok.start < end) { - printer.token(";", undefined, occurrenceCount++); - k++; - } - }; -} function ClassProperty(node) { - this.printJoin(node.decorators); - if (!node.static && !this.format.preserveFormat) { - var _node$key$loc; - const endLine = (_node$key$loc = node.key.loc) == null || (_node$key$loc = _node$key$loc.end) == null ? void 0 : _node$key$loc.line; - if (endLine) this.catchUp(endLine); - } + var _node$key$loc; + this.printJoin(node.decorators, node); + const endLine = (_node$key$loc = node.key.loc) == null || (_node$key$loc = _node$key$loc.end) == null ? void 0 : _node$key$loc.line; + if (endLine) this.catchUp(endLine); this.tsPrintClassMemberModifiers(node); if (node.computed) { this.tokenChar(91); - this.print(node.key); + this.print(node.key, node); this.tokenChar(93); } else { this._variance(node); - this.print(node.key); + this.print(node.key, node); } if (node.optional) { this.tokenChar(63); @@ -117,18 +87,18 @@ function ClassProperty(node) { if (node.definite) { this.tokenChar(33); } - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); if (node.value) { this.space(); this.tokenChar(61); this.space(); - this.print(node.value); + this.print(node.value, node); } this.semicolon(); } function ClassAccessorProperty(node) { var _node$key$loc2; - this.printJoin(node.decorators); + this.printJoin(node.decorators, node); const endLine = (_node$key$loc2 = node.key.loc) == null || (_node$key$loc2 = _node$key$loc2.end) == null ? void 0 : _node$key$loc2.line; if (endLine) this.catchUp(endLine); this.tsPrintClassMemberModifiers(node); @@ -136,11 +106,11 @@ function ClassAccessorProperty(node) { this.space(); if (node.computed) { this.tokenChar(91); - this.print(node.key); + this.print(node.key, node); this.tokenChar(93); } else { this._variance(node); - this.print(node.key); + this.print(node.key, node); } if (node.optional) { this.tokenChar(63); @@ -148,51 +118,46 @@ function ClassAccessorProperty(node) { if (node.definite) { this.tokenChar(33); } - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); if (node.value) { this.space(); this.tokenChar(61); this.space(); - this.print(node.value); + this.print(node.value, node); } this.semicolon(); } function ClassPrivateProperty(node) { - this.printJoin(node.decorators); - this.tsPrintClassMemberModifiers(node); - this.print(node.key); - if (node.optional) { - this.tokenChar(63); - } - if (node.definite) { - this.tokenChar(33); + this.printJoin(node.decorators, node); + if (node.static) { + this.word("static"); + this.space(); } - this.print(node.typeAnnotation); + this.print(node.key, node); + this.print(node.typeAnnotation, node); if (node.value) { this.space(); this.tokenChar(61); this.space(); - this.print(node.value); + this.print(node.value, node); } this.semicolon(); } function ClassMethod(node) { this._classMethodHead(node); this.space(); - this.print(node.body); + this.print(node.body, node); } function ClassPrivateMethod(node) { this._classMethodHead(node); this.space(); - this.print(node.body); + this.print(node.body, node); } function _classMethodHead(node) { - this.printJoin(node.decorators); - if (!this.format.preserveFormat) { - var _node$key$loc3; - const endLine = (_node$key$loc3 = node.key.loc) == null || (_node$key$loc3 = _node$key$loc3.end) == null ? void 0 : _node$key$loc3.line; - if (endLine) this.catchUp(endLine); - } + var _node$key$loc3; + this.printJoin(node.decorators, node); + const endLine = (_node$key$loc3 = node.key.loc) == null || (_node$key$loc3 = _node$key$loc3.end) == null ? void 0 : _node$key$loc3.line; + if (endLine) this.catchUp(endLine); this.tsPrintClassMemberModifiers(node); this._methodHead(node); } @@ -204,7 +169,9 @@ function StaticBlock(node) { this.tokenChar(125); } else { this.newline(); - this.printSequence(node.body, true); + this.printSequence(node.body, node, { + indent: true + }); this.rightBrace(node); } } diff --git a/node_modules/@babel/generator/lib/generators/classes.js.map b/node_modules/@babel/generator/lib/generators/classes.js.map index 8eea53ae3..f54866c46 100644 --- a/node_modules/@babel/generator/lib/generators/classes.js.map +++ b/node_modules/@babel/generator/lib/generators/classes.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","isExportDefaultDeclaration","isExportNamedDeclaration","ClassDeclaration","node","parent","inExport","_shouldPrintDecoratorsBeforeExport","printJoin","decorators","declare","word","space","abstract","id","print","typeParameters","superClass","superTypeParameters","implements","printList","body","ClassBody","token","length","newline","separator","classBodyEmptySemicolonsPrinter","exit","enterDelimited","endsWith","rightBrace","printer","tokenMap","start","end","indexes","getIndexes","k","occurrenceCount","nextLocIndex","advanceNextLocIndex","i","tok","matchesOriginal","_tokens","undefined","ClassProperty","static","format","preserveFormat","_node$key$loc","endLine","key","loc","line","catchUp","tsPrintClassMemberModifiers","computed","_variance","optional","definite","typeAnnotation","value","semicolon","ClassAccessorProperty","_node$key$loc2","ClassPrivateProperty","ClassMethod","_classMethodHead","ClassPrivateMethod","_node$key$loc3","_methodHead","StaticBlock","printSequence"],"sources":["../../src/generators/classes.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isExportDefaultDeclaration,\n isExportNamedDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\n\nexport function ClassDeclaration(\n this: Printer,\n node: t.ClassDeclaration,\n parent: t.Node,\n) {\n const inExport =\n isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent);\n\n if (\n !inExport ||\n !this._shouldPrintDecoratorsBeforeExport(\n parent as t.ExportDeclaration & { declaration: t.ClassDeclaration },\n )\n ) {\n this.printJoin(node.decorators);\n }\n\n if (node.declare) {\n // TS\n this.word(\"declare\");\n this.space();\n }\n\n if (node.abstract) {\n // TS\n this.word(\"abstract\");\n this.space();\n }\n\n this.word(\"class\");\n\n if (node.id) {\n this.space();\n this.print(node.id);\n }\n\n this.print(node.typeParameters);\n\n if (node.superClass) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.superClass);\n this.print(\n process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Renamed\n node.superTypeArguments\n : // @ts-ignore(Babel 7 vs Babel 8) Renamed\n node.superTypeParameters,\n );\n }\n\n if (node.implements) {\n this.space();\n this.word(\"implements\");\n this.space();\n this.printList(node.implements);\n }\n\n this.space();\n this.print(node.body);\n}\n\nexport { ClassDeclaration as ClassExpression };\n\nexport function ClassBody(this: Printer, node: t.ClassBody) {\n this.token(\"{\");\n if (node.body.length === 0) {\n this.token(\"}\");\n } else {\n this.newline();\n\n const separator = classBodyEmptySemicolonsPrinter(this, node);\n separator?.(-1); // print leading semicolons in preserveFormat mode\n\n const exit = this.enterDelimited();\n this.printJoin(node.body, true, true, separator, true);\n exit();\n\n if (!this.endsWith(charCodes.lineFeed)) this.newline();\n\n this.rightBrace(node);\n }\n}\n\nfunction classBodyEmptySemicolonsPrinter(printer: Printer, node: t.ClassBody) {\n if (!printer.tokenMap || node.start == null || node.end == null) {\n return null;\n }\n\n // \"empty statements\" in class bodies are not represented in the AST.\n // Print them by checking if there are any ; tokens between the current AST\n // member and the next one.\n\n const indexes = printer.tokenMap.getIndexes(node);\n if (!indexes) return null;\n\n let k = 1; // start from 1 to skip '{'\n\n let occurrenceCount = 0;\n\n let nextLocIndex = 0;\n const advanceNextLocIndex = () => {\n while (\n nextLocIndex < node.body.length &&\n node.body[nextLocIndex].start == null\n ) {\n nextLocIndex++;\n }\n };\n advanceNextLocIndex();\n\n return (i: number) => {\n if (nextLocIndex <= i) {\n nextLocIndex = i + 1;\n advanceNextLocIndex();\n }\n\n const end =\n nextLocIndex === node.body.length\n ? node.end\n : node.body[nextLocIndex].start;\n\n let tok;\n while (\n k < indexes.length &&\n printer.tokenMap.matchesOriginal(\n (tok = printer._tokens[indexes[k]]),\n \";\",\n ) &&\n tok.start < end\n ) {\n printer.token(\";\", undefined, occurrenceCount++);\n k++;\n }\n };\n}\n\nexport function ClassProperty(this: Printer, node: t.ClassProperty) {\n this.printJoin(node.decorators);\n\n if (!node.static && !this.format.preserveFormat) {\n // catch up to property key, avoid line break\n // between member TS modifiers and the property key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n }\n\n this.tsPrintClassMemberModifiers(node);\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key);\n this.token(\"]\");\n } else {\n this._variance(node);\n this.print(node.key);\n }\n\n // TS\n if (node.optional) {\n this.token(\"?\");\n }\n if (node.definite) {\n this.token(\"!\");\n }\n\n this.print(node.typeAnnotation);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value);\n }\n this.semicolon();\n}\n\nexport function ClassAccessorProperty(\n this: Printer,\n node: t.ClassAccessorProperty,\n) {\n this.printJoin(node.decorators);\n\n // catch up to property key, avoid line break\n // between member modifiers and the property key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n\n // TS does not support class accessor property yet\n this.tsPrintClassMemberModifiers(node);\n\n this.word(\"accessor\", true);\n this.space();\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key);\n this.token(\"]\");\n } else {\n // Todo: Flow does not support class accessor property yet.\n this._variance(node);\n this.print(node.key);\n }\n\n // TS\n if (node.optional) {\n this.token(\"?\");\n }\n if (node.definite) {\n this.token(\"!\");\n }\n\n this.print(node.typeAnnotation);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value);\n }\n this.semicolon();\n}\n\nexport function ClassPrivateProperty(\n this: Printer,\n node: t.ClassPrivateProperty,\n) {\n this.printJoin(node.decorators);\n this.tsPrintClassMemberModifiers(node);\n this.print(node.key);\n // TS\n if (node.optional) {\n this.token(\"?\");\n }\n if (node.definite) {\n this.token(\"!\");\n }\n this.print(node.typeAnnotation);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value);\n }\n this.semicolon();\n}\n\nexport function ClassMethod(this: Printer, node: t.ClassMethod) {\n this._classMethodHead(node);\n this.space();\n this.print(node.body);\n}\n\nexport function ClassPrivateMethod(this: Printer, node: t.ClassPrivateMethod) {\n this._classMethodHead(node);\n this.space();\n this.print(node.body);\n}\n\nexport function _classMethodHead(\n this: Printer,\n node: t.ClassMethod | t.ClassPrivateMethod | t.TSDeclareMethod,\n) {\n this.printJoin(node.decorators);\n\n if (!this.format.preserveFormat) {\n // catch up to method key, avoid line break\n // between member modifiers/method heads and the method key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n }\n\n this.tsPrintClassMemberModifiers(node);\n this._methodHead(node);\n}\n\nexport function StaticBlock(this: Printer, node: t.StaticBlock) {\n this.word(\"static\");\n this.space();\n this.token(\"{\");\n if (node.body.length === 0) {\n this.token(\"}\");\n } else {\n this.newline();\n this.printSequence(node.body, true);\n this.rightBrace(node);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAGsB;EAFpBC,0BAA0B;EAC1BC;AAAwB,IAAAH,EAAA;AAQnB,SAASI,gBAAgBA,CAE9BC,IAAwB,EACxBC,MAAc,EACd;EACA,MAAMC,QAAQ,GACZL,0BAA0B,CAACI,MAAM,CAAC,IAAIH,wBAAwB,CAACG,MAAM,CAAC;EAExE,IACE,CAACC,QAAQ,IACT,CAAC,IAAI,CAACC,kCAAkC,CACtCF,MACF,CAAC,EACD;IACA,IAAI,CAACG,SAAS,CAACJ,IAAI,CAACK,UAAU,CAAC;EACjC;EAEA,IAAIL,IAAI,CAACM,OAAO,EAAE;IAEhB,IAAI,CAACC,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAIR,IAAI,CAACS,QAAQ,EAAE;IAEjB,IAAI,CAACF,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;EAElB,IAAIP,IAAI,CAACU,EAAE,EAAE;IACX,IAAI,CAACF,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACU,EAAE,CAAC;EACrB;EAEA,IAAI,CAACC,KAAK,CAACX,IAAI,CAACY,cAAc,CAAC;EAE/B,IAAIZ,IAAI,CAACa,UAAU,EAAE;IACnB,IAAI,CAACL,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACa,UAAU,CAAC;IAC3B,IAAI,CAACF,KAAK,CAKJX,IAAI,CAACc,mBACX,CAAC;EACH;EAEA,IAAId,IAAI,CAACe,UAAU,EAAE;IACnB,IAAI,CAACP,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,YAAY,CAAC;IACvB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACQ,SAAS,CAAChB,IAAI,CAACe,UAAU,CAAC;EACjC;EAEA,IAAI,CAACP,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,CAAC;AACvB;AAIO,SAASC,SAASA,CAAgBlB,IAAiB,EAAE;EAC1D,IAAI,CAACmB,SAAK,IAAI,CAAC;EACf,IAAInB,IAAI,CAACiB,IAAI,CAACG,MAAM,KAAK,CAAC,EAAE;IAC1B,IAAI,CAACD,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACE,OAAO,CAAC,CAAC;IAEd,MAAMC,SAAS,GAAGC,+BAA+B,CAAC,IAAI,EAAEvB,IAAI,CAAC;IAC7DsB,SAAS,YAATA,SAAS,CAAG,CAAC,CAAC,CAAC;IAEf,MAAME,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;IAClC,IAAI,CAACrB,SAAS,CAACJ,IAAI,CAACiB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAEK,SAAS,EAAE,IAAI,CAAC;IACtDE,IAAI,CAAC,CAAC;IAEN,IAAI,CAAC,IAAI,CAACE,QAAQ,GAAmB,CAAC,EAAE,IAAI,CAACL,OAAO,CAAC,CAAC;IAEtD,IAAI,CAACM,UAAU,CAAC3B,IAAI,CAAC;EACvB;AACF;AAEA,SAASuB,+BAA+BA,CAACK,OAAgB,EAAE5B,IAAiB,EAAE;EAC5E,IAAI,CAAC4B,OAAO,CAACC,QAAQ,IAAI7B,IAAI,CAAC8B,KAAK,IAAI,IAAI,IAAI9B,IAAI,CAAC+B,GAAG,IAAI,IAAI,EAAE;IAC/D,OAAO,IAAI;EACb;EAMA,MAAMC,OAAO,GAAGJ,OAAO,CAACC,QAAQ,CAACI,UAAU,CAACjC,IAAI,CAAC;EACjD,IAAI,CAACgC,OAAO,EAAE,OAAO,IAAI;EAEzB,IAAIE,CAAC,GAAG,CAAC;EAET,IAAIC,eAAe,GAAG,CAAC;EAEvB,IAAIC,YAAY,GAAG,CAAC;EACpB,MAAMC,mBAAmB,GAAGA,CAAA,KAAM;IAChC,OACED,YAAY,GAAGpC,IAAI,CAACiB,IAAI,CAACG,MAAM,IAC/BpB,IAAI,CAACiB,IAAI,CAACmB,YAAY,CAAC,CAACN,KAAK,IAAI,IAAI,EACrC;MACAM,YAAY,EAAE;IAChB;EACF,CAAC;EACDC,mBAAmB,CAAC,CAAC;EAErB,OAAQC,CAAS,IAAK;IACpB,IAAIF,YAAY,IAAIE,CAAC,EAAE;MACrBF,YAAY,GAAGE,CAAC,GAAG,CAAC;MACpBD,mBAAmB,CAAC,CAAC;IACvB;IAEA,MAAMN,GAAG,GACPK,YAAY,KAAKpC,IAAI,CAACiB,IAAI,CAACG,MAAM,GAC7BpB,IAAI,CAAC+B,GAAG,GACR/B,IAAI,CAACiB,IAAI,CAACmB,YAAY,CAAC,CAACN,KAAK;IAEnC,IAAIS,GAAG;IACP,OACEL,CAAC,GAAGF,OAAO,CAACZ,MAAM,IAClBQ,OAAO,CAACC,QAAQ,CAACW,eAAe,CAC7BD,GAAG,GAAGX,OAAO,CAACa,OAAO,CAACT,OAAO,CAACE,CAAC,CAAC,CAAC,EAClC,GACF,CAAC,IACDK,GAAG,CAACT,KAAK,GAAGC,GAAG,EACf;MACAH,OAAO,CAACT,KAAK,CAAC,GAAG,EAAEuB,SAAS,EAAEP,eAAe,EAAE,CAAC;MAChDD,CAAC,EAAE;IACL;EACF,CAAC;AACH;AAEO,SAASS,aAAaA,CAAgB3C,IAAqB,EAAE;EAClE,IAAI,CAACI,SAAS,CAACJ,IAAI,CAACK,UAAU,CAAC;EAE/B,IAAI,CAACL,IAAI,CAAC4C,MAAM,IAAI,CAAC,IAAI,CAACC,MAAM,CAACC,cAAc,EAAE;IAAA,IAAAC,aAAA;IAG/C,MAAMC,OAAO,IAAAD,aAAA,GAAG/C,IAAI,CAACiD,GAAG,CAACC,GAAG,cAAAH,aAAA,GAAZA,aAAA,CAAchB,GAAG,qBAAjBgB,aAAA,CAAmBI,IAAI;IACvC,IAAIH,OAAO,EAAE,IAAI,CAACI,OAAO,CAACJ,OAAO,CAAC;EACpC;EAEA,IAAI,CAACK,2BAA2B,CAACrD,IAAI,CAAC;EAEtC,IAAIA,IAAI,CAACsD,QAAQ,EAAE;IACjB,IAAI,CAACnC,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAACX,IAAI,CAACiD,GAAG,CAAC;IACpB,IAAI,CAAC9B,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACoC,SAAS,CAACvD,IAAI,CAAC;IACpB,IAAI,CAACW,KAAK,CAACX,IAAI,CAACiD,GAAG,CAAC;EACtB;EAGA,IAAIjD,IAAI,CAACwD,QAAQ,EAAE;IACjB,IAAI,CAACrC,SAAK,GAAI,CAAC;EACjB;EACA,IAAInB,IAAI,CAACyD,QAAQ,EAAE;IACjB,IAAI,CAACtC,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAACX,IAAI,CAAC0D,cAAc,CAAC;EAC/B,IAAI1D,IAAI,CAAC2D,KAAK,EAAE;IACd,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC2D,KAAK,CAAC;EACxB;EACA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASC,qBAAqBA,CAEnC7D,IAA6B,EAC7B;EAAA,IAAA8D,cAAA;EACA,IAAI,CAAC1D,SAAS,CAACJ,IAAI,CAACK,UAAU,CAAC;EAI/B,MAAM2C,OAAO,IAAAc,cAAA,GAAG9D,IAAI,CAACiD,GAAG,CAACC,GAAG,cAAAY,cAAA,GAAZA,cAAA,CAAc/B,GAAG,qBAAjB+B,cAAA,CAAmBX,IAAI;EACvC,IAAIH,OAAO,EAAE,IAAI,CAACI,OAAO,CAACJ,OAAO,CAAC;EAGlC,IAAI,CAACK,2BAA2B,CAACrD,IAAI,CAAC;EAEtC,IAAI,CAACO,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;EAC3B,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,IAAIR,IAAI,CAACsD,QAAQ,EAAE;IACjB,IAAI,CAACnC,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAACX,IAAI,CAACiD,GAAG,CAAC;IACpB,IAAI,CAAC9B,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IAEL,IAAI,CAACoC,SAAS,CAACvD,IAAI,CAAC;IACpB,IAAI,CAACW,KAAK,CAACX,IAAI,CAACiD,GAAG,CAAC;EACtB;EAGA,IAAIjD,IAAI,CAACwD,QAAQ,EAAE;IACjB,IAAI,CAACrC,SAAK,GAAI,CAAC;EACjB;EACA,IAAInB,IAAI,CAACyD,QAAQ,EAAE;IACjB,IAAI,CAACtC,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAACX,IAAI,CAAC0D,cAAc,CAAC;EAC/B,IAAI1D,IAAI,CAAC2D,KAAK,EAAE;IACd,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC2D,KAAK,CAAC;EACxB;EACA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASG,oBAAoBA,CAElC/D,IAA4B,EAC5B;EACA,IAAI,CAACI,SAAS,CAACJ,IAAI,CAACK,UAAU,CAAC;EAC/B,IAAI,CAACgD,2BAA2B,CAACrD,IAAI,CAAC;EACtC,IAAI,CAACW,KAAK,CAACX,IAAI,CAACiD,GAAG,CAAC;EAEpB,IAAIjD,IAAI,CAACwD,QAAQ,EAAE;IACjB,IAAI,CAACrC,SAAK,GAAI,CAAC;EACjB;EACA,IAAInB,IAAI,CAACyD,QAAQ,EAAE;IACjB,IAAI,CAACtC,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACR,KAAK,CAACX,IAAI,CAAC0D,cAAc,CAAC;EAC/B,IAAI1D,IAAI,CAAC2D,KAAK,EAAE;IACd,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC2D,KAAK,CAAC;EACxB;EACA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASI,WAAWA,CAAgBhE,IAAmB,EAAE;EAC9D,IAAI,CAACiE,gBAAgB,CAACjE,IAAI,CAAC;EAC3B,IAAI,CAACQ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,CAAC;AACvB;AAEO,SAASiD,kBAAkBA,CAAgBlE,IAA0B,EAAE;EAC5E,IAAI,CAACiE,gBAAgB,CAACjE,IAAI,CAAC;EAC3B,IAAI,CAACQ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,CAAC;AACvB;AAEO,SAASgD,gBAAgBA,CAE9BjE,IAA8D,EAC9D;EACA,IAAI,CAACI,SAAS,CAACJ,IAAI,CAACK,UAAU,CAAC;EAE/B,IAAI,CAAC,IAAI,CAACwC,MAAM,CAACC,cAAc,EAAE;IAAA,IAAAqB,cAAA;IAG/B,MAAMnB,OAAO,IAAAmB,cAAA,GAAGnE,IAAI,CAACiD,GAAG,CAACC,GAAG,cAAAiB,cAAA,GAAZA,cAAA,CAAcpC,GAAG,qBAAjBoC,cAAA,CAAmBhB,IAAI;IACvC,IAAIH,OAAO,EAAE,IAAI,CAACI,OAAO,CAACJ,OAAO,CAAC;EACpC;EAEA,IAAI,CAACK,2BAA2B,CAACrD,IAAI,CAAC;EACtC,IAAI,CAACoE,WAAW,CAACpE,IAAI,CAAC;AACxB;AAEO,SAASqE,WAAWA,CAAgBrE,IAAmB,EAAE;EAC9D,IAAI,CAACO,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACW,SAAK,IAAI,CAAC;EACf,IAAInB,IAAI,CAACiB,IAAI,CAACG,MAAM,KAAK,CAAC,EAAE;IAC1B,IAAI,CAACD,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACE,OAAO,CAAC,CAAC;IACd,IAAI,CAACiD,aAAa,CAACtE,IAAI,CAACiB,IAAI,EAAE,IAAI,CAAC;IACnC,IAAI,CAACU,UAAU,CAAC3B,IAAI,CAAC;EACvB;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","isExportDefaultDeclaration","isExportNamedDeclaration","ClassDeclaration","node","parent","inExport","_shouldPrintDecoratorsBeforeExport","printJoin","decorators","declare","word","space","abstract","id","print","typeParameters","superClass","superTypeParameters","implements","printList","body","ClassBody","token","length","newline","exit","enterForStatementInit","printSequence","indent","endsWith","rightBrace","ClassProperty","_node$key$loc","endLine","key","loc","end","line","catchUp","tsPrintClassMemberModifiers","computed","_variance","optional","definite","typeAnnotation","value","semicolon","ClassAccessorProperty","_node$key$loc2","ClassPrivateProperty","static","ClassMethod","_classMethodHead","ClassPrivateMethod","_node$key$loc3","_methodHead","StaticBlock"],"sources":["../../src/generators/classes.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isExportDefaultDeclaration,\n isExportNamedDeclaration,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\n\nexport function ClassDeclaration(\n this: Printer,\n node: t.ClassDeclaration,\n parent: t.Node,\n) {\n const inExport =\n isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent);\n\n if (\n !inExport ||\n !this._shouldPrintDecoratorsBeforeExport(\n parent as t.ExportDeclaration & { declaration: t.ClassDeclaration },\n )\n ) {\n this.printJoin(node.decorators, node);\n }\n\n if (node.declare) {\n // TS\n this.word(\"declare\");\n this.space();\n }\n\n if (node.abstract) {\n // TS\n this.word(\"abstract\");\n this.space();\n }\n\n this.word(\"class\");\n\n if (node.id) {\n this.space();\n this.print(node.id, node);\n }\n\n this.print(node.typeParameters, node);\n\n if (node.superClass) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.superClass, node);\n this.print(node.superTypeParameters, node);\n }\n\n if (node.implements) {\n this.space();\n this.word(\"implements\");\n this.space();\n this.printList(node.implements, node);\n }\n\n this.space();\n this.print(node.body, node);\n}\n\nexport { ClassDeclaration as ClassExpression };\n\nexport function ClassBody(this: Printer, node: t.ClassBody) {\n this.token(\"{\");\n if (node.body.length === 0) {\n this.token(\"}\");\n } else {\n this.newline();\n\n const exit = this.enterForStatementInit(false);\n this.printSequence(node.body, node, { indent: true });\n exit();\n\n if (!this.endsWith(charCodes.lineFeed)) this.newline();\n\n this.rightBrace(node);\n }\n}\n\nexport function ClassProperty(this: Printer, node: t.ClassProperty) {\n this.printJoin(node.decorators, node);\n\n // catch up to property key, avoid line break\n // between member modifiers and the property key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n\n this.tsPrintClassMemberModifiers(node);\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key, node);\n this.token(\"]\");\n } else {\n this._variance(node);\n this.print(node.key, node);\n }\n\n // TS\n if (node.optional) {\n this.token(\"?\");\n }\n if (node.definite) {\n this.token(\"!\");\n }\n\n this.print(node.typeAnnotation, node);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value, node);\n }\n this.semicolon();\n}\n\nexport function ClassAccessorProperty(\n this: Printer,\n node: t.ClassAccessorProperty,\n) {\n this.printJoin(node.decorators, node);\n\n // catch up to property key, avoid line break\n // between member modifiers and the property key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n\n // TS does not support class accessor property yet\n this.tsPrintClassMemberModifiers(node);\n\n this.word(\"accessor\", true);\n this.space();\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key, node);\n this.token(\"]\");\n } else {\n // Todo: Flow does not support class accessor property yet.\n this._variance(node);\n this.print(node.key, node);\n }\n\n // TS\n if (node.optional) {\n this.token(\"?\");\n }\n if (node.definite) {\n this.token(\"!\");\n }\n\n this.print(node.typeAnnotation, node);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value, node);\n }\n this.semicolon();\n}\n\nexport function ClassPrivateProperty(\n this: Printer,\n node: t.ClassPrivateProperty,\n) {\n this.printJoin(node.decorators, node);\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this.print(node.key, node);\n this.print(node.typeAnnotation, node);\n if (node.value) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.value, node);\n }\n this.semicolon();\n}\n\nexport function ClassMethod(this: Printer, node: t.ClassMethod) {\n this._classMethodHead(node);\n this.space();\n this.print(node.body, node);\n}\n\nexport function ClassPrivateMethod(this: Printer, node: t.ClassPrivateMethod) {\n this._classMethodHead(node);\n this.space();\n this.print(node.body, node);\n}\n\nexport function _classMethodHead(\n this: Printer,\n node: t.ClassMethod | t.ClassPrivateMethod | t.TSDeclareMethod,\n) {\n this.printJoin(node.decorators, node);\n\n // catch up to method key, avoid line break\n // between member modifiers/method heads and the method key.\n const endLine = node.key.loc?.end?.line;\n if (endLine) this.catchUp(endLine);\n\n this.tsPrintClassMemberModifiers(node);\n this._methodHead(node);\n}\n\nexport function StaticBlock(this: Printer, node: t.StaticBlock) {\n this.word(\"static\");\n this.space();\n this.token(\"{\");\n if (node.body.length === 0) {\n this.token(\"}\");\n } else {\n this.newline();\n this.printSequence(node.body, node, {\n indent: true,\n });\n this.rightBrace(node);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAGsB;EAFpBC,0BAA0B;EAC1BC;AAAwB,IAAAH,EAAA;AAQnB,SAASI,gBAAgBA,CAE9BC,IAAwB,EACxBC,MAAc,EACd;EACA,MAAMC,QAAQ,GACZL,0BAA0B,CAACI,MAAM,CAAC,IAAIH,wBAAwB,CAACG,MAAM,CAAC;EAExE,IACE,CAACC,QAAQ,IACT,CAAC,IAAI,CAACC,kCAAkC,CACtCF,MACF,CAAC,EACD;IACA,IAAI,CAACG,SAAS,CAACJ,IAAI,CAACK,UAAU,EAAEL,IAAI,CAAC;EACvC;EAEA,IAAIA,IAAI,CAACM,OAAO,EAAE;IAEhB,IAAI,CAACC,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAIR,IAAI,CAACS,QAAQ,EAAE;IAEjB,IAAI,CAACF,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;EAElB,IAAIP,IAAI,CAACU,EAAE,EAAE;IACX,IAAI,CAACF,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACU,EAAE,EAAEV,IAAI,CAAC;EAC3B;EAEA,IAAI,CAACW,KAAK,CAACX,IAAI,CAACY,cAAc,EAAEZ,IAAI,CAAC;EAErC,IAAIA,IAAI,CAACa,UAAU,EAAE;IACnB,IAAI,CAACL,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACa,UAAU,EAAEb,IAAI,CAAC;IACjC,IAAI,CAACW,KAAK,CAACX,IAAI,CAACc,mBAAmB,EAAEd,IAAI,CAAC;EAC5C;EAEA,IAAIA,IAAI,CAACe,UAAU,EAAE;IACnB,IAAI,CAACP,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,YAAY,CAAC;IACvB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACQ,SAAS,CAAChB,IAAI,CAACe,UAAU,EAAEf,IAAI,CAAC;EACvC;EAEA,IAAI,CAACQ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,EAAEjB,IAAI,CAAC;AAC7B;AAIO,SAASkB,SAASA,CAAgBlB,IAAiB,EAAE;EAC1D,IAAI,CAACmB,SAAK,IAAI,CAAC;EACf,IAAInB,IAAI,CAACiB,IAAI,CAACG,MAAM,KAAK,CAAC,EAAE;IAC1B,IAAI,CAACD,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACE,OAAO,CAAC,CAAC;IAEd,MAAMC,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;IAC9C,IAAI,CAACC,aAAa,CAACxB,IAAI,CAACiB,IAAI,EAAEjB,IAAI,EAAE;MAAEyB,MAAM,EAAE;IAAK,CAAC,CAAC;IACrDH,IAAI,CAAC,CAAC;IAEN,IAAI,CAAC,IAAI,CAACI,QAAQ,GAAmB,CAAC,EAAE,IAAI,CAACL,OAAO,CAAC,CAAC;IAEtD,IAAI,CAACM,UAAU,CAAC3B,IAAI,CAAC;EACvB;AACF;AAEO,SAAS4B,aAAaA,CAAgB5B,IAAqB,EAAE;EAAA,IAAA6B,aAAA;EAClE,IAAI,CAACzB,SAAS,CAACJ,IAAI,CAACK,UAAU,EAAEL,IAAI,CAAC;EAIrC,MAAM8B,OAAO,IAAAD,aAAA,GAAG7B,IAAI,CAAC+B,GAAG,CAACC,GAAG,cAAAH,aAAA,GAAZA,aAAA,CAAcI,GAAG,qBAAjBJ,aAAA,CAAmBK,IAAI;EACvC,IAAIJ,OAAO,EAAE,IAAI,CAACK,OAAO,CAACL,OAAO,CAAC;EAElC,IAAI,CAACM,2BAA2B,CAACpC,IAAI,CAAC;EAEtC,IAAIA,IAAI,CAACqC,QAAQ,EAAE;IACjB,IAAI,CAAClB,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAACX,IAAI,CAAC+B,GAAG,EAAE/B,IAAI,CAAC;IAC1B,IAAI,CAACmB,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACmB,SAAS,CAACtC,IAAI,CAAC;IACpB,IAAI,CAACW,KAAK,CAACX,IAAI,CAAC+B,GAAG,EAAE/B,IAAI,CAAC;EAC5B;EAGA,IAAIA,IAAI,CAACuC,QAAQ,EAAE;IACjB,IAAI,CAACpB,SAAK,GAAI,CAAC;EACjB;EACA,IAAInB,IAAI,CAACwC,QAAQ,EAAE;IACjB,IAAI,CAACrB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAACX,IAAI,CAACyC,cAAc,EAAEzC,IAAI,CAAC;EACrC,IAAIA,IAAI,CAAC0C,KAAK,EAAE;IACd,IAAI,CAAClC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC0C,KAAK,EAAE1C,IAAI,CAAC;EAC9B;EACA,IAAI,CAAC2C,SAAS,CAAC,CAAC;AAClB;AAEO,SAASC,qBAAqBA,CAEnC5C,IAA6B,EAC7B;EAAA,IAAA6C,cAAA;EACA,IAAI,CAACzC,SAAS,CAACJ,IAAI,CAACK,UAAU,EAAEL,IAAI,CAAC;EAIrC,MAAM8B,OAAO,IAAAe,cAAA,GAAG7C,IAAI,CAAC+B,GAAG,CAACC,GAAG,cAAAa,cAAA,GAAZA,cAAA,CAAcZ,GAAG,qBAAjBY,cAAA,CAAmBX,IAAI;EACvC,IAAIJ,OAAO,EAAE,IAAI,CAACK,OAAO,CAACL,OAAO,CAAC;EAGlC,IAAI,CAACM,2BAA2B,CAACpC,IAAI,CAAC;EAEtC,IAAI,CAACO,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;EAC3B,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,IAAIR,IAAI,CAACqC,QAAQ,EAAE;IACjB,IAAI,CAAClB,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAACX,IAAI,CAAC+B,GAAG,EAAE/B,IAAI,CAAC;IAC1B,IAAI,CAACmB,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IAEL,IAAI,CAACmB,SAAS,CAACtC,IAAI,CAAC;IACpB,IAAI,CAACW,KAAK,CAACX,IAAI,CAAC+B,GAAG,EAAE/B,IAAI,CAAC;EAC5B;EAGA,IAAIA,IAAI,CAACuC,QAAQ,EAAE;IACjB,IAAI,CAACpB,SAAK,GAAI,CAAC;EACjB;EACA,IAAInB,IAAI,CAACwC,QAAQ,EAAE;IACjB,IAAI,CAACrB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAACX,IAAI,CAACyC,cAAc,EAAEzC,IAAI,CAAC;EACrC,IAAIA,IAAI,CAAC0C,KAAK,EAAE;IACd,IAAI,CAAClC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC0C,KAAK,EAAE1C,IAAI,CAAC;EAC9B;EACA,IAAI,CAAC2C,SAAS,CAAC,CAAC;AAClB;AAEO,SAASG,oBAAoBA,CAElC9C,IAA4B,EAC5B;EACA,IAAI,CAACI,SAAS,CAACJ,IAAI,CAACK,UAAU,EAAEL,IAAI,CAAC;EACrC,IAAIA,IAAI,CAAC+C,MAAM,EAAE;IACf,IAAI,CAACxC,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC+B,GAAG,EAAE/B,IAAI,CAAC;EAC1B,IAAI,CAACW,KAAK,CAACX,IAAI,CAACyC,cAAc,EAAEzC,IAAI,CAAC;EACrC,IAAIA,IAAI,CAAC0C,KAAK,EAAE;IACd,IAAI,CAAClC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAAC0C,KAAK,EAAE1C,IAAI,CAAC;EAC9B;EACA,IAAI,CAAC2C,SAAS,CAAC,CAAC;AAClB;AAEO,SAASK,WAAWA,CAAgBhD,IAAmB,EAAE;EAC9D,IAAI,CAACiD,gBAAgB,CAACjD,IAAI,CAAC;EAC3B,IAAI,CAACQ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,EAAEjB,IAAI,CAAC;AAC7B;AAEO,SAASkD,kBAAkBA,CAAgBlD,IAA0B,EAAE;EAC5E,IAAI,CAACiD,gBAAgB,CAACjD,IAAI,CAAC;EAC3B,IAAI,CAACQ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACG,KAAK,CAACX,IAAI,CAACiB,IAAI,EAAEjB,IAAI,CAAC;AAC7B;AAEO,SAASiD,gBAAgBA,CAE9BjD,IAA8D,EAC9D;EAAA,IAAAmD,cAAA;EACA,IAAI,CAAC/C,SAAS,CAACJ,IAAI,CAACK,UAAU,EAAEL,IAAI,CAAC;EAIrC,MAAM8B,OAAO,IAAAqB,cAAA,GAAGnD,IAAI,CAAC+B,GAAG,CAACC,GAAG,cAAAmB,cAAA,GAAZA,cAAA,CAAclB,GAAG,qBAAjBkB,cAAA,CAAmBjB,IAAI;EACvC,IAAIJ,OAAO,EAAE,IAAI,CAACK,OAAO,CAACL,OAAO,CAAC;EAElC,IAAI,CAACM,2BAA2B,CAACpC,IAAI,CAAC;EACtC,IAAI,CAACoD,WAAW,CAACpD,IAAI,CAAC;AACxB;AAEO,SAASqD,WAAWA,CAAgBrD,IAAmB,EAAE;EAC9D,IAAI,CAACO,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACW,SAAK,IAAI,CAAC;EACf,IAAInB,IAAI,CAACiB,IAAI,CAACG,MAAM,KAAK,CAAC,EAAE;IAC1B,IAAI,CAACD,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACE,OAAO,CAAC,CAAC;IACd,IAAI,CAACG,aAAa,CAACxB,IAAI,CAACiB,IAAI,EAAEjB,IAAI,EAAE;MAClCyB,MAAM,EAAE;IACV,CAAC,CAAC;IACF,IAAI,CAACE,UAAU,CAAC3B,IAAI,CAAC;EACvB;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/deprecated.js b/node_modules/@babel/generator/lib/generators/deprecated.js deleted file mode 100644 index fc02bf96e..000000000 --- a/node_modules/@babel/generator/lib/generators/deprecated.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.addDeprecatedGenerators = addDeprecatedGenerators; -function addDeprecatedGenerators(PrinterClass) { - { - const deprecatedBabel7Generators = { - Noop() {}, - TSExpressionWithTypeArguments(node) { - this.print(node.expression); - this.print(node.typeParameters); - }, - DecimalLiteral(node) { - const raw = this.getPossibleRaw(node); - if (!this.format.minified && raw !== undefined) { - this.word(raw); - return; - } - this.word(node.value + "m"); - } - }; - Object.assign(PrinterClass.prototype, deprecatedBabel7Generators); - } -} - -//# sourceMappingURL=deprecated.js.map diff --git a/node_modules/@babel/generator/lib/generators/deprecated.js.map b/node_modules/@babel/generator/lib/generators/deprecated.js.map deleted file mode 100644 index 732752647..000000000 --- a/node_modules/@babel/generator/lib/generators/deprecated.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["addDeprecatedGenerators","PrinterClass","deprecatedBabel7Generators","Noop","TSExpressionWithTypeArguments","node","print","expression","typeParameters","DecimalLiteral","raw","getPossibleRaw","format","minified","undefined","word","value","Object","assign","prototype"],"sources":["../../src/generators/deprecated.ts"],"sourcesContent":["import type Printer from \"../printer\";\nimport type * as t from \"@babel/types\";\n\nexport type DeprecatedBabel7ASTTypes =\n | \"Noop\"\n | \"TSExpressionWithTypeArguments\"\n | \"DecimalLiteral\";\n\nexport function addDeprecatedGenerators(PrinterClass: typeof Printer) {\n // Add Babel 7 generator methods that is removed in Babel 8\n if (!process.env.BABEL_8_BREAKING) {\n const deprecatedBabel7Generators = {\n Noop(this: Printer) {},\n\n TSExpressionWithTypeArguments(\n this: Printer,\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node: t.TSExpressionWithTypeArguments,\n ) {\n this.print(node.expression);\n this.print(node.typeParameters);\n },\n\n DecimalLiteral(this: Printer, node: any) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.word(raw);\n return;\n }\n this.word(node.value + \"m\");\n },\n } satisfies Record<\n DeprecatedBabel7ASTTypes,\n (this: Printer, node: any) => void\n >;\n Object.assign(PrinterClass.prototype, deprecatedBabel7Generators);\n }\n}\n"],"mappings":";;;;;;AAQO,SAASA,uBAAuBA,CAACC,YAA4B,EAAE;EAEjC;IACjC,MAAMC,0BAA0B,GAAG;MACjCC,IAAIA,CAAA,EAAgB,CAAC,CAAC;MAEtBC,6BAA6BA,CAG3BC,IAAqC,EACrC;QACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,UAAU,CAAC;QAC3B,IAAI,CAACD,KAAK,CAACD,IAAI,CAACG,cAAc,CAAC;MACjC,CAAC;MAEDC,cAAcA,CAAgBJ,IAAS,EAAE;QACvC,MAAMK,GAAG,GAAG,IAAI,CAACC,cAAc,CAACN,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,CAACO,MAAM,CAACC,QAAQ,IAAIH,GAAG,KAAKI,SAAS,EAAE;UAC9C,IAAI,CAACC,IAAI,CAACL,GAAG,CAAC;UACd;QACF;QACA,IAAI,CAACK,IAAI,CAACV,IAAI,CAACW,KAAK,GAAG,GAAG,CAAC;MAC7B;IACF,CAGC;IACDC,MAAM,CAACC,MAAM,CAACjB,YAAY,CAACkB,SAAS,EAAEjB,0BAA0B,CAAC;EACnE;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/expressions.js b/node_modules/@babel/generator/lib/generators/expressions.js index b113ef796..cd89407d8 100644 --- a/node_modules/@babel/generator/lib/generators/expressions.js +++ b/node_modules/@babel/generator/lib/generators/expressions.js @@ -36,8 +36,7 @@ const { isCallExpression, isLiteral, isMemberExpression, - isNewExpression, - isPattern + isNewExpression } = _t; function UnaryExpression(node) { const { @@ -49,7 +48,7 @@ function UnaryExpression(node) { } else { this.token(operator); } - this.print(node.argument); + this.print(node.argument, node); } function DoExpression(node) { if (node.async) { @@ -58,62 +57,55 @@ function DoExpression(node) { } this.word("do"); this.space(); - this.print(node.body); + this.print(node.body, node); } function ParenthesizedExpression(node) { this.tokenChar(40); - const exit = this.enterDelimited(); - this.print(node.expression); - exit(); + this.print(node.expression, node); this.rightParens(node); } function UpdateExpression(node) { if (node.prefix) { this.token(node.operator); - this.print(node.argument); + this.print(node.argument, node); } else { - this.print(node.argument, true); + this.printTerminatorless(node.argument, node, true); this.token(node.operator); } } function ConditionalExpression(node) { - this.print(node.test); + this.print(node.test, node); this.space(); this.tokenChar(63); this.space(); - this.print(node.consequent); + this.print(node.consequent, node); this.space(); this.tokenChar(58); this.space(); - this.print(node.alternate); + this.print(node.alternate, node); } function NewExpression(node, parent) { this.word("new"); this.space(); - this.print(node.callee); + this.print(node.callee, node); if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, { callee: node }) && !isMemberExpression(parent) && !isNewExpression(parent)) { return; } - this.print(node.typeArguments); - { - this.print(node.typeParameters); - } + this.print(node.typeArguments, node); + this.print(node.typeParameters, node); if (node.optional) { this.token("?."); } - if (node.arguments.length === 0 && this.tokenMap && !this.tokenMap.endMatches(node, ")")) { - return; - } this.tokenChar(40); - const exit = this.enterDelimited(); - this.printList(node.arguments, this.shouldPrintTrailingComma(")")); + const exit = this.enterForStatementInit(false); + this.printList(node.arguments, node); exit(); this.rightParens(node); } function SequenceExpression(node) { - this.printList(node.expressions); + this.printList(node.expressions, node); } function ThisExpression() { this.word("this"); @@ -129,7 +121,7 @@ function _shouldPrintDecoratorsBeforeExport(node) { } function Decorator(node) { this.tokenChar(64); - this.print(node.expression); + this.print(node.expression, node); this.newline(); } function OptionalMemberExpression(node) { @@ -140,7 +132,7 @@ function OptionalMemberExpression(node) { optional, property } = node; - this.print(node.object); + this.print(node.object, node); if (!computed && isMemberExpression(property)) { throw new TypeError("Got a MemberExpression for MemberExpression property"); } @@ -152,39 +144,35 @@ function OptionalMemberExpression(node) { } if (computed) { this.tokenChar(91); - this.print(property); + this.print(property, node); this.tokenChar(93); } else { if (!optional) { this.tokenChar(46); } - this.print(property); + this.print(property, node); } } function OptionalCallExpression(node) { - this.print(node.callee); - { - this.print(node.typeParameters); - } + this.print(node.callee, node); + this.print(node.typeParameters, node); if (node.optional) { this.token("?."); } - this.print(node.typeArguments); + this.print(node.typeArguments, node); this.tokenChar(40); - const exit = this.enterDelimited(); - this.printList(node.arguments); + const exit = this.enterForStatementInit(false); + this.printList(node.arguments, node); exit(); this.rightParens(node); } function CallExpression(node) { - this.print(node.callee); - this.print(node.typeArguments); - { - this.print(node.typeParameters); - } + this.print(node.callee, node); + this.print(node.typeArguments, node); + this.print(node.typeParameters, node); this.tokenChar(40); - const exit = this.enterDelimited(); - this.printList(node.arguments, this.shouldPrintTrailingComma(")")); + const exit = this.enterForStatementInit(false); + this.printList(node.arguments, node); exit(); this.rightParens(node); } @@ -193,23 +181,24 @@ function Import() { } function AwaitExpression(node) { this.word("await"); - this.space(); - this.print(node.argument); + if (node.argument) { + this.space(); + this.printTerminatorless(node.argument, node, false); + } } function YieldExpression(node) { + this.word("yield", true); if (node.delegate) { - this.word("yield", true); this.tokenChar(42); if (node.argument) { this.space(); - this.print(node.argument); + this.print(node.argument, node); } - } else if (node.argument) { - this.word("yield", true); - this.space(); - this.print(node.argument); } else { - this.word("yield"); + if (node.argument) { + this.space(); + this.printTerminatorless(node.argument, node, false); + } } } function EmptyStatement() { @@ -217,39 +206,38 @@ function EmptyStatement() { } function ExpressionStatement(node) { this.tokenContext |= _index.TokenContext.expressionStatement; - this.print(node.expression); + this.print(node.expression, node); this.semicolon(); } function AssignmentPattern(node) { - this.print(node.left); - if (node.left.type === "Identifier" || isPattern(node.left)) { + this.print(node.left, node); + if (node.left.type === "Identifier") { if (node.left.optional) this.tokenChar(63); - this.print(node.left.typeAnnotation); + this.print(node.left.typeAnnotation, node); } this.space(); this.tokenChar(61); this.space(); - this.print(node.right); + this.print(node.right, node); } function AssignmentExpression(node) { - this.print(node.left); + this.print(node.left, node); this.space(); if (node.operator === "in" || node.operator === "instanceof") { this.word(node.operator); } else { this.token(node.operator); - this._endsWithDiv = node.operator === "/"; } this.space(); - this.print(node.right); + this.print(node.right, node); } function BindExpression(node) { - this.print(node.object); + this.print(node.object, node); this.token("::"); - this.print(node.callee); + this.print(node.callee, node); } function MemberExpression(node) { - this.print(node.object); + this.print(node.object, node); if (!node.computed && isMemberExpression(node.property)) { throw new TypeError("Got a MemberExpression for MemberExpression property"); } @@ -258,24 +246,24 @@ function MemberExpression(node) { computed = true; } if (computed) { - const exit = this.enterDelimited(); + const exit = this.enterForStatementInit(false); this.tokenChar(91); - this.print(node.property); + this.print(node.property, node); this.tokenChar(93); exit(); } else { this.tokenChar(46); - this.print(node.property); + this.print(node.property, node); } } function MetaProperty(node) { - this.print(node.meta); + this.print(node.meta, node); this.tokenChar(46); - this.print(node.property); + this.print(node.property, node); } function PrivateName(node) { this.tokenChar(35); - this.print(node.id); + this.print(node.id, node); } function V8IntrinsicIdentifier(node) { this.tokenChar(37); @@ -292,7 +280,7 @@ function ModuleExpression(node) { if (body.body.length || body.directives.length) { this.newline(); } - this.print(body); + this.print(body, node); this.dedent(); this.rightBrace(node); } diff --git a/node_modules/@babel/generator/lib/generators/expressions.js.map b/node_modules/@babel/generator/lib/generators/expressions.js.map index 69c8daaa2..7fcd294d7 100644 --- a/node_modules/@babel/generator/lib/generators/expressions.js.map +++ b/node_modules/@babel/generator/lib/generators/expressions.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_index","isCallExpression","isLiteral","isMemberExpression","isNewExpression","isPattern","UnaryExpression","node","operator","word","space","token","print","argument","DoExpression","async","body","ParenthesizedExpression","exit","enterDelimited","expression","rightParens","UpdateExpression","prefix","ConditionalExpression","test","consequent","alternate","NewExpression","parent","callee","format","minified","arguments","length","optional","typeArguments","typeParameters","tokenMap","endMatches","printList","shouldPrintTrailingComma","SequenceExpression","expressions","ThisExpression","Super","_shouldPrintDecoratorsBeforeExport","decoratorsBeforeExport","start","declaration","Decorator","newline","OptionalMemberExpression","computed","property","object","TypeError","value","OptionalCallExpression","CallExpression","Import","AwaitExpression","YieldExpression","delegate","EmptyStatement","semicolon","ExpressionStatement","tokenContext","TokenContext","expressionStatement","AssignmentPattern","left","type","typeAnnotation","right","AssignmentExpression","_endsWithDiv","BindExpression","MemberExpression","MetaProperty","meta","PrivateName","id","V8IntrinsicIdentifier","name","ModuleExpression","indent","directives","dedent","rightBrace"],"sources":["../../src/generators/expressions.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isCallExpression,\n isLiteral,\n isMemberExpression,\n isNewExpression,\n isPattern,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function UnaryExpression(this: Printer, node: t.UnaryExpression) {\n const { operator } = node;\n if (\n operator === \"void\" ||\n operator === \"delete\" ||\n operator === \"typeof\" ||\n // throwExpressions\n operator === \"throw\"\n ) {\n this.word(operator);\n this.space();\n } else {\n this.token(operator);\n }\n\n this.print(node.argument);\n}\n\nexport function DoExpression(this: Printer, node: t.DoExpression) {\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n this.word(\"do\");\n this.space();\n this.print(node.body);\n}\n\nexport function ParenthesizedExpression(\n this: Printer,\n node: t.ParenthesizedExpression,\n) {\n this.token(\"(\");\n const exit = this.enterDelimited();\n this.print(node.expression);\n exit();\n this.rightParens(node);\n}\n\nexport function UpdateExpression(this: Printer, node: t.UpdateExpression) {\n if (node.prefix) {\n this.token(node.operator);\n this.print(node.argument);\n } else {\n this.print(node.argument, true);\n this.token(node.operator);\n }\n}\n\nexport function ConditionalExpression(\n this: Printer,\n node: t.ConditionalExpression,\n) {\n this.print(node.test);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.consequent);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.alternate);\n}\n\nexport function NewExpression(\n this: Printer,\n node: t.NewExpression,\n parent: t.Node,\n) {\n this.word(\"new\");\n this.space();\n this.print(node.callee);\n if (\n this.format.minified &&\n node.arguments.length === 0 &&\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n !node.optional &&\n !isCallExpression(parent, { callee: node }) &&\n !isMemberExpression(parent) &&\n !isNewExpression(parent)\n ) {\n return;\n }\n\n this.print(node.typeArguments);\n if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n this.print(node.typeParameters); // Legacy TS AST\n }\n\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n if (node.optional) {\n // TODO: This can never happen\n this.token(\"?.\");\n }\n\n if (\n node.arguments.length === 0 &&\n this.tokenMap &&\n !this.tokenMap.endMatches(node, \")\")\n ) {\n return;\n }\n\n this.token(\"(\");\n const exit = this.enterDelimited();\n this.printList(node.arguments, this.shouldPrintTrailingComma(\")\"));\n exit();\n this.rightParens(node);\n}\n\nexport function SequenceExpression(this: Printer, node: t.SequenceExpression) {\n this.printList(node.expressions);\n}\n\nexport function ThisExpression(this: Printer) {\n this.word(\"this\");\n}\n\nexport function Super(this: Printer) {\n this.word(\"super\");\n}\n\nexport function _shouldPrintDecoratorsBeforeExport(\n this: Printer,\n node: t.ExportDeclaration & { declaration: t.ClassDeclaration },\n) {\n if (typeof this.format.decoratorsBeforeExport === \"boolean\") {\n return this.format.decoratorsBeforeExport;\n }\n return (\n typeof node.start === \"number\" && node.start === node.declaration.start\n );\n}\n\nexport function Decorator(this: Printer, node: t.Decorator) {\n this.token(\"@\");\n this.print(node.expression);\n this.newline();\n}\n\nexport function OptionalMemberExpression(\n this: Printer,\n node: t.OptionalMemberExpression,\n) {\n let { computed } = node;\n const { optional, property } = node;\n\n this.print(node.object);\n\n if (!computed && isMemberExpression(property)) {\n throw new TypeError(\"Got a MemberExpression for MemberExpression property\");\n }\n\n // @ts-expect-error todo(flow->ts) maybe instead of typeof check specific literal types?\n if (isLiteral(property) && typeof property.value === \"number\") {\n computed = true;\n }\n if (optional) {\n this.token(\"?.\");\n }\n\n if (computed) {\n this.token(\"[\");\n this.print(property);\n this.token(\"]\");\n } else {\n if (!optional) {\n this.token(\".\");\n }\n this.print(property);\n }\n}\n\nexport function OptionalCallExpression(\n this: Printer,\n node: t.OptionalCallExpression,\n) {\n this.print(node.callee);\n\n if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n this.print(node.typeParameters); // legacy TS AST\n }\n\n if (node.optional) {\n this.token(\"?.\");\n }\n\n this.print(node.typeArguments);\n\n this.token(\"(\");\n const exit = this.enterDelimited();\n this.printList(node.arguments);\n exit();\n this.rightParens(node);\n}\n\nexport function CallExpression(this: Printer, node: t.CallExpression) {\n this.print(node.callee);\n\n this.print(node.typeArguments);\n if (!process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n this.print(node.typeParameters); // legacy TS AST\n }\n this.token(\"(\");\n const exit = this.enterDelimited();\n this.printList(node.arguments, this.shouldPrintTrailingComma(\")\"));\n exit();\n this.rightParens(node);\n}\n\nexport function Import(this: Printer) {\n this.word(\"import\");\n}\n\nexport function AwaitExpression(this: Printer, node: t.AwaitExpression) {\n this.word(\"await\");\n this.space();\n this.print(node.argument);\n}\n\nexport function YieldExpression(this: Printer, node: t.YieldExpression) {\n if (node.delegate) {\n this.word(\"yield\", true);\n this.token(\"*\");\n if (node.argument) {\n this.space();\n // line terminators are allowed after yield*\n this.print(node.argument);\n }\n } else if (node.argument) {\n this.word(\"yield\", true);\n this.space();\n this.print(node.argument);\n } else {\n this.word(\"yield\");\n }\n}\n\nexport function EmptyStatement(this: Printer) {\n this.semicolon(true /* force */);\n}\n\nexport function ExpressionStatement(\n this: Printer,\n node: t.ExpressionStatement,\n) {\n this.tokenContext |= TokenContext.expressionStatement;\n this.print(node.expression);\n this.semicolon();\n}\n\nexport function AssignmentPattern(this: Printer, node: t.AssignmentPattern) {\n this.print(node.left);\n if (node.left.type === \"Identifier\" || isPattern(node.left)) {\n if (node.left.optional) this.token(\"?\");\n this.print(node.left.typeAnnotation);\n }\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.right);\n}\n\nexport function AssignmentExpression(\n this: Printer,\n node: t.AssignmentExpression | t.BinaryExpression | t.LogicalExpression,\n) {\n this.print(node.left);\n\n this.space();\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n this.word(node.operator);\n } else {\n this.token(node.operator);\n this._endsWithDiv = node.operator === \"/\";\n }\n this.space();\n\n this.print(node.right);\n}\n\nexport function BindExpression(this: Printer, node: t.BindExpression) {\n this.print(node.object);\n this.token(\"::\");\n this.print(node.callee);\n}\n\nexport {\n AssignmentExpression as BinaryExpression,\n AssignmentExpression as LogicalExpression,\n};\n\nexport function MemberExpression(this: Printer, node: t.MemberExpression) {\n this.print(node.object);\n\n if (!node.computed && isMemberExpression(node.property)) {\n throw new TypeError(\"Got a MemberExpression for MemberExpression property\");\n }\n\n let computed = node.computed;\n // @ts-expect-error todo(flow->ts) maybe use specific literal types\n if (isLiteral(node.property) && typeof node.property.value === \"number\") {\n computed = true;\n }\n\n if (computed) {\n const exit = this.enterDelimited();\n this.token(\"[\");\n this.print(node.property);\n this.token(\"]\");\n exit();\n } else {\n this.token(\".\");\n this.print(node.property);\n }\n}\n\nexport function MetaProperty(this: Printer, node: t.MetaProperty) {\n this.print(node.meta);\n this.token(\".\");\n this.print(node.property);\n}\n\nexport function PrivateName(this: Printer, node: t.PrivateName) {\n this.token(\"#\");\n this.print(node.id);\n}\n\nexport function V8IntrinsicIdentifier(\n this: Printer,\n node: t.V8IntrinsicIdentifier,\n) {\n this.token(\"%\");\n this.word(node.name);\n}\n\nexport function ModuleExpression(this: Printer, node: t.ModuleExpression) {\n this.word(\"module\", true);\n this.space();\n this.token(\"{\");\n this.indent();\n const { body } = node;\n if (body.body.length || body.directives.length) {\n this.newline();\n }\n this.print(body);\n this.dedent();\n this.rightBrace(node);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EAP9CE,gBAAgB;EAChBC,SAAS;EACTC,kBAAkB;EAClBC,eAAe;EACfC;AAAS,IAAAP,EAAA;AAKJ,SAASQ,eAAeA,CAAgBC,IAAuB,EAAE;EACtE,MAAM;IAAEC;EAAS,CAAC,GAAGD,IAAI;EACzB,IACEC,QAAQ,KAAK,MAAM,IACnBA,QAAQ,KAAK,QAAQ,IACrBA,QAAQ,KAAK,QAAQ,IAErBA,QAAQ,KAAK,OAAO,EACpB;IACA,IAAI,CAACC,IAAI,CAACD,QAAQ,CAAC;IACnB,IAAI,CAACE,KAAK,CAAC,CAAC;EACd,CAAC,MAAM;IACL,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;EACtB;EAEA,IAAI,CAACI,KAAK,CAACL,IAAI,CAACM,QAAQ,CAAC;AAC3B;AAEO,SAASC,YAAYA,CAAgBP,IAAoB,EAAE;EAChE,IAAIA,IAAI,CAACQ,KAAK,EAAE;IACd,IAAI,CAACN,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACS,IAAI,CAAC;AACvB;AAEO,SAASC,uBAAuBA,CAErCV,IAA+B,EAC/B;EACA,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,MAAMO,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAClC,IAAI,CAACP,KAAK,CAACL,IAAI,CAACa,UAAU,CAAC;EAC3BF,IAAI,CAAC,CAAC;EACN,IAAI,CAACG,WAAW,CAACd,IAAI,CAAC;AACxB;AAEO,SAASe,gBAAgBA,CAAgBf,IAAwB,EAAE;EACxE,IAAIA,IAAI,CAACgB,MAAM,EAAE;IACf,IAAI,CAACZ,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;IACzB,IAAI,CAACI,KAAK,CAACL,IAAI,CAACM,QAAQ,CAAC;EAC3B,CAAC,MAAM;IACL,IAAI,CAACD,KAAK,CAACL,IAAI,CAACM,QAAQ,EAAE,IAAI,CAAC;IAC/B,IAAI,CAACF,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;EAC3B;AACF;AAEO,SAASgB,qBAAqBA,CAEnCjB,IAA6B,EAC7B;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAACkB,IAAI,CAAC;EACrB,IAAI,CAACf,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACmB,UAAU,CAAC;EAC3B,IAAI,CAAChB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACoB,SAAS,CAAC;AAC5B;AAEO,SAASC,aAAaA,CAE3BrB,IAAqB,EACrBsB,MAAc,EACd;EACA,IAAI,CAACpB,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACuB,MAAM,CAAC;EACvB,IACE,IAAI,CAACC,MAAM,CAACC,QAAQ,IACpBzB,IAAI,CAAC0B,SAAS,CAACC,MAAM,KAAK,CAAC,IAE3B,CAAC3B,IAAI,CAAC4B,QAAQ,IACd,CAAClC,gBAAgB,CAAC4B,MAAM,EAAE;IAAEC,MAAM,EAAEvB;EAAK,CAAC,CAAC,IAC3C,CAACJ,kBAAkB,CAAC0B,MAAM,CAAC,IAC3B,CAACzB,eAAe,CAACyB,MAAM,CAAC,EACxB;IACA;EACF;EAEA,IAAI,CAACjB,KAAK,CAACL,IAAI,CAAC6B,aAAa,CAAC;EACK;IAEjC,IAAI,CAACxB,KAAK,CAACL,IAAI,CAAC8B,cAAc,CAAC;EACjC;EAGA,IAAI9B,IAAI,CAAC4B,QAAQ,EAAE;IAEjB,IAAI,CAACxB,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IACEJ,IAAI,CAAC0B,SAAS,CAACC,MAAM,KAAK,CAAC,IAC3B,IAAI,CAACI,QAAQ,IACb,CAAC,IAAI,CAACA,QAAQ,CAACC,UAAU,CAAChC,IAAI,EAAE,GAAG,CAAC,EACpC;IACA;EACF;EAEA,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,MAAMO,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAClC,IAAI,CAACqB,SAAS,CAACjC,IAAI,CAAC0B,SAAS,EAAE,IAAI,CAACQ,wBAAwB,CAAC,GAAG,CAAC,CAAC;EAClEvB,IAAI,CAAC,CAAC;EACN,IAAI,CAACG,WAAW,CAACd,IAAI,CAAC;AACxB;AAEO,SAASmC,kBAAkBA,CAAgBnC,IAA0B,EAAE;EAC5E,IAAI,CAACiC,SAAS,CAACjC,IAAI,CAACoC,WAAW,CAAC;AAClC;AAEO,SAASC,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAACnC,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASoC,KAAKA,CAAA,EAAgB;EACnC,IAAI,CAACpC,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASqC,kCAAkCA,CAEhDvC,IAA+D,EAC/D;EACA,IAAI,OAAO,IAAI,CAACwB,MAAM,CAACgB,sBAAsB,KAAK,SAAS,EAAE;IAC3D,OAAO,IAAI,CAAChB,MAAM,CAACgB,sBAAsB;EAC3C;EACA,OACE,OAAOxC,IAAI,CAACyC,KAAK,KAAK,QAAQ,IAAIzC,IAAI,CAACyC,KAAK,KAAKzC,IAAI,CAAC0C,WAAW,CAACD,KAAK;AAE3E;AAEO,SAASE,SAASA,CAAgB3C,IAAiB,EAAE;EAC1D,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAACa,UAAU,CAAC;EAC3B,IAAI,CAAC+B,OAAO,CAAC,CAAC;AAChB;AAEO,SAASC,wBAAwBA,CAEtC7C,IAAgC,EAChC;EACA,IAAI;IAAE8C;EAAS,CAAC,GAAG9C,IAAI;EACvB,MAAM;IAAE4B,QAAQ;IAAEmB;EAAS,CAAC,GAAG/C,IAAI;EAEnC,IAAI,CAACK,KAAK,CAACL,IAAI,CAACgD,MAAM,CAAC;EAEvB,IAAI,CAACF,QAAQ,IAAIlD,kBAAkB,CAACmD,QAAQ,CAAC,EAAE;IAC7C,MAAM,IAAIE,SAAS,CAAC,sDAAsD,CAAC;EAC7E;EAGA,IAAItD,SAAS,CAACoD,QAAQ,CAAC,IAAI,OAAOA,QAAQ,CAACG,KAAK,KAAK,QAAQ,EAAE;IAC7DJ,QAAQ,GAAG,IAAI;EACjB;EACA,IAAIlB,QAAQ,EAAE;IACZ,IAAI,CAACxB,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAI0C,QAAQ,EAAE;IACZ,IAAI,CAAC1C,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC0C,QAAQ,CAAC;IACpB,IAAI,CAAC3C,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACwB,QAAQ,EAAE;MACb,IAAI,CAACxB,SAAK,GAAI,CAAC;IACjB;IACA,IAAI,CAACC,KAAK,CAAC0C,QAAQ,CAAC;EACtB;AACF;AAEO,SAASI,sBAAsBA,CAEpCnD,IAA8B,EAC9B;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAACuB,MAAM,CAAC;EAEY;IAEjC,IAAI,CAAClB,KAAK,CAACL,IAAI,CAAC8B,cAAc,CAAC;EACjC;EAEA,IAAI9B,IAAI,CAAC4B,QAAQ,EAAE;IACjB,IAAI,CAACxB,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC6B,aAAa,CAAC;EAE9B,IAAI,CAACzB,SAAK,GAAI,CAAC;EACf,MAAMO,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAClC,IAAI,CAACqB,SAAS,CAACjC,IAAI,CAAC0B,SAAS,CAAC;EAC9Bf,IAAI,CAAC,CAAC;EACN,IAAI,CAACG,WAAW,CAACd,IAAI,CAAC;AACxB;AAEO,SAASoD,cAAcA,CAAgBpD,IAAsB,EAAE;EACpE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACuB,MAAM,CAAC;EAEvB,IAAI,CAAClB,KAAK,CAACL,IAAI,CAAC6B,aAAa,CAAC;EACK;IAEjC,IAAI,CAACxB,KAAK,CAACL,IAAI,CAAC8B,cAAc,CAAC;EACjC;EACA,IAAI,CAAC1B,SAAK,GAAI,CAAC;EACf,MAAMO,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAClC,IAAI,CAACqB,SAAS,CAACjC,IAAI,CAAC0B,SAAS,EAAE,IAAI,CAACQ,wBAAwB,CAAC,GAAG,CAAC,CAAC;EAClEvB,IAAI,CAAC,CAAC;EACN,IAAI,CAACG,WAAW,CAACd,IAAI,CAAC;AACxB;AAEO,SAASqD,MAAMA,CAAA,EAAgB;EACpC,IAAI,CAACnD,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASoD,eAAeA,CAAgBtD,IAAuB,EAAE;EACtE,IAAI,CAACE,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACM,QAAQ,CAAC;AAC3B;AAEO,SAASiD,eAAeA,CAAgBvD,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACwD,QAAQ,EAAE;IACjB,IAAI,CAACtD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACE,SAAK,GAAI,CAAC;IACf,IAAIJ,IAAI,CAACM,QAAQ,EAAE;MACjB,IAAI,CAACH,KAAK,CAAC,CAAC;MAEZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACM,QAAQ,CAAC;IAC3B;EACF,CAAC,MAAM,IAAIN,IAAI,CAACM,QAAQ,EAAE;IACxB,IAAI,CAACJ,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACM,QAAQ,CAAC;EAC3B,CAAC,MAAM;IACL,IAAI,CAACJ,IAAI,CAAC,OAAO,CAAC;EACpB;AACF;AAEO,SAASuD,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAACC,SAAS,CAAC,IAAgB,CAAC;AAClC;AAEO,SAASC,mBAAmBA,CAEjC3D,IAA2B,EAC3B;EACA,IAAI,CAAC4D,YAAY,IAAIC,mBAAY,CAACC,mBAAmB;EACrD,IAAI,CAACzD,KAAK,CAACL,IAAI,CAACa,UAAU,CAAC;EAC3B,IAAI,CAAC6C,SAAS,CAAC,CAAC;AAClB;AAEO,SAASK,iBAAiBA,CAAgB/D,IAAyB,EAAE;EAC1E,IAAI,CAACK,KAAK,CAACL,IAAI,CAACgE,IAAI,CAAC;EACrB,IAAIhE,IAAI,CAACgE,IAAI,CAACC,IAAI,KAAK,YAAY,IAAInE,SAAS,CAACE,IAAI,CAACgE,IAAI,CAAC,EAAE;IAC3D,IAAIhE,IAAI,CAACgE,IAAI,CAACpC,QAAQ,EAAE,IAAI,CAACxB,SAAK,GAAI,CAAC;IACvC,IAAI,CAACC,KAAK,CAACL,IAAI,CAACgE,IAAI,CAACE,cAAc,CAAC;EACtC;EACA,IAAI,CAAC/D,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACmE,KAAK,CAAC;AACxB;AAEO,SAASC,oBAAoBA,CAElCpE,IAAuE,EACvE;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAACgE,IAAI,CAAC;EAErB,IAAI,CAAC7D,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACC,QAAQ,KAAK,IAAI,IAAID,IAAI,CAACC,QAAQ,KAAK,YAAY,EAAE;IAC5D,IAAI,CAACC,IAAI,CAACF,IAAI,CAACC,QAAQ,CAAC;EAC1B,CAAC,MAAM;IACL,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;IACzB,IAAI,CAACoE,YAAY,GAAGrE,IAAI,CAACC,QAAQ,KAAK,GAAG;EAC3C;EACA,IAAI,CAACE,KAAK,CAAC,CAAC;EAEZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACmE,KAAK,CAAC;AACxB;AAEO,SAASG,cAAcA,CAAgBtE,IAAsB,EAAE;EACpE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACgD,MAAM,CAAC;EACvB,IAAI,CAAC5C,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACC,KAAK,CAACL,IAAI,CAACuB,MAAM,CAAC;AACzB;AAOO,SAASgD,gBAAgBA,CAAgBvE,IAAwB,EAAE;EACxE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACgD,MAAM,CAAC;EAEvB,IAAI,CAAChD,IAAI,CAAC8C,QAAQ,IAAIlD,kBAAkB,CAACI,IAAI,CAAC+C,QAAQ,CAAC,EAAE;IACvD,MAAM,IAAIE,SAAS,CAAC,sDAAsD,CAAC;EAC7E;EAEA,IAAIH,QAAQ,GAAG9C,IAAI,CAAC8C,QAAQ;EAE5B,IAAInD,SAAS,CAACK,IAAI,CAAC+C,QAAQ,CAAC,IAAI,OAAO/C,IAAI,CAAC+C,QAAQ,CAACG,KAAK,KAAK,QAAQ,EAAE;IACvEJ,QAAQ,GAAG,IAAI;EACjB;EAEA,IAAIA,QAAQ,EAAE;IACZ,MAAMnC,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;IAClC,IAAI,CAACR,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC+C,QAAQ,CAAC;IACzB,IAAI,CAAC3C,SAAK,GAAI,CAAC;IACfO,IAAI,CAAC,CAAC;EACR,CAAC,MAAM;IACL,IAAI,CAACP,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC+C,QAAQ,CAAC;EAC3B;AACF;AAEO,SAASyB,YAAYA,CAAgBxE,IAAoB,EAAE;EAChE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACyE,IAAI,CAAC;EACrB,IAAI,CAACrE,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC+C,QAAQ,CAAC;AAC3B;AAEO,SAAS2B,WAAWA,CAAgB1E,IAAmB,EAAE;EAC9D,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC2E,EAAE,CAAC;AACrB;AAEO,SAASC,qBAAqBA,CAEnC5E,IAA6B,EAC7B;EACA,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,IAAI,CAACF,IAAI,CAAC6E,IAAI,CAAC;AACtB;AAEO,SAASC,gBAAgBA,CAAgB9E,IAAwB,EAAE;EACxE,IAAI,CAACE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,IAAI,CAAC;EACf,IAAI,CAAC2E,MAAM,CAAC,CAAC;EACb,MAAM;IAAEtE;EAAK,CAAC,GAAGT,IAAI;EACrB,IAAIS,IAAI,CAACA,IAAI,CAACkB,MAAM,IAAIlB,IAAI,CAACuE,UAAU,CAACrD,MAAM,EAAE;IAC9C,IAAI,CAACiB,OAAO,CAAC,CAAC;EAChB;EACA,IAAI,CAACvC,KAAK,CAACI,IAAI,CAAC;EAChB,IAAI,CAACwE,MAAM,CAAC,CAAC;EACb,IAAI,CAACC,UAAU,CAAClF,IAAI,CAAC;AACvB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_index","isCallExpression","isLiteral","isMemberExpression","isNewExpression","UnaryExpression","node","operator","word","space","token","print","argument","DoExpression","async","body","ParenthesizedExpression","expression","rightParens","UpdateExpression","prefix","printTerminatorless","ConditionalExpression","test","consequent","alternate","NewExpression","parent","callee","format","minified","arguments","length","optional","typeArguments","typeParameters","exit","enterForStatementInit","printList","SequenceExpression","expressions","ThisExpression","Super","_shouldPrintDecoratorsBeforeExport","decoratorsBeforeExport","start","declaration","Decorator","newline","OptionalMemberExpression","computed","property","object","TypeError","value","OptionalCallExpression","CallExpression","Import","AwaitExpression","YieldExpression","delegate","EmptyStatement","semicolon","ExpressionStatement","tokenContext","TokenContext","expressionStatement","AssignmentPattern","left","type","typeAnnotation","right","AssignmentExpression","BindExpression","MemberExpression","MetaProperty","meta","PrivateName","id","V8IntrinsicIdentifier","name","ModuleExpression","indent","directives","dedent","rightBrace"],"sources":["../../src/generators/expressions.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isCallExpression,\n isLiteral,\n isMemberExpression,\n isNewExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function UnaryExpression(this: Printer, node: t.UnaryExpression) {\n const { operator } = node;\n if (\n operator === \"void\" ||\n operator === \"delete\" ||\n operator === \"typeof\" ||\n // throwExpressions\n operator === \"throw\"\n ) {\n this.word(operator);\n this.space();\n } else {\n this.token(operator);\n }\n\n this.print(node.argument, node);\n}\n\nexport function DoExpression(this: Printer, node: t.DoExpression) {\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n this.word(\"do\");\n this.space();\n this.print(node.body, node);\n}\n\nexport function ParenthesizedExpression(\n this: Printer,\n node: t.ParenthesizedExpression,\n) {\n this.token(\"(\");\n this.print(node.expression, node);\n this.rightParens(node);\n}\n\nexport function UpdateExpression(this: Printer, node: t.UpdateExpression) {\n if (node.prefix) {\n this.token(node.operator);\n this.print(node.argument, node);\n } else {\n this.printTerminatorless(node.argument, node, true);\n this.token(node.operator);\n }\n}\n\nexport function ConditionalExpression(\n this: Printer,\n node: t.ConditionalExpression,\n) {\n this.print(node.test, node);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.consequent, node);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.alternate, node);\n}\n\nexport function NewExpression(\n this: Printer,\n node: t.NewExpression,\n parent: t.Node,\n) {\n this.word(\"new\");\n this.space();\n this.print(node.callee, node);\n if (\n this.format.minified &&\n node.arguments.length === 0 &&\n !node.optional &&\n !isCallExpression(parent, { callee: node }) &&\n !isMemberExpression(parent) &&\n !isNewExpression(parent)\n ) {\n return;\n }\n\n this.print(node.typeArguments, node); // Flow\n this.print(node.typeParameters, node); // TS\n\n if (node.optional) {\n // TODO: This can never happen\n this.token(\"?.\");\n }\n this.token(\"(\");\n const exit = this.enterForStatementInit(false);\n this.printList(node.arguments, node);\n exit();\n this.rightParens(node);\n}\n\nexport function SequenceExpression(this: Printer, node: t.SequenceExpression) {\n this.printList(node.expressions, node);\n}\n\nexport function ThisExpression(this: Printer) {\n this.word(\"this\");\n}\n\nexport function Super(this: Printer) {\n this.word(\"super\");\n}\n\nexport function _shouldPrintDecoratorsBeforeExport(\n this: Printer,\n node: t.ExportDeclaration & { declaration: t.ClassDeclaration },\n) {\n if (typeof this.format.decoratorsBeforeExport === \"boolean\") {\n return this.format.decoratorsBeforeExport;\n }\n return (\n typeof node.start === \"number\" && node.start === node.declaration.start\n );\n}\n\nexport function Decorator(this: Printer, node: t.Decorator) {\n this.token(\"@\");\n this.print(node.expression, node);\n this.newline();\n}\n\nexport function OptionalMemberExpression(\n this: Printer,\n node: t.OptionalMemberExpression,\n) {\n let { computed } = node;\n const { optional, property } = node;\n\n this.print(node.object, node);\n\n if (!computed && isMemberExpression(property)) {\n throw new TypeError(\"Got a MemberExpression for MemberExpression property\");\n }\n\n // @ts-expect-error todo(flow->ts) maybe instead of typeof check specific literal types?\n if (isLiteral(property) && typeof property.value === \"number\") {\n computed = true;\n }\n if (optional) {\n this.token(\"?.\");\n }\n\n if (computed) {\n this.token(\"[\");\n this.print(property, node);\n this.token(\"]\");\n } else {\n if (!optional) {\n this.token(\".\");\n }\n this.print(property, node);\n }\n}\n\nexport function OptionalCallExpression(\n this: Printer,\n node: t.OptionalCallExpression,\n) {\n this.print(node.callee, node);\n\n this.print(node.typeParameters, node); // TS\n\n if (node.optional) {\n this.token(\"?.\");\n }\n\n this.print(node.typeArguments, node); // Flow\n\n this.token(\"(\");\n const exit = this.enterForStatementInit(false);\n this.printList(node.arguments, node);\n exit();\n this.rightParens(node);\n}\n\nexport function CallExpression(this: Printer, node: t.CallExpression) {\n this.print(node.callee, node);\n\n this.print(node.typeArguments, node); // Flow\n this.print(node.typeParameters, node); // TS\n this.token(\"(\");\n const exit = this.enterForStatementInit(false);\n this.printList(node.arguments, node);\n exit();\n this.rightParens(node);\n}\n\nexport function Import(this: Printer) {\n this.word(\"import\");\n}\n\nexport function AwaitExpression(this: Printer, node: t.AwaitExpression) {\n this.word(\"await\");\n\n if (node.argument) {\n this.space();\n this.printTerminatorless(node.argument, node, false);\n }\n}\n\nexport function YieldExpression(this: Printer, node: t.YieldExpression) {\n this.word(\"yield\", true);\n\n if (node.delegate) {\n this.token(\"*\");\n if (node.argument) {\n this.space();\n // line terminators are allowed after yield*\n this.print(node.argument, node);\n }\n } else {\n if (node.argument) {\n this.space();\n this.printTerminatorless(node.argument, node, false);\n }\n }\n}\n\nexport function EmptyStatement(this: Printer) {\n this.semicolon(true /* force */);\n}\n\nexport function ExpressionStatement(\n this: Printer,\n node: t.ExpressionStatement,\n) {\n this.tokenContext |= TokenContext.expressionStatement;\n this.print(node.expression, node);\n this.semicolon();\n}\n\nexport function AssignmentPattern(this: Printer, node: t.AssignmentPattern) {\n this.print(node.left, node);\n if (node.left.type === \"Identifier\") {\n if (node.left.optional) this.token(\"?\");\n this.print(node.left.typeAnnotation, node);\n }\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.right, node);\n}\n\nexport function AssignmentExpression(\n this: Printer,\n node: t.AssignmentExpression,\n) {\n this.print(node.left, node);\n\n this.space();\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n this.word(node.operator);\n } else {\n this.token(node.operator);\n }\n this.space();\n\n this.print(node.right, node);\n}\n\nexport function BindExpression(this: Printer, node: t.BindExpression) {\n this.print(node.object, node);\n this.token(\"::\");\n this.print(node.callee, node);\n}\n\nexport {\n AssignmentExpression as BinaryExpression,\n AssignmentExpression as LogicalExpression,\n};\n\nexport function MemberExpression(this: Printer, node: t.MemberExpression) {\n this.print(node.object, node);\n\n if (!node.computed && isMemberExpression(node.property)) {\n throw new TypeError(\"Got a MemberExpression for MemberExpression property\");\n }\n\n let computed = node.computed;\n // @ts-expect-error todo(flow->ts) maybe use specific literal types\n if (isLiteral(node.property) && typeof node.property.value === \"number\") {\n computed = true;\n }\n\n if (computed) {\n const exit = this.enterForStatementInit(false);\n this.token(\"[\");\n this.print(node.property, node);\n this.token(\"]\");\n exit();\n } else {\n this.token(\".\");\n this.print(node.property, node);\n }\n}\n\nexport function MetaProperty(this: Printer, node: t.MetaProperty) {\n this.print(node.meta, node);\n this.token(\".\");\n this.print(node.property, node);\n}\n\nexport function PrivateName(this: Printer, node: t.PrivateName) {\n this.token(\"#\");\n this.print(node.id, node);\n}\n\nexport function V8IntrinsicIdentifier(\n this: Printer,\n node: t.V8IntrinsicIdentifier,\n) {\n this.token(\"%\");\n this.word(node.name);\n}\n\nexport function ModuleExpression(this: Printer, node: t.ModuleExpression) {\n this.word(\"module\", true);\n this.space();\n this.token(\"{\");\n this.indent();\n const { body } = node;\n if (body.body.length || body.directives.length) {\n this.newline();\n }\n this.print(body, node);\n this.dedent();\n this.rightBrace(node);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EAN9CE,gBAAgB;EAChBC,SAAS;EACTC,kBAAkB;EAClBC;AAAe,IAAAN,EAAA;AAKV,SAASO,eAAeA,CAAgBC,IAAuB,EAAE;EACtE,MAAM;IAAEC;EAAS,CAAC,GAAGD,IAAI;EACzB,IACEC,QAAQ,KAAK,MAAM,IACnBA,QAAQ,KAAK,QAAQ,IACrBA,QAAQ,KAAK,QAAQ,IAErBA,QAAQ,KAAK,OAAO,EACpB;IACA,IAAI,CAACC,IAAI,CAACD,QAAQ,CAAC;IACnB,IAAI,CAACE,KAAK,CAAC,CAAC;EACd,CAAC,MAAM;IACL,IAAI,CAACC,KAAK,CAACH,QAAQ,CAAC;EACtB;EAEA,IAAI,CAACI,KAAK,CAACL,IAAI,CAACM,QAAQ,EAAEN,IAAI,CAAC;AACjC;AAEO,SAASO,YAAYA,CAAgBP,IAAoB,EAAE;EAChE,IAAIA,IAAI,CAACQ,KAAK,EAAE;IACd,IAAI,CAACN,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACS,IAAI,EAAET,IAAI,CAAC;AAC7B;AAEO,SAASU,uBAAuBA,CAErCV,IAA+B,EAC/B;EACA,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAACW,UAAU,EAAEX,IAAI,CAAC;EACjC,IAAI,CAACY,WAAW,CAACZ,IAAI,CAAC;AACxB;AAEO,SAASa,gBAAgBA,CAAgBb,IAAwB,EAAE;EACxE,IAAIA,IAAI,CAACc,MAAM,EAAE;IACf,IAAI,CAACV,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;IACzB,IAAI,CAACI,KAAK,CAACL,IAAI,CAACM,QAAQ,EAAEN,IAAI,CAAC;EACjC,CAAC,MAAM;IACL,IAAI,CAACe,mBAAmB,CAACf,IAAI,CAACM,QAAQ,EAAEN,IAAI,EAAE,IAAI,CAAC;IACnD,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;EAC3B;AACF;AAEO,SAASe,qBAAqBA,CAEnChB,IAA6B,EAC7B;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAACiB,IAAI,EAAEjB,IAAI,CAAC;EAC3B,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACkB,UAAU,EAAElB,IAAI,CAAC;EACjC,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACmB,SAAS,EAAEnB,IAAI,CAAC;AAClC;AAEO,SAASoB,aAAaA,CAE3BpB,IAAqB,EACrBqB,MAAc,EACd;EACA,IAAI,CAACnB,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACsB,MAAM,EAAEtB,IAAI,CAAC;EAC7B,IACE,IAAI,CAACuB,MAAM,CAACC,QAAQ,IACpBxB,IAAI,CAACyB,SAAS,CAACC,MAAM,KAAK,CAAC,IAC3B,CAAC1B,IAAI,CAAC2B,QAAQ,IACd,CAAChC,gBAAgB,CAAC0B,MAAM,EAAE;IAAEC,MAAM,EAAEtB;EAAK,CAAC,CAAC,IAC3C,CAACH,kBAAkB,CAACwB,MAAM,CAAC,IAC3B,CAACvB,eAAe,CAACuB,MAAM,CAAC,EACxB;IACA;EACF;EAEA,IAAI,CAAChB,KAAK,CAACL,IAAI,CAAC4B,aAAa,EAAE5B,IAAI,CAAC;EACpC,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC6B,cAAc,EAAE7B,IAAI,CAAC;EAErC,IAAIA,IAAI,CAAC2B,QAAQ,EAAE;IAEjB,IAAI,CAACvB,KAAK,CAAC,IAAI,CAAC;EAClB;EACA,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,MAAM0B,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAC9C,IAAI,CAACC,SAAS,CAAChC,IAAI,CAACyB,SAAS,EAAEzB,IAAI,CAAC;EACpC8B,IAAI,CAAC,CAAC;EACN,IAAI,CAAClB,WAAW,CAACZ,IAAI,CAAC;AACxB;AAEO,SAASiC,kBAAkBA,CAAgBjC,IAA0B,EAAE;EAC5E,IAAI,CAACgC,SAAS,CAAChC,IAAI,CAACkC,WAAW,EAAElC,IAAI,CAAC;AACxC;AAEO,SAASmC,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAACjC,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASkC,KAAKA,CAAA,EAAgB;EACnC,IAAI,CAAClC,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASmC,kCAAkCA,CAEhDrC,IAA+D,EAC/D;EACA,IAAI,OAAO,IAAI,CAACuB,MAAM,CAACe,sBAAsB,KAAK,SAAS,EAAE;IAC3D,OAAO,IAAI,CAACf,MAAM,CAACe,sBAAsB;EAC3C;EACA,OACE,OAAOtC,IAAI,CAACuC,KAAK,KAAK,QAAQ,IAAIvC,IAAI,CAACuC,KAAK,KAAKvC,IAAI,CAACwC,WAAW,CAACD,KAAK;AAE3E;AAEO,SAASE,SAASA,CAAgBzC,IAAiB,EAAE;EAC1D,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAACW,UAAU,EAAEX,IAAI,CAAC;EACjC,IAAI,CAAC0C,OAAO,CAAC,CAAC;AAChB;AAEO,SAASC,wBAAwBA,CAEtC3C,IAAgC,EAChC;EACA,IAAI;IAAE4C;EAAS,CAAC,GAAG5C,IAAI;EACvB,MAAM;IAAE2B,QAAQ;IAAEkB;EAAS,CAAC,GAAG7C,IAAI;EAEnC,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC8C,MAAM,EAAE9C,IAAI,CAAC;EAE7B,IAAI,CAAC4C,QAAQ,IAAI/C,kBAAkB,CAACgD,QAAQ,CAAC,EAAE;IAC7C,MAAM,IAAIE,SAAS,CAAC,sDAAsD,CAAC;EAC7E;EAGA,IAAInD,SAAS,CAACiD,QAAQ,CAAC,IAAI,OAAOA,QAAQ,CAACG,KAAK,KAAK,QAAQ,EAAE;IAC7DJ,QAAQ,GAAG,IAAI;EACjB;EACA,IAAIjB,QAAQ,EAAE;IACZ,IAAI,CAACvB,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAIwC,QAAQ,EAAE;IACZ,IAAI,CAACxC,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACwC,QAAQ,EAAE7C,IAAI,CAAC;IAC1B,IAAI,CAACI,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACuB,QAAQ,EAAE;MACb,IAAI,CAACvB,SAAK,GAAI,CAAC;IACjB;IACA,IAAI,CAACC,KAAK,CAACwC,QAAQ,EAAE7C,IAAI,CAAC;EAC5B;AACF;AAEO,SAASiD,sBAAsBA,CAEpCjD,IAA8B,EAC9B;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAACsB,MAAM,EAAEtB,IAAI,CAAC;EAE7B,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC6B,cAAc,EAAE7B,IAAI,CAAC;EAErC,IAAIA,IAAI,CAAC2B,QAAQ,EAAE;IACjB,IAAI,CAACvB,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC4B,aAAa,EAAE5B,IAAI,CAAC;EAEpC,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,MAAM0B,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAC9C,IAAI,CAACC,SAAS,CAAChC,IAAI,CAACyB,SAAS,EAAEzB,IAAI,CAAC;EACpC8B,IAAI,CAAC,CAAC;EACN,IAAI,CAAClB,WAAW,CAACZ,IAAI,CAAC;AACxB;AAEO,SAASkD,cAAcA,CAAgBlD,IAAsB,EAAE;EACpE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACsB,MAAM,EAAEtB,IAAI,CAAC;EAE7B,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC4B,aAAa,EAAE5B,IAAI,CAAC;EACpC,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC6B,cAAc,EAAE7B,IAAI,CAAC;EACrC,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,MAAM0B,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAC9C,IAAI,CAACC,SAAS,CAAChC,IAAI,CAACyB,SAAS,EAAEzB,IAAI,CAAC;EACpC8B,IAAI,CAAC,CAAC;EACN,IAAI,CAAClB,WAAW,CAACZ,IAAI,CAAC;AACxB;AAEO,SAASmD,MAAMA,CAAA,EAAgB;EACpC,IAAI,CAACjD,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASkD,eAAeA,CAAgBpD,IAAuB,EAAE;EACtE,IAAI,CAACE,IAAI,CAAC,OAAO,CAAC;EAElB,IAAIF,IAAI,CAACM,QAAQ,EAAE;IACjB,IAAI,CAACH,KAAK,CAAC,CAAC;IACZ,IAAI,CAACY,mBAAmB,CAACf,IAAI,CAACM,QAAQ,EAAEN,IAAI,EAAE,KAAK,CAAC;EACtD;AACF;AAEO,SAASqD,eAAeA,CAAgBrD,IAAuB,EAAE;EACtE,IAAI,CAACE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;EAExB,IAAIF,IAAI,CAACsD,QAAQ,EAAE;IACjB,IAAI,CAAClD,SAAK,GAAI,CAAC;IACf,IAAIJ,IAAI,CAACM,QAAQ,EAAE;MACjB,IAAI,CAACH,KAAK,CAAC,CAAC;MAEZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACM,QAAQ,EAAEN,IAAI,CAAC;IACjC;EACF,CAAC,MAAM;IACL,IAAIA,IAAI,CAACM,QAAQ,EAAE;MACjB,IAAI,CAACH,KAAK,CAAC,CAAC;MACZ,IAAI,CAACY,mBAAmB,CAACf,IAAI,CAACM,QAAQ,EAAEN,IAAI,EAAE,KAAK,CAAC;IACtD;EACF;AACF;AAEO,SAASuD,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAACC,SAAS,CAAC,IAAgB,CAAC;AAClC;AAEO,SAASC,mBAAmBA,CAEjCzD,IAA2B,EAC3B;EACA,IAAI,CAAC0D,YAAY,IAAIC,mBAAY,CAACC,mBAAmB;EACrD,IAAI,CAACvD,KAAK,CAACL,IAAI,CAACW,UAAU,EAAEX,IAAI,CAAC;EACjC,IAAI,CAACwD,SAAS,CAAC,CAAC;AAClB;AAEO,SAASK,iBAAiBA,CAAgB7D,IAAyB,EAAE;EAC1E,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC8D,IAAI,EAAE9D,IAAI,CAAC;EAC3B,IAAIA,IAAI,CAAC8D,IAAI,CAACC,IAAI,KAAK,YAAY,EAAE;IACnC,IAAI/D,IAAI,CAAC8D,IAAI,CAACnC,QAAQ,EAAE,IAAI,CAACvB,SAAK,GAAI,CAAC;IACvC,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC8D,IAAI,CAACE,cAAc,EAAEhE,IAAI,CAAC;EAC5C;EACA,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACiE,KAAK,EAAEjE,IAAI,CAAC;AAC9B;AAEO,SAASkE,oBAAoBA,CAElClE,IAA4B,EAC5B;EACA,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC8D,IAAI,EAAE9D,IAAI,CAAC;EAE3B,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACC,QAAQ,KAAK,IAAI,IAAID,IAAI,CAACC,QAAQ,KAAK,YAAY,EAAE;IAC5D,IAAI,CAACC,IAAI,CAACF,IAAI,CAACC,QAAQ,CAAC;EAC1B,CAAC,MAAM;IACL,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACC,QAAQ,CAAC;EAC3B;EACA,IAAI,CAACE,KAAK,CAAC,CAAC;EAEZ,IAAI,CAACE,KAAK,CAACL,IAAI,CAACiE,KAAK,EAAEjE,IAAI,CAAC;AAC9B;AAEO,SAASmE,cAAcA,CAAgBnE,IAAsB,EAAE;EACpE,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC8C,MAAM,EAAE9C,IAAI,CAAC;EAC7B,IAAI,CAACI,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACC,KAAK,CAACL,IAAI,CAACsB,MAAM,EAAEtB,IAAI,CAAC;AAC/B;AAOO,SAASoE,gBAAgBA,CAAgBpE,IAAwB,EAAE;EACxE,IAAI,CAACK,KAAK,CAACL,IAAI,CAAC8C,MAAM,EAAE9C,IAAI,CAAC;EAE7B,IAAI,CAACA,IAAI,CAAC4C,QAAQ,IAAI/C,kBAAkB,CAACG,IAAI,CAAC6C,QAAQ,CAAC,EAAE;IACvD,MAAM,IAAIE,SAAS,CAAC,sDAAsD,CAAC;EAC7E;EAEA,IAAIH,QAAQ,GAAG5C,IAAI,CAAC4C,QAAQ;EAE5B,IAAIhD,SAAS,CAACI,IAAI,CAAC6C,QAAQ,CAAC,IAAI,OAAO7C,IAAI,CAAC6C,QAAQ,CAACG,KAAK,KAAK,QAAQ,EAAE;IACvEJ,QAAQ,GAAG,IAAI;EACjB;EAEA,IAAIA,QAAQ,EAAE;IACZ,MAAMd,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;IAC9C,IAAI,CAAC3B,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC6C,QAAQ,EAAE7C,IAAI,CAAC;IAC/B,IAAI,CAACI,SAAK,GAAI,CAAC;IACf0B,IAAI,CAAC,CAAC;EACR,CAAC,MAAM;IACL,IAAI,CAAC1B,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC6C,QAAQ,EAAE7C,IAAI,CAAC;EACjC;AACF;AAEO,SAASqE,YAAYA,CAAgBrE,IAAoB,EAAE;EAChE,IAAI,CAACK,KAAK,CAACL,IAAI,CAACsE,IAAI,EAAEtE,IAAI,CAAC;EAC3B,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAAC6C,QAAQ,EAAE7C,IAAI,CAAC;AACjC;AAEO,SAASuE,WAAWA,CAAgBvE,IAAmB,EAAE;EAC9D,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACL,IAAI,CAACwE,EAAE,EAAExE,IAAI,CAAC;AAC3B;AAEO,SAASyE,qBAAqBA,CAEnCzE,IAA6B,EAC7B;EACA,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,IAAI,CAACF,IAAI,CAAC0E,IAAI,CAAC;AACtB;AAEO,SAASC,gBAAgBA,CAAgB3E,IAAwB,EAAE;EACxE,IAAI,CAACE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,IAAI,CAAC;EACf,IAAI,CAACwE,MAAM,CAAC,CAAC;EACb,MAAM;IAAEnE;EAAK,CAAC,GAAGT,IAAI;EACrB,IAAIS,IAAI,CAACA,IAAI,CAACiB,MAAM,IAAIjB,IAAI,CAACoE,UAAU,CAACnD,MAAM,EAAE;IAC9C,IAAI,CAACgB,OAAO,CAAC,CAAC;EAChB;EACA,IAAI,CAACrC,KAAK,CAACI,IAAI,EAAET,IAAI,CAAC;EACtB,IAAI,CAAC8E,MAAM,CAAC,CAAC;EACb,IAAI,CAACC,UAAU,CAAC/E,IAAI,CAAC;AACvB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/flow.js b/node_modules/@babel/generator/lib/generators/flow.js index 322aa3438..08ab6bb73 100644 --- a/node_modules/@babel/generator/lib/generators/flow.js +++ b/node_modules/@babel/generator/lib/generators/flow.js @@ -89,7 +89,7 @@ function AnyTypeAnnotation() { this.word("any"); } function ArrayTypeAnnotation(node) { - this.print(node.elementType, true); + this.print(node.elementType, node, true); this.tokenChar(91); this.tokenChar(93); } @@ -118,11 +118,11 @@ function DeclareFunction(node, parent) { } this.word("function"); this.space(); - this.print(node.id); - this.print(node.id.typeAnnotation.typeAnnotation); + this.print(node.id, node); + this.print(node.id.typeAnnotation.typeAnnotation, node); if (node.predicate) { this.space(); - this.print(node.predicate); + this.print(node.predicate, node); } this.semicolon(); } @@ -134,7 +134,7 @@ function DeclaredPredicate(node) { this.tokenChar(37); this.word("checks"); this.tokenChar(40); - this.print(node.value); + this.print(node.value, node); this.tokenChar(41); } function DeclareInterface(node) { @@ -147,9 +147,9 @@ function DeclareModule(node) { this.space(); this.word("module"); this.space(); - this.print(node.id); + this.print(node.id, node); this.space(); - this.print(node.body); + this.print(node.body, node); } function DeclareModuleExports(node) { this.word("declare"); @@ -157,7 +157,7 @@ function DeclareModuleExports(node) { this.word("module"); this.tokenChar(46); this.word("exports"); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function DeclareTypeAlias(node) { this.word("declare"); @@ -178,8 +178,8 @@ function DeclareVariable(node, parent) { } this.word("var"); this.space(); - this.print(node.id); - this.print(node.id.typeAnnotation); + this.print(node.id, node); + this.print(node.id.typeAnnotation, node); this.semicolon(); } function DeclareExportDeclaration(node) { @@ -205,8 +205,8 @@ function EnumDeclaration(node) { } = node; this.word("enum"); this.space(); - this.print(id); - this.print(body); + this.print(id, node); + this.print(body, node); } function enumExplicitType(context, name, hasExplicitType) { if (hasExplicitType) { @@ -225,7 +225,7 @@ function enumBody(context, node) { context.indent(); context.newline(); for (const member of members) { - context.print(member); + context.print(member, node); context.newline(); } if (node.hasUnknownMembers) { @@ -264,15 +264,19 @@ function EnumDefaultedMember(node) { const { id } = node; - this.print(id); + this.print(id, node); this.tokenChar(44); } function enumInitializedMember(context, node) { - context.print(node.id); + const { + id, + init + } = node; + context.print(id, node); context.space(); context.token("="); context.space(); - context.print(node.init); + context.print(init, node); context.token(","); } function EnumBooleanMember(node) { @@ -287,13 +291,13 @@ function EnumStringMember(node) { function FlowExportDeclaration(node) { if (node.declaration) { const declar = node.declaration; - this.print(declar); + this.print(declar, node); if (!isStatement(declar)) this.semicolon(); } else { this.tokenChar(123); if (node.specifiers.length) { this.space(); - this.printList(node.specifiers); + this.printList(node.specifiers, node); this.space(); } this.tokenChar(125); @@ -301,7 +305,7 @@ function FlowExportDeclaration(node) { this.space(); this.word("from"); this.space(); - this.print(node.source); + this.print(node.source, node); } this.semicolon(); } @@ -310,26 +314,26 @@ function ExistsTypeAnnotation() { this.tokenChar(42); } function FunctionTypeAnnotation(node, parent) { - this.print(node.typeParameters); + this.print(node.typeParameters, node); this.tokenChar(40); if (node.this) { this.word("this"); this.tokenChar(58); this.space(); - this.print(node.this.typeAnnotation); + this.print(node.this.typeAnnotation, node); if (node.params.length || node.rest) { this.tokenChar(44); this.space(); } } - this.printList(node.params); + this.printList(node.params, node); if (node.rest) { if (node.params.length) { this.tokenChar(44); this.space(); } this.token("..."); - this.print(node.rest); + this.print(node.rest, node); } this.tokenChar(41); const type = parent == null ? void 0 : parent.type; @@ -340,30 +344,30 @@ function FunctionTypeAnnotation(node, parent) { this.token("=>"); } this.space(); - this.print(node.returnType); + this.print(node.returnType, node); } function FunctionTypeParam(node) { - this.print(node.name); + this.print(node.name, node); if (node.optional) this.tokenChar(63); if (node.name) { this.tokenChar(58); this.space(); } - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function InterfaceExtends(node) { - this.print(node.id); - this.print(node.typeParameters, true); + this.print(node.id, node); + this.print(node.typeParameters, node, true); } function _interfaceish(node) { var _node$extends; - this.print(node.id); - this.print(node.typeParameters); + this.print(node.id, node); + this.print(node.typeParameters, node); if ((_node$extends = node.extends) != null && _node$extends.length) { this.space(); this.word("extends"); this.space(); - this.printList(node.extends); + this.printList(node.extends, node); } if (node.type === "DeclareClass") { var _node$mixins, _node$implements; @@ -371,17 +375,17 @@ function _interfaceish(node) { this.space(); this.word("mixins"); this.space(); - this.printList(node.mixins); + this.printList(node.mixins, node); } if ((_node$implements = node.implements) != null && _node$implements.length) { this.space(); this.word("implements"); this.space(); - this.printList(node.implements); + this.printList(node.implements, node); } } this.space(); - this.print(node.body); + this.print(node.body, node); } function _variance(node) { var _node$variance; @@ -399,9 +403,9 @@ function InterfaceDeclaration(node) { this.space(); this._interfaceish(node); } -function andSeparator(occurrenceCount) { +function andSeparator() { this.space(); - this.token("&", false, occurrenceCount); + this.tokenChar(38); this.space(); } function InterfaceTypeAnnotation(node) { @@ -411,13 +415,15 @@ function InterfaceTypeAnnotation(node) { this.space(); this.word("extends"); this.space(); - this.printList(node.extends); + this.printList(node.extends, node); } this.space(); - this.print(node.body); + this.print(node.body, node); } function IntersectionTypeAnnotation(node) { - this.printJoin(node.types, undefined, undefined, andSeparator); + this.printJoin(node.types, node, { + separator: andSeparator + }); } function MixedTypeAnnotation() { this.word("mixed"); @@ -427,7 +433,7 @@ function EmptyTypeAnnotation() { } function NullableTypeAnnotation(node) { this.tokenChar(63); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function NumberTypeAnnotation() { this.word("number"); @@ -440,23 +446,23 @@ function ThisTypeAnnotation() { } function TupleTypeAnnotation(node) { this.tokenChar(91); - this.printList(node.types); + this.printList(node.types, node); this.tokenChar(93); } function TypeofTypeAnnotation(node) { this.word("typeof"); this.space(); - this.print(node.argument); + this.print(node.argument, node); } function TypeAlias(node) { this.word("type"); this.space(); - this.print(node.id); - this.print(node.typeParameters); + this.print(node.id, node); + this.print(node.typeParameters, node); this.space(); this.tokenChar(61); this.space(); - this.print(node.right); + this.print(node.right, node); this.semicolon(); } function TypeAnnotation(node, parent) { @@ -467,24 +473,24 @@ function TypeAnnotation(node, parent) { } else if (node.optional) { this.tokenChar(63); } - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function TypeParameterInstantiation(node) { this.tokenChar(60); - this.printList(node.params); + this.printList(node.params, node, {}); this.tokenChar(62); } function TypeParameter(node) { this._variance(node); this.word(node.name); if (node.bound) { - this.print(node.bound); + this.print(node.bound, node); } if (node.default) { this.space(); this.tokenChar(61); this.space(); - this.print(node.default); + this.print(node.default, node); } } function OpaqueType(node) { @@ -492,18 +498,18 @@ function OpaqueType(node) { this.space(); this.word("type"); this.space(); - this.print(node.id); - this.print(node.typeParameters); + this.print(node.id, node); + this.print(node.typeParameters, node); if (node.supertype) { this.tokenChar(58); this.space(); - this.print(node.supertype); + this.print(node.supertype, node); } if (node.impltype) { this.space(); this.tokenChar(61); this.space(); - this.print(node.impltype); + this.print(node.impltype, node); } this.semicolon(); } @@ -517,12 +523,17 @@ function ObjectTypeAnnotation(node) { if (props.length) { this.newline(); this.space(); - this.printJoin(props, true, true, undefined, undefined, function addNewlines(leading) { - if (leading && !props[0]) return 1; - }, () => { - if (props.length !== 1 || node.inexact) { - this.tokenChar(44); - this.space(); + this.printJoin(props, node, { + addNewlines(leading) { + if (leading && !props[0]) return 1; + }, + indent: true, + statement: true, + iterator: () => { + if (props.length !== 1 || node.inexact) { + this.tokenChar(44); + this.space(); + } } }); this.space(); @@ -548,7 +559,7 @@ function ObjectTypeInternalSlot(node) { } this.tokenChar(91); this.tokenChar(91); - this.print(node.id); + this.print(node.id, node); this.tokenChar(93); this.tokenChar(93); if (node.optional) this.tokenChar(63); @@ -556,14 +567,14 @@ function ObjectTypeInternalSlot(node) { this.tokenChar(58); this.space(); } - this.print(node.value); + this.print(node.value, node); } function ObjectTypeCallProperty(node) { if (node.static) { this.word("static"); this.space(); } - this.print(node.value); + this.print(node.value, node); } function ObjectTypeIndexer(node) { if (node.static) { @@ -573,15 +584,15 @@ function ObjectTypeIndexer(node) { this._variance(node); this.tokenChar(91); if (node.id) { - this.print(node.id); + this.print(node.id, node); this.tokenChar(58); this.space(); } - this.print(node.key); + this.print(node.key, node); this.tokenChar(93); this.tokenChar(58); this.space(); - this.print(node.value); + this.print(node.value, node); } function ObjectTypeProperty(node) { if (node.proto) { @@ -597,38 +608,40 @@ function ObjectTypeProperty(node) { this.space(); } this._variance(node); - this.print(node.key); + this.print(node.key, node); if (node.optional) this.tokenChar(63); if (!node.method) { this.tokenChar(58); this.space(); } - this.print(node.value); + this.print(node.value, node); } function ObjectTypeSpreadProperty(node) { this.token("..."); - this.print(node.argument); + this.print(node.argument, node); } function QualifiedTypeIdentifier(node) { - this.print(node.qualification); + this.print(node.qualification, node); this.tokenChar(46); - this.print(node.id); + this.print(node.id, node); } function SymbolTypeAnnotation() { this.word("symbol"); } -function orSeparator(occurrenceCount) { +function orSeparator() { this.space(); - this.token("|", false, occurrenceCount); + this.tokenChar(124); this.space(); } function UnionTypeAnnotation(node) { - this.printJoin(node.types, undefined, undefined, orSeparator); + this.printJoin(node.types, node, { + separator: orSeparator + }); } function TypeCastExpression(node) { this.tokenChar(40); - this.print(node.expression); - this.print(node.typeAnnotation); + this.print(node.expression, node); + this.print(node.typeAnnotation, node); this.tokenChar(41); } function Variance(node) { @@ -642,18 +655,18 @@ function VoidTypeAnnotation() { this.word("void"); } function IndexedAccessType(node) { - this.print(node.objectType, true); + this.print(node.objectType, node, true); this.tokenChar(91); - this.print(node.indexType); + this.print(node.indexType, node); this.tokenChar(93); } function OptionalIndexedAccessType(node) { - this.print(node.objectType); + this.print(node.objectType, node); if (node.optional) { this.token("?."); } this.tokenChar(91); - this.print(node.indexType); + this.print(node.indexType, node); this.tokenChar(93); } diff --git a/node_modules/@babel/generator/lib/generators/flow.js.map b/node_modules/@babel/generator/lib/generators/flow.js.map index a50152af7..50d37a74f 100644 --- a/node_modules/@babel/generator/lib/generators/flow.js.map +++ b/node_modules/@babel/generator/lib/generators/flow.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_modules","_index","_types2","isDeclareExportDeclaration","isStatement","AnyTypeAnnotation","word","ArrayTypeAnnotation","node","print","elementType","token","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","value","NullLiteralTypeAnnotation","DeclareClass","parent","space","_interfaceish","DeclareFunction","id","typeAnnotation","predicate","semicolon","InferredPredicate","DeclaredPredicate","DeclareInterface","InterfaceDeclaration","DeclareModule","body","DeclareModuleExports","DeclareTypeAlias","TypeAlias","DeclareOpaqueType","OpaqueType","DeclareVariable","DeclareExportDeclaration","default","FlowExportDeclaration","call","DeclareExportAllDeclaration","ExportAllDeclaration","EnumDeclaration","enumExplicitType","context","name","hasExplicitType","enumBody","members","indent","newline","member","hasUnknownMembers","dedent","EnumBooleanBody","explicitType","EnumNumberBody","EnumStringBody","EnumSymbolBody","EnumDefaultedMember","enumInitializedMember","init","EnumBooleanMember","EnumNumberMember","EnumStringMember","declaration","declar","specifiers","length","printList","source","ExistsTypeAnnotation","FunctionTypeAnnotation","typeParameters","this","params","rest","type","method","returnType","FunctionTypeParam","optional","InterfaceExtends","_node$extends","extends","_node$mixins","_node$implements","mixins","implements","_variance","_node$variance","kind","variance","andSeparator","occurrenceCount","InterfaceTypeAnnotation","_node$extends2","IntersectionTypeAnnotation","printJoin","types","undefined","MixedTypeAnnotation","EmptyTypeAnnotation","NullableTypeAnnotation","NumberTypeAnnotation","StringTypeAnnotation","ThisTypeAnnotation","TupleTypeAnnotation","TypeofTypeAnnotation","argument","right","TypeAnnotation","tokenContext","TokenContext","arrowFlowReturnType","TypeParameterInstantiation","TypeParameter","bound","supertype","impltype","ObjectTypeAnnotation","exact","props","properties","callProperties","indexers","internalSlots","addNewlines","leading","inexact","ObjectTypeInternalSlot","static","ObjectTypeCallProperty","ObjectTypeIndexer","key","ObjectTypeProperty","proto","ObjectTypeSpreadProperty","QualifiedTypeIdentifier","qualification","SymbolTypeAnnotation","orSeparator","UnionTypeAnnotation","TypeCastExpression","expression","Variance","VoidTypeAnnotation","IndexedAccessType","objectType","indexType","OptionalIndexedAccessType"],"sources":["../../src/generators/flow.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport { isDeclareExportDeclaration, isStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { ExportAllDeclaration } from \"./modules.ts\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function AnyTypeAnnotation(this: Printer) {\n this.word(\"any\");\n}\n\nexport function ArrayTypeAnnotation(\n this: Printer,\n node: t.ArrayTypeAnnotation,\n) {\n this.print(node.elementType, true);\n this.token(\"[\");\n this.token(\"]\");\n}\n\nexport function BooleanTypeAnnotation(this: Printer) {\n this.word(\"boolean\");\n}\n\nexport function BooleanLiteralTypeAnnotation(\n this: Printer,\n node: t.BooleanLiteralTypeAnnotation,\n) {\n this.word(node.value ? \"true\" : \"false\");\n}\n\nexport function NullLiteralTypeAnnotation(this: Printer) {\n this.word(\"null\");\n}\n\nexport function DeclareClass(\n this: Printer,\n node: t.DeclareClass,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"class\");\n this.space();\n this._interfaceish(node);\n}\n\nexport function DeclareFunction(\n this: Printer,\n node: t.DeclareFunction,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"function\");\n this.space();\n this.print(node.id);\n // @ts-ignore(Babel 7 vs Babel 8) TODO(Babel 8) Remove this comment, since we'll remove the Noop node\n this.print(node.id.typeAnnotation.typeAnnotation);\n\n if (node.predicate) {\n this.space();\n this.print(node.predicate);\n }\n\n this.semicolon();\n}\n\nexport function InferredPredicate(this: Printer) {\n this.token(\"%\");\n this.word(\"checks\");\n}\n\nexport function DeclaredPredicate(this: Printer, node: t.DeclaredPredicate) {\n this.token(\"%\");\n this.word(\"checks\");\n this.token(\"(\");\n this.print(node.value);\n this.token(\")\");\n}\n\nexport function DeclareInterface(this: Printer, node: t.DeclareInterface) {\n this.word(\"declare\");\n this.space();\n this.InterfaceDeclaration(node);\n}\n\nexport function DeclareModule(this: Printer, node: t.DeclareModule) {\n this.word(\"declare\");\n this.space();\n this.word(\"module\");\n this.space();\n this.print(node.id);\n this.space();\n this.print(node.body);\n}\n\nexport function DeclareModuleExports(\n this: Printer,\n node: t.DeclareModuleExports,\n) {\n this.word(\"declare\");\n this.space();\n this.word(\"module\");\n this.token(\".\");\n this.word(\"exports\");\n this.print(node.typeAnnotation);\n}\n\nexport function DeclareTypeAlias(this: Printer, node: t.DeclareTypeAlias) {\n this.word(\"declare\");\n this.space();\n this.TypeAlias(node);\n}\n\nexport function DeclareOpaqueType(\n this: Printer,\n node: t.DeclareOpaqueType,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.OpaqueType(node);\n}\n\nexport function DeclareVariable(\n this: Printer,\n node: t.DeclareVariable,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"var\");\n this.space();\n this.print(node.id);\n this.print(node.id.typeAnnotation);\n this.semicolon();\n}\n\nexport function DeclareExportDeclaration(\n this: Printer,\n node: t.DeclareExportDeclaration,\n) {\n this.word(\"declare\");\n this.space();\n this.word(\"export\");\n this.space();\n if (node.default) {\n this.word(\"default\");\n this.space();\n }\n\n FlowExportDeclaration.call(this, node);\n}\n\nexport function DeclareExportAllDeclaration(\n this: Printer,\n node: t.DeclareExportAllDeclaration,\n) {\n this.word(\"declare\");\n this.space();\n ExportAllDeclaration.call(this, node);\n}\n\nexport function EnumDeclaration(this: Printer, node: t.EnumDeclaration) {\n const { id, body } = node;\n this.word(\"enum\");\n this.space();\n this.print(id);\n this.print(body);\n}\n\nfunction enumExplicitType(\n context: Printer,\n name: string,\n hasExplicitType: boolean,\n) {\n if (hasExplicitType) {\n context.space();\n context.word(\"of\");\n context.space();\n context.word(name);\n }\n context.space();\n}\n\nfunction enumBody(context: Printer, node: t.EnumBody) {\n const { members } = node;\n context.token(\"{\");\n context.indent();\n context.newline();\n for (const member of members) {\n context.print(member);\n context.newline();\n }\n if (node.hasUnknownMembers) {\n context.token(\"...\");\n context.newline();\n }\n context.dedent();\n context.token(\"}\");\n}\n\nexport function EnumBooleanBody(this: Printer, node: t.EnumBooleanBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"boolean\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumNumberBody(this: Printer, node: t.EnumNumberBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"number\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumStringBody(this: Printer, node: t.EnumStringBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"string\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumSymbolBody(this: Printer, node: t.EnumSymbolBody) {\n enumExplicitType(this, \"symbol\", true);\n enumBody(this, node);\n}\n\nexport function EnumDefaultedMember(\n this: Printer,\n node: t.EnumDefaultedMember,\n) {\n const { id } = node;\n this.print(id);\n this.token(\",\");\n}\n\nfunction enumInitializedMember(\n context: Printer,\n node: t.EnumBooleanMember | t.EnumNumberMember | t.EnumStringMember,\n) {\n context.print(node.id);\n context.space();\n context.token(\"=\");\n context.space();\n context.print(node.init);\n context.token(\",\");\n}\n\nexport function EnumBooleanMember(this: Printer, node: t.EnumBooleanMember) {\n enumInitializedMember(this, node);\n}\n\nexport function EnumNumberMember(this: Printer, node: t.EnumNumberMember) {\n enumInitializedMember(this, node);\n}\n\nexport function EnumStringMember(this: Printer, node: t.EnumStringMember) {\n enumInitializedMember(this, node);\n}\n\nfunction FlowExportDeclaration(\n this: Printer,\n node: t.DeclareExportDeclaration,\n) {\n if (node.declaration) {\n const declar = node.declaration;\n this.print(declar);\n if (!isStatement(declar)) this.semicolon();\n } else {\n this.token(\"{\");\n if (node.specifiers.length) {\n this.space();\n this.printList(node.specifiers);\n this.space();\n }\n this.token(\"}\");\n\n if (node.source) {\n this.space();\n this.word(\"from\");\n this.space();\n this.print(node.source);\n }\n\n this.semicolon();\n }\n}\n\nexport function ExistsTypeAnnotation(this: Printer) {\n this.token(\"*\");\n}\n\nexport function FunctionTypeAnnotation(\n this: Printer,\n node: t.FunctionTypeAnnotation,\n parent?: t.Node,\n) {\n this.print(node.typeParameters);\n this.token(\"(\");\n\n if (node.this) {\n this.word(\"this\");\n this.token(\":\");\n this.space();\n this.print(node.this.typeAnnotation);\n if (node.params.length || node.rest) {\n this.token(\",\");\n this.space();\n }\n }\n\n this.printList(node.params);\n\n if (node.rest) {\n if (node.params.length) {\n this.token(\",\");\n this.space();\n }\n this.token(\"...\");\n this.print(node.rest);\n }\n\n this.token(\")\");\n\n // this node type is overloaded, not sure why but it makes it EXTREMELY annoying\n\n const type = parent?.type;\n if (\n type != null &&\n (type === \"ObjectTypeCallProperty\" ||\n type === \"ObjectTypeInternalSlot\" ||\n type === \"DeclareFunction\" ||\n (type === \"ObjectTypeProperty\" && parent.method))\n ) {\n this.token(\":\");\n } else {\n this.space();\n this.token(\"=>\");\n }\n\n this.space();\n this.print(node.returnType);\n}\n\nexport function FunctionTypeParam(this: Printer, node: t.FunctionTypeParam) {\n this.print(node.name);\n if (node.optional) this.token(\"?\");\n if (node.name) {\n this.token(\":\");\n this.space();\n }\n this.print(node.typeAnnotation);\n}\n\nexport function InterfaceExtends(this: Printer, node: t.InterfaceExtends) {\n this.print(node.id);\n this.print(node.typeParameters, true);\n}\n\nexport {\n InterfaceExtends as ClassImplements,\n InterfaceExtends as GenericTypeAnnotation,\n};\n\nexport function _interfaceish(\n this: Printer,\n node: t.InterfaceDeclaration | t.DeclareInterface | t.DeclareClass,\n) {\n this.print(node.id);\n this.print(node.typeParameters);\n if (node.extends?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(node.extends);\n }\n if (node.type === \"DeclareClass\") {\n if (node.mixins?.length) {\n this.space();\n this.word(\"mixins\");\n this.space();\n this.printList(node.mixins);\n }\n if (node.implements?.length) {\n this.space();\n this.word(\"implements\");\n this.space();\n this.printList(node.implements);\n }\n }\n this.space();\n this.print(node.body);\n}\n\nexport function _variance(\n this: Printer,\n node:\n | t.TypeParameter\n | t.ObjectTypeIndexer\n | t.ObjectTypeProperty\n | t.ClassProperty\n | t.ClassPrivateProperty\n | t.ClassAccessorProperty,\n) {\n const kind = node.variance?.kind;\n if (kind != null) {\n if (kind === \"plus\") {\n this.token(\"+\");\n } else if (kind === \"minus\") {\n this.token(\"-\");\n }\n }\n}\n\nexport function InterfaceDeclaration(\n this: Printer,\n node: t.InterfaceDeclaration | t.DeclareInterface,\n) {\n this.word(\"interface\");\n this.space();\n this._interfaceish(node);\n}\n\nfunction andSeparator(this: Printer, occurrenceCount: number) {\n this.space();\n this.token(\"&\", false, occurrenceCount);\n this.space();\n}\n\nexport function InterfaceTypeAnnotation(\n this: Printer,\n node: t.InterfaceTypeAnnotation,\n) {\n this.word(\"interface\");\n if (node.extends?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(node.extends);\n }\n this.space();\n this.print(node.body);\n}\n\nexport function IntersectionTypeAnnotation(\n this: Printer,\n node: t.IntersectionTypeAnnotation,\n) {\n this.printJoin(node.types, undefined, undefined, andSeparator);\n}\n\nexport function MixedTypeAnnotation(this: Printer) {\n this.word(\"mixed\");\n}\n\nexport function EmptyTypeAnnotation(this: Printer) {\n this.word(\"empty\");\n}\n\nexport function NullableTypeAnnotation(\n this: Printer,\n node: t.NullableTypeAnnotation,\n) {\n this.token(\"?\");\n this.print(node.typeAnnotation);\n}\n\nexport {\n NumericLiteral as NumberLiteralTypeAnnotation,\n StringLiteral as StringLiteralTypeAnnotation,\n} from \"./types.ts\";\n\nexport function NumberTypeAnnotation(this: Printer) {\n this.word(\"number\");\n}\n\nexport function StringTypeAnnotation(this: Printer) {\n this.word(\"string\");\n}\n\nexport function ThisTypeAnnotation(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TupleTypeAnnotation(\n this: Printer,\n node: t.TupleTypeAnnotation,\n) {\n this.token(\"[\");\n this.printList(node.types);\n this.token(\"]\");\n}\n\nexport function TypeofTypeAnnotation(\n this: Printer,\n node: t.TypeofTypeAnnotation,\n) {\n this.word(\"typeof\");\n this.space();\n this.print(node.argument);\n}\n\nexport function TypeAlias(\n this: Printer,\n node: t.TypeAlias | t.DeclareTypeAlias,\n) {\n this.word(\"type\");\n this.space();\n this.print(node.id);\n this.print(node.typeParameters);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.right);\n this.semicolon();\n}\n\nexport function TypeAnnotation(\n this: Printer,\n node: t.TypeAnnotation,\n parent: t.Node,\n) {\n this.token(\":\");\n this.space();\n if (parent.type === \"ArrowFunctionExpression\") {\n this.tokenContext |= TokenContext.arrowFlowReturnType;\n } else if (\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n node.optional\n ) {\n this.token(\"?\");\n }\n this.print(node.typeAnnotation);\n}\n\nexport function TypeParameterInstantiation(\n this: Printer,\n node: t.TypeParameterInstantiation,\n): void {\n this.token(\"<\");\n this.printList(node.params);\n this.token(\">\");\n}\n\nexport { TypeParameterInstantiation as TypeParameterDeclaration };\n\nexport function TypeParameter(this: Printer, node: t.TypeParameter) {\n this._variance(node);\n\n this.word(node.name);\n\n if (node.bound) {\n this.print(node.bound);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default);\n }\n}\n\nexport function OpaqueType(\n this: Printer,\n node: t.OpaqueType | t.DeclareOpaqueType,\n) {\n this.word(\"opaque\");\n this.space();\n this.word(\"type\");\n this.space();\n this.print(node.id);\n this.print(node.typeParameters);\n if (node.supertype) {\n this.token(\":\");\n this.space();\n this.print(node.supertype);\n }\n\n if (node.impltype) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.impltype);\n }\n this.semicolon();\n}\n\nexport function ObjectTypeAnnotation(\n this: Printer,\n node: t.ObjectTypeAnnotation,\n) {\n if (node.exact) {\n this.token(\"{|\");\n } else {\n this.token(\"{\");\n }\n\n // TODO: remove the array fallbacks and instead enforce the types to require an array\n const props = [\n ...node.properties,\n ...(node.callProperties || []),\n ...(node.indexers || []),\n ...(node.internalSlots || []),\n ];\n\n if (props.length) {\n this.newline();\n\n this.space();\n\n this.printJoin(\n props,\n true,\n true,\n undefined,\n undefined,\n function addNewlines(leading) {\n if (leading && !props[0]) return 1;\n },\n () => {\n if (props.length !== 1 || node.inexact) {\n this.token(\",\");\n this.space();\n }\n },\n );\n\n this.space();\n }\n\n if (node.inexact) {\n this.indent();\n this.token(\"...\");\n if (props.length) {\n this.newline();\n }\n this.dedent();\n }\n\n if (node.exact) {\n this.token(\"|}\");\n } else {\n this.token(\"}\");\n }\n}\n\nexport function ObjectTypeInternalSlot(\n this: Printer,\n node: t.ObjectTypeInternalSlot,\n) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this.token(\"[\");\n this.token(\"[\");\n this.print(node.id);\n this.token(\"]\");\n this.token(\"]\");\n if (node.optional) this.token(\"?\");\n if (!node.method) {\n this.token(\":\");\n this.space();\n }\n this.print(node.value);\n}\n\nexport function ObjectTypeCallProperty(\n this: Printer,\n node: t.ObjectTypeCallProperty,\n) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this.print(node.value);\n}\n\nexport function ObjectTypeIndexer(this: Printer, node: t.ObjectTypeIndexer) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this._variance(node);\n this.token(\"[\");\n if (node.id) {\n this.print(node.id);\n this.token(\":\");\n this.space();\n }\n this.print(node.key);\n this.token(\"]\");\n this.token(\":\");\n this.space();\n this.print(node.value);\n}\n\nexport function ObjectTypeProperty(this: Printer, node: t.ObjectTypeProperty) {\n if (node.proto) {\n this.word(\"proto\");\n this.space();\n }\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n if (node.kind === \"get\" || node.kind === \"set\") {\n this.word(node.kind);\n this.space();\n }\n this._variance(node);\n this.print(node.key);\n if (node.optional) this.token(\"?\");\n if (!node.method) {\n this.token(\":\");\n this.space();\n }\n this.print(node.value);\n}\n\nexport function ObjectTypeSpreadProperty(\n this: Printer,\n node: t.ObjectTypeSpreadProperty,\n) {\n this.token(\"...\");\n this.print(node.argument);\n}\n\nexport function QualifiedTypeIdentifier(\n this: Printer,\n node: t.QualifiedTypeIdentifier,\n) {\n this.print(node.qualification);\n this.token(\".\");\n this.print(node.id);\n}\n\nexport function SymbolTypeAnnotation(this: Printer) {\n this.word(\"symbol\");\n}\n\nfunction orSeparator(this: Printer, occurrenceCount: number) {\n this.space();\n this.token(\"|\", false, occurrenceCount);\n this.space();\n}\n\nexport function UnionTypeAnnotation(\n this: Printer,\n node: t.UnionTypeAnnotation,\n) {\n this.printJoin(node.types, undefined, undefined, orSeparator);\n}\n\nexport function TypeCastExpression(this: Printer, node: t.TypeCastExpression) {\n this.token(\"(\");\n this.print(node.expression);\n this.print(node.typeAnnotation);\n this.token(\")\");\n}\n\nexport function Variance(this: Printer, node: t.Variance) {\n if (node.kind === \"plus\") {\n this.token(\"+\");\n } else {\n this.token(\"-\");\n }\n}\n\nexport function VoidTypeAnnotation(this: Printer) {\n this.word(\"void\");\n}\n\nexport function IndexedAccessType(this: Printer, node: t.IndexedAccessType) {\n this.print(node.objectType, true);\n this.token(\"[\");\n this.print(node.indexType);\n this.token(\"]\");\n}\n\nexport function OptionalIndexedAccessType(\n this: Printer,\n node: t.OptionalIndexedAccessType,\n) {\n this.print(node.objectType);\n if (node.optional) {\n this.token(\"?.\");\n }\n this.token(\"[\");\n this.print(node.indexType);\n this.token(\"]\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAqdA,IAAAG,OAAA,GAAAH,OAAA;AAGoB;EA3dXI,0BAA0B;EAAEC;AAAW,IAAAN,EAAA;AAKzC,SAASO,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;AAClB;AAEO,SAASC,mBAAmBA,CAEjCC,IAA2B,EAC3B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,WAAW,EAAE,IAAI,CAAC;EAClC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAASC,qBAAqBA,CAAA,EAAgB;EACnD,IAAI,CAACN,IAAI,CAAC,SAAS,CAAC;AACtB;AAEO,SAASO,4BAA4BA,CAE1CL,IAAoC,EACpC;EACA,IAAI,CAACF,IAAI,CAACE,IAAI,CAACM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1C;AAEO,SAASC,yBAAyBA,CAAA,EAAgB;EACvD,IAAI,CAACT,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASU,YAAYA,CAE1BR,IAAoB,EACpBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,aAAa,CAACX,IAAI,CAAC;AAC1B;AAEO,SAASY,eAAeA,CAE7BZ,IAAuB,EACvBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,UAAU,CAAC;EACrB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EAEnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACa,EAAE,CAACC,cAAc,CAACA,cAAc,CAAC;EAEjD,IAAId,IAAI,CAACe,SAAS,EAAE;IAClB,IAAI,CAACL,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACe,SAAS,CAAC;EAC5B;EAEA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASC,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACd,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASoB,iBAAiBA,CAAgBlB,IAAyB,EAAE;EAC1E,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACK,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACM,KAAK,CAAC;EACtB,IAAI,CAACH,SAAK,GAAI,CAAC;AACjB;AAEO,SAASgB,gBAAgBA,CAAgBnB,IAAwB,EAAE;EACxE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACU,oBAAoB,CAACpB,IAAI,CAAC;AACjC;AAEO,SAASqB,aAAaA,CAAgBrB,IAAqB,EAAE;EAClE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACH,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,CAAC;AACvB;AAEO,SAASC,oBAAoBA,CAElCvB,IAA4B,EAC5B;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACK,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACG,KAAK,CAACD,IAAI,CAACc,cAAc,CAAC;AACjC;AAEO,SAASU,gBAAgBA,CAAgBxB,IAAwB,EAAE;EACxE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACe,SAAS,CAACzB,IAAI,CAAC;AACtB;AAEO,SAAS0B,iBAAiBA,CAE/B1B,IAAyB,EACzBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,UAAU,CAAC3B,IAAI,CAAC;AACvB;AAEO,SAAS4B,eAAeA,CAE7B5B,IAAuB,EACvBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACa,EAAE,CAACC,cAAc,CAAC;EAClC,IAAI,CAACE,SAAS,CAAC,CAAC;AAClB;AAEO,SAASa,wBAAwBA,CAEtC7B,IAAgC,EAChC;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAIV,IAAI,CAAC8B,OAAO,EAAE;IAChB,IAAI,CAAChC,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EAEAqB,qBAAqB,CAACC,IAAI,CAAC,IAAI,EAAEhC,IAAI,CAAC;AACxC;AAEO,SAASiC,2BAA2BA,CAEzCjC,IAAmC,EACnC;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZwB,6BAAoB,CAACF,IAAI,CAAC,IAAI,EAAEhC,IAAI,CAAC;AACvC;AAEO,SAASmC,eAAeA,CAAgBnC,IAAuB,EAAE;EACtE,MAAM;IAAEa,EAAE;IAAES;EAAK,CAAC,GAAGtB,IAAI;EACzB,IAAI,CAACF,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACY,EAAE,CAAC;EACd,IAAI,CAACZ,KAAK,CAACqB,IAAI,CAAC;AAClB;AAEA,SAASc,gBAAgBA,CACvBC,OAAgB,EAChBC,IAAY,EACZC,eAAwB,EACxB;EACA,IAAIA,eAAe,EAAE;IACnBF,OAAO,CAAC3B,KAAK,CAAC,CAAC;IACf2B,OAAO,CAACvC,IAAI,CAAC,IAAI,CAAC;IAClBuC,OAAO,CAAC3B,KAAK,CAAC,CAAC;IACf2B,OAAO,CAACvC,IAAI,CAACwC,IAAI,CAAC;EACpB;EACAD,OAAO,CAAC3B,KAAK,CAAC,CAAC;AACjB;AAEA,SAAS8B,QAAQA,CAACH,OAAgB,EAAErC,IAAgB,EAAE;EACpD,MAAM;IAAEyC;EAAQ,CAAC,GAAGzC,IAAI;EACxBqC,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;EAClBkC,OAAO,CAACK,MAAM,CAAC,CAAC;EAChBL,OAAO,CAACM,OAAO,CAAC,CAAC;EACjB,KAAK,MAAMC,MAAM,IAAIH,OAAO,EAAE;IAC5BJ,OAAO,CAACpC,KAAK,CAAC2C,MAAM,CAAC;IACrBP,OAAO,CAACM,OAAO,CAAC,CAAC;EACnB;EACA,IAAI3C,IAAI,CAAC6C,iBAAiB,EAAE;IAC1BR,OAAO,CAAClC,KAAK,CAAC,KAAK,CAAC;IACpBkC,OAAO,CAACM,OAAO,CAAC,CAAC;EACnB;EACAN,OAAO,CAACS,MAAM,CAAC,CAAC;EAChBT,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;AACpB;AAEO,SAAS4C,eAAeA,CAAgB/C,IAAuB,EAAE;EACtE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAEY,YAAY,CAAC;EAC/CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASiD,cAAcA,CAAgBjD,IAAsB,EAAE;EACpE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAEY,YAAY,CAAC;EAC9CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASkD,cAAcA,CAAgBlD,IAAsB,EAAE;EACpE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAEY,YAAY,CAAC;EAC9CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASmD,cAAcA,CAAgBnD,IAAsB,EAAE;EACpEoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;EACtCI,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASoD,mBAAmBA,CAEjCpD,IAA2B,EAC3B;EACA,MAAM;IAAEa;EAAG,CAAC,GAAGb,IAAI;EACnB,IAAI,CAACC,KAAK,CAACY,EAAE,CAAC;EACd,IAAI,CAACV,SAAK,GAAI,CAAC;AACjB;AAEA,SAASkD,qBAAqBA,CAC5BhB,OAAgB,EAChBrC,IAAmE,EACnE;EACAqC,OAAO,CAACpC,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACtBwB,OAAO,CAAC3B,KAAK,CAAC,CAAC;EACf2B,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;EAClBkC,OAAO,CAAC3B,KAAK,CAAC,CAAC;EACf2B,OAAO,CAACpC,KAAK,CAACD,IAAI,CAACsD,IAAI,CAAC;EACxBjB,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;AACpB;AAEO,SAASoD,iBAAiBA,CAAgBvD,IAAyB,EAAE;EAC1EqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEO,SAASwD,gBAAgBA,CAAgBxD,IAAwB,EAAE;EACxEqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEO,SAASyD,gBAAgBA,CAAgBzD,IAAwB,EAAE;EACxEqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEA,SAAS+B,qBAAqBA,CAE5B/B,IAAgC,EAChC;EACA,IAAIA,IAAI,CAAC0D,WAAW,EAAE;IACpB,MAAMC,MAAM,GAAG3D,IAAI,CAAC0D,WAAW;IAC/B,IAAI,CAACzD,KAAK,CAAC0D,MAAM,CAAC;IAClB,IAAI,CAAC/D,WAAW,CAAC+D,MAAM,CAAC,EAAE,IAAI,CAAC3C,SAAS,CAAC,CAAC;EAC5C,CAAC,MAAM;IACL,IAAI,CAACb,SAAK,IAAI,CAAC;IACf,IAAIH,IAAI,CAAC4D,UAAU,CAACC,MAAM,EAAE;MAC1B,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC4D,UAAU,CAAC;MAC/B,IAAI,CAAClD,KAAK,CAAC,CAAC;IACd;IACA,IAAI,CAACP,SAAK,IAAI,CAAC;IAEf,IAAIH,IAAI,CAAC+D,MAAM,EAAE;MACf,IAAI,CAACrD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC+D,MAAM,CAAC;IACzB;IAEA,IAAI,CAAC/C,SAAS,CAAC,CAAC;EAClB;AACF;AAEO,SAASgD,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAAC7D,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS8D,sBAAsBA,CAEpCjE,IAA8B,EAC9BS,MAAe,EACf;EACA,IAAI,CAACR,KAAK,CAACD,IAAI,CAACkE,cAAc,CAAC;EAC/B,IAAI,CAAC/D,SAAK,GAAI,CAAC;EAEf,IAAIH,IAAI,CAACmE,IAAI,EAAE;IACb,IAAI,CAACrE,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACK,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACmE,IAAI,CAACrD,cAAc,CAAC;IACpC,IAAId,IAAI,CAACoE,MAAM,CAACP,MAAM,IAAI7D,IAAI,CAACqE,IAAI,EAAE;MACnC,IAAI,CAAClE,SAAK,GAAI,CAAC;MACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACd;EACF;EAEA,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACoE,MAAM,CAAC;EAE3B,IAAIpE,IAAI,CAACqE,IAAI,EAAE;IACb,IAAIrE,IAAI,CAACoE,MAAM,CAACP,MAAM,EAAE;MACtB,IAAI,CAAC1D,SAAK,GAAI,CAAC;MACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACd;IACA,IAAI,CAACP,KAAK,CAAC,KAAK,CAAC;IACjB,IAAI,CAACF,KAAK,CAACD,IAAI,CAACqE,IAAI,CAAC;EACvB;EAEA,IAAI,CAAClE,SAAK,GAAI,CAAC;EAIf,MAAMmE,IAAI,GAAG7D,MAAM,oBAANA,MAAM,CAAE6D,IAAI;EACzB,IACEA,IAAI,IAAI,IAAI,KACXA,IAAI,KAAK,wBAAwB,IAChCA,IAAI,KAAK,wBAAwB,IACjCA,IAAI,KAAK,iBAAiB,IACzBA,IAAI,KAAK,oBAAoB,IAAI7D,MAAM,CAAC8D,MAAO,CAAC,EACnD;IACA,IAAI,CAACpE,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACwE,UAAU,CAAC;AAC7B;AAEO,SAASC,iBAAiBA,CAAgBzE,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACsC,IAAI,CAAC;EACrB,IAAItC,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAIH,IAAI,CAACsC,IAAI,EAAE;IACb,IAAI,CAACnC,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACc,cAAc,CAAC;AACjC;AAEO,SAAS6D,gBAAgBA,CAAgB3E,IAAwB,EAAE;EACxE,IAAI,CAACC,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAE,IAAI,CAAC;AACvC;AAOO,SAASvD,aAAaA,CAE3BX,IAAkE,EAClE;EAAA,IAAA4E,aAAA;EACA,IAAI,CAAC3E,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACkE,cAAc,CAAC;EAC/B,KAAAU,aAAA,GAAI5E,IAAI,CAAC6E,OAAO,aAAZD,aAAA,CAAcf,MAAM,EAAE;IACxB,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;IACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC6E,OAAO,CAAC;EAC9B;EACA,IAAI7E,IAAI,CAACsE,IAAI,KAAK,cAAc,EAAE;IAAA,IAAAQ,YAAA,EAAAC,gBAAA;IAChC,KAAAD,YAAA,GAAI9E,IAAI,CAACgF,MAAM,aAAXF,YAAA,CAAajB,MAAM,EAAE;MACvB,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;MACnB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACgF,MAAM,CAAC;IAC7B;IACA,KAAAD,gBAAA,GAAI/E,IAAI,CAACiF,UAAU,aAAfF,gBAAA,CAAiBlB,MAAM,EAAE;MAC3B,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,YAAY,CAAC;MACvB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACiF,UAAU,CAAC;IACjC;EACF;EACA,IAAI,CAACvE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,CAAC;AACvB;AAEO,SAAS4D,SAASA,CAEvBlF,IAM2B,EAC3B;EAAA,IAAAmF,cAAA;EACA,MAAMC,IAAI,IAAAD,cAAA,GAAGnF,IAAI,CAACqF,QAAQ,qBAAbF,cAAA,CAAeC,IAAI;EAChC,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChB,IAAIA,IAAI,KAAK,MAAM,EAAE;MACnB,IAAI,CAACjF,SAAK,GAAI,CAAC;IACjB,CAAC,MAAM,IAAIiF,IAAI,KAAK,OAAO,EAAE;MAC3B,IAAI,CAACjF,SAAK,GAAI,CAAC;IACjB;EACF;AACF;AAEO,SAASiB,oBAAoBA,CAElCpB,IAAiD,EACjD;EACA,IAAI,CAACF,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,aAAa,CAACX,IAAI,CAAC;AAC1B;AAEA,SAASsF,YAAYA,CAAgBC,eAAuB,EAAE;EAC5D,IAAI,CAAC7E,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,KAAK,CAAC,GAAG,EAAE,KAAK,EAAEoF,eAAe,CAAC;EACvC,IAAI,CAAC7E,KAAK,CAAC,CAAC;AACd;AAEO,SAAS8E,uBAAuBA,CAErCxF,IAA+B,EAC/B;EAAA,IAAAyF,cAAA;EACA,IAAI,CAAC3F,IAAI,CAAC,WAAW,CAAC;EACtB,KAAA2F,cAAA,GAAIzF,IAAI,CAAC6E,OAAO,aAAZY,cAAA,CAAc5B,MAAM,EAAE;IACxB,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;IACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC6E,OAAO,CAAC;EAC9B;EACA,IAAI,CAACnE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,CAAC;AACvB;AAEO,SAASoE,0BAA0BA,CAExC1F,IAAkC,EAClC;EACA,IAAI,CAAC2F,SAAS,CAAC3F,IAAI,CAAC4F,KAAK,EAAEC,SAAS,EAAEA,SAAS,EAAEP,YAAY,CAAC;AAChE;AAEO,SAASQ,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAAChG,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASiG,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAACjG,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASkG,sBAAsBA,CAEpChG,IAA8B,EAC9B;EACA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACc,cAAc,CAAC;AACjC;AAOO,SAASmF,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAACnG,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASoG,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAACpG,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASqG,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACrG,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASsG,mBAAmBA,CAEjCpG,IAA2B,EAC3B;EACA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2D,SAAS,CAAC9D,IAAI,CAAC4F,KAAK,CAAC;EAC1B,IAAI,CAACzF,SAAK,GAAI,CAAC;AACjB;AAEO,SAASkG,oBAAoBA,CAElCrG,IAA4B,EAC5B;EACA,IAAI,CAACF,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsG,QAAQ,CAAC;AAC3B;AAEO,SAAS7E,SAASA,CAEvBzB,IAAsC,EACtC;EACA,IAAI,CAACF,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACkE,cAAc,CAAC;EAC/B,IAAI,CAACxD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACuG,KAAK,CAAC;EACtB,IAAI,CAACvF,SAAS,CAAC,CAAC;AAClB;AAEO,SAASwF,cAAcA,CAE5BxG,IAAsB,EACtBS,MAAc,EACd;EACA,IAAI,CAACN,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAID,MAAM,CAAC6D,IAAI,KAAK,yBAAyB,EAAE;IAC7C,IAAI,CAACmC,YAAY,IAAIC,mBAAY,CAACC,mBAAmB;EACvD,CAAC,MAAM,IAEL3G,IAAI,CAAC0E,QAAQ,EACb;IACA,IAAI,CAACvE,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACF,KAAK,CAACD,IAAI,CAACc,cAAc,CAAC;AACjC;AAEO,SAAS8F,0BAA0BA,CAExC5G,IAAkC,EAC5B;EACN,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2D,SAAS,CAAC9D,IAAI,CAACoE,MAAM,CAAC;EAC3B,IAAI,CAACjE,SAAK,GAAI,CAAC;AACjB;AAIO,SAAS0G,aAAaA,CAAgB7G,IAAqB,EAAE;EAClE,IAAI,CAACkF,SAAS,CAAClF,IAAI,CAAC;EAEpB,IAAI,CAACF,IAAI,CAACE,IAAI,CAACsC,IAAI,CAAC;EAEpB,IAAItC,IAAI,CAAC8G,KAAK,EAAE;IACd,IAAI,CAAC7G,KAAK,CAACD,IAAI,CAAC8G,KAAK,CAAC;EACxB;EAEA,IAAI9G,IAAI,CAAC8B,OAAO,EAAE;IAChB,IAAI,CAACpB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC8B,OAAO,CAAC;EAC1B;AACF;AAEO,SAASH,UAAUA,CAExB3B,IAAwC,EACxC;EACA,IAAI,CAACF,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACkE,cAAc,CAAC;EAC/B,IAAIlE,IAAI,CAAC+G,SAAS,EAAE;IAClB,IAAI,CAAC5G,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC+G,SAAS,CAAC;EAC5B;EAEA,IAAI/G,IAAI,CAACgH,QAAQ,EAAE;IACjB,IAAI,CAACtG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACgH,QAAQ,CAAC;EAC3B;EACA,IAAI,CAAChG,SAAS,CAAC,CAAC;AAClB;AAEO,SAASiG,oBAAoBA,CAElCjH,IAA4B,EAC5B;EACA,IAAIA,IAAI,CAACkH,KAAK,EAAE;IACd,IAAI,CAAC/G,KAAK,CAAC,IAAI,CAAC;EAClB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;EAGA,MAAMgH,KAAK,GAAG,CACZ,GAAGnH,IAAI,CAACoH,UAAU,EAClB,IAAIpH,IAAI,CAACqH,cAAc,IAAI,EAAE,CAAC,EAC9B,IAAIrH,IAAI,CAACsH,QAAQ,IAAI,EAAE,CAAC,EACxB,IAAItH,IAAI,CAACuH,aAAa,IAAI,EAAE,CAAC,CAC9B;EAED,IAAIJ,KAAK,CAACtD,MAAM,EAAE;IAChB,IAAI,CAAClB,OAAO,CAAC,CAAC;IAEd,IAAI,CAACjC,KAAK,CAAC,CAAC;IAEZ,IAAI,CAACiF,SAAS,CACZwB,KAAK,EACL,IAAI,EACJ,IAAI,EACJtB,SAAS,EACTA,SAAS,EACT,SAAS2B,WAAWA,CAACC,OAAO,EAAE;MAC5B,IAAIA,OAAO,IAAI,CAACN,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;IACpC,CAAC,EACD,MAAM;MACJ,IAAIA,KAAK,CAACtD,MAAM,KAAK,CAAC,IAAI7D,IAAI,CAAC0H,OAAO,EAAE;QACtC,IAAI,CAACvH,SAAK,GAAI,CAAC;QACf,IAAI,CAACO,KAAK,CAAC,CAAC;MACd;IACF,CACF,CAAC;IAED,IAAI,CAACA,KAAK,CAAC,CAAC;EACd;EAEA,IAAIV,IAAI,CAAC0H,OAAO,EAAE;IAChB,IAAI,CAAChF,MAAM,CAAC,CAAC;IACb,IAAI,CAACvC,KAAK,CAAC,KAAK,CAAC;IACjB,IAAIgH,KAAK,CAACtD,MAAM,EAAE;MAChB,IAAI,CAAClB,OAAO,CAAC,CAAC;IAChB;IACA,IAAI,CAACG,MAAM,CAAC,CAAC;EACf;EAEA,IAAI9C,IAAI,CAACkH,KAAK,EAAE;IACd,IAAI,CAAC/G,KAAK,CAAC,IAAI,CAAC;EAClB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;AACF;AAEO,SAASwH,sBAAsBA,CAEpC3H,IAA8B,EAC9B;EACA,IAAIA,IAAI,CAAC4H,MAAM,EAAE;IACf,IAAI,CAAC9H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACP,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;EACnB,IAAI,CAACV,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAIH,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAI,CAACH,IAAI,CAACuE,MAAM,EAAE;IAChB,IAAI,CAACpE,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAASuH,sBAAsBA,CAEpC7H,IAA8B,EAC9B;EACA,IAAIA,IAAI,CAAC4H,MAAM,EAAE;IACf,IAAI,CAAC9H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAASwH,iBAAiBA,CAAgB9H,IAAyB,EAAE;EAC1E,IAAIA,IAAI,CAAC4H,MAAM,EAAE;IACf,IAAI,CAAC9H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACwE,SAAS,CAAClF,IAAI,CAAC;EACpB,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAIH,IAAI,CAACa,EAAE,EAAE;IACX,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;IACnB,IAAI,CAACV,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC+H,GAAG,CAAC;EACpB,IAAI,CAAC5H,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAAS0H,kBAAkBA,CAAgBhI,IAA0B,EAAE;EAC5E,IAAIA,IAAI,CAACiI,KAAK,EAAE;IACd,IAAI,CAACnI,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAIV,IAAI,CAAC4H,MAAM,EAAE;IACf,IAAI,CAAC9H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAIV,IAAI,CAACoF,IAAI,KAAK,KAAK,IAAIpF,IAAI,CAACoF,IAAI,KAAK,KAAK,EAAE;IAC9C,IAAI,CAACtF,IAAI,CAACE,IAAI,CAACoF,IAAI,CAAC;IACpB,IAAI,CAAC1E,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACwE,SAAS,CAAClF,IAAI,CAAC;EACpB,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC+H,GAAG,CAAC;EACpB,IAAI/H,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAI,CAACH,IAAI,CAACuE,MAAM,EAAE;IAChB,IAAI,CAACpE,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAAS4H,wBAAwBA,CAEtClI,IAAgC,EAChC;EACA,IAAI,CAACG,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACF,KAAK,CAACD,IAAI,CAACsG,QAAQ,CAAC;AAC3B;AAEO,SAAS6B,uBAAuBA,CAErCnI,IAA+B,EAC/B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACoI,aAAa,CAAC;EAC9B,IAAI,CAACjI,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACa,EAAE,CAAC;AACrB;AAEO,SAASwH,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAACvI,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEA,SAASwI,WAAWA,CAAgB/C,eAAuB,EAAE;EAC3D,IAAI,CAAC7E,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,KAAK,CAAC,GAAG,EAAE,KAAK,EAAEoF,eAAe,CAAC;EACvC,IAAI,CAAC7E,KAAK,CAAC,CAAC;AACd;AAEO,SAAS6H,mBAAmBA,CAEjCvI,IAA2B,EAC3B;EACA,IAAI,CAAC2F,SAAS,CAAC3F,IAAI,CAAC4F,KAAK,EAAEC,SAAS,EAAEA,SAAS,EAAEyC,WAAW,CAAC;AAC/D;AAEO,SAASE,kBAAkBA,CAAgBxI,IAA0B,EAAE;EAC5E,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACyI,UAAU,CAAC;EAC3B,IAAI,CAACxI,KAAK,CAACD,IAAI,CAACc,cAAc,CAAC;EAC/B,IAAI,CAACX,SAAK,GAAI,CAAC;AACjB;AAEO,SAASuI,QAAQA,CAAgB1I,IAAgB,EAAE;EACxD,IAAIA,IAAI,CAACoF,IAAI,KAAK,MAAM,EAAE;IACxB,IAAI,CAACjF,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,GAAI,CAAC;EACjB;AACF;AAEO,SAASwI,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAAC7I,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAAS8I,iBAAiBA,CAAgB5I,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC6I,UAAU,EAAE,IAAI,CAAC;EACjC,IAAI,CAAC1I,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC8I,SAAS,CAAC;EAC1B,IAAI,CAAC3I,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS4I,yBAAyBA,CAEvC/I,IAAiC,EACjC;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC6I,UAAU,CAAC;EAC3B,IAAI7I,IAAI,CAAC0E,QAAQ,EAAE;IACjB,IAAI,CAACvE,KAAK,CAAC,IAAI,CAAC;EAClB;EACA,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC8I,SAAS,CAAC;EAC1B,IAAI,CAAC3I,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_modules","_index","_types2","isDeclareExportDeclaration","isStatement","AnyTypeAnnotation","word","ArrayTypeAnnotation","node","print","elementType","token","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","value","NullLiteralTypeAnnotation","DeclareClass","parent","space","_interfaceish","DeclareFunction","id","typeAnnotation","predicate","semicolon","InferredPredicate","DeclaredPredicate","DeclareInterface","InterfaceDeclaration","DeclareModule","body","DeclareModuleExports","DeclareTypeAlias","TypeAlias","DeclareOpaqueType","OpaqueType","DeclareVariable","DeclareExportDeclaration","default","FlowExportDeclaration","call","DeclareExportAllDeclaration","ExportAllDeclaration","EnumDeclaration","enumExplicitType","context","name","hasExplicitType","enumBody","members","indent","newline","member","hasUnknownMembers","dedent","EnumBooleanBody","explicitType","EnumNumberBody","EnumStringBody","EnumSymbolBody","EnumDefaultedMember","enumInitializedMember","init","EnumBooleanMember","EnumNumberMember","EnumStringMember","declaration","declar","specifiers","length","printList","source","ExistsTypeAnnotation","FunctionTypeAnnotation","typeParameters","this","params","rest","type","method","returnType","FunctionTypeParam","optional","InterfaceExtends","_node$extends","extends","_node$mixins","_node$implements","mixins","implements","_variance","_node$variance","kind","variance","andSeparator","InterfaceTypeAnnotation","_node$extends2","IntersectionTypeAnnotation","printJoin","types","separator","MixedTypeAnnotation","EmptyTypeAnnotation","NullableTypeAnnotation","NumberTypeAnnotation","StringTypeAnnotation","ThisTypeAnnotation","TupleTypeAnnotation","TypeofTypeAnnotation","argument","right","TypeAnnotation","tokenContext","TokenContext","arrowFlowReturnType","TypeParameterInstantiation","TypeParameter","bound","supertype","impltype","ObjectTypeAnnotation","exact","props","properties","callProperties","indexers","internalSlots","addNewlines","leading","statement","iterator","inexact","ObjectTypeInternalSlot","static","ObjectTypeCallProperty","ObjectTypeIndexer","key","ObjectTypeProperty","proto","ObjectTypeSpreadProperty","QualifiedTypeIdentifier","qualification","SymbolTypeAnnotation","orSeparator","UnionTypeAnnotation","TypeCastExpression","expression","Variance","VoidTypeAnnotation","IndexedAccessType","objectType","indexType","OptionalIndexedAccessType"],"sources":["../../src/generators/flow.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport { isDeclareExportDeclaration, isStatement } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { ExportAllDeclaration } from \"./modules.ts\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function AnyTypeAnnotation(this: Printer) {\n this.word(\"any\");\n}\n\nexport function ArrayTypeAnnotation(\n this: Printer,\n node: t.ArrayTypeAnnotation,\n) {\n this.print(node.elementType, node, true);\n this.token(\"[\");\n this.token(\"]\");\n}\n\nexport function BooleanTypeAnnotation(this: Printer) {\n this.word(\"boolean\");\n}\n\nexport function BooleanLiteralTypeAnnotation(\n this: Printer,\n node: t.BooleanLiteralTypeAnnotation,\n) {\n this.word(node.value ? \"true\" : \"false\");\n}\n\nexport function NullLiteralTypeAnnotation(this: Printer) {\n this.word(\"null\");\n}\n\nexport function DeclareClass(\n this: Printer,\n node: t.DeclareClass,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"class\");\n this.space();\n this._interfaceish(node);\n}\n\nexport function DeclareFunction(\n this: Printer,\n node: t.DeclareFunction,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"function\");\n this.space();\n this.print(node.id, node);\n // @ts-ignore(Babel 7 vs Babel 8) TODO(Babel 8) Remove this comment, since we'll remove the Noop node\n this.print(node.id.typeAnnotation.typeAnnotation, node);\n\n if (node.predicate) {\n this.space();\n this.print(node.predicate, node);\n }\n\n this.semicolon();\n}\n\nexport function InferredPredicate(this: Printer) {\n this.token(\"%\");\n this.word(\"checks\");\n}\n\nexport function DeclaredPredicate(this: Printer, node: t.DeclaredPredicate) {\n this.token(\"%\");\n this.word(\"checks\");\n this.token(\"(\");\n this.print(node.value, node);\n this.token(\")\");\n}\n\nexport function DeclareInterface(this: Printer, node: t.DeclareInterface) {\n this.word(\"declare\");\n this.space();\n this.InterfaceDeclaration(node);\n}\n\nexport function DeclareModule(this: Printer, node: t.DeclareModule) {\n this.word(\"declare\");\n this.space();\n this.word(\"module\");\n this.space();\n this.print(node.id, node);\n this.space();\n this.print(node.body, node);\n}\n\nexport function DeclareModuleExports(\n this: Printer,\n node: t.DeclareModuleExports,\n) {\n this.word(\"declare\");\n this.space();\n this.word(\"module\");\n this.token(\".\");\n this.word(\"exports\");\n this.print(node.typeAnnotation, node);\n}\n\nexport function DeclareTypeAlias(this: Printer, node: t.DeclareTypeAlias) {\n this.word(\"declare\");\n this.space();\n this.TypeAlias(node);\n}\n\nexport function DeclareOpaqueType(\n this: Printer,\n node: t.DeclareOpaqueType,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.OpaqueType(node);\n}\n\nexport function DeclareVariable(\n this: Printer,\n node: t.DeclareVariable,\n parent: t.Node,\n) {\n if (!isDeclareExportDeclaration(parent)) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"var\");\n this.space();\n this.print(node.id, node);\n this.print(node.id.typeAnnotation, node);\n this.semicolon();\n}\n\nexport function DeclareExportDeclaration(\n this: Printer,\n node: t.DeclareExportDeclaration,\n) {\n this.word(\"declare\");\n this.space();\n this.word(\"export\");\n this.space();\n if (node.default) {\n this.word(\"default\");\n this.space();\n }\n\n FlowExportDeclaration.call(this, node);\n}\n\nexport function DeclareExportAllDeclaration(\n this: Printer,\n node: t.DeclareExportAllDeclaration,\n) {\n this.word(\"declare\");\n this.space();\n ExportAllDeclaration.call(this, node);\n}\n\nexport function EnumDeclaration(this: Printer, node: t.EnumDeclaration) {\n const { id, body } = node;\n this.word(\"enum\");\n this.space();\n this.print(id, node);\n this.print(body, node);\n}\n\nfunction enumExplicitType(\n context: Printer,\n name: string,\n hasExplicitType: boolean,\n) {\n if (hasExplicitType) {\n context.space();\n context.word(\"of\");\n context.space();\n context.word(name);\n }\n context.space();\n}\n\nfunction enumBody(context: Printer, node: t.EnumBody) {\n const { members } = node;\n context.token(\"{\");\n context.indent();\n context.newline();\n for (const member of members) {\n context.print(member, node);\n context.newline();\n }\n if (node.hasUnknownMembers) {\n context.token(\"...\");\n context.newline();\n }\n context.dedent();\n context.token(\"}\");\n}\n\nexport function EnumBooleanBody(this: Printer, node: t.EnumBooleanBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"boolean\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumNumberBody(this: Printer, node: t.EnumNumberBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"number\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumStringBody(this: Printer, node: t.EnumStringBody) {\n const { explicitType } = node;\n enumExplicitType(this, \"string\", explicitType);\n enumBody(this, node);\n}\n\nexport function EnumSymbolBody(this: Printer, node: t.EnumSymbolBody) {\n enumExplicitType(this, \"symbol\", true);\n enumBody(this, node);\n}\n\nexport function EnumDefaultedMember(\n this: Printer,\n node: t.EnumDefaultedMember,\n) {\n const { id } = node;\n this.print(id, node);\n this.token(\",\");\n}\n\nfunction enumInitializedMember(\n context: Printer,\n node: t.EnumBooleanMember | t.EnumNumberMember | t.EnumStringMember,\n) {\n const { id, init } = node;\n context.print(id, node);\n context.space();\n context.token(\"=\");\n context.space();\n context.print(init, node);\n context.token(\",\");\n}\n\nexport function EnumBooleanMember(this: Printer, node: t.EnumBooleanMember) {\n enumInitializedMember(this, node);\n}\n\nexport function EnumNumberMember(this: Printer, node: t.EnumNumberMember) {\n enumInitializedMember(this, node);\n}\n\nexport function EnumStringMember(this: Printer, node: t.EnumStringMember) {\n enumInitializedMember(this, node);\n}\n\nfunction FlowExportDeclaration(\n this: Printer,\n node: t.DeclareExportDeclaration,\n) {\n if (node.declaration) {\n const declar = node.declaration;\n this.print(declar, node);\n if (!isStatement(declar)) this.semicolon();\n } else {\n this.token(\"{\");\n if (node.specifiers.length) {\n this.space();\n this.printList(node.specifiers, node);\n this.space();\n }\n this.token(\"}\");\n\n if (node.source) {\n this.space();\n this.word(\"from\");\n this.space();\n this.print(node.source, node);\n }\n\n this.semicolon();\n }\n}\n\nexport function ExistsTypeAnnotation(this: Printer) {\n this.token(\"*\");\n}\n\nexport function FunctionTypeAnnotation(\n this: Printer,\n node: t.FunctionTypeAnnotation,\n parent?: t.Node,\n) {\n this.print(node.typeParameters, node);\n this.token(\"(\");\n\n if (node.this) {\n this.word(\"this\");\n this.token(\":\");\n this.space();\n this.print(node.this.typeAnnotation, node);\n if (node.params.length || node.rest) {\n this.token(\",\");\n this.space();\n }\n }\n\n this.printList(node.params, node);\n\n if (node.rest) {\n if (node.params.length) {\n this.token(\",\");\n this.space();\n }\n this.token(\"...\");\n this.print(node.rest, node);\n }\n\n this.token(\")\");\n\n // this node type is overloaded, not sure why but it makes it EXTREMELY annoying\n\n const type = parent?.type;\n if (\n type != null &&\n (type === \"ObjectTypeCallProperty\" ||\n type === \"ObjectTypeInternalSlot\" ||\n type === \"DeclareFunction\" ||\n (type === \"ObjectTypeProperty\" && parent.method))\n ) {\n this.token(\":\");\n } else {\n this.space();\n this.token(\"=>\");\n }\n\n this.space();\n this.print(node.returnType, node);\n}\n\nexport function FunctionTypeParam(this: Printer, node: t.FunctionTypeParam) {\n this.print(node.name, node);\n if (node.optional) this.token(\"?\");\n if (node.name) {\n this.token(\":\");\n this.space();\n }\n this.print(node.typeAnnotation, node);\n}\n\nexport function InterfaceExtends(this: Printer, node: t.InterfaceExtends) {\n this.print(node.id, node);\n this.print(node.typeParameters, node, true);\n}\n\nexport {\n InterfaceExtends as ClassImplements,\n InterfaceExtends as GenericTypeAnnotation,\n};\n\nexport function _interfaceish(\n this: Printer,\n node: t.InterfaceDeclaration | t.DeclareInterface | t.DeclareClass,\n) {\n this.print(node.id, node);\n this.print(node.typeParameters, node);\n if (node.extends?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(node.extends, node);\n }\n if (node.type === \"DeclareClass\") {\n if (node.mixins?.length) {\n this.space();\n this.word(\"mixins\");\n this.space();\n this.printList(node.mixins, node);\n }\n if (node.implements?.length) {\n this.space();\n this.word(\"implements\");\n this.space();\n this.printList(node.implements, node);\n }\n }\n this.space();\n this.print(node.body, node);\n}\n\nexport function _variance(\n this: Printer,\n node:\n | t.TypeParameter\n | t.ObjectTypeIndexer\n | t.ObjectTypeProperty\n | t.ClassProperty\n | t.ClassPrivateProperty\n | t.ClassAccessorProperty,\n) {\n const kind = node.variance?.kind;\n if (kind != null) {\n if (kind === \"plus\") {\n this.token(\"+\");\n } else if (kind === \"minus\") {\n this.token(\"-\");\n }\n }\n}\n\nexport function InterfaceDeclaration(\n this: Printer,\n node: t.InterfaceDeclaration | t.DeclareInterface,\n) {\n this.word(\"interface\");\n this.space();\n this._interfaceish(node);\n}\n\nfunction andSeparator(this: Printer) {\n this.space();\n this.token(\"&\");\n this.space();\n}\n\nexport function InterfaceTypeAnnotation(\n this: Printer,\n node: t.InterfaceTypeAnnotation,\n) {\n this.word(\"interface\");\n if (node.extends?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(node.extends, node);\n }\n this.space();\n this.print(node.body, node);\n}\n\nexport function IntersectionTypeAnnotation(\n this: Printer,\n node: t.IntersectionTypeAnnotation,\n) {\n this.printJoin(node.types, node, { separator: andSeparator });\n}\n\nexport function MixedTypeAnnotation(this: Printer) {\n this.word(\"mixed\");\n}\n\nexport function EmptyTypeAnnotation(this: Printer) {\n this.word(\"empty\");\n}\n\nexport function NullableTypeAnnotation(\n this: Printer,\n node: t.NullableTypeAnnotation,\n) {\n this.token(\"?\");\n this.print(node.typeAnnotation, node);\n}\n\nexport {\n NumericLiteral as NumberLiteralTypeAnnotation,\n StringLiteral as StringLiteralTypeAnnotation,\n} from \"./types.ts\";\n\nexport function NumberTypeAnnotation(this: Printer) {\n this.word(\"number\");\n}\n\nexport function StringTypeAnnotation(this: Printer) {\n this.word(\"string\");\n}\n\nexport function ThisTypeAnnotation(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TupleTypeAnnotation(\n this: Printer,\n node: t.TupleTypeAnnotation,\n) {\n this.token(\"[\");\n this.printList(node.types, node);\n this.token(\"]\");\n}\n\nexport function TypeofTypeAnnotation(\n this: Printer,\n node: t.TypeofTypeAnnotation,\n) {\n this.word(\"typeof\");\n this.space();\n this.print(node.argument, node);\n}\n\nexport function TypeAlias(\n this: Printer,\n node: t.TypeAlias | t.DeclareTypeAlias,\n) {\n this.word(\"type\");\n this.space();\n this.print(node.id, node);\n this.print(node.typeParameters, node);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.right, node);\n this.semicolon();\n}\n\nexport function TypeAnnotation(\n this: Printer,\n node: t.TypeAnnotation,\n parent: t.Node,\n) {\n this.token(\":\");\n this.space();\n if (parent.type === \"ArrowFunctionExpression\") {\n this.tokenContext |= TokenContext.arrowFlowReturnType;\n } else if (\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n node.optional\n ) {\n this.token(\"?\");\n }\n this.print(node.typeAnnotation, node);\n}\n\nexport function TypeParameterInstantiation(\n this: Printer,\n node: t.TypeParameterInstantiation,\n): void {\n this.token(\"<\");\n this.printList(node.params, node, {});\n this.token(\">\");\n}\n\nexport { TypeParameterInstantiation as TypeParameterDeclaration };\n\nexport function TypeParameter(this: Printer, node: t.TypeParameter) {\n this._variance(node);\n\n this.word(node.name);\n\n if (node.bound) {\n this.print(node.bound, node);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default, node);\n }\n}\n\nexport function OpaqueType(\n this: Printer,\n node: t.OpaqueType | t.DeclareOpaqueType,\n) {\n this.word(\"opaque\");\n this.space();\n this.word(\"type\");\n this.space();\n this.print(node.id, node);\n this.print(node.typeParameters, node);\n if (node.supertype) {\n this.token(\":\");\n this.space();\n this.print(node.supertype, node);\n }\n\n if (node.impltype) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.impltype, node);\n }\n this.semicolon();\n}\n\nexport function ObjectTypeAnnotation(\n this: Printer,\n node: t.ObjectTypeAnnotation,\n) {\n if (node.exact) {\n this.token(\"{|\");\n } else {\n this.token(\"{\");\n }\n\n // TODO: remove the array fallbacks and instead enforce the types to require an array\n const props = [\n ...node.properties,\n ...(node.callProperties || []),\n ...(node.indexers || []),\n ...(node.internalSlots || []),\n ];\n\n if (props.length) {\n this.newline();\n\n this.space();\n\n this.printJoin(props, node, {\n addNewlines(leading) {\n if (leading && !props[0]) return 1;\n },\n indent: true,\n statement: true,\n iterator: () => {\n if (props.length !== 1 || node.inexact) {\n this.token(\",\");\n this.space();\n }\n },\n });\n\n this.space();\n }\n\n if (node.inexact) {\n this.indent();\n this.token(\"...\");\n if (props.length) {\n this.newline();\n }\n this.dedent();\n }\n\n if (node.exact) {\n this.token(\"|}\");\n } else {\n this.token(\"}\");\n }\n}\n\nexport function ObjectTypeInternalSlot(\n this: Printer,\n node: t.ObjectTypeInternalSlot,\n) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this.token(\"[\");\n this.token(\"[\");\n this.print(node.id, node);\n this.token(\"]\");\n this.token(\"]\");\n if (node.optional) this.token(\"?\");\n if (!node.method) {\n this.token(\":\");\n this.space();\n }\n this.print(node.value, node);\n}\n\nexport function ObjectTypeCallProperty(\n this: Printer,\n node: t.ObjectTypeCallProperty,\n) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this.print(node.value, node);\n}\n\nexport function ObjectTypeIndexer(this: Printer, node: t.ObjectTypeIndexer) {\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n this._variance(node);\n this.token(\"[\");\n if (node.id) {\n this.print(node.id, node);\n this.token(\":\");\n this.space();\n }\n this.print(node.key, node);\n this.token(\"]\");\n this.token(\":\");\n this.space();\n this.print(node.value, node);\n}\n\nexport function ObjectTypeProperty(this: Printer, node: t.ObjectTypeProperty) {\n if (node.proto) {\n this.word(\"proto\");\n this.space();\n }\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n if (node.kind === \"get\" || node.kind === \"set\") {\n this.word(node.kind);\n this.space();\n }\n this._variance(node);\n this.print(node.key, node);\n if (node.optional) this.token(\"?\");\n if (!node.method) {\n this.token(\":\");\n this.space();\n }\n this.print(node.value, node);\n}\n\nexport function ObjectTypeSpreadProperty(\n this: Printer,\n node: t.ObjectTypeSpreadProperty,\n) {\n this.token(\"...\");\n this.print(node.argument, node);\n}\n\nexport function QualifiedTypeIdentifier(\n this: Printer,\n node: t.QualifiedTypeIdentifier,\n) {\n this.print(node.qualification, node);\n this.token(\".\");\n this.print(node.id, node);\n}\n\nexport function SymbolTypeAnnotation(this: Printer) {\n this.word(\"symbol\");\n}\n\nfunction orSeparator(this: Printer) {\n this.space();\n this.token(\"|\");\n this.space();\n}\n\nexport function UnionTypeAnnotation(\n this: Printer,\n node: t.UnionTypeAnnotation,\n) {\n this.printJoin(node.types, node, { separator: orSeparator });\n}\n\nexport function TypeCastExpression(this: Printer, node: t.TypeCastExpression) {\n this.token(\"(\");\n this.print(node.expression, node);\n this.print(node.typeAnnotation, node);\n this.token(\")\");\n}\n\nexport function Variance(this: Printer, node: t.Variance) {\n if (node.kind === \"plus\") {\n this.token(\"+\");\n } else {\n this.token(\"-\");\n }\n}\n\nexport function VoidTypeAnnotation(this: Printer) {\n this.word(\"void\");\n}\n\nexport function IndexedAccessType(this: Printer, node: t.IndexedAccessType) {\n this.print(node.objectType, node, true);\n this.token(\"[\");\n this.print(node.indexType, node);\n this.token(\"]\");\n}\n\nexport function OptionalIndexedAccessType(\n this: Printer,\n node: t.OptionalIndexedAccessType,\n) {\n this.print(node.objectType, node);\n if (node.optional) {\n this.token(\"?.\");\n }\n this.token(\"[\");\n this.print(node.indexType, node);\n this.token(\"]\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAsdA,IAAAG,OAAA,GAAAH,OAAA;AAGoB;EA5dXI,0BAA0B;EAAEC;AAAW,IAAAN,EAAA;AAKzC,SAASO,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;AAClB;AAEO,SAASC,mBAAmBA,CAEjCC,IAA2B,EAC3B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,WAAW,EAAEF,IAAI,EAAE,IAAI,CAAC;EACxC,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAASC,qBAAqBA,CAAA,EAAgB;EACnD,IAAI,CAACN,IAAI,CAAC,SAAS,CAAC;AACtB;AAEO,SAASO,4BAA4BA,CAE1CL,IAAoC,EACpC;EACA,IAAI,CAACF,IAAI,CAACE,IAAI,CAACM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1C;AAEO,SAASC,yBAAyBA,CAAA,EAAgB;EACvD,IAAI,CAACT,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASU,YAAYA,CAE1BR,IAAoB,EACpBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,aAAa,CAACX,IAAI,CAAC;AAC1B;AAEO,SAASY,eAAeA,CAE7BZ,IAAuB,EACvBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,UAAU,CAAC;EACrB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EAEzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACa,EAAE,CAACC,cAAc,CAACA,cAAc,EAAEd,IAAI,CAAC;EAEvD,IAAIA,IAAI,CAACe,SAAS,EAAE;IAClB,IAAI,CAACL,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACe,SAAS,EAAEf,IAAI,CAAC;EAClC;EAEA,IAAI,CAACgB,SAAS,CAAC,CAAC;AAClB;AAEO,SAASC,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACd,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASoB,iBAAiBA,CAAgBlB,IAAyB,EAAE;EAC1E,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACK,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;EAC5B,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAEO,SAASgB,gBAAgBA,CAAgBnB,IAAwB,EAAE;EACxE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACU,oBAAoB,CAACpB,IAAI,CAAC;AACjC;AAEO,SAASqB,aAAaA,CAAgBrB,IAAqB,EAAE;EAClE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACU,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,EAAEtB,IAAI,CAAC;AAC7B;AAEO,SAASuB,oBAAoBA,CAElCvB,IAA4B,EAC5B;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACK,SAAK,GAAI,CAAC;EACf,IAAI,CAACL,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACG,KAAK,CAACD,IAAI,CAACc,cAAc,EAAEd,IAAI,CAAC;AACvC;AAEO,SAASwB,gBAAgBA,CAAgBxB,IAAwB,EAAE;EACxE,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACe,SAAS,CAACzB,IAAI,CAAC;AACtB;AAEO,SAAS0B,iBAAiBA,CAE/B1B,IAAyB,EACzBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,UAAU,CAAC3B,IAAI,CAAC;AACvB;AAEO,SAAS4B,eAAeA,CAE7B5B,IAAuB,EACvBS,MAAc,EACd;EACA,IAAI,CAACd,0BAA0B,CAACc,MAAM,CAAC,EAAE;IACvC,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACZ,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACa,EAAE,CAACC,cAAc,EAAEd,IAAI,CAAC;EACxC,IAAI,CAACgB,SAAS,CAAC,CAAC;AAClB;AAEO,SAASa,wBAAwBA,CAEtC7B,IAAgC,EAChC;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAIV,IAAI,CAAC8B,OAAO,EAAE;IAChB,IAAI,CAAChC,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EAEAqB,qBAAqB,CAACC,IAAI,CAAC,IAAI,EAAEhC,IAAI,CAAC;AACxC;AAEO,SAASiC,2BAA2BA,CAEzCjC,IAAmC,EACnC;EACA,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZwB,6BAAoB,CAACF,IAAI,CAAC,IAAI,EAAEhC,IAAI,CAAC;AACvC;AAEO,SAASmC,eAAeA,CAAgBnC,IAAuB,EAAE;EACtE,MAAM;IAAEa,EAAE;IAAES;EAAK,CAAC,GAAGtB,IAAI;EACzB,IAAI,CAACF,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACY,EAAE,EAAEb,IAAI,CAAC;EACpB,IAAI,CAACC,KAAK,CAACqB,IAAI,EAAEtB,IAAI,CAAC;AACxB;AAEA,SAASoC,gBAAgBA,CACvBC,OAAgB,EAChBC,IAAY,EACZC,eAAwB,EACxB;EACA,IAAIA,eAAe,EAAE;IACnBF,OAAO,CAAC3B,KAAK,CAAC,CAAC;IACf2B,OAAO,CAACvC,IAAI,CAAC,IAAI,CAAC;IAClBuC,OAAO,CAAC3B,KAAK,CAAC,CAAC;IACf2B,OAAO,CAACvC,IAAI,CAACwC,IAAI,CAAC;EACpB;EACAD,OAAO,CAAC3B,KAAK,CAAC,CAAC;AACjB;AAEA,SAAS8B,QAAQA,CAACH,OAAgB,EAAErC,IAAgB,EAAE;EACpD,MAAM;IAAEyC;EAAQ,CAAC,GAAGzC,IAAI;EACxBqC,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;EAClBkC,OAAO,CAACK,MAAM,CAAC,CAAC;EAChBL,OAAO,CAACM,OAAO,CAAC,CAAC;EACjB,KAAK,MAAMC,MAAM,IAAIH,OAAO,EAAE;IAC5BJ,OAAO,CAACpC,KAAK,CAAC2C,MAAM,EAAE5C,IAAI,CAAC;IAC3BqC,OAAO,CAACM,OAAO,CAAC,CAAC;EACnB;EACA,IAAI3C,IAAI,CAAC6C,iBAAiB,EAAE;IAC1BR,OAAO,CAAClC,KAAK,CAAC,KAAK,CAAC;IACpBkC,OAAO,CAACM,OAAO,CAAC,CAAC;EACnB;EACAN,OAAO,CAACS,MAAM,CAAC,CAAC;EAChBT,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;AACpB;AAEO,SAAS4C,eAAeA,CAAgB/C,IAAuB,EAAE;EACtE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAEY,YAAY,CAAC;EAC/CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASiD,cAAcA,CAAgBjD,IAAsB,EAAE;EACpE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAEY,YAAY,CAAC;EAC9CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASkD,cAAcA,CAAgBlD,IAAsB,EAAE;EACpE,MAAM;IAAEgD;EAAa,CAAC,GAAGhD,IAAI;EAC7BoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAEY,YAAY,CAAC;EAC9CR,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASmD,cAAcA,CAAgBnD,IAAsB,EAAE;EACpEoC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;EACtCI,QAAQ,CAAC,IAAI,EAAExC,IAAI,CAAC;AACtB;AAEO,SAASoD,mBAAmBA,CAEjCpD,IAA2B,EAC3B;EACA,MAAM;IAAEa;EAAG,CAAC,GAAGb,IAAI;EACnB,IAAI,CAACC,KAAK,CAACY,EAAE,EAAEb,IAAI,CAAC;EACpB,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAEA,SAASkD,qBAAqBA,CAC5BhB,OAAgB,EAChBrC,IAAmE,EACnE;EACA,MAAM;IAAEa,EAAE;IAAEyC;EAAK,CAAC,GAAGtD,IAAI;EACzBqC,OAAO,CAACpC,KAAK,CAACY,EAAE,EAAEb,IAAI,CAAC;EACvBqC,OAAO,CAAC3B,KAAK,CAAC,CAAC;EACf2B,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;EAClBkC,OAAO,CAAC3B,KAAK,CAAC,CAAC;EACf2B,OAAO,CAACpC,KAAK,CAACqD,IAAI,EAAEtD,IAAI,CAAC;EACzBqC,OAAO,CAAClC,KAAK,CAAC,GAAG,CAAC;AACpB;AAEO,SAASoD,iBAAiBA,CAAgBvD,IAAyB,EAAE;EAC1EqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEO,SAASwD,gBAAgBA,CAAgBxD,IAAwB,EAAE;EACxEqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEO,SAASyD,gBAAgBA,CAAgBzD,IAAwB,EAAE;EACxEqD,qBAAqB,CAAC,IAAI,EAAErD,IAAI,CAAC;AACnC;AAEA,SAAS+B,qBAAqBA,CAE5B/B,IAAgC,EAChC;EACA,IAAIA,IAAI,CAAC0D,WAAW,EAAE;IACpB,MAAMC,MAAM,GAAG3D,IAAI,CAAC0D,WAAW;IAC/B,IAAI,CAACzD,KAAK,CAAC0D,MAAM,EAAE3D,IAAI,CAAC;IACxB,IAAI,CAACJ,WAAW,CAAC+D,MAAM,CAAC,EAAE,IAAI,CAAC3C,SAAS,CAAC,CAAC;EAC5C,CAAC,MAAM;IACL,IAAI,CAACb,SAAK,IAAI,CAAC;IACf,IAAIH,IAAI,CAAC4D,UAAU,CAACC,MAAM,EAAE;MAC1B,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC4D,UAAU,EAAE5D,IAAI,CAAC;MACrC,IAAI,CAACU,KAAK,CAAC,CAAC;IACd;IACA,IAAI,CAACP,SAAK,IAAI,CAAC;IAEf,IAAIH,IAAI,CAAC+D,MAAM,EAAE;MACf,IAAI,CAACrD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC+D,MAAM,EAAE/D,IAAI,CAAC;IAC/B;IAEA,IAAI,CAACgB,SAAS,CAAC,CAAC;EAClB;AACF;AAEO,SAASgD,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAAC7D,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS8D,sBAAsBA,CAEpCjE,IAA8B,EAC9BS,MAAe,EACf;EACA,IAAI,CAACR,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAElE,IAAI,CAAC;EACrC,IAAI,CAACG,SAAK,GAAI,CAAC;EAEf,IAAIH,IAAI,CAACmE,IAAI,EAAE;IACb,IAAI,CAACrE,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACK,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACmE,IAAI,CAACrD,cAAc,EAAEd,IAAI,CAAC;IAC1C,IAAIA,IAAI,CAACoE,MAAM,CAACP,MAAM,IAAI7D,IAAI,CAACqE,IAAI,EAAE;MACnC,IAAI,CAAClE,SAAK,GAAI,CAAC;MACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACd;EACF;EAEA,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACoE,MAAM,EAAEpE,IAAI,CAAC;EAEjC,IAAIA,IAAI,CAACqE,IAAI,EAAE;IACb,IAAIrE,IAAI,CAACoE,MAAM,CAACP,MAAM,EAAE;MACtB,IAAI,CAAC1D,SAAK,GAAI,CAAC;MACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACd;IACA,IAAI,CAACP,KAAK,CAAC,KAAK,CAAC;IACjB,IAAI,CAACF,KAAK,CAACD,IAAI,CAACqE,IAAI,EAAErE,IAAI,CAAC;EAC7B;EAEA,IAAI,CAACG,SAAK,GAAI,CAAC;EAIf,MAAMmE,IAAI,GAAG7D,MAAM,oBAANA,MAAM,CAAE6D,IAAI;EACzB,IACEA,IAAI,IAAI,IAAI,KACXA,IAAI,KAAK,wBAAwB,IAChCA,IAAI,KAAK,wBAAwB,IACjCA,IAAI,KAAK,iBAAiB,IACzBA,IAAI,KAAK,oBAAoB,IAAI7D,MAAM,CAAC8D,MAAO,CAAC,EACnD;IACA,IAAI,CAACpE,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,KAAK,CAAC,IAAI,CAAC;EAClB;EAEA,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACwE,UAAU,EAAExE,IAAI,CAAC;AACnC;AAEO,SAASyE,iBAAiBA,CAAgBzE,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACsC,IAAI,EAAEtC,IAAI,CAAC;EAC3B,IAAIA,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAIH,IAAI,CAACsC,IAAI,EAAE;IACb,IAAI,CAACnC,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACc,cAAc,EAAEd,IAAI,CAAC;AACvC;AAEO,SAAS2E,gBAAgBA,CAAgB3E,IAAwB,EAAE;EACxE,IAAI,CAACC,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAElE,IAAI,EAAE,IAAI,CAAC;AAC7C;AAOO,SAASW,aAAaA,CAE3BX,IAAkE,EAClE;EAAA,IAAA4E,aAAA;EACA,IAAI,CAAC3E,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAElE,IAAI,CAAC;EACrC,KAAA4E,aAAA,GAAI5E,IAAI,CAAC6E,OAAO,aAAZD,aAAA,CAAcf,MAAM,EAAE;IACxB,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;IACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC6E,OAAO,EAAE7E,IAAI,CAAC;EACpC;EACA,IAAIA,IAAI,CAACsE,IAAI,KAAK,cAAc,EAAE;IAAA,IAAAQ,YAAA,EAAAC,gBAAA;IAChC,KAAAD,YAAA,GAAI9E,IAAI,CAACgF,MAAM,aAAXF,YAAA,CAAajB,MAAM,EAAE;MACvB,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,QAAQ,CAAC;MACnB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACgF,MAAM,EAAEhF,IAAI,CAAC;IACnC;IACA,KAAA+E,gBAAA,GAAI/E,IAAI,CAACiF,UAAU,aAAfF,gBAAA,CAAiBlB,MAAM,EAAE;MAC3B,IAAI,CAACnD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACZ,IAAI,CAAC,YAAY,CAAC;MACvB,IAAI,CAACY,KAAK,CAAC,CAAC;MACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAACiF,UAAU,EAAEjF,IAAI,CAAC;IACvC;EACF;EACA,IAAI,CAACU,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,EAAEtB,IAAI,CAAC;AAC7B;AAEO,SAASkF,SAASA,CAEvBlF,IAM2B,EAC3B;EAAA,IAAAmF,cAAA;EACA,MAAMC,IAAI,IAAAD,cAAA,GAAGnF,IAAI,CAACqF,QAAQ,qBAAbF,cAAA,CAAeC,IAAI;EAChC,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChB,IAAIA,IAAI,KAAK,MAAM,EAAE;MACnB,IAAI,CAACjF,SAAK,GAAI,CAAC;IACjB,CAAC,MAAM,IAAIiF,IAAI,KAAK,OAAO,EAAE;MAC3B,IAAI,CAACjF,SAAK,GAAI,CAAC;IACjB;EACF;AACF;AAEO,SAASiB,oBAAoBA,CAElCpB,IAAiD,EACjD;EACA,IAAI,CAACF,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,aAAa,CAACX,IAAI,CAAC;AAC1B;AAEA,SAASsF,YAAYA,CAAA,EAAgB;EACnC,IAAI,CAAC5E,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;AACd;AAEO,SAAS6E,uBAAuBA,CAErCvF,IAA+B,EAC/B;EAAA,IAAAwF,cAAA;EACA,IAAI,CAAC1F,IAAI,CAAC,WAAW,CAAC;EACtB,KAAA0F,cAAA,GAAIxF,IAAI,CAAC6E,OAAO,aAAZW,cAAA,CAAc3B,MAAM,EAAE;IACxB,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACY,KAAK,CAAC,CAAC;IACZ,IAAI,CAACoD,SAAS,CAAC9D,IAAI,CAAC6E,OAAO,EAAE7E,IAAI,CAAC;EACpC;EACA,IAAI,CAACU,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsB,IAAI,EAAEtB,IAAI,CAAC;AAC7B;AAEO,SAASyF,0BAA0BA,CAExCzF,IAAkC,EAClC;EACA,IAAI,CAAC0F,SAAS,CAAC1F,IAAI,CAAC2F,KAAK,EAAE3F,IAAI,EAAE;IAAE4F,SAAS,EAAEN;EAAa,CAAC,CAAC;AAC/D;AAEO,SAASO,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAAC/F,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASgG,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAAChG,IAAI,CAAC,OAAO,CAAC;AACpB;AAEO,SAASiG,sBAAsBA,CAEpC/F,IAA8B,EAC9B;EACA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACc,cAAc,EAAEd,IAAI,CAAC;AACvC;AAOO,SAASgG,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAAClG,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASmG,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAACnG,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEO,SAASoG,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACpG,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASqG,mBAAmBA,CAEjCnG,IAA2B,EAC3B;EACA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2D,SAAS,CAAC9D,IAAI,CAAC2F,KAAK,EAAE3F,IAAI,CAAC;EAChC,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAEO,SAASiG,oBAAoBA,CAElCpG,IAA4B,EAC5B;EACA,IAAI,CAACF,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACqG,QAAQ,EAAErG,IAAI,CAAC;AACjC;AAEO,SAASyB,SAASA,CAEvBzB,IAAsC,EACtC;EACA,IAAI,CAACF,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAElE,IAAI,CAAC;EACrC,IAAI,CAACU,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACsG,KAAK,EAAEtG,IAAI,CAAC;EAC5B,IAAI,CAACgB,SAAS,CAAC,CAAC;AAClB;AAEO,SAASuF,cAAcA,CAE5BvG,IAAsB,EACtBS,MAAc,EACd;EACA,IAAI,CAACN,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAID,MAAM,CAAC6D,IAAI,KAAK,yBAAyB,EAAE;IAC7C,IAAI,CAACkC,YAAY,IAAIC,mBAAY,CAACC,mBAAmB;EACvD,CAAC,MAAM,IAEL1G,IAAI,CAAC0E,QAAQ,EACb;IACA,IAAI,CAACvE,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACF,KAAK,CAACD,IAAI,CAACc,cAAc,EAAEd,IAAI,CAAC;AACvC;AAEO,SAAS2G,0BAA0BA,CAExC3G,IAAkC,EAC5B;EACN,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2D,SAAS,CAAC9D,IAAI,CAACoE,MAAM,EAAEpE,IAAI,EAAE,CAAC,CAAC,CAAC;EACrC,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAIO,SAASyG,aAAaA,CAAgB5G,IAAqB,EAAE;EAClE,IAAI,CAACkF,SAAS,CAAClF,IAAI,CAAC;EAEpB,IAAI,CAACF,IAAI,CAACE,IAAI,CAACsC,IAAI,CAAC;EAEpB,IAAItC,IAAI,CAAC6G,KAAK,EAAE;IACd,IAAI,CAAC5G,KAAK,CAACD,IAAI,CAAC6G,KAAK,EAAE7G,IAAI,CAAC;EAC9B;EAEA,IAAIA,IAAI,CAAC8B,OAAO,EAAE;IAChB,IAAI,CAACpB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC8B,OAAO,EAAE9B,IAAI,CAAC;EAChC;AACF;AAEO,SAAS2B,UAAUA,CAExB3B,IAAwC,EACxC;EACA,IAAI,CAACF,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACZ,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACY,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACkE,cAAc,EAAElE,IAAI,CAAC;EACrC,IAAIA,IAAI,CAAC8G,SAAS,EAAE;IAClB,IAAI,CAAC3G,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC8G,SAAS,EAAE9G,IAAI,CAAC;EAClC;EAEA,IAAIA,IAAI,CAAC+G,QAAQ,EAAE;IACjB,IAAI,CAACrG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACP,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAAC+G,QAAQ,EAAE/G,IAAI,CAAC;EACjC;EACA,IAAI,CAACgB,SAAS,CAAC,CAAC;AAClB;AAEO,SAASgG,oBAAoBA,CAElChH,IAA4B,EAC5B;EACA,IAAIA,IAAI,CAACiH,KAAK,EAAE;IACd,IAAI,CAAC9G,KAAK,CAAC,IAAI,CAAC;EAClB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;EAGA,MAAM+G,KAAK,GAAG,CACZ,GAAGlH,IAAI,CAACmH,UAAU,EAClB,IAAInH,IAAI,CAACoH,cAAc,IAAI,EAAE,CAAC,EAC9B,IAAIpH,IAAI,CAACqH,QAAQ,IAAI,EAAE,CAAC,EACxB,IAAIrH,IAAI,CAACsH,aAAa,IAAI,EAAE,CAAC,CAC9B;EAED,IAAIJ,KAAK,CAACrD,MAAM,EAAE;IAChB,IAAI,CAAClB,OAAO,CAAC,CAAC;IAEd,IAAI,CAACjC,KAAK,CAAC,CAAC;IAEZ,IAAI,CAACgF,SAAS,CAACwB,KAAK,EAAElH,IAAI,EAAE;MAC1BuH,WAAWA,CAACC,OAAO,EAAE;QACnB,IAAIA,OAAO,IAAI,CAACN,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC;MACpC,CAAC;MACDxE,MAAM,EAAE,IAAI;MACZ+E,SAAS,EAAE,IAAI;MACfC,QAAQ,EAAEA,CAAA,KAAM;QACd,IAAIR,KAAK,CAACrD,MAAM,KAAK,CAAC,IAAI7D,IAAI,CAAC2H,OAAO,EAAE;UACtC,IAAI,CAACxH,SAAK,GAAI,CAAC;UACf,IAAI,CAACO,KAAK,CAAC,CAAC;QACd;MACF;IACF,CAAC,CAAC;IAEF,IAAI,CAACA,KAAK,CAAC,CAAC;EACd;EAEA,IAAIV,IAAI,CAAC2H,OAAO,EAAE;IAChB,IAAI,CAACjF,MAAM,CAAC,CAAC;IACb,IAAI,CAACvC,KAAK,CAAC,KAAK,CAAC;IACjB,IAAI+G,KAAK,CAACrD,MAAM,EAAE;MAChB,IAAI,CAAClB,OAAO,CAAC,CAAC;IAChB;IACA,IAAI,CAACG,MAAM,CAAC,CAAC;EACf;EAEA,IAAI9C,IAAI,CAACiH,KAAK,EAAE;IACd,IAAI,CAAC9G,KAAK,CAAC,IAAI,CAAC;EAClB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;AACF;AAEO,SAASyH,sBAAsBA,CAEpC5H,IAA8B,EAC9B;EACA,IAAIA,IAAI,CAAC6H,MAAM,EAAE;IACf,IAAI,CAAC/H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACP,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;EACzB,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAIH,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAI,CAACH,IAAI,CAACuE,MAAM,EAAE;IAChB,IAAI,CAACpE,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAAS8H,sBAAsBA,CAEpC9H,IAA8B,EAC9B;EACA,IAAIA,IAAI,CAAC6H,MAAM,EAAE;IACf,IAAI,CAAC/H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAAS+H,iBAAiBA,CAAgB/H,IAAyB,EAAE;EAC1E,IAAIA,IAAI,CAAC6H,MAAM,EAAE;IACf,IAAI,CAAC/H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACwE,SAAS,CAAClF,IAAI,CAAC;EACpB,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAIH,IAAI,CAACa,EAAE,EAAE;IACX,IAAI,CAACZ,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;IACzB,IAAI,CAACG,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACgI,GAAG,EAAEhI,IAAI,CAAC;EAC1B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAASiI,kBAAkBA,CAAgBjI,IAA0B,EAAE;EAC5E,IAAIA,IAAI,CAACkI,KAAK,EAAE;IACd,IAAI,CAACpI,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAIV,IAAI,CAAC6H,MAAM,EAAE;IACf,IAAI,CAAC/H,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACY,KAAK,CAAC,CAAC;EACd;EACA,IAAIV,IAAI,CAACoF,IAAI,KAAK,KAAK,IAAIpF,IAAI,CAACoF,IAAI,KAAK,KAAK,EAAE;IAC9C,IAAI,CAACtF,IAAI,CAACE,IAAI,CAACoF,IAAI,CAAC;IACpB,IAAI,CAAC1E,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACwE,SAAS,CAAClF,IAAI,CAAC;EACpB,IAAI,CAACC,KAAK,CAACD,IAAI,CAACgI,GAAG,EAAEhI,IAAI,CAAC;EAC1B,IAAIA,IAAI,CAAC0E,QAAQ,EAAE,IAAI,CAACvE,SAAK,GAAI,CAAC;EAClC,IAAI,CAACH,IAAI,CAACuE,MAAM,EAAE;IAChB,IAAI,CAACpE,SAAK,GAAI,CAAC;IACf,IAAI,CAACO,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACT,KAAK,CAACD,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAASmI,wBAAwBA,CAEtCnI,IAAgC,EAChC;EACA,IAAI,CAACG,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACF,KAAK,CAACD,IAAI,CAACqG,QAAQ,EAAErG,IAAI,CAAC;AACjC;AAEO,SAASoI,uBAAuBA,CAErCpI,IAA+B,EAC/B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACqI,aAAa,EAAErI,IAAI,CAAC;EACpC,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAACa,EAAE,EAAEb,IAAI,CAAC;AAC3B;AAEO,SAASsI,oBAAoBA,CAAA,EAAgB;EAClD,IAAI,CAACxI,IAAI,CAAC,QAAQ,CAAC;AACrB;AAEA,SAASyI,WAAWA,CAAA,EAAgB;EAClC,IAAI,CAAC7H,KAAK,CAAC,CAAC;EACZ,IAAI,CAACP,SAAK,IAAI,CAAC;EACf,IAAI,CAACO,KAAK,CAAC,CAAC;AACd;AAEO,SAAS8H,mBAAmBA,CAEjCxI,IAA2B,EAC3B;EACA,IAAI,CAAC0F,SAAS,CAAC1F,IAAI,CAAC2F,KAAK,EAAE3F,IAAI,EAAE;IAAE4F,SAAS,EAAE2C;EAAY,CAAC,CAAC;AAC9D;AAEO,SAASE,kBAAkBA,CAAgBzI,IAA0B,EAAE;EAC5E,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC0I,UAAU,EAAE1I,IAAI,CAAC;EACjC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACc,cAAc,EAAEd,IAAI,CAAC;EACrC,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAEO,SAASwI,QAAQA,CAAgB3I,IAAgB,EAAE;EACxD,IAAIA,IAAI,CAACoF,IAAI,KAAK,MAAM,EAAE;IACxB,IAAI,CAACjF,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,GAAI,CAAC;EACjB;AACF;AAEO,SAASyI,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAAC9I,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAAS+I,iBAAiBA,CAAgB7I,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC8I,UAAU,EAAE9I,IAAI,EAAE,IAAI,CAAC;EACvC,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC+I,SAAS,EAAE/I,IAAI,CAAC;EAChC,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS6I,yBAAyBA,CAEvChJ,IAAiC,EACjC;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC8I,UAAU,EAAE9I,IAAI,CAAC;EACjC,IAAIA,IAAI,CAAC0E,QAAQ,EAAE;IACjB,IAAI,CAACvE,KAAK,CAAC,IAAI,CAAC;EAClB;EACA,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC+I,SAAS,EAAE/I,IAAI,CAAC;EAChC,IAAI,CAACG,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/jsx.js b/node_modules/@babel/generator/lib/generators/jsx.js index 2650ec1e3..4b8dd7a76 100644 --- a/node_modules/@babel/generator/lib/generators/jsx.js +++ b/node_modules/@babel/generator/lib/generators/jsx.js @@ -19,41 +19,41 @@ exports.JSXSpreadAttribute = JSXSpreadAttribute; exports.JSXSpreadChild = JSXSpreadChild; exports.JSXText = JSXText; function JSXAttribute(node) { - this.print(node.name); + this.print(node.name, node); if (node.value) { this.tokenChar(61); - this.print(node.value); + this.print(node.value, node); } } function JSXIdentifier(node) { this.word(node.name); } function JSXNamespacedName(node) { - this.print(node.namespace); + this.print(node.namespace, node); this.tokenChar(58); - this.print(node.name); + this.print(node.name, node); } function JSXMemberExpression(node) { - this.print(node.object); + this.print(node.object, node); this.tokenChar(46); - this.print(node.property); + this.print(node.property, node); } function JSXSpreadAttribute(node) { this.tokenChar(123); this.token("..."); - this.print(node.argument); - this.rightBrace(node); + this.print(node.argument, node); + this.tokenChar(125); } function JSXExpressionContainer(node) { this.tokenChar(123); - this.print(node.expression); - this.rightBrace(node); + this.print(node.expression, node); + this.tokenChar(125); } function JSXSpreadChild(node) { this.tokenChar(123); this.token("..."); - this.print(node.expression); - this.rightBrace(node); + this.print(node.expression, node); + this.tokenChar(125); } function JSXText(node) { const raw = this.getPossibleRaw(node); @@ -65,54 +65,51 @@ function JSXText(node) { } function JSXElement(node) { const open = node.openingElement; - this.print(open); + this.print(open, node); if (open.selfClosing) return; this.indent(); for (const child of node.children) { - this.print(child); + this.print(child, node); } this.dedent(); - this.print(node.closingElement); + this.print(node.closingElement, node); } function spaceSeparator() { this.space(); } function JSXOpeningElement(node) { this.tokenChar(60); - this.print(node.name); - { - if (node.typeArguments) { - this.print(node.typeArguments); - } - this.print(node.typeParameters); - } + this.print(node.name, node); + this.print(node.typeParameters, node); if (node.attributes.length > 0) { this.space(); - this.printJoin(node.attributes, undefined, undefined, spaceSeparator); + this.printJoin(node.attributes, node, { + separator: spaceSeparator + }); } if (node.selfClosing) { this.space(); - this.tokenChar(47); + this.token("/>"); + } else { + this.tokenChar(62); } - this.tokenChar(62); } function JSXClosingElement(node) { - this.tokenChar(60); - this.tokenChar(47); - this.print(node.name); + this.token(" 0) {\n this.space();\n this.printJoin(node.attributes, undefined, undefined, spaceSeparator);\n }\n if (node.selfClosing) {\n this.space();\n this.token(\"/\");\n }\n this.token(\">\");\n}\n\nexport function JSXClosingElement(this: Printer, node: t.JSXClosingElement) {\n this.token(\"<\");\n this.token(\"/\");\n this.print(node.name);\n this.token(\">\");\n}\n\nexport function JSXEmptyExpression(this: Printer) {\n // This node is empty, so forcefully print its inner comments.\n this.printInnerComments();\n}\n\nexport function JSXFragment(this: Printer, node: t.JSXFragment) {\n this.print(node.openingFragment);\n\n this.indent();\n for (const child of node.children) {\n this.print(child);\n }\n this.dedent();\n\n this.print(node.closingFragment);\n}\n\nexport function JSXOpeningFragment(this: Printer) {\n this.token(\"<\");\n this.token(\">\");\n}\n\nexport function JSXClosingFragment(this: Printer) {\n this.token(\"\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGO,SAASA,YAAYA,CAAgBC,IAAoB,EAAE;EAChE,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,IAAI,CAAC;EACrB,IAAIF,IAAI,CAACG,KAAK,EAAE;IACd,IAAI,CAACC,SAAK,GAAI,CAAC;IACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACG,KAAK,CAAC;EACxB;AACF;AAEO,SAASE,aAAaA,CAAgBL,IAAqB,EAAE;EAClE,IAAI,CAACM,IAAI,CAACN,IAAI,CAACE,IAAI,CAAC;AACtB;AAEO,SAASK,iBAAiBA,CAAgBP,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACQ,SAAS,CAAC;EAC1B,IAAI,CAACJ,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,CAAC;AACvB;AAEO,SAASO,mBAAmBA,CAEjCT,IAA2B,EAC3B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACU,MAAM,CAAC;EACvB,IAAI,CAACN,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACW,QAAQ,CAAC;AAC3B;AAEO,SAASC,kBAAkBA,CAAgBZ,IAA0B,EAAE;EAC5E,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACA,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACH,KAAK,CAACD,IAAI,CAACa,QAAQ,CAAC;EACzB,IAAI,CAACC,UAAU,CAACd,IAAI,CAAC;AACvB;AAEO,SAASe,sBAAsBA,CAEpCf,IAA8B,EAC9B;EACA,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACgB,UAAU,CAAC;EAC3B,IAAI,CAACF,UAAU,CAACd,IAAI,CAAC;AACvB;AAEO,SAASiB,cAAcA,CAAgBjB,IAAsB,EAAE;EACpE,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACA,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACH,KAAK,CAACD,IAAI,CAACgB,UAAU,CAAC;EAC3B,IAAI,CAACF,UAAU,CAACd,IAAI,CAAC;AACvB;AAEO,SAASkB,OAAOA,CAAgBlB,IAAe,EAAE;EACtD,MAAMmB,GAAG,GAAG,IAAI,CAACC,cAAc,CAACpB,IAAI,CAAC;EAErC,IAAImB,GAAG,KAAKE,SAAS,EAAE;IACrB,IAAI,CAACjB,KAAK,CAACe,GAAG,EAAE,IAAI,CAAC;EACvB,CAAC,MAAM;IACL,IAAI,CAACf,KAAK,CAACJ,IAAI,CAACG,KAAK,EAAE,IAAI,CAAC;EAC9B;AACF;AAEO,SAASmB,UAAUA,CAAgBtB,IAAkB,EAAE;EAC5D,MAAMuB,IAAI,GAAGvB,IAAI,CAACwB,cAAc;EAChC,IAAI,CAACvB,KAAK,CAACsB,IAAI,CAAC;EAChB,IAAIA,IAAI,CAACE,WAAW,EAAE;EAEtB,IAAI,CAACC,MAAM,CAAC,CAAC;EACb,KAAK,MAAMC,KAAK,IAAI3B,IAAI,CAAC4B,QAAQ,EAAE;IACjC,IAAI,CAAC3B,KAAK,CAAC0B,KAAK,CAAC;EACnB;EACA,IAAI,CAACE,MAAM,CAAC,CAAC;EAEb,IAAI,CAAC5B,KAAK,CAACD,IAAI,CAAC8B,cAAc,CAAC;AACjC;AAEA,SAASC,cAAcA,CAAA,EAAgB;EACrC,IAAI,CAACC,KAAK,CAAC,CAAC;AACd;AAEO,SAASC,iBAAiBA,CAAgBjC,IAAyB,EAAE;EAC1E,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,CAAC;EAId;IACL,IAAIF,IAAI,CAACkC,aAAa,EAAE;MACtB,IAAI,CAACjC,KAAK,CAACD,IAAI,CAACkC,aAAa,CAAC;IAChC;IAEA,IAAI,CAACjC,KAAK,CAACD,IAAI,CAACmC,cAAc,CAAC;EACjC;EAEA,IAAInC,IAAI,CAACoC,UAAU,CAACC,MAAM,GAAG,CAAC,EAAE;IAC9B,IAAI,CAACL,KAAK,CAAC,CAAC;IACZ,IAAI,CAACM,SAAS,CAACtC,IAAI,CAACoC,UAAU,EAAEf,SAAS,EAAEA,SAAS,EAAEU,cAAc,CAAC;EACvE;EACA,IAAI/B,IAAI,CAACyB,WAAW,EAAE;IACpB,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAAC5B,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmC,iBAAiBA,CAAgBvC,IAAyB,EAAE;EAC1E,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,CAAC;EACrB,IAAI,CAACE,SAAK,GAAI,CAAC;AACjB;AAEO,SAASoC,kBAAkBA,CAAA,EAAgB;EAEhD,IAAI,CAACC,kBAAkB,CAAC,CAAC;AAC3B;AAEO,SAASC,WAAWA,CAAgB1C,IAAmB,EAAE;EAC9D,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC2C,eAAe,CAAC;EAEhC,IAAI,CAACjB,MAAM,CAAC,CAAC;EACb,KAAK,MAAMC,KAAK,IAAI3B,IAAI,CAAC4B,QAAQ,EAAE;IACjC,IAAI,CAAC3B,KAAK,CAAC0B,KAAK,CAAC;EACnB;EACA,IAAI,CAACE,MAAM,CAAC,CAAC;EAEb,IAAI,CAAC5B,KAAK,CAACD,IAAI,CAAC4C,eAAe,CAAC;AAClC;AAEO,SAASC,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACzC,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS0C,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAAC1C,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["JSXAttribute","node","print","name","value","token","JSXIdentifier","word","JSXNamespacedName","namespace","JSXMemberExpression","object","property","JSXSpreadAttribute","argument","JSXExpressionContainer","expression","JSXSpreadChild","JSXText","raw","getPossibleRaw","undefined","JSXElement","open","openingElement","selfClosing","indent","child","children","dedent","closingElement","spaceSeparator","space","JSXOpeningElement","typeParameters","attributes","length","printJoin","separator","JSXClosingElement","JSXEmptyExpression","printInnerComments","JSXFragment","openingFragment","closingFragment","JSXOpeningFragment","JSXClosingFragment"],"sources":["../../src/generators/jsx.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function JSXAttribute(this: Printer, node: t.JSXAttribute) {\n this.print(node.name, node);\n if (node.value) {\n this.token(\"=\");\n this.print(node.value, node);\n }\n}\n\nexport function JSXIdentifier(this: Printer, node: t.JSXIdentifier) {\n this.word(node.name);\n}\n\nexport function JSXNamespacedName(this: Printer, node: t.JSXNamespacedName) {\n this.print(node.namespace, node);\n this.token(\":\");\n this.print(node.name, node);\n}\n\nexport function JSXMemberExpression(\n this: Printer,\n node: t.JSXMemberExpression,\n) {\n this.print(node.object, node);\n this.token(\".\");\n this.print(node.property, node);\n}\n\nexport function JSXSpreadAttribute(this: Printer, node: t.JSXSpreadAttribute) {\n this.token(\"{\");\n this.token(\"...\");\n this.print(node.argument, node);\n this.token(\"}\");\n}\n\nexport function JSXExpressionContainer(\n this: Printer,\n node: t.JSXExpressionContainer,\n) {\n this.token(\"{\");\n this.print(node.expression, node);\n this.token(\"}\");\n}\n\nexport function JSXSpreadChild(this: Printer, node: t.JSXSpreadChild) {\n this.token(\"{\");\n this.token(\"...\");\n this.print(node.expression, node);\n this.token(\"}\");\n}\n\nexport function JSXText(this: Printer, node: t.JSXText) {\n const raw = this.getPossibleRaw(node);\n\n if (raw !== undefined) {\n this.token(raw, true);\n } else {\n this.token(node.value, true);\n }\n}\n\nexport function JSXElement(this: Printer, node: t.JSXElement) {\n const open = node.openingElement;\n this.print(open, node);\n if (open.selfClosing) return;\n\n this.indent();\n for (const child of node.children) {\n this.print(child, node);\n }\n this.dedent();\n\n this.print(node.closingElement, node);\n}\n\nfunction spaceSeparator(this: Printer) {\n this.space();\n}\n\nexport function JSXOpeningElement(this: Printer, node: t.JSXOpeningElement) {\n this.token(\"<\");\n this.print(node.name, node);\n this.print(node.typeParameters, node); // TS\n if (node.attributes.length > 0) {\n this.space();\n this.printJoin(node.attributes, node, { separator: spaceSeparator });\n }\n if (node.selfClosing) {\n this.space();\n this.token(\"/>\");\n } else {\n this.token(\">\");\n }\n}\n\nexport function JSXClosingElement(this: Printer, node: t.JSXClosingElement) {\n this.token(\"\");\n}\n\nexport function JSXEmptyExpression(this: Printer) {\n // This node is empty, so forcefully print its inner comments.\n this.printInnerComments();\n}\n\nexport function JSXFragment(this: Printer, node: t.JSXFragment) {\n this.print(node.openingFragment, node);\n\n this.indent();\n for (const child of node.children) {\n this.print(child, node);\n }\n this.dedent();\n\n this.print(node.closingFragment, node);\n}\n\nexport function JSXOpeningFragment(this: Printer) {\n this.token(\"<\");\n this.token(\">\");\n}\n\nexport function JSXClosingFragment(this: Printer) {\n this.token(\"\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGO,SAASA,YAAYA,CAAgBC,IAAoB,EAAE;EAChE,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,IAAI,EAAEF,IAAI,CAAC;EAC3B,IAAIA,IAAI,CAACG,KAAK,EAAE;IACd,IAAI,CAACC,SAAK,GAAI,CAAC;IACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACG,KAAK,EAAEH,IAAI,CAAC;EAC9B;AACF;AAEO,SAASK,aAAaA,CAAgBL,IAAqB,EAAE;EAClE,IAAI,CAACM,IAAI,CAACN,IAAI,CAACE,IAAI,CAAC;AACtB;AAEO,SAASK,iBAAiBA,CAAgBP,IAAyB,EAAE;EAC1E,IAAI,CAACC,KAAK,CAACD,IAAI,CAACQ,SAAS,EAAER,IAAI,CAAC;EAChC,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,EAAEF,IAAI,CAAC;AAC7B;AAEO,SAASS,mBAAmBA,CAEjCT,IAA2B,EAC3B;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACU,MAAM,EAAEV,IAAI,CAAC;EAC7B,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACW,QAAQ,EAAEX,IAAI,CAAC;AACjC;AAEO,SAASY,kBAAkBA,CAAgBZ,IAA0B,EAAE;EAC5E,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACA,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACH,KAAK,CAACD,IAAI,CAACa,QAAQ,EAAEb,IAAI,CAAC;EAC/B,IAAI,CAACI,SAAK,IAAI,CAAC;AACjB;AAEO,SAASU,sBAAsBA,CAEpCd,IAA8B,EAC9B;EACA,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACe,UAAU,EAAEf,IAAI,CAAC;EACjC,IAAI,CAACI,SAAK,IAAI,CAAC;AACjB;AAEO,SAASY,cAAcA,CAAgBhB,IAAsB,EAAE;EACpE,IAAI,CAACI,SAAK,IAAI,CAAC;EACf,IAAI,CAACA,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACH,KAAK,CAACD,IAAI,CAACe,UAAU,EAAEf,IAAI,CAAC;EACjC,IAAI,CAACI,SAAK,IAAI,CAAC;AACjB;AAEO,SAASa,OAAOA,CAAgBjB,IAAe,EAAE;EACtD,MAAMkB,GAAG,GAAG,IAAI,CAACC,cAAc,CAACnB,IAAI,CAAC;EAErC,IAAIkB,GAAG,KAAKE,SAAS,EAAE;IACrB,IAAI,CAAChB,KAAK,CAACc,GAAG,EAAE,IAAI,CAAC;EACvB,CAAC,MAAM;IACL,IAAI,CAACd,KAAK,CAACJ,IAAI,CAACG,KAAK,EAAE,IAAI,CAAC;EAC9B;AACF;AAEO,SAASkB,UAAUA,CAAgBrB,IAAkB,EAAE;EAC5D,MAAMsB,IAAI,GAAGtB,IAAI,CAACuB,cAAc;EAChC,IAAI,CAACtB,KAAK,CAACqB,IAAI,EAAEtB,IAAI,CAAC;EACtB,IAAIsB,IAAI,CAACE,WAAW,EAAE;EAEtB,IAAI,CAACC,MAAM,CAAC,CAAC;EACb,KAAK,MAAMC,KAAK,IAAI1B,IAAI,CAAC2B,QAAQ,EAAE;IACjC,IAAI,CAAC1B,KAAK,CAACyB,KAAK,EAAE1B,IAAI,CAAC;EACzB;EACA,IAAI,CAAC4B,MAAM,CAAC,CAAC;EAEb,IAAI,CAAC3B,KAAK,CAACD,IAAI,CAAC6B,cAAc,EAAE7B,IAAI,CAAC;AACvC;AAEA,SAAS8B,cAAcA,CAAA,EAAgB;EACrC,IAAI,CAACC,KAAK,CAAC,CAAC;AACd;AAEO,SAASC,iBAAiBA,CAAgBhC,IAAyB,EAAE;EAC1E,IAAI,CAACI,SAAK,GAAI,CAAC;EACf,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,EAAEF,IAAI,CAAC;EAC3B,IAAI,CAACC,KAAK,CAACD,IAAI,CAACiC,cAAc,EAAEjC,IAAI,CAAC;EACrC,IAAIA,IAAI,CAACkC,UAAU,CAACC,MAAM,GAAG,CAAC,EAAE;IAC9B,IAAI,CAACJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACK,SAAS,CAACpC,IAAI,CAACkC,UAAU,EAAElC,IAAI,EAAE;MAAEqC,SAAS,EAAEP;IAAe,CAAC,CAAC;EACtE;EACA,IAAI9B,IAAI,CAACwB,WAAW,EAAE;IACpB,IAAI,CAACO,KAAK,CAAC,CAAC;IACZ,IAAI,CAAC3B,KAAK,CAAC,IAAI,CAAC;EAClB,CAAC,MAAM;IACL,IAAI,CAACA,SAAK,GAAI,CAAC;EACjB;AACF;AAEO,SAASkC,iBAAiBA,CAAgBtC,IAAyB,EAAE;EAC1E,IAAI,CAACI,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACH,KAAK,CAACD,IAAI,CAACE,IAAI,EAAEF,IAAI,CAAC;EAC3B,IAAI,CAACI,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmC,kBAAkBA,CAAA,EAAgB;EAEhD,IAAI,CAACC,kBAAkB,CAAC,CAAC;AAC3B;AAEO,SAASC,WAAWA,CAAgBzC,IAAmB,EAAE;EAC9D,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC0C,eAAe,EAAE1C,IAAI,CAAC;EAEtC,IAAI,CAACyB,MAAM,CAAC,CAAC;EACb,KAAK,MAAMC,KAAK,IAAI1B,IAAI,CAAC2B,QAAQ,EAAE;IACjC,IAAI,CAAC1B,KAAK,CAACyB,KAAK,EAAE1B,IAAI,CAAC;EACzB;EACA,IAAI,CAAC4B,MAAM,CAAC,CAAC;EAEb,IAAI,CAAC3B,KAAK,CAACD,IAAI,CAAC2C,eAAe,EAAE3C,IAAI,CAAC;AACxC;AAEO,SAAS4C,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACxC,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAASyC,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACzC,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/methods.js b/node_modules/@babel/generator/lib/generators/methods.js index eabb16d1a..14a573a51 100644 --- a/node_modules/@babel/generator/lib/generators/methods.js +++ b/node_modules/@babel/generator/lib/generators/methods.js @@ -11,45 +11,43 @@ exports._param = _param; exports._parameters = _parameters; exports._params = _params; exports._predicate = _predicate; -exports._shouldPrintArrowParamsParens = _shouldPrintArrowParamsParens; var _t = require("@babel/types"); var _index = require("../node/index.js"); const { isIdentifier } = _t; function _params(node, idNode, parentNode) { - this.print(node.typeParameters); + this.print(node.typeParameters, node); const nameInfo = _getFuncIdName.call(this, idNode, parentNode); if (nameInfo) { this.sourceIdentifierName(nameInfo.name, nameInfo.pos); } this.tokenChar(40); - this._parameters(node.params, ")"); + this._parameters(node.params, node); + this.tokenChar(41); const noLineTerminator = node.type === "ArrowFunctionExpression"; - this.print(node.returnType, noLineTerminator); + this.print(node.returnType, node, noLineTerminator); this._noLineTerminator = noLineTerminator; } -function _parameters(parameters, endToken) { - const exit = this.enterDelimited(); - const trailingComma = this.shouldPrintTrailingComma(endToken); +function _parameters(parameters, parent) { + const exit = this.enterForStatementInit(false); const paramLength = parameters.length; for (let i = 0; i < paramLength; i++) { - this._param(parameters[i]); - if (trailingComma || i < paramLength - 1) { - this.token(",", null, i); + this._param(parameters[i], parent); + if (i < parameters.length - 1) { + this.tokenChar(44); this.space(); } } - this.token(endToken); exit(); } -function _param(parameter) { - this.printJoin(parameter.decorators); - this.print(parameter); +function _param(parameter, parent) { + this.printJoin(parameter.decorators, parameter); + this.print(parameter, parent); if (parameter.optional) { this.tokenChar(63); } - this.print(parameter.typeAnnotation); + this.print(parameter.typeAnnotation, parameter); } function _methodHead(node) { const kind = node.kind; @@ -69,10 +67,10 @@ function _methodHead(node) { } if (node.computed) { this.tokenChar(91); - this.print(key); + this.print(key, node); this.tokenChar(93); } else { - this.print(key); + this.print(key, node); } if (node.optional) { this.tokenChar(63); @@ -85,27 +83,23 @@ function _predicate(node, noLineTerminatorAfter) { this.tokenChar(58); } this.space(); - this.print(node.predicate, noLineTerminatorAfter); + this.print(node.predicate, node, noLineTerminatorAfter); } } function _functionHead(node, parent) { if (node.async) { this.word("async"); - if (!this.format.preserveFormat) { - this._endsWithInnerRaw = false; - } + this._endsWithInnerRaw = false; this.space(); } this.word("function"); if (node.generator) { - if (!this.format.preserveFormat) { - this._endsWithInnerRaw = false; - } + this._endsWithInnerRaw = false; this.tokenChar(42); } this.space(); if (node.id) { - this.print(node.id); + this.print(node.id, node); } this._params(node, node.id, parent); if (node.type !== "TSDeclareFunction") { @@ -115,17 +109,18 @@ function _functionHead(node, parent) { function FunctionExpression(node, parent) { this._functionHead(node, parent); this.space(); - this.print(node.body); + this.print(node.body, node); } function ArrowFunctionExpression(node, parent) { if (node.async) { this.word("async", true); this.space(); } - if (this._shouldPrintArrowParamsParens(node)) { - this._params(node, undefined, parent); + let firstParam; + if (!this.format.retainLines && node.params.length === 1 && isIdentifier(firstParam = node.params[0]) && !hasTypesOrComments(node, firstParam)) { + this.print(firstParam, node, true); } else { - this.print(node.params[0], true); + this._params(node, undefined, parent); } this._predicate(node, true); this.space(); @@ -133,27 +128,11 @@ function ArrowFunctionExpression(node, parent) { this.token("=>"); this.space(); this.tokenContext |= _index.TokenContext.arrowBody; - this.print(node.body); + this.print(node.body, node); } -function _shouldPrintArrowParamsParens(node) { - var _firstParam$leadingCo, _firstParam$trailingC; - if (node.params.length !== 1) return true; - if (node.typeParameters || node.returnType || node.predicate) { - return true; - } - const firstParam = node.params[0]; - if (!isIdentifier(firstParam) || firstParam.typeAnnotation || firstParam.optional || (_firstParam$leadingCo = firstParam.leadingComments) != null && _firstParam$leadingCo.length || (_firstParam$trailingC = firstParam.trailingComments) != null && _firstParam$trailingC.length) { - return true; - } - if (this.tokenMap) { - if (node.loc == null) return true; - if (this.tokenMap.findMatching(node, "(") !== null) return true; - const arrowToken = this.tokenMap.findMatching(node, "=>"); - if ((arrowToken == null ? void 0 : arrowToken.loc) == null) return true; - return arrowToken.loc.start.line !== node.loc.start.line; - } - if (this.format.retainLines) return true; - return false; +function hasTypesOrComments(node, param) { + var _param$leadingComment, _param$trailingCommen; + return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length); } function _getFuncIdName(idNode, parent) { let id = idNode; diff --git a/node_modules/@babel/generator/lib/generators/methods.js.map b/node_modules/@babel/generator/lib/generators/methods.js.map index a0f221fe6..a8c7c1f54 100644 --- a/node_modules/@babel/generator/lib/generators/methods.js.map +++ b/node_modules/@babel/generator/lib/generators/methods.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_index","isIdentifier","_params","node","idNode","parentNode","print","typeParameters","nameInfo","_getFuncIdName","call","sourceIdentifierName","name","pos","token","_parameters","params","noLineTerminator","type","returnType","_noLineTerminator","parameters","endToken","exit","enterDelimited","trailingComma","shouldPrintTrailingComma","paramLength","length","i","_param","space","parameter","printJoin","decorators","optional","typeAnnotation","_methodHead","kind","key","word","async","generator","computed","undefined","_predicate","noLineTerminatorAfter","predicate","_functionHead","parent","format","preserveFormat","_endsWithInnerRaw","id","FunctionExpression","body","ArrowFunctionExpression","_shouldPrintArrowParamsParens","printInnerComments","tokenContext","TokenContext","arrowBody","_firstParam$leadingCo","_firstParam$trailingC","firstParam","leadingComments","trailingComments","tokenMap","loc","findMatching","arrowToken","start","line","retainLines","parentType","left","_id$loc","_id$loc2","identifierName","_id$loc3","_id$loc4","value"],"sources":["../../src/generators/methods.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\nimport { isIdentifier, type ParentMaps } from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\ntype ParentsOf = ParentMaps[T[\"type\"]];\n\nexport function _params(\n this: Printer,\n node: t.Function | t.TSDeclareMethod | t.TSDeclareFunction,\n idNode: t.Expression | t.PrivateName,\n parentNode: ParentsOf,\n) {\n this.print(node.typeParameters);\n\n const nameInfo = _getFuncIdName.call(this, idNode, parentNode);\n if (nameInfo) {\n this.sourceIdentifierName(nameInfo.name, nameInfo.pos);\n }\n\n this.token(\"(\");\n this._parameters(node.params, \")\");\n\n const noLineTerminator = node.type === \"ArrowFunctionExpression\";\n this.print(node.returnType, noLineTerminator);\n\n this._noLineTerminator = noLineTerminator;\n}\n\nexport function _parameters(\n this: Printer,\n parameters: t.Function[\"params\"],\n endToken: string,\n) {\n const exit = this.enterDelimited();\n\n const trailingComma = this.shouldPrintTrailingComma(endToken);\n\n const paramLength = parameters.length;\n for (let i = 0; i < paramLength; i++) {\n this._param(parameters[i]);\n\n if (trailingComma || i < paramLength - 1) {\n this.token(\",\", null, i);\n this.space();\n }\n }\n\n this.token(endToken);\n exit();\n}\n\nexport function _param(\n this: Printer,\n parameter: t.Identifier | t.RestElement | t.Pattern | t.TSParameterProperty,\n) {\n // @ts-expect-error decorators is not in VoidPattern\n this.printJoin(parameter.decorators);\n this.print(parameter);\n if (\n // @ts-expect-error optional is not in TSParameterProperty\n parameter.optional\n ) {\n this.token(\"?\"); // TS / flow\n }\n\n this.print(\n // @ts-expect-error typeAnnotation is not in TSParameterProperty\n parameter.typeAnnotation,\n ); // TS / flow\n}\n\nexport function _methodHead(this: Printer, node: t.Method | t.TSDeclareMethod) {\n const kind = node.kind;\n const key = node.key;\n\n if (kind === \"get\" || kind === \"set\") {\n this.word(kind);\n this.space();\n }\n\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n\n if (\n kind === \"method\" ||\n // @ts-expect-error Fixme: kind: \"init\" is not defined\n kind === \"init\"\n ) {\n if (node.generator) {\n this.token(\"*\");\n }\n }\n\n if (node.computed) {\n this.token(\"[\");\n this.print(key);\n this.token(\"]\");\n } else {\n this.print(key);\n }\n\n if (\n // @ts-expect-error optional is not in ObjectMethod\n node.optional\n ) {\n // TS\n this.token(\"?\");\n }\n\n this._params(\n node,\n node.computed && node.key.type !== \"StringLiteral\" ? undefined : node.key,\n undefined,\n );\n}\n\nexport function _predicate(\n this: Printer,\n node:\n | t.FunctionDeclaration\n | t.FunctionExpression\n | t.ArrowFunctionExpression,\n noLineTerminatorAfter?: boolean,\n) {\n if (node.predicate) {\n if (!node.returnType) {\n this.token(\":\");\n }\n this.space();\n this.print(node.predicate, noLineTerminatorAfter);\n }\n}\n\nexport function _functionHead(\n this: Printer,\n node: t.FunctionDeclaration | t.FunctionExpression | t.TSDeclareFunction,\n parent: ParentsOf,\n) {\n if (node.async) {\n this.word(\"async\");\n if (!this.format.preserveFormat) {\n // We prevent inner comments from being printed here,\n // so that they are always consistently printed in the\n // same place regardless of the function type.\n this._endsWithInnerRaw = false;\n }\n this.space();\n }\n this.word(\"function\");\n if (node.generator) {\n if (!this.format.preserveFormat) {\n // We prevent inner comments from being printed here,\n // so that they are always consistently printed in the\n // same place regardless of the function type.\n this._endsWithInnerRaw = false;\n }\n this.token(\"*\");\n }\n\n this.space();\n if (node.id) {\n this.print(node.id);\n }\n\n this._params(node, node.id, parent);\n if (node.type !== \"TSDeclareFunction\") {\n this._predicate(node);\n }\n}\n\nexport function FunctionExpression(\n this: Printer,\n node: t.FunctionExpression,\n parent: ParentsOf,\n) {\n this._functionHead(node, parent);\n this.space();\n this.print(node.body);\n}\n\nexport { FunctionExpression as FunctionDeclaration };\n\nexport function ArrowFunctionExpression(\n this: Printer,\n node: t.ArrowFunctionExpression,\n parent: ParentsOf,\n) {\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n\n if (this._shouldPrintArrowParamsParens(node)) {\n this._params(node, undefined, parent);\n } else {\n this.print(node.params[0], true);\n }\n\n this._predicate(node, true);\n this.space();\n // When printing (x)/*1*/=>{}, we remove the parentheses\n // and thus there aren't two contiguous inner tokens.\n // We forcefully print inner comments here.\n this.printInnerComments();\n this.token(\"=>\");\n\n this.space();\n\n this.tokenContext |= TokenContext.arrowBody;\n this.print(node.body);\n}\n\n// Try to avoid printing parens in simple cases, but only if we're pretty\n// sure that they aren't needed by type annotations or potential newlines.\nexport function _shouldPrintArrowParamsParens(\n this: Printer,\n node: t.ArrowFunctionExpression,\n): boolean {\n if (node.params.length !== 1) return true;\n\n if (node.typeParameters || node.returnType || node.predicate) {\n return true;\n }\n\n const firstParam = node.params[0];\n if (\n !isIdentifier(firstParam) ||\n firstParam.typeAnnotation ||\n firstParam.optional ||\n // Flow does not support `foo /*: string*/ => {};`\n firstParam.leadingComments?.length ||\n firstParam.trailingComments?.length\n ) {\n return true;\n }\n\n if (this.tokenMap) {\n if (node.loc == null) return true;\n if (this.tokenMap.findMatching(node, \"(\") !== null) return true;\n const arrowToken = this.tokenMap.findMatching(node, \"=>\");\n if (arrowToken?.loc == null) return true;\n return arrowToken.loc.start.line !== node.loc.start.line;\n }\n\n if (this.format.retainLines) return true;\n\n return false;\n}\n\nfunction _getFuncIdName(\n this: Printer,\n idNode: t.Expression | t.PrivateName,\n parent: ParentsOf,\n) {\n let id: t.Expression | t.PrivateName | t.LVal | t.VoidPattern = idNode;\n\n if (!id && parent) {\n const parentType = parent.type;\n\n if (parentType === \"VariableDeclarator\") {\n id = parent.id;\n } else if (\n parentType === \"AssignmentExpression\" ||\n parentType === \"AssignmentPattern\"\n ) {\n id = parent.left;\n } else if (\n parentType === \"ObjectProperty\" ||\n parentType === \"ClassProperty\"\n ) {\n if (!parent.computed || parent.key.type === \"StringLiteral\") {\n id = parent.key;\n }\n } else if (\n parentType === \"ClassPrivateProperty\" ||\n parentType === \"ClassAccessorProperty\"\n ) {\n id = parent.key;\n }\n }\n\n if (!id) return;\n\n let nameInfo;\n\n if (id.type === \"Identifier\") {\n nameInfo = {\n pos: id.loc?.start,\n name: id.loc?.identifierName || id.name,\n };\n } else if (id.type === \"PrivateName\") {\n nameInfo = {\n pos: id.loc?.start,\n name: \"#\" + id.id.name,\n };\n } else if (id.type === \"StringLiteral\") {\n nameInfo = {\n pos: id.loc?.start,\n name: id.value,\n };\n }\n\n return nameInfo;\n}\n"],"mappings":";;;;;;;;;;;;;;AAEA,IAAAA,EAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EADvCE;AAAY,IAAAH,EAAA;AAKd,SAASI,OAAOA,CAErBC,IAA0D,EAC1DC,MAAoC,EACpCC,UAAkC,EAClC;EACA,IAAI,CAACC,KAAK,CAACH,IAAI,CAACI,cAAc,CAAC;EAE/B,MAAMC,QAAQ,GAAGC,cAAc,CAACC,IAAI,CAAC,IAAI,EAAEN,MAAM,EAAEC,UAAU,CAAC;EAC9D,IAAIG,QAAQ,EAAE;IACZ,IAAI,CAACG,oBAAoB,CAACH,QAAQ,CAACI,IAAI,EAAEJ,QAAQ,CAACK,GAAG,CAAC;EACxD;EAEA,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,WAAW,CAACZ,IAAI,CAACa,MAAM,EAAE,GAAG,CAAC;EAElC,MAAMC,gBAAgB,GAAGd,IAAI,CAACe,IAAI,KAAK,yBAAyB;EAChE,IAAI,CAACZ,KAAK,CAACH,IAAI,CAACgB,UAAU,EAAEF,gBAAgB,CAAC;EAE7C,IAAI,CAACG,iBAAiB,GAAGH,gBAAgB;AAC3C;AAEO,SAASF,WAAWA,CAEzBM,UAAgC,EAChCC,QAAgB,EAChB;EACA,MAAMC,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAElC,MAAMC,aAAa,GAAG,IAAI,CAACC,wBAAwB,CAACJ,QAAQ,CAAC;EAE7D,MAAMK,WAAW,GAAGN,UAAU,CAACO,MAAM;EACrC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,WAAW,EAAEE,CAAC,EAAE,EAAE;IACpC,IAAI,CAACC,MAAM,CAACT,UAAU,CAACQ,CAAC,CAAC,CAAC;IAE1B,IAAIJ,aAAa,IAAII,CAAC,GAAGF,WAAW,GAAG,CAAC,EAAE;MACxC,IAAI,CAACb,KAAK,CAAC,GAAG,EAAE,IAAI,EAAEe,CAAC,CAAC;MACxB,IAAI,CAACE,KAAK,CAAC,CAAC;IACd;EACF;EAEA,IAAI,CAACjB,KAAK,CAACQ,QAAQ,CAAC;EACpBC,IAAI,CAAC,CAAC;AACR;AAEO,SAASO,MAAMA,CAEpBE,SAA2E,EAC3E;EAEA,IAAI,CAACC,SAAS,CAACD,SAAS,CAACE,UAAU,CAAC;EACpC,IAAI,CAAC5B,KAAK,CAAC0B,SAAS,CAAC;EACrB,IAEEA,SAAS,CAACG,QAAQ,EAClB;IACA,IAAI,CAACrB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAER0B,SAAS,CAACI,cACZ,CAAC;AACH;AAEO,SAASC,WAAWA,CAAgBlC,IAAkC,EAAE;EAC7E,MAAMmC,IAAI,GAAGnC,IAAI,CAACmC,IAAI;EACtB,MAAMC,GAAG,GAAGpC,IAAI,CAACoC,GAAG;EAEpB,IAAID,IAAI,KAAK,KAAK,IAAIA,IAAI,KAAK,KAAK,EAAE;IACpC,IAAI,CAACE,IAAI,CAACF,IAAI,CAAC;IACf,IAAI,CAACP,KAAK,CAAC,CAAC;EACd;EAEA,IAAI5B,IAAI,CAACsC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACT,KAAK,CAAC,CAAC;EACd;EAEA,IACEO,IAAI,KAAK,QAAQ,IAEjBA,IAAI,KAAK,MAAM,EACf;IACA,IAAInC,IAAI,CAACuC,SAAS,EAAE;MAClB,IAAI,CAAC5B,SAAK,GAAI,CAAC;IACjB;EACF;EAEA,IAAIX,IAAI,CAACwC,QAAQ,EAAE;IACjB,IAAI,CAAC7B,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAACiC,GAAG,CAAC;IACf,IAAI,CAACzB,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACR,KAAK,CAACiC,GAAG,CAAC;EACjB;EAEA,IAEEpC,IAAI,CAACgC,QAAQ,EACb;IAEA,IAAI,CAACrB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACZ,OAAO,CACVC,IAAI,EACJA,IAAI,CAACwC,QAAQ,IAAIxC,IAAI,CAACoC,GAAG,CAACrB,IAAI,KAAK,eAAe,GAAG0B,SAAS,GAAGzC,IAAI,CAACoC,GAAG,EACzEK,SACF,CAAC;AACH;AAEO,SAASC,UAAUA,CAExB1C,IAG6B,EAC7B2C,qBAA+B,EAC/B;EACA,IAAI3C,IAAI,CAAC4C,SAAS,EAAE;IAClB,IAAI,CAAC5C,IAAI,CAACgB,UAAU,EAAE;MACpB,IAAI,CAACL,SAAK,GAAI,CAAC;IACjB;IACA,IAAI,CAACiB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACzB,KAAK,CAACH,IAAI,CAAC4C,SAAS,EAAED,qBAAqB,CAAC;EACnD;AACF;AAEO,SAASE,aAAaA,CAE3B7C,IAAwE,EACxE8C,MAA8B,EAC9B;EACA,IAAI9C,IAAI,CAACsC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAAC,IAAI,CAACU,MAAM,CAACC,cAAc,EAAE;MAI/B,IAAI,CAACC,iBAAiB,GAAG,KAAK;IAChC;IACA,IAAI,CAACrB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACS,IAAI,CAAC,UAAU,CAAC;EACrB,IAAIrC,IAAI,CAACuC,SAAS,EAAE;IAClB,IAAI,CAAC,IAAI,CAACQ,MAAM,CAACC,cAAc,EAAE;MAI/B,IAAI,CAACC,iBAAiB,GAAG,KAAK;IAChC;IACA,IAAI,CAACtC,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACiB,KAAK,CAAC,CAAC;EACZ,IAAI5B,IAAI,CAACkD,EAAE,EAAE;IACX,IAAI,CAAC/C,KAAK,CAACH,IAAI,CAACkD,EAAE,CAAC;EACrB;EAEA,IAAI,CAACnD,OAAO,CAACC,IAAI,EAAEA,IAAI,CAACkD,EAAE,EAAEJ,MAAM,CAAC;EACnC,IAAI9C,IAAI,CAACe,IAAI,KAAK,mBAAmB,EAAE;IACrC,IAAI,CAAC2B,UAAU,CAAC1C,IAAI,CAAC;EACvB;AACF;AAEO,SAASmD,kBAAkBA,CAEhCnD,IAA0B,EAC1B8C,MAA8B,EAC9B;EACA,IAAI,CAACD,aAAa,CAAC7C,IAAI,EAAE8C,MAAM,CAAC;EAChC,IAAI,CAAClB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACzB,KAAK,CAACH,IAAI,CAACoD,IAAI,CAAC;AACvB;AAIO,SAASC,uBAAuBA,CAErCrD,IAA+B,EAC/B8C,MAA8B,EAC9B;EACA,IAAI9C,IAAI,CAACsC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACT,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,IAAI,CAAC0B,6BAA6B,CAACtD,IAAI,CAAC,EAAE;IAC5C,IAAI,CAACD,OAAO,CAACC,IAAI,EAAEyC,SAAS,EAAEK,MAAM,CAAC;EACvC,CAAC,MAAM;IACL,IAAI,CAAC3C,KAAK,CAACH,IAAI,CAACa,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;EAClC;EAEA,IAAI,CAAC6B,UAAU,CAAC1C,IAAI,EAAE,IAAI,CAAC;EAC3B,IAAI,CAAC4B,KAAK,CAAC,CAAC;EAIZ,IAAI,CAAC2B,kBAAkB,CAAC,CAAC;EACzB,IAAI,CAAC5C,KAAK,CAAC,IAAI,CAAC;EAEhB,IAAI,CAACiB,KAAK,CAAC,CAAC;EAEZ,IAAI,CAAC4B,YAAY,IAAIC,mBAAY,CAACC,SAAS;EAC3C,IAAI,CAACvD,KAAK,CAACH,IAAI,CAACoD,IAAI,CAAC;AACvB;AAIO,SAASE,6BAA6BA,CAE3CtD,IAA+B,EACtB;EAAA,IAAA2D,qBAAA,EAAAC,qBAAA;EACT,IAAI5D,IAAI,CAACa,MAAM,CAACY,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI;EAEzC,IAAIzB,IAAI,CAACI,cAAc,IAAIJ,IAAI,CAACgB,UAAU,IAAIhB,IAAI,CAAC4C,SAAS,EAAE;IAC5D,OAAO,IAAI;EACb;EAEA,MAAMiB,UAAU,GAAG7D,IAAI,CAACa,MAAM,CAAC,CAAC,CAAC;EACjC,IACE,CAACf,YAAY,CAAC+D,UAAU,CAAC,IACzBA,UAAU,CAAC5B,cAAc,IACzB4B,UAAU,CAAC7B,QAAQ,KAAA2B,qBAAA,GAEnBE,UAAU,CAACC,eAAe,aAA1BH,qBAAA,CAA4BlC,MAAM,KAAAmC,qBAAA,GAClCC,UAAU,CAACE,gBAAgB,aAA3BH,qBAAA,CAA6BnC,MAAM,EACnC;IACA,OAAO,IAAI;EACb;EAEA,IAAI,IAAI,CAACuC,QAAQ,EAAE;IACjB,IAAIhE,IAAI,CAACiE,GAAG,IAAI,IAAI,EAAE,OAAO,IAAI;IACjC,IAAI,IAAI,CAACD,QAAQ,CAACE,YAAY,CAAClE,IAAI,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,OAAO,IAAI;IAC/D,MAAMmE,UAAU,GAAG,IAAI,CAACH,QAAQ,CAACE,YAAY,CAAClE,IAAI,EAAE,IAAI,CAAC;IACzD,IAAI,CAAAmE,UAAU,oBAAVA,UAAU,CAAEF,GAAG,KAAI,IAAI,EAAE,OAAO,IAAI;IACxC,OAAOE,UAAU,CAACF,GAAG,CAACG,KAAK,CAACC,IAAI,KAAKrE,IAAI,CAACiE,GAAG,CAACG,KAAK,CAACC,IAAI;EAC1D;EAEA,IAAI,IAAI,CAACtB,MAAM,CAACuB,WAAW,EAAE,OAAO,IAAI;EAExC,OAAO,KAAK;AACd;AAEA,SAAShE,cAAcA,CAErBL,MAAoC,EACpC6C,MAAuE,EACvE;EACA,IAAII,EAAyD,GAAGjD,MAAM;EAEtE,IAAI,CAACiD,EAAE,IAAIJ,MAAM,EAAE;IACjB,MAAMyB,UAAU,GAAGzB,MAAM,CAAC/B,IAAI;IAE9B,IAAIwD,UAAU,KAAK,oBAAoB,EAAE;MACvCrB,EAAE,GAAGJ,MAAM,CAACI,EAAE;IAChB,CAAC,MAAM,IACLqB,UAAU,KAAK,sBAAsB,IACrCA,UAAU,KAAK,mBAAmB,EAClC;MACArB,EAAE,GAAGJ,MAAM,CAAC0B,IAAI;IAClB,CAAC,MAAM,IACLD,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,eAAe,EAC9B;MACA,IAAI,CAACzB,MAAM,CAACN,QAAQ,IAAIM,MAAM,CAACV,GAAG,CAACrB,IAAI,KAAK,eAAe,EAAE;QAC3DmC,EAAE,GAAGJ,MAAM,CAACV,GAAG;MACjB;IACF,CAAC,MAAM,IACLmC,UAAU,KAAK,sBAAsB,IACrCA,UAAU,KAAK,uBAAuB,EACtC;MACArB,EAAE,GAAGJ,MAAM,CAACV,GAAG;IACjB;EACF;EAEA,IAAI,CAACc,EAAE,EAAE;EAET,IAAI7C,QAAQ;EAEZ,IAAI6C,EAAE,CAACnC,IAAI,KAAK,YAAY,EAAE;IAAA,IAAA0D,OAAA,EAAAC,QAAA;IAC5BrE,QAAQ,GAAG;MACTK,GAAG,GAAA+D,OAAA,GAAEvB,EAAE,CAACe,GAAG,qBAANQ,OAAA,CAAQL,KAAK;MAClB3D,IAAI,EAAE,EAAAiE,QAAA,GAAAxB,EAAE,CAACe,GAAG,qBAANS,QAAA,CAAQC,cAAc,KAAIzB,EAAE,CAACzC;IACrC,CAAC;EACH,CAAC,MAAM,IAAIyC,EAAE,CAACnC,IAAI,KAAK,aAAa,EAAE;IAAA,IAAA6D,QAAA;IACpCvE,QAAQ,GAAG;MACTK,GAAG,GAAAkE,QAAA,GAAE1B,EAAE,CAACe,GAAG,qBAANW,QAAA,CAAQR,KAAK;MAClB3D,IAAI,EAAE,GAAG,GAAGyC,EAAE,CAACA,EAAE,CAACzC;IACpB,CAAC;EACH,CAAC,MAAM,IAAIyC,EAAE,CAACnC,IAAI,KAAK,eAAe,EAAE;IAAA,IAAA8D,QAAA;IACtCxE,QAAQ,GAAG;MACTK,GAAG,GAAAmE,QAAA,GAAE3B,EAAE,CAACe,GAAG,qBAANY,QAAA,CAAQT,KAAK;MAClB3D,IAAI,EAAEyC,EAAE,CAAC4B;IACX,CAAC;EACH;EAEA,OAAOzE,QAAQ;AACjB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_index","isIdentifier","_params","node","idNode","parentNode","print","typeParameters","nameInfo","_getFuncIdName","call","sourceIdentifierName","name","pos","token","_parameters","params","noLineTerminator","type","returnType","_noLineTerminator","parameters","parent","exit","enterForStatementInit","paramLength","length","i","_param","space","parameter","printJoin","decorators","optional","typeAnnotation","_methodHead","kind","key","word","async","generator","computed","undefined","_predicate","noLineTerminatorAfter","predicate","_functionHead","_endsWithInnerRaw","id","FunctionExpression","body","ArrowFunctionExpression","firstParam","format","retainLines","hasTypesOrComments","printInnerComments","tokenContext","TokenContext","arrowBody","param","_param$leadingComment","_param$trailingCommen","leadingComments","trailingComments","parentType","left","_id$loc","_id$loc2","loc","start","identifierName","_id$loc3","_id$loc4","value"],"sources":["../../src/generators/methods.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\nimport { isIdentifier, type ParentMaps } from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\ntype ParentsOf = ParentMaps[T[\"type\"]];\n\nexport function _params(\n this: Printer,\n node: t.Function | t.TSDeclareMethod | t.TSDeclareFunction,\n idNode: t.Expression | t.PrivateName,\n parentNode: ParentsOf,\n) {\n this.print(node.typeParameters, node);\n\n const nameInfo = _getFuncIdName.call(this, idNode, parentNode);\n if (nameInfo) {\n this.sourceIdentifierName(nameInfo.name, nameInfo.pos);\n }\n\n this.token(\"(\");\n this._parameters(node.params, node);\n this.token(\")\");\n\n const noLineTerminator = node.type === \"ArrowFunctionExpression\";\n this.print(node.returnType, node, noLineTerminator);\n\n this._noLineTerminator = noLineTerminator;\n}\n\nexport function _parameters(\n this: Printer,\n parameters: t.Function[\"params\"],\n parent:\n | t.Function\n | t.TSIndexSignature\n | t.TSDeclareMethod\n | t.TSDeclareFunction\n | t.TSFunctionType\n | t.TSConstructorType,\n) {\n const exit = this.enterForStatementInit(false);\n\n const paramLength = parameters.length;\n for (let i = 0; i < paramLength; i++) {\n this._param(parameters[i], parent);\n\n if (i < parameters.length - 1) {\n this.token(\",\");\n this.space();\n }\n }\n\n exit();\n}\n\nexport function _param(\n this: Printer,\n parameter: t.Identifier | t.RestElement | t.Pattern | t.TSParameterProperty,\n parent?:\n | t.Function\n | t.TSIndexSignature\n | t.TSDeclareMethod\n | t.TSDeclareFunction\n | t.TSFunctionType\n | t.TSConstructorType,\n) {\n this.printJoin(parameter.decorators, parameter);\n this.print(parameter, parent);\n if (\n // @ts-expect-error optional is not in TSParameterProperty\n parameter.optional\n ) {\n this.token(\"?\"); // TS / flow\n }\n\n this.print(\n // @ts-expect-error typeAnnotation is not in TSParameterProperty\n parameter.typeAnnotation,\n parameter,\n ); // TS / flow\n}\n\nexport function _methodHead(this: Printer, node: t.Method | t.TSDeclareMethod) {\n const kind = node.kind;\n const key = node.key;\n\n if (kind === \"get\" || kind === \"set\") {\n this.word(kind);\n this.space();\n }\n\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n\n if (\n kind === \"method\" ||\n // @ts-expect-error Fixme: kind: \"init\" is not defined\n kind === \"init\"\n ) {\n if (node.generator) {\n this.token(\"*\");\n }\n }\n\n if (node.computed) {\n this.token(\"[\");\n this.print(key, node);\n this.token(\"]\");\n } else {\n this.print(key, node);\n }\n\n if (\n // @ts-expect-error optional is not in ObjectMethod\n node.optional\n ) {\n // TS\n this.token(\"?\");\n }\n\n this._params(\n node,\n node.computed && node.key.type !== \"StringLiteral\" ? undefined : node.key,\n undefined,\n );\n}\n\nexport function _predicate(\n this: Printer,\n node:\n | t.FunctionDeclaration\n | t.FunctionExpression\n | t.ArrowFunctionExpression,\n noLineTerminatorAfter?: boolean,\n) {\n if (node.predicate) {\n if (!node.returnType) {\n this.token(\":\");\n }\n this.space();\n this.print(node.predicate, node, noLineTerminatorAfter);\n }\n}\n\nexport function _functionHead(\n this: Printer,\n node: t.FunctionDeclaration | t.FunctionExpression | t.TSDeclareFunction,\n parent: ParentsOf,\n) {\n if (node.async) {\n this.word(\"async\");\n // We prevent inner comments from being printed here,\n // so that they are always consistently printed in the\n // same place regardless of the function type.\n this._endsWithInnerRaw = false;\n this.space();\n }\n this.word(\"function\");\n if (node.generator) {\n // We prevent inner comments from being printed here,\n // so that they are always consistently printed in the\n // same place regardless of the function type.\n this._endsWithInnerRaw = false;\n this.token(\"*\");\n }\n\n this.space();\n if (node.id) {\n this.print(node.id, node);\n }\n\n this._params(node, node.id, parent);\n if (node.type !== \"TSDeclareFunction\") {\n this._predicate(node);\n }\n}\n\nexport function FunctionExpression(\n this: Printer,\n node: t.FunctionExpression,\n parent: ParentsOf,\n) {\n this._functionHead(node, parent);\n this.space();\n this.print(node.body, node);\n}\n\nexport { FunctionExpression as FunctionDeclaration };\n\nexport function ArrowFunctionExpression(\n this: Printer,\n node: t.ArrowFunctionExpression,\n parent: ParentsOf,\n) {\n if (node.async) {\n this.word(\"async\", true);\n this.space();\n }\n\n // Try to avoid printing parens in simple cases, but only if we're pretty\n // sure that they aren't needed by type annotations or potential newlines.\n let firstParam;\n if (\n !this.format.retainLines &&\n node.params.length === 1 &&\n isIdentifier((firstParam = node.params[0])) &&\n !hasTypesOrComments(node, firstParam)\n ) {\n this.print(firstParam, node, true);\n } else {\n this._params(node, undefined, parent);\n }\n\n this._predicate(node, true);\n this.space();\n // When printing (x)/*1*/=>{}, we remove the parentheses\n // and thus there aren't two contiguous inner tokens.\n // We forcefully print inner comments here.\n this.printInnerComments();\n this.token(\"=>\");\n\n this.space();\n\n this.tokenContext |= TokenContext.arrowBody;\n this.print(node.body, node);\n}\n\nfunction hasTypesOrComments(\n node: t.ArrowFunctionExpression,\n param: t.Identifier,\n): boolean {\n return !!(\n node.typeParameters ||\n node.returnType ||\n node.predicate ||\n param.typeAnnotation ||\n param.optional ||\n // Flow does not support `foo /*: string*/ => {};`\n param.leadingComments?.length ||\n param.trailingComments?.length\n );\n}\n\nfunction _getFuncIdName(\n this: Printer,\n idNode: t.Expression | t.PrivateName,\n parent: ParentsOf,\n) {\n let id: t.Expression | t.PrivateName | t.LVal = idNode;\n\n if (!id && parent) {\n const parentType = parent.type;\n\n if (parentType === \"VariableDeclarator\") {\n id = parent.id;\n } else if (\n parentType === \"AssignmentExpression\" ||\n parentType === \"AssignmentPattern\"\n ) {\n id = parent.left;\n } else if (\n parentType === \"ObjectProperty\" ||\n parentType === \"ClassProperty\"\n ) {\n if (!parent.computed || parent.key.type === \"StringLiteral\") {\n id = parent.key;\n }\n } else if (\n parentType === \"ClassPrivateProperty\" ||\n parentType === \"ClassAccessorProperty\"\n ) {\n id = parent.key;\n }\n }\n\n if (!id) return;\n\n let nameInfo;\n\n if (id.type === \"Identifier\") {\n nameInfo = {\n pos: id.loc?.start,\n name: id.loc?.identifierName || id.name,\n };\n } else if (id.type === \"PrivateName\") {\n nameInfo = {\n pos: id.loc?.start,\n name: \"#\" + id.id.name,\n };\n } else if (id.type === \"StringLiteral\") {\n nameInfo = {\n pos: id.loc?.start,\n name: id.value,\n };\n }\n\n return nameInfo;\n}\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,EAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EADvCE;AAAY,IAAAH,EAAA;AAKd,SAASI,OAAOA,CAErBC,IAA0D,EAC1DC,MAAoC,EACpCC,UAAkC,EAClC;EACA,IAAI,CAACC,KAAK,CAACH,IAAI,CAACI,cAAc,EAAEJ,IAAI,CAAC;EAErC,MAAMK,QAAQ,GAAGC,cAAc,CAACC,IAAI,CAAC,IAAI,EAAEN,MAAM,EAAEC,UAAU,CAAC;EAC9D,IAAIG,QAAQ,EAAE;IACZ,IAAI,CAACG,oBAAoB,CAACH,QAAQ,CAACI,IAAI,EAAEJ,QAAQ,CAACK,GAAG,CAAC;EACxD;EAEA,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,WAAW,CAACZ,IAAI,CAACa,MAAM,EAAEb,IAAI,CAAC;EACnC,IAAI,CAACW,SAAK,GAAI,CAAC;EAEf,MAAMG,gBAAgB,GAAGd,IAAI,CAACe,IAAI,KAAK,yBAAyB;EAChE,IAAI,CAACZ,KAAK,CAACH,IAAI,CAACgB,UAAU,EAAEhB,IAAI,EAAEc,gBAAgB,CAAC;EAEnD,IAAI,CAACG,iBAAiB,GAAGH,gBAAgB;AAC3C;AAEO,SAASF,WAAWA,CAEzBM,UAAgC,EAChCC,MAMuB,EACvB;EACA,MAAMC,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAE9C,MAAMC,WAAW,GAAGJ,UAAU,CAACK,MAAM;EACrC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,WAAW,EAAEE,CAAC,EAAE,EAAE;IACpC,IAAI,CAACC,MAAM,CAACP,UAAU,CAACM,CAAC,CAAC,EAAEL,MAAM,CAAC;IAElC,IAAIK,CAAC,GAAGN,UAAU,CAACK,MAAM,GAAG,CAAC,EAAE;MAC7B,IAAI,CAACZ,SAAK,GAAI,CAAC;MACf,IAAI,CAACe,KAAK,CAAC,CAAC;IACd;EACF;EAEAN,IAAI,CAAC,CAAC;AACR;AAEO,SAASK,MAAMA,CAEpBE,SAA2E,EAC3ER,MAMuB,EACvB;EACA,IAAI,CAACS,SAAS,CAACD,SAAS,CAACE,UAAU,EAAEF,SAAS,CAAC;EAC/C,IAAI,CAACxB,KAAK,CAACwB,SAAS,EAAER,MAAM,CAAC;EAC7B,IAEEQ,SAAS,CAACG,QAAQ,EAClB;IACA,IAAI,CAACnB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACR,KAAK,CAERwB,SAAS,CAACI,cAAc,EACxBJ,SACF,CAAC;AACH;AAEO,SAASK,WAAWA,CAAgBhC,IAAkC,EAAE;EAC7E,MAAMiC,IAAI,GAAGjC,IAAI,CAACiC,IAAI;EACtB,MAAMC,GAAG,GAAGlC,IAAI,CAACkC,GAAG;EAEpB,IAAID,IAAI,KAAK,KAAK,IAAIA,IAAI,KAAK,KAAK,EAAE;IACpC,IAAI,CAACE,IAAI,CAACF,IAAI,CAAC;IACf,IAAI,CAACP,KAAK,CAAC,CAAC;EACd;EAEA,IAAI1B,IAAI,CAACoC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACT,KAAK,CAAC,CAAC;EACd;EAEA,IACEO,IAAI,KAAK,QAAQ,IAEjBA,IAAI,KAAK,MAAM,EACf;IACA,IAAIjC,IAAI,CAACqC,SAAS,EAAE;MAClB,IAAI,CAAC1B,SAAK,GAAI,CAAC;IACjB;EACF;EAEA,IAAIX,IAAI,CAACsC,QAAQ,EAAE;IACjB,IAAI,CAAC3B,SAAK,GAAI,CAAC;IACf,IAAI,CAACR,KAAK,CAAC+B,GAAG,EAAElC,IAAI,CAAC;IACrB,IAAI,CAACW,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACR,KAAK,CAAC+B,GAAG,EAAElC,IAAI,CAAC;EACvB;EAEA,IAEEA,IAAI,CAAC8B,QAAQ,EACb;IAEA,IAAI,CAACnB,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACZ,OAAO,CACVC,IAAI,EACJA,IAAI,CAACsC,QAAQ,IAAItC,IAAI,CAACkC,GAAG,CAACnB,IAAI,KAAK,eAAe,GAAGwB,SAAS,GAAGvC,IAAI,CAACkC,GAAG,EACzEK,SACF,CAAC;AACH;AAEO,SAASC,UAAUA,CAExBxC,IAG6B,EAC7ByC,qBAA+B,EAC/B;EACA,IAAIzC,IAAI,CAAC0C,SAAS,EAAE;IAClB,IAAI,CAAC1C,IAAI,CAACgB,UAAU,EAAE;MACpB,IAAI,CAACL,SAAK,GAAI,CAAC;IACjB;IACA,IAAI,CAACe,KAAK,CAAC,CAAC;IACZ,IAAI,CAACvB,KAAK,CAACH,IAAI,CAAC0C,SAAS,EAAE1C,IAAI,EAAEyC,qBAAqB,CAAC;EACzD;AACF;AAEO,SAASE,aAAaA,CAE3B3C,IAAwE,EACxEmB,MAA8B,EAC9B;EACA,IAAInB,IAAI,CAACoC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;IAIlB,IAAI,CAACS,iBAAiB,GAAG,KAAK;IAC9B,IAAI,CAAClB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACS,IAAI,CAAC,UAAU,CAAC;EACrB,IAAInC,IAAI,CAACqC,SAAS,EAAE;IAIlB,IAAI,CAACO,iBAAiB,GAAG,KAAK;IAC9B,IAAI,CAACjC,SAAK,GAAI,CAAC;EACjB;EAEA,IAAI,CAACe,KAAK,CAAC,CAAC;EACZ,IAAI1B,IAAI,CAAC6C,EAAE,EAAE;IACX,IAAI,CAAC1C,KAAK,CAACH,IAAI,CAAC6C,EAAE,EAAE7C,IAAI,CAAC;EAC3B;EAEA,IAAI,CAACD,OAAO,CAACC,IAAI,EAAEA,IAAI,CAAC6C,EAAE,EAAE1B,MAAM,CAAC;EACnC,IAAInB,IAAI,CAACe,IAAI,KAAK,mBAAmB,EAAE;IACrC,IAAI,CAACyB,UAAU,CAACxC,IAAI,CAAC;EACvB;AACF;AAEO,SAAS8C,kBAAkBA,CAEhC9C,IAA0B,EAC1BmB,MAA8B,EAC9B;EACA,IAAI,CAACwB,aAAa,CAAC3C,IAAI,EAAEmB,MAAM,CAAC;EAChC,IAAI,CAACO,KAAK,CAAC,CAAC;EACZ,IAAI,CAACvB,KAAK,CAACH,IAAI,CAAC+C,IAAI,EAAE/C,IAAI,CAAC;AAC7B;AAIO,SAASgD,uBAAuBA,CAErChD,IAA+B,EAC/BmB,MAA8B,EAC9B;EACA,IAAInB,IAAI,CAACoC,KAAK,EAAE;IACd,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;IACxB,IAAI,CAACT,KAAK,CAAC,CAAC;EACd;EAIA,IAAIuB,UAAU;EACd,IACE,CAAC,IAAI,CAACC,MAAM,CAACC,WAAW,IACxBnD,IAAI,CAACa,MAAM,CAACU,MAAM,KAAK,CAAC,IACxBzB,YAAY,CAAEmD,UAAU,GAAGjD,IAAI,CAACa,MAAM,CAAC,CAAC,CAAE,CAAC,IAC3C,CAACuC,kBAAkB,CAACpD,IAAI,EAAEiD,UAAU,CAAC,EACrC;IACA,IAAI,CAAC9C,KAAK,CAAC8C,UAAU,EAAEjD,IAAI,EAAE,IAAI,CAAC;EACpC,CAAC,MAAM;IACL,IAAI,CAACD,OAAO,CAACC,IAAI,EAAEuC,SAAS,EAAEpB,MAAM,CAAC;EACvC;EAEA,IAAI,CAACqB,UAAU,CAACxC,IAAI,EAAE,IAAI,CAAC;EAC3B,IAAI,CAAC0B,KAAK,CAAC,CAAC;EAIZ,IAAI,CAAC2B,kBAAkB,CAAC,CAAC;EACzB,IAAI,CAAC1C,KAAK,CAAC,IAAI,CAAC;EAEhB,IAAI,CAACe,KAAK,CAAC,CAAC;EAEZ,IAAI,CAAC4B,YAAY,IAAIC,mBAAY,CAACC,SAAS;EAC3C,IAAI,CAACrD,KAAK,CAACH,IAAI,CAAC+C,IAAI,EAAE/C,IAAI,CAAC;AAC7B;AAEA,SAASoD,kBAAkBA,CACzBpD,IAA+B,EAC/ByD,KAAmB,EACV;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EACT,OAAO,CAAC,EACN3D,IAAI,CAACI,cAAc,IACnBJ,IAAI,CAACgB,UAAU,IACfhB,IAAI,CAAC0C,SAAS,IACde,KAAK,CAAC1B,cAAc,IACpB0B,KAAK,CAAC3B,QAAQ,KAAA4B,qBAAA,GAEdD,KAAK,CAACG,eAAe,aAArBF,qBAAA,CAAuBnC,MAAM,KAAAoC,qBAAA,GAC7BF,KAAK,CAACI,gBAAgB,aAAtBF,qBAAA,CAAwBpC,MAAM,CAC/B;AACH;AAEA,SAASjB,cAAcA,CAErBL,MAAoC,EACpCkB,MAAuE,EACvE;EACA,IAAI0B,EAAyC,GAAG5C,MAAM;EAEtD,IAAI,CAAC4C,EAAE,IAAI1B,MAAM,EAAE;IACjB,MAAM2C,UAAU,GAAG3C,MAAM,CAACJ,IAAI;IAE9B,IAAI+C,UAAU,KAAK,oBAAoB,EAAE;MACvCjB,EAAE,GAAG1B,MAAM,CAAC0B,EAAE;IAChB,CAAC,MAAM,IACLiB,UAAU,KAAK,sBAAsB,IACrCA,UAAU,KAAK,mBAAmB,EAClC;MACAjB,EAAE,GAAG1B,MAAM,CAAC4C,IAAI;IAClB,CAAC,MAAM,IACLD,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,eAAe,EAC9B;MACA,IAAI,CAAC3C,MAAM,CAACmB,QAAQ,IAAInB,MAAM,CAACe,GAAG,CAACnB,IAAI,KAAK,eAAe,EAAE;QAC3D8B,EAAE,GAAG1B,MAAM,CAACe,GAAG;MACjB;IACF,CAAC,MAAM,IACL4B,UAAU,KAAK,sBAAsB,IACrCA,UAAU,KAAK,uBAAuB,EACtC;MACAjB,EAAE,GAAG1B,MAAM,CAACe,GAAG;IACjB;EACF;EAEA,IAAI,CAACW,EAAE,EAAE;EAET,IAAIxC,QAAQ;EAEZ,IAAIwC,EAAE,CAAC9B,IAAI,KAAK,YAAY,EAAE;IAAA,IAAAiD,OAAA,EAAAC,QAAA;IAC5B5D,QAAQ,GAAG;MACTK,GAAG,GAAAsD,OAAA,GAAEnB,EAAE,CAACqB,GAAG,qBAANF,OAAA,CAAQG,KAAK;MAClB1D,IAAI,EAAE,EAAAwD,QAAA,GAAApB,EAAE,CAACqB,GAAG,qBAAND,QAAA,CAAQG,cAAc,KAAIvB,EAAE,CAACpC;IACrC,CAAC;EACH,CAAC,MAAM,IAAIoC,EAAE,CAAC9B,IAAI,KAAK,aAAa,EAAE;IAAA,IAAAsD,QAAA;IACpChE,QAAQ,GAAG;MACTK,GAAG,GAAA2D,QAAA,GAAExB,EAAE,CAACqB,GAAG,qBAANG,QAAA,CAAQF,KAAK;MAClB1D,IAAI,EAAE,GAAG,GAAGoC,EAAE,CAACA,EAAE,CAACpC;IACpB,CAAC;EACH,CAAC,MAAM,IAAIoC,EAAE,CAAC9B,IAAI,KAAK,eAAe,EAAE;IAAA,IAAAuD,QAAA;IACtCjE,QAAQ,GAAG;MACTK,GAAG,GAAA4D,QAAA,GAAEzB,EAAE,CAACqB,GAAG,qBAANI,QAAA,CAAQH,KAAK;MAClB1D,IAAI,EAAEoC,EAAE,CAAC0B;IACX,CAAC;EACH;EAEA,OAAOlE,QAAQ;AACjB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/modules.js b/node_modules/@babel/generator/lib/generators/modules.js index 8b536d90c..a93f13805 100644 --- a/node_modules/@babel/generator/lib/generators/modules.js +++ b/node_modules/@babel/generator/lib/generators/modules.js @@ -31,31 +31,31 @@ function ImportSpecifier(node) { this.word(node.importKind); this.space(); } - this.print(node.imported); + this.print(node.imported, node); if (node.local && node.local.name !== node.imported.name) { this.space(); this.word("as"); this.space(); - this.print(node.local); + this.print(node.local, node); } } function ImportDefaultSpecifier(node) { - this.print(node.local); + this.print(node.local, node); } function ExportDefaultSpecifier(node) { - this.print(node.exported); + this.print(node.exported, node); } function ExportSpecifier(node) { if (node.exportKind === "type") { this.word("type"); this.space(); } - this.print(node.local); + this.print(node.local, node); if (node.exported && node.local.name !== node.exported.name) { this.space(); this.word("as"); this.space(); - this.print(node.exported); + this.print(node.exported, node); } } function ExportNamespaceSpecifier(node) { @@ -63,11 +63,10 @@ function ExportNamespaceSpecifier(node) { this.space(); this.word("as"); this.space(); - this.print(node.exported); + this.print(node.exported, node); } let warningShown = false; -function _printAttributes(node, hasPreviousBrace) { - var _node$extra; +function _printAttributes(node) { const { importAttributesKeyword } = this.format; @@ -75,7 +74,7 @@ function _printAttributes(node, hasPreviousBrace) { attributes, assertions } = node; - if (attributes && !importAttributesKeyword && node.extra && (node.extra.deprecatedAssertSyntax || node.extra.deprecatedWithLegacySyntax) && !warningShown) { + if (attributes && !importAttributesKeyword && !warningShown) { warningShown = true; console.warn(`\ You are using import attributes, without specifying the desired output syntax. @@ -88,16 +87,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b const useAssertKeyword = importAttributesKeyword === "assert" || !importAttributesKeyword && assertions; this.word(useAssertKeyword ? "assert" : "with"); this.space(); - if (!useAssertKeyword && (importAttributesKeyword === "with-legacy" || !importAttributesKeyword && (_node$extra = node.extra) != null && _node$extra.deprecatedWithLegacySyntax)) { - this.printList(attributes || assertions); + if (!useAssertKeyword && importAttributesKeyword !== "with") { + this.printList(attributes || assertions, node); return; } - const occurrenceCount = hasPreviousBrace ? 1 : 0; - this.token("{", null, occurrenceCount); + this.tokenChar(123); this.space(); - this.printList(attributes || assertions, this.shouldPrintTrailingComma("}")); + this.printList(attributes || assertions, node); this.space(); - this.token("}", null, occurrenceCount); + this.tokenChar(125); } function ExportAllDeclaration(node) { var _node$attributes, _node$assertions; @@ -112,17 +110,17 @@ function ExportAllDeclaration(node) { this.word("from"); this.space(); if ((_node$attributes = node.attributes) != null && _node$attributes.length || (_node$assertions = node.assertions) != null && _node$assertions.length) { - this.print(node.source, true); + this.print(node.source, node, true); this.space(); - this._printAttributes(node, false); + this._printAttributes(node); } else { - this.print(node.source); + this.print(node.source, node); } this.semicolon(); } function maybePrintDecoratorsBeforeExport(printer, node) { if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) { - printer.printJoin(node.declaration.decorators); + printer.printJoin(node.declaration.decorators, node); } } function ExportNamedDeclaration(node) { @@ -131,7 +129,7 @@ function ExportNamedDeclaration(node) { this.space(); if (node.declaration) { const declar = node.declaration; - this.print(declar); + this.print(declar, node); if (!isStatement(declar)) this.semicolon(); } else { if (node.exportKind === "type") { @@ -144,7 +142,7 @@ function ExportNamedDeclaration(node) { const first = specifiers[0]; if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) { hasSpecial = true; - this.print(specifiers.shift()); + this.print(specifiers.shift(), node); if (specifiers.length) { this.tokenChar(44); this.space(); @@ -153,13 +151,11 @@ function ExportNamedDeclaration(node) { break; } } - let hasBrace = false; if (specifiers.length || !specifiers.length && !hasSpecial) { - hasBrace = true; this.tokenChar(123); if (specifiers.length) { this.space(); - this.printList(specifiers, this.shouldPrintTrailingComma("}")); + this.printList(specifiers, node); this.space(); } this.tokenChar(125); @@ -170,11 +166,11 @@ function ExportNamedDeclaration(node) { this.word("from"); this.space(); if ((_node$attributes2 = node.attributes) != null && _node$attributes2.length || (_node$assertions2 = node.assertions) != null && _node$assertions2.length) { - this.print(node.source, true); + this.print(node.source, node, true); this.space(); - this._printAttributes(node, hasBrace); + this._printAttributes(node); } else { - this.print(node.source); + this.print(node.source, node); } } this.semicolon(); @@ -189,7 +185,7 @@ function ExportDefaultDeclaration(node) { this.space(); this.tokenContext |= _index.TokenContext.exportDefault; const declar = node.declaration; - this.print(declar); + this.print(declar, node); if (!isStatement(declar)) this.semicolon(); } function ImportDeclaration(node) { @@ -215,7 +211,7 @@ function ImportDeclaration(node) { while (hasSpecifiers) { const first = specifiers[0]; if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) { - this.print(specifiers.shift()); + this.print(specifiers.shift(), node); if (specifiers.length) { this.tokenChar(44); this.space(); @@ -224,16 +220,13 @@ function ImportDeclaration(node) { break; } } - let hasBrace = false; if (specifiers.length) { - hasBrace = true; this.tokenChar(123); this.space(); - this.printList(specifiers, this.shouldPrintTrailingComma("}")); + this.printList(specifiers, node); this.space(); this.tokenChar(125); } else if (isTypeKind && !hasSpecifiers) { - hasBrace = true; this.tokenChar(123); this.tokenChar(125); } @@ -243,11 +236,11 @@ function ImportDeclaration(node) { this.space(); } if ((_node$attributes3 = node.attributes) != null && _node$attributes3.length || (_node$assertions3 = node.assertions) != null && _node$assertions3.length) { - this.print(node.source, true); + this.print(node.source, node, true); this.space(); - this._printAttributes(node, hasBrace); + this._printAttributes(node); } else { - this.print(node.source); + this.print(node.source, node); } this.semicolon(); } @@ -262,7 +255,7 @@ function ImportNamespaceSpecifier(node) { this.space(); this.word("as"); this.space(); - this.print(node.local); + this.print(node.local, node); } function ImportExpression(node) { this.word("import"); @@ -271,17 +264,13 @@ function ImportExpression(node) { this.word(node.phase); } this.tokenChar(40); - const shouldPrintTrailingComma = this.shouldPrintTrailingComma(")"); - this.print(node.source); + this.print(node.source, node); if (node.options != null) { this.tokenChar(44); this.space(); - this.print(node.options); + this.print(node.options, node); } - if (shouldPrintTrailingComma) { - this.tokenChar(44); - } - this.rightParens(node); + this.tokenChar(41); } //# sourceMappingURL=modules.js.map diff --git a/node_modules/@babel/generator/lib/generators/modules.js.map b/node_modules/@babel/generator/lib/generators/modules.js.map index 66a2d4def..3447f40cf 100644 --- a/node_modules/@babel/generator/lib/generators/modules.js.map +++ b/node_modules/@babel/generator/lib/generators/modules.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_index","isClassDeclaration","isExportDefaultSpecifier","isExportNamespaceSpecifier","isImportDefaultSpecifier","isImportNamespaceSpecifier","isStatement","ImportSpecifier","node","importKind","word","space","print","imported","local","name","ImportDefaultSpecifier","ExportDefaultSpecifier","exported","ExportSpecifier","exportKind","ExportNamespaceSpecifier","token","warningShown","_printAttributes","hasPreviousBrace","_node$extra","importAttributesKeyword","format","attributes","assertions","extra","deprecatedAssertSyntax","deprecatedWithLegacySyntax","console","warn","useAssertKeyword","printList","occurrenceCount","shouldPrintTrailingComma","ExportAllDeclaration","_node$attributes","_node$assertions","length","source","semicolon","maybePrintDecoratorsBeforeExport","printer","declaration","_shouldPrintDecoratorsBeforeExport","printJoin","decorators","ExportNamedDeclaration","declar","specifiers","slice","hasSpecial","first","shift","hasBrace","_node$attributes2","_node$assertions2","ExportDefaultDeclaration","noIndentInnerCommentsHere","tokenContext","TokenContext","exportDefault","ImportDeclaration","_node$attributes3","_node$assertions3","isTypeKind","module","phase","hasSpecifiers","ImportAttribute","key","value","ImportNamespaceSpecifier","ImportExpression","options","rightParens"],"sources":["../../src/generators/modules.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isClassDeclaration,\n isExportDefaultSpecifier,\n isExportNamespaceSpecifier,\n isImportDefaultSpecifier,\n isImportNamespaceSpecifier,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function ImportSpecifier(this: Printer, node: t.ImportSpecifier) {\n if (node.importKind === \"type\" || node.importKind === \"typeof\") {\n this.word(node.importKind);\n this.space();\n }\n\n this.print(node.imported);\n // @ts-expect-error todo(flow-ts) maybe check node type instead of relying on name to be undefined on t.StringLiteral\n if (node.local && node.local.name !== node.imported.name) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.local);\n }\n}\n\nexport function ImportDefaultSpecifier(\n this: Printer,\n node: t.ImportDefaultSpecifier,\n) {\n this.print(node.local);\n}\n\nexport function ExportDefaultSpecifier(\n this: Printer,\n node: t.ExportDefaultSpecifier,\n) {\n this.print(node.exported);\n}\n\nexport function ExportSpecifier(this: Printer, node: t.ExportSpecifier) {\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n\n this.print(node.local);\n // @ts-expect-error todo(flow-ts) maybe check node type instead of relying on name to be undefined on t.StringLiteral\n if (node.exported && node.local.name !== node.exported.name) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.exported);\n }\n}\n\nexport function ExportNamespaceSpecifier(\n this: Printer,\n node: t.ExportNamespaceSpecifier,\n) {\n this.token(\"*\");\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.exported);\n}\n\nlet warningShown = false;\n\nexport function _printAttributes(\n this: Printer,\n node: Extract,\n hasPreviousBrace: boolean,\n) {\n const { importAttributesKeyword } = this.format;\n const { attributes, assertions } = node;\n\n if (\n !process.env.BABEL_8_BREAKING &&\n attributes &&\n !importAttributesKeyword &&\n node.extra &&\n (node.extra.deprecatedAssertSyntax ||\n node.extra.deprecatedWithLegacySyntax) &&\n // In the production build only show the warning once.\n // We want to show it per-usage locally for tests.\n (!process.env.IS_PUBLISH || !warningShown)\n ) {\n warningShown = true;\n console.warn(`\\\nYou are using import attributes, without specifying the desired output syntax.\nPlease specify the \"importAttributesKeyword\" generator option, whose value can be one of:\n - \"with\" : \\`import { a } from \"b\" with { type: \"json\" };\\`\n - \"assert\" : \\`import { a } from \"b\" assert { type: \"json\" };\\`\n - \"with-legacy\" : \\`import { a } from \"b\" with type: \"json\";\\`\n`);\n }\n\n const useAssertKeyword =\n importAttributesKeyword === \"assert\" ||\n (!importAttributesKeyword && assertions);\n\n this.word(useAssertKeyword ? \"assert\" : \"with\");\n this.space();\n\n if (\n !process.env.BABEL_8_BREAKING &&\n !useAssertKeyword &&\n (importAttributesKeyword === \"with-legacy\" ||\n (!importAttributesKeyword && node.extra?.deprecatedWithLegacySyntax))\n ) {\n // with-legacy\n this.printList(attributes || assertions);\n return;\n }\n\n const occurrenceCount = hasPreviousBrace ? 1 : 0;\n\n this.token(\"{\", null, occurrenceCount);\n this.space();\n this.printList(attributes || assertions, this.shouldPrintTrailingComma(\"}\"));\n this.space();\n this.token(\"}\", null, occurrenceCount);\n}\n\nexport function ExportAllDeclaration(\n this: Printer,\n node: t.ExportAllDeclaration | t.DeclareExportAllDeclaration,\n) {\n this.word(\"export\");\n this.space();\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n this.token(\"*\");\n this.space();\n this.word(\"from\");\n this.space();\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, true);\n this.space();\n this._printAttributes(node, false);\n } else {\n this.print(node.source);\n }\n\n this.semicolon();\n}\n\nfunction maybePrintDecoratorsBeforeExport(\n printer: Printer,\n node: t.ExportNamedDeclaration | t.ExportDefaultDeclaration,\n) {\n if (\n isClassDeclaration(node.declaration) &&\n printer._shouldPrintDecoratorsBeforeExport(\n node as t.ExportNamedDeclaration & { declaration: t.ClassDeclaration },\n )\n ) {\n printer.printJoin(node.declaration.decorators);\n }\n}\n\nexport function ExportNamedDeclaration(\n this: Printer,\n node: t.ExportNamedDeclaration,\n) {\n maybePrintDecoratorsBeforeExport(this, node);\n\n this.word(\"export\");\n this.space();\n if (node.declaration) {\n const declar = node.declaration;\n this.print(declar);\n if (!isStatement(declar)) this.semicolon();\n } else {\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n\n const specifiers = node.specifiers.slice(0);\n\n // print \"special\" specifiers first\n let hasSpecial = false;\n for (;;) {\n const first = specifiers[0];\n if (\n isExportDefaultSpecifier(first) ||\n isExportNamespaceSpecifier(first)\n ) {\n hasSpecial = true;\n this.print(specifiers.shift());\n if (specifiers.length) {\n this.token(\",\");\n this.space();\n }\n } else {\n break;\n }\n }\n\n let hasBrace = false;\n if (specifiers.length || (!specifiers.length && !hasSpecial)) {\n hasBrace = true;\n this.token(\"{\");\n if (specifiers.length) {\n this.space();\n this.printList(specifiers, this.shouldPrintTrailingComma(\"}\"));\n this.space();\n }\n this.token(\"}\");\n }\n\n if (node.source) {\n this.space();\n this.word(\"from\");\n this.space();\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, true);\n this.space();\n this._printAttributes(node, hasBrace);\n } else {\n this.print(node.source);\n }\n }\n\n this.semicolon();\n }\n}\n\nexport function ExportDefaultDeclaration(\n this: Printer,\n node: t.ExportDefaultDeclaration,\n) {\n maybePrintDecoratorsBeforeExport(this, node);\n\n this.word(\"export\");\n this.noIndentInnerCommentsHere();\n this.space();\n this.word(\"default\");\n this.space();\n this.tokenContext |= TokenContext.exportDefault;\n const declar = node.declaration;\n this.print(declar);\n if (!isStatement(declar)) this.semicolon();\n}\n\nexport function ImportDeclaration(this: Printer, node: t.ImportDeclaration) {\n this.word(\"import\");\n this.space();\n\n const isTypeKind = node.importKind === \"type\" || node.importKind === \"typeof\";\n if (isTypeKind) {\n this.noIndentInnerCommentsHere();\n this.word(node.importKind);\n this.space();\n } else if (node.module) {\n this.noIndentInnerCommentsHere();\n this.word(\"module\");\n this.space();\n } else if (node.phase) {\n this.noIndentInnerCommentsHere();\n this.word(node.phase);\n this.space();\n }\n\n const specifiers = node.specifiers.slice(0);\n const hasSpecifiers = !!specifiers.length;\n // print \"special\" specifiers first. The loop condition is constant,\n // but there is a \"break\" in the body.\n while (hasSpecifiers) {\n const first = specifiers[0];\n if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) {\n this.print(specifiers.shift());\n if (specifiers.length) {\n this.token(\",\");\n this.space();\n }\n } else {\n break;\n }\n }\n\n let hasBrace = false;\n if (specifiers.length) {\n hasBrace = true;\n this.token(\"{\");\n this.space();\n this.printList(specifiers, this.shouldPrintTrailingComma(\"}\"));\n this.space();\n this.token(\"}\");\n } else if (isTypeKind && !hasSpecifiers) {\n hasBrace = true;\n this.token(\"{\");\n this.token(\"}\");\n }\n\n if (hasSpecifiers || isTypeKind) {\n this.space();\n this.word(\"from\");\n this.space();\n }\n\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, true);\n this.space();\n this._printAttributes(node, hasBrace);\n } else {\n this.print(node.source);\n }\n\n this.semicolon();\n}\n\nexport function ImportAttribute(this: Printer, node: t.ImportAttribute) {\n this.print(node.key);\n this.token(\":\");\n this.space();\n this.print(node.value);\n}\n\nexport function ImportNamespaceSpecifier(\n this: Printer,\n node: t.ImportNamespaceSpecifier,\n) {\n this.token(\"*\");\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.local);\n}\n\nexport function ImportExpression(this: Printer, node: t.ImportExpression) {\n this.word(\"import\");\n if (node.phase) {\n this.token(\".\");\n this.word(node.phase);\n }\n this.token(\"(\");\n const shouldPrintTrailingComma = this.shouldPrintTrailingComma(\")\");\n this.print(node.source);\n if (node.options != null) {\n this.token(\",\");\n this.space();\n this.print(node.options);\n }\n if (shouldPrintTrailingComma) {\n this.token(\",\");\n }\n this.rightParens(node);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EAR9CE,kBAAkB;EAClBC,wBAAwB;EACxBC,0BAA0B;EAC1BC,wBAAwB;EACxBC,0BAA0B;EAC1BC;AAAW,IAAAR,EAAA;AAKN,SAASS,eAAeA,CAAgBC,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACC,UAAU,KAAK,MAAM,IAAID,IAAI,CAACC,UAAU,KAAK,QAAQ,EAAE;IAC9D,IAAI,CAACC,IAAI,CAACF,IAAI,CAACC,UAAU,CAAC;IAC1B,IAAI,CAACE,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACK,QAAQ,CAAC;EAEzB,IAAIL,IAAI,CAACM,KAAK,IAAIN,IAAI,CAACM,KAAK,CAACC,IAAI,KAAKP,IAAI,CAACK,QAAQ,CAACE,IAAI,EAAE;IACxD,IAAI,CAACJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,CAAC;EACxB;AACF;AAEO,SAASE,sBAAsBA,CAEpCR,IAA8B,EAC9B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAASG,sBAAsBA,CAEpCT,IAA8B,EAC9B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACU,QAAQ,CAAC;AAC3B;AAEO,SAASC,eAAeA,CAAgBX,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;IAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,CAAC;EAEtB,IAAIN,IAAI,CAACU,QAAQ,IAAIV,IAAI,CAACM,KAAK,CAACC,IAAI,KAAKP,IAAI,CAACU,QAAQ,CAACH,IAAI,EAAE;IAC3D,IAAI,CAACJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACU,QAAQ,CAAC;EAC3B;AACF;AAEO,SAASG,wBAAwBA,CAEtCb,IAAgC,EAChC;EACA,IAAI,CAACc,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACU,QAAQ,CAAC;AAC3B;AAEA,IAAIK,YAAY,GAAG,KAAK;AAEjB,SAASC,gBAAgBA,CAE9BhB,IAA2D,EAC3DiB,gBAAyB,EACzB;EAAA,IAAAC,WAAA;EACA,MAAM;IAAEC;EAAwB,CAAC,GAAG,IAAI,CAACC,MAAM;EAC/C,MAAM;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGtB,IAAI;EAEvC,IAEEqB,UAAU,IACV,CAACF,uBAAuB,IACxBnB,IAAI,CAACuB,KAAK,KACTvB,IAAI,CAACuB,KAAK,CAACC,sBAAsB,IAChCxB,IAAI,CAACuB,KAAK,CAACE,0BAA0B,KAGX,CAACV,YAAY,EACzC;IACAA,YAAY,GAAG,IAAI;IACnBW,OAAO,CAACC,IAAI,CAAC;AACjB;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;EACA;EAEA,MAAMC,gBAAgB,GACpBT,uBAAuB,KAAK,QAAQ,IACnC,CAACA,uBAAuB,IAAIG,UAAW;EAE1C,IAAI,CAACpB,IAAI,CAAC0B,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;EAC/C,IAAI,CAACzB,KAAK,CAAC,CAAC;EAEZ,IAEE,CAACyB,gBAAgB,KAChBT,uBAAuB,KAAK,aAAa,IACvC,CAACA,uBAAuB,KAAAD,WAAA,GAAIlB,IAAI,CAACuB,KAAK,aAAVL,WAAA,CAAYO,0BAA2B,GACtE;IAEA,IAAI,CAACI,SAAS,CAACR,UAAU,IAAIC,UAAU,CAAC;IACxC;EACF;EAEA,MAAMQ,eAAe,GAAGb,gBAAgB,GAAG,CAAC,GAAG,CAAC;EAEhD,IAAI,CAACH,KAAK,CAAC,GAAG,EAAE,IAAI,EAAEgB,eAAe,CAAC;EACtC,IAAI,CAAC3B,KAAK,CAAC,CAAC;EACZ,IAAI,CAAC0B,SAAS,CAACR,UAAU,IAAIC,UAAU,EAAE,IAAI,CAACS,wBAAwB,CAAC,GAAG,CAAC,CAAC;EAC5E,IAAI,CAAC5B,KAAK,CAAC,CAAC;EACZ,IAAI,CAACW,KAAK,CAAC,GAAG,EAAE,IAAI,EAAEgB,eAAe,CAAC;AACxC;AAEO,SAASE,oBAAoBA,CAElChC,IAA4D,EAC5D;EAAA,IAAAiC,gBAAA,EAAAC,gBAAA;EACA,IAAI,CAAChC,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;IAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACW,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAAA8B,gBAAA,GAAAjC,IAAI,CAACqB,UAAU,aAAfY,gBAAA,CAAiBE,MAAM,KAAAD,gBAAA,GAAIlC,IAAI,CAACsB,UAAU,aAAfY,gBAAA,CAAiBC,MAAM,EAAE;IACtD,IAAI,CAAC/B,KAAK,CAACJ,IAAI,CAACoC,MAAM,EAAE,IAAI,CAAC;IAC7B,IAAI,CAACjC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,EAAE,KAAK,CAAC;EACpC,CAAC,MAAM;IACL,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACoC,MAAM,CAAC;EACzB;EAEA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEA,SAASC,gCAAgCA,CACvCC,OAAgB,EAChBvC,IAA2D,EAC3D;EACA,IACEP,kBAAkB,CAACO,IAAI,CAACwC,WAAW,CAAC,IACpCD,OAAO,CAACE,kCAAkC,CACxCzC,IACF,CAAC,EACD;IACAuC,OAAO,CAACG,SAAS,CAAC1C,IAAI,CAACwC,WAAW,CAACG,UAAU,CAAC;EAChD;AACF;AAEO,SAASC,sBAAsBA,CAEpC5C,IAA8B,EAC9B;EACAsC,gCAAgC,CAAC,IAAI,EAAEtC,IAAI,CAAC;EAE5C,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACwC,WAAW,EAAE;IACpB,MAAMK,MAAM,GAAG7C,IAAI,CAACwC,WAAW;IAC/B,IAAI,CAACpC,KAAK,CAACyC,MAAM,CAAC;IAClB,IAAI,CAAC/C,WAAW,CAAC+C,MAAM,CAAC,EAAE,IAAI,CAACR,SAAS,CAAC,CAAC;EAC5C,CAAC,MAAM;IACL,IAAIrC,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;MAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACd;IAEA,MAAM2C,UAAU,GAAG9C,IAAI,CAAC8C,UAAU,CAACC,KAAK,CAAC,CAAC,CAAC;IAG3C,IAAIC,UAAU,GAAG,KAAK;IACtB,SAAS;MACP,MAAMC,KAAK,GAAGH,UAAU,CAAC,CAAC,CAAC;MAC3B,IACEpD,wBAAwB,CAACuD,KAAK,CAAC,IAC/BtD,0BAA0B,CAACsD,KAAK,CAAC,EACjC;QACAD,UAAU,GAAG,IAAI;QACjB,IAAI,CAAC5C,KAAK,CAAC0C,UAAU,CAACI,KAAK,CAAC,CAAC,CAAC;QAC9B,IAAIJ,UAAU,CAACX,MAAM,EAAE;UACrB,IAAI,CAACrB,SAAK,GAAI,CAAC;UACf,IAAI,CAACX,KAAK,CAAC,CAAC;QACd;MACF,CAAC,MAAM;QACL;MACF;IACF;IAEA,IAAIgD,QAAQ,GAAG,KAAK;IACpB,IAAIL,UAAU,CAACX,MAAM,IAAK,CAACW,UAAU,CAACX,MAAM,IAAI,CAACa,UAAW,EAAE;MAC5DG,QAAQ,GAAG,IAAI;MACf,IAAI,CAACrC,SAAK,IAAI,CAAC;MACf,IAAIgC,UAAU,CAACX,MAAM,EAAE;QACrB,IAAI,CAAChC,KAAK,CAAC,CAAC;QACZ,IAAI,CAAC0B,SAAS,CAACiB,UAAU,EAAE,IAAI,CAACf,wBAAwB,CAAC,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC5B,KAAK,CAAC,CAAC;MACd;MACA,IAAI,CAACW,SAAK,IAAI,CAAC;IACjB;IAEA,IAAId,IAAI,CAACoC,MAAM,EAAE;MAAA,IAAAgB,iBAAA,EAAAC,iBAAA;MACf,IAAI,CAAClD,KAAK,CAAC,CAAC;MACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACC,KAAK,CAAC,CAAC;MACZ,IAAI,CAAAiD,iBAAA,GAAApD,IAAI,CAACqB,UAAU,aAAf+B,iBAAA,CAAiBjB,MAAM,KAAAkB,iBAAA,GAAIrD,IAAI,CAACsB,UAAU,aAAf+B,iBAAA,CAAiBlB,MAAM,EAAE;QACtD,IAAI,CAAC/B,KAAK,CAACJ,IAAI,CAACoC,MAAM,EAAE,IAAI,CAAC;QAC7B,IAAI,CAACjC,KAAK,CAAC,CAAC;QACZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,EAAEmD,QAAQ,CAAC;MACvC,CAAC,MAAM;QACL,IAAI,CAAC/C,KAAK,CAACJ,IAAI,CAACoC,MAAM,CAAC;MACzB;IACF;IAEA,IAAI,CAACC,SAAS,CAAC,CAAC;EAClB;AACF;AAEO,SAASiB,wBAAwBA,CAEtCtD,IAAgC,EAChC;EACAsC,gCAAgC,CAAC,IAAI,EAAEtC,IAAI,CAAC;EAE5C,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACqD,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAACpD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACqD,YAAY,IAAIC,mBAAY,CAACC,aAAa;EAC/C,MAAMb,MAAM,GAAG7C,IAAI,CAACwC,WAAW;EAC/B,IAAI,CAACpC,KAAK,CAACyC,MAAM,CAAC;EAClB,IAAI,CAAC/C,WAAW,CAAC+C,MAAM,CAAC,EAAE,IAAI,CAACR,SAAS,CAAC,CAAC;AAC5C;AAEO,SAASsB,iBAAiBA,CAAgB3D,IAAyB,EAAE;EAAA,IAAA4D,iBAAA,EAAAC,iBAAA;EAC1E,IAAI,CAAC3D,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,MAAM2D,UAAU,GAAG9D,IAAI,CAACC,UAAU,KAAK,MAAM,IAAID,IAAI,CAACC,UAAU,KAAK,QAAQ;EAC7E,IAAI6D,UAAU,EAAE;IACd,IAAI,CAACP,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAACrD,IAAI,CAACF,IAAI,CAACC,UAAU,CAAC;IAC1B,IAAI,CAACE,KAAK,CAAC,CAAC;EACd,CAAC,MAAM,IAAIH,IAAI,CAAC+D,MAAM,EAAE;IACtB,IAAI,CAACR,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAACrD,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd,CAAC,MAAM,IAAIH,IAAI,CAACgE,KAAK,EAAE;IACrB,IAAI,CAACT,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAACrD,IAAI,CAACF,IAAI,CAACgE,KAAK,CAAC;IACrB,IAAI,CAAC7D,KAAK,CAAC,CAAC;EACd;EAEA,MAAM2C,UAAU,GAAG9C,IAAI,CAAC8C,UAAU,CAACC,KAAK,CAAC,CAAC,CAAC;EAC3C,MAAMkB,aAAa,GAAG,CAAC,CAACnB,UAAU,CAACX,MAAM;EAGzC,OAAO8B,aAAa,EAAE;IACpB,MAAMhB,KAAK,GAAGH,UAAU,CAAC,CAAC,CAAC;IAC3B,IAAIlD,wBAAwB,CAACqD,KAAK,CAAC,IAAIpD,0BAA0B,CAACoD,KAAK,CAAC,EAAE;MACxE,IAAI,CAAC7C,KAAK,CAAC0C,UAAU,CAACI,KAAK,CAAC,CAAC,CAAC;MAC9B,IAAIJ,UAAU,CAACX,MAAM,EAAE;QACrB,IAAI,CAACrB,SAAK,GAAI,CAAC;QACf,IAAI,CAACX,KAAK,CAAC,CAAC;MACd;IACF,CAAC,MAAM;MACL;IACF;EACF;EAEA,IAAIgD,QAAQ,GAAG,KAAK;EACpB,IAAIL,UAAU,CAACX,MAAM,EAAE;IACrBgB,QAAQ,GAAG,IAAI;IACf,IAAI,CAACrC,SAAK,IAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAAC0B,SAAS,CAACiB,UAAU,EAAE,IAAI,CAACf,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAC9D,IAAI,CAAC5B,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM,IAAIgD,UAAU,IAAI,CAACG,aAAa,EAAE;IACvCd,QAAQ,GAAG,IAAI;IACf,IAAI,CAACrC,SAAK,IAAI,CAAC;IACf,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;EAEA,IAAImD,aAAa,IAAIH,UAAU,EAAE;IAC/B,IAAI,CAAC3D,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAAAyD,iBAAA,GAAA5D,IAAI,CAACqB,UAAU,aAAfuC,iBAAA,CAAiBzB,MAAM,KAAA0B,iBAAA,GAAI7D,IAAI,CAACsB,UAAU,aAAfuC,iBAAA,CAAiB1B,MAAM,EAAE;IACtD,IAAI,CAAC/B,KAAK,CAACJ,IAAI,CAACoC,MAAM,EAAE,IAAI,CAAC;IAC7B,IAAI,CAACjC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,EAAEmD,QAAQ,CAAC;EACvC,CAAC,MAAM;IACL,IAAI,CAAC/C,KAAK,CAACJ,IAAI,CAACoC,MAAM,CAAC;EACzB;EAEA,IAAI,CAACC,SAAS,CAAC,CAAC;AAClB;AAEO,SAAS6B,eAAeA,CAAgBlE,IAAuB,EAAE;EACtE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACmE,GAAG,CAAC;EACpB,IAAI,CAACrD,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACoE,KAAK,CAAC;AACxB;AAEO,SAASC,wBAAwBA,CAEtCrE,IAAgC,EAChC;EACA,IAAI,CAACc,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAASgE,gBAAgBA,CAAgBtE,IAAwB,EAAE;EACxE,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAIF,IAAI,CAACgE,KAAK,EAAE;IACd,IAAI,CAAClD,SAAK,GAAI,CAAC;IACf,IAAI,CAACZ,IAAI,CAACF,IAAI,CAACgE,KAAK,CAAC;EACvB;EACA,IAAI,CAAClD,SAAK,GAAI,CAAC;EACf,MAAMiB,wBAAwB,GAAG,IAAI,CAACA,wBAAwB,CAAC,GAAG,CAAC;EACnE,IAAI,CAAC3B,KAAK,CAACJ,IAAI,CAACoC,MAAM,CAAC;EACvB,IAAIpC,IAAI,CAACuE,OAAO,IAAI,IAAI,EAAE;IACxB,IAAI,CAACzD,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACuE,OAAO,CAAC;EAC1B;EACA,IAAIxC,wBAAwB,EAAE;IAC5B,IAAI,CAACjB,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAAC0D,WAAW,CAACxE,IAAI,CAAC;AACxB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_index","isClassDeclaration","isExportDefaultSpecifier","isExportNamespaceSpecifier","isImportDefaultSpecifier","isImportNamespaceSpecifier","isStatement","ImportSpecifier","node","importKind","word","space","print","imported","local","name","ImportDefaultSpecifier","ExportDefaultSpecifier","exported","ExportSpecifier","exportKind","ExportNamespaceSpecifier","token","warningShown","_printAttributes","importAttributesKeyword","format","attributes","assertions","console","warn","useAssertKeyword","printList","ExportAllDeclaration","_node$attributes","_node$assertions","length","source","semicolon","maybePrintDecoratorsBeforeExport","printer","declaration","_shouldPrintDecoratorsBeforeExport","printJoin","decorators","ExportNamedDeclaration","declar","specifiers","slice","hasSpecial","first","shift","_node$attributes2","_node$assertions2","ExportDefaultDeclaration","noIndentInnerCommentsHere","tokenContext","TokenContext","exportDefault","ImportDeclaration","_node$attributes3","_node$assertions3","isTypeKind","module","phase","hasSpecifiers","ImportAttribute","key","value","ImportNamespaceSpecifier","ImportExpression","options"],"sources":["../../src/generators/modules.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isClassDeclaration,\n isExportDefaultSpecifier,\n isExportNamespaceSpecifier,\n isImportDefaultSpecifier,\n isImportNamespaceSpecifier,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function ImportSpecifier(this: Printer, node: t.ImportSpecifier) {\n if (node.importKind === \"type\" || node.importKind === \"typeof\") {\n this.word(node.importKind);\n this.space();\n }\n\n this.print(node.imported, node);\n // @ts-expect-error todo(flow-ts) maybe check node type instead of relying on name to be undefined on t.StringLiteral\n if (node.local && node.local.name !== node.imported.name) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.local, node);\n }\n}\n\nexport function ImportDefaultSpecifier(\n this: Printer,\n node: t.ImportDefaultSpecifier,\n) {\n this.print(node.local, node);\n}\n\nexport function ExportDefaultSpecifier(\n this: Printer,\n node: t.ExportDefaultSpecifier,\n) {\n this.print(node.exported, node);\n}\n\nexport function ExportSpecifier(this: Printer, node: t.ExportSpecifier) {\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n\n this.print(node.local, node);\n // @ts-expect-error todo(flow-ts) maybe check node type instead of relying on name to be undefined on t.StringLiteral\n if (node.exported && node.local.name !== node.exported.name) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.exported, node);\n }\n}\n\nexport function ExportNamespaceSpecifier(\n this: Printer,\n node: t.ExportNamespaceSpecifier,\n) {\n this.token(\"*\");\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.exported, node);\n}\n\nlet warningShown = false;\n\nexport function _printAttributes(\n this: Printer,\n node: Extract,\n) {\n const { importAttributesKeyword } = this.format;\n const { attributes, assertions } = node;\n\n if (\n attributes &&\n !importAttributesKeyword &&\n // In the production build only show the warning once.\n // We want to show it per-usage locally for tests.\n (!process.env.IS_PUBLISH || !warningShown)\n ) {\n warningShown = true;\n console.warn(`\\\nYou are using import attributes, without specifying the desired output syntax.\nPlease specify the \"importAttributesKeyword\" generator option, whose value can be one of:\n - \"with\" : \\`import { a } from \"b\" with { type: \"json\" };\\`\n - \"assert\" : \\`import { a } from \"b\" assert { type: \"json\" };\\`\n - \"with-legacy\" : \\`import { a } from \"b\" with type: \"json\";\\`\n`);\n }\n\n const useAssertKeyword =\n importAttributesKeyword === \"assert\" ||\n (!importAttributesKeyword && assertions);\n\n this.word(useAssertKeyword ? \"assert\" : \"with\");\n this.space();\n\n if (!useAssertKeyword && importAttributesKeyword !== \"with\") {\n // with-legacy\n this.printList(attributes || assertions, node);\n return;\n }\n\n this.token(\"{\");\n this.space();\n this.printList(attributes || assertions, node);\n this.space();\n this.token(\"}\");\n}\n\nexport function ExportAllDeclaration(\n this: Printer,\n node: t.ExportAllDeclaration | t.DeclareExportAllDeclaration,\n) {\n this.word(\"export\");\n this.space();\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n this.token(\"*\");\n this.space();\n this.word(\"from\");\n this.space();\n // @ts-expect-error Fixme: attributes is not defined in DeclareExportAllDeclaration\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, node, true);\n this.space();\n // @ts-expect-error Fixme: attributes is not defined in DeclareExportAllDeclaration\n this._printAttributes(node);\n } else {\n this.print(node.source, node);\n }\n\n this.semicolon();\n}\n\nfunction maybePrintDecoratorsBeforeExport(\n printer: Printer,\n node: t.ExportNamedDeclaration | t.ExportDefaultDeclaration,\n) {\n if (\n isClassDeclaration(node.declaration) &&\n printer._shouldPrintDecoratorsBeforeExport(\n node as t.ExportNamedDeclaration & { declaration: t.ClassDeclaration },\n )\n ) {\n printer.printJoin(node.declaration.decorators, node);\n }\n}\n\nexport function ExportNamedDeclaration(\n this: Printer,\n node: t.ExportNamedDeclaration,\n) {\n maybePrintDecoratorsBeforeExport(this, node);\n\n this.word(\"export\");\n this.space();\n if (node.declaration) {\n const declar = node.declaration;\n this.print(declar, node);\n if (!isStatement(declar)) this.semicolon();\n } else {\n if (node.exportKind === \"type\") {\n this.word(\"type\");\n this.space();\n }\n\n const specifiers = node.specifiers.slice(0);\n\n // print \"special\" specifiers first\n let hasSpecial = false;\n for (;;) {\n const first = specifiers[0];\n if (\n isExportDefaultSpecifier(first) ||\n isExportNamespaceSpecifier(first)\n ) {\n hasSpecial = true;\n this.print(specifiers.shift(), node);\n if (specifiers.length) {\n this.token(\",\");\n this.space();\n }\n } else {\n break;\n }\n }\n\n if (specifiers.length || (!specifiers.length && !hasSpecial)) {\n this.token(\"{\");\n if (specifiers.length) {\n this.space();\n this.printList(specifiers, node);\n this.space();\n }\n this.token(\"}\");\n }\n\n if (node.source) {\n this.space();\n this.word(\"from\");\n this.space();\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, node, true);\n this.space();\n this._printAttributes(node);\n } else {\n this.print(node.source, node);\n }\n }\n\n this.semicolon();\n }\n}\n\nexport function ExportDefaultDeclaration(\n this: Printer,\n node: t.ExportDefaultDeclaration,\n) {\n maybePrintDecoratorsBeforeExport(this, node);\n\n this.word(\"export\");\n this.noIndentInnerCommentsHere();\n this.space();\n this.word(\"default\");\n this.space();\n this.tokenContext |= TokenContext.exportDefault;\n const declar = node.declaration;\n this.print(declar, node);\n if (!isStatement(declar)) this.semicolon();\n}\n\nexport function ImportDeclaration(this: Printer, node: t.ImportDeclaration) {\n this.word(\"import\");\n this.space();\n\n const isTypeKind = node.importKind === \"type\" || node.importKind === \"typeof\";\n if (isTypeKind) {\n this.noIndentInnerCommentsHere();\n this.word(node.importKind);\n this.space();\n } else if (node.module) {\n this.noIndentInnerCommentsHere();\n this.word(\"module\");\n this.space();\n } else if (node.phase) {\n this.noIndentInnerCommentsHere();\n this.word(node.phase);\n this.space();\n }\n\n const specifiers = node.specifiers.slice(0);\n const hasSpecifiers = !!specifiers.length;\n // print \"special\" specifiers first. The loop condition is constant,\n // but there is a \"break\" in the body.\n while (hasSpecifiers) {\n const first = specifiers[0];\n if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) {\n this.print(specifiers.shift(), node);\n if (specifiers.length) {\n this.token(\",\");\n this.space();\n }\n } else {\n break;\n }\n }\n\n if (specifiers.length) {\n this.token(\"{\");\n this.space();\n this.printList(specifiers, node);\n this.space();\n this.token(\"}\");\n } else if (isTypeKind && !hasSpecifiers) {\n this.token(\"{\");\n this.token(\"}\");\n }\n\n if (hasSpecifiers || isTypeKind) {\n this.space();\n this.word(\"from\");\n this.space();\n }\n\n if (node.attributes?.length || node.assertions?.length) {\n this.print(node.source, node, true);\n this.space();\n this._printAttributes(node);\n } else {\n this.print(node.source, node);\n }\n\n this.semicolon();\n}\n\nexport function ImportAttribute(this: Printer, node: t.ImportAttribute) {\n this.print(node.key);\n this.token(\":\");\n this.space();\n this.print(node.value);\n}\n\nexport function ImportNamespaceSpecifier(\n this: Printer,\n node: t.ImportNamespaceSpecifier,\n) {\n this.token(\"*\");\n this.space();\n this.word(\"as\");\n this.space();\n this.print(node.local, node);\n}\n\nexport function ImportExpression(this: Printer, node: t.ImportExpression) {\n this.word(\"import\");\n if (node.phase) {\n this.token(\".\");\n this.word(node.phase);\n }\n this.token(\"(\");\n this.print(node.source, node);\n if (node.options != null) {\n this.token(\",\");\n this.space();\n this.print(node.options, node);\n }\n this.token(\")\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EAR9CE,kBAAkB;EAClBC,wBAAwB;EACxBC,0BAA0B;EAC1BC,wBAAwB;EACxBC,0BAA0B;EAC1BC;AAAW,IAAAR,EAAA;AAKN,SAASS,eAAeA,CAAgBC,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACC,UAAU,KAAK,MAAM,IAAID,IAAI,CAACC,UAAU,KAAK,QAAQ,EAAE;IAC9D,IAAI,CAACC,IAAI,CAACF,IAAI,CAACC,UAAU,CAAC;IAC1B,IAAI,CAACE,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACK,QAAQ,EAAEL,IAAI,CAAC;EAE/B,IAAIA,IAAI,CAACM,KAAK,IAAIN,IAAI,CAACM,KAAK,CAACC,IAAI,KAAKP,IAAI,CAACK,QAAQ,CAACE,IAAI,EAAE;IACxD,IAAI,CAACJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;EAC9B;AACF;AAEO,SAASQ,sBAAsBA,CAEpCR,IAA8B,EAC9B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAASS,sBAAsBA,CAEpCT,IAA8B,EAC9B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACU,QAAQ,EAAEV,IAAI,CAAC;AACjC;AAEO,SAASW,eAAeA,CAAgBX,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;IAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;EAE5B,IAAIA,IAAI,CAACU,QAAQ,IAAIV,IAAI,CAACM,KAAK,CAACC,IAAI,KAAKP,IAAI,CAACU,QAAQ,CAACH,IAAI,EAAE;IAC3D,IAAI,CAACJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACU,QAAQ,EAAEV,IAAI,CAAC;EACjC;AACF;AAEO,SAASa,wBAAwBA,CAEtCb,IAAgC,EAChC;EACA,IAAI,CAACc,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACU,QAAQ,EAAEV,IAAI,CAAC;AACjC;AAEA,IAAIe,YAAY,GAAG,KAAK;AAEjB,SAASC,gBAAgBA,CAE9BhB,IAA2D,EAC3D;EACA,MAAM;IAAEiB;EAAwB,CAAC,GAAG,IAAI,CAACC,MAAM;EAC/C,MAAM;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGpB,IAAI;EAEvC,IACEmB,UAAU,IACV,CAACF,uBAAuB,IAGI,CAACF,YAAY,EACzC;IACAA,YAAY,GAAG,IAAI;IACnBM,OAAO,CAACC,IAAI,CAAC;AACjB;AACA;AACA;AACA;AACA;AACA,CAAC,CAAC;EACA;EAEA,MAAMC,gBAAgB,GACpBN,uBAAuB,KAAK,QAAQ,IACnC,CAACA,uBAAuB,IAAIG,UAAW;EAE1C,IAAI,CAAClB,IAAI,CAACqB,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;EAC/C,IAAI,CAACpB,KAAK,CAAC,CAAC;EAEZ,IAAI,CAACoB,gBAAgB,IAAIN,uBAAuB,KAAK,MAAM,EAAE;IAE3D,IAAI,CAACO,SAAS,CAACL,UAAU,IAAIC,UAAU,EAAEpB,IAAI,CAAC;IAC9C;EACF;EAEA,IAAI,CAACc,SAAK,IAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACqB,SAAS,CAACL,UAAU,IAAIC,UAAU,EAAEpB,IAAI,CAAC;EAC9C,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACW,SAAK,IAAI,CAAC;AACjB;AAEO,SAASW,oBAAoBA,CAElCzB,IAA4D,EAC5D;EAAA,IAAA0B,gBAAA,EAAAC,gBAAA;EACA,IAAI,CAACzB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;IAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACW,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,IAAI,CAAAuB,gBAAA,GAAA1B,IAAI,CAACmB,UAAU,aAAfO,gBAAA,CAAiBE,MAAM,KAAAD,gBAAA,GAAI3B,IAAI,CAACoB,UAAU,aAAfO,gBAAA,CAAiBC,MAAM,EAAE;IACtD,IAAI,CAACxB,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,EAAE,IAAI,CAAC;IACnC,IAAI,CAACG,KAAK,CAAC,CAAC;IAEZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,CAAC;EAC7B,CAAC,MAAM;IACL,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,CAAC;EAC/B;EAEA,IAAI,CAAC8B,SAAS,CAAC,CAAC;AAClB;AAEA,SAASC,gCAAgCA,CACvCC,OAAgB,EAChBhC,IAA2D,EAC3D;EACA,IACEP,kBAAkB,CAACO,IAAI,CAACiC,WAAW,CAAC,IACpCD,OAAO,CAACE,kCAAkC,CACxClC,IACF,CAAC,EACD;IACAgC,OAAO,CAACG,SAAS,CAACnC,IAAI,CAACiC,WAAW,CAACG,UAAU,EAAEpC,IAAI,CAAC;EACtD;AACF;AAEO,SAASqC,sBAAsBA,CAEpCrC,IAA8B,EAC9B;EACA+B,gCAAgC,CAAC,IAAI,EAAE/B,IAAI,CAAC;EAE5C,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIH,IAAI,CAACiC,WAAW,EAAE;IACpB,MAAMK,MAAM,GAAGtC,IAAI,CAACiC,WAAW;IAC/B,IAAI,CAAC7B,KAAK,CAACkC,MAAM,EAAEtC,IAAI,CAAC;IACxB,IAAI,CAACF,WAAW,CAACwC,MAAM,CAAC,EAAE,IAAI,CAACR,SAAS,CAAC,CAAC;EAC5C,CAAC,MAAM;IACL,IAAI9B,IAAI,CAACY,UAAU,KAAK,MAAM,EAAE;MAC9B,IAAI,CAACV,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACd;IAEA,MAAMoC,UAAU,GAAGvC,IAAI,CAACuC,UAAU,CAACC,KAAK,CAAC,CAAC,CAAC;IAG3C,IAAIC,UAAU,GAAG,KAAK;IACtB,SAAS;MACP,MAAMC,KAAK,GAAGH,UAAU,CAAC,CAAC,CAAC;MAC3B,IACE7C,wBAAwB,CAACgD,KAAK,CAAC,IAC/B/C,0BAA0B,CAAC+C,KAAK,CAAC,EACjC;QACAD,UAAU,GAAG,IAAI;QACjB,IAAI,CAACrC,KAAK,CAACmC,UAAU,CAACI,KAAK,CAAC,CAAC,EAAE3C,IAAI,CAAC;QACpC,IAAIuC,UAAU,CAACX,MAAM,EAAE;UACrB,IAAI,CAACd,SAAK,GAAI,CAAC;UACf,IAAI,CAACX,KAAK,CAAC,CAAC;QACd;MACF,CAAC,MAAM;QACL;MACF;IACF;IAEA,IAAIoC,UAAU,CAACX,MAAM,IAAK,CAACW,UAAU,CAACX,MAAM,IAAI,CAACa,UAAW,EAAE;MAC5D,IAAI,CAAC3B,SAAK,IAAI,CAAC;MACf,IAAIyB,UAAU,CAACX,MAAM,EAAE;QACrB,IAAI,CAACzB,KAAK,CAAC,CAAC;QACZ,IAAI,CAACqB,SAAS,CAACe,UAAU,EAAEvC,IAAI,CAAC;QAChC,IAAI,CAACG,KAAK,CAAC,CAAC;MACd;MACA,IAAI,CAACW,SAAK,IAAI,CAAC;IACjB;IAEA,IAAId,IAAI,CAAC6B,MAAM,EAAE;MAAA,IAAAe,iBAAA,EAAAC,iBAAA;MACf,IAAI,CAAC1C,KAAK,CAAC,CAAC;MACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;MACjB,IAAI,CAACC,KAAK,CAAC,CAAC;MACZ,IAAI,CAAAyC,iBAAA,GAAA5C,IAAI,CAACmB,UAAU,aAAfyB,iBAAA,CAAiBhB,MAAM,KAAAiB,iBAAA,GAAI7C,IAAI,CAACoB,UAAU,aAAfyB,iBAAA,CAAiBjB,MAAM,EAAE;QACtD,IAAI,CAACxB,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,EAAE,IAAI,CAAC;QACnC,IAAI,CAACG,KAAK,CAAC,CAAC;QACZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,CAAC;MAC7B,CAAC,MAAM;QACL,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,CAAC;MAC/B;IACF;IAEA,IAAI,CAAC8B,SAAS,CAAC,CAAC;EAClB;AACF;AAEO,SAASgB,wBAAwBA,CAEtC9C,IAAgC,EAChC;EACA+B,gCAAgC,CAAC,IAAI,EAAE/B,IAAI,CAAC;EAE5C,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAAC6C,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAAC5C,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAAC6C,YAAY,IAAIC,mBAAY,CAACC,aAAa;EAC/C,MAAMZ,MAAM,GAAGtC,IAAI,CAACiC,WAAW;EAC/B,IAAI,CAAC7B,KAAK,CAACkC,MAAM,EAAEtC,IAAI,CAAC;EACxB,IAAI,CAACF,WAAW,CAACwC,MAAM,CAAC,EAAE,IAAI,CAACR,SAAS,CAAC,CAAC;AAC5C;AAEO,SAASqB,iBAAiBA,CAAgBnD,IAAyB,EAAE;EAAA,IAAAoD,iBAAA,EAAAC,iBAAA;EAC1E,IAAI,CAACnD,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,MAAMmD,UAAU,GAAGtD,IAAI,CAACC,UAAU,KAAK,MAAM,IAAID,IAAI,CAACC,UAAU,KAAK,QAAQ;EAC7E,IAAIqD,UAAU,EAAE;IACd,IAAI,CAACP,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAAC7C,IAAI,CAACF,IAAI,CAACC,UAAU,CAAC;IAC1B,IAAI,CAACE,KAAK,CAAC,CAAC;EACd,CAAC,MAAM,IAAIH,IAAI,CAACuD,MAAM,EAAE;IACtB,IAAI,CAACR,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAAC7C,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd,CAAC,MAAM,IAAIH,IAAI,CAACwD,KAAK,EAAE;IACrB,IAAI,CAACT,yBAAyB,CAAC,CAAC;IAChC,IAAI,CAAC7C,IAAI,CAACF,IAAI,CAACwD,KAAK,CAAC;IACrB,IAAI,CAACrD,KAAK,CAAC,CAAC;EACd;EAEA,MAAMoC,UAAU,GAAGvC,IAAI,CAACuC,UAAU,CAACC,KAAK,CAAC,CAAC,CAAC;EAC3C,MAAMiB,aAAa,GAAG,CAAC,CAAClB,UAAU,CAACX,MAAM;EAGzC,OAAO6B,aAAa,EAAE;IACpB,MAAMf,KAAK,GAAGH,UAAU,CAAC,CAAC,CAAC;IAC3B,IAAI3C,wBAAwB,CAAC8C,KAAK,CAAC,IAAI7C,0BAA0B,CAAC6C,KAAK,CAAC,EAAE;MACxE,IAAI,CAACtC,KAAK,CAACmC,UAAU,CAACI,KAAK,CAAC,CAAC,EAAE3C,IAAI,CAAC;MACpC,IAAIuC,UAAU,CAACX,MAAM,EAAE;QACrB,IAAI,CAACd,SAAK,GAAI,CAAC;QACf,IAAI,CAACX,KAAK,CAAC,CAAC;MACd;IACF,CAAC,MAAM;MACL;IACF;EACF;EAEA,IAAIoC,UAAU,CAACX,MAAM,EAAE;IACrB,IAAI,CAACd,SAAK,IAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACqB,SAAS,CAACe,UAAU,EAAEvC,IAAI,CAAC;IAChC,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACW,SAAK,IAAI,CAAC;EACjB,CAAC,MAAM,IAAIwC,UAAU,IAAI,CAACG,aAAa,EAAE;IACvC,IAAI,CAAC3C,SAAK,IAAI,CAAC;IACf,IAAI,CAACA,SAAK,IAAI,CAAC;EACjB;EAEA,IAAI2C,aAAa,IAAIH,UAAU,EAAE;IAC/B,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAAAiD,iBAAA,GAAApD,IAAI,CAACmB,UAAU,aAAfiC,iBAAA,CAAiBxB,MAAM,KAAAyB,iBAAA,GAAIrD,IAAI,CAACoB,UAAU,aAAfiC,iBAAA,CAAiBzB,MAAM,EAAE;IACtD,IAAI,CAACxB,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,EAAE,IAAI,CAAC;IACnC,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACa,gBAAgB,CAAChB,IAAI,CAAC;EAC7B,CAAC,MAAM;IACL,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,CAAC;EAC/B;EAEA,IAAI,CAAC8B,SAAS,CAAC,CAAC;AAClB;AAEO,SAAS4B,eAAeA,CAAgB1D,IAAuB,EAAE;EACtE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC2D,GAAG,CAAC;EACpB,IAAI,CAAC7C,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC4D,KAAK,CAAC;AACxB;AAEO,SAASC,wBAAwBA,CAEtC7D,IAAgC,EAChC;EACA,IAAI,CAACc,SAAK,GAAI,CAAC;EACf,IAAI,CAACX,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACM,KAAK,EAAEN,IAAI,CAAC;AAC9B;AAEO,SAAS8D,gBAAgBA,CAAgB9D,IAAwB,EAAE;EACxE,IAAI,CAACE,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAIF,IAAI,CAACwD,KAAK,EAAE;IACd,IAAI,CAAC1C,SAAK,GAAI,CAAC;IACf,IAAI,CAACZ,IAAI,CAACF,IAAI,CAACwD,KAAK,CAAC;EACvB;EACA,IAAI,CAAC1C,SAAK,GAAI,CAAC;EACf,IAAI,CAACV,KAAK,CAACJ,IAAI,CAAC6B,MAAM,EAAE7B,IAAI,CAAC;EAC7B,IAAIA,IAAI,CAAC+D,OAAO,IAAI,IAAI,EAAE;IACxB,IAAI,CAACjD,SAAK,GAAI,CAAC;IACf,IAAI,CAACX,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC+D,OAAO,EAAE/D,IAAI,CAAC;EAChC;EACA,IAAI,CAACc,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/statements.js b/node_modules/@babel/generator/lib/generators/statements.js index b4c725818..246d887d7 100644 --- a/node_modules/@babel/generator/lib/generators/statements.js +++ b/node_modules/@babel/generator/lib/generators/statements.js @@ -22,6 +22,7 @@ exports.VariableDeclarator = VariableDeclarator; exports.WhileStatement = WhileStatement; exports.WithStatement = WithStatement; var _t = require("@babel/types"); +var _index = require("../node/index.js"); const { isFor, isForStatement, @@ -32,7 +33,7 @@ function WithStatement(node) { this.word("with"); this.space(); this.tokenChar(40); - this.print(node.object); + this.print(node.object, node); this.tokenChar(41); this.printBlock(node); } @@ -40,7 +41,7 @@ function IfStatement(node) { this.word("if"); this.space(); this.tokenChar(40); - this.print(node.test); + this.print(node.test, node); this.tokenChar(41); this.space(); const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent)); @@ -49,7 +50,7 @@ function IfStatement(node) { this.newline(); this.indent(); } - this.printAndIndentOnComments(node.consequent); + this.printAndIndentOnComments(node.consequent, node); if (needsBlock) { this.dedent(); this.newline(); @@ -59,7 +60,7 @@ function IfStatement(node) { if (this.endsWith(125)) this.space(); this.word("else"); this.space(); - this.printAndIndentOnComments(node.alternate); + this.printAndIndentOnComments(node.alternate, node); } } function getLastStatement(statement) { @@ -76,19 +77,20 @@ function ForStatement(node) { this.space(); this.tokenChar(40); { - const exit = this.enterForStatementInit(); - this.print(node.init); + const exit = this.enterForStatementInit(true); + this.tokenContext |= _index.TokenContext.forHead; + this.print(node.init, node); exit(); } this.tokenChar(59); if (node.test) { this.space(); - this.print(node.test); + this.print(node.test, node); } - this.token(";", false, 1); + this.tokenChar(59); if (node.update) { this.space(); - this.print(node.update); + this.print(node.update, node); } this.tokenChar(41); this.printBlock(node); @@ -97,7 +99,7 @@ function WhileStatement(node) { this.word("while"); this.space(); this.tokenChar(40); - this.print(node.test); + this.print(node.test, node); this.tokenChar(41); this.printBlock(node); } @@ -112,14 +114,15 @@ function ForXStatement(node) { this.noIndentInnerCommentsHere(); this.tokenChar(40); { - const exit = this.enterForXStatementInit(isForOf); - this.print(node.left); + const exit = isForOf ? null : this.enterForStatementInit(true); + this.tokenContext |= isForOf ? _index.TokenContext.forOfHead : _index.TokenContext.forInHead; + this.print(node.left, node); exit == null || exit(); } this.space(); this.word(isForOf ? "of" : "in"); this.space(); - this.print(node.right); + this.print(node.right, node); this.tokenChar(41); this.printBlock(node); } @@ -128,59 +131,59 @@ const ForOfStatement = exports.ForOfStatement = ForXStatement; function DoWhileStatement(node) { this.word("do"); this.space(); - this.print(node.body); + this.print(node.body, node); this.space(); this.word("while"); this.space(); this.tokenChar(40); - this.print(node.test); + this.print(node.test, node); this.tokenChar(41); this.semicolon(); } -function printStatementAfterKeyword(printer, node) { +function printStatementAfterKeyword(printer, node, parent, isLabel) { if (node) { printer.space(); - printer.printTerminatorless(node); + printer.printTerminatorless(node, parent, isLabel); } printer.semicolon(); } function BreakStatement(node) { this.word("break"); - printStatementAfterKeyword(this, node.label); + printStatementAfterKeyword(this, node.label, node, true); } function ContinueStatement(node) { this.word("continue"); - printStatementAfterKeyword(this, node.label); + printStatementAfterKeyword(this, node.label, node, true); } function ReturnStatement(node) { this.word("return"); - printStatementAfterKeyword(this, node.argument); + printStatementAfterKeyword(this, node.argument, node, false); } function ThrowStatement(node) { this.word("throw"); - printStatementAfterKeyword(this, node.argument); + printStatementAfterKeyword(this, node.argument, node, false); } function LabeledStatement(node) { - this.print(node.label); + this.print(node.label, node); this.tokenChar(58); this.space(); - this.print(node.body); + this.print(node.body, node); } function TryStatement(node) { this.word("try"); this.space(); - this.print(node.block); + this.print(node.block, node); this.space(); if (node.handlers) { - this.print(node.handlers[0]); + this.print(node.handlers[0], node); } else { - this.print(node.handler); + this.print(node.handler, node); } if (node.finalizer) { this.space(); this.word("finally"); this.space(); - this.print(node.finalizer); + this.print(node.finalizer, node); } } function CatchClause(node) { @@ -188,23 +191,26 @@ function CatchClause(node) { this.space(); if (node.param) { this.tokenChar(40); - this.print(node.param); - this.print(node.param.typeAnnotation); + this.print(node.param, node); + this.print(node.param.typeAnnotation, node); this.tokenChar(41); this.space(); } - this.print(node.body); + this.print(node.body, node); } function SwitchStatement(node) { this.word("switch"); this.space(); this.tokenChar(40); - this.print(node.discriminant); + this.print(node.discriminant, node); this.tokenChar(41); this.space(); this.tokenChar(123); - this.printSequence(node.cases, true, undefined, function addNewlines(leading, cas) { - if (!leading && node.cases[node.cases.length - 1] === cas) return -1; + this.printSequence(node.cases, node, { + indent: true, + addNewlines(leading, cas) { + if (!leading && node.cases[node.cases.length - 1] === cas) return -1; + } }); this.rightBrace(node); } @@ -212,7 +218,7 @@ function SwitchCase(node) { if (node.test) { this.word("case"); this.space(); - this.print(node.test); + this.print(node.test, node); this.tokenChar(58); } else { this.word("default"); @@ -220,7 +226,9 @@ function SwitchCase(node) { } if (node.consequent.length) { this.newline(); - this.printSequence(node.consequent, true); + this.printSequence(node.consequent, node, { + indent: true + }); } } function DebuggerStatement() { @@ -251,10 +259,13 @@ function VariableDeclaration(node, parent) { } } } - this.printList(node.declarations, undefined, undefined, node.declarations.length > 1, hasInits ? function (occurrenceCount) { - this.token(",", false, occurrenceCount); - this.newline(); - } : undefined); + this.printList(node.declarations, node, { + separator: hasInits ? function () { + this.tokenChar(44); + this.newline(); + } : undefined, + indent: node.declarations.length > 1 ? true : false + }); if (isFor(parent)) { if (isForStatement(parent)) { if (parent.init === node) return; @@ -265,14 +276,14 @@ function VariableDeclaration(node, parent) { this.semicolon(); } function VariableDeclarator(node) { - this.print(node.id); + this.print(node.id, node); if (node.definite) this.tokenChar(33); - this.print(node.id.typeAnnotation); + this.print(node.id.typeAnnotation, node); if (node.init) { this.space(); this.tokenChar(61); this.space(); - this.print(node.init); + this.print(node.init, node); } } diff --git a/node_modules/@babel/generator/lib/generators/statements.js.map b/node_modules/@babel/generator/lib/generators/statements.js.map index c977cc98f..b5fa7449b 100644 --- a/node_modules/@babel/generator/lib/generators/statements.js.map +++ b/node_modules/@babel/generator/lib/generators/statements.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","isFor","isForStatement","isIfStatement","isStatement","WithStatement","node","word","space","token","print","object","printBlock","IfStatement","test","needsBlock","alternate","getLastStatement","consequent","newline","indent","printAndIndentOnComments","dedent","endsWith","statement","body","ForStatement","exit","enterForStatementInit","init","update","WhileStatement","ForXStatement","isForOf","type","await","noIndentInnerCommentsHere","enterForXStatementInit","left","right","ForInStatement","exports","ForOfStatement","DoWhileStatement","semicolon","printStatementAfterKeyword","printer","printTerminatorless","BreakStatement","label","ContinueStatement","ReturnStatement","argument","ThrowStatement","LabeledStatement","TryStatement","block","handlers","handler","finalizer","CatchClause","param","typeAnnotation","SwitchStatement","discriminant","printSequence","cases","undefined","addNewlines","leading","cas","length","rightBrace","SwitchCase","DebuggerStatement","VariableDeclaration","parent","declare","kind","hasInits","declar","declarations","printList","occurrenceCount","VariableDeclarator","id","definite"],"sources":["../../src/generators/statements.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isFor,\n isForStatement,\n isIfStatement,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\n\nexport function WithStatement(this: Printer, node: t.WithStatement) {\n this.word(\"with\");\n this.space();\n this.token(\"(\");\n this.print(node.object);\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport function IfStatement(this: Printer, node: t.IfStatement) {\n this.word(\"if\");\n this.space();\n this.token(\"(\");\n this.print(node.test);\n this.token(\")\");\n this.space();\n\n const needsBlock =\n node.alternate && isIfStatement(getLastStatement(node.consequent));\n if (needsBlock) {\n this.token(\"{\");\n this.newline();\n this.indent();\n }\n\n this.printAndIndentOnComments(node.consequent);\n\n if (needsBlock) {\n this.dedent();\n this.newline();\n this.token(\"}\");\n }\n\n if (node.alternate) {\n if (this.endsWith(charCodes.rightCurlyBrace)) this.space();\n this.word(\"else\");\n this.space();\n this.printAndIndentOnComments(node.alternate);\n }\n}\n\n// Recursively get the last statement.\nfunction getLastStatement(statement: t.Statement): t.Statement {\n // @ts-expect-error: If statement.body is empty or not a Node, isStatement will return false\n const { body } = statement;\n if (isStatement(body) === false) {\n return statement;\n }\n\n return getLastStatement(body);\n}\n\nexport function ForStatement(this: Printer, node: t.ForStatement) {\n this.word(\"for\");\n this.space();\n this.token(\"(\");\n\n {\n const exit = this.enterForStatementInit();\n this.print(node.init);\n exit();\n }\n\n this.token(\";\");\n\n if (node.test) {\n this.space();\n this.print(node.test);\n }\n this.token(\";\", false, 1);\n\n if (node.update) {\n this.space();\n this.print(node.update);\n }\n\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport function WhileStatement(this: Printer, node: t.WhileStatement) {\n this.word(\"while\");\n this.space();\n this.token(\"(\");\n this.print(node.test);\n this.token(\")\");\n this.printBlock(node);\n}\n\nfunction ForXStatement(this: Printer, node: t.ForXStatement) {\n this.word(\"for\");\n this.space();\n const isForOf = node.type === \"ForOfStatement\";\n if (isForOf && node.await) {\n this.word(\"await\");\n this.space();\n }\n this.noIndentInnerCommentsHere();\n this.token(\"(\");\n {\n const exit = this.enterForXStatementInit(isForOf);\n this.print(node.left);\n exit?.();\n }\n this.space();\n this.word(isForOf ? \"of\" : \"in\");\n this.space();\n this.print(node.right);\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport const ForInStatement = ForXStatement;\nexport const ForOfStatement = ForXStatement;\n\nexport function DoWhileStatement(this: Printer, node: t.DoWhileStatement) {\n this.word(\"do\");\n this.space();\n this.print(node.body);\n this.space();\n this.word(\"while\");\n this.space();\n this.token(\"(\");\n this.print(node.test);\n this.token(\")\");\n this.semicolon();\n}\n\nfunction printStatementAfterKeyword(printer: Printer, node: t.Node) {\n if (node) {\n printer.space();\n printer.printTerminatorless(node);\n }\n\n printer.semicolon();\n}\n\nexport function BreakStatement(this: Printer, node: t.ContinueStatement) {\n this.word(\"break\");\n printStatementAfterKeyword(this, node.label);\n}\n\nexport function ContinueStatement(this: Printer, node: t.ContinueStatement) {\n this.word(\"continue\");\n printStatementAfterKeyword(this, node.label);\n}\n\nexport function ReturnStatement(this: Printer, node: t.ReturnStatement) {\n this.word(\"return\");\n printStatementAfterKeyword(this, node.argument);\n}\n\nexport function ThrowStatement(this: Printer, node: t.ThrowStatement) {\n this.word(\"throw\");\n printStatementAfterKeyword(this, node.argument);\n}\n\nexport function LabeledStatement(this: Printer, node: t.LabeledStatement) {\n this.print(node.label);\n this.token(\":\");\n this.space();\n this.print(node.body);\n}\n\nexport function TryStatement(this: Printer, node: t.TryStatement) {\n this.word(\"try\");\n this.space();\n this.print(node.block);\n this.space();\n\n // Esprima bug puts the catch clause in a `handlers` array.\n // see https://code.google.com/p/esprima/issues/detail?id=433\n // We run into this from regenerator generated ast.\n // @ts-expect-error todo(flow->ts) should ast node type be updated to support this?\n if (node.handlers) {\n // @ts-expect-error todo(flow->ts) should ast node type be updated to support this?\n this.print(node.handlers[0]);\n } else {\n this.print(node.handler);\n }\n\n if (node.finalizer) {\n this.space();\n this.word(\"finally\");\n this.space();\n this.print(node.finalizer);\n }\n}\n\nexport function CatchClause(this: Printer, node: t.CatchClause) {\n this.word(\"catch\");\n this.space();\n if (node.param) {\n this.token(\"(\");\n this.print(node.param);\n this.print(node.param.typeAnnotation);\n this.token(\")\");\n this.space();\n }\n this.print(node.body);\n}\n\nexport function SwitchStatement(this: Printer, node: t.SwitchStatement) {\n this.word(\"switch\");\n this.space();\n this.token(\"(\");\n this.print(node.discriminant);\n this.token(\")\");\n this.space();\n this.token(\"{\");\n\n this.printSequence(\n node.cases,\n true,\n undefined,\n function addNewlines(leading, cas) {\n if (!leading && node.cases[node.cases.length - 1] === cas) return -1;\n },\n );\n\n this.rightBrace(node);\n}\n\nexport function SwitchCase(this: Printer, node: t.SwitchCase) {\n if (node.test) {\n this.word(\"case\");\n this.space();\n this.print(node.test);\n this.token(\":\");\n } else {\n this.word(\"default\");\n this.token(\":\");\n }\n\n if (node.consequent.length) {\n this.newline();\n this.printSequence(node.consequent, true);\n }\n}\n\nexport function DebuggerStatement(this: Printer) {\n this.word(\"debugger\");\n this.semicolon();\n}\n\nexport function VariableDeclaration(\n this: Printer,\n node: t.VariableDeclaration,\n parent: t.Node,\n) {\n if (node.declare) {\n // TS\n this.word(\"declare\");\n this.space();\n }\n\n const { kind } = node;\n if (kind === \"await using\") {\n this.word(\"await\");\n this.space();\n this.word(\"using\", true);\n } else {\n this.word(kind, kind === \"using\");\n }\n this.space();\n\n let hasInits = false;\n // don't add whitespace to loop heads\n if (!isFor(parent)) {\n for (const declar of node.declarations) {\n if (declar.init) {\n // has an init so let's split it up over multiple lines\n hasInits = true;\n }\n }\n }\n\n //\n // use a pretty separator when we aren't in compact mode, have initializers and don't have retainLines on\n // this will format declarations like:\n //\n // let foo = \"bar\", bar = \"foo\";\n //\n // into\n //\n // let foo = \"bar\",\n // bar = \"foo\";\n //\n\n this.printList(\n node.declarations,\n undefined,\n undefined,\n node.declarations.length > 1,\n hasInits\n ? function (this: Printer, occurrenceCount: number) {\n this.token(\",\", false, occurrenceCount);\n this.newline();\n }\n : undefined,\n );\n\n if (isFor(parent)) {\n // don't give semicolons to these nodes since they'll be inserted in the parent generator\n if (isForStatement(parent)) {\n if (parent.init === node) return;\n } else {\n if (parent.left === node) return;\n }\n }\n\n this.semicolon();\n}\n\nexport function VariableDeclarator(this: Printer, node: t.VariableDeclarator) {\n this.print(node.id);\n if (node.definite) this.token(\"!\"); // TS\n // @ts-ignore(Babel 7 vs Babel 8) Property 'typeAnnotation' does not exist on type 'MemberExpression'.\n this.print(node.id.typeAnnotation);\n if (node.init) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.init);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAKsB;EAJpBC,KAAK;EACLC,cAAc;EACdC,aAAa;EACbC;AAAW,IAAAL,EAAA;AAQN,SAASM,aAAaA,CAAgBC,IAAqB,EAAE;EAClE,IAAI,CAACC,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACK,MAAM,CAAC;EACvB,IAAI,CAACF,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,SAASO,WAAWA,CAAgBP,IAAmB,EAAE;EAC9D,IAAI,CAACC,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,CAAC;EACrB,IAAI,CAACL,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EAEZ,MAAMO,UAAU,GACdT,IAAI,CAACU,SAAS,IAAIb,aAAa,CAACc,gBAAgB,CAACX,IAAI,CAACY,UAAU,CAAC,CAAC;EACpE,IAAIH,UAAU,EAAE;IACd,IAAI,CAACN,SAAK,IAAI,CAAC;IACf,IAAI,CAACU,OAAO,CAAC,CAAC;IACd,IAAI,CAACC,MAAM,CAAC,CAAC;EACf;EAEA,IAAI,CAACC,wBAAwB,CAACf,IAAI,CAACY,UAAU,CAAC;EAE9C,IAAIH,UAAU,EAAE;IACd,IAAI,CAACO,MAAM,CAAC,CAAC;IACb,IAAI,CAACH,OAAO,CAAC,CAAC;IACd,IAAI,CAACV,SAAK,IAAI,CAAC;EACjB;EAEA,IAAIH,IAAI,CAACU,SAAS,EAAE;IAClB,IAAI,IAAI,CAACO,QAAQ,IAA0B,CAAC,EAAE,IAAI,CAACf,KAAK,CAAC,CAAC;IAC1D,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACa,wBAAwB,CAACf,IAAI,CAACU,SAAS,CAAC;EAC/C;AACF;AAGA,SAASC,gBAAgBA,CAACO,SAAsB,EAAe;EAE7D,MAAM;IAAEC;EAAK,CAAC,GAAGD,SAAS;EAC1B,IAAIpB,WAAW,CAACqB,IAAI,CAAC,KAAK,KAAK,EAAE;IAC/B,OAAOD,SAAS;EAClB;EAEA,OAAOP,gBAAgB,CAACQ,IAAI,CAAC;AAC/B;AAEO,SAASC,YAAYA,CAAgBpB,IAAoB,EAAE;EAChE,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EAEf;IACE,MAAMkB,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACzC,IAAI,CAAClB,KAAK,CAACJ,IAAI,CAACuB,IAAI,CAAC;IACrBF,IAAI,CAAC,CAAC;EACR;EAEA,IAAI,CAAClB,SAAK,GAAI,CAAC;EAEf,IAAIH,IAAI,CAACQ,IAAI,EAAE;IACb,IAAI,CAACN,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACQ,IAAI,CAAC;EACvB;EACA,IAAI,CAACL,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;EAEzB,IAAIH,IAAI,CAACwB,MAAM,EAAE;IACf,IAAI,CAACtB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACwB,MAAM,CAAC;EACzB;EAEA,IAAI,CAACrB,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,SAASyB,cAAcA,CAAgBzB,IAAsB,EAAE;EACpE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,CAAC;EACrB,IAAI,CAACL,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEA,SAAS0B,aAAaA,CAAgB1B,IAAqB,EAAE;EAC3D,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,MAAMyB,OAAO,GAAG3B,IAAI,CAAC4B,IAAI,KAAK,gBAAgB;EAC9C,IAAID,OAAO,IAAI3B,IAAI,CAAC6B,KAAK,EAAE;IACzB,IAAI,CAAC5B,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAAC4B,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAAC3B,SAAK,GAAI,CAAC;EACf;IACE,MAAMkB,IAAI,GAAG,IAAI,CAACU,sBAAsB,CAACJ,OAAO,CAAC;IACjD,IAAI,CAACvB,KAAK,CAACJ,IAAI,CAACgC,IAAI,CAAC;IACrBX,IAAI,YAAJA,IAAI,CAAG,CAAC;EACV;EACA,IAAI,CAACnB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC0B,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;EAChC,IAAI,CAACzB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACiC,KAAK,CAAC;EACtB,IAAI,CAAC9B,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,MAAMkC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGR,aAAa;AACpC,MAAMU,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAGV,aAAa;AAEpC,SAASW,gBAAgBA,CAAgBrC,IAAwB,EAAE;EACxE,IAAI,CAACC,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,CAAC;EACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,CAAC;EACrB,IAAI,CAACL,SAAK,GAAI,CAAC;EACf,IAAI,CAACmC,SAAS,CAAC,CAAC;AAClB;AAEA,SAASC,0BAA0BA,CAACC,OAAgB,EAAExC,IAAY,EAAE;EAClE,IAAIA,IAAI,EAAE;IACRwC,OAAO,CAACtC,KAAK,CAAC,CAAC;IACfsC,OAAO,CAACC,mBAAmB,CAACzC,IAAI,CAAC;EACnC;EAEAwC,OAAO,CAACF,SAAS,CAAC,CAAC;AACrB;AAEO,SAASI,cAAcA,CAAgB1C,IAAyB,EAAE;EACvE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClBsC,0BAA0B,CAAC,IAAI,EAAEvC,IAAI,CAAC2C,KAAK,CAAC;AAC9C;AAEO,SAASC,iBAAiBA,CAAgB5C,IAAyB,EAAE;EAC1E,IAAI,CAACC,IAAI,CAAC,UAAU,CAAC;EACrBsC,0BAA0B,CAAC,IAAI,EAAEvC,IAAI,CAAC2C,KAAK,CAAC;AAC9C;AAEO,SAASE,eAAeA,CAAgB7C,IAAuB,EAAE;EACtE,IAAI,CAACC,IAAI,CAAC,QAAQ,CAAC;EACnBsC,0BAA0B,CAAC,IAAI,EAAEvC,IAAI,CAAC8C,QAAQ,CAAC;AACjD;AAEO,SAASC,cAAcA,CAAgB/C,IAAsB,EAAE;EACpE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClBsC,0BAA0B,CAAC,IAAI,EAAEvC,IAAI,CAAC8C,QAAQ,CAAC;AACjD;AAEO,SAASE,gBAAgBA,CAAgBhD,IAAwB,EAAE;EACxE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC2C,KAAK,CAAC;EACtB,IAAI,CAACxC,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,CAAC;AACvB;AAEO,SAAS8B,YAAYA,CAAgBjD,IAAoB,EAAE;EAChE,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACkD,KAAK,CAAC;EACtB,IAAI,CAAChD,KAAK,CAAC,CAAC;EAMZ,IAAIF,IAAI,CAACmD,QAAQ,EAAE;IAEjB,IAAI,CAAC/C,KAAK,CAACJ,IAAI,CAACmD,QAAQ,CAAC,CAAC,CAAC,CAAC;EAC9B,CAAC,MAAM;IACL,IAAI,CAAC/C,KAAK,CAACJ,IAAI,CAACoD,OAAO,CAAC;EAC1B;EAEA,IAAIpD,IAAI,CAACqD,SAAS,EAAE;IAClB,IAAI,CAACnD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACqD,SAAS,CAAC;EAC5B;AACF;AAEO,SAASC,WAAWA,CAAgBtD,IAAmB,EAAE;EAC9D,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIF,IAAI,CAACuD,KAAK,EAAE;IACd,IAAI,CAACpD,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACuD,KAAK,CAAC;IACtB,IAAI,CAACnD,KAAK,CAACJ,IAAI,CAACuD,KAAK,CAACC,cAAc,CAAC;IACrC,IAAI,CAACrD,SAAK,GAAI,CAAC;IACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,CAAC;AACvB;AAEO,SAASsC,eAAeA,CAAgBzD,IAAuB,EAAE;EACtE,IAAI,CAACC,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC0D,YAAY,CAAC;EAC7B,IAAI,CAACvD,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,IAAI,CAAC;EAEf,IAAI,CAACwD,aAAa,CAChB3D,IAAI,CAAC4D,KAAK,EACV,IAAI,EACJC,SAAS,EACT,SAASC,WAAWA,CAACC,OAAO,EAAEC,GAAG,EAAE;IACjC,IAAI,CAACD,OAAO,IAAI/D,IAAI,CAAC4D,KAAK,CAAC5D,IAAI,CAAC4D,KAAK,CAACK,MAAM,GAAG,CAAC,CAAC,KAAKD,GAAG,EAAE,OAAO,CAAC,CAAC;EACtE,CACF,CAAC;EAED,IAAI,CAACE,UAAU,CAAClE,IAAI,CAAC;AACvB;AAEO,SAASmE,UAAUA,CAAgBnE,IAAkB,EAAE;EAC5D,IAAIA,IAAI,CAACQ,IAAI,EAAE;IACb,IAAI,CAACP,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACQ,IAAI,CAAC;IACrB,IAAI,CAACL,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACE,SAAK,GAAI,CAAC;EACjB;EAEA,IAAIH,IAAI,CAACY,UAAU,CAACqD,MAAM,EAAE;IAC1B,IAAI,CAACpD,OAAO,CAAC,CAAC;IACd,IAAI,CAAC8C,aAAa,CAAC3D,IAAI,CAACY,UAAU,EAAE,IAAI,CAAC;EAC3C;AACF;AAEO,SAASwD,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACnE,IAAI,CAAC,UAAU,CAAC;EACrB,IAAI,CAACqC,SAAS,CAAC,CAAC;AAClB;AAEO,SAAS+B,mBAAmBA,CAEjCrE,IAA2B,EAC3BsE,MAAc,EACd;EACA,IAAItE,IAAI,CAACuE,OAAO,EAAE;IAEhB,IAAI,CAACtE,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,MAAM;IAAEsE;EAAK,CAAC,GAAGxE,IAAI;EACrB,IAAIwE,IAAI,KAAK,aAAa,EAAE;IAC1B,IAAI,CAACvE,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;EAC1B,CAAC,MAAM;IACL,IAAI,CAACA,IAAI,CAACuE,IAAI,EAAEA,IAAI,KAAK,OAAO,CAAC;EACnC;EACA,IAAI,CAACtE,KAAK,CAAC,CAAC;EAEZ,IAAIuE,QAAQ,GAAG,KAAK;EAEpB,IAAI,CAAC9E,KAAK,CAAC2E,MAAM,CAAC,EAAE;IAClB,KAAK,MAAMI,MAAM,IAAI1E,IAAI,CAAC2E,YAAY,EAAE;MACtC,IAAID,MAAM,CAACnD,IAAI,EAAE;QAEfkD,QAAQ,GAAG,IAAI;MACjB;IACF;EACF;EAcA,IAAI,CAACG,SAAS,CACZ5E,IAAI,CAAC2E,YAAY,EACjBd,SAAS,EACTA,SAAS,EACT7D,IAAI,CAAC2E,YAAY,CAACV,MAAM,GAAG,CAAC,EAC5BQ,QAAQ,GACJ,UAAyBI,eAAuB,EAAE;IAChD,IAAI,CAAC1E,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE0E,eAAe,CAAC;IACvC,IAAI,CAAChE,OAAO,CAAC,CAAC;EAChB,CAAC,GACDgD,SACN,CAAC;EAED,IAAIlE,KAAK,CAAC2E,MAAM,CAAC,EAAE;IAEjB,IAAI1E,cAAc,CAAC0E,MAAM,CAAC,EAAE;MAC1B,IAAIA,MAAM,CAAC/C,IAAI,KAAKvB,IAAI,EAAE;IAC5B,CAAC,MAAM;MACL,IAAIsE,MAAM,CAACtC,IAAI,KAAKhC,IAAI,EAAE;IAC5B;EACF;EAEA,IAAI,CAACsC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASwC,kBAAkBA,CAAgB9E,IAA0B,EAAE;EAC5E,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC+E,EAAE,CAAC;EACnB,IAAI/E,IAAI,CAACgF,QAAQ,EAAE,IAAI,CAAC7E,SAAK,GAAI,CAAC;EAElC,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC+E,EAAE,CAACvB,cAAc,CAAC;EAClC,IAAIxD,IAAI,CAACuB,IAAI,EAAE;IACb,IAAI,CAACrB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAK,GAAI,CAAC;IACf,IAAI,CAACD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACuB,IAAI,CAAC;EACvB;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_index","isFor","isForStatement","isIfStatement","isStatement","WithStatement","node","word","space","token","print","object","printBlock","IfStatement","test","needsBlock","alternate","getLastStatement","consequent","newline","indent","printAndIndentOnComments","dedent","endsWith","statement","body","ForStatement","exit","enterForStatementInit","tokenContext","TokenContext","forHead","init","update","WhileStatement","ForXStatement","isForOf","type","await","noIndentInnerCommentsHere","forOfHead","forInHead","left","right","ForInStatement","exports","ForOfStatement","DoWhileStatement","semicolon","printStatementAfterKeyword","printer","parent","isLabel","printTerminatorless","BreakStatement","label","ContinueStatement","ReturnStatement","argument","ThrowStatement","LabeledStatement","TryStatement","block","handlers","handler","finalizer","CatchClause","param","typeAnnotation","SwitchStatement","discriminant","printSequence","cases","addNewlines","leading","cas","length","rightBrace","SwitchCase","DebuggerStatement","VariableDeclaration","declare","kind","hasInits","declar","declarations","printList","separator","undefined","VariableDeclarator","id","definite"],"sources":["../../src/generators/statements.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport {\n isFor,\n isForStatement,\n isIfStatement,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\nimport { TokenContext } from \"../node/index.ts\";\n\nexport function WithStatement(this: Printer, node: t.WithStatement) {\n this.word(\"with\");\n this.space();\n this.token(\"(\");\n this.print(node.object, node);\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport function IfStatement(this: Printer, node: t.IfStatement) {\n this.word(\"if\");\n this.space();\n this.token(\"(\");\n this.print(node.test, node);\n this.token(\")\");\n this.space();\n\n const needsBlock =\n node.alternate && isIfStatement(getLastStatement(node.consequent));\n if (needsBlock) {\n this.token(\"{\");\n this.newline();\n this.indent();\n }\n\n this.printAndIndentOnComments(node.consequent, node);\n\n if (needsBlock) {\n this.dedent();\n this.newline();\n this.token(\"}\");\n }\n\n if (node.alternate) {\n if (this.endsWith(charCodes.rightCurlyBrace)) this.space();\n this.word(\"else\");\n this.space();\n this.printAndIndentOnComments(node.alternate, node);\n }\n}\n\n// Recursively get the last statement.\nfunction getLastStatement(statement: t.Statement): t.Statement {\n // @ts-expect-error: If statement.body is empty or not a Node, isStatement will return false\n const { body } = statement;\n if (isStatement(body) === false) {\n return statement;\n }\n\n return getLastStatement(body);\n}\n\nexport function ForStatement(this: Printer, node: t.ForStatement) {\n this.word(\"for\");\n this.space();\n this.token(\"(\");\n\n {\n const exit = this.enterForStatementInit(true);\n this.tokenContext |= TokenContext.forHead;\n this.print(node.init, node);\n exit();\n }\n\n this.token(\";\");\n\n if (node.test) {\n this.space();\n this.print(node.test, node);\n }\n this.token(\";\");\n\n if (node.update) {\n this.space();\n this.print(node.update, node);\n }\n\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport function WhileStatement(this: Printer, node: t.WhileStatement) {\n this.word(\"while\");\n this.space();\n this.token(\"(\");\n this.print(node.test, node);\n this.token(\")\");\n this.printBlock(node);\n}\n\nfunction ForXStatement(this: Printer, node: t.ForXStatement) {\n this.word(\"for\");\n this.space();\n const isForOf = node.type === \"ForOfStatement\";\n if (isForOf && node.await) {\n this.word(\"await\");\n this.space();\n }\n this.noIndentInnerCommentsHere();\n this.token(\"(\");\n {\n const exit = isForOf ? null : this.enterForStatementInit(true);\n this.tokenContext |= isForOf\n ? TokenContext.forOfHead\n : TokenContext.forInHead;\n this.print(node.left, node);\n exit?.();\n }\n this.space();\n this.word(isForOf ? \"of\" : \"in\");\n this.space();\n this.print(node.right, node);\n this.token(\")\");\n this.printBlock(node);\n}\n\nexport const ForInStatement = ForXStatement;\nexport const ForOfStatement = ForXStatement;\n\nexport function DoWhileStatement(this: Printer, node: t.DoWhileStatement) {\n this.word(\"do\");\n this.space();\n this.print(node.body, node);\n this.space();\n this.word(\"while\");\n this.space();\n this.token(\"(\");\n this.print(node.test, node);\n this.token(\")\");\n this.semicolon();\n}\n\nfunction printStatementAfterKeyword(\n printer: Printer,\n node: t.Node,\n parent: t.Node,\n isLabel: boolean,\n) {\n if (node) {\n printer.space();\n printer.printTerminatorless(node, parent, isLabel);\n }\n\n printer.semicolon();\n}\n\nexport function BreakStatement(this: Printer, node: t.ContinueStatement) {\n this.word(\"break\");\n printStatementAfterKeyword(this, node.label, node, true);\n}\n\nexport function ContinueStatement(this: Printer, node: t.ContinueStatement) {\n this.word(\"continue\");\n printStatementAfterKeyword(this, node.label, node, true);\n}\n\nexport function ReturnStatement(this: Printer, node: t.ReturnStatement) {\n this.word(\"return\");\n printStatementAfterKeyword(this, node.argument, node, false);\n}\n\nexport function ThrowStatement(this: Printer, node: t.ThrowStatement) {\n this.word(\"throw\");\n printStatementAfterKeyword(this, node.argument, node, false);\n}\n\nexport function LabeledStatement(this: Printer, node: t.LabeledStatement) {\n this.print(node.label, node);\n this.token(\":\");\n this.space();\n this.print(node.body, node);\n}\n\nexport function TryStatement(this: Printer, node: t.TryStatement) {\n this.word(\"try\");\n this.space();\n this.print(node.block, node);\n this.space();\n\n // Esprima bug puts the catch clause in a `handlers` array.\n // see https://code.google.com/p/esprima/issues/detail?id=433\n // We run into this from regenerator generated ast.\n // @ts-expect-error todo(flow->ts) should ast node type be updated to support this?\n if (node.handlers) {\n // @ts-expect-error todo(flow->ts) should ast node type be updated to support this?\n this.print(node.handlers[0], node);\n } else {\n this.print(node.handler, node);\n }\n\n if (node.finalizer) {\n this.space();\n this.word(\"finally\");\n this.space();\n this.print(node.finalizer, node);\n }\n}\n\nexport function CatchClause(this: Printer, node: t.CatchClause) {\n this.word(\"catch\");\n this.space();\n if (node.param) {\n this.token(\"(\");\n this.print(node.param, node);\n this.print(node.param.typeAnnotation, node);\n this.token(\")\");\n this.space();\n }\n this.print(node.body, node);\n}\n\nexport function SwitchStatement(this: Printer, node: t.SwitchStatement) {\n this.word(\"switch\");\n this.space();\n this.token(\"(\");\n this.print(node.discriminant, node);\n this.token(\")\");\n this.space();\n this.token(\"{\");\n\n this.printSequence(node.cases, node, {\n indent: true,\n addNewlines(leading, cas) {\n if (!leading && node.cases[node.cases.length - 1] === cas) return -1;\n },\n });\n\n this.rightBrace(node);\n}\n\nexport function SwitchCase(this: Printer, node: t.SwitchCase) {\n if (node.test) {\n this.word(\"case\");\n this.space();\n this.print(node.test, node);\n this.token(\":\");\n } else {\n this.word(\"default\");\n this.token(\":\");\n }\n\n if (node.consequent.length) {\n this.newline();\n this.printSequence(node.consequent, node, { indent: true });\n }\n}\n\nexport function DebuggerStatement(this: Printer) {\n this.word(\"debugger\");\n this.semicolon();\n}\n\nexport function VariableDeclaration(\n this: Printer,\n node: t.VariableDeclaration,\n parent: t.Node,\n) {\n if (node.declare) {\n // TS\n this.word(\"declare\");\n this.space();\n }\n\n const { kind } = node;\n if (kind === \"await using\") {\n this.word(\"await\");\n this.space();\n this.word(\"using\", true);\n } else {\n this.word(kind, kind === \"using\");\n }\n this.space();\n\n let hasInits = false;\n // don't add whitespace to loop heads\n if (!isFor(parent)) {\n for (const declar of node.declarations) {\n if (declar.init) {\n // has an init so let's split it up over multiple lines\n hasInits = true;\n }\n }\n }\n\n //\n // use a pretty separator when we aren't in compact mode, have initializers and don't have retainLines on\n // this will format declarations like:\n //\n // let foo = \"bar\", bar = \"foo\";\n //\n // into\n //\n // let foo = \"bar\",\n // bar = \"foo\";\n //\n\n this.printList(node.declarations, node, {\n separator: hasInits\n ? function (this: Printer) {\n this.token(\",\");\n this.newline();\n }\n : undefined,\n indent: node.declarations.length > 1 ? true : false,\n });\n\n if (isFor(parent)) {\n // don't give semicolons to these nodes since they'll be inserted in the parent generator\n if (isForStatement(parent)) {\n if (parent.init === node) return;\n } else {\n if (parent.left === node) return;\n }\n }\n\n this.semicolon();\n}\n\nexport function VariableDeclarator(this: Printer, node: t.VariableDeclarator) {\n this.print(node.id, node);\n if (node.definite) this.token(\"!\"); // TS\n // @ts-expect-error todo(flow-ts) Property 'typeAnnotation' does not exist on type 'MemberExpression'.\n this.print(node.id.typeAnnotation, node);\n if (node.init) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.init, node);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAWA,IAAAC,MAAA,GAAAD,OAAA;AAAgD;EAV9CE,KAAK;EACLC,cAAc;EACdC,aAAa;EACbC;AAAW,IAAAN,EAAA;AASN,SAASO,aAAaA,CAAgBC,IAAqB,EAAE;EAClE,IAAI,CAACC,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACK,MAAM,EAAEL,IAAI,CAAC;EAC7B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,SAASO,WAAWA,CAAgBP,IAAmB,EAAE;EAC9D,IAAI,CAACC,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,EAAER,IAAI,CAAC;EAC3B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EAEZ,MAAMO,UAAU,GACdT,IAAI,CAACU,SAAS,IAAIb,aAAa,CAACc,gBAAgB,CAACX,IAAI,CAACY,UAAU,CAAC,CAAC;EACpE,IAAIH,UAAU,EAAE;IACd,IAAI,CAACN,SAAK,IAAI,CAAC;IACf,IAAI,CAACU,OAAO,CAAC,CAAC;IACd,IAAI,CAACC,MAAM,CAAC,CAAC;EACf;EAEA,IAAI,CAACC,wBAAwB,CAACf,IAAI,CAACY,UAAU,EAAEZ,IAAI,CAAC;EAEpD,IAAIS,UAAU,EAAE;IACd,IAAI,CAACO,MAAM,CAAC,CAAC;IACb,IAAI,CAACH,OAAO,CAAC,CAAC;IACd,IAAI,CAACV,SAAK,IAAI,CAAC;EACjB;EAEA,IAAIH,IAAI,CAACU,SAAS,EAAE;IAClB,IAAI,IAAI,CAACO,QAAQ,IAA0B,CAAC,EAAE,IAAI,CAACf,KAAK,CAAC,CAAC;IAC1D,IAAI,CAACD,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACa,wBAAwB,CAACf,IAAI,CAACU,SAAS,EAAEV,IAAI,CAAC;EACrD;AACF;AAGA,SAASW,gBAAgBA,CAACO,SAAsB,EAAe;EAE7D,MAAM;IAAEC;EAAK,CAAC,GAAGD,SAAS;EAC1B,IAAIpB,WAAW,CAACqB,IAAI,CAAC,KAAK,KAAK,EAAE;IAC/B,OAAOD,SAAS;EAClB;EAEA,OAAOP,gBAAgB,CAACQ,IAAI,CAAC;AAC/B;AAEO,SAASC,YAAYA,CAAgBpB,IAAoB,EAAE;EAChE,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EAEf;IACE,MAAMkB,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,IAAI,CAAC;IAC7C,IAAI,CAACC,YAAY,IAAIC,mBAAY,CAACC,OAAO;IACzC,IAAI,CAACrB,KAAK,CAACJ,IAAI,CAAC0B,IAAI,EAAE1B,IAAI,CAAC;IAC3BqB,IAAI,CAAC,CAAC;EACR;EAEA,IAAI,CAAClB,SAAK,GAAI,CAAC;EAEf,IAAIH,IAAI,CAACQ,IAAI,EAAE;IACb,IAAI,CAACN,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACQ,IAAI,EAAER,IAAI,CAAC;EAC7B;EACA,IAAI,CAACG,SAAK,GAAI,CAAC;EAEf,IAAIH,IAAI,CAAC2B,MAAM,EAAE;IACf,IAAI,CAACzB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAAC2B,MAAM,EAAE3B,IAAI,CAAC;EAC/B;EAEA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,SAAS4B,cAAcA,CAAgB5B,IAAsB,EAAE;EACpE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,EAAER,IAAI,CAAC;EAC3B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEA,SAAS6B,aAAaA,CAAgB7B,IAAqB,EAAE;EAC3D,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,MAAM4B,OAAO,GAAG9B,IAAI,CAAC+B,IAAI,KAAK,gBAAgB;EAC9C,IAAID,OAAO,IAAI9B,IAAI,CAACgC,KAAK,EAAE;IACzB,IAAI,CAAC/B,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAAC+B,yBAAyB,CAAC,CAAC;EAChC,IAAI,CAAC9B,SAAK,GAAI,CAAC;EACf;IACE,MAAMkB,IAAI,GAAGS,OAAO,GAAG,IAAI,GAAG,IAAI,CAACR,qBAAqB,CAAC,IAAI,CAAC;IAC9D,IAAI,CAACC,YAAY,IAAIO,OAAO,GACxBN,mBAAY,CAACU,SAAS,GACtBV,mBAAY,CAACW,SAAS;IAC1B,IAAI,CAAC/B,KAAK,CAACJ,IAAI,CAACoC,IAAI,EAAEpC,IAAI,CAAC;IAC3BqB,IAAI,YAAJA,IAAI,CAAG,CAAC;EACV;EACA,IAAI,CAACnB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC6B,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;EAChC,IAAI,CAAC5B,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACqC,KAAK,EAAErC,IAAI,CAAC;EAC5B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,UAAU,CAACN,IAAI,CAAC;AACvB;AAEO,MAAMsC,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGT,aAAa;AACpC,MAAMW,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAGX,aAAa;AAEpC,SAASY,gBAAgBA,CAAgBzC,IAAwB,EAAE;EACxE,IAAI,CAACC,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,EAAEnB,IAAI,CAAC;EAC3B,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACQ,IAAI,EAAER,IAAI,CAAC;EAC3B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACuC,SAAS,CAAC,CAAC;AAClB;AAEA,SAASC,0BAA0BA,CACjCC,OAAgB,EAChB5C,IAAY,EACZ6C,MAAc,EACdC,OAAgB,EAChB;EACA,IAAI9C,IAAI,EAAE;IACR4C,OAAO,CAAC1C,KAAK,CAAC,CAAC;IACf0C,OAAO,CAACG,mBAAmB,CAAC/C,IAAI,EAAE6C,MAAM,EAAEC,OAAO,CAAC;EACpD;EAEAF,OAAO,CAACF,SAAS,CAAC,CAAC;AACrB;AAEO,SAASM,cAAcA,CAAgBhD,IAAyB,EAAE;EACvE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB0C,0BAA0B,CAAC,IAAI,EAAE3C,IAAI,CAACiD,KAAK,EAAEjD,IAAI,EAAE,IAAI,CAAC;AAC1D;AAEO,SAASkD,iBAAiBA,CAAgBlD,IAAyB,EAAE;EAC1E,IAAI,CAACC,IAAI,CAAC,UAAU,CAAC;EACrB0C,0BAA0B,CAAC,IAAI,EAAE3C,IAAI,CAACiD,KAAK,EAAEjD,IAAI,EAAE,IAAI,CAAC;AAC1D;AAEO,SAASmD,eAAeA,CAAgBnD,IAAuB,EAAE;EACtE,IAAI,CAACC,IAAI,CAAC,QAAQ,CAAC;EACnB0C,0BAA0B,CAAC,IAAI,EAAE3C,IAAI,CAACoD,QAAQ,EAAEpD,IAAI,EAAE,KAAK,CAAC;AAC9D;AAEO,SAASqD,cAAcA,CAAgBrD,IAAsB,EAAE;EACpE,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB0C,0BAA0B,CAAC,IAAI,EAAE3C,IAAI,CAACoD,QAAQ,EAAEpD,IAAI,EAAE,KAAK,CAAC;AAC9D;AAEO,SAASsD,gBAAgBA,CAAgBtD,IAAwB,EAAE;EACxE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACiD,KAAK,EAAEjD,IAAI,CAAC;EAC5B,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,EAAEnB,IAAI,CAAC;AAC7B;AAEO,SAASuD,YAAYA,CAAgBvD,IAAoB,EAAE;EAChE,IAAI,CAACC,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACwD,KAAK,EAAExD,IAAI,CAAC;EAC5B,IAAI,CAACE,KAAK,CAAC,CAAC;EAMZ,IAAIF,IAAI,CAACyD,QAAQ,EAAE;IAEjB,IAAI,CAACrD,KAAK,CAACJ,IAAI,CAACyD,QAAQ,CAAC,CAAC,CAAC,EAAEzD,IAAI,CAAC;EACpC,CAAC,MAAM;IACL,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC0D,OAAO,EAAE1D,IAAI,CAAC;EAChC;EAEA,IAAIA,IAAI,CAAC2D,SAAS,EAAE;IAClB,IAAI,CAACzD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAAC2D,SAAS,EAAE3D,IAAI,CAAC;EAClC;AACF;AAEO,SAAS4D,WAAWA,CAAgB5D,IAAmB,EAAE;EAC9D,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAIF,IAAI,CAAC6D,KAAK,EAAE;IACd,IAAI,CAAC1D,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC6D,KAAK,EAAE7D,IAAI,CAAC;IAC5B,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC6D,KAAK,CAACC,cAAc,EAAE9D,IAAI,CAAC;IAC3C,IAAI,CAACG,SAAK,GAAI,CAAC;IACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACmB,IAAI,EAAEnB,IAAI,CAAC;AAC7B;AAEO,SAAS+D,eAAeA,CAAgB/D,IAAuB,EAAE;EACtE,IAAI,CAACC,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACgE,YAAY,EAAEhE,IAAI,CAAC;EACnC,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACD,KAAK,CAAC,CAAC;EACZ,IAAI,CAACC,SAAK,IAAI,CAAC;EAEf,IAAI,CAAC8D,aAAa,CAACjE,IAAI,CAACkE,KAAK,EAAElE,IAAI,EAAE;IACnCc,MAAM,EAAE,IAAI;IACZqD,WAAWA,CAACC,OAAO,EAAEC,GAAG,EAAE;MACxB,IAAI,CAACD,OAAO,IAAIpE,IAAI,CAACkE,KAAK,CAAClE,IAAI,CAACkE,KAAK,CAACI,MAAM,GAAG,CAAC,CAAC,KAAKD,GAAG,EAAE,OAAO,CAAC,CAAC;IACtE;EACF,CAAC,CAAC;EAEF,IAAI,CAACE,UAAU,CAACvE,IAAI,CAAC;AACvB;AAEO,SAASwE,UAAUA,CAAgBxE,IAAkB,EAAE;EAC5D,IAAIA,IAAI,CAACQ,IAAI,EAAE;IACb,IAAI,CAACP,IAAI,CAAC,MAAM,CAAC;IACjB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACQ,IAAI,EAAER,IAAI,CAAC;IAC3B,IAAI,CAACG,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IACL,IAAI,CAACF,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACE,SAAK,GAAI,CAAC;EACjB;EAEA,IAAIH,IAAI,CAACY,UAAU,CAAC0D,MAAM,EAAE;IAC1B,IAAI,CAACzD,OAAO,CAAC,CAAC;IACd,IAAI,CAACoD,aAAa,CAACjE,IAAI,CAACY,UAAU,EAAEZ,IAAI,EAAE;MAAEc,MAAM,EAAE;IAAK,CAAC,CAAC;EAC7D;AACF;AAEO,SAAS2D,iBAAiBA,CAAA,EAAgB;EAC/C,IAAI,CAACxE,IAAI,CAAC,UAAU,CAAC;EACrB,IAAI,CAACyC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASgC,mBAAmBA,CAEjC1E,IAA2B,EAC3B6C,MAAc,EACd;EACA,IAAI7C,IAAI,CAAC2E,OAAO,EAAE;IAEhB,IAAI,CAAC1E,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEA,MAAM;IAAE0E;EAAK,CAAC,GAAG5E,IAAI;EACrB,IAAI4E,IAAI,KAAK,aAAa,EAAE;IAC1B,IAAI,CAAC3E,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC;EAC1B,CAAC,MAAM;IACL,IAAI,CAACA,IAAI,CAAC2E,IAAI,EAAEA,IAAI,KAAK,OAAO,CAAC;EACnC;EACA,IAAI,CAAC1E,KAAK,CAAC,CAAC;EAEZ,IAAI2E,QAAQ,GAAG,KAAK;EAEpB,IAAI,CAAClF,KAAK,CAACkD,MAAM,CAAC,EAAE;IAClB,KAAK,MAAMiC,MAAM,IAAI9E,IAAI,CAAC+E,YAAY,EAAE;MACtC,IAAID,MAAM,CAACpD,IAAI,EAAE;QAEfmD,QAAQ,GAAG,IAAI;MACjB;IACF;EACF;EAcA,IAAI,CAACG,SAAS,CAAChF,IAAI,CAAC+E,YAAY,EAAE/E,IAAI,EAAE;IACtCiF,SAAS,EAAEJ,QAAQ,GACf,YAAyB;MACvB,IAAI,CAAC1E,SAAK,GAAI,CAAC;MACf,IAAI,CAACU,OAAO,CAAC,CAAC;IAChB,CAAC,GACDqE,SAAS;IACbpE,MAAM,EAAEd,IAAI,CAAC+E,YAAY,CAACT,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG;EAChD,CAAC,CAAC;EAEF,IAAI3E,KAAK,CAACkD,MAAM,CAAC,EAAE;IAEjB,IAAIjD,cAAc,CAACiD,MAAM,CAAC,EAAE;MAC1B,IAAIA,MAAM,CAACnB,IAAI,KAAK1B,IAAI,EAAE;IAC5B,CAAC,MAAM;MACL,IAAI6C,MAAM,CAACT,IAAI,KAAKpC,IAAI,EAAE;IAC5B;EACF;EAEA,IAAI,CAAC0C,SAAS,CAAC,CAAC;AAClB;AAEO,SAASyC,kBAAkBA,CAAgBnF,IAA0B,EAAE;EAC5E,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACoF,EAAE,EAAEpF,IAAI,CAAC;EACzB,IAAIA,IAAI,CAACqF,QAAQ,EAAE,IAAI,CAAClF,SAAK,GAAI,CAAC;EAElC,IAAI,CAACC,KAAK,CAACJ,IAAI,CAACoF,EAAE,CAACtB,cAAc,EAAE9D,IAAI,CAAC;EACxC,IAAIA,IAAI,CAAC0B,IAAI,EAAE;IACb,IAAI,CAACxB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAK,GAAI,CAAC;IACf,IAAI,CAACD,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAAC0B,IAAI,EAAE1B,IAAI,CAAC;EAC7B;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/template-literals.js b/node_modules/@babel/generator/lib/generators/template-literals.js index 0e4b6a91a..a5f02d412 100644 --- a/node_modules/@babel/generator/lib/generators/template-literals.js +++ b/node_modules/@babel/generator/lib/generators/template-literals.js @@ -6,35 +6,26 @@ Object.defineProperty(exports, "__esModule", { exports.TaggedTemplateExpression = TaggedTemplateExpression; exports.TemplateElement = TemplateElement; exports.TemplateLiteral = TemplateLiteral; -exports._printTemplate = _printTemplate; function TaggedTemplateExpression(node) { - this.print(node.tag); - { - this.print(node.typeParameters); - } - this.print(node.quasi); + this.print(node.tag, node); + this.print(node.typeParameters, node); + this.print(node.quasi, node); } function TemplateElement() { throw new Error("TemplateElement printing is handled in TemplateLiteral"); } -function _printTemplate(node, substitutions) { +function TemplateLiteral(node) { const quasis = node.quasis; let partRaw = "`"; - for (let i = 0; i < quasis.length - 1; i++) { + for (let i = 0; i < quasis.length; i++) { partRaw += quasis[i].value.raw; - this.token(partRaw + "${", true); - this.print(substitutions[i]); - partRaw = "}"; - if (this.tokenMap) { - const token = this.tokenMap.findMatching(node, "}", i); - if (token) this._catchUpTo(token.loc.start); + if (i + 1 < quasis.length) { + this.token(partRaw + "${", true); + this.print(node.expressions[i], node); + partRaw = "}"; } } - partRaw += quasis[quasis.length - 1].value.raw; this.token(partRaw + "`", true); } -function TemplateLiteral(node) { - this._printTemplate(node, node.expressions); -} //# sourceMappingURL=template-literals.js.map diff --git a/node_modules/@babel/generator/lib/generators/template-literals.js.map b/node_modules/@babel/generator/lib/generators/template-literals.js.map index 26bd4e943..cac4884b5 100644 --- a/node_modules/@babel/generator/lib/generators/template-literals.js.map +++ b/node_modules/@babel/generator/lib/generators/template-literals.js.map @@ -1 +1 @@ -{"version":3,"names":["TaggedTemplateExpression","node","print","tag","typeParameters","quasi","TemplateElement","Error","_printTemplate","substitutions","quasis","partRaw","i","length","value","raw","token","tokenMap","findMatching","_catchUpTo","loc","start","TemplateLiteral","expressions"],"sources":["../../src/generators/template-literals.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TaggedTemplateExpression(\n this: Printer,\n node: t.TaggedTemplateExpression,\n) {\n this.print(node.tag);\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n this.print(node.typeArguments);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n this.print(node.typeParameters);\n }\n this.print(node.quasi);\n}\n\nexport function TemplateElement(this: Printer) {\n throw new Error(\"TemplateElement printing is handled in TemplateLiteral\");\n}\n\nexport type TemplateLiteralBase = t.Node & {\n quasis: t.TemplateElement[];\n};\n\nexport function _printTemplate(\n this: Printer,\n node: TemplateLiteralBase,\n substitutions: T[],\n) {\n const quasis = node.quasis;\n let partRaw = \"`\";\n for (let i = 0; i < quasis.length - 1; i++) {\n partRaw += quasis[i].value.raw;\n this.token(partRaw + \"${\", true);\n this.print(substitutions[i]);\n partRaw = \"}\";\n\n // In Babel 7 we have individual tokens for ${ and }, so the automatic\n // catchup logic does not work. Manually look for those tokens.\n if (!process.env.BABEL_8_BREAKING && this.tokenMap) {\n const token = this.tokenMap.findMatching(node, \"}\", i);\n if (token) this._catchUpTo(token.loc.start);\n }\n }\n partRaw += quasis[quasis.length - 1].value.raw;\n this.token(partRaw + \"`\", true);\n}\n\nexport function TemplateLiteral(this: Printer, node: t.TemplateLiteral) {\n this._printTemplate(node, node.expressions);\n}\n"],"mappings":";;;;;;;;;AAGO,SAASA,wBAAwBA,CAEtCC,IAAgC,EAChC;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,GAAG,CAAC;EAIb;IAEL,IAAI,CAACD,KAAK,CAACD,IAAI,CAACG,cAAc,CAAC;EACjC;EACA,IAAI,CAACF,KAAK,CAACD,IAAI,CAACI,KAAK,CAAC;AACxB;AAEO,SAASC,eAAeA,CAAA,EAAgB;EAC7C,MAAM,IAAIC,KAAK,CAAC,wDAAwD,CAAC;AAC3E;AAMO,SAASC,cAAcA,CAE5BP,IAAyB,EACzBQ,aAAkB,EAClB;EACA,MAAMC,MAAM,GAAGT,IAAI,CAACS,MAAM;EAC1B,IAAIC,OAAO,GAAG,GAAG;EACjB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,MAAM,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,EAAE,EAAE;IAC1CD,OAAO,IAAID,MAAM,CAACE,CAAC,CAAC,CAACE,KAAK,CAACC,GAAG;IAC9B,IAAI,CAACC,KAAK,CAACL,OAAO,GAAG,IAAI,EAAE,IAAI,CAAC;IAChC,IAAI,CAACT,KAAK,CAACO,aAAa,CAACG,CAAC,CAAC,CAAC;IAC5BD,OAAO,GAAG,GAAG;IAIb,IAAqC,IAAI,CAACM,QAAQ,EAAE;MAClD,MAAMD,KAAK,GAAG,IAAI,CAACC,QAAQ,CAACC,YAAY,CAACjB,IAAI,EAAE,GAAG,EAAEW,CAAC,CAAC;MACtD,IAAII,KAAK,EAAE,IAAI,CAACG,UAAU,CAACH,KAAK,CAACI,GAAG,CAACC,KAAK,CAAC;IAC7C;EACF;EACAV,OAAO,IAAID,MAAM,CAACA,MAAM,CAACG,MAAM,GAAG,CAAC,CAAC,CAACC,KAAK,CAACC,GAAG;EAC9C,IAAI,CAACC,KAAK,CAACL,OAAO,GAAG,GAAG,EAAE,IAAI,CAAC;AACjC;AAEO,SAASW,eAAeA,CAAgBrB,IAAuB,EAAE;EACtE,IAAI,CAACO,cAAc,CAACP,IAAI,EAAEA,IAAI,CAACsB,WAAW,CAAC;AAC7C","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["TaggedTemplateExpression","node","print","tag","typeParameters","quasi","TemplateElement","Error","TemplateLiteral","quasis","partRaw","i","length","value","raw","token","expressions"],"sources":["../../src/generators/template-literals.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TaggedTemplateExpression(\n this: Printer,\n node: t.TaggedTemplateExpression,\n) {\n this.print(node.tag, node);\n this.print(node.typeParameters, node); // TS\n this.print(node.quasi, node);\n}\n\nexport function TemplateElement(this: Printer) {\n throw new Error(\"TemplateElement printing is handled in TemplateLiteral\");\n}\n\nexport function TemplateLiteral(this: Printer, node: t.TemplateLiteral) {\n const quasis = node.quasis;\n\n let partRaw = \"`\";\n\n for (let i = 0; i < quasis.length; i++) {\n partRaw += quasis[i].value.raw;\n\n if (i + 1 < quasis.length) {\n this.token(partRaw + \"${\", true);\n this.print(node.expressions[i], node);\n partRaw = \"}\";\n }\n }\n\n this.token(partRaw + \"`\", true);\n}\n"],"mappings":";;;;;;;;AAGO,SAASA,wBAAwBA,CAEtCC,IAAgC,EAChC;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,GAAG,EAAEF,IAAI,CAAC;EAC1B,IAAI,CAACC,KAAK,CAACD,IAAI,CAACG,cAAc,EAAEH,IAAI,CAAC;EACrC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACI,KAAK,EAAEJ,IAAI,CAAC;AAC9B;AAEO,SAASK,eAAeA,CAAA,EAAgB;EAC7C,MAAM,IAAIC,KAAK,CAAC,wDAAwD,CAAC;AAC3E;AAEO,SAASC,eAAeA,CAAgBP,IAAuB,EAAE;EACtE,MAAMQ,MAAM,GAAGR,IAAI,CAACQ,MAAM;EAE1B,IAAIC,OAAO,GAAG,GAAG;EAEjB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,MAAM,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;IACtCD,OAAO,IAAID,MAAM,CAACE,CAAC,CAAC,CAACE,KAAK,CAACC,GAAG;IAE9B,IAAIH,CAAC,GAAG,CAAC,GAAGF,MAAM,CAACG,MAAM,EAAE;MACzB,IAAI,CAACG,KAAK,CAACL,OAAO,GAAG,IAAI,EAAE,IAAI,CAAC;MAChC,IAAI,CAACR,KAAK,CAACD,IAAI,CAACe,WAAW,CAACL,CAAC,CAAC,EAAEV,IAAI,CAAC;MACrCS,OAAO,GAAG,GAAG;IACf;EACF;EAEA,IAAI,CAACK,KAAK,CAACL,OAAO,GAAG,GAAG,EAAE,IAAI,CAAC;AACjC","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/types.js b/node_modules/@babel/generator/lib/generators/types.js index 7b93067e0..7b9eb1d21 100644 --- a/node_modules/@babel/generator/lib/generators/types.js +++ b/node_modules/@babel/generator/lib/generators/types.js @@ -7,6 +7,7 @@ exports.ArgumentPlaceholder = ArgumentPlaceholder; exports.ArrayPattern = exports.ArrayExpression = ArrayExpression; exports.BigIntLiteral = BigIntLiteral; exports.BooleanLiteral = BooleanLiteral; +exports.DecimalLiteral = DecimalLiteral; exports.Identifier = Identifier; exports.NullLiteral = NullLiteral; exports.NumericLiteral = NumericLiteral; @@ -22,48 +23,34 @@ exports.SpreadElement = exports.RestElement = RestElement; exports.StringLiteral = StringLiteral; exports.TopicReference = TopicReference; exports.TupleExpression = TupleExpression; -exports.VoidPattern = VoidPattern; -exports._getRawIdentifier = _getRawIdentifier; var _t = require("@babel/types"); var _jsesc = require("jsesc"); const { isAssignmentPattern, isIdentifier } = _t; -let lastRawIdentNode = null; -let lastRawIdentResult = ""; -function _getRawIdentifier(node) { - if (node === lastRawIdentNode) return lastRawIdentResult; - lastRawIdentNode = node; - const { - name - } = node; - const token = this.tokenMap.find(node, tok => tok.value === name); - if (token) { - lastRawIdentResult = this._originalCode.slice(token.start, token.end); - return lastRawIdentResult; - } - return lastRawIdentResult = node.name; -} function Identifier(node) { var _node$loc; this.sourceIdentifierName(((_node$loc = node.loc) == null ? void 0 : _node$loc.identifierName) || node.name); - this.word(this.tokenMap ? this._getRawIdentifier(node) : node.name); + this.word(node.name); } function ArgumentPlaceholder() { this.tokenChar(63); } function RestElement(node) { this.token("..."); - this.print(node.argument); + this.print(node.argument, node); } function ObjectExpression(node) { const props = node.properties; this.tokenChar(123); if (props.length) { - const exit = this.enterDelimited(); + const exit = this.enterForStatementInit(false); this.space(); - this.printList(props, this.shouldPrintTrailingComma("}"), true, true); + this.printList(props, node, { + indent: true, + statement: true + }); this.space(); exit(); } @@ -71,46 +58,44 @@ function ObjectExpression(node) { this.tokenChar(125); } function ObjectMethod(node) { - this.printJoin(node.decorators); + this.printJoin(node.decorators, node); this._methodHead(node); this.space(); - this.print(node.body); + this.print(node.body, node); } function ObjectProperty(node) { - this.printJoin(node.decorators); + this.printJoin(node.decorators, node); if (node.computed) { this.tokenChar(91); - this.print(node.key); + this.print(node.key, node); this.tokenChar(93); } else { if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) { - this.print(node.value); + this.print(node.value, node); return; } - this.print(node.key); + this.print(node.key, node); if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) { return; } } this.tokenChar(58); this.space(); - this.print(node.value); + this.print(node.value, node); } function ArrayExpression(node) { const elems = node.elements; const len = elems.length; this.tokenChar(91); - const exit = this.enterDelimited(); + const exit = this.enterForStatementInit(false); for (let i = 0; i < elems.length; i++) { const elem = elems[i]; if (elem) { if (i > 0) this.space(); - this.print(elem); - if (i < len - 1 || this.shouldPrintTrailingComma("]")) { - this.token(",", false, i); - } + this.print(elem, node); + if (i < len - 1) this.tokenChar(44); } else { - this.token(",", false, i); + this.tokenChar(44); } } exit(); @@ -134,7 +119,10 @@ function RecordExpression(node) { this.token(startToken); if (props.length) { this.space(); - this.printList(props, this.shouldPrintTrailingComma(endToken), true, true); + this.printList(props, node, { + indent: true, + statement: true + }); this.space(); } this.token(endToken); @@ -160,10 +148,8 @@ function TupleExpression(node) { const elem = elems[i]; if (elem) { if (i > 0) this.space(); - this.print(elem); - if (i < len - 1 || this.shouldPrintTrailingComma(endToken)) { - this.token(",", false, i); - } + this.print(elem, node); + if (i < len - 1) this.tokenChar(44); } } this.token(endToken); @@ -209,6 +195,14 @@ function BigIntLiteral(node) { } this.word(node.value + "n"); } +function DecimalLiteral(node) { + const raw = this.getPossibleRaw(node); + if (!this.format.minified && raw !== undefined) { + this.word(raw); + return; + } + this.word(node.value + "m"); +} const validTopicTokenSet = new Set(["^^", "@@", "^", "%", "#"]); function TopicReference() { const { @@ -223,16 +217,13 @@ function TopicReference() { } } function PipelineTopicExpression(node) { - this.print(node.expression); + this.print(node.expression, node); } function PipelineBareFunction(node) { - this.print(node.callee); + this.print(node.callee, node); } function PipelinePrimaryTopicReference() { this.tokenChar(35); } -function VoidPattern() { - this.word("void"); -} //# sourceMappingURL=types.js.map diff --git a/node_modules/@babel/generator/lib/generators/types.js.map b/node_modules/@babel/generator/lib/generators/types.js.map index 4dce12035..28eb75253 100644 --- a/node_modules/@babel/generator/lib/generators/types.js.map +++ b/node_modules/@babel/generator/lib/generators/types.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_jsesc","isAssignmentPattern","isIdentifier","lastRawIdentNode","lastRawIdentResult","_getRawIdentifier","node","name","token","tokenMap","find","tok","value","_originalCode","slice","start","end","Identifier","_node$loc","sourceIdentifierName","loc","identifierName","word","ArgumentPlaceholder","RestElement","print","argument","ObjectExpression","props","properties","length","exit","enterDelimited","space","printList","shouldPrintTrailingComma","sourceWithOffset","ObjectMethod","printJoin","decorators","_methodHead","body","ObjectProperty","computed","key","left","shorthand","ArrayExpression","elems","elements","len","i","elem","RecordExpression","startToken","endToken","format","recordAndTupleSyntaxType","Error","JSON","stringify","TupleExpression","RegExpLiteral","pattern","flags","BooleanLiteral","NullLiteral","NumericLiteral","raw","getPossibleRaw","opts","jsescOption","str","numbers","number","jsesc","minified","StringLiteral","undefined","val","BigIntLiteral","validTopicTokenSet","Set","TopicReference","topicToken","has","givenTopicTokenJSON","validTopics","Array","from","v","join","PipelineTopicExpression","expression","PipelineBareFunction","callee","PipelinePrimaryTopicReference","VoidPattern"],"sources":["../../src/generators/types.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport { isAssignmentPattern, isIdentifier } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport jsesc from \"jsesc\";\n\nlet lastRawIdentNode: t.Identifier | null = null;\nlet lastRawIdentResult: string = \"\";\nexport function _getRawIdentifier(this: Printer, node: t.Identifier) {\n if (node === lastRawIdentNode) return lastRawIdentResult;\n lastRawIdentNode = node;\n\n const { name } = node;\n const token = this.tokenMap.find(node, tok => tok.value === name);\n if (token) {\n lastRawIdentResult = this._originalCode.slice(token.start, token.end);\n return lastRawIdentResult;\n }\n return (lastRawIdentResult = node.name);\n}\n\nexport function Identifier(this: Printer, node: t.Identifier) {\n this.sourceIdentifierName(node.loc?.identifierName || node.name);\n\n this.word(this.tokenMap ? this._getRawIdentifier(node) : node.name);\n}\n\nexport function ArgumentPlaceholder(this: Printer) {\n this.token(\"?\");\n}\n\nexport function RestElement(this: Printer, node: t.RestElement) {\n this.token(\"...\");\n this.print(node.argument);\n}\n\nexport { RestElement as SpreadElement };\n\nexport function ObjectExpression(this: Printer, node: t.ObjectExpression) {\n const props = node.properties;\n\n this.token(\"{\");\n\n if (props.length) {\n const exit = this.enterDelimited();\n this.space();\n this.printList(props, this.shouldPrintTrailingComma(\"}\"), true, true);\n this.space();\n exit();\n }\n\n this.sourceWithOffset(\"end\", node.loc, -1);\n\n this.token(\"}\");\n}\n\nexport { ObjectExpression as ObjectPattern };\n\nexport function ObjectMethod(this: Printer, node: t.ObjectMethod) {\n this.printJoin(node.decorators);\n this._methodHead(node);\n this.space();\n this.print(node.body);\n}\n\nexport function ObjectProperty(this: Printer, node: t.ObjectProperty) {\n this.printJoin(node.decorators);\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key);\n this.token(\"]\");\n } else {\n // print `({ foo: foo = 5 } = {})` as `({ foo = 5 } = {});`\n if (\n isAssignmentPattern(node.value) &&\n isIdentifier(node.key) &&\n // @ts-expect-error todo(flow->ts) `.name` does not exist on some types in union\n node.key.name === node.value.left.name\n ) {\n this.print(node.value);\n return;\n }\n\n this.print(node.key);\n\n // shorthand!\n if (\n node.shorthand &&\n isIdentifier(node.key) &&\n isIdentifier(node.value) &&\n node.key.name === node.value.name\n ) {\n return;\n }\n }\n\n this.token(\":\");\n this.space();\n this.print(node.value);\n}\n\nexport function ArrayExpression(this: Printer, node: t.ArrayExpression) {\n const elems = node.elements;\n const len = elems.length;\n\n this.token(\"[\");\n\n const exit = this.enterDelimited();\n\n for (let i = 0; i < elems.length; i++) {\n const elem = elems[i];\n if (elem) {\n if (i > 0) this.space();\n this.print(elem);\n if (i < len - 1 || this.shouldPrintTrailingComma(\"]\")) {\n this.token(\",\", false, i);\n }\n } else {\n // If the array expression ends with a hole, that hole\n // will be ignored by the interpreter, but if it ends with\n // two (or more) holes, we need to write out two (or more)\n // commas so that the resulting code is interpreted with\n // both (all) of the holes.\n this.token(\",\", false, i);\n }\n }\n\n exit();\n\n this.token(\"]\");\n}\n\nexport { ArrayExpression as ArrayPattern };\n\nexport function RecordExpression(this: Printer, node: t.RecordExpression) {\n const props = node.properties;\n\n let startToken;\n let endToken;\n if (process.env.BABEL_8_BREAKING) {\n startToken = \"#{\";\n endToken = \"}\";\n } else {\n if (this.format.recordAndTupleSyntaxType === \"bar\") {\n startToken = \"{|\";\n endToken = \"|}\";\n } else if (\n this.format.recordAndTupleSyntaxType !== \"hash\" &&\n this.format.recordAndTupleSyntaxType != null\n ) {\n throw new Error(\n `The \"recordAndTupleSyntaxType\" generator option must be \"bar\" or \"hash\" (${JSON.stringify(\n this.format.recordAndTupleSyntaxType,\n )} received).`,\n );\n } else {\n startToken = \"#{\";\n endToken = \"}\";\n }\n }\n\n this.token(startToken);\n\n if (props.length) {\n this.space();\n this.printList(props, this.shouldPrintTrailingComma(endToken), true, true);\n this.space();\n }\n this.token(endToken);\n}\n\nexport function TupleExpression(this: Printer, node: t.TupleExpression) {\n const elems = node.elements;\n const len = elems.length;\n\n let startToken;\n let endToken;\n if (process.env.BABEL_8_BREAKING) {\n startToken = \"#[\";\n endToken = \"]\";\n } else {\n if (this.format.recordAndTupleSyntaxType === \"bar\") {\n startToken = \"[|\";\n endToken = \"|]\";\n } else if (this.format.recordAndTupleSyntaxType === \"hash\") {\n startToken = \"#[\";\n endToken = \"]\";\n } else {\n throw new Error(\n `${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`,\n );\n }\n }\n\n this.token(startToken);\n\n for (let i = 0; i < elems.length; i++) {\n const elem = elems[i];\n if (elem) {\n if (i > 0) this.space();\n this.print(elem);\n if (i < len - 1 || this.shouldPrintTrailingComma(endToken)) {\n this.token(\",\", false, i);\n }\n }\n }\n\n this.token(endToken);\n}\n\nexport function RegExpLiteral(this: Printer, node: t.RegExpLiteral) {\n this.word(`/${node.pattern}/${node.flags}`);\n}\n\nexport function BooleanLiteral(this: Printer, node: t.BooleanLiteral) {\n this.word(node.value ? \"true\" : \"false\");\n}\n\nexport function NullLiteral(this: Printer) {\n this.word(\"null\");\n}\n\nexport function NumericLiteral(this: Printer, node: t.NumericLiteral) {\n const raw = this.getPossibleRaw(node);\n const opts = this.format.jsescOption;\n const value = node.value;\n const str = value + \"\";\n if (opts.numbers) {\n this.number(jsesc(value, opts), value);\n } else if (raw == null) {\n this.number(str, value); // normalize\n } else if (this.format.minified) {\n this.number(raw.length < str.length ? raw : str, value);\n } else {\n this.number(raw, value);\n }\n}\n\nexport function StringLiteral(this: Printer, node: t.StringLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.token(raw);\n return;\n }\n\n const val = jsesc(node.value, this.format.jsescOption);\n\n this.token(val);\n}\n\nexport function BigIntLiteral(this: Printer, node: t.BigIntLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.word(raw);\n return;\n }\n this.word(node.value + \"n\");\n}\n\n// Hack pipe operator\nconst validTopicTokenSet = new Set([\"^^\", \"@@\", \"^\", \"%\", \"#\"]);\nexport function TopicReference(this: Printer) {\n const { topicToken } = this.format;\n\n if (validTopicTokenSet.has(topicToken)) {\n this.token(topicToken);\n } else {\n const givenTopicTokenJSON = JSON.stringify(topicToken);\n const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v));\n throw new Error(\n `The \"topicToken\" generator option must be one of ` +\n `${validTopics.join(\", \")} (${givenTopicTokenJSON} received instead).`,\n );\n }\n}\n\n// Smart-mix pipe operator\nexport function PipelineTopicExpression(\n this: Printer,\n node: t.PipelineTopicExpression,\n) {\n this.print(node.expression);\n}\n\nexport function PipelineBareFunction(\n this: Printer,\n node: t.PipelineBareFunction,\n) {\n this.print(node.callee);\n}\n\nexport function PipelinePrimaryTopicReference(this: Printer) {\n this.token(\"#\");\n}\n\n// discard binding\nexport function VoidPattern(this: Printer) {\n this.word(\"void\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAA0B;EAFjBE,mBAAmB;EAAEC;AAAY,IAAAJ,EAAA;AAI1C,IAAIK,gBAAqC,GAAG,IAAI;AAChD,IAAIC,kBAA0B,GAAG,EAAE;AAC5B,SAASC,iBAAiBA,CAAgBC,IAAkB,EAAE;EACnE,IAAIA,IAAI,KAAKH,gBAAgB,EAAE,OAAOC,kBAAkB;EACxDD,gBAAgB,GAAGG,IAAI;EAEvB,MAAM;IAAEC;EAAK,CAAC,GAAGD,IAAI;EACrB,MAAME,KAAK,GAAG,IAAI,CAACC,QAAQ,CAACC,IAAI,CAACJ,IAAI,EAAEK,GAAG,IAAIA,GAAG,CAACC,KAAK,KAAKL,IAAI,CAAC;EACjE,IAAIC,KAAK,EAAE;IACTJ,kBAAkB,GAAG,IAAI,CAACS,aAAa,CAACC,KAAK,CAACN,KAAK,CAACO,KAAK,EAAEP,KAAK,CAACQ,GAAG,CAAC;IACrE,OAAOZ,kBAAkB;EAC3B;EACA,OAAQA,kBAAkB,GAAGE,IAAI,CAACC,IAAI;AACxC;AAEO,SAASU,UAAUA,CAAgBX,IAAkB,EAAE;EAAA,IAAAY,SAAA;EAC5D,IAAI,CAACC,oBAAoB,CAAC,EAAAD,SAAA,GAAAZ,IAAI,CAACc,GAAG,qBAARF,SAAA,CAAUG,cAAc,KAAIf,IAAI,CAACC,IAAI,CAAC;EAEhE,IAAI,CAACe,IAAI,CAAC,IAAI,CAACb,QAAQ,GAAG,IAAI,CAACJ,iBAAiB,CAACC,IAAI,CAAC,GAAGA,IAAI,CAACC,IAAI,CAAC;AACrE;AAEO,SAASgB,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAACf,SAAK,GAAI,CAAC;AACjB;AAEO,SAASgB,WAAWA,CAAgBlB,IAAmB,EAAE;EAC9D,IAAI,CAACE,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACiB,KAAK,CAACnB,IAAI,CAACoB,QAAQ,CAAC;AAC3B;AAIO,SAASC,gBAAgBA,CAAgBrB,IAAwB,EAAE;EACxE,MAAMsB,KAAK,GAAGtB,IAAI,CAACuB,UAAU;EAE7B,IAAI,CAACrB,SAAK,IAAI,CAAC;EAEf,IAAIoB,KAAK,CAACE,MAAM,EAAE;IAChB,MAAMC,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;IAClC,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAS,CAACN,KAAK,EAAE,IAAI,CAACO,wBAAwB,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IACrE,IAAI,CAACF,KAAK,CAAC,CAAC;IACZF,IAAI,CAAC,CAAC;EACR;EAEA,IAAI,CAACK,gBAAgB,CAAC,KAAK,EAAE9B,IAAI,CAACc,GAAG,EAAE,CAAC,CAAC,CAAC;EAE1C,IAAI,CAACZ,SAAK,IAAI,CAAC;AACjB;AAIO,SAAS6B,YAAYA,CAAgB/B,IAAoB,EAAE;EAChE,IAAI,CAACgC,SAAS,CAAChC,IAAI,CAACiC,UAAU,CAAC;EAC/B,IAAI,CAACC,WAAW,CAAClC,IAAI,CAAC;EACtB,IAAI,CAAC2B,KAAK,CAAC,CAAC;EACZ,IAAI,CAACR,KAAK,CAACnB,IAAI,CAACmC,IAAI,CAAC;AACvB;AAEO,SAASC,cAAcA,CAAgBpC,IAAsB,EAAE;EACpE,IAAI,CAACgC,SAAS,CAAChC,IAAI,CAACiC,UAAU,CAAC;EAE/B,IAAIjC,IAAI,CAACqC,QAAQ,EAAE;IACjB,IAAI,CAACnC,SAAK,GAAI,CAAC;IACf,IAAI,CAACiB,KAAK,CAACnB,IAAI,CAACsC,GAAG,CAAC;IACpB,IAAI,CAACpC,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IAEL,IACEP,mBAAmB,CAACK,IAAI,CAACM,KAAK,CAAC,IAC/BV,YAAY,CAACI,IAAI,CAACsC,GAAG,CAAC,IAEtBtC,IAAI,CAACsC,GAAG,CAACrC,IAAI,KAAKD,IAAI,CAACM,KAAK,CAACiC,IAAI,CAACtC,IAAI,EACtC;MACA,IAAI,CAACkB,KAAK,CAACnB,IAAI,CAACM,KAAK,CAAC;MACtB;IACF;IAEA,IAAI,CAACa,KAAK,CAACnB,IAAI,CAACsC,GAAG,CAAC;IAGpB,IACEtC,IAAI,CAACwC,SAAS,IACd5C,YAAY,CAACI,IAAI,CAACsC,GAAG,CAAC,IACtB1C,YAAY,CAACI,IAAI,CAACM,KAAK,CAAC,IACxBN,IAAI,CAACsC,GAAG,CAACrC,IAAI,KAAKD,IAAI,CAACM,KAAK,CAACL,IAAI,EACjC;MACA;IACF;EACF;EAEA,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACyB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACR,KAAK,CAACnB,IAAI,CAACM,KAAK,CAAC;AACxB;AAEO,SAASmC,eAAeA,CAAgBzC,IAAuB,EAAE;EACtE,MAAM0C,KAAK,GAAG1C,IAAI,CAAC2C,QAAQ;EAC3B,MAAMC,GAAG,GAAGF,KAAK,CAAClB,MAAM;EAExB,IAAI,CAACtB,SAAK,GAAI,CAAC;EAEf,MAAMuB,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAElC,KAAK,IAAImB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAAClB,MAAM,EAAEqB,CAAC,EAAE,EAAE;IACrC,MAAMC,IAAI,GAAGJ,KAAK,CAACG,CAAC,CAAC;IACrB,IAAIC,IAAI,EAAE;MACR,IAAID,CAAC,GAAG,CAAC,EAAE,IAAI,CAAClB,KAAK,CAAC,CAAC;MACvB,IAAI,CAACR,KAAK,CAAC2B,IAAI,CAAC;MAChB,IAAID,CAAC,GAAGD,GAAG,GAAG,CAAC,IAAI,IAAI,CAACf,wBAAwB,CAAC,GAAG,CAAC,EAAE;QACrD,IAAI,CAAC3B,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE2C,CAAC,CAAC;MAC3B;IACF,CAAC,MAAM;MAML,IAAI,CAAC3C,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE2C,CAAC,CAAC;IAC3B;EACF;EAEApB,IAAI,CAAC,CAAC;EAEN,IAAI,CAACvB,SAAK,GAAI,CAAC;AACjB;AAIO,SAAS6C,gBAAgBA,CAAgB/C,IAAwB,EAAE;EACxE,MAAMsB,KAAK,GAAGtB,IAAI,CAACuB,UAAU;EAE7B,IAAIyB,UAAU;EACd,IAAIC,QAAQ;EAIL;IACL,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,KAAK,EAAE;MAClDH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,IAAI;IACjB,CAAC,MAAM,IACL,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,MAAM,IAC/C,IAAI,CAACD,MAAM,CAACC,wBAAwB,IAAI,IAAI,EAC5C;MACA,MAAM,IAAIC,KAAK,CACb,4EAA4EC,IAAI,CAACC,SAAS,CACxF,IAAI,CAACJ,MAAM,CAACC,wBACd,CAAC,aACH,CAAC;IACH,CAAC,MAAM;MACLH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,GAAG;IAChB;EACF;EAEA,IAAI,CAAC/C,KAAK,CAAC8C,UAAU,CAAC;EAEtB,IAAI1B,KAAK,CAACE,MAAM,EAAE;IAChB,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAS,CAACN,KAAK,EAAE,IAAI,CAACO,wBAAwB,CAACoB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAC1E,IAAI,CAACtB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACzB,KAAK,CAAC+C,QAAQ,CAAC;AACtB;AAEO,SAASM,eAAeA,CAAgBvD,IAAuB,EAAE;EACtE,MAAM0C,KAAK,GAAG1C,IAAI,CAAC2C,QAAQ;EAC3B,MAAMC,GAAG,GAAGF,KAAK,CAAClB,MAAM;EAExB,IAAIwB,UAAU;EACd,IAAIC,QAAQ;EAIL;IACL,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,KAAK,EAAE;MAClDH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,IAAI;IACjB,CAAC,MAAM,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,MAAM,EAAE;MAC1DH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,GAAG;IAChB,CAAC,MAAM;MACL,MAAM,IAAIG,KAAK,CACb,GAAG,IAAI,CAACF,MAAM,CAACC,wBAAwB,4CACzC,CAAC;IACH;EACF;EAEA,IAAI,CAACjD,KAAK,CAAC8C,UAAU,CAAC;EAEtB,KAAK,IAAIH,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAAClB,MAAM,EAAEqB,CAAC,EAAE,EAAE;IACrC,MAAMC,IAAI,GAAGJ,KAAK,CAACG,CAAC,CAAC;IACrB,IAAIC,IAAI,EAAE;MACR,IAAID,CAAC,GAAG,CAAC,EAAE,IAAI,CAAClB,KAAK,CAAC,CAAC;MACvB,IAAI,CAACR,KAAK,CAAC2B,IAAI,CAAC;MAChB,IAAID,CAAC,GAAGD,GAAG,GAAG,CAAC,IAAI,IAAI,CAACf,wBAAwB,CAACoB,QAAQ,CAAC,EAAE;QAC1D,IAAI,CAAC/C,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE2C,CAAC,CAAC;MAC3B;IACF;EACF;EAEA,IAAI,CAAC3C,KAAK,CAAC+C,QAAQ,CAAC;AACtB;AAEO,SAASO,aAAaA,CAAgBxD,IAAqB,EAAE;EAClE,IAAI,CAACgB,IAAI,CAAC,IAAIhB,IAAI,CAACyD,OAAO,IAAIzD,IAAI,CAAC0D,KAAK,EAAE,CAAC;AAC7C;AAEO,SAASC,cAAcA,CAAgB3D,IAAsB,EAAE;EACpE,IAAI,CAACgB,IAAI,CAAChB,IAAI,CAACM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1C;AAEO,SAASsD,WAAWA,CAAA,EAAgB;EACzC,IAAI,CAAC5C,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAAS6C,cAAcA,CAAgB7D,IAAsB,EAAE;EACpE,MAAM8D,GAAG,GAAG,IAAI,CAACC,cAAc,CAAC/D,IAAI,CAAC;EACrC,MAAMgE,IAAI,GAAG,IAAI,CAACd,MAAM,CAACe,WAAW;EACpC,MAAM3D,KAAK,GAAGN,IAAI,CAACM,KAAK;EACxB,MAAM4D,GAAG,GAAG5D,KAAK,GAAG,EAAE;EACtB,IAAI0D,IAAI,CAACG,OAAO,EAAE;IAChB,IAAI,CAACC,MAAM,CAACC,MAAK,CAAC/D,KAAK,EAAE0D,IAAI,CAAC,EAAE1D,KAAK,CAAC;EACxC,CAAC,MAAM,IAAIwD,GAAG,IAAI,IAAI,EAAE;IACtB,IAAI,CAACM,MAAM,CAACF,GAAG,EAAE5D,KAAK,CAAC;EACzB,CAAC,MAAM,IAAI,IAAI,CAAC4C,MAAM,CAACoB,QAAQ,EAAE;IAC/B,IAAI,CAACF,MAAM,CAACN,GAAG,CAACtC,MAAM,GAAG0C,GAAG,CAAC1C,MAAM,GAAGsC,GAAG,GAAGI,GAAG,EAAE5D,KAAK,CAAC;EACzD,CAAC,MAAM;IACL,IAAI,CAAC8D,MAAM,CAACN,GAAG,EAAExD,KAAK,CAAC;EACzB;AACF;AAEO,SAASiE,aAAaA,CAAgBvE,IAAqB,EAAE;EAClE,MAAM8D,GAAG,GAAG,IAAI,CAACC,cAAc,CAAC/D,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAACkD,MAAM,CAACoB,QAAQ,IAAIR,GAAG,KAAKU,SAAS,EAAE;IAC9C,IAAI,CAACtE,KAAK,CAAC4D,GAAG,CAAC;IACf;EACF;EAEA,MAAMW,GAAG,GAAGJ,MAAK,CAACrE,IAAI,CAACM,KAAK,EAAE,IAAI,CAAC4C,MAAM,CAACe,WAAW,CAAC;EAEtD,IAAI,CAAC/D,KAAK,CAACuE,GAAG,CAAC;AACjB;AAEO,SAASC,aAAaA,CAAgB1E,IAAqB,EAAE;EAClE,MAAM8D,GAAG,GAAG,IAAI,CAACC,cAAc,CAAC/D,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAACkD,MAAM,CAACoB,QAAQ,IAAIR,GAAG,KAAKU,SAAS,EAAE;IAC9C,IAAI,CAACxD,IAAI,CAAC8C,GAAG,CAAC;IACd;EACF;EACA,IAAI,CAAC9C,IAAI,CAAChB,IAAI,CAACM,KAAK,GAAG,GAAG,CAAC;AAC7B;AAGA,MAAMqE,kBAAkB,GAAG,IAAIC,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACxD,SAASC,cAAcA,CAAA,EAAgB;EAC5C,MAAM;IAAEC;EAAW,CAAC,GAAG,IAAI,CAAC5B,MAAM;EAElC,IAAIyB,kBAAkB,CAACI,GAAG,CAACD,UAAU,CAAC,EAAE;IACtC,IAAI,CAAC5E,KAAK,CAAC4E,UAAU,CAAC;EACxB,CAAC,MAAM;IACL,MAAME,mBAAmB,GAAG3B,IAAI,CAACC,SAAS,CAACwB,UAAU,CAAC;IACtD,MAAMG,WAAW,GAAGC,KAAK,CAACC,IAAI,CAACR,kBAAkB,EAAES,CAAC,IAAI/B,IAAI,CAACC,SAAS,CAAC8B,CAAC,CAAC,CAAC;IAC1E,MAAM,IAAIhC,KAAK,CACb,mDAAmD,GACjD,GAAG6B,WAAW,CAACI,IAAI,CAAC,IAAI,CAAC,KAAKL,mBAAmB,qBACrD,CAAC;EACH;AACF;AAGO,SAASM,uBAAuBA,CAErCtF,IAA+B,EAC/B;EACA,IAAI,CAACmB,KAAK,CAACnB,IAAI,CAACuF,UAAU,CAAC;AAC7B;AAEO,SAASC,oBAAoBA,CAElCxF,IAA4B,EAC5B;EACA,IAAI,CAACmB,KAAK,CAACnB,IAAI,CAACyF,MAAM,CAAC;AACzB;AAEO,SAASC,6BAA6BA,CAAA,EAAgB;EAC3D,IAAI,CAACxF,SAAK,GAAI,CAAC;AACjB;AAGO,SAASyF,WAAWA,CAAA,EAAgB;EACzC,IAAI,CAAC3E,IAAI,CAAC,MAAM,CAAC;AACnB","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_jsesc","isAssignmentPattern","isIdentifier","Identifier","node","_node$loc","sourceIdentifierName","loc","identifierName","name","word","ArgumentPlaceholder","token","RestElement","print","argument","ObjectExpression","props","properties","length","exit","enterForStatementInit","space","printList","indent","statement","sourceWithOffset","ObjectMethod","printJoin","decorators","_methodHead","body","ObjectProperty","computed","key","value","left","shorthand","ArrayExpression","elems","elements","len","i","elem","RecordExpression","startToken","endToken","format","recordAndTupleSyntaxType","Error","JSON","stringify","TupleExpression","RegExpLiteral","pattern","flags","BooleanLiteral","NullLiteral","NumericLiteral","raw","getPossibleRaw","opts","jsescOption","str","numbers","number","jsesc","minified","StringLiteral","undefined","val","BigIntLiteral","DecimalLiteral","validTopicTokenSet","Set","TopicReference","topicToken","has","givenTopicTokenJSON","validTopics","Array","from","v","join","PipelineTopicExpression","expression","PipelineBareFunction","callee","PipelinePrimaryTopicReference"],"sources":["../../src/generators/types.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport { isAssignmentPattern, isIdentifier } from \"@babel/types\";\nimport type * as t from \"@babel/types\";\nimport jsesc from \"jsesc\";\n\nexport function Identifier(this: Printer, node: t.Identifier) {\n this.sourceIdentifierName(node.loc?.identifierName || node.name);\n this.word(node.name);\n}\n\nexport function ArgumentPlaceholder(this: Printer) {\n this.token(\"?\");\n}\n\nexport function RestElement(this: Printer, node: t.RestElement) {\n this.token(\"...\");\n this.print(node.argument, node);\n}\n\nexport { RestElement as SpreadElement };\n\nexport function ObjectExpression(this: Printer, node: t.ObjectExpression) {\n const props = node.properties;\n\n this.token(\"{\");\n\n if (props.length) {\n const exit = this.enterForStatementInit(false);\n this.space();\n this.printList(props, node, { indent: true, statement: true });\n this.space();\n exit();\n }\n\n this.sourceWithOffset(\"end\", node.loc, -1);\n\n this.token(\"}\");\n}\n\nexport { ObjectExpression as ObjectPattern };\n\nexport function ObjectMethod(this: Printer, node: t.ObjectMethod) {\n this.printJoin(node.decorators, node);\n this._methodHead(node);\n this.space();\n this.print(node.body, node);\n}\n\nexport function ObjectProperty(this: Printer, node: t.ObjectProperty) {\n this.printJoin(node.decorators, node);\n\n if (node.computed) {\n this.token(\"[\");\n this.print(node.key, node);\n this.token(\"]\");\n } else {\n // print `({ foo: foo = 5 } = {})` as `({ foo = 5 } = {});`\n if (\n isAssignmentPattern(node.value) &&\n isIdentifier(node.key) &&\n // @ts-expect-error todo(flow->ts) `.name` does not exist on some types in union\n node.key.name === node.value.left.name\n ) {\n this.print(node.value, node);\n return;\n }\n\n this.print(node.key, node);\n\n // shorthand!\n if (\n node.shorthand &&\n isIdentifier(node.key) &&\n isIdentifier(node.value) &&\n node.key.name === node.value.name\n ) {\n return;\n }\n }\n\n this.token(\":\");\n this.space();\n this.print(node.value, node);\n}\n\nexport function ArrayExpression(this: Printer, node: t.ArrayExpression) {\n const elems = node.elements;\n const len = elems.length;\n\n this.token(\"[\");\n\n const exit = this.enterForStatementInit(false);\n\n for (let i = 0; i < elems.length; i++) {\n const elem = elems[i];\n if (elem) {\n if (i > 0) this.space();\n this.print(elem, node);\n if (i < len - 1) this.token(\",\");\n } else {\n // If the array expression ends with a hole, that hole\n // will be ignored by the interpreter, but if it ends with\n // two (or more) holes, we need to write out two (or more)\n // commas so that the resulting code is interpreted with\n // both (all) of the holes.\n this.token(\",\");\n }\n }\n\n exit();\n\n this.token(\"]\");\n}\n\nexport { ArrayExpression as ArrayPattern };\n\nexport function RecordExpression(this: Printer, node: t.RecordExpression) {\n const props = node.properties;\n\n let startToken;\n let endToken;\n if (process.env.BABEL_8_BREAKING) {\n startToken = \"#{\";\n endToken = \"}\";\n } else {\n if (this.format.recordAndTupleSyntaxType === \"bar\") {\n startToken = \"{|\";\n endToken = \"|}\";\n } else if (\n this.format.recordAndTupleSyntaxType !== \"hash\" &&\n this.format.recordAndTupleSyntaxType != null\n ) {\n throw new Error(\n `The \"recordAndTupleSyntaxType\" generator option must be \"bar\" or \"hash\" (${JSON.stringify(\n this.format.recordAndTupleSyntaxType,\n )} received).`,\n );\n } else {\n startToken = \"#{\";\n endToken = \"}\";\n }\n }\n\n this.token(startToken);\n\n if (props.length) {\n this.space();\n this.printList(props, node, { indent: true, statement: true });\n this.space();\n }\n this.token(endToken);\n}\n\nexport function TupleExpression(this: Printer, node: t.TupleExpression) {\n const elems = node.elements;\n const len = elems.length;\n\n let startToken;\n let endToken;\n if (process.env.BABEL_8_BREAKING) {\n startToken = \"#[\";\n endToken = \"]\";\n } else {\n if (this.format.recordAndTupleSyntaxType === \"bar\") {\n startToken = \"[|\";\n endToken = \"|]\";\n } else if (this.format.recordAndTupleSyntaxType === \"hash\") {\n startToken = \"#[\";\n endToken = \"]\";\n } else {\n throw new Error(\n `${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`,\n );\n }\n }\n\n this.token(startToken);\n\n for (let i = 0; i < elems.length; i++) {\n const elem = elems[i];\n if (elem) {\n if (i > 0) this.space();\n this.print(elem, node);\n if (i < len - 1) this.token(\",\");\n }\n }\n\n this.token(endToken);\n}\n\nexport function RegExpLiteral(this: Printer, node: t.RegExpLiteral) {\n this.word(`/${node.pattern}/${node.flags}`);\n}\n\nexport function BooleanLiteral(this: Printer, node: t.BooleanLiteral) {\n this.word(node.value ? \"true\" : \"false\");\n}\n\nexport function NullLiteral(this: Printer) {\n this.word(\"null\");\n}\n\nexport function NumericLiteral(this: Printer, node: t.NumericLiteral) {\n const raw = this.getPossibleRaw(node);\n const opts = this.format.jsescOption;\n const value = node.value;\n const str = value + \"\";\n if (opts.numbers) {\n this.number(jsesc(value, opts), value);\n } else if (raw == null) {\n this.number(str, value); // normalize\n } else if (this.format.minified) {\n this.number(raw.length < str.length ? raw : str, value);\n } else {\n this.number(raw, value);\n }\n}\n\nexport function StringLiteral(this: Printer, node: t.StringLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.token(raw);\n return;\n }\n\n const val = jsesc(node.value, this.format.jsescOption);\n\n this.token(val);\n}\n\nexport function BigIntLiteral(this: Printer, node: t.BigIntLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.word(raw);\n return;\n }\n this.word(node.value + \"n\");\n}\n\nexport function DecimalLiteral(this: Printer, node: t.DecimalLiteral) {\n const raw = this.getPossibleRaw(node);\n if (!this.format.minified && raw !== undefined) {\n this.word(raw);\n return;\n }\n this.word(node.value + \"m\");\n}\n\n// Hack pipe operator\nconst validTopicTokenSet = new Set([\"^^\", \"@@\", \"^\", \"%\", \"#\"]);\nexport function TopicReference(this: Printer) {\n const { topicToken } = this.format;\n\n if (validTopicTokenSet.has(topicToken)) {\n this.token(topicToken);\n } else {\n const givenTopicTokenJSON = JSON.stringify(topicToken);\n const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v));\n throw new Error(\n `The \"topicToken\" generator option must be one of ` +\n `${validTopics.join(\", \")} (${givenTopicTokenJSON} received instead).`,\n );\n }\n}\n\n// Smart-mix pipe operator\nexport function PipelineTopicExpression(\n this: Printer,\n node: t.PipelineTopicExpression,\n) {\n this.print(node.expression, node);\n}\n\nexport function PipelineBareFunction(\n this: Printer,\n node: t.PipelineBareFunction,\n) {\n this.print(node.callee, node);\n}\n\nexport function PipelinePrimaryTopicReference(this: Printer) {\n this.token(\"#\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,EAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAA0B;EAFjBE,mBAAmB;EAAEC;AAAY,IAAAJ,EAAA;AAInC,SAASK,UAAUA,CAAgBC,IAAkB,EAAE;EAAA,IAAAC,SAAA;EAC5D,IAAI,CAACC,oBAAoB,CAAC,EAAAD,SAAA,GAAAD,IAAI,CAACG,GAAG,qBAARF,SAAA,CAAUG,cAAc,KAAIJ,IAAI,CAACK,IAAI,CAAC;EAChE,IAAI,CAACC,IAAI,CAACN,IAAI,CAACK,IAAI,CAAC;AACtB;AAEO,SAASE,mBAAmBA,CAAA,EAAgB;EACjD,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASC,WAAWA,CAAgBT,IAAmB,EAAE;EAC9D,IAAI,CAACQ,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACE,KAAK,CAACV,IAAI,CAACW,QAAQ,EAAEX,IAAI,CAAC;AACjC;AAIO,SAASY,gBAAgBA,CAAgBZ,IAAwB,EAAE;EACxE,MAAMa,KAAK,GAAGb,IAAI,CAACc,UAAU;EAE7B,IAAI,CAACN,SAAK,IAAI,CAAC;EAEf,IAAIK,KAAK,CAACE,MAAM,EAAE;IAChB,MAAMC,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;IAC9C,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAS,CAACN,KAAK,EAAEb,IAAI,EAAE;MAAEoB,MAAM,EAAE,IAAI;MAAEC,SAAS,EAAE;IAAK,CAAC,CAAC;IAC9D,IAAI,CAACH,KAAK,CAAC,CAAC;IACZF,IAAI,CAAC,CAAC;EACR;EAEA,IAAI,CAACM,gBAAgB,CAAC,KAAK,EAAEtB,IAAI,CAACG,GAAG,EAAE,CAAC,CAAC,CAAC;EAE1C,IAAI,CAACK,SAAK,IAAI,CAAC;AACjB;AAIO,SAASe,YAAYA,CAAgBvB,IAAoB,EAAE;EAChE,IAAI,CAACwB,SAAS,CAACxB,IAAI,CAACyB,UAAU,EAAEzB,IAAI,CAAC;EACrC,IAAI,CAAC0B,WAAW,CAAC1B,IAAI,CAAC;EACtB,IAAI,CAACkB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACR,KAAK,CAACV,IAAI,CAAC2B,IAAI,EAAE3B,IAAI,CAAC;AAC7B;AAEO,SAAS4B,cAAcA,CAAgB5B,IAAsB,EAAE;EACpE,IAAI,CAACwB,SAAS,CAACxB,IAAI,CAACyB,UAAU,EAAEzB,IAAI,CAAC;EAErC,IAAIA,IAAI,CAAC6B,QAAQ,EAAE;IACjB,IAAI,CAACrB,SAAK,GAAI,CAAC;IACf,IAAI,CAACE,KAAK,CAACV,IAAI,CAAC8B,GAAG,EAAE9B,IAAI,CAAC;IAC1B,IAAI,CAACQ,SAAK,GAAI,CAAC;EACjB,CAAC,MAAM;IAEL,IACEX,mBAAmB,CAACG,IAAI,CAAC+B,KAAK,CAAC,IAC/BjC,YAAY,CAACE,IAAI,CAAC8B,GAAG,CAAC,IAEtB9B,IAAI,CAAC8B,GAAG,CAACzB,IAAI,KAAKL,IAAI,CAAC+B,KAAK,CAACC,IAAI,CAAC3B,IAAI,EACtC;MACA,IAAI,CAACK,KAAK,CAACV,IAAI,CAAC+B,KAAK,EAAE/B,IAAI,CAAC;MAC5B;IACF;IAEA,IAAI,CAACU,KAAK,CAACV,IAAI,CAAC8B,GAAG,EAAE9B,IAAI,CAAC;IAG1B,IACEA,IAAI,CAACiC,SAAS,IACdnC,YAAY,CAACE,IAAI,CAAC8B,GAAG,CAAC,IACtBhC,YAAY,CAACE,IAAI,CAAC+B,KAAK,CAAC,IACxB/B,IAAI,CAAC8B,GAAG,CAACzB,IAAI,KAAKL,IAAI,CAAC+B,KAAK,CAAC1B,IAAI,EACjC;MACA;IACF;EACF;EAEA,IAAI,CAACG,SAAK,GAAI,CAAC;EACf,IAAI,CAACU,KAAK,CAAC,CAAC;EACZ,IAAI,CAACR,KAAK,CAACV,IAAI,CAAC+B,KAAK,EAAE/B,IAAI,CAAC;AAC9B;AAEO,SAASkC,eAAeA,CAAgBlC,IAAuB,EAAE;EACtE,MAAMmC,KAAK,GAAGnC,IAAI,CAACoC,QAAQ;EAC3B,MAAMC,GAAG,GAAGF,KAAK,CAACpB,MAAM;EAExB,IAAI,CAACP,SAAK,GAAI,CAAC;EAEf,MAAMQ,IAAI,GAAG,IAAI,CAACC,qBAAqB,CAAC,KAAK,CAAC;EAE9C,KAAK,IAAIqB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAACpB,MAAM,EAAEuB,CAAC,EAAE,EAAE;IACrC,MAAMC,IAAI,GAAGJ,KAAK,CAACG,CAAC,CAAC;IACrB,IAAIC,IAAI,EAAE;MACR,IAAID,CAAC,GAAG,CAAC,EAAE,IAAI,CAACpB,KAAK,CAAC,CAAC;MACvB,IAAI,CAACR,KAAK,CAAC6B,IAAI,EAAEvC,IAAI,CAAC;MACtB,IAAIsC,CAAC,GAAGD,GAAG,GAAG,CAAC,EAAE,IAAI,CAAC7B,SAAK,GAAI,CAAC;IAClC,CAAC,MAAM;MAML,IAAI,CAACA,SAAK,GAAI,CAAC;IACjB;EACF;EAEAQ,IAAI,CAAC,CAAC;EAEN,IAAI,CAACR,SAAK,GAAI,CAAC;AACjB;AAIO,SAASgC,gBAAgBA,CAAgBxC,IAAwB,EAAE;EACxE,MAAMa,KAAK,GAAGb,IAAI,CAACc,UAAU;EAE7B,IAAI2B,UAAU;EACd,IAAIC,QAAQ;EAIL;IACL,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,KAAK,EAAE;MAClDH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,IAAI;IACjB,CAAC,MAAM,IACL,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,MAAM,IAC/C,IAAI,CAACD,MAAM,CAACC,wBAAwB,IAAI,IAAI,EAC5C;MACA,MAAM,IAAIC,KAAK,CACb,4EAA4EC,IAAI,CAACC,SAAS,CACxF,IAAI,CAACJ,MAAM,CAACC,wBACd,CAAC,aACH,CAAC;IACH,CAAC,MAAM;MACLH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,GAAG;IAChB;EACF;EAEA,IAAI,CAAClC,KAAK,CAACiC,UAAU,CAAC;EAEtB,IAAI5B,KAAK,CAACE,MAAM,EAAE;IAChB,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACC,SAAS,CAACN,KAAK,EAAEb,IAAI,EAAE;MAAEoB,MAAM,EAAE,IAAI;MAAEC,SAAS,EAAE;IAAK,CAAC,CAAC;IAC9D,IAAI,CAACH,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACV,KAAK,CAACkC,QAAQ,CAAC;AACtB;AAEO,SAASM,eAAeA,CAAgBhD,IAAuB,EAAE;EACtE,MAAMmC,KAAK,GAAGnC,IAAI,CAACoC,QAAQ;EAC3B,MAAMC,GAAG,GAAGF,KAAK,CAACpB,MAAM;EAExB,IAAI0B,UAAU;EACd,IAAIC,QAAQ;EAIL;IACL,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,KAAK,EAAE;MAClDH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,IAAI;IACjB,CAAC,MAAM,IAAI,IAAI,CAACC,MAAM,CAACC,wBAAwB,KAAK,MAAM,EAAE;MAC1DH,UAAU,GAAG,IAAI;MACjBC,QAAQ,GAAG,GAAG;IAChB,CAAC,MAAM;MACL,MAAM,IAAIG,KAAK,CACb,GAAG,IAAI,CAACF,MAAM,CAACC,wBAAwB,4CACzC,CAAC;IACH;EACF;EAEA,IAAI,CAACpC,KAAK,CAACiC,UAAU,CAAC;EAEtB,KAAK,IAAIH,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAACpB,MAAM,EAAEuB,CAAC,EAAE,EAAE;IACrC,MAAMC,IAAI,GAAGJ,KAAK,CAACG,CAAC,CAAC;IACrB,IAAIC,IAAI,EAAE;MACR,IAAID,CAAC,GAAG,CAAC,EAAE,IAAI,CAACpB,KAAK,CAAC,CAAC;MACvB,IAAI,CAACR,KAAK,CAAC6B,IAAI,EAAEvC,IAAI,CAAC;MACtB,IAAIsC,CAAC,GAAGD,GAAG,GAAG,CAAC,EAAE,IAAI,CAAC7B,SAAK,GAAI,CAAC;IAClC;EACF;EAEA,IAAI,CAACA,KAAK,CAACkC,QAAQ,CAAC;AACtB;AAEO,SAASO,aAAaA,CAAgBjD,IAAqB,EAAE;EAClE,IAAI,CAACM,IAAI,CAAC,IAAIN,IAAI,CAACkD,OAAO,IAAIlD,IAAI,CAACmD,KAAK,EAAE,CAAC;AAC7C;AAEO,SAASC,cAAcA,CAAgBpD,IAAsB,EAAE;EACpE,IAAI,CAACM,IAAI,CAACN,IAAI,CAAC+B,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAC1C;AAEO,SAASsB,WAAWA,CAAA,EAAgB;EACzC,IAAI,CAAC/C,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASgD,cAAcA,CAAgBtD,IAAsB,EAAE;EACpE,MAAMuD,GAAG,GAAG,IAAI,CAACC,cAAc,CAACxD,IAAI,CAAC;EACrC,MAAMyD,IAAI,GAAG,IAAI,CAACd,MAAM,CAACe,WAAW;EACpC,MAAM3B,KAAK,GAAG/B,IAAI,CAAC+B,KAAK;EACxB,MAAM4B,GAAG,GAAG5B,KAAK,GAAG,EAAE;EACtB,IAAI0B,IAAI,CAACG,OAAO,EAAE;IAChB,IAAI,CAACC,MAAM,CAACC,MAAK,CAAC/B,KAAK,EAAE0B,IAAI,CAAC,EAAE1B,KAAK,CAAC;EACxC,CAAC,MAAM,IAAIwB,GAAG,IAAI,IAAI,EAAE;IACtB,IAAI,CAACM,MAAM,CAACF,GAAG,EAAE5B,KAAK,CAAC;EACzB,CAAC,MAAM,IAAI,IAAI,CAACY,MAAM,CAACoB,QAAQ,EAAE;IAC/B,IAAI,CAACF,MAAM,CAACN,GAAG,CAACxC,MAAM,GAAG4C,GAAG,CAAC5C,MAAM,GAAGwC,GAAG,GAAGI,GAAG,EAAE5B,KAAK,CAAC;EACzD,CAAC,MAAM;IACL,IAAI,CAAC8B,MAAM,CAACN,GAAG,EAAExB,KAAK,CAAC;EACzB;AACF;AAEO,SAASiC,aAAaA,CAAgBhE,IAAqB,EAAE;EAClE,MAAMuD,GAAG,GAAG,IAAI,CAACC,cAAc,CAACxD,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAAC2C,MAAM,CAACoB,QAAQ,IAAIR,GAAG,KAAKU,SAAS,EAAE;IAC9C,IAAI,CAACzD,KAAK,CAAC+C,GAAG,CAAC;IACf;EACF;EAEA,MAAMW,GAAG,GAAGJ,MAAK,CAAC9D,IAAI,CAAC+B,KAAK,EAAE,IAAI,CAACY,MAAM,CAACe,WAAW,CAAC;EAEtD,IAAI,CAAClD,KAAK,CAAC0D,GAAG,CAAC;AACjB;AAEO,SAASC,aAAaA,CAAgBnE,IAAqB,EAAE;EAClE,MAAMuD,GAAG,GAAG,IAAI,CAACC,cAAc,CAACxD,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAAC2C,MAAM,CAACoB,QAAQ,IAAIR,GAAG,KAAKU,SAAS,EAAE;IAC9C,IAAI,CAAC3D,IAAI,CAACiD,GAAG,CAAC;IACd;EACF;EACA,IAAI,CAACjD,IAAI,CAACN,IAAI,CAAC+B,KAAK,GAAG,GAAG,CAAC;AAC7B;AAEO,SAASqC,cAAcA,CAAgBpE,IAAsB,EAAE;EACpE,MAAMuD,GAAG,GAAG,IAAI,CAACC,cAAc,CAACxD,IAAI,CAAC;EACrC,IAAI,CAAC,IAAI,CAAC2C,MAAM,CAACoB,QAAQ,IAAIR,GAAG,KAAKU,SAAS,EAAE;IAC9C,IAAI,CAAC3D,IAAI,CAACiD,GAAG,CAAC;IACd;EACF;EACA,IAAI,CAACjD,IAAI,CAACN,IAAI,CAAC+B,KAAK,GAAG,GAAG,CAAC;AAC7B;AAGA,MAAMsC,kBAAkB,GAAG,IAAIC,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACxD,SAASC,cAAcA,CAAA,EAAgB;EAC5C,MAAM;IAAEC;EAAW,CAAC,GAAG,IAAI,CAAC7B,MAAM;EAElC,IAAI0B,kBAAkB,CAACI,GAAG,CAACD,UAAU,CAAC,EAAE;IACtC,IAAI,CAAChE,KAAK,CAACgE,UAAU,CAAC;EACxB,CAAC,MAAM;IACL,MAAME,mBAAmB,GAAG5B,IAAI,CAACC,SAAS,CAACyB,UAAU,CAAC;IACtD,MAAMG,WAAW,GAAGC,KAAK,CAACC,IAAI,CAACR,kBAAkB,EAAES,CAAC,IAAIhC,IAAI,CAACC,SAAS,CAAC+B,CAAC,CAAC,CAAC;IAC1E,MAAM,IAAIjC,KAAK,CACb,mDAAmD,GACjD,GAAG8B,WAAW,CAACI,IAAI,CAAC,IAAI,CAAC,KAAKL,mBAAmB,qBACrD,CAAC;EACH;AACF;AAGO,SAASM,uBAAuBA,CAErChF,IAA+B,EAC/B;EACA,IAAI,CAACU,KAAK,CAACV,IAAI,CAACiF,UAAU,EAAEjF,IAAI,CAAC;AACnC;AAEO,SAASkF,oBAAoBA,CAElClF,IAA4B,EAC5B;EACA,IAAI,CAACU,KAAK,CAACV,IAAI,CAACmF,MAAM,EAAEnF,IAAI,CAAC;AAC/B;AAEO,SAASoF,6BAA6BA,CAAA,EAAgB;EAC3D,IAAI,CAAC5E,SAAK,GAAI,CAAC;AACjB","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/generators/typescript.js b/node_modules/@babel/generator/lib/generators/typescript.js index 6ebc10782..5d57e58ed 100644 --- a/node_modules/@babel/generator/lib/generators/typescript.js +++ b/node_modules/@babel/generator/lib/generators/typescript.js @@ -9,16 +9,15 @@ exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression; exports.TSBigIntKeyword = TSBigIntKeyword; exports.TSBooleanKeyword = TSBooleanKeyword; exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration; -exports.TSInterfaceHeritage = exports.TSClassImplements = TSClassImplements; exports.TSConditionalType = TSConditionalType; exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration; exports.TSConstructorType = TSConstructorType; exports.TSDeclareFunction = TSDeclareFunction; exports.TSDeclareMethod = TSDeclareMethod; -exports.TSEnumBody = TSEnumBody; exports.TSEnumDeclaration = TSEnumDeclaration; exports.TSEnumMember = TSEnumMember; exports.TSExportAssignment = TSExportAssignment; +exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments; exports.TSExternalModuleReference = TSExternalModuleReference; exports.TSFunctionType = TSFunctionType; exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration; @@ -51,7 +50,6 @@ exports.TSQualifiedName = TSQualifiedName; exports.TSRestType = TSRestType; exports.TSStringKeyword = TSStringKeyword; exports.TSSymbolKeyword = TSSymbolKeyword; -exports.TSTemplateLiteralType = TSTemplateLiteralType; exports.TSThisType = TSThisType; exports.TSTupleType = TSTupleType; exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration; @@ -72,27 +70,22 @@ exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers; exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType; exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName; exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase; -function TSTypeAnnotation(node, parent) { - this.token((parent.type === "TSFunctionType" || parent.type === "TSConstructorType") && parent.typeAnnotation === node ? "=>" : ":"); +exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody; +function TSTypeAnnotation(node) { + this.tokenChar(58); this.space(); if (node.optional) this.tokenChar(63); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function TSTypeParameterInstantiation(node, parent) { this.tokenChar(60); - let printTrailingSeparator = parent.type === "ArrowFunctionExpression" && node.params.length === 1; - if (this.tokenMap && node.start != null && node.end != null) { - printTrailingSeparator && (printTrailingSeparator = !!this.tokenMap.find(node, t => this.tokenMap.matchesOriginal(t, ","))); - printTrailingSeparator || (printTrailingSeparator = this.shouldPrintTrailingComma(">")); + this.printList(node.params, node, {}); + if (parent.type === "ArrowFunctionExpression" && node.params.length === 1) { + this.tokenChar(44); } - this.printList(node.params, printTrailingSeparator); this.tokenChar(62); } function TSTypeParameter(node) { - if (node.const) { - this.word("const"); - this.space(); - } if (node.in) { this.word("in"); this.space(); @@ -106,13 +99,13 @@ function TSTypeParameter(node) { this.space(); this.word("extends"); this.space(); - this.print(node.constraint); + this.print(node.constraint, node); } if (node.default) { this.space(); this.tokenChar(61); this.space(); - this.print(node.default); + this.print(node.default, node); } } function TSParameterProperty(node) { @@ -132,37 +125,26 @@ function TSDeclareFunction(node, parent) { this.space(); } this._functionHead(node, parent); - this.semicolon(); + this.tokenChar(59); } function TSDeclareMethod(node) { this._classMethodHead(node); - this.semicolon(); + this.tokenChar(59); } function TSQualifiedName(node) { - this.print(node.left); + this.print(node.left, node); this.tokenChar(46); - this.print(node.right); + this.print(node.right, node); } function TSCallSignatureDeclaration(node) { this.tsPrintSignatureDeclarationBase(node); - maybePrintTrailingCommaOrSemicolon(this, node); -} -function maybePrintTrailingCommaOrSemicolon(printer, node) { - if (!printer.tokenMap || !node.start || !node.end) { - printer.semicolon(); - return; - } - if (printer.tokenMap.endMatches(node, ",")) { - printer.token(","); - } else if (printer.tokenMap.endMatches(node, ";")) { - printer.semicolon(); - } + this.tokenChar(59); } function TSConstructSignatureDeclaration(node) { this.word("new"); this.space(); this.tsPrintSignatureDeclarationBase(node); - maybePrintTrailingCommaOrSemicolon(this, node); + this.tokenChar(59); } function TSPropertySignature(node) { const { @@ -173,14 +155,14 @@ function TSPropertySignature(node) { this.space(); } this.tsPrintPropertyOrMethodName(node); - this.print(node.typeAnnotation); - maybePrintTrailingCommaOrSemicolon(this, node); + this.print(node.typeAnnotation, node); + this.tokenChar(59); } function tsPrintPropertyOrMethodName(node) { if (node.computed) { this.tokenChar(91); } - this.print(node.key); + this.print(node.key, node); if (node.computed) { this.tokenChar(93); } @@ -198,7 +180,7 @@ function TSMethodSignature(node) { } this.tsPrintPropertyOrMethodName(node); this.tsPrintSignatureDeclarationBase(node); - maybePrintTrailingCommaOrSemicolon(this, node); + this.tokenChar(59); } function TSIndexSignature(node) { const { @@ -214,9 +196,10 @@ function TSIndexSignature(node) { this.space(); } this.tokenChar(91); - this._parameters(node.parameters, "]"); - this.print(node.typeAnnotation); - maybePrintTrailingCommaOrSemicolon(this, node); + this._parameters(node.parameters, node); + this.tokenChar(93); + this.print(node.typeAnnotation, node); + this.tokenChar(59); } function TSAnyKeyword() { this.word("any"); @@ -277,17 +260,19 @@ function tsPrintFunctionOrConstructorType(node) { typeParameters } = node; const parameters = node.parameters; - this.print(typeParameters); + this.print(typeParameters, node); this.tokenChar(40); - this._parameters(parameters, ")"); + this._parameters(parameters, node); + this.tokenChar(41); + this.space(); + this.token("=>"); this.space(); const returnType = node.typeAnnotation; - this.print(returnType); + this.print(returnType.typeAnnotation, node); } function TSTypeReference(node) { - const typeArguments = node.typeParameters; - this.print(node.typeName, !!typeArguments); - this.print(typeArguments); + this.print(node.typeName, node, true); + this.print(node.typeParameters, node, true); } function TSTypePredicate(node) { if (node.asserts) { @@ -306,38 +291,52 @@ function TSTypeQuery(node) { this.word("typeof"); this.space(); this.print(node.exprName); - const typeArguments = node.typeParameters; - if (typeArguments) { - this.print(typeArguments); + if (node.typeParameters) { + this.print(node.typeParameters, node); } } function TSTypeLiteral(node) { - printBraced(this, node, () => this.printJoin(node.members, true, true)); + this.tsPrintTypeLiteralOrInterfaceBody(node.members, node); +} +function tsPrintTypeLiteralOrInterfaceBody(members, node) { + tsPrintBraced(this, members, node); +} +function tsPrintBraced(printer, members, node) { + printer.token("{"); + if (members.length) { + printer.indent(); + printer.newline(); + for (const member of members) { + printer.print(member, node); + printer.newline(); + } + printer.dedent(); + } + printer.rightBrace(node); } function TSArrayType(node) { - this.print(node.elementType, true); - this.tokenChar(91); - this.tokenChar(93); + this.print(node.elementType, node, true); + this.token("[]"); } function TSTupleType(node) { this.tokenChar(91); - this.printList(node.elementTypes, this.shouldPrintTrailingComma("]")); + this.printList(node.elementTypes, node); this.tokenChar(93); } function TSOptionalType(node) { - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); this.tokenChar(63); } function TSRestType(node) { this.token("..."); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function TSNamedTupleMember(node) { - this.print(node.label); + this.print(node.label, node); if (node.optional) this.tokenChar(63); this.tokenChar(58); this.space(); - this.print(node.elementType); + this.print(node.elementType, node); } function TSUnionType(node) { tsPrintUnionOrIntersectionType(this, node, "|"); @@ -346,16 +345,12 @@ function TSIntersectionType(node) { tsPrintUnionOrIntersectionType(this, node, "&"); } function tsPrintUnionOrIntersectionType(printer, node, sep) { - var _printer$tokenMap; - let hasLeadingToken = 0; - if ((_printer$tokenMap = printer.tokenMap) != null && _printer$tokenMap.startMatches(node, sep)) { - hasLeadingToken = 1; - printer.token(sep); - } - printer.printJoin(node.types, undefined, undefined, function (i) { - this.space(); - this.token(sep, null, i + hasLeadingToken); - this.space(); + printer.printJoin(node.types, node, { + separator() { + this.space(); + this.token(sep); + this.space(); + } }); } function TSConditionalType(node) { @@ -374,23 +369,24 @@ function TSConditionalType(node) { this.print(node.falseType); } function TSInferType(node) { - this.word("infer"); + this.token("infer"); + this.space(); this.print(node.typeParameter); } function TSParenthesizedType(node) { this.tokenChar(40); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); this.tokenChar(41); } function TSTypeOperator(node) { this.word(node.operator); this.space(); - this.print(node.typeAnnotation); + this.print(node.typeAnnotation, node); } function TSIndexedAccessType(node) { - this.print(node.objectType, true); + this.print(node.objectType, node, true); this.tokenChar(91); - this.print(node.indexType); + this.print(node.indexType, node); this.tokenChar(93); } function TSMappedType(node) { @@ -398,10 +394,10 @@ function TSMappedType(node) { nameType, optional, readonly, + typeParameter, typeAnnotation } = node; this.tokenChar(123); - const exit = this.enterDelimited(); this.space(); if (readonly) { tokenIfPlusMinus(this, readonly); @@ -409,20 +405,16 @@ function TSMappedType(node) { this.space(); } this.tokenChar(91); - { - this.word(node.typeParameter.name); - } + this.word(typeParameter.name); this.space(); this.word("in"); this.space(); - { - this.print(node.typeParameter.constraint); - } + this.print(typeParameter.constraint, typeParameter); if (nameType) { this.space(); this.word("as"); this.space(); - this.print(nameType); + this.print(nameType, node); } this.tokenChar(93); if (optional) { @@ -432,10 +424,9 @@ function TSMappedType(node) { if (typeAnnotation) { this.tokenChar(58); this.space(); - this.print(typeAnnotation); + this.print(typeAnnotation, node); } this.space(); - exit(); this.tokenChar(125); } function tokenIfPlusMinus(self, tok) { @@ -443,15 +434,12 @@ function tokenIfPlusMinus(self, tok) { self.token(tok); } } -function TSTemplateLiteralType(node) { - this._printTemplate(node, node.types); -} function TSLiteralType(node) { - this.print(node.literal); + this.print(node.literal, node); } -function TSClassImplements(node) { - this.print(node.expression); - this.print(node.typeArguments); +function TSExpressionWithTypeArguments(node) { + this.print(node.expression, node); + this.print(node.typeParameters, node); } function TSInterfaceDeclaration(node) { const { @@ -467,19 +455,19 @@ function TSInterfaceDeclaration(node) { } this.word("interface"); this.space(); - this.print(id); - this.print(typeParameters); + this.print(id, node); + this.print(typeParameters, node); if (extendz != null && extendz.length) { this.space(); this.word("extends"); this.space(); - this.printList(extendz); + this.printList(extendz, node); } this.space(); - this.print(body); + this.print(body, node); } function TSInterfaceBody(node) { - printBraced(this, node, () => this.printJoin(node.body, true, true)); + this.tsPrintTypeLiteralOrInterfaceBody(node.body, node); } function TSTypeAliasDeclaration(node) { const { @@ -494,25 +482,27 @@ function TSTypeAliasDeclaration(node) { } this.word("type"); this.space(); - this.print(id); - this.print(typeParameters); + this.print(id, node); + this.print(typeParameters, node); this.space(); this.tokenChar(61); this.space(); - this.print(typeAnnotation); - this.semicolon(); + this.print(typeAnnotation, node); + this.tokenChar(59); } function TSTypeExpression(node) { + var _expression$trailingC; const { type, expression, typeAnnotation } = node; - this.print(expression, true); + const forceParens = !!((_expression$trailingC = expression.trailingComments) != null && _expression$trailingC.length); + this.print(expression, node, true, undefined, forceParens); this.space(); this.word(type === "TSAsExpression" ? "as" : "satisfies"); this.space(); - this.print(typeAnnotation); + this.print(typeAnnotation, node); } function TSTypeAssertion(node) { const { @@ -520,22 +510,21 @@ function TSTypeAssertion(node) { expression } = node; this.tokenChar(60); - this.print(typeAnnotation); + this.print(typeAnnotation, node); this.tokenChar(62); this.space(); - this.print(expression); + this.print(expression, node); } function TSInstantiationExpression(node) { - this.print(node.expression); - { - this.print(node.typeParameters); - } + this.print(node.expression, node); + this.print(node.typeParameters, node); } function TSEnumDeclaration(node) { const { declare, const: isConst, - id + id, + members } = node; if (declare) { this.word("declare"); @@ -547,112 +536,98 @@ function TSEnumDeclaration(node) { } this.word("enum"); this.space(); - this.print(id); + this.print(id, node); this.space(); - { - TSEnumBody.call(this, node); - } -} -function TSEnumBody(node) { - printBraced(this, node, () => { - var _this$shouldPrintTrai; - return this.printList(node.members, (_this$shouldPrintTrai = this.shouldPrintTrailingComma("}")) != null ? _this$shouldPrintTrai : true, true, true); - }); + tsPrintBraced(this, members, node); } function TSEnumMember(node) { const { id, initializer } = node; - this.print(id); + this.print(id, node); if (initializer) { this.space(); this.tokenChar(61); this.space(); - this.print(initializer); + this.print(initializer, node); } + this.tokenChar(44); } function TSModuleDeclaration(node) { const { declare, - id, - kind + id } = node; if (declare) { this.word("declare"); this.space(); } - { - if (!node.global) { - this.word(kind != null ? kind : id.type === "Identifier" ? "namespace" : "module"); - this.space(); - } - this.print(id); - if (!node.body) { - this.semicolon(); - return; - } - let body = node.body; - while (body.type === "TSModuleDeclaration") { - this.tokenChar(46); - this.print(body.id); - body = body.body; - } + if (!node.global) { + this.word(id.type === "Identifier" ? "namespace" : "module"); this.space(); - this.print(body); } + this.print(id, node); + if (!node.body) { + this.tokenChar(59); + return; + } + let body = node.body; + while (body.type === "TSModuleDeclaration") { + this.tokenChar(46); + this.print(body.id, body); + body = body.body; + } + this.space(); + this.print(body, node); } function TSModuleBlock(node) { - printBraced(this, node, () => this.printSequence(node.body, true)); + tsPrintBraced(this, node.body, node); } function TSImportType(node) { const { argument, qualifier, - options + typeParameters } = node; this.word("import"); this.tokenChar(40); - this.print(argument); - if (options) { - this.tokenChar(44); - this.print(options); - } + this.print(argument, node); this.tokenChar(41); if (qualifier) { this.tokenChar(46); - this.print(qualifier); + this.print(qualifier, node); } - const typeArguments = node.typeParameters; - if (typeArguments) { - this.print(typeArguments); + if (typeParameters) { + this.print(typeParameters, node); } } function TSImportEqualsDeclaration(node) { const { + isExport, id, moduleReference } = node; - if (node.isExport) { + if (isExport) { this.word("export"); this.space(); } this.word("import"); this.space(); - this.print(id); + this.print(id, node); this.space(); this.tokenChar(61); this.space(); - this.print(moduleReference); - this.semicolon(); + this.print(moduleReference, node); + this.tokenChar(59); } function TSExternalModuleReference(node) { this.token("require("); - this.print(node.expression); + this.print(node.expression, node); this.tokenChar(41); } function TSNonNullExpression(node) { - this.print(node.expression); + this.print(node.expression, node); this.tokenChar(33); } function TSExportAssignment(node) { @@ -660,8 +635,8 @@ function TSExportAssignment(node) { this.space(); this.tokenChar(61); this.space(); - this.print(node.expression); - this.semicolon(); + this.print(node.expression, node); + this.tokenChar(59); } function TSNamespaceExportDeclaration(node) { this.word("export"); @@ -670,54 +645,45 @@ function TSNamespaceExportDeclaration(node) { this.space(); this.word("namespace"); this.space(); - this.print(node.id); - this.semicolon(); + this.print(node.id, node); } function tsPrintSignatureDeclarationBase(node) { const { typeParameters } = node; const parameters = node.parameters; - this.print(typeParameters); + this.print(typeParameters, node); this.tokenChar(40); - this._parameters(parameters, ")"); + this._parameters(parameters, node); + this.tokenChar(41); const returnType = node.typeAnnotation; - this.print(returnType); + this.print(returnType, node); } function tsPrintClassMemberModifiers(node) { - const isPrivateField = node.type === "ClassPrivateProperty"; - const isPublicField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty"; - printModifiersList(this, node, [isPublicField && node.declare && "declare", !isPrivateField && node.accessibility]); + const isField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty"; + if (isField && node.declare) { + this.word("declare"); + this.space(); + } + if (node.accessibility) { + this.word(node.accessibility); + this.space(); + } if (node.static) { this.word("static"); this.space(); } - printModifiersList(this, node, [!isPrivateField && node.abstract && "abstract", !isPrivateField && node.override && "override", (isPublicField || isPrivateField) && node.readonly && "readonly"]); -} -function printBraced(printer, node, cb) { - printer.token("{"); - const exit = printer.enterDelimited(); - cb(); - exit(); - printer.rightBrace(node); -} -function printModifiersList(printer, node, modifiers) { - var _printer$tokenMap2; - const modifiersSet = new Set(); - for (const modifier of modifiers) { - if (modifier) modifiersSet.add(modifier); - } - (_printer$tokenMap2 = printer.tokenMap) == null || _printer$tokenMap2.find(node, tok => { - if (modifiersSet.has(tok.value)) { - printer.token(tok.value); - printer.space(); - modifiersSet.delete(tok.value); - return modifiersSet.size === 0; - } - }); - for (const modifier of modifiersSet) { - printer.word(modifier); - printer.space(); + if (node.override) { + this.word("override"); + this.space(); + } + if (node.abstract) { + this.word("abstract"); + this.space(); + } + if (isField && node.readonly) { + this.word("readonly"); + this.space(); } } diff --git a/node_modules/@babel/generator/lib/generators/typescript.js.map b/node_modules/@babel/generator/lib/generators/typescript.js.map index 81caf47bb..f93bde7ff 100644 --- a/node_modules/@babel/generator/lib/generators/typescript.js.map +++ b/node_modules/@babel/generator/lib/generators/typescript.js.map @@ -1 +1 @@ -{"version":3,"names":["TSTypeAnnotation","node","parent","token","type","typeAnnotation","space","optional","print","TSTypeParameterInstantiation","printTrailingSeparator","params","length","tokenMap","start","end","find","t","matchesOriginal","shouldPrintTrailingComma","printList","TSTypeParameter","const","word","in","out","name","constraint","default","TSParameterProperty","accessibility","readonly","_param","parameter","TSDeclareFunction","declare","_functionHead","semicolon","TSDeclareMethod","_classMethodHead","TSQualifiedName","left","right","TSCallSignatureDeclaration","tsPrintSignatureDeclarationBase","maybePrintTrailingCommaOrSemicolon","printer","endMatches","TSConstructSignatureDeclaration","TSPropertySignature","tsPrintPropertyOrMethodName","computed","key","TSMethodSignature","kind","TSIndexSignature","static","isStatic","_parameters","parameters","TSAnyKeyword","TSBigIntKeyword","TSUnknownKeyword","TSNumberKeyword","TSObjectKeyword","TSBooleanKeyword","TSStringKeyword","TSSymbolKeyword","TSVoidKeyword","TSUndefinedKeyword","TSNullKeyword","TSNeverKeyword","TSIntrinsicKeyword","TSThisType","TSFunctionType","tsPrintFunctionOrConstructorType","TSConstructorType","abstract","typeParameters","returnType","TSTypeReference","typeArguments","typeName","TSTypePredicate","asserts","parameterName","TSTypeQuery","exprName","TSTypeLiteral","printBraced","printJoin","members","TSArrayType","elementType","TSTupleType","elementTypes","TSOptionalType","TSRestType","TSNamedTupleMember","label","TSUnionType","tsPrintUnionOrIntersectionType","TSIntersectionType","sep","_printer$tokenMap","hasLeadingToken","startMatches","types","undefined","i","TSConditionalType","checkType","extendsType","trueType","falseType","TSInferType","typeParameter","TSParenthesizedType","TSTypeOperator","operator","TSIndexedAccessType","objectType","indexType","TSMappedType","nameType","exit","enterDelimited","tokenIfPlusMinus","self","tok","TSTemplateLiteralType","_printTemplate","TSLiteralType","literal","TSClassImplements","expression","TSInterfaceDeclaration","id","extends","extendz","body","TSInterfaceBody","TSTypeAliasDeclaration","TSTypeExpression","TSTypeAssertion","TSInstantiationExpression","TSEnumDeclaration","isConst","TSEnumBody","call","_this$shouldPrintTrai","TSEnumMember","initializer","TSModuleDeclaration","global","TSModuleBlock","printSequence","TSImportType","argument","qualifier","options","TSImportEqualsDeclaration","moduleReference","isExport","TSExternalModuleReference","TSNonNullExpression","TSExportAssignment","TSNamespaceExportDeclaration","tsPrintClassMemberModifiers","isPrivateField","isPublicField","printModifiersList","override","cb","rightBrace","modifiers","_printer$tokenMap2","modifiersSet","Set","modifier","add","has","value","delete","size"],"sources":["../../src/generators/typescript.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TSTypeAnnotation(\n this: Printer,\n node: t.TSTypeAnnotation,\n parent: t.Node,\n) {\n // TODO(@nicolo-ribaudo): investigate not including => in the range\n // of the return type of an arrow function type\n this.token(\n (parent.type === \"TSFunctionType\" || parent.type === \"TSConstructorType\") &&\n (process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n parent.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n parent.typeAnnotation) === node\n ? \"=>\"\n : \":\",\n );\n this.space();\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n if (node.optional) this.token(\"?\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSTypeParameterInstantiation(\n this: Printer,\n node: t.TSTypeParameterInstantiation,\n parent: t.Node,\n): void {\n this.token(\"<\");\n\n let printTrailingSeparator =\n parent.type === \"ArrowFunctionExpression\" && node.params.length === 1;\n if (this.tokenMap && node.start != null && node.end != null) {\n // Only force the trailing comma for pre-existing nodes if they\n // already had a comma (either because they were multi-param, or\n // because they had a trailing comma)\n printTrailingSeparator &&= !!this.tokenMap.find(node, t =>\n this.tokenMap.matchesOriginal(t, \",\"),\n );\n // Preserve the trailing comma if it was there before\n printTrailingSeparator ||= this.shouldPrintTrailingComma(\">\");\n }\n\n this.printList(node.params, printTrailingSeparator);\n this.token(\">\");\n}\n\nexport { TSTypeParameterInstantiation as TSTypeParameterDeclaration };\n\nexport function TSTypeParameter(this: Printer, node: t.TSTypeParameter) {\n if (node.const) {\n this.word(\"const\");\n this.space();\n }\n\n if (node.in) {\n this.word(\"in\");\n this.space();\n }\n\n if (node.out) {\n this.word(\"out\");\n this.space();\n }\n\n this.word(\n !process.env.BABEL_8_BREAKING\n ? (node.name as unknown as string)\n : (node.name as unknown as t.Identifier).name,\n );\n\n if (node.constraint) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.constraint);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default);\n }\n}\n\nexport function TSParameterProperty(\n this: Printer,\n node: t.TSParameterProperty,\n) {\n if (node.accessibility) {\n this.word(node.accessibility);\n this.space();\n }\n\n if (node.readonly) {\n this.word(\"readonly\");\n this.space();\n }\n\n this._param(node.parameter);\n}\n\nexport function TSDeclareFunction(\n this: Printer,\n node: t.TSDeclareFunction,\n parent: t.ParentMaps[\"TSDeclareFunction\"],\n) {\n if (node.declare) {\n this.word(\"declare\");\n this.space();\n }\n this._functionHead(node, parent);\n this.semicolon();\n}\n\nexport function TSDeclareMethod(this: Printer, node: t.TSDeclareMethod) {\n this._classMethodHead(node);\n this.semicolon();\n}\n\nexport function TSQualifiedName(this: Printer, node: t.TSQualifiedName) {\n this.print(node.left);\n this.token(\".\");\n this.print(node.right);\n}\n\nexport function TSCallSignatureDeclaration(\n this: Printer,\n node: t.TSCallSignatureDeclaration,\n) {\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nfunction maybePrintTrailingCommaOrSemicolon(printer: Printer, node: t.Node) {\n if (!printer.tokenMap || !node.start || !node.end) {\n printer.semicolon();\n return;\n }\n\n if (printer.tokenMap.endMatches(node, \",\")) {\n printer.token(\",\");\n } else if (printer.tokenMap.endMatches(node, \";\")) {\n printer.semicolon();\n }\n}\n\nexport function TSConstructSignatureDeclaration(\n this: Printer,\n node: t.TSConstructSignatureDeclaration,\n) {\n this.word(\"new\");\n this.space();\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSPropertySignature(\n this: Printer,\n node: t.TSPropertySignature,\n) {\n const { readonly } = node;\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function tsPrintPropertyOrMethodName(\n this: Printer,\n node: t.TSPropertySignature | t.TSMethodSignature,\n) {\n if (node.computed) {\n this.token(\"[\");\n }\n this.print(node.key);\n if (node.computed) {\n this.token(\"]\");\n }\n if (node.optional) {\n this.token(\"?\");\n }\n}\n\nexport function TSMethodSignature(this: Printer, node: t.TSMethodSignature) {\n const { kind } = node;\n if (kind === \"set\" || kind === \"get\") {\n this.word(kind);\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.tsPrintSignatureDeclarationBase(node);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSIndexSignature(this: Printer, node: t.TSIndexSignature) {\n const { readonly, static: isStatic } = node;\n if (isStatic) {\n this.word(\"static\");\n this.space();\n }\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.token(\"[\");\n this._parameters(node.parameters, \"]\");\n this.print(node.typeAnnotation);\n maybePrintTrailingCommaOrSemicolon(this, node);\n}\n\nexport function TSAnyKeyword(this: Printer) {\n this.word(\"any\");\n}\nexport function TSBigIntKeyword(this: Printer) {\n this.word(\"bigint\");\n}\nexport function TSUnknownKeyword(this: Printer) {\n this.word(\"unknown\");\n}\nexport function TSNumberKeyword(this: Printer) {\n this.word(\"number\");\n}\nexport function TSObjectKeyword(this: Printer) {\n this.word(\"object\");\n}\nexport function TSBooleanKeyword(this: Printer) {\n this.word(\"boolean\");\n}\nexport function TSStringKeyword(this: Printer) {\n this.word(\"string\");\n}\nexport function TSSymbolKeyword(this: Printer) {\n this.word(\"symbol\");\n}\nexport function TSVoidKeyword(this: Printer) {\n this.word(\"void\");\n}\nexport function TSUndefinedKeyword(this: Printer) {\n this.word(\"undefined\");\n}\nexport function TSNullKeyword(this: Printer) {\n this.word(\"null\");\n}\nexport function TSNeverKeyword(this: Printer) {\n this.word(\"never\");\n}\nexport function TSIntrinsicKeyword(this: Printer) {\n this.word(\"intrinsic\");\n}\n\nexport function TSThisType(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TSFunctionType(this: Printer, node: t.TSFunctionType) {\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function TSConstructorType(this: Printer, node: t.TSConstructorType) {\n if (node.abstract) {\n this.word(\"abstract\");\n this.space();\n }\n this.word(\"new\");\n this.space();\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function tsPrintFunctionOrConstructorType(\n this: Printer,\n node: t.TSFunctionType | t.TSConstructorType,\n) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.params\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n this.space();\n const returnType = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function TSTypeReference(this: Printer, node: t.TSTypeReference) {\n const typeArguments = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.typeArguments\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeParameters;\n this.print(node.typeName, !!typeArguments);\n this.print(typeArguments);\n}\n\nexport function TSTypePredicate(this: Printer, node: t.TSTypePredicate) {\n if (node.asserts) {\n this.word(\"asserts\");\n this.space();\n }\n this.print(node.parameterName);\n if (node.typeAnnotation) {\n this.space();\n this.word(\"is\");\n this.space();\n this.print(node.typeAnnotation.typeAnnotation);\n }\n}\n\nexport function TSTypeQuery(this: Printer, node: t.TSTypeQuery) {\n this.word(\"typeof\");\n this.space();\n this.print(node.exprName);\n\n const typeArguments = process.env.BABEL_8_BREAKING\n ? //@ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n node.typeArguments\n : //@ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.typeParameters;\n if (typeArguments) {\n this.print(typeArguments);\n }\n}\n\nexport function TSTypeLiteral(this: Printer, node: t.TSTypeLiteral) {\n printBraced(this, node, () => this.printJoin(node.members, true, true));\n}\n\nexport function TSArrayType(this: Printer, node: t.TSArrayType) {\n this.print(node.elementType, true);\n\n this.token(\"[\");\n this.token(\"]\");\n}\n\nexport function TSTupleType(this: Printer, node: t.TSTupleType) {\n this.token(\"[\");\n this.printList(node.elementTypes, this.shouldPrintTrailingComma(\"]\"));\n this.token(\"]\");\n}\n\nexport function TSOptionalType(this: Printer, node: t.TSOptionalType) {\n this.print(node.typeAnnotation);\n this.token(\"?\");\n}\n\nexport function TSRestType(this: Printer, node: t.TSRestType) {\n this.token(\"...\");\n this.print(node.typeAnnotation);\n}\n\nexport function TSNamedTupleMember(this: Printer, node: t.TSNamedTupleMember) {\n this.print(node.label);\n if (node.optional) this.token(\"?\");\n this.token(\":\");\n this.space();\n this.print(node.elementType);\n}\n\nexport function TSUnionType(this: Printer, node: t.TSUnionType) {\n tsPrintUnionOrIntersectionType(this, node, \"|\");\n}\n\nexport function TSIntersectionType(this: Printer, node: t.TSIntersectionType) {\n tsPrintUnionOrIntersectionType(this, node, \"&\");\n}\n\nfunction tsPrintUnionOrIntersectionType(\n printer: Printer,\n node: t.TSUnionType | t.TSIntersectionType,\n sep: \"|\" | \"&\",\n) {\n let hasLeadingToken = 0;\n if (printer.tokenMap?.startMatches(node, sep)) {\n hasLeadingToken = 1;\n printer.token(sep);\n }\n\n printer.printJoin(node.types, undefined, undefined, function (i) {\n this.space();\n this.token(sep, null, i + hasLeadingToken);\n this.space();\n });\n}\n\nexport function TSConditionalType(this: Printer, node: t.TSConditionalType) {\n this.print(node.checkType);\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.extendsType);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.trueType);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.falseType);\n}\n\nexport function TSInferType(this: Printer, node: t.TSInferType) {\n this.word(\"infer\");\n this.print(node.typeParameter);\n}\n\nexport function TSParenthesizedType(\n this: Printer,\n node: t.TSParenthesizedType,\n) {\n this.token(\"(\");\n this.print(node.typeAnnotation);\n this.token(\")\");\n}\n\nexport function TSTypeOperator(this: Printer, node: t.TSTypeOperator) {\n this.word(node.operator);\n this.space();\n this.print(node.typeAnnotation);\n}\n\nexport function TSIndexedAccessType(\n this: Printer,\n node: t.TSIndexedAccessType,\n) {\n this.print(node.objectType, true);\n this.token(\"[\");\n this.print(node.indexType);\n this.token(\"]\");\n}\n\nexport function TSMappedType(this: Printer, node: t.TSMappedType) {\n const { nameType, optional, readonly, typeAnnotation } = node;\n this.token(\"{\");\n const exit = this.enterDelimited();\n this.space();\n if (readonly) {\n tokenIfPlusMinus(this, readonly);\n this.word(\"readonly\");\n this.space();\n }\n\n this.token(\"[\");\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.word(node.key.name);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.word(node.typeParameter.name);\n }\n\n this.space();\n this.word(\"in\");\n this.space();\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n this.print(node.constraint);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(node.typeParameter.constraint);\n }\n\n if (nameType) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(nameType);\n }\n\n this.token(\"]\");\n\n if (optional) {\n tokenIfPlusMinus(this, optional);\n this.token(\"?\");\n }\n\n if (typeAnnotation) {\n this.token(\":\");\n this.space();\n this.print(typeAnnotation);\n }\n this.space();\n exit();\n this.token(\"}\");\n}\n\nfunction tokenIfPlusMinus(self: Printer, tok: true | \"+\" | \"-\") {\n if (tok !== true) {\n self.token(tok);\n }\n}\n\nexport function TSTemplateLiteralType(\n this: Printer,\n node: t.TSTemplateLiteralType,\n) {\n this._printTemplate(node, node.types);\n}\n\nexport function TSLiteralType(this: Printer, node: t.TSLiteralType) {\n this.print(node.literal);\n}\n\nexport function TSClassImplements(\n this: Printer,\n // TODO(Babel 8): Just use t.TSClassImplements\n node: t.Node & {\n expression: t.TSEntityName;\n typeArguments?: t.TSTypeParameterInstantiation;\n },\n) {\n this.print(node.expression);\n this.print(node.typeArguments);\n}\n\nexport { TSClassImplements as TSInterfaceHeritage };\n\nexport function TSInterfaceDeclaration(\n this: Printer,\n node: t.TSInterfaceDeclaration,\n) {\n const { declare, id, typeParameters, extends: extendz, body } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"interface\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n if (extendz?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(extendz);\n }\n this.space();\n this.print(body);\n}\n\nexport function TSInterfaceBody(this: Printer, node: t.TSInterfaceBody) {\n printBraced(this, node, () => this.printJoin(node.body, true, true));\n}\n\nexport function TSTypeAliasDeclaration(\n this: Printer,\n node: t.TSTypeAliasDeclaration,\n) {\n const { declare, id, typeParameters, typeAnnotation } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"type\");\n this.space();\n this.print(id);\n this.print(typeParameters);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(typeAnnotation);\n this.semicolon();\n}\n\nfunction TSTypeExpression(\n this: Printer,\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n) {\n const { type, expression, typeAnnotation } = node;\n this.print(expression, true);\n this.space();\n this.word(type === \"TSAsExpression\" ? \"as\" : \"satisfies\");\n this.space();\n this.print(typeAnnotation);\n}\n\nexport {\n TSTypeExpression as TSAsExpression,\n TSTypeExpression as TSSatisfiesExpression,\n};\n\nexport function TSTypeAssertion(this: Printer, node: t.TSTypeAssertion) {\n const { typeAnnotation, expression } = node;\n this.token(\"<\");\n this.print(typeAnnotation);\n this.token(\">\");\n this.space();\n this.print(expression);\n}\n\nexport function TSInstantiationExpression(\n this: Printer,\n node: t.TSInstantiationExpression,\n) {\n this.print(node.expression);\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n this.print(node.typeArguments);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Removed in Babel 8\n this.print(node.typeParameters);\n }\n}\n\nexport function TSEnumDeclaration(this: Printer, node: t.TSEnumDeclaration) {\n const { declare, const: isConst, id } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n if (isConst) {\n this.word(\"const\");\n this.space();\n }\n this.word(\"enum\");\n this.space();\n this.print(id);\n this.space();\n\n if (process.env.BABEL_8_BREAKING) {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n this.print(node.body);\n } else {\n // cast to TSEnumBody for Babel 7 AST\n TSEnumBody.call(this, node as unknown as t.TSEnumBody);\n }\n}\n\nexport function TSEnumBody(this: Printer, node: t.TSEnumBody) {\n printBraced(this, node, () =>\n this.printList(\n node.members,\n this.shouldPrintTrailingComma(\"}\") ??\n (process.env.BABEL_8_BREAKING ? false : true),\n true,\n true,\n ),\n );\n}\n\nexport function TSEnumMember(this: Printer, node: t.TSEnumMember) {\n const { id, initializer } = node;\n this.print(id);\n if (initializer) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(initializer);\n }\n}\n\nexport function TSModuleDeclaration(\n this: Printer,\n node: t.TSModuleDeclaration,\n) {\n const { declare, id, kind } = node;\n\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n\n if (process.env.BABEL_8_BREAKING) {\n if (kind !== \"global\") {\n this.word(kind);\n this.space();\n }\n\n this.print(node.id);\n if (!node.body) {\n this.semicolon();\n return;\n }\n this.space();\n this.print(node.body);\n } else {\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n if (!node.global) {\n this.word(kind ?? (id.type === \"Identifier\" ? \"namespace\" : \"module\"));\n this.space();\n }\n\n this.print(id);\n\n if (!node.body) {\n this.semicolon();\n return;\n }\n\n let body = node.body;\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n while (body.type === \"TSModuleDeclaration\") {\n this.token(\".\");\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n this.print(body.id);\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n body = body.body;\n }\n\n this.space();\n this.print(body);\n }\n}\n\nexport function TSModuleBlock(this: Printer, node: t.TSModuleBlock) {\n printBraced(this, node, () => this.printSequence(node.body, true));\n}\n\nexport function TSImportType(this: Printer, node: t.TSImportType) {\n const { argument, qualifier, options } = node;\n this.word(\"import\");\n this.token(\"(\");\n this.print(argument);\n if (options) {\n this.token(\",\");\n this.print(options);\n }\n this.token(\")\");\n if (qualifier) {\n this.token(\".\");\n this.print(qualifier);\n }\n const typeArguments = process.env.BABEL_8_BREAKING\n ? //@ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n node.typeArguments\n : //@ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.typeParameters;\n if (typeArguments) {\n this.print(typeArguments);\n }\n}\n\nexport function TSImportEqualsDeclaration(\n this: Printer,\n node: t.TSImportEqualsDeclaration,\n) {\n const { id, moduleReference } = node;\n if (\n !process.env.BABEL_8_BREAKING &&\n // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n node.isExport\n ) {\n this.word(\"export\");\n this.space();\n }\n this.word(\"import\");\n this.space();\n this.print(id);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(moduleReference);\n this.semicolon();\n}\n\nexport function TSExternalModuleReference(\n this: Printer,\n node: t.TSExternalModuleReference,\n) {\n this.token(\"require(\");\n this.print(node.expression);\n this.token(\")\");\n}\n\nexport function TSNonNullExpression(\n this: Printer,\n node: t.TSNonNullExpression,\n) {\n this.print(node.expression);\n this.token(\"!\");\n}\n\nexport function TSExportAssignment(this: Printer, node: t.TSExportAssignment) {\n this.word(\"export\");\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.expression);\n this.semicolon();\n}\n\nexport function TSNamespaceExportDeclaration(\n this: Printer,\n node: t.TSNamespaceExportDeclaration,\n) {\n this.word(\"export\");\n this.space();\n this.word(\"as\");\n this.space();\n this.word(\"namespace\");\n this.space();\n this.print(node.id);\n this.semicolon();\n}\n\nexport function tsPrintSignatureDeclarationBase(this: Printer, node: any) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? node.params\n : node.parameters;\n this.print(typeParameters);\n this.token(\"(\");\n this._parameters(parameters, \")\");\n const returnType = process.env.BABEL_8_BREAKING\n ? node.returnType\n : node.typeAnnotation;\n this.print(returnType);\n}\n\nexport function tsPrintClassMemberModifiers(\n this: Printer,\n node:\n | t.ClassProperty\n | t.ClassAccessorProperty\n | t.ClassPrivateProperty\n | t.ClassMethod\n | t.ClassPrivateMethod\n | t.TSDeclareMethod,\n) {\n const isPrivateField = node.type === \"ClassPrivateProperty\";\n const isPublicField =\n node.type === \"ClassAccessorProperty\" || node.type === \"ClassProperty\";\n printModifiersList(this, node, [\n isPublicField && node.declare && \"declare\",\n !isPrivateField && node.accessibility,\n ]);\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n printModifiersList(this, node, [\n !isPrivateField && node.abstract && \"abstract\",\n !isPrivateField && node.override && \"override\",\n (isPublicField || isPrivateField) && node.readonly && \"readonly\",\n ]);\n}\n\nfunction printBraced(printer: Printer, node: t.Node, cb: () => void) {\n printer.token(\"{\");\n const exit = printer.enterDelimited();\n cb();\n exit();\n printer.rightBrace(node);\n}\n\nfunction printModifiersList(\n printer: Printer,\n node: t.Node,\n modifiers: (string | false | null)[],\n) {\n const modifiersSet = new Set();\n for (const modifier of modifiers) {\n if (modifier) modifiersSet.add(modifier);\n }\n\n printer.tokenMap?.find(node, tok => {\n if (modifiersSet.has(tok.value)) {\n printer.token(tok.value);\n printer.space();\n modifiersSet.delete(tok.value);\n return modifiersSet.size === 0;\n }\n });\n\n for (const modifier of modifiersSet) {\n printer.word(modifier);\n printer.space();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAASA,gBAAgBA,CAE9BC,IAAwB,EACxBC,MAAc,EACd;EAGA,IAAI,CAACC,KAAK,CACR,CAACD,MAAM,CAACE,IAAI,KAAK,gBAAgB,IAAIF,MAAM,CAACE,IAAI,KAAK,mBAAmB,KAKlEF,MAAM,CAACG,cAAc,KAAMJ,IAAI,GACjC,IAAI,GACJ,GACN,CAAC;EACD,IAAI,CAACK,KAAK,CAAC,CAAC;EAEZ,IAAIL,IAAI,CAACM,QAAQ,EAAE,IAAI,CAACJ,SAAK,GAAI,CAAC;EAClC,IAAI,CAACK,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;AACjC;AAEO,SAASI,4BAA4BA,CAE1CR,IAAoC,EACpCC,MAAc,EACR;EACN,IAAI,CAACC,SAAK,GAAI,CAAC;EAEf,IAAIO,sBAAsB,GACxBR,MAAM,CAACE,IAAI,KAAK,yBAAyB,IAAIH,IAAI,CAACU,MAAM,CAACC,MAAM,KAAK,CAAC;EACvE,IAAI,IAAI,CAACC,QAAQ,IAAIZ,IAAI,CAACa,KAAK,IAAI,IAAI,IAAIb,IAAI,CAACc,GAAG,IAAI,IAAI,EAAE;IAI3DL,sBAAsB,KAAtBA,sBAAsB,GAAK,CAAC,CAAC,IAAI,CAACG,QAAQ,CAACG,IAAI,CAACf,IAAI,EAAEgB,CAAC,IACrD,IAAI,CAACJ,QAAQ,CAACK,eAAe,CAACD,CAAC,EAAE,GAAG,CACtC,CAAC;IAEDP,sBAAsB,KAAtBA,sBAAsB,GAAK,IAAI,CAACS,wBAAwB,CAAC,GAAG,CAAC;EAC/D;EAEA,IAAI,CAACC,SAAS,CAACnB,IAAI,CAACU,MAAM,EAAED,sBAAsB,CAAC;EACnD,IAAI,CAACP,SAAK,GAAI,CAAC;AACjB;AAIO,SAASkB,eAAeA,CAAgBpB,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACqB,KAAK,EAAE;IACd,IAAI,CAACC,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAEA,IAAIL,IAAI,CAACuB,EAAE,EAAE;IACX,IAAI,CAACD,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAEA,IAAIL,IAAI,CAACwB,GAAG,EAAE;IACZ,IAAI,CAACF,IAAI,CAAC,KAAK,CAAC;IAChB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACiB,IAAI,CAEFtB,IAAI,CAACyB,IAEZ,CAAC;EAED,IAAIzB,IAAI,CAAC0B,UAAU,EAAE;IACnB,IAAI,CAACrB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACiB,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAAC0B,UAAU,CAAC;EAC7B;EAEA,IAAI1B,IAAI,CAAC2B,OAAO,EAAE;IAChB,IAAI,CAACtB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACH,SAAK,GAAI,CAAC;IACf,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAAC2B,OAAO,CAAC;EAC1B;AACF;AAEO,SAASC,mBAAmBA,CAEjC5B,IAA2B,EAC3B;EACA,IAAIA,IAAI,CAAC6B,aAAa,EAAE;IACtB,IAAI,CAACP,IAAI,CAACtB,IAAI,CAAC6B,aAAa,CAAC;IAC7B,IAAI,CAACxB,KAAK,CAAC,CAAC;EACd;EAEA,IAAIL,IAAI,CAAC8B,QAAQ,EAAE;IACjB,IAAI,CAACR,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAAC0B,MAAM,CAAC/B,IAAI,CAACgC,SAAS,CAAC;AAC7B;AAEO,SAASC,iBAAiBA,CAE/BjC,IAAyB,EACzBC,MAAyC,EACzC;EACA,IAAID,IAAI,CAACkC,OAAO,EAAE;IAChB,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAAC8B,aAAa,CAACnC,IAAI,EAAEC,MAAM,CAAC;EAChC,IAAI,CAACmC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASC,eAAeA,CAAgBrC,IAAuB,EAAE;EACtE,IAAI,CAACsC,gBAAgB,CAACtC,IAAI,CAAC;EAC3B,IAAI,CAACoC,SAAS,CAAC,CAAC;AAClB;AAEO,SAASG,eAAeA,CAAgBvC,IAAuB,EAAE;EACtE,IAAI,CAACO,KAAK,CAACP,IAAI,CAACwC,IAAI,CAAC;EACrB,IAAI,CAACtC,SAAK,GAAI,CAAC;EACf,IAAI,CAACK,KAAK,CAACP,IAAI,CAACyC,KAAK,CAAC;AACxB;AAEO,SAASC,0BAA0BA,CAExC1C,IAAkC,EAClC;EACA,IAAI,CAAC2C,+BAA+B,CAAC3C,IAAI,CAAC;EAC1C4C,kCAAkC,CAAC,IAAI,EAAE5C,IAAI,CAAC;AAChD;AAEA,SAAS4C,kCAAkCA,CAACC,OAAgB,EAAE7C,IAAY,EAAE;EAC1E,IAAI,CAAC6C,OAAO,CAACjC,QAAQ,IAAI,CAACZ,IAAI,CAACa,KAAK,IAAI,CAACb,IAAI,CAACc,GAAG,EAAE;IACjD+B,OAAO,CAACT,SAAS,CAAC,CAAC;IACnB;EACF;EAEA,IAAIS,OAAO,CAACjC,QAAQ,CAACkC,UAAU,CAAC9C,IAAI,EAAE,GAAG,CAAC,EAAE;IAC1C6C,OAAO,CAAC3C,KAAK,CAAC,GAAG,CAAC;EACpB,CAAC,MAAM,IAAI2C,OAAO,CAACjC,QAAQ,CAACkC,UAAU,CAAC9C,IAAI,EAAE,GAAG,CAAC,EAAE;IACjD6C,OAAO,CAACT,SAAS,CAAC,CAAC;EACrB;AACF;AAEO,SAASW,+BAA+BA,CAE7C/C,IAAuC,EACvC;EACA,IAAI,CAACsB,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACsC,+BAA+B,CAAC3C,IAAI,CAAC;EAC1C4C,kCAAkC,CAAC,IAAI,EAAE5C,IAAI,CAAC;AAChD;AAEO,SAASgD,mBAAmBA,CAEjChD,IAA2B,EAC3B;EACA,MAAM;IAAE8B;EAAS,CAAC,GAAG9B,IAAI;EACzB,IAAI8B,QAAQ,EAAE;IACZ,IAAI,CAACR,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAAC4C,2BAA2B,CAACjD,IAAI,CAAC;EACtC,IAAI,CAACO,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;EAC/BwC,kCAAkC,CAAC,IAAI,EAAE5C,IAAI,CAAC;AAChD;AAEO,SAASiD,2BAA2BA,CAEzCjD,IAAiD,EACjD;EACA,IAAIA,IAAI,CAACkD,QAAQ,EAAE;IACjB,IAAI,CAAChD,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACK,KAAK,CAACP,IAAI,CAACmD,GAAG,CAAC;EACpB,IAAInD,IAAI,CAACkD,QAAQ,EAAE;IACjB,IAAI,CAAChD,SAAK,GAAI,CAAC;EACjB;EACA,IAAIF,IAAI,CAACM,QAAQ,EAAE;IACjB,IAAI,CAACJ,SAAK,GAAI,CAAC;EACjB;AACF;AAEO,SAASkD,iBAAiBA,CAAgBpD,IAAyB,EAAE;EAC1E,MAAM;IAAEqD;EAAK,CAAC,GAAGrD,IAAI;EACrB,IAAIqD,IAAI,KAAK,KAAK,IAAIA,IAAI,KAAK,KAAK,EAAE;IACpC,IAAI,CAAC/B,IAAI,CAAC+B,IAAI,CAAC;IACf,IAAI,CAAChD,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAAC4C,2BAA2B,CAACjD,IAAI,CAAC;EACtC,IAAI,CAAC2C,+BAA+B,CAAC3C,IAAI,CAAC;EAC1C4C,kCAAkC,CAAC,IAAI,EAAE5C,IAAI,CAAC;AAChD;AAEO,SAASsD,gBAAgBA,CAAgBtD,IAAwB,EAAE;EACxE,MAAM;IAAE8B,QAAQ;IAAEyB,MAAM,EAAEC;EAAS,CAAC,GAAGxD,IAAI;EAC3C,IAAIwD,QAAQ,EAAE;IACZ,IAAI,CAAClC,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAIyB,QAAQ,EAAE;IACZ,IAAI,CAACR,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACuD,WAAW,CAACzD,IAAI,CAAC0D,UAAU,EAAE,GAAG,CAAC;EACtC,IAAI,CAACnD,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;EAC/BwC,kCAAkC,CAAC,IAAI,EAAE5C,IAAI,CAAC;AAChD;AAEO,SAAS2D,YAAYA,CAAA,EAAgB;EAC1C,IAAI,CAACrC,IAAI,CAAC,KAAK,CAAC;AAClB;AACO,SAASsC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACtC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASuC,gBAAgBA,CAAA,EAAgB;EAC9C,IAAI,CAACvC,IAAI,CAAC,SAAS,CAAC;AACtB;AACO,SAASwC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACxC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASyC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACzC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAAS0C,gBAAgBA,CAAA,EAAgB;EAC9C,IAAI,CAAC1C,IAAI,CAAC,SAAS,CAAC;AACtB;AACO,SAAS2C,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAAC3C,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAAS4C,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAAC5C,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAAS6C,aAAaA,CAAA,EAAgB;EAC3C,IAAI,CAAC7C,IAAI,CAAC,MAAM,CAAC;AACnB;AACO,SAAS8C,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAAC9C,IAAI,CAAC,WAAW,CAAC;AACxB;AACO,SAAS+C,aAAaA,CAAA,EAAgB;EAC3C,IAAI,CAAC/C,IAAI,CAAC,MAAM,CAAC;AACnB;AACO,SAASgD,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAAChD,IAAI,CAAC,OAAO,CAAC;AACpB;AACO,SAASiD,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACjD,IAAI,CAAC,WAAW,CAAC;AACxB;AAEO,SAASkD,UAAUA,CAAA,EAAgB;EACxC,IAAI,CAAClD,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAASmD,cAAcA,CAAgBzE,IAAsB,EAAE;EACpE,IAAI,CAAC0E,gCAAgC,CAAC1E,IAAI,CAAC;AAC7C;AAEO,SAAS2E,iBAAiBA,CAAgB3E,IAAyB,EAAE;EAC1E,IAAIA,IAAI,CAAC4E,QAAQ,EAAE;IACjB,IAAI,CAACtD,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACqE,gCAAgC,CAAC1E,IAAI,CAAC;AAC7C;AAEO,SAAS0E,gCAAgCA,CAE9C1E,IAA4C,EAC5C;EACA,MAAM;IAAE6E;EAAe,CAAC,GAAG7E,IAAI;EAC/B,MAAM0D,UAAU,GAIZ1D,IAAI,CAAC0D,UAAU;EACnB,IAAI,CAACnD,KAAK,CAACsE,cAAc,CAAC;EAC1B,IAAI,CAAC3E,SAAK,GAAI,CAAC;EACf,IAAI,CAACuD,WAAW,CAACC,UAAU,EAAE,GAAG,CAAC;EACjC,IAAI,CAACrD,KAAK,CAAC,CAAC;EACZ,MAAMyE,UAAU,GAIZ9E,IAAI,CAACI,cAAc;EACvB,IAAI,CAACG,KAAK,CAACuE,UAAU,CAAC;AACxB;AAEO,SAASC,eAAeA,CAAgB/E,IAAuB,EAAE;EACtE,MAAMgF,aAAa,GAIfhF,IAAI,CAAC6E,cAAc;EACvB,IAAI,CAACtE,KAAK,CAACP,IAAI,CAACiF,QAAQ,EAAE,CAAC,CAACD,aAAa,CAAC;EAC1C,IAAI,CAACzE,KAAK,CAACyE,aAAa,CAAC;AAC3B;AAEO,SAASE,eAAeA,CAAgBlF,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACmF,OAAO,EAAE;IAChB,IAAI,CAAC7D,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACE,KAAK,CAACP,IAAI,CAACoF,aAAa,CAAC;EAC9B,IAAIpF,IAAI,CAACI,cAAc,EAAE;IACvB,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACiB,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACjB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACI,cAAc,CAACA,cAAc,CAAC;EAChD;AACF;AAEO,SAASiF,WAAWA,CAAgBrF,IAAmB,EAAE;EAC9D,IAAI,CAACsB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACsF,QAAQ,CAAC;EAEzB,MAAMN,aAAa,GAIfhF,IAAI,CAAC6E,cAAc;EACvB,IAAIG,aAAa,EAAE;IACjB,IAAI,CAACzE,KAAK,CAACyE,aAAa,CAAC;EAC3B;AACF;AAEO,SAASO,aAAaA,CAAgBvF,IAAqB,EAAE;EAClEwF,WAAW,CAAC,IAAI,EAAExF,IAAI,EAAE,MAAM,IAAI,CAACyF,SAAS,CAACzF,IAAI,CAAC0F,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACzE;AAEO,SAASC,WAAWA,CAAgB3F,IAAmB,EAAE;EAC9D,IAAI,CAACO,KAAK,CAACP,IAAI,CAAC4F,WAAW,EAAE,IAAI,CAAC;EAElC,IAAI,CAAC1F,SAAK,GAAI,CAAC;EACf,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS2F,WAAWA,CAAgB7F,IAAmB,EAAE;EAC9D,IAAI,CAACE,SAAK,GAAI,CAAC;EACf,IAAI,CAACiB,SAAS,CAACnB,IAAI,CAAC8F,YAAY,EAAE,IAAI,CAAC5E,wBAAwB,CAAC,GAAG,CAAC,CAAC;EACrE,IAAI,CAAChB,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS6F,cAAcA,CAAgB/F,IAAsB,EAAE;EACpE,IAAI,CAACO,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;EAC/B,IAAI,CAACF,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS8F,UAAUA,CAAgBhG,IAAkB,EAAE;EAC5D,IAAI,CAACE,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACK,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;AACjC;AAEO,SAAS6F,kBAAkBA,CAAgBjG,IAA0B,EAAE;EAC5E,IAAI,CAACO,KAAK,CAACP,IAAI,CAACkG,KAAK,CAAC;EACtB,IAAIlG,IAAI,CAACM,QAAQ,EAAE,IAAI,CAACJ,SAAK,GAAI,CAAC;EAClC,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAAC4F,WAAW,CAAC;AAC9B;AAEO,SAASO,WAAWA,CAAgBnG,IAAmB,EAAE;EAC9DoG,8BAA8B,CAAC,IAAI,EAAEpG,IAAI,EAAE,GAAG,CAAC;AACjD;AAEO,SAASqG,kBAAkBA,CAAgBrG,IAA0B,EAAE;EAC5EoG,8BAA8B,CAAC,IAAI,EAAEpG,IAAI,EAAE,GAAG,CAAC;AACjD;AAEA,SAASoG,8BAA8BA,CACrCvD,OAAgB,EAChB7C,IAA0C,EAC1CsG,GAAc,EACd;EAAA,IAAAC,iBAAA;EACA,IAAIC,eAAe,GAAG,CAAC;EACvB,KAAAD,iBAAA,GAAI1D,OAAO,CAACjC,QAAQ,aAAhB2F,iBAAA,CAAkBE,YAAY,CAACzG,IAAI,EAAEsG,GAAG,CAAC,EAAE;IAC7CE,eAAe,GAAG,CAAC;IACnB3D,OAAO,CAAC3C,KAAK,CAACoG,GAAG,CAAC;EACpB;EAEAzD,OAAO,CAAC4C,SAAS,CAACzF,IAAI,CAAC0G,KAAK,EAAEC,SAAS,EAAEA,SAAS,EAAE,UAAUC,CAAC,EAAE;IAC/D,IAAI,CAACvG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACH,KAAK,CAACoG,GAAG,EAAE,IAAI,EAAEM,CAAC,GAAGJ,eAAe,CAAC;IAC1C,IAAI,CAACnG,KAAK,CAAC,CAAC;EACd,CAAC,CAAC;AACJ;AAEO,SAASwG,iBAAiBA,CAAgB7G,IAAyB,EAAE;EAC1E,IAAI,CAACO,KAAK,CAACP,IAAI,CAAC8G,SAAS,CAAC;EAC1B,IAAI,CAACzG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACiB,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAAC+G,WAAW,CAAC;EAC5B,IAAI,CAAC1G,KAAK,CAAC,CAAC;EACZ,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACgH,QAAQ,CAAC;EACzB,IAAI,CAAC3G,KAAK,CAAC,CAAC;EACZ,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACiH,SAAS,CAAC;AAC5B;AAEO,SAASC,WAAWA,CAAgBlH,IAAmB,EAAE;EAC9D,IAAI,CAACsB,IAAI,CAAC,OAAO,CAAC;EAClB,IAAI,CAACf,KAAK,CAACP,IAAI,CAACmH,aAAa,CAAC;AAChC;AAEO,SAASC,mBAAmBA,CAEjCpH,IAA2B,EAC3B;EACA,IAAI,CAACE,SAAK,GAAI,CAAC;EACf,IAAI,CAACK,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;EAC/B,IAAI,CAACF,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmH,cAAcA,CAAgBrH,IAAsB,EAAE;EACpE,IAAI,CAACsB,IAAI,CAACtB,IAAI,CAACsH,QAAQ,CAAC;EACxB,IAAI,CAACjH,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACI,cAAc,CAAC;AACjC;AAEO,SAASmH,mBAAmBA,CAEjCvH,IAA2B,EAC3B;EACA,IAAI,CAACO,KAAK,CAACP,IAAI,CAACwH,UAAU,EAAE,IAAI,CAAC;EACjC,IAAI,CAACtH,SAAK,GAAI,CAAC;EACf,IAAI,CAACK,KAAK,CAACP,IAAI,CAACyH,SAAS,CAAC;EAC1B,IAAI,CAACvH,SAAK,GAAI,CAAC;AACjB;AAEO,SAASwH,YAAYA,CAAgB1H,IAAoB,EAAE;EAChE,MAAM;IAAE2H,QAAQ;IAAErH,QAAQ;IAAEwB,QAAQ;IAAE1B;EAAe,CAAC,GAAGJ,IAAI;EAC7D,IAAI,CAACE,SAAK,IAAI,CAAC;EACf,MAAM0H,IAAI,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;EAClC,IAAI,CAACxH,KAAK,CAAC,CAAC;EACZ,IAAIyB,QAAQ,EAAE;IACZgG,gBAAgB,CAAC,IAAI,EAAEhG,QAAQ,CAAC;IAChC,IAAI,CAACR,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACH,SAAK,GAAI,CAAC;EAIR;IAEL,IAAI,CAACoB,IAAI,CAACtB,IAAI,CAACmH,aAAa,CAAC1F,IAAI,CAAC;EACpC;EAEA,IAAI,CAACpB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACiB,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACjB,KAAK,CAAC,CAAC;EAIL;IAEL,IAAI,CAACE,KAAK,CAACP,IAAI,CAACmH,aAAa,CAACzF,UAAU,CAAC;EAC3C;EAEA,IAAIiG,QAAQ,EAAE;IACZ,IAAI,CAACtH,KAAK,CAAC,CAAC;IACZ,IAAI,CAACiB,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACjB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACoH,QAAQ,CAAC;EACtB;EAEA,IAAI,CAACzH,SAAK,GAAI,CAAC;EAEf,IAAII,QAAQ,EAAE;IACZwH,gBAAgB,CAAC,IAAI,EAAExH,QAAQ,CAAC;IAChC,IAAI,CAACJ,SAAK,GAAI,CAAC;EACjB;EAEA,IAAIE,cAAc,EAAE;IAClB,IAAI,CAACF,SAAK,GAAI,CAAC;IACf,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACH,cAAc,CAAC;EAC5B;EACA,IAAI,CAACC,KAAK,CAAC,CAAC;EACZuH,IAAI,CAAC,CAAC;EACN,IAAI,CAAC1H,SAAK,IAAI,CAAC;AACjB;AAEA,SAAS4H,gBAAgBA,CAACC,IAAa,EAAEC,GAAqB,EAAE;EAC9D,IAAIA,GAAG,KAAK,IAAI,EAAE;IAChBD,IAAI,CAAC7H,KAAK,CAAC8H,GAAG,CAAC;EACjB;AACF;AAEO,SAASC,qBAAqBA,CAEnCjI,IAA6B,EAC7B;EACA,IAAI,CAACkI,cAAc,CAAClI,IAAI,EAAEA,IAAI,CAAC0G,KAAK,CAAC;AACvC;AAEO,SAASyB,aAAaA,CAAgBnI,IAAqB,EAAE;EAClE,IAAI,CAACO,KAAK,CAACP,IAAI,CAACoI,OAAO,CAAC;AAC1B;AAEO,SAASC,iBAAiBA,CAG/BrI,IAGC,EACD;EACA,IAAI,CAACO,KAAK,CAACP,IAAI,CAACsI,UAAU,CAAC;EAC3B,IAAI,CAAC/H,KAAK,CAACP,IAAI,CAACgF,aAAa,CAAC;AAChC;AAIO,SAASuD,sBAAsBA,CAEpCvI,IAA8B,EAC9B;EACA,MAAM;IAAEkC,OAAO;IAAEsG,EAAE;IAAE3D,cAAc;IAAE4D,OAAO,EAAEC,OAAO;IAAEC;EAAK,CAAC,GAAG3I,IAAI;EACpE,IAAIkC,OAAO,EAAE;IACX,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACiI,EAAE,CAAC;EACd,IAAI,CAACjI,KAAK,CAACsE,cAAc,CAAC;EAC1B,IAAI6D,OAAO,YAAPA,OAAO,CAAE/H,MAAM,EAAE;IACnB,IAAI,CAACN,KAAK,CAAC,CAAC;IACZ,IAAI,CAACiB,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACc,SAAS,CAACuH,OAAO,CAAC;EACzB;EACA,IAAI,CAACrI,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACoI,IAAI,CAAC;AAClB;AAEO,SAASC,eAAeA,CAAgB5I,IAAuB,EAAE;EACtEwF,WAAW,CAAC,IAAI,EAAExF,IAAI,EAAE,MAAM,IAAI,CAACyF,SAAS,CAACzF,IAAI,CAAC2I,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACtE;AAEO,SAASE,sBAAsBA,CAEpC7I,IAA8B,EAC9B;EACA,MAAM;IAAEkC,OAAO;IAAEsG,EAAE;IAAE3D,cAAc;IAAEzE;EAAe,CAAC,GAAGJ,IAAI;EAC5D,IAAIkC,OAAO,EAAE;IACX,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACiI,EAAE,CAAC;EACd,IAAI,CAACjI,KAAK,CAACsE,cAAc,CAAC;EAC1B,IAAI,CAACxE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACH,cAAc,CAAC;EAC1B,IAAI,CAACgC,SAAS,CAAC,CAAC;AAClB;AAEA,SAAS0G,gBAAgBA,CAEvB9I,IAAgD,EAChD;EACA,MAAM;IAAEG,IAAI;IAAEmI,UAAU;IAAElI;EAAe,CAAC,GAAGJ,IAAI;EACjD,IAAI,CAACO,KAAK,CAAC+H,UAAU,EAAE,IAAI,CAAC;EAC5B,IAAI,CAACjI,KAAK,CAAC,CAAC;EACZ,IAAI,CAACiB,IAAI,CAACnB,IAAI,KAAK,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;EACzD,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACH,cAAc,CAAC;AAC5B;AAOO,SAAS2I,eAAeA,CAAgB/I,IAAuB,EAAE;EACtE,MAAM;IAAEI,cAAc;IAAEkI;EAAW,CAAC,GAAGtI,IAAI;EAC3C,IAAI,CAACE,SAAK,GAAI,CAAC;EACf,IAAI,CAACK,KAAK,CAACH,cAAc,CAAC;EAC1B,IAAI,CAACF,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAAC+H,UAAU,CAAC;AACxB;AAEO,SAASU,yBAAyBA,CAEvChJ,IAAiC,EACjC;EACA,IAAI,CAACO,KAAK,CAACP,IAAI,CAACsI,UAAU,CAAC;EAIpB;IAEL,IAAI,CAAC/H,KAAK,CAACP,IAAI,CAAC6E,cAAc,CAAC;EACjC;AACF;AAEO,SAASoE,iBAAiBA,CAAgBjJ,IAAyB,EAAE;EAC1E,MAAM;IAAEkC,OAAO;IAAEb,KAAK,EAAE6H,OAAO;IAAEV;EAAG,CAAC,GAAGxI,IAAI;EAC5C,IAAIkC,OAAO,EAAE;IACX,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI6I,OAAO,EAAE;IACX,IAAI,CAAC5H,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACiI,EAAE,CAAC;EACd,IAAI,CAACnI,KAAK,CAAC,CAAC;EAKL;IAEL8I,UAAU,CAACC,IAAI,CAAC,IAAI,EAAEpJ,IAA+B,CAAC;EACxD;AACF;AAEO,SAASmJ,UAAUA,CAAgBnJ,IAAkB,EAAE;EAC5DwF,WAAW,CAAC,IAAI,EAAExF,IAAI,EAAE;IAAA,IAAAqJ,qBAAA;IAAA,OACtB,IAAI,CAAClI,SAAS,CACZnB,IAAI,CAAC0F,OAAO,GAAA2D,qBAAA,GACZ,IAAI,CAACnI,wBAAwB,CAAC,GAAG,CAAC,YAAAmI,qBAAA,GACQ,IAAI,EAC9C,IAAI,EACJ,IACF,CAAC;EAAA,CACH,CAAC;AACH;AAEO,SAASC,YAAYA,CAAgBtJ,IAAoB,EAAE;EAChE,MAAM;IAAEwI,EAAE;IAAEe;EAAY,CAAC,GAAGvJ,IAAI;EAChC,IAAI,CAACO,KAAK,CAACiI,EAAE,CAAC;EACd,IAAIe,WAAW,EAAE;IACf,IAAI,CAAClJ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACH,SAAK,GAAI,CAAC;IACf,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACgJ,WAAW,CAAC;EACzB;AACF;AAEO,SAASC,mBAAmBA,CAEjCxJ,IAA2B,EAC3B;EACA,MAAM;IAAEkC,OAAO;IAAEsG,EAAE;IAAEnF;EAAK,CAAC,GAAGrD,IAAI;EAElC,IAAIkC,OAAO,EAAE;IACX,IAAI,CAACZ,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EAeO;IAEL,IAAI,CAACL,IAAI,CAACyJ,MAAM,EAAE;MAChB,IAAI,CAACnI,IAAI,CAAC+B,IAAI,WAAJA,IAAI,GAAKmF,EAAE,CAACrI,IAAI,KAAK,YAAY,GAAG,WAAW,GAAG,QAAS,CAAC;MACtE,IAAI,CAACE,KAAK,CAAC,CAAC;IACd;IAEA,IAAI,CAACE,KAAK,CAACiI,EAAE,CAAC;IAEd,IAAI,CAACxI,IAAI,CAAC2I,IAAI,EAAE;MACd,IAAI,CAACvG,SAAS,CAAC,CAAC;MAChB;IACF;IAEA,IAAIuG,IAAI,GAAG3I,IAAI,CAAC2I,IAAI;IAEpB,OAAOA,IAAI,CAACxI,IAAI,KAAK,qBAAqB,EAAE;MAC1C,IAAI,CAACD,SAAK,GAAI,CAAC;MAEf,IAAI,CAACK,KAAK,CAACoI,IAAI,CAACH,EAAE,CAAC;MAEnBG,IAAI,GAAGA,IAAI,CAACA,IAAI;IAClB;IAEA,IAAI,CAACtI,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACoI,IAAI,CAAC;EAClB;AACF;AAEO,SAASe,aAAaA,CAAgB1J,IAAqB,EAAE;EAClEwF,WAAW,CAAC,IAAI,EAAExF,IAAI,EAAE,MAAM,IAAI,CAAC2J,aAAa,CAAC3J,IAAI,CAAC2I,IAAI,EAAE,IAAI,CAAC,CAAC;AACpE;AAEO,SAASiB,YAAYA,CAAgB5J,IAAoB,EAAE;EAChE,MAAM;IAAE6J,QAAQ;IAAEC,SAAS;IAAEC;EAAQ,CAAC,GAAG/J,IAAI;EAC7C,IAAI,CAACsB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACpB,SAAK,GAAI,CAAC;EACf,IAAI,CAACK,KAAK,CAACsJ,QAAQ,CAAC;EACpB,IAAIE,OAAO,EAAE;IACX,IAAI,CAAC7J,SAAK,GAAI,CAAC;IACf,IAAI,CAACK,KAAK,CAACwJ,OAAO,CAAC;EACrB;EACA,IAAI,CAAC7J,SAAK,GAAI,CAAC;EACf,IAAI4J,SAAS,EAAE;IACb,IAAI,CAAC5J,SAAK,GAAI,CAAC;IACf,IAAI,CAACK,KAAK,CAACuJ,SAAS,CAAC;EACvB;EACA,MAAM9E,aAAa,GAIfhF,IAAI,CAAC6E,cAAc;EACvB,IAAIG,aAAa,EAAE;IACjB,IAAI,CAACzE,KAAK,CAACyE,aAAa,CAAC;EAC3B;AACF;AAEO,SAASgF,yBAAyBA,CAEvChK,IAAiC,EACjC;EACA,MAAM;IAAEwI,EAAE;IAAEyB;EAAgB,CAAC,GAAGjK,IAAI;EACpC,IAGEA,IAAI,CAACkK,QAAQ,EACb;IACA,IAAI,CAAC5I,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACiB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACiI,EAAE,CAAC;EACd,IAAI,CAACnI,KAAK,CAAC,CAAC;EACZ,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAAC0J,eAAe,CAAC;EAC3B,IAAI,CAAC7H,SAAS,CAAC,CAAC;AAClB;AAEO,SAAS+H,yBAAyBA,CAEvCnK,IAAiC,EACjC;EACA,IAAI,CAACE,KAAK,CAAC,UAAU,CAAC;EACtB,IAAI,CAACK,KAAK,CAACP,IAAI,CAACsI,UAAU,CAAC;EAC3B,IAAI,CAACpI,SAAK,GAAI,CAAC;AACjB;AAEO,SAASkK,mBAAmBA,CAEjCpK,IAA2B,EAC3B;EACA,IAAI,CAACO,KAAK,CAACP,IAAI,CAACsI,UAAU,CAAC;EAC3B,IAAI,CAACpI,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmK,kBAAkBA,CAAgBrK,IAA0B,EAAE;EAC5E,IAAI,CAACsB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACH,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACsI,UAAU,CAAC;EAC3B,IAAI,CAAClG,SAAS,CAAC,CAAC;AAClB;AAEO,SAASkI,4BAA4BA,CAE1CtK,IAAoC,EACpC;EACA,IAAI,CAACsB,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACiB,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACiB,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACP,IAAI,CAACwI,EAAE,CAAC;EACnB,IAAI,CAACpG,SAAS,CAAC,CAAC;AAClB;AAEO,SAASO,+BAA+BA,CAAgB3C,IAAS,EAAE;EACxE,MAAM;IAAE6E;EAAe,CAAC,GAAG7E,IAAI;EAC/B,MAAM0D,UAAU,GAEZ1D,IAAI,CAAC0D,UAAU;EACnB,IAAI,CAACnD,KAAK,CAACsE,cAAc,CAAC;EAC1B,IAAI,CAAC3E,SAAK,GAAI,CAAC;EACf,IAAI,CAACuD,WAAW,CAACC,UAAU,EAAE,GAAG,CAAC;EACjC,MAAMoB,UAAU,GAEZ9E,IAAI,CAACI,cAAc;EACvB,IAAI,CAACG,KAAK,CAACuE,UAAU,CAAC;AACxB;AAEO,SAASyF,2BAA2BA,CAEzCvK,IAMqB,EACrB;EACA,MAAMwK,cAAc,GAAGxK,IAAI,CAACG,IAAI,KAAK,sBAAsB;EAC3D,MAAMsK,aAAa,GACjBzK,IAAI,CAACG,IAAI,KAAK,uBAAuB,IAAIH,IAAI,CAACG,IAAI,KAAK,eAAe;EACxEuK,kBAAkB,CAAC,IAAI,EAAE1K,IAAI,EAAE,CAC7ByK,aAAa,IAAIzK,IAAI,CAACkC,OAAO,IAAI,SAAS,EAC1C,CAACsI,cAAc,IAAIxK,IAAI,CAAC6B,aAAa,CACtC,CAAC;EACF,IAAI7B,IAAI,CAACuD,MAAM,EAAE;IACf,IAAI,CAACjC,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACjB,KAAK,CAAC,CAAC;EACd;EACAqK,kBAAkB,CAAC,IAAI,EAAE1K,IAAI,EAAE,CAC7B,CAACwK,cAAc,IAAIxK,IAAI,CAAC4E,QAAQ,IAAI,UAAU,EAC9C,CAAC4F,cAAc,IAAIxK,IAAI,CAAC2K,QAAQ,IAAI,UAAU,EAC9C,CAACF,aAAa,IAAID,cAAc,KAAKxK,IAAI,CAAC8B,QAAQ,IAAI,UAAU,CACjE,CAAC;AACJ;AAEA,SAAS0D,WAAWA,CAAC3C,OAAgB,EAAE7C,IAAY,EAAE4K,EAAc,EAAE;EACnE/H,OAAO,CAAC3C,KAAK,CAAC,GAAG,CAAC;EAClB,MAAM0H,IAAI,GAAG/E,OAAO,CAACgF,cAAc,CAAC,CAAC;EACrC+C,EAAE,CAAC,CAAC;EACJhD,IAAI,CAAC,CAAC;EACN/E,OAAO,CAACgI,UAAU,CAAC7K,IAAI,CAAC;AAC1B;AAEA,SAAS0K,kBAAkBA,CACzB7H,OAAgB,EAChB7C,IAAY,EACZ8K,SAAoC,EACpC;EAAA,IAAAC,kBAAA;EACA,MAAMC,YAAY,GAAG,IAAIC,GAAG,CAAS,CAAC;EACtC,KAAK,MAAMC,QAAQ,IAAIJ,SAAS,EAAE;IAChC,IAAII,QAAQ,EAAEF,YAAY,CAACG,GAAG,CAACD,QAAQ,CAAC;EAC1C;EAEA,CAAAH,kBAAA,GAAAlI,OAAO,CAACjC,QAAQ,aAAhBmK,kBAAA,CAAkBhK,IAAI,CAACf,IAAI,EAAEgI,GAAG,IAAI;IAClC,IAAIgD,YAAY,CAACI,GAAG,CAACpD,GAAG,CAACqD,KAAK,CAAC,EAAE;MAC/BxI,OAAO,CAAC3C,KAAK,CAAC8H,GAAG,CAACqD,KAAK,CAAC;MACxBxI,OAAO,CAACxC,KAAK,CAAC,CAAC;MACf2K,YAAY,CAACM,MAAM,CAACtD,GAAG,CAACqD,KAAK,CAAC;MAC9B,OAAOL,YAAY,CAACO,IAAI,KAAK,CAAC;IAChC;EACF,CAAC,CAAC;EAEF,KAAK,MAAML,QAAQ,IAAIF,YAAY,EAAE;IACnCnI,OAAO,CAACvB,IAAI,CAAC4J,QAAQ,CAAC;IACtBrI,OAAO,CAACxC,KAAK,CAAC,CAAC;EACjB;AACF","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["TSTypeAnnotation","node","token","space","optional","print","typeAnnotation","TSTypeParameterInstantiation","parent","printList","params","type","length","TSTypeParameter","in","word","out","name","constraint","default","TSParameterProperty","accessibility","readonly","_param","parameter","TSDeclareFunction","declare","_functionHead","TSDeclareMethod","_classMethodHead","TSQualifiedName","left","right","TSCallSignatureDeclaration","tsPrintSignatureDeclarationBase","TSConstructSignatureDeclaration","TSPropertySignature","tsPrintPropertyOrMethodName","computed","key","TSMethodSignature","kind","TSIndexSignature","static","isStatic","_parameters","parameters","TSAnyKeyword","TSBigIntKeyword","TSUnknownKeyword","TSNumberKeyword","TSObjectKeyword","TSBooleanKeyword","TSStringKeyword","TSSymbolKeyword","TSVoidKeyword","TSUndefinedKeyword","TSNullKeyword","TSNeverKeyword","TSIntrinsicKeyword","TSThisType","TSFunctionType","tsPrintFunctionOrConstructorType","TSConstructorType","abstract","typeParameters","returnType","TSTypeReference","typeName","TSTypePredicate","asserts","parameterName","TSTypeQuery","exprName","TSTypeLiteral","tsPrintTypeLiteralOrInterfaceBody","members","tsPrintBraced","printer","indent","newline","member","dedent","rightBrace","TSArrayType","elementType","TSTupleType","elementTypes","TSOptionalType","TSRestType","TSNamedTupleMember","label","TSUnionType","tsPrintUnionOrIntersectionType","TSIntersectionType","sep","printJoin","types","separator","TSConditionalType","checkType","extendsType","trueType","falseType","TSInferType","typeParameter","TSParenthesizedType","TSTypeOperator","operator","TSIndexedAccessType","objectType","indexType","TSMappedType","nameType","tokenIfPlusMinus","self","tok","TSLiteralType","literal","TSExpressionWithTypeArguments","expression","TSInterfaceDeclaration","id","extends","extendz","body","TSInterfaceBody","TSTypeAliasDeclaration","TSTypeExpression","_expression$trailingC","forceParens","trailingComments","undefined","TSTypeAssertion","TSInstantiationExpression","TSEnumDeclaration","const","isConst","TSEnumMember","initializer","TSModuleDeclaration","global","TSModuleBlock","TSImportType","argument","qualifier","TSImportEqualsDeclaration","isExport","moduleReference","TSExternalModuleReference","TSNonNullExpression","TSExportAssignment","TSNamespaceExportDeclaration","tsPrintClassMemberModifiers","isField","override"],"sources":["../../src/generators/typescript.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TSTypeAnnotation(this: Printer, node: t.TSTypeAnnotation) {\n this.token(\":\");\n this.space();\n // @ts-expect-error todo(flow->ts) can this be removed? `.optional` looks to be not existing property\n if (node.optional) this.token(\"?\");\n this.print(node.typeAnnotation, node);\n}\n\nexport function TSTypeParameterInstantiation(\n this: Printer,\n node: t.TSTypeParameterInstantiation,\n parent: t.Node,\n): void {\n this.token(\"<\");\n this.printList(node.params, node, {});\n if (parent.type === \"ArrowFunctionExpression\" && node.params.length === 1) {\n this.token(\",\");\n }\n this.token(\">\");\n}\n\nexport { TSTypeParameterInstantiation as TSTypeParameterDeclaration };\n\nexport function TSTypeParameter(this: Printer, node: t.TSTypeParameter) {\n if (node.in) {\n this.word(\"in\");\n this.space();\n }\n\n if (node.out) {\n this.word(\"out\");\n this.space();\n }\n\n this.word(\n !process.env.BABEL_8_BREAKING\n ? (node.name as unknown as string)\n : (node.name as unknown as t.Identifier).name,\n );\n\n if (node.constraint) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.constraint, node);\n }\n\n if (node.default) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.default, node);\n }\n}\n\nexport function TSParameterProperty(\n this: Printer,\n node: t.TSParameterProperty,\n) {\n if (node.accessibility) {\n this.word(node.accessibility);\n this.space();\n }\n\n if (node.readonly) {\n this.word(\"readonly\");\n this.space();\n }\n\n this._param(node.parameter);\n}\n\nexport function TSDeclareFunction(\n this: Printer,\n node: t.TSDeclareFunction,\n parent: t.ParentMaps[\"TSDeclareFunction\"],\n) {\n if (node.declare) {\n this.word(\"declare\");\n this.space();\n }\n this._functionHead(node, parent);\n this.token(\";\");\n}\n\nexport function TSDeclareMethod(this: Printer, node: t.TSDeclareMethod) {\n this._classMethodHead(node);\n this.token(\";\");\n}\n\nexport function TSQualifiedName(this: Printer, node: t.TSQualifiedName) {\n this.print(node.left, node);\n this.token(\".\");\n this.print(node.right, node);\n}\n\nexport function TSCallSignatureDeclaration(\n this: Printer,\n node: t.TSCallSignatureDeclaration,\n) {\n this.tsPrintSignatureDeclarationBase(node);\n this.token(\";\");\n}\n\nexport function TSConstructSignatureDeclaration(\n this: Printer,\n node: t.TSConstructSignatureDeclaration,\n) {\n this.word(\"new\");\n this.space();\n this.tsPrintSignatureDeclarationBase(node);\n this.token(\";\");\n}\n\nexport function TSPropertySignature(\n this: Printer,\n node: t.TSPropertySignature,\n) {\n const { readonly } = node;\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.print(node.typeAnnotation, node);\n this.token(\";\");\n}\n\nexport function tsPrintPropertyOrMethodName(\n this: Printer,\n node: t.TSPropertySignature | t.TSMethodSignature,\n) {\n if (node.computed) {\n this.token(\"[\");\n }\n this.print(node.key, node);\n if (node.computed) {\n this.token(\"]\");\n }\n if (node.optional) {\n this.token(\"?\");\n }\n}\n\nexport function TSMethodSignature(this: Printer, node: t.TSMethodSignature) {\n const { kind } = node;\n if (kind === \"set\" || kind === \"get\") {\n this.word(kind);\n this.space();\n }\n this.tsPrintPropertyOrMethodName(node);\n this.tsPrintSignatureDeclarationBase(node);\n this.token(\";\");\n}\n\nexport function TSIndexSignature(this: Printer, node: t.TSIndexSignature) {\n const { readonly, static: isStatic } = node;\n if (isStatic) {\n this.word(\"static\");\n this.space();\n }\n if (readonly) {\n this.word(\"readonly\");\n this.space();\n }\n this.token(\"[\");\n this._parameters(node.parameters, node);\n this.token(\"]\");\n this.print(node.typeAnnotation, node);\n this.token(\";\");\n}\n\nexport function TSAnyKeyword(this: Printer) {\n this.word(\"any\");\n}\nexport function TSBigIntKeyword(this: Printer) {\n this.word(\"bigint\");\n}\nexport function TSUnknownKeyword(this: Printer) {\n this.word(\"unknown\");\n}\nexport function TSNumberKeyword(this: Printer) {\n this.word(\"number\");\n}\nexport function TSObjectKeyword(this: Printer) {\n this.word(\"object\");\n}\nexport function TSBooleanKeyword(this: Printer) {\n this.word(\"boolean\");\n}\nexport function TSStringKeyword(this: Printer) {\n this.word(\"string\");\n}\nexport function TSSymbolKeyword(this: Printer) {\n this.word(\"symbol\");\n}\nexport function TSVoidKeyword(this: Printer) {\n this.word(\"void\");\n}\nexport function TSUndefinedKeyword(this: Printer) {\n this.word(\"undefined\");\n}\nexport function TSNullKeyword(this: Printer) {\n this.word(\"null\");\n}\nexport function TSNeverKeyword(this: Printer) {\n this.word(\"never\");\n}\nexport function TSIntrinsicKeyword(this: Printer) {\n this.word(\"intrinsic\");\n}\n\nexport function TSThisType(this: Printer) {\n this.word(\"this\");\n}\n\nexport function TSFunctionType(this: Printer, node: t.TSFunctionType) {\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function TSConstructorType(this: Printer, node: t.TSConstructorType) {\n if (node.abstract) {\n this.word(\"abstract\");\n this.space();\n }\n this.word(\"new\");\n this.space();\n this.tsPrintFunctionOrConstructorType(node);\n}\n\nexport function tsPrintFunctionOrConstructorType(\n this: Printer,\n node: t.TSFunctionType | t.TSConstructorType,\n) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.params\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.parameters;\n this.print(typeParameters, node);\n this.token(\"(\");\n this._parameters(parameters, node);\n this.token(\")\");\n this.space();\n this.token(\"=>\");\n this.space();\n const returnType = process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST shape\n node.returnType\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST shape\n node.typeAnnotation;\n this.print(returnType.typeAnnotation, node);\n}\n\nexport function TSTypeReference(this: Printer, node: t.TSTypeReference) {\n this.print(node.typeName, node, true);\n this.print(node.typeParameters, node, true);\n}\n\nexport function TSTypePredicate(this: Printer, node: t.TSTypePredicate) {\n if (node.asserts) {\n this.word(\"asserts\");\n this.space();\n }\n this.print(node.parameterName);\n if (node.typeAnnotation) {\n this.space();\n this.word(\"is\");\n this.space();\n this.print(node.typeAnnotation.typeAnnotation);\n }\n}\n\nexport function TSTypeQuery(this: Printer, node: t.TSTypeQuery) {\n this.word(\"typeof\");\n this.space();\n this.print(node.exprName);\n\n if (node.typeParameters) {\n this.print(node.typeParameters, node);\n }\n}\n\nexport function TSTypeLiteral(this: Printer, node: t.TSTypeLiteral) {\n this.tsPrintTypeLiteralOrInterfaceBody(node.members, node);\n}\n\nexport function tsPrintTypeLiteralOrInterfaceBody(\n this: Printer,\n members: t.TSTypeElement[],\n node: t.TSType | t.TSInterfaceBody,\n) {\n tsPrintBraced(this, members, node);\n}\n\nfunction tsPrintBraced(printer: Printer, members: t.Node[], node: t.Node) {\n printer.token(\"{\");\n if (members.length) {\n printer.indent();\n printer.newline();\n for (const member of members) {\n printer.print(member, node);\n //this.token(sep);\n printer.newline();\n }\n printer.dedent();\n }\n\n printer.rightBrace(node);\n}\n\nexport function TSArrayType(this: Printer, node: t.TSArrayType) {\n this.print(node.elementType, node, true);\n\n this.token(\"[]\");\n}\n\nexport function TSTupleType(this: Printer, node: t.TSTupleType) {\n this.token(\"[\");\n this.printList(node.elementTypes, node);\n this.token(\"]\");\n}\n\nexport function TSOptionalType(this: Printer, node: t.TSOptionalType) {\n this.print(node.typeAnnotation, node);\n this.token(\"?\");\n}\n\nexport function TSRestType(this: Printer, node: t.TSRestType) {\n this.token(\"...\");\n this.print(node.typeAnnotation, node);\n}\n\nexport function TSNamedTupleMember(this: Printer, node: t.TSNamedTupleMember) {\n this.print(node.label, node);\n if (node.optional) this.token(\"?\");\n this.token(\":\");\n this.space();\n this.print(node.elementType, node);\n}\n\nexport function TSUnionType(this: Printer, node: t.TSUnionType) {\n tsPrintUnionOrIntersectionType(this, node, \"|\");\n}\n\nexport function TSIntersectionType(this: Printer, node: t.TSIntersectionType) {\n tsPrintUnionOrIntersectionType(this, node, \"&\");\n}\n\nfunction tsPrintUnionOrIntersectionType(\n printer: Printer,\n node: t.TSUnionType | t.TSIntersectionType,\n sep: \"|\" | \"&\",\n) {\n printer.printJoin(node.types, node, {\n separator() {\n this.space();\n this.token(sep);\n this.space();\n },\n });\n}\n\nexport function TSConditionalType(this: Printer, node: t.TSConditionalType) {\n this.print(node.checkType);\n this.space();\n this.word(\"extends\");\n this.space();\n this.print(node.extendsType);\n this.space();\n this.token(\"?\");\n this.space();\n this.print(node.trueType);\n this.space();\n this.token(\":\");\n this.space();\n this.print(node.falseType);\n}\n\nexport function TSInferType(this: Printer, node: t.TSInferType) {\n this.token(\"infer\");\n this.space();\n this.print(node.typeParameter);\n}\n\nexport function TSParenthesizedType(\n this: Printer,\n node: t.TSParenthesizedType,\n) {\n this.token(\"(\");\n this.print(node.typeAnnotation, node);\n this.token(\")\");\n}\n\nexport function TSTypeOperator(this: Printer, node: t.TSTypeOperator) {\n this.word(node.operator);\n this.space();\n this.print(node.typeAnnotation, node);\n}\n\nexport function TSIndexedAccessType(\n this: Printer,\n node: t.TSIndexedAccessType,\n) {\n this.print(node.objectType, node, true);\n this.token(\"[\");\n this.print(node.indexType, node);\n this.token(\"]\");\n}\n\nexport function TSMappedType(this: Printer, node: t.TSMappedType) {\n const { nameType, optional, readonly, typeParameter, typeAnnotation } = node;\n this.token(\"{\");\n this.space();\n if (readonly) {\n tokenIfPlusMinus(this, readonly);\n this.word(\"readonly\");\n this.space();\n }\n\n this.token(\"[\");\n this.word(\n !process.env.BABEL_8_BREAKING\n ? (typeParameter.name as unknown as string)\n : (typeParameter.name as unknown as t.Identifier).name,\n );\n this.space();\n this.word(\"in\");\n this.space();\n this.print(typeParameter.constraint, typeParameter);\n\n if (nameType) {\n this.space();\n this.word(\"as\");\n this.space();\n this.print(nameType, node);\n }\n\n this.token(\"]\");\n\n if (optional) {\n tokenIfPlusMinus(this, optional);\n this.token(\"?\");\n }\n\n if (typeAnnotation) {\n this.token(\":\");\n this.space();\n this.print(typeAnnotation, node);\n }\n this.space();\n this.token(\"}\");\n}\n\nfunction tokenIfPlusMinus(self: Printer, tok: true | \"+\" | \"-\") {\n if (tok !== true) {\n self.token(tok);\n }\n}\n\nexport function TSLiteralType(this: Printer, node: t.TSLiteralType) {\n this.print(node.literal, node);\n}\n\nexport function TSExpressionWithTypeArguments(\n this: Printer,\n node: t.TSExpressionWithTypeArguments,\n) {\n this.print(node.expression, node);\n this.print(node.typeParameters, node);\n}\n\nexport function TSInterfaceDeclaration(\n this: Printer,\n node: t.TSInterfaceDeclaration,\n) {\n const { declare, id, typeParameters, extends: extendz, body } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"interface\");\n this.space();\n this.print(id, node);\n this.print(typeParameters, node);\n if (extendz?.length) {\n this.space();\n this.word(\"extends\");\n this.space();\n this.printList(extendz, node);\n }\n this.space();\n this.print(body, node);\n}\n\nexport function TSInterfaceBody(this: Printer, node: t.TSInterfaceBody) {\n this.tsPrintTypeLiteralOrInterfaceBody(node.body, node);\n}\n\nexport function TSTypeAliasDeclaration(\n this: Printer,\n node: t.TSTypeAliasDeclaration,\n) {\n const { declare, id, typeParameters, typeAnnotation } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n this.word(\"type\");\n this.space();\n this.print(id, node);\n this.print(typeParameters, node);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(typeAnnotation, node);\n this.token(\";\");\n}\n\nfunction TSTypeExpression(\n this: Printer,\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n) {\n const { type, expression, typeAnnotation } = node;\n const forceParens = !!expression.trailingComments?.length;\n this.print(expression, node, true, undefined, forceParens);\n this.space();\n this.word(type === \"TSAsExpression\" ? \"as\" : \"satisfies\");\n this.space();\n this.print(typeAnnotation, node);\n}\n\nexport {\n TSTypeExpression as TSAsExpression,\n TSTypeExpression as TSSatisfiesExpression,\n};\n\nexport function TSTypeAssertion(this: Printer, node: t.TSTypeAssertion) {\n const { typeAnnotation, expression } = node;\n this.token(\"<\");\n this.print(typeAnnotation, node);\n this.token(\">\");\n this.space();\n this.print(expression, node);\n}\n\nexport function TSInstantiationExpression(\n this: Printer,\n node: t.TSInstantiationExpression,\n) {\n this.print(node.expression, node);\n this.print(node.typeParameters, node);\n}\n\nexport function TSEnumDeclaration(this: Printer, node: t.TSEnumDeclaration) {\n const { declare, const: isConst, id, members } = node;\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n if (isConst) {\n this.word(\"const\");\n this.space();\n }\n this.word(\"enum\");\n this.space();\n this.print(id, node);\n this.space();\n tsPrintBraced(this, members, node);\n}\n\nexport function TSEnumMember(this: Printer, node: t.TSEnumMember) {\n const { id, initializer } = node;\n this.print(id, node);\n if (initializer) {\n this.space();\n this.token(\"=\");\n this.space();\n this.print(initializer, node);\n }\n this.token(\",\");\n}\n\nexport function TSModuleDeclaration(\n this: Printer,\n node: t.TSModuleDeclaration,\n) {\n const { declare, id } = node;\n\n if (declare) {\n this.word(\"declare\");\n this.space();\n }\n\n if (!node.global) {\n this.word(id.type === \"Identifier\" ? \"namespace\" : \"module\");\n this.space();\n }\n this.print(id, node);\n\n if (!node.body) {\n this.token(\";\");\n return;\n }\n\n let body = node.body;\n while (body.type === \"TSModuleDeclaration\") {\n this.token(\".\");\n this.print(body.id, body);\n body = body.body;\n }\n\n this.space();\n this.print(body, node);\n}\n\nexport function TSModuleBlock(this: Printer, node: t.TSModuleBlock) {\n tsPrintBraced(this, node.body, node);\n}\n\nexport function TSImportType(this: Printer, node: t.TSImportType) {\n const { argument, qualifier, typeParameters } = node;\n this.word(\"import\");\n this.token(\"(\");\n this.print(argument, node);\n this.token(\")\");\n if (qualifier) {\n this.token(\".\");\n this.print(qualifier, node);\n }\n if (typeParameters) {\n this.print(typeParameters, node);\n }\n}\n\nexport function TSImportEqualsDeclaration(\n this: Printer,\n node: t.TSImportEqualsDeclaration,\n) {\n const { isExport, id, moduleReference } = node;\n if (isExport) {\n this.word(\"export\");\n this.space();\n }\n this.word(\"import\");\n this.space();\n this.print(id, node);\n this.space();\n this.token(\"=\");\n this.space();\n this.print(moduleReference, node);\n this.token(\";\");\n}\n\nexport function TSExternalModuleReference(\n this: Printer,\n node: t.TSExternalModuleReference,\n) {\n this.token(\"require(\");\n this.print(node.expression, node);\n this.token(\")\");\n}\n\nexport function TSNonNullExpression(\n this: Printer,\n node: t.TSNonNullExpression,\n) {\n this.print(node.expression, node);\n this.token(\"!\");\n}\n\nexport function TSExportAssignment(this: Printer, node: t.TSExportAssignment) {\n this.word(\"export\");\n this.space();\n this.token(\"=\");\n this.space();\n this.print(node.expression, node);\n this.token(\";\");\n}\n\nexport function TSNamespaceExportDeclaration(\n this: Printer,\n node: t.TSNamespaceExportDeclaration,\n) {\n this.word(\"export\");\n this.space();\n this.word(\"as\");\n this.space();\n this.word(\"namespace\");\n this.space();\n this.print(node.id, node);\n}\n\nexport function tsPrintSignatureDeclarationBase(this: Printer, node: any) {\n const { typeParameters } = node;\n const parameters = process.env.BABEL_8_BREAKING\n ? node.params\n : node.parameters;\n this.print(typeParameters, node);\n this.token(\"(\");\n this._parameters(parameters, node);\n this.token(\")\");\n const returnType = process.env.BABEL_8_BREAKING\n ? node.returnType\n : node.typeAnnotation;\n this.print(returnType, node);\n}\n\nexport function tsPrintClassMemberModifiers(\n this: Printer,\n node:\n | t.ClassProperty\n | t.ClassAccessorProperty\n | t.ClassMethod\n | t.ClassPrivateMethod\n | t.TSDeclareMethod,\n) {\n const isField =\n node.type === \"ClassAccessorProperty\" || node.type === \"ClassProperty\";\n if (isField && node.declare) {\n this.word(\"declare\");\n this.space();\n }\n if (node.accessibility) {\n this.word(node.accessibility);\n this.space();\n }\n if (node.static) {\n this.word(\"static\");\n this.space();\n }\n if (node.override) {\n this.word(\"override\");\n this.space();\n }\n if (node.abstract) {\n this.word(\"abstract\");\n this.space();\n }\n if (isField && node.readonly) {\n this.word(\"readonly\");\n this.space();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,SAASA,gBAAgBA,CAAgBC,IAAwB,EAAE;EACxE,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EAEZ,IAAIF,IAAI,CAACG,QAAQ,EAAE,IAAI,CAACF,SAAK,GAAI,CAAC;EAClC,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;AACvC;AAEO,SAASM,4BAA4BA,CAE1CN,IAAoC,EACpCO,MAAc,EACR;EACN,IAAI,CAACN,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,SAAS,CAACR,IAAI,CAACS,MAAM,EAAET,IAAI,EAAE,CAAC,CAAC,CAAC;EACrC,IAAIO,MAAM,CAACG,IAAI,KAAK,yBAAyB,IAAIV,IAAI,CAACS,MAAM,CAACE,MAAM,KAAK,CAAC,EAAE;IACzE,IAAI,CAACV,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACA,SAAK,GAAI,CAAC;AACjB;AAIO,SAASW,eAAeA,CAAgBZ,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACa,EAAE,EAAE;IACX,IAAI,CAACC,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EAEA,IAAIF,IAAI,CAACe,GAAG,EAAE;IACZ,IAAI,CAACD,IAAI,CAAC,KAAK,CAAC;IAChB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACY,IAAI,CAEFd,IAAI,CAACgB,IAEZ,CAAC;EAED,IAAIhB,IAAI,CAACiB,UAAU,EAAE;IACnB,IAAI,CAACf,KAAK,CAAC,CAAC;IACZ,IAAI,CAACY,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACiB,UAAU,EAAEjB,IAAI,CAAC;EACnC;EAEA,IAAIA,IAAI,CAACkB,OAAO,EAAE;IAChB,IAAI,CAAChB,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACkB,OAAO,EAAElB,IAAI,CAAC;EAChC;AACF;AAEO,SAASmB,mBAAmBA,CAEjCnB,IAA2B,EAC3B;EACA,IAAIA,IAAI,CAACoB,aAAa,EAAE;IACtB,IAAI,CAACN,IAAI,CAACd,IAAI,CAACoB,aAAa,CAAC;IAC7B,IAAI,CAAClB,KAAK,CAAC,CAAC;EACd;EAEA,IAAIF,IAAI,CAACqB,QAAQ,EAAE;IACjB,IAAI,CAACP,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACoB,MAAM,CAACtB,IAAI,CAACuB,SAAS,CAAC;AAC7B;AAEO,SAASC,iBAAiBA,CAE/BxB,IAAyB,EACzBO,MAAyC,EACzC;EACA,IAAIP,IAAI,CAACyB,OAAO,EAAE;IAChB,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACwB,aAAa,CAAC1B,IAAI,EAAEO,MAAM,CAAC;EAChC,IAAI,CAACN,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS0B,eAAeA,CAAgB3B,IAAuB,EAAE;EACtE,IAAI,CAAC4B,gBAAgB,CAAC5B,IAAI,CAAC;EAC3B,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS4B,eAAeA,CAAgB7B,IAAuB,EAAE;EACtE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC8B,IAAI,EAAE9B,IAAI,CAAC;EAC3B,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAACJ,IAAI,CAAC+B,KAAK,EAAE/B,IAAI,CAAC;AAC9B;AAEO,SAASgC,0BAA0BA,CAExChC,IAAkC,EAClC;EACA,IAAI,CAACiC,+BAA+B,CAACjC,IAAI,CAAC;EAC1C,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASiC,+BAA+BA,CAE7ClC,IAAuC,EACvC;EACA,IAAI,CAACc,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAAC+B,+BAA+B,CAACjC,IAAI,CAAC;EAC1C,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASkC,mBAAmBA,CAEjCnC,IAA2B,EAC3B;EACA,MAAM;IAAEqB;EAAS,CAAC,GAAGrB,IAAI;EACzB,IAAIqB,QAAQ,EAAE;IACZ,IAAI,CAACP,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACkC,2BAA2B,CAACpC,IAAI,CAAC;EACtC,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;EACrC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmC,2BAA2BA,CAEzCpC,IAAiD,EACjD;EACA,IAAIA,IAAI,CAACqC,QAAQ,EAAE;IACjB,IAAI,CAACpC,SAAK,GAAI,CAAC;EACjB;EACA,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACsC,GAAG,EAAEtC,IAAI,CAAC;EAC1B,IAAIA,IAAI,CAACqC,QAAQ,EAAE;IACjB,IAAI,CAACpC,SAAK,GAAI,CAAC;EACjB;EACA,IAAID,IAAI,CAACG,QAAQ,EAAE;IACjB,IAAI,CAACF,SAAK,GAAI,CAAC;EACjB;AACF;AAEO,SAASsC,iBAAiBA,CAAgBvC,IAAyB,EAAE;EAC1E,MAAM;IAAEwC;EAAK,CAAC,GAAGxC,IAAI;EACrB,IAAIwC,IAAI,KAAK,KAAK,IAAIA,IAAI,KAAK,KAAK,EAAE;IACpC,IAAI,CAAC1B,IAAI,CAAC0B,IAAI,CAAC;IACf,IAAI,CAACtC,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACkC,2BAA2B,CAACpC,IAAI,CAAC;EACtC,IAAI,CAACiC,+BAA+B,CAACjC,IAAI,CAAC;EAC1C,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASwC,gBAAgBA,CAAgBzC,IAAwB,EAAE;EACxE,MAAM;IAAEqB,QAAQ;IAAEqB,MAAM,EAAEC;EAAS,CAAC,GAAG3C,IAAI;EAC3C,IAAI2C,QAAQ,EAAE;IACZ,IAAI,CAAC7B,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAImB,QAAQ,EAAE;IACZ,IAAI,CAACP,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2C,WAAW,CAAC5C,IAAI,CAAC6C,UAAU,EAAE7C,IAAI,CAAC;EACvC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;EACrC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS6C,YAAYA,CAAA,EAAgB;EAC1C,IAAI,CAAChC,IAAI,CAAC,KAAK,CAAC;AAClB;AACO,SAASiC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACjC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASkC,gBAAgBA,CAAA,EAAgB;EAC9C,IAAI,CAAClC,IAAI,CAAC,SAAS,CAAC;AACtB;AACO,SAASmC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACnC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASoC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACpC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASqC,gBAAgBA,CAAA,EAAgB;EAC9C,IAAI,CAACrC,IAAI,CAAC,SAAS,CAAC;AACtB;AACO,SAASsC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACtC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASuC,eAAeA,CAAA,EAAgB;EAC7C,IAAI,CAACvC,IAAI,CAAC,QAAQ,CAAC;AACrB;AACO,SAASwC,aAAaA,CAAA,EAAgB;EAC3C,IAAI,CAACxC,IAAI,CAAC,MAAM,CAAC;AACnB;AACO,SAASyC,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAACzC,IAAI,CAAC,WAAW,CAAC;AACxB;AACO,SAAS0C,aAAaA,CAAA,EAAgB;EAC3C,IAAI,CAAC1C,IAAI,CAAC,MAAM,CAAC;AACnB;AACO,SAAS2C,cAAcA,CAAA,EAAgB;EAC5C,IAAI,CAAC3C,IAAI,CAAC,OAAO,CAAC;AACpB;AACO,SAAS4C,kBAAkBA,CAAA,EAAgB;EAChD,IAAI,CAAC5C,IAAI,CAAC,WAAW,CAAC;AACxB;AAEO,SAAS6C,UAAUA,CAAA,EAAgB;EACxC,IAAI,CAAC7C,IAAI,CAAC,MAAM,CAAC;AACnB;AAEO,SAAS8C,cAAcA,CAAgB5D,IAAsB,EAAE;EACpE,IAAI,CAAC6D,gCAAgC,CAAC7D,IAAI,CAAC;AAC7C;AAEO,SAAS8D,iBAAiBA,CAAgB9D,IAAyB,EAAE;EAC1E,IAAIA,IAAI,CAAC+D,QAAQ,EAAE;IACjB,IAAI,CAACjD,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACY,IAAI,CAAC,KAAK,CAAC;EAChB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAAC2D,gCAAgC,CAAC7D,IAAI,CAAC;AAC7C;AAEO,SAAS6D,gCAAgCA,CAE9C7D,IAA4C,EAC5C;EACA,MAAM;IAAEgE;EAAe,CAAC,GAAGhE,IAAI;EAC/B,MAAM6C,UAAU,GAIZ7C,IAAI,CAAC6C,UAAU;EACnB,IAAI,CAACzC,KAAK,CAAC4D,cAAc,EAAEhE,IAAI,CAAC;EAChC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2C,WAAW,CAACC,UAAU,EAAE7C,IAAI,CAAC;EAClC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,KAAK,CAAC,IAAI,CAAC;EAChB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,MAAM+D,UAAU,GAIZjE,IAAI,CAACK,cAAc;EACvB,IAAI,CAACD,KAAK,CAAC6D,UAAU,CAAC5D,cAAc,EAAEL,IAAI,CAAC;AAC7C;AAEO,SAASkE,eAAeA,CAAgBlE,IAAuB,EAAE;EACtE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACmE,QAAQ,EAAEnE,IAAI,EAAE,IAAI,CAAC;EACrC,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACgE,cAAc,EAAEhE,IAAI,EAAE,IAAI,CAAC;AAC7C;AAEO,SAASoE,eAAeA,CAAgBpE,IAAuB,EAAE;EACtE,IAAIA,IAAI,CAACqE,OAAO,EAAE;IAChB,IAAI,CAACvD,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACsE,aAAa,CAAC;EAC9B,IAAItE,IAAI,CAACK,cAAc,EAAE;IACvB,IAAI,CAACH,KAAK,CAAC,CAAC;IACZ,IAAI,CAACY,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACZ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACK,cAAc,CAACA,cAAc,CAAC;EAChD;AACF;AAEO,SAASkE,WAAWA,CAAgBvE,IAAmB,EAAE;EAC9D,IAAI,CAACc,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACwE,QAAQ,CAAC;EAEzB,IAAIxE,IAAI,CAACgE,cAAc,EAAE;IACvB,IAAI,CAAC5D,KAAK,CAACJ,IAAI,CAACgE,cAAc,EAAEhE,IAAI,CAAC;EACvC;AACF;AAEO,SAASyE,aAAaA,CAAgBzE,IAAqB,EAAE;EAClE,IAAI,CAAC0E,iCAAiC,CAAC1E,IAAI,CAAC2E,OAAO,EAAE3E,IAAI,CAAC;AAC5D;AAEO,SAAS0E,iCAAiCA,CAE/CC,OAA0B,EAC1B3E,IAAkC,EAClC;EACA4E,aAAa,CAAC,IAAI,EAAED,OAAO,EAAE3E,IAAI,CAAC;AACpC;AAEA,SAAS4E,aAAaA,CAACC,OAAgB,EAAEF,OAAiB,EAAE3E,IAAY,EAAE;EACxE6E,OAAO,CAAC5E,KAAK,CAAC,GAAG,CAAC;EAClB,IAAI0E,OAAO,CAAChE,MAAM,EAAE;IAClBkE,OAAO,CAACC,MAAM,CAAC,CAAC;IAChBD,OAAO,CAACE,OAAO,CAAC,CAAC;IACjB,KAAK,MAAMC,MAAM,IAAIL,OAAO,EAAE;MAC5BE,OAAO,CAACzE,KAAK,CAAC4E,MAAM,EAAEhF,IAAI,CAAC;MAE3B6E,OAAO,CAACE,OAAO,CAAC,CAAC;IACnB;IACAF,OAAO,CAACI,MAAM,CAAC,CAAC;EAClB;EAEAJ,OAAO,CAACK,UAAU,CAAClF,IAAI,CAAC;AAC1B;AAEO,SAASmF,WAAWA,CAAgBnF,IAAmB,EAAE;EAC9D,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACoF,WAAW,EAAEpF,IAAI,EAAE,IAAI,CAAC;EAExC,IAAI,CAACC,KAAK,CAAC,IAAI,CAAC;AAClB;AAEO,SAASoF,WAAWA,CAAgBrF,IAAmB,EAAE;EAC9D,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACO,SAAS,CAACR,IAAI,CAACsF,YAAY,EAAEtF,IAAI,CAAC;EACvC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASsF,cAAcA,CAAgBvF,IAAsB,EAAE;EACpE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;EACrC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASuF,UAAUA,CAAgBxF,IAAkB,EAAE;EAC5D,IAAI,CAACC,KAAK,CAAC,KAAK,CAAC;EACjB,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;AACvC;AAEO,SAASyF,kBAAkBA,CAAgBzF,IAA0B,EAAE;EAC5E,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC0F,KAAK,EAAE1F,IAAI,CAAC;EAC5B,IAAIA,IAAI,CAACG,QAAQ,EAAE,IAAI,CAACF,SAAK,GAAI,CAAC;EAClC,IAAI,CAACA,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACoF,WAAW,EAAEpF,IAAI,CAAC;AACpC;AAEO,SAAS2F,WAAWA,CAAgB3F,IAAmB,EAAE;EAC9D4F,8BAA8B,CAAC,IAAI,EAAE5F,IAAI,EAAE,GAAG,CAAC;AACjD;AAEO,SAAS6F,kBAAkBA,CAAgB7F,IAA0B,EAAE;EAC5E4F,8BAA8B,CAAC,IAAI,EAAE5F,IAAI,EAAE,GAAG,CAAC;AACjD;AAEA,SAAS4F,8BAA8BA,CACrCf,OAAgB,EAChB7E,IAA0C,EAC1C8F,GAAc,EACd;EACAjB,OAAO,CAACkB,SAAS,CAAC/F,IAAI,CAACgG,KAAK,EAAEhG,IAAI,EAAE;IAClCiG,SAASA,CAAA,EAAG;MACV,IAAI,CAAC/F,KAAK,CAAC,CAAC;MACZ,IAAI,CAACD,KAAK,CAAC6F,GAAG,CAAC;MACf,IAAI,CAAC5F,KAAK,CAAC,CAAC;IACd;EACF,CAAC,CAAC;AACJ;AAEO,SAASgG,iBAAiBA,CAAgBlG,IAAyB,EAAE;EAC1E,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACmG,SAAS,CAAC;EAC1B,IAAI,CAACjG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACY,IAAI,CAAC,SAAS,CAAC;EACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACoG,WAAW,CAAC;EAC5B,IAAI,CAAClG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACqG,QAAQ,CAAC;EACzB,IAAI,CAACnG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACsG,SAAS,CAAC;AAC5B;AAEO,SAASC,WAAWA,CAAgBvG,IAAmB,EAAE;EAC9D,IAAI,CAACC,KAAK,CAAC,OAAO,CAAC;EACnB,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACwG,aAAa,CAAC;AAChC;AAEO,SAASC,mBAAmBA,CAEjCzG,IAA2B,EAC3B;EACA,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;EACrC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASyG,cAAcA,CAAgB1G,IAAsB,EAAE;EACpE,IAAI,CAACc,IAAI,CAACd,IAAI,CAAC2G,QAAQ,CAAC;EACxB,IAAI,CAACzG,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACK,cAAc,EAAEL,IAAI,CAAC;AACvC;AAEO,SAAS4G,mBAAmBA,CAEjC5G,IAA2B,EAC3B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAAC6G,UAAU,EAAE7G,IAAI,EAAE,IAAI,CAAC;EACvC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAACJ,IAAI,CAAC8G,SAAS,EAAE9G,IAAI,CAAC;EAChC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS8G,YAAYA,CAAgB/G,IAAoB,EAAE;EAChE,MAAM;IAAEgH,QAAQ;IAAE7G,QAAQ;IAAEkB,QAAQ;IAAEmF,aAAa;IAAEnG;EAAe,CAAC,GAAGL,IAAI;EAC5E,IAAI,CAACC,SAAK,IAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAImB,QAAQ,EAAE;IACZ4F,gBAAgB,CAAC,IAAI,EAAE5F,QAAQ,CAAC;IAChC,IAAI,CAACP,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACa,IAAI,CAEF0F,aAAa,CAACxF,IAErB,CAAC;EACD,IAAI,CAACd,KAAK,CAAC,CAAC;EACZ,IAAI,CAACY,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACoG,aAAa,CAACvF,UAAU,EAAEuF,aAAa,CAAC;EAEnD,IAAIQ,QAAQ,EAAE;IACZ,IAAI,CAAC9G,KAAK,CAAC,CAAC;IACZ,IAAI,CAACY,IAAI,CAAC,IAAI,CAAC;IACf,IAAI,CAACZ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAAC4G,QAAQ,EAAEhH,IAAI,CAAC;EAC5B;EAEA,IAAI,CAACC,SAAK,GAAI,CAAC;EAEf,IAAIE,QAAQ,EAAE;IACZ8G,gBAAgB,CAAC,IAAI,EAAE9G,QAAQ,CAAC;IAChC,IAAI,CAACF,SAAK,GAAI,CAAC;EACjB;EAEA,IAAII,cAAc,EAAE;IAClB,IAAI,CAACJ,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACC,cAAc,EAAEL,IAAI,CAAC;EAClC;EACA,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,IAAI,CAAC;AACjB;AAEA,SAASgH,gBAAgBA,CAACC,IAAa,EAAEC,GAAqB,EAAE;EAC9D,IAAIA,GAAG,KAAK,IAAI,EAAE;IAChBD,IAAI,CAACjH,KAAK,CAACkH,GAAG,CAAC;EACjB;AACF;AAEO,SAASC,aAAaA,CAAgBpH,IAAqB,EAAE;EAClE,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACqH,OAAO,EAAErH,IAAI,CAAC;AAChC;AAEO,SAASsH,6BAA6BA,CAE3CtH,IAAqC,EACrC;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACuH,UAAU,EAAEvH,IAAI,CAAC;EACjC,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACgE,cAAc,EAAEhE,IAAI,CAAC;AACvC;AAEO,SAASwH,sBAAsBA,CAEpCxH,IAA8B,EAC9B;EACA,MAAM;IAAEyB,OAAO;IAAEgG,EAAE;IAAEzD,cAAc;IAAE0D,OAAO,EAAEC,OAAO;IAAEC;EAAK,CAAC,GAAG5H,IAAI;EACpE,IAAIyB,OAAO,EAAE;IACX,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACY,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EACpB,IAAI,CAACI,KAAK,CAAC4D,cAAc,EAAEhE,IAAI,CAAC;EAChC,IAAI2H,OAAO,YAAPA,OAAO,CAAEhH,MAAM,EAAE;IACnB,IAAI,CAACT,KAAK,CAAC,CAAC;IACZ,IAAI,CAACY,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;IACZ,IAAI,CAACM,SAAS,CAACmH,OAAO,EAAE3H,IAAI,CAAC;EAC/B;EACA,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACwH,IAAI,EAAE5H,IAAI,CAAC;AACxB;AAEO,SAAS6H,eAAeA,CAAgB7H,IAAuB,EAAE;EACtE,IAAI,CAAC0E,iCAAiC,CAAC1E,IAAI,CAAC4H,IAAI,EAAE5H,IAAI,CAAC;AACzD;AAEO,SAAS8H,sBAAsBA,CAEpC9H,IAA8B,EAC9B;EACA,MAAM;IAAEyB,OAAO;IAAEgG,EAAE;IAAEzD,cAAc;IAAE3D;EAAe,CAAC,GAAGL,IAAI;EAC5D,IAAIyB,OAAO,EAAE;IACX,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACY,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EACpB,IAAI,CAACI,KAAK,CAAC4D,cAAc,EAAEhE,IAAI,CAAC;EAChC,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACC,cAAc,EAAEL,IAAI,CAAC;EAChC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEA,SAAS8H,gBAAgBA,CAEvB/H,IAAgD,EAChD;EAAA,IAAAgI,qBAAA;EACA,MAAM;IAAEtH,IAAI;IAAE6G,UAAU;IAAElH;EAAe,CAAC,GAAGL,IAAI;EACjD,MAAMiI,WAAW,GAAG,CAAC,GAAAD,qBAAA,GAACT,UAAU,CAACW,gBAAgB,aAA3BF,qBAAA,CAA6BrH,MAAM;EACzD,IAAI,CAACP,KAAK,CAACmH,UAAU,EAAEvH,IAAI,EAAE,IAAI,EAAEmI,SAAS,EAAEF,WAAW,CAAC;EAC1D,IAAI,CAAC/H,KAAK,CAAC,CAAC;EACZ,IAAI,CAACY,IAAI,CAACJ,IAAI,KAAK,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;EACzD,IAAI,CAACR,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACC,cAAc,EAAEL,IAAI,CAAC;AAClC;AAOO,SAASoI,eAAeA,CAAgBpI,IAAuB,EAAE;EACtE,MAAM;IAAEK,cAAc;IAAEkH;EAAW,CAAC,GAAGvH,IAAI;EAC3C,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAACC,cAAc,EAAEL,IAAI,CAAC;EAChC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACmH,UAAU,EAAEvH,IAAI,CAAC;AAC9B;AAEO,SAASqI,yBAAyBA,CAEvCrI,IAAiC,EACjC;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACuH,UAAU,EAAEvH,IAAI,CAAC;EACjC,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACgE,cAAc,EAAEhE,IAAI,CAAC;AACvC;AAEO,SAASsI,iBAAiBA,CAAgBtI,IAAyB,EAAE;EAC1E,MAAM;IAAEyB,OAAO;IAAE8G,KAAK,EAAEC,OAAO;IAAEf,EAAE;IAAE9C;EAAQ,CAAC,GAAG3E,IAAI;EACrD,IAAIyB,OAAO,EAAE;IACX,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAIsI,OAAO,EAAE;IACX,IAAI,CAAC1H,IAAI,CAAC,OAAO,CAAC;IAClB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACY,IAAI,CAAC,MAAM,CAAC;EACjB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EACpB,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ0E,aAAa,CAAC,IAAI,EAAED,OAAO,EAAE3E,IAAI,CAAC;AACpC;AAEO,SAASyI,YAAYA,CAAgBzI,IAAoB,EAAE;EAChE,MAAM;IAAEyH,EAAE;IAAEiB;EAAY,CAAC,GAAG1I,IAAI;EAChC,IAAI,CAACI,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EACpB,IAAI0I,WAAW,EAAE;IACf,IAAI,CAACxI,KAAK,CAAC,CAAC;IACZ,IAAI,CAACD,SAAK,GAAI,CAAC;IACf,IAAI,CAACC,KAAK,CAAC,CAAC;IACZ,IAAI,CAACE,KAAK,CAACsI,WAAW,EAAE1I,IAAI,CAAC;EAC/B;EACA,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAAS0I,mBAAmBA,CAEjC3I,IAA2B,EAC3B;EACA,MAAM;IAAEyB,OAAO;IAAEgG;EAAG,CAAC,GAAGzH,IAAI;EAE5B,IAAIyB,OAAO,EAAE;IACX,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EAEA,IAAI,CAACF,IAAI,CAAC4I,MAAM,EAAE;IAChB,IAAI,CAAC9H,IAAI,CAAC2G,EAAE,CAAC/G,IAAI,KAAK,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC5D,IAAI,CAACR,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACE,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EAEpB,IAAI,CAACA,IAAI,CAAC4H,IAAI,EAAE;IACd,IAAI,CAAC3H,SAAK,GAAI,CAAC;IACf;EACF;EAEA,IAAI2H,IAAI,GAAG5H,IAAI,CAAC4H,IAAI;EACpB,OAAOA,IAAI,CAAClH,IAAI,KAAK,qBAAqB,EAAE;IAC1C,IAAI,CAACT,SAAK,GAAI,CAAC;IACf,IAAI,CAACG,KAAK,CAACwH,IAAI,CAACH,EAAE,EAAEG,IAAI,CAAC;IACzBA,IAAI,GAAGA,IAAI,CAACA,IAAI;EAClB;EAEA,IAAI,CAAC1H,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACwH,IAAI,EAAE5H,IAAI,CAAC;AACxB;AAEO,SAAS6I,aAAaA,CAAgB7I,IAAqB,EAAE;EAClE4E,aAAa,CAAC,IAAI,EAAE5E,IAAI,CAAC4H,IAAI,EAAE5H,IAAI,CAAC;AACtC;AAEO,SAAS8I,YAAYA,CAAgB9I,IAAoB,EAAE;EAChE,MAAM;IAAE+I,QAAQ;IAAEC,SAAS;IAAEhF;EAAe,CAAC,GAAGhE,IAAI;EACpD,IAAI,CAACc,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACb,SAAK,GAAI,CAAC;EACf,IAAI,CAACG,KAAK,CAAC2I,QAAQ,EAAE/I,IAAI,CAAC;EAC1B,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI+I,SAAS,EAAE;IACb,IAAI,CAAC/I,SAAK,GAAI,CAAC;IACf,IAAI,CAACG,KAAK,CAAC4I,SAAS,EAAEhJ,IAAI,CAAC;EAC7B;EACA,IAAIgE,cAAc,EAAE;IAClB,IAAI,CAAC5D,KAAK,CAAC4D,cAAc,EAAEhE,IAAI,CAAC;EAClC;AACF;AAEO,SAASiJ,yBAAyBA,CAEvCjJ,IAAiC,EACjC;EACA,MAAM;IAAEkJ,QAAQ;IAAEzB,EAAE;IAAE0B;EAAgB,CAAC,GAAGnJ,IAAI;EAC9C,IAAIkJ,QAAQ,EAAE;IACZ,IAAI,CAACpI,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAI,CAACY,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACqH,EAAE,EAAEzH,IAAI,CAAC;EACpB,IAAI,CAACE,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAAC+I,eAAe,EAAEnJ,IAAI,CAAC;EACjC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASmJ,yBAAyBA,CAEvCpJ,IAAiC,EACjC;EACA,IAAI,CAACC,KAAK,CAAC,UAAU,CAAC;EACtB,IAAI,CAACG,KAAK,CAACJ,IAAI,CAACuH,UAAU,EAAEvH,IAAI,CAAC;EACjC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASoJ,mBAAmBA,CAEjCrJ,IAA2B,EAC3B;EACA,IAAI,CAACI,KAAK,CAACJ,IAAI,CAACuH,UAAU,EAAEvH,IAAI,CAAC;EACjC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASqJ,kBAAkBA,CAAgBtJ,IAA0B,EAAE;EAC5E,IAAI,CAACc,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACD,SAAK,GAAI,CAAC;EACf,IAAI,CAACC,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACuH,UAAU,EAAEvH,IAAI,CAAC;EACjC,IAAI,CAACC,SAAK,GAAI,CAAC;AACjB;AAEO,SAASsJ,4BAA4BA,CAE1CvJ,IAAoC,EACpC;EACA,IAAI,CAACc,IAAI,CAAC,QAAQ,CAAC;EACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACY,IAAI,CAAC,IAAI,CAAC;EACf,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACY,IAAI,CAAC,WAAW,CAAC;EACtB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACZ,IAAI,CAACE,KAAK,CAACJ,IAAI,CAACyH,EAAE,EAAEzH,IAAI,CAAC;AAC3B;AAEO,SAASiC,+BAA+BA,CAAgBjC,IAAS,EAAE;EACxE,MAAM;IAAEgE;EAAe,CAAC,GAAGhE,IAAI;EAC/B,MAAM6C,UAAU,GAEZ7C,IAAI,CAAC6C,UAAU;EACnB,IAAI,CAACzC,KAAK,CAAC4D,cAAc,EAAEhE,IAAI,CAAC;EAChC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,IAAI,CAAC2C,WAAW,CAACC,UAAU,EAAE7C,IAAI,CAAC;EAClC,IAAI,CAACC,SAAK,GAAI,CAAC;EACf,MAAMgE,UAAU,GAEZjE,IAAI,CAACK,cAAc;EACvB,IAAI,CAACD,KAAK,CAAC6D,UAAU,EAAEjE,IAAI,CAAC;AAC9B;AAEO,SAASwJ,2BAA2BA,CAEzCxJ,IAKqB,EACrB;EACA,MAAMyJ,OAAO,GACXzJ,IAAI,CAACU,IAAI,KAAK,uBAAuB,IAAIV,IAAI,CAACU,IAAI,KAAK,eAAe;EACxE,IAAI+I,OAAO,IAAIzJ,IAAI,CAACyB,OAAO,EAAE;IAC3B,IAAI,CAACX,IAAI,CAAC,SAAS,CAAC;IACpB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAIF,IAAI,CAACoB,aAAa,EAAE;IACtB,IAAI,CAACN,IAAI,CAACd,IAAI,CAACoB,aAAa,CAAC;IAC7B,IAAI,CAAClB,KAAK,CAAC,CAAC;EACd;EACA,IAAIF,IAAI,CAAC0C,MAAM,EAAE;IACf,IAAI,CAAC5B,IAAI,CAAC,QAAQ,CAAC;IACnB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAIF,IAAI,CAAC0J,QAAQ,EAAE;IACjB,IAAI,CAAC5I,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAIF,IAAI,CAAC+D,QAAQ,EAAE;IACjB,IAAI,CAACjD,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;EACA,IAAIuJ,OAAO,IAAIzJ,IAAI,CAACqB,QAAQ,EAAE;IAC5B,IAAI,CAACP,IAAI,CAAC,UAAU,CAAC;IACrB,IAAI,CAACZ,KAAK,CAAC,CAAC;EACd;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/index.js b/node_modules/@babel/generator/lib/index.js index 9ee293a1c..2678931b9 100644 --- a/node_modules/@babel/generator/lib/index.js +++ b/node_modules/@babel/generator/lib/index.js @@ -3,36 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = void 0; -exports.generate = generate; +exports.default = generate; var _sourceMap = require("./source-map.js"); var _printer = require("./printer.js"); -function normalizeOptions(code, opts, ast) { - if (opts.experimental_preserveFormat) { - if (typeof code !== "string") { - throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string"); - } - if (!opts.retainLines) { - throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`"); - } - if (opts.compact && opts.compact !== "auto") { - throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option"); - } - if (opts.minified) { - throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option"); - } - if (opts.jsescOption) { - throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option"); - } - if (!Array.isArray(ast.tokens)) { - throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option."); - } - } +function normalizeOptions(code, opts) { const format = { auxiliaryCommentBefore: opts.auxiliaryCommentBefore, auxiliaryCommentAfter: opts.auxiliaryCommentAfter, shouldPrintComment: opts.shouldPrintComment, - preserveFormat: opts.experimental_preserveFormat, retainLines: opts.retainLines, retainFunctionParens: opts.retainFunctionParens, comments: opts.comments == null || opts.comments, @@ -69,7 +47,7 @@ function normalizeOptions(code, opts, ast) { console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`); } } - if (format.compact || format.preserveFormat) { + if (format.compact) { format.indent.adjustMultilineComment = false; } const { @@ -92,7 +70,7 @@ function normalizeOptions(code, opts, ast) { this._format = void 0; this._map = void 0; this._ast = ast; - this._format = normalizeOptions(code, opts, ast); + this._format = normalizeOptions(code, opts); this._map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; } generate() { @@ -102,11 +80,10 @@ function normalizeOptions(code, opts, ast) { }; } function generate(ast, opts = {}, code) { - const format = normalizeOptions(code, opts, ast); + const format = normalizeOptions(code, opts); const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null; - const printer = new _printer.default(format, map, ast.tokens, typeof code === "string" ? code : null); + const printer = new _printer.default(format, map); return printer.generate(ast); } -var _default = exports.default = generate; //# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/generator/lib/index.js.map b/node_modules/@babel/generator/lib/index.js.map index 86913adb8..c2a1eee63 100644 --- a/node_modules/@babel/generator/lib/index.js.map +++ b/node_modules/@babel/generator/lib/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_sourceMap","require","_printer","normalizeOptions","code","opts","ast","experimental_preserveFormat","Error","retainLines","compact","minified","jsescOption","Array","isArray","tokens","format","auxiliaryCommentBefore","auxiliaryCommentAfter","shouldPrintComment","preserveFormat","retainFunctionParens","comments","concise","indent","adjustMultilineComment","style","Object","assign","quotes","wrap","minimal","topicToken","importAttributesKeyword","_opts$recordAndTupleS","decoratorsBeforeExport","json","jsonCompatibleStrings","recordAndTupleSyntaxType","value","includes","length","console","error","filename","undefined","exports","CodeGenerator","constructor","_ast","_format","_map","sourceMaps","SourceMap","generate","printer","Printer","map","_default","default"],"sources":["../src/index.ts"],"sourcesContent":["import SourceMap from \"./source-map.ts\";\nimport Printer from \"./printer.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Opts as jsescOptions } from \"jsesc\";\nimport type { Format } from \"./printer.ts\";\nimport type {\n EncodedSourceMap,\n DecodedSourceMap,\n Mapping,\n} from \"@jridgewell/gen-mapping\";\n\n/**\n * Normalize generator options, setting defaults.\n *\n * - Detects code indentation.\n * - If `opts.compact = \"auto\"` and the code is over 500KB, `compact` will be set to `true`.\n */\n\nfunction normalizeOptions(\n code: string | { [filename: string]: string },\n opts: GeneratorOptions,\n ast: t.Node,\n): Format {\n if (opts.experimental_preserveFormat) {\n if (typeof code !== \"string\") {\n throw new Error(\n \"`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string\",\n );\n }\n if (!opts.retainLines) {\n throw new Error(\n \"`experimental_preserveFormat` requires `retainLines` to be set to `true`\",\n );\n }\n if (opts.compact && opts.compact !== \"auto\") {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `compact` option\",\n );\n }\n if (opts.minified) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `minified` option\",\n );\n }\n if (opts.jsescOption) {\n throw new Error(\n \"`experimental_preserveFormat` is not compatible with the `jsescOption` option\",\n );\n }\n if (!Array.isArray((ast as any).tokens)) {\n throw new Error(\n \"`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.\",\n );\n }\n }\n\n const format: Format = {\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n shouldPrintComment: opts.shouldPrintComment,\n preserveFormat: opts.experimental_preserveFormat,\n retainLines: opts.retainLines,\n retainFunctionParens: opts.retainFunctionParens,\n comments: opts.comments == null || opts.comments,\n compact: opts.compact,\n minified: opts.minified,\n concise: opts.concise,\n indent: {\n adjustMultilineComment: true,\n style: \" \",\n },\n jsescOption: {\n quotes: \"double\",\n wrap: true,\n minimal: process.env.BABEL_8_BREAKING ? true : false,\n ...opts.jsescOption,\n },\n topicToken: opts.topicToken,\n importAttributesKeyword: opts.importAttributesKeyword,\n };\n\n if (!process.env.BABEL_8_BREAKING) {\n format.decoratorsBeforeExport = opts.decoratorsBeforeExport;\n format.jsescOption.json = opts.jsonCompatibleStrings;\n format.recordAndTupleSyntaxType = opts.recordAndTupleSyntaxType ?? \"hash\";\n }\n\n if (format.minified) {\n format.compact = true;\n\n format.shouldPrintComment =\n format.shouldPrintComment || (() => format.comments);\n } else {\n format.shouldPrintComment =\n format.shouldPrintComment ||\n (value =>\n format.comments ||\n value.includes(\"@license\") ||\n value.includes(\"@preserve\"));\n }\n\n if (format.compact === \"auto\") {\n format.compact = typeof code === \"string\" && code.length > 500_000; // 500KB\n\n if (format.compact) {\n console.error(\n \"[BABEL] Note: The code generator has deoptimised the styling of \" +\n `${opts.filename} as it exceeds the max of ${\"500KB\"}.`,\n );\n }\n }\n\n if (format.compact || format.preserveFormat) {\n format.indent.adjustMultilineComment = false;\n }\n\n const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =\n format;\n\n if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) {\n format.auxiliaryCommentBefore = undefined;\n }\n if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) {\n format.auxiliaryCommentAfter = undefined;\n }\n\n return format;\n}\n\nexport interface GeneratorOptions {\n /**\n * Optional string to add as a block comment at the start of the output file.\n */\n auxiliaryCommentBefore?: string;\n\n /**\n * Optional string to add as a block comment at the end of the output file.\n */\n auxiliaryCommentAfter?: string;\n\n /**\n * Function that takes a comment (as a string) and returns true if the comment should be included in the output.\n * By default, comments are included if `opts.comments` is `true` or if `opts.minified` is `false` and the comment\n * contains `@preserve` or `@license`.\n */\n shouldPrintComment?(comment: string): boolean;\n\n /**\n * Preserve the input code format while printing the transformed code.\n * This is experimental, and may have breaking changes in future\n * patch releases. It will be removed in a future minor release,\n * when it will graduate to stable.\n */\n experimental_preserveFormat?: boolean;\n\n /**\n * Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces).\n * Defaults to `false`.\n */\n retainLines?: boolean;\n\n /**\n * Retain parens around function expressions (could be used to change engine parsing behavior)\n * Defaults to `false`.\n */\n retainFunctionParens?: boolean;\n\n /**\n * Should comments be included in output? Defaults to `true`.\n */\n comments?: boolean;\n\n /**\n * Set to true to avoid adding whitespace for formatting. Defaults to the value of `opts.minified`.\n */\n compact?: boolean | \"auto\";\n\n /**\n * Should the output be minified. Defaults to `false`.\n */\n minified?: boolean;\n\n /**\n * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`.\n */\n concise?: boolean;\n\n /**\n * Used in warning messages\n */\n filename?: string;\n\n /**\n * Enable generating source maps. Defaults to `false`.\n */\n sourceMaps?: boolean;\n\n inputSourceMap?: any;\n\n /**\n * A root for all relative URLs in the source map.\n */\n sourceRoot?: string;\n\n /**\n * The filename for the source code (i.e. the code in the `code` argument).\n * This will only be used if `code` is a string.\n */\n sourceFileName?: string;\n\n /**\n * Set to true to run jsesc with \"json\": true to print \"\\u00A9\" vs. \"©\";\n * @deprecated use `jsescOptions: { json: true }` instead\n */\n jsonCompatibleStrings?: boolean;\n\n /**\n * Set to true to enable support for experimental decorators syntax before\n * module exports. If not specified, decorators will be printed in the same\n * position as they were in the input source code.\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n\n /**\n * Options for outputting jsesc representation.\n */\n jsescOption?: jsescOptions;\n\n /**\n * For use with the recordAndTuple token.\n * @deprecated It will be removed in Babel 8.\n */\n recordAndTupleSyntaxType?: \"bar\" | \"hash\";\n\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: \"%\" | \"#\" | \"@@\" | \"^^\" | \"^\";\n\n /**\n * The import attributes syntax style:\n * - \"with\" : `import { a } from \"b\" with { type: \"json\" };`\n * - \"assert\" : `import { a } from \"b\" assert { type: \"json\" };`\n * - \"with-legacy\" : `import { a } from \"b\" with type: \"json\";`\n */\n importAttributesKeyword?: \"with\" | \"assert\" | \"with-legacy\";\n}\n\nexport interface GeneratorResult {\n code: string;\n map: EncodedSourceMap | null;\n decodedMap: DecodedSourceMap | undefined;\n rawMappings: Mapping[] | undefined;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n /**\n * We originally exported the Generator class above, but to make it extra clear that it is a private API,\n * we have moved that to an internal class instance and simplified the interface to the two public methods\n * that we wish to support.\n */\n\n // eslint-disable-next-line no-restricted-globals\n exports.CodeGenerator = class CodeGenerator {\n private _ast: t.Node;\n private _format: Format | undefined;\n private _map: SourceMap | null;\n constructor(ast: t.Node, opts: GeneratorOptions = {}, code?: string) {\n this._ast = ast;\n this._format = normalizeOptions(code, opts, ast);\n this._map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n }\n generate(): GeneratorResult {\n const printer = new Printer(this._format, this._map);\n\n return printer.generate(this._ast);\n }\n };\n}\n\n/**\n * Turns an AST into code, maintaining sourcemaps, user preferences, and valid output.\n * @param ast - the abstract syntax tree from which to generate output code.\n * @param opts - used for specifying options for code generation.\n * @param code - the original source code, used for source maps.\n * @returns - an object containing the output code and source map.\n */\nexport function generate(\n ast: t.Node,\n opts: GeneratorOptions = {},\n code?: string | { [filename: string]: string },\n): GeneratorResult {\n const format = normalizeOptions(code, opts, ast);\n const map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n\n const printer = new Printer(\n format,\n map,\n (ast as any).tokens,\n typeof code === \"string\" ? code : null,\n );\n\n return printer.generate(ast);\n}\n\nexport default generate;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAiBA,SAASE,gBAAgBA,CACvBC,IAA6C,EAC7CC,IAAsB,EACtBC,GAAW,EACH;EACR,IAAID,IAAI,CAACE,2BAA2B,EAAE;IACpC,IAAI,OAAOH,IAAI,KAAK,QAAQ,EAAE;MAC5B,MAAM,IAAII,KAAK,CACb,yGACF,CAAC;IACH;IACA,IAAI,CAACH,IAAI,CAACI,WAAW,EAAE;MACrB,MAAM,IAAID,KAAK,CACb,0EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACK,OAAO,IAAIL,IAAI,CAACK,OAAO,KAAK,MAAM,EAAE;MAC3C,MAAM,IAAIF,KAAK,CACb,2EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACM,QAAQ,EAAE;MACjB,MAAM,IAAIH,KAAK,CACb,4EACF,CAAC;IACH;IACA,IAAIH,IAAI,CAACO,WAAW,EAAE;MACpB,MAAM,IAAIJ,KAAK,CACb,+EACF,CAAC;IACH;IACA,IAAI,CAACK,KAAK,CAACC,OAAO,CAAER,GAAG,CAASS,MAAM,CAAC,EAAE;MACvC,MAAM,IAAIP,KAAK,CACb,qJACF,CAAC;IACH;EACF;EAEA,MAAMQ,MAAc,GAAG;IACrBC,sBAAsB,EAAEZ,IAAI,CAACY,sBAAsB;IACnDC,qBAAqB,EAAEb,IAAI,CAACa,qBAAqB;IACjDC,kBAAkB,EAAEd,IAAI,CAACc,kBAAkB;IAC3CC,cAAc,EAAEf,IAAI,CAACE,2BAA2B;IAChDE,WAAW,EAAEJ,IAAI,CAACI,WAAW;IAC7BY,oBAAoB,EAAEhB,IAAI,CAACgB,oBAAoB;IAC/CC,QAAQ,EAAEjB,IAAI,CAACiB,QAAQ,IAAI,IAAI,IAAIjB,IAAI,CAACiB,QAAQ;IAChDZ,OAAO,EAAEL,IAAI,CAACK,OAAO;IACrBC,QAAQ,EAAEN,IAAI,CAACM,QAAQ;IACvBY,OAAO,EAAElB,IAAI,CAACkB,OAAO;IACrBC,MAAM,EAAE;MACNC,sBAAsB,EAAE,IAAI;MAC5BC,KAAK,EAAE;IACT,CAAC;IACDd,WAAW,EAAAe,MAAA,CAAAC,MAAA;MACTC,MAAM,EAAE,QAAQ;MAChBC,IAAI,EAAE,IAAI;MACVC,OAAO,EAAwC;IAAK,GACjD1B,IAAI,CAACO,WAAW,CACpB;IACDoB,UAAU,EAAE3B,IAAI,CAAC2B,UAAU;IAC3BC,uBAAuB,EAAE5B,IAAI,CAAC4B;EAChC,CAAC;EAEkC;IAAA,IAAAC,qBAAA;IACjClB,MAAM,CAACmB,sBAAsB,GAAG9B,IAAI,CAAC8B,sBAAsB;IAC3DnB,MAAM,CAACJ,WAAW,CAACwB,IAAI,GAAG/B,IAAI,CAACgC,qBAAqB;IACpDrB,MAAM,CAACsB,wBAAwB,IAAAJ,qBAAA,GAAG7B,IAAI,CAACiC,wBAAwB,YAAAJ,qBAAA,GAAI,MAAM;EAC3E;EAEA,IAAIlB,MAAM,CAACL,QAAQ,EAAE;IACnBK,MAAM,CAACN,OAAO,GAAG,IAAI;IAErBM,MAAM,CAACG,kBAAkB,GACvBH,MAAM,CAACG,kBAAkB,KAAK,MAAMH,MAAM,CAACM,QAAQ,CAAC;EACxD,CAAC,MAAM;IACLN,MAAM,CAACG,kBAAkB,GACvBH,MAAM,CAACG,kBAAkB,KACxBoB,KAAK,IACJvB,MAAM,CAACM,QAAQ,IACfiB,KAAK,CAACC,QAAQ,CAAC,UAAU,CAAC,IAC1BD,KAAK,CAACC,QAAQ,CAAC,WAAW,CAAC,CAAC;EAClC;EAEA,IAAIxB,MAAM,CAACN,OAAO,KAAK,MAAM,EAAE;IAC7BM,MAAM,CAACN,OAAO,GAAG,OAAON,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAACqC,MAAM,GAAG,MAAO;IAElE,IAAIzB,MAAM,CAACN,OAAO,EAAE;MAClBgC,OAAO,CAACC,KAAK,CACX,kEAAkE,GAChE,GAAGtC,IAAI,CAACuC,QAAQ,6BAA6B,OAAO,GACxD,CAAC;IACH;EACF;EAEA,IAAI5B,MAAM,CAACN,OAAO,IAAIM,MAAM,CAACI,cAAc,EAAE;IAC3CJ,MAAM,CAACQ,MAAM,CAACC,sBAAsB,GAAG,KAAK;EAC9C;EAEA,MAAM;IAAER,sBAAsB;IAAEC,qBAAqB;IAAEC;EAAmB,CAAC,GACzEH,MAAM;EAER,IAAIC,sBAAsB,IAAI,CAACE,kBAAkB,CAACF,sBAAsB,CAAC,EAAE;IACzED,MAAM,CAACC,sBAAsB,GAAG4B,SAAS;EAC3C;EACA,IAAI3B,qBAAqB,IAAI,CAACC,kBAAkB,CAACD,qBAAqB,CAAC,EAAE;IACvEF,MAAM,CAACE,qBAAqB,GAAG2B,SAAS;EAC1C;EAEA,OAAO7B,MAAM;AACf;AAkI+C;EAQ7C8B,OAAO,CAACC,aAAa,GAAG,MAAMA,aAAa,CAAC;IAI1CC,WAAWA,CAAC1C,GAAW,EAAED,IAAsB,GAAG,CAAC,CAAC,EAAED,IAAa,EAAE;MAAA,KAH7D6C,IAAI;MAAA,KACJC,OAAO;MAAA,KACPC,IAAI;MAEV,IAAI,CAACF,IAAI,GAAG3C,GAAG;MACf,IAAI,CAAC4C,OAAO,GAAG/C,gBAAgB,CAACC,IAAI,EAAEC,IAAI,EAAEC,GAAG,CAAC;MAChD,IAAI,CAAC6C,IAAI,GAAG9C,IAAI,CAAC+C,UAAU,GAAG,IAAIC,kBAAS,CAAChD,IAAI,EAAED,IAAI,CAAC,GAAG,IAAI;IAChE;IACAkD,QAAQA,CAAA,EAAoB;MAC1B,MAAMC,OAAO,GAAG,IAAIC,gBAAO,CAAC,IAAI,CAACN,OAAO,EAAE,IAAI,CAACC,IAAI,CAAC;MAEpD,OAAOI,OAAO,CAACD,QAAQ,CAAC,IAAI,CAACL,IAAI,CAAC;IACpC;EACF,CAAC;AACH;AASO,SAASK,QAAQA,CACtBhD,GAAW,EACXD,IAAsB,GAAG,CAAC,CAAC,EAC3BD,IAA8C,EAC7B;EACjB,MAAMY,MAAM,GAAGb,gBAAgB,CAACC,IAAI,EAAEC,IAAI,EAAEC,GAAG,CAAC;EAChD,MAAMmD,GAAG,GAAGpD,IAAI,CAAC+C,UAAU,GAAG,IAAIC,kBAAS,CAAChD,IAAI,EAAED,IAAI,CAAC,GAAG,IAAI;EAE9D,MAAMmD,OAAO,GAAG,IAAIC,gBAAO,CACzBxC,MAAM,EACNyC,GAAG,EACFnD,GAAG,CAASS,MAAM,EACnB,OAAOX,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAG,IACpC,CAAC;EAED,OAAOmD,OAAO,CAACD,QAAQ,CAAChD,GAAG,CAAC;AAC9B;AAAC,IAAAoD,QAAA,GAAAZ,OAAA,CAAAa,OAAA,GAEcL,QAAQ","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_sourceMap","require","_printer","normalizeOptions","code","opts","format","auxiliaryCommentBefore","auxiliaryCommentAfter","shouldPrintComment","retainLines","retainFunctionParens","comments","compact","minified","concise","indent","adjustMultilineComment","style","jsescOption","Object","assign","quotes","wrap","minimal","topicToken","importAttributesKeyword","_opts$recordAndTupleS","decoratorsBeforeExport","json","jsonCompatibleStrings","recordAndTupleSyntaxType","value","includes","length","console","error","filename","undefined","exports","CodeGenerator","constructor","ast","_ast","_format","_map","sourceMaps","SourceMap","generate","printer","Printer","map"],"sources":["../src/index.ts"],"sourcesContent":["import SourceMap from \"./source-map.ts\";\nimport Printer from \"./printer.ts\";\nimport type * as t from \"@babel/types\";\nimport type { Opts as jsescOptions } from \"jsesc\";\nimport type { Format } from \"./printer.ts\";\nimport type {\n EncodedSourceMap,\n DecodedSourceMap,\n Mapping,\n} from \"@jridgewell/gen-mapping\";\n\n/**\n * Normalize generator options, setting defaults.\n *\n * - Detects code indentation.\n * - If `opts.compact = \"auto\"` and the code is over 500KB, `compact` will be set to `true`.\n */\n\nfunction normalizeOptions(\n code: string | { [filename: string]: string },\n opts: GeneratorOptions,\n): Format {\n const format: Format = {\n auxiliaryCommentBefore: opts.auxiliaryCommentBefore,\n auxiliaryCommentAfter: opts.auxiliaryCommentAfter,\n shouldPrintComment: opts.shouldPrintComment,\n retainLines: opts.retainLines,\n retainFunctionParens: opts.retainFunctionParens,\n comments: opts.comments == null || opts.comments,\n compact: opts.compact,\n minified: opts.minified,\n concise: opts.concise,\n indent: {\n adjustMultilineComment: true,\n style: \" \",\n },\n jsescOption: {\n quotes: \"double\",\n wrap: true,\n minimal: process.env.BABEL_8_BREAKING ? true : false,\n ...opts.jsescOption,\n },\n topicToken: opts.topicToken,\n importAttributesKeyword: opts.importAttributesKeyword,\n };\n\n if (!process.env.BABEL_8_BREAKING) {\n format.decoratorsBeforeExport = opts.decoratorsBeforeExport;\n format.jsescOption.json = opts.jsonCompatibleStrings;\n format.recordAndTupleSyntaxType = opts.recordAndTupleSyntaxType ?? \"hash\";\n }\n\n if (format.minified) {\n format.compact = true;\n\n format.shouldPrintComment =\n format.shouldPrintComment || (() => format.comments);\n } else {\n format.shouldPrintComment =\n format.shouldPrintComment ||\n (value =>\n format.comments ||\n value.includes(\"@license\") ||\n value.includes(\"@preserve\"));\n }\n\n if (format.compact === \"auto\") {\n format.compact = typeof code === \"string\" && code.length > 500_000; // 500KB\n\n if (format.compact) {\n console.error(\n \"[BABEL] Note: The code generator has deoptimised the styling of \" +\n `${opts.filename} as it exceeds the max of ${\"500KB\"}.`,\n );\n }\n }\n\n if (format.compact) {\n format.indent.adjustMultilineComment = false;\n }\n\n const { auxiliaryCommentBefore, auxiliaryCommentAfter, shouldPrintComment } =\n format;\n\n if (auxiliaryCommentBefore && !shouldPrintComment(auxiliaryCommentBefore)) {\n format.auxiliaryCommentBefore = undefined;\n }\n if (auxiliaryCommentAfter && !shouldPrintComment(auxiliaryCommentAfter)) {\n format.auxiliaryCommentAfter = undefined;\n }\n\n return format;\n}\n\nexport interface GeneratorOptions {\n /**\n * Optional string to add as a block comment at the start of the output file.\n */\n auxiliaryCommentBefore?: string;\n\n /**\n * Optional string to add as a block comment at the end of the output file.\n */\n auxiliaryCommentAfter?: string;\n\n /**\n * Function that takes a comment (as a string) and returns true if the comment should be included in the output.\n * By default, comments are included if `opts.comments` is `true` or if `opts.minified` is `false` and the comment\n * contains `@preserve` or `@license`.\n */\n shouldPrintComment?(comment: string): boolean;\n\n /**\n * Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces).\n * Defaults to `false`.\n */\n retainLines?: boolean;\n\n /**\n * Retain parens around function expressions (could be used to change engine parsing behavior)\n * Defaults to `false`.\n */\n retainFunctionParens?: boolean;\n\n /**\n * Should comments be included in output? Defaults to `true`.\n */\n comments?: boolean;\n\n /**\n * Set to true to avoid adding whitespace for formatting. Defaults to the value of `opts.minified`.\n */\n compact?: boolean | \"auto\";\n\n /**\n * Should the output be minified. Defaults to `false`.\n */\n minified?: boolean;\n\n /**\n * Set to true to reduce whitespace (but not as much as opts.compact). Defaults to `false`.\n */\n concise?: boolean;\n\n /**\n * Used in warning messages\n */\n filename?: string;\n\n /**\n * Enable generating source maps. Defaults to `false`.\n */\n sourceMaps?: boolean;\n\n inputSourceMap?: any;\n\n /**\n * A root for all relative URLs in the source map.\n */\n sourceRoot?: string;\n\n /**\n * The filename for the source code (i.e. the code in the `code` argument).\n * This will only be used if `code` is a string.\n */\n sourceFileName?: string;\n\n /**\n * Set to true to run jsesc with \"json\": true to print \"\\u00A9\" vs. \"©\";\n * @deprecated use `jsescOptions: { json: true }` instead\n */\n jsonCompatibleStrings?: boolean;\n\n /**\n * Set to true to enable support for experimental decorators syntax before\n * module exports. If not specified, decorators will be printed in the same\n * position as they were in the input source code.\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n\n /**\n * Options for outputting jsesc representation.\n */\n jsescOption?: jsescOptions;\n\n /**\n * For use with the recordAndTuple token.\n * @deprecated It will be removed in Babel 8.\n */\n recordAndTupleSyntaxType?: \"bar\" | \"hash\";\n\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: \"%\" | \"#\" | \"@@\" | \"^^\" | \"^\";\n\n /**\n * The import attributes syntax style:\n * - \"with\" : `import { a } from \"b\" with { type: \"json\" };`\n * - \"assert\" : `import { a } from \"b\" assert { type: \"json\" };`\n * - \"with-legacy\" : `import { a } from \"b\" with type: \"json\";`\n */\n importAttributesKeyword?: \"with\" | \"assert\" | \"with-legacy\";\n}\n\nexport interface GeneratorResult {\n code: string;\n map: EncodedSourceMap | null;\n decodedMap: DecodedSourceMap | undefined;\n rawMappings: Mapping[] | undefined;\n}\n\nif (!process.env.BABEL_8_BREAKING && !USE_ESM) {\n /**\n * We originally exported the Generator class above, but to make it extra clear that it is a private API,\n * we have moved that to an internal class instance and simplified the interface to the two public methods\n * that we wish to support.\n */\n\n // eslint-disable-next-line no-restricted-globals\n exports.CodeGenerator = class CodeGenerator {\n private _ast: t.Node;\n private _format: Format | undefined;\n private _map: SourceMap | null;\n constructor(ast: t.Node, opts: GeneratorOptions = {}, code?: string) {\n this._ast = ast;\n this._format = normalizeOptions(code, opts);\n this._map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n }\n generate(): GeneratorResult {\n const printer = new Printer(this._format, this._map);\n\n return printer.generate(this._ast);\n }\n };\n}\n\n/**\n * Turns an AST into code, maintaining sourcemaps, user preferences, and valid output.\n * @param ast - the abstract syntax tree from which to generate output code.\n * @param opts - used for specifying options for code generation.\n * @param code - the original source code, used for source maps.\n * @returns - an object containing the output code and source map.\n */\nexport default function generate(\n ast: t.Node,\n opts: GeneratorOptions = {},\n code?: string | { [filename: string]: string },\n): GeneratorResult {\n const format = normalizeOptions(code, opts);\n const map = opts.sourceMaps ? new SourceMap(opts, code) : null;\n\n const printer = new Printer(format, map);\n\n return printer.generate(ast);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAiBA,SAASE,gBAAgBA,CACvBC,IAA6C,EAC7CC,IAAsB,EACd;EACR,MAAMC,MAAc,GAAG;IACrBC,sBAAsB,EAAEF,IAAI,CAACE,sBAAsB;IACnDC,qBAAqB,EAAEH,IAAI,CAACG,qBAAqB;IACjDC,kBAAkB,EAAEJ,IAAI,CAACI,kBAAkB;IAC3CC,WAAW,EAAEL,IAAI,CAACK,WAAW;IAC7BC,oBAAoB,EAAEN,IAAI,CAACM,oBAAoB;IAC/CC,QAAQ,EAAEP,IAAI,CAACO,QAAQ,IAAI,IAAI,IAAIP,IAAI,CAACO,QAAQ;IAChDC,OAAO,EAAER,IAAI,CAACQ,OAAO;IACrBC,QAAQ,EAAET,IAAI,CAACS,QAAQ;IACvBC,OAAO,EAAEV,IAAI,CAACU,OAAO;IACrBC,MAAM,EAAE;MACNC,sBAAsB,EAAE,IAAI;MAC5BC,KAAK,EAAE;IACT,CAAC;IACDC,WAAW,EAAAC,MAAA,CAAAC,MAAA;MACTC,MAAM,EAAE,QAAQ;MAChBC,IAAI,EAAE,IAAI;MACVC,OAAO,EAAwC;IAAK,GACjDnB,IAAI,CAACc,WAAW,CACpB;IACDM,UAAU,EAAEpB,IAAI,CAACoB,UAAU;IAC3BC,uBAAuB,EAAErB,IAAI,CAACqB;EAChC,CAAC;EAEkC;IAAA,IAAAC,qBAAA;IACjCrB,MAAM,CAACsB,sBAAsB,GAAGvB,IAAI,CAACuB,sBAAsB;IAC3DtB,MAAM,CAACa,WAAW,CAACU,IAAI,GAAGxB,IAAI,CAACyB,qBAAqB;IACpDxB,MAAM,CAACyB,wBAAwB,IAAAJ,qBAAA,GAAGtB,IAAI,CAAC0B,wBAAwB,YAAAJ,qBAAA,GAAI,MAAM;EAC3E;EAEA,IAAIrB,MAAM,CAACQ,QAAQ,EAAE;IACnBR,MAAM,CAACO,OAAO,GAAG,IAAI;IAErBP,MAAM,CAACG,kBAAkB,GACvBH,MAAM,CAACG,kBAAkB,KAAK,MAAMH,MAAM,CAACM,QAAQ,CAAC;EACxD,CAAC,MAAM;IACLN,MAAM,CAACG,kBAAkB,GACvBH,MAAM,CAACG,kBAAkB,KACxBuB,KAAK,IACJ1B,MAAM,CAACM,QAAQ,IACfoB,KAAK,CAACC,QAAQ,CAAC,UAAU,CAAC,IAC1BD,KAAK,CAACC,QAAQ,CAAC,WAAW,CAAC,CAAC;EAClC;EAEA,IAAI3B,MAAM,CAACO,OAAO,KAAK,MAAM,EAAE;IAC7BP,MAAM,CAACO,OAAO,GAAG,OAAOT,IAAI,KAAK,QAAQ,IAAIA,IAAI,CAAC8B,MAAM,GAAG,MAAO;IAElE,IAAI5B,MAAM,CAACO,OAAO,EAAE;MAClBsB,OAAO,CAACC,KAAK,CACX,kEAAkE,GAChE,GAAG/B,IAAI,CAACgC,QAAQ,6BAA6B,OAAO,GACxD,CAAC;IACH;EACF;EAEA,IAAI/B,MAAM,CAACO,OAAO,EAAE;IAClBP,MAAM,CAACU,MAAM,CAACC,sBAAsB,GAAG,KAAK;EAC9C;EAEA,MAAM;IAAEV,sBAAsB;IAAEC,qBAAqB;IAAEC;EAAmB,CAAC,GACzEH,MAAM;EAER,IAAIC,sBAAsB,IAAI,CAACE,kBAAkB,CAACF,sBAAsB,CAAC,EAAE;IACzED,MAAM,CAACC,sBAAsB,GAAG+B,SAAS;EAC3C;EACA,IAAI9B,qBAAqB,IAAI,CAACC,kBAAkB,CAACD,qBAAqB,CAAC,EAAE;IACvEF,MAAM,CAACE,qBAAqB,GAAG8B,SAAS;EAC1C;EAEA,OAAOhC,MAAM;AACf;AA0H+C;EAQ7CiC,OAAO,CAACC,aAAa,GAAG,MAAMA,aAAa,CAAC;IAI1CC,WAAWA,CAACC,GAAW,EAAErC,IAAsB,GAAG,CAAC,CAAC,EAAED,IAAa,EAAE;MAAA,KAH7DuC,IAAI;MAAA,KACJC,OAAO;MAAA,KACPC,IAAI;MAEV,IAAI,CAACF,IAAI,GAAGD,GAAG;MACf,IAAI,CAACE,OAAO,GAAGzC,gBAAgB,CAACC,IAAI,EAAEC,IAAI,CAAC;MAC3C,IAAI,CAACwC,IAAI,GAAGxC,IAAI,CAACyC,UAAU,GAAG,IAAIC,kBAAS,CAAC1C,IAAI,EAAED,IAAI,CAAC,GAAG,IAAI;IAChE;IACA4C,QAAQA,CAAA,EAAoB;MAC1B,MAAMC,OAAO,GAAG,IAAIC,gBAAO,CAAC,IAAI,CAACN,OAAO,EAAE,IAAI,CAACC,IAAI,CAAC;MAEpD,OAAOI,OAAO,CAACD,QAAQ,CAAC,IAAI,CAACL,IAAI,CAAC;IACpC;EACF,CAAC;AACH;AASe,SAASK,QAAQA,CAC9BN,GAAW,EACXrC,IAAsB,GAAG,CAAC,CAAC,EAC3BD,IAA8C,EAC7B;EACjB,MAAME,MAAM,GAAGH,gBAAgB,CAACC,IAAI,EAAEC,IAAI,CAAC;EAC3C,MAAM8C,GAAG,GAAG9C,IAAI,CAACyC,UAAU,GAAG,IAAIC,kBAAS,CAAC1C,IAAI,EAAED,IAAI,CAAC,GAAG,IAAI;EAE9D,MAAM6C,OAAO,GAAG,IAAIC,gBAAO,CAAC5C,MAAM,EAAE6C,GAAG,CAAC;EAExC,OAAOF,OAAO,CAACD,QAAQ,CAACN,GAAG,CAAC;AAC9B","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/node/index.js b/node_modules/@babel/generator/lib/node/index.js index d61206277..b56405097 100644 --- a/node_modules/@babel/generator/lib/node/index.js +++ b/node_modules/@babel/generator/lib/node/index.js @@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.TokenContext = void 0; -exports.isLastChild = isLastChild; exports.needsParens = needsParens; exports.needsWhitespace = needsWhitespace; exports.needsWhitespaceAfter = needsWhitespaceAfter; @@ -14,7 +13,6 @@ var parens = require("./parentheses.js"); var _t = require("@babel/types"); const { FLIPPED_ALIAS_KEYS, - VISITOR_KEYS, isCallExpression, isDecorator, isExpressionStatement, @@ -23,24 +21,21 @@ const { isParenthesizedExpression } = _t; const TokenContext = exports.TokenContext = { - normal: 0, expressionStatement: 1, arrowBody: 2, exportDefault: 4, - arrowFlowReturnType: 8, - forInitHead: 16, - forInHead: 32, - forOfHead: 64, - forInOrInitHeadAccumulate: 128, - forInOrInitHeadAccumulatePassThroughMask: 128 + forHead: 8, + forInHead: 16, + forOfHead: 32, + arrowFlowReturnType: 64 }; function expandAliases(obj) { const map = new Map(); function add(type, func) { const fn = map.get(type); - map.set(type, fn ? function (node, parent, stack, getRawIdentifier) { + map.set(type, fn ? function (node, parent, stack, inForInit) { var _fn; - return (_fn = fn(node, parent, stack, getRawIdentifier)) != null ? _fn : func(node, parent, stack, getRawIdentifier); + return (_fn = fn(node, parent, stack, inForInit)) != null ? _fn : func(node, parent, stack, inForInit); } : func); } for (const type of Object.keys(obj)) { @@ -81,7 +76,7 @@ function needsWhitespaceBefore(node, parent) { function needsWhitespaceAfter(node, parent) { return needsWhitespace(node, parent, 2); } -function needsParens(node, parent, tokenContext, getRawIdentifier) { +function needsParens(node, parent, tokenContext, inForInit) { var _expandedParens$get; if (!parent) return false; if (isNewExpression(parent) && parent.callee === node) { @@ -90,7 +85,7 @@ function needsParens(node, parent, tokenContext, getRawIdentifier) { if (isDecorator(parent)) { return !isDecoratorMemberExpression(node) && !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) && !isParenthesizedExpression(node); } - return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext, getRawIdentifier); + return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext, inForInit); } function isDecoratorMemberExpression(node) { switch (node.type) { @@ -102,21 +97,5 @@ function isDecoratorMemberExpression(node) { return false; } } -function isLastChild(parent, child) { - const visitorKeys = VISITOR_KEYS[parent.type]; - for (let i = visitorKeys.length - 1; i >= 0; i--) { - const val = parent[visitorKeys[i]]; - if (val === child) { - return true; - } else if (Array.isArray(val)) { - let j = val.length - 1; - while (j >= 0 && val[j] === null) j--; - return j >= 0 && val[j] === child; - } else if (val) { - return false; - } - } - return false; -} //# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/generator/lib/node/index.js.map b/node_modules/@babel/generator/lib/node/index.js.map index 2fbb90496..9603a6e65 100644 --- a/node_modules/@babel/generator/lib/node/index.js.map +++ b/node_modules/@babel/generator/lib/node/index.js.map @@ -1 +1 @@ -{"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","VISITOR_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","normal","expressionStatement","arrowBody","exportDefault","arrowFlowReturnType","forInitHead","forInHead","forOfHead","forInOrInitHeadAccumulate","forInOrInitHeadAccumulatePassThroughMask","expandAliases","obj","map","Map","add","type","func","fn","get","set","node","parent","stack","getRawIdentifier","_fn","Object","keys","aliases","alias","expandedParens","expandedWhitespaceNodes","nodes","isOrHasCallExpression","object","needsWhitespace","_expandedWhitespaceNo","expression","flag","needsWhitespaceBefore","needsWhitespaceAfter","needsParens","tokenContext","_expandedParens$get","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as whitespace from \"./whitespace.ts\";\nimport * as parens from \"./parentheses.ts\";\nimport {\n FLIPPED_ALIAS_KEYS,\n VISITOR_KEYS,\n isCallExpression,\n isDecorator,\n isExpressionStatement,\n isMemberExpression,\n isNewExpression,\n isParenthesizedExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { WhitespaceFlag } from \"./whitespace.ts\";\n\nexport const enum TokenContext {\n normal = 0,\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n arrowFlowReturnType = 1 << 3,\n forInitHead = 1 << 4,\n forInHead = 1 << 5,\n forOfHead = 1 << 6,\n // This flag lives across the token boundary, and will\n // be reset after forIn or forInit head is printed\n forInOrInitHeadAccumulate = 1 << 7,\n forInOrInitHeadAccumulatePassThroughMask = 0x80,\n}\n\ntype NodeHandler = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract\n // : t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R;\n\nexport type NodeHandlers = {\n [K in string]?: NodeHandler;\n};\n\nfunction expandAliases(obj: NodeHandlers) {\n const map = new Map>();\n\n function add(type: string, func: NodeHandler) {\n const fn = map.get(type);\n map.set(\n type,\n fn\n ? function (node, parent, stack, getRawIdentifier) {\n return (\n fn(node, parent, stack, getRawIdentifier) ??\n func(node, parent, stack, getRawIdentifier)\n );\n }\n : func,\n );\n }\n\n for (const type of Object.keys(obj)) {\n const aliases = FLIPPED_ALIAS_KEYS[type];\n if (aliases) {\n for (const alias of aliases) {\n add(alias, obj[type]);\n }\n } else {\n add(type, obj[type]);\n }\n }\n\n return map;\n}\n\n// Rather than using `t.is` on each object property, we pre-expand any type aliases\n// into concrete types so that the 'find' call below can be as fast as possible.\nconst expandedParens = expandAliases(parens);\nconst expandedWhitespaceNodes = expandAliases(whitespace.nodes);\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n if (isCallExpression(node)) {\n return true;\n }\n\n return isMemberExpression(node) && isOrHasCallExpression(node.object);\n}\n\nexport function needsWhitespace(\n node: t.Node,\n parent: t.Node,\n type: WhitespaceFlag,\n): boolean {\n if (!node) return false;\n\n if (isExpressionStatement(node)) {\n node = node.expression;\n }\n\n const flag = expandedWhitespaceNodes.get(node.type)?.(node, parent);\n\n if (typeof flag === \"number\") {\n return (flag & type) !== 0;\n }\n\n return false;\n}\n\nexport function needsWhitespaceBefore(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 1);\n}\n\nexport function needsWhitespaceAfter(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 2);\n}\n\nexport function needsParens(\n node: t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) {\n if (!parent) return false;\n\n if (isNewExpression(parent) && parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n\n if (isDecorator(parent)) {\n return (\n !isDecoratorMemberExpression(node) &&\n !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) &&\n !isParenthesizedExpression(node)\n );\n }\n\n return expandedParens.get(node.type)?.(\n node,\n parent,\n tokenContext,\n getRawIdentifier,\n );\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,EAAA,GAAAF,OAAA;AASsB;EARpBG,kBAAkB;EAClBC,YAAY;EACZC,gBAAgB;EAChBC,WAAW;EACXC,qBAAqB;EACrBC,kBAAkB;EAClBC,eAAe;EACfC;AAAyB,IAAAR,EAAA;AAAA,MAMTS,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,MAAA;EAAAC,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,mBAAA;EAAAC,WAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,yBAAA;EAAAC,wCAAA;AAAA;AA8B9B,SAASC,aAAaA,CAAIC,GAAoB,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAE7C,SAASC,GAAGA,CAACC,IAAY,EAAEC,IAAoB,EAAE;IAC/C,MAAMC,EAAE,GAAGL,GAAG,CAACM,GAAG,CAACH,IAAI,CAAC;IACxBH,GAAG,CAACO,GAAG,CACLJ,IAAI,EACJE,EAAE,GACE,UAAUG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,gBAAgB,EAAE;MAAA,IAAAC,GAAA;MAC/C,QAAAA,GAAA,GACEP,EAAE,CAACG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,gBAAgB,CAAC,YAAAC,GAAA,GACzCR,IAAI,CAACI,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,gBAAgB,CAAC;IAE/C,CAAC,GACDP,IACN,CAAC;EACH;EAEA,KAAK,MAAMD,IAAI,IAAIU,MAAM,CAACC,IAAI,CAACf,GAAG,CAAC,EAAE;IACnC,MAAMgB,OAAO,GAAGrC,kBAAkB,CAACyB,IAAI,CAAC;IACxC,IAAIY,OAAO,EAAE;MACX,KAAK,MAAMC,KAAK,IAAID,OAAO,EAAE;QAC3Bb,GAAG,CAACc,KAAK,EAAEjB,GAAG,CAACI,IAAI,CAAC,CAAC;MACvB;IACF,CAAC,MAAM;MACLD,GAAG,CAACC,IAAI,EAAEJ,GAAG,CAACI,IAAI,CAAC,CAAC;IACtB;EACF;EAEA,OAAOH,GAAG;AACZ;AAIA,MAAMiB,cAAc,GAAGnB,aAAa,CAACtB,MAAM,CAAC;AAC5C,MAAM0C,uBAAuB,GAAGpB,aAAa,CAACxB,UAAU,CAAC6C,KAAK,CAAC;AAE/D,SAASC,qBAAqBA,CAACZ,IAAY,EAAW;EACpD,IAAI5B,gBAAgB,CAAC4B,IAAI,CAAC,EAAE;IAC1B,OAAO,IAAI;EACb;EAEA,OAAOzB,kBAAkB,CAACyB,IAAI,CAAC,IAAIY,qBAAqB,CAACZ,IAAI,CAACa,MAAM,CAAC;AACvE;AAEO,SAASC,eAAeA,CAC7Bd,IAAY,EACZC,MAAc,EACdN,IAAoB,EACX;EAAA,IAAAoB,qBAAA;EACT,IAAI,CAACf,IAAI,EAAE,OAAO,KAAK;EAEvB,IAAI1B,qBAAqB,CAAC0B,IAAI,CAAC,EAAE;IAC/BA,IAAI,GAAGA,IAAI,CAACgB,UAAU;EACxB;EAEA,MAAMC,IAAI,IAAAF,qBAAA,GAAGL,uBAAuB,CAACZ,GAAG,CAACE,IAAI,CAACL,IAAI,CAAC,qBAAtCoB,qBAAA,CAAyCf,IAAI,EAAEC,MAAM,CAAC;EAEnE,IAAI,OAAOgB,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO,CAACA,IAAI,GAAGtB,IAAI,MAAM,CAAC;EAC5B;EAEA,OAAO,KAAK;AACd;AAEO,SAASuB,qBAAqBA,CAAClB,IAAY,EAAEC,MAAc,EAAE;EAClE,OAAOa,eAAe,CAACd,IAAI,EAAEC,MAAM,EAAE,CAAC,CAAC;AACzC;AAEO,SAASkB,oBAAoBA,CAACnB,IAAY,EAAEC,MAAc,EAAE;EACjE,OAAOa,eAAe,CAACd,IAAI,EAAEC,MAAM,EAAE,CAAC,CAAC;AACzC;AAEO,SAASmB,WAAWA,CACzBpB,IAAY,EACZC,MAAc,EACdoB,YAAqB,EACrBlB,gBAAiD,EACjD;EAAA,IAAAmB,mBAAA;EACA,IAAI,CAACrB,MAAM,EAAE,OAAO,KAAK;EAEzB,IAAIzB,eAAe,CAACyB,MAAM,CAAC,IAAIA,MAAM,CAACsB,MAAM,KAAKvB,IAAI,EAAE;IACrD,IAAIY,qBAAqB,CAACZ,IAAI,CAAC,EAAE,OAAO,IAAI;EAC9C;EAEA,IAAI3B,WAAW,CAAC4B,MAAM,CAAC,EAAE;IACvB,OACE,CAACuB,2BAA2B,CAACxB,IAAI,CAAC,IAClC,EAAE5B,gBAAgB,CAAC4B,IAAI,CAAC,IAAIwB,2BAA2B,CAACxB,IAAI,CAACuB,MAAM,CAAC,CAAC,IACrE,CAAC9C,yBAAyB,CAACuB,IAAI,CAAC;EAEpC;EAEA,QAAAsB,mBAAA,GAAOb,cAAc,CAACX,GAAG,CAACE,IAAI,CAACL,IAAI,CAAC,qBAA7B2B,mBAAA,CACLtB,IAAI,EACJC,MAAM,EACNoB,YAAY,EACZlB,gBACF,CAAC;AACH;AAEA,SAASqB,2BAA2BA,CAACxB,IAAY,EAAW;EAC1D,QAAQA,IAAI,CAACL,IAAI;IACf,KAAK,YAAY;MACf,OAAO,IAAI;IACb,KAAK,kBAAkB;MACrB,OACE,CAACK,IAAI,CAACyB,QAAQ,IACdzB,IAAI,CAAC0B,QAAQ,CAAC/B,IAAI,KAAK,YAAY,IACnC6B,2BAA2B,CAACxB,IAAI,CAACa,MAAM,CAAC;IAE5C;MACE,OAAO,KAAK;EAChB;AACF;AAEO,SAASc,WAAWA,CAAC1B,MAAc,EAAE2B,KAAa,EAAE;EACzD,MAAMC,WAAW,GAAG1D,YAAY,CAAC8B,MAAM,CAACN,IAAI,CAAC;EAC7C,KAAK,IAAImC,CAAC,GAAGD,WAAW,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAChD,MAAME,GAAG,GAAI/B,MAAM,CAAS4B,WAAW,CAACC,CAAC,CAAC,CAA6B;IACvE,IAAIE,GAAG,KAAKJ,KAAK,EAAE;MACjB,OAAO,IAAI;IACb,CAAC,MAAM,IAAIK,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;MAC7B,IAAIG,CAAC,GAAGH,GAAG,CAACD,MAAM,GAAG,CAAC;MACtB,OAAOI,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAK,IAAI,EAAEA,CAAC,EAAE;MACrC,OAAOA,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAKP,KAAK;IACnC,CAAC,MAAM,IAAII,GAAG,EAAE;MACd,OAAO,KAAK;IACd;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","expressionStatement","arrowBody","exportDefault","forHead","forInHead","forOfHead","arrowFlowReturnType","expandAliases","obj","map","Map","add","type","func","fn","get","set","node","parent","stack","inForInit","_fn","Object","keys","aliases","alias","expandedParens","expandedWhitespaceNodes","nodes","isOrHasCallExpression","object","needsWhitespace","_expandedWhitespaceNo","expression","flag","needsWhitespaceBefore","needsWhitespaceAfter","needsParens","tokenContext","_expandedParens$get","callee","isDecoratorMemberExpression","computed","property"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as whitespace from \"./whitespace.ts\";\nimport * as parens from \"./parentheses.ts\";\nimport {\n FLIPPED_ALIAS_KEYS,\n isCallExpression,\n isDecorator,\n isExpressionStatement,\n isMemberExpression,\n isNewExpression,\n isParenthesizedExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { WhitespaceFlag } from \"./whitespace.ts\";\n\nexport const enum TokenContext {\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n forHead = 1 << 3,\n forInHead = 1 << 4,\n forOfHead = 1 << 5,\n arrowFlowReturnType = 1 << 6,\n}\n\ntype NodeHandler = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract\n // : t.Node,\n parent: t.Node,\n tokenContext?: number,\n inForStatementInit?: boolean,\n) => R;\n\nexport type NodeHandlers = {\n [K in string]?: NodeHandler;\n};\n\nfunction expandAliases(obj: NodeHandlers) {\n const map = new Map>();\n\n function add(type: string, func: NodeHandler) {\n const fn = map.get(type);\n map.set(\n type,\n fn\n ? function (node, parent, stack, inForInit) {\n return (\n fn(node, parent, stack, inForInit) ??\n func(node, parent, stack, inForInit)\n );\n }\n : func,\n );\n }\n\n for (const type of Object.keys(obj)) {\n const aliases = FLIPPED_ALIAS_KEYS[type];\n if (aliases) {\n for (const alias of aliases) {\n add(alias, obj[type]);\n }\n } else {\n add(type, obj[type]);\n }\n }\n\n return map;\n}\n\n// Rather than using `t.is` on each object property, we pre-expand any type aliases\n// into concrete types so that the 'find' call below can be as fast as possible.\nconst expandedParens = expandAliases(parens);\nconst expandedWhitespaceNodes = expandAliases(whitespace.nodes);\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n if (isCallExpression(node)) {\n return true;\n }\n\n return isMemberExpression(node) && isOrHasCallExpression(node.object);\n}\n\nexport function needsWhitespace(\n node: t.Node,\n parent: t.Node,\n type: WhitespaceFlag,\n): boolean {\n if (!node) return false;\n\n if (isExpressionStatement(node)) {\n node = node.expression;\n }\n\n const flag = expandedWhitespaceNodes.get(node.type)?.(node, parent);\n\n if (typeof flag === \"number\") {\n return (flag & type) !== 0;\n }\n\n return false;\n}\n\nexport function needsWhitespaceBefore(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 1);\n}\n\nexport function needsWhitespaceAfter(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 2);\n}\n\nexport function needsParens(\n node: t.Node,\n parent: t.Node,\n tokenContext?: number,\n inForInit?: boolean,\n) {\n if (!parent) return false;\n\n if (isNewExpression(parent) && parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n\n if (isDecorator(parent)) {\n return (\n !isDecoratorMemberExpression(node) &&\n !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) &&\n !isParenthesizedExpression(node)\n );\n }\n\n return expandedParens.get(node.type)?.(node, parent, tokenContext, inForInit);\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,EAAA,GAAAF,OAAA;AAQsB;EAPpBG,kBAAkB;EAClBC,gBAAgB;EAChBC,WAAW;EACXC,qBAAqB;EACrBC,kBAAkB;EAClBC,eAAe;EACfC;AAAyB,IAAAP,EAAA;AAAA,MAMTQ,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,OAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,mBAAA;AAAA;AAyB9B,SAASC,aAAaA,CAAIC,GAAoB,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAE7C,SAASC,GAAGA,CAACC,IAAY,EAAEC,IAAoB,EAAE;IAC/C,MAAMC,EAAE,GAAGL,GAAG,CAACM,GAAG,CAACH,IAAI,CAAC;IACxBH,GAAG,CAACO,GAAG,CACLJ,IAAI,EACJE,EAAE,GACE,UAAUG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAE;MAAA,IAAAC,GAAA;MACxC,QAAAA,GAAA,GACEP,EAAE,CAACG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,CAAC,YAAAC,GAAA,GAClCR,IAAI,CAACI,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,CAAC;IAExC,CAAC,GACDP,IACN,CAAC;EACH;EAEA,KAAK,MAAMD,IAAI,IAAIU,MAAM,CAACC,IAAI,CAACf,GAAG,CAAC,EAAE;IACnC,MAAMgB,OAAO,GAAGjC,kBAAkB,CAACqB,IAAI,CAAC;IACxC,IAAIY,OAAO,EAAE;MACX,KAAK,MAAMC,KAAK,IAAID,OAAO,EAAE;QAC3Bb,GAAG,CAACc,KAAK,EAAEjB,GAAG,CAACI,IAAI,CAAC,CAAC;MACvB;IACF,CAAC,MAAM;MACLD,GAAG,CAACC,IAAI,EAAEJ,GAAG,CAACI,IAAI,CAAC,CAAC;IACtB;EACF;EAEA,OAAOH,GAAG;AACZ;AAIA,MAAMiB,cAAc,GAAGnB,aAAa,CAAClB,MAAM,CAAC;AAC5C,MAAMsC,uBAAuB,GAAGpB,aAAa,CAACpB,UAAU,CAACyC,KAAK,CAAC;AAE/D,SAASC,qBAAqBA,CAACZ,IAAY,EAAW;EACpD,IAAIzB,gBAAgB,CAACyB,IAAI,CAAC,EAAE;IAC1B,OAAO,IAAI;EACb;EAEA,OAAOtB,kBAAkB,CAACsB,IAAI,CAAC,IAAIY,qBAAqB,CAACZ,IAAI,CAACa,MAAM,CAAC;AACvE;AAEO,SAASC,eAAeA,CAC7Bd,IAAY,EACZC,MAAc,EACdN,IAAoB,EACX;EAAA,IAAAoB,qBAAA;EACT,IAAI,CAACf,IAAI,EAAE,OAAO,KAAK;EAEvB,IAAIvB,qBAAqB,CAACuB,IAAI,CAAC,EAAE;IAC/BA,IAAI,GAAGA,IAAI,CAACgB,UAAU;EACxB;EAEA,MAAMC,IAAI,IAAAF,qBAAA,GAAGL,uBAAuB,CAACZ,GAAG,CAACE,IAAI,CAACL,IAAI,CAAC,qBAAtCoB,qBAAA,CAAyCf,IAAI,EAAEC,MAAM,CAAC;EAEnE,IAAI,OAAOgB,IAAI,KAAK,QAAQ,EAAE;IAC5B,OAAO,CAACA,IAAI,GAAGtB,IAAI,MAAM,CAAC;EAC5B;EAEA,OAAO,KAAK;AACd;AAEO,SAASuB,qBAAqBA,CAAClB,IAAY,EAAEC,MAAc,EAAE;EAClE,OAAOa,eAAe,CAACd,IAAI,EAAEC,MAAM,EAAE,CAAC,CAAC;AACzC;AAEO,SAASkB,oBAAoBA,CAACnB,IAAY,EAAEC,MAAc,EAAE;EACjE,OAAOa,eAAe,CAACd,IAAI,EAAEC,MAAM,EAAE,CAAC,CAAC;AACzC;AAEO,SAASmB,WAAWA,CACzBpB,IAAY,EACZC,MAAc,EACdoB,YAAqB,EACrBlB,SAAmB,EACnB;EAAA,IAAAmB,mBAAA;EACA,IAAI,CAACrB,MAAM,EAAE,OAAO,KAAK;EAEzB,IAAItB,eAAe,CAACsB,MAAM,CAAC,IAAIA,MAAM,CAACsB,MAAM,KAAKvB,IAAI,EAAE;IACrD,IAAIY,qBAAqB,CAACZ,IAAI,CAAC,EAAE,OAAO,IAAI;EAC9C;EAEA,IAAIxB,WAAW,CAACyB,MAAM,CAAC,EAAE;IACvB,OACE,CAACuB,2BAA2B,CAACxB,IAAI,CAAC,IAClC,EAAEzB,gBAAgB,CAACyB,IAAI,CAAC,IAAIwB,2BAA2B,CAACxB,IAAI,CAACuB,MAAM,CAAC,CAAC,IACrE,CAAC3C,yBAAyB,CAACoB,IAAI,CAAC;EAEpC;EAEA,QAAAsB,mBAAA,GAAOb,cAAc,CAACX,GAAG,CAACE,IAAI,CAACL,IAAI,CAAC,qBAA7B2B,mBAAA,CAAgCtB,IAAI,EAAEC,MAAM,EAAEoB,YAAY,EAAElB,SAAS,CAAC;AAC/E;AAEA,SAASqB,2BAA2BA,CAACxB,IAAY,EAAW;EAC1D,QAAQA,IAAI,CAACL,IAAI;IACf,KAAK,YAAY;MACf,OAAO,IAAI;IACb,KAAK,kBAAkB;MACrB,OACE,CAACK,IAAI,CAACyB,QAAQ,IACdzB,IAAI,CAAC0B,QAAQ,CAAC/B,IAAI,KAAK,YAAY,IACnC6B,2BAA2B,CAACxB,IAAI,CAACa,MAAM,CAAC;IAE5C;MACE,OAAO,KAAK;EAChB;AACF","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/node/parentheses.js b/node_modules/@babel/generator/lib/node/parentheses.js index 66eb16b53..cb5959769 100644 --- a/node_modules/@babel/generator/lib/node/parentheses.js +++ b/node_modules/@babel/generator/lib/node/parentheses.js @@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); +exports.ArrowFunctionExpression = ArrowFunctionExpression; exports.AssignmentExpression = AssignmentExpression; exports.Binary = Binary; exports.BinaryExpression = BinaryExpression; exports.ClassExpression = ClassExpression; -exports.ArrowFunctionExpression = exports.ConditionalExpression = ConditionalExpression; +exports.ConditionalExpression = ConditionalExpression; exports.DoExpression = DoExpression; exports.FunctionExpression = FunctionExpression; exports.FunctionTypeAnnotation = FunctionTypeAnnotation; @@ -19,14 +20,10 @@ exports.OptionalIndexedAccessType = OptionalIndexedAccessType; exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression; exports.SequenceExpression = SequenceExpression; exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression; -exports.TSConditionalType = TSConditionalType; -exports.TSConstructorType = exports.TSFunctionType = TSFunctionType; exports.TSInferType = TSInferType; exports.TSInstantiationExpression = TSInstantiationExpression; -exports.TSIntersectionType = TSIntersectionType; exports.UnaryLike = exports.TSTypeAssertion = UnaryLike; -exports.TSTypeOperator = TSTypeOperator; -exports.TSUnionType = TSUnionType; +exports.TSIntersectionType = exports.TSUnionType = TSUnionType; exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation; exports.UpdateExpression = UpdateExpression; exports.AwaitExpression = exports.YieldExpression = YieldExpression; @@ -36,13 +33,13 @@ const { isArrayTypeAnnotation, isBinaryExpression, isCallExpression, + isExportDeclaration, isForOfStatement, isIndexedAccessType, isMemberExpression, isObjectPattern, isOptionalMemberExpression, - isYieldExpression, - isStatement + isYieldExpression } = _t; const PRECEDENCE = new Map([["||", 0], ["??", 0], ["|>", 0], ["&&", 1], ["|", 2], ["^", 3], ["&", 4], ["==", 5], ["===", 5], ["!=", 5], ["!==", 5], ["<", 6], [">", 6], ["<=", 6], [">=", 6], ["in", 6], ["instanceof", 6], [">>", 7], ["<<", 7], [">>>", 7], ["+", 8], ["-", 8], ["*", 9], ["/", 9], ["%", 9], ["**", 10]]); function getBinaryPrecedence(node, nodeType) { @@ -69,17 +66,13 @@ function NullableTypeAnnotation(node, parent) { } function FunctionTypeAnnotation(node, parent, tokenContext) { const parentType = parent.type; - return (parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || Boolean(tokenContext & _index.TokenContext.arrowFlowReturnType) - ); + return parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || Boolean(tokenContext & _index.TokenContext.arrowFlowReturnType); } function UpdateExpression(node, parent) { return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent); } -function needsParenBeforeExpressionBrace(tokenContext) { - return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.arrowBody)); -} function ObjectExpression(node, parent, tokenContext) { - return needsParenBeforeExpressionBrace(tokenContext); + return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.arrowBody)); } function DoExpression(node, parent, tokenContext) { return !node.async && Boolean(tokenContext & _index.TokenContext.expressionStatement); @@ -120,69 +113,27 @@ function TSAsExpression(node, parent) { } return Binary(node, parent); } -function TSConditionalType(node, parent) { - const parentType = parent.type; - if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType" || parentType === "TSTypeOperator" || parentType === "TSTypeParameter") { - return true; - } - if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) { - return true; - } - if (parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node)) { - return true; - } - return false; -} function TSUnionType(node, parent) { const parentType = parent.type; - return parentType === "TSIntersectionType" || parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType"; -} -function TSIntersectionType(node, parent) { - const parentType = parent.type; - return parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType"; + return parentType === "TSArrayType" || parentType === "TSOptionalType" || parentType === "TSIntersectionType" || parentType === "TSUnionType" || parentType === "TSRestType"; } function TSInferType(node, parent) { const parentType = parent.type; - if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType") { - return true; - } - if (node.typeParameter.constraint) { - if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) { - return true; - } - } - return false; -} -function TSTypeOperator(node, parent) { - const parentType = parent.type; - return parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType"; + return parentType === "TSArrayType" || parentType === "TSOptionalType"; } function TSInstantiationExpression(node, parent) { const parentType = parent.type; return (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression" || parentType === "TSInstantiationExpression") && !!parent.typeParameters; } -function TSFunctionType(node, parent) { - const parentType = parent.type; - return parentType === "TSIntersectionType" || parentType === "TSUnionType" || parentType === "TSTypeOperator" || parentType === "TSOptionalType" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node); -} -function BinaryExpression(node, parent, tokenContext) { - return node.operator === "in" && Boolean(tokenContext & _index.TokenContext.forInOrInitHeadAccumulate); +function BinaryExpression(node, parent, tokenContext, inForStatementInit) { + return node.operator === "in" && inForStatementInit; } function SequenceExpression(node, parent) { const parentType = parent.type; - if (parentType === "SequenceExpression" || parentType === "ParenthesizedExpression" || parentType === "MemberExpression" && parent.property === node || parentType === "OptionalMemberExpression" && parent.property === node || parentType === "TemplateLiteral") { + if (parentType === "ForStatement" || parentType === "ThrowStatement" || parentType === "ReturnStatement" || parentType === "IfStatement" && parent.test === node || parentType === "WhileStatement" && parent.test === node || parentType === "ForInStatement" && parent.right === node || parentType === "SwitchStatement" && parent.discriminant === node || parentType === "ExpressionStatement" && parent.expression === node) { return false; } - if (parentType === "ClassDeclaration") { - return true; - } - if (parentType === "ForOfStatement") { - return parent.right === node; - } - if (parentType === "ExportDefaultDeclaration") { - return true; - } - return !isStatement(parent); + return true; } function YieldExpression(node, parent) { const parentType = parent.type; @@ -197,6 +148,9 @@ function UnaryLike(node, parent) { function FunctionExpression(node, parent, tokenContext) { return Boolean(tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.exportDefault)); } +function ArrowFunctionExpression(node, parent) { + return isExportDeclaration(parent) || ConditionalExpression(node, parent); +} function ConditionalExpression(node, parent) { const parentType = parent.type; if (parentType === "UnaryExpression" || parentType === "SpreadElement" || parentType === "BinaryExpression" || parentType === "LogicalExpression" || parentType === "ConditionalExpression" && parent.test === node || parentType === "AwaitExpression" || isTSTypeExpression(parentType)) { @@ -207,8 +161,8 @@ function ConditionalExpression(node, parent) { function OptionalMemberExpression(node, parent) { return isCallExpression(parent) && parent.callee === node || isMemberExpression(parent) && parent.object === node; } -function AssignmentExpression(node, parent, tokenContext) { - if (needsParenBeforeExpressionBrace(tokenContext) && isObjectPattern(node.left)) { +function AssignmentExpression(node, parent) { + if (isObjectPattern(node.left)) { return true; } else { return ConditionalExpression(node, parent); @@ -227,7 +181,7 @@ function LogicalExpression(node, parent) { return parent.operator !== "??"; } } -function Identifier(node, parent, tokenContext, getRawIdentifier) { +function Identifier(node, parent, tokenContext) { var _node$extra; const parentType = parent.type; if ((_node$extra = node.extra) != null && _node$extra.parenthesized && parentType === "AssignmentExpression" && parent.left === node) { @@ -236,9 +190,6 @@ function Identifier(node, parent, tokenContext, getRawIdentifier) { return true; } } - if (getRawIdentifier && getRawIdentifier(node) !== node.name) { - return false; - } if (node.name === "let") { const isFollowedByBracket = isMemberExpression(parent, { object: node, @@ -248,7 +199,7 @@ function Identifier(node, parent, tokenContext, getRawIdentifier) { computed: true, optional: false }); - if (isFollowedByBracket && tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.forInitHead | _index.TokenContext.forInHead)) { + if (isFollowedByBracket && tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.forHead | _index.TokenContext.forInHead)) { return true; } return Boolean(tokenContext & _index.TokenContext.forOfHead); diff --git a/node_modules/@babel/generator/lib/node/parentheses.js.map b/node_modules/@babel/generator/lib/node/parentheses.js.map index 2f6f18c45..f81ddfadb 100644 --- a/node_modules/@babel/generator/lib/node/parentheses.js.map +++ b/node_modules/@babel/generator/lib/node/parentheses.js.map @@ -1 +1 @@ -{"version":3,"names":["_t","require","_index","isArrayTypeAnnotation","isBinaryExpression","isCallExpression","isForOfStatement","isIndexedAccessType","isMemberExpression","isObjectPattern","isOptionalMemberExpression","isYieldExpression","isStatement","PRECEDENCE","Map","getBinaryPrecedence","node","nodeType","get","operator","isTSTypeExpression","isClassExtendsClause","parent","parentType","type","superClass","hasPostfixPart","object","callee","tag","NullableTypeAnnotation","FunctionTypeAnnotation","tokenContext","Boolean","TokenContext","arrowFlowReturnType","UpdateExpression","needsParenBeforeExpressionBrace","expressionStatement","arrowBody","ObjectExpression","DoExpression","async","Binary","left","parentPos","nodePos","right","undefined","UnionTypeAnnotation","OptionalIndexedAccessType","objectType","TSAsExpression","TSConditionalType","types","checkType","extendsType","TSUnionType","TSIntersectionType","TSInferType","typeParameter","constraint","TSTypeOperator","TSInstantiationExpression","typeParameters","TSFunctionType","BinaryExpression","forInOrInitHeadAccumulate","SequenceExpression","property","YieldExpression","test","ClassExpression","exportDefault","UnaryLike","FunctionExpression","ConditionalExpression","OptionalMemberExpression","AssignmentExpression","LogicalExpression","Identifier","getRawIdentifier","_node$extra","extra","parenthesized","rightType","id","name","isFollowedByBracket","computed","optional","forInitHead","forInHead","forOfHead","await"],"sources":["../../src/node/parentheses.ts"],"sourcesContent":["import {\n isArrayTypeAnnotation,\n isBinaryExpression,\n isCallExpression,\n isForOfStatement,\n isIndexedAccessType,\n isMemberExpression,\n isObjectPattern,\n isOptionalMemberExpression,\n isYieldExpression,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { TokenContext } from \"./index.ts\";\n\nconst PRECEDENCE = new Map([\n [\"||\", 0],\n [\"??\", 0],\n [\"|>\", 0],\n [\"&&\", 1],\n [\"|\", 2],\n [\"^\", 3],\n [\"&\", 4],\n [\"==\", 5],\n [\"===\", 5],\n [\"!=\", 5],\n [\"!==\", 5],\n [\"<\", 6],\n [\">\", 6],\n [\"<=\", 6],\n [\">=\", 6],\n [\"in\", 6],\n [\"instanceof\", 6],\n [\">>\", 7],\n [\"<<\", 7],\n [\">>>\", 7],\n [\"+\", 8],\n [\"-\", 8],\n [\"*\", 9],\n [\"/\", 9],\n [\"%\", 9],\n [\"**\", 10],\n]);\n\nfunction getBinaryPrecedence(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n nodeType: string,\n): number;\nfunction getBinaryPrecedence(\n node: t.Node,\n nodeType: string,\n): number | undefined;\nfunction getBinaryPrecedence(node: t.Node, nodeType: string) {\n if (nodeType === \"BinaryExpression\" || nodeType === \"LogicalExpression\") {\n return PRECEDENCE.get((node as t.Binary).operator);\n }\n if (nodeType === \"TSAsExpression\" || nodeType === \"TSSatisfiesExpression\") {\n return PRECEDENCE.get(\"in\");\n }\n}\n\nfunction isTSTypeExpression(nodeType: string) {\n return (\n nodeType === \"TSAsExpression\" ||\n nodeType === \"TSSatisfiesExpression\" ||\n nodeType === \"TSTypeAssertion\"\n );\n}\n\nconst isClassExtendsClause = (\n node: t.Node,\n parent: t.Node,\n): parent is t.Class => {\n const parentType = parent.type;\n return (\n (parentType === \"ClassDeclaration\" || parentType === \"ClassExpression\") &&\n parent.superClass === node\n );\n};\n\nconst hasPostfixPart = (node: t.Node, parent: t.Node) => {\n const parentType = parent.type;\n return (\n ((parentType === \"MemberExpression\" ||\n parentType === \"OptionalMemberExpression\") &&\n parent.object === node) ||\n ((parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\") &&\n parent.callee === node) ||\n (parentType === \"TaggedTemplateExpression\" && parent.tag === node) ||\n parentType === \"TSNonNullExpression\"\n );\n};\n\nexport function NullableTypeAnnotation(\n node: t.NullableTypeAnnotation,\n parent: t.Node,\n): boolean {\n return isArrayTypeAnnotation(parent);\n}\n\nexport function FunctionTypeAnnotation(\n node: t.FunctionTypeAnnotation,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n const parentType = parent.type;\n return (\n // (() => A) | (() => B)\n parentType === \"UnionTypeAnnotation\" ||\n // (() => A) & (() => B)\n parentType === \"IntersectionTypeAnnotation\" ||\n // (() => A)[]\n parentType === \"ArrayTypeAnnotation\" ||\n Boolean(tokenContext & TokenContext.arrowFlowReturnType)\n );\n}\n\nexport function UpdateExpression(\n node: t.UpdateExpression,\n parent: t.Node,\n): boolean {\n return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent);\n}\n\nfunction needsParenBeforeExpressionBrace(tokenContext: number) {\n return Boolean(\n tokenContext & (TokenContext.expressionStatement | TokenContext.arrowBody),\n );\n}\n\nexport function ObjectExpression(\n node: t.ObjectExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return needsParenBeforeExpressionBrace(tokenContext);\n}\n\nexport function DoExpression(\n node: t.DoExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // `async do` can start an expression statement\n return (\n !node.async && Boolean(tokenContext & TokenContext.expressionStatement)\n );\n}\n\nexport function Binary(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean | undefined {\n const parentType = parent.type;\n if (\n node.type === \"BinaryExpression\" &&\n node.operator === \"**\" &&\n parentType === \"BinaryExpression\" &&\n parent.operator === \"**\"\n ) {\n return parent.left === node;\n }\n\n if (isClassExtendsClause(node, parent)) {\n return true;\n }\n\n if (\n hasPostfixPart(node, parent) ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"AwaitExpression\"\n ) {\n return true;\n }\n\n const parentPos = getBinaryPrecedence(parent, parentType);\n if (parentPos != null) {\n const nodePos = getBinaryPrecedence(node, node.type);\n if (\n // Logical expressions with the same precedence don't need parens.\n (parentPos === nodePos &&\n parentType === \"BinaryExpression\" &&\n parent.right === node) ||\n parentPos > nodePos\n ) {\n return true;\n }\n }\n\n return undefined;\n}\n\nexport function UnionTypeAnnotation(\n node: t.UnionTypeAnnotation,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"ArrayTypeAnnotation\" ||\n parentType === \"NullableTypeAnnotation\" ||\n parentType === \"IntersectionTypeAnnotation\" ||\n parentType === \"UnionTypeAnnotation\"\n );\n}\n\nexport { UnionTypeAnnotation as IntersectionTypeAnnotation };\n\nexport function OptionalIndexedAccessType(\n node: t.OptionalIndexedAccessType,\n parent: t.Node,\n): boolean {\n return isIndexedAccessType(parent) && parent.objectType === node;\n}\n\nexport function TSAsExpression(\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean {\n if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left === node\n ) {\n return true;\n }\n if (\n parent.type === \"BinaryExpression\" &&\n (parent.operator === \"|\" || parent.operator === \"&\") &&\n node === parent.left\n ) {\n return true;\n }\n return Binary(node, parent);\n}\n\nexport { TSAsExpression as TSSatisfiesExpression };\n\nexport { UnaryLike as TSTypeAssertion };\n\nexport function TSConditionalType(\n node: t.TSConditionalType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSTypeOperator\" ||\n // for `infer K extends (L extends M ? M : ...)`\n parentType === \"TSTypeParameter\"\n ) {\n return true;\n }\n if (\n (parentType === \"TSIntersectionType\" || parentType === \"TSUnionType\") &&\n parent.types[0] === node\n ) {\n return true;\n }\n if (\n parentType === \"TSConditionalType\" &&\n (parent.checkType === node || parent.extendsType === node)\n ) {\n return true;\n }\n return false;\n}\n\nexport function TSUnionType(node: t.TSUnionType, parent: t.Node): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSIntersectionType(\n node: t.TSUnionType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSInferType(node: t.TSInferType, parent: t.Node): boolean {\n const parentType = parent.type;\n if (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n ) {\n return true;\n }\n if (node.typeParameter.constraint) {\n if (\n (parentType === \"TSIntersectionType\" || parentType === \"TSUnionType\") &&\n parent.types[0] === node\n ) {\n return true;\n }\n }\n return false;\n}\n\nexport function TSTypeOperator(\n node: t.TSTypeOperator,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSInstantiationExpression(\n node: t.TSInstantiationExpression,\n parent: t.Node,\n) {\n const parentType = parent.type;\n return (\n (parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\" ||\n parentType === \"TSInstantiationExpression\") &&\n !!(process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n parent.typeArguments\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n parent.typeParameters)\n );\n}\n\nexport function TSFunctionType(\n node: t.TSFunctionType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSUnionType\" ||\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n (parentType === \"TSConditionalType\" &&\n (parent.checkType === node || parent.extendsType === node))\n );\n}\n\nexport { TSFunctionType as TSConstructorType };\n\nexport function BinaryExpression(\n node: t.BinaryExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // for ((1 in []);;);\n // for (var x = (1 in []) in 2);\n return (\n node.operator === \"in\" &&\n Boolean(tokenContext & TokenContext.forInOrInitHeadAccumulate)\n );\n}\n\nexport function SequenceExpression(\n node: t.SequenceExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"SequenceExpression\" ||\n parentType === \"ParenthesizedExpression\" ||\n (parentType === \"MemberExpression\" && parent.property === node) ||\n (parentType === \"OptionalMemberExpression\" && parent.property === node) ||\n parentType === \"TemplateLiteral\"\n ) {\n return false;\n }\n if (parentType === \"ClassDeclaration\") {\n return true;\n }\n if (parentType === \"ForOfStatement\") {\n return parent.right === node;\n }\n if (parentType === \"ExportDefaultDeclaration\") {\n return true;\n }\n\n return !isStatement(parent);\n}\n\nexport function YieldExpression(\n node: t.YieldExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n hasPostfixPart(node, parent) ||\n (parentType === \"AwaitExpression\" && isYieldExpression(node)) ||\n (parentType === \"ConditionalExpression\" && node === parent.test) ||\n isClassExtendsClause(node, parent) ||\n isTSTypeExpression(parentType)\n );\n}\n\nexport { YieldExpression as AwaitExpression };\n\nexport function ClassExpression(\n node: t.ClassExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function UnaryLike(\n node:\n | t.UnaryLike\n | t.TSTypeAssertion\n | t.ArrowFunctionExpression\n | t.ConditionalExpression\n | t.AssignmentExpression,\n parent: t.Node,\n): boolean {\n return (\n hasPostfixPart(node, parent) ||\n (isBinaryExpression(parent) &&\n parent.operator === \"**\" &&\n parent.left === node) ||\n isClassExtendsClause(node, parent)\n );\n}\n\nexport function FunctionExpression(\n node: t.FunctionExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function ConditionalExpression(\n node:\n | t.ConditionalExpression\n | t.ArrowFunctionExpression\n | t.AssignmentExpression,\n parent?: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n (parentType === \"ConditionalExpression\" && parent.test === node) ||\n parentType === \"AwaitExpression\" ||\n isTSTypeExpression(parentType)\n ) {\n return true;\n }\n\n return UnaryLike(node, parent);\n}\n\nexport { ConditionalExpression as ArrowFunctionExpression };\n\nexport function OptionalMemberExpression(\n node: t.OptionalMemberExpression,\n parent: t.Node,\n): boolean {\n return (\n (isCallExpression(parent) && parent.callee === node) ||\n (isMemberExpression(parent) && parent.object === node)\n );\n}\n\nexport { OptionalMemberExpression as OptionalCallExpression };\n\nexport function AssignmentExpression(\n node: t.AssignmentExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n if (\n needsParenBeforeExpressionBrace(tokenContext) &&\n isObjectPattern(node.left)\n ) {\n return true;\n } else {\n return ConditionalExpression(node, parent);\n }\n}\n\nexport function LogicalExpression(\n node: t.LogicalExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (isTSTypeExpression(parentType)) return true;\n if (parentType !== \"LogicalExpression\") return false;\n switch (node.operator) {\n case \"||\":\n return parent.operator === \"??\" || parent.operator === \"&&\";\n case \"&&\":\n return parent.operator === \"??\";\n case \"??\":\n return parent.operator !== \"??\";\n }\n}\n\nexport function Identifier(\n node: t.Identifier,\n parent: t.Node,\n tokenContext: number,\n getRawIdentifier: (node: t.Identifier) => string,\n): boolean {\n const parentType = parent.type;\n // 13.15.2 AssignmentExpression RS: Evaluation\n // (fn) = function () {};\n if (\n node.extra?.parenthesized &&\n parentType === \"AssignmentExpression\" &&\n parent.left === node\n ) {\n const rightType = parent.right.type;\n if (\n (rightType === \"FunctionExpression\" || rightType === \"ClassExpression\") &&\n parent.right.id == null\n ) {\n return true;\n }\n }\n\n if (getRawIdentifier && getRawIdentifier(node) !== node.name) {\n return false;\n }\n\n // Non-strict code allows the identifier `let`, but it cannot occur as-is in\n // certain contexts to avoid ambiguity with contextual keyword `let`.\n if (node.name === \"let\") {\n // Some contexts only forbid `let [`, so check if the next token would\n // be the left bracket of a computed member expression.\n const isFollowedByBracket =\n isMemberExpression(parent, {\n object: node,\n computed: true,\n }) ||\n isOptionalMemberExpression(parent, {\n object: node,\n computed: true,\n optional: false,\n });\n if (\n isFollowedByBracket &&\n tokenContext &\n (TokenContext.expressionStatement |\n TokenContext.forInitHead |\n TokenContext.forInHead)\n ) {\n return true;\n }\n return Boolean(tokenContext & TokenContext.forOfHead);\n }\n\n // ECMAScript specifically forbids a for-of loop from starting with the\n // token sequence `for (async of`, because it would be ambiguous with\n // `for (async of => {};;)`, so we need to add extra parentheses.\n return (\n node.name === \"async\" &&\n isForOfStatement(parent, { left: node, await: false })\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAcA,IAAAC,MAAA,GAAAD,OAAA;AAA0C;EAbxCE,qBAAqB;EACrBC,kBAAkB;EAClBC,gBAAgB;EAChBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBC,eAAe;EACfC,0BAA0B;EAC1BC,iBAAiB;EACjBC;AAAW,IAAAZ,EAAA;AAMb,MAAMa,UAAU,GAAG,IAAIC,GAAG,CAAC,CACzB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,YAAY,EAAE,CAAC,CAAC,EACjB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,EAAE,CAAC,CACX,CAAC;AAUF,SAASC,mBAAmBA,CAACC,IAAY,EAAEC,QAAgB,EAAE;EAC3D,IAAIA,QAAQ,KAAK,kBAAkB,IAAIA,QAAQ,KAAK,mBAAmB,EAAE;IACvE,OAAOJ,UAAU,CAACK,GAAG,CAAEF,IAAI,CAAcG,QAAQ,CAAC;EACpD;EACA,IAAIF,QAAQ,KAAK,gBAAgB,IAAIA,QAAQ,KAAK,uBAAuB,EAAE;IACzE,OAAOJ,UAAU,CAACK,GAAG,CAAC,IAAI,CAAC;EAC7B;AACF;AAEA,SAASE,kBAAkBA,CAACH,QAAgB,EAAE;EAC5C,OACEA,QAAQ,KAAK,gBAAgB,IAC7BA,QAAQ,KAAK,uBAAuB,IACpCA,QAAQ,KAAK,iBAAiB;AAElC;AAEA,MAAMI,oBAAoB,GAAGA,CAC3BL,IAAY,EACZM,MAAc,KACQ;EACtB,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACE,CAACD,UAAU,KAAK,kBAAkB,IAAIA,UAAU,KAAK,iBAAiB,KACtED,MAAM,CAACG,UAAU,KAAKT,IAAI;AAE9B,CAAC;AAED,MAAMU,cAAc,GAAGA,CAACV,IAAY,EAAEM,MAAc,KAAK;EACvD,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACG,CAACD,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,0BAA0B,KACzCD,MAAM,CAACK,MAAM,KAAKX,IAAI,IACvB,CAACO,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,eAAe,KAC9BD,MAAM,CAACM,MAAM,KAAKZ,IAAK,IACxBO,UAAU,KAAK,0BAA0B,IAAID,MAAM,CAACO,GAAG,KAAKb,IAAK,IAClEO,UAAU,KAAK,qBAAqB;AAExC,CAAC;AAEM,SAASO,sBAAsBA,CACpCd,IAA8B,EAC9BM,MAAc,EACL;EACT,OAAOnB,qBAAqB,CAACmB,MAAM,CAAC;AACtC;AAEO,SAASS,sBAAsBA,CACpCf,IAA8B,EAC9BM,MAAc,EACdU,YAAoB,EACX;EACT,MAAMT,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,QAEED,UAAU,KAAK,qBAAqB,IAEpCA,UAAU,KAAK,4BAA4B,IAE3CA,UAAU,KAAK,qBAAqB,IACpCU,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACC,mBAAmB;EAAC;AAE5D;AAEO,SAASC,gBAAgBA,CAC9BpB,IAAwB,EACxBM,MAAc,EACL;EACT,OAAOI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAAID,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC;AAC3E;AAEA,SAASe,+BAA+BA,CAACL,YAAoB,EAAE;EAC7D,OAAOC,OAAO,CACZD,YAAY,IAAIE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAACK,SAAS,CAC3E,CAAC;AACH;AAEO,SAASC,gBAAgBA,CAC9BxB,IAAwB,EACxBM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOK,+BAA+B,CAACL,YAAY,CAAC;AACtD;AAEO,SAASS,YAAYA,CAC1BzB,IAAoB,EACpBM,MAAc,EACdU,YAAoB,EACX;EAET,OACE,CAAChB,IAAI,CAAC0B,KAAK,IAAIT,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACI,mBAAmB,CAAC;AAE3E;AAEO,SAASK,MAAMA,CACpB3B,IAA2D,EAC3DM,MAAc,EACO;EACrB,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACER,IAAI,CAACQ,IAAI,KAAK,kBAAkB,IAChCR,IAAI,CAACG,QAAQ,KAAK,IAAI,IACtBI,UAAU,KAAK,kBAAkB,IACjCD,MAAM,CAACH,QAAQ,KAAK,IAAI,EACxB;IACA,OAAOG,MAAM,CAACsB,IAAI,KAAK5B,IAAI;EAC7B;EAEA,IAAIK,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC,EAAE;IACtC,OAAO,IAAI;EACb;EAEA,IACEI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC5BC,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,iBAAiB,EAChC;IACA,OAAO,IAAI;EACb;EAEA,MAAMsB,SAAS,GAAG9B,mBAAmB,CAACO,MAAM,EAAEC,UAAU,CAAC;EACzD,IAAIsB,SAAS,IAAI,IAAI,EAAE;IACrB,MAAMC,OAAO,GAAG/B,mBAAmB,CAACC,IAAI,EAAEA,IAAI,CAACQ,IAAI,CAAC;IACpD,IAEGqB,SAAS,KAAKC,OAAO,IACpBvB,UAAU,KAAK,kBAAkB,IACjCD,MAAM,CAACyB,KAAK,KAAK/B,IAAI,IACvB6B,SAAS,GAAGC,OAAO,EACnB;MACA,OAAO,IAAI;IACb;EACF;EAEA,OAAOE,SAAS;AAClB;AAEO,SAASC,mBAAmBA,CACjCjC,IAA2B,EAC3BM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,qBAAqB,IACpCA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,4BAA4B,IAC3CA,UAAU,KAAK,qBAAqB;AAExC;AAIO,SAAS2B,yBAAyBA,CACvClC,IAAiC,EACjCM,MAAc,EACL;EACT,OAAOf,mBAAmB,CAACe,MAAM,CAAC,IAAIA,MAAM,CAAC6B,UAAU,KAAKnC,IAAI;AAClE;AAEO,SAASoC,cAAcA,CAC5BpC,IAAgD,EAChDM,MAAc,EACL;EACT,IACE,CAACA,MAAM,CAACE,IAAI,KAAK,sBAAsB,IACrCF,MAAM,CAACE,IAAI,KAAK,mBAAmB,KACrCF,MAAM,CAACsB,IAAI,KAAK5B,IAAI,EACpB;IACA,OAAO,IAAI;EACb;EACA,IACEM,MAAM,CAACE,IAAI,KAAK,kBAAkB,KACjCF,MAAM,CAACH,QAAQ,KAAK,GAAG,IAAIG,MAAM,CAACH,QAAQ,KAAK,GAAG,CAAC,IACpDH,IAAI,KAAKM,MAAM,CAACsB,IAAI,EACpB;IACA,OAAO,IAAI;EACb;EACA,OAAOD,MAAM,CAAC3B,IAAI,EAAEM,MAAM,CAAC;AAC7B;AAMO,SAAS+B,iBAAiBA,CAC/BrC,IAAyB,EACzBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACED,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACpEO,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,gBAAgB,IAE/BA,UAAU,KAAK,iBAAiB,EAChC;IACA,OAAO,IAAI;EACb;EACA,IACE,CAACA,UAAU,KAAK,oBAAoB,IAAIA,UAAU,KAAK,aAAa,KACpED,MAAM,CAACgC,KAAK,CAAC,CAAC,CAAC,KAAKtC,IAAI,EACxB;IACA,OAAO,IAAI;EACb;EACA,IACEO,UAAU,KAAK,mBAAmB,KACjCD,MAAM,CAACiC,SAAS,KAAKvC,IAAI,IAAIM,MAAM,CAACkC,WAAW,KAAKxC,IAAI,CAAC,EAC1D;IACA,OAAO,IAAI;EACb;EACA,OAAO,KAAK;AACd;AAEO,SAASyC,WAAWA,CAACzC,IAAmB,EAAEM,MAAc,EAAW;EACxE,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,oBAAoB,IACnCA,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACpEO,UAAU,KAAK,gBAAgB;AAEnC;AAEO,SAASmC,kBAAkBA,CAChC1C,IAAmB,EACnBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACpEO,UAAU,KAAK,gBAAgB;AAEnC;AAEO,SAASoC,WAAWA,CAAC3C,IAAmB,EAAEM,MAAc,EAAW;EACxE,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACED,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACpEO,UAAU,KAAK,gBAAgB,EAC/B;IACA,OAAO,IAAI;EACb;EACA,IAAIP,IAAI,CAAC4C,aAAa,CAACC,UAAU,EAAE;IACjC,IACE,CAACtC,UAAU,KAAK,oBAAoB,IAAIA,UAAU,KAAK,aAAa,KACpED,MAAM,CAACgC,KAAK,CAAC,CAAC,CAAC,KAAKtC,IAAI,EACxB;MACA,OAAO,IAAI;IACb;EACF;EACA,OAAO,KAAK;AACd;AAEO,SAAS8C,cAAcA,CAC5B9C,IAAsB,EACtBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACpEO,UAAU,KAAK,gBAAgB;AAEnC;AAEO,SAASwC,yBAAyBA,CACvC/C,IAAiC,EACjCM,MAAc,EACd;EACA,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACE,CAACD,UAAU,KAAK,gBAAgB,IAC9BA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,2BAA2B,KAC5C,CAAC,CAIGD,MAAM,CAAC0C,cAAe;AAE9B;AAEO,SAASC,cAAcA,CAC5BjD,IAAsB,EACtBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,oBAAoB,IACnCA,UAAU,KAAK,aAAa,IAC5BA,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,aAAa,IAC3BA,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAAC6B,UAAU,KAAKnC,IAAK,IACnEO,UAAU,KAAK,mBAAmB,KAChCD,MAAM,CAACiC,SAAS,KAAKvC,IAAI,IAAIM,MAAM,CAACkC,WAAW,KAAKxC,IAAI,CAAE;AAEjE;AAIO,SAASkD,gBAAgBA,CAC9BlD,IAAwB,EACxBM,MAAc,EACdU,YAAoB,EACX;EAGT,OACEhB,IAAI,CAACG,QAAQ,KAAK,IAAI,IACtBc,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACiC,yBAAyB,CAAC;AAElE;AAEO,SAASC,kBAAkBA,CAChCpD,IAA0B,EAC1BM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACED,UAAU,KAAK,oBAAoB,IACnCA,UAAU,KAAK,yBAAyB,IACvCA,UAAU,KAAK,kBAAkB,IAAID,MAAM,CAAC+C,QAAQ,KAAKrD,IAAK,IAC9DO,UAAU,KAAK,0BAA0B,IAAID,MAAM,CAAC+C,QAAQ,KAAKrD,IAAK,IACvEO,UAAU,KAAK,iBAAiB,EAChC;IACA,OAAO,KAAK;EACd;EACA,IAAIA,UAAU,KAAK,kBAAkB,EAAE;IACrC,OAAO,IAAI;EACb;EACA,IAAIA,UAAU,KAAK,gBAAgB,EAAE;IACnC,OAAOD,MAAM,CAACyB,KAAK,KAAK/B,IAAI;EAC9B;EACA,IAAIO,UAAU,KAAK,0BAA0B,EAAE;IAC7C,OAAO,IAAI;EACb;EAEA,OAAO,CAACX,WAAW,CAACU,MAAM,CAAC;AAC7B;AAEO,SAASgD,eAAeA,CAC7BtD,IAAuB,EACvBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,mBAAmB,IAClCA,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BG,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC3BC,UAAU,KAAK,iBAAiB,IAAIZ,iBAAiB,CAACK,IAAI,CAAE,IAC5DO,UAAU,KAAK,uBAAuB,IAAIP,IAAI,KAAKM,MAAM,CAACiD,IAAK,IAChElD,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC,IAClCF,kBAAkB,CAACG,UAAU,CAAC;AAElC;AAIO,SAASiD,eAAeA,CAC7BxD,IAAuB,EACvBM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOC,OAAO,CACZD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAACuC,aAAa,CAClE,CAAC;AACH;AAEO,SAASC,SAASA,CACvB1D,IAK0B,EAC1BM,MAAc,EACL;EACT,OACEI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC3BlB,kBAAkB,CAACkB,MAAM,CAAC,IACzBA,MAAM,CAACH,QAAQ,KAAK,IAAI,IACxBG,MAAM,CAACsB,IAAI,KAAK5B,IAAK,IACvBK,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC;AAEtC;AAEO,SAASqD,kBAAkBA,CAChC3D,IAA0B,EAC1BM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOC,OAAO,CACZD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAACuC,aAAa,CAClE,CAAC;AACH;AAEO,SAASG,qBAAqBA,CACnC5D,IAG0B,EAC1BM,MAAe,EACN;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACED,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,mBAAmB,IACjCA,UAAU,KAAK,uBAAuB,IAAID,MAAM,CAACiD,IAAI,KAAKvD,IAAK,IAChEO,UAAU,KAAK,iBAAiB,IAChCH,kBAAkB,CAACG,UAAU,CAAC,EAC9B;IACA,OAAO,IAAI;EACb;EAEA,OAAOmD,SAAS,CAAC1D,IAAI,EAAEM,MAAM,CAAC;AAChC;AAIO,SAASuD,wBAAwBA,CACtC7D,IAAgC,EAChCM,MAAc,EACL;EACT,OACGjB,gBAAgB,CAACiB,MAAM,CAAC,IAAIA,MAAM,CAACM,MAAM,KAAKZ,IAAI,IAClDR,kBAAkB,CAACc,MAAM,CAAC,IAAIA,MAAM,CAACK,MAAM,KAAKX,IAAK;AAE1D;AAIO,SAAS8D,oBAAoBA,CAClC9D,IAA4B,EAC5BM,MAAc,EACdU,YAAoB,EACX;EACT,IACEK,+BAA+B,CAACL,YAAY,CAAC,IAC7CvB,eAAe,CAACO,IAAI,CAAC4B,IAAI,CAAC,EAC1B;IACA,OAAO,IAAI;EACb,CAAC,MAAM;IACL,OAAOgC,qBAAqB,CAAC5D,IAAI,EAAEM,MAAM,CAAC;EAC5C;AACF;AAEO,SAASyD,iBAAiBA,CAC/B/D,IAAyB,EACzBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IAAIJ,kBAAkB,CAACG,UAAU,CAAC,EAAE,OAAO,IAAI;EAC/C,IAAIA,UAAU,KAAK,mBAAmB,EAAE,OAAO,KAAK;EACpD,QAAQP,IAAI,CAACG,QAAQ;IACnB,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI,IAAIG,MAAM,CAACH,QAAQ,KAAK,IAAI;IAC7D,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI;IACjC,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI;EACnC;AACF;AAEO,SAAS6D,UAAUA,CACxBhE,IAAkB,EAClBM,MAAc,EACdU,YAAoB,EACpBiD,gBAAgD,EACvC;EAAA,IAAAC,WAAA;EACT,MAAM3D,UAAU,GAAGD,MAAM,CAACE,IAAI;EAG9B,IACE,CAAA0D,WAAA,GAAAlE,IAAI,CAACmE,KAAK,aAAVD,WAAA,CAAYE,aAAa,IACzB7D,UAAU,KAAK,sBAAsB,IACrCD,MAAM,CAACsB,IAAI,KAAK5B,IAAI,EACpB;IACA,MAAMqE,SAAS,GAAG/D,MAAM,CAACyB,KAAK,CAACvB,IAAI;IACnC,IACE,CAAC6D,SAAS,KAAK,oBAAoB,IAAIA,SAAS,KAAK,iBAAiB,KACtE/D,MAAM,CAACyB,KAAK,CAACuC,EAAE,IAAI,IAAI,EACvB;MACA,OAAO,IAAI;IACb;EACF;EAEA,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACjE,IAAI,CAAC,KAAKA,IAAI,CAACuE,IAAI,EAAE;IAC5D,OAAO,KAAK;EACd;EAIA,IAAIvE,IAAI,CAACuE,IAAI,KAAK,KAAK,EAAE;IAGvB,MAAMC,mBAAmB,GACvBhF,kBAAkB,CAACc,MAAM,EAAE;MACzBK,MAAM,EAAEX,IAAI;MACZyE,QAAQ,EAAE;IACZ,CAAC,CAAC,IACF/E,0BAA0B,CAACY,MAAM,EAAE;MACjCK,MAAM,EAAEX,IAAI;MACZyE,QAAQ,EAAE,IAAI;MACdC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACJ,IACEF,mBAAmB,IACnBxD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAC/BJ,mBAAY,CAACyD,WAAW,GACxBzD,mBAAY,CAAC0D,SAAS,CAAC,EAC3B;MACA,OAAO,IAAI;IACb;IACA,OAAO3D,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAAC2D,SAAS,CAAC;EACvD;EAKA,OACE7E,IAAI,CAACuE,IAAI,KAAK,OAAO,IACrBjF,gBAAgB,CAACgB,MAAM,EAAE;IAAEsB,IAAI,EAAE5B,IAAI;IAAE8E,KAAK,EAAE;EAAM,CAAC,CAAC;AAE1D","ignoreList":[]} \ No newline at end of file +{"version":3,"names":["_t","require","_index","isArrayTypeAnnotation","isBinaryExpression","isCallExpression","isExportDeclaration","isForOfStatement","isIndexedAccessType","isMemberExpression","isObjectPattern","isOptionalMemberExpression","isYieldExpression","PRECEDENCE","Map","getBinaryPrecedence","node","nodeType","get","operator","isTSTypeExpression","isClassExtendsClause","parent","parentType","type","superClass","hasPostfixPart","object","callee","tag","NullableTypeAnnotation","FunctionTypeAnnotation","tokenContext","Boolean","TokenContext","arrowFlowReturnType","UpdateExpression","ObjectExpression","expressionStatement","arrowBody","DoExpression","async","Binary","left","parentPos","nodePos","right","undefined","UnionTypeAnnotation","OptionalIndexedAccessType","objectType","TSAsExpression","TSUnionType","TSInferType","TSInstantiationExpression","typeParameters","BinaryExpression","inForStatementInit","SequenceExpression","test","discriminant","expression","YieldExpression","ClassExpression","exportDefault","UnaryLike","FunctionExpression","ArrowFunctionExpression","ConditionalExpression","OptionalMemberExpression","AssignmentExpression","LogicalExpression","Identifier","_node$extra","extra","parenthesized","rightType","id","name","isFollowedByBracket","computed","optional","forHead","forInHead","forOfHead","await"],"sources":["../../src/node/parentheses.ts"],"sourcesContent":["import {\n isArrayTypeAnnotation,\n isBinaryExpression,\n isCallExpression,\n isExportDeclaration,\n isForOfStatement,\n isIndexedAccessType,\n isMemberExpression,\n isObjectPattern,\n isOptionalMemberExpression,\n isYieldExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { TokenContext } from \"./index.ts\";\n\nconst PRECEDENCE = new Map([\n [\"||\", 0],\n [\"??\", 0],\n [\"|>\", 0],\n [\"&&\", 1],\n [\"|\", 2],\n [\"^\", 3],\n [\"&\", 4],\n [\"==\", 5],\n [\"===\", 5],\n [\"!=\", 5],\n [\"!==\", 5],\n [\"<\", 6],\n [\">\", 6],\n [\"<=\", 6],\n [\">=\", 6],\n [\"in\", 6],\n [\"instanceof\", 6],\n [\">>\", 7],\n [\"<<\", 7],\n [\">>>\", 7],\n [\"+\", 8],\n [\"-\", 8],\n [\"*\", 9],\n [\"/\", 9],\n [\"%\", 9],\n [\"**\", 10],\n]);\n\nfunction getBinaryPrecedence(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n nodeType: string,\n): number;\nfunction getBinaryPrecedence(\n node: t.Node,\n nodeType: string,\n): number | undefined;\nfunction getBinaryPrecedence(node: t.Node, nodeType: string) {\n if (nodeType === \"BinaryExpression\" || nodeType === \"LogicalExpression\") {\n return PRECEDENCE.get((node as t.Binary).operator);\n }\n if (nodeType === \"TSAsExpression\" || nodeType === \"TSSatisfiesExpression\") {\n return PRECEDENCE.get(\"in\");\n }\n}\n\nfunction isTSTypeExpression(nodeType: string) {\n return (\n nodeType === \"TSAsExpression\" ||\n nodeType === \"TSSatisfiesExpression\" ||\n nodeType === \"TSTypeAssertion\"\n );\n}\n\nconst isClassExtendsClause = (\n node: t.Node,\n parent: t.Node,\n): parent is t.Class => {\n const parentType = parent.type;\n return (\n (parentType === \"ClassDeclaration\" || parentType === \"ClassExpression\") &&\n parent.superClass === node\n );\n};\n\nconst hasPostfixPart = (node: t.Node, parent: t.Node) => {\n const parentType = parent.type;\n return (\n ((parentType === \"MemberExpression\" ||\n parentType === \"OptionalMemberExpression\") &&\n parent.object === node) ||\n ((parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\") &&\n parent.callee === node) ||\n (parentType === \"TaggedTemplateExpression\" && parent.tag === node) ||\n parentType === \"TSNonNullExpression\"\n );\n};\n\nexport function NullableTypeAnnotation(\n node: t.NullableTypeAnnotation,\n parent: t.Node,\n): boolean {\n return isArrayTypeAnnotation(parent);\n}\n\nexport function FunctionTypeAnnotation(\n node: t.FunctionTypeAnnotation,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n const parentType = parent.type;\n return (\n // (() => A) | (() => B)\n parentType === \"UnionTypeAnnotation\" ||\n // (() => A) & (() => B)\n parentType === \"IntersectionTypeAnnotation\" ||\n // (() => A)[]\n parentType === \"ArrayTypeAnnotation\" ||\n Boolean(tokenContext & TokenContext.arrowFlowReturnType)\n );\n}\n\nexport function UpdateExpression(\n node: t.UpdateExpression,\n parent: t.Node,\n): boolean {\n return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent);\n}\n\nexport function ObjectExpression(\n node: t.ObjectExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext & (TokenContext.expressionStatement | TokenContext.arrowBody),\n );\n}\n\nexport function DoExpression(\n node: t.DoExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // `async do` can start an expression statement\n return (\n !node.async && Boolean(tokenContext & TokenContext.expressionStatement)\n );\n}\n\nexport function Binary(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean | undefined {\n const parentType = parent.type;\n if (\n node.type === \"BinaryExpression\" &&\n node.operator === \"**\" &&\n parentType === \"BinaryExpression\" &&\n parent.operator === \"**\"\n ) {\n return parent.left === node;\n }\n\n if (isClassExtendsClause(node, parent)) {\n return true;\n }\n\n if (\n hasPostfixPart(node, parent) ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"AwaitExpression\"\n ) {\n return true;\n }\n\n const parentPos = getBinaryPrecedence(parent, parentType);\n if (parentPos != null) {\n const nodePos = getBinaryPrecedence(node, node.type);\n if (\n // Logical expressions with the same precedence don't need parens.\n (parentPos === nodePos &&\n parentType === \"BinaryExpression\" &&\n parent.right === node) ||\n parentPos > nodePos\n ) {\n return true;\n }\n }\n\n return undefined;\n}\n\nexport function UnionTypeAnnotation(\n node: t.UnionTypeAnnotation,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"ArrayTypeAnnotation\" ||\n parentType === \"NullableTypeAnnotation\" ||\n parentType === \"IntersectionTypeAnnotation\" ||\n parentType === \"UnionTypeAnnotation\"\n );\n}\n\nexport { UnionTypeAnnotation as IntersectionTypeAnnotation };\n\nexport function OptionalIndexedAccessType(\n node: t.OptionalIndexedAccessType,\n parent: t.Node,\n): boolean {\n return isIndexedAccessType(parent) && parent.objectType === node;\n}\n\nexport function TSAsExpression(\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean {\n if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left === node\n ) {\n return true;\n }\n if (\n parent.type === \"BinaryExpression\" &&\n (parent.operator === \"|\" || parent.operator === \"&\") &&\n node === parent.left\n ) {\n return true;\n }\n return Binary(node, parent);\n}\n\nexport { TSAsExpression as TSSatisfiesExpression };\n\nexport { UnaryLike as TSTypeAssertion };\n\nexport function TSUnionType(node: t.TSUnionType, parent: t.Node): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSArrayType\" ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSUnionType\" ||\n parentType === \"TSRestType\"\n );\n}\n\nexport { TSUnionType as TSIntersectionType };\n\nexport function TSInferType(node: t.TSInferType, parent: t.Node): boolean {\n const parentType = parent.type;\n return parentType === \"TSArrayType\" || parentType === \"TSOptionalType\";\n}\n\nexport function TSInstantiationExpression(\n node: t.TSInstantiationExpression,\n parent: t.Node,\n) {\n const parentType = parent.type;\n return (\n (parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\" ||\n parentType === \"TSInstantiationExpression\") &&\n !!parent.typeParameters\n );\n}\n\nexport function BinaryExpression(\n node: t.BinaryExpression,\n parent: t.Node,\n tokenContext: unknown,\n inForStatementInit: boolean,\n): boolean {\n // for ((1 in []);;);\n // for (var x = (1 in []) in 2);\n return node.operator === \"in\" && inForStatementInit;\n}\n\nexport function SequenceExpression(\n node: t.SequenceExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n // Although parentheses wouldn't hurt around sequence\n // expressions in the head of for loops, traditional style\n // dictates that e.g. i++, j++ should not be wrapped with\n // parentheses.\n parentType === \"ForStatement\" ||\n parentType === \"ThrowStatement\" ||\n parentType === \"ReturnStatement\" ||\n (parentType === \"IfStatement\" && parent.test === node) ||\n (parentType === \"WhileStatement\" && parent.test === node) ||\n (parentType === \"ForInStatement\" && parent.right === node) ||\n (parentType === \"SwitchStatement\" && parent.discriminant === node) ||\n (parentType === \"ExpressionStatement\" && parent.expression === node)\n ) {\n return false;\n }\n\n // Otherwise err on the side of overparenthesization, adding\n // explicit exceptions above if this proves overzealous.\n return true;\n}\n\nexport function YieldExpression(\n node: t.YieldExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n hasPostfixPart(node, parent) ||\n (parentType === \"AwaitExpression\" && isYieldExpression(node)) ||\n (parentType === \"ConditionalExpression\" && node === parent.test) ||\n isClassExtendsClause(node, parent) ||\n isTSTypeExpression(parentType)\n );\n}\n\nexport { YieldExpression as AwaitExpression };\n\nexport function ClassExpression(\n node: t.ClassExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function UnaryLike(\n node:\n | t.UnaryLike\n | t.TSTypeAssertion\n | t.ArrowFunctionExpression\n | t.ConditionalExpression\n | t.AssignmentExpression,\n parent: t.Node,\n): boolean {\n return (\n hasPostfixPart(node, parent) ||\n (isBinaryExpression(parent) &&\n parent.operator === \"**\" &&\n parent.left === node) ||\n isClassExtendsClause(node, parent)\n );\n}\n\nexport function FunctionExpression(\n node: t.FunctionExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function ArrowFunctionExpression(\n node: t.ArrowFunctionExpression,\n parent: t.Node,\n): boolean {\n return isExportDeclaration(parent) || ConditionalExpression(node, parent);\n}\n\nexport function ConditionalExpression(\n node:\n | t.ConditionalExpression\n | t.ArrowFunctionExpression\n | t.AssignmentExpression,\n parent?: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n (parentType === \"ConditionalExpression\" && parent.test === node) ||\n parentType === \"AwaitExpression\" ||\n isTSTypeExpression(parentType)\n ) {\n return true;\n }\n\n return UnaryLike(node, parent);\n}\n\nexport function OptionalMemberExpression(\n node: t.OptionalMemberExpression,\n parent: t.Node,\n): boolean {\n return (\n (isCallExpression(parent) && parent.callee === node) ||\n (isMemberExpression(parent) && parent.object === node)\n );\n}\n\nexport { OptionalMemberExpression as OptionalCallExpression };\n\nexport function AssignmentExpression(\n node: t.AssignmentExpression,\n parent: t.Node,\n): boolean {\n if (isObjectPattern(node.left)) {\n return true;\n } else {\n return ConditionalExpression(node, parent);\n }\n}\n\nexport function LogicalExpression(\n node: t.LogicalExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (isTSTypeExpression(parentType)) return true;\n if (parentType !== \"LogicalExpression\") return false;\n switch (node.operator) {\n case \"||\":\n return parent.operator === \"??\" || parent.operator === \"&&\";\n case \"&&\":\n return parent.operator === \"??\";\n case \"??\":\n return parent.operator !== \"??\";\n }\n}\n\nexport function Identifier(\n node: t.Identifier,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n const parentType = parent.type;\n // 13.15.2 AssignmentExpression RS: Evaluation\n // (fn) = function () {};\n if (\n node.extra?.parenthesized &&\n parentType === \"AssignmentExpression\" &&\n parent.left === node\n ) {\n const rightType = parent.right.type;\n if (\n (rightType === \"FunctionExpression\" || rightType === \"ClassExpression\") &&\n parent.right.id == null\n ) {\n return true;\n }\n }\n // Non-strict code allows the identifier `let`, but it cannot occur as-is in\n // certain contexts to avoid ambiguity with contextual keyword `let`.\n if (node.name === \"let\") {\n // Some contexts only forbid `let [`, so check if the next token would\n // be the left bracket of a computed member expression.\n const isFollowedByBracket =\n isMemberExpression(parent, {\n object: node,\n computed: true,\n }) ||\n isOptionalMemberExpression(parent, {\n object: node,\n computed: true,\n optional: false,\n });\n if (\n isFollowedByBracket &&\n tokenContext &\n (TokenContext.expressionStatement |\n TokenContext.forHead |\n TokenContext.forInHead)\n ) {\n return true;\n }\n return Boolean(tokenContext & TokenContext.forOfHead);\n }\n\n // ECMAScript specifically forbids a for-of loop from starting with the\n // token sequence `for (async of`, because it would be ambiguous with\n // `for (async of => {};;)`, so we need to add extra parentheses.\n return (\n node.name === \"async\" &&\n isForOfStatement(parent, { left: node, await: false })\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAcA,IAAAC,MAAA,GAAAD,OAAA;AAA0C;EAbxCE,qBAAqB;EACrBC,kBAAkB;EAClBC,gBAAgB;EAChBC,mBAAmB;EACnBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBC,eAAe;EACfC,0BAA0B;EAC1BC;AAAiB,IAAAZ,EAAA;AAMnB,MAAMa,UAAU,GAAG,IAAIC,GAAG,CAAC,CACzB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,YAAY,EAAE,CAAC,CAAC,EACjB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,EAAE,CAAC,CACX,CAAC;AAUF,SAASC,mBAAmBA,CAACC,IAAY,EAAEC,QAAgB,EAAE;EAC3D,IAAIA,QAAQ,KAAK,kBAAkB,IAAIA,QAAQ,KAAK,mBAAmB,EAAE;IACvE,OAAOJ,UAAU,CAACK,GAAG,CAAEF,IAAI,CAAcG,QAAQ,CAAC;EACpD;EACA,IAAIF,QAAQ,KAAK,gBAAgB,IAAIA,QAAQ,KAAK,uBAAuB,EAAE;IACzE,OAAOJ,UAAU,CAACK,GAAG,CAAC,IAAI,CAAC;EAC7B;AACF;AAEA,SAASE,kBAAkBA,CAACH,QAAgB,EAAE;EAC5C,OACEA,QAAQ,KAAK,gBAAgB,IAC7BA,QAAQ,KAAK,uBAAuB,IACpCA,QAAQ,KAAK,iBAAiB;AAElC;AAEA,MAAMI,oBAAoB,GAAGA,CAC3BL,IAAY,EACZM,MAAc,KACQ;EACtB,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACE,CAACD,UAAU,KAAK,kBAAkB,IAAIA,UAAU,KAAK,iBAAiB,KACtED,MAAM,CAACG,UAAU,KAAKT,IAAI;AAE9B,CAAC;AAED,MAAMU,cAAc,GAAGA,CAACV,IAAY,EAAEM,MAAc,KAAK;EACvD,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACG,CAACD,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,0BAA0B,KACzCD,MAAM,CAACK,MAAM,KAAKX,IAAI,IACvB,CAACO,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,eAAe,KAC9BD,MAAM,CAACM,MAAM,KAAKZ,IAAK,IACxBO,UAAU,KAAK,0BAA0B,IAAID,MAAM,CAACO,GAAG,KAAKb,IAAK,IAClEO,UAAU,KAAK,qBAAqB;AAExC,CAAC;AAEM,SAASO,sBAAsBA,CACpCd,IAA8B,EAC9BM,MAAc,EACL;EACT,OAAOnB,qBAAqB,CAACmB,MAAM,CAAC;AACtC;AAEO,SAASS,sBAAsBA,CACpCf,IAA8B,EAC9BM,MAAc,EACdU,YAAoB,EACX;EACT,MAAMT,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OAEED,UAAU,KAAK,qBAAqB,IAEpCA,UAAU,KAAK,4BAA4B,IAE3CA,UAAU,KAAK,qBAAqB,IACpCU,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACC,mBAAmB,CAAC;AAE5D;AAEO,SAASC,gBAAgBA,CAC9BpB,IAAwB,EACxBM,MAAc,EACL;EACT,OAAOI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAAID,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC;AAC3E;AAEO,SAASe,gBAAgBA,CAC9BrB,IAAwB,EACxBM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOC,OAAO,CACZD,YAAY,IAAIE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAACK,SAAS,CAC3E,CAAC;AACH;AAEO,SAASC,YAAYA,CAC1BxB,IAAoB,EACpBM,MAAc,EACdU,YAAoB,EACX;EAET,OACE,CAAChB,IAAI,CAACyB,KAAK,IAAIR,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACI,mBAAmB,CAAC;AAE3E;AAEO,SAASI,MAAMA,CACpB1B,IAA2D,EAC3DM,MAAc,EACO;EACrB,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACER,IAAI,CAACQ,IAAI,KAAK,kBAAkB,IAChCR,IAAI,CAACG,QAAQ,KAAK,IAAI,IACtBI,UAAU,KAAK,kBAAkB,IACjCD,MAAM,CAACH,QAAQ,KAAK,IAAI,EACxB;IACA,OAAOG,MAAM,CAACqB,IAAI,KAAK3B,IAAI;EAC7B;EAEA,IAAIK,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC,EAAE;IACtC,OAAO,IAAI;EACb;EAEA,IACEI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC5BC,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,iBAAiB,EAChC;IACA,OAAO,IAAI;EACb;EAEA,MAAMqB,SAAS,GAAG7B,mBAAmB,CAACO,MAAM,EAAEC,UAAU,CAAC;EACzD,IAAIqB,SAAS,IAAI,IAAI,EAAE;IACrB,MAAMC,OAAO,GAAG9B,mBAAmB,CAACC,IAAI,EAAEA,IAAI,CAACQ,IAAI,CAAC;IACpD,IAEGoB,SAAS,KAAKC,OAAO,IACpBtB,UAAU,KAAK,kBAAkB,IACjCD,MAAM,CAACwB,KAAK,KAAK9B,IAAI,IACvB4B,SAAS,GAAGC,OAAO,EACnB;MACA,OAAO,IAAI;IACb;EACF;EAEA,OAAOE,SAAS;AAClB;AAEO,SAASC,mBAAmBA,CACjChC,IAA2B,EAC3BM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,qBAAqB,IACpCA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,4BAA4B,IAC3CA,UAAU,KAAK,qBAAqB;AAExC;AAIO,SAAS0B,yBAAyBA,CACvCjC,IAAiC,EACjCM,MAAc,EACL;EACT,OAAOd,mBAAmB,CAACc,MAAM,CAAC,IAAIA,MAAM,CAAC4B,UAAU,KAAKlC,IAAI;AAClE;AAEO,SAASmC,cAAcA,CAC5BnC,IAAgD,EAChDM,MAAc,EACL;EACT,IACE,CAACA,MAAM,CAACE,IAAI,KAAK,sBAAsB,IACrCF,MAAM,CAACE,IAAI,KAAK,mBAAmB,KACrCF,MAAM,CAACqB,IAAI,KAAK3B,IAAI,EACpB;IACA,OAAO,IAAI;EACb;EACA,IACEM,MAAM,CAACE,IAAI,KAAK,kBAAkB,KACjCF,MAAM,CAACH,QAAQ,KAAK,GAAG,IAAIG,MAAM,CAACH,QAAQ,KAAK,GAAG,CAAC,IACpDH,IAAI,KAAKM,MAAM,CAACqB,IAAI,EACpB;IACA,OAAO,IAAI;EACb;EACA,OAAOD,MAAM,CAAC1B,IAAI,EAAEM,MAAM,CAAC;AAC7B;AAMO,SAAS8B,WAAWA,CAACpC,IAAmB,EAAEM,MAAc,EAAW;EACxE,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,aAAa,IAC5BA,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,oBAAoB,IACnCA,UAAU,KAAK,aAAa,IAC5BA,UAAU,KAAK,YAAY;AAE/B;AAIO,SAAS8B,WAAWA,CAACrC,IAAmB,EAAEM,MAAc,EAAW;EACxE,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OAAOD,UAAU,KAAK,aAAa,IAAIA,UAAU,KAAK,gBAAgB;AACxE;AAEO,SAAS+B,yBAAyBA,CACvCtC,IAAiC,EACjCM,MAAc,EACd;EACA,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACE,CAACD,UAAU,KAAK,gBAAgB,IAC9BA,UAAU,KAAK,wBAAwB,IACvCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,2BAA2B,KAC5C,CAAC,CAACD,MAAM,CAACiC,cAAc;AAE3B;AAEO,SAASC,gBAAgBA,CAC9BxC,IAAwB,EACxBM,MAAc,EACdU,YAAqB,EACrByB,kBAA2B,EAClB;EAGT,OAAOzC,IAAI,CAACG,QAAQ,KAAK,IAAI,IAAIsC,kBAAkB;AACrD;AAEO,SAASC,kBAAkBA,CAChC1C,IAA0B,EAC1BM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IAKED,UAAU,KAAK,cAAc,IAC7BA,UAAU,KAAK,gBAAgB,IAC/BA,UAAU,KAAK,iBAAiB,IAC/BA,UAAU,KAAK,aAAa,IAAID,MAAM,CAACqC,IAAI,KAAK3C,IAAK,IACrDO,UAAU,KAAK,gBAAgB,IAAID,MAAM,CAACqC,IAAI,KAAK3C,IAAK,IACxDO,UAAU,KAAK,gBAAgB,IAAID,MAAM,CAACwB,KAAK,KAAK9B,IAAK,IACzDO,UAAU,KAAK,iBAAiB,IAAID,MAAM,CAACsC,YAAY,KAAK5C,IAAK,IACjEO,UAAU,KAAK,qBAAqB,IAAID,MAAM,CAACuC,UAAU,KAAK7C,IAAK,EACpE;IACA,OAAO,KAAK;EACd;EAIA,OAAO,IAAI;AACb;AAEO,SAAS8C,eAAeA,CAC7B9C,IAAuB,EACvBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,OACED,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,mBAAmB,IAClCA,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BG,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC3BC,UAAU,KAAK,iBAAiB,IAAIX,iBAAiB,CAACI,IAAI,CAAE,IAC5DO,UAAU,KAAK,uBAAuB,IAAIP,IAAI,KAAKM,MAAM,CAACqC,IAAK,IAChEtC,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC,IAClCF,kBAAkB,CAACG,UAAU,CAAC;AAElC;AAIO,SAASwC,eAAeA,CAC7B/C,IAAuB,EACvBM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOC,OAAO,CACZD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAAC8B,aAAa,CAClE,CAAC;AACH;AAEO,SAASC,SAASA,CACvBjD,IAK0B,EAC1BM,MAAc,EACL;EACT,OACEI,cAAc,CAACV,IAAI,EAAEM,MAAM,CAAC,IAC3BlB,kBAAkB,CAACkB,MAAM,CAAC,IACzBA,MAAM,CAACH,QAAQ,KAAK,IAAI,IACxBG,MAAM,CAACqB,IAAI,KAAK3B,IAAK,IACvBK,oBAAoB,CAACL,IAAI,EAAEM,MAAM,CAAC;AAEtC;AAEO,SAAS4C,kBAAkBA,CAChClD,IAA0B,EAC1BM,MAAc,EACdU,YAAoB,EACX;EACT,OAAOC,OAAO,CACZD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAAGJ,mBAAY,CAAC8B,aAAa,CAClE,CAAC;AACH;AAEO,SAASG,uBAAuBA,CACrCnD,IAA+B,EAC/BM,MAAc,EACL;EACT,OAAOhB,mBAAmB,CAACgB,MAAM,CAAC,IAAI8C,qBAAqB,CAACpD,IAAI,EAAEM,MAAM,CAAC;AAC3E;AAEO,SAAS8C,qBAAqBA,CACnCpD,IAG0B,EAC1BM,MAAe,EACN;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IACED,UAAU,KAAK,iBAAiB,IAChCA,UAAU,KAAK,eAAe,IAC9BA,UAAU,KAAK,kBAAkB,IACjCA,UAAU,KAAK,mBAAmB,IACjCA,UAAU,KAAK,uBAAuB,IAAID,MAAM,CAACqC,IAAI,KAAK3C,IAAK,IAChEO,UAAU,KAAK,iBAAiB,IAChCH,kBAAkB,CAACG,UAAU,CAAC,EAC9B;IACA,OAAO,IAAI;EACb;EAEA,OAAO0C,SAAS,CAACjD,IAAI,EAAEM,MAAM,CAAC;AAChC;AAEO,SAAS+C,wBAAwBA,CACtCrD,IAAgC,EAChCM,MAAc,EACL;EACT,OACGjB,gBAAgB,CAACiB,MAAM,CAAC,IAAIA,MAAM,CAACM,MAAM,KAAKZ,IAAI,IAClDP,kBAAkB,CAACa,MAAM,CAAC,IAAIA,MAAM,CAACK,MAAM,KAAKX,IAAK;AAE1D;AAIO,SAASsD,oBAAoBA,CAClCtD,IAA4B,EAC5BM,MAAc,EACL;EACT,IAAIZ,eAAe,CAACM,IAAI,CAAC2B,IAAI,CAAC,EAAE;IAC9B,OAAO,IAAI;EACb,CAAC,MAAM;IACL,OAAOyB,qBAAqB,CAACpD,IAAI,EAAEM,MAAM,CAAC;EAC5C;AACF;AAEO,SAASiD,iBAAiBA,CAC/BvD,IAAyB,EACzBM,MAAc,EACL;EACT,MAAMC,UAAU,GAAGD,MAAM,CAACE,IAAI;EAC9B,IAAIJ,kBAAkB,CAACG,UAAU,CAAC,EAAE,OAAO,IAAI;EAC/C,IAAIA,UAAU,KAAK,mBAAmB,EAAE,OAAO,KAAK;EACpD,QAAQP,IAAI,CAACG,QAAQ;IACnB,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI,IAAIG,MAAM,CAACH,QAAQ,KAAK,IAAI;IAC7D,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI;IACjC,KAAK,IAAI;MACP,OAAOG,MAAM,CAACH,QAAQ,KAAK,IAAI;EACnC;AACF;AAEO,SAASqD,UAAUA,CACxBxD,IAAkB,EAClBM,MAAc,EACdU,YAAoB,EACX;EAAA,IAAAyC,WAAA;EACT,MAAMlD,UAAU,GAAGD,MAAM,CAACE,IAAI;EAG9B,IACE,CAAAiD,WAAA,GAAAzD,IAAI,CAAC0D,KAAK,aAAVD,WAAA,CAAYE,aAAa,IACzBpD,UAAU,KAAK,sBAAsB,IACrCD,MAAM,CAACqB,IAAI,KAAK3B,IAAI,EACpB;IACA,MAAM4D,SAAS,GAAGtD,MAAM,CAACwB,KAAK,CAACtB,IAAI;IACnC,IACE,CAACoD,SAAS,KAAK,oBAAoB,IAAIA,SAAS,KAAK,iBAAiB,KACtEtD,MAAM,CAACwB,KAAK,CAAC+B,EAAE,IAAI,IAAI,EACvB;MACA,OAAO,IAAI;IACb;EACF;EAGA,IAAI7D,IAAI,CAAC8D,IAAI,KAAK,KAAK,EAAE;IAGvB,MAAMC,mBAAmB,GACvBtE,kBAAkB,CAACa,MAAM,EAAE;MACzBK,MAAM,EAAEX,IAAI;MACZgE,QAAQ,EAAE;IACZ,CAAC,CAAC,IACFrE,0BAA0B,CAACW,MAAM,EAAE;MACjCK,MAAM,EAAEX,IAAI;MACZgE,QAAQ,EAAE,IAAI;MACdC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACJ,IACEF,mBAAmB,IACnB/C,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAC/BJ,mBAAY,CAACgD,OAAO,GACpBhD,mBAAY,CAACiD,SAAS,CAAC,EAC3B;MACA,OAAO,IAAI;IACb;IACA,OAAOlD,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACkD,SAAS,CAAC;EACvD;EAKA,OACEpE,IAAI,CAAC8D,IAAI,KAAK,OAAO,IACrBvE,gBAAgB,CAACe,MAAM,EAAE;IAAEqB,IAAI,EAAE3B,IAAI;IAAEqE,KAAK,EAAE;EAAM,CAAC,CAAC;AAE1D","ignoreList":[]} \ No newline at end of file diff --git a/node_modules/@babel/generator/lib/printer.js b/node_modules/@babel/generator/lib/printer.js index 2977e633d..c60b3fd6b 100644 --- a/node_modules/@babel/generator/lib/printer.js +++ b/node_modules/@babel/generator/lib/printer.js @@ -5,131 +5,73 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; var _buffer = require("./buffer.js"); -var _index = require("./node/index.js"); -var n = _index; +var n = require("./node/index.js"); var _t = require("@babel/types"); -var _tokenMap = require("./token-map.js"); var generatorFunctions = require("./generators/index.js"); -var _deprecated = require("./generators/deprecated.js"); const { - isExpression, isFunction, isStatement, isClassBody, isTSInterfaceBody, - isTSEnumMember + isTSEnumDeclaration } = _t; const SCIENTIFIC_NOTATION = /e/i; const ZERO_DECIMAL_INTEGER = /\.0+$/; const HAS_NEWLINE = /[\n\r\u2028\u2029]/; const HAS_NEWLINE_OR_BlOCK_COMMENT_END = /[\n\r\u2028\u2029]|\*\//; -function commentIsNewline(c) { - return c.type === "CommentLine" || HAS_NEWLINE.test(c.value); -} const { needsParens } = n; class Printer { - constructor(format, map, tokens, originalCode) { - this.tokenContext = _index.TokenContext.normal; - this._tokens = null; - this._originalCode = null; + constructor(format, map) { + this.inForStatementInit = false; + this.tokenContext = 0; this._currentNode = null; this._indent = 0; this._indentRepeat = 0; this._insideAux = false; + this._parenPushNewlineState = null; this._noLineTerminator = false; - this._noLineTerminatorAfterNode = null; this._printAuxAfterOnNextUserNode = false; this._printedComments = new Set(); this._endsWithInteger = false; this._endsWithWord = false; - this._endsWithDiv = false; this._lastCommentLine = 0; this._endsWithInnerRaw = false; this._indentInnerComments = true; - this.tokenMap = null; - this._boundGetRawIdentifier = this._getRawIdentifier.bind(this); - this._printSemicolonBeforeNextNode = -1; - this._printSemicolonBeforeNextToken = -1; this.format = format; - this._tokens = tokens; - this._originalCode = originalCode; this._indentRepeat = format.indent.style.length; this._inputMap = map == null ? void 0 : map._inputMap; this._buf = new _buffer.default(map, format.indent.style[0]); } - enterForStatementInit() { - this.tokenContext |= _index.TokenContext.forInitHead | _index.TokenContext.forInOrInitHeadAccumulate; - return () => this.tokenContext = _index.TokenContext.normal; - } - enterForXStatementInit(isForOf) { - if (isForOf) { - this.tokenContext |= _index.TokenContext.forOfHead; - return null; - } else { - this.tokenContext |= _index.TokenContext.forInHead | _index.TokenContext.forInOrInitHeadAccumulate; - return () => this.tokenContext = _index.TokenContext.normal; - } - } - enterDelimited() { - const oldTokenContext = this.tokenContext; - const oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode; - if (!(oldTokenContext & _index.TokenContext.forInOrInitHeadAccumulate) && oldNoLineTerminatorAfterNode === null) { - return () => {}; - } - this._noLineTerminatorAfterNode = null; - this.tokenContext = _index.TokenContext.normal; + enterForStatementInit(val) { + const old = this.inForStatementInit; + if (old === val) return () => {}; + this.inForStatementInit = val; return () => { - this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode; - this.tokenContext = oldTokenContext; + this.inForStatementInit = old; }; } generate(ast) { - if (this.format.preserveFormat) { - this.tokenMap = new _tokenMap.TokenMap(ast, this._tokens, this._originalCode); - } this.print(ast); this._maybeAddAuxComment(); return this._buf.get(); } indent() { - const { - format - } = this; - if (format.preserveFormat || format.compact || format.concise) { - return; - } + if (this.format.compact || this.format.concise) return; this._indent++; } dedent() { - const { - format - } = this; - if (format.preserveFormat || format.compact || format.concise) { - return; - } + if (this.format.compact || this.format.concise) return; this._indent--; } semicolon(force = false) { this._maybeAddAuxComment(); if (force) { this._appendChar(59); - this._noLineTerminator = false; - return; - } - if (this.tokenMap) { - const node = this._currentNode; - if (node.start != null && node.end != null) { - if (!this.tokenMap.endMatches(node, ";")) { - this._printSemicolonBeforeNextNode = this._buf.getCurrentLine(); - return; - } - const indexes = this.tokenMap.getIndexes(this._currentNode); - this._catchUpTo(this._tokens[indexes[indexes.length - 1]].loc.start); - } + } else { + this._queue(59); } - this._queue(59); this._noLineTerminator = false; } rightBrace(node) { @@ -144,10 +86,7 @@ class Printer { this.tokenChar(41); } space(force = false) { - const { - format - } = this; - if (format.compact || format.preserveFormat) return; + if (this.format.compact) return; if (force) { this._space(); } else if (this._buf.hasContent()) { @@ -158,13 +97,12 @@ class Printer { } } word(str, noLineTerminatorAfter = false) { - this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask; - this._maybePrintInnerComments(str); - this._maybeAddAuxComment(); - if (this.tokenMap) this._catchUpToCurrentToken(str); - if (this._endsWithWord || this._endsWithDiv && str.charCodeAt(0) === 47) { + this.tokenContext = 0; + this._maybePrintInnerComments(); + if (this._endsWithWord || str.charCodeAt(0) === 47 && this.endsWith(47)) { this._space(); } + this._maybeAddAuxComment(); this._append(str, false); this._endsWithWord = true; this._noLineTerminator = noLineTerminatorAfter; @@ -180,29 +118,26 @@ class Printer { this.word(str); this._endsWithInteger = Number.isInteger(number) && !isNonDecimalLiteral(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str.charCodeAt(str.length - 1) !== 46; } - token(str, maybeNewline = false, occurrenceCount = 0) { - this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask; - this._maybePrintInnerComments(str, occurrenceCount); - this._maybeAddAuxComment(); - if (this.tokenMap) this._catchUpToCurrentToken(str, occurrenceCount); + token(str, maybeNewline = false) { + this.tokenContext = 0; + this._maybePrintInnerComments(); const lastChar = this.getLastChar(); const strFirst = str.charCodeAt(0); if (lastChar === 33 && (str === "--" || strFirst === 61) || strFirst === 43 && lastChar === 43 || strFirst === 45 && lastChar === 45 || strFirst === 46 && this._endsWithInteger) { this._space(); } + this._maybeAddAuxComment(); this._append(str, maybeNewline); this._noLineTerminator = false; } tokenChar(char) { - this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask; - const str = String.fromCharCode(char); - this._maybePrintInnerComments(str); - this._maybeAddAuxComment(); - if (this.tokenMap) this._catchUpToCurrentToken(str); + this.tokenContext = 0; + this._maybePrintInnerComments(); const lastChar = this.getLastChar(); if (char === 43 && lastChar === 43 || char === 45 && lastChar === 45 || char === 46 && this._endsWithInteger) { this._space(); } + this._maybeAddAuxComment(); this._appendChar(char); this._noLineTerminator = false; } @@ -248,7 +183,7 @@ class Printer { this._buf.source(prop, loc); } sourceWithOffset(prop, loc, columnOffset) { - if (!loc || this.format.preserveFormat) return; + if (!loc) return; this._catchUp(prop, loc); this._buf.sourceWithOffset(prop, loc, columnOffset); } @@ -264,33 +199,22 @@ class Printer { _newline() { this._queue(10); } - _catchUpToCurrentToken(str, occurrenceCount = 0) { - const token = this.tokenMap.findMatching(this._currentNode, str, occurrenceCount); - if (token) this._catchUpTo(token.loc.start); - if (this._printSemicolonBeforeNextToken !== -1 && this._printSemicolonBeforeNextToken === this._buf.getCurrentLine()) { - this._buf.appendChar(59); - this._endsWithWord = false; - this._endsWithInteger = false; - this._endsWithDiv = false; - } - this._printSemicolonBeforeNextToken = -1; - this._printSemicolonBeforeNextNode = -1; - } _append(str, maybeNewline) { + this._maybeAddParen(str); this._maybeIndent(str.charCodeAt(0)); this._buf.append(str, maybeNewline); this._endsWithWord = false; this._endsWithInteger = false; - this._endsWithDiv = false; } _appendChar(char) { + this._maybeAddParenChar(char); this._maybeIndent(char); this._buf.appendChar(char); this._endsWithWord = false; this._endsWithInteger = false; - this._endsWithDiv = false; } _queue(char) { + this._maybeAddParenChar(char); this._maybeIndent(char); this._buf.queue(char); this._endsWithWord = false; @@ -306,6 +230,47 @@ class Printer { return true; } } + _maybeAddParenChar(char) { + const parenPushNewlineState = this._parenPushNewlineState; + if (!parenPushNewlineState) return; + if (char === 32) { + return; + } + if (char !== 10) { + this._parenPushNewlineState = null; + return; + } + this.tokenChar(40); + this.indent(); + parenPushNewlineState.printed = true; + } + _maybeAddParen(str) { + const parenPushNewlineState = this._parenPushNewlineState; + if (!parenPushNewlineState) return; + const len = str.length; + let i; + for (i = 0; i < len && str.charCodeAt(i) === 32; i++) continue; + if (i === len) { + return; + } + const cha = str.charCodeAt(i); + if (cha !== 10) { + if (cha !== 47 || i + 1 === len) { + this._parenPushNewlineState = null; + return; + } + const chaPost = str.charCodeAt(i + 1); + if (chaPost === 42) { + return; + } else if (chaPost !== 47) { + this._parenPushNewlineState = null; + return; + } + } + this.tokenChar(40); + this.indent(); + parenPushNewlineState.printed = true; + } catchUp(line) { if (!this.format.retainLines) return; const count = line - this._buf.getCurrentLine(); @@ -314,45 +279,38 @@ class Printer { } } _catchUp(prop, loc) { - const { - format - } = this; - if (!format.preserveFormat) { - if (format.retainLines && loc != null && loc[prop]) { - this.catchUp(loc[prop].line); + var _loc$prop; + if (!this.format.retainLines) return; + const line = loc == null || (_loc$prop = loc[prop]) == null ? void 0 : _loc$prop.line; + if (line != null) { + const count = line - this._buf.getCurrentLine(); + for (let i = 0; i < count; i++) { + this._newline(); } - return; - } - const pos = loc == null ? void 0 : loc[prop]; - if (pos != null) this._catchUpTo(pos); - } - _catchUpTo({ - line, - column, - index - }) { - const count = line - this._buf.getCurrentLine(); - if (count > 0 && this._noLineTerminator) { - return; - } - for (let i = 0; i < count; i++) { - this._newline(); - } - const spacesCount = count > 0 ? column : column - this._buf.getCurrentColumn(); - if (spacesCount > 0) { - const spaces = this._originalCode ? this._originalCode.slice(index - spacesCount, index).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu, " ") : " ".repeat(spacesCount); - this._append(spaces, false); } } _getIndent() { return this._indentRepeat * this._indent; } - printTerminatorless(node) { - this._noLineTerminator = true; - this.print(node); + printTerminatorless(node, parent, isLabel) { + if (isLabel) { + this._noLineTerminator = true; + this.print(node, parent); + } else { + const terminatorState = { + printed: false + }; + this._parenPushNewlineState = terminatorState; + this.print(node, parent); + if (terminatorState.printed) { + this.dedent(); + this.newline(); + this.tokenChar(41); + } + } } - print(node, noLineTerminatorAfter, trailingCommentsLineOffset) { - var _node$extra, _node$leadingComments, _node$leadingComments2; + print(node, parent, noLineTerminatorAfter, trailingCommentsLineOffset, forceParens) { + var _node$extra, _node$leadingComments; if (!node) return; this._endsWithInnerRaw = false; const nodeType = node.type; @@ -365,16 +323,13 @@ class Printer { if (printMethod === undefined) { throw new ReferenceError(`unknown node of type ${JSON.stringify(nodeType)} with constructor ${JSON.stringify(node.constructor.name)}`); } - const parent = this._currentNode; + const oldNode = this._currentNode; this._currentNode = node; - if (this.tokenMap) { - this._printSemicolonBeforeNextToken = this._printSemicolonBeforeNextNode; - } const oldInAux = this._insideAux; this._insideAux = node.loc == null; this._maybeAddAuxComment(this._insideAux && !oldInAux); const parenthesized = (_node$extra = node.extra) == null ? void 0 : _node$extra.parenthesized; - let shouldPrintParens = parenthesized && format.preserveFormat || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this.tokenContext, format.preserveFormat ? this._boundGetRawIdentifier : undefined); + let shouldPrintParens = forceParens || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this.tokenContext, this.inForStatementInit); if (!shouldPrintParens && parenthesized && (_node$leadingComments = node.leadingComments) != null && _node$leadingComments.length && node.leadingComments[0].type === "CommentBlock") { const parentType = parent == null ? void 0 : parent.type; switch (parentType) { @@ -391,35 +346,11 @@ class Printer { shouldPrintParens = true; } } - let indentParenthesized = false; - if (!shouldPrintParens && this._noLineTerminator && ((_node$leadingComments2 = node.leadingComments) != null && _node$leadingComments2.some(commentIsNewline) || this.format.retainLines && node.loc && node.loc.start.line > this._buf.getCurrentLine())) { - shouldPrintParens = true; - indentParenthesized = true; - } - let oldNoLineTerminatorAfterNode; - let oldTokenContext; - if (!shouldPrintParens) { - noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && n.isLastChild(parent, node)); - if (noLineTerminatorAfter) { - var _node$trailingComment; - if ((_node$trailingComment = node.trailingComments) != null && _node$trailingComment.some(commentIsNewline)) { - if (isExpression(node)) shouldPrintParens = true; - } else { - oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode; - this._noLineTerminatorAfterNode = node; - } - } - } + let exitInForStatementInit; if (shouldPrintParens) { this.tokenChar(40); - if (indentParenthesized) this.indent(); this._endsWithInnerRaw = false; - if (this.tokenContext & _index.TokenContext.forInOrInitHeadAccumulate) { - oldTokenContext = this.tokenContext; - this.tokenContext = _index.TokenContext.normal; - } - oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode; - this._noLineTerminatorAfterNode = null; + exitInForStatementInit = this.enterForStatementInit(false); } this._lastCommentLine = 0; this._printLeadingComments(node, parent); @@ -427,25 +358,18 @@ class Printer { this.exactSource(loc, printMethod.bind(this, node, parent)); if (shouldPrintParens) { this._printTrailingComments(node, parent); - if (indentParenthesized) { - this.dedent(); - this.newline(); - } this.tokenChar(41); this._noLineTerminator = noLineTerminatorAfter; - if (oldTokenContext) this.tokenContext = oldTokenContext; + exitInForStatementInit(); } else if (noLineTerminatorAfter && !this._noLineTerminator) { this._noLineTerminator = true; this._printTrailingComments(node, parent); } else { this._printTrailingComments(node, parent, trailingCommentsLineOffset); } - this._currentNode = parent; + this._currentNode = oldNode; format.concise = oldConcise; this._insideAux = oldInAux; - if (oldNoLineTerminatorAfterNode !== undefined) { - this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode; - } this._endsWithInnerRaw = false; } _maybeAddAuxComment(enteredPositionlessNode) { @@ -480,8 +404,11 @@ class Printer { return extra.raw; } } - printJoin(nodes, statement, indent, separator, printTrailingSeparator, addNewlines, iterator, trailingCommentsLineOffset) { + printJoin(nodes, parent, opts = {}) { if (!(nodes != null && nodes.length)) return; + let { + indent + } = opts; if (indent == null && this.format.retainLines) { var _nodes$0$loc; const startLine = (_nodes$0$loc = nodes[0].loc) == null ? void 0 : _nodes$0$loc.start.line; @@ -491,23 +418,21 @@ class Printer { } if (indent) this.indent(); const newlineOpts = { - addNewlines: addNewlines, + addNewlines: opts.addNewlines, nextNodeStartLine: 0 }; - const boundSeparator = separator == null ? void 0 : separator.bind(this); + const separator = opts.separator ? opts.separator.bind(this) : null; const len = nodes.length; for (let i = 0; i < len; i++) { const node = nodes[i]; if (!node) continue; - if (statement) this._printNewline(i === 0, newlineOpts); - this.print(node, undefined, trailingCommentsLineOffset || 0); - iterator == null || iterator(node, i); - if (boundSeparator != null) { - if (i < len - 1) boundSeparator(i, false);else if (printTrailingSeparator) boundSeparator(i, true); - } - if (statement) { - var _node$trailingComment2; - if (!((_node$trailingComment2 = node.trailingComments) != null && _node$trailingComment2.length)) { + if (opts.statement) this._printNewline(i === 0, newlineOpts); + this.print(node, parent, undefined, opts.trailingCommentsLineOffset || 0); + opts.iterator == null || opts.iterator(node, i); + if (i < len - 1) separator == null || separator(); + if (opts.statement) { + var _node$trailingComment; + if (!((_node$trailingComment = node.trailingComments) != null && _node$trailingComment.length)) { this._lastCommentLine = 0; } if (i + 1 === len) { @@ -522,10 +447,10 @@ class Printer { } if (indent) this.dedent(); } - printAndIndentOnComments(node) { + printAndIndentOnComments(node, parent) { const indent = node.leadingComments && node.leadingComments.length > 0; if (indent) this.indent(); - this.print(node); + this.print(node, parent); if (indent) this.dedent(); } printBlock(parent) { @@ -533,7 +458,7 @@ class Printer { if (node.type !== "EmptyStatement") { this.space(); } - this.print(node); + this.print(node, parent); } _printTrailingComments(node, parent, lineOffset) { const { @@ -552,15 +477,12 @@ class Printer { if (!(comments != null && comments.length)) return; this._printComments(0, comments, node, parent); } - _maybePrintInnerComments(nextTokenStr, nextTokenOccurrenceCount) { - if (this._endsWithInnerRaw) { - var _this$tokenMap; - this.printInnerComments((_this$tokenMap = this.tokenMap) == null ? void 0 : _this$tokenMap.findMatching(this._currentNode, nextTokenStr, nextTokenOccurrenceCount)); - } + _maybePrintInnerComments() { + if (this._endsWithInnerRaw) this.printInnerComments(); this._endsWithInnerRaw = true; this._indentInnerComments = true; } - printInnerComments(nextToken) { + printInnerComments() { const node = this._currentNode; const comments = node.innerComments; if (!(comments != null && comments.length)) return; @@ -568,7 +490,7 @@ class Printer { const indent = this._indentInnerComments; const printedCommentsCount = this._printedComments.size; if (indent) this.indent(); - this._printComments(1, comments, node, undefined, undefined, nextToken); + this._printComments(1, comments, node); if (hasSpace && printedCommentsCount !== this._printedComments.size) { this.space(); } @@ -577,17 +499,17 @@ class Printer { noIndentInnerCommentsHere() { this._indentInnerComments = false; } - printSequence(nodes, indent, trailingCommentsLineOffset, addNewlines) { - this.printJoin(nodes, true, indent != null ? indent : false, undefined, undefined, addNewlines, undefined, trailingCommentsLineOffset); - } - printList(items, printTrailingSeparator, statement, indent, separator, iterator) { - this.printJoin(items, statement, indent, separator != null ? separator : commaSeparator, printTrailingSeparator, undefined, iterator); + printSequence(nodes, parent, opts = {}) { + var _opts$indent; + opts.statement = true; + (_opts$indent = opts.indent) != null ? _opts$indent : opts.indent = false; + this.printJoin(nodes, parent, opts); } - shouldPrintTrailingComma(listEnd) { - if (!this.tokenMap) return null; - const listEndIndex = this.tokenMap.findLastIndex(this._currentNode, token => this.tokenMap.matchesOriginal(token, listEnd)); - if (listEndIndex <= 0) return null; - return this.tokenMap.matchesOriginal(this._tokens[listEndIndex - 1], ","); + printList(items, parent, opts = {}) { + if (opts.separator == null) { + opts.separator = commaSeparator; + } + this.printJoin(items, parent, opts); } _printNewline(newLine, opts) { const format = this.format; @@ -612,18 +534,12 @@ class Printer { this.newline(1); } } - _shouldPrintComment(comment, nextToken) { + _shouldPrintComment(comment) { if (comment.ignore) return 0; if (this._printedComments.has(comment)) return 0; if (this._noLineTerminator && HAS_NEWLINE_OR_BlOCK_COMMENT_END.test(comment.value)) { return 2; } - if (nextToken && this.tokenMap) { - const commentTok = this.tokenMap.find(this._currentNode, token => token.value === comment.value); - if (commentTok && commentTok.start > nextToken.start) { - return 2; - } - } this._printedComments.add(comment); if (!this.format.shouldPrintComment(comment.value)) { return 0; @@ -638,11 +554,19 @@ class Printer { this.newline(1); } const lastCharCode = this.getLastChar(); - if (lastCharCode !== 91 && lastCharCode !== 123 && lastCharCode !== 40) { + if (lastCharCode !== 91 && lastCharCode !== 123) { this.space(); } let val; if (isBlockComment) { + const { + _parenPushNewlineState + } = this; + if ((_parenPushNewlineState == null ? void 0 : _parenPushNewlineState.printed) === false && HAS_NEWLINE.test(comment.value)) { + this.tokenChar(40); + this.indent(); + _parenPushNewlineState.printed = true; + } val = `/*${comment.value}*/`; if (this.format.indent.adjustMultilineComment) { var _comment$loc; @@ -666,22 +590,9 @@ class Printer { } else { val = `/*${comment.value}*/`; } - if (this._endsWithDiv) this._space(); - if (this.tokenMap) { - const { - _printSemicolonBeforeNextToken, - _printSemicolonBeforeNextNode - } = this; - this._printSemicolonBeforeNextToken = -1; - this._printSemicolonBeforeNextNode = -1; - this.source("start", comment.loc); - this._append(val, isBlockComment); - this._printSemicolonBeforeNextNode = _printSemicolonBeforeNextNode; - this._printSemicolonBeforeNextToken = _printSemicolonBeforeNextToken; - } else { - this.source("start", comment.loc); - this._append(val, isBlockComment); - } + if (this.endsWith(47)) this._space(); + this.source("start", comment.loc); + this._append(val, isBlockComment); if (!isBlockComment && !noLineTerminator) { this.newline(1, true); } @@ -689,7 +600,7 @@ class Printer { this.newline(1); } } - _printComments(type, comments, node, parent, lineOffset = 0, nextToken) { + _printComments(type, comments, node, parent, lineOffset = 0) { const nodeLoc = node.loc; const len = comments.length; let hasLoc = !!nodeLoc; @@ -700,7 +611,7 @@ class Printer { const maybeNewline = this._noLineTerminator ? function () {} : this.newline.bind(this); for (let i = 0; i < len; i++) { const comment = comments[i]; - const shouldPrint = this._shouldPrintComment(comment, nextToken); + const shouldPrint = this._shouldPrintComment(comment); if (shouldPrint === 2) { hasLoc = false; break; @@ -746,7 +657,7 @@ class Printer { } if (len === 1) { const singleLine = comment.loc ? comment.loc.start.line === comment.loc.end.line : !HAS_NEWLINE.test(comment.value); - const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumMember(node); + const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumDeclaration(parent); if (type === 0) { this._printComment(comment, shouldSkipNewline && node.type !== "ObjectExpression" || singleLine && isFunction(parent, { body: node @@ -770,12 +681,12 @@ class Printer { } Object.assign(Printer.prototype, generatorFunctions); { - (0, _deprecated.addDeprecatedGenerators)(Printer); + Printer.prototype.Noop = function Noop() {}; } var _default = exports.default = Printer; -function commaSeparator(occurrenceCount, last) { - this.token(",", false, occurrenceCount); - if (!last) this.space(); +function commaSeparator() { + this.tokenChar(44); + this.space(); } //# sourceMappingURL=printer.js.map diff --git a/node_modules/@babel/generator/lib/printer.js.map b/node_modules/@babel/generator/lib/printer.js.map index de4027eed..961e85575 100644 --- a/node_modules/@babel/generator/lib/printer.js.map +++ b/node_modules/@babel/generator/lib/printer.js.map @@ -1 +1 @@ -{"version":3,"names":["_buffer","require","_index","n","_t","_tokenMap","generatorFunctions","_deprecated","isExpression","isFunction","isStatement","isClassBody","isTSInterfaceBody","isTSEnumMember","SCIENTIFIC_NOTATION","ZERO_DECIMAL_INTEGER","HAS_NEWLINE","HAS_NEWLINE_OR_BlOCK_COMMENT_END","commentIsNewline","c","type","test","value","needsParens","Printer","constructor","format","map","tokens","originalCode","tokenContext","TokenContext","normal","_tokens","_originalCode","_currentNode","_indent","_indentRepeat","_insideAux","_noLineTerminator","_noLineTerminatorAfterNode","_printAuxAfterOnNextUserNode","_printedComments","Set","_endsWithInteger","_endsWithWord","_endsWithDiv","_lastCommentLine","_endsWithInnerRaw","_indentInnerComments","tokenMap","_boundGetRawIdentifier","_getRawIdentifier","bind","_printSemicolonBeforeNextNode","_printSemicolonBeforeNextToken","indent","style","length","_inputMap","_buf","Buffer","enterForStatementInit","forInitHead","forInOrInitHeadAccumulate","enterForXStatementInit","isForOf","forOfHead","forInHead","enterDelimited","oldTokenContext","oldNoLineTerminatorAfterNode","generate","ast","preserveFormat","TokenMap","print","_maybeAddAuxComment","get","compact","concise","dedent","semicolon","force","_appendChar","node","start","end","endMatches","getCurrentLine","indexes","getIndexes","_catchUpTo","loc","_queue","rightBrace","minified","removeLastSemicolon","sourceWithOffset","token","rightParens","space","_space","hasContent","lastCp","getLastChar","word","str","noLineTerminatorAfter","forInOrInitHeadAccumulatePassThroughMask","_maybePrintInnerComments","_catchUpToCurrentToken","charCodeAt","_append","number","isNonDecimalLiteral","secondChar","Number","isInteger","maybeNewline","occurrenceCount","lastChar","strFirst","tokenChar","char","String","fromCharCode","newline","i","retainLines","getNewlineCount","j","_newline","endsWith","endsWithCharAndNewline","removeTrailingNewline","exactSource","cb","_catchUp","source","prop","columnOffset","sourceIdentifierName","identifierName","pos","_canMarkIdName","sourcePosition","_sourcePosition","identifierNamePos","findMatching","appendChar","_maybeIndent","append","queue","firstChar","queueIndentation","_getIndent","_shouldIndent","catchUp","line","count","column","index","spacesCount","getCurrentColumn","spaces","slice","replace","repeat","printTerminatorless","trailingCommentsLineOffset","_node$extra","_node$leadingComments","_node$leadingComments2","nodeType","oldConcise","_compact","printMethod","undefined","ReferenceError","JSON","stringify","name","parent","oldInAux","parenthesized","extra","shouldPrintParens","retainFunctionParens","leadingComments","parentType","callee","indentParenthesized","some","isLastChild","_node$trailingComment","trailingComments","_printLeadingComments","_printTrailingComments","enteredPositionlessNode","_printAuxBeforeComment","_printAuxAfterComment","comment","auxiliaryCommentBefore","_printComment","auxiliaryCommentAfter","getPossibleRaw","raw","rawValue","printJoin","nodes","statement","separator","printTrailingSeparator","addNewlines","iterator","_nodes$0$loc","startLine","newlineOpts","nextNodeStartLine","boundSeparator","len","_printNewline","_node$trailingComment2","_nextNode$loc","nextNode","printAndIndentOnComments","printBlock","body","lineOffset","innerComments","_printComments","comments","nextTokenStr","nextTokenOccurrenceCount","_this$tokenMap","printInnerComments","nextToken","hasSpace","printedCommentsCount","size","noIndentInnerCommentsHere","printSequence","printList","items","commaSeparator","shouldPrintTrailingComma","listEnd","listEndIndex","findLastIndex","matchesOriginal","newLine","opts","lastCommentLine","offset","_shouldPrintComment","ignore","has","commentTok","find","add","shouldPrintComment","skipNewLines","noLineTerminator","isBlockComment","printNewLines","lastCharCode","val","adjustMultilineComment","_comment$loc","newlineRegex","RegExp","indentSize","nodeLoc","hasLoc","nodeStartLine","nodeEndLine","lastLine","leadingCommentNewline","shouldPrint","commentStartLine","commentEndLine","Math","max","min","singleLine","shouldSkipNewline","properties","Object","assign","prototype","addDeprecatedGenerators","_default","exports","default","last"],"sources":["../src/printer.ts"],"sourcesContent":["import Buffer, { type Pos } from \"./buffer.ts\";\nimport type { Loc } from \"./buffer.ts\";\nimport * as n from \"./node/index.ts\";\nimport type * as t from \"@babel/types\";\nimport {\n isExpression,\n isFunction,\n isStatement,\n isClassBody,\n isTSInterfaceBody,\n isTSEnumMember,\n} from \"@babel/types\";\nimport type { Opts as jsescOptions } from \"jsesc\";\n\nimport { TokenMap } from \"./token-map.ts\";\nimport type { GeneratorOptions } from \"./index.ts\";\nimport * as generatorFunctions from \"./generators/index.ts\";\nimport {\n addDeprecatedGenerators,\n type DeprecatedBabel7ASTTypes,\n} from \"./generators/deprecated.ts\";\nimport type SourceMap from \"./source-map.ts\";\nimport type { TraceMap } from \"@jridgewell/trace-mapping\";\nimport type { Token } from \"@babel/parser\";\n\n// We inline this package\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as charCodes from \"charcodes\";\n\nconst SCIENTIFIC_NOTATION = /e/i;\nconst ZERO_DECIMAL_INTEGER = /\\.0+$/;\nconst HAS_NEWLINE = /[\\n\\r\\u2028\\u2029]/;\nconst HAS_NEWLINE_OR_BlOCK_COMMENT_END = /[\\n\\r\\u2028\\u2029]|\\*\\//;\n\nfunction commentIsNewline(c: t.Comment) {\n return c.type === \"CommentLine\" || HAS_NEWLINE.test(c.value);\n}\n\nconst { needsParens } = n;\n\nimport { TokenContext } from \"./node/index.ts\";\n\nconst enum COMMENT_TYPE {\n LEADING,\n INNER,\n TRAILING,\n}\n\nconst enum COMMENT_SKIP_NEWLINE {\n DEFAULT,\n ALL,\n LEADING,\n TRAILING,\n}\n\nconst enum PRINT_COMMENT_HINT {\n SKIP,\n ALLOW,\n DEFER,\n}\n\nexport type Format = {\n shouldPrintComment: (comment: string) => boolean;\n preserveFormat: boolean;\n retainLines: boolean;\n retainFunctionParens: boolean;\n comments: boolean;\n auxiliaryCommentBefore: string;\n auxiliaryCommentAfter: string;\n compact: boolean | \"auto\";\n minified: boolean;\n concise: boolean;\n indent: {\n adjustMultilineComment: boolean;\n style: string;\n };\n /**\n * @deprecated Removed in Babel 8, syntax type is always 'hash'\n */\n recordAndTupleSyntaxType?: GeneratorOptions[\"recordAndTupleSyntaxType\"];\n jsescOption: jsescOptions;\n /**\n * @deprecated Removed in Babel 8, use `jsescOption` instead\n */\n jsonCompatibleStrings?: boolean;\n /**\n * For use with the Hack-style pipe operator.\n * Changes what token is used for pipe bodies’ topic references.\n */\n topicToken?: GeneratorOptions[\"topicToken\"];\n /**\n * @deprecated Removed in Babel 8\n */\n decoratorsBeforeExport?: boolean;\n /**\n * The import attributes syntax style:\n * - \"with\" : `import { a } from \"b\" with { type: \"json\" };`\n * - \"assert\" : `import { a } from \"b\" assert { type: \"json\" };`\n * - \"with-legacy\" : `import { a } from \"b\" with type: \"json\";`\n */\n importAttributesKeyword?: \"with\" | \"assert\" | \"with-legacy\";\n};\n\ninterface AddNewlinesOptions {\n addNewlines(leading: boolean, node: t.Node): number;\n nextNodeStartLine: number;\n}\n\ninterface PrintSequenceOptions extends Partial {\n statement?: boolean;\n indent?: boolean;\n trailingCommentsLineOffset?: number;\n}\n\ninterface PrintListOptions {\n separator?: (this: Printer, occurrenceCount: number, last: boolean) => void;\n iterator?: (node: t.Node, index: number) => void;\n statement?: boolean;\n indent?: boolean;\n printTrailingSeparator?: boolean;\n}\n\nexport type PrintJoinOptions = PrintListOptions & PrintSequenceOptions;\nclass Printer {\n constructor(\n format: Format,\n map: SourceMap,\n tokens?: Token[],\n originalCode?: string,\n ) {\n this.format = format;\n\n this._tokens = tokens;\n this._originalCode = originalCode;\n\n this._indentRepeat = format.indent.style.length;\n\n this._inputMap = map?._inputMap;\n\n this._buf = new Buffer(map, format.indent.style[0]);\n }\n declare _inputMap: TraceMap;\n\n declare format: Format;\n\n enterForStatementInit() {\n this.tokenContext |=\n TokenContext.forInitHead | TokenContext.forInOrInitHeadAccumulate;\n return () => (this.tokenContext = TokenContext.normal);\n }\n\n enterForXStatementInit(isForOf: boolean) {\n if (isForOf) {\n this.tokenContext |= TokenContext.forOfHead;\n return null;\n } else {\n this.tokenContext |=\n TokenContext.forInHead | TokenContext.forInOrInitHeadAccumulate;\n return () => (this.tokenContext = TokenContext.normal);\n }\n }\n\n enterDelimited() {\n const oldTokenContext = this.tokenContext;\n const oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode;\n if (\n !(oldTokenContext & TokenContext.forInOrInitHeadAccumulate) &&\n oldNoLineTerminatorAfterNode === null\n ) {\n return () => {};\n }\n this._noLineTerminatorAfterNode = null;\n this.tokenContext = TokenContext.normal;\n return () => {\n this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;\n this.tokenContext = oldTokenContext;\n };\n }\n\n tokenContext: number = TokenContext.normal;\n\n _tokens: Token[] = null;\n _originalCode: string | null = null;\n\n declare _buf: Buffer;\n _currentNode: t.Node = null;\n _indent: number = 0;\n _indentRepeat: number = 0;\n _insideAux: boolean = false;\n _noLineTerminator: boolean = false;\n _noLineTerminatorAfterNode: t.Node | null = null;\n _printAuxAfterOnNextUserNode: boolean = false;\n _printedComments = new Set();\n _endsWithInteger = false;\n _endsWithWord = false;\n _endsWithDiv = false;\n _lastCommentLine = 0;\n _endsWithInnerRaw: boolean = false;\n _indentInnerComments: boolean = true;\n tokenMap: TokenMap = null;\n\n _boundGetRawIdentifier = this._getRawIdentifier.bind(this);\n\n generate(ast: t.Node) {\n if (this.format.preserveFormat) {\n this.tokenMap = new TokenMap(ast, this._tokens, this._originalCode);\n }\n this.print(ast);\n this._maybeAddAuxComment();\n\n return this._buf.get();\n }\n\n /**\n * Increment indent size.\n */\n\n indent(): void {\n const { format } = this;\n if (format.preserveFormat || format.compact || format.concise) {\n return;\n }\n\n this._indent++;\n }\n\n /**\n * Decrement indent size.\n */\n\n dedent(): void {\n const { format } = this;\n if (format.preserveFormat || format.compact || format.concise) {\n return;\n }\n\n this._indent--;\n }\n\n /**\n * If the next token is on the same line, we must first print a semicolon.\n * This option is only used in `preserveFormat` node, for semicolons that\n * might have omitted due to them being absent in the original code (thanks\n * to ASI).\n *\n * We need both *NextToken and *NextNode because we only want to insert the\n * semicolon when the next token starts a new node, and not in cases like\n * foo} (where } is not starting a new node). So we first set *NextNode, and\n * then the print() method will move it to *NextToken.\n */\n _printSemicolonBeforeNextNode: number = -1;\n _printSemicolonBeforeNextToken: number = -1;\n\n /**\n * Add a semicolon to the buffer.\n */\n semicolon(force: boolean = false): void {\n this._maybeAddAuxComment();\n if (force) {\n this._appendChar(charCodes.semicolon);\n this._noLineTerminator = false;\n return;\n }\n if (this.tokenMap) {\n const node = this._currentNode;\n if (node.start != null && node.end != null) {\n if (!this.tokenMap.endMatches(node, \";\")) {\n // no semicolon\n this._printSemicolonBeforeNextNode = this._buf.getCurrentLine();\n return;\n }\n const indexes = this.tokenMap.getIndexes(this._currentNode);\n this._catchUpTo(this._tokens[indexes[indexes.length - 1]].loc.start);\n }\n }\n this._queue(charCodes.semicolon);\n this._noLineTerminator = false;\n }\n\n /**\n * Add a right brace to the buffer.\n */\n\n rightBrace(node: t.Node): void {\n if (this.format.minified) {\n this._buf.removeLastSemicolon();\n }\n this.sourceWithOffset(\"end\", node.loc, -1);\n this.token(\"}\");\n }\n\n rightParens(node: t.Node): void {\n this.sourceWithOffset(\"end\", node.loc, -1);\n this.token(\")\");\n }\n\n /**\n * Add a space to the buffer unless it is compact.\n */\n\n space(force: boolean = false): void {\n const { format } = this;\n if (format.compact || format.preserveFormat) return;\n\n if (force) {\n this._space();\n } else if (this._buf.hasContent()) {\n const lastCp = this.getLastChar();\n if (lastCp !== charCodes.space && lastCp !== charCodes.lineFeed) {\n this._space();\n }\n }\n }\n\n /**\n * Writes a token that can't be safely parsed without taking whitespace into account.\n */\n\n word(str: string, noLineTerminatorAfter: boolean = false): void {\n this.tokenContext &= TokenContext.forInOrInitHeadAccumulatePassThroughMask;\n\n this._maybePrintInnerComments(str);\n\n this._maybeAddAuxComment();\n\n if (this.tokenMap) this._catchUpToCurrentToken(str);\n\n // prevent concatenating words and creating // comment out of division and regex\n if (\n this._endsWithWord ||\n (this._endsWithDiv && str.charCodeAt(0) === charCodes.slash)\n ) {\n this._space();\n }\n this._append(str, false);\n\n this._endsWithWord = true;\n this._noLineTerminator = noLineTerminatorAfter;\n }\n\n /**\n * Writes a number token so that we can validate if it is an integer.\n */\n\n number(str: string, number?: number): void {\n // const NON_DECIMAL_LITERAL = /^0[box]/;\n function isNonDecimalLiteral(str: string) {\n if (str.length > 2 && str.charCodeAt(0) === charCodes.digit0) {\n const secondChar = str.charCodeAt(1);\n return (\n secondChar === charCodes.lowercaseB ||\n secondChar === charCodes.lowercaseO ||\n secondChar === charCodes.lowercaseX\n );\n }\n return false;\n }\n this.word(str);\n\n // Integer tokens need special handling because they cannot have '.'s inserted\n // immediately after them.\n this._endsWithInteger =\n Number.isInteger(number) &&\n !isNonDecimalLiteral(str) &&\n !SCIENTIFIC_NOTATION.test(str) &&\n !ZERO_DECIMAL_INTEGER.test(str) &&\n str.charCodeAt(str.length - 1) !== charCodes.dot;\n }\n\n /**\n * Writes a simple token.\n *\n * @param {string} str The string to append.\n * @param {boolean} [maybeNewline=false] Wether `str` might potentially\n * contain a line terminator or not.\n * @param {number} [occurrenceCount=0] The occurrence count of this token in\n * the current node. This is used when printing in `preserveFormat` mode,\n * to know which token we should map to (for example, to disambiguate the\n * commas in an array literal).\n */\n token(str: string, maybeNewline = false, occurrenceCount = 0): void {\n this.tokenContext &= TokenContext.forInOrInitHeadAccumulatePassThroughMask;\n\n this._maybePrintInnerComments(str, occurrenceCount);\n\n this._maybeAddAuxComment();\n\n if (this.tokenMap) this._catchUpToCurrentToken(str, occurrenceCount);\n\n const lastChar = this.getLastChar();\n const strFirst = str.charCodeAt(0);\n if (\n (lastChar === charCodes.exclamationMark &&\n // space is mandatory to avoid outputting ` line comment\n const comment = this.skipLineComment(3);\n if (comment !== undefined) {\n this.addComment(comment);\n comments?.push(comment);\n }\n } else {\n break loop;\n }\n } else if (\n ch === charCodes.lessThan &&\n !this.inModule &&\n this.optionFlags & OptionFlags.AnnexB\n ) {\n const pos = this.state.pos;\n if (\n this.input.charCodeAt(pos + 1) === charCodes.exclamationMark &&\n this.input.charCodeAt(pos + 2) === charCodes.dash &&\n this.input.charCodeAt(pos + 3) === charCodes.dash\n ) {\n // `` line comment\n const comment = this.skipLineComment(3);\n if (comment !== undefined) {\n this.addComment(comment);\n if (this.options.attachComment) comments.push(comment);\n }\n } else {\n break loop;\n }\n } else if (\n ch === charCodes.lessThan &&\n !this.inModule &&\n this.options.annexB\n ) {\n const pos = this.state.pos;\n if (\n this.input.charCodeAt(pos + 1) === charCodes.exclamationMark &&\n this.input.charCodeAt(pos + 2) === charCodes.dash &&\n this.input.charCodeAt(pos + 3) === charCodes.dash\n ) {\n // ` + +# uuid [![Build Status](https://secure.travis-ci.org/kelektiv/node-uuid.svg?branch=master)](http://travis-ci.org/kelektiv/node-uuid) # + +Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS. + +Features: + +* Support for version 1, 3, 4 and 5 UUIDs +* Cross-platform +* Uses cryptographically-strong random number APIs (when available) +* Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883)) + +[**Deprecation warning**: The use of `require('uuid')` is deprecated and will not be +supported after version 3.x of this module. Instead, use `require('uuid/[v1|v3|v4|v5]')` as shown in the examples below.] + +## Quickstart - CommonJS (Recommended) + +```shell +npm install uuid +``` + +Then generate your uuid version of choice ... + +Version 1 (timestamp): + +```javascript +const uuidv1 = require('uuid/v1'); +uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d' + +``` + +Version 3 (namespace): + +```javascript +const uuidv3 = require('uuid/v3'); + +// ... using predefined DNS namespace (for domain names) +uuidv3('hello.example.com', uuidv3.DNS); // ⇨ '9125a8dc-52ee-365b-a5aa-81b0b3681cf6' + +// ... using predefined URL namespace (for, well, URLs) +uuidv3('http://example.com/hello', uuidv3.URL); // ⇨ 'c6235813-3ba4-3801-ae84-e0a6ebb7d138' + +// ... using a custom namespace +// +// Note: Custom namespaces should be a UUID string specific to your application! +// E.g. the one here was generated using this modules `uuid` CLI. +const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; +uuidv3('Hello, World!', MY_NAMESPACE); // ⇨ 'e8b5a51d-11c8-3310-a6ab-367563f20686' + +``` + +Version 4 (random): + +```javascript +const uuidv4 = require('uuid/v4'); +uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' + +``` + +Version 5 (namespace): + +```javascript +const uuidv5 = require('uuid/v5'); + +// ... using predefined DNS namespace (for domain names) +uuidv5('hello.example.com', uuidv5.DNS); // ⇨ 'fdda765f-fc57-5604-a269-52a7df8164ec' + +// ... using predefined URL namespace (for, well, URLs) +uuidv5('http://example.com/hello', uuidv5.URL); // ⇨ '3bbcee75-cecc-5b56-8031-b6641c1ed1f1' + +// ... using a custom namespace +// +// Note: Custom namespaces should be a UUID string specific to your application! +// E.g. the one here was generated using this modules `uuid` CLI. +const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; +uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681' + +``` + +## API + +### Version 1 + +```javascript +const uuidv1 = require('uuid/v1'); + +// Incantations +uuidv1(); +uuidv1(options); +uuidv1(options, buffer, offset); +``` + +Generate and return a RFC4122 v1 (timestamp-based) UUID. + +* `options` - (Object) Optional uuid state to apply. Properties may include: + + * `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1. + * `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used. + * `msecs` - (Number) Time in milliseconds since unix Epoch. Default: The current time is used. + * `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2. + +* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. +* `offset` - (Number) Starting index in `buffer` at which to begin writing. + +Returns `buffer`, if specified, otherwise the string form of the UUID + +Note: The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. + +Example: Generate string UUID with fully-specified options + +```javascript +const v1options = { + node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], + clockseq: 0x1234, + msecs: new Date('2011-11-01').getTime(), + nsecs: 5678 +}; +uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab' + +``` + +Example: In-place generation of two binary IDs + +```javascript +// Generate two ids in an array +const arr = new Array(); +uuidv1(null, arr, 0); // ⇨ + // [ + // 44, 94, 164, 192, 64, 103, + // 17, 233, 146, 52, 155, 29, + // 235, 77, 59, 125 + // ] +uuidv1(null, arr, 16); // ⇨ + // [ + // 44, 94, 164, 192, 64, 103, 17, 233, + // 146, 52, 155, 29, 235, 77, 59, 125, + // 44, 94, 164, 193, 64, 103, 17, 233, + // 146, 52, 155, 29, 235, 77, 59, 125 + // ] + +``` + +### Version 3 + +```javascript +const uuidv3 = require('uuid/v3'); + +// Incantations +uuidv3(name, namespace); +uuidv3(name, namespace, buffer); +uuidv3(name, namespace, buffer, offset); +``` + +Generate and return a RFC4122 v3 UUID. + +* `name` - (String | Array[]) "name" to create UUID with +* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values +* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. +* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0 + +Returns `buffer`, if specified, otherwise the string form of the UUID + +Example: + +```javascript +uuidv3('hello world', MY_NAMESPACE); // ⇨ '042ffd34-d989-321c-ad06-f60826172424' + +``` + +### Version 4 + +```javascript +const uuidv4 = require('uuid/v4') + +// Incantations +uuidv4(); +uuidv4(options); +uuidv4(options, buffer, offset); +``` + +Generate and return a RFC4122 v4 UUID. + +* `options` - (Object) Optional uuid state to apply. Properties may include: + * `random` - (Number[16]) Array of 16 numbers (0-255) to use in place of randomly generated values + * `rng` - (Function) Random # generator function that returns an Array[16] of byte values (0-255) +* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. +* `offset` - (Number) Starting index in `buffer` at which to begin writing. + +Returns `buffer`, if specified, otherwise the string form of the UUID + +Example: Generate string UUID with predefined `random` values + +```javascript +const v4options = { + random: [ + 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, + 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36 + ] +}; +uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' + +``` + +Example: Generate two IDs in a single buffer + +```javascript +const buffer = new Array(); +uuidv4(null, buffer, 0); // ⇨ + // [ + // 155, 29, 235, 77, 59, + // 125, 75, 173, 155, 221, + // 43, 13, 123, 61, 203, + // 109 + // ] +uuidv4(null, buffer, 16); // ⇨ + // [ + // 155, 29, 235, 77, 59, 125, 75, 173, + // 155, 221, 43, 13, 123, 61, 203, 109, + // 27, 157, 107, 205, 187, 253, 75, 45, + // 155, 93, 171, 141, 251, 189, 75, 237 + // ] + +``` + +### Version 5 + +```javascript +const uuidv5 = require('uuid/v5'); + +// Incantations +uuidv5(name, namespace); +uuidv5(name, namespace, buffer); +uuidv5(name, namespace, buffer, offset); +``` + +Generate and return a RFC4122 v5 UUID. + +* `name` - (String | Array[]) "name" to create UUID with +* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values +* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. +* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0 + +Returns `buffer`, if specified, otherwise the string form of the UUID + +Example: + +```javascript +uuidv5('hello world', MY_NAMESPACE); // ⇨ '9f282611-e0fd-5650-8953-89c8e342da0b' + +``` + +## Command Line + +UUIDs can be generated from the command line with the `uuid` command. + +```shell +$ uuid +ddeb27fb-d9a0-4624-be4d-4615062daed4 + +$ uuid v1 +02d37060-d446-11e7-a9fa-7bdae751ebe1 +``` + +Type `uuid --help` for usage details + +## Testing + +```shell +npm test +``` + +---- +Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) \ No newline at end of file diff --git a/node_modules/uuid/index.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/index.js similarity index 100% rename from node_modules/uuid/index.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/index.js diff --git a/node_modules/uuid/lib/bytesToUuid.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/bytesToUuid.js similarity index 100% rename from node_modules/uuid/lib/bytesToUuid.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/bytesToUuid.js diff --git a/node_modules/uuid/lib/md5-browser.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/md5-browser.js similarity index 100% rename from node_modules/uuid/lib/md5-browser.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/md5-browser.js diff --git a/node_modules/uuid/lib/md5.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/md5.js similarity index 100% rename from node_modules/uuid/lib/md5.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/md5.js diff --git a/node_modules/uuid/lib/rng-browser.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/rng-browser.js similarity index 100% rename from node_modules/uuid/lib/rng-browser.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/rng-browser.js diff --git a/node_modules/uuid/lib/rng.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/rng.js similarity index 100% rename from node_modules/uuid/lib/rng.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/rng.js diff --git a/node_modules/uuid/lib/sha1-browser.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/sha1-browser.js similarity index 100% rename from node_modules/uuid/lib/sha1-browser.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/sha1-browser.js diff --git a/node_modules/uuid/lib/sha1.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/sha1.js similarity index 100% rename from node_modules/uuid/lib/sha1.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/sha1.js diff --git a/node_modules/uuid/lib/v35.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/v35.js similarity index 100% rename from node_modules/uuid/lib/v35.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/lib/v35.js diff --git a/node_modules/azure-actions-appservice-rest/node_modules/uuid/package.json b/node_modules/azure-actions-appservice-rest/node_modules/uuid/package.json new file mode 100644 index 000000000..efc07b8f6 --- /dev/null +++ b/node_modules/azure-actions-appservice-rest/node_modules/uuid/package.json @@ -0,0 +1,49 @@ +{ + "name": "uuid", + "version": "3.4.0", + "description": "RFC4122 (v1, v4, and v5) UUIDs", + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + }, + "keywords": [ + "uuid", + "guid", + "rfc4122" + ], + "license": "MIT", + "bin": { + "uuid": "./bin/uuid" + }, + "devDependencies": { + "@commitlint/cli": "~8.2.0", + "@commitlint/config-conventional": "~8.2.0", + "eslint": "~6.4.0", + "husky": "~3.0.5", + "mocha": "6.2.0", + "runmd": "1.2.1", + "standard-version": "7.0.0" + }, + "scripts": { + "lint": "eslint .", + "test": "npm run lint && mocha test/test.js", + "md": "runmd --watch --output=README.md README_js.md", + "release": "standard-version", + "prepare": "runmd --output=README.md README_js.md" + }, + "browser": { + "./lib/rng.js": "./lib/rng-browser.js", + "./lib/sha1.js": "./lib/sha1-browser.js", + "./lib/md5.js": "./lib/md5-browser.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/uuidjs/uuid.git" + }, + "husky": { + "hooks": { + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + } + } +} diff --git a/node_modules/uuid/v1.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/v1.js similarity index 100% rename from node_modules/uuid/v1.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/v1.js diff --git a/node_modules/uuid/v3.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/v3.js similarity index 100% rename from node_modules/uuid/v3.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/v3.js diff --git a/node_modules/uuid/v4.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/v4.js similarity index 100% rename from node_modules/uuid/v4.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/v4.js diff --git a/node_modules/uuid/v5.js b/node_modules/azure-actions-appservice-rest/node_modules/uuid/v5.js similarity index 100% rename from node_modules/uuid/v5.js rename to node_modules/azure-actions-appservice-rest/node_modules/uuid/v5.js diff --git a/node_modules/azure-actions-appservice-rest/package.json b/node_modules/azure-actions-appservice-rest/package.json index 95ecde506..d3bb4c506 100644 --- a/node_modules/azure-actions-appservice-rest/package.json +++ b/node_modules/azure-actions-appservice-rest/package.json @@ -1,6 +1,6 @@ { "name": "azure-actions-appservice-rest", - "version": "1.3.29", + "version": "1.3.16", "description": "Azure resource manager and kudu node rest module", "keywords": [ "appservice", diff --git a/node_modules/azure-actions-utility/fileTransformationUtility.js b/node_modules/azure-actions-utility/fileTransformationUtility.js index a1517d605..cbe74bc04 100644 --- a/node_modules/azure-actions-utility/fileTransformationUtility.js +++ b/node_modules/azure-actions-utility/fileTransformationUtility.js @@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.FileTransformUtility = void 0; const packageUtility_1 = require("./packageUtility"); const parameterParserUtility_1 = require("./parameterParserUtility"); const core = require("@actions/core"); diff --git a/node_modules/azure-actions-utility/package.json b/node_modules/azure-actions-utility/package.json index 9e3ca4ffd..8663ce083 100644 --- a/node_modules/azure-actions-utility/package.json +++ b/node_modules/azure-actions-utility/package.json @@ -1,6 +1,6 @@ { "name": "azure-actions-utility", - "version": "1.0.5", + "version": "1.0.3", "description": "file and text transformation utilities ", "main": "index.js", "scripts": { @@ -27,7 +27,7 @@ "typescript": "^3.6.3" }, "dependencies": { - "@actions/core": "^1.1.10", + "@actions/core": "^1.1.1", "@actions/io": "^1.0.1", "archiver": "^2.1.1", "decompress-zip": "^0.3.0", diff --git a/node_modules/azure-actions-utility/packageUtility.js b/node_modules/azure-actions-utility/packageUtility.js index e279ef4de..11a7e9e45 100644 --- a/node_modules/azure-actions-utility/packageUtility.js +++ b/node_modules/azure-actions-utility/packageUtility.js @@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.exist = exports.Package = exports.PackageUtility = exports.PackageType = void 0; const core = require("@actions/core"); const fs = require("fs"); const utility = require("./utility"); diff --git a/node_modules/azure-actions-utility/parameterParserUtility.js b/node_modules/azure-actions-utility/parameterParserUtility.js index 56dc05bcc..bbc085043 100644 --- a/node_modules/azure-actions-utility/parameterParserUtility.js +++ b/node_modules/azure-actions-utility/parameterParserUtility.js @@ -1,6 +1,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.parse = void 0; function parse(input) { var result = {}; var index = 0; diff --git a/node_modules/azure-actions-utility/utility.d.ts b/node_modules/azure-actions-utility/utility.d.ts index 9575d871c..f667a81bb 100644 --- a/node_modules/azure-actions-utility/utility.d.ts +++ b/node_modules/azure-actions-utility/utility.d.ts @@ -4,8 +4,8 @@ export declare function generateTemporaryFolderOrZipPath(folderPath: string, isF export declare function copyDirectory(sourceDirectory: string, destDirectory: string): void; export declare function generateTemporaryFolderForDeployment(isFolderBasedDeployment: boolean, webDeployPkg: string, packageType: PackageType): Promise; export declare function archiveFolderForDeployment(isFolderBasedDeployment: boolean, folderPath: string): Promise<{ - webDeployPkg: any; - tempPackagePath: any; + "webDeployPkg": any; + "tempPackagePath": any; }>; export declare function getFileNameFromPath(filePath: string, extension?: string): string; export declare function getTempDirectory(): string; diff --git a/node_modules/azure-actions-utility/utility.js b/node_modules/azure-actions-utility/utility.js index 3db579d14..d9c024bb2 100644 --- a/node_modules/azure-actions-utility/utility.js +++ b/node_modules/azure-actions-utility/utility.js @@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTempDirectory = exports.getFileNameFromPath = exports.archiveFolderForDeployment = exports.generateTemporaryFolderForDeployment = exports.copyDirectory = exports.generateTemporaryFolderOrZipPath = exports.findfiles = void 0; const path = require("path"); const fs = require("fs"); const os = require("os"); diff --git a/node_modules/azure-actions-utility/utilityHelperFunctions.js b/node_modules/azure-actions-utility/utilityHelperFunctions.js index 3aa403ea7..640c9a561 100644 --- a/node_modules/azure-actions-utility/utilityHelperFunctions.js +++ b/node_modules/azure-actions-utility/utilityHelperFunctions.js @@ -1,6 +1,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.match = exports.find = exports.mkdirP = exports._checkShell = exports.cp = void 0; const core = require("@actions/core"); const path = require("path"); const fs = require("fs"); diff --git a/node_modules/azure-actions-utility/ziputility.d.ts b/node_modules/azure-actions-utility/ziputility.d.ts index ce895a23e..f1245ee73 100644 --- a/node_modules/azure-actions-utility/ziputility.d.ts +++ b/node_modules/azure-actions-utility/ziputility.d.ts @@ -1,6 +1,5 @@ export declare function unzip(zipLocation: any, unzipLocation: any): Promise; export declare function archiveFolder(folderPath: any, targetPath: any, zipName: any): Promise; -export declare function archiveFolderWithExcludePatterns(folderPath: any, targetPath: any, zipName: any, excludePatterns?: any[]): Promise; /** * Returns array of files present in archived package */ diff --git a/node_modules/azure-actions-utility/ziputility.js b/node_modules/azure-actions-utility/ziputility.js index 9c8202447..fdcc6bf6f 100644 --- a/node_modules/azure-actions-utility/ziputility.js +++ b/node_modules/azure-actions-utility/ziputility.js @@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkIfFilesExistsInZip = exports.getArchivedEntries = exports.archiveFolderWithExcludePatterns = exports.archiveFolder = exports.unzip = void 0; const core = require("@actions/core"); const io = require("@actions/io"); const path = require("path"); @@ -62,31 +61,6 @@ function archiveFolder(folderPath, targetPath, zipName) { }); } exports.archiveFolder = archiveFolder; -function archiveFolderWithExcludePatterns(folderPath, targetPath, zipName, excludePatterns = []) { - return __awaiter(this, void 0, void 0, function* () { - const defer = Q.defer(); - core.debug('Archiving ' + folderPath + ' to ' + zipName); - const outputZipPath = path.join(targetPath, zipName); - const output = fs.createWriteStream(outputZipPath); - var archive = archiver('zip'); - output.on('close', function () { - core.debug('Successfully created archive ' + zipName); - defer.resolve(outputZipPath); - }); - output.on('error', function (error) { - defer.reject(error); - }); - archive.pipe(output); - // Build glob pattern to include everything except excluded patterns - archive.glob('**/*', { - cwd: folderPath, - ignore: excludePatterns - }); - archive.finalize(); - return defer.promise; - }); -} -exports.archiveFolderWithExcludePatterns = archiveFolderWithExcludePatterns; /** * Returns array of files present in archived package */ diff --git a/node_modules/babel-preset-current-node-syntax/.github/FUNDING.yml b/node_modules/babel-preset-current-node-syntax/.github/FUNDING.yml deleted file mode 100644 index f2d5decd4..000000000 --- a/node_modules/babel-preset-current-node-syntax/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -github: [nicolo-ribaudo] diff --git a/node_modules/babel-preset-current-node-syntax/.github/workflows/nodejs.yml b/node_modules/babel-preset-current-node-syntax/.github/workflows/nodejs.yml deleted file mode 100644 index da19e4cce..000000000 --- a/node_modules/babel-preset-current-node-syntax/.github/workflows/nodejs.yml +++ /dev/null @@ -1,49 +0,0 @@ -# This workflow will do a clean install of node dependencies, 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: Node.js CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: - [ - "10.0", - "10.19", - "12.4", - "12.8", - "13.11", - "14.3", - "14", - "15", - "16.10", - "16.11", - "17", - "18.19", - "18.20", - "19", - "20.9", - "20.10", - "21", - "22", - ] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js latest - uses: actions/setup-node@v1 - - run: npm install - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm test diff --git a/node_modules/babel-preset-current-node-syntax/package.json b/node_modules/babel-preset-current-node-syntax/package.json index 074b7f51f..af07533b7 100644 --- a/node_modules/babel-preset-current-node-syntax/package.json +++ b/node_modules/babel-preset-current-node-syntax/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-current-node-syntax", - "version": "1.1.0", + "version": "1.0.1", "description": "A Babel preset that enables parsing of proposals supported by the current Node.js version.", "main": "src/index.js", "repository": { @@ -12,34 +12,30 @@ "url": "https://github.com/nicolo-ribaudo" }, "scripts": { - "test": "node ./test/index.js" + "test": "node ./test/index.js", + "prepublish": "./scripts/check-yarn-bug.sh" }, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" + "@babel/plugin-syntax-top-level-await": "^7.8.3" }, "peerDependencies": { "@babel/core": "^7.0.0" }, "devDependencies": { - "@babel/core": "7.25.2", + "@babel/core": "7.0.0", "@babel/parser-7.0.0": "npm:@babel/parser@7.0.0", - "@babel/parser-7.12.0": "npm:@babel/parser@7.12.0", - "@babel/parser-7.22.0": "npm:@babel/parser@7.22.0", "@babel/parser-7.9.0": "npm:@babel/parser@7.9.0" }, "license": "MIT" -} +} \ No newline at end of file diff --git a/node_modules/babel-preset-current-node-syntax/scripts/check-yarn-bug.sh b/node_modules/babel-preset-current-node-syntax/scripts/check-yarn-bug.sh new file mode 100644 index 000000000..3deb69f1c --- /dev/null +++ b/node_modules/babel-preset-current-node-syntax/scripts/check-yarn-bug.sh @@ -0,0 +1,5 @@ +if grep 3155328e5 .yarn/releases/yarn-*.cjs -c; then + echo "Your version of yarn is affected by https://github.com/yarnpkg/berry/issues/1882" + echo "Please run \`sed -i -e \"s/3155328e5/4567890e5/g\" .yarn/releases/yarn-*.cjs\`" + exit 1 +fi diff --git a/node_modules/babel-preset-current-node-syntax/src/index.js b/node_modules/babel-preset-current-node-syntax/src/index.js index 8523890ac..e0243bdec 100644 --- a/node_modules/babel-preset-current-node-syntax/src/index.js +++ b/node_modules/babel-preset-current-node-syntax/src/index.js @@ -8,27 +8,19 @@ const tests = { "json-strings": ["'\\u2028'"], // Babel 7.2.0 // ECMAScript 2020 - bigint: ["1n"], // Babel 7.8.0 + "bigint": ["1n"], // Babel 7.8.0 "optional-chaining": ["a?.b"], // Babel 7.9.0 "nullish-coalescing-operator": ["a ?? b"], // Babel 7.9.0 // import.meta is handled manually - // ECMAScript 2021 + // Stage 3 "numeric-separator": ["1_2"], - "logical-assignment-operators": ["a ||= b", "a &&= b", "a ??= c"], - - // ECMAScript 2022 "class-properties": [ "(class { x = 1 })", "(class { #x = 1 })", "(class { #x() {} })", ], - "private-property-in-object": ["(class { #x; m() { #x in y } })"], - "class-static-block": ["(class { static {} })"], - // top-level await is handled manually - - // Stage 3 - // import attributes is handled manually + "logical-assignment-operators": ["a ||= b", "a &&= b", "a ??= c"], }; const plugins = []; @@ -61,12 +53,5 @@ if (major > 10 || (major === 10 && minor >= 4)) { if (major > 14 || (major === 14 && minor >= 3)) { plugins.push(require.resolve("@babel/plugin-syntax-top-level-await")); } -// Similar for import attributes -if ( - major > 20 || - (major === 20 && minor >= 10) || - (major === 18 && minor >= 20) -) { - plugins.push(require.resolve("@babel/plugin-syntax-import-attributes")); -} + module.exports = () => ({ plugins }); diff --git a/node_modules/brace-expansion/index.js b/node_modules/brace-expansion/index.js index bd19fe685..0478be81e 100644 --- a/node_modules/brace-expansion/index.js +++ b/node_modules/brace-expansion/index.js @@ -109,7 +109,7 @@ function expand(str, isTop) { var isOptions = m.body.indexOf(',') >= 0; if (!isSequence && !isOptions) { // {a},b} - if (m.post.match(/,(?!,).*\}/)) { + if (m.post.match(/,.*\}/)) { str = m.pre + '{' + m.body + escClose + m.post; return expand(str); } diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json index 344788817..a18faa8fd 100644 --- a/node_modules/brace-expansion/package.json +++ b/node_modules/brace-expansion/package.json @@ -1,7 +1,7 @@ { "name": "brace-expansion", "description": "Brace expansion as known from sh/bash", - "version": "1.1.12", + "version": "1.1.11", "repository": { "type": "git", "url": "git://github.com/juliangruber/brace-expansion.git" @@ -43,8 +43,5 @@ "iphone/6.0..latest", "android-browser/4.2..latest" ] - }, - "publishConfig": { - "tag": "1.x" } } diff --git a/node_modules/browserslist/browser.js b/node_modules/browserslist/browser.js index 1a681fd3e..6828bdbed 100644 --- a/node_modules/browserslist/browser.js +++ b/node_modules/browserslist/browser.js @@ -44,8 +44,6 @@ module.exports = { findConfig: noop, - findConfigFile: noop, - clearCaches: noop, oldDataWarning: noop, diff --git a/node_modules/browserslist/cli.js b/node_modules/browserslist/cli.js index 78c08d743..7b5236da3 100644 --- a/node_modules/browserslist/cli.js +++ b/node_modules/browserslist/cli.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -var fs = require('fs') var updateDb = require('update-browserslist-db') +var fs = require('fs') var browserslist = require('./') var pkg = require('./package.json') diff --git a/node_modules/browserslist/index.d.ts b/node_modules/browserslist/index.d.ts index a08176cc1..e47c5cfe2 100644 --- a/node_modules/browserslist/index.d.ts +++ b/node_modules/browserslist/index.d.ts @@ -166,17 +166,6 @@ declare namespace browserslist { opts?: browserslist.Options ): Query[] - /** - * Return queries for specific file inside the project. - * - * ```js - * browserslist.loadConfig({ - * file: process.cwd() - * }) ?? browserslist.defaults - * ``` - */ - function loadConfig(options: LoadConfigOptions): string[] | undefined - function clearCaches(): void function parseConfig(string: string): Config @@ -185,25 +174,13 @@ declare namespace browserslist { function findConfig(...pathSegments: string[]): Config | undefined - function findConfigFile(...pathSegments: string[]): string | undefined - interface LoadConfigOptions { - /** - * Path to config file - * */ config?: string - - /** - * Path to file inside the project to find Browserslist config - * in closest folder - */ path?: string - - /** - * Environment to choose part of config. - */ env?: string } + + function loadConfig(options: LoadConfigOptions): string[] | undefined } declare global { diff --git a/node_modules/browserslist/index.js b/node_modules/browserslist/index.js index 7419f581b..ca2c78a18 100644 --- a/node_modules/browserslist/index.js +++ b/node_modules/browserslist/index.js @@ -1,12 +1,12 @@ var jsReleases = require('node-releases/data/processed/envs.json') var agents = require('caniuse-lite/dist/unpacker/agents').agents -var e2c = require('electron-to-chromium/versions') var jsEOL = require('node-releases/data/release-schedule/release-schedule.json') var path = require('path') +var e2c = require('electron-to-chromium/versions') var BrowserslistError = require('./error') -var env = require('./node') -var parseWithoutCache = require('./parse') // Will load browser.js in webpack +var parse = require('./parse') +var env = require('./node') // Will load browser.js in webpack var YEAR = 365.259641 * 24 * 60 * 60 * 1000 var ANDROID_EVERGREEN_FIRST = '37' @@ -82,11 +82,11 @@ function generateFilter(sign, version) { version = parseFloat(version) if (sign === '>') { return function (v) { - return parseLatestFloat(v) > version + return parseFloat(v) > version } } else if (sign === '>=') { return function (v) { - return parseLatestFloat(v) >= version + return parseFloat(v) >= version } } else if (sign === '<') { return function (v) { @@ -97,10 +97,6 @@ function generateFilter(sign, version) { return parseFloat(v) <= version } } - - function parseLatestFloat(v) { - return parseFloat(v.split('-')[1] || v) - } } function generateSemverFilter(sign, version) { @@ -319,7 +315,7 @@ function isSupported(flags, withPartial) { } function resolve(queries, context) { - return parseQueries(queries).reduce(function (result, node, index) { + return parse(QUERIES, queries).reduce(function (result, node, index) { if (node.not && index === 0) { throw new BrowserslistError( 'Write any browsers query (for instance, `defaults`) ' + @@ -395,26 +391,19 @@ function checkQueries(queries) { } var cache = {} -var parseCache = {} function browserslist(queries, opts) { opts = prepareOpts(opts) queries = prepareQueries(queries, opts) checkQueries(queries) - var needsPath = parseQueries(queries).some(function (node) { - return QUERIES[node.type].needsPath - }) var context = { ignoreUnknownVersions: opts.ignoreUnknownVersions, dangerousExtend: opts.dangerousExtend, mobileToDesktop: opts.mobileToDesktop, + path: opts.path, env: opts.env } - // Removing to avoid using context.path without marking query as needsPath - if (needsPath) { - context.path = opts.path - } env.oldDataWarning(browserslist.data) var stats = env.getStat(opts, browserslist.data) @@ -448,35 +437,11 @@ function browserslist(queries, opts) { return result } -function parseQueries(queries) { - var cacheKey = JSON.stringify(queries) - if (cacheKey in parseCache) return parseCache[cacheKey] - var result = parseWithoutCache(QUERIES, queries) - if (!env.env.BROWSERSLIST_DISABLE_CACHE) { - parseCache[cacheKey] = result - } - return result -} - -function loadCustomUsage(context, config) { - var stats = env.loadStat(context, config, browserslist.data) - if (stats) { - context.customUsage = {} - for (var browser in stats) { - fillUsage(context.customUsage, browser, stats[browser]) - } - } - if (!context.customUsage) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - return context.customUsage -} - browserslist.parse = function (queries, opts) { opts = prepareOpts(opts) queries = prepareQueries(queries, opts) checkQueries(queries) - return parseQueries(queries) + return parse(QUERIES, queries) } // Will be filled by Can I Use data below @@ -522,7 +487,6 @@ browserslist.versionAliases = {} browserslist.clearCaches = env.clearCaches browserslist.parseConfig = env.parseConfig browserslist.readConfig = env.readConfig -browserslist.findConfigFile = env.findConfigFile browserslist.findConfig = env.findConfig browserslist.loadConfig = env.loadConfig @@ -612,21 +576,19 @@ function coverQuery(context, node) { env.loadCountry(browserslist.usage, place, browserslist.data) usage = browserslist.usage[place] } - } else if (node.config) { - usage = loadCustomUsage(context, node.config) } var versions = Object.keys(usage).sort(function (a, b) { return usage[b] - usage[a] }) - var covered = 0 + var coveraged = 0 var result = [] var version for (var i = 0; i < versions.length; i++) { version = versions[i] if (usage[version] === 0) break - covered += usage[version] + coveraged += usage[version] result.push(version) - if (covered >= coverage) break + if (coveraged >= coverage) break } return result } @@ -845,7 +807,17 @@ var QUERIES = { regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/, select: function (context, node) { var popularity = parseFloat(node.popularity) - var usage = loadCustomUsage(context, node.config) + var stats = env.loadStat(context, node.config, browserslist.data) + if (stats) { + context.customUsage = {} + for (var browser in stats) { + fillUsage(context.customUsage, browser, stats[browser]) + } + } + if (!context.customUsage) { + throw new BrowserslistError('Custom usage statistics was not provided') + } + var usage = context.customUsage return Object.keys(usage).reduce(function (result, version) { var percentage = usage[version] if (percentage == null) { @@ -919,11 +891,6 @@ var QUERIES = { regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i, select: coverQuery }, - cover_config: { - matches: ['coverage', 'config'], - regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/i, - select: coverQuery - }, supports: { matches: ['supportType', 'feature'], regexp: /^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/, @@ -1049,7 +1016,7 @@ var QUERIES = { matches: [], regexp: /^(firefox|ff|fx)\s+esr$/i, select: function () { - return ['firefox 128', 'firefox 140'] + return ['firefox 115', 'firefox 128'] } }, opera_mini_all: { @@ -1161,7 +1128,6 @@ var QUERIES = { browserslist_config: { matches: [], regexp: /^browserslist config$/i, - needsPath: true, select: function (context) { return browserslist(undefined, context) } @@ -1169,7 +1135,6 @@ var QUERIES = { extends: { matches: ['config'], regexp: /^extends (.+)$/i, - needsPath: true, select: function (context, node) { return resolve(env.loadQueries(context, node.config), context) } diff --git a/node_modules/browserslist/node.js b/node_modules/browserslist/node.js index 8e19444b0..a124ba616 100644 --- a/node_modules/browserslist/node.js +++ b/node_modules/browserslist/node.js @@ -1,22 +1,21 @@ var feature = require('caniuse-lite/dist/unpacker/feature').default var region = require('caniuse-lite/dist/unpacker/region').default -var fs = require('fs') var path = require('path') +var fs = require('fs') var BrowserslistError = require('./error') var IS_SECTION = /^\s*\[(.+)]\s*$/ var CONFIG_PATTERN = /^browserslist-config-/ var SCOPED_CONFIG__PATTERN = /@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/ +var TIME_TO_UPDATE_CANIUSE = 6 * 30 * 24 * 60 * 60 * 1000 var FORMAT = 'Browserslist config should be a string or an array ' + 'of strings with browser queries' var dataTimeChecked = false -var statCache = {} -var configPathCache = {} -var parseConfigCache = {} - +var filenessCache = {} +var configCache = {} function checkExtend(name) { var use = ' Use `dangerousExtend` option to disable.' if (!CONFIG_PATTERN.test(name) && !SCOPED_CONFIG__PATTERN.test(name)) { @@ -37,43 +36,25 @@ function checkExtend(name) { } function isFile(file) { - return fs.existsSync(file) && fs.statSync(file).isFile() -} -function isDirectory(dir) { - return fs.existsSync(dir) && fs.statSync(dir).isDirectory() + if (file in filenessCache) { + return filenessCache[file] + } + var result = fs.existsSync(file) && fs.statSync(file).isFile() + if (!process.env.BROWSERSLIST_DISABLE_CACHE) { + filenessCache[file] = result + } + return result } -function eachParent(file, callback, cache) { - var loc = path.resolve(file) - var pathsForCacheResult = [] - var result +function eachParent(file, callback) { + var dir = isFile(file) ? path.dirname(file) : file + var loc = path.resolve(dir) do { - if (!pathInRoot(loc)) { - break - } - if (cache && loc in cache) { - result = cache[loc] - break - } - pathsForCacheResult.push(loc) - - if (!isDirectory(loc)) { - continue - } - - var locResult = callback(loc) - if (typeof locResult !== 'undefined') { - result = locResult - break - } + if (!pathInRoot(loc)) break + var result = callback(loc) + if (typeof result !== 'undefined') return result } while (loc !== (loc = path.dirname(loc))) - - if (cache && !process.env.BROWSERSLIST_DISABLE_CACHE) { - pathsForCacheResult.forEach(function (cachePath) { - cache[cachePath] = result - }) - } - return result + return undefined } function pathInRoot(p) { @@ -123,21 +104,18 @@ function pickEnv(config, opts) { } function parsePackage(file) { - var text = fs - .readFileSync(file) - .toString() - .replace(/^\uFEFF/m, '') - var list - if (text.indexOf('"browserslist"') >= 0) { - list = JSON.parse(text).browserslist - } else if (text.indexOf('"browserlist"') >= 0) { - var config = JSON.parse(text) - if (config.browserlist && !config.browserslist) { - throw new BrowserslistError( - '`browserlist` key instead of `browserslist` in ' + file - ) - } + var config = JSON.parse( + fs + .readFileSync(file) + .toString() + .replace(/^\uFEFF/m, '') + ) + if (config.browserlist && !config.browserslist) { + throw new BrowserslistError( + '`browserlist` key instead of `browserslist` in ' + file + ) } + var list = config.browserslist if (Array.isArray(list) || typeof list === 'string') { list = { defaults: list } } @@ -148,20 +126,6 @@ function parsePackage(file) { return list } -function parsePackageOrReadConfig(file) { - if (file in parseConfigCache) { - return parseConfigCache[file] - } - - var isPackage = path.basename(file) === 'package.json' - var result = isPackage ? parsePackage(file) : module.exports.readConfig(file) - - if (!process.env.BROWSERSLIST_DISABLE_CACHE) { - parseConfigCache[file] = result - } - return result -} - function latestReleaseTime(agents) { var latest = 0 for (var name in agents) { @@ -175,16 +139,6 @@ function latestReleaseTime(agents) { return latest * 1000 } -function getMonthsPassed(date) { - var now = new Date() - var past = new Date(date) - - var years = now.getFullYear() - past.getFullYear() - var months = now.getMonth() - past.getMonth() - - return years * 12 + months -} - function normalizeStats(data, stats) { if (!data) { data = {} @@ -229,9 +183,6 @@ module.exports = { checkExtend(name) } var queries = require(require.resolve(name, { paths: ['.', ctx.path] })) - if (typeof queries === 'object' && queries !== null && queries.__esModule) { - queries = queries.default - } if (queries) { if (Array.isArray(queries)) { return queries @@ -266,14 +217,10 @@ module.exports = { } else if (process.env.BROWSERSLIST_STATS) { stats = process.env.BROWSERSLIST_STATS } else if (opts.path && path.resolve && fs.existsSync) { - stats = eachParent( - opts.path, - function (dir) { - var file = path.join(dir, 'browserslist-stats.json') - return isFile(file) ? file : undefined - }, - statCache - ) + stats = eachParent(opts.path, function (dir) { + var file = path.join(dir, 'browserslist-stats.json') + return isFile(file) ? file : undefined + }) } if (typeof stats === 'string') { try { @@ -290,7 +237,11 @@ module.exports = { return process.env.BROWSERSLIST } else if (opts.config || process.env.BROWSERSLIST_CONFIG) { var file = opts.config || process.env.BROWSERSLIST_CONFIG - return pickEnv(parsePackageOrReadConfig(file), opts) + if (path.basename(file) === 'package.json') { + return pickEnv(parsePackage(file), opts) + } else { + return pickEnv(module.exports.readConfig(file), opts) + } } else if (opts.path) { return pickEnv(module.exports.findConfig(opts.path), opts) } else { @@ -376,66 +327,68 @@ module.exports = { if (!isFile(file)) { throw new BrowserslistError("Can't read " + file + ' config') } - return module.exports.parseConfig(fs.readFileSync(file)) }, - findConfigFile: function findConfigFile(from) { - return eachParent( - from, - function (dir) { - var config = path.join(dir, 'browserslist') - var pkg = path.join(dir, 'package.json') - var rc = path.join(dir, '.browserslistrc') - - var pkgBrowserslist - if (isFile(pkg)) { - try { - pkgBrowserslist = parsePackage(pkg) - } catch (e) { - if (e.name === 'BrowserslistError') throw e - console.warn( - '[Browserslist] Could not parse ' + pkg + '. Ignoring it.' - ) - } - } + findConfig: function findConfig(from) { + from = path.resolve(from) - if (isFile(config) && pkgBrowserslist) { - throw new BrowserslistError( - dir + ' contains both browserslist and package.json with browsers' - ) - } else if (isFile(rc) && pkgBrowserslist) { - throw new BrowserslistError( - dir + - ' contains both .browserslistrc and package.json with browsers' - ) - } else if (isFile(config) && isFile(rc)) { - throw new BrowserslistError( - dir + ' contains both .browserslistrc and browserslist' + var passed = [] + var resolved = eachParent(from, function (dir) { + if (dir in configCache) { + return configCache[dir] + } + + passed.push(dir) + + var config = path.join(dir, 'browserslist') + var pkg = path.join(dir, 'package.json') + var rc = path.join(dir, '.browserslistrc') + + var pkgBrowserslist + if (isFile(pkg)) { + try { + pkgBrowserslist = parsePackage(pkg) + } catch (e) { + if (e.name === 'BrowserslistError') throw e + console.warn( + '[Browserslist] Could not parse ' + pkg + '. Ignoring it.' ) - } else if (isFile(config)) { - return config - } else if (isFile(rc)) { - return rc - } else if (pkgBrowserslist) { - return pkg } - }, - configPathCache - ) - }, - - findConfig: function findConfig(from) { - var configFile = this.findConfigFile(from) + } - return configFile ? parsePackageOrReadConfig(configFile) : undefined + if (isFile(config) && pkgBrowserslist) { + throw new BrowserslistError( + dir + ' contains both browserslist and package.json with browsers' + ) + } else if (isFile(rc) && pkgBrowserslist) { + throw new BrowserslistError( + dir + ' contains both .browserslistrc and package.json with browsers' + ) + } else if (isFile(config) && isFile(rc)) { + throw new BrowserslistError( + dir + ' contains both .browserslistrc and browserslist' + ) + } else if (isFile(config)) { + return module.exports.readConfig(config) + } else if (isFile(rc)) { + return module.exports.readConfig(rc) + } else { + return pkgBrowserslist + } + }) + if (!process.env.BROWSERSLIST_DISABLE_CACHE) { + passed.forEach(function (dir) { + configCache[dir] = resolved + }) + } + return resolved }, clearCaches: function clearCaches() { dataTimeChecked = false - statCache = {} - configPathCache = {} - parseConfigCache = {} + filenessCache = {} + configCache = {} this.cache = {} }, @@ -446,14 +399,11 @@ module.exports = { if (process.env.BROWSERSLIST_IGNORE_OLD_DATA) return var latest = latestReleaseTime(agentsObj) - var monthsPassed = getMonthsPassed(latest) + var halfYearAgo = Date.now() - TIME_TO_UPDATE_CANIUSE - if (latest !== 0 && monthsPassed >= 6) { - var months = monthsPassed + ' ' + (monthsPassed > 1 ? 'months' : 'month') + if (latest !== 0 && latest < halfYearAgo) { console.warn( - 'Browserslist: browsers data (caniuse-lite) is ' + - months + - ' old. Please run:\n' + + 'Browserslist: caniuse-lite is outdated. Please run:\n' + ' npx update-browserslist-db@latest\n' + ' Why you should do it regularly: ' + 'https://github.com/browserslist/update-db#readme' diff --git a/node_modules/browserslist/package.json b/node_modules/browserslist/package.json index 081010ab7..286cecb03 100644 --- a/node_modules/browserslist/package.json +++ b/node_modules/browserslist/package.json @@ -1,6 +1,6 @@ { "name": "browserslist", - "version": "4.25.1", + "version": "4.23.2", "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset", "keywords": [ "caniuse", @@ -25,10 +25,10 @@ "license": "MIT", "repository": "browserslist/browserslist", "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" + "caniuse-lite": "^1.0.30001640", + "electron-to-chromium": "^1.4.820", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.1.0" }, "engines": { "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" diff --git a/node_modules/browserslist/parse.js b/node_modules/browserslist/parse.js index c9d8f45b4..56b534ab4 100644 --- a/node_modules/browserslist/parse.js +++ b/node_modules/browserslist/parse.js @@ -9,7 +9,7 @@ function flatten(array) { } function find(string, predicate) { - for (var max = string.length, n = 1; n <= max; n++) { + for (var n = 1, max = string.length; n <= max; n++) { var parsed = string.substr(-n, n) if (predicate(parsed, n, max)) { return string.slice(0, -n) diff --git a/node_modules/call-bind-apply-helpers/.eslintrc b/node_modules/call-bind-apply-helpers/.eslintrc deleted file mode 100644 index 201e859be..000000000 --- a/node_modules/call-bind-apply-helpers/.eslintrc +++ /dev/null @@ -1,17 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "func-name-matching": 0, - "id-length": 0, - "new-cap": [2, { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - "no-extra-parens": 0, - "no-magic-numbers": 0, - }, -} diff --git a/node_modules/call-bind-apply-helpers/.github/FUNDING.yml b/node_modules/call-bind-apply-helpers/.github/FUNDING.yml deleted file mode 100644 index 0011e9d65..000000000 --- a/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/call-bind-apply-helpers -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/call-bind-apply-helpers/.nycrc b/node_modules/call-bind-apply-helpers/.nycrc deleted file mode 100644 index bdd626ce9..000000000 --- a/node_modules/call-bind-apply-helpers/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/node_modules/call-bind-apply-helpers/CHANGELOG.md b/node_modules/call-bind-apply-helpers/CHANGELOG.md deleted file mode 100644 index 24849428b..000000000 --- a/node_modules/call-bind-apply-helpers/CHANGELOG.md +++ /dev/null @@ -1,30 +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). - -## [v1.0.2](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.1...v1.0.2) - 2025-02-12 - -### Commits - -- [types] improve inferred types [`e6f9586`](https://github.com/ljharb/call-bind-apply-helpers/commit/e6f95860a3c72879cb861a858cdfb8138fbedec1) -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape`, `es-value-fixtures`, `for-each`, `has-strict-mode`, `object-inspect` [`e43d540`](https://github.com/ljharb/call-bind-apply-helpers/commit/e43d5409f97543bfbb11f345d47d8ce4e066d8c1) - -## [v1.0.1](https://github.com/ljharb/call-bind-apply-helpers/compare/v1.0.0...v1.0.1) - 2024-12-08 - -### Commits - -- [types] `reflectApply`: fix types [`4efc396`](https://github.com/ljharb/call-bind-apply-helpers/commit/4efc3965351a4f02cc55e836fa391d3d11ef2ef8) -- [Fix] `reflectApply`: oops, Reflect is not a function [`83cc739`](https://github.com/ljharb/call-bind-apply-helpers/commit/83cc7395de6b79b7730bdf092f1436f0b1263c75) -- [Dev Deps] update `@arethetypeswrong/cli` [`80bd5d3`](https://github.com/ljharb/call-bind-apply-helpers/commit/80bd5d3ae58b4f6b6995ce439dd5a1bcb178a940) - -## v1.0.0 - 2024-12-05 - -### Commits - -- Initial implementation, tests, readme [`7879629`](https://github.com/ljharb/call-bind-apply-helpers/commit/78796290f9b7430c9934d6f33d94ae9bc89fce04) -- Initial commit [`3f1dc16`](https://github.com/ljharb/call-bind-apply-helpers/commit/3f1dc164afc43285631b114a5f9dd9137b2b952f) -- npm init [`081df04`](https://github.com/ljharb/call-bind-apply-helpers/commit/081df048c312fcee400922026f6e97281200a603) -- Only apps should have lockfiles [`5b9ca0f`](https://github.com/ljharb/call-bind-apply-helpers/commit/5b9ca0fe8101ebfaf309c549caac4e0a017ed930) diff --git a/node_modules/call-bind-apply-helpers/LICENSE b/node_modules/call-bind-apply-helpers/LICENSE deleted file mode 100644 index f82f38963..000000000 --- a/node_modules/call-bind-apply-helpers/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Jordan Harband - -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/call-bind-apply-helpers/README.md b/node_modules/call-bind-apply-helpers/README.md deleted file mode 100644 index 8fc0dae1b..000000000 --- a/node_modules/call-bind-apply-helpers/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# call-bind-apply-helpers [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Helper functions around Function call/apply/bind, for use in `call-bind`. - -The only packages that should likely ever use this package directly are `call-bind` and `get-intrinsic`. -Please use `call-bind` unless you have a very good reason not to. - -## Getting started - -```sh -npm install --save call-bind-apply-helpers -``` - -## Usage/Examples - -```js -const assert = require('assert'); -const callBindBasic = require('call-bind-apply-helpers'); - -function f(a, b) { - assert.equal(this, 1); - assert.equal(a, 2); - assert.equal(b, 3); - assert.equal(arguments.length, 2); -} - -const fBound = callBindBasic([f, 1]); - -delete Function.prototype.call; -delete Function.prototype.bind; - -fBound(2, 3); -``` - -## Tests - -Clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/call-bind-apply-helpers -[npm-version-svg]: https://versionbadg.es/ljharb/call-bind-apply-helpers.svg -[deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers.svg -[deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers -[dev-deps-svg]: https://david-dm.org/ljharb/call-bind-apply-helpers/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/call-bind-apply-helpers#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/call-bind-apply-helpers.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/call-bind-apply-helpers.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/call-bind-apply-helpers.svg -[downloads-url]: https://npm-stat.com/charts.html?package=call-bind-apply-helpers -[codecov-image]: https://codecov.io/gh/ljharb/call-bind-apply-helpers/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/call-bind-apply-helpers/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind-apply-helpers -[actions-url]: https://github.com/ljharb/call-bind-apply-helpers/actions diff --git a/node_modules/call-bind-apply-helpers/actualApply.d.ts b/node_modules/call-bind-apply-helpers/actualApply.d.ts deleted file mode 100644 index b87286a21..000000000 --- a/node_modules/call-bind-apply-helpers/actualApply.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Reflect.apply; \ No newline at end of file diff --git a/node_modules/call-bind-apply-helpers/actualApply.js b/node_modules/call-bind-apply-helpers/actualApply.js deleted file mode 100644 index ffa51355d..000000000 --- a/node_modules/call-bind-apply-helpers/actualApply.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -var bind = require('function-bind'); - -var $apply = require('./functionApply'); -var $call = require('./functionCall'); -var $reflectApply = require('./reflectApply'); - -/** @type {import('./actualApply')} */ -module.exports = $reflectApply || bind.call($call, $apply); diff --git a/node_modules/call-bind-apply-helpers/applyBind.d.ts b/node_modules/call-bind-apply-helpers/applyBind.d.ts deleted file mode 100644 index d176c1ab3..000000000 --- a/node_modules/call-bind-apply-helpers/applyBind.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import actualApply from './actualApply'; - -type TupleSplitHead = T['length'] extends N - ? T - : T extends [...infer R, any] - ? TupleSplitHead - : never - -type TupleSplitTail = O['length'] extends N - ? T - : T extends [infer F, ...infer R] - ? TupleSplitTail<[...R], N, [...O, F]> - : never - -type TupleSplit = [TupleSplitHead, TupleSplitTail] - -declare function applyBind(...args: TupleSplit, 2>[1]): ReturnType; - -export = applyBind; \ No newline at end of file diff --git a/node_modules/call-bind-apply-helpers/applyBind.js b/node_modules/call-bind-apply-helpers/applyBind.js deleted file mode 100644 index d2b772314..000000000 --- a/node_modules/call-bind-apply-helpers/applyBind.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -var bind = require('function-bind'); -var $apply = require('./functionApply'); -var actualApply = require('./actualApply'); - -/** @type {import('./applyBind')} */ -module.exports = function applyBind() { - return actualApply(bind, $apply, arguments); -}; diff --git a/node_modules/call-bind-apply-helpers/functionApply.d.ts b/node_modules/call-bind-apply-helpers/functionApply.d.ts deleted file mode 100644 index 1f6e11b3d..000000000 --- a/node_modules/call-bind-apply-helpers/functionApply.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Function.prototype.apply; \ No newline at end of file diff --git a/node_modules/call-bind-apply-helpers/functionApply.js b/node_modules/call-bind-apply-helpers/functionApply.js deleted file mode 100644 index c71df9c2b..000000000 --- a/node_modules/call-bind-apply-helpers/functionApply.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./functionApply')} */ -module.exports = Function.prototype.apply; diff --git a/node_modules/call-bind-apply-helpers/functionCall.d.ts b/node_modules/call-bind-apply-helpers/functionCall.d.ts deleted file mode 100644 index 15e93df35..000000000 --- a/node_modules/call-bind-apply-helpers/functionCall.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Function.prototype.call; \ No newline at end of file diff --git a/node_modules/call-bind-apply-helpers/functionCall.js b/node_modules/call-bind-apply-helpers/functionCall.js deleted file mode 100644 index 7a8d87357..000000000 --- a/node_modules/call-bind-apply-helpers/functionCall.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./functionCall')} */ -module.exports = Function.prototype.call; diff --git a/node_modules/call-bind-apply-helpers/index.d.ts b/node_modules/call-bind-apply-helpers/index.d.ts deleted file mode 100644 index 541516bd0..000000000 --- a/node_modules/call-bind-apply-helpers/index.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -type RemoveFromTuple< - Tuple extends readonly unknown[], - RemoveCount extends number, - Index extends 1[] = [] -> = Index["length"] extends RemoveCount - ? Tuple - : Tuple extends [infer First, ...infer Rest] - ? RemoveFromTuple - : Tuple; - -type ConcatTuples< - Prefix extends readonly unknown[], - Suffix extends readonly unknown[] -> = [...Prefix, ...Suffix]; - -type ExtractFunctionParams = T extends (this: infer TThis, ...args: infer P extends readonly unknown[]) => infer R - ? { thisArg: TThis; params: P; returnType: R } - : never; - -type BindFunction< - T extends (this: any, ...args: any[]) => any, - TThis, - TBoundArgs extends readonly unknown[], - ReceiverBound extends boolean -> = ExtractFunctionParams extends { - thisArg: infer OrigThis; - params: infer P extends readonly unknown[]; - returnType: infer R; -} - ? ReceiverBound extends true - ? (...args: RemoveFromTuple>) => R extends [OrigThis, ...infer Rest] - ? [TThis, ...Rest] // Replace `this` with `thisArg` - : R - : >>( - thisArg: U, - ...args: RemainingArgs - ) => R extends [OrigThis, ...infer Rest] - ? [U, ...ConcatTuples] // Preserve bound args in return type - : R - : never; - -declare function callBind< - const T extends (this: any, ...args: any[]) => any, - Extracted extends ExtractFunctionParams, - const TBoundArgs extends Partial & readonly unknown[], - const TThis extends Extracted["thisArg"] ->( - args: [fn: T, thisArg: TThis, ...boundArgs: TBoundArgs] -): BindFunction; - -declare function callBind< - const T extends (this: any, ...args: any[]) => any, - Extracted extends ExtractFunctionParams, - const TBoundArgs extends Partial & readonly unknown[] ->( - args: [fn: T, ...boundArgs: TBoundArgs] -): BindFunction; - -declare function callBind( - args: [fn: Exclude, ...rest: TArgs] -): never; - -// export as namespace callBind; -export = callBind; diff --git a/node_modules/call-bind-apply-helpers/index.js b/node_modules/call-bind-apply-helpers/index.js deleted file mode 100644 index 2f6dab4c1..000000000 --- a/node_modules/call-bind-apply-helpers/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -var bind = require('function-bind'); -var $TypeError = require('es-errors/type'); - -var $call = require('./functionCall'); -var $actualApply = require('./actualApply'); - -/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */ -module.exports = function callBindBasic(args) { - if (args.length < 1 || typeof args[0] !== 'function') { - throw new $TypeError('a function is required'); - } - return $actualApply(bind, $call, args); -}; diff --git a/node_modules/call-bind-apply-helpers/package.json b/node_modules/call-bind-apply-helpers/package.json deleted file mode 100644 index 923b8be2f..000000000 --- a/node_modules/call-bind-apply-helpers/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "name": "call-bind-apply-helpers", - "version": "1.0.2", - "description": "Helper functions around Function call/apply/bind, for use in `call-bind`", - "main": "index.js", - "exports": { - ".": "./index.js", - "./actualApply": "./actualApply.js", - "./applyBind": "./applyBind.js", - "./functionApply": "./functionApply.js", - "./functionCall": "./functionCall.js", - "./reflectApply": "./reflectApply.js", - "./package.json": "./package.json" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=auto", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "prelint": "evalmd README.md", - "lint": "eslint --ext=.js,.mjs .", - "postlint": "tsc -p . && attw -P", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>=10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/call-bind-apply-helpers.git" - }, - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/call-bind-apply-helpers/issues" - }, - "homepage": "https://github.com/ljharb/call-bind-apply-helpers#readme", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.3", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.2.3", - "@types/for-each": "^0.3.3", - "@types/function-bind": "^1.1.10", - "@types/object-inspect": "^1.13.0", - "@types/tape": "^5.8.1", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "es-value-fixtures": "^1.7.1", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.5", - "has-strict-mode": "^1.1.0", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.4", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/node_modules/call-bind-apply-helpers/reflectApply.d.ts b/node_modules/call-bind-apply-helpers/reflectApply.d.ts deleted file mode 100644 index 6b2ae764c..000000000 --- a/node_modules/call-bind-apply-helpers/reflectApply.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const reflectApply: false | typeof Reflect.apply; - -export = reflectApply; diff --git a/node_modules/call-bind-apply-helpers/reflectApply.js b/node_modules/call-bind-apply-helpers/reflectApply.js deleted file mode 100644 index 3d03caa69..000000000 --- a/node_modules/call-bind-apply-helpers/reflectApply.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./reflectApply')} */ -module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply; diff --git a/node_modules/call-bind-apply-helpers/test/index.js b/node_modules/call-bind-apply-helpers/test/index.js deleted file mode 100644 index 1cdc89ed4..000000000 --- a/node_modules/call-bind-apply-helpers/test/index.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict'; - -var callBind = require('../'); -var hasStrictMode = require('has-strict-mode')(); -var forEach = require('for-each'); -var inspect = require('object-inspect'); -var v = require('es-value-fixtures'); - -var test = require('tape'); - -test('callBindBasic', function (t) { - forEach(v.nonFunctions, function (nonFunction) { - t['throws']( - // @ts-expect-error - function () { callBind([nonFunction]); }, - TypeError, - inspect(nonFunction) + ' is not a function' - ); - }); - - var sentinel = { sentinel: true }; - /** @type {(this: T, a: A, b: B) => [T | undefined, A, B]} */ - var func = function (a, b) { - // eslint-disable-next-line no-invalid-this - return [!hasStrictMode && this === global ? undefined : this, a, b]; - }; - t.equal(func.length, 2, 'original function length is 2'); - - /** type {(thisArg: unknown, a: number, b: number) => [unknown, number, number]} */ - var bound = callBind([func]); - /** type {((a: number, b: number) => [typeof sentinel, typeof a, typeof b])} */ - var boundR = callBind([func, sentinel]); - /** type {((b: number) => [typeof sentinel, number, typeof b])} */ - var boundArg = callBind([func, sentinel, /** @type {const} */ (1)]); - - // @ts-expect-error - t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with no args'); - - // @ts-expect-error - t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args'); - // @ts-expect-error - t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func too few args'); - // @ts-expect-error - t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args'); - // @ts-expect-error - t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args'); - - t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args'); - t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with right args'); - t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args'); - t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg'); - - // @ts-expect-error - t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args'); - // @ts-expect-error - t.deepEqual(bound(1, 2, 3, 4), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args'); - // @ts-expect-error - t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args'); - // @ts-expect-error - t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args'); - - t.end(); -}); diff --git a/node_modules/call-bind-apply-helpers/tsconfig.json b/node_modules/call-bind-apply-helpers/tsconfig.json deleted file mode 100644 index aef999308..000000000 --- a/node_modules/call-bind-apply-helpers/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "compilerOptions": { - "target": "es2021", - }, - "exclude": [ - "coverage", - ], -} \ No newline at end of file diff --git a/node_modules/call-bind/CHANGELOG.md b/node_modules/call-bind/CHANGELOG.md index be0de99f1..c653f701a 100644 --- a/node_modules/call-bind/CHANGELOG.md +++ b/node_modules/call-bind/CHANGELOG.md @@ -5,19 +5,6 @@ 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). -## [v1.0.8](https://github.com/ljharb/call-bind/compare/v1.0.7...v1.0.8) - 2024-12-05 - -### Commits - -- [Refactor] extract out some helpers and avoid get-intrinsic usage [`407fd5e`](https://github.com/ljharb/call-bind/commit/407fd5eec34ec58394522a6ce3badfa4788fd5ae) -- [Refactor] replace code with extracted `call-bind-apply-helpers` [`81018fb`](https://github.com/ljharb/call-bind/commit/81018fb78902ff5acbc6c09300780e97f0db6a34) -- [Tests] use `set-function-length/env` [`0fc311d`](https://github.com/ljharb/call-bind/commit/0fc311de0e115cfa6b02969b23a42ad45aadf224) -- [actions] split out node 10-20, and 20+ [`77a0cad`](https://github.com/ljharb/call-bind/commit/77a0cad75f83f5b8050dc13baef4fa2cff537fa3) -- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `es-value-fixtures`, `gopd`, `object-inspect`, `tape` [`a145d10`](https://github.com/ljharb/call-bind/commit/a145d10fe847f350e11094f8541848b028ee8c91) -- [Tests] replace `aud` with `npm audit` [`30ca3dd`](https://github.com/ljharb/call-bind/commit/30ca3dd7234648eb029947477d06b17879e10727) -- [Deps] update `set-function-length` [`57c79a3`](https://github.com/ljharb/call-bind/commit/57c79a3666022ea797cc2a4a3b43fe089bc97d1b) -- [Dev Deps] add missing peer dep [`601cfa5`](https://github.com/ljharb/call-bind/commit/601cfa5540066b6206039ceb9496cecbd134ff7b) - ## [v1.0.7](https://github.com/ljharb/call-bind/compare/v1.0.6...v1.0.7) - 2024-02-12 ### Commits diff --git a/node_modules/call-bind/index.js b/node_modules/call-bind/index.js index b64233939..01c5b3d4e 100644 --- a/node_modules/call-bind/index.js +++ b/node_modules/call-bind/index.js @@ -1,22 +1,33 @@ 'use strict'; +var bind = require('function-bind'); +var GetIntrinsic = require('get-intrinsic'); var setFunctionLength = require('set-function-length'); -var $defineProperty = require('es-define-property'); +var $TypeError = require('es-errors/type'); +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); -var callBindBasic = require('call-bind-apply-helpers'); -var applyBind = require('call-bind-apply-helpers/applyBind'); +var $defineProperty = require('es-define-property'); +var $max = GetIntrinsic('%Math.max%'); module.exports = function callBind(originalFunction) { - var func = callBindBasic(arguments); - var adjustedLength = originalFunction.length - (arguments.length - 1); + if (typeof originalFunction !== 'function') { + throw new $TypeError('a function is required'); + } + var func = $reflectApply(bind, $call, arguments); return setFunctionLength( func, - 1 + (adjustedLength > 0 ? adjustedLength : 0), + 1 + $max(0, originalFunction.length - (arguments.length - 1)), true ); }; +var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); +}; + if ($defineProperty) { $defineProperty(module.exports, 'apply', { value: applyBind }); } else { diff --git a/node_modules/call-bind/package.json b/node_modules/call-bind/package.json index 3642a3714..5ba88ff85 100644 --- a/node_modules/call-bind/package.json +++ b/node_modules/call-bind/package.json @@ -1,6 +1,6 @@ { "name": "call-bind", - "version": "1.0.8", + "version": "1.0.7", "description": "Robustly `.call.bind()` a function", "main": "index.js", "exports": { @@ -17,7 +17,7 @@ "pretest": "npm run lint", "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", - "posttest": "npx npm@'>=10.2' audit --production", + "posttest": "aud --production", "version": "auto-changelog && git add CHANGELOG.md", "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" }, @@ -49,27 +49,29 @@ "url": "https://github.com/ljharb/call-bind/issues" }, "homepage": "https://github.com/ljharb/call-bind#readme", - "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, "devDependencies": { - "@ljharb/eslint-config": "^21.1.1", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "es-value-fixtures": "^1.5.0", + "@ljharb/eslint-config": "^21.1.0", + "aud": "^2.0.4", + "auto-changelog": "^2.4.0", + "es-value-fixtures": "^1.4.2", "eslint": "=8.8.0", "evalmd": "^0.0.19", "for-each": "^0.3.3", + "gopd": "^1.0.1", "has-strict-mode": "^1.0.1", "in-publish": "^2.0.1", "npmignore": "^0.3.1", "nyc": "^10.3.2", - "object-inspect": "^1.13.3", + "object-inspect": "^1.13.1", "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0" + "tape": "^5.7.4" + }, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" }, "testling": { "files": "test/index.js" diff --git a/node_modules/call-bind/test/index.js b/node_modules/call-bind/test/index.js index f6d096a70..1fd46689e 100644 --- a/node_modules/call-bind/test/index.js +++ b/node_modules/call-bind/test/index.js @@ -1,6 +1,8 @@ 'use strict'; var callBind = require('../'); +var bind = require('function-bind'); +var gOPD = require('gopd'); var hasStrictMode = require('has-strict-mode')(); var forEach = require('for-each'); var inspect = require('object-inspect'); @@ -12,7 +14,11 @@ var test = require('tape'); * older engines have length nonconfigurable * in io.js v3, it is configurable except on bound functions, hence the .bind() */ -var boundFnsHaveConfigurableLengths = require('set-function-length/env').boundFnsHaveConfigurableLengths; +var functionsHaveConfigurableLengths = !!( + gOPD + && Object.getOwnPropertyDescriptor + && Object.getOwnPropertyDescriptor(bind.call(function () {}), 'length').configurable +); test('callBind', function (t) { forEach(v.nonFunctions, function (nonFunction) { @@ -34,19 +40,19 @@ test('callBind', function (t) { t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args'); var bound = callBind(func); - t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths }); + t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths }); t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with too few args'); t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func with right args'); t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args'); var boundR = callBind(func, sentinel); - t.equal(boundR.length, func.length, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths }); + t.equal(boundR.length, func.length, 'function length is preserved', { skip: !functionsHaveConfigurableLengths }); t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args'); t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args'); t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args'); var boundArg = callBind(func, sentinel, 1); - t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !boundFnsHaveConfigurableLengths }); + t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths }); t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args'); t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg'); t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args'); diff --git a/node_modules/call-bound/.eslintrc b/node_modules/call-bound/.eslintrc deleted file mode 100644 index 2612ed8fe..000000000 --- a/node_modules/call-bound/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "new-cap": [2, { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - }, -} diff --git a/node_modules/call-bound/.github/FUNDING.yml b/node_modules/call-bound/.github/FUNDING.yml deleted file mode 100644 index 2a2a13571..000000000 --- a/node_modules/call-bound/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/call-bound -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/node_modules/call-bound/.nycrc b/node_modules/call-bound/.nycrc deleted file mode 100644 index bdd626ce9..000000000 --- a/node_modules/call-bound/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/node_modules/call-bound/CHANGELOG.md b/node_modules/call-bound/CHANGELOG.md deleted file mode 100644 index 8bde4e9a5..000000000 --- a/node_modules/call-bound/CHANGELOG.md +++ /dev/null @@ -1,42 +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). - -## [v1.0.4](https://github.com/ljharb/call-bound/compare/v1.0.3...v1.0.4) - 2025-03-03 - -### Commits - -- [types] improve types [`e648922`](https://github.com/ljharb/call-bound/commit/e6489222a9e54f350fbf952ceabe51fd8b6027ff) -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape`, `es-value-fixtures`, `for-each`, `has-strict-mode`, `object-inspect` [`a42a5eb`](https://github.com/ljharb/call-bound/commit/a42a5ebe6c1b54fcdc7997c7dc64fdca9e936719) -- [Deps] update `call-bind-apply-helpers`, `get-intrinsic` [`f529eac`](https://github.com/ljharb/call-bound/commit/f529eac132404c17156bbc23ab2297a25d0f20b8) - -## [v1.0.3](https://github.com/ljharb/call-bound/compare/v1.0.2...v1.0.3) - 2024-12-15 - -### Commits - -- [Refactor] use `call-bind-apply-helpers` instead of `call-bind` [`5e0b134`](https://github.com/ljharb/call-bound/commit/5e0b13496df14fb7d05dae9412f088da8d3f75be) -- [Deps] update `get-intrinsic` [`41fc967`](https://github.com/ljharb/call-bound/commit/41fc96732a22c7b7e8f381f93ccc54bb6293be2e) -- [readme] fix example [`79a0137`](https://github.com/ljharb/call-bound/commit/79a0137723f7c6d09c9c05452bbf8d5efb5d6e49) -- [meta] add `sideEffects` flag [`08b07be`](https://github.com/ljharb/call-bound/commit/08b07be7f1c03f67dc6f3cdaf0906259771859f7) - -## [v1.0.2](https://github.com/ljharb/call-bound/compare/v1.0.1...v1.0.2) - 2024-12-10 - -### Commits - -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `gopd` [`e6a5ffe`](https://github.com/ljharb/call-bound/commit/e6a5ffe849368fe4f74dfd6cdeca1b9baa39e8d5) -- [Deps] update `call-bind`, `get-intrinsic` [`2aeb5b5`](https://github.com/ljharb/call-bound/commit/2aeb5b521dc2b2683d1345c753ea1161de2d1c14) -- [types] improve return type [`1a0c9fe`](https://github.com/ljharb/call-bound/commit/1a0c9fe3114471e7ca1f57d104e2efe713bb4871) - -## v1.0.1 - 2024-12-05 - -### Commits - -- Initial implementation, tests, readme, types [`6d94121`](https://github.com/ljharb/call-bound/commit/6d94121a9243602e506334069f7a03189fe3363d) -- Initial commit [`0eae867`](https://github.com/ljharb/call-bound/commit/0eae867334ea025c33e6e91cdecfc9df96680cf9) -- npm init [`71b2479`](https://github.com/ljharb/call-bound/commit/71b2479c6723e0b7d91a6b663613067e98b7b275) -- Only apps should have lockfiles [`c3754a9`](https://github.com/ljharb/call-bound/commit/c3754a949b7f9132b47e2d18c1729889736741eb) -- [actions] skip `npm ls` in node < 10 [`74275a5`](https://github.com/ljharb/call-bound/commit/74275a5186b8caf6309b6b97472bdcb0df4683a8) -- [Dev Deps] add missing peer dep [`1354de8`](https://github.com/ljharb/call-bound/commit/1354de8679413e4ae9c523d85f76fa7a5e032d97) diff --git a/node_modules/call-bound/LICENSE b/node_modules/call-bound/LICENSE deleted file mode 100644 index f82f38963..000000000 --- a/node_modules/call-bound/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Jordan Harband - -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/call-bound/README.md b/node_modules/call-bound/README.md deleted file mode 100644 index a44e43e56..000000000 --- a/node_modules/call-bound/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# call-bound [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`. - -## Getting started - -```sh -npm install --save call-bound -``` - -## Usage/Examples - -```js -const assert = require('assert'); -const callBound = require('call-bound'); - -const slice = callBound('Array.prototype.slice'); - -delete Function.prototype.call; -delete Function.prototype.bind; -delete Array.prototype.slice; - -assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]); -``` - -## Tests - -Clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/call-bound -[npm-version-svg]: https://versionbadg.es/ljharb/call-bound.svg -[deps-svg]: https://david-dm.org/ljharb/call-bound.svg -[deps-url]: https://david-dm.org/ljharb/call-bound -[dev-deps-svg]: https://david-dm.org/ljharb/call-bound/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/call-bound#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/call-bound.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/call-bound.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/call-bound.svg -[downloads-url]: https://npm-stat.com/charts.html?package=call-bound -[codecov-image]: https://codecov.io/gh/ljharb/call-bound/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/call-bound/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bound -[actions-url]: https://github.com/ljharb/call-bound/actions diff --git a/node_modules/call-bound/index.d.ts b/node_modules/call-bound/index.d.ts deleted file mode 100644 index 5562f00ed..000000000 --- a/node_modules/call-bound/index.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -type Intrinsic = typeof globalThis; - -type IntrinsicName = keyof Intrinsic | `%${keyof Intrinsic}%`; - -type IntrinsicPath = IntrinsicName | `${StripPercents}.${string}` | `%${StripPercents}.${string}%`; - -type AllowMissing = boolean; - -type StripPercents = T extends `%${infer U}%` ? U : T; - -type BindMethodPrecise = - F extends (this: infer This, ...args: infer Args) => infer R - ? (obj: This, ...args: Args) => R - : F extends { - (this: infer This1, ...args: infer Args1): infer R1; - (this: infer This2, ...args: infer Args2): infer R2 - } - ? { - (obj: This1, ...args: Args1): R1; - (obj: This2, ...args: Args2): R2 - } - : never - -// Extract method type from a prototype -type GetPrototypeMethod = - (typeof globalThis)[T] extends { prototype: any } - ? M extends keyof (typeof globalThis)[T]['prototype'] - ? (typeof globalThis)[T]['prototype'][M] - : never - : never - -// Get static property/method -type GetStaticMember = - P extends keyof (typeof globalThis)[T] ? (typeof globalThis)[T][P] : never - -// Type that maps string path to actual bound function or value with better precision -type BoundIntrinsic = - S extends `${infer Obj}.prototype.${infer Method}` - ? Obj extends keyof typeof globalThis - ? BindMethodPrecise> - : unknown - : S extends `${infer Obj}.${infer Prop}` - ? Obj extends keyof typeof globalThis - ? GetStaticMember - : unknown - : unknown - -declare function arraySlice(array: readonly T[], start?: number, end?: number): T[]; -declare function arraySlice(array: ArrayLike, start?: number, end?: number): T[]; -declare function arraySlice(array: IArguments, start?: number, end?: number): T[]; - -// Special cases for methods that need explicit typing -interface SpecialCases { - '%Object.prototype.isPrototypeOf%': (thisArg: {}, obj: unknown) => boolean; - '%String.prototype.replace%': { - (str: string, searchValue: string | RegExp, replaceValue: string): string; - (str: string, searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string - }; - '%Object.prototype.toString%': (obj: {}) => string; - '%Object.prototype.hasOwnProperty%': (obj: {}, v: PropertyKey) => boolean; - '%Array.prototype.slice%': typeof arraySlice; - '%Array.prototype.map%': (array: readonly T[], callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any) => U[]; - '%Array.prototype.filter%': (array: readonly T[], predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any) => T[]; - '%Array.prototype.indexOf%': (array: readonly T[], searchElement: T, fromIndex?: number) => number; - '%Function.prototype.apply%': (fn: (...args: A) => R, thisArg: any, args: A) => R; - '%Function.prototype.call%': (fn: (...args: A) => R, thisArg: any, ...args: A) => R; - '%Function.prototype.bind%': (fn: (...args: A) => R, thisArg: any, ...args: A) => (...remainingArgs: A) => R; - '%Promise.prototype.then%': { - (promise: Promise, onfulfilled: (value: T) => R | PromiseLike): Promise; - (promise: Promise, onfulfilled: ((value: T) => R | PromiseLike) | undefined | null, onrejected: (reason: any) => R | PromiseLike): Promise; - }; - '%RegExp.prototype.test%': (regexp: RegExp, str: string) => boolean; - '%RegExp.prototype.exec%': (regexp: RegExp, str: string) => RegExpExecArray | null; - '%Error.prototype.toString%': (error: Error) => string; - '%TypeError.prototype.toString%': (error: TypeError) => string; - '%String.prototype.split%': ( - obj: unknown, - splitter: string | RegExp | { - [Symbol.split](string: string, limit?: number): string[]; - }, - limit?: number | undefined - ) => string[]; -} - -/** - * Returns a bound function for a prototype method, or a value for a static property. - * - * @param name - The name of the intrinsic (e.g. 'Array.prototype.slice') - * @param {AllowMissing} [allowMissing] - Whether to allow missing intrinsics (default: false) - */ -declare function callBound, S extends IntrinsicPath>(name: K, allowMissing?: AllowMissing): SpecialCases[`%${StripPercents}%`]; -declare function callBound, S extends IntrinsicPath>(name: S, allowMissing?: AllowMissing): BoundIntrinsic; - -export = callBound; diff --git a/node_modules/call-bound/index.js b/node_modules/call-bound/index.js deleted file mode 100644 index e9ade749d..000000000 --- a/node_modules/call-bound/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var GetIntrinsic = require('get-intrinsic'); - -var callBindBasic = require('call-bind-apply-helpers'); - -/** @type {(thisArg: string, searchString: string, position?: number) => number} */ -var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]); - -/** @type {import('.')} */ -module.exports = function callBoundIntrinsic(name, allowMissing) { - /* eslint no-extra-parens: 0 */ - - var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing)); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBindBasic(/** @type {const} */ ([intrinsic])); - } - return intrinsic; -}; diff --git a/node_modules/call-bound/package.json b/node_modules/call-bound/package.json deleted file mode 100644 index d542db430..000000000 --- a/node_modules/call-bound/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "name": "call-bound", - "version": "1.0.4", - "description": "Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=auto", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "prelint": "evalmd README.md", - "lint": "eslint --ext=.js,.mjs .", - "postlint": "tsc -p . && attw -P", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>=10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/call-bound.git" - }, - "keywords": [ - "javascript", - "ecmascript", - "es", - "js", - "callbind", - "callbound", - "call", - "bind", - "bound", - "call-bind", - "call-bound", - "function", - "es-abstract" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/call-bound/issues" - }, - "homepage": "https://github.com/ljharb/call-bound#readme", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.4", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.3.0", - "@types/call-bind": "^1.0.5", - "@types/get-intrinsic": "^1.2.3", - "@types/tape": "^5.8.1", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "es-value-fixtures": "^1.7.1", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "has-strict-mode": "^1.1.0", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.4", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/node_modules/call-bound/test/index.js b/node_modules/call-bound/test/index.js deleted file mode 100644 index a2fc9f0f2..000000000 --- a/node_modules/call-bound/test/index.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict'; - -var test = require('tape'); - -var callBound = require('../'); - -/** @template {true} T @template U @typedef {T extends U ? T : never} AssertType */ - -test('callBound', function (t) { - // static primitive - t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself'); - t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself'); - - // static non-function object - t.equal(callBound('Array.prototype'), Array.prototype, 'Array.prototype yields itself'); - t.equal(callBound('%Array.prototype%'), Array.prototype, '%Array.prototype% yields itself'); - t.equal(callBound('Array.constructor'), Array.constructor, 'Array.constructor yields itself'); - t.equal(callBound('%Array.constructor%'), Array.constructor, '%Array.constructor% yields itself'); - - // static function - t.equal(callBound('Date.parse'), Date.parse, 'Date.parse yields itself'); - t.equal(callBound('%Date.parse%'), Date.parse, '%Date.parse% yields itself'); - - // prototype primitive - t.equal(callBound('Error.prototype.message'), Error.prototype.message, 'Error.prototype.message yields itself'); - t.equal(callBound('%Error.prototype.message%'), Error.prototype.message, '%Error.prototype.message% yields itself'); - - var x = callBound('Object.prototype.toString'); - var y = callBound('%Object.prototype.toString%'); - - // prototype function - t.notEqual(x, Object.prototype.toString, 'Object.prototype.toString does not yield itself'); - t.notEqual(y, Object.prototype.toString, '%Object.prototype.toString% does not yield itself'); - t.equal(x(true), Object.prototype.toString.call(true), 'call-bound Object.prototype.toString calls into the original'); - t.equal(y(true), Object.prototype.toString.call(true), 'call-bound %Object.prototype.toString% calls into the original'); - - t['throws']( - // @ts-expect-error - function () { callBound('does not exist'); }, - SyntaxError, - 'nonexistent intrinsic throws' - ); - t['throws']( - // @ts-expect-error - function () { callBound('does not exist', true); }, - SyntaxError, - 'allowMissing arg still throws for unknown intrinsic' - ); - - t.test('real but absent intrinsic', { skip: typeof WeakRef !== 'undefined' }, function (st) { - st['throws']( - function () { callBound('WeakRef'); }, - TypeError, - 'real but absent intrinsic throws' - ); - st.equal(callBound('WeakRef', true), undefined, 'allowMissing arg avoids exception'); - st.end(); - }); - - t.end(); -}); diff --git a/node_modules/call-bound/tsconfig.json b/node_modules/call-bound/tsconfig.json deleted file mode 100644 index 8976d98b8..000000000 --- a/node_modules/call-bound/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "compilerOptions": { - "target": "ESNext", - "lib": ["es2024"], - }, - "exclude": [ - "coverage", - ], -} diff --git a/node_modules/caniuse-lite/data/agents.js b/node_modules/caniuse-lite/data/agents.js index 6cbdd808f..e70defc5e 100644 --- a/node_modules/caniuse-lite/data/agents.js +++ b/node_modules/caniuse-lite/data/agents.js @@ -1 +1 @@ -module.exports={A:{A:{K:0,D:0,E:0.0395412,F:0.0263608,A:0.0131804,B:0.395412,rC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","rC","K","D","E","F","A","B","","",""],E:"IE",F:{rC:962323200,K:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968000}},B:{A:{"0":0,C:0,L:0,M:0,G:0,N:0,O:0,P:0.084984,Q:0,H:0,R:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0.010623,c:0,d:0,e:0,f:0.007082,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0.003541,s:0.042492,t:0,u:0,v:0,w:0.007082,x:0.010623,y:0.003541,z:0,AB:0.003541,BB:0.003541,CB:0.031869,DB:0.007082,EB:0.014164,FB:0.003541,GB:0.007082,HB:0.007082,IB:0.014164,JB:0.014164,KB:0.010623,LB:0.010623,MB:0.014164,NB:0.031869,OB:0.017705,PB:0.021246,QB:0.056656,RB:0.053115,SB:0.584265,TB:3.30021,I:0.265575},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","L","M","G","N","O","P","Q","H","R","S","T","U","V","W","X","Y","Z","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","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","I","","",""],E:"Edge",F:{"0":1694649600,C:1438128000,L:1447286400,M:1470096000,G:1491868800,N:1508198400,O:1525046400,P:1542067200,Q:1579046400,H:1581033600,R:1586736000,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:1611360000,Y:1614816000,Z:1618358400,a:1622073600,b:1626912000,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,o:1661990400,p:1664755200,q:1666915200,r:1670198400,s:1673481600,t:1675900800,u:1678665600,v:1680825600,w:1683158400,x:1685664000,y:1689897600,z:1692576000,AB:1697155200,BB:1698969600,CB:1701993600,DB:1706227200,EB:1708732800,FB:1711152000,GB:1713398400,HB:1715990400,IB:1718841600,JB:1721865600,KB:1724371200,LB:1726704000,MB:1729123200,NB:1731542400,OB:1737417600,PB:1740614400,QB:1741219200,RB:1743984000,SB:1746316800,TB:1748476800,I:1750896000},D:{C:"ms",L:"ms",M:"ms",G:"ms",N:"ms",O:"ms",P:"ms"}},C:{A:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,sC:0,PC:0,J:0,UB:0,K:0,D:0,E:0,F:0,A:0,B:0.046033,C:0,L:0,M:0,G:0,N:0,O:0,P:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0.024787,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,QC:0.007082,"0B":0,RC:0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:0,BC:0,CC:0,DC:0,EC:0,FC:0,GC:0,HC:0.010623,Q:0,H:0,R:0,SC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:0.003541,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0,s:0.007082,t:0,u:0,v:0,w:0,x:0,y:0.233706,z:0,AB:0.113312,BB:0,CB:0.003541,DB:0,EB:0,FB:0,GB:0,HB:0.014164,IB:0,JB:0.003541,KB:0.077902,LB:0,MB:0,NB:0,OB:0.003541,PB:0.007082,QB:0.007082,RB:0.010623,SB:0.021246,TB:0.017705,I:0.07082,TC:1.12958,IC:0.159345,UC:0,tC:0,uC:0,vC:0,wC:0},B:"moz",C:["sC","PC","vC","wC","J","UB","K","D","E","F","A","B","C","L","M","G","N","O","P","VB","1","2","3","4","5","6","7","8","9","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","QC","0B","RC","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","Q","H","R","SC","S","T","U","V","W","X","Y","Z","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","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","I","TC","IC","UC","tC","uC"],E:"Firefox",F:{"0":1693267200,"1":1361232000,"2":1364860800,"3":1368489600,"4":1372118400,"5":1375747200,"6":1379376000,"7":1386633600,"8":1391472000,"9":1395100800,sC:1161648000,PC:1213660800,vC:1246320000,wC:1264032000,J:1300752000,UB:1308614400,K:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968000,C:1331596800,L:1335225600,M:1338854400,G:1342483200,N:1346112000,O:1349740800,P:1353628800,VB:1357603200,WB:1398729600,XB:1402358400,YB:1405987200,ZB:1409616000,aB:1413244800,bB:1417392000,cB:1421107200,dB:1424736000,eB:1428278400,fB:1431475200,gB:1435881600,hB:1439251200,iB:1442880000,jB:1446508800,kB:1450137600,lB:1453852800,mB:1457395200,nB:1461628800,oB:1465257600,pB:1470096000,qB:1474329600,rB:1479168000,sB:1485216000,tB:1488844800,uB:1492560000,vB:1497312000,wB:1502150400,xB:1506556800,yB:1510617600,zB:1516665600,QC:1520985600,"0B":1525824000,RC:1529971200,"1B":1536105600,"2B":1540252800,"3B":1544486400,"4B":1548720000,"5B":1552953600,"6B":1558396800,"7B":1562630400,"8B":1567468800,"9B":1571788800,AC:1575331200,BC:1578355200,CC:1581379200,DC:1583798400,EC:1586304000,FC:1588636800,GC:1591056000,HC:1593475200,Q:1595894400,H:1598313600,R:1600732800,SC:1603152000,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392000,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536000,k:1653955200,l:1656374400,m:1658793600,n:1661212800,o:1663632000,p:1666051200,q:1668470400,r:1670889600,s:1673913600,t:1676332800,u:1678752000,v:1681171200,w:1683590400,x:1686009600,y:1688428800,z:1690848000,AB:1695686400,BB:1698105600,CB:1700524800,DB:1702944000,EB:1705968000,FB:1708387200,GB:1710806400,HB:1713225600,IB:1715644800,JB:1718064000,KB:1720483200,LB:1722902400,MB:1725321600,NB:1727740800,OB:1730160000,PB:1732579200,QB:1736208000,RB:1738627200,SB:1741046400,TB:1743465600,I:1745884800,TC:1748304000,IC:1750723200,UC:null,tC:null,uC:null}},D:{A:{"0":0.063738,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,J:0,UB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:0,G:0,N:0,O:0,P:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0.003541,gB:0.007082,hB:0.007082,iB:0.007082,jB:0.007082,kB:0.007082,lB:0.007082,mB:0.010623,nB:0.007082,oB:0.010623,pB:0.017705,qB:0.017705,rB:0.010623,sB:0.007082,tB:0.010623,uB:0.010623,vB:0.007082,wB:0.007082,xB:0.017705,yB:0.007082,zB:0.010623,QC:0.007082,"0B":0.007082,RC:0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0.021246,"6B":0,"7B":0.003541,"8B":0.010623,"9B":0.017705,AC:0,BC:0.003541,CC:0.007082,DC:0.007082,EC:0.003541,FC:0.003541,GC:0.007082,HC:0.010623,Q:0.060197,H:0.010623,R:0.017705,S:0.028328,T:0.003541,U:0.010623,V:0.014164,W:0.03541,X:0.010623,Y:0.007082,Z:0.007082,a:0.024787,b:0.010623,c:0.010623,d:0.014164,e:0.003541,f:0.007082,g:0.017705,h:0.042492,i:0.017705,j:0.007082,k:0.021246,l:0.014164,m:0.07082,n:0.03541,o:0.017705,p:0.017705,q:0.021246,r:0.03541,s:0.754233,t:0.021246,u:0.031869,v:1.86257,w:0.095607,x:0.046033,y:0.024787,z:0.134558,AB:0.056656,BB:0.042492,CB:0.049574,DB:0.074361,EB:0.07082,FB:0.162886,GB:0.067279,HB:0.417838,IB:0.067279,JB:0.031869,KB:0.081443,LB:0.056656,MB:0.095607,NB:0.570101,OB:0.329313,PB:0.332854,QB:0.237247,RB:0.350559,SB:1.99358,TB:11.2781,I:0.449707,TC:0.014164,IC:0,UC:0},B:"webkit",C:["","","","","","","","J","UB","K","D","E","F","A","B","C","L","M","G","N","O","P","VB","1","2","3","4","5","6","7","8","9","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","QC","0B","RC","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","Q","H","R","S","T","U","V","W","X","Y","Z","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","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","I","TC","IC","UC"],E:"Chrome",F:{"0":1694476800,"1":1337040000,"2":1340668800,"3":1343692800,"4":1348531200,"5":1352246400,"6":1357862400,"7":1361404800,"8":1364428800,"9":1369094400,J:1264377600,UB:1274745600,K:1283385600,D:1287619200,E:1291248000,F:1296777600,A:1299542400,B:1303862400,C:1307404800,L:1312243200,M:1316131200,G:1316131200,N:1319500800,O:1323734400,P:1328659200,VB:1332892800,WB:1374105600,XB:1376956800,YB:1384214400,ZB:1389657600,aB:1392940800,bB:1397001600,cB:1400544000,dB:1405468800,eB:1409011200,fB:1412640000,gB:1416268800,hB:1421798400,iB:1425513600,jB:1429401600,kB:1432080000,lB:1437523200,mB:1441152000,nB:1444780800,oB:1449014400,pB:1453248000,qB:1456963200,rB:1460592000,sB:1464134400,tB:1469059200,uB:1472601600,vB:1476230400,wB:1480550400,xB:1485302400,yB:1489017600,zB:1492560000,QC:1496707200,"0B":1500940800,RC:1504569600,"1B":1508198400,"2B":1512518400,"3B":1516752000,"4B":1520294400,"5B":1523923200,"6B":1527552000,"7B":1532390400,"8B":1536019200,"9B":1539648000,AC:1543968000,BC:1548720000,CC:1552348800,DC:1555977600,EC:1559606400,FC:1564444800,GC:1568073600,HC:1571702400,Q:1575936000,H:1580860800,R:1586304000,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272000,a:1621987200,b:1626739200,c:1630368000,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512000,k:1650931200,l:1653350400,m:1655769600,n:1659398400,o:1661817600,p:1664236800,q:1666656000,r:1669680000,s:1673308800,t:1675728000,u:1678147200,v:1680566400,w:1682985600,x:1685404800,y:1689724800,z:1692057600,AB:1696896000,BB:1698710400,CB:1701993600,DB:1705968000,EB:1708387200,FB:1710806400,GB:1713225600,HB:1715644800,IB:1718064000,JB:1721174400,KB:1724112000,LB:1726531200,MB:1728950400,NB:1731369600,OB:1736812800,PB:1738627200,QB:1741046400,RB:1743465600,SB:1745884800,TB:1748304000,I:1750723200,TC:null,IC:null,UC:null}},E:{A:{J:0,UB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:0.010623,G:0,xC:0,VC:0,yC:0,zC:0,"0C":0,"1C":0,WC:0,JC:0.007082,KC:0.007082,"2C":0.028328,"3C":0.031869,"4C":0.014164,XC:0.003541,YC:0.007082,LC:0.010623,"5C":0.116853,MC:0.024787,ZC:0.017705,aC:0.014164,bC:0.028328,cC:0.010623,dC:0.017705,"6C":0.166427,NC:0.010623,eC:0.109771,fC:0.014164,gC:0.014164,hC:0.031869,iC:0.056656,"7C":0.169968,OC:0.017705,jC:0.042492,kC:0.021246,lC:0.113312,mC:0.10623,nC:1.26414,oC:0,"8C":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","xC","VC","J","UB","yC","K","zC","D","0C","E","F","1C","A","WC","B","JC","C","KC","L","2C","M","3C","G","4C","XC","YC","LC","5C","MC","ZC","aC","bC","cC","dC","6C","NC","eC","fC","gC","hC","iC","7C","OC","jC","kC","lC","mC","nC","oC","8C",""],E:"Safari",F:{xC:1205798400,VC:1226534400,J:1244419200,UB:1275868800,yC:1311120000,K:1343174400,zC:1382400000,D:1382400000,"0C":1410998400,E:1413417600,F:1443657600,"1C":1458518400,A:1474329600,WC:1490572800,B:1505779200,JC:1522281600,C:1537142400,KC:1553472000,L:1568851200,"2C":1585008000,M:1600214400,"3C":1619395200,G:1632096000,"4C":1635292800,XC:1639353600,YC:1647216000,LC:1652745600,"5C":1658275200,MC:1662940800,ZC:1666569600,aC:1670889600,bC:1674432000,cC:1679875200,dC:1684368000,"6C":1690156800,NC:1695686400,eC:1698192000,fC:1702252800,gC:1705881600,hC:1709596800,iC:1715558400,"7C":1722211200,OC:1726444800,jC:1730073600,kC:1733875200,lC:1737936000,mC:1743379200,nC:1747008000,oC:null,"8C":null}},F:{A:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,F:0,B:0,C:0,G:0,N:0,O:0,P:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0.003541,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0.007082,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:0,BC:0,CC:0,DC:0,EC:0,FC:0,GC:0,HC:0,Q:0,H:0,R:0,SC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0.031869,Z:0.017705,a:0,b:0,c:0,d:0,e:0.028328,f:0,g:0,h:0,i:0,j:0,k:0,l:0.067279,m:0,n:0,o:0,p:0,q:0,r:0,s:0,t:0,u:0,v:0,w:0.003541,x:0,y:0,z:0,"9C":0,AD:0,BD:0,CD:0,JC:0,pC:0,DD:0,KC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","F","9C","AD","BD","CD","B","JC","pC","DD","C","KC","G","N","O","P","VB","1","2","3","4","5","6","7","8","9","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","Q","H","R","SC","S","T","U","V","W","X","Y","Z","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","0","","",""],E:"Opera",F:{"0":1739404800,"1":1393891200,"2":1399334400,"3":1401753600,"4":1405987200,"5":1409616000,"6":1413331200,"7":1417132800,"8":1422316800,"9":1425945600,F:1150761600,"9C":1223424000,AD:1251763200,BD:1267488000,CD:1277942400,B:1292457600,JC:1302566400,pC:1309219200,DD:1323129600,C:1323129600,KC:1352073600,G:1372723200,N:1377561600,O:1381104000,P:1386288000,VB:1390867200,WB:1430179200,XB:1433808000,YB:1438646400,ZB:1442448000,aB:1445904000,bB:1449100800,cB:1454371200,dB:1457308800,eB:1462320000,fB:1465344000,gB:1470096000,hB:1474329600,iB:1477267200,jB:1481587200,kB:1486425600,lB:1490054400,mB:1494374400,nB:1498003200,oB:1502236800,pB:1506470400,qB:1510099200,rB:1515024000,sB:1517961600,tB:1521676800,uB:1525910400,vB:1530144000,wB:1534982400,xB:1537833600,yB:1543363200,zB:1548201600,"0B":1554768000,"1B":1561593600,"2B":1566259200,"3B":1570406400,"4B":1573689600,"5B":1578441600,"6B":1583971200,"7B":1587513600,"8B":1592956800,"9B":1595894400,AC:1600128000,BC:1603238400,CC:1613520000,DC:1612224000,EC:1616544000,FC:1619568000,GC:1623715200,HC:1627948800,Q:1631577600,H:1633392000,R:1635984000,SC:1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152000,Z:1660780800,a:1663113600,b:1668816000,c:1668643200,d:1671062400,e:1675209600,f:1677024000,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:1699920000,o:1699920000,p:1702944000,q:1707264000,r:1710115200,s:1711497600,t:1716336000,u:1719273600,v:1721088000,w:1724284800,x:1727222400,y:1732665600,z:1736294400},D:{F:"o",B:"o",C:"o","9C":"o",AD:"o",BD:"o",CD:"o",JC:"o",pC:"o",DD:"o",KC:"o"}},G:{A:{E:0,VC:0,ED:0,qC:0.00270245,FD:0,GD:0.00540489,HD:0.00540489,ID:0,JD:0.00270245,KD:0.0162147,LD:0.00135122,MD:0.0270245,ND:0.172957,OD:0.00945856,PD:0.00270245,QD:0.0932344,RD:0.00135122,SD:0.00405367,TD:0.00270245,UD:0.0148635,VD:0.0986393,WD:0.036483,XD:0.0256732,XC:0.0229708,YC:0.0297269,LC:0.0324293,YD:0.417528,MC:0.0554001,ZC:0.113503,aC:0.0581026,bC:0.106747,cC:0.024322,dC:0.0432391,ZD:0.522923,NC:0.0283757,eC:0.0499952,fC:0.0391855,gC:0.0554001,hC:0.101342,iC:0.205386,aD:0.537787,OC:0.133771,jC:0.299971,kC:0.158093,lC:0.682368,mC:0.722904,nC:8.47352,oC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","VC","ED","qC","FD","GD","HD","E","ID","JD","KD","LD","MD","ND","OD","PD","QD","RD","SD","TD","UD","VD","WD","XD","XC","YC","LC","YD","MC","ZC","aC","bC","cC","dC","ZD","NC","eC","fC","gC","hC","iC","aD","OC","jC","kC","lC","mC","nC","oC","",""],E:"Safari on iOS",F:{VC:1270252800,ED:1283904000,qC:1299628800,FD:1331078400,GD:1359331200,HD:1394409600,E:1410912000,ID:1413763200,JD:1442361600,KD:1458518400,LD:1473724800,MD:1490572800,ND:1505779200,OD:1522281600,PD:1537142400,QD:1553472000,RD:1568851200,SD:1572220800,TD:1580169600,UD:1585008000,VD:1600214400,WD:1619395200,XD:1632096000,XC:1639353600,YC:1647216000,LC:1652659200,YD:1658275200,MC:1662940800,ZC:1666569600,aC:1670889600,bC:1674432000,cC:1679875200,dC:1684368000,ZD:1690156800,NC:1694995200,eC:1698192000,fC:1702252800,gC:1705881600,hC:1709596800,iC:1715558400,aD:1722211200,OC:1726444800,jC:1730073600,kC:1733875200,lC:1737936000,mC:1743379200,nC:1747008000,oC:null}},H:{A:{bD:0.04},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bD","","",""],E:"Opera Mini",F:{bD:1426464000}},I:{A:{PC:0,J:0,I:0.690007,cD:0,dD:0,eD:0,fD:0,qC:0.000138223,gD:0,hD:0.00055289},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cD","dD","eD","PC","J","fD","qC","gD","hD","I","","",""],E:"Android Browser",F:{cD:1256515200,dD:1274313600,eD:1291593600,PC:1298332800,J:1318896000,fD:1341792000,qC:1374624000,gD:1386547200,hD:1401667200,I:1750723200}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376000,A:1359504000}},K:{A:{A:0,B:0,C:0,H:0.883637,JC:0,pC:0,KC:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","JC","pC","C","KC","H","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752000,JC:1314835200,pC:1318291200,C:1330300800,KC:1349740800,H:1709769600},D:{H:"webkit"}},L:{A:{I:47.8316},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","","",""],E:"Chrome for Android",F:{I:1750723200}},M:{A:{IC:0.316491},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","IC","","",""],E:"Firefox for Android",F:{IC:1750723200}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456000}},O:{A:{LC:0.794457},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","LC","","",""],E:"UC Browser for Android",F:{LC:1710115200},D:{LC:"webkit"}},P:{A:{"1":0,"2":0.0217318,"3":0.0217318,"4":0.0217318,"5":0.0325978,"6":0.0434637,"7":0.0651955,"8":0.119525,"9":1.74941,J:0,iD:0,jD:0,kD:0.0108659,lD:0,mD:0,WC:0,nD:0,oD:0,pD:0,qD:0,rD:0,MC:0,NC:0,OC:0,sD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","J","iD","jD","kD","lD","mD","WC","nD","oD","pD","qD","rD","MC","NC","OC","sD","1","2","3","4","5","6","7","8","9","","",""],E:"Samsung Internet",F:{"1":1677369600,"2":1684454400,"3":1689292800,"4":1697587200,"5":1711497600,"6":1715126400,"7":1717718400,"8":1725667200,"9":1746057600,J:1461024000,iD:1481846400,jD:1509408000,kD:1528329600,lD:1546128000,mD:1554163200,WC:1567900800,nD:1582588800,oD:1593475200,pD:1605657600,qD:1618531200,rD:1629072000,MC:1640736000,NC:1651708800,OC:1659657600,sD:1667260800}},Q:{A:{tD:0.19377},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","tD","","",""],E:"QQ Browser",F:{tD:1710288000}},R:{A:{uD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","uD","","",""],E:"Baidu Browser",F:{uD:1710201600}},S:{A:{vD:0.012918,wD:0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","vD","wD","","",""],E:"KaiOS Browser",F:{vD:1527811200,wD:1631664000}}}; +module.exports={A:{A:{K:0,E:0,F:0.0271533,G:0.0678831,A:0,B:0.529489,bC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bC","K","E","F","G","A","B","","",""],E:"IE",F:{bC:962323200,K:998870400,E:1161129600,F:1237420800,G:1300060800,A:1346716800,B:1381968000}},B:{A:{"1":0.00757,"2":0.011355,"3":0.01514,"4":0.00757,"5":0.00757,"6":0.011355,"7":0.00757,"8":0.01514,"9":0.034065,C:0,L:0,M:0,H:0,N:0,O:0.003785,P:0.041635,Q:0,I:0,R:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0.011355,c:0,d:0,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0.003785,r:0.00757,s:0.064345,t:0.003785,u:0.00757,AB:0.026495,BB:0.064345,CB:0.16654,DB:2.88417,EB:1.57834,FB:0.00757,D:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","L","M","H","N","O","P","Q","I","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","D","","",""],E:"Edge",F:{"1":1680825600,"2":1683158400,"3":1685664000,"4":1689897600,"5":1692576000,"6":1694649600,"7":1697155200,"8":1698969600,"9":1701993600,C:1438128000,L:1447286400,M:1470096000,H:1491868800,N:1508198400,O:1525046400,P:1542067200,Q:1579046400,I:1581033600,R:1586736000,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:1611360000,Y:1614816000,Z:1618358400,a:1622073600,b:1626912000,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,o:1661990400,p:1664755200,q:1666915200,r:1670198400,s:1673481600,t:1675900800,u:1678665600,AB:1706227200,BB:1708732800,CB:1711152000,DB:1713398400,EB:1715990400,FB:1718841600,D:1721865600},D:{C:"ms",L:"ms",M:"ms",H:"ms",N:"ms",O:"ms",P:"ms"}},C:{A:{"0":0,"1":0,"2":0.011355,"3":0,"4":0.397425,"5":0,"6":0.00757,"7":0.079485,"8":0,"9":0.00757,cC:0,DC:0,J:0.003785,GB:0,K:0,E:0,F:0,G:0,A:0,B:0.018925,C:0,L:0,M:0,H:0,N:0,O:0,P:0,HB:0,v:0,w:0,x:0,y:0,z:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0,UB:0,VB:0,WB:0,XB:0,YB:0,ZB:0.00757,aB:0.00757,bB:0.00757,cB:0,dB:0,eB:0,fB:0,gB:0.00757,hB:0,iB:0.05299,jB:0.003785,kB:0.003785,lB:0,mB:0.02271,nB:0,oB:0,EC:0.003785,pB:0,FC:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0.01514,Q:0,I:0,R:0,GC:0,S:0,T:0,U:0,V:0,W:0,X:0.011355,Y:0,Z:0,a:0,b:0,c:0,d:0.003785,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0.011355,m:0.011355,n:0,o:0,p:0,q:0,r:0.003785,s:0.00757,t:0,u:0,AB:0.00757,BB:0.011355,CB:0.01514,DB:0.06813,EB:0.844055,FB:0.738075,D:0.003785,HC:0,IC:0,JC:0,dC:0,eC:0,fC:0},B:"moz",C:["cC","DC","eC","fC","J","GB","K","E","F","G","A","B","C","L","M","H","N","O","P","HB","v","w","x","y","z","0","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","EC","pB","FC","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","Q","I","R","GC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","D","HC","IC","JC","dC"],E:"Firefox",F:{"0":1379376000,"1":1681171200,"2":1683590400,"3":1686009600,"4":1688428800,"5":1690848000,"6":1693267200,"7":1695686400,"8":1698105600,"9":1700524800,cC:1161648000,DC:1213660800,eC:1246320000,fC:1264032000,J:1300752000,GB:1308614400,K:1313452800,E:1317081600,F:1317081600,G:1320710400,A:1324339200,B:1327968000,C:1331596800,L:1335225600,M:1338854400,H:1342483200,N:1346112000,O:1349740800,P:1353628800,HB:1357603200,v:1361232000,w:1364860800,x:1368489600,y:1372118400,z:1375747200,IB:1386633600,JB:1391472000,KB:1395100800,LB:1398729600,MB:1402358400,NB:1405987200,OB:1409616000,PB:1413244800,QB:1417392000,RB:1421107200,SB:1424736000,TB:1428278400,UB:1431475200,VB:1435881600,WB:1439251200,XB:1442880000,YB:1446508800,ZB:1450137600,aB:1453852800,bB:1457395200,cB:1461628800,dB:1465257600,eB:1470096000,fB:1474329600,gB:1479168000,hB:1485216000,iB:1488844800,jB:1492560000,kB:1497312000,lB:1502150400,mB:1506556800,nB:1510617600,oB:1516665600,EC:1520985600,pB:1525824000,FC:1529971200,qB:1536105600,rB:1540252800,sB:1544486400,tB:1548720000,uB:1552953600,vB:1558396800,wB:1562630400,xB:1567468800,yB:1571788800,zB:1575331200,"0B":1578355200,"1B":1581379200,"2B":1583798400,"3B":1586304000,"4B":1588636800,"5B":1591056000,"6B":1593475200,Q:1595894400,I:1598313600,R:1600732800,GC:1603152000,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392000,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536000,k:1653955200,l:1656374400,m:1658793600,n:1661212800,o:1663632000,p:1666051200,q:1668470400,r:1670889600,s:1673913600,t:1676332800,u:1678752000,AB:1702944000,BB:1705968000,CB:1708387200,DB:1710806400,EB:1713225600,FB:1715644800,D:1718064000,HC:1720483200,IC:null,JC:null,dC:null}},D:{A:{"0":0,"1":0.041635,"2":0.09841,"3":0.109765,"4":0.04542,"5":0.230885,"6":0.102195,"7":0.08327,"8":0.09084,"9":0.185465,J:0,GB:0,K:0,E:0,F:0,G:0,A:0,B:0,C:0,L:0,M:0,H:0,N:0,O:0,P:0,HB:0,v:0,w:0,x:0,y:0,z:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0.00757,RB:0,SB:0,TB:0,UB:0.01514,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0.003785,cB:0,dB:0.003785,eB:0.02271,fB:0.026495,gB:0.011355,hB:0,iB:0.003785,jB:0.003785,kB:0,lB:0,mB:0.011355,nB:0,oB:0.003785,EC:0,pB:0,FC:0.003785,qB:0,rB:0.003785,sB:0,tB:0,uB:0.02271,vB:0.00757,wB:0,xB:0.03028,yB:0.064345,zB:0.003785,"0B":0.003785,"1B":0.011355,"2B":0.00757,"3B":0.00757,"4B":0.00757,"5B":0.00757,"6B":0.01514,Q:0.12112,I:0.011355,R:0.02271,S:0.041635,T:0.00757,U:0.011355,V:0.049205,W:0.06813,X:0.01514,Y:0.011355,Z:0.011355,a:0.03785,b:0.018925,c:0.03028,d:0.041635,e:0.011355,f:0.011355,g:0.01514,h:0.071915,i:0.034065,j:0.04542,k:0.06813,l:0.049205,m:0.170325,n:0.094625,o:0.03028,p:0.03785,q:0.03028,r:0.04542,s:1.49507,t:0.026495,u:0.03785,AB:0.389855,BB:0.29523,CB:1.11279,DB:12.6116,EB:4.62527,FB:0.018925,D:0.00757,HC:0,IC:0,JC:0},B:"webkit",C:["","","","","","","J","GB","K","E","F","G","A","B","C","L","M","H","N","O","P","HB","v","w","x","y","z","0","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","EC","pB","FC","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","Q","I","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","D","HC","IC","JC"],E:"Chrome",F:{"0":1357862400,"1":1680566400,"2":1682985600,"3":1685404800,"4":1689724800,"5":1692057600,"6":1694476800,"7":1696896000,"8":1698710400,"9":1701993600,J:1264377600,GB:1274745600,K:1283385600,E:1287619200,F:1291248000,G:1296777600,A:1299542400,B:1303862400,C:1307404800,L:1312243200,M:1316131200,H:1316131200,N:1319500800,O:1323734400,P:1328659200,HB:1332892800,v:1337040000,w:1340668800,x:1343692800,y:1348531200,z:1352246400,IB:1361404800,JB:1364428800,KB:1369094400,LB:1374105600,MB:1376956800,NB:1384214400,OB:1389657600,PB:1392940800,QB:1397001600,RB:1400544000,SB:1405468800,TB:1409011200,UB:1412640000,VB:1416268800,WB:1421798400,XB:1425513600,YB:1429401600,ZB:1432080000,aB:1437523200,bB:1441152000,cB:1444780800,dB:1449014400,eB:1453248000,fB:1456963200,gB:1460592000,hB:1464134400,iB:1469059200,jB:1472601600,kB:1476230400,lB:1480550400,mB:1485302400,nB:1489017600,oB:1492560000,EC:1496707200,pB:1500940800,FC:1504569600,qB:1508198400,rB:1512518400,sB:1516752000,tB:1520294400,uB:1523923200,vB:1527552000,wB:1532390400,xB:1536019200,yB:1539648000,zB:1543968000,"0B":1548720000,"1B":1552348800,"2B":1555977600,"3B":1559606400,"4B":1564444800,"5B":1568073600,"6B":1571702400,Q:1575936000,I:1580860800,R:1586304000,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272000,a:1621987200,b:1626739200,c:1630368000,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512000,k:1650931200,l:1653350400,m:1655769600,n:1659398400,o:1661817600,p:1664236800,q:1666656000,r:1669680000,s:1673308800,t:1675728000,u:1678147200,AB:1705968000,BB:1708387200,CB:1710806400,DB:1713225600,EB:1715644800,FB:1718064000,D:1721174400,HC:null,IC:null,JC:null}},E:{A:{J:0,GB:0,K:0,E:0,F:0.01514,G:0.003785,A:0,B:0,C:0,L:0.00757,M:0.034065,H:0.00757,gC:0,KC:0,hC:0,iC:0,jC:0,kC:0,LC:0,"7B":0.00757,"8B":0.01514,lC:0.064345,mC:0.09084,nC:0.034065,MC:0.011355,NC:0.026495,"9B":0.034065,oC:0.246025,AC:0.03028,OC:0.049205,PC:0.03785,QC:0.09841,RC:0.03028,SC:0.06056,pC:0.34065,BC:0.03785,TC:0.06813,UC:0.08327,VC:0.09841,WC:1.5405,XC:0.185465,YC:0,CC:0,qC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","gC","KC","J","GB","hC","K","iC","E","jC","F","G","kC","A","LC","B","7B","C","8B","L","lC","M","mC","H","nC","MC","NC","9B","oC","AC","OC","PC","QC","RC","SC","pC","BC","TC","UC","VC","WC","XC","YC","CC","qC"],E:"Safari",F:{gC:1205798400,KC:1226534400,J:1244419200,GB:1275868800,hC:1311120000,K:1343174400,iC:1382400000,E:1382400000,jC:1410998400,F:1413417600,G:1443657600,kC:1458518400,A:1474329600,LC:1490572800,B:1505779200,"7B":1522281600,C:1537142400,"8B":1553472000,L:1568851200,lC:1585008000,M:1600214400,mC:1619395200,H:1632096000,nC:1635292800,MC:1639353600,NC:1647216000,"9B":1652745600,oC:1658275200,AC:1662940800,OC:1666569600,PC:1670889600,QC:1674432000,RC:1679875200,SC:1684368000,pC:1690156800,BC:1695686400,TC:1698192000,UC:1702252800,VC:1705881600,WC:1709596800,XC:1715558400,YC:null,CC:null,qC:null}},F:{A:{"0":0,G:0,B:0,C:0,H:0,N:0,O:0,P:0,HB:0,v:0,w:0,x:0,y:0,z:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0,UB:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0.01514,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,Q:0,I:0,R:0,GC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:0,e:0.041635,f:0,g:0,h:0,i:0,j:0,k:0,l:0.071915,m:0,n:0,o:0,p:0.00757,q:0.185465,r:0.01514,s:0.738075,t:0.04542,u:0,rC:0,sC:0,tC:0,uC:0,"7B":0,ZC:0,vC:0,"8B":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","G","rC","sC","tC","uC","B","7B","ZC","vC","C","8B","H","N","O","P","HB","v","w","x","y","z","0","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","Q","I","R","GC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","","",""],E:"Opera",F:{"0":1413331200,G:1150761600,rC:1223424000,sC:1251763200,tC:1267488000,uC:1277942400,B:1292457600,"7B":1302566400,ZC:1309219200,vC:1323129600,C:1323129600,"8B":1352073600,H:1372723200,N:1377561600,O:1381104000,P:1386288000,HB:1390867200,v:1393891200,w:1399334400,x:1401753600,y:1405987200,z:1409616000,IB:1417132800,JB:1422316800,KB:1425945600,LB:1430179200,MB:1433808000,NB:1438646400,OB:1442448000,PB:1445904000,QB:1449100800,RB:1454371200,SB:1457308800,TB:1462320000,UB:1465344000,VB:1470096000,WB:1474329600,XB:1477267200,YB:1481587200,ZB:1486425600,aB:1490054400,bB:1494374400,cB:1498003200,dB:1502236800,eB:1506470400,fB:1510099200,gB:1515024000,hB:1517961600,iB:1521676800,jB:1525910400,kB:1530144000,lB:1534982400,mB:1537833600,nB:1543363200,oB:1548201600,pB:1554768000,qB:1561593600,rB:1566259200,sB:1570406400,tB:1573689600,uB:1578441600,vB:1583971200,wB:1587513600,xB:1592956800,yB:1595894400,zB:1600128000,"0B":1603238400,"1B":1613520000,"2B":1612224000,"3B":1616544000,"4B":1619568000,"5B":1623715200,"6B":1627948800,Q:1631577600,I:1633392000,R:1635984000,GC:1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152000,Z:1660780800,a:1663113600,b:1668816000,c:1668643200,d:1671062400,e:1675209600,f:1677024000,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:1699920000,o:1699920000,p:1702944000,q:1707264000,r:1710115200,s:1711497600,t:1716336000,u:1719273600},D:{G:"o",B:"o",C:"o",rC:"o",sC:"o",tC:"o",uC:"o","7B":"o",ZC:"o",vC:"o","8B":"o"}},G:{A:{F:0,KC:0,wC:0,aC:0.00289868,xC:0.00289868,yC:0.00724669,zC:0.0115947,"0C":0.00289868,"1C":0.00724669,"2C":0.0333348,"3C":0.00579735,"4C":0.0521762,"5C":0.0768149,"6C":0.0144934,"7C":0.00869603,"8C":0.210154,"9C":0.00434801,AD:0.0217401,BD:0.0101454,CD:0.0463788,DD:0.100004,ED:0.123194,FD:0.0594229,MC:0.0652202,NC:0.0739162,"9B":0.0927576,GD:0.83192,AC:0.189863,OC:0.389872,PC:0.189863,QC:0.329,RC:0.0695682,SC:0.140586,HD:1.11744,BC:0.121744,TC:0.198559,UC:0.207255,VC:0.382625,WC:8.67429,XC:0.61307,YC:0,CC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","KC","wC","aC","xC","yC","zC","F","0C","1C","2C","3C","4C","5C","6C","7C","8C","9C","AD","BD","CD","DD","ED","FD","MC","NC","9B","GD","AC","OC","PC","QC","RC","SC","HD","BC","TC","UC","VC","WC","XC","YC","CC",""],E:"Safari on iOS",F:{KC:1270252800,wC:1283904000,aC:1299628800,xC:1331078400,yC:1359331200,zC:1394409600,F:1410912000,"0C":1413763200,"1C":1442361600,"2C":1458518400,"3C":1473724800,"4C":1490572800,"5C":1505779200,"6C":1522281600,"7C":1537142400,"8C":1553472000,"9C":1568851200,AD:1572220800,BD:1580169600,CD:1585008000,DD:1600214400,ED:1619395200,FD:1632096000,MC:1639353600,NC:1647216000,"9B":1652659200,GD:1658275200,AC:1662940800,OC:1666569600,PC:1670889600,QC:1674432000,RC:1679875200,SC:1684368000,HD:1690156800,BC:1694995200,TC:1698192000,UC:1702252800,VC:1705881600,WC:1709596800,XC:1715558400,YC:null,CC:null}},H:{A:{ID:0.1},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","ID","","",""],E:"Opera Mini",F:{ID:1426464000}},I:{A:{DC:0,J:0.000065879,D:0.656352,JD:0,KD:0,LD:0,MD:0.000131758,aC:0.000395274,ND:0,OD:0.00144934},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","JD","KD","LD","DC","J","MD","aC","ND","OD","D","","",""],E:"Android Browser",F:{JD:1256515200,KD:1274313600,LD:1291593600,DC:1298332800,J:1318896000,MD:1341792000,aC:1374624000,ND:1386547200,OD:1401667200,D:1721692800}},J:{A:{E:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","E","A","","",""],E:"Blackberry Browser",F:{E:1325376000,A:1359504000}},K:{A:{A:0,B:0,C:0,I:1.2238,"7B":0,ZC:0,"8B":0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","7B","ZC","C","8B","I","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752000,"7B":1314835200,ZC:1318291200,C:1330300800,"8B":1349740800,I:1709769600},D:{I:"webkit"}},L:{A:{D:42.0636},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","","",""],E:"Chrome for Android",F:{D:1721692800}},M:{A:{D:0.31075},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","","",""],E:"Firefox for Android",F:{D:1718064000}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456000}},O:{A:{"9B":0.913605},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","9B","","",""],E:"UC Browser for Android",F:{"9B":1710115200},D:{"9B":"webkit"}},P:{A:{"0":1.98584,J:0.141071,v:0.0217032,w:0.0542579,x:0.0651095,y:0.119367,z:0.227883,PD:0.0108516,QD:0,RD:0.0325548,SD:0,TD:0,LC:0,UD:0.0108516,VD:0,WD:0.0108516,XD:0,YD:0,AC:0,BC:0.0217032,CC:0.0108516,ZD:0.0217032},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","J","PD","QD","RD","SD","TD","LC","UD","VD","WD","XD","YD","AC","BC","CC","ZD","v","w","x","y","z","0","","",""],E:"Samsung Internet",F:{"0":1715126400,J:1461024000,PD:1481846400,QD:1509408000,RD:1528329600,SD:1546128000,TD:1554163200,LC:1567900800,UD:1582588800,VD:1593475200,WD:1605657600,XD:1618531200,YD:1629072000,AC:1640736000,BC:1651708800,CC:1659657600,ZD:1667260800,v:1677369600,w:1684454400,x:1689292800,y:1697587200,z:1711497600}},Q:{A:{aD:0.292105},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","aD","","",""],E:"QQ Browser",F:{aD:1710288000}},R:{A:{bD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bD","","",""],E:"Baidu Browser",F:{bD:1710201600}},S:{A:{cD:0.08701,dD:0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cD","dD","","",""],E:"KaiOS Browser",F:{cD:1527811200,dD:1631664000}}}; diff --git a/node_modules/caniuse-lite/data/browserVersions.js b/node_modules/caniuse-lite/data/browserVersions.js index f433bacd6..d2fe0b101 100644 --- a/node_modules/caniuse-lite/data/browserVersions.js +++ b/node_modules/caniuse-lite/data/browserVersions.js @@ -1 +1 @@ -module.exports={"0":"117","1":"20","2":"21","3":"22","4":"23","5":"24","6":"25","7":"26","8":"27","9":"28",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"80",I:"138",J:"4",K:"6",L:"13",M:"14",N:"16",O:"17",P:"18",Q:"79",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"105",p:"106",q:"107",r:"108",s:"109",t:"110",u:"111",v:"112",w:"113",x:"114",y:"115",z:"116",AB:"118",BB:"119",CB:"120",DB:"121",EB:"122",FB:"123",GB:"124",HB:"125",IB:"126",JB:"127",KB:"128",LB:"129",MB:"130",NB:"131",OB:"132",PB:"133",QB:"134",RB:"135",SB:"136",TB:"137",UB:"5",VB:"19",WB:"29",XB:"30",YB:"31",ZB:"32",aB:"33",bB:"34",cB:"35",dB:"36",eB:"37",fB:"38",gB:"39",hB:"40",iB:"41",jB:"42",kB:"43",lB:"44",mB:"45",nB:"46",oB:"47",pB:"48",qB:"49",rB:"50",sB:"51",tB:"52",uB:"53",vB:"54",wB:"55",xB:"56",yB:"57",zB:"58","0B":"60","1B":"62","2B":"63","3B":"64","4B":"65","5B":"66","6B":"67","7B":"68","8B":"69","9B":"70",AC:"71",BC:"72",CC:"73",DC:"74",EC:"75",FC:"76",GC:"77",HC:"78",IC:"140",JC:"11.1",KC:"12.1",LC:"15.5",MC:"16.0",NC:"17.0",OC:"18.0",PC:"3",QC:"59",RC:"61",SC:"82",TC:"139",UC:"141",VC:"3.2",WC:"10.1",XC:"15.2-15.3",YC:"15.4",ZC:"16.1",aC:"16.2",bC:"16.3",cC:"16.4",dC:"16.5",eC:"17.1",fC:"17.2",gC:"17.3",hC:"17.4",iC:"17.5",jC:"18.1",kC:"18.2",lC:"18.3",mC:"18.4",nC:"18.5",oC:"26.0",pC:"11.5",qC:"4.2-4.3",rC:"5.5",sC:"2",tC:"142",uC:"143",vC:"3.5",wC:"3.6",xC:"3.1",yC:"5.1",zC:"6.1","0C":"7.1","1C":"9.1","2C":"13.1","3C":"14.1","4C":"15.1","5C":"15.6","6C":"16.6","7C":"17.6","8C":"TP","9C":"9.5-9.6",AD:"10.0-10.1",BD:"10.5",CD:"10.6",DD:"11.6",ED:"4.0-4.1",FD:"5.0-5.1",GD:"6.0-6.1",HD:"7.0-7.1",ID:"8.1-8.4",JD:"9.0-9.2",KD:"9.3",LD:"10.0-10.2",MD:"10.3",ND:"11.0-11.2",OD:"11.3-11.4",PD:"12.0-12.1",QD:"12.2-12.5",RD:"13.0-13.1",SD:"13.2",TD:"13.3",UD:"13.4-13.7",VD:"14.0-14.4",WD:"14.5-14.8",XD:"15.0-15.1",YD:"15.6-15.8",ZD:"16.6-16.7",aD:"17.6-17.7",bD:"all",cD:"2.1",dD:"2.2",eD:"2.3",fD:"4.1",gD:"4.4",hD:"4.4.3-4.4.4",iD:"5.0-5.4",jD:"6.2-6.4",kD:"7.2-7.4",lD:"8.2",mD:"9.2",nD:"11.1-11.2",oD:"12.0",pD:"13.0",qD:"14.0",rD:"15.0",sD:"19.0",tD:"14.9",uD:"13.52",vD:"2.5",wD:"3.0-3.1"}; +module.exports={"0":"25","1":"112","2":"113","3":"114","4":"115","5":"116","6":"117","7":"118","8":"119","9":"120",A:"10",B:"11",C:"12",D:"127",E:"7",F:"8",G:"9",H:"15",I:"80",J:"4",K:"6",L:"13",M:"14",N:"16",O:"17",P:"18",Q:"79",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"105",p:"106",q:"107",r:"108",s:"109",t:"110",u:"111",v:"20",w:"21",x:"22",y:"23",z:"24",AB:"121",BB:"122",CB:"123",DB:"124",EB:"125",FB:"126",GB:"5",HB:"19",IB:"26",JB:"27",KB:"28",LB:"29",MB:"30",NB:"31",OB:"32",PB:"33",QB:"34",RB:"35",SB:"36",TB:"37",UB:"38",VB:"39",WB:"40",XB:"41",YB:"42",ZB:"43",aB:"44",bB:"45",cB:"46",dB:"47",eB:"48",fB:"49",gB:"50",hB:"51",iB:"52",jB:"53",kB:"54",lB:"55",mB:"56",nB:"57",oB:"58",pB:"60",qB:"62",rB:"63",sB:"64",tB:"65",uB:"66",vB:"67",wB:"68",xB:"69",yB:"70",zB:"71","0B":"72","1B":"73","2B":"74","3B":"75","4B":"76","5B":"77","6B":"78","7B":"11.1","8B":"12.1","9B":"15.5",AC:"16.0",BC:"17.0",CC:"18.0",DC:"3",EC:"59",FC:"61",GC:"82",HC:"128",IC:"129",JC:"130",KC:"3.2",LC:"10.1",MC:"15.2-15.3",NC:"15.4",OC:"16.1",PC:"16.2",QC:"16.3",RC:"16.4",SC:"16.5",TC:"17.1",UC:"17.2",VC:"17.3",WC:"17.4",XC:"17.5",YC:"17.6",ZC:"11.5",aC:"4.2-4.3",bC:"5.5",cC:"2",dC:"131",eC:"3.5",fC:"3.6",gC:"3.1",hC:"5.1",iC:"6.1",jC:"7.1",kC:"9.1",lC:"13.1",mC:"14.1",nC:"15.1",oC:"15.6",pC:"16.6",qC:"TP",rC:"9.5-9.6",sC:"10.0-10.1",tC:"10.5",uC:"10.6",vC:"11.6",wC:"4.0-4.1",xC:"5.0-5.1",yC:"6.0-6.1",zC:"7.0-7.1","0C":"8.1-8.4","1C":"9.0-9.2","2C":"9.3","3C":"10.0-10.2","4C":"10.3","5C":"11.0-11.2","6C":"11.3-11.4","7C":"12.0-12.1","8C":"12.2-12.5","9C":"13.0-13.1",AD:"13.2",BD:"13.3",CD:"13.4-13.7",DD:"14.0-14.4",ED:"14.5-14.8",FD:"15.0-15.1",GD:"15.6-15.8",HD:"16.6-16.7",ID:"all",JD:"2.1",KD:"2.2",LD:"2.3",MD:"4.1",ND:"4.4",OD:"4.4.3-4.4.4",PD:"5.0-5.4",QD:"6.2-6.4",RD:"7.2-7.4",SD:"8.2",TD:"9.2",UD:"11.1-11.2",VD:"12.0",WD:"13.0",XD:"14.0",YD:"15.0",ZD:"19.0",aD:"14.9",bD:"13.52",cD:"2.5",dD:"3.0-3.1"}; diff --git a/node_modules/caniuse-lite/data/features.js b/node_modules/caniuse-lite/data/features.js index a1513359b..dbebb83f8 100644 --- a/node_modules/caniuse-lite/data/features.js +++ b/node_modules/caniuse-lite/data/features.js @@ -1 +1 @@ -module.exports={"aac":require("./features/aac"),"abortcontroller":require("./features/abortcontroller"),"ac3-ec3":require("./features/ac3-ec3"),"accelerometer":require("./features/accelerometer"),"addeventlistener":require("./features/addeventlistener"),"alternate-stylesheet":require("./features/alternate-stylesheet"),"ambient-light":require("./features/ambient-light"),"apng":require("./features/apng"),"array-find-index":require("./features/array-find-index"),"array-find":require("./features/array-find"),"array-flat":require("./features/array-flat"),"array-includes":require("./features/array-includes"),"arrow-functions":require("./features/arrow-functions"),"asmjs":require("./features/asmjs"),"async-clipboard":require("./features/async-clipboard"),"async-functions":require("./features/async-functions"),"atob-btoa":require("./features/atob-btoa"),"audio-api":require("./features/audio-api"),"audio":require("./features/audio"),"audiotracks":require("./features/audiotracks"),"autofocus":require("./features/autofocus"),"auxclick":require("./features/auxclick"),"av1":require("./features/av1"),"avif":require("./features/avif"),"background-attachment":require("./features/background-attachment"),"background-clip-text":require("./features/background-clip-text"),"background-img-opts":require("./features/background-img-opts"),"background-position-x-y":require("./features/background-position-x-y"),"background-repeat-round-space":require("./features/background-repeat-round-space"),"background-sync":require("./features/background-sync"),"battery-status":require("./features/battery-status"),"beacon":require("./features/beacon"),"beforeafterprint":require("./features/beforeafterprint"),"bigint":require("./features/bigint"),"blobbuilder":require("./features/blobbuilder"),"bloburls":require("./features/bloburls"),"border-image":require("./features/border-image"),"border-radius":require("./features/border-radius"),"broadcastchannel":require("./features/broadcastchannel"),"brotli":require("./features/brotli"),"calc":require("./features/calc"),"canvas-blending":require("./features/canvas-blending"),"canvas-text":require("./features/canvas-text"),"canvas":require("./features/canvas"),"ch-unit":require("./features/ch-unit"),"chacha20-poly1305":require("./features/chacha20-poly1305"),"channel-messaging":require("./features/channel-messaging"),"childnode-remove":require("./features/childnode-remove"),"classlist":require("./features/classlist"),"client-hints-dpr-width-viewport":require("./features/client-hints-dpr-width-viewport"),"clipboard":require("./features/clipboard"),"colr-v1":require("./features/colr-v1"),"colr":require("./features/colr"),"comparedocumentposition":require("./features/comparedocumentposition"),"console-basic":require("./features/console-basic"),"console-time":require("./features/console-time"),"const":require("./features/const"),"constraint-validation":require("./features/constraint-validation"),"contenteditable":require("./features/contenteditable"),"contentsecuritypolicy":require("./features/contentsecuritypolicy"),"contentsecuritypolicy2":require("./features/contentsecuritypolicy2"),"cookie-store-api":require("./features/cookie-store-api"),"cors":require("./features/cors"),"createimagebitmap":require("./features/createimagebitmap"),"credential-management":require("./features/credential-management"),"cross-document-view-transitions":require("./features/cross-document-view-transitions"),"cryptography":require("./features/cryptography"),"css-all":require("./features/css-all"),"css-anchor-positioning":require("./features/css-anchor-positioning"),"css-animation":require("./features/css-animation"),"css-any-link":require("./features/css-any-link"),"css-appearance":require("./features/css-appearance"),"css-at-counter-style":require("./features/css-at-counter-style"),"css-autofill":require("./features/css-autofill"),"css-backdrop-filter":require("./features/css-backdrop-filter"),"css-background-offsets":require("./features/css-background-offsets"),"css-backgroundblendmode":require("./features/css-backgroundblendmode"),"css-boxdecorationbreak":require("./features/css-boxdecorationbreak"),"css-boxshadow":require("./features/css-boxshadow"),"css-canvas":require("./features/css-canvas"),"css-caret-color":require("./features/css-caret-color"),"css-cascade-layers":require("./features/css-cascade-layers"),"css-cascade-scope":require("./features/css-cascade-scope"),"css-case-insensitive":require("./features/css-case-insensitive"),"css-clip-path":require("./features/css-clip-path"),"css-color-adjust":require("./features/css-color-adjust"),"css-color-function":require("./features/css-color-function"),"css-conic-gradients":require("./features/css-conic-gradients"),"css-container-queries-style":require("./features/css-container-queries-style"),"css-container-queries":require("./features/css-container-queries"),"css-container-query-units":require("./features/css-container-query-units"),"css-containment":require("./features/css-containment"),"css-content-visibility":require("./features/css-content-visibility"),"css-counters":require("./features/css-counters"),"css-crisp-edges":require("./features/css-crisp-edges"),"css-cross-fade":require("./features/css-cross-fade"),"css-default-pseudo":require("./features/css-default-pseudo"),"css-descendant-gtgt":require("./features/css-descendant-gtgt"),"css-deviceadaptation":require("./features/css-deviceadaptation"),"css-dir-pseudo":require("./features/css-dir-pseudo"),"css-display-contents":require("./features/css-display-contents"),"css-element-function":require("./features/css-element-function"),"css-env-function":require("./features/css-env-function"),"css-exclusions":require("./features/css-exclusions"),"css-featurequeries":require("./features/css-featurequeries"),"css-file-selector-button":require("./features/css-file-selector-button"),"css-filter-function":require("./features/css-filter-function"),"css-filters":require("./features/css-filters"),"css-first-letter":require("./features/css-first-letter"),"css-first-line":require("./features/css-first-line"),"css-fixed":require("./features/css-fixed"),"css-focus-visible":require("./features/css-focus-visible"),"css-focus-within":require("./features/css-focus-within"),"css-font-palette":require("./features/css-font-palette"),"css-font-rendering-controls":require("./features/css-font-rendering-controls"),"css-font-stretch":require("./features/css-font-stretch"),"css-gencontent":require("./features/css-gencontent"),"css-gradients":require("./features/css-gradients"),"css-grid-animation":require("./features/css-grid-animation"),"css-grid":require("./features/css-grid"),"css-hanging-punctuation":require("./features/css-hanging-punctuation"),"css-has":require("./features/css-has"),"css-hyphens":require("./features/css-hyphens"),"css-image-orientation":require("./features/css-image-orientation"),"css-image-set":require("./features/css-image-set"),"css-in-out-of-range":require("./features/css-in-out-of-range"),"css-indeterminate-pseudo":require("./features/css-indeterminate-pseudo"),"css-initial-letter":require("./features/css-initial-letter"),"css-initial-value":require("./features/css-initial-value"),"css-lch-lab":require("./features/css-lch-lab"),"css-letter-spacing":require("./features/css-letter-spacing"),"css-line-clamp":require("./features/css-line-clamp"),"css-logical-props":require("./features/css-logical-props"),"css-marker-pseudo":require("./features/css-marker-pseudo"),"css-masks":require("./features/css-masks"),"css-matches-pseudo":require("./features/css-matches-pseudo"),"css-math-functions":require("./features/css-math-functions"),"css-media-interaction":require("./features/css-media-interaction"),"css-media-range-syntax":require("./features/css-media-range-syntax"),"css-media-resolution":require("./features/css-media-resolution"),"css-media-scripting":require("./features/css-media-scripting"),"css-mediaqueries":require("./features/css-mediaqueries"),"css-mixblendmode":require("./features/css-mixblendmode"),"css-module-scripts":require("./features/css-module-scripts"),"css-motion-paths":require("./features/css-motion-paths"),"css-namespaces":require("./features/css-namespaces"),"css-nesting":require("./features/css-nesting"),"css-not-sel-list":require("./features/css-not-sel-list"),"css-nth-child-of":require("./features/css-nth-child-of"),"css-opacity":require("./features/css-opacity"),"css-optional-pseudo":require("./features/css-optional-pseudo"),"css-overflow-anchor":require("./features/css-overflow-anchor"),"css-overflow-overlay":require("./features/css-overflow-overlay"),"css-overflow":require("./features/css-overflow"),"css-overscroll-behavior":require("./features/css-overscroll-behavior"),"css-page-break":require("./features/css-page-break"),"css-paged-media":require("./features/css-paged-media"),"css-paint-api":require("./features/css-paint-api"),"css-placeholder-shown":require("./features/css-placeholder-shown"),"css-placeholder":require("./features/css-placeholder"),"css-print-color-adjust":require("./features/css-print-color-adjust"),"css-read-only-write":require("./features/css-read-only-write"),"css-rebeccapurple":require("./features/css-rebeccapurple"),"css-reflections":require("./features/css-reflections"),"css-regions":require("./features/css-regions"),"css-relative-colors":require("./features/css-relative-colors"),"css-repeating-gradients":require("./features/css-repeating-gradients"),"css-resize":require("./features/css-resize"),"css-revert-value":require("./features/css-revert-value"),"css-rrggbbaa":require("./features/css-rrggbbaa"),"css-scroll-behavior":require("./features/css-scroll-behavior"),"css-scrollbar":require("./features/css-scrollbar"),"css-sel2":require("./features/css-sel2"),"css-sel3":require("./features/css-sel3"),"css-selection":require("./features/css-selection"),"css-shapes":require("./features/css-shapes"),"css-snappoints":require("./features/css-snappoints"),"css-sticky":require("./features/css-sticky"),"css-subgrid":require("./features/css-subgrid"),"css-supports-api":require("./features/css-supports-api"),"css-table":require("./features/css-table"),"css-text-align-last":require("./features/css-text-align-last"),"css-text-box-trim":require("./features/css-text-box-trim"),"css-text-indent":require("./features/css-text-indent"),"css-text-justify":require("./features/css-text-justify"),"css-text-orientation":require("./features/css-text-orientation"),"css-text-spacing":require("./features/css-text-spacing"),"css-text-wrap-balance":require("./features/css-text-wrap-balance"),"css-textshadow":require("./features/css-textshadow"),"css-touch-action":require("./features/css-touch-action"),"css-transitions":require("./features/css-transitions"),"css-unicode-bidi":require("./features/css-unicode-bidi"),"css-unset-value":require("./features/css-unset-value"),"css-variables":require("./features/css-variables"),"css-when-else":require("./features/css-when-else"),"css-widows-orphans":require("./features/css-widows-orphans"),"css-width-stretch":require("./features/css-width-stretch"),"css-writing-mode":require("./features/css-writing-mode"),"css-zoom":require("./features/css-zoom"),"css3-attr":require("./features/css3-attr"),"css3-boxsizing":require("./features/css3-boxsizing"),"css3-colors":require("./features/css3-colors"),"css3-cursors-grab":require("./features/css3-cursors-grab"),"css3-cursors-newer":require("./features/css3-cursors-newer"),"css3-cursors":require("./features/css3-cursors"),"css3-tabsize":require("./features/css3-tabsize"),"currentcolor":require("./features/currentcolor"),"custom-elements":require("./features/custom-elements"),"custom-elementsv1":require("./features/custom-elementsv1"),"customevent":require("./features/customevent"),"datalist":require("./features/datalist"),"dataset":require("./features/dataset"),"datauri":require("./features/datauri"),"date-tolocaledatestring":require("./features/date-tolocaledatestring"),"declarative-shadow-dom":require("./features/declarative-shadow-dom"),"decorators":require("./features/decorators"),"details":require("./features/details"),"deviceorientation":require("./features/deviceorientation"),"devicepixelratio":require("./features/devicepixelratio"),"dialog":require("./features/dialog"),"dispatchevent":require("./features/dispatchevent"),"dnssec":require("./features/dnssec"),"do-not-track":require("./features/do-not-track"),"document-currentscript":require("./features/document-currentscript"),"document-evaluate-xpath":require("./features/document-evaluate-xpath"),"document-execcommand":require("./features/document-execcommand"),"document-policy":require("./features/document-policy"),"document-scrollingelement":require("./features/document-scrollingelement"),"documenthead":require("./features/documenthead"),"dom-manip-convenience":require("./features/dom-manip-convenience"),"dom-range":require("./features/dom-range"),"domcontentloaded":require("./features/domcontentloaded"),"dommatrix":require("./features/dommatrix"),"download":require("./features/download"),"dragndrop":require("./features/dragndrop"),"element-closest":require("./features/element-closest"),"element-from-point":require("./features/element-from-point"),"element-scroll-methods":require("./features/element-scroll-methods"),"eme":require("./features/eme"),"eot":require("./features/eot"),"es5":require("./features/es5"),"es6-class":require("./features/es6-class"),"es6-generators":require("./features/es6-generators"),"es6-module-dynamic-import":require("./features/es6-module-dynamic-import"),"es6-module":require("./features/es6-module"),"es6-number":require("./features/es6-number"),"es6-string-includes":require("./features/es6-string-includes"),"es6":require("./features/es6"),"eventsource":require("./features/eventsource"),"extended-system-fonts":require("./features/extended-system-fonts"),"feature-policy":require("./features/feature-policy"),"fetch":require("./features/fetch"),"fieldset-disabled":require("./features/fieldset-disabled"),"fileapi":require("./features/fileapi"),"filereader":require("./features/filereader"),"filereadersync":require("./features/filereadersync"),"filesystem":require("./features/filesystem"),"flac":require("./features/flac"),"flexbox-gap":require("./features/flexbox-gap"),"flexbox":require("./features/flexbox"),"flow-root":require("./features/flow-root"),"focusin-focusout-events":require("./features/focusin-focusout-events"),"font-family-system-ui":require("./features/font-family-system-ui"),"font-feature":require("./features/font-feature"),"font-kerning":require("./features/font-kerning"),"font-loading":require("./features/font-loading"),"font-size-adjust":require("./features/font-size-adjust"),"font-smooth":require("./features/font-smooth"),"font-unicode-range":require("./features/font-unicode-range"),"font-variant-alternates":require("./features/font-variant-alternates"),"font-variant-numeric":require("./features/font-variant-numeric"),"fontface":require("./features/fontface"),"form-attribute":require("./features/form-attribute"),"form-submit-attributes":require("./features/form-submit-attributes"),"form-validation":require("./features/form-validation"),"forms":require("./features/forms"),"fullscreen":require("./features/fullscreen"),"gamepad":require("./features/gamepad"),"geolocation":require("./features/geolocation"),"getboundingclientrect":require("./features/getboundingclientrect"),"getcomputedstyle":require("./features/getcomputedstyle"),"getelementsbyclassname":require("./features/getelementsbyclassname"),"getrandomvalues":require("./features/getrandomvalues"),"gyroscope":require("./features/gyroscope"),"hardwareconcurrency":require("./features/hardwareconcurrency"),"hashchange":require("./features/hashchange"),"heif":require("./features/heif"),"hevc":require("./features/hevc"),"hidden":require("./features/hidden"),"high-resolution-time":require("./features/high-resolution-time"),"history":require("./features/history"),"html-media-capture":require("./features/html-media-capture"),"html5semantic":require("./features/html5semantic"),"http-live-streaming":require("./features/http-live-streaming"),"http2":require("./features/http2"),"http3":require("./features/http3"),"iframe-sandbox":require("./features/iframe-sandbox"),"iframe-seamless":require("./features/iframe-seamless"),"iframe-srcdoc":require("./features/iframe-srcdoc"),"imagecapture":require("./features/imagecapture"),"ime":require("./features/ime"),"img-naturalwidth-naturalheight":require("./features/img-naturalwidth-naturalheight"),"import-maps":require("./features/import-maps"),"imports":require("./features/imports"),"indeterminate-checkbox":require("./features/indeterminate-checkbox"),"indexeddb":require("./features/indexeddb"),"indexeddb2":require("./features/indexeddb2"),"inline-block":require("./features/inline-block"),"innertext":require("./features/innertext"),"input-autocomplete-onoff":require("./features/input-autocomplete-onoff"),"input-color":require("./features/input-color"),"input-datetime":require("./features/input-datetime"),"input-email-tel-url":require("./features/input-email-tel-url"),"input-event":require("./features/input-event"),"input-file-accept":require("./features/input-file-accept"),"input-file-directory":require("./features/input-file-directory"),"input-file-multiple":require("./features/input-file-multiple"),"input-inputmode":require("./features/input-inputmode"),"input-minlength":require("./features/input-minlength"),"input-number":require("./features/input-number"),"input-pattern":require("./features/input-pattern"),"input-placeholder":require("./features/input-placeholder"),"input-range":require("./features/input-range"),"input-search":require("./features/input-search"),"input-selection":require("./features/input-selection"),"insert-adjacent":require("./features/insert-adjacent"),"insertadjacenthtml":require("./features/insertadjacenthtml"),"internationalization":require("./features/internationalization"),"intersectionobserver-v2":require("./features/intersectionobserver-v2"),"intersectionobserver":require("./features/intersectionobserver"),"intl-pluralrules":require("./features/intl-pluralrules"),"intrinsic-width":require("./features/intrinsic-width"),"jpeg2000":require("./features/jpeg2000"),"jpegxl":require("./features/jpegxl"),"jpegxr":require("./features/jpegxr"),"js-regexp-lookbehind":require("./features/js-regexp-lookbehind"),"json":require("./features/json"),"justify-content-space-evenly":require("./features/justify-content-space-evenly"),"kerning-pairs-ligatures":require("./features/kerning-pairs-ligatures"),"keyboardevent-charcode":require("./features/keyboardevent-charcode"),"keyboardevent-code":require("./features/keyboardevent-code"),"keyboardevent-getmodifierstate":require("./features/keyboardevent-getmodifierstate"),"keyboardevent-key":require("./features/keyboardevent-key"),"keyboardevent-location":require("./features/keyboardevent-location"),"keyboardevent-which":require("./features/keyboardevent-which"),"lazyload":require("./features/lazyload"),"let":require("./features/let"),"link-icon-png":require("./features/link-icon-png"),"link-icon-svg":require("./features/link-icon-svg"),"link-rel-dns-prefetch":require("./features/link-rel-dns-prefetch"),"link-rel-modulepreload":require("./features/link-rel-modulepreload"),"link-rel-preconnect":require("./features/link-rel-preconnect"),"link-rel-prefetch":require("./features/link-rel-prefetch"),"link-rel-preload":require("./features/link-rel-preload"),"link-rel-prerender":require("./features/link-rel-prerender"),"loading-lazy-attr":require("./features/loading-lazy-attr"),"localecompare":require("./features/localecompare"),"magnetometer":require("./features/magnetometer"),"matchesselector":require("./features/matchesselector"),"matchmedia":require("./features/matchmedia"),"mathml":require("./features/mathml"),"maxlength":require("./features/maxlength"),"mdn-css-backdrop-pseudo-element":require("./features/mdn-css-backdrop-pseudo-element"),"mdn-css-unicode-bidi-isolate-override":require("./features/mdn-css-unicode-bidi-isolate-override"),"mdn-css-unicode-bidi-isolate":require("./features/mdn-css-unicode-bidi-isolate"),"mdn-css-unicode-bidi-plaintext":require("./features/mdn-css-unicode-bidi-plaintext"),"mdn-text-decoration-color":require("./features/mdn-text-decoration-color"),"mdn-text-decoration-line":require("./features/mdn-text-decoration-line"),"mdn-text-decoration-shorthand":require("./features/mdn-text-decoration-shorthand"),"mdn-text-decoration-style":require("./features/mdn-text-decoration-style"),"media-fragments":require("./features/media-fragments"),"mediacapture-fromelement":require("./features/mediacapture-fromelement"),"mediarecorder":require("./features/mediarecorder"),"mediasource":require("./features/mediasource"),"menu":require("./features/menu"),"meta-theme-color":require("./features/meta-theme-color"),"meter":require("./features/meter"),"midi":require("./features/midi"),"minmaxwh":require("./features/minmaxwh"),"mp3":require("./features/mp3"),"mpeg-dash":require("./features/mpeg-dash"),"mpeg4":require("./features/mpeg4"),"multibackgrounds":require("./features/multibackgrounds"),"multicolumn":require("./features/multicolumn"),"mutation-events":require("./features/mutation-events"),"mutationobserver":require("./features/mutationobserver"),"namevalue-storage":require("./features/namevalue-storage"),"native-filesystem-api":require("./features/native-filesystem-api"),"nav-timing":require("./features/nav-timing"),"netinfo":require("./features/netinfo"),"notifications":require("./features/notifications"),"object-entries":require("./features/object-entries"),"object-fit":require("./features/object-fit"),"object-observe":require("./features/object-observe"),"object-values":require("./features/object-values"),"objectrtc":require("./features/objectrtc"),"offline-apps":require("./features/offline-apps"),"offscreencanvas":require("./features/offscreencanvas"),"ogg-vorbis":require("./features/ogg-vorbis"),"ogv":require("./features/ogv"),"ol-reversed":require("./features/ol-reversed"),"once-event-listener":require("./features/once-event-listener"),"online-status":require("./features/online-status"),"opus":require("./features/opus"),"orientation-sensor":require("./features/orientation-sensor"),"outline":require("./features/outline"),"pad-start-end":require("./features/pad-start-end"),"page-transition-events":require("./features/page-transition-events"),"pagevisibility":require("./features/pagevisibility"),"passive-event-listener":require("./features/passive-event-listener"),"passkeys":require("./features/passkeys"),"passwordrules":require("./features/passwordrules"),"path2d":require("./features/path2d"),"payment-request":require("./features/payment-request"),"pdf-viewer":require("./features/pdf-viewer"),"permissions-api":require("./features/permissions-api"),"permissions-policy":require("./features/permissions-policy"),"picture-in-picture":require("./features/picture-in-picture"),"picture":require("./features/picture"),"ping":require("./features/ping"),"png-alpha":require("./features/png-alpha"),"pointer-events":require("./features/pointer-events"),"pointer":require("./features/pointer"),"pointerlock":require("./features/pointerlock"),"portals":require("./features/portals"),"prefers-color-scheme":require("./features/prefers-color-scheme"),"prefers-reduced-motion":require("./features/prefers-reduced-motion"),"progress":require("./features/progress"),"promise-finally":require("./features/promise-finally"),"promises":require("./features/promises"),"proximity":require("./features/proximity"),"proxy":require("./features/proxy"),"publickeypinning":require("./features/publickeypinning"),"push-api":require("./features/push-api"),"queryselector":require("./features/queryselector"),"readonly-attr":require("./features/readonly-attr"),"referrer-policy":require("./features/referrer-policy"),"registerprotocolhandler":require("./features/registerprotocolhandler"),"rel-noopener":require("./features/rel-noopener"),"rel-noreferrer":require("./features/rel-noreferrer"),"rellist":require("./features/rellist"),"rem":require("./features/rem"),"requestanimationframe":require("./features/requestanimationframe"),"requestidlecallback":require("./features/requestidlecallback"),"resizeobserver":require("./features/resizeobserver"),"resource-timing":require("./features/resource-timing"),"rest-parameters":require("./features/rest-parameters"),"rtcpeerconnection":require("./features/rtcpeerconnection"),"ruby":require("./features/ruby"),"run-in":require("./features/run-in"),"same-site-cookie-attribute":require("./features/same-site-cookie-attribute"),"screen-orientation":require("./features/screen-orientation"),"script-async":require("./features/script-async"),"script-defer":require("./features/script-defer"),"scrollintoview":require("./features/scrollintoview"),"scrollintoviewifneeded":require("./features/scrollintoviewifneeded"),"sdch":require("./features/sdch"),"selection-api":require("./features/selection-api"),"selectlist":require("./features/selectlist"),"server-timing":require("./features/server-timing"),"serviceworkers":require("./features/serviceworkers"),"setimmediate":require("./features/setimmediate"),"shadowdom":require("./features/shadowdom"),"shadowdomv1":require("./features/shadowdomv1"),"sharedarraybuffer":require("./features/sharedarraybuffer"),"sharedworkers":require("./features/sharedworkers"),"sni":require("./features/sni"),"spdy":require("./features/spdy"),"speech-recognition":require("./features/speech-recognition"),"speech-synthesis":require("./features/speech-synthesis"),"spellcheck-attribute":require("./features/spellcheck-attribute"),"sql-storage":require("./features/sql-storage"),"srcset":require("./features/srcset"),"stream":require("./features/stream"),"streams":require("./features/streams"),"stricttransportsecurity":require("./features/stricttransportsecurity"),"style-scoped":require("./features/style-scoped"),"subresource-bundling":require("./features/subresource-bundling"),"subresource-integrity":require("./features/subresource-integrity"),"svg-css":require("./features/svg-css"),"svg-filters":require("./features/svg-filters"),"svg-fonts":require("./features/svg-fonts"),"svg-fragment":require("./features/svg-fragment"),"svg-html":require("./features/svg-html"),"svg-html5":require("./features/svg-html5"),"svg-img":require("./features/svg-img"),"svg-smil":require("./features/svg-smil"),"svg":require("./features/svg"),"sxg":require("./features/sxg"),"tabindex-attr":require("./features/tabindex-attr"),"template-literals":require("./features/template-literals"),"template":require("./features/template"),"temporal":require("./features/temporal"),"testfeat":require("./features/testfeat"),"text-decoration":require("./features/text-decoration"),"text-emphasis":require("./features/text-emphasis"),"text-overflow":require("./features/text-overflow"),"text-size-adjust":require("./features/text-size-adjust"),"text-stroke":require("./features/text-stroke"),"textcontent":require("./features/textcontent"),"textencoder":require("./features/textencoder"),"tls1-1":require("./features/tls1-1"),"tls1-2":require("./features/tls1-2"),"tls1-3":require("./features/tls1-3"),"touch":require("./features/touch"),"transforms2d":require("./features/transforms2d"),"transforms3d":require("./features/transforms3d"),"trusted-types":require("./features/trusted-types"),"ttf":require("./features/ttf"),"typedarrays":require("./features/typedarrays"),"u2f":require("./features/u2f"),"unhandledrejection":require("./features/unhandledrejection"),"upgradeinsecurerequests":require("./features/upgradeinsecurerequests"),"url-scroll-to-text-fragment":require("./features/url-scroll-to-text-fragment"),"url":require("./features/url"),"urlsearchparams":require("./features/urlsearchparams"),"use-strict":require("./features/use-strict"),"user-select-none":require("./features/user-select-none"),"user-timing":require("./features/user-timing"),"variable-fonts":require("./features/variable-fonts"),"vector-effect":require("./features/vector-effect"),"vibration":require("./features/vibration"),"video":require("./features/video"),"videotracks":require("./features/videotracks"),"view-transitions":require("./features/view-transitions"),"viewport-unit-variants":require("./features/viewport-unit-variants"),"viewport-units":require("./features/viewport-units"),"wai-aria":require("./features/wai-aria"),"wake-lock":require("./features/wake-lock"),"wasm-bigint":require("./features/wasm-bigint"),"wasm-bulk-memory":require("./features/wasm-bulk-memory"),"wasm-extended-const":require("./features/wasm-extended-const"),"wasm-gc":require("./features/wasm-gc"),"wasm-multi-memory":require("./features/wasm-multi-memory"),"wasm-multi-value":require("./features/wasm-multi-value"),"wasm-mutable-globals":require("./features/wasm-mutable-globals"),"wasm-nontrapping-fptoint":require("./features/wasm-nontrapping-fptoint"),"wasm-reference-types":require("./features/wasm-reference-types"),"wasm-relaxed-simd":require("./features/wasm-relaxed-simd"),"wasm-signext":require("./features/wasm-signext"),"wasm-simd":require("./features/wasm-simd"),"wasm-tail-calls":require("./features/wasm-tail-calls"),"wasm-threads":require("./features/wasm-threads"),"wasm":require("./features/wasm"),"wav":require("./features/wav"),"wbr-element":require("./features/wbr-element"),"web-animation":require("./features/web-animation"),"web-app-manifest":require("./features/web-app-manifest"),"web-bluetooth":require("./features/web-bluetooth"),"web-serial":require("./features/web-serial"),"web-share":require("./features/web-share"),"webauthn":require("./features/webauthn"),"webcodecs":require("./features/webcodecs"),"webgl":require("./features/webgl"),"webgl2":require("./features/webgl2"),"webgpu":require("./features/webgpu"),"webhid":require("./features/webhid"),"webkit-user-drag":require("./features/webkit-user-drag"),"webm":require("./features/webm"),"webnfc":require("./features/webnfc"),"webp":require("./features/webp"),"websockets":require("./features/websockets"),"webtransport":require("./features/webtransport"),"webusb":require("./features/webusb"),"webvr":require("./features/webvr"),"webvtt":require("./features/webvtt"),"webworkers":require("./features/webworkers"),"webxr":require("./features/webxr"),"will-change":require("./features/will-change"),"woff":require("./features/woff"),"woff2":require("./features/woff2"),"word-break":require("./features/word-break"),"wordwrap":require("./features/wordwrap"),"x-doc-messaging":require("./features/x-doc-messaging"),"x-frame-options":require("./features/x-frame-options"),"xhr2":require("./features/xhr2"),"xhtml":require("./features/xhtml"),"xhtmlsmil":require("./features/xhtmlsmil"),"xml-serializer":require("./features/xml-serializer"),"zstd":require("./features/zstd")}; +module.exports={"aac":require("./features/aac"),"abortcontroller":require("./features/abortcontroller"),"ac3-ec3":require("./features/ac3-ec3"),"accelerometer":require("./features/accelerometer"),"addeventlistener":require("./features/addeventlistener"),"alternate-stylesheet":require("./features/alternate-stylesheet"),"ambient-light":require("./features/ambient-light"),"apng":require("./features/apng"),"array-find-index":require("./features/array-find-index"),"array-find":require("./features/array-find"),"array-flat":require("./features/array-flat"),"array-includes":require("./features/array-includes"),"arrow-functions":require("./features/arrow-functions"),"asmjs":require("./features/asmjs"),"async-clipboard":require("./features/async-clipboard"),"async-functions":require("./features/async-functions"),"atob-btoa":require("./features/atob-btoa"),"audio-api":require("./features/audio-api"),"audio":require("./features/audio"),"audiotracks":require("./features/audiotracks"),"autofocus":require("./features/autofocus"),"auxclick":require("./features/auxclick"),"av1":require("./features/av1"),"avif":require("./features/avif"),"background-attachment":require("./features/background-attachment"),"background-clip-text":require("./features/background-clip-text"),"background-img-opts":require("./features/background-img-opts"),"background-position-x-y":require("./features/background-position-x-y"),"background-repeat-round-space":require("./features/background-repeat-round-space"),"background-sync":require("./features/background-sync"),"battery-status":require("./features/battery-status"),"beacon":require("./features/beacon"),"beforeafterprint":require("./features/beforeafterprint"),"bigint":require("./features/bigint"),"blobbuilder":require("./features/blobbuilder"),"bloburls":require("./features/bloburls"),"border-image":require("./features/border-image"),"border-radius":require("./features/border-radius"),"broadcastchannel":require("./features/broadcastchannel"),"brotli":require("./features/brotli"),"calc":require("./features/calc"),"canvas-blending":require("./features/canvas-blending"),"canvas-text":require("./features/canvas-text"),"canvas":require("./features/canvas"),"ch-unit":require("./features/ch-unit"),"chacha20-poly1305":require("./features/chacha20-poly1305"),"channel-messaging":require("./features/channel-messaging"),"childnode-remove":require("./features/childnode-remove"),"classlist":require("./features/classlist"),"client-hints-dpr-width-viewport":require("./features/client-hints-dpr-width-viewport"),"clipboard":require("./features/clipboard"),"colr-v1":require("./features/colr-v1"),"colr":require("./features/colr"),"comparedocumentposition":require("./features/comparedocumentposition"),"console-basic":require("./features/console-basic"),"console-time":require("./features/console-time"),"const":require("./features/const"),"constraint-validation":require("./features/constraint-validation"),"contenteditable":require("./features/contenteditable"),"contentsecuritypolicy":require("./features/contentsecuritypolicy"),"contentsecuritypolicy2":require("./features/contentsecuritypolicy2"),"cookie-store-api":require("./features/cookie-store-api"),"cors":require("./features/cors"),"createimagebitmap":require("./features/createimagebitmap"),"credential-management":require("./features/credential-management"),"cryptography":require("./features/cryptography"),"css-all":require("./features/css-all"),"css-anchor-positioning":require("./features/css-anchor-positioning"),"css-animation":require("./features/css-animation"),"css-any-link":require("./features/css-any-link"),"css-appearance":require("./features/css-appearance"),"css-at-counter-style":require("./features/css-at-counter-style"),"css-autofill":require("./features/css-autofill"),"css-backdrop-filter":require("./features/css-backdrop-filter"),"css-background-offsets":require("./features/css-background-offsets"),"css-backgroundblendmode":require("./features/css-backgroundblendmode"),"css-boxdecorationbreak":require("./features/css-boxdecorationbreak"),"css-boxshadow":require("./features/css-boxshadow"),"css-canvas":require("./features/css-canvas"),"css-caret-color":require("./features/css-caret-color"),"css-cascade-layers":require("./features/css-cascade-layers"),"css-cascade-scope":require("./features/css-cascade-scope"),"css-case-insensitive":require("./features/css-case-insensitive"),"css-clip-path":require("./features/css-clip-path"),"css-color-adjust":require("./features/css-color-adjust"),"css-color-function":require("./features/css-color-function"),"css-conic-gradients":require("./features/css-conic-gradients"),"css-container-queries-style":require("./features/css-container-queries-style"),"css-container-queries":require("./features/css-container-queries"),"css-container-query-units":require("./features/css-container-query-units"),"css-containment":require("./features/css-containment"),"css-content-visibility":require("./features/css-content-visibility"),"css-counters":require("./features/css-counters"),"css-crisp-edges":require("./features/css-crisp-edges"),"css-cross-fade":require("./features/css-cross-fade"),"css-default-pseudo":require("./features/css-default-pseudo"),"css-descendant-gtgt":require("./features/css-descendant-gtgt"),"css-deviceadaptation":require("./features/css-deviceadaptation"),"css-dir-pseudo":require("./features/css-dir-pseudo"),"css-display-contents":require("./features/css-display-contents"),"css-element-function":require("./features/css-element-function"),"css-env-function":require("./features/css-env-function"),"css-exclusions":require("./features/css-exclusions"),"css-featurequeries":require("./features/css-featurequeries"),"css-file-selector-button":require("./features/css-file-selector-button"),"css-filter-function":require("./features/css-filter-function"),"css-filters":require("./features/css-filters"),"css-first-letter":require("./features/css-first-letter"),"css-first-line":require("./features/css-first-line"),"css-fixed":require("./features/css-fixed"),"css-focus-visible":require("./features/css-focus-visible"),"css-focus-within":require("./features/css-focus-within"),"css-font-palette":require("./features/css-font-palette"),"css-font-rendering-controls":require("./features/css-font-rendering-controls"),"css-font-stretch":require("./features/css-font-stretch"),"css-gencontent":require("./features/css-gencontent"),"css-gradients":require("./features/css-gradients"),"css-grid-animation":require("./features/css-grid-animation"),"css-grid":require("./features/css-grid"),"css-hanging-punctuation":require("./features/css-hanging-punctuation"),"css-has":require("./features/css-has"),"css-hyphens":require("./features/css-hyphens"),"css-image-orientation":require("./features/css-image-orientation"),"css-image-set":require("./features/css-image-set"),"css-in-out-of-range":require("./features/css-in-out-of-range"),"css-indeterminate-pseudo":require("./features/css-indeterminate-pseudo"),"css-initial-letter":require("./features/css-initial-letter"),"css-initial-value":require("./features/css-initial-value"),"css-lch-lab":require("./features/css-lch-lab"),"css-letter-spacing":require("./features/css-letter-spacing"),"css-line-clamp":require("./features/css-line-clamp"),"css-logical-props":require("./features/css-logical-props"),"css-marker-pseudo":require("./features/css-marker-pseudo"),"css-masks":require("./features/css-masks"),"css-matches-pseudo":require("./features/css-matches-pseudo"),"css-math-functions":require("./features/css-math-functions"),"css-media-interaction":require("./features/css-media-interaction"),"css-media-range-syntax":require("./features/css-media-range-syntax"),"css-media-resolution":require("./features/css-media-resolution"),"css-media-scripting":require("./features/css-media-scripting"),"css-mediaqueries":require("./features/css-mediaqueries"),"css-mixblendmode":require("./features/css-mixblendmode"),"css-module-scripts":require("./features/css-module-scripts"),"css-motion-paths":require("./features/css-motion-paths"),"css-namespaces":require("./features/css-namespaces"),"css-nesting":require("./features/css-nesting"),"css-not-sel-list":require("./features/css-not-sel-list"),"css-nth-child-of":require("./features/css-nth-child-of"),"css-opacity":require("./features/css-opacity"),"css-optional-pseudo":require("./features/css-optional-pseudo"),"css-overflow-anchor":require("./features/css-overflow-anchor"),"css-overflow-overlay":require("./features/css-overflow-overlay"),"css-overflow":require("./features/css-overflow"),"css-overscroll-behavior":require("./features/css-overscroll-behavior"),"css-page-break":require("./features/css-page-break"),"css-paged-media":require("./features/css-paged-media"),"css-paint-api":require("./features/css-paint-api"),"css-placeholder-shown":require("./features/css-placeholder-shown"),"css-placeholder":require("./features/css-placeholder"),"css-print-color-adjust":require("./features/css-print-color-adjust"),"css-read-only-write":require("./features/css-read-only-write"),"css-rebeccapurple":require("./features/css-rebeccapurple"),"css-reflections":require("./features/css-reflections"),"css-regions":require("./features/css-regions"),"css-relative-colors":require("./features/css-relative-colors"),"css-repeating-gradients":require("./features/css-repeating-gradients"),"css-resize":require("./features/css-resize"),"css-revert-value":require("./features/css-revert-value"),"css-rrggbbaa":require("./features/css-rrggbbaa"),"css-scroll-behavior":require("./features/css-scroll-behavior"),"css-scroll-timeline":require("./features/css-scroll-timeline"),"css-scrollbar":require("./features/css-scrollbar"),"css-sel2":require("./features/css-sel2"),"css-sel3":require("./features/css-sel3"),"css-selection":require("./features/css-selection"),"css-shapes":require("./features/css-shapes"),"css-snappoints":require("./features/css-snappoints"),"css-sticky":require("./features/css-sticky"),"css-subgrid":require("./features/css-subgrid"),"css-supports-api":require("./features/css-supports-api"),"css-table":require("./features/css-table"),"css-text-align-last":require("./features/css-text-align-last"),"css-text-box-trim":require("./features/css-text-box-trim"),"css-text-indent":require("./features/css-text-indent"),"css-text-justify":require("./features/css-text-justify"),"css-text-orientation":require("./features/css-text-orientation"),"css-text-spacing":require("./features/css-text-spacing"),"css-text-wrap-balance":require("./features/css-text-wrap-balance"),"css-textshadow":require("./features/css-textshadow"),"css-touch-action":require("./features/css-touch-action"),"css-transitions":require("./features/css-transitions"),"css-unicode-bidi":require("./features/css-unicode-bidi"),"css-unset-value":require("./features/css-unset-value"),"css-variables":require("./features/css-variables"),"css-when-else":require("./features/css-when-else"),"css-widows-orphans":require("./features/css-widows-orphans"),"css-width-stretch":require("./features/css-width-stretch"),"css-writing-mode":require("./features/css-writing-mode"),"css-zoom":require("./features/css-zoom"),"css3-attr":require("./features/css3-attr"),"css3-boxsizing":require("./features/css3-boxsizing"),"css3-colors":require("./features/css3-colors"),"css3-cursors-grab":require("./features/css3-cursors-grab"),"css3-cursors-newer":require("./features/css3-cursors-newer"),"css3-cursors":require("./features/css3-cursors"),"css3-tabsize":require("./features/css3-tabsize"),"currentcolor":require("./features/currentcolor"),"custom-elements":require("./features/custom-elements"),"custom-elementsv1":require("./features/custom-elementsv1"),"customevent":require("./features/customevent"),"datalist":require("./features/datalist"),"dataset":require("./features/dataset"),"datauri":require("./features/datauri"),"date-tolocaledatestring":require("./features/date-tolocaledatestring"),"declarative-shadow-dom":require("./features/declarative-shadow-dom"),"decorators":require("./features/decorators"),"details":require("./features/details"),"deviceorientation":require("./features/deviceorientation"),"devicepixelratio":require("./features/devicepixelratio"),"dialog":require("./features/dialog"),"dispatchevent":require("./features/dispatchevent"),"dnssec":require("./features/dnssec"),"do-not-track":require("./features/do-not-track"),"document-currentscript":require("./features/document-currentscript"),"document-evaluate-xpath":require("./features/document-evaluate-xpath"),"document-execcommand":require("./features/document-execcommand"),"document-policy":require("./features/document-policy"),"document-scrollingelement":require("./features/document-scrollingelement"),"documenthead":require("./features/documenthead"),"dom-manip-convenience":require("./features/dom-manip-convenience"),"dom-range":require("./features/dom-range"),"domcontentloaded":require("./features/domcontentloaded"),"dommatrix":require("./features/dommatrix"),"download":require("./features/download"),"dragndrop":require("./features/dragndrop"),"element-closest":require("./features/element-closest"),"element-from-point":require("./features/element-from-point"),"element-scroll-methods":require("./features/element-scroll-methods"),"eme":require("./features/eme"),"eot":require("./features/eot"),"es5":require("./features/es5"),"es6-class":require("./features/es6-class"),"es6-generators":require("./features/es6-generators"),"es6-module-dynamic-import":require("./features/es6-module-dynamic-import"),"es6-module":require("./features/es6-module"),"es6-number":require("./features/es6-number"),"es6-string-includes":require("./features/es6-string-includes"),"es6":require("./features/es6"),"eventsource":require("./features/eventsource"),"extended-system-fonts":require("./features/extended-system-fonts"),"feature-policy":require("./features/feature-policy"),"fetch":require("./features/fetch"),"fieldset-disabled":require("./features/fieldset-disabled"),"fileapi":require("./features/fileapi"),"filereader":require("./features/filereader"),"filereadersync":require("./features/filereadersync"),"filesystem":require("./features/filesystem"),"flac":require("./features/flac"),"flexbox-gap":require("./features/flexbox-gap"),"flexbox":require("./features/flexbox"),"flow-root":require("./features/flow-root"),"focusin-focusout-events":require("./features/focusin-focusout-events"),"font-family-system-ui":require("./features/font-family-system-ui"),"font-feature":require("./features/font-feature"),"font-kerning":require("./features/font-kerning"),"font-loading":require("./features/font-loading"),"font-size-adjust":require("./features/font-size-adjust"),"font-smooth":require("./features/font-smooth"),"font-unicode-range":require("./features/font-unicode-range"),"font-variant-alternates":require("./features/font-variant-alternates"),"font-variant-numeric":require("./features/font-variant-numeric"),"fontface":require("./features/fontface"),"form-attribute":require("./features/form-attribute"),"form-submit-attributes":require("./features/form-submit-attributes"),"form-validation":require("./features/form-validation"),"forms":require("./features/forms"),"fullscreen":require("./features/fullscreen"),"gamepad":require("./features/gamepad"),"geolocation":require("./features/geolocation"),"getboundingclientrect":require("./features/getboundingclientrect"),"getcomputedstyle":require("./features/getcomputedstyle"),"getelementsbyclassname":require("./features/getelementsbyclassname"),"getrandomvalues":require("./features/getrandomvalues"),"gyroscope":require("./features/gyroscope"),"hardwareconcurrency":require("./features/hardwareconcurrency"),"hashchange":require("./features/hashchange"),"heif":require("./features/heif"),"hevc":require("./features/hevc"),"hidden":require("./features/hidden"),"high-resolution-time":require("./features/high-resolution-time"),"history":require("./features/history"),"html-media-capture":require("./features/html-media-capture"),"html5semantic":require("./features/html5semantic"),"http-live-streaming":require("./features/http-live-streaming"),"http2":require("./features/http2"),"http3":require("./features/http3"),"iframe-sandbox":require("./features/iframe-sandbox"),"iframe-seamless":require("./features/iframe-seamless"),"iframe-srcdoc":require("./features/iframe-srcdoc"),"imagecapture":require("./features/imagecapture"),"ime":require("./features/ime"),"img-naturalwidth-naturalheight":require("./features/img-naturalwidth-naturalheight"),"import-maps":require("./features/import-maps"),"imports":require("./features/imports"),"indeterminate-checkbox":require("./features/indeterminate-checkbox"),"indexeddb":require("./features/indexeddb"),"indexeddb2":require("./features/indexeddb2"),"inline-block":require("./features/inline-block"),"innertext":require("./features/innertext"),"input-autocomplete-onoff":require("./features/input-autocomplete-onoff"),"input-color":require("./features/input-color"),"input-datetime":require("./features/input-datetime"),"input-email-tel-url":require("./features/input-email-tel-url"),"input-event":require("./features/input-event"),"input-file-accept":require("./features/input-file-accept"),"input-file-directory":require("./features/input-file-directory"),"input-file-multiple":require("./features/input-file-multiple"),"input-inputmode":require("./features/input-inputmode"),"input-minlength":require("./features/input-minlength"),"input-number":require("./features/input-number"),"input-pattern":require("./features/input-pattern"),"input-placeholder":require("./features/input-placeholder"),"input-range":require("./features/input-range"),"input-search":require("./features/input-search"),"input-selection":require("./features/input-selection"),"insert-adjacent":require("./features/insert-adjacent"),"insertadjacenthtml":require("./features/insertadjacenthtml"),"internationalization":require("./features/internationalization"),"intersectionobserver-v2":require("./features/intersectionobserver-v2"),"intersectionobserver":require("./features/intersectionobserver"),"intl-pluralrules":require("./features/intl-pluralrules"),"intrinsic-width":require("./features/intrinsic-width"),"jpeg2000":require("./features/jpeg2000"),"jpegxl":require("./features/jpegxl"),"jpegxr":require("./features/jpegxr"),"js-regexp-lookbehind":require("./features/js-regexp-lookbehind"),"json":require("./features/json"),"justify-content-space-evenly":require("./features/justify-content-space-evenly"),"kerning-pairs-ligatures":require("./features/kerning-pairs-ligatures"),"keyboardevent-charcode":require("./features/keyboardevent-charcode"),"keyboardevent-code":require("./features/keyboardevent-code"),"keyboardevent-getmodifierstate":require("./features/keyboardevent-getmodifierstate"),"keyboardevent-key":require("./features/keyboardevent-key"),"keyboardevent-location":require("./features/keyboardevent-location"),"keyboardevent-which":require("./features/keyboardevent-which"),"lazyload":require("./features/lazyload"),"let":require("./features/let"),"link-icon-png":require("./features/link-icon-png"),"link-icon-svg":require("./features/link-icon-svg"),"link-rel-dns-prefetch":require("./features/link-rel-dns-prefetch"),"link-rel-modulepreload":require("./features/link-rel-modulepreload"),"link-rel-preconnect":require("./features/link-rel-preconnect"),"link-rel-prefetch":require("./features/link-rel-prefetch"),"link-rel-preload":require("./features/link-rel-preload"),"link-rel-prerender":require("./features/link-rel-prerender"),"loading-lazy-attr":require("./features/loading-lazy-attr"),"localecompare":require("./features/localecompare"),"magnetometer":require("./features/magnetometer"),"matchesselector":require("./features/matchesselector"),"matchmedia":require("./features/matchmedia"),"mathml":require("./features/mathml"),"maxlength":require("./features/maxlength"),"mdn-css-backdrop-pseudo-element":require("./features/mdn-css-backdrop-pseudo-element"),"mdn-css-unicode-bidi-isolate-override":require("./features/mdn-css-unicode-bidi-isolate-override"),"mdn-css-unicode-bidi-isolate":require("./features/mdn-css-unicode-bidi-isolate"),"mdn-css-unicode-bidi-plaintext":require("./features/mdn-css-unicode-bidi-plaintext"),"mdn-text-decoration-color":require("./features/mdn-text-decoration-color"),"mdn-text-decoration-line":require("./features/mdn-text-decoration-line"),"mdn-text-decoration-shorthand":require("./features/mdn-text-decoration-shorthand"),"mdn-text-decoration-style":require("./features/mdn-text-decoration-style"),"media-fragments":require("./features/media-fragments"),"mediacapture-fromelement":require("./features/mediacapture-fromelement"),"mediarecorder":require("./features/mediarecorder"),"mediasource":require("./features/mediasource"),"menu":require("./features/menu"),"meta-theme-color":require("./features/meta-theme-color"),"meter":require("./features/meter"),"midi":require("./features/midi"),"minmaxwh":require("./features/minmaxwh"),"mp3":require("./features/mp3"),"mpeg-dash":require("./features/mpeg-dash"),"mpeg4":require("./features/mpeg4"),"multibackgrounds":require("./features/multibackgrounds"),"multicolumn":require("./features/multicolumn"),"mutation-events":require("./features/mutation-events"),"mutationobserver":require("./features/mutationobserver"),"namevalue-storage":require("./features/namevalue-storage"),"native-filesystem-api":require("./features/native-filesystem-api"),"nav-timing":require("./features/nav-timing"),"netinfo":require("./features/netinfo"),"notifications":require("./features/notifications"),"object-entries":require("./features/object-entries"),"object-fit":require("./features/object-fit"),"object-observe":require("./features/object-observe"),"object-values":require("./features/object-values"),"objectrtc":require("./features/objectrtc"),"offline-apps":require("./features/offline-apps"),"offscreencanvas":require("./features/offscreencanvas"),"ogg-vorbis":require("./features/ogg-vorbis"),"ogv":require("./features/ogv"),"ol-reversed":require("./features/ol-reversed"),"once-event-listener":require("./features/once-event-listener"),"online-status":require("./features/online-status"),"opus":require("./features/opus"),"orientation-sensor":require("./features/orientation-sensor"),"outline":require("./features/outline"),"pad-start-end":require("./features/pad-start-end"),"page-transition-events":require("./features/page-transition-events"),"pagevisibility":require("./features/pagevisibility"),"passive-event-listener":require("./features/passive-event-listener"),"passkeys":require("./features/passkeys"),"passwordrules":require("./features/passwordrules"),"path2d":require("./features/path2d"),"payment-request":require("./features/payment-request"),"pdf-viewer":require("./features/pdf-viewer"),"permissions-api":require("./features/permissions-api"),"permissions-policy":require("./features/permissions-policy"),"picture-in-picture":require("./features/picture-in-picture"),"picture":require("./features/picture"),"ping":require("./features/ping"),"png-alpha":require("./features/png-alpha"),"pointer-events":require("./features/pointer-events"),"pointer":require("./features/pointer"),"pointerlock":require("./features/pointerlock"),"portals":require("./features/portals"),"prefers-color-scheme":require("./features/prefers-color-scheme"),"prefers-reduced-motion":require("./features/prefers-reduced-motion"),"progress":require("./features/progress"),"promise-finally":require("./features/promise-finally"),"promises":require("./features/promises"),"proximity":require("./features/proximity"),"proxy":require("./features/proxy"),"publickeypinning":require("./features/publickeypinning"),"push-api":require("./features/push-api"),"queryselector":require("./features/queryselector"),"readonly-attr":require("./features/readonly-attr"),"referrer-policy":require("./features/referrer-policy"),"registerprotocolhandler":require("./features/registerprotocolhandler"),"rel-noopener":require("./features/rel-noopener"),"rel-noreferrer":require("./features/rel-noreferrer"),"rellist":require("./features/rellist"),"rem":require("./features/rem"),"requestanimationframe":require("./features/requestanimationframe"),"requestidlecallback":require("./features/requestidlecallback"),"resizeobserver":require("./features/resizeobserver"),"resource-timing":require("./features/resource-timing"),"rest-parameters":require("./features/rest-parameters"),"rtcpeerconnection":require("./features/rtcpeerconnection"),"ruby":require("./features/ruby"),"run-in":require("./features/run-in"),"same-site-cookie-attribute":require("./features/same-site-cookie-attribute"),"screen-orientation":require("./features/screen-orientation"),"script-async":require("./features/script-async"),"script-defer":require("./features/script-defer"),"scrollintoview":require("./features/scrollintoview"),"scrollintoviewifneeded":require("./features/scrollintoviewifneeded"),"sdch":require("./features/sdch"),"selection-api":require("./features/selection-api"),"selectlist":require("./features/selectlist"),"server-timing":require("./features/server-timing"),"serviceworkers":require("./features/serviceworkers"),"setimmediate":require("./features/setimmediate"),"shadowdom":require("./features/shadowdom"),"shadowdomv1":require("./features/shadowdomv1"),"sharedarraybuffer":require("./features/sharedarraybuffer"),"sharedworkers":require("./features/sharedworkers"),"sni":require("./features/sni"),"spdy":require("./features/spdy"),"speech-recognition":require("./features/speech-recognition"),"speech-synthesis":require("./features/speech-synthesis"),"spellcheck-attribute":require("./features/spellcheck-attribute"),"sql-storage":require("./features/sql-storage"),"srcset":require("./features/srcset"),"stream":require("./features/stream"),"streams":require("./features/streams"),"stricttransportsecurity":require("./features/stricttransportsecurity"),"style-scoped":require("./features/style-scoped"),"subresource-bundling":require("./features/subresource-bundling"),"subresource-integrity":require("./features/subresource-integrity"),"svg-css":require("./features/svg-css"),"svg-filters":require("./features/svg-filters"),"svg-fonts":require("./features/svg-fonts"),"svg-fragment":require("./features/svg-fragment"),"svg-html":require("./features/svg-html"),"svg-html5":require("./features/svg-html5"),"svg-img":require("./features/svg-img"),"svg-smil":require("./features/svg-smil"),"svg":require("./features/svg"),"sxg":require("./features/sxg"),"tabindex-attr":require("./features/tabindex-attr"),"template-literals":require("./features/template-literals"),"template":require("./features/template"),"temporal":require("./features/temporal"),"testfeat":require("./features/testfeat"),"text-decoration":require("./features/text-decoration"),"text-emphasis":require("./features/text-emphasis"),"text-overflow":require("./features/text-overflow"),"text-size-adjust":require("./features/text-size-adjust"),"text-stroke":require("./features/text-stroke"),"textcontent":require("./features/textcontent"),"textencoder":require("./features/textencoder"),"tls1-1":require("./features/tls1-1"),"tls1-2":require("./features/tls1-2"),"tls1-3":require("./features/tls1-3"),"touch":require("./features/touch"),"transforms2d":require("./features/transforms2d"),"transforms3d":require("./features/transforms3d"),"trusted-types":require("./features/trusted-types"),"ttf":require("./features/ttf"),"typedarrays":require("./features/typedarrays"),"u2f":require("./features/u2f"),"unhandledrejection":require("./features/unhandledrejection"),"upgradeinsecurerequests":require("./features/upgradeinsecurerequests"),"url-scroll-to-text-fragment":require("./features/url-scroll-to-text-fragment"),"url":require("./features/url"),"urlsearchparams":require("./features/urlsearchparams"),"use-strict":require("./features/use-strict"),"user-select-none":require("./features/user-select-none"),"user-timing":require("./features/user-timing"),"variable-fonts":require("./features/variable-fonts"),"vector-effect":require("./features/vector-effect"),"vibration":require("./features/vibration"),"video":require("./features/video"),"videotracks":require("./features/videotracks"),"view-transitions":require("./features/view-transitions"),"viewport-unit-variants":require("./features/viewport-unit-variants"),"viewport-units":require("./features/viewport-units"),"wai-aria":require("./features/wai-aria"),"wake-lock":require("./features/wake-lock"),"wasm-bigint":require("./features/wasm-bigint"),"wasm-bulk-memory":require("./features/wasm-bulk-memory"),"wasm-extended-const":require("./features/wasm-extended-const"),"wasm-gc":require("./features/wasm-gc"),"wasm-multi-memory":require("./features/wasm-multi-memory"),"wasm-multi-value":require("./features/wasm-multi-value"),"wasm-mutable-globals":require("./features/wasm-mutable-globals"),"wasm-nontrapping-fptoint":require("./features/wasm-nontrapping-fptoint"),"wasm-reference-types":require("./features/wasm-reference-types"),"wasm-relaxed-simd":require("./features/wasm-relaxed-simd"),"wasm-signext":require("./features/wasm-signext"),"wasm-simd":require("./features/wasm-simd"),"wasm-tail-calls":require("./features/wasm-tail-calls"),"wasm-threads":require("./features/wasm-threads"),"wasm":require("./features/wasm"),"wav":require("./features/wav"),"wbr-element":require("./features/wbr-element"),"web-animation":require("./features/web-animation"),"web-app-manifest":require("./features/web-app-manifest"),"web-bluetooth":require("./features/web-bluetooth"),"web-serial":require("./features/web-serial"),"web-share":require("./features/web-share"),"webauthn":require("./features/webauthn"),"webcodecs":require("./features/webcodecs"),"webgl":require("./features/webgl"),"webgl2":require("./features/webgl2"),"webgpu":require("./features/webgpu"),"webhid":require("./features/webhid"),"webkit-user-drag":require("./features/webkit-user-drag"),"webm":require("./features/webm"),"webnfc":require("./features/webnfc"),"webp":require("./features/webp"),"websockets":require("./features/websockets"),"webtransport":require("./features/webtransport"),"webusb":require("./features/webusb"),"webvr":require("./features/webvr"),"webvtt":require("./features/webvtt"),"webworkers":require("./features/webworkers"),"webxr":require("./features/webxr"),"will-change":require("./features/will-change"),"woff":require("./features/woff"),"woff2":require("./features/woff2"),"word-break":require("./features/word-break"),"wordwrap":require("./features/wordwrap"),"x-doc-messaging":require("./features/x-doc-messaging"),"x-frame-options":require("./features/x-frame-options"),"xhr2":require("./features/xhr2"),"xhtml":require("./features/xhtml"),"xhtmlsmil":require("./features/xhtmlsmil"),"xml-serializer":require("./features/xml-serializer"),"zstd":require("./features/zstd")}; diff --git a/node_modules/caniuse-lite/data/features/aac.js b/node_modules/caniuse-lite/data/features/aac.js index d657994c5..6056851d5 100644 --- a/node_modules/caniuse-lite/data/features/aac.js +++ b/node_modules/caniuse-lite/data/features/aac.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","132":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F","16":"A B"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"132":"IC"},N:{"1":"A","2":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"132":"vD wD"}},B:6,C:"AAC audio file format",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","132":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G","16":"A B"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"132":"D"},N:{"1":"A","2":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"132":"cD dD"}},B:6,C:"AAC audio file format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/abortcontroller.js b/node_modules/caniuse-lite/data/features/abortcontroller.js index 592f23547..38d09d111 100644 --- a/node_modules/caniuse-lite/data/features/abortcontroller.js +++ b/node_modules/caniuse-lite/data/features/abortcontroller.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G"},C:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB vC wC"},D:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC","130":"C JC"},F:{"1":"0 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"AbortController & AbortSignal",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC","130":"C 7B"},F:{"1":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"AbortController & AbortSignal",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ac3-ec3.js b/node_modules/caniuse-lite/data/features/ac3-ec3.js index 9b97e07a1..8c63c43ef 100644 --- a/node_modules/caniuse-lite/data/features/ac3-ec3.js +++ b/node_modules/caniuse-lite/data/features/ac3-ec3.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID","132":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D","132":"A"},K:{"2":"A B C H JC pC","132":"KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"AC-3 (Dolby Digital) and EC-3 (Dolby Digital Plus) codecs",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C","132":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E","132":"A"},K:{"2":"A B C I 7B ZC","132":"8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"AC-3 (Dolby Digital) and EC-3 (Dolby Digital Plus) codecs",D:false}; diff --git a/node_modules/caniuse-lite/data/features/accelerometer.js b/node_modules/caniuse-lite/data/features/accelerometer.js index e29070d23..f0e89e93a 100644 --- a/node_modules/caniuse-lite/data/features/accelerometer.js +++ b/node_modules/caniuse-lite/data/features/accelerometer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","194":"zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"Accelerometer",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB EC pB FC qB rB sB tB uB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"Accelerometer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/addeventlistener.js b/node_modules/caniuse-lite/data/features/addeventlistener.js index d9871ab5b..505ea54c2 100644 --- a/node_modules/caniuse-lite/data/features/addeventlistener.js +++ b/node_modules/caniuse-lite/data/features/addeventlistener.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","130":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","257":"sC PC J UB K vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"EventTarget.addEventListener()",D:true}; +module.exports={A:{A:{"1":"G A B","130":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","257":"cC DC J GB K eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"EventTarget.addEventListener()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/alternate-stylesheet.js b/node_modules/caniuse-lite/data/features/alternate-stylesheet.js index e75542017..f28f24cbe 100644 --- a/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +++ b/node_modules/caniuse-lite/data/features/alternate-stylesheet.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"F B C 9C AD BD CD JC pC DD KC","16":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"16":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"2":"H","16":"A B C JC pC KC"},L:{"16":"I"},M:{"16":"IC"},N:{"16":"A B"},O:{"16":"LC"},P:{"16":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"16":"uD"},S:{"1":"vD wD"}},B:1,C:"Alternate stylesheet",D:false}; +module.exports={A:{A:{"1":"F G A B","2":"K E bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"G B C rC sC tC uC 7B ZC vC 8B","16":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"16":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"2":"I","16":"A B C 7B ZC 8B"},L:{"16":"D"},M:{"16":"D"},N:{"16":"A B"},O:{"16":"9B"},P:{"16":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"16":"bD"},S:{"1":"cD dD"}},B:1,C:"Alternate stylesheet",D:false}; diff --git a/node_modules/caniuse-lite/data/features/ambient-light.js b/node_modules/caniuse-lite/data/features/ambient-light.js index 0742f101d..dbd07170b 100644 --- a/node_modules/caniuse-lite/data/features/ambient-light.js +++ b/node_modules/caniuse-lite/data/features/ambient-light.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L","132":"M G N O P","322":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","132":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","194":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","322":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC 9C AD BD CD JC pC DD KC","322":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"322":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"132":"vD wD"}},B:4,C:"Ambient Light Sensor",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L","132":"M H N O P","322":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","132":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","194":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","322":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B rC sC tC uC 7B ZC vC 8B","322":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"132":"cD dD"}},B:4,C:"Ambient Light Sensor",D:true}; diff --git a/node_modules/caniuse-lite/data/features/apng.js b/node_modules/caniuse-lite/data/features/apng.js index 76968643a..fe6c3ac88 100644 --- a/node_modules/caniuse-lite/data/features/apng.js +++ b/node_modules/caniuse-lite/data/features/apng.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC"},D:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC 0C"},F:{"1":"0 B C nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"1 2 3 4 5 6 7 8 9 F G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Animated PNG (APNG)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC"},D:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC jC"},F:{"1":"B C cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"0 G H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Animated PNG (APNG)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/array-find-index.js b/node_modules/caniuse-lite/data/features/array-find-index.js index f7d69f7fa..9d2035ddc 100644 --- a/node_modules/caniuse-lite/data/features/array-find-index.js +++ b/node_modules/caniuse-lite/data/features/array-find-index.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Array.prototype.findIndex",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC"},F:{"1":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","16":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Array.prototype.findIndex",D:true}; diff --git a/node_modules/caniuse-lite/data/features/array-find.js b/node_modules/caniuse-lite/data/features/array-find.js index d6d546d8b..0e30c0bb3 100644 --- a/node_modules/caniuse-lite/data/features/array-find.js +++ b/node_modules/caniuse-lite/data/features/array-find.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C L M"},C:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Array.prototype.find",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC"},F:{"1":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","16":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Array.prototype.find",D:true}; diff --git a/node_modules/caniuse-lite/data/features/array-flat.js b/node_modules/caniuse-lite/data/features/array-flat.js index 55e7ce8b2..3facea3e8 100644 --- a/node_modules/caniuse-lite/data/features/array-flat.js +++ b/node_modules/caniuse-lite/data/features/array-flat.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC vC wC"},D:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC JC"},F:{"1":"0 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 9C AD BD CD JC pC DD KC"},G:{"1":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"flat & flatMap array methods",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC 7B"},F:{"1":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB rC sC tC uC 7B ZC vC 8B"},G:{"1":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"flat & flatMap array methods",D:true}; diff --git a/node_modules/caniuse-lite/data/features/array-includes.js b/node_modules/caniuse-lite/data/features/array-includes.js index de4753a6b..b1cff7b13 100644 --- a/node_modules/caniuse-lite/data/features/array-includes.js +++ b/node_modules/caniuse-lite/data/features/array-includes.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB vC wC"},D:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Array.prototype.includes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Array.prototype.includes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/arrow-functions.js b/node_modules/caniuse-lite/data/features/arrow-functions.js index 3249f8183..054cfa59b 100644 --- a/node_modules/caniuse-lite/data/features/arrow-functions.js +++ b/node_modules/caniuse-lite/data/features/arrow-functions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Arrow functions",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Arrow functions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/asmjs.js b/node_modules/caniuse-lite/data/features/asmjs.js index 28246db5f..8767baa31 100644 --- a/node_modules/caniuse-lite/data/features/asmjs.js +++ b/node_modules/caniuse-lite/data/features/asmjs.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"L M G N O P","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","322":"C"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"2":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB","132":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","132":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","132":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"132":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"132":"LC"},P:{"2":"J","132":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"132":"tD"},R:{"132":"uD"},S:{"1":"vD wD"}},B:6,C:"asm.js",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"L M H N O P","132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","322":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB","132":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","132":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"132":"9B"},P:{"2":"J","132":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"132":"aD"},R:{"132":"bD"},S:{"1":"cD dD"}},B:6,C:"asm.js",D:true}; diff --git a/node_modules/caniuse-lite/data/features/async-clipboard.js b/node_modules/caniuse-lite/data/features/async-clipboard.js index 34bdbd6df..d62f702e7 100644 --- a/node_modules/caniuse-lite/data/features/async-clipboard.js +++ b/node_modules/caniuse-lite/data/features/async-clipboard.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC","132":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB"},D:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 9C AD BD CD JC pC DD KC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","260":"I"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"6 7 8 9","2":"J iD jD kD lD","260":"1 2 3 4 5 mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD","132":"wD"}},B:5,C:"Asynchronous Clipboard API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC","132":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB","516":"EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B"},F:{"1":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB rC sC tC uC 7B ZC vC 8B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","260":"D"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"516":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0","2":"J PD QD RD SD","260":"v w x y z TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD","132":"dD"}},B:5,C:"Asynchronous Clipboard API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/async-functions.js b/node_modules/caniuse-lite/data/features/async-functions.js index 5dd8b6df2..6c247a7c8 100644 --- a/node_modules/caniuse-lite/data/features/async-functions.js +++ b/node_modules/caniuse-lite/data/features/async-functions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L","194":"M"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC"},D:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C","258":"WC"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD","258":"MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"Async functions",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L","194":"M"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC","258":"LC"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C","258":"4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"Async functions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/atob-btoa.js b/node_modules/caniuse-lite/data/features/atob-btoa.js index 1eb1c3dd3..36f043fed 100644 --- a/node_modules/caniuse-lite/data/features/atob-btoa.js +++ b/node_modules/caniuse-lite/data/features/atob-btoa.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C AD","16":"BD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","16":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Base64 encoding and decoding",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC sC","16":"tC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","16":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Base64 encoding and decoding",D:true}; diff --git a/node_modules/caniuse-lite/data/features/audio-api.js b/node_modules/caniuse-lite/data/features/audio-api.js index 1d5658d69..8790f6dae 100644 --- a/node_modules/caniuse-lite/data/features/audio-api.js +++ b/node_modules/caniuse-lite/data/features/audio-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L","33":"1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K D E F A B C L M zC 0C 1C WC JC KC 2C"},F:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 G N O P VB"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Web Audio API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L","33":"0 M H N O P HB v w x y z IB JB KB LB MB NB OB PB"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K E F G A B C L M iC jC kC LC 7B 8B lC"},F:{"1":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"H N O P HB v w"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Web Audio API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/audio.js b/node_modules/caniuse-lite/data/features/audio.js index 50eba19f1..feddf6771 100644 --- a/node_modules/caniuse-lite/data/features/audio.js +++ b/node_modules/caniuse-lite/data/features/audio.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","132":"J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F","4":"9C AD"},G:{"260":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","2":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Audio element",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","132":"J GB K E F G A B C L M H N O P HB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G","4":"rC sC"},G:{"260":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","2":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Audio element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/audiotracks.js b/node_modules/caniuse-lite/data/features/audiotracks.js index 1ada909f4..e747184c7 100644 --- a/node_modules/caniuse-lite/data/features/audiotracks.js +++ b/node_modules/caniuse-lite/data/features/audiotracks.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"C L M G N O P","322":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","194":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB","322":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC","322":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","322":"H"},L:{"322":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"322":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"322":"tD"},R:{"322":"uD"},S:{"194":"vD wD"}},B:1,C:"Audio Tracks",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"C L M H N O P","322":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","194":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB","322":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B","322":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","322":"I"},L:{"322":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"322":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"322":"aD"},R:{"322":"bD"},S:{"194":"cD dD"}},B:1,C:"Audio Tracks",D:true}; diff --git a/node_modules/caniuse-lite/data/features/autofocus.js b/node_modules/caniuse-lite/data/features/autofocus.js index 0eebec396..552cea857 100644 --- a/node_modules/caniuse-lite/data/features/autofocus.js +++ b/node_modules/caniuse-lite/data/features/autofocus.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"Autofocus attribute",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"Autofocus attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/auxclick.js b/node_modules/caniuse-lite/data/features/auxclick.js index 1db9523ac..2c2d46c4c 100644 --- a/node_modules/caniuse-lite/data/features/auxclick.js +++ b/node_modules/caniuse-lite/data/features/auxclick.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC","129":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC"},G:{"1":"kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"Auxclick",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC","129":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"Auxclick",D:true}; diff --git a/node_modules/caniuse-lite/data/features/av1.js b/node_modules/caniuse-lite/data/features/av1.js index dc0d5aecf..5d22de5b1 100644 --- a/node_modules/caniuse-lite/data/features/av1.js +++ b/node_modules/caniuse-lite/data/features/av1.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"0 C L M G N O z AB BB CB","194":"P Q H R S T U V W X Y Z 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"},C:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB vC wC","66":"wB xB yB zB QC 0B RC 1B 2B 3B","260":"4B","516":"5B"},D:{"1":"0 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B","66":"6B 7B 8B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C","1028":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD","1028":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"AV1 video format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"AB BB CB DB EB FB D","2":"5 6 7 8 9 C L M H N O","194":"1 2 3 4 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB eC fC","66":"lB mB nB oB EC pB FC qB rB sB","260":"tB","516":"uB"},D:{"1":"1 2 3 4 5 6 7 8 9 yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB","66":"vB wB xB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC","1028":"BC TC UC VC WC XC YC CC qC"},F:{"1":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD","1028":"BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"AV1 video format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/avif.js b/node_modules/caniuse-lite/data/features/avif.js index 6249dc509..581dce67d 100644 --- a/node_modules/caniuse-lite/data/features/avif.js +++ b/node_modules/caniuse-lite/data/features/avif.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w AB BB CB","4162":"0 x y z"},C:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC vC wC","194":"GC HC Q H R SC S T U V W X Y Z a b","257":"c d e f g h i j k l m n o p q r s t","2049":"u v"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC","1796":"ZC aC bC"},F:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD","1281":"MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"AVIF image format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"AB BB CB DB EB FB D","2":"1 2 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","4162":"3 4 5 6"},C:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B eC fC","194":"5B 6B Q I R GC S T U V W X Y Z a b","257":"c d e f g h i j k l m n o p q r s t","2049":"1 u"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC","1796":"OC PC QC"},F:{"1":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD","257":"RC SC HD BC TC UC VC WC XC YC CC","1281":"AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"AVIF image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-attachment.js b/node_modules/caniuse-lite/data/features/background-attachment.js index e73b54817..57b5c4e5e 100644 --- a/node_modules/caniuse-lite/data/features/background-attachment.js +++ b/node_modules/caniuse-lite/data/features/background-attachment.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C yC zC 0C 1C WC JC KC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J L xC VC 2C","2050":"M G 3C 4C XC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","132":"F 9C AD"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","772":"E FD GD HD ID JD KD LD MD ND OD PD QD","2050":"RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD gD hD","132":"fD qC"},J:{"260":"D A"},K:{"1":"B C H JC pC KC","132":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"2":"J","1028":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS background-attachment",D:true}; +module.exports={A:{A:{"1":"G A B","132":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C hC iC jC kC LC 7B 8B NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J L gC KC lC","2050":"M H mC nC MC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","132":"G rC sC"},G:{"2":"KC wC aC","772":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C","2050":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD ND OD","132":"MD aC"},J:{"260":"E A"},K:{"1":"B C I 7B ZC 8B","132":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"2":"J","1028":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS background-attachment",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-clip-text.js b/node_modules/caniuse-lite/data/features/background-clip-text.js index b07daf6d9..ab50c9c19 100644 --- a/node_modules/caniuse-lite/data/features/background-clip-text.js +++ b/node_modules/caniuse-lite/data/features/background-clip-text.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"G N O P","33":"C L M","129":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","161":"0 Q H R S T U V W X Y Z 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 AB BB"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"129":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","161":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB"},E:{"2":"xC","129":"LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","388":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC","420":"J VC"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","129":"0 p q r s t u v w x y z","161":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"129":"LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","388":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC"},H:{"2":"bD"},I:{"16":"PC cD dD eD","129":"I","161":"J fD qC gD hD"},J:{"161":"D A"},K:{"16":"A B C JC pC KC","129":"H"},L:{"129":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"161":"LC"},P:{"1":"6 7 8 9","161":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"161":"tD"},R:{"161":"uD"},S:{"1":"vD wD"}},B:7,C:"Background-clip: text",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"H N O P","33":"C L M","132":"9 AB BB CB DB EB FB D","164":"1 2 3 4 5 6 7 8 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"132":"9 AB BB CB DB EB FB D HC IC JC","164":"0 1 2 3 4 5 6 7 8 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"16":"gC KC","132":"9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","388":"M H mC nC MC NC","420":"J GB K E F G A B C L hC iC jC kC LC 7B 8B lC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","132":"p q r s t u","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"16":"KC wC aC xC","132":"9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","388":"DD ED FD MC NC","420":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"16":"DC JD KD LD","132":"D","164":"J MD aC ND OD"},J:{"164":"E A"},K:{"16":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"164":"9B"},P:{"1":"0","164":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"164":"aD"},R:{"164":"bD"},S:{"1":"cD dD"}},B:7,C:"Background-clip: text",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-img-opts.js b/node_modules/caniuse-lite/data/features/background-img-opts.js index 4685bb362..65956174d 100644 --- a/node_modules/caniuse-lite/data/features/background-img-opts.js +++ b/node_modules/caniuse-lite/data/features/background-img-opts.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","36":"wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","516":"J UB K D E F A B C L M"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","772":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C","36":"AD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","4":"VC ED qC GD","516":"FD"},H:{"132":"bD"},I:{"1":"I gD hD","36":"cD","516":"PC J fD qC","548":"dD eD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 Background-image options",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","36":"fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","516":"J GB K E F G A B C L M"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","772":"J GB K gC KC hC iC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC","36":"sC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","4":"KC wC aC yC","516":"xC"},H:{"132":"ID"},I:{"1":"D ND OD","36":"JD","516":"DC J MD aC","548":"KD LD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 Background-image options",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-position-x-y.js b/node_modules/caniuse-lite/data/features/background-position-x-y.js index db52201f4..c95ed9332 100644 --- a/node_modules/caniuse-lite/data/features/background-position-x-y.js +++ b/node_modules/caniuse-lite/data/features/background-position-x-y.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:7,C:"background-position-x & background-position-y",D:true}; +module.exports={A:{A:{"1":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:7,C:"background-position-x & background-position-y",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-repeat-round-space.js b/node_modules/caniuse-lite/data/features/background-repeat-round-space.js index 07b8b1c80..d7abacbe1 100644 --- a/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +++ b/node_modules/caniuse-lite/data/features/background-repeat-round-space.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E rC","132":"F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F G N O P 9C AD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"CSS background-repeat round and space",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F bC","132":"G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 B C HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G H N O P rC sC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"CSS background-repeat round and space",D:true}; diff --git a/node_modules/caniuse-lite/data/features/background-sync.js b/node_modules/caniuse-lite/data/features/background-sync.js index 12ed16f8a..91cfd9f73 100644 --- a/node_modules/caniuse-lite/data/features/background-sync.js +++ b/node_modules/caniuse-lite/data/features/background-sync.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC vC wC","16":"UC tC uC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Background Sync API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC eC fC","16":"IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Background Sync API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/battery-status.js b/node_modules/caniuse-lite/data/features/battery-status.js index 62d43427b..4035d71e3 100644 --- a/node_modules/caniuse-lite/data/features/battery-status.js +++ b/node_modules/caniuse-lite/data/features/battery-status.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"kB lB mB nB oB pB qB rB sB","2":"0 sC PC J UB K D E F tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","132":"1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","164":"A B C L M G"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB","66":"eB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD","2":"wD"}},B:4,C:"Battery Status API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"ZB aB bB cB dB eB fB gB hB","2":"1 2 3 4 5 6 7 8 9 cC DC J GB K E F G iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","132":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","164":"A B C L M H"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB","66":"TB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD","2":"dD"}},B:4,C:"Battery Status API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/beacon.js b/node_modules/caniuse-lite/data/features/beacon.js index e3b776a65..de199d13f 100644 --- a/node_modules/caniuse-lite/data/features/beacon.js +++ b/node_modules/caniuse-lite/data/features/beacon.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC"},D:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Beacon API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Beacon API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/beforeafterprint.js b/node_modules/caniuse-lite/data/features/beforeafterprint.js index 7b780e569..f8f184691 100644 --- a/node_modules/caniuse-lite/data/features/beforeafterprint.js +++ b/node_modules/caniuse-lite/data/features/beforeafterprint.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC"},D:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"16":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Printing Events",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B"},F:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"1":"9B"},P:{"2":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Printing Events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/bigint.js b/node_modules/caniuse-lite/data/features/bigint.js index 6c0a919d6..6f1b6139a 100644 --- a/node_modules/caniuse-lite/data/features/bigint.js +++ b/node_modules/caniuse-lite/data/features/bigint.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B vC wC","194":"4B 5B 6B"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC 2C"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"BigInt",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB eC fC","194":"tB uB vB"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B lC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"BigInt",D:true}; diff --git a/node_modules/caniuse-lite/data/features/blobbuilder.js b/node_modules/caniuse-lite/data/features/blobbuilder.js index 1d875302d..95bef4c0d 100644 --- a/node_modules/caniuse-lite/data/features/blobbuilder.js +++ b/node_modules/caniuse-lite/data/features/blobbuilder.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","36":"K D E F A B C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D","36":"E F A B C L M G N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"I","2":"cD dD eD","36":"PC J fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Blob constructing",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","36":"K E F G A B C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E","36":"F G A B C L M H N O P HB"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"D","2":"JD KD LD","36":"DC J MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Blob constructing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/bloburls.js b/node_modules/caniuse-lite/data/features/bloburls.js index d7083bcd5..a3e5fe9b1 100644 --- a/node_modules/caniuse-lite/data/features/bloburls.js +++ b/node_modules/caniuse-lite/data/features/bloburls.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","129":"A B"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D","33":"1 2 3 E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC cD dD eD","33":"J fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Blob URLs",D:true}; +module.exports={A:{A:{"2":"K E F G bC","129":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E","33":"F G A B C L M H N O P HB v w x"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC JD KD LD","33":"J MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Blob URLs",D:true}; diff --git a/node_modules/caniuse-lite/data/features/border-image.js b/node_modules/caniuse-lite/data/features/border-image.js index 189fc5d11..32a0da777 100644 --- a/node_modules/caniuse-lite/data/features/border-image.js +++ b/node_modules/caniuse-lite/data/features/border-image.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","260":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","804":"J UB K D E F A B C L M vC wC"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","260":"sB tB uB vB wB","388":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","1412":"1 2 3 4 5 6 7 8 9 G N O P VB WB","1956":"J UB K D E F A B C L M"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","129":"A B C L M G 1C WC JC KC 2C 3C 4C XC","1412":"K D E F zC 0C","1956":"J UB xC VC yC"},F:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD","260":"fB gB hB iB jB","388":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB","1796":"BD CD","1828":"B C JC pC DD KC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","129":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC","1412":"E GD HD ID JD","1956":"VC ED qC FD"},H:{"1828":"bD"},I:{"1":"I","388":"gD hD","1956":"PC J cD dD eD fD qC"},J:{"1412":"A","1924":"D"},K:{"1":"H","2":"A","1828":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","260":"iD jD","388":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","260":"vD"}},B:4,C:"CSS3 Border images",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","260":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","804":"J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","260":"hB iB jB kB lB","388":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","1412":"0 H N O P HB v w x y z IB JB KB LB","1956":"J GB K E F G A B C L M"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","129":"A B C L M H kC LC 7B 8B lC mC nC MC","1412":"K E F G iC jC","1956":"J GB gC KC hC"},F:{"1":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC","260":"UB VB WB XB YB","388":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","1796":"tC uC","1828":"B C 7B ZC vC 8B"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","129":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC","1412":"F yC zC 0C 1C","1956":"KC wC aC xC"},H:{"1828":"ID"},I:{"1":"D","388":"ND OD","1956":"DC J JD KD LD MD aC"},J:{"1412":"A","1924":"E"},K:{"1":"I","2":"A","1828":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","260":"PD QD","388":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","260":"cD"}},B:4,C:"CSS3 Border images",D:true}; diff --git a/node_modules/caniuse-lite/data/features/border-radius.js b/node_modules/caniuse-lite/data/features/border-radius.js index 12d1511da..b54383265 100644 --- a/node_modules/caniuse-lite/data/features/border-radius.js +++ b/node_modules/caniuse-lite/data/features/border-radius.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","257":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","289":"PC vC wC","292":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"J"},E:{"1":"UB D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"J xC VC","129":"K yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"VC"},H:{"2":"bD"},I:{"1":"PC J I dD eD fD qC gD hD","33":"cD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","257":"vD"}},B:4,C:"CSS3 Border-radius (rounded corners)",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","257":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","289":"DC eC fC","292":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"J"},E:{"1":"GB E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"J gC KC","129":"K hC iC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"KC"},H:{"2":"ID"},I:{"1":"DC J D KD LD MD aC ND OD","33":"JD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","257":"cD"}},B:4,C:"CSS3 Border-radius (rounded corners)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/broadcastchannel.js b/node_modules/caniuse-lite/data/features/broadcastchannel.js index d0331c1de..fcb7603dc 100644 --- a/node_modules/caniuse-lite/data/features/broadcastchannel.js +++ b/node_modules/caniuse-lite/data/features/broadcastchannel.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"BroadcastChannel",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"BroadcastChannel",D:true}; diff --git a/node_modules/caniuse-lite/data/features/brotli.js b/node_modules/caniuse-lite/data/features/brotli.js index 28b204a0a..0c1ea0a64 100644 --- a/node_modules/caniuse-lite/data/features/brotli.js +++ b/node_modules/caniuse-lite/data/features/brotli.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vC wC"},D:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","194":"qB","257":"rB"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","513":"B C JC KC"},F:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC","194":"dB eB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Brotli Accept-Encoding/Content-Encoding",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB","194":"fB","257":"gB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","513":"B C 7B 8B"},F:{"1":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B","194":"SB TB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Brotli Accept-Encoding/Content-Encoding",D:true}; diff --git a/node_modules/caniuse-lite/data/features/calc.js b/node_modules/caniuse-lite/data/features/calc.js index 5ba5df3ce..89cdcd2d9 100644 --- a/node_modules/caniuse-lite/data/features/calc.js +++ b/node_modules/caniuse-lite/data/features/calc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","260":"F","516":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"J UB K D E F A B C L M G"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P","33":"1 2 3 4 5 6 VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"GD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","132":"gD hD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"calc() as CSS unit value",D:true}; +module.exports={A:{A:{"2":"K E F bC","260":"G","516":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"J GB K E F G A B C L M H"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P","33":"0 HB v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"yC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","132":"ND OD"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"calc() as CSS unit value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/canvas-blending.js b/node_modules/caniuse-lite/data/features/canvas-blending.js index 89f69a216..3581873b4 100644 --- a/node_modules/caniuse-lite/data/features/canvas-blending.js +++ b/node_modules/caniuse-lite/data/features/canvas-blending.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Canvas blend modes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Canvas blend modes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/canvas-text.js b/node_modules/caniuse-lite/data/features/canvas-text.js index 594aef1cd..d15b31919 100644 --- a/node_modules/caniuse-lite/data/features/canvas-text.js +++ b/node_modules/caniuse-lite/data/features/canvas-text.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","8":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","8":"F 9C AD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","8":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Text API for Canvas",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","8":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","8":"G rC sC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","8":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Text API for Canvas",D:true}; diff --git a/node_modules/caniuse-lite/data/features/canvas.js b/node_modules/caniuse-lite/data/features/canvas.js index 990f9029f..69c233379 100644 --- a/node_modules/caniuse-lite/data/features/canvas.js +++ b/node_modules/caniuse-lite/data/features/canvas.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","132":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"260":"bD"},I:{"1":"PC J I fD qC gD hD","132":"cD dD eD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Canvas (basic support)",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","132":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"gC KC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"260":"ID"},I:{"1":"DC J D MD aC ND OD","132":"JD KD LD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Canvas (basic support)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ch-unit.js b/node_modules/caniuse-lite/data/features/ch-unit.js index 8323e4ae4..cd6f4a882 100644 --- a/node_modules/caniuse-lite/data/features/ch-unit.js +++ b/node_modules/caniuse-lite/data/features/ch-unit.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"ch (character) unit",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"ch (character) unit",D:true}; diff --git a/node_modules/caniuse-lite/data/features/chacha20-poly1305.js b/node_modules/caniuse-lite/data/features/chacha20-poly1305.js index 9d9cf9c77..3c09de035 100644 --- a/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +++ b/node_modules/caniuse-lite/data/features/chacha20-poly1305.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB","129":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD","16":"hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ChaCha20-Poly1305 cipher suites for TLS",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB","129":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND","16":"OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ChaCha20-Poly1305 cipher suites for TLS",D:true}; diff --git a/node_modules/caniuse-lite/data/features/channel-messaging.js b/node_modules/caniuse-lite/data/features/channel-messaging.js index d18b672f5..400b42403 100644 --- a/node_modules/caniuse-lite/data/features/channel-messaging.js +++ b/node_modules/caniuse-lite/data/features/channel-messaging.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C AD","16":"BD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Channel messaging",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC","194":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC sC","16":"tC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Channel messaging",D:true}; diff --git a/node_modules/caniuse-lite/data/features/childnode-remove.js b/node_modules/caniuse-lite/data/features/childnode-remove.js index 0c538c3f8..8589030d4 100644 --- a/node_modules/caniuse-lite/data/features/childnode-remove.js +++ b/node_modules/caniuse-lite/data/features/childnode-remove.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C"},C:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"ChildNode.remove()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","16":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"ChildNode.remove()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/classlist.js b/node_modules/caniuse-lite/data/features/classlist.js index f8233b57b..9afa6e07e 100644 --- a/node_modules/caniuse-lite/data/features/classlist.js +++ b/node_modules/caniuse-lite/data/features/classlist.js @@ -1 +1 @@ -module.exports={A:{A:{"8":"K D E F rC","1924":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"sC PC vC","516":"5 6","772":"1 2 3 4 J UB K D E F A B C L M G N O P VB wC"},D:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J UB K D","516":"5 6 7 8","772":"4","900":"1 2 3 E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB xC VC","900":"K yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","8":"F B 9C AD BD CD JC","900":"C pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC","900":"FD GD"},H:{"900":"bD"},I:{"1":"I gD hD","8":"cD dD eD","900":"PC J fD qC"},J:{"1":"A","900":"D"},K:{"1":"H","8":"A B","900":"C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"900":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"classList (DOMTokenList)",D:true}; +module.exports={A:{A:{"8":"K E F G bC","1924":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC eC","516":"0 z","772":"J GB K E F G A B C L M H N O P HB v w x y fC"},D:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J GB K E","516":"0 z IB JB","772":"y","900":"F G A B C L M H N O P HB v w x"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB gC KC","900":"K hC iC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","8":"G B rC sC tC uC 7B","900":"C ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC","900":"xC yC"},H:{"900":"ID"},I:{"1":"D ND OD","8":"JD KD LD","900":"DC J MD aC"},J:{"1":"A","900":"E"},K:{"1":"I","8":"A B","900":"C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"900":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"classList (DOMTokenList)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js b/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js index ff75b76cb..0956a8d4f 100644 --- a/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +++ b/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"Client Hints: DPR, Width, Viewport-Width",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"Client Hints: DPR, Width, Viewport-Width",D:true}; diff --git a/node_modules/caniuse-lite/data/features/clipboard.js b/node_modules/caniuse-lite/data/features/clipboard.js index 448264a42..8df012862 100644 --- a/node_modules/caniuse-lite/data/features/clipboard.js +++ b/node_modules/caniuse-lite/data/features/clipboard.js @@ -1 +1 @@ -module.exports={A:{A:{"2436":"K D E F A B rC"},B:{"260":"O P","2436":"C L M G N","8196":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","772":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB","4100":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"J UB K D E F A B C","2564":"1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","8196":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","10244":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC","2308":"A B WC JC","2820":"J UB K D E F yC zC 0C 1C"},F:{"2":"F B 9C AD BD CD JC pC DD","16":"C","516":"KC","2564":"1 2 3 4 5 6 7 8 9 G N O P VB WB","8196":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","10244":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},G:{"1":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","2820":"E FD GD HD ID JD KD LD MD ND OD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","260":"I","2308":"gD hD"},J:{"2":"D","2308":"A"},K:{"2":"A B C JC pC","16":"KC","8196":"H"},L:{"8196":"I"},M:{"1028":"IC"},N:{"2":"A B"},O:{"8196":"LC"},P:{"2052":"iD jD","2308":"J","8196":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"8196":"tD"},R:{"8196":"uD"},S:{"4100":"vD wD"}},B:5,C:"Synchronous Clipboard API",D:true}; +module.exports={A:{A:{"2436":"K E F G A B bC"},B:{"260":"O P","2436":"C L M H N","8196":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","772":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","4100":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"J GB K E F G A B C","2564":"0 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","8196":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","10244":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC","2308":"A B LC 7B","2820":"J GB K E F G hC iC jC kC"},F:{"2":"G B rC sC tC uC 7B ZC vC","16":"C","516":"8B","2564":"0 H N O P HB v w x y z IB JB KB LB","8196":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","10244":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB"},G:{"1":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","2820":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","260":"D","2308":"ND OD"},J:{"2":"E","2308":"A"},K:{"2":"A B C 7B ZC","16":"8B","8196":"I"},L:{"8196":"D"},M:{"1028":"D"},N:{"2":"A B"},O:{"8196":"9B"},P:{"2052":"PD QD","2308":"J","8196":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"8196":"aD"},R:{"8196":"bD"},S:{"4100":"cD dD"}},B:5,C:"Synchronous Clipboard API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/colr-v1.js b/node_modules/caniuse-lite/data/features/colr-v1.js index aa91de8cf..fca5f3c21 100644 --- a/node_modules/caniuse-lite/data/features/colr-v1.js +++ b/node_modules/caniuse-lite/data/features/colr-v1.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g"},C:{"1":"0 q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g vC wC","258":"h i j k l m n","578":"o p"},D:{"1":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y","194":"Z a b c d e f g"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"16":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"COLR/CPAL(v1) Font Formats",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g"},C:{"1":"1 2 3 4 5 6 7 8 9 q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g eC fC","258":"h i j k l m n","578":"o p"},D:{"1":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y","194":"Z a b c d e f g"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"COLR/CPAL(v1) Font Formats",D:true}; diff --git a/node_modules/caniuse-lite/data/features/colr.js b/node_modules/caniuse-lite/data/features/colr.js index 1fb8b5f02..4e66a29c8 100644 --- a/node_modules/caniuse-lite/data/features/colr.js +++ b/node_modules/caniuse-lite/data/features/colr.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","257":"F A B"},B:{"1":"0 C L M G N O P t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","513":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB vC wC"},D:{"1":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B","513":"AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","129":"B C L JC KC 2C","1026":"NC eC"},F:{"1":"0 f g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB 9C AD BD CD JC pC DD KC","513":"zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","1026":"NC eC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"16":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"COLR/CPAL(v0) Font Formats",D:true}; +module.exports={A:{A:{"2":"K E F bC","257":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P t u AB BB CB DB EB FB D","513":"Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB","513":"zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","129":"B C L 7B 8B lC","1026":"BC TC"},F:{"1":"f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB rC sC tC uC 7B ZC vC 8B","513":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","1026":"BC TC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"COLR/CPAL(v0) Font Formats",D:true}; diff --git a/node_modules/caniuse-lite/data/features/comparedocumentposition.js b/node_modules/caniuse-lite/data/features/comparedocumentposition.js index 7cb672015..50de3fa06 100644 --- a/node_modules/caniuse-lite/data/features/comparedocumentposition.js +++ b/node_modules/caniuse-lite/data/features/comparedocumentposition.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC PC vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB K xC VC","132":"D E F zC 0C 1C","260":"yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","16":"F B 9C AD BD CD JC pC","132":"G N"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC","132":"E ED qC FD GD HD ID JD KD"},H:{"1":"bD"},I:{"1":"I gD hD","16":"cD dD","132":"PC J eD fD qC"},J:{"132":"D A"},K:{"1":"C H KC","16":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Node.compareDocumentPosition()",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","132":"0 H N O P HB v w x y z IB JB KB LB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB K gC KC","132":"E F G iC jC kC","260":"hC"},F:{"1":"0 C O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","16":"G B rC sC tC uC 7B ZC","132":"H N"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC","132":"F wC aC xC yC zC 0C 1C 2C"},H:{"1":"ID"},I:{"1":"D ND OD","16":"JD KD","132":"DC J LD MD aC"},J:{"132":"E A"},K:{"1":"C I 8B","16":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Node.compareDocumentPosition()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/console-basic.js b/node_modules/caniuse-lite/data/features/console-basic.js index d19faf103..adf2f7a92 100644 --- a/node_modules/caniuse-lite/data/features/console-basic.js +++ b/node_modules/caniuse-lite/data/features/console-basic.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D rC","132":"E F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F 9C AD BD CD"},G:{"1":"VC ED qC FD","513":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"4097":"bD"},I:{"1025":"PC J I cD dD eD fD qC gD hD"},J:{"258":"D A"},K:{"2":"A","258":"B C JC pC KC","1025":"H"},L:{"1025":"I"},M:{"2049":"IC"},N:{"258":"A B"},O:{"258":"LC"},P:{"1025":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1025":"uD"},S:{"1":"vD wD"}},B:1,C:"Basic console logging functions",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E bC","132":"F G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G rC sC tC uC"},G:{"1":"KC wC aC xC","513":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"4097":"ID"},I:{"1025":"DC J D JD KD LD MD aC ND OD"},J:{"258":"E A"},K:{"2":"A","258":"B C 7B ZC 8B","1025":"I"},L:{"1025":"D"},M:{"2049":"D"},N:{"258":"A B"},O:{"258":"9B"},P:{"1025":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1025":"bD"},S:{"1":"cD dD"}},B:1,C:"Basic console logging functions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/console-time.js b/node_modules/caniuse-lite/data/features/console-time.js index 41e35a05a..0f3793931 100644 --- a/node_modules/caniuse-lite/data/features/console-time.js +++ b/node_modules/caniuse-lite/data/features/console-time.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F 9C AD BD CD","16":"B"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"H","16":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"console.time and console.timeEnd",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G rC sC tC uC","16":"B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"I","16":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"console.time and console.timeEnd",D:true}; diff --git a/node_modules/caniuse-lite/data/features/const.js b/node_modules/caniuse-lite/data/features/const.js index 627b42aff..2cc11e2fb 100644 --- a/node_modules/caniuse-lite/data/features/const.js +++ b/node_modules/caniuse-lite/data/features/const.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","2052":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"sC PC J UB K D E F A B C vC wC","260":"1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","260":"1 J UB K D E F A B C L M G N O P VB","772":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB","1028":"iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","260":"J UB A xC VC WC","772":"K D E F yC zC 0C 1C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C","132":"B AD BD CD JC pC","644":"C DD KC","772":"1 2 3 4 5 6 7 8 G N O P VB","1028":"9 WB XB YB ZB aB bB cB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"VC ED qC LD MD","772":"E FD GD HD ID JD KD"},H:{"644":"bD"},I:{"1":"I","16":"cD dD","260":"eD","772":"PC J fD qC gD hD"},J:{"772":"D A"},K:{"1":"H","132":"A B JC pC","644":"C KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","1028":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"const",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","2052":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"cC DC J GB K E F G A B C eC fC","260":"0 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","260":"J GB K E F G A B C L M H N O P HB v","772":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","1028":"XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","260":"J GB A gC KC LC","772":"K E F G hC iC jC kC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC","132":"B sC tC uC 7B ZC","644":"C vC 8B","772":"0 H N O P HB v w x y z IB JB","1028":"KB LB MB NB OB PB QB RB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","260":"KC wC aC 3C 4C","772":"F xC yC zC 0C 1C 2C"},H:{"644":"ID"},I:{"1":"D","16":"JD KD","260":"LD","772":"DC J MD aC ND OD"},J:{"772":"E A"},K:{"1":"I","132":"A B 7B ZC","644":"C 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","1028":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"const",D:true}; diff --git a/node_modules/caniuse-lite/data/features/constraint-validation.js b/node_modules/caniuse-lite/data/features/constraint-validation.js index 59f5b1d34..72d314c42 100644 --- a/node_modules/caniuse-lite/data/features/constraint-validation.js +++ b/node_modules/caniuse-lite/data/features/constraint-validation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","900":"A B"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","388":"M G N","900":"C L"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","260":"qB rB","388":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","900":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","388":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB","900":"1 2 3 4 5 G N O P VB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC","388":"E F 0C 1C","900":"K D yC zC"},F:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B 9C AD BD CD JC pC","388":"1 2 3 4 5 6 7 G N O P VB","900":"C DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","388":"E HD ID JD KD","900":"FD GD"},H:{"2":"bD"},I:{"1":"I","16":"PC cD dD eD","388":"gD hD","900":"J fD qC"},J:{"16":"D","388":"A"},K:{"1":"H","16":"A B JC pC","900":"C KC"},L:{"1":"I"},M:{"1":"IC"},N:{"900":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","388":"vD"}},B:1,C:"Constraint Validation API",D:true}; +module.exports={A:{A:{"2":"K E F G bC","900":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","388":"M H N","900":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","260":"fB gB","388":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB","900":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB"},D:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","388":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB","900":"H N O P HB v w x y z"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC","388":"F G jC kC","900":"K E hC iC"},F:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B rC sC tC uC 7B ZC","388":"0 H N O P HB v w x y z IB","900":"C vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","388":"F zC 0C 1C 2C","900":"xC yC"},H:{"2":"ID"},I:{"1":"D","16":"DC JD KD LD","388":"ND OD","900":"J MD aC"},J:{"16":"E","388":"A"},K:{"1":"I","16":"A B 7B ZC","900":"C 8B"},L:{"1":"D"},M:{"1":"D"},N:{"900":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","388":"cD"}},B:1,C:"Constraint Validation API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/contenteditable.js b/node_modules/caniuse-lite/data/features/contenteditable.js index eefe1e021..e98a192a0 100644 --- a/node_modules/caniuse-lite/data/features/contenteditable.js +++ b/node_modules/caniuse-lite/data/features/contenteditable.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC","4":"PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"contenteditable attribute (basic support)",D:true}; +module.exports={A:{A:{"1":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC","4":"DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"contenteditable attribute (basic support)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js b/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js index 937494092..0171c563a 100644 --- a/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +++ b/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","129":"1 2 3 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L","257":"1 2 3 4 5 M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","257":"K zC","260":"yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","257":"GD","260":"FD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D","257":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Content Security Policy 1.0",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","129":"J GB K E F G A B C L M H N O P HB v w x"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L","257":"M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","257":"K iC","260":"hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","257":"yC","260":"xC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E","257":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Content Security Policy 1.0",D:true}; diff --git a/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js b/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js index 654d1e537..24cf59e04 100644 --- a/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +++ b/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","4100":"G N O P"},C:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC","132":"YB ZB aB bB","260":"cB","516":"dB eB fB gB hB iB jB kB lB"},D:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB","1028":"dB eB fB","2052":"gB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 F B C G N O P VB 9C AD BD CD JC pC DD KC","1028":"4 5 6","2052":"7"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Content Security Policy Level 2",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","4100":"H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC","132":"NB OB PB QB","260":"RB","516":"SB TB UB VB WB XB YB ZB aB"},D:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB","1028":"SB TB UB","2052":"VB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x rC sC tC uC 7B ZC vC 8B","1028":"0 y z","2052":"IB"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Content Security Policy Level 2",D:true}; diff --git a/node_modules/caniuse-lite/data/features/cookie-store-api.js b/node_modules/caniuse-lite/data/features/cookie-store-api.js index a16de1ff8..91d54ffdc 100644 --- a/node_modules/caniuse-lite/data/features/cookie-store-api.js +++ b/node_modules/caniuse-lite/data/features/cookie-store-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","194":"Q H R S T U V"},C:{"1":"IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB vC wC","322":"OB PB QB RB SB TB I TC"},D:{"1":"0 W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B","194":"3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V"},E:{"1":"mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC"},F:{"1":"0 DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 9C AD BD CD JC pC DD KC","194":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},G:{"1":"mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Cookie Store API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","194":"Q I R S T U V"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB","194":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB rC sC tC uC 7B ZC vC 8B","194":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Cookie Store API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/cors.js b/node_modules/caniuse-lite/data/features/cors.js index 03e3ce764..3922da5c0 100644 --- a/node_modules/caniuse-lite/data/features/cors.js +++ b/node_modules/caniuse-lite/data/features/cors.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D rC","132":"A","260":"E F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC","1025":"RC 1B 2B 3B 4B 5B 6B 7B 8B 9B"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"J UB K D E F A B C"},E:{"2":"xC VC","513":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","644":"J UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD"},G:{"513":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","644":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"I gD hD","132":"PC J cD dD eD fD qC"},J:{"1":"A","132":"D"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","132":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Cross-Origin Resource Sharing",D:true}; +module.exports={A:{A:{"1":"B","2":"K E bC","132":"A","260":"F G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC","1025":"FC qB rB sB tB uB vB wB xB yB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB K E F G A B C"},E:{"2":"gC KC","513":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","644":"J GB hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC"},G:{"513":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","644":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"D ND OD","132":"DC J JD KD LD MD aC"},J:{"1":"A","132":"E"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","132":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Cross-Origin Resource Sharing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/createimagebitmap.js b/node_modules/caniuse-lite/data/features/createimagebitmap.js index 999e8342d..de002888e 100644 --- a/node_modules/caniuse-lite/data/features/createimagebitmap.js +++ b/node_modules/caniuse-lite/data/features/createimagebitmap.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB vC wC","1028":"c d e f g","3076":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b","8196":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","132":"rB sB","260":"tB uB","516":"vB wB xB yB zB"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C","4100":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB 9C AD BD CD JC pC DD KC","132":"eB fB","260":"gB hB","516":"iB jB kB lB mB"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD","4100":"XD XC YC LC YD MC ZC aC bC cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"8196":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"3076":"vD wD"}},B:1,C:"createImageBitmap",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB eC fC","1028":"c d e f g","3076":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b","8196":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","132":"gB hB","260":"iB jB","516":"kB lB mB nB oB"},E:{"2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC","4100":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB rC sC tC uC 7B ZC vC 8B","132":"TB UB","260":"VB WB","516":"XB YB ZB aB bB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED","4100":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"8196":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"3076":"cD dD"}},B:1,C:"createImageBitmap",D:true}; diff --git a/node_modules/caniuse-lite/data/features/credential-management.js b/node_modules/caniuse-lite/data/features/credential-management.js index 0931fca4d..6dd266a69 100644 --- a/node_modules/caniuse-lite/data/features/credential-management.js +++ b/node_modules/caniuse-lite/data/features/credential-management.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","66":"pB qB rB","129":"sB tB uB vB wB xB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB 9C AD BD CD JC pC DD KC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"Credential Management API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB","66":"eB fB gB","129":"hB iB jB kB lB mB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB rC sC tC uC 7B ZC vC 8B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"Credential Management API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js b/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js deleted file mode 100644 index fcf154d80..000000000 --- a/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB"},E:{"1":"kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC"},F:{"1":"0 v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 9C AD BD CD JC pC DD KC"},G:{"1":"kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"View Transitions (cross-document)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/cryptography.js b/node_modules/caniuse-lite/data/features/cryptography.js index be50da89a..350601595 100644 --- a/node_modules/caniuse-lite/data/features/cryptography.js +++ b/node_modules/caniuse-lite/data/features/cryptography.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E F A","164":"B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","513":"C L M G N O P"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB vC wC","66":"ZB aB"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB K D xC VC yC zC","289":"E F A 0C 1C WC"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","8":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC FD GD HD","289":"E ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","8":"PC J cD dD eD fD qC gD hD"},J:{"8":"D A"},K:{"1":"H","8":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A","164":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Web Cryptography",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F G A","164":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","513":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB eC fC","66":"OB PB"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB K E gC KC hC iC","289":"F G A jC kC LC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","8":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC xC yC zC","289":"F 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","8":"DC J JD KD LD MD aC ND OD"},J:{"8":"E A"},K:{"1":"I","8":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A","164":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Web Cryptography",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-all.js b/node_modules/caniuse-lite/data/features/css-all.js index d226a90ef..e1be9023f 100644 --- a/node_modules/caniuse-lite/data/features/css-all.js +++ b/node_modules/caniuse-lite/data/features/css-all.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC gD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS all property",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC ND"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS all property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-anchor-positioning.js b/node_modules/caniuse-lite/data/features/css-anchor-positioning.js index ea2c83b4d..318799e0f 100644 --- a/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +++ b/node_modules/caniuse-lite/data/features/css-anchor-positioning.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z 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","194":"0 AB BB CB DB EB FB GB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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","194":"0 AB BB CB DB EB FB GB"},E:{"1":"oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC"},F:{"1":"0 u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l 9C AD BD CD JC pC DD KC","194":"m n o p q r s t"},G:{"1":"oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"8 9","2":"1 2 3 4 5 6 7 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Anchor Positioning",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"EB FB D","2":"1 2 3 4 5 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"6 7 8 9 AB BB CB DB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"EB FB D HC IC JC","2":"0 1 2 3 4 5 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"6 7 8 9 AB BB CB DB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l rC sC tC uC 7B ZC vC 8B","194":"m n o p q r s t"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Anchor Positioning",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-animation.js b/node_modules/caniuse-lite/data/features/css-animation.js index 5c5d5f9ae..f7aa61e0b 100644 --- a/node_modules/caniuse-lite/data/features/css-animation.js +++ b/node_modules/caniuse-lite/data/features/css-animation.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J vC wC","33":"UB K D E F A B C L M G"},D:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","33":"K D E yC zC 0C","292":"J UB"},F:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD","33":"1 2 3 4 5 6 7 8 9 C G N O P VB WB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E GD HD ID","164":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"I","33":"J fD qC gD hD","164":"PC cD dD eD"},J:{"33":"D A"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS Animation",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J eC fC","33":"GB K E F G A B C L M H"},D:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","33":"K E F hC iC jC","292":"J GB"},F:{"1":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC","33":"0 C H N O P HB v w x y z IB JB KB LB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F yC zC 0C","164":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"D","33":"J MD aC ND OD","164":"DC JD KD LD"},J:{"33":"E A"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS Animation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-any-link.js b/node_modules/caniuse-lite/data/features/css-any-link.js index 89166fac1..06bd66a12 100644 --- a/node_modules/caniuse-lite/data/features/css-any-link.js +++ b/node_modules/caniuse-lite/data/features/css-any-link.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC","33":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB vC wC"},D:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB K xC VC yC","33":"D E zC 0C"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD","33":"E GD HD ID"},H:{"2":"bD"},I:{"1":"I","16":"PC J cD dD eD fD qC","33":"gD hD"},J:{"16":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","16":"J","33":"iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:5,C:"CSS :any-link selector",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC","33":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB K gC KC hC","33":"E F iC jC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC","33":"F yC zC 0C"},H:{"2":"ID"},I:{"1":"D","16":"DC J JD KD LD MD aC","33":"ND OD"},J:{"16":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","16":"J","33":"PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:5,C:"CSS :any-link selector",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-appearance.js b/node_modules/caniuse-lite/data/features/css-appearance.js index ba0efaa63..23c62a0ce 100644 --- a/node_modules/caniuse-lite/data/features/css-appearance.js +++ b/node_modules/caniuse-lite/data/features/css-appearance.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"S","164":"Q H R","388":"C L M G N O P"},C:{"1":"0 H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","164":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","676":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB vC wC"},D:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"S","164":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","164":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"9B AC BC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","164":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","164":"PC J cD dD eD fD qC gD hD"},J:{"164":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A","388":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","164":"J iD jD kD lD mD WC nD oD pD"},Q:{"164":"tD"},R:{"1":"uD"},S:{"1":"wD","164":"vD"}},B:5,C:"CSS Appearance",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"S","164":"Q I R","388":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","164":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","676":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"S","164":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","164":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"yB zB 0B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","164":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","164":"DC J JD KD LD MD aC ND OD"},J:{"164":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A","388":"B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","164":"J PD QD RD SD TD LC UD VD WD"},Q:{"164":"aD"},R:{"1":"bD"},S:{"1":"dD","164":"cD"}},B:5,C:"CSS Appearance",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-at-counter-style.js b/node_modules/caniuse-lite/data/features/css-at-counter-style.js index 7eaff44cd..8bebf540f 100644 --- a/node_modules/caniuse-lite/data/features/css-at-counter-style.js +++ b/node_modules/caniuse-lite/data/features/css-at-counter-style.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z","132":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","132":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z","132":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C","4":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC 9C AD BD CD JC pC DD KC","132":"0 GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD","4":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","132":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"132":"I"},M:{"132":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"J iD jD kD lD mD WC nD oD pD qD rD","132":"1 2 3 4 5 6 7 8 9 MC NC OC sD"},Q:{"2":"tD"},R:{"132":"uD"},S:{"132":"vD wD"}},B:4,C:"CSS Counter Styles",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T U V W X Y Z","132":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","132":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z","132":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC","4":"BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B rC sC tC uC 7B ZC vC 8B","132":"5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD","4":"BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","132":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"132":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"J PD QD RD SD TD LC UD VD WD XD YD","132":"0 v w x y z AC BC CC ZD"},Q:{"2":"aD"},R:{"132":"bD"},S:{"132":"cD dD"}},B:4,C:"CSS Counter Styles",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-autofill.js b/node_modules/caniuse-lite/data/features/css-autofill.js index a92bf3e5d..a2bc1d1f2 100644 --- a/node_modules/caniuse-lite/data/features/css-autofill.js +++ b/node_modules/caniuse-lite/data/features/css-autofill.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},L:{"1":"I"},B:{"1":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","33":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U vC wC"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 f g h i j k l m n o p q r s t u v w x y z","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"8C","33":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},P:{"1":"2 3 4 5 6 7 8 9","33":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"}},B:6,C:":autofill CSS pseudo-class",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D","2":"C L M H N O P","33":"Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U eC fC"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"qC","33":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},P:{"1":"0 w x y z","33":"J v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"}},B:6,C:":autofill CSS pseudo-class",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/css-backdrop-filter.js b/node_modules/caniuse-lite/data/features/css-backdrop-filter.js index 269bcd50c..b472117ea 100644 --- a/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +++ b/node_modules/caniuse-lite/data/features/css-backdrop-filter.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N","257":"O P"},C:{"1":"0 m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B vC wC","578":"9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l"},D:{"1":"0 FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC"},E:{"1":"OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C","33":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB 9C AD BD CD JC pC DD KC","194":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"1":"OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","33":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J","194":"iD jD kD lD mD WC nD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS Backdrop Filter",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N","257":"O P"},C:{"1":"1 2 3 4 5 6 7 8 9 m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB eC fC","578":"yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l"},D:{"1":"1 2 3 4 5 6 7 8 9 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB","194":"dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},E:{"1":"CC qC","2":"J GB K E F gC KC hC iC jC","33":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB rC sC tC uC 7B ZC vC 8B","194":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"1":"CC","2":"F KC wC aC xC yC zC 0C","33":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J","194":"PD QD RD SD TD LC UD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS Backdrop Filter",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-background-offsets.js b/node_modules/caniuse-lite/data/features/css-background-offsets.js index e403c1ca2..953e0b1fe 100644 --- a/node_modules/caniuse-lite/data/features/css-background-offsets.js +++ b/node_modules/caniuse-lite/data/features/css-background-offsets.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C vC wC"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS background-position edge offsets",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS background-position edge offsets",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js b/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js index 596444da0..4c47150a3 100644 --- a/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +++ b/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB vC wC"},D:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB","260":"nB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC","132":"E F A 0C 1C"},F:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 F B C G N O P VB 9C AD BD CD JC pC DD KC","260":"aB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","132":"E ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS background-blend-mode",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB","260":"cB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC","132":"F G A jC kC"},F:{"1":"0 x y z IB JB KB LB MB NB OB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w rC sC tC uC 7B ZC vC 8B","260":"PB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","132":"F 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS background-blend-mode",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js b/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js index 2f38688c4..851f74859 100644 --- a/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +++ b/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"MB NB OB PB QB RB SB TB I","2":"C L M G N O P","164":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB"},C:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB vC wC"},D:{"1":"MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 J UB K D E F A B C L M G N O P VB","164":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB"},E:{"2":"J UB K xC VC yC","164":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 z","2":"F 9C AD BD CD","129":"B C JC pC DD KC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"VC ED qC FD GD","164":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"132":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","164":"gD hD"},J:{"2":"D","164":"A"},K:{"2":"A","129":"B C JC pC KC","164":"H"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"164":"LC"},P:{"164":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"164":"tD"},R:{"164":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS box-decoration-break",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","164":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB eC fC"},D:{"2":"J GB K E F G A B C L M H N O P HB v w","164":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K gC KC hC","164":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G rC sC tC uC","129":"B C 7B ZC vC 8B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"KC wC aC xC yC","164":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"132":"ID"},I:{"2":"DC J JD KD LD MD aC","164":"D ND OD"},J:{"2":"E","164":"A"},K:{"2":"A","129":"B C 7B ZC 8B","164":"I"},L:{"164":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"164":"9B"},P:{"164":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"164":"aD"},R:{"164":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS box-decoration-break",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-boxshadow.js b/node_modules/caniuse-lite/data/features/css-boxshadow.js index 577477e60..78a87c4c7 100644 --- a/node_modules/caniuse-lite/data/features/css-boxshadow.js +++ b/node_modules/caniuse-lite/data/features/css-boxshadow.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","33":"vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"J UB K D E F"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"UB","164":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"ED qC","164":"VC"},H:{"2":"bD"},I:{"1":"J I fD qC gD hD","164":"PC cD dD eD"},J:{"1":"A","33":"D"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 Box-shadow",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","33":"eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"J GB K E F G"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"GB","164":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"wC aC","164":"KC"},H:{"2":"ID"},I:{"1":"J D MD aC ND OD","164":"DC JD KD LD"},J:{"1":"A","33":"E"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 Box-shadow",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-canvas.js b/node_modules/caniuse-lite/data/features/css-canvas.js index 96ef0db3a..8994ab5c9 100644 --- a/node_modules/caniuse-lite/data/features/css-canvas.js +++ b/node_modules/caniuse-lite/data/features/css-canvas.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"2":"xC VC","33":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 F B C cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB"},G:{"33":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"I","33":"PC J cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS Canvas Drawings",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},E:{"2":"gC KC","33":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},G:{"33":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"D","33":"DC J JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS Canvas Drawings",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-caret-color.js b/node_modules/caniuse-lite/data/features/css-caret-color.js index 3c58b09f5..0dbe54e16 100644 --- a/node_modules/caniuse-lite/data/features/css-caret-color.js +++ b/node_modules/caniuse-lite/data/features/css-caret-color.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC"},D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:2,C:"CSS caret-color",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:2,C:"CSS caret-color",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-cascade-layers.js b/node_modules/caniuse-lite/data/features/css-cascade-layers.js index 99e37c35a..6c55d2159 100644 --- a/node_modules/caniuse-lite/data/features/css-cascade-layers.js +++ b/node_modules/caniuse-lite/data/features/css-cascade-layers.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e","322":"f g h"},C:{"1":"0 g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c vC wC","194":"d e f"},D:{"1":"0 i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e","322":"f g h"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U 9C AD BD CD JC pC DD KC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS Cascade Layers",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e","322":"f g h"},C:{"1":"1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c eC fC","194":"d e f"},D:{"1":"1 2 3 4 5 6 7 8 9 i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e","322":"f g h"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U rC sC tC uC 7B ZC vC 8B"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS Cascade Layers",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-cascade-scope.js b/node_modules/caniuse-lite/data/features/css-cascade-scope.js index 4e68d4b13..07f92bc26 100644 --- a/node_modules/caniuse-lite/data/features/css-cascade-scope.js +++ b/node_modules/caniuse-lite/data/features/css-cascade-scope.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m","194":"0 n o p q r s t u v w x y z"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m","194":"0 n o p q r s t u v w x y z"},E:{"1":"hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC"},F:{"1":"0 p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y 9C AD BD CD JC pC DD KC","194":"Z a b c d e f g h i j k l m n o"},G:{"1":"hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"6 7 8 9","2":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"Scoped Styles: the @scope rule",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"7 8 9 AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m","194":"1 2 3 4 5 6 n o p q r s t u"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"7 8 9 AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m","194":"1 2 3 4 5 6 n o p q r s t u"},E:{"1":"WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC"},F:{"1":"p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y rC sC tC uC 7B ZC vC 8B","194":"Z a b c d e f g h i j k l m n o"},G:{"1":"WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0","2":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"Scoped Styles: the @scope rule",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-case-insensitive.js b/node_modules/caniuse-lite/data/features/css-case-insensitive.js index 44e061f96..c50a7ca1b 100644 --- a/node_modules/caniuse-lite/data/features/css-case-insensitive.js +++ b/node_modules/caniuse-lite/data/features/css-case-insensitive.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Case-insensitive CSS attribute selectors",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Case-insensitive CSS attribute selectors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-clip-path.js b/node_modules/caniuse-lite/data/features/css-clip-path.js index 7c939513a..e10e6155d 100644 --- a/node_modules/caniuse-lite/data/features/css-clip-path.js +++ b/node_modules/caniuse-lite/data/features/css-clip-path.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O","260":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","3138":"P"},C:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC","644":"oB pB qB rB sB tB uB"},D:{"2":"1 2 3 4 J UB K D E F A B C L M G N O P VB","260":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","292":"5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"2":"J UB K xC VC yC zC","260":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","292":"D E F A B C L 0C 1C WC JC KC"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","260":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","292":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB"},G:{"2":"VC ED qC FD GD","260":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","292":"E HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","260":"I","292":"gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","260":"H"},L:{"260":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"260":"LC"},P:{"260":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","292":"J iD"},Q:{"260":"tD"},R:{"260":"uD"},S:{"1":"wD","644":"vD"}},B:4,C:"CSS clip-path property (for HTML)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O","260":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","3138":"P"},C:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC","644":"dB eB fB gB hB iB jB"},D:{"2":"J GB K E F G A B C L M H N O P HB v w x y","260":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","292":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"2":"J GB K gC KC hC iC","260":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","292":"E F G A B C L jC kC LC 7B 8B"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","260":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","292":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB"},G:{"2":"KC wC aC xC yC","260":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","292":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","260":"D","292":"ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"260":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"260":"9B"},P:{"260":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","292":"J PD"},Q:{"260":"aD"},R:{"260":"bD"},S:{"1":"dD","644":"cD"}},B:4,C:"CSS clip-path property (for HTML)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-color-adjust.js b/node_modules/caniuse-lite/data/features/css-color-adjust.js index dbe8c66ce..0a0d8bac1 100644 --- a/node_modules/caniuse-lite/data/features/css-color-adjust.js +++ b/node_modules/caniuse-lite/data/features/css-color-adjust.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC"},D:{"16":"J UB K D E F A B C L M G N O P","33":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"16":"PC J cD dD eD fD qC gD hD","33":"I"},J:{"16":"D A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"16":"I"},M:{"1":"IC"},N:{"16":"A B"},O:{"16":"LC"},P:{"16":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"33":"tD"},R:{"16":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS print-color-adjust",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC"},D:{"16":"J GB K E F G A B C L M H N O P","33":"0 1 2 3 4 5 6 7 8 9 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"16":"DC J JD KD LD MD aC ND OD","33":"D"},J:{"16":"E A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"16":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"16":"9B"},P:{"16":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"33":"aD"},R:{"16":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS print-color-adjust",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-color-function.js b/node_modules/caniuse-lite/data/features/css-color-function.js index ed67daf13..5d28dbbfb 100644 --- a/node_modules/caniuse-lite/data/features/css-color-function.js +++ b/node_modules/caniuse-lite/data/features/css-color-function.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},C:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t vC wC","578":"u v"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C","132":"B C L M WC JC KC 2C 3C"},F:{"1":"0 h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d 9C AD BD CD JC pC DD KC","322":"e f g"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD","132":"MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"3 4 5 6 7 8 9","2":"1 2 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS color() function",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},C:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t eC fC","578":"1 u"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC","132":"B C L M LC 7B 8B lC mC"},F:{"1":"h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d rC sC tC uC 7B ZC vC 8B","322":"e f g"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C","132":"4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 x y z","2":"J v w PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS color() function",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-conic-gradients.js b/node_modules/caniuse-lite/data/features/css-conic-gradients.js index acf837b55..d3a2442db 100644 --- a/node_modules/caniuse-lite/data/features/css-conic-gradients.js +++ b/node_modules/caniuse-lite/data/features/css-conic-gradients.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC vC wC","578":"EC FC GC HC Q H R SC"},D:{"1":"0 AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","257":"8B 9B","450":"QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"0 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB 9C AD BD CD JC pC DD KC","257":"xB yB","450":"nB oB pB qB rB sB tB uB vB wB"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS Conical Gradients",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B eC fC","578":"3B 4B 5B 6B Q I R GC"},D:{"1":"1 2 3 4 5 6 7 8 9 zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","257":"xB yB","450":"EC pB FC qB rB sB tB uB vB wB"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B"},F:{"1":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB rC sC tC uC 7B ZC vC 8B","257":"mB nB","450":"cB dB eB fB gB hB iB jB kB lB"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS Conical Gradients",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-container-queries-style.js b/node_modules/caniuse-lite/data/features/css-container-queries-style.js index f8309687f..fd430ab6f 100644 --- a/node_modules/caniuse-lite/data/features/css-container-queries-style.js +++ b/node_modules/caniuse-lite/data/features/css-container-queries-style.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C","260":"jC kC lC mC nC oC 8C","772":"OC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b 9C AD BD CD JC pC DD KC","194":"c d e f g","260":"0 h i j k l m n o p q r s t u v w x y z"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD","260":"jC kC lC mC nC oC","772":"OC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","260":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","260":"H"},L:{"260":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","260":"3 4 5 6 7 8 9"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Container Style Queries",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC","260":"CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b rC sC tC uC 7B ZC vC 8B","194":"c d e f g","260":"h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC","260":"CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","260":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"260":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J v w PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","260":"0 x y z"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Container Style Queries",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-container-queries.js b/node_modules/caniuse-lite/data/features/css-container-queries.js index 660e5a525..fdd33b78d 100644 --- a/node_modules/caniuse-lite/data/features/css-container-queries.js +++ b/node_modules/caniuse-lite/data/features/css-container-queries.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","516":"o"},C:{"1":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s vC wC"},D:{"1":"0 p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a","194":"c d e f g h i j k l m n","450":"b","516":"o"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 d e f g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 9C AD BD CD JC pC DD KC","194":"Q H R SC S T U V W X Y Z","516":"a b c"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Container Queries (Size)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n","516":"o"},C:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a","194":"c d e f g h i j k l m n","450":"b","516":"o"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B rC sC tC uC 7B ZC vC 8B","194":"Q I R GC S T U V W X Y Z","516":"a b c"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Container Queries (Size)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-container-query-units.js b/node_modules/caniuse-lite/data/features/css-container-query-units.js index 2e37f827b..7c617a4d0 100644 --- a/node_modules/caniuse-lite/data/features/css-container-query-units.js +++ b/node_modules/caniuse-lite/data/features/css-container-query-units.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s vC wC"},D:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b","194":"k l m n","450":"c d e f g h i j"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 9C AD BD CD JC pC DD KC","194":"Q H R SC S T U V W X Y Z"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Container Query Units",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b","194":"k l m n","450":"c d e f g h i j"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B rC sC tC uC 7B ZC vC 8B","194":"Q I R GC S T U V W X Y Z"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Container Query Units",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-containment.js b/node_modules/caniuse-lite/data/features/css-containment.js index 620372b97..a44badb5c 100644 --- a/node_modules/caniuse-lite/data/features/css-containment.js +++ b/node_modules/caniuse-lite/data/features/css-containment.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB vC wC","194":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},D:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","66":"sB"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB 9C AD BD CD JC pC DD KC","66":"fB gB"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","194":"vD"}},B:2,C:"CSS Containment",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB eC fC","194":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB"},D:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","66":"hB"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB rC sC tC uC 7B ZC vC 8B","66":"UB VB"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","194":"cD"}},B:2,C:"CSS Containment",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-content-visibility.js b/node_modules/caniuse-lite/data/features/css-content-visibility.js index 338bb4690..c56e37bb9 100644 --- a/node_modules/caniuse-lite/data/features/css-content-visibility.js +++ b/node_modules/caniuse-lite/data/features/css-content-visibility.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T"},C:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r vC wC","194":"0 s t u v w x y z AB BB CB DB EB FB GB"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T"},E:{"1":"OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C"},F:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B 9C AD BD CD JC pC DD KC"},G:{"1":"OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS content-visibility",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T"},C:{"1":"EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r eC fC","194":"1 2 3 4 5 6 7 8 9 s t u AB BB CB DB"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"1":"CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC"},F:{"1":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB rC sC tC uC 7B ZC vC 8B"},G:{"1":"CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS content-visibility",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-counters.js b/node_modules/caniuse-lite/data/features/css-counters.js index 75653ad5a..2ee1af2d9 100644 --- a/node_modules/caniuse-lite/data/features/css-counters.js +++ b/node_modules/caniuse-lite/data/features/css-counters.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS Counters",D:true}; +module.exports={A:{A:{"1":"F G A B","2":"K E bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS Counters",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-crisp-edges.js b/node_modules/caniuse-lite/data/features/css-crisp-edges.js index 3cd962b25..8bf358436 100644 --- a/node_modules/caniuse-lite/data/features/css-crisp-edges.js +++ b/node_modules/caniuse-lite/data/features/css-crisp-edges.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K rC","2340":"D E F A B"},B:{"2":"C L M G N O P","1025":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","513":"4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b","545":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB","1025":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","164":"K","4644":"D E F zC 0C 1C"},F:{"2":"1 2 3 4 5 6 7 8 F B G N O P VB 9C AD BD CD JC pC","545":"C DD KC","1025":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","4260":"FD GD","4644":"E HD ID JD KD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","1025":"I"},J:{"2":"D","4260":"A"},K:{"2":"A B JC pC","545":"C KC","1025":"H"},L:{"1025":"I"},M:{"1":"IC"},N:{"2340":"A B"},O:{"1025":"LC"},P:{"1025":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1025":"tD"},R:{"1025":"uD"},S:{"1":"wD","4097":"vD"}},B:4,C:"Crisp edges/pixelated images",D:true}; +module.exports={A:{A:{"2":"K bC","2340":"E F G A B"},B:{"2":"C L M H N O P","1025":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","513":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b","545":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","1025":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","164":"K","4644":"E F G iC jC kC"},F:{"2":"0 G B H N O P HB v w x y z IB JB rC sC tC uC 7B ZC","545":"C vC 8B","1025":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","4260":"xC yC","4644":"F zC 0C 1C 2C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","1025":"D"},J:{"2":"E","4260":"A"},K:{"2":"A B 7B ZC","545":"C 8B","1025":"I"},L:{"1025":"D"},M:{"1":"D"},N:{"2340":"A B"},O:{"1025":"9B"},P:{"1025":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1025":"aD"},R:{"1025":"bD"},S:{"1":"dD","4097":"cD"}},B:4,C:"Crisp edges/pixelated images",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-cross-fade.js b/node_modules/caniuse-lite/data/features/css-cross-fade.js index 94a5a9128..c70e3c02c 100644 --- a/node_modules/caniuse-lite/data/features/css-cross-fade.js +++ b/node_modules/caniuse-lite/data/features/css-cross-fade.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"J UB K D E F A B C L M G N","33":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","33":"K D E F yC zC 0C 1C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","33":"E FD GD HD ID JD KD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","33":"I gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"33":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"33":"LC"},P:{"33":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"33":"tD"},R:{"33":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS Cross-Fade Function",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"J GB K E F G A B C L M H N","33":"0 1 2 3 4 5 6 7 8 9 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","33":"K E F G hC iC jC kC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","33":"F xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","33":"D ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"33":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"33":"9B"},P:{"33":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"33":"aD"},R:{"33":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS Cross-Fade Function",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-default-pseudo.js b/node_modules/caniuse-lite/data/features/css-default-pseudo.js index 8c84fdd04..50a90b468 100644 --- a/node_modules/caniuse-lite/data/features/css-default-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-default-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC PC vC wC"},D:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC","132":"K D E F A yC zC 0C 1C"},F:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B 9C AD BD CD JC pC","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB","260":"C DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD","132":"E HD ID JD KD LD"},H:{"260":"bD"},I:{"1":"I","16":"PC cD dD eD","132":"J fD qC gD hD"},J:{"16":"D","132":"A"},K:{"1":"H","16":"A B C JC pC","260":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","132":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:":default CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC","132":"K E F G A hC iC jC kC"},F:{"1":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B rC sC tC uC 7B ZC","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","260":"C vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC","132":"F zC 0C 1C 2C 3C"},H:{"260":"ID"},I:{"1":"D","16":"DC JD KD LD","132":"J MD aC ND OD"},J:{"16":"E","132":"A"},K:{"1":"I","16":"A B C 7B ZC","260":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:":default CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js b/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js index 5b153e3e7..138d81067 100644 --- a/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +++ b/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"Q"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"B","2":"J UB K D E F A C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Explicit descendant combinator >>",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"Q"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"B","2":"J GB K E F G A C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Explicit descendant combinator >>",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-deviceadaptation.js b/node_modules/caniuse-lite/data/features/css-deviceadaptation.js index 00174d4e5..669d0707c 100644 --- a/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +++ b/node_modules/caniuse-lite/data/features/css-deviceadaptation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","164":"A B"},B:{"66":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","164":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB","66":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB 9C AD BD CD JC pC DD KC","66":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"292":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A H","292":"B C JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"164":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"66":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Device Adaptation",D:true}; +module.exports={A:{A:{"2":"K E F G bC","164":"A B"},B:{"66":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","164":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB","66":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB rC sC tC uC 7B ZC vC 8B","66":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"292":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A I","292":"B C 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"164":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"66":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Device Adaptation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-dir-pseudo.js b/node_modules/caniuse-lite/data/features/css-dir-pseudo.js index 8f6e9a1f2..98ad960a8 100644 --- a/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-dir-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","194":"0 o p q r s t u v w x y z AB BB"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N vC wC","33":"1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},D:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z","194":"0 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 AB BB"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 9C AD BD CD JC pC DD KC","194":"a b c d e f g h i j k l m n o"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"6 7 8 9","2":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"wD","33":"vD"}},B:5,C:":dir() CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"9 AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n","194":"1 2 3 4 5 6 7 8 o p q r s t u"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N eC fC","33":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},D:{"1":"9 AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z","194":"1 2 3 4 5 6 7 8 a b c d e f g h i j k l m n o p q r s t u"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z rC sC tC uC 7B ZC vC 8B","194":"a b c d e f g h i j k l m n o"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0","2":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"dD","33":"cD"}},B:5,C:":dir() CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-display-contents.js b/node_modules/caniuse-lite/data/features/css-display-contents.js index ffe35c061..7c9ce988e 100644 --- a/node_modules/caniuse-lite/data/features/css-display-contents.js +++ b/node_modules/caniuse-lite/data/features/css-display-contents.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","132":"Q H R S T U V W X","260":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB vC wC","132":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC","260":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","132":"4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X","194":"zB QC 0B RC 1B 2B 3B","260":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B xC VC yC zC 0C 1C WC","132":"C L M G JC KC 2C 3C 4C XC YC LC 5C","260":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","772":"MC ZC aC bC cC dC 6C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 9C AD BD CD JC pC DD KC","132":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC","260":"0 FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND","132":"OD PD QD RD SD TD","260":"UD VD WD XD XC YC LC YD","516":"ZC aC bC cC dC ZD","772":"MC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","260":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","260":"H"},L:{"260":"I"},M:{"260":"IC"},N:{"2":"A B"},O:{"132":"LC"},P:{"2":"J iD jD kD lD","132":"mD WC nD oD pD qD","260":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD"},Q:{"132":"tD"},R:{"260":"uD"},S:{"132":"vD","260":"wD"}},B:4,C:"CSS display: contents",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","132":"Q I R S T U V W X","260":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB eC fC","132":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC","260":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","132":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X","194":"oB EC pB FC qB rB sB","260":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B gC KC hC iC jC kC LC","132":"C L M H 7B 8B lC mC nC MC NC 9B oC","260":"BC TC UC VC WC XC YC CC qC","772":"AC OC PC QC RC SC pC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB rC sC tC uC 7B ZC vC 8B","132":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","260":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C","132":"6C 7C 8C 9C AD BD","260":"CD DD ED FD MC NC 9B GD","516":"OC PC QC RC SC HD","772":"AC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","260":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"260":"D"},M:{"260":"D"},N:{"2":"A B"},O:{"132":"9B"},P:{"2":"J PD QD RD SD","132":"TD LC UD VD WD XD","260":"0 v w x y z YD AC BC CC ZD"},Q:{"132":"aD"},R:{"260":"bD"},S:{"132":"cD","260":"dD"}},B:4,C:"CSS display: contents",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-element-function.js b/node_modules/caniuse-lite/data/features/css-element-function.js index c1ccb7bff..dd3c3d32b 100644 --- a/node_modules/caniuse-lite/data/features/css-element-function.js +++ b/node_modules/caniuse-lite/data/features/css-element-function.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"33":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","164":"sC PC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"33":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"33":"vD wD"}},B:5,C:"CSS element() function",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"33":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","164":"cC DC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"33":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"33":"cD dD"}},B:5,C:"CSS element() function",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-env-function.js b/node_modules/caniuse-lite/data/features/css-env-function.js index c81305075..e1014f3a0 100644 --- a/node_modules/caniuse-lite/data/features/css-env-function.js +++ b/node_modules/caniuse-lite/data/features/css-env-function.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B vC wC"},D:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","132":"B"},F:{"1":"0 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","132":"ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:7,C:"CSS Environment Variables env()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","132":"B"},F:{"1":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","132":"5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:7,C:"CSS Environment Variables env()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-exclusions.js b/node_modules/caniuse-lite/data/features/css-exclusions.js index e60d5e0dd..3d2369de5 100644 --- a/node_modules/caniuse-lite/data/features/css-exclusions.js +++ b/node_modules/caniuse-lite/data/features/css-exclusions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","33":"A B"},B:{"2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"33":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Exclusions Level 1",D:true}; +module.exports={A:{A:{"2":"K E F G bC","33":"A B"},B:{"2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"33":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Exclusions Level 1",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-featurequeries.js b/node_modules/caniuse-lite/data/features/css-featurequeries.js index a6716363b..e171fc66d 100644 --- a/node_modules/caniuse-lite/data/features/css-featurequeries.js +++ b/node_modules/caniuse-lite/data/features/css-featurequeries.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Feature Queries",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Feature Queries",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-file-selector-button.js b/node_modules/caniuse-lite/data/features/css-file-selector-button.js index 92d9daee5..942226d02 100644 --- a/node_modules/caniuse-lite/data/features/css-file-selector-button.js +++ b/node_modules/caniuse-lite/data/features/css-file-selector-button.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X"},L:{"1":"I"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P Q H R S T U V W X"},C:{"1":"0 SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R vC wC"},M:{"1":"IC"},A:{"2":"K D E F rC","33":"A B"},F:{"1":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"8C","33":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","33":"J iD jD kD lD mD WC nD oD pD qD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"}},B:6,C:"::file-selector-button CSS pseudo-element",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P Q I R S T U V W X"},C:{"1":"1 2 3 4 5 6 7 8 9 GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R eC fC"},M:{"1":"D"},A:{"2":"K E F G bC","33":"A B"},F:{"1":"3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"qC","33":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},P:{"1":"0 v w x y z YD AC BC CC ZD","33":"J PD QD RD SD TD LC UD VD WD XD"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"}},B:6,C:"::file-selector-button CSS pseudo-element",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/css-filter-function.js b/node_modules/caniuse-lite/data/features/css-filter-function.js index a59d4b30a..f89abfd20 100644 --- a/node_modules/caniuse-lite/data/features/css-filter-function.js +++ b/node_modules/caniuse-lite/data/features/css-filter-function.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C","33":"F"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","33":"JD KD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS filter() function",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC","33":"G"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C","33":"1C 2C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS filter() function",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-filters.js b/node_modules/caniuse-lite/data/features/css-filters.js index 074cd0b6d..c221b1df9 100644 --- a/node_modules/caniuse-lite/data/features/css-filters.js +++ b/node_modules/caniuse-lite/data/features/css-filters.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","1028":"L M G N O P","1346":"C"},C:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","196":"bB","516":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB wC"},D:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O","33":"1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K D E F zC 0C"},F:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS Filter Effects",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1028":"L M H N O P","1346":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","196":"QB","516":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB fC"},D:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O","33":"0 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K E F G iC jC"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"},J:{"2":"E","33":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS Filter Effects",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-first-letter.js b/node_modules/caniuse-lite/data/features/css-first-letter.js index 4cbf513fd..7893f5708 100644 --- a/node_modules/caniuse-lite/data/features/css-first-letter.js +++ b/node_modules/caniuse-lite/data/features/css-first-letter.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","16":"rC","516":"E","1540":"K D"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","132":"PC","260":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"UB K D E","132":"J"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"UB xC","132":"J VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","16":"F 9C","260":"B AD BD CD JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"1":"bD"},I:{"1":"PC J I fD qC gD hD","16":"cD dD","132":"eD"},J:{"1":"D A"},K:{"1":"C H KC","260":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"::first-letter CSS pseudo-element selector",D:true}; +module.exports={A:{A:{"1":"G A B","16":"bC","516":"F","1540":"K E"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","132":"DC","260":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"GB K E F","132":"J"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"GB gC","132":"J KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","16":"G rC","260":"B sC tC uC 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"1":"ID"},I:{"1":"DC J D MD aC ND OD","16":"JD KD","132":"LD"},J:{"1":"E A"},K:{"1":"C I 8B","260":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"::first-letter CSS pseudo-element selector",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-first-line.js b/node_modules/caniuse-lite/data/features/css-first-line.js index 8d2650c20..7a0eb93b6 100644 --- a/node_modules/caniuse-lite/data/features/css-first-line.js +++ b/node_modules/caniuse-lite/data/features/css-first-line.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS first-line pseudo-element",D:true}; +module.exports={A:{A:{"1":"G A B","132":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS first-line pseudo-element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-fixed.js b/node_modules/caniuse-lite/data/features/css-fixed.js index 55e19cdeb..e824470d1 100644 --- a/node_modules/caniuse-lite/data/features/css-fixed.js +++ b/node_modules/caniuse-lite/data/features/css-fixed.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"D E F A B","2":"rC","8":"K"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","1025":"1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","132":"FD GD HD"},H:{"2":"bD"},I:{"1":"PC I gD hD","260":"cD dD eD","513":"J fD qC"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS position:fixed",D:true}; +module.exports={A:{A:{"1":"E F G A B","2":"bC","8":"K"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","1025":"kC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","132":"xC yC zC"},H:{"2":"ID"},I:{"1":"DC D ND OD","260":"JD KD LD","513":"J MD aC"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS position:fixed",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-focus-visible.js b/node_modules/caniuse-lite/data/features/css-focus-visible.js index fa880faa9..881c044fb 100644 --- a/node_modules/caniuse-lite/data/features/css-focus-visible.js +++ b/node_modules/caniuse-lite/data/features/css-focus-visible.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","328":"Q H R S T U"},C:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","161":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T"},D:{"1":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B","328":"6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C","578":"G 4C XC"},F:{"1":"0 BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 9C AD BD CD JC pC DD KC","328":"5B 6B 7B 8B 9B AC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD","578":"XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"161":"vD wD"}},B:5,C:":focus-visible CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","328":"Q I R S T U"},C:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","161":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T"},D:{"1":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB","328":"vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC","578":"H nC MC"},F:{"1":"0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB rC sC tC uC 7B ZC vC 8B","328":"uB vB wB xB yB zB"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED","578":"FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"161":"cD dD"}},B:5,C:":focus-visible CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-focus-within.js b/node_modules/caniuse-lite/data/features/css-focus-within.js index 238ceecf7..398e02ff5 100644 --- a/node_modules/caniuse-lite/data/features/css-focus-within.js +++ b/node_modules/caniuse-lite/data/features/css-focus-within.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC"},D:{"1":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","194":"QC"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB 9C AD BD CD JC pC DD KC","194":"nB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:7,C:":focus-within CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","194":"EC"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB rC sC tC uC 7B ZC vC 8B","194":"cB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:7,C:":focus-within CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-font-palette.js b/node_modules/caniuse-lite/data/features/css-font-palette.js index 849086af0..9b5e16027 100644 --- a/node_modules/caniuse-lite/data/features/css-font-palette.js +++ b/node_modules/caniuse-lite/data/features/css-font-palette.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p vC wC"},D:{"1":"0 k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V 9C AD BD CD JC pC DD KC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS font-palette",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"1 2 3 4 5 6 7 8 9 q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V rC sC tC uC 7B ZC vC 8B"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS font-palette",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js b/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js index c31ef633b..2eebd2ace 100644 --- a/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +++ b/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB vC wC","194":"nB oB pB qB rB sB tB uB vB wB xB yB"},D:{"1":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","66":"qB rB sB tB uB vB wB xB yB zB QC"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC","66":"dB eB fB gB hB iB jB kB lB mB nB"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","66":"iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","194":"vD"}},B:5,C:"CSS font-display",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB eC fC","194":"cB dB eB fB gB hB iB jB kB lB mB nB"},D:{"1":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB","66":"fB gB hB iB jB kB lB mB nB oB EC"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B","66":"SB TB UB VB WB XB YB ZB aB bB cB"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","66":"PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","194":"cD"}},B:5,C:"CSS font-display",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-font-stretch.js b/node_modules/caniuse-lite/data/features/css-font-stretch.js index 9c17272d4..c5966e14b 100644 --- a/node_modules/caniuse-lite/data/features/css-font-stretch.js +++ b/node_modules/caniuse-lite/data/features/css-font-stretch.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E vC wC"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS font-stretch",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS font-stretch",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-gencontent.js b/node_modules/caniuse-lite/data/features/css-gencontent.js index b7c5893d3..4b34ab43b 100644 --- a/node_modules/caniuse-lite/data/features/css-gencontent.js +++ b/node_modules/caniuse-lite/data/features/css-gencontent.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D rC","132":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS Generated content for pseudo-elements",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E bC","132":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS Generated content for pseudo-elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-gradients.js b/node_modules/caniuse-lite/data/features/css-gradients.js index 0327fb97e..46b874b0d 100644 --- a/node_modules/caniuse-lite/data/features/css-gradients.js +++ b/node_modules/caniuse-lite/data/features/css-gradients.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","260":"1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB","292":"J UB K D E F A B C L M G wC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 A B C L M G N O P VB","548":"J UB K D E F"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","260":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC","292":"K yC","804":"J UB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD","33":"C DD","164":"JC pC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC","292":"FD GD","804":"VC ED qC"},H:{"2":"bD"},I:{"1":"I gD hD","33":"J fD qC","548":"PC cD dD eD"},J:{"1":"A","548":"D"},K:{"1":"H KC","2":"A B","33":"C","164":"JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Gradients",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","260":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB","292":"J GB K E F G A B C L M H fC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 A B C L M H N O P HB v w x y z","548":"J GB K E F G"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","260":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC","292":"K hC","804":"J GB"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC","33":"C vC","164":"7B ZC"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","260":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC","292":"xC yC","804":"KC wC aC"},H:{"2":"ID"},I:{"1":"D ND OD","33":"J MD aC","548":"DC JD KD LD"},J:{"1":"A","548":"E"},K:{"1":"I 8B","2":"A B","33":"C","164":"7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Gradients",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-grid-animation.js b/node_modules/caniuse-lite/data/features/css-grid-animation.js index 987aab1e9..253bfd4a4 100644 --- a/node_modules/caniuse-lite/data/features/css-grid-animation.js +++ b/node_modules/caniuse-lite/data/features/css-grid-animation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p"},C:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B vC wC"},D:{"1":"0 q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 c d e f g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b 9C AD BD CD JC pC DD KC"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"2 3 4 5 6 7 8 9","2":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"CSS Grid animation",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"CSS Grid animation",D:false}; diff --git a/node_modules/caniuse-lite/data/features/css-grid.js b/node_modules/caniuse-lite/data/features/css-grid.js index b149cb4f0..d49598c14 100644 --- a/node_modules/caniuse-lite/data/features/css-grid.js +++ b/node_modules/caniuse-lite/data/features/css-grid.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","8":"F","292":"A B"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","292":"C L M G"},C:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P vC wC","8":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB","584":"hB iB jB kB lB mB nB oB pB qB rB sB","1025":"tB uB"},D:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB","8":"6 7 8 9","200":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","1025":"yB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","8":"K D E F A zC 0C 1C"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC","200":"9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","8":"E GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD","8":"qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"292":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"iD","8":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Grid Layout (level 1)",D:true}; +module.exports={A:{A:{"2":"K E F bC","8":"G","292":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","292":"C L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P eC fC","8":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB","584":"WB XB YB ZB aB bB cB dB eB fB gB hB","1025":"iB jB"},D:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z","8":"0 IB JB KB","200":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB","1025":"nB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","8":"K E F G A iC jC kC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B","200":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","8":"F yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD","8":"aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"292":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"PD","8":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Grid Layout (level 1)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js b/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js index b61d5f248..aededa28f 100644 --- a/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +++ b/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F xC VC yC zC 0C 1C","132":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD","132":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS hanging-punctuation",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS hanging-punctuation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-has.js b/node_modules/caniuse-lite/data/features/css-has.js index 5cc508ddd..30b7c6c2d 100644 --- a/node_modules/caniuse-lite/data/features/css-has.js +++ b/node_modules/caniuse-lite/data/features/css-has.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l vC wC","322":"0 m n o p q r s t u v w x y z AB BB CB"},D:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j","194":"k l m n"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 9C AD BD CD JC pC DD KC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:":has() CSS relational pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l eC fC","322":"1 2 3 4 5 6 7 8 9 m n o p q r s t u"},D:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j","194":"k l m n"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z rC sC tC uC 7B ZC vC 8B"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:":has() CSS relational pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-hyphens.js b/node_modules/caniuse-lite/data/features/css-hyphens.js index 5c1cd6cab..7ec04d619 100644 --- a/node_modules/caniuse-lite/data/features/css-hyphens.js +++ b/node_modules/caniuse-lite/data/features/css-hyphens.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","33":"A B"},B:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P","132":"Q H R S T U V W","260":"X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","33":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},D:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","132":"wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","33":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC","132":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","33":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","132":"iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Hyphenation",D:true}; +module.exports={A:{A:{"2":"K E F G bC","33":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P","132":"Q I R S T U V W","260":"X Y Z a b c d e f g h i j k l m n"},C:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","33":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},D:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","132":"lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","33":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC"},F:{"1":"a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B","132":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z"},G:{"1":"BC TC UC VC WC XC YC CC","2":"KC wC","33":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","132":"PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Hyphenation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-image-orientation.js b/node_modules/caniuse-lite/data/features/css-image-orientation.js index d42961bdd..1afde3a58 100644 --- a/node_modules/caniuse-lite/data/features/css-image-orientation.js +++ b/node_modules/caniuse-lite/data/features/css-image-orientation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H","257":"R S T U V W X"},C:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H","257":"R S T U V W X"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 9C AD BD CD JC pC DD KC","257":"7B 8B 9B AC BC CC DC EC FC"},G:{"1":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD","257":"pD qD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 image-orientation",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I","257":"R S T U V W X"},C:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I","257":"R S T U V W X"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B"},F:{"1":"5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB rC sC tC uC 7B ZC vC 8B","257":"wB xB yB zB 0B 1B 2B 3B 4B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD","257":"WD XD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 image-orientation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-image-set.js b/node_modules/caniuse-lite/data/features/css-image-set.js index b60143ff2..d5a92286f 100644 --- a/node_modules/caniuse-lite/data/features/css-image-set.js +++ b/node_modules/caniuse-lite/data/features/css-image-set.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","164":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v","2049":"w"},C:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U vC wC","66":"V W","2305":"Y Z a b c d e f g h i j k l m n o p q r s t u v","2820":"X"},D:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 J UB K D E F A B C L M G N O P VB","164":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v","2049":"w"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","132":"A B C L WC JC KC 2C","164":"K D E F zC 0C 1C","1540":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"1":"0 j k l m n o p q r s t u v w x y z","2":"F B C 9C AD BD CD JC pC DD KC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h","2049":"i"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","132":"LD MD ND OD PD QD RD SD TD UD","164":"E GD HD ID JD KD","1540":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","164":"gD hD"},J:{"2":"D","164":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"164":"LC"},P:{"1":"4 5 6 7 8 9","164":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"164":"tD"},R:{"164":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS image-set",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D","2":"C L M H N O P","164":"1 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2049":"2"},C:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U eC fC","66":"V W","2305":"1 Y Z a b c d e f g h i j k l m n o p q r s t u","2820":"X"},D:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v","164":"0 1 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2049":"2"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","132":"A B C L LC 7B 8B lC","164":"K E F G iC jC kC","1540":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC"},F:{"1":"j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h","2049":"i"},G:{"1":"BC TC UC VC WC XC YC CC","2":"KC wC aC xC","132":"3C 4C 5C 6C 7C 8C 9C AD BD CD","164":"F yC zC 0C 1C 2C","1540":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","164":"ND OD"},J:{"2":"E","164":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"164":"9B"},P:{"1":"0 y z","164":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"164":"aD"},R:{"164":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS image-set",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-in-out-of-range.js b/node_modules/caniuse-lite/data/features/css-in-out-of-range.js index 5290881a1..663a76553 100644 --- a/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +++ b/node_modules/caniuse-lite/data/features/css-in-out-of-range.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C","260":"L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","516":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},D:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J","16":"UB K D E F A B C L M","260":"tB","772":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB","772":"K D E F A yC zC 0C 1C"},F:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F 9C","260":"B C gB AD BD CD JC pC DD KC","772":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","772":"E FD GD HD ID JD KD LD"},H:{"132":"bD"},I:{"1":"I","2":"PC cD dD eD","260":"J fD qC gD hD"},J:{"2":"D","260":"A"},K:{"1":"H","260":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","260":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","516":"vD"}},B:5,C:":in-range and :out-of-range CSS pseudo-classes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C","260":"L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","516":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},D:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J","16":"GB K E F G A B C L M","260":"iB","772":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB","772":"K E F G A hC iC jC kC"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G rC","260":"B C VB sC tC uC 7B ZC vC 8B","772":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","772":"F xC yC zC 0C 1C 2C 3C"},H:{"132":"ID"},I:{"1":"D","2":"DC JD KD LD","260":"J MD aC ND OD"},J:{"2":"E","260":"A"},K:{"1":"I","260":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","260":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","516":"cD"}},B:5,C:":in-range and :out-of-range CSS pseudo-classes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js b/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js index 368e0e909..c65453f9d 100644 --- a/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"A B","388":"F"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC PC vC wC","132":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","388":"J UB"},D:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB K xC VC","132":"D E F A zC 0C 1C","388":"yC"},F:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B 9C AD BD CD JC pC","132":"1 2 3 4 5 6 G N O P VB","516":"C DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD","132":"E HD ID JD KD LD"},H:{"516":"bD"},I:{"1":"I","16":"PC cD dD eD hD","132":"gD","388":"J fD qC"},J:{"16":"D","132":"A"},K:{"1":"H","16":"A B C JC pC","516":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","132":"vD"}},B:5,C:":indeterminate CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"A B","388":"G"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC DC eC fC","132":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","388":"J GB"},D:{"1":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB K gC KC","132":"E F G A iC jC kC","388":"hC"},F:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B rC sC tC uC 7B ZC","132":"0 H N O P HB v w x y z","516":"C vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC","132":"F zC 0C 1C 2C 3C"},H:{"516":"ID"},I:{"1":"D","16":"DC JD KD LD OD","132":"ND","388":"J MD aC"},J:{"16":"E","132":"A"},K:{"1":"I","16":"A B C 7B ZC","516":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","132":"cD"}},B:5,C:":indeterminate CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-initial-letter.js b/node_modules/caniuse-lite/data/features/css-initial-letter.js index 0669e0b0f..378128b39 100644 --- a/node_modules/caniuse-lite/data/features/css-initial-letter.js +++ b/node_modules/caniuse-lite/data/features/css-initial-letter.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E xC VC yC zC 0C","260":"F","420":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g 9C AD BD CD JC pC DD KC","260":"0 h i j k l m n o p q r s t u v w x y z"},G:{"2":"E VC ED qC FD GD HD ID","420":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","260":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","260":"H"},L:{"260":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","260":"2 3 4 5 6 7 8 9"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Initial Letter",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F gC KC hC iC jC","260":"G","420":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g rC sC tC uC 7B ZC vC 8B","260":"h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C","420":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","260":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"260":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","260":"0 w x y z"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Initial Letter",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-initial-value.js b/node_modules/caniuse-lite/data/features/css-initial-value.js index b5c649286..4d483dedc 100644 --- a/node_modules/caniuse-lite/data/features/css-initial-value.js +++ b/node_modules/caniuse-lite/data/features/css-initial-value.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"J UB K D E F A B C L M G N O P vC wC","164":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS initial value",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"J GB K E F G A B C L M H N O P eC fC","164":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS initial value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-lch-lab.js b/node_modules/caniuse-lite/data/features/css-lch-lab.js index 04c6d920d..5897863ac 100644 --- a/node_modules/caniuse-lite/data/features/css-lch-lab.js +++ b/node_modules/caniuse-lite/data/features/css-lch-lab.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},C:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t vC wC","194":"u v"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},F:{"1":"0 h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"3 4 5 6 7 8 9","2":"1 2 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"LCH and Lab color values",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},C:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t eC fC","194":"1 u"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},F:{"1":"h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 x y z","2":"J v w PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"LCH and Lab color values",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-letter-spacing.js b/node_modules/caniuse-lite/data/features/css-letter-spacing.js index a3785ffdd..35f5e6dbd 100644 --- a/node_modules/caniuse-lite/data/features/css-letter-spacing.js +++ b/node_modules/caniuse-lite/data/features/css-letter-spacing.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","16":"rC","132":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC","132":"J UB K VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F 9C","132":"B C G N AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"2":"bD"},I:{"1":"I gD hD","16":"cD dD","132":"PC J eD fD qC"},J:{"132":"D A"},K:{"1":"H","132":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"letter-spacing CSS property",D:true}; +module.exports={A:{A:{"1":"G A B","16":"bC","132":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC","132":"J GB K KC hC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G rC","132":"B C H N sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"2":"ID"},I:{"1":"D ND OD","16":"JD KD","132":"DC J LD MD aC"},J:{"132":"E A"},K:{"1":"I","132":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"letter-spacing CSS property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-line-clamp.js b/node_modules/caniuse-lite/data/features/css-line-clamp.js index 25189d944..893a43e4b 100644 --- a/node_modules/caniuse-lite/data/features/css-line-clamp.js +++ b/node_modules/caniuse-lite/data/features/css-line-clamp.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B vC wC","33":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"16":"J UB K D E F A B C L","33":"0 1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J xC VC","33":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"VC ED qC","33":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"16":"cD dD","33":"PC J I eD fD qC gD hD"},J:{"33":"D A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"33":"I"},M:{"33":"IC"},N:{"2":"A B"},O:{"33":"LC"},P:{"33":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"33":"tD"},R:{"33":"uD"},S:{"2":"vD","33":"wD"}},B:5,C:"CSS line-clamp",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB eC fC","33":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"16":"J GB K E F G A B C L","33":"0 1 2 3 4 5 6 7 8 9 M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J gC KC","33":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"KC wC aC","33":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"16":"JD KD","33":"DC J D LD MD aC ND OD"},J:{"33":"E A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"33":"D"},M:{"33":"D"},N:{"2":"A B"},O:{"33":"9B"},P:{"33":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"33":"aD"},R:{"33":"bD"},S:{"2":"cD","33":"dD"}},B:5,C:"CSS line-clamp",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-logical-props.js b/node_modules/caniuse-lite/data/features/css-logical-props.js index 2d4f29455..e41529e74 100644 --- a/node_modules/caniuse-lite/data/features/css-logical-props.js +++ b/node_modules/caniuse-lite/data/features/css-logical-props.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","1028":"W X","1540":"Q H R S T U V"},C:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","164":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB vC wC","1540":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","292":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B","1028":"W X","1540":"8B 9B AC BC CC DC EC FC GC HC Q H R S T U V"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","292":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","1540":"L M KC 2C","3076":"3C"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","292":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","1028":"DC EC","1540":"xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","292":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD","1540":"QD RD SD TD UD VD","3076":"WD"},H:{"2":"bD"},I:{"1":"I","292":"PC J cD dD eD fD qC gD hD"},J:{"292":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","292":"J iD jD kD lD mD","1540":"WC nD oD pD qD"},Q:{"1540":"tD"},R:{"1":"uD"},S:{"1":"wD","1540":"vD"}},B:5,C:"CSS Logical Properties",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","1028":"W X","1540":"Q I R S T U V"},C:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","164":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB eC fC","1540":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","292":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB","1028":"W X","1540":"xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","292":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","1540":"L M 8B lC","3076":"mC"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","292":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB","1028":"2B 3B","1540":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","292":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C","1540":"8C 9C AD BD CD DD","3076":"ED"},H:{"2":"ID"},I:{"1":"D","292":"DC J JD KD LD MD aC ND OD"},J:{"292":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","292":"J PD QD RD SD TD","1540":"LC UD VD WD XD"},Q:{"1540":"aD"},R:{"1":"bD"},S:{"1":"dD","1540":"cD"}},B:5,C:"CSS Logical Properties",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-marker-pseudo.js b/node_modules/caniuse-lite/data/features/css-marker-pseudo.js index e8c17ac95..6e15c33b1 100644 --- a/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-marker-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U"},C:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B vC wC"},D:{"1":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U"},E:{"1":"8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC","132":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC"},F:{"1":"0 BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND","132":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS ::marker pseudo-element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U"},C:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U"},E:{"1":"qC","2":"J GB K E F G A B gC KC hC iC jC kC LC","129":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC"},F:{"1":"0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS ::marker pseudo-element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-masks.js b/node_modules/caniuse-lite/data/features/css-masks.js index 2fe95aae4..42c837bc7 100644 --- a/node_modules/caniuse-lite/data/features/css-masks.js +++ b/node_modules/caniuse-lite/data/features/css-masks.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N","164":"0 Q H R S T U V W X Y Z 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 AB BB","3138":"O","12292":"P"},C:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","260":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC"},D:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","164":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","164":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 p q r s t u v w x y z","2":"F B C 9C AD BD CD JC pC DD KC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","164":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","164":"gD hD","676":"PC J cD dD eD fD qC"},J:{"164":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"164":"LC"},P:{"1":"6 7 8 9","164":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"164":"tD"},R:{"164":"uD"},S:{"1":"wD","260":"vD"}},B:4,C:"CSS Masks",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"9 AB BB CB DB EB FB D","2":"C L M H N","164":"1 2 3 4 5 6 7 8 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","3138":"O","12292":"P"},C:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","260":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC"},D:{"1":"9 AB BB CB DB EB FB D HC IC JC","164":"0 1 2 3 4 5 6 7 8 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","164":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","164":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","164":"ND OD","676":"DC J JD KD LD MD aC"},J:{"164":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"164":"9B"},P:{"1":"0","164":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"164":"aD"},R:{"164":"bD"},S:{"1":"dD","260":"cD"}},B:4,C:"CSS Masks",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-matches-pseudo.js b/node_modules/caniuse-lite/data/features/css-matches-pseudo.js index 2d13fb8a6..93fef1b77 100644 --- a/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-matches-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","1220":"Q H R S T U V W"},C:{"1":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","548":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},D:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B","196":"4B 5B 6B","1220":"7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB","164":"K D E yC zC 0C","260":"F A B C L 1C WC JC KC 2C"},F:{"1":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","196":"tB uB vB","1220":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD","164":"E HD ID","260":"JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"1":"I","16":"PC cD dD eD","164":"J fD qC gD hD"},J:{"16":"D","164":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","164":"J iD jD kD lD mD WC nD oD pD qD"},Q:{"1220":"tD"},R:{"1":"uD"},S:{"1":"wD","548":"vD"}},B:5,C:":is() CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","1220":"Q I R S T U V W"},C:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","548":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B"},D:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB","196":"tB uB vB","1220":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB","164":"K E F hC iC jC","260":"G A B C L kC LC 7B 8B lC"},F:{"1":"3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","196":"iB jB kB","1220":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC","164":"F zC 0C","260":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"1":"D","16":"DC JD KD LD","164":"J MD aC ND OD"},J:{"16":"E","164":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","164":"J PD QD RD SD TD LC UD VD WD XD"},Q:{"1220":"aD"},R:{"1":"bD"},S:{"1":"dD","548":"cD"}},B:5,C:":is() CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-math-functions.js b/node_modules/caniuse-lite/data/features/css-math-functions.js index 5d6b41f2a..4c43495db 100644 --- a/node_modules/caniuse-lite/data/features/css-math-functions.js +++ b/node_modules/caniuse-lite/data/features/css-math-functions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC vC wC"},D:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC","132":"C L JC KC"},F:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 9C AD BD CD JC pC DD KC"},G:{"1":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND","132":"OD PD QD RD SD TD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS math functions min(), max() and clamp()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC","132":"C L 7B 8B"},F:{"1":"uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB rC sC tC uC 7B ZC vC 8B"},G:{"1":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C","132":"6C 7C 8C 9C AD BD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS math functions min(), max() and clamp()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-media-interaction.js b/node_modules/caniuse-lite/data/features/css-media-interaction.js index cc0493e4a..745a43087 100644 --- a/node_modules/caniuse-lite/data/features/css-media-interaction.js +++ b/node_modules/caniuse-lite/data/features/css-media-interaction.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"Media Queries: interaction media features",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"Media Queries: interaction media features",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-media-range-syntax.js b/node_modules/caniuse-lite/data/features/css-media-range-syntax.js index be0c353f1..67fa5cdcd 100644 --- a/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +++ b/node_modules/caniuse-lite/data/features/css-media-range-syntax.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC"},D:{"1":"0 n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"Media Queries: Range Syntax",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z rC sC tC uC 7B ZC vC 8B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"Media Queries: Range Syntax",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-media-resolution.js b/node_modules/caniuse-lite/data/features/css-media-resolution.js index 16c8e40d9..e43da5acf 100644 --- a/node_modules/caniuse-lite/data/features/css-media-resolution.js +++ b/node_modules/caniuse-lite/data/features/css-media-resolution.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","1028":"C L M G N O P"},C:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","260":"J UB K D E F A B C L M G vC wC","1028":"1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC"},D:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","548":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB","1028":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","548":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F","548":"B C 9C AD BD CD JC pC DD","1028":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC","548":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"132":"bD"},I:{"1":"I","16":"cD dD","548":"PC J eD fD qC","1028":"gD hD"},J:{"548":"D A"},K:{"1":"H KC","548":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","1028":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Media Queries: resolution feature",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1028":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","260":"J GB K E F G A B C L M H eC fC","1028":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC"},D:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","548":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB","1028":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","548":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G","548":"B C rC sC tC uC 7B ZC vC","1028":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC","548":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"132":"ID"},I:{"1":"D","16":"JD KD","548":"DC J LD MD aC","1028":"ND OD"},J:{"548":"E A"},K:{"1":"I 8B","548":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","1028":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Media Queries: resolution feature",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-media-scripting.js b/node_modules/caniuse-lite/data/features/css-media-scripting.js index 8032393d2..0a62c9dd3 100644 --- a/node_modules/caniuse-lite/data/features/css-media-scripting.js +++ b/node_modules/caniuse-lite/data/features/css-media-scripting.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"Media Queries: scripting media feature",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"Media Queries: scripting media feature",D:false}; diff --git a/node_modules/caniuse-lite/data/features/css-mediaqueries.js b/node_modules/caniuse-lite/data/features/css-mediaqueries.js index 1b7d32ca9..c6de38521 100644 --- a/node_modules/caniuse-lite/data/features/css-mediaqueries.js +++ b/node_modules/caniuse-lite/data/features/css-mediaqueries.js @@ -1 +1 @@ -module.exports={A:{A:{"8":"K D E rC","129":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","129":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","129":"J UB K yC","388":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","129":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"I gD hD","129":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"129":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS3 Media Queries",D:true}; +module.exports={A:{A:{"8":"K E F bC","129":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","129":"0 J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","129":"J GB K hC","388":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","129":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"D ND OD","129":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"129":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS3 Media Queries",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-mixblendmode.js b/node_modules/caniuse-lite/data/features/css-mixblendmode.js index 1ce333d7d..fe784e0bf 100644 --- a/node_modules/caniuse-lite/data/features/css-mixblendmode.js +++ b/node_modules/caniuse-lite/data/features/css-mixblendmode.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB","194":"WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"2":"J UB K D xC VC yC zC","260":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC FD GD HD","260":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Blending of HTML/SVG elements",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB","194":"LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"2":"J GB K E gC KC hC iC","260":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC xC yC zC","260":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Blending of HTML/SVG elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-module-scripts.js b/node_modules/caniuse-lite/data/features/css-module-scripts.js index 6d0c2f028..620c1c0f3 100644 --- a/node_modules/caniuse-lite/data/features/css-module-scripts.js +++ b/node_modules/caniuse-lite/data/features/css-module-scripts.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b","132":"0 c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b","132":"0 c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"16":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"194":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:1,C:"CSS Module Scripts",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b","132":"1 2 3 4 5 6 7 8 9 c d e f g h i j k l m n o p q r s t u AB BB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b","132":"1 2 3 4 5 6 7 8 9 c d e f g h i j k l m n o p q r s t u AB BB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"16":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"194":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:1,C:"CSS Module Scripts",D:false}; diff --git a/node_modules/caniuse-lite/data/features/css-motion-paths.js b/node_modules/caniuse-lite/data/features/css-motion-paths.js index a81e647e5..29db58cac 100644 --- a/node_modules/caniuse-lite/data/features/css-motion-paths.js +++ b/node_modules/caniuse-lite/data/features/css-motion-paths.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC vC wC"},D:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","194":"kB lB mB"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC","194":"XB YB ZB"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS Motion Path",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","194":"ZB aB bB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B","194":"MB NB OB"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS Motion Path",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-namespaces.js b/node_modules/caniuse-lite/data/features/css-namespaces.js index 551883f67..0d6f18374 100644 --- a/node_modules/caniuse-lite/data/features/css-namespaces.js +++ b/node_modules/caniuse-lite/data/features/css-namespaces.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS namespaces",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS namespaces",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-nesting.js b/node_modules/caniuse-lite/data/features/css-nesting.js index 2516e62fe..502cf307d 100644 --- a/node_modules/caniuse-lite/data/features/css-nesting.js +++ b/node_modules/caniuse-lite/data/features/css-nesting.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"0 v w x y z AB BB"},C:{"1":"0 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x vC wC","322":"y z"},D:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"0 v w x y z AB BB"},E:{"1":"fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC","516":"dC 6C NC eC"},F:{"1":"0 p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d 9C AD BD CD JC pC DD KC","194":"e f g","516":"h i j k l m n o"},G:{"1":"fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC","516":"dC ZD NC eC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"6 7 8 9","2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","516":"4 5"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Nesting",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"9 AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"1 2 3 4 5 6 7 8"},C:{"1":"6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC","322":"4 5"},D:{"1":"9 AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"1 2 3 4 5 6 7 8"},E:{"1":"UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC","516":"SC pC BC TC"},F:{"1":"p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d rC sC tC uC 7B ZC vC 8B","194":"e f g","516":"h i j k l m n o"},G:{"1":"UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC","516":"SC HD BC TC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","516":"0 y z"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Nesting",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-not-sel-list.js b/node_modules/caniuse-lite/data/features/css-not-sel-list.js index 6c837f6fb..289034247 100644 --- a/node_modules/caniuse-lite/data/features/css-not-sel-list.js +++ b/node_modules/caniuse-lite/data/features/css-not-sel-list.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P H R S T U V W","16":"Q"},C:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S vC wC"},D:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"selector list argument of :not()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P I R S T U V W","16":"Q"},C:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"selector list argument of :not()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-nth-child-of.js b/node_modules/caniuse-lite/data/features/css-nth-child-of.js index 1182e63c9..23613adc7 100644 --- a/node_modules/caniuse-lite/data/features/css-nth-child-of.js +++ b/node_modules/caniuse-lite/data/features/css-nth-child-of.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v vC wC"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"3 4 5 6 7 8 9","2":"1 2 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"selector list argument of :nth-child and :nth-last-child CSS pseudo-classes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 1 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 x y z","2":"J v w PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"selector list argument of :nth-child and :nth-last-child CSS pseudo-classes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-opacity.js b/node_modules/caniuse-lite/data/features/css-opacity.js index e9da66acd..97b64902f 100644 --- a/node_modules/caniuse-lite/data/features/css-opacity.js +++ b/node_modules/caniuse-lite/data/features/css-opacity.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","4":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS3 Opacity",D:true}; +module.exports={A:{A:{"1":"G A B","4":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS3 Opacity",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-optional-pseudo.js b/node_modules/caniuse-lite/data/features/css-optional-pseudo.js index 9cf795ee9..aaaa78e90 100644 --- a/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +++ b/node_modules/caniuse-lite/data/features/css-optional-pseudo.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F 9C","132":"B C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"132":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","132":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:":optional CSS pseudo-class",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G rC","132":"B C sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"132":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","132":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:":optional CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-overflow-anchor.js b/node_modules/caniuse-lite/data/features/css-overflow-anchor.js index 63fa0f319..cad28ff25 100644 --- a/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +++ b/node_modules/caniuse-lite/data/features/css-overflow-anchor.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B vC wC"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS overflow-anchor (Scroll Anchoring)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS overflow-anchor (Scroll Anchoring)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-overflow-overlay.js b/node_modules/caniuse-lite/data/features/css-overflow-overlay.js index 4caa266e8..9f6698451 100644 --- a/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +++ b/node_modules/caniuse-lite/data/features/css-overflow-overlay.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","2":"C L M G N O P","130":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","16":"J UB K D E F A B C L M","130":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B yC zC 0C 1C WC JC","16":"xC VC","130":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i","2":"F B C 9C AD BD CD JC pC DD KC","130":"0 j k l m n o p q r s t u v w x y z"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD","16":"VC","130":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J cD dD eD fD qC gD hD","130":"I"},J:{"16":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"130":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS overflow: overlay",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"C L M H N O P","130":"3 4 5 6 7 8 9 AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"J GB K E F G A B C L M","130":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B hC iC jC kC LC 7B","16":"gC KC","130":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i","2":"G B C rC sC tC uC 7B ZC vC 8B","130":"j k l m n o p q r s t u"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C","16":"KC","130":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J JD KD LD MD aC ND OD","130":"D"},J:{"16":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"130":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS overflow: overlay",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-overflow.js b/node_modules/caniuse-lite/data/features/css-overflow.js index 7eafa8cea..c8032e561 100644 --- a/node_modules/caniuse-lite/data/features/css-overflow.js +++ b/node_modules/caniuse-lite/data/features/css-overflow.js @@ -1 +1 @@ -module.exports={A:{A:{"388":"K D E F A B rC"},B:{"1":"0 Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"Q H R S T U V W X Y","388":"C L M G N O P"},C:{"1":"0 R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","260":"RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H","388":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B vC wC"},D:{"1":"0 Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","260":"7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y","388":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","260":"M G 2C 3C 4C XC YC LC 5C","388":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","260":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC","388":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB 9C AD BD CD JC pC DD KC"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"UD VD WD XD XC YC LC YD","388":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD"},H:{"388":"bD"},I:{"1":"I","388":"PC J cD dD eD fD qC gD hD"},J:{"388":"D A"},K:{"1":"H","388":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"388":"A B"},O:{"388":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","388":"J iD jD kD lD mD WC nD oD pD qD"},Q:{"388":"tD"},R:{"1":"uD"},S:{"1":"wD","388":"vD"}},B:5,C:"CSS overflow property",D:true}; +module.exports={A:{A:{"388":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"Q I R S T U V W X Y","388":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","260":"FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I","388":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","260":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y","388":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","260":"M H lC mC nC MC NC 9B oC","388":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","260":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","388":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB rC sC tC uC 7B ZC vC 8B"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","260":"CD DD ED FD MC NC 9B GD","388":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD"},H:{"388":"ID"},I:{"1":"D","388":"DC J JD KD LD MD aC ND OD"},J:{"388":"E A"},K:{"1":"I","388":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"388":"A B"},O:{"388":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","388":"J PD QD RD SD TD LC UD VD WD XD"},Q:{"388":"aD"},R:{"1":"bD"},S:{"1":"dD","388":"cD"}},B:5,C:"CSS overflow property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js b/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js index 5d404e521..084f0bc1f 100644 --- a/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +++ b/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O","516":"P"},C:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB vC wC"},D:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B","260":"2B 3B"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C","1090":"G 3C 4C XC YC LC 5C"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 9C AD BD CD JC pC DD KC","260":"rB sB"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD","1090":"WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS overscroll-behavior",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O","516":"P"},C:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB","260":"rB sB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC","1090":"H mC nC MC NC 9B oC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB rC sC tC uC 7B ZC vC 8B","260":"gB hB"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD","1090":"ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS overscroll-behavior",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-page-break.js b/node_modules/caniuse-lite/data/features/css-page-break.js index aa511c6d1..c184aab13 100644 --- a/node_modules/caniuse-lite/data/features/css-page-break.js +++ b/node_modules/caniuse-lite/data/features/css-page-break.js @@ -1 +1 @@ -module.exports={A:{A:{"388":"A B","900":"K D E F rC"},B:{"388":"C L M G N O P","641":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","900":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"772":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","900":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B vC wC"},D:{"641":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","900":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"772":"A","900":"J UB K D E F B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"16":"F 9C","129":"B C AD BD CD JC pC DD KC","641":"0 d e f g h i j k l m n o p q r s t u v w x y z","900":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c"},G:{"900":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"129":"bD"},I:{"641":"I","900":"PC J cD dD eD fD qC gD hD"},J:{"900":"D A"},K:{"129":"A B C JC pC KC","641":"H"},L:{"900":"I"},M:{"772":"IC"},N:{"388":"A B"},O:{"900":"LC"},P:{"641":"2 3 4 5 6 7 8 9","900":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"900":"tD"},R:{"900":"uD"},S:{"772":"wD","900":"vD"}},B:2,C:"CSS page-break properties",D:true}; +module.exports={A:{A:{"388":"A B","900":"K E F G bC"},B:{"388":"C L M H N O P","641":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D","900":"Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"772":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","900":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB eC fC"},D:{"641":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D HC IC JC","900":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"772":"A","900":"J GB K E F G B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"16":"G rC","129":"B C sC tC uC 7B ZC vC 8B","641":"d e f g h i j k l m n o p q r s t u","900":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c"},G:{"900":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"129":"ID"},I:{"641":"D","900":"DC J JD KD LD MD aC ND OD"},J:{"900":"E A"},K:{"129":"A B C 7B ZC 8B","641":"I"},L:{"900":"D"},M:{"772":"D"},N:{"388":"A B"},O:{"900":"9B"},P:{"641":"0 w x y z","900":"J v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"900":"aD"},R:{"900":"bD"},S:{"772":"dD","900":"cD"}},B:2,C:"CSS page-break properties",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-paged-media.js b/node_modules/caniuse-lite/data/features/css-paged-media.js index 0cc23a667..73ef3dc51 100644 --- a/node_modules/caniuse-lite/data/features/css-paged-media.js +++ b/node_modules/caniuse-lite/data/features/css-paged-media.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","132":"E F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P"},C:{"1":"0 e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P vC wC","132":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","132":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC"},H:{"16":"bD"},I:{"16":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","16":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"258":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"132":"vD wD"}},B:5,C:"CSS Paged Media (@page)",D:true}; +module.exports={A:{A:{"2":"K E bC","132":"F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P eC fC","132":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","132":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"16":"ID"},I:{"16":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","16":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"258":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"132":"cD dD"}},B:5,C:"CSS Paged Media (@page)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-paint-api.js b/node_modules/caniuse-lite/data/features/css-paint-api.js index a5ab0066a..947607236 100644 --- a/node_modules/caniuse-lite/data/features/css-paint-api.js +++ b/node_modules/caniuse-lite/data/features/css-paint-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B"},E:{"2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","194":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS Painting API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB"},E:{"2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","194":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS Painting API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-placeholder-shown.js b/node_modules/caniuse-lite/data/features/css-placeholder-shown.js index fcdde1c40..de7c1a1a1 100644 --- a/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +++ b/node_modules/caniuse-lite/data/features/css-placeholder-shown.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","292":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","164":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},D:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","164":"vD"}},B:5,C:":placeholder-shown CSS pseudo-class",D:true}; +module.exports={A:{A:{"2":"K E F G bC","292":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","164":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},D:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","164":"cD"}},B:5,C:":placeholder-shown CSS pseudo-class",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-placeholder.js b/node_modules/caniuse-lite/data/features/css-placeholder.js index 0892ff486..7c605705b 100644 --- a/node_modules/caniuse-lite/data/features/css-placeholder.js +++ b/node_modules/caniuse-lite/data/features/css-placeholder.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","36":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","130":"sC PC J UB K D E F A B C L M G N O P vC wC"},D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","36":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","36":"UB K D E F A yC zC 0C 1C"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","36":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","36":"E qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","36":"PC J cD dD eD fD qC gD hD"},J:{"36":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"36":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","36":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:5,C:"::placeholder CSS pseudo-element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","36":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","130":"cC DC J GB K E F G A B C L M H N O P eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","36":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","36":"GB K E F G A hC iC jC kC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","36":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC","36":"F aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","36":"DC J JD KD LD MD aC ND OD"},J:{"36":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"36":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","36":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:5,C:"::placeholder CSS pseudo-element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-print-color-adjust.js b/node_modules/caniuse-lite/data/features/css-print-color-adjust.js index 2cb3c21b6..32082aa18 100644 --- a/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +++ b/node_modules/caniuse-lite/data/features/css-print-color-adjust.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"SB TB I TC IC UC","2":"J UB K D E F A B C L M G N","33":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB"},L:{"1":"I"},B:{"1":"SB TB I","2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB"},C:{"1":"0 g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC","33":"pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},K:{"2":"A B C JC pC KC","33":"H"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB xC VC yC 8C","33":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},P:{"33":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"}},B:6,C:"print-color-adjust property",D:undefined}; +module.exports={A:{D:{"2":"J GB K E F G A B C L M H N","33":"0 1 2 3 4 5 6 7 8 9 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},L:{"33":"D"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC","33":"eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},K:{"2":"A B C 7B ZC 8B","33":"I"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB gC KC hC qC","33":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},P:{"33":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},I:{"2":"DC J JD KD LD MD aC","33":"D ND OD"}},B:6,C:"print-color-adjust property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/css-read-only-write.js b/node_modules/caniuse-lite/data/features/css-read-only-write.js index fa7bea4ea..31486a990 100644 --- a/node_modules/caniuse-lite/data/features/css-read-only-write.js +++ b/node_modules/caniuse-lite/data/features/css-read-only-write.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC","33":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC vC wC"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC","132":"J UB K D E yC zC 0C"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B 9C AD BD CD JC","132":"1 2 3 C G N O P VB pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED","132":"E qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","16":"cD dD","132":"PC J eD fD qC gD hD"},J:{"1":"A","132":"D"},K:{"1":"H","2":"A B JC","132":"C pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:1,C:"CSS :read-only and :read-write selectors",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC","33":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC","132":"J GB K E F hC iC jC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B rC sC tC uC 7B","132":"C H N O P HB v w x ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC","132":"F aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","16":"JD KD","132":"DC J LD MD aC ND OD"},J:{"1":"A","132":"E"},K:{"1":"I","2":"A B 7B","132":"C ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:1,C:"CSS :read-only and :read-write selectors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-rebeccapurple.js b/node_modules/caniuse-lite/data/features/css-rebeccapurple.js index 628832665..d7d26a141 100644 --- a/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +++ b/node_modules/caniuse-lite/data/features/css-rebeccapurple.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","16":"zC"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Rebeccapurple color",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","16":"iC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Rebeccapurple color",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-reflections.js b/node_modules/caniuse-lite/data/features/css-reflections.js index 1bc89dfec..5d481eae4 100644 --- a/node_modules/caniuse-lite/data/features/css-reflections.js +++ b/node_modules/caniuse-lite/data/features/css-reflections.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"xC VC","33":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"33":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"33":"PC J I cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"33":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"33":"LC"},P:{"33":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"33":"tD"},R:{"33":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS Reflections",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"gC KC","33":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"33":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"33":"DC J D JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"33":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"33":"9B"},P:{"33":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"33":"aD"},R:{"33":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS Reflections",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-regions.js b/node_modules/caniuse-lite/data/features/css-regions.js index 684085da6..8568ef061 100644 --- a/node_modules/caniuse-lite/data/features/css-regions.js +++ b/node_modules/caniuse-lite/data/features/css-regions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","420":"A B"},B:{"2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","420":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 J UB K D E F A B C L M cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","36":"G N O P","66":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB"},E:{"2":"J UB K C L M G xC VC yC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"D E F A B zC 0C 1C WC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC FD GD OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"420":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Regions",D:true}; +module.exports={A:{A:{"2":"K E F G bC","420":"A B"},B:{"2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","420":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","36":"H N O P","66":"0 HB v w x y z IB JB KB LB MB NB OB PB QB"},E:{"2":"J GB K C L M H gC KC hC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"E F G A B iC jC kC LC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC xC yC 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"420":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Regions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-relative-colors.js b/node_modules/caniuse-lite/data/features/css-relative-colors.js index ee71187d1..b354d8436 100644 --- a/node_modules/caniuse-lite/data/features/css-relative-colors.js +++ b/node_modules/caniuse-lite/data/features/css-relative-colors.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"NB OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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","194":"AB","260":"BB CB DB EB FB GB HB IB JB KB LB MB"},C:{"1":"PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB vC wC","260":"KB LB MB NB OB"},D:{"1":"NB OB PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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","194":"AB","260":"BB CB DB EB FB GB HB IB JB KB LB MB"},E:{"1":"OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC","260":"cC dC 6C NC eC fC gC hC iC 7C"},F:{"1":"0","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m 9C AD BD CD JC pC DD KC","194":"n o","260":"p q r s t u v w x y z"},G:{"1":"OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","260":"cC dC ZD NC eC fC gC hC iC aD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","260":"H"},L:{"1":"I"},M:{"260":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","260":"6 7 8 9"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Relative color syntax",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"7","260":"8 9 AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D eC fC","260":"HC IC JC dC"},D:{"2":"0 1 2 3 4 5 6 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"7","260":"8 9 AB BB CB DB EB FB D HC IC JC"},E:{"1":"CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC","260":"RC SC pC BC TC UC VC WC XC YC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m rC sC tC uC 7B ZC vC 8B","194":"n o","260":"p q r s t u"},G:{"1":"CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","260":"RC SC HD BC TC UC VC WC XC YC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","260":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"260":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","260":"0"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Relative color syntax",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-repeating-gradients.js b/node_modules/caniuse-lite/data/features/css-repeating-gradients.js index 93329079b..5e31ce478 100644 --- a/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +++ b/node_modules/caniuse-lite/data/features/css-repeating-gradients.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","33":"J UB K D E F A B C L M G wC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F","33":"1 2 3 4 5 6 A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","33":"K yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD","33":"C DD","36":"JC pC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","33":"FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC cD dD eD","33":"J fD qC"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B","33":"C","36":"JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Repeating Gradients",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","33":"J GB K E F G A B C L M H fC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G","33":"0 A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","33":"K hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC","33":"C vC","36":"7B ZC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","33":"xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC JD KD LD","33":"J MD aC"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B","33":"C","36":"7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Repeating Gradients",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-resize.js b/node_modules/caniuse-lite/data/features/css-resize.js index 749d0e8a7..d248aef5e 100644 --- a/node_modules/caniuse-lite/data/features/css-resize.js +++ b/node_modules/caniuse-lite/data/features/css-resize.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"J"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD","132":"KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:2,C:"CSS resize property",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"J"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC","132":"8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:2,C:"CSS resize property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-revert-value.js b/node_modules/caniuse-lite/data/features/css-revert-value.js index 4f7f87246..b005d52cb 100644 --- a/node_modules/caniuse-lite/data/features/css-revert-value.js +++ b/node_modules/caniuse-lite/data/features/css-revert-value.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S"},C:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B vC wC"},D:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC 9C AD BD CD JC pC DD KC"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"CSS revert value",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S"},C:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B rC sC tC uC 7B ZC vC 8B"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"CSS revert value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-rrggbbaa.js b/node_modules/caniuse-lite/data/features/css-rrggbbaa.js index 68c9f0505..4a227b6e9 100644 --- a/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +++ b/node_modules/caniuse-lite/data/features/css-rrggbbaa.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","194":"tB uB vB wB xB yB zB QC 0B RC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB 9C AD BD CD JC pC DD KC","194":"gB hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","194":"iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"#rrggbbaa hex color notation",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","194":"iB jB kB lB mB nB oB EC pB FC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB rC sC tC uC 7B ZC vC 8B","194":"VB WB XB YB ZB aB bB cB dB eB fB gB hB"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","194":"PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"#rrggbbaa hex color notation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-scroll-behavior.js b/node_modules/caniuse-lite/data/features/css-scroll-behavior.js index 01d354636..728d14510 100644 --- a/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +++ b/node_modules/caniuse-lite/data/features/css-scroll-behavior.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","129":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB","129":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","450":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC 2C","578":"M G 3C 4C XC"},F:{"2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC","129":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","450":"9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD","578":"WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"129":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"129":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"CSS Scroll-behavior",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","129":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","129":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","450":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B lC","578":"M H mC nC MC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B","129":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","450":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD","578":"ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"129":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"129":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"CSS Scroll-behavior",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-scroll-timeline.js b/node_modules/caniuse-lite/data/features/css-scroll-timeline.js new file mode 100644 index 000000000..068d6c2d3 --- /dev/null +++ b/node_modules/caniuse-lite/data/features/css-scroll-timeline.js @@ -0,0 +1 @@ +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T U V W X Y","194":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T","194":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","322":"U V W"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B rC sC tC uC 7B ZC vC 8B","194":"3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","322":"1B 2B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS @scroll-timeline",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-scrollbar.js b/node_modules/caniuse-lite/data/features/css-scrollbar.js index 6776c1d34..c774d5edf 100644 --- a/node_modules/caniuse-lite/data/features/css-scrollbar.js +++ b/node_modules/caniuse-lite/data/features/css-scrollbar.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","292":"0 Q H R S T U V W X Y Z 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 AB BB CB"},C:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC","3138":"2B"},D:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","292":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB"},E:{"16":"J UB xC VC","292":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 q r s t u v w x y z","2":"F B C 9C AD BD CD JC pC DD KC","292":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p"},G:{"2":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD","292":"HD","804":"E ID JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"16":"cD dD","292":"PC J I eD fD qC gD hD"},J:{"292":"D A"},K:{"2":"A B C JC pC KC","292":"H"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"292":"LC"},P:{"1":"6 7 8 9","292":"1 2 3 4 5 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"292":"tD"},R:{"292":"uD"},S:{"2":"vD wD"}},B:4,C:"CSS scrollbar styling",D:true}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"1":"AB BB CB DB EB FB D","2":"C L M H N O P","292":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"1 2 3 4 5 6 7 8 9 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC","3138":"rB"},D:{"1":"AB BB CB DB EB FB D HC IC JC","292":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"16":"J GB gC KC","292":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","292":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p"},G:{"2":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC","292":"zC","804":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"16":"JD KD","292":"DC J D LD MD aC ND OD"},J:{"292":"E A"},K:{"2":"A B C 7B ZC 8B","292":"I"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"292":"9B"},P:{"1":"0","292":"J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"292":"aD"},R:{"292":"bD"},S:{"2":"cD dD"}},B:4,C:"CSS scrollbar styling",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-sel2.js b/node_modules/caniuse-lite/data/features/css-sel2.js index a92b5be12..91ddeda63 100644 --- a/node_modules/caniuse-lite/data/features/css-sel2.js +++ b/node_modules/caniuse-lite/data/features/css-sel2.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"D E F A B","2":"rC","8":"K"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS 2.1 selectors",D:true}; +module.exports={A:{A:{"1":"E F G A B","2":"bC","8":"K"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS 2.1 selectors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-sel3.js b/node_modules/caniuse-lite/data/features/css-sel3.js index 13fde21d3..11ced4474 100644 --- a/node_modules/caniuse-lite/data/features/css-sel3.js +++ b/node_modules/caniuse-lite/data/features/css-sel3.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K","132":"D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS3 selectors",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K","132":"E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS3 selectors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-selection.js b/node_modules/caniuse-lite/data/features/css-selection.js index f57572c46..4c4bc64fe 100644 --- a/node_modules/caniuse-lite/data/features/css-selection.js +++ b/node_modules/caniuse-lite/data/features/css-selection.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"C H pC KC","16":"A B JC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:5,C:"::selection CSS pseudo-element",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"C I ZC 8B","16":"A B 7B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:5,C:"::selection CSS pseudo-element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-shapes.js b/node_modules/caniuse-lite/data/features/css-shapes.js index accf8c300..9aacd56dd 100644 --- a/node_modules/caniuse-lite/data/features/css-shapes.js +++ b/node_modules/caniuse-lite/data/features/css-shapes.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB vC wC","322":"sB tB uB vB wB xB yB zB QC 0B RC"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB","194":"bB cB dB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC","33":"E F A 0C 1C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","33":"E ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"CSS Shapes Level 1",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB eC fC","322":"hB iB jB kB lB mB nB oB EC pB FC"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB","194":"QB RB SB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC","33":"F G A jC kC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"CSS Shapes Level 1",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-snappoints.js b/node_modules/caniuse-lite/data/features/css-snappoints.js index 16403d37f..ff4fb18a1 100644 --- a/node_modules/caniuse-lite/data/features/css-snappoints.js +++ b/node_modules/caniuse-lite/data/features/css-snappoints.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","6308":"A","6436":"B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","6436":"C L M G N O P"},C:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB vC wC","2052":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B"},D:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B","8258":"5B 6B 7B"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C","3108":"F A 1C WC"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC","8258":"vB wB xB yB zB 0B 1B 2B"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","3108":"JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2052":"vD"}},B:4,C:"CSS Scroll Snap",D:true}; +module.exports={A:{A:{"2":"K E F G bC","6308":"A","6436":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","6436":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB eC fC","2052":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB"},D:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB","8258":"uB vB wB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC","3108":"G A kC LC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B","8258":"kB lB mB nB oB pB qB rB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C","3108":"1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2052":"cD"}},B:4,C:"CSS Scroll Snap",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-sticky.js b/node_modules/caniuse-lite/data/features/css-sticky.js index e5f5dc5d6..83b6ff32c 100644 --- a/node_modules/caniuse-lite/data/features/css-sticky.js +++ b/node_modules/caniuse-lite/data/features/css-sticky.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G","1028":"Q H R S T U V W X Y Z","4100":"N O P"},C:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"7 8 9 WB XB YB","516":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},D:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 J UB K D E F A B C L M G N O P VB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","322":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB tB uB vB wB","1028":"xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","33":"E F A B C 0C 1C WC JC KC","2084":"D zC"},F:{"1":"0 HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB 9C AD BD CD JC pC DD KC","322":"gB hB iB","1028":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E ID JD KD LD MD ND OD PD QD","2084":"GD HD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1028":"tD"},R:{"1":"uD"},S:{"1":"wD","516":"vD"}},B:5,C:"CSS position:sticky",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H","1028":"Q I R S T U V W X Y Z","4100":"N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC","194":"IB JB KB LB MB NB","516":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","322":"0 y z IB JB KB LB MB NB OB PB QB RB SB iB jB kB lB","1028":"mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","33":"F G A B C jC kC LC 7B 8B","2084":"E iC"},F:{"1":"6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB rC sC tC uC 7B ZC vC 8B","322":"VB WB XB","1028":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C","2084":"yC zC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1028":"aD"},R:{"1":"bD"},S:{"1":"dD","516":"cD"}},B:5,C:"CSS position:sticky",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-subgrid.js b/node_modules/caniuse-lite/data/features/css-subgrid.js index 75cc79eee..d9df57171 100644 --- a/node_modules/caniuse-lite/data/features/css-subgrid.js +++ b/node_modules/caniuse-lite/data/features/css-subgrid.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","194":"x y z"},C:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B vC wC"},D:{"1":"0 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","194":"x y z"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i 9C AD BD CD JC pC DD KC","194":"j k l"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"5 6 7 8 9","2":"1 2 3 4 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"CSS Subgrid",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"6 7 8 9 AB BB CB DB EB FB D","2":"1 2 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"3 4 5"},C:{"1":"1 2 3 4 5 6 7 8 9 zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB eC fC"},D:{"1":"6 7 8 9 AB BB CB DB EB FB D HC IC JC","2":"0 1 2 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"3 4 5"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i rC sC tC uC 7B ZC vC 8B","194":"j k l"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 z","2":"J v w x y PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"CSS Subgrid",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-supports-api.js b/node_modules/caniuse-lite/data/features/css-supports-api.js index bb4f81617..c74a32f57 100644 --- a/node_modules/caniuse-lite/data/features/css-supports-api.js +++ b/node_modules/caniuse-lite/data/features/css-supports-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N O P"},C:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P VB vC wC","66":"1 2","260":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB","260":"9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD","132":"KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"132":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC","132":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS.supports() API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB eC fC","66":"v w","260":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB","260":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC","132":"8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"132":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC","132":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS.supports() API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-table.js b/node_modules/caniuse-lite/data/features/css-table.js index e1d61a766..41b8b9a2b 100644 --- a/node_modules/caniuse-lite/data/features/css-table.js +++ b/node_modules/caniuse-lite/data/features/css-table.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","132":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS Table display",D:true}; +module.exports={A:{A:{"1":"F G A B","2":"K E bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","132":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS Table display",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-align-last.js b/node_modules/caniuse-lite/data/features/css-text-align-last.js index 272757e5e..1265d0c4d 100644 --- a/node_modules/caniuse-lite/data/features/css-text-align-last.js +++ b/node_modules/caniuse-lite/data/features/css-text-align-last.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","4":"C L M G N O P"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B vC wC","33":"1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},D:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB","322":"cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 F B C G N O P VB 9C AD BD CD JC pC DD KC","578":"3 4 5 6 7 8 9 WB XB YB ZB aB"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:4,C:"CSS3 text-align-last",D:true}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","4":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B eC fC","33":"0 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},D:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB","322":"RB SB TB UB VB WB XB YB ZB aB bB cB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w rC sC tC uC 7B ZC vC 8B","578":"0 x y z IB JB KB LB MB NB OB PB"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:4,C:"CSS3 text-align-last",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-box-trim.js b/node_modules/caniuse-lite/data/features/css-text-box-trim.js index b68a038c2..533bcf2f4 100644 --- a/node_modules/caniuse-lite/data/features/css-text-box-trim.js +++ b/node_modules/caniuse-lite/data/features/css-text-box-trim.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB","322":"KB LB MB NB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB","322":"KB LB MB NB OB"},E:{"1":"kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC","194":"cC dC 6C NC eC fC gC hC iC 7C OC jC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","322":"0"},G:{"1":"kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","194":"cC dC ZD NC eC fC gC hC iC aD OC jC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Text Box",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","322":"HC IC JC"},E:{"1":"qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC","194":"RC SC pC BC TC UC VC WC XC YC CC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","194":"RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS text-box-trim & text-box-edge",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-indent.js b/node_modules/caniuse-lite/data/features/css-text-indent.js index 1843160a9..d58b474a7 100644 --- a/node_modules/caniuse-lite/data/features/css-text-indent.js +++ b/node_modules/caniuse-lite/data/features/css-text-indent.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"132":"C L M G N O P","388":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB vC wC"},D:{"132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB","388":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"132":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC","388":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"132":"bD"},I:{"132":"PC J cD dD eD fD qC gD hD","388":"I"},J:{"132":"D A"},K:{"132":"A B C JC pC KC","388":"H"},L:{"388":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"388":"LC"},P:{"132":"J","388":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"388":"tD"},R:{"388":"uD"},S:{"132":"vD wD"}},B:4,C:"CSS text-indent",D:true}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"132":"C L M H N O P","388":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"AB BB CB DB EB FB D HC IC JC dC","132":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","388":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"132":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B","388":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"132":"ID"},I:{"132":"DC J JD KD LD MD aC ND OD","388":"D"},J:{"132":"E A"},K:{"132":"A B C 7B ZC 8B","388":"I"},L:{"388":"D"},M:{"132":"D"},N:{"132":"A B"},O:{"388":"9B"},P:{"132":"J","388":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"388":"aD"},R:{"388":"bD"},S:{"132":"cD dD"}},B:4,C:"CSS text-indent",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-justify.js b/node_modules/caniuse-lite/data/features/css-text-justify.js index bb93d7ea8..27403c86d 100644 --- a/node_modules/caniuse-lite/data/features/css-text-justify.js +++ b/node_modules/caniuse-lite/data/features/css-text-justify.js @@ -1 +1 @@ -module.exports={A:{A:{"16":"K D rC","132":"E F A B"},B:{"132":"C L M G N O P","322":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vC wC","1025":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","1602":"vB"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","322":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC","322":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","322":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","322":"H"},L:{"322":"I"},M:{"1025":"IC"},N:{"132":"A B"},O:{"322":"LC"},P:{"2":"J","322":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"322":"tD"},R:{"322":"uD"},S:{"2":"vD","1025":"wD"}},B:4,C:"CSS text-justify",D:true}; +module.exports={A:{A:{"16":"K E bC","132":"F G A B"},B:{"132":"C L M H N O P","322":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB eC fC","1025":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","1602":"kB"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","322":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B","322":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","322":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","322":"I"},L:{"322":"D"},M:{"1025":"D"},N:{"132":"A B"},O:{"322":"9B"},P:{"2":"J","322":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"322":"aD"},R:{"322":"bD"},S:{"2":"cD","1025":"dD"}},B:4,C:"CSS text-justify",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-orientation.js b/node_modules/caniuse-lite/data/features/css-text-orientation.js index 19bcb14f4..fc8b6bb35 100644 --- a/node_modules/caniuse-lite/data/features/css-text-orientation.js +++ b/node_modules/caniuse-lite/data/features/css-text-orientation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC","194":"fB gB hB"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","16":"A","33":"B C L WC JC KC 2C"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS text-orientation",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC","194":"UB VB WB"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","16":"A","33":"B C L LC 7B 8B lC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS text-orientation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-text-spacing.js b/node_modules/caniuse-lite/data/features/css-text-spacing.js index 4c881d5d5..e8788bc9f 100644 --- a/node_modules/caniuse-lite/data/features/css-text-spacing.js +++ b/node_modules/caniuse-lite/data/features/css-text-spacing.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","161":"E F A B"},B:{"2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","161":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"16":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS Text 4 text-spacing",D:false}; +module.exports={A:{A:{"2":"K E bC","161":"F G A B"},B:{"2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","161":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"16":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS Text 4 text-spacing",D:false}; diff --git a/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js b/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js index 544e1a694..0ca25faf5 100644 --- a/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +++ b/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB"},C:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB vC wC"},D:{"1":"MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB"},E:{"1":"iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC"},F:{"1":"0 z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h 9C AD BD CD JC pC DD KC","132":"i j k l m n o p q r s t u v w x y"},G:{"1":"iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","132":"4 5 6 7 8 9"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS text-wrap: balance",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","132":"3 4 5 6 7 8 9 AB BB CB DB EB FB D"},C:{"1":"AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"2":"0 1 2 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","132":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC"},E:{"1":"XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h rC sC tC uC 7B ZC vC 8B","132":"i j k l m n o p q r s t u"},G:{"1":"XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","132":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","132":"0 y z"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS text-wrap: balance",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-textshadow.js b/node_modules/caniuse-lite/data/features/css-textshadow.js index 9e71c1940..2df853fa6 100644 --- a/node_modules/caniuse-lite/data/features/css-textshadow.js +++ b/node_modules/caniuse-lite/data/features/css-textshadow.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","129":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","260":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"4":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"A","4":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"129":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 Text-shadow",D:true}; +module.exports={A:{A:{"2":"K E F G bC","129":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","260":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"4":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"A","4":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"129":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 Text-shadow",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-touch-action.js b/node_modules/caniuse-lite/data/features/css-touch-action.js index b3fd51d30..0b10450a7 100644 --- a/node_modules/caniuse-lite/data/features/css-touch-action.js +++ b/node_modules/caniuse-lite/data/features/css-touch-action.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F rC","289":"A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","1025":"tB uB vB wB xB"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"2050":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD","516":"KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","289":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","194":"vD"}},B:2,C:"CSS touch-action property",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G bC","289":"A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","194":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","1025":"iB jB kB lB mB"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C","516":"2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","289":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","194":"cD"}},B:2,C:"CSS touch-action property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-transitions.js b/node_modules/caniuse-lite/data/features/css-transitions.js index 6bf30e725..25a8cba59 100644 --- a/node_modules/caniuse-lite/data/features/css-transitions.js +++ b/node_modules/caniuse-lite/data/features/css-transitions.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"UB K D E F A B C L M G","164":"J"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"K yC","164":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F 9C AD","33":"C","164":"B BD CD JC pC DD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"GD","164":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"I gD hD","33":"PC J cD dD eD fD qC"},J:{"1":"A","33":"D"},K:{"1":"H KC","33":"C","164":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS3 Transitions",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"GB K E F G A B C L M H","164":"J"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"K hC","164":"J GB gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G rC sC","33":"C","164":"B tC uC 7B ZC vC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"yC","164":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"D ND OD","33":"DC J JD KD LD MD aC"},J:{"1":"A","33":"E"},K:{"1":"I 8B","33":"C","164":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS3 Transitions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-unicode-bidi.js b/node_modules/caniuse-lite/data/features/css-unicode-bidi.js index 7cb843e04..41de49dd9 100644 --- a/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +++ b/node_modules/caniuse-lite/data/features/css-unicode-bidi.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","132":"sC PC J UB K D E F vC wC","292":"A B C L M G N"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"J UB K D E F A B C L M G N","548":"1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"132":"J UB K D E xC VC yC zC 0C","548":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"132":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"132":"E VC ED qC FD GD HD ID","548":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"16":"bD"},I:{"1":"I","16":"PC J cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","16":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:4,C:"CSS unicode-bidi property",D:false}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","132":"cC DC J GB K E F G eC fC","292":"A B C L M H N"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB K E F G A B C L M H N","548":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},E:{"132":"J GB K E F gC KC hC iC jC","548":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"132":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"132":"F KC wC aC xC yC zC 0C","548":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"16":"ID"},I:{"1":"D","16":"DC J JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","16":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:4,C:"CSS unicode-bidi property",D:false}; diff --git a/node_modules/caniuse-lite/data/features/css-unset-value.js b/node_modules/caniuse-lite/data/features/css-unset-value.js index 72b28ecfc..146e3b946 100644 --- a/node_modules/caniuse-lite/data/features/css-unset-value.js +++ b/node_modules/caniuse-lite/data/features/css-unset-value.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS unset value",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS unset value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-variables.js b/node_modules/caniuse-lite/data/features/css-variables.js index 81f35c0e3..f1bee9781 100644 --- a/node_modules/caniuse-lite/data/features/css-variables.js +++ b/node_modules/caniuse-lite/data/features/css-variables.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","260":"G"},C:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","194":"pB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C","260":"1C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC","194":"cB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD","260":"KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Variables (Custom Properties)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","260":"H"},C:{"1":"1 2 3 4 5 6 7 8 9 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB","194":"eB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC","260":"kC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B","194":"RB"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C","260":"2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Variables (Custom Properties)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-when-else.js b/node_modules/caniuse-lite/data/features/css-when-else.js index 64b31eb2e..3d94d087a 100644 --- a/node_modules/caniuse-lite/data/features/css-when-else.js +++ b/node_modules/caniuse-lite/data/features/css-when-else.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS @when / @else conditional rules",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS @when / @else conditional rules",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-widows-orphans.js b/node_modules/caniuse-lite/data/features/css-widows-orphans.js index 703d446bd..c56c306c5 100644 --- a/node_modules/caniuse-lite/data/features/css-widows-orphans.js +++ b/node_modules/caniuse-lite/data/features/css-widows-orphans.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D rC","129":"E F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","129":"F B 9C AD BD CD JC pC DD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:2,C:"CSS widows & orphans",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E bC","129":"F G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","129":"G B rC sC tC uC 7B ZC vC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:2,C:"CSS widows & orphans",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-width-stretch.js b/node_modules/caniuse-lite/data/features/css-width-stretch.js index 3d577f0b9..d8facb118 100644 --- a/node_modules/caniuse-lite/data/features/css-width-stretch.js +++ b/node_modules/caniuse-lite/data/features/css-width-stretch.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"I TC IC UC","2":"1 2 J UB K D E F A B C L M G N O P VB","33":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB"},L:{"1":"I"},B:{"1":"I","2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB"},C:{"2":"sC","33":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},M:{"33":"IC"},A:{"2":"K D E F A B rC"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},K:{"2":"A B C JC pC KC","33":"H"},E:{"2":"J UB K xC VC yC zC 8C","33":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC"},G:{"2":"VC ED qC FD GD","33":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},P:{"2":"J","33":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"}},B:6,C:"width: stretch property",D:undefined}; +module.exports={A:{D:{"2":"J GB K E F G A B C L M H N O P HB v w","33":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},L:{"33":"D"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC","33":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},M:{"33":"D"},A:{"2":"K E F G A B bC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},K:{"2":"A B C 7B ZC 8B","33":"I"},E:{"2":"J GB K gC KC hC iC qC","33":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC"},G:{"2":"KC wC aC xC yC","33":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},P:{"2":"J","33":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},I:{"2":"DC J JD KD LD MD aC","33":"D ND OD"}},B:6,C:"width: stretch property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/css-writing-mode.js b/node_modules/caniuse-lite/data/features/css-writing-mode.js index fc2415fd3..8ccd0bcd7 100644 --- a/node_modules/caniuse-lite/data/features/css-writing-mode.js +++ b/node_modules/caniuse-lite/data/features/css-writing-mode.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC","322":"dB eB fB gB hB"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K","16":"D","33":"1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB","33":"K D E F A yC zC 0C 1C WC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","33":"E FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"cD dD eD","33":"PC J fD qC gD hD"},J:{"33":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"36":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS writing-mode property",D:true}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC","322":"SB TB UB VB WB"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K","16":"E","33":"0 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB","33":"K E F G A hC iC jC kC LC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","33":"F xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"JD KD LD","33":"DC J MD aC ND OD"},J:{"33":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"36":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS writing-mode property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css-zoom.js b/node_modules/caniuse-lite/data/features/css-zoom.js index a03a834a3..9890d218c 100644 --- a/node_modules/caniuse-lite/data/features/css-zoom.js +++ b/node_modules/caniuse-lite/data/features/css-zoom.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D rC","129":"E F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"129":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"CSS zoom",D:true}; +module.exports={A:{A:{"1":"K E bC","129":"F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"129":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"CSS zoom",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-attr.js b/node_modules/caniuse-lite/data/features/css3-attr.js index 7ed661549..07fa0955d 100644 --- a/node_modules/caniuse-lite/data/features/css3-attr.js +++ b/node_modules/caniuse-lite/data/features/css3-attr.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS3 attr() function for all properties",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS3 attr() function for all properties",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-boxsizing.js b/node_modules/caniuse-lite/data/features/css3-boxsizing.js index 28b2ada6c..87246d795 100644 --- a/node_modules/caniuse-lite/data/features/css3-boxsizing.js +++ b/node_modules/caniuse-lite/data/features/css3-boxsizing.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","8":"K D rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"J UB K D E F"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"VC ED qC"},H:{"1":"bD"},I:{"1":"J I fD qC gD hD","33":"PC cD dD eD"},J:{"1":"A","33":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS3 Box-sizing",D:true}; +module.exports={A:{A:{"1":"F G A B","8":"K E bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"J GB K E F G"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"J GB gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"KC wC aC"},H:{"1":"ID"},I:{"1":"J D MD aC ND OD","33":"DC JD KD LD"},J:{"1":"A","33":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS3 Box-sizing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-colors.js b/node_modules/caniuse-lite/data/features/css3-colors.js index de1193b1b..b55a22d97 100644 --- a/node_modules/caniuse-lite/data/features/css3-colors.js +++ b/node_modules/caniuse-lite/data/features/css3-colors.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","4":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","2":"F","4":"9C"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS3 Colors",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","4":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","2":"G","4":"rC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS3 Colors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-cursors-grab.js b/node_modules/caniuse-lite/data/features/css3-cursors-grab.js index 0a685623e..1312129fc 100644 --- a/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +++ b/node_modules/caniuse-lite/data/features/css3-cursors-grab.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M"},C:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 C wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:2,C:"CSS grab & grabbing cursors",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"C lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:2,C:"CSS grab & grabbing cursors",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-cursors-newer.js b/node_modules/caniuse-lite/data/features/css3-cursors-newer.js index b11a5fc7c..8f934c271 100644 --- a/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +++ b/node_modules/caniuse-lite/data/features/css3-cursors-newer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 5 6 7 8 9 C WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC","33":"1 2 3 4 G N O P VB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:2,C:"CSS3 Cursors: zoom-in & zoom-out",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"cC DC J GB K E F G A B C L M H N O P HB v w x y eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"J GB K E F gC KC hC iC jC"},F:{"1":"0 C z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC","33":"H N O P HB v w x y"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:2,C:"CSS3 Cursors: zoom-in & zoom-out",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-cursors.js b/node_modules/caniuse-lite/data/features/css3-cursors.js index a68d8695b..8e0bac2ef 100644 --- a/node_modules/caniuse-lite/data/features/css3-cursors.js +++ b/node_modules/caniuse-lite/data/features/css3-cursors.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","4":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","260":"F B C 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:2,C:"CSS3 Cursors (original values)",D:true}; +module.exports={A:{A:{"1":"G A B","132":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","4":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","260":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","16":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:2,C:"CSS3 Cursors (original values)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/css3-tabsize.js b/node_modules/caniuse-lite/data/features/css3-tabsize.js index aa06390f5..9997c8935 100644 --- a/node_modules/caniuse-lite/data/features/css3-tabsize.js +++ b/node_modules/caniuse-lite/data/features/css3-tabsize.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z","164":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},D:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 J UB K D E F A B C L M G N O P VB","132":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","132":"D E F A B C L zC 0C 1C WC JC KC"},F:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD BD","132":"1 2 3 4 5 6 7 8 9 G N O P VB","164":"B C CD JC pC DD KC"},G:{"1":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","132":"E HD ID JD KD LD MD ND OD PD QD RD SD TD"},H:{"164":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","132":"gD hD"},J:{"132":"D A"},K:{"1":"H","2":"A","164":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"164":"vD wD"}},B:4,C:"CSS3 tab-size",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z","164":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB"},D:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v","132":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","132":"E F G A B C L iC jC kC LC 7B 8B"},F:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC tC","132":"0 H N O P HB v w x y z IB JB KB","164":"B C uC 7B ZC vC 8B"},G:{"1":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","132":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD"},H:{"164":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","132":"ND OD"},J:{"132":"E A"},K:{"1":"I","2":"A","164":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"164":"cD dD"}},B:4,C:"CSS3 tab-size",D:true}; diff --git a/node_modules/caniuse-lite/data/features/currentcolor.js b/node_modules/caniuse-lite/data/features/currentcolor.js index fee028084..aa76652c5 100644 --- a/node_modules/caniuse-lite/data/features/currentcolor.js +++ b/node_modules/caniuse-lite/data/features/currentcolor.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS currentColor value",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS currentColor value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/custom-elements.js b/node_modules/caniuse-lite/data/features/custom-elements.js index 081d60498..6942981fe 100644 --- a/node_modules/caniuse-lite/data/features/custom-elements.js +++ b/node_modules/caniuse-lite/data/features/custom-elements.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","8":"A B"},B:{"1":"Q","2":"0 H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L M G N O P"},C:{"2":"0 1 2 3 sC PC J UB K D E F A B C L M G N O P VB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","66":"4 5 6 7 8 9 WB","72":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},D:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","2":"0 1 2 3 4 5 6 7 J UB K D E F A B C L M G N O P VB H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","66":"8 9 WB XB YB ZB"},E:{"2":"J UB xC VC yC","8":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","2":"0 F B C 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","66":"G N O P VB"},G:{"2":"VC ED qC FD GD","8":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"hD","2":"PC J I cD dD eD fD qC gD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"J iD jD kD lD mD WC nD oD","2":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"2":"wD","72":"vD"}},B:7,C:"Custom Elements (deprecated V0 spec)",D:true}; +module.exports={A:{A:{"2":"K E F G bC","8":"A B"},B:{"1":"Q","2":"1 2 3 4 5 6 7 8 9 I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L M H N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","66":"0 y z IB JB KB LB","72":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","66":"JB KB LB MB NB OB"},E:{"2":"J GB gC KC hC","8":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","2":"G B C vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","66":"H N O P HB"},G:{"2":"KC wC aC xC yC","8":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"OD","2":"DC J D JD KD LD MD aC ND"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"J PD QD RD SD TD LC UD VD","2":"0 v w x y z WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"2":"dD","72":"cD"}},B:7,C:"Custom Elements (deprecated V0 spec)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/custom-elementsv1.js b/node_modules/caniuse-lite/data/features/custom-elementsv1.js index 62d516952..284ed95e9 100644 --- a/node_modules/caniuse-lite/data/features/custom-elementsv1.js +++ b/node_modules/caniuse-lite/data/features/custom-elementsv1.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","8":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L M G N O P"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB vC wC","8":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","456":"rB sB tB uB vB wB xB yB zB","712":"QC 0B RC 1B"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","8":"tB uB","132":"vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"2":"J UB K D xC VC yC zC 0C","8":"E F A 1C","132":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC","132":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD","132":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","132":"iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","8":"vD"}},B:1,C:"Custom Elements (V1)",D:true}; +module.exports={A:{A:{"2":"K E F G bC","8":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB eC fC","8":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","456":"gB hB iB jB kB lB mB nB oB","712":"EC pB FC qB"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","8":"iB jB","132":"kB lB mB nB oB EC pB FC qB rB sB tB uB"},E:{"2":"J GB K E gC KC hC iC jC","8":"F G A kC","132":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B","132":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C","132":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","132":"PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","8":"cD"}},B:1,C:"Custom Elements (V1)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/customevent.js b/node_modules/caniuse-lite/data/features/customevent.js index 8aac4c1a8..61f244131 100644 --- a/node_modules/caniuse-lite/data/features/customevent.js +++ b/node_modules/caniuse-lite/data/features/customevent.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","132":"K D E F A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J","16":"UB K D E L M","388":"F A B C"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB K","388":"yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F 9C AD BD CD","132":"B JC pC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"ED","16":"VC qC","388":"FD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"cD dD eD","388":"PC J fD qC"},J:{"1":"A","388":"D"},K:{"1":"C H KC","2":"A","132":"B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"CustomEvent",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","132":"K E F G A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J","16":"GB K E F L M","388":"G A B C"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB K","388":"hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G rC sC tC uC","132":"B 7B ZC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"wC","16":"KC aC","388":"xC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"JD KD LD","388":"DC J MD aC"},J:{"1":"A","388":"E"},K:{"1":"C I 8B","2":"A","132":"B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"CustomEvent",D:true}; diff --git a/node_modules/caniuse-lite/data/features/datalist.js b/node_modules/caniuse-lite/data/features/datalist.js index 693b507c1..78f900d4f 100644 --- a/node_modules/caniuse-lite/data/features/datalist.js +++ b/node_modules/caniuse-lite/data/features/datalist.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E F","260":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G","1284":"N O P"},C:{"8":"sC PC vC wC","516":"l m n o p q r s","4612":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k","8196":"0 t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J UB K D E F A B C L M G N O P VB","132":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"0 F B C 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"8":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD","18436":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I hD","8":"PC J cD dD eD fD qC gD"},J:{"1":"A","8":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:1,C:"Datalist element",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F G","260":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H","1284":"N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC eC fC","516":"l m n o p q r s","4612":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k"},D:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J GB K E F G A B C L M H N O P HB","132":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB K E F G A B C gC KC hC iC jC kC LC 7B"},F:{"1":"G B C sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"8":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C","2049":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D OD","8":"DC J JD KD LD MD aC ND"},J:{"1":"A","8":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:1,C:"Datalist element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dataset.js b/node_modules/caniuse-lite/data/features/dataset.js index afd29ec08..fec825e5f 100644 --- a/node_modules/caniuse-lite/data/features/dataset.js +++ b/node_modules/caniuse-lite/data/features/dataset.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","4":"K D E F A rC"},B:{"1":"C L M G N","129":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","4":"sC PC J UB vC wC","129":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"mB nB oB pB qB rB sB tB uB vB","4":"J UB K","129":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"4":"J UB xC VC","129":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"C ZB aB bB cB dB eB fB gB hB iB JC pC DD KC","4":"F B 9C AD BD CD","129":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"4":"VC ED qC","129":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"4":"bD"},I:{"4":"cD dD eD","129":"PC J I fD qC gD hD"},J:{"129":"D A"},K:{"1":"C JC pC KC","4":"A B","129":"H"},L:{"129":"I"},M:{"129":"IC"},N:{"1":"B","4":"A"},O:{"129":"LC"},P:{"129":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"129":"tD"},R:{"129":"uD"},S:{"1":"vD","129":"wD"}},B:1,C:"dataset & data-* attributes",D:true}; +module.exports={A:{A:{"1":"B","4":"K E F G A bC"},B:{"1":"C L M H N","129":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","4":"cC DC J GB eC fC","129":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"bB cB dB eB fB gB hB iB jB kB","4":"J GB K","129":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"4":"J GB gC KC","129":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"C OB PB QB RB SB TB UB VB WB XB 7B ZC vC 8B","4":"G B rC sC tC uC","129":"0 H N O P HB v w x y z IB JB KB LB MB NB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"4":"KC wC aC","129":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"4":"ID"},I:{"4":"JD KD LD","129":"DC J D MD aC ND OD"},J:{"129":"E A"},K:{"1":"C 7B ZC 8B","4":"A B","129":"I"},L:{"129":"D"},M:{"129":"D"},N:{"1":"B","4":"A"},O:{"129":"9B"},P:{"129":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"129":"aD"},R:{"129":"bD"},S:{"1":"cD","129":"dD"}},B:1,C:"dataset & data-* attributes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/datauri.js b/node_modules/caniuse-lite/data/features/datauri.js index 3335a3e35..97c6c5f34 100644 --- a/node_modules/caniuse-lite/data/features/datauri.js +++ b/node_modules/caniuse-lite/data/features/datauri.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","132":"E","260":"F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L G N O P","772":"M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"260":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Data URIs",D:true}; +module.exports={A:{A:{"2":"K E bC","132":"F","260":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L H N O P","772":"M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"260":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Data URIs",D:true}; diff --git a/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js b/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js index bd6d1a9d5..d2d5cc364 100644 --- a/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +++ b/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js @@ -1 +1 @@ -module.exports={A:{A:{"16":"rC","132":"K D E F A B"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O"},C:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","260":"tB uB vB wB","772":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},D:{"1":"0 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 J UB K D E F A B C L M G N O P VB","260":"fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B","772":"5 6 7 8 9 WB XB YB ZB aB bB cB dB eB"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC","132":"K D E F A yC zC 0C 1C","260":"B WC JC"},F:{"1":"0 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B C 9C AD BD CD JC pC DD","132":"KC","260":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","772":"1 2 3 4 5 G N O P VB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD","132":"E GD HD ID JD KD LD"},H:{"132":"bD"},I:{"1":"I","16":"PC cD dD eD","132":"J fD qC","772":"gD hD"},J:{"132":"D A"},K:{"1":"H","16":"A B C JC pC","132":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","260":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","132":"vD"}},B:6,C:"Date.prototype.toLocaleDateString",D:true}; +module.exports={A:{A:{"16":"bC","132":"K E F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O"},C:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","260":"iB jB kB lB","772":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},D:{"1":"1 2 3 4 5 6 7 8 9 yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB K E F G A B C L M H N O P HB v w x y","260":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB","772":"0 z IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC","132":"K E F G A hC iC jC kC","260":"B LC 7B"},F:{"1":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B C rC sC tC uC 7B ZC vC","132":"8B","260":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB","772":"H N O P HB v w x y z"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC","132":"F yC zC 0C 1C 2C 3C"},H:{"132":"ID"},I:{"1":"D","16":"DC JD KD LD","132":"J MD aC","772":"ND OD"},J:{"132":"E A"},K:{"1":"I","16":"A B C 7B ZC","132":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","260":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","132":"cD"}},B:6,C:"Date.prototype.toLocaleDateString",D:true}; diff --git a/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js b/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js index b9efffbea..f1b41dd31 100644 --- a/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +++ b/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z","132":"a b c d e f g h i j k l m n o p q r s t"},C:{"1":"FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB vC wC"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T","66":"U V W X Y","132":"Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC 9C AD BD CD JC pC DD KC","132":"GC HC Q H R SC S T U V W X Y Z a b c d e f"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD","16":"rD","132":"1 2 MC NC OC sD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:1,C:"Declarative Shadow DOM",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z","132":"a b c d e f g h i j k l m n o p q r s t"},C:{"1":"CB DB EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T","66":"U V W X Y","132":"Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B rC sC tC uC 7B ZC vC 8B","132":"5B 6B Q I R GC S T U V W X Y Z a b c d e f"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 x y z","2":"J PD QD RD SD TD LC UD VD WD XD","16":"YD","132":"v w AC BC CC ZD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:1,C:"Declarative Shadow DOM",D:true}; diff --git a/node_modules/caniuse-lite/data/features/decorators.js b/node_modules/caniuse-lite/data/features/decorators.js index 122913129..abbcdca67 100644 --- a/node_modules/caniuse-lite/data/features/decorators.js +++ b/node_modules/caniuse-lite/data/features/decorators.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Decorators",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Decorators",D:true}; diff --git a/node_modules/caniuse-lite/data/features/details.js b/node_modules/caniuse-lite/data/features/details.js index 57488ed9c..f80b5ef2b 100644 --- a/node_modules/caniuse-lite/data/features/details.js +++ b/node_modules/caniuse-lite/data/features/details.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"F A B rC","8":"K D E"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","8":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC","194":"oB pB"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J UB K D E F A B","257":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB","769":"C L M G N O P"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB xC VC yC","257":"K D E F A zC 0C 1C","1025":"B WC JC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"C JC pC DD KC","8":"F B 9C AD BD CD"},G:{"1":"E GD HD ID JD KD OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC FD","1025":"LD MD ND"},H:{"8":"bD"},I:{"1":"J I fD qC gD hD","8":"PC cD dD eD"},J:{"1":"A","8":"D"},K:{"1":"H","8":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Details & Summary elements",D:true}; +module.exports={A:{A:{"2":"G A B bC","8":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","8":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC","194":"dB eB"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J GB K E F G A B","257":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB","769":"C L M H N O P"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB gC KC hC","257":"K E F G A iC jC kC","1025":"B LC 7B"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"C 7B ZC vC 8B","8":"G B rC sC tC uC"},G:{"1":"F yC zC 0C 1C 2C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC xC","1025":"3C 4C 5C"},H:{"8":"ID"},I:{"1":"J D MD aC ND OD","8":"DC JD KD LD"},J:{"1":"A","8":"E"},K:{"1":"I","8":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Details & Summary elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/deviceorientation.js b/node_modules/caniuse-lite/data/features/deviceorientation.js index 6c8b5e6b7..7696e2985 100644 --- a/node_modules/caniuse-lite/data/features/deviceorientation.js +++ b/node_modules/caniuse-lite/data/features/deviceorientation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"C L M G N O P","4":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"sC PC vC","4":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"J UB wC"},D:{"2":"J UB K","4":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","4":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"VC ED","4":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"cD dD eD","4":"PC J I fD qC gD hD"},J:{"2":"D","4":"A"},K:{"1":"C KC","2":"A B JC pC","4":"H"},L:{"4":"I"},M:{"4":"IC"},N:{"1":"B","2":"A"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"4":"tD"},R:{"4":"uD"},S:{"4":"vD wD"}},B:4,C:"DeviceOrientation & DeviceMotion events",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"C L M H N O P","4":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC eC","4":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"J GB fC"},D:{"2":"J GB K","4":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","4":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"KC wC","4":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"JD KD LD","4":"DC J D MD aC ND OD"},J:{"2":"E","4":"A"},K:{"1":"C 8B","2":"A B 7B ZC","4":"I"},L:{"4":"D"},M:{"4":"D"},N:{"1":"B","2":"A"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"4":"aD"},R:{"4":"bD"},S:{"4":"cD dD"}},B:4,C:"DeviceOrientation & DeviceMotion events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/devicepixelratio.js b/node_modules/caniuse-lite/data/features/devicepixelratio.js index 97c81150f..7cc828290 100644 --- a/node_modules/caniuse-lite/data/features/devicepixelratio.js +++ b/node_modules/caniuse-lite/data/features/devicepixelratio.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Window.devicePixelRatio",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Window.devicePixelRatio",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dialog.js b/node_modules/caniuse-lite/data/features/dialog.js index 8deabc294..b19845ab6 100644 --- a/node_modules/caniuse-lite/data/features/dialog.js +++ b/node_modules/caniuse-lite/data/features/dialog.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC","194":"uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","1218":"H R SC S T U V W X Y Z a b c d e f g"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB","322":"ZB aB bB cB dB"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N O P 9C AD BD CD JC pC DD KC","578":"1 2 3 4 VB"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:1,C:"Dialog element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC","194":"jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","1218":"I R GC S T U V W X Y Z a b c d e f g"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB","322":"OB PB QB RB SB"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P rC sC tC uC 7B ZC vC 8B","578":"HB v w x y"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:1,C:"Dialog element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dispatchevent.js b/node_modules/caniuse-lite/data/features/dispatchevent.js index 63f6b0dfe..7f1072ef0 100644 --- a/node_modules/caniuse-lite/data/features/dispatchevent.js +++ b/node_modules/caniuse-lite/data/features/dispatchevent.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","16":"rC","129":"F A","130":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","129":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"EventTarget.dispatchEvent",D:true}; +module.exports={A:{A:{"1":"B","16":"bC","129":"G A","130":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","129":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"EventTarget.dispatchEvent",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dnssec.js b/node_modules/caniuse-lite/data/features/dnssec.js index d8269e24e..e7f345b63 100644 --- a/node_modules/caniuse-lite/data/features/dnssec.js +++ b/node_modules/caniuse-lite/data/features/dnssec.js @@ -1 +1 @@ -module.exports={A:{A:{"132":"K D E F A B rC"},B:{"132":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"132":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"132":"0 J UB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","388":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB"},E:{"132":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"132":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"132":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"132":"bD"},I:{"132":"PC J I cD dD eD fD qC gD hD"},J:{"132":"D A"},K:{"132":"A B C H JC pC KC"},L:{"132":"I"},M:{"132":"IC"},N:{"132":"A B"},O:{"132":"LC"},P:{"132":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"132":"tD"},R:{"132":"uD"},S:{"132":"vD wD"}},B:6,C:"DNSSEC and DANE",D:true}; +module.exports={A:{A:{"132":"K E F G A B bC"},B:{"132":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"132":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"132":"1 2 3 4 5 6 7 8 9 J GB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","388":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB"},E:{"132":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"132":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"132":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"132":"ID"},I:{"132":"DC J D JD KD LD MD aC ND OD"},J:{"132":"E A"},K:{"132":"A B C I 7B ZC 8B"},L:{"132":"D"},M:{"132":"D"},N:{"132":"A B"},O:{"132":"9B"},P:{"132":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"132":"aD"},R:{"132":"bD"},S:{"132":"cD dD"}},B:6,C:"DNSSEC and DANE",D:true}; diff --git a/node_modules/caniuse-lite/data/features/do-not-track.js b/node_modules/caniuse-lite/data/features/do-not-track.js index 2462d9eb6..eca8beb07 100644 --- a/node_modules/caniuse-lite/data/features/do-not-track.js +++ b/node_modules/caniuse-lite/data/features/do-not-track.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","164":"F A","260":"B"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N"},C:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E vC wC","516":"1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB"},D:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 J UB K D E F A B C L M G N O P VB"},E:{"1":"K A B C yC 1C WC JC","2":"J UB L M G xC VC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","1028":"D E F zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD"},G:{"1":"JD KD LD MD ND OD PD","2":"VC ED qC FD GD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","1028":"E HD ID"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"16":"D","1028":"A"},K:{"1":"H KC","16":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"164":"A","260":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"Do Not Track API",D:true}; +module.exports={A:{A:{"2":"K E F bC","164":"G A","260":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F eC fC","516":"0 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x"},E:{"1":"K A B C hC kC LC 7B","2":"J GB L M H gC KC 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","1028":"E F G iC jC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC"},G:{"1":"1C 2C 3C 4C 5C 6C 7C","2":"KC wC aC xC yC 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","1028":"F zC 0C"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"16":"E","1028":"A"},K:{"1":"I 8B","16":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"164":"A","260":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"Do Not Track API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/document-currentscript.js b/node_modules/caniuse-lite/data/features/document-currentscript.js index aea57c3f1..d75e12412 100644 --- a/node_modules/caniuse-lite/data/features/document-currentscript.js +++ b/node_modules/caniuse-lite/data/features/document-currentscript.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"document.currentScript",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC jC"},F:{"1":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"document.currentScript",D:true}; diff --git a/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js b/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js index 853373cce..a5f9855ba 100644 --- a/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +++ b/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","16":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"document.evaluate & XPath",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","16":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"document.evaluate & XPath",D:true}; diff --git a/node_modules/caniuse-lite/data/features/document-execcommand.js b/node_modules/caniuse-lite/data/features/document-execcommand.js index 40438272e..0641ad0d2 100644 --- a/node_modules/caniuse-lite/data/features/document-execcommand.js +++ b/node_modules/caniuse-lite/data/features/document-execcommand.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","16":"F 9C"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","16":"qC FD GD"},H:{"2":"bD"},I:{"1":"I fD qC gD hD","2":"PC J cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"Document.execCommand()",D:true}; +module.exports={A:{A:{"1":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC hC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","16":"G rC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC","16":"aC xC yC"},H:{"2":"ID"},I:{"1":"D MD aC ND OD","2":"DC J JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"Document.execCommand()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/document-policy.js b/node_modules/caniuse-lite/data/features/document-policy.js index 277b39940..ee9189596 100644 --- a/node_modules/caniuse-lite/data/features/document-policy.js +++ b/node_modules/caniuse-lite/data/features/document-policy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T","132":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T","132":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B 9C AD BD CD JC pC DD KC","132":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","132":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"132":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"132":"uD"},S:{"2":"vD wD"}},B:7,C:"Document Policy",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T","132":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T","132":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB rC sC tC uC 7B ZC vC 8B","132":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","132":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"132":"bD"},S:{"2":"cD dD"}},B:7,C:"Document Policy",D:true}; diff --git a/node_modules/caniuse-lite/data/features/document-scrollingelement.js b/node_modules/caniuse-lite/data/features/document-scrollingelement.js index 6cf1f3c83..ef3372b7f 100644 --- a/node_modules/caniuse-lite/data/features/document-scrollingelement.js +++ b/node_modules/caniuse-lite/data/features/document-scrollingelement.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C L"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC"},D:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"document.scrollingElement",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"document.scrollingElement",D:true}; diff --git a/node_modules/caniuse-lite/data/features/documenthead.js b/node_modules/caniuse-lite/data/features/documenthead.js index 1d86dd53c..f3018abdf 100644 --- a/node_modules/caniuse-lite/data/features/documenthead.js +++ b/node_modules/caniuse-lite/data/features/documenthead.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F 9C AD BD CD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"document.head",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G rC sC tC uC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"document.head",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dom-manip-convenience.js b/node_modules/caniuse-lite/data/features/dom-manip-convenience.js index 78301bc09..bfba9142e 100644 --- a/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +++ b/node_modules/caniuse-lite/data/features/dom-manip-convenience.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","194":"tB uB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB 9C AD BD CD JC pC DD KC","194":"hB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"DOM manipulation convenience methods",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","194":"iB jB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB rC sC tC uC 7B ZC vC 8B","194":"WB"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"DOM manipulation convenience methods",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dom-range.js b/node_modules/caniuse-lite/data/features/dom-range.js index abde38773..cb89d9214 100644 --- a/node_modules/caniuse-lite/data/features/dom-range.js +++ b/node_modules/caniuse-lite/data/features/dom-range.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Document Object Model Range",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Document Object Model Range",D:true}; diff --git a/node_modules/caniuse-lite/data/features/domcontentloaded.js b/node_modules/caniuse-lite/data/features/domcontentloaded.js index bae382694..0943092a5 100644 --- a/node_modules/caniuse-lite/data/features/domcontentloaded.js +++ b/node_modules/caniuse-lite/data/features/domcontentloaded.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"DOMContentLoaded",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"DOMContentLoaded",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dommatrix.js b/node_modules/caniuse-lite/data/features/dommatrix.js index ef174cf3a..05d3b854f 100644 --- a/node_modules/caniuse-lite/data/features/dommatrix.js +++ b/node_modules/caniuse-lite/data/features/dommatrix.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"132":"C L M G N O P","1028":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","1028":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2564":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","3076":"qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},D:{"16":"J UB K D","132":"1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B","388":"E","1028":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"16":"J xC VC","132":"UB K D E F A yC zC 0C 1C WC","1028":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","1028":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"16":"VC ED qC","132":"E FD GD HD ID JD KD LD MD","1028":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"132":"J fD qC gD hD","292":"PC cD dD eD","1028":"I"},J:{"16":"D","132":"A"},K:{"2":"A B C JC pC KC","1028":"H"},L:{"1028":"I"},M:{"1028":"IC"},N:{"132":"A B"},O:{"1028":"LC"},P:{"132":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1028":"tD"},R:{"1028":"uD"},S:{"1028":"wD","2564":"vD"}},B:4,C:"DOMMatrix",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"132":"C L M H N O P","1028":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","1028":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2564":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB","3076":"fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB"},D:{"16":"J GB K E","132":"0 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB","388":"F","1028":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"16":"J gC KC","132":"GB K E F G A hC iC jC kC LC","1028":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB","1028":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"16":"KC wC aC","132":"F xC yC zC 0C 1C 2C 3C 4C","1028":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"132":"J MD aC ND OD","292":"DC JD KD LD","1028":"D"},J:{"16":"E","132":"A"},K:{"2":"A B C 7B ZC 8B","1028":"I"},L:{"1028":"D"},M:{"1028":"D"},N:{"132":"A B"},O:{"1028":"9B"},P:{"132":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1028":"aD"},R:{"1028":"bD"},S:{"1028":"dD","2564":"cD"}},B:4,C:"DOMMatrix",D:true}; diff --git a/node_modules/caniuse-lite/data/features/download.js b/node_modules/caniuse-lite/data/features/download.js index d9531947a..452f5502a 100644 --- a/node_modules/caniuse-lite/data/features/download.js +++ b/node_modules/caniuse-lite/data/features/download.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Download attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Download attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/dragndrop.js b/node_modules/caniuse-lite/data/features/dragndrop.js index c16d23843..6de0ed6ef 100644 --- a/node_modules/caniuse-lite/data/features/dragndrop.js +++ b/node_modules/caniuse-lite/data/features/dragndrop.js @@ -1 +1 @@ -module.exports={A:{A:{"644":"K D E F rC","772":"A B"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","8":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","8":"F B 9C AD BD CD JC pC DD"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","1025":"I"},J:{"2":"D A"},K:{"1":"KC","8":"A B C JC pC","1025":"H"},L:{"1025":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"1025":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:1,C:"Drag and Drop",D:true}; +module.exports={A:{A:{"644":"K E F G bC","772":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","8":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","8":"G B rC sC tC uC 7B ZC vC"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","1025":"D"},J:{"2":"E A"},K:{"1":"8B","8":"A B C 7B ZC","1025":"I"},L:{"1025":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"1025":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:1,C:"Drag and Drop",D:true}; diff --git a/node_modules/caniuse-lite/data/features/element-closest.js b/node_modules/caniuse-lite/data/features/element-closest.js index d0a5d39d3..1fb703657 100644 --- a/node_modules/caniuse-lite/data/features/element-closest.js +++ b/node_modules/caniuse-lite/data/features/element-closest.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M"},C:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Element.closest()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Element.closest()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/element-from-point.js b/node_modules/caniuse-lite/data/features/element-from-point.js index 1bde56878..386b6a731 100644 --- a/node_modules/caniuse-lite/data/features/element-from-point.js +++ b/node_modules/caniuse-lite/data/features/element-from-point.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","16":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","16":"F 9C AD BD CD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"C H KC","16":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"document.elementFromPoint()",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","16":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","16":"G rC sC tC uC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"C I 8B","16":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"document.elementFromPoint()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/element-scroll-methods.js b/node_modules/caniuse-lite/data/features/element-scroll-methods.js index f01cdf757..6ee857437 100644 --- a/node_modules/caniuse-lite/data/features/element-scroll-methods.js +++ b/node_modules/caniuse-lite/data/features/element-scroll-methods.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","132":"A B C L WC JC KC 2C"},F:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD","132":"LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Scroll methods on elements (scroll, scrollTo, scrollBy)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","132":"A B C L LC 7B 8B lC"},F:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C","132":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Scroll methods on elements (scroll, scrollTo, scrollBy)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/eme.js b/node_modules/caniuse-lite/data/features/eme.js index afd56b9b3..aeb4eaadb 100644 --- a/node_modules/caniuse-lite/data/features/eme.js +++ b/node_modules/caniuse-lite/data/features/eme.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","164":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC"},D:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB","132":"cB dB eB fB gB hB iB"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC","164":"D E F A B 0C 1C WC JC"},F:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 F B C G N O P VB 9C AD BD CD JC pC DD KC","132":"3 4 5 6 7 8 9"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Encrypted Media Extensions",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","164":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB","132":"RB SB TB UB VB WB XB"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC","164":"E F G A B jC kC LC 7B"},F:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w rC sC tC uC 7B ZC vC 8B","132":"0 x y z IB JB KB"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Encrypted Media Extensions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/eot.js b/node_modules/caniuse-lite/data/features/eot.js index 10b4e84b3..9e56d4caf 100644 --- a/node_modules/caniuse-lite/data/features/eot.js +++ b/node_modules/caniuse-lite/data/features/eot.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"EOT - Embedded OpenType fonts",D:true}; +module.exports={A:{A:{"1":"K E F G A B","2":"bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"EOT - Embedded OpenType fonts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es5.js b/node_modules/caniuse-lite/data/features/es5.js index 294de1e42..9b7fc2292 100644 --- a/node_modules/caniuse-lite/data/features/es5.js +++ b/node_modules/caniuse-lite/data/features/es5.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D rC","260":"F","1026":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","4":"sC PC vC wC","132":"1 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"J UB K D E F A B C L M G N O P","132":"1 2 3 VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","4":"F B C 9C AD BD CD JC pC DD","132":"KC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","4":"VC ED qC FD"},H:{"132":"bD"},I:{"1":"I gD hD","4":"PC cD dD eD","132":"fD qC","900":"J"},J:{"1":"A","4":"D"},K:{"1":"H","4":"A B C JC pC","132":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ECMAScript 5",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E bC","260":"G","1026":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","4":"cC DC eC fC","132":"J GB K E F G A B C L M H N O P HB v"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"J GB K E F G A B C L M H N O P","132":"HB v w x"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"J GB gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","4":"G B C rC sC tC uC 7B ZC vC","132":"8B"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","4":"KC wC aC xC"},H:{"132":"ID"},I:{"1":"D ND OD","4":"DC JD KD LD","132":"MD aC","900":"J"},J:{"1":"A","4":"E"},K:{"1":"I","4":"A B C 7B ZC","132":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ECMAScript 5",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-class.js b/node_modules/caniuse-lite/data/features/es6-class.js index e9083edcf..cad07a5b8 100644 --- a/node_modules/caniuse-lite/data/features/es6-class.js +++ b/node_modules/caniuse-lite/data/features/es6-class.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","132":"jB kB lB mB nB oB pB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB 9C AD BD CD JC pC DD KC","132":"WB XB YB ZB aB bB cB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ES6 classes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB","132":"YB ZB aB bB cB dB eB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB rC sC tC uC 7B ZC vC 8B","132":"LB MB NB OB PB QB RB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ES6 classes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-generators.js b/node_modules/caniuse-lite/data/features/es6-generators.js index 0069d0d29..bd1e781e1 100644 --- a/node_modules/caniuse-lite/data/features/es6-generators.js +++ b/node_modules/caniuse-lite/data/features/es6-generators.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ES6 Generators",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ES6 Generators",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js b/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js index d09bb0143..7df37d052 100644 --- a/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +++ b/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B vC wC","194":"5B"},D:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"JavaScript modules: dynamic import()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB eC fC","194":"uB"},D:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"JavaScript modules: dynamic import()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-module.js b/node_modules/caniuse-lite/data/features/es6-module.js index ce5da68c3..f63fae827 100644 --- a/node_modules/caniuse-lite/data/features/es6-module.js +++ b/node_modules/caniuse-lite/data/features/es6-module.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","2049":"N O P","2242":"G"},C:{"1":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vC wC","322":"vB wB xB yB zB QC"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","194":"0B"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C","1540":"WC"},F:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB 9C AD BD CD JC pC DD KC","194":"oB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD","1540":"MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"JavaScript modules via script tag",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","2049":"N O P","2242":"H"},C:{"1":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB eC fC","322":"kB lB mB nB oB EC"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","194":"pB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC","1540":"LC"},F:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB rC sC tC uC 7B ZC vC 8B","194":"dB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C","1540":"4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"JavaScript modules via script tag",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-number.js b/node_modules/caniuse-lite/data/features/es6-number.js index f1cfd9a8a..90055a3d4 100644 --- a/node_modules/caniuse-lite/data/features/es6-number.js +++ b/node_modules/caniuse-lite/data/features/es6-number.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G vC wC","132":"1 2 3 4 5 N O P VB","260":"6 7 8 9 WB XB","516":"YB"},D:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P","1028":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","1028":"1 G N O P VB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD","1028":"fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ES6 Number",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H eC fC","132":"N O P HB v w x y z","260":"0 IB JB KB LB MB","516":"NB"},D:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P","1028":"0 HB v w x y z IB JB KB LB MB NB OB PB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","1028":"H N O P HB v"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD","1028":"MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ES6 Number",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6-string-includes.js b/node_modules/caniuse-lite/data/features/es6-string-includes.js index c2a4a5d91..8891e7f3f 100644 --- a/node_modules/caniuse-lite/data/features/es6-string-includes.js +++ b/node_modules/caniuse-lite/data/features/es6-string-includes.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"String.prototype.includes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"String.prototype.includes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/es6.js b/node_modules/caniuse-lite/data/features/es6.js index 684a930cb..f2d881c2b 100644 --- a/node_modules/caniuse-lite/data/features/es6.js +++ b/node_modules/caniuse-lite/data/features/es6.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","388":"B"},B:{"257":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M","769":"G N O P"},C:{"2":"sC PC J UB vC wC","4":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","257":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 J UB K D E F A B C L M G N O P VB","4":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","257":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC","4":"E F 0C 1C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","4":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB","257":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","4":"E HD ID JD KD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","4":"gD hD","257":"I"},J:{"2":"D","4":"A"},K:{"2":"A B C JC pC KC","257":"H"},L:{"257":"I"},M:{"257":"IC"},N:{"2":"A","388":"B"},O:{"257":"LC"},P:{"4":"J","257":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"257":"tD"},R:{"257":"uD"},S:{"4":"vD","257":"wD"}},B:6,C:"ECMAScript 2015 (ES6)",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","388":"B"},B:{"257":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M","769":"H N O P"},C:{"2":"cC DC J GB eC fC","4":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","257":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"J GB K E F G A B C L M H N O P HB v","4":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","257":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC","4":"F G jC kC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","4":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","257":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","4":"F zC 0C 1C 2C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","4":"ND OD","257":"D"},J:{"2":"E","4":"A"},K:{"2":"A B C 7B ZC 8B","257":"I"},L:{"257":"D"},M:{"257":"D"},N:{"2":"A","388":"B"},O:{"257":"9B"},P:{"4":"J","257":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"257":"aD"},R:{"257":"bD"},S:{"4":"cD","257":"dD"}},B:6,C:"ECMAScript 2015 (ES6)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/eventsource.js b/node_modules/caniuse-lite/data/features/eventsource.js index 609059e8b..e3d3f29fc 100644 --- a/node_modules/caniuse-lite/data/features/eventsource.js +++ b/node_modules/caniuse-lite/data/features/eventsource.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","4":"F 9C AD BD CD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"C H JC pC KC","4":"A B"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Server-sent events",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","4":"G rC sC tC uC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"C I 7B ZC 8B","4":"A B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Server-sent events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/extended-system-fonts.js b/node_modules/caniuse-lite/data/features/extended-system-fonts.js index 9ece949dd..61e943b1b 100644 --- a/node_modules/caniuse-lite/data/features/extended-system-fonts.js +++ b/node_modules/caniuse-lite/data/features/extended-system-fonts.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"ui-serif, ui-sans-serif, ui-monospace and ui-rounded values for font-family",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"ui-serif, ui-sans-serif, ui-monospace and ui-rounded values for font-family",D:true}; diff --git a/node_modules/caniuse-lite/data/features/feature-policy.js b/node_modules/caniuse-lite/data/features/feature-policy.js index 59c359c4a..8c1d2a068 100644 --- a/node_modules/caniuse-lite/data/features/feature-policy.js +++ b/node_modules/caniuse-lite/data/features/feature-policy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"Q H R S T U V W","2":"C L M G N O P","1025":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC vC wC","260":"0 DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"DC EC FC GC HC Q H R S T U V W","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","132":"0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC","1025":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B xC VC yC zC 0C 1C WC","772":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB 9C AD BD CD JC pC DD KC","132":"oB pB qB rB sB tB uB vB wB xB yB zB 0B","1025":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND","772":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","1025":"H"},L:{"1025":"I"},M:{"260":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD","132":"lD mD WC"},Q:{"132":"tD"},R:{"1025":"uD"},S:{"2":"vD","260":"wD"}},B:7,C:"Feature Policy",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"Q I R S T U V W","2":"C L M H N O P","1025":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B eC fC","260":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"2B 3B 4B 5B 6B Q I R S T U V W","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","132":"pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B","1025":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B gC KC hC iC jC kC LC","772":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB rC sC tC uC 7B ZC vC 8B","132":"dB eB fB gB hB iB jB kB lB mB nB oB pB","1025":"3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C","772":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","1025":"I"},L:{"1025":"D"},M:{"260":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD","132":"SD TD LC"},Q:{"132":"aD"},R:{"1025":"bD"},S:{"2":"cD","260":"dD"}},B:7,C:"Feature Policy",D:true}; diff --git a/node_modules/caniuse-lite/data/features/fetch.js b/node_modules/caniuse-lite/data/features/fetch.js index da8268beb..ba12b543b 100644 --- a/node_modules/caniuse-lite/data/features/fetch.js +++ b/node_modules/caniuse-lite/data/features/fetch.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB vC wC","1025":"gB","1218":"bB cB dB eB fB"},D:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB","260":"hB","772":"iB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 F B C G N O P VB 9C AD BD CD JC pC DD KC","260":"8","772":"9"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Fetch",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB eC fC","1025":"VB","1218":"QB RB SB TB UB"},D:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB","260":"WB","772":"XB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB rC sC tC uC 7B ZC vC 8B","260":"JB","772":"KB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Fetch",D:true}; diff --git a/node_modules/caniuse-lite/data/features/fieldset-disabled.js b/node_modules/caniuse-lite/data/features/fieldset-disabled.js index c74137235..afb0229cc 100644 --- a/node_modules/caniuse-lite/data/features/fieldset-disabled.js +++ b/node_modules/caniuse-lite/data/features/fieldset-disabled.js @@ -1 +1 @@ -module.exports={A:{A:{"16":"rC","132":"E F","388":"K D A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","16":"N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","16":"F 9C"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"388":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A","260":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"disabled attribute of the fieldset element",D:true}; +module.exports={A:{A:{"16":"bC","132":"F G","388":"K E A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","16":"N O P HB"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","16":"G rC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"388":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A","260":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"disabled attribute of the fieldset element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/fileapi.js b/node_modules/caniuse-lite/data/features/fileapi.js index 68e97569d..8774fae65 100644 --- a/node_modules/caniuse-lite/data/features/fileapi.js +++ b/node_modules/caniuse-lite/data/features/fileapi.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","260":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N O P"},C:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","260":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB wC"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB","260":"1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB","388":"K D E F A B C"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","260":"K D E F zC 0C 1C","388":"yC"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B 9C AD BD CD","260":"1 2 3 4 5 C G N O P VB JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","260":"E GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I hD","2":"cD dD eD","260":"gD","388":"PC J fD qC"},J:{"260":"A","388":"D"},K:{"1":"H","2":"A B","260":"C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A","260":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"File API",D:true}; +module.exports={A:{A:{"2":"K E F G bC","260":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","260":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB fC"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB","260":"0 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","388":"K E F G A B C"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","260":"K E F G iC jC kC","388":"hC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B rC sC tC uC","260":"C H N O P HB v w x y z 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","260":"F yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D OD","2":"JD KD LD","260":"ND","388":"DC J MD aC"},J:{"260":"A","388":"E"},K:{"1":"I","2":"A B","260":"C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A","260":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"File API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/filereader.js b/node_modules/caniuse-lite/data/features/filereader.js index 3f2fbcb38..b3d8c3acf 100644 --- a/node_modules/caniuse-lite/data/features/filereader.js +++ b/node_modules/caniuse-lite/data/features/filereader.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F B 9C AD BD CD"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"C H JC pC KC","2":"A B"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"FileReader API",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G B rC sC tC uC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"C I 7B ZC 8B","2":"A B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"FileReader API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/filereadersync.js b/node_modules/caniuse-lite/data/features/filereadersync.js index 1a1c54bd1..c2d109401 100644 --- a/node_modules/caniuse-lite/data/features/filereadersync.js +++ b/node_modules/caniuse-lite/data/features/filereadersync.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F 9C AD","16":"B BD CD JC pC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"C H pC KC","2":"A","16":"B JC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"FileReaderSync",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G rC sC","16":"B tC uC 7B ZC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"C I ZC 8B","2":"A","16":"B 7B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"FileReaderSync",D:true}; diff --git a/node_modules/caniuse-lite/data/features/filesystem.js b/node_modules/caniuse-lite/data/features/filesystem.js index a08d5551d..36bf0dc69 100644 --- a/node_modules/caniuse-lite/data/features/filesystem.js +++ b/node_modules/caniuse-lite/data/features/filesystem.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"J UB K D","33":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","36":"E F A B C"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D","33":"A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"33":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"33":"LC"},P:{"2":"J","33":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"33":"uD"},S:{"2":"vD wD"}},B:7,C:"Filesystem & FileWriter API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"J GB K E","33":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","36":"F G A B C"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E","33":"A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"33":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"33":"9B"},P:{"2":"J","33":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"33":"bD"},S:{"2":"cD dD"}},B:7,C:"Filesystem & FileWriter API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/flac.js b/node_modules/caniuse-lite/data/features/flac.js index 0806186cd..47b2c3547 100644 --- a/node_modules/caniuse-lite/data/features/flac.js +++ b/node_modules/caniuse-lite/data/features/flac.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB vC wC"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","16":"lB mB nB","388":"oB pB qB rB sB tB uB vB wB"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","516":"B C JC KC"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"cD dD eD","16":"PC J fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"H KC","16":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","129":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"FLAC audio format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB","16":"aB bB cB","388":"dB eB fB gB hB iB jB kB lB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","516":"B C 7B 8B"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"JD KD LD","16":"DC J MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","16":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","129":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"FLAC audio format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/flexbox-gap.js b/node_modules/caniuse-lite/data/features/flexbox-gap.js index 4778abcd5..4d185cfc2 100644 --- a/node_modules/caniuse-lite/data/features/flexbox-gap.js +++ b/node_modules/caniuse-lite/data/features/flexbox-gap.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC"},D:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C"},F:{"1":"0 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"gap property for Flexbox",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC"},F:{"1":"yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"gap property for Flexbox",D:true}; diff --git a/node_modules/caniuse-lite/data/features/flexbox.js b/node_modules/caniuse-lite/data/features/flexbox.js index 67bc46f46..44ae56c2b 100644 --- a/node_modules/caniuse-lite/data/features/flexbox.js +++ b/node_modules/caniuse-lite/data/features/flexbox.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","1028":"B","1316":"A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","164":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","516":"3 4 5 6 7 8"},D:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"2 3 4 5 6 7 8 9","164":"1 J UB K D E F A B C L M G N O P VB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"D E zC 0C","164":"J UB K xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD","33":"G N"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E HD ID","164":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"I gD hD","164":"PC J cD dD eD fD qC"},J:{"1":"A","164":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","292":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS Flexible Box Layout Module",D:true}; +module.exports={A:{A:{"2":"K E F G bC","1028":"B","1316":"A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","164":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","516":"0 x y z IB JB"},D:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 w x y z IB JB KB","164":"J GB K E F G A B C L M H N O P HB v"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"E F iC jC","164":"J GB K gC KC hC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC","33":"H N"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F zC 0C","164":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"D ND OD","164":"DC J JD KD LD MD aC"},J:{"1":"A","164":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","292":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS Flexible Box Layout Module",D:true}; diff --git a/node_modules/caniuse-lite/data/features/flow-root.js b/node_modules/caniuse-lite/data/features/flow-root.js index b3be31f76..ec27d787e 100644 --- a/node_modules/caniuse-lite/data/features/flow-root.js +++ b/node_modules/caniuse-lite/data/features/flow-root.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC"},D:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"display: flow-root",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B"},F:{"1":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"display: flow-root",D:true}; diff --git a/node_modules/caniuse-lite/data/features/focusin-focusout-events.js b/node_modules/caniuse-lite/data/features/focusin-focusout-events.js index cc8852e62..21817747e 100644 --- a/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +++ b/node_modules/caniuse-lite/data/features/focusin-focusout-events.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F 9C AD BD CD","16":"B JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"J I fD qC gD hD","2":"cD dD eD","16":"PC"},J:{"1":"D A"},K:{"1":"C H KC","2":"A","16":"B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"focusin & focusout events",D:true}; +module.exports={A:{A:{"1":"K E F G A B","2":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G rC sC tC uC","16":"B 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"J D MD aC ND OD","2":"JD KD LD","16":"DC"},J:{"1":"E A"},K:{"1":"C I 8B","2":"A","16":"B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"focusin & focusout events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-family-system-ui.js b/node_modules/caniuse-lite/data/features/font-family-system-ui.js index 4e2f878a6..b24779a9d 100644 --- a/node_modules/caniuse-lite/data/features/font-family-system-ui.js +++ b/node_modules/caniuse-lite/data/features/font-family-system-ui.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB vC wC","132":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","260":"uB vB wB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C","16":"F","132":"A 1C WC"},F:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","132":"JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"132":"vD wD"}},B:5,C:"system-ui value for font-family",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB eC fC","132":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","260":"jB kB lB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC","16":"G","132":"A kC LC"},F:{"1":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C","132":"1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"132":"cD dD"}},B:5,C:"system-ui value for font-family",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-feature.js b/node_modules/caniuse-lite/data/features/font-feature.js index 926f6c99c..233a1807c 100644 --- a/node_modules/caniuse-lite/data/features/font-feature.js +++ b/node_modules/caniuse-lite/data/features/font-feature.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB","164":"J UB K D E F A B C L M"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","33":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","292":"1 N O P VB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"D E F xC VC zC 0C","4":"J UB K yC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E HD ID JD","4":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS font-feature-settings",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB","164":"J GB K E F G A B C L M"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","33":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB","292":"N O P HB v"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"E F G gC KC iC jC","4":"J GB K hC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F zC 0C 1C","4":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"},J:{"2":"E","33":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS font-feature-settings",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-kerning.js b/node_modules/caniuse-lite/data/features/font-kerning.js index abe937042..3ad588fe2 100644 --- a/node_modules/caniuse-lite/data/features/font-kerning.js +++ b/node_modules/caniuse-lite/data/features/font-kerning.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"5 6 7 8 9 WB XB YB ZB aB"},D:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB","33":"WB XB YB ZB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC","33":"D E F 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G 9C AD BD CD JC pC DD KC","33":"N O P VB"},G:{"1":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","33":"E ID JD KD LD MD ND OD"},H:{"2":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC","33":"gD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 font-kerning",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y eC fC","194":"0 z IB JB KB LB MB NB OB PB"},D:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB","33":"LB MB NB OB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC","33":"E F G jC"},F:{"1":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H rC sC tC uC 7B ZC vC 8B","33":"N O P HB"},G:{"1":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C 4C 5C 6C"},H:{"2":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC","33":"ND"},J:{"2":"E","33":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 font-kerning",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-loading.js b/node_modules/caniuse-lite/data/features/font-loading.js index 138b0db9d..33c5532c0 100644 --- a/node_modules/caniuse-lite/data/features/font-loading.js +++ b/node_modules/caniuse-lite/data/features/font-loading.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB vC wC","194":"cB dB eB fB gB hB"},D:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS Font Loading",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB eC fC","194":"RB SB TB UB VB WB"},D:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS Font Loading",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-size-adjust.js b/node_modules/caniuse-lite/data/features/font-size-adjust.js index 12bc548b5..07747c6db 100644 --- a/node_modules/caniuse-lite/data/features/font-size-adjust.js +++ b/node_modules/caniuse-lite/data/features/font-size-adjust.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","194":"0 AB BB CB DB EB FB GB HB IB","962":"Q H R S T U V W X Y Z 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"},C:{"1":"AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","516":"0 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","772":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a vC wC"},D:{"1":"JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","194":"CB DB EB FB GB HB IB","962":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC","772":"cC dC 6C"},F:{"1":"0 w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC","194":"l m n o p q r s t u v","962":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","772":"cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"194":"tD"},R:{"2":"uD"},S:{"2":"vD","516":"wD"}},B:2,C:"CSS font-size-adjust",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"D","2":"C L M H N O P","194":"6 7 8 9 AB BB CB DB EB FB","962":"1 2 3 4 5 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"cC","516":"1 2 3 4 5 6 b c d e f g h i j k l m n o p q r s t u","772":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a eC fC"},D:{"1":"D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","194":"9 AB BB CB DB EB FB","962":"1 2 3 4 5 6 7 8 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC","772":"RC SC pC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B","194":"l m n o p q r s t u","962":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k"},G:{"1":"BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","772":"RC SC HD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"194":"aD"},R:{"2":"bD"},S:{"2":"cD","516":"dD"}},B:2,C:"CSS font-size-adjust",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-smooth.js b/node_modules/caniuse-lite/data/features/font-smooth.js index 29fb04801..982490221 100644 --- a/node_modules/caniuse-lite/data/features/font-smooth.js +++ b/node_modules/caniuse-lite/data/features/font-smooth.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","676":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC","804":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB","1828":"KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"J","676":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"xC VC","676":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","676":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"804":"vD wD"}},B:7,C:"CSS font-smooth",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","676":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC","804":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1828":"HC IC JC dC"},D:{"2":"J","676":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"gC KC","676":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","676":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"804":"cD dD"}},B:7,C:"CSS font-smooth",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-unicode-range.js b/node_modules/caniuse-lite/data/features/font-unicode-range.js index 3c505eb34..3e041afa1 100644 --- a/node_modules/caniuse-lite/data/features/font-unicode-range.js +++ b/node_modules/caniuse-lite/data/features/font-unicode-range.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","4":"F A B"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","4":"C L M G N"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC","194":"dB eB fB gB hB iB jB kB"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","4":"1 2 3 G N O P VB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","4":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","4":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","4":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"4":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","4":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Font unicode-range subsetting",D:true}; +module.exports={A:{A:{"2":"K E F bC","4":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","4":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC","194":"SB TB UB VB WB XB YB ZB"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","4":"H N O P HB v w x"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","4":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","4":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","4":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"4":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","4":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Font unicode-range subsetting",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-variant-alternates.js b/node_modules/caniuse-lite/data/features/font-variant-alternates.js index 9204cdc72..2e3f895a4 100644 --- a/node_modules/caniuse-lite/data/features/font-variant-alternates.js +++ b/node_modules/caniuse-lite/data/features/font-variant-alternates.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","130":"A B"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","130":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","130":"1 2 3 4 J UB K D E F A B C L M G N O P VB","322":"5 6 7 8 9 WB XB YB ZB aB"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","130":"1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"D E F xC VC zC 0C","130":"J UB K yC"},F:{"1":"0 h i j k l m n o p q r s t u v w x y z","2":"F B C 9C AD BD CD JC pC DD KC","130":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC HD ID JD","130":"ED qC FD GD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","130":"gD hD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"130":"LC"},P:{"1":"3 4 5 6 7 8 9","130":"1 2 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"130":"tD"},R:{"130":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS font-variant-alternates",D:true}; +module.exports={A:{A:{"2":"K E F G bC","130":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","130":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","130":"J GB K E F G A B C L M H N O P HB v w x y","322":"0 z IB JB KB LB MB NB OB PB"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","130":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"E F G gC KC iC jC","130":"J GB K hC"},F:{"1":"h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","130":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC zC 0C 1C","130":"wC aC xC yC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","130":"ND OD"},J:{"2":"E","130":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"130":"9B"},P:{"1":"0 x y z","130":"J v w PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"130":"aD"},R:{"130":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS font-variant-alternates",D:true}; diff --git a/node_modules/caniuse-lite/data/features/font-variant-numeric.js b/node_modules/caniuse-lite/data/features/font-variant-numeric.js index b0319d31b..e107ad367 100644 --- a/node_modules/caniuse-lite/data/features/font-variant-numeric.js +++ b/node_modules/caniuse-lite/data/features/font-variant-numeric.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB vC wC"},D:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB 9C AD BD CD JC pC DD KC"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS font-variant-numeric",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB rC sC tC uC 7B ZC vC 8B"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","16":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS font-variant-numeric",D:true}; diff --git a/node_modules/caniuse-lite/data/features/fontface.js b/node_modules/caniuse-lite/data/features/fontface.js index f1b95bab5..16a9ffbe8 100644 --- a/node_modules/caniuse-lite/data/features/fontface.js +++ b/node_modules/caniuse-lite/data/features/fontface.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","2":"F 9C"},G:{"1":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"VC ED"},H:{"2":"bD"},I:{"1":"J I fD qC gD hD","2":"cD","4":"PC dD eD"},J:{"1":"A","4":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"@font-face Web fonts",D:true}; +module.exports={A:{A:{"1":"G A B","132":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","2":"G rC"},G:{"1":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","260":"KC wC"},H:{"2":"ID"},I:{"1":"J D MD aC ND OD","2":"JD","4":"DC KD LD"},J:{"1":"A","4":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"@font-face Web fonts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/form-attribute.js b/node_modules/caniuse-lite/data/features/form-attribute.js index 56ce5552e..c94253f89 100644 --- a/node_modules/caniuse-lite/data/features/form-attribute.js +++ b/node_modules/caniuse-lite/data/features/form-attribute.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Form attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Form attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/form-submit-attributes.js b/node_modules/caniuse-lite/data/features/form-submit-attributes.js index 9a5258fe4..2393cda5c 100644 --- a/node_modules/caniuse-lite/data/features/form-submit-attributes.js +++ b/node_modules/caniuse-lite/data/features/form-submit-attributes.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C","16":"AD BD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"J I fD qC gD hD","2":"cD dD eD","16":"PC"},J:{"1":"A","2":"D"},K:{"1":"B C H JC pC KC","16":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Attributes for form submission",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC","16":"sC tC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"J D MD aC ND OD","2":"JD KD LD","16":"DC"},J:{"1":"A","2":"E"},K:{"1":"B C I 7B ZC 8B","16":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Attributes for form submission",D:true}; diff --git a/node_modules/caniuse-lite/data/features/form-validation.js b/node_modules/caniuse-lite/data/features/form-validation.js index e7c9b8438..32f709624 100644 --- a/node_modules/caniuse-lite/data/features/form-validation.js +++ b/node_modules/caniuse-lite/data/features/form-validation.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","132":"UB K D E F A yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","2":"F 9C"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC","132":"E ED qC FD GD HD ID JD KD LD"},H:{"516":"bD"},I:{"1":"I hD","2":"PC cD dD eD","132":"J fD qC gD"},J:{"1":"A","132":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"132":"IC"},N:{"260":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","132":"vD"}},B:1,C:"Form validation",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","132":"GB K E F G A hC iC jC kC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","2":"G rC"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC","132":"F wC aC xC yC zC 0C 1C 2C 3C"},H:{"516":"ID"},I:{"1":"D OD","2":"DC JD KD LD","132":"J MD aC ND"},J:{"1":"A","132":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"260":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","132":"cD"}},B:1,C:"Form validation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/forms.js b/node_modules/caniuse-lite/data/features/forms.js index 8f1b8b474..326673027 100644 --- a/node_modules/caniuse-lite/data/features/forms.js +++ b/node_modules/caniuse-lite/data/features/forms.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","4":"A B","8":"K D E F"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","4":"C L M G"},C:{"4":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"sC PC vC wC"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"4":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"xC VC"},F:{"1":"0 F B C tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","4":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"2":"VC","4":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","4":"gD hD"},J:{"2":"D","4":"A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"4":"IC"},N:{"4":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","4":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"4":"vD wD"}},B:1,C:"HTML5 form features",D:false}; +module.exports={A:{A:{"2":"bC","4":"A B","8":"K E F G"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","4":"C L M H"},C:{"4":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"4":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"gC KC"},F:{"1":"G B C iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","4":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},G:{"2":"KC","4":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","4":"ND OD"},J:{"2":"E","4":"A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"4":"D"},N:{"4":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","4":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"4":"cD dD"}},B:1,C:"HTML5 form features",D:false}; diff --git a/node_modules/caniuse-lite/data/features/fullscreen.js b/node_modules/caniuse-lite/data/features/fullscreen.js index c06d346c8..f77fc564c 100644 --- a/node_modules/caniuse-lite/data/features/fullscreen.js +++ b/node_modules/caniuse-lite/data/features/fullscreen.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","548":"B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","516":"C L M G N O P"},C:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC","676":"1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","1700":"oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B"},D:{"1":"0 AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M","676":"G N O P VB","804":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","548":"YC LC 5C MC ZC aC bC","676":"yC","804":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD","804":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD","2052":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D","292":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A","548":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","804":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Fullscreen API",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","548":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","516":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC","676":"0 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB","1700":"dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB"},D:{"1":"1 2 3 4 5 6 7 8 9 zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M","676":"H N O P HB","804":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","548":"NC 9B oC AC OC PC QC","676":"hC","804":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC","804":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C","2052":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E","292":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A","548":"B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","804":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Fullscreen API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/gamepad.js b/node_modules/caniuse-lite/data/features/gamepad.js index 9d752ab5e..28b0f1e10 100644 --- a/node_modules/caniuse-lite/data/features/gamepad.js +++ b/node_modules/caniuse-lite/data/features/gamepad.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 J UB K D E F A B C L M G N O P VB","33":"2 3 4 5"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"Gamepad API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v","33":"w x y z"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"Gamepad API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/geolocation.js b/node_modules/caniuse-lite/data/features/geolocation.js index fc1451897..0131ea47a 100644 --- a/node_modules/caniuse-lite/data/features/geolocation.js +++ b/node_modules/caniuse-lite/data/features/geolocation.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D E"},B:{"1":"C L M G N O P","129":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB vC wC","8":"sC PC","129":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","4":"J","129":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J xC VC","129":"A"},F:{"1":"1 2 3 4 5 6 7 8 9 B C N O P VB WB XB YB ZB aB bB cB dB eB fB CD JC pC DD KC","2":"F G 9C","8":"AD BD","129":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"E VC ED qC FD GD HD ID JD KD","129":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J cD dD eD fD qC gD hD","129":"I"},J:{"1":"D A"},K:{"1":"B C JC pC KC","8":"A","129":"H"},L:{"129":"I"},M:{"129":"IC"},N:{"1":"A B"},O:{"129":"LC"},P:{"1":"J","129":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"129":"tD"},R:{"129":"uD"},S:{"1":"vD","129":"wD"}},B:2,C:"Geolocation",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E F"},B:{"1":"C L M H N O P","129":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB eC fC","8":"cC DC","129":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","4":"J","129":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J gC KC","129":"A"},F:{"1":"0 B C N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB uC 7B ZC vC 8B","2":"G H rC","8":"sC tC","129":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C","129":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J JD KD LD MD aC ND OD","129":"D"},J:{"1":"E A"},K:{"1":"B C 7B ZC 8B","8":"A","129":"I"},L:{"129":"D"},M:{"129":"D"},N:{"1":"A B"},O:{"129":"9B"},P:{"1":"J","129":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"129":"aD"},R:{"129":"bD"},S:{"1":"cD","129":"dD"}},B:2,C:"Geolocation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/getboundingclientrect.js b/node_modules/caniuse-lite/data/features/getboundingclientrect.js index 34e7bbe36..4f27dda32 100644 --- a/node_modules/caniuse-lite/data/features/getboundingclientrect.js +++ b/node_modules/caniuse-lite/data/features/getboundingclientrect.js @@ -1 +1 @@ -module.exports={A:{A:{"644":"K D rC","2049":"F A B","2692":"E"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2049":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","260":"J UB K D E F A B","1156":"PC","1284":"vC","1796":"wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","16":"F 9C","132":"AD BD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","132":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"2049":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Element.getBoundingClientRect()",D:true}; +module.exports={A:{A:{"644":"K E bC","2049":"G A B","2692":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2049":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","260":"J GB K E F G A B","1156":"DC","1284":"eC","1796":"fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","16":"G rC","132":"sC tC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","132":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2049":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Element.getBoundingClientRect()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/getcomputedstyle.js b/node_modules/caniuse-lite/data/features/getcomputedstyle.js index 6126dc1e2..eb4bc6266 100644 --- a/node_modules/caniuse-lite/data/features/getcomputedstyle.js +++ b/node_modules/caniuse-lite/data/features/getcomputedstyle.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","132":"PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","260":"J UB K D E F A"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","260":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","260":"F 9C AD BD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"VC ED qC"},H:{"260":"bD"},I:{"1":"J I fD qC gD hD","260":"PC cD dD eD"},J:{"1":"A","260":"D"},K:{"1":"B C H JC pC KC","260":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"getComputedStyle",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","132":"DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","260":"J GB K E F G A"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","260":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","260":"G rC sC tC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","260":"KC wC aC"},H:{"260":"ID"},I:{"1":"J D MD aC ND OD","260":"DC JD KD LD"},J:{"1":"A","260":"E"},K:{"1":"B C I 7B ZC 8B","260":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"getComputedStyle",D:true}; diff --git a/node_modules/caniuse-lite/data/features/getelementsbyclassname.js b/node_modules/caniuse-lite/data/features/getelementsbyclassname.js index f65b64381..ea3501d18 100644 --- a/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +++ b/node_modules/caniuse-lite/data/features/getelementsbyclassname.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","8":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"getElementsByClassName",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","8":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"getElementsByClassName",D:true}; diff --git a/node_modules/caniuse-lite/data/features/getrandomvalues.js b/node_modules/caniuse-lite/data/features/getrandomvalues.js index c3c1a59d0..f780ee442 100644 --- a/node_modules/caniuse-lite/data/features/getrandomvalues.js +++ b/node_modules/caniuse-lite/data/features/getrandomvalues.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","33":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A","33":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"crypto.getRandomValues()",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","33":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A","33":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"crypto.getRandomValues()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/gyroscope.js b/node_modules/caniuse-lite/data/features/gyroscope.js index 817119ce5..04ad5ed30 100644 --- a/node_modules/caniuse-lite/data/features/gyroscope.js +++ b/node_modules/caniuse-lite/data/features/gyroscope.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","194":"zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"Gyroscope",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB EC pB FC qB rB sB tB uB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"Gyroscope",D:true}; diff --git a/node_modules/caniuse-lite/data/features/hardwareconcurrency.js b/node_modules/caniuse-lite/data/features/hardwareconcurrency.js index a61058aad..981a7f6ee 100644 --- a/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +++ b/node_modules/caniuse-lite/data/features/hardwareconcurrency.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB"},E:{"2":"J UB K D B C L M G xC VC yC zC 0C JC KC 2C 3C 4C XC","129":"WC","194":"E F A 1C","257":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC FD GD HD ND OD PD QD RD SD TD UD VD WD XD XC","129":"MD","194":"E ID JD KD LD","257":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"navigator.hardwareConcurrency",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB"},E:{"2":"J GB K E gC KC hC iC jC","129":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","194":"F G A kC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC xC yC zC","129":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","194":"F 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"navigator.hardwareConcurrency",D:true}; diff --git a/node_modules/caniuse-lite/data/features/hashchange.js b/node_modules/caniuse-lite/data/features/hashchange.js index b9b0abc02..f03dedc12 100644 --- a/node_modules/caniuse-lite/data/features/hashchange.js +++ b/node_modules/caniuse-lite/data/features/hashchange.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","8":"K D rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","8":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","8":"F 9C AD BD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"PC J I dD eD fD qC gD hD","2":"cD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","8":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Hashchange event",D:true}; +module.exports={A:{A:{"1":"F G A B","8":"K E bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","8":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","8":"G rC sC tC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"DC J D KD LD MD aC ND OD","2":"JD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","8":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Hashchange event",D:true}; diff --git a/node_modules/caniuse-lite/data/features/heif.js b/node_modules/caniuse-lite/data/features/heif.js index 937339971..dacc08a77 100644 --- a/node_modules/caniuse-lite/data/features/heif.js +++ b/node_modules/caniuse-lite/data/features/heif.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","130":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ZD","130":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"HEIF/HEIC image format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","130":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C HD","130":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"HEIF/HEIC image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/hevc.js b/node_modules/caniuse-lite/data/features/hevc.js index e4a805257..0cea8d717 100644 --- a/node_modules/caniuse-lite/data/features/hevc.js +++ b/node_modules/caniuse-lite/data/features/hevc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"132":"C L M G N O P","1028":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB vC wC","4098":"CB","8258":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB","16388":"TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","2052":"0 q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","516":"B C JC KC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c 9C AD BD CD JC pC DD KC","2052":"0 d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","2052":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","258":"H"},L:{"2052":"I"},M:{"16388":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"2 3 4 5 6 7 8 9","2":"J","258":"1 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"HEVC/H.265 video format",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"132":"C L M H N O P","1028":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC","4098":"9","8258":"AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p","2052":"1 2 3 4 5 6 7 8 9 q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","516":"B C 7B 8B"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c rC sC tC uC 7B ZC vC 8B","2052":"d e f g h i j k l m n o p q r s t u"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","2052":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","258":"I"},L:{"2052":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 w x y z","2":"J","258":"v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"HEVC/H.265 video format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/hidden.js b/node_modules/caniuse-lite/data/features/hidden.js index d725c51c5..0c6fd02cc 100644 --- a/node_modules/caniuse-lite/data/features/hidden.js +++ b/node_modules/caniuse-lite/data/features/hidden.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F B 9C AD BD CD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"J I fD qC gD hD","2":"PC cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"C H JC pC KC","2":"A B"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"hidden attribute",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G B rC sC tC uC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"J D MD aC ND OD","2":"DC JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"C I 7B ZC 8B","2":"A B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"hidden attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/high-resolution-time.js b/node_modules/caniuse-lite/data/features/high-resolution-time.js index 64603fbde..b4a189aba 100644 --- a/node_modules/caniuse-lite/data/features/high-resolution-time.js +++ b/node_modules/caniuse-lite/data/features/high-resolution-time.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","2":"sC PC J UB K D E F A B C L M vC wC","129":"wB xB yB","769":"zB QC","1281":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P VB","33":"1 2 3 4"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"High Resolution Time API",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","2":"cC DC J GB K E F G A B C L M eC fC","129":"lB mB nB","769":"oB EC","1281":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB","33":"v w x y"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC jC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"High Resolution Time API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/history.js b/node_modules/caniuse-lite/data/features/history.js index 4d073f3c7..0dcdea6bd 100644 --- a/node_modules/caniuse-lite/data/features/history.js +++ b/node_modules/caniuse-lite/data/features/history.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","4":"UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 pC DD KC","2":"F B 9C AD BD CD JC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","4":"qC"},H:{"2":"bD"},I:{"1":"I dD eD qC gD hD","2":"PC J cD fD"},J:{"1":"D A"},K:{"1":"C H JC pC KC","2":"A B"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Session history management",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","4":"GB hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u ZC vC 8B","2":"G B rC sC tC uC 7B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC","4":"aC"},H:{"2":"ID"},I:{"1":"D KD LD aC ND OD","2":"DC J JD MD"},J:{"1":"E A"},K:{"1":"C I 7B ZC 8B","2":"A B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Session history management",D:true}; diff --git a/node_modules/caniuse-lite/data/features/html-media-capture.js b/node_modules/caniuse-lite/data/features/html-media-capture.js index d9645a91e..fbe13054d 100644 --- a/node_modules/caniuse-lite/data/features/html-media-capture.js +++ b/node_modules/caniuse-lite/data/features/html-media-capture.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC FD","129":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD","257":"dD eD"},J:{"1":"A","16":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"516":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:2,C:"HTML Media Capture",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC xC","129":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD","257":"KD LD"},J:{"1":"A","16":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"516":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:2,C:"HTML Media Capture",D:true}; diff --git a/node_modules/caniuse-lite/data/features/html5semantic.js b/node_modules/caniuse-lite/data/features/html5semantic.js index a71b985bc..26a20782a 100644 --- a/node_modules/caniuse-lite/data/features/html5semantic.js +++ b/node_modules/caniuse-lite/data/features/html5semantic.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E","260":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","132":"PC vC wC","260":"1 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"J UB","260":"1 2 3 4 5 6 K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J xC VC","260":"UB K yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","132":"F B 9C AD BD CD","260":"C JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"VC","260":"ED qC FD GD"},H:{"132":"bD"},I:{"1":"I gD hD","132":"cD","260":"PC J dD eD fD qC"},J:{"260":"D A"},K:{"1":"H","132":"A","260":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"260":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"HTML5 semantic elements",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F","260":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","132":"DC eC fC","260":"J GB K E F G A B C L M H N O P HB v"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB","260":"0 K E F G A B C L M H N O P HB v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J gC KC","260":"GB K hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","132":"G B rC sC tC uC","260":"C 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"KC","260":"wC aC xC yC"},H:{"132":"ID"},I:{"1":"D ND OD","132":"JD","260":"DC J KD LD MD aC"},J:{"260":"E A"},K:{"1":"I","132":"A","260":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"260":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"HTML5 semantic elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/http-live-streaming.js b/node_modules/caniuse-lite/data/features/http-live-streaming.js index 6cb5e4977..dd5d9b9c7 100644 --- a/node_modules/caniuse-lite/data/features/http-live-streaming.js +++ b/node_modules/caniuse-lite/data/features/http-live-streaming.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"HTTP Live Streaming (HLS)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"HTTP Live Streaming (HLS)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/http2.js b/node_modules/caniuse-lite/data/features/http2.js index 6e0c54291..f9a5e23ce 100644 --- a/node_modules/caniuse-lite/data/features/http2.js +++ b/node_modules/caniuse-lite/data/features/http2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"C L M G N O P","513":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC","513":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"iB jB kB lB mB nB oB pB qB rB","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB","513":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C","260":"F A 1C WC"},F:{"1":"9 WB XB YB ZB aB bB cB dB eB","2":"1 2 3 4 5 6 7 8 F B C G N O P VB 9C AD BD CD JC pC DD KC","513":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","513":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","513":"H"},L:{"513":"I"},M:{"513":"IC"},N:{"2":"A B"},O:{"513":"LC"},P:{"1":"J","513":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"513":"tD"},R:{"513":"uD"},S:{"1":"vD","513":"wD"}},B:6,C:"HTTP/2 protocol",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"C L M H N O P","513":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC","513":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"XB YB ZB aB bB cB dB eB fB gB","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","513":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC","260":"G A kC LC"},F:{"1":"KB LB MB NB OB PB QB RB SB TB","2":"0 G B C H N O P HB v w x y z IB JB rC sC tC uC 7B ZC vC 8B","513":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","513":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","513":"I"},L:{"513":"D"},M:{"513":"D"},N:{"2":"A B"},O:{"513":"9B"},P:{"1":"J","513":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"513":"aD"},R:{"513":"bD"},S:{"1":"cD","513":"dD"}},B:6,C:"HTTP/2 protocol",D:true}; diff --git a/node_modules/caniuse-lite/data/features/http3.js b/node_modules/caniuse-lite/data/features/http3.js index 208df45d1..ad9daafc6 100644 --- a/node_modules/caniuse-lite/data/features/http3.js +++ b/node_modules/caniuse-lite/data/features/http3.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","322":"Q H R S T","578":"U V"},C:{"1":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC vC wC","194":"BC CC DC EC FC GC HC Q H R SC S T U V W"},D:{"1":"0 W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","322":"Q H R S T","578":"U V"},E:{"1":"OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC 2C","2049":"cC dC 6C NC eC fC gC hC iC 7C","2113":"MC ZC aC bC","3140":"M G 3C 4C XC YC LC 5C"},F:{"1":"0 DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC 9C AD BD CD JC pC DD KC","578":"CC"},G:{"1":"OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD","2049":"cC dC ZD NC eC fC gC hC iC aD","2113":"MC ZC aC bC","2116":"VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"HTTP/3 protocol",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","322":"Q I R S T","578":"U V"},C:{"1":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB eC fC","194":"0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W"},D:{"1":"1 2 3 4 5 6 7 8 9 W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B","322":"Q I R S T","578":"U V"},E:{"2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B lC","2052":"RC SC pC BC TC UC VC WC XC YC CC qC","2116":"AC OC PC QC","3140":"M H mC nC MC NC 9B oC"},F:{"1":"2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B rC sC tC uC 7B ZC vC 8B","578":"1B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD","2052":"RC SC HD BC TC UC VC WC XC YC CC","2116":"DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"HTTP/3 protocol",D:true}; diff --git a/node_modules/caniuse-lite/data/features/iframe-sandbox.js b/node_modules/caniuse-lite/data/features/iframe-sandbox.js index a8bb312e3..446d09f63 100644 --- a/node_modules/caniuse-lite/data/features/iframe-sandbox.js +++ b/node_modules/caniuse-lite/data/features/iframe-sandbox.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N vC wC","4":"1 2 3 4 5 6 7 8 O P VB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"PC J I dD eD fD qC gD hD","2":"cD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"sandbox attribute for iframes",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N eC fC","4":"0 O P HB v w x y z IB JB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"DC J D KD LD MD aC ND OD","2":"JD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"sandbox attribute for iframes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/iframe-seamless.js b/node_modules/caniuse-lite/data/features/iframe-seamless.js index bd780a501..152a76037 100644 --- a/node_modules/caniuse-lite/data/features/iframe-seamless.js +++ b/node_modules/caniuse-lite/data/features/iframe-seamless.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","66":"1 2 3 4 5 6 7"},E:{"2":"J UB K E F A B C L M G xC VC yC zC 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","130":"D 0C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","130":"HD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"seamless attribute for iframes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","66":"0 v w x y z IB"},E:{"2":"J GB K F G A B C L M H gC KC hC iC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","130":"E jC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","130":"zC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"seamless attribute for iframes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/iframe-srcdoc.js b/node_modules/caniuse-lite/data/features/iframe-srcdoc.js index bfea5f695..e3300a954 100644 --- a/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +++ b/node_modules/caniuse-lite/data/features/iframe-srcdoc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L M G N O P"},C:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC","8":"1 2 3 4 5 PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L","8":"M G N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","8":"J UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B 9C AD BD CD","8":"C JC pC DD KC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC","8":"ED qC FD"},H:{"2":"bD"},I:{"1":"I gD hD","8":"PC J cD dD eD fD qC"},J:{"1":"A","8":"D"},K:{"1":"H","2":"A B","8":"C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"srcdoc attribute for iframes",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC","8":"DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L","8":"M H N O P HB"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","8":"J GB hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B rC sC tC uC","8":"C 7B ZC vC 8B"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC","8":"wC aC xC"},H:{"2":"ID"},I:{"1":"D ND OD","8":"DC J JD KD LD MD aC"},J:{"1":"A","8":"E"},K:{"1":"I","2":"A B","8":"C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"srcdoc attribute for iframes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/imagecapture.js b/node_modules/caniuse-lite/data/features/imagecapture.js index 0485e6720..1b4747d67 100644 --- a/node_modules/caniuse-lite/data/features/imagecapture.js +++ b/node_modules/caniuse-lite/data/features/imagecapture.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB vC wC","194":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","322":"uB vB wB xB yB zB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","516":"8C"},F:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB 9C AD BD CD JC pC DD KC","322":"hB iB jB kB lB mB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"194":"vD wD"}},B:5,C:"ImageCapture API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB eC fC","194":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","322":"jB kB lB mB nB oB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB rC sC tC uC 7B ZC vC 8B","322":"WB XB YB ZB aB bB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"194":"cD dD"}},B:5,C:"ImageCapture API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ime.js b/node_modules/caniuse-lite/data/features/ime.js index a3775fb07..6b8e2227d 100644 --- a/node_modules/caniuse-lite/data/features/ime.js +++ b/node_modules/caniuse-lite/data/features/ime.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","161":"B"},B:{"2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","161":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A","161":"B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Input Method Editor API",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","161":"B"},B:{"2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","161":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A","161":"B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Input Method Editor API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js b/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js index 4ec62a045..1f27ba56b 100644 --- a/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +++ b/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"naturalWidth & naturalHeight image properties",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"naturalWidth & naturalHeight image properties",D:true}; diff --git a/node_modules/caniuse-lite/data/features/import-maps.js b/node_modules/caniuse-lite/data/features/import-maps.js index db89e056a..a1d8292cc 100644 --- a/node_modules/caniuse-lite/data/features/import-maps.js +++ b/node_modules/caniuse-lite/data/features/import-maps.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","194":"Q H R S T U V W X"},C:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k vC wC","322":"l m n o p q"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC","194":"DC EC FC GC HC Q H R S T U V W X"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC","194":"1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Import maps",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","194":"Q I R S T U V W X"},C:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k eC fC","322":"l m n o p q"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B","194":"2B 3B 4B 5B 6B Q I R S T U V W X"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B","194":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Import maps",D:true}; diff --git a/node_modules/caniuse-lite/data/features/imports.js b/node_modules/caniuse-lite/data/features/imports.js index d62800eb1..339402878 100644 --- a/node_modules/caniuse-lite/data/features/imports.js +++ b/node_modules/caniuse-lite/data/features/imports.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","8":"A B"},B:{"1":"Q","2":"0 H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB vC wC","8":"0 XB YB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","72":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},D:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","66":"XB YB ZB aB bB","72":"cB"},E:{"2":"J UB xC VC yC","8":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","2":"0 F B C G N 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","66":"1 2 O P VB","72":"3"},G:{"2":"VC ED qC FD GD","8":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"8":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"J iD jD kD lD mD WC nD oD","2":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"1":"vD","8":"wD"}},B:5,C:"HTML Imports",D:true}; +module.exports={A:{A:{"2":"K E F G bC","8":"A B"},B:{"1":"Q","2":"1 2 3 4 5 6 7 8 9 I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB eC fC","8":"1 2 3 4 5 6 7 8 9 MB NB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","72":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},D:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","66":"MB NB OB PB QB","72":"RB"},E:{"2":"J GB gC KC hC","8":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","2":"G B C H N vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","66":"O P HB v w","72":"x"},G:{"2":"KC wC aC xC yC","8":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"8":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"J PD QD RD SD TD LC UD VD","2":"0 v w x y z WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"1":"cD","8":"dD"}},B:5,C:"HTML Imports",D:true}; diff --git a/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js b/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js index 5c6b50451..dc6390eca 100644 --- a/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +++ b/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC","16":"vC"},D:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"indeterminate checkbox",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC","16":"eC"},D:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"indeterminate checkbox",D:true}; diff --git a/node_modules/caniuse-lite/data/features/indexeddb.js b/node_modules/caniuse-lite/data/features/indexeddb.js index bee1dcaf3..b796192e7 100644 --- a/node_modules/caniuse-lite/data/features/indexeddb.js +++ b/node_modules/caniuse-lite/data/features/indexeddb.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"A B C L M G","36":"J UB K D E F"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"A","8":"J UB K D E F","33":"4","36":"1 2 3 B C L M G N O P VB"},E:{"1":"A B C L M G WC JC KC 2C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB K D xC VC yC zC","260":"E F 0C 1C","516":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD","8":"B C BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC FD GD HD","260":"E ID JD KD","516":"WD"},H:{"2":"bD"},I:{"1":"I gD hD","8":"PC J cD dD eD fD qC"},J:{"1":"A","8":"D"},K:{"1":"H","2":"A","8":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"IndexedDB",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"A B C L M H","36":"J GB K E F G"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"A","8":"J GB K E F G","33":"y","36":"B C L M H N O P HB v w x"},E:{"1":"A B C L M H LC 7B 8B lC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB K E gC KC hC iC","260":"F G jC kC","516":"mC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC","8":"B C tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC xC yC zC","260":"F 0C 1C 2C","516":"ED"},H:{"2":"ID"},I:{"1":"D ND OD","8":"DC J JD KD LD MD aC"},J:{"1":"A","8":"E"},K:{"1":"I","2":"A","8":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"IndexedDB",D:true}; diff --git a/node_modules/caniuse-lite/data/features/indexeddb2.js b/node_modules/caniuse-lite/data/features/indexeddb2.js index 4f0fb4b05..e7e4045e6 100644 --- a/node_modules/caniuse-lite/data/features/indexeddb2.js +++ b/node_modules/caniuse-lite/data/features/indexeddb2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vC wC","132":"lB mB nB","260":"oB pB qB rB"},D:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","132":"pB qB rB sB","260":"tB uB vB wB xB yB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC","132":"cB dB eB fB","260":"gB hB iB jB kB lB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD","16":"LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","260":"iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","260":"vD"}},B:2,C:"IndexedDB 2.0",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB eC fC","132":"aB bB cB","260":"dB eB fB gB"},D:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB","132":"eB fB gB hB","260":"iB jB kB lB mB nB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B","132":"RB SB TB UB","260":"VB WB XB YB ZB aB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C","16":"3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","260":"PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","260":"cD"}},B:2,C:"IndexedDB 2.0",D:true}; diff --git a/node_modules/caniuse-lite/data/features/inline-block.js b/node_modules/caniuse-lite/data/features/inline-block.js index 22d514e92..c489e01ae 100644 --- a/node_modules/caniuse-lite/data/features/inline-block.js +++ b/node_modules/caniuse-lite/data/features/inline-block.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","4":"rC","132":"K D"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","36":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS inline-block",D:true}; +module.exports={A:{A:{"1":"F G A B","4":"bC","132":"K E"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","36":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS inline-block",D:true}; diff --git a/node_modules/caniuse-lite/data/features/innertext.js b/node_modules/caniuse-lite/data/features/innertext.js index 936cd4d09..8d0c3ed12 100644 --- a/node_modules/caniuse-lite/data/features/innertext.js +++ b/node_modules/caniuse-lite/data/features/innertext.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"HTMLElement.innerText",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"HTMLElement.innerText",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js b/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js index 53c2083ad..ceee1464e 100644 --- a/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +++ b/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A rC","132":"B"},B:{"132":"C L M G N O P","260":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB vC wC","516":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"1 2 3 4 5 6 7 O P VB","2":"J UB K D E F A B C L M G N","132":"8 9 WB XB YB ZB aB bB cB dB eB fB gB hB","260":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K yC zC","2":"J UB xC VC","2052":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC","1025":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1025":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2052":"A B"},O:{"1025":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"260":"tD"},R:{"1":"uD"},S:{"516":"vD wD"}},B:1,C:"autocomplete attribute: on & off values",D:true}; +module.exports={A:{A:{"1":"K E F G A bC","132":"B"},B:{"132":"C L M H N O P","260":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB eC fC","516":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 O P HB v w x y z IB","2":"J GB K E F G A B C L M H N","132":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB","260":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K hC iC","2":"J GB gC KC","2052":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC","1025":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1025":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2052":"A B"},O:{"1025":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"260":"aD"},R:{"1":"bD"},S:{"516":"cD dD"}},B:1,C:"autocomplete attribute: on & off values",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-color.js b/node_modules/caniuse-lite/data/features/input-color.js index 4191c9bcd..3be7aae7c 100644 --- a/node_modules/caniuse-lite/data/features/input-color.js +++ b/node_modules/caniuse-lite/data/features/input-color.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P VB"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F G N 9C AD BD CD"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD","129":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"Color input type",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B"},F:{"1":"0 B C O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G H N rC sC tC uC"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C","129":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"Color input type",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-datetime.js b/node_modules/caniuse-lite/data/features/input-datetime.js index f4a8a6662..4ff647291 100644 --- a/node_modules/caniuse-lite/data/features/input-datetime.js +++ b/node_modules/caniuse-lite/data/features/input-datetime.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC","1090":"uB vB wB xB","2052":"yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b","4100":"0 c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P VB","2052":"1 2 3 4 5"},E:{"2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C","4100":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC","260":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC","8193":"kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC cD dD eD","514":"J fD qC"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"4100":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2052":"vD wD"}},B:1,C:"Date and time input types",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC","1090":"jB kB lB mB","2052":"nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b","4100":"1 2 3 4 5 6 7 8 9 c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB","2052":"v w x y z"},E:{"2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC","4100":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC","260":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC JD KD LD","514":"J MD aC"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"4100":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2052":"cD dD"}},B:1,C:"Date and time input types",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-email-tel-url.js b/node_modules/caniuse-lite/data/features/input-email-tel-url.js index a2e58a591..967905c8f 100644 --- a/node_modules/caniuse-lite/data/features/input-email-tel-url.js +++ b/node_modules/caniuse-lite/data/features/input-email-tel-url.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","132":"cD dD eD"},J:{"1":"A","132":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Email, telephone & URL input types",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","132":"JD KD LD"},J:{"1":"A","132":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Email, telephone & URL input types",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-event.js b/node_modules/caniuse-lite/data/features/input-event.js index 91101158c..40d495032 100644 --- a/node_modules/caniuse-lite/data/features/input-event.js +++ b/node_modules/caniuse-lite/data/features/input-event.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","2561":"A B","2692":"F"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2561":"C L M G N O P"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC","1537":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB wC","1796":"PC vC"},D:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","1025":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B","1537":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB K xC VC","1025":"D E F A B C zC 0C 1C WC JC","1537":"yC","4097":"L KC"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","16":"F B C 9C AD BD CD JC pC","260":"DD","1025":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","1537":"1 2 G N O P VB"},G:{"1":"SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","1025":"E ID JD KD LD MD ND OD PD","1537":"FD GD HD","4097":"QD RD"},H:{"2":"bD"},I:{"16":"cD dD","1025":"I hD","1537":"PC J eD fD qC gD"},J:{"1025":"A","1537":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2561":"A B"},O:{"1":"LC"},P:{"1025":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","1537":"vD"}},B:1,C:"input event",D:true}; +module.exports={A:{A:{"2":"K E F bC","2561":"A B","2692":"G"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2561":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC","1537":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fC","1796":"DC eC"},D:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M","1025":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB","1537":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB K gC KC","1025":"E F G A B C iC jC kC LC 7B","1537":"hC","4097":"L 8B"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","16":"G B C rC sC tC uC 7B ZC","260":"vC","1025":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","1537":"H N O P HB v w"},G:{"1":"AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","1025":"F 0C 1C 2C 3C 4C 5C 6C 7C","1537":"xC yC zC","4097":"8C 9C"},H:{"2":"ID"},I:{"16":"JD KD","1025":"D OD","1537":"DC J LD MD aC ND"},J:{"1025":"A","1537":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2561":"A B"},O:{"1":"9B"},P:{"1025":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","1537":"cD"}},B:1,C:"input event",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-file-accept.js b/node_modules/caniuse-lite/data/features/input-file-accept.js index 488198937..613c84885 100644 --- a/node_modules/caniuse-lite/data/features/input-file-accept.js +++ b/node_modules/caniuse-lite/data/features/input-file-accept.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J","16":"2 3 4 5 6 UB K D E","132":"1 F A B C L M G N O P VB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","132":"K D E F A B zC 0C 1C WC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"2":"GD HD","132":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","514":"VC ED qC FD"},H:{"2":"bD"},I:{"2":"cD dD eD","260":"PC J fD qC","514":"I gD hD"},J:{"132":"A","260":"D"},K:{"2":"A B C JC pC KC","514":"H"},L:{"260":"I"},M:{"2":"IC"},N:{"514":"A","1028":"B"},O:{"2":"LC"},P:{"260":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"260":"tD"},R:{"260":"uD"},S:{"1":"vD wD"}},B:1,C:"accept attribute for file input",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J","16":"0 GB K E F w x y z","132":"G A B C L M H N O P HB v"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","132":"K E F G A B iC jC kC LC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"yC zC","132":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","514":"KC wC aC xC"},H:{"2":"ID"},I:{"2":"JD KD LD","260":"DC J MD aC","514":"D ND OD"},J:{"132":"A","260":"E"},K:{"2":"A B C 7B ZC 8B","514":"I"},L:{"260":"D"},M:{"2":"D"},N:{"514":"A","1028":"B"},O:{"2":"9B"},P:{"260":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"260":"aD"},R:{"260":"bD"},S:{"1":"cD dD"}},B:1,C:"accept attribute for file input",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-file-directory.js b/node_modules/caniuse-lite/data/features/input-file-directory.js index 8cb0bc3e8..ea3a5ea9f 100644 --- a/node_modules/caniuse-lite/data/features/input-file-directory.js +++ b/node_modules/caniuse-lite/data/features/input-file-directory.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Directory selection from file input",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Directory selection from file input",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-file-multiple.js b/node_modules/caniuse-lite/data/features/input-file-multiple.js index 8ed44e003..464d8f260 100644 --- a/node_modules/caniuse-lite/data/features/input-file-multiple.js +++ b/node_modules/caniuse-lite/data/features/input-file-multiple.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C AD BD"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"130":"bD"},I:{"130":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","130":"A B C JC pC KC"},L:{"132":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"130":"LC"},P:{"130":"J","132":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"132":"tD"},R:{"132":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"Multiple file selection",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC sC tC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"130":"ID"},I:{"130":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","130":"A B C 7B ZC 8B"},L:{"132":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"130":"9B"},P:{"130":"J","132":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"132":"aD"},R:{"132":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"Multiple file selection",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-inputmode.js b/node_modules/caniuse-lite/data/features/input-inputmode.js index d9b996ff6..ec00a7c99 100644 --- a/node_modules/caniuse-lite/data/features/input-inputmode.js +++ b/node_modules/caniuse-lite/data/features/input-inputmode.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N vC wC","4":"1 O P VB","194":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d"},D:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","66":"xB yB zB QC 0B RC 1B 2B 3B 4B"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"0 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB 9C AD BD CD JC pC DD KC","66":"kB lB mB nB oB pB qB rB sB tB"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"194":"vD wD"}},B:1,C:"inputmode attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N eC fC","4":"O P HB v","194":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d"},D:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB","66":"mB nB oB EC pB FC qB rB sB tB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB rC sC tC uC 7B ZC vC 8B","66":"ZB aB bB cB dB eB fB gB hB iB"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"194":"cD dD"}},B:1,C:"inputmode attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-minlength.js b/node_modules/caniuse-lite/data/features/input-minlength.js index 1345bd946..d313160b5 100644 --- a/node_modules/caniuse-lite/data/features/input-minlength.js +++ b/node_modules/caniuse-lite/data/features/input-minlength.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB vC wC"},D:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"Minimum length attribute for input fields",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"Minimum length attribute for input fields",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-number.js b/node_modules/caniuse-lite/data/features/input-number.js index 8b95cf66b..05ee7b70a 100644 --- a/node_modules/caniuse-lite/data/features/input-number.js +++ b/node_modules/caniuse-lite/data/features/input-number.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","129":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L","1025":"M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","513":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"388":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC cD dD eD","388":"J I fD qC gD hD"},J:{"2":"D","388":"A"},K:{"1":"A B C JC pC KC","388":"H"},L:{"388":"I"},M:{"641":"IC"},N:{"388":"A B"},O:{"388":"LC"},P:{"388":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"388":"tD"},R:{"388":"uD"},S:{"513":"vD wD"}},B:1,C:"Number input type",D:true}; +module.exports={A:{A:{"2":"K E F G bC","129":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L","1025":"M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","513":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"388":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC JD KD LD","388":"J D MD aC ND OD"},J:{"2":"E","388":"A"},K:{"1":"A B C 7B ZC 8B","388":"I"},L:{"388":"D"},M:{"641":"D"},N:{"388":"A B"},O:{"388":"9B"},P:{"388":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"388":"aD"},R:{"388":"bD"},S:{"513":"cD dD"}},B:1,C:"Number input type",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-pattern.js b/node_modules/caniuse-lite/data/features/input-pattern.js index 9ca0fbc34..7109197c2 100644 --- a/node_modules/caniuse-lite/data/features/input-pattern.js +++ b/node_modules/caniuse-lite/data/features/input-pattern.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB","388":"K D E F A yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","388":"E FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC gD"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Pattern attribute for input fields",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB","388":"K E F G A hC iC jC kC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","388":"F xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC ND"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Pattern attribute for input fields",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-placeholder.js b/node_modules/caniuse-lite/data/features/input-placeholder.js index 4a5f30aa1..6381d1b2e 100644 --- a/node_modules/caniuse-lite/data/features/input-placeholder.js +++ b/node_modules/caniuse-lite/data/features/input-placeholder.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 pC DD KC","2":"F 9C AD BD CD","132":"B JC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC I cD dD eD qC gD hD","4":"J fD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"input placeholder attribute",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u ZC vC 8B","2":"G rC sC tC uC","132":"B 7B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC D JD KD LD aC ND OD","4":"J MD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"input placeholder attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-range.js b/node_modules/caniuse-lite/data/features/input-range.js index f43d4e089..33e8d0a76 100644 --- a/node_modules/caniuse-lite/data/features/input-range.js +++ b/node_modules/caniuse-lite/data/features/input-range.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"I qC gD hD","4":"PC J cD dD eD fD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Range input type",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"D aC ND OD","4":"DC J JD KD LD MD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Range input type",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-search.js b/node_modules/caniuse-lite/data/features/input-search.js index 2639ec4b3..4d9d0d10a 100644 --- a/node_modules/caniuse-lite/data/features/input-search.js +++ b/node_modules/caniuse-lite/data/features/input-search.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","129":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M G N O P"},C:{"2":"sC PC vC wC","129":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"2 3 4 5 6 J UB K D E F A B C L M","129":"1 G N O P VB"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F 9C AD BD CD","16":"B JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"129":"bD"},I:{"1":"I gD hD","16":"cD dD","129":"PC J eD fD qC"},J:{"1":"D","129":"A"},K:{"1":"C H","2":"A","16":"B JC pC","129":"KC"},L:{"1":"I"},M:{"129":"IC"},N:{"129":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"129":"vD wD"}},B:1,C:"Search input type",D:true}; +module.exports={A:{A:{"2":"K E F G bC","129":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M H N O P"},C:{"2":"cC DC eC fC","129":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"0 J GB K E F G A B C L M w x y z","129":"H N O P HB v"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G rC sC tC uC","16":"B 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"129":"ID"},I:{"1":"D ND OD","16":"JD KD","129":"DC J LD MD aC"},J:{"1":"E","129":"A"},K:{"1":"C I","2":"A","16":"B 7B ZC","129":"8B"},L:{"1":"D"},M:{"129":"D"},N:{"129":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"129":"cD dD"}},B:1,C:"Search input type",D:true}; diff --git a/node_modules/caniuse-lite/data/features/input-selection.js b/node_modules/caniuse-lite/data/features/input-selection.js index febb2194c..9d0c1b499 100644 --- a/node_modules/caniuse-lite/data/features/input-selection.js +++ b/node_modules/caniuse-lite/data/features/input-selection.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","16":"F 9C AD BD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Selection controls for input & textarea",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","16":"G rC sC tC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Selection controls for input & textarea",D:true}; diff --git a/node_modules/caniuse-lite/data/features/insert-adjacent.js b/node_modules/caniuse-lite/data/features/insert-adjacent.js index a9a065431..e6e173182 100644 --- a/node_modules/caniuse-lite/data/features/insert-adjacent.js +++ b/node_modules/caniuse-lite/data/features/insert-adjacent.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Element.insertAdjacentElement() & Element.insertAdjacentText()",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Element.insertAdjacentElement() & Element.insertAdjacentText()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/insertadjacenthtml.js b/node_modules/caniuse-lite/data/features/insertadjacenthtml.js index bfe5b590c..4966458c1 100644 --- a/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +++ b/node_modules/caniuse-lite/data/features/insertadjacenthtml.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","16":"rC","132":"K D E F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","16":"F 9C"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Element.insertAdjacentHTML()",D:true}; +module.exports={A:{A:{"1":"A B","16":"bC","132":"K E F G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","16":"G rC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Element.insertAdjacentHTML()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/internationalization.js b/node_modules/caniuse-lite/data/features/internationalization.js index 0a021d318..fc82582b0 100644 --- a/node_modules/caniuse-lite/data/features/internationalization.js +++ b/node_modules/caniuse-lite/data/features/internationalization.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 J UB K D E F A B C L M G N O P VB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"Internationalization API",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"Internationalization API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js b/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js index 7e60f721d..0cbcdb561 100644 --- a/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +++ b/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"IntersectionObserver V2",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"IntersectionObserver V2",D:true}; diff --git a/node_modules/caniuse-lite/data/features/intersectionobserver.js b/node_modules/caniuse-lite/data/features/intersectionobserver.js index b94875bbb..7d20bcc6c 100644 --- a/node_modules/caniuse-lite/data/features/intersectionobserver.js +++ b/node_modules/caniuse-lite/data/features/intersectionobserver.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"N O P","2":"C L M","260":"G","513":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC","194":"tB uB vB"},D:{"1":"zB QC 0B RC 1B 2B 3B","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","260":"sB tB uB vB wB xB yB","513":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB 9C AD BD CD JC pC DD KC","260":"fB gB hB iB jB kB lB","513":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","513":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","513":"H"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","260":"iD jD"},Q:{"513":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"IntersectionObserver",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"N O P","2":"C L M","260":"H","513":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC","194":"iB jB kB"},D:{"1":"oB EC pB FC qB rB sB","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","260":"hB iB jB kB lB mB nB","513":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B"},F:{"1":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB rC sC tC uC 7B ZC vC 8B","260":"UB VB WB XB YB ZB aB","513":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","513":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","513":"I"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","260":"PD QD"},Q:{"513":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"IntersectionObserver",D:true}; diff --git a/node_modules/caniuse-lite/data/features/intl-pluralrules.js b/node_modules/caniuse-lite/data/features/intl-pluralrules.js index 02ee4df68..8fa6a7488 100644 --- a/node_modules/caniuse-lite/data/features/intl-pluralrules.js +++ b/node_modules/caniuse-lite/data/features/intl-pluralrules.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O","130":"P"},C:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB vC wC"},D:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"Intl.PluralRules API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O","130":"P"},C:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B"},F:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"Intl.PluralRules API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/intrinsic-width.js b/node_modules/caniuse-lite/data/features/intrinsic-width.js index d8f69dfee..4fefe8199 100644 --- a/node_modules/caniuse-lite/data/features/intrinsic-width.js +++ b/node_modules/caniuse-lite/data/features/intrinsic-width.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","1025":"0 d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","1537":"Q H R S T U V W X Y Z a b c"},C:{"2":"sC","932":"1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B vC wC","2308":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 J UB K D E F A B C L M G N O P VB","545":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB","1025":"0 d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","1537":"nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","516":"B C L M G JC KC 2C 3C 4C XC YC LC 5C","548":"F A 1C WC","676":"D E zC 0C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","513":"bB","545":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB","1025":"0 e f g h i j k l m n o p q r s t u v w x y z","1537":"aB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","516":"VD WD XD XC YC LC YD","548":"JD KD LD MD ND OD PD QD RD SD TD UD","676":"E HD ID"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","545":"gD hD","1025":"I"},J:{"2":"D","545":"A"},K:{"2":"A B C JC pC KC","1025":"H"},L:{"1025":"I"},M:{"2308":"IC"},N:{"2":"A B"},O:{"1537":"LC"},P:{"545":"J","1025":"1 2 3 4 5 6 7 8 9 NC OC sD","1537":"iD jD kD lD mD WC nD oD pD qD rD MC"},Q:{"1537":"tD"},R:{"1537":"uD"},S:{"932":"vD","2308":"wD"}},B:5,C:"Intrinsic & Extrinsic Sizing",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","1025":"1 2 3 4 5 6 7 8 9 d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1537":"Q I R S T U V W X Y Z a b c"},C:{"2":"cC","932":"0 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB eC fC","2308":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"J GB K E F G A B C L M H N O P HB v w","545":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB","1025":"1 2 3 4 5 6 7 8 9 d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","1537":"cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","516":"B C L M H 7B 8B lC mC nC MC NC 9B oC","548":"G A kC LC","676":"E F iC jC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","513":"QB","545":"0 H N O P HB v w x y z IB JB KB LB MB NB OB","1025":"e f g h i j k l m n o p q r s t u","1537":"PB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","516":"DD ED FD MC NC 9B GD","548":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD","676":"F zC 0C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","545":"ND OD","1025":"D"},J:{"2":"E","545":"A"},K:{"2":"A B C 7B ZC 8B","1025":"I"},L:{"1025":"D"},M:{"2308":"D"},N:{"2":"A B"},O:{"1537":"9B"},P:{"545":"J","1025":"0 v w x y z BC CC ZD","1537":"PD QD RD SD TD LC UD VD WD XD YD AC"},Q:{"1537":"aD"},R:{"1537":"bD"},S:{"932":"cD","2308":"dD"}},B:5,C:"Intrinsic & Extrinsic Sizing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/jpeg2000.js b/node_modules/caniuse-lite/data/features/jpeg2000.js index 4968ab504..3f5b50ca6 100644 --- a/node_modules/caniuse-lite/data/features/jpeg2000.js +++ b/node_modules/caniuse-lite/data/features/jpeg2000.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C","2":"J xC VC OC jC kC lC mC nC oC 8C","129":"UB yC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD","2":"VC ED qC OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"JPEG 2000 image format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC","2":"J gC KC CC qC","129":"GB hC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC","2":"KC wC aC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"JPEG 2000 image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/jpegxl.js b/node_modules/caniuse-lite/data/features/jpegxl.js index e8d9f9ce7..e44ebb3de 100644 --- a/node_modules/caniuse-lite/data/features/jpegxl.js +++ b/node_modules/caniuse-lite/data/features/jpegxl.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","578":"a b c d e f g h i j k l m n o p q r s"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y vC wC","322":"0 Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","194":"a b c d e f g h i j k l m n o p q r s"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C","1025":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC f g h i j k l m n o p q r s t u v w x y z 9C AD BD CD JC pC DD KC","194":"GC HC Q H R SC S T U V W X Y Z a b c d e"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD","1025":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"JPEG XL image format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z t u AB BB CB DB EB FB D","578":"a b c d e f g h i j k l m n o p q r s"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y eC fC","322":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z t u AB BB CB DB EB FB D HC IC JC","194":"a b c d e f g h i j k l m n o p q r s"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC","1025":"BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B rC sC tC uC 7B ZC vC 8B","194":"5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD","1025":"BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"JPEG XL image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/jpegxr.js b/node_modules/caniuse-lite/data/features/jpegxr.js index d585b5c16..59c0f34ee 100644 --- a/node_modules/caniuse-lite/data/features/jpegxr.js +++ b/node_modules/caniuse-lite/data/features/jpegxr.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"JPEG XR image format",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"JPEG XR image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js b/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js index cac66c9cc..73a85e9fe 100644 --- a/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +++ b/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC vC wC"},D:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"Lookbehind in JS regular expressions",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB rC sC tC uC 7B ZC vC 8B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"Lookbehind in JS regular expressions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/json.js b/node_modules/caniuse-lite/data/features/json.js index f819c40a0..7dd0477b1 100644 --- a/node_modules/caniuse-lite/data/features/json.js +++ b/node_modules/caniuse-lite/data/features/json.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D rC","129":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"JSON parsing",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E bC","129":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"JSON parsing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js b/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js index 54900e4ea..5b3b276ea 100644 --- a/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +++ b/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G","132":"N O P"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC"},D:{"1":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","132":"yB zB QC"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C","132":"WC"},F:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC","132":"lB mB nB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD","132":"MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD","132":"kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","132":"vD"}},B:5,C:"CSS justify-content: space-evenly",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H","132":"N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB","132":"nB oB EC"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC","132":"LC"},F:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B","132":"aB bB cB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C","132":"4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD","132":"RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","132":"cD"}},B:5,C:"CSS justify-content: space-evenly",D:true}; diff --git a/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js b/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js index 324a5ac28..51a972922 100644 --- a/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +++ b/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED"},H:{"2":"bD"},I:{"1":"I gD hD","2":"cD dD eD","132":"PC J fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"High-quality kerning pairs & ligatures",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"JD KD LD","132":"DC J MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"High-quality kerning pairs & ligatures",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js b/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js index 4443037c3..1c1ae4edc 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","16":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD","16":"C"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H KC","2":"A B JC pC","16":"C"},L:{"1":"I"},M:{"130":"IC"},N:{"130":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"KeyboardEvent.charCode",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","16":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC","16":"C"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I 8B","2":"A B 7B ZC","16":"C"},L:{"1":"D"},M:{"130":"D"},N:{"130":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"KeyboardEvent.charCode",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-code.js b/node_modules/caniuse-lite/data/features/keyboardevent-code.js index 29ce800b8..bbbdcdc4f 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-code.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-code.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC"},D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","194":"jB kB lB mB nB oB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB 9C AD BD CD JC pC DD KC","194":"WB XB YB ZB aB bB"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"194":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"J","194":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"194":"uD"},S:{"1":"vD wD"}},B:5,C:"KeyboardEvent.code",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB","194":"YB ZB aB bB cB dB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB rC sC tC uC 7B ZC vC 8B","194":"LB MB NB OB PB QB"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"194":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J","194":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"194":"bD"},S:{"1":"cD dD"}},B:5,C:"KeyboardEvent.code",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js b/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js index 66ba01b0d..f65d728e8 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B G N 9C AD BD CD JC pC DD","16":"C"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H KC","2":"A B JC pC","16":"C"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"KeyboardEvent.getModifierState()",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B H N rC sC tC uC 7B ZC vC","16":"C"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I 8B","2":"A B 7B ZC","16":"C"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"KeyboardEvent.getModifierState()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-key.js b/node_modules/caniuse-lite/data/features/keyboardevent-key.js index 0bba5ba20..fa05961cd 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-key.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-key.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","260":"F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N O P"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 sC PC J UB K D E F A B C L M G N O P VB vC wC","132":"4 5 6 7 8 9"},D:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"1 2 3 4 5 6 7 8 9 F B G N O P VB WB XB YB ZB aB bB cB dB eB 9C AD BD CD JC pC DD","16":"C"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"1":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H KC","2":"A B JC pC","16":"C"},L:{"1":"I"},M:{"1":"IC"},N:{"260":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"KeyboardEvent.key",D:true}; +module.exports={A:{A:{"2":"K E F bC","260":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x eC fC","132":"0 y z IB JB KB"},D:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"0 G B H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB rC sC tC uC 7B ZC vC","16":"C"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"1":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I 8B","2":"A B 7B ZC","16":"C"},L:{"1":"D"},M:{"1":"D"},N:{"260":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"KeyboardEvent.key",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-location.js b/node_modules/caniuse-lite/data/features/keyboardevent-location.js index 9250a9437..8b69875ad 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-location.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-location.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"K xC VC","132":"J UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD","16":"C","132":"G N"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","132":"FD GD HD"},H:{"2":"bD"},I:{"1":"I gD hD","16":"cD dD","132":"PC J eD fD qC"},J:{"132":"D A"},K:{"1":"H KC","2":"A B JC pC","16":"C"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"KeyboardEvent.location",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"K gC KC","132":"J GB hC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC","16":"C","132":"H N"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","132":"xC yC zC"},H:{"2":"ID"},I:{"1":"D ND OD","16":"JD KD","132":"DC J LD MD aC"},J:{"132":"E A"},K:{"1":"I 8B","2":"A B 7B ZC","16":"C"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"KeyboardEvent.location",D:true}; diff --git a/node_modules/caniuse-lite/data/features/keyboardevent-which.js b/node_modules/caniuse-lite/data/features/keyboardevent-which.js index dc7bbb15c..8e39576a1 100644 --- a/node_modules/caniuse-lite/data/features/keyboardevent-which.js +++ b/node_modules/caniuse-lite/data/features/keyboardevent-which.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","16":"UB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","16":"F 9C"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC","16":"cD dD","132":"gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"132":"I"},M:{"132":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"2":"J","132":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"132":"uD"},S:{"1":"vD wD"}},B:7,C:"KeyboardEvent.which",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","16":"GB"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","16":"G rC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC","16":"JD KD","132":"ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"132":"D"},M:{"132":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"2":"J","132":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"132":"bD"},S:{"1":"cD dD"}},B:7,C:"KeyboardEvent.which",D:true}; diff --git a/node_modules/caniuse-lite/data/features/lazyload.js b/node_modules/caniuse-lite/data/features/lazyload.js index 384ef6f30..59f61bb14 100644 --- a/node_modules/caniuse-lite/data/features/lazyload.js +++ b/node_modules/caniuse-lite/data/features/lazyload.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"B","2":"A"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Resource Hints: Lazyload",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"1":"B","2":"A"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Resource Hints: Lazyload",D:true}; diff --git a/node_modules/caniuse-lite/data/features/let.js b/node_modules/caniuse-lite/data/features/let.js index f636821fa..e14f6a6a5 100644 --- a/node_modules/caniuse-lite/data/features/let.js +++ b/node_modules/caniuse-lite/data/features/let.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","2052":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","194":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P","322":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB","516":"iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","1028":"A WC"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","322":"1 2 3 4 5 6 7 8 G N O P VB","516":"9 WB XB YB ZB aB bB cB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD","1028":"LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","516":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"let",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","2052":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","194":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P","322":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","516":"XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","1028":"A LC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","322":"0 H N O P HB v w x y z IB JB","516":"KB LB MB NB OB PB QB RB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C","1028":"3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","516":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"let",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-icon-png.js b/node_modules/caniuse-lite/data/features/link-icon-png.js index b4d225ba1..714acfe63 100644 --- a/node_modules/caniuse-lite/data/features/link-icon-png.js +++ b/node_modules/caniuse-lite/data/features/link-icon-png.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","130":"E VC ED qC FD GD HD ID JD KD LD MD ND OD"},H:{"130":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D","130":"A"},K:{"1":"H","130":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"130":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"PNG favicons",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","130":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C"},H:{"130":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E","130":"A"},K:{"1":"I","130":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"130":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"PNG favicons",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-icon-svg.js b/node_modules/caniuse-lite/data/features/link-icon-svg.js index 34f1497a3..42f5c7c09 100644 --- a/node_modules/caniuse-lite/data/features/link-icon-svg.js +++ b/node_modules/caniuse-lite/data/features/link-icon-svg.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q","1537":"0 H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"sC PC vC wC","260":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB","513":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","1537":"0 H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC"},F:{"1":"lB mB nB oB pB qB rB sB tB uB","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 9C AD BD CD JC pC DD KC","1537":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"oC","2":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC","130":"E VC ED qC FD GD HD ID JD KD LD MD ND OD"},H:{"130":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D","130":"A"},K:{"130":"A B C JC pC KC","1537":"H"},L:{"1537":"I"},M:{"2":"IC"},N:{"130":"A B"},O:{"2":"LC"},P:{"2":"J iD jD kD lD mD WC nD oD","1537":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"1537":"uD"},S:{"513":"vD wD"}},B:1,C:"SVG favicons",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q","1537":"1 2 3 4 5 6 7 8 9 I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC eC fC","260":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","513":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","1537":"1 2 3 4 5 6 7 8 9 I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB kB lB mB nB oB pB qB rB sB tB uB rC sC tC uC 7B ZC vC 8B","1537":"vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","130":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C"},H:{"130":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E","130":"A"},K:{"130":"A B C 7B ZC 8B","1537":"I"},L:{"1537":"D"},M:{"2":"D"},N:{"130":"A B"},O:{"2":"9B"},P:{"2":"J PD QD RD SD TD LC UD VD","1537":"0 v w x y z WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"1537":"bD"},S:{"513":"cD dD"}},B:1,C:"SVG favicons",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js b/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js index 3bd93b3d0..acf5f06c5 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +++ b/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E rC","132":"F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","260":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"16":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"16":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","16":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Resource Hints: dns-prefetch",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F bC","132":"G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"D HC IC JC dC","2":"cC DC","260":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"16":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"16":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","16":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Resource Hints: dns-prefetch",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js b/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js index c21be4a1f..fd1106a46 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +++ b/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x vC wC"},D:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"1":"0 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 9C AD BD CD JC pC DD KC"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:1,C:"Resource Hints: modulepreload",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC"},F:{"1":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB rC sC tC uC 7B ZC vC 8B"},G:{"1":"BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:1,C:"Resource Hints: modulepreload",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-preconnect.js b/node_modules/caniuse-lite/data/features/link-rel-preconnect.js index 5e12686ad..c81909f4b 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +++ b/node_modules/caniuse-lite/data/features/link-rel-preconnect.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","260":"G N O P"},C:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB vC wC","129":"gB","514":"AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x"},D:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Resource Hints: preconnect",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","260":"H N O P"},C:{"1":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB eC fC","129":"VB","514":"1 2 3 zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},D:{"1":"1 2 3 4 5 6 7 8 9 cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Resource Hints: preconnect",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-prefetch.js b/node_modules/caniuse-lite/data/features/link-rel-prefetch.js index e16c89332..d2b7de5f0 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +++ b/node_modules/caniuse-lite/data/features/link-rel-prefetch.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC","194":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD","194":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"J I gD hD","2":"PC cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Resource Hints: prefetch",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B","194":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD","194":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"J D ND OD","2":"DC JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Resource Hints: prefetch",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-preload.js b/node_modules/caniuse-lite/data/features/link-rel-preload.js index caeb8869a..525887208 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-preload.js +++ b/node_modules/caniuse-lite/data/features/link-rel-preload.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N","1028":"O P"},C:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB vC wC","132":"xB","578":"yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T"},D:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","322":"B"},F:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","322":"ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"Resource Hints: preload",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N","1028":"O P"},C:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB eC fC","132":"mB","578":"nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T"},D:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","322":"B"},F:{"1":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","322":"5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"Resource Hints: preload",D:true}; diff --git a/node_modules/caniuse-lite/data/features/link-rel-prerender.js b/node_modules/caniuse-lite/data/features/link-rel-prerender.js index 47c97e5a5..e931742f0 100644 --- a/node_modules/caniuse-lite/data/features/link-rel-prerender.js +++ b/node_modules/caniuse-lite/data/features/link-rel-prerender.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"Resource Hints: prerender",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"Resource Hints: prerender",D:true}; diff --git a/node_modules/caniuse-lite/data/features/loading-lazy-attr.js b/node_modules/caniuse-lite/data/features/loading-lazy-attr.js index 4227943ac..7bf256dfc 100644 --- a/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +++ b/node_modules/caniuse-lite/data/features/loading-lazy-attr.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC vC wC","132":"0 EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB"},D:{"1":"0 GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC","66":"EC FC"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC","322":"M G 2C 3C 4C XC","580":"YC LC 5C MC ZC aC bC"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC","66":"1B 2B"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD","322":"UD VD WD XD XC","580":"YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD","132":"wD"}},B:1,C:"Lazy loading via attribute for images & iframes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B eC fC","132":"1 2 3 4 5 6 7 8 9 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},D:{"1":"1 2 3 4 5 6 7 8 9 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","66":"3B 4B"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B","322":"M H lC mC nC MC","580":"NC 9B oC AC OC PC QC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B","66":"qB rB"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD","322":"CD DD ED FD MC","580":"NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"132":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD","132":"dD"}},B:1,C:"Lazy loading via attribute for images & iframes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/localecompare.js b/node_modules/caniuse-lite/data/features/localecompare.js index ea97dbc0e..8ba881a90 100644 --- a/node_modules/caniuse-lite/data/features/localecompare.js +++ b/node_modules/caniuse-lite/data/features/localecompare.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","16":"rC","132":"K D E F A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 J UB K D E F A B C L M G N O P VB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F B C 9C AD BD CD JC pC DD","132":"KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"E VC ED qC FD GD HD ID JD KD"},H:{"132":"bD"},I:{"1":"I gD hD","132":"PC J cD dD eD fD qC"},J:{"132":"D A"},K:{"1":"H","16":"A B C JC pC","132":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","132":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","132":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","4":"vD"}},B:6,C:"localeCompare()",D:true}; +module.exports={A:{A:{"1":"B","16":"bC","132":"K E F G A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB K E F G A B C L M H N O P HB v w x y"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G B C rC sC tC uC 7B ZC vC","132":"8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"132":"ID"},I:{"1":"D ND OD","132":"DC J JD KD LD MD aC"},J:{"132":"E A"},K:{"1":"I","16":"A B C 7B ZC","132":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","132":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","4":"cD"}},B:6,C:"localeCompare()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/magnetometer.js b/node_modules/caniuse-lite/data/features/magnetometer.js index 73e641875..b6354c73c 100644 --- a/node_modules/caniuse-lite/data/features/magnetometer.js +++ b/node_modules/caniuse-lite/data/features/magnetometer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","194":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC","194":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"194":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"Magnetometer",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB EC pB FC qB rB sB tB uB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"194":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"Magnetometer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/matchesselector.js b/node_modules/caniuse-lite/data/features/matchesselector.js index 0c56c21d0..c0edcfd06 100644 --- a/node_modules/caniuse-lite/data/features/matchesselector.js +++ b/node_modules/caniuse-lite/data/features/matchesselector.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","36":"F A B"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","36":"C L M"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC","36":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB wC"},D:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","36":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","36":"UB K D yC zC"},F:{"1":"0 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B 9C AD BD CD JC","36":"1 C G N O P VB pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC","36":"ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I","2":"cD","36":"PC J dD eD fD qC gD hD"},J:{"36":"D A"},K:{"1":"H","2":"A B","36":"C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"36":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","36":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"matches() DOM method",D:true}; +module.exports={A:{A:{"2":"K E F bC","36":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","36":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC","36":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB fC"},D:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","36":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","36":"GB K E hC iC"},F:{"1":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B rC sC tC uC 7B","36":"C H N O P HB v ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC","36":"wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D","2":"JD","36":"DC J KD LD MD aC ND OD"},J:{"36":"E A"},K:{"1":"I","2":"A B","36":"C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"36":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","36":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"matches() DOM method",D:true}; diff --git a/node_modules/caniuse-lite/data/features/matchmedia.js b/node_modules/caniuse-lite/data/features/matchmedia.js index 75ce68c23..7e53a1b76 100644 --- a/node_modules/caniuse-lite/data/features/matchmedia.js +++ b/node_modules/caniuse-lite/data/features/matchmedia.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"matchMedia",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"matchMedia",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mathml.js b/node_modules/caniuse-lite/data/features/mathml.js index 3e8e05e1d..d83359c2c 100644 --- a/node_modules/caniuse-lite/data/features/mathml.js +++ b/node_modules/caniuse-lite/data/features/mathml.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"F A B rC","8":"K D E"},B:{"2":"C L M G N O P","8":"Q H R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"0 s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","129":"sC PC vC wC"},D:{"1":"5","8":"1 2 3 4 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"0 s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","260":"J UB K D E F xC VC yC zC 0C 1C"},F:{"2":"F","8":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC","584":"S T U V W X Y Z a b c d","1025":"0 e f g h i j k l m n o p q r s t u v w x y z","2052":"B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC"},H:{"8":"bD"},I:{"8":"PC J cD dD eD fD qC gD hD","1025":"I"},J:{"1":"A","8":"D"},K:{"8":"A B C JC pC KC","1025":"H"},L:{"1025":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"8":"LC"},P:{"1":"2 3 4 5 6 7 8 9","8":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"8":"tD"},R:{"8":"uD"},S:{"1":"vD wD"}},B:2,C:"MathML",D:true}; +module.exports={A:{A:{"2":"G A B bC","8":"K E F"},B:{"2":"C L M H N O P","8":"Q I R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"1 2 3 4 5 6 7 8 9 s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","129":"cC DC eC fC"},D:{"1":"z","8":"0 J GB K E F G A B C L M H N O P HB v w x y IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"1 2 3 4 5 6 7 8 9 s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","260":"J GB K E F G gC KC hC iC jC kC"},F:{"2":"G","8":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC","584":"S T U V W X Y Z a b c d","1025":"e f g h i j k l m n o p q r s t u","2052":"B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC"},H:{"8":"ID"},I:{"8":"DC J JD KD LD MD aC ND OD","1025":"D"},J:{"1":"A","8":"E"},K:{"8":"A B C 7B ZC 8B","1025":"I"},L:{"1025":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"8":"9B"},P:{"1":"0 w x y z","8":"J v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"8":"aD"},R:{"8":"bD"},S:{"1":"cD dD"}},B:2,C:"MathML",D:true}; diff --git a/node_modules/caniuse-lite/data/features/maxlength.js b/node_modules/caniuse-lite/data/features/maxlength.js index 667dc91e9..645497b67 100644 --- a/node_modules/caniuse-lite/data/features/maxlength.js +++ b/node_modules/caniuse-lite/data/features/maxlength.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","16":"rC","900":"K D E F"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","1025":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","900":"sC PC vC wC","1025":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"UB xC","900":"J VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F","132":"B C 9C AD BD CD JC pC DD KC"},G:{"1":"ED qC FD GD HD JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC","2052":"E ID"},H:{"132":"bD"},I:{"1":"PC J eD fD qC gD hD","16":"cD dD","4097":"I"},J:{"1":"D A"},K:{"132":"A B C JC pC KC","4097":"H"},L:{"4097":"I"},M:{"4097":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"4097":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1025":"vD wD"}},B:1,C:"maxlength attribute for input and textarea elements",D:true}; +module.exports={A:{A:{"1":"A B","16":"bC","900":"K E F G"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1025":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","900":"cC DC eC fC","1025":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"GB gC","900":"J KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G","132":"B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"wC aC xC yC zC 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC","2052":"F 0C"},H:{"132":"ID"},I:{"1":"DC J LD MD aC ND OD","16":"JD KD","4097":"D"},J:{"1":"E A"},K:{"132":"A B C 7B ZC 8B","4097":"I"},L:{"4097":"D"},M:{"4097":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"4097":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1025":"cD dD"}},B:1,C:"maxlength attribute for input and textarea elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js b/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js index 1205c4494..567bcf766 100644 --- a/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +++ b/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB","33":"ZB aB bB cB dB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC"},M:{"1":"IC"},A:{"2":"K D E F A rC","33":"B"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N O P 9C AD BD CD JC pC DD KC","33":"1 2 3 4 VB"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC 8C"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"}},B:6,C:"CSS ::backdrop pseudo-element",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB","33":"OB PB QB RB SB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC"},M:{"1":"D"},A:{"2":"K E F G A bC","33":"B"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P rC sC tC uC 7B ZC vC 8B","33":"HB v w x y"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC qC"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"}},B:6,C:"CSS ::backdrop pseudo-element",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js index c80368b01..ee3fc91d8 100644 --- a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +++ b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N vC wC","33":"1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB K xC VC yC zC 8C","33":"D E F A 0C 1C WC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","33":"E HD ID JD KD LD MD"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"isolate-override from unicode-bidi",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N eC fC","33":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB K gC KC hC iC qC","33":"E F G A jC kC LC"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","33":"F zC 0C 1C 2C 3C 4C"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"isolate-override from unicode-bidi",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js index 248dd7bd7..c4de097d4 100644 --- a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +++ b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","33":"1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC","33":"1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB xC VC yC 8C","33":"K D E F A zC 0C 1C WC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E GD HD ID JD KD LD MD"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"isolate from unicode-bidi",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","33":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC","33":"0 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB gC KC hC qC","33":"K E F G A iC jC kC LC"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F yC zC 0C 1C 2C 3C 4C"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"isolate from unicode-bidi",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js index 9b81cf376..326faaea2 100644 --- a/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +++ b/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC","33":"1 2 3 4 5 6 7 8 9 A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB xC VC yC 8C","33":"K D E F A zC 0C 1C WC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"E GD HD ID JD KD LD MD"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"plaintext from unicode-bidi",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC","33":"0 A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB gC KC hC qC","33":"K E F G A iC jC kC LC"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"F yC zC 0C 1C 2C 3C 4C"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"plaintext from unicode-bidi",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js b/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js index 73fc37c82..1c3e9146d 100644 --- a/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +++ b/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","33":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB K D xC VC yC zC 0C 8C","33":"E F A B C 1C WC JC"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","33":"E ID JD KD LD MD ND OD PD"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"text-decoration-color property",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","33":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB K E gC KC hC iC jC qC","33":"F G A B C kC LC 7B"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C 4C 5C 6C 7C"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"text-decoration-color property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js b/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js index e27346fce..b311d4685 100644 --- a/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +++ b/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","33":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB K D xC VC yC zC 0C 8C","33":"E F A B C 1C WC JC"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","33":"E ID JD KD LD MD ND OD PD"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"text-decoration-line property",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","33":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB K E gC KC hC iC jC qC","33":"F G A B C kC LC 7B"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C 4C 5C 6C 7C"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"text-decoration-line property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js b/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js index f31ff77e7..e537aee80 100644 --- a/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +++ b/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"2":"J UB K D xC VC yC zC 0C 8C","33":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC"},G:{"2":"VC ED qC FD GD HD","33":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"text-decoration shorthand property",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"2":"J GB K E gC KC hC iC jC qC","33":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC"},G:{"2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"text-decoration shorthand property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js b/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js index f2221d8ab..9489040b4 100644 --- a/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +++ b/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js @@ -1 +1 @@ -module.exports={A:{D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},L:{"1":"I"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","33":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},M:{"1":"IC"},A:{"2":"K D E F A B rC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},K:{"1":"H","2":"A B C JC pC KC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC","2":"J UB K D xC VC yC zC 0C 8C","33":"E F A B C 1C WC JC"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","33":"E ID JD KD LD MD ND OD PD"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"}},B:6,C:"text-decoration-style property",D:undefined}; +module.exports={A:{D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},L:{"1":"D"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","33":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},M:{"1":"D"},A:{"2":"K E F G A B bC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},K:{"1":"I","2":"A B C 7B ZC 8B"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","2":"J GB K E gC KC hC iC jC qC","33":"F G A B C kC LC 7B"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","33":"F 0C 1C 2C 3C 4C 5C 6C 7C"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"}},B:6,C:"text-decoration-style property",D:undefined}; diff --git a/node_modules/caniuse-lite/data/features/media-fragments.js b/node_modules/caniuse-lite/data/features/media-fragments.js index 22ee231f1..bb31da0e9 100644 --- a/node_modules/caniuse-lite/data/features/media-fragments.js +++ b/node_modules/caniuse-lite/data/features/media-fragments.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB vC wC","132":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"J UB K D E F A B C L M G N O","132":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB xC VC yC","132":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","132":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"VC ED qC FD GD HD","132":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","132":"I gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"132":"I"},M:{"132":"IC"},N:{"132":"A B"},O:{"132":"LC"},P:{"2":"J iD","132":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"132":"tD"},R:{"132":"uD"},S:{"132":"vD wD"}},B:2,C:"Media Fragments",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB eC fC","132":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"J GB K E F G A B C L M H N O","132":"0 1 2 3 4 5 6 7 8 9 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB gC KC hC","132":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"KC wC aC xC yC zC","132":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","132":"D ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"132":"D"},N:{"132":"A B"},O:{"132":"9B"},P:{"2":"J PD","132":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"132":"aD"},R:{"132":"bD"},S:{"132":"cD dD"}},B:2,C:"Media Fragments",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js b/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js index 140b7ed21..15c86ce79 100644 --- a/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +++ b/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB vC wC","260":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","324":"sB tB uB vB wB xB yB zB QC 0B RC"},E:{"2":"J UB K D E F A xC VC yC zC 0C 1C WC","132":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC","324":"dB eB fB gB hB iB jB kB lB mB nB oB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"260":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","132":"iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"260":"vD wD"}},B:5,C:"Media Capture from DOM Elements API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB eC fC","260":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","324":"hB iB jB kB lB mB nB oB EC pB FC"},E:{"2":"J GB K E F G A gC KC hC iC jC kC LC","132":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B","324":"SB TB UB VB WB XB YB ZB aB bB cB dB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"260":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","132":"PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"260":"cD dD"}},B:5,C:"Media Capture from DOM Elements API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mediarecorder.js b/node_modules/caniuse-lite/data/features/mediarecorder.js index f65739872..66f5424b1 100644 --- a/node_modules/caniuse-lite/data/features/mediarecorder.js +++ b/node_modules/caniuse-lite/data/features/mediarecorder.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB pB"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","322":"L M KC 2C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB 9C AD BD CD JC pC DD KC","194":"bB cB"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD","578":"PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"MediaRecorder API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB","194":"dB eB"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","322":"L M 8B lC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB rC sC tC uC 7B ZC vC 8B","194":"QB RB"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C","578":"7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"MediaRecorder API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mediasource.js b/node_modules/caniuse-lite/data/features/mediasource.js index 040234529..f4875f712 100644 --- a/node_modules/caniuse-lite/data/features/mediasource.js +++ b/node_modules/caniuse-lite/data/features/mediasource.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC","66":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB"},D:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N","33":"4 5 6 7 8 9 WB XB","66":"1 2 3 O P VB"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD","260":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC gD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Media Source Extensions",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC","66":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB"},D:{"1":"1 2 3 4 5 6 7 8 9 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N","33":"0 y z IB JB KB LB MB","66":"O P HB v w x"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC jC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C","260":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC ND"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Media Source Extensions",D:true}; diff --git a/node_modules/caniuse-lite/data/features/menu.js b/node_modules/caniuse-lite/data/features/menu.js index e7cd5f116..ca29babf7 100644 --- a/node_modules/caniuse-lite/data/features/menu.js +++ b/node_modules/caniuse-lite/data/features/menu.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"sC PC J UB K D vC wC","132":"1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T","450":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","66":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","66":"cB dB eB fB gB hB iB jB kB lB mB nB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"450":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Context menu item (menuitem element)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E eC fC","132":"0 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T","450":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","66":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","66":"RB SB TB UB VB WB XB YB ZB aB bB cB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"450":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Context menu item (menuitem element)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/meta-theme-color.js b/node_modules/caniuse-lite/data/features/meta-theme-color.js index 6c831d8af..70a7e40da 100644 --- a/node_modules/caniuse-lite/data/features/meta-theme-color.js +++ b/node_modules/caniuse-lite/data/features/meta-theme-color.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB","132":"0 CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","258":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"513":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","16":"iD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:1,C:"theme-color Meta Tag",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB","132":"1 2 3 4 5 6 7 8 9 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","258":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"513":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","16":"PD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:1,C:"theme-color Meta Tag",D:true}; diff --git a/node_modules/caniuse-lite/data/features/meter.js b/node_modules/caniuse-lite/data/features/meter.js index d3fe78bae..7c23da27f 100644 --- a/node_modules/caniuse-lite/data/features/meter.js +++ b/node_modules/caniuse-lite/data/features/meter.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F 9C AD BD CD"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"meter element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G rC sC tC uC"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"meter element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/midi.js b/node_modules/caniuse-lite/data/features/midi.js index 488cb70ef..4f7a33dc3 100644 --- a/node_modules/caniuse-lite/data/features/midi.js +++ b/node_modules/caniuse-lite/data/features/midi.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q vC wC"},D:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"Web MIDI API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"Web MIDI API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/minmaxwh.js b/node_modules/caniuse-lite/data/features/minmaxwh.js index 7f09a8eed..25824667a 100644 --- a/node_modules/caniuse-lite/data/features/minmaxwh.js +++ b/node_modules/caniuse-lite/data/features/minmaxwh.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","8":"K rC","129":"D","257":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS min/max-width/height",D:true}; +module.exports={A:{A:{"1":"G A B","8":"K bC","129":"E","257":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS min/max-width/height",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mp3.js b/node_modules/caniuse-lite/data/features/mp3.js index 35bd4257c..7bb877920 100644 --- a/node_modules/caniuse-lite/data/features/mp3.js +++ b/node_modules/caniuse-lite/data/features/mp3.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","132":"1 2 J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","2":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"MP3 audio format",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","132":"J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","2":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"MP3 audio format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mpeg-dash.js b/node_modules/caniuse-lite/data/features/mpeg-dash.js index 5c8f5f1db..932c9f1b4 100644 --- a/node_modules/caniuse-lite/data/features/mpeg-dash.js +++ b/node_modules/caniuse-lite/data/features/mpeg-dash.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","386":"2 3"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"Dynamic Adaptive Streaming over HTTP (MPEG-DASH)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","386":"w x"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"Dynamic Adaptive Streaming over HTTP (MPEG-DASH)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mpeg4.js b/node_modules/caniuse-lite/data/features/mpeg4.js index 4195ae073..d73c68e7b 100644 --- a/node_modules/caniuse-lite/data/features/mpeg4.js +++ b/node_modules/caniuse-lite/data/features/mpeg4.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 sC PC J UB K D E F A B C L M G N O P VB vC wC","4":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","4":"PC J cD dD fD qC","132":"eD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"MPEG-4/H.264 video format",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v eC fC","4":"0 w x y z IB JB KB LB MB NB OB PB QB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","4":"DC J JD KD MD aC","132":"LD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"MPEG-4/H.264 video format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/multibackgrounds.js b/node_modules/caniuse-lite/data/features/multibackgrounds.js index b42a7cf09..773c70fa7 100644 --- a/node_modules/caniuse-lite/data/features/multibackgrounds.js +++ b/node_modules/caniuse-lite/data/features/multibackgrounds.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 Multiple backgrounds",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 Multiple backgrounds",D:true}; diff --git a/node_modules/caniuse-lite/data/features/multicolumn.js b/node_modules/caniuse-lite/data/features/multicolumn.js index bb463f67b..17d9eed0d 100644 --- a/node_modules/caniuse-lite/data/features/multicolumn.js +++ b/node_modules/caniuse-lite/data/features/multicolumn.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"C L M G N O P","516":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"132":"tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B","164":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC","516":"4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a","1028":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"420":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","516":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"F 1C","164":"D E 0C","420":"J UB K xC VC yC zC"},F:{"1":"C JC pC DD KC","2":"F B 9C AD BD CD","420":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB","516":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"JD KD","164":"E HD ID","420":"VC ED qC FD GD"},H:{"1":"bD"},I:{"420":"PC J cD dD eD fD qC gD hD","516":"I"},J:{"420":"D A"},K:{"1":"C JC pC KC","2":"A B","516":"H"},L:{"516":"I"},M:{"1028":"IC"},N:{"1":"A B"},O:{"516":"LC"},P:{"420":"J","516":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"516":"tD"},R:{"516":"uD"},S:{"164":"vD wD"}},B:4,C:"CSS3 Multiple column layout",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"C L M H N O P","516":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"132":"iB jB kB lB mB nB oB EC pB FC qB rB sB","164":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC","516":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a","1028":"1 2 3 4 5 6 7 8 9 b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"420":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","516":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"G kC","164":"E F jC","420":"J GB K gC KC hC iC"},F:{"1":"C 7B ZC vC 8B","2":"G B rC sC tC uC","420":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB","516":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"1C 2C","164":"F zC 0C","420":"KC wC aC xC yC"},H:{"1":"ID"},I:{"420":"DC J JD KD LD MD aC ND OD","516":"D"},J:{"420":"E A"},K:{"1":"C 7B ZC 8B","2":"A B","516":"I"},L:{"516":"D"},M:{"1028":"D"},N:{"1":"A B"},O:{"516":"9B"},P:{"420":"J","516":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"516":"aD"},R:{"516":"bD"},S:{"164":"cD dD"}},B:4,C:"CSS3 Multiple column layout",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mutation-events.js b/node_modules/caniuse-lite/data/features/mutation-events.js index 89d66dbd9..30e469eb1 100644 --- a/node_modules/caniuse-lite/data/features/mutation-events.js +++ b/node_modules/caniuse-lite/data/features/mutation-events.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","260":"F A B"},B:{"2":"TB I","66":"JB KB LB MB NB OB PB QB RB SB","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB","260":"C L M G N O P"},C:{"2":"sC PC J UB IC UC tC uC vC wC","260":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC"},D:{"2":"RB SB TB I TC IC UC","16":"J UB K D E F A B C L M","66":"JB KB LB MB NB OB PB QB","132":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB"},E:{"2":"oC 8C","16":"xC VC","132":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC"},F:{"1":"C DD KC","2":"F 9C AD BD CD","16":"B JC pC","66":"0 w x y z","132":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v"},G:{"2":"oC","16":"VC ED","132":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC"},H:{"2":"bD"},I:{"2":"I","16":"cD dD","132":"PC J eD fD qC gD hD"},J:{"132":"D A"},K:{"1":"C KC","2":"A","16":"B JC pC","132":"H"},L:{"2":"I"},M:{"2":"IC"},N:{"260":"A B"},O:{"132":"LC"},P:{"132":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"132":"tD"},R:{"132":"uD"},S:{"260":"vD wD"}},B:7,C:"Mutation events",D:true}; +module.exports={A:{A:{"2":"K E F bC","260":"G A B"},B:{"132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O P"},C:{"2":"cC DC J GB eC fC","260":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"16":"J GB K E F G A B C L M","132":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"16":"gC KC","132":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"C vC 8B","2":"G rC sC tC uC","16":"B 7B ZC","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"16":"KC wC","132":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"16":"JD KD","132":"DC J D LD MD aC ND OD"},J:{"132":"E A"},K:{"1":"C 8B","2":"A","16":"B 7B ZC","132":"I"},L:{"132":"D"},M:{"260":"D"},N:{"260":"A B"},O:{"132":"9B"},P:{"132":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"132":"aD"},R:{"132":"bD"},S:{"260":"cD dD"}},B:5,C:"Mutation events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/mutationobserver.js b/node_modules/caniuse-lite/data/features/mutationobserver.js index 3c233900b..24509e7b7 100644 --- a/node_modules/caniuse-lite/data/features/mutationobserver.js +++ b/node_modules/caniuse-lite/data/features/mutationobserver.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E rC","8":"F A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L vC wC"},D:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O","33":"1 2 3 4 5 6 7 P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC cD dD eD","8":"J fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","8":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Mutation Observer",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F bC","8":"G A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O","33":"0 P HB v w x y z IB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC JD KD LD","8":"J MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","8":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Mutation Observer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/namevalue-storage.js b/node_modules/caniuse-lite/data/features/namevalue-storage.js index 782a048ec..cd5905065 100644 --- a/node_modules/caniuse-lite/data/features/namevalue-storage.js +++ b/node_modules/caniuse-lite/data/features/namevalue-storage.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"rC","8":"K D"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","4":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Web Storage - name/value pairs",D:true}; +module.exports={A:{A:{"1":"F G A B","2":"bC","8":"K E"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","4":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Web Storage - name/value pairs",D:true}; diff --git a/node_modules/caniuse-lite/data/features/native-filesystem-api.js b/node_modules/caniuse-lite/data/features/native-filesystem-api.js index 7d09036f6..40f62ad23 100644 --- a/node_modules/caniuse-lite/data/features/native-filesystem-api.js +++ b/node_modules/caniuse-lite/data/features/native-filesystem-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","194":"Q H R S T U","260":"V W X Y Z a b c d e f g h i j k l m n"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC","194":"DC EC FC GC HC Q H R S T U","260":"V W X Y Z a b c d e f g h i j k l m n"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC","194":"1B 2B 3B 4B 5B 6B 7B 8B 9B AC","260":"BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"File System Access API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","194":"Q I R S T U","260":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t eC fC","516":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B","194":"2B 3B 4B 5B 6B Q I R S T U","260":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC","516":"MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B","194":"qB rB sB tB uB vB wB xB yB zB","260":"0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD","516":"MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","516":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","260":"I"},L:{"516":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"File System Access API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/nav-timing.js b/node_modules/caniuse-lite/data/features/nav-timing.js index f42fc63ed..0af669759 100644 --- a/node_modules/caniuse-lite/data/features/nav-timing.js +++ b/node_modules/caniuse-lite/data/features/nav-timing.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB","33":"K D E F A B C"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"J I fD qC gD hD","2":"PC cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Navigation Timing API",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB","33":"K E F G A B C"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC jC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"J D MD aC ND OD","2":"DC JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Navigation Timing API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/netinfo.js b/node_modules/caniuse-lite/data/features/netinfo.js index ebe08de9a..38217aaef 100644 --- a/node_modules/caniuse-lite/data/features/netinfo.js +++ b/node_modules/caniuse-lite/data/features/netinfo.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","1028":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B","1028":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 9C AD BD CD JC pC DD KC","1028":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"cD gD hD","132":"PC J dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","132":"J","516":"iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"wD","260":"vD"}},B:7,C:"Network Information API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","1028":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB","1028":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB rC sC tC uC 7B ZC vC 8B","1028":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"JD ND OD","132":"DC J KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J","516":"PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"dD","260":"cD"}},B:7,C:"Network Information API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/notifications.js b/node_modules/caniuse-lite/data/features/notifications.js index 6d560dfd6..e1d5ac294 100644 --- a/node_modules/caniuse-lite/data/features/notifications.js +++ b/node_modules/caniuse-lite/data/features/notifications.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J","36":"1 2 UB K D E F A B C L M G N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","516":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","36":"I gD hD"},J:{"1":"A","2":"D"},K:{"2":"A B C JC pC KC","36":"H"},L:{"257":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"36":"J","130":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"130":"uD"},S:{"1":"vD wD"}},B:1,C:"Web Notifications",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J","36":"GB K E F G A B C L M H N O P HB v w"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","516":"RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","36":"D ND OD"},J:{"1":"A","2":"E"},K:{"2":"A B C 7B ZC 8B","36":"I"},L:{"257":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"36":"J","130":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"130":"bD"},S:{"1":"cD dD"}},B:1,C:"Web Notifications",D:true}; diff --git a/node_modules/caniuse-lite/data/features/object-entries.js b/node_modules/caniuse-lite/data/features/object-entries.js index e04ae3d6f..63fe97455 100644 --- a/node_modules/caniuse-lite/data/features/object-entries.js +++ b/node_modules/caniuse-lite/data/features/object-entries.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Object.entries",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","16":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Object.entries",D:true}; diff --git a/node_modules/caniuse-lite/data/features/object-fit.js b/node_modules/caniuse-lite/data/features/object-fit.js index 67d76103a..f882b9be4 100644 --- a/node_modules/caniuse-lite/data/features/object-fit.js +++ b/node_modules/caniuse-lite/data/features/object-fit.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G","260":"N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC"},D:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC","132":"E F 0C 1C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F G N O P 9C AD BD","33":"B C CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","132":"E ID JD KD"},H:{"33":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC gD"},J:{"2":"D A"},K:{"1":"H","2":"A","33":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 object-fit/object-position",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H","260":"N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC","132":"F G jC kC"},F:{"1":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G H N O P rC sC tC","33":"B C uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","132":"F 0C 1C 2C"},H:{"33":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC ND"},J:{"2":"E A"},K:{"1":"I","2":"A","33":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 object-fit/object-position",D:true}; diff --git a/node_modules/caniuse-lite/data/features/object-observe.js b/node_modules/caniuse-lite/data/features/object-observe.js index c1836251d..47e0773c1 100644 --- a/node_modules/caniuse-lite/data/features/object-observe.js +++ b/node_modules/caniuse-lite/data/features/object-observe.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB","2":"0 1 2 3 F B C G N O P VB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"J","2":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Object.observe data binding",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB","2":"G B C H N O P HB v w x TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"J","2":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Object.observe data binding",D:true}; diff --git a/node_modules/caniuse-lite/data/features/object-values.js b/node_modules/caniuse-lite/data/features/object-values.js index ec0241df9..b502709f9 100644 --- a/node_modules/caniuse-lite/data/features/object-values.js +++ b/node_modules/caniuse-lite/data/features/object-values.js @@ -1 +1 @@ -module.exports={A:{A:{"8":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","8":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"E VC ED qC FD GD HD ID JD KD LD"},H:{"8":"bD"},I:{"1":"I","8":"PC J cD dD eD fD qC gD hD"},J:{"8":"D A"},K:{"1":"H","8":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","8":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Object.values method",D:true}; +module.exports={A:{A:{"8":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","8":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"8":"ID"},I:{"1":"D","8":"DC J JD KD LD MD aC ND OD"},J:{"8":"E A"},K:{"1":"I","8":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","8":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Object.values method",D:true}; diff --git a/node_modules/caniuse-lite/data/features/objectrtc.js b/node_modules/caniuse-lite/data/features/objectrtc.js index dfadd584c..f3fd6a0f8 100644 --- a/node_modules/caniuse-lite/data/features/objectrtc.js +++ b/node_modules/caniuse-lite/data/features/objectrtc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"L M G N O P","2":"0 C Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"Object RTC (ORTC) API for WebRTC",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"L M H N O P","2":"1 2 3 4 5 6 7 8 9 C Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"Object RTC (ORTC) API for WebRTC",D:true}; diff --git a/node_modules/caniuse-lite/data/features/offline-apps.js b/node_modules/caniuse-lite/data/features/offline-apps.js index 41ac720c6..91fcd6b58 100644 --- a/node_modules/caniuse-lite/data/features/offline-apps.js +++ b/node_modules/caniuse-lite/data/features/offline-apps.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"F rC","8":"K D E"},B:{"1":"C L M G N O P Q H R S T","2":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S vC wC","2":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","4":"PC","8":"sC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T","2":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M yC zC 0C 1C WC JC KC 2C 3C","2":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"xC VC"},F:{"1":"1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CD JC pC DD KC","2":"0 F CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C","8":"AD BD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD","2":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J cD dD eD fD qC gD hD","2":"I"},J:{"1":"D A"},K:{"1":"B C JC pC KC","2":"A H"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"1":"vD","2":"wD"}},B:7,C:"Offline web applications",D:true}; +module.exports={A:{A:{"1":"A B","2":"G bC","8":"K E F"},B:{"1":"C L M H N O P Q I R S T","2":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S eC fC","2":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","4":"DC","8":"cC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T","2":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M hC iC jC kC LC 7B 8B lC mC","2":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B uC 7B ZC vC 8B","2":"G 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC","8":"sC tC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED","2":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J JD KD LD MD aC ND OD","2":"D"},J:{"1":"E A"},K:{"1":"B C 7B ZC 8B","2":"A I"},L:{"2":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"1":"cD","2":"dD"}},B:7,C:"Offline web applications",D:true}; diff --git a/node_modules/caniuse-lite/data/features/offscreencanvas.js b/node_modules/caniuse-lite/data/features/offscreencanvas.js index c4498f6c4..266f82802 100644 --- a/node_modules/caniuse-lite/data/features/offscreencanvas.js +++ b/node_modules/caniuse-lite/data/features/offscreencanvas.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vC wC","194":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n"},D:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","322":"zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B"},E:{"1":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC","516":"aC bC cC dC 6C"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB 9C AD BD CD JC pC DD KC","322":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},G:{"1":"NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC","516":"aC bC cC dC ZD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"194":"vD wD"}},B:1,C:"OffscreenCanvas",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB eC fC","194":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n"},D:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","322":"oB EC pB FC qB rB sB tB uB vB wB"},E:{"1":"BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC","516":"PC QC RC SC pC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB rC sC tC uC 7B ZC vC 8B","322":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"1":"BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC","516":"PC QC RC SC HD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"194":"cD dD"}},B:1,C:"OffscreenCanvas",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ogg-vorbis.js b/node_modules/caniuse-lite/data/features/ogg-vorbis.js index 867d16604..6b1ce9b93 100644 --- a/node_modules/caniuse-lite/data/features/ogg-vorbis.js +++ b/node_modules/caniuse-lite/data/features/ogg-vorbis.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C","260":"NC eC fC gC hC iC 7C OC jC kC lC","388":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC","260":"hC iC aD OC jC kC lC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"A","2":"D"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Ogg Vorbis audio format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC","260":"BC TC UC VC WC XC YC CC qC","388":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC","260":"WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"A","2":"E"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Ogg Vorbis audio format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ogv.js b/node_modules/caniuse-lite/data/features/ogv.js index b9466bfae..021d70d9d 100644 --- a/node_modules/caniuse-lite/data/features/ogv.js +++ b/node_modules/caniuse-lite/data/features/ogv.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","8":"F A B"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB","8":"C L M G N","194":"EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB vC wC","2":"sC PC MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB","194":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o BD CD JC pC DD KC","2":"F 9C AD","194":"0 p q r s t u v w x y z"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"1":"vD wD"}},B:6,C:"Ogg/Theora video format",D:true}; +module.exports={A:{A:{"2":"K E F bC","8":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB","8":"C L M H N","194":"BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"9 AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o tC uC 7B ZC vC 8B","2":"G rC sC","194":"p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"1":"cD dD"}},B:6,C:"Ogg/Theora video format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ol-reversed.js b/node_modules/caniuse-lite/data/features/ol-reversed.js index 211a53157..045952f95 100644 --- a/node_modules/caniuse-lite/data/features/ol-reversed.js +++ b/node_modules/caniuse-lite/data/features/ol-reversed.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","16":"N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD","16":"C"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Reversed attribute of ordered lists",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","16":"N O P HB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","16":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC","16":"C"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Reversed attribute of ordered lists",D:true}; diff --git a/node_modules/caniuse-lite/data/features/once-event-listener.js b/node_modules/caniuse-lite/data/features/once-event-listener.js index db70e89bf..95c0ca546 100644 --- a/node_modules/caniuse-lite/data/features/once-event-listener.js +++ b/node_modules/caniuse-lite/data/features/once-event-listener.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB vC wC"},D:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"\"once\" event listener option",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"\"once\" event listener option",D:true}; diff --git a/node_modules/caniuse-lite/data/features/online-status.js b/node_modules/caniuse-lite/data/features/online-status.js index 94d561267..89420dcef 100644 --- a/node_modules/caniuse-lite/data/features/online-status.js +++ b/node_modules/caniuse-lite/data/features/online-status.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D rC","260":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC","516":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L"},E:{"1":"UB K E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","1025":"D"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD","4":"KC"},G:{"1":"E qC FD GD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED","1025":"HD"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"A","132":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Online/offline status",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E bC","260":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC","516":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L"},E:{"1":"GB K F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","1025":"E"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC","4":"8B"},G:{"1":"F aC xC yC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC","1025":"zC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"A","132":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Online/offline status",D:true}; diff --git a/node_modules/caniuse-lite/data/features/opus.js b/node_modules/caniuse-lite/data/features/opus.js index be3d32c98..806088a43 100644 --- a/node_modules/caniuse-lite/data/features/opus.js +++ b/node_modules/caniuse-lite/data/features/opus.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB"},E:{"2":"J UB K D E F A xC VC yC zC 0C 1C WC","132":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC","260":"hC","516":"iC 7C OC jC kC lC","1028":"mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","132":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC","260":"hC","516":"iC aD OC jC kC lC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Opus audio format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB"},E:{"2":"J GB K E F G A gC KC hC iC jC kC LC","132":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC","260":"WC","516":"XC YC CC qC"},F:{"1":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","132":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC","260":"WC","516":"XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Opus audio format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/orientation-sensor.js b/node_modules/caniuse-lite/data/features/orientation-sensor.js index 41ddf1ec5..f49c4f92e 100644 --- a/node_modules/caniuse-lite/data/features/orientation-sensor.js +++ b/node_modules/caniuse-lite/data/features/orientation-sensor.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","194":"zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"Orientation Sensor",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB EC pB FC qB rB sB tB uB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"Orientation Sensor",D:true}; diff --git a/node_modules/caniuse-lite/data/features/outline.js b/node_modules/caniuse-lite/data/features/outline.js index 32116c48a..c6b6f88e3 100644 --- a/node_modules/caniuse-lite/data/features/outline.js +++ b/node_modules/caniuse-lite/data/features/outline.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","260":"E","388":"F A B"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","388":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD","129":"KC","260":"F B 9C AD BD CD JC pC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"C H KC","260":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"388":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS outline properties",D:true}; +module.exports={A:{A:{"2":"K E bC","260":"F","388":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","388":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC","129":"8B","260":"G B rC sC tC uC 7B ZC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"C I 8B","260":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"388":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS outline properties",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pad-start-end.js b/node_modules/caniuse-lite/data/features/pad-start-end.js index cc745ffda..ce41bbc14 100644 --- a/node_modules/caniuse-lite/data/features/pad-start-end.js +++ b/node_modules/caniuse-lite/data/features/pad-start-end.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC"},D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"String.prototype.padStart(), String.prototype.padEnd()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"String.prototype.padStart(), String.prototype.padEnd()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/page-transition-events.js b/node_modules/caniuse-lite/data/features/page-transition-events.js index e714c2e11..3baf2173f 100644 --- a/node_modules/caniuse-lite/data/features/page-transition-events.js +++ b/node_modules/caniuse-lite/data/features/page-transition-events.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"PageTransitionEvent",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"PageTransitionEvent",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pagevisibility.js b/node_modules/caniuse-lite/data/features/pagevisibility.js index 728eb5821..34bd9fc86 100644 --- a/node_modules/caniuse-lite/data/features/pagevisibility.js +++ b/node_modules/caniuse-lite/data/features/pagevisibility.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC","33":"A B C L M G N O"},D:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L","33":"1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B C 9C AD BD CD JC pC DD","33":"G N O P VB"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","33":"gD hD"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Page Visibility",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC","33":"A B C L M H N O"},D:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L","33":"0 M H N O P HB v w x y z IB JB KB LB MB NB OB"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC"},F:{"1":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B C rC sC tC uC 7B ZC vC","33":"H N O P HB"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","33":"ND OD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Page Visibility",D:true}; diff --git a/node_modules/caniuse-lite/data/features/passive-event-listener.js b/node_modules/caniuse-lite/data/features/passive-event-listener.js index 7513a55c1..5dac672b8 100644 --- a/node_modules/caniuse-lite/data/features/passive-event-listener.js +++ b/node_modules/caniuse-lite/data/features/passive-event-listener.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"Passive event listeners",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"Passive event listeners",D:true}; diff --git a/node_modules/caniuse-lite/data/features/passkeys.js b/node_modules/caniuse-lite/data/features/passkeys.js index ce317300f..29ea97ee2 100644 --- a/node_modules/caniuse-lite/data/features/passkeys.js +++ b/node_modules/caniuse-lite/data/features/passkeys.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"1":"EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB vC wC"},D:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"1":"ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC"},F:{"1":"0 g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f 9C AD BD CD JC pC DD KC"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"2 3 4 5 6 7 8 9","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"1"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"Passkeys",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"1":"BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"1":"OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC"},F:{"1":"g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f rC sC tC uC 7B ZC vC 8B"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 w x y z","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"v"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"Passkeys",D:true}; diff --git a/node_modules/caniuse-lite/data/features/passwordrules.js b/node_modules/caniuse-lite/data/features/passwordrules.js index 5f72f7ad9..7531d8c75 100644 --- a/node_modules/caniuse-lite/data/features/passwordrules.js +++ b/node_modules/caniuse-lite/data/features/passwordrules.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","16":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC vC wC","16":"UC tC uC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"TC IC UC"},E:{"1":"C L KC","2":"J UB K D E F A B xC VC yC zC 0C 1C WC JC","16":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 9C AD BD CD JC pC DD KC","16":"0 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"16":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","16":"I"},J:{"2":"D","16":"A"},K:{"2":"A B C JC pC KC","16":"H"},L:{"16":"I"},M:{"16":"IC"},N:{"2":"A","16":"B"},O:{"16":"LC"},P:{"2":"J iD jD","16":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD wD"}},B:1,C:"Password Rules",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","16":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC eC fC","16":"IC JC dC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"HC IC JC"},E:{"1":"C L 8B","2":"J GB K E F G A B gC KC hC iC jC kC LC 7B","16":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB rC sC tC uC 7B ZC vC 8B","16":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"16":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","16":"D"},J:{"2":"E","16":"A"},K:{"2":"A B C 7B ZC 8B","16":"I"},L:{"16":"D"},M:{"16":"D"},N:{"2":"A","16":"B"},O:{"16":"9B"},P:{"2":"J PD QD","16":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD dD"}},B:1,C:"Password Rules",D:false}; diff --git a/node_modules/caniuse-lite/data/features/path2d.js b/node_modules/caniuse-lite/data/features/path2d.js index a72b092a9..988059f1f 100644 --- a/node_modules/caniuse-lite/data/features/path2d.js +++ b/node_modules/caniuse-lite/data/features/path2d.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L","132":"M G N O P"},C:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC","132":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB","132":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC zC","132":"E F 0C"},F:{"1":"0 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 F B C G N O P VB 9C AD BD CD JC pC DD KC","132":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","16":"E","132":"ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","132":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Path2D",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L","132":"M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC","132":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB"},D:{"1":"1 2 3 4 5 6 7 8 9 wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB","132":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC iC","132":"F G jC"},F:{"1":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x rC sC tC uC 7B ZC vC 8B","132":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","16":"F","132":"0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","132":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Path2D",D:true}; diff --git a/node_modules/caniuse-lite/data/features/payment-request.js b/node_modules/caniuse-lite/data/features/payment-request.js index f8915e93c..6af800600 100644 --- a/node_modules/caniuse-lite/data/features/payment-request.js +++ b/node_modules/caniuse-lite/data/features/payment-request.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L","322":"M","8196":"G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB vC wC","4162":"wB xB yB zB QC 0B RC 1B 2B 3B 4B","16452":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","194":"uB vB wB xB yB zB","1090":"QC 0B","8196":"RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","514":"A B WC","8196":"C JC"},F:{"1":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB 9C AD BD CD JC pC DD KC","194":"hB iB jB kB lB mB nB oB","8196":"pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD","514":"LD MD ND","8196":"OD PD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"2049":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J","8196":"iD jD kD lD mD WC nD"},Q:{"8196":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:2,C:"Payment Request API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L","322":"M","8196":"H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB eC fC","4162":"lB mB nB oB EC pB FC qB rB sB tB","16452":"1 2 3 4 5 6 7 8 9 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB","194":"jB kB lB mB nB oB","1090":"EC pB","8196":"FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","514":"A B LC","8196":"C 7B"},F:{"1":"uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB rC sC tC uC 7B ZC vC 8B","194":"WB XB YB ZB aB bB cB dB","8196":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C","514":"3C 4C 5C","8196":"6C 7C"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"2049":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J","8196":"PD QD RD SD TD LC UD"},Q:{"8196":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:2,C:"Payment Request API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pdf-viewer.js b/node_modules/caniuse-lite/data/features/pdf-viewer.js index 5f7754aa3..27f779518 100644 --- a/node_modules/caniuse-lite/data/features/pdf-viewer.js +++ b/node_modules/caniuse-lite/data/features/pdf-viewer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"16":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"Built-in PDF viewer",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"16":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"Built-in PDF viewer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/permissions-api.js b/node_modules/caniuse-lite/data/features/permissions-api.js index c836ea6f5..0582b30e5 100644 --- a/node_modules/caniuse-lite/data/features/permissions-api.js +++ b/node_modules/caniuse-lite/data/features/permissions-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB vC wC"},D:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Permissions API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Permissions API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/permissions-policy.js b/node_modules/caniuse-lite/data/features/permissions-policy.js index fb35076f1..31b8f33fd 100644 --- a/node_modules/caniuse-lite/data/features/permissions-policy.js +++ b/node_modules/caniuse-lite/data/features/permissions-policy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","258":"Q H R S T U","322":"V W","388":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC vC wC","258":"0 DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","258":"0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U","322":"V W","388":"0 X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B xC VC yC zC 0C 1C WC","258":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB 9C AD BD CD JC pC DD KC","258":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC","322":"BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d","388":"0 e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND","258":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","258":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","388":"H"},L:{"388":"I"},M:{"258":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"J iD jD kD","258":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"258":"tD"},R:{"388":"uD"},S:{"2":"vD","258":"wD"}},B:5,C:"Permissions Policy",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","258":"Q I R S T U","322":"V W","388":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B eC fC","258":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","258":"pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U","322":"V W","388":"1 2 3 4 5 6 7 8 9 X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B gC KC hC iC jC kC LC","258":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB rC sC tC uC 7B ZC vC 8B","258":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","322":"0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d","388":"e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C","258":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","258":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","388":"I"},L:{"388":"D"},M:{"258":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J PD QD RD","258":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"258":"aD"},R:{"388":"bD"},S:{"2":"cD","258":"dD"}},B:5,C:"Permissions Policy",D:true}; diff --git a/node_modules/caniuse-lite/data/features/picture-in-picture.js b/node_modules/caniuse-lite/data/features/picture-in-picture.js index e04972a7a..fa1a1f7e4 100644 --- a/node_modules/caniuse-lite/data/features/picture-in-picture.js +++ b/node_modules/caniuse-lite/data/features/picture-in-picture.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B vC wC","132":"0 BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","1090":"6B","1412":"AC","1668":"7B 8B 9B"},D:{"1":"0 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B","2114":"8B"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","4100":"A B C L WC JC KC"},F:{"1":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB 9C AD BD CD JC pC DD KC","8196":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","4100":"JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"16388":"I"},M:{"16388":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"Picture-in-Picture",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB eC fC","132":"1 2 3 4 5 6 7 8 9 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","1090":"vB","1412":"zB","1668":"wB xB yB"},D:{"1":"1 2 3 4 5 6 7 8 9 yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB","2114":"xB"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","4100":"A B C L LC 7B 8B"},F:{"1":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB rC sC tC uC 7B ZC vC 8B","8196":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C","4100":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"16388":"D"},M:{"16388":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"Picture-in-Picture",D:true}; diff --git a/node_modules/caniuse-lite/data/features/picture.js b/node_modules/caniuse-lite/data/features/picture.js index f3038d835..3d1a7d051 100644 --- a/node_modules/caniuse-lite/data/features/picture.js +++ b/node_modules/caniuse-lite/data/features/picture.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB vC wC","578":"bB cB dB eB"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB","194":"eB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC","322":"5"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Picture element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB eC fC","578":"QB RB SB TB"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB","194":"TB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B","322":"z"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Picture element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ping.js b/node_modules/caniuse-lite/data/features/ping.js index fa06cfe92..997295e45 100644 --- a/node_modules/caniuse-lite/data/features/ping.js +++ b/node_modules/caniuse-lite/data/features/ping.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"2":"sC","194":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"194":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"194":"vD wD"}},B:1,C:"Ping attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"2":"cC","194":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"194":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"194":"cD dD"}},B:1,C:"Ping attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/png-alpha.js b/node_modules/caniuse-lite/data/features/png-alpha.js index 43784e805..3cf91b2b1 100644 --- a/node_modules/caniuse-lite/data/features/png-alpha.js +++ b/node_modules/caniuse-lite/data/features/png-alpha.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"D E F A B","2":"rC","8":"K"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"PNG alpha transparency",D:true}; +module.exports={A:{A:{"1":"E F G A B","2":"bC","8":"K"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"PNG alpha transparency",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pointer-events.js b/node_modules/caniuse-lite/data/features/pointer-events.js index 56c37ca10..8d665ac39 100644 --- a/node_modules/caniuse-lite/data/features/pointer-events.js +++ b/node_modules/caniuse-lite/data/features/pointer-events.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:7,C:"CSS pointer-events (for HTML)",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:7,C:"CSS pointer-events (for HTML)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pointer.js b/node_modules/caniuse-lite/data/features/pointer.js index c4fe765f3..16c8c9711 100644 --- a/node_modules/caniuse-lite/data/features/pointer.js +++ b/node_modules/caniuse-lite/data/features/pointer.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F rC","164":"A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC","8":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB","328":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},D:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 J UB K D E F A B C L M G N O P VB","8":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","584":"tB uB vB"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","8":"D E F A B C zC 0C 1C WC JC","1096":"KC"},F:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","8":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB","584":"gB hB iB"},G:{"1":"SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD","6148":"RD"},H:{"2":"bD"},I:{"1":"I","8":"PC J cD dD eD fD qC gD hD"},J:{"8":"D A"},K:{"1":"H","2":"A","8":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","36":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"iD","8":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","328":"vD"}},B:2,C:"Pointer events",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G bC","164":"A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC","8":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB","328":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w","8":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","584":"iB jB kB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","8":"E F G A B C iC jC kC LC 7B","1096":"8B"},F:{"1":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","8":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB","584":"VB WB XB"},G:{"1":"AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C","6148":"9C"},H:{"2":"ID"},I:{"1":"D","8":"DC J JD KD LD MD aC ND OD"},J:{"8":"E A"},K:{"1":"I","2":"A","8":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","36":"A"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"PD","8":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","328":"cD"}},B:2,C:"Pointer events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/pointerlock.js b/node_modules/caniuse-lite/data/features/pointerlock.js index 894838a88..064d568fe 100644 --- a/node_modules/caniuse-lite/data/features/pointerlock.js +++ b/node_modules/caniuse-lite/data/features/pointerlock.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C"},C:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L vC wC","33":"1 2 3 4 5 6 7 8 9 M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},D:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G","33":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB","66":"1 2 N O P VB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 G N O P VB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","16":"H"},L:{"2":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"16":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Pointer Lock API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L eC fC","33":"0 M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},D:{"1":"1 2 3 4 5 6 7 8 9 TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H","33":"0 x y z IB JB KB LB MB NB OB PB QB RB SB","66":"N O P HB v w"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"H N O P HB v w x y"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","16":"I"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"16":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Pointer Lock API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/portals.js b/node_modules/caniuse-lite/data/features/portals.js index 533d18adb..228ab0e58 100644 --- a/node_modules/caniuse-lite/data/features/portals.js +++ b/node_modules/caniuse-lite/data/features/portals.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T","322":"0 Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","450":"U V W X Y"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC","194":"EC FC GC HC Q H R S T","322":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","450":"U"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC","194":"1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC","322":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"450":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Portals",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T","322":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","450":"U V W X Y"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","194":"3B 4B 5B 6B Q I R S T","322":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","450":"U"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B","194":"qB rB sB tB uB vB wB xB yB zB 0B","322":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"450":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Portals",D:true}; diff --git a/node_modules/caniuse-lite/data/features/prefers-color-scheme.js b/node_modules/caniuse-lite/data/features/prefers-color-scheme.js index 1c016442d..b01375031 100644 --- a/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +++ b/node_modules/caniuse-lite/data/features/prefers-color-scheme.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B vC wC"},D:{"1":"0 FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC"},E:{"1":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"prefers-color-scheme media query",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},E:{"1":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"prefers-color-scheme media query",D:true}; diff --git a/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js b/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js index 036ff9e55..157158fa9 100644 --- a/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +++ b/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC"},D:{"1":"0 DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"prefers-reduced-motion media query",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"prefers-reduced-motion media query",D:true}; diff --git a/node_modules/caniuse-lite/data/features/progress.js b/node_modules/caniuse-lite/data/features/progress.js index af807ae7b..72e022f2f 100644 --- a/node_modules/caniuse-lite/data/features/progress.js +++ b/node_modules/caniuse-lite/data/features/progress.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F 9C AD BD CD"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","132":"HD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"progress element",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G rC sC tC uC"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","132":"zC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"progress element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/promise-finally.js b/node_modules/caniuse-lite/data/features/promise-finally.js index 5efe8bce3..cedb67438 100644 --- a/node_modules/caniuse-lite/data/features/promise-finally.js +++ b/node_modules/caniuse-lite/data/features/promise-finally.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O"},C:{"1":"0 zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB vC wC"},D:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"Promise.prototype.finally",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O"},C:{"1":"1 2 3 4 5 6 7 8 9 oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"Promise.prototype.finally",D:true}; diff --git a/node_modules/caniuse-lite/data/features/promises.js b/node_modules/caniuse-lite/data/features/promises.js index e8e5578ea..4396e42fc 100644 --- a/node_modules/caniuse-lite/data/features/promises.js +++ b/node_modules/caniuse-lite/data/features/promises.js @@ -1 +1 @@ -module.exports={A:{A:{"8":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","4":"8 9","8":"1 2 3 4 5 6 7 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"ZB","8":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB K D xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","4":"VB","8":"F B C G N O P 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC FD GD HD"},H:{"8":"bD"},I:{"1":"I hD","8":"PC J cD dD eD fD qC gD"},J:{"8":"D A"},K:{"1":"H","8":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Promises",D:true}; +module.exports={A:{A:{"8":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","4":"JB KB","8":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"OB","8":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB K E gC KC hC iC"},F:{"1":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","4":"HB","8":"G B C H N O P rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC xC yC zC"},H:{"8":"ID"},I:{"1":"D OD","8":"DC J JD KD LD MD aC ND"},J:{"8":"E A"},K:{"1":"I","8":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Promises",D:true}; diff --git a/node_modules/caniuse-lite/data/features/proximity.js b/node_modules/caniuse-lite/data/features/proximity.js index 776782ba2..dcaa4f140 100644 --- a/node_modules/caniuse-lite/data/features/proximity.js +++ b/node_modules/caniuse-lite/data/features/proximity.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"vD wD"}},B:4,C:"Proximity API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"cD dD"}},B:4,C:"Proximity API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/proxy.js b/node_modules/caniuse-lite/data/features/proxy.js index 0b28a625e..4da43644b 100644 --- a/node_modules/caniuse-lite/data/features/proxy.js +++ b/node_modules/caniuse-lite/data/features/proxy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P fB gB hB iB jB kB lB mB nB oB pB","66":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"6 7 8 9 F B C WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC","66":"1 2 3 4 5 G N O P VB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Proxy object",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P UB VB WB XB YB ZB aB bB cB dB eB","66":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B","66":"H N O P HB v w x y z"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Proxy object",D:true}; diff --git a/node_modules/caniuse-lite/data/features/publickeypinning.js b/node_modules/caniuse-lite/data/features/publickeypinning.js index fc90c6202..108e01116 100644 --- a/node_modules/caniuse-lite/data/features/publickeypinning.js +++ b/node_modules/caniuse-lite/data/features/publickeypinning.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B","2":"0 F B C G N O P VB 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","4":"4","16":"1 2 3 5"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"J iD jD kD lD mD WC","2":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"vD","2":"wD"}},B:6,C:"HTTP Public Key Pinning",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB","2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","2":"G B C H N O P HB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","4":"y","16":"v w x z"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"J PD QD RD SD TD LC","2":"0 v w x y z UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"cD","2":"dD"}},B:6,C:"HTTP Public Key Pinning",D:true}; diff --git a/node_modules/caniuse-lite/data/features/push-api.js b/node_modules/caniuse-lite/data/features/push-api.js index 84603b0eb..cca84e2d5 100644 --- a/node_modules/caniuse-lite/data/features/push-api.js +++ b/node_modules/caniuse-lite/data/features/push-api.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"O P","2":"C L M G N","257":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB vC wC","257":"0 lB nB oB pB qB rB sB uB vB wB xB yB zB QC RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","1281":"mB tB 0B"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","257":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","388":"lB mB nB oB pB qB"},E:{"2":"J UB K xC VC yC zC","514":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC","4609":"OC jC kC lC mC nC oC 8C","6660":"ZC aC bC cC dC 6C NC eC fC gC hC iC 7C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB 9C AD BD CD JC pC DD KC","16":"eB fB gB hB iB","257":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","8196":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"2":"uD"},S:{"257":"vD wD"}},B:5,C:"Push API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"O P","2":"C L M H N","257":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB eC fC","257":"1 2 3 4 5 6 7 8 9 aB cB dB eB fB gB hB jB kB lB mB nB oB EC FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","1281":"bB iB pB"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB","257":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","388":"aB bB cB dB eB fB"},E:{"2":"J GB K gC KC hC iC","514":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC","2564":"OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB rC sC tC uC 7B ZC vC 8B","16":"TB UB VB WB XB","257":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","4100":"RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"2":"bD"},S:{"257":"cD dD"}},B:5,C:"Push API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/queryselector.js b/node_modules/caniuse-lite/data/features/queryselector.js index 4d630a491..6e027ea68 100644 --- a/node_modules/caniuse-lite/data/features/queryselector.js +++ b/node_modules/caniuse-lite/data/features/queryselector.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"rC","8":"K D","132":"E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","8":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","8":"F 9C"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"querySelector/querySelectorAll",D:true}; +module.exports={A:{A:{"1":"G A B","2":"bC","8":"K E","132":"F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","8":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","8":"G rC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"querySelector/querySelectorAll",D:true}; diff --git a/node_modules/caniuse-lite/data/features/readonly-attr.js b/node_modules/caniuse-lite/data/features/readonly-attr.js index edc08522a..d49d0fc49 100644 --- a/node_modules/caniuse-lite/data/features/readonly-attr.js +++ b/node_modules/caniuse-lite/data/features/readonly-attr.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC PC vC wC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F 9C","132":"B C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","132":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"257":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"readonly attribute of input and textarea elements",D:true}; +module.exports={A:{A:{"1":"K E F G A B","16":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"0 J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G rC","132":"B C sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","132":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"257":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"readonly attribute of input and textarea elements",D:true}; diff --git a/node_modules/caniuse-lite/data/features/referrer-policy.js b/node_modules/caniuse-lite/data/features/referrer-policy.js index a7950ebae..f68547164 100644 --- a/node_modules/caniuse-lite/data/features/referrer-policy.js +++ b/node_modules/caniuse-lite/data/features/referrer-policy.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P","513":"Q H R S T"},C:{"1":"W X Y Z a","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC","513":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V","2049":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 J UB K D E F A B C L M G N O P VB","260":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B","513":"RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T"},E:{"2":"J UB K D xC VC yC zC","132":"E F A B 0C 1C WC","513":"C JC KC","1025":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","1537":"L M 2C 3C"},F:{"1":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","513":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC"},G:{"2":"VC ED qC FD GD HD","132":"E ID JD KD LD MD ND OD","513":"PD QD RD SD","1025":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","1537":"TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2049":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J","513":"iD jD kD lD mD WC nD oD pD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"513":"vD wD"}},B:4,C:"Referrer Policy",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P","513":"Q I R S T"},C:{"1":"W X Y Z a","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC","513":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V","2049":"1 2 3 4 5 6 7 8 9 b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v","260":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB","513":"FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"2":"J GB K E gC KC hC iC","132":"F G A B jC kC LC","513":"C 7B 8B","1025":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","1537":"L M lC mC"},F:{"1":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","513":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B"},G:{"2":"KC wC aC xC yC zC","132":"F 0C 1C 2C 3C 4C 5C 6C","513":"7C 8C 9C AD","1025":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","1537":"BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2049":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J","513":"PD QD RD SD TD LC UD VD WD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"513":"cD dD"}},B:4,C:"Referrer Policy",D:true}; diff --git a/node_modules/caniuse-lite/data/features/registerprotocolhandler.js b/node_modules/caniuse-lite/data/features/registerprotocolhandler.js index 7ea393825..a43029611 100644 --- a/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +++ b/node_modules/caniuse-lite/data/features/registerprotocolhandler.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","129":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC"},D:{"2":"J UB K D E F A B C","129":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B 9C AD BD CD JC pC","129":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D","129":"A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:1,C:"Custom protocol handling",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","129":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC"},D:{"2":"J GB K E F G A B C","129":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B rC sC tC uC 7B ZC","129":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E","129":"A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:1,C:"Custom protocol handling",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rel-noopener.js b/node_modules/caniuse-lite/data/features/rel-noopener.js index 0b4a9659e..1b087c3f0 100644 --- a/node_modules/caniuse-lite/data/features/rel-noopener.js +++ b/node_modules/caniuse-lite/data/features/rel-noopener.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"rel=noopener",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"rel=noopener",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rel-noreferrer.js b/node_modules/caniuse-lite/data/features/rel-noreferrer.js index 922eee771..f3d06bdb5 100644 --- a/node_modules/caniuse-lite/data/features/rel-noreferrer.js +++ b/node_modules/caniuse-lite/data/features/rel-noreferrer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","132":"B"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C"},C:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M G"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Link type \"noreferrer\"",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","132":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M H"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Link type \"noreferrer\"",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rellist.js b/node_modules/caniuse-lite/data/features/rellist.js index 798dd4ec7..9c902bd21 100644 --- a/node_modules/caniuse-lite/data/features/rellist.js +++ b/node_modules/caniuse-lite/data/features/rellist.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N","132":"O"},C:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB vC wC"},D:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","132":"rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB 9C AD BD CD JC pC DD KC","132":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J","132":"iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"relList (DOMTokenList)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N","132":"O"},C:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","132":"gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F gC KC hC iC jC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB rC sC tC uC 7B ZC vC 8B","132":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J","132":"PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"relList (DOMTokenList)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rem.js b/node_modules/caniuse-lite/data/features/rem.js index 50a85dbe2..a511da6eb 100644 --- a/node_modules/caniuse-lite/data/features/rem.js +++ b/node_modules/caniuse-lite/data/features/rem.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E rC","132":"F A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"E ED qC GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC","260":"FD"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"rem (root em) units",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F bC","132":"G A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"F wC aC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC","260":"xC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"rem (root em) units",D:true}; diff --git a/node_modules/caniuse-lite/data/features/requestanimationframe.js b/node_modules/caniuse-lite/data/features/requestanimationframe.js index d23911910..a732d42dd 100644 --- a/node_modules/caniuse-lite/data/features/requestanimationframe.js +++ b/node_modules/caniuse-lite/data/features/requestanimationframe.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","33":"1 2 3 B C L M G N O P VB","164":"J UB K D E F A"},D:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F","33":"3 4","164":"1 2 P VB","420":"A B C L M G N O"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","33":"GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"requestAnimationFrame",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","33":"B C L M H N O P HB v w x","164":"J GB K E F G A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G","33":"x y","164":"P HB v w","420":"A B C L M H N O"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","33":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","33":"yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"requestAnimationFrame",D:true}; diff --git a/node_modules/caniuse-lite/data/features/requestidlecallback.js b/node_modules/caniuse-lite/data/features/requestidlecallback.js index e84aac6d6..00d57a683 100644 --- a/node_modules/caniuse-lite/data/features/requestidlecallback.js +++ b/node_modules/caniuse-lite/data/features/requestidlecallback.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC","194":"uB vB"},D:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC","322":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC"},F:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD","322":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"requestIdleCallback",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC","194":"jB kB"},D:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB"},E:{"1":"qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B","322":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC"},F:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD","322":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"requestIdleCallback",D:true}; diff --git a/node_modules/caniuse-lite/data/features/resizeobserver.js b/node_modules/caniuse-lite/data/features/resizeobserver.js index baae4cc96..8878ae46f 100644 --- a/node_modules/caniuse-lite/data/features/resizeobserver.js +++ b/node_modules/caniuse-lite/data/features/resizeobserver.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B vC wC"},D:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","194":"vB wB xB yB zB QC 0B RC 1B 2B"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC","66":"L"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC","194":"iB jB kB lB mB nB oB pB qB rB sB"},G:{"1":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"Resize Observer",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","194":"kB lB mB nB oB EC pB FC qB rB"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B","66":"L"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B","194":"XB YB ZB aB bB cB dB eB fB gB hB"},G:{"1":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"Resize Observer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/resource-timing.js b/node_modules/caniuse-lite/data/features/resource-timing.js index 853a1b089..6b902fbed 100644 --- a/node_modules/caniuse-lite/data/features/resource-timing.js +++ b/node_modules/caniuse-lite/data/features/resource-timing.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC","194":"YB ZB aB bB"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","260":"B"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Resource Timing (basic support)",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC","194":"NB OB PB QB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","260":"B"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Resource Timing (basic support)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rest-parameters.js b/node_modules/caniuse-lite/data/features/rest-parameters.js index d09d254a8..c8524f89b 100644 --- a/node_modules/caniuse-lite/data/features/rest-parameters.js +++ b/node_modules/caniuse-lite/data/features/rest-parameters.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","194":"lB mB nB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB 9C AD BD CD JC pC DD KC","194":"YB ZB aB"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Rest parameters",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB","194":"aB bB cB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB rC sC tC uC 7B ZC vC 8B","194":"NB OB PB"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Rest parameters",D:true}; diff --git a/node_modules/caniuse-lite/data/features/rtcpeerconnection.js b/node_modules/caniuse-lite/data/features/rtcpeerconnection.js index ff264acf8..d742a7a6c 100644 --- a/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +++ b/node_modules/caniuse-lite/data/features/rtcpeerconnection.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","260":"G N O P"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","33":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 J UB K D E F A B C L M G N O P VB","33":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N O 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"WebRTC Peer-to-peer connections",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","260":"H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","33":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x","33":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O rC sC tC uC 7B ZC vC 8B","33":"0 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","130":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"WebRTC Peer-to-peer connections",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ruby.js b/node_modules/caniuse-lite/data/features/ruby.js index c28e545c4..c2c12c6db 100644 --- a/node_modules/caniuse-lite/data/features/ruby.js +++ b/node_modules/caniuse-lite/data/features/ruby.js @@ -1 +1 @@ -module.exports={A:{A:{"4":"K D E rC","132":"F A B"},B:{"4":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J"},E:{"4":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J xC VC"},F:{"4":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","8":"F B C 9C AD BD CD JC pC DD KC"},G:{"4":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC"},H:{"8":"bD"},I:{"4":"PC J I fD qC gD hD","8":"cD dD eD"},J:{"4":"A","8":"D"},K:{"4":"H","8":"A B C JC pC KC"},L:{"4":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"4":"tD"},R:{"4":"uD"},S:{"1":"vD wD"}},B:1,C:"Ruby annotation",D:true}; +module.exports={A:{A:{"4":"K E F bC","132":"G A B"},B:{"4":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J"},E:{"4":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J gC KC"},F:{"4":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","8":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"4":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC"},H:{"8":"ID"},I:{"4":"DC J D MD aC ND OD","8":"JD KD LD"},J:{"4":"A","8":"E"},K:{"4":"I","8":"A B C 7B ZC 8B"},L:{"4":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"4":"aD"},R:{"4":"bD"},S:{"1":"cD dD"}},B:1,C:"Ruby annotation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/run-in.js b/node_modules/caniuse-lite/data/features/run-in.js index c8432af8a..feffdfbc4 100644 --- a/node_modules/caniuse-lite/data/features/run-in.js +++ b/node_modules/caniuse-lite/data/features/run-in.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB","2":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K yC","2":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"zC","129":"J xC VC"},F:{"1":"F B C G N O P 9C AD BD CD JC pC DD KC","2":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"ED qC FD GD HD","2":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","129":"VC"},H:{"1":"bD"},I:{"1":"PC J cD dD eD fD qC gD","2":"I hD"},J:{"1":"D A"},K:{"1":"A B C JC pC KC","2":"H"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"display: run-in",D:true}; +module.exports={A:{A:{"1":"F G A B","2":"K E bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB","2":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K hC","2":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"iC","129":"J gC KC"},F:{"1":"G B C H N O P rC sC tC uC 7B ZC vC 8B","2":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"wC aC xC yC zC","2":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","129":"KC"},H:{"1":"ID"},I:{"1":"DC J JD KD LD MD aC ND","2":"D OD"},J:{"1":"E A"},K:{"1":"A B C 7B ZC 8B","2":"I"},L:{"2":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"display: run-in",D:true}; diff --git a/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js b/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js index 6969ff069..15565afc2 100644 --- a/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +++ b/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","388":"B"},B:{"1":"P Q H R S T U","2":"C L M G","129":"N O","513":"0 V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC vC wC"},D:{"1":"sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","513":"0 H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC JC","2052":"M 3C","3076":"C L KC 2C"},F:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB 9C AD BD CD JC pC DD KC","513":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD","2052":"PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","513":"H"},L:{"513":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"16":"tD"},R:{"513":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"'SameSite' cookie attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","388":"B"},B:{"1":"P Q I R S T U","2":"C L M H","129":"N O","513":"1 2 3 4 5 6 7 8 9 V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC eC fC"},D:{"1":"hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","513":"1 2 3 4 5 6 7 8 9 I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC 7B","2052":"M mC","3076":"C L 8B lC"},F:{"1":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB rC sC tC uC 7B ZC vC 8B","513":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C","2052":"7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","513":"I"},L:{"513":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"16":"aD"},R:{"513":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"'SameSite' cookie attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/screen-orientation.js b/node_modules/caniuse-lite/data/features/screen-orientation.js index f5e41be5f..5239322a4 100644 --- a/node_modules/caniuse-lite/data/features/screen-orientation.js +++ b/node_modules/caniuse-lite/data/features/screen-orientation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","164":"B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","36":"C L M G N O P"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O vC wC","36":"1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A","36":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","16":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"Screen Orientation",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","164":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","36":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O eC fC","36":"0 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A","36":"B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","16":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"Screen Orientation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/script-async.js b/node_modules/caniuse-lite/data/features/script-async.js index ab6c76f5f..ed36e7c6e 100644 --- a/node_modules/caniuse-lite/data/features/script-async.js +++ b/node_modules/caniuse-lite/data/features/script-async.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","132":"UB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"async attribute for external scripts",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","132":"GB"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"async attribute for external scripts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/script-defer.js b/node_modules/caniuse-lite/data/features/script-defer.js index 5b443dfc2..ba207e79b 100644 --- a/node_modules/caniuse-lite/data/features/script-defer.js +++ b/node_modules/caniuse-lite/data/features/script-defer.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","132":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","257":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"defer attribute for external scripts",D:true}; +module.exports={A:{A:{"1":"A B","132":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","257":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"defer attribute for external scripts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/scrollintoview.js b/node_modules/caniuse-lite/data/features/scrollintoview.js index 79560aec6..c230b7015 100644 --- a/node_modules/caniuse-lite/data/features/scrollintoview.js +++ b/node_modules/caniuse-lite/data/features/scrollintoview.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","132":"E F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","132":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB vC wC"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","132":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD BD CD","16":"B JC pC","132":"1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB DD KC"},G:{"1":"MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC","132":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"1":"I","16":"cD dD","132":"PC J eD fD qC gD hD"},J:{"132":"D A"},K:{"1":"H","132":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","132":"J iD jD kD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"scrollIntoView",D:true}; +module.exports={A:{A:{"2":"K E bC","132":"F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","132":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","132":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC tC uC","16":"B 7B ZC","132":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB vC 8B"},G:{"1":"AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC","132":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"1":"D","16":"JD KD","132":"DC J LD MD aC ND OD"},J:{"132":"E A"},K:{"1":"I","132":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J PD QD RD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"scrollIntoView",D:true}; diff --git a/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js b/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js index 8fb9368c5..bd5a286d4 100644 --- a/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +++ b/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Element.scrollIntoViewIfNeeded()",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Element.scrollIntoViewIfNeeded()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sdch.js b/node_modules/caniuse-lite/data/features/sdch.js index 248385719..99a8be037 100644 --- a/node_modules/caniuse-lite/data/features/sdch.js +++ b/node_modules/caniuse-lite/data/features/sdch.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","2":"0 QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC","2":"0 F B C CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"SDCH Accept-Encoding/Content-Encoding",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","2":"1 2 3 4 5 6 7 8 9 EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B","2":"G B C 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"SDCH Accept-Encoding/Content-Encoding",D:true}; diff --git a/node_modules/caniuse-lite/data/features/selection-api.js b/node_modules/caniuse-lite/data/features/selection-api.js index b19189635..88449274d 100644 --- a/node_modules/caniuse-lite/data/features/selection-api.js +++ b/node_modules/caniuse-lite/data/features/selection-api.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","16":"rC","260":"K D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB vC wC","2180":"kB lB mB nB oB pB qB rB sB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","132":"F B C 9C AD BD CD JC pC DD KC"},G:{"16":"qC","132":"VC ED","516":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","16":"PC J cD dD eD fD","1025":"qC"},J:{"1":"A","16":"D"},K:{"1":"H","16":"A B C JC pC","132":"KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","16":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2180":"vD"}},B:5,C:"Selection API",D:true}; +module.exports={A:{A:{"1":"G A B","16":"bC","260":"K E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB eC fC","2180":"ZB aB bB cB dB eB fB gB hB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","132":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"16":"aC","132":"KC wC","516":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","16":"DC J JD KD LD MD","1025":"aC"},J:{"1":"A","16":"E"},K:{"1":"I","16":"A B C 7B ZC","132":"8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","16":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2180":"cD"}},B:5,C:"Selection API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/selectlist.js b/node_modules/caniuse-lite/data/features/selectlist.js index 63484d935..e6367db5b 100644 --- a/node_modules/caniuse-lite/data/features/selectlist.js +++ b/node_modules/caniuse-lite/data/features/selectlist.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f","194":"0 g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f","194":"0 g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC 9C AD BD CD JC pC DD KC","194":"0 S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","194":"H"},L:{"194":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Customizable Select element",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f","194":"1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f","194":"1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC rC sC tC uC 7B ZC vC 8B","194":"S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","194":"I"},L:{"194":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Selectlist - Customizable select element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/server-timing.js b/node_modules/caniuse-lite/data/features/server-timing.js index b09674b83..1abf89647 100644 --- a/node_modules/caniuse-lite/data/features/server-timing.js +++ b/node_modules/caniuse-lite/data/features/server-timing.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B vC wC"},D:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","196":"0B RC 1B 2B","324":"3B"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","516":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"Server Timing",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","196":"pB FC qB rB","324":"sB"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","516":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB rC sC tC uC 7B ZC vC 8B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"Server Timing",D:true}; diff --git a/node_modules/caniuse-lite/data/features/serviceworkers.js b/node_modules/caniuse-lite/data/features/serviceworkers.js index d1b560b5c..356d24acb 100644 --- a/node_modules/caniuse-lite/data/features/serviceworkers.js +++ b/node_modules/caniuse-lite/data/features/serviceworkers.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","322":"G N"},C:{"1":"0 lB nB oB pB qB rB sB uB vB wB xB yB zB QC RC 1B 2B 3B 4B 5B 6B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","194":"aB bB cB dB eB fB gB hB iB jB kB","513":"mB tB 0B 7B"},D:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB","4":"hB iB jB kB lB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 F B C G N O P VB 9C AD BD CD JC pC DD KC","4":"8 9 WB XB YB"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","4":"I"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"Service Workers",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","322":"H N"},C:{"1":"1 2 3 4 5 6 7 8 9 aB cB dB eB fB gB hB jB kB lB mB nB oB EC FC qB rB sB tB uB vB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","194":"PB QB RB SB TB UB VB WB XB YB ZB","513":"bB iB pB wB"},D:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB","4":"WB XB YB ZB aB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC"},F:{"1":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB rC sC tC uC 7B ZC vC 8B","4":"JB KB LB MB NB"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","4":"D"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"Service Workers",D:true}; diff --git a/node_modules/caniuse-lite/data/features/setimmediate.js b/node_modules/caniuse-lite/data/features/setimmediate.js index e9158d75d..9a08d547c 100644 --- a/node_modules/caniuse-lite/data/features/setimmediate.js +++ b/node_modules/caniuse-lite/data/features/setimmediate.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"C L M G N O P","2":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Efficient Script Yielding: setImmediate()",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"C L M H N O P","2":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"1":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Efficient Script Yielding: setImmediate()",D:true}; diff --git a/node_modules/caniuse-lite/data/features/shadowdom.js b/node_modules/caniuse-lite/data/features/shadowdom.js index 73963a68a..8bfd743f0 100644 --- a/node_modules/caniuse-lite/data/features/shadowdom.js +++ b/node_modules/caniuse-lite/data/features/shadowdom.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"Q","2":"0 C L M G N O P H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","66":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B"},D:{"1":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","2":"0 1 2 3 4 5 J UB K D E F A B C L M G N O P VB H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"6 7 8 9 WB XB YB ZB aB bB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","2":"0 F B C 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","33":"1 2 G N O P VB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC","33":"gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"iD jD kD lD mD WC nD oD","2":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD","33":"J"},Q:{"1":"tD"},R:{"2":"uD"},S:{"1":"vD","2":"wD"}},B:7,C:"Shadow DOM (deprecated V0 spec)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"Q","2":"1 2 3 4 5 6 7 8 9 C L M H N O P I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","66":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB"},D:{"1":"RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","2":"1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 IB JB KB LB MB NB OB PB QB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","2":"G B C vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","33":"H N O P HB v w"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC","33":"ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"PD QD RD SD TD LC UD VD","2":"0 v w x y z WD XD YD AC BC CC ZD","33":"J"},Q:{"1":"aD"},R:{"2":"bD"},S:{"1":"cD","2":"dD"}},B:7,C:"Shadow DOM (deprecated V0 spec)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/shadowdomv1.js b/node_modules/caniuse-lite/data/features/shadowdomv1.js index ccaea5e61..a61630114 100644 --- a/node_modules/caniuse-lite/data/features/shadowdomv1.js +++ b/node_modules/caniuse-lite/data/features/shadowdomv1.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB vC wC","322":"zB","578":"QC 0B RC 1B"},D:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"A B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C"},F:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD","132":"LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","4":"iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"Shadow DOM (V1)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB eC fC","322":"oB","578":"EC pB FC qB"},D:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB"},E:{"1":"A B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C","132":"3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","4":"PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"Shadow DOM (V1)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sharedarraybuffer.js b/node_modules/caniuse-lite/data/features/sharedarraybuffer.js index f1bff06e8..f94bb009e 100644 --- a/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +++ b/node_modules/caniuse-lite/data/features/sharedarraybuffer.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"Q H R S T U V W X Y Z","2":"C L M G","194":"N O P","513":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB vC wC","194":"yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC","450":"DC EC FC GC HC","513":"0 Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC","194":"0B RC 1B 2B 3B 4B 5B 6B","513":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A xC VC yC zC 0C 1C","194":"B C L M G WC JC KC 2C 3C 4C","513":"XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB 9C AD BD CD JC pC DD KC","194":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","513":"0 HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD","194":"MD ND OD PD QD RD SD TD UD VD WD XD","513":"XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","513":"H"},L:{"513":"I"},M:{"513":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"J iD jD kD lD mD WC nD oD pD qD","513":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD"},Q:{"2":"tD"},R:{"513":"uD"},S:{"2":"vD","513":"wD"}},B:6,C:"Shared Array Buffer",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"Q I R S T U V W X Y Z","2":"C L M H","194":"N O P","513":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB eC fC","194":"nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B","450":"2B 3B 4B 5B 6B","513":"1 2 3 4 5 6 7 8 9 Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC","194":"pB FC qB rB sB tB uB vB","513":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A gC KC hC iC jC kC","194":"B C L M H LC 7B 8B lC mC nC","513":"MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB rC sC tC uC 7B ZC vC 8B","194":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","513":"6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C","194":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD","513":"MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","513":"I"},L:{"513":"D"},M:{"513":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"J PD QD RD SD TD LC UD VD WD XD","513":"0 v w x y z YD AC BC CC ZD"},Q:{"2":"aD"},R:{"513":"bD"},S:{"2":"cD","513":"dD"}},B:6,C:"Shared Array Buffer",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sharedworkers.js b/node_modules/caniuse-lite/data/features/sharedworkers.js index 9c2e136f9..b02fb3c3c 100644 --- a/node_modules/caniuse-lite/data/features/sharedworkers.js +++ b/node_modules/caniuse-lite/data/features/sharedworkers.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"UB K yC MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J D E F A B C L M G xC VC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C AD BD"},G:{"1":"FD GD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"B C JC pC KC","2":"H","16":"A"},L:{"2":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"J","2":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"vD wD"}},B:1,C:"Shared Web Workers",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"GB K hC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J E F G A B C L M H gC KC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC sC tC"},G:{"1":"xC yC AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"B C 7B ZC 8B","2":"I","16":"A"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"J","2":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"cD dD"}},B:1,C:"Shared Web Workers",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sni.js b/node_modules/caniuse-lite/data/features/sni.js index 4312cb08d..11beb85f8 100644 --- a/node_modules/caniuse-lite/data/features/sni.js +++ b/node_modules/caniuse-lite/data/features/sni.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K rC","132":"D E"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC"},H:{"1":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Server Name Indication",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K bC","132":"E F"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC"},H:{"1":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Server Name Indication",D:true}; diff --git a/node_modules/caniuse-lite/data/features/spdy.js b/node_modules/caniuse-lite/data/features/spdy.js index 91dc8169f..6c4b6d2e7 100644 --- a/node_modules/caniuse-lite/data/features/spdy.js +++ b/node_modules/caniuse-lite/data/features/spdy.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","2":"0 sC PC J UB K D E F A B C sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","2":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"E F A B C 1C WC JC","2":"J UB K D xC VC yC zC 0C","129":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB jB lB KC","2":"0 F B C hB iB kB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD"},G:{"1":"E ID JD KD LD MD ND OD PD","2":"VC ED qC FD GD HD","257":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J fD qC gD hD","2":"I cD dD eD"},J:{"2":"D A"},K:{"1":"KC","2":"A B C H JC pC"},L:{"2":"I"},M:{"2":"IC"},N:{"1":"B","2":"A"},O:{"2":"LC"},P:{"1":"J","2":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"vD","2":"wD"}},B:7,C:"SPDY protocol",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G A bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","2":"1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","2":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"F G A B C kC LC 7B","2":"J GB K E gC KC hC iC jC","129":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB YB aB 8B","2":"G B C WB XB ZB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C","2":"KC wC aC xC yC zC","257":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J MD aC ND OD","2":"D JD KD LD"},J:{"2":"E A"},K:{"1":"8B","2":"A B C I 7B ZC"},L:{"2":"D"},M:{"2":"D"},N:{"1":"B","2":"A"},O:{"2":"9B"},P:{"1":"J","2":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"cD","2":"dD"}},B:7,C:"SPDY protocol",D:true}; diff --git a/node_modules/caniuse-lite/data/features/speech-recognition.js b/node_modules/caniuse-lite/data/features/speech-recognition.js index ee421b5d0..2cc9fcc56 100644 --- a/node_modules/caniuse-lite/data/features/speech-recognition.js +++ b/node_modules/caniuse-lite/data/features/speech-recognition.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","514":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC","322":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB","164":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C","1060":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 F B C G N O P VB 9C AD BD CD JC pC DD KC","514":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD","1060":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","164":"H"},L:{"164":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"164":"LC"},P:{"164":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"164":"tD"},R:{"164":"uD"},S:{"322":"vD wD"}},B:7,C:"Speech Recognition API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","514":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC","322":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"J GB K E F G A B C L M H N O P HB v w x y z","164":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC","1060":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB rC sC tC uC 7B ZC vC 8B","514":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD","1060":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","164":"I"},L:{"164":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"164":"9B"},P:{"164":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"164":"aD"},R:{"164":"bD"},S:{"322":"cD dD"}},B:7,C:"Speech Recognition API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/speech-synthesis.js b/node_modules/caniuse-lite/data/features/speech-synthesis.js index c7cc715ac..02c33c25c 100644 --- a/node_modules/caniuse-lite/data/features/speech-synthesis.js +++ b/node_modules/caniuse-lite/data/features/speech-synthesis.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"M G N O P","2":"C L","257":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB vC wC","194":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},D:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB","257":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","2":"1 2 3 4 5 6 7 F B C G N O P VB 9C AD BD CD JC pC DD KC","257":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"2":"uD"},S:{"1":"vD wD"}},B:7,C:"Speech Synthesis API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"M H N O P","2":"C L","257":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB eC fC","194":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},D:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB","257":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","2":"0 G B C H N O P HB v w x y z IB rC sC tC uC 7B ZC vC 8B","257":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"2":"bD"},S:{"1":"cD dD"}},B:7,C:"Speech Synthesis API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/spellcheck-attribute.js b/node_modules/caniuse-lite/data/features/spellcheck-attribute.js index 60aab9429..0201f8e16 100644 --- a/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +++ b/node_modules/caniuse-lite/data/features/spellcheck-attribute.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"4":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"4":"bD"},I:{"4":"PC J I cD dD eD fD qC gD hD"},J:{"1":"A","4":"D"},K:{"4":"A B C H JC pC KC"},L:{"4":"I"},M:{"4":"IC"},N:{"4":"A B"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"4":"uD"},S:{"2":"vD wD"}},B:1,C:"Spellcheck attribute",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"4":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"4":"ID"},I:{"4":"DC J D JD KD LD MD aC ND OD"},J:{"1":"A","4":"E"},K:{"4":"A B C I 7B ZC 8B"},L:{"4":"D"},M:{"4":"D"},N:{"4":"A B"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"4":"bD"},S:{"2":"cD dD"}},B:1,C:"Spellcheck attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sql-storage.js b/node_modules/caniuse-lite/data/features/sql-storage.js index 991891475..26d2c13a0 100644 --- a/node_modules/caniuse-lite/data/features/sql-storage.js +++ b/node_modules/caniuse-lite/data/features/sql-storage.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"Q H R S T U V W X Y Z a b c d e f g h i j","2":"C L M G N O P GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"k l m n o p q r s","385":"0 t u v w x y z AB BB CB DB EB FB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j","2":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","129":"k l m n o p q r s","385":"0 t u v w x y z AB","897":"BB CB DB EB FB"},E:{"1":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC","2":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z BD CD JC pC DD KC","2":"0 F t u v w x y z 9C AD","257":"a b c d e f g h i j k l m n o p q r s"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD","2":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J cD dD eD fD qC gD hD","2":"I"},J:{"1":"D A"},K:{"1":"B C JC pC KC","2":"A","257":"H"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Web SQL Database",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"Q I R S T U V W X Y Z a b c d e f g h i j","2":"C L M H N O P DB EB FB D","129":"k l m n o p q r s","385":"1 2 3 4 5 6 7 8 9 t u AB BB CB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j","2":"DB EB FB D HC IC JC","129":"k l m n o p q r s","385":"1 2 3 4 5 6 7 t u","897":"8 9 AB BB CB"},E:{"1":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B","2":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z tC uC 7B ZC vC 8B","2":"G t u rC sC","257":"a b c d e f g h i j k l m n o p q r s"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C","2":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J JD KD LD MD aC ND OD","2":"D"},J:{"1":"E A"},K:{"1":"B C 7B ZC 8B","2":"A","257":"I"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Web SQL Database",D:true}; diff --git a/node_modules/caniuse-lite/data/features/srcset.js b/node_modules/caniuse-lite/data/features/srcset.js index 297a53f99..4e4678f1e 100644 --- a/node_modules/caniuse-lite/data/features/srcset.js +++ b/node_modules/caniuse-lite/data/features/srcset.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C","514":"L M G"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB vC wC","194":"ZB aB bB cB dB eB"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB","260":"bB cB dB eB"},E:{"2":"J UB K D xC VC yC zC","260":"E 0C","1028":"F A 1C WC","3076":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 F B C G N O P VB 9C AD BD CD JC pC DD KC","260":"2 3 4 5"},G:{"2":"VC ED qC FD GD HD","260":"E ID","1028":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Srcset and sizes attributes",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C","514":"L M H"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB eC fC","194":"OB PB QB RB SB TB"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB","260":"QB RB SB TB"},E:{"2":"J GB K E gC KC hC iC","260":"F jC","1028":"G A kC LC","3076":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v rC sC tC uC 7B ZC vC 8B","260":"w x y z"},G:{"2":"KC wC aC xC yC zC","260":"F 0C","1028":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Srcset and sizes attributes",D:true}; diff --git a/node_modules/caniuse-lite/data/features/stream.js b/node_modules/caniuse-lite/data/features/stream.js index 2e26d7994..7f189cfba 100644 --- a/node_modules/caniuse-lite/data/features/stream.js +++ b/node_modules/caniuse-lite/data/features/stream.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N vC wC","129":"dB eB fB gB hB iB","420":"1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB"},D:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 J UB K D E F A B C L M G N O P VB","420":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B G N O 9C AD BD CD JC pC DD","420":"1 2 3 4 5 6 7 8 9 C P VB WB XB YB ZB aB bB cB dB eB fB gB KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD","513":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","1537":"ND OD PD QD RD SD TD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","420":"A"},K:{"1":"H","2":"A B JC pC","420":"C KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","420":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:4,C:"getUserMedia/Stream API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N eC fC","129":"SB TB UB VB WB XB","420":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},D:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v","420":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B H N O rC sC tC uC 7B ZC vC","420":"0 C P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","513":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","1537":"5C 6C 7C 8C 9C AD BD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","420":"A"},K:{"1":"I","2":"A B 7B ZC","420":"C 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","420":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:4,C:"getUserMedia/Stream API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/streams.js b/node_modules/caniuse-lite/data/features/streams.js index 8cf88b3c4..64d6845e5 100644 --- a/node_modules/caniuse-lite/data/features/streams.js +++ b/node_modules/caniuse-lite/data/features/streams.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","130":"B"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C L","260":"M G","1028":"Q H R S T U V W X","5124":"N O P"},C:{"1":"0 l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB vC wC","5124":"j k","7172":"4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i","7746":"yB zB QC 0B RC 1B 2B 3B"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","260":"tB uB vB wB xB yB zB","1028":"QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X"},E:{"2":"J UB K D E F xC VC yC zC 0C 1C","1028":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","3076":"A B C L M WC JC KC 2C"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB 9C AD BD CD JC pC DD KC","260":"gB hB iB jB kB lB mB","1028":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC"},G:{"2":"E VC ED qC FD GD HD ID JD KD","16":"LD","1028":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 rD MC NC OC sD","2":"J iD jD","1028":"kD lD mD WC nD oD pD qD"},Q:{"1028":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:1,C:"Streams",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","130":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C L","260":"M H","1028":"Q I R S T U V W X","5124":"N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB eC fC","5124":"j k","7172":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i","7746":"nB oB EC pB FC qB rB sB"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB","260":"iB jB kB lB mB nB oB","1028":"EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X"},E:{"2":"J GB K E F G gC KC hC iC jC kC","1028":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","3076":"A B C L M LC 7B 8B lC"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB rC sC tC uC 7B ZC vC 8B","260":"VB WB XB YB ZB aB bB","1028":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C","16":"3C","1028":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z YD AC BC CC ZD","2":"J PD QD","1028":"RD SD TD LC UD VD WD XD"},Q:{"1028":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:1,C:"Streams",D:true}; diff --git a/node_modules/caniuse-lite/data/features/stricttransportsecurity.js b/node_modules/caniuse-lite/data/features/stricttransportsecurity.js index 908f7aca1..d1d0a5efa 100644 --- a/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +++ b/node_modules/caniuse-lite/data/features/stricttransportsecurity.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A rC","129":"B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F B 9C AD BD CD JC pC DD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Strict Transport Security",D:true}; +module.exports={A:{A:{"2":"K E F G A bC","129":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G B rC sC tC uC 7B ZC vC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Strict Transport Security",D:true}; diff --git a/node_modules/caniuse-lite/data/features/style-scoped.js b/node_modules/caniuse-lite/data/features/style-scoped.js index c252746fb..af9c77948 100644 --- a/node_modules/caniuse-lite/data/features/style-scoped.js +++ b/node_modules/caniuse-lite/data/features/style-scoped.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","2":"0 1 sC PC J UB K D E F A B C L M G N O P VB RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","322":"wB xB yB zB QC 0B"},D:{"2":"0 J UB K D E F A B C L M G N O P VB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","194":"1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"vD","2":"wD"}},B:7,C:"Scoped attribute",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","2":"1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","322":"lB mB nB oB EC pB"},D:{"2":"1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","194":"0 v w x y z IB JB KB LB MB NB OB PB QB RB SB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"cD","2":"dD"}},B:7,C:"Scoped attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/subresource-bundling.js b/node_modules/caniuse-lite/data/features/subresource-bundling.js index ebc0c2814..745e4d4a3 100644 --- a/node_modules/caniuse-lite/data/features/subresource-bundling.js +++ b/node_modules/caniuse-lite/data/features/subresource-bundling.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Subresource Loading with Web Bundles",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Subresource Loading with Web Bundles",D:false}; diff --git a/node_modules/caniuse-lite/data/features/subresource-integrity.js b/node_modules/caniuse-lite/data/features/subresource-integrity.js index ef3fe3dcb..5db5bc87a 100644 --- a/node_modules/caniuse-lite/data/features/subresource-integrity.js +++ b/node_modules/caniuse-lite/data/features/subresource-integrity.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB vC wC"},D:{"1":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","194":"ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Subresource Integrity",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","194":"5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Subresource Integrity",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-css.js b/node_modules/caniuse-lite/data/features/svg-css.js index 03251632b..15ff1c82c 100644 --- a/node_modules/caniuse-lite/data/features/svg-css.js +++ b/node_modules/caniuse-lite/data/features/svg-css.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","516":"C L M G"},C:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","260":"1 2 3 4 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"J"},E:{"1":"UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC","132":"J VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"VC ED"},H:{"260":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"H","260":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"SVG in CSS backgrounds",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","516":"C L M H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","260":"J GB K E F G A B C L M H N O P HB v w x y"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"J"},E:{"1":"GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC","132":"J KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"KC wC"},H:{"260":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"I","260":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"SVG in CSS backgrounds",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-filters.js b/node_modules/caniuse-lite/data/features/svg-filters.js index c335c1ada..d24b5320c 100644 --- a/node_modules/caniuse-lite/data/features/svg-filters.js +++ b/node_modules/caniuse-lite/data/features/svg-filters.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J","4":"UB K D"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD"},H:{"1":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"SVG filters",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J","4":"GB K E"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"SVG filters",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-fonts.js b/node_modules/caniuse-lite/data/features/svg-fonts.js index 927c27956..a8a5c2c92 100644 --- a/node_modules/caniuse-lite/data/features/svg-fonts.js +++ b/node_modules/caniuse-lite/data/features/svg-fonts.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"F A B rC","8":"K D E"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB","2":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","130":"fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC"},F:{"1":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC","2":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","130":"6 7 8 9 WB XB YB ZB aB bB cB dB"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"258":"bD"},I:{"1":"PC J fD qC gD hD","2":"I cD dD eD"},J:{"1":"D A"},K:{"1":"A B C JC pC KC","2":"H"},L:{"130":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"J","130":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"130":"uD"},S:{"2":"vD wD"}},B:2,C:"SVG fonts",D:true}; +module.exports={A:{A:{"2":"G A B bC","8":"K E F"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB","2":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","130":"UB VB WB XB YB ZB aB bB cB dB eB fB gB"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC"},F:{"1":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B","2":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","130":"0 IB JB KB LB MB NB OB PB QB RB SB"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"258":"ID"},I:{"1":"DC J MD aC ND OD","2":"D JD KD LD"},J:{"1":"E A"},K:{"1":"A B C 7B ZC 8B","2":"I"},L:{"130":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"J","130":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"130":"bD"},S:{"2":"cD dD"}},B:2,C:"SVG fonts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-fragment.js b/node_modules/caniuse-lite/data/features/svg-fragment.js index c495d1e63..3102b171b 100644 --- a/node_modules/caniuse-lite/data/features/svg-fragment.js +++ b/node_modules/caniuse-lite/data/features/svg-fragment.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","260":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB","132":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D F A B xC VC yC zC 1C WC","132":"E 0C"},F:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"1 2 3 G N O P VB","4":"B C AD BD CD JC pC DD","16":"F 9C","132":"4 5 6 7 8 9 WB XB YB ZB aB bB cB dB"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD JD KD LD MD ND","132":"E ID"},H:{"1":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D","132":"A"},K:{"1":"H KC","4":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","132":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"SVG fragment identifiers",D:true}; +module.exports={A:{A:{"2":"K E F bC","260":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB","132":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E G A B gC KC hC iC kC LC","132":"F jC"},F:{"1":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"H N O P HB v w x","4":"B C sC tC uC 7B ZC vC","16":"G rC","132":"0 y z IB JB KB LB MB NB OB PB QB RB SB"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC 1C 2C 3C 4C 5C","132":"F 0C"},H:{"1":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E","132":"A"},K:{"1":"I 8B","4":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"SVG fragment identifiers",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-html.js b/node_modules/caniuse-lite/data/features/svg-html.js index eecd0d531..4dcbdfd66 100644 --- a/node_modules/caniuse-lite/data/features/svg-html.js +++ b/node_modules/caniuse-lite/data/features/svg-html.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","388":"F A B"},B:{"4":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC","4":"PC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"xC VC","4":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"4":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"4":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC","4":"I gD hD"},J:{"1":"A","2":"D"},K:{"4":"A B C H JC pC KC"},L:{"4":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"4":"tD"},R:{"4":"uD"},S:{"1":"vD wD"}},B:2,C:"SVG effects for HTML",D:true}; +module.exports={A:{A:{"2":"K E F bC","388":"G A B"},B:{"4":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC","4":"DC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"gC KC","4":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"4":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"4":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC","4":"D ND OD"},J:{"1":"A","2":"E"},K:{"4":"A B C I 7B ZC 8B"},L:{"4":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"4":"aD"},R:{"4":"bD"},S:{"1":"cD dD"}},B:2,C:"SVG effects for HTML",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-html5.js b/node_modules/caniuse-lite/data/features/svg-html5.js index 2b73c00b9..10872fbb2 100644 --- a/node_modules/caniuse-lite/data/features/svg-html5.js +++ b/node_modules/caniuse-lite/data/features/svg-html5.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E","129":"F A B"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","8":"J UB K"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"J UB xC VC","129":"K D E yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"B CD JC pC","8":"F 9C AD BD"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","8":"VC ED qC","129":"E FD GD HD ID"},H:{"1":"bD"},I:{"1":"I gD hD","2":"cD dD eD","129":"PC J fD qC"},J:{"1":"A","129":"D"},K:{"1":"C H KC","8":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"129":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Inline SVG in HTML5",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F","129":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M H N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","8":"J GB K"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"J GB gC KC","129":"K E F hC iC jC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"B uC 7B ZC","8":"G rC sC tC"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","8":"KC wC aC","129":"F xC yC zC 0C"},H:{"1":"ID"},I:{"1":"D ND OD","2":"JD KD LD","129":"DC J MD aC"},J:{"1":"A","129":"E"},K:{"1":"C I 8B","8":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"129":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Inline SVG in HTML5",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-img.js b/node_modules/caniuse-lite/data/features/svg-img.js index f8c2d1586..6798313ac 100644 --- a/node_modules/caniuse-lite/data/features/svg-img.js +++ b/node_modules/caniuse-lite/data/features/svg-img.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC","4":"VC","132":"J UB K D E yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"E VC ED qC FD GD HD ID"},H:{"1":"bD"},I:{"1":"I gD hD","2":"cD dD eD","132":"PC J fD qC"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"SVG in HTML img element",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC","4":"KC","132":"J GB K E F hC iC jC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"F KC wC aC xC yC zC 0C"},H:{"1":"ID"},I:{"1":"D ND OD","2":"JD KD LD","132":"DC J MD aC"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"SVG in HTML img element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg-smil.js b/node_modules/caniuse-lite/data/features/svg-smil.js index a80574bff..459a861d1 100644 --- a/node_modules/caniuse-lite/data/features/svg-smil.js +++ b/node_modules/caniuse-lite/data/features/svg-smil.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"J"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"xC VC","132":"J UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"VC ED qC FD"},H:{"2":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"SVG SMIL animation",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"J"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"gC KC","132":"J GB hC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"KC wC aC xC"},H:{"2":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"SVG SMIL animation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/svg.js b/node_modules/caniuse-lite/data/features/svg.js index b08d92d4f..eb109d85f 100644 --- a/node_modules/caniuse-lite/data/features/svg.js +++ b/node_modules/caniuse-lite/data/features/svg.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E","772":"F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","513":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","4":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"I gD hD","2":"cD dD eD","132":"PC J fD qC"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"257":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"SVG (basic support)",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F","772":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","513":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","4":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"gC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"D ND OD","2":"JD KD LD","132":"DC J MD aC"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"257":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"SVG (basic support)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/sxg.js b/node_modules/caniuse-lite/data/features/sxg.js index 8bb526a3d..eb9078d22 100644 --- a/node_modules/caniuse-lite/data/features/sxg.js +++ b/node_modules/caniuse-lite/data/features/sxg.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B","132":"AC BC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:6,C:"Signed HTTP Exchanges (SXG)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB","132":"zB 0B"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:6,C:"Signed HTTP Exchanges (SXG)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/tabindex-attr.js b/node_modules/caniuse-lite/data/features/tabindex-attr.js index ea69ff71d..99ed8ece2 100644 --- a/node_modules/caniuse-lite/data/features/tabindex-attr.js +++ b/node_modules/caniuse-lite/data/features/tabindex-attr.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"D E F A B","16":"K rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"16":"sC PC vC wC","129":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"16":"J UB xC VC","257":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"769":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"16":"bD"},I:{"16":"PC J I cD dD eD fD qC gD hD"},J:{"16":"D A"},K:{"1":"H","16":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"16":"A B"},O:{"1":"LC"},P:{"16":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"129":"vD wD"}},B:1,C:"tabindex global attribute",D:true}; +module.exports={A:{A:{"1":"E F G A B","16":"K bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"16":"cC DC eC fC","129":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"16":"J GB gC KC","257":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"769":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"16":"ID"},I:{"16":"DC J D JD KD LD MD aC ND OD"},J:{"16":"E A"},K:{"1":"I","16":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"16":"A B"},O:{"1":"9B"},P:{"16":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"129":"cD dD"}},B:1,C:"tabindex global attribute",D:true}; diff --git a/node_modules/caniuse-lite/data/features/template-literals.js b/node_modules/caniuse-lite/data/features/template-literals.js index 34bb8e9ec..092a36723 100644 --- a/node_modules/caniuse-lite/data/features/template-literals.js +++ b/node_modules/caniuse-lite/data/features/template-literals.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","16":"C"},C:{"1":"0 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB vC wC"},D:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},E:{"1":"A B L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C","129":"C"},F:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"JD KD LD MD ND OD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID","129":"PD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ES6 Template Literals (Template Strings)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","16":"C"},C:{"1":"1 2 3 4 5 6 7 8 9 QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},E:{"1":"A B L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC","129":"C"},F:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB rC sC tC uC 7B ZC vC 8B"},G:{"1":"1C 2C 3C 4C 5C 6C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C","129":"7C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ES6 Template Literals (Template Strings)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/template.js b/node_modules/caniuse-lite/data/features/template.js index ec4fa82a4..95d14f6fe 100644 --- a/node_modules/caniuse-lite/data/features/template.js +++ b/node_modules/caniuse-lite/data/features/template.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C","388":"L M"},C:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB","132":"7 8 9 WB XB YB ZB aB bB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D xC VC yC","388":"E 0C","514":"zC"},F:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","132":"1 2 G N O P VB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD","388":"E ID"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"HTML templates",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C","388":"L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z","132":"IB JB KB LB MB NB OB PB QB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E gC KC hC","388":"F jC","514":"iC"},F:{"1":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","132":"H N O P HB v w"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC","388":"F 0C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"HTML templates",D:true}; diff --git a/node_modules/caniuse-lite/data/features/temporal.js b/node_modules/caniuse-lite/data/features/temporal.js index 267ec61eb..0bb46d64d 100644 --- a/node_modules/caniuse-lite/data/features/temporal.js +++ b/node_modules/caniuse-lite/data/features/temporal.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB vC wC","194":"RB SB TB I"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"Temporal",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"Temporal",D:true}; diff --git a/node_modules/caniuse-lite/data/features/testfeat.js b/node_modules/caniuse-lite/data/features/testfeat.js index d63a30748..3812aada1 100644 --- a/node_modules/caniuse-lite/data/features/testfeat.js +++ b/node_modules/caniuse-lite/data/features/testfeat.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E A B rC","16":"F"},B:{"2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","16":"J UB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"B C"},E:{"2":"J K xC VC yC","16":"UB D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD pC DD KC","16":"JC"},G:{"2":"VC ED qC FD GD","16":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD fD qC gD hD","16":"eD"},J:{"2":"A","16":"D"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Test feature - updated",D:false}; +module.exports={A:{A:{"2":"K E F A B bC","16":"G"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","16":"J GB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"B C"},E:{"2":"J K gC KC hC","16":"GB E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC ZC vC 8B","16":"7B"},G:{"2":"KC wC aC xC yC","16":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD MD aC ND OD","16":"LD"},J:{"2":"A","16":"E"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Test feature - updated",D:false}; diff --git a/node_modules/caniuse-lite/data/features/text-decoration.js b/node_modules/caniuse-lite/data/features/text-decoration.js index b2d4f1baf..566af97a4 100644 --- a/node_modules/caniuse-lite/data/features/text-decoration.js +++ b/node_modules/caniuse-lite/data/features/text-decoration.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","2052":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"sC PC J UB vC wC","1028":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","1060":"1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},D:{"2":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB","226":"7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","2052":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D xC VC yC zC","772":"L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","804":"E F A B C 1C WC JC","1316":"0C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB 9C AD BD CD JC pC DD KC","226":"cB dB eB fB gB hB iB jB kB","2052":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"VC ED qC FD GD HD","292":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","2052":"H"},L:{"2052":"I"},M:{"1028":"IC"},N:{"2":"A B"},O:{"2052":"LC"},P:{"2":"J iD jD","2052":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2052":"tD"},R:{"2052":"uD"},S:{"1028":"vD wD"}},B:4,C:"text-decoration styling",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","2052":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB eC fC","1028":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","1060":"0 K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z","226":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB","2052":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E gC KC hC iC","772":"L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","804":"F G A B C kC LC 7B","1316":"jC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB rC sC tC uC 7B ZC vC 8B","226":"RB SB TB UB VB WB XB YB ZB","2052":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"KC wC aC xC yC zC","292":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","2052":"I"},L:{"2052":"D"},M:{"1028":"D"},N:{"2":"A B"},O:{"2052":"9B"},P:{"2":"J PD QD","2052":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2052":"aD"},R:{"2052":"bD"},S:{"1028":"cD dD"}},B:4,C:"text-decoration styling",D:true}; diff --git a/node_modules/caniuse-lite/data/features/text-emphasis.js b/node_modules/caniuse-lite/data/features/text-emphasis.js index f465c3f3a..3d9f97cb6 100644 --- a/node_modules/caniuse-lite/data/features/text-emphasis.js +++ b/node_modules/caniuse-lite/data/features/text-emphasis.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","164":"Q H R S T U V W X Y Z a b c d e f g h"},C:{"1":"0 nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB vC wC","322":"mB"},D:{"1":"0 i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB","164":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC","164":"D zC"},F:{"1":"0 V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","164":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC","164":"gD hD"},J:{"2":"D","164":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 OC sD","164":"J iD jD kD lD mD WC nD oD pD qD rD MC NC"},Q:{"164":"tD"},R:{"164":"uD"},S:{"1":"vD wD"}},B:4,C:"text-emphasis styling",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","164":"Q I R S T U V W X Y Z a b c d e f g h"},C:{"1":"1 2 3 4 5 6 7 8 9 cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB eC fC","322":"bB"},D:{"1":"1 2 3 4 5 6 7 8 9 i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z","164":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC","164":"E iC"},F:{"1":"V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","164":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC","164":"ND OD"},J:{"2":"E","164":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z CC ZD","164":"J PD QD RD SD TD LC UD VD WD XD YD AC BC"},Q:{"164":"aD"},R:{"164":"bD"},S:{"1":"cD dD"}},B:4,C:"text-emphasis styling",D:true}; diff --git a/node_modules/caniuse-lite/data/features/text-overflow.js b/node_modules/caniuse-lite/data/features/text-overflow.js index 5e53fc637..b5961cd57 100644 --- a/node_modules/caniuse-lite/data/features/text-overflow.js +++ b/node_modules/caniuse-lite/data/features/text-overflow.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","8":"sC PC J UB K vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","33":"F 9C AD BD CD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"H KC","33":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"CSS3 Text-overflow",D:true}; +module.exports={A:{A:{"1":"K E F G A B","2":"bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","8":"cC DC J GB K eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","33":"G rC sC tC uC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"I 8B","33":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"CSS3 Text-overflow",D:true}; diff --git a/node_modules/caniuse-lite/data/features/text-size-adjust.js b/node_modules/caniuse-lite/data/features/text-size-adjust.js index e6bcd4672..e7a0a7d9d 100644 --- a/node_modules/caniuse-lite/data/features/text-size-adjust.js +++ b/node_modules/caniuse-lite/data/features/text-size-adjust.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","258":"7"},E:{"2":"J UB K D E F A B C L M G xC VC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","258":"yC"},F:{"1":"0 kB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB lB 9C AD BD CD JC pC DD KC"},G:{"2":"VC ED qC","33":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"33":"IC"},N:{"161":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS text-size-adjust",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","258":"IB"},E:{"2":"J GB K E F G A B C L M H gC KC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","258":"hC"},F:{"1":"ZB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB aB rC sC tC uC 7B ZC vC 8B"},G:{"2":"KC wC aC","33":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"33":"D"},N:{"161":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS text-size-adjust",D:true}; diff --git a/node_modules/caniuse-lite/data/features/text-stroke.js b/node_modules/caniuse-lite/data/features/text-stroke.js index e94a6e946..5044952ca 100644 --- a/node_modules/caniuse-lite/data/features/text-stroke.js +++ b/node_modules/caniuse-lite/data/features/text-stroke.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M","33":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","161":"G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB vC wC","161":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","450":"pB"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"33":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","33":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"33":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","36":"VC"},H:{"2":"bD"},I:{"2":"PC","33":"J I cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"2":"A B C JC pC KC","33":"H"},L:{"33":"I"},M:{"161":"IC"},N:{"2":"A B"},O:{"33":"LC"},P:{"33":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"33":"tD"},R:{"33":"uD"},S:{"161":"vD wD"}},B:7,C:"CSS text-stroke and text-fill",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M","33":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","161":"H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eC fC","161":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","450":"eB"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"33":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"33":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","36":"KC"},H:{"2":"ID"},I:{"2":"DC","33":"J D JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"2":"A B C 7B ZC 8B","33":"I"},L:{"33":"D"},M:{"161":"D"},N:{"2":"A B"},O:{"33":"9B"},P:{"33":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"33":"aD"},R:{"33":"bD"},S:{"161":"cD dD"}},B:7,C:"CSS text-stroke and text-fill",D:true}; diff --git a/node_modules/caniuse-lite/data/features/textcontent.js b/node_modules/caniuse-lite/data/features/textcontent.js index dd34531db..d68b4791a 100644 --- a/node_modules/caniuse-lite/data/features/textcontent.js +++ b/node_modules/caniuse-lite/data/features/textcontent.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Node.textContent",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Node.textContent",D:true}; diff --git a/node_modules/caniuse-lite/data/features/textencoder.js b/node_modules/caniuse-lite/data/features/textencoder.js index 9fd172dd4..1b500e844 100644 --- a/node_modules/caniuse-lite/data/features/textencoder.js +++ b/node_modules/caniuse-lite/data/features/textencoder.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P vC wC","132":"VB"},D:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"TextEncoder & TextDecoder",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P eC fC","132":"HB"},D:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y z rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"TextEncoder & TextDecoder",D:true}; diff --git a/node_modules/caniuse-lite/data/features/tls1-1.js b/node_modules/caniuse-lite/data/features/tls1-1.js index d266a24b9..c3f63eb5e 100644 --- a/node_modules/caniuse-lite/data/features/tls1-1.js +++ b/node_modules/caniuse-lite/data/features/tls1-1.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D rC","66":"E F A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B","2":"1 2 3 sC PC J UB K D E F A B C L M G N O P VB vC wC","66":"4","129":"7B 8B 9B AC BC CC DC EC FC GC","388":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T","2":"1 2 J UB K D E F A B C L M G N O P VB","1540":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"D E F A B C L 0C 1C WC JC KC","2":"J UB K xC VC yC zC","513":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC KC","2":"F B C 9C AD BD CD JC pC DD","1540":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"129":"IC"},N:{"1":"B","66":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"TLS 1.1",D:true}; +module.exports={A:{A:{"1":"B","2":"K E bC","66":"F G A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB","2":"cC DC J GB K E F G A B C L M H N O P HB v w x eC fC","66":"y","129":"wB xB yB zB 0B 1B 2B 3B 4B 5B","388":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T","2":"J GB K E F G A B C L M H N O P HB v w","1540":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"E F G A B C L jC kC LC 7B 8B","2":"J GB K gC KC hC iC","513":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 8B","2":"G B C rC sC tC uC 7B ZC vC","1540":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"129":"D"},N:{"1":"B","66":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"TLS 1.1",D:true}; diff --git a/node_modules/caniuse-lite/data/features/tls1-2.js b/node_modules/caniuse-lite/data/features/tls1-2.js index 7fff7d111..3906bc27d 100644 --- a/node_modules/caniuse-lite/data/features/tls1-2.js +++ b/node_modules/caniuse-lite/data/features/tls1-2.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D rC","66":"E F A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 sC PC J UB K D E F A B C L M G N O P VB vC wC","66":"5 6 7"},D:{"1":"0 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F G 9C","66":"B C AD BD CD JC pC DD KC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"H KC","2":"A B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","66":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"TLS 1.2",D:true}; +module.exports={A:{A:{"1":"B","2":"K E bC","66":"F G A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y eC fC","66":"0 z IB"},D:{"1":"1 2 3 4 5 6 7 8 9 LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC"},F:{"1":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G H rC","66":"B C sC tC uC 7B ZC vC 8B"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"I 8B","2":"A B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","66":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"TLS 1.2",D:true}; diff --git a/node_modules/caniuse-lite/data/features/tls1-3.js b/node_modules/caniuse-lite/data/features/tls1-3.js index 2d9a4fabc..65be06d48 100644 --- a/node_modules/caniuse-lite/data/features/tls1-3.js +++ b/node_modules/caniuse-lite/data/features/tls1-3.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB vC wC","132":"0B RC 1B","450":"sB tB uB vB wB xB yB zB QC"},D:{"1":"0 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","706":"vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","1028":"L KC 2C"},F:{"1":"0 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC","706":"vB wB xB"},G:{"1":"QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:6,C:"TLS 1.3",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB eC fC","132":"pB FC qB","450":"hB iB jB kB lB mB nB oB EC"},D:{"1":"1 2 3 4 5 6 7 8 9 yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","706":"kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","1028":"L 8B lC"},F:{"1":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B","706":"kB lB mB"},G:{"1":"8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:6,C:"TLS 1.3",D:true}; diff --git a/node_modules/caniuse-lite/data/features/touch.js b/node_modules/caniuse-lite/data/features/touch.js index 97b04d529..049f39ad3 100644 --- a/node_modules/caniuse-lite/data/features/touch.js +++ b/node_modules/caniuse-lite/data/features/touch.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","8":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","578":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 P VB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","4":"J UB K D E F A B C L M G N O","194":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},D:{"1":"0 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 J UB K D E F A B C L M G N O P VB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A","260":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:2,C:"Touch events",D:true}; +module.exports={A:{A:{"2":"K E F G bC","8":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","578":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 P HB v w x y z iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","4":"J GB K E F G A B C L M H N O","194":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A","260":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:2,C:"Touch events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/transforms2d.js b/node_modules/caniuse-lite/data/features/transforms2d.js index c2c259360..b491127ed 100644 --- a/node_modules/caniuse-lite/data/features/transforms2d.js +++ b/node_modules/caniuse-lite/data/features/transforms2d.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E","129":"A B","161":"F"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","33":"J UB K D E F A B C L M G vC wC"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","33":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F 9C AD","33":"1 2 3 B C G N O P VB BD CD JC pC DD"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","33":"PC J cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 2D Transforms",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F","129":"A B","161":"G"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M H N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","33":"J GB K E F G A B C L M H eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","33":"J GB K E F gC KC hC iC jC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G rC sC","33":"B C H N O P HB v w x tC uC 7B ZC vC"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","33":"DC J JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 2D Transforms",D:true}; diff --git a/node_modules/caniuse-lite/data/features/transforms3d.js b/node_modules/caniuse-lite/data/features/transforms3d.js index 89f1feebe..4cce3525c 100644 --- a/node_modules/caniuse-lite/data/features/transforms3d.js +++ b/node_modules/caniuse-lite/data/features/transforms3d.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","132":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F vC wC","33":"A B C L M G"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B","33":"1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC","33":"J UB K D E yC zC 0C","257":"F A B C L M G 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 G N O P VB"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","33":"E VC ED qC FD GD HD ID","257":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"cD dD eD","33":"PC J fD qC gD hD"},J:{"33":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:5,C:"CSS3 3D Transforms",D:true}; +module.exports={A:{A:{"2":"K E F G bC","132":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G eC fC","33":"A B C L M H"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B","33":"0 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC","33":"J GB K E F hC iC jC","257":"G A B C L M H kC LC 7B 8B lC mC nC MC"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"H N O P HB v w x"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","33":"F KC wC aC xC yC zC 0C","257":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"JD KD LD","33":"DC J MD aC ND OD"},J:{"33":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:5,C:"CSS3 3D Transforms",D:true}; diff --git a/node_modules/caniuse-lite/data/features/trusted-types.js b/node_modules/caniuse-lite/data/features/trusted-types.js index 404b668de..59a3dbd59 100644 --- a/node_modules/caniuse-lite/data/features/trusted-types.js +++ b/node_modules/caniuse-lite/data/features/trusted-types.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R"},E:{"1":"oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC"},F:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 9C AD BD CD JC pC DD KC"},G:{"1":"oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Trusted Types for DOM manipulation",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Trusted Types for DOM manipulation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/ttf.js b/node_modules/caniuse-lite/data/features/ttf.js index c502c77f7..b406e74c0 100644 --- a/node_modules/caniuse-lite/data/features/ttf.js +++ b/node_modules/caniuse-lite/data/features/ttf.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AD BD CD JC pC DD KC","2":"F 9C"},G:{"1":"E qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED"},H:{"2":"bD"},I:{"1":"PC J I dD eD fD qC gD hD","2":"cD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"TTF/OTF - TrueType and OpenType font support",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u sC tC uC 7B ZC vC 8B","2":"G rC"},G:{"1":"F aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC"},H:{"2":"ID"},I:{"1":"DC J D KD LD MD aC ND OD","2":"JD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"TTF/OTF - TrueType and OpenType font support",D:true}; diff --git a/node_modules/caniuse-lite/data/features/typedarrays.js b/node_modules/caniuse-lite/data/features/typedarrays.js index c5c2bcdf7..8bb3d154f 100644 --- a/node_modules/caniuse-lite/data/features/typedarrays.js +++ b/node_modules/caniuse-lite/data/features/typedarrays.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"B","2":"K D E F rC","132":"A"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","260":"yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","260":"qC"},H:{"1":"bD"},I:{"1":"J I fD qC gD hD","2":"PC cD dD eD"},J:{"1":"A","2":"D"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"132":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Typed Arrays",D:true}; +module.exports={A:{A:{"1":"B","2":"K E F G bC","132":"A"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","260":"hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC","260":"aC"},H:{"1":"ID"},I:{"1":"J D MD aC ND OD","2":"DC JD KD LD"},J:{"1":"A","2":"E"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Typed Arrays",D:true}; diff --git a/node_modules/caniuse-lite/data/features/u2f.js b/node_modules/caniuse-lite/data/features/u2f.js index 0b0daf789..245bab491 100644 --- a/node_modules/caniuse-lite/data/features/u2f.js +++ b/node_modules/caniuse-lite/data/features/u2f.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","513":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o"},C:{"1":"6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","322":"oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B v w"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","130":"fB gB hB","513":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g","578":"h i j k l m n o"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB iB 9C AD BD CD JC pC DD KC","513":"0 hB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"1":"wD","322":"vD"}},B:7,C:"FIDO U2F API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P p q r s t u AB BB CB DB EB FB D","513":"Q I R S T U V W X Y Z a b c d e f g h i j k l m n o"},C:{"1":"vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB AB BB CB DB EB FB D HC IC JC dC eC fC","322":"1 2 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB p q r s t u AB BB CB DB EB FB D HC IC JC","130":"UB VB WB","513":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g","578":"h i j k l m n o"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB XB rC sC tC uC 7B ZC vC 8B","513":"WB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"1":"dD","322":"cD"}},B:7,C:"FIDO U2F API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/unhandledrejection.js b/node_modules/caniuse-lite/data/features/unhandledrejection.js index 5a9527533..bed95c772 100644 --- a/node_modules/caniuse-lite/data/features/unhandledrejection.js +++ b/node_modules/caniuse-lite/data/features/unhandledrejection.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B vC wC"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC"},G:{"1":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","16":"ND"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:1,C:"unhandledrejection/rejectionhandled events",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B"},G:{"1":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","16":"5C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:1,C:"unhandledrejection/rejectionhandled events",D:true}; diff --git a/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js b/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js index 2c1f6b2f1..52977a4a7 100644 --- a/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +++ b/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB vC wC"},D:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Upgrade Insecure Requests",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Upgrade Insecure Requests",D:true}; diff --git a/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js b/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js index e7b833369..315ec2dfa 100644 --- a/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +++ b/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","66":"Q H R"},C:{"1":"NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB vC wC"},D:{"1":"0 R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC","66":"DC EC FC GC HC Q H"},E:{"1":"ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC"},F:{"1":"0 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 9C AD BD CD JC pC DD KC","66":"5B 6B"},G:{"1":"ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"URL Scroll-To-Text Fragment",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","66":"Q I R"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B","66":"2B 3B 4B 5B 6B Q I"},E:{"1":"OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC"},F:{"1":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB rC sC tC uC 7B ZC vC 8B","66":"uB vB"},G:{"1":"OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"URL Scroll-To-Text Fragment",D:true}; diff --git a/node_modules/caniuse-lite/data/features/url.js b/node_modules/caniuse-lite/data/features/url.js index 764a5700a..e89526d78 100644 --- a/node_modules/caniuse-lite/data/features/url.js +++ b/node_modules/caniuse-lite/data/features/url.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 sC PC J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 J UB K D E F A B C L M G N O P VB","130":"4 5 6 7 8 9 WB XB YB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC zC","130":"D"},F:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","130":"G N O P"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD","130":"HD"},H:{"2":"bD"},I:{"1":"I hD","2":"PC J cD dD eD fD qC","130":"gD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"URL API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x","130":"0 y z IB JB KB LB MB NB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC iC","130":"E"},F:{"1":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","130":"H N O P"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC","130":"zC"},H:{"2":"ID"},I:{"1":"D OD","2":"DC J JD KD LD MD aC","130":"ND"},J:{"2":"E","130":"A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"URL API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/urlsearchparams.js b/node_modules/caniuse-lite/data/features/urlsearchparams.js index 3e02fa06f..b920afd30 100644 --- a/node_modules/caniuse-lite/data/features/urlsearchparams.js +++ b/node_modules/caniuse-lite/data/features/urlsearchparams.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","132":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},D:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C"},F:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC"},G:{"1":"MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"URLSearchParams",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","132":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},D:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB"},E:{"1":"B C L M H LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC"},F:{"1":"SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B"},G:{"1":"4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"URLSearchParams",D:true}; diff --git a/node_modules/caniuse-lite/data/features/use-strict.js b/node_modules/caniuse-lite/data/features/use-strict.js index 0c22a91af..577f74a92 100644 --- a/node_modules/caniuse-lite/data/features/use-strict.js +++ b/node_modules/caniuse-lite/data/features/use-strict.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","132":"UB yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"1":"bD"},I:{"1":"PC J I fD qC gD hD","2":"cD dD eD"},J:{"1":"D A"},K:{"1":"C H pC KC","2":"A B JC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"ECMAScript 5 Strict Mode",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","132":"GB hC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"1":"ID"},I:{"1":"DC J D MD aC ND OD","2":"JD KD LD"},J:{"1":"E A"},K:{"1":"C I ZC 8B","2":"A B 7B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"ECMAScript 5 Strict Mode",D:true}; diff --git a/node_modules/caniuse-lite/data/features/user-select-none.js b/node_modules/caniuse-lite/data/features/user-select-none.js index 9a6cce185..3b6784981 100644 --- a/node_modules/caniuse-lite/data/features/user-select-none.js +++ b/node_modules/caniuse-lite/data/features/user-select-none.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","33":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","33":"C L M G N O P"},C:{"1":"0 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","33":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B vC wC"},D:{"1":"0 vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","33":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"33":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","33":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB"},G:{"33":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","33":"PC J cD dD eD fD qC gD hD"},J:{"33":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"33":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","33":"J iD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","33":"vD"}},B:5,C:"CSS user-select: none",D:true}; +module.exports={A:{A:{"2":"K E F G bC","33":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","33":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","33":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","33":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB"},E:{"33":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","33":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},G:{"33":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","33":"DC J JD KD LD MD aC ND OD"},J:{"33":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"33":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","33":"J PD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","33":"cD"}},B:5,C:"CSS user-select: none",D:true}; diff --git a/node_modules/caniuse-lite/data/features/user-timing.js b/node_modules/caniuse-lite/data/features/user-timing.js index a03e3f0da..e2cd34770 100644 --- a/node_modules/caniuse-lite/data/features/user-timing.js +++ b/node_modules/caniuse-lite/data/features/user-timing.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB vC wC"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 J UB K D E F A B C L M G N O P VB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"User Timing API",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"1 2 3 4 5 6 7 8 9 UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x y z"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"User Timing API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/variable-fonts.js b/node_modules/caniuse-lite/data/features/variable-fonts.js index ce2f9c9b2..779c7b842 100644 --- a/node_modules/caniuse-lite/data/features/variable-fonts.js +++ b/node_modules/caniuse-lite/data/features/variable-fonts.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB vC wC","4609":"1B 2B 3B 4B 5B 6B 7B 8B 9B","4674":"RC","5698":"0B","7490":"uB vB wB xB yB","7746":"zB QC","8705":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","4097":"5B","4290":"QC 0B RC","6148":"1B 2B 3B 4B"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","4609":"B C JC KC","8193":"L M 2C 3C"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 9C AD BD CD JC pC DD KC","4097":"uB","6148":"qB rB sB tB"},G:{"1":"RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD","4097":"ND OD PD QD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"4097":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"J iD jD kD","4097":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:5,C:"Variable fonts",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB eC fC","4609":"qB rB sB tB uB vB wB xB yB","4674":"FC","5698":"pB","7490":"jB kB lB mB nB","7746":"oB EC","8705":"1 2 3 4 5 6 7 8 9 zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","4097":"uB","4290":"EC pB FC","6148":"qB rB sB tB"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","4609":"B C 7B 8B","8193":"L M lC mC"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB rC sC tC uC 7B ZC vC 8B","4097":"jB","6148":"fB gB hB iB"},G:{"1":"9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","4097":"5C 6C 7C 8C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"4097":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"J PD QD RD","4097":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:5,C:"Variable fonts",D:true}; diff --git a/node_modules/caniuse-lite/data/features/vector-effect.js b/node_modules/caniuse-lite/data/features/vector-effect.js index f6c8cccee..01bdb1299 100644 --- a/node_modules/caniuse-lite/data/features/vector-effect.js +++ b/node_modules/caniuse-lite/data/features/vector-effect.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K D E F A B C L M"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","2":"F B 9C AD BD CD JC pC"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"1":"bD"},I:{"1":"I gD hD","16":"PC J cD dD eD fD qC"},J:{"16":"D A"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"SVG vector-effect: non-scaling-stroke",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K E F G A B C L M"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","2":"G B rC sC tC uC 7B ZC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"1":"ID"},I:{"1":"D ND OD","16":"DC J JD KD LD MD aC"},J:{"16":"E A"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"SVG vector-effect: non-scaling-stroke",D:true}; diff --git a/node_modules/caniuse-lite/data/features/vibration.js b/node_modules/caniuse-lite/data/features/vibration.js index cf3087b7b..6a69d4b5e 100644 --- a/node_modules/caniuse-lite/data/features/vibration.js +++ b/node_modules/caniuse-lite/data/features/vibration.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A vC wC","33":"B C L M G"},D:{"1":"0 XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C G N 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"Vibration API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A eC fC","33":"B C L M H"},D:{"1":"1 2 3 4 5 6 7 8 9 MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"Vibration API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/video.js b/node_modules/caniuse-lite/data/features/video.js index 90bdfce8a..1a6297d77 100644 --- a/node_modules/caniuse-lite/data/features/video.js +++ b/node_modules/caniuse-lite/data/features/video.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","260":"J UB K D E F A B C L M G N O P VB vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A xC VC yC zC 0C 1C WC","513":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1025":"E VC ED qC FD GD HD ID JD KD LD MD","1537":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","132":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Video element",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","260":"J GB K E F G A B C L M H N O P HB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A gC KC hC iC jC kC LC","513":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","513":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","132":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Video element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/videotracks.js b/node_modules/caniuse-lite/data/features/videotracks.js index 1803220bf..77d5ea5c2 100644 --- a/node_modules/caniuse-lite/data/features/videotracks.js +++ b/node_modules/caniuse-lite/data/features/videotracks.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"C L M G N O P","322":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","194":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB","322":"0 mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K xC VC yC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB 9C AD BD CD JC pC DD KC","322":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","322":"H"},L:{"322":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"322":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"322":"tD"},R:{"322":"uD"},S:{"194":"vD wD"}},B:1,C:"Video Tracks",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"C L M H N O P","322":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","194":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB","322":"1 2 3 4 5 6 7 8 9 bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K gC KC hC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB rC sC tC uC 7B ZC vC 8B","322":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","322":"I"},L:{"322":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"322":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"322":"aD"},R:{"322":"bD"},S:{"194":"cD dD"}},B:1,C:"Video Tracks",D:true}; diff --git a/node_modules/caniuse-lite/data/features/view-transitions.js b/node_modules/caniuse-lite/data/features/view-transitions.js index fadb483e2..6af0a3f52 100644 --- a/node_modules/caniuse-lite/data/features/view-transitions.js +++ b/node_modules/caniuse-lite/data/features/view-transitions.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C"},F:{"1":"0 g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f 9C AD BD CD JC pC DD KC"},G:{"1":"OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"4 5 6 7 8 9","2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"View Transitions API (single-document)",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC"},F:{"1":"g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f rC sC tC uC 7B ZC vC 8B"},G:{"1":"CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 y z","2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"View Transitions API (single-document)",D:true}; diff --git a/node_modules/caniuse-lite/data/features/viewport-unit-variants.js b/node_modules/caniuse-lite/data/features/viewport-unit-variants.js index a7623356a..83f183f3c 100644 --- a/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +++ b/node_modules/caniuse-lite/data/features/viewport-unit-variants.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","194":"o p q"},C:{"1":"0 k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j vC wC"},D:{"1":"0 r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i","194":"j k l m n o p q"},E:{"1":"YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC"},F:{"1":"0 d e f g h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 9C AD BD CD JC pC DD KC","194":"a b c"},G:{"1":"YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"2 3 4 5 6 7 8 9","2":"1 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:5,C:"Small, Large, and Dynamic viewport units",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n","194":"o p q"},C:{"1":"1 2 3 4 5 6 7 8 9 k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i","194":"j k l m n o p q"},E:{"1":"NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC"},F:{"1":"d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z rC sC tC uC 7B ZC vC 8B","194":"a b c"},G:{"1":"NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 w x y z","2":"J v PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:5,C:"Small, Large, and Dynamic viewport units",D:true}; diff --git a/node_modules/caniuse-lite/data/features/viewport-units.js b/node_modules/caniuse-lite/data/features/viewport-units.js index e029fde02..e7534901a 100644 --- a/node_modules/caniuse-lite/data/features/viewport-units.js +++ b/node_modules/caniuse-lite/data/features/viewport-units.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","132":"F","260":"A B"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","260":"C L M G"},C:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M G N O P vC wC"},D:{"1":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D E F A B C L M G N O P VB","260":"1 2 3 4 5 6"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC","260":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD","516":"HD","772":"GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"260":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"Viewport units: vw, vh, vmin, vmax",D:true}; +module.exports={A:{A:{"2":"K E F bC","132":"G","260":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","260":"C L M H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB","260":"0 v w x y z"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC","260":"K"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC","516":"zC","772":"yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"260":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"Viewport units: vw, vh, vmin, vmax",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wai-aria.js b/node_modules/caniuse-lite/data/features/wai-aria.js index e73333979..cd9c16115 100644 --- a/node_modules/caniuse-lite/data/features/wai-aria.js +++ b/node_modules/caniuse-lite/data/features/wai-aria.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","4":"E F A B"},B:{"4":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"4":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"xC VC","4":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F","4":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"4":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"4":"bD"},I:{"2":"PC J cD dD eD fD qC","4":"I gD hD"},J:{"2":"D A"},K:{"4":"A B C H JC pC KC"},L:{"4":"I"},M:{"4":"IC"},N:{"4":"A B"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"4":"tD"},R:{"4":"uD"},S:{"4":"vD wD"}},B:2,C:"WAI-ARIA Accessibility features",D:true}; +module.exports={A:{A:{"2":"K E bC","4":"F G A B"},B:{"4":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"4":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"gC KC","4":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G","4":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"4":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"4":"ID"},I:{"2":"DC J JD KD LD MD aC","4":"D ND OD"},J:{"2":"E A"},K:{"4":"A B C I 7B ZC 8B"},L:{"4":"D"},M:{"4":"D"},N:{"4":"A B"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"4":"aD"},R:{"4":"bD"},S:{"4":"cD dD"}},B:2,C:"WAI-ARIA Accessibility features",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wake-lock.js b/node_modules/caniuse-lite/data/features/wake-lock.js index d204e34c6..a4b2ca593 100644 --- a/node_modules/caniuse-lite/data/features/wake-lock.js +++ b/node_modules/caniuse-lite/data/features/wake-lock.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","194":"Q H R S T U V W X Y"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB vC wC","322":"GB HB"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B","194":"AC BC CC DC EC FC GC HC Q H R S T"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB 9C AD BD CD JC pC DD KC","194":"zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:4,C:"Screen Wake Lock API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","194":"Q I R S T U V W X Y"},C:{"1":"FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB eC fC","322":"DB EB"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB","194":"zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB rC sC tC uC 7B ZC vC 8B","194":"oB pB qB rB sB tB uB vB wB xB yB zB 0B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:4,C:"Screen Wake Lock API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-bigint.js b/node_modules/caniuse-lite/data/features/wasm-bigint.js index 5d3a0cc74..88a2ec7b0 100644 --- a/node_modules/caniuse-lite/data/features/wasm-bigint.js +++ b/node_modules/caniuse-lite/data/features/wasm-bigint.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T"},C:{"1":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC vC wC"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C"},F:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly BigInt to i64 conversion in JS API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T"},C:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC"},F:{"1":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly BigInt to i64 conversion in JS API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js b/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js index 44b2b6502..ff6a5e020 100644 --- a/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +++ b/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC vC wC"},D:{"1":"0 EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Bulk Memory Operations",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Bulk Memory Operations",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-extended-const.js b/node_modules/caniuse-lite/data/features/wasm-extended-const.js index 8d64562d9..8b3e1d98e 100644 --- a/node_modules/caniuse-lite/data/features/wasm-extended-const.js +++ b/node_modules/caniuse-lite/data/features/wasm-extended-const.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},C:{"1":"0 v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC wC"},D:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},E:{"1":"hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC"},F:{"1":"0 j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i 9C AD BD CD JC pC DD KC"},G:{"1":"hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"4 5 6 7 8 9","2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Extended Constant Expressions",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D","2":"1 2 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC","2":"0 1 2 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"1":"WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC"},F:{"1":"j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i rC sC tC uC 7B ZC vC 8B"},G:{"1":"WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 y z","2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Extended Constant Expressions",D:false}; diff --git a/node_modules/caniuse-lite/data/features/wasm-gc.js b/node_modules/caniuse-lite/data/features/wasm-gc.js index 3cf37a49f..0b41282a4 100644 --- a/node_modules/caniuse-lite/data/features/wasm-gc.js +++ b/node_modules/caniuse-lite/data/features/wasm-gc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB"},C:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB vC wC"},D:{"1":"BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Garbage Collection",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"8 9 AB BB CB DB EB FB D","2":"1 2 3 4 5 6 7 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"9 AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"8 9 AB BB CB DB EB FB D HC IC JC","2":"0 1 2 3 4 5 6 7 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Garbage Collection",D:false}; diff --git a/node_modules/caniuse-lite/data/features/wasm-multi-memory.js b/node_modules/caniuse-lite/data/features/wasm-multi-memory.js index 2c0135ad1..c9bfef798 100644 --- a/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +++ b/node_modules/caniuse-lite/data/features/wasm-multi-memory.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB"},C:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB vC wC"},D:{"1":"BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Multi-Memory",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"9 AB BB CB DB EB FB D","2":"1 2 3 4 5 6 7 8 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB eC fC"},D:{"1":"8 9 AB BB CB DB EB FB D HC IC JC","2":"0 1 2 3 4 5 6 7 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Multi-Memory",D:false}; diff --git a/node_modules/caniuse-lite/data/features/wasm-multi-value.js b/node_modules/caniuse-lite/data/features/wasm-multi-value.js index 805c72b2a..29655c7f7 100644 --- a/node_modules/caniuse-lite/data/features/wasm-multi-value.js +++ b/node_modules/caniuse-lite/data/features/wasm-multi-value.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T"},C:{"1":"0 HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC vC wC"},D:{"1":"0 U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T"},E:{"1":"M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC"},F:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B 9C AD BD CD JC pC DD KC"},G:{"1":"SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Multi-Value",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T"},C:{"1":"1 2 3 4 5 6 7 8 9 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T"},E:{"1":"M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B"},F:{"1":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB rC sC tC uC 7B ZC vC 8B"},G:{"1":"AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Multi-Value",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js b/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js index 0a4c0fda7..7c5f660c2 100644 --- a/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +++ b/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B vC wC"},D:{"1":"0 DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B xC VC yC zC 0C 1C WC JC"},F:{"1":"0 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 9C AD BD CD JC pC DD KC"},G:{"1":"PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Import/Export of Mutable Globals",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B gC KC hC iC jC kC LC 7B"},F:{"1":"pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB rC sC tC uC 7B ZC vC 8B"},G:{"1":"7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Import/Export of Mutable Globals",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js b/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js index 6caa5588d..366b84c58 100644 --- a/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +++ b/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B vC wC"},D:{"1":"0 EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Non-trapping float-to-int Conversion",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Non-trapping float-to-int Conversion",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-reference-types.js b/node_modules/caniuse-lite/data/features/wasm-reference-types.js index bdd87437f..0b51e90ae 100644 --- a/node_modules/caniuse-lite/data/features/wasm-reference-types.js +++ b/node_modules/caniuse-lite/data/features/wasm-reference-types.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e"},C:{"1":"0 Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC vC wC"},D:{"1":"0 f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C 3C"},F:{"1":"0 SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Reference Types",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e"},C:{"1":"1 2 3 4 5 6 7 8 9 Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC mC"},F:{"1":"GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Reference Types",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js b/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js index 960ef7e50..f565ba9f3 100644 --- a/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +++ b/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g vC wC","194":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"4 5 6 7 8 9","2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Relaxed SIMD",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D","2":"1 2 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g eC fC","194":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC","2":"0 1 2 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 y z","2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Relaxed SIMD",D:false}; diff --git a/node_modules/caniuse-lite/data/features/wasm-signext.js b/node_modules/caniuse-lite/data/features/wasm-signext.js index 2a8851eb5..ad88dd354 100644 --- a/node_modules/caniuse-lite/data/features/wasm-signext.js +++ b/node_modules/caniuse-lite/data/features/wasm-signext.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC vC wC"},D:{"1":"0 DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Sign Extension Operators",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Sign Extension Operators",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-simd.js b/node_modules/caniuse-lite/data/features/wasm-simd.js index 908b10e02..a25aaf841 100644 --- a/node_modules/caniuse-lite/data/features/wasm-simd.js +++ b/node_modules/caniuse-lite/data/features/wasm-simd.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z"},C:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X vC wC"},D:{"1":"0 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z"},E:{"1":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC"},F:{"1":"0 GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC 9C AD BD CD JC pC DD KC"},G:{"1":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 MC NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly SIMD",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z"},C:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z"},E:{"1":"RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC"},F:{"1":"5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B rC sC tC uC 7B ZC vC 8B"},G:{"1":"RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z AC BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly SIMD",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm-tail-calls.js b/node_modules/caniuse-lite/data/features/wasm-tail-calls.js index 80d778a77..92bd736e2 100644 --- a/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +++ b/node_modules/caniuse-lite/data/features/wasm-tail-calls.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB vC wC"},D:{"1":"0 v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 h i j k l m n o p q r s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"4 5 6 7 8 9","2":"1 2 3 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Tail Calls",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 y z","2":"J v w x PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Tail Calls",D:false}; diff --git a/node_modules/caniuse-lite/data/features/wasm-threads.js b/node_modules/caniuse-lite/data/features/wasm-threads.js index c4ada4b6f..4b7ae0b14 100644 --- a/node_modules/caniuse-lite/data/features/wasm-threads.js +++ b/node_modules/caniuse-lite/data/features/wasm-threads.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC vC wC"},D:{"1":"0 DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},E:{"1":"G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L M xC VC yC zC 0C 1C WC JC KC 2C"},F:{"1":"0 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 nD oD pD qD rD MC NC OC sD","2":"J iD jD kD lD mD WC"},Q:{"16":"tD"},R:{"16":"uD"},S:{"2":"vD","16":"wD"}},B:5,C:"WebAssembly Threads and Atomics",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L M gC KC hC iC jC kC LC 7B 8B lC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD SD TD LC"},Q:{"16":"aD"},R:{"16":"bD"},S:{"2":"cD","16":"dD"}},B:5,C:"WebAssembly Threads and Atomics",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wasm.js b/node_modules/caniuse-lite/data/features/wasm.js index 309209d0f..c81215383 100644 --- a/node_modules/caniuse-lite/data/features/wasm.js +++ b/node_modules/caniuse-lite/data/features/wasm.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M","578":"G"},C:{"1":"0 uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB vC wC","194":"oB pB qB rB sB","1025":"tB"},D:{"1":"0 yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","322":"sB tB uB vB wB xB"},E:{"1":"B C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC"},F:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB 9C AD BD CD JC pC DD KC","322":"fB gB hB iB jB kB"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","194":"vD"}},B:6,C:"WebAssembly",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M","578":"H"},C:{"1":"1 2 3 4 5 6 7 8 9 jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB eC fC","194":"dB eB fB gB hB","1025":"iB"},D:{"1":"1 2 3 4 5 6 7 8 9 nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB","322":"hB iB jB kB lB mB"},E:{"1":"B C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB rC sC tC uC 7B ZC vC 8B","322":"UB VB WB XB YB ZB"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","194":"cD"}},B:6,C:"WebAssembly",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wav.js b/node_modules/caniuse-lite/data/features/wav.js index 2fadaf9d3..126ab0cbc 100644 --- a/node_modules/caniuse-lite/data/features/wav.js +++ b/node_modules/caniuse-lite/data/features/wav.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 BD CD JC pC DD KC","2":"F 9C AD"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","16":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"Wav audio format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u tC uC 7B ZC vC 8B","2":"G rC sC"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","16":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"Wav audio format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wbr-element.js b/node_modules/caniuse-lite/data/features/wbr-element.js index 2453333c0..cf2dba775 100644 --- a/node_modules/caniuse-lite/data/features/wbr-element.js +++ b/node_modules/caniuse-lite/data/features/wbr-element.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D rC","2":"E F A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"xC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","16":"F"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC"},H:{"1":"bD"},I:{"1":"PC J I eD fD qC gD hD","16":"cD dD"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"wbr (word break opportunity) element",D:true}; +module.exports={A:{A:{"1":"K E bC","2":"F G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"gC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","16":"G"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC"},H:{"1":"ID"},I:{"1":"DC J D LD MD aC ND OD","16":"JD KD"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"wbr (word break opportunity) element",D:true}; diff --git a/node_modules/caniuse-lite/data/features/web-animation.js b/node_modules/caniuse-lite/data/features/web-animation.js index 28d63c9f3..6a188d0d7 100644 --- a/node_modules/caniuse-lite/data/features/web-animation.js +++ b/node_modules/caniuse-lite/data/features/web-animation.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","260":"Q H R S"},C:{"1":"0 R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB vC wC","260":"QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC","516":"oB pB qB rB sB tB uB vB wB xB yB zB","580":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB","2049":"EC FC GC HC Q H"},D:{"1":"0 T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB","132":"dB eB fB","260":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C WC","1090":"B C L JC KC","2049":"M 2C 3C"},F:{"1":"0 AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 F B C G N O P VB 9C AD BD CD JC pC DD KC","132":"4 5 6","260":"7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD","1090":"ND OD PD QD RD SD TD","2049":"UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 qD rD MC NC OC sD","260":"J iD jD kD lD mD WC nD oD pD"},Q:{"260":"tD"},R:{"1":"uD"},S:{"1":"wD","516":"vD"}},B:5,C:"Web Animations API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","260":"Q I R S"},C:{"1":"1 2 3 4 5 6 7 8 9 R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB eC fC","260":"EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","516":"dB eB fB gB hB iB jB kB lB mB nB oB","580":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB","2049":"3B 4B 5B 6B Q I"},D:{"1":"1 2 3 4 5 6 7 8 9 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB","132":"SB TB UB","260":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC LC","1090":"B C L 7B 8B","2049":"M lC mC"},F:{"1":"zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x rC sC tC uC 7B ZC vC 8B","132":"0 y z","260":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C","1090":"5C 6C 7C 8C 9C AD BD","2049":"CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z XD YD AC BC CC ZD","260":"J PD QD RD SD TD LC UD VD WD"},Q:{"260":"aD"},R:{"1":"bD"},S:{"1":"dD","516":"cD"}},B:5,C:"Web Animations API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/web-app-manifest.js b/node_modules/caniuse-lite/data/features/web-app-manifest.js index a3fa054ec..36f8ab4fc 100644 --- a/node_modules/caniuse-lite/data/features/web-app-manifest.js +++ b/node_modules/caniuse-lite/data/features/web-app-manifest.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N","130":"O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","578":"FC GC HC Q H R SC S T U"},D:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C","4":"NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND","4":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","260":"OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"Add to home screen (A2HS)",D:false}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N","130":"O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","578":"4B 5B 6B Q I R GC S T U"},D:{"1":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC","4":"BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C","4":"RC SC HD BC TC UC VC WC XC YC CC","260":"6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"Add to home screen (A2HS)",D:false}; diff --git a/node_modules/caniuse-lite/data/features/web-bluetooth.js b/node_modules/caniuse-lite/data/features/web-bluetooth.js index f528f8d5b..f494e3caf 100644 --- a/node_modules/caniuse-lite/data/features/web-bluetooth.js +++ b/node_modules/caniuse-lite/data/features/web-bluetooth.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","1025":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB","194":"mB nB oB pB qB rB sB tB","706":"uB vB wB","1025":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB 9C AD BD CD JC pC DD KC","450":"dB eB fB gB","706":"hB iB jB","1025":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD hD","1025":"I"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","1025":"H"},L:{"1025":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1025":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 jD kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD"},Q:{"2":"tD"},R:{"1025":"uD"},S:{"2":"vD wD"}},B:7,C:"Web Bluetooth",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","1025":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB","194":"bB cB dB eB fB gB hB iB","706":"jB kB lB","1025":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB rC sC tC uC 7B ZC vC 8B","450":"SB TB UB VB","706":"WB XB YB","1025":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND OD","1025":"D"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","1025":"I"},L:{"1025":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1025":"9B"},P:{"1":"0 v w x y z QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD"},Q:{"2":"aD"},R:{"1025":"bD"},S:{"2":"cD dD"}},B:7,C:"Web Bluetooth",D:true}; diff --git a/node_modules/caniuse-lite/data/features/web-serial.js b/node_modules/caniuse-lite/data/features/web-serial.js index b61b049fb..65bbe4f2d 100644 --- a/node_modules/caniuse-lite/data/features/web-serial.js +++ b/node_modules/caniuse-lite/data/features/web-serial.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","66":"Q H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","66":"HC Q H R S T U V W X"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 9C AD BD CD JC pC DD KC","66":"4B 5B 6B 7B 8B 9B AC BC CC DC EC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"Web Serial API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","66":"Q I R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","66":"6B Q I R S T U V W X"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB rC sC tC uC 7B ZC vC 8B","66":"tB uB vB wB xB yB zB 0B 1B 2B 3B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"Web Serial API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/web-share.js b/node_modules/caniuse-lite/data/features/web-share.js index d1680f395..891134846 100644 --- a/node_modules/caniuse-lite/data/features/web-share.js +++ b/node_modules/caniuse-lite/data/features/web-share.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H","516":"R S T U V W X Y Z a b c d"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"6 7 8 9 J UB K D E F A B C L M G N O WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X","130":"1 2 3 4 5 P VB","1028":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB"},E:{"1":"M G 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","2049":"L KC 2C"},F:{"1":"0 x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w 9C AD BD CD JC pC DD KC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD","2049":"QD RD SD TD UD"},H:{"2":"bD"},I:{"2":"PC J cD dD eD fD qC gD","258":"I hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J","258":"iD jD kD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:4,C:"Web Share API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I","516":"R S T U V W X Y Z a b c d"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 J GB K E F G A B C L M H N O IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X","130":"P HB v w x y z","1028":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"M H mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","2049":"L 8B lC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C","2049":"8C 9C AD BD CD"},H:{"2":"ID"},I:{"2":"DC J JD KD LD MD aC ND","258":"D OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J","258":"PD QD RD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:4,C:"Web Share API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webauthn.js b/node_modules/caniuse-lite/data/features/webauthn.js index 7d5b50081..087858075 100644 --- a/node_modules/caniuse-lite/data/features/webauthn.js +++ b/node_modules/caniuse-lite/data/features/webauthn.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C","226":"L M G N O"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC vC wC","4100":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","5124":"0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},D:{"1":"0 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B"},E:{"1":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC","322":"KC"},F:{"1":"0 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 9C AD BD CD JC pC DD KC"},G:{"1":"WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD","578":"SD","2052":"VD","3076":"TD UD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"8196":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2":"vD"}},B:2,C:"Web Authentication API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C","226":"L M H N O"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC eC fC","4100":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","5124":"1 2 pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},D:{"1":"1 2 3 4 5 6 7 8 9 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB"},E:{"1":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B","322":"8B"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB rC sC tC uC 7B ZC vC 8B"},G:{"1":"ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C","578":"AD","2052":"DD","3076":"BD CD"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1028":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2":"cD"}},B:2,C:"Web Authentication API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webcodecs.js b/node_modules/caniuse-lite/data/features/webcodecs.js index 75ad8e2fe..57063d278 100644 --- a/node_modules/caniuse-lite/data/features/webcodecs.js +++ b/node_modules/caniuse-lite/data/features/webcodecs.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c"},C:{"1":"MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB vC wC"},D:{"1":"0 d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z a b c"},E:{"1":"oC 8C","2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC","132":"cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC"},F:{"1":"0 H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q 9C AD BD CD JC pC DD KC"},G:{"1":"oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC","132":"cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 NC OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"WebCodecs API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC","132":"RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC","132":"RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z BC CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"WebCodecs API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webgl.js b/node_modules/caniuse-lite/data/features/webgl.js index 19dc01d57..e8c9cf8c8 100644 --- a/node_modules/caniuse-lite/data/features/webgl.js +++ b/node_modules/caniuse-lite/data/features/webgl.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"rC","8":"K D E F A","129":"B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","129":"C L M G N O P"},C:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","129":"1 2 3 4 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB K D","129":"1 2 3 4 5 6 7 8 9 E F A B C L M G N O P VB WB XB YB ZB"},E:{"1":"E F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC","129":"K D yC zC 0C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B 9C AD BD CD JC pC DD","129":"C G N O P KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD HD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"1":"A","2":"D"},K:{"1":"C H KC","2":"A B JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A","129":"B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","129":"vD"}},B:6,C:"WebGL - 3D Canvas graphics",D:true}; +module.exports={A:{A:{"2":"bC","8":"K E F G A","129":"B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","129":"C L M H N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","129":"J GB K E F G A B C L M H N O P HB v w x y"},D:{"1":"1 2 3 4 5 6 7 8 9 PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E","129":"0 F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB"},E:{"1":"F G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC","129":"K E hC iC jC"},F:{"1":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B rC sC tC uC 7B ZC vC","129":"C H N O P 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC zC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"1":"A","2":"E"},K:{"1":"C I 8B","2":"A B 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A","129":"B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","129":"cD"}},B:6,C:"WebGL - 3D Canvas graphics",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webgl2.js b/node_modules/caniuse-lite/data/features/webgl2.js index bc5c6a3d0..ed71f8ff8 100644 --- a/node_modules/caniuse-lite/data/features/webgl2.js +++ b/node_modules/caniuse-lite/data/features/webgl2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"jB kB lB","450":"6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB","2242":"mB nB oB pB qB rB"},D:{"1":"0 xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","578":"kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"1":"G 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A xC VC yC zC 0C 1C","1090":"B C L M WC JC KC 2C 3C"},F:{"1":"0 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB 9C AD BD CD JC pC DD KC"},G:{"1":"XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD","1090":"PD QD RD SD TD UD VD WD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 kD lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","2242":"vD"}},B:6,C:"WebGL 2.0",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M H N O P HB v w x y z eC fC","194":"YB ZB aB","450":"0 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB","2242":"bB cB dB eB fB gB"},D:{"1":"1 2 3 4 5 6 7 8 9 mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB","578":"ZB aB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"H nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A gC KC hC iC jC kC","1090":"B C L M LC 7B 8B lC mC"},F:{"1":"ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB rC sC tC uC 7B ZC vC 8B"},G:{"1":"FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C","1090":"7C 8C 9C AD BD CD DD ED"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z RD SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","2242":"cD"}},B:6,C:"WebGL 2.0",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webgpu.js b/node_modules/caniuse-lite/data/features/webgpu.js index 7610d434c..e4dbc57e7 100644 --- a/node_modules/caniuse-lite/data/features/webgpu.js +++ b/node_modules/caniuse-lite/data/features/webgpu.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B vC wC","194":"0 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC","4292":"UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v","2049":"0 w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"oC 8C","2":"J UB K D E F A B G xC VC yC zC 0C 1C WC 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC","322":"C L M JC KC 2C 3C hC iC 7C OC jC kC lC mC nC"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC 9C AD BD CD JC pC DD KC","578":"CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h","2049":"0 i j k l m n o p q r s t u v w x y z"},G:{"1":"oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC","322":"hC iC aD OC jC kC lC mC nC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","2049":"H"},L:{"1":"I"},M:{"194":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"1":"5 6 7 8 9","2":"1 2 3 4 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD","194":"wD"}},B:5,C:"WebGPU",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D","2":"C L M H N O P Q","578":"I R S T U V W X Y Z a b c","1602":"1 d e f g h i j k l m n o p q r s t u"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB eC fC","194":"1 2 3 4 5 6 7 8 9 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q","578":"I R S T U V W X Y Z a b c","1602":"1 d e f g h i j k l m n o p q r s t u","2049":"2 3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC"},E:{"1":"qC","2":"J GB K E F G A B H gC KC hC iC jC kC LC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC","322":"C L M 7B 8B lC mC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B rC sC tC uC 7B ZC vC 8B","578":"1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h","2049":"i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","2049":"I"},L:{"1":"D"},M:{"194":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"1":"0 z","2":"J v w x y PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD","194":"dD"}},B:5,C:"WebGPU",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webhid.js b/node_modules/caniuse-lite/data/features/webhid.js index caa8ce1ff..590f7751b 100644 --- a/node_modules/caniuse-lite/data/features/webhid.js +++ b/node_modules/caniuse-lite/data/features/webhid.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P","66":"Q H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","66":"HC Q H R S T U V W X"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 9C AD BD CD JC pC DD KC","66":"5B 6B 7B 8B 9B AC BC CC DC EC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"WebHID API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P","66":"Q I R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B","66":"6B Q I R S T U V W X"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB rC sC tC uC 7B ZC vC 8B","66":"uB vB wB xB yB zB 0B 1B 2B 3B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"WebHID API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webkit-user-drag.js b/node_modules/caniuse-lite/data/features/webkit-user-drag.js index c0ae93717..a4d888104 100644 --- a/node_modules/caniuse-lite/data/features/webkit-user-drag.js +++ b/node_modules/caniuse-lite/data/features/webkit-user-drag.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"16":"J UB K D E F A B C L M G","132":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"F B C 9C AD BD CD JC pC DD KC","132":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"CSS -webkit-user-drag property",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"16":"J GB K E F G A B C L M H","132":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"G B C rC sC tC uC 7B ZC vC 8B","132":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"CSS -webkit-user-drag property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webm.js b/node_modules/caniuse-lite/data/features/webm.js index 6b7218acb..fb11505d2 100644 --- a/node_modules/caniuse-lite/data/features/webm.js +++ b/node_modules/caniuse-lite/data/features/webm.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E rC","520":"F A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","8":"C L","388":"M G N O P"},C:{"1":"0 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","132":"1 2 3 4 5 6 7 8 J UB K D E F A B C L M G N O P VB"},D:{"1":"0 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB","132":"1 2 3 4 5 K D E F A B C L M G N O P VB"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC","8":"J UB VC yC","520":"K D E F A B C zC 0C 1C WC JC","1028":"L KC 2C","7172":"M","8196":"G 3C 4C XC YC LC 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD BD","132":"B C G CD JC pC DD KC"},G:{"1":"hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD","1028":"QD RD SD TD UD","3076":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC"},H:{"2":"bD"},I:{"1":"I","2":"cD dD","132":"PC J eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"8":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","132":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:6,C:"WebM video format",D:true}; +module.exports={A:{A:{"2":"K E F bC","520":"G A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","8":"C L","388":"M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB","132":"K E F G A B C L M H N O P HB v w x y z"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC","8":"J GB KC hC","520":"K E F G A B C iC jC kC LC 7B","1028":"L 8B lC","7172":"M","8196":"H mC nC MC NC 9B oC"},F:{"1":"0 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC tC","132":"B C H uC 7B ZC vC 8B"},G:{"1":"WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C","1028":"8C 9C AD BD CD","3076":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC"},H:{"2":"ID"},I:{"1":"D","2":"JD KD","132":"DC J LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"8":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","132":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:6,C:"WebM video format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webnfc.js b/node_modules/caniuse-lite/data/features/webnfc.js index 703e96957..a3b207409 100644 --- a/node_modules/caniuse-lite/data/features/webnfc.js +++ b/node_modules/caniuse-lite/data/features/webnfc.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M G N O P Q Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","450":"H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","450":"H R S T U V W X"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","450":"6B 7B 8B 9B AC BC CC DC EC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"257":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"Web NFC",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M H N O P Q Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","450":"I R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","450":"I R S T U V W X"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","450":"vB wB xB yB zB 0B 1B 2B 3B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"257":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"Web NFC",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webp.js b/node_modules/caniuse-lite/data/features/webp.js index dfb65cb2e..b5d858bbe 100644 --- a/node_modules/caniuse-lite/data/features/webp.js +++ b/node_modules/caniuse-lite/data/features/webp.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O"},C:{"1":"0 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","8":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B"},D:{"1":"0 ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J UB","8":"K D E","132":"1 2 3 F A B C L M G N O P VB","260":"4 5 6 7 8 9 WB XB YB"},E:{"1":"MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F A B C L xC VC yC zC 0C 1C WC JC KC 2C","516":"M G 3C 4C XC YC LC 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F 9C AD BD","8":"B CD","132":"JC pC DD","260":"C G N O P KC"},G:{"1":"VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD"},H:{"1":"bD"},I:{"1":"I qC gD hD","2":"PC cD dD eD","132":"J fD"},J:{"2":"D A"},K:{"1":"C H JC pC KC","2":"A","132":"B"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","8":"vD"}},B:6,C:"WebP image format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O"},C:{"1":"1 2 3 4 5 6 7 8 9 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","8":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB"},D:{"1":"1 2 3 4 5 6 7 8 9 OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB","8":"K E F","132":"G A B C L M H N O P HB v w x","260":"0 y z IB JB KB LB MB NB"},E:{"1":"AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G A B C L gC KC hC iC jC kC LC 7B 8B lC","516":"M H mC nC MC NC 9B oC"},F:{"1":"0 HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G rC sC tC","8":"B uC","132":"7B ZC vC","260":"C H N O P 8B"},G:{"1":"DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD"},H:{"1":"ID"},I:{"1":"D aC ND OD","2":"DC JD KD LD","132":"J MD"},J:{"2":"E A"},K:{"1":"C I 7B ZC 8B","2":"A","132":"B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","8":"cD"}},B:6,C:"WebP image format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/websockets.js b/node_modules/caniuse-lite/data/features/websockets.js index 07b865805..d1e4638d6 100644 --- a/node_modules/caniuse-lite/data/features/websockets.js +++ b/node_modules/caniuse-lite/data/features/websockets.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC vC wC","132":"J UB","292":"K D E F A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"J UB K D E F A B C L M","260":"G"},E:{"1":"D E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","132":"UB yC","260":"K zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F 9C AD BD CD","132":"B C JC pC DD"},G:{"1":"E GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED","132":"qC FD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","129":"D"},K:{"1":"H KC","2":"A","132":"B C JC pC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Web Sockets",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC eC fC","132":"J GB","292":"K E F G A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"J GB K E F G A B C L M","260":"H"},E:{"1":"E F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","132":"GB hC","260":"K iC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G rC sC tC uC","132":"B C 7B ZC vC"},G:{"1":"F yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC","132":"aC xC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","129":"E"},K:{"1":"I 8B","2":"A","132":"B C 7B ZC"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Web Sockets",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webtransport.js b/node_modules/caniuse-lite/data/features/webtransport.js index f3495630c..022d60887 100644 --- a/node_modules/caniuse-lite/data/features/webtransport.js +++ b/node_modules/caniuse-lite/data/features/webtransport.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g"},C:{"1":"0 x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w vC wC"},D:{"1":"0 g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z e f","66":"a b c d"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 OC sD","2":"J iD jD kD lD mD WC nD oD pD qD rD MC NC"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:5,C:"WebTransport",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P Q I R S T U V W X Y Z a b c d e f g"},C:{"1":"3 4 5 6 7 8 9 AB BB CB DB EB FB D HC IC JC dC","2":"0 1 2 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z e f","66":"a b c d"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z CC ZD","2":"J PD QD RD SD TD LC UD VD WD XD YD AC BC"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:5,C:"WebTransport",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webusb.js b/node_modules/caniuse-lite/data/features/webusb.js index a4a748944..66e276a54 100644 --- a/node_modules/caniuse-lite/data/features/webusb.js +++ b/node_modules/caniuse-lite/data/features/webusb.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","66":"vB wB xB yB zB QC 0B"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB 9C AD BD CD JC pC DD KC","66":"iB jB kB lB mB nB oB"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 lD mD WC nD oD pD qD rD MC NC OC sD","2":"J iD jD kD"},Q:{"2":"tD"},R:{"1":"uD"},S:{"2":"vD wD"}},B:7,C:"WebUSB",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB","66":"kB lB mB nB oB EC pB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB rC sC tC uC 7B ZC vC 8B","66":"XB YB ZB aB bB cB dB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z SD TD LC UD VD WD XD YD AC BC CC ZD","2":"J PD QD RD"},Q:{"2":"aD"},R:{"1":"bD"},S:{"2":"cD dD"}},B:7,C:"WebUSB",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webvr.js b/node_modules/caniuse-lite/data/features/webvr.js index 10ff7172b..3233954ee 100644 --- a/node_modules/caniuse-lite/data/features/webvr.js +++ b/node_modules/caniuse-lite/data/features/webvr.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"0 C L M H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","66":"Q","257":"G N O P"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vC wC","129":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","194":"vB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","66":"yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","66":"lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"2":"I"},M:{"2":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"513":"J","516":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:7,C:"WebVR API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"1 2 3 4 5 6 7 8 9 C L M I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","66":"Q","257":"H N O P"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB eC fC","129":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","194":"kB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","66":"nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","66":"aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"513":"J","516":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:7,C:"WebVR API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webvtt.js b/node_modules/caniuse-lite/data/features/webvtt.js index e26140b8c..09f0669e6 100644 --- a/node_modules/caniuse-lite/data/features/webvtt.js +++ b/node_modules/caniuse-lite/data/features/webvtt.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 sC PC J UB K D E F A B C L M G N O P VB vC wC","66":"5 6 7 8 9 WB XB","129":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","257":"0 wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 J UB K D E F A B C L M G N O P VB"},E:{"1":"K D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC FD GD"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC J cD dD eD fD qC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"B","2":"A"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"129":"vD wD"}},B:4,C:"WebVTT - Web Video Text Tracks",D:true}; +module.exports={A:{A:{"1":"A B","2":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"cC DC J GB K E F G A B C L M H N O P HB v w x y eC fC","66":"0 z IB JB KB LB MB","129":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB","257":"1 2 3 4 5 6 7 8 9 lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J GB K E F G A B C L M H N O P HB v w x"},E:{"1":"K E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC xC yC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC J JD KD LD MD aC"},J:{"1":"A","2":"E"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"129":"cD dD"}},B:4,C:"WebVTT - Web Video Text Tracks",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webworkers.js b/node_modules/caniuse-lite/data/features/webworkers.js index debe01257..18b9e5c9b 100644 --- a/node_modules/caniuse-lite/data/features/webworkers.js +++ b/node_modules/caniuse-lite/data/features/webworkers.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","2":"rC","8":"K D E F"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","8":"sC PC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","8":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 CD JC pC DD KC","2":"F 9C","8":"AD BD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"I cD gD hD","2":"PC J dD eD fD qC"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","8":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Web Workers",D:true}; +module.exports={A:{A:{"1":"A B","2":"bC","8":"K E F G"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","8":"cC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","8":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u uC 7B ZC vC 8B","2":"G rC","8":"sC tC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"D JD ND OD","2":"DC J KD LD MD aC"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","8":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Web Workers",D:true}; diff --git a/node_modules/caniuse-lite/data/features/webxr.js b/node_modules/caniuse-lite/data/features/webxr.js index 570ec5b9a..cef75677c 100644 --- a/node_modules/caniuse-lite/data/features/webxr.js +++ b/node_modules/caniuse-lite/data/features/webxr.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"2":"C L M G N O P","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC vC wC","322":"0 GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC"},D:{"2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B","66":"4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","132":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"2":"J UB K D E F A B C xC VC yC zC 0C 1C WC JC KC","578":"L M G 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 9C AD BD CD JC pC DD KC","66":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B","132":"0 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"2":"PC J I cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C JC pC KC","132":"H"},L:{"132":"I"},M:{"322":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"J iD jD kD lD mD WC nD","132":"1 2 3 4 5 6 7 8 9 oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD","322":"wD"}},B:4,C:"WebXR Device API",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"2":"C L M H N O P","132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B eC fC","322":"1 2 3 4 5 6 7 8 9 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC"},D:{"2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB","66":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B","132":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"2":"J GB K E F G A B C gC KC hC iC jC kC LC 7B 8B","578":"L M H lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB rC sC tC uC 7B ZC vC 8B","66":"iB jB kB lB mB nB oB pB qB rB sB tB","132":"uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"2":"DC J D JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C 7B ZC 8B","132":"I"},L:{"132":"D"},M:{"322":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"J PD QD RD SD TD LC UD","132":"0 v w x y z VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD","322":"dD"}},B:4,C:"WebXR Device API",D:true}; diff --git a/node_modules/caniuse-lite/data/features/will-change.js b/node_modules/caniuse-lite/data/features/will-change.js index 25c5b528a..f440bc1e5 100644 --- a/node_modules/caniuse-lite/data/features/will-change.js +++ b/node_modules/caniuse-lite/data/features/will-change.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L M G N O P"},C:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB vC wC","194":"WB XB YB ZB aB bB cB"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C"},F:{"1":"0 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 4 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS will-change property",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB eC fC","194":"LB MB NB OB PB QB RB"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC"},F:{"1":"0 z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x y rC sC tC uC 7B ZC vC 8B"},G:{"1":"2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS will-change property",D:true}; diff --git a/node_modules/caniuse-lite/data/features/woff.js b/node_modules/caniuse-lite/data/features/woff.js index 95b165305..94c63db68 100644 --- a/node_modules/caniuse-lite/data/features/woff.js +++ b/node_modules/caniuse-lite/data/features/woff.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC wC","2":"sC PC vC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"J"},E:{"1":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 JC pC DD KC","2":"F B 9C AD BD CD"},G:{"1":"E FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC"},H:{"2":"bD"},I:{"1":"I gD hD","2":"PC cD dD eD fD qC","130":"J"},J:{"1":"D A"},K:{"1":"B C H JC pC KC","2":"A"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"WOFF - Web Open Font Format",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC fC","2":"cC DC eC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"J"},E:{"1":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB gC KC"},F:{"1":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 7B ZC vC 8B","2":"G B rC sC tC uC"},G:{"1":"F xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC"},H:{"2":"ID"},I:{"1":"D ND OD","2":"DC JD KD LD MD aC","130":"J"},J:{"1":"E A"},K:{"1":"B C I 7B ZC 8B","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"WOFF - Web Open Font Format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/woff2.js b/node_modules/caniuse-lite/data/features/woff2.js index f23cc7f6e..e4d4f1c9e 100644 --- a/node_modules/caniuse-lite/data/features/woff2.js +++ b/node_modules/caniuse-lite/data/features/woff2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"0 M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"C L"},C:{"1":"0 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB vC wC"},D:{"1":"0 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB"},E:{"1":"C L M G KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J UB K D E F xC VC yC zC 0C 1C","132":"A B WC JC"},F:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"1 2 3 F B C G N O P VB 9C AD BD CD JC pC DD KC"},G:{"1":"LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"E VC ED qC FD GD HD ID JD KD"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:2,C:"WOFF 2.0 - Web Open Font Format",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","2":"C L"},C:{"1":"1 2 3 4 5 6 7 8 9 VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"0 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","2":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB"},E:{"1":"C L M H 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J GB K E F G gC KC hC iC jC kC","132":"A B LC 7B"},F:{"1":"0 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C H N O P HB v w x rC sC tC uC 7B ZC vC 8B"},G:{"1":"3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"F KC wC aC xC yC zC 0C 1C 2C"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:2,C:"WOFF 2.0 - Web Open Font Format",D:true}; diff --git a/node_modules/caniuse-lite/data/features/word-break.js b/node_modules/caniuse-lite/data/features/word-break.js index b27934eb1..0640c9026 100644 --- a/node_modules/caniuse-lite/data/features/word-break.js +++ b/node_modules/caniuse-lite/data/features/word-break.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"K D E F A B rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC J UB K D E F A B C L M vC wC"},D:{"1":"0 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB"},E:{"1":"F A B C L M G 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"J UB K D E xC VC yC zC 0C"},F:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B C 9C AD BD CD JC pC DD KC","4":"1 2 3 4 5 6 7 8 9 G N O P VB WB XB"},G:{"1":"JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","4":"E VC ED qC FD GD HD ID"},H:{"2":"bD"},I:{"1":"I","4":"PC J cD dD eD fD qC gD hD"},J:{"4":"D A"},K:{"1":"H","2":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"CSS3 word-break",D:true}; +module.exports={A:{A:{"1":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC J GB K E F G A B C L M eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB"},E:{"1":"G A B C L M H kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"J GB K E F gC KC hC iC jC"},F:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B C rC sC tC uC 7B ZC vC 8B","4":"0 H N O P HB v w x y z IB JB KB LB MB"},G:{"1":"1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","4":"F KC wC aC xC yC zC 0C"},H:{"2":"ID"},I:{"1":"D","4":"DC J JD KD LD MD aC ND OD"},J:{"4":"E A"},K:{"1":"I","2":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"CSS3 word-break",D:true}; diff --git a/node_modules/caniuse-lite/data/features/wordwrap.js b/node_modules/caniuse-lite/data/features/wordwrap.js index 752f727cc..3774163d1 100644 --- a/node_modules/caniuse-lite/data/features/wordwrap.js +++ b/node_modules/caniuse-lite/data/features/wordwrap.js @@ -1 +1 @@ -module.exports={A:{A:{"4":"K D E F A B rC"},B:{"1":"0 P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","4":"C L M G N O"},C:{"1":"0 qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","4":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB vC wC"},D:{"1":"0 4 5 6 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","4":"1 2 3 J UB K D E F A B C L M G N O P VB"},E:{"1":"D E F A B C L M G zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","4":"J UB K xC VC yC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 KC","2":"F 9C AD","4":"B C BD CD JC pC DD"},G:{"1":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","4":"VC ED qC FD GD"},H:{"4":"bD"},I:{"1":"I gD hD","4":"PC J cD dD eD fD qC"},J:{"1":"A","4":"D"},K:{"1":"H","4":"A B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"4":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"wD","4":"vD"}},B:4,C:"CSS3 Overflow-wrap",D:true}; +module.exports={A:{A:{"4":"K E F G A B bC"},B:{"1":"1 2 3 4 5 6 7 8 9 P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","4":"C L M H N O"},C:{"1":"1 2 3 4 5 6 7 8 9 fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","4":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","4":"J GB K E F G A B C L M H N O P HB v w x"},E:{"1":"E F G A B C L M H iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","4":"J GB K gC KC hC"},F:{"1":"0 H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 8B","2":"G rC sC","4":"B C tC uC 7B ZC vC"},G:{"1":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","4":"KC wC aC xC yC"},H:{"4":"ID"},I:{"1":"D ND OD","4":"DC J JD KD LD MD aC"},J:{"1":"A","4":"E"},K:{"1":"I","4":"A B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"4":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"dD","4":"cD"}},B:4,C:"CSS3 Overflow-wrap",D:true}; diff --git a/node_modules/caniuse-lite/data/features/x-doc-messaging.js b/node_modules/caniuse-lite/data/features/x-doc-messaging.js index d919f0fcb..477e8565b 100644 --- a/node_modules/caniuse-lite/data/features/x-doc-messaging.js +++ b/node_modules/caniuse-lite/data/features/x-doc-messaging.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D rC","132":"E F","260":"A B"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC","2":"sC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"xC VC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC","2":"F"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"4":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"Cross-document messaging",D:true}; +module.exports={A:{A:{"2":"K E bC","132":"F G","260":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC","2":"cC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"gC KC"},F:{"1":"0 B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B","2":"G"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"4":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"Cross-document messaging",D:true}; diff --git a/node_modules/caniuse-lite/data/features/x-frame-options.js b/node_modules/caniuse-lite/data/features/x-frame-options.js index 2607564c2..cb34a3a5f 100644 --- a/node_modules/caniuse-lite/data/features/x-frame-options.js +++ b/node_modules/caniuse-lite/data/features/x-frame-options.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D rC"},B:{"1":"C L M G N O P","4":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B","4":"0 J UB K D E F A B C L M G N O 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","16":"sC PC vC wC"},D:{"4":"0 7 8 9 WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"1 2 3 4 5 6 J UB K D E F A B C L M G N O P VB"},E:{"4":"K D E F A B C L M G yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","16":"J UB xC VC"},F:{"4":"0 1 2 3 4 5 6 7 8 9 C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 DD KC","16":"F B 9C AD BD CD JC pC"},G:{"4":"E HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","16":"VC ED qC FD GD"},H:{"2":"bD"},I:{"4":"J I fD qC gD hD","16":"PC cD dD eD"},J:{"4":"D A"},K:{"4":"H KC","16":"A B C JC pC"},L:{"4":"I"},M:{"4":"IC"},N:{"1":"A B"},O:{"4":"LC"},P:{"4":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"4":"tD"},R:{"4":"uD"},S:{"1":"vD","4":"wD"}},B:6,C:"X-Frame-Options HTTP header",D:true}; +module.exports={A:{A:{"1":"F G A B","2":"K E bC"},B:{"1":"C L M H N O P","4":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB","4":"1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","16":"cC DC eC fC"},D:{"4":"1 2 3 4 5 6 7 8 9 IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"0 J GB K E F G A B C L M H N O P HB v w x y z"},E:{"4":"K E F G A B C L M H hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","16":"J GB gC KC"},F:{"4":"0 C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u vC 8B","16":"G B rC sC tC uC 7B ZC"},G:{"4":"F zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","16":"KC wC aC xC yC"},H:{"2":"ID"},I:{"4":"J D MD aC ND OD","16":"DC JD KD LD"},J:{"4":"E A"},K:{"4":"I 8B","16":"A B C 7B ZC"},L:{"4":"D"},M:{"4":"D"},N:{"1":"A B"},O:{"4":"9B"},P:{"4":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"4":"aD"},R:{"4":"bD"},S:{"1":"cD","4":"dD"}},B:6,C:"X-Frame-Options HTTP header",D:true}; diff --git a/node_modules/caniuse-lite/data/features/xhr2.js b/node_modules/caniuse-lite/data/features/xhr2.js index 17787076d..325ea89db 100644 --- a/node_modules/caniuse-lite/data/features/xhr2.js +++ b/node_modules/caniuse-lite/data/features/xhr2.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F rC","1156":"A B"},B:{"1":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","1028":"C L M G N O P"},C:{"1":"0 oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"sC PC","1028":"1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB","1284":"A B","1412":"K D E F","1924":"J UB vC wC"},D:{"1":"0 rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","16":"J UB K","1028":"YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","1156":"WB XB","1412":"1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P VB"},E:{"1":"C L M G JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","2":"J xC VC","1028":"E F A B 0C 1C WC","1156":"D zC","1412":"UB K yC"},F:{"1":"0 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","2":"F B 9C AD BD CD JC pC DD","132":"G N O","1028":"1 2 3 4 5 6 7 8 9 C P VB WB XB YB ZB aB bB cB dB KC"},G:{"1":"ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","2":"VC ED qC","1028":"E ID JD KD LD MD","1156":"HD","1412":"FD GD"},H:{"2":"bD"},I:{"1":"I","2":"cD dD eD","1028":"hD","1412":"gD","1924":"PC J fD qC"},J:{"1156":"A","1412":"D"},K:{"1":"H","2":"A B JC pC","1028":"C KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1156":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD","1028":"J"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"XMLHttpRequest advanced features",D:true}; +module.exports={A:{A:{"2":"K E F G bC","1156":"A B"},B:{"1":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D","1028":"C L M H N O P"},C:{"1":"1 2 3 4 5 6 7 8 9 dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","2":"cC DC","1028":"0 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB","1284":"A B","1412":"K E F G","1924":"J GB eC fC"},D:{"1":"1 2 3 4 5 6 7 8 9 gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","16":"J GB K","1028":"NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB","1156":"LB MB","1412":"0 E F G A B C L M H N O P HB v w x y z IB JB KB"},E:{"1":"C L M H 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","2":"J gC KC","1028":"F G A B jC kC LC","1156":"E iC","1412":"GB K hC"},F:{"1":"TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"G B rC sC tC uC 7B ZC vC","132":"H N O","1028":"0 C P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB 8B"},G:{"1":"5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","2":"KC wC aC","1028":"F 0C 1C 2C 3C 4C","1156":"zC","1412":"xC yC"},H:{"2":"ID"},I:{"1":"D","2":"JD KD LD","1028":"OD","1412":"ND","1924":"DC J MD aC"},J:{"1156":"A","1412":"E"},K:{"1":"I","2":"A B 7B ZC","1028":"C 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1156":"A B"},O:{"1":"9B"},P:{"1":"0 v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD","1028":"J"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"XMLHttpRequest advanced features",D:true}; diff --git a/node_modules/caniuse-lite/data/features/xhtml.js b/node_modules/caniuse-lite/data/features/xhtml.js index 15fc7ea8a..dab1d35f0 100644 --- a/node_modules/caniuse-lite/data/features/xhtml.js +++ b/node_modules/caniuse-lite/data/features/xhtml.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"1":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"1":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"1":"bD"},I:{"1":"PC J I cD dD eD fD qC gD hD"},J:{"1":"D A"},K:{"1":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:1,C:"XHTML served as application/xhtml+xml",D:true}; +module.exports={A:{A:{"1":"G A B","2":"K E F bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"1":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"1":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"1":"ID"},I:{"1":"DC J D JD KD LD MD aC ND OD"},J:{"1":"E A"},K:{"1":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:1,C:"XHTML served as application/xhtml+xml",D:true}; diff --git a/node_modules/caniuse-lite/data/features/xhtmlsmil.js b/node_modules/caniuse-lite/data/features/xhtmlsmil.js index 3c0b12652..5209d3caa 100644 --- a/node_modules/caniuse-lite/data/features/xhtmlsmil.js +++ b/node_modules/caniuse-lite/data/features/xhtmlsmil.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"F A B rC","4":"K D E"},B:{"2":"C L M G N O P","8":"0 Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"8":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC vC wC"},D:{"8":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC"},E:{"8":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"8":"0 1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 9C AD BD CD JC pC DD KC"},G:{"8":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"8":"bD"},I:{"8":"PC J I cD dD eD fD qC gD hD"},J:{"8":"D A"},K:{"8":"A B C H JC pC KC"},L:{"8":"I"},M:{"8":"IC"},N:{"2":"A B"},O:{"8":"LC"},P:{"8":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"8":"tD"},R:{"8":"uD"},S:{"8":"vD wD"}},B:7,C:"XHTML+SMIL animation",D:true}; +module.exports={A:{A:{"2":"G A B bC","4":"K E F"},B:{"2":"C L M H N O P","8":"1 2 3 4 5 6 7 8 9 Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"8":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC eC fC"},D:{"8":"0 1 2 3 4 5 6 7 8 9 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC"},E:{"8":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"8":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u rC sC tC uC 7B ZC vC 8B"},G:{"8":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"8":"ID"},I:{"8":"DC J D JD KD LD MD aC ND OD"},J:{"8":"E A"},K:{"8":"A B C I 7B ZC 8B"},L:{"8":"D"},M:{"8":"D"},N:{"2":"A B"},O:{"8":"9B"},P:{"8":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"8":"aD"},R:{"8":"bD"},S:{"8":"cD dD"}},B:7,C:"XHTML+SMIL animation",D:true}; diff --git a/node_modules/caniuse-lite/data/features/xml-serializer.js b/node_modules/caniuse-lite/data/features/xml-serializer.js index 86e55203f..850aaba3d 100644 --- a/node_modules/caniuse-lite/data/features/xml-serializer.js +++ b/node_modules/caniuse-lite/data/features/xml-serializer.js @@ -1 +1 @@ -module.exports={A:{A:{"1":"A B","260":"K D E F rC"},B:{"1":"0 C L M G N O P Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","132":"B","260":"sC PC J UB K D vC wC","516":"E F A"},D:{"1":"0 YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","132":"1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB"},E:{"1":"E F A B C L M G 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C","132":"J UB K D xC VC yC zC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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","16":"F 9C","132":"B C G N O AD BD CD JC pC DD KC"},G:{"1":"E ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC","132":"VC ED qC FD GD HD"},H:{"132":"bD"},I:{"1":"I gD hD","132":"PC J cD dD eD fD qC"},J:{"132":"D A"},K:{"1":"H","16":"A","132":"B C JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"1":"A B"},O:{"1":"LC"},P:{"1":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"1":"tD"},R:{"1":"uD"},S:{"1":"vD wD"}},B:4,C:"DOM Parsing and Serialization",D:true}; +module.exports={A:{A:{"1":"A B","260":"K E F G bC"},B:{"1":"1 2 3 4 5 6 7 8 9 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC dC","132":"B","260":"cC DC J GB K E eC fC","516":"F G A"},D:{"1":"1 2 3 4 5 6 7 8 9 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB FB D HC IC JC","132":"0 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB"},E:{"1":"F G A B C L M H jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC","132":"J GB K E gC KC hC iC"},F:{"1":"0 P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","16":"G rC","132":"B C H N O sC tC uC 7B ZC vC 8B"},G:{"1":"F 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC","132":"KC wC aC xC yC zC"},H:{"132":"ID"},I:{"1":"D ND OD","132":"DC J JD KD LD MD aC"},J:{"132":"E A"},K:{"1":"I","16":"A","132":"B C 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"1":"A B"},O:{"1":"9B"},P:{"1":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"1":"aD"},R:{"1":"bD"},S:{"1":"cD dD"}},B:4,C:"DOM Parsing and Serialization",D:true}; diff --git a/node_modules/caniuse-lite/data/features/zstd.js b/node_modules/caniuse-lite/data/features/zstd.js index b1da030f9..a87409e7a 100644 --- a/node_modules/caniuse-lite/data/features/zstd.js +++ b/node_modules/caniuse-lite/data/features/zstd.js @@ -1 +1 @@ -module.exports={A:{A:{"2":"K D E F A B rC"},B:{"1":"FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I","2":"0 C L M G N O P Q H R S T U V W X Y Z 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","194":"AB BB CB DB EB"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC tC uC","2":"0 1 2 3 4 5 6 7 8 9 sC PC J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z 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 AB BB CB DB EB FB GB HB vC wC"},D:{"1":"FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB I TC IC UC","2":"0 1 2 3 4 5 6 7 8 9 J UB K D E F A B C L M G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB QC 0B RC 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R S T U V W X Y Z 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","194":"AB BB CB DB EB"},E:{"2":"J UB K D E F A B C L M G xC VC yC zC 0C 1C WC JC KC 2C 3C 4C XC YC LC 5C MC ZC aC bC cC dC 6C NC eC fC gC hC iC 7C OC jC kC lC mC nC oC 8C"},F:{"1":"0 s t u v w x y z","2":"1 2 3 4 5 6 7 8 9 F B C G N O P VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC Q H R SC S T U V W X Y Z a b c d e f g h i j k l m n o p q r 9C AD BD CD JC pC DD KC"},G:{"2":"E VC ED qC FD GD HD ID JD KD LD MD ND OD PD QD RD SD TD UD VD WD XD XC YC LC YD MC ZC aC bC cC dC ZD NC eC fC gC hC iC aD OC jC kC lC mC nC oC"},H:{"2":"bD"},I:{"1":"I","2":"PC J cD dD eD fD qC gD hD"},J:{"2":"D A"},K:{"2":"A B C H JC pC KC"},L:{"1":"I"},M:{"1":"IC"},N:{"2":"A B"},O:{"2":"LC"},P:{"2":"1 2 3 4 5 6 7 8 9 J iD jD kD lD mD WC nD oD pD qD rD MC NC OC sD"},Q:{"2":"tD"},R:{"2":"uD"},S:{"2":"vD wD"}},B:6,C:"zstd (Zstandard) content-encoding",D:true}; +module.exports={A:{A:{"2":"K E F G A B bC"},B:{"1":"CB DB EB FB D","2":"1 2 3 4 5 6 C L M H N O P Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"7 8 9 AB BB"},C:{"1":"FB D HC IC JC dC","2":"0 1 2 3 4 5 6 7 8 9 cC DC J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u AB BB CB DB EB eC fC"},D:{"1":"CB DB EB FB D HC IC JC","2":"0 1 2 3 4 5 6 J GB K E F G A B C L M H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB EC pB FC qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","194":"7 8 9 AB BB"},E:{"2":"J GB K E F G A B C L M H gC KC hC iC jC kC LC 7B 8B lC mC nC MC NC 9B oC AC OC PC QC RC SC pC BC TC UC VC WC XC YC CC qC"},F:{"1":"s t u","2":"0 G B C H N O P HB v w x y z IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B Q I R GC S T U V W X Y Z a b c d e f g h i j k l m n o p q r rC sC tC uC 7B ZC vC 8B"},G:{"2":"F KC wC aC xC yC zC 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AD BD CD DD ED FD MC NC 9B GD AC OC PC QC RC SC HD BC TC UC VC WC XC YC CC"},H:{"2":"ID"},I:{"1":"D","2":"DC J JD KD LD MD aC ND OD"},J:{"2":"E A"},K:{"2":"A B C I 7B ZC 8B"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"9B"},P:{"2":"0 J v w x y z PD QD RD SD TD LC UD VD WD XD YD AC BC CC ZD"},Q:{"2":"aD"},R:{"2":"bD"},S:{"2":"cD dD"}},B:6,C:"zstd (Zstandard) content-encoding",D:true}; diff --git a/node_modules/caniuse-lite/data/regions/AD.js b/node_modules/caniuse-lite/data/regions/AD.js index 25cd35b26..112a640f4 100644 --- a/node_modules/caniuse-lite/data/regions/AD.js +++ b/node_modules/caniuse-lite/data/regions/AD.js @@ -1 +1 @@ -module.exports={C:{"48":0.38658,"78":0.0091,"114":0.00455,"115":0.10006,"127":0.02729,"128":0.07732,"132":0.14099,"134":0.0091,"137":0.04548,"138":0.2274,"139":2.22397,"140":0.4457,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 135 136 141 142 143 3.5 3.6"},D:{"5":0.02274,"39":0.00455,"41":0.00455,"42":0.0091,"44":0.00455,"46":0.00455,"47":0.00455,"48":0.00455,"49":0.01819,"53":0.00455,"54":0.00455,"55":0.00455,"56":0.00455,"57":0.0091,"58":0.02729,"60":0.00455,"65":0.0091,"66":0.00455,"74":0.00455,"79":0.02274,"80":0.00455,"86":0.00455,"87":0.10006,"88":0.00455,"89":0.0091,"90":0.00455,"91":0.00455,"97":0.10915,"98":0.25014,"99":0.1046,"103":0.20921,"104":0.00455,"106":0.00455,"107":0.01364,"108":0.09551,"109":0.33655,"110":0.0091,"111":0.15008,"112":0.01819,"114":0.10915,"116":0.25924,"118":0.00455,"119":0.04093,"121":0.0091,"122":0.02729,"124":0.01819,"125":0.21376,"126":0.00455,"127":0.02274,"128":0.04093,"130":0.03638,"131":0.02274,"132":0.01819,"133":0.06822,"134":0.05003,"135":0.31836,"136":2.61055,"137":13.25287,"138":0.42751,"139":0.08641,_:"4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 43 45 50 51 52 59 61 62 63 64 67 68 69 70 71 72 73 75 76 77 78 81 83 84 85 92 93 94 95 96 100 101 102 105 113 115 117 120 123 129 140 141"},F:{"83":0.00455,"84":0.0091,"89":0.05458,"90":0.02274,"92":0.00455,"94":0.00455,"95":0.0091,"113":0.00455,"114":0.00455,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 88 91 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00455,"98":0.03184,"99":0.03184,"109":0.0091,"110":0.09551,"131":0.0091,"133":0.00455,"134":0.00455,"135":0.02729,"136":0.37294,"137":2.08298,"138":0.2183,_:"12 13 14 15 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{"12":0.00455,"14":0.08186,_:"0 4 5 6 7 8 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00455,"13.1":0.05458,"14.1":0.17737,"15.1":0.00455,"15.2-15.3":0.00455,"15.4":0.0091,"15.5":0.0091,"15.6":0.60488,"16.0":0.21376,"16.1":0.09551,"16.2":0.04548,"16.3":0.14554,"16.4":0.05458,"16.5":0.24559,"16.6":0.80954,"17.0":0.08186,"17.1":0.82319,"17.2":0.32746,"17.3":0.10915,"17.4":0.29562,"17.5":0.29562,"17.6":1.77827,"18.0":0.13644,"18.1":0.10006,"18.2":0.05458,"18.3":0.5685,"18.4":0.59124,"18.5":7.16765,"26.0":0.03638},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00682,"5.0-5.1":0,"6.0-6.1":0.01363,"7.0-7.1":0.01363,"8.1-8.4":0,"9.0-9.2":0.00682,"9.3":0.0409,"10.0-10.2":0.00341,"10.3":0.06817,"11.0-11.2":0.4363,"11.3-11.4":0.02386,"12.0-12.1":0.00682,"12.2-12.5":0.22838,"13.0-13.1":0.00341,"13.2":0.01023,"13.3":0.00682,"13.4-13.7":0.03749,"14.0-14.4":0.08862,"14.5-14.8":0.08862,"15.0-15.1":0.06135,"15.2-15.3":0.06135,"15.4":0.07499,"15.5":0.08181,"15.6-15.8":1.05666,"16.0":0.13975,"16.1":0.28632,"16.2":0.14657,"16.3":0.26928,"16.4":0.06135,"16.5":0.10907,"16.6-16.7":1.32594,"17.0":0.07158,"17.1":0.12612,"17.2":0.09885,"17.3":0.13975,"17.4":0.24883,"17.5":0.52151,"17.6-17.7":1.36344,"18.0":0.33745,"18.1":0.76012,"18.2":0.40221,"18.3":1.72816,"18.4":1.83382,"18.5":21.49798,"26.0":0},P:{"26":0.0105,"27":0.05248,"28":1.88925,_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0105},I:{"0":0.01089,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.09814,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00531,"8":0.01061,"11":0.01592,_:"7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":17.91625},R:{_:"0"},M:{"0":0.92139},Q:{_:"14.9"},O:{"0":0.00545},H:{"0":0}}; +module.exports={C:{"2":0.00421,"3":0.00421,"4":0.00841,"5":0.00421,"11":0.00421,"15":0.00421,"16":0.00421,"19":0.00421,"23":0.00421,"27":0.00421,"34":0.00421,"35":0.00421,"37":0.00421,"39":0.00421,"40":0.00841,"42":0.00421,"52":0.00841,"78":0.00421,"103":0.00841,"113":0.00421,"114":0.03365,"115":0.13459,"118":0.00421,"122":0.00421,"123":0.01262,"124":0.04206,"125":1.74128,"126":1.31648,_:"6 7 8 9 10 12 13 14 17 18 20 21 22 24 25 26 28 29 30 31 32 33 36 38 41 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 116 117 119 120 121 127 128 129","3.5":0.00421,"3.6":0.00841},D:{"6":0.00421,"16":0.00421,"19":0.00421,"21":0.00421,"29":0.00421,"30":0.00421,"31":0.00421,"36":0.00421,"37":0.00421,"38":0.00421,"39":0.00841,"40":0.00421,"41":0.00421,"42":0.00841,"43":0.01262,"44":0.01682,"45":0.01682,"46":0.01262,"47":0.01682,"51":0.01682,"70":0.01682,"77":0.00421,"79":0.01682,"81":0.00421,"84":0.00841,"87":0.00841,"90":0.00421,"91":0.00841,"92":0.00841,"94":0.00421,"100":0.00421,"102":0.00841,"103":0.08412,"105":0.04206,"108":0.00841,"109":0.96317,"110":0.00421,"112":0.01262,"113":0.05888,"114":0.02524,"115":0.00421,"116":0.71081,"117":0.00841,"118":0.01262,"119":0.01262,"120":0.5636,"121":0.02524,"122":0.14721,"123":0.5594,"124":10.82204,"125":3.9957,_:"4 5 7 8 9 10 11 12 13 14 15 17 18 20 22 23 24 25 26 27 28 32 33 34 35 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 78 80 83 85 86 88 89 93 95 96 97 98 99 101 104 106 107 111 126 127 128"},F:{"25":0.00421,"31":0.00841,"107":0.10515,"108":0.01682,"109":1.65296,"110":0.02103,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00421},B:{"12":0.00841,"94":0.00421,"100":0.00421,"108":0.00421,"109":0.00421,"118":0.09674,"120":0.02524,"121":0.00421,"122":0.00421,"123":0.03785,"124":1.39219,"125":0.62669,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117 119"},E:{"8":0.00421,"9":0.02524,"14":0.19768,"15":0.00841,_:"0 4 5 6 7 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00421,"13.1":0.05468,"14.1":0.10936,"15.1":0.03365,"15.2-15.3":0.04206,"15.4":0.03785,"15.5":0.11777,"15.6":0.76129,"16.0":0.33648,"16.1":0.09674,"16.2":0.26077,"16.3":0.66875,"16.4":0.11777,"16.5":0.22712,"16.6":1.50575,"17.0":0.08833,"17.1":0.44163,"17.2":0.31124,"17.3":0.74026,"17.4":7.49509,"17.5":1.46369},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00734,"5.0-5.1":0.00734,"6.0-6.1":0.01836,"7.0-7.1":0.0257,"8.1-8.4":0.00734,"9.0-9.2":0.01836,"9.3":0.08444,"10.0-10.2":0.01468,"10.3":0.13216,"11.0-11.2":0.19457,"11.3-11.4":0.03671,"12.0-12.1":0.02203,"12.2-12.5":0.53231,"13.0-13.1":0.01101,"13.2":0.0514,"13.3":0.0257,"13.4-13.7":0.11748,"14.0-14.4":0.20191,"14.5-14.8":0.31205,"15.0-15.1":0.15052,"15.2-15.3":0.1652,"15.4":0.18723,"15.5":0.23495,"15.6-15.8":2.11457,"16.0":0.48092,"16.1":0.99121,"16.2":0.48092,"16.3":0.83335,"16.4":0.17621,"16.5":0.3561,"16.6-16.7":2.83779,"17.0":0.30838,"17.1":0.50295,"17.2":0.52497,"17.3":0.96918,"17.4":22.00844,"17.5":1.55289,"17.6":0},P:{"4":0.0108,"21":0.06477,"23":0.0108,"24":0.06477,"25":1.14433,_:"20 22 5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.0108,"19.0":0.03239},I:{"0":0.17317,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00038},K:{"0":0.26078,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00862,"7":0.01293,"8":0.12495,"9":0.02154,"10":0.02154,"11":0.15511,_:"5.5"},S:{"2.5":0.0058,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":19.08714},R:{_:"0"},M:{"0":0.24919},Q:{_:"14.9"},O:{"0":0.03477},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AE.js b/node_modules/caniuse-lite/data/regions/AE.js index 17273cb5f..e722b8c2f 100644 --- a/node_modules/caniuse-lite/data/regions/AE.js +++ b/node_modules/caniuse-lite/data/regions/AE.js @@ -1 +1 @@ -module.exports={C:{"77":0.01058,"109":0.00212,"115":0.02115,"127":0.00212,"128":0.00846,"132":0.00635,"133":0.00212,"135":0.00212,"136":0.00423,"137":0.00212,"138":0.0275,"139":0.26861,"140":0.03384,"141":0.01692,"142":0.00423,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 134 143 3.5 3.6"},D:{"38":0.00212,"39":0.00212,"40":0.00212,"41":0.00423,"42":0.00212,"43":0.00212,"44":0.00212,"45":0.00212,"46":0.00212,"47":0.00212,"48":0.00212,"49":0.00423,"50":0.00212,"51":0.00212,"52":0.00212,"53":0.00212,"54":0.00212,"55":0.00212,"56":0.00423,"57":0.00212,"58":0.00846,"59":0.00212,"60":0.00212,"65":0.00212,"68":0.00423,"69":0.00212,"70":0.00212,"72":0.00212,"73":0.00212,"75":0.00212,"76":0.00423,"77":0.00212,"78":0.00212,"79":0.00635,"80":0.00212,"81":0.00212,"83":0.00635,"85":0.00212,"86":0.00212,"87":0.02115,"88":0.00423,"90":0.00212,"91":0.01269,"92":0.00212,"93":0.01692,"94":0.00212,"97":0.00423,"98":0.00423,"99":0.00846,"100":0.00212,"101":0.00212,"103":0.07826,"104":0.02115,"105":0.00212,"106":0.00635,"107":0.00846,"108":0.01692,"109":0.18189,"110":0.00635,"111":0.01481,"112":0.00635,"113":0.00212,"114":0.01904,"116":0.04865,"118":0.01058,"119":0.01058,"120":0.00635,"121":0.01269,"122":0.02327,"123":0.00635,"124":0.01058,"125":0.46107,"126":0.03173,"127":0.01058,"128":0.06134,"129":0.01058,"130":0.01904,"131":0.1121,"132":0.1692,"133":0.08672,"134":0.05076,"135":2.21018,"136":1.3959,"137":7.58439,"138":0.2961,"139":0.00423,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 66 67 71 74 84 89 95 96 102 115 117 140 141"},F:{"46":0.00212,"89":0.04019,"90":0.02538,"95":0.00212,"100":0.00212,"110":0.00212,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00212,"92":0.00423,"105":0.00212,"106":0.00212,"109":0.00846,"114":0.00212,"122":0.00212,"124":0.00212,"127":0.00212,"128":0.00212,"129":0.00212,"130":0.00635,"131":0.00635,"132":0.00846,"133":0.00423,"134":0.01692,"135":0.01692,"136":0.24111,"137":1.37898,"138":0.1121,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126"},E:{"13":0.00212,"14":0.00212,"15":0.00212,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 10.1 11.1 12.1 15.2-15.3","5.1":0.00212,"9.1":0.00423,"13.1":0.00635,"14.1":0.01269,"15.1":0.00212,"15.4":0.00423,"15.5":0.00423,"15.6":0.05288,"16.0":0.00635,"16.1":0.01692,"16.2":0.00635,"16.3":0.01269,"16.4":0.00635,"16.5":0.00846,"16.6":0.0698,"17.0":0.00846,"17.1":0.0423,"17.2":0.00846,"17.3":0.00846,"17.4":0.02115,"17.5":0.04019,"17.6":0.10998,"18.0":0.02327,"18.1":0.03596,"18.2":0.01269,"18.3":0.09095,"18.4":0.08037,"18.5":0.82062,"26.0":0.00212},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00174,"5.0-5.1":0,"6.0-6.1":0.00348,"7.0-7.1":0.00348,"8.1-8.4":0,"9.0-9.2":0.00174,"9.3":0.01044,"10.0-10.2":0.00087,"10.3":0.01739,"11.0-11.2":0.11132,"11.3-11.4":0.00609,"12.0-12.1":0.00174,"12.2-12.5":0.05827,"13.0-13.1":0.00087,"13.2":0.00261,"13.3":0.00174,"13.4-13.7":0.00957,"14.0-14.4":0.02261,"14.5-14.8":0.02261,"15.0-15.1":0.01565,"15.2-15.3":0.01565,"15.4":0.01913,"15.5":0.02087,"15.6-15.8":0.26961,"16.0":0.03566,"16.1":0.07306,"16.2":0.0374,"16.3":0.06871,"16.4":0.01565,"16.5":0.02783,"16.6-16.7":0.33832,"17.0":0.01826,"17.1":0.03218,"17.2":0.02522,"17.3":0.03566,"17.4":0.06349,"17.5":0.13307,"17.6-17.7":0.34789,"18.0":0.0861,"18.1":0.19395,"18.2":0.10263,"18.3":0.44095,"18.4":0.46791,"18.5":5.4853,"26.0":0},P:{"4":0.01019,"21":0.01019,"22":0.01019,"23":0.02038,"24":0.02038,"25":0.03057,"26":0.02038,"27":0.08153,"28":1.25355,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.01019,"7.2-7.4":0.02038,"19.0":0.01019},I:{"0":0.04723,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.30103,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02538,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":67.54482},R:{_:"0"},M:{"0":0.11828},Q:{"14.9":0.00789},O:{"0":2.7361},H:{"0":0}}; +module.exports={C:{"3":0.00268,"34":0.00268,"52":0.00268,"75":0.00268,"77":0.00268,"88":0.00268,"105":0.00268,"109":0.00268,"114":0.00268,"115":0.067,"119":0.00268,"121":0.00268,"122":0.00536,"123":0.00536,"124":0.01072,"125":0.31624,"126":0.24924,"127":0.0134,"128":0.0134,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 116 117 118 120 129 3.5 3.6"},D:{"22":0.00536,"34":0.00268,"38":0.00536,"41":0.00536,"43":0.00268,"46":0.00268,"49":0.00804,"51":0.00268,"52":0.03216,"56":0.00536,"58":0.03216,"65":0.00268,"68":0.00268,"70":0.00268,"72":0.01072,"73":0.00268,"74":0.00268,"75":0.00804,"76":0.01876,"78":0.00268,"79":0.02412,"80":0.00268,"81":0.00804,"83":0.01072,"84":0.00268,"85":0.00804,"86":0.01876,"87":0.201,"88":0.01876,"89":0.00268,"90":0.00536,"91":0.00804,"92":0.00268,"93":0.02948,"94":0.00536,"95":0.00536,"96":0.00268,"97":0.00268,"98":0.0268,"99":0.01072,"100":0.01876,"101":0.03484,"102":0.02948,"103":0.15544,"104":0.02144,"105":0.01072,"106":0.01608,"107":0.0134,"108":0.0268,"109":0.64588,"110":0.01608,"111":0.0134,"112":0.0134,"113":0.10988,"114":0.13936,"115":0.01876,"116":0.15544,"117":0.0134,"118":0.03216,"119":0.03484,"120":0.2278,"121":0.07772,"122":0.21172,"123":0.58692,"124":11.0952,"125":3.9932,"126":0.00804,"127":0.00268,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 42 44 45 47 48 50 53 54 55 57 59 60 61 62 63 64 66 67 69 71 77 128"},F:{"46":0.00536,"82":0.00268,"83":0.00268,"85":0.00268,"89":0.00268,"92":0.00268,"95":0.01608,"99":0.00268,"105":0.00804,"106":0.01072,"107":0.134,"108":0.01876,"109":0.47704,"110":0.01876,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 86 87 88 90 91 93 94 96 97 98 100 101 102 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00268,"18":0.00268,"92":0.01608,"100":0.00268,"105":0.00268,"107":0.00268,"108":0.00268,"109":0.0134,"110":0.00268,"112":0.00268,"113":0.00268,"114":0.00804,"115":0.00804,"116":0.00268,"117":0.00268,"118":0.00268,"119":0.00536,"120":0.00804,"121":0.00804,"122":0.03484,"123":0.09112,"124":1.73396,"125":1.00232,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 106 111"},E:{"4":0.00268,"9":0.00536,"13":0.00268,"14":0.01876,"15":0.00268,_:"0 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00536,"13.1":0.02144,"14.1":0.07236,"15.1":0.02144,"15.2-15.3":0.00804,"15.4":0.01876,"15.5":0.0268,"15.6":0.19296,"16.0":0.02412,"16.1":0.04288,"16.2":0.03484,"16.3":0.06968,"16.4":0.02144,"16.5":0.04824,"16.6":0.19028,"17.0":0.04824,"17.1":0.05092,"17.2":0.07504,"17.3":0.10184,"17.4":1.18724,"17.5":0.16348},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00224,"5.0-5.1":0.00224,"6.0-6.1":0.0056,"7.0-7.1":0.00784,"8.1-8.4":0.00224,"9.0-9.2":0.0056,"9.3":0.02576,"10.0-10.2":0.00448,"10.3":0.04032,"11.0-11.2":0.05936,"11.3-11.4":0.0112,"12.0-12.1":0.00672,"12.2-12.5":0.16239,"13.0-13.1":0.00336,"13.2":0.01568,"13.3":0.00784,"13.4-13.7":0.03584,"14.0-14.4":0.0616,"14.5-14.8":0.0952,"15.0-15.1":0.04592,"15.2-15.3":0.0504,"15.4":0.05712,"15.5":0.07168,"15.6-15.8":0.6451,"16.0":0.14671,"16.1":0.30239,"16.2":0.14671,"16.3":0.25423,"16.4":0.05376,"16.5":0.10864,"16.6-16.7":0.86573,"17.0":0.09408,"17.1":0.15343,"17.2":0.16015,"17.3":0.29567,"17.4":6.71416,"17.5":0.47374,"17.6":0},P:{"4":0.09155,"20":0.01017,"21":0.03052,"22":0.06103,"23":0.08138,"24":0.15259,"25":1.61741,"5.0-5.4":0.01017,"6.2-6.4":0.01017,"7.2-7.4":0.03052,_:"8.2 9.2 10.1 12.0 14.0 15.0","11.1-11.2":0.01017,"13.0":0.01017,"16.0":0.01017,"17.0":0.01017,"18.0":0.01017,"19.0":0.02034},I:{"0":0.06562,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":1.3176,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00871,"9":0.0029,"10":0.0029,"11":0.22936,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":57.20256},R:{_:"0"},M:{"0":0.13908},Q:{"14.9":0.00732},O:{"0":2.06424},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AF.js b/node_modules/caniuse-lite/data/regions/AF.js index 3b1ac1fbc..c28af4239 100644 --- a/node_modules/caniuse-lite/data/regions/AF.js +++ b/node_modules/caniuse-lite/data/regions/AF.js @@ -1 +1 @@ -module.exports={C:{"29":0.00107,"48":0.00107,"53":0.00107,"56":0.00213,"72":0.00213,"83":0.00107,"95":0.00107,"106":0.00213,"108":0.00107,"112":0.00107,"115":0.07355,"126":0.00107,"127":0.00213,"128":0.0064,"133":0.00107,"134":0.00107,"135":0.00107,"136":0.00107,"137":0.00426,"138":0.00746,"139":0.16736,"140":0.03198,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 107 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 129 130 131 132 141 142 143 3.5 3.6"},D:{"28":0.00107,"30":0.00213,"33":0.00213,"34":0.00107,"36":0.00213,"39":0.00107,"40":0.00107,"41":0.00107,"43":0.00213,"44":0.00213,"45":0.00107,"46":0.00533,"47":0.00107,"48":0.00107,"49":0.00107,"50":0.00426,"51":0.00107,"52":0.00213,"53":0.00107,"54":0.00107,"55":0.00107,"56":0.00213,"57":0.00107,"58":0.00213,"59":0.00107,"61":0.00107,"62":0.00853,"63":0.00213,"64":0.00107,"68":0.00107,"69":0.00213,"70":0.00426,"71":0.0032,"72":0.00213,"73":0.00213,"74":0.00107,"77":0.00107,"78":0.01173,"79":0.04264,"80":0.00533,"81":0.00107,"83":0.00107,"84":0.0032,"85":0.00107,"86":0.00746,"87":0.01706,"89":0.00107,"92":0.00213,"93":0.00107,"94":0.00107,"96":0.00746,"97":0.00213,"98":0.00107,"99":0.01492,"101":0.00213,"102":0.00213,"103":0.0032,"104":0.00107,"105":0.00213,"106":0.00426,"107":0.01066,"108":0.0064,"109":0.74407,"111":0.00746,"112":0.00213,"113":0.00213,"114":0.00746,"115":0.00107,"116":0.0032,"117":0.00533,"118":0.00959,"119":0.00853,"120":0.00426,"121":0.00533,"122":0.01599,"123":0.0032,"124":0.01812,"125":0.06716,"126":0.01386,"127":0.00746,"128":0.00746,"129":0.00533,"130":0.00746,"131":0.02665,"132":0.02239,"133":0.03838,"134":0.01706,"135":0.06929,"136":0.68331,"137":2.97201,"138":0.17802,"139":0.00107,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 31 32 35 37 38 42 60 65 66 67 75 76 88 90 91 95 100 110 140 141"},F:{"79":0.00853,"85":0.00213,"89":0.01173,"90":0.00533,"95":0.02239,"101":0.00107,"113":0.00107,"116":0.00107,"117":0.0032,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 91 92 93 94 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00533,"13":0.00107,"14":0.00426,"16":0.00746,"17":0.0032,"18":0.01919,"81":0.00213,"84":0.00213,"88":0.00107,"89":0.00533,"90":0.00426,"92":0.07888,"100":0.00746,"107":0.00107,"109":0.01599,"114":0.00213,"117":0.00107,"122":0.0064,"125":0.00107,"126":0.00107,"127":0.00107,"128":0.00213,"130":0.00213,"131":0.0064,"132":0.00426,"133":0.02025,"134":0.00746,"135":0.01386,"136":0.10873,"137":0.51594,"138":0.04264,_:"15 79 80 83 85 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112 113 115 116 118 119 120 121 123 124 129"},E:{"14":0.00107,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1","5.1":0.00107,"13.1":0.00107,"15.1":0.0032,"15.2-15.3":0.00107,"15.4":0.00107,"15.5":0.01066,"15.6":0.03411,"16.0":0.00213,"16.1":0.01279,"16.2":0.00213,"16.3":0.01599,"16.4":0.05756,"16.5":0.00746,"16.6":0.06716,"17.0":0.0032,"17.1":0.06289,"17.2":0.00959,"17.3":0.00746,"17.4":0.01386,"17.5":0.0533,"17.6":0.14391,"18.0":0.00746,"18.1":0.05437,"18.2":0.02239,"18.3":0.09061,"18.4":0.05863,"18.5":0.59163,"26.0":0.00107},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00139,"5.0-5.1":0,"6.0-6.1":0.00278,"7.0-7.1":0.00278,"8.1-8.4":0,"9.0-9.2":0.00139,"9.3":0.00833,"10.0-10.2":0.00069,"10.3":0.01388,"11.0-11.2":0.08886,"11.3-11.4":0.00486,"12.0-12.1":0.00139,"12.2-12.5":0.04651,"13.0-13.1":0.00069,"13.2":0.00208,"13.3":0.00139,"13.4-13.7":0.00764,"14.0-14.4":0.01805,"14.5-14.8":0.01805,"15.0-15.1":0.0125,"15.2-15.3":0.0125,"15.4":0.01527,"15.5":0.01666,"15.6-15.8":0.21522,"16.0":0.02846,"16.1":0.05832,"16.2":0.02985,"16.3":0.05485,"16.4":0.0125,"16.5":0.02222,"16.6-16.7":0.27006,"17.0":0.01458,"17.1":0.02569,"17.2":0.02013,"17.3":0.02846,"17.4":0.05068,"17.5":0.10622,"17.6-17.7":0.2777,"18.0":0.06873,"18.1":0.15482,"18.2":0.08192,"18.3":0.35198,"18.4":0.37351,"18.5":4.37863,"26.0":0},P:{"4":0.08042,"20":0.01005,"21":0.03016,"22":0.0201,"23":0.03016,"24":0.05026,"25":0.06031,"26":0.10052,"27":0.15078,"28":0.5428,"5.0-5.4":0.03016,"6.2-6.4":0.01005,"7.2-7.4":0.10052,_:"8.2 10.1 12.0 14.0 15.0","9.2":0.05026,"11.1-11.2":0.0201,"13.0":0.0201,"16.0":0.0201,"17.0":0.01005,"18.0":0.01005,"19.0":0.0201},I:{"0":0.01784,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.35634,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00213,"11":0.02239,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":82.56925},R:{_:"0"},M:{"0":0.04468},Q:{_:"14.9"},O:{"0":0.39314},H:{"0":0.01}}; +module.exports={C:{"32":0.00136,"38":0.00136,"44":0.00136,"45":0.00136,"48":0.00273,"49":0.00136,"51":0.00136,"52":0.00136,"56":0.00409,"57":0.00409,"64":0.00136,"66":0.00136,"69":0.00136,"72":0.00409,"74":0.00136,"84":0.00136,"90":0.00136,"92":0.00136,"94":0.00136,"95":0.00273,"101":0.00136,"104":0.00409,"106":0.00273,"107":0.00136,"108":0.00136,"109":0.00136,"110":0.00273,"111":0.00136,"112":0.00136,"114":0.00546,"115":0.23461,"117":0.00136,"118":0.00136,"120":0.00273,"121":0.00409,"122":0.00273,"123":0.00273,"124":0.00682,"125":0.17459,"126":0.15959,"127":0.00136,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 39 40 41 42 43 46 47 50 53 54 55 58 59 60 61 62 63 65 67 68 70 71 73 75 76 77 78 79 80 81 82 83 85 86 87 88 89 91 93 96 97 98 99 100 102 103 105 113 116 119 128 129 3.5 3.6"},D:{"31":0.00136,"34":0.00273,"35":0.00136,"36":0.00273,"38":0.00136,"39":0.00273,"41":0.00136,"42":0.00136,"43":0.00409,"44":0.00273,"45":0.00136,"46":0.00409,"47":0.00273,"48":0.00409,"50":0.00136,"52":0.00136,"54":0.00546,"55":0.00273,"56":0.00273,"57":0.00136,"58":0.00136,"59":0.00136,"61":0.00136,"62":0.01773,"63":0.01091,"64":0.00136,"65":0.00136,"66":0.00273,"67":0.00273,"68":0.00409,"69":0.00273,"70":0.00682,"71":0.01364,"72":0.00273,"73":0.00682,"74":0.00546,"76":0.00136,"77":0.00409,"78":0.02319,"79":0.02592,"80":0.00955,"81":0.00546,"83":0.00409,"84":0.00409,"85":0.00273,"86":0.01637,"87":0.01364,"88":0.00409,"89":0.00409,"90":0.00546,"91":0.00409,"92":0.00682,"94":0.00409,"95":0.00273,"96":0.00955,"97":0.00136,"98":0.00409,"99":0.00546,"100":0.00136,"101":0.00546,"102":0.01637,"103":0.00818,"104":0.00409,"105":0.01091,"106":0.01364,"107":0.02864,"108":0.0191,"109":1.45675,"110":0.01637,"111":0.00818,"112":0.00955,"113":0.00409,"114":0.01091,"115":0.00546,"116":0.00955,"117":0.0191,"118":0.015,"119":0.01773,"120":0.04774,"121":0.02864,"122":0.09275,"123":0.17323,"124":3.46456,"125":1.27125,"126":0.00409,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 40 49 51 53 60 75 93 127 128"},F:{"64":0.00136,"69":0.00136,"79":0.01637,"81":0.00136,"87":0.00136,"95":0.04501,"102":0.01228,"107":0.01091,"108":0.00273,"109":0.1896,"110":0.02182,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 70 71 72 73 74 75 76 77 78 80 82 83 84 85 86 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01091,"13":0.00818,"14":0.00955,"15":0.00409,"16":0.04092,"17":0.00682,"18":0.09684,"81":0.00273,"84":0.01091,"86":0.00136,"88":0.00136,"89":0.01228,"90":0.02864,"92":0.14049,"98":0.00136,"100":0.03683,"109":0.05729,"110":0.00273,"111":0.00409,"114":0.00136,"115":0.00136,"116":0.00136,"117":0.00136,"118":0.00273,"119":0.00682,"120":0.00955,"121":0.01637,"122":0.02046,"123":0.02864,"124":0.65745,"125":0.37374,_:"79 80 83 85 87 91 93 94 95 96 97 99 101 102 103 104 105 106 107 108 112 113"},E:{"13":0.00273,"14":0.00136,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 17.6","5.1":0.00136,"11.1":0.00136,"13.1":0.00409,"14.1":0.00136,"15.1":0.01228,"15.2-15.3":0.01091,"15.4":0.01364,"15.5":0.02864,"15.6":0.07229,"16.0":0.00409,"16.1":0.02592,"16.2":0.02728,"16.3":0.03001,"16.4":0.01364,"16.5":0.11458,"16.6":0.1173,"17.0":0.02728,"17.1":0.04092,"17.2":0.04228,"17.3":0.07093,"17.4":0.73656,"17.5":0.13504},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00178,"5.0-5.1":0.00178,"6.0-6.1":0.00445,"7.0-7.1":0.00623,"8.1-8.4":0.00178,"9.0-9.2":0.00445,"9.3":0.02046,"10.0-10.2":0.00356,"10.3":0.03202,"11.0-11.2":0.04714,"11.3-11.4":0.0089,"12.0-12.1":0.00534,"12.2-12.5":0.12898,"13.0-13.1":0.00267,"13.2":0.01245,"13.3":0.00623,"13.4-13.7":0.02846,"14.0-14.4":0.04892,"14.5-14.8":0.07561,"15.0-15.1":0.03647,"15.2-15.3":0.04003,"15.4":0.04536,"15.5":0.05693,"15.6-15.8":0.51236,"16.0":0.11653,"16.1":0.24017,"16.2":0.11653,"16.3":0.20192,"16.4":0.0427,"16.5":0.08628,"16.6-16.7":0.68759,"17.0":0.07472,"17.1":0.12186,"17.2":0.1272,"17.3":0.23483,"17.4":5.3326,"17.5":0.37626,"17.6":0},P:{"4":0.2032,"20":0.02032,"21":0.0508,"22":0.09144,"23":0.18288,"24":0.22352,"25":0.62992,"5.0-5.4":0.0508,"6.2-6.4":0.04064,"7.2-7.4":0.13208,_:"8.2 10.1 12.0","9.2":0.06096,"11.1-11.2":0.04064,"13.0":0.02032,"14.0":0.04064,"15.0":0.01016,"16.0":0.03048,"17.0":0.02032,"18.0":0.02032,"19.0":0.03048},I:{"0":0.03441,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.71724,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00136,"9":0.00273,"11":0.20187,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.35474},R:{_:"0"},M:{"0":0.06909},Q:{_:"14.9"},O:{"0":0.45771},H:{"0":0.06}}; diff --git a/node_modules/caniuse-lite/data/regions/AG.js b/node_modules/caniuse-lite/data/regions/AG.js index 23c4a4998..644fb4dfc 100644 --- a/node_modules/caniuse-lite/data/regions/AG.js +++ b/node_modules/caniuse-lite/data/regions/AG.js @@ -1 +1 @@ -module.exports={C:{"88":0.00374,"115":0.0523,"128":0.01121,"133":0.03362,"136":0.01494,"137":0.00374,"138":0.02242,"139":0.40349,"140":0.04483,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 134 135 141 142 143 3.5 3.6"},D:{"39":0.01121,"40":0.01121,"41":0.01494,"42":0.01494,"43":0.01494,"44":0.00747,"45":0.00747,"46":0.01868,"47":0.01121,"48":0.01121,"49":0.01121,"50":0.01121,"51":0.00374,"52":0.00374,"53":0.01494,"54":0.00374,"55":0.00747,"56":0.01121,"57":0.01121,"58":0.01121,"59":0.00747,"60":0.00374,"76":0.00374,"79":0.00374,"87":0.01494,"91":0.03362,"93":0.00747,"95":0.00747,"98":0.00374,"99":0.00374,"103":0.24658,"105":0.00374,"108":0.05604,"109":0.78456,"111":0.01121,"114":0.01121,"116":0.69116,"118":0.00374,"119":0.01121,"120":0.00374,"121":0.00747,"122":0.04857,"124":0.00747,"125":4.19179,"126":0.01494,"128":0.03362,"129":0.01121,"130":0.02989,"131":0.06351,"132":0.03362,"133":0.07846,"134":0.08593,"135":0.19427,"136":1.94272,"137":11.70489,"138":0.35492,"139":0.01121,"140":0.00374,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 92 94 96 97 100 101 102 104 106 107 110 112 113 115 117 123 127 141"},F:{"89":0.00374,"90":0.00747,"110":0.00374,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"104":0.00747,"109":0.06351,"114":0.00747,"121":0.01121,"129":0.01121,"130":0.00747,"131":0.00747,"133":0.01494,"134":0.01121,"135":0.06725,"136":0.78082,"137":5.22293,"138":0.27646,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 113 115 116 117 118 119 120 122 123 124 125 126 127 128 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.4 16.5 17.0","13.1":0.01494,"14.1":0.01494,"15.1":0.00374,"15.6":0.0934,"16.0":0.00374,"16.1":0.02242,"16.2":0.00374,"16.3":0.00747,"16.6":0.09714,"17.1":0.10087,"17.2":0.00374,"17.3":0.00747,"17.4":0.01494,"17.5":0.08593,"17.6":0.24284,"18.0":0.11582,"18.1":0.08219,"18.2":0.01868,"18.3":0.30635,"18.4":0.22416,"18.5":1.3076,"26.0":0.00374},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0037,"5.0-5.1":0,"6.0-6.1":0.00739,"7.0-7.1":0.00739,"8.1-8.4":0,"9.0-9.2":0.0037,"9.3":0.02217,"10.0-10.2":0.00185,"10.3":0.03696,"11.0-11.2":0.23653,"11.3-11.4":0.01294,"12.0-12.1":0.0037,"12.2-12.5":0.12381,"13.0-13.1":0.00185,"13.2":0.00554,"13.3":0.0037,"13.4-13.7":0.02033,"14.0-14.4":0.04804,"14.5-14.8":0.04804,"15.0-15.1":0.03326,"15.2-15.3":0.03326,"15.4":0.04065,"15.5":0.04435,"15.6-15.8":0.57284,"16.0":0.07576,"16.1":0.15522,"16.2":0.07946,"16.3":0.14598,"16.4":0.03326,"16.5":0.05913,"16.6-16.7":0.71883,"17.0":0.03881,"17.1":0.06837,"17.2":0.05359,"17.3":0.07576,"17.4":0.1349,"17.5":0.28273,"17.6-17.7":0.73915,"18.0":0.18294,"18.1":0.41208,"18.2":0.21805,"18.3":0.93688,"18.4":0.99416,"18.5":11.65458,"26.0":0},P:{"4":0.04283,"21":0.07495,"22":0.02141,"24":0.04283,"25":0.03212,"26":0.04283,"27":0.12848,"28":5.33199,_:"20 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.03212,"16.0":0.01071,"19.0":0.02141},I:{"0":0.03127,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.0689,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.2847},R:{_:"0"},M:{"0":0.0689},Q:{"14.9":0.00626},O:{"0":0.01879},H:{"0":0}}; +module.exports={C:{"87":0.00367,"88":0.03299,"115":0.06231,"123":0.00367,"124":0.05864,"125":0.33352,"126":0.32252,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"63":0.00367,"65":0.00733,"67":0.00367,"73":0.00367,"74":0.01466,"76":0.00367,"79":0.011,"84":0.00733,"87":0.02932,"88":0.05131,"89":0.00733,"91":0.011,"93":0.03665,"94":0.02199,"96":0.01466,"98":0.00367,"102":0.0733,"103":0.16493,"105":0.00367,"106":0.01466,"107":0.00367,"108":0.00733,"109":0.94191,"110":0.00733,"112":0.00733,"114":0.00367,"115":0.00733,"116":0.0843,"117":0.1576,"118":0.00733,"119":0.03665,"120":0.02199,"121":0.09896,"122":0.15393,"123":0.71101,"124":13.70344,"125":4.09014,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 68 69 70 71 72 75 77 78 80 81 83 85 86 90 92 95 97 99 100 101 104 111 113 126 127 128"},F:{"28":0.02932,"102":0.00367,"107":0.10995,"108":0.02199,"109":0.50577,"110":0.00733,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01466,"83":0.00367,"92":0.00367,"96":0.011,"100":0.00733,"105":0.00367,"109":0.09163,"114":0.011,"116":0.10995,"119":0.00733,"120":0.011,"121":0.011,"122":0.02566,"123":0.21624,"124":4.19643,"125":2.03408,_:"12 13 14 15 16 17 79 80 81 84 85 86 87 88 89 90 91 93 94 95 97 98 99 101 102 103 104 106 107 108 110 111 112 113 115 117 118"},E:{"14":0.00367,"15":0.01466,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.01466,"14.1":0.10262,"15.1":0.01466,"15.2-15.3":0.00733,"15.4":0.011,"15.5":0.00733,"15.6":0.10629,"16.0":0.12828,"16.1":0.02566,"16.2":0.04032,"16.3":0.16126,"16.4":0.01833,"16.5":0.03665,"16.6":0.26755,"17.0":0.04032,"17.1":0.08063,"17.2":0.08796,"17.3":0.08063,"17.4":1.87648,"17.5":0.24922},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00397,"5.0-5.1":0.00397,"6.0-6.1":0.00993,"7.0-7.1":0.0139,"8.1-8.4":0.00397,"9.0-9.2":0.00993,"9.3":0.04569,"10.0-10.2":0.00795,"10.3":0.07151,"11.0-11.2":0.10528,"11.3-11.4":0.01986,"12.0-12.1":0.01192,"12.2-12.5":0.28802,"13.0-13.1":0.00596,"13.2":0.02781,"13.3":0.0139,"13.4-13.7":0.06356,"14.0-14.4":0.10925,"14.5-14.8":0.16884,"15.0-15.1":0.08144,"15.2-15.3":0.08939,"15.4":0.1013,"15.5":0.12713,"15.6-15.8":1.14413,"16.0":0.26021,"16.1":0.53631,"16.2":0.26021,"16.3":0.4509,"16.4":0.09534,"16.5":0.19268,"16.6-16.7":1.53544,"17.0":0.16685,"17.1":0.27213,"17.2":0.28405,"17.3":0.52439,"17.4":11.90812,"17.5":0.84022,"17.6":0},P:{"4":0.06674,"20":0.01112,"21":0.07786,"22":0.03337,"23":0.13348,"24":0.37819,"25":3.9932,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0 15.0 18.0","6.2-6.4":0.03337,"7.2-7.4":0.15572,"11.1-11.2":0.02225,"14.0":0.02225,"16.0":0.05562,"17.0":0.02225,"19.0":0.01112},I:{"0":0.01262,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.42438,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.05803,"11":0.01161,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.27729},R:{_:"0"},M:{"0":0.20902},Q:{_:"14.9"},O:{"0":0.05067},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AI.js b/node_modules/caniuse-lite/data/regions/AI.js index 04f499b5d..86cb856a0 100644 --- a/node_modules/caniuse-lite/data/regions/AI.js +++ b/node_modules/caniuse-lite/data/regions/AI.js @@ -1 +1 @@ -module.exports={C:{"128":0.00886,"138":0.00886,"139":0.07976,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 140 141 142 143 3.5 3.6"},D:{"40":0.02216,"41":0.02216,"43":0.02216,"44":0.00886,"45":0.04431,"46":0.02216,"47":0.01329,"48":0.02216,"49":0.01329,"50":0.01329,"51":0.00886,"52":0.00886,"53":0.02659,"54":0.01329,"55":0.00886,"56":0.02659,"57":0.04874,"58":0.01329,"59":0.02216,"60":0.04431,"87":0.00886,"103":0.02216,"109":0.23484,"116":0.06203,"117":0.02216,"122":0.10191,"125":6.26987,"126":0.08419,"129":0.06203,"130":0.02216,"131":0.01329,"132":0.02216,"133":0.0576,"134":0.04431,"135":0.26586,"136":2.92446,"137":12.52644,"138":0.3722,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 118 119 120 121 123 124 127 128 139 140 141"},F:{"95":0.00886,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"128":0.01329,"131":0.02659,"134":0.02216,"135":0.0709,"136":0.72225,"137":4.56393,"138":0.06203,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133"},E:{"13":0.00886,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.4 15.5 26.0","13.1":0.01329,"15.1":0.0576,"15.2-15.3":0.01329,"15.6":0.09305,"16.0":0.00886,"16.1":0.00886,"16.2":0.0709,"16.3":0.0576,"16.4":0.24371,"16.5":0.02216,"16.6":0.85518,"17.0":0.00886,"17.1":0.46526,"17.2":0.06203,"17.3":0.15509,"17.4":0.10191,"17.5":0.54058,"17.6":2.68962,"18.0":0.0576,"18.1":0.17281,"18.2":0.15065,"18.3":0.27915,"18.4":0.70453,"18.5":2.8447},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00484,"5.0-5.1":0,"6.0-6.1":0.00968,"7.0-7.1":0.00968,"8.1-8.4":0,"9.0-9.2":0.00484,"9.3":0.02904,"10.0-10.2":0.00242,"10.3":0.04841,"11.0-11.2":0.30981,"11.3-11.4":0.01694,"12.0-12.1":0.00484,"12.2-12.5":0.16217,"13.0-13.1":0.00242,"13.2":0.00726,"13.3":0.00484,"13.4-13.7":0.02662,"14.0-14.4":0.06293,"14.5-14.8":0.06293,"15.0-15.1":0.04357,"15.2-15.3":0.04357,"15.4":0.05325,"15.5":0.05809,"15.6-15.8":0.75033,"16.0":0.09924,"16.1":0.20331,"16.2":0.10408,"16.3":0.19121,"16.4":0.04357,"16.5":0.07745,"16.6-16.7":0.94154,"17.0":0.05083,"17.1":0.08956,"17.2":0.07019,"17.3":0.09924,"17.4":0.17669,"17.5":0.37032,"17.6-17.7":0.96816,"18.0":0.23962,"18.1":0.53975,"18.2":0.28561,"18.3":1.22715,"18.4":1.30218,"18.5":15.26552,"26.0":0},P:{"4":0.07279,"21":0.0104,"22":0.44711,"23":0.0104,"24":0.04159,"25":0.87342,"26":0.03119,"27":0.20796,"28":1.85082,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.04159,"19.0":0.0208},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.63475,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.0709,_:"6 7 8 9 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.33997},R:{_:"0"},M:{"0":0.04454},Q:{_:"14.9"},O:{"0":0.02784},H:{"0":0}}; +module.exports={C:{"97":0.00401,"105":0.02806,"107":0.00401,"122":0.00401,"125":0.04811,"126":1.14657,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 101 102 103 104 106 108 109 110 111 112 113 114 115 116 117 118 119 120 121 123 124 127 128 129 3.5 3.6"},D:{"41":0.04811,"76":0.00401,"83":0.00802,"86":0.00401,"88":0.00802,"98":0.00802,"101":0.00401,"102":0.00401,"103":0.00401,"106":0.05212,"107":0.02005,"108":0.01203,"109":0.25257,"110":0.08018,"112":0.01203,"113":0.01604,"114":0.00802,"115":0.01203,"116":0.0441,"119":0.04811,"120":0.22851,"121":0.02005,"122":0.01604,"123":0.66549,"124":8.00196,"125":3.51188,"126":0.00401,"127":0.06014,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 84 85 87 89 90 91 92 93 94 95 96 97 99 100 104 105 111 117 118 128"},F:{"109":0.99423,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02405,"92":0.00401,"105":0.00401,"115":0.00401,"116":0.00802,"118":0.01203,"120":0.01604,"121":0.03207,"122":0.00802,"123":0.38486,"124":3.80855,"125":2.72612,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 117 119"},E:{"13":0.02806,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 17.6","13.1":0.16437,"14.1":0.09622,"15.1":0.05212,"15.2-15.3":0.17239,"15.5":0.02005,"15.6":1.2027,"16.0":0.05613,"16.1":0.02405,"16.2":0.28063,"16.3":0.34477,"16.4":0.08419,"16.5":0.2686,"16.6":2.1368,"17.0":0.04811,"17.1":0.25658,"17.2":0.30869,"17.3":0.34477,"17.4":7.52088,"17.5":1.29491},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00699,"5.0-5.1":0.00699,"6.0-6.1":0.01747,"7.0-7.1":0.02445,"8.1-8.4":0.00699,"9.0-9.2":0.01747,"9.3":0.08035,"10.0-10.2":0.01397,"10.3":0.12576,"11.0-11.2":0.18515,"11.3-11.4":0.03493,"12.0-12.1":0.02096,"12.2-12.5":0.50654,"13.0-13.1":0.01048,"13.2":0.04891,"13.3":0.02445,"13.4-13.7":0.11179,"14.0-14.4":0.19213,"14.5-14.8":0.29693,"15.0-15.1":0.14323,"15.2-15.3":0.1572,"15.4":0.17816,"15.5":0.22357,"15.6-15.8":2.01217,"16.0":0.45763,"16.1":0.94321,"16.2":0.45763,"16.3":0.79299,"16.4":0.16768,"16.5":0.33886,"16.6-16.7":2.70036,"17.0":0.29344,"17.1":0.47859,"17.2":0.49955,"17.3":0.92224,"17.4":20.94265,"17.5":1.47769,"17.6":0},P:{"21":0.08492,"22":0.11676,"23":0.0743,"24":0.12738,"25":2.63244,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 16.0 18.0 19.0","7.2-7.4":0.16983,"13.0":0.01061,"14.0":0.04246,"17.0":0.26537},I:{"0":0.00597,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.31752,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.02005,_:"6 7 8 9 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.6712},R:{_:"0"},M:{"0":0.60509},Q:{"14.9":0.02996},O:{"0":0.05392},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AL.js b/node_modules/caniuse-lite/data/regions/AL.js index a89c1289c..c922df56c 100644 --- a/node_modules/caniuse-lite/data/regions/AL.js +++ b/node_modules/caniuse-lite/data/regions/AL.js @@ -1 +1 @@ -module.exports={C:{"52":0.00225,"68":0.00225,"78":0.00225,"104":0.00225,"107":0.00225,"108":0.00225,"111":0.00225,"113":0.00225,"115":0.15546,"120":0.00676,"123":0.00225,"125":0.00451,"126":0.00225,"127":0.00225,"128":0.01802,"130":0.00225,"131":0.01352,"133":0.00225,"134":0.01352,"135":0.00451,"136":0.00901,"137":0.07435,"138":0.02929,"139":0.7097,"140":0.15996,"141":0.00225,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 109 110 112 114 116 117 118 119 121 122 124 129 132 142 143 3.5 3.6"},D:{"11":0.00225,"39":0.00676,"40":0.00676,"41":0.00676,"42":0.00901,"43":0.00901,"44":0.00676,"45":0.00676,"46":0.00676,"47":0.00901,"48":0.01127,"49":0.00901,"50":0.00676,"51":0.00676,"52":0.00901,"53":0.00901,"54":0.00676,"55":0.00901,"56":0.00676,"57":0.00676,"58":0.00676,"59":0.00676,"60":0.00676,"62":0.00225,"65":0.00225,"69":0.00901,"70":0.00225,"71":0.00451,"73":0.01802,"75":0.01352,"76":0.00451,"79":0.07886,"83":0.03154,"84":0.00225,"86":0.00676,"87":0.10364,"88":0.00225,"89":0.00225,"90":0.00225,"91":0.00451,"93":0.00451,"94":0.01127,"95":0.00676,"98":0.00451,"99":0.00225,"100":0.00225,"101":0.00901,"102":0.00225,"103":0.00451,"104":0.04957,"105":0.00225,"106":0.00225,"107":0.00901,"108":0.05407,"109":0.86515,"110":0.00901,"111":0.02253,"112":0.00901,"113":0.43708,"114":0.00225,"115":0.00225,"116":0.02028,"118":0.00676,"119":0.01577,"120":0.0383,"121":0.01352,"122":0.0383,"123":0.01127,"124":0.04731,"125":2.16063,"126":0.02028,"127":0.00676,"128":0.02704,"129":0.02253,"130":0.01127,"131":0.09688,"132":0.06308,"133":0.06534,"134":0.05182,"135":0.12842,"136":1.58386,"137":7.73455,"138":0.35823,"139":0.00676,"140":0.00225,_:"4 5 6 7 8 9 10 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 61 63 64 66 67 68 72 74 77 78 80 81 85 92 96 97 117 141"},F:{"46":0.03605,"69":0.00225,"89":0.00451,"90":0.00225,"95":0.00676,"97":0.00225,"115":0.00225,"117":0.00225,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00676,"109":0.00451,"111":0.00676,"114":0.00225,"119":0.00225,"122":0.00225,"125":0.00225,"127":0.00225,"128":0.00225,"129":0.01127,"130":0.01127,"131":0.01577,"132":0.02478,"133":0.00225,"134":0.01352,"135":0.01352,"136":0.17123,"137":0.79756,"138":0.08336,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 113 115 116 117 118 120 121 123 124 126"},E:{"14":0.00451,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1","12.1":0.00225,"13.1":0.00676,"14.1":0.01352,"15.2-15.3":0.00225,"15.4":0.00225,"15.5":0.00676,"15.6":0.07435,"16.0":0.01127,"16.1":0.01127,"16.2":0.00451,"16.3":0.01577,"16.4":0.00451,"16.5":0.00451,"16.6":0.17348,"17.0":0.00901,"17.1":0.08561,"17.2":0.02253,"17.3":0.01127,"17.4":0.02478,"17.5":0.05858,"17.6":0.15771,"18.0":0.02704,"18.1":0.04281,"18.2":0.01802,"18.3":0.10364,"18.4":0.14645,"18.5":1.36307,"26.0":0.00451},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00707,"5.0-5.1":0,"6.0-6.1":0.01414,"7.0-7.1":0.01414,"8.1-8.4":0,"9.0-9.2":0.00707,"9.3":0.04241,"10.0-10.2":0.00353,"10.3":0.07068,"11.0-11.2":0.45238,"11.3-11.4":0.02474,"12.0-12.1":0.00707,"12.2-12.5":0.23679,"13.0-13.1":0.00353,"13.2":0.0106,"13.3":0.00707,"13.4-13.7":0.03888,"14.0-14.4":0.09189,"14.5-14.8":0.09189,"15.0-15.1":0.06362,"15.2-15.3":0.06362,"15.4":0.07775,"15.5":0.08482,"15.6-15.8":1.0956,"16.0":0.1449,"16.1":0.29687,"16.2":0.15197,"16.3":0.2792,"16.4":0.06362,"16.5":0.11309,"16.6-16.7":1.3748,"17.0":0.07422,"17.1":0.13076,"17.2":0.10249,"17.3":0.1449,"17.4":0.258,"17.5":0.54073,"17.6-17.7":1.41367,"18.0":0.34988,"18.1":0.78812,"18.2":0.41703,"18.3":1.79183,"18.4":1.90139,"18.5":22.29008,"26.0":0},P:{"4":0.21307,"20":0.01015,"21":0.01015,"22":0.01015,"23":0.05073,"24":0.04059,"25":0.09132,"26":0.12176,"27":0.30439,"28":2.83083,"5.0-5.4":0.02029,"6.2-6.4":0.03044,"7.2-7.4":0.11161,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","16.0":0.01015,"19.0":0.01015},I:{"0":0.03094,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.23241,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00496,"9":0.00496,"10":0.00248,"11":0.01239,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.4416},R:{_:"0"},M:{"0":0.22466},Q:{_:"14.9"},O:{"0":0.03874},H:{"0":0}}; +module.exports={C:{"3":0.00192,"37":0.00192,"38":0.00192,"39":0.00192,"40":0.00192,"52":0.00576,"78":0.00192,"87":0.00576,"88":0.00192,"91":0.00192,"99":0.00192,"102":0.00192,"103":0.0192,"105":0.00192,"106":0.00192,"108":0.00576,"110":0.00192,"115":0.09024,"118":0.03072,"119":0.00192,"120":0.00384,"121":0.00192,"122":0.00192,"123":0.01536,"124":0.00576,"125":0.36864,"126":0.33792,"127":0.00576,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 89 90 92 93 94 95 96 97 98 100 101 104 107 109 111 112 113 114 116 117 128 129 3.5","3.6":0.00192},D:{"11":0.00192,"21":0.00192,"34":0.00192,"35":0.00192,"36":0.00192,"37":0.00192,"38":0.00192,"39":0.00192,"40":0.00192,"41":0.00576,"42":0.00384,"43":0.00384,"44":0.00768,"45":0.00384,"46":0.00768,"47":0.00384,"49":0.24576,"51":0.01536,"63":0.00192,"65":0.00384,"66":0.00192,"70":0.00576,"71":0.00192,"73":0.00192,"74":0.00192,"75":0.00576,"79":0.02496,"80":0.00384,"83":0.01536,"85":0.00384,"86":0.00576,"87":0.01344,"88":0.00192,"89":0.00576,"90":0.00192,"91":0.00192,"93":0.00192,"94":0.00192,"95":0.00192,"96":0.00192,"97":0.00384,"98":0.0192,"99":0.0096,"102":0.00576,"103":0.0288,"104":0.03264,"105":0.03456,"106":0.00768,"107":0.00384,"108":0.03264,"109":1.3824,"110":0.00384,"111":0.01344,"112":0.02304,"113":0.00192,"114":0.0096,"115":0.00192,"116":0.11712,"117":0.00576,"118":0.00768,"119":0.02112,"120":0.47808,"121":0.04416,"122":0.10368,"123":0.31104,"124":6.38208,"125":2.5056,"126":0.00384,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 48 50 52 53 54 55 56 57 58 59 60 61 62 64 67 68 69 72 76 77 78 81 84 92 100 101 127 128"},F:{"28":0.00192,"31":0.00192,"46":0.00384,"69":0.00384,"94":0.00384,"95":0.01344,"106":0.00192,"107":0.04032,"108":0.00768,"109":0.33024,"110":0.03072,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00192},B:{"12":0.00192,"16":0.00192,"18":0.00192,"89":0.04032,"92":0.00384,"98":0.00192,"99":0.00192,"105":0.00192,"108":0.00384,"109":0.01152,"111":0.00192,"112":0.00192,"113":0.00192,"117":0.00192,"118":0.00192,"119":0.00576,"120":0.01536,"121":0.0096,"122":0.00768,"123":0.02496,"124":0.5952,"125":0.35904,_:"13 14 15 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 100 101 102 103 104 106 107 110 114 115 116"},E:{"8":0.00192,"9":0.02304,"13":0.00192,"14":0.01152,_:"0 4 5 6 7 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00192,"13.1":0.01536,"14.1":0.0384,"15.1":0.0192,"15.2-15.3":0.02688,"15.4":0.01152,"15.5":0.01728,"15.6":0.27648,"16.0":0.00768,"16.1":0.06336,"16.2":0.01728,"16.3":0.08064,"16.4":0.03072,"16.5":0.0288,"16.6":0.58368,"17.0":0.03456,"17.1":0.05952,"17.2":0.05184,"17.3":0.08256,"17.4":2.06592,"17.5":0.17856},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00822,"5.0-5.1":0.00822,"6.0-6.1":0.02054,"7.0-7.1":0.02876,"8.1-8.4":0.00822,"9.0-9.2":0.02054,"9.3":0.0945,"10.0-10.2":0.01643,"10.3":0.14791,"11.0-11.2":0.21776,"11.3-11.4":0.04109,"12.0-12.1":0.02465,"12.2-12.5":0.59576,"13.0-13.1":0.01233,"13.2":0.05752,"13.3":0.02876,"13.4-13.7":0.13148,"14.0-14.4":0.22598,"14.5-14.8":0.34924,"15.0-15.1":0.16846,"15.2-15.3":0.18489,"15.4":0.20954,"15.5":0.26296,"15.6-15.8":2.3666,"16.0":0.53824,"16.1":1.10934,"16.2":0.53824,"16.3":0.93267,"16.4":0.19722,"16.5":0.39854,"16.6-16.7":3.17601,"17.0":0.34513,"17.1":0.56289,"17.2":0.58754,"17.3":1.08469,"17.4":24.63154,"17.5":1.73797,"17.6":0},P:{"4":0.08145,"20":0.04073,"21":0.08145,"22":0.08145,"23":0.12218,"24":0.37672,"25":3.41081,_:"5.0-5.4 8.2 10.1 12.0 15.0","6.2-6.4":0.02036,"7.2-7.4":0.112,"9.2":0.02036,"11.1-11.2":0.03054,"13.0":0.02036,"14.0":0.04073,"16.0":0.01018,"17.0":0.04073,"18.0":0.01018,"19.0":0.02036},I:{"0":0.12073,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00027},K:{"0":0.17776,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00205,"7":0.00409,"8":0.03886,"9":0.00614,"10":0.00614,"11":0.03477,_:"5.5"},S:{"2.5":0.00808,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.0932},R:{_:"0"},M:{"0":0.23432},Q:{_:"14.9"},O:{"0":0.05656},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AM.js b/node_modules/caniuse-lite/data/regions/AM.js index ddc8a2b08..06ac59d99 100644 --- a/node_modules/caniuse-lite/data/regions/AM.js +++ b/node_modules/caniuse-lite/data/regions/AM.js @@ -1 +1 @@ -module.exports={C:{"52":37.93661,"115":0.17123,"125":0.00685,"128":0.02055,"130":0.00685,"135":0.00685,"136":0.0137,"137":0.00685,"138":0.02055,"139":0.76709,"140":0.06849,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.0137,"40":0.0137,"41":0.0137,"42":0.00685,"43":0.0137,"44":0.00685,"45":0.28081,"46":0.0137,"47":0.0137,"48":0.0137,"49":0.03425,"50":0.0137,"51":0.03425,"52":0.00685,"53":0.0137,"54":0.00685,"55":0.0137,"56":0.00685,"57":0.0137,"58":0.0137,"59":0.0137,"60":0.0137,"79":0.00685,"85":0.00685,"87":0.0137,"89":0.00685,"97":0.00685,"98":0.02055,"99":0.00685,"102":0.00685,"103":0.02055,"104":0.363,"106":0.00685,"107":0.00685,"108":0.0137,"109":1.60952,"110":0.0137,"111":0.00685,"112":0.0137,"113":0.00685,"116":0.02055,"117":0.0137,"118":0.05479,"119":0.00685,"120":0.0137,"121":0.00685,"122":0.02055,"124":0.00685,"125":0.91777,"126":0.0137,"127":0.03425,"128":0.03425,"129":0.00685,"130":0.03425,"131":0.06164,"132":0.03425,"133":0.07534,"134":0.08219,"135":0.15753,"136":6.89694,"137":12.04739,"138":0.54107,"139":0.02055,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 88 90 91 92 93 94 95 96 100 101 105 114 115 123 140 141"},F:{"83":0.00685,"86":0.00685,"89":0.04109,"90":0.00685,"95":0.04109,"117":0.00685,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00685,"109":0.07534,"113":0.00685,"134":0.02055,"135":0.00685,"136":0.13698,"137":1.0205,"138":0.07534,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133"},E:{"14":0.00685,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 16.2 16.4","14.1":0.00685,"15.2-15.3":0.0137,"15.4":0.00685,"15.5":0.0137,"15.6":0.03425,"16.0":0.00685,"16.1":0.04794,"16.3":0.00685,"16.5":0.00685,"16.6":0.04794,"17.0":0.00685,"17.1":0.02055,"17.2":0.00685,"17.3":0.00685,"17.4":0.03425,"17.5":0.03425,"17.6":0.08904,"18.0":0.02055,"18.1":0.13013,"18.2":0.0274,"18.3":0.04109,"18.4":0.04794,"18.5":0.67805,"26.0":0.0137},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00155,"5.0-5.1":0,"6.0-6.1":0.00311,"7.0-7.1":0.00311,"8.1-8.4":0,"9.0-9.2":0.00155,"9.3":0.00933,"10.0-10.2":0.00078,"10.3":0.01555,"11.0-11.2":0.0995,"11.3-11.4":0.00544,"12.0-12.1":0.00155,"12.2-12.5":0.05208,"13.0-13.1":0.00078,"13.2":0.00233,"13.3":0.00155,"13.4-13.7":0.00855,"14.0-14.4":0.02021,"14.5-14.8":0.02021,"15.0-15.1":0.01399,"15.2-15.3":0.01399,"15.4":0.0171,"15.5":0.01866,"15.6-15.8":0.24098,"16.0":0.03187,"16.1":0.0653,"16.2":0.03343,"16.3":0.06141,"16.4":0.01399,"16.5":0.02488,"16.6-16.7":0.30239,"17.0":0.01632,"17.1":0.02876,"17.2":0.02254,"17.3":0.03187,"17.4":0.05675,"17.5":0.11893,"17.6-17.7":0.31094,"18.0":0.07696,"18.1":0.17335,"18.2":0.09173,"18.3":0.39412,"18.4":0.41822,"18.5":4.90276,"26.0":0},P:{"4":0.0105,"20":0.0105,"21":0.02101,"22":0.02101,"23":0.02101,"24":0.02101,"25":0.02101,"26":0.03151,"27":0.10503,"28":1.08184,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0105},I:{"0":0.00315,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.30976,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0274,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.06796},R:{_:"0"},M:{"0":0.13864},Q:{_:"14.9"},O:{"0":0.13864},H:{"0":0.04}}; +module.exports={C:{"52":58.46429,"56":0.00754,"115":0.15826,"123":0.00754,"124":0.00754,"125":0.21101,"126":0.20347,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"49":0.00754,"51":0.00754,"79":0.00754,"80":0.00754,"83":0.01507,"88":0.01507,"90":0.01507,"92":0.00754,"96":0.00754,"97":0.00754,"98":0.00754,"99":0.00754,"100":0.01507,"102":0.01507,"103":0.00754,"105":0.00754,"106":0.01507,"107":0.00754,"108":0.01507,"109":1.86139,"110":0.01507,"111":0.00754,"112":0.00754,"113":0.00754,"114":0.00754,"116":0.05275,"117":0.02261,"118":0.01507,"119":0.02261,"120":0.09797,"121":0.03768,"122":0.05275,"123":0.33912,"124":7.22702,"125":2.83354,"126":0.00754,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 84 85 86 87 89 91 93 94 95 101 104 115 127 128"},F:{"85":0.00754,"95":0.06029,"107":0.03014,"109":0.58781,"110":0.03014,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00754,"108":0.00754,"109":0.00754,"120":0.00754,"121":0.00754,"122":0.00754,"123":0.02261,"124":0.51245,"125":0.2939,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117 118 119"},E:{"14":0.00754,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 17.6","5.1":0.00754,"13.1":0.00754,"14.1":0.00754,"15.4":0.00754,"15.5":0.00754,"15.6":0.06029,"16.1":0.01507,"16.2":0.01507,"16.3":0.09797,"16.4":0.00754,"16.5":0.01507,"16.6":0.09043,"17.0":0.03014,"17.1":0.02261,"17.2":0.03014,"17.3":0.02261,"17.4":0.28637,"17.5":0.0829},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00126,"5.0-5.1":0.00126,"6.0-6.1":0.00314,"7.0-7.1":0.0044,"8.1-8.4":0.00126,"9.0-9.2":0.00314,"9.3":0.01446,"10.0-10.2":0.00252,"10.3":0.02264,"11.0-11.2":0.03333,"11.3-11.4":0.00629,"12.0-12.1":0.00377,"12.2-12.5":0.09118,"13.0-13.1":0.00189,"13.2":0.0088,"13.3":0.0044,"13.4-13.7":0.02012,"14.0-14.4":0.03458,"14.5-14.8":0.05345,"15.0-15.1":0.02578,"15.2-15.3":0.0283,"15.4":0.03207,"15.5":0.04024,"15.6-15.8":0.3622,"16.0":0.08237,"16.1":0.16978,"16.2":0.08237,"16.3":0.14274,"16.4":0.03018,"16.5":0.06099,"16.6-16.7":0.48607,"17.0":0.05282,"17.1":0.08615,"17.2":0.08992,"17.3":0.16601,"17.4":3.76973,"17.5":0.26599,"17.6":0},P:{"20":0.01047,"21":0.05236,"22":0.03142,"23":0.05236,"24":0.12566,"25":0.65974,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 11.1-11.2 12.0 14.0 16.0 18.0","7.2-7.4":0.04189,"10.1":0.02094,"13.0":0.02094,"15.0":0.01047,"17.0":0.01047,"19.0":0.01047},I:{"0":0.02454,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.33685,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01507,"11":0.03014,_:"6 7 9 10 5.5"},S:{"2.5":0.00739,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":16.764},R:{_:"0"},M:{"0":0.04928},Q:{_:"14.9"},O:{"0":0.07392},H:{"0":0.05}}; diff --git a/node_modules/caniuse-lite/data/regions/AO.js b/node_modules/caniuse-lite/data/regions/AO.js index e65f1514f..1b64a475e 100644 --- a/node_modules/caniuse-lite/data/regions/AO.js +++ b/node_modules/caniuse-lite/data/regions/AO.js @@ -1 +1 @@ -module.exports={C:{"34":0.00316,"48":0.00316,"51":0.00316,"52":0.00316,"72":0.00316,"77":0.00316,"78":0.01265,"94":0.00316,"108":0.00316,"111":0.00316,"113":0.00949,"115":0.10118,"127":0.00949,"128":0.02846,"129":0.00316,"130":0.00316,"133":0.00316,"134":0.00632,"135":0.00316,"136":0.00949,"137":0.00316,"138":0.05375,"139":0.43952,"140":0.21185,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 112 114 116 117 118 119 120 121 122 123 124 125 126 131 132 141 142 143 3.5 3.6"},D:{"11":0.02213,"36":0.00316,"38":0.01265,"39":0.01581,"40":0.01581,"41":0.01265,"42":0.01581,"43":0.01265,"44":0.00949,"45":0.00949,"46":0.02213,"47":0.01265,"48":0.01265,"49":0.06008,"50":0.01265,"51":0.01581,"52":0.00949,"53":0.00949,"54":0.00949,"55":0.01265,"56":0.01581,"57":0.00949,"58":0.01265,"59":0.00949,"60":0.00949,"61":0.00316,"62":0.00316,"65":0.00316,"66":0.01265,"68":0.00316,"69":0.00316,"70":0.01581,"71":0.00316,"72":0.00316,"73":0.01265,"75":0.00632,"77":0.00949,"78":0.01581,"79":0.01897,"80":0.00316,"81":0.00949,"83":0.00632,"85":0.00316,"86":0.02846,"87":0.09486,"89":0.00632,"90":0.00632,"91":0.00316,"92":0.00316,"93":0.00316,"94":0.00316,"95":0.00949,"96":0.01265,"97":0.00316,"98":0.01897,"99":0.00632,"101":0.00632,"102":0.00949,"103":0.02846,"104":0.00316,"105":0.00316,"106":0.02846,"107":0.00949,"108":0.04111,"109":0.95176,"110":0.01581,"111":0.02213,"112":0.00316,"113":0.00316,"114":0.01897,"116":0.06324,"118":0.03162,"119":0.0664,"120":0.00632,"121":0.01581,"122":0.03478,"123":0.01265,"124":0.01265,"125":3.44342,"126":0.02213,"127":0.01265,"128":0.11067,"129":0.01265,"130":0.04111,"131":0.05059,"132":0.03162,"133":0.05692,"134":0.12332,"135":0.17075,"136":1.27745,"137":8.61961,"138":0.3415,"139":0.00949,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 63 64 67 74 76 84 88 100 115 117 140 141"},F:{"34":0.00949,"40":0.00316,"46":0.01265,"64":0.00316,"79":0.01581,"84":0.00316,"89":0.00949,"90":0.00949,"95":0.04427,"112":0.00316,"114":0.00316,"116":0.00316,"117":0.00632,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01265,"13":0.00316,"14":0.00632,"15":0.00632,"16":0.00316,"17":0.00316,"18":0.05692,"81":0.00316,"84":0.01581,"89":0.01581,"90":0.00949,"92":0.11067,"99":0.00316,"100":0.01581,"107":0.00316,"108":0.00316,"109":0.06324,"111":0.00316,"112":0.00316,"114":0.00316,"116":0.00949,"117":0.00316,"118":0.00316,"119":0.00316,"122":0.01897,"123":0.00316,"124":0.00632,"125":0.00632,"126":0.03162,"127":0.00632,"128":0.01265,"129":0.01265,"130":0.00949,"131":0.04111,"132":0.03162,"133":0.02846,"134":0.06324,"135":0.0917,"136":0.65453,"137":3.55409,"138":0.22766,_:"79 80 83 85 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 110 113 115 120 121"},E:{"13":0.00316,"14":0.00316,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 15.2-15.3 15.4 15.5 16.0 17.0 17.3","5.1":0.00316,"10.1":0.00316,"11.1":0.00316,"12.1":0.0253,"13.1":0.03794,"14.1":0.02846,"15.1":0.00316,"15.6":0.07589,"16.1":0.00316,"16.2":0.00316,"16.3":0.00632,"16.4":0.00316,"16.5":0.00316,"16.6":0.06008,"17.1":0.03794,"17.2":0.00316,"17.4":0.00316,"17.5":0.00632,"17.6":0.12648,"18.0":0.00949,"18.1":0.00632,"18.2":0.00316,"18.3":0.0253,"18.4":0.06956,"18.5":0.35414,"26.0":0.01265},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00126,"5.0-5.1":0,"6.0-6.1":0.00252,"7.0-7.1":0.00252,"8.1-8.4":0,"9.0-9.2":0.00126,"9.3":0.00755,"10.0-10.2":0.00063,"10.3":0.01258,"11.0-11.2":0.08052,"11.3-11.4":0.0044,"12.0-12.1":0.00126,"12.2-12.5":0.04215,"13.0-13.1":0.00063,"13.2":0.00189,"13.3":0.00126,"13.4-13.7":0.00692,"14.0-14.4":0.01636,"14.5-14.8":0.01636,"15.0-15.1":0.01132,"15.2-15.3":0.01132,"15.4":0.01384,"15.5":0.0151,"15.6-15.8":0.19502,"16.0":0.02579,"16.1":0.05284,"16.2":0.02705,"16.3":0.0497,"16.4":0.01132,"16.5":0.02013,"16.6-16.7":0.24472,"17.0":0.01321,"17.1":0.02328,"17.2":0.01824,"17.3":0.02579,"17.4":0.04592,"17.5":0.09625,"17.6-17.7":0.25164,"18.0":0.06228,"18.1":0.14029,"18.2":0.07423,"18.3":0.31895,"18.4":0.33845,"18.5":3.96771,"26.0":0},P:{"4":0.07334,"21":0.01048,"22":0.01048,"23":0.01048,"24":0.02096,"25":0.03143,"26":0.06287,"27":0.0943,"28":0.89059,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 18.0","5.0-5.4":0.01048,"7.2-7.4":0.04191,"13.0":0.01048,"16.0":0.01048,"17.0":0.01048,"19.0":0.01048},I:{"0":0.08874,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":1.10906,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00813,"11":0.02033,_:"6 7 9 10 5.5"},S:{"2.5":0.02735,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.03628},R:{_:"0"},M:{"0":0.06154},Q:{"14.9":0.03419},O:{"0":0.30771},H:{"0":0.45}}; +module.exports={C:{"26":0.00314,"34":0.01569,"78":0.00314,"88":0.00314,"99":0.01883,"113":0.00314,"115":0.13807,"123":0.00314,"124":0.00628,"125":0.22594,"126":0.16318,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"11":0.00314,"40":0.00314,"42":0.0251,"43":0.00628,"46":0.00941,"47":0.00314,"50":0.00314,"54":0.00314,"55":0.00314,"56":0.00314,"62":0.00314,"67":0.00628,"68":0.00314,"69":0.00314,"70":0.00314,"72":0.00314,"73":0.00314,"75":0.00941,"76":0.00628,"77":0.00314,"79":0.01569,"81":0.0251,"83":0.00628,"84":0.00314,"85":0.00941,"86":0.02824,"87":0.07217,"88":0.00628,"89":0.00314,"90":0.00941,"91":0.00628,"92":0.091,"93":0.00628,"94":0.02824,"95":0.01255,"97":0.00314,"98":0.01255,"99":0.00628,"100":0.00628,"101":0.01255,"102":0.01883,"103":0.01569,"104":0.00314,"105":0.00628,"106":0.0251,"107":0.00314,"108":0.00628,"109":1.69138,"110":0.00628,"111":0.00314,"112":0.00628,"113":0.00314,"114":0.01569,"115":0.00628,"116":0.13807,"117":0.01569,"118":0.00628,"119":0.04707,"120":0.06904,"121":0.0659,"122":0.07845,"123":0.19456,"124":5.3095,"125":1.92359,"126":0.00941,_:"4 5 6 7 8 9 10 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 41 44 45 48 49 51 52 53 57 58 59 60 61 63 64 65 66 71 74 78 80 96 127 128"},F:{"28":0.00314,"40":0.00314,"42":0.00314,"48":0.00314,"79":0.01255,"85":0.00628,"95":0.091,"102":0.00628,"106":0.00314,"107":0.01883,"108":0.01569,"109":0.62132,"110":0.04707,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 41 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00628,"14":0.00628,"15":0.04079,"16":0.00628,"17":0.00628,"18":0.01883,"81":0.00314,"84":0.01569,"89":0.01255,"90":0.01569,"92":0.03766,"100":0.00628,"101":0.00628,"103":0.00314,"109":0.07531,"111":0.00314,"112":0.00314,"113":0.00314,"114":0.01883,"115":0.00314,"116":0.00628,"117":0.00628,"118":0.00628,"119":0.01255,"120":0.05021,"121":0.0251,"122":0.07217,"123":0.09414,"124":1.96439,"125":0.80647,_:"13 79 80 83 85 86 87 88 91 93 94 95 96 97 98 99 102 104 105 106 107 108 110"},E:{"13":0.00314,"15":0.00314,_:"0 4 5 6 7 8 9 10 11 12 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.1 17.2 17.6","13.1":0.01255,"14.1":0.00314,"15.4":0.00314,"15.6":0.05962,"16.6":0.00628,"17.0":0.00314,"17.3":0.01569,"17.4":0.04393,"17.5":0.00628},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00174,"5.0-5.1":0.00174,"6.0-6.1":0.00434,"7.0-7.1":0.00608,"8.1-8.4":0.00174,"9.0-9.2":0.00434,"9.3":0.01998,"10.0-10.2":0.00347,"10.3":0.03127,"11.0-11.2":0.04604,"11.3-11.4":0.00869,"12.0-12.1":0.00521,"12.2-12.5":0.12597,"13.0-13.1":0.00261,"13.2":0.01216,"13.3":0.00608,"13.4-13.7":0.0278,"14.0-14.4":0.04778,"14.5-14.8":0.07384,"15.0-15.1":0.03562,"15.2-15.3":0.03909,"15.4":0.04431,"15.5":0.0556,"15.6-15.8":0.50039,"16.0":0.1138,"16.1":0.23456,"16.2":0.1138,"16.3":0.1972,"16.4":0.0417,"16.5":0.08427,"16.6-16.7":0.67153,"17.0":0.07297,"17.1":0.11902,"17.2":0.12423,"17.3":0.22934,"17.4":5.20803,"17.5":0.36747,"17.6":0},P:{"4":0.21421,"20":0.0204,"21":0.0408,"22":0.0306,"23":0.0612,"24":0.153,"25":0.23461,"5.0-5.4":0.0102,"6.2-6.4":0.0204,"7.2-7.4":0.1122,_:"8.2 9.2 10.1 11.1-11.2 12.0","13.0":0.0408,"14.0":0.0408,"15.0":0.0306,"16.0":0.0102,"17.0":0.0612,"18.0":0.0306,"19.0":0.0204},I:{"0":0.1162,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00026},K:{"0":0.40875,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00314,_:"6 7 8 9 10 5.5"},S:{"2.5":0.10293,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.77267},R:{_:"0"},M:{"0":0.07548},Q:{_:"14.9"},O:{"0":0.09607},H:{"0":0.25}}; diff --git a/node_modules/caniuse-lite/data/regions/AR.js b/node_modules/caniuse-lite/data/regions/AR.js index 0f078784f..d4c6b967d 100644 --- a/node_modules/caniuse-lite/data/regions/AR.js +++ b/node_modules/caniuse-lite/data/regions/AR.js @@ -1 +1 @@ -module.exports={C:{"48":0.00322,"52":0.01609,"59":0.01287,"78":0.00322,"82":0.00322,"84":0.00322,"86":0.00322,"88":0.00965,"91":0.01609,"99":0.00322,"101":0.00322,"103":0.01287,"113":0.00643,"114":0.00322,"115":0.22519,"120":0.02252,"123":0.00322,"125":0.00322,"126":0.00322,"127":0.00322,"128":0.02252,"131":0.00643,"132":0.00322,"133":0.00965,"134":0.00643,"135":0.00965,"136":0.02252,"137":0.01609,"138":0.11581,"139":0.78173,"140":0.12546,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 85 87 89 90 92 93 94 95 96 97 98 100 102 104 105 106 107 108 109 110 111 112 116 117 118 119 121 122 124 129 130 141 142 143 3.5 3.6"},D:{"38":0.00322,"39":0.00643,"40":0.00643,"41":0.00322,"42":0.00643,"43":0.00643,"44":0.00643,"45":0.00322,"46":0.00643,"47":0.00643,"48":0.00643,"49":0.01609,"50":0.00643,"51":0.00643,"52":0.00643,"53":0.00643,"54":0.00643,"55":0.00643,"56":0.00643,"57":0.00643,"58":0.00643,"59":0.00643,"60":0.00643,"66":0.03217,"75":0.00322,"78":0.00322,"79":0.01609,"81":0.00322,"83":0.00322,"85":0.00322,"86":0.00322,"87":0.01287,"88":0.00643,"89":0.00322,"90":0.00322,"91":0.00322,"93":0.00322,"94":0.00322,"95":0.00322,"97":0.00322,"98":0.00643,"99":0.00322,"100":0.00643,"101":0.00322,"102":0.00643,"103":0.02252,"104":0.00322,"105":0.00322,"106":0.00643,"107":0.00322,"108":0.01287,"109":1.79509,"110":0.01287,"111":0.05147,"112":0.00322,"113":0.00322,"114":0.00643,"115":0.00322,"116":0.0386,"117":0.00322,"118":0.00322,"119":0.02252,"120":0.02895,"121":0.04504,"122":0.0386,"123":0.01287,"124":0.02574,"125":0.47612,"126":0.02252,"127":0.02895,"128":0.03539,"129":0.01609,"130":0.02574,"131":0.72383,"132":0.06112,"133":0.05147,"134":0.08364,"135":0.19624,"136":2.01706,"137":16.0464,"138":0.74634,"139":0.00322,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 67 68 69 70 71 72 73 74 76 77 80 84 92 96 140 141"},F:{"36":0.00643,"46":0.00322,"89":0.00322,"90":0.00322,"95":0.02574,"106":0.00322,"114":0.00322,"117":0.00322,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00322,"92":0.00643,"109":0.0386,"122":0.00322,"124":0.00322,"126":0.00322,"127":0.00322,"128":0.00322,"129":0.00322,"130":0.00322,"131":0.03217,"132":0.00965,"133":0.00322,"134":0.02574,"135":0.0193,"136":0.41178,"137":2.02028,"138":0.24771,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 125"},E:{"14":0.00322,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 16.2 17.0 17.2 26.0","11.1":0.00643,"13.1":0.00322,"14.1":0.00643,"15.5":0.00322,"15.6":0.02574,"16.0":0.00322,"16.1":0.00322,"16.3":0.00643,"16.4":0.00322,"16.5":0.00322,"16.6":0.0386,"17.1":0.01609,"17.3":0.00322,"17.4":0.00643,"17.5":0.00965,"17.6":0.03539,"18.0":0.00322,"18.1":0.00643,"18.2":0.00643,"18.3":0.0193,"18.4":0.02252,"18.5":0.22197},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00081,"5.0-5.1":0,"6.0-6.1":0.00163,"7.0-7.1":0.00163,"8.1-8.4":0,"9.0-9.2":0.00081,"9.3":0.00488,"10.0-10.2":0.00041,"10.3":0.00813,"11.0-11.2":0.05201,"11.3-11.4":0.00284,"12.0-12.1":0.00081,"12.2-12.5":0.02723,"13.0-13.1":0.00041,"13.2":0.00122,"13.3":0.00081,"13.4-13.7":0.00447,"14.0-14.4":0.01057,"14.5-14.8":0.01057,"15.0-15.1":0.00731,"15.2-15.3":0.00731,"15.4":0.00894,"15.5":0.00975,"15.6-15.8":0.12597,"16.0":0.01666,"16.1":0.03413,"16.2":0.01747,"16.3":0.0321,"16.4":0.00731,"16.5":0.013,"16.6-16.7":0.15807,"17.0":0.00853,"17.1":0.01504,"17.2":0.01178,"17.3":0.01666,"17.4":0.02966,"17.5":0.06217,"17.6-17.7":0.16254,"18.0":0.04023,"18.1":0.09062,"18.2":0.04795,"18.3":0.20603,"18.4":0.21862,"18.5":2.56292,"26.0":0},P:{"4":0.03125,"21":0.01042,"22":0.01042,"23":0.01042,"24":0.03125,"25":0.04166,"26":0.07291,"27":0.05208,"28":1.69778,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 19.0","7.2-7.4":0.08333,"17.0":0.01042,"18.0":0.01042},I:{"0":0.17608,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":0.08141,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05147,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.2867},R:{_:"0"},M:{"0":0.1289},Q:{_:"14.9"},O:{"0":0.01357},H:{"0":0}}; +module.exports={C:{"4":0.00396,"52":0.0277,"59":0.01979,"68":0.00396,"72":0.00396,"78":0.01187,"80":0.00791,"82":0.00396,"84":0.00396,"86":0.00791,"88":0.04748,"89":0.00396,"90":0.01187,"91":0.0554,"93":0.00396,"96":0.00396,"99":0.00396,"101":0.00396,"102":0.00791,"103":0.03561,"105":0.00396,"106":0.00396,"107":0.00396,"108":0.00396,"109":0.00396,"110":0.00396,"111":0.00396,"112":0.00396,"113":0.01187,"114":0.00396,"115":0.40361,"116":0.00396,"117":0.03166,"118":0.00396,"119":0.00396,"120":0.01583,"121":0.00396,"122":0.00791,"123":0.00791,"124":0.02374,"125":0.63312,"126":0.59751,"127":0.00396,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 81 83 85 87 92 94 95 97 98 100 104 128 129 3.5 3.6"},D:{"34":0.00396,"38":0.03561,"47":0.00396,"49":0.05144,"56":0.00396,"58":0.00396,"63":0.00396,"66":0.03561,"71":0.00396,"74":0.00396,"75":0.00396,"76":0.00396,"78":0.00791,"79":0.01979,"80":0.00396,"81":0.00396,"83":0.00396,"84":0.00396,"85":0.00396,"86":0.00396,"87":0.01979,"88":0.01979,"89":0.00791,"90":0.00791,"91":0.03561,"92":0.0277,"93":0.01583,"94":0.00396,"95":0.01187,"96":0.00791,"97":0.01187,"98":0.00396,"99":0.00791,"100":0.00791,"101":0.00791,"102":0.00791,"103":0.04353,"104":0.01187,"105":0.01187,"106":0.01979,"107":0.01583,"108":0.02374,"109":3.87786,"110":0.02374,"111":0.01187,"112":0.01187,"113":0.01583,"114":0.01979,"115":0.01979,"116":0.09101,"117":0.03166,"118":0.01583,"119":0.06331,"120":0.09893,"121":0.15432,"122":0.18598,"123":0.65291,"124":17.36332,"125":7.16613,"126":0.00396,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 57 59 60 61 62 64 65 67 68 69 70 72 73 77 127 128"},F:{"28":0.00396,"36":0.00396,"77":0.00396,"79":0.00396,"85":0.00396,"95":0.06727,"102":0.00396,"107":0.48671,"108":0.00791,"109":1.46805,"110":0.04353,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00396,"18":0.00396,"92":0.01583,"109":0.04353,"112":0.00396,"113":0.00396,"114":0.00396,"115":0.00396,"116":0.00396,"117":0.00396,"118":0.00396,"119":0.00791,"120":0.01187,"121":0.00791,"122":0.01979,"123":0.06331,"124":1.77274,"125":0.97342,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111"},E:{"14":0.00791,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00791,"11.1":0.00791,"12.1":0.00396,"13.1":0.01583,"14.1":0.0277,"15.1":0.00791,"15.2-15.3":0.00396,"15.4":0.00396,"15.5":0.00791,"15.6":0.04748,"16.0":0.00396,"16.1":0.00791,"16.2":0.00396,"16.3":0.01583,"16.4":0.00791,"16.5":0.01187,"16.6":0.04748,"17.0":0.01979,"17.1":0.01583,"17.2":0.0277,"17.3":0.01979,"17.4":0.26116,"17.5":0.05144},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00097,"5.0-5.1":0.00097,"6.0-6.1":0.00242,"7.0-7.1":0.00338,"8.1-8.4":0.00097,"9.0-9.2":0.00242,"9.3":0.01112,"10.0-10.2":0.00193,"10.3":0.0174,"11.0-11.2":0.02562,"11.3-11.4":0.00483,"12.0-12.1":0.0029,"12.2-12.5":0.0701,"13.0-13.1":0.00145,"13.2":0.00677,"13.3":0.00338,"13.4-13.7":0.01547,"14.0-14.4":0.02659,"14.5-14.8":0.04109,"15.0-15.1":0.01982,"15.2-15.3":0.02175,"15.4":0.02466,"15.5":0.03094,"15.6-15.8":0.27846,"16.0":0.06333,"16.1":0.13053,"16.2":0.06333,"16.3":0.10974,"16.4":0.02321,"16.5":0.04689,"16.6-16.7":0.3737,"17.0":0.04061,"17.1":0.06623,"17.2":0.06913,"17.3":0.12763,"17.4":2.89822,"17.5":0.2045,"17.6":0},P:{"4":0.11193,"20":0.02035,"21":0.05088,"22":0.0407,"23":0.10176,"24":0.19334,"25":2.48288,"5.0-5.4":0.01018,_:"6.2-6.4 8.2 9.2 10.1 12.0","7.2-7.4":0.15264,"11.1-11.2":0.01018,"13.0":0.02035,"14.0":0.02035,"15.0":0.01018,"16.0":0.02035,"17.0":0.07123,"18.0":0.01018,"19.0":0.02035},I:{"0":0.02408,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.12899,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00396,"11":0.05144,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.89576},R:{_:"0"},M:{"0":0.11482},Q:{_:"14.9"},O:{"0":0.03022},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/AS.js b/node_modules/caniuse-lite/data/regions/AS.js index b9c7c81e4..60b2d02b1 100644 --- a/node_modules/caniuse-lite/data/regions/AS.js +++ b/node_modules/caniuse-lite/data/regions/AS.js @@ -1 +1 @@ -module.exports={C:{"139":0.00701,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 140 141 142 143 3.5 3.6"},D:{"47":0.00351,"53":0.00351,"79":0.00351,"103":0.02806,"105":0.01052,"109":0.01754,"113":0.00351,"114":0.00351,"116":0.02104,"125":0.00701,"133":0.00701,"134":0.03156,"135":0.05261,"136":0.30862,"137":0.7996,"138":0.02455,"139":0.00351,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 108 110 111 112 115 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"120":0.23848,"122":0.00351,"132":0.00351,"136":0.02806,"137":0.26303,"138":0.01403,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 123 124 125 126 127 128 129 130 131 133 134 135"},E:{"14":0.00351,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1","13.1":0.00351,"14.1":0.00701,"15.1":0.01403,"15.2-15.3":0.02104,"15.4":0.00701,"15.5":0.08066,"15.6":0.88026,"16.0":0.00351,"16.1":0.68036,"16.2":0.19289,"16.3":0.4489,"16.4":0.44188,"16.5":0.15431,"16.6":1.8552,"17.0":0.04208,"17.1":1.92534,"17.2":0.01754,"17.3":0.1508,"17.4":0.30511,"17.5":0.5997,"17.6":1.82715,"18.0":0.29459,"18.1":0.30862,"18.2":0.09118,"18.3":1.31162,"18.4":1.80611,"18.5":17.86466,"26.0":0.00701},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01266,"5.0-5.1":0,"6.0-6.1":0.02531,"7.0-7.1":0.02531,"8.1-8.4":0,"9.0-9.2":0.01266,"9.3":0.07594,"10.0-10.2":0.00633,"10.3":0.12656,"11.0-11.2":0.80999,"11.3-11.4":0.0443,"12.0-12.1":0.01266,"12.2-12.5":0.42398,"13.0-13.1":0.00633,"13.2":0.01898,"13.3":0.01266,"13.4-13.7":0.06961,"14.0-14.4":0.16453,"14.5-14.8":0.16453,"15.0-15.1":0.11391,"15.2-15.3":0.11391,"15.4":0.13922,"15.5":0.15187,"15.6-15.8":1.9617,"16.0":0.25945,"16.1":0.53156,"16.2":0.27211,"16.3":0.49992,"16.4":0.11391,"16.5":0.2025,"16.6-16.7":2.46162,"17.0":0.13289,"17.1":0.23414,"17.2":0.18351,"17.3":0.25945,"17.4":0.46195,"17.5":0.9682,"17.6-17.7":2.53123,"18.0":0.62648,"18.1":1.41116,"18.2":0.74671,"18.3":3.20834,"18.4":3.40451,"18.5":39.91119,"26.0":0},P:{"25":0.01062,"27":0.03187,"28":0.07437,_:"4 20 21 22 23 24 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":-0.00351,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":1.72177},R:{_:"0"},M:{"0":0.06493},Q:{_:"14.9"},O:{"0":0.02597},H:{"0":0.01}}; +module.exports={C:{"115":0.00333,"124":0.01998,"125":0.05328,"126":0.03996,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"47":0.00333,"79":0.00333,"87":0.00333,"93":0.00666,"103":0.02997,"109":0.05328,"111":0.00666,"113":0.00999,"116":0.00999,"117":0.05328,"118":0.00333,"119":0.00666,"120":0.00666,"121":0.00333,"122":0.04329,"123":0.20313,"124":1.19547,"125":0.12987,"126":0.00333,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 112 114 115 127 128"},F:{"107":0.08658,"109":0.12987,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"115":0.00333,"122":0.00999,"123":0.00999,"124":0.19314,"125":0.07326,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121"},E:{"14":0.00333,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 17.6","14.1":0.00333,"15.1":0.05994,"15.2-15.3":0.03663,"15.4":0.40293,"15.5":0.10656,"15.6":1.9647,"16.0":0.04995,"16.1":0.60273,"16.2":0.40626,"16.3":0.54612,"16.4":0.12654,"16.5":0.28971,"16.6":2.97036,"17.0":0.12321,"17.1":0.31968,"17.2":0.38961,"17.3":0.67599,"17.4":18.92439,"17.5":1.998},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01298,"5.0-5.1":0.01298,"6.0-6.1":0.03244,"7.0-7.1":0.04541,"8.1-8.4":0.01298,"9.0-9.2":0.03244,"9.3":0.14921,"10.0-10.2":0.02595,"10.3":0.23355,"11.0-11.2":0.34384,"11.3-11.4":0.06488,"12.0-12.1":0.03893,"12.2-12.5":0.94069,"13.0-13.1":0.01946,"13.2":0.09083,"13.3":0.04541,"13.4-13.7":0.2076,"14.0-14.4":0.35682,"14.5-14.8":0.55144,"15.0-15.1":0.26599,"15.2-15.3":0.29194,"15.4":0.33086,"15.5":0.4152,"15.6-15.8":3.73683,"16.0":0.84987,"16.1":1.75164,"16.2":0.84987,"16.3":1.47267,"16.4":0.3114,"16.5":0.62929,"16.6-16.7":5.01487,"17.0":0.54495,"17.1":0.88879,"17.2":0.92772,"17.3":1.71271,"17.4":38.89285,"17.5":2.74423,"17.6":0},P:{"4":0.01092,"24":0.03275,"25":0.07641,_:"20 21 22 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.00667,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":2.05725},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":0.01334},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AT.js b/node_modules/caniuse-lite/data/regions/AT.js index f4d6949da..7f855d00b 100644 --- a/node_modules/caniuse-lite/data/regions/AT.js +++ b/node_modules/caniuse-lite/data/regions/AT.js @@ -1 +1 @@ -module.exports={C:{"48":0.00473,"50":0.01418,"51":0.00945,"52":0.07562,"53":0.0189,"55":0.0189,"56":0.04726,"60":0.02836,"78":0.02836,"93":0.00473,"102":0.00473,"104":0.00473,"107":0.00473,"112":0.00473,"115":0.5813,"116":0.00473,"120":0.00473,"121":0.00473,"122":0.01418,"124":0.00473,"125":0.00473,"127":0.00473,"128":0.69,"129":0.00945,"130":0.00473,"131":0.02836,"132":0.00945,"133":0.0189,"134":0.02363,"135":0.03308,"136":0.09452,"137":0.08034,"138":0.34972,"139":4.90559,"140":0.69,"141":0.00945,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 54 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 103 105 106 108 109 110 111 113 114 117 118 119 123 126 142 143 3.5 3.6"},D:{"38":0.00473,"39":0.00473,"40":0.00473,"41":0.00473,"42":0.02836,"43":0.00473,"44":0.00473,"45":0.00473,"46":0.00473,"47":0.00473,"48":0.00473,"49":0.0189,"50":0.00473,"51":0.00473,"52":0.00473,"53":0.00473,"54":0.00473,"55":0.00473,"56":0.00473,"57":0.00945,"58":0.00945,"59":0.00473,"60":0.00473,"65":0.00473,"69":0.00473,"77":0.02363,"79":0.07562,"80":0.02836,"81":0.01418,"87":0.04253,"88":0.01418,"90":0.00473,"91":0.00473,"94":0.00473,"96":0.00473,"98":0.00473,"99":0.00473,"100":0.01418,"102":0.00473,"103":0.03781,"104":0.08034,"105":0.00473,"106":0.00945,"107":0.0189,"108":0.02363,"109":0.53876,"110":0.00473,"111":0.01418,"112":0.04253,"113":0.00473,"114":0.03308,"115":0.02363,"116":0.08034,"117":0.00473,"118":0.2174,"119":0.00945,"120":0.01418,"121":0.02363,"122":0.06616,"123":0.0189,"124":0.03781,"125":0.25048,"126":0.03308,"127":0.01418,"128":0.06144,"129":0.03308,"130":0.03781,"131":0.21267,"132":0.08034,"133":0.09452,"134":0.1276,"135":0.28356,"136":2.45752,"137":13.79992,"138":0.51041,"139":0.00473,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 66 67 68 70 71 72 73 74 75 76 78 83 84 85 86 89 92 93 95 97 101 140 141"},F:{"46":0.01418,"78":0.00945,"79":0.00473,"83":0.00473,"85":0.01418,"89":0.03781,"90":0.02363,"95":0.04726,"114":0.00473,"117":0.0189,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 80 81 82 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00945,"108":0.00473,"109":0.07089,"120":0.00473,"121":0.00473,"122":0.00945,"125":0.00473,"126":0.00945,"127":0.00473,"128":0.00473,"129":0.00945,"130":0.01418,"131":0.03308,"132":0.03308,"133":0.01418,"134":0.06144,"135":0.08507,"136":1.20513,"137":6.63058,"138":0.57657,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117 118 119 123 124"},E:{"13":0.00473,"14":0.01418,"15":0.01418,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.01418,"13.1":0.03781,"14.1":0.03308,"15.1":0.00473,"15.2-15.3":0.00473,"15.4":0.00945,"15.5":0.01418,"15.6":0.2552,"16.0":0.08979,"16.1":0.02363,"16.2":0.0189,"16.3":0.03781,"16.4":0.02836,"16.5":0.01418,"16.6":0.30246,"17.0":0.01418,"17.1":0.20322,"17.2":0.02836,"17.3":0.03308,"17.4":0.04726,"17.5":0.09925,"17.6":0.28356,"18.0":0.04253,"18.1":0.07089,"18.2":0.0189,"18.3":0.24575,"18.4":0.18904,"18.5":2.23067},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00346,"5.0-5.1":0,"6.0-6.1":0.00693,"7.0-7.1":0.00693,"8.1-8.4":0,"9.0-9.2":0.00346,"9.3":0.02078,"10.0-10.2":0.00173,"10.3":0.03464,"11.0-11.2":0.22169,"11.3-11.4":0.01212,"12.0-12.1":0.00346,"12.2-12.5":0.11604,"13.0-13.1":0.00173,"13.2":0.0052,"13.3":0.00346,"13.4-13.7":0.01905,"14.0-14.4":0.04503,"14.5-14.8":0.04503,"15.0-15.1":0.03118,"15.2-15.3":0.03118,"15.4":0.0381,"15.5":0.04157,"15.6-15.8":0.53691,"16.0":0.07101,"16.1":0.14549,"16.2":0.07448,"16.3":0.13683,"16.4":0.03118,"16.5":0.05542,"16.6-16.7":0.67374,"17.0":0.03637,"17.1":0.06408,"17.2":0.05023,"17.3":0.07101,"17.4":0.12643,"17.5":0.26499,"17.6-17.7":0.69279,"18.0":0.17147,"18.1":0.38623,"18.2":0.20437,"18.3":0.87811,"18.4":0.93181,"18.5":10.92361,"26.0":0},P:{"4":0.1253,"20":0.01044,"21":0.02088,"22":0.01044,"23":0.03133,"24":0.03133,"25":0.04177,"26":0.08353,"27":0.21928,"28":3.98877,"5.0-5.4":0.01044,"6.2-6.4":0.01044,"7.2-7.4":0.03133,_:"8.2 10.1 12.0 13.0 14.0 15.0 16.0","9.2":0.01044,"11.1-11.2":0.01044,"17.0":0.01044,"18.0":0.01044,"19.0":0.01044},I:{"0":0.02633,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.45884,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03781,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.84993},R:{_:"0"},M:{"0":1.02843},Q:{"14.9":0.00527},O:{"0":0.08966},H:{"0":0}}; +module.exports={C:{"34":0.00493,"47":0.00985,"48":0.00493,"52":0.03942,"53":0.00493,"60":0.00493,"65":0.00985,"68":0.00493,"72":0.00985,"75":0.00493,"78":0.03942,"83":0.00493,"88":0.00493,"91":0.00985,"94":0.00493,"96":0.02956,"99":0.00493,"102":0.01971,"103":0.00985,"104":0.00493,"105":0.00493,"106":0.00493,"107":0.00985,"108":0.00985,"109":0.00493,"110":0.04927,"111":0.00493,"112":0.00985,"113":0.00985,"114":0.00493,"115":1.21204,"116":0.00493,"117":0.09854,"118":0.00985,"119":0.00493,"120":0.00985,"121":0.01971,"122":0.04434,"123":0.03942,"124":0.16259,"125":3.43905,"126":2.84288,"127":0.00985,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 54 55 56 57 58 59 61 62 63 64 66 67 69 70 71 73 74 76 77 79 80 81 82 84 85 86 87 89 90 92 93 95 97 98 100 101 128 129 3.5 3.6"},D:{"22":0.00493,"38":0.00985,"41":0.00493,"42":0.01971,"46":0.00493,"49":0.02464,"51":0.00985,"70":0.00493,"75":0.00493,"79":0.10839,"80":0.00985,"81":0.00985,"83":0.00493,"84":0.00493,"85":0.00985,"86":0.41387,"87":0.06405,"88":0.00985,"89":0.04927,"90":0.01478,"91":0.01971,"93":0.00985,"94":0.00493,"96":0.00493,"97":0.01478,"98":0.00493,"99":0.00985,"100":0.42372,"101":0.83759,"102":0.4385,"103":0.46807,"104":0.44343,"105":0.00985,"106":0.00985,"107":0.00985,"108":0.02956,"109":0.83759,"110":0.00985,"111":0.01478,"112":0.02464,"113":0.17737,"114":0.18723,"115":0.01971,"116":0.1281,"117":0.01478,"118":0.09854,"119":0.08869,"120":0.12318,"121":0.16259,"122":0.29069,"123":0.85237,"124":11.879,"125":4.5624,"126":0.00493,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 43 44 45 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 76 77 78 92 95 127 128"},F:{"46":0.00985,"71":0.00493,"85":0.03449,"95":0.04927,"96":0.00493,"98":0.00493,"102":0.00985,"104":0.00493,"106":0.1281,"107":0.50255,"108":0.02464,"109":2.19744,"110":0.14781,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 97 99 100 101 103 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00493,"91":0.03449,"92":0.00985,"108":0.00493,"109":0.1281,"110":0.00985,"111":0.00985,"112":0.00493,"113":0.00985,"114":0.01971,"115":0.00493,"116":0.01478,"117":0.00493,"118":0.01971,"119":0.02464,"120":0.03942,"121":0.04434,"122":0.11332,"123":0.19708,"124":5.27682,"125":2.9562,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107"},E:{"9":0.01478,"13":0.00985,"14":0.03942,"15":0.01478,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00493,"12.1":0.01971,"13.1":0.09854,"14.1":0.09361,"15.1":0.01971,"15.2-15.3":0.01478,"15.4":0.03942,"15.5":0.05912,"15.6":0.33996,"16.0":0.06405,"16.1":0.06405,"16.2":0.0542,"16.3":0.13303,"16.4":0.03942,"16.5":0.10347,"16.6":0.45328,"17.0":0.04434,"17.1":0.14781,"17.2":0.14288,"17.3":0.14781,"17.4":2.21222,"17.5":0.46314},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00342,"5.0-5.1":0.00342,"6.0-6.1":0.00856,"7.0-7.1":0.01198,"8.1-8.4":0.00342,"9.0-9.2":0.00856,"9.3":0.03936,"10.0-10.2":0.00684,"10.3":0.0616,"11.0-11.2":0.09069,"11.3-11.4":0.01711,"12.0-12.1":0.01027,"12.2-12.5":0.24811,"13.0-13.1":0.00513,"13.2":0.02396,"13.3":0.01198,"13.4-13.7":0.05476,"14.0-14.4":0.09411,"14.5-14.8":0.14545,"15.0-15.1":0.07016,"15.2-15.3":0.077,"15.4":0.08727,"15.5":0.10951,"15.6-15.8":0.98561,"16.0":0.22416,"16.1":0.462,"16.2":0.22416,"16.3":0.38842,"16.4":0.08213,"16.5":0.16598,"16.6-16.7":1.3227,"17.0":0.14373,"17.1":0.23442,"17.2":0.24469,"17.3":0.45174,"17.4":10.25818,"17.5":0.7238,"17.6":0},P:{"4":0.20995,"20":0.021,"21":0.05249,"22":0.06299,"23":0.14697,"24":0.31493,"25":4.06261,"5.0-5.4":0.0105,"6.2-6.4":0.03149,_:"7.2-7.4 8.2 10.1 12.0 14.0","9.2":0.0105,"11.1-11.2":0.0105,"13.0":0.0105,"15.0":0.0105,"16.0":0.0105,"17.0":0.0105,"18.0":0.0105,"19.0":0.0105},I:{"0":0.09096,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.61383,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01556,"9":0.01037,"11":0.07261,_:"6 7 10 5.5"},S:{"2.5":0.00507,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":27.01533},R:{_:"0"},M:{"0":0.8269},Q:{_:"14.9"},O:{"0":0.07102},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AU.js b/node_modules/caniuse-lite/data/regions/AU.js index 176e8d19f..78f037c20 100644 --- a/node_modules/caniuse-lite/data/regions/AU.js +++ b/node_modules/caniuse-lite/data/regions/AU.js @@ -1 +1 @@ -module.exports={C:{"52":0.01884,"54":0.00471,"78":0.01884,"102":0.00471,"115":0.14127,"125":0.00942,"127":0.00471,"128":0.04709,"130":0.00471,"132":0.01413,"133":0.00942,"134":0.00942,"135":0.01413,"136":0.03767,"137":0.03296,"138":0.11302,"139":1.47392,"140":0.19778,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 131 141 142 143 3.5 3.6"},D:{"25":0.04238,"26":0.00471,"34":0.00942,"38":0.05651,"39":0.02355,"40":0.02355,"41":0.02355,"42":0.02355,"43":0.02355,"44":0.02355,"45":0.02355,"46":0.02355,"47":0.02355,"48":0.02355,"49":0.03296,"50":0.02355,"51":0.02355,"52":0.02825,"53":0.02355,"54":0.02355,"55":0.02355,"56":0.02355,"57":0.02355,"58":0.02355,"59":0.02355,"60":0.02355,"66":0.00942,"73":0.00471,"74":0.00471,"76":0.00471,"78":0.00471,"79":0.04238,"80":0.00471,"81":0.02825,"85":0.01413,"86":0.00942,"87":0.03767,"88":0.01413,"90":0.00471,"92":0.00471,"93":0.00471,"94":0.00471,"95":0.00471,"96":0.00942,"97":0.00471,"98":0.01413,"99":0.00942,"100":0.00942,"101":0.00471,"102":0.00471,"103":0.06122,"104":0.01413,"105":0.01884,"106":0.00471,"107":0.00942,"108":0.03296,"109":0.41439,"110":0.00471,"111":0.03767,"112":0.00942,"113":0.00942,"114":0.02355,"115":0.00471,"116":0.17894,"117":0.00942,"118":0.00942,"119":0.01884,"120":0.03296,"121":0.03767,"122":0.08005,"123":0.06593,"124":0.06122,"125":0.09889,"126":0.04709,"127":0.03296,"128":0.16482,"129":0.04238,"130":0.0518,"131":0.43323,"132":0.34376,"133":0.38143,"134":0.24487,"135":0.56508,"136":3.86138,"137":17.1596,"138":0.69222,"139":0.02355,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 67 68 69 70 71 72 75 77 83 84 89 91 140 141"},F:{"46":0.01413,"89":0.00942,"90":0.00471,"95":0.00942,"102":0.00471,"117":0.00942,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00471,"18":0.00471,"85":0.00942,"92":0.00471,"107":0.00471,"109":0.09418,"111":0.00471,"113":0.00471,"114":0.00471,"117":0.00471,"119":0.00471,"120":0.00942,"122":0.00471,"123":0.00471,"124":0.00471,"125":0.00471,"126":0.00942,"127":0.00471,"128":0.00942,"129":0.01884,"130":0.01884,"131":0.02825,"132":0.02825,"133":0.01884,"134":0.09418,"135":0.06593,"136":1.06894,"137":5.41535,"138":0.42381,_:"13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 112 115 116 118 121"},E:{"13":0.00942,"14":0.02825,"15":0.00471,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.00471,"12.1":0.01884,"13.1":0.07534,"14.1":0.11302,"15.1":0.01413,"15.2-15.3":0.01413,"15.4":0.02355,"15.5":0.04238,"15.6":0.39556,"16.0":0.06593,"16.1":0.07064,"16.2":0.03296,"16.3":0.09418,"16.4":0.02825,"16.5":0.04238,"16.6":0.50857,"17.0":0.00942,"17.1":0.43794,"17.2":0.03296,"17.3":0.04238,"17.4":0.09889,"17.5":0.15069,"17.6":0.4709,"18.0":0.04238,"18.1":0.12243,"18.2":0.06122,"18.3":0.33905,"18.4":0.3155,"18.5":3.97911,"26.0":0.00471},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00485,"5.0-5.1":0,"6.0-6.1":0.0097,"7.0-7.1":0.0097,"8.1-8.4":0,"9.0-9.2":0.00485,"9.3":0.02911,"10.0-10.2":0.00243,"10.3":0.04851,"11.0-11.2":0.31046,"11.3-11.4":0.01698,"12.0-12.1":0.00485,"12.2-12.5":0.16251,"13.0-13.1":0.00243,"13.2":0.00728,"13.3":0.00485,"13.4-13.7":0.02668,"14.0-14.4":0.06306,"14.5-14.8":0.06306,"15.0-15.1":0.04366,"15.2-15.3":0.04366,"15.4":0.05336,"15.5":0.05821,"15.6-15.8":0.75189,"16.0":0.09944,"16.1":0.20374,"16.2":0.10429,"16.3":0.19161,"16.4":0.04366,"16.5":0.07761,"16.6-16.7":0.94351,"17.0":0.05093,"17.1":0.08974,"17.2":0.07034,"17.3":0.09944,"17.4":0.17706,"17.5":0.3711,"17.6-17.7":0.97019,"18.0":0.24012,"18.1":0.54088,"18.2":0.2862,"18.3":1.22971,"18.4":1.3049,"18.5":15.29741,"26.0":0},P:{"4":0.07569,"20":0.01081,"21":0.02163,"22":0.01081,"23":0.02163,"24":0.04325,"25":0.03244,"26":0.06488,"27":0.1622,"28":2.71409,"5.0-5.4":0.01081,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01081,"19.0":0.01081},I:{"0":0.01584,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.13754,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.04709,"11":0.04709,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":25.37157},R:{_:"0"},M:{"0":0.529},Q:{"14.9":0.01058},O:{"0":0.04232},H:{"0":0}}; +module.exports={C:{"34":0.00553,"52":0.01107,"54":0.00553,"78":0.0166,"83":0.00553,"88":0.02213,"102":0.00553,"103":0.01107,"108":0.00553,"109":0.00553,"113":0.00553,"114":0.0166,"115":0.22132,"118":0.00553,"119":0.00553,"120":0.00553,"121":0.00553,"122":0.01107,"123":0.02213,"124":0.0498,"125":1.00701,"126":0.82442,"127":0.00553,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 110 111 112 116 117 128 129 3.5 3.6"},D:{"25":0.02213,"26":0.00553,"34":0.0166,"35":0.03873,"38":0.08853,"44":0.00553,"45":0.00553,"46":0.00553,"49":0.01107,"51":0.00553,"52":0.00553,"53":0.00553,"56":0.00553,"59":0.01107,"63":0.00553,"66":0.01107,"67":0.00553,"68":0.00553,"69":0.00553,"70":0.00553,"71":0.00553,"72":0.00553,"73":0.00553,"74":0.01107,"75":0.00553,"76":0.00553,"77":0.00553,"78":0.00553,"79":0.0664,"80":0.01107,"81":0.0498,"83":0.00553,"84":0.00553,"85":0.01107,"86":0.05533,"87":0.06086,"88":0.0498,"89":0.01107,"90":0.01107,"91":0.0166,"92":0.00553,"93":0.0166,"94":0.02767,"95":0.00553,"96":0.00553,"97":0.01107,"98":0.0166,"99":0.02213,"100":0.0498,"101":0.083,"102":0.05533,"103":0.22132,"104":0.0664,"105":0.0332,"106":0.01107,"107":0.0166,"108":0.0332,"109":0.85208,"110":0.02767,"111":0.02213,"112":0.0332,"113":0.12726,"114":0.14939,"115":0.02767,"116":0.47584,"117":0.04426,"118":0.03873,"119":0.12173,"120":0.23792,"121":0.30985,"122":0.68056,"123":2.32386,"124":21.0088,"125":6.6396,"126":0.0166,"127":0.00553,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 32 33 36 37 39 40 41 42 43 47 48 50 54 55 57 58 60 61 62 64 65 128"},F:{"36":0.00553,"46":0.02767,"95":0.01107,"107":0.21579,"108":0.01107,"109":0.65289,"110":0.02767,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00553,"80":0.00553,"81":0.00553,"83":0.00553,"84":0.00553,"85":0.00553,"86":0.00553,"89":0.00553,"90":0.00553,"92":0.01107,"108":0.00553,"109":0.09959,"110":0.00553,"111":0.00553,"112":0.00553,"113":0.0166,"114":0.0166,"115":0.01107,"116":0.00553,"117":0.00553,"118":0.01107,"119":0.01107,"120":0.04426,"121":0.03873,"122":0.09959,"123":0.30432,"124":5.21762,"125":2.65031,_:"12 13 14 15 16 17 79 87 88 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107"},E:{"9":0.01107,"13":0.0166,"14":0.07746,"15":0.0166,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1 17.6","9.1":0.02767,"11.1":0.00553,"12.1":0.02767,"13.1":0.13833,"14.1":0.22132,"15.1":0.0332,"15.2-15.3":0.03873,"15.4":0.05533,"15.5":0.08853,"15.6":0.78015,"16.0":0.06086,"16.1":0.14386,"16.2":0.09959,"16.3":0.24345,"16.4":0.07193,"16.5":0.13279,"16.6":0.81335,"17.0":0.06086,"17.1":0.16046,"17.2":0.17152,"17.3":0.23792,"17.4":3.73478,"17.5":0.37624},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00411,"5.0-5.1":0.00411,"6.0-6.1":0.01027,"7.0-7.1":0.01438,"8.1-8.4":0.00411,"9.0-9.2":0.01027,"9.3":0.04725,"10.0-10.2":0.00822,"10.3":0.07396,"11.0-11.2":0.10888,"11.3-11.4":0.02054,"12.0-12.1":0.01233,"12.2-12.5":0.29789,"13.0-13.1":0.00616,"13.2":0.02876,"13.3":0.01438,"13.4-13.7":0.06574,"14.0-14.4":0.11299,"14.5-14.8":0.17462,"15.0-15.1":0.08423,"15.2-15.3":0.09245,"15.4":0.10477,"15.5":0.13148,"15.6-15.8":1.18333,"16.0":0.26912,"16.1":0.55468,"16.2":0.26912,"16.3":0.46635,"16.4":0.09861,"16.5":0.19928,"16.6-16.7":1.58804,"17.0":0.17257,"17.1":0.28145,"17.2":0.29378,"17.3":0.54236,"17.4":12.31605,"17.5":0.86901,"17.6":0},P:{"4":0.17681,"20":0.0221,"21":0.05525,"22":0.0442,"23":0.07735,"24":0.22101,"25":2.17697,"5.0-5.4":0.0221,"6.2-6.4":0.01105,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0","13.0":0.01105,"14.0":0.01105,"15.0":0.01105,"16.0":0.0221,"17.0":0.01105,"18.0":0.01105,"19.0":0.01105},I:{"0":0.07121,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.1251,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04678,"9":0.01559,"10":0.01559,"11":0.09356,_:"6 7 5.5"},S:{"2.5":0.00447,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.92335},R:{_:"0"},M:{"0":0.41106},Q:{"14.9":0.0134},O:{"0":0.04468},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AW.js b/node_modules/caniuse-lite/data/regions/AW.js index 86517fab4..22a6425ff 100644 --- a/node_modules/caniuse-lite/data/regions/AW.js +++ b/node_modules/caniuse-lite/data/regions/AW.js @@ -1 +1 @@ -module.exports={C:{"52":0.00236,"78":0.02123,"115":0.0401,"128":0.00708,"131":0.00236,"133":0.00708,"134":0.00708,"136":0.00236,"137":0.01415,"138":0.01887,"139":0.46236,"140":0.04718,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 135 141 142 143 3.5 3.6"},D:{"39":0.00708,"40":0.00944,"41":0.00708,"42":0.00472,"43":0.00944,"44":0.00944,"45":0.00944,"46":0.00708,"47":0.00944,"48":0.00944,"49":0.00708,"50":0.00472,"51":0.00944,"52":0.01415,"53":0.01415,"54":0.00944,"55":0.00708,"56":0.00944,"57":0.0118,"58":0.01415,"59":0.00944,"60":0.00944,"81":0.00236,"87":0.00236,"91":0.00236,"103":0.02595,"104":0.00236,"105":0.00236,"108":0.00236,"109":0.35385,"111":0.00472,"115":0.00944,"116":0.08021,"120":0.00708,"121":0.00236,"122":0.05426,"123":0.00472,"124":0.00236,"125":0.86104,"126":0.10144,"127":0.01415,"128":0.04718,"129":0.00472,"130":0.00472,"131":0.0118,"132":0.05662,"133":0.01651,"134":0.08257,"135":0.14862,"136":1.68669,"137":8.11968,"138":0.38924,"139":0.00236,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 88 89 90 92 93 94 95 96 97 98 99 100 101 102 106 107 110 112 113 114 117 118 119 140 141"},F:{"95":0.00236,"117":0.00472,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00236,"109":0.00236,"122":0.00236,"123":0.00236,"125":0.00236,"126":0.00236,"129":0.00236,"130":0.00944,"131":0.08492,"132":0.00472,"133":0.00472,"134":0.02595,"135":0.0401,"136":0.72893,"137":4.44672,"138":0.34441,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 124 127 128"},E:{"14":0.00236,"15":0.00236,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3","12.1":0.02123,"13.1":0.00708,"14.1":0.02595,"15.4":0.00708,"15.5":0.00472,"15.6":0.18872,"16.0":0.00472,"16.1":0.00472,"16.2":0.00708,"16.3":0.01415,"16.4":0.01415,"16.5":0.01415,"16.6":0.08257,"17.0":0.01887,"17.1":0.08728,"17.2":0.01887,"17.3":0.0118,"17.4":0.02359,"17.5":0.0519,"17.6":0.15098,"18.0":0.02831,"18.1":0.04482,"18.2":0.0118,"18.3":0.13446,"18.4":0.11087,"18.5":1.29273,"26.0":0.00236},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00585,"5.0-5.1":0,"6.0-6.1":0.0117,"7.0-7.1":0.0117,"8.1-8.4":0,"9.0-9.2":0.00585,"9.3":0.03511,"10.0-10.2":0.00293,"10.3":0.05852,"11.0-11.2":0.37454,"11.3-11.4":0.02048,"12.0-12.1":0.00585,"12.2-12.5":0.19605,"13.0-13.1":0.00293,"13.2":0.00878,"13.3":0.00585,"13.4-13.7":0.03219,"14.0-14.4":0.07608,"14.5-14.8":0.07608,"15.0-15.1":0.05267,"15.2-15.3":0.05267,"15.4":0.06437,"15.5":0.07023,"15.6-15.8":0.9071,"16.0":0.11997,"16.1":0.24579,"16.2":0.12582,"16.3":0.23116,"16.4":0.05267,"16.5":0.09364,"16.6-16.7":1.13826,"17.0":0.06145,"17.1":0.10827,"17.2":0.08486,"17.3":0.11997,"17.4":0.21361,"17.5":0.4477,"17.6-17.7":1.17045,"18.0":0.28969,"18.1":0.65253,"18.2":0.34528,"18.3":1.48354,"18.4":1.57425,"18.5":18.45505,"26.0":0},P:{"4":0.03061,"20":0.0102,"21":0.0102,"22":0.03061,"23":0.0102,"24":0.02041,"25":0.08163,"26":0.06122,"27":0.16325,"28":5.13224,"5.0-5.4":0.0102,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04081},I:{"0":0.00763,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.04585,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00708,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.85218},R:{_:"0"},M:{"0":0.10699},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"4":0.00266,"31":0.00531,"52":0.00266,"64":0.00266,"78":0.02923,"101":0.02391,"103":0.03454,"115":0.02923,"122":0.00797,"123":0.00266,"124":0.01329,"125":0.30821,"126":0.23647,"127":0.00531,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 128 129 3.5 3.6"},D:{"47":0.00266,"54":0.00531,"65":0.00531,"75":0.00266,"76":0.00266,"79":0.00797,"80":0.00531,"81":0.00266,"83":0.0186,"86":0.0186,"87":0.01594,"90":0.00266,"92":0.00266,"93":0.01594,"94":0.01594,"98":0.01063,"99":0.00531,"100":0.00266,"103":0.08237,"104":0.00266,"106":0.00266,"108":0.00266,"109":0.80773,"111":0.00266,"112":0.00266,"113":0.00266,"114":0.00266,"115":0.01063,"116":0.10362,"117":0.00266,"118":0.01329,"119":0.01329,"120":0.16208,"121":0.05314,"122":0.38261,"123":0.52609,"124":9.20385,"125":3.74371,"126":0.04783,"127":0.00266,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 77 78 84 85 88 89 91 95 96 97 101 102 105 107 110 128"},F:{"95":0.00531,"100":0.00266,"107":0.09831,"108":0.00531,"109":0.48889,"110":0.02391,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00266,"16":0.00266,"105":0.00531,"108":0.00266,"109":0.01063,"112":0.00266,"113":0.00266,"114":0.01063,"117":0.00531,"119":0.00266,"120":0.01329,"121":0.0186,"122":0.04251,"123":0.10894,"124":3.42753,"125":2.43913,_:"13 14 15 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 110 111 115 116 118"},E:{"13":0.00266,"14":0.01329,"15":0.00531,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00531,"13.1":0.03188,"14.1":0.06377,"15.1":0.00266,"15.2-15.3":0.01594,"15.4":0.08502,"15.5":0.0372,"15.6":0.15676,"16.0":0.09831,"16.1":0.04783,"16.2":0.01594,"16.3":0.18599,"16.4":0.04251,"16.5":0.04783,"16.6":0.25773,"17.0":0.0186,"17.1":0.09034,"17.2":0.093,"17.3":0.06111,"17.4":1.54106,"17.5":0.19928},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00584,"5.0-5.1":0.00584,"6.0-6.1":0.01461,"7.0-7.1":0.02045,"8.1-8.4":0.00584,"9.0-9.2":0.01461,"9.3":0.06719,"10.0-10.2":0.01169,"10.3":0.10517,"11.0-11.2":0.15483,"11.3-11.4":0.02921,"12.0-12.1":0.01753,"12.2-12.5":0.4236,"13.0-13.1":0.00876,"13.2":0.0409,"13.3":0.02045,"13.4-13.7":0.09348,"14.0-14.4":0.16068,"14.5-14.8":0.24832,"15.0-15.1":0.11978,"15.2-15.3":0.13146,"15.4":0.14899,"15.5":0.18697,"15.6-15.8":1.68272,"16.0":0.3827,"16.1":0.78877,"16.2":0.3827,"16.3":0.66315,"16.4":0.14023,"16.5":0.28337,"16.6-16.7":2.25823,"17.0":0.2454,"17.1":0.40023,"17.2":0.41776,"17.3":0.77124,"17.4":17.51368,"17.5":1.23574,"17.6":0},P:{"4":0.04122,"20":0.05153,"21":0.10306,"22":0.29888,"23":0.21643,"24":0.505,"25":7.41017,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0 18.0","7.2-7.4":0.09276,"9.2":0.01031,"11.1-11.2":0.02061,"13.0":0.01031,"15.0":0.01031,"16.0":0.01031,"17.0":0.02061,"19.0":0.02061},I:{"0":0.00731,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.07342,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01063,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.42233},R:{_:"0"},M:{"0":0.19089},Q:{_:"14.9"},O:{"0":0.01468},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AX.js b/node_modules/caniuse-lite/data/regions/AX.js index 81f1526b0..48037c136 100644 --- a/node_modules/caniuse-lite/data/regions/AX.js +++ b/node_modules/caniuse-lite/data/regions/AX.js @@ -1 +1 @@ -module.exports={C:{"52":0.02974,"100":0.00496,"115":0.32214,"128":0.05947,"135":0.00496,"136":2.54738,"137":0.03965,"138":0.59472,"139":1.12997,"140":0.21311,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.00991,"40":0.00991,"41":0.00991,"43":0.00991,"46":0.02478,"47":0.00496,"48":0.00991,"50":0.00991,"52":0.00496,"56":0.00991,"57":0.00496,"58":0.00991,"59":0.00991,"76":0.39648,"79":0.10903,"87":0.02974,"103":0.06443,"109":0.54516,"111":0.09416,"116":0.09912,"122":0.00991,"125":0.05947,"126":0.00991,"127":0.02478,"128":0.02974,"130":0.08425,"131":0.19824,"132":0.00496,"134":0.14372,"135":0.10408,"136":3.15697,"137":24.43308,"138":1.17457,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 42 44 45 49 51 53 54 55 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 112 113 114 115 117 118 119 120 121 123 124 129 133 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.06443,"133":0.06443,"134":0.02974,"135":0.00991,"136":0.6641,"137":5.83321,"138":0.64428,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132"},E:{"14":0.02974,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 16.1 16.4 17.0 17.4 26.0","13.1":0.00991,"15.5":0.02974,"15.6":0.06443,"16.0":0.00991,"16.2":0.00991,"16.3":0.01982,"16.5":0.01487,"16.6":0.14372,"17.1":0.02974,"17.2":0.00496,"17.3":0.09416,"17.5":0.00991,"17.6":0.13877,"18.0":0.02974,"18.1":0.02478,"18.2":0.06443,"18.3":0.07434,"18.4":0.14372,"18.5":0.88217},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00193,"5.0-5.1":0,"6.0-6.1":0.00386,"7.0-7.1":0.00386,"8.1-8.4":0,"9.0-9.2":0.00193,"9.3":0.01159,"10.0-10.2":0.00097,"10.3":0.01932,"11.0-11.2":0.12368,"11.3-11.4":0.00676,"12.0-12.1":0.00193,"12.2-12.5":0.06474,"13.0-13.1":0.00097,"13.2":0.0029,"13.3":0.00193,"13.4-13.7":0.01063,"14.0-14.4":0.02512,"14.5-14.8":0.02512,"15.0-15.1":0.01739,"15.2-15.3":0.01739,"15.4":0.02126,"15.5":0.02319,"15.6-15.8":0.29953,"16.0":0.03962,"16.1":0.08116,"16.2":0.04155,"16.3":0.07633,"16.4":0.01739,"16.5":0.03092,"16.6-16.7":0.37587,"17.0":0.02029,"17.1":0.03575,"17.2":0.02802,"17.3":0.03962,"17.4":0.07054,"17.5":0.14783,"17.6-17.7":0.3865,"18.0":0.09566,"18.1":0.21547,"18.2":0.11402,"18.3":0.48988,"18.4":0.51984,"18.5":6.09407,"26.0":0},P:{"22":0.01127,"23":0.02255,"24":0.04509,"25":0.04509,"26":0.01127,"27":0.20291,"28":4.24977,_:"4 20 21 5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01127},I:{"0":0.10572,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.12608,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":33.65991},R:{_:"0"},M:{"0":4.06466},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"87":0.00576,"108":0.06334,"115":0.26487,"122":0.01727,"123":0.00576,"124":0.06334,"125":3.35691,"126":2.28593,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 127 128 129 3.5 3.6"},D:{"38":0.01152,"76":0.08061,"87":0.01727,"91":0.02879,"92":0.01152,"94":0.00576,"96":0.10364,"103":0.1094,"108":0.00576,"109":1.65255,"111":0.00576,"114":0.05182,"115":0.01727,"116":0.28214,"119":0.02879,"120":0.04031,"121":0.00576,"122":0.25911,"123":1.10554,"124":22.98018,"125":9.9671,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 86 88 89 90 93 95 97 98 99 100 101 102 104 105 106 107 110 112 113 117 118 126 127 128"},F:{"107":0.07485,"108":0.00576,"109":2.23986,"110":0.01152,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"87":0.00576,"92":0.00576,"102":0.00576,"109":0.07485,"111":0.01152,"112":0.04606,"113":0.28214,"114":0.09789,"117":0.00576,"119":0.04031,"120":0.00576,"122":0.00576,"123":0.12092,"124":4.56034,"125":3.72543,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 110 115 116 118 121"},E:{"12":0.02303,"13":0.01152,"14":0.04031,_:"0 4 5 6 7 8 9 10 11 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 17.6","11.1":0.00576,"13.1":0.01152,"14.1":0.06334,"15.1":0.00576,"15.2-15.3":0.00576,"15.4":0.00576,"15.5":0.02303,"15.6":0.09789,"16.0":0.04031,"16.1":0.02879,"16.2":0.01727,"16.3":0.06334,"16.4":0.02303,"16.5":0.01152,"16.6":0.09789,"17.0":0.02303,"17.1":0.04031,"17.2":0.03455,"17.3":0.0691,"17.4":1.23221,"17.5":0.11516},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00123,"5.0-5.1":0.00123,"6.0-6.1":0.00308,"7.0-7.1":0.00431,"8.1-8.4":0.00123,"9.0-9.2":0.00308,"9.3":0.01415,"10.0-10.2":0.00246,"10.3":0.02214,"11.0-11.2":0.0326,"11.3-11.4":0.00615,"12.0-12.1":0.00369,"12.2-12.5":0.08919,"13.0-13.1":0.00185,"13.2":0.00861,"13.3":0.00431,"13.4-13.7":0.01968,"14.0-14.4":0.03383,"14.5-14.8":0.05228,"15.0-15.1":0.02522,"15.2-15.3":0.02768,"15.4":0.03137,"15.5":0.03937,"15.6-15.8":0.35429,"16.0":0.08058,"16.1":0.16607,"16.2":0.08058,"16.3":0.13963,"16.4":0.02952,"16.5":0.05966,"16.6-16.7":0.47546,"17.0":0.05167,"17.1":0.08427,"17.2":0.08796,"17.3":0.16238,"17.4":3.68746,"17.5":0.26018,"17.6":0},P:{"20":0.02237,"21":0.01118,"22":0.10066,"23":0.03355,"24":0.13422,"25":2.85212,_:"4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","5.0-5.4":0.01118,"18.0":0.06711},I:{"0":0.11409,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00025},K:{"0":0.48359,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00576,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.91096},R:{_:"0"},M:{"0":4.43713},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/AZ.js b/node_modules/caniuse-lite/data/regions/AZ.js index 7e32a66cb..4b95519ca 100644 --- a/node_modules/caniuse-lite/data/regions/AZ.js +++ b/node_modules/caniuse-lite/data/regions/AZ.js @@ -1 +1 @@ -module.exports={C:{"52":0.00189,"68":0.01703,"91":0.00189,"115":0.03406,"125":0.00378,"128":0.02081,"134":0.00378,"137":0.00189,"138":0.01135,"139":0.23272,"140":0.03027,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 133 135 136 141 142 143 3.5 3.6"},D:{"11":0.00189,"38":0.00378,"39":0.00757,"40":0.00946,"41":0.00757,"42":0.00757,"43":0.00757,"44":0.00757,"45":0.00568,"46":0.00757,"47":0.00757,"48":0.00757,"49":0.00946,"50":0.00757,"51":0.00757,"52":0.00946,"53":0.00946,"54":0.00757,"55":0.00757,"56":0.00757,"57":0.00757,"58":0.00946,"59":0.00757,"60":0.00946,"65":0.00189,"66":0.00189,"69":0.00189,"70":0.00189,"74":0.00189,"75":0.00189,"77":0.00189,"79":0.05487,"83":0.03784,"84":0.00189,"86":0.01324,"87":0.03027,"88":0.00189,"89":0.00568,"90":0.01514,"91":0.00189,"92":0.00189,"94":0.00378,"98":0.00189,"99":0.00189,"100":0.00568,"101":0.00568,"102":0.00568,"103":0.01324,"104":0.00189,"105":0.00378,"106":0.01703,"107":0.00568,"108":0.01324,"109":1.32818,"110":0.00378,"111":0.0227,"112":0.00378,"113":0.00378,"114":0.00757,"115":0.00189,"116":0.01135,"118":0.01892,"119":0.01135,"120":0.00946,"121":0.00568,"122":0.0246,"123":0.01135,"124":0.00757,"125":1.93173,"126":0.01514,"127":0.01514,"128":0.01514,"129":0.01135,"130":0.01324,"131":0.02838,"132":0.0246,"133":0.03216,"134":0.03406,"135":0.07757,"136":1.10682,"137":7.42421,"138":0.25731,"139":0.00378,_:"4 5 6 7 8 9 10 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 61 62 63 64 67 68 71 72 73 76 78 80 81 85 93 95 96 97 117 140 141"},F:{"36":0.00189,"46":0.00568,"56":0.00189,"65":0.00189,"73":0.00189,"79":0.00757,"84":0.00568,"85":0.11163,"86":0.00378,"88":0.00189,"89":0.02838,"90":0.01324,"95":0.1192,"102":0.00189,"117":0.00189,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 57 58 60 62 63 64 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 87 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00189,"89":0.00946,"92":0.00378,"100":0.00189,"109":0.00946,"110":0.00378,"114":0.00568,"115":0.00189,"117":0.00189,"122":0.00189,"127":0.00189,"129":0.00378,"130":0.00189,"131":0.00378,"132":0.00189,"133":0.00568,"134":0.00946,"135":0.01514,"136":0.12109,"137":0.85708,"138":0.06433,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 111 112 113 116 118 119 120 121 123 124 125 126 128"},E:{"14":0.00189,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.4 15.5 16.5 17.0 26.0","5.1":0.00378,"14.1":0.00757,"15.2-15.3":0.00189,"15.6":0.01703,"16.0":0.00378,"16.1":0.00378,"16.2":0.00568,"16.3":0.00189,"16.4":0.00189,"16.6":0.01703,"17.1":0.01703,"17.2":0.00189,"17.3":0.00189,"17.4":0.00378,"17.5":0.01514,"17.6":0.0227,"18.0":0.00757,"18.1":0.01703,"18.2":0.00189,"18.3":0.03027,"18.4":0.01703,"18.5":0.19488},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00136,"5.0-5.1":0,"6.0-6.1":0.00273,"7.0-7.1":0.00273,"8.1-8.4":0,"9.0-9.2":0.00136,"9.3":0.00818,"10.0-10.2":0.00068,"10.3":0.01364,"11.0-11.2":0.08729,"11.3-11.4":0.00477,"12.0-12.1":0.00136,"12.2-12.5":0.04569,"13.0-13.1":0.00068,"13.2":0.00205,"13.3":0.00136,"13.4-13.7":0.0075,"14.0-14.4":0.01773,"14.5-14.8":0.01773,"15.0-15.1":0.01228,"15.2-15.3":0.01228,"15.4":0.015,"15.5":0.01637,"15.6-15.8":0.21141,"16.0":0.02796,"16.1":0.05729,"16.2":0.02932,"16.3":0.05388,"16.4":0.01228,"16.5":0.02182,"16.6-16.7":0.26529,"17.0":0.01432,"17.1":0.02523,"17.2":0.01978,"17.3":0.02796,"17.4":0.04978,"17.5":0.10434,"17.6-17.7":0.27279,"18.0":0.06751,"18.1":0.15208,"18.2":0.08047,"18.3":0.34576,"18.4":0.3669,"18.5":4.30117,"26.0":0},P:{"4":0.44253,"20":0.01006,"21":0.02011,"22":0.02011,"23":0.03017,"24":0.03017,"25":0.06034,"26":0.10057,"27":0.13075,"28":1.84051,_:"5.0-5.4 8.2 9.2 11.1-11.2 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.02011,"7.2-7.4":0.06034,"10.1":0.03017,"13.0":0.01006,"17.0":0.03017,"19.0":0.01006},I:{"0":0.0081,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.9893,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01156,"9":0.00231,"11":0.00694,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":71.56964},R:{_:"0"},M:{"0":0.14596},Q:{_:"14.9"},O:{"0":0.11353},H:{"0":0}}; +module.exports={C:{"32":0.00269,"34":0.00269,"52":0.00269,"68":0.01613,"102":0.00269,"113":0.00269,"115":0.07798,"117":0.01613,"118":0.00269,"124":0.00807,"125":0.20168,"126":0.16672,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"11":0.00269,"22":0.00269,"38":0.00538,"43":0.00269,"44":0.00269,"46":0.00269,"49":0.01613,"51":0.01345,"53":0.00269,"68":0.00269,"69":0.00269,"70":0.00807,"71":0.00538,"72":0.00538,"73":0.00538,"74":0.00269,"75":0.00538,"76":0.00269,"78":0.00269,"79":0.10218,"80":0.01613,"83":0.01882,"84":0.00269,"86":0.01345,"87":0.09949,"88":0.0242,"89":0.01076,"90":0.02689,"91":0.00269,"92":0.00269,"94":0.02958,"95":0.00269,"96":0.00269,"97":0.00269,"98":0.00538,"99":0.01076,"100":0.01613,"101":0.02958,"102":0.02151,"103":0.00807,"104":0.01882,"105":0.0242,"106":0.04034,"107":0.00807,"108":0.00807,"109":2.90412,"110":0.00538,"111":0.01076,"112":0.02958,"113":0.00269,"114":0.00807,"115":0.01076,"116":0.04034,"117":0.01076,"118":0.00807,"119":0.05647,"120":0.10218,"121":0.0484,"122":0.0968,"123":0.33881,"124":11.63799,"125":4.0577,"126":0.01076,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 45 47 48 50 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 77 81 85 93 127 128"},F:{"25":0.00807,"28":0.00269,"36":0.00269,"40":0.00269,"46":0.02689,"64":0.00269,"65":0.00269,"79":0.02151,"83":0.03227,"84":0.00807,"85":0.04302,"86":0.00269,"90":0.00269,"95":0.12907,"107":0.12638,"108":0.02689,"109":0.81746,"110":0.05378,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 87 88 89 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00538,"18":0.00269,"84":0.01345,"92":0.00807,"100":0.00269,"102":0.00269,"109":0.01345,"113":0.00269,"114":0.00269,"117":0.00269,"119":0.00269,"120":0.01345,"121":0.01882,"122":0.02151,"123":0.04302,"124":0.83359,"125":0.44369,_:"13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 110 111 112 115 116 118"},E:{"9":0.01076,"14":0.00269,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 16.0 17.6","5.1":0.00538,"12.1":0.01613,"13.1":0.00538,"14.1":0.00807,"15.1":0.00269,"15.2-15.3":0.00538,"15.4":0.00538,"15.5":0.00269,"15.6":0.02689,"16.1":0.00807,"16.2":0.00269,"16.3":0.01613,"16.4":0.01345,"16.5":0.03765,"16.6":0.05378,"17.0":0.01613,"17.1":0.02151,"17.2":0.02151,"17.3":0.02151,"17.4":0.2931,"17.5":0.03227},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00159,"5.0-5.1":0.00159,"6.0-6.1":0.00398,"7.0-7.1":0.00558,"8.1-8.4":0.00159,"9.0-9.2":0.00398,"9.3":0.01833,"10.0-10.2":0.00319,"10.3":0.02869,"11.0-11.2":0.04224,"11.3-11.4":0.00797,"12.0-12.1":0.00478,"12.2-12.5":0.11555,"13.0-13.1":0.00239,"13.2":0.01116,"13.3":0.00558,"13.4-13.7":0.0255,"14.0-14.4":0.04383,"14.5-14.8":0.06774,"15.0-15.1":0.03267,"15.2-15.3":0.03586,"15.4":0.04064,"15.5":0.051,"15.6-15.8":0.45901,"16.0":0.10439,"16.1":0.21516,"16.2":0.10439,"16.3":0.1809,"16.4":0.03825,"16.5":0.0773,"16.6-16.7":0.616,"17.0":0.06694,"17.1":0.10918,"17.2":0.11396,"17.3":0.21038,"17.4":4.77741,"17.5":0.33709,"17.6":0},P:{"4":0.52731,"20":0.03042,"21":0.16225,"22":0.09126,"23":0.19267,"24":0.26365,"25":2.56555,"5.0-5.4":0.02028,"6.2-6.4":0.07098,"7.2-7.4":0.06084,"8.2":0.01014,_:"9.2 10.1 12.0","11.1-11.2":0.01014,"13.0":0.03042,"14.0":0.01014,"15.0":0.01014,"16.0":0.02028,"17.0":0.07098,"18.0":0.02028,"19.0":0.04056},I:{"0":0.07282,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":1.37178,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00279,"8":0.0195,"9":0.00279,"10":0.00279,"11":0.05013,_:"6 5.5"},S:{"2.5":0.00731,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.89365},R:{_:"0"},M:{"0":0.12429},Q:{_:"14.9"},O:{"0":0.0658},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/BA.js b/node_modules/caniuse-lite/data/regions/BA.js index cb8f2efd8..d50d7d061 100644 --- a/node_modules/caniuse-lite/data/regions/BA.js +++ b/node_modules/caniuse-lite/data/regions/BA.js @@ -1 +1 @@ -module.exports={C:{"21":0.03796,"52":0.04555,"88":0.00759,"91":0.0038,"115":0.36062,"125":0.01139,"127":0.0038,"128":0.01139,"133":0.01139,"134":0.00759,"135":0.0038,"136":0.00759,"137":0.01139,"138":0.05314,"139":1.56016,"140":0.26572,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"39":0.00759,"40":0.00759,"41":0.01139,"42":0.01139,"43":0.00759,"44":0.00759,"45":0.00759,"46":0.01139,"47":0.01518,"48":0.00759,"49":0.03416,"50":0.00759,"51":0.00759,"52":0.01139,"53":0.03796,"54":0.00759,"55":0.01139,"56":0.01139,"57":0.01139,"58":0.01139,"59":0.00759,"60":0.00759,"64":0.00759,"65":0.0038,"69":0.0038,"70":0.00759,"71":0.01518,"72":0.01139,"75":0.0038,"76":0.0038,"78":0.00759,"79":0.48209,"83":0.00759,"84":0.0038,"86":0.0038,"87":0.33025,"88":0.00759,"89":0.00759,"90":0.0038,"91":0.02657,"92":0.0038,"93":0.00759,"94":0.08351,"97":0.0038,"98":0.00759,"99":0.00759,"100":0.0038,"103":0.04935,"106":0.01898,"107":0.02278,"108":0.03416,"109":2.52054,"110":0.0038,"111":0.01518,"112":0.01518,"114":0.03416,"115":0.0038,"116":0.03037,"117":0.0038,"118":0.0038,"119":0.04176,"120":0.02278,"121":0.01518,"122":0.07212,"123":0.01518,"124":0.04176,"125":0.48589,"126":0.04176,"127":0.03796,"128":0.02657,"129":0.01139,"130":0.03796,"131":0.10629,"132":0.06833,"133":0.14045,"134":0.06453,"135":0.17841,"136":2.64202,"137":18.5017,"138":0.73642,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 66 67 68 73 74 77 80 81 85 95 96 101 102 104 105 113 139 140 141"},F:{"28":0.0038,"36":0.0038,"40":0.01139,"46":0.06833,"82":0.0038,"89":0.02657,"90":0.0038,"95":0.08351,"115":0.0038,"117":0.06833,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0038,"108":0.02657,"109":0.01518,"114":0.0038,"122":0.00759,"127":0.0038,"128":0.0038,"129":0.01518,"130":0.00759,"131":0.02657,"132":0.01898,"133":0.00759,"134":0.00759,"135":0.01139,"136":0.26192,"137":1.46526,"138":0.12147,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126"},E:{"14":0.0038,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 16.4 26.0","11.1":0.0038,"12.1":0.03796,"13.1":0.01139,"14.1":0.00759,"15.1":0.02657,"15.2-15.3":0.01518,"15.4":0.0038,"15.5":0.0038,"15.6":0.07972,"16.0":0.0038,"16.1":0.0038,"16.2":0.0038,"16.3":0.0038,"16.5":0.01139,"16.6":0.11388,"17.0":0.0038,"17.1":0.14425,"17.2":0.0038,"17.3":0.0038,"17.4":0.02657,"17.5":0.01139,"17.6":0.07212,"18.0":0.0038,"18.1":0.03796,"18.2":0.0038,"18.3":0.05694,"18.4":0.05314,"18.5":0.4783},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00189,"5.0-5.1":0,"6.0-6.1":0.00378,"7.0-7.1":0.00378,"8.1-8.4":0,"9.0-9.2":0.00189,"9.3":0.01135,"10.0-10.2":0.00095,"10.3":0.01892,"11.0-11.2":0.1211,"11.3-11.4":0.00662,"12.0-12.1":0.00189,"12.2-12.5":0.06339,"13.0-13.1":0.00095,"13.2":0.00284,"13.3":0.00189,"13.4-13.7":0.01041,"14.0-14.4":0.0246,"14.5-14.8":0.0246,"15.0-15.1":0.01703,"15.2-15.3":0.01703,"15.4":0.02081,"15.5":0.02271,"15.6-15.8":0.29329,"16.0":0.03879,"16.1":0.07947,"16.2":0.04068,"16.3":0.07474,"16.4":0.01703,"16.5":0.03028,"16.6-16.7":0.36804,"17.0":0.01987,"17.1":0.03501,"17.2":0.02744,"17.3":0.03879,"17.4":0.06907,"17.5":0.14475,"17.6-17.7":0.37844,"18.0":0.09366,"18.1":0.21098,"18.2":0.11164,"18.3":0.47968,"18.4":0.50901,"18.5":5.96712,"26.0":0},P:{"4":0.46103,"20":0.01025,"21":0.04098,"22":0.02049,"23":0.04098,"24":0.07172,"25":0.06147,"26":0.09221,"27":0.14343,"28":3.56527,"5.0-5.4":0.06147,"6.2-6.4":0.12294,"7.2-7.4":0.17417,_:"8.2 9.2 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","10.1":0.01025,"19.0":0.03074},I:{"0":0.16103,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.20473,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0038,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.53777},R:{_:"0"},M:{"0":0.12408},Q:{_:"14.9"},O:{"0":0.0062},H:{"0":0}}; +module.exports={C:{"48":0.00353,"52":0.09183,"56":0.00353,"64":0.00353,"68":0.00353,"84":0.00353,"88":0.00353,"91":0.00353,"99":0.00353,"102":0.00706,"103":0.01413,"108":0.01766,"111":0.01413,"113":0.01413,"115":0.76291,"119":0.00706,"120":0.00353,"121":0.01766,"122":0.0106,"123":0.03179,"124":0.03532,"125":0.86534,"126":0.8936,"127":0.00353,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 59 60 61 62 63 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 89 90 92 93 94 95 96 97 98 100 101 104 105 106 107 109 110 112 114 116 117 118 128 129 3.5 3.6"},D:{"38":0.0106,"43":0.00353,"46":0.00353,"47":0.00353,"49":0.03179,"50":0.00353,"51":0.00706,"53":0.00353,"55":0.00353,"64":0.00706,"65":0.00706,"68":0.00353,"69":0.00706,"70":0.0106,"71":0.00353,"72":0.02472,"76":0.01766,"77":0.00353,"78":0.0106,"79":0.48388,"80":0.01413,"81":0.0106,"83":0.00706,"84":0.01413,"85":0.0106,"86":0.00706,"87":0.24371,"88":0.02472,"89":0.00353,"90":0.00706,"91":0.00353,"92":0.0106,"93":0.00706,"94":0.05651,"95":0.00706,"96":0.01413,"97":0.00353,"98":0.00353,"99":0.01413,"100":0.04592,"101":0.00353,"102":0.00706,"103":0.02119,"104":0.02472,"105":0.00706,"106":0.01413,"107":0.02472,"108":0.01766,"109":3.37659,"110":0.00706,"111":0.02119,"112":0.01413,"113":0.00706,"114":0.01766,"115":0.00353,"116":0.11302,"117":0.00706,"118":0.0106,"119":0.06358,"120":0.12362,"121":0.07417,"122":0.24724,"123":0.62516,"124":14.20924,"125":5.26974,"126":0.00353,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 44 45 48 52 54 56 57 58 59 60 61 62 63 66 67 73 74 75 127 128"},F:{"28":0.01766,"36":0.00353,"46":0.03885,"54":0.00353,"69":0.00353,"72":0.00353,"85":0.01766,"95":0.09536,"96":0.00353,"106":0.00353,"107":0.19073,"108":0.01413,"109":1.18675,"110":0.06711,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 55 56 57 58 60 62 63 64 65 66 67 68 70 71 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00353,"18":0.00353,"84":0.00353,"85":0.01766,"89":0.00353,"92":0.00706,"102":0.00706,"108":0.0106,"109":0.05298,"111":0.00353,"113":0.00353,"114":0.0106,"118":0.00353,"119":0.02472,"120":0.01766,"121":0.0106,"122":0.03532,"123":0.07417,"124":1.90375,"125":1.0596,_:"12 13 15 16 17 79 80 81 83 86 87 88 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 107 110 112 115 116 117"},E:{"9":0.0106,"13":0.00353,"14":0.00353,_:"0 4 5 6 7 8 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.0106,"13.1":0.01766,"14.1":0.03885,"15.1":0.01413,"15.2-15.3":0.00706,"15.4":0.00353,"15.5":0.0106,"15.6":0.10949,"16.0":0.00706,"16.1":0.00706,"16.2":0.00706,"16.3":0.0106,"16.4":0.00353,"16.5":0.02826,"16.6":0.10243,"17.0":0.00706,"17.1":0.01766,"17.2":0.02826,"17.3":0.01766,"17.4":0.46976,"17.5":0.06711},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00164,"5.0-5.1":0.00164,"6.0-6.1":0.0041,"7.0-7.1":0.00575,"8.1-8.4":0.00164,"9.0-9.2":0.0041,"9.3":0.01888,"10.0-10.2":0.00328,"10.3":0.02955,"11.0-11.2":0.0435,"11.3-11.4":0.00821,"12.0-12.1":0.00492,"12.2-12.5":0.11901,"13.0-13.1":0.00246,"13.2":0.01149,"13.3":0.00575,"13.4-13.7":0.02627,"14.0-14.4":0.04514,"14.5-14.8":0.06977,"15.0-15.1":0.03365,"15.2-15.3":0.03694,"15.4":0.04186,"15.5":0.05253,"15.6-15.8":0.47277,"16.0":0.10752,"16.1":0.22161,"16.2":0.10752,"16.3":0.18632,"16.4":0.0394,"16.5":0.07962,"16.6-16.7":0.63447,"17.0":0.06895,"17.1":0.11245,"17.2":0.11737,"17.3":0.21669,"17.4":4.92063,"17.5":0.34719,"17.6":0},P:{"4":0.81366,"20":0.0309,"21":0.0927,"22":0.0515,"23":0.13389,"24":0.35018,"25":3.57393,"5.0-5.4":0.0515,"6.2-6.4":0.0927,"7.2-7.4":0.0309,_:"8.2 9.2 10.1 12.0 16.0","11.1-11.2":0.0412,"13.0":0.0206,"14.0":0.0103,"15.0":0.0103,"17.0":0.0412,"18.0":0.0206,"19.0":0.0412},I:{"0":0.25127,"3":0,"4":0.00003,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00005,"4.2-4.3":0.00015,"4.4":0,"4.4.3-4.4.4":0.00055},K:{"0":0.32987,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01413,"9":0.00353,"10":0.00353,"11":0.03179,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.76592},R:{_:"0"},M:{"0":0.24578},Q:{_:"14.9"},O:{"0":0.01294},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BB.js b/node_modules/caniuse-lite/data/regions/BB.js index 6bb5db22f..3c66e7d74 100644 --- a/node_modules/caniuse-lite/data/regions/BB.js +++ b/node_modules/caniuse-lite/data/regions/BB.js @@ -1 +1 @@ -module.exports={C:{"115":0.00473,"128":0.02365,"134":0.00473,"137":0.00473,"138":0.06148,"139":0.87014,"140":0.20808,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 141 142 143 3.5 3.6"},D:{"39":0.00946,"40":0.00946,"41":0.01419,"42":0.00946,"43":0.00946,"44":0.00946,"45":0.00946,"46":0.00946,"47":0.01419,"48":0.01419,"49":0.01419,"50":0.01419,"51":0.00946,"52":0.01419,"53":0.00946,"54":0.01419,"55":0.01419,"56":0.00946,"57":0.00946,"58":0.01419,"59":0.01419,"60":0.01419,"62":0.00473,"79":0.00473,"80":0.02837,"81":0.00473,"86":0.01419,"87":0.00473,"88":0.00473,"93":0.00473,"94":0.00946,"103":0.15133,"109":0.20335,"116":0.04256,"119":0.00473,"122":0.00946,"123":0.00473,"124":0.02365,"125":16.61771,"126":0.01419,"128":0.03783,"129":0.00473,"130":0.00473,"131":0.13241,"132":0.05675,"133":0.01892,"134":0.05675,"135":0.07566,"136":1.85377,"137":10.4038,"138":0.77556,"139":0.00946,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 84 85 89 90 91 92 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 120 121 127 140 141"},F:{"68":0.00473,"88":0.00473,"89":0.00473,"95":0.07094,"114":0.00473,"117":0.05675,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00473,"109":0.0331,"114":0.00473,"124":0.00473,"131":0.00473,"133":0.00473,"134":0.01892,"135":0.00473,"136":1.93889,"137":6.16662,"138":1.05457,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.5 17.0 17.3","14.1":0.08039,"15.4":0.00473,"15.6":0.04256,"16.0":0.00473,"16.1":0.23172,"16.2":0.00473,"16.3":0.01892,"16.4":0.02365,"16.5":0.00473,"16.6":0.05675,"17.1":0.08985,"17.2":0.00473,"17.4":0.0331,"17.5":0.07566,"17.6":0.08512,"18.0":0.01419,"18.1":0.02365,"18.2":0.01892,"18.3":0.08985,"18.4":0.08985,"18.5":2.44962,"26.0":0.00473},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00118,"5.0-5.1":0,"6.0-6.1":0.00237,"7.0-7.1":0.00237,"8.1-8.4":0,"9.0-9.2":0.00118,"9.3":0.0071,"10.0-10.2":0.00059,"10.3":0.01183,"11.0-11.2":0.0757,"11.3-11.4":0.00414,"12.0-12.1":0.00118,"12.2-12.5":0.03962,"13.0-13.1":0.00059,"13.2":0.00177,"13.3":0.00118,"13.4-13.7":0.00651,"14.0-14.4":0.01538,"14.5-14.8":0.01538,"15.0-15.1":0.01065,"15.2-15.3":0.01065,"15.4":0.01301,"15.5":0.01419,"15.6-15.8":0.18334,"16.0":0.02425,"16.1":0.04968,"16.2":0.02543,"16.3":0.04672,"16.4":0.01065,"16.5":0.01892,"16.6-16.7":0.23006,"17.0":0.01242,"17.1":0.02188,"17.2":0.01715,"17.3":0.02425,"17.4":0.04317,"17.5":0.09049,"17.6-17.7":0.23656,"18.0":0.05855,"18.1":0.13188,"18.2":0.06979,"18.3":0.29984,"18.4":0.31818,"18.5":3.73,"26.0":0},P:{"4":0.01052,"22":0.07367,"23":0.01052,"24":0.03157,"25":0.02105,"26":0.09472,"27":0.07367,"28":2.72577,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.03157,"17.0":0.0421},I:{"0":0.00526,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.28991,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.31169},R:{_:"0"},M:{"0":0.17921},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"52":0.00418,"78":0.00418,"108":0.00418,"113":0.00418,"115":0.12546,"121":0.01673,"123":0.00836,"124":0.01673,"125":0.6733,"126":0.65239,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 114 116 117 118 119 120 122 127 128 129 3.5 3.6"},D:{"55":0.00418,"56":0.00418,"57":0.00418,"66":0.00836,"69":0.00418,"76":0.00836,"79":0.00836,"80":0.02927,"85":0.00418,"86":0.00418,"87":0.00836,"88":0.00418,"89":0.01255,"93":0.01255,"96":0.02091,"97":0.00836,"99":0.03346,"101":0.00418,"103":0.24674,"104":0.00418,"105":0.00418,"106":0.00836,"107":0.00836,"109":1.00368,"110":0.00836,"111":0.00836,"112":0.00418,"113":0.00418,"114":0.01255,"115":0.00418,"116":0.05018,"117":0.00836,"118":0.00836,"119":0.02927,"120":0.09619,"121":0.01673,"122":0.28856,"123":1.14587,"124":15.87905,"125":7.26832,"126":0.02509,"127":0.00418,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 58 59 60 61 62 63 64 65 67 68 70 71 72 73 74 75 77 78 81 83 84 90 91 92 94 95 98 100 102 108 128"},F:{"95":0.02927,"107":0.24256,"108":0.00836,"109":0.96186,"110":0.03346,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00418,"92":0.00418,"109":0.07946,"114":0.00418,"117":0.00836,"118":0.01255,"120":0.12546,"121":0.01255,"122":0.01673,"123":0.15892,"124":5.82134,"125":2.08682,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 119"},E:{"13":0.00418,"14":0.00836,"15":0.00418,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 17.6","13.1":0.01255,"14.1":0.12964,"15.4":0.01673,"15.5":0.00836,"15.6":0.12964,"16.0":0.00418,"16.1":0.13801,"16.2":0.05437,"16.3":0.06691,"16.4":0.02509,"16.5":0.02091,"16.6":0.17983,"17.0":0.33456,"17.1":0.1171,"17.2":0.05018,"17.3":0.05018,"17.4":1.55152,"17.5":0.22165},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00308,"5.0-5.1":0.00308,"6.0-6.1":0.0077,"7.0-7.1":0.01078,"8.1-8.4":0.00308,"9.0-9.2":0.0077,"9.3":0.03542,"10.0-10.2":0.00616,"10.3":0.05544,"11.0-11.2":0.08162,"11.3-11.4":0.0154,"12.0-12.1":0.00924,"12.2-12.5":0.2233,"13.0-13.1":0.00462,"13.2":0.02156,"13.3":0.01078,"13.4-13.7":0.04928,"14.0-14.4":0.0847,"14.5-14.8":0.1309,"15.0-15.1":0.06314,"15.2-15.3":0.0693,"15.4":0.07854,"15.5":0.09856,"15.6-15.8":0.88705,"16.0":0.20174,"16.1":0.41581,"16.2":0.20174,"16.3":0.34959,"16.4":0.07392,"16.5":0.14938,"16.6-16.7":1.19044,"17.0":0.12936,"17.1":0.21098,"17.2":0.22022,"17.3":0.40657,"17.4":9.23245,"17.5":0.65143,"17.6":0},P:{"4":0.0564,"20":0.01128,"21":0.06768,"22":0.15792,"23":0.29329,"24":0.40609,"25":4.9069,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 16.0","6.2-6.4":0.03384,"7.2-7.4":0.19176,"11.1-11.2":0.01128,"13.0":0.03384,"15.0":0.01128,"17.0":0.04512,"18.0":0.01128,"19.0":0.03384},I:{"0":0.01159,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.13963,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02091,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.60675},R:{_:"0"},M:{"0":0.55271},Q:{_:"14.9"},O:{"0":0.01745},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BD.js b/node_modules/caniuse-lite/data/regions/BD.js index e9a525576..87f2fe7e3 100644 --- a/node_modules/caniuse-lite/data/regions/BD.js +++ b/node_modules/caniuse-lite/data/regions/BD.js @@ -1 +1 @@ -module.exports={C:{"3":0.0032,"15":0.0128,"49":0.0032,"52":0.0032,"65":0.0064,"105":0.0064,"106":0.0032,"107":0.0032,"108":0.0032,"109":0.0032,"110":0.0032,"111":0.0032,"115":0.38092,"127":0.0064,"128":0.03841,"130":0.0032,"133":0.0032,"134":0.01601,"135":0.0064,"136":0.0064,"137":0.0128,"138":0.03201,"139":1.39244,"140":0.34251,"141":0.0128,_:"2 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 132 142 143 3.5 3.6"},D:{"22":0.0032,"29":0.0096,"39":0.0032,"40":0.0032,"41":0.0064,"42":0.0032,"43":0.0032,"44":0.0032,"45":0.0032,"46":0.0032,"47":0.0032,"48":0.0032,"49":0.0032,"50":0.0032,"51":0.0032,"52":0.0032,"53":0.0032,"54":0.0032,"55":0.0032,"56":0.0032,"57":0.0032,"58":0.0032,"59":0.0032,"60":0.0032,"62":0.0032,"65":0.0032,"66":0.0032,"69":0.0032,"70":0.0032,"71":0.0032,"72":0.0032,"73":0.02241,"74":0.0032,"75":0.01601,"76":0.0032,"78":0.0032,"79":0.0064,"80":0.0032,"81":0.0032,"83":0.0064,"85":0.0032,"86":0.0096,"87":0.0096,"91":0.0032,"92":0.0032,"93":0.0096,"94":0.0064,"95":0.0032,"96":0.0032,"97":0.0032,"98":0.0064,"101":0.0096,"102":0.0064,"103":0.03521,"104":0.14084,"105":0.0128,"106":0.04802,"107":0.07042,"108":0.07682,"109":0.89308,"110":0.04481,"111":0.04481,"112":0.03841,"113":0.0032,"114":0.0064,"116":0.0096,"118":0.0128,"119":0.01921,"120":0.0096,"121":0.0096,"122":0.02241,"123":0.0064,"124":0.02881,"125":4.27654,"126":0.01921,"127":0.0096,"128":0.03201,"129":0.03521,"130":0.03841,"131":0.09923,"132":0.06082,"133":0.08323,"134":0.05122,"135":0.30089,"136":1.50127,"137":12.1606,"138":0.76824,"139":0.02561,"140":0.0032,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 63 64 67 68 77 84 88 89 90 99 100 115 117 141"},F:{"46":0.0032,"89":0.02241,"90":0.01601,"91":0.0032,"92":0.0032,"93":0.0032,"94":0.0032,"95":0.0128,"113":0.0032,"114":0.0032,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0032,"92":0.01601,"106":0.0064,"107":0.0128,"108":0.0096,"109":0.0128,"110":0.0064,"111":0.0064,"114":0.02561,"122":0.0032,"127":0.0032,"128":0.0032,"129":0.0032,"130":0.0032,"131":0.0064,"132":0.01601,"133":0.0032,"134":0.0064,"135":0.0064,"136":0.10883,"137":0.81946,"138":0.11204,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 112 113 115 116 117 118 119 120 121 123 124 125 126"},E:{"4":0.0064,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 16.1 16.4 16.5 17.0 26.0","15.5":0.02561,"15.6":0.0128,"16.0":0.0032,"16.2":0.0064,"16.3":0.0032,"16.6":0.03201,"17.1":0.0064,"17.2":0.0032,"17.3":0.0032,"17.4":0.0064,"17.5":0.0096,"17.6":0.02881,"18.0":0.0064,"18.1":0.0032,"18.2":0.0032,"18.3":0.0096,"18.4":0.0096,"18.5":0.11524},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00042,"5.0-5.1":0,"6.0-6.1":0.00084,"7.0-7.1":0.00084,"8.1-8.4":0,"9.0-9.2":0.00042,"9.3":0.00251,"10.0-10.2":0.00021,"10.3":0.00419,"11.0-11.2":0.0268,"11.3-11.4":0.00147,"12.0-12.1":0.00042,"12.2-12.5":0.01403,"13.0-13.1":0.00021,"13.2":0.00063,"13.3":0.00042,"13.4-13.7":0.0023,"14.0-14.4":0.00544,"14.5-14.8":0.00544,"15.0-15.1":0.00377,"15.2-15.3":0.00377,"15.4":0.00461,"15.5":0.00503,"15.6-15.8":0.06492,"16.0":0.00859,"16.1":0.01759,"16.2":0.009,"16.3":0.01654,"16.4":0.00377,"16.5":0.0067,"16.6-16.7":0.08146,"17.0":0.0044,"17.1":0.00775,"17.2":0.00607,"17.3":0.00859,"17.4":0.01529,"17.5":0.03204,"17.6-17.7":0.08376,"18.0":0.02073,"18.1":0.0467,"18.2":0.02471,"18.3":0.10617,"18.4":0.11266,"18.5":1.32074,"26.0":0},P:{"4":0.09771,"22":0.01086,"23":0.01086,"24":0.01086,"25":0.01086,"26":0.03257,"27":0.03257,"28":0.40169,_:"20 21 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0 19.0","6.2-6.4":0.01086,"7.2-7.4":0.02171,"13.0":0.01086,"17.0":0.02171},I:{"0":0.09502,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":1.56136,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.12725,"9":0.02052,"10":0.03284,"11":0.1683,_:"6 7 5.5"},S:{"2.5":0.0068,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.88439},R:{_:"0"},M:{"0":0.11558},Q:{_:"14.9"},O:{"0":1.84253},H:{"0":0.05}}; +module.exports={C:{"40":0.00257,"43":0.00257,"44":0.00257,"47":0.00257,"49":0.00257,"51":0.00257,"52":0.01798,"56":0.00257,"65":0.00257,"72":0.00257,"75":0.00257,"86":0.00257,"88":0.02569,"99":0.00257,"102":0.00257,"103":0.00514,"105":0.00771,"106":0.00514,"107":0.00514,"108":0.01028,"109":0.00771,"110":0.00514,"111":0.00771,"112":0.00257,"113":0.00257,"115":0.55234,"116":0.00257,"117":0.00257,"118":0.00257,"119":0.00257,"120":0.00257,"121":0.00257,"122":0.00514,"123":0.00771,"124":0.02312,"125":1.00705,"126":0.81694,"127":0.03083,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 45 46 48 50 53 54 55 57 58 59 60 61 62 63 64 66 67 68 69 70 71 73 74 76 77 78 79 80 81 82 83 84 85 87 89 90 91 92 93 94 95 96 97 98 100 101 104 114 128 129 3.5 3.6"},D:{"11":0.00257,"38":0.00257,"41":0.00514,"43":0.00257,"47":0.00257,"48":0.00257,"49":0.00771,"56":0.01028,"65":0.00257,"66":0.00257,"68":0.00257,"69":0.00514,"70":0.00514,"71":0.00514,"72":0.00257,"73":0.01028,"74":0.00514,"75":0.02826,"76":0.00257,"77":0.00257,"78":0.00257,"79":0.01028,"80":0.00514,"81":0.01028,"83":0.00771,"84":0.00257,"85":0.01028,"86":0.01028,"87":0.01028,"88":0.00514,"89":0.00514,"90":0.00257,"91":0.00257,"92":0.00257,"93":0.00771,"94":0.01285,"95":0.00514,"96":0.00514,"97":0.00257,"98":0.00257,"99":0.00514,"100":0.00257,"101":0.00257,"102":0.01028,"103":0.02826,"104":0.01541,"105":0.01798,"106":0.05652,"107":0.05652,"108":0.07707,"109":1.33845,"110":0.04367,"111":0.04367,"112":0.0411,"113":0.00514,"114":0.01798,"115":0.00771,"116":0.02312,"117":0.01028,"118":0.00771,"119":0.0334,"120":0.07964,"121":0.04624,"122":0.10276,"123":0.23892,"124":10.34279,"125":4.17719,"126":0.03597,"127":0.01028,_:"4 5 6 7 8 9 10 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 39 40 42 44 45 46 50 51 52 53 54 55 57 58 59 60 61 62 63 64 67 128"},F:{"28":0.00257,"46":0.00257,"79":0.00257,"82":0.00257,"83":0.00257,"91":0.00257,"92":0.00257,"93":0.00257,"94":0.00514,"95":0.02826,"96":0.00257,"102":0.00257,"106":0.00257,"107":0.04367,"108":0.00514,"109":0.37507,"110":0.0334,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 87 88 89 90 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00771,"13":0.00257,"14":0.00257,"16":0.00514,"17":0.00257,"18":0.01541,"84":0.00257,"89":0.00257,"92":0.02826,"100":0.00257,"103":0.00257,"105":0.00257,"106":0.00257,"107":0.01028,"108":0.01285,"109":0.01798,"110":0.00771,"111":0.00514,"117":0.00257,"118":0.00514,"119":0.00257,"120":0.01028,"121":0.00771,"122":0.01028,"123":0.01798,"124":0.71161,"125":0.4059,_:"15 79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 104 112 113 114 115 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 17.6","13.1":0.00257,"14.1":0.00514,"15.4":0.00257,"15.5":0.00514,"15.6":0.03083,"16.0":0.01028,"16.1":0.00257,"16.2":0.00514,"16.3":0.00771,"16.4":0.00257,"16.5":0.00771,"16.6":0.02569,"17.0":0.00514,"17.1":0.00771,"17.2":0.01028,"17.3":0.00771,"17.4":0.13359,"17.5":0.02055},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0006,"5.0-5.1":0.0006,"6.0-6.1":0.00151,"7.0-7.1":0.00212,"8.1-8.4":0.0006,"9.0-9.2":0.00151,"9.3":0.00696,"10.0-10.2":0.00121,"10.3":0.01089,"11.0-11.2":0.01603,"11.3-11.4":0.00302,"12.0-12.1":0.00181,"12.2-12.5":0.04385,"13.0-13.1":0.00091,"13.2":0.00423,"13.3":0.00212,"13.4-13.7":0.00968,"14.0-14.4":0.01663,"14.5-14.8":0.0257,"15.0-15.1":0.0124,"15.2-15.3":0.01361,"15.4":0.01542,"15.5":0.01935,"15.6-15.8":0.17418,"16.0":0.03961,"16.1":0.08165,"16.2":0.03961,"16.3":0.06865,"16.4":0.01452,"16.5":0.02933,"16.6-16.7":0.23376,"17.0":0.0254,"17.1":0.04143,"17.2":0.04324,"17.3":0.07983,"17.4":1.81289,"17.5":0.12792,"17.6":0},P:{"4":0.16307,"20":0.01019,"21":0.03057,"22":0.04077,"23":0.06115,"24":0.11211,"25":0.4892,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0","6.2-6.4":0.02038,"7.2-7.4":0.10192,"11.1-11.2":0.01019,"13.0":0.01019,"16.0":0.02038,"17.0":0.05096,"18.0":0.01019,"19.0":0.02038},I:{"0":0.14062,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00031},K:{"0":3.19149,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01405,"9":0.00562,"10":0.00281,"11":0.06744,_:"6 7 5.5"},S:{"2.5":0.01486,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":67.77812},R:{_:"0"},M:{"0":0.08916},Q:{_:"14.9"},O:{"0":2.03582},H:{"0":0.1}}; diff --git a/node_modules/caniuse-lite/data/regions/BE.js b/node_modules/caniuse-lite/data/regions/BE.js index 7347fb5c4..48a14baf3 100644 --- a/node_modules/caniuse-lite/data/regions/BE.js +++ b/node_modules/caniuse-lite/data/regions/BE.js @@ -1 +1 @@ -module.exports={C:{"48":0.00501,"52":0.01504,"60":0.00501,"68":0.00501,"75":0.00501,"78":0.06017,"87":0.00501,"104":0.00501,"113":0.01003,"115":0.37104,"123":0.00501,"124":0.01003,"125":0.01003,"126":0.00501,"127":0.00501,"128":0.11532,"132":0.02507,"133":0.00501,"134":0.00501,"135":0.01504,"136":0.04011,"137":0.02006,"138":0.11031,"139":2.45185,"140":0.34095,"141":0.01003,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 129 130 131 142 143 3.5 3.6"},D:{"39":0.00501,"40":0.00501,"41":0.00501,"42":0.00501,"43":0.00501,"44":0.00501,"45":0.00501,"46":0.00501,"48":0.00501,"49":0.01504,"50":0.00501,"51":0.00501,"52":0.00501,"53":0.00501,"54":0.00501,"55":0.00501,"56":0.00501,"57":0.00501,"58":0.00501,"59":0.00501,"60":0.00501,"74":0.08022,"75":0.06518,"76":0.0702,"77":0.0702,"78":1.04793,"79":1.38888,"81":0.00501,"83":0.09527,"85":0.01003,"87":0.0351,"90":0.01504,"91":0.01003,"93":0.00501,"94":0.01003,"96":0.00501,"98":0.00501,"99":0.00501,"100":0.00501,"102":0.00501,"103":0.0702,"104":0.00501,"105":0.00501,"106":0.00501,"107":0.01003,"108":0.02006,"109":0.49639,"110":0.00501,"111":0.00501,"112":0.00501,"113":0.00501,"114":0.05515,"115":0.00501,"116":0.13538,"117":0.00501,"118":0.01003,"119":0.01504,"120":0.81728,"121":0.01504,"122":0.10529,"123":0.0351,"124":0.02006,"125":0.73706,"126":0.05014,"127":0.02006,"128":0.15042,"129":0.0351,"130":0.14541,"131":0.17549,"132":0.12034,"133":0.2858,"134":0.14541,"135":0.27577,"136":3.41955,"137":17.53396,"138":0.64681,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 47 61 62 63 64 65 66 67 68 69 70 71 72 73 80 84 86 88 89 92 95 97 101 139 140 141"},F:{"46":0.00501,"89":0.01504,"90":0.01003,"95":0.01003,"114":0.00501,"117":0.00501,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00501,"107":0.00501,"108":0.01504,"109":0.06518,"114":0.00501,"120":0.00501,"122":0.00501,"124":0.00501,"125":0.00501,"126":0.01003,"127":0.00501,"128":0.01504,"129":0.01504,"130":0.01504,"131":0.04011,"132":0.0351,"133":0.01003,"134":0.06518,"135":0.05515,"136":1.06798,"137":6.31263,"138":0.52647,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 113 115 116 117 118 119 121 123"},E:{"14":0.01504,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.00501,"12.1":0.01003,"13.1":0.06017,"14.1":0.05515,"15.1":0.00501,"15.2-15.3":0.00501,"15.4":0.01003,"15.5":0.02006,"15.6":0.33594,"16.0":0.05014,"16.1":0.0351,"16.2":0.02507,"16.3":0.06518,"16.4":0.03008,"16.5":0.04011,"16.6":0.37605,"17.0":0.02006,"17.1":0.28078,"17.2":0.06017,"17.3":0.05515,"17.4":0.08022,"17.5":0.16045,"17.6":0.47132,"18.0":0.05014,"18.1":0.10028,"18.2":0.05515,"18.3":0.23566,"18.4":0.26073,"18.5":2.83792,"26.0":0.00501},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00356,"5.0-5.1":0,"6.0-6.1":0.00712,"7.0-7.1":0.00712,"8.1-8.4":0,"9.0-9.2":0.00356,"9.3":0.02137,"10.0-10.2":0.00178,"10.3":0.03562,"11.0-11.2":0.22797,"11.3-11.4":0.01247,"12.0-12.1":0.00356,"12.2-12.5":0.11933,"13.0-13.1":0.00178,"13.2":0.00534,"13.3":0.00356,"13.4-13.7":0.01959,"14.0-14.4":0.04631,"14.5-14.8":0.04631,"15.0-15.1":0.03206,"15.2-15.3":0.03206,"15.4":0.03918,"15.5":0.04274,"15.6-15.8":0.55211,"16.0":0.07302,"16.1":0.1496,"16.2":0.07658,"16.3":0.1407,"16.4":0.03206,"16.5":0.05699,"16.6-16.7":0.69281,"17.0":0.0374,"17.1":0.0659,"17.2":0.05165,"17.3":0.07302,"17.4":0.13001,"17.5":0.27249,"17.6-17.7":0.7124,"18.0":0.17632,"18.1":0.39716,"18.2":0.21016,"18.3":0.90297,"18.4":0.95818,"18.5":11.23276,"26.0":0},P:{"4":0.01068,"21":0.01068,"22":0.01068,"23":0.01068,"24":0.02135,"25":0.03203,"26":0.06405,"27":0.10676,"28":3.27745,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","13.0":0.01068},I:{"0":0.0448,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.16454,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01504,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.43331},R:{_:"0"},M:{"0":0.33905},Q:{_:"14.9"},O:{"0":0.01994},H:{"0":0}}; +module.exports={C:{"48":0.00543,"52":0.01629,"55":0.00543,"68":0.00543,"78":0.04344,"83":0.01086,"87":0.00543,"88":0.00543,"91":0.00543,"102":0.00543,"103":0.00543,"106":0.00543,"107":0.00543,"108":0.00543,"113":0.00543,"115":0.3801,"118":0.03801,"119":0.00543,"120":0.04344,"121":0.01086,"122":0.01086,"123":0.02172,"124":0.06516,"125":1.86792,"126":1.65072,"127":0.01629,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 89 90 92 93 94 95 96 97 98 99 100 101 104 105 109 110 111 112 114 116 117 128 129 3.5 3.6"},D:{"38":0.00543,"49":0.02715,"65":0.00543,"66":0.01086,"74":0.14118,"75":0.13032,"76":0.13032,"77":0.13032,"78":2.08512,"79":2.75844,"80":0.01086,"81":0.00543,"83":0.10317,"84":0.00543,"85":0.01086,"86":0.00543,"87":0.03801,"88":0.02172,"89":0.02715,"90":0.02172,"91":0.01086,"92":0.01086,"93":0.00543,"94":0.01086,"96":0.00543,"99":0.01086,"100":0.00543,"101":0.00543,"102":0.01086,"103":0.07602,"104":0.02172,"105":0.01629,"106":0.01086,"107":0.01086,"108":0.01086,"109":0.88509,"110":0.00543,"111":0.01086,"112":0.01086,"113":0.08688,"114":0.11946,"115":0.53214,"116":0.18462,"117":0.01629,"118":0.02715,"119":0.03801,"120":0.39639,"121":0.21177,"122":0.35838,"123":1.22175,"124":16.58865,"125":6.56487,"126":0.01086,"127":0.00543,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 67 68 69 70 71 72 73 95 97 98 128"},F:{"46":0.00543,"89":0.00543,"95":0.01629,"102":0.00543,"107":0.27693,"108":0.02172,"109":1.01541,"110":0.04344,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00543,"102":0.00543,"104":0.00543,"107":0.00543,"108":0.00543,"109":0.07602,"112":0.00543,"113":0.00543,"114":0.01086,"115":0.00543,"116":0.00543,"117":0.01086,"118":0.00543,"119":0.01086,"120":0.07602,"121":0.03258,"122":0.08145,"123":0.18462,"124":5.21823,"125":3.04623,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 105 106 110 111"},E:{"9":0.00543,"14":0.03801,"15":0.00543,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.02172,"13.1":0.14118,"14.1":0.13575,"15.1":0.01629,"15.2-15.3":0.02172,"15.4":0.04344,"15.5":0.05973,"15.6":0.67875,"16.0":0.04887,"16.1":0.08145,"16.2":0.07059,"16.3":0.15204,"16.4":0.06516,"16.5":0.10317,"16.6":0.62988,"17.0":0.0543,"17.1":0.13032,"17.2":0.15747,"17.3":0.15204,"17.4":2.7693,"17.5":0.35838},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0039,"5.0-5.1":0.0039,"6.0-6.1":0.00975,"7.0-7.1":0.01365,"8.1-8.4":0.0039,"9.0-9.2":0.00975,"9.3":0.04486,"10.0-10.2":0.0078,"10.3":0.07022,"11.0-11.2":0.10338,"11.3-11.4":0.0195,"12.0-12.1":0.0117,"12.2-12.5":0.28282,"13.0-13.1":0.00585,"13.2":0.02731,"13.3":0.01365,"13.4-13.7":0.06242,"14.0-14.4":0.10728,"14.5-14.8":0.16579,"15.0-15.1":0.07997,"15.2-15.3":0.08777,"15.4":0.09947,"15.5":0.12483,"15.6-15.8":1.12347,"16.0":0.25551,"16.1":0.52663,"16.2":0.25551,"16.3":0.44276,"16.4":0.09362,"16.5":0.1892,"16.6-16.7":1.50772,"17.0":0.16384,"17.1":0.26722,"17.2":0.27892,"17.3":0.51493,"17.4":11.6931,"17.5":0.82505,"17.6":0},P:{"4":0.05299,"20":0.0106,"21":0.04239,"22":0.03179,"23":0.06359,"24":0.20136,"25":2.98861,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0","6.2-6.4":0.0106,"13.0":0.0106,"16.0":0.0106,"17.0":0.0106,"18.0":0.0106,"19.0":0.0106},I:{"0":0.07283,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.1828,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00543,"10":0.00543,"11":0.04344,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.88679},R:{_:"0"},M:{"0":0.31076},Q:{_:"14.9"},O:{"0":0.02285},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BF.js b/node_modules/caniuse-lite/data/regions/BF.js index 08eb2d8f7..6e1eacba7 100644 --- a/node_modules/caniuse-lite/data/regions/BF.js +++ b/node_modules/caniuse-lite/data/regions/BF.js @@ -1 +1 @@ -module.exports={C:{"41":0.00215,"43":0.00215,"47":0.0043,"54":0.00215,"60":0.00215,"64":0.00215,"72":0.00215,"88":0.00215,"90":0.00215,"92":0.00215,"95":0.00215,"100":0.00215,"106":0.00215,"108":0.00215,"111":0.00215,"113":0.00215,"115":0.10745,"127":0.02794,"128":0.04083,"129":0.00215,"132":0.0043,"133":0.0043,"134":0.0086,"135":0.00645,"136":0.00645,"137":0.01504,"138":0.07951,"139":1.30229,"140":0.18911,"141":0.0086,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 50 51 52 53 55 56 57 58 59 61 62 63 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 91 93 94 96 97 98 99 101 102 103 104 105 107 109 110 112 114 116 117 118 119 120 121 122 123 124 125 126 130 131 142 143 3.5 3.6"},D:{"11":0.00215,"31":0.00215,"32":0.01289,"38":0.00215,"39":0.01934,"40":0.01289,"41":0.01075,"42":0.01075,"43":0.01289,"44":0.0086,"45":0.01075,"46":0.01075,"47":0.01289,"48":0.01075,"49":0.01504,"50":0.01719,"51":0.01504,"52":0.01075,"53":0.01075,"54":0.101,"55":0.01075,"56":0.01075,"57":0.01075,"58":0.01934,"59":0.0086,"60":0.01075,"64":0.0043,"65":0.0043,"66":0.0043,"68":0.0043,"69":0.0086,"70":0.0043,"71":0.00215,"72":0.00215,"73":0.01075,"74":0.00215,"75":0.0086,"77":0.00215,"79":0.02579,"81":0.0043,"83":0.01504,"84":0.00215,"86":0.0043,"87":0.03868,"88":0.00215,"89":0.0086,"90":0.00645,"91":0.00215,"93":0.0043,"94":0.02149,"95":0.01289,"97":0.0043,"98":0.01075,"99":0.00215,"100":0.00645,"101":0.00645,"102":0.00215,"103":0.01934,"104":0.0043,"105":0.00215,"106":0.00215,"108":0.0043,"109":0.4212,"110":0.0043,"112":0.00215,"113":0.0043,"114":0.01289,"115":0.0043,"116":0.0086,"118":0.00645,"119":0.05158,"120":0.0086,"121":0.00215,"122":0.03009,"123":0.00215,"124":0.00645,"125":1.81161,"126":0.01075,"127":0.0086,"128":0.01289,"129":0.00215,"130":0.0086,"131":0.03868,"132":0.03438,"133":0.07307,"134":0.03438,"135":0.12034,"136":0.73926,"137":4.96419,"138":0.19556,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 61 62 63 67 76 78 80 85 92 96 107 111 117 139 140 141"},F:{"36":0.00215,"51":0.00215,"58":0.00215,"63":0.00215,"79":0.0086,"83":0.0043,"86":0.00215,"89":0.01075,"90":0.01289,"95":0.02149,"102":0.00215,"113":0.00215,"116":0.00215,"117":0.00645,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 85 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00215,"13":0.00215,"14":0.00215,"16":0.0043,"17":0.00215,"18":0.01719,"84":0.00215,"89":0.01504,"90":0.0043,"92":0.04513,"100":0.0043,"109":0.01289,"120":0.00215,"122":0.01075,"124":0.0043,"125":0.00215,"126":0.00215,"127":0.00215,"128":0.00215,"130":0.0043,"131":0.0043,"132":0.0086,"133":0.01289,"134":0.01934,"135":0.02579,"136":0.38682,"137":2.16189,"138":0.15688,_:"15 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 123 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.5 17.1 17.2 17.4","5.1":0.01504,"13.1":0.0043,"14.1":0.01504,"15.6":0.02149,"16.3":0.00215,"16.4":0.0043,"16.6":0.04728,"17.0":0.0043,"17.3":0.00215,"17.5":0.00645,"17.6":0.14398,"18.0":0.0043,"18.1":0.00215,"18.2":0.0043,"18.3":0.00645,"18.4":0.01719,"18.5":0.24069,"26.0":0.00215},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00094,"5.0-5.1":0,"6.0-6.1":0.00189,"7.0-7.1":0.00189,"8.1-8.4":0,"9.0-9.2":0.00094,"9.3":0.00566,"10.0-10.2":0.00047,"10.3":0.00944,"11.0-11.2":0.0604,"11.3-11.4":0.0033,"12.0-12.1":0.00094,"12.2-12.5":0.03161,"13.0-13.1":0.00047,"13.2":0.00142,"13.3":0.00094,"13.4-13.7":0.00519,"14.0-14.4":0.01227,"14.5-14.8":0.01227,"15.0-15.1":0.00849,"15.2-15.3":0.00849,"15.4":0.01038,"15.5":0.01132,"15.6-15.8":0.14627,"16.0":0.01935,"16.1":0.03963,"16.2":0.02029,"16.3":0.03728,"16.4":0.00849,"16.5":0.0151,"16.6-16.7":0.18355,"17.0":0.00991,"17.1":0.01746,"17.2":0.01368,"17.3":0.01935,"17.4":0.03444,"17.5":0.07219,"17.6-17.7":0.18874,"18.0":0.04671,"18.1":0.10522,"18.2":0.05568,"18.3":0.23923,"18.4":0.25385,"18.5":2.97593,"26.0":0},P:{"4":0.02147,"22":0.03221,"23":0.01074,"24":0.02147,"25":0.02147,"26":0.02147,"27":0.04295,"28":0.54761,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01074},I:{"0":0.22729,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":1.39218,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0043,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":75.65024},R:{_:"0"},M:{"0":0.09421},Q:{"14.9":0.0157},O:{"0":0.16487},H:{"0":0.39}}; +module.exports={C:{"43":0.00226,"45":0.00226,"47":0.00451,"54":0.00226,"56":0.00226,"60":0.00226,"65":0.00451,"72":0.0158,"76":0.00226,"78":0.00677,"79":0.00451,"85":0.06094,"92":0.00226,"106":0.00226,"111":0.00226,"113":0.00226,"114":0.03611,"115":0.50105,"116":0.00677,"119":0.00226,"120":0.0158,"121":0.04063,"122":0.00677,"123":0.00903,"124":0.04063,"125":1.43545,"126":0.84412,"127":0.00226,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 48 49 50 51 52 53 55 57 58 59 61 62 63 64 66 67 68 69 70 71 73 74 75 77 80 81 82 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 112 117 118 128 129 3.5 3.6"},D:{"28":0.00226,"29":0.00226,"33":0.00226,"39":0.01129,"46":0.00226,"49":0.00226,"58":0.00226,"65":0.00226,"68":0.01354,"69":0.00677,"70":0.00677,"71":0.00226,"73":0.00451,"75":0.00903,"76":0.00451,"79":0.00903,"80":0.00226,"81":0.00226,"83":0.00903,"86":0.00226,"87":0.02257,"88":0.00226,"91":0.0158,"92":0.00226,"93":0.03837,"94":0.00677,"95":0.00451,"97":0.00226,"98":0.00451,"99":0.09931,"100":0.01354,"102":0.01129,"103":0.03611,"104":0.00226,"105":0.0316,"106":0.00226,"107":0.00677,"108":0.00226,"109":1.26618,"110":0.00451,"111":0.00226,"112":0.00226,"113":0.00226,"114":0.00226,"115":0.00903,"116":0.0158,"117":0.01129,"118":0.00226,"119":0.02708,"120":0.04288,"121":0.01129,"122":0.0316,"123":0.21442,"124":4.5456,"125":2.0787,"127":0.00677,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 30 31 32 34 35 36 37 38 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 59 60 61 62 63 64 66 67 72 74 77 78 84 85 89 90 96 101 126 128"},F:{"53":0.00226,"62":0.00226,"79":0.02031,"85":0.00226,"95":0.03837,"107":0.01129,"108":0.02708,"109":1.02694,"110":0.07674,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00226,"14":0.00226,"17":0.00451,"18":0.1941,"84":0.00226,"89":0.00226,"90":0.00677,"92":0.02031,"98":0.00451,"100":0.00451,"104":0.00226,"109":0.03611,"110":0.00226,"114":0.01806,"115":0.00226,"117":0.00226,"118":0.01129,"119":0.01129,"120":0.01354,"121":0.01129,"122":0.03611,"123":0.12188,"124":3.11015,"125":1.11722,_:"12 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 99 101 102 103 105 106 107 108 111 112 113 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 17.0 17.2 17.6","11.1":0.00226,"12.1":0.00226,"13.1":0.04063,"14.1":0.00677,"15.1":0.00226,"15.6":0.00903,"16.3":0.03837,"16.4":0.00226,"16.5":0.01354,"16.6":0.00677,"17.1":0.00451,"17.3":0.00451,"17.4":0.06997,"17.5":0.00903},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0.00076,"6.0-6.1":0.00189,"7.0-7.1":0.00265,"8.1-8.4":0.00076,"9.0-9.2":0.00189,"9.3":0.00869,"10.0-10.2":0.00151,"10.3":0.0136,"11.0-11.2":0.02003,"11.3-11.4":0.00378,"12.0-12.1":0.00227,"12.2-12.5":0.05479,"13.0-13.1":0.00113,"13.2":0.00529,"13.3":0.00265,"13.4-13.7":0.01209,"14.0-14.4":0.02078,"14.5-14.8":0.03212,"15.0-15.1":0.01549,"15.2-15.3":0.017,"15.4":0.01927,"15.5":0.02418,"15.6-15.8":0.21765,"16.0":0.0495,"16.1":0.10202,"16.2":0.0495,"16.3":0.08577,"16.4":0.01814,"16.5":0.03665,"16.6-16.7":0.29208,"17.0":0.03174,"17.1":0.05177,"17.2":0.05403,"17.3":0.09975,"17.4":2.26526,"17.5":0.15983,"17.6":0},P:{"4":0.02137,"20":0.01068,"21":0.02137,"22":0.02137,"23":0.11752,"24":0.08547,"25":0.4487,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.02137,"16.0":0.01068,"19.0":0.08547},I:{"0":0.03856,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":1.95181,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01129,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":72.71528},R:{_:"0"},M:{"0":0.24003},Q:{"14.9":0.08517},O:{"0":0.17035},H:{"0":1.85}}; diff --git a/node_modules/caniuse-lite/data/regions/BG.js b/node_modules/caniuse-lite/data/regions/BG.js index 684984aec..6218b4e1f 100644 --- a/node_modules/caniuse-lite/data/regions/BG.js +++ b/node_modules/caniuse-lite/data/regions/BG.js @@ -1 +1 @@ -module.exports={C:{"52":0.04486,"65":0.0069,"68":0.00345,"78":0.01726,"80":0.00345,"81":0.00345,"84":0.04831,"88":0.0069,"89":0.00345,"99":0.00345,"100":0.00345,"104":0.00345,"107":0.00345,"113":0.0069,"115":0.53836,"125":0.02071,"126":0.00345,"127":0.0138,"128":0.13804,"130":0.00345,"131":0.00345,"132":0.01035,"133":0.00345,"134":0.02071,"135":0.0138,"136":0.04141,"137":0.02761,"138":0.12424,"139":2.24315,"140":0.27953,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 72 73 74 75 76 77 79 82 83 85 86 87 90 91 92 93 94 95 96 97 98 101 102 103 105 106 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 129 141 142 143 3.5 3.6"},D:{"38":0.01035,"39":0.00345,"40":0.00345,"41":0.0069,"42":0.00345,"43":0.00345,"44":0.00345,"45":0.00345,"46":0.00345,"47":0.00345,"48":0.00345,"49":0.02416,"50":0.00345,"51":0.00345,"52":0.00345,"53":0.00345,"54":0.00345,"55":0.00345,"56":0.00345,"57":0.00345,"58":0.0069,"59":0.00345,"60":0.00345,"71":0.00345,"73":0.00345,"74":0.00345,"79":0.09663,"80":0.0069,"81":0.00345,"83":0.0069,"85":0.0069,"86":0.00345,"87":0.07247,"88":0.00345,"89":0.01035,"91":0.0138,"92":0.0138,"94":0.00345,"95":0.00345,"97":0.0069,"98":1.68064,"99":0.00345,"100":0.01035,"101":0.00345,"102":0.00345,"103":0.0138,"104":0.04831,"106":0.00345,"107":0.00345,"108":0.06557,"109":1.82903,"110":0.0069,"111":0.01726,"112":0.0069,"113":0.00345,"114":0.0138,"115":0.01035,"116":0.01726,"117":0.00345,"118":0.0138,"119":0.02416,"120":0.02071,"121":0.02761,"122":0.04831,"123":0.0138,"124":0.05177,"125":0.11043,"126":0.02416,"127":0.0138,"128":0.02761,"129":0.01035,"130":0.01726,"131":0.07247,"132":0.06902,"133":0.03451,"134":0.05522,"135":0.16565,"136":2.24315,"137":15.22236,"138":0.46934,"139":0.00345,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 72 75 76 77 78 84 90 93 96 105 140 141"},F:{"28":0.00345,"36":0.00345,"46":0.03106,"76":0.00345,"83":0.00345,"85":0.00345,"86":0.00345,"89":0.03106,"90":0.01035,"94":0.0069,"95":0.05177,"112":0.00345,"117":0.00345,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 82 84 87 88 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.00345,"92":0.00345,"109":0.05177,"118":0.00345,"119":0.00345,"120":0.00345,"122":0.00345,"123":0.00345,"124":0.00345,"126":0.00345,"127":0.00345,"128":0.0069,"129":0.00345,"130":0.00345,"131":0.01035,"132":0.01035,"133":0.00345,"134":0.01726,"135":0.03796,"136":0.42792,"137":2.37774,"138":0.15875,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 121 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 26.0","13.1":0.00345,"14.1":0.01035,"15.2-15.3":0.00345,"15.6":0.04486,"16.0":0.0069,"16.1":0.00345,"16.2":0.00345,"16.3":0.00345,"16.4":0.00345,"16.5":0.00345,"16.6":0.03796,"17.0":0.00345,"17.1":0.03106,"17.2":0.00345,"17.3":0.00345,"17.4":0.0069,"17.5":0.0138,"17.6":0.04831,"18.0":0.01035,"18.1":0.01035,"18.2":0.0069,"18.3":0.03451,"18.4":0.02761,"18.5":0.3451},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00205,"5.0-5.1":0,"6.0-6.1":0.00411,"7.0-7.1":0.00411,"8.1-8.4":0,"9.0-9.2":0.00205,"9.3":0.01232,"10.0-10.2":0.00103,"10.3":0.02053,"11.0-11.2":0.13138,"11.3-11.4":0.00718,"12.0-12.1":0.00205,"12.2-12.5":0.06877,"13.0-13.1":0.00103,"13.2":0.00308,"13.3":0.00205,"13.4-13.7":0.01129,"14.0-14.4":0.02669,"14.5-14.8":0.02669,"15.0-15.1":0.01847,"15.2-15.3":0.01847,"15.4":0.02258,"15.5":0.02463,"15.6-15.8":0.31818,"16.0":0.04208,"16.1":0.08622,"16.2":0.04413,"16.3":0.08108,"16.4":0.01847,"16.5":0.03284,"16.6-16.7":0.39926,"17.0":0.02155,"17.1":0.03798,"17.2":0.02977,"17.3":0.04208,"17.4":0.07493,"17.5":0.15704,"17.6-17.7":0.41055,"18.0":0.10161,"18.1":0.22888,"18.2":0.12111,"18.3":0.52038,"18.4":0.5522,"18.5":6.47341,"26.0":0},P:{"4":0.11169,"20":0.01015,"21":0.02031,"22":0.04061,"23":0.05077,"24":0.05077,"25":0.06092,"26":0.07107,"27":0.26399,"28":2.73127,"5.0-5.4":0.02031,"6.2-6.4":0.01015,"7.2-7.4":0.05077,_:"8.2 9.2 10.1 12.0 14.0 15.0 17.0","11.1-11.2":0.01015,"13.0":0.01015,"16.0":0.01015,"18.0":0.01015,"19.0":0.01015},I:{"0":0.07847,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.3175,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01656,"9":0.00414,"10":0.00414,"11":0.03727,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.9693},R:{_:"0"},M:{"0":0.262},Q:{_:"14.9"},O:{"0":0.0786},H:{"0":0.01}}; +module.exports={C:{"45":0.96439,"48":0.00674,"52":0.07081,"60":0.00337,"65":0.00337,"66":0.00337,"68":0.00337,"72":0.00674,"75":0.00337,"78":0.03035,"80":0.00337,"83":0.00674,"84":0.03709,"85":0.00337,"86":0.00337,"88":0.01349,"90":0.00337,"91":0.00337,"94":0.00337,"95":0.00337,"96":0.01349,"97":0.01349,"98":0.00337,"99":0.00674,"100":0.00674,"102":0.00674,"103":0.01686,"104":0.00674,"105":0.00337,"107":0.00337,"108":0.00337,"109":0.00337,"110":0.00337,"112":0.00674,"113":0.01349,"114":0.00337,"115":1.00148,"116":0.00337,"117":0.00674,"118":0.00337,"119":0.00337,"120":0.01349,"121":0.03372,"122":0.01012,"123":0.07756,"124":0.06744,"125":1.51066,"126":1.44996,"127":0.00674,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 67 69 70 71 73 74 76 77 79 81 82 87 89 92 93 101 106 111 128 129 3.5 3.6"},D:{"26":0.00337,"38":0.00337,"41":0.00337,"49":0.04721,"57":0.00337,"63":0.00337,"65":0.00337,"70":0.00337,"71":0.00337,"73":0.00337,"74":0.00337,"75":0.00337,"76":0.00337,"78":0.00337,"79":0.04046,"80":0.00337,"81":0.00674,"83":0.00674,"85":0.00674,"86":0.00337,"87":0.02698,"88":0.00674,"89":0.00337,"90":0.00337,"91":0.03372,"92":0.00337,"93":0.02698,"94":0.00337,"95":0.00674,"96":0.00337,"97":0.00674,"98":0.00337,"99":0.02023,"100":0.01012,"102":0.0236,"103":0.03035,"104":0.03709,"105":0.00674,"106":0.01012,"107":0.01012,"108":0.02698,"109":2.98085,"110":0.01012,"111":0.02023,"112":0.01349,"113":0.06407,"114":0.07081,"115":0.10116,"116":0.03372,"117":0.01686,"118":0.01686,"119":0.04046,"120":0.05732,"121":0.07418,"122":0.14837,"123":0.54289,"124":12.26396,"125":4.96358,"126":0.00674,"127":0.00337,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 64 66 67 68 69 72 77 84 101 128"},F:{"28":0.00674,"36":0.00674,"46":0.01012,"79":0.00337,"83":0.00337,"85":0.00674,"86":0.00337,"87":0.00337,"89":0.00337,"94":0.00337,"95":0.1079,"99":0.00337,"107":0.13825,"108":0.01686,"109":0.86998,"110":0.0607,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 88 90 91 92 93 96 97 98 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00674,"16":0.00337,"92":0.00337,"100":0.00337,"107":0.00337,"109":0.08093,"110":0.00337,"113":0.00337,"114":0.00337,"115":0.00674,"116":0.00337,"117":0.00674,"118":0.00337,"119":0.00674,"120":0.01012,"121":0.01012,"122":0.01349,"123":0.05732,"124":1.84111,"125":1.12288,_:"12 13 14 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 112"},E:{"9":0.00337,"14":0.00674,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00337,"12.1":0.00337,"13.1":0.01012,"14.1":0.03709,"15.1":0.00337,"15.2-15.3":0.00337,"15.4":0.00337,"15.5":0.00337,"15.6":0.0607,"16.0":0.00674,"16.1":0.01012,"16.2":0.01012,"16.3":0.01686,"16.4":0.00674,"16.5":0.01012,"16.6":0.0607,"17.0":0.01012,"17.1":0.02023,"17.2":0.02698,"17.3":0.02023,"17.4":0.28662,"17.5":0.0607},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00192,"5.0-5.1":0.00192,"6.0-6.1":0.00481,"7.0-7.1":0.00673,"8.1-8.4":0.00192,"9.0-9.2":0.00481,"9.3":0.02212,"10.0-10.2":0.00385,"10.3":0.03463,"11.0-11.2":0.05098,"11.3-11.4":0.00962,"12.0-12.1":0.00577,"12.2-12.5":0.13947,"13.0-13.1":0.00289,"13.2":0.01347,"13.3":0.00673,"13.4-13.7":0.03078,"14.0-14.4":0.0529,"14.5-14.8":0.08176,"15.0-15.1":0.03944,"15.2-15.3":0.04328,"15.4":0.04906,"15.5":0.06156,"15.6-15.8":0.55404,"16.0":0.126,"16.1":0.2597,"16.2":0.126,"16.3":0.21834,"16.4":0.04617,"16.5":0.0933,"16.6-16.7":0.74352,"17.0":0.0808,"17.1":0.13178,"17.2":0.13755,"17.3":0.25393,"17.4":5.7664,"17.5":0.40687,"17.6":0},P:{"4":0.05138,"20":0.02055,"21":0.04111,"22":0.06166,"23":0.17471,"24":0.27748,"25":2.70283,"5.0-5.4":0.01028,"6.2-6.4":0.03083,"7.2-7.4":0.02055,_:"8.2 9.2 10.1 12.0 14.0 15.0","11.1-11.2":0.01028,"13.0":0.01028,"16.0":0.01028,"17.0":0.02055,"18.0":0.01028,"19.0":0.02055},I:{"0":0.22451,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00005,"4.2-4.3":0.00014,"4.4":0,"4.4.3-4.4.4":0.0005},K:{"0":0.29831,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00674,"11":0.05058,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.72305},R:{_:"0"},M:{"0":0.21876},Q:{_:"14.9"},O:{"0":0.02652},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BH.js b/node_modules/caniuse-lite/data/regions/BH.js index 8c6a1f859..491ebe1ab 100644 --- a/node_modules/caniuse-lite/data/regions/BH.js +++ b/node_modules/caniuse-lite/data/regions/BH.js @@ -1 +1 @@ -module.exports={C:{"100":0.00235,"115":0.01409,"132":0.00235,"136":0.0047,"137":0.00235,"138":0.01409,"139":0.3453,"140":0.06107,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 133 134 135 141 142 143 3.5 3.6"},D:{"11":0.0047,"38":0.00705,"39":0.00705,"40":0.00705,"41":0.0047,"42":0.00705,"43":0.00705,"44":0.0047,"45":0.00705,"46":0.00705,"47":0.00705,"48":0.00705,"49":0.00705,"50":0.00705,"51":0.00705,"52":0.00705,"53":0.0047,"54":0.0047,"55":0.00705,"56":0.00705,"57":0.00705,"58":0.03524,"59":0.00705,"60":0.00705,"64":0.00705,"65":0.03524,"66":0.00235,"68":0.01175,"69":0.00235,"70":0.00235,"71":0.00235,"75":0.0094,"78":0.0047,"79":0.08691,"80":0.00235,"81":0.00705,"83":0.01409,"84":0.00235,"86":0.01879,"87":0.03289,"88":0.01175,"89":0.0047,"90":0.00235,"91":0.01175,"92":0.00235,"93":0.00705,"94":0.01175,"95":0.07047,"98":0.00705,"101":0.00705,"103":0.07047,"106":0.0047,"107":0.00235,"108":0.05403,"109":0.41108,"110":0.0047,"111":0.02349,"112":0.00235,"113":0.00235,"114":0.02819,"116":0.02819,"118":0.0047,"119":0.02349,"120":0.01644,"121":0.02349,"122":0.03758,"123":0.01175,"124":0.0047,"125":1.20974,"126":0.11275,"127":0.00705,"128":0.03289,"129":0.0094,"130":0.01175,"131":0.07282,"132":0.03758,"133":0.02349,"134":0.04698,"135":0.08926,"136":1.82048,"137":8.93795,"138":0.33121,"139":0.00235,_:"4 5 6 7 8 9 10 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 61 62 63 67 72 73 74 76 77 85 96 97 99 100 102 104 105 115 117 140 141"},F:{"36":0.01644,"46":0.02114,"82":0.0047,"86":0.0047,"89":0.04698,"90":0.01644,"95":0.00235,"109":0.00235,"113":0.00235,"114":0.00235,"115":0.00235,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0047,"92":0.0047,"108":0.00235,"109":0.00235,"114":0.0047,"119":0.00235,"120":0.00235,"122":0.00235,"124":0.00235,"126":0.00235,"127":0.00235,"129":0.0047,"130":0.0047,"131":0.0047,"132":0.00235,"133":0.02819,"134":0.01879,"135":0.01879,"136":0.34295,"137":1.80638,"138":0.17618,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 121 123 125 128"},E:{"14":0.00235,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1","5.1":0.00235,"9.1":0.00235,"13.1":0.00705,"14.1":0.06577,"15.1":0.00705,"15.2-15.3":0.00235,"15.4":0.00235,"15.5":0.01175,"15.6":0.01879,"16.0":0.0094,"16.1":0.0094,"16.2":0.0047,"16.3":0.01409,"16.4":0.01175,"16.5":0.01175,"16.6":0.05403,"17.0":0.00235,"17.1":0.03524,"17.2":0.00235,"17.3":0.0047,"17.4":0.0047,"17.5":0.02819,"17.6":0.09866,"18.0":0.0094,"18.1":0.03524,"18.2":0.01409,"18.3":0.07282,"18.4":0.09396,"18.5":0.85269,"26.0":0.00235},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00524,"5.0-5.1":0,"6.0-6.1":0.01048,"7.0-7.1":0.01048,"8.1-8.4":0,"9.0-9.2":0.00524,"9.3":0.03144,"10.0-10.2":0.00262,"10.3":0.0524,"11.0-11.2":0.33537,"11.3-11.4":0.01834,"12.0-12.1":0.00524,"12.2-12.5":0.17554,"13.0-13.1":0.00262,"13.2":0.00786,"13.3":0.00524,"13.4-13.7":0.02882,"14.0-14.4":0.06812,"14.5-14.8":0.06812,"15.0-15.1":0.04716,"15.2-15.3":0.04716,"15.4":0.05764,"15.5":0.06288,"15.6-15.8":0.81221,"16.0":0.10742,"16.1":0.22008,"16.2":0.11266,"16.3":0.20698,"16.4":0.04716,"16.5":0.08384,"16.6-16.7":1.0192,"17.0":0.05502,"17.1":0.09694,"17.2":0.07598,"17.3":0.10742,"17.4":0.19126,"17.5":0.40087,"17.6-17.7":1.04802,"18.0":0.25938,"18.1":0.58427,"18.2":0.30917,"18.3":1.32836,"18.4":1.40958,"18.5":16.52462,"26.0":0},P:{"4":0.02036,"20":0.01018,"21":0.02036,"22":0.03054,"23":0.06109,"24":0.14253,"25":0.07127,"26":0.15272,"27":0.26471,"28":2.70816,"5.0-5.4":0.01018,_:"6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 16.0 18.0 19.0","7.2-7.4":0.07127,"11.1-11.2":0.01018,"15.0":0.02036,"17.0":0.01018},I:{"0":0.03819,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.67338,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00235,"11":0.01175,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.0789},R:{_:"0"},M:{"0":0.70398},Q:{_:"14.9"},O:{"0":1.84413},H:{"0":0}}; +module.exports={C:{"34":0.02579,"47":0.00287,"52":0.00287,"68":0.00287,"88":0.00287,"107":0.00287,"108":0.00287,"109":0.00287,"111":0.00287,"115":0.07449,"118":0.00287,"123":0.02006,"124":0.00287,"125":0.27218,"126":0.30942,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 112 113 114 116 117 119 120 121 122 127 128 129 3.5 3.6"},D:{"11":0.00287,"38":0.00573,"47":0.0086,"49":0.00287,"50":0.00287,"55":0.00287,"56":0.02006,"58":0.02006,"63":0.00573,"65":0.0086,"66":0.00573,"68":0.00573,"70":0.00287,"72":0.01146,"73":0.01719,"75":0.0086,"76":0.01433,"77":0.00287,"78":0.06303,"79":0.12893,"80":0.00287,"83":0.00287,"86":0.00287,"87":0.04584,"88":0.00287,"89":0.00287,"91":0.00287,"93":0.01719,"94":0.00573,"95":0.01146,"97":0.00287,"98":0.00573,"99":0.01433,"102":0.01719,"103":0.06876,"104":0.00287,"105":0.00573,"106":0.02006,"107":0.02579,"108":0.02579,"109":0.64176,"110":0.01433,"111":0.02006,"112":0.08595,"113":0.14039,"114":0.1719,"115":0.00573,"116":0.08309,"117":0.01433,"118":0.01433,"119":0.11747,"120":0.07449,"121":0.05444,"122":0.28077,"123":0.5157,"124":13.04148,"125":4.14852,"126":0.00287,_:"4 5 6 7 8 9 10 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 39 40 41 42 43 44 45 46 48 51 52 53 54 57 59 60 61 62 64 67 69 71 74 81 84 85 90 92 96 100 101 127 128"},F:{"28":0.02006,"36":0.00573,"46":0.02006,"82":0.00287,"83":0.00287,"90":0.00287,"95":0.00287,"102":0.00287,"103":0.00287,"105":0.00573,"106":0.00573,"107":0.15185,"108":0.0659,"109":0.3438,"110":0.00573,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 91 92 93 94 96 97 98 99 100 101 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00287,"16":0.00287,"17":0.00287,"18":0.00287,"89":0.00287,"92":0.02292,"100":0.00287,"105":0.0086,"109":0.02292,"110":0.00287,"111":0.00287,"113":0.02006,"114":0.0086,"115":0.00287,"116":0.00287,"118":0.04584,"119":0.0086,"120":0.02865,"121":0.04298,"122":0.04011,"123":0.13752,"124":2.11151,"125":1.11735,_:"12 13 14 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 106 107 108 112 117"},E:{"5":0.00287,"13":0.00287,"14":0.01146,"15":0.00287,_:"0 4 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00287,"13.1":0.03725,"14.1":0.11747,"15.1":0.01146,"15.2-15.3":0.0086,"15.4":0.0086,"15.5":0.02292,"15.6":0.14898,"16.0":0.00573,"16.1":0.03725,"16.2":0.02865,"16.3":0.1146,"16.4":0.01433,"16.5":0.04584,"16.6":0.32661,"17.0":0.01719,"17.1":0.05444,"17.2":0.05444,"17.3":0.05444,"17.4":1.02854,"17.5":0.09741},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00447,"5.0-5.1":0.00447,"6.0-6.1":0.01118,"7.0-7.1":0.01565,"8.1-8.4":0.00447,"9.0-9.2":0.01118,"9.3":0.05141,"10.0-10.2":0.00894,"10.3":0.08047,"11.0-11.2":0.11848,"11.3-11.4":0.02235,"12.0-12.1":0.01341,"12.2-12.5":0.32413,"13.0-13.1":0.00671,"13.2":0.0313,"13.3":0.01565,"13.4-13.7":0.07153,"14.0-14.4":0.12295,"14.5-14.8":0.19001,"15.0-15.1":0.09165,"15.2-15.3":0.10059,"15.4":0.11401,"15.5":0.14307,"15.6-15.8":1.28759,"16.0":0.29284,"16.1":0.60356,"16.2":0.29284,"16.3":0.50743,"16.4":0.1073,"16.5":0.21683,"16.6-16.7":1.72796,"17.0":0.18777,"17.1":0.30625,"17.2":0.31966,"17.3":0.59014,"17.4":13.4012,"17.5":0.94557,"17.6":0},P:{"4":0.07276,"20":0.01039,"21":0.04158,"22":0.07276,"23":0.14553,"24":0.4054,"25":2.27645,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0","6.2-6.4":0.02079,"7.2-7.4":0.02079,"11.1-11.2":0.04158,"14.0":0.01039,"15.0":0.02079,"16.0":0.05197,"17.0":0.03118,"18.0":0.01039,"19.0":0.02079},I:{"0":0.04264,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":1.01744,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00961,"9":0.0032,"11":0.04163,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.25352},R:{_:"0"},M:{"0":0.6921},Q:{_:"14.9"},O:{"0":1.66959},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/BI.js b/node_modules/caniuse-lite/data/regions/BI.js index a70e71355..64a9bf85a 100644 --- a/node_modules/caniuse-lite/data/regions/BI.js +++ b/node_modules/caniuse-lite/data/regions/BI.js @@ -1 +1 @@ -module.exports={C:{"28":0.00321,"47":0.00321,"51":0.00321,"56":0.00321,"58":0.00321,"59":0.00321,"72":0.00321,"76":0.00321,"87":0.00321,"88":0.01285,"95":0.00964,"102":0.00321,"107":0.00321,"108":0.00321,"113":0.00321,"114":0.00643,"115":0.15101,"117":0.00321,"121":0.01285,"122":0.00321,"124":0.00321,"127":0.02892,"128":0.04177,"129":0.05462,"130":0.00321,"134":0.00321,"135":0.00321,"136":0.03534,"137":0.01607,"138":0.12209,"139":1.21773,"140":0.12209,"141":0.00643,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 52 53 54 55 57 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 77 78 79 80 81 82 83 84 85 86 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 109 110 111 112 116 118 119 120 123 125 126 131 132 133 142 143 3.5 3.6"},D:{"38":0.00321,"39":0.00321,"40":0.00964,"41":0.00643,"42":0.00321,"43":0.00321,"44":0.00643,"45":0.00643,"46":0.00643,"47":0.00321,"48":0.02249,"49":0.00643,"50":0.01285,"51":0.00321,"52":0.00643,"53":0.00643,"54":0.00321,"55":0.00321,"56":0.00643,"57":0.00643,"58":0.00964,"59":0.00964,"60":0.00321,"62":0.01285,"64":0.01285,"65":0.00321,"66":0.00321,"67":0.01285,"68":0.00643,"69":0.00321,"74":0.00964,"76":0.05783,"78":0.00321,"79":0.02892,"80":0.05783,"81":0.00321,"83":0.01285,"84":0.03213,"86":0.02249,"87":0.00643,"91":0.00643,"93":0.01607,"94":0.00643,"95":0.00643,"96":0.00321,"97":0.01607,"98":0.00321,"99":0.00321,"101":0.01607,"102":0.00321,"103":0.0257,"105":0.01285,"106":0.00964,"107":0.00643,"108":0.00643,"109":0.86108,"111":0.00321,"112":0.01928,"113":0.04177,"114":0.02892,"116":0.21206,"118":0.33415,"119":0.02249,"120":0.00964,"121":0.00964,"122":0.00643,"123":0.00643,"124":0.00643,"125":0.45946,"126":0.02249,"127":0.0257,"128":0.04498,"129":0.03213,"130":0.01928,"131":0.09639,"132":0.05141,"133":0.12852,"134":0.1478,"135":0.26668,"136":1.90852,"137":9.87676,"138":0.71329,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 63 70 71 72 73 75 77 85 88 89 90 92 100 104 110 115 117 139 140 141"},F:{"21":0.01285,"36":0.00321,"42":0.00643,"45":0.00643,"46":0.0257,"50":0.00643,"62":0.00321,"63":0.01607,"65":0.00643,"75":0.00643,"79":0.00643,"83":0.00321,"87":0.00321,"88":0.00964,"89":0.00643,"90":0.00964,"95":0.0482,"100":0.00964,"102":0.02249,"106":0.00321,"108":0.0739,"111":0.00321,"113":0.01607,"114":0.00321,"115":0.00964,"117":0.0482,_:"9 11 12 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 47 48 49 51 52 53 54 55 56 57 58 60 64 66 67 68 69 70 71 72 73 74 76 77 78 80 81 82 84 85 86 91 92 93 94 96 97 98 99 101 103 104 105 107 109 110 112 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01285,"13":0.02249,"16":0.00964,"17":0.00643,"18":0.05141,"89":0.01285,"90":0.00964,"92":0.09639,"99":0.00321,"100":0.03213,"109":0.01928,"112":0.00321,"113":0.00321,"114":0.0482,"119":0.00964,"120":0.00321,"122":0.0482,"125":0.00643,"126":0.00321,"127":0.00321,"128":0.00321,"129":0.00643,"130":0.00643,"131":0.01607,"132":0.00964,"133":0.00643,"134":0.11567,"135":0.05462,"136":0.7165,"137":2.20412,"138":0.29881,_:"14 15 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 107 108 110 111 115 116 117 118 121 123 124"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.4 15.5 16.1 16.2 16.5 17.2 17.3 17.4 18.0 18.2 18.4","11.1":0.02892,"12.1":0.00321,"13.1":0.00643,"14.1":0.02249,"15.2-15.3":0.01285,"15.6":0.00643,"16.0":0.00643,"16.3":0.00964,"16.4":0.00321,"16.6":0.01285,"17.0":0.01285,"17.1":0.01607,"17.5":0.0482,"17.6":0.05783,"18.1":0.00643,"18.3":0.01285,"18.5":0.11888,"26.0":0.00964},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00106,"5.0-5.1":0,"6.0-6.1":0.00213,"7.0-7.1":0.00213,"8.1-8.4":0,"9.0-9.2":0.00106,"9.3":0.00639,"10.0-10.2":0.00053,"10.3":0.01064,"11.0-11.2":0.06811,"11.3-11.4":0.00372,"12.0-12.1":0.00106,"12.2-12.5":0.03565,"13.0-13.1":0.00053,"13.2":0.0016,"13.3":0.00106,"13.4-13.7":0.00585,"14.0-14.4":0.01383,"14.5-14.8":0.01383,"15.0-15.1":0.00958,"15.2-15.3":0.00958,"15.4":0.01171,"15.5":0.01277,"15.6-15.8":0.16495,"16.0":0.02182,"16.1":0.0447,"16.2":0.02288,"16.3":0.04204,"16.4":0.00958,"16.5":0.01703,"16.6-16.7":0.20699,"17.0":0.01117,"17.1":0.01969,"17.2":0.01543,"17.3":0.02182,"17.4":0.03884,"17.5":0.08141,"17.6-17.7":0.21284,"18.0":0.05268,"18.1":0.11866,"18.2":0.06279,"18.3":0.26978,"18.4":0.28627,"18.5":3.35596,"26.0":0},P:{"4":0.06009,"22":0.04006,"23":0.02003,"24":0.09013,"25":0.0701,"26":0.04006,"27":0.08012,"28":0.77111,_:"20 21 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","5.0-5.4":0.02003,"7.2-7.4":0.09013,"9.2":0.03004,"17.0":0.01001,"18.0":0.03004,"19.0":0.08012},I:{"0":0.06775,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":4.3253,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00964,_:"6 7 8 9 10 5.5"},S:{"2.5":0.02036,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.27356},R:{_:"0"},M:{"0":0.07466},Q:{_:"14.9"},O:{"0":0.21718},H:{"0":2.93}}; +module.exports={C:{"51":0.00227,"52":0.00454,"64":0.00227,"65":0.00227,"69":0.00227,"72":0.00908,"73":0.00227,"77":0.00908,"84":0.00227,"88":0.02498,"89":0.00227,"92":0.00227,"94":0.01363,"95":0.00227,"97":0.00681,"99":0.00227,"105":0.00908,"107":0.00227,"115":0.35882,"117":0.00908,"119":0.00227,"121":0.00681,"122":0.01817,"123":0.02271,"124":0.02044,"125":0.73808,"126":0.30886,"127":0.00908,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 56 57 58 59 60 61 62 63 66 67 68 70 71 74 75 76 78 79 80 81 82 83 85 86 87 90 91 93 96 98 100 101 102 103 104 106 108 109 110 111 112 113 114 116 118 120 128 129 3.5 3.6"},D:{"26":0.00227,"30":0.00454,"52":0.02498,"56":0.01136,"61":0.00227,"63":0.00454,"64":0.02952,"70":0.00681,"71":0.00227,"73":0.00227,"78":0.00908,"79":0.02498,"80":0.0159,"83":0.05223,"84":0.00227,"86":0.00454,"87":0.00681,"88":0.03861,"89":0.03407,"91":0.00227,"92":0.00227,"93":0.02271,"94":0.00227,"95":0.00227,"96":0.00454,"97":0.00454,"98":0.00227,"100":0.00227,"103":0.0545,"104":0.07949,"105":0.03407,"106":0.05223,"107":0.00454,"108":0.02044,"109":0.76079,"110":0.04315,"111":0.00454,"112":0.00681,"113":0.01363,"115":0.00227,"116":0.02044,"117":0.00681,"118":0.00908,"119":0.0159,"120":0.0863,"121":0.06132,"122":0.11355,"123":0.30659,"124":5.623,"125":2.76154,"126":0.00681,"127":0.00227,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 62 65 66 67 68 69 72 74 75 76 77 81 85 90 99 101 102 114 128"},F:{"21":0.00454,"35":0.01363,"42":0.00227,"48":0.00227,"50":0.00227,"53":0.00908,"79":0.04996,"82":0.00227,"84":0.00908,"85":0.00227,"95":0.01363,"102":0.00227,"106":0.01363,"107":0.00227,"108":0.02044,"109":0.75624,"110":0.05678,_:"9 11 12 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 43 44 45 46 47 49 51 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.04088,"13":0.00681,"14":0.00681,"17":0.01817,"18":0.0545,"84":0.00227,"88":0.00227,"89":0.00454,"90":0.00454,"92":0.07267,"93":0.02725,"99":0.00227,"100":0.01136,"107":0.00227,"108":0.00227,"109":0.00681,"110":0.00227,"111":0.00227,"114":0.00681,"116":0.00227,"117":0.00681,"119":0.00454,"120":0.01136,"121":0.0159,"122":0.03407,"123":0.07721,"124":1.5738,"125":0.73808,_:"15 16 79 80 81 83 85 86 87 91 94 95 96 97 98 101 102 103 104 105 106 112 113 115 118"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 15.5 16.2 16.5 17.3 17.6","5.1":0.0704,"12.1":0.00227,"13.1":0.13853,"14.1":0.01363,"15.1":0.00227,"15.6":0.01363,"16.0":0.13853,"16.1":0.00454,"16.3":0.00454,"16.4":0.00227,"16.6":0.09765,"17.0":0.00454,"17.1":0.00908,"17.2":0.00908,"17.4":0.01817,"17.5":0.00454},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00056,"5.0-5.1":0.00056,"6.0-6.1":0.0014,"7.0-7.1":0.00195,"8.1-8.4":0.00056,"9.0-9.2":0.0014,"9.3":0.00642,"10.0-10.2":0.00112,"10.3":0.01004,"11.0-11.2":0.01479,"11.3-11.4":0.00279,"12.0-12.1":0.00167,"12.2-12.5":0.04046,"13.0-13.1":0.00084,"13.2":0.00391,"13.3":0.00195,"13.4-13.7":0.00893,"14.0-14.4":0.01535,"14.5-14.8":0.02372,"15.0-15.1":0.01144,"15.2-15.3":0.01256,"15.4":0.01423,"15.5":0.01786,"15.6-15.8":0.16071,"16.0":0.03655,"16.1":0.07533,"16.2":0.03655,"16.3":0.06334,"16.4":0.01339,"16.5":0.02706,"16.6-16.7":0.21568,"17.0":0.02344,"17.1":0.03823,"17.2":0.0399,"17.3":0.07366,"17.4":1.67271,"17.5":0.11802,"17.6":0},P:{"4":0.19526,"20":0.02055,"21":0.04111,"22":0.01028,"23":0.07194,"24":0.09249,"25":0.23637,_:"5.0-5.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0","6.2-6.4":0.02055,"7.2-7.4":0.10277,"9.2":0.02055,"11.1-11.2":0.02055,"17.0":0.04111,"18.0":0.01028,"19.0":0.05139},I:{"0":0.0308,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":5.34684,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02498,_:"6 7 8 9 10 5.5"},S:{"2.5":0.1855,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.8732},R:{_:"0"},M:{"0":0.04637},Q:{_:"14.9"},O:{"0":0.2396},H:{"0":2.9}}; diff --git a/node_modules/caniuse-lite/data/regions/BJ.js b/node_modules/caniuse-lite/data/regions/BJ.js index 37c75c6c1..9dc79a84e 100644 --- a/node_modules/caniuse-lite/data/regions/BJ.js +++ b/node_modules/caniuse-lite/data/regions/BJ.js @@ -1 +1 @@ -module.exports={C:{"4":0.00493,"45":0.00246,"65":0.00246,"68":0.00246,"72":0.00493,"82":0.00246,"89":0.00246,"92":0.00246,"93":0.00246,"97":0.00246,"102":0.00246,"104":0.00246,"106":0.00246,"107":0.00246,"111":0.00493,"112":0.00246,"113":0.00246,"115":0.09852,"116":0.00493,"117":0.00246,"125":0.00246,"127":0.01724,"128":0.04433,"129":0.00246,"130":0.00246,"133":0.00493,"134":0.00246,"135":0.00493,"136":0.00985,"137":0.00739,"138":0.10591,"139":0.90392,"140":0.09359,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 90 91 94 95 96 98 99 100 101 103 105 108 109 110 114 118 119 120 121 122 123 124 126 131 132 141 142 143 3.5 3.6"},D:{"39":0.00739,"40":0.00739,"41":0.00493,"42":0.00739,"43":0.00985,"44":0.02217,"45":0.00739,"46":0.00985,"47":0.01478,"48":0.00493,"49":0.00493,"50":0.00739,"51":0.00493,"52":0.00246,"53":0.00739,"54":0.00493,"55":0.00739,"56":0.00739,"57":0.00493,"58":0.09852,"59":0.00985,"60":0.00739,"67":0.00246,"68":0.00739,"70":0.01232,"71":0.00493,"72":0.00246,"73":0.02709,"74":0.03202,"75":0.00246,"76":0.00493,"77":0.00739,"78":0.01478,"79":0.01478,"80":0.00985,"81":0.00739,"83":0.00985,"84":0.00985,"85":0.00493,"86":0.00493,"87":0.0197,"89":0.01232,"91":0.00246,"93":0.01478,"94":0.00493,"95":0.00493,"97":0.00739,"98":0.00246,"102":0.00985,"103":0.02217,"104":0.00493,"105":0.00493,"106":0.00493,"108":0.0468,"109":1.23889,"111":0.00739,"114":0.05172,"116":0.04433,"117":0.00246,"118":0.01232,"119":0.05172,"120":0.02956,"121":0.00739,"122":0.01478,"123":0.00985,"124":0.00985,"125":1.03446,"126":0.04433,"127":0.01724,"128":0.06404,"129":0.01232,"130":0.00985,"131":0.03202,"132":0.01724,"133":0.06404,"134":0.1133,"135":0.16995,"136":1.16746,"137":7.85451,"138":0.35714,"139":0.00246,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 69 88 90 92 96 99 100 101 107 110 112 113 115 140 141"},F:{"34":0.00246,"36":0.00246,"68":0.00246,"71":0.00246,"79":0.00493,"80":0.0468,"84":0.00246,"87":0.01478,"89":0.05419,"90":0.00985,"95":0.06404,"113":0.00246,"114":0.00246,"116":0.00246,"117":0.00739,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 72 73 74 75 76 77 78 81 82 83 85 86 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00493,"14":0.00246,"16":0.00493,"17":0.00493,"18":0.01478,"84":0.00493,"89":0.00246,"90":0.00739,"92":0.06404,"95":0.00739,"100":0.0197,"107":0.00985,"109":0.01478,"110":0.00246,"111":0.00246,"114":0.00493,"121":0.00246,"122":0.00739,"126":0.00246,"127":0.00246,"128":0.00246,"130":0.00493,"131":0.00739,"132":0.00493,"133":0.00739,"134":0.02709,"135":0.02709,"136":0.33989,"137":1.9901,"138":0.28078,_:"13 15 79 80 81 83 85 86 87 88 91 93 94 96 97 98 99 101 102 103 104 105 106 108 112 113 115 116 117 118 119 120 123 124 125 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.4 16.0 26.0","5.1":0.00493,"11.1":0.00493,"12.1":0.00739,"13.1":0.00985,"14.1":0.00246,"15.1":0.00246,"15.2-15.3":0.00246,"15.5":0.00246,"15.6":0.03448,"16.1":0.00985,"16.2":0.00985,"16.3":0.00739,"16.4":0.01478,"16.5":0.00493,"16.6":0.1133,"17.0":0.00739,"17.1":0.06896,"17.2":0.00493,"17.3":0.00739,"17.4":0.01232,"17.5":0.01232,"17.6":0.19211,"18.0":0.00739,"18.1":0.00739,"18.2":0.00739,"18.3":0.02463,"18.4":0.0197,"18.5":0.18965},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00171,"5.0-5.1":0,"6.0-6.1":0.00342,"7.0-7.1":0.00342,"8.1-8.4":0,"9.0-9.2":0.00171,"9.3":0.01026,"10.0-10.2":0.00085,"10.3":0.01709,"11.0-11.2":0.1094,"11.3-11.4":0.00598,"12.0-12.1":0.00171,"12.2-12.5":0.05726,"13.0-13.1":0.00085,"13.2":0.00256,"13.3":0.00171,"13.4-13.7":0.0094,"14.0-14.4":0.02222,"14.5-14.8":0.02222,"15.0-15.1":0.01538,"15.2-15.3":0.01538,"15.4":0.0188,"15.5":0.02051,"15.6-15.8":0.26496,"16.0":0.03504,"16.1":0.07179,"16.2":0.03675,"16.3":0.06752,"16.4":0.01538,"16.5":0.02735,"16.6-16.7":0.33248,"17.0":0.01795,"17.1":0.03162,"17.2":0.02479,"17.3":0.03504,"17.4":0.06239,"17.5":0.13077,"17.6-17.7":0.34188,"18.0":0.08461,"18.1":0.1906,"18.2":0.10085,"18.3":0.43333,"18.4":0.45983,"18.5":5.39057,"26.0":0},P:{"4":0.0109,"22":0.0109,"23":0.0654,"24":0.0109,"25":0.0109,"26":0.0218,"27":0.0981,"28":0.45779,_:"20 21 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0109,"9.2":0.0109},I:{"0":0.09781,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":3.63941,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.01507,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.25198},R:{_:"0"},M:{"0":0.21857},Q:{_:"14.9"},O:{"0":0.29394},H:{"0":3.37}}; +module.exports={C:{"56":0.00173,"58":0.00173,"60":0.00173,"65":0.00173,"67":0.00173,"68":0.00346,"72":0.00519,"77":0.00173,"79":0.00173,"84":0.00173,"88":0.00173,"89":0.00173,"102":0.00173,"106":0.00173,"107":0.00173,"109":0.00173,"112":0.01729,"113":0.00173,"114":0.00173,"115":0.11066,"116":0.02075,"118":0.00692,"120":0.00173,"121":0.00173,"122":0.00865,"123":0.00692,"124":0.02939,"125":0.41323,"126":0.25416,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 59 61 62 63 64 66 69 70 71 73 74 75 76 78 80 81 82 83 85 86 87 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 108 110 111 117 119 127 128 129 3.5 3.6"},D:{"33":0.00173,"36":0.00519,"38":0.00346,"47":0.01037,"50":0.00173,"51":0.00173,"58":0.00346,"59":0.00346,"60":0.00173,"63":0.00346,"64":0.00346,"65":0.00346,"66":0.00173,"67":0.00173,"68":0.00173,"70":0.0415,"71":0.00173,"72":0.00173,"74":0.0121,"75":0.00173,"76":0.01383,"77":0.00519,"78":0.00519,"79":0.00865,"80":0.00519,"81":0.00519,"83":0.00173,"84":0.00173,"85":0.00173,"86":0.0951,"87":0.00519,"88":0.00519,"89":0.00173,"90":0.00173,"91":0.00173,"92":0.00173,"93":0.00692,"94":0.00346,"95":0.00865,"96":0.00173,"97":0.00692,"98":0.00173,"99":0.00346,"100":0.00173,"101":0.00173,"102":0.01556,"103":0.02075,"104":0.00346,"105":0.01037,"106":0.01902,"107":0.00519,"108":0.01037,"109":1.05815,"110":0.00519,"111":0.14005,"112":0.00346,"113":0.01729,"114":0.00692,"115":0.00346,"116":0.01729,"117":0.01037,"118":0.00346,"119":0.0657,"120":0.0657,"121":0.05187,"122":0.15388,"123":0.27318,"124":5.0262,"125":1.74629,"126":0.00173,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 37 39 40 41 42 43 44 45 46 48 49 52 53 54 55 56 57 61 62 69 73 127 128"},F:{"12":0.00173,"57":0.09164,"79":0.01037,"82":0.07435,"95":0.02939,"103":0.00173,"107":0.03458,"108":0.0121,"109":0.45819,"110":0.05187,_:"9 11 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00173,"14":0.00173,"16":0.00519,"18":0.01037,"84":0.00346,"89":0.01037,"90":0.0121,"92":0.01556,"98":0.01729,"100":0.00692,"107":0.00865,"109":0.01556,"110":0.0121,"114":0.00519,"117":0.00173,"118":0.00346,"119":0.00346,"120":0.00519,"121":0.00692,"122":0.01383,"123":0.04323,"124":1.20857,"125":0.53426,_:"13 15 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 99 101 102 103 104 105 106 108 111 112 113 115 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.4 17.6","5.1":0.00173,"13.1":0.00173,"14.1":0.00865,"15.1":0.00173,"15.2-15.3":0.00346,"15.5":0.00173,"15.6":0.02766,"16.0":0.00173,"16.1":0.00346,"16.2":0.01383,"16.3":0.00692,"16.4":0.00865,"16.5":0.00692,"16.6":0.07781,"17.0":0.00519,"17.1":0.02248,"17.2":0.02075,"17.3":0.0121,"17.4":0.23687,"17.5":0.03285},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00135,"5.0-5.1":0.00135,"6.0-6.1":0.00337,"7.0-7.1":0.00471,"8.1-8.4":0.00135,"9.0-9.2":0.00337,"9.3":0.01548,"10.0-10.2":0.00269,"10.3":0.02424,"11.0-11.2":0.03568,"11.3-11.4":0.00673,"12.0-12.1":0.00404,"12.2-12.5":0.09762,"13.0-13.1":0.00202,"13.2":0.00943,"13.3":0.00471,"13.4-13.7":0.02154,"14.0-14.4":0.03703,"14.5-14.8":0.05723,"15.0-15.1":0.0276,"15.2-15.3":0.0303,"15.4":0.03434,"15.5":0.04309,"15.6-15.8":0.3878,"16.0":0.0882,"16.1":0.18178,"16.2":0.0882,"16.3":0.15283,"16.4":0.03232,"16.5":0.06531,"16.6-16.7":0.52043,"17.0":0.05655,"17.1":0.09224,"17.2":0.09628,"17.3":0.17774,"17.4":4.03619,"17.5":0.28479,"17.6":0},P:{"4":0.18468,"21":0.04104,"22":0.01026,"23":0.03078,"24":0.1539,"25":0.26677,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0","7.2-7.4":0.02052,"9.2":0.01026,"15.0":0.08208,"19.0":0.01026},I:{"0":0.00824,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.73194,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00865,_:"6 7 8 9 10 5.5"},S:{"2.5":0.02481,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.05623},R:{_:"0"},M:{"0":0.0579},Q:{"14.9":0.01654},O:{"0":0.28121},H:{"0":3.76}}; diff --git a/node_modules/caniuse-lite/data/regions/BM.js b/node_modules/caniuse-lite/data/regions/BM.js index ff7c143e0..566ad5709 100644 --- a/node_modules/caniuse-lite/data/regions/BM.js +++ b/node_modules/caniuse-lite/data/regions/BM.js @@ -1 +1 @@ -module.exports={C:{"139":0.00799,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 140 141 142 143 3.5 3.6"},D:{"98":0.00266,"103":0.00266,"109":0.00532,"125":0.09051,"129":0.00266,"133":0.00532,"134":0.00532,"135":0.00799,"136":0.04259,"137":0.1544,"138":0.00532,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 130 131 132 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00266,"136":0.01863,"137":0.09317,"138":0.00799,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1","14.1":0.01863,"15.1":0.01863,"15.2-15.3":0.00799,"15.4":0.02662,"15.5":0.08785,"15.6":0.81457,"16.0":0.01597,"16.1":0.10382,"16.2":0.17569,"16.3":0.41261,"16.4":0.08518,"16.5":0.17835,"16.6":1.63979,"17.0":0.04792,"17.1":1.47741,"17.2":0.07454,"17.3":0.10382,"17.4":0.20231,"17.5":0.33807,"17.6":1.31237,"18.0":0.08518,"18.1":0.36736,"18.2":0.14641,"18.3":1.01156,"18.4":0.91573,"18.5":15.67386,"26.0":0.00799},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01463,"5.0-5.1":0,"6.0-6.1":0.02926,"7.0-7.1":0.02926,"8.1-8.4":0,"9.0-9.2":0.01463,"9.3":0.08779,"10.0-10.2":0.00732,"10.3":0.14631,"11.0-11.2":0.93641,"11.3-11.4":0.05121,"12.0-12.1":0.01463,"12.2-12.5":0.49015,"13.0-13.1":0.00732,"13.2":0.02195,"13.3":0.01463,"13.4-13.7":0.08047,"14.0-14.4":0.19021,"14.5-14.8":0.19021,"15.0-15.1":0.13168,"15.2-15.3":0.13168,"15.4":0.16095,"15.5":0.17558,"15.6-15.8":2.26787,"16.0":0.29994,"16.1":0.61452,"16.2":0.31458,"16.3":0.57794,"16.4":0.13168,"16.5":0.2341,"16.6-16.7":2.84582,"17.0":0.15363,"17.1":0.27068,"17.2":0.21216,"17.3":0.29994,"17.4":0.53405,"17.5":1.11931,"17.6-17.7":2.92629,"18.0":0.72426,"18.1":1.63141,"18.2":0.86326,"18.3":3.70907,"18.4":3.93586,"18.5":46.14026,"26.0":0},P:{"28":0.02935,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":0.18674},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"78":0.00262,"125":0.01309,"126":0.00524,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 127 128 129 3.5 3.6"},D:{"65":0.00262,"103":0.00524,"109":0.02356,"116":0.00262,"119":0.00262,"120":0.00524,"121":0.00524,"122":0.03665,"123":0.03403,"124":0.26442,"125":0.08116,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 126 127 128"},F:{"107":0.00524,"109":0.01047,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"123":0.00524,"124":0.11257,"125":0.04974,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.00262,"14.1":0.01833,"15.1":0.04974,"15.2-15.3":0.01833,"15.4":0.06545,"15.5":0.14923,"15.6":1.84307,"16.0":0.04451,"16.1":0.26965,"16.2":0.41888,"16.3":0.86918,"16.4":0.18326,"16.5":0.38485,"16.6":3.25679,"17.0":0.1309,"17.1":0.34558,"17.2":0.46862,"17.3":0.47124,"17.4":14.86762,"17.5":1.31424},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01468,"5.0-5.1":0.01468,"6.0-6.1":0.0367,"7.0-7.1":0.05138,"8.1-8.4":0.01468,"9.0-9.2":0.0367,"9.3":0.16882,"10.0-10.2":0.02936,"10.3":0.26424,"11.0-11.2":0.38902,"11.3-11.4":0.0734,"12.0-12.1":0.04404,"12.2-12.5":1.06429,"13.0-13.1":0.02202,"13.2":0.10276,"13.3":0.05138,"13.4-13.7":0.23488,"14.0-14.4":0.4037,"14.5-14.8":0.62389,"15.0-15.1":0.30094,"15.2-15.3":0.3303,"15.4":0.37434,"15.5":0.46976,"15.6-15.8":4.2278,"16.0":0.96153,"16.1":1.98178,"16.2":0.96153,"16.3":1.66616,"16.4":0.35232,"16.5":0.71197,"16.6-16.7":5.67376,"17.0":0.61655,"17.1":1.00557,"17.2":1.04961,"17.3":1.93774,"17.4":44.00284,"17.5":3.10479,"17.6":0},P:{"24":0.01107,"25":0.07751,_:"4 20 21 22 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":0.3079},R:{_:"0"},M:{"0":0.02215},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BN.js b/node_modules/caniuse-lite/data/regions/BN.js index a04b2b4a6..dd35f1992 100644 --- a/node_modules/caniuse-lite/data/regions/BN.js +++ b/node_modules/caniuse-lite/data/regions/BN.js @@ -1 +1 @@ -module.exports={C:{"52":0.00371,"78":0.00742,"99":0.00371,"106":0.00371,"107":0.01855,"115":0.15207,"127":0.00371,"128":0.00371,"133":0.00371,"135":0.00742,"136":0.00371,"137":0.00371,"138":0.05564,"139":0.92354,"140":0.18916,"141":0.00371,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 134 142 143 3.5 3.6"},D:{"38":0.00371,"39":0.00371,"40":0.00742,"41":0.00371,"42":0.00371,"43":0.00742,"44":0.00371,"45":0.00371,"46":0.00742,"47":0.00371,"48":0.00371,"49":0.00742,"50":0.00371,"51":0.00371,"52":0.00742,"53":0.00742,"54":0.00371,"55":0.01113,"56":0.01113,"57":0.00742,"58":0.00371,"59":0.00742,"60":0.00371,"62":0.00371,"66":0.00371,"69":0.00371,"70":0.01113,"72":0.00371,"75":0.01484,"79":0.02225,"80":0.00371,"81":0.01113,"83":0.00371,"85":0.00742,"87":0.02967,"89":0.00371,"91":0.00371,"93":0.03709,"94":0.01113,"95":0.00371,"96":0.00371,"97":0.00371,"98":0.03338,"99":0.01113,"103":0.0816,"106":0.01484,"108":0.01113,"109":1.00514,"110":0.00371,"111":0.01484,"112":0.00371,"113":0.00742,"114":0.01855,"115":0.00371,"116":0.03338,"119":0.01855,"120":0.01484,"121":0.03338,"122":0.07047,"123":0.02596,"124":0.01855,"125":1.04223,"126":0.02967,"127":0.01484,"128":0.05934,"129":0.01855,"130":0.02225,"131":0.10014,"132":0.02967,"133":0.07047,"134":0.06676,"135":0.10756,"136":2.49987,"137":16.73872,"138":0.73809,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 63 64 65 67 68 71 73 74 76 77 78 84 86 88 90 92 100 101 102 104 105 107 117 118 139 140 141"},F:{"36":0.00371,"46":0.00371,"89":0.18545,"90":0.04822,"95":0.03338,"117":0.00371,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00371,"18":0.00371,"92":0.00371,"98":0.00742,"99":0.00371,"108":0.01113,"109":0.02967,"115":0.00371,"122":0.00371,"131":0.00371,"132":0.00371,"133":0.00371,"134":0.00742,"135":0.02596,"136":0.55635,"137":2.74095,"138":0.18174,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 127 128 129 130"},E:{"12":0.00371,"13":0.00742,"14":0.00371,_:"0 4 5 6 7 8 9 10 11 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.00371,"13.1":0.01113,"14.1":0.04822,"15.1":0.00371,"15.2-15.3":0.00371,"15.4":0.00371,"15.5":0.02225,"15.6":0.10014,"16.0":0.01113,"16.1":0.01484,"16.2":0.00371,"16.3":0.04822,"16.4":0.01855,"16.5":0.03338,"16.6":0.31156,"17.0":0.00371,"17.1":0.09273,"17.2":0.00742,"17.3":0.01484,"17.4":0.05193,"17.5":0.05934,"17.6":0.46363,"18.0":0.02225,"18.1":0.06305,"18.2":0.02225,"18.3":0.15207,"18.4":0.14094,"18.5":1.56149},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00313,"5.0-5.1":0,"6.0-6.1":0.00625,"7.0-7.1":0.00625,"8.1-8.4":0,"9.0-9.2":0.00313,"9.3":0.01875,"10.0-10.2":0.00156,"10.3":0.03125,"11.0-11.2":0.20002,"11.3-11.4":0.01094,"12.0-12.1":0.00313,"12.2-12.5":0.1047,"13.0-13.1":0.00156,"13.2":0.00469,"13.3":0.00313,"13.4-13.7":0.01719,"14.0-14.4":0.04063,"14.5-14.8":0.04063,"15.0-15.1":0.02813,"15.2-15.3":0.02813,"15.4":0.03438,"15.5":0.0375,"15.6-15.8":0.48443,"16.0":0.06407,"16.1":0.13127,"16.2":0.0672,"16.3":0.12345,"16.4":0.02813,"16.5":0.05001,"16.6-16.7":0.60788,"17.0":0.03282,"17.1":0.05782,"17.2":0.04532,"17.3":0.06407,"17.4":0.11408,"17.5":0.23909,"17.6-17.7":0.62507,"18.0":0.15471,"18.1":0.34848,"18.2":0.1844,"18.3":0.79228,"18.4":0.84072,"18.5":9.85585,"26.0":0},P:{"4":0.05145,"21":0.02058,"24":0.01029,"25":0.01029,"26":0.05145,"27":0.05145,"28":1.15251,_:"20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.08232,"19.0":0.01029},I:{"0":0.00628,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":2.01312,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01855,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.36466},R:{_:"0"},M:{"0":0.16986},Q:{"14.9":0.00629},O:{"0":2.03828},H:{"0":0}}; +module.exports={C:{"26":0.00417,"35":0.00417,"36":0.00417,"39":0.00417,"40":0.00417,"78":0.00833,"89":0.00417,"93":0.00417,"98":0.00417,"104":0.00417,"105":0.00417,"106":0.00417,"107":0.00417,"108":0.00417,"109":0.02083,"110":0.00417,"111":0.00417,"115":0.42077,"119":0.03749,"120":0.03749,"121":0.00833,"123":0.00833,"124":0.08332,"125":0.96235,"126":0.93735,"127":0.00417,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 37 38 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 94 95 96 97 99 100 101 102 103 112 113 114 116 117 118 122 128 129 3.5","3.6":0.00417},D:{"21":0.00417,"35":0.00417,"37":0.00417,"38":0.11665,"39":0.00833,"40":0.00417,"41":0.00417,"42":0.00417,"43":0.00833,"44":0.0125,"45":0.00833,"46":0.01666,"47":0.00833,"49":0.00417,"51":0.03333,"55":0.0125,"58":0.00417,"62":0.00833,"63":0.00833,"64":0.00417,"65":0.025,"66":0.00417,"68":0.00833,"69":0.00417,"70":0.0125,"73":0.00417,"75":0.00417,"79":0.11665,"81":0.0125,"83":0.00417,"87":0.0125,"88":0.00833,"89":0.00417,"91":0.03333,"92":0.00833,"97":0.00417,"98":0.00417,"99":0.02083,"102":0.0125,"103":0.20413,"105":0.00417,"106":0.02916,"107":0.04166,"108":0.02916,"109":1.75389,"110":0.00417,"111":0.02083,"112":0.00833,"113":0.00417,"114":0.00833,"115":0.00833,"116":0.17497,"117":0.02916,"118":0.01666,"119":0.07082,"120":0.05832,"121":0.09998,"122":0.29162,"123":0.63323,"124":16.35572,"125":6.56145,"126":0.01666,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 36 48 50 52 53 54 56 57 59 60 61 67 71 72 74 76 77 78 80 84 85 86 90 93 94 95 96 100 101 104 127 128"},F:{"31":0.00417,"36":0.00417,"94":0.00417,"95":0.02083,"105":0.00417,"107":0.50409,"108":0.00833,"109":1.56642,"110":0.04583,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00417},B:{"12":0.00417,"15":0.00417,"18":0.00417,"92":0.00833,"105":0.00417,"109":0.0125,"111":0.00417,"113":0.25413,"114":0.00417,"115":0.00417,"116":0.0125,"117":0.025,"119":0.00833,"120":0.05832,"121":0.01666,"122":0.03749,"123":0.02916,"124":1.68723,"125":0.99567,_:"13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 112 118"},E:{"9":0.04583,"14":0.06249,"15":0.03333,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 9.1 10.1 11.1 12.1 17.6","7.1":0.00417,"13.1":0.02916,"14.1":0.17914,"15.1":0.02916,"15.2-15.3":0.00833,"15.4":0.03333,"15.5":0.03333,"15.6":0.49159,"16.0":0.02916,"16.1":0.04166,"16.2":0.03333,"16.3":0.14581,"16.4":0.02916,"16.5":0.04583,"16.6":0.32495,"17.0":0.1833,"17.1":0.05832,"17.2":0.17914,"17.3":0.22496,"17.4":2.28713,"17.5":0.29995},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00319,"5.0-5.1":0.00319,"6.0-6.1":0.00796,"7.0-7.1":0.01115,"8.1-8.4":0.00319,"9.0-9.2":0.00796,"9.3":0.03663,"10.0-10.2":0.00637,"10.3":0.05734,"11.0-11.2":0.08441,"11.3-11.4":0.01593,"12.0-12.1":0.00956,"12.2-12.5":0.23094,"13.0-13.1":0.00478,"13.2":0.0223,"13.3":0.01115,"13.4-13.7":0.05097,"14.0-14.4":0.0876,"14.5-14.8":0.13538,"15.0-15.1":0.0653,"15.2-15.3":0.07167,"15.4":0.08123,"15.5":0.10193,"15.6-15.8":0.91738,"16.0":0.20864,"16.1":0.43002,"16.2":0.20864,"16.3":0.36154,"16.4":0.07645,"16.5":0.15449,"16.6-16.7":1.23114,"17.0":0.13379,"17.1":0.2182,"17.2":0.22775,"17.3":0.42047,"17.4":9.54813,"17.5":0.6737,"17.6":0},P:{"4":0.35484,"20":0.01075,"21":0.02151,"22":0.03226,"23":0.03226,"24":0.08602,"25":1.49465,"5.0-5.4":0.03226,"6.2-6.4":0.03226,"7.2-7.4":0.05376,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","17.0":0.01075,"18.0":0.01075,"19.0":0.01075},I:{"0":0.18015,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00011,"4.4":0,"4.4.3-4.4.4":0.0004},K:{"0":3.15703,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00833,"8":0.05416,"9":0.01666,"10":0.0125,"11":0.04166,_:"6 5.5"},S:{"2.5":0.00583,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.22627},R:{_:"0"},M:{"0":0.14002},Q:{"14.9":0.00583},O:{"0":1.55768},H:{"0":0.04}}; diff --git a/node_modules/caniuse-lite/data/regions/BO.js b/node_modules/caniuse-lite/data/regions/BO.js index aec158931..f1dd0c55f 100644 --- a/node_modules/caniuse-lite/data/regions/BO.js +++ b/node_modules/caniuse-lite/data/regions/BO.js @@ -1 +1 @@ -module.exports={C:{"52":0.00446,"61":0.03121,"78":0.01932,"113":0.00892,"115":0.09659,"125":0.00297,"127":0.00297,"128":0.03269,"132":0.00149,"134":0.00297,"135":0.00149,"136":0.00594,"137":0.00594,"138":0.01337,"139":0.51861,"140":0.08322,"141":0.00149,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 129 130 131 133 142 143 3.5 3.6"},D:{"39":0.00446,"40":0.00446,"41":0.00446,"42":0.00446,"43":0.00446,"44":0.00446,"45":0.00446,"46":0.00446,"47":0.00594,"48":0.00446,"49":0.00743,"50":0.00446,"51":0.00446,"52":0.00446,"53":0.00446,"54":0.00446,"55":0.00446,"56":0.00446,"57":0.00446,"58":0.00446,"59":0.00446,"60":0.00446,"62":0.00149,"69":0.00446,"72":0.00149,"75":0.00149,"79":0.01337,"83":0.00149,"84":0.00149,"85":0.00297,"86":0.00297,"87":0.01189,"88":0.00297,"89":0.00149,"90":0.00149,"92":0.00149,"93":0.00149,"94":0.00149,"95":0.00149,"96":0.00149,"97":0.00149,"98":0.00149,"99":0.00149,"100":0.00149,"103":0.00446,"104":0.00297,"105":0.01486,"106":0.00149,"107":0.00297,"108":0.00892,"109":0.63155,"110":0.00297,"111":0.01337,"113":0.00297,"114":0.02972,"115":0.00297,"116":0.01783,"117":0.00297,"118":0.00297,"119":0.00594,"120":0.00743,"121":0.00594,"122":0.03418,"123":0.00743,"124":0.00892,"125":0.86337,"126":0.01337,"127":0.0104,"128":0.02526,"129":0.00892,"130":0.00594,"131":0.02675,"132":0.01635,"133":0.0208,"134":0.02972,"135":0.15157,"136":0.62263,"137":6.71078,"138":0.36704,"139":0.00297,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 65 66 67 68 70 71 73 74 76 77 78 80 81 91 101 102 112 140 141"},F:{"29":0.00149,"89":0.00297,"90":0.00297,"92":0.00149,"95":0.02972,"99":0.00892,"106":0.00149,"114":0.00149,"117":0.00297,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 93 94 96 97 98 100 101 102 103 104 105 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00149,"85":0.00149,"92":0.00892,"109":0.01189,"122":0.00149,"123":0.00149,"124":0.00149,"127":0.00149,"128":0.00149,"129":0.00149,"130":0.00149,"131":0.00297,"132":0.00297,"133":0.00149,"134":0.01635,"135":0.00743,"136":0.17386,"137":1.09667,"138":0.12037,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 125 126"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 16.5 17.0","5.1":0.00297,"13.1":0.00149,"14.1":0.00149,"15.6":0.0104,"16.0":0.00149,"16.6":0.00594,"17.1":0.00149,"17.2":0.00149,"17.3":0.00149,"17.4":0.00149,"17.5":0.00297,"17.6":0.03566,"18.0":0.00149,"18.1":0.00149,"18.2":0.00149,"18.3":0.00594,"18.4":0.01189,"18.5":0.07876,"26.0":0.00149},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0002,"5.0-5.1":0,"6.0-6.1":0.00041,"7.0-7.1":0.00041,"8.1-8.4":0,"9.0-9.2":0.0002,"9.3":0.00123,"10.0-10.2":0.0001,"10.3":0.00204,"11.0-11.2":0.01308,"11.3-11.4":0.00072,"12.0-12.1":0.0002,"12.2-12.5":0.00685,"13.0-13.1":0.0001,"13.2":0.00031,"13.3":0.0002,"13.4-13.7":0.00112,"14.0-14.4":0.00266,"14.5-14.8":0.00266,"15.0-15.1":0.00184,"15.2-15.3":0.00184,"15.4":0.00225,"15.5":0.00245,"15.6-15.8":0.03167,"16.0":0.00419,"16.1":0.00858,"16.2":0.00439,"16.3":0.00807,"16.4":0.00184,"16.5":0.00327,"16.6-16.7":0.03974,"17.0":0.00215,"17.1":0.00378,"17.2":0.00296,"17.3":0.00419,"17.4":0.00746,"17.5":0.01563,"17.6-17.7":0.04087,"18.0":0.01011,"18.1":0.02278,"18.2":0.01206,"18.3":0.0518,"18.4":0.05497,"18.5":0.64437,"26.0":0},P:{"4":0.04231,"22":0.01058,"23":0.01058,"24":0.01058,"26":0.03173,"27":0.04231,"28":0.48659,_:"20 21 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.03173,"17.0":0.03173},I:{"0":0.90945,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00018,"4.4":0,"4.4.3-4.4.4":0.00073},K:{"0":0.20434,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00149,"11":0.00297,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":83.0375},R:{_:"0"},M:{"0":0.08514},Q:{_:"14.9"},O:{"0":0.05108},H:{"0":0}}; +module.exports={C:{"38":0.0038,"52":0.01518,"58":0.01898,"60":0.0038,"78":0.03037,"88":0.0038,"89":0.0038,"100":0.0038,"106":0.0038,"110":0.0038,"111":0.0038,"113":0.0038,"115":0.49348,"119":0.01139,"120":0.0038,"121":0.0038,"122":0.00759,"123":0.01518,"124":0.04555,"125":0.8541,"126":0.64912,"127":0.0038,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 107 108 109 112 114 116 117 118 128 129 3.5 3.6"},D:{"38":0.0038,"44":0.0038,"46":0.0038,"47":0.0038,"49":0.01139,"51":0.00759,"62":0.00759,"63":0.0038,"65":0.0038,"67":0.00759,"69":0.02657,"70":0.03037,"72":0.0038,"74":0.0038,"75":0.00759,"76":0.0038,"79":0.04555,"80":0.0038,"81":0.02278,"83":0.01518,"84":0.0038,"85":0.0038,"86":0.01139,"87":0.04176,"88":0.02657,"89":0.0038,"90":0.00759,"91":0.41376,"92":0.00759,"93":0.0038,"94":0.00759,"95":0.0038,"96":0.00759,"97":0.00759,"98":0.01518,"99":0.01518,"100":0.01139,"101":0.00759,"102":0.00759,"103":0.04555,"104":0.01139,"105":0.03796,"106":0.00759,"107":0.01518,"108":0.02657,"109":3.11272,"110":0.06453,"111":0.01139,"112":0.01518,"113":0.00759,"114":0.02657,"115":0.01518,"116":0.14045,"117":0.00759,"118":0.01518,"119":0.06074,"120":0.1936,"121":0.53144,"122":0.15943,"123":0.45932,"124":14.62599,"125":6.22924,"126":0.0038,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 45 48 50 52 53 54 55 56 57 58 59 60 61 64 66 68 71 73 77 78 127 128"},F:{"28":0.00759,"36":0.0038,"46":0.0038,"79":0.0038,"95":0.0987,"102":0.00759,"107":0.48968,"108":0.01898,"109":1.75375,"110":0.07972,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00759,"92":0.01518,"100":0.0038,"109":0.03416,"112":0.0038,"114":0.01139,"115":0.0038,"116":0.0038,"117":0.0038,"118":0.0038,"119":0.0038,"120":0.0911,"121":0.01518,"122":0.01898,"123":0.04555,"124":1.92837,"125":1.10464,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113"},E:{"9":0.00759,"14":0.0038,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 17.6","5.1":0.03796,"13.1":0.00759,"14.1":0.03796,"15.1":0.0038,"15.4":0.0038,"15.5":0.0038,"15.6":0.03037,"16.0":0.0038,"16.1":0.0038,"16.2":0.00759,"16.3":0.0038,"16.4":0.0038,"16.5":0.01139,"16.6":0.05314,"17.0":0.0038,"17.1":0.02278,"17.2":0.17841,"17.3":0.01518,"17.4":0.25054,"17.5":0.03037},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00062,"5.0-5.1":0.00062,"6.0-6.1":0.00155,"7.0-7.1":0.00217,"8.1-8.4":0.00062,"9.0-9.2":0.00155,"9.3":0.00712,"10.0-10.2":0.00124,"10.3":0.01114,"11.0-11.2":0.01641,"11.3-11.4":0.0031,"12.0-12.1":0.00186,"12.2-12.5":0.04489,"13.0-13.1":0.00093,"13.2":0.00433,"13.3":0.00217,"13.4-13.7":0.00991,"14.0-14.4":0.01703,"14.5-14.8":0.02631,"15.0-15.1":0.01269,"15.2-15.3":0.01393,"15.4":0.01579,"15.5":0.01981,"15.6-15.8":0.17832,"16.0":0.04055,"16.1":0.08359,"16.2":0.04055,"16.3":0.07027,"16.4":0.01486,"16.5":0.03003,"16.6-16.7":0.23931,"17.0":0.026,"17.1":0.04241,"17.2":0.04427,"17.3":0.08173,"17.4":1.85593,"17.5":0.13095,"17.6":0},P:{"4":0.28678,"20":0.04097,"21":0.10242,"22":0.07169,"23":0.16387,"24":0.45065,"25":1.81285,"5.0-5.4":0.02048,"6.2-6.4":0.02048,"7.2-7.4":0.29702,_:"8.2 9.2 10.1 12.0","11.1-11.2":0.01024,"13.0":0.02048,"14.0":0.01024,"15.0":0.01024,"16.0":0.02048,"17.0":0.05121,"18.0":0.02048,"19.0":0.04097},I:{"0":0.10506,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00023},K:{"0":0.60799,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01518,"9":0.0038,"10":0.0038,"11":0.01518,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.46101},R:{_:"0"},M:{"0":0.1613},Q:{"14.9":0.0062},O:{"0":0.16751},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BR.js b/node_modules/caniuse-lite/data/regions/BR.js index 41336f5aa..c7a2b02b3 100644 --- a/node_modules/caniuse-lite/data/regions/BR.js +++ b/node_modules/caniuse-lite/data/regions/BR.js @@ -1 +1 @@ -module.exports={C:{"11":0.00706,"52":0.00353,"91":0.00353,"115":0.08477,"123":0.00353,"125":0.00353,"127":0.00353,"128":0.07417,"129":0.00353,"130":0.00353,"131":0.00353,"132":0.00353,"133":0.00353,"134":0.00706,"135":0.0106,"136":0.01413,"137":0.0106,"138":0.04945,"139":0.86887,"140":0.13068,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 141 142 143 3.5 3.6"},D:{"39":0.03532,"40":0.03532,"41":0.03532,"42":0.03532,"43":0.03532,"44":0.03532,"45":0.03532,"46":0.03532,"47":0.03532,"48":0.03885,"49":0.03532,"50":0.03532,"51":0.03532,"52":0.03532,"53":0.03532,"54":0.03532,"55":0.03885,"56":0.03532,"57":0.03532,"58":0.03532,"59":0.03532,"60":0.03885,"66":0.00353,"68":0.00353,"70":0.00353,"71":0.00353,"72":0.00353,"74":0.00353,"75":0.00706,"77":0.00353,"78":0.01413,"79":0.01766,"80":0.00353,"81":0.00706,"83":0.00353,"84":0.00353,"85":0.00353,"86":0.00706,"87":0.01766,"88":0.00706,"89":0.00353,"90":0.00353,"91":0.00353,"94":0.00353,"96":0.0106,"98":0.00353,"99":0.00353,"100":0.00353,"101":0.00353,"102":0.00353,"103":0.02119,"104":0.03532,"105":0.00706,"106":0.0106,"107":0.0106,"108":0.02119,"109":0.75585,"110":0.0106,"111":0.00706,"112":0.0106,"113":0.00353,"114":0.00706,"115":0.00353,"116":0.03179,"117":0.00353,"118":0.00706,"119":0.01766,"120":0.01766,"121":0.0106,"122":0.05298,"123":0.01766,"124":0.03532,"125":1.33156,"126":0.04238,"127":0.03179,"128":0.13422,"129":0.03532,"130":0.05298,"131":0.12362,"132":0.11302,"133":0.08477,"134":0.11656,"135":0.21545,"136":2.32406,"137":18.05558,"138":0.82649,"139":0.00706,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 69 73 76 92 93 95 97 140 141"},F:{"36":0.00353,"89":0.00706,"90":0.00353,"95":0.01413,"114":0.00353,"116":0.00353,"117":0.00353,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"89":0.00353,"91":0.00353,"92":0.0106,"107":0.00353,"108":0.00353,"109":0.02119,"114":0.00353,"120":0.00353,"122":0.00353,"127":0.00353,"129":0.00353,"130":0.00706,"131":0.0106,"132":0.0106,"133":0.00706,"134":0.04592,"135":0.02472,"136":0.50508,"137":3.13995,"138":0.26843,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 113 115 116 117 118 119 121 123 124 125 126 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 16.4 17.0 26.0","5.1":0.00706,"9.1":0.00353,"13.1":0.00353,"14.1":0.00353,"15.4":0.00353,"15.5":0.00353,"15.6":0.01766,"16.1":0.00353,"16.2":0.00353,"16.3":0.00353,"16.5":0.00353,"16.6":0.02826,"17.1":0.0106,"17.2":0.00353,"17.3":0.00353,"17.4":0.00706,"17.5":0.01413,"17.6":0.04238,"18.0":0.00706,"18.1":0.0106,"18.2":0.00353,"18.3":0.02472,"18.4":0.03532,"18.5":0.31082},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0008,"5.0-5.1":0,"6.0-6.1":0.0016,"7.0-7.1":0.0016,"8.1-8.4":0,"9.0-9.2":0.0008,"9.3":0.00479,"10.0-10.2":0.0004,"10.3":0.00798,"11.0-11.2":0.05108,"11.3-11.4":0.00279,"12.0-12.1":0.0008,"12.2-12.5":0.02674,"13.0-13.1":0.0004,"13.2":0.0012,"13.3":0.0008,"13.4-13.7":0.00439,"14.0-14.4":0.01038,"14.5-14.8":0.01038,"15.0-15.1":0.00718,"15.2-15.3":0.00718,"15.4":0.00878,"15.5":0.00958,"15.6-15.8":0.12371,"16.0":0.01636,"16.1":0.03352,"16.2":0.01716,"16.3":0.03153,"16.4":0.00718,"16.5":0.01277,"16.6-16.7":0.15524,"17.0":0.00838,"17.1":0.01477,"17.2":0.01157,"17.3":0.01636,"17.4":0.02913,"17.5":0.06106,"17.6-17.7":0.15963,"18.0":0.03951,"18.1":0.08899,"18.2":0.04709,"18.3":0.20233,"18.4":0.2147,"18.5":2.51697,"26.0":0},P:{"4":0.01029,"21":0.01029,"22":0.01029,"23":0.01029,"24":0.01029,"25":0.01029,"26":0.03088,"27":0.03088,"28":0.79257,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04117},I:{"0":0.48428,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00039},K:{"0":0.17464,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02119,"9":0.00848,"10":0.00848,"11":0.04662,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.66542},R:{_:"0"},M:{"0":0.07762},Q:{_:"14.9"},O:{"0":0.02587},H:{"0":0}}; +module.exports={C:{"3":0.0051,"11":0.0051,"52":0.01019,"59":0.02039,"78":0.01019,"81":0.0051,"88":0.01019,"89":0.0051,"90":0.0051,"91":0.01019,"102":0.01019,"103":0.0051,"105":0.0051,"108":0.0051,"109":0.0051,"110":0.0051,"111":0.0051,"112":0.0051,"113":0.0051,"114":0.0051,"115":0.25995,"116":0.0051,"117":0.01019,"118":0.0051,"119":0.0051,"120":0.0051,"121":0.01529,"122":0.01019,"123":0.02549,"124":0.03568,"125":0.76965,"126":0.6779,"127":0.0051,_:"2 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 92 93 94 95 96 97 98 99 100 101 104 106 107 128 129 3.5 3.6"},D:{"38":0.0051,"47":0.0051,"49":0.0051,"51":0.0051,"55":0.01019,"63":0.0051,"65":0.0051,"66":0.09175,"70":0.0051,"71":0.01019,"72":0.0051,"74":0.0051,"75":0.01529,"77":0.0051,"78":0.0051,"79":0.03568,"80":0.0051,"81":0.01019,"83":0.0051,"84":0.0051,"85":0.01019,"86":0.01019,"87":0.03568,"88":0.0051,"89":0.0051,"90":0.0051,"91":0.49951,"92":0.02039,"93":0.18859,"94":0.01019,"95":0.0051,"96":0.0051,"97":0.0051,"98":0.0051,"99":0.01019,"100":0.01019,"101":0.0051,"102":0.01529,"103":0.05607,"104":0.01529,"105":0.02549,"106":0.02039,"107":0.03058,"108":0.03058,"109":4.81667,"110":0.02039,"111":0.02549,"112":0.03058,"113":0.01529,"114":0.06626,"115":0.06116,"116":0.09175,"117":0.01529,"118":0.03058,"119":0.07136,"120":0.13252,"121":0.10194,"122":0.29563,"123":0.73907,"124":20.65814,"125":8.68529,"126":0.02039,"127":0.0051,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 52 53 54 56 57 58 59 60 61 62 64 67 68 69 73 76 128"},F:{"36":0.0051,"95":0.04078,"106":0.0051,"107":1.0245,"108":0.02039,"109":3.0633,"110":0.07646,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.03568,"16":0.0051,"17":0.01019,"92":0.02039,"108":0.0051,"109":0.05097,"110":0.0051,"111":0.0051,"114":0.0051,"117":0.0051,"118":0.0051,"119":0.0051,"120":0.01529,"121":0.01529,"122":0.03568,"123":0.15291,"124":3.29776,"125":1.93686,_:"12 13 14 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 112 113 115 116"},E:{"14":0.0051,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 17.6","5.1":0.03568,"11.1":0.02039,"13.1":0.01019,"14.1":0.02039,"15.1":0.02039,"15.4":0.0051,"15.5":0.0051,"15.6":0.04587,"16.0":0.0051,"16.1":0.01019,"16.2":0.0051,"16.3":0.01529,"16.4":0.0051,"16.5":0.01019,"16.6":0.05607,"17.0":0.01019,"17.1":0.02039,"17.2":0.02039,"17.3":0.02549,"17.4":0.3364,"17.5":0.07646},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00143,"5.0-5.1":0.00143,"6.0-6.1":0.00356,"7.0-7.1":0.00499,"8.1-8.4":0.00143,"9.0-9.2":0.00356,"9.3":0.0164,"10.0-10.2":0.00285,"10.3":0.02566,"11.0-11.2":0.03778,"11.3-11.4":0.00713,"12.0-12.1":0.00428,"12.2-12.5":0.10337,"13.0-13.1":0.00214,"13.2":0.00998,"13.3":0.00499,"13.4-13.7":0.02281,"14.0-14.4":0.03921,"14.5-14.8":0.0606,"15.0-15.1":0.02923,"15.2-15.3":0.03208,"15.4":0.03636,"15.5":0.04563,"15.6-15.8":0.41063,"16.0":0.09339,"16.1":0.19248,"16.2":0.09339,"16.3":0.16183,"16.4":0.03422,"16.5":0.06915,"16.6-16.7":0.55107,"17.0":0.05988,"17.1":0.09767,"17.2":0.10194,"17.3":0.1882,"17.4":4.27381,"17.5":0.30156,"17.6":0},P:{"4":0.06131,"20":0.01022,"21":0.03066,"22":0.04087,"23":0.06131,"24":0.12262,"25":1.6656,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.01022,"7.2-7.4":0.12262,"11.1-11.2":0.01022,"13.0":0.01022,"17.0":0.03066,"19.0":0.01022},I:{"0":0.0293,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.3285,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01098,"9":0.00549,"11":0.34032,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.28393},R:{_:"0"},M:{"0":0.11767},Q:{_:"14.9"},O:{"0":0.04903},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BS.js b/node_modules/caniuse-lite/data/regions/BS.js index aef4b5fff..5ec8bc56a 100644 --- a/node_modules/caniuse-lite/data/regions/BS.js +++ b/node_modules/caniuse-lite/data/regions/BS.js @@ -1 +1 @@ -module.exports={C:{"48":0.00266,"115":0.05062,"128":0.00266,"137":0.00266,"138":0.01332,"139":0.1332,"140":0.01865,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.00266,"40":0.00266,"41":0.00266,"42":0.00266,"43":0.00266,"44":0.00266,"45":0.00266,"47":0.00266,"48":0.00266,"49":0.00266,"50":0.00266,"51":0.00266,"52":0.00266,"53":0.00266,"54":0.00266,"55":0.00266,"56":0.00266,"57":0.00266,"58":0.00266,"59":0.00266,"60":0.00266,"71":0.00266,"75":0.00266,"76":0.00266,"90":0.00266,"93":0.00533,"98":0.01066,"99":0.00266,"100":0.00266,"103":0.02398,"109":0.11988,"114":0.00266,"116":0.02398,"122":0.00533,"123":0.00266,"124":0.00799,"125":0.47153,"126":0.00799,"128":0.01865,"129":0.00799,"130":0.00266,"131":0.00799,"132":0.01066,"133":0.00799,"134":0.01598,"135":0.0373,"136":0.4369,"137":1.67033,"138":0.07193,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 46 61 62 63 64 65 66 67 68 69 70 72 73 74 77 78 79 80 81 83 84 85 86 87 88 89 91 92 94 95 96 97 101 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 127 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"107":0.00266,"109":0.01332,"126":0.00533,"131":0.00266,"132":0.00266,"133":0.00799,"134":0.00533,"135":0.01332,"136":0.1998,"137":1.02298,"138":0.05062,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130"},E:{"14":0.00266,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00266,"13.1":0.00533,"14.1":0.01598,"15.1":0.01865,"15.2-15.3":0.00799,"15.4":0.06926,"15.5":0.05861,"15.6":0.54612,"16.0":0.00799,"16.1":0.09324,"16.2":0.05594,"16.3":0.17582,"16.4":0.12254,"16.5":0.1039,"16.6":1.26274,"17.0":0.02398,"17.1":1.28671,"17.2":0.05594,"17.3":0.09324,"17.4":0.1705,"17.5":0.32501,"17.6":0.96703,"18.0":0.04262,"18.1":0.29837,"18.2":0.10656,"18.3":0.69797,"18.4":0.71395,"18.5":12.32633,"26.0":0.00533},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01376,"5.0-5.1":0,"6.0-6.1":0.02752,"7.0-7.1":0.02752,"8.1-8.4":0,"9.0-9.2":0.01376,"9.3":0.08257,"10.0-10.2":0.00688,"10.3":0.13761,"11.0-11.2":0.8807,"11.3-11.4":0.04816,"12.0-12.1":0.01376,"12.2-12.5":0.46099,"13.0-13.1":0.00688,"13.2":0.02064,"13.3":0.01376,"13.4-13.7":0.07568,"14.0-14.4":0.17889,"14.5-14.8":0.17889,"15.0-15.1":0.12385,"15.2-15.3":0.12385,"15.4":0.15137,"15.5":0.16513,"15.6-15.8":2.13293,"16.0":0.2821,"16.1":0.57796,"16.2":0.29586,"16.3":0.54355,"16.4":0.12385,"16.5":0.22017,"16.6-16.7":2.67649,"17.0":0.14449,"17.1":0.25458,"17.2":0.19953,"17.3":0.2821,"17.4":0.50227,"17.5":1.05271,"17.6-17.7":2.75217,"18.0":0.68116,"18.1":1.53434,"18.2":0.81189,"18.3":3.48838,"18.4":3.70167,"18.5":43.3949,"26.0":0},P:{"4":0.01043,"24":0.01043,"25":0.01043,"26":0.02086,"27":0.02086,"28":0.58413,_:"20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01043},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.01467,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":4.2476},R:{_:"0"},M:{"0":0.01467},Q:{_:"14.9"},O:{"0":0.00734},H:{"0":0}}; +module.exports={C:{"48":0.01933,"78":0.00276,"95":0.02486,"115":0.03591,"123":0.00552,"124":0.01657,"125":0.16572,"126":0.11877,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"43":0.00276,"44":0.00276,"45":0.00276,"46":0.00276,"49":0.00276,"51":0.00552,"70":0.00276,"71":0.00276,"75":0.00276,"76":0.0221,"87":0.00276,"90":0.01657,"91":0.00552,"93":0.00829,"94":0.00829,"98":0.00276,"99":0.00276,"103":0.06076,"104":0.00276,"106":0.00276,"107":0.00276,"108":0.00276,"109":0.24858,"110":0.00276,"111":0.00276,"112":0.00276,"114":0.00829,"115":0.00276,"116":0.09115,"117":0.00276,"118":0.00829,"119":0.01381,"120":0.01657,"121":0.01381,"122":0.05524,"123":0.2541,"124":2.94429,"125":1.06337,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 72 73 74 77 78 79 80 81 83 84 85 86 88 89 92 95 96 97 100 101 102 105 113 126 127 128"},F:{"107":0.02762,"108":0.00552,"109":0.15743,"110":0.00276,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00276,"103":0.00276,"107":0.00276,"109":0.01657,"111":0.00276,"112":0.00276,"115":0.01381,"119":0.00276,"120":0.00276,"121":0.00829,"122":0.00829,"123":0.06353,"124":1.26223,"125":0.64907,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 108 110 113 114 116 117 118"},E:{"9":0.00829,"13":0.00276,"14":0.01105,_:"0 4 5 6 7 8 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00552,"13.1":0.06353,"14.1":0.07181,"15.1":0.05248,"15.2-15.3":0.04419,"15.4":0.23201,"15.5":0.21267,"15.6":1.29262,"16.0":0.01933,"16.1":0.22096,"16.2":0.22925,"16.3":0.5524,"16.4":0.11048,"16.5":0.27068,"16.6":2.25103,"17.0":0.06629,"17.1":0.2983,"17.2":0.27896,"17.3":0.41706,"17.4":11.69983,"17.5":1.09928},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01287,"5.0-5.1":0.01287,"6.0-6.1":0.03218,"7.0-7.1":0.04505,"8.1-8.4":0.01287,"9.0-9.2":0.03218,"9.3":0.14801,"10.0-10.2":0.02574,"10.3":0.23167,"11.0-11.2":0.34107,"11.3-11.4":0.06435,"12.0-12.1":0.03861,"12.2-12.5":0.93312,"13.0-13.1":0.01931,"13.2":0.09009,"13.3":0.04505,"13.4-13.7":0.20593,"14.0-14.4":0.35394,"14.5-14.8":0.547,"15.0-15.1":0.26385,"15.2-15.3":0.28959,"15.4":0.3282,"15.5":0.41186,"15.6-15.8":3.70674,"16.0":0.84303,"16.1":1.73753,"16.2":0.84303,"16.3":1.46081,"16.4":0.30889,"16.5":0.62422,"16.6-16.7":4.97449,"17.0":0.54057,"17.1":0.88164,"17.2":0.92025,"17.3":1.69892,"17.4":38.57966,"17.5":2.72213,"17.6":0},P:{"21":0.02113,"22":0.01057,"23":0.02113,"24":0.05284,"25":0.91937,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02113,"11.1-11.2":0.01057},I:{"0":0.02884,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.02895,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00829,"10":0.00276,"11":0.01381,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":6.97916},R:{_:"0"},M:{"0":0.0579},Q:{_:"14.9"},O:{"0":0.00724},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BT.js b/node_modules/caniuse-lite/data/regions/BT.js index 442ab35ec..343f0564a 100644 --- a/node_modules/caniuse-lite/data/regions/BT.js +++ b/node_modules/caniuse-lite/data/regions/BT.js @@ -1 +1 @@ -module.exports={C:{"72":0.0042,"115":0.1009,"125":0.0042,"128":0.08408,"131":0.03363,"137":0.02102,"138":0.01682,"139":0.4162,"140":0.09669,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 133 134 135 136 141 142 143 3.5 3.6"},D:{"18":0.0042,"40":0.01261,"41":0.0042,"43":0.01261,"44":0.00841,"45":0.00841,"46":0.00841,"47":0.02102,"48":0.0042,"49":0.01682,"50":0.00841,"51":0.00841,"52":0.00841,"53":0.01261,"54":0.01261,"55":0.0042,"56":0.02102,"57":0.02522,"58":0.0042,"59":0.01261,"60":0.01261,"69":0.0042,"72":0.00841,"73":0.01261,"74":0.0042,"77":0.01261,"83":0.01682,"86":0.01682,"87":0.0042,"89":0.02943,"93":0.03363,"94":0.0042,"97":0.02943,"98":0.69786,"99":0.22281,"100":0.01682,"103":0.04624,"109":0.59276,"113":0.0042,"114":0.00841,"116":0.11351,"119":0.0042,"120":0.01682,"121":0.07988,"122":0.02943,"124":0.09249,"125":3.39263,"126":0.06306,"127":0.01682,"128":0.28167,"129":0.05045,"130":0.0042,"131":0.15975,"132":0.01682,"133":0.07988,"134":0.15555,"135":0.66003,"136":1.95066,"137":18.94743,"138":0.66423,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 61 62 63 64 65 66 67 68 70 71 75 76 78 79 80 81 84 85 88 90 91 92 95 96 101 102 104 105 106 107 108 110 111 112 115 117 118 123 139 140 141"},F:{"77":0.03784,"83":0.0042,"84":0.03363,"89":0.06726,"95":0.00841,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.01261,"18":0.01261,"84":0.00841,"92":0.01261,"94":0.00841,"98":0.09669,"99":0.04624,"104":0.0042,"105":0.0042,"109":0.02943,"111":0.0042,"112":0.00841,"114":0.00841,"116":0.00841,"119":0.01261,"122":0.02102,"124":0.02102,"125":0.0042,"128":0.01261,"129":0.0042,"130":0.02102,"131":0.01261,"133":0.01682,"134":0.04624,"135":0.03784,"136":0.6264,"137":2.77884,"138":0.09669,_:"12 13 14 15 17 79 80 81 83 85 86 87 88 89 90 91 93 95 96 97 100 101 102 103 106 107 108 110 113 115 117 118 120 121 123 126 127 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 16.0 16.2 17.2 17.3 18.0 26.0","13.1":0.02522,"14.1":0.02522,"15.2-15.3":0.03363,"15.4":0.0042,"15.5":0.03363,"15.6":0.19338,"16.1":0.03784,"16.3":0.0042,"16.4":0.01261,"16.5":0.01261,"16.6":0.03363,"17.0":0.0042,"17.1":0.0042,"17.4":0.05465,"17.5":0.06306,"17.6":0.15975,"18.1":0.15134,"18.2":0.1051,"18.3":0.38256,"18.4":0.16396,"18.5":2.50138},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00202,"5.0-5.1":0,"6.0-6.1":0.00405,"7.0-7.1":0.00405,"8.1-8.4":0,"9.0-9.2":0.00202,"9.3":0.01214,"10.0-10.2":0.00101,"10.3":0.02024,"11.0-11.2":0.12953,"11.3-11.4":0.00708,"12.0-12.1":0.00202,"12.2-12.5":0.0678,"13.0-13.1":0.00101,"13.2":0.00304,"13.3":0.00202,"13.4-13.7":0.01113,"14.0-14.4":0.02631,"14.5-14.8":0.02631,"15.0-15.1":0.01822,"15.2-15.3":0.01822,"15.4":0.02226,"15.5":0.02429,"15.6-15.8":0.31371,"16.0":0.04149,"16.1":0.08501,"16.2":0.04352,"16.3":0.07995,"16.4":0.01822,"16.5":0.03238,"16.6-16.7":0.39366,"17.0":0.02125,"17.1":0.03744,"17.2":0.02935,"17.3":0.04149,"17.4":0.07387,"17.5":0.15483,"17.6-17.7":0.40479,"18.0":0.10019,"18.1":0.22567,"18.2":0.11941,"18.3":0.51307,"18.4":0.54445,"18.5":6.38257,"26.0":0},P:{"4":0.06031,"21":0.01005,"22":0.03016,"23":0.04021,"24":0.01005,"25":0.11057,"26":0.06031,"27":0.0201,"28":0.8544,_:"20 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01005,"7.2-7.4":0.06031,"11.1-11.2":0.01005,"17.0":0.0201,"19.0":0.14073},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.96214,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04624,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.23404},R:{_:"0"},M:{"0":0.08114},Q:{"14.9":0.0058},O:{"0":0.5738},H:{"0":0}}; +module.exports={C:{"2":0.00585,"3":0.01171,"4":0.00585,"5":0.00293,"6":0.00585,"7":0.00293,"9":0.00293,"11":0.00585,"12":0.00585,"13":0.00293,"15":0.00293,"16":0.00585,"17":0.00585,"19":0.00293,"20":0.00293,"23":0.00293,"24":0.00293,"25":0.00293,"26":0.00293,"27":0.00293,"28":0.00293,"30":0.00293,"31":0.00878,"32":0.00585,"34":0.00293,"35":0.00878,"36":0.00293,"37":0.00585,"38":0.00878,"39":0.00878,"40":0.02049,"42":0.00878,"48":0.01171,"77":0.00585,"99":0.00293,"107":0.00293,"115":0.13464,"121":0.01171,"124":0.00878,"125":0.42734,"126":0.44783,"127":0.00293,_:"8 10 14 18 21 22 29 33 41 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 108 109 110 111 112 113 114 116 117 118 119 120 122 123 128 129","3.5":0.00878,"3.6":0.02927},D:{"5":0.00293,"14":0.00293,"18":0.00293,"19":0.00293,"21":0.01171,"22":0.00293,"25":0.00585,"27":0.00293,"30":0.00293,"31":0.00878,"32":0.00293,"33":0.01171,"34":0.00585,"35":0.00293,"36":0.00585,"37":0.00878,"38":0.01171,"39":0.01756,"40":0.01756,"41":0.01171,"42":0.01756,"43":0.03512,"44":0.05561,"45":0.02634,"46":0.07318,"47":0.03512,"51":0.12879,"57":0.00293,"60":0.00585,"63":0.00293,"66":0.01756,"68":0.00293,"70":0.03512,"72":0.00293,"73":0.00293,"79":0.00293,"83":0.00878,"87":0.13464,"91":0.00878,"93":0.00293,"94":0.00293,"95":0.00293,"96":0.01171,"97":0.00585,"98":0.01756,"99":0.00585,"102":0.00293,"103":0.03512,"104":0.00878,"105":0.00293,"106":0.01464,"108":0.00293,"109":1.41667,"110":0.01464,"111":0.00878,"112":0.00585,"113":0.00585,"114":0.00293,"115":0.04098,"116":0.04391,"117":0.01171,"118":0.00878,"119":0.18733,"120":0.13757,"121":0.05854,"122":0.10537,"123":0.35417,"124":11.00552,"125":5.10469,"126":0.00878,"127":0.00293,_:"4 6 7 8 9 10 11 12 13 15 16 17 20 23 24 26 28 29 48 49 50 52 53 54 55 56 58 59 61 62 64 65 67 69 71 74 75 76 77 78 80 81 84 85 86 88 89 90 92 100 101 107 128"},F:{"12":0.00293,"26":0.00293,"29":0.00293,"30":0.00293,"31":0.01171,"32":0.00585,"104":0.00585,"107":0.01756,"109":0.4771,"110":0.09074,_:"9 11 15 16 17 18 19 20 21 22 23 24 25 27 28 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.6","11.5":0.00293,"12.1":0.01171},B:{"12":0.01756,"13":0.02342,"14":0.00293,"15":0.00878,"16":0.00293,"17":0.00293,"18":0.01464,"84":0.00293,"92":0.01464,"93":0.00293,"94":0.00293,"96":0.00293,"98":0.00585,"100":0.01464,"101":0.00585,"102":0.00585,"103":0.07025,"105":0.00585,"106":0.00293,"107":0.03805,"108":0.00585,"109":0.01171,"110":0.00293,"111":0.04391,"112":0.02927,"113":0.06732,"114":0.00293,"115":0.05561,"116":0.04976,"117":0.03805,"118":0.02634,"119":0.03805,"120":0.02049,"121":0.01464,"122":0.08488,"123":0.13757,"124":2.13378,"125":1.51326,_:"79 80 81 83 85 86 87 88 89 90 91 95 97 99 104"},E:{"4":0.00585,"5":0.00585,"7":0.00293,"8":0.01464,"9":0.26343,"13":0.00585,"14":0.00293,_:"0 6 10 11 12 15 3.2 9.1 10.1 11.1 12.1 15.4 17.6","3.1":0.00293,"5.1":0.00878,"6.1":0.00293,"7.1":0.00293,"13.1":0.01171,"14.1":0.04683,"15.1":0.01171,"15.2-15.3":0.03805,"15.5":0.00585,"15.6":0.02634,"16.0":0.00293,"16.1":0.02927,"16.2":0.00293,"16.3":0.04098,"16.4":0.00293,"16.5":0.01464,"16.6":0.28099,"17.0":0.01171,"17.1":0.02634,"17.2":0.02049,"17.3":0.09659,"17.4":0.39515,"17.5":0.05269},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00122,"5.0-5.1":0.00122,"6.0-6.1":0.00306,"7.0-7.1":0.00428,"8.1-8.4":0.00122,"9.0-9.2":0.00306,"9.3":0.01406,"10.0-10.2":0.00244,"10.3":0.022,"11.0-11.2":0.03239,"11.3-11.4":0.00611,"12.0-12.1":0.00367,"12.2-12.5":0.08862,"13.0-13.1":0.00183,"13.2":0.00856,"13.3":0.00428,"13.4-13.7":0.01956,"14.0-14.4":0.03362,"14.5-14.8":0.05195,"15.0-15.1":0.02506,"15.2-15.3":0.0275,"15.4":0.03117,"15.5":0.03912,"15.6-15.8":0.35205,"16.0":0.08007,"16.1":0.16502,"16.2":0.08007,"16.3":0.13874,"16.4":0.02934,"16.5":0.05929,"16.6-16.7":0.47245,"17.0":0.05134,"17.1":0.08373,"17.2":0.0874,"17.3":0.16136,"17.4":3.66411,"17.5":0.25853,"17.6":0},P:{"4":0.1538,"20":0.01025,"21":0.07177,"22":0.04101,"23":0.12304,"24":0.18456,"25":0.71773,_:"5.0-5.4 8.2 9.2 11.1-11.2 12.0 14.0 15.0","6.2-6.4":0.09228,"7.2-7.4":0.29735,"10.1":0.01025,"13.0":0.01025,"16.0":0.02051,"17.0":0.01025,"18.0":0.01025,"19.0":0.01025},I:{"0":0.85966,"3":0,"4":0.00009,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00017,"4.2-4.3":0.00052,"4.4":0,"4.4.3-4.4.4":0.0019},K:{"0":1.65532,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00878,"7":0.02634,"8":0.25758,"9":0.04683,"10":0.07903,"11":0.1522,_:"5.5"},S:{"2.5":0.03537,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.02745},R:{_:"0"},M:{"0":0.03537},Q:{_:"14.9"},O:{"0":0.91255},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/BW.js b/node_modules/caniuse-lite/data/regions/BW.js index 738a5c920..87c38544c 100644 --- a/node_modules/caniuse-lite/data/regions/BW.js +++ b/node_modules/caniuse-lite/data/regions/BW.js @@ -1 +1 @@ -module.exports={C:{"34":0.00711,"47":0.00711,"49":0.00711,"52":0.00356,"102":0.00711,"104":0.00356,"115":0.08537,"123":0.00356,"125":0.03201,"127":0.01067,"128":0.03913,"131":0.03913,"133":0.00356,"134":0.00711,"135":0.03557,"136":0.01779,"137":0.0249,"138":0.29879,"139":0.81811,"140":0.13517,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 129 130 132 141 142 143 3.5 3.6"},D:{"11":0.00356,"30":0.00356,"33":0.00356,"39":0.00711,"40":0.00711,"41":0.00711,"42":0.00711,"43":0.01423,"44":0.00711,"45":0.00711,"46":0.00711,"47":0.00711,"48":0.00711,"49":0.01423,"50":0.01067,"51":0.00711,"52":0.00711,"53":0.00356,"54":0.00711,"55":0.01423,"56":0.00711,"57":0.00711,"58":0.00711,"59":0.01067,"60":0.00356,"65":0.01423,"66":0.00356,"68":0.00711,"70":0.00356,"73":0.01423,"74":0.00356,"75":0.02134,"78":0.01423,"79":0.00711,"81":0.00711,"83":0.00711,"85":0.00356,"86":0.00711,"87":0.01779,"88":0.00356,"90":0.02134,"93":0.00356,"95":0.00356,"97":0.0249,"98":0.02134,"100":0.00356,"102":0.00711,"103":0.05336,"104":0.02846,"106":0.00356,"108":0.01067,"109":0.66516,"111":0.03557,"113":0.00356,"114":0.01067,"115":0.00356,"116":0.0747,"117":0.00711,"118":0.01067,"119":0.02134,"120":0.02134,"121":0.01067,"122":0.03913,"123":0.00356,"124":0.67227,"125":1.90655,"126":0.01067,"127":0.01067,"128":0.06403,"129":0.01423,"130":0.00711,"131":0.04624,"132":0.04268,"133":0.05336,"134":0.09604,"135":0.23121,"136":2.28715,"137":12.35346,"138":0.40906,"139":0.00711,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 34 35 36 37 38 61 62 63 64 67 69 71 72 76 77 80 84 89 91 92 94 96 99 101 105 107 110 112 140 141"},F:{"25":0.00356,"46":0.01067,"80":0.00356,"89":0.00356,"90":0.00356,"95":0.00711,"102":0.06758,"116":0.00356,"117":0.00356,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00356,"14":0.0249,"15":0.00356,"16":0.00711,"17":0.00356,"18":0.01423,"84":0.00356,"88":0.00356,"90":0.01423,"92":0.04268,"100":0.01423,"107":0.00711,"109":0.06758,"112":0.01423,"114":0.00356,"119":0.00356,"120":0.00356,"122":0.01779,"123":0.00356,"125":0.00356,"126":0.02134,"127":0.01423,"128":0.02846,"129":0.00356,"130":0.01423,"131":0.02134,"132":0.00356,"133":0.01779,"134":0.0249,"135":0.06403,"136":0.85012,"137":3.80599,"138":0.20631,_:"13 79 80 81 83 85 86 87 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 113 115 116 117 118 121 124"},E:{"14":0.01423,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 16.2 17.0 26.0","12.1":0.00356,"13.1":0.00711,"14.1":0.00711,"15.5":0.00711,"15.6":0.04624,"16.0":0.00711,"16.1":0.00356,"16.3":0.00356,"16.4":0.00356,"16.5":0.00711,"16.6":0.06047,"17.1":0.06047,"17.2":0.03913,"17.3":0.00356,"17.4":0.00711,"17.5":0.01779,"17.6":0.34503,"18.0":0.00356,"18.1":0.00711,"18.2":0.01779,"18.3":0.09604,"18.4":0.29167,"18.5":0.67583},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0011,"5.0-5.1":0,"6.0-6.1":0.0022,"7.0-7.1":0.0022,"8.1-8.4":0,"9.0-9.2":0.0011,"9.3":0.00659,"10.0-10.2":0.00055,"10.3":0.01098,"11.0-11.2":0.07028,"11.3-11.4":0.00384,"12.0-12.1":0.0011,"12.2-12.5":0.03678,"13.0-13.1":0.00055,"13.2":0.00165,"13.3":0.0011,"13.4-13.7":0.00604,"14.0-14.4":0.01427,"14.5-14.8":0.01427,"15.0-15.1":0.00988,"15.2-15.3":0.00988,"15.4":0.01208,"15.5":0.01318,"15.6-15.8":0.1702,"16.0":0.02251,"16.1":0.04612,"16.2":0.02361,"16.3":0.04337,"16.4":0.00988,"16.5":0.01757,"16.6-16.7":0.21357,"17.0":0.01153,"17.1":0.02031,"17.2":0.01592,"17.3":0.02251,"17.4":0.04008,"17.5":0.084,"17.6-17.7":0.21961,"18.0":0.05435,"18.1":0.12243,"18.2":0.06479,"18.3":0.27836,"18.4":0.29538,"18.5":3.46272,"26.0":0},P:{"4":0.06115,"21":0.01019,"22":0.02038,"23":0.01019,"24":0.09173,"25":0.07134,"26":0.08153,"27":0.17326,"28":1.7326,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","7.2-7.4":0.15288,"17.0":0.01019,"18.0":0.01019,"19.0":0.01019},I:{"0":0.02573,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.06192,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00889,"11":0.00889,_:"6 7 8 10 5.5"},S:{"2.5":0.03866,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.51679},R:{_:"0"},M:{"0":0.1031},Q:{_:"14.9"},O:{"0":0.46397},H:{"0":0.04}}; +module.exports={C:{"34":0.01999,"43":0.00333,"47":0.00333,"49":0.01332,"52":0.00666,"60":0.00333,"68":0.00333,"70":0.00333,"78":0.00999,"87":0.00333,"88":0.00333,"91":0.00333,"95":0.00999,"103":0.00333,"112":0.00333,"115":0.18321,"117":0.00333,"118":0.00333,"122":0.01666,"123":0.01332,"124":0.03331,"125":0.63289,"126":0.50964,"127":0.03997,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 44 45 46 48 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 89 90 92 93 94 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 113 114 116 119 120 121 128 129 3.5 3.6"},D:{"11":0.00666,"31":0.00333,"34":0.00666,"40":0.00333,"43":0.00333,"49":0.01666,"56":0.00333,"58":0.00333,"59":0.00333,"63":0.01332,"64":0.00333,"65":0.00333,"66":0.00666,"68":0.00333,"69":0.00333,"70":0.00666,"72":0.00666,"73":0.00333,"74":0.00666,"75":0.02332,"77":0.00333,"78":0.00666,"79":0.01666,"80":0.01332,"81":0.00666,"83":0.00999,"84":0.00666,"85":0.00333,"86":0.01999,"87":0.03331,"88":0.06329,"90":0.00333,"91":0.01666,"92":0.02332,"93":0.00999,"94":0.00999,"95":0.01332,"96":0.00333,"97":0.00333,"98":0.03997,"99":0.04663,"100":0.00999,"101":0.00666,"102":0.01999,"103":0.04997,"104":0.04997,"105":0.00333,"106":0.00999,"107":0.00666,"108":0.01332,"109":1.52893,"110":0.00999,"111":0.00333,"112":0.01332,"113":0.00999,"114":0.05996,"115":0.02332,"116":0.08994,"117":0.00666,"118":0.00999,"119":0.08994,"120":0.0966,"121":0.07328,"122":0.26648,"123":0.69951,"124":11.17884,"125":4.21038,"126":0.00666,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 38 39 41 42 44 45 46 47 48 50 51 52 53 54 55 57 60 61 62 67 71 76 89 127 128"},F:{"28":0.01999,"36":0.00333,"79":0.07328,"95":0.02665,"101":0.00333,"107":0.04663,"108":0.00999,"109":0.63622,"110":0.0433,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00999,"13":0.03331,"14":0.00999,"15":0.00666,"16":0.01332,"17":0.00666,"18":0.01999,"84":0.01332,"85":0.00333,"87":0.00333,"89":0.00333,"90":0.00999,"92":0.06329,"100":0.00999,"108":0.00333,"109":0.11992,"111":0.00333,"112":0.01332,"113":0.00333,"114":0.01666,"115":0.00666,"116":0.00666,"117":0.00666,"118":0.02998,"119":0.03664,"120":0.0433,"121":0.03331,"122":0.09993,"123":0.18987,"124":3.61414,"125":1.82872,_:"79 80 81 83 86 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110"},E:{"13":0.08661,"14":0.00999,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 17.6","12.1":0.00333,"13.1":0.01999,"14.1":0.01332,"15.4":0.00666,"15.5":0.00666,"15.6":0.06662,"16.0":0.00333,"16.1":0.02665,"16.2":0.00333,"16.3":0.01332,"16.4":0.00333,"16.5":0.00999,"16.6":0.03331,"17.0":0.03331,"17.1":0.01999,"17.2":0.03331,"17.3":0.07661,"17.4":0.28314,"17.5":0.06329},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00091,"5.0-5.1":0.00091,"6.0-6.1":0.00227,"7.0-7.1":0.00317,"8.1-8.4":0.00091,"9.0-9.2":0.00227,"9.3":0.01043,"10.0-10.2":0.00181,"10.3":0.01633,"11.0-11.2":0.02404,"11.3-11.4":0.00453,"12.0-12.1":0.00272,"12.2-12.5":0.06576,"13.0-13.1":0.00136,"13.2":0.00635,"13.3":0.00317,"13.4-13.7":0.01451,"14.0-14.4":0.02494,"14.5-14.8":0.03855,"15.0-15.1":0.01859,"15.2-15.3":0.02041,"15.4":0.02313,"15.5":0.02902,"15.6-15.8":0.26121,"16.0":0.05941,"16.1":0.12244,"16.2":0.05941,"16.3":0.10294,"16.4":0.02177,"16.5":0.04399,"16.6-16.7":0.35055,"17.0":0.03809,"17.1":0.06213,"17.2":0.06485,"17.3":0.11972,"17.4":2.71868,"17.5":0.19183,"17.6":0},P:{"4":0.34199,"20":0.01036,"21":0.04145,"22":0.09327,"23":0.33162,"24":0.3109,"25":1.87574,_:"5.0-5.4 8.2 9.2 10.1 15.0","6.2-6.4":0.01036,"7.2-7.4":0.24872,"11.1-11.2":0.01036,"12.0":0.05182,"13.0":0.03109,"14.0":0.09327,"16.0":0.01036,"17.0":0.02073,"18.0":0.01036,"19.0":0.06218},I:{"0":0.05979,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":1.2438,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00433,"11":0.03897,_:"6 7 8 9 5.5"},S:{"2.5":0.1934,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.57302},R:{_:"0"},M:{"0":0.11337},Q:{"14.9":0.00667},O:{"0":0.57353},H:{"0":0.09}}; diff --git a/node_modules/caniuse-lite/data/regions/BY.js b/node_modules/caniuse-lite/data/regions/BY.js index 36b4d8f22..7d7e38b9e 100644 --- a/node_modules/caniuse-lite/data/regions/BY.js +++ b/node_modules/caniuse-lite/data/regions/BY.js @@ -1 +1 @@ -module.exports={C:{"50":0.00499,"51":0.00499,"52":0.1247,"53":0.00499,"55":0.00499,"56":0.00499,"78":0.02993,"84":0.00499,"96":0.00998,"102":0.00499,"105":0.02993,"109":0.06484,"111":0.00499,"114":0.05487,"115":0.7083,"125":0.02494,"128":0.1646,"131":0.01995,"133":0.05986,"134":0.00499,"135":0.01995,"136":0.05487,"137":0.02993,"138":0.07482,"139":1.38666,"140":0.22945,"141":0.00499,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 54 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 103 104 106 107 108 110 112 113 116 117 118 119 120 121 122 123 124 126 127 129 130 132 142 143 3.5 3.6"},D:{"34":0.00998,"39":0.0399,"40":0.0399,"41":0.0399,"42":0.0399,"43":0.0399,"44":0.0399,"45":0.04489,"46":0.0399,"47":0.0399,"48":0.03492,"49":0.05487,"50":0.0399,"51":0.04489,"52":0.0399,"53":0.04489,"54":0.0399,"55":0.04988,"56":0.0399,"57":0.04489,"58":0.10974,"59":0.04489,"60":0.0399,"69":0.00499,"70":0.00499,"72":0.00499,"75":0.00499,"77":0.00998,"79":0.04988,"87":0.00998,"88":0.00499,"89":0.02993,"90":0.00998,"95":0.00998,"96":0.00499,"98":0.00499,"99":0.00499,"102":0.00499,"103":0.01995,"104":0.04988,"105":0.00499,"106":0.09976,"107":0.00998,"108":0.07981,"109":2.99779,"110":0.00499,"111":0.0399,"112":0.01995,"113":0.00499,"114":0.00998,"115":0.00499,"116":0.02494,"118":0.20451,"119":0.07482,"120":0.02993,"121":0.01995,"122":0.03492,"123":0.01995,"124":0.02993,"125":0.85295,"126":0.0399,"127":0.02494,"128":0.04489,"129":0.03492,"130":0.04988,"131":0.06484,"132":0.0399,"133":0.04988,"134":0.10974,"135":0.15962,"136":1.96028,"137":15.40294,"138":0.70331,"139":0.00998,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 61 62 63 64 65 66 67 68 71 73 74 76 78 80 81 83 84 85 86 91 92 93 94 97 100 101 117 140 141"},F:{"36":0.01496,"73":0.01995,"77":0.00499,"79":0.40902,"82":0.00499,"83":0.00499,"85":0.03492,"86":0.04489,"87":0.00998,"89":0.04988,"90":0.03492,"94":0.00998,"95":0.76316,"109":0.00499,"110":0.00998,"112":0.00499,"113":0.00499,"114":0.00499,"115":0.00499,"116":0.00998,"117":0.03492,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 78 80 81 84 88 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 111 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00998},B:{"92":0.00998,"109":0.00998,"122":0.00499,"123":0.00499,"130":0.00499,"131":0.00499,"133":0.00499,"134":0.00998,"135":0.01496,"136":0.3741,"137":2.37928,"138":0.19952,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 124 125 126 127 128 129 132"},E:{"14":0.00499,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3","5.1":0.00499,"13.1":0.02494,"14.1":0.00998,"15.1":0.00998,"15.4":0.00499,"15.5":0.00998,"15.6":0.1247,"16.0":0.00499,"16.1":0.01496,"16.2":0.02494,"16.3":0.0399,"16.4":0.01496,"16.5":0.01496,"16.6":0.26935,"17.0":0.00499,"17.1":0.22446,"17.2":0.03492,"17.3":0.01995,"17.4":0.04489,"17.5":0.06484,"17.6":0.14465,"18.0":0.07482,"18.1":0.05986,"18.2":0.02993,"18.3":0.1646,"18.4":0.16959,"18.5":2.29947,"26.0":0.00499},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00306,"5.0-5.1":0,"6.0-6.1":0.00613,"7.0-7.1":0.00613,"8.1-8.4":0,"9.0-9.2":0.00306,"9.3":0.01838,"10.0-10.2":0.00153,"10.3":0.03063,"11.0-11.2":0.19601,"11.3-11.4":0.01072,"12.0-12.1":0.00306,"12.2-12.5":0.1026,"13.0-13.1":0.00153,"13.2":0.00459,"13.3":0.00306,"13.4-13.7":0.01684,"14.0-14.4":0.03982,"14.5-14.8":0.03982,"15.0-15.1":0.02756,"15.2-15.3":0.02756,"15.4":0.03369,"15.5":0.03675,"15.6-15.8":0.47472,"16.0":0.06279,"16.1":0.12863,"16.2":0.06585,"16.3":0.12098,"16.4":0.02756,"16.5":0.049,"16.6-16.7":0.5957,"17.0":0.03216,"17.1":0.05666,"17.2":0.04441,"17.3":0.06279,"17.4":0.11179,"17.5":0.2343,"17.6-17.7":0.61254,"18.0":0.1516,"18.1":0.34149,"18.2":0.1807,"18.3":0.7764,"18.4":0.82387,"18.5":9.6583,"26.0":0},P:{"4":0.01068,"25":0.05341,"26":0.02136,"27":0.06409,"28":1.04677,_:"20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","9.2":0.02136},I:{"0":0.06503,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":1.06233,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01151,"11":0.06331,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.30521},R:{_:"0"},M:{"0":0.14031},Q:{"14.9":0.01002},O:{"0":0.08018},H:{"0":0}}; +module.exports={C:{"43":0.00447,"52":0.33041,"57":0.00893,"60":0.00447,"66":0.00447,"72":0.00447,"77":0.00447,"78":0.00447,"88":0.00447,"96":0.03126,"102":0.00447,"105":0.02679,"106":0.00447,"107":0.00447,"109":0.00447,"110":0.00893,"113":0.00447,"115":0.85282,"116":0.00447,"117":0.00447,"118":0.00447,"119":0.00447,"120":0.00447,"121":0.00447,"122":0.00893,"123":0.04912,"124":0.12502,"125":0.79031,"126":0.67422,"127":0.00447,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 58 59 61 62 63 64 65 67 68 69 70 71 73 74 75 76 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 97 98 99 100 101 103 104 108 111 112 114 128 129 3.5 3.6"},D:{"26":0.00447,"38":0.00447,"45":0.00447,"49":0.03126,"55":0.00447,"58":0.05358,"64":0.00447,"69":0.00447,"70":0.00447,"74":0.00447,"76":0.00447,"77":0.0134,"78":0.00447,"79":0.09823,"80":0.00893,"83":0.00447,"84":0.00447,"85":0.00447,"86":0.00447,"87":0.0134,"88":0.00447,"89":0.0134,"90":0.00893,"91":0.00893,"92":0.00447,"93":0.09823,"94":0.02679,"95":0.00893,"97":0.00893,"98":0.03126,"99":0.0134,"100":0.01786,"101":0.0134,"102":0.04465,"103":0.0134,"104":0.0134,"105":0.0134,"106":0.16074,"107":0.02233,"108":0.04019,"109":3.12104,"110":0.01786,"111":0.03126,"112":0.03126,"113":0.00447,"114":0.02679,"115":0.0134,"116":0.04465,"117":0.00447,"118":0.01786,"119":0.07591,"120":0.12056,"121":0.14735,"122":0.14735,"123":0.50901,"124":12.29215,"125":4.6436,"126":0.00447,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 46 47 48 50 51 52 53 54 56 57 59 60 61 62 63 65 66 67 68 71 72 73 75 81 96 127 128"},F:{"36":0.02233,"56":0.01786,"57":0.00447,"72":0.00447,"73":0.00447,"74":0.00447,"77":0.00447,"79":0.06698,"80":0.0134,"81":0.00447,"82":0.00893,"83":0.04019,"84":0.0134,"85":0.09377,"86":0.02679,"87":0.00447,"90":0.00447,"91":0.00447,"93":0.00447,"94":0.00447,"95":0.86175,"96":0.00447,"102":0.00447,"105":0.00447,"106":0.0134,"107":0.39739,"108":0.09377,"109":3.99618,"110":0.35274,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 58 60 62 63 64 65 66 67 68 69 70 71 75 76 78 88 89 92 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00893},B:{"17":0.05805,"18":0.00447,"92":0.0134,"103":0.0134,"106":0.00893,"107":0.00447,"108":0.00447,"109":0.02233,"110":0.00447,"117":0.00447,"119":0.00447,"120":0.00893,"121":0.00447,"122":0.00893,"123":0.06251,"124":1.44666,"125":0.893,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105 111 112 113 114 115 116 118"},E:{"14":0.0134,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 17.6","5.1":0.00447,"9.1":0.00447,"12.1":0.00447,"13.1":0.03572,"14.1":0.02233,"15.1":0.00447,"15.2-15.3":0.00447,"15.4":0.01786,"15.5":0.01786,"15.6":0.24558,"16.0":0.00447,"16.1":0.05358,"16.2":0.04465,"16.3":0.0893,"16.4":0.03126,"16.5":0.13395,"16.6":0.36167,"17.0":0.03572,"17.1":0.11609,"17.2":0.08037,"17.3":0.09377,"17.4":1.94674,"17.5":0.31255},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00339,"5.0-5.1":0.00339,"6.0-6.1":0.00849,"7.0-7.1":0.01188,"8.1-8.4":0.00339,"9.0-9.2":0.00849,"9.3":0.03904,"10.0-10.2":0.00679,"10.3":0.0611,"11.0-11.2":0.08996,"11.3-11.4":0.01697,"12.0-12.1":0.01018,"12.2-12.5":0.24611,"13.0-13.1":0.00509,"13.2":0.02376,"13.3":0.01188,"13.4-13.7":0.05431,"14.0-14.4":0.09335,"14.5-14.8":0.14427,"15.0-15.1":0.06959,"15.2-15.3":0.07638,"15.4":0.08656,"15.5":0.10863,"15.6-15.8":0.97767,"16.0":0.22235,"16.1":0.45828,"16.2":0.22235,"16.3":0.3853,"16.4":0.08147,"16.5":0.16464,"16.6-16.7":1.31204,"17.0":0.14258,"17.1":0.23254,"17.2":0.24272,"17.3":0.4481,"17.4":10.17554,"17.5":0.71797,"17.6":0},P:{"4":0.07243,"20":0.01035,"21":0.01035,"22":0.01035,"23":0.08278,"24":0.09313,"25":0.69329,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.09313,"11.1-11.2":0.01035,"13.0":0.0207,"19.0":0.01035},I:{"0":0.03309,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":1.21006,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03246,"11":0.0881,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":33.76759},R:{_:"0"},M:{"0":0.11626},Q:{"14.9":0.00554},O:{"0":0.08858},H:{"0":0.03}}; diff --git a/node_modules/caniuse-lite/data/regions/BZ.js b/node_modules/caniuse-lite/data/regions/BZ.js index 589a9dd98..f79fc5173 100644 --- a/node_modules/caniuse-lite/data/regions/BZ.js +++ b/node_modules/caniuse-lite/data/regions/BZ.js @@ -1 +1 @@ -module.exports={C:{"115":0.02378,"120":0.16946,"128":0.02676,"131":0.00297,"134":0.00595,"135":0.00297,"136":0.00297,"137":0.02378,"138":0.02676,"139":0.72839,"140":0.13973,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 127 129 130 132 133 141 142 143 3.5 3.6"},D:{"39":0.00892,"40":0.00892,"41":0.00892,"42":0.00595,"43":0.00892,"44":0.00892,"45":0.01189,"46":0.00892,"47":0.01189,"48":0.00595,"49":0.00892,"50":0.00595,"51":0.01487,"52":0.01189,"53":0.00892,"54":0.01189,"55":0.01189,"56":0.00892,"57":0.01189,"58":0.01189,"59":0.00892,"60":0.00892,"73":0.00297,"74":0.00595,"75":0.00297,"76":0.00892,"87":0.01189,"88":0.87109,"91":0.0446,"93":0.04162,"94":0.00297,"98":0.32406,"103":0.05054,"104":0.00595,"105":0.01784,"106":0.00892,"109":0.06243,"110":0.00595,"111":0.01189,"114":0.01189,"116":0.06838,"118":0.11,"119":0.00297,"121":0.00297,"122":0.00297,"123":0.00297,"124":0.00595,"125":3.20192,"126":0.02378,"127":0.00297,"128":0.05054,"129":0.02378,"131":0.00892,"132":0.0327,"133":0.06541,"134":0.02378,"135":0.17243,"136":1.04055,"137":7.29574,"138":0.52919,"139":0.00297,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 77 78 79 80 81 83 84 85 86 89 90 92 95 96 97 99 100 101 102 107 108 112 113 115 117 120 130 140 141"},F:{"89":0.00892,"90":0.03865,"95":0.00892,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00595,"13":0.00595,"92":0.00297,"109":0.01487,"114":0.00297,"122":0.00297,"125":0.00297,"131":0.00297,"133":0.00595,"134":0.02378,"135":0.05054,"136":0.24676,"137":1.41812,"138":0.09514,_:"14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.00297,"13.1":0.00297,"14.1":0.00892,"15.1":0.08324,"15.2-15.3":0.00892,"15.4":0.08324,"15.5":0.02081,"15.6":0.24676,"16.0":0.02676,"16.1":0.00892,"16.2":0.01487,"16.3":0.02973,"16.4":0.09514,"16.5":0.02378,"16.6":0.18135,"17.0":0.00595,"17.1":0.47568,"17.2":0.11297,"17.3":0.01189,"17.4":0.0327,"17.5":0.13676,"17.6":0.52325,"18.0":0.02081,"18.1":0.09811,"18.2":0.05054,"18.3":0.4519,"18.4":0.31811,"18.5":6.16006},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0079,"5.0-5.1":0,"6.0-6.1":0.01581,"7.0-7.1":0.01581,"8.1-8.4":0,"9.0-9.2":0.0079,"9.3":0.04743,"10.0-10.2":0.00395,"10.3":0.07904,"11.0-11.2":0.50587,"11.3-11.4":0.02766,"12.0-12.1":0.0079,"12.2-12.5":0.26479,"13.0-13.1":0.00395,"13.2":0.01186,"13.3":0.0079,"13.4-13.7":0.04347,"14.0-14.4":0.10276,"14.5-14.8":0.10276,"15.0-15.1":0.07114,"15.2-15.3":0.07114,"15.4":0.08695,"15.5":0.09485,"15.6-15.8":1.22516,"16.0":0.16204,"16.1":0.33198,"16.2":0.16994,"16.3":0.31222,"16.4":0.07114,"16.5":0.12647,"16.6-16.7":1.53738,"17.0":0.08299,"17.1":0.14623,"17.2":0.11461,"17.3":0.16204,"17.4":0.28851,"17.5":0.60468,"17.6-17.7":1.58085,"18.0":0.39126,"18.1":0.88132,"18.2":0.46635,"18.3":2.00373,"18.4":2.12624,"18.5":24.92605,"26.0":0},P:{"4":0.01057,"22":0.01057,"25":0.02115,"26":0.01057,"27":0.02115,"28":0.98336,_:"20 21 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01057},I:{"0":0.06313,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.04216,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.34502},R:{_:"0"},M:{"0":0.81502},Q:{_:"14.9"},O:{"0":0.0281},H:{"0":0}}; +module.exports={C:{"3":0.00344,"26":0.00344,"31":0.00344,"35":0.00344,"38":0.00344,"39":0.00344,"40":0.00688,"52":0.00344,"78":0.00344,"102":0.00688,"111":0.00344,"112":0.00344,"113":0.00688,"114":0.00688,"115":0.04816,"116":0.04128,"117":0.06536,"118":0.01032,"119":0.00344,"120":0.02064,"121":0.00344,"122":0.00344,"123":0.00344,"124":0.00344,"125":0.36464,"126":0.28896,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 32 33 34 36 37 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 127 128 129","3.5":0.00344,"3.6":0.00688},D:{"4":0.00344,"29":0.00344,"31":0.00344,"32":0.00344,"33":0.00344,"37":0.00344,"38":0.00344,"39":0.00688,"40":0.00344,"41":0.00688,"42":0.00344,"43":0.01032,"44":0.0172,"45":0.01032,"46":0.01376,"47":0.00688,"51":0.03096,"70":0.01032,"75":0.00344,"76":0.01032,"79":0.00688,"84":0.00344,"87":0.00688,"91":0.05848,"92":0.00688,"93":0.04128,"97":0.16168,"102":0.00344,"103":0.09976,"105":0.00344,"107":0.00344,"108":0.83248,"109":0.28896,"110":0.00344,"111":0.00344,"112":0.00688,"113":0.00344,"114":0.02408,"115":0.02752,"116":0.24768,"117":0.04472,"118":0.01032,"119":0.03096,"120":0.01376,"121":0.04816,"122":0.07912,"123":0.45752,"124":10.69152,"125":6.78712,"126":0.01032,_:"5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 34 35 36 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 77 78 80 81 83 85 86 88 89 90 94 95 96 98 99 100 101 104 106 127 128"},F:{"30":0.00344,"31":0.00344,"32":0.00344,"101":0.00344,"107":0.0688,"108":0.00344,"109":0.45064,"110":0.00344,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00344},B:{"12":0.00344,"14":0.00344,"92":0.00344,"109":0.0344,"113":0.00344,"116":0.03096,"117":0.00688,"118":0.01032,"119":0.00344,"120":0.00344,"121":0.00688,"122":0.0172,"123":0.04128,"124":0.92192,"125":0.52976,_:"13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 114 115"},E:{"7":0.00344,"8":0.00344,"9":0.06536,"14":0.08944,"15":0.00344,_:"0 4 5 6 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00344,"12.1":0.00344,"13.1":0.00688,"14.1":0.01376,"15.1":0.13416,"15.2-15.3":0.086,"15.4":0.25112,"15.5":0.07224,"15.6":0.40248,"16.0":0.02752,"16.1":0.09632,"16.2":0.03096,"16.3":0.13072,"16.4":0.06192,"16.5":0.516,"16.6":0.95288,"17.0":0.04128,"17.1":0.21328,"17.2":0.27176,"17.3":0.19608,"17.4":4.68528,"17.5":1.04576},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00977,"5.0-5.1":0.00977,"6.0-6.1":0.02441,"7.0-7.1":0.03418,"8.1-8.4":0.00977,"9.0-9.2":0.02441,"9.3":0.1123,"10.0-10.2":0.01953,"10.3":0.17578,"11.0-11.2":0.25878,"11.3-11.4":0.04883,"12.0-12.1":0.0293,"12.2-12.5":0.70799,"13.0-13.1":0.01465,"13.2":0.06836,"13.3":0.03418,"13.4-13.7":0.15625,"14.0-14.4":0.26855,"14.5-14.8":0.41503,"15.0-15.1":0.20019,"15.2-15.3":0.21972,"15.4":0.24902,"15.5":0.31249,"15.6-15.8":2.81243,"16.0":0.63963,"16.1":1.31833,"16.2":0.63963,"16.3":1.10837,"16.4":0.23437,"16.5":0.47362,"16.6-16.7":3.77432,"17.0":0.41015,"17.1":0.66893,"17.2":0.69823,"17.3":1.28903,"17.4":29.27176,"17.5":2.06538,"17.6":0},P:{"4":0.05337,"21":0.02135,"22":0.02135,"23":0.02135,"24":0.07472,"25":1.04612,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","6.2-6.4":0.03202,"7.2-7.4":0.03202,"18.0":0.03202,"19.0":0.01067},I:{"0":0.25488,"3":0,"4":0.00003,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00005,"4.2-4.3":0.00015,"4.4":0,"4.4.3-4.4.4":0.00056},K:{"0":0.07217,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00368,"7":0.00736,"8":0.0994,"9":0.01841,"10":0.01841,"11":0.05154,_:"5.5"},S:{"2.5":0.01968,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":15.82719},R:{_:"0"},M:{"0":0.22307},Q:{_:"14.9"},O:{"0":0.03281},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CA.js b/node_modules/caniuse-lite/data/regions/CA.js index b98ddead9..88bbf7a09 100644 --- a/node_modules/caniuse-lite/data/regions/CA.js +++ b/node_modules/caniuse-lite/data/regions/CA.js @@ -1 +1 @@ -module.exports={C:{"38":0.0047,"43":0.0047,"44":0.01409,"45":0.00939,"47":0.02817,"48":0.0047,"52":0.01878,"57":0.00939,"78":0.02348,"83":0.00939,"88":0.0047,"102":0.00939,"107":0.0047,"108":0.0047,"113":0.0047,"115":0.21597,"123":0.0047,"125":0.0047,"127":0.00939,"128":0.07982,"129":0.0047,"132":0.00939,"133":0.0047,"134":0.00939,"135":0.03287,"136":0.02348,"137":0.05634,"138":0.12677,"139":1.77471,"140":0.26762,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 49 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 109 110 111 112 114 116 117 118 119 120 121 122 124 126 130 131 141 142 143 3.5 3.6"},D:{"25":0.01878,"39":0.01409,"40":0.01409,"41":0.01409,"42":0.01409,"43":0.01409,"44":0.01409,"45":0.01409,"46":0.01409,"47":0.01878,"48":0.05165,"49":0.05165,"50":0.01409,"51":0.01409,"52":0.01409,"53":0.01409,"54":0.01409,"55":0.01409,"56":0.01409,"57":0.01878,"58":0.01409,"59":0.01409,"60":0.01409,"66":0.00939,"70":0.0047,"74":0.0047,"76":0.0047,"77":0.0047,"79":0.01878,"80":0.01409,"81":0.03756,"83":0.06104,"84":0.0047,"85":0.00939,"86":0.0047,"87":0.02817,"88":0.06104,"89":0.0047,"90":0.0047,"91":0.0047,"93":0.02348,"95":0.0047,"98":0.00939,"99":0.04226,"100":0.0047,"102":0.02817,"103":0.12677,"104":0.07982,"105":0.00939,"106":0.01409,"107":0.02817,"108":0.03756,"109":0.5681,"110":0.01878,"111":0.02348,"112":0.01878,"113":0.01878,"114":0.05165,"115":0.01878,"116":0.16433,"117":0.02348,"118":0.03756,"119":0.03287,"120":0.02817,"121":0.01409,"122":0.07043,"123":0.02348,"124":0.05634,"125":0.40377,"126":0.10329,"127":0.02817,"128":0.14085,"129":0.03287,"130":0.06104,"131":0.52115,"132":0.54932,"133":0.55401,"134":0.23006,"135":0.58218,"136":3.20669,"137":15.03339,"138":0.61505,"139":0.00939,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 71 72 73 75 78 92 94 96 97 101 140 141"},F:{"89":0.01409,"90":0.00939,"95":0.03756,"102":0.0047,"117":0.0047,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0047,"85":0.0047,"92":0.0047,"106":0.0047,"107":0.0047,"108":0.0047,"109":0.05634,"110":0.0047,"111":0.0047,"112":0.0047,"114":0.0047,"120":0.0047,"122":0.15963,"124":0.0047,"125":0.0047,"126":0.00939,"127":0.00939,"128":0.00939,"129":0.00939,"130":0.00939,"131":0.02348,"132":0.01409,"133":0.01409,"134":0.08921,"135":0.06573,"136":0.89205,"137":5.25371,"138":0.44603,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 113 115 116 117 118 119 121 123"},E:{"9":0.0047,"14":0.02348,"15":0.0047,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.0047,"12.1":0.00939,"13.1":0.07982,"14.1":0.07512,"15.1":0.00939,"15.2-15.3":0.00939,"15.4":0.02817,"15.5":0.02817,"15.6":0.40847,"16.0":0.05165,"16.1":0.06104,"16.2":0.03756,"16.3":0.08451,"16.4":0.03287,"16.5":0.05165,"16.6":0.58218,"17.0":0.01878,"17.1":0.47889,"17.2":0.03287,"17.3":0.04226,"17.4":0.08921,"17.5":0.13146,"17.6":0.54932,"18.0":0.04226,"18.1":0.12207,"18.2":0.05634,"18.3":0.33804,"18.4":0.31457,"18.5":4.65744,"26.0":0.0047},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00558,"5.0-5.1":0,"6.0-6.1":0.01117,"7.0-7.1":0.01117,"8.1-8.4":0,"9.0-9.2":0.00558,"9.3":0.0335,"10.0-10.2":0.00279,"10.3":0.05583,"11.0-11.2":0.35731,"11.3-11.4":0.01954,"12.0-12.1":0.00558,"12.2-12.5":0.18703,"13.0-13.1":0.00279,"13.2":0.00837,"13.3":0.00558,"13.4-13.7":0.03071,"14.0-14.4":0.07258,"14.5-14.8":0.07258,"15.0-15.1":0.05025,"15.2-15.3":0.05025,"15.4":0.06141,"15.5":0.067,"15.6-15.8":0.86536,"16.0":0.11445,"16.1":0.23449,"16.2":0.12003,"16.3":0.22053,"16.4":0.05025,"16.5":0.08933,"16.6-16.7":1.08589,"17.0":0.05862,"17.1":0.10329,"17.2":0.08095,"17.3":0.11445,"17.4":0.20378,"17.5":0.4271,"17.6-17.7":1.1166,"18.0":0.27636,"18.1":0.6225,"18.2":0.3294,"18.3":1.41529,"18.4":1.50182,"18.5":17.60593,"26.0":0},P:{"4":0.01089,"21":0.04356,"22":0.01089,"23":0.01089,"24":0.01089,"25":0.01089,"26":0.06534,"27":0.06534,"28":2.21076,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","7.2-7.4":0.01089,"16.0":0.01089,"17.0":0.01089},I:{"0":0.02118,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.18037,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00587,"9":0.01761,"11":0.04695,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.82283},R:{_:"0"},M:{"0":0.46154},Q:{"14.9":0.01061},O:{"0":0.06366},H:{"0":0}}; +module.exports={C:{"38":0.02198,"43":0.01648,"44":0.09889,"45":0.02198,"47":0.00549,"52":0.02747,"57":0.01099,"59":0.00549,"77":0.00549,"78":0.02198,"83":0.00549,"88":0.03296,"100":0.00549,"102":0.00549,"103":0.01099,"104":0.01648,"105":0.00549,"107":0.00549,"108":0.00549,"109":0.00549,"110":0.00549,"111":0.00549,"113":0.01648,"114":0.00549,"115":0.31316,"116":0.00549,"117":0.01099,"118":0.01099,"119":0.00549,"120":0.02747,"121":0.00549,"122":0.01099,"123":0.03846,"124":0.06593,"125":1.22516,"126":0.98343,"127":0.00549,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 48 49 50 51 53 54 55 56 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 101 106 112 128 129 3.5 3.6"},D:{"38":0.00549,"47":0.02198,"48":0.22525,"49":0.07692,"57":0.00549,"58":0.00549,"65":0.00549,"66":0.01648,"74":0.00549,"75":0.00549,"76":0.01099,"77":0.00549,"79":0.02198,"80":0.01648,"81":0.01648,"83":0.14284,"84":0.00549,"85":0.01099,"86":0.07692,"87":0.04945,"88":0.0934,"89":0.01099,"90":0.00549,"91":0.01099,"92":0.01099,"93":0.03846,"94":0.01099,"95":0.00549,"96":0.00549,"97":0.00549,"98":0.01099,"99":0.01099,"100":0.07692,"101":0.14284,"102":0.0879,"103":0.59885,"104":0.12636,"105":0.07692,"106":0.01648,"107":0.01648,"108":0.13186,"109":1.0054,"110":0.02198,"111":0.04945,"112":0.02747,"113":0.14834,"114":0.17581,"115":0.07692,"116":0.32964,"117":0.04395,"118":0.06043,"119":0.0879,"120":0.26371,"121":0.16482,"122":0.43952,"123":1.93938,"124":19.47074,"125":6.89497,"126":0.01099,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 50 51 52 53 54 55 56 59 60 61 62 63 64 67 68 69 70 71 72 73 78 127 128"},F:{"95":0.03846,"107":0.14284,"108":0.01648,"109":0.55489,"110":0.02198,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00549,"13":0.00549,"17":0.00549,"18":0.00549,"92":0.00549,"103":0.00549,"106":0.00549,"107":0.00549,"108":0.00549,"109":0.10988,"110":0.00549,"111":0.00549,"112":0.01099,"113":0.00549,"114":0.01099,"115":0.00549,"116":0.00549,"117":0.00549,"118":0.00549,"119":0.00549,"120":0.02198,"121":0.01648,"122":0.09889,"123":0.25822,"124":4.99954,"125":2.9338,_:"14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105"},E:{"8":0.01099,"9":0.03846,"13":0.00549,"14":0.07142,"15":0.00549,_:"0 4 5 6 7 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00549,"12.1":0.02198,"13.1":0.12636,"14.1":0.17031,"15.1":0.01648,"15.2-15.3":0.01648,"15.4":0.05494,"15.5":0.06593,"15.6":0.62082,"16.0":0.06043,"16.1":0.09889,"16.2":0.08241,"16.3":0.21427,"16.4":0.06593,"16.5":0.12636,"16.6":0.87355,"17.0":0.05494,"17.1":0.13186,"17.2":0.14834,"17.3":0.16482,"17.4":4.14248,"17.5":0.49995},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00471,"5.0-5.1":0.00471,"6.0-6.1":0.01176,"7.0-7.1":0.01647,"8.1-8.4":0.00471,"9.0-9.2":0.01176,"9.3":0.05411,"10.0-10.2":0.00941,"10.3":0.08469,"11.0-11.2":0.12469,"11.3-11.4":0.02353,"12.0-12.1":0.01412,"12.2-12.5":0.34112,"13.0-13.1":0.00706,"13.2":0.03294,"13.3":0.01647,"13.4-13.7":0.07528,"14.0-14.4":0.12939,"14.5-14.8":0.19997,"15.0-15.1":0.09646,"15.2-15.3":0.10587,"15.4":0.11998,"15.5":0.15057,"15.6-15.8":1.35509,"16.0":0.30819,"16.1":0.6352,"16.2":0.30819,"16.3":0.53404,"16.4":0.11292,"16.5":0.2282,"16.6-16.7":1.81855,"17.0":0.19762,"17.1":0.3223,"17.2":0.33642,"17.3":0.62108,"17.4":14.10373,"17.5":0.99514,"17.6":0},P:{"4":0.07759,"20":0.02217,"21":0.07759,"22":0.02217,"23":0.03325,"24":0.11084,"25":2.05053,"5.0-5.4":0.01108,"6.2-6.4":0.01108,_:"7.2-7.4 8.2 9.2 11.1-11.2 12.0 14.0 15.0 18.0","10.1":0.01108,"13.0":0.01108,"16.0":0.02217,"17.0":0.01108,"19.0":0.01108},I:{"0":0.03591,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.17573,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00568,"9":0.02842,"11":0.29554,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":18.49056},R:{_:"0"},M:{"0":0.42356},Q:{"14.9":0.00901},O:{"0":0.0766},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CD.js b/node_modules/caniuse-lite/data/regions/CD.js index 6af438ebb..05c6a521e 100644 --- a/node_modules/caniuse-lite/data/regions/CD.js +++ b/node_modules/caniuse-lite/data/regions/CD.js @@ -1 +1 @@ -module.exports={C:{"44":0.00204,"49":0.00204,"56":0.00204,"64":0.00204,"66":0.00204,"68":0.00204,"72":0.00409,"80":0.00204,"84":0.00204,"90":0.00204,"91":0.00204,"94":0.00204,"101":0.00204,"109":0.00204,"112":0.00409,"115":0.09806,"122":0.00204,"127":0.01022,"128":0.01839,"132":0.00204,"133":0.00204,"134":0.00204,"135":0.01634,"136":0.00817,"137":0.00817,"138":0.04699,"139":0.64967,"140":0.07968,"141":0.00204,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 65 67 69 70 71 73 74 75 76 77 78 79 81 82 83 85 86 87 88 89 92 93 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 113 114 116 117 118 119 120 121 123 124 125 126 129 130 131 142 143 3.5 3.6"},D:{"11":0.00204,"38":0.00204,"39":0.00409,"40":0.00409,"41":0.00409,"42":0.00409,"43":0.00613,"44":0.00409,"45":0.00409,"46":0.00409,"47":0.00817,"48":0.00409,"49":0.00817,"50":0.00409,"51":0.00204,"52":0.00409,"53":0.00204,"54":0.00204,"55":0.00204,"56":0.00409,"57":0.00204,"58":0.00613,"59":0.00409,"60":0.00204,"61":0.00409,"64":0.00204,"65":0.00204,"68":0.00817,"69":0.00409,"70":0.00204,"71":0.00204,"73":0.00613,"74":0.00204,"75":0.00204,"76":0.00204,"77":0.00204,"78":0.00204,"79":0.01839,"80":0.00204,"81":0.00817,"83":0.0143,"85":0.00204,"86":0.00817,"87":0.05312,"88":0.01226,"89":0.00409,"90":0.00409,"91":0.00204,"93":0.01022,"94":0.00409,"95":0.00613,"96":0.00204,"97":0.00204,"98":0.00817,"99":0.00204,"100":0.00409,"101":0.00613,"103":0.03677,"104":0.00204,"105":0.00409,"106":0.09602,"107":0.00204,"108":0.0286,"109":0.21656,"110":0.00613,"111":0.01839,"112":0.00613,"113":0.00204,"114":0.0143,"115":0.01226,"116":0.03269,"117":0.00409,"118":0.02452,"119":0.0286,"120":0.02656,"121":0.00613,"122":0.01226,"123":0.00613,"124":0.01634,"125":0.4372,"126":0.02247,"127":0.03677,"128":0.03065,"129":0.0143,"130":0.02247,"131":0.04495,"132":0.02247,"133":0.03269,"134":0.05925,"135":0.12667,"136":1.04602,"137":4.87051,"138":0.23086,"139":0.00204,_:"4 5 6 7 8 9 10 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 62 63 66 67 72 84 92 102 140 141"},F:{"30":0.00204,"34":0.00409,"36":0.00204,"37":0.00204,"42":0.00409,"46":0.00409,"48":0.00204,"62":0.0143,"74":0.00409,"79":0.01634,"85":0.00204,"86":0.01839,"88":0.00204,"89":0.0286,"90":0.01634,"95":0.04699,"101":0.00204,"102":0.00409,"109":0.00204,"112":0.00204,"113":0.00204,"114":0.00817,"115":0.00613,"116":0.00613,"117":0.01634,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 35 38 39 40 41 43 44 45 47 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 80 81 82 83 84 87 91 92 93 94 96 97 98 99 100 103 104 105 106 107 108 110 111 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02247,"13":0.00409,"14":0.01022,"15":0.00613,"16":0.00613,"17":0.01839,"18":0.07355,"84":0.0143,"86":0.00204,"89":0.01839,"90":0.0286,"92":0.07968,"100":0.01226,"109":0.00817,"114":0.00204,"116":0.00204,"117":0.00204,"119":0.00204,"120":0.00204,"122":0.01226,"123":0.00204,"124":0.00817,"125":0.00409,"126":0.00204,"127":0.00409,"128":0.00409,"129":0.00613,"130":0.00409,"131":0.02656,"132":0.00613,"133":0.02043,"134":0.03677,"135":0.05925,"136":0.39634,"137":1.74677,"138":0.10011,_:"79 80 81 83 85 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 118 121"},E:{"12":0.00204,"13":0.00204,"14":0.00204,_:"0 4 5 6 7 8 9 10 11 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 15.5 16.4","5.1":0.00204,"11.1":0.00613,"12.1":0.00204,"13.1":0.02043,"14.1":0.0143,"15.1":0.00204,"15.6":0.02247,"16.0":0.00409,"16.1":0.01022,"16.2":0.00204,"16.3":0.00204,"16.5":0.00409,"16.6":0.06742,"17.0":0.00204,"17.1":0.00204,"17.2":0.00204,"17.3":0.00204,"17.4":0.00204,"17.5":0.02043,"17.6":0.07151,"18.0":0.00613,"18.1":0.00409,"18.2":0.0143,"18.3":0.03473,"18.4":0.03677,"18.5":0.14914,"26.0":0.00204},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00198,"5.0-5.1":0,"6.0-6.1":0.00396,"7.0-7.1":0.00396,"8.1-8.4":0,"9.0-9.2":0.00198,"9.3":0.01188,"10.0-10.2":0.00099,"10.3":0.0198,"11.0-11.2":0.12672,"11.3-11.4":0.00693,"12.0-12.1":0.00198,"12.2-12.5":0.06633,"13.0-13.1":0.00099,"13.2":0.00297,"13.3":0.00198,"13.4-13.7":0.01089,"14.0-14.4":0.02574,"14.5-14.8":0.02574,"15.0-15.1":0.01782,"15.2-15.3":0.01782,"15.4":0.02178,"15.5":0.02376,"15.6-15.8":0.30689,"16.0":0.04059,"16.1":0.08316,"16.2":0.04257,"16.3":0.07821,"16.4":0.01782,"16.5":0.03168,"16.6-16.7":0.3851,"17.0":0.02079,"17.1":0.03663,"17.2":0.02871,"17.3":0.04059,"17.4":0.07227,"17.5":0.15147,"17.6-17.7":0.39599,"18.0":0.09801,"18.1":0.22076,"18.2":0.11682,"18.3":0.50192,"18.4":0.53261,"18.5":6.24377,"26.0":0},P:{"4":0.01028,"21":0.01028,"22":0.01028,"23":0.01028,"24":0.0514,"25":0.04112,"26":0.02056,"27":0.11307,"28":0.85316,_:"20 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","5.0-5.4":0.01028,"6.2-6.4":0.01028,"7.2-7.4":0.03084,"9.2":0.04112,"16.0":0.01028,"19.0":0.01028},I:{"0":0.09533,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":5.97483,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01634,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00796,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.67948},R:{_:"0"},M:{"0":0.07958},Q:{"14.9":0.07162},O:{"0":0.52523},H:{"0":4.1}}; +module.exports={C:{"47":0.00113,"52":0.00113,"57":0.08716,"68":0.00113,"72":0.00113,"96":0.00113,"115":0.57053,"120":0.00113,"122":0.00226,"123":0.00226,"124":0.01019,"125":0.21848,"126":0.15961,"127":0.00226,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 128 129 3.5 3.6"},D:{"11":0.00566,"30":0.00113,"38":0.00113,"40":0.00113,"43":0.00226,"46":0.00113,"49":0.00113,"58":0.00113,"59":0.00113,"64":0.00113,"65":0.00113,"68":0.00113,"69":0.00226,"70":0.00113,"71":0.00113,"72":0.00113,"74":0.00113,"77":0.00113,"78":0.00226,"79":0.00226,"80":0.00453,"83":0.00113,"84":0.00453,"86":0.00113,"87":0.00792,"88":0.00792,"89":0.00113,"90":0.00113,"91":0.00113,"92":0.00113,"93":0.00113,"94":0.00113,"95":0.00113,"97":0.01132,"98":0.00113,"99":0.00792,"100":0.00113,"102":0.00113,"103":0.00566,"104":0.0034,"105":0.00226,"106":0.00226,"108":0.00113,"109":0.2581,"110":0.00113,"111":0.00113,"112":0.00113,"113":0.00113,"114":0.00226,"115":0.00113,"116":0.01132,"117":0.00113,"118":0.00453,"119":0.00906,"120":0.01245,"121":0.00906,"122":0.01698,"123":0.0883,"124":0.92711,"125":0.31809,"126":0.00113,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 39 41 42 44 45 47 48 50 51 52 53 54 55 56 57 60 61 62 63 66 67 73 75 76 81 85 96 101 107 127 128"},F:{"42":0.00113,"46":0.00113,"75":0.01472,"79":0.00566,"82":0.00113,"86":0.00113,"95":0.01358,"101":0.00113,"102":0.00113,"106":0.00113,"107":0.00226,"108":0.01019,"109":0.17772,"110":0.04188,_:"9 11 12 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 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 87 88 89 90 91 92 93 94 96 97 98 99 100 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00566,"13":0.00226,"14":0.00226,"15":0.00113,"16":0.00113,"17":0.00453,"18":0.01245,"84":0.00453,"85":0.00113,"86":0.00226,"89":0.00226,"90":0.0034,"92":0.01019,"100":0.00226,"108":0.00113,"109":0.00906,"111":0.00113,"112":0.00113,"116":0.00226,"117":0.00113,"118":0.00226,"119":0.0034,"120":0.00566,"121":0.00566,"122":0.01019,"123":0.03396,"124":0.26715,"125":0.15735,_:"79 80 81 83 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 113 114 115"},E:{"13":0.00113,"14":0.00113,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 16.0 16.4 17.0 17.6","11.1":0.00113,"12.1":0.00113,"13.1":0.00566,"14.1":0.0034,"15.1":0.00113,"15.2-15.3":0.00113,"15.4":0.00113,"15.5":0.00679,"15.6":0.01132,"16.1":0.00113,"16.2":0.00113,"16.3":0.0034,"16.5":0.00113,"16.6":0.00566,"17.1":0.00566,"17.2":0.0034,"17.3":0.00113,"17.4":0.02264,"17.5":0.00453},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0012,"5.0-5.1":0.0012,"6.0-6.1":0.00299,"7.0-7.1":0.00418,"8.1-8.4":0.0012,"9.0-9.2":0.00299,"9.3":0.01375,"10.0-10.2":0.00239,"10.3":0.02152,"11.0-11.2":0.03168,"11.3-11.4":0.00598,"12.0-12.1":0.00359,"12.2-12.5":0.08667,"13.0-13.1":0.00179,"13.2":0.00837,"13.3":0.00418,"13.4-13.7":0.01913,"14.0-14.4":0.03287,"14.5-14.8":0.0508,"15.0-15.1":0.02451,"15.2-15.3":0.0269,"15.4":0.03048,"15.5":0.03825,"15.6-15.8":0.34428,"16.0":0.0783,"16.1":0.16138,"16.2":0.0783,"16.3":0.13568,"16.4":0.02869,"16.5":0.05798,"16.6-16.7":0.46202,"17.0":0.05021,"17.1":0.08189,"17.2":0.08547,"17.3":0.15779,"17.4":3.58323,"17.5":0.25283,"17.6":0},P:{"4":0.04107,"20":0.02054,"21":0.01027,"22":0.06161,"23":0.07188,"24":0.16429,"25":0.10268,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0 17.0","7.2-7.4":0.05134,"9.2":0.0308,"11.1-11.2":0.01027,"13.0":0.01027,"15.0":0.04107,"16.0":0.0308,"18.0":0.11295,"19.0":0.02054},I:{"0":0.0265,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":8.17335,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01358,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01774,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":72.03666},R:{_:"0"},M:{"0":0.0266},Q:{"14.9":0.01774},O:{"0":0.13302},H:{"0":8.8}}; diff --git a/node_modules/caniuse-lite/data/regions/CF.js b/node_modules/caniuse-lite/data/regions/CF.js index b58c54ba3..790711423 100644 --- a/node_modules/caniuse-lite/data/regions/CF.js +++ b/node_modules/caniuse-lite/data/regions/CF.js @@ -1 +1 @@ -module.exports={C:{"59":0.01733,"72":0.0104,"78":0.0052,"79":0.04333,"115":1.10912,"118":0.01733,"127":0.03293,"128":0.05546,"131":0.0104,"136":0.0052,"137":0.05026,"138":0.07105,"139":1.51811,"140":0.08318,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 129 130 132 133 134 135 141 142 143 3.5 3.6"},D:{"52":0.08318,"58":0.03813,"65":0.01733,"77":0.0104,"81":0.0052,"95":0.0104,"100":0.0052,"105":0.01733,"106":0.18716,"109":0.31367,"112":0.0052,"114":0.01733,"118":0.0104,"119":0.04333,"122":0.02773,"124":0.01733,"125":0.06585,"126":0.0104,"128":0.0104,"129":0.03813,"131":0.01733,"132":0.03293,"134":0.09878,"135":0.11611,"136":0.55803,"137":2.29449,"138":0.03293,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 78 79 80 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 101 102 103 104 107 108 110 111 113 115 116 117 120 121 123 127 130 133 139 140 141"},F:{"42":0.0104,"79":0.0052,"89":0.03293,_:"9 11 12 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.03293,"13":0.07105,"18":0.09878,"89":0.06066,"90":0.0104,"92":0.07799,"100":0.0052,"101":0.0104,"109":0.0052,"112":0.03813,"122":0.02253,"128":0.0052,"130":0.0052,"131":0.01733,"134":0.02773,"135":0.02253,"136":0.40899,"137":0.70706,"138":0.05026,_:"14 15 16 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 119 120 121 123 124 125 126 127 129 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.6 17.0 17.1 17.2 17.3 17.5 17.6 18.0 18.1 18.2 18.3 26.0","11.1":0.05546,"13.1":0.0052,"16.5":0.0052,"17.4":0.0052,"18.4":0.0052,"18.5":0.0052},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00062,"5.0-5.1":0,"6.0-6.1":0.00125,"7.0-7.1":0.00125,"8.1-8.4":0,"9.0-9.2":0.00062,"9.3":0.00374,"10.0-10.2":0.00031,"10.3":0.00623,"11.0-11.2":0.03989,"11.3-11.4":0.00218,"12.0-12.1":0.00062,"12.2-12.5":0.02088,"13.0-13.1":0.00031,"13.2":0.00093,"13.3":0.00062,"13.4-13.7":0.00343,"14.0-14.4":0.0081,"14.5-14.8":0.0081,"15.0-15.1":0.00561,"15.2-15.3":0.00561,"15.4":0.00686,"15.5":0.00748,"15.6-15.8":0.09662,"16.0":0.01278,"16.1":0.02618,"16.2":0.0134,"16.3":0.02462,"16.4":0.00561,"16.5":0.00997,"16.6-16.7":0.12124,"17.0":0.00654,"17.1":0.01153,"17.2":0.00904,"17.3":0.01278,"17.4":0.02275,"17.5":0.04768,"17.6-17.7":0.12467,"18.0":0.03085,"18.1":0.0695,"18.2":0.03678,"18.3":0.15801,"18.4":0.16768,"18.5":1.96568,"26.0":0},P:{"4":0.02999,"21":0.01999,"24":0.01,"25":0.01999,"26":0.02999,"27":0.18995,"28":2.56931,_:"20 22 23 8.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0","5.0-5.4":0.01,"6.2-6.4":0.01999,"7.2-7.4":0.02999,"9.2":0.03999,"15.0":0.01,"19.0":0.02999},I:{"0":0.02476,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":2.68686,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.05787,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.16026},R:{_:"0"},M:{"0":0.48775},Q:{_:"14.9"},O:{"0":0.33895},H:{"0":15.36}}; +module.exports={C:{"51":0.00534,"57":0.00213,"72":0.01601,"77":0.00107,"79":0.00107,"95":0.0096,"102":0.0032,"103":0.00107,"108":0.00213,"110":0.00107,"112":0.00213,"114":0.00427,"115":0.06509,"122":0.00427,"123":0.15045,"124":0.03308,"125":0.54204,"126":0.59325,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 104 105 106 107 109 111 113 116 117 118 119 120 121 127 128 129 3.5 3.6"},D:{"11":0.01494,"50":0.00107,"55":0.00107,"60":0.08963,"66":0.00213,"70":0.00107,"78":0.0032,"84":0.02774,"86":0.00107,"88":0.07256,"90":0.00107,"96":0.0032,"98":0.00107,"99":0.0032,"102":0.00107,"103":0.00427,"104":0.0032,"105":0.00427,"106":0.02134,"108":0.02347,"109":0.01921,"112":0.01067,"116":0.0064,"119":0.00213,"120":0.0032,"121":0.0032,"122":0.0128,"123":0.06936,"124":1.26866,"125":0.25928,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 56 57 58 59 61 62 63 64 65 67 68 69 71 72 73 74 75 76 77 79 80 81 83 85 87 89 91 92 93 94 95 97 100 101 107 110 111 113 114 115 117 118 126 127 128"},F:{"38":0.00107,"79":0.0096,"85":0.00427,"99":0.00427,"107":0.0064,"108":0.00747,"109":0.14938,"110":0.0096,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0064,"13":0.02454,"14":0.00107,"16":0.00427,"18":0.00747,"89":0.00427,"90":0.02134,"92":0.00854,"108":0.00107,"109":0.00213,"116":0.00213,"117":0.00213,"119":0.0064,"120":0.01601,"121":0.0032,"122":0.00427,"123":0.0096,"124":0.24541,"125":0.17392,_:"15 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 118"},E:{"14":0.0064,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.2 16.3 16.4 16.5 17.0 17.1 17.3 17.5 17.6","13.1":0.00213,"16.1":0.00213,"16.6":0.00427,"17.2":0.0032,"17.4":0.02668},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0006,"5.0-5.1":0.0006,"6.0-6.1":0.00149,"7.0-7.1":0.00209,"8.1-8.4":0.0006,"9.0-9.2":0.00149,"9.3":0.00686,"10.0-10.2":0.00119,"10.3":0.01074,"11.0-11.2":0.01581,"11.3-11.4":0.00298,"12.0-12.1":0.00179,"12.2-12.5":0.04326,"13.0-13.1":0.0009,"13.2":0.00418,"13.3":0.00209,"13.4-13.7":0.00955,"14.0-14.4":0.01641,"14.5-14.8":0.02536,"15.0-15.1":0.01223,"15.2-15.3":0.01343,"15.4":0.01522,"15.5":0.0191,"15.6-15.8":0.17186,"16.0":0.03909,"16.1":0.08056,"16.2":0.03909,"16.3":0.06773,"16.4":0.01432,"16.5":0.02894,"16.6-16.7":0.23063,"17.0":0.02506,"17.1":0.04088,"17.2":0.04267,"17.3":0.07877,"17.4":1.78868,"17.5":0.12621,"17.6":0},P:{"4":0.04076,"20":0.01019,"21":0.02038,"22":0.08152,"23":0.15285,"24":0.09171,"25":0.17323,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0 15.0 17.0 18.0","7.2-7.4":0.03057,"9.2":0.11209,"11.1-11.2":0.08152,"13.0":0.02038,"16.0":0.04076,"19.0":0.5197},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":2.32049,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02241,_:"6 7 8 9 10 5.5"},S:{"2.5":0.32159,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":71.6569},R:{_:"0"},M:{"0":0.06253},Q:{"14.9":0.01787},O:{"0":0.16079},H:{"0":16.68}}; diff --git a/node_modules/caniuse-lite/data/regions/CG.js b/node_modules/caniuse-lite/data/regions/CG.js index cd777becf..bb5caff83 100644 --- a/node_modules/caniuse-lite/data/regions/CG.js +++ b/node_modules/caniuse-lite/data/regions/CG.js @@ -1 +1 @@ -module.exports={C:{"8":0.0032,"24":0.0032,"45":0.0032,"48":0.00961,"56":0.0032,"72":0.0032,"80":0.0032,"115":0.11855,"118":0.0032,"127":0.0032,"128":0.05447,"130":0.0032,"133":0.0032,"134":0.0032,"135":0.0032,"136":0.00961,"137":0.01282,"138":0.03204,"139":1.00285,"140":0.11855,_:"2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 129 131 132 141 142 143 3.5 3.6"},D:{"11":0.00961,"34":0.0032,"36":0.0032,"38":0.0032,"39":0.01282,"40":0.01602,"41":0.01602,"42":0.01602,"43":0.01602,"44":0.01602,"45":0.01922,"46":0.01282,"47":0.01602,"48":0.01922,"49":0.02563,"50":0.01922,"51":0.01922,"52":0.00961,"53":0.00961,"54":0.01922,"55":0.01922,"56":0.01602,"57":0.01922,"58":0.01922,"59":0.01602,"60":0.01282,"62":0.0032,"63":0.03524,"64":0.00641,"65":0.00641,"66":0.01602,"68":0.0032,"69":0.01282,"72":0.03524,"73":0.09932,"74":0.00641,"75":0.01282,"76":0.0032,"79":0.06728,"80":0.00961,"81":0.00961,"83":0.11855,"84":0.0032,"86":0.02884,"87":0.06408,"88":0.0032,"89":0.00961,"90":0.0032,"91":0.02243,"93":0.00641,"94":0.0032,"95":0.02884,"97":0.0032,"98":0.11534,"101":0.02243,"102":0.0032,"103":0.04806,"104":0.00641,"105":0.00641,"106":0.01602,"108":0.00641,"109":0.41652,"110":0.00961,"111":0.02563,"113":0.01922,"114":0.02243,"115":0.00641,"116":0.12816,"118":0.01922,"119":0.0833,"120":0.04165,"122":0.04486,"123":0.0032,"124":0.0032,"125":5.10397,"126":0.00961,"127":0.03204,"128":0.06728,"129":0.0032,"130":0.01282,"131":0.04165,"132":0.06728,"133":0.02563,"134":0.08651,"135":0.0833,"136":0.7978,"137":7.71844,"138":0.68245,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 61 67 70 71 77 78 85 92 96 99 100 107 112 117 121 139 140 141"},F:{"36":0.0032,"42":0.00641,"44":0.0032,"46":0.01922,"79":0.01282,"82":0.0032,"86":0.00641,"89":0.01922,"90":0.01282,"95":0.07369,"102":0.0032,"110":0.0032,"113":0.00641,"114":0.0032,"115":0.0032,"117":0.01922,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 111 112 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00641,"16":0.0032,"17":0.00961,"18":0.02563,"84":0.0032,"88":0.0032,"89":0.00961,"92":0.05767,"100":0.0032,"109":0.01602,"113":0.0032,"117":0.0032,"118":0.00641,"122":0.00961,"126":0.0032,"127":0.0032,"129":0.01282,"131":0.01922,"132":0.00641,"133":0.01282,"134":0.04806,"135":0.0833,"136":0.50623,"137":3.10788,"138":0.21787,_:"13 14 15 79 80 81 83 85 86 87 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 114 115 116 119 120 121 123 124 125 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 14.1 15.1 15.2-15.3 15.4 15.5 16.2 16.4 16.5 17.2 17.3 17.5 26.0","11.1":0.0032,"12.1":0.0032,"13.1":0.02563,"15.6":0.12496,"16.0":0.0032,"16.1":0.01282,"16.3":0.0032,"16.6":0.06408,"17.0":0.00641,"17.1":0.0032,"17.4":0.0032,"17.6":0.10253,"18.0":0.0032,"18.1":0.0032,"18.2":0.00641,"18.3":0.0032,"18.4":0.03845,"18.5":0.2435},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00143,"5.0-5.1":0,"6.0-6.1":0.00285,"7.0-7.1":0.00285,"8.1-8.4":0,"9.0-9.2":0.00143,"9.3":0.00856,"10.0-10.2":0.00071,"10.3":0.01426,"11.0-11.2":0.09126,"11.3-11.4":0.00499,"12.0-12.1":0.00143,"12.2-12.5":0.04777,"13.0-13.1":0.00071,"13.2":0.00214,"13.3":0.00143,"13.4-13.7":0.00784,"14.0-14.4":0.01854,"14.5-14.8":0.01854,"15.0-15.1":0.01283,"15.2-15.3":0.01283,"15.4":0.01569,"15.5":0.01711,"15.6-15.8":0.22103,"16.0":0.02923,"16.1":0.05989,"16.2":0.03066,"16.3":0.05633,"16.4":0.01283,"16.5":0.02282,"16.6-16.7":0.27736,"17.0":0.01497,"17.1":0.02638,"17.2":0.02068,"17.3":0.02923,"17.4":0.05205,"17.5":0.10909,"17.6-17.7":0.2852,"18.0":0.07059,"18.1":0.159,"18.2":0.08413,"18.3":0.36149,"18.4":0.3836,"18.5":4.49692,"26.0":0},P:{"4":0.04183,"23":0.01046,"24":0.01046,"25":0.01046,"26":0.0732,"27":0.03137,"28":0.32416,_:"20 21 22 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02091,"9.2":0.01046,"17.0":0.01046},I:{"0":0.13571,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":1.14463,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01282,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0068,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.59254},R:{_:"0"},M:{"0":0.06117},Q:{"14.9":0.0068},O:{"0":0.31946},H:{"0":0.14}}; +module.exports={C:{"115":0.11555,"122":0.00462,"124":0.00462,"125":0.48531,"126":0.33278,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 127 128 129 3.5 3.6"},D:{"11":0.00462,"43":0.00462,"47":0.00462,"67":0.00462,"69":0.03235,"72":0.00462,"73":0.00924,"79":0.01387,"81":0.02773,"83":0.0416,"84":0.00924,"86":0.03235,"87":0.04622,"89":0.00462,"93":0.01849,"94":0.00462,"95":0.01849,"98":0.03235,"99":0.00924,"102":0.00924,"103":0.02773,"104":0.00462,"105":0.00462,"107":0.00462,"109":0.6517,"110":0.00462,"114":0.00924,"115":0.01849,"116":0.01387,"117":0.00462,"118":0.00462,"119":0.06009,"120":0.04622,"121":0.05084,"122":0.07395,"123":0.13404,"124":11.11591,"125":3.8871,_:"4 5 6 7 8 9 10 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 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 70 71 74 75 76 77 78 80 85 88 90 91 92 96 97 100 101 106 108 111 112 113 126 127 128"},F:{"56":0.00462,"79":0.01849,"82":0.00462,"85":0.00462,"95":0.11093,"102":0.00462,"105":0.01849,"108":0.05084,"109":0.55464,"110":0.06933,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 106 107 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00462,"17":0.01387,"18":0.00462,"81":0.00462,"92":0.02311,"107":0.00462,"109":0.02311,"111":0.00924,"112":0.00462,"114":0.00924,"115":0.01849,"116":0.00462,"119":0.00462,"120":0.00462,"121":0.01849,"122":2.97657,"123":0.03698,"124":11.49491,"125":5.04722,_:"13 14 15 16 79 80 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 113 117 118"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.6","13.1":0.03235,"15.6":0.01387,"16.6":0.01387,"17.3":0.01849,"17.4":0.01849,"17.5":0.00462},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00153,"5.0-5.1":0.00153,"6.0-6.1":0.00383,"7.0-7.1":0.00536,"8.1-8.4":0.00153,"9.0-9.2":0.00383,"9.3":0.0176,"10.0-10.2":0.00306,"10.3":0.02755,"11.0-11.2":0.04056,"11.3-11.4":0.00765,"12.0-12.1":0.00459,"12.2-12.5":0.11097,"13.0-13.1":0.0023,"13.2":0.01071,"13.3":0.00536,"13.4-13.7":0.02449,"14.0-14.4":0.04209,"14.5-14.8":0.06505,"15.0-15.1":0.03138,"15.2-15.3":0.03444,"15.4":0.03903,"15.5":0.04898,"15.6-15.8":0.44081,"16.0":0.10025,"16.1":0.20663,"16.2":0.10025,"16.3":0.17372,"16.4":0.03673,"16.5":0.07423,"16.6-16.7":0.59157,"17.0":0.06428,"17.1":0.10484,"17.2":0.10944,"17.3":0.20204,"17.4":4.58791,"17.5":0.32372,"17.6":0},P:{"4":0.14162,"20":0.02179,"21":0.03268,"22":0.05447,"23":0.01089,"24":0.02179,"25":0.10894,"5.0-5.4":0.01089,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01089,"13.0":0.01089},I:{"0":0.04286,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.21108,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.05378,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.38355},R:{_:"0"},M:{"0":0.03227},Q:{"14.9":0.00538},O:{"0":0.0968},H:{"0":0.16}}; diff --git a/node_modules/caniuse-lite/data/regions/CH.js b/node_modules/caniuse-lite/data/regions/CH.js index eb90ef790..c56e6d2cc 100644 --- a/node_modules/caniuse-lite/data/regions/CH.js +++ b/node_modules/caniuse-lite/data/regions/CH.js @@ -1 +1 @@ -module.exports={C:{"48":0.01489,"52":0.01985,"60":0.00496,"66":0.00496,"78":0.03473,"84":0.00496,"91":0.00496,"102":0.00992,"108":0.01489,"109":0.00496,"111":0.00496,"115":0.7443,"119":0.00496,"125":0.00992,"126":0.00992,"127":0.00496,"128":0.33245,"129":0.00496,"130":0.00496,"131":0.00496,"132":0.02481,"133":0.00992,"134":0.01489,"135":0.02481,"136":0.04466,"137":0.18359,"138":0.26299,"139":4.61962,"140":0.67483,"141":0.00496,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 110 112 113 114 116 117 118 120 121 122 123 124 142 143 3.5 3.6"},D:{"38":0.00496,"39":0.00496,"41":0.00496,"43":0.00496,"48":0.00496,"49":0.01489,"52":0.33245,"56":0.00496,"58":0.00496,"66":0.0397,"73":0.00496,"74":0.00496,"79":0.02481,"80":0.01489,"81":0.00496,"83":0.00496,"84":0.00496,"85":0.00496,"87":0.04962,"88":0.00992,"90":0.00496,"91":0.16375,"92":0.00496,"93":0.02481,"98":0.01489,"99":0.00992,"102":0.00992,"103":0.0397,"104":0.01489,"106":0.00992,"107":0.01489,"108":0.04466,"109":0.45154,"110":0.00496,"111":0.01489,"112":0.00992,"114":0.02481,"115":0.00496,"116":0.12901,"117":0.00496,"118":0.03473,"119":0.06451,"120":0.0397,"121":0.02977,"122":0.2084,"123":0.01489,"124":0.05458,"125":0.05954,"126":0.03473,"127":0.01985,"128":0.08435,"129":0.02481,"130":0.0397,"131":0.32253,"132":0.22825,"133":0.392,"134":0.14886,"135":0.57559,"136":2.39168,"137":13.31801,"138":0.63017,"139":0.00496,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 42 44 45 46 47 50 51 53 54 55 57 59 60 61 62 63 64 65 67 68 69 70 71 72 75 76 77 78 86 89 94 95 96 97 100 101 105 113 140 141"},F:{"89":0.0397,"90":0.01489,"95":0.04962,"96":0.00496,"102":0.00496,"116":0.00496,"117":0.01489,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00496,"108":0.00496,"109":0.08932,"111":0.00496,"114":0.00496,"118":0.00496,"124":0.00496,"125":0.00992,"126":0.01489,"127":0.00992,"128":0.00496,"129":0.01489,"130":0.01489,"131":0.04962,"132":0.04962,"133":0.01985,"134":0.05954,"135":0.12901,"136":1.37447,"137":7.45789,"138":0.65002,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 112 113 115 116 117 119 120 121 122 123"},E:{"8":0.02977,"14":0.00992,_:"0 4 5 6 7 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.00496,"12.1":0.04466,"13.1":0.07443,"14.1":0.05954,"15.1":0.00992,"15.2-15.3":0.00496,"15.4":0.00992,"15.5":0.02481,"15.6":0.31757,"16.0":0.11413,"16.1":0.05954,"16.2":0.02481,"16.3":0.06451,"16.4":0.01489,"16.5":0.0397,"16.6":0.51109,"17.0":0.03473,"17.1":0.29276,"17.2":0.05954,"17.3":0.0397,"17.4":0.08932,"17.5":0.11909,"17.6":0.54086,"18.0":0.04466,"18.1":0.16871,"18.2":0.05954,"18.3":0.29276,"18.4":0.43666,"18.5":3.7215,"26.0":0.00992},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00466,"5.0-5.1":0,"6.0-6.1":0.00932,"7.0-7.1":0.00932,"8.1-8.4":0,"9.0-9.2":0.00466,"9.3":0.02795,"10.0-10.2":0.00233,"10.3":0.04659,"11.0-11.2":0.29819,"11.3-11.4":0.01631,"12.0-12.1":0.00466,"12.2-12.5":0.15608,"13.0-13.1":0.00233,"13.2":0.00699,"13.3":0.00466,"13.4-13.7":0.02563,"14.0-14.4":0.06057,"14.5-14.8":0.06057,"15.0-15.1":0.04193,"15.2-15.3":0.04193,"15.4":0.05125,"15.5":0.05591,"15.6-15.8":0.72217,"16.0":0.09551,"16.1":0.19568,"16.2":0.10017,"16.3":0.18404,"16.4":0.04193,"16.5":0.07455,"16.6-16.7":0.9062,"17.0":0.04892,"17.1":0.08619,"17.2":0.06756,"17.3":0.09551,"17.4":0.17006,"17.5":0.35642,"17.6-17.7":0.93183,"18.0":0.23063,"18.1":0.51949,"18.2":0.27489,"18.3":1.18109,"18.4":1.25331,"18.5":14.69261,"26.0":0},P:{"4":0.06307,"21":0.02102,"22":0.01051,"23":0.02102,"24":0.02102,"25":0.03154,"26":0.05256,"27":0.1787,"28":3.68966,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 18.0 19.0","6.2-6.4":0.01051,"7.2-7.4":0.01051,"14.0":0.01051,"17.0":0.01051},I:{"0":0.02515,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.35266,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.19848,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.75921},R:{_:"0"},M:{"0":0.8615},Q:{"14.9":0.00504},O:{"0":0.09572},H:{"0":0}}; +module.exports={C:{"48":0.01403,"52":0.03507,"78":0.0561,"84":0.00701,"99":0.00701,"102":0.01403,"103":0.00701,"108":0.00701,"113":0.08416,"114":0.00701,"115":0.71533,"116":0.00701,"118":0.04208,"119":0.00701,"120":0.00701,"121":0.01403,"122":0.02104,"123":0.03507,"124":0.12623,"125":2.05481,"126":1.83741,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 104 105 106 107 109 110 111 112 117 127 128 129 3.5 3.6"},D:{"49":0.01403,"52":0.18234,"65":0.00701,"66":0.04208,"69":0.00701,"74":0.00701,"79":0.01403,"80":0.01403,"81":0.00701,"84":0.00701,"85":0.00701,"86":0.02104,"87":0.06312,"89":0.00701,"90":0.00701,"91":0.00701,"94":0.00701,"95":0.00701,"97":0.00701,"98":0.00701,"99":0.00701,"100":0.02805,"101":0.04208,"102":0.03507,"103":0.17533,"104":0.03507,"105":0.01403,"106":0.01403,"107":0.01403,"108":0.02104,"109":1.57793,"110":0.01403,"111":0.01403,"112":0.01403,"113":0.2174,"114":0.2174,"115":0.01403,"116":0.49792,"117":0.01403,"118":0.0561,"119":0.07013,"120":0.43481,"121":0.15429,"122":0.71533,"123":2.50364,"124":25.49226,"125":7.0691,"126":0.00701,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 67 68 70 71 72 73 75 76 77 78 83 88 92 93 96 127 128"},F:{"46":0.00701,"85":0.00701,"95":0.02104,"102":0.00701,"106":0.01403,"107":0.18234,"108":0.01403,"109":0.85559,"110":0.04909,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00701,"91":0.14727,"92":0.01403,"96":0.1052,"103":0.01403,"105":0.01403,"107":0.02104,"108":0.06312,"109":0.17533,"110":0.00701,"111":0.01403,"112":0.00701,"113":0.03507,"114":0.01403,"115":0.02104,"116":0.02104,"117":0.02104,"118":0.02805,"119":0.04909,"120":0.07714,"121":0.08416,"122":0.14026,"123":0.77844,"124":10.52651,"125":4.86702,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 93 94 95 97 98 99 100 101 102 104 106"},E:{"13":0.00701,"14":0.02805,"15":0.00701,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00701,"12.1":0.02805,"13.1":0.11922,"14.1":0.11922,"15.1":0.01403,"15.2-15.3":0.02104,"15.4":0.02805,"15.5":0.02805,"15.6":0.42078,"16.0":0.06312,"16.1":0.07714,"16.2":0.04909,"16.3":0.12623,"16.4":0.0561,"16.5":0.11922,"16.6":0.54,"17.0":0.06312,"17.1":0.14727,"17.2":0.20338,"17.3":0.15429,"17.4":2.60884,"17.5":0.51896},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00277,"5.0-5.1":0.00277,"6.0-6.1":0.00693,"7.0-7.1":0.0097,"8.1-8.4":0.00277,"9.0-9.2":0.00693,"9.3":0.03187,"10.0-10.2":0.00554,"10.3":0.04988,"11.0-11.2":0.07343,"11.3-11.4":0.01386,"12.0-12.1":0.00831,"12.2-12.5":0.2009,"13.0-13.1":0.00416,"13.2":0.0194,"13.3":0.0097,"13.4-13.7":0.04434,"14.0-14.4":0.0762,"14.5-14.8":0.11777,"15.0-15.1":0.05681,"15.2-15.3":0.06235,"15.4":0.07066,"15.5":0.08867,"15.6-15.8":0.79807,"16.0":0.18151,"16.1":0.37409,"16.2":0.18151,"16.3":0.31452,"16.4":0.06651,"16.5":0.1344,"16.6-16.7":1.07102,"17.0":0.11638,"17.1":0.18982,"17.2":0.19813,"17.3":0.36578,"17.4":8.30629,"17.5":0.58608,"17.6":0},P:{"4":0.05328,"20":0.01066,"21":0.03197,"22":0.03197,"23":0.07459,"24":0.22378,"25":2.25916,"5.0-5.4":0.01066,"6.2-6.4":0.01066,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","17.0":0.01066,"19.0":0.01066},I:{"0":0.02679,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.23008,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00701,"11":0.04909,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":12.80789},R:{_:"0"},M:{"0":0.53784},Q:{"14.9":0.00299},O:{"0":0.04781},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CI.js b/node_modules/caniuse-lite/data/regions/CI.js index d8d54dcf9..70d20f64c 100644 --- a/node_modules/caniuse-lite/data/regions/CI.js +++ b/node_modules/caniuse-lite/data/regions/CI.js @@ -1 +1 @@ -module.exports={C:{"42":0.00221,"47":0.00221,"52":0.00442,"56":0.00221,"60":0.00221,"68":0.00442,"72":0.00442,"78":0.00442,"82":0.00221,"88":0.00442,"89":0.00664,"98":0.00442,"106":0.0177,"111":0.00221,"113":0.00664,"114":0.00221,"115":0.12608,"117":0.00221,"119":0.00221,"120":0.00442,"121":0.00221,"122":0.00221,"123":0.00221,"124":0.00442,"125":0.00885,"126":0.02433,"127":0.09512,"128":0.07078,"129":0.00664,"132":0.00442,"133":0.00664,"134":0.00664,"135":0.00885,"136":0.03097,"137":0.01106,"138":0.04645,"139":0.78968,"140":0.15263,"141":0.00442,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 48 49 50 51 53 54 55 57 58 59 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 83 84 85 86 87 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 107 108 109 110 112 116 118 130 131 142 143 3.5 3.6"},D:{"11":0.00221,"38":0.00221,"39":0.00885,"40":0.00885,"41":0.00664,"42":0.00664,"43":0.00885,"44":0.00664,"45":0.00664,"46":0.00885,"47":0.01106,"48":0.00885,"49":0.03539,"50":0.00885,"51":0.00885,"52":0.00664,"53":0.00885,"54":0.00664,"55":0.00885,"56":0.01106,"57":0.00885,"58":0.01327,"59":0.00885,"60":0.00885,"62":0.00221,"63":0.00221,"64":0.01548,"65":0.00885,"66":0.00221,"67":0.00221,"68":0.00664,"69":0.00221,"70":0.00221,"72":0.00442,"73":0.01991,"74":0.00221,"75":0.00442,"76":0.00221,"77":0.00442,"78":0.00221,"79":0.02212,"80":0.00664,"81":0.01106,"83":0.0177,"84":0.00221,"85":0.00885,"86":0.00664,"87":0.04645,"88":0.00442,"89":0.00221,"90":0.00664,"91":0.00664,"92":0.00221,"93":0.00221,"94":0.00885,"95":0.01991,"97":0.00221,"98":0.01548,"99":0.00221,"100":0.00885,"101":0.00221,"103":0.02654,"104":0.00442,"105":0.00221,"106":0.00885,"107":0.00221,"108":0.00442,"109":0.65254,"110":0.03097,"111":0.02212,"112":0.00221,"113":0.0177,"114":0.01106,"115":0.00221,"116":0.05088,"117":0.00442,"118":0.00664,"119":0.13714,"120":0.01327,"121":0.00664,"122":0.01548,"123":0.00664,"124":0.00442,"125":1.3825,"126":0.05309,"127":0.01548,"128":0.06415,"129":0.01991,"130":0.01106,"131":0.07078,"132":0.03982,"133":0.0376,"134":0.07521,"135":0.11281,"136":1.13918,"137":6.97444,"138":0.4048,"139":0.0177,_:"4 5 6 7 8 9 10 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 61 71 96 102 140 141"},F:{"36":0.00221,"46":0.00221,"79":0.00221,"89":0.00664,"90":0.00442,"95":0.02212,"102":0.00221,"108":0.00221,"113":0.00221,"114":0.00221,"116":0.00442,"117":0.00442,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00221,"16":0.00221,"17":0.00221,"18":0.00885,"84":0.00221,"85":0.00664,"89":0.00664,"90":0.00442,"92":0.04424,"100":0.00664,"109":0.00442,"113":0.00221,"114":0.00221,"117":0.00221,"120":0.00221,"122":0.00664,"124":0.00221,"125":0.00442,"126":0.01327,"127":0.00221,"128":0.00221,"129":0.00221,"130":0.00221,"131":0.00885,"132":0.00885,"133":0.01327,"134":0.01548,"135":0.0177,"136":0.32516,"137":1.85808,"138":0.16811,_:"12 13 15 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 115 116 118 119 121 123"},E:{"13":0.00221,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 16.2 16.3 17.0 26.0","5.1":0.00221,"11.1":0.00442,"12.1":0.00221,"13.1":0.01991,"14.1":0.00664,"15.1":0.00221,"15.5":0.00442,"15.6":0.03539,"16.0":0.00221,"16.1":0.00221,"16.4":0.00221,"16.5":0.00221,"16.6":0.06636,"17.1":0.00442,"17.2":0.00221,"17.3":0.00221,"17.4":0.00442,"17.5":0.01991,"17.6":0.07963,"18.0":0.01548,"18.1":0.00442,"18.2":0.02212,"18.3":0.02654,"18.4":0.04866,"18.5":0.34065},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0022,"5.0-5.1":0,"6.0-6.1":0.00441,"7.0-7.1":0.00441,"8.1-8.4":0,"9.0-9.2":0.0022,"9.3":0.01323,"10.0-10.2":0.0011,"10.3":0.02204,"11.0-11.2":0.14107,"11.3-11.4":0.00772,"12.0-12.1":0.0022,"12.2-12.5":0.07384,"13.0-13.1":0.0011,"13.2":0.00331,"13.3":0.0022,"13.4-13.7":0.01212,"14.0-14.4":0.02866,"14.5-14.8":0.02866,"15.0-15.1":0.01984,"15.2-15.3":0.01984,"15.4":0.02425,"15.5":0.02645,"15.6-15.8":0.34166,"16.0":0.04519,"16.1":0.09258,"16.2":0.04739,"16.3":0.08707,"16.4":0.01984,"16.5":0.03527,"16.6-16.7":0.42873,"17.0":0.02315,"17.1":0.04078,"17.2":0.03196,"17.3":0.04519,"17.4":0.08046,"17.5":0.16863,"17.6-17.7":0.44086,"18.0":0.10911,"18.1":0.24578,"18.2":0.13005,"18.3":0.55879,"18.4":0.59295,"18.5":6.95122,"26.0":0},P:{"4":0.02124,"22":0.02124,"23":0.01062,"24":0.06373,"25":0.06373,"26":0.04249,"27":0.09559,"28":0.69039,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04249},I:{"0":0.12441,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.63227,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01991,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":68.69294},R:{_:"0"},M:{"0":0.08568},Q:{"14.9":0.03116},O:{"0":0.12462},H:{"0":0.17}}; +module.exports={C:{"47":0.00211,"50":0.00211,"52":0.00211,"57":0.00633,"66":0.00211,"68":0.01056,"72":0.00211,"78":0.00211,"79":0.00211,"81":0.00422,"91":0.00211,"94":0.00211,"95":0.00211,"102":0.00422,"103":0.00211,"106":0.00211,"111":0.00211,"114":0.00211,"115":0.13088,"118":0.00211,"120":0.00211,"121":0.00211,"122":0.00422,"123":0.00633,"124":0.01478,"125":0.53197,"126":0.45175,"127":0.00633,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 53 54 55 56 58 59 60 61 62 63 64 65 67 69 70 71 73 74 75 76 77 80 82 83 84 85 86 87 88 89 90 92 93 96 97 98 99 100 101 104 105 107 108 109 110 112 113 116 117 119 128 129 3.5 3.6"},D:{"31":0.00211,"34":0.00422,"40":0.00211,"41":0.00211,"47":0.00422,"49":0.01056,"50":0.00211,"53":0.01478,"55":0.00211,"56":0.00844,"58":0.01056,"64":0.00633,"65":0.00211,"66":0.00211,"67":0.00211,"68":0.00633,"69":0.00211,"70":0.00844,"71":0.00211,"72":0.00211,"73":0.00211,"75":0.00211,"76":0.00844,"77":0.00633,"78":0.00211,"79":0.01478,"80":0.00633,"81":0.019,"83":0.02322,"84":0.00211,"85":0.01056,"86":0.00211,"87":0.22166,"88":0.02744,"89":0.00422,"90":0.00422,"91":0.00633,"92":0.00211,"93":0.00633,"94":0.019,"95":0.02744,"96":0.00422,"97":0.01056,"98":0.00422,"99":0.03167,"100":0.00211,"101":0.00844,"102":0.00844,"103":0.057,"104":0.01267,"105":0.019,"106":0.01478,"107":0.01478,"108":0.01689,"109":2.05823,"110":0.00422,"111":0.00633,"112":0.00633,"113":0.00211,"114":0.01267,"115":0.00422,"116":0.06544,"117":0.00633,"118":0.00633,"119":0.08233,"120":0.14566,"121":0.08444,"122":0.05278,"123":0.29554,"124":6.62432,"125":2.50576,"126":0.00422,"127":0.00211,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 38 39 42 43 44 45 46 48 51 52 54 57 59 60 61 62 63 74 128"},F:{"46":0.00211,"68":0.00211,"79":0.00211,"95":0.05911,"102":0.00422,"104":0.00211,"107":0.01478,"108":0.00633,"109":0.60797,"110":0.05278,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00211,"13":0.00211,"14":0.00211,"15":0.00211,"16":0.00211,"17":0.00211,"18":0.02322,"79":0.00211,"84":0.00211,"85":0.00422,"89":0.00211,"90":0.00211,"92":0.02533,"100":0.00211,"107":0.00211,"109":0.01478,"112":0.00422,"114":0.00422,"115":0.00211,"116":0.00211,"118":0.00211,"119":0.01267,"120":0.00844,"121":0.00633,"122":0.03378,"123":0.06122,"124":1.42493,"125":0.67552,_:"80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 113 117"},E:{"14":0.00211,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 16.2 17.6","11.1":0.00211,"12.1":0.00422,"13.1":0.01689,"14.1":0.01056,"15.2-15.3":0.00211,"15.4":0.00211,"15.5":0.00211,"15.6":0.03167,"16.0":0.00211,"16.1":0.00211,"16.3":0.00844,"16.4":0.00211,"16.5":0.00422,"16.6":0.01267,"17.0":0.00844,"17.1":0.00844,"17.2":0.019,"17.3":0.02533,"17.4":0.11822,"17.5":0.03378},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00306,"5.0-5.1":0.00306,"6.0-6.1":0.00766,"7.0-7.1":0.01072,"8.1-8.4":0.00306,"9.0-9.2":0.00766,"9.3":0.03524,"10.0-10.2":0.00613,"10.3":0.05515,"11.0-11.2":0.0812,"11.3-11.4":0.01532,"12.0-12.1":0.00919,"12.2-12.5":0.22215,"13.0-13.1":0.0046,"13.2":0.02145,"13.3":0.01072,"13.4-13.7":0.04903,"14.0-14.4":0.08426,"14.5-14.8":0.13022,"15.0-15.1":0.06281,"15.2-15.3":0.06894,"15.4":0.07813,"15.5":0.09805,"15.6-15.8":0.88246,"16.0":0.2007,"16.1":0.41365,"16.2":0.2007,"16.3":0.34777,"16.4":0.07354,"16.5":0.14861,"16.6-16.7":1.18427,"17.0":0.12869,"17.1":0.20989,"17.2":0.21908,"17.3":0.40446,"17.4":9.1846,"17.5":0.64805,"17.6":0},P:{"4":0.05087,"20":0.02035,"21":0.05087,"22":0.08139,"23":0.11191,"24":0.19331,"25":0.57992,"5.0-5.4":0.01017,_:"6.2-6.4 8.2 9.2 12.0 13.0 14.0 15.0","7.2-7.4":0.25435,"10.1":0.01017,"11.1-11.2":0.01017,"16.0":0.02035,"17.0":0.01017,"18.0":0.03052,"19.0":0.0407},I:{"0":0.02357,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.5429,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00844,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00789,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.11655},R:{_:"0"},M:{"0":0.07889},Q:{"14.9":0.00789},O:{"0":0.12622},H:{"0":0.53}}; diff --git a/node_modules/caniuse-lite/data/regions/CK.js b/node_modules/caniuse-lite/data/regions/CK.js index 72c918726..1fd83c4a0 100644 --- a/node_modules/caniuse-lite/data/regions/CK.js +++ b/node_modules/caniuse-lite/data/regions/CK.js @@ -1 +1 @@ -module.exports={C:{"115":0.07553,"136":0.00302,"139":0.43502,"140":0.10876,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 141 142 143 3.5 3.6"},D:{"40":0.00302,"48":0.00302,"56":0.00302,"59":0.00302,"60":0.00302,"79":0.17522,"103":0.00302,"109":0.16918,"116":0.07855,"120":0.00302,"121":0.00302,"122":0.02417,"123":0.00604,"125":0.04532,"126":0.00604,"128":0.00906,"129":0.00604,"130":0.00302,"131":0.02417,"132":0.01813,"133":0.02719,"134":0.07553,"135":0.1148,"136":1.45914,"137":19.66369,"138":0.80359,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 49 50 51 52 53 54 55 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 124 127 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"122":0.01511,"135":0.03625,"136":0.35648,"137":2.21137,"138":0.17522,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 131 132 133 134"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 16.1 16.4 17.0 26.0","14.1":0.00302,"15.1":0.15709,"15.5":0.00302,"15.6":0.04229,"16.0":0.03021,"16.2":0.00906,"16.3":0.00906,"16.5":0.00906,"16.6":0.13292,"17.1":0.08157,"17.2":0.02719,"17.3":0.01511,"17.4":0.07855,"17.5":0.02417,"17.6":0.1722,"18.0":0.03021,"18.1":0.03625,"18.2":0.03323,"18.3":0.06042,"18.4":0.1148,"18.5":1.18725},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00415,"5.0-5.1":0,"6.0-6.1":0.0083,"7.0-7.1":0.0083,"8.1-8.4":0,"9.0-9.2":0.00415,"9.3":0.0249,"10.0-10.2":0.00207,"10.3":0.0415,"11.0-11.2":0.26558,"11.3-11.4":0.01452,"12.0-12.1":0.00415,"12.2-12.5":0.13902,"13.0-13.1":0.00207,"13.2":0.00622,"13.3":0.00415,"13.4-13.7":0.02282,"14.0-14.4":0.05395,"14.5-14.8":0.05395,"15.0-15.1":0.03735,"15.2-15.3":0.03735,"15.4":0.04565,"15.5":0.0498,"15.6-15.8":0.64321,"16.0":0.08507,"16.1":0.17429,"16.2":0.08922,"16.3":0.16391,"16.4":0.03735,"16.5":0.0664,"16.6-16.7":0.80712,"17.0":0.04357,"17.1":0.07677,"17.2":0.06017,"17.3":0.08507,"17.4":0.15146,"17.5":0.31745,"17.6-17.7":0.82994,"18.0":0.20541,"18.1":0.46269,"18.2":0.24483,"18.3":1.05195,"18.4":1.11627,"18.5":13.08612,"26.0":0},P:{"4":23.38355,"22":0.07077,"23":0.04044,"24":0.27296,"25":0.12132,"26":0.05055,"27":0.11121,"28":2.58806,_:"20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.02094,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.60259},R:{_:"0"},M:{"0":0.15354},Q:{"14.9":0.04187},O:{"0":0.01396},H:{"0":0}}; +module.exports={C:{"78":0.00395,"84":0.00395,"115":0.14995,"122":0.00395,"124":0.06314,"125":0.3433,"126":0.39065,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 127 128 129 3.5 3.6"},D:{"65":0.00395,"81":0.00395,"87":0.00789,"94":0.11838,"101":0.00789,"103":0.0513,"109":0.75763,"111":0.00789,"116":0.17757,"117":0.00789,"119":0.00789,"120":0.0947,"121":0.15784,"122":0.23281,"123":1.01807,"124":20.06936,"125":10.157,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 88 89 90 91 92 93 95 96 97 98 99 100 102 104 105 106 107 108 110 112 113 114 115 118 126 127 128"},F:{"109":0.25254,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00395,"116":0.00395,"117":0.00395,"119":0.01184,"122":0.00789,"123":0.09076,"124":2.05981,"125":1.17985,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 118 120 121"},E:{"14":0.02368,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.5 16.2 16.4 17.0 17.6","13.1":0.00789,"14.1":0.08681,"15.2-15.3":0.02368,"15.4":0.00395,"15.6":0.03157,"16.0":0.01578,"16.1":0.00789,"16.3":0.07103,"16.5":0.05524,"16.6":0.13416,"17.1":0.13416,"17.2":0.00395,"17.3":0.05524,"17.4":0.76947,"17.5":0.03157},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0049,"5.0-5.1":0.0049,"6.0-6.1":0.01224,"7.0-7.1":0.01714,"8.1-8.4":0.0049,"9.0-9.2":0.01224,"9.3":0.05632,"10.0-10.2":0.0098,"10.3":0.08816,"11.0-11.2":0.12979,"11.3-11.4":0.02449,"12.0-12.1":0.01469,"12.2-12.5":0.35508,"13.0-13.1":0.00735,"13.2":0.03428,"13.3":0.01714,"13.4-13.7":0.07836,"14.0-14.4":0.13469,"14.5-14.8":0.20815,"15.0-15.1":0.1004,"15.2-15.3":0.1102,"15.4":0.12489,"15.5":0.15673,"15.6-15.8":1.41053,"16.0":0.3208,"16.1":0.66119,"16.2":0.3208,"16.3":0.55589,"16.4":0.11754,"16.5":0.23754,"16.6-16.7":1.89296,"17.0":0.2057,"17.1":0.33549,"17.2":0.35018,"17.3":0.64649,"17.4":14.68081,"17.5":1.03586,"17.6":0},P:{"20":0.051,"21":0.07139,"22":0.12239,"23":0.14279,"24":0.98932,"25":2.88638,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.0102,"11.1-11.2":0.0306,"19.0":0.0306},I:{"0":0.00603,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.01816,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.0513,"11":0.0947,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.48983},R:{_:"0"},M:{"0":0.19978},Q:{_:"14.9"},O:{"0":0.15135},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CL.js b/node_modules/caniuse-lite/data/regions/CL.js index 36f6ad5f7..98871e456 100644 --- a/node_modules/caniuse-lite/data/regions/CL.js +++ b/node_modules/caniuse-lite/data/regions/CL.js @@ -1 +1 @@ -module.exports={C:{"3":0.0044,"4":0.0132,"52":0.0088,"78":0.0044,"115":0.0748,"120":0.0132,"125":0.0044,"128":0.022,"132":0.0044,"134":0.0044,"135":0.0044,"136":0.0088,"137":0.0088,"138":0.0484,"139":0.8448,"140":0.1276,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 126 127 129 130 131 133 141 142 143 3.5 3.6"},D:{"38":0.0044,"39":0.0132,"40":0.0132,"41":0.0088,"42":0.0132,"43":0.0088,"44":0.0132,"45":0.0088,"46":0.0088,"47":0.0132,"48":0.0792,"49":0.0176,"50":0.0088,"51":0.0088,"52":0.0088,"53":0.0132,"54":0.0132,"55":0.0132,"56":0.0132,"57":0.0088,"58":0.0132,"59":0.0088,"60":0.0088,"65":0.0088,"74":0.0132,"75":0.0044,"79":0.0484,"80":0.0044,"81":0.0044,"87":0.0308,"89":0.0044,"91":0.0044,"92":0.0044,"93":0.0044,"94":0.0044,"96":0.0044,"98":0.0044,"99":0.0044,"100":0.0044,"101":0.0044,"102":0.0132,"103":0.0264,"104":0.0088,"105":0.0044,"106":0.0044,"107":0.0088,"108":0.0264,"109":0.6864,"110":0.0088,"111":0.0352,"112":0.0044,"113":0.0088,"114":0.0132,"115":0.0044,"116":0.1232,"117":0.0044,"118":0.0132,"119":0.0176,"120":0.022,"121":0.0176,"122":0.0748,"123":0.0132,"124":0.0396,"125":0.352,"126":0.0352,"127":0.0308,"128":0.1276,"129":0.0132,"130":0.0176,"131":0.0924,"132":0.066,"133":0.066,"134":0.1188,"135":0.1892,"136":2.7016,"137":18.8276,"138":0.7744,"139":0.0044,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 66 67 68 69 70 71 72 73 76 77 78 83 84 85 86 88 90 95 97 140 141"},F:{"89":0.0088,"90":0.0088,"95":0.0132,"114":0.0044,"116":0.0088,"117":0.0044,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0044,"92":0.0132,"109":0.0264,"122":0.0044,"127":0.0044,"128":0.0088,"129":0.0088,"130":0.0088,"131":0.0308,"132":0.0264,"133":0.0132,"134":0.0792,"135":0.0308,"136":0.5632,"137":3.7268,"138":0.3652,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126"},E:{"4":0.0088,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 17.0 26.0","12.1":0.0044,"13.1":0.0176,"14.1":0.0132,"15.4":0.0044,"15.5":0.0044,"15.6":0.0484,"16.0":0.0088,"16.1":0.0088,"16.2":0.0044,"16.3":0.022,"16.4":0.0088,"16.5":0.0088,"16.6":0.0704,"17.1":0.0264,"17.2":0.0044,"17.3":0.0044,"17.4":0.0264,"17.5":0.0264,"17.6":0.1144,"18.0":0.0132,"18.1":0.0176,"18.2":0.0132,"18.3":0.0704,"18.4":0.0616,"18.5":0.5808},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0017,"5.0-5.1":0,"6.0-6.1":0.0034,"7.0-7.1":0.0034,"8.1-8.4":0,"9.0-9.2":0.0017,"9.3":0.0102,"10.0-10.2":0.00085,"10.3":0.01699,"11.0-11.2":0.10876,"11.3-11.4":0.00595,"12.0-12.1":0.0017,"12.2-12.5":0.05693,"13.0-13.1":0.00085,"13.2":0.00255,"13.3":0.0017,"13.4-13.7":0.00935,"14.0-14.4":0.02209,"14.5-14.8":0.02209,"15.0-15.1":0.01529,"15.2-15.3":0.01529,"15.4":0.01869,"15.5":0.02039,"15.6-15.8":0.2634,"16.0":0.03484,"16.1":0.07137,"16.2":0.03654,"16.3":0.06712,"16.4":0.01529,"16.5":0.02719,"16.6-16.7":0.33052,"17.0":0.01784,"17.1":0.03144,"17.2":0.02464,"17.3":0.03484,"17.4":0.06203,"17.5":0.13,"17.6-17.7":0.33987,"18.0":0.08412,"18.1":0.18948,"18.2":0.10026,"18.3":0.43078,"18.4":0.45712,"18.5":5.35888,"26.0":0},P:{"4":0.07281,"21":0.0104,"22":0.0104,"23":0.0104,"24":0.0208,"25":0.0208,"26":0.03121,"27":0.06241,"28":1.1026,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.0104,"7.2-7.4":0.03121},I:{"0":0.02237,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.15123,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.17209,"9":0.03227,"10":0.06453,"11":0.21511,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.79126},R:{_:"0"},M:{"0":0.16803},Q:{_:"14.9"},O:{"0":0.0168},H:{"0":0}}; +module.exports={C:{"4":0.01866,"52":0.00622,"78":0.01244,"101":0.00622,"103":0.00622,"105":0.00622,"110":0.00622,"111":0.00622,"115":0.1182,"120":0.01866,"121":0.00622,"122":0.00622,"123":0.00622,"124":0.01866,"125":0.48524,"126":0.44169,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 104 106 107 108 109 112 113 114 116 117 118 119 127 128 129 3.5 3.6"},D:{"38":0.01244,"47":0.00622,"49":0.00622,"65":0.00622,"74":0.00622,"79":0.04355,"81":0.00622,"86":0.00622,"87":0.03733,"88":0.00622,"89":0.00622,"91":0.01244,"93":0.00622,"94":0.00622,"96":0.00622,"99":0.01244,"100":0.00622,"101":0.00622,"102":0.01244,"103":0.06221,"104":0.00622,"105":0.00622,"106":0.00622,"107":0.01244,"108":0.01866,"109":1.22554,"110":0.01244,"111":0.00622,"112":0.01244,"113":0.04355,"114":0.05599,"115":0.01244,"116":0.16797,"117":0.02488,"118":0.01866,"119":0.03733,"120":0.06843,"121":0.08709,"122":0.21774,"123":0.55989,"124":14.37673,"125":5.85396,"126":0.00622,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 75 76 77 78 80 83 84 85 90 92 95 97 98 127 128"},F:{"95":0.01866,"107":1.05757,"108":0.01866,"109":3.10428,"110":0.07465,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01244,"109":0.03111,"114":0.00622,"119":0.00622,"120":0.01866,"121":0.01244,"122":0.01866,"123":0.08087,"124":2.15869,"125":1.23176,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118"},E:{"14":0.00622,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.02488,"14.1":0.03111,"15.1":0.00622,"15.2-15.3":0.00622,"15.4":0.00622,"15.5":0.01244,"15.6":0.09332,"16.0":0.00622,"16.1":0.01866,"16.2":0.00622,"16.3":0.04977,"16.4":0.01244,"16.5":0.01866,"16.6":0.07465,"17.0":0.01244,"17.1":0.02488,"17.2":0.02488,"17.3":0.03111,"17.4":0.46658,"17.5":0.08709},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00138,"5.0-5.1":0.00138,"6.0-6.1":0.00345,"7.0-7.1":0.00483,"8.1-8.4":0.00138,"9.0-9.2":0.00345,"9.3":0.01585,"10.0-10.2":0.00276,"10.3":0.02481,"11.0-11.2":0.03653,"11.3-11.4":0.00689,"12.0-12.1":0.00414,"12.2-12.5":0.09995,"13.0-13.1":0.00207,"13.2":0.00965,"13.3":0.00483,"13.4-13.7":0.02206,"14.0-14.4":0.03791,"14.5-14.8":0.05859,"15.0-15.1":0.02826,"15.2-15.3":0.03102,"15.4":0.03515,"15.5":0.04411,"15.6-15.8":0.39703,"16.0":0.0903,"16.1":0.18611,"16.2":0.0903,"16.3":0.15647,"16.4":0.03309,"16.5":0.06686,"16.6-16.7":0.53282,"17.0":0.0579,"17.1":0.09443,"17.2":0.09857,"17.3":0.18197,"17.4":4.13229,"17.5":0.29157,"17.6":0},P:{"4":0.05344,"20":0.01069,"21":0.02137,"22":0.03206,"23":0.05344,"24":0.11756,"25":1.026,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0","6.2-6.4":0.01069,"7.2-7.4":0.01069,"11.1-11.2":0.01069,"16.0":0.01069,"19.0":0.01069},I:{"0":0.08281,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":0.18139,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00622,"11":0.03111,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.51215},R:{_:"0"},M:{"0":0.15494},Q:{_:"14.9"},O:{"0":0.01512},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CM.js b/node_modules/caniuse-lite/data/regions/CM.js index 2b031ee88..b8dda4494 100644 --- a/node_modules/caniuse-lite/data/regions/CM.js +++ b/node_modules/caniuse-lite/data/regions/CM.js @@ -1 +1 @@ -module.exports={C:{"42":0.00246,"43":0.00246,"48":0.00246,"49":0.00246,"50":0.00246,"51":0.00737,"52":0.01229,"56":0.00492,"58":0.00246,"59":0.00246,"65":0.00246,"69":0.00246,"72":0.00983,"73":0.00246,"83":0.00246,"84":0.00246,"86":0.00246,"90":0.00246,"95":0.00246,"100":0.00246,"102":0.00246,"103":0.00492,"106":0.00246,"107":0.00246,"110":0.00492,"111":0.00246,"112":0.00737,"114":0.00492,"115":0.18681,"116":0.00246,"120":0.00246,"122":0.00246,"123":0.00737,"124":0.00492,"125":0.00492,"127":0.03687,"128":0.06637,"130":0.00246,"131":0.00492,"132":0.00246,"133":0.00737,"134":0.00983,"135":0.02212,"136":0.05899,"137":0.03441,"138":0.16714,"139":1.35436,"140":0.14256,"141":0.00983,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 46 47 53 54 55 57 60 61 62 63 64 66 67 68 70 71 74 75 76 77 78 79 80 81 82 85 87 88 89 91 92 93 94 96 97 98 99 101 104 105 108 109 113 117 118 119 121 126 129 142 143 3.5 3.6"},D:{"36":0.00246,"38":0.00246,"39":0.00246,"40":0.00246,"41":0.00492,"42":0.00246,"43":0.00246,"44":0.00246,"45":0.00246,"46":0.00492,"47":0.00492,"48":0.00737,"49":0.01721,"50":0.00246,"51":0.00246,"52":0.00246,"53":0.00246,"54":0.00246,"55":0.00492,"56":0.02212,"57":0.00492,"58":0.01721,"59":0.00246,"60":0.00492,"61":0.00246,"62":0.00246,"63":0.00246,"64":0.00492,"65":0.00246,"66":0.00246,"67":0.00737,"68":0.00246,"69":0.00492,"70":0.00983,"71":0.00246,"72":0.00737,"73":0.00983,"74":0.00492,"75":0.00246,"77":0.00983,"78":0.00246,"79":0.01475,"80":0.00737,"81":0.01475,"83":0.00492,"86":0.00492,"87":0.01229,"88":0.00492,"89":0.01475,"90":0.00737,"91":0.01475,"92":0.00737,"93":0.01229,"94":0.00246,"95":0.03933,"96":0.00246,"98":0.00246,"99":0.00246,"100":0.00246,"101":0.00246,"102":0.00492,"103":0.04916,"104":0.11553,"105":0.01229,"106":0.01229,"107":0.00983,"108":0.00983,"109":0.34658,"110":0.00246,"111":0.14011,"112":0.00983,"113":0.00246,"114":0.02458,"115":0.00246,"116":0.03687,"117":0.00737,"118":0.01721,"119":0.05653,"120":0.01475,"121":0.00983,"122":0.04424,"123":0.03441,"124":0.02458,"125":0.37853,"126":0.07128,"127":0.01966,"128":0.06882,"129":0.02212,"130":0.08111,"131":0.11061,"132":0.05653,"133":0.07374,"134":0.11061,"135":0.17206,"136":1.2585,"137":7.30272,"138":0.2925,"139":0.01229,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 76 84 85 97 140 141"},F:{"36":0.00246,"42":0.00492,"44":0.00246,"62":0.00246,"79":0.01475,"86":0.01966,"87":0.00246,"88":0.00246,"89":0.01475,"90":0.00737,"95":0.03195,"100":0.00246,"113":0.00492,"114":0.00737,"115":0.00492,"116":0.00246,"117":0.01229,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 91 92 93 94 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00983,"13":0.00492,"14":0.01721,"15":0.00737,"16":0.00737,"17":0.01229,"18":0.03687,"84":0.00983,"85":0.00246,"89":0.02458,"90":0.00983,"92":0.09586,"95":0.00246,"100":0.07128,"102":0.00246,"109":0.00737,"114":0.00492,"115":0.01475,"119":0.00246,"120":0.00737,"121":0.00246,"122":0.01475,"123":0.00246,"124":0.00737,"125":0.00246,"126":0.00492,"127":0.01966,"128":0.00246,"129":0.00983,"130":0.01229,"131":0.02704,"132":0.01475,"133":0.04179,"134":0.03687,"135":0.09832,"136":0.43261,"137":1.90987,"138":0.13273,_:"79 80 81 83 86 87 88 91 93 94 96 97 98 99 101 103 104 105 106 107 108 110 111 112 113 116 117 118"},E:{"10":0.00246,"11":0.00246,"13":0.00246,"14":0.00492,_:"0 4 5 6 7 8 9 12 15 3.1 3.2 6.1 7.1 9.1 10.1 16.0 16.2 16.4 17.0 17.2 26.0","5.1":0.00246,"11.1":0.00737,"12.1":0.00246,"13.1":0.01721,"14.1":0.00983,"15.1":0.00246,"15.2-15.3":0.00246,"15.4":0.00737,"15.5":0.00246,"15.6":0.02458,"16.1":0.00246,"16.3":0.00246,"16.5":0.00492,"16.6":0.01475,"17.1":0.00246,"17.3":0.00492,"17.4":0.00737,"17.5":0.00246,"17.6":0.07374,"18.0":0.00246,"18.1":0.00983,"18.2":0.00492,"18.3":0.00737,"18.4":0.00983,"18.5":0.06637},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00151,"5.0-5.1":0,"6.0-6.1":0.00302,"7.0-7.1":0.00302,"8.1-8.4":0,"9.0-9.2":0.00151,"9.3":0.00905,"10.0-10.2":0.00075,"10.3":0.01508,"11.0-11.2":0.09652,"11.3-11.4":0.00528,"12.0-12.1":0.00151,"12.2-12.5":0.05052,"13.0-13.1":0.00075,"13.2":0.00226,"13.3":0.00151,"13.4-13.7":0.0083,"14.0-14.4":0.01961,"14.5-14.8":0.01961,"15.0-15.1":0.01357,"15.2-15.3":0.01357,"15.4":0.01659,"15.5":0.0181,"15.6-15.8":0.23377,"16.0":0.03092,"16.1":0.06334,"16.2":0.03243,"16.3":0.05957,"16.4":0.01357,"16.5":0.02413,"16.6-16.7":0.29334,"17.0":0.01584,"17.1":0.0279,"17.2":0.02187,"17.3":0.03092,"17.4":0.05505,"17.5":0.11538,"17.6-17.7":0.30164,"18.0":0.07466,"18.1":0.16816,"18.2":0.08898,"18.3":0.38233,"18.4":0.40571,"18.5":4.75611,"26.0":0},P:{"4":0.03124,"21":0.02083,"22":0.04166,"23":0.02083,"24":0.03124,"25":0.10414,"26":0.05207,"27":0.13538,"28":0.34365,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 17.0 18.0","7.2-7.4":0.02083,"9.2":0.02083,"11.1-11.2":0.01041,"15.0":0.02083,"16.0":0.01041,"19.0":0.01041},I:{"0":0.03764,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":3.52444,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00246,"11":0.25563,_:"6 7 9 10 5.5"},S:{"2.5":0.01508,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.50393},R:{_:"0"},M:{"0":0.17344},Q:{"14.9":0.00754},O:{"0":0.41476},H:{"0":1.89}}; +module.exports={C:{"4":0.00129,"42":0.00388,"43":0.00129,"47":0.00258,"48":0.00129,"49":0.00129,"50":0.00258,"51":0.00388,"52":0.01292,"53":0.00129,"58":0.00129,"60":0.00129,"64":0.00129,"72":0.00775,"78":0.0168,"82":0.00129,"91":0.00129,"99":0.00258,"100":0.00129,"102":0.00129,"103":0.00129,"105":0.00258,"106":0.00129,"107":0.00129,"108":0.00129,"110":0.00129,"111":0.00129,"112":0.00646,"113":0.00129,"114":0.04134,"115":0.21447,"116":0.00129,"117":0.00129,"118":0.00129,"119":0.00129,"120":0.01421,"121":0.00388,"122":0.00646,"123":0.00904,"124":0.03618,"125":0.40181,"126":0.27003,"127":0.00258,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 46 54 55 56 57 59 61 62 63 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 101 104 109 128 129 3.5 3.6"},D:{"11":0.00129,"26":0.00129,"29":0.00129,"35":0.00129,"38":0.00517,"41":0.00129,"43":0.00129,"49":0.00129,"55":0.00129,"56":0.02196,"57":0.00258,"58":0.00388,"62":0.00129,"64":0.00129,"65":0.0155,"66":0.00129,"67":0.00129,"68":0.02455,"69":0.00258,"70":0.00388,"71":0.00129,"72":0.00258,"73":0.00129,"74":0.00258,"75":0.00129,"76":0.00129,"77":0.00129,"79":0.00258,"80":0.00258,"81":0.00517,"83":0.00258,"84":0.00129,"85":0.0168,"86":0.00388,"87":0.01809,"88":0.00258,"89":0.00775,"90":0.00388,"91":0.00258,"92":0.00129,"93":0.00904,"94":0.00258,"95":0.01163,"96":0.00258,"97":0.00129,"99":0.00775,"100":0.00129,"101":0.00388,"102":0.01034,"103":0.01809,"104":0.00129,"105":0.00258,"106":0.00258,"107":0.00388,"108":0.02196,"109":0.7261,"110":0.00517,"111":0.00646,"112":0.00388,"113":0.00129,"114":0.00904,"115":0.01034,"116":0.02326,"117":0.01163,"118":0.00388,"119":0.02584,"120":0.03618,"121":0.03488,"122":0.07623,"123":0.18217,"124":2.77392,"125":0.91732,"126":0.00129,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 33 34 36 37 39 40 42 44 45 46 47 48 50 51 52 53 54 59 60 61 63 78 98 127 128"},F:{"42":0.00129,"44":0.00258,"46":0.00129,"64":0.00129,"66":0.00129,"79":0.00388,"85":0.00129,"90":0.00129,"95":0.0155,"106":0.00258,"107":0.01163,"108":0.0168,"109":0.26874,"110":0.02972,_:"9 11 12 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 43 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00775,"13":0.00258,"14":0.01163,"15":0.00388,"16":0.00258,"17":0.00775,"18":0.03359,"84":0.00388,"89":0.00517,"90":0.00517,"92":0.02842,"100":0.00775,"103":0.00129,"107":0.00517,"109":0.00904,"113":0.00129,"114":0.00258,"115":0.00258,"116":0.00388,"117":0.00258,"118":0.00388,"119":0.00388,"120":0.01421,"121":0.0168,"122":0.0323,"123":0.03747,"124":0.66667,"125":0.26228,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 108 110 111 112"},E:{"10":0.00388,"14":0.00646,_:"0 4 5 6 7 8 9 11 12 13 15 3.1 3.2 5.1 6.1 9.1 10.1 12.1 15.5 16.2 17.6","7.1":0.00129,"11.1":0.00258,"13.1":0.00775,"14.1":0.00129,"15.1":0.00129,"15.2-15.3":0.00129,"15.4":0.00129,"15.6":0.0168,"16.0":0.00129,"16.1":0.00129,"16.3":0.00258,"16.4":0.00129,"16.5":0.00388,"16.6":0.0155,"17.0":0.00388,"17.1":0.00517,"17.2":0.00646,"17.3":0.00258,"17.4":0.01938,"17.5":0.01034},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00221,"5.0-5.1":0.00221,"6.0-6.1":0.00552,"7.0-7.1":0.00772,"8.1-8.4":0.00221,"9.0-9.2":0.00552,"9.3":0.02538,"10.0-10.2":0.00441,"10.3":0.03972,"11.0-11.2":0.05848,"11.3-11.4":0.01103,"12.0-12.1":0.00662,"12.2-12.5":0.15998,"13.0-13.1":0.00331,"13.2":0.01545,"13.3":0.00772,"13.4-13.7":0.03531,"14.0-14.4":0.06068,"14.5-14.8":0.09378,"15.0-15.1":0.04524,"15.2-15.3":0.04965,"15.4":0.05627,"15.5":0.07061,"15.6-15.8":0.6355,"16.0":0.14453,"16.1":0.29789,"16.2":0.14453,"16.3":0.25045,"16.4":0.05296,"16.5":0.10702,"16.6-16.7":0.85285,"17.0":0.09268,"17.1":0.15115,"17.2":0.15777,"17.3":0.29127,"17.4":6.61431,"17.5":0.4667,"17.6":0},P:{"4":0.1254,"20":0.03135,"21":0.0418,"22":0.05225,"23":0.1045,"24":0.16719,"25":0.16719,"5.0-5.4":0.0209,"6.2-6.4":0.01045,"7.2-7.4":0.0627,_:"8.2 10.1 12.0 15.0 17.0 18.0","9.2":0.0209,"11.1-11.2":0.0209,"13.0":0.01045,"14.0":0.01045,"16.0":0.0209,"19.0":0.0209},I:{"0":0.04337,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":1.49682,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00266,"11":0.04127,_:"6 7 9 10 5.5"},S:{"2.5":0.07837,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":74.43944},R:{_:"0"},M:{"0":0.09579},Q:{_:"14.9"},O:{"0":0.20899},H:{"0":3.31}}; diff --git a/node_modules/caniuse-lite/data/regions/CN.js b/node_modules/caniuse-lite/data/regions/CN.js index e7289e67f..3520bcad0 100644 --- a/node_modules/caniuse-lite/data/regions/CN.js +++ b/node_modules/caniuse-lite/data/regions/CN.js @@ -1 +1 @@ -module.exports={C:{"5":0.02677,"34":0.00335,"43":0.02342,"52":0.00335,"63":0.00335,"72":0.00335,"78":0.00669,"108":0.00335,"109":0.00335,"110":0.00335,"111":0.00335,"115":0.10373,"116":0.00669,"118":0.00335,"121":0.00669,"127":0.01673,"128":0.01004,"130":0.00335,"131":0.00335,"132":0.00335,"133":0.01004,"134":0.00669,"135":0.02342,"136":0.01004,"137":0.00669,"138":0.01673,"139":0.31452,"140":0.03681,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 112 113 114 117 119 120 122 123 124 125 126 129 141 142 143 3.5 3.6"},D:{"11":0.00669,"31":0.00335,"39":0.01673,"40":0.01673,"41":0.01673,"42":0.01673,"43":0.01673,"44":0.01673,"45":0.02342,"46":0.01338,"47":0.01673,"48":0.05019,"49":0.04015,"50":0.07361,"51":0.01673,"52":0.01673,"53":0.03681,"54":0.01673,"55":0.02677,"56":0.01673,"57":0.02677,"58":0.02342,"59":0.01673,"60":0.01673,"61":0.00669,"62":0.01004,"63":0.01004,"65":0.00335,"66":0.00335,"67":0.00335,"68":0.00335,"69":0.11711,"70":0.2108,"71":0.00669,"72":0.00669,"73":0.02008,"74":0.01004,"75":0.01338,"76":0.00335,"77":0.00335,"78":0.04684,"79":0.11042,"80":0.02677,"81":0.01338,"83":0.08365,"84":0.01004,"85":0.01004,"86":0.12715,"87":0.05354,"88":0.01004,"89":0.02008,"90":0.01338,"91":0.05019,"92":0.06023,"93":0.00335,"94":0.01004,"95":0.01338,"96":0.01338,"97":0.10707,"98":0.35468,"99":0.05354,"100":0.02677,"101":0.13719,"102":0.02008,"103":0.02677,"104":0.00669,"105":0.00669,"106":0.01004,"107":0.03011,"108":0.0803,"109":0.85323,"110":0.01338,"111":0.04015,"112":0.66585,"113":0.01004,"114":0.27103,"115":0.14388,"116":0.02008,"117":0.02342,"118":0.05354,"119":0.22753,"120":0.06023,"121":0.06023,"122":0.11042,"123":0.94023,"124":0.32122,"125":0.23422,"126":0.11042,"127":0.04015,"128":0.13384,"129":0.04684,"130":0.4584,"131":0.11042,"132":0.04684,"133":0.04684,"134":0.14053,"135":0.07361,"136":0.29779,"137":1.69642,"138":0.04684,"139":0.04684,"140":0.00335,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 64 141"},F:{"95":0.00335,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00335,"18":0.01673,"84":0.00335,"87":0.00335,"89":0.00335,"92":0.09369,"94":0.00335,"96":0.00335,"99":0.00335,"100":0.01673,"102":0.00335,"103":0.00335,"104":0.00335,"105":0.00335,"106":0.02008,"107":0.01338,"108":0.02008,"109":0.16061,"110":0.02008,"111":0.02342,"112":0.03011,"113":0.08365,"114":0.10373,"115":0.07027,"116":0.03681,"117":0.03346,"118":0.03346,"119":0.03681,"120":0.40152,"121":0.0435,"122":0.07361,"123":0.05019,"124":0.05019,"125":0.05354,"126":0.1238,"127":0.16061,"128":0.087,"129":0.10038,"130":0.09703,"131":0.26099,"132":0.10038,"133":0.16395,"134":0.17399,"135":0.26768,"136":1.59604,"137":7.32105,"138":0.63574,_:"12 13 14 15 17 79 80 81 83 85 86 88 90 91 93 95 97 98 101"},E:{"9":0.00335,"13":0.01004,"14":0.04015,"15":0.00669,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00335,"13.1":0.0435,"14.1":0.05019,"15.1":0.01338,"15.2-15.3":0.00669,"15.4":0.02342,"15.5":0.02677,"15.6":0.14722,"16.0":0.01673,"16.1":0.04015,"16.2":0.02677,"16.3":0.0435,"16.4":0.01673,"16.5":0.02008,"16.6":0.16395,"17.0":0.00669,"17.1":0.06023,"17.2":0.01338,"17.3":0.02008,"17.4":0.02677,"17.5":0.05688,"17.6":0.11042,"18.0":0.02342,"18.1":0.04015,"18.2":0.02677,"18.3":0.10038,"18.4":0.07361,"18.5":0.5889,"26.0":0.00335},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0,"6.0-6.1":0.0051,"7.0-7.1":0.0051,"8.1-8.4":0,"9.0-9.2":0.00255,"9.3":0.01531,"10.0-10.2":0.00128,"10.3":0.02551,"11.0-11.2":0.16327,"11.3-11.4":0.00893,"12.0-12.1":0.00255,"12.2-12.5":0.08546,"13.0-13.1":0.00128,"13.2":0.00383,"13.3":0.00255,"13.4-13.7":0.01403,"14.0-14.4":0.03316,"14.5-14.8":0.03316,"15.0-15.1":0.02296,"15.2-15.3":0.02296,"15.4":0.02806,"15.5":0.03061,"15.6-15.8":0.39543,"16.0":0.0523,"16.1":0.10715,"16.2":0.05485,"16.3":0.10077,"16.4":0.02296,"16.5":0.04082,"16.6-16.7":0.4962,"17.0":0.02679,"17.1":0.0472,"17.2":0.03699,"17.3":0.0523,"17.4":0.09312,"17.5":0.19516,"17.6-17.7":0.51023,"18.0":0.12628,"18.1":0.28445,"18.2":0.15052,"18.3":0.64671,"18.4":0.68626,"18.5":8.04503,"26.0":0},P:{"21":0.01099,"26":0.01099,"27":0.03298,"28":0.18689,_:"4 20 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01099},I:{"0":6.45669,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00129,"4.4":0,"4.4.3-4.4.4":0.00517},K:{"0":0.02662,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.08919,"11":5.85665,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.67589},R:{_:"0"},M:{"0":0.19297},Q:{"14.9":3.08746},O:{"0":6.4943},H:{"0":0}}; +module.exports={C:{"4":0.00351,"34":0.01053,"43":0.13693,"52":0.01053,"72":0.00351,"78":0.00351,"83":0.00351,"84":0.00702,"88":0.00351,"90":0.00351,"97":0.00351,"102":0.00351,"103":0.00702,"106":0.00351,"108":0.00351,"109":0.00351,"110":0.00351,"111":0.00351,"113":0.00351,"114":0.00351,"115":0.14395,"116":0.01053,"117":0.00351,"118":0.00351,"119":0.00351,"120":0.00351,"121":0.01053,"122":0.00351,"123":0.00702,"124":0.16853,"125":0.26333,"126":0.23173,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 85 86 87 89 91 92 93 94 95 96 98 99 100 101 104 105 107 112 127 128 129 3.5 3.6"},D:{"11":0.01756,"17":0.00351,"31":0.00702,"39":0.00351,"41":0.00351,"42":0.00351,"43":0.00351,"45":0.01053,"47":0.01053,"48":0.05618,"49":0.06671,"50":0.17204,"53":0.02107,"54":0.00351,"55":0.03511,"56":0.00702,"57":0.02809,"58":0.00702,"59":0.00702,"60":0.00702,"61":0.02107,"62":0.01053,"63":0.02458,"65":0.00702,"66":0.00351,"67":0.02107,"68":0.00351,"69":0.50558,"70":0.15448,"71":0.02107,"72":0.01053,"73":0.07724,"74":0.00702,"75":0.02458,"76":0.03511,"77":0.05969,"78":0.07022,"79":0.17555,"80":0.05267,"81":0.02107,"83":0.0948,"84":0.04564,"85":0.01404,"86":0.21417,"87":0.07022,"88":0.01053,"89":0.0316,"90":0.10533,"91":0.0316,"92":0.12991,"93":0.00702,"94":0.02809,"95":0.05618,"96":0.01756,"97":0.12991,"98":1.22885,"99":0.23173,"100":0.10533,"101":0.14395,"102":0.04564,"103":0.05618,"104":0.0316,"105":0.01756,"106":0.02458,"107":0.05267,"108":0.04915,"109":1.15512,"110":0.02458,"111":0.0632,"112":0.14395,"113":0.03511,"114":0.0632,"115":0.02458,"116":0.06671,"117":0.02458,"118":0.05969,"119":0.08426,"120":0.20013,"121":0.17555,"122":0.1264,"123":0.41079,"124":1.77306,"125":0.8286,"126":0.0316,"127":0.01053,_:"4 5 6 7 8 9 10 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 40 44 46 51 52 64 128"},F:{"95":0.00351,"109":0.01756,"110":0.00351,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00351,"15":0.00351,"16":0.00702,"17":0.00351,"18":0.04915,"84":0.00351,"86":0.00351,"87":0.00351,"88":0.00702,"89":0.00351,"90":0.00351,"91":0.00351,"92":0.08778,"93":0.00351,"94":0.00351,"96":0.00351,"99":0.00351,"100":0.01404,"101":0.00351,"102":0.00702,"103":0.00351,"104":0.00351,"105":0.00702,"106":0.01053,"107":0.01756,"108":0.03511,"109":0.13693,"110":0.0316,"111":0.03511,"112":0.03862,"113":0.17204,"114":0.12991,"115":0.07022,"116":0.0632,"117":0.06671,"118":0.07724,"119":0.10884,"120":0.22822,"121":0.15448,"122":0.36866,"123":0.48452,"124":4.43088,"125":2.35237,_:"12 13 79 80 81 83 85 95 97 98"},E:{"5":0.00351,"9":0.00351,"13":0.01053,"14":0.05267,"15":0.01053,_:"0 4 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00351,"12.1":0.01053,"13.1":0.0632,"14.1":0.06671,"15.1":0.01404,"15.2-15.3":0.01756,"15.4":0.0316,"15.5":0.04564,"15.6":0.15448,"16.0":0.01756,"16.1":0.04564,"16.2":0.03862,"16.3":0.07022,"16.4":0.02107,"16.5":0.03511,"16.6":0.17204,"17.0":0.01404,"17.1":0.02809,"17.2":0.03862,"17.3":0.04915,"17.4":0.49154,"17.5":0.04915},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00225,"5.0-5.1":0.00225,"6.0-6.1":0.00562,"7.0-7.1":0.00786,"8.1-8.4":0.00225,"9.0-9.2":0.00562,"9.3":0.02583,"10.0-10.2":0.00449,"10.3":0.04044,"11.0-11.2":0.05953,"11.3-11.4":0.01123,"12.0-12.1":0.00674,"12.2-12.5":0.16287,"13.0-13.1":0.00337,"13.2":0.01573,"13.3":0.00786,"13.4-13.7":0.03594,"14.0-14.4":0.06178,"14.5-14.8":0.09548,"15.0-15.1":0.04605,"15.2-15.3":0.05055,"15.4":0.05729,"15.5":0.07189,"15.6-15.8":0.64699,"16.0":0.14715,"16.1":0.30328,"16.2":0.14715,"16.3":0.25498,"16.4":0.05392,"16.5":0.10895,"16.6-16.7":0.86827,"17.0":0.09435,"17.1":0.15388,"17.2":0.16062,"17.3":0.29654,"17.4":6.73386,"17.5":0.47513,"17.6":0},P:{"21":0.01209,"22":0.01209,"23":0.01209,"24":0.03628,"25":0.1814,_:"4 20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01209},I:{"0":0.98248,"3":0,"4":0.0001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.0002,"4.2-4.3":0.00059,"4.4":0,"4.4.3-4.4.4":0.00217},K:{"0":0.04542,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.11083,"9":1.99486,"10":0.05541,"11":6.76035,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.36314},R:{_:"0"},M:{"0":0.1752},Q:{"14.9":5.5481},O:{"0":8.35783},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CO.js b/node_modules/caniuse-lite/data/regions/CO.js index 334415269..053377996 100644 --- a/node_modules/caniuse-lite/data/regions/CO.js +++ b/node_modules/caniuse-lite/data/regions/CO.js @@ -1 +1 @@ -module.exports={C:{"4":0.03398,"78":0.00142,"101":0.00283,"115":0.01841,"120":0.00425,"123":0.00142,"125":0.00425,"128":0.0085,"133":0.00142,"134":0.00142,"135":0.00142,"136":0.00142,"137":0.00283,"138":0.00991,"139":0.21806,"140":0.0354,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 124 126 127 129 130 131 132 141 142 143 3.5 3.6"},D:{"38":0.00283,"39":0.00425,"40":0.00425,"41":0.00425,"42":0.00425,"43":0.00425,"44":0.00566,"45":0.00425,"46":0.00425,"47":0.00566,"48":0.00425,"49":0.00566,"50":0.00425,"51":0.00425,"52":0.00425,"53":0.00425,"54":0.00425,"55":0.00425,"56":0.00566,"57":0.00425,"58":0.00425,"59":0.00425,"60":0.00425,"63":0.00142,"71":0.00142,"73":0.00142,"75":0.00142,"79":0.02124,"81":0.00142,"83":0.00142,"85":0.00142,"87":0.01982,"88":0.00142,"89":0.00142,"91":0.00142,"93":0.00283,"94":0.00142,"95":0.00142,"96":0.00142,"97":0.00142,"98":0.00142,"100":0.00142,"101":0.00142,"102":0.00283,"103":0.01982,"104":0.00566,"105":0.00142,"106":0.00425,"107":0.00142,"108":0.01416,"109":0.2209,"110":0.00425,"111":0.01274,"112":0.00142,"113":0.00142,"114":0.00566,"116":0.03398,"118":0.00425,"119":0.00566,"120":0.00991,"121":0.0085,"122":0.03257,"123":0.01274,"124":0.00991,"125":0.26762,"126":0.03682,"127":0.02974,"128":0.06089,"129":0.00708,"130":0.00991,"131":0.03257,"132":0.03398,"133":0.02974,"134":0.02832,"135":0.08638,"136":0.79579,"137":6.9738,"138":0.30586,"139":0.00142,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 64 65 66 67 68 69 70 72 74 76 77 78 80 84 86 90 92 99 115 117 140 141"},F:{"89":0.00425,"90":0.00142,"95":0.00566,"114":0.00142,"117":0.00142,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00142,"92":0.00425,"109":0.00425,"121":0.00142,"122":0.00283,"126":0.00142,"127":0.00142,"128":0.00142,"129":0.00283,"130":0.00283,"131":0.00425,"132":0.00425,"133":0.00283,"134":0.03257,"135":0.00991,"136":0.17275,"137":1.0974,"138":0.10478,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 123 124 125"},E:{"14":0.00142,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 17.0","5.1":0.00425,"13.1":0.00425,"14.1":0.00425,"15.6":0.01841,"16.0":0.00142,"16.1":0.00283,"16.3":0.00283,"16.4":0.00142,"16.5":0.00142,"16.6":0.01841,"17.1":0.00566,"17.2":0.00142,"17.3":0.00283,"17.4":0.00425,"17.5":0.0085,"17.6":0.02407,"18.0":0.00283,"18.1":0.00566,"18.2":0.00425,"18.3":0.01982,"18.4":0.01982,"18.5":0.18125,"26.0":0.00142},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00118,"5.0-5.1":0,"6.0-6.1":0.00236,"7.0-7.1":0.00236,"8.1-8.4":0,"9.0-9.2":0.00118,"9.3":0.00707,"10.0-10.2":0.00059,"10.3":0.01178,"11.0-11.2":0.07538,"11.3-11.4":0.00412,"12.0-12.1":0.00118,"12.2-12.5":0.03946,"13.0-13.1":0.00059,"13.2":0.00177,"13.3":0.00118,"13.4-13.7":0.00648,"14.0-14.4":0.01531,"14.5-14.8":0.01531,"15.0-15.1":0.0106,"15.2-15.3":0.0106,"15.4":0.01296,"15.5":0.01413,"15.6-15.8":0.18257,"16.0":0.02415,"16.1":0.04947,"16.2":0.02532,"16.3":0.04653,"16.4":0.0106,"16.5":0.01885,"16.6-16.7":0.22909,"17.0":0.01237,"17.1":0.02179,"17.2":0.01708,"17.3":0.02415,"17.4":0.04299,"17.5":0.09011,"17.6-17.7":0.23557,"18.0":0.0583,"18.1":0.13133,"18.2":0.06949,"18.3":0.29859,"18.4":0.31684,"18.5":3.71439,"26.0":0},P:{"4":0.03005,"22":0.01002,"23":0.01002,"24":0.01002,"25":0.01002,"26":0.01002,"27":0.03005,"28":0.39062,_:"20 21 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01002,"7.2-7.4":0.03005},I:{"0":0.39424,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00032},K:{"0":0.05151,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00166,"11":0.03657,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":80.20576},R:{_:"0"},M:{"0":0.07727},Q:{_:"14.9"},O:{"0":0.00859},H:{"0":0}}; +module.exports={C:{"4":0.09505,"52":0.0038,"78":0.0076,"80":0.0038,"88":0.0038,"101":0.02661,"103":0.0038,"113":0.0038,"115":0.07984,"120":0.01901,"121":0.0038,"122":0.0038,"123":0.0076,"124":0.01901,"125":0.39921,"126":0.36119,"127":0.0038,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 128 129 3.5 3.6"},D:{"38":0.01141,"47":0.0076,"49":0.0076,"51":0.0038,"56":0.0038,"63":0.0038,"65":0.0038,"72":0.01521,"73":0.0038,"75":0.0038,"76":0.0038,"77":0.0038,"79":0.07224,"80":0.0038,"81":0.0038,"83":0.0038,"85":0.0038,"86":0.0038,"87":0.05323,"88":0.01521,"89":0.01141,"90":0.0038,"91":0.0076,"92":0.0038,"93":0.0076,"94":0.01521,"95":0.0076,"96":0.0038,"97":0.0076,"98":0.0038,"99":0.01141,"100":0.0076,"101":0.0076,"102":0.0038,"103":0.06083,"104":0.01141,"105":0.01141,"106":0.01521,"107":0.01521,"108":0.01521,"109":1.53981,"110":0.01901,"111":0.0076,"112":0.01521,"113":0.01521,"114":0.05703,"115":0.01521,"116":0.14067,"117":0.01901,"118":0.04182,"119":0.08745,"120":0.13307,"121":0.14828,"122":0.29656,"123":0.63113,"124":17.60706,"125":7.26182,"126":0.01141,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 52 53 54 55 57 58 59 60 61 62 64 66 67 68 69 70 71 74 78 84 127 128"},F:{"86":0.0038,"95":0.02281,"102":0.0038,"107":0.50186,"108":0.0038,"109":1.61205,"110":0.04562,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0076,"92":0.01521,"100":0.0038,"109":0.02661,"111":0.0038,"115":0.0038,"116":0.0038,"117":0.0038,"118":0.0038,"119":0.0076,"120":0.01141,"121":0.01521,"122":0.02661,"123":0.11406,"124":2.36104,"125":1.25846,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 112 113 114"},E:{"9":0.0038,"14":0.0076,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.03042,"12.1":0.0038,"13.1":0.01901,"14.1":0.02661,"15.1":0.0038,"15.2-15.3":0.0038,"15.4":0.0038,"15.5":0.0076,"15.6":0.06463,"16.0":0.0038,"16.1":0.01141,"16.2":0.0076,"16.3":0.02661,"16.4":0.01141,"16.5":0.01901,"16.6":0.06463,"17.0":0.02661,"17.1":0.01901,"17.2":0.03042,"17.3":0.03422,"17.4":0.384,"17.5":0.06463},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00226,"5.0-5.1":0.00226,"6.0-6.1":0.00565,"7.0-7.1":0.00791,"8.1-8.4":0.00226,"9.0-9.2":0.00565,"9.3":0.02598,"10.0-10.2":0.00452,"10.3":0.04067,"11.0-11.2":0.05987,"11.3-11.4":0.0113,"12.0-12.1":0.00678,"12.2-12.5":0.16381,"13.0-13.1":0.00339,"13.2":0.01582,"13.3":0.00791,"13.4-13.7":0.03615,"14.0-14.4":0.06213,"14.5-14.8":0.09603,"15.0-15.1":0.04632,"15.2-15.3":0.05084,"15.4":0.05762,"15.5":0.0723,"15.6-15.8":0.65071,"16.0":0.14799,"16.1":0.30502,"16.2":0.14799,"16.3":0.25644,"16.4":0.05423,"16.5":0.10958,"16.6-16.7":0.87327,"17.0":0.0949,"17.1":0.15477,"17.2":0.16155,"17.3":0.29824,"17.4":6.77263,"17.5":0.47787,"17.6":0},P:{"4":0.1023,"20":0.02046,"21":0.02046,"22":0.03069,"23":0.05115,"24":0.1023,"25":0.84909,"5.0-5.4":0.02046,"6.2-6.4":0.01023,"7.2-7.4":0.05115,_:"8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","11.1-11.2":0.01023,"17.0":0.01023,"19.0":0.01023},I:{"0":0.04321,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.14253,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00432,"11":0.09073,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.9952},R:{_:"0"},M:{"0":0.14253},Q:{_:"14.9"},O:{"0":0.01239},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CR.js b/node_modules/caniuse-lite/data/regions/CR.js index 87839dbde..66c9e3511 100644 --- a/node_modules/caniuse-lite/data/regions/CR.js +++ b/node_modules/caniuse-lite/data/regions/CR.js @@ -1 +1 @@ -module.exports={C:{"52":0.00254,"78":0.00254,"88":0.00254,"102":0.00254,"113":0.00254,"115":0.14957,"120":0.01521,"125":0.00254,"128":0.01521,"132":0.00254,"133":0.00254,"134":0.00254,"135":0.00507,"136":0.02028,"137":0.00254,"138":0.03296,"139":0.99879,"140":0.12168,"141":0.00761,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 121 122 123 124 126 127 129 130 131 142 143 3.5 3.6"},D:{"39":0.00507,"40":0.00507,"41":0.00507,"42":0.00507,"43":0.00761,"44":0.00507,"45":0.00507,"46":0.00507,"47":0.00761,"48":0.00507,"49":0.00507,"50":0.00761,"51":0.00507,"52":0.00507,"53":0.00761,"54":0.00507,"55":0.00507,"56":0.00507,"57":0.00507,"58":0.00507,"59":0.00507,"60":0.00507,"65":0.00254,"73":0.00254,"75":0.00507,"79":0.02028,"80":0.00761,"81":0.00254,"83":0.00254,"85":0.00254,"87":0.06591,"91":0.00254,"98":0.04056,"99":0.00254,"101":0.00254,"102":0.00507,"103":0.02028,"104":0.00254,"108":0.00507,"109":0.1445,"110":0.00761,"111":0.01014,"112":0.00254,"113":0.00254,"114":0.01014,"115":0.00254,"116":0.02282,"118":0.00507,"119":0.01014,"120":0.00507,"121":0.00507,"122":0.03549,"123":0.01014,"124":0.01268,"125":1.84802,"126":0.02282,"127":0.00761,"128":0.05577,"129":0.00761,"130":0.01268,"131":0.05577,"132":0.02789,"133":0.0431,"134":0.05831,"135":0.09633,"136":1.65789,"137":10.10451,"138":0.32448,"139":0.00254,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 74 76 77 78 84 86 88 89 90 92 93 94 95 96 97 100 105 106 107 117 140 141"},F:{"46":0.00254,"88":0.00254,"89":0.01014,"90":0.00507,"95":0.00761,"117":0.00254,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00761,"100":0.00254,"109":0.00254,"110":0.00254,"111":0.00254,"114":0.00507,"116":0.00254,"121":0.00254,"122":0.00507,"124":0.00254,"125":0.00254,"126":0.00507,"127":0.00761,"128":0.00254,"129":0.00761,"130":0.01268,"131":0.01268,"132":0.02028,"133":0.01014,"134":0.04563,"135":0.01775,"136":0.38532,"137":2.75808,"138":0.32448,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 112 113 115 117 118 119 120 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3","5.1":0.00254,"11.1":0.00254,"13.1":0.00507,"14.1":0.00761,"15.4":0.00254,"15.5":0.00254,"15.6":0.03549,"16.0":0.00761,"16.1":0.01014,"16.2":0.00254,"16.3":0.01014,"16.4":0.00507,"16.5":0.00761,"16.6":0.06084,"17.0":0.00254,"17.1":0.19266,"17.2":0.00254,"17.3":0.00507,"17.4":0.02282,"17.5":0.06084,"17.6":0.07352,"18.0":0.01014,"18.1":0.02789,"18.2":0.01014,"18.3":0.05577,"18.4":0.08873,"18.5":0.79853,"26.0":0.00254},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00153,"5.0-5.1":0,"6.0-6.1":0.00305,"7.0-7.1":0.00305,"8.1-8.4":0,"9.0-9.2":0.00153,"9.3":0.00915,"10.0-10.2":0.00076,"10.3":0.01526,"11.0-11.2":0.09764,"11.3-11.4":0.00534,"12.0-12.1":0.00153,"12.2-12.5":0.05111,"13.0-13.1":0.00076,"13.2":0.00229,"13.3":0.00153,"13.4-13.7":0.00839,"14.0-14.4":0.01983,"14.5-14.8":0.01983,"15.0-15.1":0.01373,"15.2-15.3":0.01373,"15.4":0.01678,"15.5":0.01831,"15.6-15.8":0.23647,"16.0":0.03128,"16.1":0.06408,"16.2":0.0328,"16.3":0.06026,"16.4":0.01373,"16.5":0.02441,"16.6-16.7":0.29674,"17.0":0.01602,"17.1":0.02822,"17.2":0.02212,"17.3":0.03128,"17.4":0.05569,"17.5":0.11671,"17.6-17.7":0.30513,"18.0":0.07552,"18.1":0.17011,"18.2":0.09001,"18.3":0.38675,"18.4":0.4104,"18.5":4.81111,"26.0":0},P:{"4":0.03017,"21":0.01006,"22":0.01006,"23":0.02012,"25":0.01006,"26":0.05029,"27":0.04023,"28":1.20694,_:"20 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02012,"13.0":0.01006,"14.0":0.01006},I:{"0":0.02981,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.25378,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.02912},R:{_:"0"},M:{"0":0.32095},Q:{_:"14.9"},O:{"0":0.02239},H:{"0":0}}; +module.exports={C:{"52":0.00438,"78":0.00438,"88":0.00438,"89":0.01752,"102":0.00438,"105":0.00876,"110":0.00438,"115":0.30653,"118":0.00438,"119":0.00438,"120":0.02627,"121":0.00438,"122":0.00876,"123":0.02627,"124":0.04379,"125":0.92835,"126":0.83201,"127":0.00438,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 90 91 92 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 111 112 113 114 116 117 128 129 3.5 3.6"},D:{"43":0.00438,"44":0.00438,"45":0.00438,"46":0.00438,"47":0.00438,"51":0.00438,"65":0.00438,"67":0.00438,"69":0.00438,"70":0.00438,"73":0.00876,"79":0.03065,"80":0.00876,"81":0.00438,"83":0.01314,"86":0.04817,"87":0.03065,"91":0.00438,"92":0.00438,"93":0.00438,"94":0.00876,"95":0.00438,"96":0.03503,"97":0.00438,"98":0.00438,"99":0.00876,"102":0.00438,"103":0.05255,"104":0.00438,"105":0.0219,"106":0.01314,"107":0.00438,"108":0.00876,"109":0.61744,"110":0.01752,"111":0.00438,"112":0.00876,"113":0.00876,"114":0.03503,"115":0.00876,"116":0.12261,"117":0.00876,"118":0.0219,"119":0.0832,"120":0.10072,"121":0.07882,"122":0.26712,"123":0.69188,"124":21.40893,"125":6.34517,"126":0.00438,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 66 68 71 72 74 75 76 77 78 84 85 88 89 90 100 101 127 128"},F:{"95":0.01314,"105":0.01314,"107":0.53862,"108":0.01314,"109":1.67716,"110":0.05255,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00438,"18":0.00438,"92":0.0219,"109":0.02627,"114":0.00438,"115":0.00438,"116":0.00438,"117":0.00438,"118":0.00438,"119":0.01314,"120":0.01314,"121":0.01752,"122":0.03065,"123":0.0832,"124":3.08282,"125":1.65964,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113"},E:{"9":0.01314,"14":0.00438,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.01314,"13.1":0.02627,"14.1":0.03941,"15.1":0.05693,"15.2-15.3":0.00438,"15.4":0.01752,"15.5":0.0219,"15.6":0.16202,"16.0":0.01752,"16.1":0.03065,"16.2":0.01314,"16.3":0.05255,"16.4":0.01314,"16.5":0.04817,"16.6":0.17954,"17.0":0.0219,"17.1":0.05255,"17.2":0.03503,"17.3":0.07882,"17.4":1.37939,"17.5":0.24522},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00248,"5.0-5.1":0.00248,"6.0-6.1":0.00619,"7.0-7.1":0.00866,"8.1-8.4":0.00248,"9.0-9.2":0.00619,"9.3":0.02847,"10.0-10.2":0.00495,"10.3":0.04456,"11.0-11.2":0.0656,"11.3-11.4":0.01238,"12.0-12.1":0.00743,"12.2-12.5":0.17947,"13.0-13.1":0.00371,"13.2":0.01733,"13.3":0.00866,"13.4-13.7":0.03961,"14.0-14.4":0.06808,"14.5-14.8":0.10521,"15.0-15.1":0.05075,"15.2-15.3":0.0557,"15.4":0.06312,"15.5":0.07922,"15.6-15.8":0.71294,"16.0":0.16214,"16.1":0.33419,"16.2":0.16214,"16.3":0.28097,"16.4":0.05941,"16.5":0.12006,"16.6-16.7":0.95678,"17.0":0.10397,"17.1":0.16957,"17.2":0.177,"17.3":0.32676,"17.4":7.42028,"17.5":0.52357,"17.6":0},P:{"4":0.04091,"20":0.01023,"21":0.04091,"22":0.12274,"23":0.09206,"24":0.15343,"25":2.50595,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0","6.2-6.4":0.02046,"7.2-7.4":0.05114,"14.0":0.01023,"17.0":0.03069,"18.0":0.01023,"19.0":0.02046},I:{"0":0.07839,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00017},K:{"0":0.36661,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0219,"9":0.00438,"10":0.00438,"11":0.05255,_:"6 7 5.5"},S:{"2.5":0.00562,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.53868},R:{_:"0"},M:{"0":0.48903},Q:{_:"14.9"},O:{"0":0.06745},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/CU.js b/node_modules/caniuse-lite/data/regions/CU.js index 0e5abf230..9dad7bd63 100644 --- a/node_modules/caniuse-lite/data/regions/CU.js +++ b/node_modules/caniuse-lite/data/regions/CU.js @@ -1 +1 @@ -module.exports={C:{"4":0.39969,"34":0.00213,"41":0.00213,"43":0.00425,"45":0.00213,"46":0.00213,"47":0.00213,"48":0.00213,"49":0.00213,"50":0.00638,"52":0.0085,"54":0.02976,"56":0.00213,"57":0.01063,"59":0.00213,"60":0.00638,"62":0.00213,"63":0.00213,"64":0.00213,"65":0.00425,"66":0.00425,"68":0.02126,"71":0.00213,"72":0.01488,"75":0.00213,"77":0.00213,"78":0.00638,"79":0.00213,"81":0.00213,"82":0.00425,"83":0.00213,"84":0.00425,"85":0.00425,"86":0.00213,"87":0.00213,"88":0.00425,"89":0.00638,"90":0.00213,"91":0.00213,"92":0.01063,"93":0.00213,"94":0.0085,"95":0.01063,"96":0.00213,"97":0.00638,"98":0.00425,"99":0.00638,"100":0.01063,"101":0.00213,"102":0.01276,"103":0.00638,"104":0.00425,"105":0.01488,"106":0.0085,"107":0.00425,"108":0.00425,"109":0.00425,"110":0.01276,"111":0.01913,"112":0.00638,"113":0.01913,"114":0.00425,"115":0.83127,"116":0.00638,"117":0.00213,"118":0.00425,"119":0.00213,"120":0.00425,"121":0.00425,"122":0.02126,"123":0.01063,"124":0.00638,"125":0.02126,"126":0.00638,"127":0.10205,"128":0.17858,"129":0.01276,"130":0.02551,"131":0.01488,"132":0.02551,"133":0.02551,"134":0.07441,"135":0.05102,"136":0.0978,"137":0.1148,"138":0.28063,"139":3.1805,"140":0.35079,"141":0.01063,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 42 44 51 53 55 58 61 67 69 70 73 74 76 80 142 143 3.5 3.6"},D:{"42":0.00213,"51":0.00213,"52":0.00213,"54":0.00213,"56":0.00213,"61":0.00213,"63":0.00425,"64":0.00213,"65":0.00213,"66":0.00425,"68":0.00213,"69":0.00425,"70":0.00425,"71":0.00425,"72":0.00213,"73":0.00213,"74":0.00425,"75":0.00425,"76":0.00213,"79":0.00638,"80":0.01913,"81":0.0085,"83":0.00213,"85":0.00213,"86":0.00638,"87":0.0085,"88":0.05953,"89":0.00425,"90":0.0574,"91":0.00638,"92":0.00213,"93":0.00638,"94":0.00425,"96":0.00425,"97":0.00425,"98":0.02551,"99":0.01063,"100":0.00213,"101":0.00213,"102":0.00638,"103":0.01063,"105":0.00425,"106":0.00638,"107":0.01063,"108":0.0085,"109":0.27425,"110":0.00425,"111":0.01701,"112":0.01488,"113":0.00425,"114":0.01488,"115":0.00213,"116":0.05953,"117":0.00425,"118":0.01913,"119":0.01276,"120":0.01276,"121":0.01063,"122":0.01488,"123":0.02551,"124":0.01701,"125":0.28914,"126":0.02764,"127":0.02339,"128":0.01063,"129":0.09354,"130":0.01488,"131":0.07654,"132":0.02976,"133":0.03614,"134":0.11268,"135":0.15307,"136":0.66119,"137":3.53979,"138":0.07441,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 53 55 57 58 59 60 62 67 77 78 84 95 104 139 140 141"},F:{"34":0.00213,"45":0.00213,"48":0.00213,"49":0.00213,"64":0.00213,"74":0.00213,"79":0.01701,"80":0.00425,"84":0.00213,"86":0.00213,"87":0.00425,"88":0.00425,"89":0.03614,"90":0.01276,"93":0.00213,"95":0.03402,"99":0.00213,"101":0.00213,"102":0.00213,"104":0.00213,"105":0.00213,"106":0.00213,"108":0.00638,"109":0.00213,"112":0.00425,"113":0.00213,"114":0.00638,"115":0.00425,"116":0.00425,"117":0.01913,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 46 47 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 75 76 77 78 81 82 83 85 91 92 94 96 97 98 100 103 107 110 111 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00425,"13":0.00638,"14":0.01276,"15":0.00425,"16":0.00425,"17":0.01276,"18":0.03189,"80":0.00213,"83":0.00213,"84":0.01276,"88":0.00213,"89":0.01063,"90":0.02126,"91":0.00213,"92":0.19347,"94":0.00213,"96":0.00638,"98":0.00213,"99":0.00213,"100":0.05315,"106":0.00213,"107":0.00213,"109":0.02126,"111":0.0085,"112":0.00213,"113":0.00425,"114":0.00213,"115":0.00213,"116":0.00213,"118":0.00213,"119":0.00213,"120":0.01488,"121":0.00425,"122":0.03189,"123":0.00213,"124":0.00638,"125":0.0085,"126":0.01276,"127":0.00425,"128":0.00638,"129":0.01276,"130":0.01488,"131":0.06803,"132":0.02764,"133":0.03189,"134":0.06591,"135":0.08079,"136":0.46347,"137":1.64978,"138":0.10205,_:"79 81 85 86 87 93 95 97 101 102 103 104 105 108 110 117"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.3 17.4 26.0","5.1":0.02126,"13.1":0.00425,"14.1":0.00425,"15.6":0.00638,"16.1":0.00213,"16.4":0.01913,"16.6":0.0085,"17.0":0.00213,"17.1":0.00213,"17.2":0.00425,"17.5":0.00425,"17.6":0.01488,"18.0":0.00213,"18.1":0.0085,"18.2":0.00213,"18.3":0.01701,"18.4":0.00213,"18.5":0.04677},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00047,"5.0-5.1":0,"6.0-6.1":0.00094,"7.0-7.1":0.00094,"8.1-8.4":0,"9.0-9.2":0.00047,"9.3":0.00283,"10.0-10.2":0.00024,"10.3":0.00471,"11.0-11.2":0.03014,"11.3-11.4":0.00165,"12.0-12.1":0.00047,"12.2-12.5":0.01578,"13.0-13.1":0.00024,"13.2":0.00071,"13.3":0.00047,"13.4-13.7":0.00259,"14.0-14.4":0.00612,"14.5-14.8":0.00612,"15.0-15.1":0.00424,"15.2-15.3":0.00424,"15.4":0.00518,"15.5":0.00565,"15.6-15.8":0.07299,"16.0":0.00965,"16.1":0.01978,"16.2":0.01012,"16.3":0.0186,"16.4":0.00424,"16.5":0.00753,"16.6-16.7":0.09159,"17.0":0.00494,"17.1":0.00871,"17.2":0.00683,"17.3":0.00965,"17.4":0.01719,"17.5":0.03603,"17.6-17.7":0.09419,"18.0":0.02331,"18.1":0.05251,"18.2":0.02778,"18.3":0.11938,"18.4":0.12668,"18.5":1.48506,"26.0":0},P:{"4":0.08225,"20":0.01028,"21":0.05141,"22":0.06169,"23":0.04113,"24":0.17478,"25":0.23647,"26":0.10281,"27":0.18506,"28":0.51406,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0","7.2-7.4":0.09253,"9.2":0.02056,"11.1-11.2":0.01028,"13.0":0.02056,"14.0":0.02056,"15.0":0.02056,"16.0":0.04113,"17.0":0.13366,"18.0":0.01028,"19.0":0.02056},I:{"0":0.03145,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.54275,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00304,"11":0.01822,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":77.84116},R:{_:"0"},M:{"0":0.26775},Q:{"14.9":0.02363},O:{"0":0.03938},H:{"0":0.04}}; +module.exports={C:{"4":0.39594,"34":0.10717,"41":0.00893,"42":0.00298,"43":0.00298,"44":0.00595,"45":0.00298,"46":0.00298,"47":0.00298,"48":0.00595,"49":0.00298,"50":0.00893,"52":0.01786,"53":0.00298,"54":0.09229,"56":0.00893,"57":0.02679,"59":0.00298,"60":0.00595,"61":0.00298,"62":0.00298,"63":0.00893,"64":0.01489,"65":0.00595,"66":0.00298,"67":0.00298,"68":0.00893,"69":0.01191,"70":0.00298,"71":0.00298,"72":0.04168,"73":0.00298,"74":0.00298,"75":0.00595,"77":0.00298,"78":0.01786,"79":0.00298,"80":0.00298,"81":0.00298,"82":0.00893,"83":0.01786,"84":0.00893,"85":0.00298,"86":0.00298,"87":0.00893,"88":0.03572,"89":0.00893,"90":0.00595,"91":0.02382,"92":0.00595,"93":0.01489,"94":0.01191,"95":0.01489,"96":0.00893,"97":0.01489,"98":0.01786,"99":0.02084,"100":0.05061,"101":0.07145,"102":0.03572,"103":0.01191,"104":0.03275,"105":0.00595,"106":0.02679,"107":0.02084,"108":0.02977,"109":0.01191,"110":0.02679,"111":0.01191,"112":0.01786,"113":0.09229,"114":0.01191,"115":1.1521,"116":0.04168,"117":0.03572,"118":0.02977,"119":0.02679,"120":0.03572,"121":0.04763,"122":0.10717,"123":0.06847,"124":0.22923,"125":2.37565,"126":1.75345,"127":0.02084,"128":0.00298,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 51 55 58 76 129 3.5 3.6"},D:{"22":0.00298,"29":0.00298,"40":0.00298,"49":0.00298,"54":0.00595,"58":0.00298,"63":0.00298,"68":0.02084,"70":0.01786,"71":0.00893,"72":0.00298,"74":0.00298,"75":0.00298,"76":0.00298,"77":0.00298,"78":0.00298,"79":0.00595,"80":0.00595,"81":0.01786,"83":0.00595,"84":0.00298,"85":0.00298,"86":0.01786,"87":0.02084,"88":0.05954,"89":0.04168,"90":0.05954,"91":0.02382,"92":0.01489,"93":0.00595,"94":0.03275,"95":0.00298,"96":0.00595,"97":0.36319,"98":0.00893,"99":0.01191,"100":0.00893,"101":0.02679,"102":3.52179,"103":0.04466,"104":0.00595,"105":0.01786,"106":0.01489,"107":0.62219,"108":0.64899,"109":0.55075,"110":0.0387,"111":0.02382,"112":0.03572,"113":0.1429,"114":0.03572,"115":0.01191,"116":0.259,"117":0.02084,"118":0.04466,"119":0.10122,"120":0.16374,"121":0.1042,"122":0.11908,"123":0.98836,"124":4.10528,"125":1.69391,"126":0.00298,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 50 51 52 53 55 56 57 59 60 61 62 64 65 66 67 69 73 127 128"},F:{"34":0.00298,"36":0.00298,"42":0.00298,"50":0.00298,"57":0.00298,"58":0.00298,"60":0.00298,"64":0.01191,"78":0.00893,"79":0.08336,"85":0.00298,"87":0.00595,"92":0.00298,"94":0.00298,"95":0.06252,"99":0.00298,"100":0.00298,"104":0.02382,"105":0.00893,"106":0.00893,"107":0.10122,"108":0.03275,"109":0.8157,"110":0.04168,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 43 44 45 46 47 48 49 51 52 53 54 55 56 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 80 81 82 83 84 86 88 89 90 91 93 96 97 98 101 102 103 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00893,"13":0.00893,"14":0.03275,"15":0.00298,"16":0.00595,"17":0.00595,"18":0.02977,"84":0.01786,"89":0.01489,"90":0.01489,"92":0.1429,"100":0.05359,"103":0.00298,"107":0.00298,"109":0.02084,"111":0.00298,"112":0.01786,"113":0.00298,"114":0.01489,"115":0.00893,"116":0.00893,"117":0.00893,"118":0.00893,"119":0.03275,"120":0.03572,"121":0.02679,"122":0.08931,"123":0.15183,"124":1.14317,"125":0.50609,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 108 110"},E:{"13":0.00298,"14":0.00298,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 14.1 15.1 15.2-15.3 15.5 16.0 16.1 17.6","5.1":0.06549,"12.1":0.00298,"13.1":0.01191,"15.4":0.00298,"15.6":0.01489,"16.2":0.00298,"16.3":0.00595,"16.4":0.00298,"16.5":0.00298,"16.6":0.01786,"17.0":0.00298,"17.1":0.00595,"17.2":0.00298,"17.3":0.00298,"17.4":0.04466,"17.5":0.01489},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00098,"5.0-5.1":0.00098,"6.0-6.1":0.00245,"7.0-7.1":0.00344,"8.1-8.4":0.00098,"9.0-9.2":0.00245,"9.3":0.01129,"10.0-10.2":0.00196,"10.3":0.01767,"11.0-11.2":0.02602,"11.3-11.4":0.00491,"12.0-12.1":0.00295,"12.2-12.5":0.07118,"13.0-13.1":0.00147,"13.2":0.00687,"13.3":0.00344,"13.4-13.7":0.01571,"14.0-14.4":0.027,"14.5-14.8":0.04173,"15.0-15.1":0.02013,"15.2-15.3":0.02209,"15.4":0.02504,"15.5":0.03142,"15.6-15.8":0.28276,"16.0":0.06431,"16.1":0.13255,"16.2":0.06431,"16.3":0.11144,"16.4":0.02356,"16.5":0.04762,"16.6-16.7":0.37947,"17.0":0.04124,"17.1":0.06725,"17.2":0.0702,"17.3":0.1296,"17.4":2.94299,"17.5":0.20765,"17.6":0},P:{"4":0.09194,"20":0.04086,"21":0.23495,"22":0.35753,"23":0.28603,"24":0.3984,"25":0.68442,"5.0-5.4":0.02043,"6.2-6.4":0.02043,"7.2-7.4":0.24517,_:"8.2 12.0","9.2":0.05108,"10.1":0.01022,"11.1-11.2":0.03065,"13.0":0.03065,"14.0":0.03065,"15.0":0.01022,"16.0":0.08172,"17.0":0.18387,"18.0":0.03065,"19.0":0.08172},I:{"0":0.06296,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":0.79978,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00298,"9":0.00298,"11":0.02084,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.70249},R:{_:"0"},M:{"0":0.31604},Q:{"14.9":0.00702},O:{"0":0.0913},H:{"0":0.05}}; diff --git a/node_modules/caniuse-lite/data/regions/CV.js b/node_modules/caniuse-lite/data/regions/CV.js index bad850c5d..dd06bef70 100644 --- a/node_modules/caniuse-lite/data/regions/CV.js +++ b/node_modules/caniuse-lite/data/regions/CV.js @@ -1 +1 @@ -module.exports={C:{"78":0.00383,"100":0.00383,"113":0.00383,"115":0.01914,"128":0.03062,"129":0.01148,"137":0.00766,"138":0.04976,"139":0.53592,"140":0.18374,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 127 130 131 132 133 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.03828,"40":0.03062,"41":0.03445,"42":0.01531,"43":0.03062,"44":0.02297,"45":0.03062,"46":0.03828,"47":0.03062,"48":0.01531,"49":0.02297,"50":0.01531,"51":0.02297,"52":0.03828,"53":0.0268,"54":0.04976,"55":0.01148,"56":0.04594,"57":0.0268,"58":0.03445,"59":0.04976,"60":0.02297,"62":0.00766,"66":0.04594,"68":0.01148,"72":0.01531,"73":0.00383,"77":0.00383,"78":0.00766,"79":0.0268,"83":0.01531,"85":0.01914,"87":0.06508,"89":0.01914,"90":0.01148,"93":0.00383,"94":0.00766,"95":0.01531,"98":0.01531,"100":0.00383,"103":0.07656,"104":0.00383,"106":0.00383,"108":0.39428,"109":0.47084,"113":0.04211,"114":0.00383,"116":0.15312,"118":0.00766,"119":0.0268,"120":0.01148,"122":0.04976,"124":0.00766,"125":3.29208,"126":0.01531,"128":0.06508,"129":0.01914,"130":0.05742,"131":0.19523,"132":0.10336,"133":0.06508,"134":0.09187,"135":0.15312,"136":2.46906,"137":14.76077,"138":1.12926,"139":0.01148,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 65 67 69 70 71 74 75 76 80 81 84 86 88 91 92 96 97 99 101 102 105 107 110 111 112 115 117 121 123 127 140 141"},F:{"32":0.00383,"37":0.00383,"79":0.05359,"89":0.0268,"95":0.0957,"114":0.01148,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.01531,"18":0.01148,"88":0.00766,"92":0.03828,"100":0.00383,"109":0.0268,"114":0.00766,"117":0.00383,"126":0.00383,"127":0.00766,"128":0.03445,"129":0.06125,"131":0.01531,"132":0.01531,"133":0.03062,"134":0.03062,"135":0.05742,"136":0.601,"137":4.67016,"138":0.30624,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 122 123 124 125 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 16.0 16.2 17.0 17.3 18.1","12.1":0.00383,"13.1":0.04976,"14.1":0.01531,"15.5":0.00383,"15.6":0.08039,"16.1":0.05359,"16.3":0.03445,"16.4":0.0268,"16.5":0.00766,"16.6":0.03828,"17.1":0.00766,"17.2":0.01148,"17.4":0.00383,"17.5":0.01914,"17.6":0.42874,"18.0":0.00383,"18.2":0.11867,"18.3":0.01914,"18.4":0.11484,"18.5":0.85747,"26.0":0.00383},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00261,"5.0-5.1":0,"6.0-6.1":0.00522,"7.0-7.1":0.00522,"8.1-8.4":0,"9.0-9.2":0.00261,"9.3":0.01565,"10.0-10.2":0.0013,"10.3":0.02608,"11.0-11.2":0.16693,"11.3-11.4":0.00913,"12.0-12.1":0.00261,"12.2-12.5":0.08738,"13.0-13.1":0.0013,"13.2":0.00391,"13.3":0.00261,"13.4-13.7":0.01435,"14.0-14.4":0.03391,"14.5-14.8":0.03391,"15.0-15.1":0.02347,"15.2-15.3":0.02347,"15.4":0.02869,"15.5":0.0313,"15.6-15.8":0.40428,"16.0":0.05347,"16.1":0.10955,"16.2":0.05608,"16.3":0.10303,"16.4":0.02347,"16.5":0.04173,"16.6-16.7":0.50731,"17.0":0.02739,"17.1":0.04825,"17.2":0.03782,"17.3":0.05347,"17.4":0.0952,"17.5":0.19953,"17.6-17.7":0.52166,"18.0":0.12911,"18.1":0.29082,"18.2":0.15389,"18.3":0.6612,"18.4":0.70163,"18.5":8.22523,"26.0":0},P:{"4":0.24275,"21":0.01055,"22":0.02111,"23":0.02111,"24":0.10554,"25":0.06333,"26":0.08443,"27":0.10554,"28":2.07921,_:"20 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","5.0-5.4":0.01055,"7.2-7.4":0.06333,"9.2":0.01055,"18.0":0.01055,"19.0":0.01055},I:{"0":0.05545,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.5672,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.65446},R:{_:"0"},M:{"0":0.55548},Q:{"14.9":0.00617},O:{"0":0.18516},H:{"0":0.05}}; +module.exports={C:{"61":0.01021,"78":0.01021,"88":0.0034,"115":0.07148,"120":0.01021,"122":0.00681,"123":0.0034,"124":0.06468,"125":0.43571,"126":0.26892,"127":0.0034,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 128 129 3.5 3.6"},D:{"39":0.0034,"42":0.00681,"43":0.00681,"50":0.00681,"55":0.0034,"65":0.0034,"66":0.0034,"67":0.0034,"68":0.0034,"69":0.0034,"72":0.01021,"74":0.01362,"75":0.01702,"76":0.00681,"77":0.01021,"79":0.01021,"80":0.01021,"81":0.0034,"83":0.01362,"87":0.02723,"89":0.01362,"90":0.01702,"91":0.00681,"93":0.00681,"95":0.0034,"98":0.0034,"99":0.00681,"100":0.0034,"102":0.0034,"103":0.05787,"104":0.0034,"105":0.01362,"107":0.0034,"109":0.82717,"110":0.00681,"111":0.00681,"113":0.0885,"114":0.0034,"116":0.13956,"118":0.02723,"119":0.04085,"120":0.04766,"121":0.0817,"122":0.12935,"123":3.00914,"124":11.9957,"125":4.70773,"126":0.0034,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 44 45 46 47 48 49 51 52 53 54 56 57 58 59 60 61 62 63 64 70 71 73 78 84 85 86 88 92 94 96 97 101 106 108 112 115 117 127 128"},F:{"78":0.0034,"82":0.0034,"95":0.02042,"107":0.22807,"108":0.0034,"109":0.65016,"110":0.00681,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.0034,"18":0.0034,"83":0.0034,"92":0.01702,"96":0.0034,"98":0.0034,"100":0.0034,"107":0.03404,"108":0.02042,"109":0.01021,"110":0.01702,"112":0.0034,"113":0.0034,"114":0.0034,"115":0.01021,"118":0.0034,"119":0.13276,"120":0.09872,"121":0.02042,"122":0.28594,"123":0.15999,"124":4.26521,"125":1.74625,_:"12 13 14 15 17 79 80 81 84 85 86 87 88 89 90 91 93 94 95 97 99 101 102 103 104 105 106 111 116 117"},E:{"14":0.00681,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.4 16.4 17.6","11.1":0.0034,"12.1":0.0034,"13.1":0.00681,"14.1":0.05787,"15.1":0.09531,"15.2-15.3":0.0034,"15.5":0.00681,"15.6":0.09191,"16.0":0.00681,"16.1":0.01021,"16.2":0.0034,"16.3":0.02042,"16.5":0.0034,"16.6":0.06127,"17.0":0.0034,"17.1":0.00681,"17.2":0.03744,"17.3":0.02383,"17.4":0.23147,"17.5":0.06127},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00214,"5.0-5.1":0.00214,"6.0-6.1":0.00536,"7.0-7.1":0.0075,"8.1-8.4":0.00214,"9.0-9.2":0.00536,"9.3":0.02466,"10.0-10.2":0.00429,"10.3":0.03859,"11.0-11.2":0.05682,"11.3-11.4":0.01072,"12.0-12.1":0.00643,"12.2-12.5":0.15544,"13.0-13.1":0.00322,"13.2":0.01501,"13.3":0.0075,"13.4-13.7":0.0343,"14.0-14.4":0.05896,"14.5-14.8":0.09112,"15.0-15.1":0.04395,"15.2-15.3":0.04824,"15.4":0.05467,"15.5":0.06861,"15.6-15.8":0.61748,"16.0":0.14043,"16.1":0.28944,"16.2":0.14043,"16.3":0.24335,"16.4":0.05146,"16.5":0.10399,"16.6-16.7":0.82867,"17.0":0.09005,"17.1":0.14687,"17.2":0.1533,"17.3":0.28301,"17.4":6.42671,"17.5":0.45346,"17.6":0},P:{"4":0.42352,"20":0.03099,"21":0.07231,"22":0.06198,"23":0.14462,"24":0.39253,"25":1.05364,"5.0-5.4":0.01033,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0","7.2-7.4":0.09297,"11.1-11.2":0.34088,"13.0":0.01033,"15.0":0.11363,"16.0":0.04132,"17.0":0.01033,"18.0":0.03099,"19.0":0.07231},I:{"0":0.03943,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.18131,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01021,_:"6 7 8 9 10 5.5"},S:{"2.5":0.05937,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":54.53252},R:{_:"0"},M:{"0":0.03958},Q:{_:"14.9"},O:{"0":0.15833},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/CX.js b/node_modules/caniuse-lite/data/regions/CX.js index 4b0c13e50..3ebfe8dd2 100644 --- a/node_modules/caniuse-lite/data/regions/CX.js +++ b/node_modules/caniuse-lite/data/regions/CX.js @@ -1 +1 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 3.5 3.6"},D:{"129":10,"135":80,"138":10,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 130 131 132 133 134 136 137 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5 26.0"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0,"15.2-15.3":0,"15.4":0,"15.5":0,"15.6-15.8":0,"16.0":0,"16.1":0,"16.2":0,"16.3":0,"16.4":0,"16.5":0,"16.6-16.7":0,"17.0":0,"17.1":0,"17.2":0,"17.3":0,"17.4":0,"17.5":0,"17.6-17.7":0,"18.0":0,"18.1":0,"18.2":0,"18.3":0,"18.4":0,"18.5":0,"26.0":0},P:{_:"4 20 21 22 23 24 25 26 27 28 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{_:"0"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"125":2.3042,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 3.5 3.6"},D:{"108":0.26031,"122":0.26031,"124":47.43372,"125":0.26031,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116 117 118 119 120 121 123 126 127 128"},F:{"109":31.79602,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"124":6.41127,"125":7.69352,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00005,"5.0-5.1":0.00005,"6.0-6.1":0.00013,"7.0-7.1":0.00018,"8.1-8.4":0.00005,"9.0-9.2":0.00013,"9.3":0.00059,"10.0-10.2":0.0001,"10.3":0.00092,"11.0-11.2":0.00136,"11.3-11.4":0.00026,"12.0-12.1":0.00015,"12.2-12.5":0.00372,"13.0-13.1":0.00008,"13.2":0.00036,"13.3":0.00018,"13.4-13.7":0.00082,"14.0-14.4":0.00141,"14.5-14.8":0.00218,"15.0-15.1":0.00105,"15.2-15.3":0.00115,"15.4":0.00131,"15.5":0.00164,"15.6-15.8":0.01476,"16.0":0.00336,"16.1":0.00692,"16.2":0.00336,"16.3":0.00582,"16.4":0.00123,"16.5":0.00249,"16.6-16.7":0.01981,"17.0":0.00215,"17.1":0.00351,"17.2":0.00367,"17.3":0.00677,"17.4":0.15367,"17.5":0.01084,"17.6":0},P:{_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":3.33367},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CY.js b/node_modules/caniuse-lite/data/regions/CY.js index 7d85658f0..1646a54ed 100644 --- a/node_modules/caniuse-lite/data/regions/CY.js +++ b/node_modules/caniuse-lite/data/regions/CY.js @@ -1 +1 @@ -module.exports={C:{"97":0.00458,"111":0.00458,"115":0.11458,"127":0.00458,"128":0.03208,"135":0.00458,"136":0.00917,"137":0.0275,"138":0.03666,"139":0.99451,"140":0.17874,"141":0.00458,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 142 143 3.5 3.6"},D:{"39":0.00458,"40":0.00458,"41":0.00458,"42":0.00458,"43":0.00458,"44":0.00458,"45":0.00458,"46":0.00458,"47":0.00458,"48":0.00458,"49":0.00917,"50":0.00458,"51":0.00458,"52":0.00458,"53":0.00458,"54":0.00458,"55":0.00458,"56":0.00458,"57":0.00458,"58":0.00458,"59":0.00458,"60":0.00458,"66":0.00458,"74":0.16499,"78":0.00458,"79":0.0275,"81":0.00458,"85":0.00458,"87":0.055,"91":0.01833,"94":0.00458,"95":0.00917,"98":0.01375,"99":0.00458,"103":0.01833,"104":0.05041,"105":0.00458,"106":0.01833,"107":0.00917,"108":0.03208,"109":0.36206,"110":0.00917,"111":0.00917,"112":0.00917,"114":0.00917,"116":0.03208,"117":0.00458,"118":0.00917,"119":0.01375,"120":0.0275,"121":0.0275,"122":0.13291,"123":0.01833,"124":0.20624,"125":0.27956,"126":0.0275,"127":0.00917,"128":0.0275,"129":0.07791,"130":0.00917,"131":0.06875,"132":0.04583,"133":0.04583,"134":0.05958,"135":2.12651,"136":4.21178,"137":20.20186,"138":0.4308,"139":0.00458,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 75 76 77 80 83 84 86 88 89 90 92 93 96 97 100 101 102 113 115 140 141"},F:{"46":0.00458,"78":0.00917,"86":0.00458,"89":0.0275,"90":0.02292,"95":0.00458,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00458,"99":0.03208,"106":0.00458,"109":0.05958,"125":0.00458,"127":0.00917,"128":0.00458,"129":0.01375,"130":0.00917,"131":0.01833,"132":0.06875,"133":0.00458,"134":0.0275,"135":0.01833,"136":0.93035,"137":5.61876,"138":0.42622,_:"12 13 14 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126"},E:{"14":0.00458,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","13.1":0.15582,"14.1":0.02292,"15.5":0.00458,"15.6":0.055,"16.0":0.00917,"16.1":0.01375,"16.2":0.00458,"16.3":0.02292,"16.4":0.00917,"16.5":0.00917,"16.6":0.10541,"17.0":0.00458,"17.1":0.09166,"17.2":0.03666,"17.3":0.00458,"17.4":0.03208,"17.5":0.04125,"17.6":0.11458,"18.0":0.01833,"18.1":0.03666,"18.2":0.02292,"18.3":0.07333,"18.4":0.10541,"18.5":1.17325},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0028,"5.0-5.1":0,"6.0-6.1":0.0056,"7.0-7.1":0.0056,"8.1-8.4":0,"9.0-9.2":0.0028,"9.3":0.0168,"10.0-10.2":0.0014,"10.3":0.02801,"11.0-11.2":0.17924,"11.3-11.4":0.0098,"12.0-12.1":0.0028,"12.2-12.5":0.09382,"13.0-13.1":0.0014,"13.2":0.0042,"13.3":0.0028,"13.4-13.7":0.0154,"14.0-14.4":0.03641,"14.5-14.8":0.03641,"15.0-15.1":0.02521,"15.2-15.3":0.02521,"15.4":0.03081,"15.5":0.03361,"15.6-15.8":0.43409,"16.0":0.05741,"16.1":0.11762,"16.2":0.06021,"16.3":0.11062,"16.4":0.02521,"16.5":0.04481,"16.6-16.7":0.54471,"17.0":0.02941,"17.1":0.05181,"17.2":0.04061,"17.3":0.05741,"17.4":0.10222,"17.5":0.21425,"17.6-17.7":0.56012,"18.0":0.13863,"18.1":0.31227,"18.2":0.16523,"18.3":0.70995,"18.4":0.75336,"18.5":8.83166,"26.0":0},P:{"4":0.0517,"20":0.01034,"21":0.02068,"22":0.02068,"23":0.03102,"24":0.03102,"25":0.07238,"26":0.06204,"27":0.19646,"28":3.10204,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02068,"17.0":0.01034},I:{"0":0.04326,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.41169,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01833,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0325,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.14518},R:{_:"0"},M:{"0":0.24918},Q:{_:"14.9"},O:{"0":0.14626},H:{"0":0}}; +module.exports={C:{"52":0.01736,"78":0.00434,"80":0.00868,"92":0.00434,"94":0.00434,"102":0.00434,"105":0.00434,"108":0.00434,"111":0.00868,"114":0.00434,"115":0.18662,"119":0.00434,"120":0.00434,"122":0.48174,"123":0.00868,"124":0.0217,"125":0.87234,"126":0.651,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 88 89 90 91 93 95 96 97 98 99 100 101 103 104 106 107 109 110 112 113 116 117 118 121 127 128 129 3.5","3.6":0.00434},D:{"38":0.00434,"39":0.00434,"41":0.00434,"42":0.00434,"43":0.00434,"44":0.00434,"45":0.00434,"46":0.00434,"47":0.00434,"49":0.00868,"51":0.00868,"56":0.00434,"69":0.00434,"70":0.00434,"79":0.03906,"87":0.03472,"89":0.00434,"91":0.02604,"93":0.23002,"94":0.02604,"95":0.0217,"98":0.04774,"99":0.00868,"100":0.00434,"101":0.00434,"102":0.01302,"103":0.02604,"104":0.00434,"106":0.00868,"107":0.00868,"108":0.01302,"109":0.868,"110":0.00434,"111":0.00868,"112":0.0217,"113":0.08246,"114":0.01736,"115":0.00434,"116":0.0868,"117":0.02604,"118":0.03038,"119":0.03906,"120":0.09114,"121":0.10416,"122":0.2821,"123":1.3888,"124":19.29564,"125":7.41706,"126":0.02604,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 48 50 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 90 92 96 97 105 127 128"},F:{"78":0.00434,"94":0.00434,"95":0.00868,"107":0.16492,"108":0.01736,"109":0.82026,"110":0.04774,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00434,"92":0.00434,"99":0.00434,"100":0.00434,"106":0.00434,"108":0.00434,"109":0.02604,"114":0.00868,"118":0.00434,"119":0.00434,"120":0.01736,"121":0.0217,"122":0.01302,"123":0.0868,"124":3.30274,"125":2.30454,_:"12 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 101 102 103 104 105 107 110 111 112 113 115 116 117"},E:{"9":0.01302,"14":0.01736,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00434,"13.1":0.26474,"14.1":0.11718,"15.1":0.1736,"15.2-15.3":0.00434,"15.4":0.00434,"15.5":0.01736,"15.6":0.20832,"16.0":0.02604,"16.1":0.02604,"16.2":0.01302,"16.3":0.05642,"16.4":0.01302,"16.5":0.0217,"16.6":0.20832,"17.0":0.02604,"17.1":0.0434,"17.2":0.07378,"17.3":0.06076,"17.4":1.05028,"17.5":0.1519},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0.00255,"6.0-6.1":0.00637,"7.0-7.1":0.00892,"8.1-8.4":0.00255,"9.0-9.2":0.00637,"9.3":0.0293,"10.0-10.2":0.0051,"10.3":0.04587,"11.0-11.2":0.06753,"11.3-11.4":0.01274,"12.0-12.1":0.00764,"12.2-12.5":0.18474,"13.0-13.1":0.00382,"13.2":0.01784,"13.3":0.00892,"13.4-13.7":0.04077,"14.0-14.4":0.07007,"14.5-14.8":0.1083,"15.0-15.1":0.05224,"15.2-15.3":0.05733,"15.4":0.06498,"15.5":0.08154,"15.6-15.8":0.73386,"16.0":0.1669,"16.1":0.344,"16.2":0.1669,"16.3":0.28921,"16.4":0.06116,"16.5":0.12358,"16.6-16.7":0.98485,"17.0":0.10702,"17.1":0.17455,"17.2":0.18219,"17.3":0.33635,"17.4":7.63803,"17.5":0.53893,"17.6":0},P:{"4":0.08235,"20":0.01029,"21":0.04118,"22":0.07206,"23":0.1647,"24":0.37059,"25":4.16909,_:"5.0-5.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0","6.2-6.4":0.01029,"9.2":0.01029,"13.0":0.01029,"14.0":0.01029,"15.0":0.01029,"16.0":0.01029,"17.0":0.01029,"18.0":0.01029,"19.0":0.04118},I:{"0":0.08457,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.70184,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03038,"9":0.00434,"10":0.00434,"11":0.05642,_:"6 7 5.5"},S:{"2.5":0.04528,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.0599},R:{_:"0"},M:{"0":0.18112},Q:{_:"14.9"},O:{"0":0.18112},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/CZ.js b/node_modules/caniuse-lite/data/regions/CZ.js index d0b3e42b4..66fa39b69 100644 --- a/node_modules/caniuse-lite/data/regions/CZ.js +++ b/node_modules/caniuse-lite/data/regions/CZ.js @@ -1 +1 @@ -module.exports={C:{"3":0.00393,"52":0.03147,"56":0.00787,"60":0.00393,"68":0.00393,"78":0.00393,"88":0.00393,"97":0.00393,"113":0.00787,"115":0.46815,"117":0.0236,"118":0.04327,"123":0.00393,"125":0.00787,"127":0.04327,"128":0.13769,"129":0.0118,"130":0.00393,"131":0.00393,"132":0.0118,"133":0.01574,"134":0.00787,"135":0.0236,"136":0.04721,"137":0.04721,"138":0.2085,"139":3.57207,"140":0.48782,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 119 120 121 122 124 126 141 142 143 3.5 3.6"},D:{"29":0.00787,"38":0.00393,"39":0.00393,"40":0.00393,"41":0.00393,"42":0.00393,"43":0.00393,"44":0.00393,"45":0.00393,"46":0.00393,"47":0.00393,"48":0.00393,"49":0.01574,"50":0.00393,"51":0.00393,"52":0.00393,"53":0.00393,"54":0.00393,"55":0.00393,"56":0.00393,"57":0.00393,"58":0.00393,"59":0.00393,"60":0.00393,"79":0.04721,"80":0.00787,"81":0.00393,"87":0.01967,"88":0.00393,"89":0.00393,"90":0.00393,"91":0.00393,"92":0.00787,"93":0.00787,"94":0.00393,"95":0.00393,"98":0.00393,"99":0.00393,"100":0.00393,"101":0.00393,"102":0.32652,"103":0.01967,"104":0.02754,"105":0.00393,"106":0.00787,"107":0.0118,"108":0.01967,"109":0.83401,"110":0.00393,"111":0.0118,"112":0.00787,"113":0.00393,"114":0.01574,"115":0.0118,"116":0.02754,"117":0.00393,"118":0.01574,"119":0.02754,"120":0.01967,"121":0.01574,"122":0.04721,"123":0.01967,"124":0.0236,"125":0.03147,"126":0.01574,"127":0.01967,"128":0.04327,"129":0.0118,"130":0.02754,"131":0.12982,"132":0.04721,"133":0.05901,"134":0.07081,"135":0.20063,"136":2.49809,"137":14.32369,"138":0.51142,"139":0.00393,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 84 85 86 96 97 140 141"},F:{"46":0.00393,"69":0.00393,"79":0.00393,"84":0.00393,"85":0.01574,"86":0.00393,"88":0.00393,"89":0.04721,"90":0.0236,"95":0.06294,"102":0.00393,"105":0.00393,"117":0.00393,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 80 81 82 83 87 91 92 93 94 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00393},B:{"92":0.00393,"107":0.00787,"108":0.00393,"109":0.06688,"111":0.00393,"114":0.00393,"118":0.2085,"120":0.00787,"121":0.00393,"122":0.00787,"123":0.00393,"124":0.00393,"126":0.00393,"127":0.01574,"128":0.00393,"129":0.01574,"130":0.0118,"131":0.03541,"132":0.01967,"133":0.00787,"134":0.09048,"135":0.05114,"136":0.9599,"137":4.76407,"138":0.33439,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 112 113 115 116 117 119 125"},E:{"4":0.00393,"14":0.00393,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.0","13.1":0.0118,"14.1":0.01967,"15.4":0.00393,"15.5":0.01967,"15.6":0.08655,"16.0":0.0236,"16.1":0.00787,"16.2":0.00787,"16.3":0.01574,"16.4":0.00393,"16.5":0.01574,"16.6":0.14162,"17.0":0.0118,"17.1":0.07475,"17.2":0.00787,"17.3":0.0118,"17.4":0.01967,"17.5":0.02754,"17.6":0.10622,"18.0":0.01574,"18.1":0.03147,"18.2":0.01967,"18.3":0.08261,"18.4":0.09048,"18.5":0.89695},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.002,"5.0-5.1":0,"6.0-6.1":0.00399,"7.0-7.1":0.00399,"8.1-8.4":0,"9.0-9.2":0.002,"9.3":0.01197,"10.0-10.2":0.001,"10.3":0.01996,"11.0-11.2":0.12773,"11.3-11.4":0.00698,"12.0-12.1":0.002,"12.2-12.5":0.06686,"13.0-13.1":0.001,"13.2":0.00299,"13.3":0.002,"13.4-13.7":0.01098,"14.0-14.4":0.02594,"14.5-14.8":0.02594,"15.0-15.1":0.01796,"15.2-15.3":0.01796,"15.4":0.02195,"15.5":0.02395,"15.6-15.8":0.30934,"16.0":0.04091,"16.1":0.08382,"16.2":0.04291,"16.3":0.07883,"16.4":0.01796,"16.5":0.03193,"16.6-16.7":0.38817,"17.0":0.02095,"17.1":0.03692,"17.2":0.02894,"17.3":0.04091,"17.4":0.07284,"17.5":0.15267,"17.6-17.7":0.39914,"18.0":0.09879,"18.1":0.22252,"18.2":0.11775,"18.3":0.50591,"18.4":0.53685,"18.5":6.29348,"26.0":0},P:{"4":0.04197,"20":0.01049,"21":0.02099,"22":0.02099,"23":0.03148,"24":0.03148,"25":0.03148,"26":0.06296,"27":0.15739,"28":3.06382,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01049,"19.0":0.01049},I:{"0":0.15139,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.67333,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0751,"9":0.01609,"10":0.02682,"11":0.05901,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.65618},R:{_:"0"},M:{"0":0.42462},Q:{_:"14.9"},O:{"0":0.15772},H:{"0":0}}; +module.exports={C:{"52":0.08993,"56":0.00999,"60":0.005,"65":0.005,"68":0.005,"72":0.005,"75":0.005,"78":0.01998,"81":0.005,"83":0.00999,"88":0.005,"91":0.005,"96":0.005,"97":0.005,"99":0.005,"100":0.03997,"102":0.01499,"103":0.01499,"105":0.00999,"106":0.005,"107":0.01499,"108":0.005,"109":0.005,"110":0.005,"111":0.005,"112":0.005,"113":0.01998,"114":0.00999,"115":0.72442,"116":0.00999,"117":0.00999,"118":0.00999,"119":0.00999,"120":0.01499,"121":0.03497,"122":0.01998,"123":0.06495,"124":0.21982,"125":2.78277,"126":2.77778,"127":0.005,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 61 62 63 64 66 67 69 70 71 73 74 76 77 79 80 82 84 85 86 87 89 90 92 93 94 95 98 101 104 128 129 3.5 3.6"},D:{"38":0.005,"41":0.005,"49":0.01499,"68":0.005,"70":0.005,"71":0.005,"74":0.005,"79":0.03997,"80":0.005,"81":0.00999,"83":0.005,"84":0.005,"85":0.01998,"86":0.005,"87":0.03997,"88":0.005,"89":0.01998,"90":0.005,"91":0.00999,"93":0.00999,"94":0.03997,"95":0.00999,"96":0.005,"97":0.005,"98":0.00999,"99":0.005,"100":0.005,"101":0.005,"102":0.25979,"103":0.13489,"104":0.02998,"105":0.005,"106":0.01499,"107":0.01499,"108":0.1299,"109":1.19904,"110":0.01499,"111":0.02498,"112":0.01998,"113":0.07994,"114":0.10492,"115":0.02498,"116":0.07494,"117":0.07494,"118":0.04996,"119":0.05496,"120":0.91926,"121":0.11491,"122":0.31974,"123":0.88929,"124":16.44683,"125":6.78956,"126":0.005,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 72 73 75 76 77 78 92 127 128"},F:{"46":0.005,"75":0.005,"79":0.005,"84":0.005,"85":0.01499,"95":0.13489,"106":0.005,"107":0.41467,"108":0.01499,"109":2.22322,"110":0.1249,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 82 83 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.005,"18":0.005,"92":0.005,"105":0.005,"107":0.005,"108":0.00999,"109":0.10492,"111":0.005,"112":0.005,"113":0.005,"114":0.01998,"116":0.005,"117":0.005,"118":0.08993,"119":0.00999,"120":0.04996,"121":0.04996,"122":0.05995,"123":0.20983,"124":4.45643,"125":2.8677,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 110 115"},E:{"9":0.005,"13":0.005,"14":0.01998,_:"0 4 5 6 7 8 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.05995,"14.1":0.04496,"15.1":0.01499,"15.2-15.3":0.005,"15.4":0.01998,"15.5":0.03997,"15.6":0.15987,"16.0":0.02498,"16.1":0.03497,"16.2":0.03497,"16.3":0.05496,"16.4":0.01499,"16.5":0.06994,"16.6":0.17986,"17.0":0.03497,"17.1":0.05995,"17.2":0.06495,"17.3":0.07994,"17.4":1.05416,"17.5":0.18485},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00196,"5.0-5.1":0.00196,"6.0-6.1":0.0049,"7.0-7.1":0.00686,"8.1-8.4":0.00196,"9.0-9.2":0.0049,"9.3":0.02254,"10.0-10.2":0.00392,"10.3":0.03528,"11.0-11.2":0.05194,"11.3-11.4":0.0098,"12.0-12.1":0.00588,"12.2-12.5":0.1421,"13.0-13.1":0.00294,"13.2":0.01372,"13.3":0.00686,"13.4-13.7":0.03136,"14.0-14.4":0.0539,"14.5-14.8":0.0833,"15.0-15.1":0.04018,"15.2-15.3":0.0441,"15.4":0.04998,"15.5":0.06272,"15.6-15.8":0.56447,"16.0":0.12838,"16.1":0.26459,"16.2":0.12838,"16.3":0.22246,"16.4":0.04704,"16.5":0.09506,"16.6-16.7":0.75752,"17.0":0.08232,"17.1":0.13426,"17.2":0.14014,"17.3":0.25871,"17.4":5.87497,"17.5":0.41453,"17.6":0},P:{"4":0.05179,"20":0.02071,"21":0.05179,"22":0.04143,"23":0.145,"24":0.2175,"25":2.68255,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 12.0 15.0 18.0","6.2-6.4":0.01036,"11.1-11.2":0.01036,"13.0":0.01036,"14.0":0.01036,"16.0":0.01036,"17.0":0.01036,"19.0":0.01036},I:{"0":0.1047,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00023},K:{"0":0.61063,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01071,"10":0.01606,"11":0.04818,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.15405},R:{_:"0"},M:{"0":0.45045},Q:{_:"14.9"},O:{"0":0.0951},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/DE.js b/node_modules/caniuse-lite/data/regions/DE.js index 3920c83cc..47928dd9f 100644 --- a/node_modules/caniuse-lite/data/regions/DE.js +++ b/node_modules/caniuse-lite/data/regions/DE.js @@ -1 +1 @@ -module.exports={C:{"48":0.01643,"52":0.05475,"59":0.01095,"60":0.00548,"68":0.00548,"72":0.00548,"77":0.00548,"78":0.0219,"88":0.00548,"91":0.00548,"98":0.01095,"102":0.00548,"103":0.00548,"105":0.00548,"106":0.00548,"107":0.00548,"108":0.00548,"109":0.00548,"110":0.00548,"111":0.00548,"113":0.01095,"114":0.00548,"115":0.49275,"116":0.00548,"118":0.03833,"119":0.12593,"120":0.0219,"121":0.0219,"122":0.00548,"123":0.00548,"124":0.01095,"125":0.00548,"127":0.0219,"128":0.40515,"129":0.00548,"130":0.00548,"131":0.00548,"132":0.01643,"133":0.0219,"134":0.0219,"135":0.03833,"136":0.0657,"137":0.05475,"138":0.27923,"139":5.6502,"140":0.8322,"141":0.00548,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 61 62 63 64 65 66 67 69 70 71 73 74 75 76 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 99 100 101 104 112 117 126 142 143 3.5 3.6"},D:{"39":0.00548,"40":0.00548,"41":0.00548,"42":0.00548,"43":0.00548,"44":0.00548,"45":0.00548,"46":0.00548,"47":0.00548,"48":0.00548,"49":0.01643,"50":0.00548,"51":0.00548,"52":0.03285,"53":0.00548,"54":0.00548,"55":0.00548,"56":0.00548,"57":0.00548,"58":0.01643,"59":0.00548,"60":0.00548,"61":0.00548,"63":0.00548,"66":0.04928,"73":0.00548,"74":0.00548,"76":0.00548,"77":0.00548,"79":0.03285,"80":0.00548,"81":0.0219,"83":0.00548,"84":0.00548,"85":0.01095,"86":0.01095,"87":0.03285,"88":0.01643,"90":0.00548,"91":0.09855,"92":0.01095,"93":0.01643,"94":0.03285,"96":0.00548,"97":0.14783,"98":0.00548,"99":0.01643,"100":0.00548,"102":0.03833,"103":0.16425,"104":0.05475,"105":0.01095,"106":0.03833,"107":0.05475,"108":0.07118,"109":0.60225,"110":0.02738,"111":0.03833,"112":0.03285,"113":0.01095,"114":0.0438,"115":0.03833,"116":0.21353,"117":0.03833,"118":0.1095,"119":0.0438,"120":0.07118,"121":0.03285,"122":0.11498,"123":0.0657,"124":0.14235,"125":0.2409,"126":0.2628,"127":0.06023,"128":0.14783,"129":0.67343,"130":0.37778,"131":9.0009,"132":0.18068,"133":0.14783,"134":0.25733,"135":0.3504,"136":2.5404,"137":11.40443,"138":0.5037,"139":0.00548,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 62 64 65 67 68 69 70 71 72 75 78 89 95 101 140 141"},F:{"46":0.01095,"72":0.00548,"89":0.0438,"90":0.02738,"95":0.04928,"113":0.0438,"114":0.00548,"116":0.00548,"117":0.01095,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.01095},B:{"15":0.01095,"17":0.00548,"83":0.00548,"90":0.00548,"92":0.00548,"96":0.04928,"106":0.00548,"107":0.00548,"108":0.00548,"109":0.11498,"110":0.00548,"111":0.00548,"112":0.00548,"114":0.00548,"116":0.00548,"117":0.00548,"119":0.00548,"120":0.00548,"121":0.00548,"122":0.01095,"123":0.00548,"124":0.01643,"125":0.00548,"126":0.04928,"127":0.00548,"128":0.01095,"129":0.01095,"130":0.03285,"131":0.0438,"132":0.01095,"133":0.0219,"134":0.0876,"135":0.06023,"136":0.7884,"137":5.35455,"138":0.48728,_:"12 13 14 16 18 79 80 81 84 85 86 87 88 89 91 93 94 95 97 98 99 100 101 102 103 104 105 113 115 118"},E:{"7":0.00548,"8":0.01643,"14":0.01095,_:"0 4 5 6 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.01095,"12.1":0.00548,"13.1":0.03833,"14.1":0.03285,"15.1":0.01095,"15.2-15.3":0.00548,"15.4":0.01095,"15.5":0.01095,"15.6":0.18615,"16.0":0.10403,"16.1":0.0219,"16.2":0.01095,"16.3":0.03833,"16.4":0.01095,"16.5":0.01643,"16.6":0.22995,"17.0":0.01095,"17.1":0.1752,"17.2":0.07665,"17.3":0.01643,"17.4":0.03285,"17.5":0.07118,"17.6":0.22448,"18.0":0.02738,"18.1":0.06023,"18.2":0.03285,"18.3":0.1752,"18.4":0.1971,"18.5":2.19,"26.0":0.00548},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00264,"5.0-5.1":0,"6.0-6.1":0.00528,"7.0-7.1":0.00528,"8.1-8.4":0,"9.0-9.2":0.00264,"9.3":0.01584,"10.0-10.2":0.00132,"10.3":0.0264,"11.0-11.2":0.16895,"11.3-11.4":0.00924,"12.0-12.1":0.00264,"12.2-12.5":0.08844,"13.0-13.1":0.00132,"13.2":0.00396,"13.3":0.00264,"13.4-13.7":0.01452,"14.0-14.4":0.03432,"14.5-14.8":0.03432,"15.0-15.1":0.02376,"15.2-15.3":0.02376,"15.4":0.02904,"15.5":0.03168,"15.6-15.8":0.40918,"16.0":0.05412,"16.1":0.11088,"16.2":0.05676,"16.3":0.10428,"16.4":0.02376,"16.5":0.04224,"16.6-16.7":0.51346,"17.0":0.02772,"17.1":0.04884,"17.2":0.03828,"17.3":0.05412,"17.4":0.09636,"17.5":0.20195,"17.6-17.7":0.52798,"18.0":0.13067,"18.1":0.29435,"18.2":0.15575,"18.3":0.66921,"18.4":0.71013,"18.5":8.32488,"26.0":0},P:{"4":0.05319,"20":0.01064,"21":0.04256,"22":0.03192,"23":0.03192,"24":0.04256,"25":0.04256,"26":0.11703,"27":0.15958,"28":3.6066,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01064,"13.0":0.01064,"17.0":0.01064,"19.0":0.01064},I:{"0":0.02259,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.65613,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01711,"11":0.11977,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":26.45185},R:{_:"0"},M:{"0":1.1222},Q:{"14.9":0.00905},O:{"0":0.16743},H:{"0":0}}; +module.exports={C:{"37":0.00549,"38":0.01098,"40":0.00549,"47":0.00549,"48":0.01098,"50":0.1373,"52":0.14279,"53":0.09886,"56":0.08238,"59":0.01098,"68":0.00549,"72":0.00549,"77":0.01098,"78":0.02746,"82":0.00549,"83":0.00549,"87":0.00549,"88":0.01648,"91":0.01098,"92":0.00549,"98":0.00549,"99":0.00549,"101":0.00549,"102":0.22517,"103":0.01098,"104":0.00549,"105":0.00549,"106":0.01098,"107":0.00549,"108":0.01098,"109":0.00549,"110":0.00549,"111":0.01098,"112":0.00549,"113":0.01648,"114":0.00549,"115":0.99405,"116":0.01098,"117":0.01648,"118":0.03295,"119":0.01098,"120":0.01648,"121":0.03844,"122":0.04943,"123":0.04943,"124":0.2032,"125":3.60275,"126":3.12495,"127":0.00549,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 39 41 42 43 44 45 46 49 51 54 55 57 58 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 79 80 81 84 85 86 89 90 93 94 95 96 97 100 128 129 3.5 3.6"},D:{"38":0.00549,"41":0.00549,"43":0.04394,"49":0.01648,"51":0.00549,"52":0.00549,"56":0.00549,"58":0.00549,"61":0.00549,"66":0.06041,"76":0.01648,"77":0.02197,"79":0.03295,"80":0.01098,"81":0.02746,"83":0.00549,"84":0.00549,"85":0.01098,"86":0.02746,"87":0.03295,"88":0.01098,"89":0.02197,"90":0.00549,"91":0.0714,"92":0.00549,"93":0.08238,"94":0.0659,"95":0.00549,"96":0.01648,"97":0.01098,"98":0.01098,"99":0.02746,"100":0.00549,"101":0.01098,"102":0.01648,"103":0.2032,"104":0.03295,"105":0.02197,"106":0.38993,"107":0.03295,"108":0.04943,"109":0.8952,"110":0.02746,"111":0.04943,"112":0.03295,"113":0.10984,"114":0.08787,"115":0.13181,"116":0.09336,"117":0.04394,"118":0.09336,"119":0.18673,"120":0.14279,"121":5.84349,"122":0.31854,"123":1.39497,"124":13.75197,"125":4.52541,"126":0.00549,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 44 45 46 47 48 50 53 54 55 57 59 60 62 63 64 65 67 68 69 70 71 72 73 74 75 78 127 128"},F:{"46":0.01098,"95":0.0659,"102":0.00549,"106":0.02197,"107":0.54371,"108":0.03844,"109":2.1968,"110":0.1373,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00549},B:{"17":0.01098,"18":0.00549,"90":0.00549,"92":0.00549,"98":0.00549,"100":0.00549,"101":0.00549,"105":0.00549,"106":0.00549,"107":0.01098,"108":0.01098,"109":0.12632,"110":0.00549,"111":0.04943,"112":0.01098,"113":0.00549,"114":0.01648,"115":0.01098,"116":0.01098,"117":0.01098,"118":0.01098,"119":0.01648,"120":0.03295,"121":0.03844,"122":0.08787,"123":0.24165,"124":4.81099,"125":2.64714,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 99 102 103 104"},E:{"7":0.04943,"8":0.00549,"14":0.02197,"15":0.00549,_:"0 4 5 6 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00549,"11.1":0.01648,"12.1":0.01098,"13.1":0.05492,"14.1":0.07689,"15.1":0.01098,"15.2-15.3":0.01098,"15.4":0.02197,"15.5":0.02746,"15.6":0.30206,"16.0":0.08238,"16.1":0.05492,"16.2":0.04943,"16.3":0.10435,"16.4":0.02746,"16.5":0.04943,"16.6":0.35149,"17.0":0.04394,"17.1":0.07689,"17.2":0.10435,"17.3":0.11533,"17.4":1.99909,"17.5":0.33501},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00263,"5.0-5.1":0.00263,"6.0-6.1":0.00656,"7.0-7.1":0.00919,"8.1-8.4":0.00263,"9.0-9.2":0.00656,"9.3":0.0302,"10.0-10.2":0.00525,"10.3":0.04726,"11.0-11.2":0.06958,"11.3-11.4":0.01313,"12.0-12.1":0.00788,"12.2-12.5":0.19037,"13.0-13.1":0.00394,"13.2":0.01838,"13.3":0.00919,"13.4-13.7":0.04201,"14.0-14.4":0.07221,"14.5-14.8":0.1116,"15.0-15.1":0.05383,"15.2-15.3":0.05908,"15.4":0.06696,"15.5":0.08402,"15.6-15.8":0.75622,"16.0":0.17199,"16.1":0.35448,"16.2":0.17199,"16.3":0.29803,"16.4":0.06302,"16.5":0.12735,"16.6-16.7":1.01486,"17.0":0.11028,"17.1":0.17987,"17.2":0.18774,"17.3":0.3466,"17.4":7.87077,"17.5":0.55535,"17.6":0},P:{"4":0.08483,"20":0.04241,"21":0.08483,"22":0.06362,"23":0.13784,"24":0.3181,"25":3.50973,_:"5.0-5.4 8.2 9.2 10.1 12.0","6.2-6.4":0.0106,"7.2-7.4":0.0106,"11.1-11.2":0.0106,"13.0":0.02121,"14.0":0.0106,"15.0":0.0106,"16.0":0.02121,"17.0":0.02121,"18.0":0.0106,"19.0":0.02121},I:{"0":0.0404,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.72563,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01148,"9":0.00574,"11":0.10909,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":25.70922},R:{_:"0"},M:{"0":0.95548},Q:{"14.9":0.00451},O:{"0":0.15324},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/DJ.js b/node_modules/caniuse-lite/data/regions/DJ.js index c7b2d54e9..d76ef038f 100644 --- a/node_modules/caniuse-lite/data/regions/DJ.js +++ b/node_modules/caniuse-lite/data/regions/DJ.js @@ -1 +1 @@ -module.exports={C:{"81":0.03228,"85":0.00215,"89":0.00215,"115":0.02582,"121":0.01506,"127":0.00646,"128":0.01291,"133":0.02152,"138":0.03013,"139":1.18575,"140":0.30774,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 130 131 132 134 135 136 137 141 142 143 3.5 3.6"},D:{"40":0.00646,"43":0.00646,"44":0.0043,"45":0.00861,"46":0.00861,"47":0.0043,"48":0.00646,"49":0.00861,"50":0.00646,"51":0.00646,"52":0.00215,"54":0.00646,"55":0.00861,"56":0.0043,"57":0.00215,"58":0.07317,"59":0.00646,"60":0.00215,"65":0.0043,"79":0.00215,"83":0.01076,"87":0.01076,"98":0.0043,"104":0.0043,"107":0.03228,"109":0.77257,"110":0.0043,"116":0.00861,"119":0.01937,"120":0.00861,"122":0.00861,"123":0.0043,"124":0.00861,"125":0.5423,"126":0.02582,"128":0.03443,"129":0.03874,"130":0.01291,"131":0.04089,"132":0.07962,"133":0.05595,"134":0.20659,"135":0.15279,"136":1.02435,"137":8.03342,"138":0.21735,"139":0.02152,"140":0.0043,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 53 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 105 106 108 111 112 113 114 115 117 118 121 127 141"},F:{"88":0.00861,"89":0.08178,"90":0.0043,"114":0.01506,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00646,"16":0.0043,"18":0.00646,"84":0.00215,"89":0.00861,"92":0.03228,"100":0.01937,"109":0.04089,"119":0.01291,"121":0.00215,"122":0.00215,"125":0.00646,"126":0.00215,"131":0.08608,"132":0.0043,"133":0.00646,"134":0.0495,"135":0.04089,"136":0.4347,"137":2.43391,"138":0.15064,_:"12 13 15 17 79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 120 123 124 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.3 16.5 17.0 17.5 26.0","14.1":0.00646,"15.6":0.03874,"16.1":0.01506,"16.2":0.00215,"16.4":0.00215,"16.6":0.00861,"17.1":0.04519,"17.2":0.0043,"17.3":0.0043,"17.4":0.01937,"17.6":0.00646,"18.0":0.00646,"18.1":0.01937,"18.2":0.00646,"18.3":0.04304,"18.4":0.02367,"18.5":0.20659},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00118,"5.0-5.1":0,"6.0-6.1":0.00235,"7.0-7.1":0.00235,"8.1-8.4":0,"9.0-9.2":0.00118,"9.3":0.00705,"10.0-10.2":0.00059,"10.3":0.01176,"11.0-11.2":0.07525,"11.3-11.4":0.00412,"12.0-12.1":0.00118,"12.2-12.5":0.03939,"13.0-13.1":0.00059,"13.2":0.00176,"13.3":0.00118,"13.4-13.7":0.00647,"14.0-14.4":0.01529,"14.5-14.8":0.01529,"15.0-15.1":0.01058,"15.2-15.3":0.01058,"15.4":0.01293,"15.5":0.01411,"15.6-15.8":0.18225,"16.0":0.0241,"16.1":0.04938,"16.2":0.02528,"16.3":0.04644,"16.4":0.01058,"16.5":0.01881,"16.6-16.7":0.22869,"17.0":0.01235,"17.1":0.02175,"17.2":0.01705,"17.3":0.0241,"17.4":0.04292,"17.5":0.08995,"17.6-17.7":0.23516,"18.0":0.0582,"18.1":0.1311,"18.2":0.06937,"18.3":0.29806,"18.4":0.31628,"18.5":3.70782,"26.0":0},P:{"4":0.02049,"21":0.02049,"23":0.17417,"24":0.09221,"25":0.04098,"26":0.16392,"27":0.44054,"28":2.58174,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 15.0 16.0 18.0 19.0","7.2-7.4":0.07172,"11.1-11.2":0.07172,"14.0":0.02049,"17.0":0.19466},I:{"0":0.03918,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.67501,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.51177},R:{_:"0"},M:{"0":0.43954},Q:{"14.9":0.00785},O:{"0":1.23229},H:{"0":0}}; +module.exports={C:{"97":0.00558,"106":0.00186,"109":0.01301,"110":0.00558,"111":0.00372,"115":0.32161,"119":0.0316,"121":0.01301,"123":0.03532,"124":0.01301,"125":0.5168,"126":0.50379,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 101 102 103 104 105 107 108 112 113 114 116 117 118 120 122 127 128 129 3.5 3.6"},D:{"35":0.00186,"44":0.00186,"46":0.00558,"49":0.00372,"63":0.00372,"65":0.04462,"68":0.01487,"70":0.01487,"75":0.00186,"78":0.00744,"79":0.00372,"81":0.00558,"86":0.00186,"87":0.01301,"89":0.02045,"91":0.04276,"95":0.00186,"96":0.00558,"98":0.0093,"99":0.03904,"100":0.00372,"103":0.01115,"104":0.00186,"105":0.01487,"106":0.00558,"107":0.00372,"108":0.00372,"109":1.2195,"110":0.0093,"111":0.00372,"114":0.01115,"115":0.00558,"116":0.02789,"117":0.0093,"118":0.00558,"119":0.03346,"120":0.03718,"121":0.04276,"122":0.08737,"123":0.28257,"124":8.34319,"125":2.50221,"126":0.00186,"127":0.00186,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 45 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 67 69 71 72 73 74 76 77 80 83 84 85 88 90 92 93 94 97 101 102 112 113 128"},F:{"68":0.00558,"79":0.00186,"107":0.03346,"108":0.00372,"109":0.17475,"110":0.01301,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00186,"14":0.01859,"16":0.00186,"17":0.04462,"18":0.0409,"84":0.00372,"89":0.00372,"90":0.00372,"92":0.05577,"100":0.00744,"109":0.02417,"110":0.00186,"111":0.0093,"114":0.00372,"116":0.00186,"118":0.00186,"119":0.00558,"120":0.0316,"121":0.04648,"122":0.07436,"123":0.08551,"124":1.58759,"125":0.60418,_:"13 15 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 112 113 115 117"},E:{"14":0.00186,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 15.5 16.0 16.2 17.0 17.6","13.1":0.01115,"14.1":0.01487,"15.1":0.02603,"15.2-15.3":0.00186,"15.6":0.01487,"16.1":0.00372,"16.3":0.00186,"16.4":0.00372,"16.5":0.00744,"16.6":0.05949,"17.1":0.02974,"17.2":0.00744,"17.3":0.01301,"17.4":0.18218,"17.5":0.00372},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00114,"5.0-5.1":0.00114,"6.0-6.1":0.00285,"7.0-7.1":0.00399,"8.1-8.4":0.00114,"9.0-9.2":0.00285,"9.3":0.01313,"10.0-10.2":0.00228,"10.3":0.02054,"11.0-11.2":0.03025,"11.3-11.4":0.00571,"12.0-12.1":0.00342,"12.2-12.5":0.08275,"13.0-13.1":0.00171,"13.2":0.00799,"13.3":0.00399,"13.4-13.7":0.01826,"14.0-14.4":0.03139,"14.5-14.8":0.04851,"15.0-15.1":0.0234,"15.2-15.3":0.02568,"15.4":0.0291,"15.5":0.03652,"15.6-15.8":0.32871,"16.0":0.07476,"16.1":0.15408,"16.2":0.07476,"16.3":0.12955,"16.4":0.02739,"16.5":0.05536,"16.6-16.7":0.44114,"17.0":0.04794,"17.1":0.07818,"17.2":0.08161,"17.3":0.15066,"17.4":3.42125,"17.5":0.2414,"17.6":0},P:{"4":0.0907,"20":0.17133,"21":0.13101,"22":0.36281,"23":0.47367,"24":1.3303,"25":2.37842,_:"5.0-5.4 8.2 10.1 14.0","6.2-6.4":0.01008,"7.2-7.4":0.62484,"9.2":0.06047,"11.1-11.2":0.03023,"12.0":0.04031,"13.0":0.01008,"15.0":0.01008,"16.0":0.01008,"17.0":0.02016,"18.0":0.04031,"19.0":0.26203},I:{"0":0.39735,"3":0,"4":0.00004,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00008,"4.2-4.3":0.00024,"4.4":0,"4.4.3-4.4.4":0.00088},K:{"0":2.27948,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01673,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.82121},R:{_:"0"},M:{"0":0.03256},Q:{"14.9":0.16282},O:{"0":0.65128},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/DK.js b/node_modules/caniuse-lite/data/regions/DK.js index f92398900..6239903df 100644 --- a/node_modules/caniuse-lite/data/regions/DK.js +++ b/node_modules/caniuse-lite/data/regions/DK.js @@ -1 +1 @@ -module.exports={C:{"52":0.00572,"78":0.01145,"106":0.00572,"109":0.00572,"115":0.09731,"125":0.00572,"128":0.08014,"133":0.00572,"135":0.01145,"136":0.01717,"137":0.05152,"138":0.09731,"139":1.39093,"140":0.21751,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 134 141 142 143 3.5 3.6"},D:{"38":0.00572,"44":0.00572,"48":0.01717,"49":0.01717,"52":0.04579,"58":0.02862,"66":0.00572,"79":0.01145,"83":0.00572,"87":0.01717,"88":0.04007,"91":0.00572,"98":0.00572,"102":0.01717,"103":0.21179,"104":0.00572,"105":0.01145,"106":0.00572,"107":0.01145,"108":0.01145,"109":0.55523,"110":0.00572,"111":0.00572,"112":0.01717,"114":0.0229,"115":0.00572,"116":0.19462,"117":0.0229,"118":0.03434,"119":0.01145,"120":0.06296,"121":0.00572,"122":0.10303,"123":0.03434,"124":0.07441,"125":0.05724,"126":0.23468,"127":0.01717,"128":0.13165,"129":0.03434,"130":0.04007,"131":0.22324,"132":0.17744,"133":0.27475,"134":0.3091,"135":0.92729,"136":6.67418,"137":27.00011,"138":0.93874,"139":0.00572,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 45 46 47 50 51 53 54 55 56 57 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 89 90 92 93 94 95 96 97 99 100 101 113 140 141"},F:{"89":0.02862,"90":0.01145,"95":0.0229,"102":0.01717,"117":0.00572,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00572,"86":0.00572,"109":0.04007,"121":0.00572,"124":0.00572,"125":0.00572,"126":0.01145,"127":0.00572,"128":0.00572,"129":0.0229,"130":0.01717,"131":0.04007,"132":0.04007,"133":0.01717,"134":0.03434,"135":0.06296,"136":0.87577,"137":5.8442,"138":0.44075,_:"12 13 14 15 17 18 79 80 81 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 122 123"},E:{"14":0.00572,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 26.0","13.1":0.03434,"14.1":0.08014,"15.1":0.00572,"15.2-15.3":0.00572,"15.4":0.0229,"15.5":0.0229,"15.6":0.25186,"16.0":0.09731,"16.1":0.02862,"16.2":0.01717,"16.3":0.06296,"16.4":0.04007,"16.5":0.03434,"16.6":0.37206,"17.0":0.01717,"17.1":0.19462,"17.2":0.0229,"17.3":0.0229,"17.4":0.08014,"17.5":0.1202,"17.6":0.32054,"18.0":0.05152,"18.1":0.09158,"18.2":0.0229,"18.3":0.22324,"18.4":0.21179,"18.5":2.79904},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00377,"5.0-5.1":0,"6.0-6.1":0.00754,"7.0-7.1":0.00754,"8.1-8.4":0,"9.0-9.2":0.00377,"9.3":0.02262,"10.0-10.2":0.00189,"10.3":0.03771,"11.0-11.2":0.24132,"11.3-11.4":0.0132,"12.0-12.1":0.00377,"12.2-12.5":0.12631,"13.0-13.1":0.00189,"13.2":0.00566,"13.3":0.00377,"13.4-13.7":0.02074,"14.0-14.4":0.04902,"14.5-14.8":0.04902,"15.0-15.1":0.03393,"15.2-15.3":0.03393,"15.4":0.04148,"15.5":0.04525,"15.6-15.8":0.58444,"16.0":0.0773,"16.1":0.15836,"16.2":0.08107,"16.3":0.14894,"16.4":0.03393,"16.5":0.06033,"16.6-16.7":0.73337,"17.0":0.03959,"17.1":0.06976,"17.2":0.05467,"17.3":0.0773,"17.4":0.13763,"17.5":0.28845,"17.6-17.7":0.75411,"18.0":0.18664,"18.1":0.42042,"18.2":0.22246,"18.3":0.95583,"18.4":1.01428,"18.5":11.89043,"26.0":0},P:{"4":0.0108,"21":0.0108,"22":0.0108,"24":0.0108,"25":0.0108,"26":0.04322,"27":0.06482,"28":2.21484,_:"20 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.03841,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.3762,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00744,"7":0.00744,"8":0.02232,"9":0.00744,"10":0.01488,"11":0.01488,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.66517},R:{_:"0"},M:{"0":0.43605},Q:{"14.9":0.00428},O:{"0":0.12825},H:{"0":0}}; +module.exports={C:{"52":0.04442,"59":0.00635,"78":0.03173,"88":0.03173,"97":0.00635,"102":0.00635,"106":0.01269,"110":0.18403,"112":0.00635,"115":0.20307,"116":0.00635,"121":0.00635,"122":0.00635,"123":0.01904,"124":0.03808,"125":1.02171,"126":0.85671,"127":0.00635,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 98 99 100 101 103 104 105 107 108 109 111 113 114 117 118 119 120 128 129 3.5 3.6"},D:{"38":0.00635,"44":0.01269,"49":0.01269,"52":0.03808,"66":0.02538,"77":0.00635,"79":0.01269,"87":0.05077,"88":0.02538,"89":0.01904,"92":0.00635,"93":0.09519,"94":0.01269,"95":0.01269,"96":0.00635,"98":0.00635,"99":0.00635,"100":0.00635,"102":0.01269,"103":0.20942,"104":0.02538,"105":0.01269,"106":0.00635,"107":0.01904,"108":0.00635,"109":0.75517,"110":0.03173,"111":0.01904,"112":0.03173,"113":0.20307,"114":0.26019,"115":0.04442,"116":0.36807,"117":0.31095,"118":0.06346,"119":0.05711,"120":0.26653,"121":0.38711,"122":0.70441,"123":2.95724,"124":27.99855,"125":9.34131,"126":0.01269,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 78 80 81 83 84 85 86 90 91 97 101 127 128"},F:{"46":0.01269,"83":0.00635,"95":0.01904,"102":0.01269,"107":0.40614,"108":0.01269,"109":1.14863,"110":0.03173,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00635,"94":0.00635,"107":0.00635,"109":0.07615,"114":0.01904,"115":0.00635,"116":0.01269,"117":0.00635,"118":0.01269,"119":0.01904,"120":0.03173,"121":0.03173,"122":0.06346,"123":0.2348,"124":5.57179,"125":2.93185,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113"},E:{"12":0.00635,"14":0.06346,"15":0.00635,_:"0 4 5 6 7 8 9 10 11 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00635,"12.1":0.00635,"13.1":0.05711,"14.1":0.14596,"15.1":0.03173,"15.2-15.3":0.02538,"15.4":0.03808,"15.5":0.07615,"15.6":0.45691,"16.0":0.08884,"16.1":0.06346,"16.2":0.06981,"16.3":0.19673,"16.4":0.06981,"16.5":0.11423,"16.6":0.65364,"17.0":0.08884,"17.1":0.14596,"17.2":0.165,"17.3":0.18403,"17.4":2.0561,"17.5":0.32999},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00356,"5.0-5.1":0.00356,"6.0-6.1":0.00889,"7.0-7.1":0.01245,"8.1-8.4":0.00356,"9.0-9.2":0.00889,"9.3":0.04089,"10.0-10.2":0.00711,"10.3":0.06401,"11.0-11.2":0.09424,"11.3-11.4":0.01778,"12.0-12.1":0.01067,"12.2-12.5":0.25782,"13.0-13.1":0.00533,"13.2":0.02489,"13.3":0.01245,"13.4-13.7":0.0569,"14.0-14.4":0.09779,"14.5-14.8":0.15113,"15.0-15.1":0.0729,"15.2-15.3":0.08001,"15.4":0.09068,"15.5":0.11379,"15.6-15.8":1.02415,"16.0":0.23292,"16.1":0.48007,"16.2":0.23292,"16.3":0.40361,"16.4":0.08535,"16.5":0.17247,"16.6-16.7":1.37442,"17.0":0.14936,"17.1":0.24359,"17.2":0.25426,"17.3":0.4694,"17.4":10.65933,"17.5":0.75211,"17.6":0},P:{"4":0.02159,"20":0.01079,"21":0.01079,"22":0.01079,"23":0.04318,"24":0.12953,"25":1.87819,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","18.0":0.01079},I:{"0":0.04732,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.16808,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00698,"11":0.06283,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":16.11527},R:{_:"0"},M:{"0":0.35809},Q:{_:"14.9"},O:{"0":0.01462},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/DM.js b/node_modules/caniuse-lite/data/regions/DM.js index e3df7ac68..a518af3da 100644 --- a/node_modules/caniuse-lite/data/regions/DM.js +++ b/node_modules/caniuse-lite/data/regions/DM.js @@ -1 +1 @@ -module.exports={C:{"103":0.00467,"105":0.00467,"108":0.00467,"109":0.00935,"115":0.64487,"118":0.00467,"120":0.00467,"124":0.00467,"132":0.00467,"138":0.02804,"139":0.69628,"140":0.07944,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 110 111 112 113 114 116 117 119 121 122 123 125 126 127 128 129 130 131 133 134 135 136 137 141 142 143 3.5 3.6"},D:{"39":0.02337,"40":0.00935,"41":0.02804,"42":0.01869,"43":0.03738,"44":0.02337,"45":0.03738,"46":0.01402,"47":0.00935,"48":0.02337,"49":0.01869,"50":0.00935,"51":0.01402,"52":0.00935,"53":0.01869,"54":0.02337,"55":0.02804,"56":0.03271,"57":0.02804,"58":0.02804,"59":0.02337,"60":0.02804,"69":0.02337,"74":0.31776,"75":0.02804,"76":0.71497,"77":0.09346,"79":2.20098,"80":0.20561,"87":0.03271,"90":0.00935,"91":0.01402,"93":0.03738,"103":0.02337,"109":0.18692,"111":0.04206,"116":0.02337,"117":0.00467,"118":0.00467,"119":0.04206,"121":0.01402,"122":0.01402,"123":0.01869,"125":5.75714,"126":0.11683,"127":0.00467,"128":0.02337,"130":0.01402,"131":0.12617,"132":0.14019,"133":0.00935,"134":0.1215,"135":0.26636,"136":2.62623,"137":16.91159,"138":0.50001,"139":0.00467,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 73 78 81 83 84 85 86 88 89 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 112 113 114 115 120 124 129 140 141"},F:{"95":0.00467,"117":0.00467,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"84":0.00467,"94":0.00467,"109":0.00935,"120":0.00467,"128":0.00467,"131":0.02804,"132":0.00935,"134":0.01869,"135":0.02804,"136":0.85049,"137":5.34124,"138":0.44394,_:"12 13 14 15 16 17 18 79 80 81 83 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125 126 127 129 130 133"},E:{"14":0.03271,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 16.3 16.4 17.0 17.4 18.2 26.0","13.1":0.00935,"14.1":0.00467,"15.6":0.1729,"16.0":0.00467,"16.1":0.09813,"16.5":0.00935,"16.6":0.00935,"17.1":0.00935,"17.2":0.00467,"17.3":0.00935,"17.5":0.27103,"17.6":0.1215,"18.0":0.00467,"18.1":0.01869,"18.3":0.12617,"18.4":0.02804,"18.5":0.79908},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00176,"5.0-5.1":0,"6.0-6.1":0.00352,"7.0-7.1":0.00352,"8.1-8.4":0,"9.0-9.2":0.00176,"9.3":0.01055,"10.0-10.2":0.00088,"10.3":0.01758,"11.0-11.2":0.11251,"11.3-11.4":0.00615,"12.0-12.1":0.00176,"12.2-12.5":0.05889,"13.0-13.1":0.00088,"13.2":0.00264,"13.3":0.00176,"13.4-13.7":0.00967,"14.0-14.4":0.02285,"14.5-14.8":0.02285,"15.0-15.1":0.01582,"15.2-15.3":0.01582,"15.4":0.01934,"15.5":0.02109,"15.6-15.8":0.27248,"16.0":0.03604,"16.1":0.07383,"16.2":0.0378,"16.3":0.06944,"16.4":0.01582,"16.5":0.02813,"16.6-16.7":0.34191,"17.0":0.01846,"17.1":0.03252,"17.2":0.02549,"17.3":0.03604,"17.4":0.06416,"17.5":0.13448,"17.6-17.7":0.35158,"18.0":0.08702,"18.1":0.19601,"18.2":0.10372,"18.3":0.44563,"18.4":0.47288,"18.5":5.54357,"26.0":0},P:{"4":0.01081,"23":0.01081,"25":0.06488,"26":0.04325,"27":0.1622,"28":3.47105,_:"20 21 22 24 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0","5.0-5.4":0.01081,"6.2-6.4":0.03244,"7.2-7.4":0.08651,"16.0":0.01081,"17.0":0.06488,"19.0":0.01081},I:{"0":0.01595,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.09056,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.87101},R:{_:"0"},M:{"0":0.3942},Q:{"14.9":0.01598},O:{"0":0.21841},H:{"0":0}}; +module.exports={C:{"115":0.04497,"124":0.00409,"125":0.4415,"126":0.33113,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"39":0.00409,"49":0.00409,"50":0.03679,"65":0.02862,"69":0.01635,"70":0.00409,"74":0.00409,"75":0.14308,"76":0.54779,"77":0.13082,"86":0.00409,"87":0.00409,"88":0.01226,"90":0.00409,"91":0.01226,"93":0.04497,"95":0.0327,"96":0.00409,"98":0.00818,"99":0.00409,"103":0.17987,"104":0.04497,"105":0.04497,"106":0.00409,"107":0.00818,"109":0.35157,"111":0.00409,"112":0.00409,"113":0.00409,"115":0.00409,"116":0.01635,"117":0.00409,"118":0.22075,"119":0.02044,"120":0.06132,"121":0.04906,"122":0.1349,"123":2.32607,"124":13.92782,"125":6.79834,"126":0.02453,"127":0.00409,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 71 72 73 78 79 80 81 83 84 85 89 92 94 97 100 101 102 108 110 114 128"},F:{"90":0.00409,"95":0.00409,"106":0.00818,"107":0.08176,"108":0.02044,"109":1.47168,"110":0.02453,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00409,"17":0.00409,"18":0.00409,"92":0.00409,"107":0.00818,"109":0.00818,"111":0.00409,"114":0.02453,"117":0.00409,"118":0.00818,"120":0.02453,"121":0.00409,"122":0.07767,"123":0.11038,"124":4.3251,"125":2.1462,_:"12 13 14 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 112 113 115 116 119"},E:{"14":0.00818,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 16.2 17.6","12.1":0.01226,"13.1":0.00818,"14.1":0.07358,"15.2-15.3":0.00409,"15.4":0.00409,"15.5":0.0327,"15.6":0.16761,"16.0":0.00409,"16.1":0.05723,"16.3":0.00409,"16.4":0.01226,"16.5":0.03679,"16.6":0.03679,"17.0":0.02453,"17.1":0.02044,"17.2":0.01635,"17.3":0.01226,"17.4":0.56823,"17.5":0.12264},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00215,"5.0-5.1":0.00215,"6.0-6.1":0.00538,"7.0-7.1":0.00754,"8.1-8.4":0.00215,"9.0-9.2":0.00538,"9.3":0.02476,"10.0-10.2":0.00431,"10.3":0.03876,"11.0-11.2":0.05706,"11.3-11.4":0.01077,"12.0-12.1":0.00646,"12.2-12.5":0.1561,"13.0-13.1":0.00323,"13.2":0.01507,"13.3":0.00754,"13.4-13.7":0.03445,"14.0-14.4":0.05921,"14.5-14.8":0.09151,"15.0-15.1":0.04414,"15.2-15.3":0.04845,"15.4":0.05491,"15.5":0.0689,"15.6-15.8":0.62011,"16.0":0.14103,"16.1":0.29068,"16.2":0.14103,"16.3":0.24438,"16.4":0.05168,"16.5":0.10443,"16.6-16.7":0.83219,"17.0":0.09043,"17.1":0.14749,"17.2":0.15395,"17.3":0.28422,"17.4":6.45407,"17.5":0.45539,"17.6":0},P:{"4":0.12737,"20":0.02316,"21":0.09263,"22":0.04632,"23":0.06948,"24":0.17369,"25":2.53588,"5.0-5.4":0.02316,"6.2-6.4":0.03474,"7.2-7.4":0.10421,_:"8.2 9.2 10.1 11.1-11.2 12.0 15.0 18.0","13.0":0.01158,"14.0":0.01158,"16.0":0.01158,"17.0":0.01158,"19.0":0.08106},I:{"0":0.053,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":1.07007,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01226,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00591,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":48.32905},R:{_:"0"},M:{"0":0.15371},Q:{_:"14.9"},O:{"0":0.37246},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/DO.js b/node_modules/caniuse-lite/data/regions/DO.js index 7262cf418..6676a346c 100644 --- a/node_modules/caniuse-lite/data/regions/DO.js +++ b/node_modules/caniuse-lite/data/regions/DO.js @@ -1 +1 @@ -module.exports={C:{"3":0.0015,"4":0.12,"52":0.0015,"78":0.0015,"106":0.0015,"107":0.0015,"108":0.0015,"109":0.0015,"115":0.012,"128":0.012,"133":0.0015,"134":0.0105,"135":0.0015,"136":0.0015,"137":0.0015,"138":0.021,"139":0.2145,"140":0.0255,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 141 142 143 3.5 3.6"},D:{"39":0.009,"40":0.009,"41":0.009,"42":0.009,"43":0.009,"44":0.009,"45":0.009,"46":0.009,"47":0.0135,"48":0.0225,"49":0.012,"50":0.009,"51":0.009,"52":0.009,"53":0.0075,"54":0.009,"55":0.009,"56":0.0105,"57":0.009,"58":0.009,"59":0.009,"60":0.009,"65":0.003,"69":0.003,"73":0.006,"75":0.0015,"76":0.003,"79":0.0045,"81":0.0015,"83":0.0015,"84":0.0015,"85":0.0015,"87":0.0045,"88":0.0015,"90":0.003,"91":0.0045,"93":0.018,"94":0.0015,"95":0.0015,"97":0.0015,"98":0.0045,"99":0.0015,"100":0.006,"102":0.0015,"103":0.03,"104":0.0045,"105":0.0015,"106":0.0075,"107":0.0165,"108":0.0105,"109":0.2025,"110":0.0105,"111":0.0165,"112":0.006,"113":0.0015,"114":0.0015,"116":0.0285,"117":0.0015,"118":0.003,"119":0.0045,"120":0.009,"121":0.0105,"122":0.0165,"123":0.003,"124":0.006,"125":0.6945,"126":0.009,"127":0.003,"128":0.03,"129":0.0075,"130":0.0075,"131":0.018,"132":0.0195,"133":0.018,"134":0.0255,"135":0.0885,"136":1.653,"137":5.6415,"138":0.258,"139":0.0015,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 71 72 74 77 78 80 86 89 92 96 101 115 140 141"},F:{"46":0.0015,"89":0.0045,"90":0.0015,"95":0.0045,"102":0.0015,"113":0.0015,"114":0.003,"117":0.0015,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.003,"85":0.0015,"92":0.018,"99":0.0015,"100":0.0015,"105":0.0015,"108":0.003,"109":0.006,"110":0.003,"111":0.003,"120":0.0015,"122":0.003,"123":0.003,"124":0.0015,"126":0.0015,"127":0.0015,"128":0.0045,"129":0.012,"130":0.003,"131":0.0075,"132":0.0135,"133":0.003,"134":0.0315,"135":0.0165,"136":0.243,"137":1.545,"138":0.147,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 101 102 103 104 106 107 112 113 114 115 116 117 118 119 121 125"},E:{"4":0.0015,"14":0.0015,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 15.4","5.1":0.006,"11.1":0.0015,"13.1":0.015,"14.1":0.0105,"15.1":0.0015,"15.5":0.0015,"15.6":0.024,"16.0":0.003,"16.1":0.006,"16.2":0.003,"16.3":0.0045,"16.4":0.0045,"16.5":0.003,"16.6":0.0345,"17.0":0.003,"17.1":0.0105,"17.2":0.003,"17.3":0.0045,"17.4":0.0075,"17.5":0.0135,"17.6":0.054,"18.0":0.0075,"18.1":0.0165,"18.2":0.0105,"18.3":0.0315,"18.4":0.027,"18.5":0.4035,"26.0":0.0015},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00211,"5.0-5.1":0,"6.0-6.1":0.00423,"7.0-7.1":0.00423,"8.1-8.4":0,"9.0-9.2":0.00211,"9.3":0.01269,"10.0-10.2":0.00106,"10.3":0.02115,"11.0-11.2":0.13535,"11.3-11.4":0.0074,"12.0-12.1":0.00211,"12.2-12.5":0.07085,"13.0-13.1":0.00106,"13.2":0.00317,"13.3":0.00211,"13.4-13.7":0.01163,"14.0-14.4":0.02749,"14.5-14.8":0.02749,"15.0-15.1":0.01903,"15.2-15.3":0.01903,"15.4":0.02326,"15.5":0.02538,"15.6-15.8":0.32779,"16.0":0.04335,"16.1":0.08882,"16.2":0.04547,"16.3":0.08353,"16.4":0.01903,"16.5":0.03384,"16.6-16.7":0.41133,"17.0":0.02221,"17.1":0.03912,"17.2":0.03066,"17.3":0.04335,"17.4":0.07719,"17.5":0.16178,"17.6-17.7":0.42296,"18.0":0.10468,"18.1":0.2358,"18.2":0.12477,"18.3":0.5361,"18.4":0.56888,"18.5":6.66902,"26.0":0},P:{"4":0.01063,"21":0.01063,"24":0.01063,"25":0.01063,"26":0.02125,"27":0.02125,"28":0.37188,_:"20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01063},I:{"0":0.02546,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.068,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00621,"7":0.00621,"8":0.02483,"9":0.00621,"10":0.01241,"11":0.00414,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":74.856},R:{_:"0"},M:{"0":0.034},Q:{_:"14.9"},O:{"0":0.017},H:{"0":0}}; +module.exports={C:{"4":0.16298,"47":0.00398,"52":0.00795,"75":0.00398,"78":0.00398,"81":0.02385,"103":0.00398,"105":0.00398,"106":0.00398,"107":0.00398,"108":0.00398,"109":0.00398,"110":0.00795,"113":0.00398,"115":0.09143,"116":0.00398,"118":0.00398,"120":0.01193,"122":0.00795,"123":0.0159,"124":0.0318,"125":0.40148,"126":0.30608,"127":0.00398,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 111 112 114 117 119 121 128 129 3.5 3.6"},D:{"38":0.00398,"45":0.00795,"47":0.00398,"49":0.01193,"50":0.00398,"58":0.00398,"63":0.00398,"65":0.00398,"69":0.00398,"70":0.01193,"71":0.0159,"72":0.00795,"73":0.00398,"74":0.00398,"75":0.00398,"76":0.01193,"79":0.02385,"81":0.00795,"83":0.00398,"84":0.00795,"85":0.01193,"86":0.00795,"87":0.06758,"88":0.00398,"89":0.00398,"90":0.00795,"91":0.01988,"92":0.00398,"93":0.03578,"94":0.00795,"95":0.00398,"97":0.02385,"98":0.00398,"99":0.00795,"100":0.00398,"101":0.00398,"102":0.01193,"103":0.12323,"104":0.00398,"105":0.01193,"106":0.02783,"107":0.0318,"108":0.03578,"109":1.64565,"110":0.03578,"111":0.03578,"112":0.02783,"113":0.00398,"114":0.01988,"115":0.05565,"116":0.13118,"117":0.00795,"118":0.0159,"119":0.17093,"120":0.07553,"121":0.159,"122":0.25838,"123":0.71948,"124":16.0749,"125":5.79953,"126":0.00398,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 46 48 51 52 53 54 55 56 57 59 60 61 62 64 66 67 68 77 78 80 96 127 128"},F:{"69":0.02385,"95":0.02385,"104":0.00398,"107":0.33788,"108":0.02385,"109":1.7013,"110":0.1272,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.0318,"18":0.04373,"89":0.00398,"90":0.00398,"92":0.03975,"100":0.00795,"107":0.00795,"108":0.01988,"109":0.02783,"110":0.00398,"113":0.00398,"114":0.00398,"117":0.00398,"118":0.00795,"119":0.01193,"120":0.02783,"121":0.0636,"122":0.0477,"123":0.13118,"124":3.26348,"125":1.52243,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 111 112 115 116"},E:{"14":0.00795,"15":0.01193,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.02385,"11.1":0.00398,"12.1":0.00398,"13.1":0.02783,"14.1":0.05963,"15.1":0.01193,"15.2-15.3":0.00398,"15.4":0.01193,"15.5":0.00795,"15.6":0.12323,"16.0":0.00795,"16.1":0.02783,"16.2":0.02783,"16.3":0.04373,"16.4":0.0159,"16.5":0.0318,"16.6":0.1272,"17.0":0.04373,"17.1":0.0636,"17.2":0.07155,"17.3":0.0636,"17.4":0.71153,"17.5":0.0954},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00336,"5.0-5.1":0.00336,"6.0-6.1":0.00841,"7.0-7.1":0.01178,"8.1-8.4":0.00336,"9.0-9.2":0.00841,"9.3":0.03869,"10.0-10.2":0.00673,"10.3":0.06056,"11.0-11.2":0.08916,"11.3-11.4":0.01682,"12.0-12.1":0.01009,"12.2-12.5":0.24392,"13.0-13.1":0.00505,"13.2":0.02355,"13.3":0.01178,"13.4-13.7":0.05383,"14.0-14.4":0.09252,"14.5-14.8":0.14299,"15.0-15.1":0.06897,"15.2-15.3":0.0757,"15.4":0.08579,"15.5":0.10766,"15.6-15.8":0.96894,"16.0":0.22037,"16.1":0.45419,"16.2":0.22037,"16.3":0.38185,"16.4":0.08074,"16.5":0.16317,"16.6-16.7":1.30033,"17.0":0.1413,"17.1":0.23046,"17.2":0.24055,"17.3":0.4441,"17.4":10.08467,"17.5":0.71156,"17.6":0},P:{"4":0.03172,"20":0.01057,"21":0.05287,"22":0.04229,"23":0.11631,"24":0.13745,"25":1.51198,"5.0-5.4":0.01057,"6.2-6.4":0.01057,"7.2-7.4":0.06344,_:"8.2 10.1 12.0 15.0","9.2":0.01057,"11.1-11.2":0.03172,"13.0":0.01057,"14.0":0.03172,"16.0":0.02115,"17.0":0.02115,"18.0":0.01057,"19.0":0.03172},I:{"0":0.03001,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.2651,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02112,"9":0.00422,"11":0.04223,_:"6 7 10 5.5"},S:{"2.5":0.00603,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.4001},R:{_:"0"},M:{"0":0.4097},Q:{"14.9":0.00603},O:{"0":0.03615},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/DZ.js b/node_modules/caniuse-lite/data/regions/DZ.js index d1b684faa..a6c5282f4 100644 --- a/node_modules/caniuse-lite/data/regions/DZ.js +++ b/node_modules/caniuse-lite/data/regions/DZ.js @@ -1 +1 @@ -module.exports={C:{"43":0.00315,"44":0.01574,"47":0.00315,"49":0.00315,"52":0.32414,"68":0.00315,"72":0.00315,"78":0.00315,"91":0.00315,"94":0.00315,"103":0.01574,"108":0.00315,"109":0.00315,"115":0.73325,"118":0.00315,"122":0.00315,"125":0.00629,"127":0.00944,"128":0.04406,"130":0.00315,"131":0.00315,"132":0.00629,"133":0.00315,"134":0.00944,"135":0.00629,"136":0.00629,"137":0.00944,"138":0.06923,"139":0.88745,"140":0.14162,"141":0.00315,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 45 46 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 95 96 97 98 99 100 101 102 104 105 106 107 110 111 112 113 114 116 117 119 120 121 123 124 126 129 142 143 3.5 3.6"},D:{"5":0.00629,"11":0.00315,"26":0.00315,"29":0.00315,"33":0.00315,"37":0.00315,"38":0.00315,"39":0.01574,"40":0.01888,"41":0.01574,"42":0.01574,"43":0.03147,"44":0.01574,"45":0.01888,"46":0.01574,"47":0.02203,"48":0.01574,"49":0.04406,"50":0.02203,"51":0.01574,"52":0.01574,"53":0.01888,"54":0.01574,"55":0.01888,"56":0.02832,"57":0.01574,"58":0.2077,"59":0.01888,"60":0.01888,"61":0.00315,"62":0.00315,"63":0.00315,"64":0.00629,"65":0.00629,"66":0.00629,"67":0.00315,"68":0.00629,"69":0.00629,"70":0.00629,"71":0.00629,"72":0.01259,"73":0.00629,"74":0.00629,"75":0.00629,"76":0.00315,"77":0.00315,"78":0.00629,"79":0.08497,"80":0.00629,"81":0.01574,"83":0.02832,"84":0.00315,"85":0.01259,"86":0.01888,"87":0.06923,"88":0.00944,"89":0.00944,"90":0.00315,"91":0.01259,"92":0.00315,"93":0.00629,"94":0.00944,"95":0.04091,"96":0.00944,"97":0.01259,"98":0.02832,"99":0.00629,"100":0.00629,"101":0.00629,"102":0.00629,"103":0.03462,"104":0.07238,"105":0.00629,"106":0.01888,"107":0.01574,"108":0.04406,"109":4.07537,"110":0.03776,"111":0.01259,"112":0.00944,"113":0.00944,"114":0.00629,"115":0.00315,"116":0.02832,"117":0.00315,"118":0.05035,"119":0.07868,"120":0.01574,"121":0.01259,"122":0.02518,"123":0.01574,"124":0.03147,"125":0.91263,"126":0.03462,"127":0.04091,"128":0.04406,"129":0.01888,"130":0.02832,"131":0.08182,"132":0.06294,"133":0.06609,"134":0.10385,"135":0.17938,"136":1.39097,"137":10.21831,"138":0.55073,"139":0.00944,_:"4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 34 35 36 140 141"},F:{"25":0.00315,"37":0.00629,"46":0.00315,"73":0.00315,"79":0.02832,"82":0.00315,"84":0.00315,"85":0.00629,"86":0.00315,"87":0.00315,"89":0.01259,"90":0.00629,"95":0.16679,"102":0.00315,"113":0.00315,"114":0.00315,"117":0.00315,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 83 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00315,"16":0.00315,"17":0.00315,"18":0.00629,"89":0.00629,"92":0.03462,"100":0.00315,"103":0.00315,"107":0.00315,"108":0.00315,"109":0.04721,"111":0.00315,"114":0.00315,"122":0.00629,"123":0.00315,"126":0.00315,"127":0.00315,"128":0.00315,"129":0.00315,"130":0.00629,"131":0.00944,"132":0.01259,"133":0.00629,"134":0.12588,"135":0.02203,"136":0.22344,"137":1.34377,"138":0.13847,_:"13 14 15 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 104 105 106 110 112 113 115 116 117 118 119 120 121 124 125"},E:{"4":0.00315,"14":0.00315,"15":0.00315,_:"0 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 26.0","5.1":0.00315,"13.1":0.00629,"14.1":0.00629,"15.1":0.00315,"15.5":0.00315,"15.6":0.04406,"16.1":0.00315,"16.2":0.00315,"16.3":0.01888,"16.4":0.00315,"16.5":0.00315,"16.6":0.02832,"17.0":0.00315,"17.1":0.01574,"17.2":0.00629,"17.3":0.00315,"17.4":0.01574,"17.5":0.01259,"17.6":0.03147,"18.0":0.00944,"18.1":0.00944,"18.2":0.01259,"18.3":0.02203,"18.4":0.03776,"18.5":0.25491},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00092,"5.0-5.1":0,"6.0-6.1":0.00184,"7.0-7.1":0.00184,"8.1-8.4":0,"9.0-9.2":0.00092,"9.3":0.00552,"10.0-10.2":0.00046,"10.3":0.0092,"11.0-11.2":0.05886,"11.3-11.4":0.00322,"12.0-12.1":0.00092,"12.2-12.5":0.03081,"13.0-13.1":0.00046,"13.2":0.00138,"13.3":0.00092,"13.4-13.7":0.00506,"14.0-14.4":0.01196,"14.5-14.8":0.01196,"15.0-15.1":0.00828,"15.2-15.3":0.00828,"15.4":0.01012,"15.5":0.01104,"15.6-15.8":0.14255,"16.0":0.01885,"16.1":0.03863,"16.2":0.01977,"16.3":0.03633,"16.4":0.00828,"16.5":0.01471,"16.6-16.7":0.17888,"17.0":0.00966,"17.1":0.01701,"17.2":0.01334,"17.3":0.01885,"17.4":0.03357,"17.5":0.07035,"17.6-17.7":0.18393,"18.0":0.04552,"18.1":0.10254,"18.2":0.05426,"18.3":0.23314,"18.4":0.24739,"18.5":2.90019,"26.0":0},P:{"4":0.10492,"20":0.01049,"21":0.02098,"22":0.03148,"23":0.03148,"24":0.06295,"25":0.05246,"26":0.09443,"27":0.1364,"28":0.79741,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","6.2-6.4":0.01049,"7.2-7.4":0.12591,"13.0":0.01049,"17.0":0.01049,"18.0":0.01049,"19.0":0.01049},I:{"0":0.04105,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.6853,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05803,"9":0.01088,"10":0.01451,"11":0.13057,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.8352},R:{_:"0"},M:{"0":0.15077},Q:{"14.9":0.00685},O:{"0":0.34265},H:{"0":0}}; +module.exports={C:{"15":0.00214,"34":0.00214,"38":0.00214,"40":0.00214,"43":0.00214,"47":0.00428,"52":0.04496,"68":0.00214,"72":0.00428,"75":0.00214,"78":0.00642,"83":0.00214,"88":0.00428,"89":0.00214,"91":0.00214,"94":0.00214,"97":0.00428,"99":0.00214,"102":0.00214,"103":0.00856,"104":0.00214,"105":0.00214,"106":0.00214,"107":0.00214,"108":0.00214,"109":0.00214,"110":0.00214,"111":0.00214,"113":0.00428,"114":0.00214,"115":0.6423,"116":0.00214,"117":0.00214,"120":0.00214,"121":0.00642,"122":0.00642,"123":0.00642,"124":0.01713,"125":0.36611,"126":0.34042,"127":0.00214,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 41 42 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 76 77 79 80 81 82 84 85 86 87 90 92 93 95 96 98 100 101 112 118 119 128 129 3.5 3.6"},D:{"5":0.00214,"11":0.00428,"22":0.00214,"26":0.00214,"29":0.00214,"30":0.00214,"31":0.00214,"32":0.00428,"33":0.00428,"34":0.00428,"38":0.00428,"39":0.00214,"40":0.00642,"42":0.00428,"43":0.02783,"44":0.00214,"46":0.00214,"47":0.00642,"48":0.00214,"49":0.05138,"50":0.00642,"51":0.00214,"52":0.00214,"53":0.00214,"55":0.00214,"56":0.01927,"58":0.0471,"59":0.00214,"60":0.00214,"61":0.00642,"62":0.01071,"63":0.00642,"64":0.00642,"65":0.00642,"66":0.00214,"67":0.00428,"68":0.00642,"69":0.00856,"70":0.01071,"71":0.00642,"72":0.00642,"73":0.00428,"74":0.01285,"75":0.00428,"76":0.00856,"77":0.00642,"78":0.00642,"79":0.05995,"80":0.00856,"81":0.02141,"83":0.03426,"84":0.00642,"85":0.01499,"86":0.01713,"87":0.0471,"88":0.01071,"89":0.00856,"90":0.00428,"91":0.00856,"92":0.00428,"93":0.00428,"94":0.00428,"95":0.03854,"96":0.00856,"97":0.01071,"98":0.0364,"99":0.01071,"100":0.01713,"101":0.00428,"102":0.03426,"103":0.03212,"104":0.02141,"105":0.00856,"106":0.02783,"107":0.01927,"108":0.0364,"109":4.76587,"110":0.04068,"111":0.01285,"112":0.01285,"113":0.00856,"114":0.01071,"115":0.02355,"116":0.04068,"117":0.00856,"118":0.01071,"119":0.08136,"120":0.10277,"121":0.05995,"122":0.10705,"123":0.22266,"124":5.35464,"125":2.37223,"126":0.00642,"127":0.00428,_:"4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 23 24 25 27 28 35 36 37 41 45 54 57 128"},F:{"25":0.00428,"28":0.00856,"36":0.00214,"46":0.00214,"63":0.00214,"64":0.00214,"79":0.02141,"82":0.00214,"83":0.00214,"84":0.00428,"85":0.02141,"86":0.00214,"87":0.00214,"95":0.12632,"105":0.00428,"106":0.00214,"107":0.13917,"108":0.00856,"109":0.61019,"110":0.05138,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00214,"13":0.00214,"14":0.00214,"16":0.00214,"17":0.00214,"18":0.01071,"84":0.00214,"88":0.00214,"89":0.00214,"92":0.01927,"100":0.00214,"107":0.00214,"108":0.00214,"109":0.0471,"110":0.00214,"111":0.00214,"112":0.00214,"113":0.00214,"114":0.00642,"116":0.00214,"117":0.00214,"118":0.00214,"119":0.00428,"120":0.00856,"121":0.00856,"122":0.01713,"123":0.05995,"124":0.74507,"125":0.41321,_:"15 79 80 81 83 85 86 87 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 115"},E:{"9":0.00214,"14":0.00428,"15":0.00214,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00214,"13.1":0.00642,"14.1":0.00642,"15.1":0.00428,"15.2-15.3":0.00214,"15.4":0.00214,"15.5":0.00642,"15.6":0.02355,"16.0":0.00214,"16.1":0.00642,"16.2":0.00428,"16.3":0.01285,"16.4":0.00428,"16.5":0.00642,"16.6":0.02997,"17.0":0.00428,"17.1":0.00642,"17.2":0.01071,"17.3":0.01071,"17.4":0.13274,"17.5":0.02141},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00089,"5.0-5.1":0.00089,"6.0-6.1":0.00221,"7.0-7.1":0.0031,"8.1-8.4":0.00089,"9.0-9.2":0.00221,"9.3":0.01018,"10.0-10.2":0.00177,"10.3":0.01593,"11.0-11.2":0.02345,"11.3-11.4":0.00443,"12.0-12.1":0.00266,"12.2-12.5":0.06417,"13.0-13.1":0.00133,"13.2":0.0062,"13.3":0.0031,"13.4-13.7":0.01416,"14.0-14.4":0.02434,"14.5-14.8":0.03761,"15.0-15.1":0.01814,"15.2-15.3":0.01991,"15.4":0.02257,"15.5":0.02832,"15.6-15.8":0.25489,"16.0":0.05797,"16.1":0.11948,"16.2":0.05797,"16.3":0.10045,"16.4":0.02124,"16.5":0.04292,"16.6-16.7":0.34207,"17.0":0.03717,"17.1":0.06062,"17.2":0.06328,"17.3":0.11682,"17.4":2.6529,"17.5":0.18719,"17.6":0},P:{"4":0.17491,"20":0.04116,"21":0.0926,"22":0.11318,"23":0.21607,"24":0.26751,"25":0.87455,"5.0-5.4":0.01029,"6.2-6.4":0.03087,"7.2-7.4":0.24693,"8.2":0.01029,"9.2":0.02058,_:"10.1","11.1-11.2":0.02058,"12.0":0.01029,"13.0":0.03087,"14.0":0.02058,"15.0":0.01029,"16.0":0.03087,"17.0":0.04116,"18.0":0.03087,"19.0":0.10289},I:{"0":0.11744,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00026},K:{"0":0.74242,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01529,"9":0.00655,"10":0.00218,"11":0.08517,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":72.72668},R:{_:"0"},M:{"0":0.12576},Q:{"14.9":0.01572},O:{"0":0.47946},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/EC.js b/node_modules/caniuse-lite/data/regions/EC.js index 4f89237a0..7f7ea5ab2 100644 --- a/node_modules/caniuse-lite/data/regions/EC.js +++ b/node_modules/caniuse-lite/data/regions/EC.js @@ -1 +1 @@ -module.exports={C:{"4":0.00465,"52":0.00093,"78":0.00093,"89":0.00093,"111":0.00093,"113":0.00093,"115":0.0372,"119":0.00186,"120":0.00093,"121":0.00093,"122":0.00093,"123":0.00186,"127":0.00186,"128":0.01302,"131":0.00093,"132":0.00093,"133":0.00186,"134":0.00279,"135":0.00372,"136":0.00372,"137":0.00465,"138":0.01488,"139":0.3627,"140":0.05487,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 114 116 117 118 124 125 126 129 130 141 142 143 3.5 3.6"},D:{"38":0.00093,"39":0.00651,"40":0.00651,"41":0.00651,"42":0.00651,"43":0.00651,"44":0.00651,"45":0.00651,"46":0.00558,"47":0.00744,"48":0.00651,"49":0.00744,"50":0.00651,"51":0.00651,"52":0.00651,"53":0.00651,"54":0.00651,"55":0.00744,"56":0.00651,"57":0.00651,"58":0.00651,"59":0.00558,"60":0.00651,"65":0.00093,"66":0.00093,"69":0.00093,"73":0.00093,"75":0.00093,"79":0.01116,"84":0.00186,"85":0.00093,"86":0.00093,"87":0.00744,"88":0.00093,"91":0.00279,"93":0.00093,"94":0.00186,"95":0.00093,"97":0.00093,"102":0.00093,"103":0.01116,"104":0.00186,"105":0.00093,"106":0.00093,"107":0.00093,"108":0.00651,"109":0.14601,"110":0.00279,"111":0.00372,"112":0.00186,"113":0.00186,"114":0.00186,"115":0.00093,"116":0.02976,"118":0.00279,"119":0.00837,"120":0.00558,"121":0.01116,"122":0.03813,"123":0.00837,"124":0.00837,"125":0.44733,"126":0.01023,"127":0.00558,"128":0.0186,"129":0.00465,"130":0.00558,"131":0.03627,"132":0.02232,"133":0.01488,"134":0.01953,"135":0.04464,"136":0.55428,"137":4.21848,"138":0.17019,"139":0.00093,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 67 68 70 71 72 74 76 77 78 80 81 83 89 90 92 96 98 99 100 101 117 140 141"},F:{"89":0.00093,"90":0.00186,"95":0.00558,"117":0.00093,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00093,"92":0.00279,"100":0.00093,"102":0.00093,"109":0.00651,"110":0.00093,"114":0.00093,"120":0.00093,"121":0.00093,"122":0.00186,"124":0.00837,"126":0.00093,"127":0.00093,"128":0.00093,"129":0.00279,"130":0.00279,"131":0.00465,"132":0.00279,"133":0.00279,"134":0.00837,"135":0.00651,"136":0.12369,"137":0.80259,"138":0.08184,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 111 112 113 115 116 117 118 119 123 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 26.0","5.1":0.00279,"13.1":0.00093,"14.1":0.00372,"15.4":0.00093,"15.6":0.00744,"16.0":0.00279,"16.1":0.00093,"16.2":0.00093,"16.3":0.00093,"16.4":0.00093,"16.5":0.00093,"16.6":0.00744,"17.0":0.00093,"17.1":0.00372,"17.2":0.00093,"17.3":0.00186,"17.4":0.00186,"17.5":0.00465,"17.6":0.01302,"18.0":0.00186,"18.1":0.00279,"18.2":0.00186,"18.3":0.01488,"18.4":0.02604,"18.5":0.1116},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00031,"5.0-5.1":0,"6.0-6.1":0.00062,"7.0-7.1":0.00062,"8.1-8.4":0,"9.0-9.2":0.00031,"9.3":0.00187,"10.0-10.2":0.00016,"10.3":0.00312,"11.0-11.2":0.01997,"11.3-11.4":0.00109,"12.0-12.1":0.00031,"12.2-12.5":0.01045,"13.0-13.1":0.00016,"13.2":0.00047,"13.3":0.00031,"13.4-13.7":0.00172,"14.0-14.4":0.00406,"14.5-14.8":0.00406,"15.0-15.1":0.00281,"15.2-15.3":0.00281,"15.4":0.00343,"15.5":0.00374,"15.6-15.8":0.04836,"16.0":0.0064,"16.1":0.0131,"16.2":0.00671,"16.3":0.01232,"16.4":0.00281,"16.5":0.00499,"16.6-16.7":0.06068,"17.0":0.00328,"17.1":0.00577,"17.2":0.00452,"17.3":0.0064,"17.4":0.01139,"17.5":0.02387,"17.6-17.7":0.06239,"18.0":0.01544,"18.1":0.03479,"18.2":0.01841,"18.3":0.07909,"18.4":0.08392,"18.5":0.98381,"26.0":0},P:{"26":0.01209,"27":0.01209,"28":0.21766,_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01209},I:{"0":0.84198,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00017,"4.4":0,"4.4.3-4.4.4":0.00067},K:{"0":0.03628,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00465,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":88.6698},R:{_:"0"},M:{"0":0.03628},Q:{_:"14.9"},O:{"0":0.00907},H:{"0":0}}; +module.exports={C:{"4":0.04604,"52":0.00512,"78":0.01023,"88":0.00512,"89":0.00512,"96":0.00512,"110":0.00512,"112":0.0307,"113":0.01023,"114":0.00512,"115":0.30696,"117":0.01023,"118":0.01023,"119":0.00512,"120":0.01023,"121":0.01535,"122":0.01535,"123":0.0307,"124":0.06651,"125":1.57061,"126":1.35574,"127":0.01023,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 111 116 128 129 3.5 3.6"},D:{"38":0.01535,"47":0.02046,"49":0.01023,"55":0.00512,"65":0.00512,"66":0.00512,"74":0.00512,"75":0.01023,"76":0.06651,"78":0.00512,"79":0.24045,"81":0.00512,"84":0.00512,"86":0.00512,"87":0.04093,"88":0.01023,"89":0.00512,"90":0.00512,"91":0.1586,"93":0.01023,"94":0.01023,"95":0.00512,"96":0.00512,"97":0.00512,"98":0.00512,"99":0.01023,"100":0.01023,"101":0.00512,"102":0.01023,"103":0.10744,"104":0.01023,"105":0.01023,"106":0.01535,"107":0.02046,"108":0.02558,"109":2.3329,"110":0.02046,"111":0.0307,"112":0.02046,"113":0.02046,"114":0.0307,"115":0.01535,"116":0.30696,"117":0.01535,"118":0.02558,"119":0.0972,"120":0.15348,"121":0.21999,"122":0.57299,"123":0.73159,"124":22.82759,"125":8.83022,"126":0.01023,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 53 54 56 57 58 59 60 61 62 63 64 67 68 69 70 71 72 73 77 80 83 85 92 127 128"},F:{"69":0.00512,"95":0.06651,"99":0.00512,"106":0.00512,"107":0.47067,"108":0.01535,"109":1.81618,"110":0.06139,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00512,"92":0.02046,"100":0.00512,"108":0.00512,"109":0.03581,"114":0.01023,"116":0.00512,"117":0.00512,"118":0.00512,"119":0.00512,"120":0.02046,"121":0.02046,"122":0.04093,"123":0.08186,"124":3.0389,"125":1.55526,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 115"},E:{"9":0.00512,"14":0.00512,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.05116,"13.1":0.02046,"14.1":0.03581,"15.1":0.00512,"15.2-15.3":0.02046,"15.4":0.00512,"15.5":0.01535,"15.6":0.08186,"16.0":0.01023,"16.1":0.01023,"16.2":0.01023,"16.3":0.02558,"16.4":0.02046,"16.5":0.01535,"16.6":0.09209,"17.0":0.01535,"17.1":0.03581,"17.2":0.07674,"17.3":0.03581,"17.4":0.48602,"17.5":0.11767},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00131,"5.0-5.1":0.00131,"6.0-6.1":0.00328,"7.0-7.1":0.00459,"8.1-8.4":0.00131,"9.0-9.2":0.00328,"9.3":0.0151,"10.0-10.2":0.00263,"10.3":0.02363,"11.0-11.2":0.03479,"11.3-11.4":0.00656,"12.0-12.1":0.00394,"12.2-12.5":0.09518,"13.0-13.1":0.00197,"13.2":0.00919,"13.3":0.00459,"13.4-13.7":0.02101,"14.0-14.4":0.0361,"14.5-14.8":0.05579,"15.0-15.1":0.02691,"15.2-15.3":0.02954,"15.4":0.03348,"15.5":0.04201,"15.6-15.8":0.37809,"16.0":0.08599,"16.1":0.17723,"16.2":0.08599,"16.3":0.149,"16.4":0.03151,"16.5":0.06367,"16.6-16.7":0.5074,"17.0":0.05514,"17.1":0.08993,"17.2":0.09387,"17.3":0.17329,"17.4":3.93518,"17.5":0.27766,"17.6":0},P:{"4":0.08323,"20":0.0104,"21":0.03121,"22":0.04162,"23":0.10404,"24":0.17686,"25":1.07159,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 18.0","7.2-7.4":0.08323,"11.1-11.2":0.0104,"13.0":0.0104,"16.0":0.04162,"17.0":0.05202,"19.0":0.04162},I:{"0":0.03405,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.17094,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00512,"11":0.04604,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.35427},R:{_:"0"},M:{"0":0.15629},Q:{_:"14.9"},O:{"0":0.04396},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/EE.js b/node_modules/caniuse-lite/data/regions/EE.js index 2d27ed750..66e270a87 100644 --- a/node_modules/caniuse-lite/data/regions/EE.js +++ b/node_modules/caniuse-lite/data/regions/EE.js @@ -1 +1 @@ -module.exports={C:{"16":0.02136,"28":0.00712,"52":0.00712,"78":0.00712,"92":0.01424,"106":0.01424,"115":5.1264,"125":0.02136,"127":0.02136,"128":0.11392,"132":0.00712,"133":0.00712,"134":0.0356,"135":0.00712,"136":0.02136,"137":0.0712,"138":0.16376,"139":2.32112,"140":0.32752,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 141 142 143 3.5 3.6"},D:{"41":0.00712,"43":0.00712,"48":0.00712,"49":0.01424,"51":0.00712,"52":0.00712,"54":0.00712,"55":0.00712,"56":0.00712,"58":0.00712,"60":0.00712,"65":0.00712,"79":0.01424,"87":0.02848,"90":0.00712,"91":0.00712,"98":0.02848,"99":0.02136,"103":0.02136,"106":0.02848,"107":0.0356,"108":0.02136,"109":1.1036,"110":0.04272,"111":0.00712,"112":0.00712,"114":0.00712,"116":0.04984,"117":0.01424,"118":0.02848,"119":0.02136,"120":0.06408,"121":0.01424,"122":0.1424,"123":0.00712,"124":0.2492,"125":0.0712,"126":0.07832,"127":0.0356,"128":0.14952,"129":0.0356,"130":0.02848,"131":0.22072,"132":0.0712,"133":0.22784,"134":0.1068,"135":1.86544,"136":8.40872,"137":30.34544,"138":1.02528,"139":0.00712,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 47 50 53 57 59 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 92 93 94 95 96 97 100 101 102 104 105 113 115 140 141"},F:{"83":0.00712,"89":0.00712,"90":0.00712,"95":0.05696,"114":0.00712,"117":0.00712,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01424,"110":0.00712,"119":0.01424,"122":0.00712,"128":0.00712,"130":0.02136,"131":0.02136,"134":0.2136,"135":0.0356,"136":0.44856,"137":3.916,"138":0.38448,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 118 120 121 123 124 125 126 127 129 132 133"},E:{"14":0.00712,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 26.0","12.1":0.01424,"13.1":0.00712,"14.1":0.02136,"15.2-15.3":0.00712,"15.4":0.00712,"15.5":0.00712,"15.6":0.0712,"16.0":0.01424,"16.1":0.00712,"16.2":0.00712,"16.3":0.02136,"16.4":0.01424,"16.5":0.02848,"16.6":0.27768,"17.0":0.00712,"17.1":0.0356,"17.2":0.06408,"17.3":0.00712,"17.4":0.06408,"17.5":0.05696,"17.6":0.20648,"18.0":0.02136,"18.1":0.06408,"18.2":0.05696,"18.3":0.09256,"18.4":0.12816,"18.5":1.11784},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00181,"5.0-5.1":0,"6.0-6.1":0.00363,"7.0-7.1":0.00363,"8.1-8.4":0,"9.0-9.2":0.00181,"9.3":0.01088,"10.0-10.2":0.00091,"10.3":0.01813,"11.0-11.2":0.11605,"11.3-11.4":0.00635,"12.0-12.1":0.00181,"12.2-12.5":0.06074,"13.0-13.1":0.00091,"13.2":0.00272,"13.3":0.00181,"13.4-13.7":0.00997,"14.0-14.4":0.02357,"14.5-14.8":0.02357,"15.0-15.1":0.01632,"15.2-15.3":0.01632,"15.4":0.01995,"15.5":0.02176,"15.6-15.8":0.28105,"16.0":0.03717,"16.1":0.07616,"16.2":0.03898,"16.3":0.07162,"16.4":0.01632,"16.5":0.02901,"16.6-16.7":0.35268,"17.0":0.01904,"17.1":0.03355,"17.2":0.02629,"17.3":0.03717,"17.4":0.06618,"17.5":0.13871,"17.6-17.7":0.36265,"18.0":0.08976,"18.1":0.20218,"18.2":0.10698,"18.3":0.45966,"18.4":0.48776,"18.5":5.71808,"26.0":0},P:{"4":0.03145,"21":0.01048,"22":0.02097,"23":0.01048,"24":0.03145,"25":0.01048,"26":0.03145,"27":0.08387,"28":1.88718,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01048},I:{"0":0.00863,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.38592,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0356,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":17.12272},R:{_:"0"},M:{"0":0.44352},Q:{"14.9":0.00288},O:{"0":0.0288},H:{"0":0}}; +module.exports={C:{"52":0.00726,"78":0.00726,"88":0.10165,"92":0.02178,"102":0.00726,"103":0.00726,"105":0.00726,"108":0.00726,"109":0.00726,"110":0.00726,"113":0.00726,"114":0.00726,"115":3.77572,"117":0.01452,"118":0.02178,"119":0.00726,"120":0.00726,"122":0.00726,"123":0.02178,"124":0.05083,"125":1.35781,"126":1.13998,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 93 94 95 96 97 98 99 100 101 104 106 107 111 112 116 121 127 128 129 3.5 3.6"},D:{"39":0.00726,"44":0.00726,"45":0.00726,"46":0.00726,"49":0.02178,"51":0.00726,"74":0.01452,"79":0.01452,"83":0.00726,"85":0.00726,"86":0.00726,"87":0.01452,"88":0.00726,"91":0.00726,"93":0.21783,"94":0.00726,"95":0.00726,"96":0.00726,"97":0.02178,"98":0.01452,"99":0.02178,"102":0.04357,"103":0.03631,"105":0.00726,"106":0.08713,"107":0.03631,"108":0.03631,"109":1.34329,"110":0.07987,"111":0.01452,"112":0.01452,"113":0.01452,"114":0.03631,"115":0.10165,"116":0.42114,"117":0.05083,"118":0.09439,"119":0.32675,"120":0.25414,"121":0.17426,"122":0.53731,"123":3.0351,"124":29.59584,"125":11.77734,"126":0.00726,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 80 81 84 89 90 92 100 101 104 127 128"},F:{"64":0.00726,"83":0.01452,"95":0.11618,"106":0.01452,"107":0.53005,"108":0.07261,"109":5.67084,"110":0.08713,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00726,"18":0.00726,"86":0.00726,"92":0.00726,"108":0.00726,"109":0.03631,"110":0.02178,"111":0.05809,"112":0.00726,"116":0.02178,"117":0.02178,"118":0.02178,"119":0.02178,"120":0.04357,"121":0.01452,"122":0.01452,"123":0.48649,"124":4.10247,"125":2.25817,_:"12 13 15 16 17 79 80 81 83 84 85 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 113 114 115"},E:{"9":0.01452,"14":0.00726,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00726,"13.1":0.03631,"14.1":0.05809,"15.1":0.01452,"15.2-15.3":0.01452,"15.4":0.01452,"15.5":0.08713,"15.6":0.20331,"16.0":0.02904,"16.1":0.03631,"16.2":0.05083,"16.3":0.04357,"16.4":0.02178,"16.5":0.05083,"16.6":0.25414,"17.0":0.07261,"17.1":0.07261,"17.2":0.10892,"17.3":0.10892,"17.4":1.04558,"17.5":0.21783},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00176,"5.0-5.1":0.00176,"6.0-6.1":0.0044,"7.0-7.1":0.00616,"8.1-8.4":0.00176,"9.0-9.2":0.0044,"9.3":0.02024,"10.0-10.2":0.00352,"10.3":0.03168,"11.0-11.2":0.04664,"11.3-11.4":0.0088,"12.0-12.1":0.00528,"12.2-12.5":0.12761,"13.0-13.1":0.00264,"13.2":0.01232,"13.3":0.00616,"13.4-13.7":0.02816,"14.0-14.4":0.0484,"14.5-14.8":0.07481,"15.0-15.1":0.03608,"15.2-15.3":0.0396,"15.4":0.04488,"15.5":0.05633,"15.6-15.8":0.50693,"16.0":0.11529,"16.1":0.23762,"16.2":0.11529,"16.3":0.19978,"16.4":0.04224,"16.5":0.08537,"16.6-16.7":0.68031,"17.0":0.07393,"17.1":0.12057,"17.2":0.12585,"17.3":0.23234,"17.4":5.27613,"17.5":0.37228,"17.6":0},P:{"4":0.02099,"20":0.03148,"21":0.02099,"22":0.03148,"23":0.08394,"24":0.16788,"25":1.40601,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","17.0":0.01049,"19.0":0.01049},I:{"0":0.05732,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.24386,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03485,"9":0.00871,"10":0.00871,"11":0.12198,_:"6 7 5.5"},S:{"2.5":0.00274,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":16.2519},R:{_:"0"},M:{"0":0.36442},Q:{"14.9":0.00274},O:{"0":0.02466},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/EG.js b/node_modules/caniuse-lite/data/regions/EG.js index 5af294991..6fa5b2aa4 100644 --- a/node_modules/caniuse-lite/data/regions/EG.js +++ b/node_modules/caniuse-lite/data/regions/EG.js @@ -1 +1 @@ -module.exports={C:{"3":0.00101,"43":0.00101,"47":0.00101,"49":0.00202,"51":0.00101,"52":0.00707,"78":0.00101,"91":0.00101,"103":0.00101,"115":0.1414,"125":0.00404,"127":0.00101,"128":0.00909,"130":0.00101,"131":0.00101,"132":0.00101,"133":0.00101,"134":0.00202,"135":0.00202,"136":0.00404,"137":0.00202,"138":0.01414,"139":0.25048,"140":0.03434,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 48 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 141 142 143 3.5 3.6"},D:{"29":0.00101,"33":0.00101,"34":0.00101,"38":0.00101,"39":0.00202,"40":0.00303,"41":0.00202,"42":0.00202,"43":0.01111,"44":0.00202,"45":0.00202,"46":0.00202,"47":0.00606,"48":0.0101,"49":0.00505,"50":0.00202,"51":0.00202,"52":0.00202,"53":0.00303,"54":0.00202,"55":0.00202,"56":0.00202,"57":0.00202,"58":0.05858,"59":0.00202,"60":0.00202,"65":0.00101,"69":0.00202,"70":0.00202,"71":0.00101,"72":0.00101,"73":0.00101,"74":0.00202,"75":0.00101,"76":0.00303,"78":0.00101,"79":0.01818,"80":0.00404,"81":0.00606,"83":0.00303,"84":0.00202,"85":0.00303,"86":0.00505,"87":0.01313,"88":0.00101,"89":0.00101,"90":0.00101,"91":0.00303,"92":0.00202,"93":0.00101,"94":0.00101,"95":0.00202,"96":0.00101,"97":0.00101,"98":0.00404,"99":0.00101,"100":0.00101,"101":0.00101,"102":0.00101,"103":0.0101,"104":0.00606,"105":0.00303,"106":0.00404,"107":0.00404,"108":0.01212,"109":0.80396,"110":0.00202,"111":0.00202,"112":0.00303,"113":0.00101,"114":0.08888,"115":0.00101,"116":0.00606,"117":0.00101,"118":0.01111,"119":0.00303,"120":0.00606,"121":0.00303,"122":0.01313,"123":0.01313,"124":0.00909,"125":0.17675,"126":0.00909,"127":0.00606,"128":0.01414,"129":0.00505,"130":0.00909,"131":0.02626,"132":0.01515,"133":0.01515,"134":0.02121,"135":0.04949,"136":0.45349,"137":3.53399,"138":0.14645,"139":0.00303,"140":0.00101,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 35 36 37 61 62 63 64 66 67 68 77 141"},F:{"63":0.00101,"64":0.00101,"72":0.00101,"73":0.00202,"79":0.00404,"82":0.00202,"83":0.00101,"89":0.00808,"90":0.00505,"95":0.00101,"101":0.00101,"107":0.00101,"109":0.00101,"111":0.00101,"112":0.00101,"113":0.00404,"114":0.00202,"115":0.00101,"116":0.00202,"117":0.00505,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 65 66 67 68 69 70 71 74 75 76 77 78 80 81 84 85 86 87 88 91 92 93 94 96 97 98 99 100 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00101,"17":0.00101,"18":0.00202,"84":0.00101,"89":0.00101,"90":0.00101,"92":0.01515,"100":0.00101,"106":0.00101,"107":0.00101,"109":0.01515,"114":0.00303,"119":0.00404,"122":0.00202,"124":0.00101,"125":0.00101,"126":0.00101,"127":0.00101,"128":0.00101,"129":0.00202,"130":0.00606,"131":0.00505,"132":0.00303,"133":0.00505,"134":0.00505,"135":0.00808,"136":0.08787,"137":0.72114,"138":0.06363,_:"12 13 14 15 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 108 110 111 112 113 115 116 117 118 120 121 123"},E:{"4":0.00101,"14":0.00101,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.4 17.0 17.2 26.0","5.1":0.01616,"13.1":0.00101,"14.1":0.00101,"15.6":0.00707,"16.0":0.00101,"16.1":0.00101,"16.2":0.00101,"16.3":0.00101,"16.5":0.00101,"16.6":0.00606,"17.1":0.00303,"17.3":0.00101,"17.4":0.00404,"17.5":0.00202,"17.6":0.00808,"18.0":0.00202,"18.1":0.00303,"18.2":0.00101,"18.3":0.00808,"18.4":0.00909,"18.5":0.0505},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00069,"5.0-5.1":0,"6.0-6.1":0.00138,"7.0-7.1":0.00138,"8.1-8.4":0,"9.0-9.2":0.00069,"9.3":0.00413,"10.0-10.2":0.00034,"10.3":0.00689,"11.0-11.2":0.04407,"11.3-11.4":0.00241,"12.0-12.1":0.00069,"12.2-12.5":0.02307,"13.0-13.1":0.00034,"13.2":0.00103,"13.3":0.00069,"13.4-13.7":0.00379,"14.0-14.4":0.00895,"14.5-14.8":0.00895,"15.0-15.1":0.0062,"15.2-15.3":0.0062,"15.4":0.00757,"15.5":0.00826,"15.6-15.8":0.10673,"16.0":0.01412,"16.1":0.02892,"16.2":0.0148,"16.3":0.0272,"16.4":0.0062,"16.5":0.01102,"16.6-16.7":0.13392,"17.0":0.00723,"17.1":0.01274,"17.2":0.00998,"17.3":0.01412,"17.4":0.02513,"17.5":0.05267,"17.6-17.7":0.13771,"18.0":0.03408,"18.1":0.07677,"18.2":0.04062,"18.3":0.17455,"18.4":0.18522,"18.5":2.17137,"26.0":0},P:{"4":0.07363,"20":0.01052,"21":0.02104,"22":0.05259,"23":0.03155,"24":0.04207,"25":0.09466,"26":0.18933,"27":0.16829,"28":1.19906,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0","7.2-7.4":0.09466,"11.1-11.2":0.01052,"13.0":0.01052,"16.0":0.01052,"17.0":0.01052,"18.0":0.01052,"19.0":0.01052},I:{"0":0.05384,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.19776,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02626,"9":0.005,"10":0.00875,"11":0.03876,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":86.17451},R:{_:"0"},M:{"0":0.07191},Q:{_:"14.9"},O:{"0":0.08989},H:{"0":0}}; +module.exports={C:{"43":0.00194,"46":0.00194,"47":0.00194,"48":0.00194,"49":0.00194,"50":0.00194,"51":0.00194,"52":0.03884,"57":0.00194,"60":0.00194,"66":0.00194,"72":0.00388,"78":0.00194,"80":0.00194,"88":0.00194,"100":0.00194,"102":0.00194,"103":0.00194,"105":0.00194,"106":0.00194,"107":0.00194,"108":0.00388,"109":0.00194,"110":0.00194,"111":0.00194,"113":0.00194,"114":0.00194,"115":0.52822,"116":0.00194,"117":0.00194,"118":0.00388,"119":0.00194,"120":0.00194,"121":0.00971,"122":0.00388,"123":0.00971,"124":0.0233,"125":0.42336,"126":0.40782,"127":0.00388,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 53 54 55 56 58 59 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 79 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 101 104 112 128 129 3.5 3.6"},D:{"11":0.00194,"26":0.00194,"33":0.00388,"34":0.00194,"38":0.00388,"39":0.00194,"40":0.00388,"42":0.00194,"43":0.0602,"47":0.00777,"48":0.00194,"49":0.01748,"53":0.00388,"55":0.00194,"56":0.00194,"58":0.134,"63":0.00388,"66":0.00194,"68":0.00388,"69":0.00388,"70":0.00777,"71":0.00388,"72":0.00194,"73":0.00194,"74":0.00971,"75":0.00388,"76":0.00777,"77":0.00388,"78":0.00583,"79":0.06214,"80":0.01359,"81":0.01748,"83":0.00583,"84":0.00777,"85":0.01165,"86":0.01942,"87":0.04467,"88":0.00583,"89":0.00388,"90":0.00388,"91":0.00777,"92":0.00388,"93":0.00194,"94":0.00777,"95":0.00388,"96":0.00388,"97":0.01554,"98":0.02719,"99":0.01942,"100":0.00583,"101":0.00583,"102":0.0233,"103":0.02136,"104":0.00777,"105":0.00777,"106":0.01554,"107":0.01554,"108":0.03107,"109":2.84891,"110":0.00971,"111":0.01165,"112":0.01942,"113":0.00583,"114":0.01165,"115":0.00777,"116":0.03301,"117":0.01359,"118":0.01359,"119":0.02525,"120":0.06214,"121":0.05826,"122":0.12429,"123":0.23304,"124":6.96207,"125":3.00427,"126":0.00777,"127":0.00194,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 35 36 37 41 44 45 46 50 51 52 54 57 59 60 61 62 64 65 67 128"},F:{"28":0.00194,"46":0.00194,"56":0.00194,"64":0.00388,"68":0.00194,"69":0.00194,"70":0.00194,"71":0.00194,"72":0.00388,"73":0.01165,"74":0.00194,"75":0.00194,"79":0.01359,"80":0.00194,"81":0.00194,"82":0.01554,"83":0.00583,"84":0.00388,"86":0.00194,"87":0.00194,"89":0.00388,"90":0.00388,"92":0.00194,"94":0.00388,"95":0.01748,"98":0.00194,"99":0.00194,"100":0.00388,"101":0.00583,"102":0.00583,"103":0.00194,"104":0.00194,"105":0.00971,"106":0.01359,"107":0.04661,"108":0.00971,"109":0.03301,"110":0.00194,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 57 58 60 62 63 65 66 67 76 77 78 85 88 91 93 96 97 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00194,"14":0.00194,"15":0.00194,"16":0.00194,"17":0.00194,"18":0.00583,"84":0.00194,"89":0.00194,"90":0.00194,"92":0.01554,"98":0.00194,"100":0.00194,"104":0.00194,"106":0.00194,"107":0.00388,"108":0.00194,"109":0.04467,"110":0.00194,"111":0.00194,"112":0.00194,"113":0.00194,"114":0.00388,"115":0.00388,"116":0.00388,"117":0.00194,"118":0.00194,"119":0.00388,"120":0.00971,"121":0.01165,"122":0.02525,"123":0.06409,"124":1.17103,"125":0.71271,_:"13 79 80 81 83 85 86 87 88 91 93 94 95 96 97 99 101 102 103 105"},E:{"14":0.00777,"15":0.00194,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00777,"13.1":0.00388,"14.1":0.01359,"15.1":0.00194,"15.2-15.3":0.00388,"15.4":0.00194,"15.5":0.00388,"15.6":0.02719,"16.0":0.00583,"16.1":0.00583,"16.2":0.00388,"16.3":0.00777,"16.4":0.00388,"16.5":0.00583,"16.6":0.02525,"17.0":0.00583,"17.1":0.01359,"17.2":0.00971,"17.3":0.01165,"17.4":0.1204,"17.5":0.01748},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00122,"5.0-5.1":0.00122,"6.0-6.1":0.00304,"7.0-7.1":0.00426,"8.1-8.4":0.00122,"9.0-9.2":0.00304,"9.3":0.01399,"10.0-10.2":0.00243,"10.3":0.0219,"11.0-11.2":0.03224,"11.3-11.4":0.00608,"12.0-12.1":0.00365,"12.2-12.5":0.08821,"13.0-13.1":0.00183,"13.2":0.00852,"13.3":0.00426,"13.4-13.7":0.01947,"14.0-14.4":0.03346,"14.5-14.8":0.05171,"15.0-15.1":0.02494,"15.2-15.3":0.02738,"15.4":0.03103,"15.5":0.03894,"15.6-15.8":0.35043,"16.0":0.0797,"16.1":0.16426,"16.2":0.0797,"16.3":0.1381,"16.4":0.0292,"16.5":0.05901,"16.6-16.7":0.47028,"17.0":0.0511,"17.1":0.08335,"17.2":0.087,"17.3":0.16061,"17.4":3.64723,"17.5":0.25734,"17.6":0},P:{"4":0.31114,"20":0.03111,"21":0.05186,"22":0.11409,"23":0.18669,"24":0.26966,"25":1.79426,"5.0-5.4":0.01037,"6.2-6.4":0.02074,"7.2-7.4":0.10371,_:"8.2 10.1","9.2":0.01037,"11.1-11.2":0.04149,"12.0":0.01037,"13.0":0.03111,"14.0":0.03111,"15.0":0.01037,"16.0":0.04149,"17.0":0.05186,"18.0":0.04149,"19.0":0.05186},I:{"0":0.1204,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00027},K:{"0":0.51571,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00608,"9":0.00405,"10":0.00203,"11":0.08106,_:"6 7 5.5"},S:{"2.5":0.00806,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.42346},R:{_:"0"},M:{"0":0.16116},Q:{_:"14.9"},O:{"0":0.47542},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/ER.js b/node_modules/caniuse-lite/data/regions/ER.js index 0a04e1a7e..180542e82 100644 --- a/node_modules/caniuse-lite/data/regions/ER.js +++ b/node_modules/caniuse-lite/data/regions/ER.js @@ -1 +1 @@ -module.exports={C:{"47":0.1039,"72":0.1039,"88":0.03247,"106":0.07143,"109":0.20781,"115":0.48705,"127":0.07143,"128":0.1039,"130":0.1039,"136":0.13637,"137":1.07151,"138":0.7598,"139":2.52617,"140":0.13637,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 132 133 134 135 141 142 143 3.5 3.6"},D:{"41":0.03247,"50":0.03247,"51":0.1039,"57":0.1039,"92":0.55199,"93":0.07143,"98":0.72733,"109":8.58507,"112":0.03247,"119":0.07143,"120":0.20781,"125":0.44809,"131":0.38315,"132":0.07143,"133":0.24028,"134":1.48713,"135":2.31836,"136":5.88356,"137":21.84582,"138":0.44809,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 94 95 96 97 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 121 122 123 124 126 127 128 129 130 139 140 141"},F:{"79":0.03247,"82":0.03247,"114":0.03247,"116":0.03247,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.1039,"109":0.03247,"111":0.27924,"112":0.17534,"113":0.1039,"120":0.03247,"122":0.07143,"131":0.13637,"132":0.90267,"133":0.24028,"134":0.03247,"135":0.20781,"136":5.40301,"137":4.39644,"138":0.31171,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 114 115 116 117 118 119 121 123 124 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5 26.0","17.2":0.41562},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00024,"5.0-5.1":0,"6.0-6.1":0.00048,"7.0-7.1":0.00048,"8.1-8.4":0,"9.0-9.2":0.00024,"9.3":0.00143,"10.0-10.2":0.00012,"10.3":0.00238,"11.0-11.2":0.01526,"11.3-11.4":0.00083,"12.0-12.1":0.00024,"12.2-12.5":0.00799,"13.0-13.1":0.00012,"13.2":0.00036,"13.3":0.00024,"13.4-13.7":0.00131,"14.0-14.4":0.0031,"14.5-14.8":0.0031,"15.0-15.1":0.00215,"15.2-15.3":0.00215,"15.4":0.00262,"15.5":0.00286,"15.6-15.8":0.03695,"16.0":0.00489,"16.1":0.01001,"16.2":0.00513,"16.3":0.00942,"16.4":0.00215,"16.5":0.00381,"16.6-16.7":0.04637,"17.0":0.0025,"17.1":0.00441,"17.2":0.00346,"17.3":0.00489,"17.4":0.0087,"17.5":0.01824,"17.6-17.7":0.04768,"18.0":0.0118,"18.1":0.02658,"18.2":0.01407,"18.3":0.06044,"18.4":0.06413,"18.5":0.75182,"26.0":0},P:{"23":0.03553,"28":0.94757,_:"4 20 21 22 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.33165},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.16478,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03247,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":32.35271},R:{_:"0"},M:{"0":0.61706},Q:{_:"14.9"},O:{"0":0.90455},H:{"0":0}}; +module.exports={C:{"34":0.00248,"35":0.00248,"44":0.00248,"47":0.00248,"64":0.16643,"75":0.00497,"78":0.00248,"85":0.00248,"87":0.00248,"102":0.00248,"106":0.00248,"115":0.077,"118":0.03229,"119":0.00745,"123":0.00248,"124":0.01242,"125":1.05073,"126":0.45457,"127":0.06707,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 107 108 109 110 111 112 113 114 116 117 120 121 122 128 129 3.5 3.6"},D:{"37":0.00497,"55":0.00248,"68":0.00248,"70":0.00745,"71":0.0149,"72":0.00248,"73":0.00248,"78":0.01987,"79":0.01987,"83":0.02236,"86":0.00497,"87":0.05713,"90":0.00248,"92":0.01987,"97":0.00248,"98":0.09688,"99":0.00248,"101":0.00248,"102":0.01739,"103":0.00745,"105":0.01242,"106":0.01242,"108":0.00248,"109":2.97832,"110":0.00248,"111":0.03726,"112":0.01739,"113":0.00248,"114":0.00248,"115":0.00745,"116":0.01242,"118":0.09439,"119":0.02484,"120":0.57629,"121":0.03726,"122":0.01739,"123":0.15898,"124":9.07157,"125":1.47053,"126":0.07204,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 69 74 75 76 77 80 81 84 85 88 89 91 93 94 95 96 100 104 107 117 127 128"},F:{"57":0.10184,"63":0.00994,"64":0.00248,"69":0.00497,"70":0.00248,"73":0.00248,"79":0.10184,"82":0.01242,"83":0.00497,"86":0.00497,"87":0.00248,"90":0.04968,"95":0.0149,"100":0.00497,"106":0.00248,"107":0.02484,"108":0.00497,"109":2.2356,"110":0.08197,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 60 62 65 66 67 68 71 72 74 75 76 77 78 80 81 84 85 88 89 91 92 93 94 96 97 98 99 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.1714,"13":0.0149,"14":0.00497,"15":0.00994,"16":0.00248,"17":0.0149,"18":0.04223,"84":0.00745,"89":0.00248,"92":0.01987,"99":0.0149,"100":0.02236,"102":0.00497,"106":0.02236,"108":0.00248,"109":0.00248,"112":0.0149,"114":0.00248,"115":0.00248,"117":0.00745,"118":0.00745,"119":0.00497,"120":0.02236,"121":0.02981,"122":0.03229,"123":0.02484,"124":1.58231,"125":0.51419,_:"79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 101 103 104 105 107 110 111 113 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.5 17.6","17.4":0.00497},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00006,"5.0-5.1":0.00006,"6.0-6.1":0.00014,"7.0-7.1":0.0002,"8.1-8.4":0.00006,"9.0-9.2":0.00014,"9.3":0.00066,"10.0-10.2":0.00011,"10.3":0.00103,"11.0-11.2":0.00151,"11.3-11.4":0.00029,"12.0-12.1":0.00017,"12.2-12.5":0.00414,"13.0-13.1":0.00009,"13.2":0.0004,"13.3":0.0002,"13.4-13.7":0.00091,"14.0-14.4":0.00157,"14.5-14.8":0.00243,"15.0-15.1":0.00117,"15.2-15.3":0.00129,"15.4":0.00146,"15.5":0.00183,"15.6-15.8":0.01645,"16.0":0.00374,"16.1":0.00771,"16.2":0.00374,"16.3":0.00648,"16.4":0.00137,"16.5":0.00277,"16.6-16.7":0.02208,"17.0":0.0024,"17.1":0.00391,"17.2":0.00408,"17.3":0.00754,"17.4":0.17122,"17.5":0.01208,"17.6":0},P:{"4":0.07125,"21":0.01018,"22":0.03053,"23":0.01018,"24":0.04071,"25":0.06107,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0","7.2-7.4":0.17302,"9.2":0.01018,"16.0":0.05089,"18.0":0.01018,"19.0":0.01018},I:{"0":0.08235,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":0.93363,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.03006,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":68.88728},R:{_:"0"},M:{"0":0.00752},Q:{_:"14.9"},O:{"0":0.38332},H:{"0":5.47}}; diff --git a/node_modules/caniuse-lite/data/regions/ES.js b/node_modules/caniuse-lite/data/regions/ES.js index 5bcd84552..ed445df2a 100644 --- a/node_modules/caniuse-lite/data/regions/ES.js +++ b/node_modules/caniuse-lite/data/regions/ES.js @@ -1 +1 @@ -module.exports={C:{"4":0.00337,"48":0.00337,"52":0.02019,"59":0.01346,"78":0.01683,"87":0.00337,"88":0.00337,"99":0.00337,"105":0.00337,"109":0.0101,"110":0.00337,"113":0.00337,"115":0.16825,"125":0.00337,"127":0.00337,"128":0.07067,"129":0.00337,"130":0.00337,"131":0.00337,"132":0.01683,"133":0.0101,"134":0.00337,"135":0.01346,"136":0.02692,"137":0.02019,"138":0.09422,"139":1.44359,"140":0.19517,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 106 107 108 111 112 114 116 117 118 119 120 121 122 123 124 126 141 142 143 3.5 3.6"},D:{"29":0.00337,"38":0.00337,"39":0.00337,"40":0.00337,"41":0.00673,"42":0.00337,"43":0.00337,"44":0.00337,"45":0.00337,"46":0.00337,"47":0.00337,"48":0.00673,"49":0.03029,"50":0.00337,"51":0.00337,"52":0.00337,"53":0.00337,"54":0.00337,"55":0.00337,"56":0.00337,"57":0.00337,"58":0.00673,"59":0.00337,"60":0.00337,"66":0.05048,"67":0.02692,"73":0.00337,"75":0.03702,"76":0.00337,"79":0.02356,"80":0.00337,"81":0.00337,"83":0.00337,"85":0.00337,"86":0.00337,"87":0.03029,"88":0.00337,"90":0.00337,"91":0.00337,"93":0.00337,"94":0.00337,"95":0.00337,"96":0.00337,"97":0.00337,"98":0.00337,"99":0.00337,"100":0.00337,"102":0.00337,"103":0.04375,"104":0.02692,"105":0.00337,"106":0.0101,"107":0.01346,"108":0.03029,"109":0.79414,"110":0.01346,"111":0.01346,"112":0.01346,"113":0.00337,"114":0.01683,"115":0.00673,"116":0.10095,"117":0.00337,"118":0.00673,"119":0.03702,"120":0.02356,"121":0.0101,"122":0.04711,"123":0.02356,"124":0.03029,"125":0.12114,"126":0.05048,"127":0.01346,"128":0.09759,"129":0.02019,"130":0.05721,"131":0.1346,"132":0.10095,"133":0.0774,"134":0.12451,"135":0.25911,"136":2.57759,"137":14.04215,"138":0.49802,"139":0.00337,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 61 62 63 64 65 68 69 70 71 72 74 77 78 84 89 92 101 140 141"},F:{"36":0.00337,"46":0.00337,"89":0.02356,"90":0.01346,"95":0.02019,"101":0.00337,"114":0.00337,"117":0.00337,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00673,"92":0.00337,"107":0.00337,"108":0.00337,"109":0.03702,"110":0.00337,"114":0.00337,"115":0.00337,"119":0.00337,"120":0.00337,"122":0.00337,"124":0.00337,"125":0.00337,"126":0.00673,"127":0.00337,"128":0.00337,"129":0.01683,"130":0.01683,"131":0.02356,"132":0.02356,"133":0.01346,"134":0.03702,"135":0.03365,"136":0.4139,"137":2.45982,"138":0.212,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 111 112 113 116 117 118 121 123"},E:{"13":0.00337,"14":0.01346,"15":0.00337,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.01346,"12.1":0.00673,"13.1":0.04375,"14.1":0.02356,"15.1":0.00337,"15.2-15.3":0.00337,"15.4":0.00673,"15.5":0.0101,"15.6":0.1447,"16.0":0.02692,"16.1":0.01346,"16.2":0.01346,"16.3":0.02692,"16.4":0.0101,"16.5":0.01683,"16.6":0.17835,"17.0":0.00673,"17.1":0.11105,"17.2":0.01346,"17.3":0.0101,"17.4":0.02692,"17.5":0.05384,"17.6":0.1447,"18.0":0.01683,"18.1":0.03702,"18.2":0.01683,"18.3":0.09422,"18.4":0.10095,"18.5":1.05325,"26.0":0.00337},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00251,"5.0-5.1":0,"6.0-6.1":0.00502,"7.0-7.1":0.00502,"8.1-8.4":0,"9.0-9.2":0.00251,"9.3":0.01507,"10.0-10.2":0.00126,"10.3":0.02512,"11.0-11.2":0.16079,"11.3-11.4":0.00879,"12.0-12.1":0.00251,"12.2-12.5":0.08417,"13.0-13.1":0.00126,"13.2":0.00377,"13.3":0.00251,"13.4-13.7":0.01382,"14.0-14.4":0.03266,"14.5-14.8":0.03266,"15.0-15.1":0.02261,"15.2-15.3":0.02261,"15.4":0.02764,"15.5":0.03015,"15.6-15.8":0.38942,"16.0":0.0515,"16.1":0.10552,"16.2":0.05402,"16.3":0.09924,"16.4":0.02261,"16.5":0.0402,"16.6-16.7":0.48866,"17.0":0.02638,"17.1":0.04648,"17.2":0.03643,"17.3":0.0515,"17.4":0.0917,"17.5":0.1922,"17.6-17.7":0.50248,"18.0":0.12436,"18.1":0.28013,"18.2":0.14823,"18.3":0.63689,"18.4":0.67583,"18.5":7.92282,"26.0":0},P:{"4":0.03127,"20":0.01042,"21":0.02085,"22":0.02085,"23":0.03127,"24":0.0417,"25":0.0417,"26":0.0834,"27":0.14594,"28":2.40807,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01042,"14.0":0.01042,"19.0":0.01042},I:{"0":0.0265,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.47116,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0286,"9":0.00409,"10":0.00817,"11":0.07355,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":53.17673},R:{_:"0"},M:{"0":0.46452},Q:{_:"14.9"},O:{"0":0.03318},H:{"0":0}}; +module.exports={C:{"4":0.00329,"48":0.00329,"52":0.02957,"56":0.00329,"57":0.00329,"59":0.00657,"67":0.00329,"68":0.00329,"78":0.02629,"79":0.00329,"81":0.00657,"88":0.01314,"91":0.00329,"94":0.00329,"95":0.00657,"96":0.00329,"99":0.00329,"100":0.01972,"101":0.00329,"102":0.00657,"103":0.00329,"105":0.00329,"106":0.00329,"107":0.00657,"108":0.00329,"109":0.03615,"110":0.00329,"111":0.00329,"113":0.00986,"114":0.00329,"115":0.28588,"117":0.00329,"118":0.01643,"119":0.00657,"120":0.00657,"121":0.00986,"122":0.00986,"123":0.01643,"124":0.06243,"125":0.95951,"126":0.78864,"127":0.00329,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 58 60 61 62 63 64 65 66 69 70 71 72 73 74 75 76 77 80 82 83 84 85 86 87 89 90 92 93 97 98 104 112 116 128 129 3.5 3.6"},D:{"38":0.00329,"46":0.00986,"49":0.02629,"58":0.00329,"63":0.00329,"65":0.00329,"66":0.023,"67":0.00329,"70":0.00329,"73":0.00657,"75":0.01314,"76":0.00329,"77":0.00329,"79":0.03286,"80":0.00329,"81":0.00657,"83":0.00329,"84":0.01314,"85":0.00329,"86":0.00657,"87":0.03615,"88":0.00986,"89":0.00657,"90":0.00657,"91":0.01314,"92":0.00329,"93":0.023,"94":0.01972,"95":0.00657,"96":0.00329,"97":0.00657,"98":0.00657,"99":0.01314,"100":0.00657,"101":0.00329,"102":0.00986,"103":0.07229,"104":0.00986,"105":0.01314,"106":0.01643,"107":0.04929,"108":0.02629,"109":1.12381,"110":0.01314,"111":0.01643,"112":0.03286,"113":0.02629,"114":0.04272,"115":0.01314,"116":0.13801,"117":0.02629,"118":0.01972,"119":0.04929,"120":0.09858,"121":0.10187,"122":0.24316,"123":0.79521,"124":13.6139,"125":4.88628,"126":0.00986,"127":0.00329,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 59 60 61 62 64 68 69 71 72 74 78 128"},F:{"46":0.00657,"69":0.00329,"95":0.023,"102":0.00329,"106":0.00329,"107":0.28588,"108":0.00986,"109":1.07124,"110":0.046,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00329,"18":0.00329,"84":0.00657,"90":0.00329,"92":0.00657,"101":0.00329,"107":0.00329,"108":0.00329,"109":0.04272,"110":0.00657,"111":0.00329,"112":0.00329,"113":0.00329,"114":0.00657,"115":0.00329,"116":0.00329,"117":0.00329,"118":0.00329,"119":0.00986,"120":0.01643,"121":0.01643,"122":0.05586,"123":0.07886,"124":2.01432,"125":1.06795,_:"12 13 14 15 16 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 100 102 103 104 105 106"},E:{"13":0.00657,"14":0.02957,"15":0.00657,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 17.6","10.1":0.00329,"11.1":0.00986,"12.1":0.00986,"13.1":0.07229,"14.1":0.06572,"15.1":0.02629,"15.2-15.3":0.00986,"15.4":0.01972,"15.5":0.02629,"15.6":0.22345,"16.0":0.02629,"16.1":0.03286,"16.2":0.03286,"16.3":0.07229,"16.4":0.023,"16.5":0.04272,"16.6":0.22345,"17.0":0.02957,"17.1":0.05258,"17.2":0.05915,"17.3":0.07558,"17.4":1.0318,"17.5":0.13473},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00239,"5.0-5.1":0.00239,"6.0-6.1":0.00598,"7.0-7.1":0.00837,"8.1-8.4":0.00239,"9.0-9.2":0.00598,"9.3":0.02751,"10.0-10.2":0.00479,"10.3":0.04307,"11.0-11.2":0.0634,"11.3-11.4":0.01196,"12.0-12.1":0.00718,"12.2-12.5":0.17346,"13.0-13.1":0.00359,"13.2":0.01675,"13.3":0.00837,"13.4-13.7":0.03828,"14.0-14.4":0.06579,"14.5-14.8":0.10168,"15.0-15.1":0.04905,"15.2-15.3":0.05383,"15.4":0.06101,"15.5":0.07656,"15.6-15.8":0.68904,"16.0":0.15671,"16.1":0.32299,"16.2":0.15671,"16.3":0.27155,"16.4":0.05742,"16.5":0.11604,"16.6-16.7":0.92471,"17.0":0.10049,"17.1":0.16389,"17.2":0.17106,"17.3":0.31581,"17.4":7.17156,"17.5":0.50602,"17.6":0},P:{"4":0.0418,"20":0.0209,"21":0.05225,"22":0.0627,"23":0.15674,"24":0.25079,"25":2.62282,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 12.0 15.0","6.2-6.4":0.01045,"11.1-11.2":0.01045,"13.0":0.01045,"14.0":0.01045,"16.0":0.0209,"17.0":0.01045,"18.0":0.01045,"19.0":0.03135},I:{"0":0.02675,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.32894,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00344,"9":0.00344,"11":0.06541,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.95826},R:{_:"0"},M:{"0":0.37593},Q:{_:"14.9"},O:{"0":0.02014},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/ET.js b/node_modules/caniuse-lite/data/regions/ET.js index 0232f1a81..f22344d27 100644 --- a/node_modules/caniuse-lite/data/regions/ET.js +++ b/node_modules/caniuse-lite/data/regions/ET.js @@ -1 +1 @@ -module.exports={C:{"42":0.00254,"43":0.00254,"47":0.00508,"52":0.00508,"56":0.00254,"58":0.00254,"60":0.00254,"61":0.00254,"67":0.00254,"70":0.00254,"72":0.00508,"74":0.00254,"78":0.00508,"84":0.00508,"88":0.00254,"89":0.00254,"91":0.00254,"94":0.00508,"95":0.00254,"97":0.00508,"105":0.00254,"108":0.00254,"112":0.01778,"113":0.00254,"115":0.28448,"116":0.00254,"118":0.00254,"126":0.00254,"127":0.05588,"128":0.0381,"129":0.00254,"130":0.00254,"131":0.04064,"132":0.00762,"133":0.00508,"134":0.00508,"135":0.01016,"136":0.0127,"137":0.01524,"138":0.06096,"139":1.16586,"140":0.16764,"141":0.00508,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 46 48 49 50 51 53 54 55 57 59 62 63 64 65 66 68 69 71 73 75 76 77 79 80 81 82 83 85 86 87 90 92 93 96 98 99 100 101 102 103 104 106 107 109 110 111 114 117 119 120 121 122 123 124 125 142 143 3.5 3.6"},D:{"11":0.01016,"33":0.00762,"38":0.00254,"39":0.01016,"40":0.00762,"41":0.00508,"42":0.00762,"43":0.03556,"44":0.00762,"45":0.01016,"46":0.00762,"47":0.00762,"48":0.01016,"49":0.01524,"50":0.00762,"51":0.01016,"52":0.00762,"53":0.01016,"54":0.00762,"55":0.00762,"56":0.00762,"57":0.00762,"58":0.0127,"59":0.00762,"60":0.00762,"63":0.00254,"64":0.00254,"65":0.00254,"66":0.01016,"67":0.00254,"68":0.01016,"69":0.00762,"70":0.00508,"71":0.00762,"72":0.00762,"73":0.02032,"74":0.00508,"75":0.00762,"76":0.00254,"77":0.00508,"78":0.00254,"79":0.07874,"80":0.01524,"81":0.00508,"83":0.01016,"84":0.00254,"85":0.01016,"86":0.01016,"87":0.02286,"88":0.00254,"89":0.01016,"90":0.00762,"91":0.0127,"92":0.00254,"93":0.01016,"94":0.00508,"95":0.0127,"96":0.00508,"97":0.00762,"98":0.02794,"99":0.00508,"100":0.00508,"101":0.00254,"102":0.01016,"103":0.04064,"104":0.0127,"105":0.00508,"106":0.01524,"107":0.00254,"108":0.0127,"109":0.90932,"110":0.00508,"111":0.02032,"112":0.00254,"113":0.00254,"114":0.02794,"115":0.00508,"116":0.01778,"117":0.00508,"118":0.01778,"119":0.03048,"120":0.03302,"121":0.02286,"122":0.0381,"123":0.0254,"124":0.02032,"125":3.43154,"126":0.04572,"127":0.0254,"128":0.0635,"129":0.03048,"130":0.02794,"131":0.11684,"132":0.06858,"133":0.1397,"134":0.0889,"135":0.1651,"136":1.39446,"137":8.60806,"138":0.4064,"139":0.00762,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 61 62 140 141"},F:{"22":0.00254,"23":0.00254,"42":0.00254,"73":0.00254,"79":0.02032,"84":0.00254,"85":0.00254,"86":0.00254,"89":0.02032,"90":0.0127,"95":0.05334,"112":0.00254,"113":0.00254,"114":0.00508,"116":0.00254,"117":0.00762,_:"9 11 12 15 16 17 18 19 20 21 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0127,"13":0.00254,"14":0.00508,"15":0.00254,"16":0.01016,"17":0.00508,"18":0.03556,"84":0.00508,"89":0.00508,"90":0.00762,"92":0.06096,"98":0.00254,"100":0.01016,"107":0.00254,"108":0.00254,"109":0.0254,"111":0.00254,"112":0.00508,"114":0.02286,"115":0.00254,"117":0.00508,"120":0.00508,"122":0.00762,"123":0.00254,"124":0.00254,"125":0.00254,"126":0.00508,"127":0.00508,"128":0.00508,"129":0.00762,"130":0.00762,"131":0.01778,"132":0.00762,"133":0.01778,"134":0.02286,"135":0.0254,"136":0.3937,"137":2.10058,"138":0.15494,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 99 101 102 103 104 105 106 110 113 116 118 119 121"},E:{"7":0.00508,"15":0.01524,_:"0 4 5 6 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.5 16.0 16.2 16.3 16.4 17.0 17.5 26.0","11.1":0.00254,"12.1":0.00254,"13.1":0.00254,"14.1":0.00508,"15.4":0.00254,"15.6":0.02794,"16.1":0.00254,"16.5":0.00508,"16.6":0.0127,"17.1":0.00508,"17.2":0.00254,"17.3":0.00254,"17.4":0.00254,"17.6":0.01778,"18.0":0.00254,"18.1":0.00762,"18.2":0.00254,"18.3":0.0127,"18.4":0.00762,"18.5":0.06096},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00028,"5.0-5.1":0,"6.0-6.1":0.00055,"7.0-7.1":0.00055,"8.1-8.4":0,"9.0-9.2":0.00028,"9.3":0.00166,"10.0-10.2":0.00014,"10.3":0.00276,"11.0-11.2":0.01766,"11.3-11.4":0.00097,"12.0-12.1":0.00028,"12.2-12.5":0.00925,"13.0-13.1":0.00014,"13.2":0.00041,"13.3":0.00028,"13.4-13.7":0.00152,"14.0-14.4":0.00359,"14.5-14.8":0.00359,"15.0-15.1":0.00248,"15.2-15.3":0.00248,"15.4":0.00304,"15.5":0.00331,"15.6-15.8":0.04278,"16.0":0.00566,"16.1":0.01159,"16.2":0.00593,"16.3":0.0109,"16.4":0.00248,"16.5":0.00442,"16.6-16.7":0.05368,"17.0":0.0029,"17.1":0.00511,"17.2":0.004,"17.3":0.00566,"17.4":0.01007,"17.5":0.02111,"17.6-17.7":0.0552,"18.0":0.01366,"18.1":0.03077,"18.2":0.01628,"18.3":0.06996,"18.4":0.07424,"18.5":0.87031,"26.0":0},P:{"4":0.12219,"21":0.01018,"22":0.02036,"23":0.02036,"24":0.05091,"25":0.09164,"26":0.07127,"27":0.15273,"28":0.60075,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 18.0","5.0-5.4":0.01018,"6.2-6.4":0.01018,"7.2-7.4":0.08146,"13.0":0.01018,"16.0":0.01018,"17.0":0.01018,"19.0":0.01018},I:{"0":0.34998,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00028},K:{"0":1.45655,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00305,"11":0.01219,_:"6 7 8 10 5.5"},S:{"2.5":0.00746,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":68.98785},R:{_:"0"},M:{"0":0.17156},Q:{"14.9":0.02238},O:{"0":0.26852},H:{"0":1.9}}; +module.exports={C:{"38":0.00577,"47":0.00288,"52":0.00865,"68":0.00577,"72":0.00288,"77":0.13843,"82":0.00288,"84":0.00577,"85":0.00288,"88":0.00288,"89":0.02307,"95":0.25379,"97":0.00865,"103":0.02596,"105":0.00288,"106":0.00288,"108":0.04614,"110":0.0173,"111":0.00288,"112":0.00288,"113":0.00288,"114":0.00865,"115":0.50182,"116":0.00288,"118":0.00288,"119":0.00288,"120":0.00577,"121":0.00865,"122":0.00288,"123":0.02019,"124":0.06345,"125":1.05554,"126":0.87097,"127":0.03461,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 78 79 80 81 83 86 87 90 91 92 93 94 96 98 99 100 101 102 104 107 109 117 128 129 3.5 3.6"},D:{"11":0.00577,"31":0.00577,"33":0.00288,"37":0.00288,"38":0.00577,"40":0.00577,"42":0.00288,"43":0.02307,"49":0.00288,"50":0.00865,"53":0.00288,"56":0.00288,"58":0.00288,"63":0.00577,"64":0.00288,"65":0.01154,"67":0.00288,"68":0.00865,"69":0.00577,"70":0.00865,"71":0.00288,"72":0.00288,"73":0.01442,"74":0.00288,"75":0.01442,"76":0.01154,"77":0.00577,"79":0.17881,"80":0.01154,"81":0.02019,"83":0.02019,"84":0.00288,"85":0.01154,"86":0.05191,"87":0.04903,"88":0.01442,"89":0.00577,"90":0.00865,"91":0.00577,"92":0.00865,"93":0.07498,"94":0.00577,"95":0.03172,"96":0.00577,"97":0.00288,"98":0.17304,"99":0.00577,"100":0.00288,"102":0.0173,"103":0.04903,"104":0.01154,"105":0.00577,"106":0.03461,"107":0.02596,"108":0.0173,"109":2.09955,"110":0.00577,"111":0.02596,"112":0.00865,"113":0.00865,"114":0.03172,"115":0.00577,"116":0.02307,"117":0.0173,"118":0.0173,"119":0.07498,"120":0.09806,"121":0.11824,"122":0.15574,"123":0.36338,"124":10.22955,"125":3.81265,"126":0.01442,"127":0.00288,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 34 35 36 39 41 44 45 46 47 48 51 52 54 55 57 59 60 61 62 66 78 101 128"},F:{"46":0.00577,"74":0.00288,"79":0.02019,"82":0.00288,"83":0.00288,"86":0.00288,"89":0.00288,"95":0.0721,"104":0.00288,"107":0.03172,"108":0.02307,"109":0.7383,"110":0.06922,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 80 81 84 85 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0173,"13":0.00577,"14":0.01442,"15":0.02019,"16":0.00577,"17":0.00577,"18":0.06922,"84":0.00288,"89":0.00577,"90":0.00288,"92":0.04038,"100":0.00288,"109":0.04038,"112":0.00288,"113":0.00288,"114":0.00577,"115":0.00577,"116":0.00288,"117":0.00577,"119":0.00865,"120":0.02307,"121":0.03461,"122":0.0548,"123":0.11248,"124":1.91498,"125":0.75849,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 118"},E:{"7":0.00288,"13":0.00865,"14":0.00288,_:"0 4 5 6 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.2 16.4 17.0 17.6","13.1":0.00577,"14.1":0.01442,"15.4":0.00288,"15.6":0.02307,"16.1":0.00288,"16.3":0.00288,"16.5":0.00288,"16.6":0.00577,"17.1":0.00288,"17.2":0.00288,"17.3":0.00577,"17.4":0.03461,"17.5":0.00288},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00037,"5.0-5.1":0.00037,"6.0-6.1":0.00094,"7.0-7.1":0.00131,"8.1-8.4":0.00037,"9.0-9.2":0.00094,"9.3":0.0043,"10.0-10.2":0.00075,"10.3":0.00674,"11.0-11.2":0.00992,"11.3-11.4":0.00187,"12.0-12.1":0.00112,"12.2-12.5":0.02714,"13.0-13.1":0.00056,"13.2":0.00262,"13.3":0.00131,"13.4-13.7":0.00599,"14.0-14.4":0.01029,"14.5-14.8":0.01591,"15.0-15.1":0.00767,"15.2-15.3":0.00842,"15.4":0.00954,"15.5":0.01198,"15.6-15.8":0.1078,"16.0":0.02452,"16.1":0.05053,"16.2":0.02452,"16.3":0.04248,"16.4":0.00898,"16.5":0.01815,"16.6-16.7":0.14467,"17.0":0.01572,"17.1":0.02564,"17.2":0.02676,"17.3":0.04941,"17.4":1.12197,"17.5":0.07916,"17.6":0},P:{"4":0.34846,"20":0.01025,"21":0.041,"22":0.12299,"23":0.12299,"24":0.13323,"25":0.4407,"5.0-5.4":0.03075,"6.2-6.4":0.01025,"7.2-7.4":0.14348,_:"8.2 10.1 12.0 15.0","9.2":0.01025,"11.1-11.2":0.01025,"13.0":0.01025,"14.0":0.01025,"16.0":0.0205,"17.0":0.041,"18.0":0.03075,"19.0":0.09224},I:{"0":0.1205,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00027},K:{"0":3.18026,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0173,_:"6 7 8 9 10 5.5"},S:{"2.5":0.06404,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.05677},R:{_:"0"},M:{"0":0.04981},Q:{"14.9":0.01423},O:{"0":0.19925},H:{"0":2.05}}; diff --git a/node_modules/caniuse-lite/data/regions/FI.js b/node_modules/caniuse-lite/data/regions/FI.js index d85d7629f..8087509c2 100644 --- a/node_modules/caniuse-lite/data/regions/FI.js +++ b/node_modules/caniuse-lite/data/regions/FI.js @@ -1 +1 @@ -module.exports={C:{"50":0.05871,"51":0.02936,"52":0.12916,"53":0.04697,"55":0.09981,"56":0.08807,"60":0.00587,"68":0.02348,"78":0.00587,"91":0.00587,"94":0.01174,"96":0.00587,"103":0.01174,"105":0.00587,"106":0.00587,"108":0.00587,"109":0.00587,"110":0.01174,"111":0.00587,"112":0.00587,"113":0.00587,"114":0.00587,"115":0.21723,"125":0.00587,"128":0.20549,"129":0.01174,"130":0.02348,"131":0.03523,"132":0.05284,"133":0.43445,"134":0.02348,"135":0.07045,"136":0.07632,"137":0.03523,"138":0.23484,"139":2.73589,"140":0.4051,"141":0.00587,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 54 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 95 97 98 99 100 101 102 104 107 116 117 118 119 120 121 122 123 124 126 127 142 143 3.5 3.6"},D:{"38":0.00587,"39":0.00587,"41":0.00587,"42":0.00587,"48":0.00587,"49":0.00587,"52":0.07045,"56":0.00587,"66":0.05871,"71":0.04697,"73":0.25245,"76":0.00587,"78":0.00587,"79":0.02348,"81":0.01174,"83":0.01174,"87":0.07045,"88":0.02348,"90":0.01174,"91":0.78084,"93":0.02348,"94":0.0411,"96":0.00587,"97":0.00587,"98":0.00587,"99":1.68498,"101":0.00587,"102":0.01174,"103":0.12916,"104":0.10568,"105":0.02936,"106":0.03523,"107":0.06458,"108":0.07045,"109":0.41684,"110":0.03523,"111":0.0411,"112":0.0411,"114":0.02348,"115":0.00587,"116":0.04697,"117":0.00587,"118":0.01174,"119":0.07632,"120":0.02936,"121":0.01174,"122":0.03523,"123":0.01761,"124":0.05871,"125":0.0411,"126":0.07632,"127":0.01761,"128":0.12329,"129":0.71039,"130":0.1409,"131":0.35813,"132":1.09788,"133":1.37381,"134":0.4051,"135":0.89826,"136":8.63037,"137":21.24128,"138":2.71827,"139":0.00587,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 43 44 45 46 47 50 51 53 54 55 57 58 59 60 61 62 63 64 65 67 68 69 70 72 74 75 77 80 84 85 86 89 92 95 100 113 140 141"},F:{"68":0.01174,"89":0.01761,"90":0.01174,"91":0.00587,"94":0.00587,"95":0.02348,"102":0.00587,"117":0.00587,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 92 93 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00587,"84":0.00587,"103":0.00587,"105":0.00587,"107":0.01174,"108":0.00587,"109":0.01761,"110":0.00587,"111":0.00587,"112":0.02936,"127":0.00587,"129":0.02936,"130":0.02348,"131":0.01761,"132":0.01761,"133":0.00587,"134":0.01761,"135":0.04697,"136":0.49904,"137":2.91789,"138":0.25245,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 113 114 115 116 117 118 119 120 121 122 123 124 125 126 128"},E:{"13":0.00587,"14":0.00587,"15":0.00587,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 17.0 26.0","13.1":0.00587,"14.1":0.01174,"15.4":0.00587,"15.5":0.01174,"15.6":0.08807,"16.0":0.02936,"16.1":0.01174,"16.2":0.01174,"16.3":0.03523,"16.4":0.00587,"16.5":0.01761,"16.6":0.15852,"17.1":0.14678,"17.2":0.01174,"17.3":0.00587,"17.4":0.03523,"17.5":0.05284,"17.6":0.182,"18.0":0.01761,"18.1":0.03523,"18.2":0.01174,"18.3":0.09394,"18.4":0.09981,"18.5":1.18007},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00209,"5.0-5.1":0,"6.0-6.1":0.00417,"7.0-7.1":0.00417,"8.1-8.4":0,"9.0-9.2":0.00209,"9.3":0.01252,"10.0-10.2":0.00104,"10.3":0.02086,"11.0-11.2":0.1335,"11.3-11.4":0.0073,"12.0-12.1":0.00209,"12.2-12.5":0.06988,"13.0-13.1":0.00104,"13.2":0.00313,"13.3":0.00209,"13.4-13.7":0.01147,"14.0-14.4":0.02712,"14.5-14.8":0.02712,"15.0-15.1":0.01877,"15.2-15.3":0.01877,"15.4":0.02295,"15.5":0.02503,"15.6-15.8":0.32333,"16.0":0.04276,"16.1":0.08761,"16.2":0.04485,"16.3":0.0824,"16.4":0.01877,"16.5":0.03338,"16.6-16.7":0.40572,"17.0":0.0219,"17.1":0.03859,"17.2":0.03025,"17.3":0.04276,"17.4":0.07614,"17.5":0.15958,"17.6-17.7":0.41719,"18.0":0.10326,"18.1":0.23259,"18.2":0.12307,"18.3":0.52879,"18.4":0.56113,"18.5":6.57811,"26.0":0},P:{"4":0.04193,"20":0.01048,"21":0.02097,"22":0.04193,"23":0.04193,"24":0.04193,"25":0.07338,"26":0.07338,"27":0.25158,"28":2.07554,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01048,"17.0":0.01048,"19.0":0.01048},I:{"0":0.03298,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.60696,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00807,"11":0.18567,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":27.09788},R:{_:"0"},M:{"0":0.92077},Q:{"14.9":0.00413},O:{"0":0.0991},H:{"0":0}}; +module.exports={C:{"50":1.07012,"52":0.72492,"53":0.55232,"56":0.78015,"59":0.02071,"60":0.01381,"72":0.0069,"78":0.0069,"83":0.0069,"91":0.0069,"102":0.03452,"103":0.04142,"104":0.01381,"105":0.0069,"106":0.0069,"107":0.0069,"108":0.0069,"109":0.01381,"110":0.01381,"111":0.0069,"112":0.0069,"113":0.0069,"114":0.01381,"115":0.33139,"116":0.03452,"117":0.6973,"118":0.50399,"119":0.03452,"120":0.0069,"121":0.01381,"122":0.02071,"123":0.02071,"124":0.10356,"125":1.42222,"126":1.0287,"127":0.0069,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 54 55 57 58 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 128 129 3.5 3.6"},D:{"38":0.0069,"41":0.01381,"42":0.01381,"56":0.0069,"61":0.0069,"66":0.10356,"71":0.03452,"73":0.0069,"74":0.0069,"75":0.01381,"76":0.0069,"77":0.02071,"78":0.01381,"79":0.01381,"80":0.01381,"81":0.02762,"83":0.01381,"86":0.60755,"87":0.03452,"88":0.0069,"89":0.02762,"90":0.0069,"91":0.5178,"92":0.0069,"93":0.02071,"94":0.01381,"95":0.0069,"96":0.14498,"98":0.0069,"99":0.13808,"100":0.64207,"101":1.26343,"102":0.63517,"103":0.6904,"104":0.6904,"105":0.06214,"106":0.02762,"107":0.11737,"108":0.08975,"109":0.74563,"110":0.08285,"111":0.08975,"112":0.10356,"113":1.92622,"114":4.70853,"115":0.3452,"116":5.09515,"117":7.55298,"118":0.14498,"119":0.13808,"120":1.06322,"121":0.40734,"122":0.72492,"123":2.63733,"124":14.75385,"125":4.88803,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 62 63 64 65 67 68 69 70 72 84 85 97 126 127 128"},F:{"57":0.0069,"68":0.0069,"95":0.02071,"102":0.0069,"107":0.26235,"108":0.02071,"109":0.84229,"110":0.04142,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01381,"99":0.0069,"103":0.0069,"105":0.0069,"107":0.0069,"109":0.03452,"110":0.0069,"111":0.0069,"112":0.0069,"113":0.0069,"114":0.44876,"115":0.02071,"116":0.06214,"117":0.93894,"118":0.02071,"119":0.0069,"120":0.01381,"121":0.0069,"122":0.02071,"123":0.08975,"124":2.11262,"125":1.13916,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 104 106 108"},E:{"13":0.0069,"14":0.01381,"15":0.0069,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.02071,"12.1":0.0069,"13.1":0.02762,"14.1":0.03452,"15.1":0.01381,"15.2-15.3":0.01381,"15.4":0.04142,"15.5":0.01381,"15.6":0.1726,"16.0":0.03452,"16.1":0.07594,"16.2":0.02762,"16.3":0.08975,"16.4":0.10356,"16.5":0.23474,"16.6":0.49709,"17.0":0.12427,"17.1":0.04833,"17.2":0.05523,"17.3":0.05523,"17.4":0.93894,"17.5":0.15189},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00144,"5.0-5.1":0.00144,"6.0-6.1":0.0036,"7.0-7.1":0.00504,"8.1-8.4":0.00144,"9.0-9.2":0.0036,"9.3":0.01656,"10.0-10.2":0.00288,"10.3":0.02592,"11.0-11.2":0.03815,"11.3-11.4":0.0072,"12.0-12.1":0.00432,"12.2-12.5":0.10439,"13.0-13.1":0.00216,"13.2":0.01008,"13.3":0.00504,"13.4-13.7":0.02304,"14.0-14.4":0.03959,"14.5-14.8":0.06119,"15.0-15.1":0.02952,"15.2-15.3":0.0324,"15.4":0.03671,"15.5":0.04607,"15.6-15.8":0.41466,"16.0":0.09431,"16.1":0.19437,"16.2":0.09431,"16.3":0.16342,"16.4":0.03456,"16.5":0.06983,"16.6-16.7":0.55648,"17.0":0.06047,"17.1":0.09863,"17.2":0.10295,"17.3":0.19005,"17.4":4.31578,"17.5":0.30452,"17.6":0},P:{"4":0.01041,"20":0.03122,"21":0.06245,"22":0.10408,"23":0.16653,"24":0.3955,"25":1.29057,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1","7.2-7.4":0.01041,"11.1-11.2":0.01041,"12.0":0.01041,"13.0":0.01041,"14.0":0.02082,"15.0":0.01041,"16.0":0.01041,"17.0":0.03122,"18.0":0.03122,"19.0":0.03122},I:{"0":0.02158,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.53544,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01381,"9":0.0069,"11":0.13808,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.51412},R:{_:"0"},M:{"0":0.62829},Q:{"14.9":0.0031},O:{"0":0.065},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/FJ.js b/node_modules/caniuse-lite/data/regions/FJ.js index afded6a7b..b930d2397 100644 --- a/node_modules/caniuse-lite/data/regions/FJ.js +++ b/node_modules/caniuse-lite/data/regions/FJ.js @@ -1 +1 @@ -module.exports={C:{"48":0.00322,"52":0.00322,"115":0.07404,"124":0.00322,"127":0.00322,"133":0.01288,"134":0.00322,"137":0.00322,"138":0.04507,"139":1.13631,"140":0.12232,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 125 126 128 129 130 131 132 135 136 141 142 143 3.5 3.6"},D:{"38":0.00966,"39":0.00966,"40":0.0161,"41":0.01288,"42":0.0161,"43":0.00966,"44":0.01288,"45":0.0161,"46":0.00644,"47":0.01288,"48":0.01288,"49":0.01931,"50":0.0161,"51":0.01288,"52":0.00966,"53":0.0161,"54":0.00966,"55":0.01288,"56":0.01288,"57":0.0161,"58":0.01931,"59":0.01288,"60":0.00966,"63":0.00322,"73":0.00322,"74":0.00322,"76":0.00322,"78":0.00322,"79":0.00322,"81":0.01288,"83":0.00322,"87":0.0161,"88":0.15129,"91":0.00322,"93":0.00966,"94":0.00322,"100":0.00322,"102":0.00644,"103":0.04829,"105":0.00322,"107":0.00322,"108":0.00322,"109":0.16095,"111":0.18026,"113":0.00322,"114":0.01288,"116":0.04829,"119":0.00966,"120":0.00322,"121":0.00966,"122":0.10945,"123":0.00966,"124":0.01931,"125":1.83805,"126":0.05472,"127":0.00644,"128":0.03541,"129":0.02253,"130":0.00966,"131":0.0676,"132":0.03541,"133":0.05794,"134":0.03863,"135":0.20602,"136":1.35198,"137":11.30835,"138":0.40559,"139":0.00322,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 64 65 66 67 68 69 70 71 72 75 77 80 84 85 86 89 90 92 95 96 97 98 99 101 104 106 110 112 115 117 118 140 141"},F:{"89":0.0161,"90":0.07726,"95":0.00322,"102":0.01288,"117":0.01288,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00322,"15":0.00322,"18":0.00966,"90":0.00322,"92":0.00644,"100":0.01931,"105":0.00322,"109":0.00966,"114":0.00322,"115":0.00322,"119":0.00322,"120":0.00322,"121":0.00322,"122":0.00322,"125":0.00644,"126":0.00644,"127":0.00322,"128":0.00322,"129":0.00644,"130":0.02897,"131":0.0161,"132":0.00644,"133":0.01931,"134":0.01931,"135":0.03219,"136":1.14275,"137":4.57742,"138":0.31546,_:"12 13 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 106 107 108 110 111 112 113 116 117 118 123 124"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.4 15.5 16.0 26.0","14.1":0.00644,"15.1":0.00322,"15.2-15.3":0.00322,"15.6":0.17061,"16.1":0.00966,"16.2":0.00322,"16.3":0.02253,"16.4":0.01931,"16.5":0.01931,"16.6":0.18992,"17.0":0.06116,"17.1":0.0515,"17.2":0.00322,"17.3":0.00644,"17.4":0.00322,"17.5":0.05472,"17.6":0.1191,"18.0":0.00966,"18.1":0.04507,"18.2":0.00644,"18.3":0.09979,"18.4":0.1191,"18.5":0.97214},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00153,"5.0-5.1":0,"6.0-6.1":0.00305,"7.0-7.1":0.00305,"8.1-8.4":0,"9.0-9.2":0.00153,"9.3":0.00916,"10.0-10.2":0.00076,"10.3":0.01527,"11.0-11.2":0.09773,"11.3-11.4":0.00534,"12.0-12.1":0.00153,"12.2-12.5":0.05116,"13.0-13.1":0.00076,"13.2":0.00229,"13.3":0.00153,"13.4-13.7":0.0084,"14.0-14.4":0.01985,"14.5-14.8":0.01985,"15.0-15.1":0.01374,"15.2-15.3":0.01374,"15.4":0.0168,"15.5":0.01832,"15.6-15.8":0.2367,"16.0":0.03131,"16.1":0.06414,"16.2":0.03283,"16.3":0.06032,"16.4":0.01374,"16.5":0.02443,"16.6-16.7":0.29702,"17.0":0.01603,"17.1":0.02825,"17.2":0.02214,"17.3":0.03131,"17.4":0.05574,"17.5":0.11682,"17.6-17.7":0.30542,"18.0":0.07559,"18.1":0.17027,"18.2":0.0901,"18.3":0.38712,"18.4":0.41078,"18.5":4.81565,"26.0":0},P:{"4":0.06263,"20":0.01044,"21":0.07307,"22":0.19834,"23":0.11483,"24":0.49062,"25":0.53237,"26":0.26097,"27":0.90817,"28":3.00635,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","7.2-7.4":0.25053,"13.0":0.01044,"17.0":0.01044,"18.0":0.01044,"19.0":0.02088},I:{"0":0.02708,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.34583,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02575,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":57.63637},R:{_:"0"},M:{"0":0.27802},Q:{_:"14.9"},O:{"0":0.56282},H:{"0":0}}; +module.exports={C:{"47":0.00283,"52":0.00849,"66":0.00283,"72":0.00283,"78":0.04811,"81":0.00849,"105":0.00283,"107":0.00283,"110":0.00283,"112":0.00283,"113":0.00849,"115":0.10471,"117":0.00283,"118":0.00283,"119":0.00283,"120":0.00283,"121":0.00566,"123":0.01981,"124":0.01698,"125":0.84051,"126":0.67354,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 108 109 111 114 116 122 127 128 129 3.5 3.6"},D:{"49":0.00566,"52":0.00849,"62":0.00283,"65":0.00283,"66":0.00566,"69":0.01132,"70":0.01415,"71":0.00283,"73":0.01698,"74":0.00566,"76":0.02264,"77":0.00566,"78":0.00283,"79":0.03113,"80":0.00283,"81":0.02264,"83":0.00283,"84":0.00283,"85":0.00283,"86":0.00849,"87":0.01415,"88":0.11603,"89":0.00283,"90":0.00283,"91":0.01698,"92":0.01981,"93":0.00849,"94":0.02547,"95":0.00283,"97":0.00566,"99":0.00283,"100":0.00283,"101":0.00283,"102":0.0283,"103":0.03962,"104":0.00566,"105":0.12169,"106":0.00283,"108":0.00849,"109":0.48959,"110":0.00283,"111":0.03396,"112":0.00283,"113":0.01132,"114":0.00849,"115":0.01132,"116":0.10754,"117":0.01132,"118":0.00849,"119":0.03962,"120":0.1415,"121":0.04528,"122":0.11603,"123":0.38488,"124":9.84557,"125":3.42713,"126":0.00849,"127":0.00283,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 63 64 67 68 72 75 96 98 107 128"},F:{"82":0.00566,"95":0.00283,"102":0.00566,"106":0.00283,"107":0.01981,"109":0.35941,"110":0.04245,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00283,"13":0.00283,"15":0.00283,"17":0.00283,"18":0.01132,"83":0.00283,"84":0.00849,"90":0.00566,"92":0.01981,"100":0.00283,"105":0.00283,"107":0.00849,"108":0.00283,"109":0.01415,"110":0.00283,"111":0.00283,"112":0.00283,"113":0.00283,"114":0.01132,"115":0.01698,"117":0.01415,"118":0.03679,"119":0.00849,"120":0.01981,"121":0.00566,"122":0.04811,"123":0.0849,"124":3.36487,"125":1.85365,_:"14 16 79 80 81 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 106 116"},E:{"14":0.00283,"15":0.00283,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00283,"13.1":0.07641,"14.1":0.01698,"15.1":0.01415,"15.2-15.3":0.04528,"15.4":0.00566,"15.5":0.01415,"15.6":0.09056,"16.0":0.00283,"16.1":0.07924,"16.2":0.11603,"16.3":0.04245,"16.4":0.00566,"16.5":0.03679,"16.6":0.31979,"17.0":0.00849,"17.1":0.01698,"17.2":0.03679,"17.3":0.08207,"17.4":1.41783,"17.5":0.20093},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00184,"5.0-5.1":0.00184,"6.0-6.1":0.00459,"7.0-7.1":0.00642,"8.1-8.4":0.00184,"9.0-9.2":0.00459,"9.3":0.02111,"10.0-10.2":0.00367,"10.3":0.03303,"11.0-11.2":0.04863,"11.3-11.4":0.00918,"12.0-12.1":0.00551,"12.2-12.5":0.13306,"13.0-13.1":0.00275,"13.2":0.01285,"13.3":0.00642,"13.4-13.7":0.02936,"14.0-14.4":0.05047,"14.5-14.8":0.078,"15.0-15.1":0.03762,"15.2-15.3":0.04129,"15.4":0.0468,"15.5":0.05873,"15.6-15.8":0.52856,"16.0":0.12021,"16.1":0.24776,"16.2":0.12021,"16.3":0.2083,"16.4":0.04405,"16.5":0.08901,"16.6-16.7":0.70933,"17.0":0.07708,"17.1":0.12572,"17.2":0.13122,"17.3":0.24225,"17.4":5.5012,"17.5":0.38816,"17.6":0},P:{"4":0.21939,"20":0.08358,"21":0.25073,"22":0.38654,"23":0.79397,"24":1.3999,"25":4.68026,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.03134,"7.2-7.4":0.26118,"9.2":0.01045,"11.1-11.2":0.02089,"13.0":0.02089,"14.0":0.02089,"15.0":0.01045,"16.0":0.02089,"17.0":0.01045,"18.0":0.08358,"19.0":0.12536},I:{"0":0.03571,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.898,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.01981,_:"6 7 8 9 11 5.5"},S:{"2.5":0.01434,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":54.40848},R:{_:"0"},M:{"0":0.35845},Q:{"14.9":0.02151},O:{"0":0.32261},H:{"0":0.12}}; diff --git a/node_modules/caniuse-lite/data/regions/FK.js b/node_modules/caniuse-lite/data/regions/FK.js index 5ffdc4507..df4a7529d 100644 --- a/node_modules/caniuse-lite/data/regions/FK.js +++ b/node_modules/caniuse-lite/data/regions/FK.js @@ -1 +1 @@ -module.exports={C:{"90":0.1152,"107":0.1152,"118":0.04032,"119":0.3456,"128":0.1152,"130":8.17344,"135":0.2304,"136":0.07488,"139":0.49536,"140":0.1152,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 115 116 117 120 121 122 123 124 125 126 127 129 131 132 133 134 137 138 141 142 143 3.5 3.6"},D:{"57":0.07488,"79":0.07488,"86":0.04032,"94":0.04032,"105":0.07488,"106":0.30528,"107":0.42048,"108":12.83328,"109":0.1152,"110":0.26496,"111":2.52288,"112":0.19008,"120":0.04032,"124":0.04032,"125":2.40768,"133":0.26496,"134":0.04032,"135":0.42048,"136":0.53568,"137":5.31072,"138":0.26496,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 113 114 115 116 117 118 119 121 122 123 126 127 128 129 130 131 132 139 140 141"},F:{"96":0.07488,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.07488,"84":0.07488,"91":0.04032,"92":0.4608,"109":6.83712,"110":0.1152,"114":1.10592,"116":0.04032,"117":0.1152,"118":0.53568,"122":0.1152,"123":0.04032,"124":0.3456,"125":0.04032,"126":0.04032,"128":0.04032,"136":0.72576,"137":4.23936,"138":0.2304,_:"12 14 15 16 17 18 79 80 81 83 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 119 120 121 127 129 130 131 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 26.0","15.6":1.26144,"16.0":0.04032,"16.6":0.68544,"17.6":0.3456,"18.3":0.04032,"18.4":0.19008,"18.5":0.65088},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00247,"5.0-5.1":0,"6.0-6.1":0.00495,"7.0-7.1":0.00495,"8.1-8.4":0,"9.0-9.2":0.00247,"9.3":0.01485,"10.0-10.2":0.00124,"10.3":0.02474,"11.0-11.2":0.15837,"11.3-11.4":0.00866,"12.0-12.1":0.00247,"12.2-12.5":0.08289,"13.0-13.1":0.00124,"13.2":0.00371,"13.3":0.00247,"13.4-13.7":0.01361,"14.0-14.4":0.03217,"14.5-14.8":0.03217,"15.0-15.1":0.02227,"15.2-15.3":0.02227,"15.4":0.02722,"15.5":0.02969,"15.6-15.8":0.38354,"16.0":0.05073,"16.1":0.10393,"16.2":0.0532,"16.3":0.09774,"16.4":0.02227,"16.5":0.03959,"16.6-16.7":0.48128,"17.0":0.02598,"17.1":0.04578,"17.2":0.03588,"17.3":0.05073,"17.4":0.09032,"17.5":0.1893,"17.6-17.7":0.49489,"18.0":0.12249,"18.1":0.2759,"18.2":0.14599,"18.3":0.62728,"18.4":0.66563,"18.5":7.80322,"26.0":0},P:{"20":0.08223,"25":0.08223,"26":0.15417,"27":0.15417,"28":2.04538,_:"4 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","18.0":0.08223,"19.0":0.04111},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.08056,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.2304,"9":0.1152,"10":0.04032,"11":0.04032,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.89704},R:{_:"0"},M:{"0":0.03816},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"90":0.02444,"103":0.07332,"107":0.02444,"108":1.11935,"109":0.21996,"114":0.02444,"115":0.43992,"117":0.04888,"118":6.17354,"119":0.04888,"123":0.04888,"124":0.1222,"125":0.89939,"126":0.53279,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 110 111 112 113 116 120 121 122 127 128 129 3.5 3.6"},D:{"103":0.1222,"109":0.58167,"118":0.02444,"119":0.02444,"120":0.04888,"122":0.09776,"123":1.19267,"124":17.79232,"125":1.45662,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 116 117 121 126 127 128"},F:{"109":3.89085,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02444,"92":0.07332,"102":0.07332,"110":0.07332,"113":0.07332,"114":0.17108,"117":0.65499,"118":1.04603,"120":0.14664,"122":0.39104,"123":0.94827,"124":3.27985,"125":3.04034,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 111 112 115 116 119 121"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.4 17.0 17.1 17.2 17.6","15.6":0.14664,"16.0":0.04888,"16.3":0.07332,"16.5":0.09776,"16.6":0.26884,"17.3":0.04888,"17.4":1.43218,"17.5":0.07332},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00256,"5.0-5.1":0.00256,"6.0-6.1":0.00639,"7.0-7.1":0.00895,"8.1-8.4":0.00256,"9.0-9.2":0.00639,"9.3":0.02941,"10.0-10.2":0.00511,"10.3":0.04603,"11.0-11.2":0.06776,"11.3-11.4":0.01279,"12.0-12.1":0.00767,"12.2-12.5":0.18538,"13.0-13.1":0.00384,"13.2":0.0179,"13.3":0.00895,"13.4-13.7":0.04091,"14.0-14.4":0.07032,"14.5-14.8":0.10867,"15.0-15.1":0.05242,"15.2-15.3":0.05753,"15.4":0.0652,"15.5":0.08182,"15.6-15.8":0.73642,"16.0":0.16748,"16.1":0.3452,"16.2":0.16748,"16.3":0.29022,"16.4":0.06137,"16.5":0.12402,"16.6-16.7":0.98829,"17.0":0.10739,"17.1":0.17516,"17.2":0.18283,"17.3":0.33753,"17.4":7.66467,"17.5":0.54081,"17.6":0},P:{"21":0.02091,"22":0.12547,"23":0.07319,"24":2.69758,"25":4.44368,_:"4 20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 18.0 19.0","14.0":0.25094},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.96617,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.85525},R:{_:"0"},M:{"0":0.45497},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/FM.js b/node_modules/caniuse-lite/data/regions/FM.js index 0ec126e58..0a293c6fe 100644 --- a/node_modules/caniuse-lite/data/regions/FM.js +++ b/node_modules/caniuse-lite/data/regions/FM.js @@ -1 +1 @@ -module.exports={C:{"115":0.02966,"128":0.07045,"138":0.07045,"139":1.09386,"140":0.29664,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 141 142 143 3.5 3.6"},D:{"40":0.02966,"41":0.01483,"45":0.01483,"48":0.02966,"50":0.02966,"51":0.01483,"54":0.05562,"56":0.01483,"60":0.04079,"93":0.34114,"103":0.08528,"109":0.1854,"119":0.04079,"122":0.01483,"123":0.01483,"125":0.02966,"126":0.01483,"133":0.01483,"134":0.22619,"135":0.38192,"136":2.32862,"137":12.91867,"138":0.17057,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 43 44 46 47 49 52 53 55 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 116 117 118 120 121 124 127 128 129 130 131 132 139 140 141"},F:{"90":0.02966,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.01483,"109":0.01483,"112":0.1409,"126":0.04079,"127":0.01483,"132":0.01483,"133":0.01483,"134":0.01483,"136":1.83175,"137":5.91797,"138":0.86767,_:"12 13 14 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 119 120 121 122 123 124 125 128 129 130 131 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.5 15.6 16.2 16.4 17.0 17.1 17.3 18.0 26.0","14.1":0.01483,"15.4":0.01483,"16.0":0.01483,"16.1":0.12607,"16.3":0.01483,"16.5":0.01483,"16.6":0.05562,"17.2":0.05562,"17.4":0.08528,"17.5":0.08528,"17.6":0.11495,"18.1":0.01483,"18.2":0.01483,"18.3":0.08528,"18.4":0.01483,"18.5":1.34971},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00224,"5.0-5.1":0,"6.0-6.1":0.00449,"7.0-7.1":0.00449,"8.1-8.4":0,"9.0-9.2":0.00224,"9.3":0.01346,"10.0-10.2":0.00112,"10.3":0.02244,"11.0-11.2":0.1436,"11.3-11.4":0.00785,"12.0-12.1":0.00224,"12.2-12.5":0.07516,"13.0-13.1":0.00112,"13.2":0.00337,"13.3":0.00224,"13.4-13.7":0.01234,"14.0-14.4":0.02917,"14.5-14.8":0.02917,"15.0-15.1":0.02019,"15.2-15.3":0.02019,"15.4":0.02468,"15.5":0.02692,"15.6-15.8":0.34778,"16.0":0.046,"16.1":0.09424,"16.2":0.04824,"16.3":0.08863,"16.4":0.02019,"16.5":0.0359,"16.6-16.7":0.4364,"17.0":0.02356,"17.1":0.04151,"17.2":0.03253,"17.3":0.046,"17.4":0.0819,"17.5":0.17165,"17.6-17.7":0.44875,"18.0":0.11106,"18.1":0.25018,"18.2":0.13238,"18.3":0.56878,"18.4":0.60356,"18.5":7.07559,"26.0":0},P:{"24":0.16469,"25":0.04705,"27":0.07058,"28":1.43512,_:"4 20 21 22 23 26 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.15292,"16.0":0.02353},I:{"0":0.03141,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.41527,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":55.89326},R:{_:"0"},M:{"0":0.06921},Q:{_:"14.9"},O:{"0":0.11326},H:{"0":0}}; +module.exports={C:{"115":0.00778,"125":1.76606,"126":0.75077,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 127 128 129 3.5 3.6"},D:{"87":0.02334,"93":0.74299,"94":0.00778,"102":0.30342,"103":0.31898,"109":4.91307,"110":0.01556,"112":0.01556,"113":0.00778,"116":0.03112,"119":0.04279,"120":0.01556,"121":0.04279,"122":0.06613,"123":0.60684,"124":7.65163,"125":2.78135,"126":0.02334,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 95 96 97 98 99 100 101 104 105 106 107 108 111 114 115 117 118 127 128"},F:{"109":0.03112,"110":0.00778,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"83":0.07391,"92":0.01556,"117":0.01556,"118":0.01556,"121":0.05835,"122":0.01556,"123":0.03112,"124":8.00562,"125":2.27954,_:"12 13 14 15 16 17 18 79 80 81 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 119 120"},E:{"11":0.01556,"14":0.41623,"15":0.00778,_:"0 4 5 6 7 8 9 10 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.4 17.0 17.2 17.6","14.1":0.03112,"15.6":0.08169,"16.2":0.00778,"16.3":0.03112,"16.5":0.16338,"16.6":0.04279,"17.1":0.16338,"17.3":0.95694,"17.4":1.06197,"17.5":0.12448},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00262,"5.0-5.1":0.00262,"6.0-6.1":0.00655,"7.0-7.1":0.00917,"8.1-8.4":0.00262,"9.0-9.2":0.00655,"9.3":0.03013,"10.0-10.2":0.00524,"10.3":0.04716,"11.0-11.2":0.06943,"11.3-11.4":0.0131,"12.0-12.1":0.00786,"12.2-12.5":0.18995,"13.0-13.1":0.00393,"13.2":0.01834,"13.3":0.00917,"13.4-13.7":0.04192,"14.0-14.4":0.07205,"14.5-14.8":0.11135,"15.0-15.1":0.05371,"15.2-15.3":0.05895,"15.4":0.06681,"15.5":0.08384,"15.6-15.8":0.75455,"16.0":0.17161,"16.1":0.3537,"16.2":0.17161,"16.3":0.29737,"16.4":0.06288,"16.5":0.12707,"16.6-16.7":1.01262,"17.0":0.11004,"17.1":0.17947,"17.2":0.18733,"17.3":0.34584,"17.4":7.85335,"17.5":0.55412,"17.6":0},P:{"4":0.27187,"21":0.09787,"22":0.07612,"23":0.06525,"24":0.11962,"25":0.44586,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 13.0 14.0 15.0 19.0","7.2-7.4":0.02175,"11.1-11.2":0.02175,"12.0":0.02175,"16.0":0.01087,"17.0":0.01087,"18.0":0.02175},I:{"0":0.03652,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.68432,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":48.32303},R:{_:"0"},M:{"0":0.07332},Q:{"14.9":0.00611},O:{"0":1.61304},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/FO.js b/node_modules/caniuse-lite/data/regions/FO.js index 0ea416895..992609d6b 100644 --- a/node_modules/caniuse-lite/data/regions/FO.js +++ b/node_modules/caniuse-lite/data/regions/FO.js @@ -1 +1 @@ -module.exports={C:{"93":0.00377,"105":0.00377,"107":0.00377,"109":0.00753,"110":0.22979,"115":0.0339,"128":0.64039,"134":0.00753,"136":0.00753,"137":0.0113,"138":0.01884,"139":1.23181,"140":0.16952,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 103 104 106 108 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 141 142 143 3.5 3.6"},D:{"39":0.00753,"40":0.00753,"41":0.00377,"42":0.00753,"43":0.00377,"44":0.00753,"45":0.00377,"46":0.00377,"47":0.00377,"48":0.00377,"49":0.0339,"50":0.00753,"51":0.01884,"52":0.00377,"53":0.00377,"54":0.00377,"55":0.00377,"56":0.00753,"57":0.00377,"58":0.00753,"59":0.00377,"60":0.00753,"76":0.01884,"79":0.00377,"87":0.00377,"91":0.00753,"95":0.00377,"99":0.00377,"101":0.00753,"102":0.00753,"103":0.00753,"105":0.01507,"106":0.35033,"107":0.30889,"108":0.41814,"109":1.93624,"110":0.35787,"111":0.21472,"112":0.35787,"116":0.01884,"118":0.00377,"119":0.0113,"122":0.0226,"125":0.0226,"126":0.04897,"127":0.01507,"128":0.02637,"129":0.00377,"130":0.0452,"131":0.00753,"132":0.01884,"133":0.0113,"134":0.06404,"135":0.09041,"136":2.45985,"137":9.27435,"138":0.26369,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 92 93 94 96 97 98 100 104 113 114 115 117 120 121 123 124 139 140 141"},F:{"90":0.00377,"94":0.00377,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"108":0.00377,"109":0.11301,"111":0.00377,"119":0.00753,"120":0.00377,"122":0.00377,"123":0.00377,"125":0.4106,"128":0.00377,"131":0.00377,"132":0.03767,"134":0.00377,"135":0.02637,"136":0.42567,"137":3.89131,"138":0.15445,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 112 113 114 115 116 117 118 121 124 126 127 129 130 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 16.4","14.1":0.05274,"15.1":0.0226,"15.4":0.01507,"15.5":0.07911,"15.6":0.3428,"16.0":0.0339,"16.1":0.09418,"16.2":0.15068,"16.3":0.04144,"16.5":0.01507,"16.6":0.94552,"17.0":0.06404,"17.1":1.22428,"17.2":0.05274,"17.3":0.15821,"17.4":0.15068,"17.5":0.09418,"17.6":1.0962,"18.0":0.05274,"18.1":0.14315,"18.2":0.03014,"18.3":0.23732,"18.4":0.27122,"18.5":4.1211,"26.0":0.00377},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01015,"5.0-5.1":0,"6.0-6.1":0.02031,"7.0-7.1":0.02031,"8.1-8.4":0,"9.0-9.2":0.01015,"9.3":0.06092,"10.0-10.2":0.00508,"10.3":0.10154,"11.0-11.2":0.64983,"11.3-11.4":0.03554,"12.0-12.1":0.01015,"12.2-12.5":0.34014,"13.0-13.1":0.00508,"13.2":0.01523,"13.3":0.01015,"13.4-13.7":0.05584,"14.0-14.4":0.132,"14.5-14.8":0.132,"15.0-15.1":0.09138,"15.2-15.3":0.09138,"15.4":0.11169,"15.5":0.12184,"15.6-15.8":1.5738,"16.0":0.20815,"16.1":0.42645,"16.2":0.2183,"16.3":0.40107,"16.4":0.09138,"16.5":0.16246,"16.6-16.7":1.97487,"17.0":0.10661,"17.1":0.18784,"17.2":0.14723,"17.3":0.20815,"17.4":0.3706,"17.5":0.77675,"17.6-17.7":2.03071,"18.0":0.5026,"18.1":1.13212,"18.2":0.59906,"18.3":2.57393,"18.4":2.73131,"18.5":32.01924,"26.0":0},P:{"25":0.02068,"26":0.08274,"27":0.01034,"28":1.68573,_:"4 20 21 22 23 24 5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","6.2-6.4":0.03103,"18.0":0.01034,"19.0":0.01034},I:{"0":0.08089,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.01247,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.06259,"9":0.01956,"10":0.00782,"11":0.01174,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":9.76708},R:{_:"0"},M:{"0":0.31788},Q:{"14.9":0.00623},O:{"0":0.02493},H:{"0":0}}; +module.exports={C:{"78":0.00417,"104":0.00417,"105":0.00834,"107":0.00834,"108":0.00417,"109":0.00834,"110":0.00417,"111":0.00417,"112":0.00417,"115":0.81315,"124":0.00834,"125":0.834,"126":1.35525,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 106 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"49":0.02085,"69":0.00417,"76":0.01668,"79":0.02085,"94":0.00834,"101":0.00834,"103":0.01251,"106":0.17097,"107":0.00834,"108":0.19599,"109":0.86736,"110":0.20016,"111":0.25437,"112":0.16263,"115":0.00417,"116":0.10425,"117":0.00834,"118":0.02085,"119":0.06672,"120":0.03753,"121":0.15429,"122":0.10842,"123":0.77562,"124":9.58683,"125":3.89895,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 102 104 105 113 114 126 127 128"},F:{"107":0.1668,"108":0.00417,"109":1.00497,"110":0.02502,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"106":0.00417,"109":0.11259,"110":0.00834,"112":0.00417,"119":0.06672,"122":0.02085,"123":0.0834,"124":2.45196,"125":1.78059,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 111 113 114 115 116 117 118 120 121"},E:{"14":0.02502,"15":0.01251,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1","13.1":0.02085,"14.1":0.07089,"15.1":0.02085,"15.2-15.3":0.06255,"15.4":0.0417,"15.5":0.06672,"15.6":2.04747,"16.0":0.01668,"16.1":0.14178,"16.2":0.3336,"16.3":0.73809,"16.4":0.11259,"16.5":0.15846,"16.6":1.83063,"17.0":0.09174,"17.1":0.26688,"17.2":0.1668,"17.3":0.41283,"17.4":8.1315,"17.5":0.77979,"17.6":0.00834},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00868,"5.0-5.1":0.00868,"6.0-6.1":0.02171,"7.0-7.1":0.03039,"8.1-8.4":0.00868,"9.0-9.2":0.02171,"9.3":0.09986,"10.0-10.2":0.01737,"10.3":0.1563,"11.0-11.2":0.2301,"11.3-11.4":0.04342,"12.0-12.1":0.02605,"12.2-12.5":0.62953,"13.0-13.1":0.01302,"13.2":0.06078,"13.3":0.03039,"13.4-13.7":0.13893,"14.0-14.4":0.23879,"14.5-14.8":0.36904,"15.0-15.1":0.17801,"15.2-15.3":0.19537,"15.4":0.22142,"15.5":0.27786,"15.6-15.8":2.50076,"16.0":0.56875,"16.1":1.17223,"16.2":0.56875,"16.3":0.98554,"16.4":0.2084,"16.5":0.42114,"16.6-16.7":3.35606,"17.0":0.36469,"17.1":0.5948,"17.2":0.62085,"17.3":1.14618,"17.4":26.0279,"17.5":1.8365,"17.6":0},P:{"4":0.40517,"22":0.01039,"23":0.01039,"24":0.21817,"25":2.31677,_:"20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","18.0":0.01039,"19.0":0.01039},I:{"0":0.05227,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.01166,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02919,"9":0.01668,"11":0.20016,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":11.77267},R:{_:"0"},M:{"0":0.11077},Q:{_:"14.9"},O:{"0":0.00583},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/FR.js b/node_modules/caniuse-lite/data/regions/FR.js index 66d62addf..1b88b98ad 100644 --- a/node_modules/caniuse-lite/data/regions/FR.js +++ b/node_modules/caniuse-lite/data/regions/FR.js @@ -1 +1 @@ -module.exports={C:{"3":0.00411,"48":0.00822,"52":0.05343,"54":0.02055,"57":0.00822,"59":0.0411,"68":0.00411,"75":0.01644,"78":0.03288,"91":0.00822,"93":0.01233,"94":0.06576,"102":0.00411,"105":0.00411,"106":0.00411,"107":0.00411,"108":0.00822,"109":0.00411,"110":0.00822,"111":0.00411,"113":0.00822,"115":0.52197,"120":0.00411,"121":0.00822,"124":0.01644,"125":0.00822,"127":0.00822,"128":0.25893,"129":0.00411,"130":0.00822,"131":0.00822,"132":0.00822,"133":0.01644,"134":0.02466,"135":0.02055,"136":0.05754,"137":0.06576,"138":0.16851,"139":3.30033,"140":0.50142,"141":0.00411,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 55 56 58 60 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 95 96 97 98 99 100 101 103 104 112 114 116 117 118 119 122 123 126 142 143 3.5 3.6"},D:{"29":0.00822,"34":0.00411,"39":0.00411,"40":0.00411,"41":0.00411,"42":0.00411,"43":0.00411,"44":0.00411,"45":0.00411,"46":0.00411,"47":0.00822,"48":0.01644,"49":0.02877,"50":0.00411,"51":0.00822,"52":0.02877,"53":0.00411,"54":0.00411,"55":0.00411,"56":0.00822,"57":0.00411,"58":0.01233,"59":0.00411,"60":0.00411,"65":0.00411,"66":0.16851,"67":0.00411,"70":0.02877,"71":0.01233,"72":0.00411,"73":0.0822,"74":0.00822,"75":0.00411,"76":0.00822,"78":0.00411,"79":0.05343,"80":0.00411,"81":0.01644,"83":0.00411,"84":0.00411,"85":0.01644,"86":0.00822,"87":0.03288,"88":0.01233,"89":0.00411,"90":0.01644,"91":0.00822,"92":0.00411,"93":0.05343,"94":0.22194,"95":0.02055,"96":0.00822,"97":0.00411,"98":0.00411,"99":0.00411,"100":0.00411,"101":0.00411,"102":0.12741,"103":0.04932,"104":0.01644,"105":0.01644,"106":0.0411,"107":0.06165,"108":0.08631,"109":1.02339,"110":0.0411,"111":0.0411,"112":0.04521,"113":0.01644,"114":0.26715,"115":0.03288,"116":0.14796,"117":0.00411,"118":0.04521,"119":0.02055,"120":0.02877,"121":0.01644,"122":0.06576,"123":0.02466,"124":0.04932,"125":0.14385,"126":0.07809,"127":0.05754,"128":0.11097,"129":0.02877,"130":0.06576,"131":0.15618,"132":0.49731,"133":0.11919,"134":0.13974,"135":0.27126,"136":2.31393,"137":13.46847,"138":0.52608,"139":0.00822,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 38 61 62 63 64 68 69 77 140 141"},F:{"46":0.00411,"89":0.02877,"90":0.02466,"92":0.00411,"94":0.00411,"95":0.05754,"102":0.00411,"112":0.00411,"114":0.00411,"117":0.00411,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 93 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00411,"16":0.00411,"17":0.02055,"18":0.00411,"92":0.00822,"96":0.07398,"106":0.00411,"107":0.01233,"108":0.01233,"109":0.08631,"110":0.00822,"111":0.00411,"112":0.00411,"114":0.00411,"115":0.00411,"119":0.00411,"120":0.00822,"122":0.09453,"123":0.00411,"124":0.00822,"125":0.00411,"126":0.05343,"127":0.00411,"128":0.00822,"129":0.00822,"130":0.01644,"131":0.02877,"132":0.02466,"133":0.02055,"134":0.09453,"135":0.05343,"136":0.71103,"137":4.17165,"138":0.38223,_:"13 14 15 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 113 116 117 118 121"},E:{"4":0.00411,"9":0.00411,"14":0.00822,"15":0.00411,_:"0 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.0","11.1":0.0411,"12.1":0.00822,"13.1":0.0822,"14.1":0.05754,"15.1":0.00822,"15.2-15.3":0.00822,"15.4":0.01233,"15.5":0.00822,"15.6":0.21372,"16.0":0.05343,"16.1":0.02055,"16.2":0.01644,"16.3":0.02877,"16.4":0.00822,"16.5":0.02055,"16.6":0.22194,"17.0":0.00822,"17.1":0.13152,"17.2":0.02055,"17.3":0.02055,"17.4":0.0411,"17.5":0.06165,"17.6":0.27537,"18.0":0.03288,"18.1":0.04932,"18.2":0.02466,"18.3":0.13152,"18.4":0.15618,"18.5":1.26999},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00258,"5.0-5.1":0,"6.0-6.1":0.00517,"7.0-7.1":0.00517,"8.1-8.4":0,"9.0-9.2":0.00258,"9.3":0.0155,"10.0-10.2":0.00129,"10.3":0.02583,"11.0-11.2":0.16529,"11.3-11.4":0.00904,"12.0-12.1":0.00258,"12.2-12.5":0.08652,"13.0-13.1":0.00129,"13.2":0.00387,"13.3":0.00258,"13.4-13.7":0.0142,"14.0-14.4":0.03357,"14.5-14.8":0.03357,"15.0-15.1":0.02324,"15.2-15.3":0.02324,"15.4":0.02841,"15.5":0.03099,"15.6-15.8":0.40031,"16.0":0.05294,"16.1":0.10847,"16.2":0.05553,"16.3":0.10201,"16.4":0.02324,"16.5":0.04132,"16.6-16.7":0.50232,"17.0":0.02712,"17.1":0.04778,"17.2":0.03745,"17.3":0.05294,"17.4":0.09427,"17.5":0.19757,"17.6-17.7":0.51652,"18.0":0.12784,"18.1":0.28796,"18.2":0.15237,"18.3":0.65469,"18.4":0.69472,"18.5":8.14427,"26.0":0},P:{"4":0.03185,"20":0.01062,"21":0.02123,"22":0.04247,"23":0.03185,"24":0.03185,"25":0.05308,"26":0.10617,"27":0.15925,"28":2.36748,"5.0-5.4":0.01062,_:"6.2-6.4 8.2 10.1 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.02123,"9.2":0.01062,"11.1-11.2":0.02123,"13.0":0.01062,"17.0":0.01062,"19.0":0.01062},I:{"0":0.09998,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.68336,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.09604,"9":0.03201,"10":0.03201,"11":0.14407,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.37753},R:{_:"0"},M:{"0":0.73638},Q:{"14.9":0.01178},O:{"0":0.63623},H:{"0":0}}; +module.exports={C:{"4":0.00479,"7":0.00479,"24":0.00479,"48":0.00957,"52":0.03829,"54":0.01914,"56":0.00479,"59":0.03829,"68":0.00479,"72":0.00479,"75":0.01914,"78":0.06222,"82":0.00479,"83":0.00479,"88":0.00957,"91":0.01436,"93":0.00479,"94":0.00957,"96":0.00957,"101":0.00479,"102":0.02872,"103":0.29673,"104":0.00479,"105":0.00957,"106":0.00957,"107":0.01436,"108":0.00957,"109":0.00957,"110":0.00957,"111":0.00957,"112":0.00479,"113":0.01436,"114":0.00479,"115":0.7514,"116":0.00479,"117":0.00479,"118":0.00479,"119":0.00479,"120":0.00957,"121":0.01914,"122":0.01436,"123":0.03829,"124":0.10051,"125":2.10105,"126":1.78996,"127":0.00479,_:"2 3 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 55 57 58 60 61 62 63 64 65 66 67 69 70 71 73 74 76 77 79 80 81 84 85 86 87 89 90 92 95 97 98 99 100 128 129 3.5 3.6"},D:{"49":0.07179,"52":0.02872,"56":0.00479,"58":0.00479,"65":0.00479,"66":0.14837,"67":0.00479,"70":0.00479,"71":0.01436,"76":0.00957,"79":0.03829,"80":0.00479,"81":0.01914,"83":0.00479,"84":0.00479,"85":0.02393,"86":0.06222,"87":0.05265,"88":0.01436,"89":0.00957,"90":0.00957,"91":0.00479,"92":0.00479,"93":0.01436,"94":0.24887,"95":0.01436,"96":0.00957,"97":0.00957,"98":0.01436,"99":0.00957,"100":0.06222,"101":0.11008,"102":0.07658,"103":0.16751,"104":0.067,"105":0.0335,"106":0.04786,"107":0.08136,"108":0.08615,"109":1.58895,"110":0.03829,"111":0.07179,"112":0.05265,"113":0.07179,"114":0.11008,"115":0.12922,"116":0.27759,"117":0.02872,"118":0.04307,"119":0.067,"120":0.14837,"121":0.2058,"122":0.39245,"123":1.72775,"124":16.70314,"125":5.65227,"126":0.00479,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 57 59 60 61 62 63 64 68 69 72 73 74 75 77 78 127 128"},F:{"28":0.00957,"46":0.00479,"94":0.00479,"95":0.03829,"102":0.00479,"106":0.02872,"107":0.22016,"108":0.01914,"109":0.93806,"110":0.05265,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01914,"18":0.00479,"92":0.00957,"103":0.00479,"106":0.00479,"107":0.01436,"108":0.01436,"109":0.12922,"110":0.00957,"111":0.00479,"112":0.00957,"113":0.00957,"114":0.05265,"115":0.00479,"116":0.00957,"117":0.00957,"118":0.00479,"119":0.00957,"120":0.0335,"121":0.02393,"122":0.16272,"123":0.18187,"124":4.20211,"125":2.21592,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105"},E:{"13":0.00479,"14":0.0335,"15":0.00957,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 17.6","10.1":0.00479,"11.1":0.03829,"12.1":0.15315,"13.1":0.10529,"14.1":0.13401,"15.1":0.01914,"15.2-15.3":0.01914,"15.4":0.02872,"15.5":0.02872,"15.6":0.29673,"16.0":0.03829,"16.1":0.04786,"16.2":0.03829,"16.3":0.09093,"16.4":0.02872,"16.5":0.05743,"16.6":0.33981,"17.0":0.04307,"17.1":0.07658,"17.2":0.10529,"17.3":0.09572,"17.4":1.27308,"17.5":0.19623},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00264,"5.0-5.1":0.00264,"6.0-6.1":0.00661,"7.0-7.1":0.00925,"8.1-8.4":0.00264,"9.0-9.2":0.00661,"9.3":0.03041,"10.0-10.2":0.00529,"10.3":0.04759,"11.0-11.2":0.07007,"11.3-11.4":0.01322,"12.0-12.1":0.00793,"12.2-12.5":0.19169,"13.0-13.1":0.00397,"13.2":0.01851,"13.3":0.00925,"13.4-13.7":0.0423,"14.0-14.4":0.07271,"14.5-14.8":0.11237,"15.0-15.1":0.0542,"15.2-15.3":0.05949,"15.4":0.06742,"15.5":0.08461,"15.6-15.8":0.76147,"16.0":0.17318,"16.1":0.35694,"16.2":0.17318,"16.3":0.30009,"16.4":0.06346,"16.5":0.12823,"16.6-16.7":1.02191,"17.0":0.11105,"17.1":0.18111,"17.2":0.18905,"17.3":0.34901,"17.4":7.9254,"17.5":0.55921,"17.6":0},P:{"4":0.04243,"20":0.02121,"21":0.05304,"22":0.05304,"23":0.11668,"24":0.24396,"25":2.10021,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0","7.2-7.4":0.01061,"9.2":0.01061,"11.1-11.2":0.02121,"13.0":0.02121,"14.0":0.01061,"15.0":0.02121,"16.0":0.02121,"17.0":0.01061,"18.0":0.02121,"19.0":0.03182},I:{"0":0.0935,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00021},K:{"0":0.64145,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02485,"9":0.01988,"10":0.00497,"11":0.07952,_:"6 7 5.5"},S:{"2.5":0.00522,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.69489},R:{_:"0"},M:{"0":0.53715},Q:{"14.9":0.00522},O:{"0":0.45892},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GA.js b/node_modules/caniuse-lite/data/regions/GA.js index b1a5a2b3f..6c540691e 100644 --- a/node_modules/caniuse-lite/data/regions/GA.js +++ b/node_modules/caniuse-lite/data/regions/GA.js @@ -1 +1 @@ -module.exports={C:{"78":0.00215,"102":0.00215,"115":0.0365,"121":0.00215,"127":0.00215,"128":0.04938,"135":0.00215,"136":0.00215,"137":0.01288,"138":0.01503,"139":0.56896,"140":0.08588,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"11":0.00859,"34":0.00859,"38":0.00215,"39":0.01074,"40":0.01074,"41":0.01288,"42":0.01288,"43":0.01288,"44":0.01074,"45":0.01288,"46":0.01718,"47":0.01288,"48":0.01074,"49":0.01718,"50":0.01503,"51":0.01503,"52":0.01718,"53":0.01074,"54":0.01503,"55":0.01288,"56":0.02362,"57":0.01288,"58":0.01074,"59":0.01503,"60":0.01503,"62":0.00215,"64":0.00215,"65":0.01503,"66":0.00644,"68":0.00644,"69":0.01074,"72":0.00429,"73":0.04294,"74":0.00644,"75":0.01718,"79":0.073,"81":0.15888,"83":0.06226,"84":0.01074,"85":0.00644,"86":0.01932,"87":0.11594,"88":0.02576,"89":0.00429,"90":0.0365,"91":0.01932,"92":0.00859,"93":0.00215,"94":0.05153,"95":0.02362,"98":0.04294,"100":0.01718,"101":0.00215,"102":0.01074,"103":0.05368,"105":0.00215,"106":0.00429,"108":0.00859,"109":0.17605,"110":0.08588,"111":0.00644,"113":0.01718,"114":0.05368,"116":0.06441,"118":0.00215,"119":0.08803,"120":0.02147,"121":0.01074,"122":0.00644,"123":0.00859,"124":0.00644,"125":4.06642,"126":0.01074,"127":0.00644,"128":0.05582,"129":0.00429,"130":0.04294,"131":0.02147,"132":0.07729,"133":0.3564,"134":0.04723,"135":0.07085,"136":0.71925,"137":4.70408,"138":0.17605,"139":0.00215,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 63 67 70 71 76 77 78 80 96 97 99 104 107 112 115 117 140 141"},F:{"29":0.00429,"36":0.00215,"46":0.03435,"60":0.01074,"82":0.00215,"83":0.00215,"89":0.04079,"90":0.00429,"95":0.00215,"106":0.00215,"113":0.00429,"114":0.00429,"117":0.00859,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00215,"17":0.00215,"18":0.00859,"84":0.00644,"85":0.00215,"86":0.00215,"92":0.03865,"100":0.00429,"109":0.00859,"114":0.00429,"116":0.00429,"120":0.00215,"122":0.00215,"126":0.00215,"129":0.01288,"131":0.00859,"133":0.01503,"134":0.04938,"135":0.01932,"136":0.24476,"137":2.12338,"138":0.1825,_:"12 14 15 16 79 80 81 83 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 117 118 119 121 123 124 125 127 128 130 132"},E:{"14":0.00215,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.4 15.5 16.2 16.4 16.5 17.0 17.3 26.0","5.1":0.00215,"11.1":0.00215,"12.1":0.00215,"13.1":0.01932,"14.1":0.00429,"15.6":0.07729,"16.0":0.00215,"16.1":0.00215,"16.3":0.02147,"16.6":0.0365,"17.1":0.01932,"17.2":0.00215,"17.4":0.00215,"17.5":0.01074,"17.6":0.073,"18.0":0.00215,"18.1":0.00215,"18.2":0.00215,"18.3":0.01288,"18.4":0.03006,"18.5":0.11379},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0018,"5.0-5.1":0,"6.0-6.1":0.00359,"7.0-7.1":0.00359,"8.1-8.4":0,"9.0-9.2":0.0018,"9.3":0.01077,"10.0-10.2":0.0009,"10.3":0.01795,"11.0-11.2":0.11489,"11.3-11.4":0.00628,"12.0-12.1":0.0018,"12.2-12.5":0.06014,"13.0-13.1":0.0009,"13.2":0.00269,"13.3":0.0018,"13.4-13.7":0.00987,"14.0-14.4":0.02334,"14.5-14.8":0.02334,"15.0-15.1":0.01616,"15.2-15.3":0.01616,"15.4":0.01975,"15.5":0.02154,"15.6-15.8":0.27826,"16.0":0.0368,"16.1":0.0754,"16.2":0.0386,"16.3":0.07091,"16.4":0.01616,"16.5":0.02872,"16.6-16.7":0.34917,"17.0":0.01885,"17.1":0.03321,"17.2":0.02603,"17.3":0.0368,"17.4":0.06552,"17.5":0.13733,"17.6-17.7":0.35904,"18.0":0.08886,"18.1":0.20016,"18.2":0.10592,"18.3":0.45508,"18.4":0.48291,"18.5":5.66115,"26.0":0},P:{"4":0.0318,"20":0.0106,"24":0.0318,"25":0.04241,"26":0.09541,"27":0.11662,"28":0.54068,_:"21 22 23 8.2 9.2 10.1 11.1-11.2 12.0 14.0 16.0 17.0 18.0 19.0","5.0-5.4":0.0212,"6.2-6.4":0.0106,"7.2-7.4":0.13782,"13.0":0.0106,"15.0":0.0106},I:{"0":0.06272,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":2.31517,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00429,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.72564},R:{_:"0"},M:{"0":0.08638},Q:{_:"14.9"},O:{"0":0.18062},H:{"0":0.08}}; +module.exports={C:{"34":0.00239,"47":0.00239,"48":0.00239,"52":0.01432,"71":0.00239,"78":0.00239,"107":0.01909,"112":0.01193,"115":0.1527,"120":0.00239,"123":0.00239,"124":0.00477,"125":1.07609,"126":0.49867,"127":0.00239,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 113 114 116 117 118 119 121 122 128 129 3.5 3.6"},D:{"11":0.00239,"33":0.00239,"38":0.00716,"40":0.00239,"43":0.00239,"49":0.00477,"50":0.00477,"56":0.00239,"58":0.00477,"63":0.00239,"64":0.00239,"65":0.00239,"66":0.10737,"68":0.00477,"69":0.00716,"70":0.00239,"73":0.00954,"74":0.00239,"75":0.00954,"76":0.00239,"79":0.13839,"80":0.00239,"81":0.03579,"83":0.02386,"84":0.02863,"86":0.05249,"87":0.02625,"88":0.02147,"89":0.03102,"90":0.05249,"93":0.01432,"94":0.00239,"95":0.0167,"96":0.00716,"98":0.02386,"99":0.01193,"100":0.00239,"101":0.00239,"102":0.02386,"103":0.11214,"104":0.00477,"105":0.00239,"106":0.00239,"107":0.00239,"108":0.00954,"109":1.63441,"110":0.136,"114":0.03102,"116":0.01909,"117":0.00239,"118":0.00477,"119":0.14316,"120":0.03102,"121":0.02625,"122":0.04056,"123":0.31495,"124":7.32263,"125":2.38839,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 39 41 42 44 45 46 47 48 51 52 53 54 55 57 59 60 61 62 67 71 72 77 78 85 91 92 97 111 112 113 115 126 127 128"},F:{"28":0.00239,"29":0.00239,"36":0.00477,"46":0.00239,"83":0.00239,"89":0.00477,"95":0.07397,"107":0.1026,"108":0.0167,"109":0.78022,"110":0.08351,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01193,"92":0.02386,"109":0.02625,"110":0.00239,"119":0.00239,"120":0.00716,"121":0.00716,"122":0.00954,"123":0.05726,"124":2.56495,"125":1.08086,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 118"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 17.6","13.1":0.02625,"14.1":0.10737,"15.6":0.04295,"16.0":0.05249,"16.1":0.00716,"16.2":0.01193,"16.3":0.07874,"16.4":0.00239,"16.5":0.00477,"16.6":0.0167,"17.0":0.00239,"17.1":0.00239,"17.2":0.00239,"17.3":0.00716,"17.4":0.08112,"17.5":0.02147},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00233,"5.0-5.1":0.00233,"6.0-6.1":0.00583,"7.0-7.1":0.00816,"8.1-8.4":0.00233,"9.0-9.2":0.00583,"9.3":0.02681,"10.0-10.2":0.00466,"10.3":0.04196,"11.0-11.2":0.06177,"11.3-11.4":0.01166,"12.0-12.1":0.00699,"12.2-12.5":0.169,"13.0-13.1":0.0035,"13.2":0.01632,"13.3":0.00816,"13.4-13.7":0.0373,"14.0-14.4":0.06411,"14.5-14.8":0.09907,"15.0-15.1":0.04779,"15.2-15.3":0.05245,"15.4":0.05944,"15.5":0.0746,"15.6-15.8":0.67136,"16.0":0.15269,"16.1":0.3147,"16.2":0.15269,"16.3":0.26458,"16.4":0.05595,"16.5":0.11306,"16.6-16.7":0.90097,"17.0":0.09791,"17.1":0.15968,"17.2":0.16667,"17.3":0.30771,"17.4":6.98747,"17.5":0.49303,"17.6":0},P:{"4":0.15226,"20":0.0203,"21":0.0406,"22":0.08121,"23":0.19286,"24":0.24362,"25":1.02522,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0 18.0","6.2-6.4":0.01015,"7.2-7.4":0.33497,"11.1-11.2":0.0609,"13.0":0.01015,"16.0":0.40603,"17.0":0.0406,"19.0":0.03045},I:{"0":0.01517,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.96835,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00239,_:"6 7 8 9 10 5.5"},S:{"2.5":0.07613,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.51453},R:{_:"0"},M:{"0":0.03807},Q:{"14.9":0.00761},O:{"0":0.08374},H:{"0":0.11}}; diff --git a/node_modules/caniuse-lite/data/regions/GB.js b/node_modules/caniuse-lite/data/regions/GB.js index afac810d7..d902f27d3 100644 --- a/node_modules/caniuse-lite/data/regions/GB.js +++ b/node_modules/caniuse-lite/data/regions/GB.js @@ -1 +1 @@ -module.exports={C:{"48":0.0039,"52":0.05853,"59":0.02731,"78":0.0078,"101":0.0039,"115":0.09755,"125":0.0039,"128":0.03122,"132":0.0078,"133":0.0039,"134":0.01171,"135":0.01171,"136":0.01951,"137":0.01561,"138":0.07414,"139":1.13158,"140":0.13657,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 141 142 143 3.5 3.6"},D:{"11":0.0039,"13":0.0039,"39":0.01171,"40":0.01171,"41":0.01171,"42":0.01171,"43":0.01171,"44":0.01171,"45":0.01171,"46":0.01171,"47":0.01171,"48":0.01561,"49":0.01561,"50":0.01171,"51":0.01171,"52":0.01561,"53":0.01171,"54":0.01171,"55":0.01171,"56":0.01171,"57":0.01171,"58":0.01171,"59":0.01171,"60":0.01171,"65":0.0039,"66":0.10926,"74":0.0078,"75":0.0039,"76":0.0078,"77":0.0039,"79":0.01171,"80":0.0039,"81":0.01171,"84":0.0039,"85":0.0078,"86":0.0039,"87":0.02341,"88":0.02341,"89":0.0039,"90":0.0039,"91":0.01171,"92":0.0039,"93":0.01171,"94":0.0039,"98":0.01171,"101":0.09755,"102":0.0039,"103":0.09365,"104":0.01951,"105":0.0039,"106":0.0039,"107":0.01951,"108":0.01951,"109":0.37849,"110":0.0039,"111":0.0078,"112":0.0078,"113":0.0039,"114":0.02341,"115":0.03512,"116":0.08194,"117":0.0039,"118":0.0039,"119":0.01951,"120":0.34728,"121":0.0078,"122":0.07414,"123":0.01171,"124":0.02731,"125":0.49946,"126":0.08194,"127":0.06243,"128":0.09365,"129":0.01951,"130":0.05853,"131":0.22241,"132":0.1873,"133":0.18339,"134":0.14047,"135":0.31996,"136":2.45046,"137":12.03767,"138":0.46824,"139":0.0039,_:"4 5 6 7 8 9 10 12 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 61 62 63 64 67 68 69 70 71 72 73 78 83 95 96 97 99 100 140 141"},F:{"46":0.0078,"89":0.01171,"90":0.0078,"95":0.01171,"114":0.0039,"116":0.0078,"117":0.0039,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01171,"85":0.0039,"92":0.0039,"109":0.03122,"120":0.0039,"122":0.02341,"124":0.0039,"126":0.0039,"127":0.0039,"128":0.0039,"129":0.0078,"130":0.0078,"131":0.02341,"132":0.01171,"133":0.01951,"134":0.08584,"135":0.05463,"136":1.15499,"137":6.94166,"138":0.44093,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 123 125"},E:{"13":0.0039,"14":0.01951,"15":0.0039,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.02341,"12.1":0.0078,"13.1":0.04292,"14.1":0.06243,"15.1":0.0078,"15.2-15.3":0.0078,"15.4":0.01171,"15.5":0.02731,"15.6":0.34728,"16.0":0.05853,"16.1":0.03122,"16.2":0.03122,"16.3":0.06633,"16.4":0.01561,"16.5":0.02341,"16.6":0.49946,"17.0":0.01951,"17.1":0.41751,"17.2":0.04682,"17.3":0.02731,"17.4":0.05853,"17.5":0.12877,"17.6":0.33557,"18.0":0.02731,"18.1":0.09755,"18.2":0.03902,"18.3":0.27704,"18.4":0.22241,"18.5":3.46107,"26.0":0.0039},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00517,"5.0-5.1":0,"6.0-6.1":0.01034,"7.0-7.1":0.01034,"8.1-8.4":0,"9.0-9.2":0.00517,"9.3":0.03103,"10.0-10.2":0.00259,"10.3":0.05171,"11.0-11.2":0.33095,"11.3-11.4":0.0181,"12.0-12.1":0.00517,"12.2-12.5":0.17323,"13.0-13.1":0.00259,"13.2":0.00776,"13.3":0.00517,"13.4-13.7":0.02844,"14.0-14.4":0.06722,"14.5-14.8":0.06722,"15.0-15.1":0.04654,"15.2-15.3":0.04654,"15.4":0.05688,"15.5":0.06205,"15.6-15.8":0.80152,"16.0":0.10601,"16.1":0.21719,"16.2":0.11118,"16.3":0.20426,"16.4":0.04654,"16.5":0.08274,"16.6-16.7":1.00578,"17.0":0.0543,"17.1":0.09567,"17.2":0.07498,"17.3":0.10601,"17.4":0.18875,"17.5":0.39559,"17.6-17.7":1.03422,"18.0":0.25597,"18.1":0.57658,"18.2":0.3051,"18.3":1.31087,"18.4":1.39103,"18.5":16.30708,"26.0":0},P:{"20":0.01096,"21":0.03287,"22":0.03287,"23":0.09861,"24":0.04383,"25":0.05478,"26":0.09861,"27":0.17531,"28":4.15258,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01096,"13.0":0.01096,"17.0":0.01096,"19.0":0.01096},I:{"0":0.01826,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.18294,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00502,"9":0.00502,"10":0.00502,"11":0.02007,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.91677},R:{_:"0"},M:{"0":0.35368},Q:{"14.9":0.0061},O:{"0":0.07318},H:{"0":0}}; +module.exports={C:{"48":0.00426,"52":0.01277,"56":0.00426,"59":0.02128,"60":0.00851,"65":0.01277,"66":0.01702,"67":0.00426,"78":0.02128,"83":0.00426,"88":0.01277,"91":0.00426,"93":0.00426,"94":0.00426,"102":0.00426,"103":0.00426,"105":0.00426,"108":0.00426,"113":0.00426,"115":0.15318,"118":0.00851,"119":0.00426,"120":0.00426,"121":0.00851,"122":0.00426,"123":0.01277,"124":0.2085,"125":0.69782,"126":0.68506,"127":0.00426,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 61 62 63 64 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 92 95 96 97 98 99 100 101 104 106 107 109 110 111 112 114 116 117 128 129 3.5 3.6"},D:{"38":0.00426,"41":0.00426,"49":0.01277,"51":0.00426,"52":0.00426,"65":0.00426,"66":0.09361,"70":0.00426,"71":0.00426,"72":0.02553,"73":0.0383,"74":0.00851,"75":0.00426,"76":0.01277,"77":0.00426,"79":0.01702,"80":0.00851,"81":0.02128,"83":0.01277,"84":0.00851,"85":0.00851,"86":0.02553,"87":0.02979,"88":0.01277,"89":0.01277,"90":0.00426,"91":0.01277,"92":0.00851,"93":0.0383,"94":0.02128,"95":0.00851,"96":0.05106,"97":0.00851,"98":0.00426,"99":0.00851,"100":0.02128,"101":0.0383,"102":0.03404,"103":0.24254,"104":0.02979,"105":0.01702,"106":0.01277,"107":0.02553,"108":0.02553,"109":0.69357,"110":0.01702,"111":0.02979,"112":0.02553,"113":0.04681,"114":0.09787,"115":0.07659,"116":0.19999,"117":0.02979,"118":0.0383,"119":0.07234,"120":0.12765,"121":0.17446,"122":0.38295,"123":1.62116,"124":14.27553,"125":4.79964,"126":0.00851,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 50 53 54 55 56 57 58 59 60 61 62 63 64 67 68 69 78 127 128"},F:{"46":0.00851,"58":0.00426,"95":0.01702,"102":0.00426,"106":0.00851,"107":0.22126,"108":0.01702,"109":0.73186,"110":0.02979,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01277,"18":0.00426,"85":0.00426,"92":0.00426,"95":0.00426,"107":0.00426,"108":0.00426,"109":0.06383,"110":0.00426,"112":0.00426,"113":0.00426,"114":0.00851,"115":0.00426,"116":0.00426,"117":0.00851,"118":0.00426,"119":0.01277,"120":0.02128,"121":0.02128,"122":0.09787,"123":0.27658,"124":5.28046,"125":2.83383,_:"12 13 14 15 16 79 80 81 83 84 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 111"},E:{"12":0.01277,"13":0.00426,"14":0.04681,"15":0.00851,_:"0 4 5 6 7 8 9 10 11 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.02553,"12.1":0.02128,"13.1":0.08085,"14.1":0.14893,"15.1":0.01702,"15.2-15.3":0.01277,"15.4":0.02979,"15.5":0.05106,"15.6":0.5106,"16.0":0.05957,"16.1":0.07234,"16.2":0.07659,"16.3":0.1702,"16.4":0.04681,"16.5":0.08085,"16.6":0.69782,"17.0":0.06383,"17.1":0.10212,"17.2":0.11914,"17.3":0.14042,"17.4":3.32316,"17.5":0.33189},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00499,"5.0-5.1":0.00499,"6.0-6.1":0.01247,"7.0-7.1":0.01745,"8.1-8.4":0.00499,"9.0-9.2":0.01247,"9.3":0.05735,"10.0-10.2":0.00997,"10.3":0.08976,"11.0-11.2":0.13215,"11.3-11.4":0.02493,"12.0-12.1":0.01496,"12.2-12.5":0.36155,"13.0-13.1":0.00748,"13.2":0.03491,"13.3":0.01745,"13.4-13.7":0.07979,"14.0-14.4":0.13714,"14.5-14.8":0.21194,"15.0-15.1":0.10223,"15.2-15.3":0.11221,"15.4":0.12717,"15.5":0.15958,"15.6-15.8":1.43624,"16.0":0.32664,"16.1":0.67324,"16.2":0.32664,"16.3":0.56602,"16.4":0.11969,"16.5":0.24187,"16.6-16.7":1.92745,"17.0":0.20945,"17.1":0.34161,"17.2":0.35657,"17.3":0.65828,"17.4":14.94836,"17.5":1.05474,"17.6":0},P:{"4":0.03307,"20":0.03307,"21":0.06615,"22":0.06615,"23":0.11025,"24":0.25356,"25":3.88064,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0","13.0":0.01102,"16.0":0.01102,"17.0":0.01102,"18.0":0.01102,"19.0":0.02205},I:{"0":0.03433,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.24125,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00912,"9":0.00456,"11":0.05015,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":27.25658},R:{_:"0"},M:{"0":0.33315},Q:{"14.9":0.00574},O:{"0":0.0919},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GD.js b/node_modules/caniuse-lite/data/regions/GD.js index d3b076d67..badb3da52 100644 --- a/node_modules/caniuse-lite/data/regions/GD.js +++ b/node_modules/caniuse-lite/data/regions/GD.js @@ -1 +1 @@ -module.exports={C:{"128":0.03999,"134":0.004,"136":0.012,"137":0.004,"138":0.02799,"139":0.26393,"140":0.08398,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 141 142 143 3.5 3.6"},D:{"39":0.016,"40":0.02,"41":0.016,"42":0.008,"43":0.016,"44":0.016,"45":0.016,"46":0.016,"47":0.02399,"48":0.008,"49":0.012,"50":0.02,"51":0.03199,"52":0.012,"53":0.004,"54":0.03999,"55":0.016,"56":0.016,"57":0.02799,"58":0.016,"59":0.02399,"60":0.016,"69":0.004,"70":0.008,"76":0.004,"77":0.008,"79":0.004,"86":0.016,"90":0.004,"91":0.004,"93":0.016,"99":0.004,"103":0.15596,"104":0.36791,"108":0.06798,"109":0.13597,"115":0.016,"116":0.004,"121":0.004,"122":0.02399,"124":0.02399,"125":12.92477,"126":0.016,"128":0.05199,"131":0.02399,"132":0.09598,"133":0.07998,"134":0.03199,"135":0.09598,"136":2.44339,"137":10.30142,"138":0.43989,"139":0.04399,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 75 78 80 81 83 84 85 87 88 89 92 94 95 96 97 98 100 101 102 105 106 107 110 111 112 113 114 117 118 119 120 123 127 129 130 140 141"},F:{"89":0.08398,"95":0.03199,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.02399,"114":0.004,"118":0.004,"122":0.004,"124":0.016,"128":0.008,"130":0.004,"131":0.016,"134":0.02399,"135":0.02399,"136":0.93177,"137":5.43064,"138":0.32392,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 119 120 121 123 125 126 127 129 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 18.0","13.1":0.004,"14.1":0.004,"15.6":0.10797,"16.1":0.02399,"16.3":0.012,"16.5":0.02,"16.6":0.18795,"17.0":0.27193,"17.1":0.21595,"17.2":0.004,"17.3":0.004,"17.4":0.008,"17.5":0.02,"17.6":0.11997,"18.1":0.05999,"18.2":0.02399,"18.3":0.04799,"18.4":0.10397,"18.5":1.01975,"26.0":0.016},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00226,"5.0-5.1":0,"6.0-6.1":0.00452,"7.0-7.1":0.00452,"8.1-8.4":0,"9.0-9.2":0.00226,"9.3":0.01357,"10.0-10.2":0.00113,"10.3":0.02262,"11.0-11.2":0.14474,"11.3-11.4":0.00792,"12.0-12.1":0.00226,"12.2-12.5":0.07576,"13.0-13.1":0.00113,"13.2":0.00339,"13.3":0.00226,"13.4-13.7":0.01244,"14.0-14.4":0.0294,"14.5-14.8":0.0294,"15.0-15.1":0.02035,"15.2-15.3":0.02035,"15.4":0.02488,"15.5":0.02714,"15.6-15.8":0.35054,"16.0":0.04636,"16.1":0.09499,"16.2":0.04862,"16.3":0.08933,"16.4":0.02035,"16.5":0.03618,"16.6-16.7":0.43987,"17.0":0.02375,"17.1":0.04184,"17.2":0.03279,"17.3":0.04636,"17.4":0.08255,"17.5":0.17301,"17.6-17.7":0.45231,"18.0":0.11195,"18.1":0.25216,"18.2":0.13343,"18.3":0.5733,"18.4":0.60836,"18.5":7.13181,"26.0":0},P:{"4":0.03126,"21":0.01042,"22":0.01042,"23":0.01042,"24":0.03126,"25":0.01042,"26":0.03126,"27":0.77105,"28":2.42777,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02084},I:{"0":0.01198,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.40414,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.33842},R:{_:"0"},M:{"0":0.18606},Q:{_:"14.9"},O:{"0":0.006},H:{"0":0.01}}; +module.exports={C:{"52":0.01262,"78":0.00421,"102":0.02104,"103":0.04207,"115":0.26083,"122":0.00421,"123":0.00421,"124":0.00841,"125":0.52588,"126":0.64367,"127":0.00421,"128":0.00421,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 129 3.5 3.6"},D:{"31":0.00421,"47":0.00421,"49":0.00421,"65":0.01262,"69":0.00841,"70":0.00421,"73":0.00421,"76":0.00841,"79":0.00421,"81":0.00421,"83":0.01262,"85":0.00421,"87":0.01683,"88":0.00841,"90":0.00841,"92":0.03366,"93":0.00841,"94":0.00841,"95":0.00841,"100":0.02524,"103":0.13883,"104":0.06311,"105":0.00421,"108":0.01683,"109":1.15272,"110":0.00421,"111":0.05048,"112":0.02104,"114":0.02524,"115":0.01262,"116":0.0589,"117":0.01262,"118":0.02104,"119":0.01262,"120":0.04628,"121":0.10097,"122":0.71519,"123":1.07699,"124":15.11996,"125":5.48593,"126":0.01683,"127":0.00421,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 71 72 74 75 77 78 80 84 86 89 91 96 97 98 99 101 102 106 107 113 128"},F:{"28":0.00421,"75":0.04628,"107":0.07573,"109":0.9592,"110":0.03366,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00421,"92":0.02104,"109":0.07993,"112":0.01683,"114":0.00841,"115":0.00421,"121":0.05048,"122":0.01683,"123":0.09676,"124":3.63485,"125":1.93522,_:"12 13 14 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 116 117 118 119 120"},E:{"14":0.00421,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 16.2 17.6","13.1":0.02104,"14.1":0.12621,"15.2-15.3":0.00421,"15.4":0.02104,"15.5":0.01262,"15.6":0.36601,"16.0":0.00841,"16.1":0.05469,"16.3":0.04207,"16.4":0.01262,"16.5":0.06311,"16.6":0.19352,"17.0":0.14725,"17.1":0.08414,"17.2":0.1178,"17.3":0.07993,"17.4":1.34624,"17.5":0.10938},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00345,"5.0-5.1":0.00345,"6.0-6.1":0.00862,"7.0-7.1":0.01207,"8.1-8.4":0.00345,"9.0-9.2":0.00862,"9.3":0.03965,"10.0-10.2":0.00689,"10.3":0.06205,"11.0-11.2":0.09136,"11.3-11.4":0.01724,"12.0-12.1":0.01034,"12.2-12.5":0.24994,"13.0-13.1":0.00517,"13.2":0.02413,"13.3":0.01207,"13.4-13.7":0.05516,"14.0-14.4":0.0948,"14.5-14.8":0.14651,"15.0-15.1":0.07067,"15.2-15.3":0.07757,"15.4":0.08791,"15.5":0.11032,"15.6-15.8":0.99285,"16.0":0.2258,"16.1":0.4654,"16.2":0.2258,"16.3":0.39128,"16.4":0.08274,"16.5":0.1672,"16.6-16.7":1.33242,"17.0":0.14479,"17.1":0.23615,"17.2":0.24649,"17.3":0.45506,"17.4":10.33358,"17.5":0.72912,"17.6":0},P:{"4":0.03278,"21":0.12018,"22":0.02185,"23":0.07648,"24":0.24036,"25":2.84061,_:"20 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 17.0","5.0-5.4":0.02185,"7.2-7.4":0.29499,"11.1-11.2":0.01093,"13.0":0.01093,"16.0":0.01093,"18.0":0.03278,"19.0":0.02185},I:{"0":0.01154,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.4344,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.02209,"11":0.00736,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.26522},R:{_:"0"},M:{"0":0.24906},Q:{_:"14.9"},O:{"0":0.11005},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GE.js b/node_modules/caniuse-lite/data/regions/GE.js index 22f44df70..5af201de0 100644 --- a/node_modules/caniuse-lite/data/regions/GE.js +++ b/node_modules/caniuse-lite/data/regions/GE.js @@ -1 +1 @@ -module.exports={C:{"52":0.01632,"68":0.01224,"78":0.00816,"113":0.06936,"115":0.18768,"118":0.01224,"125":0.00408,"128":0.01632,"134":0.00408,"136":0.00408,"137":0.02448,"138":0.03264,"139":0.65688,"140":0.09384,"141":0.00408,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 119 120 121 122 123 124 126 127 129 130 131 132 133 135 142 143 3.5 3.6"},D:{"11":0.00408,"38":0.00408,"39":0.00816,"40":0.00816,"41":0.01224,"42":0.00816,"43":0.00816,"44":0.00816,"45":0.00816,"46":0.00816,"47":0.01632,"48":0.00816,"49":0.01632,"50":0.00816,"51":0.00816,"52":0.00816,"53":0.00816,"54":0.00816,"55":0.00816,"56":0.01224,"57":0.00816,"58":0.00816,"59":0.00816,"60":0.00816,"67":0.00408,"68":0.00408,"69":0.00816,"70":0.00816,"71":0.00408,"72":0.01224,"73":0.0204,"76":0.00408,"78":0.00408,"79":0.21624,"80":0.00408,"81":0.00408,"83":0.10608,"85":0.00408,"86":0.00408,"87":0.3264,"88":0.01632,"90":0.00408,"91":0.04488,"92":0.00816,"93":0.00408,"94":0.0612,"95":0.00408,"97":0.00408,"98":0.03672,"100":0.02856,"101":0.01224,"102":0.01224,"103":0.0408,"104":0.08976,"105":0.00408,"106":0.02448,"107":0.00816,"108":0.12648,"109":2.91312,"110":0.01632,"111":0.26112,"112":0.01632,"113":0.0204,"114":0.0204,"115":0.00816,"116":0.04896,"118":0.01632,"119":0.01632,"120":0.08568,"121":0.02448,"122":0.0408,"123":0.02856,"124":0.0408,"125":1.0608,"126":0.06528,"127":0.04488,"128":0.0612,"129":0.01632,"130":0.05304,"131":0.11832,"132":0.05712,"133":0.08976,"134":0.1428,"135":0.26112,"136":2.39904,"137":18.84552,"138":0.81192,"139":0.01224,_:"4 5 6 7 8 9 10 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 61 62 63 64 65 66 74 75 77 84 89 96 99 117 140 141"},F:{"28":0.00408,"40":0.00408,"42":0.00408,"46":0.09792,"49":0.00408,"69":0.00408,"79":0.00408,"84":0.00408,"85":0.01224,"86":0.02448,"89":0.01224,"90":0.00408,"93":0.00408,"94":0.00408,"95":0.306,"102":0.00408,"114":0.00816,"116":0.01224,"117":0.00816,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 41 43 44 45 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 80 81 82 83 87 88 91 92 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.01224,"14":0.07344,"16":0.00816,"18":0.00408,"92":0.01224,"109":0.02856,"114":0.00408,"119":0.00408,"122":0.00408,"125":0.00408,"126":0.00816,"128":0.01632,"129":0.00816,"130":0.00408,"131":0.01632,"132":0.00816,"133":0.01224,"134":0.08976,"135":0.03264,"136":0.29784,"137":2.14608,"138":0.17136,_:"12 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 123 124 127"},E:{"12":0.00408,"14":0.00408,_:"0 4 5 6 7 8 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00408,"13.1":0.02448,"14.1":0.01224,"15.1":0.00408,"15.2-15.3":0.00408,"15.4":0.00408,"15.5":0.00408,"15.6":0.05712,"16.0":0.00408,"16.1":0.01224,"16.2":0.01632,"16.3":0.00408,"16.4":0.01224,"16.5":0.01632,"16.6":0.06528,"17.0":0.00408,"17.1":0.04488,"17.2":0.00408,"17.3":0.00816,"17.4":0.01632,"17.5":0.03672,"17.6":0.10608,"18.0":0.01632,"18.1":0.03264,"18.2":0.02448,"18.3":0.05712,"18.4":0.08568,"18.5":0.5508,"26.0":0.00408},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00228,"5.0-5.1":0,"6.0-6.1":0.00457,"7.0-7.1":0.00457,"8.1-8.4":0,"9.0-9.2":0.00228,"9.3":0.0137,"10.0-10.2":0.00114,"10.3":0.02284,"11.0-11.2":0.14617,"11.3-11.4":0.00799,"12.0-12.1":0.00228,"12.2-12.5":0.07651,"13.0-13.1":0.00114,"13.2":0.00343,"13.3":0.00228,"13.4-13.7":0.01256,"14.0-14.4":0.02969,"14.5-14.8":0.02969,"15.0-15.1":0.02056,"15.2-15.3":0.02056,"15.4":0.02512,"15.5":0.02741,"15.6-15.8":0.35401,"16.0":0.04682,"16.1":0.09593,"16.2":0.0491,"16.3":0.09022,"16.4":0.02056,"16.5":0.03654,"16.6-16.7":0.44423,"17.0":0.02398,"17.1":0.04225,"17.2":0.03312,"17.3":0.04682,"17.4":0.08336,"17.5":0.17472,"17.6-17.7":0.45679,"18.0":0.11305,"18.1":0.25466,"18.2":0.13475,"18.3":0.57898,"18.4":0.61438,"18.5":7.20239,"26.0":0},P:{"4":0.34137,"22":0.02134,"23":0.032,"24":0.05334,"25":0.05334,"26":0.07467,"27":0.16002,"28":1.21612,_:"20 21 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.06401,"6.2-6.4":0.05334,"7.2-7.4":0.06401,"11.1-11.2":0.01067,"19.0":0.01067},I:{"0":0.04728,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.40256,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00816,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.82472},R:{_:"0"},M:{"0":0.12432},Q:{_:"14.9"},O:{"0":0.04736},H:{"0":0}}; +module.exports={C:{"38":0.00407,"52":0.0122,"68":0.01627,"78":0.04067,"88":0.01627,"100":0.00407,"103":0.00407,"107":0.00407,"110":0.00407,"113":0.00407,"115":0.27656,"118":0.0122,"119":0.00407,"123":0.00407,"124":0.01627,"125":0.4189,"126":0.33349,"127":0.00407,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 101 102 104 105 106 108 109 111 112 114 116 117 120 121 122 128 129 3.5 3.6"},D:{"11":0.00407,"38":0.00407,"39":0.0122,"42":0.00407,"45":0.00407,"46":0.00407,"47":0.0244,"49":0.03254,"51":0.00407,"56":0.00407,"61":0.00407,"63":0.00813,"66":0.00407,"67":0.00813,"68":0.0122,"69":0.00407,"70":0.00407,"71":0.00813,"73":0.04067,"75":0.00813,"76":0.04067,"78":0.02034,"79":0.3579,"80":0.00407,"81":0.00407,"83":0.17488,"85":0.00407,"86":0.0122,"87":0.30096,"88":0.07727,"89":0.00407,"90":0.00813,"91":0.00407,"92":0.0122,"93":0.00407,"94":0.06507,"95":0.00813,"96":0.00813,"97":0.00813,"98":0.05694,"99":0.00813,"100":0.01627,"101":0.00407,"102":0.03254,"103":0.0488,"104":0.00813,"105":0.01627,"106":0.0366,"107":0.00813,"108":0.0366,"109":4.79093,"110":0.02034,"111":0.0122,"112":0.0122,"113":0.01627,"114":0.0244,"115":0.02034,"116":0.15048,"117":0.01627,"118":0.02034,"119":0.04474,"120":0.17895,"121":0.16675,"122":0.23995,"123":0.62632,"124":16.01178,"125":6.08017,"126":0.00407,_:"4 5 6 7 8 9 10 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 40 41 43 44 48 50 52 53 54 55 57 58 59 60 62 64 65 72 74 77 84 127 128"},F:{"28":0.01627,"36":0.00407,"46":0.08947,"66":0.01627,"67":0.00407,"79":0.01627,"82":0.00407,"85":0.02034,"86":0.00813,"87":0.0122,"94":0.00813,"95":0.61818,"102":0.00407,"104":0.00407,"105":0.00407,"106":0.00813,"107":0.23995,"108":0.02847,"109":1.80168,"110":0.11794,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 88 89 90 91 92 93 96 97 98 99 100 101 103 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00407,"13":0.01627,"14":0.02034,"15":0.00407,"16":0.0122,"18":0.0244,"92":0.00813,"98":0.00407,"103":0.00407,"108":0.00407,"109":0.0122,"110":0.00407,"111":0.00407,"112":0.00407,"113":0.00407,"114":0.00813,"115":0.00407,"116":0.04474,"117":0.00407,"118":0.00813,"119":0.02034,"120":0.04067,"121":0.05287,"122":0.04474,"123":0.15455,"124":1.96029,"125":0.89881,_:"17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 104 105 106 107"},E:{"9":0.00407,"14":0.00813,"15":0.00407,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00813,"13.1":0.01627,"14.1":0.06507,"15.1":0.00407,"15.2-15.3":0.00407,"15.4":0.0122,"15.5":0.0122,"15.6":0.09354,"16.0":0.02034,"16.1":0.05694,"16.2":0.01627,"16.3":0.0488,"16.4":0.01627,"16.5":0.12201,"16.6":0.10981,"17.0":0.04474,"17.1":0.04067,"17.2":0.0366,"17.3":0.0488,"17.4":0.48804,"17.5":0.07321},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00213,"5.0-5.1":0.00213,"6.0-6.1":0.00532,"7.0-7.1":0.00744,"8.1-8.4":0.00213,"9.0-9.2":0.00532,"9.3":0.02445,"10.0-10.2":0.00425,"10.3":0.03827,"11.0-11.2":0.05635,"11.3-11.4":0.01063,"12.0-12.1":0.00638,"12.2-12.5":0.15416,"13.0-13.1":0.00319,"13.2":0.01488,"13.3":0.00744,"13.4-13.7":0.03402,"14.0-14.4":0.05848,"14.5-14.8":0.09037,"15.0-15.1":0.04359,"15.2-15.3":0.04784,"15.4":0.05422,"15.5":0.06804,"15.6-15.8":0.6124,"16.0":0.13928,"16.1":0.28706,"16.2":0.13928,"16.3":0.24134,"16.4":0.05103,"16.5":0.10313,"16.6-16.7":0.82185,"17.0":0.08931,"17.1":0.14566,"17.2":0.15204,"17.3":0.28068,"17.4":6.37385,"17.5":0.44973,"17.6":0},P:{"4":0.64076,"20":0.02136,"21":0.04272,"22":0.09611,"23":0.11747,"24":0.14951,"25":1.13202,"5.0-5.4":0.0534,"6.2-6.4":0.13883,"7.2-7.4":0.0534,_:"8.2 10.1 12.0 14.0 15.0","9.2":0.01068,"11.1-11.2":0.01068,"13.0":0.02136,"16.0":0.01068,"17.0":0.02136,"18.0":0.01068,"19.0":0.03204},I:{"0":0.15957,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00035},K:{"0":0.37971,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02034,"9":0.00407,"10":0.00407,"11":0.0244,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.8008},R:{_:"0"},M:{"0":0.13646},Q:{_:"14.9"},O:{"0":0.02373},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GF.js b/node_modules/caniuse-lite/data/regions/GF.js index 2fac56654..4d8015289 100644 --- a/node_modules/caniuse-lite/data/regions/GF.js +++ b/node_modules/caniuse-lite/data/regions/GF.js @@ -1 +1 @@ -module.exports={C:{"78":0.00583,"91":0.00292,"113":0.00583,"115":0.39366,"119":0.02624,"126":0.00292,"128":0.13122,"130":0.00292,"135":0.02333,"136":0.00292,"137":0.02916,"138":0.02333,"139":1.47841,"140":0.17204,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 120 121 122 123 124 125 127 129 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.00875,"40":0.00583,"41":0.01166,"42":0.02041,"43":0.00583,"44":0.00875,"45":0.02041,"46":0.0175,"47":0.01458,"48":0.02041,"49":0.00583,"50":0.00875,"51":0.00292,"52":0.00583,"53":0.01166,"54":0.02041,"55":0.02041,"56":0.01458,"57":0.01458,"58":0.01458,"59":0.01166,"60":0.01166,"70":0.02041,"79":0.02041,"83":0.00875,"86":0.00292,"87":0.04082,"88":0.04957,"97":0.00292,"98":0.00292,"100":0.00875,"102":0.00583,"103":0.03208,"104":0.27702,"105":0.00583,"108":0.00875,"109":0.09331,"110":0.05832,"111":0.0175,"114":0.02041,"116":0.00875,"118":0.00583,"119":0.02041,"120":0.02916,"122":0.00875,"123":0.00292,"125":1.17515,"126":0.01166,"127":0.00292,"128":0.00292,"129":0.03499,"130":0.00292,"131":0.01458,"132":0.0554,"133":0.11372,"134":0.09331,"135":0.06124,"136":1.3851,"137":7.62534,"138":0.23911,"139":0.00583,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 81 84 85 89 90 91 92 93 94 95 96 99 101 106 107 112 113 115 117 121 124 140 141"},F:{"40":0.00292,"46":0.02333,"89":0.01166,"90":0.00875,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"114":0.00292,"119":0.00292,"122":0.00292,"125":0.0175,"128":0.01166,"129":0.0175,"131":0.00292,"132":0.04957,"133":0.51905,"134":0.17788,"135":0.0904,"136":0.68234,"137":4.66268,"138":0.16621,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 120 121 123 124 126 127 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.5 17.0","13.1":0.02333,"14.1":3.02098,"15.1":0.00292,"15.4":0.00583,"15.6":0.06124,"16.0":0.02041,"16.1":0.02916,"16.2":0.00292,"16.3":0.00583,"16.4":0.00292,"16.5":0.00292,"16.6":0.25952,"17.1":0.13705,"17.2":0.02041,"17.3":0.02041,"17.4":0.00583,"17.5":0.02916,"17.6":0.13122,"18.0":0.00583,"18.1":0.04082,"18.2":0.03499,"18.3":0.17788,"18.4":0.10789,"18.5":1.09642,"26.0":0.00292},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0022,"5.0-5.1":0,"6.0-6.1":0.00439,"7.0-7.1":0.00439,"8.1-8.4":0,"9.0-9.2":0.0022,"9.3":0.01318,"10.0-10.2":0.0011,"10.3":0.02196,"11.0-11.2":0.14055,"11.3-11.4":0.00769,"12.0-12.1":0.0022,"12.2-12.5":0.07357,"13.0-13.1":0.0011,"13.2":0.00329,"13.3":0.0022,"13.4-13.7":0.01208,"14.0-14.4":0.02855,"14.5-14.8":0.02855,"15.0-15.1":0.01976,"15.2-15.3":0.01976,"15.4":0.02416,"15.5":0.02635,"15.6-15.8":0.34039,"16.0":0.04502,"16.1":0.09223,"16.2":0.04721,"16.3":0.08674,"16.4":0.01976,"16.5":0.03514,"16.6-16.7":0.42713,"17.0":0.02306,"17.1":0.04063,"17.2":0.03184,"17.3":0.04502,"17.4":0.08016,"17.5":0.168,"17.6-17.7":0.43921,"18.0":0.1087,"18.1":0.24486,"18.2":0.12957,"18.3":0.5567,"18.4":0.59073,"18.5":6.92521,"26.0":0},P:{"4":0.03211,"21":0.0107,"22":0.02141,"23":0.05352,"24":0.05352,"25":0.04282,"26":0.03211,"27":0.16056,"28":1.89461,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.05352,"17.0":0.0107,"19.0":0.06422},I:{"0":0.02122,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.18418,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.06865},R:{_:"0"},M:{"0":0.32586},Q:{_:"14.9"},O:{"0":0.00708},H:{"0":0}}; +module.exports={C:{"78":0.10325,"88":0.03442,"91":0.0153,"101":0.01147,"102":0.00765,"114":0.00382,"115":0.60037,"116":0.00382,"118":0.05354,"119":0.03442,"120":0.01147,"121":0.00765,"122":0.02294,"123":0.04206,"124":0.16061,"125":2.52002,"126":1.90818,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 103 104 105 106 107 108 109 110 111 112 113 117 127 128 129 3.5 3.6"},D:{"47":0.00765,"67":0.00382,"69":0.01147,"75":0.00382,"76":0.27915,"79":0.00382,"86":0.05354,"87":0.02294,"88":0.00382,"93":0.02294,"94":0.13384,"97":0.00382,"99":0.01147,"103":0.03059,"105":0.01147,"109":0.56213,"111":0.02294,"113":0.00382,"114":0.0956,"115":0.00765,"116":0.05354,"118":0.02294,"119":0.05736,"120":0.06501,"121":0.12619,"122":0.21797,"123":0.56595,"124":12.16032,"125":4.00373,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 70 71 72 73 74 77 78 80 81 83 84 85 89 90 91 92 95 96 98 100 101 102 104 106 107 108 110 112 117 126 127 128"},F:{"40":0.00765,"46":0.01147,"106":0.00382,"107":0.21414,"108":0.00382,"109":0.956,"110":0.05354,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00382,"17":0.00382,"83":0.01147,"92":0.11472,"100":0.01147,"103":0.00382,"108":0.01912,"109":0.10325,"111":0.00382,"112":0.00765,"114":0.0153,"115":0.00382,"116":0.00382,"117":0.01147,"119":0.03059,"120":0.06883,"121":0.03442,"122":0.03059,"123":0.16826,"124":6.09546,"125":2.54678,_:"12 13 14 15 18 79 80 81 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 107 110 113 118"},E:{"14":0.02294,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.04589,"14.1":0.14914,"15.1":0.03059,"15.2-15.3":0.00382,"15.4":0.09178,"15.5":0.0153,"15.6":0.19502,"16.0":0.06118,"16.1":0.0956,"16.2":0.0153,"16.3":0.06118,"16.4":0.02294,"16.5":0.05736,"16.6":0.23326,"17.0":0.0153,"17.1":0.09178,"17.2":0.07266,"17.3":0.11854,"17.4":0.95218,"17.5":0.15296},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00296,"5.0-5.1":0.00296,"6.0-6.1":0.0074,"7.0-7.1":0.01036,"8.1-8.4":0.00296,"9.0-9.2":0.0074,"9.3":0.03403,"10.0-10.2":0.00592,"10.3":0.05326,"11.0-11.2":0.07841,"11.3-11.4":0.01479,"12.0-12.1":0.00888,"12.2-12.5":0.21451,"13.0-13.1":0.00444,"13.2":0.02071,"13.3":0.01036,"13.4-13.7":0.04734,"14.0-14.4":0.08137,"14.5-14.8":0.12575,"15.0-15.1":0.06066,"15.2-15.3":0.06657,"15.4":0.07545,"15.5":0.09468,"15.6-15.8":0.85213,"16.0":0.1938,"16.1":0.39944,"16.2":0.1938,"16.3":0.33582,"16.4":0.07101,"16.5":0.1435,"16.6-16.7":1.14357,"17.0":0.12427,"17.1":0.20268,"17.2":0.21155,"17.3":0.39056,"17.4":8.86895,"17.5":0.62578,"17.6":0},P:{"4":0.02096,"20":0.06288,"21":0.06288,"22":0.20959,"23":0.11528,"24":0.14672,"25":2.9448,"5.0-5.4":0.02096,_:"6.2-6.4 8.2 9.2 10.1 12.0 15.0","7.2-7.4":0.07336,"11.1-11.2":0.04192,"13.0":0.12576,"14.0":0.01048,"16.0":0.01048,"17.0":0.01048,"18.0":0.01048,"19.0":0.1048},I:{"0":0.01231,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.24708,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00382,"11":0.00382,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.48985},R:{_:"0"},M:{"0":0.63005},Q:{"14.9":0.00618},O:{"0":0.01853},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GG.js b/node_modules/caniuse-lite/data/regions/GG.js index 56f1e0105..d55ebf3ce 100644 --- a/node_modules/caniuse-lite/data/regions/GG.js +++ b/node_modules/caniuse-lite/data/regions/GG.js @@ -1 +1 @@ -module.exports={C:{"115":0.0497,"128":0.0142,"136":0.00355,"137":0.0213,"138":0.0355,"139":0.3479,"140":0.06035,"141":0.0142,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 142 143 3.5 3.6"},D:{"39":0.0071,"43":0.00355,"44":0.00355,"45":0.01065,"46":0.00355,"47":0.0071,"48":0.00355,"49":0.01065,"50":0.00355,"51":0.00355,"52":0.00355,"53":0.0071,"54":0.00355,"55":0.0071,"56":0.00355,"57":0.01065,"58":0.0071,"59":0.00355,"60":0.0071,"79":0.0071,"83":0.0071,"84":0.0071,"87":0.0071,"93":0.00355,"99":0.00355,"103":0.0568,"109":1.22475,"110":0.00355,"114":0.0426,"116":0.1065,"119":0.00355,"121":0.0213,"122":0.0142,"123":0.00355,"124":0.0071,"125":0.25915,"126":0.0213,"128":0.0497,"129":0.00355,"130":0.03905,"131":0.06745,"132":0.03195,"133":0.0497,"134":0.01775,"135":0.2485,"136":2.97135,"137":8.2147,"138":0.64255,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 85 86 88 89 90 91 92 94 95 96 97 98 100 101 102 104 105 106 107 108 111 112 113 115 117 118 120 127 139 140 141"},F:{"95":0.00355,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"104":0.01775,"109":0.03195,"111":0.00355,"126":0.00355,"131":0.0142,"134":0.06035,"135":0.02485,"136":1.22475,"137":6.50005,"138":0.3337,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 132 133"},E:{"15":0.00355,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 26.0","12.1":0.00355,"13.1":0.0994,"14.1":0.0568,"15.4":0.0852,"15.5":0.0426,"15.6":0.29465,"16.0":0.23075,"16.1":0.0142,"16.2":0.09585,"16.3":0.0923,"16.4":0.071,"16.5":0.00355,"16.6":1.0295,"17.0":0.00355,"17.1":0.39405,"17.2":0.01065,"17.3":0.06035,"17.4":0.0213,"17.5":0.19525,"17.6":0.30175,"18.0":0.01065,"18.1":0.1136,"18.2":0.01775,"18.3":0.4757,"18.4":0.31595,"18.5":6.50715},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00692,"5.0-5.1":0,"6.0-6.1":0.01384,"7.0-7.1":0.01384,"8.1-8.4":0,"9.0-9.2":0.00692,"9.3":0.04151,"10.0-10.2":0.00346,"10.3":0.06918,"11.0-11.2":0.44277,"11.3-11.4":0.02421,"12.0-12.1":0.00692,"12.2-12.5":0.23176,"13.0-13.1":0.00346,"13.2":0.01038,"13.3":0.00692,"13.4-13.7":0.03805,"14.0-14.4":0.08994,"14.5-14.8":0.08994,"15.0-15.1":0.06226,"15.2-15.3":0.06226,"15.4":0.0761,"15.5":0.08302,"15.6-15.8":1.07233,"16.0":0.14182,"16.1":0.29057,"16.2":0.14874,"16.3":0.27327,"16.4":0.06226,"16.5":0.11069,"16.6-16.7":1.3456,"17.0":0.07264,"17.1":0.12799,"17.2":0.10031,"17.3":0.14182,"17.4":0.25252,"17.5":0.52925,"17.6-17.7":1.38365,"18.0":0.34245,"18.1":0.77139,"18.2":0.40818,"18.3":1.75378,"18.4":1.86101,"18.5":21.81676,"26.0":0},P:{"21":0.02238,"23":0.01119,"26":0.02238,"27":0.04476,"28":5.06901,_:"4 20 22 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","9.2":0.19023},I:{"0":0.0322,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.00645,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00355,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.66345},R:{_:"0"},M:{"0":1.19325},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"34":0.00388,"78":0.18605,"102":0.02326,"115":0.19768,"120":0.01163,"121":0.00388,"124":0.06202,"125":0.84884,"126":0.76745,"128":0.03488,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 123 127 129 3.5 3.6"},D:{"38":0.00775,"49":0.00388,"76":0.05426,"79":0.00775,"84":0.00388,"87":0.05039,"93":0.01938,"97":0.01163,"98":0.00388,"99":0.00775,"103":0.04651,"108":0.00388,"109":0.64729,"111":0.00388,"112":0.03876,"114":0.01938,"116":0.06589,"117":0.02713,"118":0.00775,"119":0.2093,"120":0.15892,"121":0.03488,"122":0.47675,"123":0.89148,"124":9.68225,"125":2.98452,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 85 86 88 89 90 91 92 94 95 96 100 101 102 104 105 106 107 110 113 115 126 127 128"},F:{"67":0.00388,"83":0.00388,"107":0.05039,"109":0.31783,"110":0.01163,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01938,"110":0.01938,"114":0.00388,"119":0.02326,"121":0.00388,"122":0.03101,"123":0.21318,"124":4.43027,"125":2.08529,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 120"},E:{"13":0.01938,"14":0.01163,"15":0.0155,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.19768,"14.1":0.1124,"15.1":0.0155,"15.2-15.3":0.08915,"15.4":0.18217,"15.5":0.04651,"15.6":1.04264,"16.0":0.61628,"16.1":0.02713,"16.2":0.20155,"16.3":0.40698,"16.4":0.09302,"16.5":0.07752,"16.6":1.51164,"17.0":0.05426,"17.1":0.1783,"17.2":0.06202,"17.3":0.23256,"17.4":7.9303,"17.5":0.41086},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00741,"5.0-5.1":0.00741,"6.0-6.1":0.01851,"7.0-7.1":0.02592,"8.1-8.4":0.00741,"9.0-9.2":0.01851,"9.3":0.08516,"10.0-10.2":0.01481,"10.3":0.13329,"11.0-11.2":0.19624,"11.3-11.4":0.03703,"12.0-12.1":0.02222,"12.2-12.5":0.53687,"13.0-13.1":0.01111,"13.2":0.05184,"13.3":0.02592,"13.4-13.7":0.11848,"14.0-14.4":0.20364,"14.5-14.8":0.31472,"15.0-15.1":0.15181,"15.2-15.3":0.16662,"15.4":0.18883,"15.5":0.23696,"15.6-15.8":2.13268,"16.0":0.48504,"16.1":0.99969,"16.2":0.48504,"16.3":0.84048,"16.4":0.17772,"16.5":0.35915,"16.6-16.7":2.86209,"17.0":0.31102,"17.1":0.50725,"17.2":0.52947,"17.3":0.97748,"17.4":22.19691,"17.5":1.56619,"17.6":0},P:{"4":0.03346,"20":0.01115,"21":0.01115,"22":0.01115,"23":0.01115,"24":0.76954,"25":3.56889,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","19.0":0.01115},I:{"0":0.0061,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.03062,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03488,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":18.7675},R:{_:"0"},M:{"0":0.55728},Q:{_:"14.9"},O:{"0":0.01225},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GH.js b/node_modules/caniuse-lite/data/regions/GH.js index 2350ec2cd..8e951a1e7 100644 --- a/node_modules/caniuse-lite/data/regions/GH.js +++ b/node_modules/caniuse-lite/data/regions/GH.js @@ -1 +1 @@ -module.exports={C:{"44":0.00285,"72":0.00285,"78":0.00285,"101":0.00285,"112":0.00285,"115":0.09389,"118":0.00285,"127":0.01707,"128":0.01992,"131":0.00285,"132":0.00285,"133":0.00285,"134":0.00569,"135":0.01138,"136":0.01707,"137":0.02845,"138":0.09389,"139":0.76246,"140":0.1138,"141":0.00285,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 113 114 116 117 119 120 121 122 123 124 125 126 129 130 142 143 3.5 3.6"},D:{"25":0.01707,"33":0.00285,"38":0.00569,"39":0.00285,"40":0.00285,"41":0.00285,"42":0.00285,"43":0.00569,"45":0.00285,"46":0.00569,"47":0.00569,"48":0.00285,"49":0.00569,"50":0.00569,"51":0.00285,"52":0.00285,"53":0.00285,"54":0.00285,"55":0.00285,"56":0.00285,"57":0.00285,"58":0.00285,"59":0.00569,"60":0.00285,"63":0.00285,"64":0.00569,"65":0.00285,"67":0.00285,"68":0.01138,"69":0.00569,"70":0.02845,"71":0.00285,"72":0.00569,"73":0.00285,"74":0.01707,"75":0.00854,"76":0.01423,"77":0.01423,"78":0.00285,"79":0.02276,"80":0.01138,"81":0.00569,"83":0.00854,"84":0.00569,"85":0.00569,"86":0.01707,"87":0.01992,"88":0.00569,"89":0.00569,"90":0.00285,"91":0.02561,"92":0.00569,"93":0.03699,"94":0.00854,"95":0.00854,"96":0.00285,"97":0.00569,"98":0.00854,"99":0.00569,"100":0.00285,"102":0.00285,"103":0.0882,"104":0.01138,"105":0.20769,"106":0.00854,"107":0.00285,"108":0.00569,"109":0.77669,"110":0.00569,"111":0.01138,"112":0.00285,"113":0.00854,"114":0.01707,"115":0.00569,"116":0.0569,"117":0.00285,"118":0.02276,"119":0.0313,"120":0.01992,"121":0.00569,"122":0.02845,"123":0.01138,"124":0.06259,"125":0.26459,"126":0.05975,"127":0.02561,"128":0.05121,"129":0.02276,"130":0.02845,"131":0.10242,"132":0.0882,"133":0.06544,"134":0.08535,"135":0.18208,"136":1.49078,"137":8.06842,"138":0.38123,"139":0.00854,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 34 35 36 37 44 61 62 66 101 140 141"},F:{"15":0.00285,"31":0.00854,"34":0.00285,"35":0.00285,"42":0.00285,"46":0.00854,"73":0.00285,"77":0.00285,"79":0.01707,"85":0.00285,"86":0.00569,"87":0.00569,"88":0.00854,"89":0.06259,"90":0.01992,"95":0.05406,"102":0.00285,"109":0.00285,"113":0.01138,"114":0.00569,"115":0.00285,"116":0.00569,"117":0.01423,_:"9 11 12 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 36 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 78 80 81 82 83 84 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01138,"13":0.00285,"14":0.00854,"15":0.00569,"16":0.01423,"17":0.00569,"18":0.07682,"84":0.02561,"88":0.00854,"89":0.02561,"90":0.04268,"92":0.13656,"100":0.03699,"103":0.00285,"104":0.00285,"107":0.00285,"109":0.03699,"111":0.00854,"112":0.00854,"113":0.00285,"114":0.00569,"115":0.00285,"116":0.00285,"120":0.01138,"121":0.00285,"122":0.03983,"123":0.00285,"124":0.00569,"125":0.00285,"126":0.01423,"127":0.00854,"128":0.00569,"129":0.01423,"130":0.00854,"131":0.04268,"132":0.02561,"133":0.03414,"134":0.05121,"135":0.11096,"136":0.53486,"137":2.23902,"138":0.13372,_:"79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 102 105 106 108 110 117 118 119"},E:{"11":0.00285,"13":0.00569,"14":0.00569,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.0","11.1":0.01423,"12.1":0.00285,"13.1":0.02561,"14.1":0.01707,"15.1":0.00285,"15.2-15.3":0.00285,"15.4":0.00285,"15.5":0.00854,"15.6":0.08251,"16.0":0.00854,"16.1":0.00285,"16.2":0.00285,"16.3":0.00569,"16.4":0.00285,"16.5":0.00285,"16.6":0.0569,"17.0":0.00285,"17.1":0.01138,"17.2":0.00285,"17.3":0.00854,"17.4":0.00854,"17.5":0.01138,"17.6":0.06544,"18.0":0.00854,"18.1":0.01992,"18.2":0.00854,"18.3":0.03414,"18.4":0.03699,"18.5":0.2276},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00208,"5.0-5.1":0,"6.0-6.1":0.00416,"7.0-7.1":0.00416,"8.1-8.4":0,"9.0-9.2":0.00208,"9.3":0.01249,"10.0-10.2":0.00104,"10.3":0.02082,"11.0-11.2":0.13325,"11.3-11.4":0.00729,"12.0-12.1":0.00208,"12.2-12.5":0.06975,"13.0-13.1":0.00104,"13.2":0.00312,"13.3":0.00208,"13.4-13.7":0.01145,"14.0-14.4":0.02707,"14.5-14.8":0.02707,"15.0-15.1":0.01874,"15.2-15.3":0.01874,"15.4":0.0229,"15.5":0.02499,"15.6-15.8":0.32273,"16.0":0.04268,"16.1":0.08745,"16.2":0.04477,"16.3":0.08224,"16.4":0.01874,"16.5":0.03331,"16.6-16.7":0.40497,"17.0":0.02186,"17.1":0.03852,"17.2":0.03019,"17.3":0.04268,"17.4":0.076,"17.5":0.15928,"17.6-17.7":0.41642,"18.0":0.10306,"18.1":0.23215,"18.2":0.12284,"18.3":0.52781,"18.4":0.56009,"18.5":6.56592,"26.0":0},P:{"4":0.12191,"20":0.01016,"21":0.03048,"22":0.06095,"23":0.02032,"24":0.18286,"25":0.49778,"26":0.08127,"27":0.25397,"28":0.65016,"5.0-5.4":0.04064,"6.2-6.4":0.01016,"7.2-7.4":0.08127,_:"8.2 10.1 12.0 14.0 15.0 18.0","9.2":0.03048,"11.1-11.2":0.02032,"13.0":0.01016,"16.0":0.02032,"17.0":0.01016,"19.0":0.02032},I:{"0":0.08571,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":10.67654,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01138,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00716,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":54.44569},R:{_:"0"},M:{"0":0.27189},Q:{"14.9":0.00716},O:{"0":0.51516},H:{"0":0.75}}; +module.exports={C:{"23":0.00413,"43":0.00207,"49":0.00207,"52":0.00207,"59":0.00207,"66":0.00413,"68":0.00207,"72":0.0062,"76":0.00413,"78":0.00413,"81":0.00207,"85":0.00207,"91":0.0062,"96":0.00207,"101":0.00413,"103":0.00413,"104":0.00207,"107":0.00207,"108":0.00413,"110":0.00207,"111":0.00207,"112":0.00207,"113":0.00207,"115":0.19618,"116":0.00207,"117":0.00207,"118":0.0062,"119":0.00207,"120":0.00413,"121":0.0062,"122":0.01033,"123":0.01652,"124":0.06195,"125":0.65667,"126":0.39029,"127":0.01239,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 50 51 53 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 73 74 75 77 79 80 82 83 84 86 87 88 89 90 92 93 94 95 97 98 99 100 102 105 106 109 114 128 129 3.5 3.6"},D:{"11":0.00413,"28":0.00207,"33":0.0062,"34":0.00207,"38":0.00207,"40":0.00207,"43":0.02065,"44":0.00207,"45":0.00207,"46":0.00207,"47":0.00207,"49":0.00413,"50":0.00207,"51":0.00413,"55":0.00207,"56":0.00207,"58":0.00207,"59":0.00207,"60":0.00207,"61":0.00207,"62":0.00207,"63":0.0062,"64":0.00826,"65":0.0062,"66":0.00207,"67":0.00207,"68":0.0062,"69":0.01446,"70":0.01859,"71":0.00207,"72":0.00207,"73":0.00413,"74":0.01033,"75":0.01446,"76":0.02685,"77":0.01446,"78":0.00413,"79":0.02478,"80":0.02065,"81":0.00826,"83":0.0062,"84":0.00413,"85":0.02065,"86":0.01239,"87":0.02478,"88":0.01446,"89":0.00826,"90":0.00826,"91":0.01033,"92":0.01239,"93":0.03304,"94":0.01239,"95":0.01652,"96":0.00413,"97":0.00413,"98":0.00413,"99":0.00826,"100":0.00207,"101":0.00207,"102":0.01446,"103":0.07434,"104":0.00826,"105":0.01859,"106":0.03717,"107":0.0062,"108":0.01446,"109":1.53843,"110":0.00413,"111":0.01239,"112":0.0062,"113":0.0062,"114":0.02065,"115":0.00826,"116":0.06608,"117":0.01652,"118":0.01239,"119":0.0475,"120":0.08054,"121":0.06815,"122":0.10945,"123":0.40268,"124":6.23837,"125":2.31074,"126":0.0062,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 35 36 37 39 41 42 48 52 53 54 57 127 128"},F:{"17":0.00207,"18":0.00413,"31":0.00207,"34":0.00207,"36":0.00207,"42":0.00207,"44":0.00207,"79":0.03304,"82":0.00413,"83":0.00207,"84":0.00207,"85":0.00207,"86":0.00413,"87":0.0062,"90":0.0062,"94":0.00207,"95":0.06402,"102":0.00413,"105":0.00413,"106":0.00826,"107":0.05576,"108":0.04337,"109":0.80742,"110":0.06608,_:"9 11 12 15 16 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 37 38 39 40 41 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 88 89 91 92 93 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01859,"13":0.00826,"14":0.0062,"15":0.01446,"16":0.01446,"17":0.0062,"18":0.07021,"84":0.01446,"85":0.00207,"88":0.00207,"89":0.03304,"90":0.03511,"91":0.00207,"92":0.09706,"100":0.03304,"101":0.00207,"103":0.00207,"106":0.00207,"107":0.00413,"108":0.00207,"109":0.02891,"110":0.00207,"111":0.00413,"112":0.0062,"113":0.00413,"114":0.01033,"115":0.0062,"116":0.0062,"117":0.0062,"118":0.00826,"119":0.01859,"120":0.03304,"121":0.04543,"122":0.06608,"123":0.11151,"124":1.40214,"125":0.65667,_:"79 80 81 83 86 87 93 94 95 96 97 98 99 102 104 105"},E:{"9":0.00207,"11":0.0062,"13":0.00413,"14":0.03511,"15":0.00207,_:"0 4 5 6 7 8 10 12 3.1 3.2 5.1 6.1 9.1 10.1 17.6","7.1":0.00207,"11.1":0.01033,"12.1":0.00413,"13.1":0.0413,"14.1":0.02891,"15.1":0.00207,"15.2-15.3":0.00413,"15.4":0.00207,"15.5":0.00826,"15.6":0.07021,"16.0":0.0062,"16.1":0.00826,"16.2":0.0062,"16.3":0.07434,"16.4":0.0062,"16.5":0.01033,"16.6":0.04543,"17.0":0.01239,"17.1":0.01652,"17.2":0.02065,"17.3":0.01446,"17.4":0.17966,"17.5":0.06608},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00232,"5.0-5.1":0.00232,"6.0-6.1":0.00581,"7.0-7.1":0.00813,"8.1-8.4":0.00232,"9.0-9.2":0.00581,"9.3":0.02672,"10.0-10.2":0.00465,"10.3":0.04182,"11.0-11.2":0.06157,"11.3-11.4":0.01162,"12.0-12.1":0.00697,"12.2-12.5":0.16844,"13.0-13.1":0.00349,"13.2":0.01626,"13.3":0.00813,"13.4-13.7":0.03717,"14.0-14.4":0.06389,"14.5-14.8":0.09874,"15.0-15.1":0.04763,"15.2-15.3":0.05228,"15.4":0.05925,"15.5":0.07435,"15.6-15.8":0.66913,"16.0":0.15218,"16.1":0.31365,"16.2":0.15218,"16.3":0.2637,"16.4":0.05576,"16.5":0.11268,"16.6-16.7":0.89798,"17.0":0.09758,"17.1":0.15915,"17.2":0.16612,"17.3":0.30668,"17.4":6.9643,"17.5":0.49139,"17.6":0},P:{"4":0.14465,"20":0.031,"21":0.09299,"22":0.20664,"23":0.14465,"24":0.27896,"25":0.56826,"5.0-5.4":0.04133,"6.2-6.4":0.02066,"7.2-7.4":0.12398,_:"8.2 10.1 12.0","9.2":0.08266,"11.1-11.2":0.06199,"13.0":0.01033,"14.0":0.02066,"15.0":0.01033,"16.0":0.02066,"17.0":0.02066,"18.0":0.01033,"19.0":0.08266},I:{"0":0.08694,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":11.85788,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00207,"8":0.00826,"9":0.00207,"10":0.0062,"11":0.02065,_:"6 5.5"},S:{"2.5":0.01587,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":53.10066},R:{_:"0"},M:{"0":0.34914},Q:{"14.9":0.01587},O:{"0":0.67448},H:{"0":1.83}}; diff --git a/node_modules/caniuse-lite/data/regions/GI.js b/node_modules/caniuse-lite/data/regions/GI.js index d4eb0a4a5..17ab5de1a 100644 --- a/node_modules/caniuse-lite/data/regions/GI.js +++ b/node_modules/caniuse-lite/data/regions/GI.js @@ -1 +1 @@ -module.exports={C:{"108":0.0038,"115":0.01141,"128":0.0076,"134":0.0076,"135":0.0076,"136":0.0038,"137":0.0038,"138":0.05703,"139":0.74899,"140":0.11406,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"39":0.0038,"41":0.0038,"44":0.0038,"45":0.01141,"46":0.0038,"47":0.0038,"48":0.01141,"49":0.0076,"50":0.01141,"51":0.0076,"54":0.01141,"55":0.0076,"56":0.0076,"57":0.01521,"59":0.0038,"60":0.0076,"74":0.0038,"79":0.01521,"87":0.04182,"88":0.05703,"89":0.0076,"103":0.07984,"105":0.25093,"106":0.01141,"107":0.27374,"108":0.0038,"109":0.49426,"110":0.09505,"111":0.0038,"112":0.0076,"114":0.02661,"116":0.17109,"117":0.04943,"118":0.05323,"119":0.07224,"120":0.08364,"122":0.0038,"123":0.0038,"124":0.01521,"125":1.02274,"126":0.01141,"127":0.0038,"128":0.03802,"129":0.0038,"130":0.07604,"131":0.04182,"132":0.0076,"133":1.03795,"134":0.25473,"135":0.41822,"136":2.29641,"137":12.53519,"138":0.34598,"139":0.0038,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 43 52 53 58 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 80 81 83 84 85 86 90 91 92 93 94 95 96 97 98 99 100 101 102 104 113 115 121 140 141"},F:{"89":0.05703,"90":0.03422,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"108":0.0038,"111":0.28135,"118":0.03422,"125":0.02281,"131":0.01521,"134":0.04562,"135":0.0076,"136":0.88967,"137":3.77158,"138":0.25093,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 112 113 114 115 116 117 119 120 121 122 123 124 126 127 128 129 130 132 133"},E:{"14":0.04562,"15":0.0038,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 17.0","13.1":0.13307,"14.1":0.0076,"15.2-15.3":0.01521,"15.5":0.14448,"15.6":0.10646,"16.0":0.0038,"16.1":0.01521,"16.2":0.0076,"16.3":0.04562,"16.4":0.02661,"16.5":0.0038,"16.6":0.34978,"17.1":0.66155,"17.2":0.04562,"17.3":0.02281,"17.4":0.0076,"17.5":0.03422,"17.6":0.1939,"18.0":0.0076,"18.1":0.06083,"18.2":0.29656,"18.3":0.17109,"18.4":0.09885,"18.5":1.45236,"26.0":0.04943},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00481,"5.0-5.1":0,"6.0-6.1":0.00963,"7.0-7.1":0.00963,"8.1-8.4":0,"9.0-9.2":0.00481,"9.3":0.02888,"10.0-10.2":0.00241,"10.3":0.04813,"11.0-11.2":0.30806,"11.3-11.4":0.01685,"12.0-12.1":0.00481,"12.2-12.5":0.16125,"13.0-13.1":0.00241,"13.2":0.00722,"13.3":0.00481,"13.4-13.7":0.02647,"14.0-14.4":0.06257,"14.5-14.8":0.06257,"15.0-15.1":0.04332,"15.2-15.3":0.04332,"15.4":0.05295,"15.5":0.05776,"15.6-15.8":0.74607,"16.0":0.09867,"16.1":0.20216,"16.2":0.10349,"16.3":0.19013,"16.4":0.04332,"16.5":0.07701,"16.6-16.7":0.9362,"17.0":0.05054,"17.1":0.08905,"17.2":0.06979,"17.3":0.09867,"17.4":0.17569,"17.5":0.36822,"17.6-17.7":0.96267,"18.0":0.23826,"18.1":0.53669,"18.2":0.28399,"18.3":1.22019,"18.4":1.2948,"18.5":15.17895,"26.0":0},P:{"4":0.01044,"22":0.01044,"23":0.02087,"24":0.03131,"25":0.10437,"26":0.0835,"27":0.26094,"28":1.97267,_:"20 21 5.0-5.4 8.2 10.1 11.1-11.2 12.0 14.0 16.0 17.0","6.2-6.4":0.01044,"7.2-7.4":0.04175,"9.2":0.01044,"13.0":0.01044,"15.0":0.02087,"18.0":0.01044,"19.0":0.01044},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.49824,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03422,_:"6 7 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.06089},R:{_:"0"},M:{"0":0.26651},Q:{_:"14.9"},O:{"0":0.13016},H:{"0":0.01}}; +module.exports={C:{"52":0.00477,"56":0.00954,"65":0.00477,"78":0.00477,"102":0.00477,"105":0.01431,"106":0.01908,"107":0.01908,"108":0.03338,"109":0.02385,"110":0.02861,"111":0.01431,"115":0.02861,"121":0.00954,"122":0.00477,"123":0.00477,"124":0.02385,"125":0.77258,"126":0.75827,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 112 113 114 116 117 118 119 120 127 128 129 3.5 3.6"},D:{"48":0.00477,"67":0.00477,"78":0.00477,"86":0.00477,"95":0.00477,"97":0.00477,"102":0.01431,"103":0.39106,"104":0.01908,"106":0.5532,"107":0.14307,"108":0.80119,"109":1.23517,"110":0.28614,"111":0.17168,"112":0.59613,"113":0.00954,"115":0.22891,"116":0.38629,"117":0.10492,"118":0.03815,"119":0.04292,"120":0.20507,"121":0.02385,"122":0.44352,"123":1.44978,"124":16.18122,"125":6.88167,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 87 88 89 90 91 92 93 94 96 98 99 100 101 105 114 126 127 128"},F:{"94":0.00477,"107":0.09061,"108":0.20507,"109":0.89657,"110":0.03815,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00954,"110":0.00477,"111":0.41013,"116":0.00477,"120":0.00954,"121":0.04769,"122":0.03338,"123":0.20984,"124":4.42563,"125":2.40835,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 112 113 114 115 117 118 119"},E:{"14":0.12876,"15":0.00954,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00477,"12.1":0.00477,"13.1":0.35768,"14.1":0.16692,"15.1":0.00477,"15.2-15.3":0.01908,"15.4":0.00477,"15.5":0.04769,"15.6":0.30522,"16.0":0.07154,"16.1":0.1383,"16.2":0.05246,"16.3":0.11923,"16.4":0.09061,"16.5":0.15261,"16.6":0.77258,"17.0":0.00477,"17.1":0.31952,"17.2":0.15738,"17.3":0.2003,"17.4":2.89001,"17.5":0.17168},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00494,"5.0-5.1":0.00494,"6.0-6.1":0.01235,"7.0-7.1":0.01728,"8.1-8.4":0.00494,"9.0-9.2":0.01235,"9.3":0.05679,"10.0-10.2":0.00988,"10.3":0.08889,"11.0-11.2":0.13086,"11.3-11.4":0.02469,"12.0-12.1":0.01481,"12.2-12.5":0.35802,"13.0-13.1":0.00741,"13.2":0.03457,"13.3":0.01728,"13.4-13.7":0.07901,"14.0-14.4":0.1358,"14.5-14.8":0.20987,"15.0-15.1":0.10123,"15.2-15.3":0.11111,"15.4":0.12592,"15.5":0.15802,"15.6-15.8":1.42219,"16.0":0.32345,"16.1":0.66665,"16.2":0.32345,"16.3":0.56048,"16.4":0.11852,"16.5":0.2395,"16.6-16.7":1.9086,"17.0":0.2074,"17.1":0.33826,"17.2":0.35308,"17.3":0.65184,"17.4":14.80215,"17.5":1.04442,"17.6":0},P:{"4":0.13688,"20":0.01053,"22":0.0737,"23":0.03159,"24":0.31587,"25":2.56909,_:"21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 13.0 14.0 15.0 16.0 17.0","12.0":0.01053,"18.0":0.01053,"19.0":0.03159},I:{"0":0.00521,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.96232,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.10571,"9":0.04027,"10":0.00503,"11":0.0302,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.02987},R:{_:"0"},M:{"0":0.3661},Q:{"14.9":0.00523},O:{"0":0.10983},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GL.js b/node_modules/caniuse-lite/data/regions/GL.js index 74a659593..8c1f19f4d 100644 --- a/node_modules/caniuse-lite/data/regions/GL.js +++ b/node_modules/caniuse-lite/data/regions/GL.js @@ -1 +1 @@ -module.exports={C:{"78":0.07516,"115":0.00376,"135":0.00752,"138":0.14656,"139":1.45059,"140":0.28185,"141":0.00752,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 137 142 143 3.5 3.6"},D:{"43":0.00752,"46":0.00376,"47":0.01879,"48":0.00376,"49":0.00752,"50":0.00752,"51":0.00376,"57":0.00376,"58":0.00376,"59":0.00752,"79":0.01503,"83":0.00376,"103":0.01879,"108":0.01503,"109":0.21421,"113":0.01127,"116":0.72154,"119":0.00752,"121":0.09019,"122":0.0451,"123":0.01127,"125":0.1428,"126":0.04885,"128":0.05261,"129":0.03758,"131":0.02631,"132":0.05261,"133":0.03758,"134":0.01503,"135":0.07516,"136":1.66104,"137":8.78996,"138":0.57497,"139":0.06013,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 52 53 54 55 56 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 110 111 112 114 115 117 118 120 124 127 130 140 141"},F:{"46":0.00376,"79":0.00376,"90":0.00376,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.00376,"100":0.03758,"107":0.00376,"109":0.01503,"122":0.06389,"125":0.00376,"127":0.01127,"128":0.00752,"129":0.01879,"132":0.00376,"133":0.05261,"134":0.00376,"135":0.03006,"136":0.80045,"137":7.00115,"138":0.55618,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 126 130 131"},E:{"14":0.02631,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 17.0 26.0","13.1":0.02631,"14.1":0.06389,"15.1":0.27433,"15.6":0.4923,"16.0":0.31191,"16.1":0.00376,"16.2":0.06013,"16.3":0.03758,"16.4":0.01503,"16.5":0.01127,"16.6":0.44344,"17.1":0.28561,"17.2":0.01879,"17.3":0.01879,"17.4":0.01503,"17.5":0.12026,"17.6":0.32319,"18.0":0.05261,"18.1":0.13905,"18.2":0.08643,"18.3":0.55243,"18.4":0.27058,"18.5":3.51749},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00562,"5.0-5.1":0,"6.0-6.1":0.01125,"7.0-7.1":0.01125,"8.1-8.4":0,"9.0-9.2":0.00562,"9.3":0.03374,"10.0-10.2":0.00281,"10.3":0.05624,"11.0-11.2":0.35994,"11.3-11.4":0.01968,"12.0-12.1":0.00562,"12.2-12.5":0.18841,"13.0-13.1":0.00281,"13.2":0.00844,"13.3":0.00562,"13.4-13.7":0.03093,"14.0-14.4":0.07311,"14.5-14.8":0.07311,"15.0-15.1":0.05062,"15.2-15.3":0.05062,"15.4":0.06186,"15.5":0.06749,"15.6-15.8":0.87173,"16.0":0.11529,"16.1":0.23621,"16.2":0.12092,"16.3":0.22215,"16.4":0.05062,"16.5":0.08998,"16.6-16.7":1.09388,"17.0":0.05905,"17.1":0.10404,"17.2":0.08155,"17.3":0.11529,"17.4":0.20528,"17.5":0.43024,"17.6-17.7":1.12481,"18.0":0.27839,"18.1":0.62708,"18.2":0.33182,"18.3":1.42569,"18.4":1.51287,"18.5":17.73542,"26.0":0},P:{"4":0.03108,"24":0.01036,"26":0.04145,"27":0.05181,"28":3.39853,_:"20 21 22 23 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.06217},I:{"0":0.01869,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.49184,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.00624,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.22665},R:{_:"0"},M:{"0":0.44318},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"2":0.01554,"3":0.02331,"4":0.0272,"5":0.01166,"6":0.00389,"8":0.00777,"9":0.00777,"10":0.00777,"11":0.01166,"12":0.00389,"13":0.01554,"14":0.00389,"15":0.00777,"16":0.01554,"17":0.02331,"19":0.00777,"20":0.00389,"21":0.00777,"22":0.00389,"23":0.00777,"24":0.01554,"26":0.00777,"27":0.00389,"28":0.00389,"29":0.0272,"30":0.00777,"31":0.00389,"32":0.01166,"33":0.00777,"34":0.01554,"35":0.03108,"36":0.01166,"38":0.04274,"39":0.03108,"40":0.03108,"41":0.01943,"42":0.00777,"43":0.00777,"44":0.00389,"48":0.00389,"52":0.01166,"115":0.09324,"116":0.00389,"120":0.05439,"121":0.04274,"123":0.05051,"125":0.92463,"126":0.74592,_:"7 18 25 37 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 117 118 119 122 124 127 128 129","3.5":0.0272,"3.6":0.05439},D:{"4":0.00777,"6":0.00389,"7":0.00777,"8":0.00389,"9":0.00389,"10":0.00777,"11":0.00777,"12":0.01166,"14":0.00389,"15":0.01166,"16":0.00389,"17":0.01554,"19":0.0272,"20":0.00389,"21":0.04274,"22":0.00777,"23":0.01166,"24":0.01166,"25":0.00389,"26":0.00777,"27":0.01554,"28":0.00777,"29":0.00389,"30":0.01554,"31":0.03497,"32":0.01166,"33":0.02331,"34":0.01166,"35":0.01166,"36":0.03497,"37":0.04274,"38":0.01554,"39":0.03885,"40":0.04662,"41":0.06993,"42":0.0272,"43":0.08159,"44":0.16706,"45":0.16317,"46":0.13598,"47":0.05828,"49":0.01166,"51":0.14763,"53":0.00777,"61":0.00389,"70":0.06216,"79":0.01166,"80":0.00389,"88":0.01554,"90":0.00389,"97":0.01166,"103":0.00389,"105":0.01554,"106":0.00777,"107":0.03497,"109":0.50117,"112":0.00777,"114":0.01166,"116":2.68842,"117":0.04274,"120":0.00777,"121":0.15929,"122":0.20202,"123":0.38073,"124":8.91219,"125":3.09246,_:"5 13 18 48 50 52 54 55 56 57 58 59 60 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 81 83 84 85 86 87 89 91 92 93 94 95 96 98 99 100 101 102 104 108 110 111 113 115 118 119 126 127 128"},F:{"12":0.00389,"20":0.00777,"24":0.00389,"25":0.00389,"26":0.00389,"28":0.00389,"31":0.05439,"32":0.01166,"33":0.01554,"89":0.00389,"107":2.32712,"108":0.00389,"109":3.66356,"110":0.02331,_:"9 11 15 16 17 18 19 21 22 23 27 29 30 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 10.0-10.1 10.5 10.6 11.6","9.5-9.6":0.00777,"11.1":0.00777,"11.5":0.00389,"12.1":0.06216},B:{"12":0.03108,"105":0.00389,"106":0.00389,"107":0.00389,"109":0.01166,"110":0.00389,"111":0.00389,"116":0.00389,"121":0.11655,"122":0.17871,"123":0.02331,"124":2.39705,"125":1.09169,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 108 112 113 114 115 117 118 119 120"},E:{"4":0.01166,"5":0.01943,"7":0.01166,"8":0.05439,"9":0.31857,"13":0.00389,"14":0.01166,_:"0 6 10 11 12 15 3.1 10.1 11.1 12.1 17.6","3.2":0.00389,"5.1":0.0272,"6.1":0.01166,"7.1":0.01943,"9.1":0.00389,"13.1":0.0272,"14.1":0.12432,"15.1":0.1049,"15.2-15.3":0.05051,"15.4":0.03497,"15.5":0.01166,"15.6":0.15929,"16.0":0.01166,"16.1":0.00777,"16.2":0.13209,"16.3":0.03497,"16.4":0.05051,"16.5":0.1554,"16.6":0.58664,"17.0":0.00389,"17.1":0.13598,"17.2":0.65657,"17.3":0.11267,"17.4":1.92308,"17.5":0.35742},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00486,"5.0-5.1":0.00486,"6.0-6.1":0.01216,"7.0-7.1":0.01702,"8.1-8.4":0.00486,"9.0-9.2":0.01216,"9.3":0.05593,"10.0-10.2":0.00973,"10.3":0.08754,"11.0-11.2":0.12888,"11.3-11.4":0.02432,"12.0-12.1":0.01459,"12.2-12.5":0.3526,"13.0-13.1":0.0073,"13.2":0.03404,"13.3":0.01702,"13.4-13.7":0.07782,"14.0-14.4":0.13374,"14.5-14.8":0.2067,"15.0-15.1":0.0997,"15.2-15.3":0.10943,"15.4":0.12402,"15.5":0.15563,"15.6-15.8":1.40067,"16.0":0.31856,"16.1":0.65656,"16.2":0.31856,"16.3":0.552,"16.4":0.11672,"16.5":0.23588,"16.6-16.7":1.87972,"17.0":0.20426,"17.1":0.33315,"17.2":0.34774,"17.3":0.64197,"17.4":14.57817,"17.5":1.02862,"17.6":0},P:{"4":0.18411,"21":0.02166,"22":0.01083,"23":0.06498,"24":0.12996,"25":7.4943,_:"20 5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.22743},I:{"0":1.65097,"3":0,"4":0.00017,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00033,"4.2-4.3":0.00099,"4.4":0,"4.4.3-4.4.4":0.00365},K:{"0":0.23687,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.06641,"7":0.06641,"8":0.98442,"9":0.16407,"10":0.1836,"11":0.58206,"5.5":0.00781},S:{"2.5":0.06116,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":25.61238},R:{_:"0"},M:{"0":0.17736},Q:{_:"14.9"},O:{"0":0.22018},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/GM.js b/node_modules/caniuse-lite/data/regions/GM.js index b8ff50f47..08434d366 100644 --- a/node_modules/caniuse-lite/data/regions/GM.js +++ b/node_modules/caniuse-lite/data/regions/GM.js @@ -1 +1 @@ -module.exports={C:{"51":0.00251,"58":0.00753,"65":0.00502,"67":0.00251,"72":0.00753,"76":0.00251,"81":0.00502,"87":0.00251,"102":0.00251,"114":0.00251,"115":0.03515,"119":0.00753,"127":0.00502,"128":0.01004,"133":0.00251,"135":0.00251,"136":0.00753,"137":0.01507,"138":0.04269,"139":1.48149,"140":0.28877,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 59 60 61 62 63 64 66 68 69 70 71 73 74 75 77 78 79 80 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 116 117 118 120 121 122 123 124 125 126 129 130 131 132 134 141 142 143 3.5 3.6"},D:{"39":0.01256,"40":0.00502,"41":0.00502,"42":0.01004,"43":0.00251,"44":0.00251,"45":0.00753,"46":0.00753,"48":0.00753,"49":0.01507,"50":0.01004,"51":0.00753,"53":0.01004,"54":0.00753,"55":0.01004,"56":0.00502,"57":0.00753,"58":0.02511,"59":0.00251,"60":0.00753,"61":0.02009,"65":0.01758,"68":0.00502,"69":0.00251,"70":0.00753,"72":0.01507,"73":0.03264,"74":0.00502,"75":0.01507,"76":0.07282,"77":0.01256,"79":0.01004,"80":0.00753,"81":0.01004,"83":0.02009,"84":0.00251,"85":0.00251,"86":0.01004,"87":0.00502,"88":0.00502,"89":0.00753,"90":0.00502,"91":0.02009,"93":0.01004,"97":0.01507,"99":0.00251,"100":0.13559,"103":0.03515,"108":0.01507,"109":0.32643,"111":0.00251,"114":0.00502,"116":0.24608,"118":0.0226,"119":0.01004,"120":0.01004,"121":0.08789,"122":0.02009,"123":0.00502,"124":0.00753,"125":1.37101,"126":0.08537,"127":0.01004,"128":0.01004,"130":0.09793,"131":0.02511,"132":0.02511,"133":0.16322,"134":0.04018,"135":0.08035,"136":1.63466,"137":6.75208,"138":0.24608,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 47 52 62 63 64 66 67 71 78 92 94 95 96 98 101 102 104 105 106 107 110 112 113 115 117 129 139 140 141"},F:{"49":0.00251,"52":0.00251,"54":0.00502,"60":0.00753,"66":0.00251,"76":0.00502,"77":0.00251,"89":0.00502,"90":0.00251,"110":0.00251,"113":0.00502,"116":0.00502,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 55 56 57 58 62 63 64 65 67 68 69 70 71 72 73 74 75 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 114 115 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00502,"15":0.00251,"17":0.00502,"18":0.03515,"79":0.00251,"80":0.00251,"84":0.01507,"85":0.00753,"86":0.00251,"87":0.00753,"88":0.00251,"89":0.01507,"90":0.01004,"91":0.00251,"92":0.03013,"94":0.00502,"100":0.00251,"108":0.00251,"109":0.00753,"110":0.01507,"114":0.00251,"116":0.00753,"122":0.0226,"130":0.00753,"131":0.01004,"132":0.01004,"133":0.0226,"134":0.02511,"135":0.02762,"136":0.42687,"137":2.2599,"138":0.15066,_:"13 14 16 81 83 93 95 96 97 98 99 101 102 103 104 105 106 107 111 112 113 115 117 118 119 120 121 123 124 125 126 127 128 129"},E:{"13":0.01004,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.1 18.0 18.2","9.1":0.01256,"13.1":0.0452,"14.1":0.02511,"15.5":0.02762,"15.6":0.0678,"16.2":0.00251,"16.3":0.00251,"16.4":0.00753,"16.5":0.01256,"16.6":0.2737,"17.0":0.00753,"17.1":0.25863,"17.2":0.01507,"17.3":0.09793,"17.4":0.01256,"17.5":0.07784,"17.6":0.04771,"18.1":0.00251,"18.3":0.1833,"18.4":0.03013,"18.5":0.50973,"26.0":0.00502},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00219,"5.0-5.1":0,"6.0-6.1":0.00439,"7.0-7.1":0.00439,"8.1-8.4":0,"9.0-9.2":0.00219,"9.3":0.01316,"10.0-10.2":0.0011,"10.3":0.02193,"11.0-11.2":0.14034,"11.3-11.4":0.00767,"12.0-12.1":0.00219,"12.2-12.5":0.07346,"13.0-13.1":0.0011,"13.2":0.00329,"13.3":0.00219,"13.4-13.7":0.01206,"14.0-14.4":0.02851,"14.5-14.8":0.02851,"15.0-15.1":0.01974,"15.2-15.3":0.01974,"15.4":0.02412,"15.5":0.02631,"15.6-15.8":0.33988,"16.0":0.04495,"16.1":0.0921,"16.2":0.04714,"16.3":0.08661,"16.4":0.01974,"16.5":0.03508,"16.6-16.7":0.4265,"17.0":0.02302,"17.1":0.04057,"17.2":0.0318,"17.3":0.04495,"17.4":0.08004,"17.5":0.16775,"17.6-17.7":0.43856,"18.0":0.10854,"18.1":0.24449,"18.2":0.12937,"18.3":0.55587,"18.4":0.58986,"18.5":6.91493,"26.0":0},P:{"4":0.02055,"21":0.01027,"22":0.04109,"23":0.01027,"24":0.24656,"25":0.12328,"26":0.11301,"27":0.27738,"28":1.36636,_:"20 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 18.0","5.0-5.4":0.01027,"7.2-7.4":0.1541,"9.2":0.01027,"14.0":0.01027,"19.0":0.01027},I:{"0":0.05233,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":2.0567,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.43541},R:{_:"0"},M:{"0":0.09736},Q:{_:"14.9"},O:{"0":0.41938},H:{"0":0.19}}; +module.exports={C:{"34":0.00254,"72":0.00127,"83":0.00127,"109":0.00127,"113":0.00381,"115":0.09144,"120":0.00127,"122":0.00254,"123":0.00127,"124":0.00508,"125":0.20955,"126":0.33147,"127":0.00127,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 114 116 117 118 119 121 128 129 3.5 3.6"},D:{"33":0.00127,"34":0.00127,"49":0.00127,"53":0.00127,"54":0.00254,"57":0.00254,"58":0.00381,"60":0.00254,"63":0.01651,"64":0.00254,"65":0.00127,"68":0.00381,"69":0.02032,"70":0.00508,"71":0.00635,"72":0.00381,"73":0.00127,"74":0.00635,"75":0.00381,"76":0.00254,"77":0.00381,"78":0.00381,"79":0.01905,"80":0.00508,"81":0.00508,"83":0.00508,"84":0.00381,"85":0.00508,"86":0.00635,"87":0.00635,"88":0.00635,"89":0.00508,"90":0.02286,"91":0.00127,"93":0.00254,"94":0.00127,"95":0.00381,"98":0.00508,"99":0.00127,"100":0.00127,"102":0.01524,"103":0.01651,"104":0.00127,"105":0.00635,"106":0.02794,"107":0.00762,"108":0.00127,"109":2.17551,"111":0.00254,"112":0.00127,"114":0.00254,"116":0.01143,"117":0.00127,"118":0.00127,"119":0.01651,"120":0.03937,"121":0.02921,"122":0.01905,"123":0.15367,"124":2.58191,"125":0.95885,"126":0.00127,"127":0.00127,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 55 56 59 61 62 66 67 92 96 97 101 110 113 115 128"},F:{"46":0.00762,"54":0.00127,"55":0.00127,"76":0.00254,"79":0.00254,"93":0.02032,"95":0.00381,"107":0.00127,"108":0.01778,"109":0.26416,"110":0.00635,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00127,"14":0.00127,"15":0.00254,"16":0.00254,"17":0.00127,"18":0.00889,"80":0.00127,"81":0.00127,"83":0.00127,"84":0.00254,"85":0.00127,"86":0.00127,"87":0.00127,"89":0.00254,"90":0.00254,"92":0.01397,"96":0.00127,"100":0.00127,"109":0.00889,"110":0.00254,"112":0.00635,"117":0.00508,"118":0.00381,"119":0.00254,"120":0.03556,"121":0.06223,"122":0.00508,"123":0.03556,"124":0.4191,"125":0.19939,_:"13 79 88 91 93 94 95 97 98 99 101 102 103 104 105 106 107 108 111 113 114 115 116"},E:{"11":0.00127,"14":0.00381,"15":0.00127,_:"0 4 5 6 7 8 9 10 12 13 3.1 3.2 5.1 6.1 10.1 11.1 15.1 15.2-15.3 16.0 16.1 17.6","7.1":0.00254,"9.1":0.02032,"12.1":0.00508,"13.1":0.02032,"14.1":0.254,"15.4":0.00635,"15.5":0.00381,"15.6":0.01524,"16.2":0.01524,"16.3":0.02159,"16.4":0.00762,"16.5":0.01651,"16.6":0.0381,"17.0":0.00127,"17.1":0.06731,"17.2":0.00127,"17.3":0.00635,"17.4":0.09652,"17.5":0.00254},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0035,"5.0-5.1":0.0035,"6.0-6.1":0.00874,"7.0-7.1":0.01224,"8.1-8.4":0.0035,"9.0-9.2":0.00874,"9.3":0.04021,"10.0-10.2":0.00699,"10.3":0.06294,"11.0-11.2":0.09267,"11.3-11.4":0.01748,"12.0-12.1":0.01049,"12.2-12.5":0.25352,"13.0-13.1":0.00525,"13.2":0.02448,"13.3":0.01224,"13.4-13.7":0.05595,"14.0-14.4":0.09616,"14.5-14.8":0.14862,"15.0-15.1":0.07169,"15.2-15.3":0.07868,"15.4":0.08917,"15.5":0.1119,"15.6-15.8":1.00709,"16.0":0.22904,"16.1":0.47207,"16.2":0.22904,"16.3":0.39689,"16.4":0.08392,"16.5":0.1696,"16.6-16.7":1.35153,"17.0":0.14687,"17.1":0.23953,"17.2":0.25002,"17.3":0.46158,"17.4":10.48177,"17.5":0.73958,"17.6":0},P:{"4":0.20465,"20":0.09209,"21":0.0307,"22":0.13302,"23":0.27627,"24":0.16372,"25":0.41953,"5.0-5.4":0.02046,"6.2-6.4":0.0307,"7.2-7.4":0.20465,_:"8.2 10.1 12.0 15.0 17.0","9.2":0.01023,"11.1-11.2":0.01023,"13.0":0.06139,"14.0":0.01023,"16.0":0.10232,"18.0":0.01023,"19.0":0.06139},I:{"0":0.02608,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.62705,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00127,"9":0.00127,"10":0.00127,"11":0.00381,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.77511},R:{_:"0"},M:{"0":0.07856},Q:{_:"14.9"},O:{"0":0.14839},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/GN.js b/node_modules/caniuse-lite/data/regions/GN.js index c63ec0d73..2475b8b36 100644 --- a/node_modules/caniuse-lite/data/regions/GN.js +++ b/node_modules/caniuse-lite/data/regions/GN.js @@ -1 +1 @@ -module.exports={C:{"49":0.00203,"50":0.00203,"52":0.00203,"56":0.00203,"71":0.00203,"72":0.00814,"78":0.00203,"87":0.00203,"92":0.00203,"97":0.00203,"107":0.00203,"108":0.00407,"109":0.01424,"115":0.02034,"117":0.00203,"120":0.00203,"125":0.00203,"126":0.00407,"127":0.03254,"128":0.03661,"130":0.00203,"131":0.00407,"133":0.00203,"135":0.00203,"136":0.00814,"137":0.0061,"138":0.08746,"139":0.60206,"140":0.09356,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 74 75 76 77 79 80 81 82 83 84 85 86 88 89 90 91 93 94 95 96 98 99 100 101 102 103 104 105 106 110 111 112 113 114 116 118 119 121 122 123 124 129 132 134 141 142 143 3.5 3.6"},D:{"28":0.00203,"33":0.01017,"38":0.00407,"39":0.00407,"40":0.00203,"41":0.00203,"42":0.00203,"43":0.00814,"44":0.00203,"45":0.00407,"46":0.0122,"47":0.0061,"48":0.00814,"49":0.00407,"50":0.00203,"51":0.00203,"52":0.00203,"53":0.00203,"55":0.00203,"56":0.00203,"57":0.0061,"58":0.00407,"59":0.00407,"64":0.00203,"66":0.00407,"67":0.0061,"68":0.00203,"69":0.01627,"70":0.02237,"71":0.00814,"72":0.00203,"73":0.00203,"74":0.00203,"75":0.01017,"77":0.00407,"78":0.01017,"80":0.15865,"81":0.00814,"83":0.0061,"84":0.00407,"86":0.00203,"87":0.06102,"88":0.00407,"89":0.0061,"90":0.00407,"91":0.00814,"92":0.00203,"93":0.00814,"96":0.00814,"99":0.00407,"101":0.00203,"103":0.0122,"105":0.02441,"107":0.00203,"109":0.12814,"110":0.00203,"111":0.0061,"113":0.02644,"114":0.00407,"116":0.03051,"118":0.02848,"119":0.03458,"120":0.01424,"121":0.00203,"122":0.04068,"123":0.01017,"124":0.00814,"125":1.06785,"126":0.03458,"127":0.02034,"128":0.12814,"129":0.00407,"130":0.02034,"131":0.03661,"132":0.04068,"133":0.03865,"134":0.06305,"135":0.08339,"136":1.0231,"137":4.84702,"138":0.1912,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 34 35 36 37 54 60 61 62 63 65 76 79 85 94 95 97 98 100 102 104 106 108 112 115 117 139 140 141"},F:{"42":0.00407,"46":0.00203,"56":0.00407,"64":0.00203,"79":0.01831,"86":0.00203,"88":0.01627,"89":0.00407,"90":0.00203,"95":0.02034,"113":0.00203,"114":0.00407,"116":0.0061,"117":0.01424,_:"9 11 12 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 43 44 45 47 48 49 50 51 52 53 54 55 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02441,"15":0.0061,"17":0.01017,"18":0.05695,"84":0.02644,"85":0.01831,"89":0.01017,"90":0.02441,"92":0.09356,"99":0.00407,"100":0.04678,"109":0.01017,"120":0.00814,"121":0.00203,"122":0.01017,"124":0.00203,"125":0.00407,"126":0.00407,"128":0.42714,"129":0.18103,"130":0.01424,"131":0.01831,"132":0.0061,"133":0.02848,"134":0.02237,"135":0.05695,"136":0.29696,"137":1.85297,"138":0.24611,_:"13 14 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 123 127"},E:{"11":0.00814,"12":0.00407,"14":0.00814,_:"0 4 5 6 7 8 9 10 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.0 17.2 17.3 17.4 18.1 26.0","5.1":0.00203,"11.1":0.00203,"13.1":0.01627,"14.1":0.0061,"15.6":0.0122,"16.1":0.00407,"16.4":0.00814,"16.6":0.01424,"17.1":0.01627,"17.5":0.00203,"17.6":0.05695,"18.0":0.00814,"18.2":0.0122,"18.3":0.02441,"18.4":0.0122,"18.5":0.18103},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00229,"5.0-5.1":0,"6.0-6.1":0.00458,"7.0-7.1":0.00458,"8.1-8.4":0,"9.0-9.2":0.00229,"9.3":0.01373,"10.0-10.2":0.00114,"10.3":0.02288,"11.0-11.2":0.14642,"11.3-11.4":0.00801,"12.0-12.1":0.00229,"12.2-12.5":0.07664,"13.0-13.1":0.00114,"13.2":0.00343,"13.3":0.00229,"13.4-13.7":0.01258,"14.0-14.4":0.02974,"14.5-14.8":0.02974,"15.0-15.1":0.02059,"15.2-15.3":0.02059,"15.4":0.02517,"15.5":0.02745,"15.6-15.8":0.35461,"16.0":0.0469,"16.1":0.09609,"16.2":0.04919,"16.3":0.09037,"16.4":0.02059,"16.5":0.03661,"16.6-16.7":0.44498,"17.0":0.02402,"17.1":0.04232,"17.2":0.03317,"17.3":0.0469,"17.4":0.08351,"17.5":0.17502,"17.6-17.7":0.45757,"18.0":0.11325,"18.1":0.25509,"18.2":0.13498,"18.3":0.57997,"18.4":0.61543,"18.5":7.21469,"26.0":0},P:{"4":0.02037,"20":0.02037,"21":0.02037,"22":0.16297,"23":0.08148,"24":0.29538,"25":0.82502,"26":0.08148,"27":0.5602,"28":1.6704,"5.0-5.4":0.01019,"6.2-6.4":0.01019,"7.2-7.4":0.18334,_:"8.2 10.1 12.0 16.0 17.0","9.2":0.02037,"11.1-11.2":0.01019,"13.0":0.01019,"14.0":0.02037,"15.0":0.02037,"18.0":0.02037,"19.0":0.05093},I:{"0":0.05567,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.75083,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00814,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00797,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":67.11494},R:{_:"0"},M:{"0":0.03186},Q:{"14.9":0.08763},O:{"0":0.74084},H:{"0":0.46}}; +module.exports={C:{"34":0.00129,"35":0.00129,"46":0.00129,"49":0.00129,"64":0.00129,"72":0.00129,"78":0.00259,"109":0.00129,"111":0.00129,"115":0.01681,"119":0.00129,"123":0.00129,"124":0.00129,"125":0.12801,"126":0.08922,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 36 37 38 39 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 113 114 116 117 118 120 121 122 127 128 129 3.5 3.6"},D:{"19":0.00259,"34":0.00129,"48":0.00129,"54":0.00129,"55":0.00129,"58":0.00129,"59":0.00129,"68":0.00259,"69":0.00129,"70":0.00129,"74":0.00129,"78":0.00129,"79":0.00129,"81":0.02586,"86":0.00129,"87":0.00776,"88":0.00259,"91":0.00129,"94":0.00517,"95":0.00129,"97":0.00129,"99":0.01293,"102":0.00129,"103":0.02457,"105":0.00259,"106":0.00259,"108":0.00129,"109":0.07887,"110":0.00129,"111":0.00129,"112":0.00388,"114":0.00517,"115":0.00259,"116":0.00647,"117":0.00259,"118":0.00129,"119":0.02586,"120":0.0194,"121":0.00776,"122":0.02198,"123":0.0931,"124":1.05121,"125":0.36075,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 56 57 60 61 62 63 64 65 66 67 71 72 73 75 76 77 80 83 84 85 89 90 92 93 96 98 100 101 104 107 113 126 127 128"},F:{"42":0.00129,"95":0.00129,"102":0.00129,"108":0.00259,"109":0.08017,"110":0.00776,_:"9 11 12 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00517,"14":0.00129,"17":0.00129,"18":0.04008,"84":0.00129,"89":0.00129,"90":0.00129,"92":0.00517,"100":0.00259,"103":0.00647,"114":0.00259,"119":0.00129,"120":0.00388,"121":0.00517,"122":0.00259,"123":0.01034,"124":0.37626,"125":0.12154,_:"13 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 109 110 111 112 113 115 116 117 118"},E:{"11":0.00129,"12":0.00129,"14":0.00388,_:"0 4 5 6 7 8 9 10 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.2 16.4 17.3 17.6","13.1":0.02845,"14.1":0.00388,"15.4":0.00129,"15.6":0.02198,"16.1":0.00129,"16.3":0.00129,"16.5":0.00129,"16.6":0.00129,"17.0":0.00259,"17.1":0.00259,"17.2":0.00388,"17.4":0.01552,"17.5":0.00776},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0018,"5.0-5.1":0.0018,"6.0-6.1":0.00451,"7.0-7.1":0.00631,"8.1-8.4":0.0018,"9.0-9.2":0.00451,"9.3":0.02073,"10.0-10.2":0.0036,"10.3":0.03244,"11.0-11.2":0.04776,"11.3-11.4":0.00901,"12.0-12.1":0.00541,"12.2-12.5":0.13067,"13.0-13.1":0.0027,"13.2":0.01262,"13.3":0.00631,"13.4-13.7":0.02884,"14.0-14.4":0.04956,"14.5-14.8":0.0766,"15.0-15.1":0.03695,"15.2-15.3":0.04055,"15.4":0.04596,"15.5":0.05768,"15.6-15.8":0.51908,"16.0":0.11805,"16.1":0.24332,"16.2":0.11805,"16.3":0.20457,"16.4":0.04326,"16.5":0.08741,"16.6-16.7":0.69661,"17.0":0.0757,"17.1":0.12346,"17.2":0.12887,"17.3":0.23791,"17.4":5.40254,"17.5":0.3812,"17.6":0},P:{"4":0.06069,"20":0.05057,"21":0.34389,"22":0.78893,"23":0.35401,"24":0.36412,"25":0.42481,"5.0-5.4":0.01011,"6.2-6.4":0.02023,"7.2-7.4":0.24275,"8.2":0.01011,"9.2":0.0708,_:"10.1 12.0","11.1-11.2":0.04046,"13.0":0.08092,"14.0":0.02023,"15.0":0.02023,"16.0":0.1416,"17.0":0.02023,"18.0":0.05057,"19.0":0.57652},I:{"0":0.01735,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.21529,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00647,_:"6 7 8 9 10 5.5"},S:{"2.5":0.10448,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.28341},R:{_:"0"},M:{"0":0.00871},Q:{"14.9":0.01741},O:{"0":0.19155},H:{"0":1.51}}; diff --git a/node_modules/caniuse-lite/data/regions/GP.js b/node_modules/caniuse-lite/data/regions/GP.js index 62ec32f3a..6b3b69ce4 100644 --- a/node_modules/caniuse-lite/data/regions/GP.js +++ b/node_modules/caniuse-lite/data/regions/GP.js @@ -1 +1 @@ -module.exports={C:{"52":0.00307,"78":0.00307,"91":0.00307,"107":0.00307,"109":0.00307,"115":0.12276,"127":0.00307,"128":0.03069,"129":0.00307,"130":0.00307,"134":0.00921,"135":0.01535,"136":0.01535,"137":0.07673,"138":0.089,"139":1.89971,"140":0.24859,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 131 132 133 141 142 143 3.5 3.6"},D:{"39":0.00307,"40":0.00307,"41":0.00921,"42":0.00307,"43":0.00614,"44":0.00614,"45":0.00614,"46":0.00307,"47":0.00614,"48":0.00614,"49":0.00614,"50":0.00307,"51":0.00921,"52":0.00921,"53":0.00307,"54":0.00307,"55":0.00614,"56":0.00921,"57":0.00921,"58":0.01228,"59":0.00614,"60":0.00921,"63":0.00307,"65":0.00614,"70":0.00614,"72":0.00307,"79":0.00921,"87":0.01228,"88":0.03376,"91":0.00307,"97":0.00307,"100":0.00307,"102":0.00921,"103":0.02148,"104":0.00921,"107":0.00614,"108":0.00307,"109":0.32531,"111":0.00614,"114":0.05524,"115":0.00307,"116":0.24552,"117":0.00307,"119":0.01228,"120":0.00921,"122":0.05217,"123":0.00614,"124":0.00921,"125":0.42352,"126":0.03376,"127":0.01535,"128":0.07366,"129":0.00307,"130":0.10742,"131":0.03069,"132":0.03683,"133":0.07059,"134":0.07366,"135":0.10128,"136":1.51609,"137":10.2566,"138":0.50639,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 66 67 68 69 71 73 74 75 76 77 78 80 81 83 84 85 86 89 90 92 93 94 95 96 98 99 101 105 106 110 112 113 118 121 139 140 141"},F:{"40":0.00307,"46":0.02148,"82":0.00614,"89":0.00307,"90":0.00307,"95":0.00307,"102":0.00307,"112":0.03376,"117":0.02148,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00614,"85":0.00921,"92":0.01228,"108":0.00614,"109":0.00921,"114":0.00307,"117":0.00614,"118":0.00307,"120":0.00614,"121":0.00614,"122":0.00307,"123":0.00307,"124":0.00307,"125":0.00307,"126":0.00614,"128":0.02148,"129":0.01228,"130":0.01228,"131":0.01535,"132":0.00307,"133":0.00614,"134":0.05831,"135":0.04604,"136":0.62301,"137":3.88842,"138":0.4849,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 119 127"},E:{"14":0.00614,"15":0.00307,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1","13.1":0.05217,"14.1":0.0399,"15.1":0.00307,"15.2-15.3":0.00307,"15.4":0.04297,"15.5":0.00307,"15.6":0.10742,"16.0":0.00614,"16.1":0.03376,"16.2":0.02148,"16.3":0.01841,"16.4":0.01228,"16.5":0.00614,"16.6":0.11969,"17.0":0.00307,"17.1":0.07366,"17.2":0.01228,"17.3":0.02455,"17.4":0.04604,"17.5":0.09514,"17.6":0.33452,"18.0":0.04297,"18.1":0.0399,"18.2":0.03069,"18.3":0.13504,"18.4":0.23324,"18.5":1.22453,"26.0":0.00614},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00285,"5.0-5.1":0,"6.0-6.1":0.00569,"7.0-7.1":0.00569,"8.1-8.4":0,"9.0-9.2":0.00285,"9.3":0.01707,"10.0-10.2":0.00142,"10.3":0.02845,"11.0-11.2":0.18211,"11.3-11.4":0.00996,"12.0-12.1":0.00285,"12.2-12.5":0.09532,"13.0-13.1":0.00142,"13.2":0.00427,"13.3":0.00285,"13.4-13.7":0.01565,"14.0-14.4":0.03699,"14.5-14.8":0.03699,"15.0-15.1":0.02561,"15.2-15.3":0.02561,"15.4":0.0313,"15.5":0.03415,"15.6-15.8":0.44105,"16.0":0.05833,"16.1":0.11951,"16.2":0.06118,"16.3":0.1124,"16.4":0.02561,"16.5":0.04553,"16.6-16.7":0.55344,"17.0":0.02988,"17.1":0.05264,"17.2":0.04126,"17.3":0.05833,"17.4":0.10386,"17.5":0.21768,"17.6-17.7":0.56909,"18.0":0.14085,"18.1":0.31727,"18.2":0.16788,"18.3":0.72132,"18.4":0.76543,"18.5":8.97315,"26.0":0},P:{"4":0.03133,"20":0.15665,"22":0.02089,"23":0.04177,"24":0.04177,"25":0.06266,"26":0.09399,"27":0.30286,"28":2.19313,_:"21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02089,"19.0":0.02089},I:{"0":0.27673,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00022},K:{"0":0.09009,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00307,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.78759},R:{_:"0"},M:{"0":0.60984},Q:{_:"14.9"},O:{"0":0.02079},H:{"0":0}}; +module.exports={C:{"68":0.0081,"75":0.00405,"78":0.02429,"84":0.03239,"89":0.00405,"109":0.00405,"112":0.0081,"114":0.00405,"115":0.94747,"117":0.06478,"118":0.00405,"119":0.00405,"121":0.00405,"122":0.03239,"123":0.02025,"124":0.05264,"125":1.4212,"126":1.30378,"127":0.00405,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 79 80 81 82 83 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 116 120 128 129 3.5 3.6"},D:{"47":0.00405,"49":0.00405,"51":0.0081,"56":0.00405,"61":0.00405,"65":0.0162,"67":0.00405,"68":0.0081,"72":0.00405,"75":0.00405,"79":0.00405,"81":0.00405,"87":0.0081,"88":0.00405,"90":0.00405,"92":0.00405,"96":0.00405,"99":0.00405,"101":0.00405,"102":0.0162,"103":0.06883,"105":0.04859,"106":0.01215,"108":0.00405,"109":0.63164,"110":0.00405,"111":0.00405,"112":0.01215,"113":0.00405,"114":0.03239,"115":0.00405,"116":0.16196,"118":0.00405,"119":0.03644,"120":0.02834,"121":0.10527,"122":0.13362,"123":0.83409,"124":14.23224,"125":4.80616,"126":0.05264,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 52 53 54 55 57 58 59 60 62 63 64 66 69 70 71 73 74 76 77 78 80 83 84 85 86 89 91 93 94 95 97 98 100 104 107 117 127 128"},F:{"36":0.0162,"46":0.02834,"95":0.08098,"102":0.00405,"107":0.36846,"108":0.0081,"109":0.79765,"110":0.04049,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0081,"17":0.0081,"18":0.00405,"92":0.00405,"97":0.00405,"100":0.01215,"101":0.00405,"105":0.00405,"107":0.02834,"109":0.03644,"111":0.00405,"112":0.00405,"114":0.00405,"115":0.00405,"116":0.00405,"117":0.01215,"118":0.10932,"119":0.0081,"120":0.02025,"121":0.08098,"122":0.02025,"123":0.1903,"124":4.15832,"125":2.12977,_:"12 13 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 98 99 102 103 104 106 108 110 113"},E:{"14":0.13362,"15":0.0081,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00405,"13.1":0.17816,"14.1":0.14172,"15.1":0.0081,"15.2-15.3":0.02025,"15.4":0.0081,"15.5":0.04454,"15.6":0.45349,"16.0":0.02834,"16.1":0.16601,"16.2":0.10123,"16.3":0.06478,"16.4":0.05669,"16.5":0.06478,"16.6":0.38466,"17.0":0.08503,"17.1":0.08908,"17.2":0.6033,"17.3":0.12957,"17.4":1.95567,"17.5":0.99605},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00324,"5.0-5.1":0.00324,"6.0-6.1":0.00811,"7.0-7.1":0.01136,"8.1-8.4":0.00324,"9.0-9.2":0.00811,"9.3":0.03731,"10.0-10.2":0.00649,"10.3":0.0584,"11.0-11.2":0.08598,"11.3-11.4":0.01622,"12.0-12.1":0.00973,"12.2-12.5":0.23523,"13.0-13.1":0.00487,"13.2":0.02271,"13.3":0.01136,"13.4-13.7":0.05191,"14.0-14.4":0.08922,"14.5-14.8":0.13789,"15.0-15.1":0.06651,"15.2-15.3":0.073,"15.4":0.08273,"15.5":0.10382,"15.6-15.8":0.93441,"16.0":0.21251,"16.1":0.43801,"16.2":0.21251,"16.3":0.36825,"16.4":0.07787,"16.5":0.15736,"16.6-16.7":1.25399,"17.0":0.13627,"17.1":0.22225,"17.2":0.23198,"17.3":0.42827,"17.4":9.72534,"17.5":0.68621,"17.6":0},P:{"4":0.07406,"20":0.14811,"21":0.07406,"22":0.0529,"23":0.09522,"24":0.47608,"25":3.93559,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0","6.2-6.4":0.01058,"7.2-7.4":0.02116,"13.0":0.02116,"14.0":0.11638,"16.0":0.02116,"17.0":0.01058,"18.0":0.01058,"19.0":0.07406},I:{"0":0.01186,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.12497,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0081,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.19287},R:{_:"0"},M:{"0":0.34516},Q:{_:"14.9"},O:{"0":0.00595},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GQ.js b/node_modules/caniuse-lite/data/regions/GQ.js index f40bb264e..3af3e2af3 100644 --- a/node_modules/caniuse-lite/data/regions/GQ.js +++ b/node_modules/caniuse-lite/data/regions/GQ.js @@ -1 +1 @@ -module.exports={C:{"34":0.006,"48":0.00839,"52":0.0012,"57":0.0036,"64":0.0024,"89":0.0036,"102":0.0012,"115":0.07074,"125":0.006,"132":0.01439,"133":0.00839,"135":0.0024,"136":0.0048,"137":0.01199,"138":0.02518,"139":0.45082,"140":0.04436,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 134 141 142 143 3.5 3.6"},D:{"39":0.0024,"40":0.0024,"41":0.0036,"44":0.0012,"45":0.006,"47":0.01319,"48":0.0012,"49":0.0036,"50":0.0036,"51":0.006,"52":0.0036,"53":0.0024,"54":0.0036,"55":0.0048,"56":0.0048,"57":0.0024,"58":0.03237,"59":0.0036,"60":0.0024,"64":0.0012,"66":0.0048,"68":0.0024,"71":0.0036,"73":0.0036,"79":0.0024,"81":0.0012,"83":0.02758,"85":0.0012,"86":0.00959,"87":0.01918,"89":0.0036,"90":0.01799,"92":0.0012,"103":0.05755,"106":0.0036,"108":0.0012,"109":0.27697,"111":0.01319,"114":0.01679,"116":0.00719,"118":0.00959,"119":0.10431,"120":0.00839,"121":0.0048,"122":0.02278,"124":0.0012,"125":0.51437,"126":0.0036,"127":0.0048,"128":0.0036,"129":0.0012,"130":0.00959,"131":0.04077,"132":0.01679,"133":0.00959,"134":0.00839,"135":0.13669,"136":0.40766,"137":3.16896,"138":0.14148,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 42 43 46 61 62 63 65 67 69 70 72 74 75 76 77 78 80 84 88 91 93 94 95 96 97 98 99 100 101 102 104 105 107 110 112 113 115 117 123 139 140 141"},F:{"40":0.0024,"89":0.0036,"95":0.01559,"113":0.0036,"114":0.00719,"117":0.01199,_:"9 11 12 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0048,"14":0.0012,"15":0.0012,"17":0.0012,"18":0.01319,"84":0.0024,"85":0.0012,"90":0.0012,"92":0.05276,"99":0.0036,"100":0.01679,"103":0.0036,"109":0.01799,"113":0.0012,"114":0.00719,"115":0.0024,"116":0.0036,"117":0.006,"120":0.02758,"122":0.0036,"123":0.0024,"124":0.01799,"127":0.0036,"128":0.0036,"129":0.006,"130":0.0036,"131":0.03477,"132":0.0036,"133":0.01918,"134":0.02758,"135":0.02878,"136":0.29016,"137":1.71937,"138":0.05515,_:"13 16 79 80 81 83 86 87 88 89 91 93 94 95 96 97 98 101 102 104 105 106 107 108 110 111 112 118 119 121 125 126"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 15.5 16.1 16.2 16.6 17.1 17.4 18.0 18.1 18.2 26.0","13.1":0.01079,"14.1":0.0012,"15.1":0.0012,"15.2-15.3":0.0036,"15.6":0.02278,"16.0":0.0012,"16.3":0.0012,"16.4":0.0012,"16.5":0.0036,"17.0":0.0012,"17.2":0.01918,"17.3":0.0024,"17.5":0.0036,"17.6":0.02758,"18.3":0.02398,"18.4":0.0048,"18.5":0.04436},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00071,"5.0-5.1":0,"6.0-6.1":0.00141,"7.0-7.1":0.00141,"8.1-8.4":0,"9.0-9.2":0.00071,"9.3":0.00424,"10.0-10.2":0.00035,"10.3":0.00706,"11.0-11.2":0.04518,"11.3-11.4":0.00247,"12.0-12.1":0.00071,"12.2-12.5":0.02365,"13.0-13.1":0.00035,"13.2":0.00106,"13.3":0.00071,"13.4-13.7":0.00388,"14.0-14.4":0.00918,"14.5-14.8":0.00918,"15.0-15.1":0.00635,"15.2-15.3":0.00635,"15.4":0.00777,"15.5":0.00847,"15.6-15.8":0.10942,"16.0":0.01447,"16.1":0.02965,"16.2":0.01518,"16.3":0.02788,"16.4":0.00635,"16.5":0.01129,"16.6-16.7":0.1373,"17.0":0.00741,"17.1":0.01306,"17.2":0.01024,"17.3":0.01447,"17.4":0.02577,"17.5":0.054,"17.6-17.7":0.14118,"18.0":0.03494,"18.1":0.07871,"18.2":0.04165,"18.3":0.17895,"18.4":0.18989,"18.5":2.22612,"26.0":0},P:{"4":0.04094,"20":0.01023,"21":0.01023,"23":0.02047,"25":0.02047,"26":0.01023,"27":0.11258,"28":0.2047,_:"22 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01023},I:{"0":0.02636,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.77338,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.32613,_:"6 7 8 9 10 5.5"},S:{"2.5":0.36088,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":85.5683},R:{_:"0"},M:{"0":0.0088},Q:{"14.9":0.0088},O:{"0":0.07042},H:{"0":0.01}}; +module.exports={C:{"77":0.03525,"78":0.04229,"97":0.0282,"99":0.02115,"109":0.00705,"110":0.0141,"115":0.65556,"118":0.02115,"124":0.02115,"125":1.26177,"126":1.17718,"127":0.0141,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 100 101 102 103 104 105 106 107 108 111 112 113 114 116 117 119 120 121 122 123 128 129 3.5 3.6"},D:{"71":0.00705,"72":0.09164,"79":0.0141,"81":0.00705,"87":0.00705,"88":0.00705,"89":0.00705,"90":0.00705,"92":0.00705,"102":0.0141,"107":0.00705,"109":1.64947,"117":0.05639,"118":0.00705,"119":0.00705,"120":0.02115,"121":0.00705,"122":0.00705,"123":0.09869,"124":6.85868,"125":2.0865,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 74 75 76 77 78 80 83 84 85 86 91 93 94 95 96 97 98 99 100 101 103 104 105 106 108 110 111 112 113 114 115 116 126 127 128"},F:{"56":0.00705,"95":0.03525,"109":0.41589,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0141,"18":0.0141,"89":0.0141,"92":0.0282,"103":0.00705,"104":0.04934,"109":0.04229,"110":0.06344,"114":0.00705,"117":0.00705,"118":0.08459,"119":2.42486,"120":0.29606,"121":0.40179,"122":3.08746,"123":1.80454,"124":27.68847,"125":17.55201,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 100 101 102 105 106 107 108 111 112 113 115 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.5 17.6","15.6":0.00705,"16.6":0.00705,"17.1":0.00705,"17.3":0.00705,"17.4":0.0141},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00107,"5.0-5.1":0.00107,"6.0-6.1":0.00268,"7.0-7.1":0.00375,"8.1-8.4":0.00107,"9.0-9.2":0.00268,"9.3":0.01231,"10.0-10.2":0.00214,"10.3":0.01926,"11.0-11.2":0.02836,"11.3-11.4":0.00535,"12.0-12.1":0.00321,"12.2-12.5":0.07758,"13.0-13.1":0.00161,"13.2":0.00749,"13.3":0.00375,"13.4-13.7":0.01712,"14.0-14.4":0.02943,"14.5-14.8":0.04548,"15.0-15.1":0.02194,"15.2-15.3":0.02408,"15.4":0.02729,"15.5":0.03424,"15.6-15.8":0.30817,"16.0":0.07009,"16.1":0.14445,"16.2":0.07009,"16.3":0.12145,"16.4":0.02568,"16.5":0.0519,"16.6-16.7":0.41357,"17.0":0.04494,"17.1":0.0733,"17.2":0.07651,"17.3":0.14124,"17.4":3.20742,"17.5":0.22631,"17.6":0},P:{"4":0.03508,"21":0.02339,"22":0.02339,"23":0.02339,"24":0.04678,"25":0.15203,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","9.2":0.01169},I:{"0":0.0147,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.32166,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":1.03285,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.10623},R:{_:"0"},M:{"0":0.0059},Q:{"14.9":0.00295},O:{"0":0.12984},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GR.js b/node_modules/caniuse-lite/data/regions/GR.js index a6590aceb..4ae9c08f0 100644 --- a/node_modules/caniuse-lite/data/regions/GR.js +++ b/node_modules/caniuse-lite/data/regions/GR.js @@ -1 +1 @@ -module.exports={C:{"51":0.00559,"52":0.10612,"68":0.24574,"78":0.01117,"102":0.01117,"105":0.31835,"113":0.00559,"115":1.12259,"120":0.00559,"122":0.00559,"123":0.01676,"125":0.0391,"127":0.02793,"128":0.06702,"129":0.00559,"132":0.00559,"133":0.0391,"134":0.01676,"135":0.01676,"136":0.03351,"137":0.02793,"138":0.13404,"139":3.24489,"140":0.41329,"141":0.01676,"142":0.00559,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 114 116 117 118 119 121 124 126 130 131 143 3.5 3.6"},D:{"38":0.00559,"39":0.00559,"40":0.00559,"41":0.00559,"42":0.00559,"43":0.00559,"44":0.00559,"45":0.00559,"46":0.00559,"47":0.24016,"48":0.00559,"49":0.05027,"50":0.00559,"51":0.00559,"52":0.00559,"53":0.00559,"54":0.00559,"55":0.00559,"56":0.00559,"57":0.05585,"58":0.00559,"59":0.00559,"60":0.00559,"68":0.3351,"73":0.19548,"74":0.3351,"76":0.00559,"78":0.00559,"79":0.04468,"81":0.00559,"85":0.00559,"87":0.02234,"89":0.01676,"91":0.00559,"94":0.00559,"95":0.00559,"98":0.00559,"100":0.00559,"101":0.01676,"102":0.20665,"103":0.05027,"104":0.02234,"105":0.04468,"106":0.00559,"107":0.01117,"108":0.02234,"109":6.00946,"110":0.01117,"111":0.00559,"112":0.00559,"114":0.01117,"115":0.01117,"116":0.08936,"118":0.0391,"119":0.03351,"120":0.01117,"121":0.02234,"122":0.09495,"123":0.01676,"124":0.08378,"125":0.10053,"126":0.02793,"127":0.10612,"128":0.06144,"129":0.01117,"130":0.06702,"131":0.0391,"132":0.02793,"133":0.0391,"134":0.07261,"135":0.17314,"136":3.66935,"137":24.80299,"138":0.89919,"139":0.00559,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 69 70 71 72 75 77 80 83 84 86 88 90 92 93 96 97 99 113 117 140 141"},F:{"31":0.53058,"36":0.01117,"40":0.52499,"46":0.45239,"89":0.01676,"90":0.00559,"95":0.05585,"114":0.01676,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"102":0.00559,"109":0.06702,"121":0.00559,"122":0.00559,"126":0.00559,"129":0.00559,"130":0.00559,"131":0.00559,"132":0.00559,"134":0.00559,"135":0.16755,"136":0.51941,"137":3.4627,"138":0.20106,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 123 124 125 127 128 133"},E:{"12":0.01676,"14":0.00559,_:"0 4 5 6 7 8 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 26.0","12.1":0.00559,"13.1":0.01117,"14.1":0.02793,"15.4":0.21223,"15.5":0.01117,"15.6":0.14521,"16.0":0.01117,"16.1":0.01117,"16.2":0.00559,"16.3":0.01676,"16.4":0.01117,"16.5":0.02234,"16.6":0.09495,"17.0":0.00559,"17.1":0.06702,"17.2":0.01117,"17.3":0.01676,"17.4":0.0391,"17.5":0.02793,"17.6":0.09495,"18.0":0.01117,"18.1":0.02793,"18.2":0.01117,"18.3":0.05585,"18.4":0.06144,"18.5":0.80424},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00158,"5.0-5.1":0,"6.0-6.1":0.00317,"7.0-7.1":0.00317,"8.1-8.4":0,"9.0-9.2":0.00158,"9.3":0.0095,"10.0-10.2":0.00079,"10.3":0.01583,"11.0-11.2":0.10133,"11.3-11.4":0.00554,"12.0-12.1":0.00158,"12.2-12.5":0.05304,"13.0-13.1":0.00079,"13.2":0.00237,"13.3":0.00158,"13.4-13.7":0.00871,"14.0-14.4":0.02058,"14.5-14.8":0.02058,"15.0-15.1":0.01425,"15.2-15.3":0.01425,"15.4":0.01742,"15.5":0.019,"15.6-15.8":0.2454,"16.0":0.03246,"16.1":0.0665,"16.2":0.03404,"16.3":0.06254,"16.4":0.01425,"16.5":0.02533,"16.6-16.7":0.30794,"17.0":0.01662,"17.1":0.02929,"17.2":0.02296,"17.3":0.03246,"17.4":0.05779,"17.5":0.12112,"17.6-17.7":0.31664,"18.0":0.07837,"18.1":0.17653,"18.2":0.09341,"18.3":0.40135,"18.4":0.42589,"18.5":4.99268,"26.0":0},P:{"4":0.26221,"20":0.01049,"21":0.01049,"22":0.01049,"23":0.03147,"24":0.02098,"25":0.03147,"26":0.04195,"27":0.10489,"28":1.38449,"5.0-5.4":0.01049,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.01049,"16.0":0.04195,"19.0":0.01049},I:{"0":0.10137,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.25166,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.23457,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00442,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.8663},R:{_:"0"},M:{"0":0.29139},Q:{_:"14.9"},O:{"0":0.03532},H:{"0":0}}; +module.exports={C:{"28":0.00455,"52":0.28646,"68":0.15915,"71":0.00455,"72":0.00455,"75":0.00455,"78":0.01364,"86":0.01819,"88":0.02728,"99":0.00455,"102":0.00455,"103":0.00455,"105":0.15915,"107":0.00455,"108":0.00455,"109":0.00455,"111":0.00455,"112":0.05002,"113":0.00909,"115":1.65056,"116":0.00909,"117":0.00455,"118":0.00455,"119":0.00455,"120":0.00455,"121":0.00909,"122":0.00909,"123":0.01819,"124":0.05002,"125":1.41412,"126":1.5096,"127":0.01364,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 73 74 76 77 79 80 81 82 83 84 85 87 89 90 91 92 93 94 95 96 97 98 100 101 104 106 110 114 128 129 3.5 3.6"},D:{"34":0.15005,"38":0.27737,"39":0.13641,"47":0.15005,"49":0.03638,"57":0.00455,"73":0.29556,"76":0.00455,"79":0.36376,"80":0.00455,"81":0.00909,"83":0.00455,"85":0.00909,"86":0.00909,"87":0.02274,"88":0.00909,"89":0.01819,"90":0.00455,"91":0.00909,"92":0.00455,"93":0.02728,"94":0.00455,"95":0.00909,"96":0.00455,"97":0.00455,"99":0.05911,"100":0.00455,"101":0.00909,"102":0.13186,"103":0.03638,"104":0.00909,"105":0.04092,"106":0.01819,"107":0.00909,"108":0.00909,"109":5.73377,"110":0.00909,"111":0.00455,"112":0.01364,"113":0.03183,"114":0.03638,"115":0.01364,"116":0.10458,"117":0.00455,"118":0.00909,"119":0.04547,"120":0.05456,"121":0.03638,"122":0.15915,"123":0.46379,"124":14.06387,"125":6.47493,"126":0.00455,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 77 78 84 98 127 128"},F:{"25":0.14096,"31":0.55019,"40":0.3774,"46":0.30465,"77":0.00909,"95":0.04092,"102":0.00455,"107":0.11368,"108":0.00909,"109":0.75935,"110":0.05456,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.16369,"16":0.02728,"17":0.24554,"109":0.04092,"114":0.00455,"116":0.00455,"119":0.00455,"120":0.00909,"121":0.00455,"122":0.00909,"123":0.12277,"124":2.12345,"125":1.16858,_:"12 13 14 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 117 118"},E:{"14":0.01364,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00909,"13.1":0.02728,"14.1":0.03183,"15.1":0.00455,"15.2-15.3":0.00455,"15.4":0.15005,"15.5":0.00909,"15.6":0.08185,"16.0":0.00909,"16.1":0.01819,"16.2":0.01364,"16.3":0.03183,"16.4":0.00909,"16.5":0.01819,"16.6":0.15915,"17.0":0.00909,"17.1":0.02274,"17.2":0.02728,"17.3":0.03183,"17.4":0.54109,"17.5":0.08185},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00135,"5.0-5.1":0.00135,"6.0-6.1":0.00337,"7.0-7.1":0.00471,"8.1-8.4":0.00135,"9.0-9.2":0.00337,"9.3":0.01549,"10.0-10.2":0.00269,"10.3":0.02424,"11.0-11.2":0.03569,"11.3-11.4":0.00673,"12.0-12.1":0.00404,"12.2-12.5":0.09765,"13.0-13.1":0.00202,"13.2":0.00943,"13.3":0.00471,"13.4-13.7":0.02155,"14.0-14.4":0.03704,"14.5-14.8":0.05724,"15.0-15.1":0.02761,"15.2-15.3":0.03031,"15.4":0.03435,"15.5":0.0431,"15.6-15.8":0.3879,"16.0":0.08822,"16.1":0.18183,"16.2":0.08822,"16.3":0.15287,"16.4":0.03233,"16.5":0.06532,"16.6-16.7":0.52057,"17.0":0.05657,"17.1":0.09226,"17.2":0.0963,"17.3":0.17779,"17.4":4.03731,"17.5":0.28487,"17.6":0},P:{"4":0.25389,"20":0.02116,"21":0.09521,"22":0.05289,"23":0.10579,"24":0.1481,"25":1.77724,"5.0-5.4":0.01058,"6.2-6.4":0.03174,_:"7.2-7.4 10.1 12.0 15.0","8.2":0.01058,"9.2":0.05289,"11.1-11.2":0.01058,"13.0":0.01058,"14.0":0.01058,"16.0":0.01058,"17.0":0.01058,"18.0":0.01058,"19.0":0.02116},I:{"0":0.5649,"3":0,"4":0.00006,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00011,"4.2-4.3":0.00034,"4.4":0,"4.4.3-4.4.4":0.00125},K:{"0":0.21357,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00932,"11":0.18166,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.14349},R:{_:"0"},M:{"0":0.31627},Q:{_:"14.9"},O:{"0":0.04908},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/GT.js b/node_modules/caniuse-lite/data/regions/GT.js index bd794ea1a..15cfcb923 100644 --- a/node_modules/caniuse-lite/data/regions/GT.js +++ b/node_modules/caniuse-lite/data/regions/GT.js @@ -1 +1 @@ -module.exports={C:{"78":0.00211,"115":0.04433,"120":0.00844,"127":0.00211,"128":0.01267,"133":0.00422,"134":0.00211,"136":0.00211,"137":0.00422,"138":0.02955,"139":0.58053,"140":0.06966,"141":0.01267,"142":0.00422,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 129 130 131 132 135 143 3.5 3.6"},D:{"39":0.00211,"40":0.00211,"41":0.00211,"42":0.00211,"43":0.00211,"44":0.00211,"45":0.00211,"46":0.00211,"47":0.00211,"48":0.00211,"49":0.00422,"50":0.00211,"51":0.00211,"52":0.00211,"53":0.00211,"54":0.00211,"55":0.00422,"56":0.00211,"57":0.00211,"58":0.00211,"59":0.00211,"60":0.00211,"76":0.00422,"78":0.01478,"79":0.02533,"87":0.00844,"91":0.00211,"93":0.01056,"95":0.00211,"101":0.00422,"103":0.01689,"104":0.00211,"106":0.00211,"108":0.00422,"109":0.29554,"110":0.00211,"111":0.01478,"114":0.00422,"116":0.038,"119":0.00844,"120":0.00422,"121":0.00422,"122":0.03167,"123":0.01056,"124":0.00633,"125":0.30398,"126":0.019,"127":0.00422,"128":0.03589,"129":0.00844,"130":0.01689,"131":0.03378,"132":0.02533,"133":0.01478,"134":0.03378,"135":0.06333,"136":1.30671,"137":9.64727,"138":0.3061,"139":0.00211,"140":0.00422,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 80 81 83 84 85 86 88 89 90 92 94 96 97 98 99 100 102 105 107 112 113 115 117 118 141"},F:{"42":0.01689,"89":0.00844,"90":0.00633,"94":0.00211,"95":0.00633,"102":0.00211,"103":0.00211,"117":0.00422,_:"9 11 12 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00422,"109":0.00211,"121":0.00211,"122":0.00211,"123":0.00211,"124":0.00211,"125":0.00211,"126":0.00211,"127":0.00211,"128":0.00211,"129":0.00422,"130":0.00211,"131":0.00422,"132":0.00844,"133":0.00633,"134":0.01478,"135":0.01267,"136":0.2491,"137":1.67613,"138":0.11822,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120"},E:{"14":0.00422,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 17.0","5.1":0.00211,"13.1":0.00422,"14.1":0.01056,"15.2-15.3":0.00211,"15.4":0.00211,"15.5":0.01056,"15.6":0.03167,"16.0":0.00422,"16.1":0.01056,"16.2":0.00422,"16.3":0.00422,"16.4":0.00422,"16.5":0.00844,"16.6":0.04222,"17.1":0.02744,"17.2":0.00844,"17.3":0.00422,"17.4":0.01478,"17.5":0.02955,"17.6":0.08444,"18.0":0.00844,"18.1":0.01267,"18.2":0.01056,"18.3":0.04222,"18.4":0.07177,"18.5":0.55097,"26.0":0.00211},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00164,"5.0-5.1":0,"6.0-6.1":0.00328,"7.0-7.1":0.00328,"8.1-8.4":0,"9.0-9.2":0.00164,"9.3":0.00985,"10.0-10.2":0.00082,"10.3":0.01641,"11.0-11.2":0.10502,"11.3-11.4":0.00574,"12.0-12.1":0.00164,"12.2-12.5":0.05497,"13.0-13.1":0.00082,"13.2":0.00246,"13.3":0.00164,"13.4-13.7":0.00903,"14.0-14.4":0.02133,"14.5-14.8":0.02133,"15.0-15.1":0.01477,"15.2-15.3":0.01477,"15.4":0.01805,"15.5":0.01969,"15.6-15.8":0.25434,"16.0":0.03364,"16.1":0.06892,"16.2":0.03528,"16.3":0.06482,"16.4":0.01477,"16.5":0.02625,"16.6-16.7":0.31916,"17.0":0.01723,"17.1":0.03036,"17.2":0.02379,"17.3":0.03364,"17.4":0.05989,"17.5":0.12553,"17.6-17.7":0.32818,"18.0":0.08123,"18.1":0.18296,"18.2":0.09681,"18.3":0.41597,"18.4":0.44141,"18.5":5.17462,"26.0":0},P:{"4":0.0204,"22":0.0204,"23":0.0204,"24":0.04081,"25":0.04081,"26":0.03061,"27":0.09182,"28":1.66293,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0204},I:{"0":0.20477,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.14989,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.96801},R:{_:"0"},M:{"0":0.14989},Q:{_:"14.9"},O:{"0":0.01578},H:{"0":0}}; +module.exports={C:{"52":0.00359,"78":0.00359,"96":0.00359,"113":0.00359,"115":0.10041,"120":0.00717,"121":0.00359,"122":0.00717,"123":0.00717,"124":0.01793,"125":0.60962,"126":0.55583,"127":0.00717,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 128 129 3.5 3.6"},D:{"49":0.00359,"75":0.00359,"76":0.00359,"78":0.03586,"79":0.05379,"80":0.00359,"83":0.00359,"86":0.00359,"87":0.01793,"88":0.00717,"91":0.02869,"93":0.01076,"94":0.00359,"97":0.00717,"99":0.00717,"100":0.00359,"101":0.00359,"102":0.01076,"103":0.05379,"104":0.00359,"105":0.00717,"106":0.00717,"107":0.00717,"108":0.01076,"109":1.6137,"110":0.00717,"111":0.02152,"112":0.01434,"113":0.00359,"114":0.01434,"115":0.01434,"116":0.1291,"117":0.00717,"118":0.00717,"119":0.11834,"120":0.06813,"121":0.06813,"122":0.20799,"123":0.48411,"124":14.79584,"125":6.26833,"126":0.00717,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 81 84 85 89 90 92 95 96 98 127 128"},F:{"36":0.00359,"94":0.01434,"95":0.02869,"107":0.4877,"108":0.01076,"109":1.53481,"110":0.0502,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.00359,"92":0.01076,"100":0.00359,"109":0.02869,"112":0.00359,"114":0.00717,"116":0.00359,"117":0.00717,"118":0.00359,"119":0.00359,"120":0.01076,"121":0.01434,"122":0.0251,"123":0.06455,"124":2.38469,"125":1.31248,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115"},E:{"14":0.00717,"15":0.00359,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.02152,"12.1":0.00359,"13.1":0.02152,"14.1":0.03945,"15.1":0.00359,"15.2-15.3":0.00717,"15.4":0.00359,"15.5":0.0251,"15.6":0.07889,"16.0":0.00717,"16.1":0.02869,"16.2":0.03945,"16.3":0.02869,"16.4":0.01076,"16.5":0.02152,"16.6":0.1542,"17.0":0.03227,"17.1":0.04303,"17.2":0.07531,"17.3":0.06455,"17.4":0.90367,"17.5":0.18289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00223,"5.0-5.1":0.00223,"6.0-6.1":0.00557,"7.0-7.1":0.00779,"8.1-8.4":0.00223,"9.0-9.2":0.00557,"9.3":0.02561,"10.0-10.2":0.00445,"10.3":0.04008,"11.0-11.2":0.05901,"11.3-11.4":0.01113,"12.0-12.1":0.00668,"12.2-12.5":0.16145,"13.0-13.1":0.00334,"13.2":0.01559,"13.3":0.00779,"13.4-13.7":0.03563,"14.0-14.4":0.06124,"14.5-14.8":0.09464,"15.0-15.1":0.04565,"15.2-15.3":0.05011,"15.4":0.05679,"15.5":0.07126,"15.6-15.8":0.64136,"16.0":0.14586,"16.1":0.30064,"16.2":0.14586,"16.3":0.25276,"16.4":0.05345,"16.5":0.10801,"16.6-16.7":0.86071,"17.0":0.09353,"17.1":0.15255,"17.2":0.15923,"17.3":0.29396,"17.4":6.67526,"17.5":0.471,"17.6":0},P:{"4":0.04091,"20":0.03068,"21":0.05114,"22":0.0716,"23":0.13297,"24":0.28639,"25":2.51615,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 15.0","7.2-7.4":0.08183,"11.1-11.2":0.0716,"13.0":0.02046,"14.0":0.02046,"16.0":0.04091,"17.0":0.01023,"18.0":0.02046,"19.0":0.05114},I:{"0":0.01917,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.33353,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00359,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.93812},R:{_:"0"},M:{"0":0.25656},Q:{_:"14.9"},O:{"0":0.05131},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GU.js b/node_modules/caniuse-lite/data/regions/GU.js index e76c2016e..c52a4bd45 100644 --- a/node_modules/caniuse-lite/data/regions/GU.js +++ b/node_modules/caniuse-lite/data/regions/GU.js @@ -1 +1 @@ -module.exports={C:{"115":0.02381,"128":0.00794,"134":0.01985,"137":0.00397,"138":0.00794,"139":0.50803,"140":0.11907,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 141 142 143 3.5 3.6"},D:{"39":0.00794,"40":0.01191,"41":0.01191,"42":0.01588,"43":0.00397,"44":0.00794,"45":0.01191,"46":0.00794,"47":0.00794,"48":0.01191,"49":0.01191,"50":0.01191,"51":0.01588,"52":0.00794,"53":0.00794,"54":0.01191,"55":0.00794,"56":0.00794,"57":0.01191,"58":0.01191,"59":0.00794,"60":0.01588,"70":0.00397,"76":0.00397,"79":0.01985,"87":0.01985,"93":0.00397,"95":0.00397,"96":0.00397,"97":0.00397,"98":0.26989,"99":0.09526,"103":0.01985,"105":0.00397,"109":0.55963,"114":0.00794,"116":0.04763,"117":0.04763,"118":0.01985,"120":0.02778,"122":0.02381,"123":0.00397,"124":0.00397,"125":0.27386,"126":0.03969,"127":0.00397,"128":0.02381,"129":0.01985,"130":1.00813,"131":0.03572,"132":0.01191,"133":0.03175,"134":0.13495,"135":0.27783,"136":2.40125,"137":11.83953,"138":0.43262,"139":0.15082,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 91 92 94 100 101 102 104 106 107 108 110 111 112 113 115 119 121 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00794,"92":0.00397,"97":0.00397,"98":0.02778,"99":0.01191,"109":0.02381,"116":0.00397,"119":0.00397,"128":0.01985,"129":0.00794,"130":0.00794,"131":0.00397,"133":0.01588,"134":0.08732,"135":0.01985,"136":0.75014,"137":5.17161,"138":0.32149,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 120 121 122 123 124 125 126 127 132"},E:{"14":0.01191,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.4","12.1":0.00397,"13.1":0.02381,"14.1":0.01191,"15.1":0.02778,"15.2-15.3":0.01985,"15.5":0.07938,"15.6":0.34133,"16.0":0.01588,"16.1":0.0635,"16.2":0.08732,"16.3":0.09923,"16.4":0.13098,"16.5":0.19051,"16.6":0.73823,"17.0":0.02381,"17.1":0.44453,"17.2":0.05557,"17.3":0.07541,"17.4":0.35324,"17.5":0.38896,"17.6":2.44887,"18.0":0.08335,"18.1":0.10319,"18.2":0.03175,"18.3":0.60726,"18.4":0.23814,"18.5":2.05197,"26.0":0.00397},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00549,"5.0-5.1":0,"6.0-6.1":0.01097,"7.0-7.1":0.01097,"8.1-8.4":0,"9.0-9.2":0.00549,"9.3":0.03291,"10.0-10.2":0.00274,"10.3":0.05486,"11.0-11.2":0.35109,"11.3-11.4":0.0192,"12.0-12.1":0.00549,"12.2-12.5":0.18377,"13.0-13.1":0.00274,"13.2":0.00823,"13.3":0.00549,"13.4-13.7":0.03017,"14.0-14.4":0.07132,"14.5-14.8":0.07132,"15.0-15.1":0.04937,"15.2-15.3":0.04937,"15.4":0.06034,"15.5":0.06583,"15.6-15.8":0.8503,"16.0":0.11246,"16.1":0.2304,"16.2":0.11794,"16.3":0.21669,"16.4":0.04937,"16.5":0.08777,"16.6-16.7":1.06699,"17.0":0.0576,"17.1":0.10149,"17.2":0.07954,"17.3":0.11246,"17.4":0.20023,"17.5":0.41966,"17.6-17.7":1.09716,"18.0":0.27155,"18.1":0.61167,"18.2":0.32366,"18.3":1.39065,"18.4":1.47568,"18.5":17.29946,"26.0":0},P:{"4":0.10462,"23":0.02092,"24":0.06277,"25":0.01046,"26":0.06277,"27":0.09416,"28":4.36252,_:"20 21 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01046,"11.1-11.2":0.03139,"16.0":0.01046},I:{"0":0.00602,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.12062,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00397,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":27.6229},R:{_:"0"},M:{"0":0.92877},Q:{_:"14.9"},O:{"0":0.10856},H:{"0":0}}; +module.exports={C:{"78":0.03042,"108":0.00435,"115":0.23898,"122":0.00435,"123":0.00435,"124":0.01738,"125":0.75169,"126":1.15577,"127":0.00435,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 128 129 3.5 3.6"},D:{"38":0.00435,"65":0.02173,"73":0.00435,"75":0.00869,"76":0.02173,"79":0.01738,"80":0.00435,"86":0.00435,"87":0.03042,"88":0.00435,"89":0.00435,"90":0.01304,"91":0.01304,"93":0.0478,"95":0.00435,"96":0.00435,"97":0.00435,"98":0.13904,"99":0.05214,"103":0.0869,"107":0.00869,"109":0.78645,"111":0.02607,"113":0.00435,"114":0.01304,"115":0.02173,"116":0.1738,"117":0.07387,"118":0.01738,"119":0.10863,"120":0.24332,"121":0.05649,"122":0.5692,"123":0.76472,"124":13.89531,"125":4.81861,"126":0.05649,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 74 77 78 81 83 84 85 92 94 100 101 102 104 105 106 108 110 112 127 128"},F:{"83":0.00435,"95":0.00435,"102":0.00435,"107":0.09125,"108":0.00435,"109":0.53444,"110":0.00869,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00869,"98":0.01738,"99":0.00869,"109":0.05649,"114":0.00435,"119":0.00869,"120":0.02173,"121":0.00869,"122":0.01738,"123":0.1347,"124":3.38476,"125":1.92049,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118"},E:{"14":0.08256,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00869,"13.1":0.01738,"14.1":0.20856,"15.1":0.05649,"15.2-15.3":0.06518,"15.4":0.0478,"15.5":0.16077,"15.6":0.51706,"16.0":0.04345,"16.1":0.10863,"16.2":0.27808,"16.3":0.47795,"16.4":0.07387,"16.5":0.29546,"16.6":1.34695,"17.0":0.09994,"17.1":0.40409,"17.2":0.30415,"17.3":0.37367,"17.4":5.67892,"17.5":0.9559},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0065,"5.0-5.1":0.0065,"6.0-6.1":0.01625,"7.0-7.1":0.02275,"8.1-8.4":0.0065,"9.0-9.2":0.01625,"9.3":0.07475,"10.0-10.2":0.013,"10.3":0.117,"11.0-11.2":0.17225,"11.3-11.4":0.0325,"12.0-12.1":0.0195,"12.2-12.5":0.47124,"13.0-13.1":0.00975,"13.2":0.0455,"13.3":0.02275,"13.4-13.7":0.104,"14.0-14.4":0.17875,"14.5-14.8":0.27624,"15.0-15.1":0.13325,"15.2-15.3":0.14625,"15.4":0.16575,"15.5":0.208,"15.6-15.8":1.87196,"16.0":0.42574,"16.1":0.87748,"16.2":0.42574,"16.3":0.73774,"16.4":0.156,"16.5":0.31524,"16.6-16.7":2.5122,"17.0":0.27299,"17.1":0.44524,"17.2":0.46474,"17.3":0.85798,"17.4":19.48338,"17.5":1.37472,"17.6":0},P:{"4":0.28366,"20":0.01051,"21":0.03152,"22":0.04202,"23":0.23113,"24":0.29417,"25":3.07829,"5.0-5.4":0.02101,_:"6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 17.0","13.0":0.01051,"14.0":0.01051,"16.0":0.01051,"18.0":0.01051,"19.0":0.02101},I:{"0":0.00563,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.04525,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00869,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.03104},R:{_:"0"},M:{"0":0.38461},Q:{_:"14.9"},O:{"0":0.01697},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/GW.js b/node_modules/caniuse-lite/data/regions/GW.js index ff6cd05ed..c552b88f9 100644 --- a/node_modules/caniuse-lite/data/regions/GW.js +++ b/node_modules/caniuse-lite/data/regions/GW.js @@ -1 +1 @@ -module.exports={C:{"78":0.00734,"114":0.06604,"138":0.11985,"139":0.41093,"140":0.27151,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 141 142 143 3.5 3.6"},D:{"36":0.00489,"39":0.01468,"40":0.00489,"42":0.00489,"43":0.01223,"46":0.05381,"47":0.00489,"49":0.00489,"52":0.00489,"53":0.01468,"55":0.01468,"57":0.00734,"58":0.01957,"64":0.01957,"68":0.48675,"76":0.00734,"79":0.00489,"95":0.00489,"99":0.00489,"104":0.02691,"107":0.01468,"109":1.1643,"114":0.01223,"116":0.03424,"119":0.0318,"120":0.01957,"122":0.00489,"125":1.24991,"127":0.1223,"128":0.00734,"131":0.07338,"132":0.0318,"133":0.1223,"134":0.06115,"135":0.17367,"136":1.53364,"137":4.77948,"138":0.14676,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 41 44 45 48 50 51 54 56 59 60 61 62 63 65 66 67 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 100 101 102 103 105 106 108 110 111 112 113 115 117 118 121 123 124 126 129 130 139 140 141"},F:{"85":0.00489,"95":0.10029,"115":0.01468,"116":0.01223,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01223,"13":0.00489,"14":0.02201,"15":0.00734,"16":0.00734,"18":0.07583,"84":0.01223,"90":0.12964,"92":0.05381,"99":0.01468,"109":0.01223,"111":0.01468,"114":0.00734,"122":0.11985,"126":0.01223,"127":0.00489,"128":0.01468,"131":0.02201,"132":0.00489,"133":0.00734,"134":0.04647,"135":0.0587,"136":1.05667,"137":3.61519,"138":0.23726,_:"17 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 112 113 115 116 117 118 119 120 121 123 124 125 129 130"},E:{"14":0.00489,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.5 18.2 26.0","13.1":0.06849,"15.6":0.02691,"16.6":0.00489,"17.4":0.00489,"17.6":0.09539,"18.0":0.14921,"18.1":0.02201,"18.3":0.03914,"18.4":0.01957,"18.5":0.23482},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00074,"5.0-5.1":0,"6.0-6.1":0.00148,"7.0-7.1":0.00148,"8.1-8.4":0,"9.0-9.2":0.00074,"9.3":0.00443,"10.0-10.2":0.00037,"10.3":0.00739,"11.0-11.2":0.04728,"11.3-11.4":0.00259,"12.0-12.1":0.00074,"12.2-12.5":0.02475,"13.0-13.1":0.00037,"13.2":0.00111,"13.3":0.00074,"13.4-13.7":0.00406,"14.0-14.4":0.0096,"14.5-14.8":0.0096,"15.0-15.1":0.00665,"15.2-15.3":0.00665,"15.4":0.00813,"15.5":0.00887,"15.6-15.8":0.11451,"16.0":0.01515,"16.1":0.03103,"16.2":0.01588,"16.3":0.02918,"16.4":0.00665,"16.5":0.01182,"16.6-16.7":0.14369,"17.0":0.00776,"17.1":0.01367,"17.2":0.01071,"17.3":0.01515,"17.4":0.02697,"17.5":0.05652,"17.6-17.7":0.14776,"18.0":0.03657,"18.1":0.08237,"18.2":0.04359,"18.3":0.18728,"18.4":0.19873,"18.5":2.32975,"26.0":0},P:{"4":0.01028,"21":0.01028,"24":0.22612,"25":0.08223,"26":0.05139,"27":0.27752,"28":0.83255,_:"20 22 23 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","5.0-5.4":0.02056,"6.2-6.4":0.01028,"7.2-7.4":0.31863,"16.0":0.02056,"17.0":0.02056},I:{"0":0.04525,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.84382,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.06043,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":74.6997},R:{_:"0"},M:{"0":0.27194},Q:{"14.9":0.00755},O:{"0":0.2795},H:{"0":0.04}}; +module.exports={C:{"78":0.00723,"98":0.00362,"115":0.22064,"125":0.3183,"126":0.22787,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 127 128 129 3.5 3.6"},D:{"11":0.04702,"33":0.0217,"43":0.00362,"65":0.00362,"71":0.00362,"81":0.0217,"83":0.02532,"87":0.01809,"88":0.00362,"91":0.00362,"92":0.00362,"93":0.02894,"95":0.00362,"103":0.04702,"104":0.00362,"105":0.00362,"106":0.23872,"109":5.53763,"111":0.01447,"112":0.00362,"114":0.00362,"115":0.00362,"116":0.00723,"117":0.01085,"119":0.01809,"120":0.01809,"121":0.02894,"122":0.02532,"123":0.09766,"124":8.05506,"125":3.96785,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 72 73 74 75 76 77 78 79 80 84 85 86 89 90 94 96 97 98 99 100 101 102 107 108 110 113 118 126 127 128"},F:{"34":0.00362,"40":0.02532,"95":0.00362,"108":0.00362,"109":0.30745,"110":0.05426,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00362,"14":0.00362,"18":0.00362,"92":0.05426,"109":0.24957,"112":0.00723,"114":0.00362,"119":0.00723,"120":0.03979,"121":0.00723,"122":0.24957,"123":0.18808,"124":6.47443,"125":3.21913,_:"13 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118"},E:{"13":0.00362,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.6","15.6":0.05426,"17.4":0.00723,"17.5":0.03255},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0.00105,"6.0-6.1":0.00263,"7.0-7.1":0.00368,"8.1-8.4":0.00105,"9.0-9.2":0.00263,"9.3":0.0121,"10.0-10.2":0.0021,"10.3":0.01894,"11.0-11.2":0.02788,"11.3-11.4":0.00526,"12.0-12.1":0.00316,"12.2-12.5":0.07628,"13.0-13.1":0.00158,"13.2":0.00736,"13.3":0.00368,"13.4-13.7":0.01683,"14.0-14.4":0.02893,"14.5-14.8":0.04471,"15.0-15.1":0.02157,"15.2-15.3":0.02367,"15.4":0.02683,"15.5":0.03367,"15.6-15.8":0.303,"16.0":0.06891,"16.1":0.14203,"16.2":0.06891,"16.3":0.11941,"16.4":0.02525,"16.5":0.05103,"16.6-16.7":0.40663,"17.0":0.04419,"17.1":0.07207,"17.2":0.07522,"17.3":0.13887,"17.4":3.15362,"17.5":0.22252,"17.6":0},P:{"4":0.42107,"21":0.08216,"22":0.04108,"23":0.05135,"24":0.06162,"25":0.09243,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.11297,"16.0":0.01027,"19.0":0.07189},I:{"0":0.00636,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.51371,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.65755,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.35067},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":0.0383},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/GY.js b/node_modules/caniuse-lite/data/regions/GY.js index 923b866a5..3ca4366ff 100644 --- a/node_modules/caniuse-lite/data/regions/GY.js +++ b/node_modules/caniuse-lite/data/regions/GY.js @@ -1 +1 @@ -module.exports={C:{"78":0.00199,"82":0.00199,"90":0.00199,"109":0.00199,"115":0.00795,"118":0.00795,"128":0.00397,"129":0.00994,"137":0.00199,"138":0.00795,"139":0.12717,"140":0.08544,"141":0.00199,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 127 130 131 132 133 134 135 136 142 143 3.5 3.6"},D:{"11":0.00199,"38":0.00199,"39":0.01192,"40":0.00994,"41":0.01192,"42":0.00795,"43":0.01192,"44":0.00994,"45":0.00795,"46":0.00795,"47":0.00994,"48":0.00994,"49":0.00795,"50":0.00994,"51":0.01192,"52":0.00795,"53":0.00795,"54":0.02186,"55":0.00994,"56":0.01192,"57":0.00795,"58":0.00994,"59":0.00994,"60":0.0159,"63":0.00397,"66":0.00199,"68":0.00199,"69":0.00596,"71":0.00199,"73":0.00199,"75":0.00397,"76":0.00994,"77":0.00199,"79":0.06756,"81":0.00199,"83":0.00199,"85":0.00199,"86":0.00795,"87":0.0159,"91":0.00994,"93":0.00795,"97":0.01987,"98":0.03179,"99":0.00596,"100":0.00199,"103":0.01788,"104":0.00199,"105":0.01987,"107":0.00596,"108":0.00199,"109":0.05961,"110":0.00199,"111":0.00795,"113":0.00199,"114":0.00795,"115":0.00199,"116":0.00994,"119":0.01192,"120":0.0159,"121":0.01788,"122":0.01788,"123":0.00397,"124":0.00397,"125":4.95955,"126":0.02583,"127":0.00199,"128":0.03378,"129":0.00596,"130":0.02583,"131":0.01391,"132":0.0457,"133":0.0159,"134":0.04173,"135":0.14306,"136":0.75109,"137":5.80999,"138":0.28215,"139":0.00795,_:"4 5 6 7 8 9 10 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 61 62 64 65 67 70 72 74 78 80 84 88 89 90 92 94 95 96 101 102 106 112 117 118 140 141"},F:{"37":0.00199,"87":0.00199,"89":0.00199,"90":0.00397,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00596,"84":0.00199,"92":0.00795,"100":0.00596,"114":0.00199,"118":0.02583,"119":0.00199,"120":0.02384,"122":0.00795,"125":0.00199,"126":0.00199,"127":0.00199,"128":0.00199,"130":0.00199,"131":0.00397,"132":0.00199,"133":0.00596,"134":0.01192,"135":0.0159,"136":0.30004,"137":1.60748,"138":0.37554,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 121 123 124 129"},E:{"14":0.00397,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.1 16.5 17.0 17.2","5.1":0.00795,"11.1":0.00199,"13.1":0.00397,"14.1":0.00199,"15.4":0.00199,"15.6":0.00795,"16.0":0.00795,"16.2":0.00199,"16.3":0.00199,"16.4":0.00397,"16.6":0.03577,"17.1":0.00795,"17.3":0.00199,"17.4":0.00994,"17.5":0.01391,"17.6":0.01987,"18.0":0.00199,"18.1":0.00596,"18.2":0.00596,"18.3":0.01788,"18.4":0.03974,"18.5":0.33978,"26.0":0.00397},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00086,"5.0-5.1":0,"6.0-6.1":0.00171,"7.0-7.1":0.00171,"8.1-8.4":0,"9.0-9.2":0.00086,"9.3":0.00514,"10.0-10.2":0.00043,"10.3":0.00857,"11.0-11.2":0.05487,"11.3-11.4":0.003,"12.0-12.1":0.00086,"12.2-12.5":0.02872,"13.0-13.1":0.00043,"13.2":0.00129,"13.3":0.00086,"13.4-13.7":0.00472,"14.0-14.4":0.01115,"14.5-14.8":0.01115,"15.0-15.1":0.00772,"15.2-15.3":0.00772,"15.4":0.00943,"15.5":0.01029,"15.6-15.8":0.1329,"16.0":0.01758,"16.1":0.03601,"16.2":0.01843,"16.3":0.03387,"16.4":0.00772,"16.5":0.01372,"16.6-16.7":0.16676,"17.0":0.009,"17.1":0.01586,"17.2":0.01243,"17.3":0.01758,"17.4":0.03129,"17.5":0.06559,"17.6-17.7":0.17148,"18.0":0.04244,"18.1":0.0956,"18.2":0.05059,"18.3":0.21735,"18.4":0.23064,"18.5":2.70378,"26.0":0},P:{"4":0.07141,"21":0.0102,"22":0.0204,"23":0.0204,"24":0.09182,"25":0.06121,"26":0.03061,"27":0.15303,"28":1.36708,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.03061,"13.0":0.09182,"19.0":0.03061},I:{"0":0.024,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.16827,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00596,"11":0.00596,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.01571},R:{_:"0"},M:{"0":0.07212},Q:{"14.9":0.01603},O:{"0":0.23238},H:{"0":0}}; +module.exports={C:{"51":0.0028,"72":0.0028,"110":0.0028,"115":0.05031,"122":0.00839,"124":0.00839,"125":0.21522,"126":0.20124,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 123 127 128 129 3.5 3.6"},D:{"11":0.01118,"45":0.0028,"55":0.0028,"57":0.0028,"62":0.0028,"63":0.01118,"65":0.01118,"67":0.00559,"68":0.0028,"69":0.12857,"70":0.00559,"73":0.00839,"75":0.00839,"76":0.02236,"79":0.06149,"81":0.0028,"83":0.01118,"84":0.0028,"86":0.04193,"87":0.04752,"88":0.02516,"89":0.00839,"90":0.00559,"91":0.00559,"93":0.04472,"94":0.00839,"97":0.0028,"98":0.02795,"99":0.0028,"101":0.0028,"102":0.0028,"103":0.06708,"105":0.05311,"106":0.00559,"107":0.01118,"108":0.01118,"109":0.26553,"110":0.02516,"111":0.01118,"112":0.01118,"113":0.0028,"114":0.06429,"115":0.00559,"116":0.08106,"117":0.00839,"118":0.01398,"119":0.07267,"120":0.03913,"121":0.04752,"122":0.35497,"123":0.59534,"124":9.83561,"125":3.82915,"126":0.01398,"127":0.00559,_:"4 5 6 7 8 9 10 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 46 47 48 49 50 51 52 53 54 56 58 59 60 61 64 66 71 72 74 77 78 80 85 92 95 96 100 104 128"},F:{"84":0.0028,"95":0.00839,"107":0.59254,"108":0.01118,"109":1.29409,"110":0.08665,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0028,"18":0.0028,"92":0.00839,"96":0.0028,"100":0.00559,"109":0.01677,"114":0.01118,"115":0.0028,"116":0.00839,"118":0.0028,"119":0.00559,"120":0.01118,"121":0.01957,"122":0.04472,"123":0.1118,"124":3.16394,"125":2.14097,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 117"},E:{"14":0.0028,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.0028,"12.1":0.00559,"13.1":0.01677,"14.1":0.05311,"15.1":0.0028,"15.2-15.3":0.0028,"15.4":0.0028,"15.5":0.01957,"15.6":0.07826,"16.0":0.03913,"16.1":0.01957,"16.2":0.01677,"16.3":0.01398,"16.4":0.0028,"16.5":0.00559,"16.6":0.08665,"17.0":0.01118,"17.1":0.01957,"17.2":0.08385,"17.3":0.0028,"17.4":0.65683,"17.5":0.04752},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00303,"5.0-5.1":0.00303,"6.0-6.1":0.00757,"7.0-7.1":0.0106,"8.1-8.4":0.00303,"9.0-9.2":0.00757,"9.3":0.03482,"10.0-10.2":0.00606,"10.3":0.0545,"11.0-11.2":0.08023,"11.3-11.4":0.01514,"12.0-12.1":0.00908,"12.2-12.5":0.2195,"13.0-13.1":0.00454,"13.2":0.02119,"13.3":0.0106,"13.4-13.7":0.04844,"14.0-14.4":0.08326,"14.5-14.8":0.12867,"15.0-15.1":0.06206,"15.2-15.3":0.06812,"15.4":0.0772,"15.5":0.09688,"15.6-15.8":0.87193,"16.0":0.1983,"16.1":0.40872,"16.2":0.1983,"16.3":0.34363,"16.4":0.07266,"16.5":0.14684,"16.6-16.7":1.17014,"17.0":0.12716,"17.1":0.20739,"17.2":0.21647,"17.3":0.39964,"17.4":9.07505,"17.5":0.64032,"17.6":0},P:{"4":0.06535,"20":0.03267,"21":0.09802,"22":0.28317,"23":0.22872,"24":0.49011,"25":3.84462,"5.0-5.4":0.01089,"6.2-6.4":0.01089,"7.2-7.4":0.29406,_:"8.2 9.2 10.1 12.0","11.1-11.2":0.01089,"13.0":0.01089,"14.0":0.01089,"15.0":0.01089,"16.0":0.02178,"17.0":0.02178,"18.0":0.01089,"19.0":0.15248},I:{"0":0.02871,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.36746,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.01048,"11":0.00349,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.76938},R:{_:"0"},M:{"0":0.06485},Q:{"14.9":0.00721},O:{"0":0.40348},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/HK.js b/node_modules/caniuse-lite/data/regions/HK.js index 83e5ac725..dbde482d4 100644 --- a/node_modules/caniuse-lite/data/regions/HK.js +++ b/node_modules/caniuse-lite/data/regions/HK.js @@ -1 +1 @@ -module.exports={C:{"52":0.01024,"72":0.01536,"78":0.00512,"115":5.49269,"125":0.01024,"127":0.00512,"128":0.02048,"129":0.00512,"130":0.00512,"133":0.00512,"134":0.00512,"135":0.01024,"136":0.01024,"137":0.01024,"138":0.0256,"139":0.72178,"140":0.1075,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 131 132 141 142 143 3.5 3.6"},D:{"49":0.00512,"52":0.00512,"58":0.00512,"68":0.01536,"69":0.01024,"70":0.01536,"71":0.01024,"72":0.01536,"73":0.00512,"74":0.01536,"75":0.01536,"76":0.01024,"77":0.01024,"78":0.0256,"79":0.04095,"80":0.0256,"81":0.02048,"83":0.0256,"84":0.01024,"85":0.02048,"86":0.05119,"87":0.04607,"88":0.02048,"89":0.01536,"90":0.0256,"91":0.0256,"92":0.00512,"94":0.00512,"95":0.02048,"96":0.00512,"97":0.01536,"98":0.02048,"99":0.01536,"100":0.00512,"101":0.03583,"102":0.01024,"103":0.01536,"104":0.01024,"105":0.01536,"106":0.01024,"107":0.04607,"108":0.0256,"109":0.96749,"110":0.01024,"111":0.01536,"112":1.86332,"113":0.01536,"114":0.06143,"115":0.0256,"116":5.47221,"117":0.01024,"118":0.04607,"119":0.05119,"120":0.08702,"121":0.09214,"122":0.07679,"123":0.12286,"124":0.1075,"125":2.24212,"126":0.19452,"127":0.06143,"128":0.15869,"129":0.04607,"130":0.12798,"131":0.16893,"132":0.07679,"133":0.12798,"134":1.63296,"135":0.26619,"136":1.73534,"137":10.25336,"138":0.39416,"139":0.10238,"140":0.01024,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 59 60 61 62 63 64 65 66 67 93 141"},F:{"46":0.00512,"54":0.00512,"55":0.00512,"89":0.01536,"90":0.00512,"95":0.01536,"102":5.43638,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00512,"80":0.00512,"81":0.00512,"83":0.00512,"84":0.00512,"85":0.00512,"86":0.00512,"87":0.00512,"88":0.00512,"89":0.00512,"90":0.00512,"92":0.01536,"104":0.00512,"106":0.00512,"109":0.05119,"110":0.00512,"111":0.00512,"112":0.00512,"113":0.01536,"114":0.01024,"115":0.01024,"116":0.01024,"117":0.01024,"118":0.00512,"119":0.00512,"120":0.0256,"121":0.01024,"122":0.01536,"123":0.01024,"124":0.01024,"125":0.02048,"126":0.02048,"127":0.0256,"128":0.01536,"129":0.02048,"130":0.02048,"131":0.06655,"132":0.0256,"133":0.04095,"134":0.04607,"135":0.0819,"136":0.5938,"137":3.00485,"138":0.25083,_:"12 13 14 15 16 17 79 91 93 94 95 96 97 98 99 100 101 102 103 105 107 108"},E:{"8":0.01536,"12":0.00512,"14":0.01536,"15":0.00512,_:"0 4 5 6 7 9 10 11 13 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1","9.1":0.01024,"13.1":0.01024,"14.1":0.02048,"15.1":0.00512,"15.2-15.3":0.00512,"15.4":0.02048,"15.5":0.01536,"15.6":0.07679,"16.0":0.0256,"16.1":0.01536,"16.2":0.01536,"16.3":0.04607,"16.4":0.01536,"16.5":0.02048,"16.6":0.14845,"17.0":0.00512,"17.1":0.09214,"17.2":0.01024,"17.3":0.02048,"17.4":0.03071,"17.5":0.04095,"17.6":0.15869,"18.0":0.02048,"18.1":0.04095,"18.2":0.01536,"18.3":0.13821,"18.4":0.10238,"18.5":1.26951,"26.0":0.00512},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00297,"5.0-5.1":0,"6.0-6.1":0.00594,"7.0-7.1":0.00594,"8.1-8.4":0,"9.0-9.2":0.00297,"9.3":0.01781,"10.0-10.2":0.00148,"10.3":0.02969,"11.0-11.2":0.18999,"11.3-11.4":0.01039,"12.0-12.1":0.00297,"12.2-12.5":0.09945,"13.0-13.1":0.00148,"13.2":0.00445,"13.3":0.00297,"13.4-13.7":0.01633,"14.0-14.4":0.03859,"14.5-14.8":0.03859,"15.0-15.1":0.02672,"15.2-15.3":0.02672,"15.4":0.03265,"15.5":0.03562,"15.6-15.8":0.46014,"16.0":0.06086,"16.1":0.12468,"16.2":0.06383,"16.3":0.11726,"16.4":0.02672,"16.5":0.0475,"16.6-16.7":0.5774,"17.0":0.03117,"17.1":0.05492,"17.2":0.04305,"17.3":0.06086,"17.4":0.10835,"17.5":0.2271,"17.6-17.7":0.59372,"18.0":0.14695,"18.1":0.331,"18.2":0.17515,"18.3":0.75255,"18.4":0.79856,"18.5":9.36156,"26.0":0},P:{"4":0.01071,"21":0.01071,"22":0.02142,"23":0.02142,"24":0.01071,"25":0.02142,"26":0.06427,"27":0.14996,"28":3.10621,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.01071,"7.2-7.4":0.01071,"13.0":0.01071,"17.0":0.01071,"19.0":0.01071},I:{"0":0.37033,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.0003},K:{"0":0.13179,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.04641,"11":0.64977,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.95166},R:{_:"0"},M:{"0":0.57108},Q:{"14.9":0.24893},O:{"0":0.33191},H:{"0":0}}; +module.exports={C:{"34":0.03215,"52":0.01072,"78":0.01072,"81":0.00536,"88":0.00536,"111":0.00536,"115":4.83827,"117":0.00536,"119":0.00536,"121":0.01072,"122":0.00536,"123":0.00536,"124":0.12323,"125":0.44471,"126":0.40185,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 118 120 127 128 129 3.5 3.6"},D:{"11":0.00536,"25":0.00536,"26":0.00536,"30":0.01072,"34":0.04822,"38":0.12323,"49":0.01607,"53":0.02143,"55":0.01072,"56":0.00536,"58":0.00536,"61":0.04286,"65":0.00536,"67":0.02143,"68":0.00536,"69":0.01072,"70":0.00536,"72":0.00536,"73":0.00536,"74":0.04822,"75":0.01072,"76":0.00536,"78":0.02143,"79":0.49829,"80":0.02143,"81":0.01607,"83":0.03751,"84":0.00536,"85":0.00536,"86":0.02679,"87":0.40185,"88":0.00536,"89":0.01607,"90":0.01072,"91":0.01607,"92":0.00536,"93":0.00536,"94":0.19289,"95":0.01607,"96":0.01072,"97":0.02679,"98":0.02679,"99":0.0643,"100":0.01072,"101":0.02143,"102":0.02143,"103":0.08037,"104":0.01607,"105":0.01072,"106":0.01607,"107":0.02679,"108":0.03215,"109":1.28592,"110":0.02143,"111":0.03215,"112":0.17681,"113":0.0643,"114":0.09109,"115":0.03215,"116":4.87042,"117":0.0643,"118":0.04822,"119":0.12323,"120":0.19825,"121":0.23039,"122":0.26254,"123":0.88407,"124":12.59666,"125":5.5241,"126":0.03215,"127":0.01607,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 31 32 33 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 54 57 59 60 62 63 64 66 71 77 128"},F:{"28":0.00536,"36":0.03215,"40":0.01072,"46":0.12323,"95":0.05358,"102":4.70432,"107":0.01607,"108":0.00536,"109":0.11252,"110":0.01072,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00536,"92":0.01072,"106":0.00536,"108":0.00536,"109":0.13395,"110":0.00536,"111":0.00536,"112":0.01072,"113":0.02143,"114":0.01607,"115":0.01072,"116":0.01072,"117":0.01607,"118":0.01072,"119":0.01607,"120":0.03215,"121":0.02143,"122":0.0643,"123":0.12859,"124":2.44861,"125":1.41451,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107"},E:{"8":0.00536,"12":0.00536,"13":0.01607,"14":0.09109,"15":0.03215,_:"0 4 5 6 7 9 10 11 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00536,"12.1":0.02143,"13.1":0.08037,"14.1":0.21432,"15.1":0.03215,"15.2-15.3":0.02679,"15.4":0.13395,"15.5":0.12323,"15.6":0.65368,"16.0":0.0643,"16.1":0.1018,"16.2":0.09109,"16.3":0.28933,"16.4":0.0643,"16.5":0.10716,"16.6":0.80906,"17.0":0.04286,"17.1":0.11788,"17.2":0.13931,"17.3":0.21432,"17.4":3.65416,"17.5":0.24647},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00362,"5.0-5.1":0.00362,"6.0-6.1":0.00905,"7.0-7.1":0.01267,"8.1-8.4":0.00362,"9.0-9.2":0.00905,"9.3":0.04162,"10.0-10.2":0.00724,"10.3":0.06514,"11.0-11.2":0.0959,"11.3-11.4":0.01809,"12.0-12.1":0.01086,"12.2-12.5":0.26237,"13.0-13.1":0.00543,"13.2":0.02533,"13.3":0.01267,"13.4-13.7":0.0579,"14.0-14.4":0.09952,"14.5-14.8":0.1538,"15.0-15.1":0.07419,"15.2-15.3":0.08143,"15.4":0.09228,"15.5":0.1158,"15.6-15.8":1.04224,"16.0":0.23704,"16.1":0.48855,"16.2":0.23704,"16.3":0.41075,"16.4":0.08685,"16.5":0.17552,"16.6-16.7":1.39871,"17.0":0.15199,"17.1":0.24789,"17.2":0.25875,"17.3":0.4777,"17.4":10.84766,"17.5":0.7654,"17.6":0},P:{"4":1.10673,"20":0.02282,"21":0.10269,"22":0.06846,"23":0.12551,"24":0.29665,"25":4.58667,"5.0-5.4":0.19396,"6.2-6.4":0.1141,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0","13.0":0.02282,"14.0":0.01141,"16.0":0.02282,"17.0":0.04564,"18.0":0.02282,"19.0":0.02282},I:{"0":0.03237,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.0882,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.05596,"11":0.44769,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.59608},R:{_:"0"},M:{"0":0.2878},Q:{"14.9":0.11141},O:{"0":0.28316},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/HN.js b/node_modules/caniuse-lite/data/regions/HN.js index 781d24f3b..97e786e3c 100644 --- a/node_modules/caniuse-lite/data/regions/HN.js +++ b/node_modules/caniuse-lite/data/regions/HN.js @@ -1 +1 @@ -module.exports={C:{"4":0.00323,"52":0.00108,"68":0.00215,"115":0.01508,"128":0.00108,"129":0.00108,"130":0.00108,"133":0.00108,"135":0.00108,"136":0.00108,"137":0.00108,"138":0.00969,"139":0.18309,"140":0.03446,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 131 132 134 141 142 143 3.5 3.6"},D:{"39":0.00539,"40":0.00431,"41":0.00431,"42":0.00646,"43":0.00431,"44":0.00539,"45":0.00646,"46":0.00539,"47":0.00646,"48":0.00646,"49":0.00646,"50":0.00539,"51":0.00539,"52":0.00539,"53":0.00539,"54":0.00539,"55":0.00646,"56":0.00539,"57":0.00646,"58":0.00539,"59":0.00431,"60":0.00539,"65":0.00215,"69":0.00215,"73":0.00108,"74":0.00323,"75":0.00108,"76":0.00108,"79":0.02585,"80":0.00108,"83":0.00108,"85":0.00431,"86":0.00108,"87":0.01616,"88":0.00215,"90":0.00108,"92":0.00108,"93":0.00754,"94":0.00108,"98":0.014,"99":0.00431,"102":0.01939,"103":0.01508,"104":0.00431,"105":0.00215,"106":0.00108,"108":0.02262,"109":0.14432,"110":0.00108,"111":0.00646,"112":0.00108,"114":0.00215,"115":0.00108,"116":0.00754,"117":0.00108,"118":0.00108,"119":0.00969,"120":0.00539,"121":0.00323,"122":0.01939,"123":0.00431,"124":0.00969,"125":1.25147,"126":0.014,"127":0.00215,"128":0.014,"129":0.00431,"130":0.00539,"131":0.01292,"132":0.02154,"133":0.01723,"134":0.03446,"135":0.06247,"136":0.85406,"137":4.04629,"138":0.1594,"139":0.00108,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 71 72 77 78 81 84 89 91 95 96 97 100 101 107 113 140 141"},F:{"89":0.00215,"90":0.00108,"95":0.00754,"114":0.00108,"117":0.00215,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00108,"84":0.00108,"92":0.00539,"98":0.00108,"99":0.00108,"100":0.00215,"109":0.00862,"118":0.00108,"122":0.00215,"126":0.00108,"128":0.00108,"129":0.00215,"130":0.00539,"131":0.00323,"132":0.00215,"133":0.00539,"134":0.0377,"135":0.00862,"136":0.17771,"137":1.21809,"138":0.11524,_:"12 13 14 15 16 18 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 119 120 121 123 124 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","5.1":0.00539,"13.1":0.00323,"14.1":0.00862,"15.5":0.00108,"15.6":0.01292,"16.0":0.00108,"16.1":0.00215,"16.2":0.00108,"16.3":0.00431,"16.4":0.00215,"16.5":0.00108,"16.6":0.01185,"17.0":0.00108,"17.1":0.01077,"17.2":0.00108,"17.3":0.00215,"17.4":0.00323,"17.5":0.00539,"17.6":0.02046,"18.0":0.00323,"18.1":0.00431,"18.2":0.00646,"18.3":0.014,"18.4":0.02477,"18.5":0.21325},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00083,"5.0-5.1":0,"6.0-6.1":0.00166,"7.0-7.1":0.00166,"8.1-8.4":0,"9.0-9.2":0.00083,"9.3":0.00498,"10.0-10.2":0.00041,"10.3":0.0083,"11.0-11.2":0.05311,"11.3-11.4":0.0029,"12.0-12.1":0.00083,"12.2-12.5":0.0278,"13.0-13.1":0.00041,"13.2":0.00124,"13.3":0.00083,"13.4-13.7":0.00456,"14.0-14.4":0.01079,"14.5-14.8":0.01079,"15.0-15.1":0.00747,"15.2-15.3":0.00747,"15.4":0.00913,"15.5":0.00996,"15.6-15.8":0.12863,"16.0":0.01701,"16.1":0.03485,"16.2":0.01784,"16.3":0.03278,"16.4":0.00747,"16.5":0.01328,"16.6-16.7":0.1614,"17.0":0.00871,"17.1":0.01535,"17.2":0.01203,"17.3":0.01701,"17.4":0.03029,"17.5":0.06348,"17.6-17.7":0.16597,"18.0":0.04108,"18.1":0.09253,"18.2":0.04896,"18.3":0.21036,"18.4":0.22323,"18.5":2.6169,"26.0":0},P:{"4":0.03231,"22":0.01077,"24":0.01077,"25":0.01077,"26":0.02154,"27":0.04308,"28":0.4523,_:"20 21 23 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02154,"9.2":0.02154},I:{"0":0.95314,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00019,"4.4":0,"4.4.3-4.4.4":0.00076},K:{"0":0.05354,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":83.97042},R:{_:"0"},M:{"0":0.05354},Q:{_:"14.9"},O:{"0":0.01785},H:{"0":0}}; +module.exports={C:{"4":0.00393,"103":0.00393,"105":0.00393,"108":0.01178,"113":0.01178,"115":0.07065,"116":0.00393,"117":0.00785,"120":0.00393,"121":0.00393,"122":0.00785,"123":0.0157,"124":0.01178,"125":0.48278,"126":0.31793,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 109 110 111 112 114 118 119 127 128 129 3.5 3.6"},D:{"11":0.00393,"47":0.01178,"49":0.00393,"65":0.00785,"69":0.00393,"70":0.00785,"73":0.0157,"74":0.01178,"75":0.00785,"76":0.00393,"77":0.00393,"79":0.08635,"80":0.00785,"81":0.00393,"83":0.00393,"85":0.00785,"86":0.00785,"87":0.06673,"88":0.02748,"90":0.00393,"91":0.01178,"93":0.03533,"94":0.0471,"96":0.00393,"97":0.00785,"98":0.00393,"99":0.01963,"101":0.01178,"102":0.00393,"103":0.11383,"104":0.00393,"105":0.02355,"106":0.00393,"107":0.00785,"108":0.23158,"109":1.3188,"110":0.00785,"111":0.00393,"112":0.01178,"113":0.00785,"114":0.02748,"115":0.08635,"116":0.11775,"117":0.02748,"118":0.01178,"119":0.15308,"120":0.0942,"121":0.08243,"122":0.23943,"123":0.91453,"124":16.24165,"125":5.7933,"126":0.00393,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 71 72 78 84 89 92 95 100 127 128"},F:{"85":0.00393,"86":0.00393,"95":0.0314,"102":0.00393,"106":0.00393,"107":0.4239,"108":0.0314,"109":1.88008,"110":0.0785,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00785,"18":0.00393,"92":0.0471,"100":0.00393,"109":0.04318,"112":0.00393,"113":0.00393,"114":0.00785,"115":0.00393,"116":0.00785,"117":0.03533,"119":0.0157,"120":0.02355,"121":0.0157,"122":0.0628,"123":0.157,"124":3.32448,"125":1.82513,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 118"},E:{"14":0.00393,"15":0.00393,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.0471,"13.1":0.01178,"14.1":0.02355,"15.1":0.00393,"15.2-15.3":0.00393,"15.4":0.00393,"15.5":0.00393,"15.6":0.10598,"16.0":0.00785,"16.1":0.02748,"16.2":0.01178,"16.3":0.06673,"16.4":0.01963,"16.5":0.03533,"16.6":0.09028,"17.0":0.07065,"17.1":0.02748,"17.2":0.03925,"17.3":0.02748,"17.4":0.75753,"17.5":0.11383},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00222,"5.0-5.1":0.00222,"6.0-6.1":0.00556,"7.0-7.1":0.00778,"8.1-8.4":0.00222,"9.0-9.2":0.00556,"9.3":0.02557,"10.0-10.2":0.00445,"10.3":0.04002,"11.0-11.2":0.05892,"11.3-11.4":0.01112,"12.0-12.1":0.00667,"12.2-12.5":0.1612,"13.0-13.1":0.00334,"13.2":0.01556,"13.3":0.00778,"13.4-13.7":0.03558,"14.0-14.4":0.06114,"14.5-14.8":0.0945,"15.0-15.1":0.04558,"15.2-15.3":0.05003,"15.4":0.0567,"15.5":0.07115,"15.6-15.8":0.64035,"16.0":0.14564,"16.1":0.30017,"16.2":0.14564,"16.3":0.25236,"16.4":0.05336,"16.5":0.10784,"16.6-16.7":0.85936,"17.0":0.09338,"17.1":0.15231,"17.2":0.15898,"17.3":0.2935,"17.4":6.66479,"17.5":0.47026,"17.6":0},P:{"4":0.12511,"20":0.03128,"21":0.07298,"22":0.09383,"23":0.13553,"24":0.30234,"25":2.06425,"5.0-5.4":0.03128,"6.2-6.4":0.02085,"7.2-7.4":0.10425,_:"8.2 10.1 12.0","9.2":0.02085,"11.1-11.2":0.05213,"13.0":0.02085,"14.0":0.01043,"15.0":0.01043,"16.0":0.03128,"17.0":0.02085,"18.0":0.01043,"19.0":0.07298},I:{"0":0.06051,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.3888,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01963,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.91048},R:{_:"0"},M:{"0":0.1458},Q:{_:"14.9"},O:{"0":0.0729},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/HR.js b/node_modules/caniuse-lite/data/regions/HR.js index f39306944..6f7d3b1a9 100644 --- a/node_modules/caniuse-lite/data/regions/HR.js +++ b/node_modules/caniuse-lite/data/regions/HR.js @@ -1 +1 @@ -module.exports={C:{"52":0.03002,"78":0.01715,"88":0.00429,"105":0.00429,"106":0.00858,"115":0.38163,"119":0.00429,"124":0.00429,"126":0.02144,"127":0.00858,"128":0.04288,"132":0.00429,"133":0.07718,"134":0.01715,"135":0.02573,"136":0.03859,"137":0.01715,"138":0.19725,"139":2.45274,"140":0.3945,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 107 108 109 110 111 112 113 114 116 117 118 120 121 122 123 125 129 130 131 141 142 143 3.5 3.6"},D:{"39":0.00429,"40":0.00429,"41":0.02144,"42":0.00429,"43":0.00429,"44":0.00429,"45":0.00429,"46":0.00429,"47":0.00429,"48":0.00429,"49":0.01286,"50":0.00429,"51":0.00429,"52":0.00429,"53":0.01286,"54":0.00429,"55":0.00858,"56":0.00429,"57":0.00429,"58":0.00429,"59":0.00429,"60":0.00429,"65":0.00429,"66":0.00429,"69":0.00429,"70":0.00429,"75":0.01286,"77":0.00429,"79":0.15437,"80":0.01286,"81":0.00429,"83":0.00429,"84":0.00429,"87":0.1415,"88":0.00429,"90":0.00429,"91":0.00429,"94":0.01286,"95":0.00429,"96":0.00858,"98":0.00429,"101":0.00429,"103":0.02144,"104":0.01286,"105":0.00429,"106":0.03002,"107":0.00429,"108":0.03859,"109":1.24781,"110":0.00429,"111":0.01715,"112":0.00858,"113":0.00429,"114":0.00858,"115":0.00429,"116":0.07718,"117":0.00429,"118":0.00858,"119":0.02144,"120":0.03859,"121":0.00858,"122":0.06861,"123":0.04288,"124":0.03859,"125":0.09862,"126":0.0343,"127":0.01715,"128":0.05146,"129":0.00858,"130":0.02144,"131":0.10291,"132":0.10291,"133":0.08147,"134":0.09862,"135":0.21011,"136":3.10022,"137":21.42714,"138":0.87046,"139":0.00429,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 71 72 73 74 76 78 85 86 89 92 93 97 99 100 102 140 141"},F:{"46":0.02144,"82":0.00858,"85":0.00429,"88":0.00429,"89":0.03002,"90":0.01715,"95":0.03002,"97":0.00858,"98":0.00858,"105":0.00429,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 86 87 91 92 93 94 96 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00429,"109":0.05146,"118":0.00429,"122":0.00858,"123":0.00858,"129":0.00429,"130":0.00858,"131":0.02573,"132":0.00858,"133":0.00429,"134":0.00858,"135":0.03002,"136":0.36448,"137":2.29837,"138":0.22726,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 119 120 121 124 125 126 127 128"},E:{"14":0.00429,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.0","12.1":0.00429,"13.1":0.00858,"14.1":0.02573,"15.1":0.00429,"15.4":0.00429,"15.5":0.00429,"15.6":0.08147,"16.0":0.02144,"16.1":0.01715,"16.2":0.00429,"16.3":0.03002,"16.4":0.00429,"16.5":0.02144,"16.6":0.16723,"17.1":0.11149,"17.2":0.01715,"17.3":0.01286,"17.4":0.02144,"17.5":0.04717,"17.6":0.11149,"18.0":0.01286,"18.1":0.01715,"18.2":0.01286,"18.3":0.09862,"18.4":0.06003,"18.5":0.80614,"26.0":0.00429},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00234,"5.0-5.1":0,"6.0-6.1":0.00467,"7.0-7.1":0.00467,"8.1-8.4":0,"9.0-9.2":0.00234,"9.3":0.01402,"10.0-10.2":0.00117,"10.3":0.02337,"11.0-11.2":0.14959,"11.3-11.4":0.00818,"12.0-12.1":0.00234,"12.2-12.5":0.0783,"13.0-13.1":0.00117,"13.2":0.00351,"13.3":0.00234,"13.4-13.7":0.01286,"14.0-14.4":0.03039,"14.5-14.8":0.03039,"15.0-15.1":0.02104,"15.2-15.3":0.02104,"15.4":0.02571,"15.5":0.02805,"15.6-15.8":0.36229,"16.0":0.04792,"16.1":0.09817,"16.2":0.05025,"16.3":0.09233,"16.4":0.02104,"16.5":0.0374,"16.6-16.7":0.45461,"17.0":0.02454,"17.1":0.04324,"17.2":0.03389,"17.3":0.04792,"17.4":0.08531,"17.5":0.17881,"17.6-17.7":0.46747,"18.0":0.1157,"18.1":0.26061,"18.2":0.1379,"18.3":0.59252,"18.4":0.62875,"18.5":7.37083,"26.0":0},P:{"4":0.22887,"20":0.0104,"21":0.0104,"22":0.02081,"23":0.06242,"24":0.04161,"25":0.06242,"26":0.10403,"27":0.16645,"28":3.7035,"5.0-5.4":0.03121,"6.2-6.4":0.03121,"7.2-7.4":0.12484,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.05702,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.44554,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00429,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.67454},R:{_:"0"},M:{"0":0.59405},Q:{_:"14.9"},O:{"0":0.05712},H:{"0":0}}; +module.exports={C:{"52":0.03399,"56":0.00425,"72":0.00425,"78":0.017,"88":0.00425,"94":0.00425,"96":0.00425,"98":0.0085,"101":0.00425,"102":0.0085,"103":0.0085,"105":0.0085,"110":0.00425,"111":0.017,"112":0.0085,"113":0.01275,"115":0.45889,"116":0.00425,"117":0.00425,"120":0.0085,"121":0.01275,"122":0.0085,"123":0.02125,"124":0.09348,"125":1.76758,"126":1.52114,"127":0.00425,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 95 97 99 100 104 106 107 108 109 114 118 119 128 129 3.5 3.6"},D:{"38":0.00425,"41":0.01275,"43":0.00425,"47":0.01275,"49":0.02549,"51":0.00425,"53":0.0085,"54":0.00425,"56":0.00425,"63":0.00425,"66":0.00425,"70":0.00425,"75":0.0085,"76":0.00425,"77":0.017,"78":0.00425,"79":0.2252,"80":0.00425,"81":0.05524,"85":0.00425,"86":0.01275,"87":0.18696,"88":0.01275,"89":0.00425,"90":0.0085,"91":0.00425,"92":0.00425,"93":0.017,"94":0.02974,"95":0.01275,"96":0.0085,"97":0.01275,"98":0.0085,"99":0.02974,"100":0.00425,"101":0.0085,"102":0.00425,"103":0.08073,"104":0.0085,"105":0.0085,"106":0.02549,"107":0.01275,"108":0.017,"109":1.75484,"110":0.03399,"111":0.01275,"112":0.017,"113":0.0085,"114":0.03824,"115":0.0085,"116":0.11472,"117":0.017,"118":0.03399,"119":0.06374,"120":0.14872,"121":0.07648,"122":0.24644,"123":0.75207,"124":18.29195,"125":6.74741,"126":0.00425,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 44 45 46 48 50 52 55 57 58 59 60 61 62 64 65 67 68 69 71 72 73 74 83 84 127 128"},F:{"36":0.00425,"46":0.03399,"71":0.00425,"85":0.00425,"86":0.0085,"93":0.00425,"95":0.06374,"102":0.00425,"106":0.00425,"107":0.34842,"108":0.02125,"109":1.61037,"110":0.08923,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 87 88 89 90 91 92 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00425,"18":0.00425,"92":0.00425,"96":0.00425,"104":0.0085,"109":0.06374,"110":0.00425,"112":0.00425,"113":0.00425,"114":0.0085,"115":0.00425,"116":0.00425,"118":0.0085,"119":0.02549,"120":0.02125,"121":0.0085,"122":0.02125,"123":0.10198,"124":2.33695,"125":1.2917,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 105 106 107 108 111 117"},E:{"9":0.00425,"14":0.0085,"15":0.00425,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00425,"13.1":0.03399,"14.1":0.05524,"15.1":0.00425,"15.2-15.3":0.0085,"15.4":0.0085,"15.5":0.017,"15.6":0.16146,"16.0":0.03824,"16.1":0.05099,"16.2":0.01275,"16.3":0.03399,"16.4":0.02125,"16.5":0.03399,"16.6":0.13172,"17.0":0.02549,"17.1":0.06798,"17.2":0.05524,"17.3":0.04249,"17.4":0.8583,"17.5":0.10623},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00205,"5.0-5.1":0.00205,"6.0-6.1":0.00511,"7.0-7.1":0.00716,"8.1-8.4":0.00205,"9.0-9.2":0.00511,"9.3":0.02352,"10.0-10.2":0.00409,"10.3":0.03681,"11.0-11.2":0.05419,"11.3-11.4":0.01023,"12.0-12.1":0.00614,"12.2-12.5":0.14827,"13.0-13.1":0.00307,"13.2":0.01432,"13.3":0.00716,"13.4-13.7":0.03272,"14.0-14.4":0.05624,"14.5-14.8":0.08691,"15.0-15.1":0.04192,"15.2-15.3":0.04601,"15.4":0.05215,"15.5":0.06544,"15.6-15.8":0.58898,"16.0":0.13395,"16.1":0.27608,"16.2":0.13395,"16.3":0.23211,"16.4":0.04908,"16.5":0.09919,"16.6-16.7":0.79041,"17.0":0.08589,"17.1":0.14009,"17.2":0.14622,"17.3":0.26995,"17.4":6.13005,"17.5":0.43253,"17.6":0},P:{"4":0.35278,"20":0.02075,"21":0.03113,"22":0.05188,"23":0.16602,"24":0.34241,"25":3.73537,"5.0-5.4":0.07263,"6.2-6.4":0.06226,"7.2-7.4":0.01038,_:"8.2 9.2 11.1-11.2 12.0 14.0 18.0","10.1":0.02075,"13.0":0.01038,"15.0":0.01038,"16.0":0.01038,"17.0":0.01038,"19.0":0.02075},I:{"0":0.05156,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.67862,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01333,"9":0.00444,"10":0.00444,"11":0.07552,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.57589},R:{_:"0"},M:{"0":0.39107},Q:{_:"14.9"},O:{"0":0.04601},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/HT.js b/node_modules/caniuse-lite/data/regions/HT.js index 90217d2e4..d83be2317 100644 --- a/node_modules/caniuse-lite/data/regions/HT.js +++ b/node_modules/caniuse-lite/data/regions/HT.js @@ -1 +1 @@ -module.exports={C:{"38":0.00136,"43":0.00136,"52":0.01223,"72":0.00136,"81":0.00272,"112":0.00136,"115":0.03398,"123":0.00136,"127":0.00544,"128":0.00408,"132":0.00136,"133":0.00136,"135":0.00272,"136":0.00136,"137":0.00136,"138":0.00951,"139":0.25549,"140":0.02446,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 125 126 129 130 131 134 141 142 143 3.5 3.6"},D:{"39":0.00136,"40":0.00272,"41":0.00408,"42":0.00136,"43":0.00272,"44":0.00136,"45":0.00136,"46":0.00408,"47":0.00272,"49":0.01359,"50":0.00272,"51":0.00408,"52":0.00272,"53":0.00272,"54":0.00136,"55":0.00136,"56":0.00272,"57":0.00136,"58":0.00136,"59":0.00136,"60":0.00272,"61":0.00136,"62":0.00136,"63":0.00136,"64":0.00272,"68":0.00408,"69":0.00136,"72":0.00136,"73":0.00815,"74":0.00544,"75":0.00408,"76":0.01359,"77":0.00272,"79":0.01223,"80":0.00272,"81":0.00544,"83":0.00136,"84":0.00136,"86":0.00272,"87":0.01087,"88":0.01495,"89":0.00136,"90":0.01223,"91":0.00272,"93":0.03126,"94":0.0068,"97":0.00272,"99":0.00408,"100":0.00272,"102":0.00408,"103":0.07475,"105":0.02174,"108":0.053,"109":0.12503,"110":0.01223,"111":0.10736,"113":0.00272,"114":0.05708,"116":0.01223,"117":0.00272,"118":0.00408,"119":0.01767,"120":0.07746,"121":0.00136,"122":0.0068,"123":0.00408,"124":0.0068,"125":0.23511,"126":0.04077,"127":0.01631,"128":0.03533,"129":0.01087,"130":0.01631,"131":0.06931,"132":0.01359,"133":0.06795,"134":0.06251,"135":0.14813,"136":0.86976,"137":3.61358,"138":0.16308,"139":0.02174,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 48 65 66 67 70 71 78 85 92 95 96 98 101 104 106 107 112 115 140 141"},F:{"20":0.00136,"85":0.00136,"88":0.00136,"89":0.00408,"90":0.00272,"95":0.00815,"100":0.00136,"106":0.00136,"117":0.01087,_:"9 11 12 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 91 92 93 94 96 97 98 99 101 102 103 104 105 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00951,"13":0.0068,"14":0.00272,"15":0.0068,"16":0.00136,"17":0.00408,"18":0.01359,"84":0.00951,"85":0.00136,"86":0.00136,"87":0.00136,"89":0.00544,"90":0.00408,"92":0.04485,"100":0.00272,"105":0.00136,"109":0.0299,"112":0.01223,"114":0.01223,"115":0.00136,"117":0.00136,"120":0.00272,"121":0.00272,"122":0.01087,"124":0.00408,"125":0.00136,"126":0.00136,"127":0.00408,"128":0.00272,"129":0.00544,"130":0.0299,"131":0.02039,"132":0.00272,"133":0.0068,"134":0.03262,"135":0.03805,"136":0.33567,"137":1.40521,"138":0.12095,_:"79 80 81 83 88 91 93 94 95 96 97 98 99 101 102 103 104 106 107 108 110 111 113 116 118 119 123"},E:{"13":0.00272,"14":0.00136,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 15.5 16.0 16.2 17.0 26.0","5.1":0.00272,"11.1":0.00136,"12.1":0.00408,"13.1":0.03533,"14.1":0.01495,"15.1":0.0068,"15.6":0.06387,"16.1":0.00272,"16.3":0.00544,"16.4":0.00136,"16.5":0.00272,"16.6":0.02582,"17.1":0.01767,"17.2":0.00136,"17.3":0.00272,"17.4":0.00136,"17.5":0.01223,"17.6":0.05436,"18.0":0.01223,"18.1":0.00951,"18.2":0.01495,"18.3":0.00951,"18.4":0.02854,"18.5":0.212},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00162,"5.0-5.1":0,"6.0-6.1":0.00324,"7.0-7.1":0.00324,"8.1-8.4":0,"9.0-9.2":0.00162,"9.3":0.00973,"10.0-10.2":0.00081,"10.3":0.01621,"11.0-11.2":0.10375,"11.3-11.4":0.00567,"12.0-12.1":0.00162,"12.2-12.5":0.05431,"13.0-13.1":0.00081,"13.2":0.00243,"13.3":0.00162,"13.4-13.7":0.00892,"14.0-14.4":0.02107,"14.5-14.8":0.02107,"15.0-15.1":0.01459,"15.2-15.3":0.01459,"15.4":0.01783,"15.5":0.01945,"15.6-15.8":0.25126,"16.0":0.03323,"16.1":0.06808,"16.2":0.03485,"16.3":0.06403,"16.4":0.01459,"16.5":0.02594,"16.6-16.7":0.31529,"17.0":0.01702,"17.1":0.02999,"17.2":0.02351,"17.3":0.03323,"17.4":0.05917,"17.5":0.12401,"17.6-17.7":0.32421,"18.0":0.08024,"18.1":0.18075,"18.2":0.09564,"18.3":0.41094,"18.4":0.43606,"18.5":5.11199,"26.0":0},P:{"4":0.01061,"20":0.01061,"21":0.03183,"22":0.02122,"23":0.03183,"24":0.12732,"25":0.1061,"26":0.08488,"27":0.19098,"28":0.6472,"5.0-5.4":0.01061,"6.2-6.4":0.01061,"7.2-7.4":0.07427,_:"8.2 10.1 12.0 15.0 17.0 18.0","9.2":0.04244,"11.1-11.2":0.09549,"13.0":0.04244,"14.0":0.03183,"16.0":0.09549,"19.0":0.01061},I:{"0":0.07764,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.54438,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00951,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":79.28543},R:{_:"0"},M:{"0":0.11233},Q:{_:"14.9"},O:{"0":0.11233},H:{"0":0}}; +module.exports={C:{"52":0.00106,"77":0.01058,"88":0.03703,"91":0.00106,"109":0.00741,"110":0.00317,"115":0.01058,"119":0.00529,"122":0.00106,"123":0.00212,"124":0.00212,"125":0.07089,"126":0.05713,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 114 116 117 118 120 121 127 128 129 3.5 3.6"},D:{"37":0.00106,"38":0.00106,"40":0.00106,"49":0.00317,"56":0.00952,"60":0.00106,"64":0.00106,"67":0.00106,"68":0.00212,"69":0.00741,"70":0.00317,"71":0.00106,"74":0.00529,"75":0.00212,"76":0.17774,"77":0.00106,"79":0.00423,"80":0.00741,"81":0.02751,"83":0.00106,"84":0.00423,"85":0.00106,"86":0.0127,"87":0.01058,"88":0.0328,"89":0.00423,"90":0.00423,"91":0.00529,"92":0.03068,"93":0.04549,"94":0.00846,"95":0.00635,"96":0.00106,"98":0.00106,"99":0.00212,"100":0.00106,"101":0.00106,"102":0.00635,"103":0.06454,"104":0.00106,"105":0.02222,"106":0.00317,"107":0.00106,"108":0.01587,"109":0.19996,"110":0.0127,"111":0.06348,"112":0.00529,"113":0.00212,"114":0.02433,"115":0.00846,"116":0.13013,"117":0.00529,"118":0.00846,"119":0.0402,"120":0.01904,"121":0.03491,"122":0.07089,"123":0.12696,"124":1.81447,"125":0.44119,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 39 41 42 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 61 62 63 65 66 72 73 78 97 126 127 128"},F:{"36":0.00106,"79":0.00529,"94":0.00106,"95":0.01375,"107":0.00317,"108":0.00423,"109":0.13542,"110":0.00635,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00635,"13":0.00317,"14":0.00212,"15":0.00106,"16":0.00212,"17":0.00423,"18":0.04126,"84":0.00317,"89":0.00212,"90":0.00317,"92":0.01481,"100":0.00212,"103":0.00106,"107":0.00529,"109":0.02222,"110":0.00741,"114":0.00212,"115":0.00106,"117":0.00106,"118":0.00212,"119":0.00423,"120":0.01164,"121":0.00846,"122":0.01164,"123":0.04338,"124":0.43907,"125":0.21795,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 108 111 112 113 116"},E:{"13":0.00212,"14":0.03491,"15":0.00529,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.4 16.0 17.6","11.1":0.00106,"12.1":0.00106,"13.1":0.00741,"14.1":0.02328,"15.1":0.00106,"15.2-15.3":0.00635,"15.5":0.00106,"15.6":0.02116,"16.1":0.00106,"16.2":0.00212,"16.3":0.00846,"16.4":0.00106,"16.5":0.00529,"16.6":0.01375,"17.0":0.00635,"17.1":0.00212,"17.2":0.00212,"17.3":0.00529,"17.4":0.09205,"17.5":0.02222},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00208,"5.0-5.1":0.00208,"6.0-6.1":0.0052,"7.0-7.1":0.00727,"8.1-8.4":0.00208,"9.0-9.2":0.0052,"9.3":0.0239,"10.0-10.2":0.00416,"10.3":0.03741,"11.0-11.2":0.05507,"11.3-11.4":0.01039,"12.0-12.1":0.00623,"12.2-12.5":0.15066,"13.0-13.1":0.00312,"13.2":0.01455,"13.3":0.00727,"13.4-13.7":0.03325,"14.0-14.4":0.05715,"14.5-14.8":0.08832,"15.0-15.1":0.0426,"15.2-15.3":0.04676,"15.4":0.05299,"15.5":0.0665,"15.6-15.8":0.5985,"16.0":0.13612,"16.1":0.28055,"16.2":0.13612,"16.3":0.23587,"16.4":0.04987,"16.5":0.10079,"16.6-16.7":0.80319,"17.0":0.08728,"17.1":0.14235,"17.2":0.14859,"17.3":0.27431,"17.4":6.22917,"17.5":0.43952,"17.6":0},P:{"4":0.19832,"20":0.05219,"21":0.09394,"22":0.09394,"23":0.3027,"24":0.26095,"25":0.34445,"5.0-5.4":0.04175,"6.2-6.4":0.01044,"7.2-7.4":0.12525,"8.2":0.03131,"9.2":0.25051,_:"10.1 12.0","11.1-11.2":0.34445,"13.0":0.2192,"14.0":0.05219,"15.0":0.01044,"16.0":0.25051,"17.0":0.05219,"18.0":0.02088,"19.0":0.05219},I:{"0":0.01781,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.29509,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00741,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01788,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.02092},R:{_:"0"},M:{"0":0.15201},Q:{_:"14.9"},O:{"0":0.07154},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/HU.js b/node_modules/caniuse-lite/data/regions/HU.js index da0de9bc1..458154614 100644 --- a/node_modules/caniuse-lite/data/regions/HU.js +++ b/node_modules/caniuse-lite/data/regions/HU.js @@ -1 +1 @@ -module.exports={C:{"52":0.01278,"61":0.00256,"77":0.00256,"78":0.00767,"103":0.02045,"106":0.00256,"107":0.00767,"108":0.01022,"111":0.00256,"113":0.00256,"115":0.33739,"120":0.35017,"125":0.00256,"127":0.00256,"128":0.05879,"130":0.00256,"131":0.00256,"132":0.00256,"133":0.00511,"134":0.00511,"135":0.00767,"136":0.01534,"137":0.02812,"138":0.08946,"139":1.75086,"140":0.25304,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 109 110 112 114 116 117 118 119 121 122 123 124 126 129 141 142 143 3.5 3.6"},D:{"34":0.00767,"38":0.01022,"39":0.00256,"40":0.00256,"41":0.00256,"42":0.00256,"43":0.00256,"44":0.00256,"45":0.00256,"46":0.00256,"47":0.00256,"48":0.00256,"49":0.00511,"50":0.00256,"51":0.00256,"52":0.00256,"53":0.01022,"54":0.00256,"55":0.00256,"56":0.00256,"57":0.00256,"58":0.00256,"59":0.00256,"60":0.00256,"71":0.00256,"73":0.00256,"79":0.07668,"80":0.00256,"81":0.00256,"87":0.04856,"88":0.01022,"89":0.00256,"91":0.00256,"94":0.00256,"95":0.00256,"98":0.00256,"99":0.00256,"100":0.00256,"102":0.00511,"103":0.01022,"104":0.01278,"106":0.00511,"107":0.00256,"108":0.03067,"109":0.77191,"110":0.00256,"111":0.00511,"112":0.00511,"114":0.00767,"115":0.00256,"116":0.02045,"118":0.01534,"119":0.01278,"120":0.07157,"121":0.03067,"122":0.02556,"123":0.00767,"124":0.00767,"125":0.02812,"126":0.01278,"127":0.03834,"128":0.02812,"129":0.01022,"130":0.01534,"131":0.04601,"132":0.07157,"133":0.0409,"134":0.04856,"135":0.09457,"136":1.41858,"137":9.94028,"138":0.38596,"139":0.00256,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 66 67 68 69 70 72 74 75 76 77 78 83 84 85 86 90 92 93 96 97 101 105 113 117 140 141"},F:{"46":0.00511,"79":0.00256,"82":0.00256,"86":0.00767,"89":0.01789,"90":0.01022,"95":0.07924,"105":0.03067,"106":0.07668,"114":0.00256,"117":0.00256,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00256,"109":0.01534,"120":0.45752,"126":0.00256,"127":0.00256,"128":0.00256,"129":0.00256,"130":0.00767,"131":0.00767,"132":0.01022,"133":0.00256,"134":0.02556,"135":0.01534,"136":0.23004,"137":1.53871,"138":0.18914,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.0","13.1":0.00767,"14.1":0.00511,"15.4":0.00256,"15.5":0.00256,"15.6":0.03067,"16.0":0.00511,"16.1":0.00511,"16.2":0.00511,"16.3":0.00767,"16.4":0.00256,"16.5":0.00511,"16.6":0.0409,"17.0":0.00256,"17.1":0.0409,"17.2":0.00511,"17.3":0.00256,"17.4":0.01022,"17.5":0.01534,"17.6":0.06134,"18.0":0.00767,"18.1":0.01022,"18.2":0.00767,"18.3":0.03323,"18.4":0.0409,"18.5":0.37062},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00142,"5.0-5.1":0,"6.0-6.1":0.00283,"7.0-7.1":0.00283,"8.1-8.4":0,"9.0-9.2":0.00142,"9.3":0.0085,"10.0-10.2":0.00071,"10.3":0.01417,"11.0-11.2":0.09071,"11.3-11.4":0.00496,"12.0-12.1":0.00142,"12.2-12.5":0.04748,"13.0-13.1":0.00071,"13.2":0.00213,"13.3":0.00142,"13.4-13.7":0.0078,"14.0-14.4":0.01843,"14.5-14.8":0.01843,"15.0-15.1":0.01276,"15.2-15.3":0.01276,"15.4":0.01559,"15.5":0.01701,"15.6-15.8":0.21969,"16.0":0.02906,"16.1":0.05953,"16.2":0.03047,"16.3":0.05598,"16.4":0.01276,"16.5":0.02268,"16.6-16.7":0.27567,"17.0":0.01488,"17.1":0.02622,"17.2":0.02055,"17.3":0.02906,"17.4":0.05173,"17.5":0.10843,"17.6-17.7":0.28347,"18.0":0.07016,"18.1":0.15803,"18.2":0.08362,"18.3":0.3593,"18.4":0.38126,"18.5":4.46957,"26.0":0},P:{"4":0.09405,"20":0.0209,"21":0.0209,"22":0.03135,"23":0.05225,"24":0.0418,"25":0.05225,"26":0.0836,"27":0.2299,"28":2.64379,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.0209,"13.0":0.01045,"19.0":0.01045},I:{"0":0.06688,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.32009,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00511,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.84382},R:{_:"0"},M:{"0":0.22332},Q:{_:"14.9"},O:{"0":0.01489},H:{"0":0}}; +module.exports={C:{"48":0.0064,"49":0.0032,"52":0.05122,"61":0.0032,"68":0.0032,"78":0.0096,"81":0.0032,"83":0.0064,"84":0.0032,"88":0.0064,"89":0.01601,"91":0.0064,"97":0.0032,"99":0.0032,"102":0.0096,"103":0.0064,"107":0.0032,"108":0.0032,"110":0.0032,"111":0.0032,"112":0.0032,"113":0.0064,"114":0.0032,"115":0.61459,"116":0.0032,"117":0.0032,"118":0.0032,"119":0.0032,"120":0.80025,"121":0.06722,"122":0.0096,"123":0.03201,"124":0.06402,"125":1.49487,"126":1.45646,"127":0.0032,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 82 85 86 87 90 92 93 94 95 96 98 100 101 104 105 106 109 128 129 3.5 3.6"},D:{"34":0.0128,"38":0.02241,"47":0.0032,"49":0.0128,"53":0.0032,"69":0.0096,"74":0.0032,"76":0.0032,"78":0.0032,"79":0.14725,"80":0.0032,"81":0.0032,"83":0.0032,"84":0.0032,"86":0.0064,"87":0.09603,"88":0.0096,"89":0.0032,"90":0.0032,"91":0.0064,"94":0.02881,"95":0.0032,"96":0.0032,"97":0.0064,"98":0.0064,"99":0.0128,"100":0.0064,"101":0.0032,"102":0.0096,"103":0.03201,"104":0.0128,"105":0.0032,"106":0.0128,"107":0.0064,"108":0.0096,"109":1.45966,"110":0.0064,"111":0.01601,"112":0.0128,"113":0.01601,"114":0.02561,"115":0.01601,"116":0.05762,"117":0.0128,"118":0.02561,"119":0.04802,"120":0.25608,"121":0.06402,"122":0.13124,"123":0.45454,"124":11.41797,"125":4.89433,"126":0.0064,"127":0.0032,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 75 77 85 92 93 128"},F:{"36":0.0032,"46":0.0064,"79":0.0032,"83":0.0032,"85":0.0032,"86":0.0032,"95":0.09923,"105":0.0032,"106":0.18886,"107":0.19526,"108":0.01921,"109":1.17797,"110":0.08643,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0064,"97":0.0032,"109":0.07042,"110":0.0032,"114":0.0064,"117":0.0032,"118":0.0032,"119":0.0064,"120":0.26888,"121":0.0064,"122":0.01921,"123":0.08003,"124":1.56529,"125":0.99551,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116"},E:{"13":0.0032,"14":0.0096,"15":0.0032,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.0128,"13.1":0.02241,"14.1":0.03201,"15.1":0.0032,"15.2-15.3":0.0064,"15.4":0.0096,"15.5":0.01601,"15.6":0.08003,"16.0":0.0096,"16.1":0.01601,"16.2":0.01921,"16.3":0.03841,"16.4":0.0096,"16.5":0.02241,"16.6":0.10243,"17.0":0.01921,"17.1":0.03201,"17.2":0.02881,"17.3":0.04481,"17.4":0.57938,"17.5":0.10243},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00176,"5.0-5.1":0.00176,"6.0-6.1":0.00439,"7.0-7.1":0.00615,"8.1-8.4":0.00176,"9.0-9.2":0.00439,"9.3":0.02021,"10.0-10.2":0.00351,"10.3":0.03163,"11.0-11.2":0.04656,"11.3-11.4":0.00879,"12.0-12.1":0.00527,"12.2-12.5":0.12739,"13.0-13.1":0.00264,"13.2":0.0123,"13.3":0.00615,"13.4-13.7":0.02811,"14.0-14.4":0.04832,"14.5-14.8":0.07468,"15.0-15.1":0.03602,"15.2-15.3":0.03954,"15.4":0.04481,"15.5":0.05623,"15.6-15.8":0.50605,"16.0":0.11509,"16.1":0.23721,"16.2":0.11509,"16.3":0.19943,"16.4":0.04217,"16.5":0.08522,"16.6-16.7":0.67913,"17.0":0.0738,"17.1":0.12036,"17.2":0.12563,"17.3":0.23194,"17.4":5.26697,"17.5":0.37163,"17.6":0},P:{"4":0.22999,"20":0.02091,"21":0.04182,"22":0.06272,"23":0.12545,"24":0.2509,"25":2.80168,"5.0-5.4":0.01045,"6.2-6.4":0.01045,_:"7.2-7.4 8.2 9.2 10.1 12.0 15.0 16.0","11.1-11.2":0.01045,"13.0":0.02091,"14.0":0.01045,"17.0":0.01045,"18.0":0.01045,"19.0":0.02091},I:{"0":0.08806,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.476,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01216,"11":0.04866,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":55.52125},R:{_:"0"},M:{"0":0.2244},Q:{_:"14.9"},O:{"0":0.0272},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/ID.js b/node_modules/caniuse-lite/data/regions/ID.js index 4aa429684..0ab866fe7 100644 --- a/node_modules/caniuse-lite/data/regions/ID.js +++ b/node_modules/caniuse-lite/data/regions/ID.js @@ -1 +1 @@ -module.exports={C:{"52":0.00327,"109":0.00327,"112":0.00327,"113":0.01962,"114":0.00654,"115":0.0981,"123":0.00327,"125":0.00327,"126":0.00327,"127":0.00981,"128":0.01635,"129":0.00327,"130":0.00327,"131":0.00327,"132":0.00327,"133":0.00654,"134":0.00654,"135":0.01635,"136":0.01962,"137":0.01962,"138":0.09483,"139":1.45842,"140":0.17331,"141":0.00327,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 116 117 118 119 120 121 122 124 142 143 3.5 3.6"},D:{"25":0.00327,"41":0.00327,"43":0.00327,"49":0.00327,"50":0.00327,"52":0.00327,"56":0.00327,"58":0.00327,"79":0.00327,"80":0.00327,"85":0.00327,"87":0.00327,"89":0.00327,"91":0.00327,"94":0.00327,"95":0.00327,"98":0.00327,"100":0.00327,"101":0.00327,"102":0.00327,"103":0.01635,"104":0.00981,"105":0.00654,"106":0.00327,"107":0.00654,"108":0.00654,"109":0.59187,"110":0.00327,"111":0.00654,"112":0.00327,"113":0.00327,"114":0.01308,"115":0.00327,"116":0.05559,"117":0.00327,"118":0.00654,"119":0.01308,"120":0.01962,"121":0.01635,"122":0.05559,"123":0.01962,"124":0.03597,"125":0.05559,"126":0.03924,"127":0.02289,"128":0.08829,"129":0.02289,"130":0.0327,"131":0.09156,"132":0.0654,"133":0.07521,"134":0.06867,"135":0.17004,"136":2.60946,"137":18.90387,"138":0.63765,"139":0.00327,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 47 48 51 53 54 55 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 86 88 90 92 93 96 97 99 140 141"},F:{"89":0.00654,"90":0.00327,"95":0.00981,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00327,"92":0.00327,"109":0.00981,"114":0.00654,"122":0.00327,"126":0.00327,"128":0.00327,"130":0.00327,"131":0.00654,"132":0.00327,"133":0.00654,"134":0.00654,"135":0.04251,"136":0.43818,"137":2.79258,"138":0.21255,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 127 129"},E:{"14":0.00327,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 26.0","5.1":0.00654,"13.1":0.00654,"14.1":0.01308,"15.1":0.00327,"15.2-15.3":0.00327,"15.4":0.00327,"15.5":0.00654,"15.6":0.03924,"16.0":0.00327,"16.1":0.01308,"16.2":0.00654,"16.3":0.00981,"16.4":0.00654,"16.5":0.01962,"16.6":0.05559,"17.0":0.00654,"17.1":0.01308,"17.2":0.01635,"17.3":0.01308,"17.4":0.02289,"17.5":0.03924,"17.6":0.08175,"18.0":0.02289,"18.1":0.0327,"18.2":0.02289,"18.3":0.0654,"18.4":0.05886,"18.5":0.29757},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00089,"5.0-5.1":0,"6.0-6.1":0.00178,"7.0-7.1":0.00178,"8.1-8.4":0,"9.0-9.2":0.00089,"9.3":0.00535,"10.0-10.2":0.00045,"10.3":0.00891,"11.0-11.2":0.05703,"11.3-11.4":0.00312,"12.0-12.1":0.00089,"12.2-12.5":0.02985,"13.0-13.1":0.00045,"13.2":0.00134,"13.3":0.00089,"13.4-13.7":0.0049,"14.0-14.4":0.01158,"14.5-14.8":0.01158,"15.0-15.1":0.00802,"15.2-15.3":0.00802,"15.4":0.0098,"15.5":0.01069,"15.6-15.8":0.13811,"16.0":0.01827,"16.1":0.03742,"16.2":0.01916,"16.3":0.0352,"16.4":0.00802,"16.5":0.01426,"16.6-16.7":0.17331,"17.0":0.00936,"17.1":0.01648,"17.2":0.01292,"17.3":0.01827,"17.4":0.03252,"17.5":0.06817,"17.6-17.7":0.17821,"18.0":0.04411,"18.1":0.09935,"18.2":0.05257,"18.3":0.22588,"18.4":0.23969,"18.5":2.80993,"26.0":0},P:{"4":0.01039,"21":0.01039,"22":0.01039,"23":0.01039,"24":0.01039,"25":0.02077,"26":0.03116,"27":0.08309,"28":0.64392,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01039},I:{"0":0.45686,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00037},K:{"0":0.37015,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00365,"11":0.21871,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.34078},R:{_:"0"},M:{"0":0.04711},Q:{_:"14.9"},O:{"0":0.3365},H:{"0":0}}; +module.exports={C:{"36":0.02797,"52":0.004,"72":0.004,"78":0.004,"88":0.004,"105":0.004,"107":0.004,"109":0.004,"110":0.004,"111":0.004,"112":0.004,"113":0.01998,"114":0.004,"115":0.24376,"116":0.004,"117":0.004,"118":0.004,"119":0.004,"120":0.00799,"121":0.01199,"122":0.01199,"123":0.02797,"124":0.05195,"125":1.21079,"126":1.05894,"127":0.01598,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 108 128 129 3.5 3.6"},D:{"25":0.004,"52":0.00799,"56":0.004,"61":0.004,"69":0.004,"70":0.004,"71":0.004,"74":0.004,"79":0.01199,"80":0.00799,"81":0.01598,"83":0.004,"84":0.004,"85":0.004,"86":0.004,"87":0.01199,"88":0.004,"89":0.01199,"90":0.004,"91":0.004,"92":0.004,"93":0.004,"94":0.004,"95":0.004,"96":0.004,"97":0.004,"98":0.004,"99":0.01598,"100":0.02398,"101":0.004,"102":0.00799,"103":0.03197,"104":0.01199,"105":0.01199,"106":0.01199,"107":0.01199,"108":0.01598,"109":1.45454,"110":0.00799,"111":0.03596,"112":0.03197,"113":0.01998,"114":0.03596,"115":0.01199,"116":0.10789,"117":0.03596,"118":0.03197,"119":0.05594,"120":0.0959,"121":0.08392,"122":0.21179,"123":0.5035,"124":19.21676,"125":8.01198,"126":0.00799,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 62 63 64 65 66 67 68 72 73 75 76 77 78 127 128"},F:{"95":0.01998,"102":0.004,"107":0.04795,"108":0.004,"109":0.34366,"110":0.02398,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.004,"14":0.004,"18":0.00799,"92":0.01199,"100":0.004,"109":0.01998,"114":0.004,"117":0.004,"118":0.004,"119":0.004,"120":0.01199,"121":0.01199,"122":0.02797,"123":0.03996,"124":2.51348,"125":1.4985,_:"13 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116"},E:{"14":0.01199,"15":0.004,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.02398,"13.1":0.01998,"14.1":0.04396,"15.1":0.01598,"15.2-15.3":0.00799,"15.4":0.01199,"15.5":0.01598,"15.6":0.08791,"16.0":0.00799,"16.1":0.03197,"16.2":0.01598,"16.3":0.03197,"16.4":0.01598,"16.5":0.04795,"16.6":0.07992,"17.0":0.02797,"17.1":0.04795,"17.2":0.04795,"17.3":0.05594,"17.4":0.33167,"17.5":0.04795},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00128,"5.0-5.1":0.00128,"6.0-6.1":0.0032,"7.0-7.1":0.00448,"8.1-8.4":0.00128,"9.0-9.2":0.0032,"9.3":0.01471,"10.0-10.2":0.00256,"10.3":0.02302,"11.0-11.2":0.03389,"11.3-11.4":0.00639,"12.0-12.1":0.00384,"12.2-12.5":0.09272,"13.0-13.1":0.00192,"13.2":0.00895,"13.3":0.00448,"13.4-13.7":0.02046,"14.0-14.4":0.03517,"14.5-14.8":0.05435,"15.0-15.1":0.02622,"15.2-15.3":0.02877,"15.4":0.03261,"15.5":0.04092,"15.6-15.8":0.36831,"16.0":0.08376,"16.1":0.17265,"16.2":0.08376,"16.3":0.14515,"16.4":0.03069,"16.5":0.06202,"16.6-16.7":0.49428,"17.0":0.05371,"17.1":0.0876,"17.2":0.09144,"17.3":0.16881,"17.4":3.83336,"17.5":0.27048,"17.6":0},P:{"4":0.03076,"20":0.0205,"21":0.06151,"22":0.09227,"23":0.12303,"24":0.2153,"25":0.96373,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.0205,"7.2-7.4":0.08202,"9.2":0.01025,"11.1-11.2":0.0205,"13.0":0.01025,"14.0":0.01025,"15.0":0.01025,"16.0":0.0205,"17.0":0.0205,"18.0":0.01025,"19.0":0.03076},I:{"0":0.03588,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.67245,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.004,"11":0.03996,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.26234},R:{_:"0"},M:{"0":0.07805},Q:{"14.9":0.006},O:{"0":0.78652},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/IE.js b/node_modules/caniuse-lite/data/regions/IE.js index 5a6188c85..f4c75d2c9 100644 --- a/node_modules/caniuse-lite/data/regions/IE.js +++ b/node_modules/caniuse-lite/data/regions/IE.js @@ -1 +1 @@ -module.exports={C:{"36":0.00319,"48":0.00319,"59":0.16269,"78":0.00638,"84":0.01595,"108":0.00319,"113":0.01914,"115":0.04147,"121":0.00319,"128":0.08294,"130":0.00319,"132":0.00957,"133":0.00319,"134":0.00319,"135":0.00319,"136":0.01595,"137":0.00638,"138":0.04147,"139":0.76241,"140":0.0957,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 114 116 117 118 119 120 122 123 124 125 126 127 129 131 141 142 143 3.6","3.5":0.00319},D:{"39":0.05742,"40":0.05423,"41":0.05742,"42":0.05423,"43":0.05742,"44":0.05423,"45":0.05423,"46":0.05423,"47":0.05742,"48":0.05423,"49":0.05742,"50":0.05742,"51":0.05423,"52":0.07018,"53":0.05742,"54":0.05742,"55":0.05423,"56":0.05423,"57":0.05742,"58":0.06061,"59":0.05423,"60":0.05423,"63":0.00319,"65":0.00319,"74":0.08613,"79":0.02552,"81":0.03509,"85":0.00319,"87":0.02233,"88":0.01914,"91":0.00638,"92":0.00319,"93":0.00319,"94":0.00319,"98":0.00319,"99":0.00319,"100":0.00319,"101":0.00319,"102":0.00319,"103":0.02233,"104":0.44979,"105":0.00638,"106":0.04785,"107":0.00638,"108":0.01276,"109":0.26796,"110":0.00319,"111":0.00319,"112":0.00319,"113":0.00638,"114":0.00957,"115":0.00638,"116":0.06699,"117":0.00638,"118":0.00319,"119":0.00957,"120":0.04466,"121":0.02233,"122":0.05104,"123":0.00957,"124":0.03509,"125":0.37642,"126":0.05423,"127":0.00957,"128":0.05423,"129":0.02552,"130":0.01914,"131":2.75935,"132":2.29361,"133":2.25214,"134":0.1276,"135":0.23606,"136":1.4993,"137":7.99733,"138":0.29029,"139":0.00319,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 66 67 68 69 70 71 72 73 75 76 77 78 80 83 84 86 89 90 95 96 97 140 141"},F:{"36":0.00319,"46":0.00638,"89":0.02871,"90":0.01276,"96":0.00319,"107":0.00319,"117":0.01595,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"107":0.00638,"109":0.00957,"120":0.00319,"121":0.00638,"125":0.01276,"127":0.00319,"128":0.00319,"129":0.00957,"130":0.00957,"131":0.01276,"132":0.00957,"133":0.00638,"134":0.37323,"135":0.02871,"136":0.53911,"137":3.35588,"138":0.1914,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 122 123 124 126"},E:{"8":0.01276,"13":0.00319,"14":0.01595,"15":0.00319,_:"0 4 5 6 7 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.00319,"13.1":0.01914,"14.1":0.04147,"15.1":0.00319,"15.2-15.3":0.00638,"15.4":0.00957,"15.5":0.00957,"15.6":0.14355,"16.0":0.03509,"16.1":0.00957,"16.2":0.01914,"16.3":0.04147,"16.4":0.01276,"16.5":0.00957,"16.6":0.16907,"17.0":0.00638,"17.1":0.13398,"17.2":0.01914,"17.3":0.01276,"17.4":0.02233,"17.5":0.05423,"17.6":0.14036,"18.0":0.01276,"18.1":0.04147,"18.2":0.01595,"18.3":0.11165,"18.4":0.10208,"18.5":1.09736},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00397,"5.0-5.1":0,"6.0-6.1":0.00795,"7.0-7.1":0.00795,"8.1-8.4":0,"9.0-9.2":0.00397,"9.3":0.02384,"10.0-10.2":0.00199,"10.3":0.03973,"11.0-11.2":0.25427,"11.3-11.4":0.01391,"12.0-12.1":0.00397,"12.2-12.5":0.13309,"13.0-13.1":0.00199,"13.2":0.00596,"13.3":0.00397,"13.4-13.7":0.02185,"14.0-14.4":0.05165,"14.5-14.8":0.05165,"15.0-15.1":0.03576,"15.2-15.3":0.03576,"15.4":0.0437,"15.5":0.04768,"15.6-15.8":0.61581,"16.0":0.08145,"16.1":0.16686,"16.2":0.08542,"16.3":0.15693,"16.4":0.03576,"16.5":0.06357,"16.6-16.7":0.77274,"17.0":0.04172,"17.1":0.0735,"17.2":0.05761,"17.3":0.08145,"17.4":0.14501,"17.5":0.30393,"17.6-17.7":0.79459,"18.0":0.19666,"18.1":0.44298,"18.2":0.2344,"18.3":1.00714,"18.4":1.06872,"18.5":12.52871,"26.0":0},P:{"4":0.01042,"20":0.02083,"21":0.03125,"22":0.03125,"23":0.04167,"24":0.0625,"25":0.05208,"26":0.05208,"27":0.20833,"28":2.99995,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","19.0":0.01042},I:{"0":0.04759,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.09215,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.01914,"11":0.02871,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.79431},R:{_:"0"},M:{"0":0.31326},Q:{_:"14.9"},O:{"0":0.01362},H:{"0":0.01}}; +module.exports={C:{"38":0.02145,"41":0.00919,"43":0.0337,"44":0.11337,"45":0.02451,"52":0.00306,"59":0.00306,"72":0.00306,"78":0.01532,"88":0.00306,"102":0.00306,"103":0.01532,"107":0.04902,"115":0.22367,"116":0.00306,"119":0.00306,"121":0.00306,"122":0.01532,"123":0.00613,"124":0.0429,"125":0.56684,"126":0.4933,"127":0.00306,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 108 109 110 111 112 113 114 117 118 120 128 129 3.5 3.6"},D:{"38":0.00306,"39":0.00306,"44":0.00306,"47":0.02451,"48":0.3064,"49":0.12256,"51":0.00306,"53":0.00306,"63":0.00306,"74":0.00613,"76":0.00306,"79":0.02451,"81":0.03677,"83":0.00306,"85":0.00613,"86":0.09805,"87":0.04902,"88":0.01532,"89":0.01532,"90":0.00306,"91":0.22061,"92":0.00919,"93":0.05515,"94":0.00613,"95":0.00306,"96":0.00306,"98":0.00306,"99":0.00306,"100":0.09498,"101":0.19303,"102":0.1103,"103":0.15933,"104":0.13788,"105":0.03677,"106":0.00613,"107":0.00613,"108":0.00919,"109":0.35236,"110":0.01226,"111":0.00306,"112":0.00613,"113":0.07047,"114":0.14401,"115":0.01838,"116":0.15014,"117":0.05515,"118":0.01226,"119":0.03983,"120":0.08273,"121":1.73422,"122":0.26963,"123":0.71085,"124":10.88639,"125":3.54505,"126":0.00613,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 41 42 43 45 46 50 52 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 75 77 78 80 84 97 127 128"},F:{"46":0.00919,"95":0.00613,"107":0.15014,"108":0.00306,"109":0.45347,"110":0.01838,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00613,"13":0.00613,"18":0.00306,"92":0.00306,"107":0.00306,"108":0.00306,"109":0.01838,"113":0.00306,"114":0.00306,"116":0.00613,"117":0.00613,"118":0.00306,"119":0.00306,"120":0.01838,"121":0.01838,"122":0.05209,"123":0.16239,"124":2.21834,"125":1.34816,_:"14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 115"},E:{"8":0.00919,"9":0.03983,"13":0.00306,"14":0.10724,"15":0.00919,_:"0 4 5 6 7 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00306,"12.1":0.00919,"13.1":0.05515,"14.1":0.11643,"15.1":0.00919,"15.2-15.3":0.02145,"15.4":0.03677,"15.5":0.03983,"15.6":0.29108,"16.0":0.06434,"16.1":0.0429,"16.2":0.07047,"16.3":0.18384,"16.4":0.02451,"16.5":0.05209,"16.6":0.34317,"17.0":0.0429,"17.1":0.11337,"17.2":0.08579,"17.3":0.09498,"17.4":1.65762,"17.5":0.15014},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.004,"5.0-5.1":0.004,"6.0-6.1":0.01,"7.0-7.1":0.014,"8.1-8.4":0.004,"9.0-9.2":0.01,"9.3":0.046,"10.0-10.2":0.008,"10.3":0.072,"11.0-11.2":0.106,"11.3-11.4":0.02,"12.0-12.1":0.012,"12.2-12.5":0.28999,"13.0-13.1":0.006,"13.2":0.028,"13.3":0.014,"13.4-13.7":0.064,"14.0-14.4":0.11,"14.5-14.8":0.16999,"15.0-15.1":0.082,"15.2-15.3":0.09,"15.4":0.102,"15.5":0.128,"15.6-15.8":1.15196,"16.0":0.26199,"16.1":0.53998,"16.2":0.26199,"16.3":0.45399,"16.4":0.096,"16.5":0.19399,"16.6-16.7":1.54595,"17.0":0.16799,"17.1":0.27399,"17.2":0.28599,"17.3":0.52798,"17.4":11.98962,"17.5":0.84597,"17.6":0},P:{"4":0.01049,"20":0.03148,"21":0.05246,"22":0.06296,"23":0.15739,"24":0.32527,"25":3.4206,_:"5.0-5.4 8.2 9.2 10.1 12.0 15.0 16.0","6.2-6.4":0.01049,"7.2-7.4":0.02099,"11.1-11.2":0.01049,"13.0":0.01049,"14.0":0.01049,"17.0":0.01049,"18.0":0.01049,"19.0":0.03148},I:{"0":0.08983,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.17036,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00636,"9":0.07955,"11":0.07955,_:"6 7 10 5.5"},S:{"2.5":0.00694,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.61361},R:{_:"0"},M:{"0":0.45091},Q:{_:"14.9"},O:{"0":0.02081},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/IL.js b/node_modules/caniuse-lite/data/regions/IL.js index 332aa26db..91912fcfc 100644 --- a/node_modules/caniuse-lite/data/regions/IL.js +++ b/node_modules/caniuse-lite/data/regions/IL.js @@ -1 +1 @@ -module.exports={C:{"24":0.00283,"25":0.00567,"26":0.01417,"27":0.00283,"36":0.00283,"51":0.00283,"52":0.00567,"75":0.00283,"78":0.00283,"108":0.00283,"110":0.00283,"115":0.09919,"119":0.00567,"123":0.00283,"127":0.00283,"128":0.01417,"130":0.00283,"133":0.00567,"134":0.0085,"135":0.00567,"136":0.01134,"137":0.01417,"138":0.04251,"139":0.68016,"140":0.09069,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 111 112 113 114 116 117 118 120 121 122 124 125 126 129 131 132 141 142 143 3.5 3.6"},D:{"31":0.01984,"32":0.00567,"38":0.01134,"39":0.00283,"40":0.00567,"41":0.00567,"42":0.00283,"43":0.00283,"44":0.00283,"45":0.00567,"46":0.00283,"47":0.00567,"48":0.00283,"49":0.00567,"50":0.00567,"51":0.00283,"52":0.00283,"53":0.00567,"54":0.00283,"55":0.00567,"56":0.0085,"57":0.00567,"58":0.00283,"59":0.00283,"60":0.00283,"64":0.0085,"65":0.00283,"69":0.00283,"74":0.0085,"76":0.00283,"79":0.02551,"80":0.00283,"81":0.00567,"83":0.00567,"85":0.0085,"86":0.0085,"87":0.03117,"88":0.00283,"90":0.00567,"91":0.02551,"92":0.00283,"94":0.00283,"95":0.00283,"98":0.00283,"99":0.00283,"100":0.00283,"102":0.00567,"103":0.01134,"104":0.00567,"105":0.00283,"106":0.0085,"107":0.00567,"108":0.03401,"109":0.57814,"110":0.00283,"111":0.00283,"112":0.00283,"113":0.00283,"114":0.0085,"115":0.01417,"116":0.09069,"117":0.00567,"118":0.00283,"119":0.03401,"120":0.017,"121":0.01417,"122":0.03117,"123":0.01417,"124":0.01417,"125":0.32024,"126":0.017,"127":0.02267,"128":0.05385,"129":0.01417,"130":0.017,"131":0.08785,"132":0.05385,"133":0.05101,"134":0.07652,"135":0.16721,"136":2.15101,"137":14.52142,"138":0.51579,"139":0.00567,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 61 62 63 66 67 68 70 71 72 73 75 77 78 84 89 93 96 97 101 140 141"},F:{"46":0.00283,"89":0.02267,"90":0.017,"95":0.017,"114":0.00283,"116":0.00283,"117":0.00283,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00283,"92":0.00283,"102":0.00283,"103":0.00283,"104":0.00283,"107":0.00283,"109":0.02551,"112":0.00283,"114":0.00283,"115":0.00283,"121":0.00283,"122":0.00283,"125":0.00283,"126":0.00283,"128":0.00567,"129":0.00567,"130":0.0085,"131":0.01417,"132":0.01134,"133":0.0085,"134":0.02834,"135":0.01984,"136":0.28623,"137":1.90445,"138":0.15304,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 105 106 108 110 111 113 116 117 118 119 120 123 124 127"},E:{"7":0.00567,"8":0.05101,"14":0.00283,"15":0.00283,_:"0 4 5 6 9 10 11 12 13 3.1 3.2 7.1 9.1 10.1 11.1 12.1 15.4 16.4 26.0","5.1":0.00283,"6.1":0.00567,"13.1":0.00567,"14.1":0.02551,"15.1":0.00283,"15.2-15.3":0.00567,"15.5":0.01134,"15.6":0.04818,"16.0":0.00567,"16.1":0.00567,"16.2":0.00567,"16.3":0.017,"16.5":0.0085,"16.6":0.09919,"17.0":0.00283,"17.1":0.07652,"17.2":0.00283,"17.3":0.00283,"17.4":0.00567,"17.5":0.02267,"17.6":0.09069,"18.0":0.0085,"18.1":0.02267,"18.2":0.0085,"18.3":0.03401,"18.4":0.03401,"18.5":0.59797},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00282,"5.0-5.1":0,"6.0-6.1":0.00564,"7.0-7.1":0.00564,"8.1-8.4":0,"9.0-9.2":0.00282,"9.3":0.01692,"10.0-10.2":0.00141,"10.3":0.02819,"11.0-11.2":0.18045,"11.3-11.4":0.00987,"12.0-12.1":0.00282,"12.2-12.5":0.09445,"13.0-13.1":0.00141,"13.2":0.00423,"13.3":0.00282,"13.4-13.7":0.01551,"14.0-14.4":0.03665,"14.5-14.8":0.03665,"15.0-15.1":0.02538,"15.2-15.3":0.02538,"15.4":0.03101,"15.5":0.03383,"15.6-15.8":0.43702,"16.0":0.0578,"16.1":0.11842,"16.2":0.06062,"16.3":0.11137,"16.4":0.02538,"16.5":0.04511,"16.6-16.7":0.54839,"17.0":0.0296,"17.1":0.05216,"17.2":0.04088,"17.3":0.0578,"17.4":0.10291,"17.5":0.21569,"17.6-17.7":0.5639,"18.0":0.13957,"18.1":0.31437,"18.2":0.16635,"18.3":0.71474,"18.4":0.75844,"18.5":8.89129,"26.0":0},P:{"4":0.03081,"20":0.02054,"21":0.04107,"22":0.08215,"23":0.09242,"24":0.07188,"25":0.11295,"26":0.14376,"27":0.43127,"28":7.31107,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 15.0 16.0","7.2-7.4":0.02054,"9.2":0.01027,"11.1-11.2":0.02054,"13.0":0.01027,"14.0":0.01027,"17.0":0.02054,"18.0":0.01027,"19.0":0.03081},I:{"0":0.00715,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.39569,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00283,"10":0.00283,"11":0.01984,_:"6 7 8 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.17132},R:{_:"0"},M:{"0":0.25085},Q:{_:"14.9"},O:{"0":0.05017},H:{"0":0.02}}; +module.exports={C:{"24":0.00308,"25":0.00923,"26":0.02155,"27":0.00308,"28":0.00308,"29":0.00308,"31":0.00308,"33":0.00308,"36":0.00308,"51":0.00308,"52":0.01231,"56":0.01231,"59":0.01539,"68":0.00308,"78":0.00308,"80":0.03694,"88":0.00308,"102":0.00308,"103":0.00308,"105":0.00308,"106":0.00308,"107":0.00308,"108":0.00308,"110":0.00308,"111":0.00308,"113":0.01231,"115":0.14467,"119":0.00616,"120":0.00616,"121":0.00616,"122":0.00616,"123":0.01231,"124":0.06156,"125":0.53865,"126":0.41861,"127":0.00308,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 30 32 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 57 58 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 109 112 114 116 117 118 128 129 3.5 3.6"},D:{"12":0.00308,"31":0.03078,"32":0.00616,"35":0.00308,"38":0.01539,"40":0.00308,"41":0.00308,"49":0.00616,"51":0.00308,"52":0.01231,"55":0.00308,"56":0.00616,"61":0.00308,"65":0.00923,"66":0.07387,"68":0.00308,"69":0.00308,"70":0.00308,"71":0.00308,"72":0.00308,"74":0.00308,"75":0.00616,"76":0.00308,"78":0.00308,"79":0.04001,"80":0.00923,"81":0.00616,"83":0.01231,"84":0.00308,"85":0.00616,"86":0.00923,"87":0.03386,"88":0.00923,"89":0.00923,"90":0.00923,"91":0.02155,"92":0.00616,"94":0.00923,"95":0.00616,"96":0.01231,"97":0.01231,"98":0.00308,"99":0.00308,"100":0.00616,"101":0.00308,"102":0.01539,"103":0.02155,"104":0.01847,"105":0.00923,"106":0.02155,"107":0.01231,"108":0.04001,"109":0.96649,"110":0.00923,"111":0.01539,"112":0.01847,"113":0.07387,"114":0.08311,"115":0.02155,"116":0.06464,"117":0.01847,"118":0.02462,"119":0.06156,"120":0.11081,"121":0.11696,"122":0.20007,"123":0.88954,"124":14.4112,"125":5.43267,"126":0.00923,_:"4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 36 37 39 42 43 44 45 46 47 48 50 53 54 57 58 59 60 62 63 64 67 73 77 93 127 128"},F:{"28":0.00308,"46":0.00923,"69":0.00308,"78":0.00308,"82":0.00308,"83":0.00308,"95":0.01539,"107":0.0985,"108":0.01539,"109":0.5602,"110":0.0277,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 79 80 81 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00308},B:{"15":0.00308,"17":0.00923,"18":0.00616,"92":0.00308,"98":0.00308,"104":0.00308,"107":0.00308,"108":0.00616,"109":0.02462,"110":0.00616,"112":0.00308,"113":0.00308,"114":0.00308,"115":0.00308,"117":0.00308,"118":0.00308,"119":0.00923,"120":0.01847,"121":0.01231,"122":0.02155,"123":0.12312,"124":1.65596,"125":0.8957,_:"12 13 14 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 105 106 111 116"},E:{"6":0.00308,"7":0.00308,"8":0.12312,"9":0.00308,"10":0.00308,"14":0.02155,"15":0.00308,_:"0 4 5 11 12 13 3.1 3.2 7.1 10.1 12.1 17.6","5.1":0.00308,"6.1":0.00616,"9.1":0.00616,"11.1":0.01539,"13.1":0.01539,"14.1":0.04309,"15.1":0.00308,"15.2-15.3":0.02462,"15.4":0.00308,"15.5":0.01539,"15.6":0.08311,"16.0":0.00616,"16.1":0.02462,"16.2":0.00923,"16.3":0.04617,"16.4":0.00616,"16.5":0.01539,"16.6":0.14159,"17.0":0.00923,"17.1":0.02155,"17.2":0.01847,"17.3":0.03694,"17.4":0.65561,"17.5":0.06772},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00297,"5.0-5.1":0.00297,"6.0-6.1":0.00741,"7.0-7.1":0.01038,"8.1-8.4":0.00297,"9.0-9.2":0.00741,"9.3":0.0341,"10.0-10.2":0.00593,"10.3":0.05338,"11.0-11.2":0.07858,"11.3-11.4":0.01483,"12.0-12.1":0.0089,"12.2-12.5":0.21499,"13.0-13.1":0.00445,"13.2":0.02076,"13.3":0.01038,"13.4-13.7":0.04745,"14.0-14.4":0.08155,"14.5-14.8":0.12603,"15.0-15.1":0.06079,"15.2-15.3":0.06672,"15.4":0.07562,"15.5":0.09489,"15.6-15.8":0.85403,"16.0":0.19423,"16.1":0.40033,"16.2":0.19423,"16.3":0.33657,"16.4":0.07117,"16.5":0.14382,"16.6-16.7":1.14612,"17.0":0.12455,"17.1":0.20313,"17.2":0.21203,"17.3":0.39143,"17.4":8.88874,"17.5":0.62718,"17.6":0},P:{"4":0.06143,"20":0.07167,"21":0.09215,"22":0.15359,"23":0.29694,"24":0.60411,"25":6.77831,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0","7.2-7.4":0.01024,"9.2":0.01024,"11.1-11.2":0.04096,"13.0":0.0512,"14.0":0.03072,"15.0":0.01024,"16.0":0.03072,"17.0":0.03072,"18.0":0.02048,"19.0":0.07167},I:{"0":0.03448,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.29457,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00616,"9":0.00616,"10":0.00616,"11":0.0554,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.93321},R:{_:"0"},M:{"0":0.20766},Q:{_:"14.9"},O:{"0":0.02769},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/IM.js b/node_modules/caniuse-lite/data/regions/IM.js index a6aa97e18..a63deef6e 100644 --- a/node_modules/caniuse-lite/data/regions/IM.js +++ b/node_modules/caniuse-lite/data/regions/IM.js @@ -1 +1 @@ -module.exports={C:{"78":0.00436,"113":0.00436,"115":0.14398,"125":0.02182,"128":0.03927,"131":0.00436,"132":0.00436,"134":0.00436,"136":0.00873,"137":0.01309,"138":0.02618,"139":0.96422,"140":0.14834,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 127 129 130 133 135 141 142 143 3.5 3.6"},D:{"39":0.00436,"40":0.00436,"41":0.00873,"42":0.00873,"43":0.00873,"44":0.00873,"45":0.00873,"46":0.00436,"47":0.00436,"48":0.00436,"49":0.03927,"50":0.00436,"51":0.00873,"52":0.00436,"53":0.00436,"54":0.00436,"55":0.00436,"56":0.00436,"57":0.00436,"58":0.00436,"59":0.00436,"62":0.00436,"86":0.00873,"87":0.01745,"91":0.00436,"96":0.00436,"97":0.00436,"98":0.14398,"99":0.04363,"101":0.00436,"103":0.03054,"108":0.00873,"109":0.16579,"111":0.01309,"112":0.00436,"114":0.00436,"116":0.12216,"117":0.00873,"118":0.00436,"119":0.06108,"120":0.01309,"121":0.02182,"122":0.03927,"123":0.00436,"124":0.0829,"125":0.58464,"126":0.01309,"127":0.00436,"128":0.06981,"129":0.01309,"130":0.13089,"131":0.2836,"132":0.03054,"133":0.03054,"134":0.0349,"135":0.17888,"136":2.22949,"137":10.68935,"138":1.37871,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 60 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 88 89 90 92 93 94 95 100 102 104 105 106 107 110 113 115 139 140 141"},F:{"79":0.01309,"83":0.00436,"89":0.00873,"90":0.00436,"95":0.00436,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00436,"91":0.00436,"98":0.01309,"99":0.00436,"107":0.04363,"109":0.0349,"130":0.00436,"131":0.00436,"133":0.01745,"134":0.02618,"135":0.00873,"136":0.97731,"137":6.18237,"138":0.34031,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 132"},E:{"14":0.00873,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4","13.1":0.05236,"14.1":0.02182,"15.2-15.3":0.01745,"15.5":0.04363,"15.6":0.35777,"16.0":0.13089,"16.1":0.01309,"16.2":0.0349,"16.3":0.07853,"16.4":0.00436,"16.5":0.01309,"16.6":0.4363,"17.0":0.01309,"17.1":0.95986,"17.2":0.04799,"17.3":0.00436,"17.4":0.0349,"17.5":0.07417,"17.6":5.11344,"18.0":0.15707,"18.1":0.07417,"18.2":0.02182,"18.3":0.53665,"18.4":0.84642,"18.5":6.03839,"26.0":0.00436},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00566,"5.0-5.1":0,"6.0-6.1":0.01132,"7.0-7.1":0.01132,"8.1-8.4":0,"9.0-9.2":0.00566,"9.3":0.03397,"10.0-10.2":0.00283,"10.3":0.05662,"11.0-11.2":0.36236,"11.3-11.4":0.01982,"12.0-12.1":0.00566,"12.2-12.5":0.18967,"13.0-13.1":0.00283,"13.2":0.00849,"13.3":0.00566,"13.4-13.7":0.03114,"14.0-14.4":0.0736,"14.5-14.8":0.0736,"15.0-15.1":0.05096,"15.2-15.3":0.05096,"15.4":0.06228,"15.5":0.06794,"15.6-15.8":0.87758,"16.0":0.11607,"16.1":0.2378,"16.2":0.12173,"16.3":0.22364,"16.4":0.05096,"16.5":0.09059,"16.6-16.7":1.10122,"17.0":0.05945,"17.1":0.10474,"17.2":0.0821,"17.3":0.11607,"17.4":0.20666,"17.5":0.43313,"17.6-17.7":1.13236,"18.0":0.28026,"18.1":0.63129,"18.2":0.33405,"18.3":1.43527,"18.4":1.52302,"18.5":17.8545,"26.0":0},P:{"4":0.02294,"21":0.12619,"23":0.01147,"24":0.28679,"25":0.02294,"26":0.43593,"27":0.06883,"28":2.89089,_:"20 22 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01147,"7.2-7.4":0.04589},I:{"0":0.00563,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.16347,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.61605},R:{_:"0"},M:{"0":0.69335},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"2":0.00359,"3":0.00359,"4":0.00359,"5":0.00359,"10":0.00359,"13":0.00359,"19":0.00359,"25":0.00359,"27":0.00359,"31":0.00359,"32":0.00359,"33":0.00359,"35":0.00359,"37":0.00359,"38":0.00359,"39":0.00359,"40":0.00359,"41":0.00359,"43":0.00359,"96":0.01436,"99":0.00359,"102":0.21546,"103":0.81516,"104":0.01077,"105":0.01436,"113":0.00359,"115":0.54583,"120":0.00718,"121":0.00359,"122":0.00359,"123":0.00359,"124":0.09696,"125":0.64638,"126":0.62124,_:"6 7 8 9 11 12 14 15 16 17 18 20 21 22 23 24 26 28 29 30 34 36 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 100 101 106 107 108 109 110 111 112 114 116 117 118 119 127 128 129","3.5":0.00359,"3.6":0.00718},D:{"10":0.00359,"18":0.00359,"21":0.00718,"28":0.00359,"29":0.00359,"31":0.00359,"32":0.00359,"36":0.00359,"37":0.00718,"38":0.00718,"39":0.01077,"40":0.00359,"41":0.00718,"42":0.01436,"43":0.01796,"44":0.02514,"45":0.01796,"46":0.02155,"47":0.01436,"51":0.02873,"70":0.00718,"76":0.00718,"86":0.01077,"87":0.00359,"93":0.00359,"95":0.01436,"98":0.00359,"102":0.18314,"103":0.23342,"104":1.71291,"105":0.05027,"108":0.00359,"109":0.45247,"113":0.00359,"114":0.00718,"115":0.00718,"116":0.35551,"117":0.00718,"118":0.02155,"119":0.06105,"120":0.079,"121":0.16878,"122":0.05746,"123":0.49915,"124":8.90568,"125":2.60348,_:"4 5 6 7 8 9 11 12 13 14 15 16 17 19 20 22 23 24 25 26 27 30 33 34 35 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 77 78 79 80 81 83 84 85 88 89 90 91 92 94 96 97 99 100 101 106 107 110 111 112 126 127 128"},F:{"31":0.00718,"32":0.00359,"86":0.00359,"107":0.05387,"108":0.00359,"109":0.60688,"110":0.07541,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00359},B:{"12":0.00359,"107":0.01436,"109":0.01436,"118":0.00359,"120":0.01077,"122":0.00718,"123":0.1616,"124":5.39727,"125":2.05764,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 119 121"},E:{"5":0.00359,"7":0.00359,"9":0.04668,"12":0.00359,"13":0.00718,"14":0.0395,_:"0 4 6 8 10 11 15 3.1 3.2 9.1 10.1 11.1 17.6","5.1":0.00359,"6.1":0.00359,"7.1":0.00359,"12.1":0.03232,"13.1":0.15082,"14.1":0.06823,"15.1":0.02514,"15.2-15.3":0.03232,"15.4":0.01436,"15.5":0.10414,"15.6":0.54224,"16.0":0.01796,"16.1":0.04668,"16.2":0.08978,"16.3":0.29087,"16.4":0.02155,"16.5":0.05746,"16.6":0.75411,"17.0":0.02514,"17.1":0.06464,"17.2":0.48479,"17.3":0.06464,"17.4":4.58571,"17.5":0.26573},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00767,"5.0-5.1":0.00767,"6.0-6.1":0.01917,"7.0-7.1":0.02683,"8.1-8.4":0.00767,"9.0-9.2":0.01917,"9.3":0.08816,"10.0-10.2":0.01533,"10.3":0.138,"11.0-11.2":0.20316,"11.3-11.4":0.03833,"12.0-12.1":0.023,"12.2-12.5":0.55582,"13.0-13.1":0.0115,"13.2":0.05367,"13.3":0.02683,"13.4-13.7":0.12266,"14.0-14.4":0.21083,"14.5-14.8":0.32582,"15.0-15.1":0.15716,"15.2-15.3":0.1725,"15.4":0.19549,"15.5":0.24533,"15.6-15.8":2.20794,"16.0":0.50215,"16.1":1.03497,"16.2":0.50215,"16.3":0.87014,"16.4":0.18399,"16.5":0.37182,"16.6-16.7":2.96308,"17.0":0.32199,"17.1":0.52515,"17.2":0.54815,"17.3":1.01197,"17.4":22.98017,"17.5":1.62145,"17.6":0},P:{"4":0.01103,"20":0.05513,"21":0.02205,"22":0.01103,"23":0.0441,"24":0.25358,"25":2.54684,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 18.0 19.0","6.2-6.4":0.02205,"15.0":0.01103,"17.0":0.1764},I:{"0":0.24259,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00005,"4.2-4.3":0.00015,"4.4":0,"4.4.3-4.4.4":0.00054},K:{"0":0.24354,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00728,"7":0.01091,"8":0.12368,"9":0.02183,"10":0.0291,"11":0.08003,_:"5.5"},S:{"2.5":0.00641,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.89299},R:{_:"0"},M:{"0":0.86522},Q:{_:"14.9"},O:{"0":0.02564},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/IN.js b/node_modules/caniuse-lite/data/regions/IN.js index 4c45b7dfe..920f98b09 100644 --- a/node_modules/caniuse-lite/data/regions/IN.js +++ b/node_modules/caniuse-lite/data/regions/IN.js @@ -1 +1 @@ -module.exports={C:{"42":0.00848,"52":0.00424,"59":0.00212,"66":0.00212,"88":0.00212,"113":0.00212,"115":0.11878,"125":0.00212,"127":0.00212,"128":0.01485,"129":0.00212,"130":0.00212,"133":0.00212,"134":0.00212,"135":0.00212,"136":0.01273,"137":0.00636,"138":0.01909,"139":0.40511,"140":0.06999,"141":0.00212,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 131 132 142 143 3.5 3.6"},D:{"39":0.00212,"40":0.00212,"41":0.00212,"42":0.00212,"43":0.00212,"44":0.00212,"45":0.00212,"46":0.00212,"47":0.00212,"48":0.00212,"49":0.00424,"50":0.00212,"51":0.00212,"52":0.00424,"53":0.00212,"54":0.00212,"55":0.00212,"56":0.00212,"57":0.00212,"58":0.00212,"59":0.00212,"60":0.00212,"66":0.01061,"68":0.00212,"69":0.00212,"70":0.00212,"71":0.00212,"72":0.00212,"73":0.00212,"74":0.00212,"75":0.00212,"76":0.00212,"78":0.00212,"79":0.00636,"80":0.00212,"81":0.00424,"83":0.00212,"84":0.00212,"85":0.00212,"86":0.00424,"87":0.01061,"88":0.00424,"89":0.00212,"90":0.00212,"91":0.00636,"93":0.00212,"94":0.00212,"95":0.00212,"97":0.00212,"99":0.00212,"101":0.00848,"102":0.00212,"103":0.01273,"104":0.00424,"105":0.00212,"106":0.00636,"107":0.00636,"108":0.01061,"109":0.99475,"110":0.00424,"111":0.00848,"112":0.00636,"113":0.00212,"114":0.01061,"115":0.00424,"116":0.01273,"117":0.00636,"118":0.00424,"119":0.03182,"120":0.01061,"121":0.00636,"122":0.01697,"123":0.00848,"124":0.01061,"125":0.25028,"126":0.03818,"127":0.02757,"128":0.03182,"129":0.01909,"130":0.02545,"131":0.09757,"132":0.05303,"133":0.06575,"134":0.06151,"135":0.13999,"136":1.33623,"137":9.26241,"138":0.39026,"139":0.00636,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 77 92 96 98 100 140 141"},F:{"79":0.00212,"85":0.00212,"87":0.00212,"88":0.00212,"89":0.0806,"90":0.04878,"95":0.01061,"117":0.00212,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00212,"18":0.00212,"92":0.00636,"108":0.00212,"109":0.00636,"114":0.01485,"122":0.00212,"124":0.00212,"126":0.00212,"128":0.00212,"129":0.00212,"130":0.00212,"131":0.00424,"132":0.00212,"133":0.00424,"134":0.00636,"135":0.01061,"136":0.13999,"137":0.85688,"138":0.06999,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 120 121 123 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 17.0","11.1":0.00212,"13.1":0.00212,"14.1":0.00212,"15.6":0.00848,"16.0":0.00212,"16.1":0.00212,"16.3":0.00212,"16.4":0.00212,"16.5":0.00212,"16.6":0.01061,"17.1":0.00636,"17.2":0.00212,"17.3":0.00212,"17.4":0.00212,"17.5":0.00636,"17.6":0.01697,"18.0":0.00424,"18.1":0.00636,"18.2":0.00424,"18.3":0.02121,"18.4":0.01697,"18.5":0.12938,"26.0":0.00212},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00048,"5.0-5.1":0,"6.0-6.1":0.00096,"7.0-7.1":0.00096,"8.1-8.4":0,"9.0-9.2":0.00048,"9.3":0.00288,"10.0-10.2":0.00024,"10.3":0.00481,"11.0-11.2":0.03076,"11.3-11.4":0.00168,"12.0-12.1":0.00048,"12.2-12.5":0.0161,"13.0-13.1":0.00024,"13.2":0.00072,"13.3":0.00048,"13.4-13.7":0.00264,"14.0-14.4":0.00625,"14.5-14.8":0.00625,"15.0-15.1":0.00433,"15.2-15.3":0.00433,"15.4":0.00529,"15.5":0.00577,"15.6-15.8":0.0745,"16.0":0.00985,"16.1":0.02019,"16.2":0.01033,"16.3":0.01898,"16.4":0.00433,"16.5":0.00769,"16.6-16.7":0.09348,"17.0":0.00505,"17.1":0.00889,"17.2":0.00697,"17.3":0.00985,"17.4":0.01754,"17.5":0.03677,"17.6-17.7":0.09612,"18.0":0.02379,"18.1":0.05359,"18.2":0.02836,"18.3":0.12184,"18.4":0.12929,"18.5":1.51563,"26.0":0},P:{"4":0.02057,"21":0.01029,"22":0.01029,"23":0.02057,"24":0.02057,"25":0.02057,"26":0.03086,"27":0.09258,"28":0.48346,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02057,"17.0":0.01029},I:{"0":0.01573,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":2.79008,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00212,"11":0.01909,_:"6 7 8 9 5.5"},S:{"2.5":0.06303,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.2047},R:{_:"0"},M:{"0":0.1497},Q:{_:"14.9"},O:{"0":1.37883},H:{"0":0.07}}; +module.exports={C:{"42":0.00598,"47":0.00199,"52":0.00797,"59":0.00199,"62":0.00199,"66":0.00199,"72":0.00199,"88":0.00598,"101":0.00199,"102":0.00199,"103":0.00199,"107":0.00199,"108":0.00199,"110":0.00199,"111":0.00199,"112":0.00199,"113":0.02191,"114":0.00199,"115":0.2231,"116":0.00199,"118":0.00199,"121":0.00199,"122":0.00398,"123":0.00598,"124":0.01594,"125":0.2988,"126":0.25298,"127":0.00797,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 48 49 50 51 53 54 55 56 57 58 60 61 63 64 65 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 104 105 106 109 117 119 120 128 129 3.5 3.6"},D:{"30":0.00199,"49":0.00398,"55":0.00199,"56":0.00199,"63":0.00199,"64":0.00199,"66":0.01594,"68":0.00199,"69":0.00199,"70":0.00398,"71":0.00398,"72":0.00199,"73":0.00199,"74":0.00598,"77":0.00199,"78":0.00199,"79":0.00797,"80":0.00398,"81":0.00398,"83":0.00398,"84":0.00199,"85":0.00199,"86":0.00598,"87":0.01394,"88":0.00199,"89":0.00199,"90":0.00398,"91":0.00398,"92":0.00199,"93":0.00398,"94":0.00598,"95":0.00398,"96":0.00398,"97":0.00598,"98":0.00797,"99":0.00398,"100":0.00398,"101":0.01992,"102":0.00797,"103":0.02191,"104":0.00996,"105":0.00996,"106":0.01394,"107":0.00996,"108":0.03984,"109":1.97806,"110":0.00797,"111":0.02988,"112":0.01594,"113":0.01793,"114":0.03386,"115":0.04582,"116":0.03984,"117":0.04582,"118":0.02988,"119":0.05378,"120":0.09163,"121":0.08964,"122":0.17729,"123":0.50597,"124":8.68114,"125":3.32465,"126":0.01195,"127":0.00199,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 57 58 59 60 61 62 65 67 75 76 128"},F:{"28":0.00199,"46":0.00199,"79":0.00199,"82":0.00199,"83":0.00199,"95":0.01793,"107":0.01195,"108":0.00398,"109":0.13944,"110":0.01594,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00398,"15":0.00199,"16":0.00199,"17":0.00199,"18":0.00398,"92":0.00797,"100":0.00199,"107":0.00199,"108":0.00199,"109":0.01394,"114":0.00199,"115":0.00199,"116":0.00199,"117":0.00199,"118":0.00199,"119":0.00199,"120":0.00598,"121":0.00598,"122":0.01394,"123":0.0259,"124":0.65537,"125":0.35458,_:"13 14 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 110 111 112 113"},E:{"14":0.00199,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 17.6","11.1":0.00199,"13.1":0.00398,"14.1":0.00598,"15.4":0.00199,"15.5":0.00199,"15.6":0.01394,"16.0":0.00398,"16.1":0.00398,"16.2":0.00199,"16.3":0.00598,"16.4":0.00199,"16.5":0.00797,"16.6":0.01793,"17.0":0.00398,"17.1":0.00797,"17.2":0.00996,"17.3":0.00996,"17.4":0.10956,"17.5":0.0259},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00042,"5.0-5.1":0.00042,"6.0-6.1":0.00105,"7.0-7.1":0.00147,"8.1-8.4":0.00042,"9.0-9.2":0.00105,"9.3":0.00483,"10.0-10.2":0.00084,"10.3":0.00755,"11.0-11.2":0.01112,"11.3-11.4":0.0021,"12.0-12.1":0.00126,"12.2-12.5":0.03042,"13.0-13.1":0.00063,"13.2":0.00294,"13.3":0.00147,"13.4-13.7":0.00671,"14.0-14.4":0.01154,"14.5-14.8":0.01783,"15.0-15.1":0.0086,"15.2-15.3":0.00944,"15.4":0.0107,"15.5":0.01343,"15.6-15.8":0.12085,"16.0":0.02749,"16.1":0.05665,"16.2":0.02749,"16.3":0.04763,"16.4":0.01007,"16.5":0.02035,"16.6-16.7":0.16218,"17.0":0.01762,"17.1":0.02874,"17.2":0.03,"17.3":0.05539,"17.4":1.25781,"17.5":0.08875,"17.6":0},P:{"4":0.05293,"20":0.01059,"21":0.03176,"22":0.04234,"23":0.09527,"24":0.13761,"25":0.434,_:"5.0-5.4 8.2 10.1 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.01059,"7.2-7.4":0.05293,"9.2":0.01059,"11.1-11.2":0.01059,"13.0":0.01059,"17.0":0.01059,"19.0":0.01059},I:{"0":0.04786,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":3.42149,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00199,"9":0.01594,"10":0.00199,"11":0.02191,_:"6 7 5.5"},S:{"2.5":0.66466,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":72.91962},R:{_:"0"},M:{"0":0.16016},Q:{_:"14.9"},O:{"0":1.5055},H:{"0":0.07}}; diff --git a/node_modules/caniuse-lite/data/regions/IQ.js b/node_modules/caniuse-lite/data/regions/IQ.js index 6e8677716..7f119a394 100644 --- a/node_modules/caniuse-lite/data/regions/IQ.js +++ b/node_modules/caniuse-lite/data/regions/IQ.js @@ -1 +1 @@ -module.exports={C:{"72":0.00765,"115":0.0631,"121":0.00191,"128":0.00765,"136":0.00191,"137":0.00191,"138":0.00574,"139":0.10516,"140":0.0153,"141":0.00191,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 127 129 130 131 132 133 134 135 142 143 3.5 3.6"},D:{"11":0.0153,"34":0.00191,"38":0.00765,"43":0.00574,"47":0.00191,"53":0.00191,"56":0.00765,"58":0.01912,"60":0.00191,"63":0.00765,"65":0.00574,"66":0.00765,"68":0.00382,"69":0.00574,"70":0.01338,"71":0.00191,"72":0.00382,"73":0.00956,"74":0.00191,"75":0.00574,"77":0.00191,"78":0.00191,"79":0.04015,"80":0.00382,"81":0.00382,"83":0.02868,"84":0.00191,"85":0.00382,"86":0.00382,"87":0.0478,"88":0.00574,"89":0.00574,"90":0.00382,"91":0.02294,"92":0.00191,"93":0.00191,"94":0.00956,"95":0.0153,"96":0.00382,"97":0.00191,"98":0.03059,"99":0.00191,"100":0.00191,"101":0.00191,"102":0.00382,"103":0.0325,"104":0.00574,"105":0.00382,"106":0.01147,"107":0.00191,"108":0.01912,"109":0.55448,"110":0.01338,"111":0.01147,"113":0.00382,"114":0.01912,"115":0.00191,"116":0.00765,"118":0.00765,"119":0.02294,"120":0.01147,"121":0.00382,"122":0.00574,"123":0.00765,"124":0.00765,"125":3.08406,"126":0.02677,"127":0.0153,"128":0.0153,"129":0.00382,"130":0.00765,"131":0.0325,"132":0.0325,"133":0.01912,"134":0.02294,"135":0.05736,"136":0.55639,"137":3.59838,"138":0.16252,"139":0.00191,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 44 45 46 48 49 50 51 52 54 55 57 59 61 62 64 67 76 112 117 140 141"},F:{"46":0.00382,"64":0.00191,"73":0.00191,"79":0.00382,"84":0.00191,"89":0.03059,"90":0.02103,"95":0.01338,"117":0.00191,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00191,"92":0.00574,"109":0.00574,"114":0.00382,"122":0.00191,"124":0.00191,"125":0.00191,"131":0.00191,"133":0.00191,"134":0.06883,"135":0.00574,"136":0.06883,"137":0.40343,"138":0.04589,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 126 127 128 129 130 132"},E:{"14":0.00382,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 15.2-15.3 26.0","5.1":0.0153,"9.1":0.00191,"12.1":0.00191,"13.1":0.00191,"14.1":0.00574,"15.1":0.00191,"15.4":0.00191,"15.5":0.00382,"15.6":0.02486,"16.0":0.00191,"16.1":0.01147,"16.2":0.00765,"16.3":0.01147,"16.4":0.00191,"16.5":0.00382,"16.6":0.04398,"17.0":0.00191,"17.1":0.03059,"17.2":0.00191,"17.3":0.00191,"17.4":0.00765,"17.5":0.02294,"17.6":0.04398,"18.0":0.00956,"18.1":0.01721,"18.2":0.01338,"18.3":0.06118,"18.4":0.05162,"18.5":0.38431},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00221,"5.0-5.1":0,"6.0-6.1":0.00441,"7.0-7.1":0.00441,"8.1-8.4":0,"9.0-9.2":0.00221,"9.3":0.01324,"10.0-10.2":0.0011,"10.3":0.02207,"11.0-11.2":0.14123,"11.3-11.4":0.00772,"12.0-12.1":0.00221,"12.2-12.5":0.07392,"13.0-13.1":0.0011,"13.2":0.00331,"13.3":0.00221,"13.4-13.7":0.01214,"14.0-14.4":0.02869,"14.5-14.8":0.02869,"15.0-15.1":0.01986,"15.2-15.3":0.01986,"15.4":0.02427,"15.5":0.02648,"15.6-15.8":0.34204,"16.0":0.04524,"16.1":0.09268,"16.2":0.04744,"16.3":0.08716,"16.4":0.01986,"16.5":0.03531,"16.6-16.7":0.4292,"17.0":0.02317,"17.1":0.04082,"17.2":0.032,"17.3":0.04524,"17.4":0.08054,"17.5":0.16881,"17.6-17.7":0.44134,"18.0":0.10923,"18.1":0.24604,"18.2":0.13019,"18.3":0.55939,"18.4":0.5936,"18.5":6.95876,"26.0":0},P:{"4":0.05117,"20":0.02047,"21":0.04093,"22":0.04093,"23":0.07163,"24":0.04093,"25":0.0921,"26":0.2149,"27":0.17397,"28":1.96481,_:"5.0-5.4 8.2 9.2 10.1 12.0","6.2-6.4":0.01023,"7.2-7.4":0.11257,"11.1-11.2":0.0307,"13.0":0.02047,"14.0":0.04093,"15.0":0.01023,"16.0":0.02047,"17.0":0.0614,"18.0":0.01023,"19.0":0.02047},I:{"0":0.02423,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.78463,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00255,"8":0.00255,"11":0.01785,_:"7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.67661},R:{_:"0"},M:{"0":0.11325},Q:{_:"14.9"},O:{"0":0.25885},H:{"0":0}}; +module.exports={C:{"34":0.00107,"52":0.00107,"66":0.00107,"68":0.00534,"69":0.00748,"88":0.00107,"97":0.00107,"99":0.00107,"115":0.06942,"120":0.00107,"121":0.00107,"122":0.00534,"123":0.01495,"124":0.0032,"125":0.0769,"126":0.05874,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 127 128 129 3.5 3.6"},D:{"11":0.01175,"33":0.00107,"34":0.00214,"38":0.01495,"40":0.00107,"41":0.00107,"43":0.02136,"47":0.00214,"49":0.00107,"50":0.00107,"51":0.00107,"53":0.00107,"55":0.00107,"56":0.00534,"57":0.00107,"58":0.00961,"60":0.00107,"63":0.0032,"64":0.00214,"65":0.00427,"66":0.00427,"67":0.00107,"68":0.00534,"69":0.00534,"70":0.01282,"71":0.00214,"72":0.0032,"73":0.01922,"74":0.00107,"75":0.00854,"76":0.00107,"77":0.00107,"78":0.00214,"79":0.05981,"80":0.00107,"81":0.00427,"83":0.04806,"84":0.00214,"85":0.00107,"86":0.00534,"87":0.04272,"88":0.00961,"89":0.00534,"90":0.0032,"91":0.00214,"92":0.00107,"93":0.00427,"94":0.00961,"95":0.0267,"96":0.0032,"97":0.0032,"98":0.04272,"99":0.0235,"100":0.00427,"101":0.00214,"102":0.01922,"103":0.03952,"104":0.0032,"105":0.01282,"106":0.00427,"107":0.00427,"108":0.00427,"109":0.83731,"110":0.03097,"111":0.00534,"112":0.03204,"113":0.0032,"114":0.01602,"115":0.00214,"116":0.01175,"117":0.00748,"118":0.00534,"119":0.06088,"120":0.03631,"121":0.02136,"122":0.03631,"123":0.09612,"124":2.43824,"125":1.05091,"126":0.0032,"127":0.00107,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 35 36 37 39 42 44 45 46 48 52 54 59 61 62 128"},F:{"28":0.00214,"46":0.00214,"79":0.0032,"80":0.00107,"82":0.00107,"84":0.00214,"85":0.00107,"95":0.02243,"107":0.0267,"108":0.00214,"109":0.16874,"110":0.01602,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00107,"16":0.00107,"18":0.00534,"84":0.00107,"92":0.00854,"98":0.00107,"100":0.00107,"109":0.01282,"114":0.00107,"116":0.00107,"119":0.00214,"120":0.00214,"121":0.00534,"122":0.00641,"123":0.03524,"124":0.34924,"125":0.18904,_:"13 14 15 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 99 101 102 103 104 105 106 107 108 110 111 112 113 115 117 118"},E:{"13":0.00107,"14":0.00748,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00214,"12.1":0.00107,"13.1":0.00534,"14.1":0.01709,"15.1":0.00107,"15.2-15.3":0.00107,"15.4":0.00534,"15.5":0.01175,"15.6":0.05874,"16.0":0.00214,"16.1":0.01709,"16.2":0.01495,"16.3":0.04058,"16.4":0.00427,"16.5":0.01175,"16.6":0.09078,"17.0":0.02029,"17.1":0.01602,"17.2":0.01495,"17.3":0.03204,"17.4":0.45924,"17.5":0.04165},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00223,"5.0-5.1":0.00223,"6.0-6.1":0.00558,"7.0-7.1":0.00782,"8.1-8.4":0.00223,"9.0-9.2":0.00558,"9.3":0.02568,"10.0-10.2":0.00447,"10.3":0.04019,"11.0-11.2":0.05917,"11.3-11.4":0.01117,"12.0-12.1":0.0067,"12.2-12.5":0.16189,"13.0-13.1":0.00335,"13.2":0.01563,"13.3":0.00782,"13.4-13.7":0.03573,"14.0-14.4":0.06141,"14.5-14.8":0.0949,"15.0-15.1":0.04578,"15.2-15.3":0.05024,"15.4":0.05694,"15.5":0.07146,"15.6-15.8":0.6431,"16.0":0.14626,"16.1":0.30146,"16.2":0.14626,"16.3":0.25345,"16.4":0.05359,"16.5":0.1083,"16.6-16.7":0.86305,"17.0":0.09379,"17.1":0.15296,"17.2":0.15966,"17.3":0.29476,"17.4":6.69342,"17.5":0.47228,"17.6":0},P:{"4":0.1444,"20":0.06189,"21":0.1444,"22":0.18566,"23":0.35069,"24":0.41258,"25":2.9087,"5.0-5.4":0.01031,"6.2-6.4":0.03094,"7.2-7.4":0.20629,_:"8.2 10.1","9.2":0.03094,"11.1-11.2":0.10315,"12.0":0.02063,"13.0":0.06189,"14.0":0.06189,"15.0":0.03094,"16.0":0.0722,"17.0":0.09283,"18.0":0.03094,"19.0":0.08252},I:{"0":0.07118,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.55378,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00124,"11":0.02226,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":75.3232},R:{_:"0"},M:{"0":0.08932},Q:{_:"14.9"},O:{"0":0.26796},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/IR.js b/node_modules/caniuse-lite/data/regions/IR.js index cb131168a..92d55342e 100644 --- a/node_modules/caniuse-lite/data/regions/IR.js +++ b/node_modules/caniuse-lite/data/regions/IR.js @@ -1 +1 @@ -module.exports={C:{"47":0.00238,"50":0.00238,"52":0.01425,"56":0.00238,"60":0.00238,"72":0.00475,"88":0.00238,"91":0.00475,"92":0.00238,"94":0.00238,"95":0.00238,"99":0.00238,"100":0.00238,"102":0.00238,"105":0.00238,"106":0.00238,"107":0.00238,"108":0.00238,"109":0.00475,"110":0.00238,"111":0.00238,"112":0.00238,"113":0.00238,"114":0.00238,"115":1.03075,"116":0.00238,"117":0.00238,"119":0.00238,"120":0.00238,"121":0.00238,"122":0.00238,"123":0.00238,"124":0.00238,"125":0.00238,"126":0.00238,"127":0.03088,"128":0.09025,"129":0.00238,"130":0.00238,"131":0.00713,"132":0.00475,"133":0.0095,"134":0.00713,"135":0.01663,"136":0.019,"137":0.03325,"138":0.13063,"139":1.7195,"140":0.22325,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 53 54 55 57 58 59 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 93 96 97 98 101 103 104 118 141 142 143 3.5 3.6"},D:{"38":0.00238,"49":0.00238,"51":0.00238,"58":0.00475,"63":0.00238,"66":0.00238,"67":0.00238,"68":0.00238,"69":0.00238,"70":0.00238,"71":0.01425,"72":0.00238,"74":0.00238,"75":0.00238,"76":0.00238,"77":0.00238,"78":0.00713,"79":0.0095,"80":0.00713,"81":0.00713,"83":0.00713,"84":0.00475,"85":0.00475,"86":0.01188,"87":0.01425,"88":0.00475,"89":0.00713,"90":0.00475,"91":0.00475,"92":0.00713,"93":0.00238,"94":0.00475,"95":0.00475,"96":0.00713,"97":0.00475,"98":0.0095,"99":0.00475,"100":0.00475,"101":0.00475,"102":0.00475,"103":0.01188,"104":0.0095,"105":0.0095,"106":0.0095,"107":0.01663,"108":0.02375,"109":2.70275,"110":0.00713,"111":0.01188,"112":0.00713,"113":0.00238,"114":0.0095,"115":0.00475,"116":0.0095,"117":0.00713,"118":0.03088,"119":0.01425,"120":0.02138,"121":0.019,"122":0.03563,"123":0.03563,"124":0.01663,"125":0.03088,"126":0.03088,"127":0.02138,"128":0.02138,"129":0.02375,"130":0.03563,"131":0.10688,"132":0.04513,"133":0.06175,"134":0.07838,"135":0.16388,"136":2.07338,"137":8.4835,"138":0.3135,"139":0.00238,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 52 53 54 55 56 57 59 60 61 62 64 65 73 140 141"},F:{"79":0.01188,"85":0.00238,"89":0.00713,"90":0.00238,"95":0.03563,"117":0.00238,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00238,"13":0.00238,"14":0.00238,"15":0.00238,"16":0.00238,"17":0.00238,"18":0.0095,"84":0.00238,"88":0.00238,"89":0.00475,"90":0.00238,"92":0.05225,"100":0.00475,"109":0.08788,"114":0.00238,"119":0.00238,"120":0.00238,"122":0.01188,"124":0.00238,"126":0.00238,"127":0.00238,"128":0.00238,"129":0.00238,"130":0.00238,"131":0.00713,"132":0.00475,"133":0.0095,"134":0.01188,"135":0.01663,"136":0.133,"137":0.47025,"138":0.04275,_:"79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 121 123 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.2 17.3 26.0","13.1":0.00238,"14.1":0.00475,"15.6":0.0095,"16.3":0.00238,"16.6":0.00713,"17.1":0.00238,"17.4":0.00238,"17.5":0.00475,"17.6":0.00475,"18.0":0.00238,"18.1":0.00475,"18.2":0.00238,"18.3":0.0095,"18.4":0.0095,"18.5":0.038},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00164,"5.0-5.1":0,"6.0-6.1":0.00328,"7.0-7.1":0.00328,"8.1-8.4":0,"9.0-9.2":0.00164,"9.3":0.00985,"10.0-10.2":0.00082,"10.3":0.01642,"11.0-11.2":0.10512,"11.3-11.4":0.00575,"12.0-12.1":0.00164,"12.2-12.5":0.05502,"13.0-13.1":0.00082,"13.2":0.00246,"13.3":0.00164,"13.4-13.7":0.00903,"14.0-14.4":0.02135,"14.5-14.8":0.02135,"15.0-15.1":0.01478,"15.2-15.3":0.01478,"15.4":0.01807,"15.5":0.01971,"15.6-15.8":0.25458,"16.0":0.03367,"16.1":0.06898,"16.2":0.03531,"16.3":0.06488,"16.4":0.01478,"16.5":0.02628,"16.6-16.7":0.31945,"17.0":0.01725,"17.1":0.03038,"17.2":0.02382,"17.3":0.03367,"17.4":0.05995,"17.5":0.12565,"17.6-17.7":0.32849,"18.0":0.0813,"18.1":0.18313,"18.2":0.0969,"18.3":0.41635,"18.4":0.44181,"18.5":5.17939,"26.0":0},P:{"4":0.04026,"20":0.0604,"21":0.09059,"22":0.18119,"23":0.23152,"24":0.27178,"25":0.32211,"26":0.35231,"27":0.91601,"28":2.81848,"5.0-5.4":0.01007,"6.2-6.4":0.02013,"7.2-7.4":0.14092,"8.2":0.01007,"9.2":0.0302,"10.1":0.01007,"11.1-11.2":0.08053,"12.0":0.02013,"13.0":0.09059,"14.0":0.09059,"15.0":0.02013,"16.0":0.0604,"17.0":0.10066,"18.0":0.0604,"19.0":0.07046},I:{"0":0.00761,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.377,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00476,"9":0.00238,"10":0.00238,"11":2.00449,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.20613},R:{_:"0"},M:{"0":1.33438},Q:{_:"14.9"},O:{"0":0.04575},H:{"0":0.05}}; +module.exports={C:{"33":0.00282,"37":0.00282,"38":0.00282,"39":0.00282,"40":0.00282,"41":0.00282,"43":0.00282,"47":0.00282,"48":0.00282,"50":0.00563,"52":0.02817,"56":0.00282,"60":0.00282,"68":0.00282,"70":0.00282,"72":0.00845,"77":0.00282,"78":0.00282,"84":0.00282,"88":0.00282,"89":0.00282,"90":0.00282,"91":0.00282,"92":0.00282,"94":0.00563,"95":0.00282,"96":0.00282,"97":0.00282,"98":0.00282,"99":0.00563,"100":0.00282,"101":0.00282,"102":0.00563,"103":0.00282,"104":0.00282,"105":0.00282,"106":0.00563,"107":0.00282,"108":0.00563,"109":0.00563,"110":0.00563,"111":0.00563,"112":0.00563,"113":0.00845,"114":0.00563,"115":1.52681,"116":0.00563,"117":0.00563,"118":0.00845,"119":0.00845,"120":0.00845,"121":0.0169,"122":0.02254,"123":0.03944,"124":0.08451,"125":1.34371,"126":1.16624,"127":0.00563,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 42 44 45 46 49 51 53 54 55 57 58 59 61 62 63 64 65 66 67 69 71 73 74 75 76 79 80 81 82 83 85 86 87 93 128 129 3.5 3.6"},D:{"31":0.00282,"34":0.00282,"38":0.00563,"41":0.00282,"44":0.00282,"49":0.00563,"51":0.00282,"55":0.00282,"56":0.00282,"58":0.00282,"61":0.00282,"62":0.00282,"63":0.00563,"64":0.00282,"65":0.00282,"66":0.00282,"67":0.00282,"68":0.00282,"69":0.00563,"70":0.00845,"71":0.0169,"72":0.00563,"73":0.00282,"74":0.00282,"75":0.00282,"76":0.00282,"77":0.00282,"78":0.01409,"79":0.0169,"80":0.01409,"81":0.01127,"83":0.01409,"84":0.01127,"85":0.01127,"86":0.02817,"87":0.02254,"88":0.00845,"89":0.01127,"90":0.00845,"91":0.01409,"92":0.01409,"93":0.00563,"94":0.00845,"95":0.00845,"96":0.0169,"97":0.00845,"98":0.01127,"99":0.01409,"100":0.01409,"101":0.00845,"102":0.03099,"103":0.0338,"104":0.02817,"105":0.01972,"106":0.03099,"107":0.03662,"108":0.07606,"109":4.21987,"110":0.01409,"111":0.03099,"112":0.03662,"113":0.01409,"114":0.02817,"115":0.0169,"116":0.05634,"117":0.03944,"118":0.02535,"119":0.07043,"120":0.1493,"121":0.12113,"122":0.20846,"123":0.5465,"124":8.56368,"125":3.64802,"126":0.00282,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 39 40 42 43 45 46 47 48 50 52 53 54 57 59 60 127 128"},F:{"46":0.00282,"64":0.00282,"79":0.0169,"82":0.00282,"83":0.00282,"85":0.00282,"95":0.05634,"101":0.00282,"105":0.00282,"106":0.00282,"107":0.03099,"108":0.02535,"109":0.25635,"110":0.02254,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 102 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00563,"13":0.00845,"14":0.00563,"15":0.00282,"16":0.00563,"17":0.00563,"18":0.02817,"81":0.00282,"84":0.00282,"89":0.00563,"90":0.00563,"92":0.08451,"100":0.0169,"105":0.00282,"107":0.00282,"108":0.00282,"109":0.14085,"110":0.00282,"112":0.00282,"113":0.00282,"114":0.00563,"115":0.00282,"116":0.00282,"117":0.00282,"118":0.00282,"119":0.00563,"120":0.0169,"121":0.0169,"122":0.02535,"123":0.03944,"124":0.6789,"125":0.34931,_:"79 80 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 106 111"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.2 17.6","5.1":0.00282,"13.1":0.00282,"14.1":0.00563,"15.4":0.00282,"15.6":0.0169,"16.1":0.00282,"16.3":0.00282,"16.4":0.00282,"16.5":0.00282,"16.6":0.01127,"17.0":0.00282,"17.1":0.00282,"17.2":0.00563,"17.3":0.00563,"17.4":0.04507,"17.5":0.01409},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00103,"5.0-5.1":0.00103,"6.0-6.1":0.00257,"7.0-7.1":0.0036,"8.1-8.4":0.00103,"9.0-9.2":0.00257,"9.3":0.01183,"10.0-10.2":0.00206,"10.3":0.01851,"11.0-11.2":0.02726,"11.3-11.4":0.00514,"12.0-12.1":0.00309,"12.2-12.5":0.07457,"13.0-13.1":0.00154,"13.2":0.0072,"13.3":0.0036,"13.4-13.7":0.01646,"14.0-14.4":0.02829,"14.5-14.8":0.04372,"15.0-15.1":0.02109,"15.2-15.3":0.02314,"15.4":0.02623,"15.5":0.03292,"15.6-15.8":0.29624,"16.0":0.06737,"16.1":0.13886,"16.2":0.06737,"16.3":0.11675,"16.4":0.02469,"16.5":0.04989,"16.6-16.7":0.39756,"17.0":0.0432,"17.1":0.07046,"17.2":0.07355,"17.3":0.13578,"17.4":3.08325,"17.5":0.21755,"17.6":0},P:{"4":0.16212,"20":0.14185,"21":0.23304,"22":0.46609,"23":0.689,"24":1.22601,"25":1.79342,"5.0-5.4":0.01013,"6.2-6.4":0.02026,"7.2-7.4":0.19251,"8.2":0.02026,"9.2":0.0304,"10.1":0.02026,"11.1-11.2":0.11146,"12.0":0.04053,"13.0":0.11146,"14.0":0.13172,"15.0":0.05066,"16.0":0.14185,"17.0":0.21278,"18.0":0.13172,"19.0":0.18238},I:{"0":0.00715,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.44436,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00565,"11":2.57473,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.50146},R:{_:"0"},M:{"0":0.94097},Q:{_:"14.9"},O:{"0":0.06465},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/IS.js b/node_modules/caniuse-lite/data/regions/IS.js index 83788ff78..61562ace5 100644 --- a/node_modules/caniuse-lite/data/regions/IS.js +++ b/node_modules/caniuse-lite/data/regions/IS.js @@ -1 +1 @@ -module.exports={C:{"48":0.0673,"60":0.00561,"78":0.02804,"103":0.00561,"111":0.11777,"113":0.01682,"115":0.19628,"128":0.26918,"131":0.00561,"132":0.01122,"133":0.02243,"134":0.04486,"135":0.00561,"136":0.02243,"137":0.05608,"138":0.4206,"139":2.37218,"140":0.33648,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 112 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 141 142 143 3.5 3.6"},D:{"52":0.03926,"58":0.00561,"70":0.00561,"79":0.04486,"87":0.01122,"93":0.00561,"96":0.01682,"98":0.03926,"99":0.02243,"103":0.04486,"104":0.05608,"106":0.00561,"107":0.02804,"108":0.08412,"109":0.31405,"110":0.03926,"111":0.01122,"112":0.03365,"113":0.00561,"114":0.30283,"115":0.00561,"116":0.2804,"118":0.14581,"119":0.01682,"120":0.01682,"121":0.01682,"122":0.03365,"123":0.01122,"124":0.08412,"125":0.10094,"126":0.02804,"127":0.27479,"128":0.1402,"129":0.01682,"130":0.02804,"131":0.10094,"132":0.06169,"133":0.09534,"134":0.31966,"135":0.46546,"136":4.58174,"137":22.62267,"138":1.05991,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 97 100 101 102 105 117 139 140 141"},F:{"89":0.01122,"90":0.00561,"95":0.11777,"117":0.00561,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"98":0.01122,"99":0.00561,"109":0.00561,"110":0.01122,"125":0.00561,"127":0.02804,"128":0.33087,"129":0.05608,"130":0.04486,"131":0.0673,"132":0.12898,"134":0.11216,"135":0.02804,"136":0.86363,"137":5.9613,"138":0.38134,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 133"},E:{"8":0.00561,"14":0.02243,"15":0.00561,_:"0 4 5 6 7 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1","12.1":0.02804,"13.1":0.01122,"14.1":0.05047,"15.2-15.3":0.01682,"15.4":0.00561,"15.5":0.02804,"15.6":0.5608,"16.0":0.16263,"16.1":0.04486,"16.2":0.06169,"16.3":0.11216,"16.4":0.01122,"16.5":0.02243,"16.6":0.31966,"17.0":0.00561,"17.1":0.31405,"17.2":0.01682,"17.3":0.19628,"17.4":0.08412,"17.5":0.17385,"17.6":0.26358,"18.0":0.05608,"18.1":0.12338,"18.2":0.09534,"18.3":0.30283,"18.4":0.25236,"18.5":3.06197,"26.0":0.00561},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00388,"5.0-5.1":0,"6.0-6.1":0.00776,"7.0-7.1":0.00776,"8.1-8.4":0,"9.0-9.2":0.00388,"9.3":0.02327,"10.0-10.2":0.00194,"10.3":0.03879,"11.0-11.2":0.24826,"11.3-11.4":0.01358,"12.0-12.1":0.00388,"12.2-12.5":0.12995,"13.0-13.1":0.00194,"13.2":0.00582,"13.3":0.00388,"13.4-13.7":0.02133,"14.0-14.4":0.05043,"14.5-14.8":0.05043,"15.0-15.1":0.03491,"15.2-15.3":0.03491,"15.4":0.04267,"15.5":0.04655,"15.6-15.8":0.60125,"16.0":0.07952,"16.1":0.16292,"16.2":0.0834,"16.3":0.15322,"16.4":0.03491,"16.5":0.06206,"16.6-16.7":0.75447,"17.0":0.04073,"17.1":0.07176,"17.2":0.05625,"17.3":0.07952,"17.4":0.14158,"17.5":0.29674,"17.6-17.7":0.7758,"18.0":0.19201,"18.1":0.43251,"18.2":0.22886,"18.3":0.98333,"18.4":1.04345,"18.5":12.23247,"26.0":0},P:{"4":0.05179,"21":0.03107,"22":0.01036,"23":0.01036,"24":0.04143,"25":0.04143,"26":0.37289,"27":0.11394,"28":2.86917,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 17.0 19.0","13.0":0.01036,"16.0":0.02072,"18.0":0.01036},I:{"0":0.00877,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.25913,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02243,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.56998},R:{_:"0"},M:{"0":0.56218},Q:{"14.9":0.00439},O:{"0":0.02635},H:{"0":0}}; +module.exports={C:{"48":0.0582,"52":0.00529,"77":0.00529,"78":0.01587,"91":0.00529,"97":0.00529,"102":0.03175,"103":0.02646,"104":0.00529,"113":0.01587,"115":0.61905,"117":0.00529,"118":0.00529,"119":0.00529,"121":0.00529,"122":0.00529,"123":0.01058,"124":0.0582,"125":1.85714,"126":1.81481,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 98 99 100 101 105 106 107 108 109 110 111 112 114 116 120 127 128 129 3.5 3.6"},D:{"38":0.01058,"47":0.00529,"65":0.01058,"69":0.05291,"79":0.02116,"87":0.01058,"88":0.00529,"93":0.01058,"95":0.01058,"102":0.00529,"103":0.09524,"104":0.02646,"107":0.01058,"108":0.00529,"109":0.42328,"110":0.00529,"111":0.01058,"112":0.01058,"113":1.72487,"114":1.73545,"115":0.02116,"116":0.40212,"117":0.15344,"118":0.21693,"119":0.06878,"120":0.14815,"121":0.21164,"122":0.37566,"123":2.05291,"124":18.73014,"125":6.15872,"126":0.00529,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 94 96 97 98 99 100 101 105 106 127 128"},F:{"46":0.00529,"89":0.00529,"95":0.05291,"102":0.00529,"106":0.02116,"107":0.69841,"108":0.02116,"109":2.32275,"110":0.06878,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00529,"105":0.03704,"109":0.00529,"113":0.01058,"114":0.00529,"119":0.01587,"120":0.06349,"121":0.02646,"122":0.13757,"123":0.1746,"124":2.93651,"125":1.67725,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 115 116 117 118"},E:{"9":0.00529,"14":0.04762,"15":0.00529,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00529,"13.1":0.04233,"14.1":0.20106,"15.1":0.01058,"15.2-15.3":0.01587,"15.4":0.04762,"15.5":0.08466,"15.6":0.52381,"16.0":0.08995,"16.1":0.05291,"16.2":0.07407,"16.3":0.1746,"16.4":0.03704,"16.5":0.22751,"16.6":0.53439,"17.0":0.2328,"17.1":0.18519,"17.2":0.24868,"17.3":0.27513,"17.4":3.13227,"17.5":0.30688},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00401,"5.0-5.1":0.00401,"6.0-6.1":0.01001,"7.0-7.1":0.01402,"8.1-8.4":0.00401,"9.0-9.2":0.01001,"9.3":0.04606,"10.0-10.2":0.00801,"10.3":0.0721,"11.0-11.2":0.10615,"11.3-11.4":0.02003,"12.0-12.1":0.01202,"12.2-12.5":0.2904,"13.0-13.1":0.00601,"13.2":0.02804,"13.3":0.01402,"13.4-13.7":0.06409,"14.0-14.4":0.11015,"14.5-14.8":0.17023,"15.0-15.1":0.08211,"15.2-15.3":0.09012,"15.4":0.10214,"15.5":0.12818,"15.6-15.8":1.15358,"16.0":0.26236,"16.1":0.54074,"16.2":0.26236,"16.3":0.45462,"16.4":0.09613,"16.5":0.19427,"16.6-16.7":1.54812,"17.0":0.16823,"17.1":0.27438,"17.2":0.28639,"17.3":0.52872,"17.4":12.00641,"17.5":0.84716,"17.6":0},P:{"20":0.01045,"21":0.01045,"22":0.15678,"23":0.09407,"24":0.19859,"25":3.44916,_:"4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","5.0-5.4":0.01045,"18.0":0.01045,"19.0":0.01045},I:{"0":0.03283,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.24958,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00529,"11":0.01058,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.35362},R:{_:"0"},M:{"0":0.49445},Q:{"14.9":0.00942},O:{"0":0.03767},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/IT.js b/node_modules/caniuse-lite/data/regions/IT.js index 650b66c0d..54ebbde08 100644 --- a/node_modules/caniuse-lite/data/regions/IT.js +++ b/node_modules/caniuse-lite/data/regions/IT.js @@ -1 +1 @@ -module.exports={C:{"2":0.00424,"48":0.00424,"52":0.03395,"59":0.05942,"66":0.00424,"68":0.00424,"76":0.00424,"78":0.04244,"82":0.00424,"88":0.00424,"102":0.00424,"113":0.00424,"115":0.33952,"119":0.00424,"123":0.00424,"125":0.00424,"127":0.00424,"128":0.08912,"130":0.00424,"131":0.00424,"132":0.00424,"133":0.00849,"134":0.00849,"135":0.01698,"136":0.02546,"137":0.03395,"138":0.1443,"139":2.53367,"140":0.37772,"141":0.00424,_:"3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 67 69 70 71 72 73 74 75 77 79 80 81 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 120 121 122 124 126 129 142 143 3.5 3.6"},D:{"29":0.00424,"38":0.00424,"39":0.00849,"40":0.00849,"41":0.00849,"42":0.00849,"43":0.00849,"44":0.00849,"45":0.00849,"46":0.00849,"47":0.00849,"48":0.01273,"49":0.0382,"50":0.00849,"51":0.00849,"52":0.01273,"53":0.00849,"54":0.00849,"55":0.00849,"56":0.00849,"57":0.00849,"58":0.01273,"59":0.00849,"60":0.00849,"63":0.07639,"65":0.00424,"66":0.24191,"67":0.00424,"68":0.00424,"69":0.00424,"70":0.00424,"71":0.00424,"73":0.00424,"74":0.02971,"77":0.01273,"78":0.00424,"79":0.02122,"80":0.00424,"81":0.00849,"83":0.00424,"84":0.00424,"85":0.02122,"86":0.02122,"87":0.0382,"88":0.00849,"89":0.00424,"90":0.00849,"91":0.11459,"92":0.00424,"93":0.00424,"94":0.00424,"97":0.00424,"98":0.00424,"99":0.00849,"100":0.00849,"101":0.00849,"102":0.00849,"103":0.0679,"104":0.01273,"105":0.02122,"106":0.04244,"107":0.01273,"108":0.02546,"109":1.40901,"110":0.03395,"111":0.00849,"112":0.00849,"113":0.00849,"114":0.02122,"115":0.00849,"116":0.2122,"117":0.00424,"118":0.01698,"119":0.13156,"120":0.0382,"121":0.02971,"122":0.05942,"123":0.02122,"124":0.05517,"125":0.2801,"126":0.04668,"127":0.02546,"128":0.18249,"129":0.02971,"130":0.10186,"131":0.30132,"132":0.07215,"133":0.09761,"134":0.14005,"135":0.26313,"136":2.55064,"137":18.52082,"138":0.70026,"139":0.01273,"140":0.00424,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 61 62 64 72 75 76 95 96 141"},F:{"46":0.00424,"89":0.02971,"90":0.01698,"95":0.01698,"102":0.00424,"114":0.00424,"115":0.00424,"117":0.00424,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.02546,"80":0.00424,"81":0.00424,"83":0.00424,"84":0.00424,"85":0.01273,"86":0.00424,"92":0.00424,"109":0.04668,"114":0.00424,"120":0.00424,"122":0.00424,"124":0.00424,"126":0.00849,"127":0.00849,"128":0.00424,"129":0.01698,"130":0.01698,"131":0.03395,"132":0.02122,"133":0.01273,"134":0.04244,"135":0.02971,"136":0.47533,"137":3.12783,"138":0.2801,_:"12 13 14 15 16 18 79 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 125"},E:{"4":0.00424,"8":0.00424,"13":0.00424,"14":0.02971,"15":0.00424,_:"0 5 6 7 9 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1","9.1":0.00424,"11.1":0.05517,"12.1":0.01273,"13.1":0.05517,"14.1":0.07639,"15.1":0.00424,"15.2-15.3":0.00849,"15.4":0.00849,"15.5":0.01698,"15.6":0.21644,"16.0":0.02971,"16.1":0.02546,"16.2":0.01698,"16.3":0.0382,"16.4":0.02546,"16.5":0.02546,"16.6":0.19522,"17.0":0.02122,"17.1":0.10186,"17.2":0.04668,"17.3":0.02546,"17.4":0.04244,"17.5":0.11459,"17.6":0.30981,"18.0":0.0382,"18.1":0.0679,"18.2":0.03395,"18.3":0.14854,"18.4":0.19522,"18.5":1.65516,"26.0":0.00424},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00289,"5.0-5.1":0,"6.0-6.1":0.00577,"7.0-7.1":0.00577,"8.1-8.4":0,"9.0-9.2":0.00289,"9.3":0.01732,"10.0-10.2":0.00144,"10.3":0.02887,"11.0-11.2":0.18478,"11.3-11.4":0.01011,"12.0-12.1":0.00289,"12.2-12.5":0.09672,"13.0-13.1":0.00144,"13.2":0.00433,"13.3":0.00289,"13.4-13.7":0.01588,"14.0-14.4":0.03753,"14.5-14.8":0.03753,"15.0-15.1":0.02598,"15.2-15.3":0.02598,"15.4":0.03176,"15.5":0.03465,"15.6-15.8":0.44752,"16.0":0.05919,"16.1":0.12126,"16.2":0.06208,"16.3":0.11404,"16.4":0.02598,"16.5":0.0462,"16.6-16.7":0.56156,"17.0":0.03032,"17.1":0.05341,"17.2":0.04186,"17.3":0.05919,"17.4":0.10538,"17.5":0.22087,"17.6-17.7":0.57744,"18.0":0.14292,"18.1":0.32192,"18.2":0.17035,"18.3":0.73191,"18.4":0.77666,"18.5":9.10482,"26.0":0},P:{"4":0.0519,"20":0.01038,"21":0.03114,"22":0.03114,"23":0.04152,"24":0.14532,"25":0.04152,"26":0.07266,"27":0.18684,"28":2.46006,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 18.0","7.2-7.4":0.01038,"14.0":0.01038,"17.0":0.01038,"19.0":0.01038},I:{"0":0.04022,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.46624,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04215,"9":0.01054,"10":0.01581,"11":0.08429,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.25004},R:{_:"0"},M:{"0":0.47775},Q:{"14.9":0.00576},O:{"0":0.09785},H:{"0":0}}; +module.exports={C:{"47":0.00471,"48":0.00942,"52":0.06594,"56":0.00471,"59":0.01884,"68":0.00471,"72":0.00471,"75":0.00471,"78":0.0471,"88":0.02826,"91":0.01413,"93":0.01884,"94":0.02826,"101":0.00471,"102":0.00471,"103":0.00471,"104":0.00471,"105":0.00471,"106":0.00471,"107":0.00471,"108":0.00471,"109":0.00471,"110":0.00471,"112":0.00471,"113":0.01413,"114":0.00942,"115":0.57933,"116":0.00471,"117":0.00471,"118":0.00942,"119":0.00942,"120":0.00471,"121":0.01413,"122":0.01884,"123":0.01884,"124":0.08478,"125":2.04414,"126":2.20428,"127":0.00942,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 53 54 55 57 58 60 61 62 63 64 65 66 67 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 89 90 92 95 96 97 98 99 100 111 128 129 3.5 3.6"},D:{"22":0.00471,"38":0.00942,"41":0.00471,"49":0.04239,"60":0.00471,"63":0.09891,"65":0.00471,"66":0.08007,"67":0.00471,"68":0.00471,"70":0.00471,"74":0.00471,"77":0.01413,"79":0.02355,"80":0.00471,"81":0.01413,"83":0.00471,"84":0.02826,"85":0.01413,"86":0.01884,"87":0.05652,"88":0.00942,"89":0.00942,"90":0.00942,"91":0.00471,"92":0.39093,"93":0.10833,"94":0.01413,"95":0.03768,"96":0.00942,"97":0.00942,"98":0.00471,"99":0.01884,"100":0.00942,"101":0.00471,"102":0.00942,"103":0.0942,"104":0.00942,"105":0.03297,"106":0.01413,"107":0.05181,"108":0.01884,"109":1.96407,"110":0.01413,"111":0.01884,"112":0.02826,"113":0.03297,"114":0.0471,"115":0.01884,"116":0.24963,"117":0.01884,"118":0.07065,"119":0.06594,"120":0.13659,"121":0.11775,"122":0.27789,"123":1.24815,"124":18.20886,"125":6.65052,"126":0.00942,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 61 62 64 69 71 72 73 75 76 78 127 128"},F:{"46":0.00471,"84":0.00471,"85":0.00942,"89":0.00471,"95":0.02355,"102":0.00471,"107":0.13659,"108":0.01884,"109":0.86193,"110":0.06594,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00942,"18":0.00471,"85":0.00471,"90":0.1413,"92":0.00942,"109":0.07536,"112":0.00471,"113":0.00942,"114":0.00471,"115":0.03768,"116":0.00471,"117":0.00471,"118":0.00471,"119":0.02355,"120":0.04239,"121":0.03768,"122":0.05652,"123":0.09891,"124":2.7318,"125":1.60611,_:"12 13 14 15 16 79 80 81 83 84 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111"},E:{"8":0.00471,"13":0.00471,"14":0.03768,"15":0.01413,_:"0 4 5 6 7 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.01884,"12.1":0.02355,"13.1":0.11775,"14.1":0.34383,"15.1":0.02355,"15.2-15.3":0.02355,"15.4":0.01884,"15.5":0.03297,"15.6":0.27789,"16.0":0.0471,"16.1":0.06123,"16.2":0.03768,"16.3":0.08949,"16.4":0.04239,"16.5":0.06594,"16.6":0.26847,"17.0":0.0471,"17.1":0.08478,"17.2":0.13188,"17.3":0.11304,"17.4":1.38474,"17.5":0.2826},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00269,"5.0-5.1":0.00269,"6.0-6.1":0.00672,"7.0-7.1":0.00941,"8.1-8.4":0.00269,"9.0-9.2":0.00672,"9.3":0.03092,"10.0-10.2":0.00538,"10.3":0.0484,"11.0-11.2":0.07126,"11.3-11.4":0.01344,"12.0-12.1":0.00807,"12.2-12.5":0.19495,"13.0-13.1":0.00403,"13.2":0.01882,"13.3":0.00941,"13.4-13.7":0.04302,"14.0-14.4":0.07395,"14.5-14.8":0.11428,"15.0-15.1":0.05512,"15.2-15.3":0.0605,"15.4":0.06857,"15.5":0.08605,"15.6-15.8":0.77441,"16.0":0.17612,"16.1":0.36301,"16.2":0.17612,"16.3":0.30519,"16.4":0.06453,"16.5":0.13041,"16.6-16.7":1.03927,"17.0":0.11293,"17.1":0.18419,"17.2":0.19226,"17.3":0.35494,"17.4":8.06006,"17.5":0.56871,"17.6":0},P:{"4":0.07336,"20":0.02096,"21":0.06288,"22":0.07336,"23":0.13623,"24":0.32486,"25":2.51507,_:"5.0-5.4 7.2-7.4 8.2 10.1 12.0 15.0","6.2-6.4":0.01048,"9.2":0.02096,"11.1-11.2":0.03144,"13.0":0.02096,"14.0":0.01048,"16.0":0.01048,"17.0":0.01048,"18.0":0.01048,"19.0":0.03144},I:{"0":0.04742,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.39139,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00483,"9":0.00483,"10":0.00483,"11":0.16919,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.11994},R:{_:"0"},M:{"0":0.66113},Q:{"14.9":0.00529},O:{"0":0.10049},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/JE.js b/node_modules/caniuse-lite/data/regions/JE.js index 40df18ee7..9bec0201c 100644 --- a/node_modules/caniuse-lite/data/regions/JE.js +++ b/node_modules/caniuse-lite/data/regions/JE.js @@ -1 +1 @@ -module.exports={C:{"81":0.00401,"102":0.00401,"115":0.02404,"128":0.01202,"137":0.00401,"138":0.00401,"139":1.72702,"140":0.24042,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 141 142 143 3.5 3.6"},D:{"38":0.00401,"39":0.00801,"40":0.00801,"41":0.00801,"42":0.00401,"43":0.00401,"44":0.00801,"45":0.00801,"46":0.00801,"47":0.00401,"48":0.00801,"49":0.01202,"50":0.00801,"51":0.00801,"52":0.00801,"53":0.00401,"54":0.00801,"55":0.00801,"56":0.00801,"57":0.01202,"58":0.00401,"59":0.00401,"60":0.00401,"74":0.00401,"80":0.14025,"87":0.00401,"89":0.00801,"91":0.00401,"97":0.01202,"98":0.2885,"99":0.09216,"101":0.00801,"103":0.0561,"109":0.12822,"111":0.01603,"113":0.01202,"116":0.02805,"120":0.00401,"122":0.07613,"123":0.00401,"124":0.01603,"125":0.49286,"126":0.0561,"128":0.02404,"129":0.01202,"130":0.00801,"131":0.06011,"132":0.03606,"133":0.02404,"134":0.06011,"135":0.19634,"136":2.48835,"137":11.61629,"138":0.58903,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 79 81 83 84 85 86 88 90 92 93 94 95 96 100 102 104 105 106 107 108 110 112 114 115 117 118 119 121 127 139 140 141"},F:{"83":0.00801,"84":0.00401,"115":0.00401,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00401,"97":0.00401,"98":0.02805,"99":0.00801,"109":0.01202,"127":0.00401,"129":0.03206,"131":0.00401,"132":0.05209,"134":0.32457,"135":0.01202,"136":0.86952,"137":5.50963,"138":0.27248,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 128 130 133"},E:{"14":0.00801,"15":0.01202,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.0","12.1":0.00401,"13.1":0.02004,"14.1":0.05209,"15.1":0.02004,"15.4":0.00401,"15.5":0.02805,"15.6":0.86151,"16.0":0.06411,"16.1":0.03606,"16.2":0.04007,"16.3":0.06011,"16.4":0.03606,"16.5":0.02404,"16.6":0.98973,"17.1":0.58502,"17.2":0.04007,"17.3":0.08415,"17.4":0.02805,"17.5":0.10418,"17.6":0.62509,"18.0":0.01202,"18.1":0.07213,"18.2":0.01603,"18.3":0.86151,"18.4":0.20436,"18.5":7.61731,"26.0":0.00401},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00653,"5.0-5.1":0,"6.0-6.1":0.01307,"7.0-7.1":0.01307,"8.1-8.4":0,"9.0-9.2":0.00653,"9.3":0.0392,"10.0-10.2":0.00327,"10.3":0.06534,"11.0-11.2":0.41815,"11.3-11.4":0.02287,"12.0-12.1":0.00653,"12.2-12.5":0.21887,"13.0-13.1":0.00327,"13.2":0.0098,"13.3":0.00653,"13.4-13.7":0.03593,"14.0-14.4":0.08494,"14.5-14.8":0.08494,"15.0-15.1":0.0588,"15.2-15.3":0.0588,"15.4":0.07187,"15.5":0.0784,"15.6-15.8":1.0127,"16.0":0.13394,"16.1":0.27441,"16.2":0.14047,"16.3":0.25808,"16.4":0.0588,"16.5":0.10454,"16.6-16.7":1.27078,"17.0":0.0686,"17.1":0.12087,"17.2":0.09474,"17.3":0.13394,"17.4":0.23848,"17.5":0.49982,"17.6-17.7":1.30671,"18.0":0.32341,"18.1":0.72849,"18.2":0.38548,"18.3":1.65626,"18.4":1.75753,"18.5":20.60361,"26.0":0},P:{"4":0.223,"20":0.01115,"26":0.0223,"27":0.05575,"28":4.8836,_:"21 22 23 24 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01115,"16.0":0.0669},I:{"0":0.00598,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.03596,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.85815},R:{_:"0"},M:{"0":0.1738},Q:{_:"14.9"},O:{"0":0.01798},H:{"0":0}}; +module.exports={C:{"48":0.00424,"81":0.00424,"115":0.10171,"123":0.00424,"124":0.11443,"125":0.93236,"126":0.66537,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"49":0.01271,"80":0.08052,"87":0.00424,"90":0.00424,"93":0.06357,"94":0.00848,"98":0.00424,"99":0.00424,"101":0.00424,"103":0.17376,"107":0.00424,"109":0.22461,"111":0.00424,"112":0.00424,"113":0.01271,"115":0.00424,"116":0.14409,"117":0.00848,"118":0.06781,"119":0.01695,"120":0.04662,"121":0.36023,"122":0.51704,"123":1.0256,"124":12.12492,"125":4.67028,"126":0.05086,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 83 84 85 86 88 89 91 92 95 96 97 100 102 104 105 106 108 110 114 127 128"},F:{"106":0.00848,"107":0.10171,"109":0.37718,"110":0.00848,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"108":0.00848,"109":0.05509,"113":0.00424,"114":0.01695,"116":0.00424,"117":0.00424,"120":0.00424,"121":0.00424,"122":0.01695,"123":0.08052,"124":5.18307,"125":2.90727,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 115 118 119"},E:{"14":0.08052,"15":0.00848,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.07628,"13.1":0.03814,"14.1":0.19919,"15.1":0.00424,"15.2-15.3":0.089,"15.4":0.02543,"15.5":0.19495,"15.6":0.76284,"16.0":0.07205,"16.1":0.26699,"16.2":0.05509,"16.3":0.15257,"16.4":0.08052,"16.5":0.19919,"16.6":1.6613,"17.0":0.02543,"17.1":0.14833,"17.2":0.089,"17.3":0.18647,"17.4":6.42905,"17.5":0.75013},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00688,"5.0-5.1":0.00688,"6.0-6.1":0.01721,"7.0-7.1":0.0241,"8.1-8.4":0.00688,"9.0-9.2":0.01721,"9.3":0.07917,"10.0-10.2":0.01377,"10.3":0.12392,"11.0-11.2":0.18244,"11.3-11.4":0.03442,"12.0-12.1":0.02065,"12.2-12.5":0.49912,"13.0-13.1":0.01033,"13.2":0.04819,"13.3":0.0241,"13.4-13.7":0.11015,"14.0-14.4":0.18932,"14.5-14.8":0.29259,"15.0-15.1":0.14113,"15.2-15.3":0.1549,"15.4":0.17555,"15.5":0.2203,"15.6-15.8":1.98273,"16.0":0.45093,"16.1":0.9294,"16.2":0.45093,"16.3":0.78139,"16.4":0.16523,"16.5":0.3339,"16.6-16.7":2.66085,"17.0":0.28915,"17.1":0.47159,"17.2":0.49224,"17.3":0.90875,"17.4":20.63623,"17.5":1.45607,"17.6":0},P:{"4":0.14964,"20":0.02302,"21":0.02302,"22":0.01151,"23":0.12662,"24":0.18417,"25":3.787,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01151},I:{"0":0.01722,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.03763,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00424,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":18.36248},R:{_:"0"},M:{"0":0.39188},Q:{_:"14.9"},O:{"0":0.00576},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/JM.js b/node_modules/caniuse-lite/data/regions/JM.js index b7f2f498f..1ab307c9c 100644 --- a/node_modules/caniuse-lite/data/regions/JM.js +++ b/node_modules/caniuse-lite/data/regions/JM.js @@ -1 +1 @@ -module.exports={C:{"78":0.00738,"115":0.07384,"128":0.02954,"137":0.00369,"138":0.02954,"139":0.70148,"140":0.08861,"141":0.00369,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 142 143 3.5 3.6"},D:{"39":0.01108,"40":0.01108,"41":0.01108,"42":0.00738,"43":0.01108,"44":0.01108,"45":0.01108,"46":0.01108,"47":0.01108,"48":0.01108,"49":0.01477,"50":0.01108,"51":0.01108,"52":0.01108,"53":0.01108,"54":0.01108,"55":0.01108,"56":0.01477,"57":0.01108,"58":0.01108,"59":0.01108,"60":0.01108,"63":0.00369,"69":0.00369,"70":0.01108,"73":0.03692,"75":0.00369,"76":0.00369,"79":0.02215,"80":0.00369,"81":0.00369,"83":0.06646,"86":0.00738,"87":0.02584,"91":0.02584,"93":0.02954,"95":0.00369,"96":0.00369,"97":0.00369,"98":0.0443,"99":0.01477,"101":0.00738,"103":0.09968,"105":0.00369,"106":0.00369,"108":0.02215,"109":0.17352,"110":0.00369,"111":0.01108,"113":0.02584,"114":0.00369,"115":0.00369,"116":0.05538,"119":0.02215,"120":0.00738,"121":0.01108,"122":0.02584,"123":0.01108,"124":0.00369,"125":10.92094,"126":0.10338,"127":0.01477,"128":0.048,"129":0.00738,"130":0.01846,"131":0.03692,"132":0.22521,"133":0.02215,"134":0.05907,"135":0.12922,"136":5.4457,"137":8.92726,"138":0.30644,"139":0.01477,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 65 66 67 68 71 72 74 77 78 84 85 88 89 90 92 94 100 102 104 107 112 117 118 140 141"},F:{"89":0.02584,"90":0.00369,"95":0.00369,"117":0.00369,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00369,"92":0.00738,"98":0.00738,"99":0.00369,"109":0.01108,"114":0.00738,"125":0.00369,"126":0.00369,"129":0.00369,"131":0.01108,"132":0.01477,"133":0.00738,"134":0.0443,"135":0.02215,"136":0.52426,"137":2.49579,"138":0.2326,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 127 128 130"},E:{"15":0.00738,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.5 26.0","5.1":0.00369,"13.1":0.00738,"14.1":0.02584,"15.5":0.00369,"15.6":0.07384,"16.0":0.00369,"16.1":0.01846,"16.2":0.00369,"16.3":0.01846,"16.4":0.00369,"16.6":0.09599,"17.0":0.00738,"17.1":0.03323,"17.2":0.00369,"17.3":0.00369,"17.4":0.05907,"17.5":0.03323,"17.6":0.14399,"18.0":0.01108,"18.1":0.01846,"18.2":0.02215,"18.3":0.1846,"18.4":0.09968,"18.5":0.84178},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00214,"5.0-5.1":0,"6.0-6.1":0.00428,"7.0-7.1":0.00428,"8.1-8.4":0,"9.0-9.2":0.00214,"9.3":0.01285,"10.0-10.2":0.00107,"10.3":0.02142,"11.0-11.2":0.1371,"11.3-11.4":0.0075,"12.0-12.1":0.00214,"12.2-12.5":0.07176,"13.0-13.1":0.00107,"13.2":0.00321,"13.3":0.00214,"13.4-13.7":0.01178,"14.0-14.4":0.02785,"14.5-14.8":0.02785,"15.0-15.1":0.01928,"15.2-15.3":0.01928,"15.4":0.02356,"15.5":0.02571,"15.6-15.8":0.33204,"16.0":0.04392,"16.1":0.08997,"16.2":0.04606,"16.3":0.08462,"16.4":0.01928,"16.5":0.03428,"16.6-16.7":0.41666,"17.0":0.02249,"17.1":0.03963,"17.2":0.03106,"17.3":0.04392,"17.4":0.07819,"17.5":0.16388,"17.6-17.7":0.42844,"18.0":0.10604,"18.1":0.23885,"18.2":0.12639,"18.3":0.54305,"18.4":0.57625,"18.5":6.75542,"26.0":0},P:{"4":0.06607,"20":0.01101,"21":0.01101,"22":0.02202,"23":0.01101,"24":0.04405,"25":0.15417,"26":0.05506,"27":0.14316,"28":2.00423,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.06607,"19.0":0.01101},I:{"0":0.25189,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.20816,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.9391},R:{_:"0"},M:{"0":0.2334},Q:{_:"14.9"},O:{"0":0.12616},H:{"0":0}}; +module.exports={C:{"48":0.00216,"73":0.01511,"78":0.02807,"87":0.00216,"113":0.00216,"115":0.05398,"121":0.01295,"122":0.00216,"123":0.02807,"124":0.06477,"125":0.47066,"126":0.38214,"127":0.00864,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 128 129 3.5 3.6"},D:{"11":0.00216,"43":0.00216,"49":0.00216,"56":0.00216,"62":0.00216,"63":0.00216,"65":0.00216,"69":0.01511,"70":0.0367,"73":0.02375,"74":0.00216,"75":0.00648,"76":0.01295,"77":0.00216,"79":0.01295,"80":0.02159,"81":0.02591,"83":0.0842,"84":0.00432,"86":0.00432,"87":0.02807,"88":0.00432,"89":0.00216,"90":0.00216,"91":0.00432,"93":0.0475,"94":0.00648,"95":0.00648,"96":0.00648,"98":0.00216,"99":0.00432,"100":0.00216,"101":0.00216,"102":0.00216,"103":0.17272,"104":0.00216,"105":0.00648,"106":0.00432,"107":0.00432,"108":0.00864,"109":0.37783,"110":0.00864,"111":0.0108,"112":0.01295,"113":0.00432,"114":0.01943,"115":0.00864,"116":0.03886,"117":0.02159,"118":0.01511,"119":0.04318,"120":0.06693,"121":0.05829,"122":0.11443,"123":0.72758,"124":8.42658,"125":3.13487,"126":0.01943,"127":0.00216,_:"4 5 6 7 8 9 10 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 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 64 66 67 68 71 72 78 85 92 97 128"},F:{"28":0.00648,"46":0.00216,"95":0.00216,"107":0.13386,"108":0.00216,"109":0.51816,"110":0.02375,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00216,"16":0.00216,"18":0.00648,"92":0.0108,"100":0.00216,"107":0.00648,"109":0.00864,"112":0.00216,"114":0.00216,"116":0.00216,"117":0.00432,"118":0.00216,"119":0.00216,"120":0.00864,"121":0.00648,"122":0.01727,"123":0.08636,"124":1.96901,"125":1.08382,_:"12 13 14 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 113 115"},E:{"14":0.00216,"15":0.00216,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00432,"13.1":0.11011,"14.1":0.01727,"15.1":0.00216,"15.2-15.3":0.00216,"15.4":0.02375,"15.5":0.00864,"15.6":0.05613,"16.0":0.00432,"16.1":0.0108,"16.2":0.01511,"16.3":0.02807,"16.4":0.0108,"16.5":0.01727,"16.6":0.13818,"17.0":0.01295,"17.1":0.02159,"17.2":0.0367,"17.3":0.07772,"17.4":0.60668,"17.5":0.06045},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00565,"5.0-5.1":0.00565,"6.0-6.1":0.01412,"7.0-7.1":0.01977,"8.1-8.4":0.00565,"9.0-9.2":0.01412,"9.3":0.06497,"10.0-10.2":0.0113,"10.3":0.10169,"11.0-11.2":0.14971,"11.3-11.4":0.02825,"12.0-12.1":0.01695,"12.2-12.5":0.40958,"13.0-13.1":0.00847,"13.2":0.03955,"13.3":0.01977,"13.4-13.7":0.09039,"14.0-14.4":0.15536,"14.5-14.8":0.2401,"15.0-15.1":0.11581,"15.2-15.3":0.12711,"15.4":0.14406,"15.5":0.18078,"15.6-15.8":1.62702,"16.0":0.37003,"16.1":0.76267,"16.2":0.37003,"16.3":0.6412,"16.4":0.13559,"16.5":0.27399,"16.6-16.7":2.18348,"17.0":0.23727,"17.1":0.38698,"17.2":0.40393,"17.3":0.74572,"17.4":16.93401,"17.5":1.19484,"17.6":0},P:{"4":0.06355,"20":0.03177,"21":0.10591,"22":0.08473,"23":0.16946,"24":0.2542,"25":2.44663,"5.0-5.4":0.01059,"6.2-6.4":0.02118,"7.2-7.4":0.16946,_:"8.2 9.2 10.1 12.0 15.0","11.1-11.2":0.01059,"13.0":0.01059,"14.0":0.01059,"16.0":0.02118,"17.0":0.01059,"18.0":0.01059,"19.0":0.04237},I:{"0":0.05468,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.23526,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00907,"11":0.00605,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.51441},R:{_:"0"},M:{"0":0.11763},Q:{"14.9":0.00784},O:{"0":0.16468},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/JO.js b/node_modules/caniuse-lite/data/regions/JO.js index e49bf901e..7b2f0e9ae 100644 --- a/node_modules/caniuse-lite/data/regions/JO.js +++ b/node_modules/caniuse-lite/data/regions/JO.js @@ -1 +1 @@ -module.exports={C:{"52":0.00228,"115":0.1229,"117":0.00228,"128":0.01593,"134":0.00228,"135":0.00228,"136":0.00228,"137":0.00228,"138":0.01593,"139":0.40285,"140":0.07283,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"11":0.02048,"29":0.00455,"34":0.01593,"39":0.00455,"40":0.00455,"41":0.00455,"42":0.00455,"43":0.00455,"44":0.00455,"45":0.00455,"46":0.00455,"47":0.00683,"48":0.00455,"49":0.00683,"50":0.00683,"51":0.00455,"52":0.00455,"53":0.00455,"54":0.00455,"55":0.00455,"56":0.00455,"57":0.00455,"58":0.05462,"59":0.00455,"60":0.00455,"63":0.00228,"65":0.00455,"66":0.00228,"67":0.00228,"68":0.00228,"69":0.00228,"70":0.00228,"73":0.00228,"78":0.00455,"79":0.01366,"80":0.00228,"81":0.00683,"83":0.0091,"84":0.00228,"86":0.00455,"87":0.02504,"88":0.00683,"89":0.00228,"90":0.00455,"91":0.00683,"93":0.00228,"94":0.00228,"96":0.00228,"98":0.02731,"100":0.00683,"101":0.00228,"103":0.00683,"104":0.00228,"105":0.00683,"106":0.00228,"107":0.00455,"108":0.01821,"109":0.91495,"110":0.0091,"111":0.0091,"113":0.00455,"114":0.02276,"115":0.00228,"116":0.01366,"117":0.13656,"118":0.0091,"119":0.0091,"120":0.01138,"121":0.00455,"122":0.06373,"123":0.02276,"124":0.02048,"125":2.12806,"126":0.01138,"127":0.02276,"128":0.03186,"129":0.0091,"130":0.00683,"131":0.0478,"132":0.02731,"133":0.03642,"134":0.0478,"135":0.09787,"136":2.06661,"137":9.63203,"138":0.47113,"139":0.00228,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 38 61 62 64 71 72 74 75 76 77 85 92 95 97 99 102 112 140 141"},F:{"46":0.00228,"79":0.02048,"82":0.00455,"89":0.00455,"90":0.00455,"95":0.00683,"107":0.00228,"109":0.00683,"112":0.00228,"113":0.01138,"114":0.00455,"117":0.00683,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 108 110 111 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00455,"109":0.00455,"111":0.00228,"114":0.00228,"122":0.00228,"123":0.00228,"126":0.00228,"129":0.00228,"130":0.00683,"131":0.01366,"132":0.00455,"133":0.00228,"134":0.01593,"135":0.03642,"136":0.22988,"137":1.15166,"138":0.16615,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 113 115 116 117 118 119 120 121 124 125 127 128"},E:{"4":0.00228,"14":0.00228,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.4 17.0 26.0","5.1":0.0091,"13.1":0.13884,"14.1":0.00228,"15.1":0.00228,"15.5":0.00228,"15.6":0.03186,"16.0":0.00228,"16.1":0.00455,"16.2":0.00228,"16.3":0.00683,"16.5":0.00228,"16.6":0.02731,"17.1":0.0091,"17.2":0.00228,"17.3":0.01821,"17.4":0.01138,"17.5":0.01366,"17.6":0.05235,"18.0":0.00455,"18.1":0.02276,"18.2":0.00228,"18.3":0.03414,"18.4":0.02959,"18.5":0.36871},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00349,"5.0-5.1":0,"6.0-6.1":0.00697,"7.0-7.1":0.00697,"8.1-8.4":0,"9.0-9.2":0.00349,"9.3":0.02091,"10.0-10.2":0.00174,"10.3":0.03485,"11.0-11.2":0.22304,"11.3-11.4":0.0122,"12.0-12.1":0.00349,"12.2-12.5":0.11675,"13.0-13.1":0.00174,"13.2":0.00523,"13.3":0.00349,"13.4-13.7":0.01917,"14.0-14.4":0.04531,"14.5-14.8":0.04531,"15.0-15.1":0.03137,"15.2-15.3":0.03137,"15.4":0.03834,"15.5":0.04182,"15.6-15.8":0.54019,"16.0":0.07144,"16.1":0.14637,"16.2":0.07493,"16.3":0.13766,"16.4":0.03137,"16.5":0.05576,"16.6-16.7":0.67785,"17.0":0.03659,"17.1":0.06447,"17.2":0.05053,"17.3":0.07144,"17.4":0.12721,"17.5":0.26661,"17.6-17.7":0.69701,"18.0":0.17251,"18.1":0.38859,"18.2":0.20562,"18.3":0.88346,"18.4":0.93748,"18.5":10.99016,"26.0":0},P:{"4":0.03098,"21":0.02065,"22":0.02065,"23":0.03098,"24":0.02065,"25":0.06196,"26":0.06196,"27":0.10327,"28":1.41481,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.07229,"11.1-11.2":0.01033,"17.0":0.01033,"19.0":0.01033},I:{"0":0.05398,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.10814,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03642,"9":0.0091,"10":0.01214,"11":0.04249,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.93665},R:{_:"0"},M:{"0":0.13131},Q:{_:"14.9"},O:{"0":0.04634},H:{"0":0}}; +module.exports={C:{"34":0.00396,"52":0.00198,"54":0.00198,"78":0.00396,"88":0.00198,"102":0.00198,"103":0.01189,"108":0.00198,"110":0.00198,"115":0.07135,"118":0.00198,"121":0.00198,"122":0.00198,"123":0.00396,"124":0.00396,"125":0.19622,"126":0.16451,"127":0.00198,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 109 111 112 113 114 116 117 119 120 128 129 3.5 3.6"},D:{"11":0.01387,"38":0.01189,"39":0.00198,"43":0.00198,"47":0.00198,"48":0.00198,"49":0.00396,"55":0.00396,"58":0.04955,"60":0.00198,"63":0.01189,"65":0.00793,"66":0.00198,"68":0.00198,"69":0.00396,"70":0.00198,"71":0.00198,"72":0.00198,"73":0.00793,"74":0.00198,"76":0.00198,"78":0.00991,"79":0.01982,"80":0.00198,"81":0.00396,"83":0.03568,"84":0.00396,"85":0.00793,"86":0.00595,"87":0.03171,"88":0.01189,"89":0.00198,"90":0.00198,"91":0.00198,"92":0.00396,"93":0.00396,"94":0.00396,"95":0.00595,"96":0.00396,"97":0.00198,"98":0.05153,"99":0.03766,"100":0.00396,"101":0.00198,"102":0.01189,"103":0.0218,"104":0.01586,"105":0.00991,"106":0.01586,"107":0.01586,"108":0.03766,"109":1.08614,"110":0.01189,"111":0.01982,"112":0.00793,"113":0.01387,"114":0.00991,"115":0.00396,"116":0.02973,"117":0.01189,"118":0.00595,"119":0.04757,"120":0.07135,"121":0.05351,"122":0.12288,"123":0.27946,"124":7.90818,"125":3.21877,"126":0.00595,"127":0.00198,_:"4 5 6 7 8 9 10 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 40 41 42 44 45 46 50 51 52 53 54 56 57 59 61 62 64 67 75 77 128"},F:{"28":0.00198,"64":0.00198,"82":0.00396,"83":0.00396,"86":0.00198,"91":0.00198,"94":0.00198,"95":0.01586,"102":0.00198,"104":0.01189,"105":0.01982,"106":0.01784,"107":0.1209,"108":0.02775,"109":0.1427,"110":0.00793,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 87 88 89 90 92 93 96 97 98 99 100 101 103 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00198,"18":0.00198,"84":0.00198,"92":0.01387,"98":0.00198,"100":0.00198,"104":0.04162,"107":0.00396,"108":0.00396,"109":0.01784,"112":0.00198,"116":0.00198,"117":0.00198,"118":0.00396,"119":0.00198,"120":0.00595,"121":0.00793,"122":0.01982,"123":0.02775,"124":1.16343,"125":0.70361,_:"13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 99 101 102 103 105 106 110 111 113 114 115"},E:{"14":0.00793,"15":0.00198,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00198,"13.1":0.01189,"14.1":0.01189,"15.1":0.00793,"15.2-15.3":0.00396,"15.4":0.00396,"15.5":0.00991,"15.6":0.05748,"16.0":0.00396,"16.1":0.01189,"16.2":0.00793,"16.3":0.0218,"16.4":0.00595,"16.5":0.00793,"16.6":0.05153,"17.0":0.01189,"17.1":0.01982,"17.2":0.03171,"17.3":0.03369,"17.4":0.41027,"17.5":0.05946},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00234,"5.0-5.1":0.00234,"6.0-6.1":0.00586,"7.0-7.1":0.00821,"8.1-8.4":0.00234,"9.0-9.2":0.00586,"9.3":0.02696,"10.0-10.2":0.00469,"10.3":0.0422,"11.0-11.2":0.06213,"11.3-11.4":0.01172,"12.0-12.1":0.00703,"12.2-12.5":0.16997,"13.0-13.1":0.00352,"13.2":0.01641,"13.3":0.00821,"13.4-13.7":0.03751,"14.0-14.4":0.06447,"14.5-14.8":0.09964,"15.0-15.1":0.04806,"15.2-15.3":0.05275,"15.4":0.05978,"15.5":0.07502,"15.6-15.8":0.67521,"16.0":0.15356,"16.1":0.3165,"16.2":0.15356,"16.3":0.2661,"16.4":0.05627,"16.5":0.11371,"16.6-16.7":0.90614,"17.0":0.09847,"17.1":0.1606,"17.2":0.16763,"17.3":0.30947,"17.4":7.02753,"17.5":0.49585,"17.6":0},P:{"4":0.10238,"20":0.05119,"21":0.10238,"22":0.14333,"23":0.24571,"24":0.45048,"25":3.53215,"5.0-5.4":0.01024,_:"6.2-6.4 8.2 9.2","7.2-7.4":0.14333,"10.1":0.01024,"11.1-11.2":0.06143,"12.0":0.01024,"13.0":0.03071,"14.0":0.04095,"15.0":0.04095,"16.0":0.04095,"17.0":0.03071,"18.0":0.03071,"19.0":0.06143},I:{"0":0.05591,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.39892,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00212,"9":0.00212,"11":0.02548,_:"6 7 10 5.5"},S:{"2.5":0.00802,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.66313},R:{_:"0"},M:{"0":0.20045},Q:{_:"14.9"},O:{"0":0.24856},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/JP.js b/node_modules/caniuse-lite/data/regions/JP.js index 1567ae7c9..5ca1b89f7 100644 --- a/node_modules/caniuse-lite/data/regions/JP.js +++ b/node_modules/caniuse-lite/data/regions/JP.js @@ -1 +1 @@ -module.exports={C:{"4":0.00518,"48":0.01036,"52":0.0259,"56":0.00518,"72":0.00518,"78":0.01554,"102":0.00518,"106":0.00518,"113":0.01554,"115":0.17091,"119":0.00518,"125":0.00518,"128":0.08286,"130":0.00518,"132":0.01554,"133":0.01036,"134":0.01036,"135":0.02072,"136":0.04143,"137":0.03107,"138":0.0984,"139":2.01981,"140":0.2952,"141":0.00518,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 107 108 109 110 111 112 114 116 117 118 120 121 122 123 124 126 127 129 131 142 143 3.5 3.6"},D:{"39":0.00518,"40":0.00518,"41":0.00518,"42":0.00518,"43":0.00518,"44":0.00518,"45":0.00518,"46":0.00518,"47":0.00518,"48":0.00518,"49":0.03625,"50":0.00518,"51":0.00518,"52":0.01036,"53":0.00518,"54":0.00518,"55":0.00518,"56":0.00518,"57":0.00518,"58":0.00518,"59":0.00518,"60":0.00518,"65":0.00518,"68":0.00518,"70":0.00518,"74":0.01554,"75":0.01036,"76":0.00518,"77":0.00518,"79":0.01554,"80":0.00518,"81":0.05697,"83":0.01036,"85":0.00518,"86":0.01554,"87":0.01036,"88":0.00518,"89":0.01554,"90":0.00518,"91":0.00518,"92":0.22788,"93":0.01036,"94":0.00518,"95":0.02072,"96":0.00518,"97":0.01036,"98":0.01554,"99":0.00518,"100":0.00518,"101":0.02072,"102":0.00518,"103":0.04661,"104":0.16055,"105":0.01036,"106":0.04661,"107":0.04661,"108":0.04143,"109":0.65773,"110":0.03107,"111":0.0259,"112":0.04143,"113":0.01036,"114":0.03107,"115":0.01036,"116":0.08286,"117":0.00518,"118":0.05697,"119":0.08804,"120":0.13465,"121":0.04143,"122":0.04143,"123":0.03107,"124":0.25895,"125":2.39788,"126":0.04143,"127":0.03107,"128":0.1243,"129":0.03107,"130":0.06733,"131":0.21234,"132":0.20716,"133":0.15537,"134":0.18644,"135":0.22788,"136":2.39788,"137":15.28841,"138":0.62148,"139":0.04661,"140":0.00518,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 69 71 72 73 78 84 141"},F:{"89":0.04143,"90":0.03107,"95":0.02072,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01554,"18":0.00518,"83":0.00518,"92":0.00518,"102":0.00518,"106":0.00518,"107":0.00518,"108":0.01036,"109":0.18644,"110":0.00518,"111":0.00518,"112":0.00518,"113":0.01036,"114":0.00518,"115":0.00518,"116":0.00518,"119":0.00518,"120":0.01554,"121":0.00518,"122":0.02072,"123":0.00518,"124":0.01554,"125":0.00518,"126":0.01554,"127":0.01554,"128":0.01036,"129":0.02072,"130":0.02072,"131":0.04143,"132":0.0259,"133":0.0259,"134":0.05697,"135":0.08286,"136":1.26886,"137":7.5717,"138":0.6422,_:"12 13 14 15 16 79 80 81 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 117 118"},E:{"13":0.00518,"14":0.02072,"15":0.00518,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.01036,"13.1":0.03625,"14.1":0.07769,"15.1":0.00518,"15.2-15.3":0.00518,"15.4":0.01036,"15.5":0.01554,"15.6":0.16573,"16.0":0.0259,"16.1":0.02072,"16.2":0.01036,"16.3":0.0259,"16.4":0.01554,"16.5":0.01554,"16.6":0.21234,"17.0":0.01036,"17.1":0.13465,"17.2":0.02072,"17.3":0.02072,"17.4":0.03625,"17.5":0.05179,"17.6":0.21752,"18.0":0.02072,"18.1":0.03625,"18.2":0.02072,"18.3":0.11912,"18.4":0.1243,"18.5":1.32582,"26.0":0.00518},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00457,"5.0-5.1":0,"6.0-6.1":0.00914,"7.0-7.1":0.00914,"8.1-8.4":0,"9.0-9.2":0.00457,"9.3":0.02742,"10.0-10.2":0.00228,"10.3":0.04569,"11.0-11.2":0.29244,"11.3-11.4":0.01599,"12.0-12.1":0.00457,"12.2-12.5":0.15307,"13.0-13.1":0.00228,"13.2":0.00685,"13.3":0.00457,"13.4-13.7":0.02513,"14.0-14.4":0.0594,"14.5-14.8":0.0594,"15.0-15.1":0.04112,"15.2-15.3":0.04112,"15.4":0.05026,"15.5":0.05483,"15.6-15.8":0.70825,"16.0":0.09367,"16.1":0.19191,"16.2":0.09824,"16.3":0.18049,"16.4":0.04112,"16.5":0.07311,"16.6-16.7":0.88874,"17.0":0.04798,"17.1":0.08453,"17.2":0.06626,"17.3":0.09367,"17.4":0.16678,"17.5":0.34955,"17.6-17.7":0.91387,"18.0":0.22618,"18.1":0.50948,"18.2":0.26959,"18.3":1.15833,"18.4":1.22915,"18.5":14.40943,"26.0":0},P:{"26":0.01129,"27":0.03388,"28":0.77922,_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.0385,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.13017,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03699,"10":0.0185,"11":0.33294,_:"6 7 8 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.42911},R:{_:"0"},M:{"0":0.45317},Q:{"14.9":0.10606},O:{"0":0.23623},H:{"0":0}}; +module.exports={C:{"44":0.00609,"48":0.01217,"52":0.01826,"54":0.42609,"56":0.00609,"78":0.02435,"83":0.00609,"88":0.00609,"91":0.00609,"99":0.00609,"102":0.01217,"103":0.01217,"105":0.01826,"106":0.01826,"107":0.02435,"108":0.02435,"109":0.02435,"110":0.02435,"111":0.01826,"113":0.00609,"115":0.28609,"116":0.00609,"117":0.00609,"120":0.00609,"121":0.01217,"122":0.00609,"123":0.01826,"124":0.0487,"125":1.31479,"126":1.10175,"127":0.00609,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 49 50 51 53 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 92 93 94 95 96 97 98 100 101 104 112 114 118 119 128 129 3.5 3.6"},D:{"48":0.00609,"49":0.05478,"52":0.00609,"53":0.02435,"65":0.00609,"67":0.00609,"68":0.01217,"69":0.00609,"70":0.00609,"71":0.00609,"72":0.00609,"74":0.01217,"75":0.00609,"76":0.00609,"77":0.02435,"78":0.00609,"79":0.01217,"80":0.01217,"81":0.06696,"83":0.01217,"84":0.00609,"85":0.00609,"86":0.12783,"87":0.01826,"88":0.00609,"89":0.01217,"90":0.00609,"91":0.06087,"92":0.00609,"93":0.00609,"94":0.00609,"95":0.02435,"96":0.00609,"97":0.01826,"98":0.02435,"99":0.01826,"100":0.07913,"101":0.12174,"102":0.07913,"103":0.16435,"104":0.08522,"105":0.03652,"106":0.09739,"107":0.10957,"108":0.15218,"109":1.00436,"110":0.08522,"111":0.09739,"112":0.09739,"113":0.04261,"114":0.06087,"115":0.01217,"116":0.15218,"117":0.01826,"118":0.03044,"119":0.12783,"120":0.16435,"121":0.15826,"122":0.28609,"123":1.48523,"124":19.21057,"125":6.93309,"126":0.01826,"127":0.00609,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 54 55 56 57 58 59 60 61 62 63 64 66 73 128"},F:{"49":0.00609,"75":0.00609,"91":0.00609,"92":0.00609,"93":0.00609,"94":0.00609,"95":0.01826,"101":0.00609,"107":0.01826,"108":0.00609,"109":0.25565,"110":0.02435,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 96 97 98 99 100 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00609,"18":0.00609,"92":0.01826,"100":0.00609,"101":0.00609,"103":0.00609,"105":0.00609,"106":0.01217,"107":0.02435,"108":0.02435,"109":0.31652,"110":0.01826,"111":0.01217,"112":0.01217,"113":0.01217,"114":0.02435,"115":0.00609,"116":0.00609,"117":0.01217,"118":0.01217,"119":0.01826,"120":0.04261,"121":0.03652,"122":0.10957,"123":0.21913,"124":7.66962,"125":4.48003,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 102 104"},E:{"13":0.00609,"14":0.02435,"15":0.00609,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1 17.6","9.1":0.00609,"11.1":0.00609,"12.1":0.01217,"13.1":0.0487,"14.1":0.11565,"15.1":0.00609,"15.2-15.3":0.01217,"15.4":0.03044,"15.5":0.03044,"15.6":0.21913,"16.0":0.03044,"16.1":0.0487,"16.2":0.04261,"16.3":0.09739,"16.4":0.02435,"16.5":0.03652,"16.6":0.3287,"17.0":0.02435,"17.1":0.04261,"17.2":0.06696,"17.3":0.09131,"17.4":1.31479,"17.5":0.1887},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00405,"5.0-5.1":0.00405,"6.0-6.1":0.01012,"7.0-7.1":0.01416,"8.1-8.4":0.00405,"9.0-9.2":0.01012,"9.3":0.04653,"10.0-10.2":0.00809,"10.3":0.07283,"11.0-11.2":0.10722,"11.3-11.4":0.02023,"12.0-12.1":0.01214,"12.2-12.5":0.29334,"13.0-13.1":0.00607,"13.2":0.02832,"13.3":0.01416,"13.4-13.7":0.06474,"14.0-14.4":0.11127,"14.5-14.8":0.17196,"15.0-15.1":0.08294,"15.2-15.3":0.09104,"15.4":0.10317,"15.5":0.12947,"15.6-15.8":1.16526,"16.0":0.26502,"16.1":0.54622,"16.2":0.26502,"16.3":0.45923,"16.4":0.09711,"16.5":0.19623,"16.6-16.7":1.5638,"17.0":0.16993,"17.1":0.27715,"17.2":0.28929,"17.3":0.53408,"17.4":12.12801,"17.5":0.85574,"17.6":0},P:{"20":0.01093,"21":0.01093,"22":0.01093,"23":0.02186,"24":0.07653,"25":0.90737,_:"4 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","17.0":0.01093,"19.0":0.01093},I:{"0":0.05847,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.14869,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.11334,"9":0.03778,"10":0.00945,"11":0.38726,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.85987},R:{_:"0"},M:{"0":0.37174},Q:{"14.9":0.04304},O:{"0":0.23478},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KE.js b/node_modules/caniuse-lite/data/regions/KE.js index 4f4460062..7d6ea28d7 100644 --- a/node_modules/caniuse-lite/data/regions/KE.js +++ b/node_modules/caniuse-lite/data/regions/KE.js @@ -1 +1 @@ -module.exports={C:{"7":0.00337,"47":0.00337,"52":0.00337,"78":0.00337,"79":0.00337,"89":0.00337,"112":0.00337,"115":0.09428,"123":0.00337,"126":0.00337,"127":0.00673,"128":0.03367,"129":0.00337,"130":0.00337,"131":0.00337,"132":0.00673,"133":0.00337,"134":0.01347,"135":0.00673,"136":0.0101,"137":0.01347,"138":0.05051,"139":0.90236,"140":0.12795,"141":0.0101,_:"2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 125 142 143 3.5 3.6"},D:{"11":0.00337,"38":0.00337,"39":0.00673,"40":0.00673,"41":0.00673,"42":0.00673,"43":0.0101,"44":0.00673,"45":0.00673,"46":0.00673,"47":0.00673,"48":0.00673,"49":0.01347,"50":0.0101,"51":0.01684,"52":0.00673,"53":0.00673,"54":0.00673,"55":0.00673,"56":0.01684,"57":0.00673,"58":0.00673,"59":0.00673,"60":0.00673,"64":0.00337,"65":0.00337,"66":0.00337,"69":0.00337,"70":0.00337,"72":0.00337,"73":0.02357,"74":0.00337,"75":0.00337,"76":0.00337,"78":0.00337,"79":0.01684,"80":0.00337,"81":0.00337,"83":0.04714,"86":0.00337,"87":0.0303,"88":0.00673,"91":0.01684,"93":0.01347,"94":0.00337,"95":0.0101,"98":0.0202,"99":0.00337,"100":0.00673,"101":0.00337,"102":0.00337,"103":0.06397,"104":0.0404,"105":0.00337,"106":0.0101,"107":0.0101,"108":0.01347,"109":0.6229,"110":0.0101,"111":0.0303,"112":0.0101,"113":0.03367,"114":0.01684,"115":0.02357,"116":0.04377,"118":0.0101,"119":0.02357,"120":0.01347,"121":0.01347,"122":0.03367,"123":0.00673,"124":0.02694,"125":3.61616,"126":0.05724,"127":0.0101,"128":0.05387,"129":0.01684,"130":0.02694,"131":0.07071,"132":0.07071,"133":0.05724,"134":0.10101,"135":0.17508,"136":2.13468,"137":12.08416,"138":0.46801,"139":0.00673,_:"4 5 6 7 8 9 10 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 61 62 63 67 68 71 77 84 85 89 90 92 96 97 117 140 141"},F:{"37":0.00337,"46":0.01347,"84":0.00673,"86":0.00337,"87":0.00337,"88":0.0101,"89":0.11111,"90":0.04714,"95":0.0101,"117":0.00673,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00337,"13":0.00337,"14":0.00337,"15":0.00337,"16":0.00337,"18":0.0101,"89":0.00337,"90":0.00337,"92":0.02694,"100":0.00337,"109":0.01684,"111":0.00337,"114":0.01684,"122":0.00673,"124":0.00337,"125":0.00337,"126":0.00337,"127":0.00337,"128":0.00673,"129":0.00337,"130":0.00673,"131":0.01347,"132":0.01347,"133":0.01347,"134":0.02357,"135":0.02694,"136":0.30976,"137":1.85522,"138":0.14815,_:"17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 112 113 115 116 117 118 119 120 121 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 16.2 16.4 17.2 26.0","5.1":0.00337,"12.1":0.00337,"13.1":0.00673,"14.1":0.00673,"15.5":0.00337,"15.6":0.03704,"16.0":0.00337,"16.1":0.00337,"16.3":0.00337,"16.5":0.00337,"16.6":0.03704,"17.0":0.00337,"17.1":0.00673,"17.3":0.00337,"17.4":0.00673,"17.5":0.01347,"17.6":0.08754,"18.0":0.01684,"18.1":0.00673,"18.2":0.0101,"18.3":0.0404,"18.4":0.02357,"18.5":0.23569},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00045,"5.0-5.1":0,"6.0-6.1":0.00091,"7.0-7.1":0.00091,"8.1-8.4":0,"9.0-9.2":0.00045,"9.3":0.00273,"10.0-10.2":0.00023,"10.3":0.00455,"11.0-11.2":0.02912,"11.3-11.4":0.00159,"12.0-12.1":0.00045,"12.2-12.5":0.01524,"13.0-13.1":0.00023,"13.2":0.00068,"13.3":0.00045,"13.4-13.7":0.0025,"14.0-14.4":0.00591,"14.5-14.8":0.00591,"15.0-15.1":0.00409,"15.2-15.3":0.00409,"15.4":0.005,"15.5":0.00546,"15.6-15.8":0.07052,"16.0":0.00933,"16.1":0.01911,"16.2":0.00978,"16.3":0.01797,"16.4":0.00409,"16.5":0.00728,"16.6-16.7":0.08849,"17.0":0.00478,"17.1":0.00842,"17.2":0.0066,"17.3":0.00933,"17.4":0.01661,"17.5":0.0348,"17.6-17.7":0.09099,"18.0":0.02252,"18.1":0.05073,"18.2":0.02684,"18.3":0.11533,"18.4":0.12238,"18.5":1.4347,"26.0":0},P:{"4":0.03156,"22":0.02104,"23":0.01052,"24":0.11572,"25":0.08416,"26":0.03156,"27":0.08416,"28":0.7469,_:"20 21 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.06312,"9.2":0.01052,"17.0":0.01052,"19.0":0.01052},I:{"0":0.09931,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":9.38906,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00786,"11":0.01571,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":57.34004},R:{_:"0"},M:{"0":0.17906},Q:{_:"14.9"},O:{"0":0.13927},H:{"0":2.27}}; +module.exports={C:{"34":0.00262,"47":0.00524,"52":0.98774,"66":0.00262,"68":0.00262,"72":0.00262,"78":0.00786,"81":0.00262,"88":0.00262,"102":0.00262,"103":0.00262,"105":0.00262,"109":0.00262,"112":0.00262,"113":0.00262,"114":0.00262,"115":0.25414,"116":0.00262,"118":0.00262,"119":0.00262,"120":0.00262,"121":0.01048,"122":0.0131,"123":0.03144,"124":0.03668,"125":0.60784,"126":0.56592,"127":0.02358,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 73 74 75 76 77 79 80 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 106 107 108 110 111 117 128 129 3.5 3.6"},D:{"11":0.00262,"38":0.00262,"41":0.00524,"43":0.00262,"49":0.00786,"50":0.00262,"51":0.00524,"53":0.00262,"54":0.00262,"56":0.01048,"58":0.00524,"62":0.00262,"64":0.00262,"65":0.00262,"66":0.01048,"68":0.00524,"69":0.00786,"70":0.00524,"71":0.00262,"72":0.00524,"73":0.02096,"74":0.00524,"75":0.00262,"76":0.00524,"77":0.00524,"78":0.00262,"79":0.01834,"80":0.00262,"81":0.00524,"83":0.08122,"84":0.00262,"85":0.00262,"86":0.00262,"87":0.06026,"88":0.0262,"89":0.00262,"90":0.00262,"91":0.00786,"92":0.00524,"93":0.28034,"94":0.00262,"95":0.0131,"96":0.00262,"97":0.00786,"98":0.0131,"99":0.00786,"100":0.00524,"101":0.00524,"102":0.01048,"103":0.06026,"104":0.00524,"105":0.00524,"106":0.00786,"107":0.0131,"108":0.01572,"109":1.1659,"110":0.00786,"111":0.01572,"112":0.00786,"113":0.00524,"114":0.03144,"115":0.02358,"116":0.07074,"117":0.01834,"118":0.0131,"119":0.07074,"120":0.0655,"121":0.08646,"122":0.14934,"123":0.48208,"124":10.21276,"125":3.82782,"126":0.01572,_:"4 5 6 7 8 9 10 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 39 40 42 44 45 46 47 48 52 55 57 59 60 61 63 67 127 128"},F:{"28":0.01048,"36":0.00262,"46":0.00524,"79":0.00524,"81":0.00524,"82":0.0131,"83":0.00262,"85":0.00262,"95":0.01572,"102":0.00524,"106":0.00262,"107":0.03144,"108":0.0131,"109":0.46898,"110":0.0393,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01048,"13":0.00524,"14":0.00262,"15":0.00262,"16":0.00524,"17":0.00524,"18":0.02882,"84":0.00262,"89":0.00786,"90":0.00524,"92":0.0393,"100":0.00524,"103":0.00262,"106":0.00262,"107":0.00262,"108":0.00524,"109":0.01834,"111":0.00262,"112":0.00262,"114":0.00524,"115":0.00262,"116":0.00262,"117":0.00524,"118":0.00524,"119":0.00524,"120":0.0131,"121":0.0131,"122":0.0393,"123":0.04454,"124":1.38598,"125":0.70478,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 110 113"},E:{"13":0.00262,"14":0.00524,"15":0.00524,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.6","5.1":0.00262,"12.1":0.00262,"13.1":0.01834,"14.1":0.01572,"15.1":0.00262,"15.4":0.00262,"15.5":0.00262,"15.6":0.04978,"16.0":0.00262,"16.1":0.01834,"16.2":0.00524,"16.3":0.00786,"16.4":0.00524,"16.5":0.01048,"16.6":0.12052,"17.0":0.00786,"17.1":0.01572,"17.2":0.01834,"17.3":0.02358,"17.4":0.1441,"17.5":0.03406},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00039,"5.0-5.1":0.00039,"6.0-6.1":0.00096,"7.0-7.1":0.00135,"8.1-8.4":0.00039,"9.0-9.2":0.00096,"9.3":0.00443,"10.0-10.2":0.00077,"10.3":0.00693,"11.0-11.2":0.01021,"11.3-11.4":0.00193,"12.0-12.1":0.00116,"12.2-12.5":0.02793,"13.0-13.1":0.00058,"13.2":0.0027,"13.3":0.00135,"13.4-13.7":0.00616,"14.0-14.4":0.01059,"14.5-14.8":0.01637,"15.0-15.1":0.0079,"15.2-15.3":0.00867,"15.4":0.00982,"15.5":0.01233,"15.6-15.8":0.11095,"16.0":0.02523,"16.1":0.05201,"16.2":0.02523,"16.3":0.04372,"16.4":0.00925,"16.5":0.01868,"16.6-16.7":0.14889,"17.0":0.01618,"17.1":0.02639,"17.2":0.02754,"17.3":0.05085,"17.4":1.15474,"17.5":0.08148,"17.6":0},P:{"4":0.10443,"20":0.01044,"21":0.03133,"22":0.05222,"23":0.08355,"24":0.12532,"25":0.54306,"5.0-5.4":0.01044,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.0731,"13.0":0.01044,"17.0":0.02089,"19.0":0.04177},I:{"0":0.05146,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":16.48594,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00299,"10":0.00599,"11":0.03294,_:"6 7 9 5.5"},S:{"2.5":0.00738,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.86934},R:{_:"0"},M:{"0":0.1845},Q:{"14.9":0.00738},O:{"0":0.1845},H:{"0":9.44}}; diff --git a/node_modules/caniuse-lite/data/regions/KG.js b/node_modules/caniuse-lite/data/regions/KG.js index 052cad6b7..b0a8962f8 100644 --- a/node_modules/caniuse-lite/data/regions/KG.js +++ b/node_modules/caniuse-lite/data/regions/KG.js @@ -1 +1 @@ -module.exports={C:{"52":0.0543,"90":0.09843,"113":0.00679,"115":0.2274,"121":0.01018,"125":0.00339,"127":0.00339,"128":0.01697,"134":0.01358,"135":0.00339,"136":0.01018,"137":0.01018,"138":0.04073,"139":0.73989,"140":0.09843,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 122 123 124 126 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"39":0.02376,"40":0.02376,"41":0.02376,"42":0.02376,"43":0.03055,"44":0.02376,"45":0.02715,"46":0.03055,"47":0.02715,"48":0.02715,"49":0.02715,"50":0.02715,"51":0.03055,"52":0.02376,"53":0.02376,"54":0.02376,"55":0.02715,"56":0.03055,"57":0.03055,"58":0.03055,"59":0.02715,"60":0.03394,"76":0.00339,"77":0.00339,"79":0.00339,"83":0.00339,"84":0.00339,"87":0.02036,"90":0.00679,"94":0.00339,"99":0.00339,"101":0.01018,"102":0.00339,"103":0.01018,"105":0.00679,"106":0.01358,"107":0.00339,"108":0.00339,"109":1.56463,"110":0.00339,"112":0.00679,"113":0.00339,"114":0.00339,"116":0.01697,"117":0.00339,"118":0.01018,"119":0.01358,"120":0.01018,"121":0.02376,"122":0.10861,"123":0.00679,"124":0.02715,"125":6.69976,"126":0.06449,"127":0.01697,"128":0.03394,"129":0.02036,"130":0.01358,"131":0.0543,"132":0.04412,"133":0.09164,"134":0.0543,"135":0.21382,"136":1.74452,"137":11.60409,"138":0.3937,"139":0.00339,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 78 80 81 85 86 88 89 91 92 93 95 96 97 98 100 104 111 115 140 141"},F:{"79":0.01697,"85":0.00339,"86":0.01697,"89":0.01358,"90":0.01358,"95":0.14594,"117":0.00679,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00679,"92":0.00339,"109":0.00339,"110":0.00339,"114":0.00339,"120":0.02036,"122":0.00339,"124":0.00339,"128":0.00339,"131":0.00679,"132":0.00339,"133":0.00339,"134":0.00339,"135":0.01358,"136":0.18328,"137":0.9062,"138":0.06788,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 119 121 123 125 126 127 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 16.0 26.0","5.1":0.02036,"14.1":0.00339,"15.1":0.01018,"15.5":0.00339,"15.6":0.02376,"16.1":0.00679,"16.2":0.01018,"16.3":0.00339,"16.4":0.00339,"16.5":0.01358,"16.6":0.02376,"17.0":0.03733,"17.1":0.03394,"17.2":0.00339,"17.3":0.00339,"17.4":0.01358,"17.5":0.06449,"17.6":0.04752,"18.0":0.00679,"18.1":0.0577,"18.2":0.01697,"18.3":0.0577,"18.4":0.06449,"18.5":0.27491},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0017,"5.0-5.1":0,"6.0-6.1":0.00341,"7.0-7.1":0.00341,"8.1-8.4":0,"9.0-9.2":0.0017,"9.3":0.01022,"10.0-10.2":0.00085,"10.3":0.01703,"11.0-11.2":0.10899,"11.3-11.4":0.00596,"12.0-12.1":0.0017,"12.2-12.5":0.05705,"13.0-13.1":0.00085,"13.2":0.00255,"13.3":0.0017,"13.4-13.7":0.00937,"14.0-14.4":0.02214,"14.5-14.8":0.02214,"15.0-15.1":0.01533,"15.2-15.3":0.01533,"15.4":0.01873,"15.5":0.02044,"15.6-15.8":0.26397,"16.0":0.03491,"16.1":0.07153,"16.2":0.03662,"16.3":0.06727,"16.4":0.01533,"16.5":0.02725,"16.6-16.7":0.33124,"17.0":0.01788,"17.1":0.03151,"17.2":0.02469,"17.3":0.03491,"17.4":0.06216,"17.5":0.13028,"17.6-17.7":0.34061,"18.0":0.0843,"18.1":0.18989,"18.2":0.10048,"18.3":0.43172,"18.4":0.45811,"18.5":5.3705,"26.0":0},P:{"4":0.01039,"20":0.01039,"21":0.01039,"22":0.03117,"23":0.04155,"24":0.02078,"25":0.04155,"26":0.02078,"27":0.10388,"28":0.95574,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01039,"7.2-7.4":0.02078,"13.0":0.01039},I:{"0":0.00659,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.53509,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01358,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":55.43458},R:{_:"0"},M:{"0":0.08588},Q:{"14.9":0.02642},O:{"0":0.53509},H:{"0":0}}; +module.exports={C:{"52":0.02038,"59":0.00291,"90":0.03494,"94":0.00874,"104":0.00291,"112":0.00291,"113":0.00291,"115":0.23296,"118":0.00582,"119":0.01456,"121":0.01747,"122":0.00291,"123":0.00582,"124":0.00582,"125":0.41933,"126":0.23005,"127":0.00291,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 114 116 117 120 128 129 3.5 3.6"},D:{"49":0.01747,"52":0.36109,"60":0.00291,"66":0.00291,"67":0.00291,"68":0.00874,"73":0.00291,"78":0.00291,"79":0.0233,"83":0.00874,"84":0.00291,"85":0.00291,"86":0.00291,"87":0.02621,"88":0.00291,"89":0.00582,"90":0.0233,"92":0.00291,"95":0.00291,"96":0.00291,"97":0.00291,"98":0.00291,"99":0.00291,"100":0.00874,"101":0.02621,"102":0.01456,"103":0.02038,"105":0.00582,"106":0.03494,"107":0.00291,"108":0.0233,"109":3.14496,"111":0.00874,"112":0.01456,"113":0.00582,"114":0.01165,"115":0.01456,"116":0.02038,"117":0.01165,"118":0.01747,"119":0.03203,"120":0.44262,"121":0.06698,"122":0.11648,"123":0.37856,"124":10.52397,"125":4.12922,"126":0.00291,"127":0.02038,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 61 62 63 64 65 69 70 71 72 74 75 76 77 80 81 91 93 94 104 110 128"},F:{"42":0.02621,"74":0.00291,"79":0.00874,"84":0.00291,"85":0.02621,"86":0.00874,"90":0.00291,"95":0.19802,"102":0.00291,"105":0.00582,"107":0.23296,"108":0.01747,"109":1.2609,"110":0.17181,_:"9 11 12 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 80 81 82 83 87 88 89 91 92 93 94 96 97 98 99 100 101 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00291,"18":0.00582,"87":0.00291,"92":0.00874,"100":0.00874,"107":0.00291,"109":0.01456,"110":0.01165,"114":0.01456,"116":0.00291,"120":0.00582,"121":0.00291,"122":0.00874,"123":0.0495,"124":1.35117,"125":0.42224,_:"12 13 15 16 17 79 80 81 83 84 85 86 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 112 113 115 117 118 119"},E:{"14":0.00291,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 17.6","5.1":0.14269,"11.1":0.00291,"13.1":0.00582,"14.1":0.01165,"15.4":0.00291,"15.5":0.00291,"15.6":0.14851,"16.0":0.04077,"16.1":0.07571,"16.2":0.00582,"16.3":0.0233,"16.4":0.00582,"16.5":0.01747,"16.6":0.06115,"17.0":0.01747,"17.1":0.05533,"17.2":0.03494,"17.3":0.03203,"17.4":0.26499,"17.5":0.04659},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0022,"5.0-5.1":0.0022,"6.0-6.1":0.0055,"7.0-7.1":0.0077,"8.1-8.4":0.0022,"9.0-9.2":0.0055,"9.3":0.02529,"10.0-10.2":0.0044,"10.3":0.03958,"11.0-11.2":0.05827,"11.3-11.4":0.01099,"12.0-12.1":0.0066,"12.2-12.5":0.15941,"13.0-13.1":0.0033,"13.2":0.01539,"13.3":0.0077,"13.4-13.7":0.03518,"14.0-14.4":0.06046,"14.5-14.8":0.09344,"15.0-15.1":0.04507,"15.2-15.3":0.04947,"15.4":0.05607,"15.5":0.07036,"15.6-15.8":0.63322,"16.0":0.14401,"16.1":0.29682,"16.2":0.14401,"16.3":0.24955,"16.4":0.05277,"16.5":0.10664,"16.6-16.7":0.8498,"17.0":0.09235,"17.1":0.15061,"17.2":0.15721,"17.3":0.29023,"17.4":6.5906,"17.5":0.46502,"17.6":0},P:{"4":0.14831,"20":0.02119,"21":0.05297,"22":0.08475,"23":0.15891,"24":0.27544,"25":0.96404,"5.0-5.4":0.02119,"6.2-6.4":0.01059,"7.2-7.4":0.11653,_:"8.2 9.2 10.1 14.0 15.0","11.1-11.2":0.01059,"12.0":0.01059,"13.0":0.01059,"16.0":0.02119,"17.0":0.01059,"18.0":0.02119,"19.0":0.03178},I:{"0":0.00706,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.70171,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.08445,_:"6 7 8 9 10 5.5"},S:{"2.5":0.02126,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.31229},R:{_:"0"},M:{"0":0.10632},Q:{"14.9":0.02126},O:{"0":0.42528},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KH.js b/node_modules/caniuse-lite/data/regions/KH.js index 804ae27f5..86cf5a0fc 100644 --- a/node_modules/caniuse-lite/data/regions/KH.js +++ b/node_modules/caniuse-lite/data/regions/KH.js @@ -1 +1 @@ -module.exports={C:{"52":0.00454,"65":0.00454,"75":0.00908,"78":0.03177,"105":0.00454,"106":0.00908,"107":0.00454,"108":0.00908,"110":0.00908,"111":0.00908,"115":0.09078,"123":0.00454,"127":0.00454,"128":0.01362,"132":0.00454,"133":0.00454,"135":0.00908,"137":0.00908,"138":0.03631,"139":0.95319,"140":0.10894,"141":0.00454,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 109 112 113 114 116 117 118 119 120 121 122 124 125 126 129 130 131 134 136 142 143 3.5 3.6"},D:{"31":0.00908,"39":0.00908,"40":0.00908,"41":0.01362,"42":0.01362,"43":0.01362,"44":0.01362,"45":0.00908,"46":0.01362,"47":0.01362,"48":0.00908,"49":0.00908,"50":0.00908,"51":0.00908,"52":0.00908,"53":0.00908,"54":0.00908,"55":0.00908,"56":0.01816,"57":0.00908,"58":0.00908,"59":0.00908,"60":0.00908,"69":0.01362,"70":0.00454,"74":0.00454,"76":0.00454,"79":0.01362,"80":0.00454,"81":0.00908,"85":0.01816,"86":0.01816,"87":0.0227,"88":0.00454,"89":0.00454,"91":0.01362,"94":0.0227,"95":0.00454,"96":0.00908,"97":0.00908,"98":0.00454,"99":0.00454,"100":0.01362,"101":0.00908,"103":0.01816,"104":0.07716,"105":0.03177,"106":0.04993,"107":0.06355,"108":0.08624,"109":0.34496,"110":0.05901,"111":0.06809,"112":0.04085,"113":0.02723,"114":0.04539,"115":0.00454,"116":0.02723,"117":0.00454,"118":0.01816,"119":0.01362,"120":0.06809,"121":0.00908,"122":0.12709,"123":0.02723,"124":0.04993,"125":0.42667,"126":0.04539,"127":0.15433,"128":0.09532,"129":0.13163,"130":0.08624,"131":1.21191,"132":0.17702,"133":0.12255,"134":0.12255,"135":0.32681,"136":3.50865,"137":24.10209,"138":1.2573,"139":0.04085,"140":0.00454,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 75 77 78 83 84 90 92 93 102 141"},F:{"79":0.00454,"82":0.01362,"89":0.01362,"90":0.01362,"91":0.00454,"92":0.00454,"94":0.00454,"95":0.00454,"117":0.00454,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00454,"89":0.00454,"90":0.00454,"92":0.03631,"98":0.01362,"103":0.00454,"106":0.00908,"107":0.01816,"108":0.01362,"109":0.01362,"110":0.01816,"111":0.00908,"112":0.00454,"114":0.00454,"116":0.04993,"117":0.04085,"118":0.00908,"120":0.00454,"122":0.00454,"124":0.00454,"127":0.00454,"128":0.00454,"129":0.00908,"130":0.00454,"131":0.0227,"132":0.00454,"133":0.00908,"134":0.01816,"135":0.04539,"136":0.40851,"137":2.13787,"138":0.18156,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 99 100 101 102 104 105 113 115 119 121 123 125 126"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 17.0","13.1":0.00908,"14.1":0.01362,"15.2-15.3":0.00454,"15.5":0.00908,"15.6":0.07716,"16.0":0.03177,"16.1":0.00454,"16.2":0.00454,"16.3":0.00908,"16.4":0.02723,"16.5":0.00908,"16.6":0.0817,"17.1":0.04085,"17.2":0.00454,"17.3":0.00454,"17.4":0.02723,"17.5":0.03177,"17.6":0.06355,"18.0":0.00908,"18.1":0.02723,"18.2":0.01362,"18.3":0.07716,"18.4":0.09532,"18.5":0.63092,"26.0":0.00908},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00349,"5.0-5.1":0,"6.0-6.1":0.00698,"7.0-7.1":0.00698,"8.1-8.4":0,"9.0-9.2":0.00349,"9.3":0.02093,"10.0-10.2":0.00174,"10.3":0.03488,"11.0-11.2":0.22326,"11.3-11.4":0.01221,"12.0-12.1":0.00349,"12.2-12.5":0.11686,"13.0-13.1":0.00174,"13.2":0.00523,"13.3":0.00349,"13.4-13.7":0.01919,"14.0-14.4":0.04535,"14.5-14.8":0.04535,"15.0-15.1":0.0314,"15.2-15.3":0.0314,"15.4":0.03837,"15.5":0.04186,"15.6-15.8":0.54072,"16.0":0.07151,"16.1":0.14652,"16.2":0.075,"16.3":0.1378,"16.4":0.0314,"16.5":0.05582,"16.6-16.7":0.67851,"17.0":0.03663,"17.1":0.06454,"17.2":0.05058,"17.3":0.07151,"17.4":0.12733,"17.5":0.26687,"17.6-17.7":0.6977,"18.0":0.17268,"18.1":0.38897,"18.2":0.20582,"18.3":0.88433,"18.4":0.9384,"18.5":11.00094,"26.0":0},P:{"23":0.01067,"24":0.01067,"25":0.02134,"26":0.02134,"27":0.06403,"28":0.80032,_:"4 20 21 22 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.03271,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.39319,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00598,"8":0.01196,"11":1.09412,_:"7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.52096},R:{_:"0"},M:{"0":0.1966},Q:{"14.9":0.0983},O:{"0":0.93929},H:{"0":0}}; +module.exports={C:{"3":0.00321,"4":0.00642,"44":0.00321,"50":0.00964,"51":0.01927,"52":0.02891,"67":0.00321,"68":0.00321,"72":0.00642,"75":0.01927,"78":0.05139,"82":0.00321,"91":0.00642,"95":0.00321,"102":0.00642,"103":0.02248,"105":0.00964,"106":0.01285,"107":0.00642,"108":0.01285,"109":0.00964,"110":0.00642,"111":0.00642,"112":0.00321,"113":0.00321,"115":0.12206,"116":0.00321,"117":0.00321,"119":0.00321,"121":0.00321,"122":0.02248,"123":0.00642,"124":0.0257,"125":0.65846,"126":0.48501,"127":0.01606,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 53 54 55 56 57 58 59 60 61 62 63 64 65 66 69 70 71 73 74 76 77 79 80 81 83 84 85 86 87 88 89 90 92 93 94 96 97 98 99 100 101 104 114 118 120 128 129 3.5 3.6"},D:{"29":0.00642,"38":0.01606,"39":0.00321,"41":0.00321,"42":0.00321,"43":0.00321,"44":0.00642,"45":0.00321,"46":0.00321,"47":0.00321,"51":0.00321,"56":0.10278,"57":0.00964,"58":0.00964,"64":0.00321,"68":0.00321,"70":0.01927,"71":0.00321,"72":0.00964,"74":0.00321,"75":0.00321,"76":0.00321,"77":0.00321,"79":0.05139,"80":0.00964,"81":0.02248,"83":0.00642,"84":0.00321,"85":0.05139,"86":0.01285,"87":0.11884,"88":0.00321,"90":0.00321,"91":0.00321,"92":0.00321,"93":0.01927,"94":0.00964,"95":0.00642,"96":0.00321,"97":0.00642,"98":0.01927,"99":0.02248,"100":0.00642,"101":0.00964,"102":0.01285,"103":0.04176,"104":0.0546,"105":0.03212,"106":0.05139,"107":0.06745,"108":0.05782,"109":0.70343,"110":0.03533,"111":0.04176,"112":0.03854,"113":0.01285,"114":0.01927,"115":0.00642,"116":0.07066,"117":0.01606,"118":0.01285,"119":0.07066,"120":0.07709,"121":0.11884,"122":0.22484,"123":0.54604,"124":14.27734,"125":5.69166,"126":0.01606,"127":0.00964,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 40 48 49 50 52 53 54 55 59 60 61 62 63 65 66 67 69 73 78 89 128"},F:{"28":0.00321,"30":0.00321,"44":0.00642,"65":0.00321,"84":0.00642,"90":0.00642,"93":0.00321,"94":0.00642,"95":0.01927,"97":0.00321,"107":0.14775,"108":0.03854,"109":0.68094,"110":0.0546,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 91 92 96 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00321,"14":0.00964,"17":0.00321,"18":0.01606,"89":0.00321,"92":0.03212,"100":0.00321,"103":0.00321,"105":0.00964,"106":0.00321,"107":0.00642,"108":0.00642,"109":0.00964,"110":0.00642,"111":0.00964,"112":0.00321,"113":0.00642,"114":0.00321,"116":0.00321,"117":0.01606,"118":0.00321,"119":0.00642,"120":0.01285,"121":0.00642,"122":0.01606,"123":0.04497,"124":1.16596,"125":0.70343,_:"13 15 16 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 104 115"},E:{"4":0.00321,"9":0.00964,"10":0.01606,"14":0.00964,"15":0.00642,_:"0 5 6 7 8 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00642,"13.1":0.01927,"14.1":0.04497,"15.1":0.00642,"15.2-15.3":0.01285,"15.4":0.00964,"15.5":0.01927,"15.6":0.09636,"16.0":0.01606,"16.1":0.03212,"16.2":0.02248,"16.3":0.08351,"16.4":0.00964,"16.5":0.01927,"16.6":0.16702,"17.0":0.01927,"17.1":0.03533,"17.2":0.03212,"17.3":0.06745,"17.4":0.61349,"17.5":0.0803},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0047,"5.0-5.1":0.0047,"6.0-6.1":0.01175,"7.0-7.1":0.01645,"8.1-8.4":0.0047,"9.0-9.2":0.01175,"9.3":0.05405,"10.0-10.2":0.0094,"10.3":0.0846,"11.0-11.2":0.12455,"11.3-11.4":0.0235,"12.0-12.1":0.0141,"12.2-12.5":0.34075,"13.0-13.1":0.00705,"13.2":0.0329,"13.3":0.01645,"13.4-13.7":0.0752,"14.0-14.4":0.12925,"14.5-14.8":0.19975,"15.0-15.1":0.09635,"15.2-15.3":0.10575,"15.4":0.11985,"15.5":0.1504,"15.6-15.8":1.3536,"16.0":0.30785,"16.1":0.6345,"16.2":0.30785,"16.3":0.53345,"16.4":0.1128,"16.5":0.22795,"16.6-16.7":1.81655,"17.0":0.1974,"17.1":0.32195,"17.2":0.33605,"17.3":0.6204,"17.4":14.08828,"17.5":0.99405,"17.6":0},P:{"4":0.04139,"20":0.01035,"21":0.0207,"22":0.06209,"23":0.07244,"24":0.19661,"25":0.98307,"5.0-5.4":0.01035,"6.2-6.4":0.01035,"7.2-7.4":0.01035,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 18.0","14.0":0.01035,"16.0":0.01035,"17.0":0.01035,"19.0":0.0207},I:{"0":0.07438,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.53625,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00353,"8":0.10244,"9":0.02119,"10":0.01766,"11":1.23633,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.62122},R:{_:"0"},M:{"0":0.17649},Q:{"14.9":0.0543},O:{"0":1.2422},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KI.js b/node_modules/caniuse-lite/data/regions/KI.js index 261674ed2..51c66b03e 100644 --- a/node_modules/caniuse-lite/data/regions/KI.js +++ b/node_modules/caniuse-lite/data/regions/KI.js @@ -1 +1 @@ -module.exports={C:{"128":0.01106,"131":0.01106,"139":0.37229,"140":0.15113,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133 134 135 136 137 138 141 142 143 3.5 3.6"},D:{"39":0.01106,"40":0.01106,"52":0.01106,"54":0.01106,"58":0.05898,"71":0.03686,"76":0.02212,"93":0.01106,"103":0.16218,"109":0.19904,"114":0.02212,"115":0.02212,"122":0.01106,"123":0.01106,"125":0.35017,"133":0.05898,"134":0.07003,"135":0.2101,"136":1.93884,"137":7.84012,"138":0.17693,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 116 117 118 119 120 121 124 126 127 128 129 130 131 132 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01106,"92":0.01106,"117":0.01106,"121":0.05898,"127":0.03686,"129":0.03686,"130":0.01106,"131":0.05898,"134":0.08109,"135":0.24696,"136":2.21897,"137":7.85487,"138":0.67822,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 120 122 123 124 125 126 128 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 18.4 26.0","14.1":0.02212,"15.6":0.35017,"17.1":0.12901,"17.6":0.02212,"18.5":0.10689},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00063,"5.0-5.1":0,"6.0-6.1":0.00126,"7.0-7.1":0.00126,"8.1-8.4":0,"9.0-9.2":0.00063,"9.3":0.00379,"10.0-10.2":0.00032,"10.3":0.00631,"11.0-11.2":0.04041,"11.3-11.4":0.00221,"12.0-12.1":0.00063,"12.2-12.5":0.02115,"13.0-13.1":0.00032,"13.2":0.00095,"13.3":0.00063,"13.4-13.7":0.00347,"14.0-14.4":0.00821,"14.5-14.8":0.00821,"15.0-15.1":0.00568,"15.2-15.3":0.00568,"15.4":0.00695,"15.5":0.00758,"15.6-15.8":0.09787,"16.0":0.01294,"16.1":0.02652,"16.2":0.01358,"16.3":0.02494,"16.4":0.00568,"16.5":0.0101,"16.6-16.7":0.12281,"17.0":0.00663,"17.1":0.01168,"17.2":0.00916,"17.3":0.01294,"17.4":0.02305,"17.5":0.0483,"17.6-17.7":0.12628,"18.0":0.03125,"18.1":0.0704,"18.2":0.03725,"18.3":0.16006,"18.4":0.16985,"18.5":1.99112,"26.0":0},P:{"4":0.15374,"21":0.0473,"22":0.16557,"23":0.01183,"24":0.01183,"25":0.35479,"26":0.13009,"27":0.23652,"28":1.69115,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.17739},I:{"0":0.02521,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.15154,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.10434},R:{_:"0"},M:{_:"0"},Q:{"14.9":0.09471},O:{"0":0.01263},H:{"0":0}}; +module.exports={C:{"115":0.05334,"124":0.01667,"125":0.21338,"126":0.19671,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"38":0.03667,"75":0.01667,"99":0.44676,"102":0.3234,"108":0.01667,"109":0.10669,"119":0.05334,"122":0.07001,"123":0.10669,"124":11.11889,"125":5.42442,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 103 104 105 106 107 110 111 112 113 114 115 116 117 118 120 121 126 127 128"},F:{"107":0.05334,"109":4.40421,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"118":0.03667,"119":0.35674,"120":0.05334,"121":0.01667,"122":0.19671,"123":0.09002,"124":3.95746,"125":1.57698,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 17.0 17.1 17.3 17.5 17.6","16.5":0.05334,"16.6":0.03667,"17.2":0.01667,"17.4":0.09002},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00043,"5.0-5.1":0.00043,"6.0-6.1":0.00107,"7.0-7.1":0.0015,"8.1-8.4":0.00043,"9.0-9.2":0.00107,"9.3":0.00492,"10.0-10.2":0.00086,"10.3":0.0077,"11.0-11.2":0.01134,"11.3-11.4":0.00214,"12.0-12.1":0.00128,"12.2-12.5":0.03103,"13.0-13.1":0.00064,"13.2":0.003,"13.3":0.0015,"13.4-13.7":0.00685,"14.0-14.4":0.01177,"14.5-14.8":0.01819,"15.0-15.1":0.00877,"15.2-15.3":0.00963,"15.4":0.01091,"15.5":0.01369,"15.6-15.8":0.12325,"16.0":0.02803,"16.1":0.05777,"16.2":0.02803,"16.3":0.04857,"16.4":0.01027,"16.5":0.02076,"16.6-16.7":0.16541,"17.0":0.01797,"17.1":0.02932,"17.2":0.0306,"17.3":0.05649,"17.4":1.2828,"17.5":0.09051,"17.6":0},P:{"4":0.03991,"21":0.26938,"23":0.01995,"24":0.10975,"25":0.37913,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.19954,"11.1-11.2":0.01995,"13.0":0.03991,"17.0":0.1297,"19.0":0.31927},I:{"0":0.10624,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00023},K:{"0":0.25331,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.09461},R:{_:"0"},M:{"0":0.02},Q:{"14.9":0.2933},O:{"0":0.21998},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KM.js b/node_modules/caniuse-lite/data/regions/KM.js index 48fd1b8b3..f90523c37 100644 --- a/node_modules/caniuse-lite/data/regions/KM.js +++ b/node_modules/caniuse-lite/data/regions/KM.js @@ -1 +1 @@ -module.exports={C:{"106":0.00396,"114":0.00792,"115":0.12864,"127":0.01385,"128":0.02177,"129":0.01781,"131":0.01385,"133":0.01385,"134":0.00396,"136":0.02573,"138":0.02573,"139":0.52246,"140":0.05739,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 125 126 130 132 135 137 141 142 143 3.5 3.6"},D:{"44":0.01781,"61":0.00792,"75":0.04948,"76":0.00792,"78":0.03958,"83":0.03958,"89":0.00396,"90":0.01781,"94":0.02177,"97":0.00792,"102":0.00396,"103":0.00396,"108":0.02573,"109":0.8668,"111":0.01385,"116":0.0752,"123":0.00792,"124":0.03958,"125":0.32258,"126":0.04948,"127":0.04948,"128":0.02573,"129":0.00396,"131":0.11874,"132":0.08906,"133":0.13259,"134":0.1603,"135":0.32258,"136":1.19532,"137":5.99835,"138":0.19988,"139":0.00396,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 77 79 80 81 84 85 86 87 88 91 92 93 95 96 98 99 100 101 104 105 106 107 110 112 113 114 115 117 118 119 120 121 122 130 140 141"},F:{"84":0.2355,"89":0.00396,"95":0.00792,"112":0.01781,"117":0.01385,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.01781,"15":0.01385,"17":0.01781,"18":0.00792,"84":0.00396,"85":0.0752,"89":0.03166,"90":0.03166,"92":0.1504,"100":0.00396,"103":0.01781,"109":0.00396,"116":0.00396,"121":0.00792,"123":0.02573,"127":0.00396,"128":0.04948,"131":0.01781,"133":0.00792,"134":0.00792,"135":0.01385,"136":0.29685,"137":1.17355,"138":0.06135,_:"12 13 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 122 124 125 126 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.5 26.0","11.1":0.01385,"15.6":0.36216,"16.0":0.00792,"16.6":0.06135,"17.3":0.00396,"17.4":0.00396,"17.6":0.13259,"18.0":0.04354,"18.1":0.01385,"18.2":0.00792,"18.3":0.5086,"18.4":0.13259,"18.5":0.46902},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0,"6.0-6.1":0.00231,"7.0-7.1":0.00231,"8.1-8.4":0,"9.0-9.2":0.00116,"9.3":0.00694,"10.0-10.2":0.00058,"10.3":0.01156,"11.0-11.2":0.07401,"11.3-11.4":0.00405,"12.0-12.1":0.00116,"12.2-12.5":0.03874,"13.0-13.1":0.00058,"13.2":0.00173,"13.3":0.00116,"13.4-13.7":0.00636,"14.0-14.4":0.01503,"14.5-14.8":0.01503,"15.0-15.1":0.01041,"15.2-15.3":0.01041,"15.4":0.01272,"15.5":0.01388,"15.6-15.8":0.17926,"16.0":0.02371,"16.1":0.04857,"16.2":0.02486,"16.3":0.04568,"16.4":0.01041,"16.5":0.0185,"16.6-16.7":0.22494,"17.0":0.01214,"17.1":0.02139,"17.2":0.01677,"17.3":0.02371,"17.4":0.04221,"17.5":0.08847,"17.6-17.7":0.2313,"18.0":0.05725,"18.1":0.12895,"18.2":0.06823,"18.3":0.29317,"18.4":0.31109,"18.5":3.64697,"26.0":0},P:{"4":0.04086,"20":0.01022,"22":0.11237,"23":0.03065,"24":0.07151,"25":0.04086,"26":0.15323,"27":0.20431,"28":0.40862,_:"21 5.0-5.4 8.2 10.1 12.0 13.0 15.0 17.0 18.0","6.2-6.4":0.02043,"7.2-7.4":0.48012,"9.2":0.04086,"11.1-11.2":0.09194,"14.0":0.06129,"16.0":0.03065,"19.0":0.03065},I:{"0":0.01601,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.72982,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02177,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":75.1207},R:{_:"0"},M:{"0":0.07218},Q:{_:"14.9"},O:{"0":0.02406},H:{"0":0}}; +module.exports={C:{"40":0.01672,"43":0.00304,"44":0.01216,"47":0.00608,"72":0.02584,"115":0.1064,"118":0.00608,"122":0.00152,"123":0.0608,"124":0.01824,"125":0.29488,"126":0.12008,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 127 128 129 3.5 3.6"},D:{"43":0.0228,"44":0.04256,"49":0.02888,"58":0.00912,"61":0.01064,"68":0.01216,"74":0.01368,"79":0.00912,"86":0.00152,"88":0.00152,"92":0.00608,"95":0.01064,"101":0.01976,"103":0.01976,"105":0.00304,"108":0.0228,"109":1.50936,"111":0.01064,"112":0.01064,"113":0.00608,"115":0.01368,"116":0.02888,"117":0.01368,"119":0.01368,"120":0.06688,"121":0.02584,"122":0.04864,"123":0.25688,"124":3.39416,"125":1.43944,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 45 46 47 48 50 51 52 53 54 55 56 57 59 60 62 63 64 65 66 67 69 70 71 72 73 75 76 77 78 80 81 83 84 85 87 89 90 91 93 94 96 97 98 99 100 102 104 106 107 110 114 118 126 127 128"},F:{"60":0.01064,"79":0.01824,"90":0.00152,"95":0.03344,"99":0.01064,"106":0.00608,"107":0.00608,"109":0.85424,"110":0.01976,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 91 92 93 94 96 97 98 100 101 102 103 104 105 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01672,"13":0.00304,"14":0.00912,"17":0.0076,"18":0.00912,"84":0.01064,"88":0.01368,"89":0.01824,"90":0.01368,"92":0.03344,"96":0.01368,"100":0.0076,"108":0.0076,"109":0.01064,"115":0.0076,"117":0.00304,"118":0.076,"119":0.01368,"120":0.01368,"122":0.01216,"123":0.02888,"124":1.05944,"125":0.68248,_:"15 16 79 80 81 83 85 86 87 91 93 94 95 97 98 99 101 102 103 104 105 106 107 110 111 112 113 114 116 121"},E:{"15":0.00152,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.5 17.0 17.2 17.6","12.1":0.00608,"15.6":0.00608,"16.3":0.00152,"16.4":0.00152,"16.6":0.00152,"17.1":0.0076,"17.3":0.00304,"17.4":0.0304,"17.5":0.25536},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0.00111,"6.0-6.1":0.00278,"7.0-7.1":0.00389,"8.1-8.4":0.00111,"9.0-9.2":0.00278,"9.3":0.01278,"10.0-10.2":0.00222,"10.3":0.02,"11.0-11.2":0.02944,"11.3-11.4":0.00555,"12.0-12.1":0.00333,"12.2-12.5":0.08054,"13.0-13.1":0.00167,"13.2":0.00778,"13.3":0.00389,"13.4-13.7":0.01777,"14.0-14.4":0.03055,"14.5-14.8":0.04721,"15.0-15.1":0.02277,"15.2-15.3":0.02499,"15.4":0.02833,"15.5":0.03555,"15.6-15.8":0.31993,"16.0":0.07276,"16.1":0.14997,"16.2":0.07276,"16.3":0.12608,"16.4":0.02666,"16.5":0.05388,"16.6-16.7":0.42936,"17.0":0.04666,"17.1":0.0761,"17.2":0.07943,"17.3":0.14664,"17.4":3.32986,"17.5":0.23495,"17.6":0},P:{"4":0.08042,"20":0.03016,"21":0.04021,"22":0.22115,"23":1.02535,"24":0.97509,"25":0.16084,_:"5.0-5.4 8.2 10.1 12.0 14.0 15.0","6.2-6.4":0.01005,"7.2-7.4":0.14073,"9.2":0.10052,"11.1-11.2":0.01005,"13.0":0.09047,"16.0":0.03016,"17.0":0.01005,"18.0":0.01005,"19.0":0.10052},I:{"0":0.05068,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.98216,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0532,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01696,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":78.7992},R:{_:"0"},M:{"0":0.03392},Q:{_:"14.9"},O:{"0":0.27984},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/KN.js b/node_modules/caniuse-lite/data/regions/KN.js index debfd6640..931a34be3 100644 --- a/node_modules/caniuse-lite/data/regions/KN.js +++ b/node_modules/caniuse-lite/data/regions/KN.js @@ -1 +1 @@ -module.exports={C:{"105":0.00465,"115":0.35325,"123":0.00465,"128":0.00465,"132":0.00465,"137":0.01394,"138":0.01859,"139":0.46945,"140":0.06507,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 125 126 127 129 130 131 133 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.02789,"40":0.02324,"41":0.04183,"42":0.02789,"43":0.03254,"44":0.01859,"45":0.01394,"46":0.02324,"47":0.02789,"48":0.02789,"49":0.03718,"50":0.02324,"51":0.01394,"52":0.04183,"53":0.05113,"54":0.01859,"55":0.02789,"56":0.02324,"57":0.02324,"58":0.02324,"59":0.03254,"60":0.01859,"68":0.0093,"74":0.00465,"79":0.06972,"81":0.00465,"83":0.0093,"85":0.00465,"87":0.20451,"88":0.00465,"89":0.00465,"93":0.0093,"97":0.31142,"103":0.87847,"104":0.00465,"105":0.01394,"108":0.00465,"109":0.30212,"116":0.06972,"119":0.0093,"120":0.0093,"121":0.00465,"122":0.04648,"124":0.0093,"125":7.6692,"126":0.02789,"127":0.0093,"128":0.47874,"129":0.0093,"131":0.06972,"132":0.06042,"133":0.11155,"134":0.23705,"135":1.06439,"136":2.73767,"137":12.33579,"138":0.26494,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 69 70 71 72 73 75 76 77 78 80 84 86 90 91 92 94 95 96 98 99 100 101 102 106 107 110 111 112 113 114 115 117 118 123 130 139 140 141"},F:{"55":0.00465,"60":0.00465,"117":0.01394,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.01394},B:{"91":0.00465,"109":0.0093,"128":0.01859,"129":0.00465,"131":0.00465,"132":0.0093,"133":0.01859,"134":0.46015,"135":0.16268,"136":1.37116,"137":4.66659,"138":0.26958,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 14.1 15.2-15.3 15.5 16.2 17.2 18.2 26.0","9.1":0.00465,"13.1":0.03718,"15.1":0.02789,"15.4":0.0093,"15.6":0.1255,"16.0":0.00465,"16.1":0.11155,"16.3":0.00465,"16.4":0.0093,"16.5":0.03254,"16.6":0.05113,"17.0":0.00465,"17.1":0.0093,"17.3":0.0093,"17.4":0.33466,"17.5":0.03254,"17.6":0.1162,"18.0":0.0093,"18.1":0.0093,"18.3":0.10226,"18.4":0.14874,"18.5":1.71511},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00244,"5.0-5.1":0,"6.0-6.1":0.00488,"7.0-7.1":0.00488,"8.1-8.4":0,"9.0-9.2":0.00244,"9.3":0.01463,"10.0-10.2":0.00122,"10.3":0.02438,"11.0-11.2":0.15606,"11.3-11.4":0.00853,"12.0-12.1":0.00244,"12.2-12.5":0.08169,"13.0-13.1":0.00122,"13.2":0.00366,"13.3":0.00244,"13.4-13.7":0.01341,"14.0-14.4":0.0317,"14.5-14.8":0.0317,"15.0-15.1":0.02195,"15.2-15.3":0.02195,"15.4":0.02682,"15.5":0.02926,"15.6-15.8":0.37795,"16.0":0.04999,"16.1":0.10241,"16.2":0.05242,"16.3":0.09632,"16.4":0.02195,"16.5":0.03901,"16.6-16.7":0.47426,"17.0":0.0256,"17.1":0.04511,"17.2":0.03536,"17.3":0.04999,"17.4":0.089,"17.5":0.18654,"17.6-17.7":0.48767,"18.0":0.1207,"18.1":0.27188,"18.2":0.14386,"18.3":0.61813,"18.4":0.65592,"18.5":7.6894,"26.0":0},P:{"4":0.04314,"23":0.11864,"24":0.02157,"25":0.01079,"26":0.01079,"27":0.15099,"28":1.69326,_:"20 21 22 5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.05393,"8.2":0.01079,"19.0":0.02157},I:{"0":0.02671,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.32194,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00465,_:"6 7 8 9 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.8846},R:{_:"0"},M:{"0":0.25154},Q:{_:"14.9"},O:{"0":0.0107},H:{"0":0}}; +module.exports={C:{"78":0.00393,"97":0.00393,"115":0.10993,"122":0.00393,"124":0.00393,"125":0.32978,"126":0.25912,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 127 128 129 3.5 3.6"},D:{"42":0.00393,"63":0.00393,"67":0.00393,"76":0.02356,"79":0.00393,"83":0.05104,"87":0.91868,"88":0.01178,"92":0.00393,"94":0.04711,"97":0.67527,"100":0.00393,"103":0.06282,"104":0.0157,"107":0.00393,"109":0.51431,"110":0.00393,"111":0.00785,"112":0.01178,"115":0.05104,"116":0.06282,"117":0.03141,"119":0.02356,"120":0.01963,"121":0.05104,"122":0.16489,"123":1.79026,"124":13.0461,"125":3.9417,"126":0.00785,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 68 69 70 71 72 73 74 75 77 78 80 81 84 85 86 89 90 91 93 95 96 98 99 101 102 105 106 108 113 114 118 127 128"},F:{"106":0.00393,"107":0.12563,"108":0.00785,"109":0.92261,"110":0.00785,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00393,"17":0.00393,"84":0.00393,"92":0.00393,"98":0.00393,"109":0.00785,"113":0.00393,"116":0.00785,"120":0.01963,"121":0.00393,"122":0.04711,"123":1.33484,"124":6.50931,"125":2.64612,_:"12 13 15 16 18 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 110 111 112 114 115 117 118 119"},E:{"13":0.00785,"14":0.00785,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 17.6","13.1":0.08637,"14.1":0.07459,"15.1":0.00785,"15.2-15.3":0.00393,"15.5":0.10208,"15.6":0.25126,"16.0":0.01178,"16.1":0.01178,"16.2":0.06282,"16.3":0.22771,"16.4":0.01963,"16.5":0.03926,"16.6":0.51431,"17.0":0.04711,"17.1":0.32586,"17.2":0.13741,"17.3":0.07067,"17.4":1.8727,"17.5":0.1963},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00357,"5.0-5.1":0.00357,"6.0-6.1":0.00891,"7.0-7.1":0.01248,"8.1-8.4":0.00357,"9.0-9.2":0.00891,"9.3":0.041,"10.0-10.2":0.00713,"10.3":0.06418,"11.0-11.2":0.09448,"11.3-11.4":0.01783,"12.0-12.1":0.0107,"12.2-12.5":0.25849,"13.0-13.1":0.00535,"13.2":0.02496,"13.3":0.01248,"13.4-13.7":0.05705,"14.0-14.4":0.09805,"14.5-14.8":0.15153,"15.0-15.1":0.07309,"15.2-15.3":0.08022,"15.4":0.09092,"15.5":0.11409,"15.6-15.8":1.02685,"16.0":0.23354,"16.1":0.48133,"16.2":0.23354,"16.3":0.40468,"16.4":0.08557,"16.5":0.17292,"16.6-16.7":1.37804,"17.0":0.14975,"17.1":0.24423,"17.2":0.25493,"17.3":0.47064,"17.4":10.6874,"17.5":0.75409,"17.6":0},P:{"4":0.05364,"20":0.12873,"21":0.05364,"22":0.05364,"23":0.1931,"24":0.22528,"25":3.33632,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0 19.0","6.2-6.4":0.01073,"7.2-7.4":0.22528,"11.1-11.2":0.01073,"16.0":0.02146},I:{"0":0.0121,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.68636,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00785,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.64334},R:{_:"0"},M:{"0":0.13363},Q:{_:"14.9"},O:{"0":0.15185},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KP.js b/node_modules/caniuse-lite/data/regions/KP.js index 1a50e3aec..379b57e29 100644 --- a/node_modules/caniuse-lite/data/regions/KP.js +++ b/node_modules/caniuse-lite/data/regions/KP.js @@ -1 +1 @@ -module.exports={C:{"138":52.43376,"139":0.61035,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 140 141 142 143 3.5 3.6"},D:{"71":1.83105,"79":0.61035,"109":1.2207,"125":0.61035,"136":17.68137,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 137 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"137":6.70446,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5 26.0"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0,"15.2-15.3":0,"15.4":0,"15.5":0,"15.6-15.8":0,"16.0":0,"16.1":0,"16.2":0,"16.3":0,"16.4":0,"16.5":0,"16.6-16.7":0,"17.0":0,"17.1":0,"17.2":0,"17.3":0,"17.4":0,"17.5":0,"17.6-17.7":0,"18.0":0,"18.1":0,"18.2":0,"18.3":0,"18.4":0,"18.5":0,"26.0":0},P:{"28":0.61,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":12.80761},R:{_:"0"},M:{"0":3.05},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"52":0.64187,"113":0.25675,"115":0.12837,"125":2.06008,"126":0.25675,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 127 128 129 3.5 3.6"},D:{"79":0.12837,"86":1.67496,"100":0.25675,"109":0.64187,"112":0.12837,"118":0.51349,"121":1.54659,"122":1.15536,"123":0.89861,"124":16.60291,"125":3.99179,"127":1.80334,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 119 120 126 128"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"119":0.51349,"124":3.47218,"125":10.29429,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 120 121 122 123"},E:{"14":0.89861,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.1 17.2 17.5 17.6","15.6":0.12837,"16.1":0.38512,"16.3":0.25675,"16.5":1.15536,"16.6":0.51349,"17.0":0.51349,"17.3":0.12837,"17.4":0.38512},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0031,"5.0-5.1":0.0031,"6.0-6.1":0.00776,"7.0-7.1":0.01086,"8.1-8.4":0.0031,"9.0-9.2":0.00776,"9.3":0.03569,"10.0-10.2":0.00621,"10.3":0.05586,"11.0-11.2":0.08224,"11.3-11.4":0.01552,"12.0-12.1":0.00931,"12.2-12.5":0.225,"13.0-13.1":0.00466,"13.2":0.02172,"13.3":0.01086,"13.4-13.7":0.04965,"14.0-14.4":0.08534,"14.5-14.8":0.13189,"15.0-15.1":0.06362,"15.2-15.3":0.06983,"15.4":0.07914,"15.5":0.09931,"15.6-15.8":0.89377,"16.0":0.20327,"16.1":0.41896,"16.2":0.20327,"16.3":0.35223,"16.4":0.07448,"16.5":0.15051,"16.6-16.7":1.19946,"17.0":0.13034,"17.1":0.21258,"17.2":0.22189,"17.3":0.40965,"17.4":9.30238,"17.5":0.65637,"17.6":0},P:{"25":2.80641,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.66768},R:{_:"0"},M:{_:"0"},Q:{"14.9":0.44312},O:{"0":0.29541},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KR.js b/node_modules/caniuse-lite/data/regions/KR.js index ce7b86ccf..5936e6db2 100644 --- a/node_modules/caniuse-lite/data/regions/KR.js +++ b/node_modules/caniuse-lite/data/regions/KR.js @@ -1 +1 @@ -module.exports={C:{"52":0.00403,"56":0.00403,"78":0.00403,"106":0.00403,"107":0.00403,"108":0.00403,"109":0.00403,"111":0.00403,"115":0.02014,"128":0.00805,"131":0.01208,"136":0.00403,"138":0.01611,"139":0.32216,"140":0.05235,"141":0.00805,"142":0.00403,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133 134 135 137 143 3.5 3.6"},D:{"39":0.00403,"40":0.00403,"41":0.00403,"42":0.01208,"43":0.00403,"44":0.00403,"45":0.00403,"46":0.00403,"47":0.00403,"48":0.00403,"49":0.00805,"50":0.00403,"51":0.00403,"52":0.00403,"53":0.00403,"54":0.00403,"55":0.00403,"56":0.00403,"57":0.00403,"58":0.00403,"59":0.00403,"60":0.00403,"65":0.00403,"77":0.00403,"79":0.00403,"81":0.01208,"86":0.00403,"87":0.00805,"94":0.00403,"96":0.00403,"101":0.00403,"103":0.00805,"104":0.01208,"105":0.00805,"106":0.06041,"107":0.04027,"108":0.04832,"109":0.4027,"110":0.02416,"111":0.73694,"112":0.02416,"114":0.00805,"115":0.00403,"116":0.02014,"118":0.00403,"119":0.00805,"120":0.01208,"121":0.03222,"122":0.0443,"123":0.01208,"124":0.02014,"125":0.02014,"126":0.02819,"127":0.01611,"128":0.04027,"129":0.03624,"130":0.07651,"131":0.05638,"132":0.08054,"133":0.05638,"134":0.07651,"135":0.15303,"136":2.15445,"137":20.15916,"138":0.84164,"139":0.00805,"140":0.00403,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 78 80 83 84 85 88 89 90 91 92 93 95 97 98 99 100 102 113 117 141"},F:{"89":0.01611,"90":0.01611,"93":0.00403,"94":0.00403,"95":0.00403,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00403,"90":0.00403,"92":0.00805,"103":0.00403,"106":0.00403,"107":0.00805,"108":0.00805,"109":0.04832,"110":0.00805,"111":0.00403,"112":0.00403,"113":0.00403,"114":0.00805,"115":0.00403,"116":0.00403,"117":0.00403,"118":0.00403,"119":0.00403,"120":0.01208,"121":0.00805,"122":0.00805,"123":0.00403,"124":0.00403,"125":0.00403,"126":0.00805,"127":0.01611,"128":0.01208,"129":0.00805,"130":0.01611,"131":0.03222,"132":0.02416,"133":0.02014,"134":0.04832,"135":0.05235,"136":0.69667,"137":5.54518,"138":0.43894,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 104 105"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 16.2 17.0","14.1":0.00805,"15.5":0.00403,"15.6":0.02014,"16.0":0.00403,"16.1":0.00403,"16.3":0.00403,"16.4":0.00403,"16.5":0.00403,"16.6":0.02416,"17.1":0.01611,"17.2":0.00403,"17.3":0.00403,"17.4":0.01208,"17.5":0.01208,"17.6":0.0443,"18.0":0.00403,"18.1":0.01208,"18.2":0.00805,"18.3":0.03624,"18.4":0.03624,"18.5":0.40673,"26.0":0.00403},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00207,"5.0-5.1":0,"6.0-6.1":0.00415,"7.0-7.1":0.00415,"8.1-8.4":0,"9.0-9.2":0.00207,"9.3":0.01244,"10.0-10.2":0.00104,"10.3":0.02073,"11.0-11.2":0.1327,"11.3-11.4":0.00726,"12.0-12.1":0.00207,"12.2-12.5":0.06946,"13.0-13.1":0.00104,"13.2":0.00311,"13.3":0.00207,"13.4-13.7":0.0114,"14.0-14.4":0.02696,"14.5-14.8":0.02696,"15.0-15.1":0.01866,"15.2-15.3":0.01866,"15.4":0.02281,"15.5":0.02488,"15.6-15.8":0.32139,"16.0":0.04251,"16.1":0.08709,"16.2":0.04458,"16.3":0.0819,"16.4":0.01866,"16.5":0.03318,"16.6-16.7":0.40329,"17.0":0.02177,"17.1":0.03836,"17.2":0.03007,"17.3":0.04251,"17.4":0.07568,"17.5":0.15862,"17.6-17.7":0.4147,"18.0":0.10264,"18.1":0.23119,"18.2":0.12234,"18.3":0.52563,"18.4":0.55777,"18.5":6.53871,"26.0":0},P:{"21":0.01015,"22":0.03044,"23":0.02029,"24":0.07103,"25":0.05073,"26":0.11161,"27":0.55806,"28":13.76894,_:"4 20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01015},I:{"0":0.10731,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.16722,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00532,"10":0.00532,"11":0.13836,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.07035},R:{_:"0"},M:{"0":0.20902},Q:{"14.9":0.01194},O:{"0":0.05375},H:{"0":0}}; +module.exports={C:{"4":0.00371,"52":0.00371,"72":0.00371,"102":0.00371,"103":0.00743,"115":0.03713,"124":0.00371,"125":0.1708,"126":0.16709,"127":0.00371,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 128 129 3.5 3.6"},D:{"42":0.01485,"49":0.00371,"56":0.00371,"61":0.00743,"68":0.00371,"76":0.00371,"77":0.00371,"79":0.00371,"80":0.00371,"81":0.01485,"83":0.00371,"86":0.02599,"87":0.01485,"89":0.00743,"91":0.00371,"94":0.03342,"95":0.00371,"96":0.00371,"97":0.01114,"98":0.00743,"99":0.00371,"100":0.02228,"101":0.04456,"102":0.0297,"103":0.03342,"104":0.04084,"105":0.00371,"106":0.04827,"107":0.00743,"108":0.01114,"109":0.62007,"110":0.00743,"111":0.53839,"112":0.01114,"113":0.02599,"114":0.04456,"115":0.00743,"116":0.04084,"117":0.01114,"118":0.01485,"119":0.02599,"120":0.06312,"121":0.17822,"122":0.13738,"123":0.48269,"124":16.56369,"125":6.32324,"126":0.00743,"127":0.00371,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 62 63 64 65 66 67 69 70 71 72 73 74 75 78 84 85 88 90 92 93 128"},F:{"95":0.00371,"97":0.00371,"102":0.01114,"107":0.00371,"108":0.00743,"109":0.14109,"110":0.01485,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00371,"18":0.00371,"92":0.00743,"100":0.00371,"103":0.00371,"104":0.00371,"107":0.02599,"108":0.00743,"109":0.0854,"110":0.00743,"111":0.02228,"112":0.01857,"113":0.00743,"114":0.01485,"115":0.01114,"116":0.00743,"117":0.00743,"118":0.00743,"119":0.02599,"120":0.03713,"121":0.02599,"122":0.04456,"123":0.08169,"124":4.10287,"125":2.10898,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 105 106"},E:{"14":0.00743,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 17.6","13.1":0.00371,"14.1":0.01114,"15.2-15.3":0.00371,"15.4":0.00371,"15.5":0.00743,"15.6":0.04827,"16.0":0.00743,"16.1":0.02599,"16.2":0.00743,"16.3":0.01485,"16.4":0.00743,"16.5":0.01114,"16.6":0.04456,"17.0":0.01114,"17.1":0.01485,"17.2":0.03342,"17.3":0.0297,"17.4":0.41586,"17.5":0.06683},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00225,"5.0-5.1":0.00225,"6.0-6.1":0.00563,"7.0-7.1":0.00788,"8.1-8.4":0.00225,"9.0-9.2":0.00563,"9.3":0.02588,"10.0-10.2":0.0045,"10.3":0.04051,"11.0-11.2":0.05964,"11.3-11.4":0.01125,"12.0-12.1":0.00675,"12.2-12.5":0.16318,"13.0-13.1":0.00338,"13.2":0.01576,"13.3":0.00788,"13.4-13.7":0.03601,"14.0-14.4":0.0619,"14.5-14.8":0.09566,"15.0-15.1":0.04614,"15.2-15.3":0.05064,"15.4":0.05739,"15.5":0.07202,"15.6-15.8":0.64821,"16.0":0.14742,"16.1":0.30385,"16.2":0.14742,"16.3":0.25546,"16.4":0.05402,"16.5":0.10916,"16.6-16.7":0.86991,"17.0":0.09453,"17.1":0.15418,"17.2":0.16093,"17.3":0.2971,"17.4":6.74661,"17.5":0.47603,"17.6":0},P:{"20":0.02034,"21":0.04069,"22":0.16274,"23":0.30514,"24":1.10869,"25":15.68436,_:"4 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","13.0":0.01017,"17.0":0.02034,"18.0":0.03051,"19.0":0.02034},I:{"0":0.11899,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00026},K:{"0":0.21376,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00442,"10":0.00442,"11":0.19908,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":26.33195},R:{_:"0"},M:{"0":0.15718},Q:{"14.9":0.01886},O:{"0":0.06916},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KW.js b/node_modules/caniuse-lite/data/regions/KW.js index 00741c81f..008ed003e 100644 --- a/node_modules/caniuse-lite/data/regions/KW.js +++ b/node_modules/caniuse-lite/data/regions/KW.js @@ -1 +1 @@ -module.exports={C:{"48":0.00442,"107":0.00442,"108":0.00442,"109":0.00442,"115":0.01548,"121":0.00221,"125":0.00663,"128":0.01106,"129":0.00221,"130":0.00221,"132":0.00221,"134":0.02211,"135":0.00442,"137":0.01327,"138":0.02432,"139":0.38914,"140":0.0597,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 113 114 116 117 118 119 120 122 123 124 126 127 131 133 136 141 142 143 3.5 3.6"},D:{"38":0.00221,"39":0.00442,"40":0.00442,"41":0.00442,"42":0.00442,"43":0.00442,"44":0.00442,"45":0.00442,"46":0.00442,"47":0.00442,"48":0.00442,"49":0.00442,"50":0.00442,"51":0.00221,"52":0.00442,"53":0.00221,"54":0.00442,"55":0.00442,"56":0.00442,"57":0.00442,"58":0.02874,"59":0.00442,"60":0.00442,"65":0.00221,"75":0.00663,"79":0.00442,"80":0.00221,"83":0.00221,"87":0.02874,"88":0.00221,"89":0.00221,"91":0.00221,"93":0.00221,"99":0.00221,"100":0.00221,"101":0.00442,"102":0.00221,"103":0.05528,"104":0.02432,"105":0.00221,"107":0.00663,"108":0.01327,"109":0.35376,"110":0.01548,"111":0.00442,"114":0.01106,"115":0.00221,"116":0.01548,"117":0.00442,"118":0.00884,"119":0.00442,"120":0.00221,"121":0.00884,"122":0.01769,"123":0.00663,"124":0.01106,"125":0.61245,"126":0.06191,"127":0.02874,"128":0.05749,"129":0.03538,"130":0.04422,"131":0.07517,"132":0.03759,"133":0.13929,"134":0.07296,"135":0.13708,"136":1.65162,"137":8.59416,"138":0.32281,"139":0.00221,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 78 81 84 85 86 90 92 94 95 96 97 98 106 112 113 140 141"},F:{"36":0.00221,"38":0.00221,"46":0.00221,"89":0.13708,"90":0.03095,"95":0.00221,"109":0.00221,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00221,"18":0.00442,"92":0.00884,"100":0.00221,"108":0.00442,"109":0.04201,"113":0.06191,"114":0.00442,"119":0.00221,"120":0.00221,"121":0.01548,"122":0.00221,"123":0.00221,"124":0.00442,"126":0.00884,"127":0.00221,"128":0.00221,"129":0.00442,"130":0.00442,"131":0.01327,"132":0.03759,"133":0.00442,"134":0.01106,"135":0.01769,"136":0.37366,"137":1.67594,"138":0.18351,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 115 116 117 118 125"},E:{"13":0.00221,"14":0.00884,"15":0.00221,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 26.0","5.1":0.00221,"13.1":0.00442,"14.1":0.01327,"15.2-15.3":0.00221,"15.4":0.00221,"15.5":0.00663,"15.6":0.05306,"16.0":0.00442,"16.1":0.00663,"16.2":0.00663,"16.3":0.01548,"16.4":0.00221,"16.5":0.00663,"16.6":0.07075,"17.0":0.00442,"17.1":0.0796,"17.2":0.01106,"17.3":0.01106,"17.4":0.01548,"17.5":0.04422,"17.6":0.08844,"18.0":0.00884,"18.1":0.02653,"18.2":0.01548,"18.3":0.0995,"18.4":0.13045,"18.5":0.82028},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00471,"5.0-5.1":0,"6.0-6.1":0.00943,"7.0-7.1":0.00943,"8.1-8.4":0,"9.0-9.2":0.00471,"9.3":0.02828,"10.0-10.2":0.00236,"10.3":0.04714,"11.0-11.2":0.30169,"11.3-11.4":0.0165,"12.0-12.1":0.00471,"12.2-12.5":0.15792,"13.0-13.1":0.00236,"13.2":0.00707,"13.3":0.00471,"13.4-13.7":0.02593,"14.0-14.4":0.06128,"14.5-14.8":0.06128,"15.0-15.1":0.04243,"15.2-15.3":0.04243,"15.4":0.05185,"15.5":0.05657,"15.6-15.8":0.73065,"16.0":0.09664,"16.1":0.19798,"16.2":0.10135,"16.3":0.1862,"16.4":0.04243,"16.5":0.07542,"16.6-16.7":0.91685,"17.0":0.0495,"17.1":0.08721,"17.2":0.06835,"17.3":0.09664,"17.4":0.17206,"17.5":0.36061,"17.6-17.7":0.94278,"18.0":0.23334,"18.1":0.5256,"18.2":0.27812,"18.3":1.19497,"18.4":1.26804,"18.5":14.86529,"26.0":0},P:{"4":0.0304,"21":0.02027,"22":0.05067,"23":0.09121,"24":0.09121,"25":0.15202,"26":0.13175,"27":0.52701,"28":3.01005,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 16.0 17.0","7.2-7.4":0.05067,"11.1-11.2":0.0304,"13.0":0.0304,"14.0":0.01013,"15.0":0.04054,"18.0":0.0304,"19.0":0.01013},I:{"0":0.0311,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.33971,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02653,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.07566},R:{_:"0"},M:{"0":0.10126},Q:{_:"14.9"},O:{"0":1.81484},H:{"0":0}}; +module.exports={C:{"34":0.00689,"48":0.0023,"52":0.0023,"68":0.00459,"78":0.0023,"88":0.01378,"103":0.0023,"113":0.0023,"115":0.0735,"119":0.00459,"121":0.0023,"122":0.00459,"123":0.0023,"124":0.00689,"125":0.4617,"126":0.23659,"127":0.0023,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 120 128 129 3.5 3.6"},D:{"34":0.0023,"38":0.00689,"41":0.00459,"47":0.00459,"49":0.00689,"56":0.00459,"58":0.01149,"62":0.0023,"64":0.0023,"65":0.0023,"68":0.0023,"69":0.0023,"71":0.0023,"73":0.00459,"74":0.0023,"75":0.00919,"76":0.0023,"78":0.01838,"79":0.02527,"80":0.0023,"81":0.0023,"83":0.01378,"84":0.0023,"86":0.0023,"87":0.05972,"88":0.02067,"89":0.0023,"90":0.02297,"91":0.00459,"93":0.00919,"94":0.0023,"95":0.00459,"96":0.00919,"97":0.0023,"98":0.00459,"99":0.01608,"101":0.00919,"102":0.01149,"103":0.05743,"104":0.00919,"105":0.0023,"106":0.00919,"107":0.00919,"108":0.00919,"109":0.6914,"110":0.02527,"111":0.01838,"112":0.02067,"113":0.00689,"114":0.02067,"115":0.01378,"116":0.05053,"117":0.00689,"118":0.01378,"119":0.02986,"120":0.20214,"121":0.1516,"122":0.11485,"123":0.39738,"124":8.61605,"125":3.22499,"126":0.00459,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 42 43 44 45 46 48 50 51 52 53 54 55 57 59 60 61 63 66 67 70 72 77 85 92 100 127 128"},F:{"28":0.01149,"36":0.0023,"46":0.02986,"89":0.0023,"93":0.0023,"95":0.01608,"102":0.0023,"107":0.16538,"108":0.00689,"109":0.74193,"110":0.04135,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.0023,"18":0.00459,"84":0.0023,"91":0.0023,"92":0.00689,"100":0.00459,"105":0.0023,"106":0.0023,"107":0.0023,"109":0.02756,"110":0.0023,"111":0.0023,"112":0.0023,"113":0.0023,"114":0.00689,"115":0.0023,"116":0.0023,"117":0.0023,"118":0.00459,"119":0.0023,"120":0.02067,"121":0.00689,"122":0.02067,"123":0.13323,"124":1.86057,"125":0.9969,_:"12 14 15 16 17 79 80 81 83 85 86 87 88 89 90 93 94 95 96 97 98 99 101 102 103 104 108"},E:{"7":0.17457,"13":0.00919,"14":0.03675,"15":0.01838,_:"0 4 5 6 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.0023,"12.1":0.00459,"13.1":0.02067,"14.1":0.11255,"15.1":0.02986,"15.2-15.3":0.01378,"15.4":0.02756,"15.5":0.0781,"15.6":0.14931,"16.0":0.02067,"16.1":0.06202,"16.2":0.04824,"16.3":0.09647,"16.4":0.02067,"16.5":0.03446,"16.6":0.20903,"17.0":0.02986,"17.1":0.02986,"17.2":0.0804,"17.3":0.08499,"17.4":1.075,"17.5":0.12404},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00614,"5.0-5.1":0.00614,"6.0-6.1":0.01535,"7.0-7.1":0.02149,"8.1-8.4":0.00614,"9.0-9.2":0.01535,"9.3":0.0706,"10.0-10.2":0.01228,"10.3":0.11051,"11.0-11.2":0.16269,"11.3-11.4":0.0307,"12.0-12.1":0.01842,"12.2-12.5":0.4451,"13.0-13.1":0.00921,"13.2":0.04298,"13.3":0.02149,"13.4-13.7":0.09823,"14.0-14.4":0.16883,"14.5-14.8":0.26092,"15.0-15.1":0.12586,"15.2-15.3":0.13813,"15.4":0.15655,"15.5":0.19646,"15.6-15.8":1.76812,"16.0":0.40212,"16.1":0.8288,"16.2":0.40212,"16.3":0.69681,"16.4":0.14734,"16.5":0.29776,"16.6-16.7":2.37284,"17.0":0.25785,"17.1":0.42054,"17.2":0.43896,"17.3":0.81039,"17.4":18.40252,"17.5":1.29846,"17.6":0},P:{"4":0.1226,"20":0.04087,"21":0.13281,"22":0.28606,"23":0.39844,"24":0.78666,"25":3.63701,"5.0-5.4":0.03065,"6.2-6.4":0.01022,"7.2-7.4":0.09195,_:"8.2 9.2 10.1 12.0","11.1-11.2":0.0613,"13.0":0.02043,"14.0":0.01022,"15.0":0.01022,"16.0":0.03065,"17.0":0.02043,"18.0":0.04087,"19.0":0.0613},I:{"0":0.03836,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":2.3186,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01608,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.81316},R:{_:"0"},M:{"0":0.15406},Q:{_:"14.9"},O:{"0":1.06301},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KY.js b/node_modules/caniuse-lite/data/regions/KY.js index 52daf6087..8a8a641fe 100644 --- a/node_modules/caniuse-lite/data/regions/KY.js +++ b/node_modules/caniuse-lite/data/regions/KY.js @@ -1 +1 @@ -module.exports={C:{"115":0.02017,"128":0.01008,"134":0.12605,"137":0.00504,"138":0.01513,"139":0.89748,"140":0.0605,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 141 142 143 3.5 3.6"},D:{"39":0.01513,"40":0.01008,"41":0.02017,"42":0.01513,"43":0.01008,"44":0.01513,"45":0.02017,"46":0.02017,"47":0.01008,"48":0.02017,"49":0.01513,"50":0.01008,"51":0.01513,"52":0.01513,"53":0.01513,"54":0.01513,"55":0.00504,"56":0.00504,"57":0.02017,"58":0.01008,"59":0.01513,"60":0.02017,"65":0.00504,"75":0.00504,"79":0.01008,"86":0.00504,"87":0.01008,"95":0.00504,"98":0.05546,"99":0.02017,"103":0.01513,"108":0.02017,"109":0.07059,"111":0.01008,"112":0.00504,"116":0.13613,"119":0.05042,"120":0.01008,"122":0.08571,"124":0.01008,"125":5.70754,"126":0.01008,"127":0.02017,"128":0.12101,"129":0.10084,"130":0.02017,"131":0.22185,"132":0.0958,"133":0.10588,"134":0.21176,"135":0.37815,"136":3.54453,"137":18.38313,"138":0.65042,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 88 89 90 91 92 93 94 96 97 100 101 102 104 105 106 107 110 113 114 115 117 118 121 123 139 140 141"},F:{"95":0.01008,"114":0.01008,"117":0.00504,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"98":0.00504,"110":0.05546,"122":0.00504,"128":0.02017,"129":0.00504,"130":0.00504,"131":0.00504,"132":0.00504,"133":0.04538,"134":0.02017,"135":0.06555,"136":2.06218,"137":7.96636,"138":0.48907,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 17.0 26.0","13.1":0.02017,"14.1":0.05546,"15.6":0.18151,"16.0":0.05546,"16.1":0.00504,"16.2":0.00504,"16.3":0.00504,"16.4":0.00504,"16.5":0.03025,"16.6":0.16134,"17.1":0.0958,"17.2":0.00504,"17.3":0.01513,"17.4":0.01513,"17.5":0.02521,"17.6":0.11597,"18.0":0.08067,"18.1":0.61008,"18.2":0.02017,"18.3":0.07563,"18.4":0.14118,"18.5":3.09579},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00465,"5.0-5.1":0,"6.0-6.1":0.00931,"7.0-7.1":0.00931,"8.1-8.4":0,"9.0-9.2":0.00465,"9.3":0.02793,"10.0-10.2":0.00233,"10.3":0.04655,"11.0-11.2":0.29789,"11.3-11.4":0.01629,"12.0-12.1":0.00465,"12.2-12.5":0.15593,"13.0-13.1":0.00233,"13.2":0.00698,"13.3":0.00465,"13.4-13.7":0.0256,"14.0-14.4":0.06051,"14.5-14.8":0.06051,"15.0-15.1":0.04189,"15.2-15.3":0.04189,"15.4":0.0512,"15.5":0.05585,"15.6-15.8":0.72146,"16.0":0.09542,"16.1":0.19549,"16.2":0.10007,"16.3":0.18386,"16.4":0.04189,"16.5":0.07447,"16.6-16.7":0.90531,"17.0":0.04887,"17.1":0.08611,"17.2":0.06749,"17.3":0.09542,"17.4":0.16989,"17.5":0.35607,"17.6-17.7":0.93091,"18.0":0.2304,"18.1":0.51898,"18.2":0.27462,"18.3":1.17993,"18.4":1.25208,"18.5":14.67819,"26.0":0},P:{"4":0.04165,"21":0.01041,"22":0.01041,"24":0.01041,"25":0.02082,"26":0.01041,"27":0.30194,"28":3.84195,_:"20 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01041,"16.0":0.01041},I:{"0":0.01485,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.07437,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.8062},R:{_:"0"},M:{"0":0.2479},Q:{_:"14.9"},O:{"0":0.01983},H:{"0":0}}; +module.exports={C:{"52":0.00423,"94":0.00423,"115":0.03386,"122":0.04655,"123":0.02539,"124":0.04232,"125":0.46552,"126":0.34702,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 127 128 129 3.5 3.6"},D:{"38":0.00846,"62":0.00423,"69":0.00846,"91":0.00423,"92":0.02116,"93":0.03809,"94":0.00423,"95":0.00423,"96":0.00423,"98":0.00423,"101":0.02962,"103":0.07618,"105":0.52477,"106":0.00423,"108":0.0127,"109":0.41897,"111":0.00423,"112":0.00423,"113":0.00423,"114":0.0127,"115":0.00846,"116":0.35126,"117":0.0127,"118":0.00423,"119":0.0127,"120":0.14812,"121":0.07618,"122":0.55439,"123":1.97211,"124":17.35966,"125":5.68358,"126":0.00423,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 97 99 100 102 104 107 110 127 128"},F:{"89":0.00423,"107":0.33433,"108":0.00846,"109":0.56286,"110":0.00423,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.0127,"110":0.07618,"113":0.00423,"115":0.00423,"119":0.00846,"120":0.02116,"122":0.02539,"123":0.16928,"124":4.38858,"125":2.09061,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 114 116 117 118 121"},E:{"14":0.01693,"15":0.0127,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00846,"13.1":0.08041,"14.1":0.11426,"15.1":0.04232,"15.2-15.3":0.03809,"15.4":0.00423,"15.5":0.03386,"15.6":0.17351,"16.0":0.02116,"16.1":0.08041,"16.2":0.03386,"16.3":0.13966,"16.4":0.17351,"16.5":0.13966,"16.6":0.7406,"17.0":0.1058,"17.1":0.03386,"17.2":0.11003,"17.3":0.13966,"17.4":3.27557,"17.5":0.21583},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00553,"5.0-5.1":0.00553,"6.0-6.1":0.01383,"7.0-7.1":0.01936,"8.1-8.4":0.00553,"9.0-9.2":0.01383,"9.3":0.06363,"10.0-10.2":0.01107,"10.3":0.09959,"11.0-11.2":0.14662,"11.3-11.4":0.02766,"12.0-12.1":0.0166,"12.2-12.5":0.40112,"13.0-13.1":0.0083,"13.2":0.03873,"13.3":0.01936,"13.4-13.7":0.08852,"14.0-14.4":0.15215,"14.5-14.8":0.23514,"15.0-15.1":0.11342,"15.2-15.3":0.12448,"15.4":0.14108,"15.5":0.17705,"15.6-15.8":1.59341,"16.0":0.36239,"16.1":0.74691,"16.2":0.36239,"16.3":0.62796,"16.4":0.13278,"16.5":0.26833,"16.6-16.7":2.13838,"17.0":0.23237,"17.1":0.37899,"17.2":0.39559,"17.3":0.73031,"17.4":16.58417,"17.5":1.17016,"17.6":0},P:{"4":0.0839,"20":0.02097,"21":0.03146,"22":0.09439,"23":0.19926,"24":0.47193,"25":4.4466,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","7.2-7.4":0.05244,"16.0":0.01049,"17.0":0.01049},I:{"0":0.00575,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.62294,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00423,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.34558},R:{_:"0"},M:{"0":0.48451},Q:{_:"14.9"},O:{"0":0.04038},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/KZ.js b/node_modules/caniuse-lite/data/regions/KZ.js index f94386066..397aa6613 100644 --- a/node_modules/caniuse-lite/data/regions/KZ.js +++ b/node_modules/caniuse-lite/data/regions/KZ.js @@ -1 +1 @@ -module.exports={C:{"52":0.03865,"78":0.00429,"101":0.00429,"115":0.41222,"125":0.00859,"127":0.00429,"128":0.05153,"132":0.00429,"133":0.01288,"134":0.02147,"135":0.00429,"136":0.01288,"137":0.00859,"138":0.03006,"139":1.15509,"140":0.12023,"141":0.00429,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 142 143 3.5 3.6"},D:{"38":0.00429,"39":0.03006,"40":0.02147,"41":0.02576,"42":0.02576,"43":0.02576,"44":0.02147,"45":0.02576,"46":0.02576,"47":0.02147,"48":0.02576,"49":0.02576,"50":0.02576,"51":0.02147,"52":0.03006,"53":0.02576,"54":0.02576,"55":0.02576,"56":0.02576,"57":0.02576,"58":0.06012,"59":0.02576,"60":0.02576,"64":0.00429,"72":0.00429,"74":0.00859,"79":0.01718,"80":0.00429,"86":0.00429,"87":0.01288,"89":0.00429,"90":0.00859,"96":0.00429,"98":0.00429,"100":0.01288,"101":0.00859,"102":0.00429,"103":0.01718,"104":0.00429,"106":0.10306,"107":0.00859,"108":0.02147,"109":2.06112,"110":0.00859,"111":0.02576,"112":0.01288,"113":0.00429,"114":0.00859,"116":0.04294,"117":0.00859,"118":0.02147,"119":0.01288,"120":0.01288,"121":0.03435,"122":0.06441,"123":0.01288,"124":0.06441,"125":2.87698,"126":0.04294,"127":0.00859,"128":0.03435,"129":0.24046,"130":0.02576,"131":0.04723,"132":0.04723,"133":0.06012,"134":0.10735,"135":0.30058,"136":2.08688,"137":15.07194,"138":0.54963,"139":0.00859,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 65 66 67 68 69 70 71 73 75 76 77 78 81 83 84 85 88 91 92 93 94 95 97 99 105 115 140 141"},F:{"36":0.00429,"54":0.03006,"56":0.00429,"79":0.03435,"80":0.00429,"85":0.03865,"86":0.00429,"87":0.02576,"89":0.01718,"90":0.00859,"95":0.37787,"109":0.00429,"114":0.00429,"117":0.00429,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 82 83 84 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00429,"92":0.01718,"100":0.00429,"109":0.073,"118":0.00429,"122":0.00429,"123":0.03865,"126":0.01288,"127":0.00429,"129":0.00429,"131":0.00429,"132":0.00429,"133":0.00859,"134":0.00859,"135":0.01718,"136":0.42511,"137":2.61934,"138":0.23617,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 119 120 121 124 125 128 130"},E:{"14":0.00429,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1","5.1":0.00429,"13.1":0.01288,"14.1":0.00429,"15.1":0.01288,"15.2-15.3":0.00429,"15.4":0.01718,"15.5":0.00429,"15.6":0.09017,"16.0":0.00859,"16.1":0.01718,"16.2":0.00859,"16.3":0.01288,"16.4":0.00859,"16.5":0.01718,"16.6":0.08588,"17.0":0.00429,"17.1":0.09447,"17.2":0.03006,"17.3":0.01718,"17.4":0.02576,"17.5":0.06012,"17.6":0.15458,"18.0":0.03006,"18.1":0.08159,"18.2":0.04294,"18.3":0.11164,"18.4":0.12882,"18.5":1.33114,"26.0":0.00429},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00299,"5.0-5.1":0,"6.0-6.1":0.00599,"7.0-7.1":0.00599,"8.1-8.4":0,"9.0-9.2":0.00299,"9.3":0.01796,"10.0-10.2":0.0015,"10.3":0.02993,"11.0-11.2":0.19158,"11.3-11.4":0.01048,"12.0-12.1":0.00299,"12.2-12.5":0.10028,"13.0-13.1":0.0015,"13.2":0.00449,"13.3":0.00299,"13.4-13.7":0.01646,"14.0-14.4":0.03891,"14.5-14.8":0.03891,"15.0-15.1":0.02694,"15.2-15.3":0.02694,"15.4":0.03293,"15.5":0.03592,"15.6-15.8":0.46397,"16.0":0.06136,"16.1":0.12572,"16.2":0.06436,"16.3":0.11824,"16.4":0.02694,"16.5":0.04789,"16.6-16.7":0.58221,"17.0":0.03143,"17.1":0.05538,"17.2":0.0434,"17.3":0.06136,"17.4":0.10926,"17.5":0.22899,"17.6-17.7":0.59867,"18.0":0.14817,"18.1":0.33376,"18.2":0.17661,"18.3":0.75882,"18.4":0.80522,"18.5":9.43958,"26.0":0},P:{"4":0.14329,"21":0.01024,"22":0.02047,"23":0.02047,"24":0.02047,"25":0.04094,"26":0.04094,"27":0.12282,"28":1.11563,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.01024,"7.2-7.4":0.07165,"13.0":0.01024,"19.0":0.01024},I:{"0":0.09684,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.30812,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00664,"8":0.00664,"11":0.05973,_:"7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.38832},R:{_:"0"},M:{"0":0.10271},Q:{"14.9":0.01141},O:{"0":0.36518},H:{"0":0}}; +module.exports={C:{"48":0.0039,"51":0.0039,"52":0.02731,"56":0.0039,"59":0.0039,"62":0.0039,"68":0.0039,"71":0.0156,"83":0.0078,"100":0.0039,"101":0.0117,"114":0.0039,"115":0.33939,"117":0.0039,"118":0.03121,"119":0.0039,"120":0.0039,"121":0.0078,"122":0.0117,"123":0.0039,"124":0.02731,"125":0.83872,"126":0.74899,"127":0.0039,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 53 54 55 57 58 60 61 63 64 65 66 67 69 70 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 102 103 104 105 106 107 108 109 110 111 112 113 116 128 129 3.5 3.6"},D:{"22":0.0039,"26":0.0039,"34":0.0039,"38":0.0039,"39":0.0039,"43":0.0039,"44":0.0039,"45":0.0117,"46":0.0039,"49":0.05071,"51":0.0039,"64":0.0078,"65":0.0039,"66":0.0039,"68":0.0039,"69":0.0039,"70":0.0039,"74":0.02731,"78":0.0039,"79":0.01951,"80":0.0078,"81":0.0039,"84":0.0039,"85":0.0078,"86":0.0078,"87":0.0156,"88":0.0078,"89":0.0039,"90":0.02731,"91":0.03511,"92":0.0156,"93":0.0039,"94":0.0039,"96":0.0039,"97":0.0156,"98":0.0039,"99":0.0039,"100":0.0039,"101":0.0078,"102":0.08192,"103":0.11313,"104":0.0039,"105":0.04291,"106":0.14824,"107":0.0117,"108":0.03901,"109":2.64488,"110":0.0078,"111":0.0156,"112":0.02341,"113":0.01951,"114":0.15994,"115":0.0078,"116":0.23796,"117":0.0117,"118":0.06242,"119":0.05461,"120":0.12873,"121":0.08972,"122":0.18725,"123":0.53444,"124":11.7069,"125":4.75922,"126":0.0039,"127":0.0039,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 27 28 29 30 31 32 33 35 36 37 40 41 42 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 67 71 72 73 75 76 77 83 95 128"},F:{"36":0.0156,"54":0.0039,"56":0.0078,"66":0.0039,"68":0.0039,"70":0.0117,"77":0.0039,"79":0.03121,"82":0.0039,"84":0.0117,"85":0.07022,"86":0.0078,"89":0.0039,"95":0.40961,"102":0.0078,"106":0.0039,"107":0.22626,"108":0.04681,"109":1.65793,"110":0.14044,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 57 58 60 62 63 64 65 67 69 71 72 73 74 75 76 78 80 81 83 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0039,"18":0.0039,"89":0.0078,"92":0.0156,"100":0.0039,"106":0.0039,"109":0.03511,"114":0.0039,"116":0.0039,"117":0.0039,"118":0.0039,"119":0.0039,"120":0.0156,"121":0.0039,"122":0.0156,"123":0.05852,"124":2.13775,"125":1.18981,_:"12 13 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 107 108 110 111 112 113 115"},E:{"9":0.0039,"14":0.02341,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 17.6","5.1":0.30428,"9.1":0.0039,"12.1":0.0039,"13.1":0.02731,"14.1":0.02731,"15.1":0.0039,"15.2-15.3":0.0039,"15.4":0.02731,"15.5":0.01951,"15.6":0.14044,"16.0":0.0117,"16.1":0.10923,"16.2":0.03121,"16.3":0.05852,"16.4":0.05071,"16.5":0.04291,"16.6":0.14044,"17.0":0.03121,"17.1":0.07412,"17.2":0.06632,"17.3":0.10533,"17.4":1.02596,"17.5":0.11703},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00386,"5.0-5.1":0.00386,"6.0-6.1":0.00964,"7.0-7.1":0.01349,"8.1-8.4":0.00386,"9.0-9.2":0.00964,"9.3":0.04433,"10.0-10.2":0.00771,"10.3":0.06939,"11.0-11.2":0.10216,"11.3-11.4":0.01928,"12.0-12.1":0.01157,"12.2-12.5":0.2795,"13.0-13.1":0.00578,"13.2":0.02699,"13.3":0.01349,"13.4-13.7":0.06168,"14.0-14.4":0.10602,"14.5-14.8":0.16384,"15.0-15.1":0.07903,"15.2-15.3":0.08674,"15.4":0.09831,"15.5":0.12336,"15.6-15.8":1.11028,"16.0":0.25251,"16.1":0.52045,"16.2":0.25251,"16.3":0.43756,"16.4":0.09252,"16.5":0.18698,"16.6-16.7":1.49002,"17.0":0.16192,"17.1":0.26408,"17.2":0.27564,"17.3":0.50888,"17.4":11.55583,"17.5":0.81537,"17.6":0},P:{"4":0.11341,"20":0.02062,"21":0.04124,"22":0.07217,"23":0.18558,"24":0.23712,"25":1.55677,_:"5.0-5.4 8.2 9.2 14.0 15.0","6.2-6.4":0.01031,"7.2-7.4":0.06186,"10.1":0.02062,"11.1-11.2":0.01031,"12.0":0.01031,"13.0":0.01031,"16.0":0.01031,"17.0":0.01031,"18.0":0.04124,"19.0":0.02062},I:{"0":0.04252,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.38417,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00878,"7":0.00439,"8":0.02633,"9":0.00439,"10":0.00439,"11":0.05705,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.16254},R:{_:"0"},M:{"0":0.07318},Q:{"14.9":0.01829},O:{"0":0.23172},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LA.js b/node_modules/caniuse-lite/data/regions/LA.js index 58f35ba1d..61f7cb80a 100644 --- a/node_modules/caniuse-lite/data/regions/LA.js +++ b/node_modules/caniuse-lite/data/regions/LA.js @@ -1 +1 @@ -module.exports={C:{"78":0.00292,"101":0.00292,"106":0.00292,"107":0.00292,"111":0.00292,"115":0.08763,"118":1.38455,"124":0.00292,"125":0.01753,"127":0.00292,"128":0.00292,"130":0.00292,"133":0.00292,"135":0.00292,"136":0.00292,"137":0.00292,"138":0.03505,"139":0.49949,"140":0.04966,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 108 109 110 112 113 114 116 117 119 120 121 122 123 126 129 131 132 134 141 142 143 3.5 3.6"},D:{"39":0.01461,"40":0.01168,"41":0.01168,"42":0.01168,"43":0.01461,"44":0.01461,"45":0.01168,"46":0.01461,"47":0.02921,"48":0.00876,"49":0.01461,"50":0.01168,"51":0.01461,"52":0.01168,"53":0.01168,"54":0.01168,"55":0.01168,"56":0.01168,"57":0.01753,"58":0.01168,"59":0.01461,"60":0.01168,"65":0.00584,"68":0.00584,"70":0.01168,"77":0.00292,"78":0.00876,"79":0.00876,"80":0.00584,"83":0.00292,"84":0.00292,"86":0.00292,"87":0.01461,"89":0.00292,"90":0.00292,"91":0.00876,"92":0.00292,"96":0.00292,"97":0.00876,"98":0.03797,"99":0.03797,"101":0.00292,"103":0.00876,"104":0.07303,"105":0.02629,"106":0.01461,"107":0.01168,"108":0.0555,"109":0.49949,"110":0.00584,"111":0.0701,"112":0.02045,"114":0.02629,"115":0.00292,"116":0.03505,"117":0.00876,"118":0.00584,"119":0.00584,"120":0.01461,"121":0.01168,"122":0.08179,"123":0.00876,"124":0.04674,"125":0.52286,"126":0.01753,"127":0.01753,"128":0.04674,"129":0.01168,"130":0.02337,"131":0.08763,"132":0.02921,"133":0.06426,"134":0.21615,"135":0.15773,"136":1.5715,"137":11.31011,"138":0.52286,"139":0.01461,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 69 71 72 73 74 75 76 81 85 88 93 94 95 100 102 113 140 141"},F:{"89":0.01461,"95":0.00876,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.01168,"16":0.00292,"18":0.01753,"84":0.00292,"86":0.00584,"89":0.00292,"92":0.03505,"98":0.00584,"99":0.00584,"106":0.00584,"109":0.0555,"110":0.00876,"111":0.00584,"117":0.00292,"119":0.00292,"122":0.00292,"125":0.00876,"128":0.03505,"129":0.01168,"130":0.00292,"131":0.00584,"132":0.00292,"133":0.00584,"134":0.02045,"135":0.02921,"136":0.33007,"137":1.98044,"138":0.12268,_:"12 13 14 17 79 80 81 83 85 87 88 90 91 93 94 95 96 97 100 101 102 103 104 105 107 108 112 113 114 115 116 118 120 121 123 124 126 127"},E:{"14":0.00292,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.3","13.1":0.00292,"14.1":0.00876,"15.5":0.00292,"15.6":0.02337,"16.0":0.01461,"16.1":0.00292,"16.2":0.00292,"16.4":0.00292,"16.5":0.00584,"16.6":0.19571,"17.0":0.00292,"17.1":0.02045,"17.2":0.00292,"17.3":0.00584,"17.4":0.01461,"17.5":0.01753,"17.6":0.06718,"18.0":0.00876,"18.1":0.06134,"18.2":0.01168,"18.3":0.03213,"18.4":0.02629,"18.5":0.33884,"26.0":0.00584},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00291,"5.0-5.1":0,"6.0-6.1":0.00582,"7.0-7.1":0.00582,"8.1-8.4":0,"9.0-9.2":0.00291,"9.3":0.01747,"10.0-10.2":0.00146,"10.3":0.02911,"11.0-11.2":0.1863,"11.3-11.4":0.01019,"12.0-12.1":0.00291,"12.2-12.5":0.09751,"13.0-13.1":0.00146,"13.2":0.00437,"13.3":0.00291,"13.4-13.7":0.01601,"14.0-14.4":0.03784,"14.5-14.8":0.03784,"15.0-15.1":0.0262,"15.2-15.3":0.0262,"15.4":0.03202,"15.5":0.03493,"15.6-15.8":0.45119,"16.0":0.05967,"16.1":0.12226,"16.2":0.06258,"16.3":0.11498,"16.4":0.0262,"16.5":0.04657,"16.6-16.7":0.56617,"17.0":0.03056,"17.1":0.05385,"17.2":0.04221,"17.3":0.05967,"17.4":0.10625,"17.5":0.22268,"17.6-17.7":0.58218,"18.0":0.14409,"18.1":0.32456,"18.2":0.17174,"18.3":0.73791,"18.4":0.78303,"18.5":9.17948,"26.0":0},P:{"4":0.01026,"21":0.03079,"22":0.05132,"23":0.04106,"24":0.02053,"25":0.12317,"26":0.08212,"27":0.24635,"28":1.54995,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.05132,"9.2":0.01026,"11.1-11.2":0.01026,"17.0":0.02053,"19.0":0.01026},I:{"0":0.07067,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.3044,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01132,"9":0.01132,"11":0.06791,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.87645},R:{_:"0"},M:{"0":0.10619},Q:{"14.9":0.15574},O:{"0":2.10954},H:{"0":0}}; +module.exports={C:{"2":0.00187,"3":0.00187,"10":0.00187,"28":0.00187,"29":0.00187,"31":0.00187,"34":0.00187,"38":0.00187,"40":0.00373,"41":0.00187,"66":0.0056,"72":0.00187,"78":0.03171,"94":0.00187,"101":0.00187,"106":0.0373,"107":0.00187,"108":0.00187,"111":0.00187,"112":0.00187,"115":0.05782,"119":0.01306,"120":0.00187,"122":0.00187,"124":0.0429,"125":0.26856,"126":0.23499,"127":0.00187,_:"4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 30 32 33 35 36 37 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 102 103 104 105 109 110 113 114 116 117 118 121 123 128 129 3.5","3.6":0.00373},D:{"11":0.00187,"19":0.00187,"21":0.00187,"31":0.00187,"33":0.00187,"36":0.00187,"37":0.04849,"38":0.00187,"39":0.00187,"40":0.00187,"41":0.00373,"42":0.00187,"43":0.00746,"44":0.00746,"45":0.0056,"46":0.0056,"47":0.0056,"48":0.00187,"49":0.00187,"51":0.00933,"56":0.00187,"58":0.06528,"62":0.00187,"66":0.00187,"68":0.03544,"69":0.00187,"70":0.01679,"71":0.00187,"72":0.00187,"74":0.00373,"75":0.00187,"76":0.00373,"77":0.00187,"78":0.00187,"79":0.00746,"80":0.00187,"81":0.01306,"83":0.00187,"84":0.00187,"86":0.02798,"87":0.05782,"88":0.00373,"89":0.00187,"90":0.0056,"91":0.00187,"92":0.00187,"96":0.00933,"97":0.00373,"98":0.00187,"99":0.06714,"100":0.00373,"101":0.0056,"102":0.02798,"103":0.01865,"104":0.0056,"105":0.00746,"106":0.00746,"107":0.0056,"108":0.00373,"109":0.91572,"110":0.00373,"111":0.08579,"112":0.00746,"113":0.00373,"114":0.00746,"115":0.0056,"116":0.03357,"117":0.00746,"118":0.00933,"119":0.02425,"120":0.11004,"121":0.09512,"122":0.0802,"123":0.22753,"124":6.59837,"125":3.03622,"126":0.0056,"127":0.01306,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 20 22 23 24 25 26 27 28 29 30 32 34 35 50 52 53 54 55 57 59 60 61 63 64 65 67 73 85 93 94 95 128"},F:{"31":0.00373,"83":0.00187,"95":0.01492,"107":0.03357,"108":0.00187,"109":0.15293,"110":0.02052,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00187},B:{"12":0.0056,"13":0.00187,"14":0.00187,"16":0.00187,"17":0.00187,"18":0.02052,"84":0.00187,"89":0.00187,"90":0.00187,"92":0.03171,"100":0.00187,"102":0.00187,"105":0.01679,"109":0.03171,"110":0.00746,"111":0.00187,"112":0.05595,"113":0.00187,"115":0.0056,"116":0.00187,"117":0.01119,"118":0.02425,"119":0.00933,"120":0.01119,"121":0.00746,"122":0.02611,"123":0.02052,"124":1.1619,"125":0.8635,_:"15 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 103 104 106 107 108 114"},E:{"9":0.01492,"14":0.00933,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 15.2-15.3 17.6","5.1":0.00187,"9.1":0.00187,"12.1":0.00187,"13.1":0.00746,"14.1":0.00933,"15.1":0.00187,"15.4":0.0056,"15.5":0.01679,"15.6":0.07647,"16.0":0.02052,"16.1":0.02798,"16.2":0.00373,"16.3":0.0429,"16.4":0.00373,"16.5":0.01679,"16.6":0.04103,"17.0":0.01492,"17.1":0.01119,"17.2":0.00746,"17.3":0.01865,"17.4":0.61918,"17.5":0.0802},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00357,"5.0-5.1":0.00357,"6.0-6.1":0.00893,"7.0-7.1":0.01251,"8.1-8.4":0.00357,"9.0-9.2":0.00893,"9.3":0.04109,"10.0-10.2":0.00715,"10.3":0.06431,"11.0-11.2":0.09468,"11.3-11.4":0.01786,"12.0-12.1":0.01072,"12.2-12.5":0.25903,"13.0-13.1":0.00536,"13.2":0.02501,"13.3":0.01251,"13.4-13.7":0.05717,"14.0-14.4":0.09825,"14.5-14.8":0.15185,"15.0-15.1":0.07324,"15.2-15.3":0.08039,"15.4":0.09111,"15.5":0.11433,"15.6-15.8":1.02899,"16.0":0.23402,"16.1":0.48234,"16.2":0.23402,"16.3":0.40552,"16.4":0.08575,"16.5":0.17329,"16.6-16.7":1.38092,"17.0":0.15006,"17.1":0.24474,"17.2":0.25546,"17.3":0.47162,"17.4":10.70974,"17.5":0.75567,"17.6":0},P:{"4":0.04071,"20":0.06106,"21":0.10176,"22":0.18317,"23":0.22388,"24":0.39687,"25":1.37379,"5.0-5.4":0.01018,"6.2-6.4":0.01018,"7.2-7.4":0.15264,_:"8.2 10.1 12.0","9.2":0.01018,"11.1-11.2":0.02035,"13.0":0.01018,"14.0":0.02035,"15.0":0.01018,"16.0":0.05088,"17.0":0.01018,"18.0":0.01018,"19.0":0.06106},I:{"0":0.15396,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00034},K:{"0":0.27659,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.0051,"7":0.0051,"8":0.07644,"9":0.01529,"10":0.01274,"11":0.0637,_:"5.5"},S:{"2.5":0.00814,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.68425},R:{_:"0"},M:{"0":0.08135},Q:{"14.9":0.04068},O:{"0":2.06629},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LB.js b/node_modules/caniuse-lite/data/regions/LB.js index c4c4bae4e..e3f4e97f9 100644 --- a/node_modules/caniuse-lite/data/regions/LB.js +++ b/node_modules/caniuse-lite/data/regions/LB.js @@ -1 +1 @@ -module.exports={C:{"52":0.00225,"68":0.00225,"78":0.00225,"91":0.00451,"115":0.12392,"127":0.00225,"128":0.01352,"135":0.00676,"136":0.00676,"137":0.02929,"138":0.02478,"139":0.58578,"140":0.10139,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"31":0.00225,"34":0.00225,"38":0.00225,"49":0.00901,"58":0.14194,"65":0.00451,"66":0.00225,"67":0.00225,"69":0.00225,"70":0.00225,"72":0.00225,"73":0.00225,"79":0.02253,"80":0.00451,"81":0.00451,"83":0.00225,"84":0.00225,"87":0.02028,"88":0.00225,"89":0.00901,"90":0.00225,"91":0.00676,"96":0.00451,"97":0.00225,"98":0.01802,"99":0.00225,"100":0.00225,"101":0.00451,"103":0.01127,"104":0.00225,"106":0.00225,"107":0.00225,"108":0.00901,"109":0.72321,"110":0.00225,"111":0.01127,"114":0.00901,"116":0.11265,"117":0.00225,"118":0.00225,"119":0.01352,"120":0.02253,"121":0.01802,"122":0.0338,"123":0.00451,"124":0.01352,"125":3.36373,"126":0.01802,"127":0.01577,"128":0.03154,"129":0.02929,"130":0.01127,"131":0.06083,"132":0.06083,"133":0.02028,"134":0.04957,"135":0.12166,"136":1.26619,"137":7.70977,"138":0.27937,"139":0.00451,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 59 60 61 62 63 64 68 71 74 75 76 77 78 85 86 92 93 94 95 102 105 112 113 115 140 141"},F:{"79":0.00225,"89":0.01802,"90":0.00451,"95":0.0383,"102":0.00225,"109":0.00225,"114":0.00451,"117":0.00901,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00225,"89":0.00451,"92":0.01127,"100":0.00225,"109":0.01802,"110":0.00225,"114":0.01577,"122":0.00225,"124":0.00225,"126":0.00225,"129":0.00225,"130":0.00451,"131":0.00451,"132":0.01127,"133":0.00451,"134":0.00901,"135":0.01577,"136":0.27036,"137":1.43516,"138":0.11265,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 119 120 121 123 125 127 128"},E:{"14":0.00225,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 26.0","5.1":0.0383,"13.1":0.00901,"14.1":0.01802,"15.1":0.00225,"15.4":0.00225,"15.5":0.00225,"15.6":0.14645,"16.0":0.00451,"16.1":0.00451,"16.2":0.00225,"16.3":0.00901,"16.4":0.00225,"16.5":0.00451,"16.6":0.07435,"17.0":0.00451,"17.1":0.05182,"17.2":0.00901,"17.3":0.00451,"17.4":0.00676,"17.5":0.0383,"17.6":0.04506,"18.0":0.01127,"18.1":0.01802,"18.2":0.00451,"18.3":0.04731,"18.4":0.04506,"18.5":0.52946},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00234,"5.0-5.1":0,"6.0-6.1":0.00467,"7.0-7.1":0.00467,"8.1-8.4":0,"9.0-9.2":0.00234,"9.3":0.01402,"10.0-10.2":0.00117,"10.3":0.02336,"11.0-11.2":0.14954,"11.3-11.4":0.00818,"12.0-12.1":0.00234,"12.2-12.5":0.07827,"13.0-13.1":0.00117,"13.2":0.0035,"13.3":0.00234,"13.4-13.7":0.01285,"14.0-14.4":0.03037,"14.5-14.8":0.03037,"15.0-15.1":0.02103,"15.2-15.3":0.02103,"15.4":0.0257,"15.5":0.02804,"15.6-15.8":0.36216,"16.0":0.0479,"16.1":0.09813,"16.2":0.05023,"16.3":0.09229,"16.4":0.02103,"16.5":0.03738,"16.6-16.7":0.45445,"17.0":0.02453,"17.1":0.04323,"17.2":0.03388,"17.3":0.0479,"17.4":0.08528,"17.5":0.17874,"17.6-17.7":0.4673,"18.0":0.11566,"18.1":0.26052,"18.2":0.13785,"18.3":0.5923,"18.4":0.62852,"18.5":7.36814,"26.0":0},P:{"4":0.0513,"20":0.01026,"21":0.03078,"22":0.03078,"23":0.06156,"24":0.06156,"25":0.16416,"26":0.12312,"27":0.2052,"28":2.90361,_:"5.0-5.4 8.2 9.2 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.04104,"7.2-7.4":0.06156,"10.1":0.01026,"11.1-11.2":0.01026,"13.0":0.01026,"17.0":0.04104,"19.0":0.01026},I:{"0":0.03094,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.25565,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00225,"11":0.00676,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.56448},R:{_:"0"},M:{"0":0.10071},Q:{_:"14.9"},O:{"0":0.07747},H:{"0":0}}; +module.exports={C:{"12":0.01254,"47":0.00179,"52":0.00358,"66":0.00179,"68":0.00358,"78":0.01254,"88":0.00358,"91":0.00717,"103":0.00179,"115":0.16845,"116":0.00179,"120":0.00179,"121":0.00179,"122":0.01613,"123":0.00179,"124":0.01792,"125":0.37811,"126":0.26163,"127":0.00179,_:"2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 114 117 118 119 128 129 3.5 3.6"},D:{"34":0.00358,"36":0.00179,"38":0.00717,"42":0.00179,"43":0.00179,"49":0.00896,"56":0.00179,"58":0.12902,"61":0.00538,"63":0.00179,"65":0.00179,"66":0.00358,"67":0.00358,"68":0.00717,"69":0.00179,"70":0.00358,"71":0.00179,"73":0.00358,"74":0.00179,"75":0.00179,"76":0.00179,"77":0.00179,"78":0.00179,"79":0.01254,"80":0.00179,"81":0.01971,"83":0.02509,"84":0.00179,"86":0.00896,"87":0.03046,"88":0.00717,"89":0.00179,"90":0.00358,"91":0.0233,"92":0.00179,"94":0.00358,"95":0.00896,"96":0.00717,"97":0.00358,"98":0.03046,"99":0.01254,"100":0.00179,"101":0.04122,"102":0.00538,"103":0.04838,"104":0.00179,"105":0.00538,"106":0.00358,"107":0.00717,"108":0.01792,"109":1.15942,"110":0.00538,"111":0.00538,"112":0.00538,"113":0.00358,"114":0.00538,"115":0.00538,"116":0.06272,"117":0.00896,"118":0.00538,"119":0.05018,"120":0.07168,"121":0.02688,"122":0.1111,"123":0.25267,"124":6.06771,"125":2.56077,"126":0.01075,"127":0.00717,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 39 40 41 44 45 46 47 48 50 51 52 53 54 55 57 59 60 62 64 72 85 93 128"},F:{"25":0.00179,"46":0.00179,"79":0.01434,"82":0.00538,"86":0.00179,"95":0.01434,"102":0.00179,"107":0.03046,"108":0.00538,"109":0.31002,"110":0.01792,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00179,"13":0.00179,"14":0.00179,"15":0.00358,"16":0.00358,"17":0.00179,"18":0.00717,"84":0.00179,"89":0.00179,"90":0.00179,"92":0.01434,"100":0.00358,"109":0.04301,"118":0.00179,"119":0.00358,"120":0.00358,"121":0.00717,"122":0.01792,"123":0.11648,"124":0.95155,"125":0.53939,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117"},E:{"9":0.00179,"13":0.00179,"14":0.00358,"15":0.00358,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00538,"11.1":0.00179,"12.1":0.00179,"13.1":0.01254,"14.1":0.04122,"15.1":0.00538,"15.2-15.3":0.01254,"15.4":0.00717,"15.5":0.06093,"15.6":0.07168,"16.0":0.00358,"16.1":0.01792,"16.2":0.01075,"16.3":0.03584,"16.4":0.01075,"16.5":0.0233,"16.6":0.12186,"17.0":0.01434,"17.1":0.02688,"17.2":0.0215,"17.3":0.0215,"17.4":0.40141,"17.5":0.07885},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00273,"5.0-5.1":0.00273,"6.0-6.1":0.00682,"7.0-7.1":0.00954,"8.1-8.4":0.00273,"9.0-9.2":0.00682,"9.3":0.03135,"10.0-10.2":0.00545,"10.3":0.04907,"11.0-11.2":0.07225,"11.3-11.4":0.01363,"12.0-12.1":0.00818,"12.2-12.5":0.19766,"13.0-13.1":0.00409,"13.2":0.01908,"13.3":0.00954,"13.4-13.7":0.04362,"14.0-14.4":0.07498,"14.5-14.8":0.11587,"15.0-15.1":0.05589,"15.2-15.3":0.06134,"15.4":0.06952,"15.5":0.08724,"15.6-15.8":0.78519,"16.0":0.17858,"16.1":0.36806,"16.2":0.17858,"16.3":0.30944,"16.4":0.06543,"16.5":0.13223,"16.6-16.7":1.05374,"17.0":0.11451,"17.1":0.18676,"17.2":0.19494,"17.3":0.35988,"17.4":8.17228,"17.5":0.57663,"17.6":0},P:{"4":0.29547,"20":0.06113,"21":0.26491,"22":0.34642,"23":0.43811,"24":0.65208,"25":5.16567,"5.0-5.4":0.03057,"6.2-6.4":0.05094,"7.2-7.4":0.45849,_:"8.2","9.2":0.02038,"10.1":0.01019,"11.1-11.2":0.05094,"12.0":0.01019,"13.0":0.05094,"14.0":0.05094,"15.0":0.03057,"16.0":0.07132,"17.0":0.15283,"18.0":0.03057,"19.0":0.0917},I:{"0":0.11445,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00025},K:{"0":0.73863,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00184,"9":0.00184,"11":0.06442,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.39597},R:{_:"0"},M:{"0":0.1149},Q:{_:"14.9"},O:{"0":0.31187},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LC.js b/node_modules/caniuse-lite/data/regions/LC.js index 4a9cd7c04..44cfbe3c3 100644 --- a/node_modules/caniuse-lite/data/regions/LC.js +++ b/node_modules/caniuse-lite/data/regions/LC.js @@ -1 +1 @@ -module.exports={C:{"94":0.00789,"95":0.00395,"121":0.00395,"125":0.00395,"128":0.01184,"132":0.02368,"135":0.00395,"136":0.00395,"138":0.01184,"139":0.4459,"140":0.0513,"141":0.00395,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 122 123 124 126 127 129 130 131 133 134 137 142 143 3.5 3.6"},D:{"39":0.01578,"40":0.02762,"41":0.02368,"42":0.01973,"43":0.01184,"44":0.01578,"45":0.02368,"46":0.02368,"47":0.01184,"48":0.01184,"49":0.01973,"50":0.02368,"51":0.01578,"52":0.01578,"53":0.01973,"54":0.01184,"55":0.01578,"56":0.01578,"57":0.02368,"58":0.01578,"59":0.01578,"60":0.02368,"74":0.03157,"76":0.01578,"79":0.01578,"83":0.01184,"87":0.01578,"93":0.01184,"94":0.00395,"103":0.15784,"104":0.00395,"108":0.00789,"109":0.21703,"110":0.00395,"111":0.00395,"112":0.00395,"113":0.00395,"116":0.02368,"118":0.00789,"119":0.01184,"120":0.00395,"122":0.03157,"123":0.00395,"124":0.00395,"125":8.78774,"126":0.07103,"127":0.00395,"128":0.02762,"129":0.00395,"130":0.00395,"131":0.01578,"132":0.04341,"133":0.02368,"134":0.08681,"135":0.21308,"136":3.58297,"137":13.18359,"138":0.51298,"139":0.11443,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 75 77 78 80 81 84 85 86 88 89 90 91 92 95 96 97 98 99 100 101 102 105 106 107 114 115 117 121 140 141"},F:{"89":0.01184,"114":0.00789,"117":0.00395,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00395,"92":0.00395,"109":0.01184,"122":0.00395,"126":0.00395,"128":0.00395,"129":0.00789,"130":0.04735,"131":0.00789,"132":0.01184,"133":0.01184,"134":0.32752,"135":0.04735,"136":1.01412,"137":3.58691,"138":0.32357,_:"12 13 14 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 127"},E:{"14":0.01184,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.5 16.1 16.2 26.0","13.1":0.00395,"14.1":0.01184,"15.1":0.00395,"15.4":0.00789,"15.6":0.05919,"16.0":0.00395,"16.3":0.00789,"16.4":0.00395,"16.5":0.00395,"16.6":0.15784,"17.0":0.00395,"17.1":0.07103,"17.2":0.00395,"17.3":0.00395,"17.4":0.01578,"17.5":0.00789,"17.6":0.14995,"18.0":0.00789,"18.1":0.01184,"18.2":0.00789,"18.3":0.05524,"18.4":0.05524,"18.5":0.63531},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00268,"5.0-5.1":0,"6.0-6.1":0.00536,"7.0-7.1":0.00536,"8.1-8.4":0,"9.0-9.2":0.00268,"9.3":0.01608,"10.0-10.2":0.00134,"10.3":0.02681,"11.0-11.2":0.17157,"11.3-11.4":0.00938,"12.0-12.1":0.00268,"12.2-12.5":0.0898,"13.0-13.1":0.00134,"13.2":0.00402,"13.3":0.00268,"13.4-13.7":0.01474,"14.0-14.4":0.03485,"14.5-14.8":0.03485,"15.0-15.1":0.02413,"15.2-15.3":0.02413,"15.4":0.02949,"15.5":0.03217,"15.6-15.8":0.41551,"16.0":0.05495,"16.1":0.11259,"16.2":0.05764,"16.3":0.10589,"16.4":0.02413,"16.5":0.04289,"16.6-16.7":0.5214,"17.0":0.02815,"17.1":0.04959,"17.2":0.03887,"17.3":0.05495,"17.4":0.09785,"17.5":0.20507,"17.6-17.7":0.53614,"18.0":0.1327,"18.1":0.2989,"18.2":0.15816,"18.3":0.67956,"18.4":0.72111,"18.5":8.45362,"26.0":0},P:{"4":0.02093,"20":0.03139,"21":0.04186,"22":0.07325,"23":0.01046,"24":0.08371,"25":0.07325,"26":0.05232,"27":0.28253,"28":4.64607,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 16.0 17.0 19.0","7.2-7.4":0.18835,"13.0":0.06278,"15.0":0.01046,"18.0":0.01046},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.16346,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.77601},R:{_:"0"},M:{"0":0.58724},Q:{_:"14.9"},O:{"0":0.03027},H:{"0":0}}; +module.exports={C:{"78":0.00393,"88":0.00393,"95":0.00393,"109":0.00785,"115":0.04711,"121":0.00393,"122":0.00393,"124":0.02748,"125":0.24734,"126":0.29052,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 123 127 128 129 3.5 3.6"},D:{"49":0.00785,"69":0.01178,"70":0.00393,"76":0.05496,"77":0.01963,"79":0.01963,"81":0.08245,"83":0.00393,"86":0.09815,"87":0.01178,"88":0.01963,"91":0.00785,"93":0.03141,"94":0.00393,"98":0.00393,"99":0.00393,"102":0.00393,"103":0.19237,"105":0.01963,"106":0.00393,"107":0.00393,"108":0.00393,"109":0.36119,"110":0.00785,"111":0.02356,"114":0.00785,"116":0.07459,"117":0.00393,"118":0.12563,"119":0.14134,"120":3.86318,"121":1.17387,"122":0.1963,"123":1.64499,"124":13.88234,"125":4.18119,"126":0.14526,"127":0.00785,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 71 72 73 74 75 78 80 84 85 89 90 92 95 96 97 100 101 104 112 113 115 128"},F:{"106":0.00393,"107":0.05104,"108":0.03141,"109":0.93439,"110":0.09422,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00393,"92":0.11778,"108":0.00393,"109":0.04711,"111":0.00393,"114":0.16882,"116":0.02748,"119":0.01178,"120":0.00393,"121":0.0157,"122":0.03926,"123":0.11778,"124":3.09761,"125":1.72744,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 112 113 115 117 118"},E:{"14":0.00393,"15":0.00393,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.0157,"14.1":0.07067,"15.1":0.00393,"15.2-15.3":0.01963,"15.4":0.00393,"15.5":0.02356,"15.6":0.07067,"16.0":0.10993,"16.1":0.01178,"16.2":0.00393,"16.3":0.02748,"16.4":0.00785,"16.5":0.00393,"16.6":0.3769,"17.0":0.0903,"17.1":0.02748,"17.2":0.20808,"17.3":0.0157,"17.4":0.65564,"17.5":0.09422},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00282,"5.0-5.1":0.00282,"6.0-6.1":0.00706,"7.0-7.1":0.00988,"8.1-8.4":0.00282,"9.0-9.2":0.00706,"9.3":0.03247,"10.0-10.2":0.00565,"10.3":0.05083,"11.0-11.2":0.07483,"11.3-11.4":0.01412,"12.0-12.1":0.00847,"12.2-12.5":0.20472,"13.0-13.1":0.00424,"13.2":0.01977,"13.3":0.00988,"13.4-13.7":0.04518,"14.0-14.4":0.07765,"14.5-14.8":0.12001,"15.0-15.1":0.05789,"15.2-15.3":0.06353,"15.4":0.072,"15.5":0.09036,"15.6-15.8":0.81321,"16.0":0.18495,"16.1":0.38119,"16.2":0.18495,"16.3":0.32049,"16.4":0.06777,"16.5":0.13695,"16.6-16.7":1.09134,"17.0":0.11859,"17.1":0.19342,"17.2":0.20189,"17.3":0.37272,"17.4":8.46392,"17.5":0.5972,"17.6":0},P:{"4":0.04244,"20":0.02122,"21":0.04244,"22":0.11671,"23":0.14854,"24":0.25464,"25":4.11669,"5.0-5.4":0.01061,"6.2-6.4":0.03183,"7.2-7.4":0.41379,_:"8.2 9.2 10.1 12.0 13.0","11.1-11.2":0.02122,"14.0":0.01061,"15.0":0.02122,"16.0":0.01061,"17.0":0.01061,"18.0":0.01061,"19.0":0.03183},I:{"0":0.0121,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.28553,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00785,"11":0.00785,_:"6 7 8 9 5.5"},S:{"2.5":0.00608,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.94438},R:{_:"0"},M:{"0":0.13973},Q:{_:"14.9"},O:{"0":0.05468},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LI.js b/node_modules/caniuse-lite/data/regions/LI.js index 781cbc5de..d99946115 100644 --- a/node_modules/caniuse-lite/data/regions/LI.js +++ b/node_modules/caniuse-lite/data/regions/LI.js @@ -1 +1 @@ -module.exports={C:{"3":0.15313,"66":0.00666,"107":0.00666,"115":0.59922,"125":0.02663,"127":1.28499,"128":0.07324,"133":0.00666,"135":0.00666,"136":0.01997,"137":0.07324,"138":0.11984,"139":3.60864,"140":0.75235,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 134 141 142 143 3.5 3.6"},D:{"39":0.18642,"41":0.00666,"48":1.33826,"54":0.00666,"76":0.00666,"78":0.39948,"79":0.11984,"80":0.01332,"83":0.03995,"86":0.89217,"88":0.00666,"90":0.00666,"91":0.00666,"96":0.23969,"97":0.00666,"98":0.23303,"99":0.08655,"103":0.01332,"104":0.30627,"105":0.61919,"106":0.35287,"107":0.07324,"108":0.92546,"109":1.94414,"110":0.39282,"111":0.04661,"112":0.24635,"116":0.2064,"117":0.00666,"119":0.01997,"120":0.00666,"121":0.01332,"122":0.06658,"123":0.01332,"124":0.5859,"125":0.09321,"126":0.00666,"127":0.01997,"128":0.0799,"129":0.01997,"130":0.07324,"131":0.00666,"132":0.2064,"133":0.03995,"134":0.44609,"135":0.3329,"136":3.15589,"137":15.69291,"138":0.62585,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 43 44 45 46 47 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 81 84 85 87 89 92 93 94 95 100 101 102 113 114 115 118 139 140 141"},F:{"84":0.00666,"91":0.48603,"92":0.01332,"93":0.40614,"94":0.00666,"95":0.00666,"100":0.00666,"117":0.19974,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1","9.5-9.6":0.01332},B:{"18":0.00666,"98":0.04661,"99":0.01332,"106":0.34622,"107":0.15313,"108":0.00666,"122":0.03995,"131":0.01332,"133":0.57925,"134":0.05992,"135":0.07324,"136":1.14518,"137":10.01363,"138":0.77233,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 109 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{"4":0.21306,"13":0.01332,_:"0 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 13.1 14.1 15.2-15.3 15.4 15.5 17.0 17.3 26.0","10.1":0.00666,"12.1":0.01997,"15.1":0.01332,"15.6":0.21306,"16.0":0.13316,"16.1":0.00666,"16.2":0.00666,"16.3":0.01332,"16.4":0.01332,"16.5":0.02663,"16.6":0.03995,"17.1":0.13316,"17.2":0.03329,"17.4":0.07324,"17.5":0.04661,"17.6":0.5393,"18.0":0.01997,"18.1":0.01332,"18.2":0.02663,"18.3":0.25966,"18.4":0.07324,"18.5":1.65118},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00346,"5.0-5.1":0,"6.0-6.1":0.00692,"7.0-7.1":0.00692,"8.1-8.4":0,"9.0-9.2":0.00346,"9.3":0.02077,"10.0-10.2":0.00173,"10.3":0.03462,"11.0-11.2":0.22155,"11.3-11.4":0.01212,"12.0-12.1":0.00346,"12.2-12.5":0.11597,"13.0-13.1":0.00173,"13.2":0.00519,"13.3":0.00346,"13.4-13.7":0.01904,"14.0-14.4":0.045,"14.5-14.8":0.045,"15.0-15.1":0.03115,"15.2-15.3":0.03115,"15.4":0.03808,"15.5":0.04154,"15.6-15.8":0.53655,"16.0":0.07096,"16.1":0.14539,"16.2":0.07443,"16.3":0.13673,"16.4":0.03115,"16.5":0.05539,"16.6-16.7":0.67329,"17.0":0.03635,"17.1":0.06404,"17.2":0.05019,"17.3":0.07096,"17.4":0.12635,"17.5":0.26482,"17.6-17.7":0.69233,"18.0":0.17135,"18.1":0.38597,"18.2":0.20424,"18.3":0.87753,"18.4":0.93118,"18.5":10.91629,"26.0":0},P:{"4":0.36252,"25":0.01036,"28":2.403,_:"20 21 22 23 24 26 27 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","7.2-7.4":0.02072,"18.0":0.01036,"19.0":0.01036},I:{"0":0.20685,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00017},K:{"0":0.0635,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.63132,"7":0.72151,"8":2.31784,"9":0.51407,"10":1.44302,"11":0.17136,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":10.89219},R:{_:"0"},M:{"0":2.27256},Q:{"14.9":0.00668},O:{"0":0.05013},H:{"0":0}}; +module.exports={C:{"2":0.01948,"3":0.02597,"4":0.02597,"5":0.01948,"6":0.00649,"9":0.00649,"10":0.00649,"11":0.01948,"12":0.01299,"14":0.00649,"15":0.00649,"16":0.01299,"17":0.01948,"18":0.00649,"19":0.01299,"20":0.01299,"21":0.01299,"23":0.00649,"24":0.01299,"25":0.01948,"26":0.00649,"27":0.00649,"28":0.00649,"29":0.00649,"30":0.01299,"31":0.03247,"32":0.01299,"33":0.00649,"34":0.01299,"35":0.01299,"36":0.01299,"37":0.01299,"38":0.04545,"39":0.01948,"40":0.04545,"41":0.01948,"43":0.00649,"44":0.01948,"46":0.00649,"51":0.00649,"52":0.00649,"56":0.00649,"75":0.00649,"91":0.00649,"94":0.00649,"102":0.00649,"104":0.00649,"105":0.03896,"106":0.03247,"107":0.01299,"108":0.03896,"109":0.0974,"110":0.04545,"111":0.04545,"112":0.01948,"113":0.00649,"115":1.28561,"119":0.01299,"121":0.00649,"123":0.01948,"124":0.29219,"125":4.0841,"126":3.33091,"127":0.01299,_:"7 8 13 22 42 45 47 48 49 50 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 95 96 97 98 99 100 101 103 114 116 117 118 120 122 128 129","3.5":0.01948,"3.6":0.04545},D:{"4":0.00649,"6":0.00649,"7":0.01299,"8":0.00649,"10":0.01299,"11":0.00649,"12":0.00649,"14":0.00649,"16":0.00649,"17":0.00649,"18":0.00649,"19":0.02597,"20":0.00649,"21":0.01948,"22":0.00649,"23":0.00649,"24":0.00649,"25":0.01299,"26":0.01299,"27":0.01299,"28":0.01948,"29":0.01299,"30":0.01948,"31":0.01299,"32":0.01299,"33":0.02597,"34":0.01948,"35":0.01948,"36":0.01948,"37":0.04545,"38":0.02597,"39":0.03896,"40":0.04545,"41":0.05194,"42":0.06493,"43":0.07792,"44":0.11038,"45":0.11038,"46":0.08441,"47":0.06493,"49":0.05194,"51":0.14285,"64":0.00649,"69":0.00649,"70":0.04545,"73":0.01299,"79":0.13635,"86":0.08441,"87":0.12986,"88":0.00649,"90":0.00649,"92":0.01299,"93":0.00649,"103":0.01299,"104":0.00649,"105":0.01948,"106":0.68177,"107":0.50645,"108":2.05179,"109":2.21411,"110":0.3701,"111":0.03247,"112":0.31816,"115":0.01948,"116":2.46734,"117":0.00649,"118":0.05194,"119":0.0909,"120":0.15583,"121":2.94133,"122":0.0909,"123":0.59086,"124":13.06392,"125":4.51913,_:"5 9 13 15 48 50 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 71 72 74 75 76 77 78 80 81 83 84 85 89 91 94 95 96 97 98 99 100 101 102 113 114 126 127 128"},F:{"11":0.00649,"12":0.00649,"20":0.00649,"24":0.00649,"26":0.00649,"28":0.00649,"29":0.00649,"30":0.00649,"31":0.05844,"32":0.02597,"33":0.01299,"86":0.12337,"91":0.01948,"93":0.01299,"95":0.01948,"107":0.24673,"109":1.12978,"110":0.24024,_:"9 15 16 17 18 19 21 22 23 25 27 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 92 94 96 97 98 99 100 101 102 103 104 105 106 108 10.5 10.6 11.6","9.5-9.6":0.01299,"10.0-10.1":0.00649,"11.1":0.00649,"11.5":0.00649,"12.1":0.02597},B:{"12":0.02597,"92":0.00649,"103":0.00649,"106":0.00649,"107":0.0974,"108":0.00649,"109":0.03896,"111":0.00649,"113":0.01948,"115":0.00649,"119":0.02597,"120":0.1883,"121":0.03247,"122":0.01948,"123":0.24024,"124":5.46711,"125":3.4348,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105 110 112 114 116 117 118"},E:{"4":0.01948,"5":0.00649,"6":0.01299,"7":0.00649,"8":0.02597,"9":0.25323,_:"0 10 11 12 13 14 15 7.1 9.1 10.1 11.1 17.6","3.1":0.00649,"3.2":0.00649,"5.1":0.02597,"6.1":0.00649,"12.1":0.01948,"13.1":0.03247,"14.1":3.83736,"15.1":0.01948,"15.2-15.3":0.00649,"15.4":0.02597,"15.5":0.01299,"15.6":0.2792,"16.0":0.26621,"16.1":0.03247,"16.2":0.01299,"16.3":0.07142,"16.4":0.01299,"16.5":0.08441,"16.6":0.37659,"17.0":0.01948,"17.1":0.03247,"17.2":0.07792,"17.3":0.14285,"17.4":1.69467,"17.5":0.29219},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00303,"5.0-5.1":0.00303,"6.0-6.1":0.00758,"7.0-7.1":0.01061,"8.1-8.4":0.00303,"9.0-9.2":0.00758,"9.3":0.03488,"10.0-10.2":0.00607,"10.3":0.05459,"11.0-11.2":0.08037,"11.3-11.4":0.01516,"12.0-12.1":0.0091,"12.2-12.5":0.21988,"13.0-13.1":0.00455,"13.2":0.02123,"13.3":0.01061,"13.4-13.7":0.04853,"14.0-14.4":0.0834,"14.5-14.8":0.1289,"15.0-15.1":0.06217,"15.2-15.3":0.06824,"15.4":0.07734,"15.5":0.09705,"15.6-15.8":0.87346,"16.0":0.19865,"16.1":0.40944,"16.2":0.19865,"16.3":0.34423,"16.4":0.07279,"16.5":0.14709,"16.6-16.7":1.1722,"17.0":0.12738,"17.1":0.20775,"17.2":0.21685,"17.3":0.40034,"17.4":9.09098,"17.5":0.64145,"17.6":0},P:{"4":0.09714,"20":0.01079,"21":0.02159,"22":0.02159,"23":0.03238,"24":0.06476,"25":2.77393,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.1619,"19.0":0.01079},I:{"0":1.28904,"3":0,"4":0.00013,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00026,"4.2-4.3":0.00078,"4.4":0,"4.4.3-4.4.4":0.00285},K:{"0":0.64178,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.02622,"7":0.08521,"8":0.95045,"9":0.21631,"10":0.15732,"11":0.52439,_:"5.5"},S:{"2.5":0.03156,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":13.55045},R:{_:"0"},M:{"0":0.55761},Q:{_:"14.9"},O:{"0":0.20691},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LK.js b/node_modules/caniuse-lite/data/regions/LK.js index 19e5b378a..30f4c9df5 100644 --- a/node_modules/caniuse-lite/data/regions/LK.js +++ b/node_modules/caniuse-lite/data/regions/LK.js @@ -1 +1 @@ -module.exports={C:{"115":0.19788,"127":0.0066,"128":0.01979,"135":0.01319,"136":0.01979,"137":0.0066,"138":0.05277,"139":0.94982,"140":0.12532,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"48":0.0066,"56":0.0066,"60":0.0066,"68":0.0066,"70":0.0066,"74":0.0066,"79":0.01319,"81":0.0066,"86":0.0066,"87":0.0066,"93":0.0066,"99":0.0066,"103":0.03958,"104":0.01319,"105":0.0066,"106":0.0066,"107":0.0066,"108":0.0066,"109":0.79152,"110":0.0066,"111":0.01319,"114":0.01319,"115":0.0066,"116":0.01979,"117":0.0066,"118":0.0066,"119":0.0066,"120":0.01319,"121":0.01979,"122":0.02638,"123":0.0066,"124":0.01319,"125":0.10554,"126":0.02638,"127":0.01319,"128":0.01979,"129":0.01319,"130":0.03958,"131":0.05936,"132":0.02638,"133":0.03298,"134":0.05277,"135":0.13192,"136":1.53687,"137":14.22757,"138":0.6662,"139":0.0066,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 57 58 59 61 62 63 64 65 66 67 69 71 72 73 75 76 77 78 80 83 84 85 88 89 90 91 92 94 95 96 97 98 100 101 102 112 113 140 141"},F:{"89":0.03298,"90":0.01319,"95":0.05277,"110":0.0066,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0066,"92":0.03958,"100":0.0066,"109":0.01319,"114":0.0066,"122":0.0066,"124":0.0066,"126":0.0066,"128":0.0066,"130":0.0066,"131":0.01319,"132":0.0066,"133":0.01319,"134":0.05936,"135":0.11873,"136":5.09211,"137":34.38495,"138":1.19388,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 127 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 16.0 16.2 16.3 16.4 17.0 17.2 17.3 26.0","13.1":0.02638,"14.1":0.0066,"15.2-15.3":0.0066,"15.6":0.01319,"16.1":0.01319,"16.5":0.0066,"16.6":0.01319,"17.1":0.0066,"17.4":0.01979,"17.5":0.01319,"17.6":0.01979,"18.0":0.0066,"18.1":0.0066,"18.2":0.0066,"18.3":0.03298,"18.4":0.01979,"18.5":0.15171},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00077,"5.0-5.1":0,"6.0-6.1":0.00154,"7.0-7.1":0.00154,"8.1-8.4":0,"9.0-9.2":0.00077,"9.3":0.00461,"10.0-10.2":0.00038,"10.3":0.00769,"11.0-11.2":0.04922,"11.3-11.4":0.00269,"12.0-12.1":0.00077,"12.2-12.5":0.02576,"13.0-13.1":0.00038,"13.2":0.00115,"13.3":0.00077,"13.4-13.7":0.00423,"14.0-14.4":0.01,"14.5-14.8":0.01,"15.0-15.1":0.00692,"15.2-15.3":0.00692,"15.4":0.00846,"15.5":0.00923,"15.6-15.8":0.11921,"16.0":0.01577,"16.1":0.0323,"16.2":0.01654,"16.3":0.03038,"16.4":0.00692,"16.5":0.01231,"16.6-16.7":0.14959,"17.0":0.00808,"17.1":0.01423,"17.2":0.01115,"17.3":0.01577,"17.4":0.02807,"17.5":0.05883,"17.6-17.7":0.15382,"18.0":0.03807,"18.1":0.08575,"18.2":0.04538,"18.3":0.19496,"18.4":0.20688,"18.5":2.42529,"26.0":0},P:{"4":0.03108,"20":0.01036,"21":0.02072,"22":0.04144,"23":0.04144,"24":0.09323,"25":0.16574,"26":0.09323,"27":0.21754,"28":0.59045,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0 15.0","7.2-7.4":0.23825,"9.2":0.02072,"11.1-11.2":0.01036,"13.0":0.01036,"16.0":0.01036,"17.0":0.02072,"18.0":0.01036,"19.0":0.02072},I:{"0":0.00679,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.71123,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0066,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.67237},R:{_:"0"},M:{"0":0.11911},Q:{_:"14.9"},O:{"0":0.61254},H:{"0":0}}; +module.exports={C:{"52":0.00516,"88":0.04129,"110":0.00516,"115":0.20128,"117":0.00516,"119":0.00516,"121":0.00516,"122":0.00516,"123":0.01032,"124":0.02064,"125":0.50578,"126":0.40256,"127":0.01032,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 118 120 128 129 3.5 3.6"},D:{"22":0.00516,"49":0.00516,"63":0.00516,"68":0.00516,"70":0.01032,"71":0.00516,"74":0.01032,"75":0.00516,"78":0.00516,"79":0.01032,"80":0.00516,"81":0.00516,"83":0.00516,"85":0.01032,"86":0.00516,"87":0.01032,"88":0.00516,"89":0.00516,"90":0.00516,"91":0.00516,"92":0.00516,"93":0.01032,"94":0.00516,"95":0.01032,"96":0.00516,"98":0.00516,"99":0.01032,"100":0.00516,"101":0.00516,"102":0.01032,"103":0.03097,"104":0.01032,"105":0.00516,"106":0.01032,"107":0.00516,"108":0.01548,"109":1.63088,"110":0.01032,"111":0.01548,"112":0.00516,"113":0.00516,"114":0.02064,"115":0.01032,"116":0.04129,"117":0.01548,"118":0.01548,"119":0.03613,"120":0.06709,"121":0.07225,"122":0.1187,"123":0.35611,"124":12.5722,"125":4.47459,"126":0.00516,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 69 72 73 76 77 84 97 127 128"},F:{"79":0.00516,"82":0.00516,"85":0.00516,"95":0.07742,"107":0.04645,"108":0.00516,"109":0.56255,"110":0.05161,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00516,"16":0.00516,"17":0.00516,"18":0.01548,"84":0.00516,"92":0.03613,"100":0.01032,"107":0.00516,"109":0.02064,"113":0.00516,"114":0.00516,"115":0.00516,"116":0.00516,"117":0.00516,"118":0.00516,"119":0.01548,"120":0.02064,"121":0.02581,"122":0.03613,"123":0.19096,"124":17.4545,"125":9.65623,_:"13 14 15 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112"},E:{"14":0.01032,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 16.0 17.6","13.1":0.00516,"14.1":0.01032,"15.1":0.00516,"15.2-15.3":0.00516,"15.4":0.00516,"15.5":0.00516,"15.6":0.03613,"16.1":0.01032,"16.2":0.00516,"16.3":0.02064,"16.4":0.00516,"16.5":0.02064,"16.6":0.02581,"17.0":0.02064,"17.1":0.03097,"17.2":0.02064,"17.3":0.01548,"17.4":0.1187,"17.5":0.02064},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00086,"5.0-5.1":0.00086,"6.0-6.1":0.00215,"7.0-7.1":0.00301,"8.1-8.4":0.00086,"9.0-9.2":0.00215,"9.3":0.00991,"10.0-10.2":0.00172,"10.3":0.0155,"11.0-11.2":0.02283,"11.3-11.4":0.00431,"12.0-12.1":0.00258,"12.2-12.5":0.06245,"13.0-13.1":0.00129,"13.2":0.00603,"13.3":0.00301,"13.4-13.7":0.01378,"14.0-14.4":0.02369,"14.5-14.8":0.03661,"15.0-15.1":0.01766,"15.2-15.3":0.01938,"15.4":0.02196,"15.5":0.02756,"15.6-15.8":0.24807,"16.0":0.05642,"16.1":0.11628,"16.2":0.05642,"16.3":0.09776,"16.4":0.02067,"16.5":0.04178,"16.6-16.7":0.33291,"17.0":0.03618,"17.1":0.059,"17.2":0.06159,"17.3":0.1137,"17.4":2.58187,"17.5":0.18217,"17.6":0},P:{"4":0.22495,"20":0.05113,"21":0.1227,"22":0.15338,"23":0.26585,"24":0.37833,"25":0.72599,"5.0-5.4":0.01023,"6.2-6.4":0.02045,"7.2-7.4":0.55216,"8.2":0.01023,"9.2":0.02045,_:"10.1","11.1-11.2":0.06135,"12.0":0.02045,"13.0":0.05113,"14.0":0.03068,"15.0":0.02045,"16.0":0.03068,"17.0":0.0409,"18.0":0.03068,"19.0":0.07158},I:{"0":0.0482,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":1.23846,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00516,"11":0.01032,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.39706},R:{_:"0"},M:{"0":0.09194},Q:{_:"14.9"},O:{"0":1.05006},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/LR.js b/node_modules/caniuse-lite/data/regions/LR.js index adf5f0819..6d9b0c241 100644 --- a/node_modules/caniuse-lite/data/regions/LR.js +++ b/node_modules/caniuse-lite/data/regions/LR.js @@ -1 +1 @@ -module.exports={C:{"47":0.00258,"58":0.00775,"72":0.00516,"112":0.00258,"115":0.09812,"116":0.00258,"127":0.00258,"128":0.03615,"133":0.00258,"137":0.00258,"138":0.03098,"139":0.39763,"140":0.04131,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 117 118 119 120 121 122 123 124 125 126 129 130 131 132 134 135 136 141 142 143 3.5 3.6"},D:{"38":0.00258,"39":0.00258,"41":0.00258,"42":0.00258,"45":0.00258,"46":0.01033,"49":0.00258,"50":0.00516,"55":0.00258,"56":0.00258,"57":0.00258,"58":0.00258,"59":0.00258,"67":0.00775,"68":0.00516,"70":0.00258,"71":0.00258,"73":0.00516,"74":0.00258,"75":0.03873,"78":0.00258,"79":0.01291,"80":0.00516,"81":0.00516,"83":0.04131,"86":0.00775,"87":0.02582,"88":0.00258,"90":0.00258,"91":0.00258,"92":0.02324,"93":0.00775,"94":0.03357,"95":0.00258,"96":0.00775,"103":0.03357,"105":0.00516,"106":0.00775,"107":0.01033,"109":0.1575,"110":0.00258,"111":0.04906,"112":0.01033,"113":0.00258,"114":0.01033,"116":0.01291,"117":0.00516,"118":0.00258,"119":0.00775,"120":0.04131,"121":0.00258,"122":0.04648,"123":0.00516,"124":0.00775,"125":0.59902,"126":0.03098,"127":0.01033,"128":0.02066,"129":0.03098,"130":0.01807,"131":0.04131,"132":0.03873,"133":0.08521,"134":0.12394,"135":0.13168,"136":0.84431,"137":4.75863,"138":0.34857,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 43 44 47 48 51 52 53 54 60 61 62 63 64 65 66 69 72 76 77 84 85 89 97 98 99 100 101 102 104 108 115 139 140 141"},F:{"36":0.00516,"79":0.00516,"89":0.09295,"95":0.00258,"115":0.00258,"116":0.00516,"117":0.00516,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01807,"13":0.00516,"14":0.00258,"15":0.00516,"16":0.00516,"17":0.00516,"18":0.30984,"81":0.00258,"84":0.0284,"85":0.00775,"89":0.00775,"90":0.02582,"92":0.11877,"97":0.00516,"98":0.01033,"100":0.03873,"104":0.00516,"107":0.00258,"109":0.01291,"111":0.01033,"114":0.00258,"122":0.08521,"125":0.00258,"126":0.01033,"127":0.00516,"128":0.02582,"129":0.00775,"130":0.01033,"131":0.12652,"132":0.02066,"133":0.03873,"134":0.06713,"135":0.1291,"136":1.00698,"137":2.53294,"138":0.20656,_:"79 80 83 86 87 88 91 93 94 95 96 99 101 102 103 105 106 108 110 112 113 115 116 117 118 119 120 121 123 124"},E:{"13":0.00258,"14":0.01807,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.5 16.0 16.2 16.4 17.2 17.3 18.0 18.1 18.2 26.0","12.1":0.00258,"13.1":0.01033,"14.1":0.00258,"15.2-15.3":0.01033,"15.4":0.00775,"15.6":0.07746,"16.1":0.00258,"16.3":0.00775,"16.5":0.00258,"16.6":0.04648,"17.0":0.01033,"17.1":0.00775,"17.4":0.01033,"17.5":0.06713,"17.6":0.08779,"18.3":0.00516,"18.4":0.02066,"18.5":0.11103},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00104,"5.0-5.1":0,"6.0-6.1":0.00209,"7.0-7.1":0.00209,"8.1-8.4":0,"9.0-9.2":0.00104,"9.3":0.00626,"10.0-10.2":0.00052,"10.3":0.01043,"11.0-11.2":0.06674,"11.3-11.4":0.00365,"12.0-12.1":0.00104,"12.2-12.5":0.03493,"13.0-13.1":0.00052,"13.2":0.00156,"13.3":0.00104,"13.4-13.7":0.00574,"14.0-14.4":0.01356,"14.5-14.8":0.01356,"15.0-15.1":0.00939,"15.2-15.3":0.00939,"15.4":0.01147,"15.5":0.01251,"15.6-15.8":0.16164,"16.0":0.02138,"16.1":0.0438,"16.2":0.02242,"16.3":0.04119,"16.4":0.00939,"16.5":0.01669,"16.6-16.7":0.20283,"17.0":0.01095,"17.1":0.01929,"17.2":0.01512,"17.3":0.02138,"17.4":0.03806,"17.5":0.07978,"17.6-17.7":0.20857,"18.0":0.05162,"18.1":0.11628,"18.2":0.06153,"18.3":0.26436,"18.4":0.28052,"18.5":3.28857,"26.0":0},P:{"21":0.01018,"22":0.01018,"23":0.01018,"24":0.09163,"25":0.32581,"26":0.03054,"27":0.20363,"28":0.35635,_:"4 20 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0 19.0","5.0-5.4":0.01018,"7.2-7.4":0.02036,"9.2":0.01018,"11.1-11.2":0.01018,"16.0":0.02036,"17.0":0.01018},I:{"0":0.05924,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":3.74402,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00258,"11":0.00775,_:"6 7 8 9 5.5"},S:{"2.5":0.01483,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":68.22492},R:{_:"0"},M:{"0":0.08159},Q:{"14.9":0.00742},O:{"0":0.67495},H:{"0":5.95}}; +module.exports={C:{"34":0.00324,"39":0.00162,"47":0.00162,"54":0.00324,"66":0.00162,"72":0.00324,"79":0.00162,"87":0.00162,"96":0.00324,"115":0.38718,"121":0.00648,"122":0.00972,"123":0.00486,"124":0.01296,"125":0.42444,"126":0.3321,"127":0.00324,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 40 41 42 43 44 45 46 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 78 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 128 129 3.5 3.6"},D:{"29":0.01296,"34":0.00324,"47":0.00324,"49":0.00162,"50":0.00162,"58":0.00162,"60":0.00486,"61":0.00162,"63":0.00648,"64":0.00324,"65":0.00972,"66":0.00162,"67":0.00162,"68":0.00162,"71":0.0081,"74":0.00162,"76":0.00972,"77":0.00162,"79":0.00648,"80":0.01458,"81":0.00486,"83":0.00648,"84":0.01296,"86":0.00486,"87":0.01134,"88":0.01944,"90":0.0081,"91":0.00162,"92":0.05508,"93":0.0729,"94":0.0162,"96":0.01944,"98":0.01782,"99":0.00648,"100":0.01782,"102":0.01458,"103":0.03726,"105":0.03726,"106":0.00162,"108":0.00648,"109":0.37584,"110":0.00324,"111":0.01944,"112":0.00162,"113":0.02592,"114":0.0162,"115":0.0081,"116":0.03726,"117":0.01134,"118":0.0405,"119":0.04212,"120":0.0486,"121":0.03726,"122":0.18468,"123":0.23328,"124":3.76002,"125":1.5633,"126":0.00162,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 48 51 52 53 54 55 56 57 59 62 69 70 72 73 75 78 85 89 95 97 101 104 107 127 128"},F:{"21":0.00324,"34":0.00162,"36":0.00162,"79":0.00648,"89":0.00162,"95":0.0081,"102":0.00162,"107":0.00162,"108":0.01134,"109":0.39042,"110":0.02754,_:"9 11 12 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02268,"13":0.00486,"14":0.00162,"15":0.0162,"16":0.00972,"17":0.01134,"18":0.09882,"84":0.01458,"86":0.00162,"89":0.0081,"90":0.0081,"92":0.05184,"100":0.00972,"105":0.00162,"107":0.00162,"108":0.00324,"109":0.02268,"111":0.00162,"114":0.00648,"115":0.00324,"116":0.00162,"117":0.00324,"119":0.01944,"120":0.04536,"121":0.02106,"122":0.09234,"123":0.1053,"124":1.23282,"125":0.7614,_:"79 80 81 83 85 87 88 91 93 94 95 96 97 98 99 101 102 103 104 106 110 112 113 118"},E:{"13":0.00648,"14":0.00648,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 15.1 15.4 15.5 16.0 16.4 17.6","10.1":0.01782,"11.1":0.00324,"12.1":0.00486,"13.1":0.04212,"14.1":0.0162,"15.2-15.3":0.00486,"15.6":0.0324,"16.1":0.02754,"16.2":0.00324,"16.3":0.00324,"16.5":0.00162,"16.6":0.01944,"17.0":0.00324,"17.1":0.00486,"17.2":0.02268,"17.3":0.0324,"17.4":0.03726,"17.5":0.1134},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00131,"5.0-5.1":0.00131,"6.0-6.1":0.00328,"7.0-7.1":0.00459,"8.1-8.4":0.00131,"9.0-9.2":0.00328,"9.3":0.01509,"10.0-10.2":0.00262,"10.3":0.02362,"11.0-11.2":0.03478,"11.3-11.4":0.00656,"12.0-12.1":0.00394,"12.2-12.5":0.09514,"13.0-13.1":0.00197,"13.2":0.00919,"13.3":0.00459,"13.4-13.7":0.021,"14.0-14.4":0.03609,"14.5-14.8":0.05577,"15.0-15.1":0.0269,"15.2-15.3":0.02953,"15.4":0.03346,"15.5":0.04199,"15.6-15.8":0.37794,"16.0":0.08596,"16.1":0.17716,"16.2":0.08596,"16.3":0.14895,"16.4":0.0315,"16.5":0.06365,"16.6-16.7":0.50721,"17.0":0.05512,"17.1":0.08989,"17.2":0.09383,"17.3":0.17322,"17.4":3.93364,"17.5":0.27755,"17.6":0},P:{"4":0.14313,"20":0.01022,"21":0.37827,"22":0.05112,"23":0.11246,"24":0.23514,"25":0.37827,"5.0-5.4":0.01022,"6.2-6.4":0.01022,"7.2-7.4":0.03067,_:"8.2 10.1 12.0 14.0 18.0","9.2":0.02045,"11.1-11.2":0.03067,"13.0":0.01022,"15.0":0.01022,"16.0":0.03067,"17.0":0.01022,"19.0":0.06134},I:{"0":0.03339,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":3.52128,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00957,"11":0.03255,_:"6 7 8 9 5.5"},S:{"2.5":0.0838,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.86666},R:{_:"0"},M:{"0":0.02514},Q:{"14.9":0.00838},O:{"0":0.68716},H:{"0":8.68}}; diff --git a/node_modules/caniuse-lite/data/regions/LS.js b/node_modules/caniuse-lite/data/regions/LS.js index 93abdc2cc..d889e2fad 100644 --- a/node_modules/caniuse-lite/data/regions/LS.js +++ b/node_modules/caniuse-lite/data/regions/LS.js @@ -1 +1 @@ -module.exports={C:{"34":0.00296,"52":0.00296,"66":0.00296,"115":0.03557,"127":0.00296,"128":0.02371,"135":0.00296,"136":0.00889,"137":0.00296,"138":0.0415,"139":0.21044,"140":0.02964,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.00889,"40":0.00296,"41":0.00889,"42":0.00593,"44":0.00593,"45":0.00296,"46":0.00296,"47":0.00296,"48":0.00296,"49":0.00593,"50":0.00889,"51":0.00296,"52":0.00296,"53":0.00593,"55":0.00296,"56":0.00296,"57":0.00296,"58":0.00889,"59":0.00296,"60":0.00296,"65":0.01778,"66":0.00593,"71":0.00593,"75":0.00593,"76":0.00296,"78":0.03557,"79":0.00593,"80":0.00296,"81":0.00593,"83":0.00593,"87":0.00593,"89":0.00296,"100":0.00296,"102":0.00593,"103":0.01186,"104":0.00296,"109":0.2964,"111":0.00593,"114":0.01482,"115":0.00296,"116":0.00593,"118":0.00296,"119":0.00296,"120":0.01778,"121":0.01778,"122":0.02371,"123":0.00296,"124":0.01778,"125":0.42978,"126":0.01186,"127":0.0326,"128":0.00296,"129":0.08003,"130":0.02075,"131":0.03557,"132":0.05928,"133":0.01778,"134":0.0326,"135":0.2223,"136":1.08482,"137":7.31812,"138":0.16302,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 54 61 62 63 64 67 68 69 70 72 73 74 77 84 85 86 88 90 91 92 93 94 95 96 97 98 99 101 105 106 107 108 110 112 113 117 139 140 141"},F:{"38":0.00296,"46":0.00296,"68":0.00296,"88":0.14227,"89":0.00889,"90":0.00593,"95":0.19562,"112":0.00296,"117":0.00296,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02371,"14":0.00296,"16":0.01186,"17":0.00593,"18":0.04446,"88":0.00593,"89":0.00296,"92":0.00889,"100":0.00296,"104":0.00296,"105":0.00296,"109":0.01186,"122":0.01186,"123":0.02668,"125":0.00593,"126":0.00296,"128":0.00296,"130":0.02371,"131":0.00889,"132":0.00889,"133":0.02075,"134":0.04446,"135":0.04446,"136":0.75878,"137":3.18037,"138":0.18377,_:"13 15 79 80 81 83 84 85 86 87 90 91 93 94 95 96 97 98 99 101 102 103 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 124 127 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 16.0 16.1 16.3 16.5 17.0 17.3 18.1 18.2 26.0","15.5":0.00296,"15.6":0.00593,"16.2":0.00296,"16.4":0.00593,"16.6":0.01482,"17.1":0.20155,"17.2":0.04742,"17.4":0.00296,"17.5":0.00889,"17.6":0.02964,"18.0":0.00296,"18.3":0.02371,"18.4":0.02668,"18.5":0.25194},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00071,"5.0-5.1":0,"6.0-6.1":0.00142,"7.0-7.1":0.00142,"8.1-8.4":0,"9.0-9.2":0.00071,"9.3":0.00426,"10.0-10.2":0.00036,"10.3":0.00711,"11.0-11.2":0.04548,"11.3-11.4":0.00249,"12.0-12.1":0.00071,"12.2-12.5":0.02381,"13.0-13.1":0.00036,"13.2":0.00107,"13.3":0.00071,"13.4-13.7":0.00391,"14.0-14.4":0.00924,"14.5-14.8":0.00924,"15.0-15.1":0.0064,"15.2-15.3":0.0064,"15.4":0.00782,"15.5":0.00853,"15.6-15.8":0.11015,"16.0":0.01457,"16.1":0.02985,"16.2":0.01528,"16.3":0.02807,"16.4":0.0064,"16.5":0.01137,"16.6-16.7":0.13822,"17.0":0.00746,"17.1":0.01315,"17.2":0.0103,"17.3":0.01457,"17.4":0.02594,"17.5":0.05436,"17.6-17.7":0.14213,"18.0":0.03518,"18.1":0.07924,"18.2":0.04193,"18.3":0.18015,"18.4":0.19116,"18.5":2.24099,"26.0":0},P:{"4":0.23341,"21":0.01015,"22":0.20296,"23":0.14207,"24":0.31459,"25":0.76111,"26":0.15222,"27":0.33489,"28":1.82665,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0","5.0-5.4":0.01015,"6.2-6.4":0.15222,"7.2-7.4":0.45666,"13.0":0.01015,"16.0":0.05074,"17.0":0.01015,"18.0":0.0203,"19.0":0.06089},I:{"0":0.05619,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":4.12196,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01186,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00704,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.53877},R:{_:"0"},M:{"0":0.33773},Q:{_:"14.9"},O:{"0":0.46438},H:{"0":0.17}}; +module.exports={C:{"21":0.00607,"52":0.00304,"80":0.00304,"88":0.00911,"101":0.01822,"102":0.00304,"115":0.09111,"118":0.00607,"121":0.00304,"123":0.00304,"124":0.00911,"125":0.21866,"126":0.32192,"127":0.00304,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 122 128 129 3.5 3.6"},D:{"40":0.00304,"43":0.00304,"49":0.01215,"56":0.00304,"69":0.00304,"70":0.00304,"72":0.00304,"79":0.00304,"81":0.01519,"83":0.00304,"85":0.00304,"87":0.01215,"88":0.00607,"90":0.00304,"91":0.00304,"92":0.00911,"93":0.00304,"94":0.00607,"99":0.01519,"100":0.00304,"101":0.0243,"102":0.0577,"103":0.04252,"104":0.03037,"105":0.00304,"107":0.00304,"108":0.00304,"109":1.38487,"111":0.00304,"112":0.00304,"113":0.08807,"114":0.00304,"115":0.00304,"116":0.01215,"118":0.00607,"119":0.01519,"120":0.02126,"121":0.03644,"122":0.07593,"123":0.36444,"124":6.12867,"125":3.72033,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 71 73 74 75 76 77 78 80 84 86 89 95 96 97 98 106 110 117 126 127 128"},F:{"37":0.00304,"38":0.00304,"80":0.00304,"83":0.00304,"95":0.17615,"100":0.00304,"102":0.01215,"107":0.00607,"108":0.01215,"109":0.31889,"110":0.11541,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.07289,"13":0.05467,"14":0.00607,"16":0.00304,"17":0.00304,"18":0.06378,"85":0.00304,"90":0.00304,"92":0.01519,"101":0.00304,"105":0.00607,"109":0.09718,"110":0.00304,"111":0.00304,"112":0.00304,"114":0.00304,"115":0.00304,"116":0.14578,"117":0.00911,"118":0.00911,"119":0.02733,"120":0.06985,"121":0.01822,"122":0.07896,"123":0.11237,"124":1.7645,"125":1.10243,_:"15 79 80 81 83 84 86 87 88 89 91 93 94 95 96 97 98 99 100 102 103 104 106 107 108 113"},E:{"13":0.00304,"14":0.00607,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 16.5 17.0 17.2 17.6","14.1":0.00304,"15.6":0.01215,"16.1":0.00304,"16.3":0.00911,"16.6":0.01215,"17.1":0.00911,"17.3":0.00304,"17.4":0.09111,"17.5":0.00304},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00041,"5.0-5.1":0.00041,"6.0-6.1":0.00103,"7.0-7.1":0.00145,"8.1-8.4":0.00041,"9.0-9.2":0.00103,"9.3":0.00476,"10.0-10.2":0.00083,"10.3":0.00744,"11.0-11.2":0.01096,"11.3-11.4":0.00207,"12.0-12.1":0.00124,"12.2-12.5":0.02999,"13.0-13.1":0.00062,"13.2":0.0029,"13.3":0.00145,"13.4-13.7":0.00662,"14.0-14.4":0.01137,"14.5-14.8":0.01758,"15.0-15.1":0.00848,"15.2-15.3":0.00931,"15.4":0.01055,"15.5":0.01324,"15.6-15.8":0.11912,"16.0":0.02709,"16.1":0.05584,"16.2":0.02709,"16.3":0.04694,"16.4":0.00993,"16.5":0.02006,"16.6-16.7":0.15986,"17.0":0.01737,"17.1":0.02833,"17.2":0.02957,"17.3":0.0546,"17.4":1.23977,"17.5":0.08748,"17.6":0},P:{"4":0.34464,"20":0.02027,"21":0.07096,"22":0.21287,"23":0.12164,"24":0.56765,"25":0.49669,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.24328,"7.2-7.4":0.5271,"9.2":0.01014,"11.1-11.2":0.01014,"13.0":0.02027,"14.0":0.01014,"15.0":0.01014,"16.0":0.06082,"17.0":0.03041,"18.0":0.03041,"19.0":0.1926},I:{"0":0.10404,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00023},K:{"0":4.76137,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.23486,"11":0.46972,_:"6 7 8 9 5.5"},S:{"2.5":0.08356,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":68.13089},R:{_:"0"},M:{"0":0.1323},Q:{"14.9":0.00696},O:{"0":0.68934},H:{"0":2.32}}; diff --git a/node_modules/caniuse-lite/data/regions/LT.js b/node_modules/caniuse-lite/data/regions/LT.js index 95831a3ef..1be2d62c6 100644 --- a/node_modules/caniuse-lite/data/regions/LT.js +++ b/node_modules/caniuse-lite/data/regions/LT.js @@ -1 +1 @@ -module.exports={C:{"52":0.00764,"78":0.03819,"106":0.00764,"115":0.31312,"125":0.00764,"126":0.01527,"128":0.06873,"131":0.00764,"132":0.03055,"133":0.01527,"134":0.01527,"135":0.02291,"136":0.02291,"137":0.05346,"138":0.16038,"139":2.28346,"140":0.19093,"141":0.00764,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 127 129 130 142 143 3.5 3.6"},D:{"39":0.00764,"40":0.00764,"41":0.00764,"42":0.00764,"43":0.00764,"45":0.00764,"46":0.00764,"47":0.00764,"48":0.00764,"49":0.00764,"50":0.00764,"51":0.00764,"52":0.00764,"53":0.00764,"54":0.00764,"55":0.00764,"56":0.00764,"57":0.00764,"58":0.00764,"59":0.00764,"60":0.00764,"77":0.00764,"79":0.03055,"85":0.01527,"87":0.01527,"88":0.15274,"90":0.00764,"91":0.00764,"93":0.00764,"98":0.04582,"99":0.00764,"100":0.00764,"101":0.00764,"102":0.01527,"103":0.16801,"104":0.0611,"105":0.00764,"106":0.03055,"107":0.01527,"108":0.03819,"109":0.9699,"110":0.02291,"111":0.01527,"112":0.03819,"113":0.03055,"114":0.04582,"115":0.04582,"116":0.09164,"117":0.00764,"118":0.01527,"119":0.05346,"120":0.05346,"121":0.01527,"122":0.74843,"123":0.03055,"124":0.07637,"125":0.09164,"126":0.23675,"127":0.01527,"128":0.07637,"129":0.07637,"130":0.03819,"131":0.40476,"132":0.3513,"133":0.1451,"134":0.17565,"135":0.5575,"136":9.59207,"137":29.02824,"138":0.77134,"139":0.00764,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 44 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 83 84 86 89 92 94 95 96 97 140 141"},F:{"46":0.00764,"79":0.03819,"89":0.02291,"90":0.00764,"95":0.07637,"114":0.00764,"117":0.00764,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00764,"92":0.00764,"106":0.00764,"108":0.00764,"109":0.02291,"122":0.00764,"125":0.01527,"127":0.00764,"129":0.00764,"130":0.00764,"131":0.01527,"132":0.01527,"133":0.00764,"134":0.0611,"135":0.03819,"136":1.28302,"137":20.94065,"138":0.90117,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107 110 111 112 113 114 115 116 117 118 119 120 121 123 124 126 128"},E:{"11":0.00764,"14":0.00764,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 26.0","10.1":0.00764,"14.1":0.00764,"15.6":0.04582,"16.0":0.00764,"16.1":0.00764,"16.2":0.00764,"16.3":0.00764,"16.4":0.00764,"16.5":0.00764,"16.6":0.0611,"17.0":0.01527,"17.1":0.03819,"17.2":0.00764,"17.3":0.00764,"17.4":0.02291,"17.5":0.02291,"17.6":0.10692,"18.0":0.00764,"18.1":0.03819,"18.2":0.01527,"18.3":0.0611,"18.4":0.0611,"18.5":0.42004},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0011,"5.0-5.1":0,"6.0-6.1":0.0022,"7.0-7.1":0.0022,"8.1-8.4":0,"9.0-9.2":0.0011,"9.3":0.00661,"10.0-10.2":0.00055,"10.3":0.01101,"11.0-11.2":0.07047,"11.3-11.4":0.00385,"12.0-12.1":0.0011,"12.2-12.5":0.03689,"13.0-13.1":0.00055,"13.2":0.00165,"13.3":0.0011,"13.4-13.7":0.00606,"14.0-14.4":0.01432,"14.5-14.8":0.01432,"15.0-15.1":0.00991,"15.2-15.3":0.00991,"15.4":0.01211,"15.5":0.01321,"15.6-15.8":0.17068,"16.0":0.02257,"16.1":0.04625,"16.2":0.02367,"16.3":0.0435,"16.4":0.00991,"16.5":0.01762,"16.6-16.7":0.21418,"17.0":0.01156,"17.1":0.02037,"17.2":0.01597,"17.3":0.02257,"17.4":0.04019,"17.5":0.08424,"17.6-17.7":0.22023,"18.0":0.05451,"18.1":0.12278,"18.2":0.06497,"18.3":0.27914,"18.4":0.29621,"18.5":3.4725,"26.0":0},P:{"4":0.01053,"21":0.01053,"22":0.02106,"23":0.02106,"24":0.02106,"25":0.02106,"26":0.05265,"27":0.1053,"28":1.38998,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01053,"7.2-7.4":0.02106},I:{"0":0.00944,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27411,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03055,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":15.95601},R:{_:"0"},M:{"0":0.3899},Q:{_:"14.9"},O:{"0":0.05435},H:{"0":0}}; +module.exports={C:{"45":0.00411,"52":0.02879,"78":0.02057,"84":0.00411,"87":0.00411,"91":0.00823,"96":0.00411,"99":0.00411,"102":0.00823,"103":0.00823,"105":0.01645,"106":0.02879,"107":0.01645,"108":0.0329,"109":0.01645,"110":0.01645,"111":0.01645,"112":0.00823,"113":0.00411,"115":0.61695,"116":0.00411,"118":0.02057,"119":0.00823,"120":0.00411,"121":0.00823,"122":0.02057,"123":0.04524,"124":0.10694,"125":1.39431,"126":1.28737,"127":0.00411,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 88 89 90 92 93 94 95 97 98 100 101 104 114 117 128 129 3.5 3.6"},D:{"34":0.01234,"38":0.00411,"41":0.00411,"43":0.00411,"44":0.00411,"45":0.00411,"46":0.00411,"48":0.00823,"49":0.00823,"51":0.00411,"63":0.00411,"70":0.00411,"74":0.00411,"79":0.01645,"80":0.00823,"81":0.00411,"83":0.0329,"84":0.00411,"85":0.00823,"86":0.04936,"87":0.06581,"88":0.00411,"90":0.00411,"91":0.00411,"92":0.00823,"93":0.00411,"94":0.02468,"96":0.00823,"97":0.34961,"98":0.01645,"99":0.00823,"100":0.00411,"101":0.00411,"102":0.0329,"103":0.04524,"104":0.02468,"105":0.0617,"106":0.13162,"107":0.1275,"108":0.20154,"109":1.68633,"110":0.1275,"111":0.1275,"112":0.08226,"113":0.01645,"114":0.04113,"115":0.10694,"116":0.1275,"117":0.01645,"118":0.03702,"119":1.81383,"120":0.16041,"121":0.13162,"122":0.39485,"123":0.99535,"124":14.56002,"125":5.83223,"126":0.01234,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 42 47 50 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 71 72 73 75 76 77 78 89 95 127 128"},F:{"86":0.00411,"92":0.01234,"93":0.00411,"94":0.01234,"95":0.19742,"96":0.00411,"99":0.00411,"102":0.02057,"106":0.00411,"107":0.53469,"108":0.0329,"109":2.184,"110":0.0946,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 97 98 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00411,"18":0.00411,"92":0.01234,"102":0.00411,"103":0.00823,"105":0.00823,"106":0.00411,"107":0.01645,"108":0.03702,"109":0.03702,"110":0.00411,"111":0.01645,"112":0.00411,"113":0.00411,"114":0.00823,"118":0.00411,"119":0.00823,"120":0.01234,"121":0.02057,"122":0.02057,"123":0.06581,"124":2.0894,"125":1.29971,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 104 115 116 117"},E:{"9":0.00411,"14":0.01645,"15":0.00411,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 11.1 17.6","9.1":0.00823,"12.1":0.00411,"13.1":0.0329,"14.1":0.04936,"15.1":0.00823,"15.2-15.3":0.02057,"15.4":0.00823,"15.5":0.00823,"15.6":0.19742,"16.0":0.0329,"16.1":0.04113,"16.2":0.05347,"16.3":0.05347,"16.4":0.03702,"16.5":0.02879,"16.6":0.11105,"17.0":0.05347,"17.1":0.04113,"17.2":0.06992,"17.3":0.06581,"17.4":0.68687,"17.5":0.11105},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00682,"5.0-5.1":0.00682,"6.0-6.1":0.01706,"7.0-7.1":0.02388,"8.1-8.4":0.00682,"9.0-9.2":0.01706,"9.3":0.07846,"10.0-10.2":0.01365,"10.3":0.12281,"11.0-11.2":0.18081,"11.3-11.4":0.03412,"12.0-12.1":0.02047,"12.2-12.5":0.49467,"13.0-13.1":0.01023,"13.2":0.04776,"13.3":0.02388,"13.4-13.7":0.10917,"14.0-14.4":0.18763,"14.5-14.8":0.28998,"15.0-15.1":0.13987,"15.2-15.3":0.15352,"15.4":0.17399,"15.5":0.21834,"15.6-15.8":1.96503,"16.0":0.44691,"16.1":0.92111,"16.2":0.44691,"16.3":0.77441,"16.4":0.16375,"16.5":0.33092,"16.6-16.7":2.6371,"17.0":0.28657,"17.1":0.46738,"17.2":0.48785,"17.3":0.90064,"17.4":20.45204,"17.5":1.44307,"17.6":0},P:{"4":0.06153,"20":0.01025,"21":0.03076,"22":0.06153,"23":0.09229,"24":0.16408,"25":1.75357,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0","6.2-6.4":0.01025,"11.1-11.2":0.01025,"17.0":0.01025,"18.0":0.01025,"19.0":0.01025},I:{"0":0.05864,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.44919,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0752,"9":0.01769,"10":0.00885,"11":0.1327,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.15943},R:{_:"0"},M:{"0":0.46507},Q:{"14.9":0.00589},O:{"0":0.0471},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/LU.js b/node_modules/caniuse-lite/data/regions/LU.js index 82da1eb0c..f803d9ee6 100644 --- a/node_modules/caniuse-lite/data/regions/LU.js +++ b/node_modules/caniuse-lite/data/regions/LU.js @@ -1 +1 @@ -module.exports={C:{"44":0.00479,"48":0.01914,"52":0.02872,"60":0.067,"68":0.00479,"78":0.18187,"81":0.02872,"91":0.00957,"101":0.00479,"102":0.00957,"104":0.00957,"106":0.01914,"107":0.00479,"115":0.42595,"123":0.01436,"124":0.00479,"125":0.00479,"128":2.326,"131":0.00479,"132":0.00479,"133":0.00957,"134":0.01914,"135":0.01436,"136":0.16272,"137":0.06222,"138":0.19623,"139":3.1779,"140":0.52646,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 103 105 108 109 110 111 112 113 114 116 117 118 119 120 121 122 126 127 129 130 141 142 143 3.5 3.6"},D:{"39":0.00479,"40":0.00479,"41":0.00479,"42":0.00479,"43":0.00479,"44":0.00479,"45":0.00479,"46":0.00479,"47":0.00479,"48":0.01436,"50":0.00479,"51":0.00479,"52":0.00479,"53":0.00479,"54":0.00957,"55":0.00479,"56":0.00479,"57":0.00479,"58":0.00479,"59":0.00479,"67":0.00479,"70":0.00957,"72":0.00957,"78":0.00479,"79":0.14837,"80":0.00479,"81":0.00479,"85":0.00479,"87":0.04307,"88":0.00479,"89":0.01914,"91":0.05265,"92":0.00479,"93":0.00479,"95":0.01436,"98":0.00957,"99":0.00479,"101":0.00479,"102":0.01914,"103":0.08615,"104":0.0335,"106":0.06222,"107":0.02872,"108":0.067,"109":0.74183,"110":0.04307,"111":0.02393,"112":0.06222,"113":0.00479,"114":0.05265,"116":0.11965,"118":1.33051,"119":0.09093,"120":0.01436,"121":0.07179,"122":0.06222,"123":0.00479,"124":0.01436,"125":0.14358,"126":0.06222,"127":0.01914,"128":0.09093,"129":0.01914,"130":0.00479,"131":0.06222,"132":0.22016,"133":0.05265,"134":0.29673,"135":0.22494,"136":2.57008,"137":11.96979,"138":0.53603,"139":0.00479,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 49 60 61 62 63 64 65 66 68 69 71 73 74 75 76 77 83 84 86 90 94 96 97 100 105 115 117 140 141"},F:{"84":0.00479,"87":0.00479,"88":0.00479,"89":0.01436,"90":0.00957,"93":0.02872,"95":0.00957,"97":0.00957,"106":0.00479,"117":0.07179,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 91 92 94 96 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00479,"92":0.01914,"100":0.00479,"102":0.00479,"105":0.00479,"109":0.04786,"113":0.00479,"114":0.00479,"116":0.00479,"119":0.00957,"120":0.00957,"121":0.00479,"122":0.00957,"126":0.00479,"127":0.02393,"128":0.01914,"129":0.22016,"130":0.05743,"131":0.22494,"132":0.18665,"133":0.01436,"134":0.22494,"135":0.07179,"136":0.84234,"137":4.92479,"138":0.31588,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 106 107 108 110 111 112 115 117 118 123 124 125"},E:{"13":0.00479,"14":0.0335,"15":0.00479,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00479,"13.1":0.01914,"14.1":0.05265,"15.1":0.00957,"15.2-15.3":0.00479,"15.4":0.00957,"15.5":0.05265,"15.6":0.2728,"16.0":0.11965,"16.1":0.07179,"16.2":0.07179,"16.3":0.15315,"16.4":0.02872,"16.5":0.067,"16.6":0.26802,"17.0":0.06222,"17.1":0.26802,"17.2":0.01914,"17.3":0.07658,"17.4":0.08136,"17.5":0.18187,"17.6":0.59825,"18.0":0.11008,"18.1":0.24887,"18.2":0.07179,"18.3":0.3063,"18.4":0.35895,"18.5":3.20662,"26.0":0.00957},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0036,"5.0-5.1":0,"6.0-6.1":0.00721,"7.0-7.1":0.00721,"8.1-8.4":0,"9.0-9.2":0.0036,"9.3":0.02162,"10.0-10.2":0.0018,"10.3":0.03603,"11.0-11.2":0.23058,"11.3-11.4":0.01261,"12.0-12.1":0.0036,"12.2-12.5":0.1207,"13.0-13.1":0.0018,"13.2":0.0054,"13.3":0.0036,"13.4-13.7":0.01982,"14.0-14.4":0.04684,"14.5-14.8":0.04684,"15.0-15.1":0.03243,"15.2-15.3":0.03243,"15.4":0.03963,"15.5":0.04323,"15.6-15.8":0.55845,"16.0":0.07386,"16.1":0.15132,"16.2":0.07746,"16.3":0.14231,"16.4":0.03243,"16.5":0.05765,"16.6-16.7":0.70076,"17.0":0.03783,"17.1":0.06665,"17.2":0.05224,"17.3":0.07386,"17.4":0.1315,"17.5":0.27562,"17.6-17.7":0.72057,"18.0":0.17834,"18.1":0.40172,"18.2":0.21257,"18.3":0.91333,"18.4":0.96917,"18.5":11.36166,"26.0":0},P:{"4":0.15486,"21":0.01032,"23":0.02065,"24":0.03097,"25":0.02065,"26":0.05162,"27":0.09292,"28":3.11785,_:"20 22 8.2 9.2 10.1 11.1-11.2 13.0 15.0 17.0 18.0 19.0","5.0-5.4":0.02065,"6.2-6.4":0.01032,"7.2-7.4":0.05162,"12.0":0.01032,"14.0":0.01032,"16.0":0.02065},I:{"0":0.01562,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.5944,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00718,"9":0.01436,"11":0.02154,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.37094},R:{_:"0"},M:{"0":1.54334},Q:{"14.9":0.05214},O:{"0":0.51097},H:{"0":0}}; +module.exports={C:{"30":0.00405,"40":0.00405,"48":0.01621,"52":0.04458,"55":0.00405,"60":0.00811,"68":0.00405,"70":0.00811,"72":0.00405,"78":0.09322,"83":0.0608,"87":0.00405,"89":0.00405,"91":0.04864,"102":0.10133,"103":0.03242,"104":0.02027,"105":0.00405,"106":0.00405,"107":0.00405,"108":0.00811,"109":0.01216,"110":0.00811,"111":0.00405,"112":0.00405,"115":2.58581,"116":0.00405,"117":0.00405,"118":0.00811,"119":0.01621,"120":0.00811,"121":0.02432,"122":0.04053,"123":0.08511,"124":0.10133,"125":2.47638,"126":1.73063,"127":0.01621,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 49 50 51 53 54 56 57 58 59 61 62 63 64 65 66 67 69 71 73 74 75 76 77 79 80 81 82 84 85 86 88 90 92 93 94 95 96 97 98 99 100 101 113 114 128 129 3.5","3.6":0.00405},D:{"37":0.00405,"38":0.00405,"41":0.00405,"42":0.00405,"43":0.00405,"44":0.00811,"45":1.25643,"46":0.00811,"47":0.00405,"49":0.00405,"51":0.00811,"58":0.00405,"66":0.01621,"68":0.00405,"69":0.00811,"70":0.00405,"71":0.00405,"79":0.04458,"81":0.00405,"87":0.02027,"89":0.01621,"90":0.00811,"91":0.01621,"94":0.01216,"95":0.00811,"96":0.00405,"97":0.00405,"98":0.01621,"99":0.01621,"100":0.00405,"101":0.00405,"102":0.00811,"103":0.07295,"104":0.0608,"105":0.01216,"106":0.01216,"107":0.03242,"108":0.02837,"109":0.47825,"110":0.01216,"111":0.01621,"112":0.03242,"113":0.00405,"114":0.02837,"115":0.03648,"116":0.38098,"117":0.04053,"118":0.72143,"119":0.03648,"120":0.08106,"121":0.51068,"122":0.31208,"123":0.65659,"124":9.29353,"125":3.61933,"126":0.00811,"127":0.00811,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 39 40 48 50 52 53 54 55 56 57 59 60 61 62 63 64 65 67 72 73 74 75 76 77 78 80 83 84 85 86 88 92 93 128"},F:{"46":0.00405,"83":0.00405,"89":0.01216,"93":0.00811,"95":0.01621,"107":0.25129,"108":0.02432,"109":0.98893,"110":0.04053,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 90 91 92 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00405,"92":0.00405,"100":0.00811,"105":0.00405,"108":0.00405,"109":0.06485,"110":0.01216,"112":0.00405,"113":0.00405,"114":0.00405,"115":0.00405,"118":0.00405,"119":0.03242,"120":0.0608,"121":0.04864,"122":0.15401,"123":0.14186,"124":3.14513,"125":1.62931,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 106 107 111 116 117"},E:{"8":0.00405,"9":0.01621,"13":0.00405,"14":0.07295,"15":0.00811,_:"0 4 5 6 7 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.02027,"13.1":0.14591,"14.1":0.2067,"15.1":0.02027,"15.2-15.3":0.01216,"15.4":0.06485,"15.5":0.13375,"15.6":0.36477,"16.0":0.10133,"16.1":0.12564,"16.2":0.08106,"16.3":0.1986,"16.4":0.03648,"16.5":0.25939,"16.6":0.49041,"17.0":0.15401,"17.1":0.21076,"17.2":0.14591,"17.3":0.23507,"17.4":2.97085,"17.5":0.36072},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00318,"5.0-5.1":0.00318,"6.0-6.1":0.00795,"7.0-7.1":0.01113,"8.1-8.4":0.00318,"9.0-9.2":0.00795,"9.3":0.03658,"10.0-10.2":0.00636,"10.3":0.05725,"11.0-11.2":0.08428,"11.3-11.4":0.0159,"12.0-12.1":0.00954,"12.2-12.5":0.23058,"13.0-13.1":0.00477,"13.2":0.02226,"13.3":0.01113,"13.4-13.7":0.05089,"14.0-14.4":0.08746,"14.5-14.8":0.13517,"15.0-15.1":0.0652,"15.2-15.3":0.07156,"15.4":0.0811,"15.5":0.10177,"15.6-15.8":0.91597,"16.0":0.20832,"16.1":0.42936,"16.2":0.20832,"16.3":0.36098,"16.4":0.07633,"16.5":0.15425,"16.6-16.7":1.22925,"17.0":0.13358,"17.1":0.21786,"17.2":0.2274,"17.3":0.41982,"17.4":9.53342,"17.5":0.67267,"17.6":0},P:{"4":0.16715,"20":0.03134,"21":0.05223,"22":0.04179,"23":0.10447,"24":0.2925,"25":3.09219,"5.0-5.4":0.01045,"6.2-6.4":0.02089,"7.2-7.4":0.01045,_:"8.2 9.2 10.1 11.1-11.2 12.0 15.0","13.0":0.01045,"14.0":0.02089,"16.0":0.01045,"17.0":0.02089,"18.0":0.01045,"19.0":0.01045},I:{"0":0.33173,"3":0,"4":0.00003,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00007,"4.2-4.3":0.0002,"4.4":0,"4.4.3-4.4.4":0.00073},K:{"0":1.3797,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00473,"7":0.00473,"8":0.05674,"9":0.01419,"10":0.00946,"11":0.04729,_:"5.5"},S:{"2.5":0.00595,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.39376},R:{_:"0"},M:{"0":0.79095},Q:{"14.9":1.39755},O:{"0":1.61164},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LV.js b/node_modules/caniuse-lite/data/regions/LV.js index fb09f5d61..314ee2d2b 100644 --- a/node_modules/caniuse-lite/data/regions/LV.js +++ b/node_modules/caniuse-lite/data/regions/LV.js @@ -1 +1 @@ -module.exports={C:{"16":0.02726,"48":0.02726,"52":0.0218,"72":0.00545,"75":0.00545,"78":0.0218,"103":0.00545,"104":0.00545,"110":0.01635,"113":0.01635,"115":0.45788,"125":0.0109,"127":0.04906,"128":0.12537,"130":0.00545,"131":0.0109,"132":0.0109,"133":0.00545,"134":0.02726,"135":0.0218,"136":0.07631,"137":0.08177,"138":0.23439,"139":3.29786,"140":0.44153,"141":0.00545,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 105 106 107 108 109 111 112 114 116 117 118 119 120 121 122 123 124 126 129 142 143 3.5 3.6"},D:{"39":0.00545,"40":0.00545,"41":0.00545,"42":0.00545,"43":0.00545,"44":0.00545,"45":0.00545,"46":0.00545,"47":0.00545,"48":0.0218,"49":0.0109,"50":0.00545,"51":0.00545,"52":0.00545,"53":0.00545,"54":0.00545,"55":0.00545,"56":0.00545,"57":0.00545,"58":0.00545,"59":0.00545,"60":0.00545,"79":0.07086,"85":0.0109,"87":0.03271,"89":0.00545,"90":0.00545,"92":0.00545,"94":0.0109,"96":0.0109,"98":0.0109,"99":0.0109,"100":0.00545,"101":0.0109,"102":0.02726,"103":0.03271,"104":0.09267,"105":0.00545,"106":0.03271,"107":0.0109,"108":0.09267,"109":1.38455,"110":0.0218,"111":0.0109,"112":0.0109,"113":0.00545,"114":0.0218,"115":0.03271,"116":0.10902,"118":0.03271,"119":0.04361,"120":0.03816,"121":0.0109,"122":0.10357,"123":0.07631,"124":0.03271,"125":0.18533,"126":0.01635,"127":0.02726,"128":0.14173,"129":0.0109,"130":0.05451,"131":0.15263,"132":0.08722,"133":0.15263,"134":0.15263,"135":0.38157,"136":3.94652,"137":25.15637,"138":0.89396,"139":0.04906,"140":0.00545,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 88 91 93 95 97 117 141"},F:{"72":0.00545,"86":0.00545,"89":0.02726,"90":0.01635,"95":0.12537,"96":0.0109,"112":0.00545,"114":0.00545,"115":0.0109,"117":0.0218,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 91 92 93 94 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00545,"107":0.00545,"109":0.03271,"111":0.00545,"118":0.00545,"121":0.00545,"123":0.01635,"127":0.00545,"128":0.0109,"129":0.01635,"130":0.03271,"131":0.02726,"132":0.05996,"133":0.03271,"134":0.09267,"135":0.03271,"136":0.77949,"137":3.37417,"138":0.29981,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 112 113 114 115 116 117 119 120 122 124 125 126"},E:{"14":0.00545,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1","12.1":0.0218,"13.1":0.05451,"14.1":0.0218,"15.2-15.3":0.0109,"15.4":0.0109,"15.5":0.00545,"15.6":0.10902,"16.0":0.01635,"16.1":0.02726,"16.2":0.00545,"16.3":0.00545,"16.4":0.04906,"16.5":0.01635,"16.6":0.17988,"17.0":0.0218,"17.1":0.13628,"17.2":0.0218,"17.3":0.05996,"17.4":0.03271,"17.5":0.03271,"17.6":0.2562,"18.0":0.01635,"18.1":0.08177,"18.2":0.05451,"18.3":0.14718,"18.4":0.09812,"18.5":1.29734,"26.0":0.00545},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00213,"5.0-5.1":0,"6.0-6.1":0.00426,"7.0-7.1":0.00426,"8.1-8.4":0,"9.0-9.2":0.00213,"9.3":0.01279,"10.0-10.2":0.00107,"10.3":0.02131,"11.0-11.2":0.1364,"11.3-11.4":0.00746,"12.0-12.1":0.00213,"12.2-12.5":0.07139,"13.0-13.1":0.00107,"13.2":0.0032,"13.3":0.00213,"13.4-13.7":0.01172,"14.0-14.4":0.02771,"14.5-14.8":0.02771,"15.0-15.1":0.01918,"15.2-15.3":0.01918,"15.4":0.02344,"15.5":0.02557,"15.6-15.8":0.33033,"16.0":0.04369,"16.1":0.08951,"16.2":0.04582,"16.3":0.08418,"16.4":0.01918,"16.5":0.0341,"16.6-16.7":0.41452,"17.0":0.02238,"17.1":0.03943,"17.2":0.0309,"17.3":0.04369,"17.4":0.07779,"17.5":0.16304,"17.6-17.7":0.42624,"18.0":0.10549,"18.1":0.23763,"18.2":0.12574,"18.3":0.54026,"18.4":0.57329,"18.5":6.72072,"26.0":0},P:{"4":0.02073,"20":0.01036,"21":0.01036,"22":0.03109,"23":0.02073,"24":0.02073,"25":0.03109,"26":0.11401,"27":0.27985,"28":3.34778,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02073,"12.0":0.01036,"13.0":0.01036,"19.0":0.01036},I:{"0":0.0454,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.4539,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00641,"7":0.00641,"8":0.01924,"10":0.01283,"11":0.06413,_:"9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.89691},R:{_:"0"},M:{"0":0.40022},Q:{_:"14.9"},O:{"0":0.05458},H:{"0":0.01}}; +module.exports={C:{"16":0.04501,"48":0.01929,"52":0.02572,"68":0.01286,"72":0.01286,"78":0.00643,"88":0.00643,"93":0.00643,"102":0.03215,"103":0.00643,"108":0.00643,"109":0.01286,"110":0.01286,"112":0.00643,"113":0.00643,"114":0.00643,"115":0.76517,"118":0.01286,"119":0.00643,"121":0.01286,"122":0.03858,"123":0.02572,"124":0.07073,"125":2.08975,"126":1.70395,"127":0.03215,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 94 95 96 97 98 99 100 101 104 105 106 107 111 116 117 120 128 129 3.5 3.6"},D:{"38":0.00643,"43":0.00643,"49":0.00643,"51":0.00643,"57":0.00643,"79":0.08359,"80":0.03215,"87":0.02572,"89":0.03215,"90":0.02572,"91":0.00643,"92":0.01286,"93":0.00643,"94":0.01286,"96":0.00643,"97":0.03215,"98":0.01929,"99":0.01286,"100":0.00643,"101":0.01286,"102":0.03858,"103":0.05787,"104":0.00643,"105":0.00643,"106":0.04501,"107":0.02572,"108":0.02572,"109":2.12833,"110":0.00643,"111":0.01286,"112":0.01286,"113":0.00643,"114":0.01286,"115":0.02572,"116":0.21219,"117":0.02572,"118":0.05144,"119":0.0643,"120":0.16075,"121":0.10288,"122":1.10596,"123":4.71962,"124":28.31772,"125":9.69644,"126":0.00643,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 44 45 46 47 48 50 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 85 86 88 95 127 128"},F:{"79":0.00643,"85":0.00643,"94":0.00643,"95":0.15432,"103":0.00643,"104":0.01286,"106":0.00643,"107":0.39223,"108":0.1286,"109":1.69109,"110":0.10288,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"88":0.00643,"92":0.00643,"97":0.01929,"105":0.00643,"108":0.00643,"109":0.03858,"111":0.00643,"114":0.01286,"118":0.00643,"119":0.01929,"120":0.02572,"121":0.01286,"122":0.02572,"123":0.21862,"124":3.89015,"125":2.14762,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 89 90 91 93 94 95 96 98 99 100 101 102 103 104 106 107 110 112 113 115 116 117"},E:{"9":0.00643,"14":0.01286,"15":0.00643,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.01286,"13.1":0.03215,"14.1":0.05144,"15.1":0.00643,"15.2-15.3":0.00643,"15.4":0.01286,"15.5":0.01286,"15.6":0.14789,"16.0":0.00643,"16.1":0.01929,"16.2":0.02572,"16.3":0.03215,"16.4":0.03215,"16.5":0.01929,"16.6":0.14789,"17.0":0.03215,"17.1":0.05787,"17.2":0.04501,"17.3":0.0643,"17.4":0.77803,"17.5":0.17361},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00172,"5.0-5.1":0.00172,"6.0-6.1":0.0043,"7.0-7.1":0.00602,"8.1-8.4":0.00172,"9.0-9.2":0.0043,"9.3":0.01976,"10.0-10.2":0.00344,"10.3":0.03093,"11.0-11.2":0.04554,"11.3-11.4":0.00859,"12.0-12.1":0.00516,"12.2-12.5":0.1246,"13.0-13.1":0.00258,"13.2":0.01203,"13.3":0.00602,"13.4-13.7":0.0275,"14.0-14.4":0.04726,"14.5-14.8":0.07304,"15.0-15.1":0.03523,"15.2-15.3":0.03867,"15.4":0.04382,"15.5":0.055,"15.6-15.8":0.49496,"16.0":0.11257,"16.1":0.23201,"16.2":0.11257,"16.3":0.19506,"16.4":0.04125,"16.5":0.08335,"16.6-16.7":0.66424,"17.0":0.07218,"17.1":0.11772,"17.2":0.12288,"17.3":0.22685,"17.4":5.1515,"17.5":0.36348,"17.6":0},P:{"4":0.01041,"20":0.01041,"21":0.03124,"22":0.03124,"23":0.11455,"24":0.34365,"25":2.40553,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.02083,"13.0":0.01041,"17.0":0.01041,"19.0":0.02083},I:{"0":0.07112,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.28203,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04026,"9":0.00671,"10":0.00671,"11":0.10064,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.63382},R:{_:"0"},M:{"0":0.33915},Q:{"14.9":0.00357},O:{"0":0.06069},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/LY.js b/node_modules/caniuse-lite/data/regions/LY.js index dcfcfb366..8ae6be818 100644 --- a/node_modules/caniuse-lite/data/regions/LY.js +++ b/node_modules/caniuse-lite/data/regions/LY.js @@ -1 +1 @@ -module.exports={C:{"6":0.00107,"8":0.00107,"34":0.00107,"47":0.00107,"50":0.00107,"72":0.00215,"75":0.00107,"78":0.00107,"107":0.00322,"114":0.00107,"115":0.06331,"125":0.00107,"127":0.00107,"128":0.00858,"131":0.00107,"132":0.00107,"133":0.00107,"134":0.00644,"135":0.00537,"137":0.00429,"138":0.00966,"139":0.16095,"140":0.01502,_:"2 3 4 5 7 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 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 126 129 130 136 141 142 143 3.5 3.6"},D:{"11":0.00107,"32":0.00107,"39":0.00215,"40":0.00215,"41":0.00107,"42":0.00107,"43":0.00215,"44":0.00322,"45":0.00215,"46":0.00215,"47":0.00215,"48":0.00107,"49":0.00215,"50":0.00215,"51":0.0161,"52":0.00215,"53":0.00215,"54":0.00215,"55":0.00107,"56":0.00215,"57":0.00215,"58":0.14593,"59":0.00215,"60":0.00215,"63":0.00215,"66":0.00215,"69":0.00215,"70":0.00322,"71":0.00215,"73":0.00537,"74":0.00322,"75":0.00322,"76":0.00107,"77":0.00107,"78":0.00215,"79":0.02146,"80":0.00215,"81":0.00215,"83":0.00644,"85":0.00644,"86":0.0118,"87":0.01824,"88":0.00107,"89":0.00966,"90":0.00858,"91":0.00429,"92":0.00107,"93":0.00215,"94":0.00107,"95":0.00322,"96":0.00215,"98":0.00644,"99":0.00322,"100":0.00215,"102":0.00107,"103":0.02575,"104":0.09121,"105":0.00537,"106":0.00107,"107":0.00107,"108":0.00322,"109":0.6953,"110":0.00107,"111":0.00215,"112":0.00107,"113":0.00107,"114":0.00322,"115":0.00107,"116":0.00429,"117":0.00429,"118":0.00429,"119":0.0118,"120":0.00429,"121":0.00322,"122":0.06009,"123":0.02361,"124":0.0118,"125":1.03866,"126":0.00966,"127":0.00429,"128":0.01288,"129":0.00537,"130":0.0118,"131":0.07511,"132":0.01502,"133":0.01824,"134":0.01717,"135":0.05258,"136":0.42062,"137":2.99045,"138":0.17275,"139":0.00322,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 61 62 64 65 67 68 72 84 97 101 140 141"},F:{"28":0.00322,"44":0.00215,"46":0.00215,"47":0.00644,"79":0.00429,"82":0.00107,"84":0.00322,"85":0.00107,"87":0.00215,"88":0.00429,"89":0.04399,"90":0.03004,"95":0.01931,"114":0.00107,"115":0.00107,"116":0.00107,"117":0.00215,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 86 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00107,"18":0.00429,"84":0.00215,"89":0.00215,"90":0.00215,"92":0.0161,"100":0.00215,"108":0.00107,"109":0.01073,"114":0.00322,"119":0.00107,"120":0.00107,"122":0.00429,"124":0.00107,"125":0.00215,"126":0.00107,"127":0.00107,"128":0.00107,"129":0.00107,"130":0.00107,"131":0.01073,"132":0.00644,"133":0.00322,"134":0.06975,"135":0.00966,"136":0.11159,"137":0.65346,"138":0.08262,_:"12 13 14 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 121 123"},E:{"15":0.00107,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.4","5.1":0.03434,"13.1":0.00429,"14.1":0.00537,"15.4":0.00107,"15.6":0.01073,"16.0":0.00107,"16.1":0.00858,"16.2":0.00107,"16.3":0.00215,"16.5":0.00322,"16.6":0.00858,"17.0":0.00107,"17.1":0.00322,"17.2":0.00107,"17.3":0.00107,"17.4":0.00751,"17.5":0.00537,"17.6":0.01502,"18.0":0.00215,"18.1":0.00644,"18.2":0.00215,"18.3":0.01502,"18.4":0.01073,"18.5":0.06975,"26.0":0.00107},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00107,"5.0-5.1":0,"6.0-6.1":0.00214,"7.0-7.1":0.00214,"8.1-8.4":0,"9.0-9.2":0.00107,"9.3":0.00642,"10.0-10.2":0.00053,"10.3":0.01069,"11.0-11.2":0.06845,"11.3-11.4":0.00374,"12.0-12.1":0.00107,"12.2-12.5":0.03583,"13.0-13.1":0.00053,"13.2":0.0016,"13.3":0.00107,"13.4-13.7":0.00588,"14.0-14.4":0.0139,"14.5-14.8":0.0139,"15.0-15.1":0.00963,"15.2-15.3":0.00963,"15.4":0.01176,"15.5":0.01283,"15.6-15.8":0.16577,"16.0":0.02192,"16.1":0.04492,"16.2":0.02299,"16.3":0.04224,"16.4":0.00963,"16.5":0.01711,"16.6-16.7":0.20801,"17.0":0.01123,"17.1":0.01978,"17.2":0.01551,"17.3":0.02192,"17.4":0.03904,"17.5":0.08181,"17.6-17.7":0.21389,"18.0":0.05294,"18.1":0.11924,"18.2":0.0631,"18.3":0.27111,"18.4":0.28768,"18.5":3.37253,"26.0":0},P:{"4":0.0516,"20":0.01032,"21":0.04128,"22":0.09289,"23":0.06192,"24":0.21673,"25":0.22705,"26":0.13417,"27":0.34058,"28":0.99078,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0","6.2-6.4":0.02064,"7.2-7.4":0.16513,"11.1-11.2":0.01032,"13.0":0.01032,"16.0":0.02064,"17.0":0.02064,"18.0":0.01032,"19.0":0.02064},I:{"0":0.01782,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":3.23836,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00215,"11":0.00537,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":78.13928},R:{_:"0"},M:{"0":1.94609},Q:{_:"14.9"},O:{"0":0.14283},H:{"0":0.02}}; +module.exports={C:{"27":0.00062,"34":0.00186,"45":0.00062,"47":0.00124,"49":0.00124,"52":0.00062,"56":0.00062,"72":0.00186,"88":0.00186,"99":0.00062,"102":0.00248,"103":0.00744,"109":0.00062,"110":0.00062,"111":0.00062,"114":0.00062,"115":0.06696,"118":0.00124,"120":0.00062,"121":0.00124,"122":0.00062,"123":0.00186,"124":0.00248,"125":0.0806,"126":0.06572,"127":0.00124,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 46 48 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 100 101 104 105 106 107 108 112 113 116 117 119 128 129 3.5 3.6"},D:{"11":0.00496,"19":0.00124,"26":0.00062,"29":0.00062,"31":0.00124,"32":0.00062,"33":0.00248,"34":0.00062,"37":0.00062,"38":0.00124,"39":0.00062,"41":0.00062,"43":0.00124,"47":0.00062,"48":0.00062,"49":0.00248,"51":0.00062,"52":0.00062,"54":0.00186,"55":0.00186,"56":0.00062,"57":0.00062,"58":0.15066,"60":0.00434,"61":0.00062,"63":0.00558,"64":0.00186,"65":0.00062,"66":0.00124,"67":0.00062,"68":0.00248,"69":0.00248,"70":0.0062,"71":0.00248,"72":0.00124,"73":0.00124,"74":0.00124,"75":0.00124,"76":0.00062,"77":0.00062,"78":0.00558,"79":0.00868,"80":0.00124,"81":0.00124,"83":0.00806,"84":0.00062,"85":0.00124,"86":0.0062,"87":0.01178,"88":0.00124,"89":0.0093,"90":0.00434,"91":0.00372,"92":0.00496,"93":0.00496,"94":0.00248,"95":0.00248,"96":0.00496,"97":0.00248,"98":0.00744,"99":0.0093,"100":0.00186,"101":0.00062,"102":0.01054,"103":0.01426,"104":0.01736,"105":0.0031,"106":0.00744,"107":0.00248,"108":0.0031,"109":0.6665,"110":0.00186,"111":0.0031,"112":0.0031,"113":0.00062,"114":0.00372,"115":0.00186,"116":0.01798,"117":0.00558,"118":0.0031,"119":0.01488,"120":0.03286,"121":0.01736,"122":0.03224,"123":0.09796,"124":1.73352,"125":0.66588,"126":0.00062,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 20 21 22 23 24 25 27 28 30 35 36 40 42 44 45 46 50 53 59 62 127 128"},F:{"28":0.00062,"46":0.00186,"79":0.00372,"80":0.00124,"82":0.0031,"83":0.00248,"84":0.00062,"85":0.00124,"86":0.00062,"94":0.00062,"95":0.02108,"96":0.00062,"105":0.00062,"107":0.02728,"108":0.00186,"109":0.17794,"110":0.01116,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 87 88 89 90 91 92 93 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.6 12.1","11.5":0.00062},B:{"12":0.00062,"14":0.00062,"15":0.00062,"16":0.00062,"17":0.00062,"18":0.00496,"84":0.00062,"85":0.00062,"89":0.00124,"90":0.00062,"92":0.0124,"94":0.00186,"100":0.00186,"102":0.00062,"109":0.0124,"111":0.00062,"112":0.00062,"114":0.00062,"115":0.00062,"116":0.00062,"117":0.00062,"118":0.00062,"119":0.00248,"120":0.00434,"121":0.00496,"122":0.00992,"123":0.02666,"124":0.33232,"125":0.19964,_:"13 79 80 81 83 86 87 88 91 93 95 96 97 98 99 101 103 104 105 106 107 108 110 113"},E:{"13":0.00062,"14":0.00124,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00186,"13.1":0.0031,"14.1":0.0031,"15.1":0.00124,"15.2-15.3":0.00062,"15.4":0.0031,"15.5":0.00124,"15.6":0.01736,"16.0":0.00124,"16.1":0.00868,"16.2":0.0186,"16.3":0.00372,"16.4":0.02542,"16.5":0.0031,"16.6":0.01116,"17.0":0.00434,"17.1":0.00248,"17.2":0.00372,"17.3":0.0062,"17.4":0.05704,"17.5":0.01364},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0023,"5.0-5.1":0.0023,"6.0-6.1":0.00575,"7.0-7.1":0.00805,"8.1-8.4":0.0023,"9.0-9.2":0.00575,"9.3":0.02645,"10.0-10.2":0.0046,"10.3":0.0414,"11.0-11.2":0.06095,"11.3-11.4":0.0115,"12.0-12.1":0.0069,"12.2-12.5":0.16675,"13.0-13.1":0.00345,"13.2":0.0161,"13.3":0.00805,"13.4-13.7":0.0368,"14.0-14.4":0.06325,"14.5-14.8":0.09775,"15.0-15.1":0.04715,"15.2-15.3":0.05175,"15.4":0.05865,"15.5":0.0736,"15.6-15.8":0.66239,"16.0":0.15065,"16.1":0.3105,"16.2":0.15065,"16.3":0.26105,"16.4":0.0552,"16.5":0.11155,"16.6-16.7":0.88894,"17.0":0.0966,"17.1":0.15755,"17.2":0.16445,"17.3":0.3036,"17.4":6.89418,"17.5":0.48644,"17.6":0},P:{"4":0.21253,"20":0.07084,"21":0.2935,"22":0.4453,"23":0.59711,"24":0.7894,"25":1.75085,"5.0-5.4":0.01012,"6.2-6.4":0.08096,"7.2-7.4":0.85012,"8.2":0.01012,"9.2":0.03036,"10.1":0.01012,"11.1-11.2":0.10121,"12.0":0.03036,"13.0":0.0506,"14.0":0.08096,"15.0":0.0506,"16.0":0.24289,"17.0":0.09108,"18.0":0.07084,"19.0":0.27325},I:{"0":0.15884,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00035},K:{"0":7.08632,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00066,"9":0.00131,"11":0.00919,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.16954},R:{_:"0"},M:{"0":0.08442},Q:{_:"14.9"},O:{"0":0.41272},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/MA.js b/node_modules/caniuse-lite/data/regions/MA.js index 7118b446c..b52dbc594 100644 --- a/node_modules/caniuse-lite/data/regions/MA.js +++ b/node_modules/caniuse-lite/data/regions/MA.js @@ -1 +1 @@ -module.exports={C:{"3":0.01236,"52":0.04533,"65":0.02473,"68":0.00412,"78":0.00412,"80":0.00412,"82":0.00412,"105":0.00824,"106":0.00412,"107":0.00412,"108":0.00412,"109":0.01236,"110":0.00412,"115":0.22253,"123":0.00412,"125":0.00412,"126":0.00412,"127":0.00824,"128":0.04121,"130":0.00412,"131":0.00412,"133":0.00412,"134":0.01236,"135":0.00824,"136":0.00824,"137":0.02061,"138":0.10715,"139":1.2157,"140":0.18957,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 72 73 74 75 76 77 79 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 111 112 113 114 116 117 118 119 120 121 122 124 129 132 141 142 143 3.5 3.6"},D:{"11":0.00412,"29":0.02885,"38":0.00412,"39":0.01236,"40":0.01236,"41":0.01648,"42":0.01236,"43":0.01648,"44":0.01236,"45":0.01236,"46":0.01236,"47":0.01236,"48":0.01236,"49":0.03709,"50":0.01648,"51":0.01236,"52":0.01236,"53":0.01236,"54":0.01236,"55":0.01236,"56":0.02473,"57":0.01236,"58":0.14424,"59":0.01236,"60":0.01236,"63":0.00412,"64":0.00412,"65":0.00824,"66":0.00412,"67":0.01236,"68":0.02061,"69":0.01236,"70":0.01236,"71":0.00412,"72":0.01648,"73":0.02473,"74":0.00824,"75":0.01236,"76":0.00412,"77":0.00412,"78":0.00824,"79":0.06594,"80":0.01236,"81":0.01648,"83":0.03297,"84":0.00824,"85":0.01648,"86":0.02061,"87":0.05769,"88":0.01648,"89":0.01236,"90":0.01236,"91":0.00824,"93":0.00412,"94":0.00412,"95":0.00824,"96":0.00412,"97":0.00412,"98":0.02473,"99":0.00412,"100":0.03297,"101":0.04533,"102":0.02885,"103":0.06182,"104":0.13599,"105":0.03297,"106":0.07418,"107":0.06182,"108":0.08654,"109":1.47944,"110":0.0783,"111":0.06182,"112":0.05769,"113":0.00824,"114":0.04121,"115":0.03297,"116":0.10303,"117":0.02885,"118":0.0783,"119":0.07418,"120":0.04945,"121":0.04121,"122":0.0783,"123":0.04533,"124":0.06594,"125":1.95748,"126":0.05357,"127":0.05357,"128":0.11127,"129":0.04945,"130":0.05769,"131":0.1566,"132":0.08654,"133":0.09066,"134":0.13187,"135":0.28435,"136":2.93827,"137":16.64472,"138":0.66348,"139":0.02061,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 61 62 92 140 141"},F:{"40":0.00412,"46":0.00412,"76":0.00412,"77":0.00412,"79":0.00412,"84":0.00412,"85":0.00412,"87":0.00412,"88":0.00824,"89":0.00824,"90":0.01236,"92":0.00412,"94":0.00412,"95":0.08242,"102":0.00412,"114":0.00412,"117":0.00412,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 78 80 81 82 83 86 91 93 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00412,"18":0.00412,"89":0.00824,"90":0.00412,"91":0.00412,"92":0.03297,"100":0.02885,"101":0.02473,"102":0.02473,"103":0.02473,"104":0.02473,"105":0.02885,"106":0.03297,"107":0.02885,"108":0.03297,"109":0.05357,"110":0.03297,"111":0.03297,"112":0.02473,"113":0.02885,"114":0.03297,"115":0.02885,"116":0.02473,"117":0.02885,"118":0.02061,"119":0.02885,"120":0.02885,"121":0.02885,"122":0.03297,"123":0.02885,"124":0.02885,"125":0.02473,"126":0.02885,"127":0.03297,"128":0.02885,"129":0.03709,"130":0.03709,"131":0.04945,"132":0.04121,"133":0.01648,"134":0.02885,"135":0.03709,"136":0.47392,"137":2.97124,"138":0.28023,_:"12 13 15 16 17 79 80 81 83 84 85 86 87 88 93 94 95 96 97 98 99"},E:{"4":0.01236,"14":0.00412,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 15.2-15.3 15.4 16.2 26.0","5.1":0.01236,"9.1":0.03297,"11.1":0.00412,"12.1":0.00412,"13.1":0.00824,"14.1":0.01236,"15.1":0.00412,"15.5":0.00412,"15.6":0.04533,"16.0":0.00412,"16.1":0.00412,"16.3":0.01236,"16.4":0.00412,"16.5":0.00824,"16.6":0.04121,"17.0":0.00412,"17.1":0.01648,"17.2":0.00824,"17.3":0.00412,"17.4":0.01648,"17.5":0.02061,"17.6":0.06182,"18.0":0.01648,"18.1":0.01236,"18.2":0.01236,"18.3":0.03709,"18.4":0.11951,"18.5":0.28847},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00138,"5.0-5.1":0,"6.0-6.1":0.00276,"7.0-7.1":0.00276,"8.1-8.4":0,"9.0-9.2":0.00138,"9.3":0.00828,"10.0-10.2":0.00069,"10.3":0.01379,"11.0-11.2":0.08827,"11.3-11.4":0.00483,"12.0-12.1":0.00138,"12.2-12.5":0.0462,"13.0-13.1":0.00069,"13.2":0.00207,"13.3":0.00138,"13.4-13.7":0.00759,"14.0-14.4":0.01793,"14.5-14.8":0.01793,"15.0-15.1":0.01241,"15.2-15.3":0.01241,"15.4":0.01517,"15.5":0.01655,"15.6-15.8":0.21378,"16.0":0.02827,"16.1":0.05793,"16.2":0.02965,"16.3":0.05448,"16.4":0.01241,"16.5":0.02207,"16.6-16.7":0.26826,"17.0":0.01448,"17.1":0.02552,"17.2":0.02,"17.3":0.02827,"17.4":0.05034,"17.5":0.10551,"17.6-17.7":0.27584,"18.0":0.06827,"18.1":0.15378,"18.2":0.08137,"18.3":0.34963,"18.4":0.37101,"18.5":4.34935,"26.0":0},P:{"4":0.19504,"20":0.01027,"21":0.0308,"22":0.02053,"23":0.0308,"24":0.05133,"25":0.07186,"26":0.13345,"27":0.14371,"28":1.62192,"5.0-5.4":0.02053,"6.2-6.4":0.04106,"7.2-7.4":0.17451,_:"8.2 9.2 10.1 15.0 16.0","11.1-11.2":0.01027,"12.0":0.01027,"13.0":0.01027,"14.0":0.01027,"17.0":0.02053,"18.0":0.01027,"19.0":0.01027},I:{"0":0.15259,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.3545,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.27867,"9":0.05016,"10":0.0836,"11":0.26753,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.46674},R:{_:"0"},M:{"0":0.17637},Q:{_:"14.9"},O:{"0":0.07643},H:{"0":0.01}}; +module.exports={C:{"52":0.06543,"64":0.00385,"65":0.03079,"72":0.00385,"76":0.00385,"78":0.0077,"82":0.00385,"88":0.00385,"93":0.00385,"94":0.00385,"99":0.00385,"102":0.0077,"103":0.0154,"105":0.00385,"106":0.00385,"107":0.00385,"108":0.00385,"109":0.00385,"110":0.00385,"111":0.0077,"113":0.00385,"115":0.33486,"117":0.00385,"118":0.0077,"119":0.0077,"121":0.0077,"122":0.01155,"123":0.01925,"124":0.04234,"125":0.80444,"126":0.65433,"127":0.02694,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 66 67 68 69 70 71 73 74 75 77 79 80 81 83 84 85 86 87 89 90 91 92 95 96 97 98 100 101 104 112 114 116 120 128 129 3.5 3.6"},D:{"11":0.00385,"29":0.00385,"38":0.00385,"41":0.00385,"42":0.00385,"43":0.0077,"47":0.00385,"49":0.03079,"50":0.00385,"56":0.0154,"58":0.16166,"59":0.00385,"63":0.00385,"64":0.00385,"65":0.0077,"66":0.00385,"67":1.55115,"68":0.01155,"69":0.0077,"70":0.01155,"71":0.00385,"72":0.01925,"73":0.0154,"74":0.00385,"75":0.0077,"76":0.00385,"77":0.00385,"78":0.00385,"79":0.05774,"80":0.00385,"81":0.0077,"83":0.03849,"84":0.0077,"85":0.02309,"86":0.01155,"87":0.05774,"88":0.01155,"89":0.0077,"90":0.0077,"91":0.01925,"92":0.0077,"93":0.01155,"94":0.0154,"95":0.01155,"96":0.12317,"97":0.0077,"98":0.01155,"99":0.12317,"100":0.0077,"101":0.01925,"102":0.02694,"103":0.05004,"104":0.03464,"105":0.01925,"106":0.05004,"107":0.05004,"108":0.06928,"109":2.79053,"110":0.05774,"111":0.04619,"112":0.04619,"113":0.01155,"114":0.0154,"115":0.02694,"116":0.17321,"117":0.0154,"118":0.02309,"119":0.11932,"120":0.15396,"121":0.11547,"122":0.27713,"123":0.83523,"124":14.84174,"125":5.80814,"126":0.03079,"127":0.00385,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 39 40 44 45 46 48 51 52 53 54 55 57 60 61 62 128"},F:{"28":0.00385,"40":0.00385,"46":0.00385,"79":0.00385,"85":0.0077,"91":0.00385,"93":0.00385,"94":0.00385,"95":0.06158,"102":0.00385,"105":0.00385,"106":0.0077,"107":0.26943,"108":0.02694,"109":1.35485,"110":0.10007,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 92 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0077,"92":0.03464,"100":0.00385,"103":0.00385,"106":0.00385,"107":0.0077,"108":0.0077,"109":0.04234,"110":0.0077,"111":0.00385,"114":0.00385,"116":0.00385,"117":0.0077,"118":0.00385,"119":0.0077,"120":0.0154,"121":0.01925,"122":0.03849,"123":0.10777,"124":2.42487,"125":1.22013,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 112 113 115"},E:{"14":0.07698,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00385,"12.1":0.00385,"13.1":0.02309,"14.1":0.05774,"15.1":0.02309,"15.2-15.3":0.0077,"15.4":0.00385,"15.5":0.0077,"15.6":0.09623,"16.0":0.00385,"16.1":0.0077,"16.2":0.0077,"16.3":0.0154,"16.4":0.01155,"16.5":0.0154,"16.6":0.07698,"17.0":0.01155,"17.1":0.02309,"17.2":0.03079,"17.3":0.03079,"17.4":0.26173,"17.5":0.04619},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00139,"5.0-5.1":0.00139,"6.0-6.1":0.00348,"7.0-7.1":0.00487,"8.1-8.4":0.00139,"9.0-9.2":0.00348,"9.3":0.016,"10.0-10.2":0.00278,"10.3":0.02504,"11.0-11.2":0.03687,"11.3-11.4":0.00696,"12.0-12.1":0.00417,"12.2-12.5":0.10087,"13.0-13.1":0.00209,"13.2":0.00974,"13.3":0.00487,"13.4-13.7":0.02226,"14.0-14.4":0.03826,"14.5-14.8":0.05913,"15.0-15.1":0.02852,"15.2-15.3":0.03131,"15.4":0.03548,"15.5":0.04452,"15.6-15.8":0.40071,"16.0":0.09113,"16.1":0.18783,"16.2":0.09113,"16.3":0.15792,"16.4":0.03339,"16.5":0.06748,"16.6-16.7":0.53776,"17.0":0.05844,"17.1":0.09531,"17.2":0.09948,"17.3":0.18366,"17.4":4.17059,"17.5":0.29427,"17.6":0},P:{"4":0.38069,"20":0.03087,"21":0.10289,"22":0.07202,"23":0.14405,"24":0.24693,"25":1.72854,"5.0-5.4":0.06173,"6.2-6.4":0.05144,"7.2-7.4":0.28809,_:"8.2 10.1","9.2":0.01029,"11.1-11.2":0.02058,"12.0":0.01029,"13.0":0.04116,"14.0":0.02058,"15.0":0.01029,"16.0":0.02058,"17.0":0.04116,"18.0":0.02058,"19.0":0.0926},I:{"0":0.59432,"3":0,"4":0.00006,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00012,"4.2-4.3":0.00036,"4.4":0,"4.4.3-4.4.4":0.00131},K:{"0":0.45133,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02929,"9":0.00837,"10":0.00837,"11":0.14643,_:"6 7 5.5"},S:{"2.5":0.00615,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.56938},R:{_:"0"},M:{"0":0.16608},Q:{_:"14.9"},O:{"0":0.12302},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/MC.js b/node_modules/caniuse-lite/data/regions/MC.js index b670e20ca..886ddb875 100644 --- a/node_modules/caniuse-lite/data/regions/MC.js +++ b/node_modules/caniuse-lite/data/regions/MC.js @@ -1 +1 @@ -module.exports={C:{"52":0.02335,"67":0.04086,"68":0.03502,"72":0.05253,"75":0.22181,"78":0.02335,"82":0.02335,"105":0.00584,"107":0.00584,"108":0.00584,"110":0.07004,"114":0.01167,"115":1.54097,"125":0.1109,"127":0.00584,"128":0.22181,"133":0.01167,"135":0.01167,"137":0.05253,"138":0.09923,"139":2.5391,"140":0.12258,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 69 70 71 73 74 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 109 111 112 113 116 117 118 119 120 121 122 123 124 126 129 130 131 132 134 136 141 142 143 3.5 3.6"},D:{"44":0.00584,"48":0.00584,"49":0.00584,"51":0.00584,"71":0.03502,"72":0.00584,"74":0.01167,"76":0.0467,"78":0.00584,"79":0.22764,"80":0.02335,"81":0.25099,"84":0.02919,"85":0.56035,"86":0.01751,"87":0.5837,"89":0.00584,"90":0.01751,"96":0.01751,"98":0.23932,"99":0.07004,"103":3.02357,"104":0.00584,"106":0.32104,"107":1.36586,"108":0.38524,"109":0.66542,"110":0.01167,"111":0.2043,"112":0.30936,"113":0.02919,"114":0.01751,"116":0.08172,"119":0.00584,"120":0.00584,"121":0.01751,"122":0.04086,"123":0.00584,"124":0.01751,"125":0.09923,"126":0.38524,"127":0.00584,"128":0.2685,"129":0.01751,"130":0.02919,"131":0.08172,"132":0.07588,"133":0.19262,"134":0.18678,"135":0.89306,"136":2.45738,"137":15.47972,"138":0.62456,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 75 77 83 88 91 92 93 94 95 97 100 101 102 105 115 117 118 139 140 141"},F:{"52":0.00584,"65":0.04086,"83":0.01751,"84":0.00584,"88":0.00584,"89":0.00584,"90":0.00584,"91":0.08756,"95":0.01167,"114":0.17511,"116":0.00584,"117":0.01167,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.05253,"86":0.01167,"92":0.01167,"97":0.00584,"98":0.02335,"99":0.00584,"106":0.02919,"108":0.00584,"109":0.33271,"110":0.00584,"118":0.00584,"134":0.07004,"135":0.01167,"136":0.52533,"137":5.76112,"138":0.39108,_:"12 13 14 15 16 17 79 80 81 83 84 85 87 88 89 90 91 93 94 95 96 100 101 102 103 104 105 107 111 112 113 114 115 116 117 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133"},E:{"14":0.00584,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 16.4","13.1":0.02335,"14.1":0.07588,"15.2-15.3":0.07588,"15.4":0.00584,"15.5":0.02335,"15.6":0.19262,"16.0":0.05253,"16.1":0.21597,"16.2":0.03502,"16.3":0.07004,"16.5":0.2685,"16.6":0.49615,"17.0":0.01167,"17.1":0.33271,"17.2":1.20826,"17.3":0.0467,"17.4":0.22764,"17.5":1.52929,"17.6":0.37941,"18.0":0.12258,"18.1":0.12258,"18.2":0.12258,"18.3":0.33271,"18.4":0.93976,"18.5":4.96145,"26.0":0.02919},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00459,"5.0-5.1":0,"6.0-6.1":0.00917,"7.0-7.1":0.00917,"8.1-8.4":0,"9.0-9.2":0.00459,"9.3":0.02752,"10.0-10.2":0.00229,"10.3":0.04587,"11.0-11.2":0.29355,"11.3-11.4":0.01605,"12.0-12.1":0.00459,"12.2-12.5":0.15366,"13.0-13.1":0.00229,"13.2":0.00688,"13.3":0.00459,"13.4-13.7":0.02523,"14.0-14.4":0.05963,"14.5-14.8":0.05963,"15.0-15.1":0.04128,"15.2-15.3":0.04128,"15.4":0.05045,"15.5":0.05504,"15.6-15.8":0.71095,"16.0":0.09403,"16.1":0.19265,"16.2":0.09862,"16.3":0.18118,"16.4":0.04128,"16.5":0.07339,"16.6-16.7":0.89213,"17.0":0.04816,"17.1":0.08486,"17.2":0.06651,"17.3":0.09403,"17.4":0.16742,"17.5":0.35089,"17.6-17.7":0.91736,"18.0":0.22705,"18.1":0.51143,"18.2":0.27062,"18.3":1.16275,"18.4":1.23385,"18.5":14.46445,"26.0":0},P:{"25":0.01043,"27":0.11477,"28":1.49204,_:"4 20 21 22 23 24 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","16.0":0.01043,"19.0":0.02087},I:{"0":0.16208,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.25394,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04086,"9":0.01362,"11":0.02724,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":15.27832},R:{_:"0"},M:{"0":1.14483},Q:{"14.9":0.00833},O:{"0":0.02498},H:{"0":0}}; +module.exports={C:{"2":0.01904,"3":0.01269,"4":0.01904,"5":0.00635,"9":0.00635,"12":0.01269,"13":0.00635,"15":0.00635,"16":0.00635,"18":0.00635,"20":0.00635,"21":0.00635,"24":0.01269,"25":0.00635,"26":0.01269,"27":0.00635,"28":0.00635,"30":0.01269,"31":0.01904,"32":0.00635,"33":0.00635,"34":0.01269,"36":0.01269,"37":0.01269,"38":0.03173,"39":0.02538,"40":0.03808,"41":0.00635,"42":0.00635,"44":0.00635,"48":0.00635,"56":0.01269,"78":0.81863,"82":0.22846,"91":0.00635,"102":0.00635,"103":0.00635,"105":0.01269,"106":0.04442,"107":0.02538,"108":0.02538,"109":0.01269,"110":0.01269,"111":0.01269,"113":0.00635,"115":0.8694,"118":0.01269,"119":0.00635,"122":0.00635,"123":0.04442,"124":0.11423,"125":2.2211,"126":1.57381,_:"6 7 8 10 11 14 17 19 22 23 29 35 43 45 46 47 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 104 112 114 116 117 120 121 127 128 129","3.5":0.01269,"3.6":0.05077},D:{"6":0.00635,"7":0.00635,"11":0.00635,"15":0.00635,"16":0.00635,"18":0.00635,"19":0.01269,"21":0.01904,"22":0.00635,"26":0.00635,"28":0.00635,"30":0.00635,"31":0.01904,"33":0.01269,"34":0.00635,"35":0.01904,"36":0.02538,"37":0.01904,"38":0.01269,"39":0.03808,"40":0.01904,"41":0.07615,"42":0.02538,"43":0.06981,"44":0.10788,"45":0.06346,"46":0.08884,"47":0.05077,"51":0.12692,"57":0.02538,"65":0.03173,"70":0.14596,"72":0.03808,"74":0.02538,"75":0.00635,"76":0.03173,"78":0.03808,"79":0.17134,"80":0.11423,"81":0.03808,"83":0.03808,"84":0.11423,"85":0.46326,"86":0.17769,"87":0.26653,"88":0.00635,"89":0.00635,"90":0.00635,"91":0.00635,"94":0.01269,"95":0.00635,"96":0.01269,"97":0.02538,"98":0.53306,"99":0.22846,"100":0.00635,"102":0.01904,"103":1.60554,"105":0.10154,"106":0.36807,"107":0.73614,"108":0.75517,"109":0.95825,"110":0.58383,"111":0.02538,"112":0.43787,"114":0.00635,"115":0.01269,"116":2.00534,"118":0.00635,"119":0.00635,"120":0.0825,"121":0.25384,"122":0.27288,"123":0.81863,"124":10.3186,"125":4.13125,"126":0.01904,_:"4 5 8 9 10 12 13 14 17 20 23 24 25 27 29 32 48 49 50 52 53 54 55 56 58 59 60 61 62 63 64 66 67 68 69 71 73 77 92 93 101 104 113 117 127 128"},F:{"12":0.00635,"24":0.00635,"26":0.01269,"30":0.01269,"31":0.03808,"33":0.00635,"83":0.00635,"84":0.01904,"93":0.00635,"102":0.00635,"107":0.03173,"109":7.69135,"110":0.64729,_:"9 11 15 16 17 18 19 20 21 22 23 25 27 28 29 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.5 11.6","11.1":0.00635,"12.1":0.01904},B:{"12":0.01269,"13":0.00635,"17":0.00635,"86":0.08884,"98":0.12057,"99":0.01904,"107":0.01904,"109":0.62825,"110":0.00635,"119":0.01269,"122":0.00635,"123":0.08884,"124":3.07781,"125":1.00901,_:"14 15 16 18 79 80 81 83 84 85 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 108 111 112 113 114 115 116 117 118 120 121"},E:{"4":0.00635,"5":0.01269,"7":0.01269,"8":0.01269,"9":0.19673,"13":0.00635,"14":0.01904,"15":0.00635,_:"0 6 10 11 12 3.1 3.2 6.1 9.1 10.1 11.1 17.6","5.1":0.01269,"7.1":0.01269,"12.1":0.01269,"13.1":0.01904,"14.1":0.13961,"15.1":0.03173,"15.2-15.3":0.02538,"15.4":0.03808,"15.5":0.06346,"15.6":0.90113,"16.0":0.01904,"16.1":0.12692,"16.2":0.14596,"16.3":0.90113,"16.4":0.03808,"16.5":0.13327,"16.6":3.14762,"17.0":0.02538,"17.1":0.12057,"17.2":0.35538,"17.3":1.16132,"17.4":5.27987,"17.5":0.5521},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00397,"5.0-5.1":0.00397,"6.0-6.1":0.00994,"7.0-7.1":0.01391,"8.1-8.4":0.00397,"9.0-9.2":0.00994,"9.3":0.04571,"10.0-10.2":0.00795,"10.3":0.07155,"11.0-11.2":0.10533,"11.3-11.4":0.01987,"12.0-12.1":0.01192,"12.2-12.5":0.28817,"13.0-13.1":0.00596,"13.2":0.02782,"13.3":0.01391,"13.4-13.7":0.0636,"14.0-14.4":0.10931,"14.5-14.8":0.16893,"15.0-15.1":0.08148,"15.2-15.3":0.08943,"15.4":0.10136,"15.5":0.12719,"15.6-15.8":1.14475,"16.0":0.26035,"16.1":0.5366,"16.2":0.26035,"16.3":0.45114,"16.4":0.0954,"16.5":0.19278,"16.6-16.7":1.53627,"17.0":0.16694,"17.1":0.27228,"17.2":0.2842,"17.3":0.52468,"17.4":11.91453,"17.5":0.84067,"17.6":0},P:{"4":0.06498,"20":0.02166,"21":0.01083,"22":0.02166,"23":0.02166,"24":0.04332,"25":1.23458,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.07581},I:{"0":0.95361,"3":0,"4":0.0001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00019,"4.2-4.3":0.00057,"4.4":0,"4.4.3-4.4.4":0.00211},K:{"0":0.12885,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.02571,"7":0.05142,"8":0.66202,"9":0.14783,"10":0.10284,"11":0.47562,_:"5.5"},S:{"2.5":0.0475,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":12.76705},R:{_:"0"},M:{"0":0.33617},Q:{_:"14.9"},O:{"0":0.16443},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/MD.js b/node_modules/caniuse-lite/data/regions/MD.js index 01e298f42..fd5cbf542 100644 --- a/node_modules/caniuse-lite/data/regions/MD.js +++ b/node_modules/caniuse-lite/data/regions/MD.js @@ -1 +1 @@ -module.exports={C:{"52":0.09908,"60":0.00495,"74":0.00495,"78":0.00495,"115":0.44586,"121":0.02477,"122":0.00495,"125":0.01486,"128":0.18825,"131":0.00495,"133":0.00495,"134":0.00991,"135":0.01982,"136":0.02972,"137":0.01486,"138":0.09413,"139":1.62491,"140":0.16844,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 123 124 126 127 129 130 132 141 142 143 3.5 3.6"},D:{"39":0.02972,"40":0.01982,"41":0.01982,"42":0.02477,"43":0.01982,"44":0.02477,"45":0.02972,"46":0.02477,"47":0.02477,"48":0.02477,"49":0.02972,"50":0.02972,"51":0.02477,"52":0.02477,"53":0.02477,"54":0.02477,"55":0.02477,"56":0.02477,"57":0.01982,"58":0.02477,"59":0.02477,"60":0.02477,"68":0.00495,"70":0.00495,"79":0.00495,"85":0.01982,"86":0.00495,"87":0.00495,"89":0.00495,"90":0.01982,"94":0.00495,"97":0.00991,"98":0.04459,"99":0.01486,"100":0.00991,"101":0.00495,"102":0.1189,"103":0.02477,"104":0.00991,"105":0.00991,"106":0.07926,"107":0.00495,"108":0.00991,"109":4.34961,"111":0.01486,"112":0.00495,"114":0.0644,"115":0.00495,"116":0.07926,"117":0.01982,"118":0.11394,"119":0.00991,"120":0.01982,"121":0.01982,"122":0.02477,"123":0.03468,"124":0.01982,"125":1.55556,"126":0.09908,"127":0.00991,"128":0.02972,"129":0.34183,"130":0.03468,"131":0.17834,"132":0.14367,"133":0.10403,"134":0.22293,"135":0.27742,"136":3.49257,"137":20.78203,"138":0.81741,"139":0.00991,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 69 71 72 73 74 75 76 77 78 80 81 83 84 88 91 92 93 95 96 110 113 140 141"},F:{"75":0.00495,"79":0.38641,"82":0.00991,"85":0.05449,"89":0.03963,"90":0.03963,"95":0.15853,"117":0.00495,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00495,"92":0.00991,"98":0.00495,"99":0.00495,"107":0.00991,"109":0.00495,"118":0.01486,"122":0.00495,"127":0.00991,"128":0.00991,"129":0.03468,"130":0.02972,"131":0.02972,"132":0.05945,"133":0.00495,"134":0.00991,"135":0.01486,"136":0.38146,"137":2.02123,"138":0.16348,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 119 120 121 123 124 125 126"},E:{"14":0.00991,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 16.2 26.0","5.1":0.00991,"13.1":0.00991,"14.1":0.00991,"15.1":0.00495,"15.2-15.3":0.01486,"15.4":0.00495,"15.5":0.00495,"15.6":0.09908,"16.0":0.00991,"16.1":0.00495,"16.3":0.00991,"16.4":0.00495,"16.5":0.00495,"16.6":0.03963,"17.0":0.00495,"17.1":0.02972,"17.2":0.03963,"17.3":0.00991,"17.4":0.01982,"17.5":0.05945,"17.6":0.15357,"18.0":0.00991,"18.1":0.05945,"18.2":0.02972,"18.3":0.02972,"18.4":0.06936,"18.5":0.66879},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00226,"5.0-5.1":0,"6.0-6.1":0.00452,"7.0-7.1":0.00452,"8.1-8.4":0,"9.0-9.2":0.00226,"9.3":0.01355,"10.0-10.2":0.00113,"10.3":0.02258,"11.0-11.2":0.14452,"11.3-11.4":0.0079,"12.0-12.1":0.00226,"12.2-12.5":0.07565,"13.0-13.1":0.00113,"13.2":0.00339,"13.3":0.00226,"13.4-13.7":0.01242,"14.0-14.4":0.02936,"14.5-14.8":0.02936,"15.0-15.1":0.02032,"15.2-15.3":0.02032,"15.4":0.02484,"15.5":0.0271,"15.6-15.8":0.35001,"16.0":0.04629,"16.1":0.09484,"16.2":0.04855,"16.3":0.0892,"16.4":0.02032,"16.5":0.03613,"16.6-16.7":0.43921,"17.0":0.02371,"17.1":0.04178,"17.2":0.03274,"17.3":0.04629,"17.4":0.08242,"17.5":0.17275,"17.6-17.7":0.45163,"18.0":0.11178,"18.1":0.25178,"18.2":0.13323,"18.3":0.57244,"18.4":0.60744,"18.5":7.12105,"26.0":0},P:{"4":0.08298,"20":0.01037,"21":0.01037,"22":0.01037,"23":0.02075,"24":0.03112,"25":0.04149,"26":0.04149,"27":0.15559,"28":2.10562,_:"5.0-5.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 19.0","6.2-6.4":0.01037,"7.2-7.4":0.02075,"9.2":0.01037,"11.1-11.2":0.02075,"17.0":0.01037,"18.0":0.01037},I:{"0":0.00504,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.4191,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00538,"11":0.11847,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.9155},R:{_:"0"},M:{"0":0.31784},Q:{"14.9":0.00505},O:{"0":0.09586},H:{"0":0.04}}; +module.exports={C:{"40":0.00455,"52":0.03641,"55":0.01365,"57":0.00455,"74":0.00455,"78":0.00455,"88":0.59163,"91":0.00455,"102":0.01365,"103":0.01365,"104":0.02276,"105":0.01365,"106":0.00455,"107":0.00455,"108":0.00455,"109":0.00455,"110":0.00455,"111":0.0091,"113":0.01365,"114":0.00455,"115":0.74181,"116":0.0091,"117":0.00455,"119":0.00455,"120":0.00455,"121":0.0091,"122":0.00455,"123":0.0182,"124":0.02731,"125":0.91475,"126":0.87834,"127":0.00455,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 53 54 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 112 118 128 129 3.5","3.6":0.0091},D:{"34":0.0091,"41":0.01365,"43":0.00455,"44":0.00455,"45":0.00455,"46":0.00455,"47":0.00455,"49":0.01365,"51":0.02276,"53":0.00455,"56":0.0091,"69":0.00455,"70":0.0091,"79":0.02731,"80":0.00455,"81":0.00455,"83":0.00455,"86":0.0091,"87":0.0091,"88":0.0091,"90":0.05461,"92":0.00455,"94":0.0182,"95":0.0091,"96":0.0091,"97":0.0091,"99":0.18204,"100":0.00455,"101":0.01365,"102":0.10467,"103":0.04096,"104":0.0182,"105":0.00455,"106":0.10012,"107":0.0182,"108":1.89777,"109":4.01853,"110":0.06371,"111":0.01365,"112":0.0182,"113":0.43235,"114":0.48696,"115":0.0182,"116":0.19114,"117":0.0091,"118":0.10012,"119":0.03186,"120":0.08647,"121":0.13653,"122":0.34588,"123":0.85104,"124":15.4552,"125":6.28948,"126":0.01365,"127":0.0091,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 42 48 50 52 54 55 57 58 59 60 61 62 63 64 65 66 67 68 71 72 73 74 75 76 77 78 84 85 89 91 93 98 128"},F:{"73":0.00455,"79":0.06371,"82":0.00455,"85":0.07282,"87":0.00455,"94":0.0091,"95":0.4551,"101":0.00455,"104":0.00455,"107":0.30492,"108":0.04096,"109":3.20846,"110":0.12743,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 83 84 86 88 89 90 91 92 93 96 97 98 99 100 102 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00455,"92":0.0091,"105":0.00455,"107":0.0091,"108":0.00455,"109":0.01365,"112":0.02276,"118":0.0091,"119":0.0091,"120":0.04551,"121":0.0091,"122":0.0182,"123":0.05916,"124":1.10589,"125":0.669,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 110 111 113 114 115 116 117"},E:{"9":0.01365,"14":0.03186,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00455,"11.1":0.20024,"12.1":0.01365,"13.1":0.02731,"14.1":0.03641,"15.1":0.00455,"15.2-15.3":0.00455,"15.4":0.0091,"15.5":0.0091,"15.6":0.06827,"16.0":0.0091,"16.1":0.02276,"16.2":0.0182,"16.3":0.02276,"16.4":0.03186,"16.5":0.03186,"16.6":0.05006,"17.0":0.02276,"17.1":0.06827,"17.2":0.03186,"17.3":0.03186,"17.4":0.446,"17.5":0.10012},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00252,"5.0-5.1":0.00252,"6.0-6.1":0.0063,"7.0-7.1":0.00883,"8.1-8.4":0.00252,"9.0-9.2":0.0063,"9.3":0.029,"10.0-10.2":0.00504,"10.3":0.04539,"11.0-11.2":0.06683,"11.3-11.4":0.01261,"12.0-12.1":0.00757,"12.2-12.5":0.18283,"13.0-13.1":0.00378,"13.2":0.01765,"13.3":0.00883,"13.4-13.7":0.04035,"14.0-14.4":0.06935,"14.5-14.8":0.10718,"15.0-15.1":0.0517,"15.2-15.3":0.05674,"15.4":0.06431,"15.5":0.0807,"15.6-15.8":0.72628,"16.0":0.16518,"16.1":0.34044,"16.2":0.16518,"16.3":0.28622,"16.4":0.06052,"16.5":0.12231,"16.6-16.7":0.97467,"17.0":0.10592,"17.1":0.17274,"17.2":0.18031,"17.3":0.33288,"17.4":7.55909,"17.5":0.53336,"17.6":0},P:{"4":0.07252,"20":0.01036,"21":0.03108,"22":0.04144,"23":0.11396,"24":0.16577,"25":1.75091,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0","7.2-7.4":0.04144,"11.1-11.2":0.01036,"13.0":0.01036,"17.0":0.02072,"18.0":0.01036,"19.0":0.02072},I:{"0":0.07599,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00017},K:{"0":0.38778,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00465,"8":0.06975,"9":0.0093,"10":0.0093,"11":0.1209,_:"6 5.5"},S:{"2.5":0.00545,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.29057},R:{_:"0"},M:{"0":0.23431},Q:{_:"14.9"},O:{"0":0.09263},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/ME.js b/node_modules/caniuse-lite/data/regions/ME.js index 04cf8c82a..b5d3be073 100644 --- a/node_modules/caniuse-lite/data/regions/ME.js +++ b/node_modules/caniuse-lite/data/regions/ME.js @@ -1 +1 @@ -module.exports={C:{"52":0.01731,"68":0.04039,"78":0.00289,"82":0.00289,"91":0.00577,"105":0.00577,"109":0.00866,"115":0.19041,"117":0.00289,"124":0.00577,"125":0.00289,"128":0.00577,"134":0.00577,"135":0.00866,"136":0.00866,"137":0.01154,"138":0.04039,"139":0.76741,"140":0.22215,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 114 116 118 119 120 121 122 123 126 127 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"49":0.02885,"53":0.00289,"56":0.00289,"58":0.00289,"66":0.00289,"69":0.00289,"70":0.00289,"77":0.00289,"78":0.00577,"79":0.47314,"80":0.00289,"81":0.00289,"83":0.01731,"85":0.00577,"86":0.00577,"87":0.2308,"89":0.01154,"91":0.05482,"94":0.01731,"98":0.04905,"99":0.01443,"100":0.00289,"103":0.03751,"104":0.0577,"105":0.00289,"106":0.00577,"108":0.0202,"109":1.27229,"110":0.00289,"111":0.01443,"112":0.00289,"113":0.00289,"114":0.01731,"115":0.00289,"116":0.03174,"117":0.02308,"118":0.00289,"119":0.02597,"120":0.03462,"122":0.09809,"123":0.01443,"124":0.02597,"125":0.35197,"126":0.02885,"127":0.0202,"128":0.04905,"129":0.01154,"130":0.01731,"131":0.06636,"132":0.16156,"133":0.04039,"134":0.0577,"135":0.12117,"136":2.22145,"137":14.24325,"138":0.48468,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 54 55 57 59 60 61 62 63 64 65 67 68 71 72 73 74 75 76 84 88 90 92 93 95 96 97 101 102 107 121 139 140 141"},F:{"40":0.00289,"46":0.0577,"68":0.12694,"84":0.00289,"86":0.00577,"89":0.00577,"95":0.02885,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00289,"92":0.12983,"98":0.00577,"99":0.00289,"121":0.00289,"122":0.00289,"123":0.01443,"131":0.00577,"132":0.00289,"133":0.00289,"134":0.01154,"135":0.01443,"136":0.14137,"137":0.83954,"138":0.09232,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 124 125 126 127 128 129 130"},E:{"14":0.00289,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 15.5 17.0 17.2","12.1":0.00289,"13.1":0.01154,"14.1":0.04039,"15.1":0.00577,"15.6":0.08944,"16.0":0.00289,"16.1":0.00289,"16.2":0.04039,"16.3":0.00289,"16.4":0.01443,"16.5":0.00289,"16.6":0.06636,"17.1":0.11829,"17.3":0.00577,"17.4":0.02597,"17.5":0.06059,"17.6":0.06636,"18.0":0.00289,"18.1":0.01731,"18.2":0.00866,"18.3":0.02597,"18.4":0.06924,"18.5":0.64336,"26.0":0.00289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00352,"5.0-5.1":0,"6.0-6.1":0.00703,"7.0-7.1":0.00703,"8.1-8.4":0,"9.0-9.2":0.00352,"9.3":0.0211,"10.0-10.2":0.00176,"10.3":0.03516,"11.0-11.2":0.22504,"11.3-11.4":0.01231,"12.0-12.1":0.00352,"12.2-12.5":0.11779,"13.0-13.1":0.00176,"13.2":0.00527,"13.3":0.00352,"13.4-13.7":0.01934,"14.0-14.4":0.04571,"14.5-14.8":0.04571,"15.0-15.1":0.03165,"15.2-15.3":0.03165,"15.4":0.03868,"15.5":0.04219,"15.6-15.8":0.54502,"16.0":0.07208,"16.1":0.14768,"16.2":0.0756,"16.3":0.13889,"16.4":0.03165,"16.5":0.05626,"16.6-16.7":0.68391,"17.0":0.03692,"17.1":0.06505,"17.2":0.05099,"17.3":0.07208,"17.4":0.12834,"17.5":0.26899,"17.6-17.7":0.70325,"18.0":0.17405,"18.1":0.39206,"18.2":0.20746,"18.3":0.89137,"18.4":0.94587,"18.5":11.08844,"26.0":0},P:{"4":0.319,"21":0.03087,"22":0.06174,"23":0.12348,"24":0.06174,"25":0.07203,"26":0.12348,"27":0.40132,"28":4.52773,_:"20 8.2 9.2 12.0 13.0 14.0 15.0 16.0 18.0","5.0-5.4":0.07203,"6.2-6.4":0.09261,"7.2-7.4":0.22639,"10.1":0.06174,"11.1-11.2":0.03087,"17.0":0.01029,"19.0":0.01029},I:{"0":0.0071,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.75419,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00289,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.0179},R:{_:"0"},M:{"0":0.17788},Q:{_:"14.9"},O:{"0":0.00712},H:{"0":0}}; +module.exports={C:{"3":0.00291,"4":0.00291,"36":0.00291,"38":0.00291,"40":0.00291,"52":0.00874,"66":0.00582,"68":0.00582,"75":0.00291,"78":0.00582,"87":0.00291,"91":0.00291,"103":0.00582,"107":0.00291,"113":0.00874,"114":0.0961,"115":0.17181,"116":0.00291,"118":0.01165,"122":0.00291,"123":0.00291,"124":0.02621,"125":0.45136,"126":0.45136,"127":0.00291,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 39 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 88 89 90 92 93 94 95 96 97 98 99 100 101 102 104 105 106 108 109 110 111 112 117 119 120 121 128 129 3.5","3.6":0.00291},D:{"21":0.00291,"22":0.00291,"34":0.00291,"35":0.00291,"38":0.00291,"40":0.00291,"41":0.00291,"42":0.00291,"43":0.00582,"44":0.00582,"45":0.00582,"46":0.00291,"47":0.00291,"49":0.02621,"51":0.00874,"53":0.00874,"56":0.00291,"66":0.01747,"70":0.00582,"71":0.00291,"73":0.00291,"75":0.00291,"77":0.00291,"79":0.52998,"80":0.00291,"81":0.01456,"83":0.02912,"84":0.02621,"85":0.01747,"86":0.00874,"87":0.23296,"88":0.00582,"89":0.01165,"90":0.04659,"91":0.00291,"92":0.00291,"93":0.04368,"94":0.0495,"95":0.00291,"96":0.00582,"97":0.01165,"98":0.01456,"99":0.20966,"100":0.03786,"102":0.00582,"103":0.03786,"104":0.00291,"105":0.0233,"106":0.06698,"107":0.04077,"108":0.01747,"109":2.70816,"110":0.00874,"111":0.00291,"112":0.03786,"113":0.00291,"114":0.03203,"115":0.03203,"116":0.21258,"117":0.03786,"118":0.01165,"119":0.08736,"120":0.06115,"121":0.0728,"122":0.10192,"123":0.56202,"124":11.37136,"125":4.71744,"126":0.00582,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 23 24 25 26 27 28 29 30 31 32 33 36 37 39 48 50 52 54 55 57 58 59 60 61 62 63 64 65 67 68 69 72 74 76 78 101 127 128"},F:{"28":0.00291,"31":0.00291,"32":0.00291,"36":0.00291,"40":0.00291,"46":0.06989,"68":0.74256,"95":0.02621,"107":0.0961,"108":0.00874,"109":0.85904,"110":0.03786,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00291,"92":0.00582,"98":0.00291,"107":0.00874,"109":0.00291,"110":0.00291,"112":0.00291,"118":0.00291,"119":0.00291,"120":0.00291,"121":0.00582,"122":0.00874,"123":0.03786,"124":1.14733,"125":0.69014,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 108 111 113 114 115 116 117"},E:{"9":0.01747,"11":0.00291,"14":0.00874,_:"0 4 5 6 7 8 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.6","12.1":0.01456,"13.1":0.00582,"14.1":0.01747,"15.1":0.01456,"15.4":0.00874,"15.5":0.00874,"15.6":0.0495,"16.0":0.01747,"16.1":0.00874,"16.2":0.06406,"16.3":0.02038,"16.4":0.01456,"16.5":0.0233,"16.6":0.11648,"17.0":0.01165,"17.1":0.13104,"17.2":0.01747,"17.3":0.02621,"17.4":0.49504,"17.5":0.05824},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00268,"5.0-5.1":0.00268,"6.0-6.1":0.00669,"7.0-7.1":0.00937,"8.1-8.4":0.00268,"9.0-9.2":0.00669,"9.3":0.03078,"10.0-10.2":0.00535,"10.3":0.04818,"11.0-11.2":0.07094,"11.3-11.4":0.01338,"12.0-12.1":0.00803,"12.2-12.5":0.19407,"13.0-13.1":0.00402,"13.2":0.01874,"13.3":0.00937,"13.4-13.7":0.04283,"14.0-14.4":0.07361,"14.5-14.8":0.11376,"15.0-15.1":0.05487,"15.2-15.3":0.06023,"15.4":0.06826,"15.5":0.08566,"15.6-15.8":0.77092,"16.0":0.17533,"16.1":0.36137,"16.2":0.17533,"16.3":0.30382,"16.4":0.06424,"16.5":0.12983,"16.6-16.7":1.03459,"17.0":0.11243,"17.1":0.18336,"17.2":0.19139,"17.3":0.35334,"17.4":8.02373,"17.5":0.56614,"17.6":0},P:{"4":0.52363,"20":0.08214,"21":0.10267,"22":0.21561,"23":0.42095,"24":0.57496,"25":4.8461,"5.0-5.4":0.01027,"6.2-6.4":0.11294,"7.2-7.4":0.16427,_:"8.2 9.2 13.0","10.1":0.0616,"11.1-11.2":0.02053,"12.0":0.01027,"14.0":0.02053,"15.0":0.01027,"16.0":0.01027,"17.0":0.01027,"18.0":0.04107,"19.0":0.0924},I:{"0":0.11298,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00025},K:{"0":0.24103,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00291,"7":0.00291,"8":0.04368,"9":0.00582,"10":0.00874,"11":0.02912,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.06214},R:{_:"0"},M:{"0":0.2552},Q:{_:"14.9"},O:{"0":0.04962},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MG.js b/node_modules/caniuse-lite/data/regions/MG.js index fb383479b..5287373cc 100644 --- a/node_modules/caniuse-lite/data/regions/MG.js +++ b/node_modules/caniuse-lite/data/regions/MG.js @@ -1 +1 @@ -module.exports={C:{"41":0.00354,"42":0.00354,"45":0.00354,"47":0.00354,"48":0.00354,"52":0.01417,"56":0.00354,"60":0.00354,"63":0.00354,"72":0.01063,"78":0.01772,"80":0.00354,"88":0.00354,"93":0.00354,"94":0.00354,"104":0.00709,"105":0.00709,"115":0.57751,"120":0.02834,"123":0.01063,"124":0.00354,"125":0.0248,"126":0.00354,"127":0.02126,"128":0.10275,"130":0.00354,"131":0.00354,"132":0.00354,"133":0.00709,"134":0.01063,"135":0.01417,"136":0.0496,"137":0.03543,"138":0.14526,"139":2.09037,"140":0.31887,"141":0.00709,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 43 44 46 49 50 51 53 54 55 57 58 59 61 62 64 65 66 67 68 69 70 71 73 74 75 76 77 79 81 82 83 84 85 86 87 89 90 91 92 95 96 97 98 99 100 101 102 103 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 129 142 143 3.5 3.6"},D:{"11":0.03189,"32":0.00709,"33":0.00354,"37":0.00709,"39":0.01063,"40":0.01063,"41":0.01063,"42":0.03189,"43":0.02126,"44":0.00709,"45":0.01063,"46":0.01417,"47":0.01063,"48":0.01063,"49":0.01417,"50":0.01417,"51":0.01063,"52":0.00709,"53":0.01063,"54":0.01063,"55":0.00709,"56":0.00709,"57":0.01417,"58":0.01063,"59":0.01063,"60":0.01063,"61":0.00354,"63":0.00354,"64":0.00709,"65":0.00354,"66":0.02834,"67":0.00709,"68":0.00709,"69":0.00354,"70":0.00709,"71":0.00354,"72":0.00354,"73":0.00709,"74":0.00354,"75":0.00709,"77":0.00354,"78":0.00709,"79":0.13109,"80":0.01417,"81":0.02126,"83":0.01063,"85":0.00354,"86":0.01417,"87":0.02126,"88":0.01063,"89":0.00709,"90":0.01417,"91":0.00709,"93":0.00354,"94":0.00709,"95":0.03897,"97":0.00354,"98":0.00709,"99":0.00709,"100":0.00354,"101":0.01417,"102":0.01063,"103":0.04606,"104":0.00354,"105":0.01063,"106":0.0248,"107":0.00354,"108":0.00354,"109":1.68647,"110":0.00354,"111":0.00709,"112":0.00354,"113":0.01063,"114":0.01063,"115":0.01417,"116":0.03897,"117":0.00354,"118":0.01063,"119":0.02834,"120":0.03543,"121":0.0496,"122":0.07086,"123":0.02126,"124":0.01063,"125":0.71214,"126":0.0992,"127":0.05315,"128":0.05315,"129":0.0248,"130":0.07086,"131":0.18069,"132":0.06023,"133":0.08503,"134":0.15235,"135":0.20549,"136":1.83882,"137":13.45986,"138":0.62711,"139":0.00354,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 38 62 76 84 92 96 140 141"},F:{"36":0.00354,"42":0.00354,"62":0.00709,"79":0.01417,"81":0.00709,"82":0.01063,"89":0.02834,"90":0.03897,"94":0.00354,"95":0.05315,"102":0.00354,"110":0.00354,"112":0.00354,"113":0.00354,"117":0.00709,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 85 86 87 88 91 92 93 96 97 98 99 100 101 103 104 105 106 107 108 109 111 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00354},B:{"14":0.01063,"15":0.00354,"17":0.00709,"18":0.0248,"80":0.00354,"84":0.01772,"89":0.01063,"90":0.00709,"92":0.11692,"100":0.01417,"103":0.00354,"109":0.02126,"116":0.0248,"120":0.00354,"122":0.01417,"123":0.00709,"124":0.00709,"125":0.00354,"126":0.00354,"127":0.00354,"128":0.01417,"130":0.00354,"131":0.03543,"132":0.00354,"133":0.00709,"134":0.01772,"135":0.04252,"136":0.42516,"137":2.51553,"138":0.17006,_:"12 13 16 79 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 121 129"},E:{"14":0.00354,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 26.0","11.1":0.00354,"12.1":0.00709,"13.1":0.00354,"14.1":0.00354,"15.6":0.03897,"16.6":0.0496,"17.1":0.00709,"17.2":0.00709,"17.3":0.00354,"17.4":0.00709,"17.5":0.01063,"17.6":0.02834,"18.0":0.00354,"18.1":0.00709,"18.2":0.00354,"18.3":0.01417,"18.4":0.02834,"18.5":0.20904},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0,"6.0-6.1":0.00152,"7.0-7.1":0.00152,"8.1-8.4":0,"9.0-9.2":0.00076,"9.3":0.00455,"10.0-10.2":0.00038,"10.3":0.00758,"11.0-11.2":0.04852,"11.3-11.4":0.00265,"12.0-12.1":0.00076,"12.2-12.5":0.02539,"13.0-13.1":0.00038,"13.2":0.00114,"13.3":0.00076,"13.4-13.7":0.00417,"14.0-14.4":0.00985,"14.5-14.8":0.00985,"15.0-15.1":0.00682,"15.2-15.3":0.00682,"15.4":0.00834,"15.5":0.0091,"15.6-15.8":0.1175,"16.0":0.01554,"16.1":0.03184,"16.2":0.0163,"16.3":0.02994,"16.4":0.00682,"16.5":0.01213,"16.6-16.7":0.14744,"17.0":0.00796,"17.1":0.01402,"17.2":0.01099,"17.3":0.01554,"17.4":0.02767,"17.5":0.05799,"17.6-17.7":0.15161,"18.0":0.03752,"18.1":0.08452,"18.2":0.04473,"18.3":0.19217,"18.4":0.20392,"18.5":2.39052,"26.0":0},P:{"4":0.03421,"21":0.0114,"22":0.0114,"24":0.0114,"25":0.02281,"26":0.0114,"27":0.06842,"28":0.29647,_:"20 23 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 16.0 17.0 18.0","6.2-6.4":0.0114,"7.2-7.4":0.02281,"13.0":0.0114,"15.0":0.0114,"19.0":0.0114},I:{"0":0.22561,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":1.3715,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01772,_:"6 7 8 9 10 5.5"},S:{"2.5":0.15497,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.20394},R:{_:"0"},M:{"0":0.27119},Q:{"14.9":0.00646},O:{"0":0.61342},H:{"0":0.43}}; +module.exports={C:{"30":0.00368,"32":0.00736,"40":0.00368,"42":0.00368,"43":0.00368,"47":0.00368,"48":0.01839,"52":0.02575,"56":0.00736,"60":0.00736,"62":0.00368,"66":0.00368,"67":0.00736,"68":0.00368,"72":0.01839,"75":0.01839,"78":0.01839,"79":0.00368,"80":0.00368,"82":0.00368,"84":0.00368,"88":0.00736,"91":0.00368,"92":0.00368,"93":0.00368,"94":0.00736,"95":0.00368,"98":0.00368,"99":0.01839,"102":0.02207,"103":0.01471,"104":0.01839,"105":0.00368,"107":0.00368,"108":0.00736,"109":0.00736,"110":0.00368,"111":0.02207,"113":0.01103,"114":0.00736,"115":0.84226,"116":0.00368,"118":0.00736,"119":0.00368,"120":0.0331,"121":0.01103,"122":0.02942,"123":0.02575,"124":0.08092,"125":1.44545,"126":0.92318,"127":0.01103,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 33 34 35 36 37 38 39 41 44 45 46 49 50 51 53 54 55 57 58 59 61 63 64 65 69 70 71 73 74 76 77 81 83 85 86 87 89 90 96 97 100 101 106 112 117 128 129 3.5 3.6"},D:{"11":0.05149,"26":0.00368,"32":0.05149,"33":0.00736,"38":0.00368,"42":0.03678,"43":0.01103,"46":0.00368,"48":0.00368,"49":0.00368,"50":0.00368,"51":0.00368,"55":0.00736,"57":0.01471,"58":0.00368,"61":0.00736,"64":0.00736,"65":0.00368,"66":0.00736,"67":0.00368,"68":0.00736,"70":0.00736,"71":0.01103,"73":0.00736,"74":0.01839,"76":0.00368,"77":0.00368,"78":0.01103,"79":0.03678,"80":0.02942,"81":0.06253,"83":0.00368,"84":0.00368,"85":0.04414,"86":0.01103,"87":0.06988,"88":0.02207,"89":0.01103,"90":0.01103,"91":0.00368,"92":0.01103,"94":0.00368,"95":0.08092,"96":0.00736,"97":0.00736,"98":0.00736,"99":0.01103,"100":0.00368,"101":0.01471,"102":0.01471,"103":0.08827,"104":0.0331,"105":0.00736,"106":0.03678,"107":0.01839,"108":0.04414,"109":4.21867,"110":0.00368,"111":0.01839,"112":0.01471,"113":0.00736,"114":0.01839,"115":0.02575,"116":0.07356,"117":0.01839,"118":0.01471,"119":0.08459,"120":0.17654,"121":0.25378,"122":0.34941,"123":0.80548,"124":9.56648,"125":4.07155,"126":0.00368,"127":0.00368,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 34 35 36 37 39 40 41 44 45 47 52 53 54 56 59 60 62 63 69 72 75 93 128"},F:{"34":0.00368,"36":0.00736,"53":0.06253,"64":0.00368,"65":0.00368,"73":0.00368,"77":0.00368,"79":0.01103,"85":0.00368,"95":0.09563,"97":0.00368,"102":0.00368,"105":0.00368,"106":0.00368,"107":0.05149,"108":0.01839,"109":0.64365,"110":0.07356,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 60 62 63 66 67 68 69 70 71 72 74 75 76 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00368},B:{"12":0.00368,"14":0.00368,"15":0.00368,"17":0.01103,"18":0.0331,"84":0.00736,"85":0.00368,"88":0.00368,"89":0.02207,"90":0.01471,"92":0.21332,"100":0.02942,"107":0.00368,"108":0.00368,"109":0.2501,"114":0.01839,"115":0.00736,"116":0.00368,"117":0.00368,"118":0.00736,"119":0.00736,"120":0.01839,"121":0.01839,"122":0.10298,"123":0.12505,"124":1.82429,"125":0.92318,_:"13 16 79 80 81 83 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 110 111 112 113"},E:{"14":0.00368,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.12505,"14.1":0.02575,"15.1":0.01103,"15.2-15.3":0.00368,"15.4":0.00368,"15.5":0.00368,"15.6":0.04046,"16.0":0.00736,"16.1":0.00368,"16.2":0.00368,"16.3":0.02207,"16.4":0.00736,"16.5":0.00736,"16.6":0.19493,"17.0":0.00368,"17.1":0.01103,"17.2":0.07356,"17.3":0.01839,"17.4":0.24275,"17.5":0.22804},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00071,"5.0-5.1":0.00071,"6.0-6.1":0.00177,"7.0-7.1":0.00248,"8.1-8.4":0.00071,"9.0-9.2":0.00177,"9.3":0.00816,"10.0-10.2":0.00142,"10.3":0.01277,"11.0-11.2":0.0188,"11.3-11.4":0.00355,"12.0-12.1":0.00213,"12.2-12.5":0.05143,"13.0-13.1":0.00106,"13.2":0.00497,"13.3":0.00248,"13.4-13.7":0.01135,"14.0-14.4":0.01951,"14.5-14.8":0.03015,"15.0-15.1":0.01454,"15.2-15.3":0.01596,"15.4":0.01809,"15.5":0.0227,"15.6-15.8":0.20429,"16.0":0.04646,"16.1":0.09576,"16.2":0.04646,"16.3":0.08051,"16.4":0.01702,"16.5":0.0344,"16.6-16.7":0.27416,"17.0":0.02979,"17.1":0.04859,"17.2":0.05072,"17.3":0.09363,"17.4":2.12621,"17.5":0.15002,"17.6":0},P:{"4":0.06098,"21":0.02033,"22":0.02033,"23":0.14229,"24":0.15245,"25":0.28457,_:"20 5.0-5.4 8.2 10.1 12.0 14.0","6.2-6.4":0.01016,"7.2-7.4":0.02033,"9.2":0.01016,"11.1-11.2":0.01016,"13.0":0.01016,"15.0":0.01016,"16.0":0.02033,"17.0":0.01016,"18.0":0.01016,"19.0":0.01016},I:{"0":0.18262,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00011,"4.4":0,"4.4.3-4.4.4":0.0004},K:{"0":2.72684,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00398,"9":0.00398,"11":0.03985,_:"6 7 10 5.5"},S:{"2.5":0.43622,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.08179},R:{_:"0"},M:{"0":0.25288},Q:{"14.9":0.01264},O:{"0":0.90405},H:{"0":4.24}}; diff --git a/node_modules/caniuse-lite/data/regions/MH.js b/node_modules/caniuse-lite/data/regions/MH.js index b29704dcd..7c0ccc355 100644 --- a/node_modules/caniuse-lite/data/regions/MH.js +++ b/node_modules/caniuse-lite/data/regions/MH.js @@ -1 +1 @@ -module.exports={C:{"63":0.01128,"125":0.01128,"129":0.02256,"130":0.1241,"131":0.04513,"133":0.13538,"134":0.01128,"138":0.01128,"139":0.22564,"140":0.28769,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 132 135 136 137 141 142 143 3.5 3.6"},D:{"41":0.09026,"43":0.01128,"47":0.02256,"50":0.01128,"54":0.03385,"55":0.04513,"58":0.03385,"59":0.01128,"60":0.02256,"70":0.05641,"73":0.01128,"79":0.05641,"93":0.02256,"97":0.06769,"103":0.05641,"109":0.10154,"116":0.09026,"125":0.15795,"126":0.01128,"127":0.03385,"129":0.07897,"130":0.01128,"131":0.02256,"132":0.14667,"133":0.04513,"134":0.15795,"135":0.06769,"136":4.21383,"137":23.31425,"138":0.56974,"139":0.02256,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 48 49 51 52 53 56 57 61 62 63 64 65 66 67 68 69 71 72 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 123 124 128 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"100":0.01128,"119":0.02256,"120":0.01128,"121":0.01128,"126":0.04513,"127":0.52461,"128":0.40051,"129":1.68666,"130":6.91587,"131":1.70922,"132":2.85999,"134":0.01128,"135":0.03385,"136":0.42308,"137":5.18408,"138":0.20308,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 122 123 124 125 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 18.2 18.4 26.0","16.6":0.01128,"17.4":0.03385,"17.5":2.07589,"17.6":0.03385,"18.0":0.01128,"18.1":0.11282,"18.3":0.01128,"18.5":0.2482},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0,"6.0-6.1":0.00209,"7.0-7.1":0.00209,"8.1-8.4":0,"9.0-9.2":0.00105,"9.3":0.00627,"10.0-10.2":0.00052,"10.3":0.01045,"11.0-11.2":0.06688,"11.3-11.4":0.00366,"12.0-12.1":0.00105,"12.2-12.5":0.03501,"13.0-13.1":0.00052,"13.2":0.00157,"13.3":0.00105,"13.4-13.7":0.00575,"14.0-14.4":0.01359,"14.5-14.8":0.01359,"15.0-15.1":0.00941,"15.2-15.3":0.00941,"15.4":0.0115,"15.5":0.01254,"15.6-15.8":0.16198,"16.0":0.02142,"16.1":0.04389,"16.2":0.02247,"16.3":0.04128,"16.4":0.00941,"16.5":0.01672,"16.6-16.7":0.20326,"17.0":0.01097,"17.1":0.01933,"17.2":0.01515,"17.3":0.02142,"17.4":0.03814,"17.5":0.07995,"17.6-17.7":0.20901,"18.0":0.05173,"18.1":0.11652,"18.2":0.06166,"18.3":0.26492,"18.4":0.28112,"18.5":3.29556,"26.0":0},P:{"28":0.06973,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.12162},R:{_:"0"},M:{"0":0.06973},Q:{_:"14.9"},O:{"0":0.14817},H:{"0":0}}; +module.exports={C:{"119":0.01054,"124":0.02635,"125":0.14226,"126":0.15807,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 120 121 122 123 127 128 129 3.5 3.6"},D:{"60":0.01054,"73":0.10538,"77":0.01054,"80":0.01054,"86":0.02635,"93":0.02635,"97":0.02635,"102":0.05269,"103":0.15807,"105":0.01054,"108":0.01054,"109":0.23184,"115":0.3741,"116":2.58181,"118":0.10538,"119":0.01054,"120":1.23295,"121":0.66389,"122":0.03688,"123":0.62174,"124":18.7313,"125":6.74959,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 78 79 81 83 84 85 87 88 89 90 91 92 94 95 96 98 99 100 101 104 106 107 110 111 112 113 114 117 126 127 128"},F:{"107":0.02635,"108":0.02635,"109":0.4426,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.02635,"101":0.01054,"109":0.01054,"113":0.07904,"119":0.64809,"120":1.84415,"121":1.67554,"122":0.02635,"123":0.02635,"124":4.39962,"125":6.33334,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.5 16.0 16.2 16.3 16.4 16.5 17.0 17.2 17.6","13.1":0.01054,"15.4":0.02635,"15.6":0.06323,"16.1":0.08957,"16.6":0.11592,"17.1":0.16861,"17.3":0.16861,"17.4":1.70189,"17.5":0.2213},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00289,"5.0-5.1":0.00289,"6.0-6.1":0.00723,"7.0-7.1":0.01012,"8.1-8.4":0.00289,"9.0-9.2":0.00723,"9.3":0.03326,"10.0-10.2":0.00579,"10.3":0.05207,"11.0-11.2":0.07665,"11.3-11.4":0.01446,"12.0-12.1":0.00868,"12.2-12.5":0.20971,"13.0-13.1":0.00434,"13.2":0.02025,"13.3":0.01012,"13.4-13.7":0.04628,"14.0-14.4":0.07954,"14.5-14.8":0.12293,"15.0-15.1":0.0593,"15.2-15.3":0.06508,"15.4":0.07376,"15.5":0.09256,"15.6-15.8":0.83305,"16.0":0.18946,"16.1":0.39049,"16.2":0.18946,"16.3":0.3283,"16.4":0.06942,"16.5":0.14029,"16.6-16.7":1.11796,"17.0":0.12149,"17.1":0.19814,"17.2":0.20682,"17.3":0.38181,"17.4":8.67037,"17.5":0.61177,"17.6":0},P:{"21":0.04514,"23":0.01128,"24":0.25953,"25":1.33152,_:"4 20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01128,"19.0":0.01128},I:{"0":0.20264,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00012,"4.4":0,"4.4.3-4.4.4":0.00045},K:{"0":0.14666,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":32.12387},R:{_:"0"},M:{"0":0.20343},Q:{"14.9":0.16085},O:{"0":0.31698},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MK.js b/node_modules/caniuse-lite/data/regions/MK.js index 8f7ce3bc0..663ec7bf7 100644 --- a/node_modules/caniuse-lite/data/regions/MK.js +++ b/node_modules/caniuse-lite/data/regions/MK.js @@ -1 +1 @@ -module.exports={C:{"48":0.00792,"50":0.00264,"51":0.00264,"52":0.03696,"68":0.00264,"78":0.00264,"85":0.00264,"88":0.00264,"105":0.00264,"106":0.00264,"110":0.00264,"111":0.00528,"115":0.30624,"127":0.00264,"128":0.02904,"130":0.01056,"132":0.01848,"133":0.00792,"134":0.00792,"135":0.00264,"136":0.00264,"137":0.02112,"138":0.05808,"139":1.0296,"140":0.12672,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 107 108 109 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 141 142 143 3.5 3.6"},D:{"38":0.00264,"39":0.00528,"40":0.00528,"41":0.00528,"42":0.00528,"43":0.00528,"44":0.00528,"45":0.00528,"46":0.00528,"47":0.00528,"48":0.01056,"49":0.01848,"50":0.00528,"51":0.00528,"52":0.00792,"53":0.00792,"54":0.00528,"55":0.00528,"56":0.01056,"57":0.00792,"58":0.00792,"59":0.00528,"60":0.00528,"64":0.00264,"67":0.00264,"69":0.00792,"70":0.00264,"72":0.00264,"73":0.01584,"79":0.15576,"83":0.01584,"86":0.00264,"87":0.09504,"90":0.00264,"91":0.01056,"93":0.01056,"94":0.01056,"95":0.00792,"98":0.00528,"99":0.00264,"100":0.00264,"102":0.00528,"103":0.0132,"104":0.00528,"106":0.01848,"107":0.02904,"108":0.0528,"109":1.73712,"110":0.00792,"111":0.01848,"112":0.01056,"113":0.01056,"114":0.01584,"116":0.03432,"117":0.00264,"118":0.00528,"119":0.02376,"120":0.00792,"121":0.00528,"122":0.06072,"123":0.01056,"124":0.01056,"125":0.26136,"126":0.03696,"127":0.00528,"128":0.05544,"129":0.00792,"130":0.02376,"131":0.04224,"132":0.0264,"133":0.0396,"134":0.05808,"135":0.14256,"136":1.89024,"137":13.14192,"138":0.51744,"139":0.00264,"140":0.00264,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 65 66 68 71 74 75 76 77 78 80 81 84 85 88 89 92 96 97 101 105 115 141"},F:{"36":0.00264,"40":0.07128,"46":0.02904,"87":0.00528,"89":0.02112,"90":0.0132,"91":0.00264,"93":0.00264,"95":0.05016,"114":0.00264,"117":0.00264,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 92 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00264,"107":0.00264,"108":0.00264,"109":0.0132,"110":0.00792,"111":0.00264,"115":0.00264,"121":0.00264,"129":0.00264,"130":0.00264,"131":0.00264,"132":0.00264,"133":0.00528,"134":0.00528,"135":0.00792,"136":0.18744,"137":1.13256,"138":0.08184,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 112 113 114 116 117 118 119 120 122 123 124 125 126 127 128"},E:{"14":0.0132,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.4 17.0 18.0 26.0","13.1":0.00528,"14.1":0.00264,"15.6":0.0396,"16.0":0.01056,"16.1":0.00264,"16.2":0.00264,"16.3":0.00264,"16.5":0.00528,"16.6":0.02112,"17.1":0.0132,"17.2":0.00264,"17.3":0.01584,"17.4":0.00528,"17.5":0.00792,"17.6":0.0264,"18.1":0.00792,"18.2":0.00528,"18.3":0.0528,"18.4":0.02112,"18.5":0.28512},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00365,"5.0-5.1":0,"6.0-6.1":0.00731,"7.0-7.1":0.00731,"8.1-8.4":0,"9.0-9.2":0.00365,"9.3":0.02192,"10.0-10.2":0.00183,"10.3":0.03654,"11.0-11.2":0.23382,"11.3-11.4":0.01279,"12.0-12.1":0.00365,"12.2-12.5":0.12239,"13.0-13.1":0.00183,"13.2":0.00548,"13.3":0.00365,"13.4-13.7":0.02009,"14.0-14.4":0.0475,"14.5-14.8":0.0475,"15.0-15.1":0.03288,"15.2-15.3":0.03288,"15.4":0.04019,"15.5":0.04384,"15.6-15.8":0.56629,"16.0":0.0749,"16.1":0.15345,"16.2":0.07855,"16.3":0.14431,"16.4":0.03288,"16.5":0.05846,"16.6-16.7":0.71061,"17.0":0.03836,"17.1":0.06759,"17.2":0.05298,"17.3":0.0749,"17.4":0.13335,"17.5":0.27949,"17.6-17.7":0.7307,"18.0":0.18085,"18.1":0.40737,"18.2":0.21556,"18.3":0.92616,"18.4":0.98279,"18.5":11.52132,"26.0":0},P:{"4":0.15255,"20":0.01017,"21":0.04068,"22":0.03051,"23":0.02034,"24":0.02034,"25":0.08136,"26":0.05085,"27":0.22374,"28":3.56973,"5.0-5.4":0.07119,"6.2-6.4":0.05085,"7.2-7.4":0.09153,_:"8.2 9.2 10.1 12.0 14.0 15.0 17.0 18.0","11.1-11.2":0.01017,"13.0":0.03051,"16.0":0.01017,"19.0":0.01017},I:{"0":0.01469,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.24288,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00264,"11":0.00264,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.4704},R:{_:"0"},M:{"0":0.12512},Q:{_:"14.9"},O:{"0":0.00736},H:{"0":0}}; +module.exports={C:{"5":0.00993,"34":0.00662,"40":0.00331,"42":0.00331,"44":0.00993,"48":0.00993,"51":0.01324,"52":0.08937,"56":0.02979,"61":0.00662,"68":0.00662,"77":0.01324,"78":0.00662,"82":0.00331,"88":0.00331,"89":0.00662,"94":0.00993,"99":0.00662,"105":0.00331,"106":0.00331,"107":0.00662,"108":0.00662,"109":0.00331,"110":0.00331,"111":0.00993,"113":0.00662,"114":0.00662,"115":0.36079,"118":0.00331,"120":0.00993,"121":0.00331,"122":0.00331,"123":0.00662,"124":0.0662,"125":0.82088,"126":0.82419,"127":0.00331,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 41 43 45 46 47 49 50 53 54 55 57 58 59 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 79 80 81 83 84 85 86 87 90 91 92 93 95 96 97 98 100 101 102 103 104 112 116 117 119 128 129 3.5 3.6"},D:{"38":0.00331,"39":0.00331,"41":0.00331,"42":0.00331,"43":0.00331,"44":0.00331,"45":0.00331,"46":0.00662,"47":0.00331,"49":0.06951,"51":0.00662,"56":0.00331,"58":0.02317,"64":0.00331,"66":0.00331,"69":0.00662,"70":0.01324,"72":0.00993,"73":0.01655,"79":0.21846,"80":0.04634,"81":0.00331,"83":0.01986,"85":0.00331,"86":0.00331,"87":0.14564,"88":0.01986,"89":0.01655,"90":0.00993,"91":0.01655,"93":0.00331,"94":0.02979,"95":0.02317,"96":0.00331,"97":0.00331,"98":0.00331,"99":0.04965,"100":0.00331,"101":0.00331,"102":0.00993,"103":0.01324,"104":0.00331,"105":0.00662,"106":0.02979,"107":0.03972,"108":0.10261,"109":3.05513,"110":0.0662,"111":0.0331,"112":0.03641,"113":0.01324,"114":0.01655,"115":0.00662,"116":0.1324,"117":0.00331,"118":0.0331,"119":0.04634,"120":0.05627,"121":0.11585,"122":0.1655,"123":0.44023,"124":14.0344,"125":5.44495,"126":0.00331,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 48 50 52 53 54 55 57 59 60 61 62 63 65 67 68 71 74 75 76 77 78 84 92 127 128"},F:{"31":0.00331,"40":0.00331,"46":0.01986,"79":0.00662,"85":0.00331,"86":0.00331,"93":0.00331,"95":0.1324,"107":0.2317,"108":0.01324,"109":1.03603,"110":0.08275,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 87 88 89 90 91 92 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00993,"105":0.00662,"106":0.01324,"107":0.01986,"108":0.01324,"109":0.02317,"110":0.00662,"111":0.01655,"113":0.00993,"114":0.00331,"117":0.00662,"119":0.00331,"120":0.01655,"121":0.00662,"122":0.01324,"123":0.09268,"124":1.1916,"125":0.69841,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 112 115 116 118"},E:{"9":0.00993,"14":0.01324,"15":0.00331,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.00993,"14.1":0.00662,"15.1":0.00331,"15.2-15.3":0.00331,"15.4":0.00331,"15.5":0.00331,"15.6":0.0331,"16.0":0.02317,"16.1":0.02648,"16.2":0.00993,"16.3":0.01324,"16.4":0.00331,"16.5":0.00662,"16.6":0.08606,"17.0":0.00662,"17.1":0.02979,"17.2":0.00993,"17.3":0.03641,"17.4":0.28797,"17.5":0.06289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0026,"5.0-5.1":0.0026,"6.0-6.1":0.0065,"7.0-7.1":0.00909,"8.1-8.4":0.0026,"9.0-9.2":0.0065,"9.3":0.02988,"10.0-10.2":0.0052,"10.3":0.04677,"11.0-11.2":0.06886,"11.3-11.4":0.01299,"12.0-12.1":0.0078,"12.2-12.5":0.18838,"13.0-13.1":0.0039,"13.2":0.01819,"13.3":0.00909,"13.4-13.7":0.04157,"14.0-14.4":0.07146,"14.5-14.8":0.11043,"15.0-15.1":0.05327,"15.2-15.3":0.05846,"15.4":0.06626,"15.5":0.08315,"15.6-15.8":0.74834,"16.0":0.17019,"16.1":0.35078,"16.2":0.17019,"16.3":0.29492,"16.4":0.06236,"16.5":0.12602,"16.6-16.7":1.00428,"17.0":0.10913,"17.1":0.17799,"17.2":0.18579,"17.3":0.34299,"17.4":7.78869,"17.5":0.54956,"17.6":0},P:{"4":0.38934,"20":0.02049,"21":0.03074,"22":0.04098,"23":0.10246,"24":0.21516,"25":2.64341,"5.0-5.4":0.09221,"6.2-6.4":0.05123,"7.2-7.4":0.01025,_:"8.2 10.1 12.0 15.0 18.0","9.2":0.01025,"11.1-11.2":0.02049,"13.0":0.06147,"14.0":0.01025,"16.0":0.01025,"17.0":0.01025,"19.0":0.02049},I:{"0":0.06664,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.20739,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00331,"8":0.03972,"9":0.01324,"10":0.00662,"11":0.05627,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.66739},R:{_:"0"},M:{"0":0.23415},Q:{"14.9":0.00669},O:{"0":0.02676},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/ML.js b/node_modules/caniuse-lite/data/regions/ML.js index db80fc362..32ced8e34 100644 --- a/node_modules/caniuse-lite/data/regions/ML.js +++ b/node_modules/caniuse-lite/data/regions/ML.js @@ -1 +1 @@ -module.exports={C:{"42":0.00153,"49":0.00153,"57":0.00305,"65":0.00153,"68":0.00153,"69":0.00153,"72":0.00305,"91":0.00153,"94":0.00153,"106":0.00153,"115":0.09766,"117":0.00153,"127":0.00916,"128":0.00763,"132":0.00153,"133":0.00153,"135":0.00305,"136":0.00458,"137":0.01221,"138":0.03357,"139":0.65618,"140":0.10072,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 66 67 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 125 126 129 130 131 134 141 142 143 3.5 3.6"},D:{"11":0.00305,"31":0.00153,"36":0.00153,"38":0.00458,"39":0.0061,"40":0.0061,"41":0.00305,"42":0.0061,"43":0.00458,"44":0.00458,"45":0.00305,"46":0.00458,"47":0.00763,"48":0.00763,"49":0.0061,"50":0.00916,"51":0.00458,"52":0.00458,"53":0.00763,"54":0.00763,"55":0.0061,"56":0.00916,"57":0.00763,"58":0.01068,"59":0.0061,"60":0.0061,"62":0.00153,"63":0.00153,"64":0.00153,"65":0.00305,"66":0.00153,"67":0.00458,"70":0.00153,"72":0.02289,"73":0.01068,"74":0.00153,"75":0.00916,"79":0.05646,"81":0.00458,"83":0.01068,"86":0.00763,"87":0.02747,"88":0.00305,"89":0.00153,"90":0.0061,"91":0.00153,"92":0.00305,"95":0.00153,"96":0.00305,"98":0.01831,"99":0.00153,"100":0.00153,"101":0.00153,"103":0.01373,"104":0.00305,"105":0.00458,"106":0.00305,"108":0.00305,"109":0.14497,"110":0.00305,"111":0.01221,"113":0.00916,"114":0.00916,"116":0.0061,"118":0.00458,"119":0.01526,"120":0.00458,"122":0.04425,"123":0.00305,"124":0.01221,"125":0.99648,"126":0.0061,"127":0.00305,"128":0.03815,"129":0.01831,"130":0.00305,"131":0.05799,"132":0.01679,"133":0.02136,"134":0.01984,"135":0.0763,"136":0.54783,"137":3.41519,"138":0.20906,"139":0.00153,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 37 61 68 69 71 76 77 78 80 84 85 93 94 97 102 107 112 115 117 121 140 141"},F:{"31":0.00153,"64":0.00153,"79":0.00305,"86":0.00305,"89":0.00153,"90":0.00153,"95":0.02136,"113":0.00153,"114":0.00153,"115":0.00153,"116":0.00305,"117":0.00153,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00153,"13":0.00153,"14":0.00153,"16":0.00305,"17":0.00458,"18":0.01831,"83":0.00153,"84":0.00153,"89":0.00458,"90":0.00458,"92":0.03662,"100":0.01221,"109":0.00916,"114":0.00458,"115":0.00458,"120":0.00305,"121":0.00153,"122":0.01221,"125":0.00305,"126":0.00153,"127":0.00153,"128":0.00305,"130":0.00153,"131":0.01068,"132":0.0061,"133":0.00763,"134":0.01679,"135":0.01068,"136":0.21517,"137":1.4497,"138":0.10987,_:"15 79 80 81 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 123 124 129"},E:{"7":0.01526,"14":0.00305,_:"0 4 5 6 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 16.1 16.3 16.4 16.5 17.3 26.0","5.1":0.00305,"11.1":0.00305,"13.1":0.01221,"14.1":0.00458,"15.1":0.00153,"15.4":0.00916,"15.5":0.00153,"15.6":0.06409,"16.0":0.00153,"16.2":0.0061,"16.6":0.04273,"17.0":0.00153,"17.1":0.00305,"17.2":0.00763,"17.4":0.00153,"17.5":0.00458,"17.6":0.01831,"18.0":0.00305,"18.1":0.00305,"18.2":0.00305,"18.3":0.02899,"18.4":0.01068,"18.5":0.23348},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00142,"5.0-5.1":0,"6.0-6.1":0.00284,"7.0-7.1":0.00284,"8.1-8.4":0,"9.0-9.2":0.00142,"9.3":0.00852,"10.0-10.2":0.00071,"10.3":0.0142,"11.0-11.2":0.0909,"11.3-11.4":0.00497,"12.0-12.1":0.00142,"12.2-12.5":0.04758,"13.0-13.1":0.00071,"13.2":0.00213,"13.3":0.00142,"13.4-13.7":0.00781,"14.0-14.4":0.01846,"14.5-14.8":0.01846,"15.0-15.1":0.01278,"15.2-15.3":0.01278,"15.4":0.01562,"15.5":0.01704,"15.6-15.8":0.22014,"16.0":0.02911,"16.1":0.05965,"16.2":0.03054,"16.3":0.0561,"16.4":0.01278,"16.5":0.02272,"16.6-16.7":0.27624,"17.0":0.01491,"17.1":0.02627,"17.2":0.02059,"17.3":0.02911,"17.4":0.05184,"17.5":0.10865,"17.6-17.7":0.28405,"18.0":0.0703,"18.1":0.15836,"18.2":0.08379,"18.3":0.36003,"18.4":0.38205,"18.5":4.47873,"26.0":0},P:{"4":0.0309,"20":0.0103,"21":0.0103,"22":0.0412,"23":0.0309,"24":0.1442,"25":0.2575,"26":0.0927,"27":0.2369,"28":0.82399,_:"5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.1236,"9.2":0.0103,"13.0":0.0309,"19.0":0.0206},I:{"0":0.13535,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.53165,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.00847,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":78.77668},R:{_:"0"},M:{"0":0.0339},Q:{"14.9":0.02542},O:{"0":0.15253},H:{"0":0.07}}; +module.exports={C:{"48":0.00128,"60":0.00128,"76":0.00128,"78":0.00255,"102":0.00894,"115":0.09194,"116":0.00128,"117":0.00128,"119":0.00128,"122":0.00255,"123":0.00128,"124":0.01405,"125":0.33074,"126":0.23625,"127":0.00255,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 118 120 121 128 129 3.5 3.6"},D:{"36":0.00128,"43":0.00128,"49":0.00255,"55":0.00128,"58":0.00128,"63":0.00128,"66":0.00128,"70":0.00128,"72":0.00128,"75":0.00511,"77":0.00128,"78":0.00128,"79":0.00639,"80":0.00128,"83":0.00511,"84":0.00255,"86":0.00511,"87":0.00383,"88":0.00128,"91":0.00511,"92":0.00639,"94":0.00383,"95":0.00255,"97":0.00128,"98":0.00128,"99":0.00639,"100":0.00128,"102":0.00255,"103":0.02426,"104":0.00128,"106":0.00128,"107":0.01916,"109":0.29882,"111":0.00255,"113":0.00128,"114":0.01022,"115":0.00128,"116":0.0166,"117":0.00511,"118":0.00128,"119":0.00511,"120":0.00639,"121":0.01149,"122":0.03065,"123":0.08428,"124":3.30105,"125":1.58987,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 46 47 48 50 51 52 53 54 56 57 59 60 61 62 64 65 67 68 69 71 73 74 76 81 85 89 90 93 96 101 105 108 110 112 126 127 128"},F:{"46":0.00255,"95":0.00383,"107":0.00766,"108":0.00255,"109":0.09067,"110":0.00894,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00255,"13":0.0332,"16":0.00128,"17":0.00128,"18":0.00894,"84":0.00383,"85":0.00128,"89":0.00128,"90":0.00511,"92":0.00383,"98":0.00128,"100":0.00255,"103":0.00128,"109":0.04725,"113":0.00128,"114":0.00255,"115":0.02171,"117":0.00128,"118":0.00128,"119":0.00383,"120":0.00383,"121":0.00639,"122":0.0166,"123":0.01532,"124":1.02926,"125":0.49037,_:"14 15 79 80 81 83 86 87 88 91 93 94 95 96 97 99 101 102 104 105 106 107 108 110 111 112 116"},E:{"13":0.00128,"14":0.00766,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.5 16.0 16.1 16.4 17.6","11.1":0.00255,"13.1":0.04725,"14.1":0.00128,"15.2-15.3":0.01788,"15.4":0.00255,"15.6":0.02299,"16.2":0.00128,"16.3":0.00128,"16.5":0.00511,"16.6":0.00639,"17.0":0.00255,"17.1":0.00255,"17.2":0.03703,"17.3":0.00511,"17.4":0.02426,"17.5":0.00766},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00253,"5.0-5.1":0.00253,"6.0-6.1":0.00632,"7.0-7.1":0.00885,"8.1-8.4":0.00253,"9.0-9.2":0.00632,"9.3":0.02907,"10.0-10.2":0.00506,"10.3":0.0455,"11.0-11.2":0.06698,"11.3-11.4":0.01264,"12.0-12.1":0.00758,"12.2-12.5":0.18325,"13.0-13.1":0.00379,"13.2":0.01769,"13.3":0.00885,"13.4-13.7":0.04044,"14.0-14.4":0.06951,"14.5-14.8":0.10742,"15.0-15.1":0.05182,"15.2-15.3":0.05687,"15.4":0.06445,"15.5":0.08088,"15.6-15.8":0.72796,"16.0":0.16556,"16.1":0.34123,"16.2":0.16556,"16.3":0.28689,"16.4":0.06066,"16.5":0.12259,"16.6-16.7":0.97693,"17.0":0.10616,"17.1":0.17314,"17.2":0.18073,"17.3":0.33365,"17.4":7.57659,"17.5":0.53459,"17.6":0},P:{"4":0.14393,"20":0.03084,"21":0.15421,"22":0.32898,"23":0.39067,"24":0.24674,"25":0.75049,_:"5.0-5.4 6.2-6.4 8.2 11.1-11.2 13.0 15.0","7.2-7.4":0.44207,"9.2":0.03084,"10.1":0.02056,"12.0":0.02056,"14.0":0.02056,"16.0":0.04112,"17.0":0.02056,"18.0":0.01028,"19.0":0.0514},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.3531,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00383,_:"6 7 8 9 10 5.5"},S:{"2.5":0.157,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":75.09686},R:{_:"0"},M:{"0":0.13955},Q:{"14.9":0.00872},O:{"0":0.14827},H:{"0":0.24}}; diff --git a/node_modules/caniuse-lite/data/regions/MM.js b/node_modules/caniuse-lite/data/regions/MM.js index 94335120c..d7ab2682c 100644 --- a/node_modules/caniuse-lite/data/regions/MM.js +++ b/node_modules/caniuse-lite/data/regions/MM.js @@ -1 +1 @@ -module.exports={C:{"47":0.00383,"57":0.00383,"68":0.00191,"72":0.00191,"105":0.00191,"108":0.00191,"112":0.00191,"115":0.09948,"122":0.00191,"125":0.00191,"127":0.0153,"128":0.01339,"129":0.00574,"130":0.00191,"131":0.01148,"132":0.00383,"133":0.00383,"134":0.01339,"135":0.00765,"136":0.0153,"137":0.01148,"138":0.0287,"139":0.83407,"140":0.31756,"141":0.00383,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 109 110 111 113 114 116 117 118 119 120 121 123 124 126 142 143 3.5 3.6"},D:{"11":0.00191,"32":0.00383,"39":0.00574,"40":0.00574,"41":0.00574,"42":0.00574,"43":0.00765,"44":0.00574,"45":0.00574,"46":0.00574,"47":0.00765,"48":0.00574,"49":0.00765,"50":0.00574,"51":0.00765,"52":0.00765,"53":0.00574,"54":0.00574,"55":0.00957,"56":0.00765,"57":0.00765,"58":0.00574,"59":0.00765,"60":0.00574,"61":0.00383,"62":0.00191,"63":0.00191,"65":0.00191,"67":0.00191,"68":0.00191,"70":0.00191,"71":0.00765,"72":0.00191,"74":0.00383,"75":0.00383,"76":0.00191,"78":0.00191,"79":0.00765,"80":0.00383,"81":0.00191,"83":0.00191,"85":0.00191,"86":0.00191,"87":0.00765,"88":0.00957,"89":0.00574,"91":0.00191,"92":0.00191,"93":0.00191,"95":0.00574,"97":0.00383,"98":0.00191,"99":0.00383,"100":0.00383,"101":0.00383,"102":0.00191,"103":0.00957,"104":0.00383,"105":0.00574,"106":0.01722,"107":0.00765,"108":0.00765,"109":0.30034,"110":0.00574,"111":0.00383,"112":0.00191,"113":0.00383,"114":0.04974,"115":0.00765,"116":0.0153,"117":0.00191,"118":0.00765,"119":0.01913,"120":0.00957,"121":0.00957,"122":0.04591,"123":0.02104,"124":0.02678,"125":0.10139,"126":0.02296,"127":0.0153,"128":0.03061,"129":0.01339,"130":0.01913,"131":0.0593,"132":0.02487,"133":0.03635,"134":0.04783,"135":0.08226,"136":0.87807,"137":6.80645,"138":0.31565,"139":0.00957,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 64 66 69 73 77 84 90 94 96 140 141"},F:{"34":0.00191,"89":0.00574,"90":0.00191,"92":0.00191,"95":0.00574,"109":0.00191,"111":0.00383,"113":0.00191,"114":0.00383,"115":0.00383,"116":0.00383,"117":0.01339,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00191,"18":0.01913,"84":0.00191,"89":0.00191,"92":0.02296,"100":0.00383,"109":0.00383,"114":0.00191,"122":0.00383,"124":0.00191,"126":0.00191,"127":0.00191,"128":0.00191,"129":0.00574,"130":0.00765,"131":0.00574,"132":0.00574,"133":0.00574,"134":0.01339,"135":0.01339,"136":0.17982,"137":1.31614,"138":0.08609,_:"12 13 14 15 17 79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125"},E:{"14":0.00191,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.2 26.0","13.1":0.00383,"14.1":0.00574,"15.1":0.00191,"15.5":0.00191,"15.6":0.03061,"16.0":0.00574,"16.1":0.00191,"16.3":0.01722,"16.4":0.00191,"16.5":0.00383,"16.6":0.0287,"17.0":0.00383,"17.1":0.00765,"17.2":0.00765,"17.3":0.00383,"17.4":0.00765,"17.5":0.01339,"17.6":0.03635,"18.0":0.00383,"18.1":0.00957,"18.2":0.02104,"18.3":0.06122,"18.4":0.03635,"18.5":0.23339},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00068,"5.0-5.1":0,"6.0-6.1":0.00137,"7.0-7.1":0.00137,"8.1-8.4":0,"9.0-9.2":0.00068,"9.3":0.0041,"10.0-10.2":0.00034,"10.3":0.00684,"11.0-11.2":0.04379,"11.3-11.4":0.00239,"12.0-12.1":0.00068,"12.2-12.5":0.02292,"13.0-13.1":0.00034,"13.2":0.00103,"13.3":0.00068,"13.4-13.7":0.00376,"14.0-14.4":0.00889,"14.5-14.8":0.00889,"15.0-15.1":0.00616,"15.2-15.3":0.00616,"15.4":0.00753,"15.5":0.00821,"15.6-15.8":0.10604,"16.0":0.01403,"16.1":0.02873,"16.2":0.01471,"16.3":0.02702,"16.4":0.00616,"16.5":0.01095,"16.6-16.7":0.13307,"17.0":0.00718,"17.1":0.01266,"17.2":0.00992,"17.3":0.01403,"17.4":0.02497,"17.5":0.05234,"17.6-17.7":0.13683,"18.0":0.03387,"18.1":0.07628,"18.2":0.04037,"18.3":0.17343,"18.4":0.18404,"18.5":2.1575,"26.0":0},P:{"4":0.0533,"22":0.01066,"25":0.02132,"26":0.02132,"27":0.03198,"28":0.25584,_:"20 21 23 24 5.0-5.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0 19.0","6.2-6.4":0.01066,"13.0":0.0533,"17.0":0.01066},I:{"0":0.2099,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00017},K:{"0":0.19409,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01148,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.33541},R:{_:"0"},M:{"0":0.10513},Q:{"14.9":0.04852},O:{"0":0.6874},H:{"0":0}}; +module.exports={C:{"40":0.00226,"41":0.00226,"49":0.00226,"61":0.00226,"69":0.00226,"72":0.01355,"73":0.00226,"83":0.00226,"84":0.00226,"94":0.00226,"99":0.00226,"102":0.00226,"106":0.00226,"107":0.00226,"108":0.00452,"109":0.00226,"110":0.00226,"111":0.00226,"112":0.00226,"113":0.00677,"114":0.00226,"115":0.20322,"116":0.00226,"117":0.00226,"118":0.00226,"119":0.00677,"120":0.00452,"121":0.00903,"122":0.01129,"123":0.02484,"124":0.03839,"125":0.89191,"126":0.94159,"127":0.0429,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 70 71 74 75 76 77 78 79 80 81 82 85 86 87 88 89 90 91 92 93 95 96 97 98 100 101 103 104 105 128 129 3.5","3.6":0.00226},D:{"11":0.00226,"21":0.00226,"31":0.00226,"32":0.00452,"37":0.00226,"38":0.00452,"39":0.00226,"40":0.00226,"41":0.00226,"42":0.00226,"43":0.00452,"44":0.00226,"45":0.00226,"46":0.00452,"47":0.00226,"49":0.00226,"51":0.00452,"53":0.00226,"55":0.00226,"56":0.00226,"62":0.00677,"63":0.00452,"67":0.00226,"68":0.00677,"70":0.00903,"71":0.00903,"72":0.00452,"74":0.00677,"76":0.00226,"78":0.00226,"79":0.02258,"80":0.00677,"81":0.00452,"83":0.00226,"84":0.00226,"85":0.00226,"86":0.00226,"87":0.02484,"88":0.00903,"89":0.01129,"90":0.00452,"91":0.00452,"92":0.00452,"94":0.00226,"95":0.00677,"96":0.00452,"97":0.00677,"98":0.00226,"99":0.02935,"100":0.00452,"101":0.00226,"102":0.00452,"103":0.01355,"104":0.00226,"105":0.00677,"106":0.00903,"107":0.01129,"108":0.00452,"109":0.57579,"110":0.00452,"111":0.01355,"112":0.00903,"113":0.00903,"114":0.05193,"115":0.00677,"116":0.07451,"117":0.01581,"118":0.01129,"119":0.02935,"120":0.04742,"121":0.09709,"122":0.1129,"123":0.26193,"124":7.57107,"125":3.49087,"126":0.00452,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 33 34 35 36 48 50 52 54 57 58 59 60 61 64 65 66 69 73 75 77 93 127 128"},F:{"82":0.00226,"83":0.01806,"95":0.00452,"105":0.00226,"106":0.00226,"107":0.0429,"108":0.02032,"109":0.32741,"110":0.02935,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00452,"14":0.00452,"15":0.00226,"16":0.00226,"17":0.00452,"18":0.02484,"84":0.00226,"89":0.00452,"90":0.00226,"92":0.04064,"100":0.00677,"107":0.00226,"109":0.01806,"110":0.00226,"111":0.00226,"113":0.00226,"114":0.00452,"115":0.00226,"116":0.00226,"117":0.00226,"118":0.00226,"119":0.00452,"120":0.00677,"121":0.01129,"122":0.05419,"123":0.02484,"124":1.45867,"125":0.8332,_:"13 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 112"},E:{"9":0.00677,"14":0.02258,"15":0.00452,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00226,"13.1":0.00677,"14.1":0.0271,"15.1":0.00903,"15.2-15.3":0.00226,"15.4":0.00226,"15.5":0.01581,"15.6":0.07226,"16.0":0.00226,"16.1":0.01581,"16.2":0.00677,"16.3":0.03839,"16.4":0.00903,"16.5":0.01355,"16.6":0.09032,"17.0":0.02258,"17.1":0.02032,"17.2":0.01806,"17.3":0.04064,"17.4":0.41547,"17.5":0.07677},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00133,"5.0-5.1":0.00133,"6.0-6.1":0.00333,"7.0-7.1":0.00467,"8.1-8.4":0.00133,"9.0-9.2":0.00333,"9.3":0.01533,"10.0-10.2":0.00267,"10.3":0.024,"11.0-11.2":0.03533,"11.3-11.4":0.00667,"12.0-12.1":0.004,"12.2-12.5":0.09665,"13.0-13.1":0.002,"13.2":0.00933,"13.3":0.00467,"13.4-13.7":0.02133,"14.0-14.4":0.03666,"14.5-14.8":0.05666,"15.0-15.1":0.02733,"15.2-15.3":0.03,"15.4":0.034,"15.5":0.04266,"15.6-15.8":0.38395,"16.0":0.08732,"16.1":0.17998,"16.2":0.08732,"16.3":0.15132,"16.4":0.032,"16.5":0.06466,"16.6-16.7":0.51527,"17.0":0.05599,"17.1":0.09132,"17.2":0.09532,"17.3":0.17598,"17.4":3.99618,"17.5":0.28197,"17.6":0},P:{"4":0.08456,"20":0.01057,"21":0.03171,"22":0.03171,"23":0.06342,"24":0.21139,"25":0.68702,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 13.0 14.0 15.0 16.0","7.2-7.4":0.03171,"12.0":0.01057,"17.0":0.01057,"18.0":0.01057,"19.0":0.03171},I:{"0":0.70177,"3":0,"4":0.00007,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00014,"4.2-4.3":0.00042,"4.4":0,"4.4.3-4.4.4":0.00155},K:{"0":0.34065,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00358,"8":0.0286,"9":0.00715,"10":0.00358,"11":0.0429,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.26788},R:{_:"0"},M:{"0":0.13161},Q:{"14.9":0.05419},O:{"0":1.23872},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MN.js b/node_modules/caniuse-lite/data/regions/MN.js index 1ce3177f2..97c96882b 100644 --- a/node_modules/caniuse-lite/data/regions/MN.js +++ b/node_modules/caniuse-lite/data/regions/MN.js @@ -1 +1 @@ -module.exports={C:{"67":0.00843,"78":0.00843,"94":0.00422,"95":0.00422,"115":0.0506,"127":0.00843,"128":0.01265,"129":0.00422,"134":0.00843,"135":0.00422,"136":0.00422,"137":0.0253,"138":0.05904,"139":1.05847,"140":0.15181,"141":0.00843,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 130 131 132 133 142 143 3.5 3.6"},D:{"39":0.02952,"40":0.03795,"41":0.03374,"42":0.03374,"43":0.02952,"44":0.03795,"45":0.03795,"46":0.03374,"47":0.02109,"48":0.03795,"49":0.04217,"50":0.02952,"51":0.03374,"52":0.03795,"53":0.02952,"54":0.04217,"55":0.04217,"56":0.03795,"57":0.03374,"58":0.04217,"59":0.03795,"60":0.03374,"70":0.01687,"71":0.00843,"74":0.00843,"78":0.00422,"79":0.00422,"80":0.00843,"81":0.00843,"84":0.00422,"86":0.00843,"87":0.01687,"88":0.00422,"89":0.0253,"91":0.00843,"93":0.00422,"97":0.00422,"98":0.02952,"99":0.00843,"102":0.00422,"103":0.01687,"104":0.01687,"106":0.00843,"108":0.00422,"109":0.98256,"111":0.00422,"113":0.00422,"114":0.05482,"116":0.04639,"117":0.00422,"118":0.01265,"119":0.01265,"120":0.0506,"121":0.00422,"122":0.05904,"123":0.01265,"124":0.0253,"125":3.58867,"126":0.06326,"127":0.01687,"128":0.08434,"129":0.0253,"130":0.03795,"131":0.09699,"132":0.09699,"133":0.10543,"134":0.15181,"135":0.23615,"136":2.45851,"137":17.69032,"138":0.6452,"139":0.00843,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 72 73 75 76 77 83 85 90 92 94 95 96 100 101 105 107 110 112 115 140 141"},F:{"89":0.00843,"90":0.02109,"95":0.01265,"117":0.01265,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00843,"89":0.00422,"92":0.03374,"98":0.00422,"100":0.00843,"108":0.00843,"109":0.09699,"112":0.00422,"114":0.00843,"115":0.00422,"118":0.00422,"119":0.00422,"120":0.00422,"121":0.0253,"122":0.01687,"123":0.00422,"124":0.00843,"125":0.00422,"126":0.00422,"127":0.00843,"128":0.00422,"129":0.00843,"130":0.01265,"131":0.02109,"132":0.01687,"133":0.02109,"134":0.02109,"135":0.08434,"136":0.72532,"137":3.85434,"138":0.26145,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 99 101 102 103 104 105 106 107 110 111 113 116 117"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 26.0","5.1":0.00422,"13.1":0.01687,"14.1":0.02952,"15.4":0.00422,"15.6":0.08012,"16.0":0.01687,"16.1":0.01265,"16.2":0.00843,"16.3":0.00843,"16.4":0.00422,"16.5":0.02109,"16.6":0.1729,"17.0":0.00422,"17.1":0.09699,"17.2":0.01687,"17.3":0.00843,"17.4":0.04217,"17.5":0.08434,"17.6":0.09699,"18.0":0.00843,"18.1":0.03374,"18.2":0.05904,"18.3":0.08856,"18.4":0.10964,"18.5":0.53556},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00362,"5.0-5.1":0,"6.0-6.1":0.00723,"7.0-7.1":0.00723,"8.1-8.4":0,"9.0-9.2":0.00362,"9.3":0.0217,"10.0-10.2":0.00181,"10.3":0.03617,"11.0-11.2":0.2315,"11.3-11.4":0.01266,"12.0-12.1":0.00362,"12.2-12.5":0.12118,"13.0-13.1":0.00181,"13.2":0.00543,"13.3":0.00362,"13.4-13.7":0.01989,"14.0-14.4":0.04702,"14.5-14.8":0.04702,"15.0-15.1":0.03255,"15.2-15.3":0.03255,"15.4":0.03979,"15.5":0.04341,"15.6-15.8":0.56067,"16.0":0.07415,"16.1":0.15192,"16.2":0.07777,"16.3":0.14288,"16.4":0.03255,"16.5":0.05788,"16.6-16.7":0.70355,"17.0":0.03798,"17.1":0.06692,"17.2":0.05245,"17.3":0.07415,"17.4":0.13203,"17.5":0.27672,"17.6-17.7":0.72344,"18.0":0.17905,"18.1":0.40332,"18.2":0.21342,"18.3":0.91697,"18.4":0.97303,"18.5":11.4069,"26.0":0},P:{"4":0.13405,"21":0.01031,"22":0.01031,"23":0.02062,"24":0.04125,"25":0.07218,"26":0.04125,"27":0.16499,"28":2.29948,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0","7.2-7.4":0.03093,"11.1-11.2":0.01031,"18.0":0.01031,"19.0":0.01031},I:{"0":0.03463,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.16768,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02952,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.64466},R:{_:"0"},M:{"0":0.37583},Q:{"14.9":0.02313},O:{"0":0.13877},H:{"0":0}}; +module.exports={C:{"3":0.00476,"4":0.00476,"35":0.00476,"40":0.00476,"78":0.00476,"99":0.00476,"102":0.00951,"115":0.18545,"123":0.00951,"124":0.02853,"125":0.91772,"126":0.59438,"127":0.00476,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 128 129 3.5","3.6":0.00476},D:{"31":0.00476,"37":0.00476,"39":0.00476,"40":0.00476,"41":0.00476,"42":0.00476,"43":0.01427,"44":0.01902,"45":0.00951,"46":0.00951,"47":0.00951,"49":0.00951,"51":0.01427,"68":0.00476,"70":0.05706,"72":0.00476,"74":0.00951,"79":0.01902,"80":0.01427,"81":0.00476,"83":0.00476,"86":0.00951,"87":0.00476,"88":0.00476,"91":0.00476,"92":0.00476,"94":0.00951,"96":0.00476,"97":0.00476,"99":0.02853,"102":0.01902,"103":0.03329,"104":0.00951,"105":0.00951,"106":0.00951,"107":0.00951,"108":0.01427,"109":2.82447,"110":0.00476,"111":0.01427,"112":0.00951,"113":0.00476,"114":0.00951,"115":0.03329,"116":0.09035,"117":0.03329,"118":0.03804,"119":0.10461,"120":0.29006,"121":0.13314,"122":0.29006,"123":0.68472,"124":20.11365,"125":6.4668,"126":0.02378,"127":0.00476,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 38 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 71 73 75 76 77 78 84 85 89 90 93 95 98 100 101 128"},F:{"31":0.00476,"79":0.00476,"95":0.02853,"106":0.00476,"107":0.35663,"108":0.01427,"109":1.67376,"110":0.07608,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00476},B:{"12":0.00951,"13":0.00476,"16":0.00476,"17":0.00476,"18":0.01427,"90":0.00476,"92":0.03329,"100":0.00951,"109":0.06657,"111":0.00476,"112":0.00951,"113":0.00476,"114":0.00476,"115":0.00476,"116":0.00476,"117":0.01902,"118":0.01902,"119":0.02378,"120":0.02378,"121":0.03329,"122":0.06657,"123":0.15216,"124":4.52676,"125":2.06367,_:"14 15 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110"},E:{"9":0.03329,"13":0.00476,"14":0.11888,"15":0.00476,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00476,"13.1":0.01427,"14.1":0.0951,"15.1":0.02378,"15.2-15.3":0.01902,"15.4":0.00951,"15.5":0.01902,"15.6":0.10937,"16.0":0.02378,"16.1":0.04755,"16.2":0.0428,"16.3":0.06657,"16.4":0.05231,"16.5":0.03329,"16.6":0.18545,"17.0":0.02378,"17.1":0.06182,"17.2":0.0951,"17.3":0.05706,"17.4":0.82262,"17.5":0.15216},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00342,"5.0-5.1":0.00342,"6.0-6.1":0.00854,"7.0-7.1":0.01196,"8.1-8.4":0.00342,"9.0-9.2":0.00854,"9.3":0.0393,"10.0-10.2":0.00684,"10.3":0.06152,"11.0-11.2":0.09057,"11.3-11.4":0.01709,"12.0-12.1":0.01025,"12.2-12.5":0.24778,"13.0-13.1":0.00513,"13.2":0.02392,"13.3":0.01196,"13.4-13.7":0.05468,"14.0-14.4":0.09399,"14.5-14.8":0.14525,"15.0-15.1":0.07006,"15.2-15.3":0.0769,"15.4":0.08715,"15.5":0.10936,"15.6-15.8":0.98428,"16.0":0.22386,"16.1":0.46138,"16.2":0.22386,"16.3":0.3879,"16.4":0.08202,"16.5":0.16576,"16.6-16.7":1.32092,"17.0":0.14354,"17.1":0.23411,"17.2":0.24436,"17.3":0.45113,"17.4":10.24438,"17.5":0.72283,"17.6":0},P:{"4":0.12315,"20":0.02053,"21":0.04105,"22":0.10263,"23":0.28735,"24":0.29762,"25":2.45277,"5.0-5.4":0.02053,"6.2-6.4":0.05131,"7.2-7.4":0.03079,_:"8.2 10.1 12.0 14.0 15.0","9.2":0.01026,"11.1-11.2":0.01026,"13.0":0.01026,"16.0":0.01026,"17.0":0.02053,"18.0":0.01026,"19.0":0.04105},I:{"0":0.17241,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00038},K:{"0":0.12588,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00499,"7":0.00997,"8":0.08478,"9":0.00997,"10":0.01496,"11":0.0748,_:"5.5"},S:{"2.5":0.00525,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":33.02643},R:{_:"0"},M:{"0":0.13637},Q:{"14.9":0.03672},O:{"0":0.23078},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MO.js b/node_modules/caniuse-lite/data/regions/MO.js index 74d281f03..e27944c9e 100644 --- a/node_modules/caniuse-lite/data/regions/MO.js +++ b/node_modules/caniuse-lite/data/regions/MO.js @@ -1 +1 @@ -module.exports={C:{"72":0.00637,"78":0.00319,"81":0.09242,"112":0.00319,"115":0.05737,"125":0.00319,"128":0.00319,"131":0.00319,"134":0.00956,"136":0.00956,"137":0.00319,"138":0.03824,"139":0.78719,"140":0.1466,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 133 135 141 142 143 3.5 3.6"},D:{"41":0.00319,"42":0.00319,"43":0.00319,"46":0.00319,"48":0.00319,"49":0.00637,"50":0.00319,"52":0.00319,"55":0.00319,"56":0.00319,"58":0.00637,"60":0.00319,"61":0.00637,"71":0.00319,"78":0.00637,"79":0.04143,"80":0.00637,"83":0.00637,"86":0.00319,"87":0.06693,"88":0.00319,"89":0.09561,"96":0.00637,"97":0.01275,"98":0.05099,"99":0.01594,"101":0.06693,"102":0.00637,"103":0.01594,"105":0.00319,"106":0.00319,"107":0.01594,"108":0.08924,"109":0.65334,"110":0.01275,"111":0.00637,"112":0.01594,"113":0.00319,"114":0.30277,"115":0.0255,"116":0.06055,"117":0.00956,"118":0.00319,"119":0.1721,"120":0.12111,"121":0.02868,"122":0.03506,"123":0.02868,"124":0.04462,"125":0.10517,"126":0.03824,"127":0.00637,"128":0.19122,"129":0.01594,"130":0.07011,"131":0.08605,"132":0.05099,"133":0.07649,"134":0.13067,"135":0.32826,"136":1.95363,"137":10.85174,"138":0.53542,"139":0.06055,"140":0.00319,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 44 45 47 51 53 54 57 59 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 81 84 85 90 91 92 93 94 95 100 104 141"},F:{"46":0.00319,"89":0.00319,"90":0.00637,"95":0.0255,"102":0.00319,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00319,"18":0.04462,"92":0.00637,"98":0.00319,"99":0.00319,"109":0.0255,"112":0.00319,"113":0.00319,"114":0.00319,"115":0.00319,"118":0.05737,"120":0.06374,"121":0.0255,"122":0.00319,"124":0.00319,"125":0.00637,"126":0.00319,"127":0.00637,"128":0.00319,"129":0.00319,"130":0.00319,"131":0.01594,"132":0.00319,"133":0.00319,"134":0.01275,"135":0.03506,"136":0.54498,"137":3.53757,"138":0.31551,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 116 117 119 123"},E:{"14":0.01594,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1","5.1":0.00319,"13.1":0.01594,"14.1":0.36013,"15.1":0.00637,"15.2-15.3":0.00319,"15.4":0.00637,"15.5":0.01275,"15.6":0.14023,"16.0":0.01275,"16.1":0.00637,"16.2":0.04781,"16.3":0.01912,"16.4":0.0255,"16.5":0.09242,"16.6":0.25496,"17.0":0.00319,"17.1":0.17529,"17.2":0.0255,"17.3":0.01594,"17.4":0.01912,"17.5":0.04143,"17.6":0.22628,"18.0":0.03187,"18.1":0.08605,"18.2":0.01275,"18.3":0.2932,"18.4":0.11792,"18.5":1.80066,"26.0":0.00319},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00526,"5.0-5.1":0,"6.0-6.1":0.01052,"7.0-7.1":0.01052,"8.1-8.4":0,"9.0-9.2":0.00526,"9.3":0.03157,"10.0-10.2":0.00263,"10.3":0.05262,"11.0-11.2":0.33679,"11.3-11.4":0.01842,"12.0-12.1":0.00526,"12.2-12.5":0.17629,"13.0-13.1":0.00263,"13.2":0.00789,"13.3":0.00526,"13.4-13.7":0.02894,"14.0-14.4":0.06841,"14.5-14.8":0.06841,"15.0-15.1":0.04736,"15.2-15.3":0.04736,"15.4":0.05789,"15.5":0.06315,"15.6-15.8":0.81567,"16.0":0.10788,"16.1":0.22102,"16.2":0.11314,"16.3":0.20786,"16.4":0.04736,"16.5":0.0842,"16.6-16.7":1.02353,"17.0":0.05525,"17.1":0.09735,"17.2":0.0763,"17.3":0.10788,"17.4":0.19208,"17.5":0.40257,"17.6-17.7":1.05247,"18.0":0.26049,"18.1":0.58675,"18.2":0.31048,"18.3":1.33401,"18.4":1.41558,"18.5":16.59486,"26.0":0},P:{"4":0.0212,"21":0.14837,"22":0.0106,"23":0.0106,"24":0.0106,"25":0.03179,"26":0.07419,"27":0.15897,"28":2.74488,_:"20 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","5.0-5.4":0.0106,"13.0":0.06359,"17.0":0.0212,"18.0":0.0212,"19.0":0.10598},I:{"0":0.04761,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.09538,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.26133,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.184},R:{_:"0"},M:{"0":0.81756},Q:{"14.9":0.14307},O:{"0":0.75624},H:{"0":0}}; +module.exports={C:{"34":0.07922,"52":0.0044,"78":0.02641,"80":0.0044,"81":0.0044,"88":0.0044,"100":0.0132,"115":0.15844,"122":0.0176,"123":0.0044,"124":0.03521,"125":0.52812,"126":0.62054,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 127 128 129 3.5 3.6"},D:{"22":0.0088,"26":0.0088,"30":0.0044,"34":0.05721,"38":0.16724,"43":0.0044,"44":0.0044,"45":0.0044,"46":0.0044,"47":0.0044,"49":0.02201,"51":0.0044,"53":0.02641,"55":0.0132,"57":0.0088,"58":0.0132,"59":0.0044,"60":0.0044,"61":0.10562,"62":0.0176,"65":0.0044,"69":0.0088,"70":0.0044,"72":0.0044,"73":0.0088,"74":0.08362,"75":0.0044,"76":0.0044,"77":0.0132,"78":0.0176,"79":0.36088,"80":0.04401,"81":0.03081,"83":0.06161,"86":0.0088,"87":0.29047,"88":0.0088,"89":0.03521,"90":0.0044,"91":0.0088,"92":0.0044,"93":0.0044,"94":0.19364,"96":0.03081,"97":0.11443,"98":0.05281,"99":0.17164,"100":0.0044,"101":0.08362,"102":0.0176,"103":0.10562,"104":0.0132,"105":0.04841,"106":0.0088,"107":0.02201,"108":0.03521,"109":1.50514,"110":0.0132,"111":0.0132,"112":0.0176,"113":0.02201,"114":0.03081,"115":0.03081,"116":0.22885,"117":0.03961,"118":0.0132,"119":0.22885,"120":0.20245,"121":0.29047,"122":0.33008,"123":1.06064,"124":13.86755,"125":5.88414,"126":0.05721,"127":0.02641,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 27 28 29 31 32 33 35 36 37 39 40 41 42 48 50 52 54 56 63 64 66 67 68 71 84 85 95 128"},F:{"28":0.0044,"36":0.03521,"46":0.10562,"70":0.0044,"95":0.0088,"102":0.0088,"107":0.03961,"108":0.0132,"109":0.12763,"110":0.0132,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0176,"18":0.0088,"92":0.0044,"99":0.0044,"109":0.09242,"113":0.03521,"114":0.0044,"115":0.02641,"116":0.0176,"117":0.04841,"118":0.0044,"119":0.0132,"120":0.0088,"121":0.02201,"122":0.02201,"123":0.13643,"124":2.86065,"125":1.39512,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 111 112"},E:{"9":0.0088,"13":0.02201,"14":0.18044,"15":0.03081,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.02641,"13.1":0.15844,"14.1":0.52372,"15.1":0.05721,"15.2-15.3":0.06602,"15.4":0.11003,"15.5":0.18484,"15.6":0.66455,"16.0":0.07042,"16.1":0.05721,"16.2":0.09242,"16.3":0.27286,"16.4":0.04841,"16.5":0.18924,"16.6":0.84499,"17.0":0.03081,"17.1":0.18044,"17.2":0.16724,"17.3":0.22445,"17.4":3.92569,"17.5":0.22885},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00456,"5.0-5.1":0.00456,"6.0-6.1":0.01139,"7.0-7.1":0.01595,"8.1-8.4":0.00456,"9.0-9.2":0.01139,"9.3":0.05242,"10.0-10.2":0.00912,"10.3":0.08204,"11.0-11.2":0.12078,"11.3-11.4":0.02279,"12.0-12.1":0.01367,"12.2-12.5":0.33045,"13.0-13.1":0.00684,"13.2":0.03191,"13.3":0.01595,"13.4-13.7":0.07293,"14.0-14.4":0.12534,"14.5-14.8":0.19371,"15.0-15.1":0.09344,"15.2-15.3":0.10255,"15.4":0.11623,"15.5":0.14585,"15.6-15.8":1.31267,"16.0":0.29854,"16.1":0.61532,"16.2":0.29854,"16.3":0.51732,"16.4":0.10939,"16.5":0.22106,"16.6-16.7":1.76163,"17.0":0.19143,"17.1":0.31222,"17.2":0.32589,"17.3":0.60164,"17.4":13.66228,"17.5":0.96399,"17.6":0},P:{"4":0.98897,"20":0.0345,"21":0.1035,"22":0.046,"23":0.0345,"24":0.1265,"25":3.2774,"5.0-5.4":0.0805,"6.2-6.4":0.023,_:"7.2-7.4 8.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","9.2":0.0115,"13.0":0.023,"17.0":0.0345,"18.0":0.023,"19.0":0.069},I:{"0":0.06134,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":0.02239,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.02539,"8":0.12695,"9":0.02539,"10":0.02539,"11":0.12695,_:"6 5.5"},S:{"2.5":0.0056,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.00443},R:{_:"0"},M:{"0":0.24631},Q:{"14.9":0.16794},O:{"0":0.61578},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MP.js b/node_modules/caniuse-lite/data/regions/MP.js index 9e1e4d68a..848898110 100644 --- a/node_modules/caniuse-lite/data/regions/MP.js +++ b/node_modules/caniuse-lite/data/regions/MP.js @@ -1 +1 @@ -module.exports={C:{"115":0.05558,"136":0.10719,"138":0.12307,"139":0.35333,"140":0.2779,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 141 142 143 3.5 3.6"},D:{"23":0.01191,"39":0.00397,"40":0.00397,"41":0.01985,"42":0.00397,"44":0.01588,"45":0.02779,"46":0.03573,"47":0.00397,"49":0.01191,"50":0.01191,"51":0.01191,"52":0.02779,"53":0.01588,"54":0.00794,"55":0.01588,"56":0.00397,"57":0.01985,"59":0.01588,"60":0.00397,"68":0.01191,"76":0.10322,"79":0.01588,"91":0.00397,"92":0.00794,"93":0.00397,"96":0.00397,"103":0.07146,"109":0.65505,"111":0.00397,"114":0.01588,"115":0.02382,"116":0.04764,"120":0.00794,"121":0.05161,"122":0.01588,"123":0.00397,"125":0.13895,"126":0.00794,"128":0.13895,"129":0.01985,"130":0.00397,"131":0.02382,"132":0.00794,"133":0.04764,"134":0.09528,"135":0.26202,"136":2.47728,"137":14.29994,"138":0.33745,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 43 48 58 61 62 63 64 65 66 67 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 87 88 89 90 94 95 97 98 99 100 101 102 104 105 106 107 108 110 112 113 117 118 119 124 127 139 140 141"},F:{"95":0.01588,"117":0.32157,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"88":0.00397,"109":0.00397,"124":0.00397,"133":0.00397,"134":0.01191,"135":0.23423,"136":0.45258,"137":7.34847,"138":0.50022,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 125 126 127 128 129 130 131 132"},E:{"14":0.00397,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.4 15.5 16.0 16.1 17.0 17.2 17.4 26.0","13.1":0.04764,"15.2-15.3":0.00397,"15.6":0.02382,"16.2":0.00794,"16.3":0.00397,"16.4":0.06352,"16.5":0.00794,"16.6":0.14292,"17.1":0.02779,"17.3":0.00397,"17.5":0.00794,"17.6":0.13498,"18.0":0.00397,"18.1":0.01588,"18.2":0.01985,"18.3":0.26599,"18.4":0.01588,"18.5":0.66696},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00193,"5.0-5.1":0,"6.0-6.1":0.00386,"7.0-7.1":0.00386,"8.1-8.4":0,"9.0-9.2":0.00193,"9.3":0.01157,"10.0-10.2":0.00096,"10.3":0.01928,"11.0-11.2":0.12342,"11.3-11.4":0.00675,"12.0-12.1":0.00193,"12.2-12.5":0.0646,"13.0-13.1":0.00096,"13.2":0.00289,"13.3":0.00193,"13.4-13.7":0.01061,"14.0-14.4":0.02507,"14.5-14.8":0.02507,"15.0-15.1":0.01736,"15.2-15.3":0.01736,"15.4":0.02121,"15.5":0.02314,"15.6-15.8":0.2989,"16.0":0.03953,"16.1":0.08099,"16.2":0.04146,"16.3":0.07617,"16.4":0.01736,"16.5":0.03085,"16.6-16.7":0.37507,"17.0":0.02025,"17.1":0.03568,"17.2":0.02796,"17.3":0.03953,"17.4":0.07039,"17.5":0.14752,"17.6-17.7":0.38568,"18.0":0.09546,"18.1":0.21502,"18.2":0.11378,"18.3":0.48885,"18.4":0.51874,"18.5":6.08119,"26.0":0},P:{"23":0.01033,"25":0.031,"26":0.031,"27":0.062,"28":9.10363,_:"4 20 21 22 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":1.36648,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00027,"4.4":0,"4.4.3-4.4.4":0.0011},K:{"0":0.08442,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.02268},R:{_:"0"},M:{"0":0.18693},Q:{"14.9":0.00603},O:{"0":0.24723},H:{"0":0}}; +module.exports={C:{"52":0.02132,"78":0.00533,"115":0.06396,"123":0.01066,"124":0.26117,"125":1.18859,"126":0.87412,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"79":0.02132,"86":0.00533,"87":0.01066,"91":0.02132,"93":0.28249,"97":0.00533,"99":0.01066,"103":0.06929,"106":0.02132,"108":0.00533,"109":0.61828,"115":0.18122,"116":0.1599,"117":0.01599,"118":0.19188,"119":0.01066,"120":0.04264,"121":0.04797,"122":0.60762,"123":2.41982,"124":23.13753,"125":8.87978,"127":0.01066,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 88 89 90 92 94 95 96 98 100 101 102 104 105 107 110 111 112 113 114 126 128"},F:{"102":0.00533,"107":0.30381,"109":1.29519,"110":0.02665,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02132,"92":0.00533,"103":0.00533,"108":0.00533,"109":0.06929,"110":0.00533,"119":0.00533,"121":0.00533,"122":0.00533,"123":0.84214,"124":3.81628,"125":2.38784,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105 106 107 111 112 113 114 115 116 117 118 120"},E:{"14":0.13325,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.01066,"14.1":0.10127,"15.1":0.04264,"15.2-15.3":0.02132,"15.4":0.13858,"15.5":0.01066,"15.6":0.36777,"16.0":0.01066,"16.1":0.03198,"16.2":0.04797,"16.3":0.1066,"16.4":0.02665,"16.5":0.02132,"16.6":0.30914,"17.0":0.01066,"17.1":0.04797,"17.2":0.02665,"17.3":0.02665,"17.4":1.16194,"17.5":0.02665},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00192,"5.0-5.1":0.00192,"6.0-6.1":0.0048,"7.0-7.1":0.00672,"8.1-8.4":0.00192,"9.0-9.2":0.0048,"9.3":0.02208,"10.0-10.2":0.00384,"10.3":0.03457,"11.0-11.2":0.05089,"11.3-11.4":0.0096,"12.0-12.1":0.00576,"12.2-12.5":0.13922,"13.0-13.1":0.00288,"13.2":0.01344,"13.3":0.00672,"13.4-13.7":0.03072,"14.0-14.4":0.05281,"14.5-14.8":0.08161,"15.0-15.1":0.03937,"15.2-15.3":0.04321,"15.4":0.04897,"15.5":0.06145,"15.6-15.8":0.55305,"16.0":0.12578,"16.1":0.25924,"16.2":0.12578,"16.3":0.21795,"16.4":0.04609,"16.5":0.09313,"16.6-16.7":0.7422,"17.0":0.08065,"17.1":0.13154,"17.2":0.1373,"17.3":0.25348,"17.4":5.75611,"17.5":0.40614,"17.6":0},P:{"22":0.02137,"23":0.05343,"24":0.49158,"25":6.39049,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01069,"19.0":0.07481},I:{"0":0.02791,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.02335,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01066,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.84011},R:{_:"0"},M:{"0":0.26152},Q:{_:"14.9"},O:{"0":0.06071},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MQ.js b/node_modules/caniuse-lite/data/regions/MQ.js index df13749fe..6f904ac98 100644 --- a/node_modules/caniuse-lite/data/regions/MQ.js +++ b/node_modules/caniuse-lite/data/regions/MQ.js @@ -1 +1 @@ -module.exports={C:{"78":0.00327,"89":0.00327,"115":0.11754,"128":0.10122,"132":0.05551,"133":0.00327,"136":0.01959,"137":0.01959,"138":0.07183,"139":3.42172,"140":0.20896,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 134 135 141 142 143 3.5 3.6"},D:{"47":0.00327,"56":0.00327,"70":0.00327,"76":0.00327,"79":0.03918,"81":0.02939,"87":0.02286,"97":0.0098,"99":0.00327,"100":0.02286,"101":0.00327,"103":0.00653,"104":0.00327,"106":0.0098,"107":0.00327,"108":0.05877,"109":0.34283,"110":0.03918,"111":0.28732,"114":0.03918,"116":0.05877,"119":0.00327,"121":0.00327,"122":0.03592,"123":0.00327,"124":0.0098,"125":0.28079,"126":0.01633,"127":0.01959,"128":0.04571,"129":0.01633,"130":0.00653,"131":0.02612,"132":0.11754,"133":0.02286,"134":0.07836,"135":0.31997,"136":1.81534,"137":10.19007,"138":0.40813,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 77 78 80 83 84 85 86 88 89 90 91 92 93 94 95 96 98 102 105 112 113 115 117 118 120 139 140 141"},F:{"28":0.01306,"46":0.04571,"89":0.03918,"90":0.00327,"114":0.00327,"117":0.00653,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00327,"18":0.00653,"91":0.00653,"92":0.01306,"96":0.01633,"99":0.00327,"109":0.0098,"114":0.00327,"117":0.00327,"119":0.0098,"120":0.00653,"125":0.33956,"129":0.0098,"130":0.0098,"131":0.01306,"132":0.01306,"133":0.01633,"134":0.17958,"135":0.05877,"136":0.7183,"137":4.6363,"138":0.25794,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 93 94 95 97 98 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 121 122 123 124 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 26.0","5.1":0.00327,"11.1":0.01959,"13.1":0.00327,"14.1":0.04571,"15.4":0.00653,"15.5":0.03918,"15.6":0.10448,"16.0":0.01633,"16.1":0.0098,"16.2":0.00327,"16.3":0.0098,"16.4":0.02612,"16.5":0.00653,"16.6":0.1959,"17.0":0.02939,"17.1":0.08163,"17.2":0.00653,"17.3":0.0098,"17.4":0.0098,"17.5":0.02286,"17.6":0.23182,"18.0":0.02939,"18.1":0.13387,"18.2":0.02286,"18.3":0.07836,"18.4":0.24488,"18.5":1.79575},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0026,"5.0-5.1":0,"6.0-6.1":0.00519,"7.0-7.1":0.00519,"8.1-8.4":0,"9.0-9.2":0.0026,"9.3":0.01558,"10.0-10.2":0.0013,"10.3":0.02597,"11.0-11.2":0.16621,"11.3-11.4":0.00909,"12.0-12.1":0.0026,"12.2-12.5":0.087,"13.0-13.1":0.0013,"13.2":0.0039,"13.3":0.0026,"13.4-13.7":0.01428,"14.0-14.4":0.03376,"14.5-14.8":0.03376,"15.0-15.1":0.02337,"15.2-15.3":0.02337,"15.4":0.02857,"15.5":0.03116,"15.6-15.8":0.40254,"16.0":0.05324,"16.1":0.10907,"16.2":0.05584,"16.3":0.10258,"16.4":0.02337,"16.5":0.04155,"16.6-16.7":0.50512,"17.0":0.02727,"17.1":0.04804,"17.2":0.03766,"17.3":0.05324,"17.4":0.09479,"17.5":0.19867,"17.6-17.7":0.5194,"18.0":0.12855,"18.1":0.28957,"18.2":0.15322,"18.3":0.65834,"18.4":0.6986,"18.5":8.18969,"26.0":0},P:{"4":0.01048,"21":0.0419,"22":0.07333,"23":0.03143,"24":0.0419,"25":0.18855,"26":0.32473,"27":0.2514,"28":3.75007,_:"20 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0 19.0","5.0-5.4":0.03143,"7.2-7.4":0.06285,"9.2":0.01048,"15.0":0.01048},I:{"0":0.13447,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.84188,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02612,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.43443},R:{_:"0"},M:{"0":0.30308},Q:{_:"14.9"},O:{"0":0.00674},H:{"0":0}}; +module.exports={C:{"89":0.00882,"91":0.00441,"92":0.01323,"115":0.30429,"121":0.01764,"122":0.00441,"123":0.02205,"124":0.0441,"125":1.6758,"126":1.29654,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 127 128 129 3.5 3.6"},D:{"39":0.00882,"76":0.00441,"79":0.00441,"87":0.02205,"89":0.00441,"97":0.00441,"99":0.00882,"102":0.00441,"103":0.02646,"105":0.01764,"107":0.00441,"109":1.00989,"110":0.00441,"112":0.01323,"113":0.01764,"114":0.10143,"116":0.14112,"117":0.00882,"118":0.00441,"119":0.01764,"120":0.03528,"121":0.01323,"122":0.1323,"123":1.38474,"124":14.60151,"125":6.60177,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 90 91 92 93 94 95 96 98 100 101 104 106 108 111 115 126 127 128"},F:{"46":0.01764,"89":0.00882,"95":0.01764,"107":0.29547,"108":0.02205,"109":1.18629,"110":0.10143,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01323,"109":0.02205,"113":0.00882,"114":0.01764,"116":0.00441,"118":0.00441,"119":0.06174,"120":0.0882,"121":0.02646,"122":0.02205,"123":0.12348,"124":4.78044,"125":2.88855,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 117"},E:{"14":0.03528,"15":0.00882,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00441,"13.1":0.02646,"14.1":0.15435,"15.1":0.01323,"15.2-15.3":0.02646,"15.4":0.02205,"15.5":0.12789,"15.6":0.6174,"16.0":0.01323,"16.1":0.06615,"16.2":0.05292,"16.3":0.0882,"16.4":0.03528,"16.5":0.04851,"16.6":0.71442,"17.0":0.14112,"17.1":0.11907,"17.2":0.0882,"17.3":0.14553,"17.4":2.37699,"17.5":0.37485},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0033,"5.0-5.1":0.0033,"6.0-6.1":0.00826,"7.0-7.1":0.01156,"8.1-8.4":0.0033,"9.0-9.2":0.00826,"9.3":0.03798,"10.0-10.2":0.00661,"10.3":0.05945,"11.0-11.2":0.08752,"11.3-11.4":0.01651,"12.0-12.1":0.00991,"12.2-12.5":0.23944,"13.0-13.1":0.00495,"13.2":0.02312,"13.3":0.01156,"13.4-13.7":0.05284,"14.0-14.4":0.09082,"14.5-14.8":0.14036,"15.0-15.1":0.0677,"15.2-15.3":0.07431,"15.4":0.08422,"15.5":0.10568,"15.6-15.8":0.95114,"16.0":0.21632,"16.1":0.44585,"16.2":0.21632,"16.3":0.37484,"16.4":0.07926,"16.5":0.16017,"16.6-16.7":1.27644,"17.0":0.13871,"17.1":0.22623,"17.2":0.23613,"17.3":0.43594,"17.4":9.89946,"17.5":0.69849,"17.6":0},P:{"4":0.03136,"21":0.07318,"22":0.10455,"23":0.48092,"24":0.47047,"25":3.03192,_:"20 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0","5.0-5.4":0.01045,"7.2-7.4":0.05227,"11.1-11.2":0.04182,"13.0":0.01045,"17.0":0.01045,"18.0":0.03136,"19.0":0.08364},I:{"0":0.00557,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.68757,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00882,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.00573},R:{_:"0"},M:{"0":0.47515},Q:{_:"14.9"},O:{"0":0.02795},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MR.js b/node_modules/caniuse-lite/data/regions/MR.js index 00e458cfb..60b99138a 100644 --- a/node_modules/caniuse-lite/data/regions/MR.js +++ b/node_modules/caniuse-lite/data/regions/MR.js @@ -1 +1 @@ -module.exports={C:{"72":0.00224,"105":0.00112,"115":0.15596,"127":0.00224,"128":0.00337,"136":0.00112,"137":0.01459,"138":0.0101,"139":0.22216,"140":0.02805,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 141 142 143 3.5 3.6"},D:{"33":0.00112,"38":0.00112,"39":0.00224,"40":0.00112,"42":0.00112,"43":0.00224,"44":0.00112,"45":0.00112,"46":0.00112,"48":0.00112,"49":0.00112,"50":0.00112,"51":0.00112,"52":0.00112,"54":0.00112,"55":0.00112,"56":0.00112,"57":0.00112,"58":0.13801,"59":0.00112,"60":0.00112,"63":0.00112,"64":0.00224,"67":0.00898,"73":0.00785,"77":0.01346,"79":0.00673,"80":0.00112,"83":0.00449,"87":0.00224,"88":0.00224,"90":0.00224,"91":0.00898,"93":0.00337,"98":0.00224,"99":0.00561,"102":0.00112,"103":0.00785,"105":0.00112,"108":0.00112,"109":0.3007,"110":0.00224,"111":0.00224,"113":0.00449,"114":0.046,"115":0.00112,"116":0.0101,"118":0.00112,"119":0.01234,"120":0.00112,"122":0.00224,"123":0.00785,"124":0.00224,"125":0.22103,"126":0.00112,"127":0.00561,"128":0.0101,"129":0.01683,"130":0.00337,"131":0.00898,"132":0.00561,"133":0.0101,"134":0.02917,"135":0.06283,"136":0.30855,"137":2.10375,"138":0.14362,"139":0.00112,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 41 47 53 61 62 65 66 68 69 70 71 72 74 75 76 78 81 84 85 86 89 92 94 95 96 97 100 101 104 106 107 112 117 121 140 141"},F:{"71":0.00112,"85":0.00561,"89":0.00112,"90":0.00112,"95":0.0202,"117":0.00112,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00112,"18":0.00561,"84":0.00112,"90":0.00112,"92":0.01346,"100":0.00112,"109":0.00449,"114":0.00112,"126":0.00112,"128":0.00337,"130":0.00673,"131":0.00337,"132":0.00224,"133":0.00112,"134":0.00112,"135":0.00224,"136":0.11669,"137":0.66086,"138":0.0763,_:"12 13 14 15 17 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 127 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.3 16.4 17.4 26.0","5.1":0.00449,"13.1":0.00449,"14.1":0.00224,"15.5":0.0101,"15.6":0.04151,"16.1":0.00337,"16.2":0.00112,"16.5":0.00224,"16.6":0.02468,"17.0":0.00224,"17.1":0.01571,"17.2":0.01346,"17.3":0.00112,"17.5":0.00449,"17.6":0.04376,"18.0":0.0101,"18.1":0.00785,"18.2":0.02356,"18.3":0.01571,"18.4":0.01571,"18.5":0.11444},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00441,"5.0-5.1":0,"6.0-6.1":0.00882,"7.0-7.1":0.00882,"8.1-8.4":0,"9.0-9.2":0.00441,"9.3":0.02647,"10.0-10.2":0.00221,"10.3":0.04411,"11.0-11.2":0.28231,"11.3-11.4":0.01544,"12.0-12.1":0.00441,"12.2-12.5":0.14777,"13.0-13.1":0.00221,"13.2":0.00662,"13.3":0.00441,"13.4-13.7":0.02426,"14.0-14.4":0.05734,"14.5-14.8":0.05734,"15.0-15.1":0.0397,"15.2-15.3":0.0397,"15.4":0.04852,"15.5":0.05293,"15.6-15.8":0.68372,"16.0":0.09043,"16.1":0.18527,"16.2":0.09484,"16.3":0.17424,"16.4":0.0397,"16.5":0.07058,"16.6-16.7":0.85796,"17.0":0.04632,"17.1":0.08161,"17.2":0.06396,"17.3":0.09043,"17.4":0.161,"17.5":0.33745,"17.6-17.7":0.88222,"18.0":0.21835,"18.1":0.49184,"18.2":0.26025,"18.3":1.11821,"18.4":1.18658,"18.5":13.91036,"26.0":0},P:{"4":0.0202,"20":0.0202,"21":0.19194,"22":0.24244,"23":0.12122,"24":0.88896,"25":0.44448,"26":0.5556,"27":0.98998,"28":1.72742,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1","7.2-7.4":0.96978,"11.1-11.2":0.04041,"12.0":0.0101,"13.0":0.0202,"14.0":0.08081,"15.0":0.0202,"16.0":0.07071,"17.0":0.0101,"18.0":0.03031,"19.0":0.29295},I:{"0":0.03546,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.49722,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00187,"11":0.00374,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.96299},R:{_:"0"},M:{"0":0.05327},Q:{_:"14.9"},O:{"0":0.05327},H:{"0":0}}; +module.exports={C:{"44":0.00174,"47":0.00347,"52":0.00174,"68":0.05379,"69":0.00174,"72":0.00174,"78":0.00521,"89":0.00174,"94":0.00174,"102":0.00521,"103":0.00174,"112":0.00174,"115":0.28107,"118":0.00347,"121":0.00174,"123":0.00174,"124":0.01388,"125":0.19259,"126":0.21688,"127":0.00174,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 93 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 113 114 116 117 119 120 122 128 129 3.5 3.6"},D:{"11":0.00174,"25":0.00521,"29":0.00174,"33":0.01909,"37":0.00174,"39":0.00174,"41":0.01562,"43":0.00347,"44":0.00521,"50":0.00347,"56":0.00174,"58":2.04383,"63":0.00174,"65":0.00347,"68":0.00174,"70":0.01041,"72":0.00521,"76":0.00174,"77":0.01388,"79":0.04858,"80":0.00174,"81":0.01215,"83":0.00347,"84":0.00174,"85":0.00174,"86":0.00347,"87":0.00347,"88":0.00347,"90":0.00174,"91":0.00174,"93":0.00174,"94":0.00174,"95":0.01909,"98":0.03644,"99":0.00347,"100":0.00174,"102":0.00174,"103":0.07461,"106":0.00347,"107":0.00347,"108":0.01041,"109":0.6888,"111":0.00347,"113":0.00174,"115":0.07114,"116":0.01562,"117":0.00521,"118":0.00694,"119":0.0295,"120":0.0347,"121":0.02429,"122":0.02429,"123":0.13186,"124":7.85261,"125":1.12775,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 30 31 32 34 35 36 38 40 42 45 46 47 48 49 51 52 53 54 55 57 59 60 61 62 64 66 67 69 71 73 74 75 78 89 92 96 97 101 104 105 110 112 114 126 127 128"},F:{"18":0.00174,"58":0.00174,"75":0.00347,"79":0.00174,"85":0.01388,"95":0.05032,"107":0.00174,"108":0.02082,"109":0.35741,"110":0.04164,_:"9 11 12 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00174,"17":0.00174,"18":0.00694,"84":0.00174,"89":0.01735,"90":0.00174,"92":0.01388,"100":0.00694,"108":0.00174,"109":0.00521,"110":0.00174,"114":0.00174,"116":0.00347,"117":0.00174,"118":0.00347,"119":0.00347,"120":0.00521,"121":0.00174,"122":0.01388,"123":0.01215,"124":0.84495,"125":0.41987,_:"13 14 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 111 112 113 115"},E:{"4":0.00174,"13":0.00174,_:"0 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.5 16.0 17.2 17.6","5.1":0.00174,"13.1":0.00174,"15.4":0.00694,"15.6":0.02429,"16.1":0.00174,"16.2":0.00174,"16.3":0.00694,"16.4":0.00521,"16.5":0.00174,"16.6":0.02429,"17.0":0.00174,"17.1":0.00174,"17.3":0.00347,"17.4":0.08675,"17.5":0.00868},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00262,"5.0-5.1":0.00262,"6.0-6.1":0.00655,"7.0-7.1":0.00918,"8.1-8.4":0.00262,"9.0-9.2":0.00655,"9.3":0.03015,"10.0-10.2":0.00524,"10.3":0.04719,"11.0-11.2":0.06947,"11.3-11.4":0.01311,"12.0-12.1":0.00786,"12.2-12.5":0.19007,"13.0-13.1":0.00393,"13.2":0.01835,"13.3":0.00918,"13.4-13.7":0.04195,"14.0-14.4":0.0721,"14.5-14.8":0.11142,"15.0-15.1":0.05374,"15.2-15.3":0.05899,"15.4":0.06685,"15.5":0.08389,"15.6-15.8":0.75504,"16.0":0.17172,"16.1":0.35392,"16.2":0.17172,"16.3":0.29756,"16.4":0.06292,"16.5":0.12715,"16.6-16.7":1.01327,"17.0":0.11011,"17.1":0.17958,"17.2":0.18745,"17.3":0.34606,"17.4":7.85842,"17.5":0.55448,"17.6":0},P:{"4":0.13093,"20":0.0705,"21":0.61438,"22":0.34244,"23":0.49352,"24":0.61438,"25":1.64171,"5.0-5.4":0.01007,"6.2-6.4":0.03022,"7.2-7.4":1.59135,_:"8.2 12.0","9.2":0.02014,"10.1":0.01007,"11.1-11.2":0.09065,"13.0":0.04029,"14.0":0.04029,"15.0":0.03022,"16.0":0.12086,"17.0":0.05036,"18.0":0.04029,"19.0":0.83596},I:{"0":0.04116,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.8065,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01481,"9":0.00185,"10":0.00185,"11":0.22959,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.08815},R:{_:"0"},M:{"0":0.04959},Q:{_:"14.9"},O:{"0":0.32234},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/MS.js b/node_modules/caniuse-lite/data/regions/MS.js index 8e79faae7..1754139ff 100644 --- a/node_modules/caniuse-lite/data/regions/MS.js +++ b/node_modules/caniuse-lite/data/regions/MS.js @@ -1 +1 @@ -module.exports={C:{"138":0.02798,"139":0.06062,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 140 141 142 143 3.5 3.6"},D:{"40":0.0886,"42":0.06062,"43":0.06062,"48":0.06062,"51":0.02798,"52":0.0886,"56":0.0886,"57":0.0886,"58":0.06062,"60":0.06062,"109":0.02798,"116":0.02798,"125":4.78424,"128":0.06062,"131":0.02798,"133":0.02798,"134":0.06062,"135":0.12124,"136":2.58797,"137":23.01191,"138":1.08182,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 44 45 46 47 49 50 53 54 55 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 123 124 126 127 129 130 132 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"127":0.02798,"136":0.9326,"137":8.3934,"138":0.33107,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.1 17.2 17.3 18.0 18.1 18.2 26.0","15.6":0.54091,"16.6":0.12124,"17.0":0.02798,"17.4":0.06062,"17.5":0.06062,"17.6":0.0886,"18.3":0.54091,"18.4":0.20984,"18.5":0.54091},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00142,"5.0-5.1":0,"6.0-6.1":0.00284,"7.0-7.1":0.00284,"8.1-8.4":0,"9.0-9.2":0.00142,"9.3":0.00852,"10.0-10.2":0.00071,"10.3":0.0142,"11.0-11.2":0.09086,"11.3-11.4":0.00497,"12.0-12.1":0.00142,"12.2-12.5":0.04756,"13.0-13.1":0.00071,"13.2":0.00213,"13.3":0.00142,"13.4-13.7":0.00781,"14.0-14.4":0.01846,"14.5-14.8":0.01846,"15.0-15.1":0.01278,"15.2-15.3":0.01278,"15.4":0.01562,"15.5":0.01704,"15.6-15.8":0.22004,"16.0":0.0291,"16.1":0.05962,"16.2":0.03052,"16.3":0.05608,"16.4":0.01278,"16.5":0.02271,"16.6-16.7":0.27612,"17.0":0.01491,"17.1":0.02626,"17.2":0.02058,"17.3":0.0291,"17.4":0.05182,"17.5":0.1086,"17.6-17.7":0.28393,"18.0":0.07027,"18.1":0.15829,"18.2":0.08376,"18.3":0.35988,"18.4":0.38188,"18.5":4.47684,"26.0":0},P:{"23":0.09807,"24":0.03269,"26":0.06538,"27":0.03269,"28":1.17681,_:"4 20 21 22 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.16345},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.06263},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"115":0.02491,"124":0.04981,"125":0.07472,"126":0.04981,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"81":0.02491,"95":0.02491,"103":0.07472,"107":0.02491,"109":1.00118,"116":0.1046,"120":0.02491,"122":0.25403,"123":0.74217,"124":19.96883,"125":6.05192,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 108 110 111 112 113 114 115 117 118 119 121 126 127 128"},F:{"109":1.63875,"110":0.02491,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"121":0.12951,"122":0.02491,"123":0.15441,"124":10.66432,"125":2.07708,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.5 17.0 17.6","13.1":0.04981,"16.1":0.04981,"16.2":0.07472,"16.3":0.22913,"16.4":0.02491,"16.6":1.00118,"17.1":0.07472,"17.2":0.04981,"17.3":0.12951,"17.4":1.35981,"17.5":0.04981},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00245,"5.0-5.1":0.00245,"6.0-6.1":0.00612,"7.0-7.1":0.00857,"8.1-8.4":0.00245,"9.0-9.2":0.00612,"9.3":0.02817,"10.0-10.2":0.0049,"10.3":0.04409,"11.0-11.2":0.06491,"11.3-11.4":0.01225,"12.0-12.1":0.00735,"12.2-12.5":0.17757,"13.0-13.1":0.00367,"13.2":0.01714,"13.3":0.00857,"13.4-13.7":0.03919,"14.0-14.4":0.06735,"14.5-14.8":0.10409,"15.0-15.1":0.05021,"15.2-15.3":0.05511,"15.4":0.06246,"15.5":0.07838,"15.6-15.8":0.70539,"16.0":0.16043,"16.1":0.33065,"16.2":0.16043,"16.3":0.27799,"16.4":0.05878,"16.5":0.11879,"16.6-16.7":0.94664,"17.0":0.10287,"17.1":0.16778,"17.2":0.17512,"17.3":0.3233,"17.4":7.34169,"17.5":0.51802,"17.6":0},P:{"21":0.11801,"22":0.09441,"23":0.0354,"24":0.09441,"25":3.11546,_:"4 20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.15341,"7.2-7.4":0.05901,"19.0":0.05901},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.35027},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MT.js b/node_modules/caniuse-lite/data/regions/MT.js index 148a2fa25..ef54dfe4e 100644 --- a/node_modules/caniuse-lite/data/regions/MT.js +++ b/node_modules/caniuse-lite/data/regions/MT.js @@ -1 +1 @@ -module.exports={C:{"52":0.02846,"110":0.00474,"113":0.00474,"115":0.03321,"128":0.02846,"130":0.00474,"133":0.00474,"136":0.00949,"137":0.01898,"138":0.07116,"139":0.7543,"140":0.14706,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 114 116 117 118 119 120 121 122 123 124 125 126 127 129 131 132 134 135 141 142 143 3.5 3.6"},D:{"39":0.00474,"40":0.00474,"41":0.00474,"42":0.00474,"43":0.00474,"44":0.00474,"45":0.00474,"47":0.00474,"48":0.00474,"49":0.01423,"50":0.00474,"52":0.00474,"53":0.00474,"54":0.00474,"55":0.00474,"56":0.00474,"58":0.00474,"59":0.00474,"60":0.00474,"70":0.00474,"74":0.00474,"75":0.00474,"76":0.00949,"79":0.01898,"81":0.00474,"83":0.00474,"86":0.00474,"87":0.00474,"91":0.00474,"93":0.00474,"97":0.00474,"98":0.04744,"99":0.02846,"100":0.00474,"103":0.04744,"106":0.00474,"107":0.02846,"108":0.00474,"109":0.67839,"110":0.00474,"111":0.04744,"112":0.00474,"114":0.00949,"115":0.0759,"116":0.08539,"117":0.00474,"119":0.01898,"120":0.05218,"121":0.00949,"122":0.23246,"123":0.8302,"124":0.5503,"125":0.35106,"126":0.05218,"127":0.05218,"128":0.06167,"129":0.00949,"130":0.01423,"131":0.1186,"132":0.09962,"133":0.05693,"134":0.20874,"135":0.26092,"136":4.09407,"137":23.45434,"138":0.74006,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 46 51 57 61 62 63 64 65 66 67 68 69 71 72 73 77 78 80 84 85 88 89 90 92 94 95 96 101 102 104 105 113 118 139 140 141"},F:{"28":0.00949,"46":0.01423,"95":0.00474,"102":0.00474,"111":0.04744,"114":0.00474,"117":0.00474,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"98":0.00474,"99":0.00474,"109":0.02846,"112":0.05693,"114":0.00474,"117":0.00474,"118":0.00474,"120":0.00474,"122":0.00474,"127":0.01898,"128":0.00474,"129":0.01898,"130":0.01898,"131":0.03795,"132":0.03795,"133":0.01423,"134":0.03795,"135":0.02846,"136":1.05317,"137":5.08082,"138":0.26566,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 113 115 116 119 121 123 124 125 126"},E:{"14":0.00474,"15":0.00474,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.4","12.1":0.01898,"13.1":0.00949,"14.1":0.01423,"15.2-15.3":0.02846,"15.5":0.00474,"15.6":0.1186,"16.0":0.0759,"16.1":0.00949,"16.2":0.01898,"16.3":0.02372,"16.4":0.13283,"16.5":0.01898,"16.6":0.1613,"17.0":0.03321,"17.1":0.10911,"17.2":0.01898,"17.3":0.06167,"17.4":0.0759,"17.5":0.06167,"17.6":0.14706,"18.0":0.03321,"18.1":0.04744,"18.2":0.03321,"18.3":0.2372,"18.4":0.10911,"18.5":1.52757,"26.0":0.00474},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00317,"5.0-5.1":0,"6.0-6.1":0.00633,"7.0-7.1":0.00633,"8.1-8.4":0,"9.0-9.2":0.00317,"9.3":0.01899,"10.0-10.2":0.00158,"10.3":0.03165,"11.0-11.2":0.20257,"11.3-11.4":0.01108,"12.0-12.1":0.00317,"12.2-12.5":0.10603,"13.0-13.1":0.00158,"13.2":0.00475,"13.3":0.00317,"13.4-13.7":0.01741,"14.0-14.4":0.04115,"14.5-14.8":0.04115,"15.0-15.1":0.02849,"15.2-15.3":0.02849,"15.4":0.03482,"15.5":0.03798,"15.6-15.8":0.4906,"16.0":0.06489,"16.1":0.13294,"16.2":0.06805,"16.3":0.12502,"16.4":0.02849,"16.5":0.05064,"16.6-16.7":0.61562,"17.0":0.03323,"17.1":0.05856,"17.2":0.04589,"17.3":0.06489,"17.4":0.11553,"17.5":0.24213,"17.6-17.7":0.63303,"18.0":0.15668,"18.1":0.35292,"18.2":0.18674,"18.3":0.80237,"18.4":0.85143,"18.5":9.98134,"26.0":0},P:{"21":0.01051,"22":0.01051,"23":0.01051,"24":0.03154,"25":0.02102,"26":0.0841,"27":0.15768,"28":2.2811,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.05256},I:{"0":0.14167,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.28434,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00949,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":33.96995},R:{_:"0"},M:{"0":0.35741},Q:{_:"14.9"},O:{"0":0.28908},H:{"0":0.01}}; +module.exports={C:{"68":0.04768,"78":0.00477,"83":0.02384,"88":0.00477,"108":0.0143,"113":0.00954,"115":0.2241,"120":0.00954,"123":0.04291,"124":0.02384,"125":0.69136,"126":0.51494,"127":0.00477,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 114 116 117 118 119 121 122 128 129 3.5 3.6"},D:{"11":0.00477,"43":0.00477,"44":0.00477,"46":0.00477,"49":0.00954,"51":0.00477,"56":0.00477,"70":0.00477,"76":0.00954,"77":0.02384,"79":0.03338,"80":0.00477,"83":0.00477,"86":0.00954,"87":0.0143,"89":0.00477,"92":0.00477,"93":0.48634,"94":0.00477,"95":0.00477,"96":0.00477,"98":0.00954,"99":0.00477,"102":0.00477,"103":0.04768,"106":0.00477,"107":0.20979,"108":0.00477,"109":0.77718,"111":0.00477,"112":0.0143,"113":0.00477,"114":0.05722,"115":0.19549,"116":0.2241,"117":0.10013,"118":0.00954,"119":0.13827,"120":0.12397,"121":0.06198,"122":0.72474,"123":1.63066,"124":20.30691,"125":7.43808,"126":0.01907,_:"4 5 6 7 8 9 10 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 45 47 48 50 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 78 81 84 85 88 90 91 97 100 101 104 105 110 127 128"},F:{"28":0.04291,"90":0.01907,"94":0.00954,"104":0.0143,"107":0.2384,"108":0.03814,"109":1.9215,"110":0.03814,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 95 96 97 98 99 100 101 102 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00954,"92":0.00954,"107":0.00477,"108":0.00954,"109":0.02384,"112":0.04291,"113":0.00477,"114":0.00477,"117":0.00477,"119":0.04291,"120":0.02384,"121":0.02861,"122":0.01907,"123":0.17642,"124":3.69043,"125":2.10746,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 115 116 118"},E:{"9":0.00954,"13":0.00477,"14":0.02861,_:"0 4 5 6 7 8 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.02861,"14.1":0.03814,"15.1":0.00477,"15.2-15.3":0.01907,"15.4":0.0143,"15.5":0.00954,"15.6":0.24317,"16.0":0.01907,"16.1":0.02861,"16.2":0.08582,"16.3":0.12397,"16.4":0.06198,"16.5":0.07152,"16.6":0.38621,"17.0":0.04291,"17.1":0.1335,"17.2":0.1192,"17.3":0.08106,"17.4":1.88813,"17.5":0.51971},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00352,"5.0-5.1":0.00352,"6.0-6.1":0.00879,"7.0-7.1":0.01231,"8.1-8.4":0.00352,"9.0-9.2":0.00879,"9.3":0.04044,"10.0-10.2":0.00703,"10.3":0.06329,"11.0-11.2":0.09318,"11.3-11.4":0.01758,"12.0-12.1":0.01055,"12.2-12.5":0.25493,"13.0-13.1":0.00527,"13.2":0.02461,"13.3":0.01231,"13.4-13.7":0.05626,"14.0-14.4":0.0967,"14.5-14.8":0.14944,"15.0-15.1":0.07208,"15.2-15.3":0.07912,"15.4":0.08967,"15.5":0.11252,"15.6-15.8":1.01269,"16.0":0.23032,"16.1":0.4747,"16.2":0.23032,"16.3":0.3991,"16.4":0.08439,"16.5":0.17054,"16.6-16.7":1.35904,"17.0":0.14768,"17.1":0.24087,"17.2":0.25141,"17.3":0.46415,"17.4":10.54004,"17.5":0.74369,"17.6":0},P:{"4":0.05259,"20":0.01052,"21":0.03155,"22":0.02103,"23":0.04207,"24":0.14724,"25":2.61885,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","6.2-6.4":0.01052,"7.2-7.4":0.01052,"11.1-11.2":0.01052,"17.0":0.01052,"19.0":0.01052},I:{"0":0.21885,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00013,"4.4":0,"4.4.3-4.4.4":0.00048},K:{"0":0.30909,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00556,"8":0.02781,"9":0.00556,"10":0.00556,"11":0.02225,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.45103},R:{_:"0"},M:{"0":0.2197},Q:{_:"14.9"},O:{"0":0.1517},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/MU.js b/node_modules/caniuse-lite/data/regions/MU.js index 05918b84f..1cc696da9 100644 --- a/node_modules/caniuse-lite/data/regions/MU.js +++ b/node_modules/caniuse-lite/data/regions/MU.js @@ -1 +1 @@ -module.exports={C:{"78":0.00272,"80":0.00272,"102":0.00272,"115":0.11955,"124":0.00272,"128":0.02989,"131":0.01087,"132":0.00272,"135":0.01087,"136":0.00543,"137":0.00543,"138":0.09781,"139":0.95095,"140":0.15487,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 125 126 127 129 130 133 134 141 142 143 3.5 3.6"},D:{"39":0.00272,"40":0.00272,"41":0.00272,"42":0.00272,"43":0.00543,"44":0.00272,"46":0.00272,"47":0.00272,"48":0.00272,"49":0.00272,"50":0.01902,"51":0.00272,"52":0.00272,"53":0.00272,"54":0.00272,"56":0.00272,"57":0.00272,"58":0.00272,"59":0.00272,"60":0.00272,"65":0.00272,"72":0.00272,"73":0.01902,"75":0.00272,"76":0.00272,"78":0.00272,"79":0.02717,"80":0.00272,"81":0.00272,"83":0.00543,"86":0.00272,"87":0.00815,"88":0.00815,"89":0.00272,"91":0.01087,"92":0.00272,"101":0.00272,"103":0.02445,"104":0.00543,"107":0.00272,"108":0.00272,"109":0.49721,"110":0.00272,"111":0.04076,"114":0.01902,"115":0.02989,"116":0.12227,"117":0.0163,"118":0.00543,"119":0.00543,"120":0.00815,"121":0.02174,"122":0.05706,"123":0.01359,"124":0.04076,"125":0.39397,"126":0.00815,"127":0.01902,"128":0.02989,"129":0.00815,"130":0.04076,"131":0.06793,"132":0.04076,"133":0.04076,"134":0.07336,"135":0.29344,"136":2.0622,"137":12.59058,"138":0.47548,"139":0.01902,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 45 55 61 62 63 64 66 67 68 69 70 71 74 77 84 85 90 93 94 95 96 97 98 99 100 102 105 106 112 113 140 141"},F:{"89":0.00815,"95":0.00543,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00272,"17":0.00272,"18":0.00272,"83":0.00272,"90":0.00815,"92":0.00272,"100":0.00272,"109":0.00272,"114":0.00543,"116":0.00272,"119":0.00272,"120":0.00272,"122":0.00272,"124":0.00272,"125":0.00272,"126":0.01087,"127":0.0163,"128":0.00272,"129":0.01087,"130":0.00543,"131":0.00815,"132":0.00815,"133":0.01087,"134":0.01359,"135":0.01087,"136":0.42657,"137":2.60289,"138":0.18204,_:"12 13 14 15 79 80 81 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 117 118 121 123"},E:{"14":0.00815,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1","13.1":0.01359,"14.1":0.01902,"15.2-15.3":0.00815,"15.4":0.01087,"15.5":0.00815,"15.6":0.04076,"16.0":0.00272,"16.1":0.01359,"16.2":0.00272,"16.3":0.00815,"16.4":0.00272,"16.5":0.01359,"16.6":0.07064,"17.0":0.00272,"17.1":0.01902,"17.2":0.00815,"17.3":0.00272,"17.4":0.02174,"17.5":0.02445,"17.6":0.13042,"18.0":0.0163,"18.1":0.02174,"18.2":0.0163,"18.3":0.06249,"18.4":0.05162,"18.5":0.69284,"26.0":0.00272},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00173,"5.0-5.1":0,"6.0-6.1":0.00346,"7.0-7.1":0.00346,"8.1-8.4":0,"9.0-9.2":0.00173,"9.3":0.01037,"10.0-10.2":0.00086,"10.3":0.01728,"11.0-11.2":0.11056,"11.3-11.4":0.00605,"12.0-12.1":0.00173,"12.2-12.5":0.05787,"13.0-13.1":0.00086,"13.2":0.00259,"13.3":0.00173,"13.4-13.7":0.0095,"14.0-14.4":0.02246,"14.5-14.8":0.02246,"15.0-15.1":0.01555,"15.2-15.3":0.01555,"15.4":0.019,"15.5":0.02073,"15.6-15.8":0.26777,"16.0":0.03541,"16.1":0.07256,"16.2":0.03714,"16.3":0.06824,"16.4":0.01555,"16.5":0.02764,"16.6-16.7":0.336,"17.0":0.01814,"17.1":0.03196,"17.2":0.02505,"17.3":0.03541,"17.4":0.06305,"17.5":0.13216,"17.6-17.7":0.34551,"18.0":0.08551,"18.1":0.19262,"18.2":0.10192,"18.3":0.43793,"18.4":0.4647,"18.5":5.44776,"26.0":0},P:{"4":0.02054,"21":0.01027,"22":0.1027,"23":0.04108,"24":0.06162,"25":0.07189,"26":0.07189,"27":0.15405,"28":3.35827,_:"20 5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 18.0","6.2-6.4":0.01027,"7.2-7.4":0.11297,"11.1-11.2":0.01027,"16.0":0.01027,"17.0":0.01027,"19.0":0.01027},I:{"0":0.20358,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.44426,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05162,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.04293},R:{_:"0"},M:{"0":0.37143},Q:{"14.9":0.03642},O:{"0":0.56079},H:{"0":0}}; +module.exports={C:{"20":0.0033,"34":0.0066,"52":0.0033,"73":0.0033,"78":0.0066,"80":0.0033,"88":0.0099,"112":0.0033,"114":0.033,"115":0.2178,"118":0.0033,"122":0.0033,"123":0.0132,"124":0.0363,"125":1.0131,"126":0.8778,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 79 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 116 117 119 120 121 127 128 129 3.5 3.6"},D:{"34":0.0033,"38":0.0231,"44":0.0033,"45":0.0033,"49":0.0132,"50":0.0066,"63":0.0033,"65":0.0033,"67":0.0165,"68":0.0033,"69":0.0033,"72":0.0033,"74":0.0033,"78":0.0792,"79":0.0231,"80":0.0066,"81":0.0231,"83":0.0165,"86":0.0066,"87":0.0429,"88":0.0198,"90":0.0033,"91":0.0165,"93":0.0066,"94":0.0297,"95":0.0066,"96":0.0033,"97":0.0033,"98":0.0033,"99":0.0165,"100":0.0066,"101":0.0033,"102":0.0528,"103":0.0396,"104":0.0099,"106":0.0066,"107":0.0132,"108":0.033,"109":1.3101,"110":0.0066,"111":0.0165,"112":0.0066,"113":0.0099,"114":0.0396,"115":0.0198,"116":0.099,"117":0.0198,"118":0.0066,"119":0.0297,"120":0.0825,"121":0.0759,"122":0.1815,"123":0.6435,"124":13.7841,"125":5.7024,"126":0.0099,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 46 47 48 51 52 53 54 55 56 57 58 59 60 61 62 64 66 70 71 73 75 76 77 84 85 89 92 105 127 128"},F:{"28":0.0165,"95":0.0099,"96":0.0033,"102":0.0033,"105":0.0033,"107":0.1155,"108":0.0066,"109":0.7458,"110":0.0363,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 97 98 99 100 101 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.0033,"16":0.0033,"17":0.0033,"18":0.0066,"92":0.0066,"99":0.0033,"100":0.0033,"109":0.0231,"110":0.0066,"111":0.0033,"114":0.0033,"115":0.0033,"116":0.0033,"119":0.0066,"120":0.0132,"121":0.0198,"122":0.0231,"123":0.0891,"124":2.1219,"125":1.353,_:"12 13 14 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 101 102 103 104 105 106 107 108 112 113 117 118"},E:{"14":0.033,"15":0.0066,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.0033,"13.1":0.0264,"14.1":0.0924,"15.1":0.0033,"15.2-15.3":0.0165,"15.4":0.0132,"15.5":0.0198,"15.6":0.1452,"16.0":0.0066,"16.1":0.1254,"16.2":0.0099,"16.3":0.0561,"16.4":0.0066,"16.5":0.0363,"16.6":0.1419,"17.0":0.0165,"17.1":0.0594,"17.2":0.0792,"17.3":0.0561,"17.4":0.8712,"17.5":0.198},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00196,"5.0-5.1":0.00196,"6.0-6.1":0.0049,"7.0-7.1":0.00686,"8.1-8.4":0.00196,"9.0-9.2":0.0049,"9.3":0.02253,"10.0-10.2":0.00392,"10.3":0.03527,"11.0-11.2":0.05192,"11.3-11.4":0.0098,"12.0-12.1":0.00588,"12.2-12.5":0.14205,"13.0-13.1":0.00294,"13.2":0.01372,"13.3":0.00686,"13.4-13.7":0.03135,"14.0-14.4":0.05388,"14.5-14.8":0.08327,"15.0-15.1":0.04017,"15.2-15.3":0.04409,"15.4":0.04996,"15.5":0.0627,"15.6-15.8":0.5643,"16.0":0.12834,"16.1":0.26452,"16.2":0.12834,"16.3":0.22239,"16.4":0.04702,"16.5":0.09503,"16.6-16.7":0.7573,"17.0":0.08229,"17.1":0.13422,"17.2":0.1401,"17.3":0.25864,"17.4":5.87322,"17.5":0.41441,"17.6":0},P:{"4":0.0923,"20":0.04102,"21":0.10255,"22":0.17434,"23":0.28714,"24":0.68709,"25":4.72756,"5.0-5.4":0.01026,"6.2-6.4":0.03077,"7.2-7.4":0.15383,_:"8.2 9.2 10.1","11.1-11.2":0.03077,"12.0":0.01026,"13.0":0.02051,"14.0":0.08204,"15.0":0.01026,"16.0":0.13332,"17.0":0.03077,"18.0":0.21536,"19.0":0.08204},I:{"0":0.07342,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.76402,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0165,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.06183},R:{_:"0"},M:{"0":0.52938},Q:{_:"14.9"},O:{"0":0.92474},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/MV.js b/node_modules/caniuse-lite/data/regions/MV.js index ddedc7091..1e7f6d492 100644 --- a/node_modules/caniuse-lite/data/regions/MV.js +++ b/node_modules/caniuse-lite/data/regions/MV.js @@ -1 +1 @@ -module.exports={C:{"110":0.00251,"115":0.01005,"116":0.00503,"124":0.00251,"128":0.00251,"132":0.00251,"133":0.00251,"134":0.00251,"135":0.00251,"136":0.00251,"137":0.00251,"138":0.06283,"139":0.68102,"140":0.15832,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 117 118 119 120 121 122 123 125 126 127 129 130 131 141 142 143 3.5 3.6"},D:{"39":0.00754,"40":0.00503,"41":0.00503,"42":0.00754,"43":0.00503,"44":0.00503,"45":0.00754,"46":0.00503,"47":0.00754,"48":0.00503,"49":0.00503,"50":0.00503,"51":0.00754,"52":0.00503,"53":0.00503,"54":0.00503,"55":0.00503,"56":0.00754,"57":0.00754,"58":0.00503,"59":0.00503,"60":0.00503,"70":0.00251,"78":0.00503,"83":0.01005,"87":0.00251,"89":0.00251,"91":0.00503,"97":0.00251,"101":0.00251,"103":0.00503,"104":0.01759,"109":0.16586,"110":0.04272,"111":0.00503,"112":0.00503,"114":0.00251,"115":0.00251,"116":0.00754,"117":0.00251,"119":0.00503,"120":0.00503,"121":0.00503,"122":0.02262,"123":0.0201,"124":0.00503,"125":0.45234,"126":0.01257,"127":0.01508,"128":0.07288,"129":0.02513,"130":0.01759,"131":0.08293,"132":0.03267,"133":0.14575,"134":0.06283,"135":0.14073,"136":2.04558,"137":12.12774,"138":0.47747,"139":0.00251,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 79 80 81 84 85 86 88 90 92 93 94 95 96 98 99 100 102 105 106 107 108 113 118 140 141"},F:{"89":0.03016,"90":0.04272,"95":0.00251,"117":0.01257,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00503,"92":0.00251,"100":0.00251,"114":0.00251,"118":0.00754,"119":0.00251,"122":0.00503,"126":0.00251,"127":0.00503,"128":0.00251,"129":0.01257,"130":0.01759,"131":0.02262,"132":0.03016,"133":0.00503,"134":0.00503,"135":0.01257,"136":0.31161,"137":1.4877,"138":0.11309,_:"12 13 14 15 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 120 121 123 124 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.5 16.2","14.1":0.00251,"15.4":0.00754,"15.6":0.01257,"16.0":0.00503,"16.1":0.02262,"16.3":0.02513,"16.4":0.00251,"16.5":0.00503,"16.6":0.04272,"17.0":0.00503,"17.1":0.02262,"17.2":0.00503,"17.3":0.01005,"17.4":0.02262,"17.5":0.04775,"17.6":0.08293,"18.0":0.01508,"18.1":0.05529,"18.2":0.02262,"18.3":0.06534,"18.4":0.07288,"18.5":0.69359,"26.0":0.01257},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00342,"5.0-5.1":0,"6.0-6.1":0.00683,"7.0-7.1":0.00683,"8.1-8.4":0,"9.0-9.2":0.00342,"9.3":0.0205,"10.0-10.2":0.00171,"10.3":0.03417,"11.0-11.2":0.21869,"11.3-11.4":0.01196,"12.0-12.1":0.00342,"12.2-12.5":0.11447,"13.0-13.1":0.00171,"13.2":0.00513,"13.3":0.00342,"13.4-13.7":0.01879,"14.0-14.4":0.04442,"14.5-14.8":0.04442,"15.0-15.1":0.03075,"15.2-15.3":0.03075,"15.4":0.03759,"15.5":0.041,"15.6-15.8":0.52965,"16.0":0.07005,"16.1":0.14352,"16.2":0.07347,"16.3":0.13497,"16.4":0.03075,"16.5":0.05467,"16.6-16.7":0.66462,"17.0":0.03588,"17.1":0.06322,"17.2":0.04955,"17.3":0.07005,"17.4":0.12472,"17.5":0.26141,"17.6-17.7":0.68341,"18.0":0.16914,"18.1":0.381,"18.2":0.20161,"18.3":0.86623,"18.4":0.91919,"18.5":10.77572,"26.0":0},P:{"22":0.0102,"23":0.0102,"24":0.0102,"25":0.0204,"26":0.0204,"27":0.08159,"28":1.14227,_:"4 20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.00747,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.86849,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.35711},R:{_:"0"},M:{"0":0.21712},Q:{_:"14.9"},O:{"0":0.54655},H:{"0":0}}; +module.exports={C:{"34":0.00245,"103":0.00735,"108":0.00245,"115":0.0147,"116":0.0049,"119":0.0049,"121":0.00245,"122":0.00245,"123":0.00245,"124":0.0196,"125":0.5684,"126":0.4557,"127":0.00245,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 109 110 111 112 113 114 117 118 120 128 129 3.5 3.6"},D:{"50":0.00245,"67":0.00245,"68":0.00245,"70":0.0147,"72":0.00245,"74":0.00245,"75":0.00245,"79":0.00735,"83":0.0686,"87":0.0098,"88":0.00735,"90":0.0098,"95":0.00245,"96":0.0049,"99":0.0049,"100":0.00245,"103":0.0294,"104":0.0049,"108":0.00245,"109":0.33075,"110":0.00245,"111":0.0049,"112":0.00735,"113":0.0049,"114":0.00245,"115":0.00245,"116":0.06615,"117":0.02205,"118":0.0098,"119":0.02695,"120":0.04655,"121":0.03675,"122":0.3822,"123":0.49735,"124":11.86045,"125":4.49575,"126":0.00245,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 69 71 73 76 77 78 80 81 84 85 86 89 91 92 93 94 97 98 101 102 105 106 107 127 128"},F:{"107":0.1372,"108":0.01715,"109":0.51205,"110":0.01225,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00245,"18":0.00245,"92":0.0049,"100":0.00245,"111":0.00245,"113":0.00245,"114":0.00245,"115":0.0196,"116":0.0049,"118":0.0049,"119":0.00735,"120":0.0294,"121":0.01715,"122":0.02695,"123":0.05145,"124":1.47,"125":0.83055,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 112 117"},E:{"13":0.00245,"14":0.0245,"15":0.01225,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.01225,"14.1":0.0441,"15.1":0.00735,"15.2-15.3":0.0098,"15.4":0.0049,"15.5":0.0196,"15.6":0.0539,"16.0":0.0098,"16.1":0.098,"16.2":0.00735,"16.3":0.0245,"16.4":0.0539,"16.5":0.0294,"16.6":0.0588,"17.0":0.01225,"17.1":0.05145,"17.2":0.08085,"17.3":0.0343,"17.4":0.41895,"17.5":0.0882},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00313,"5.0-5.1":0.00313,"6.0-6.1":0.00782,"7.0-7.1":0.01095,"8.1-8.4":0.00313,"9.0-9.2":0.00782,"9.3":0.03599,"10.0-10.2":0.00626,"10.3":0.05632,"11.0-11.2":0.08292,"11.3-11.4":0.01565,"12.0-12.1":0.00939,"12.2-12.5":0.22686,"13.0-13.1":0.00469,"13.2":0.0219,"13.3":0.01095,"13.4-13.7":0.05007,"14.0-14.4":0.08605,"14.5-14.8":0.13299,"15.0-15.1":0.06415,"15.2-15.3":0.07041,"15.4":0.07979,"15.5":0.10013,"15.6-15.8":0.90119,"16.0":0.20496,"16.1":0.42243,"16.2":0.20496,"16.3":0.35516,"16.4":0.0751,"16.5":0.15176,"16.6-16.7":1.20941,"17.0":0.13142,"17.1":0.21435,"17.2":0.22373,"17.3":0.41305,"17.4":9.37958,"17.5":0.66181,"17.6":0},P:{"4":0.03092,"20":0.03092,"21":0.02061,"22":0.07215,"23":0.04123,"24":0.27829,"25":1.50484,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 16.0 17.0","7.2-7.4":0.04123,"13.0":0.01031,"14.0":0.01031,"18.0":0.01031,"19.0":0.01031},I:{"0":0.04513,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":1.35918,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":55.84697},R:{_:"0"},M:{"0":0.62673},Q:{_:"14.9"},O:{"0":0.74755},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MW.js b/node_modules/caniuse-lite/data/regions/MW.js index a0a4e2ec5..d4f4c7b30 100644 --- a/node_modules/caniuse-lite/data/regions/MW.js +++ b/node_modules/caniuse-lite/data/regions/MW.js @@ -1 +1 @@ -module.exports={C:{"34":0.00261,"47":0.00261,"56":0.00261,"72":0.00261,"97":0.00783,"98":0.00261,"110":0.00261,"111":0.00783,"112":0.00783,"115":0.09132,"116":0.00261,"123":0.00261,"124":0.00261,"127":0.01044,"128":0.0287,"130":0.00261,"131":0.00261,"132":0.00261,"133":0.00261,"134":0.00261,"135":0.00522,"136":0.00783,"137":0.00783,"138":0.05479,"139":0.83749,"140":0.07566,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 99 100 101 102 103 104 105 106 107 108 109 113 114 117 118 119 120 121 122 125 126 129 141 142 143 3.5 3.6"},D:{"11":0.00783,"26":0.00522,"38":0.00522,"39":0.00261,"40":0.00783,"41":0.00261,"42":0.00261,"43":0.00783,"44":0.00261,"45":0.00261,"46":0.00261,"47":0.00261,"48":0.00261,"49":0.01044,"50":0.00522,"51":0.00261,"52":0.00783,"53":0.00261,"54":0.00261,"55":0.00261,"56":0.00261,"57":0.00522,"58":0.00261,"59":0.00261,"62":0.00261,"64":0.01565,"65":0.00522,"66":0.00522,"67":0.00261,"68":0.00261,"69":0.02087,"70":0.00783,"71":0.01044,"73":0.00522,"74":0.00261,"75":0.00261,"76":0.00261,"77":0.00261,"78":0.00261,"79":0.00783,"80":0.00261,"81":0.00522,"83":0.03131,"84":0.00261,"86":0.00261,"87":0.00261,"88":0.00783,"90":0.00522,"91":0.02087,"93":0.00783,"95":0.01826,"98":0.00261,"100":0.00522,"101":0.00261,"102":0.00783,"103":0.03131,"105":0.00522,"106":0.01565,"107":0.00261,"108":0.00522,"109":0.52963,"110":0.00522,"111":0.00783,"112":0.00522,"113":0.00261,"114":0.03392,"116":0.01826,"117":0.00261,"118":0.02348,"119":0.02348,"120":0.01565,"121":0.00783,"122":0.0287,"123":0.00522,"124":0.34178,"125":0.4044,"126":0.02087,"127":0.00783,"128":0.02087,"129":0.02087,"130":0.01826,"131":0.0574,"132":0.12262,"133":0.0861,"134":0.06783,"135":0.12262,"136":1.24971,"137":7.11474,"138":0.2322,"139":0.01044,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 60 61 63 72 85 89 92 94 96 97 99 104 115 140 141"},F:{"35":0.00261,"36":0.00522,"37":0.00522,"42":0.00261,"45":0.00261,"79":0.01044,"86":0.03392,"88":0.00261,"89":0.02348,"90":0.01044,"95":0.05479,"113":0.00261,"114":0.00261,"116":0.00261,"117":0.01305,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01826,"13":0.01826,"14":0.00783,"15":0.02087,"16":0.01305,"17":0.01044,"18":0.05218,"84":0.02609,"88":0.00261,"89":0.01305,"90":0.03131,"92":0.11219,"100":0.00783,"102":0.00783,"106":0.00261,"109":0.01565,"112":0.00261,"114":0.00783,"117":0.00783,"118":0.00261,"119":0.01565,"120":0.00261,"121":0.00522,"122":0.01565,"124":0.00783,"126":0.00261,"127":0.00522,"128":0.00261,"129":0.00783,"130":0.00261,"131":0.01826,"132":0.0287,"133":0.0287,"134":0.10175,"135":0.05479,"136":0.57398,"137":2.21765,"138":0.1435,_:"79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 103 104 105 107 108 110 111 113 115 116 123 125"},E:{"11":0.00261,"14":0.00522,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 9.1 10.1 11.1 15.2-15.3 16.0 16.2 16.3 16.4 16.5 17.0 17.2 26.0","7.1":0.01305,"12.1":0.00261,"13.1":0.00261,"14.1":0.01826,"15.1":0.00261,"15.4":0.00261,"15.5":0.0287,"15.6":0.01826,"16.1":0.00522,"16.6":0.00261,"17.1":0.00522,"17.3":0.01044,"17.4":0.0287,"17.5":0.00522,"17.6":0.01826,"18.0":0.01826,"18.1":0.00261,"18.2":0.00261,"18.3":0.01044,"18.4":0.07044,"18.5":0.22177},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00045,"5.0-5.1":0,"6.0-6.1":0.0009,"7.0-7.1":0.0009,"8.1-8.4":0,"9.0-9.2":0.00045,"9.3":0.0027,"10.0-10.2":0.00022,"10.3":0.00449,"11.0-11.2":0.02876,"11.3-11.4":0.00157,"12.0-12.1":0.00045,"12.2-12.5":0.01505,"13.0-13.1":0.00022,"13.2":0.00067,"13.3":0.00045,"13.4-13.7":0.00247,"14.0-14.4":0.00584,"14.5-14.8":0.00584,"15.0-15.1":0.00404,"15.2-15.3":0.00404,"15.4":0.00494,"15.5":0.00539,"15.6-15.8":0.06964,"16.0":0.00921,"16.1":0.01887,"16.2":0.00966,"16.3":0.01775,"16.4":0.00404,"16.5":0.00719,"16.6-16.7":0.08739,"17.0":0.00472,"17.1":0.00831,"17.2":0.00652,"17.3":0.00921,"17.4":0.0164,"17.5":0.03437,"17.6-17.7":0.08986,"18.0":0.02224,"18.1":0.0501,"18.2":0.02651,"18.3":0.1139,"18.4":0.12086,"18.5":1.41691,"26.0":0},P:{"4":0.2099,"21":0.0105,"22":0.03149,"23":0.02099,"24":0.07347,"25":0.04198,"26":0.05248,"27":0.13644,"28":0.38832,_:"20 8.2 9.2 10.1 12.0 14.0 15.0","5.0-5.4":0.0105,"6.2-6.4":0.02099,"7.2-7.4":0.12594,"11.1-11.2":0.0105,"13.0":0.03149,"16.0":0.02099,"17.0":0.03149,"18.0":0.0105,"19.0":0.02099},I:{"0":0.08853,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":3.58265,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00783,_:"6 7 8 9 10 5.5"},S:{"2.5":0.06651,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":71.86805},R:{_:"0"},M:{"0":0.12563},Q:{"14.9":0.01478},O:{"0":1.24152},H:{"0":1.11}}; +module.exports={C:{"18":0.00194,"42":0.00194,"47":0.00194,"52":0.00194,"69":0.00194,"71":0.00194,"77":0.00194,"78":0.00194,"80":0.00194,"94":0.00194,"99":0.00194,"100":0.00388,"102":0.00971,"104":0.00194,"109":0.00971,"111":0.00194,"113":0.03496,"115":0.17866,"116":0.00194,"121":0.00194,"122":0.01554,"123":0.01165,"124":0.02913,"125":0.67387,"126":0.39423,"127":0.00777,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 72 73 74 75 76 79 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 101 103 105 106 107 108 110 112 114 117 118 119 120 128 129 3.5 3.6"},D:{"11":0.00777,"25":0.00777,"31":0.00194,"32":0.00194,"33":0.00194,"34":0.00194,"36":0.00194,"37":0.00194,"38":0.00194,"40":0.00777,"42":0.00194,"43":0.00194,"46":0.00194,"48":0.00388,"49":0.00777,"50":0.01554,"55":0.00388,"56":0.00194,"57":0.00194,"58":0.00388,"62":0.00194,"63":0.00194,"64":0.00388,"65":0.00388,"66":0.00194,"68":0.00388,"69":0.01554,"70":0.00777,"71":0.00583,"74":0.00971,"76":0.00388,"77":0.00194,"78":0.00388,"79":0.00583,"80":0.00388,"81":0.00777,"83":0.00583,"84":0.00194,"85":0.00388,"86":0.00583,"87":0.00388,"88":0.01942,"90":0.00388,"91":0.00388,"92":0.00583,"93":0.00194,"94":0.00388,"95":0.00583,"97":0.00194,"98":0.00388,"99":0.01554,"100":0.00194,"102":0.01165,"103":0.04078,"104":0.00194,"105":0.01359,"106":0.00971,"107":0.00194,"108":0.00194,"109":0.63115,"110":0.00777,"111":0.01165,"112":0.00583,"113":0.00194,"114":0.01748,"115":0.01942,"116":0.0369,"117":0.03884,"118":0.02525,"119":0.02719,"120":0.04272,"121":0.02913,"122":0.10098,"123":0.20974,"124":4.55982,"125":1.92064,"126":0.00388,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 35 39 41 44 45 47 51 52 53 54 59 60 61 67 72 73 75 89 96 101 127 128"},F:{"29":0.00194,"34":0.00194,"36":0.00194,"37":0.00194,"42":0.02136,"46":0.00777,"79":0.01748,"80":0.00194,"82":0.00388,"86":0.00194,"95":0.05049,"103":0.00194,"104":0.00194,"107":0.01748,"108":0.03496,"109":0.5826,"110":0.08739,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 85 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 12.1","11.6":0.00194},B:{"12":0.01942,"13":0.02136,"14":0.00971,"15":0.01165,"16":0.01942,"17":0.01359,"18":0.134,"84":0.00971,"89":0.01748,"90":0.01748,"92":0.07574,"100":0.00777,"103":0.00388,"107":0.00777,"108":0.00388,"109":0.02136,"110":0.01165,"112":0.00971,"114":0.00388,"115":0.00583,"116":0.00194,"117":0.00583,"118":0.00583,"119":0.0233,"120":0.01748,"121":0.04661,"122":0.05826,"123":0.11458,"124":1.53612,"125":0.68553,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 111 113"},E:{"14":0.00971,"15":0.00388,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 16.0 16.3 16.4 17.6","5.1":0.01748,"11.1":0.00971,"12.1":0.00194,"13.1":0.00777,"14.1":0.00388,"15.1":0.00194,"15.2-15.3":0.00388,"15.4":0.00194,"15.5":0.00194,"15.6":0.02719,"16.1":0.00194,"16.2":0.00194,"16.5":0.01165,"16.6":0.02136,"17.0":0.00194,"17.1":0.00583,"17.2":0.02136,"17.3":0.00388,"17.4":0.0738,"17.5":0.01165},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00034,"5.0-5.1":0.00034,"6.0-6.1":0.00086,"7.0-7.1":0.00121,"8.1-8.4":0.00034,"9.0-9.2":0.00086,"9.3":0.00397,"10.0-10.2":0.00069,"10.3":0.00621,"11.0-11.2":0.00914,"11.3-11.4":0.00172,"12.0-12.1":0.00103,"12.2-12.5":0.025,"13.0-13.1":0.00052,"13.2":0.00241,"13.3":0.00121,"13.4-13.7":0.00552,"14.0-14.4":0.00948,"14.5-14.8":0.01466,"15.0-15.1":0.00707,"15.2-15.3":0.00776,"15.4":0.00879,"15.5":0.01104,"15.6-15.8":0.09933,"16.0":0.02259,"16.1":0.04656,"16.2":0.02259,"16.3":0.03914,"16.4":0.00828,"16.5":0.01673,"16.6-16.7":0.1333,"17.0":0.01449,"17.1":0.02362,"17.2":0.02466,"17.3":0.04552,"17.4":1.03378,"17.5":0.07294,"17.6":0},P:{"4":0.38507,"20":0.0304,"21":0.04053,"22":0.13174,"23":0.10134,"24":0.31414,"25":0.52694,"5.0-5.4":0.02027,"6.2-6.4":0.01013,"7.2-7.4":0.20267,_:"8.2 10.1 12.0","9.2":0.01013,"11.1-11.2":0.02027,"13.0":0.01013,"14.0":0.01013,"15.0":0.01013,"16.0":0.05067,"17.0":0.04053,"18.0":0.02027,"19.0":0.0608},I:{"0":0.1525,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00034},K:{"0":5.83313,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00627,"11":0.02091,_:"6 7 8 9 5.5"},S:{"2.5":0.14504,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":71.32763},R:{_:"0"},M:{"0":0.33844},Q:{"14.9":0.00806},O:{"0":1.56325},H:{"0":2.66}}; diff --git a/node_modules/caniuse-lite/data/regions/MX.js b/node_modules/caniuse-lite/data/regions/MX.js index 087e9a562..40d03db7f 100644 --- a/node_modules/caniuse-lite/data/regions/MX.js +++ b/node_modules/caniuse-lite/data/regions/MX.js @@ -1 +1 @@ -module.exports={C:{"3":0.00208,"4":0.00831,"48":0.00416,"52":0.00208,"66":0.00208,"78":0.00623,"83":0.01247,"99":0.01247,"101":0.00416,"112":0.00208,"115":0.08312,"120":0.00623,"122":0.00208,"123":0.00208,"125":0.00623,"127":0.00208,"128":0.02078,"132":0.00208,"133":0.00208,"134":0.00208,"135":0.00416,"136":0.00831,"137":0.00831,"138":0.03325,"139":0.55898,"140":0.08728,"141":0.00208,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 121 124 126 129 130 131 142 143 3.5 3.6"},D:{"29":0.00208,"39":0.00623,"40":0.00623,"41":0.00623,"42":0.00623,"43":0.00623,"44":0.00623,"45":0.00623,"46":0.00623,"47":0.00831,"48":0.00623,"49":0.01039,"50":0.00623,"51":0.00623,"52":0.01039,"53":0.00623,"54":0.00623,"55":0.00623,"56":0.00623,"57":0.00623,"58":0.00623,"59":0.00623,"60":0.00623,"66":0.00416,"74":0.00208,"75":0.00208,"76":0.00416,"78":0.00208,"79":0.01247,"80":0.00208,"84":0.00208,"85":0.00208,"87":0.02286,"88":0.00416,"90":0.00208,"91":0.00208,"93":0.00208,"94":0.00208,"96":0.00208,"99":0.00208,"101":0.00416,"102":0.00208,"103":0.0374,"104":0.01039,"105":0.00831,"106":0.00416,"107":0.00416,"108":0.01247,"109":0.52781,"110":0.00416,"111":0.03117,"112":0.00416,"113":0.00208,"114":0.02078,"115":0.00208,"116":0.06234,"118":0.00208,"119":0.00831,"120":0.01039,"121":0.01039,"122":0.06442,"123":0.0187,"124":0.02078,"125":0.39898,"126":0.02078,"127":0.01247,"128":0.06234,"129":0.00831,"130":0.01039,"131":0.04156,"132":0.02909,"133":0.06026,"134":0.80834,"135":0.12884,"136":1.20316,"137":8.46577,"138":0.35326,"139":0.00208,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 77 81 83 86 89 92 95 97 98 100 117 140 141"},F:{"89":0.00831,"90":0.00416,"95":0.01662,"102":0.00208,"114":0.00208,"116":0.00208,"117":0.00208,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00208,"92":0.00623,"99":0.00208,"100":0.00208,"102":0.00208,"109":0.02286,"114":0.00208,"120":0.00208,"121":0.00208,"122":0.00416,"123":0.00208,"124":0.00208,"125":0.00623,"126":0.00208,"127":0.00208,"128":0.00208,"129":0.00208,"130":0.00623,"131":0.01039,"132":0.00831,"133":0.00831,"134":0.15377,"135":0.02494,"136":0.38027,"137":2.1632,"138":0.17663,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 101 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119"},E:{"4":0.00208,"14":0.00208,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1","5.1":0.00416,"12.1":0.00208,"13.1":0.00831,"14.1":0.01247,"15.2-15.3":0.00208,"15.4":0.00416,"15.5":0.00208,"15.6":0.04779,"16.0":0.00623,"16.1":0.00623,"16.2":0.00416,"16.3":0.00831,"16.4":0.00416,"16.5":0.01247,"16.6":0.04779,"17.0":0.00416,"17.1":0.02701,"17.2":0.01247,"17.3":0.00623,"17.4":0.0187,"17.5":0.02286,"17.6":0.07273,"18.0":0.01039,"18.1":0.01662,"18.2":0.01039,"18.3":0.03948,"18.4":0.04364,"18.5":0.39898,"26.0":0.00208},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00135,"5.0-5.1":0,"6.0-6.1":0.00269,"7.0-7.1":0.00269,"8.1-8.4":0,"9.0-9.2":0.00135,"9.3":0.00807,"10.0-10.2":0.00067,"10.3":0.01345,"11.0-11.2":0.0861,"11.3-11.4":0.00471,"12.0-12.1":0.00135,"12.2-12.5":0.04507,"13.0-13.1":0.00067,"13.2":0.00202,"13.3":0.00135,"13.4-13.7":0.0074,"14.0-14.4":0.01749,"14.5-14.8":0.01749,"15.0-15.1":0.01211,"15.2-15.3":0.01211,"15.4":0.0148,"15.5":0.01614,"15.6-15.8":0.20853,"16.0":0.02758,"16.1":0.0565,"16.2":0.02892,"16.3":0.05314,"16.4":0.01211,"16.5":0.02153,"16.6-16.7":0.26167,"17.0":0.01413,"17.1":0.02489,"17.2":0.01951,"17.3":0.02758,"17.4":0.0491,"17.5":0.10292,"17.6-17.7":0.26907,"18.0":0.06659,"18.1":0.15,"18.2":0.07937,"18.3":0.34104,"18.4":0.36189,"18.5":4.24248,"26.0":0},P:{"4":0.02179,"26":0.01089,"27":0.02179,"28":0.35951,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02179},I:{"0":0.2531,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.09508,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01035,"9":0.00259,"10":0.00259,"11":0.11124,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.19771},R:{_:"0"},M:{"0":0.11885},Q:{_:"14.9"},O:{"0":0.02377},H:{"0":0}}; +module.exports={C:{"4":0.00871,"34":0.00435,"39":0.00435,"48":0.00435,"52":0.01306,"59":0.01306,"66":0.00435,"78":0.01742,"82":0.00435,"88":0.00871,"102":0.02612,"103":0.00435,"108":0.00435,"109":0.00435,"110":0.00435,"112":0.00435,"113":0.01306,"114":0.00435,"115":0.26559,"116":0.00435,"117":0.02177,"118":0.00435,"120":0.01306,"121":0.00435,"122":0.00871,"123":0.01306,"124":0.03483,"125":0.76195,"126":0.73147,"127":0.00871,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 111 119 128 129 3.5 3.6"},D:{"38":0.00435,"49":0.01306,"52":0.00871,"63":0.00435,"65":0.00435,"66":0.05225,"67":0.00435,"70":0.00435,"71":0.00871,"74":0.00435,"75":0.00435,"76":0.00435,"77":0.00435,"78":0.00435,"79":0.03048,"80":0.04789,"81":0.00435,"84":0.00435,"85":0.00435,"86":0.00435,"87":0.0566,"88":0.01742,"89":0.00435,"90":0.00435,"91":0.03919,"92":0.00435,"93":0.02612,"94":0.01306,"95":0.00871,"96":0.00871,"97":0.01742,"98":0.01306,"99":0.02612,"100":0.00871,"101":0.00435,"102":0.01306,"103":0.1045,"104":0.00871,"105":0.00871,"106":0.01742,"107":0.02612,"108":0.01742,"109":2.24666,"110":0.01742,"111":0.02177,"112":0.03483,"113":0.06966,"114":0.08273,"115":0.05225,"116":0.21335,"117":0.01742,"118":0.02177,"119":0.06531,"120":0.1045,"121":0.13497,"122":0.4354,"123":0.7576,"124":17.02849,"125":7.11444,"126":0.01306,"127":0.00435,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 64 68 69 72 73 83 128"},F:{"46":0.00435,"89":0.00435,"95":0.06096,"102":0.00435,"107":0.40057,"108":0.02177,"109":1.49342,"110":0.0566,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00435,"17":0.00871,"18":0.00435,"92":0.01742,"99":0.00435,"100":0.00435,"108":0.00435,"109":0.07837,"110":0.00435,"112":0.00435,"113":0.00871,"114":0.00871,"115":0.00435,"116":0.00435,"117":0.00435,"118":0.00435,"119":0.01306,"120":0.03048,"121":0.03048,"122":0.04789,"123":0.28736,"124":3.37,"125":1.96801,_:"13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 101 102 103 104 105 106 107 111"},E:{"8":0.00435,"13":0.00435,"14":0.01306,"15":0.00435,_:"0 4 5 6 7 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.02612,"11.1":0.00871,"12.1":0.00871,"13.1":0.0566,"14.1":0.06096,"15.1":0.00871,"15.2-15.3":0.00435,"15.4":0.01742,"15.5":0.01742,"15.6":0.15674,"16.0":0.01742,"16.1":0.03483,"16.2":0.02612,"16.3":0.06531,"16.4":0.01742,"16.5":0.03919,"16.6":0.19158,"17.0":0.02612,"17.1":0.0566,"17.2":0.06531,"17.3":0.06966,"17.4":0.93176,"17.5":0.14804},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00213,"5.0-5.1":0.00213,"6.0-6.1":0.00533,"7.0-7.1":0.00747,"8.1-8.4":0.00213,"9.0-9.2":0.00533,"9.3":0.02453,"10.0-10.2":0.00427,"10.3":0.0384,"11.0-11.2":0.05653,"11.3-11.4":0.01067,"12.0-12.1":0.0064,"12.2-12.5":0.15465,"13.0-13.1":0.0032,"13.2":0.01493,"13.3":0.00747,"13.4-13.7":0.03413,"14.0-14.4":0.05866,"14.5-14.8":0.09065,"15.0-15.1":0.04373,"15.2-15.3":0.04799,"15.4":0.05439,"15.5":0.06826,"15.6-15.8":0.61432,"16.0":0.13972,"16.1":0.28796,"16.2":0.13972,"16.3":0.2421,"16.4":0.05119,"16.5":0.10345,"16.6-16.7":0.82443,"17.0":0.08959,"17.1":0.14611,"17.2":0.15251,"17.3":0.28156,"17.4":6.39384,"17.5":0.45114,"17.6":0},P:{"4":0.07367,"20":0.01052,"21":0.01052,"22":0.02105,"23":0.03157,"24":0.05262,"25":0.79987,_:"5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 18.0","6.2-6.4":0.01052,"7.2-7.4":0.03157,"11.1-11.2":0.01052,"16.0":0.01052,"17.0":0.01052,"19.0":0.01052},I:{"0":0.06749,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.23713,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00479,"11":0.091,_:"6 7 9 10 5.5"},S:{"2.5":0.01129,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.63527},R:{_:"0"},M:{"0":0.22584},Q:{_:"14.9"},O:{"0":0.03952},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MY.js b/node_modules/caniuse-lite/data/regions/MY.js index 3dd7a746c..786d5bebe 100644 --- a/node_modules/caniuse-lite/data/regions/MY.js +++ b/node_modules/caniuse-lite/data/regions/MY.js @@ -1 +1 @@ -module.exports={C:{"52":0.00454,"102":0.00454,"115":0.12704,"125":0.00454,"127":0.00454,"128":0.04537,"131":0.00454,"132":0.00454,"133":0.00454,"134":0.00454,"135":0.00454,"136":0.01361,"137":0.00907,"138":0.07713,"139":1.00268,"140":0.15426,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 141 142 143 3.5 3.6"},D:{"49":0.00454,"55":0.00454,"58":0.00454,"65":0.00454,"66":0.01361,"68":0.00454,"70":0.00454,"73":0.00454,"74":0.00454,"75":0.00454,"76":0.00454,"78":0.00454,"79":0.02269,"81":0.01361,"83":0.00454,"85":0.00454,"86":0.03176,"87":0.02722,"88":0.00454,"89":0.00454,"90":0.00454,"91":0.06806,"92":0.00907,"93":0.03176,"94":0.00454,"98":0.01361,"99":0.01361,"100":0.0363,"101":0.00454,"102":0.0363,"103":1.66054,"104":0.00454,"105":0.12704,"106":0.00454,"107":0.00454,"108":0.01361,"109":1.26129,"110":0.00454,"111":0.02269,"112":0.00454,"113":0.00454,"114":0.07713,"115":0.00454,"116":0.46277,"117":0.00907,"118":0.05444,"119":0.02722,"120":0.03176,"121":0.02722,"122":0.18148,"123":0.03176,"124":0.01815,"125":0.38111,"126":0.18148,"127":0.04991,"128":0.10435,"129":0.05444,"130":0.04991,"131":0.13157,"132":0.21324,"133":0.11796,"134":0.22231,"135":0.29944,"136":2.7222,"137":23.32018,"138":0.97546,"139":0.01815,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 56 57 59 60 61 62 63 64 67 69 71 72 77 80 84 95 96 97 140 141"},F:{"36":0.00454,"46":0.00454,"89":0.04991,"90":0.02722,"95":0.02722,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00454,"109":0.01815,"114":0.00454,"118":0.00454,"119":0.00454,"120":0.00907,"122":0.00454,"126":0.00454,"127":0.00454,"128":0.00454,"129":0.00454,"130":0.00454,"131":0.01815,"132":0.00907,"133":0.00907,"134":0.01815,"135":0.05444,"136":0.4174,"137":2.83563,"138":0.2087,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 121 123 124 125"},E:{"14":0.00454,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 26.0","13.1":0.00454,"14.1":0.01815,"15.1":0.00454,"15.4":0.00454,"15.5":0.00454,"15.6":0.06806,"16.0":0.01361,"16.1":0.02269,"16.2":0.00907,"16.3":0.01815,"16.4":0.00454,"16.5":0.01815,"16.6":0.09528,"17.0":0.00907,"17.1":0.04083,"17.2":0.01361,"17.3":0.02722,"17.4":0.03176,"17.5":0.07259,"17.6":0.10435,"18.0":0.04537,"18.1":0.04083,"18.2":0.01815,"18.3":0.13157,"18.4":0.09981,"18.5":0.93462},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00268,"5.0-5.1":0,"6.0-6.1":0.00536,"7.0-7.1":0.00536,"8.1-8.4":0,"9.0-9.2":0.00268,"9.3":0.01608,"10.0-10.2":0.00134,"10.3":0.0268,"11.0-11.2":0.17153,"11.3-11.4":0.00938,"12.0-12.1":0.00268,"12.2-12.5":0.08978,"13.0-13.1":0.00134,"13.2":0.00402,"13.3":0.00268,"13.4-13.7":0.01474,"14.0-14.4":0.03484,"14.5-14.8":0.03484,"15.0-15.1":0.02412,"15.2-15.3":0.02412,"15.4":0.02948,"15.5":0.03216,"15.6-15.8":0.41542,"16.0":0.05494,"16.1":0.11257,"16.2":0.05762,"16.3":0.10587,"16.4":0.02412,"16.5":0.04288,"16.6-16.7":0.52129,"17.0":0.02814,"17.1":0.04958,"17.2":0.03886,"17.3":0.05494,"17.4":0.09783,"17.5":0.20503,"17.6-17.7":0.53603,"18.0":0.13267,"18.1":0.29884,"18.2":0.15813,"18.3":0.67942,"18.4":0.72096,"18.5":8.45185,"26.0":0},P:{"4":0.04194,"21":0.01048,"22":0.01048,"23":0.01048,"24":0.01048,"25":0.02097,"26":0.02097,"27":0.09436,"28":1.17422,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03145},I:{"0":0.09817,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.66102,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04991,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":41.44689},R:{_:"0"},M:{"0":0.24037},Q:{"14.9":0.01093},O:{"0":0.73751},H:{"0":0}}; +module.exports={C:{"34":0.00409,"39":0.01226,"52":0.00817,"78":0.00409,"83":0.00409,"88":0.00409,"110":0.00409,"113":0.00409,"114":0.00409,"115":0.24107,"118":0.00409,"119":0.00409,"120":0.00409,"121":0.00817,"122":0.00409,"123":0.01226,"124":0.02043,"125":0.60881,"126":0.54752,"127":0.00409,"128":0.00409,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 116 117 129 3.5 3.6"},D:{"29":0.02043,"34":0.00409,"38":0.02043,"47":0.00409,"49":0.01226,"53":0.00409,"55":0.02043,"56":0.00409,"62":0.00409,"65":0.00409,"66":0.00409,"68":0.00409,"70":0.00409,"72":0.00409,"73":0.00409,"74":0.00817,"75":0.01226,"76":0.00409,"78":0.00409,"79":0.06946,"80":0.00409,"81":0.02043,"83":0.00409,"84":0.00409,"85":0.00817,"86":0.03269,"87":0.06946,"88":0.01226,"89":0.02452,"90":0.00409,"91":0.02043,"92":0.00409,"93":0.01226,"94":0.02043,"95":0.00409,"96":0.00817,"97":0.0286,"98":0.01634,"99":0.07763,"100":0.00409,"101":0.00409,"102":0.04086,"103":0.47806,"104":0.00817,"105":0.04086,"106":0.00817,"107":0.01634,"108":0.02452,"109":1.86322,"110":0.01226,"111":0.02043,"112":0.02452,"113":0.01634,"114":0.0286,"115":0.02043,"116":0.16344,"117":0.03677,"118":0.0286,"119":0.07763,"120":0.12667,"121":0.11441,"122":0.29011,"123":0.66193,"124":18.02335,"125":6.96663,"126":0.01634,"127":0.00409,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 54 57 58 59 60 61 63 64 67 69 71 77 128"},F:{"28":0.01634,"36":0.01226,"46":0.02043,"95":0.01634,"107":0.10624,"108":0.00817,"109":0.44537,"110":0.02452,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00409,"107":0.00409,"109":0.03269,"114":0.00409,"116":0.00409,"117":0.00409,"118":0.00409,"119":0.00409,"120":0.01226,"121":0.00817,"122":0.02452,"123":0.0572,"124":2.08386,"125":1.09913,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 115"},E:{"13":0.00409,"14":0.04086,"15":0.00817,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00409,"13.1":0.02043,"14.1":0.11032,"15.1":0.02043,"15.2-15.3":0.01634,"15.4":0.03269,"15.5":0.06946,"15.6":0.26968,"16.0":0.0286,"16.1":0.06946,"16.2":0.04903,"16.3":0.1471,"16.4":0.03269,"16.5":0.06946,"16.6":0.33914,"17.0":0.04903,"17.1":0.08581,"17.2":0.10215,"17.3":0.11849,"17.4":2.00214,"17.5":0.15118},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00278,"5.0-5.1":0.00278,"6.0-6.1":0.00695,"7.0-7.1":0.00974,"8.1-8.4":0.00278,"9.0-9.2":0.00695,"9.3":0.03199,"10.0-10.2":0.00556,"10.3":0.05007,"11.0-11.2":0.07371,"11.3-11.4":0.01391,"12.0-12.1":0.00834,"12.2-12.5":0.20166,"13.0-13.1":0.00417,"13.2":0.01947,"13.3":0.00974,"13.4-13.7":0.0445,"14.0-14.4":0.07649,"14.5-14.8":0.11821,"15.0-15.1":0.05702,"15.2-15.3":0.06258,"15.4":0.07093,"15.5":0.08901,"15.6-15.8":0.80106,"16.0":0.18219,"16.1":0.3755,"16.2":0.18219,"16.3":0.3157,"16.4":0.06676,"16.5":0.1349,"16.6-16.7":1.07504,"17.0":0.11682,"17.1":0.19053,"17.2":0.19888,"17.3":0.36715,"17.4":8.33747,"17.5":0.58828,"17.6":0},P:{"4":0.25683,"20":0.0107,"21":0.0321,"22":0.06421,"23":0.08561,"24":0.17122,"25":1.46605,"5.0-5.4":0.0214,"6.2-6.4":0.0107,"7.2-7.4":0.0321,_:"8.2 9.2 10.1 12.0 13.0 14.0 15.0 18.0","11.1-11.2":0.0107,"16.0":0.0107,"17.0":0.0107,"19.0":0.0107},I:{"0":0.02945,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.80417,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00706,"11":0.07058,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.2583},R:{_:"0"},M:{"0":0.31339},Q:{"14.9":0.00591},O:{"0":0.94017},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/MZ.js b/node_modules/caniuse-lite/data/regions/MZ.js index d674a9979..c1a22926e 100644 --- a/node_modules/caniuse-lite/data/regions/MZ.js +++ b/node_modules/caniuse-lite/data/regions/MZ.js @@ -1 +1 @@ -module.exports={C:{"52":0.00296,"68":0.00296,"78":0.00296,"88":0.00296,"90":0.01183,"91":0.00296,"109":0.01775,"111":0.00296,"113":0.04733,"115":0.21593,"124":0.01775,"127":0.00592,"128":0.02071,"133":0.00296,"135":0.00592,"136":0.00887,"137":0.02071,"138":0.05324,"139":0.77204,"140":0.10353,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 114 116 117 118 119 120 121 122 123 125 126 129 130 131 132 134 141 142 143 3.5 3.6"},D:{"11":0.00296,"39":0.00296,"40":0.00592,"41":0.00592,"42":0.00296,"43":0.01183,"44":0.00296,"45":0.00296,"46":0.01183,"47":0.00296,"48":0.00296,"49":0.00592,"50":0.00592,"51":0.00296,"52":0.00296,"53":0.00592,"54":0.00296,"55":0.00592,"56":0.00592,"57":0.00296,"58":0.00296,"59":0.00296,"60":0.00296,"62":0.00296,"65":0.00887,"69":0.00296,"70":0.02071,"71":0.00296,"72":0.00296,"73":0.00887,"74":0.00592,"75":0.00296,"76":0.00296,"78":0.00592,"79":0.01479,"81":0.00887,"83":0.00887,"85":0.00887,"86":0.01775,"87":0.01183,"88":0.00887,"90":0.00592,"91":0.00296,"92":0.00592,"93":0.00296,"94":0.00296,"95":0.00592,"96":0.00296,"98":0.00592,"99":0.00592,"100":0.00296,"101":0.00296,"102":0.00296,"103":0.01183,"104":0.02071,"105":0.00296,"106":0.02366,"107":0.00592,"108":0.01183,"109":1.24532,"110":0.01183,"111":0.04141,"112":0.00887,"113":0.00296,"114":0.45849,"115":0.00296,"116":0.05324,"117":0.00592,"118":0.01183,"119":0.01479,"120":0.01775,"121":0.01479,"122":0.04437,"123":0.01775,"124":0.37271,"125":0.84007,"126":0.02366,"127":0.00887,"128":0.04141,"129":0.01183,"130":0.02071,"131":0.05916,"132":0.04141,"133":0.06212,"134":0.05324,"135":0.15382,"136":1.48787,"137":9.28516,"138":0.3313,"139":0.00296,_:"4 5 6 7 8 9 10 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 61 63 64 66 67 68 77 80 84 89 97 140 141"},F:{"34":0.00296,"42":0.00296,"46":0.00592,"79":0.00887,"86":0.00296,"87":0.00296,"88":0.00296,"89":0.01479,"90":0.01183,"95":0.05324,"101":0.00296,"107":0.00296,"108":0.00296,"113":0.00296,"114":0.00296,"116":0.00296,"117":0.00592,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 91 92 93 94 96 97 98 99 100 102 103 104 105 106 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02366,"13":0.00296,"14":0.01479,"15":0.00296,"16":0.00887,"17":0.00887,"18":0.05916,"84":0.01775,"89":0.01775,"90":0.01479,"91":0.02071,"92":0.12424,"100":0.02071,"102":0.00592,"109":0.01775,"111":0.00296,"112":0.00296,"114":0.03845,"116":0.00592,"119":0.00296,"120":0.00296,"121":0.00296,"122":0.03254,"123":0.00887,"124":0.00296,"125":0.00296,"126":0.00887,"127":0.00296,"128":0.00592,"129":0.00887,"130":0.00592,"131":0.01479,"132":0.01775,"133":0.01775,"134":0.06508,"135":0.0562,"136":0.78091,"137":3.16802,"138":0.13903,_:"79 80 81 83 85 86 87 88 93 94 95 96 97 98 99 101 103 104 105 106 107 108 110 113 115 117 118"},E:{"11":0.00296,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 16.4","5.1":0.00296,"11.1":0.00296,"13.1":0.04437,"14.1":0.00887,"15.6":0.06803,"16.0":0.00592,"16.1":0.00296,"16.3":0.00296,"16.5":0.00592,"16.6":0.08282,"17.0":0.00592,"17.1":0.00296,"17.2":0.00296,"17.3":0.01479,"17.4":0.00887,"17.5":0.00887,"17.6":0.04437,"18.0":0.01183,"18.1":0.01479,"18.2":0.00592,"18.3":0.02662,"18.4":0.02662,"18.5":0.28693,"26.0":0.00296},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00115,"5.0-5.1":0,"6.0-6.1":0.0023,"7.0-7.1":0.0023,"8.1-8.4":0,"9.0-9.2":0.00115,"9.3":0.00689,"10.0-10.2":0.00057,"10.3":0.01148,"11.0-11.2":0.07346,"11.3-11.4":0.00402,"12.0-12.1":0.00115,"12.2-12.5":0.03845,"13.0-13.1":0.00057,"13.2":0.00172,"13.3":0.00115,"13.4-13.7":0.00631,"14.0-14.4":0.01492,"14.5-14.8":0.01492,"15.0-15.1":0.01033,"15.2-15.3":0.01033,"15.4":0.01263,"15.5":0.01377,"15.6-15.8":0.17792,"16.0":0.02353,"16.1":0.04821,"16.2":0.02468,"16.3":0.04534,"16.4":0.01033,"16.5":0.01837,"16.6-16.7":0.22326,"17.0":0.01205,"17.1":0.02124,"17.2":0.01664,"17.3":0.02353,"17.4":0.0419,"17.5":0.08781,"17.6-17.7":0.22957,"18.0":0.05682,"18.1":0.12798,"18.2":0.06772,"18.3":0.29098,"18.4":0.30877,"18.5":3.61973,"26.0":0},P:{"4":0.03064,"20":0.01021,"21":0.03064,"22":0.0715,"23":0.03064,"24":0.18385,"25":0.08171,"26":0.05107,"27":0.27577,"28":1.46057,"5.0-5.4":0.03064,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 18.0","7.2-7.4":0.14299,"11.1-11.2":0.01021,"13.0":0.01021,"16.0":0.02043,"17.0":0.01021,"19.0":0.02043},I:{"0":0.02812,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":4.7436,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00444,"11":0.01331,_:"6 7 9 10 5.5"},S:{"2.5":0.17605,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.82953},R:{_:"0"},M:{"0":0.17605},Q:{"14.9":0.00704},O:{"0":0.40139},H:{"0":0.89}}; +module.exports={C:{"68":0.00256,"84":0.00256,"100":0.00256,"103":0.00256,"107":0.00256,"113":0.01534,"115":0.13802,"118":0.00256,"120":0.00511,"121":0.00256,"123":0.00256,"124":0.01278,"125":0.28883,"126":0.20448,"127":0.00256,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 104 105 106 108 109 110 111 112 114 116 117 119 122 128 129 3.5 3.6"},D:{"11":0.00256,"39":0.00511,"40":0.00256,"43":0.00511,"49":0.00256,"50":0.00256,"56":0.00767,"58":0.00256,"59":0.00256,"63":0.00256,"64":0.00256,"68":0.00256,"70":0.01022,"73":0.00256,"74":0.01022,"76":0.00256,"77":0.00256,"79":0.00256,"81":0.02556,"84":0.00511,"85":0.00511,"86":0.00256,"87":0.02045,"88":0.00511,"90":0.03578,"91":0.08946,"92":0.01534,"93":0.00256,"94":0.03578,"95":0.01022,"96":0.00256,"98":0.01534,"99":0.00511,"100":0.00511,"101":0.00511,"102":0.05368,"103":0.02045,"104":0.04856,"105":0.00767,"106":0.01534,"107":0.00256,"108":0.00511,"109":1.73041,"110":0.00256,"111":0.03834,"112":0.00256,"113":0.01022,"114":0.06646,"116":0.03323,"117":0.00511,"118":0.02812,"119":0.01278,"120":0.04345,"121":0.06901,"122":0.07412,"123":0.22748,"124":5.34204,"125":1.80454,"126":0.00511,_:"4 5 6 7 8 9 10 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 41 42 44 45 46 47 48 51 52 53 54 55 57 60 61 62 65 66 67 69 71 72 75 78 80 83 89 97 115 127 128"},F:{"46":0.00256,"79":0.09713,"85":0.02556,"95":0.09202,"106":0.00767,"107":0.01534,"108":0.00767,"109":0.48053,"110":0.02812,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01278,"13":0.00256,"14":0.00256,"15":0.00256,"16":0.00256,"17":0.00256,"18":0.01534,"81":0.00511,"84":0.00256,"89":0.00256,"90":0.00256,"92":0.02556,"100":0.00767,"102":0.02045,"105":0.00256,"109":0.03067,"112":0.00511,"114":0.00767,"116":0.023,"117":0.03323,"118":0.00256,"119":0.01022,"120":0.00767,"121":0.01022,"122":0.05623,"123":0.05368,"124":1.21921,"125":0.60577,_:"79 80 83 85 86 87 88 91 93 94 95 96 97 98 99 101 103 104 106 107 108 110 111 113 115"},E:{"13":0.00256,"14":0.00256,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 17.6","13.1":0.01789,"14.1":0.00511,"15.6":0.02556,"16.1":0.00256,"16.2":0.00511,"16.3":0.00511,"16.4":0.00256,"16.5":0.00256,"16.6":0.01278,"17.0":0.00256,"17.1":0.00511,"17.2":0.00256,"17.3":0.01022,"17.4":0.05112,"17.5":0.01022},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00081,"5.0-5.1":0.00081,"6.0-6.1":0.00203,"7.0-7.1":0.00285,"8.1-8.4":0.00081,"9.0-9.2":0.00203,"9.3":0.00935,"10.0-10.2":0.00163,"10.3":0.01463,"11.0-11.2":0.02154,"11.3-11.4":0.00406,"12.0-12.1":0.00244,"12.2-12.5":0.05893,"13.0-13.1":0.00122,"13.2":0.00569,"13.3":0.00285,"13.4-13.7":0.01301,"14.0-14.4":0.02235,"14.5-14.8":0.03455,"15.0-15.1":0.01666,"15.2-15.3":0.01829,"15.4":0.02073,"15.5":0.02601,"15.6-15.8":0.23411,"16.0":0.05324,"16.1":0.10974,"16.2":0.05324,"16.3":0.09226,"16.4":0.01951,"16.5":0.03942,"16.6-16.7":0.31418,"17.0":0.03414,"17.1":0.05568,"17.2":0.05812,"17.3":0.1073,"17.4":2.43662,"17.5":0.17193,"17.6":0},P:{"4":0.15375,"20":0.03075,"21":0.03075,"22":0.082,"23":0.07175,"24":0.21525,"25":0.32799,_:"5.0-5.4 8.2 9.2 11.1-11.2","6.2-6.4":0.01025,"7.2-7.4":0.123,"10.1":0.01025,"12.0":0.07175,"13.0":0.0205,"14.0":0.03075,"15.0":0.03075,"16.0":0.0205,"17.0":0.0205,"18.0":0.0205,"19.0":0.0615},I:{"0":0.00741,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":2.57344,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01789,_:"6 7 8 9 10 5.5"},S:{"2.5":0.36476,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.10973},R:{_:"0"},M:{"0":0.067},Q:{"14.9":0.00744},O:{"0":0.12655},H:{"0":1.29}}; diff --git a/node_modules/caniuse-lite/data/regions/NA.js b/node_modules/caniuse-lite/data/regions/NA.js index 1ca9440aa..efdd3288a 100644 --- a/node_modules/caniuse-lite/data/regions/NA.js +++ b/node_modules/caniuse-lite/data/regions/NA.js @@ -1 +1 @@ -module.exports={C:{"36":0.00355,"50":0.00355,"52":0.00355,"100":0.00355,"111":0.00355,"112":0.00355,"115":0.09926,"127":0.01418,"128":0.03545,"131":0.00355,"132":0.00355,"133":0.00355,"134":0.00709,"136":0.01418,"137":0.00355,"138":0.03545,"139":1.08123,"140":0.09572,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 135 141 142 143 3.5 3.6"},D:{"11":0.00355,"39":0.00355,"40":0.00355,"41":0.01064,"42":0.01064,"43":0.01064,"44":0.01064,"45":0.00709,"46":0.00355,"47":0.01418,"48":0.00709,"49":0.03191,"50":0.00709,"51":0.00709,"52":0.00709,"53":0.00709,"54":0.00709,"55":0.00709,"56":0.00709,"57":0.01064,"58":0.00709,"59":0.00709,"60":0.00709,"61":0.00709,"69":0.00355,"71":0.00355,"74":0.01064,"75":0.00709,"78":0.00355,"79":0.039,"80":0.00355,"83":0.00355,"85":0.00355,"86":0.00355,"88":0.00355,"90":0.00355,"91":0.00709,"93":0.01773,"95":0.00355,"97":0.00355,"98":0.00709,"99":0.00355,"100":0.04254,"103":0.01064,"104":0.06736,"106":0.01064,"108":0.00355,"109":0.69128,"110":0.00355,"111":0.04609,"112":0.00355,"114":0.01773,"115":0.00355,"116":0.02836,"118":0.03191,"119":0.03545,"120":0.00709,"121":0.00709,"122":0.02127,"123":0.00709,"124":0.10635,"125":0.56011,"126":0.01773,"127":0.02836,"128":0.12053,"129":0.01064,"130":0.01064,"131":0.06381,"132":0.02836,"133":0.03545,"134":0.18789,"135":0.1808,"136":1.68033,"137":11.76231,"138":0.75154,_:"4 5 6 7 8 9 10 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 62 63 64 65 66 67 68 70 72 73 76 77 81 84 87 89 92 94 96 101 102 105 107 113 117 139 140 141"},F:{"36":0.00355,"46":0.00355,"73":0.00355,"79":0.00355,"89":0.01773,"90":0.30842,"95":0.01418,"113":0.00355,"114":0.01773,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00355,"13":0.00709,"14":0.00355,"15":0.00355,"16":0.01418,"17":0.01064,"18":0.02127,"83":0.00709,"84":0.00355,"89":0.00355,"90":0.01773,"92":0.06381,"100":0.01418,"104":0.00355,"106":0.00355,"109":0.039,"110":0.00355,"114":0.00355,"115":0.37577,"119":0.00709,"120":0.00355,"122":0.03191,"124":0.00355,"125":0.00709,"126":0.00355,"127":0.00355,"128":0.01064,"129":0.02482,"130":0.00709,"131":0.03191,"132":0.00709,"133":0.01064,"134":0.05672,"135":0.05672,"136":0.91816,"137":4.14411,"138":0.27651,_:"79 80 81 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 105 107 108 111 112 113 116 117 118 121 123"},E:{"13":0.00355,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 26.0","13.1":0.01418,"14.1":0.01418,"15.2-15.3":0.00355,"15.6":0.0709,"16.0":0.05672,"16.1":0.01064,"16.2":0.00355,"16.3":0.00355,"16.4":0.02127,"16.5":0.00355,"16.6":0.09217,"17.0":0.00355,"17.1":0.02482,"17.2":0.00355,"17.3":0.00355,"17.4":0.03545,"17.5":0.01064,"17.6":0.12053,"18.0":0.01064,"18.1":0.01418,"18.2":0.039,"18.3":0.08863,"18.4":0.07445,"18.5":0.86144},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00163,"5.0-5.1":0,"6.0-6.1":0.00326,"7.0-7.1":0.00326,"8.1-8.4":0,"9.0-9.2":0.00163,"9.3":0.00977,"10.0-10.2":0.00081,"10.3":0.01629,"11.0-11.2":0.10426,"11.3-11.4":0.0057,"12.0-12.1":0.00163,"12.2-12.5":0.05457,"13.0-13.1":0.00081,"13.2":0.00244,"13.3":0.00163,"13.4-13.7":0.00896,"14.0-14.4":0.02118,"14.5-14.8":0.02118,"15.0-15.1":0.01466,"15.2-15.3":0.01466,"15.4":0.01792,"15.5":0.01955,"15.6-15.8":0.25249,"16.0":0.03339,"16.1":0.06842,"16.2":0.03502,"16.3":0.06435,"16.4":0.01466,"16.5":0.02606,"16.6-16.7":0.31684,"17.0":0.0171,"17.1":0.03014,"17.2":0.02362,"17.3":0.03339,"17.4":0.05946,"17.5":0.12462,"17.6-17.7":0.3258,"18.0":0.08063,"18.1":0.18163,"18.2":0.09611,"18.3":0.41295,"18.4":0.4382,"18.5":5.13702,"26.0":0},P:{"4":0.10307,"21":0.01031,"22":0.02061,"23":0.05153,"24":0.22675,"25":0.05153,"26":0.06184,"27":0.36074,"28":3.62796,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 18.0 19.0","5.0-5.4":0.03092,"6.2-6.4":0.01031,"7.2-7.4":0.14429,"14.0":0.02061,"17.0":0.01031},I:{"0":0.03222,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.40087,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.01064,"11":0.01064,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.04977},R:{_:"0"},M:{"0":0.30979},Q:{_:"14.9"},O:{"0":0.3227},H:{"0":0.09}}; +module.exports={C:{"34":0.01576,"52":0.0063,"71":0.00315,"89":0.00315,"102":0.00315,"110":0.00315,"113":0.00946,"115":0.26477,"122":0.00946,"123":0.0063,"124":0.01261,"125":0.72811,"126":0.56421,"127":0.00315,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 111 112 114 116 117 118 119 120 121 128 129 3.5 3.6"},D:{"36":0.00315,"43":0.0063,"49":0.00315,"50":0.00315,"51":0.00315,"55":0.0063,"69":0.02522,"70":0.02522,"72":0.00315,"74":0.0063,"75":0.00946,"76":0.0063,"77":0.00315,"78":0.00946,"79":0.0063,"80":0.01261,"81":0.00315,"84":0.01261,"85":0.00946,"86":0.00315,"87":0.0063,"88":0.06304,"90":0.00946,"92":0.00315,"93":0.01261,"94":0.00946,"95":0.10086,"96":0.02206,"97":0.00315,"98":0.00315,"99":0.01891,"100":0.02522,"101":0.00315,"102":0.01261,"103":0.05358,"104":0.09456,"105":0.0063,"106":0.1513,"107":0.00315,"108":0.00315,"109":1.6548,"111":0.0063,"112":0.01576,"114":0.02206,"115":0.00946,"116":0.04098,"117":0.00946,"118":0.02522,"119":0.03152,"120":0.10086,"121":0.0788,"122":0.15445,"123":0.51378,"124":10.07064,"125":3.82022,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 46 47 48 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 71 73 83 89 91 110 113 126 127 128"},F:{"79":0.00315,"85":0.00315,"95":0.01891,"105":0.00315,"107":0.03782,"108":0.09771,"109":0.61779,"110":0.07565,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0063,"13":0.0063,"14":0.0063,"15":0.00315,"16":0.0063,"17":0.0063,"18":0.02206,"84":0.00315,"90":0.00315,"92":0.03152,"100":0.01891,"105":0.00315,"106":0.00315,"108":0.03467,"109":0.06304,"113":0.00315,"114":0.01261,"115":0.0063,"116":0.0063,"117":0.01261,"118":0.0063,"119":0.00946,"120":0.05674,"121":0.01261,"122":0.03467,"123":0.12923,"124":3.75088,"125":1.94163,_:"79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 107 110 111 112"},E:{"14":0.00315,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 17.6","11.1":0.01891,"12.1":0.02206,"13.1":0.00946,"14.1":0.03467,"15.2-15.3":0.00315,"15.4":0.00946,"15.5":0.0063,"15.6":0.0725,"16.0":0.01261,"16.1":0.03152,"16.2":0.00315,"16.3":0.03782,"16.4":0.00946,"16.5":0.02837,"16.6":0.13238,"17.0":0.0063,"17.1":0.03782,"17.2":0.04098,"17.3":0.11347,"17.4":0.38454,"17.5":0.14499},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00171,"5.0-5.1":0.00171,"6.0-6.1":0.00426,"7.0-7.1":0.00597,"8.1-8.4":0.00171,"9.0-9.2":0.00426,"9.3":0.01961,"10.0-10.2":0.00341,"10.3":0.03069,"11.0-11.2":0.04519,"11.3-11.4":0.00853,"12.0-12.1":0.00512,"12.2-12.5":0.12362,"13.0-13.1":0.00256,"13.2":0.01194,"13.3":0.00597,"13.4-13.7":0.02728,"14.0-14.4":0.04689,"14.5-14.8":0.07247,"15.0-15.1":0.03496,"15.2-15.3":0.03837,"15.4":0.04348,"15.5":0.05456,"15.6-15.8":0.49108,"16.0":0.11169,"16.1":0.2302,"16.2":0.11169,"16.3":0.19353,"16.4":0.04092,"16.5":0.0827,"16.6-16.7":0.65904,"17.0":0.07162,"17.1":0.1168,"17.2":0.12192,"17.3":0.22508,"17.4":5.11119,"17.5":0.36064,"17.6":0},P:{"4":0.31746,"21":0.07168,"22":0.06144,"23":0.09217,"24":0.30722,"25":1.7921,_:"20 5.0-5.4 8.2 9.2 12.0 15.0","6.2-6.4":0.01024,"7.2-7.4":0.29698,"10.1":0.09217,"11.1-11.2":0.01024,"13.0":0.01024,"14.0":0.03072,"16.0":0.02048,"17.0":0.04096,"18.0":0.01024,"19.0":0.18433},I:{"0":0.04775,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":1.45298,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00315,"9":0.00315,"10":0.00315,"11":0.04098,_:"6 8 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.1993},R:{_:"0"},M:{"0":0.27392},Q:{_:"14.9"},O:{"0":0.41773},H:{"0":0.17}}; diff --git a/node_modules/caniuse-lite/data/regions/NC.js b/node_modules/caniuse-lite/data/regions/NC.js index e7f1a331b..4f8d73f37 100644 --- a/node_modules/caniuse-lite/data/regions/NC.js +++ b/node_modules/caniuse-lite/data/regions/NC.js @@ -1 +1 @@ -module.exports={C:{"53":0.13664,"78":0.00448,"91":0.00448,"102":0.01792,"112":0.00224,"113":0.00224,"115":0.07392,"117":0.00224,"126":0.00448,"127":0.00224,"128":0.13216,"129":0.00672,"131":0.00672,"132":0.00224,"133":0.00448,"134":0.00224,"136":0.00896,"137":0.00672,"138":0.22848,"139":3.17632,"140":0.48608,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 114 116 118 119 120 121 122 123 124 125 130 135 141 142 143 3.5 3.6"},D:{"39":0.00896,"40":0.00448,"41":0.00448,"42":0.00448,"43":0.00448,"44":0.00672,"46":0.00896,"47":0.00224,"48":0.00448,"49":0.00448,"50":0.00672,"51":0.00224,"52":0.00896,"53":0.00896,"54":0.00448,"55":0.00672,"56":0.01344,"57":0.00448,"58":0.00448,"59":0.00224,"60":0.00224,"79":0.01792,"87":0.00224,"88":0.00448,"92":0.00672,"93":0.00224,"94":0.00224,"99":0.00448,"100":0.00224,"103":0.01792,"107":0.00224,"108":0.00224,"109":0.28,"110":0.01792,"111":0.00672,"114":0.00448,"115":0.05152,"116":0.06272,"119":0.00224,"120":0.00224,"121":0.03136,"122":0.0336,"123":0.00224,"124":0.00224,"125":0.33152,"126":0.00224,"127":0.02912,"128":0.04032,"129":0.00448,"131":0.056,"132":0.01344,"133":0.01568,"134":0.91392,"135":0.07392,"136":0.66976,"137":6.73792,"138":0.20384,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 45 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 95 96 97 98 101 102 104 105 106 112 113 117 118 130 139 140 141"},F:{"46":0.00896,"89":0.00448,"90":0.00448,"95":0.00224,"116":0.00224,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00672,"109":0.00224,"114":0.00224,"121":0.00448,"122":0.01344,"126":0.00448,"127":0.00448,"128":0.00448,"129":0.00448,"130":0.00224,"131":0.75712,"132":0.00224,"133":0.00448,"134":0.01344,"135":0.05152,"136":0.336,"137":2.36096,"138":0.26208,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125"},E:{"14":0.01568,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 16.2 16.4 26.0","12.1":0.00672,"13.1":0.04256,"14.1":0.03136,"15.1":0.00672,"15.4":0.00448,"15.5":0.00896,"15.6":0.168,"16.0":0.02016,"16.1":0.02016,"16.3":0.01344,"16.5":0.00896,"16.6":0.27552,"17.0":0.00224,"17.1":0.33824,"17.2":0.00224,"17.3":0.03136,"17.4":0.03136,"17.5":0.09856,"17.6":0.08736,"18.0":0.00448,"18.1":0.00448,"18.2":0.01568,"18.3":0.03808,"18.4":0.12096,"18.5":0.83552},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00177,"5.0-5.1":0,"6.0-6.1":0.00355,"7.0-7.1":0.00355,"8.1-8.4":0,"9.0-9.2":0.00177,"9.3":0.01064,"10.0-10.2":0.00089,"10.3":0.01774,"11.0-11.2":0.11353,"11.3-11.4":0.00621,"12.0-12.1":0.00177,"12.2-12.5":0.05943,"13.0-13.1":0.00089,"13.2":0.00266,"13.3":0.00177,"13.4-13.7":0.00976,"14.0-14.4":0.02306,"14.5-14.8":0.02306,"15.0-15.1":0.01597,"15.2-15.3":0.01597,"15.4":0.01951,"15.5":0.02129,"15.6-15.8":0.27496,"16.0":0.03637,"16.1":0.07451,"16.2":0.03814,"16.3":0.07007,"16.4":0.01597,"16.5":0.02838,"16.6-16.7":0.34503,"17.0":0.01863,"17.1":0.03282,"17.2":0.02572,"17.3":0.03637,"17.4":0.06475,"17.5":0.13571,"17.6-17.7":0.35479,"18.0":0.08781,"18.1":0.19779,"18.2":0.10466,"18.3":0.44969,"18.4":0.47719,"18.5":5.59411,"26.0":0},P:{"4":0.01051,"21":0.01051,"22":0.01051,"23":0.02102,"24":0.06307,"25":0.03154,"26":0.07359,"27":0.09461,"28":1.74504,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.05256,"13.0":0.02102},I:{"0":0.05423,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.05432,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.92192},R:{_:"0"},M:{"0":0.38024},Q:{_:"14.9"},O:{"0":0.0388},H:{"0":0}}; +module.exports={C:{"48":0.02417,"52":0.00403,"61":0.02015,"68":0.00403,"69":0.00403,"78":0.17728,"80":0.00806,"91":0.01209,"102":0.02015,"105":0.00403,"113":0.01612,"115":0.7091,"117":0.00403,"118":0.00403,"119":0.00403,"120":0.00403,"121":0.01209,"122":0.01612,"123":0.00403,"124":0.29412,"125":2.52618,"126":2.67526,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 114 116 127 128 129 3.5 3.6"},D:{"56":0.01209,"64":0.00403,"65":0.00403,"67":0.00403,"74":0.01209,"75":0.00403,"77":0.02015,"79":0.07252,"80":0.00403,"86":0.00403,"87":0.01209,"88":0.00403,"89":0.00806,"90":0.01612,"92":0.00403,"94":0.02417,"96":0.00403,"100":0.00403,"103":0.04835,"107":0.00403,"108":0.02015,"109":1.45447,"110":0.00403,"111":0.00403,"112":0.00403,"113":0.00403,"114":0.00403,"115":0.00403,"116":0.14907,"117":0.00403,"118":0.00806,"119":0.00806,"120":0.04029,"121":0.05641,"122":0.14504,"123":0.35858,"124":12.42141,"125":4.35535,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 66 68 69 70 71 72 73 76 78 81 83 84 85 91 93 95 97 98 99 101 102 104 105 106 126 127 128"},F:{"36":0.00403,"46":0.00403,"81":0.01612,"95":0.06446,"103":0.00403,"107":0.13296,"108":0.53989,"109":1.3618,"110":0.07252,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00806,"92":0.01209,"100":0.00403,"108":0.00403,"109":0.03626,"112":0.00403,"114":0.00403,"115":0.00806,"117":0.01209,"118":0.01209,"119":0.12087,"120":0.04029,"121":0.01612,"122":0.05238,"123":0.08864,"124":3.5294,"125":2.08299,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 113 116"},E:{"13":0.00403,"14":0.06849,"15":0.06446,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.02015,"13.1":0.12087,"14.1":0.10475,"15.1":0.00403,"15.2-15.3":0.02015,"15.4":0.04432,"15.5":0.01612,"15.6":0.27397,"16.0":0.03223,"16.1":0.04432,"16.2":0.02417,"16.3":0.12087,"16.4":0.0282,"16.5":0.05238,"16.6":0.41499,"17.0":0.02015,"17.1":0.02417,"17.2":0.11684,"17.3":0.06446,"17.4":2.85656,"17.5":0.25786},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00273,"5.0-5.1":0.00273,"6.0-6.1":0.00682,"7.0-7.1":0.00955,"8.1-8.4":0.00273,"9.0-9.2":0.00682,"9.3":0.03139,"10.0-10.2":0.00546,"10.3":0.04914,"11.0-11.2":0.07234,"11.3-11.4":0.01365,"12.0-12.1":0.00819,"12.2-12.5":0.19792,"13.0-13.1":0.00409,"13.2":0.01911,"13.3":0.00955,"13.4-13.7":0.04368,"14.0-14.4":0.07507,"14.5-14.8":0.11602,"15.0-15.1":0.05596,"15.2-15.3":0.06142,"15.4":0.06961,"15.5":0.08736,"15.6-15.8":0.78622,"16.0":0.17881,"16.1":0.36854,"16.2":0.17881,"16.3":0.30985,"16.4":0.06552,"16.5":0.1324,"16.6-16.7":1.05512,"17.0":0.11466,"17.1":0.187,"17.2":0.19519,"17.3":0.36035,"17.4":8.183,"17.5":0.57738,"17.6":0},P:{"4":0.04319,"20":0.04319,"21":0.14036,"22":0.08637,"23":0.3239,"24":0.46426,"25":4.21072,_:"5.0-5.4 8.2 9.2 10.1 14.0 15.0 16.0 17.0","6.2-6.4":0.0108,"7.2-7.4":0.3239,"11.1-11.2":0.0108,"12.0":0.0108,"13.0":0.03239,"18.0":0.02159,"19.0":0.07558},I:{"0":0.01784,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.53455,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00806,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.36794},R:{_:"0"},M:{"0":1.00313},Q:{_:"14.9"},O:{"0":0.03583},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NE.js b/node_modules/caniuse-lite/data/regions/NE.js index 8f6c94eaa..c73456ba3 100644 --- a/node_modules/caniuse-lite/data/regions/NE.js +++ b/node_modules/caniuse-lite/data/regions/NE.js @@ -1 +1 @@ -module.exports={C:{"39":0.0017,"43":0.0017,"45":0.0034,"48":0.0051,"49":0.0034,"52":0.01189,"57":0.0017,"63":0.0017,"65":0.0017,"67":0.0034,"72":0.0068,"77":0.01359,"101":0.0017,"104":0.0034,"108":0.0017,"109":0.0051,"115":0.12063,"127":0.03228,"128":0.01529,"131":0.03568,"132":0.0017,"133":0.0068,"134":0.0017,"135":0.01869,"136":0.01359,"137":0.0068,"138":0.10024,"139":1.61235,"140":0.11383,"141":0.0085,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 44 46 47 50 51 53 54 55 56 58 59 60 61 62 64 66 68 69 70 71 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 105 106 107 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 142 143 3.5 3.6"},D:{"32":0.0017,"39":0.0017,"40":0.0034,"41":0.0017,"42":0.0034,"43":0.0051,"44":0.0034,"46":0.0017,"47":0.0034,"48":0.0034,"49":0.0034,"50":0.0034,"51":0.0017,"53":0.0017,"55":0.0017,"56":0.0017,"57":0.0017,"58":0.02039,"59":0.0017,"60":0.0051,"61":0.0034,"63":0.0017,"65":0.0034,"67":0.0017,"70":0.0017,"73":0.0034,"74":0.0051,"79":0.0034,"81":0.0017,"84":0.0017,"86":0.0085,"87":0.0034,"88":0.0051,"89":0.0034,"91":0.0051,"93":0.0085,"95":0.0017,"99":0.0017,"100":0.0017,"103":0.0051,"106":0.0017,"107":0.0017,"108":0.0051,"109":0.32451,"111":0.0034,"112":0.0017,"113":0.0034,"114":0.01699,"116":0.05267,"117":0.0034,"118":0.0017,"119":0.01869,"120":0.0051,"121":0.0017,"122":0.0085,"124":0.0085,"125":0.3381,"126":0.01019,"127":0.03738,"128":0.03228,"129":0.02039,"130":0.0085,"131":0.03398,"132":0.01189,"133":0.01869,"134":0.02039,"135":0.10364,"136":1.61065,"137":3.72421,"138":0.14102,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 45 52 54 62 64 66 68 69 71 72 75 76 77 78 80 83 85 90 92 94 96 97 98 101 102 104 105 110 115 123 139 140 141"},F:{"36":0.0017,"40":0.0068,"42":0.0017,"48":0.0017,"63":0.0017,"64":0.0034,"79":0.0085,"86":0.0051,"88":0.0017,"89":0.0051,"90":0.0034,"95":0.02888,"110":0.0017,"112":0.0017,"116":0.0034,"117":0.01699,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 62 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.03058,"13":0.0068,"14":0.0017,"15":0.0034,"16":0.0034,"17":0.0068,"18":0.04078,"84":0.0068,"89":0.0085,"90":0.01529,"92":0.06116,"100":0.02039,"109":0.01019,"114":0.0051,"115":0.01189,"117":0.0017,"120":0.06796,"121":0.0017,"122":0.0034,"123":0.0034,"124":0.44344,"130":0.0017,"131":0.0051,"132":0.04248,"133":0.02039,"134":0.01529,"135":0.02718,"136":0.27354,"137":1.61745,"138":0.07476,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 118 119 125 126 127 128 129"},E:{"13":0.0034,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 26.0","5.1":0.0017,"11.1":0.0034,"13.1":0.0034,"14.1":0.03058,"15.4":0.0017,"15.6":0.0085,"16.6":0.0017,"17.6":0.04927,"18.0":0.03228,"18.1":0.0017,"18.2":0.0085,"18.3":0.01019,"18.4":0.01019,"18.5":0.03058},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0006,"5.0-5.1":0,"6.0-6.1":0.0012,"7.0-7.1":0.0012,"8.1-8.4":0,"9.0-9.2":0.0006,"9.3":0.00361,"10.0-10.2":0.0003,"10.3":0.00601,"11.0-11.2":0.03847,"11.3-11.4":0.0021,"12.0-12.1":0.0006,"12.2-12.5":0.02014,"13.0-13.1":0.0003,"13.2":0.0009,"13.3":0.0006,"13.4-13.7":0.00331,"14.0-14.4":0.00781,"14.5-14.8":0.00781,"15.0-15.1":0.00541,"15.2-15.3":0.00541,"15.4":0.00661,"15.5":0.00721,"15.6-15.8":0.09317,"16.0":0.01232,"16.1":0.02524,"16.2":0.01292,"16.3":0.02374,"16.4":0.00541,"16.5":0.00962,"16.6-16.7":0.11691,"17.0":0.00631,"17.1":0.01112,"17.2":0.00872,"17.3":0.01232,"17.4":0.02194,"17.5":0.04598,"17.6-17.7":0.12021,"18.0":0.02975,"18.1":0.06702,"18.2":0.03546,"18.3":0.15237,"18.4":0.16169,"18.5":1.89546,"26.0":0},P:{"21":0.0102,"22":0.0102,"23":0.0102,"24":0.0408,"25":0.0204,"26":0.05101,"27":0.11221,"28":1.20374,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.09181,"16.0":0.0102},I:{"0":0.04144,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":3.53458,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03143,"11":0.03143,_:"6 7 8 10 5.5"},S:{"2.5":0.0166,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.38543},R:{_:"0"},M:{"0":0.04151},Q:{"14.9":0.0166},O:{"0":1.40304},H:{"0":0.55}}; +module.exports={C:{"35":0.00295,"40":0.00148,"43":0.00148,"48":0.0059,"52":0.00148,"54":0.00295,"56":0.00148,"60":0.00148,"61":0.00295,"63":0.04278,"67":0.00148,"72":0.02803,"76":0.00148,"77":0.00148,"78":0.00295,"84":0.00148,"91":0.00148,"96":0.00148,"99":0.00148,"101":0.00148,"103":0.00148,"104":0.00148,"105":0.00148,"106":0.01918,"107":0.00148,"112":0.00148,"114":0.0059,"115":0.47938,"118":0.00148,"121":0.00148,"122":0.00148,"123":0.01623,"124":0.02213,"125":0.71685,"126":0.60623,"127":0.00148,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 41 42 44 45 46 47 49 50 51 53 55 57 58 59 62 64 65 66 68 69 70 71 73 74 75 79 80 81 82 83 85 86 87 88 89 90 92 93 94 95 97 98 100 102 108 109 110 111 113 116 117 119 120 128 129 3.5 3.6"},D:{"40":0.00295,"47":0.00148,"49":0.00295,"58":0.00738,"59":0.00148,"64":0.00148,"66":0.00148,"68":0.01475,"70":0.0177,"79":0.13128,"80":0.00148,"81":0.00148,"85":0.00148,"88":0.00295,"89":0.00295,"90":0.00148,"92":0.00738,"97":0.00443,"99":0.00295,"102":0.00295,"103":0.00885,"105":0.00295,"106":0.00148,"107":0.0059,"108":0.00148,"109":0.236,"110":0.00148,"111":0.00148,"113":0.00148,"114":0.00885,"115":0.00443,"116":0.00295,"117":0.0059,"118":0.00148,"119":0.02213,"120":0.01918,"121":0.01623,"122":0.03393,"123":0.08703,"124":1.78475,"125":0.6844,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 48 50 51 52 53 54 55 56 57 60 61 62 63 65 67 69 71 72 73 74 75 76 77 78 83 84 86 87 91 93 94 95 96 98 100 101 104 112 126 127 128"},F:{"33":0.00148,"36":0.00148,"54":0.00148,"57":0.00148,"62":0.00148,"79":0.00443,"82":0.55903,"83":0.00295,"90":0.00295,"95":0.0354,"104":0.00295,"105":0.00295,"106":0.00148,"108":0.00295,"109":0.3304,"110":0.03983,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 87 88 89 91 92 93 94 96 97 98 99 100 101 102 103 107 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00295,"13":0.0059,"16":0.00148,"17":0.03245,"18":0.0118,"84":0.0059,"85":0.00148,"88":0.00295,"89":0.01475,"90":0.00295,"92":0.0118,"100":0.00148,"108":0.00148,"109":0.0531,"113":0.00295,"114":0.00443,"115":0.0059,"116":0.00148,"117":0.00148,"118":0.01033,"119":0.00148,"120":0.0413,"121":0.01475,"122":0.059,"123":0.0354,"124":0.46905,"125":0.21093,_:"14 15 79 80 81 83 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112"},E:{"11":0.00148,"14":0.00295,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.5 16.1 16.2 17.0 17.6","5.1":0.00738,"13.1":0.0059,"14.1":0.00295,"15.1":3.27008,"15.2-15.3":0.00443,"15.4":0.00148,"15.6":0.0944,"16.0":0.00148,"16.3":0.00148,"16.4":0.00295,"16.5":0.0118,"16.6":0.0118,"17.1":0.0059,"17.2":0.0472,"17.3":0.03688,"17.4":0.15045,"17.5":0.00443},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00119,"5.0-5.1":0.00119,"6.0-6.1":0.00298,"7.0-7.1":0.00417,"8.1-8.4":0.00119,"9.0-9.2":0.00298,"9.3":0.01371,"10.0-10.2":0.00238,"10.3":0.02145,"11.0-11.2":0.03158,"11.3-11.4":0.00596,"12.0-12.1":0.00358,"12.2-12.5":0.08641,"13.0-13.1":0.00179,"13.2":0.00834,"13.3":0.00417,"13.4-13.7":0.01907,"14.0-14.4":0.03277,"14.5-14.8":0.05065,"15.0-15.1":0.02443,"15.2-15.3":0.02682,"15.4":0.03039,"15.5":0.03814,"15.6-15.8":0.34324,"16.0":0.07806,"16.1":0.16089,"16.2":0.07806,"16.3":0.13527,"16.4":0.0286,"16.5":0.0578,"16.6-16.7":0.46063,"17.0":0.05006,"17.1":0.08164,"17.2":0.08521,"17.3":0.15732,"17.4":3.57241,"17.5":0.25206,"17.6":0},P:{"4":0.05032,"20":0.02013,"21":0.05032,"22":0.06038,"23":0.27171,"24":0.25158,"25":0.31196,_:"5.0-5.4 8.2 12.0 13.0 14.0 15.0","6.2-6.4":0.02013,"7.2-7.4":0.03019,"9.2":0.1107,"10.1":0.01006,"11.1-11.2":0.01006,"16.0":0.06038,"17.0":0.01006,"18.0":0.01006,"19.0":0.06038},I:{"0":0.02548,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":3.81973,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0236,_:"6 7 8 9 10 5.5"},S:{"2.5":0.05968,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.12485},R:{_:"0"},M:{"0":0.02558},Q:{"14.9":0.01705},O:{"0":0.7502},H:{"0":0.69}}; diff --git a/node_modules/caniuse-lite/data/regions/NF.js b/node_modules/caniuse-lite/data/regions/NF.js index d3e504a83..a3853502a 100644 --- a/node_modules/caniuse-lite/data/regions/NF.js +++ b/node_modules/caniuse-lite/data/regions/NF.js @@ -1 +1 @@ -module.exports={C:{"139":0.97049,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 140 141 142 143 3.5 3.6"},D:{"109":0.48525,"135":0.48525,"137":8.73775,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"136":7.76725,"137":12.13448,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 26.0","18.4":0.48525,"18.5":1.45574},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0034,"5.0-5.1":0,"6.0-6.1":0.0068,"7.0-7.1":0.0068,"8.1-8.4":0,"9.0-9.2":0.0034,"9.3":0.0204,"10.0-10.2":0.0017,"10.3":0.034,"11.0-11.2":0.21763,"11.3-11.4":0.0119,"12.0-12.1":0.0034,"12.2-12.5":0.11391,"13.0-13.1":0.0017,"13.2":0.0051,"13.3":0.0034,"13.4-13.7":0.0187,"14.0-14.4":0.04421,"14.5-14.8":0.04421,"15.0-15.1":0.0306,"15.2-15.3":0.0306,"15.4":0.0374,"15.5":0.0408,"15.6-15.8":0.52706,"16.0":0.06971,"16.1":0.14282,"16.2":0.07311,"16.3":0.13432,"16.4":0.0306,"16.5":0.05441,"16.6-16.7":0.66138,"17.0":0.0357,"17.1":0.06291,"17.2":0.04931,"17.3":0.06971,"17.4":0.12412,"17.5":0.26013,"17.6-17.7":0.68008,"18.0":0.16832,"18.1":0.37915,"18.2":0.20062,"18.3":0.862,"18.4":0.91471,"18.5":10.7232,"26.0":0},P:{"28":5.15153,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.79913},R:{_:"0"},M:{"0":0.51582},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"124":0.17052,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 125 126 127 128 129 3.5 3.6"},D:{"106":0.17052,"109":2.02884,"123":0.17052,"124":7.60032,"125":1.6878,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 126 127 128"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"111":0.17052,"124":9.45864,"125":10.64184,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.2 16.3 16.4 17.0 17.1 17.2 17.3 17.5 17.6","13.1":0.67512,"16.1":0.33756,"16.5":0.17052,"16.6":0.17052,"17.4":1.1832},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00194,"5.0-5.1":0.00194,"6.0-6.1":0.00484,"7.0-7.1":0.00677,"8.1-8.4":0.00194,"9.0-9.2":0.00484,"9.3":0.02226,"10.0-10.2":0.00387,"10.3":0.03484,"11.0-11.2":0.05129,"11.3-11.4":0.00968,"12.0-12.1":0.00581,"12.2-12.5":0.14032,"13.0-13.1":0.0029,"13.2":0.01355,"13.3":0.00677,"13.4-13.7":0.03097,"14.0-14.4":0.05322,"14.5-14.8":0.08226,"15.0-15.1":0.03968,"15.2-15.3":0.04355,"15.4":0.04935,"15.5":0.06193,"15.6-15.8":0.5574,"16.0":0.12677,"16.1":0.26128,"16.2":0.12677,"16.3":0.21967,"16.4":0.04645,"16.5":0.09387,"16.6-16.7":0.74804,"17.0":0.08129,"17.1":0.13258,"17.2":0.13838,"17.3":0.25548,"17.4":5.80146,"17.5":0.40934,"17.6":0},P:{"21":0.18066,"25":1.25396,_:"4 20 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":1.43462},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.84064},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NG.js b/node_modules/caniuse-lite/data/regions/NG.js index 9f9481abd..e97db5c72 100644 --- a/node_modules/caniuse-lite/data/regions/NG.js +++ b/node_modules/caniuse-lite/data/regions/NG.js @@ -1 +1 @@ -module.exports={C:{"43":0.00628,"47":0.00209,"52":0.00209,"65":0.00209,"72":0.00209,"109":0.00209,"112":0.00209,"113":0.00209,"114":0.00209,"115":0.26581,"127":0.00628,"128":0.01047,"133":0.00209,"134":0.00209,"135":0.00419,"136":0.00419,"137":0.00837,"138":0.03349,"139":0.39976,"140":0.05023,"141":0.00209,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 142 143 3.5 3.6"},D:{"20":0.00209,"47":0.01884,"48":0.00209,"49":0.00209,"50":0.00209,"55":0.00209,"56":0.00209,"58":0.00209,"59":0.00209,"62":0.01465,"63":0.00837,"64":0.00419,"65":0.00209,"68":0.00628,"69":0.00209,"70":0.0314,"72":0.00209,"73":0.00209,"74":0.00419,"75":0.00628,"76":0.00628,"77":0.00628,"78":0.00209,"79":0.01674,"80":0.00837,"81":0.00628,"83":0.00419,"84":0.00209,"85":0.00209,"86":0.00628,"87":0.01047,"88":0.00628,"89":0.00209,"90":0.00209,"91":0.00209,"92":0.00419,"93":0.00837,"94":0.00209,"95":0.00628,"96":0.00209,"97":0.00209,"98":0.00209,"99":0.00209,"100":0.00419,"102":0.00209,"103":0.02302,"104":0.01256,"105":0.01884,"106":0.01256,"107":0.00419,"108":0.01047,"109":0.4793,"110":0.00419,"111":0.02302,"112":0.00419,"113":0.00209,"114":0.00628,"116":0.02512,"117":0.00209,"118":0.00628,"119":0.0293,"120":0.01256,"121":0.00628,"122":0.01465,"123":0.00628,"124":0.03767,"125":0.14442,"126":0.0293,"127":0.02093,"128":0.0293,"129":0.01256,"130":0.01884,"131":0.0607,"132":0.0314,"133":0.04186,"134":0.06907,"135":0.13814,"136":0.90836,"137":4.40995,"138":0.16744,"139":0.00628,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 51 52 53 54 57 60 61 66 67 71 101 115 140 141"},F:{"58":0.00209,"79":0.00419,"83":0.00209,"84":0.00209,"85":0.00837,"86":0.01047,"87":0.04186,"88":0.04186,"89":0.28883,"90":0.07744,"95":0.01884,"100":0.00837,"113":0.00209,"114":0.00209,"117":0.00419,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 91 92 93 94 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00209,"15":0.00209,"18":0.01884,"84":0.00209,"89":0.00419,"90":0.00837,"92":0.02721,"100":0.00837,"107":0.00209,"109":0.00837,"111":0.00209,"114":0.01674,"115":0.00209,"120":0.00209,"122":0.00419,"124":0.00419,"125":0.00209,"126":0.00209,"127":0.00209,"128":0.00837,"129":0.00209,"130":0.00419,"131":0.01047,"132":0.00628,"133":0.00837,"134":0.01256,"135":0.0314,"136":0.18628,"137":0.82883,"138":0.05023,_:"13 14 16 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 112 113 116 117 118 119 121 123"},E:{"11":0.00419,"13":0.00628,"14":0.00209,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 6.1 7.1 9.1 10.1 26.0","5.1":0.00209,"11.1":0.00419,"12.1":0.00209,"13.1":0.01674,"14.1":0.00628,"15.1":0.00209,"15.2-15.3":0.00209,"15.4":0.00209,"15.5":0.00209,"15.6":0.0293,"16.0":0.00209,"16.1":0.00419,"16.2":0.00209,"16.3":0.00419,"16.4":0.00209,"16.5":0.00209,"16.6":0.02093,"17.0":0.00209,"17.1":0.00419,"17.2":0.00209,"17.3":0.00209,"17.4":0.00209,"17.5":0.02302,"17.6":0.02512,"18.0":0.00419,"18.1":0.00837,"18.2":0.00837,"18.3":0.01256,"18.4":0.01465,"18.5":0.0586},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00119,"5.0-5.1":0,"6.0-6.1":0.00238,"7.0-7.1":0.00238,"8.1-8.4":0,"9.0-9.2":0.00119,"9.3":0.00715,"10.0-10.2":0.0006,"10.3":0.01192,"11.0-11.2":0.07631,"11.3-11.4":0.00417,"12.0-12.1":0.00119,"12.2-12.5":0.03994,"13.0-13.1":0.0006,"13.2":0.00179,"13.3":0.00119,"13.4-13.7":0.00656,"14.0-14.4":0.0155,"14.5-14.8":0.0155,"15.0-15.1":0.01073,"15.2-15.3":0.01073,"15.4":0.01312,"15.5":0.01431,"15.6-15.8":0.18482,"16.0":0.02444,"16.1":0.05008,"16.2":0.02564,"16.3":0.0471,"16.4":0.01073,"16.5":0.01908,"16.6-16.7":0.23192,"17.0":0.01252,"17.1":0.02206,"17.2":0.01729,"17.3":0.02444,"17.4":0.04352,"17.5":0.09122,"17.6-17.7":0.23848,"18.0":0.05902,"18.1":0.13295,"18.2":0.07035,"18.3":0.30227,"18.4":0.32075,"18.5":3.76016,"26.0":0},P:{"4":0.02109,"21":0.01054,"22":0.02109,"23":0.01054,"24":0.0738,"25":0.09488,"26":0.04217,"27":0.15814,"28":0.47442,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0 19.0","7.2-7.4":0.03163,"9.2":0.01054,"11.1-11.2":0.01054,"16.0":0.01054,"17.0":0.01054},I:{"0":0.06315,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":19.95193,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01095,"9":0.00274,"10":0.00547,"11":0.01642,_:"6 7 5.5"},S:{"2.5":0.01581,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.76259},R:{_:"0"},M:{"0":0.20558},Q:{_:"14.9"},O:{"0":0.45861},H:{"0":2.67}}; +module.exports={C:{"36":0.00111,"43":0.00668,"47":0.00223,"52":0.00334,"65":0.00334,"68":0.00111,"72":0.00223,"76":0.00111,"78":0.00223,"79":0.00111,"80":0.00111,"89":0.00111,"92":0.00111,"96":0.00111,"99":0.00334,"100":0.00111,"101":0.00111,"102":0.00111,"103":0.00334,"104":0.00111,"105":0.00111,"106":0.00111,"107":0.00111,"108":0.00111,"109":0.00111,"110":0.00111,"111":0.00111,"112":0.00111,"113":0.00223,"114":0.00223,"115":0.4055,"116":0.00111,"118":0.00111,"119":0.00111,"120":0.00223,"121":0.00223,"122":0.00223,"123":0.00557,"124":0.01782,"125":0.22614,"126":0.16264,"127":0.00446,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 73 74 75 77 81 82 83 84 85 86 87 88 90 91 93 94 95 97 98 117 128 129 3.5 3.6"},D:{"11":0.00111,"37":0.00111,"38":0.00111,"40":0.00111,"42":0.00111,"43":0.00111,"47":0.01337,"48":0.00111,"49":0.00111,"50":0.00111,"55":0.00111,"56":0.00223,"58":0.00446,"59":0.01448,"62":0.01003,"63":0.00891,"64":0.00668,"65":0.00223,"66":0.00111,"68":0.00891,"69":0.00334,"70":0.01671,"71":0.00111,"72":0.00111,"73":0.00334,"74":0.00446,"75":0.00446,"76":0.00668,"77":0.00668,"78":0.00111,"79":0.01225,"80":0.0078,"81":0.00668,"83":0.00446,"84":0.0078,"85":0.00334,"86":0.00557,"87":0.01114,"88":0.01894,"89":0.00223,"90":0.00223,"91":0.01448,"92":0.00334,"93":0.06684,"94":0.00446,"95":0.01114,"96":0.00334,"97":0.00334,"98":0.00446,"99":0.00334,"100":0.00334,"101":0.00223,"102":0.00446,"103":0.01671,"104":0.00446,"105":0.00891,"106":0.01003,"107":0.00557,"108":0.00668,"109":0.67063,"110":0.00557,"111":0.01003,"112":0.00557,"113":0.00446,"114":0.01671,"115":0.01114,"116":0.04122,"117":0.01225,"118":0.00891,"119":0.04233,"120":0.04679,"121":0.03899,"122":0.09023,"123":0.24508,"124":3.13814,"125":1.13851,"126":0.00668,"127":0.00111,_:"4 5 6 7 8 9 10 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 39 41 44 45 46 51 52 53 54 57 60 61 67 128"},F:{"33":0.00111,"35":0.00111,"42":0.00111,"53":0.00111,"58":0.00111,"76":0.00111,"77":0.00111,"78":0.00111,"79":0.00891,"81":0.00111,"82":0.00334,"83":0.00111,"85":0.00111,"95":0.02228,"100":0.01337,"102":0.00111,"105":0.00111,"106":0.00111,"107":0.01337,"108":0.01225,"109":0.21612,"110":0.02117,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 54 55 56 57 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 80 84 86 87 88 89 90 91 92 93 94 96 97 98 99 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0078,"13":0.00111,"14":0.00111,"15":0.00111,"16":0.00111,"17":0.00111,"18":0.02339,"84":0.00223,"85":0.00111,"89":0.00334,"90":0.00668,"92":0.01782,"100":0.00446,"106":0.00111,"107":0.00111,"109":0.0078,"110":0.00111,"111":0.00111,"112":0.00111,"113":0.00111,"114":0.00111,"115":0.00334,"116":0.00223,"117":0.00111,"118":0.00111,"119":0.00223,"120":0.0078,"121":0.0078,"122":0.0156,"123":0.02674,"124":0.44449,"125":0.21723,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 108"},E:{"10":0.00111,"11":0.00334,"12":0.00111,"13":0.00557,"14":0.00891,"15":0.00223,_:"0 4 5 6 7 8 9 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00557,"12.1":0.00223,"13.1":0.01225,"14.1":0.01337,"15.1":0.00334,"15.2-15.3":0.00111,"15.4":0.00223,"15.5":0.00223,"15.6":0.02785,"16.0":0.00557,"16.1":0.00334,"16.2":0.00111,"16.3":0.00668,"16.4":0.00334,"16.5":0.00446,"16.6":0.02005,"17.0":0.00334,"17.1":0.00557,"17.2":0.0078,"17.3":0.01114,"17.4":0.05013,"17.5":0.00891},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0.00116,"6.0-6.1":0.0029,"7.0-7.1":0.00406,"8.1-8.4":0.00116,"9.0-9.2":0.0029,"9.3":0.01335,"10.0-10.2":0.00232,"10.3":0.02089,"11.0-11.2":0.03075,"11.3-11.4":0.0058,"12.0-12.1":0.00348,"12.2-12.5":0.08414,"13.0-13.1":0.00174,"13.2":0.00812,"13.3":0.00406,"13.4-13.7":0.01857,"14.0-14.4":0.03191,"14.5-14.8":0.04932,"15.0-15.1":0.02379,"15.2-15.3":0.02611,"15.4":0.02959,"15.5":0.03714,"15.6-15.8":0.33423,"16.0":0.07601,"16.1":0.15667,"16.2":0.07601,"16.3":0.13172,"16.4":0.02785,"16.5":0.05628,"16.6-16.7":0.44854,"17.0":0.04874,"17.1":0.0795,"17.2":0.08298,"17.3":0.15319,"17.4":3.47863,"17.5":0.24545,"17.6":0},P:{"4":0.04227,"20":0.01057,"21":0.0317,"22":0.0634,"23":0.08454,"24":0.14794,"25":0.29588,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0","7.2-7.4":0.04227,"9.2":0.01057,"11.1-11.2":0.01057,"16.0":0.02113,"17.0":0.01057,"19.0":0.01057},I:{"0":0.04426,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":26.30058,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00241,"10":0.00241,"11":0.00965,_:"6 7 9 5.5"},S:{"2.5":0.02666,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.53792},R:{_:"0"},M:{"0":0.19549},Q:{"14.9":0.00889},O:{"0":0.55982},H:{"0":6.08}}; diff --git a/node_modules/caniuse-lite/data/regions/NI.js b/node_modules/caniuse-lite/data/regions/NI.js index e7c511e31..0d6d47333 100644 --- a/node_modules/caniuse-lite/data/regions/NI.js +++ b/node_modules/caniuse-lite/data/regions/NI.js @@ -1 +1 @@ -module.exports={C:{"4":0.00149,"99":0.00074,"115":0.00892,"117":0.00074,"127":0.00074,"128":0.00669,"132":0.00074,"136":0.00223,"137":0.01115,"138":0.01412,"139":0.22364,"140":0.02749,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 125 126 129 130 131 133 134 135 141 142 143 3.5 3.6"},D:{"39":0.00223,"40":0.00297,"41":0.00149,"42":0.00223,"43":0.00149,"44":0.00223,"45":0.00297,"46":0.00223,"47":0.00297,"48":0.00149,"49":0.00223,"50":0.00223,"51":0.00297,"52":0.00223,"53":0.00223,"54":0.00223,"55":0.00223,"56":0.00223,"57":0.00223,"58":0.00446,"59":0.00223,"60":0.00223,"62":0.00223,"65":0.00074,"69":0.00074,"73":0.00074,"76":0.00074,"79":0.00743,"81":0.00223,"83":0.00074,"85":0.00074,"86":0.00149,"87":0.00446,"88":0.00074,"92":0.00223,"93":0.00074,"97":0.00074,"98":0.00149,"100":0.00149,"103":0.00594,"105":0.00074,"106":0.00074,"108":0.00372,"109":0.0691,"110":0.00446,"111":0.00817,"112":0.00074,"113":0.00149,"114":0.00223,"116":0.0052,"117":0.00074,"118":0.00223,"119":0.00223,"120":0.00297,"121":0.00074,"122":0.00223,"123":0.00372,"124":0.00149,"125":1.0885,"126":0.00297,"127":0.00223,"128":0.00372,"129":0.00372,"130":0.00297,"131":0.00594,"132":0.00743,"133":0.00743,"134":0.0104,"135":0.02452,"136":0.37596,"137":2.65548,"138":0.15009,"139":0.00074,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 66 67 68 70 71 72 74 75 77 78 80 84 89 90 91 94 95 96 99 101 102 104 107 115 140 141"},F:{"89":0.00223,"90":0.00074,"95":0.00297,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00149,"89":0.00074,"92":0.00594,"97":0.00074,"100":0.00223,"104":0.00074,"109":0.00446,"114":0.00074,"116":0.00074,"121":0.00074,"122":0.00223,"123":0.00223,"124":0.00149,"125":0.00223,"127":0.00223,"128":0.00074,"129":0.00074,"130":0.00223,"131":0.00372,"132":0.00149,"133":0.00297,"134":0.01263,"135":0.00594,"136":0.1434,"137":0.83736,"138":0.08842,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 98 99 101 102 103 105 106 107 108 110 111 112 113 115 117 118 119 120 126"},E:{"13":0.00074,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.2-15.3 15.4 15.5 16.1 16.4 17.2 26.0","5.1":0.00446,"13.1":0.00074,"15.1":0.00074,"15.6":0.0052,"16.0":0.00074,"16.2":0.00074,"16.3":0.00223,"16.5":0.00149,"16.6":0.00817,"17.0":0.00074,"17.1":0.00743,"17.3":0.00074,"17.4":0.00074,"17.5":0.0052,"17.6":0.01115,"18.0":0.00074,"18.1":0.00149,"18.2":0.00149,"18.3":0.00446,"18.4":0.0104,"18.5":0.12185},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00032,"5.0-5.1":0,"6.0-6.1":0.00064,"7.0-7.1":0.00064,"8.1-8.4":0,"9.0-9.2":0.00032,"9.3":0.00192,"10.0-10.2":0.00016,"10.3":0.0032,"11.0-11.2":0.0205,"11.3-11.4":0.00112,"12.0-12.1":0.00032,"12.2-12.5":0.01073,"13.0-13.1":0.00016,"13.2":0.00048,"13.3":0.00032,"13.4-13.7":0.00176,"14.0-14.4":0.00416,"14.5-14.8":0.00416,"15.0-15.1":0.00288,"15.2-15.3":0.00288,"15.4":0.00352,"15.5":0.00384,"15.6-15.8":0.04965,"16.0":0.00657,"16.1":0.01345,"16.2":0.00689,"16.3":0.01265,"16.4":0.00288,"16.5":0.00513,"16.6-16.7":0.0623,"17.0":0.00336,"17.1":0.00593,"17.2":0.00464,"17.3":0.00657,"17.4":0.01169,"17.5":0.02451,"17.6-17.7":0.06407,"18.0":0.01586,"18.1":0.03572,"18.2":0.0189,"18.3":0.0812,"18.4":0.08617,"18.5":1.01015,"26.0":0},P:{"22":0.01074,"23":0.01074,"24":0.02148,"25":0.02148,"26":0.03222,"27":0.04296,"28":0.36514,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02148,"11.1-11.2":0.01074},I:{"0":0.61923,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00012,"4.4":0,"4.4.3-4.4.4":0.0005},K:{"0":0.05555,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00264,"9":0.00132,"10":0.00132,"11":0.0066,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":90.40274},R:{_:"0"},M:{"0":0.03703},Q:{_:"14.9"},O:{"0":0.00926},H:{"0":0}}; +module.exports={C:{"4":0.01921,"11":0.0064,"78":0.0032,"88":0.0032,"98":0.0128,"102":0.0032,"115":0.11204,"117":0.0032,"120":0.0032,"121":0.0032,"122":0.0032,"123":0.0032,"124":0.03201,"125":0.6274,"126":0.67221,_:"2 3 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 127 128 129 3.5 3.6"},D:{"11":0.0064,"38":0.0032,"49":0.0032,"66":0.0064,"68":0.0064,"69":0.0064,"70":0.0032,"73":0.0128,"75":0.0032,"76":0.0064,"79":0.03201,"80":0.0032,"81":0.0064,"83":0.0096,"84":0.0032,"86":0.0032,"87":0.08963,"88":0.0096,"91":0.22727,"92":0.0032,"93":0.0064,"94":0.0064,"96":0.0064,"97":0.0032,"98":0.0096,"99":0.03841,"100":0.0032,"101":0.04802,"102":0.0032,"103":0.05442,"104":0.0064,"105":0.0064,"106":0.0096,"107":0.0032,"108":0.01921,"109":1.79576,"110":0.0096,"111":0.0128,"112":0.0064,"113":0.0064,"114":0.02881,"115":0.0032,"116":0.05762,"117":0.01601,"118":0.0096,"119":0.04802,"120":0.12164,"121":0.05762,"122":0.23047,"123":0.41613,"124":13.00246,"125":4.74388,"126":0.0032,_:"4 5 6 7 8 9 10 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 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 71 72 74 77 78 85 89 90 95 127 128"},F:{"46":0.0032,"60":0.0032,"95":0.01921,"102":0.0032,"107":0.38412,"108":0.0128,"109":1.03712,"110":0.03841,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0064,"92":0.03841,"100":0.0064,"104":0.0032,"107":0.0032,"109":0.03521,"110":0.0032,"111":0.0032,"112":0.0032,"113":0.0032,"114":0.0032,"115":0.0064,"116":0.01601,"117":0.0064,"118":0.0032,"119":0.0064,"120":0.0096,"121":0.01921,"122":0.04481,"123":0.09603,"124":2.76566,"125":1.51087,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 105 106 108"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 17.6","5.1":0.05442,"13.1":0.0096,"14.1":0.04481,"15.2-15.3":0.0032,"15.4":0.0032,"15.5":0.0032,"15.6":0.03201,"16.0":0.0032,"16.1":0.0064,"16.2":0.0096,"16.3":0.01921,"16.4":0.0032,"16.5":0.10243,"16.6":0.07682,"17.0":0.0032,"17.1":0.02561,"17.2":0.0096,"17.3":0.02561,"17.4":0.37132,"17.5":0.02881},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0012,"5.0-5.1":0.0012,"6.0-6.1":0.00299,"7.0-7.1":0.00419,"8.1-8.4":0.0012,"9.0-9.2":0.00299,"9.3":0.01376,"10.0-10.2":0.00239,"10.3":0.02154,"11.0-11.2":0.03171,"11.3-11.4":0.00598,"12.0-12.1":0.00359,"12.2-12.5":0.08676,"13.0-13.1":0.00179,"13.2":0.00838,"13.3":0.00419,"13.4-13.7":0.01915,"14.0-14.4":0.03291,"14.5-14.8":0.05086,"15.0-15.1":0.02453,"15.2-15.3":0.02692,"15.4":0.03051,"15.5":0.03829,"15.6-15.8":0.34463,"16.0":0.07838,"16.1":0.16154,"16.2":0.07838,"16.3":0.13582,"16.4":0.02872,"16.5":0.05804,"16.6-16.7":0.4625,"17.0":0.05026,"17.1":0.08197,"17.2":0.08556,"17.3":0.15795,"17.4":3.58688,"17.5":0.25309,"17.6":0},P:{"4":0.1129,"20":0.03079,"21":0.08211,"22":0.14369,"23":0.28737,"24":0.43106,"25":2.05267,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.01026,"7.2-7.4":0.32843,"9.2":0.01026,"11.1-11.2":0.07184,"13.0":0.01026,"14.0":0.02053,"15.0":0.01026,"16.0":0.04105,"17.0":0.01026,"18.0":0.02053,"19.0":0.09237},I:{"0":0.06772,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.63231,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0064,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0068,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.14907},R:{_:"0"},M:{"0":0.12918},Q:{_:"14.9"},O:{"0":0.14958},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NL.js b/node_modules/caniuse-lite/data/regions/NL.js index 491cf6e2d..752e1ea9f 100644 --- a/node_modules/caniuse-lite/data/regions/NL.js +++ b/node_modules/caniuse-lite/data/regions/NL.js @@ -1 +1 @@ -module.exports={C:{"38":0.01858,"43":0.01393,"44":0.0418,"45":0.00929,"48":0.00464,"50":0.00464,"51":0.00464,"52":0.01858,"53":0.00464,"55":0.00464,"56":0.00929,"60":0.01393,"64":0.00464,"78":0.00929,"81":0.02786,"102":0.00464,"104":0.00929,"110":0.00464,"115":0.18112,"124":0.00464,"125":0.00929,"128":0.40867,"132":0.00464,"133":0.00929,"134":0.00929,"135":0.05108,"136":0.03251,"137":0.04644,"138":0.11146,"139":1.91333,"140":0.26006,"141":0.00464,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 47 49 54 57 58 59 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 122 123 126 127 129 130 131 142 143 3.5 3.6"},D:{"38":0.01858,"41":0.00464,"42":0.00464,"43":0.00464,"45":0.05108,"46":0.00464,"47":0.00929,"48":0.13468,"49":0.03715,"50":0.00464,"51":0.00464,"52":0.03715,"53":0.00464,"54":0.00464,"55":0.00464,"56":0.00464,"57":0.00464,"58":0.00464,"59":0.00464,"60":0.00464,"66":0.00464,"72":0.07895,"74":0.00464,"75":0.00464,"79":0.01858,"80":0.00464,"81":0.00464,"85":0.00464,"86":0.00929,"87":0.01393,"88":0.02786,"90":0.00464,"91":0.00464,"92":0.10217,"93":0.02322,"94":0.00464,"96":0.0418,"98":0.00929,"99":0.00464,"102":0.00464,"103":0.13932,"104":0.26935,"105":0.00464,"106":0.00464,"107":0.00929,"108":0.06037,"109":0.37616,"110":0.00929,"111":0.00929,"112":0.01858,"113":0.00464,"114":0.01393,"115":0.00929,"116":0.0743,"117":0.02786,"118":0.31579,"119":0.01393,"120":0.05108,"121":0.05108,"122":0.25078,"123":0.02786,"124":0.13003,"125":0.40867,"126":0.08824,"127":0.01858,"128":0.10681,"129":0.20898,"130":0.0743,"131":1.14242,"132":1.06348,"133":1.10992,"134":0.24149,"135":0.57586,"136":3.10219,"137":14.6286,"138":0.56192,"139":0.00464,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 44 61 62 63 64 65 67 68 69 70 71 73 76 77 78 83 84 89 95 97 100 101 140 141"},F:{"46":0.00464,"89":0.02786,"90":0.01858,"95":0.02322,"102":0.00464,"105":0.00464,"113":0.18112,"114":0.00464,"117":0.00464,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00464,"96":0.19969,"103":0.00464,"108":0.00464,"109":0.05573,"119":0.00464,"122":0.00464,"124":0.00464,"126":0.00464,"127":0.00464,"128":0.00464,"129":0.01858,"130":0.0418,"131":0.05108,"132":0.03251,"133":0.02786,"134":0.05108,"135":0.10217,"136":1.05883,"137":5.29416,"138":0.40403,_:"12 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 104 105 106 107 110 111 112 113 114 115 116 117 118 120 121 123 125"},E:{"4":0.00464,"8":0.00464,"9":0.01393,"14":0.00464,_:"0 5 6 7 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.01393,"13.1":0.03715,"14.1":0.03715,"15.1":0.00464,"15.2-15.3":0.00464,"15.4":0.00929,"15.5":0.01393,"15.6":0.20434,"16.0":0.05108,"16.1":0.03251,"16.2":0.01858,"16.3":0.0418,"16.4":0.02322,"16.5":0.02786,"16.6":0.32972,"17.0":0.01393,"17.1":0.274,"17.2":0.01393,"17.3":0.02786,"17.4":0.07895,"17.5":0.08359,"17.6":0.274,"18.0":0.03251,"18.1":0.06502,"18.2":0.03251,"18.3":0.17647,"18.4":0.17647,"18.5":2.38702,"26.0":0.00464},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00339,"5.0-5.1":0,"6.0-6.1":0.00678,"7.0-7.1":0.00678,"8.1-8.4":0,"9.0-9.2":0.00339,"9.3":0.02034,"10.0-10.2":0.00169,"10.3":0.0339,"11.0-11.2":0.21695,"11.3-11.4":0.01186,"12.0-12.1":0.00339,"12.2-12.5":0.11356,"13.0-13.1":0.00169,"13.2":0.00508,"13.3":0.00339,"13.4-13.7":0.01864,"14.0-14.4":0.04407,"14.5-14.8":0.04407,"15.0-15.1":0.03051,"15.2-15.3":0.03051,"15.4":0.03729,"15.5":0.04068,"15.6-15.8":0.52544,"16.0":0.06949,"16.1":0.14238,"16.2":0.07288,"16.3":0.1339,"16.4":0.03051,"16.5":0.05424,"16.6-16.7":0.65934,"17.0":0.03559,"17.1":0.06271,"17.2":0.04915,"17.3":0.06949,"17.4":0.12373,"17.5":0.25933,"17.6-17.7":0.67798,"18.0":0.1678,"18.1":0.37797,"18.2":0.2,"18.3":0.85934,"18.4":0.91189,"18.5":10.69008,"26.0":0},P:{"4":0.02095,"20":0.01047,"21":0.02095,"22":0.02095,"23":0.03142,"24":0.02095,"25":0.0419,"26":0.11522,"27":0.13617,"28":4.47267,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01047,"17.0":0.01047,"19.0":0.01047},I:{"0":0.04278,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.52499,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00553,"7":0.00553,"8":0.02764,"9":0.02211,"10":0.01659,"11":0.1548,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.7526},R:{_:"0"},M:{"0":0.73927},Q:{"14.9":0.01071},O:{"0":0.29999},H:{"0":0}}; +module.exports={C:{"38":0.01382,"43":0.00921,"44":0.05068,"45":0.00921,"52":0.00921,"75":0.00461,"78":0.01382,"81":0.01382,"91":0.00461,"99":0.00461,"102":0.01382,"103":0.00921,"104":0.00461,"106":0.00461,"107":0.00461,"108":0.00461,"109":0.00461,"110":0.00461,"111":0.00461,"112":0.00461,"113":0.01382,"114":0.00461,"115":0.48834,"116":0.00461,"117":0.02304,"118":0.02764,"119":0.00461,"120":0.00461,"121":0.00921,"122":0.03225,"123":0.02304,"124":0.05528,"125":1.36367,"126":1.2485,"127":0.01382,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 100 101 105 128 129 3.5 3.6"},D:{"38":0.00921,"41":0.00461,"45":0.16125,"47":0.01382,"48":0.129,"49":0.03686,"52":0.03686,"61":0.00461,"66":0.00921,"78":0.00461,"79":0.03225,"80":0.00921,"81":0.00461,"83":0.00461,"84":0.00921,"85":0.01843,"86":0.23956,"87":0.02764,"88":0.01382,"89":0.00461,"90":0.00461,"91":0.00921,"92":0.16125,"93":0.02764,"94":0.01843,"96":0.05068,"97":0.01382,"98":0.00921,"99":0.03686,"100":0.23956,"101":0.46531,"102":0.26721,"103":0.31788,"104":0.3962,"105":0.03225,"106":0.10596,"107":0.01843,"108":0.14742,"109":0.76476,"110":0.01843,"111":0.01843,"112":0.02764,"113":0.22114,"114":0.25339,"115":0.02304,"116":0.14282,"117":0.03686,"118":0.07832,"119":0.05989,"120":0.14282,"121":0.18428,"122":0.34553,"123":1.37749,"124":14.22642,"125":5.49615,"126":0.00921,"127":0.00461,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 46 50 51 53 54 55 56 57 58 59 60 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 95 128"},F:{"46":0.00461,"85":0.00461,"95":0.03225,"102":0.00461,"105":0.00461,"106":0.04607,"107":0.1981,"108":0.01843,"109":0.9859,"110":0.05989,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00461,"13":0.00461,"92":0.00461,"107":0.00461,"108":0.00461,"109":0.10135,"110":0.00461,"111":0.00461,"112":0.00461,"113":0.00461,"114":0.01382,"115":0.00461,"116":0.00461,"117":0.00461,"118":0.00461,"119":0.01382,"120":0.03686,"121":0.02304,"122":0.0645,"123":0.28103,"124":4.74521,"125":2.80106,_:"14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106"},E:{"8":0.00461,"9":0.01843,"13":0.00461,"14":0.05989,"15":0.00921,_:"0 4 5 6 7 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00921,"13.1":0.0645,"14.1":0.08753,"15.1":0.01843,"15.2-15.3":0.01382,"15.4":0.02304,"15.5":0.03686,"15.6":0.35935,"16.0":0.04146,"16.1":0.05989,"16.2":0.05068,"16.3":0.12439,"16.4":0.04146,"16.5":0.07832,"16.6":0.53902,"17.0":0.07371,"17.1":0.11057,"17.2":0.1336,"17.3":0.13821,"17.4":2.58913,"17.5":0.41924},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00366,"5.0-5.1":0.00366,"6.0-6.1":0.00915,"7.0-7.1":0.01281,"8.1-8.4":0.00366,"9.0-9.2":0.00915,"9.3":0.04209,"10.0-10.2":0.00732,"10.3":0.06589,"11.0-11.2":0.097,"11.3-11.4":0.0183,"12.0-12.1":0.01098,"12.2-12.5":0.26538,"13.0-13.1":0.00549,"13.2":0.02562,"13.3":0.01281,"13.4-13.7":0.05857,"14.0-14.4":0.10066,"14.5-14.8":0.15557,"15.0-15.1":0.07504,"15.2-15.3":0.08236,"15.4":0.09334,"15.5":0.11713,"15.6-15.8":1.05419,"16.0":0.23975,"16.1":0.49415,"16.2":0.23975,"16.3":0.41545,"16.4":0.08785,"16.5":0.17753,"16.6-16.7":1.41473,"17.0":0.15374,"17.1":0.25074,"17.2":0.26172,"17.3":0.48317,"17.4":10.97195,"17.5":0.77417,"17.6":0},P:{"4":0.04216,"20":0.02108,"21":0.04216,"22":0.0527,"23":0.12647,"24":0.28456,"25":4.61625,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0","7.2-7.4":0.01054,"13.0":0.01054,"16.0":0.01054,"17.0":0.02108,"18.0":0.01054,"19.0":0.01054},I:{"0":0.05373,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.57716,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0048,"9":0.03359,"11":0.07678,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.83863},R:{_:"0"},M:{"0":0.57176},Q:{"14.9":0.00539},O:{"0":0.33443},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NO.js b/node_modules/caniuse-lite/data/regions/NO.js index a3f705234..55e3558c8 100644 --- a/node_modules/caniuse-lite/data/regions/NO.js +++ b/node_modules/caniuse-lite/data/regions/NO.js @@ -1 +1 @@ -module.exports={C:{"48":0.00502,"59":0.0452,"78":0.00502,"109":0.00502,"115":0.11048,"127":0.00502,"128":0.0452,"132":0.00502,"134":0.00502,"135":0.00502,"136":0.01004,"137":0.02009,"138":0.08035,"139":1.37603,"140":0.21595,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 141 142 143 3.5 3.6"},D:{"41":0.00502,"49":0.00502,"52":0.00502,"66":0.19586,"79":0.01004,"87":0.01507,"88":0.03013,"89":0.00502,"90":0.01004,"93":0.02009,"94":0.00502,"98":0.00502,"102":0.01004,"103":0.02009,"106":0.00502,"107":0.01004,"108":0.01507,"109":0.1607,"110":0.00502,"111":0.00502,"112":0.00502,"113":0.00502,"114":0.02009,"115":0.00502,"116":0.06529,"117":0.00502,"118":9.39616,"119":0.00502,"120":0.01004,"121":0.01004,"122":0.0452,"123":0.01507,"124":0.01507,"125":0.05022,"126":0.04018,"127":0.01004,"128":0.06026,"129":0.01004,"130":0.01507,"131":0.12053,"132":0.12053,"133":0.15066,"134":0.12555,"135":0.28625,"136":2.33523,"137":10.56629,"138":0.37665,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 91 92 95 96 97 99 100 101 104 105 139 140 141"},F:{"69":0.00502,"74":0.00502,"75":0.00502,"79":0.06529,"82":0.00502,"83":0.00502,"84":0.02511,"85":0.11048,"86":0.04018,"87":0.02009,"88":0.02009,"89":0.55744,"90":0.2963,"95":0.71312,"98":0.00502,"99":0.01004,"102":0.02511,"107":0.00502,"108":0.00502,"109":0.00502,"111":0.00502,"112":0.00502,"113":0.01004,"114":0.03515,"115":0.00502,"116":0.00502,"117":0.04018,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 76 77 78 80 81 91 92 93 94 96 97 100 101 103 104 105 106 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.02511,"109":0.02009,"114":0.00502,"115":0.00502,"122":0.00502,"124":0.00502,"126":0.00502,"127":0.00502,"128":0.00502,"129":0.00502,"130":0.01507,"131":0.01004,"132":0.02009,"133":0.01004,"134":0.02511,"135":0.03013,"136":0.85374,"137":3.81672,"138":0.27119,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 121 123 125"},E:{"14":0.00502,"15":0.00502,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 26.0","11.1":0.04018,"12.1":0.0452,"13.1":0.02009,"14.1":0.02511,"15.4":0.01004,"15.5":0.01004,"15.6":0.18581,"16.0":0.03013,"16.1":0.02009,"16.2":0.02009,"16.3":0.0452,"16.4":0.01507,"16.5":0.01507,"16.6":0.32643,"17.0":0.00502,"17.1":0.31639,"17.2":0.01507,"17.3":0.02511,"17.4":0.05524,"17.5":0.08537,"17.6":0.23603,"18.0":0.02511,"18.1":0.08035,"18.2":0.02009,"18.3":0.17075,"18.4":0.2059,"18.5":2.07409},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00492,"5.0-5.1":0,"6.0-6.1":0.00985,"7.0-7.1":0.00985,"8.1-8.4":0,"9.0-9.2":0.00492,"9.3":0.02955,"10.0-10.2":0.00246,"10.3":0.04924,"11.0-11.2":0.31515,"11.3-11.4":0.01723,"12.0-12.1":0.00492,"12.2-12.5":0.16496,"13.0-13.1":0.00246,"13.2":0.00739,"13.3":0.00492,"13.4-13.7":0.02708,"14.0-14.4":0.06402,"14.5-14.8":0.06402,"15.0-15.1":0.04432,"15.2-15.3":0.04432,"15.4":0.05417,"15.5":0.05909,"15.6-15.8":0.76326,"16.0":0.10095,"16.1":0.20682,"16.2":0.10587,"16.3":0.19451,"16.4":0.04432,"16.5":0.07879,"16.6-16.7":0.95776,"17.0":0.0517,"17.1":0.0911,"17.2":0.0714,"17.3":0.10095,"17.4":0.17973,"17.5":0.3767,"17.6-17.7":0.98485,"18.0":0.24375,"18.1":0.54905,"18.2":0.29053,"18.3":1.24829,"18.4":1.32462,"18.5":15.52858,"26.0":0},P:{"21":0.02102,"23":0.01051,"24":0.01051,"25":0.01051,"26":0.04204,"27":0.06307,"28":2.75391,_:"4 20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01051},I:{"0":0.00994,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":7.90009,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01004,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":14.34381},R:{_:"0"},M:{"0":0.27877},Q:{_:"14.9"},O:{"0":0.01991},H:{"0":0}}; +module.exports={C:{"52":0.0048,"59":0.05764,"78":0.01441,"87":0.00961,"91":0.0048,"102":0.0048,"103":0.0048,"107":0.0048,"111":0.0048,"113":0.0048,"115":0.33141,"118":0.00961,"120":0.0048,"121":0.0048,"122":0.00961,"123":0.04323,"124":0.06724,"125":0.91257,"126":0.75407,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 88 89 90 92 93 94 95 96 97 98 99 100 101 104 105 106 108 109 110 112 114 116 117 119 127 128 129 3.5 3.6"},D:{"38":0.0048,"41":0.0048,"49":0.01441,"66":0.24976,"79":0.00961,"83":0.0048,"86":0.04803,"87":0.08165,"89":0.01921,"90":0.00961,"91":0.00961,"92":0.0048,"93":0.0048,"94":0.01441,"95":0.0048,"96":0.0048,"98":0.0048,"99":0.0048,"100":0.04323,"101":0.08645,"102":0.04803,"103":0.09606,"104":0.06244,"105":0.00961,"106":0.0048,"107":0.00961,"108":0.01441,"109":0.43227,"110":0.02402,"111":0.00961,"112":0.03362,"113":0.21133,"114":0.26417,"115":0.01921,"116":0.17771,"117":0.01921,"118":8.09306,"119":0.03842,"120":0.13448,"121":0.13929,"122":0.35542,"123":1.63782,"124":13.19384,"125":4.66371,"126":0.0048,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 88 97 127 128"},F:{"87":0.0048,"95":0.02402,"102":0.0048,"105":0.0048,"106":0.01921,"107":0.49951,"108":0.03362,"109":1.51295,"110":0.05764,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.02882,"92":0.0048,"104":0.0048,"106":0.0048,"109":0.06244,"111":0.0048,"112":0.0048,"113":0.0048,"114":0.00961,"115":0.0048,"117":0.0048,"118":0.0048,"119":0.01921,"120":0.02402,"121":0.02402,"122":0.04803,"123":0.17771,"124":3.8472,"125":2.16615,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 105 107 108 110 116"},E:{"13":0.0048,"14":0.03362,"15":0.0048,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.0048,"11.1":0.04803,"12.1":0.01921,"13.1":0.11047,"14.1":0.12488,"15.1":0.01441,"15.2-15.3":0.01921,"15.4":0.03362,"15.5":0.06724,"15.6":0.40345,"16.0":0.03842,"16.1":0.08645,"16.2":0.07685,"16.3":0.17291,"16.4":0.06724,"16.5":0.09606,"16.6":0.71084,"17.0":0.06244,"17.1":0.14889,"17.2":0.1633,"17.3":0.18251,"17.4":3.04991,"17.5":0.43227},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00573,"5.0-5.1":0.00573,"6.0-6.1":0.01433,"7.0-7.1":0.02006,"8.1-8.4":0.00573,"9.0-9.2":0.01433,"9.3":0.06592,"10.0-10.2":0.01146,"10.3":0.10318,"11.0-11.2":0.15191,"11.3-11.4":0.02866,"12.0-12.1":0.0172,"12.2-12.5":0.4156,"13.0-13.1":0.0086,"13.2":0.04013,"13.3":0.02006,"13.4-13.7":0.09172,"14.0-14.4":0.15764,"14.5-14.8":0.24363,"15.0-15.1":0.11751,"15.2-15.3":0.12898,"15.4":0.14618,"15.5":0.18344,"15.6-15.8":1.65092,"16.0":0.37547,"16.1":0.77387,"16.2":0.37547,"16.3":0.65062,"16.4":0.13758,"16.5":0.27802,"16.6-16.7":2.21555,"17.0":0.24076,"17.1":0.39267,"17.2":0.40986,"17.3":0.75667,"17.4":17.18273,"17.5":1.21239,"17.6":0},P:{"4":0.03127,"20":0.01042,"21":0.02085,"22":0.02085,"23":0.06254,"24":0.15636,"25":3.54414,"5.0-5.4":0.01042,_:"6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","17.0":0.01042,"19.0":0.01042},I:{"0":0.02589,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.27549,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0048,"11":0.07205,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":18.66147},R:{_:"0"},M:{"0":0.42104},Q:{_:"14.9"},O:{"0":0.01559},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NP.js b/node_modules/caniuse-lite/data/regions/NP.js index 6e8cfa686..3f506a096 100644 --- a/node_modules/caniuse-lite/data/regions/NP.js +++ b/node_modules/caniuse-lite/data/regions/NP.js @@ -1 +1 @@ -module.exports={C:{"91":0.00274,"99":0.00547,"100":0.00274,"103":0.00547,"115":0.1012,"127":0.00274,"128":0.01368,"130":0.00274,"133":0.00274,"134":0.00274,"135":0.00547,"136":0.00547,"137":0.00547,"138":0.03282,"139":3.32303,"140":0.27077,"141":0.00547,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 132 142 143 3.5 3.6"},D:{"39":0.00274,"41":0.00274,"42":0.00274,"43":0.00274,"44":0.00274,"46":0.00274,"47":0.00274,"49":0.00274,"50":0.00274,"51":0.00274,"52":0.00274,"55":0.00274,"56":0.00274,"57":0.00274,"58":0.00274,"59":0.00274,"60":0.00274,"65":0.00274,"70":0.00274,"79":0.00547,"80":0.00274,"81":0.00274,"83":0.00274,"85":0.00274,"87":0.00821,"88":0.00547,"90":0.00274,"91":0.00547,"92":0.00274,"93":0.00274,"98":0.00274,"103":0.03009,"104":0.00274,"106":0.00547,"108":0.00274,"109":1.05298,"110":0.00274,"111":0.00274,"113":0.00274,"114":0.00547,"115":0.00274,"116":0.03009,"118":0.00547,"119":0.00274,"120":0.00547,"121":0.01094,"122":0.02735,"123":0.00821,"124":0.01641,"125":0.30906,"126":0.01641,"127":0.00547,"128":0.0465,"129":0.01641,"130":0.01094,"131":0.04376,"132":0.03556,"133":0.02462,"134":0.03556,"135":0.12581,"136":1.50972,"137":14.77994,"138":0.67008,"139":0.01368,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 45 48 53 54 61 62 63 64 66 67 68 69 71 72 73 74 75 76 77 78 84 86 89 94 95 96 97 99 100 101 102 105 107 112 117 140 141"},F:{"89":0.01094,"90":0.00547,"95":0.00821,"102":0.00274,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00274,"92":0.00274,"109":0.00547,"114":0.00274,"120":0.00274,"122":0.00274,"125":0.00274,"126":0.00274,"131":0.00547,"132":0.00274,"133":0.00547,"134":0.01094,"135":0.01368,"136":0.19419,"137":1.32374,"138":0.11487,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 127 128 129 130"},E:{"13":0.00274,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.4 26.0","12.1":0.00547,"13.1":0.00547,"14.1":0.00274,"15.2-15.3":0.00274,"15.5":0.00274,"15.6":0.01915,"16.0":0.00274,"16.1":0.01094,"16.2":0.00274,"16.3":0.00274,"16.4":0.00274,"16.5":0.00274,"16.6":0.03009,"17.0":0.00274,"17.1":0.00821,"17.2":0.00274,"17.3":0.00274,"17.4":0.00547,"17.5":0.01094,"17.6":0.03829,"18.0":0.00274,"18.1":0.01915,"18.2":0.00547,"18.3":0.02462,"18.4":0.02462,"18.5":0.20513},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00218,"5.0-5.1":0,"6.0-6.1":0.00437,"7.0-7.1":0.00437,"8.1-8.4":0,"9.0-9.2":0.00218,"9.3":0.0131,"10.0-10.2":0.00109,"10.3":0.02184,"11.0-11.2":0.13975,"11.3-11.4":0.00764,"12.0-12.1":0.00218,"12.2-12.5":0.07315,"13.0-13.1":0.00109,"13.2":0.00328,"13.3":0.00218,"13.4-13.7":0.01201,"14.0-14.4":0.02839,"14.5-14.8":0.02839,"15.0-15.1":0.01965,"15.2-15.3":0.01965,"15.4":0.02402,"15.5":0.0262,"15.6-15.8":0.33845,"16.0":0.04476,"16.1":0.09171,"16.2":0.04695,"16.3":0.08625,"16.4":0.01965,"16.5":0.03494,"16.6-16.7":0.4247,"17.0":0.02293,"17.1":0.0404,"17.2":0.03166,"17.3":0.04476,"17.4":0.0797,"17.5":0.16704,"17.6-17.7":0.43671,"18.0":0.10809,"18.1":0.24347,"18.2":0.12883,"18.3":0.55353,"18.4":0.58738,"18.5":6.88585,"26.0":0},P:{"20":0.06237,"23":0.0104,"25":0.0104,"26":0.02079,"27":0.02079,"28":0.46778,_:"4 21 22 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0104},I:{"0":0.02175,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.31962,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00274,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.44381},R:{_:"0"},M:{"0":0.19613},Q:{_:"14.9"},O:{"0":0.63197},H:{"0":0}}; +module.exports={C:{"52":0.00699,"58":0.00233,"65":0.00233,"99":0.00233,"100":0.00233,"103":0.00233,"110":0.00233,"112":0.00233,"114":0.00233,"115":0.15851,"117":0.00233,"118":0.00233,"119":0.00233,"120":0.00233,"121":0.00233,"122":0.00466,"123":0.00699,"124":0.01399,"125":0.47552,"126":0.45455,"127":0.01865,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 101 102 104 105 106 107 108 109 111 113 116 128 129 3.5 3.6"},D:{"45":0.00233,"69":0.00233,"72":0.00233,"73":0.00233,"74":0.00233,"75":0.00233,"76":0.00233,"79":0.00466,"83":0.00233,"86":0.00233,"87":0.00932,"88":0.00466,"90":0.00233,"91":0.00233,"92":0.00233,"93":0.00466,"95":0.00233,"99":0.00233,"100":0.00466,"102":0.00233,"103":0.0373,"104":0.00466,"105":0.00233,"106":0.01632,"107":0.00699,"108":0.00699,"109":1.64802,"110":0.00233,"111":0.00466,"112":0.00466,"113":0.00466,"114":0.00932,"115":0.00466,"116":0.04196,"117":0.01166,"118":0.00932,"119":0.02564,"120":0.06527,"121":0.05128,"122":0.13753,"123":0.28438,"124":11.49183,"125":4.84615,"126":0.04429,"127":0.00233,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 77 78 80 81 84 85 89 94 96 97 98 101 128"},F:{"85":0.00233,"95":0.01399,"107":0.01865,"108":0.00233,"109":0.25874,"110":0.02098,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00233,"92":0.00699,"108":0.00233,"109":0.01399,"114":0.00233,"115":0.00233,"117":0.00233,"119":0.00233,"120":0.00932,"121":0.00699,"122":0.01166,"123":0.01632,"124":1.01865,"125":0.63869,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 116 118"},E:{"13":0.00233,"14":0.00466,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00233,"12.1":0.00233,"13.1":0.00699,"14.1":0.01865,"15.1":0.00699,"15.2-15.3":0.00466,"15.4":0.00466,"15.5":0.00699,"15.6":0.03263,"16.0":0.00466,"16.1":0.01166,"16.2":0.00233,"16.3":0.01166,"16.4":0.00699,"16.5":0.00932,"16.6":0.06527,"17.0":0.00932,"17.1":0.01399,"17.2":0.02797,"17.3":0.01632,"17.4":0.1958,"17.5":0.04196},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00197,"5.0-5.1":0.00197,"6.0-6.1":0.00492,"7.0-7.1":0.00689,"8.1-8.4":0.00197,"9.0-9.2":0.00492,"9.3":0.02263,"10.0-10.2":0.00394,"10.3":0.03542,"11.0-11.2":0.05214,"11.3-11.4":0.00984,"12.0-12.1":0.0059,"12.2-12.5":0.14265,"13.0-13.1":0.00295,"13.2":0.01377,"13.3":0.00689,"13.4-13.7":0.03148,"14.0-14.4":0.05411,"14.5-14.8":0.08362,"15.0-15.1":0.04034,"15.2-15.3":0.04427,"15.4":0.05017,"15.5":0.06296,"15.6-15.8":0.56667,"16.0":0.12888,"16.1":0.26563,"16.2":0.12888,"16.3":0.22332,"16.4":0.04722,"16.5":0.09543,"16.6-16.7":0.76048,"17.0":0.08264,"17.1":0.13478,"17.2":0.14068,"17.3":0.25972,"17.4":5.89791,"17.5":0.41615,"17.6":0},P:{"4":0.03243,"20":0.01081,"21":0.01081,"22":0.01081,"23":0.03243,"24":0.04324,"25":0.46486,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.03243,"17.0":0.01081,"19.0":0.01081},I:{"0":0.04583,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.70546,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00233,"11":0.00466,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.35361},R:{_:"0"},M:{"0":0.04601},Q:{_:"14.9"},O:{"0":0.61344},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NR.js b/node_modules/caniuse-lite/data/regions/NR.js index 315123697..5802b8e9e 100644 --- a/node_modules/caniuse-lite/data/regions/NR.js +++ b/node_modules/caniuse-lite/data/regions/NR.js @@ -1 +1 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 3.5 3.6"},D:{"49":0.04864,"53":0.02506,"83":0.04864,"107":0.04864,"109":0.71047,"122":0.02506,"125":0.02506,"135":0.09728,"136":0.71047,"137":4.99539,"138":0.1474,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 126 127 128 129 130 131 132 133 134 139 140 141"},F:{"89":0.02506,"90":0.0737,"102":0.02506,"117":0.02506,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"126":0.29333,"133":0.04864,"134":0.02506,"135":0.17098,"136":0.0737,"137":1.02885,"138":0.1474,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 131 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.6 18.0 18.1 18.2 18.4 26.0","16.6":0.02506,"17.5":0.02506,"18.3":0.02506,"18.5":0.09728},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00099,"5.0-5.1":0,"6.0-6.1":0.00198,"7.0-7.1":0.00198,"8.1-8.4":0,"9.0-9.2":0.00099,"9.3":0.00593,"10.0-10.2":0.00049,"10.3":0.00989,"11.0-11.2":0.0633,"11.3-11.4":0.00346,"12.0-12.1":0.00099,"12.2-12.5":0.03313,"13.0-13.1":0.00049,"13.2":0.00148,"13.3":0.00099,"13.4-13.7":0.00544,"14.0-14.4":0.01286,"14.5-14.8":0.01286,"15.0-15.1":0.0089,"15.2-15.3":0.0089,"15.4":0.01088,"15.5":0.01187,"15.6-15.8":0.1533,"16.0":0.02027,"16.1":0.04154,"16.2":0.02126,"16.3":0.03907,"16.4":0.0089,"16.5":0.01582,"16.6-16.7":0.19236,"17.0":0.01038,"17.1":0.0183,"17.2":0.01434,"17.3":0.02027,"17.4":0.0361,"17.5":0.07566,"17.6-17.7":0.1978,"18.0":0.04896,"18.1":0.11028,"18.2":0.05835,"18.3":0.25072,"18.4":0.26605,"18.5":3.11886,"26.0":0},P:{"24":0.07302,"26":0.05216,"27":0.02086,"28":0.74066,_:"4 20 21 22 23 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":1.42384,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":82.32077},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":0.15347},H:{"0":0}}; +module.exports={C:{"125":0.21161,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 3.5 3.6"},D:{"120":0.14208,"122":0.06953,"124":9.23224,"125":5.35676,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 123 126 127 128"},F:{"109":3.31321,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.14208,"105":0.06953,"123":0.70436,"124":3.94502,"125":5.35676,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122"},E:{"14":0.06953,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00136,"5.0-5.1":0.00136,"6.0-6.1":0.00341,"7.0-7.1":0.00477,"8.1-8.4":0.00136,"9.0-9.2":0.00341,"9.3":0.01568,"10.0-10.2":0.00273,"10.3":0.02454,"11.0-11.2":0.03612,"11.3-11.4":0.00682,"12.0-12.1":0.00409,"12.2-12.5":0.09883,"13.0-13.1":0.00204,"13.2":0.00954,"13.3":0.00477,"13.4-13.7":0.02181,"14.0-14.4":0.03749,"14.5-14.8":0.05793,"15.0-15.1":0.02794,"15.2-15.3":0.03067,"15.4":0.03476,"15.5":0.04362,"15.6-15.8":0.39258,"16.0":0.08928,"16.1":0.18402,"16.2":0.08928,"16.3":0.15471,"16.4":0.03271,"16.5":0.06611,"16.6-16.7":0.52684,"17.0":0.05725,"17.1":0.09337,"17.2":0.09746,"17.3":0.17993,"17.4":4.08592,"17.5":0.2883,"17.6":0},P:{"23":0.42387,"24":0.42387,"25":1.14042,_:"4 20 21 22 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.21541,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00013,"4.4":0,"4.4.3-4.4.4":0.00048},K:{"0":0.42554,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.80228},R:{_:"0"},M:{"0":0.13952},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NU.js b/node_modules/caniuse-lite/data/regions/NU.js index 908d9afa8..4e542e739 100644 --- a/node_modules/caniuse-lite/data/regions/NU.js +++ b/node_modules/caniuse-lite/data/regions/NU.js @@ -1 +1 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 3.5 3.6"},D:{_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.4 17.0 17.2 17.3 17.4 17.5 18.0 18.2 26.0","16.3":1.11665,"16.5":0.15855,"16.6":2.23329,"17.1":0.63873,"17.6":3.34994,"18.1":0.15855,"18.3":0.15855,"18.4":3.18912,"18.5":11.16645},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01547,"5.0-5.1":0,"6.0-6.1":0.03094,"7.0-7.1":0.03094,"8.1-8.4":0,"9.0-9.2":0.01547,"9.3":0.09282,"10.0-10.2":0.00774,"10.3":0.1547,"11.0-11.2":0.99008,"11.3-11.4":0.05415,"12.0-12.1":0.01547,"12.2-12.5":0.51825,"13.0-13.1":0.00774,"13.2":0.02321,"13.3":0.01547,"13.4-13.7":0.08509,"14.0-14.4":0.20111,"14.5-14.8":0.20111,"15.0-15.1":0.13923,"15.2-15.3":0.13923,"15.4":0.17017,"15.5":0.18564,"15.6-15.8":2.39785,"16.0":0.31714,"16.1":0.64974,"16.2":0.33261,"16.3":0.61107,"16.4":0.13923,"16.5":0.24752,"16.6-16.7":3.00892,"17.0":0.16244,"17.1":0.2862,"17.2":0.22432,"17.3":0.31714,"17.4":0.56466,"17.5":1.18346,"17.6-17.7":3.094,"18.0":0.76577,"18.1":1.72491,"18.2":0.91273,"18.3":3.92165,"18.4":4.16143,"18.5":48.78465,"26.0":0},P:{_:"4 20 21 22 23 24 25 26 27 28 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{_:"0"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 3.5 3.6"},D:{"124":2.1361,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 125 126 127 128"},F:{"109":0.37031,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"124":0.14812,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.4 16.2 17.0 17.6","15.2-15.3":0.07406,"15.5":0.29625,"15.6":0.5886,"16.0":0.14812,"16.1":0.07406,"16.3":0.14812,"16.4":0.07406,"16.5":0.29625,"16.6":3.53549,"17.1":1.62157,"17.2":0.07406,"17.3":0.14812,"17.4":22.84228,"17.5":4.8647},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01192,"5.0-5.1":0.01192,"6.0-6.1":0.0298,"7.0-7.1":0.04172,"8.1-8.4":0.01192,"9.0-9.2":0.0298,"9.3":0.13707,"10.0-10.2":0.02384,"10.3":0.21454,"11.0-11.2":0.31585,"11.3-11.4":0.05959,"12.0-12.1":0.03576,"12.2-12.5":0.86412,"13.0-13.1":0.01788,"13.2":0.08343,"13.3":0.04172,"13.4-13.7":0.1907,"14.0-14.4":0.32777,"14.5-14.8":0.50655,"15.0-15.1":0.24434,"15.2-15.3":0.26818,"15.4":0.30393,"15.5":0.38141,"15.6-15.8":3.43265,"16.0":0.78069,"16.1":1.60905,"16.2":0.78069,"16.3":1.3528,"16.4":0.28605,"16.5":0.57807,"16.6-16.7":4.60666,"17.0":0.50059,"17.1":0.81645,"17.2":0.8522,"17.3":1.5733,"17.4":35.72694,"17.5":2.52085,"17.6":0},P:{_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":0.14642},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":1.26901},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/NZ.js b/node_modules/caniuse-lite/data/regions/NZ.js index 8f99e9a91..27e96f54d 100644 --- a/node_modules/caniuse-lite/data/regions/NZ.js +++ b/node_modules/caniuse-lite/data/regions/NZ.js @@ -1 +1 @@ -module.exports={C:{"37":0.01313,"48":0.01313,"52":0.00875,"78":0.01751,"88":0.00438,"102":0.00438,"113":0.00875,"115":0.12693,"121":0.00438,"125":0.00438,"127":0.00438,"128":0.06566,"133":0.00875,"134":0.00875,"135":0.00875,"136":0.01313,"137":0.01751,"138":0.14006,"139":1.58447,"140":0.22323,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 122 123 124 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"34":0.00438,"38":0.04815,"39":0.07879,"40":0.07441,"41":0.07441,"42":0.07879,"43":0.07441,"44":0.07879,"45":0.07441,"46":0.07441,"47":0.07879,"48":0.07441,"49":0.07879,"50":0.07879,"51":0.07879,"52":0.07441,"53":0.07879,"54":0.07879,"55":0.07441,"56":0.07441,"57":0.07879,"58":0.07879,"59":0.07879,"60":0.07441,"61":0.00438,"68":0.00438,"70":0.00438,"71":0.00438,"75":0.00438,"76":0.00438,"78":0.00438,"79":0.04377,"80":0.02189,"83":0.00438,"86":0.00438,"87":0.02626,"88":0.00438,"89":0.00438,"90":0.04815,"92":0.00438,"93":0.01751,"94":0.00438,"95":0.01313,"96":0.00438,"97":0.00438,"98":0.00438,"99":0.00875,"101":0.00438,"102":0.00875,"103":0.10943,"105":0.00438,"107":0.00438,"108":0.03502,"109":0.38955,"110":0.00875,"111":0.01313,"112":0.00438,"113":0.00875,"114":0.01751,"115":0.00438,"116":0.13569,"117":0.00438,"118":0.00438,"119":0.02626,"120":0.02626,"121":0.03064,"122":0.08316,"123":0.02189,"124":0.04377,"125":0.0569,"126":0.0569,"127":0.02189,"128":0.11818,"129":0.02626,"130":0.03939,"131":0.14444,"132":0.07441,"133":0.1138,"134":0.14444,"135":0.41582,"136":3.54537,"137":16.8602,"138":0.69157,"139":0.02626,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 62 63 64 65 66 67 69 72 73 74 77 81 84 85 91 100 104 106 140 141"},F:{"45":0.00438,"46":0.00438,"89":0.00438,"90":0.00438,"95":0.01751,_:"9 11 12 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 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00875,"104":0.00438,"105":0.00438,"109":0.02189,"111":0.00438,"113":0.00438,"114":0.00438,"120":0.00438,"121":0.00438,"123":0.00438,"124":0.00875,"125":0.00438,"126":0.00875,"127":0.01751,"128":0.00438,"129":0.01751,"130":0.01313,"131":0.01751,"132":0.02189,"133":0.01313,"134":0.07879,"135":0.07879,"136":0.80975,"137":4.86285,"138":0.41582,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 106 107 108 110 112 115 116 117 118 119 122"},E:{"13":0.00875,"14":0.01751,"15":0.00875,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00875,"13.1":0.04815,"14.1":0.06566,"15.1":0.00438,"15.2-15.3":0.01313,"15.4":0.01313,"15.5":0.02189,"15.6":0.34141,"16.0":0.06566,"16.1":0.07003,"16.2":0.03502,"16.3":0.06566,"16.4":0.01751,"16.5":0.02626,"16.6":0.4377,"17.0":0.00438,"17.1":0.38955,"17.2":0.01751,"17.3":0.03502,"17.4":0.0569,"17.5":0.1138,"17.6":0.39393,"18.0":0.02189,"18.1":0.09192,"18.2":0.02626,"18.3":0.21885,"18.4":0.18821,"18.5":2.84943,"26.0":0.00438},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00274,"5.0-5.1":0,"6.0-6.1":0.00549,"7.0-7.1":0.00549,"8.1-8.4":0,"9.0-9.2":0.00274,"9.3":0.01646,"10.0-10.2":0.00137,"10.3":0.02743,"11.0-11.2":0.17555,"11.3-11.4":0.0096,"12.0-12.1":0.00274,"12.2-12.5":0.09189,"13.0-13.1":0.00137,"13.2":0.00411,"13.3":0.00274,"13.4-13.7":0.01509,"14.0-14.4":0.03566,"14.5-14.8":0.03566,"15.0-15.1":0.02469,"15.2-15.3":0.02469,"15.4":0.03017,"15.5":0.03291,"15.6-15.8":0.42515,"16.0":0.05623,"16.1":0.1152,"16.2":0.05897,"16.3":0.10834,"16.4":0.02469,"16.5":0.04389,"16.6-16.7":0.53349,"17.0":0.0288,"17.1":0.05074,"17.2":0.03977,"17.3":0.05623,"17.4":0.10012,"17.5":0.20983,"17.6-17.7":0.54858,"18.0":0.13577,"18.1":0.30583,"18.2":0.16183,"18.3":0.69532,"18.4":0.73784,"18.5":8.64973,"26.0":0},P:{"4":0.05317,"20":0.01063,"21":0.02127,"22":0.01063,"23":0.01063,"24":0.02127,"25":0.05317,"26":0.04254,"27":0.09571,"28":2.19066,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01063,"13.0":0.01063,"14.0":0.01063},I:{"0":0.02245,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.18556,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04902,"10":0.02451,"11":0.04902,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.98822},R:{_:"0"},M:{"0":0.46109},Q:{"14.9":0.00562},O:{"0":0.06185},H:{"0":0}}; +module.exports={C:{"34":0.00457,"37":0.00914,"48":0.00457,"52":0.03198,"54":0.00457,"59":0.0137,"78":0.05482,"90":0.00457,"113":0.0137,"114":0.00457,"115":0.22383,"116":0.00457,"118":0.00457,"119":0.00457,"120":0.00457,"121":0.00457,"122":0.00457,"123":0.0137,"124":0.05938,"125":1.04607,"126":0.88619,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 38 39 40 41 42 43 44 45 46 47 49 50 51 53 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 117 127 128 129 3.5 3.6"},D:{"34":0.00914,"38":0.09136,"41":0.00457,"49":0.01827,"52":0.00457,"53":0.00457,"56":0.00457,"59":0.00914,"61":0.00457,"65":0.00457,"66":0.07766,"73":0.00457,"74":0.00457,"75":0.00914,"76":0.00457,"77":0.00457,"78":0.00457,"79":0.06395,"80":0.00457,"83":0.00914,"85":0.00457,"86":0.00457,"87":0.04111,"88":0.0137,"89":0.00914,"90":0.08222,"91":0.00457,"92":0.00457,"93":0.03654,"94":0.02741,"95":0.00914,"96":0.00457,"97":0.00914,"98":0.03198,"99":0.01827,"100":0.00457,"101":0.00457,"102":0.01827,"103":0.25581,"104":0.00914,"105":0.00914,"106":0.0137,"107":0.0137,"108":0.01827,"109":0.6989,"110":0.02284,"111":0.01827,"112":0.01827,"113":0.25581,"114":0.25581,"115":0.0137,"116":0.27865,"117":0.02284,"118":0.03654,"119":0.11877,"120":0.16445,"121":0.25124,"122":0.4568,"123":2.08301,"124":17.38581,"125":5.46333,"126":0.01827,"127":0.00914,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 42 43 44 45 46 47 48 50 51 54 55 57 58 60 62 63 64 67 68 69 70 71 72 81 84 128"},F:{"42":0.00457,"45":0.00457,"46":0.0137,"82":0.00457,"83":0.00457,"95":0.02284,"107":0.19186,"108":0.0137,"109":0.62582,"110":0.02284,_:"9 11 12 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 43 44 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00914,"18":0.00914,"92":0.00457,"103":0.00457,"105":0.00914,"109":0.03198,"110":0.00457,"111":0.00457,"113":0.01827,"114":0.00457,"115":0.00457,"117":0.00457,"118":0.00457,"119":0.0137,"120":0.03654,"121":0.02284,"122":0.05025,"123":0.22383,"124":4.02898,"125":2.05103,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 106 107 108 112 116"},E:{"13":0.04568,"14":0.06852,"15":0.00914,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.0137,"12.1":0.0137,"13.1":0.12334,"14.1":0.17815,"15.1":0.01827,"15.2-15.3":0.03654,"15.4":0.03198,"15.5":0.07766,"15.6":0.56186,"16.0":0.04568,"16.1":0.1005,"16.2":0.08222,"16.3":0.18729,"16.4":0.04568,"16.5":0.10963,"16.6":0.70347,"17.0":0.03654,"17.1":0.10506,"17.2":0.14161,"17.3":0.21013,"17.4":3.05142,"17.5":0.3426},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00258,"5.0-5.1":0.00258,"6.0-6.1":0.00644,"7.0-7.1":0.00902,"8.1-8.4":0.00258,"9.0-9.2":0.00644,"9.3":0.02962,"10.0-10.2":0.00515,"10.3":0.04637,"11.0-11.2":0.06826,"11.3-11.4":0.01288,"12.0-12.1":0.00773,"12.2-12.5":0.18675,"13.0-13.1":0.00386,"13.2":0.01803,"13.3":0.00902,"13.4-13.7":0.04121,"14.0-14.4":0.07084,"14.5-14.8":0.10947,"15.0-15.1":0.05281,"15.2-15.3":0.05796,"15.4":0.06568,"15.5":0.08243,"15.6-15.8":0.74185,"16.0":0.16872,"16.1":0.34774,"16.2":0.16872,"16.3":0.29236,"16.4":0.06182,"16.5":0.12493,"16.6-16.7":0.99557,"17.0":0.10819,"17.1":0.17645,"17.2":0.18417,"17.3":0.34001,"17.4":7.72112,"17.5":0.54479,"17.6":0},P:{"4":0.13862,"20":0.01066,"21":0.04265,"22":0.04265,"23":0.06398,"24":0.14928,"25":2.02593,"5.0-5.4":0.03199,"6.2-6.4":0.02133,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 15.0 18.0","13.0":0.01066,"14.0":0.01066,"16.0":0.02133,"17.0":0.01066,"19.0":0.01066},I:{"0":0.03788,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.16839,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02132,"11":0.17054,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.2808},R:{_:"0"},M:{"0":0.39654},Q:{"14.9":0.0163},O:{"0":0.04889},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/OM.js b/node_modules/caniuse-lite/data/regions/OM.js index adf1a2900..03c58f8ca 100644 --- a/node_modules/caniuse-lite/data/regions/OM.js +++ b/node_modules/caniuse-lite/data/regions/OM.js @@ -1 +1 @@ -module.exports={C:{"106":0.00267,"109":0.00267,"115":0.03204,"127":0.01068,"128":0.00534,"132":0.00801,"134":0.00267,"135":0.00267,"136":0.00534,"137":0.00267,"138":0.02403,"139":0.28569,"140":0.05874,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 141 142 143 3.5 3.6"},D:{"11":0.00267,"34":0.00534,"38":0.00534,"39":0.00534,"40":0.00534,"41":0.00534,"42":0.00534,"43":0.00534,"44":0.00534,"45":0.00534,"46":0.00534,"47":0.00534,"48":0.00267,"49":0.00534,"50":0.00534,"51":0.00534,"52":0.00534,"53":0.00534,"54":0.00534,"55":0.00534,"56":0.00801,"57":0.00267,"58":0.17889,"59":0.00534,"60":0.00267,"65":0.00267,"68":0.00801,"69":0.00267,"73":0.00801,"74":0.00267,"75":0.00534,"76":0.00267,"78":0.00267,"79":0.04005,"80":0.00267,"81":0.00267,"83":0.02403,"86":0.00267,"87":0.09612,"88":0.01068,"90":0.00267,"91":0.00801,"93":0.01869,"94":0.00267,"95":0.01335,"98":0.01335,"101":0.01068,"103":0.267,"105":0.01602,"106":0.00534,"107":0.01068,"108":0.02403,"109":0.61677,"110":0.01869,"111":0.02403,"112":0.01068,"113":0.00267,"114":0.04272,"115":0.00267,"116":0.0267,"118":0.00267,"119":0.03738,"120":0.01335,"121":0.00534,"122":0.05607,"123":0.00534,"124":0.02136,"125":2.46975,"126":0.06408,"127":0.00534,"128":0.02403,"129":0.01335,"130":0.01602,"131":0.03204,"132":0.04272,"133":0.03471,"134":0.11748,"135":0.09078,"136":1.70079,"137":10.81083,"138":0.43521,"139":0.00534,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 66 67 70 71 72 77 84 85 89 92 96 97 99 100 102 104 117 140 141"},F:{"33":0.00267,"46":0.00534,"89":0.01068,"90":0.02136,"94":0.00267,"95":0.00801,"117":0.00534,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00267,"18":0.01068,"92":0.00534,"106":0.00267,"107":0.00267,"108":0.00267,"109":0.02937,"114":0.00267,"119":0.00267,"121":0.00267,"122":0.00267,"124":0.02403,"126":0.00267,"130":0.00267,"131":0.01068,"132":0.00801,"133":0.00534,"134":0.02403,"135":0.02403,"136":0.33108,"137":1.9758,"138":0.16554,_:"12 13 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 110 111 112 113 115 116 117 118 120 123 125 127 128 129"},E:{"15":0.00267,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.4","5.1":0.00534,"12.1":0.00267,"13.1":0.01602,"14.1":0.02136,"15.1":0.00267,"15.2-15.3":0.00267,"15.5":0.00267,"15.6":0.06675,"16.0":0.00267,"16.1":0.01602,"16.2":0.00534,"16.3":0.01335,"16.4":0.00534,"16.5":0.02136,"16.6":0.06942,"17.0":0.00267,"17.1":0.02937,"17.2":0.00267,"17.3":0.00801,"17.4":0.00534,"17.5":0.02136,"17.6":0.07209,"18.0":0.01068,"18.1":0.02403,"18.2":0.01068,"18.3":0.03738,"18.4":0.03204,"18.5":0.47793,"26.0":0.00267},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00234,"5.0-5.1":0,"6.0-6.1":0.00468,"7.0-7.1":0.00468,"8.1-8.4":0,"9.0-9.2":0.00234,"9.3":0.01404,"10.0-10.2":0.00117,"10.3":0.02339,"11.0-11.2":0.14972,"11.3-11.4":0.00819,"12.0-12.1":0.00234,"12.2-12.5":0.07837,"13.0-13.1":0.00117,"13.2":0.00351,"13.3":0.00234,"13.4-13.7":0.01287,"14.0-14.4":0.03041,"14.5-14.8":0.03041,"15.0-15.1":0.02105,"15.2-15.3":0.02105,"15.4":0.02573,"15.5":0.02807,"15.6-15.8":0.36261,"16.0":0.04796,"16.1":0.09826,"16.2":0.0503,"16.3":0.09241,"16.4":0.02105,"16.5":0.03743,"16.6-16.7":0.45502,"17.0":0.02456,"17.1":0.04328,"17.2":0.03392,"17.3":0.04796,"17.4":0.08539,"17.5":0.17897,"17.6-17.7":0.46788,"18.0":0.1158,"18.1":0.26084,"18.2":0.13803,"18.3":0.59304,"18.4":0.6293,"18.5":7.37735,"26.0":0},P:{"4":0.10392,"21":0.04157,"22":0.02078,"23":0.02078,"24":0.03118,"25":0.04157,"26":0.09353,"27":0.17666,"28":1.44447,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01039,"6.2-6.4":0.01039,"7.2-7.4":0.05196,"13.0":0.01039,"17.0":0.02078,"19.0":0.01039},I:{"0":0.05853,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.7842,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01602,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.30647},R:{_:"0"},M:{"0":0.07329},Q:{_:"14.9"},O:{"0":1.00407},H:{"0":0}}; +module.exports={C:{"34":0.005,"66":0.005,"88":0.0025,"95":0.00751,"103":0.0025,"108":0.0025,"115":0.05504,"117":0.005,"118":0.0025,"124":0.00751,"125":0.17514,"126":0.14011,"127":0.0025,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 107 109 110 111 112 113 114 116 119 120 121 122 123 128 129 3.5 3.6"},D:{"11":0.01001,"34":0.0025,"38":0.01001,"47":0.0025,"49":0.00751,"55":0.0025,"58":0.16013,"59":0.0025,"62":0.005,"64":0.0025,"65":0.005,"66":0.005,"68":0.00751,"69":0.00751,"70":0.00751,"72":0.0025,"73":0.01501,"74":0.0025,"75":0.0025,"76":0.00751,"77":0.0025,"78":0.0025,"79":0.06755,"81":0.00751,"83":0.02502,"84":0.0025,"85":0.0025,"86":0.00751,"87":0.03253,"88":0.02252,"89":0.0025,"90":0.00751,"91":0.00751,"92":0.0025,"93":0.05504,"94":0.005,"95":0.02252,"96":0.005,"97":0.005,"98":0.02502,"99":0.05004,"100":0.005,"101":0.01001,"102":0.00751,"103":0.2527,"104":0.005,"105":0.0025,"106":0.02002,"107":0.01001,"108":0.03253,"109":1.34107,"110":0.05254,"111":0.01251,"112":0.01251,"113":0.005,"114":0.01751,"115":0.02252,"116":0.04504,"117":0.00751,"118":0.01251,"119":0.07256,"120":0.05254,"121":0.05004,"122":0.17014,"123":0.30524,"124":10.58346,"125":4.69876,"126":0.02002,"127":0.005,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 53 54 56 57 60 61 63 67 71 80 128"},F:{"28":0.005,"46":0.0025,"85":0.0025,"95":0.005,"107":0.04003,"108":0.00751,"109":0.2502,"110":0.02502,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0025,"18":0.0025,"84":0.0025,"92":0.005,"94":0.0025,"100":0.0025,"101":0.0025,"109":0.03253,"110":0.00751,"111":0.0025,"112":0.0025,"114":0.0025,"116":0.0025,"117":0.0025,"118":0.00751,"119":0.00751,"120":0.00751,"121":0.01001,"122":0.02752,"123":0.04754,"124":1.35608,"125":0.85819,_:"13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 95 96 97 98 99 102 103 104 105 106 107 108 113 115"},E:{"14":0.01001,"15":0.0025,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.0025,"13.1":0.02002,"14.1":0.02752,"15.1":0.0025,"15.2-15.3":0.005,"15.4":0.01001,"15.5":0.01501,"15.6":0.11009,"16.0":0.005,"16.1":0.02502,"16.2":0.01501,"16.3":0.04253,"16.4":0.01251,"16.5":0.02252,"16.6":0.09758,"17.0":0.02252,"17.1":0.02002,"17.2":0.04253,"17.3":0.03753,"17.4":0.54293,"17.5":0.06005},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00391,"5.0-5.1":0.00391,"6.0-6.1":0.00978,"7.0-7.1":0.0137,"8.1-8.4":0.00391,"9.0-9.2":0.00978,"9.3":0.045,"10.0-10.2":0.00783,"10.3":0.07043,"11.0-11.2":0.10369,"11.3-11.4":0.01956,"12.0-12.1":0.01174,"12.2-12.5":0.28369,"13.0-13.1":0.00587,"13.2":0.02739,"13.3":0.0137,"13.4-13.7":0.06261,"14.0-14.4":0.10761,"14.5-14.8":0.1663,"15.0-15.1":0.08022,"15.2-15.3":0.08804,"15.4":0.09978,"15.5":0.12522,"15.6-15.8":1.12694,"16.0":0.2563,"16.1":0.52825,"16.2":0.2563,"16.3":0.44412,"16.4":0.09391,"16.5":0.18978,"16.6-16.7":1.51237,"17.0":0.16435,"17.1":0.26804,"17.2":0.27978,"17.3":0.51651,"17.4":11.72915,"17.5":0.82759,"17.6":0},P:{"4":0.13536,"20":0.05206,"21":0.14577,"22":0.12495,"23":0.21866,"24":0.37484,"25":2.68637,"5.0-5.4":0.01041,"6.2-6.4":0.03124,"7.2-7.4":0.15618,_:"8.2 9.2 10.1","11.1-11.2":0.05206,"12.0":0.01041,"13.0":0.10412,"14.0":0.03124,"15.0":0.02082,"16.0":0.05206,"17.0":0.07289,"18.0":0.02082,"19.0":0.04165},I:{"0":0.08964,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.45744,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01501,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.66744},R:{_:"0"},M:{"0":0.09749},Q:{_:"14.9"},O:{"0":0.64491},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PA.js b/node_modules/caniuse-lite/data/regions/PA.js index 9f7b131f7..c49340d85 100644 --- a/node_modules/caniuse-lite/data/regions/PA.js +++ b/node_modules/caniuse-lite/data/regions/PA.js @@ -1 +1 @@ -module.exports={C:{"4":0.03808,"80":0.0019,"103":0.0019,"107":0.00381,"113":0.0019,"115":0.01523,"120":0.01714,"128":0.00571,"132":0.0019,"134":0.00571,"135":0.0019,"136":0.0019,"137":0.0457,"138":0.01904,"139":0.40746,"140":0.03237,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 108 109 110 111 112 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 133 141 142 143 3.5 3.6"},D:{"38":0.00952,"39":0.00381,"40":0.00571,"41":0.00381,"42":0.00571,"43":0.00381,"44":0.00381,"45":0.0019,"46":0.00381,"47":0.00571,"48":0.00571,"49":0.00381,"50":0.00571,"51":0.00381,"52":0.00571,"53":0.00381,"54":0.00381,"55":0.00381,"56":0.00571,"57":0.00381,"58":0.00381,"59":0.00381,"60":0.00381,"69":0.0019,"70":0.0019,"73":0.0019,"74":0.0019,"75":0.0019,"76":0.0019,"79":0.04189,"81":0.00762,"83":0.01523,"85":0.0019,"86":0.0019,"87":0.02856,"88":0.01142,"90":0.00952,"91":0.00381,"93":0.0019,"95":0.00381,"98":0.0019,"100":0.01333,"101":0.00381,"102":0.0019,"103":0.03998,"104":0.01523,"106":0.00952,"107":0.0019,"108":0.01714,"109":0.23229,"110":0.01523,"111":0.0457,"112":0.00571,"113":0.0019,"114":0.00952,"116":0.07616,"118":0.0019,"119":0.01904,"120":0.01142,"121":0.00571,"122":0.01714,"123":0.00952,"124":0.00952,"125":1.8545,"126":0.02856,"127":0.01714,"128":0.03427,"129":0.00381,"130":0.00762,"131":0.03618,"132":0.02666,"133":0.02856,"134":0.07997,"135":0.09139,"136":1.24522,"137":6.8563,"138":0.26846,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 71 72 77 78 80 84 89 92 94 96 97 99 105 115 117 139 140 141"},F:{"89":0.06093,"90":0.01904,"95":0.00381,"117":0.0019,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0019,"92":0.00762,"100":0.0019,"109":0.01333,"114":0.0019,"120":0.0019,"122":0.00381,"124":0.0019,"126":0.00381,"127":0.02094,"128":0.00381,"129":0.00952,"130":0.00952,"131":0.01142,"132":0.03237,"133":0.00571,"134":0.02094,"135":0.02094,"136":0.31797,"137":2.27147,"138":0.1923,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","5.1":0.0019,"13.1":0.02475,"14.1":0.00381,"15.5":0.00381,"15.6":0.01714,"16.0":0.0019,"16.1":0.00762,"16.2":0.0019,"16.3":0.0019,"16.4":0.0495,"16.5":0.0019,"16.6":0.05522,"17.0":0.0019,"17.1":0.01523,"17.2":0.00381,"17.3":0.00381,"17.4":0.00571,"17.5":0.03808,"17.6":0.07616,"18.0":0.00381,"18.1":0.00952,"18.2":0.00952,"18.3":0.04379,"18.4":0.03237,"18.5":0.44173},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00103,"5.0-5.1":0,"6.0-6.1":0.00206,"7.0-7.1":0.00206,"8.1-8.4":0,"9.0-9.2":0.00103,"9.3":0.00618,"10.0-10.2":0.00051,"10.3":0.0103,"11.0-11.2":0.0659,"11.3-11.4":0.0036,"12.0-12.1":0.00103,"12.2-12.5":0.03449,"13.0-13.1":0.00051,"13.2":0.00154,"13.3":0.00103,"13.4-13.7":0.00566,"14.0-14.4":0.01339,"14.5-14.8":0.01339,"15.0-15.1":0.00927,"15.2-15.3":0.00927,"15.4":0.01133,"15.5":0.01236,"15.6-15.8":0.1596,"16.0":0.02111,"16.1":0.04325,"16.2":0.02214,"16.3":0.04067,"16.4":0.00927,"16.5":0.01647,"16.6-16.7":0.20027,"17.0":0.01081,"17.1":0.01905,"17.2":0.01493,"17.3":0.02111,"17.4":0.03758,"17.5":0.07877,"17.6-17.7":0.20594,"18.0":0.05097,"18.1":0.11481,"18.2":0.06075,"18.3":0.26102,"18.4":0.27698,"18.5":3.24711,"26.0":0},P:{"20":0.01028,"21":0.01028,"22":0.09253,"23":0.01028,"24":0.01028,"25":0.03084,"26":0.02056,"27":0.05141,"28":1.1515,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02056},I:{"0":0.59801,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00012,"4.4":0,"4.4.3-4.4.4":0.00048},K:{"0":0.08905,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00666,"9":0.00222,"10":0.00222,"11":0.01555,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":74.56439},R:{_:"0"},M:{"0":0.15381},Q:{"14.9":0.0081},O:{"0":0.02429},H:{"0":0}}; +module.exports={C:{"4":0.04604,"40":0.00419,"78":0.00419,"97":0.01256,"103":0.00419,"108":0.00419,"115":0.09207,"120":0.04604,"121":0.00419,"122":0.00419,"123":0.01674,"124":0.01256,"125":0.61938,"126":0.51057,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 101 102 104 105 106 107 109 110 111 112 113 114 116 117 118 119 127 128 129 3.5 3.6"},D:{"38":0.00419,"43":0.00419,"44":0.00419,"45":0.00419,"46":0.00419,"47":0.00419,"49":0.00419,"51":0.00419,"56":0.00419,"63":0.00419,"65":0.00837,"69":0.00419,"70":0.00419,"73":0.00419,"75":0.00419,"76":0.00419,"79":0.07952,"80":0.00419,"81":0.00419,"83":0.09207,"84":0.00419,"85":0.01256,"86":0.01674,"87":0.10044,"88":0.04604,"89":0.03348,"91":0.00837,"92":0.00419,"93":0.02093,"94":0.02093,"95":0.00419,"97":0.00419,"98":0.00837,"99":0.01674,"100":0.00419,"101":0.00419,"103":0.07115,"104":0.00837,"105":0.02093,"106":0.01256,"107":0.00419,"108":0.02511,"109":1.36431,"110":0.03348,"111":0.01256,"112":0.01674,"113":0.00837,"114":0.01674,"115":0.05022,"116":0.18414,"117":0.01674,"118":0.01674,"119":0.05859,"120":0.09207,"121":0.07115,"122":1.78281,"123":0.68216,"124":15.64353,"125":6.23147,"126":0.00419,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 48 50 52 53 54 55 57 58 59 60 61 62 64 66 67 68 71 72 74 77 78 90 96 102 127 128"},F:{"28":0.00419,"46":0.00419,"95":0.04604,"103":0.01674,"107":0.64449,"108":0.00419,"109":1.82885,"110":0.04185,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00419,"18":0.00419,"92":0.01674,"106":0.00837,"107":0.00419,"109":0.04185,"110":0.00419,"112":0.00419,"114":0.00419,"115":0.00837,"116":0.00419,"117":0.00419,"118":0.00419,"119":0.00419,"120":0.0293,"121":0.02093,"122":0.03767,"123":0.08789,"124":3.70791,"125":2.0381,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 108 111 113"},E:{"9":0.00837,"12":0.01674,"14":0.01256,"15":0.00419,_:"0 4 5 6 7 8 10 11 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.01674,"12.1":0.00419,"13.1":0.01674,"14.1":0.05441,"15.1":0.00837,"15.2-15.3":0.00837,"15.4":0.01256,"15.5":0.00837,"15.6":0.35991,"16.0":0.00419,"16.1":0.05859,"16.2":0.01674,"16.3":0.05859,"16.4":0.09626,"16.5":0.02511,"16.6":0.1967,"17.0":0.04604,"17.1":0.06278,"17.2":0.15066,"17.3":0.05022,"17.4":0.95418,"17.5":0.20088},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00204,"5.0-5.1":0.00204,"6.0-6.1":0.00509,"7.0-7.1":0.00712,"8.1-8.4":0.00204,"9.0-9.2":0.00509,"9.3":0.02341,"10.0-10.2":0.00407,"10.3":0.03663,"11.0-11.2":0.05393,"11.3-11.4":0.01018,"12.0-12.1":0.00611,"12.2-12.5":0.14756,"13.0-13.1":0.00305,"13.2":0.01425,"13.3":0.00712,"13.4-13.7":0.03256,"14.0-14.4":0.05597,"14.5-14.8":0.0865,"15.0-15.1":0.04172,"15.2-15.3":0.04579,"15.4":0.0519,"15.5":0.06513,"15.6-15.8":0.58615,"16.0":0.13331,"16.1":0.27476,"16.2":0.13331,"16.3":0.231,"16.4":0.04885,"16.5":0.09871,"16.6-16.7":0.78662,"17.0":0.08548,"17.1":0.13941,"17.2":0.14552,"17.3":0.26865,"17.4":6.10066,"17.5":0.43046,"17.6":0},P:{"4":0.1136,"20":0.04131,"21":0.10327,"22":0.24785,"23":0.14458,"24":0.27883,"25":2.4682,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0","6.2-6.4":0.01033,"7.2-7.4":0.16523,"11.1-11.2":0.08262,"13.0":0.02065,"16.0":0.02065,"17.0":0.02065,"18.0":0.01033,"19.0":0.02065},I:{"0":0.06951,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.20353,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00476,"8":0.03805,"9":0.00951,"10":0.00476,"11":0.04756,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.96165},R:{_:"0"},M:{"0":0.3082},Q:{"14.9":0.00582},O:{"0":0.05815},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PE.js b/node_modules/caniuse-lite/data/regions/PE.js index 00a7b18ab..d0a66692b 100644 --- a/node_modules/caniuse-lite/data/regions/PE.js +++ b/node_modules/caniuse-lite/data/regions/PE.js @@ -1 +1 @@ -module.exports={C:{"4":0.01872,"52":0.00187,"78":0.00187,"115":0.04493,"120":0.00187,"125":0.00187,"128":0.00749,"133":0.00187,"134":0.00187,"135":0.00374,"136":0.00374,"137":0.00187,"138":0.01498,"139":0.32386,"140":0.05242,"141":0.00187,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 126 127 129 130 131 132 142 143 3.5 3.6"},D:{"38":0.00374,"39":0.00562,"40":0.00562,"41":0.00562,"42":0.00562,"43":0.00562,"44":0.00562,"45":0.00562,"46":0.00562,"47":0.00936,"48":0.00562,"49":0.00749,"50":0.00562,"51":0.00562,"52":0.00562,"53":0.00562,"54":0.00562,"55":0.00562,"56":0.00562,"57":0.00562,"58":0.00562,"59":0.00562,"60":0.00562,"79":0.03931,"80":0.00749,"81":0.00187,"85":0.00374,"87":0.02621,"88":0.00187,"90":0.00374,"91":0.00187,"93":0.00187,"94":0.00187,"98":0.00187,"99":0.00187,"100":0.00187,"101":0.00187,"103":0.00562,"104":0.00187,"106":0.00374,"107":0.00187,"108":0.01685,"109":0.48298,"110":0.00562,"111":0.01872,"112":0.00187,"113":0.00187,"114":0.00374,"115":0.00187,"116":0.01685,"117":0.00187,"118":0.00187,"119":0.00936,"120":0.0131,"121":0.01498,"122":0.03931,"123":0.00936,"124":0.01498,"125":0.18346,"126":0.02059,"127":0.0131,"128":0.02246,"129":0.01123,"130":0.01123,"131":0.05803,"132":0.02808,"133":0.0337,"134":0.04493,"135":0.12168,"136":1.23739,"137":10.39147,"138":0.48859,"139":0.00187,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 84 86 89 92 95 96 97 102 105 140 141"},F:{"36":0.00187,"89":0.00936,"90":0.00749,"95":0.00936,"114":0.00187,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00187,"85":0.00187,"92":0.00562,"100":0.00187,"109":0.00936,"114":0.00187,"122":0.00374,"123":0.00187,"126":0.00187,"127":0.00187,"128":0.00187,"129":0.00374,"130":0.00374,"131":0.01872,"132":0.00562,"133":0.00374,"134":0.00936,"135":0.0131,"136":0.1872,"137":1.26173,"138":0.14976,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 124 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.2 16.5 17.0 26.0","5.1":0.00374,"13.1":0.00187,"14.1":0.00374,"15.1":0.00374,"15.6":0.00749,"16.0":0.00187,"16.1":0.00187,"16.3":0.00187,"16.4":0.00374,"16.6":0.00936,"17.1":0.00374,"17.2":0.00187,"17.3":0.00187,"17.4":0.00374,"17.5":0.00562,"17.6":0.01685,"18.0":0.00374,"18.1":0.00374,"18.2":0.00187,"18.3":0.01498,"18.4":0.02246,"18.5":0.14789},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00028,"5.0-5.1":0,"6.0-6.1":0.00056,"7.0-7.1":0.00056,"8.1-8.4":0,"9.0-9.2":0.00028,"9.3":0.00168,"10.0-10.2":0.00014,"10.3":0.0028,"11.0-11.2":0.01789,"11.3-11.4":0.00098,"12.0-12.1":0.00028,"12.2-12.5":0.00937,"13.0-13.1":0.00014,"13.2":0.00042,"13.3":0.00028,"13.4-13.7":0.00154,"14.0-14.4":0.00363,"14.5-14.8":0.00363,"15.0-15.1":0.00252,"15.2-15.3":0.00252,"15.4":0.00308,"15.5":0.00335,"15.6-15.8":0.04333,"16.0":0.00573,"16.1":0.01174,"16.2":0.00601,"16.3":0.01104,"16.4":0.00252,"16.5":0.00447,"16.6-16.7":0.05438,"17.0":0.00294,"17.1":0.00517,"17.2":0.00405,"17.3":0.00573,"17.4":0.0102,"17.5":0.02139,"17.6-17.7":0.05591,"18.0":0.01384,"18.1":0.03117,"18.2":0.01649,"18.3":0.07087,"18.4":0.0752,"18.5":0.88162,"26.0":0},P:{"4":0.0418,"23":0.01045,"25":0.01045,"26":0.01045,"27":0.0418,"28":0.24033,_:"20 21 22 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01045},I:{"0":0.54358,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00011,"4.4":0,"4.4.3-4.4.4":0.00044},K:{"0":0.10565,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00749,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":79.52072},R:{_:"0"},M:{"0":0.05689},Q:{_:"14.9"},O:{"0":0.00813},H:{"0":0}}; +module.exports={C:{"4":0.01122,"45":0.00561,"88":0.03926,"103":0.00561,"115":0.13459,"120":0.00561,"122":0.02804,"123":0.01682,"124":0.06169,"125":0.44303,"126":0.40938,"127":0.00561,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 128 129 3.5 3.6"},D:{"38":0.02243,"47":0.01122,"49":0.01122,"53":0.00561,"55":0.00561,"70":0.00561,"73":0.00561,"79":0.15142,"80":0.00561,"81":0.00561,"83":0.00561,"85":0.00561,"86":0.00561,"87":0.12338,"88":0.01682,"89":0.00561,"90":0.00561,"91":0.03365,"92":0.01122,"93":0.09534,"94":0.02804,"95":0.01122,"96":0.03926,"97":0.00561,"98":0.01122,"99":0.01682,"100":0.01122,"101":0.00561,"102":0.00561,"103":0.04486,"104":0.01122,"105":0.01122,"106":0.03365,"107":0.01682,"108":0.02243,"109":2.56846,"110":0.02243,"111":0.02243,"112":0.03365,"113":0.02243,"114":0.03365,"115":0.01682,"116":0.08973,"117":0.03365,"118":0.02804,"119":0.06169,"120":0.17385,"121":0.25797,"122":0.38695,"123":0.99262,"124":28.47182,"125":11.32255,"126":0.01122,"127":0.00561,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 74 75 76 77 78 84 128"},F:{"36":0.00561,"95":0.04486,"107":0.70661,"108":0.01122,"109":2.35536,"110":0.06169,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01122,"92":0.01682,"100":0.00561,"109":0.03926,"113":0.00561,"114":0.01122,"115":0.00561,"116":0.00561,"118":0.00561,"119":0.01122,"120":0.02243,"121":0.02243,"122":0.03365,"123":0.08412,"124":2.69745,"125":1.30666,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 117"},E:{"14":0.01122,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 17.6","5.1":0.02804,"13.1":0.00561,"14.1":0.01682,"15.1":0.00561,"15.4":0.01682,"15.5":0.00561,"15.6":0.03926,"16.0":0.00561,"16.1":0.01122,"16.2":0.00561,"16.3":0.01682,"16.4":0.00561,"16.5":0.01122,"16.6":0.05047,"17.0":0.00561,"17.1":0.02243,"17.2":0.02804,"17.3":0.02804,"17.4":0.26358,"17.5":0.05047},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00068,"5.0-5.1":0.00068,"6.0-6.1":0.00171,"7.0-7.1":0.00239,"8.1-8.4":0.00068,"9.0-9.2":0.00171,"9.3":0.00786,"10.0-10.2":0.00137,"10.3":0.0123,"11.0-11.2":0.01811,"11.3-11.4":0.00342,"12.0-12.1":0.00205,"12.2-12.5":0.04955,"13.0-13.1":0.00103,"13.2":0.00478,"13.3":0.00239,"13.4-13.7":0.01093,"14.0-14.4":0.01879,"14.5-14.8":0.02904,"15.0-15.1":0.01401,"15.2-15.3":0.01538,"15.4":0.01743,"15.5":0.02187,"15.6-15.8":0.19682,"16.0":0.04476,"16.1":0.09226,"16.2":0.04476,"16.3":0.07757,"16.4":0.0164,"16.5":0.03314,"16.6-16.7":0.26413,"17.0":0.0287,"17.1":0.04681,"17.2":0.04886,"17.3":0.09021,"17.4":2.04848,"17.5":0.14454,"17.6":0},P:{"4":0.16333,"20":0.01021,"21":0.03063,"22":0.04083,"23":0.07146,"24":0.09188,"25":0.56146,"5.0-5.4":0.01021,"6.2-6.4":0.01021,"7.2-7.4":0.05104,_:"8.2 9.2 10.1 12.0 14.0 15.0 18.0","11.1-11.2":0.01021,"13.0":0.02042,"16.0":0.01021,"17.0":0.01021,"19.0":0.04083},I:{"0":0.02625,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.19325,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00561,"11":0.02243,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.19726},R:{_:"0"},M:{"0":0.10541},Q:{_:"14.9"},O:{"0":0.02196},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PF.js b/node_modules/caniuse-lite/data/regions/PF.js index 8ddb55e07..71e96b61f 100644 --- a/node_modules/caniuse-lite/data/regions/PF.js +++ b/node_modules/caniuse-lite/data/regions/PF.js @@ -1 +1 @@ -module.exports={C:{"78":0.00416,"82":0.00277,"100":0.01386,"101":0.00139,"109":0.00139,"115":0.06514,"127":0.01525,"128":0.2079,"130":0.00139,"132":0.00277,"134":0.00416,"135":0.00416,"136":0.00693,"137":0.02772,"138":0.02772,"139":0.8219,"140":0.27859,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 133 141 142 143 3.5 3.6"},D:{"39":0.00139,"40":0.00416,"41":0.00139,"44":0.00139,"45":0.00139,"46":0.00139,"47":0.00139,"49":0.00277,"50":0.00139,"51":0.00139,"52":0.00277,"53":0.00416,"54":0.00139,"55":0.00139,"57":0.00139,"58":0.00139,"59":0.00139,"65":0.03049,"68":0.00139,"78":0.01247,"79":0.00693,"80":0.00139,"83":0.00139,"84":0.00832,"85":0.00416,"87":0.00693,"88":0.10118,"91":0.00139,"99":0.00139,"103":0.00693,"104":0.00139,"107":0.00416,"108":0.01109,"109":0.11504,"110":0.00554,"112":0.00554,"116":0.03465,"118":0.00139,"119":0.00277,"120":0.00139,"121":0.00139,"122":0.00554,"123":0.00139,"124":0.0194,"125":0.01802,"126":0.00139,"127":0.01525,"128":0.01247,"129":0.00277,"130":0.01802,"131":0.01802,"132":0.00554,"133":0.08732,"134":0.02356,"135":0.09563,"136":0.62647,"137":4.02079,"138":0.14553,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 42 43 48 56 60 61 62 63 64 66 67 69 70 71 72 73 74 75 76 77 81 86 89 90 92 93 94 95 96 97 98 100 101 102 105 106 111 113 114 115 117 139 140 141"},F:{"46":0.00693,"81":0.00139,"89":0.00139,"90":0.00139,"102":0.01663,"116":0.00139,"117":0.00277,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00139,"99":0.00139,"105":0.00139,"106":0.00277,"109":0.00416,"127":0.00277,"128":0.00416,"131":0.01109,"133":0.00139,"134":0.09702,"135":0.02495,"136":0.2176,"137":1.55093,"138":0.12058,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 129 130 132"},E:{"13":0.00139,"14":0.02633,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 26.0","12.1":0.00139,"13.1":0.0097,"14.1":0.01663,"15.1":0.08177,"15.4":0.00693,"15.5":0.0194,"15.6":0.06653,"16.0":0.0097,"16.1":0.01247,"16.2":0.00277,"16.3":0.03326,"16.4":0.00832,"16.5":0.01802,"16.6":0.08316,"17.0":0.00139,"17.1":0.06098,"17.2":0.05821,"17.3":0.00277,"17.4":0.02772,"17.5":0.23008,"17.6":0.20236,"18.0":0.0097,"18.1":0.02772,"18.2":0.02218,"18.3":0.13583,"18.4":0.09425,"18.5":0.90229},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00183,"5.0-5.1":0,"6.0-6.1":0.00366,"7.0-7.1":0.00366,"8.1-8.4":0,"9.0-9.2":0.00183,"9.3":0.01098,"10.0-10.2":0.00091,"10.3":0.01829,"11.0-11.2":0.11708,"11.3-11.4":0.0064,"12.0-12.1":0.00183,"12.2-12.5":0.06128,"13.0-13.1":0.00091,"13.2":0.00274,"13.3":0.00183,"13.4-13.7":0.01006,"14.0-14.4":0.02378,"14.5-14.8":0.02378,"15.0-15.1":0.01646,"15.2-15.3":0.01646,"15.4":0.02012,"15.5":0.02195,"15.6-15.8":0.28356,"16.0":0.0375,"16.1":0.07683,"16.2":0.03933,"16.3":0.07226,"16.4":0.01646,"16.5":0.02927,"16.6-16.7":0.35582,"17.0":0.01921,"17.1":0.03384,"17.2":0.02653,"17.3":0.0375,"17.4":0.06677,"17.5":0.13995,"17.6-17.7":0.36588,"18.0":0.09056,"18.1":0.20398,"18.2":0.10793,"18.3":0.46375,"18.4":0.49211,"18.5":5.76902,"26.0":0},P:{"4":0.02085,"22":0.01042,"23":0.01042,"24":0.02085,"25":0.05212,"26":0.02085,"27":0.11466,"28":1.35504,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03127},I:{"0":0.27515,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00022},K:{"0":0.02584,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00139,_:"6 7 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.32296},R:{_:"0"},M:{"0":0.15503},Q:{_:"14.9"},O:{"0":0.01723},H:{"0":0}}; +module.exports={C:{"48":0.00904,"52":0.00904,"56":0.00452,"67":0.03616,"68":0.03164,"72":0.02712,"75":0.15368,"77":0.00452,"78":0.30736,"82":0.03164,"91":0.07684,"102":0.0678,"103":0.08588,"104":0.00904,"105":0.0226,"109":0.00904,"112":0.00904,"114":0.00452,"115":0.5198,"116":0.02712,"118":0.00452,"119":0.00904,"120":0.01356,"121":0.01356,"122":0.01356,"123":0.04972,"124":0.06328,"125":2.03852,"126":1.6046,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 69 70 71 73 74 76 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 106 107 108 110 111 113 117 127 128 129 3.5 3.6"},D:{"41":0.0678,"57":0.00452,"65":0.00452,"70":0.01356,"71":0.03164,"72":0.00452,"74":0.00452,"76":0.04068,"78":0.00452,"79":0.19888,"80":0.01808,"81":0.14916,"83":0.00452,"84":0.01356,"85":0.44748,"86":0.0226,"87":0.40228,"92":0.02712,"93":0.00452,"94":0.03164,"96":0.00452,"97":0.00452,"98":0.0904,"101":0.00452,"102":0.00452,"103":0.0904,"104":0.11752,"106":0.03616,"107":0.01356,"108":0.01808,"109":0.91756,"111":0.01356,"114":0.00452,"115":0.00452,"116":0.16724,"118":0.00452,"119":0.0678,"120":0.2034,"121":0.08588,"122":0.2712,"123":0.7684,"124":8.71004,"125":4.26236,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 66 67 68 69 73 75 77 88 89 90 91 95 99 100 105 110 112 113 117 126 127 128"},F:{"28":0.00452,"36":0.00452,"46":0.00904,"65":0.03164,"81":0.00452,"102":0.00452,"107":0.16724,"108":0.00452,"109":3.8194,"110":0.01356,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.04068,"86":0.00452,"105":0.00904,"109":0.01356,"119":0.00904,"120":0.01356,"121":0.00904,"122":0.06328,"123":0.11752,"124":3.5934,"125":1.90292,_:"12 13 14 15 16 17 79 80 81 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 114 115 116 117 118"},E:{"13":0.00904,"14":0.07684,"15":0.00904,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00904,"13.1":0.06328,"14.1":0.21244,"15.1":0.04068,"15.2-15.3":0.0452,"15.4":0.05876,"15.5":0.21244,"15.6":0.47912,"16.0":0.23504,"16.1":0.2938,"16.2":0.113,"16.3":0.26668,"16.4":0.21696,"16.5":0.11752,"16.6":1.02604,"17.0":0.07684,"17.1":0.21696,"17.2":0.29832,"17.3":0.25764,"17.4":4.76408,"17.5":0.79552},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00452,"5.0-5.1":0.00452,"6.0-6.1":0.01129,"7.0-7.1":0.01581,"8.1-8.4":0.00452,"9.0-9.2":0.01129,"9.3":0.05194,"10.0-10.2":0.00903,"10.3":0.0813,"11.0-11.2":0.1197,"11.3-11.4":0.02258,"12.0-12.1":0.01355,"12.2-12.5":0.32747,"13.0-13.1":0.00678,"13.2":0.03162,"13.3":0.01581,"13.4-13.7":0.07227,"14.0-14.4":0.12421,"14.5-14.8":0.19197,"15.0-15.1":0.0926,"15.2-15.3":0.10163,"15.4":0.11518,"15.5":0.14454,"15.6-15.8":1.30086,"16.0":0.29586,"16.1":0.60978,"16.2":0.29586,"16.3":0.51267,"16.4":0.10841,"16.5":0.21907,"16.6-16.7":1.74578,"17.0":0.18971,"17.1":0.30941,"17.2":0.32296,"17.3":0.59623,"17.4":13.53937,"17.5":0.95532,"17.6":0},P:{"4":0.03212,"20":0.01071,"21":0.05353,"22":0.05353,"23":0.27835,"24":0.27835,"25":3.5972,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","7.2-7.4":0.04282,"17.0":0.01071,"18.0":0.05353,"19.0":0.01071},I:{"0":0.08732,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.18177,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00904,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00548,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.68494},R:{_:"0"},M:{"0":0.56982},Q:{_:"14.9"},O:{"0":0.39449},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/PG.js b/node_modules/caniuse-lite/data/regions/PG.js index 983b22d8e..a8f0dd1e8 100644 --- a/node_modules/caniuse-lite/data/regions/PG.js +++ b/node_modules/caniuse-lite/data/regions/PG.js @@ -1 +1 @@ -module.exports={C:{"43":0.00293,"72":0.02048,"78":0.00293,"99":0.00293,"115":0.02048,"120":0.00293,"127":0.00585,"128":0.00293,"132":0.00293,"133":0.00293,"135":0.00293,"136":0.00585,"137":0.0117,"138":0.03803,"139":0.38318,"140":0.0351,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 129 130 131 134 141 142 143 3.5 3.6"},D:{"11":0.00293,"26":0.01463,"44":0.00293,"47":0.00293,"48":0.00293,"53":0.00878,"56":0.00293,"58":0.00293,"60":0.00293,"61":0.00878,"67":0.00878,"69":0.00585,"71":0.00878,"74":0.00293,"76":0.00293,"87":0.00585,"88":0.02048,"90":0.0117,"91":0.00585,"95":0.00585,"96":0.00585,"99":0.02633,"100":0.00293,"103":0.00293,"104":0.00878,"105":0.00878,"106":0.00585,"109":0.25448,"110":0.00293,"111":0.04095,"112":0.00293,"113":0.00293,"114":0.0117,"115":0.00585,"116":0.00878,"117":0.0117,"118":0.00878,"119":0.00585,"120":0.07313,"121":0.0117,"122":0.00878,"123":0.0117,"124":0.00878,"125":0.05558,"126":0.11115,"127":0.0351,"128":0.0117,"129":0.02925,"130":0.01463,"131":0.0936,"132":0.0234,"133":0.0468,"134":0.06435,"135":0.11408,"136":1.06763,"137":5.71545,"138":0.234,"139":0.00585,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 49 50 51 52 54 55 57 59 62 63 64 65 66 68 70 72 73 75 77 78 79 80 81 83 84 85 86 89 92 93 94 97 98 101 102 107 108 140 141"},F:{"84":0.00293,"87":0.00293,"88":0.00585,"89":0.09653,"90":0.0234,"117":0.01463,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00293,"14":0.00293,"15":0.00293,"16":0.00878,"17":0.00585,"18":0.02048,"80":0.00878,"84":0.00293,"85":0.00293,"89":0.03803,"90":0.01463,"92":0.05265,"99":0.00293,"100":0.04095,"108":0.00293,"109":0.01755,"111":0.00293,"112":0.00293,"114":0.0351,"116":0.00585,"117":0.00585,"118":0.00293,"119":0.00293,"120":0.00293,"121":0.00585,"122":0.01463,"123":0.00293,"124":0.00878,"125":0.00585,"126":0.0117,"127":0.00878,"128":0.00293,"129":0.00878,"130":0.02633,"131":0.1053,"132":0.0351,"133":0.03218,"134":0.04388,"135":0.26618,"136":0.8775,"137":3.31403,"138":0.14625,_:"13 79 81 83 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 107 110 113 115"},E:{"11":0.00585,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.5 16.0 16.4 16.5 17.0 17.1 17.2 18.2 26.0","12.1":0.00293,"13.1":0.00585,"14.1":0.00878,"15.2-15.3":0.00293,"15.4":0.00585,"15.6":0.0117,"16.1":0.00293,"16.2":0.18428,"16.3":0.15503,"16.6":0.00585,"17.3":0.00293,"17.4":0.00293,"17.5":0.04388,"17.6":0.01463,"18.0":0.00585,"18.1":0.00585,"18.3":0.00878,"18.4":0.02925,"18.5":0.07605},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00054,"5.0-5.1":0,"6.0-6.1":0.00108,"7.0-7.1":0.00108,"8.1-8.4":0,"9.0-9.2":0.00054,"9.3":0.00324,"10.0-10.2":0.00027,"10.3":0.0054,"11.0-11.2":0.03459,"11.3-11.4":0.00189,"12.0-12.1":0.00054,"12.2-12.5":0.01811,"13.0-13.1":0.00027,"13.2":0.00081,"13.3":0.00054,"13.4-13.7":0.00297,"14.0-14.4":0.00703,"14.5-14.8":0.00703,"15.0-15.1":0.00486,"15.2-15.3":0.00486,"15.4":0.00594,"15.5":0.00649,"15.6-15.8":0.08377,"16.0":0.01108,"16.1":0.0227,"16.2":0.01162,"16.3":0.02135,"16.4":0.00486,"16.5":0.00865,"16.6-16.7":0.10512,"17.0":0.00567,"17.1":0.01,"17.2":0.00784,"17.3":0.01108,"17.4":0.01973,"17.5":0.04134,"17.6-17.7":0.10809,"18.0":0.02675,"18.1":0.06026,"18.2":0.03189,"18.3":0.137,"18.4":0.14538,"18.5":1.70432,"26.0":0},P:{"4":0.07147,"20":0.01021,"21":0.05105,"22":0.26545,"23":0.03063,"24":0.29608,"25":0.37776,"26":0.11231,"27":0.47985,"28":1.05159,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0","7.2-7.4":0.04084,"14.0":0.02042,"16.0":0.01021,"17.0":0.01021,"18.0":0.02042,"19.0":0.03063},I:{"0":0.45197,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00036},K:{"0":0.92914,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00585,"11":0.00585,_:"6 7 8 9 5.5"},S:{"2.5":0.00707,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":75.5184},R:{_:"0"},M:{"0":0.06367},Q:{"14.9":0.02122},O:{"0":0.58714},H:{"0":0.04}}; +module.exports={C:{"62":0.00287,"72":0.00287,"85":0.00287,"89":0.00287,"91":0.00287,"96":0.00287,"98":0.00287,"103":0.00861,"110":0.02297,"115":0.05455,"116":0.01723,"117":0.00287,"118":0.01436,"119":0.01148,"120":0.00287,"121":0.00574,"122":0.0201,"123":0.01148,"124":0.05742,"125":0.44788,"126":0.24116,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 90 92 93 94 95 97 99 100 101 102 104 105 106 107 108 109 111 112 113 114 127 128 129 3.5 3.6"},D:{"11":0.00574,"29":0.00574,"36":0.00287,"37":0.00287,"38":0.00287,"43":0.01723,"49":0.02871,"52":0.00287,"53":0.00287,"65":0.00574,"67":0.00287,"68":0.01148,"69":0.01723,"70":0.02871,"71":0.00574,"72":0.00574,"74":0.00287,"77":0.00574,"78":0.00574,"80":0.00287,"81":0.0201,"84":0.00287,"86":0.00287,"87":0.01723,"88":0.09474,"89":0.00287,"90":0.00861,"91":0.00287,"92":0.00861,"94":0.00287,"95":0.01436,"96":0.00287,"97":0.00287,"98":0.00574,"99":0.09761,"100":0.00287,"101":0.00287,"102":0.00287,"103":0.06316,"105":0.03732,"106":0.00861,"107":0.00287,"108":0.00574,"109":0.69765,"110":0.00574,"111":0.03158,"112":0.04594,"113":0.18949,"114":0.01436,"115":0.00574,"116":0.03732,"117":0.0201,"118":0.02297,"119":0.267,"120":0.05168,"121":0.1091,"122":0.10049,"123":0.31294,"124":5.54964,"125":2.06425,"126":0.00287,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 39 40 41 42 44 45 46 47 48 50 51 54 55 56 57 58 59 60 61 62 63 64 66 73 75 76 79 83 85 93 104 127 128"},F:{"71":0.00287,"77":0.00287,"79":0.00287,"80":0.00574,"81":0.00287,"82":0.00287,"95":0.01148,"106":0.00287,"107":0.02584,"108":0.01148,"109":0.3761,"110":0.04019,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 78 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02584,"13":0.01436,"14":0.00574,"15":0.00574,"16":0.01436,"17":0.00861,"18":0.06603,"80":0.00287,"84":0.02297,"85":0.00287,"88":0.00287,"89":0.0201,"90":0.01148,"92":0.07752,"97":0.01148,"100":0.04307,"102":0.00287,"103":0.00287,"104":0.01436,"105":0.00574,"107":0.00287,"108":0.00287,"109":0.01723,"110":0.00287,"111":0.00574,"112":0.00861,"113":0.02871,"114":0.00861,"115":0.01723,"116":0.02297,"117":0.01148,"118":0.02297,"119":0.06316,"120":0.09474,"121":0.06603,"122":0.11197,"123":0.27275,"124":2.57242,"125":1.16276,_:"79 81 83 86 87 91 93 94 95 96 98 99 101 106"},E:{"15":0.00287,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 11.1 15.1 15.4 16.1 17.6","10.1":0.02297,"12.1":0.00287,"13.1":0.00861,"14.1":0.00574,"15.2-15.3":0.01148,"15.5":0.00287,"15.6":0.01436,"16.0":0.00287,"16.2":0.00574,"16.3":0.00287,"16.4":0.00287,"16.5":0.00287,"16.6":0.03158,"17.0":0.00287,"17.1":0.03732,"17.2":0.02871,"17.3":0.01436,"17.4":0.10336,"17.5":0.00861},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0004,"5.0-5.1":0.0004,"6.0-6.1":0.00099,"7.0-7.1":0.00139,"8.1-8.4":0.0004,"9.0-9.2":0.00099,"9.3":0.00457,"10.0-10.2":0.0008,"10.3":0.00716,"11.0-11.2":0.01054,"11.3-11.4":0.00199,"12.0-12.1":0.00119,"12.2-12.5":0.02884,"13.0-13.1":0.0006,"13.2":0.00278,"13.3":0.00139,"13.4-13.7":0.00636,"14.0-14.4":0.01094,"14.5-14.8":0.01691,"15.0-15.1":0.00815,"15.2-15.3":0.00895,"15.4":0.01014,"15.5":0.01273,"15.6-15.8":0.11457,"16.0":0.02606,"16.1":0.0537,"16.2":0.02606,"16.3":0.04515,"16.4":0.00955,"16.5":0.01929,"16.6-16.7":0.15375,"17.0":0.01671,"17.1":0.02725,"17.2":0.02844,"17.3":0.05251,"17.4":1.1924,"17.5":0.08413,"17.6":0},P:{"4":0.05103,"20":0.08164,"21":0.37759,"22":0.47964,"23":0.43882,"24":1.02052,"25":1.39811,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0","7.2-7.4":0.14287,"9.2":0.02041,"11.1-11.2":0.02041,"13.0":0.06123,"14.0":0.03062,"15.0":0.02041,"16.0":0.07144,"17.0":0.02041,"18.0":0.04082,"19.0":0.18369},I:{"0":0.27695,"3":0,"4":0.00003,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00006,"4.2-4.3":0.00017,"4.4":0,"4.4.3-4.4.4":0.00061},K:{"0":1.34303,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.01193,"11":0.03975,_:"6 7 8 9 5.5"},S:{"2.5":0.00713,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.46537},R:{_:"0"},M:{"0":0.09268},Q:{"14.9":0.17823},O:{"0":0.85548},H:{"0":0.04}}; diff --git a/node_modules/caniuse-lite/data/regions/PH.js b/node_modules/caniuse-lite/data/regions/PH.js index 01cb4940e..20672ce2c 100644 --- a/node_modules/caniuse-lite/data/regions/PH.js +++ b/node_modules/caniuse-lite/data/regions/PH.js @@ -1 +1 @@ -module.exports={C:{"59":0.00281,"98":0.00141,"101":0.00141,"115":0.02533,"122":0.00141,"123":0.00281,"127":0.00141,"128":0.13648,"131":0.00141,"132":0.00141,"133":0.00141,"134":0.00141,"135":0.00281,"136":0.00281,"137":0.00281,"138":0.00844,"139":0.16462,"140":0.03377,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 124 125 126 129 130 141 142 143 3.5 3.6"},D:{"39":0.00281,"40":0.00281,"41":0.00281,"42":0.00281,"43":0.00281,"44":0.00281,"45":0.00281,"46":0.00281,"47":0.00281,"48":0.00281,"49":0.00281,"50":0.00281,"51":0.00281,"52":0.00281,"53":0.00281,"54":0.00281,"55":0.00281,"56":0.00281,"57":0.00281,"58":0.00281,"59":0.00281,"60":0.00281,"61":0.00141,"66":0.00844,"73":0.00141,"74":0.00141,"75":0.00141,"76":0.00281,"78":0.00141,"79":0.00985,"81":0.00422,"83":0.00704,"84":0.00141,"85":0.00141,"86":0.00141,"87":0.02814,"88":0.00141,"91":0.00563,"92":0.00141,"93":0.00704,"94":0.00563,"95":0.00141,"96":0.00141,"97":0.00141,"99":0.00141,"100":0.00141,"101":0.00141,"102":0.00281,"103":0.02533,"104":0.00281,"105":0.09849,"106":0.00141,"107":0.00141,"108":0.0197,"109":0.12663,"110":0.00141,"111":0.01688,"112":0.00281,"113":0.00563,"114":0.0197,"115":0.00141,"116":0.01548,"117":0.00422,"118":0.00281,"119":0.00563,"120":0.00844,"121":0.00985,"122":0.02392,"123":0.00844,"124":0.01126,"125":0.14492,"126":0.02673,"127":0.01266,"128":0.02111,"129":0.01126,"130":0.01688,"131":0.04925,"132":0.04502,"133":0.03658,"134":0.03799,"135":0.07879,"136":0.81184,"137":6.34416,"138":0.27859,"139":0.00281,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 62 63 64 65 67 68 69 70 71 72 77 80 89 90 98 140 141"},F:{"46":0.00422,"89":0.00563,"90":0.00281,"95":0.00141,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00141,"18":0.00141,"92":0.00422,"100":0.00141,"102":0.00141,"109":0.00422,"114":0.00281,"120":0.00141,"121":0.00141,"122":0.00281,"124":0.00141,"125":0.00141,"126":0.00141,"127":0.00141,"128":0.00281,"129":0.00281,"130":0.00281,"131":0.00281,"132":0.00281,"133":0.00422,"134":0.01407,"135":0.00985,"136":0.1604,"137":1.04962,"138":0.08583,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123"},E:{"14":0.00141,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.0","11.1":0.00281,"12.1":0.00141,"13.1":0.00281,"14.1":0.00844,"15.1":0.00281,"15.2-15.3":0.00141,"15.4":0.00281,"15.5":0.00141,"15.6":0.02533,"16.0":0.00281,"16.1":0.00422,"16.2":0.00422,"16.3":0.00704,"16.4":0.00281,"16.5":0.00422,"16.6":0.03377,"17.0":0.00281,"17.1":0.01829,"17.2":0.00563,"17.3":0.00563,"17.4":0.00704,"17.5":0.07598,"17.6":0.03518,"18.0":0.00985,"18.1":0.01688,"18.2":0.01266,"18.3":0.0394,"18.4":0.03518,"18.5":0.27577},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00093,"5.0-5.1":0,"6.0-6.1":0.00186,"7.0-7.1":0.00186,"8.1-8.4":0,"9.0-9.2":0.00093,"9.3":0.00558,"10.0-10.2":0.00046,"10.3":0.0093,"11.0-11.2":0.0595,"11.3-11.4":0.00325,"12.0-12.1":0.00093,"12.2-12.5":0.03115,"13.0-13.1":0.00046,"13.2":0.00139,"13.3":0.00093,"13.4-13.7":0.00511,"14.0-14.4":0.01209,"14.5-14.8":0.01209,"15.0-15.1":0.00837,"15.2-15.3":0.00837,"15.4":0.01023,"15.5":0.01116,"15.6-15.8":0.14411,"16.0":0.01906,"16.1":0.03905,"16.2":0.01999,"16.3":0.03673,"16.4":0.00837,"16.5":0.01488,"16.6-16.7":0.18084,"17.0":0.00976,"17.1":0.0172,"17.2":0.01348,"17.3":0.01906,"17.4":0.03394,"17.5":0.07113,"17.6-17.7":0.18595,"18.0":0.04602,"18.1":0.10367,"18.2":0.05486,"18.3":0.23569,"18.4":0.25011,"18.5":2.93201,"26.0":0},P:{"4":0.02148,"22":0.01074,"23":0.01074,"24":0.01074,"25":0.02148,"26":0.03222,"27":0.04297,"28":0.47262,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02148},I:{"0":0.30882,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00025},K:{"0":0.1203,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.21949,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.94047},R:{_:"0"},M:{"0":0.03437},Q:{_:"14.9"},O:{"0":0.1203},H:{"0":0}}; +module.exports={C:{"56":0.08393,"59":0.00987,"78":0.00494,"88":0.00494,"98":0.00494,"115":0.13824,"120":0.00987,"121":0.00494,"122":0.00494,"123":0.00987,"124":0.01975,"125":0.34559,"126":0.34559,"127":0.00987,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 128 129 3.5 3.6"},D:{"11":0.00494,"38":0.00494,"49":0.00987,"56":0.00494,"61":0.00494,"66":0.03456,"68":0.00494,"69":0.00494,"70":0.00494,"71":0.00494,"73":0.00494,"74":0.00494,"75":0.00494,"76":0.00987,"78":0.00987,"79":0.02962,"80":0.02469,"81":0.00494,"83":0.01975,"84":0.00494,"85":0.00987,"86":0.00987,"87":0.14811,"88":0.02469,"89":0.00494,"90":0.00494,"91":0.01481,"92":0.00494,"93":0.02469,"94":0.01975,"95":0.00494,"96":0.00494,"97":0.00494,"98":0.00494,"99":0.05431,"100":0.00494,"101":0.01481,"102":0.01481,"103":0.46408,"104":0.00987,"105":0.04937,"106":0.01975,"107":0.01481,"108":0.02469,"109":1.17007,"110":0.00987,"111":0.02469,"112":0.02469,"113":0.02962,"114":0.06418,"115":0.02962,"116":0.14317,"117":0.07406,"118":0.04443,"119":0.0938,"120":0.19748,"121":0.17773,"122":0.34559,"123":0.93803,"124":22.15232,"125":8.60519,"126":0.02469,"127":0.00494,_:"4 5 6 7 8 9 10 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 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 62 63 64 65 67 72 77 128"},F:{"28":0.02469,"46":0.00494,"95":0.00987,"107":0.32091,"108":0.00987,"109":1.03677,"110":0.02962,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00494,"18":0.00494,"92":0.01481,"100":0.00494,"108":0.00494,"109":0.0395,"113":0.01481,"114":0.00494,"115":0.00494,"116":0.00494,"117":0.00494,"118":0.00494,"119":0.00987,"120":0.0938,"121":0.01481,"122":0.07406,"123":0.28635,"124":3.71262,"125":2.06367,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112"},E:{"13":0.00494,"14":0.00987,"15":0.00494,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 17.6","11.1":0.00987,"13.1":0.01481,"14.1":0.02962,"15.1":0.07899,"15.2-15.3":0.00494,"15.4":0.00987,"15.5":0.01481,"15.6":0.0938,"16.0":0.01481,"16.1":0.02469,"16.2":0.01481,"16.3":0.04443,"16.4":0.00987,"16.5":0.01975,"16.6":0.11355,"17.0":0.02469,"17.1":0.02962,"17.2":0.04443,"17.3":0.04443,"17.4":0.60725,"17.5":0.07899},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00128,"5.0-5.1":0.00128,"6.0-6.1":0.00319,"7.0-7.1":0.00447,"8.1-8.4":0.00128,"9.0-9.2":0.00319,"9.3":0.01468,"10.0-10.2":0.00255,"10.3":0.02298,"11.0-11.2":0.03384,"11.3-11.4":0.00638,"12.0-12.1":0.00383,"12.2-12.5":0.09257,"13.0-13.1":0.00192,"13.2":0.00894,"13.3":0.00447,"13.4-13.7":0.02043,"14.0-14.4":0.03511,"14.5-14.8":0.05427,"15.0-15.1":0.02618,"15.2-15.3":0.02873,"15.4":0.03256,"15.5":0.04086,"15.6-15.8":0.36774,"16.0":0.08364,"16.1":0.17238,"16.2":0.08364,"16.3":0.14493,"16.4":0.03065,"16.5":0.06193,"16.6-16.7":0.49352,"17.0":0.05363,"17.1":0.08747,"17.2":0.0913,"17.3":0.16855,"17.4":3.82747,"17.5":0.27006,"17.6":0},P:{"4":0.1158,"20":0.01053,"21":0.02105,"22":0.02105,"23":0.03158,"24":0.07369,"25":0.72637,"5.0-5.4":0.01053,"6.2-6.4":0.02105,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","17.0":0.01053,"18.0":0.01053,"19.0":0.01053},I:{"0":0.09078,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.0002},K:{"0":0.43542,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.005,"11":2.32526,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.30894},R:{_:"0"},M:{"0":0.08101},Q:{"14.9":0.00506},O:{"0":0.3291},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PK.js b/node_modules/caniuse-lite/data/regions/PK.js index ee39ce587..678cbd53b 100644 --- a/node_modules/caniuse-lite/data/regions/PK.js +++ b/node_modules/caniuse-lite/data/regions/PK.js @@ -1 +1 @@ -module.exports={C:{"52":0.00289,"75":0.00289,"105":0.00289,"106":0.00579,"107":0.00289,"108":0.00579,"109":0.00289,"110":0.00289,"111":0.00289,"112":0.00289,"113":0.00289,"115":0.15628,"127":0.00289,"128":0.01447,"133":0.00289,"134":0.00289,"135":0.00289,"136":0.00289,"137":0.00579,"138":0.01736,"139":0.33281,"140":0.05788,"141":0.00289,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 142 143 3.5 3.6"},D:{"11":0.00289,"29":0.00289,"39":0.00289,"40":0.00289,"41":0.00289,"42":0.00289,"43":0.00579,"44":0.00289,"45":0.00289,"46":0.00289,"47":0.00289,"48":0.00289,"49":0.00579,"50":0.00289,"51":0.00289,"52":0.00289,"53":0.00289,"54":0.00289,"55":0.00289,"56":0.00289,"57":0.00289,"58":0.00289,"59":0.00289,"60":0.00289,"62":0.00289,"63":0.00289,"65":0.00579,"66":0.00868,"68":0.00868,"69":0.00868,"70":0.00289,"71":0.00579,"72":0.00868,"73":0.00579,"74":0.00868,"75":0.01736,"76":0.00579,"77":0.02315,"78":0.00289,"79":0.00868,"80":0.01158,"81":0.00579,"83":0.00579,"84":0.00289,"85":0.00868,"86":0.00868,"87":0.01447,"88":0.00289,"89":0.00868,"90":0.00289,"91":0.02026,"92":0.00289,"93":0.02894,"94":0.00289,"95":0.00868,"96":0.00289,"97":0.00289,"98":0.00289,"99":0.00289,"100":0.00289,"101":0.00289,"102":0.01447,"103":0.13023,"104":0.03762,"105":0.01158,"106":0.03762,"107":0.04341,"108":0.05499,"109":1.77402,"110":0.02605,"111":0.03183,"112":0.02894,"113":0.00289,"114":0.01158,"115":0.00289,"116":0.02315,"117":0.00289,"118":0.02315,"119":0.02315,"120":0.01736,"121":0.01447,"122":0.02315,"123":0.01158,"124":0.01447,"125":0.77559,"126":0.03762,"127":0.02315,"128":0.02605,"129":0.01447,"130":0.02026,"131":0.06946,"132":0.08682,"133":0.05499,"134":0.07524,"135":0.14759,"136":2.10683,"137":13.45131,"138":0.58169,"139":0.01158,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 64 67 140 141"},F:{"79":0.00289,"88":0.00289,"89":0.02315,"90":0.01736,"93":0.00289,"94":0.00289,"95":0.03762,"117":0.00289,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 91 92 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00289,"16":0.00289,"18":0.00579,"84":0.00289,"86":0.00289,"89":0.00289,"90":0.00289,"92":0.02026,"100":0.00289,"103":0.00289,"106":0.00289,"107":0.00579,"108":0.00579,"109":0.01736,"110":0.00868,"111":0.00289,"114":0.01158,"122":0.00289,"130":0.00289,"131":0.00289,"132":0.00579,"133":0.00579,"134":0.00868,"135":0.00868,"136":0.15628,"137":0.94923,"138":0.07814,_:"13 14 15 17 79 80 81 83 85 87 88 91 93 94 95 96 97 98 99 101 102 104 105 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1 15.4 16.0 16.2 16.4 16.5 17.0 26.0","5.1":0.00289,"9.1":0.00289,"13.1":0.00579,"14.1":0.00579,"15.1":0.00289,"15.2-15.3":0.00289,"15.5":0.00289,"15.6":0.02315,"16.1":0.00289,"16.3":0.00289,"16.6":0.02026,"17.1":0.01158,"17.2":0.00289,"17.3":0.00289,"17.4":0.00289,"17.5":0.00579,"17.6":0.02315,"18.0":0.00289,"18.1":0.00289,"18.2":0.00579,"18.3":0.01447,"18.4":0.01447,"18.5":0.11287},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00067,"5.0-5.1":0,"6.0-6.1":0.00134,"7.0-7.1":0.00134,"8.1-8.4":0,"9.0-9.2":0.00067,"9.3":0.00402,"10.0-10.2":0.00034,"10.3":0.00671,"11.0-11.2":0.04293,"11.3-11.4":0.00235,"12.0-12.1":0.00067,"12.2-12.5":0.02247,"13.0-13.1":0.00034,"13.2":0.00101,"13.3":0.00067,"13.4-13.7":0.00369,"14.0-14.4":0.00872,"14.5-14.8":0.00872,"15.0-15.1":0.00604,"15.2-15.3":0.00604,"15.4":0.00738,"15.5":0.00805,"15.6-15.8":0.10397,"16.0":0.01375,"16.1":0.02817,"16.2":0.01442,"16.3":0.0265,"16.4":0.00604,"16.5":0.01073,"16.6-16.7":0.13047,"17.0":0.00704,"17.1":0.01241,"17.2":0.00973,"17.3":0.01375,"17.4":0.02448,"17.5":0.05132,"17.6-17.7":0.13416,"18.0":0.0332,"18.1":0.07479,"18.2":0.03958,"18.3":0.17005,"18.4":0.18045,"18.5":2.11539,"26.0":0},P:{"4":0.04186,"21":0.02093,"22":0.01046,"23":0.01046,"24":0.02093,"25":0.05232,"26":0.05232,"27":0.05232,"28":0.63829,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","6.2-6.4":0.01046,"7.2-7.4":0.02093,"17.0":0.02093},I:{"0":0.04256,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.21831,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02401,"9":0.00686,"10":0.00686,"11":0.05488,_:"6 7 5.5"},S:{"2.5":0.04974,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":67.05415},R:{_:"0"},M:{"0":0.07106},Q:{_:"14.9"},O:{"0":3.553},H:{"0":0.21}}; +module.exports={C:{"44":0.00236,"47":0.00236,"52":0.00945,"68":0.00236,"72":0.00236,"91":0.00236,"99":0.00236,"102":0.00236,"103":0.00472,"105":0.00472,"106":0.00472,"107":0.00472,"108":0.00709,"109":0.00472,"110":0.00472,"111":0.00472,"115":0.13936,"119":0.00236,"121":0.00236,"122":0.00236,"123":0.00945,"124":0.00945,"125":0.21258,"126":0.2173,"127":0.00236,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 100 101 104 112 113 114 116 117 118 120 128 129 3.5 3.6"},D:{"38":0.00709,"41":0.00236,"43":0.00472,"45":0.00236,"48":0.00236,"49":0.00709,"50":0.00236,"56":0.01181,"58":0.00236,"61":0.00236,"62":0.00236,"63":0.00236,"64":0.00236,"65":0.01181,"66":0.00236,"68":0.00945,"69":0.00472,"70":0.00472,"71":0.00236,"72":0.00709,"73":0.00472,"74":0.01181,"75":0.01181,"76":0.00709,"77":0.00709,"78":0.00472,"79":0.00709,"80":0.00945,"81":0.00472,"83":0.00709,"84":0.00709,"85":0.14408,"86":0.00709,"87":0.01653,"88":0.00236,"89":0.00709,"90":0.00472,"91":0.00945,"92":0.00472,"93":0.02598,"94":0.00236,"95":0.01417,"96":0.00472,"97":0.00709,"98":0.00709,"99":0.00472,"100":0.00236,"101":0.00236,"102":0.01653,"103":0.07558,"104":0.01653,"105":0.01417,"106":0.05196,"107":0.07795,"108":0.05905,"109":2.37617,"110":0.03071,"111":0.03071,"112":0.02834,"113":0.00472,"114":0.01181,"115":0.00945,"116":0.03307,"117":0.01181,"118":0.01653,"119":0.03543,"120":0.06141,"121":0.09684,"122":0.10393,"123":0.29761,"124":9.84954,"125":4.41694,"126":0.0189,"127":0.00472,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 44 46 47 51 52 53 54 55 57 59 60 67 128"},F:{"28":0.00236,"37":0.00236,"76":0.00236,"79":0.00472,"82":0.00236,"85":0.00236,"91":0.00236,"92":0.00236,"93":0.00236,"94":0.00236,"95":0.04015,"96":0.00236,"106":0.00236,"107":0.03543,"108":0.00472,"109":0.3732,"110":0.04488,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 86 87 88 89 90 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01653,"13":0.00236,"14":0.00472,"15":0.00472,"16":0.00472,"17":0.00236,"18":0.01653,"84":0.00236,"89":0.00236,"90":0.00236,"92":0.02126,"100":0.00236,"103":0.00236,"105":0.00236,"106":0.00236,"107":0.00709,"108":0.00709,"109":0.02598,"110":0.00709,"111":0.00236,"112":0.00236,"113":0.00236,"115":0.00236,"117":0.00472,"118":0.00236,"119":0.00236,"120":0.00709,"121":0.01181,"122":0.01181,"123":0.01653,"124":0.66845,"125":0.40626,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 104 114 116"},E:{"14":0.00472,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 17.6","5.1":0.00236,"9.1":0.00236,"12.1":0.00236,"13.1":0.00709,"14.1":0.00945,"15.1":0.00236,"15.2-15.3":0.00236,"15.4":0.00236,"15.5":0.00236,"15.6":0.02126,"16.0":0.00236,"16.1":0.00709,"16.2":0.00945,"16.3":0.01653,"16.4":0.00236,"16.5":0.00472,"16.6":0.02362,"17.0":0.00472,"17.1":0.00709,"17.2":0.00709,"17.3":0.00945,"17.4":0.11101,"17.5":0.01417},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00054,"5.0-5.1":0.00054,"6.0-6.1":0.00135,"7.0-7.1":0.00189,"8.1-8.4":0.00054,"9.0-9.2":0.00135,"9.3":0.00622,"10.0-10.2":0.00108,"10.3":0.00974,"11.0-11.2":0.01433,"11.3-11.4":0.0027,"12.0-12.1":0.00162,"12.2-12.5":0.03921,"13.0-13.1":0.00081,"13.2":0.00379,"13.3":0.00189,"13.4-13.7":0.00865,"14.0-14.4":0.01487,"14.5-14.8":0.02299,"15.0-15.1":0.01109,"15.2-15.3":0.01217,"15.4":0.01379,"15.5":0.01731,"15.6-15.8":0.15576,"16.0":0.03543,"16.1":0.07301,"16.2":0.03543,"16.3":0.06139,"16.4":0.01298,"16.5":0.02623,"16.6-16.7":0.20904,"17.0":0.02272,"17.1":0.03705,"17.2":0.03867,"17.3":0.07139,"17.4":1.62117,"17.5":0.11439,"17.6":0},P:{"4":0.12555,"20":0.01046,"21":0.03139,"22":0.03139,"23":0.04185,"24":0.0837,"25":0.53357,"5.0-5.4":0.01046,"6.2-6.4":0.01046,"7.2-7.4":0.02092,_:"8.2 10.1 12.0 14.0 15.0 16.0 18.0","9.2":0.01046,"11.1-11.2":0.01046,"13.0":0.01046,"17.0":0.02092,"19.0":0.01046},I:{"0":0.06087,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":2.14517,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01479,"9":0.00493,"10":0.00246,"11":0.09119,_:"6 7 5.5"},S:{"2.5":0.07639,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":69.21953},R:{_:"0"},M:{"0":0.06111},Q:{_:"14.9"},O:{"0":3.25421},H:{"0":0.2}}; diff --git a/node_modules/caniuse-lite/data/regions/PL.js b/node_modules/caniuse-lite/data/regions/PL.js index d5df20aaa..8914397c9 100644 --- a/node_modules/caniuse-lite/data/regions/PL.js +++ b/node_modules/caniuse-lite/data/regions/PL.js @@ -1 +1 @@ -module.exports={C:{"48":0.00569,"52":0.07959,"60":0.00569,"68":0.00569,"78":0.00569,"102":0.01137,"107":0.00569,"108":0.00569,"109":0.00569,"110":0.00569,"113":0.00569,"115":0.66515,"120":0.00569,"124":0.00569,"127":0.01137,"128":0.24446,"130":0.00569,"131":0.00569,"132":0.00569,"133":0.02274,"134":0.01706,"135":0.02274,"136":0.05685,"137":0.09096,"138":0.20466,"139":4.07046,"140":0.60261,"141":0.01706,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 111 112 114 116 117 118 119 121 122 123 125 126 129 142 143 3.5 3.6"},D:{"39":0.00569,"40":0.00569,"41":0.00569,"42":0.00569,"43":0.00569,"44":0.00569,"45":0.00569,"46":0.00569,"47":0.00569,"48":0.01137,"49":0.01137,"50":0.01137,"51":0.00569,"52":0.01706,"53":0.00569,"54":0.00569,"55":0.00569,"56":0.00569,"57":0.00569,"58":0.00569,"59":0.00569,"60":0.00569,"73":0.00569,"75":0.00569,"79":0.722,"80":0.00569,"85":0.00569,"86":0.00569,"87":0.04548,"88":0.00569,"89":0.00569,"90":0.01706,"91":0.01137,"93":0.00569,"97":0.00569,"99":0.14781,"101":0.01137,"102":0.01137,"103":0.02274,"104":0.02843,"105":0.01137,"106":0.01706,"107":0.02843,"108":0.03411,"109":0.93234,"110":0.01137,"111":0.76179,"112":0.01706,"113":0.01137,"114":0.02274,"115":0.00569,"116":0.05685,"117":0.00569,"118":0.06822,"119":0.02274,"120":0.03411,"121":0.01706,"122":0.06822,"123":0.17624,"124":0.0398,"125":0.10233,"126":0.06254,"127":0.01706,"128":0.04548,"129":0.02274,"130":0.07959,"131":0.14213,"132":0.18192,"133":0.09096,"134":0.1535,"135":0.18192,"136":2.42181,"137":19.43133,"138":0.84138,"139":0.02274,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 74 76 77 78 81 83 84 92 94 95 96 98 100 140 141"},F:{"46":0.00569,"79":0.00569,"85":0.01137,"87":0.00569,"89":0.06254,"90":0.03411,"94":0.00569,"95":0.17055,"102":0.00569,"109":0.00569,"110":0.00569,"113":0.00569,"114":0.01706,"116":0.00569,"117":0.02274,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 88 91 92 93 96 97 98 99 100 101 103 104 105 106 107 108 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00569},B:{"92":0.00569,"96":0.64241,"106":0.00569,"107":0.00569,"108":0.00569,"109":0.1535,"110":0.00569,"114":0.00569,"120":0.00569,"121":0.01706,"122":0.00569,"123":0.00569,"124":0.00569,"126":0.00569,"127":0.00569,"128":0.00569,"129":0.00569,"130":0.01137,"131":0.01706,"132":0.01706,"133":0.01137,"134":0.05685,"135":0.04548,"136":1.01193,"137":5.20746,"138":0.44343,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 111 112 113 115 116 117 118 119 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3","13.1":0.01137,"14.1":0.01706,"15.4":0.00569,"15.5":0.00569,"15.6":0.06822,"16.0":0.01137,"16.1":0.00569,"16.2":0.00569,"16.3":0.01137,"16.4":0.00569,"16.5":0.00569,"16.6":0.05685,"17.0":0.00569,"17.1":0.02843,"17.2":0.01706,"17.3":0.01137,"17.4":0.03411,"17.5":0.02843,"17.6":0.10802,"18.0":0.02843,"18.1":0.02843,"18.2":0.01706,"18.3":0.07391,"18.4":0.07391,"18.5":0.6822,"26.0":0.00569},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00168,"5.0-5.1":0,"6.0-6.1":0.00335,"7.0-7.1":0.00335,"8.1-8.4":0,"9.0-9.2":0.00168,"9.3":0.01006,"10.0-10.2":0.00084,"10.3":0.01676,"11.0-11.2":0.10729,"11.3-11.4":0.00587,"12.0-12.1":0.00168,"12.2-12.5":0.05616,"13.0-13.1":0.00084,"13.2":0.00251,"13.3":0.00168,"13.4-13.7":0.00922,"14.0-14.4":0.02179,"14.5-14.8":0.02179,"15.0-15.1":0.01509,"15.2-15.3":0.01509,"15.4":0.01844,"15.5":0.02012,"15.6-15.8":0.25983,"16.0":0.03436,"16.1":0.07041,"16.2":0.03604,"16.3":0.06622,"16.4":0.01509,"16.5":0.02682,"16.6-16.7":0.32605,"17.0":0.0176,"17.1":0.03101,"17.2":0.02431,"17.3":0.03436,"17.4":0.06119,"17.5":0.12824,"17.6-17.7":0.33527,"18.0":0.08298,"18.1":0.18691,"18.2":0.0989,"18.3":0.42495,"18.4":0.45093,"18.5":5.28632,"26.0":0},P:{"4":0.03102,"21":0.01034,"22":0.01034,"23":0.02068,"24":0.02068,"25":0.02068,"26":0.06205,"27":0.10341,"28":1.80973,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.03016,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.88478,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00731,"10":0.00731,"11":0.03655,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":30.73598},R:{_:"0"},M:{"0":0.48771},Q:{"14.9":0.00863},O:{"0":0.16401},H:{"0":0}}; +module.exports={C:{"47":0.00305,"52":0.02743,"68":0.00305,"78":0.03048,"88":0.01524,"91":0.00305,"102":0.0061,"103":0.00305,"104":0.00914,"105":0.00305,"106":0.00305,"107":0.00305,"108":0.00305,"109":0.00305,"110":0.0061,"111":0.00305,"112":0.00305,"113":0.00305,"114":0.00305,"115":0.4572,"116":0.00305,"117":0.00305,"118":0.00305,"119":0.00305,"120":0.0061,"121":0.00914,"122":0.01219,"123":0.03048,"124":0.05182,"125":1.524,"126":1.38684,"127":0.0061,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 128 129 3.5 3.6"},D:{"49":0.01219,"76":0.0061,"78":0.00305,"79":0.33528,"81":0.00305,"85":0.00305,"87":0.01829,"88":0.00305,"89":0.01219,"90":0.00305,"91":0.00305,"92":0.00305,"93":0.00305,"94":0.0061,"95":0.00305,"97":0.00305,"98":0.00305,"99":0.08534,"100":0.00305,"102":0.01219,"103":0.01219,"104":2.40792,"105":0.0061,"106":0.00914,"107":0.01219,"108":0.01829,"109":0.66751,"110":0.00914,"111":0.04267,"112":0.00914,"113":0.21031,"114":0.1585,"115":0.00914,"116":0.02743,"117":0.01219,"118":0.01219,"119":0.01829,"120":0.04572,"121":0.05791,"122":0.11887,"123":0.37795,"124":8.40334,"125":3.26441,"126":0.00305,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 80 83 84 86 96 101 127 128"},F:{"36":0.00305,"72":0.00305,"79":0.00305,"82":0.00305,"85":0.00305,"86":0.00305,"95":0.10973,"102":0.0061,"105":0.00305,"106":0.0061,"107":1.19177,"108":0.03962,"109":4.11175,"110":0.24079,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 80 81 83 84 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00305,"100":0.00305,"107":0.00305,"109":0.04572,"110":0.00305,"111":0.00305,"112":0.00305,"113":0.00305,"114":0.01829,"115":0.00914,"117":0.00305,"118":0.00305,"119":0.00305,"120":0.0061,"121":0.0061,"122":0.03353,"123":0.05182,"124":1.30759,"125":0.75286,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 116"},E:{"13":0.00305,"14":0.00305,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.0061,"14.1":0.01829,"15.1":0.00305,"15.2-15.3":0.00305,"15.4":0.00305,"15.5":0.00305,"15.6":0.03048,"16.0":0.00914,"16.1":0.00914,"16.2":0.0061,"16.3":0.01524,"16.4":0.0061,"16.5":0.00914,"16.6":0.05182,"17.0":0.01524,"17.1":0.02134,"17.2":0.02743,"17.3":0.03048,"17.4":0.29261,"17.5":0.06096},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00149,"5.0-5.1":0.00149,"6.0-6.1":0.00374,"7.0-7.1":0.00523,"8.1-8.4":0.00149,"9.0-9.2":0.00374,"9.3":0.01719,"10.0-10.2":0.00299,"10.3":0.02691,"11.0-11.2":0.03961,"11.3-11.4":0.00747,"12.0-12.1":0.00448,"12.2-12.5":0.10838,"13.0-13.1":0.00224,"13.2":0.01046,"13.3":0.00523,"13.4-13.7":0.02392,"14.0-14.4":0.04111,"14.5-14.8":0.06353,"15.0-15.1":0.03065,"15.2-15.3":0.03364,"15.4":0.03812,"15.5":0.04784,"15.6-15.8":0.43053,"16.0":0.09792,"16.1":0.20181,"16.2":0.09792,"16.3":0.16967,"16.4":0.03588,"16.5":0.0725,"16.6-16.7":0.57778,"17.0":0.06279,"17.1":0.1024,"17.2":0.10688,"17.3":0.19733,"17.4":4.48095,"17.5":0.31617,"17.6":0},P:{"20":0.03055,"21":0.04074,"22":0.07129,"23":0.14258,"24":0.28516,"25":2.49517,_:"4 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 12.0 15.0","11.1-11.2":0.01018,"13.0":0.01018,"14.0":0.02037,"16.0":0.01018,"17.0":0.01018,"18.0":0.02037,"19.0":0.03055},I:{"0":0.02078,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":2.68386,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00813,"11":0.01626,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.80083},R:{_:"0"},M:{"0":0.53538},Q:{_:"14.9"},O:{"0":0.02086},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PM.js b/node_modules/caniuse-lite/data/regions/PM.js index a11ae920c..8a51211ec 100644 --- a/node_modules/caniuse-lite/data/regions/PM.js +++ b/node_modules/caniuse-lite/data/regions/PM.js @@ -1 +1 @@ -module.exports={C:{"128":0.15255,"131":0.00565,"135":0.0226,"138":0.02825,"139":0.9492,"140":0.226,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133 134 136 137 141 142 143 3.5 3.6"},D:{"67":0.00565,"100":0.02825,"101":0.0452,"103":0.16385,"104":0.0226,"106":0.01695,"107":0.03955,"109":0.3955,"110":0.0226,"111":0.0226,"116":0.0226,"118":0.02825,"122":0.00565,"124":0.0904,"125":0.0452,"126":0.02825,"127":0.00565,"128":0.01695,"131":0.2938,"132":0.0452,"133":0.19775,"134":0.1356,"135":0.05085,"136":1.3221,"137":13.61085,"138":0.11865,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 102 105 108 112 113 114 115 117 119 120 121 123 129 130 139 140 141"},F:{"92":0.00565,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"128":0.00565,"131":0.00565,"134":0.00565,"136":0.17515,"137":0.8023,"138":0.4407,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.4","14.1":0.03955,"15.1":0.48025,"15.2-15.3":0.03955,"15.5":0.01695,"15.6":0.7684,"16.0":0.01695,"16.1":0.24295,"16.2":0.3955,"16.3":1.28255,"16.4":0.8136,"16.5":0.36725,"16.6":4.2601,"17.0":0.02825,"17.1":3.1753,"17.2":0.791,"17.3":0.18645,"17.4":2.486,"17.5":2.58205,"17.6":10.7011,"18.0":0.0678,"18.1":0.0452,"18.2":0.0904,"18.3":1.22605,"18.4":0.7119,"18.5":4.37875,"26.0":0.00565},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00676,"5.0-5.1":0,"6.0-6.1":0.01353,"7.0-7.1":0.01353,"8.1-8.4":0,"9.0-9.2":0.00676,"9.3":0.04058,"10.0-10.2":0.00338,"10.3":0.06763,"11.0-11.2":0.43286,"11.3-11.4":0.02367,"12.0-12.1":0.00676,"12.2-12.5":0.22657,"13.0-13.1":0.00338,"13.2":0.01015,"13.3":0.00676,"13.4-13.7":0.0372,"14.0-14.4":0.08792,"14.5-14.8":0.08792,"15.0-15.1":0.06087,"15.2-15.3":0.06087,"15.4":0.0744,"15.5":0.08116,"15.6-15.8":1.04832,"16.0":0.13865,"16.1":0.28406,"16.2":0.14541,"16.3":0.26715,"16.4":0.06087,"16.5":0.10821,"16.6-16.7":1.31548,"17.0":0.07102,"17.1":0.12512,"17.2":0.09807,"17.3":0.13865,"17.4":0.24686,"17.5":0.5174,"17.6-17.7":1.35268,"18.0":0.33479,"18.1":0.75412,"18.2":0.39904,"18.3":1.71452,"18.4":1.81935,"18.5":21.32832,"26.0":0},P:{"27":0.05487,"28":1.14138,_:"4 20 21 22 23 24 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":8.5352},R:{_:"0"},M:{"0":0.06525},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"78":0.00496,"86":0.00992,"91":0.00496,"108":0.00992,"113":0.00992,"115":0.0744,"119":0.08928,"123":0.00496,"124":0.00496,"125":0.58528,"126":0.372,"127":0.00496,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 114 116 117 118 120 121 122 128 129 3.5 3.6"},D:{"103":0.03472,"109":0.31744,"116":0.02976,"120":0.00496,"122":0.03968,"123":0.51584,"124":10.54,"125":1.28464,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 121 126 127 128"},F:{"107":0.01488,"109":0.248,"110":0.00992,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.03472,"115":0.01488,"123":0.06448,"124":0.94736,"125":0.53072,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122"},E:{"15":0.00496,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.0248,"14.1":0.05952,"15.1":0.20336,"15.2-15.3":0.06448,"15.4":0.00992,"15.5":0.03968,"15.6":0.7688,"16.0":0.0744,"16.1":0.28768,"16.2":0.43648,"16.3":1.22512,"16.4":0.40176,"16.5":0.93744,"16.6":3.70512,"17.0":0.16368,"17.1":0.79856,"17.2":1.22016,"17.3":0.73408,"17.4":20.05328,"17.5":1.96416},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0089,"5.0-5.1":0.0089,"6.0-6.1":0.02224,"7.0-7.1":0.03113,"8.1-8.4":0.0089,"9.0-9.2":0.02224,"9.3":0.1023,"10.0-10.2":0.01779,"10.3":0.16012,"11.0-11.2":0.23573,"11.3-11.4":0.04448,"12.0-12.1":0.02669,"12.2-12.5":0.64493,"13.0-13.1":0.01334,"13.2":0.06227,"13.3":0.03113,"13.4-13.7":0.14233,"14.0-14.4":0.24463,"14.5-14.8":0.37806,"15.0-15.1":0.18236,"15.2-15.3":0.20015,"15.4":0.22684,"15.5":0.28466,"15.6-15.8":2.56193,"16.0":0.58266,"16.1":1.20091,"16.2":0.58266,"16.3":1.00965,"16.4":0.21349,"16.5":0.43144,"16.6-16.7":3.43815,"17.0":0.37362,"17.1":0.60935,"17.2":0.63604,"17.3":1.17422,"17.4":26.66456,"17.5":1.88142,"17.6":0},P:{"21":0.04203,"23":0.01051,"24":0.16811,"25":0.39927,_:"4 20 22 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.01004,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00496,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":5.25048},R:{_:"0"},M:{"0":0.07056},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PN.js b/node_modules/caniuse-lite/data/regions/PN.js index edfd9c01f..b381fec38 100644 --- a/node_modules/caniuse-lite/data/regions/PN.js +++ b/node_modules/caniuse-lite/data/regions/PN.js @@ -1 +1 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 3.5 3.6"},D:{_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5 26.0"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01556,"5.0-5.1":0,"6.0-6.1":0.03111,"7.0-7.1":0.03111,"8.1-8.4":0,"9.0-9.2":0.01556,"9.3":0.09334,"10.0-10.2":0.00778,"10.3":0.15556,"11.0-11.2":0.99558,"11.3-11.4":0.05445,"12.0-12.1":0.01556,"12.2-12.5":0.52113,"13.0-13.1":0.00778,"13.2":0.02333,"13.3":0.01556,"13.4-13.7":0.08556,"14.0-14.4":0.20223,"14.5-14.8":0.20223,"15.0-15.1":0.14,"15.2-15.3":0.14,"15.4":0.17112,"15.5":0.18667,"15.6-15.8":2.41118,"16.0":0.3189,"16.1":0.65335,"16.2":0.33445,"16.3":0.61446,"16.4":0.14,"16.5":0.2489,"16.6-16.7":3.02564,"17.0":0.16334,"17.1":0.28779,"17.2":0.22556,"17.3":0.3189,"17.4":0.56779,"17.5":1.19003,"17.6-17.7":3.1112,"18.0":0.77002,"18.1":1.73449,"18.2":0.9178,"18.3":3.94345,"18.4":4.18456,"18.5":49.05585,"26.0":0},P:{"28":11.11,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":11.11},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"125":1.961,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 3.5 3.6"},D:{"124":19.61,"125":1.961,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 126 127 128"},F:{"109":11.766,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.01216,"5.0-5.1":0.01216,"6.0-6.1":0.03039,"7.0-7.1":0.04255,"8.1-8.4":0.01216,"9.0-9.2":0.03039,"9.3":0.13979,"10.0-10.2":0.02431,"10.3":0.21881,"11.0-11.2":0.32213,"11.3-11.4":0.06078,"12.0-12.1":0.03647,"12.2-12.5":0.88131,"13.0-13.1":0.01823,"13.2":0.08509,"13.3":0.04255,"13.4-13.7":0.1945,"14.0-14.4":0.33429,"14.5-14.8":0.51663,"15.0-15.1":0.2492,"15.2-15.3":0.27351,"15.4":0.30998,"15.5":0.38899,"15.6-15.8":3.50093,"16.0":0.79622,"16.1":1.64106,"16.2":0.79622,"16.3":1.37971,"16.4":0.29174,"16.5":0.58957,"16.6-16.7":4.69829,"17.0":0.51055,"17.1":0.83269,"17.2":0.86915,"17.3":1.60459,"17.4":36.43761,"17.5":2.57099,"17.6":0},P:{_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{_:"0"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PR.js b/node_modules/caniuse-lite/data/regions/PR.js index cc57f76d3..315876552 100644 --- a/node_modules/caniuse-lite/data/regions/PR.js +++ b/node_modules/caniuse-lite/data/regions/PR.js @@ -1 +1 @@ -module.exports={C:{"78":0.00286,"115":0.02856,"128":0.01428,"129":0.00286,"134":0.06569,"136":0.01428,"137":0.00286,"138":0.03713,"139":0.82824,"140":0.09139,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 130 131 132 133 135 141 142 143 3.5 3.6"},D:{"39":0.00571,"40":0.00571,"41":0.00571,"42":0.00571,"43":0.00286,"44":0.00571,"45":0.00571,"46":0.00571,"47":0.00571,"48":0.00571,"49":0.00571,"50":0.00571,"51":0.00571,"52":0.00571,"53":0.00571,"54":0.00571,"55":0.00571,"56":0.00571,"57":0.00571,"58":0.00571,"59":0.00571,"60":0.00286,"65":0.00286,"74":0.00286,"76":0.00286,"79":0.00571,"84":0.00286,"85":0.00286,"87":0.01714,"91":0.00286,"93":0.00286,"95":0.00286,"98":0.0257,"99":0.01142,"101":0.00286,"103":0.08282,"104":0.00286,"108":0.00571,"109":0.17136,"111":0.00286,"113":0.05426,"114":0.00571,"116":0.04284,"118":0.01428,"119":0.00857,"120":0.00286,"121":0.01142,"122":0.02856,"123":0.00857,"124":0.00857,"125":0.80539,"126":0.02285,"127":0.01142,"128":0.04284,"129":0.00571,"130":0.01714,"131":0.01999,"132":0.02856,"133":0.03427,"134":0.03998,"135":0.20849,"136":1.33375,"137":8.57371,"138":0.34272,"139":0.01714,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 75 77 78 80 81 83 86 88 89 90 92 94 96 97 100 102 105 106 107 110 112 115 117 140 141"},F:{"89":0.01142,"90":0.01142,"95":0.00286,"109":0.00571,"114":0.00286,"117":0.04284,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00286,"92":0.00286,"98":0.00286,"99":0.00286,"109":0.02856,"122":0.01428,"123":0.03142,"124":0.00286,"127":0.00286,"128":0.00286,"129":0.00286,"130":0.01999,"131":0.00857,"132":0.01999,"133":0.00857,"134":0.07997,"135":0.0257,"136":0.61118,"137":4.00982,"138":0.32844,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 125 126"},E:{"8":0.00286,"11":0.00286,"13":0.00286,"14":0.01142,"15":0.00286,_:"0 4 5 6 7 9 10 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1","12.1":0.00286,"13.1":0.01428,"14.1":0.0257,"15.1":0.02285,"15.2-15.3":0.00286,"15.4":0.00571,"15.5":0.00571,"15.6":0.09425,"16.0":0.00857,"16.1":0.01714,"16.2":0.00857,"16.3":0.02856,"16.4":0.01142,"16.5":0.00857,"16.6":0.1171,"17.0":0.05426,"17.1":0.05998,"17.2":0.03427,"17.3":0.0257,"17.4":0.03998,"17.5":0.06569,"17.6":0.22848,"18.0":0.12566,"18.1":0.05141,"18.2":0.08854,"18.3":0.14851,"18.4":0.16565,"18.5":2.27623,"26.0":0.00857},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00646,"5.0-5.1":0,"6.0-6.1":0.01291,"7.0-7.1":0.01291,"8.1-8.4":0,"9.0-9.2":0.00646,"9.3":0.03873,"10.0-10.2":0.00323,"10.3":0.06455,"11.0-11.2":0.41314,"11.3-11.4":0.02259,"12.0-12.1":0.00646,"12.2-12.5":0.21625,"13.0-13.1":0.00323,"13.2":0.00968,"13.3":0.00646,"13.4-13.7":0.0355,"14.0-14.4":0.08392,"14.5-14.8":0.08392,"15.0-15.1":0.0581,"15.2-15.3":0.0581,"15.4":0.07101,"15.5":0.07746,"15.6-15.8":1.00057,"16.0":0.13233,"16.1":0.27112,"16.2":0.13879,"16.3":0.25499,"16.4":0.0581,"16.5":0.10329,"16.6-16.7":1.25556,"17.0":0.06778,"17.1":0.11942,"17.2":0.0936,"17.3":0.13233,"17.4":0.23562,"17.5":0.49383,"17.6-17.7":1.29106,"18.0":0.31954,"18.1":0.71977,"18.2":0.38086,"18.3":1.63642,"18.4":1.73648,"18.5":20.35685,"26.0":0},P:{"4":0.03099,"22":0.01033,"23":0.01033,"24":0.01033,"25":0.03099,"26":0.03099,"27":0.18593,"28":3.65659,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01033,"16.0":0.03099},I:{"0":0.04992,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.1786,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04284,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":38.05225},R:{_:"0"},M:{"0":0.42864},Q:{_:"14.9"},O:{"0":0.00714},H:{"0":0}}; +module.exports={C:{"52":0.00352,"78":0.00705,"115":0.10924,"120":0.07753,"121":0.00352,"122":0.00352,"123":0.00352,"124":0.06696,"125":0.75414,"126":0.6026,"127":0.00352,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 128 129 3.5 3.6"},D:{"38":0.00352,"41":0.0141,"43":0.00352,"44":0.00352,"45":0.00705,"46":0.00352,"49":0.02114,"51":0.00352,"65":0.02819,"70":0.00705,"74":0.00352,"76":0.00352,"77":0.00352,"79":0.01057,"84":0.00352,"85":0.0141,"87":0.0141,"88":0.00705,"89":0.00352,"90":0.00352,"93":0.00352,"94":0.00705,"95":0.00352,"98":0.00352,"99":0.00352,"100":0.00352,"101":0.00705,"102":0.00352,"103":0.07048,"105":0.01057,"106":0.01057,"107":0.0141,"108":0.01762,"109":1.36379,"110":0.00352,"111":0.0141,"112":0.00352,"113":0.07048,"114":0.0141,"115":0.00705,"116":0.0881,"117":0.00352,"118":0.01057,"119":0.09515,"120":0.03524,"121":0.05991,"122":0.18677,"123":0.76823,"124":11.77368,"125":3.78125,"126":0.0141,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 71 72 73 75 78 80 81 83 86 91 92 96 97 104 127 128"},F:{"28":0.00352,"69":0.0141,"73":0.00352,"86":0.00352,"94":0.00705,"95":0.03524,"106":0.01762,"107":0.31364,"108":0.01057,"109":0.99377,"110":0.03876,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 91 92 93 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00352,"17":0.01762,"18":0.00705,"89":0.00352,"90":0.00352,"92":0.00705,"97":0.00352,"100":0.01057,"107":0.01057,"108":0.01057,"109":0.02819,"110":0.00352,"111":0.00705,"112":0.00352,"113":0.00352,"114":0.01057,"115":0.01057,"116":0.00352,"117":0.00352,"118":0.00352,"119":0.07048,"120":0.02467,"121":0.02114,"122":0.05991,"123":0.16563,"124":4.77502,"125":2.28003,_:"12 13 14 16 79 80 81 83 84 85 86 87 88 91 93 94 95 96 98 99 101 102 103 104 105 106"},E:{"9":0.00352,"13":0.00352,"14":0.03876,"15":0.00352,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00352,"13.1":0.03172,"14.1":0.1762,"15.1":0.02819,"15.2-15.3":0.01762,"15.4":0.02114,"15.5":0.05991,"15.6":0.18325,"16.0":0.0141,"16.1":0.05991,"16.2":0.04581,"16.3":0.18677,"16.4":0.03172,"16.5":0.11277,"16.6":0.50746,"17.0":0.06696,"17.1":0.0881,"17.2":0.11982,"17.3":0.20087,"17.4":2.08973,"17.5":0.38412},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00547,"5.0-5.1":0.00547,"6.0-6.1":0.01366,"7.0-7.1":0.01913,"8.1-8.4":0.00547,"9.0-9.2":0.01366,"9.3":0.06286,"10.0-10.2":0.01093,"10.3":0.09838,"11.0-11.2":0.14484,"11.3-11.4":0.02733,"12.0-12.1":0.0164,"12.2-12.5":0.39627,"13.0-13.1":0.0082,"13.2":0.03826,"13.3":0.01913,"13.4-13.7":0.08745,"14.0-14.4":0.15031,"14.5-14.8":0.23229,"15.0-15.1":0.11205,"15.2-15.3":0.12298,"15.4":0.13938,"15.5":0.1749,"15.6-15.8":1.57413,"16.0":0.35801,"16.1":0.73788,"16.2":0.35801,"16.3":0.62036,"16.4":0.13118,"16.5":0.26509,"16.6-16.7":2.11251,"17.0":0.22956,"17.1":0.3744,"17.2":0.3908,"17.3":0.72148,"17.4":16.38357,"17.5":1.156,"17.6":0},P:{"4":0.19153,"20":0.02128,"21":0.0532,"22":0.0532,"23":0.13833,"24":0.3405,"25":2.5431,"5.0-5.4":0.01064,"6.2-6.4":0.01064,"7.2-7.4":0.01064,"8.2":0.01064,_:"9.2 10.1 12.0 14.0 15.0","11.1-11.2":0.01064,"13.0":0.01064,"16.0":0.01064,"17.0":0.01064,"18.0":0.02128,"19.0":0.01064},I:{"0":0.05161,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.20723,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00352,"8":0.01762,"9":0.00352,"10":0.00352,"11":0.03172,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.29814},R:{_:"0"},M:{"0":0.37561},Q:{_:"14.9"},O:{"0":0.00648},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PS.js b/node_modules/caniuse-lite/data/regions/PS.js index 50aaf56d5..7674524eb 100644 --- a/node_modules/caniuse-lite/data/regions/PS.js +++ b/node_modules/caniuse-lite/data/regions/PS.js @@ -1 +1 @@ -module.exports={C:{"52":0.00147,"108":0.00147,"115":0.03974,"127":0.00294,"128":0.00589,"133":0.00147,"134":0.00294,"135":0.00147,"136":0.00147,"137":0.00442,"138":0.01766,"139":0.27821,"140":0.05299,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"38":0.00294,"46":0.00294,"49":0.00147,"56":0.00147,"58":0.00442,"69":0.00147,"70":0.00147,"71":0.00147,"73":0.00294,"77":0.03974,"78":0.00147,"79":0.01619,"80":0.00442,"81":0.00147,"83":0.00442,"85":0.00147,"87":0.01325,"89":0.0103,"90":0.00147,"91":0.00147,"92":0.00147,"93":0.00147,"95":0.01619,"96":0.00147,"97":0.00589,"98":0.00442,"100":0.00442,"101":0.00147,"102":0.00147,"103":0.00442,"104":0.00589,"106":0.00294,"107":0.01472,"108":0.00883,"109":0.29146,"110":0.00147,"111":0.0103,"112":0.00147,"113":0.00147,"114":0.01178,"115":0.00294,"116":0.0103,"117":0.02061,"118":0.00736,"119":0.01472,"120":0.00736,"121":0.00294,"122":0.02208,"123":0.03974,"124":0.00883,"125":1.59712,"126":0.00589,"127":0.01178,"128":0.03386,"129":0.00736,"130":0.01914,"131":0.05005,"132":0.05299,"133":0.02208,"134":0.0368,"135":0.09274,"136":1.26445,"137":6.95667,"138":0.34886,"139":0.00294,"140":0.00147,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 47 48 50 51 52 53 54 55 57 59 60 61 62 63 64 65 66 67 68 72 74 75 76 84 86 88 94 99 105 141"},F:{"46":0.00147,"79":0.00147,"89":0.00294,"90":0.00294,"95":0.00442,"108":0.00147,"117":0.00147,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00147,"18":0.00589,"84":0.00147,"92":0.01178,"100":0.00589,"103":0.00147,"109":0.00294,"113":0.00147,"114":0.00147,"115":0.00147,"117":0.00442,"118":0.00147,"122":0.00147,"126":0.00147,"129":0.00147,"130":0.00147,"131":0.00589,"132":0.00294,"133":0.00736,"134":0.06477,"135":0.0103,"136":0.14426,"137":0.92442,"138":0.10157,_:"12 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 112 116 119 120 121 123 124 125 127 128"},E:{"14":0.00147,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","5.1":0.03091,"13.1":0.00147,"14.1":0.00442,"15.5":0.00147,"15.6":0.00736,"16.0":0.00147,"16.1":0.00294,"16.2":0.00442,"16.3":0.00736,"16.4":0.00147,"16.5":0.00294,"16.6":0.02208,"17.0":0.00442,"17.1":0.00294,"17.2":0.00147,"17.3":0.00147,"17.4":0.00883,"17.5":0.00442,"17.6":0.01766,"18.0":0.00883,"18.1":0.00883,"18.2":0.00442,"18.3":0.03827,"18.4":0.02208,"18.5":0.20166},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00139,"5.0-5.1":0,"6.0-6.1":0.00277,"7.0-7.1":0.00277,"8.1-8.4":0,"9.0-9.2":0.00139,"9.3":0.00832,"10.0-10.2":0.00069,"10.3":0.01386,"11.0-11.2":0.08874,"11.3-11.4":0.00485,"12.0-12.1":0.00139,"12.2-12.5":0.04645,"13.0-13.1":0.00069,"13.2":0.00208,"13.3":0.00139,"13.4-13.7":0.00763,"14.0-14.4":0.01802,"14.5-14.8":0.01802,"15.0-15.1":0.01248,"15.2-15.3":0.01248,"15.4":0.01525,"15.5":0.01664,"15.6-15.8":0.21491,"16.0":0.02842,"16.1":0.05823,"16.2":0.02981,"16.3":0.05477,"16.4":0.01248,"16.5":0.02218,"16.6-16.7":0.26967,"17.0":0.01456,"17.1":0.02565,"17.2":0.0201,"17.3":0.02842,"17.4":0.05061,"17.5":0.10607,"17.6-17.7":0.2773,"18.0":0.06863,"18.1":0.15459,"18.2":0.0818,"18.3":0.35148,"18.4":0.37297,"18.5":4.3723,"26.0":0},P:{"4":0.02032,"20":0.02032,"21":0.0508,"22":0.12192,"23":0.0508,"24":0.03048,"25":0.08128,"26":0.2032,"27":0.254,"28":1.35126,_:"5.0-5.4 8.2 9.2 10.1 12.0","6.2-6.4":0.01016,"7.2-7.4":0.03048,"11.1-11.2":0.02032,"13.0":0.02032,"14.0":0.02032,"15.0":0.01016,"16.0":0.02032,"17.0":0.03048,"18.0":0.01016,"19.0":0.03048},I:{"0":0.01703,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.33255,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0103,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.34781},R:{_:"0"},M:{"0":0.05969},Q:{_:"14.9"},O:{"0":0.01705},H:{"0":0}}; +module.exports={C:{"52":0.00201,"78":0.00201,"106":0.00201,"110":0.00201,"115":0.04012,"118":0.00401,"121":0.00201,"122":0.00401,"123":0.00802,"124":0.01204,"125":0.22467,"126":0.19859,"127":0.00201,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 111 112 113 114 116 117 119 120 128 129 3.5 3.6"},D:{"11":0.00201,"33":0.00201,"34":0.00401,"38":0.00802,"43":0.00201,"49":0.00401,"53":0.00201,"56":0.00401,"58":0.00201,"63":0.00201,"65":0.00201,"68":0.00802,"69":0.00602,"70":0.00201,"71":0.00201,"72":0.00602,"73":0.01204,"76":0.00201,"77":0.02407,"78":0.01204,"79":0.0321,"80":0.00401,"81":0.00201,"83":0.03009,"84":0.00201,"85":0.00201,"86":0.00802,"87":0.04213,"88":0.00201,"89":0.00602,"90":0.00602,"91":0.00201,"92":0.00201,"94":0.00201,"95":0.00201,"97":0.00201,"98":0.0341,"99":0.00401,"100":0.01605,"101":0.00201,"102":0.01003,"103":0.01003,"104":0.00802,"105":0.00802,"106":0.01003,"107":0.00602,"108":0.01404,"109":1.13138,"110":0.01404,"111":0.00602,"112":0.03611,"113":0.00201,"114":0.01003,"115":0.00401,"116":0.04213,"117":0.05416,"118":0.01204,"119":0.04012,"120":0.05015,"121":0.06219,"122":0.11835,"123":0.32698,"124":9.01898,"125":3.82945,"126":0.00602,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 35 36 37 39 40 41 42 44 45 46 47 48 50 51 52 54 55 57 59 60 61 62 64 66 67 74 75 93 96 127 128"},F:{"46":0.01003,"79":0.00201,"95":0.00602,"102":0.00401,"107":0.12638,"108":0.00602,"109":0.4353,"110":0.03009,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00201,"18":0.00401,"92":0.01003,"100":0.00201,"108":0.00201,"109":0.02808,"112":0.00201,"113":0.00201,"114":0.00201,"117":0.01404,"118":0.00201,"119":0.00201,"120":0.00602,"121":0.00401,"122":0.01805,"123":0.05617,"124":1.02507,"125":0.54162,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 115 116"},E:{"14":0.00401,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 17.6","5.1":0.00201,"13.1":0.01003,"14.1":0.01805,"15.1":0.00201,"15.2-15.3":0.00401,"15.4":0.00602,"15.5":0.00401,"15.6":0.03811,"16.0":0.00201,"16.1":0.03009,"16.2":0.00802,"16.3":0.03009,"16.4":0.0321,"16.5":0.01003,"16.6":0.1324,"17.0":0.01003,"17.1":0.01605,"17.2":0.02207,"17.3":0.03611,"17.4":0.35306,"17.5":0.05416},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00306,"5.0-5.1":0.00306,"6.0-6.1":0.00766,"7.0-7.1":0.01072,"8.1-8.4":0.00306,"9.0-9.2":0.00766,"9.3":0.03523,"10.0-10.2":0.00613,"10.3":0.05514,"11.0-11.2":0.08118,"11.3-11.4":0.01532,"12.0-12.1":0.00919,"12.2-12.5":0.22209,"13.0-13.1":0.00459,"13.2":0.02144,"13.3":0.01072,"13.4-13.7":0.04901,"14.0-14.4":0.08424,"14.5-14.8":0.13019,"15.0-15.1":0.0628,"15.2-15.3":0.06892,"15.4":0.07811,"15.5":0.09803,"15.6-15.8":0.88223,"16.0":0.20065,"16.1":0.41355,"16.2":0.20065,"16.3":0.34768,"16.4":0.07352,"16.5":0.14857,"16.6-16.7":1.18397,"17.0":0.12866,"17.1":0.20984,"17.2":0.21903,"17.3":0.40436,"17.4":9.18224,"17.5":0.64789,"17.6":0},P:{"4":0.082,"20":0.05125,"21":0.11275,"22":0.28701,"23":0.36901,"24":0.44076,"25":2.35755,"5.0-5.4":0.01025,"6.2-6.4":0.01025,"7.2-7.4":0.09225,_:"8.2 10.1 12.0","9.2":0.01025,"11.1-11.2":0.05125,"13.0":0.041,"14.0":0.041,"15.0":0.05125,"16.0":0.05125,"17.0":0.05125,"18.0":0.03075,"19.0":0.07175},I:{"0":0.05574,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.89332,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00244,"11":0.05373,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.29285},R:{_:"0"},M:{"0":0.10392},Q:{_:"14.9"},O:{"0":0.07195},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/PT.js b/node_modules/caniuse-lite/data/regions/PT.js index e5b78c7a6..249a9407e 100644 --- a/node_modules/caniuse-lite/data/regions/PT.js +++ b/node_modules/caniuse-lite/data/regions/PT.js @@ -1 +1 @@ -module.exports={C:{"52":0.01102,"68":0.00551,"78":0.01654,"107":0.00551,"115":0.1819,"123":0.00551,"125":0.01654,"127":0.00551,"128":0.06614,"130":0.00551,"131":0.00551,"133":0.01102,"134":0.00551,"135":0.01102,"136":0.09922,"137":0.02756,"138":0.11024,"139":1.86306,"140":0.24253,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 129 132 141 142 143 3.5 3.6"},D:{"38":0.00551,"39":0.00551,"40":0.00551,"41":0.00551,"42":0.00551,"43":0.00551,"44":0.00551,"45":0.00551,"46":0.00551,"47":0.00551,"48":0.00551,"49":0.02205,"50":0.00551,"51":0.00551,"52":0.00551,"53":0.00551,"54":0.00551,"55":0.00551,"56":0.00551,"57":0.00551,"58":0.00551,"59":0.00551,"60":0.00551,"79":0.03858,"81":0.00551,"87":0.04961,"88":0.00551,"89":0.00551,"91":0.00551,"93":0.01102,"94":0.00551,"97":0.00551,"98":0.00551,"99":0.00551,"100":0.00551,"101":0.01102,"102":0.01102,"103":0.03858,"104":0.05512,"106":0.01654,"107":0.01102,"108":0.04961,"109":0.689,"110":0.00551,"111":0.01654,"112":0.01654,"113":0.00551,"114":0.01654,"115":0.00551,"116":0.08819,"117":1.03626,"118":0.00551,"119":0.01654,"120":0.01102,"121":0.02205,"122":0.15985,"123":0.02756,"124":0.03307,"125":0.25906,"126":0.06614,"127":0.01654,"128":0.11575,"129":0.02205,"130":0.0441,"131":0.1378,"132":0.11024,"133":0.12678,"134":0.14882,"135":0.33072,"136":4.30487,"137":25.68592,"138":0.92602,"139":0.00551,"140":0.00551,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 85 86 90 92 95 96 105 141"},F:{"79":0.00551,"89":0.01654,"90":0.01102,"95":0.01102,"113":0.00551,"114":0.00551,"116":0.00551,"117":0.01102,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00551,"109":0.06063,"110":0.00551,"119":0.00551,"120":0.00551,"121":0.00551,"122":0.00551,"125":0.00551,"126":0.00551,"127":0.00551,"128":0.00551,"129":0.01102,"130":0.01654,"131":0.02756,"132":0.01654,"133":0.01102,"134":0.03858,"135":0.04961,"136":0.99216,"137":5.3742,"138":0.39135,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 118 123 124"},E:{"14":0.00551,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4","13.1":0.02756,"14.1":0.02205,"15.2-15.3":0.00551,"15.5":0.00551,"15.6":0.12126,"16.0":0.02205,"16.1":0.01654,"16.2":0.01654,"16.3":0.02756,"16.4":0.01654,"16.5":0.02205,"16.6":0.14331,"17.0":0.01102,"17.1":0.11024,"17.2":0.01654,"17.3":0.01654,"17.4":0.03858,"17.5":0.07717,"17.6":0.20394,"18.0":0.02756,"18.1":0.03858,"18.2":0.02756,"18.3":0.13229,"18.4":0.15434,"18.5":1.52682,"26.0":0.00551},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00227,"5.0-5.1":0,"6.0-6.1":0.00454,"7.0-7.1":0.00454,"8.1-8.4":0,"9.0-9.2":0.00227,"9.3":0.01363,"10.0-10.2":0.00114,"10.3":0.02271,"11.0-11.2":0.14534,"11.3-11.4":0.00795,"12.0-12.1":0.00227,"12.2-12.5":0.07608,"13.0-13.1":0.00114,"13.2":0.00341,"13.3":0.00227,"13.4-13.7":0.01249,"14.0-14.4":0.02952,"14.5-14.8":0.02952,"15.0-15.1":0.02044,"15.2-15.3":0.02044,"15.4":0.02498,"15.5":0.02725,"15.6-15.8":0.35199,"16.0":0.04655,"16.1":0.09538,"16.2":0.04882,"16.3":0.0897,"16.4":0.02044,"16.5":0.03633,"16.6-16.7":0.4417,"17.0":0.02384,"17.1":0.04201,"17.2":0.03293,"17.3":0.04655,"17.4":0.08289,"17.5":0.17373,"17.6-17.7":0.45419,"18.0":0.11241,"18.1":0.25321,"18.2":0.13398,"18.3":0.57568,"18.4":0.61088,"18.5":7.16137,"26.0":0},P:{"4":0.04157,"21":0.01039,"22":0.02078,"23":0.02078,"24":0.01039,"25":0.02078,"26":0.03118,"27":0.06235,"28":1.6835,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01039,"9.2":0.01039,"13.0":0.01039,"16.0":0.01039},I:{"0":0.0448,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.30518,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02205,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":31.97771},R:{_:"0"},M:{"0":0.27826},Q:{_:"14.9"},O:{"0":0.09425},H:{"0":0}}; +module.exports={C:{"52":0.0907,"78":0.01134,"83":0.01134,"88":0.00567,"91":0.00567,"102":0.00567,"103":0.00567,"113":0.00567,"115":0.23243,"117":0.01134,"120":0.00567,"121":0.00567,"122":0.00567,"123":0.02268,"124":0.04535,"125":1.24151,"126":4.12136,"127":0.00567,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 114 116 118 119 128 129 3.5 3.6"},D:{"38":0.00567,"43":0.00567,"49":0.02268,"58":0.00567,"62":0.00567,"63":0.01701,"79":0.02835,"80":0.02268,"81":0.00567,"85":0.00567,"87":0.03401,"88":0.01701,"89":0.02268,"90":0.00567,"91":0.02835,"92":0.00567,"93":0.00567,"94":0.01701,"95":0.00567,"96":0.00567,"97":0.00567,"98":0.00567,"99":0.01134,"100":0.00567,"101":0.01134,"102":0.01134,"103":0.05102,"104":0.01134,"105":0.00567,"106":0.01701,"107":0.01134,"108":0.02268,"109":1.2245,"110":0.01701,"111":0.01134,"112":0.01701,"113":0.05669,"114":0.06803,"115":0.05102,"116":0.15873,"117":0.03968,"118":0.01701,"119":0.05102,"120":0.11905,"121":0.11905,"122":0.44218,"123":1.00908,"124":22.3472,"125":8.45815,"126":0.00567,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 44 45 46 47 48 50 51 52 53 54 55 56 57 59 60 61 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 84 86 127 128"},F:{"28":0.00567,"89":0.00567,"95":0.02835,"102":0.00567,"107":1.16215,"108":0.02835,"109":3.54313,"110":0.0907,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00567,"91":0.00567,"92":0.01134,"107":0.00567,"108":0.00567,"109":0.0737,"110":0.00567,"111":0.00567,"113":0.00567,"114":0.00567,"116":0.00567,"117":0.00567,"118":0.00567,"119":0.01134,"120":0.02835,"121":0.02268,"122":0.03968,"123":0.27778,"124":4.45583,"125":2.44334,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 112 115"},E:{"14":0.02268,"15":0.00567,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00567,"12.1":0.00567,"13.1":0.06803,"14.1":0.10204,"15.1":0.00567,"15.2-15.3":0.01701,"15.4":0.02268,"15.5":0.02835,"15.6":0.18708,"16.0":0.02268,"16.1":0.06236,"16.2":0.03968,"16.3":0.08504,"16.4":0.04535,"16.5":0.06236,"16.6":0.23243,"17.0":0.05102,"17.1":0.0737,"17.2":0.10204,"17.3":0.09637,"17.4":1.26419,"17.5":0.22676},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0022,"5.0-5.1":0.0022,"6.0-6.1":0.0055,"7.0-7.1":0.00771,"8.1-8.4":0.0022,"9.0-9.2":0.0055,"9.3":0.02532,"10.0-10.2":0.0044,"10.3":0.03963,"11.0-11.2":0.05835,"11.3-11.4":0.01101,"12.0-12.1":0.00661,"12.2-12.5":0.15964,"13.0-13.1":0.0033,"13.2":0.01541,"13.3":0.00771,"13.4-13.7":0.03523,"14.0-14.4":0.06055,"14.5-14.8":0.09358,"15.0-15.1":0.04514,"15.2-15.3":0.04954,"15.4":0.05615,"15.5":0.07046,"15.6-15.8":0.63414,"16.0":0.14422,"16.1":0.29725,"16.2":0.14422,"16.3":0.24991,"16.4":0.05285,"16.5":0.10679,"16.6-16.7":0.85103,"17.0":0.09248,"17.1":0.15083,"17.2":0.15743,"17.3":0.29065,"17.4":6.60014,"17.5":0.4657,"17.6":0},P:{"4":0.04185,"20":0.01046,"21":0.02093,"22":0.05232,"23":0.06278,"24":0.11509,"25":1.75779,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 18.0","7.2-7.4":0.01046,"13.0":0.01046,"16.0":0.01046,"17.0":0.01046,"19.0":0.01046},I:{"0":0.07334,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":0.3768,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00611,"11":0.07326,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.3022},R:{_:"0"},M:{"0":0.23821},Q:{"14.9":0.00433},O:{"0":0.08662},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PW.js b/node_modules/caniuse-lite/data/regions/PW.js index 41094825a..d4f9a44bd 100644 --- a/node_modules/caniuse-lite/data/regions/PW.js +++ b/node_modules/caniuse-lite/data/regions/PW.js @@ -1 +1 @@ -module.exports={C:{"52":0.02277,"114":0.05977,"128":0.11669,"139":0.28175,"140":0.81965,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 141 142 143 3.5 3.6"},D:{"35":0.01138,"48":0.01138,"71":0.24476,"74":0.02277,"83":0.13945,"103":0.02277,"107":0.01138,"109":0.46674,"116":1.95236,"122":0.07115,"124":0.03415,"125":0.17645,"127":0.04554,"128":0.05977,"131":0.04554,"133":0.07115,"134":0.2106,"135":0.05977,"136":1.65922,"137":10.96848,"138":0.09392,"139":0.02277,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 108 110 111 112 113 114 115 117 118 119 120 121 123 126 129 130 132 140 141"},F:{"89":0.02277,"117":0.01138,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.01138,"109":0.05977,"122":0.05977,"131":0.01138,"133":0.03415,"134":0.02277,"135":0.02277,"136":0.23337,"137":1.92959,"138":0.1053,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 17.3 18.1 26.0","14.1":0.04554,"15.6":0.02277,"16.1":0.01138,"16.3":0.04554,"16.5":0.01138,"16.6":0.12807,"17.1":0.02277,"17.4":0.01138,"17.5":0.05977,"17.6":0.01138,"18.0":0.07115,"18.2":0.01138,"18.3":2.33941,"18.4":0.60904,"18.5":0.66596},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00328,"5.0-5.1":0,"6.0-6.1":0.00655,"7.0-7.1":0.00655,"8.1-8.4":0,"9.0-9.2":0.00328,"9.3":0.01965,"10.0-10.2":0.00164,"10.3":0.03275,"11.0-11.2":0.20961,"11.3-11.4":0.01146,"12.0-12.1":0.00328,"12.2-12.5":0.10972,"13.0-13.1":0.00164,"13.2":0.00491,"13.3":0.00328,"13.4-13.7":0.01801,"14.0-14.4":0.04258,"14.5-14.8":0.04258,"15.0-15.1":0.02948,"15.2-15.3":0.02948,"15.4":0.03603,"15.5":0.0393,"15.6-15.8":0.50764,"16.0":0.06714,"16.1":0.13755,"16.2":0.07041,"16.3":0.12937,"16.4":0.02948,"16.5":0.0524,"16.6-16.7":0.63701,"17.0":0.03439,"17.1":0.06059,"17.2":0.04749,"17.3":0.06714,"17.4":0.11954,"17.5":0.25055,"17.6-17.7":0.65502,"18.0":0.16212,"18.1":0.36517,"18.2":0.19323,"18.3":0.83024,"18.4":0.881,"18.5":10.32803,"26.0":0},P:{"22":0.01008,"24":0.04034,"25":0.04034,"26":0.04034,"27":0.02017,"28":1.5026,_:"4 20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01008,"14.0":0.01008},I:{"0":0.01428,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.43639,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.13634},R:{_:"0"},M:{"0":0.12877},Q:{_:"14.9"},O:{"0":0.02146},H:{"0":0}}; +module.exports={C:{"55":0.00803,"115":0.03749,"125":0.30261,"126":0.17139,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 127 128 129 3.5 3.6"},D:{"79":0.01607,"83":0.06159,"86":0.3776,"88":0.01607,"93":0.00803,"96":0.01607,"103":0.00803,"105":0.00803,"106":0.07766,"109":0.59452,"115":0.0241,"116":0.19282,"120":0.12319,"121":0.316,"122":0.03214,"123":0.52489,"124":14.46388,"125":3.98219,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 87 89 90 91 92 94 95 97 98 99 100 101 102 104 107 108 110 111 112 113 114 117 118 119 126 127 128"},F:{"107":0.03214,"109":0.34011,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00803,"95":0.01607,"121":0.00803,"123":0.03749,"124":1.3149,"125":0.68825,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 122"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 17.3 17.6","13.1":0.01607,"14.1":0.43384,"15.4":0.04553,"15.5":0.01607,"15.6":0.20085,"16.1":0.11515,"16.2":0.01607,"16.3":0.12319,"16.4":0.00803,"16.5":0.0241,"16.6":0.21692,"17.0":0.00803,"17.1":0.03749,"17.2":0.17675,"17.4":0.69628,"17.5":0.06963},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00426,"5.0-5.1":0.00426,"6.0-6.1":0.01065,"7.0-7.1":0.01491,"8.1-8.4":0.00426,"9.0-9.2":0.01065,"9.3":0.04899,"10.0-10.2":0.00852,"10.3":0.07668,"11.0-11.2":0.11289,"11.3-11.4":0.0213,"12.0-12.1":0.01278,"12.2-12.5":0.30885,"13.0-13.1":0.00639,"13.2":0.02982,"13.3":0.01491,"13.4-13.7":0.06816,"14.0-14.4":0.11715,"14.5-14.8":0.18105,"15.0-15.1":0.08733,"15.2-15.3":0.09585,"15.4":0.10863,"15.5":0.13632,"15.6-15.8":1.22686,"16.0":0.27903,"16.1":0.57509,"16.2":0.27903,"16.3":0.4835,"16.4":0.10224,"16.5":0.20661,"16.6-16.7":1.64647,"17.0":0.17892,"17.1":0.29181,"17.2":0.30459,"17.3":0.56231,"17.4":12.76917,"17.5":0.90098,"17.6":0},P:{"4":0.02067,"20":0.02067,"21":0.01033,"22":0.01033,"23":0.031,"24":0.12401,"25":1.32281,_:"5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.07234,"9.2":0.04134,"13.0":0.10334,"19.0":0.031},I:{"0":0.05105,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.32217,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.08548},R:{_:"0"},M:{"0":0.10983},Q:{"14.9":0.00732},O:{"0":0.17573},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/PY.js b/node_modules/caniuse-lite/data/regions/PY.js index 633e644a6..6780bb609 100644 --- a/node_modules/caniuse-lite/data/regions/PY.js +++ b/node_modules/caniuse-lite/data/regions/PY.js @@ -1 +1 @@ -module.exports={C:{"4":0.04547,"52":0.00123,"88":0.00615,"89":0.00123,"115":0.03195,"121":0.00123,"127":0.00123,"128":0.01721,"130":0.00123,"134":0.00123,"135":0.00492,"136":0.00246,"137":0.00615,"138":0.01721,"139":0.34043,"140":0.05039,"141":0.00123,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 131 132 133 142 143 3.5 3.6"},D:{"39":0.00983,"40":0.00983,"41":0.00983,"42":0.00983,"43":0.01106,"44":0.01106,"45":0.00983,"46":0.01106,"47":0.01229,"48":0.01106,"49":0.01106,"50":0.01106,"51":0.00983,"52":0.00983,"53":0.01106,"54":0.00983,"55":0.00983,"56":0.00983,"57":0.00983,"58":0.01229,"59":0.00983,"60":0.01106,"65":0.00983,"66":0.00123,"69":0.00492,"73":0.00615,"75":0.00615,"77":0.00123,"79":0.01229,"83":0.00615,"85":0.00123,"86":0.00369,"87":0.42769,"88":0.00246,"91":0.00369,"94":0.00123,"98":0.00123,"101":0.00123,"102":0.00123,"103":0.00246,"104":0.00123,"105":0.00369,"107":0.00123,"108":0.00369,"109":0.26792,"110":0.00246,"111":0.01598,"113":0.00246,"114":0.00123,"115":0.00983,"116":0.01229,"117":0.00246,"119":0.0086,"120":0.00246,"121":0.00246,"122":0.01229,"123":0.00492,"124":0.01598,"125":1.69233,"126":0.02089,"127":0.00983,"128":0.01475,"129":0.00246,"130":0.00737,"131":0.08603,"132":0.03073,"133":0.01352,"134":0.02335,"135":0.03933,"136":0.56288,"137":4.71444,"138":0.2458,"139":0.00123,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 70 71 72 74 76 78 80 81 84 89 90 92 93 95 96 97 99 100 106 112 118 140 141"},F:{"36":0.00246,"46":0.00123,"87":0.00123,"88":0.00123,"89":0.00492,"90":0.00123,"95":0.00246,"117":0.00246,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00123,"85":0.00123,"90":0.00123,"92":0.00492,"100":0.00246,"101":0.00123,"105":0.00123,"109":0.01106,"116":0.00123,"122":0.00492,"123":0.00123,"124":0.00123,"125":0.00123,"128":0.00246,"129":0.00123,"130":0.00123,"131":0.00369,"132":0.00246,"133":0.00369,"134":0.02704,"135":0.01229,"136":0.15363,"137":1.01393,"138":0.12536,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 91 93 94 95 96 97 98 99 102 103 104 106 107 108 110 111 112 113 114 115 117 118 119 120 121 126 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 16.4 17.0 17.3 26.0","5.1":0.00246,"13.1":0.00246,"14.1":0.00123,"15.6":0.00615,"16.0":0.00123,"16.1":0.00123,"16.3":0.00123,"16.5":0.00123,"16.6":0.00983,"17.1":0.00369,"17.2":0.00123,"17.4":0.00246,"17.5":0.00246,"17.6":0.02704,"18.0":0.00246,"18.1":0.00369,"18.2":0.00369,"18.3":0.01106,"18.4":0.00983,"18.5":0.07989},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00047,"5.0-5.1":0,"6.0-6.1":0.00095,"7.0-7.1":0.00095,"8.1-8.4":0,"9.0-9.2":0.00047,"9.3":0.00284,"10.0-10.2":0.00024,"10.3":0.00474,"11.0-11.2":0.03031,"11.3-11.4":0.00166,"12.0-12.1":0.00047,"12.2-12.5":0.01587,"13.0-13.1":0.00024,"13.2":0.00071,"13.3":0.00047,"13.4-13.7":0.0026,"14.0-14.4":0.00616,"14.5-14.8":0.00616,"15.0-15.1":0.00426,"15.2-15.3":0.00426,"15.4":0.00521,"15.5":0.00568,"15.6-15.8":0.07341,"16.0":0.00971,"16.1":0.01989,"16.2":0.01018,"16.3":0.01871,"16.4":0.00426,"16.5":0.00758,"16.6-16.7":0.09212,"17.0":0.00497,"17.1":0.00876,"17.2":0.00687,"17.3":0.00971,"17.4":0.01729,"17.5":0.03623,"17.6-17.7":0.09473,"18.0":0.02344,"18.1":0.05281,"18.2":0.02794,"18.3":0.12007,"18.4":0.12741,"18.5":1.4936,"26.0":0},P:{"4":0.04043,"20":0.01011,"21":0.01011,"22":0.02022,"23":0.01011,"24":0.05054,"25":0.02022,"26":0.04043,"27":0.05054,"28":0.73785,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.04043,"17.0":0.03032},I:{"0":1.53232,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00031,"4.4":0,"4.4.3-4.4.4":0.00123},K:{"0":0.12279,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00246,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":83.01731},R:{_:"0"},M:{"0":0.07017},Q:{_:"14.9"},O:{"0":0.01754},H:{"0":0}}; +module.exports={C:{"4":0.17942,"17":0.00374,"30":0.00374,"35":0.01495,"39":0.00374,"43":0.00374,"45":0.00374,"52":0.0785,"60":0.00374,"64":0.00374,"65":0.00374,"84":0.00374,"88":0.02243,"102":0.00374,"103":0.00374,"106":0.00748,"107":0.00374,"113":0.00374,"115":0.28409,"117":0.00374,"121":0.01121,"122":0.01495,"123":0.01495,"124":0.03364,"125":0.55322,"126":0.5906,"127":0.00374,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 36 37 38 40 41 42 44 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 108 109 110 111 112 114 116 118 119 120 128 129 3.5","3.6":0.00374},D:{"11":0.01121,"31":0.00374,"44":0.00374,"45":0.00374,"46":0.00374,"47":0.01869,"49":0.01121,"51":0.00374,"55":0.00374,"56":0.01121,"64":0.01121,"65":0.01869,"66":0.00748,"69":0.00374,"71":0.00374,"73":0.01121,"75":0.00748,"76":0.00374,"77":0.00374,"79":0.06728,"80":0.00748,"83":0.04112,"85":0.00374,"86":0.00374,"87":0.6392,"88":0.00374,"89":0.04859,"90":0.00374,"91":0.20559,"92":0.00374,"93":0.00374,"94":0.00374,"95":0.01121,"96":0.00374,"97":0.00748,"98":0.00374,"99":0.00748,"100":0.00748,"101":0.00748,"102":0.01869,"103":0.02243,"104":0.00748,"105":0.00374,"106":0.01121,"107":0.00748,"108":0.01495,"109":4.25011,"110":0.02243,"111":0.05981,"112":0.01495,"113":0.01121,"114":0.01121,"115":0.01121,"116":0.05607,"117":0.00374,"118":0.01121,"119":0.14952,"120":0.04486,"121":0.06355,"122":0.65041,"123":0.43361,"124":15.09404,"125":6.46674,"126":0.01121,"127":0.00374,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 48 50 52 53 54 57 58 59 60 61 62 63 67 68 70 72 74 78 81 84 128"},F:{"36":0.00748,"46":0.00374,"55":0.00374,"95":0.02243,"102":0.00748,"106":0.00748,"107":0.34763,"108":0.00748,"109":1.10645,"110":0.02243,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01121,"18":0.00748,"92":0.00748,"100":0.00748,"101":0.04112,"102":0.00748,"109":0.0299,"111":0.00374,"112":0.01121,"113":0.00374,"114":0.00374,"117":0.00374,"119":0.00748,"120":0.01869,"121":0.01495,"122":0.02617,"123":0.09345,"124":2.11571,"125":1.19616,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 103 104 105 106 107 108 110 115 116 118"},E:{"9":0.00748,_:"0 4 5 6 7 8 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 16.0 17.6","5.1":0.01869,"12.1":0.00748,"13.1":0.00748,"14.1":0.00374,"15.4":0.00748,"15.5":0.00374,"15.6":0.02617,"16.1":0.00374,"16.2":0.00748,"16.3":0.01495,"16.4":0.00374,"16.5":0.00748,"16.6":0.11214,"17.0":0.00374,"17.1":0.01121,"17.2":0.04112,"17.3":0.03738,"17.4":0.26914,"17.5":0.06355},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00138,"5.0-5.1":0.00138,"6.0-6.1":0.00344,"7.0-7.1":0.00481,"8.1-8.4":0.00138,"9.0-9.2":0.00344,"9.3":0.01582,"10.0-10.2":0.00275,"10.3":0.02476,"11.0-11.2":0.03645,"11.3-11.4":0.00688,"12.0-12.1":0.00413,"12.2-12.5":0.09971,"13.0-13.1":0.00206,"13.2":0.00963,"13.3":0.00481,"13.4-13.7":0.02201,"14.0-14.4":0.03782,"14.5-14.8":0.05845,"15.0-15.1":0.02819,"15.2-15.3":0.03095,"15.4":0.03507,"15.5":0.04401,"15.6-15.8":0.3961,"16.0":0.09009,"16.1":0.18567,"16.2":0.09009,"16.3":0.1561,"16.4":0.03301,"16.5":0.0667,"16.6-16.7":0.53157,"17.0":0.05776,"17.1":0.09421,"17.2":0.09834,"17.3":0.18155,"17.4":4.12263,"17.5":0.29089,"17.6":0},P:{"4":0.23495,"20":0.05108,"21":0.11237,"22":0.12258,"23":0.29624,"24":0.58226,"25":3.38118,_:"5.0-5.4 8.2 10.1","6.2-6.4":0.01022,"7.2-7.4":0.52097,"9.2":0.03065,"11.1-11.2":0.06129,"12.0":0.01022,"13.0":0.02043,"14.0":0.02043,"15.0":0.01022,"16.0":0.06129,"17.0":0.12258,"18.0":0.03065,"19.0":0.05108},I:{"0":0.08734,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.36325,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00374,"8":0.01869,"9":0.00374,"10":0.00374,"11":0.02243,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.94579},R:{_:"0"},M:{"0":0.14405},Q:{_:"14.9"},O:{"0":0.0501},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/QA.js b/node_modules/caniuse-lite/data/regions/QA.js index dbeadaf48..02ce90f80 100644 --- a/node_modules/caniuse-lite/data/regions/QA.js +++ b/node_modules/caniuse-lite/data/regions/QA.js @@ -1 +1 @@ -module.exports={C:{"5":0.36001,"113":0.00259,"115":0.04662,"117":0.00777,"128":0.00777,"132":0.00259,"134":0.00518,"135":0.00259,"136":0.00259,"138":0.02331,"139":0.36001,"140":0.0518,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 118 119 120 121 122 123 124 125 126 127 129 130 131 133 137 141 142 143 3.5 3.6"},D:{"39":0.00259,"40":0.00518,"41":0.00518,"42":0.00518,"43":0.00518,"44":0.00518,"45":0.00518,"46":0.00518,"47":0.00518,"48":0.00518,"49":0.00777,"50":0.00518,"51":0.00259,"52":0.00518,"53":0.00518,"54":0.00518,"55":0.00259,"56":0.00259,"57":0.00518,"58":0.0518,"59":0.00518,"60":0.00518,"68":0.00259,"75":0.00259,"79":0.02849,"83":0.00518,"87":0.01295,"88":0.00259,"91":0.01036,"93":0.01036,"99":0.00518,"100":0.00259,"103":0.06475,"104":0.01554,"105":0.00259,"106":0.01036,"107":0.00518,"108":0.02331,"109":0.29526,"110":0.00518,"111":0.01813,"113":0.00259,"114":0.01295,"115":0.00518,"116":0.03626,"117":0.01295,"118":0.00259,"119":0.00259,"120":0.01036,"121":0.00259,"122":0.0518,"123":0.01036,"124":0.01036,"125":0.9583,"126":0.02072,"127":0.04144,"128":0.03367,"129":0.00777,"130":0.03367,"131":0.07252,"132":0.04921,"133":0.05957,"134":0.03108,"135":0.11396,"136":2.05905,"137":9.90416,"138":0.47397,"139":0.00518,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 78 80 81 84 85 86 89 90 92 94 95 96 97 98 101 102 112 140 141"},F:{"46":0.00259,"89":0.0518,"90":0.04921,"91":0.00259,"95":0.00259,"114":0.00259,"116":0.00259,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00259,"18":0.00259,"92":0.00518,"100":0.00259,"103":0.00259,"106":0.00259,"108":0.00518,"109":0.01295,"114":0.00518,"119":0.00259,"120":0.00259,"122":0.00259,"124":0.00259,"128":0.00259,"129":0.00259,"130":0.00518,"131":0.00777,"132":0.04662,"133":0.01813,"134":0.01295,"135":0.02849,"136":0.43771,"137":2.63662,"138":0.2331,_:"12 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 107 110 111 112 113 115 116 117 118 121 123 125 126 127"},E:{"8":0.00259,"15":0.00518,_:"0 4 5 6 7 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1","5.1":0.00259,"13.1":0.00259,"14.1":0.00777,"15.1":0.04144,"15.2-15.3":0.00259,"15.4":0.00518,"15.5":0.00777,"15.6":0.05439,"16.0":0.00777,"16.1":0.01295,"16.2":0.01813,"16.3":0.01295,"16.4":0.01813,"16.5":0.00518,"16.6":0.06216,"17.0":0.00259,"17.1":0.05439,"17.2":0.02072,"17.3":0.00518,"17.4":0.01295,"17.5":0.03367,"17.6":0.11914,"18.0":0.01295,"18.1":0.02849,"18.2":0.01036,"18.3":0.08288,"18.4":0.11396,"18.5":0.99715,"26.0":0.00259},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00235,"5.0-5.1":0,"6.0-6.1":0.00471,"7.0-7.1":0.00471,"8.1-8.4":0,"9.0-9.2":0.00235,"9.3":0.01413,"10.0-10.2":0.00118,"10.3":0.02355,"11.0-11.2":0.15069,"11.3-11.4":0.00824,"12.0-12.1":0.00235,"12.2-12.5":0.07888,"13.0-13.1":0.00118,"13.2":0.00353,"13.3":0.00235,"13.4-13.7":0.01295,"14.0-14.4":0.03061,"14.5-14.8":0.03061,"15.0-15.1":0.02119,"15.2-15.3":0.02119,"15.4":0.0259,"15.5":0.02825,"15.6-15.8":0.36496,"16.0":0.04827,"16.1":0.09889,"16.2":0.05062,"16.3":0.09301,"16.4":0.02119,"16.5":0.03767,"16.6-16.7":0.45797,"17.0":0.02472,"17.1":0.04356,"17.2":0.03414,"17.3":0.04827,"17.4":0.08594,"17.5":0.18013,"17.6-17.7":0.47092,"18.0":0.11655,"18.1":0.26254,"18.2":0.13892,"18.3":0.59689,"18.4":0.63338,"18.5":7.42517,"26.0":0},P:{"4":0.03081,"21":0.01027,"22":0.02054,"23":0.01027,"24":0.07189,"25":0.07189,"26":0.06162,"27":0.07189,"28":1.5406,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 16.0 18.0 19.0","7.2-7.4":0.01027,"13.0":0.01027,"15.0":0.02054,"17.0":0.01027},I:{"0":0.03698,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.65703,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01295,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.17134},R:{_:"0"},M:{"0":0.11114},Q:{_:"14.9"},O:{"0":4.07495},H:{"0":0.01}}; +module.exports={C:{"5":0.27169,"34":0.00269,"52":0.00269,"68":0.00538,"103":0.00807,"105":0.00807,"115":0.04573,"123":0.00269,"124":0.02152,"125":0.26093,"126":0.18561,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"38":0.00269,"41":0.01345,"43":0.00269,"49":0.00807,"58":0.03497,"60":0.00538,"65":0.00269,"66":0.00269,"68":0.00269,"69":0.00538,"72":0.00269,"73":0.00269,"75":0.00269,"76":0.00269,"77":0.00269,"78":0.00269,"79":0.03766,"80":0.01076,"83":0.00807,"84":0.00538,"85":0.00269,"86":0.00807,"87":0.03228,"88":0.0269,"90":0.00269,"91":0.00269,"93":0.00538,"94":0.00807,"95":0.00538,"96":0.00538,"98":0.00538,"99":0.01076,"100":0.00807,"101":0.01345,"102":0.00807,"103":0.12912,"104":0.02152,"105":0.00538,"106":0.02421,"107":0.01076,"108":0.00807,"109":0.69133,"110":0.02152,"111":0.00807,"112":0.00538,"113":0.01076,"114":0.01614,"115":0.01076,"116":0.12643,"117":0.02421,"118":0.0269,"119":0.07532,"120":0.06456,"121":0.04573,"122":0.269,"123":0.51379,"124":10.49638,"125":4.85007,"126":0.00807,"127":0.00269,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 44 45 46 47 48 50 51 52 53 54 55 56 57 59 61 62 63 64 67 70 71 74 81 89 92 97 128"},F:{"28":0.00538,"46":0.04573,"95":0.00807,"102":0.01614,"107":0.18561,"108":0.01076,"109":0.57566,"110":0.03497,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00269,"13":0.00538,"17":0.00269,"18":0.00269,"92":0.01076,"95":0.00269,"100":0.00269,"105":0.00269,"106":0.00269,"108":0.00269,"109":0.01614,"112":0.00807,"113":0.00269,"114":0.00269,"116":0.00269,"117":0.00269,"118":0.00538,"119":0.00807,"120":0.01614,"121":0.01345,"122":0.02959,"123":0.05918,"124":2.04978,"125":1.08138,_:"14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 101 102 103 104 107 110 111 115"},E:{"14":0.01614,"15":0.00807,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00269,"12.1":0.00807,"13.1":0.02152,"14.1":0.07532,"15.1":0.00538,"15.2-15.3":0.01614,"15.4":0.01076,"15.5":0.02959,"15.6":0.14257,"16.0":0.01345,"16.1":0.04304,"16.2":0.0538,"16.3":0.12105,"16.4":0.02421,"16.5":0.11836,"16.6":0.19637,"17.0":0.04573,"17.1":0.05111,"17.2":0.04573,"17.3":0.08608,"17.4":1.22933,"17.5":0.14795},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00372,"5.0-5.1":0.00372,"6.0-6.1":0.0093,"7.0-7.1":0.01302,"8.1-8.4":0.00372,"9.0-9.2":0.0093,"9.3":0.04277,"10.0-10.2":0.00744,"10.3":0.06695,"11.0-11.2":0.09856,"11.3-11.4":0.0186,"12.0-12.1":0.01116,"12.2-12.5":0.26965,"13.0-13.1":0.00558,"13.2":0.02604,"13.3":0.01302,"13.4-13.7":0.05951,"14.0-14.4":0.10228,"14.5-14.8":0.15807,"15.0-15.1":0.07625,"15.2-15.3":0.08368,"15.4":0.09484,"15.5":0.11902,"15.6-15.8":1.07117,"16.0":0.24362,"16.1":0.50211,"16.2":0.24362,"16.3":0.42214,"16.4":0.08926,"16.5":0.18039,"16.6-16.7":1.43752,"17.0":0.15621,"17.1":0.25477,"17.2":0.26593,"17.3":0.49095,"17.4":11.14869,"17.5":0.78664,"17.6":0},P:{"4":0.06147,"20":0.05122,"21":0.05122,"22":0.12294,"23":0.16391,"24":0.20489,"25":1.84404,"5.0-5.4":0.01024,"6.2-6.4":0.01024,"7.2-7.4":0.10245,_:"8.2 9.2 10.1 15.0","11.1-11.2":0.04098,"12.0":0.01024,"13.0":0.03073,"14.0":0.02049,"16.0":0.02049,"17.0":0.01024,"18.0":0.01024,"19.0":0.02049},I:{"0":0.05825,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":2.30996,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00269,"11":0.02421,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.11758},R:{_:"0"},M:{"0":0.12427},Q:{_:"14.9"},O:{"0":3.39915},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/RE.js b/node_modules/caniuse-lite/data/regions/RE.js index 5f843ccc2..16ccff8df 100644 --- a/node_modules/caniuse-lite/data/regions/RE.js +++ b/node_modules/caniuse-lite/data/regions/RE.js @@ -1 +1 @@ -module.exports={C:{"41":0.00389,"78":0.144,"82":0.00389,"102":0.01168,"115":0.25687,"127":0.01168,"128":0.15179,"131":0.00389,"132":0.00778,"133":0.00778,"134":0.01946,"135":0.00778,"136":0.11287,"137":0.03892,"138":0.11287,"139":2.68937,"140":0.35417,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 141 142 143 3.5 3.6"},D:{"39":0.01168,"40":0.01168,"41":0.00778,"42":0.00389,"43":0.00778,"44":0.01557,"45":0.00778,"46":0.00778,"47":0.01168,"48":0.01168,"49":0.01557,"50":0.01168,"51":0.01168,"52":0.00778,"53":0.01168,"54":0.00778,"55":0.01168,"56":0.01168,"57":0.00778,"58":0.00778,"59":0.00389,"60":0.01168,"70":0.00389,"72":0.00389,"74":0.00389,"79":0.04281,"80":0.00389,"81":0.01168,"84":0.00389,"85":0.01557,"86":0.00389,"87":0.02335,"88":0.0506,"90":0.00389,"94":0.00389,"99":0.00389,"100":0.00389,"101":0.01168,"103":0.02724,"104":0.00389,"108":0.03114,"109":0.36196,"110":0.00389,"111":0.06616,"112":0.00389,"113":0.00778,"116":0.06227,"117":0.00389,"118":0.03503,"119":0.00778,"120":0.00389,"121":0.00778,"122":0.05838,"123":0.00389,"124":0.01946,"125":0.56045,"126":0.01168,"127":0.01557,"128":0.0973,"129":0.00389,"130":0.01168,"131":0.0467,"132":0.08562,"133":0.03503,"134":0.17125,"135":0.10119,"136":1.95768,"137":14.12796,"138":0.85624,"139":0.00389,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 73 75 76 77 78 83 89 91 92 93 95 96 97 98 102 105 106 107 114 115 140 141"},F:{"46":0.01168,"89":0.00778,"90":0.00778,"95":0.0973,"102":0.05449,"114":0.00389,"116":0.00778,"117":0.00389,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00778,"100":0.00389,"109":0.00778,"114":0.00389,"115":0.03114,"121":0.00389,"122":0.01168,"123":0.00389,"125":0.00389,"127":0.00389,"128":0.00389,"129":0.00778,"130":0.01946,"131":0.00778,"132":0.00389,"133":0.19071,"134":0.13233,"135":0.12454,"136":0.69278,"137":4.98176,"138":0.45536,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 124 126"},E:{"14":0.00389,"15":0.00778,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 26.0","12.1":0.01168,"13.1":0.04281,"14.1":0.03892,"15.2-15.3":0.01946,"15.4":0.00389,"15.5":0.01168,"15.6":0.10508,"16.0":0.12844,"16.1":0.00389,"16.2":0.0467,"16.3":0.01946,"16.4":0.00389,"16.5":0.03503,"16.6":0.24909,"17.0":0.00389,"17.1":0.0973,"17.2":0.01557,"17.3":0.00778,"17.4":0.12065,"17.5":0.03114,"17.6":0.25687,"18.0":0.08562,"18.1":0.03114,"18.2":0.02335,"18.3":0.12065,"18.4":0.2413,"18.5":1.51788},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00287,"5.0-5.1":0,"6.0-6.1":0.00573,"7.0-7.1":0.00573,"8.1-8.4":0,"9.0-9.2":0.00287,"9.3":0.0172,"10.0-10.2":0.00143,"10.3":0.02866,"11.0-11.2":0.18342,"11.3-11.4":0.01003,"12.0-12.1":0.00287,"12.2-12.5":0.09601,"13.0-13.1":0.00143,"13.2":0.0043,"13.3":0.00287,"13.4-13.7":0.01576,"14.0-14.4":0.03726,"14.5-14.8":0.03726,"15.0-15.1":0.02579,"15.2-15.3":0.02579,"15.4":0.03152,"15.5":0.03439,"15.6-15.8":0.44421,"16.0":0.05875,"16.1":0.12037,"16.2":0.06162,"16.3":0.1132,"16.4":0.02579,"16.5":0.04585,"16.6-16.7":0.55741,"17.0":0.03009,"17.1":0.05302,"17.2":0.04156,"17.3":0.05875,"17.4":0.1046,"17.5":0.21924,"17.6-17.7":0.57317,"18.0":0.14186,"18.1":0.31954,"18.2":0.16909,"18.3":0.7265,"18.4":0.77092,"18.5":9.03753,"26.0":0},P:{"4":0.01037,"21":0.05186,"22":0.01037,"23":0.06223,"24":0.08297,"25":0.05186,"26":0.04149,"27":0.09335,"28":2.46846,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 16.0 17.0 18.0 19.0","6.2-6.4":0.02074,"7.2-7.4":0.21781,"14.0":0.06223,"15.0":0.02074},I:{"0":0.06098,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.10994,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.92608},R:{_:"0"},M:{"0":0.39091},Q:{_:"14.9"},O:{"0":0.17713},H:{"0":0}}; +module.exports={C:{"30":0.00402,"52":0.00402,"60":0.00402,"78":0.16076,"82":0.02813,"88":0.00804,"91":0.03215,"100":0.06029,"102":0.04823,"103":0.30143,"108":0.00402,"113":0.00402,"115":0.66314,"119":0.00402,"120":0.00402,"121":0.0201,"122":0.01206,"123":0.07636,"124":0.10048,"125":2.32298,"126":1.90099,"127":0.00402,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 101 104 105 106 107 109 110 111 112 114 116 117 118 128 129 3.5 3.6"},D:{"38":0.00402,"49":0.00402,"50":0.00402,"54":0.01608,"57":0.00402,"65":0.01206,"70":0.01608,"72":0.00402,"74":0.00402,"76":0.00804,"78":0.00804,"79":0.04421,"80":0.01608,"81":0.01608,"83":0.00804,"84":0.01206,"85":0.04421,"86":0.0201,"87":0.07234,"88":0.02813,"90":0.00804,"92":0.00402,"94":0.01206,"97":0.00402,"99":0.00402,"100":0.00402,"101":0.00804,"102":0.00804,"103":0.07636,"104":0.00402,"105":0.10851,"106":0.00804,"107":0.00804,"108":0.00804,"109":0.79978,"110":0.00402,"111":0.00804,"112":0.00402,"113":0.00804,"114":0.00402,"115":0.32554,"116":0.18487,"117":0.03215,"118":0.02411,"119":0.03617,"120":0.07636,"121":0.0643,"122":0.18889,"123":0.71136,"124":12.34637,"125":4.64596,"126":0.00402,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 51 52 53 55 56 58 59 60 61 62 63 64 66 67 68 69 71 73 75 77 89 91 93 95 96 98 127 128"},F:{"40":0.00804,"46":0.0201,"69":0.01608,"95":0.00804,"98":0.00402,"107":0.53453,"108":0.01206,"109":1.28608,"110":0.05225,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00402,"17":0.00402,"83":0.00402,"86":0.00402,"90":0.00402,"91":0.00402,"92":0.00804,"96":0.11253,"109":0.02813,"110":0.05627,"112":0.00402,"115":0.00402,"116":0.00402,"118":0.0201,"119":0.00804,"120":0.01206,"121":0.02411,"122":0.08038,"123":0.29741,"124":4.01096,"125":2.14213,_:"12 13 14 15 18 79 80 81 84 85 87 88 89 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 111 113 114 117"},E:{"11":0.00402,"12":0.00402,"13":0.00402,"14":0.0201,"15":0.01206,_:"0 4 5 6 7 8 9 10 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.01608,"13.1":0.24114,"14.1":0.13665,"15.1":0.00804,"15.2-15.3":0.01608,"15.4":0.01608,"15.5":0.0201,"15.6":0.28133,"16.0":0.07234,"16.1":0.06029,"16.2":0.04421,"16.3":0.06832,"16.4":0.03215,"16.5":0.12861,"16.6":0.38181,"17.0":0.03215,"17.1":0.0844,"17.2":0.10048,"17.3":0.0844,"17.4":1.74827,"17.5":0.17282},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00334,"5.0-5.1":0.00334,"6.0-6.1":0.00835,"7.0-7.1":0.01169,"8.1-8.4":0.00334,"9.0-9.2":0.00835,"9.3":0.03842,"10.0-10.2":0.00668,"10.3":0.06014,"11.0-11.2":0.08854,"11.3-11.4":0.0167,"12.0-12.1":0.01002,"12.2-12.5":0.24222,"13.0-13.1":0.00501,"13.2":0.02339,"13.3":0.01169,"13.4-13.7":0.05346,"14.0-14.4":0.09188,"14.5-14.8":0.14199,"15.0-15.1":0.06849,"15.2-15.3":0.07517,"15.4":0.0852,"15.5":0.10691,"15.6-15.8":0.9622,"16.0":0.21883,"16.1":0.45103,"16.2":0.21883,"16.3":0.3792,"16.4":0.08018,"16.5":0.16204,"16.6-16.7":1.29129,"17.0":0.14032,"17.1":0.22886,"17.2":0.23888,"17.3":0.44101,"17.4":10.01461,"17.5":0.70662,"17.6":0},P:{"4":0.01054,"20":0.02107,"21":0.10536,"22":0.15804,"23":0.1475,"24":0.32661,"25":3.12912,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0","7.2-7.4":0.06321,"11.1-11.2":0.01054,"13.0":0.01054,"14.0":0.01054,"15.0":0.02107,"16.0":0.02107,"17.0":0.01054,"18.0":0.02107,"19.0":0.04214},I:{"0":0.02979,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.26316,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05627,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":39.27916},R:{_:"0"},M:{"0":0.32896},Q:{_:"14.9"},O:{"0":0.07775},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/RO.js b/node_modules/caniuse-lite/data/regions/RO.js index fd733af9f..741216c43 100644 --- a/node_modules/caniuse-lite/data/regions/RO.js +++ b/node_modules/caniuse-lite/data/regions/RO.js @@ -1 +1 @@ -module.exports={C:{"48":0.00483,"52":0.02416,"78":0.00483,"96":0.05314,"112":0.09179,"115":0.30918,"123":0.00483,"125":0.00483,"127":0.00483,"128":0.05314,"132":0.00483,"133":0.00483,"134":0.00483,"135":0.00966,"136":0.02416,"137":0.02416,"138":0.0773,"139":1.30437,"140":0.19807,"141":0.00483,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 126 129 130 131 142 143 3.5 3.6"},D:{"40":0.00483,"41":0.00483,"44":0.00483,"47":0.00483,"48":0.00966,"49":0.01449,"52":0.00966,"55":0.00483,"56":0.00483,"57":0.00483,"58":0.00483,"59":0.00483,"60":0.00483,"64":0.00483,"70":0.00966,"75":0.00483,"76":0.01449,"79":0.01932,"80":0.00483,"81":0.00483,"85":0.00483,"86":0.00483,"87":0.01449,"88":0.00966,"90":0.00483,"91":0.07247,"94":0.00966,"98":0.00483,"100":0.14976,"102":0.04831,"103":0.00966,"104":0.04831,"105":0.00483,"106":0.00483,"107":0.00966,"108":0.01932,"109":0.78745,"110":0.00483,"111":0.00483,"112":0.01449,"113":0.08213,"114":0.01932,"115":0.00483,"116":0.02899,"117":0.00483,"118":0.01932,"119":0.01932,"120":0.11594,"121":0.01449,"122":0.03865,"123":0.00966,"124":0.03382,"125":0.05314,"126":0.02416,"127":0.00966,"128":0.04831,"129":0.03865,"130":0.0773,"131":0.10628,"132":0.04831,"133":0.2802,"134":0.06763,"135":0.16425,"136":3.3189,"137":32.18412,"138":0.44928,"139":0.00483,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 43 45 46 50 51 53 54 61 62 63 65 66 67 68 69 71 72 73 74 77 78 83 84 89 92 93 95 96 97 99 101 140 141"},F:{"46":0.00483,"82":0.00483,"85":0.00483,"89":0.01449,"90":0.00966,"95":0.03865,"114":0.00483,"117":0.00483,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00966,"18":0.00483,"92":0.00483,"109":0.01932,"112":0.04348,"119":0.00483,"122":0.00483,"127":0.00483,"129":0.00966,"130":0.02899,"131":0.03382,"132":0.02416,"133":0.00966,"134":0.01449,"135":0.01932,"136":0.26571,"137":1.78747,"138":0.14493,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 120 121 123 124 125 126 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","13.1":0.00483,"14.1":0.00966,"15.5":0.00483,"15.6":0.02899,"16.0":0.00483,"16.1":0.00966,"16.2":0.01449,"16.3":0.00966,"16.4":0.00966,"16.5":0.00483,"16.6":0.03865,"17.0":0.00483,"17.1":0.02899,"17.2":0.00483,"17.3":0.00483,"17.4":0.01449,"17.5":0.01932,"17.6":0.04831,"18.0":0.00966,"18.1":0.01932,"18.2":0.00483,"18.3":0.04348,"18.4":0.03865,"18.5":0.38165},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00225,"5.0-5.1":0,"6.0-6.1":0.00451,"7.0-7.1":0.00451,"8.1-8.4":0,"9.0-9.2":0.00225,"9.3":0.01352,"10.0-10.2":0.00113,"10.3":0.02253,"11.0-11.2":0.14417,"11.3-11.4":0.00788,"12.0-12.1":0.00225,"12.2-12.5":0.07546,"13.0-13.1":0.00113,"13.2":0.00338,"13.3":0.00225,"13.4-13.7":0.01239,"14.0-14.4":0.02928,"14.5-14.8":0.02928,"15.0-15.1":0.02027,"15.2-15.3":0.02027,"15.4":0.02478,"15.5":0.02703,"15.6-15.8":0.34916,"16.0":0.04618,"16.1":0.09461,"16.2":0.04843,"16.3":0.08898,"16.4":0.02027,"16.5":0.03604,"16.6-16.7":0.43814,"17.0":0.02365,"17.1":0.04167,"17.2":0.03266,"17.3":0.04618,"17.4":0.08222,"17.5":0.17233,"17.6-17.7":0.45053,"18.0":0.11151,"18.1":0.25117,"18.2":0.13291,"18.3":0.57105,"18.4":0.60596,"18.5":7.10373,"26.0":0},P:{"4":0.02057,"20":0.02057,"21":0.01029,"22":0.04115,"23":0.03086,"24":0.03086,"25":0.04115,"26":0.06172,"27":0.16459,"28":2.6231,_:"5.0-5.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","6.2-6.4":0.01029,"7.2-7.4":0.01029,"9.2":0.01029,"18.0":0.02057,"19.0":0.01029},I:{"0":0.03612,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.33115,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01449,"9":0.00725,"10":0.00725,"11":0.01449,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.82347},R:{_:"0"},M:{"0":0.27913},Q:{_:"14.9"},O:{"0":0.04135},H:{"0":0.01}}; +module.exports={C:{"52":0.06283,"78":0.00967,"83":0.0145,"86":0.00483,"88":0.00483,"102":0.00483,"103":0.00483,"104":0.00483,"105":0.00483,"110":0.00483,"111":0.00483,"112":0.00483,"113":0.00967,"115":0.39631,"117":0.00483,"118":0.00483,"119":0.00483,"120":0.00483,"121":0.00967,"122":0.00967,"123":0.04833,"124":0.03383,"125":0.86027,"126":0.79745,"127":0.00483,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 87 89 90 91 92 93 94 95 96 97 98 99 100 101 106 107 108 109 114 116 128 129 3.5 3.6"},D:{"33":0.00483,"35":0.00483,"36":0.00483,"37":0.00483,"38":0.00483,"39":0.00483,"41":0.00483,"49":0.02417,"61":0.00483,"69":0.00967,"70":0.00967,"71":0.00483,"73":0.00483,"74":0.00483,"76":0.00967,"79":0.029,"81":0.00483,"85":0.00483,"86":0.00483,"87":0.01933,"88":0.02417,"90":0.00483,"91":0.0145,"92":0.00483,"93":0.01933,"94":0.00967,"96":0.00483,"97":0.00483,"98":0.00967,"99":0.00967,"100":0.06766,"102":0.00967,"103":0.01933,"104":0.00967,"105":0.01933,"106":0.00967,"107":0.00967,"108":0.0145,"109":1.33391,"110":0.00483,"111":0.00967,"112":0.13532,"113":0.06766,"114":0.08699,"115":0.00967,"116":0.04833,"117":0.0145,"118":0.03383,"119":0.05316,"120":0.43497,"121":0.08216,"122":0.17399,"123":0.53646,"124":24.30032,"125":12.19366,"126":0.00483,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 40 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 66 67 68 72 75 77 78 80 83 84 89 95 101 127 128"},F:{"36":0.00483,"46":0.00483,"85":0.0145,"95":0.04833,"98":0.00483,"107":0.31415,"108":0.0145,"109":1.40157,"110":0.06766,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00483,"92":0.00483,"105":0.00483,"108":0.00483,"109":0.029,"114":0.00483,"118":0.00967,"119":0.06766,"120":0.00967,"121":0.00967,"122":0.01933,"123":0.05316,"124":1.17925,"125":0.77328,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 110 111 112 113 115 116 117"},E:{"14":0.00967,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00483,"13.1":0.00967,"14.1":0.01933,"15.1":0.00483,"15.2-15.3":0.00483,"15.4":0.00483,"15.5":0.00483,"15.6":0.058,"16.0":0.00483,"16.1":0.0145,"16.2":0.00967,"16.3":0.02417,"16.4":0.00967,"16.5":0.01933,"16.6":0.06283,"17.0":0.00967,"17.1":0.029,"17.2":0.029,"17.3":0.029,"17.4":0.39147,"17.5":0.07733},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00226,"5.0-5.1":0.00226,"6.0-6.1":0.00566,"7.0-7.1":0.00792,"8.1-8.4":0.00226,"9.0-9.2":0.00566,"9.3":0.02603,"10.0-10.2":0.00453,"10.3":0.04074,"11.0-11.2":0.05998,"11.3-11.4":0.01132,"12.0-12.1":0.00679,"12.2-12.5":0.16411,"13.0-13.1":0.0034,"13.2":0.01585,"13.3":0.00792,"13.4-13.7":0.03622,"14.0-14.4":0.06225,"14.5-14.8":0.0962,"15.0-15.1":0.0464,"15.2-15.3":0.05093,"15.4":0.05772,"15.5":0.07243,"15.6-15.8":0.65191,"16.0":0.14826,"16.1":0.30558,"16.2":0.14826,"16.3":0.25692,"16.4":0.05433,"16.5":0.10978,"16.6-16.7":0.87488,"17.0":0.09507,"17.1":0.15506,"17.2":0.16185,"17.3":0.29879,"17.4":6.78509,"17.5":0.47875,"17.6":0},P:{"4":0.11258,"20":0.02047,"21":0.04094,"22":0.07164,"23":0.13305,"24":0.23539,"25":2.8861,_:"5.0-5.4 7.2-7.4 8.2 9.2 10.1 15.0","6.2-6.4":0.01023,"11.1-11.2":0.01023,"12.0":0.02047,"13.0":0.01023,"14.0":0.02047,"16.0":0.01023,"17.0":0.01023,"18.0":0.01023,"19.0":0.0307},I:{"0":0.04118,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.30008,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00483,"11":0.02417,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.42784},R:{_:"0"},M:{"0":0.26357},Q:{_:"14.9"},O:{"0":0.03101},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/RS.js b/node_modules/caniuse-lite/data/regions/RS.js index 90856e3c4..d887b00d9 100644 --- a/node_modules/caniuse-lite/data/regions/RS.js +++ b/node_modules/caniuse-lite/data/regions/RS.js @@ -1 +1 @@ -module.exports={C:{"3":0.01577,"52":0.03943,"68":0.00394,"72":0.00394,"75":0.00394,"78":0.00394,"88":0.00394,"99":0.00394,"100":0.00394,"101":0.02366,"102":0.00394,"105":0.00394,"107":0.00394,"113":0.00789,"114":0.00394,"115":0.57174,"120":0.00394,"121":0.00394,"122":0.0276,"123":0.08675,"124":0.12223,"125":0.00394,"127":0.00394,"128":0.03549,"129":0.00394,"130":0.00394,"131":0.00394,"132":0.00394,"133":0.00394,"134":0.00789,"135":0.01577,"136":0.03549,"137":0.01577,"138":0.08675,"139":1.87293,"140":0.27207,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 103 104 106 108 109 110 111 112 116 117 118 119 126 141 142 143 3.5 3.6"},D:{"29":0.03154,"39":0.00789,"40":0.00394,"41":0.00394,"42":0.00394,"43":0.00789,"44":0.00394,"45":0.00394,"46":0.00394,"47":0.01183,"48":0.07886,"49":0.01972,"50":0.00789,"51":0.00394,"52":0.00394,"53":0.00394,"54":0.00394,"55":0.00394,"56":0.00789,"57":0.00394,"58":0.00789,"59":0.00394,"60":0.00789,"68":0.00394,"69":0.00394,"70":0.00394,"71":0.00394,"72":0.00394,"73":0.00394,"75":0.00394,"78":0.01183,"79":0.37853,"80":0.00394,"81":0.00789,"83":0.00789,"85":0.01183,"86":0.00394,"87":0.35881,"88":0.00789,"89":0.01183,"90":0.00394,"91":0.00394,"93":0.01183,"94":0.07097,"95":0.00394,"96":0.00394,"97":0.00394,"98":0.00394,"99":0.00394,"100":0.00789,"101":0.00789,"102":0.03549,"103":0.04337,"104":0.10252,"105":0.00394,"106":0.01577,"107":0.01183,"108":0.05126,"109":2.59844,"110":0.00394,"111":0.01577,"112":0.00789,"113":0.07492,"114":0.01183,"115":0.00394,"116":0.03154,"118":0.01183,"119":0.06309,"120":0.0276,"121":0.09858,"122":0.10646,"123":0.02366,"124":0.03943,"125":0.34698,"126":0.04732,"127":0.02366,"128":0.03549,"129":0.03154,"130":0.02366,"131":0.09463,"132":0.06703,"133":0.08675,"134":0.13801,"135":0.22475,"136":2.52352,"137":17.40835,"138":0.68214,"139":0.00394,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 74 76 77 84 92 117 140 141"},F:{"40":0.00394,"46":0.0276,"79":0.00394,"85":0.00394,"89":0.01183,"90":0.01183,"95":0.11435,"117":0.00394,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00394,"14":0.00394,"18":0.00394,"92":0.00394,"99":0.00394,"101":0.00394,"102":0.03549,"109":0.01577,"111":0.00394,"114":0.00394,"119":0.00394,"121":0.01183,"122":0.01972,"129":0.00394,"130":0.00394,"131":0.01183,"132":0.00789,"133":0.00394,"134":0.00789,"135":0.05126,"136":0.22869,"137":1.31302,"138":0.10646,_:"12 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 103 104 105 106 107 108 110 112 113 115 116 117 118 120 123 124 125 126 127 128"},E:{"4":0.02366,"14":0.01183,"15":0.00394,_:"0 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 26.0","12.1":0.00789,"13.1":0.04337,"14.1":0.04732,"15.4":0.01183,"15.5":0.01183,"15.6":0.06309,"16.0":0.00789,"16.1":0.00789,"16.2":0.00394,"16.3":0.01577,"16.4":0.00789,"16.5":0.00789,"16.6":0.0552,"17.0":0.01183,"17.1":0.03943,"17.2":0.01972,"17.3":0.03943,"17.4":0.03549,"17.5":0.01972,"17.6":0.07097,"18.0":0.01183,"18.1":0.03943,"18.2":0.01183,"18.3":0.04732,"18.4":0.0276,"18.5":0.29967},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0021,"5.0-5.1":0,"6.0-6.1":0.0042,"7.0-7.1":0.0042,"8.1-8.4":0,"9.0-9.2":0.0021,"9.3":0.0126,"10.0-10.2":0.00105,"10.3":0.02101,"11.0-11.2":0.13444,"11.3-11.4":0.00735,"12.0-12.1":0.0021,"12.2-12.5":0.07037,"13.0-13.1":0.00105,"13.2":0.00315,"13.3":0.0021,"13.4-13.7":0.01155,"14.0-14.4":0.02731,"14.5-14.8":0.02731,"15.0-15.1":0.01891,"15.2-15.3":0.01891,"15.4":0.02311,"15.5":0.02521,"15.6-15.8":0.32559,"16.0":0.04306,"16.1":0.08822,"16.2":0.04516,"16.3":0.08297,"16.4":0.01891,"16.5":0.03361,"16.6-16.7":0.40856,"17.0":0.02206,"17.1":0.03886,"17.2":0.03046,"17.3":0.04306,"17.4":0.07667,"17.5":0.16069,"17.6-17.7":0.42011,"18.0":0.10398,"18.1":0.23421,"18.2":0.12393,"18.3":0.53249,"18.4":0.56505,"18.5":6.62414,"26.0":0},P:{"4":0.14402,"20":0.01029,"21":0.02057,"22":0.02057,"23":0.03086,"24":0.03086,"25":0.05144,"26":0.05144,"27":0.12345,"28":2.58211,"5.0-5.4":0.02057,"6.2-6.4":0.02057,"7.2-7.4":0.09259,_:"8.2 9.2 10.1 11.1-11.2 12.0 15.0 17.0 18.0","13.0":0.01029,"14.0":0.01029,"16.0":0.01029,"19.0":0.01029},I:{"0":0.01814,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.29679,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.42874,"9":0.08974,"10":0.15455,"11":0.62816,_:"6 7 5.5"},S:{"2.5":0.00606,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":48.49444},R:{_:"0"},M:{"0":0.15143},Q:{_:"14.9"},O:{"0":0.05451},H:{"0":0}}; +module.exports={C:{"4":0.00738,"40":0.00369,"52":0.05906,"56":0.00369,"65":0.01107,"68":0.00369,"72":0.00369,"73":0.00369,"74":0.00738,"75":0.00738,"77":0.00369,"78":0.01107,"80":0.00369,"81":0.00369,"82":0.00369,"84":0.00369,"85":0.00369,"88":0.01476,"91":0.01846,"92":0.00369,"93":0.00369,"94":0.00738,"99":0.00369,"101":0.00369,"102":0.00738,"103":0.01107,"105":0.00369,"106":0.00369,"107":0.00738,"108":0.00369,"110":0.00369,"111":0.00738,"112":0.01846,"113":0.04429,"114":0.00369,"115":1.09992,"117":0.00369,"118":0.00369,"119":0.00369,"120":0.00369,"121":0.00738,"122":0.01476,"123":0.02215,"124":0.11442,"125":1.29554,"126":1.20327,"127":0.00369,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 66 67 69 70 71 76 79 83 86 87 89 90 95 96 97 98 100 104 109 116 128 129 3.5 3.6"},D:{"34":0.00369,"38":0.00738,"43":0.00369,"47":0.00369,"49":0.02953,"53":0.00738,"56":0.00369,"58":0.00369,"63":0.00369,"65":0.02215,"68":0.00738,"69":0.00369,"70":0.00369,"71":0.00369,"72":0.00369,"73":0.00369,"74":0.00369,"75":0.00369,"76":0.00369,"78":0.01107,"79":0.2879,"80":0.00738,"81":0.01846,"83":0.01476,"84":0.01107,"85":0.02584,"86":0.00738,"87":0.18455,"88":0.02584,"89":0.01476,"90":0.02215,"91":0.00738,"92":0.01107,"93":0.0406,"94":0.02584,"95":0.01846,"96":0.00738,"97":0.01107,"98":0.00738,"99":0.02584,"100":0.00369,"101":0.00738,"102":0.0406,"103":0.05167,"104":0.01846,"105":0.01846,"106":0.01476,"107":0.02584,"108":0.03691,"109":3.84602,"110":0.00738,"111":0.01476,"112":0.01107,"113":0.07013,"114":0.08858,"115":0.00738,"116":0.0812,"117":0.03322,"118":0.01476,"119":0.07013,"120":0.09966,"121":0.11811,"122":0.19931,"123":0.71236,"124":13.70099,"125":5.58079,"126":0.01846,"127":0.00369,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 44 45 46 48 50 51 52 54 55 57 59 60 61 62 64 66 67 77 128"},F:{"28":0.00369,"36":0.00369,"46":0.01846,"79":0.00369,"82":0.00369,"83":0.00369,"85":0.01846,"86":0.00369,"93":0.00369,"94":0.00369,"95":0.15871,"101":0.00369,"102":0.00369,"106":0.00369,"107":0.26944,"108":0.02584,"109":1.42842,"110":0.08858,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 87 88 89 90 91 92 96 97 98 99 100 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00738,"92":0.00738,"108":0.00369,"109":0.02953,"118":0.00369,"119":0.00738,"120":0.02584,"121":0.01107,"122":0.01476,"123":0.05167,"124":1.38413,"125":0.78987,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117"},E:{"14":0.00738,"15":0.00369,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 11.1 17.6","9.1":0.00369,"12.1":0.00738,"13.1":0.03691,"14.1":0.02953,"15.1":0.00369,"15.2-15.3":0.00369,"15.4":0.00369,"15.5":0.00738,"15.6":0.09966,"16.0":0.00738,"16.1":0.01107,"16.2":0.00738,"16.3":0.01476,"16.4":0.01107,"16.5":0.00738,"16.6":0.09228,"17.0":0.01476,"17.1":0.02953,"17.2":0.02584,"17.3":0.02953,"17.4":0.2879,"17.5":0.10335},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00208,"5.0-5.1":0.00208,"6.0-6.1":0.00519,"7.0-7.1":0.00727,"8.1-8.4":0.00208,"9.0-9.2":0.00519,"9.3":0.02389,"10.0-10.2":0.00415,"10.3":0.03739,"11.0-11.2":0.05505,"11.3-11.4":0.01039,"12.0-12.1":0.00623,"12.2-12.5":0.1506,"13.0-13.1":0.00312,"13.2":0.01454,"13.3":0.00727,"13.4-13.7":0.03324,"14.0-14.4":0.05712,"14.5-14.8":0.08828,"15.0-15.1":0.04258,"15.2-15.3":0.04674,"15.4":0.05297,"15.5":0.06647,"15.6-15.8":0.59825,"16.0":0.13606,"16.1":0.28043,"16.2":0.13606,"16.3":0.23577,"16.4":0.04985,"16.5":0.10075,"16.6-16.7":0.80286,"17.0":0.08724,"17.1":0.14229,"17.2":0.14852,"17.3":0.2742,"17.4":6.22656,"17.5":0.43934,"17.6":0},P:{"4":0.18502,"20":0.03084,"21":0.03084,"22":0.05139,"23":0.13363,"24":0.20558,"25":2.73419,"5.0-5.4":0.01028,"6.2-6.4":0.01028,"7.2-7.4":0.01028,_:"8.2 9.2 10.1 12.0","11.1-11.2":0.01028,"13.0":0.02056,"14.0":0.03084,"15.0":0.01028,"16.0":0.01028,"17.0":0.01028,"18.0":0.01028,"19.0":0.04112},I:{"0":0.06914,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.4348,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01933,"9":0.00387,"10":0.00387,"11":0.21654,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.36119},R:{_:"0"},M:{"0":0.22085},Q:{_:"14.9"},O:{"0":0.03155},H:{"0":0.07}}; diff --git a/node_modules/caniuse-lite/data/regions/RU.js b/node_modules/caniuse-lite/data/regions/RU.js index aeeec92e9..1605d2201 100644 --- a/node_modules/caniuse-lite/data/regions/RU.js +++ b/node_modules/caniuse-lite/data/regions/RU.js @@ -1 +1 @@ -module.exports={C:{"31":0.00674,"52":0.10104,"56":0.00674,"60":0.00674,"66":0.00674,"68":0.00674,"72":0.00674,"77":0.00674,"78":0.02021,"88":0.00674,"96":0.00674,"97":0.01347,"101":0.00674,"102":0.01347,"105":0.00674,"107":0.00674,"111":0.00674,"113":0.00674,"114":0.00674,"115":0.88915,"118":0.00674,"121":0.00674,"125":0.00674,"127":0.00674,"128":0.14146,"131":0.01347,"132":0.00674,"133":0.01347,"134":0.01347,"135":0.02021,"136":0.04715,"137":0.03368,"138":0.08757,"139":1.73115,"140":0.22902,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 61 62 63 64 65 67 69 70 71 73 74 75 76 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 98 99 100 103 104 106 108 109 110 112 116 117 119 120 122 123 124 126 129 130 141 142 143 3.5 3.6"},D:{"22":0.00674,"25":0.00674,"26":0.00674,"38":0.00674,"39":0.02694,"40":0.02021,"41":0.02694,"42":0.02021,"43":0.02021,"44":0.02021,"45":0.44458,"46":0.02021,"47":0.02694,"48":0.02021,"49":0.06062,"50":0.02021,"51":0.02694,"52":0.02021,"53":0.02694,"54":0.02021,"55":0.02021,"56":0.02021,"57":0.02021,"58":0.02694,"59":0.02694,"60":0.02021,"68":0.00674,"69":0.01347,"70":0.00674,"71":0.00674,"72":0.00674,"73":0.00674,"74":0.00674,"75":0.00674,"76":0.04042,"77":0.00674,"78":0.02694,"79":0.06736,"80":0.02694,"81":0.01347,"83":0.01347,"84":0.01347,"85":0.18861,"86":0.02694,"87":0.04715,"88":0.02021,"89":0.01347,"90":0.02694,"91":0.00674,"92":0.00674,"93":0.00674,"94":0.01347,"95":0.01347,"96":0.00674,"97":0.02694,"98":0.00674,"99":0.00674,"100":0.02021,"101":0.01347,"102":0.02021,"103":0.02021,"104":0.44458,"105":0.01347,"106":0.14146,"107":0.03368,"108":0.05389,"109":2.99752,"110":0.02021,"111":0.04042,"112":0.02021,"113":0.01347,"114":0.04042,"115":0.00674,"116":0.1684,"117":0.01347,"118":0.0741,"119":0.33006,"120":0.08757,"121":0.06062,"122":0.08083,"123":0.06736,"124":0.08083,"125":0.70054,"126":0.04715,"127":0.03368,"128":0.08083,"129":0.04042,"130":0.06062,"131":0.32333,"132":0.0741,"133":0.14146,"134":0.20882,"135":0.22902,"136":2.24982,"137":13.9772,"138":0.5793,"139":0.00674,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 140 141"},F:{"36":0.05389,"43":0.00674,"46":0.00674,"76":0.00674,"77":0.00674,"79":0.05389,"80":0.02021,"82":0.01347,"84":0.01347,"85":0.04715,"86":0.03368,"87":0.00674,"88":0.00674,"89":0.08757,"90":0.04042,"95":0.842,"99":0.02021,"102":0.00674,"111":0.00674,"112":0.00674,"113":0.01347,"114":0.02021,"115":0.00674,"116":0.00674,"117":0.01347,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 78 81 83 91 92 93 94 96 97 98 100 101 103 104 105 106 107 108 109 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00674},B:{"17":0.00674,"18":0.00674,"80":0.00674,"81":0.00674,"84":0.00674,"87":0.00674,"89":0.00674,"92":0.02021,"107":0.00674,"108":0.00674,"109":0.08083,"119":0.00674,"120":0.00674,"122":0.01347,"123":0.00674,"124":0.00674,"125":0.00674,"126":0.00674,"127":0.00674,"128":0.00674,"129":0.00674,"130":0.00674,"131":0.02021,"132":0.00674,"133":0.01347,"134":0.02694,"135":0.04042,"136":0.64666,"137":3.65091,"138":0.29638,_:"12 13 14 15 16 79 83 85 86 88 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 113 114 115 116 117 118 121"},E:{"14":0.03368,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 15.2-15.3 26.0","9.1":0.00674,"12.1":0.00674,"13.1":0.02021,"14.1":0.05389,"15.1":0.00674,"15.4":0.00674,"15.5":0.00674,"15.6":0.10778,"16.0":0.00674,"16.1":0.01347,"16.2":0.00674,"16.3":0.04715,"16.4":0.00674,"16.5":0.03368,"16.6":0.12798,"17.0":0.00674,"17.1":0.06736,"17.2":0.01347,"17.3":0.02021,"17.4":0.02694,"17.5":0.03368,"17.6":0.10104,"18.0":0.00674,"18.1":0.02694,"18.2":0.01347,"18.3":0.06062,"18.4":0.08083,"18.5":0.69381},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00234,"7.0-7.1":0.00234,"8.1-8.4":0,"9.0-9.2":0.00117,"9.3":0.00702,"10.0-10.2":0.00059,"10.3":0.0117,"11.0-11.2":0.07491,"11.3-11.4":0.0041,"12.0-12.1":0.00117,"12.2-12.5":0.03921,"13.0-13.1":0.00059,"13.2":0.00176,"13.3":0.00117,"13.4-13.7":0.00644,"14.0-14.4":0.01522,"14.5-14.8":0.01522,"15.0-15.1":0.01053,"15.2-15.3":0.01053,"15.4":0.01288,"15.5":0.01405,"15.6-15.8":0.18142,"16.0":0.02399,"16.1":0.04916,"16.2":0.02517,"16.3":0.04623,"16.4":0.01053,"16.5":0.01873,"16.6-16.7":0.22766,"17.0":0.01229,"17.1":0.02165,"17.2":0.01697,"17.3":0.02399,"17.4":0.04272,"17.5":0.08954,"17.6-17.7":0.23409,"18.0":0.05794,"18.1":0.13051,"18.2":0.06906,"18.3":0.29671,"18.4":0.31486,"18.5":3.69108,"26.0":0},P:{"4":0.09707,"21":0.02157,"22":0.01079,"23":0.01079,"24":0.01079,"25":0.01079,"26":0.01079,"27":0.03236,"28":0.50691,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02157,"17.0":0.01079},I:{"0":0.04562,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.85517,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00802,"11":0.16038,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.53674},R:{_:"0"},M:{"0":0.1632},Q:{"14.9":0.00979},O:{"0":0.16646},H:{"0":0}}; +module.exports={C:{"31":0.00553,"38":0.00553,"45":0.00553,"48":0.00553,"49":0.00553,"50":0.00553,"52":0.13274,"53":0.00553,"56":0.00553,"65":0.03872,"68":0.01659,"70":0.00553,"72":0.03319,"75":0.00553,"77":0.00553,"78":0.01659,"81":0.01106,"88":0.00553,"89":0.00553,"90":0.00553,"91":0.00553,"92":0.00553,"93":0.00553,"94":0.00553,"96":0.00553,"99":0.00553,"100":0.00553,"101":0.00553,"102":0.01659,"103":0.02766,"104":0.00553,"105":0.00553,"106":0.00553,"107":0.01659,"108":0.01106,"109":0.00553,"110":0.00553,"111":0.01106,"112":0.00553,"113":0.01659,"114":0.01659,"115":0.75775,"116":0.00553,"117":0.00553,"118":0.01106,"119":0.01106,"120":0.01106,"121":0.02212,"122":0.01659,"123":0.03319,"124":0.05531,"125":0.91815,"126":0.71903,"127":0.00553,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 39 40 41 42 43 44 46 47 51 54 55 57 58 59 60 61 62 63 64 66 67 69 71 73 74 76 79 80 82 83 84 85 86 87 95 97 98 128 129 3.5 3.6"},D:{"25":0.00553,"26":0.00553,"34":0.00553,"38":0.00553,"41":0.00553,"49":0.04425,"51":0.02766,"53":0.00553,"56":0.01106,"57":0.01106,"58":0.00553,"62":0.01106,"64":0.00553,"65":0.00553,"67":0.00553,"68":0.00553,"69":0.00553,"70":0.01106,"71":0.00553,"72":0.01659,"73":0.00553,"74":0.01106,"75":0.01659,"76":0.02212,"77":0.00553,"78":0.01106,"79":0.06084,"80":0.02766,"81":0.02212,"83":0.01659,"84":0.01106,"85":0.02212,"86":0.04978,"87":0.04978,"88":0.07743,"89":0.03872,"90":0.03319,"91":0.01659,"92":0.00553,"93":0.00553,"94":0.03872,"95":0.00553,"96":0.01106,"97":0.03319,"98":0.02766,"99":0.03872,"100":0.01659,"101":0.01659,"102":0.07743,"103":0.03872,"104":0.06637,"105":0.02766,"106":0.14934,"107":0.04978,"108":0.06637,"109":2.70466,"110":0.03872,"111":0.05531,"112":0.04425,"113":0.13828,"114":0.19912,"115":0.02212,"116":0.10509,"117":0.03319,"118":0.04425,"119":0.13828,"120":0.20465,"121":0.2323,"122":0.26549,"123":0.67478,"124":10.87948,"125":4.13719,"126":0.01106,"127":0.00553,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 32 33 35 36 37 39 40 42 43 44 45 46 47 48 50 52 54 55 59 60 61 63 66 128"},F:{"36":0.02766,"43":0.00553,"46":0.00553,"55":0.00553,"60":0.00553,"64":0.00553,"70":0.00553,"72":0.00553,"73":0.00553,"74":0.00553,"76":0.00553,"77":0.01106,"79":0.04978,"80":0.00553,"82":0.01106,"83":0.00553,"84":0.01106,"85":0.06084,"86":0.02212,"87":0.00553,"89":0.00553,"90":0.00553,"92":0.00553,"93":0.00553,"94":0.00553,"95":0.85731,"97":0.00553,"99":0.00553,"102":0.01106,"104":0.00553,"105":0.01106,"106":0.12721,"107":0.59182,"108":0.0719,"109":3.65599,"110":0.25996,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 47 48 49 50 51 52 53 54 56 57 58 62 63 65 66 67 68 69 71 75 78 81 88 91 96 98 100 101 103 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00553},B:{"14":0.00553,"16":0.00553,"18":0.01659,"80":0.00553,"81":0.00553,"83":0.00553,"84":0.00553,"85":0.00553,"86":0.00553,"88":0.00553,"89":0.00553,"90":0.00553,"92":0.01659,"98":0.00553,"100":0.00553,"107":0.00553,"108":0.00553,"109":0.06637,"110":0.00553,"111":0.00553,"113":0.00553,"114":0.01659,"115":0.00553,"116":0.00553,"117":0.00553,"118":0.00553,"119":0.01106,"120":0.02766,"121":0.02212,"122":0.04978,"123":0.07743,"124":2.79869,"125":1.53762,_:"12 13 15 17 79 87 91 93 94 95 96 97 99 101 102 103 104 105 106 112"},E:{"14":0.03319,"15":0.00553,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 17.6","9.1":0.03319,"11.1":0.00553,"12.1":0.01659,"13.1":0.03319,"14.1":0.05531,"15.1":0.01106,"15.2-15.3":0.01106,"15.4":0.01106,"15.5":0.01659,"15.6":0.11062,"16.0":0.01106,"16.1":0.02766,"16.2":0.02766,"16.3":0.04978,"16.4":0.01659,"16.5":0.03319,"16.6":0.14934,"17.0":0.02766,"17.1":0.05531,"17.2":0.04425,"17.3":0.04978,"17.4":0.53098,"17.5":0.08297},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00195,"5.0-5.1":0.00195,"6.0-6.1":0.00488,"7.0-7.1":0.00684,"8.1-8.4":0.00195,"9.0-9.2":0.00488,"9.3":0.02246,"10.0-10.2":0.00391,"10.3":0.03515,"11.0-11.2":0.05175,"11.3-11.4":0.00976,"12.0-12.1":0.00586,"12.2-12.5":0.14159,"13.0-13.1":0.00293,"13.2":0.01367,"13.3":0.00684,"13.4-13.7":0.03125,"14.0-14.4":0.05371,"14.5-14.8":0.083,"15.0-15.1":0.04004,"15.2-15.3":0.04394,"15.4":0.0498,"15.5":0.06249,"15.6-15.8":0.56245,"16.0":0.12792,"16.1":0.26365,"16.2":0.12792,"16.3":0.22166,"16.4":0.04687,"16.5":0.09472,"16.6-16.7":0.75482,"17.0":0.08202,"17.1":0.13378,"17.2":0.13964,"17.3":0.25779,"17.4":5.85398,"17.5":0.41305,"17.6":0},P:{"4":0.08608,"20":0.01076,"21":0.03228,"22":0.02152,"23":0.0538,"24":0.09684,"25":0.75322,_:"5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01076,"9.2":0.02152,"17.0":0.01076,"19.0":0.01076},I:{"0":0.04897,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.88933,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01766,"9":0.00589,"11":0.15897,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":27.93043},R:{_:"0"},M:{"0":0.1877},Q:{"14.9":0.01341},O:{"0":0.13854},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/RW.js b/node_modules/caniuse-lite/data/regions/RW.js index fc7c361d0..c5aadf9f6 100644 --- a/node_modules/caniuse-lite/data/regions/RW.js +++ b/node_modules/caniuse-lite/data/regions/RW.js @@ -1 +1 @@ -module.exports={C:{"89":0.00987,"106":0.02469,"107":0.00494,"108":0.00494,"109":0.01481,"112":0.01481,"115":0.11355,"127":0.00987,"128":0.02469,"133":0.00987,"134":0.00494,"135":0.01975,"136":0.00494,"137":0.01481,"138":0.05431,"139":1.17007,"140":0.11849,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"11":0.00494,"20":0.00494,"38":0.00494,"39":0.01481,"40":0.00987,"41":0.00987,"42":0.00987,"43":0.00987,"44":0.01481,"45":0.01481,"46":0.01481,"47":0.00987,"48":0.01481,"49":0.01975,"50":0.01481,"51":0.00987,"52":0.01481,"53":0.00987,"54":0.01481,"55":0.00987,"56":0.00987,"57":0.01481,"58":0.01975,"59":0.00987,"60":0.01481,"71":0.00494,"73":0.00494,"74":0.00494,"75":0.00494,"77":0.01481,"79":0.01481,"80":0.02962,"81":0.01481,"83":0.00987,"84":0.01975,"85":0.00494,"86":0.01975,"87":0.02469,"88":0.00494,"89":0.00987,"90":0.00987,"91":0.00494,"93":0.01975,"95":0.00987,"97":0.00987,"98":0.00494,"100":0.00987,"103":0.03456,"105":0.00987,"106":0.07899,"107":0.10861,"108":0.11849,"109":1.11576,"110":0.14811,"111":0.12836,"112":0.05924,"113":0.00494,"114":0.01481,"115":0.00494,"116":0.07406,"117":0.01481,"118":0.00987,"119":0.00987,"120":0.01975,"121":0.00494,"122":0.10861,"123":0.01481,"124":0.01975,"125":1.37742,"126":0.03456,"127":0.03456,"128":0.07899,"129":0.0395,"130":0.02962,"131":0.15798,"132":0.1333,"133":0.06912,"134":0.15305,"135":0.28635,"136":3.27817,"137":21.5895,"138":0.89853,"139":0.00494,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 72 76 78 92 94 96 99 101 102 104 140 141"},F:{"35":0.00494,"86":0.01975,"89":0.03456,"90":0.00494,"93":0.00494,"94":0.00494,"95":0.01481,"108":0.00494,"117":0.00494,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 91 92 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01975,"13":0.00494,"14":0.00987,"16":0.00494,"17":0.00987,"18":0.06912,"84":0.00494,"90":0.01975,"92":0.14317,"100":0.01481,"103":0.01975,"107":0.00494,"108":0.02962,"109":0.0395,"110":0.00494,"111":0.00494,"112":0.00494,"114":0.03456,"121":0.00494,"122":0.04443,"123":0.00987,"125":0.00494,"126":0.00494,"129":0.00987,"130":0.02469,"131":0.01481,"132":0.01975,"133":0.0395,"134":0.04937,"135":0.12836,"136":0.75536,"137":3.42134,"138":0.2271,_:"15 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 104 105 106 113 115 116 117 118 119 120 124 127 128"},E:{"11":0.00494,"13":0.00987,"15":0.00494,_:"0 4 5 6 7 8 9 10 12 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.5 16.2 16.5 17.0 17.2 17.3 26.0","12.1":0.00494,"13.1":0.01975,"14.1":0.01481,"15.2-15.3":0.00494,"15.4":0.00494,"15.6":0.05924,"16.0":0.00494,"16.1":0.00987,"16.3":0.00494,"16.4":0.00987,"16.6":0.08393,"17.1":0.00494,"17.4":0.02469,"17.5":0.01975,"17.6":0.07899,"18.0":0.00494,"18.1":0.00987,"18.2":0.01975,"18.3":0.08887,"18.4":0.01481,"18.5":0.28141},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0,"6.0-6.1":0.00222,"7.0-7.1":0.00222,"8.1-8.4":0,"9.0-9.2":0.00111,"9.3":0.00667,"10.0-10.2":0.00056,"10.3":0.01112,"11.0-11.2":0.07116,"11.3-11.4":0.00389,"12.0-12.1":0.00111,"12.2-12.5":0.03725,"13.0-13.1":0.00056,"13.2":0.00167,"13.3":0.00111,"13.4-13.7":0.00612,"14.0-14.4":0.01445,"14.5-14.8":0.01445,"15.0-15.1":0.01001,"15.2-15.3":0.01001,"15.4":0.01223,"15.5":0.01334,"15.6-15.8":0.17233,"16.0":0.02279,"16.1":0.0467,"16.2":0.0239,"16.3":0.04392,"16.4":0.01001,"16.5":0.01779,"16.6-16.7":0.21625,"17.0":0.01167,"17.1":0.02057,"17.2":0.01612,"17.3":0.02279,"17.4":0.04058,"17.5":0.08506,"17.6-17.7":0.22237,"18.0":0.05504,"18.1":0.12397,"18.2":0.0656,"18.3":0.28185,"18.4":0.29908,"18.5":3.50617,"26.0":0},P:{"4":0.03128,"22":0.02085,"23":0.01043,"24":0.06256,"25":0.01043,"26":0.04171,"27":0.07299,"28":0.57351,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04171,"11.1-11.2":0.01043},I:{"0":0.01516,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":3.09287,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00987,"10":0.00987,"11":0.0395,_:"6 7 9 5.5"},S:{"2.5":0.00506,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.29553},R:{_:"0"},M:{"0":0.10126},Q:{_:"14.9"},O:{"0":0.29872},H:{"0":1.96}}; +module.exports={C:{"31":0.00433,"41":0.00433,"43":0.00866,"71":0.00433,"72":0.00433,"75":0.00433,"78":0.00433,"81":0.00433,"86":0.00433,"88":0.00433,"89":0.00433,"112":0.00433,"113":0.00866,"115":0.13417,"117":0.00433,"120":0.00433,"122":0.01298,"123":0.01731,"124":0.02597,"125":0.67517,"126":0.65786,"127":0.01298,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 74 76 77 79 80 82 83 84 85 87 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 116 118 119 121 128 129 3.5 3.6"},D:{"22":0.00866,"31":0.00433,"38":0.00433,"40":0.00433,"43":0.00866,"44":0.00433,"46":0.00433,"49":0.00433,"55":0.00433,"56":0.00433,"58":0.00866,"64":0.00433,"65":0.00433,"69":0.00866,"70":0.00866,"71":0.00433,"72":0.00433,"74":0.00866,"76":0.00433,"77":0.00433,"78":0.00433,"79":0.01298,"80":0.01731,"81":0.00866,"83":0.00433,"84":0.00866,"85":0.01731,"86":0.00433,"87":0.04761,"88":0.01731,"89":0.01298,"90":0.01731,"93":0.02164,"95":0.02164,"96":0.00433,"98":0.05626,"99":0.00866,"100":0.00433,"101":0.00433,"102":0.00866,"103":0.06492,"105":0.00433,"106":0.02597,"107":0.00866,"108":0.02164,"109":0.8353,"110":0.03895,"111":0.00866,"112":0.00433,"113":0.01298,"114":0.02597,"115":0.0303,"116":0.1385,"117":0.01298,"118":0.02164,"119":0.09089,"120":0.13417,"121":0.14715,"122":0.27266,"123":0.84396,"124":16.30358,"125":6.18038,"126":0.06059,"127":0.00433,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 32 33 34 35 36 37 39 41 42 45 47 48 50 51 52 53 54 57 59 60 61 62 63 66 67 68 73 75 91 92 94 97 104 128"},F:{"79":0.00866,"95":0.0303,"106":0.00433,"107":0.04328,"108":0.0303,"109":0.73576,"110":0.08223,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.04328,"13":0.06059,"14":0.01731,"15":0.01298,"16":0.02164,"17":0.01731,"18":0.18178,"84":0.00866,"85":0.00433,"89":0.01731,"90":0.00866,"92":0.25102,"100":0.04328,"106":0.00433,"107":0.00433,"108":0.00433,"109":0.01731,"110":0.00433,"111":0.02597,"112":0.01731,"113":0.00866,"114":0.00433,"115":0.00433,"116":0.00433,"117":0.00866,"118":0.00866,"119":0.02164,"120":0.13417,"121":0.05194,"122":0.08223,"123":0.1082,"124":2.4886,"125":1.35034,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105"},E:{"14":0.05194,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.5 16.0 16.4 17.6","12.1":0.00433,"13.1":0.01298,"14.1":0.01298,"15.1":0.00433,"15.2-15.3":0.00433,"15.4":0.00433,"15.6":0.0303,"16.1":0.01298,"16.2":0.00433,"16.3":0.00433,"16.5":0.00433,"16.6":0.03895,"17.0":0.00433,"17.1":0.01731,"17.2":0.01298,"17.3":0.02164,"17.4":0.14715,"17.5":0.27699},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00088,"5.0-5.1":0.00088,"6.0-6.1":0.0022,"7.0-7.1":0.00307,"8.1-8.4":0.00088,"9.0-9.2":0.0022,"9.3":0.0101,"10.0-10.2":0.00176,"10.3":0.0158,"11.0-11.2":0.02327,"11.3-11.4":0.00439,"12.0-12.1":0.00263,"12.2-12.5":0.06366,"13.0-13.1":0.00132,"13.2":0.00615,"13.3":0.00307,"13.4-13.7":0.01405,"14.0-14.4":0.02415,"14.5-14.8":0.03732,"15.0-15.1":0.018,"15.2-15.3":0.01976,"15.4":0.02239,"15.5":0.0281,"15.6-15.8":0.25287,"16.0":0.05751,"16.1":0.11853,"16.2":0.05751,"16.3":0.09966,"16.4":0.02107,"16.5":0.04258,"16.6-16.7":0.33936,"17.0":0.03688,"17.1":0.06014,"17.2":0.06278,"17.3":0.1159,"17.4":2.63188,"17.5":0.1857,"17.6":0},P:{"4":0.08882,"20":0.01974,"21":0.04935,"22":0.08882,"23":0.11843,"24":0.17765,"25":0.6415,_:"5.0-5.4 8.2 9.2 10.1 12.0 15.0","6.2-6.4":0.02961,"7.2-7.4":0.09869,"11.1-11.2":0.00987,"13.0":0.00987,"14.0":0.02961,"16.0":0.00987,"17.0":0.00987,"18.0":0.00987,"19.0":0.08882},I:{"0":0.09605,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00021},K:{"0":5.39996,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00433,"11":0.04761,_:"6 7 8 9 5.5"},S:{"2.5":0.02269,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.0362},R:{_:"0"},M:{"0":0.09075},Q:{"14.9":0.00567},O:{"0":0.30629},H:{"0":3.42}}; diff --git a/node_modules/caniuse-lite/data/regions/SA.js b/node_modules/caniuse-lite/data/regions/SA.js index e26b30224..c65141993 100644 --- a/node_modules/caniuse-lite/data/regions/SA.js +++ b/node_modules/caniuse-lite/data/regions/SA.js @@ -1 +1 @@ -module.exports={C:{"52":0.00165,"115":0.02146,"127":0.00165,"128":0.00495,"133":0.00165,"134":0.00165,"135":0.00165,"136":0.00165,"137":0.0033,"138":0.01651,"139":0.22949,"140":0.03302,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"11":0.0033,"34":0.00165,"38":0.00495,"39":0.00495,"40":0.00495,"41":0.0066,"42":0.00495,"43":0.00495,"44":0.00495,"45":0.00495,"46":0.00495,"47":0.00826,"48":0.00495,"49":0.00991,"50":0.00495,"51":0.00495,"52":0.00495,"53":0.00495,"54":0.00495,"55":0.00495,"56":0.0066,"57":0.00495,"58":0.01486,"59":0.00495,"60":0.00495,"63":0.00165,"68":0.00165,"69":0.00165,"70":0.00165,"71":0.00165,"72":0.00165,"73":0.00165,"74":0.00165,"75":0.0033,"76":0.00165,"78":0.00165,"79":0.01321,"80":0.00165,"81":0.00165,"83":0.00991,"85":0.00165,"86":0.00165,"87":0.01651,"88":0.0033,"89":0.00165,"90":0.0033,"91":0.00165,"92":0.00165,"93":0.0033,"94":0.00495,"95":0.00165,"98":0.0033,"99":0.00165,"101":0.00165,"103":0.01156,"104":0.00165,"105":0.00165,"106":0.0033,"107":0.0033,"108":0.01156,"109":0.23114,"110":0.0066,"111":0.0033,"112":0.00165,"113":0.0033,"114":0.02311,"115":0.00165,"116":0.01321,"117":0.00165,"118":0.00495,"119":0.0066,"120":0.01321,"121":0.00826,"122":0.02807,"123":0.0033,"124":0.01486,"125":1.45288,"126":0.01156,"127":0.0066,"128":0.02311,"129":0.00826,"130":0.01156,"131":0.03962,"132":0.02972,"133":0.02972,"134":0.03302,"135":0.11062,"136":0.96088,"137":6.49338,"138":0.28397,"139":0.0033,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 62 64 65 66 67 77 84 96 97 100 102 140 141"},F:{"46":0.00165,"89":0.02477,"90":0.01321,"95":0.00165,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0033,"92":0.00826,"100":0.00165,"108":0.00165,"109":0.00495,"114":0.00495,"120":0.0066,"122":0.0033,"123":0.00165,"124":0.00165,"125":0.00165,"126":0.00495,"127":0.00165,"128":0.0033,"129":0.0033,"130":0.0033,"131":0.01156,"132":0.0066,"133":0.0066,"134":0.01981,"135":0.01816,"136":0.27407,"137":1.10617,"138":0.11227,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 121"},E:{"14":0.00165,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1","5.1":0.0033,"9.1":0.0033,"13.1":0.0033,"14.1":0.0066,"15.1":0.00165,"15.2-15.3":0.0033,"15.4":0.00165,"15.5":0.00495,"15.6":0.02477,"16.0":0.00495,"16.1":0.01321,"16.2":0.0066,"16.3":0.01156,"16.4":0.00826,"16.5":0.00991,"16.6":0.08255,"17.0":0.0033,"17.1":0.01651,"17.2":0.01156,"17.3":0.00826,"17.4":0.01651,"17.5":0.04128,"17.6":0.09576,"18.0":0.01486,"18.1":0.03632,"18.2":0.02477,"18.3":0.09081,"18.4":0.09246,"18.5":0.6637,"26.0":0.00165},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00387,"5.0-5.1":0,"6.0-6.1":0.00773,"7.0-7.1":0.00773,"8.1-8.4":0,"9.0-9.2":0.00387,"9.3":0.02319,"10.0-10.2":0.00193,"10.3":0.03866,"11.0-11.2":0.2474,"11.3-11.4":0.01353,"12.0-12.1":0.00387,"12.2-12.5":0.1295,"13.0-13.1":0.00193,"13.2":0.0058,"13.3":0.00387,"13.4-13.7":0.02126,"14.0-14.4":0.05025,"14.5-14.8":0.05025,"15.0-15.1":0.03479,"15.2-15.3":0.03479,"15.4":0.04252,"15.5":0.04639,"15.6-15.8":0.59917,"16.0":0.07924,"16.1":0.16235,"16.2":0.08311,"16.3":0.15269,"16.4":0.03479,"16.5":0.06185,"16.6-16.7":0.75186,"17.0":0.04059,"17.1":0.07151,"17.2":0.05605,"17.3":0.07924,"17.4":0.14109,"17.5":0.29572,"17.6-17.7":0.77312,"18.0":0.19135,"18.1":0.43101,"18.2":0.22807,"18.3":0.97993,"18.4":1.03984,"18.5":12.19013,"26.0":0},P:{"21":0.01033,"22":0.01033,"23":0.02065,"24":0.02065,"25":0.05163,"26":0.03098,"27":0.13424,"28":1.28047,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01033},I:{"0":0.05834,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.4592,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01156,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.90855},R:{_:"0"},M:{"0":0.06679},Q:{_:"14.9"},O:{"0":1.51952},H:{"0":0}}; +module.exports={C:{"52":0.00201,"66":0.00201,"68":0.00201,"88":0.00201,"108":0.00201,"109":0.00201,"115":0.05631,"120":0.00201,"121":0.00201,"122":0.00201,"123":0.00402,"124":0.01006,"125":0.23127,"126":0.18702,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 116 117 118 119 127 128 129 3.5 3.6"},D:{"11":0.00201,"38":0.00603,"41":0.00603,"47":0.00201,"49":0.00201,"51":0.00201,"56":0.00402,"58":0.01609,"63":0.00201,"65":0.00201,"67":0.00201,"68":0.00201,"69":0.00402,"70":0.00201,"71":0.00201,"72":0.00402,"73":0.00201,"74":0.00201,"75":0.00402,"76":0.00201,"78":0.00201,"79":0.02614,"80":0.00603,"81":0.00201,"83":0.00603,"85":0.00201,"86":0.00603,"87":0.02413,"88":0.00603,"89":0.00201,"90":0.00603,"91":0.00402,"92":0.00201,"93":0.01207,"94":0.00804,"95":0.00201,"96":0.00201,"97":0.00201,"98":0.01006,"99":0.02614,"100":0.00201,"101":0.00201,"102":0.00603,"103":0.02815,"104":0.00402,"105":0.01207,"106":0.00804,"107":0.01207,"108":0.01408,"109":0.66162,"110":0.01408,"111":0.01408,"112":0.01408,"113":0.00603,"114":0.01408,"115":0.01408,"116":0.04625,"117":0.0181,"118":0.02212,"119":0.03419,"120":0.08245,"121":0.07039,"122":0.16088,"123":0.2735,"124":8.54474,"125":3.26184,"126":0.00603,"127":0.00201,_:"4 5 6 7 8 9 10 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 39 40 42 43 44 45 46 48 50 52 53 54 55 57 59 60 61 62 64 66 77 84 128"},F:{"28":0.00201,"46":0.00201,"82":0.00402,"83":0.00201,"95":0.00201,"104":0.00201,"106":0.00201,"107":0.0724,"108":0.0362,"109":0.23931,"110":0.00201,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00201,"16":0.00201,"17":0.00201,"18":0.00402,"92":0.00804,"100":0.00201,"105":0.00201,"106":0.00201,"107":0.00201,"108":0.00201,"109":0.01006,"110":0.00201,"111":0.00201,"113":0.00201,"114":0.00201,"115":0.00402,"116":0.00201,"117":0.00804,"118":0.00402,"119":0.00603,"120":0.01609,"121":0.0181,"122":0.03419,"123":0.26344,"124":1.50825,"125":0.77625,_:"13 14 15 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 112"},E:{"13":0.00201,"14":0.01408,"15":0.00603,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00402,"11.1":0.00201,"12.1":0.00201,"13.1":0.01006,"14.1":0.0362,"15.1":0.00804,"15.2-15.3":0.00603,"15.4":0.01207,"15.5":0.02614,"15.6":0.13876,"16.0":0.01609,"16.1":0.05631,"16.2":0.03821,"16.3":0.07642,"16.4":0.02614,"16.5":0.0362,"16.6":0.17496,"17.0":0.03017,"17.1":0.05229,"17.2":0.0543,"17.3":0.08044,"17.4":1.01757,"17.5":0.10658},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00526,"5.0-5.1":0.00526,"6.0-6.1":0.01315,"7.0-7.1":0.01841,"8.1-8.4":0.00526,"9.0-9.2":0.01315,"9.3":0.06049,"10.0-10.2":0.01052,"10.3":0.09468,"11.0-11.2":0.13939,"11.3-11.4":0.0263,"12.0-12.1":0.01578,"12.2-12.5":0.38135,"13.0-13.1":0.00789,"13.2":0.03682,"13.3":0.01841,"13.4-13.7":0.08416,"14.0-14.4":0.14465,"14.5-14.8":0.22355,"15.0-15.1":0.10783,"15.2-15.3":0.11835,"15.4":0.13413,"15.5":0.16832,"15.6-15.8":1.51487,"16.0":0.34453,"16.1":0.71009,"16.2":0.34453,"16.3":0.59701,"16.4":0.12624,"16.5":0.25511,"16.6-16.7":2.03297,"17.0":0.22092,"17.1":0.36031,"17.2":0.37609,"17.3":0.69431,"17.4":15.76672,"17.5":1.11248,"17.6":0},P:{"4":0.01035,"20":0.01035,"21":0.04139,"22":0.07244,"23":0.09314,"24":0.20697,"25":1.45913,"5.0-5.4":0.01035,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0","7.2-7.4":0.0207,"11.1-11.2":0.01035,"13.0":0.01035,"16.0":0.01035,"17.0":0.01035,"18.0":0.01035,"19.0":0.0207},I:{"0":0.0557,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.47934,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00211,"10":0.00211,"11":0.03801,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":50.43772},R:{_:"0"},M:{"0":0.06391},Q:{"14.9":0.00799},O:{"0":1.15841},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SB.js b/node_modules/caniuse-lite/data/regions/SB.js index 98c834788..afaaf66f3 100644 --- a/node_modules/caniuse-lite/data/regions/SB.js +++ b/node_modules/caniuse-lite/data/regions/SB.js @@ -1 +1 @@ -module.exports={C:{"78":0.00735,"115":0.05144,"136":0.03307,"137":0.00367,"138":0.08083,"139":1.32999,"140":0.12124,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 141 142 143 3.5 3.6"},D:{"18":0.02204,"41":0.00367,"42":0.02572,"43":0.0147,"44":0.00367,"46":0.00367,"47":0.00367,"48":0.00367,"49":0.00735,"51":0.00735,"52":0.00367,"54":0.00735,"58":0.00367,"59":0.0147,"60":0.00735,"69":0.05144,"87":0.01837,"103":0.00367,"108":2.04642,"109":0.43721,"111":0.00367,"115":0.00367,"119":0.00735,"120":0.04409,"121":0.1984,"122":0.07348,"124":0.05511,"125":0.18737,"126":0.02572,"127":0.05511,"128":0.00367,"129":0.00735,"130":0.14696,"131":0.05144,"132":0.00367,"133":0.12492,"134":0.05144,"135":0.13961,"136":1.64228,"137":10.67297,"138":0.3674,"139":0.01837,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 45 50 53 55 56 57 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 110 112 113 114 116 117 118 123 140 141"},F:{"89":0.18737,"90":0.00367,"117":0.00367,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00367,"13":0.00367,"14":0.0147,"15":0.01102,"17":0.02572,"18":0.00735,"85":0.00367,"89":0.0992,"92":0.04041,"100":0.00367,"112":0.01837,"114":0.00367,"119":0.00367,"120":0.00367,"122":0.00367,"124":0.13226,"126":0.00367,"128":0.04041,"129":0.02204,"130":0.01837,"131":0.02939,"132":0.04409,"133":0.06613,"134":0.05144,"135":0.14329,"136":0.94789,"137":6.88508,"138":0.28657,_:"16 79 80 81 83 84 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 113 115 116 117 118 121 123 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.6 17.0 17.1 17.3 26.0","12.1":0.00367,"13.1":0.01837,"14.1":0.01102,"15.6":0.03674,"16.0":0.02572,"16.4":0.01102,"16.5":0.01102,"17.2":0.04041,"17.4":0.04409,"17.5":0.00367,"17.6":0.04409,"18.0":0.00735,"18.1":0.00367,"18.2":0.21677,"18.3":0.0147,"18.4":0.00735,"18.5":0.37842},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00128,"5.0-5.1":0,"6.0-6.1":0.00257,"7.0-7.1":0.00257,"8.1-8.4":0,"9.0-9.2":0.00128,"9.3":0.0077,"10.0-10.2":0.00064,"10.3":0.01283,"11.0-11.2":0.08209,"11.3-11.4":0.00449,"12.0-12.1":0.00128,"12.2-12.5":0.04297,"13.0-13.1":0.00064,"13.2":0.00192,"13.3":0.00128,"13.4-13.7":0.00705,"14.0-14.4":0.01668,"14.5-14.8":0.01668,"15.0-15.1":0.01154,"15.2-15.3":0.01154,"15.4":0.01411,"15.5":0.01539,"15.6-15.8":0.19882,"16.0":0.0263,"16.1":0.05387,"16.2":0.02758,"16.3":0.05067,"16.4":0.01154,"16.5":0.02052,"16.6-16.7":0.24949,"17.0":0.01347,"17.1":0.02373,"17.2":0.0186,"17.3":0.0263,"17.4":0.04682,"17.5":0.09813,"17.6-17.7":0.25654,"18.0":0.06349,"18.1":0.14302,"18.2":0.07568,"18.3":0.32517,"18.4":0.34505,"18.5":4.04503,"26.0":0},P:{"21":0.01018,"22":0.03055,"23":0.18332,"24":0.10185,"25":0.12222,"26":0.18332,"27":1.58881,"28":0.93699,_:"4 20 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.02037,"9.2":0.01018},I:{"0":0.02526,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.48638,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.10287,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.47412},R:{_:"0"},M:{"0":0.11385},Q:{"14.9":1.5686},O:{"0":1.1638},H:{"0":0}}; +module.exports={C:{"115":0.02459,"116":0.00307,"121":0.00922,"122":0.02767,"124":0.00922,"125":0.21211,"126":0.26744,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 117 118 119 120 123 127 128 129 3.5 3.6"},D:{"11":0.00307,"41":0.00307,"49":0.00307,"50":0.00307,"53":0.07992,"55":0.00307,"56":0.05841,"61":0.0123,"67":0.00307,"69":0.00307,"70":0.00615,"71":0.00615,"81":0.00307,"87":0.00307,"89":0.02459,"90":0.0123,"92":0.00615,"94":0.01537,"95":0.00615,"99":0.00307,"100":0.00307,"102":0.01844,"103":0.00615,"104":0.00615,"105":0.02767,"106":0.00307,"108":1.04516,"109":0.18751,"111":0.00307,"112":0.00922,"113":0.9929,"114":0.00615,"116":0.01844,"117":0.00615,"118":0.00922,"119":0.01844,"120":0.0123,"121":0.05533,"122":0.10144,"123":0.42114,"124":12.64029,"125":3.05863,"126":0.00307,_:"4 5 6 7 8 9 10 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 42 43 44 45 46 47 48 51 52 54 57 58 59 60 62 63 64 65 66 68 72 73 74 75 76 77 78 79 80 83 84 85 86 88 91 93 96 97 98 101 107 110 115 127 128"},F:{"95":0.01537,"102":0.00615,"107":0.00922,"108":0.0123,"109":0.08915,"110":0.00615,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00922,"13":0.00307,"14":0.00307,"15":0.01844,"16":0.0123,"17":0.00922,"18":0.01537,"81":0.00307,"84":0.00615,"90":0.00307,"92":0.04918,"94":0.00307,"96":0.00307,"100":0.00615,"103":0.00615,"107":0.00615,"108":0.00922,"109":0.09529,"111":0.00307,"112":0.00307,"113":0.00615,"114":0.00307,"115":0.03381,"117":0.0123,"118":0.01537,"119":0.03074,"120":0.0123,"121":0.02767,"122":0.3904,"123":0.07992,"124":3.2984,"125":1.34334,_:"79 80 83 85 86 87 88 89 91 93 95 97 98 99 101 102 104 105 106 110 116"},E:{"13":0.00307,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 16.5 17.0 17.5 17.6","12.1":0.00922,"13.1":0.00922,"14.1":0.00922,"15.6":0.17522,"16.1":0.01537,"16.3":0.00307,"16.6":0.03074,"17.1":0.00307,"17.2":0.01844,"17.3":0.00922,"17.4":0.07378},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0.00111,"6.0-6.1":0.00278,"7.0-7.1":0.0039,"8.1-8.4":0.00111,"9.0-9.2":0.00278,"9.3":0.01281,"10.0-10.2":0.00223,"10.3":0.02005,"11.0-11.2":0.02951,"11.3-11.4":0.00557,"12.0-12.1":0.00334,"12.2-12.5":0.08074,"13.0-13.1":0.00167,"13.2":0.0078,"13.3":0.0039,"13.4-13.7":0.01782,"14.0-14.4":0.03063,"14.5-14.8":0.04733,"15.0-15.1":0.02283,"15.2-15.3":0.02506,"15.4":0.0284,"15.5":0.03564,"15.6-15.8":0.32075,"16.0":0.07295,"16.1":0.15035,"16.2":0.07295,"16.3":0.12641,"16.4":0.02673,"16.5":0.05401,"16.6-16.7":0.43045,"17.0":0.04678,"17.1":0.07629,"17.2":0.07963,"17.3":0.14701,"17.4":3.33832,"17.5":0.23555,"17.6":0},P:{"4":0.01031,"20":0.02061,"21":0.26798,"22":0.25767,"23":0.56688,"24":0.53596,"25":0.84516,_:"5.0-5.4 8.2 9.2 10.1 12.0","6.2-6.4":0.01031,"7.2-7.4":0.09276,"11.1-11.2":0.01031,"13.0":0.04123,"14.0":0.01031,"15.0":0.01031,"16.0":0.12368,"17.0":0.04123,"18.0":0.02061,"19.0":0.16491},I:{"0":0.11728,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00026},K:{"0":1.44909,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05841,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.44623},R:{_:"0"},M:{"0":0.09004},Q:{_:"14.9"},O:{"0":1.48909},H:{"0":0.04}}; diff --git a/node_modules/caniuse-lite/data/regions/SC.js b/node_modules/caniuse-lite/data/regions/SC.js index 91f566c54..34edd24b1 100644 --- a/node_modules/caniuse-lite/data/regions/SC.js +++ b/node_modules/caniuse-lite/data/regions/SC.js @@ -1 +1 @@ -module.exports={C:{"52":0.00637,"60":0.06369,"68":0.00637,"69":0.00637,"70":0.00637,"71":0.00637,"72":0.00637,"73":0.00637,"74":0.00637,"75":0.00637,"76":0.00637,"77":0.00637,"78":0.01911,"79":0.00637,"80":0.00637,"81":0.00637,"82":0.00637,"83":0.00637,"91":0.00637,"100":0.00637,"101":0.00637,"102":0.01274,"103":0.00637,"104":0.01274,"105":0.00637,"106":0.00637,"107":0.00637,"108":0.02548,"109":0.00637,"110":0.00637,"111":0.00637,"112":0.00637,"113":0.00637,"114":0.00637,"115":0.15286,"116":0.00637,"117":0.00637,"118":0.00637,"119":0.00637,"120":0.00637,"121":0.00637,"122":0.00637,"123":0.00637,"124":0.01911,"125":0.00637,"128":1.5413,"134":0.00637,"135":0.00637,"136":0.07006,"137":0.00637,"138":0.00637,"139":0.45857,"140":0.09554,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 126 127 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"45":0.6369,"59":0.00637,"66":0.00637,"68":1.19737,"69":0.78339,"70":0.80249,"71":0.80249,"72":1.16553,"73":0.39488,"74":1.21011,"75":0.76428,"76":0.78339,"77":0.78976,"78":1.21648,"79":1.1719,"80":1.59225,"81":1.191,"83":1.21011,"84":0.76428,"85":1.1719,"86":2.00624,"87":1.191,"88":1.57314,"89":1.19737,"90":1.58588,"91":0.38851,"98":0.00637,"101":0.05095,"103":0.00637,"104":0.01274,"105":0.02548,"106":0.00637,"107":0.01911,"108":0.03185,"109":0.15923,"110":0.01911,"111":0.01274,"112":0.05732,"113":0.01274,"114":0.03821,"115":0.05732,"116":0.99993,"117":0.04458,"118":0.87255,"119":0.06369,"120":0.50315,"121":0.66238,"122":0.31845,"123":0.36303,"124":0.3503,"125":0.49678,"126":0.74517,"127":0.49041,"128":0.31208,"129":0.32482,"130":0.40762,"131":0.42672,"132":0.06369,"133":0.09554,"134":0.07006,"135":0.75154,"136":0.65601,"137":5.26716,"138":0.24839,"139":0.07006,"140":0.00637,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 67 92 93 94 95 96 97 99 100 102 141"},F:{"45":0.00637,"46":0.01911,"47":0.02548,"48":0.02548,"49":0.04458,"50":0.01274,"51":0.02548,"52":0.02548,"53":0.1847,"54":0.21018,"55":0.26113,"56":0.04458,"57":0.01274,"58":0.00637,"60":0.03821,"62":0.02548,"63":0.02548,"64":0.01274,"65":0.03185,"66":0.03821,"67":0.06369,"68":0.05095,"69":0.01911,"70":0.02548,"71":0.01911,"72":0.02548,"73":0.05095,"74":0.02548,"75":0.05732,"76":0.04458,"77":0.01274,"99":0.00637,"100":0.01274,"101":0.01274,"102":0.01274,"103":0.01274,"104":0.01274,"105":0.01274,"106":0.01274,"107":0.00637,"108":0.00637,"109":0.01274,"110":0.01274,"111":0.01274,"112":0.01274,"113":0.01911,"114":0.01274,"115":0.00637,"116":0.00637,"117":0.00637,_:"9 11 12 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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"79":0.17833,"80":0.46494,"81":0.40762,"83":0.3694,"84":0.42672,"85":0.24839,"86":0.35666,"87":0.27387,"88":0.27387,"89":0.3503,"90":0.29297,"91":0.03821,"92":0.01274,"96":0.12101,"100":0.00637,"109":0.02548,"115":0.02548,"118":0.00637,"119":0.02548,"120":0.09554,"121":0.03821,"122":0.05095,"123":0.05095,"124":0.07006,"125":0.03185,"126":0.06369,"127":0.04458,"128":0.05095,"129":0.05732,"130":0.06369,"131":0.06369,"132":0.05095,"133":0.00637,"134":0.05732,"135":0.03185,"136":0.20381,"137":1.84701,"138":0.11464,_:"12 13 14 15 16 17 18 93 94 95 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 13.1 17.0","9.1":0.96809,"14.1":0.00637,"15.1":0.02548,"15.2-15.3":0.01274,"15.4":0.01274,"15.5":0.01274,"15.6":0.01911,"16.0":0.00637,"16.1":0.01274,"16.2":0.03185,"16.3":0.01274,"16.4":0.01911,"16.5":0.03821,"16.6":0.01911,"17.1":0.03185,"17.2":0.01274,"17.3":0.01274,"17.4":0.03185,"17.5":0.01911,"17.6":0.04458,"18.0":0.00637,"18.1":0.01911,"18.2":0.01274,"18.3":0.05732,"18.4":0.02548,"18.5":0.32482,"26.0":0.00637},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0011,"5.0-5.1":0,"6.0-6.1":0.00221,"7.0-7.1":0.00221,"8.1-8.4":0,"9.0-9.2":0.0011,"9.3":0.00662,"10.0-10.2":0.00055,"10.3":0.01103,"11.0-11.2":0.0706,"11.3-11.4":0.00386,"12.0-12.1":0.0011,"12.2-12.5":0.03695,"13.0-13.1":0.00055,"13.2":0.00165,"13.3":0.0011,"13.4-13.7":0.00607,"14.0-14.4":0.01434,"14.5-14.8":0.01434,"15.0-15.1":0.00993,"15.2-15.3":0.00993,"15.4":0.01213,"15.5":0.01324,"15.6-15.8":0.17098,"16.0":0.02261,"16.1":0.04633,"16.2":0.02372,"16.3":0.04357,"16.4":0.00993,"16.5":0.01765,"16.6-16.7":0.21455,"17.0":0.01158,"17.1":0.02041,"17.2":0.01599,"17.3":0.02261,"17.4":0.04026,"17.5":0.08439,"17.6-17.7":0.22062,"18.0":0.0546,"18.1":0.123,"18.2":0.06508,"18.3":0.27964,"18.4":0.29673,"18.5":3.47862,"26.0":0},P:{"21":0.02157,"22":0.02157,"23":0.04314,"24":0.01079,"26":0.01079,"27":0.03236,"28":0.51774,_:"4 20 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.06472,"13.0":0.01079},I:{"0":0.03987,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.51923,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.40125,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":33.52029},R:{_:"0"},M:{"0":1.0893},Q:{"14.9":0.21786},O:{"0":0.41393},H:{"0":0}}; +module.exports={C:{"52":0.02064,"60":0.00516,"65":0.00516,"68":0.00516,"69":0.00516,"70":0.00516,"71":0.00516,"72":0.01032,"73":0.00516,"74":0.00516,"75":0.00516,"76":0.00516,"77":0.00516,"78":0.01032,"79":0.00516,"80":0.00516,"81":0.00516,"82":0.00516,"83":0.00516,"88":0.01032,"91":0.00516,"97":0.00516,"100":0.01032,"102":0.02064,"104":0.03611,"105":0.00516,"108":0.00516,"110":0.0877,"113":0.00516,"115":1.3207,"117":0.00516,"118":0.00516,"119":0.01032,"121":0.01032,"122":0.01548,"123":0.07223,"124":1.19173,"125":0.59844,"126":0.25795,"127":0.00516,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 66 67 84 85 86 87 89 90 92 93 94 95 96 98 99 101 103 106 107 109 111 112 114 116 120 128 129 3.5 3.6"},D:{"41":0.00516,"45":9.00246,"68":0.04127,"69":0.04643,"70":0.03611,"71":0.03095,"72":0.05675,"73":0.01548,"74":0.04643,"75":0.03611,"76":0.03611,"77":0.47463,"78":0.06707,"79":0.04127,"80":0.07223,"81":0.05675,"83":0.05675,"84":0.03611,"85":0.05159,"86":0.10834,"87":0.1135,"88":0.11866,"89":0.06707,"90":0.07739,"91":0.02064,"92":0.03611,"94":0.00516,"95":0.00516,"98":0.00516,"99":0.00516,"100":0.00516,"101":0.01032,"102":0.09802,"103":0.05159,"104":0.00516,"105":0.04643,"106":0.01032,"107":0.0258,"108":0.01548,"109":0.64488,"110":0.00516,"111":0.02064,"112":0.0258,"113":0.03611,"114":0.24247,"115":0.18057,"116":1.12982,"117":0.02064,"118":0.13413,"119":0.05675,"120":3.55971,"121":0.6294,"122":0.63456,"123":4.33356,"124":9.6886,"125":3.47717,"126":0.01032,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 93 96 97 127 128"},F:{"28":0.00516,"46":0.00516,"49":0.00516,"52":0.00516,"53":0.01548,"54":0.0258,"55":0.02064,"56":0.00516,"60":0.00516,"62":0.00516,"65":0.00516,"66":0.00516,"67":0.00516,"68":0.00516,"71":0.00516,"73":0.00516,"74":0.00516,"75":0.00516,"76":0.00516,"79":0.04643,"89":0.00516,"93":0.01032,"95":0.00516,"106":0.00516,"107":0.10318,"108":0.04643,"109":0.26311,"110":0.00516,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 50 51 57 58 63 64 69 70 72 77 78 80 81 82 83 84 85 86 87 88 90 91 92 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00516,"18":0.02064,"79":0.01548,"80":0.03095,"81":0.03095,"83":0.03611,"84":0.04127,"85":0.01032,"86":0.03095,"87":0.0258,"88":0.0258,"89":0.0258,"90":0.0258,"91":0.00516,"92":0.01032,"95":0.00516,"104":0.00516,"109":0.01032,"113":0.00516,"120":0.01032,"121":0.03611,"122":0.09802,"123":0.36629,"124":1.93978,"125":0.7429,_:"12 13 15 16 17 93 94 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 114 115 116 117 118 119"},E:{"14":0.01032,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 14.1 17.6","9.1":0.2889,"12.1":0.00516,"13.1":0.04127,"15.1":0.06707,"15.2-15.3":0.04643,"15.4":0.00516,"15.5":0.02064,"15.6":0.0258,"16.0":0.00516,"16.1":0.00516,"16.2":0.01032,"16.3":0.0258,"16.4":0.00516,"16.5":0.88219,"16.6":0.07739,"17.0":0.05675,"17.1":0.0258,"17.2":0.01548,"17.3":0.04643,"17.4":0.73258,"17.5":0.0877},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00176,"5.0-5.1":0.00176,"6.0-6.1":0.00439,"7.0-7.1":0.00614,"8.1-8.4":0.00176,"9.0-9.2":0.00439,"9.3":0.02019,"10.0-10.2":0.00351,"10.3":0.0316,"11.0-11.2":0.04652,"11.3-11.4":0.00878,"12.0-12.1":0.00527,"12.2-12.5":0.12726,"13.0-13.1":0.00263,"13.2":0.01229,"13.3":0.00614,"13.4-13.7":0.02809,"14.0-14.4":0.04827,"14.5-14.8":0.0746,"15.0-15.1":0.03598,"15.2-15.3":0.0395,"15.4":0.04476,"15.5":0.05617,"15.6-15.8":0.50554,"16.0":0.11498,"16.1":0.23697,"16.2":0.11498,"16.3":0.19923,"16.4":0.04213,"16.5":0.08513,"16.6-16.7":0.67844,"17.0":0.07372,"17.1":0.12024,"17.2":0.12551,"17.3":0.23171,"17.4":5.26165,"17.5":0.37126,"17.6":0},P:{"4":0.03101,"20":0.01034,"21":0.01034,"22":0.03101,"23":0.2274,"24":0.23773,"25":1.55043,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0","7.2-7.4":0.02067,"15.0":0.04134,"18.0":0.01034,"19.0":0.08269},I:{"0":0.01929,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.8199,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02708,"11":0.08125,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.98126},R:{_:"0"},M:{"0":1.33612},Q:{"14.9":0.09198},O:{"0":0.85686},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/SD.js b/node_modules/caniuse-lite/data/regions/SD.js index 9e7136fb1..35b038933 100644 --- a/node_modules/caniuse-lite/data/regions/SD.js +++ b/node_modules/caniuse-lite/data/regions/SD.js @@ -1 +1 @@ -module.exports={C:{"42":0.00159,"44":0.00318,"47":0.00159,"49":0.00159,"52":0.00159,"53":0.00159,"57":0.00159,"66":0.00159,"68":0.00159,"72":0.00318,"78":0.00159,"81":0.00159,"89":0.00318,"107":0.00318,"108":0.00159,"111":0.00159,"112":0.00318,"115":0.116,"127":0.00636,"128":0.01112,"133":0.00477,"134":0.00159,"135":0.00318,"136":0.05879,"137":0.00636,"138":0.03496,"139":0.30191,"140":0.03178,"141":0.00477,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 45 46 48 50 51 54 55 56 58 59 60 61 62 63 64 65 67 69 70 71 73 74 75 76 77 79 80 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 109 110 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 142 143 3.5 3.6"},D:{"29":0.00159,"37":0.11282,"40":0.00159,"43":0.00953,"44":0.00159,"47":0.00159,"48":0.00159,"50":0.00318,"55":0.00159,"58":0.08263,"60":0.00159,"61":0.00159,"63":0.00159,"64":0.00159,"67":0.00159,"68":0.00636,"69":0.00159,"70":0.01907,"71":0.00636,"72":0.00477,"73":0.00159,"74":0.00159,"76":0.00159,"78":0.02225,"79":0.02384,"80":0.00477,"81":0.00159,"83":0.00159,"84":0.00159,"85":0.00159,"86":0.00159,"87":0.01112,"88":0.00636,"89":0.00318,"90":0.00318,"91":0.00953,"92":0.00477,"93":0.00159,"98":0.00159,"99":0.00477,"101":0.00159,"102":0.00159,"103":0.00477,"104":0.00318,"105":0.00318,"106":0.00159,"107":0.00477,"108":0.00318,"109":0.10805,"110":0.00318,"111":0.02384,"114":0.00795,"115":0.00159,"116":0.01271,"117":0.00159,"118":0.00159,"119":0.00318,"120":0.0143,"121":0.00159,"122":0.00477,"123":0.00636,"124":0.00318,"125":0.02066,"126":0.02225,"127":0.01907,"128":0.00159,"129":0.00477,"130":0.00636,"131":0.03019,"132":0.00636,"133":0.01271,"134":0.02225,"135":0.04449,"136":0.46558,"137":0.82946,"138":0.0286,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 38 39 41 42 45 46 49 51 52 53 54 56 57 59 62 65 66 75 77 94 95 96 97 100 112 113 139 140 141"},F:{"35":0.00159,"79":0.00953,"81":0.00159,"84":0.00159,"85":0.00318,"86":0.00795,"87":0.02542,"88":0.04608,"89":0.36229,"90":0.37659,"91":0.00159,"95":0.00636,"106":0.00159,"113":0.00159,"114":0.00159,"117":0.00159,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 82 83 92 93 94 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00318,"13":0.00159,"14":0.00318,"15":0.00159,"17":0.00159,"18":0.00795,"84":0.00318,"89":0.00318,"90":0.00477,"92":0.04767,"100":0.00636,"109":0.00477,"112":0.00159,"120":0.00159,"122":0.00477,"124":0.00159,"127":0.00159,"128":0.00318,"129":0.00159,"131":0.00318,"132":0.00953,"133":0.00636,"134":0.00318,"135":0.0143,"136":0.1303,"137":0.25583,"138":0.03337,_:"16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 119 121 123 125 126 130"},E:{"7":0.01271,"13":0.00636,_:"0 4 5 6 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.4 26.0","5.1":0.03337,"15.6":0.00477,"16.6":0.00159,"17.6":0.00159,"18.2":0.00477,"18.3":0.00159,"18.5":0.00318},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00024,"5.0-5.1":0,"6.0-6.1":0.00049,"7.0-7.1":0.00049,"8.1-8.4":0,"9.0-9.2":0.00024,"9.3":0.00146,"10.0-10.2":0.00012,"10.3":0.00244,"11.0-11.2":0.01561,"11.3-11.4":0.00085,"12.0-12.1":0.00024,"12.2-12.5":0.00817,"13.0-13.1":0.00012,"13.2":0.00037,"13.3":0.00024,"13.4-13.7":0.00134,"14.0-14.4":0.00317,"14.5-14.8":0.00317,"15.0-15.1":0.0022,"15.2-15.3":0.0022,"15.4":0.00268,"15.5":0.00293,"15.6-15.8":0.03781,"16.0":0.005,"16.1":0.01024,"16.2":0.00524,"16.3":0.00963,"16.4":0.0022,"16.5":0.0039,"16.6-16.7":0.04744,"17.0":0.00256,"17.1":0.00451,"17.2":0.00354,"17.3":0.005,"17.4":0.0089,"17.5":0.01866,"17.6-17.7":0.04878,"18.0":0.01207,"18.1":0.0272,"18.2":0.01439,"18.3":0.06183,"18.4":0.06561,"18.5":0.7692,"26.0":0},P:{"4":0.21239,"20":0.04046,"21":0.0708,"22":0.15171,"23":0.10114,"24":0.16182,"25":0.19216,"26":0.32364,"27":0.64729,"28":0.69785,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.03034,"7.2-7.4":0.30342,"9.2":0.02023,"11.1-11.2":0.04046,"13.0":0.01011,"14.0":0.05057,"15.0":0.01011,"16.0":0.09102,"17.0":0.04046,"18.0":0.03034,"19.0":0.0708},I:{"0":0.06717,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":6.58916,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01271,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00841,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":82.42693},R:{_:"0"},M:{"0":0.20186},Q:{_:"14.9"},O:{"0":0.70652},H:{"0":0.72}}; +module.exports={C:{"34":0.00285,"36":0.00107,"40":0.00142,"44":0.00214,"45":0.0032,"46":0.00107,"47":0.00071,"48":0.00178,"49":0.00142,"52":0.00712,"54":0.00036,"55":0.00107,"56":0.00107,"57":0.00285,"59":0.00107,"60":0.00036,"63":0.00107,"65":0.00071,"66":0.00036,"69":0.00285,"71":0.00036,"72":0.00356,"74":0.00178,"76":0.00036,"77":0.00036,"78":0.00214,"79":0.00036,"80":0.00071,"81":0.00036,"83":0.00036,"84":0.00214,"89":0.00178,"90":0.00036,"91":0.00142,"93":0.00214,"94":0.00036,"102":0.00178,"107":0.00142,"108":0.00107,"109":0.00178,"110":0.00071,"111":0.00178,"112":0.00071,"113":0.00249,"114":0.00071,"115":0.10644,"116":0.00071,"117":0.00071,"119":0.00036,"120":0.00071,"121":0.00926,"122":0.00107,"123":0.00427,"124":0.00463,"125":0.15308,"126":0.11143,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 41 42 43 50 51 53 58 61 62 64 67 68 70 73 75 82 85 86 87 88 92 95 96 97 98 99 100 101 103 104 105 106 118 127 128 129 3.5 3.6"},D:{"11":0.00107,"19":0.00071,"24":0.00214,"27":0.00036,"29":0.00071,"31":0.00071,"32":0.00285,"33":0.00036,"34":0.00071,"35":0.00178,"37":0.00071,"38":0.00036,"40":0.00854,"41":0.00036,"43":0.00676,"46":0.00142,"47":0.00071,"48":0.00178,"49":0.00071,"50":0.0089,"52":0.00071,"53":0.00036,"54":0.00071,"56":0.00107,"57":0.0032,"58":0.11534,"60":0.00071,"61":0.01424,"62":0.00036,"63":0.00534,"64":0.00249,"65":0.00107,"66":0.00249,"67":0.00142,"68":0.01139,"69":0.00463,"70":0.01958,"71":0.00142,"72":0.00427,"73":0.00036,"74":0.00534,"75":0.00036,"76":0.00071,"77":0.00036,"78":0.07583,"79":0.01495,"80":0.00178,"81":0.00498,"83":0.00463,"84":0.00214,"85":0.00427,"86":0.00249,"87":0.0121,"88":0.00961,"89":0.00178,"90":0.00071,"91":0.00071,"92":0.0032,"93":0.00463,"94":0.00107,"95":0.00036,"96":0.00142,"97":0.00071,"98":0.0032,"99":0.01744,"100":0.00142,"101":0.00071,"102":0.00142,"103":0.01032,"104":0.03311,"105":0.00178,"106":0.00534,"107":0.00356,"108":0.01032,"109":0.15415,"110":0.00178,"111":0.01709,"112":0.0032,"113":0.00427,"114":0.00427,"115":0.00214,"116":0.0057,"117":0.01638,"118":0.00427,"119":0.01353,"120":0.03916,"121":0.03845,"122":0.01816,"123":0.04058,"124":0.50125,"125":0.22642,"126":0.00036,"127":0.00036,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 20 21 22 23 25 26 28 30 36 39 42 44 45 51 55 59 128"},F:{"29":0.00071,"35":0.00036,"37":0.00071,"39":0.00142,"42":0.00036,"49":0.00036,"55":0.00071,"64":0.00036,"68":0.00036,"71":0.00071,"73":0.00036,"74":0.00071,"77":0.00036,"79":0.00605,"82":0.00178,"84":0.00107,"85":0.00036,"86":0.00249,"87":0.00036,"94":0.00071,"95":0.00997,"96":0.00036,"98":0.00071,"101":0.00071,"104":0.00036,"107":0.00641,"108":0.0057,"109":0.07512,"110":0.00854,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 36 38 40 41 43 44 45 46 47 48 50 51 52 53 54 56 57 58 60 62 63 65 66 67 69 70 72 75 76 78 80 81 83 88 89 90 91 92 93 97 99 100 102 103 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00107,"13":0.00249,"14":0.00142,"15":0.00071,"16":0.00142,"17":0.01816,"18":0.0057,"84":0.00641,"89":0.00356,"90":0.00214,"92":0.02065,"94":0.00071,"96":0.00036,"97":0.00214,"100":0.00249,"101":0.00071,"107":0.00036,"108":0.00178,"109":0.00427,"110":0.00178,"111":0.00285,"112":0.00854,"113":0.00071,"114":0.00142,"115":0.00036,"116":0.00036,"117":0.00107,"118":0.00214,"119":0.00178,"120":0.00961,"121":0.00712,"122":0.00392,"123":0.0146,"124":0.16518,"125":0.08686,_:"79 80 81 83 85 86 87 88 91 93 95 98 99 102 103 104 105 106"},E:{"13":0.00071,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 16.2 16.3 16.4 16.5 17.0 17.1 17.6","5.1":0.05732,"13.1":0.00107,"15.4":0.0032,"15.5":0.00071,"15.6":0.00214,"16.0":0.00107,"16.1":0.00107,"16.6":0.00071,"17.2":0.00036,"17.3":0.00107,"17.4":0.00214,"17.5":0.00214},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00035,"5.0-5.1":0.00035,"6.0-6.1":0.00088,"7.0-7.1":0.00124,"8.1-8.4":0.00035,"9.0-9.2":0.00088,"9.3":0.00406,"10.0-10.2":0.00071,"10.3":0.00635,"11.0-11.2":0.00935,"11.3-11.4":0.00176,"12.0-12.1":0.00106,"12.2-12.5":0.02559,"13.0-13.1":0.00053,"13.2":0.00247,"13.3":0.00124,"13.4-13.7":0.00565,"14.0-14.4":0.00971,"14.5-14.8":0.015,"15.0-15.1":0.00724,"15.2-15.3":0.00794,"15.4":0.009,"15.5":0.0113,"15.6-15.8":0.10166,"16.0":0.02312,"16.1":0.04765,"16.2":0.02312,"16.3":0.04006,"16.4":0.00847,"16.5":0.01712,"16.6-16.7":0.13642,"17.0":0.01482,"17.1":0.02418,"17.2":0.02524,"17.3":0.04659,"17.4":1.05803,"17.5":0.07465,"17.6":0},P:{"4":0.41214,"20":0.15078,"21":0.35182,"22":0.59307,"23":0.44229,"24":0.45234,"25":0.38198,"5.0-5.4":0.03016,"6.2-6.4":0.06031,"7.2-7.4":0.5026,_:"8.2 10.1 12.0","9.2":0.04021,"11.1-11.2":0.06031,"13.0":0.04021,"14.0":0.15078,"15.0":0.03016,"16.0":0.2513,"17.0":0.08042,"18.0":0.17089,"19.0":0.31162},I:{"0":0.20173,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00012,"4.4":0,"4.4.3-4.4.4":0.00045},K:{"0":16.48014,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00036,"9":0.00178,"11":0.0146,_:"6 8 10 5.5"},S:{"2.5":0.01929,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.20482},R:{_:"0"},M:{"0":0.11573},Q:{_:"14.9"},O:{"0":0.93547},H:{"0":2.75}}; diff --git a/node_modules/caniuse-lite/data/regions/SE.js b/node_modules/caniuse-lite/data/regions/SE.js index 02fda957e..e4c8da4f8 100644 --- a/node_modules/caniuse-lite/data/regions/SE.js +++ b/node_modules/caniuse-lite/data/regions/SE.js @@ -1 +1 @@ -module.exports={C:{"52":0.02303,"59":0.10131,"60":0.00921,"78":0.00921,"84":0.00921,"100":0.00461,"101":0.00921,"102":0.00461,"113":0.00921,"115":0.15197,"121":0.00461,"122":0.01382,"123":0.03684,"124":0.00461,"125":0.00461,"128":0.34077,"132":0.00461,"133":0.00461,"134":0.00461,"135":0.00461,"136":0.02303,"137":0.02303,"138":0.0875,"139":1.42295,"140":0.19341,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 126 127 129 130 131 141 142 143 3.5 3.6"},D:{"41":0.00461,"42":0.00461,"48":0.00461,"49":0.03224,"52":0.00461,"55":0.00461,"56":0.00461,"58":0.00461,"63":0.00461,"65":0.00461,"66":0.03224,"74":0.04145,"79":0.04145,"80":0.00461,"81":0.00461,"85":0.00461,"87":0.02763,"88":0.01842,"89":0.00461,"90":0.00461,"91":0.00461,"92":0.00461,"93":0.00921,"96":0.00461,"98":0.00461,"99":0.00461,"100":0.00461,"101":0.04145,"102":0.01382,"103":0.13815,"104":0.00461,"105":0.00461,"106":0.02763,"107":0.00461,"108":0.01842,"109":0.40524,"110":0.00461,"111":0.00461,"112":0.00461,"113":0.02303,"114":0.02303,"115":0.00921,"116":0.19341,"117":0.01382,"118":0.22565,"119":0.02763,"120":0.02763,"121":0.04605,"122":0.07829,"123":0.02763,"124":0.04145,"125":0.09671,"126":0.26249,"127":0.01842,"128":0.15657,"129":0.02763,"130":0.04145,"131":0.44208,"132":0.29933,"133":0.37301,"134":0.29472,"135":0.69536,"136":5.27733,"137":19.13838,"138":0.60786,"139":0.00461,"140":0.00461,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 43 44 45 46 47 50 51 53 54 57 59 60 61 62 64 67 68 69 70 71 72 73 75 76 77 78 83 84 86 94 95 97 141"},F:{"46":0.00461,"86":0.00461,"89":0.00921,"90":0.00461,"95":0.01842,"102":0.00461,"116":0.00461,"117":0.00461,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00461,"92":0.00461,"102":0.01382,"107":0.00461,"109":0.05526,"119":0.00461,"121":0.00921,"122":0.01842,"124":0.00461,"125":0.00461,"126":0.00461,"127":0.00461,"128":0.00461,"129":0.00921,"130":0.00921,"131":0.02763,"132":0.02303,"133":0.00921,"134":0.23025,"135":0.06908,"136":0.97166,"137":4.72013,"138":0.42366,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 108 110 111 112 113 114 115 116 117 118 120 123"},E:{"14":0.01842,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.0","11.1":0.00921,"12.1":0.00461,"13.1":0.05066,"14.1":0.05066,"15.1":0.00461,"15.2-15.3":0.00461,"15.4":0.02303,"15.5":0.01842,"15.6":0.23486,"16.0":0.03224,"16.1":0.02763,"16.2":0.01842,"16.3":0.05987,"16.4":0.02303,"16.5":0.02763,"16.6":0.33617,"17.0":0.01382,"17.1":0.23025,"17.2":0.03224,"17.3":0.03684,"17.4":0.05526,"17.5":0.0921,"17.6":0.26709,"18.0":0.02763,"18.1":0.06447,"18.2":0.02303,"18.3":0.16118,"18.4":0.17039,"18.5":1.76372},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00521,"5.0-5.1":0,"6.0-6.1":0.01042,"7.0-7.1":0.01042,"8.1-8.4":0,"9.0-9.2":0.00521,"9.3":0.03125,"10.0-10.2":0.0026,"10.3":0.05208,"11.0-11.2":0.33333,"11.3-11.4":0.01823,"12.0-12.1":0.00521,"12.2-12.5":0.17448,"13.0-13.1":0.0026,"13.2":0.00781,"13.3":0.00521,"13.4-13.7":0.02865,"14.0-14.4":0.06771,"14.5-14.8":0.06771,"15.0-15.1":0.04687,"15.2-15.3":0.04687,"15.4":0.05729,"15.5":0.0625,"15.6-15.8":0.80727,"16.0":0.10677,"16.1":0.21875,"16.2":0.11198,"16.3":0.20572,"16.4":0.04687,"16.5":0.08333,"16.6-16.7":1.013,"17.0":0.05469,"17.1":0.09635,"17.2":0.07552,"17.3":0.10677,"17.4":0.1901,"17.5":0.39843,"17.6-17.7":1.04164,"18.0":0.25781,"18.1":0.58072,"18.2":0.30728,"18.3":1.32028,"18.4":1.40101,"18.5":16.42412,"26.0":0},P:{"4":0.04181,"20":0.01045,"21":0.0209,"22":0.0209,"23":0.0209,"24":0.0209,"25":0.0209,"26":0.06271,"27":0.14632,"28":4.07612,"5.0-5.4":0.01045,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01045,"19.0":0.01045},I:{"0":0.06464,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.16728,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01382,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.16753},R:{_:"0"},M:{"0":0.59896},Q:{_:"14.9"},O:{"0":0.01619},H:{"0":0}}; +module.exports={C:{"52":0.01096,"56":0.00548,"59":0.01645,"78":0.01645,"88":0.01096,"91":0.01096,"102":0.00548,"103":0.00548,"108":0.00548,"113":0.01096,"115":0.27958,"121":0.01096,"122":0.00548,"123":0.01645,"124":0.04934,"125":0.9429,"126":0.74555,"127":0.01645,"128":0.01096,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 104 105 106 107 109 110 111 112 114 116 117 118 119 120 129 3.5 3.6"},D:{"38":0.00548,"49":0.01096,"52":0.00548,"63":0.00548,"66":0.05482,"68":0.00548,"74":0.00548,"75":0.00548,"76":0.01096,"77":0.01096,"79":0.02741,"80":0.00548,"81":0.00548,"83":0.00548,"84":0.00548,"85":0.01096,"86":0.03289,"87":0.02741,"88":0.02193,"89":0.02193,"90":0.00548,"91":0.00548,"92":0.00548,"93":0.13705,"94":0.00548,"95":0.00548,"96":0.00548,"98":0.00548,"99":0.00548,"100":0.03837,"101":0.06578,"102":0.04386,"103":0.44404,"104":0.04934,"105":0.01096,"106":0.00548,"107":0.01645,"108":0.01645,"109":1.20056,"110":0.01096,"111":0.01645,"112":0.02193,"113":0.17542,"114":0.19187,"115":0.03289,"116":0.31796,"117":0.04386,"118":0.15898,"119":0.2138,"120":0.24121,"121":0.36729,"122":0.74007,"123":4.59392,"124":22.61325,"125":5.72869,"126":0.00548,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 64 65 67 69 70 71 72 73 78 97 127 128"},F:{"95":0.02193,"102":0.00548,"107":0.27958,"108":0.01096,"109":0.83326,"110":0.02741,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00548,"18":0.00548,"92":0.00548,"109":0.08223,"110":0.00548,"112":0.02741,"113":0.00548,"114":0.00548,"117":0.00548,"118":0.00548,"119":0.02741,"120":0.02193,"121":0.03289,"122":0.08223,"123":0.35633,"124":5.34495,"125":2.51076,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 115 116"},E:{"13":0.00548,"14":0.02741,"15":0.00548,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00548,"11.1":0.01645,"12.1":0.01096,"13.1":0.05482,"14.1":0.10964,"15.1":0.01096,"15.2-15.3":0.01645,"15.4":0.02741,"15.5":0.04386,"15.6":0.40567,"16.0":0.04934,"16.1":0.06578,"16.2":0.04934,"16.3":0.14801,"16.4":0.03837,"16.5":0.07675,"16.6":0.50983,"17.0":0.06578,"17.1":0.08771,"17.2":0.09868,"17.3":0.11512,"17.4":1.98997,"17.5":0.30151},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00451,"5.0-5.1":0.00451,"6.0-6.1":0.01127,"7.0-7.1":0.01578,"8.1-8.4":0.00451,"9.0-9.2":0.01127,"9.3":0.05186,"10.0-10.2":0.00902,"10.3":0.08118,"11.0-11.2":0.11951,"11.3-11.4":0.02255,"12.0-12.1":0.01353,"12.2-12.5":0.32697,"13.0-13.1":0.00676,"13.2":0.03157,"13.3":0.01578,"13.4-13.7":0.07216,"14.0-14.4":0.12402,"14.5-14.8":0.19167,"15.0-15.1":0.09245,"15.2-15.3":0.10147,"15.4":0.115,"15.5":0.14432,"15.6-15.8":1.29884,"16.0":0.2954,"16.1":0.60883,"16.2":0.2954,"16.3":0.51187,"16.4":0.10824,"16.5":0.21873,"16.6-16.7":1.74306,"17.0":0.18941,"17.1":0.30893,"17.2":0.32246,"17.3":0.5953,"17.4":13.51833,"17.5":0.95384,"17.6":0},P:{"4":0.05278,"20":0.01056,"21":0.04222,"22":0.04222,"23":0.08444,"24":0.22166,"25":3.03997,"5.0-5.4":0.01056,_:"6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0","16.0":0.02111,"17.0":0.01056,"19.0":0.01056},I:{"0":0.08551,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.1762,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04386,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":18.50183},R:{_:"0"},M:{"0":0.38403},Q:{_:"14.9"},O:{"0":0.01807},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SG.js b/node_modules/caniuse-lite/data/regions/SG.js index 4161b680f..ce03962ec 100644 --- a/node_modules/caniuse-lite/data/regions/SG.js +++ b/node_modules/caniuse-lite/data/regions/SG.js @@ -1 +1 @@ -module.exports={C:{"72":0.0037,"78":0.02222,"102":0.0037,"112":0.0037,"115":0.03704,"117":0.0037,"118":0.0037,"122":0.24076,"124":0.01852,"125":0.03704,"128":0.01852,"129":0.0037,"132":0.01482,"133":0.0037,"134":0.04445,"135":0.00741,"136":0.04815,"137":0.01482,"138":0.03704,"139":0.70746,"140":0.10001,"141":0.0037,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 114 116 119 120 121 123 126 127 130 131 142 143 3.5 3.6"},D:{"41":0.0037,"48":0.0037,"49":0.0037,"71":0.00741,"78":0.00741,"79":0.02222,"80":0.00741,"81":0.01482,"83":0.0037,"84":0.0037,"86":0.01111,"87":0.01482,"90":0.00741,"91":0.00741,"92":0.03334,"93":0.0037,"94":0.00741,"95":0.00741,"96":0.0926,"97":0.17409,"98":0.1852,"99":0.17409,"100":0.1889,"101":0.19261,"102":0.1852,"103":0.20002,"104":0.23335,"105":0.39262,"106":0.20002,"107":0.23335,"108":0.21854,"109":0.47041,"110":0.1889,"111":0.1889,"112":0.20742,"113":0.17779,"114":0.21483,"115":0.1852,"116":0.21113,"117":0.1852,"118":0.1889,"119":0.19631,"120":0.21483,"121":0.21483,"122":1.08157,"123":0.03334,"124":0.57782,"125":0.0963,"126":0.05926,"127":0.04074,"128":0.10001,"129":0.03704,"130":0.05926,"131":0.48522,"132":0.29632,"133":0.35188,"134":4.01514,"135":0.20002,"136":2.15202,"137":10.42306,"138":0.38892,"139":0.02963,"140":0.0037,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 85 88 89 141"},F:{"79":0.0037,"86":0.0037,"89":0.07408,"90":0.04074,"95":0.02222,"102":0.0037,"113":0.0037,"114":0.01111,"115":0.0037,"116":0.0037,"117":0.0037,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0037,"100":0.0037,"101":0.0037,"103":0.0037,"104":0.0037,"105":0.0037,"106":0.0037,"107":0.00741,"108":0.00741,"109":0.02222,"110":0.00741,"111":0.01111,"112":0.00741,"113":0.00741,"114":0.01482,"115":0.00741,"116":0.00741,"117":0.01482,"118":0.00741,"119":0.0037,"120":0.00741,"121":0.24446,"122":0.00741,"123":0.0037,"124":0.00741,"125":0.03334,"126":0.02963,"127":0.02593,"128":0.01852,"129":0.01482,"130":0.02593,"131":0.03334,"132":0.02593,"133":0.02222,"134":0.02222,"135":0.03704,"136":0.35188,"137":1.84459,"138":0.14075,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 102"},E:{"8":0.00741,"14":0.0037,_:"0 4 5 6 7 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.0","13.1":0.00741,"14.1":0.01482,"15.4":0.0037,"15.5":0.0037,"15.6":0.04074,"16.0":0.03334,"16.1":0.01111,"16.2":0.0037,"16.3":0.01852,"16.4":0.01111,"16.5":0.01111,"16.6":0.08149,"17.0":0.24817,"17.1":0.04445,"17.2":0.00741,"17.3":0.00741,"17.4":0.03704,"17.5":0.02963,"17.6":0.08519,"18.0":0.01111,"18.1":0.02963,"18.2":0.01482,"18.3":0.05556,"18.4":0.07038,"18.5":0.7408},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00256,"5.0-5.1":0,"6.0-6.1":0.00511,"7.0-7.1":0.00511,"8.1-8.4":0,"9.0-9.2":0.00256,"9.3":0.01534,"10.0-10.2":0.00128,"10.3":0.02557,"11.0-11.2":0.16365,"11.3-11.4":0.00895,"12.0-12.1":0.00256,"12.2-12.5":0.08566,"13.0-13.1":0.00128,"13.2":0.00384,"13.3":0.00256,"13.4-13.7":0.01406,"14.0-14.4":0.03324,"14.5-14.8":0.03324,"15.0-15.1":0.02301,"15.2-15.3":0.02301,"15.4":0.02813,"15.5":0.03068,"15.6-15.8":0.39634,"16.0":0.05242,"16.1":0.1074,"16.2":0.05498,"16.3":0.101,"16.4":0.02301,"16.5":0.04091,"16.6-16.7":0.49734,"17.0":0.02685,"17.1":0.04731,"17.2":0.03708,"17.3":0.05242,"17.4":0.09333,"17.5":0.19561,"17.6-17.7":0.51141,"18.0":0.12657,"18.1":0.28511,"18.2":0.15086,"18.3":0.64821,"18.4":0.68784,"18.5":8.06359,"26.0":0},P:{"23":0.01047,"24":0.01047,"25":0.01047,"26":0.01047,"27":0.06284,"28":2.22024,_:"4 20 21 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01047},I:{"0":20.70676,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00415,"4.4":0,"4.4.3-4.4.4":0.01659},K:{"0":1.06386,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0156,"9":0.02339,"10":0.0078,"11":0.24953,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":26.00363},R:{_:"0"},M:{"0":0.80576},Q:{"14.9":0.05666},O:{"0":0.35882},H:{"0":0}}; +module.exports={C:{"2":0.0033,"3":0.0033,"4":0.0066,"5":0.0033,"7":0.0033,"10":0.0033,"12":0.0033,"14":0.0033,"16":0.0033,"19":0.0033,"20":0.0033,"25":0.0033,"28":0.0033,"31":0.0033,"34":0.0033,"35":0.0033,"36":0.0033,"38":0.0033,"40":0.0033,"44":0.0033,"48":0.0099,"49":0.0033,"52":0.0033,"54":0.0033,"55":0.0033,"68":0.0033,"72":0.0033,"74":0.0066,"78":0.0099,"83":0.0033,"88":0.0099,"101":0.0033,"102":0.0066,"103":0.03301,"104":0.0132,"105":0.0066,"106":0.0066,"107":0.0033,"108":0.0099,"109":0.0066,"110":0.0066,"111":0.0066,"112":0.0033,"113":0.0033,"115":0.10893,"117":0.0066,"118":0.0033,"119":0.0033,"121":0.0066,"122":0.0033,"123":0.0099,"124":0.01651,"125":0.647,"126":0.58098,"127":0.0033,"128":0.0033,_:"6 8 9 11 13 15 17 18 21 22 23 24 26 27 29 30 32 33 37 39 41 42 43 45 46 47 50 51 53 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 114 116 120 129","3.5":0.0033,"3.6":0.0066},D:{"4":0.0033,"5":0.0033,"7":0.0033,"9":0.0033,"10":0.0033,"11":0.0033,"13":0.0033,"15":0.0033,"16":0.0033,"19":0.0033,"20":0.0033,"32":0.0033,"34":0.01981,"36":0.0033,"38":0.07922,"39":0.0033,"41":0.0099,"43":0.0033,"45":0.0033,"47":0.01651,"48":0.0066,"49":0.0099,"51":0.0033,"52":0.0033,"53":0.02641,"55":0.0066,"56":0.01651,"57":0.0033,"61":0.0033,"62":0.0033,"63":0.0033,"65":0.0066,"66":0.0033,"67":0.0033,"68":0.0066,"69":0.0033,"70":0.0033,"71":0.0033,"72":0.0033,"73":0.0066,"74":0.0033,"75":0.0066,"76":0.0033,"77":0.0099,"78":0.01651,"79":0.15845,"80":0.01651,"81":0.01981,"83":0.0099,"84":0.0066,"85":0.0099,"86":0.07922,"87":0.12544,"88":0.0066,"89":0.02311,"90":0.0066,"91":0.0132,"92":0.03301,"93":0.0066,"94":0.06932,"95":0.03301,"96":0.0066,"97":0.0066,"98":0.0132,"99":0.02641,"100":0.07262,"101":0.12214,"102":0.07922,"103":0.11554,"104":0.17165,"105":0.51496,"106":0.04952,"107":0.07592,"108":0.06932,"109":0.72292,"110":0.08913,"111":0.05282,"112":0.04291,"113":0.10893,"114":0.55127,"115":0.01981,"116":0.12874,"117":0.02311,"118":0.04291,"119":0.09243,"120":0.13204,"121":0.13534,"122":0.27728,"123":0.76583,"124":11.96282,"125":4.21868,"126":0.01651,"127":0.0066,_:"6 8 12 14 17 18 21 22 23 24 25 26 27 28 29 30 31 33 35 37 40 42 44 46 50 54 58 59 60 64 128"},F:{"11":0.0033,"20":0.0033,"28":0.01651,"29":0.0033,"36":0.0066,"40":0.0033,"46":0.05942,"85":0.0033,"89":0.0033,"91":0.0033,"93":0.0033,"94":0.0033,"95":0.02971,"102":0.0033,"105":0.0033,"107":0.08583,"108":0.01651,"109":0.6536,"110":0.04621,_:"9 12 15 16 17 18 19 21 22 23 24 25 26 27 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 90 92 96 97 98 99 100 101 103 104 106 10.5 10.6 11.1 11.5 11.6","9.5-9.6":0.0033,"10.0-10.1":0.0033,"12.1":0.0033},B:{"12":0.0033,"92":0.0033,"105":0.0033,"106":0.0066,"107":0.0066,"108":0.0132,"109":0.03301,"110":0.0066,"111":0.0066,"112":0.01651,"113":0.0066,"114":0.0066,"115":0.0099,"116":0.0033,"117":0.0033,"118":0.0033,"119":0.0033,"120":0.01651,"121":0.0099,"122":0.04952,"123":0.09903,"124":1.87167,"125":1.05632,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104"},E:{"4":0.0033,"5":0.0066,"7":0.0033,"8":0.0066,"10":0.0033,"11":0.0033,"13":0.0099,"14":0.02311,"15":0.0099,_:"0 6 9 12 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.0033,"12.1":0.0033,"13.1":0.03301,"14.1":0.07262,"15.1":0.0099,"15.2-15.3":0.0066,"15.4":0.03631,"15.5":0.03301,"15.6":0.23437,"16.0":0.04952,"16.1":0.07262,"16.2":0.04621,"16.3":0.12544,"16.4":0.02971,"16.5":0.04952,"16.6":0.34991,"17.0":0.02311,"17.1":0.05942,"17.2":0.06932,"17.3":0.12214,"17.4":1.71982,"17.5":0.20466},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00317,"5.0-5.1":0.00317,"6.0-6.1":0.00791,"7.0-7.1":0.01108,"8.1-8.4":0.00317,"9.0-9.2":0.00791,"9.3":0.03641,"10.0-10.2":0.00633,"10.3":0.05699,"11.0-11.2":0.0839,"11.3-11.4":0.01583,"12.0-12.1":0.0095,"12.2-12.5":0.22953,"13.0-13.1":0.00475,"13.2":0.02216,"13.3":0.01108,"13.4-13.7":0.05066,"14.0-14.4":0.08706,"14.5-14.8":0.13455,"15.0-15.1":0.0649,"15.2-15.3":0.07123,"15.4":0.08073,"15.5":0.10131,"15.6-15.8":0.91179,"16.0":0.20737,"16.1":0.4274,"16.2":0.20737,"16.3":0.35934,"16.4":0.07598,"16.5":0.15355,"16.6-16.7":1.22364,"17.0":0.13297,"17.1":0.21687,"17.2":0.22637,"17.3":0.41791,"17.4":9.48993,"17.5":0.6696,"17.6":0},P:{"4":0.49392,"20":0.01051,"21":0.03153,"22":0.02102,"23":0.07356,"24":0.17865,"25":3.47843,"5.0-5.4":0.04204,"6.2-6.4":0.03153,_:"7.2-7.4 8.2 9.2 10.1 14.0 15.0","11.1-11.2":0.01051,"12.0":0.01051,"13.0":0.01051,"16.0":0.01051,"17.0":0.01051,"18.0":0.01051,"19.0":0.01051},I:{"0":14.1932,"3":0,"4":0.00142,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00285,"4.2-4.3":0.00855,"4.4":0,"4.4.3-4.4.4":0.03135},K:{"0":1.40009,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02636,"9":0.02109,"10":0.00527,"11":0.32162,_:"6 7","5.5":0.00527},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":29.17474},R:{_:"0"},M:{"0":0.73019},Q:{"14.9":0.04019},O:{"0":0.50912},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SH.js b/node_modules/caniuse-lite/data/regions/SH.js index a1f289d38..80053a3c3 100644 --- a/node_modules/caniuse-lite/data/regions/SH.js +++ b/node_modules/caniuse-lite/data/regions/SH.js @@ -1 +1 @@ -module.exports={C:{"139":0.624,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 140 141 142 143 3.5 3.6"},D:{"109":0.624,"116":0.624,"125":0.624,"136":6.248,"137":23.128,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.624,"18":1.248,"89":3.752,"133":0.624,"136":6.248,"137":30.624,"138":3.128,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5 26.0"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00062,"5.0-5.1":0,"6.0-6.1":0.00123,"7.0-7.1":0.00123,"8.1-8.4":0,"9.0-9.2":0.00062,"9.3":0.00369,"10.0-10.2":0.00031,"10.3":0.00615,"11.0-11.2":0.03937,"11.3-11.4":0.00215,"12.0-12.1":0.00062,"12.2-12.5":0.02061,"13.0-13.1":0.00031,"13.2":0.00092,"13.3":0.00062,"13.4-13.7":0.00338,"14.0-14.4":0.008,"14.5-14.8":0.008,"15.0-15.1":0.00554,"15.2-15.3":0.00554,"15.4":0.00677,"15.5":0.00738,"15.6-15.8":0.09536,"16.0":0.01261,"16.1":0.02584,"16.2":0.01323,"16.3":0.0243,"16.4":0.00554,"16.5":0.00984,"16.6-16.7":0.11966,"17.0":0.00646,"17.1":0.01138,"17.2":0.00892,"17.3":0.01261,"17.4":0.02245,"17.5":0.04706,"17.6-17.7":0.12304,"18.0":0.03045,"18.1":0.06859,"18.2":0.0363,"18.3":0.15595,"18.4":0.16549,"18.5":1.94003,"26.0":0},P:{"28":0.77,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":16.154},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"34":0.03301,"115":2.19294,"124":0.00472,"125":0.03773,"126":0.00472,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"11":0.05659,"63":0.00472,"65":0.00943,"70":0.00472,"79":0.04716,"87":0.33484,"98":0.02358,"102":0.00472,"105":0.35842,"106":0.47632,"109":1.64117,"114":0.16978,"116":0.04244,"120":0.00472,"123":0.13676,"124":6.37132,"125":2.2118,"126":0.12733,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 67 68 69 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 99 100 101 103 104 107 108 110 111 112 113 115 117 118 119 121 122 127 128"},F:{"95":0.4716,"107":0.04716,"108":0.06602,"109":0.69797,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00943,"92":0.00472,"95":0.05188,"105":0.00472,"109":0.20279,"113":0.46217,"119":0.00472,"120":0.39143,"121":15.8882,"123":0.06131,"124":2.52306,"125":0.36313,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 114 115 116 117 118 122"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.2 17.3 17.5 17.6","11.1":0.01886,"15.6":0.00472,"17.1":0.00472,"17.4":0.00472},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00038,"5.0-5.1":0.00038,"6.0-6.1":0.00094,"7.0-7.1":0.00132,"8.1-8.4":0.00038,"9.0-9.2":0.00094,"9.3":0.00434,"10.0-10.2":0.00075,"10.3":0.00679,"11.0-11.2":0.01,"11.3-11.4":0.00189,"12.0-12.1":0.00113,"12.2-12.5":0.02735,"13.0-13.1":0.00057,"13.2":0.00264,"13.3":0.00132,"13.4-13.7":0.00604,"14.0-14.4":0.01038,"14.5-14.8":0.01603,"15.0-15.1":0.00773,"15.2-15.3":0.00849,"15.4":0.00962,"15.5":0.01207,"15.6-15.8":0.10866,"16.0":0.02471,"16.1":0.05093,"16.2":0.02471,"16.3":0.04282,"16.4":0.00905,"16.5":0.0183,"16.6-16.7":0.14582,"17.0":0.01585,"17.1":0.02584,"17.2":0.02698,"17.3":0.0498,"17.4":1.13089,"17.5":0.07979,"17.6":0},P:{"22":0.01004,"23":0.01004,"24":0.02008,"25":0.15059,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01004},I:{"0":0.03684,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.02114,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.87156},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":0.08983},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SI.js b/node_modules/caniuse-lite/data/regions/SI.js index 0c85659c4..fdbe53a87 100644 --- a/node_modules/caniuse-lite/data/regions/SI.js +++ b/node_modules/caniuse-lite/data/regions/SI.js @@ -1 +1 @@ -module.exports={C:{"52":0.03651,"66":0.00522,"68":0.00522,"72":0.02608,"78":0.01043,"83":0.02086,"91":0.00522,"95":0.05737,"102":0.00522,"113":0.00522,"115":1.2151,"121":0.00522,"122":0.03129,"125":0.01043,"126":0.00522,"127":0.02086,"128":0.0678,"132":0.0678,"133":0.00522,"134":0.02086,"135":0.01565,"136":0.09387,"137":0.03651,"138":0.37027,"139":4.79259,"140":0.65709,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 73 74 75 76 77 79 80 81 82 84 85 86 87 88 89 90 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 123 124 129 130 131 141 142 143 3.5 3.6"},D:{"39":0.00522,"40":0.00522,"41":0.00522,"42":0.00522,"43":0.00522,"44":0.00522,"45":0.00522,"46":0.00522,"47":0.00522,"48":0.00522,"49":0.02086,"50":0.00522,"51":0.00522,"52":0.00522,"53":0.01043,"54":0.00522,"55":0.00522,"56":0.00522,"57":0.00522,"58":0.00522,"59":0.00522,"60":0.00522,"79":0.06258,"85":0.00522,"86":0.00522,"87":0.03651,"91":0.01043,"96":0.00522,"98":0.04694,"100":0.01043,"103":0.04694,"105":0.00522,"106":0.00522,"108":0.01565,"109":1.18381,"110":0.00522,"111":0.01565,"112":0.01565,"114":0.01043,"116":0.0678,"117":0.01043,"118":0.00522,"119":0.01565,"120":0.01565,"121":0.01565,"122":0.05737,"123":0.05215,"124":0.02608,"125":0.07823,"126":0.10952,"127":0.02086,"128":0.04172,"129":0.01565,"130":0.06258,"131":0.34941,"132":0.04172,"133":0.07823,"134":0.1721,"135":0.33376,"136":3.68179,"137":22.9095,"138":0.82397,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 88 89 90 92 93 94 95 97 99 101 102 104 107 113 115 139 140 141"},F:{"46":0.03651,"89":0.01043,"90":0.00522,"95":0.04694,"117":0.00522,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.01043,"92":0.00522,"108":0.00522,"109":0.02608,"116":0.01565,"119":0.01043,"121":0.01565,"124":0.00522,"127":0.00522,"128":0.00522,"129":0.03651,"130":0.01565,"131":0.02086,"132":0.02086,"133":0.01043,"134":0.05737,"135":0.09387,"136":0.76661,"137":4.49533,"138":0.30769,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 117 118 120 122 123 125 126"},E:{"14":0.00522,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.0","13.1":0.01043,"14.1":0.03651,"15.4":0.00522,"15.5":0.01565,"15.6":0.0678,"16.0":0.01565,"16.1":0.01043,"16.2":0.02086,"16.3":0.01043,"16.4":0.00522,"16.5":0.00522,"16.6":0.13038,"17.0":0.01565,"17.1":0.05737,"17.2":0.00522,"17.3":0.01565,"17.4":0.02086,"17.5":0.0678,"17.6":0.19296,"18.0":0.02608,"18.1":0.03129,"18.2":0.02086,"18.3":0.09909,"18.4":0.16167,"18.5":1.12123},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00236,"5.0-5.1":0,"6.0-6.1":0.00471,"7.0-7.1":0.00471,"8.1-8.4":0,"9.0-9.2":0.00236,"9.3":0.01414,"10.0-10.2":0.00118,"10.3":0.02357,"11.0-11.2":0.15085,"11.3-11.4":0.00825,"12.0-12.1":0.00236,"12.2-12.5":0.07896,"13.0-13.1":0.00118,"13.2":0.00354,"13.3":0.00236,"13.4-13.7":0.01296,"14.0-14.4":0.03064,"14.5-14.8":0.03064,"15.0-15.1":0.02121,"15.2-15.3":0.02121,"15.4":0.02593,"15.5":0.02829,"15.6-15.8":0.36535,"16.0":0.04832,"16.1":0.099,"16.2":0.05068,"16.3":0.09311,"16.4":0.02121,"16.5":0.03771,"16.6-16.7":0.45845,"17.0":0.02475,"17.1":0.04361,"17.2":0.03418,"17.3":0.04832,"17.4":0.08603,"17.5":0.18032,"17.6-17.7":0.47142,"18.0":0.11668,"18.1":0.26282,"18.2":0.13907,"18.3":0.59752,"18.4":0.63406,"18.5":7.43309,"26.0":0},P:{"4":0.07206,"20":0.01029,"21":0.01029,"22":0.02059,"23":0.02059,"24":0.04118,"25":0.04118,"26":0.05147,"27":0.24706,"28":3.18091,"5.0-5.4":0.02059,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 16.0 17.0","7.2-7.4":0.05147,"14.0":0.01029,"15.0":0.01029,"18.0":0.01029,"19.0":0.01029},I:{"0":0.03821,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.27275,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.00479,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":32.55215},R:{_:"0"},M:{"0":0.53114},Q:{_:"14.9"},O:{"0":0.01436},H:{"0":0}}; +module.exports={C:{"52":0.06708,"68":0.00516,"77":0.02064,"78":0.02064,"80":0.00516,"83":0.01032,"84":0.00516,"88":0.03612,"89":0.00516,"91":0.01548,"94":0.01032,"99":0.01032,"100":0.00516,"102":0.03096,"103":0.03096,"109":0.00516,"113":0.03612,"114":0.00516,"115":0.84108,"116":0.00516,"117":0.00516,"118":0.03096,"119":0.01032,"120":0.00516,"121":0.03612,"122":0.0516,"123":0.04644,"124":0.15996,"125":2.73996,"126":2.451,"127":0.00516,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 79 81 82 85 86 87 90 92 93 95 96 97 98 101 104 105 106 107 108 110 111 112 128 129 3.5 3.6"},D:{"43":0.00516,"44":0.00516,"45":0.00516,"46":0.00516,"49":0.01032,"51":0.03612,"75":0.00516,"79":0.0258,"83":0.01548,"84":0.00516,"87":0.04644,"88":0.01032,"90":0.02064,"91":0.02064,"92":0.00516,"93":0.01032,"94":0.00516,"95":0.00516,"96":0.00516,"97":0.01032,"98":0.0516,"99":0.01548,"100":0.01548,"102":0.01548,"103":0.0258,"104":0.04128,"105":0.00516,"106":0.01548,"107":0.01032,"108":0.00516,"109":2.09496,"110":0.00516,"111":0.01548,"112":0.04128,"113":0.00516,"114":0.01032,"115":1.63572,"116":0.16512,"117":0.01548,"118":0.01548,"119":0.04128,"120":0.0774,"121":0.10836,"122":0.25284,"123":1.0836,"124":18.89592,"125":7.45104,"126":0.12384,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 47 48 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 85 86 89 101 127 128"},F:{"46":0.02064,"49":0.00516,"89":0.00516,"95":0.01548,"107":0.35088,"108":0.09288,"109":1.4448,"110":0.07224,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.01032,"92":0.02064,"98":0.00516,"107":0.00516,"109":0.19092,"111":0.00516,"112":0.00516,"114":0.00516,"116":0.00516,"117":0.00516,"118":0.00516,"119":0.00516,"120":0.03612,"121":0.02064,"122":0.04128,"123":0.17028,"124":3.43656,"125":2.2446,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 108 110 113 115"},E:{"8":0.00516,"9":0.00516,"14":0.03096,"15":0.01032,_:"0 4 5 6 7 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00516,"13.1":0.129,"14.1":0.07224,"15.1":0.00516,"15.2-15.3":0.00516,"15.4":0.02064,"15.5":0.03096,"15.6":0.17028,"16.0":0.0258,"16.1":0.08256,"16.2":0.06708,"16.3":0.1032,"16.4":0.04128,"16.5":0.04128,"16.6":0.50568,"17.0":0.0516,"17.1":0.08772,"17.2":0.06708,"17.3":0.09288,"17.4":1.15068,"17.5":0.18576},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00204,"5.0-5.1":0.00204,"6.0-6.1":0.00511,"7.0-7.1":0.00716,"8.1-8.4":0.00204,"9.0-9.2":0.00511,"9.3":0.02351,"10.0-10.2":0.00409,"10.3":0.0368,"11.0-11.2":0.05418,"11.3-11.4":0.01022,"12.0-12.1":0.00613,"12.2-12.5":0.14822,"13.0-13.1":0.00307,"13.2":0.01431,"13.3":0.00716,"13.4-13.7":0.03271,"14.0-14.4":0.05622,"14.5-14.8":0.08689,"15.0-15.1":0.04191,"15.2-15.3":0.046,"15.4":0.05213,"15.5":0.06542,"15.6-15.8":0.58879,"16.0":0.13391,"16.1":0.276,"16.2":0.13391,"16.3":0.23204,"16.4":0.04907,"16.5":0.09915,"16.6-16.7":0.79017,"17.0":0.08587,"17.1":0.14004,"17.2":0.14618,"17.3":0.26986,"17.4":6.12814,"17.5":0.43239,"17.6":0},P:{"4":0.09374,"20":0.01042,"21":0.02083,"22":0.07291,"23":0.15624,"24":0.33331,"25":3.19771,"5.0-5.4":0.03125,"6.2-6.4":0.01042,"7.2-7.4":0.01042,_:"8.2 10.1 11.1-11.2 12.0 16.0","9.2":0.01042,"13.0":0.01042,"14.0":0.02083,"15.0":0.01042,"17.0":0.02083,"18.0":0.01042,"19.0":0.01042},I:{"0":0.06267,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":0.27588,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02064,"9":0.00516,"10":0.00516,"11":0.03096,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":32.75964},R:{_:"0"},M:{"0":0.68728},Q:{_:"14.9"},O:{"0":0.10648},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SK.js b/node_modules/caniuse-lite/data/regions/SK.js index 815393e9b..ab84db9c0 100644 --- a/node_modules/caniuse-lite/data/regions/SK.js +++ b/node_modules/caniuse-lite/data/regions/SK.js @@ -1 +1 @@ -module.exports={C:{"34":0.00427,"52":0.03845,"60":0.00427,"78":0.00854,"88":0.00427,"99":0.01709,"100":0.01282,"103":0.00427,"115":0.52973,"125":0.00427,"127":0.00854,"128":0.10253,"129":0.00854,"131":0.00427,"132":0.01282,"133":0.02136,"134":0.00427,"135":0.00854,"136":0.20933,"137":0.04272,"138":0.17942,"139":4.29336,"140":0.68779,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 130 141 142 143 3.5 3.6"},D:{"38":0.00427,"39":0.00427,"40":0.00427,"41":0.00854,"42":0.00427,"43":0.00427,"44":0.00427,"45":0.00427,"46":0.00427,"47":0.00427,"48":0.00427,"49":0.02563,"50":0.00427,"51":0.00427,"52":0.00427,"53":0.00427,"54":0.00427,"55":0.00427,"56":0.00427,"57":0.00427,"58":0.00427,"59":0.00427,"60":0.00427,"79":0.08117,"81":0.00854,"86":0.00427,"87":0.07262,"89":0.00854,"90":0.00427,"91":0.00854,"94":0.02136,"95":0.00427,"98":0.01282,"99":0.00427,"102":0.02563,"103":0.01282,"104":0.00427,"106":0.01282,"108":0.03845,"109":1.3115,"110":0.01282,"111":0.0299,"112":0.00427,"113":0.00427,"114":0.01282,"115":0.00854,"116":0.0299,"117":0.00427,"118":0.00427,"119":0.02136,"120":0.01709,"121":0.01282,"122":0.05554,"123":0.01282,"124":0.09826,"125":0.11534,"126":0.02136,"127":0.02563,"128":0.05126,"129":0.02563,"130":0.01709,"131":0.08117,"132":0.0769,"133":0.08544,"134":0.1068,"135":0.19651,"136":2.76398,"137":16.61381,"138":0.69634,"139":0.00427,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 85 88 92 93 96 97 100 101 105 107 140 141"},F:{"46":0.01282,"83":0.01282,"85":0.00427,"86":0.00427,"88":0.00427,"89":0.03418,"90":0.02563,"94":0.00427,"95":0.09826,"114":0.00427,"117":0.00854,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 87 91 92 93 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00427,"108":0.00427,"109":0.03418,"114":0.00427,"121":0.00427,"122":0.00427,"124":0.00427,"125":0.00427,"127":0.00854,"128":0.00427,"129":0.01282,"130":0.01282,"131":0.0299,"132":0.03845,"133":0.00854,"134":0.14098,"135":0.0299,"136":0.69206,"137":3.60557,"138":0.26914,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 120 123 126"},E:{"14":0.00427,"15":0.00427,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1","12.1":0.00427,"13.1":0.01282,"14.1":0.01282,"15.2-15.3":0.00427,"15.4":0.00427,"15.5":0.00854,"15.6":0.14098,"16.0":0.01282,"16.1":0.01282,"16.2":0.00427,"16.3":0.01282,"16.4":0.04272,"16.5":0.00854,"16.6":0.11534,"17.0":0.00427,"17.1":0.06408,"17.2":0.03845,"17.3":0.00854,"17.4":0.01709,"17.5":0.03418,"17.6":0.14525,"18.0":0.02563,"18.1":0.0299,"18.2":0.02136,"18.3":0.07262,"18.4":0.08971,"18.5":0.94838,"26.0":0.01709},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00235,"5.0-5.1":0,"6.0-6.1":0.0047,"7.0-7.1":0.0047,"8.1-8.4":0,"9.0-9.2":0.00235,"9.3":0.0141,"10.0-10.2":0.00117,"10.3":0.0235,"11.0-11.2":0.15038,"11.3-11.4":0.00822,"12.0-12.1":0.00235,"12.2-12.5":0.07871,"13.0-13.1":0.00117,"13.2":0.00352,"13.3":0.00235,"13.4-13.7":0.01292,"14.0-14.4":0.03055,"14.5-14.8":0.03055,"15.0-15.1":0.02115,"15.2-15.3":0.02115,"15.4":0.02585,"15.5":0.0282,"15.6-15.8":0.36419,"16.0":0.04817,"16.1":0.09868,"16.2":0.05052,"16.3":0.09281,"16.4":0.02115,"16.5":0.03759,"16.6-16.7":0.457,"17.0":0.02467,"17.1":0.04347,"17.2":0.03407,"17.3":0.04817,"17.4":0.08576,"17.5":0.17975,"17.6-17.7":0.46993,"18.0":0.11631,"18.1":0.26198,"18.2":0.13863,"18.3":0.59563,"18.4":0.63205,"18.5":7.40954,"26.0":0},P:{"4":0.14419,"21":0.0206,"22":0.0103,"23":0.0206,"24":0.0206,"25":0.0206,"26":0.06179,"27":0.11329,"28":2.58505,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.0309,"6.2-6.4":0.0206,"7.2-7.4":0.0412,"13.0":0.0103,"19.0":0.0103},I:{"0":0.05146,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.53843,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00427,"11":0.00854,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.21491},R:{_:"0"},M:{"0":0.33795},Q:{_:"14.9"},O:{"0":0.02864},H:{"0":0}}; +module.exports={C:{"43":0.00542,"52":0.04882,"61":0.00542,"68":0.00542,"78":0.01085,"88":0.00542,"99":0.00542,"102":0.00542,"103":0.01085,"105":0.00542,"106":0.00542,"108":0.00542,"109":0.00542,"110":0.00542,"111":0.00542,"113":0.00542,"115":0.64003,"116":0.00542,"117":0.00542,"118":0.00542,"119":0.00542,"120":0.00542,"121":0.01085,"122":0.01627,"123":0.01627,"124":0.09221,"125":2.07739,"126":1.69229,"127":0.00542,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 100 101 104 107 112 114 128 129 3.5 3.6"},D:{"34":0.00542,"38":0.01085,"41":0.01085,"47":0.00542,"49":0.04882,"63":0.07051,"79":0.10306,"80":0.00542,"81":0.00542,"84":0.00542,"85":0.00542,"86":0.01085,"87":0.05424,"88":0.00542,"89":0.00542,"90":0.01085,"91":0.00542,"92":0.00542,"93":0.16272,"94":0.00542,"95":0.00542,"96":0.00542,"97":0.00542,"98":0.01085,"99":0.01085,"100":0.00542,"101":0.00542,"102":0.00542,"103":0.1139,"104":0.01085,"106":0.0217,"107":0.0217,"108":0.03254,"109":3.47136,"110":0.00542,"111":0.0217,"112":0.01627,"113":0.14645,"114":0.18442,"115":0.03797,"116":0.07051,"117":0.01085,"118":0.02712,"119":0.03254,"120":0.09763,"121":0.23323,"122":0.34714,"123":2.67946,"124":24.7009,"125":5.23958,"126":0.01085,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 42 43 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 105 127 128"},F:{"28":0.00542,"36":0.00542,"46":0.01085,"95":0.09221,"106":0.0217,"107":0.37968,"108":0.03797,"109":1.88755,"110":0.1356,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00542,"104":0.00542,"107":0.00542,"108":0.00542,"109":0.07594,"110":0.00542,"111":0.00542,"112":0.00542,"117":0.00542,"118":0.00542,"119":0.00542,"120":0.02712,"121":0.01627,"122":0.05966,"123":0.22781,"124":4.20902,"125":1.32346,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 105 106 113 114 115 116"},E:{"14":0.01085,"15":0.00542,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.6","13.1":0.0217,"14.1":0.03797,"15.1":0.00542,"15.2-15.3":0.00542,"15.4":0.00542,"15.5":0.01085,"15.6":0.12475,"16.0":0.00542,"16.1":0.03797,"16.2":0.01627,"16.3":0.03254,"16.4":0.0217,"16.5":0.0217,"16.6":0.11933,"17.0":0.02712,"17.1":0.05966,"17.2":0.10848,"17.3":0.05424,"17.4":0.77021,"17.5":0.16272},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00174,"5.0-5.1":0.00174,"6.0-6.1":0.00434,"7.0-7.1":0.00608,"8.1-8.4":0.00174,"9.0-9.2":0.00434,"9.3":0.01997,"10.0-10.2":0.00347,"10.3":0.03126,"11.0-11.2":0.04602,"11.3-11.4":0.00868,"12.0-12.1":0.00521,"12.2-12.5":0.1259,"13.0-13.1":0.0026,"13.2":0.01216,"13.3":0.00608,"13.4-13.7":0.02778,"14.0-14.4":0.04775,"14.5-14.8":0.0738,"15.0-15.1":0.0356,"15.2-15.3":0.03907,"15.4":0.04428,"15.5":0.05557,"15.6-15.8":0.50012,"16.0":0.11374,"16.1":0.23443,"16.2":0.11374,"16.3":0.19709,"16.4":0.04168,"16.5":0.08422,"16.6-16.7":0.67116,"17.0":0.07293,"17.1":0.11895,"17.2":0.12416,"17.3":0.22922,"17.4":5.2052,"17.5":0.36727,"17.6":0},P:{"4":0.10441,"20":0.01044,"21":0.02088,"22":0.02088,"23":0.06264,"24":0.12529,"25":1.85843,"5.0-5.4":0.01044,"6.2-6.4":0.01044,_:"7.2-7.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 17.0 18.0","11.1-11.2":0.01044,"13.0":0.01044,"19.0":0.02088},I:{"0":0.06839,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.52178,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01085,"11":0.03797,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":34.28724},R:{_:"0"},M:{"0":0.30208},Q:{_:"14.9"},O:{"0":0.03204},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SL.js b/node_modules/caniuse-lite/data/regions/SL.js index 7e820b17d..cd784b711 100644 --- a/node_modules/caniuse-lite/data/regions/SL.js +++ b/node_modules/caniuse-lite/data/regions/SL.js @@ -1 +1 @@ -module.exports={C:{"4":0.09247,"56":0.00264,"70":0.00264,"95":0.0502,"98":0.00264,"102":0.00264,"109":0.00264,"112":0.01057,"115":0.01585,"127":0.01057,"128":0.0317,"131":0.00528,"133":0.00264,"134":0.01849,"135":0.01321,"136":0.00793,"137":0.00793,"138":0.04756,"139":0.55218,"140":0.03435,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 99 100 101 103 104 105 106 107 108 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 141 142 143 3.5 3.6"},D:{"11":0.00528,"34":0.00264,"38":0.00528,"39":0.00793,"40":0.00264,"41":0.00264,"42":0.01849,"43":0.00793,"44":0.00264,"45":0.00264,"46":0.00793,"47":0.00528,"48":0.00793,"49":0.00528,"50":0.00528,"51":0.00528,"52":0.00528,"53":0.00264,"54":0.00264,"55":0.00264,"56":0.01585,"57":0.00264,"58":0.01057,"59":0.01057,"60":0.00264,"62":0.00264,"64":0.00528,"65":0.00264,"66":0.00528,"67":0.00793,"68":0.00793,"69":0.00264,"70":0.00528,"71":0.00528,"72":0.00264,"73":0.00528,"74":0.01057,"75":0.03699,"76":0.01057,"77":0.01057,"79":0.07133,"80":0.01321,"81":0.00528,"83":0.02378,"86":0.00264,"87":0.01321,"88":0.01321,"89":0.01585,"90":0.00264,"91":0.01585,"92":0.01585,"93":0.01585,"94":0.00264,"95":0.00264,"96":0.00793,"98":0.00264,"99":0.00264,"101":0.00264,"102":0.00793,"103":0.20872,"104":0.00528,"105":0.04227,"106":0.00264,"108":0.00528,"109":0.17437,"111":0.00528,"113":0.00528,"114":0.02378,"115":0.00528,"116":0.01849,"117":0.00528,"118":0.01321,"119":0.03699,"120":0.00264,"121":0.01585,"122":0.02378,"123":0.00264,"124":0.00793,"125":1.40026,"126":0.14267,"127":0.01585,"128":0.0317,"129":0.01057,"130":0.04491,"131":0.03435,"132":0.0502,"133":0.05812,"134":0.15059,"135":0.15852,"136":1.02245,"137":6.84278,"138":0.3144,"139":0.01585,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 63 78 84 85 97 100 107 110 112 140 141"},F:{"35":0.00264,"38":0.00264,"40":0.00528,"42":0.00528,"45":0.00528,"85":0.00528,"86":0.00264,"88":0.01057,"89":0.04227,"90":0.03699,"95":0.0317,"112":0.00264,"113":0.01321,"114":0.00528,"115":0.00264,"117":0.05284,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 39 41 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01321,"13":0.01321,"14":0.00528,"15":0.00528,"16":0.05284,"17":0.00793,"18":0.04756,"80":0.00264,"84":0.00528,"89":0.01585,"90":0.0317,"92":0.12417,"100":0.05284,"103":0.00264,"104":0.00264,"111":0.00528,"114":0.00264,"120":0.00264,"121":0.00264,"122":0.00528,"123":0.00264,"124":0.00264,"126":0.00264,"127":0.01057,"128":0.01057,"129":0.00528,"130":0.00528,"131":0.01849,"132":0.01585,"133":0.02378,"134":0.01849,"135":0.04227,"136":0.50198,"137":2.49141,"138":0.16909,_:"79 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 105 106 107 108 109 110 112 113 115 116 117 118 119 125"},E:{"14":0.00793,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 9.1 10.1 15.1 15.4 15.5 16.0 16.1 17.0 18.2","5.1":0.00264,"7.1":0.04756,"11.1":0.00264,"12.1":0.00264,"13.1":0.02642,"14.1":0.01057,"15.2-15.3":0.00264,"15.6":0.06341,"16.2":0.00264,"16.3":0.00528,"16.4":0.00528,"16.5":0.00528,"16.6":0.02114,"17.1":0.05812,"17.2":0.01321,"17.3":0.00793,"17.4":0.00528,"17.5":0.00264,"17.6":0.04491,"18.0":0.00264,"18.1":0.00528,"18.3":0.00793,"18.4":0.04227,"18.5":0.27477,"26.0":0.00793},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00094,"5.0-5.1":0,"6.0-6.1":0.00188,"7.0-7.1":0.00188,"8.1-8.4":0,"9.0-9.2":0.00094,"9.3":0.00564,"10.0-10.2":0.00047,"10.3":0.0094,"11.0-11.2":0.06018,"11.3-11.4":0.00329,"12.0-12.1":0.00094,"12.2-12.5":0.0315,"13.0-13.1":0.00047,"13.2":0.00141,"13.3":0.00094,"13.4-13.7":0.00517,"14.0-14.4":0.01222,"14.5-14.8":0.01222,"15.0-15.1":0.00846,"15.2-15.3":0.00846,"15.4":0.01034,"15.5":0.01128,"15.6-15.8":0.14575,"16.0":0.01928,"16.1":0.03949,"16.2":0.02022,"16.3":0.03714,"16.4":0.00846,"16.5":0.01505,"16.6-16.7":0.1829,"17.0":0.00987,"17.1":0.0174,"17.2":0.01364,"17.3":0.01928,"17.4":0.03432,"17.5":0.07194,"17.6-17.7":0.18807,"18.0":0.04655,"18.1":0.10485,"18.2":0.05548,"18.3":0.23838,"18.4":0.25295,"18.5":2.9654,"26.0":0},P:{"4":0.18351,"21":0.01019,"22":0.02039,"23":0.04078,"24":0.17331,"25":0.17331,"26":0.18351,"27":0.16312,"28":0.5811,_:"20 5.0-5.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0","6.2-6.4":0.01019,"7.2-7.4":0.09175,"9.2":0.01019,"11.1-11.2":0.02039,"16.0":0.01019,"17.0":0.01019,"19.0":0.01019},I:{"0":0.02938,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":7.53404,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.14795,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01472,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.76762},R:{_:"0"},M:{"0":0.07358},Q:{_:"14.9"},O:{"0":0.3679},H:{"0":2.62}}; +module.exports={C:{"4":0.00454,"28":0.00151,"33":0.00151,"45":0.00151,"47":0.00151,"57":0.00151,"58":0.00151,"61":0.00151,"62":0.00303,"72":0.00303,"76":0.00303,"89":0.00151,"95":0.00151,"112":0.00151,"113":0.00151,"115":0.05296,"119":0.00454,"121":0.00151,"122":0.00151,"123":0.00454,"124":0.01664,"125":0.20274,"126":0.25267,"127":0.05598,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 46 48 49 50 51 52 53 54 55 56 59 60 63 64 65 66 67 68 69 70 71 73 74 75 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 116 117 118 120 128 129 3.5 3.6"},D:{"11":0.00303,"26":0.01967,"31":0.00151,"38":0.00151,"39":0.01513,"42":0.00151,"46":0.00151,"48":0.00303,"49":0.00151,"53":0.00151,"55":0.00151,"58":0.00151,"60":0.00151,"63":0.00151,"64":0.00605,"65":0.0348,"66":0.00151,"67":0.00151,"68":0.00454,"69":0.0121,"70":0.00454,"71":0.00303,"72":0.01513,"74":0.00303,"75":0.03177,"76":0.0121,"77":0.00454,"78":0.00303,"79":0.00908,"80":0.00605,"81":0.01059,"83":0.00908,"84":0.00151,"86":0.00757,"87":0.01513,"88":0.00151,"89":0.00151,"90":0.00151,"91":0.00303,"92":0.00454,"93":0.03631,"94":0.00454,"95":0.00757,"96":0.00605,"97":0.00151,"98":0.00151,"99":0.01059,"100":0.00303,"101":0.00757,"102":0.03934,"103":0.06657,"104":0.00908,"105":0.00757,"106":0.00151,"107":0.00454,"108":0.01059,"109":0.18459,"111":0.00757,"112":0.00303,"113":0.00303,"114":0.01513,"115":0.00757,"116":0.03934,"117":0.02421,"118":0.00605,"119":0.03934,"120":0.02421,"121":0.34648,"122":0.08473,"123":0.13617,"124":3.3982,"125":1.5599,"126":0.00151,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 32 33 34 35 36 37 40 41 43 44 45 47 50 51 52 54 56 57 59 61 62 73 85 110 127 128"},F:{"31":0.00151,"40":0.00151,"42":0.00454,"44":0.00151,"45":0.00151,"57":0.00303,"79":0.00605,"94":0.00151,"95":0.0121,"102":0.00151,"105":0.00151,"107":0.00757,"108":0.01664,"109":0.33135,"110":0.18913,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 43 46 47 48 49 50 51 52 53 54 55 56 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 98 99 100 101 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0227,"13":0.01059,"14":0.00605,"15":0.00454,"16":0.00908,"17":0.00303,"18":0.05144,"84":0.00151,"89":0.01059,"90":0.00454,"92":0.05901,"95":0.00151,"98":0.00151,"100":0.01059,"107":0.00303,"108":0.03026,"109":0.00303,"110":0.00151,"111":0.00605,"112":0.00151,"114":0.00605,"116":0.00454,"117":0.00605,"118":0.00454,"119":0.0121,"120":0.01059,"121":0.00908,"122":0.0227,"123":0.05447,"124":1.27849,"125":0.78525,_:"79 80 81 83 85 86 87 88 91 93 94 96 97 99 101 102 103 104 105 106 113 115"},E:{"14":0.00757,"15":0.00151,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 9.1 10.1 15.2-15.3 15.5 16.0 17.6","5.1":0.00151,"7.1":0.01664,"11.1":0.05598,"12.1":0.00151,"13.1":0.01967,"14.1":0.03026,"15.1":0.00151,"15.4":0.00151,"15.6":0.07262,"16.1":0.00303,"16.2":0.00454,"16.3":0.02572,"16.4":0.00151,"16.5":0.00605,"16.6":0.03934,"17.0":0.00454,"17.1":0.00454,"17.2":0.01513,"17.3":0.0121,"17.4":0.03631,"17.5":0.00757},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00114,"5.0-5.1":0.00114,"6.0-6.1":0.00286,"7.0-7.1":0.004,"8.1-8.4":0.00114,"9.0-9.2":0.00286,"9.3":0.01314,"10.0-10.2":0.00228,"10.3":0.02056,"11.0-11.2":0.03027,"11.3-11.4":0.00571,"12.0-12.1":0.00343,"12.2-12.5":0.08282,"13.0-13.1":0.00171,"13.2":0.008,"13.3":0.004,"13.4-13.7":0.01828,"14.0-14.4":0.03141,"14.5-14.8":0.04855,"15.0-15.1":0.02342,"15.2-15.3":0.0257,"15.4":0.02913,"15.5":0.03656,"15.6-15.8":0.329,"16.0":0.07482,"16.1":0.15422,"16.2":0.07482,"16.3":0.12966,"16.4":0.02742,"16.5":0.0554,"16.6-16.7":0.44152,"17.0":0.04798,"17.1":0.07825,"17.2":0.08168,"17.3":0.15079,"17.4":3.42419,"17.5":0.24161,"17.6":0},P:{"4":0.14294,"20":0.04084,"21":0.06126,"22":0.07147,"23":0.13273,"24":0.18378,"25":0.45945,"5.0-5.4":0.02042,"6.2-6.4":0.01021,"7.2-7.4":0.07147,_:"8.2 12.0 13.0 14.0 18.0","9.2":0.01021,"10.1":0.01021,"11.1-11.2":0.01021,"15.0":0.01021,"16.0":0.08168,"17.0":0.01021,"19.0":0.03063},I:{"0":0.04227,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":10.4396,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00757,"11":0.00757,_:"6 7 8 9 5.5"},S:{"2.5":0.04244,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.93753},R:{_:"0"},M:{"0":0.09336},Q:{_:"14.9"},O:{"0":0.35645},H:{"0":7.12}}; diff --git a/node_modules/caniuse-lite/data/regions/SM.js b/node_modules/caniuse-lite/data/regions/SM.js index 5e8f48473..1f9a6ff85 100644 --- a/node_modules/caniuse-lite/data/regions/SM.js +++ b/node_modules/caniuse-lite/data/regions/SM.js @@ -1 +1 @@ -module.exports={C:{"112":0.00605,"115":0.1572,"125":0.16929,"128":0.09069,"131":0.02418,"133":0.00605,"134":0.04232,"136":0.01814,"137":0.00605,"138":0.44136,"139":4.23825,"140":0.81621,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 135 141 142 143 3.5 3.6"},D:{"39":0.01814,"40":0.01814,"41":0.03628,"42":0.03628,"43":0.01814,"44":0.02418,"45":0.03628,"46":0.01814,"47":0.00605,"49":0.00605,"50":0.00605,"52":0.02418,"53":0.00605,"54":0.07255,"55":0.00605,"56":0.01814,"57":0.01814,"58":0.04232,"61":0.01814,"87":0.02418,"103":0.12092,"109":4.75216,"111":0.06046,"116":0.26602,"121":0.01814,"122":0.00605,"124":0.42322,"125":0.1572,"126":0.00605,"127":0.0786,"128":0.12092,"130":0.11487,"131":0.02418,"132":0.01814,"133":0.04232,"134":0.20556,"135":0.07255,"136":4.44986,"137":27.87811,"138":0.82226,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 48 51 59 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 112 113 114 115 117 118 119 120 123 129 139 140 141"},F:{"36":0.02418,"46":0.01814,"89":0.24789,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"120":0.00605,"125":0.00605,"132":0.03628,"134":0.03628,"136":0.50182,"137":3.70015,"138":0.27207,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 122 123 124 126 127 128 129 130 131 133 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.2 17.3 26.0","12.1":0.00605,"13.1":0.02418,"15.6":0.11487,"16.1":0.02418,"16.3":0.00605,"16.5":0.10883,"16.6":0.06046,"17.0":0.00605,"17.1":2.67233,"17.4":0.07255,"17.5":0.61669,"17.6":0.36276,"18.0":0.00605,"18.1":0.03628,"18.2":0.38694,"18.3":0.02418,"18.4":0.19347,"18.5":1.46313},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00293,"5.0-5.1":0,"6.0-6.1":0.00586,"7.0-7.1":0.00586,"8.1-8.4":0,"9.0-9.2":0.00293,"9.3":0.01757,"10.0-10.2":0.00146,"10.3":0.02928,"11.0-11.2":0.18741,"11.3-11.4":0.01025,"12.0-12.1":0.00293,"12.2-12.5":0.0981,"13.0-13.1":0.00146,"13.2":0.00439,"13.3":0.00293,"13.4-13.7":0.01611,"14.0-14.4":0.03807,"14.5-14.8":0.03807,"15.0-15.1":0.02635,"15.2-15.3":0.02635,"15.4":0.03221,"15.5":0.03514,"15.6-15.8":0.45389,"16.0":0.06003,"16.1":0.12299,"16.2":0.06296,"16.3":0.11567,"16.4":0.02635,"16.5":0.04685,"16.6-16.7":0.56956,"17.0":0.03075,"17.1":0.05417,"17.2":0.04246,"17.3":0.06003,"17.4":0.10688,"17.5":0.22402,"17.6-17.7":0.58567,"18.0":0.14495,"18.1":0.32651,"18.2":0.17277,"18.3":0.74233,"18.4":0.78772,"18.5":9.2345,"26.0":0},P:{"4":0.02051,"28":2.07116,_:"20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.23724,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.55209},R:{_:"0"},M:{"0":1.34436},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"78":0.13079,"88":0.00872,"99":0.00872,"102":0.01744,"115":0.23541,"124":0.01744,"125":7.9866,"126":1.15091,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"79":0.00872,"87":0.02616,"103":0.02616,"109":0.81959,"116":26.65398,"117":0.00872,"120":0.01744,"121":0.01744,"122":0.34004,"123":0.09591,"124":38.65133,"125":3.43529,"126":0.00872,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 114 115 118 119 127 128"},F:{"107":0.00872,"109":0.03488,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"124":5.46681,"125":0.54058,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.6","13.1":0.01744,"14.1":0.19182,"15.1":0.00872,"15.6":0.12207,"16.3":0.01744,"16.5":0.09591,"16.6":0.40107,"17.0":0.06975,"17.1":0.0436,"17.2":0.00872,"17.3":0.00872,"17.4":0.27901,"17.5":0.0436},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00079,"5.0-5.1":0.00079,"6.0-6.1":0.00197,"7.0-7.1":0.00276,"8.1-8.4":0.00079,"9.0-9.2":0.00197,"9.3":0.00908,"10.0-10.2":0.00158,"10.3":0.01421,"11.0-11.2":0.02092,"11.3-11.4":0.00395,"12.0-12.1":0.00237,"12.2-12.5":0.05725,"13.0-13.1":0.00118,"13.2":0.00553,"13.3":0.00276,"13.4-13.7":0.01263,"14.0-14.4":0.02171,"14.5-14.8":0.03356,"15.0-15.1":0.01619,"15.2-15.3":0.01777,"15.4":0.02014,"15.5":0.02527,"15.6-15.8":0.22741,"16.0":0.05172,"16.1":0.1066,"16.2":0.05172,"16.3":0.08962,"16.4":0.01895,"16.5":0.0383,"16.6-16.7":0.30518,"17.0":0.03316,"17.1":0.05409,"17.2":0.05646,"17.3":0.10423,"17.4":2.36685,"17.5":0.167,"17.6":0},P:{"22":0.02069,"23":0.01034,"24":0.02069,"25":0.78606,_:"4 20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.00383,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.00384,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00872,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":8.05476},R:{_:"0"},M:{"0":0.04612},Q:{_:"14.9"},O:{"0":0.00769},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SN.js b/node_modules/caniuse-lite/data/regions/SN.js index 809e71d22..6cee5f064 100644 --- a/node_modules/caniuse-lite/data/regions/SN.js +++ b/node_modules/caniuse-lite/data/regions/SN.js @@ -1 +1 @@ -module.exports={C:{"52":0.00232,"78":0.00697,"91":0.00697,"95":0.00929,"99":0.00232,"102":0.00232,"115":0.16254,"127":0.00464,"128":0.04876,"131":0.00232,"132":0.00232,"133":0.00464,"134":0.00232,"135":0.01858,"136":0.00697,"137":0.01393,"138":0.04644,"139":1.02632,"140":0.12771,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 141 142 143 3.5 3.6"},D:{"38":0.00232,"39":0.00464,"40":0.00464,"41":0.00232,"42":0.00232,"43":0.00464,"44":0.00232,"45":0.00232,"46":0.00464,"47":0.00464,"48":0.00232,"49":0.00464,"50":0.00464,"51":0.00232,"52":0.00232,"53":0.00464,"54":0.00464,"55":0.00464,"56":0.00464,"57":0.00464,"58":0.00697,"59":0.00464,"60":0.00464,"65":0.00464,"66":0.00232,"69":0.00232,"70":0.00929,"72":0.00232,"73":0.00697,"74":0.00232,"75":0.00232,"77":0.00697,"79":0.02554,"80":0.00232,"81":0.00232,"83":0.00929,"85":0.00232,"86":0.01161,"87":0.0209,"89":0.00232,"90":0.00232,"93":0.00697,"94":0.00232,"95":0.00464,"96":0.00232,"98":0.02554,"100":0.00464,"101":0.00232,"102":0.00232,"103":0.05573,"105":0.00464,"106":0.00232,"108":0.05108,"109":0.35294,"110":0.0209,"111":0.01393,"113":0.00232,"114":0.03715,"115":0.00232,"116":0.11378,"117":0.00697,"118":0.00464,"119":0.03715,"120":0.01393,"121":0.00697,"122":0.01858,"123":0.01161,"124":0.00464,"125":0.90326,"126":0.02786,"127":0.01161,"128":0.07198,"129":0.01393,"130":0.01858,"131":0.02322,"132":0.02554,"133":0.02322,"134":0.03251,"135":0.14164,"136":1.17493,"137":7.39557,"138":0.28328,"139":0.00232,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 67 68 71 76 78 84 88 91 92 97 99 104 107 112 140 141"},F:{"87":0.00232,"89":0.00929,"90":0.00232,"95":0.01161,"104":0.00232,"117":0.00232,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 91 92 93 94 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00232,"14":0.00232,"17":0.00232,"18":0.01161,"84":0.00232,"85":0.00232,"89":0.00232,"90":0.00232,"92":0.01161,"100":0.02786,"109":0.02322,"114":0.00232,"115":0.00232,"119":0.00232,"122":0.00464,"125":0.00232,"126":0.00232,"127":0.00232,"128":0.00929,"129":0.00232,"130":0.00232,"131":0.01625,"132":0.02322,"133":0.01858,"134":0.02322,"135":0.01858,"136":0.47601,"137":2.62154,"138":0.18576,_:"13 15 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 120 121 123 124"},E:{"11":0.00232,"14":0.00464,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.4 16.0 16.5 26.0","11.1":0.00232,"12.1":0.00232,"13.1":0.02322,"14.1":0.03483,"15.5":0.00232,"15.6":0.05108,"16.1":0.01625,"16.2":0.00929,"16.3":0.00232,"16.4":0.00232,"16.6":0.02786,"17.0":0.00464,"17.1":0.01625,"17.2":0.00232,"17.3":0.00232,"17.4":0.00464,"17.5":0.01161,"17.6":0.10449,"18.0":0.00697,"18.1":0.01161,"18.2":0.00697,"18.3":0.03251,"18.4":0.05108,"18.5":0.32972},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0,"6.0-6.1":0.0051,"7.0-7.1":0.0051,"8.1-8.4":0,"9.0-9.2":0.00255,"9.3":0.0153,"10.0-10.2":0.00128,"10.3":0.02551,"11.0-11.2":0.16324,"11.3-11.4":0.00893,"12.0-12.1":0.00255,"12.2-12.5":0.08545,"13.0-13.1":0.00128,"13.2":0.00383,"13.3":0.00255,"13.4-13.7":0.01403,"14.0-14.4":0.03316,"14.5-14.8":0.03316,"15.0-15.1":0.02296,"15.2-15.3":0.02296,"15.4":0.02806,"15.5":0.03061,"15.6-15.8":0.39535,"16.0":0.05229,"16.1":0.10713,"16.2":0.05484,"16.3":0.10075,"16.4":0.02296,"16.5":0.04081,"16.6-16.7":0.4961,"17.0":0.02678,"17.1":0.04719,"17.2":0.03698,"17.3":0.05229,"17.4":0.0931,"17.5":0.19512,"17.6-17.7":0.51013,"18.0":0.12626,"18.1":0.2844,"18.2":0.15049,"18.3":0.64659,"18.4":0.68612,"18.5":8.04342,"26.0":0},P:{"4":0.02028,"20":0.01014,"21":0.03042,"22":0.11153,"23":0.0507,"24":0.24334,"25":0.22306,"26":0.13181,"27":0.26362,"28":2.36243,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 15.0","7.2-7.4":0.15209,"11.1-11.2":0.01014,"14.0":0.01014,"16.0":0.02028,"17.0":0.01014,"18.0":0.01014,"19.0":0.04056},I:{"0":0.07665,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.25105,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.01145},R:{_:"0"},M:{"0":0.17659},Q:{_:"14.9"},O:{"0":0.03839},H:{"0":0.01}}; +module.exports={C:{"52":0.0021,"61":0.0021,"68":0.0042,"70":0.01681,"72":0.0042,"78":0.01681,"80":0.0042,"84":0.0021,"91":0.0021,"95":0.01051,"96":0.0021,"97":0.0021,"99":0.0021,"102":0.0021,"104":0.0021,"109":0.0042,"113":0.0021,"115":0.208,"116":0.0021,"120":0.0042,"121":0.0042,"122":0.0042,"123":0.0042,"124":0.01681,"125":0.56937,"126":0.49374,"127":0.0084,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 69 71 73 74 75 76 77 79 81 82 83 85 86 87 88 89 90 92 93 94 98 100 101 103 105 106 107 108 110 111 112 114 117 118 119 128 129 3.5 3.6"},D:{"34":0.0021,"38":0.0042,"39":0.0021,"49":0.0021,"50":0.0021,"53":0.0021,"58":0.0021,"64":0.0021,"65":0.0042,"66":0.0021,"68":0.0021,"69":0.01681,"70":0.0063,"73":0.0021,"74":0.0021,"75":0.0042,"76":0.0021,"77":0.0042,"79":0.03152,"80":0.0042,"81":0.0063,"83":0.01891,"86":0.01471,"87":0.03572,"88":0.04412,"91":0.01471,"92":0.0021,"93":0.02101,"94":0.0021,"95":0.01261,"96":0.0021,"97":0.0021,"98":0.01471,"99":0.0084,"100":0.0021,"102":0.0042,"103":0.15337,"104":0.0021,"105":0.0021,"106":0.0042,"107":0.0021,"108":0.01261,"109":1.23959,"110":0.0063,"111":0.0042,"112":0.0042,"113":0.0021,"114":0.02941,"115":0.0063,"116":0.11556,"117":0.02311,"118":0.01261,"119":0.02731,"120":0.03572,"121":0.06723,"122":0.06933,"123":0.31305,"124":6.52991,"125":2.59053,"126":0.01051,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 40 41 42 43 44 45 46 47 48 51 52 54 55 56 57 59 60 61 62 63 67 71 72 78 84 85 89 90 101 127 128"},F:{"36":0.0021,"46":0.0042,"79":0.0063,"89":0.01051,"94":0.0021,"95":0.01681,"107":0.01261,"108":0.0084,"109":0.33196,"110":0.03152,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 91 92 93 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.0021,"16":0.0021,"18":0.01261,"90":0.0021,"92":0.01261,"100":0.01051,"101":0.0042,"105":0.0021,"109":0.01681,"115":0.0042,"117":0.0042,"118":0.0042,"119":0.0063,"120":0.02521,"121":0.01261,"122":0.05463,"123":0.05463,"124":1.6745,"125":0.89923,_:"12 13 14 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 102 103 104 106 107 108 110 111 112 113 114 116"},E:{"13":0.0021,"14":0.01051,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 16.0 17.6","11.1":0.0021,"12.1":0.01471,"13.1":0.02521,"14.1":0.02101,"15.2-15.3":0.01051,"15.4":0.0021,"15.5":0.0042,"15.6":0.07564,"16.1":0.01681,"16.2":0.0042,"16.3":0.01261,"16.4":0.0042,"16.5":0.0042,"16.6":0.02941,"17.0":0.01261,"17.1":0.01051,"17.2":0.01051,"17.3":0.01681,"17.4":0.18279,"17.5":0.03572},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00308,"5.0-5.1":0.00308,"6.0-6.1":0.00769,"7.0-7.1":0.01077,"8.1-8.4":0.00308,"9.0-9.2":0.00769,"9.3":0.03538,"10.0-10.2":0.00615,"10.3":0.05537,"11.0-11.2":0.08152,"11.3-11.4":0.01538,"12.0-12.1":0.00923,"12.2-12.5":0.22303,"13.0-13.1":0.00461,"13.2":0.02153,"13.3":0.01077,"13.4-13.7":0.04922,"14.0-14.4":0.0846,"14.5-14.8":0.13074,"15.0-15.1":0.06306,"15.2-15.3":0.06922,"15.4":0.07844,"15.5":0.09844,"15.6-15.8":0.88596,"16.0":0.2015,"16.1":0.4153,"16.2":0.2015,"16.3":0.34916,"16.4":0.07383,"16.5":0.1492,"16.6-16.7":1.18897,"17.0":0.1292,"17.1":0.21072,"17.2":0.21995,"17.3":0.40607,"17.4":9.22109,"17.5":0.65063,"17.6":0},P:{"4":0.21513,"20":0.03073,"21":0.12293,"22":0.13317,"23":0.23562,"24":0.33806,"25":1.72103,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0","6.2-6.4":0.01024,"7.2-7.4":0.31757,"11.1-11.2":0.02049,"13.0":0.02049,"15.0":0.02049,"16.0":0.04098,"17.0":0.10244,"18.0":0.01024,"19.0":0.11269},I:{"0":0.01574,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.2249,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0084,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0158,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":63.63269},R:{_:"0"},M:{"0":0.0948},Q:{_:"14.9"},O:{"0":0.0237},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/SO.js b/node_modules/caniuse-lite/data/regions/SO.js index 1aaf435bf..9bce6a36d 100644 --- a/node_modules/caniuse-lite/data/regions/SO.js +++ b/node_modules/caniuse-lite/data/regions/SO.js @@ -1 +1 @@ -module.exports={C:{"42":0.00045,"106":0.00045,"109":0.00134,"112":0.00134,"115":0.00403,"127":0.0009,"128":0.00358,"129":0.00269,"135":0.00179,"137":0.0009,"138":0.01075,"139":0.0672,"140":0.01837,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 130 131 132 133 134 136 141 142 143 3.5 3.6"},D:{"39":0.0009,"40":0.0009,"41":0.0009,"42":0.00134,"43":0.00134,"44":0.0009,"45":0.0009,"46":0.0009,"47":0.0009,"48":0.0009,"49":0.00269,"50":0.00045,"51":0.0009,"52":0.0009,"53":0.00045,"54":0.00045,"55":0.00045,"56":0.0009,"57":0.0009,"58":0.00403,"59":0.00045,"60":0.0009,"63":0.00045,"64":0.00358,"65":0.00045,"68":0.0009,"69":0.00134,"71":0.00045,"72":0.00896,"73":0.0009,"76":0.00358,"78":0.00672,"79":0.00762,"80":0.00045,"83":0.00448,"86":0.0009,"87":0.01389,"93":0.00045,"94":0.00358,"95":0.0009,"98":0.00358,"99":0.0009,"100":0.00134,"103":0.01792,"105":0.00045,"106":0.00403,"107":0.00224,"108":0.00314,"109":0.02061,"110":0.0009,"111":0.03046,"112":0.0009,"114":0.00134,"116":0.00941,"118":0.00179,"119":0.00986,"120":0.00269,"122":0.00582,"123":0.00134,"125":0.2903,"126":0.00538,"127":0.00224,"128":0.00358,"129":0.00358,"130":0.00269,"131":0.01792,"132":0.00717,"133":0.01254,"134":0.0103,"135":0.02419,"136":0.33242,"137":1.6809,"138":0.06989,"139":0.00179,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 66 67 70 74 75 77 81 84 85 88 89 90 91 92 96 97 101 102 104 113 115 117 121 124 140 141"},F:{"46":0.00269,"50":0.00045,"89":0.00045,"90":0.0009,"91":0.0009,"95":0.00179,"99":0.00045,"115":0.00045,"117":0.00045,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 92 93 94 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0009,"13":0.00045,"16":0.01971,"17":0.00045,"18":0.00358,"84":0.00045,"89":0.0009,"90":0.00134,"92":0.00762,"100":0.0009,"107":0.00269,"108":0.00045,"109":0.0009,"110":0.00045,"111":0.00179,"112":0.00045,"114":0.00314,"119":0.00045,"122":0.0009,"126":0.00045,"128":0.00224,"129":0.00269,"131":0.00269,"132":0.00134,"133":0.00314,"134":0.00224,"135":0.00538,"136":0.08781,"137":0.32525,"138":0.03091,_:"14 15 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 113 115 116 117 118 120 121 123 124 125 127 130"},E:{"13":0.00045,"14":0.00045,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.4 16.0 16.2 16.4 16.5 17.0 17.2 17.3 18.0 26.0","5.1":0.0009,"12.1":0.0009,"13.1":0.00269,"14.1":0.00179,"15.2-15.3":0.00224,"15.5":0.00045,"15.6":0.00717,"16.1":0.00179,"16.3":0.00045,"16.6":0.00358,"17.1":0.00134,"17.4":0.0009,"17.5":0.00358,"17.6":0.00493,"18.1":0.00134,"18.2":0.0009,"18.3":0.00224,"18.4":0.00493,"18.5":0.04166},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00021,"5.0-5.1":0,"6.0-6.1":0.00042,"7.0-7.1":0.00042,"8.1-8.4":0,"9.0-9.2":0.00021,"9.3":0.00125,"10.0-10.2":0.0001,"10.3":0.00208,"11.0-11.2":0.01333,"11.3-11.4":0.00073,"12.0-12.1":0.00021,"12.2-12.5":0.00698,"13.0-13.1":0.0001,"13.2":0.00031,"13.3":0.00021,"13.4-13.7":0.00115,"14.0-14.4":0.00271,"14.5-14.8":0.00271,"15.0-15.1":0.00187,"15.2-15.3":0.00187,"15.4":0.00229,"15.5":0.0025,"15.6-15.8":0.03227,"16.0":0.00427,"16.1":0.00874,"16.2":0.00448,"16.3":0.00822,"16.4":0.00187,"16.5":0.00333,"16.6-16.7":0.0405,"17.0":0.00219,"17.1":0.00385,"17.2":0.00302,"17.3":0.00427,"17.4":0.0076,"17.5":0.01593,"17.6-17.7":0.04164,"18.0":0.01031,"18.1":0.02322,"18.2":0.01228,"18.3":0.05278,"18.4":0.05601,"18.5":0.6566,"26.0":0},P:{"22":0.01074,"23":0.01074,"24":0.03223,"25":0.04298,"26":0.05372,"27":0.08596,"28":0.33309,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03223},I:{"0":3.48019,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.0007,"4.4":0,"4.4.3-4.4.4":0.00279},K:{"0":0.28518,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00045,"11":0.00045,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":90.80408},R:{_:"0"},M:{"0":0.00955},Q:{_:"14.9"},O:{"0":0.16237},H:{"0":0.03}}; +module.exports={C:{"72":0.00189,"103":0.00189,"106":0.00378,"107":0.00189,"108":0.00189,"110":0.00189,"113":0.00189,"115":0.02267,"116":0.01322,"121":0.00189,"124":0.01322,"125":0.26068,"126":0.25879,"127":0.00567,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 109 111 112 114 117 118 119 120 122 123 128 129 3.5 3.6"},D:{"33":0.00189,"49":0.00189,"50":0.00189,"51":0.00189,"58":0.02456,"63":0.00189,"64":0.05289,"66":0.00756,"68":0.02456,"69":0.00378,"70":0.01889,"71":0.00567,"73":0.00567,"74":0.00189,"76":0.00567,"77":0.01133,"78":0.00378,"79":0.10012,"81":0.00189,"83":0.017,"86":0.00567,"87":0.07745,"88":0.04345,"92":0.00189,"93":0.00189,"95":0.01322,"98":0.03778,"99":0.02456,"101":0.01133,"102":0.00756,"103":0.06045,"104":0.00378,"105":0.00378,"106":0.00567,"107":0.00567,"108":0.00756,"109":0.44769,"110":0.00189,"111":0.02267,"112":0.00945,"113":0.00378,"114":0.017,"115":0.00756,"116":0.017,"117":0.02456,"118":0.01511,"119":0.41369,"120":0.04345,"121":0.02645,"122":0.12279,"123":0.26635,"124":8.70451,"125":2.79572,"126":0.01322,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 52 53 54 55 56 57 59 60 61 62 65 67 72 75 80 84 85 89 90 91 94 96 97 100 127 128"},F:{"42":0.00378,"72":0.00189,"95":0.00189,"105":0.00189,"107":0.017,"108":0.02267,"109":0.34947,"110":0.051,_:"9 11 12 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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00567,"14":0.00189,"15":0.00189,"16":0.00378,"17":0.00189,"18":0.02456,"84":0.00378,"89":0.00945,"90":0.00189,"92":0.04534,"99":0.00189,"100":0.00189,"107":0.03778,"108":0.00189,"109":0.00756,"110":0.00756,"111":0.00567,"112":0.00189,"114":0.00189,"115":0.00567,"116":0.00189,"117":0.00378,"118":0.00378,"119":0.00378,"120":0.01511,"121":0.01322,"122":0.03589,"123":0.08501,"124":1.34497,"125":0.74804,_:"13 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 113"},E:{"11":0.00189,"14":0.00378,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 16.0 17.6","13.1":0.00567,"14.1":0.017,"15.1":0.00189,"15.2-15.3":0.00189,"15.4":0.00189,"15.5":0.02834,"15.6":0.02834,"16.1":0.00378,"16.2":0.00189,"16.3":0.00378,"16.4":0.00567,"16.5":0.00945,"16.6":0.02078,"17.0":0.02078,"17.1":0.00378,"17.2":0.01511,"17.3":0.00756,"17.4":0.09634,"17.5":0.04345},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00152,"5.0-5.1":0.00152,"6.0-6.1":0.0038,"7.0-7.1":0.00532,"8.1-8.4":0.00152,"9.0-9.2":0.0038,"9.3":0.01748,"10.0-10.2":0.00304,"10.3":0.02736,"11.0-11.2":0.04029,"11.3-11.4":0.0076,"12.0-12.1":0.00456,"12.2-12.5":0.11021,"13.0-13.1":0.00228,"13.2":0.01064,"13.3":0.00532,"13.4-13.7":0.02432,"14.0-14.4":0.04181,"14.5-14.8":0.06461,"15.0-15.1":0.03116,"15.2-15.3":0.0342,"15.4":0.03876,"15.5":0.04865,"15.6-15.8":0.43781,"16.0":0.09957,"16.1":0.20523,"16.2":0.09957,"16.3":0.17254,"16.4":0.03648,"16.5":0.07373,"16.6-16.7":0.58755,"17.0":0.06385,"17.1":0.10413,"17.2":0.10869,"17.3":0.20066,"17.4":4.55677,"17.5":0.32152,"17.6":0},P:{"4":0.13244,"20":0.03056,"21":0.10188,"22":0.34638,"23":0.39732,"24":0.71313,"25":1.48739,"5.0-5.4":0.01019,"6.2-6.4":0.02038,"7.2-7.4":0.64182,_:"8.2 9.2 10.1","11.1-11.2":0.03056,"12.0":0.01019,"13.0":0.01019,"14.0":0.03056,"15.0":0.01019,"16.0":0.09169,"17.0":0.01019,"18.0":0.02038,"19.0":0.2445},I:{"0":0.12929,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00029},K:{"0":2.37794,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00567,"9":0.00189,"11":0.00378,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.80948},R:{_:"0"},M:{"0":0.03245},Q:{_:"14.9"},O:{"0":1.90632},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/SR.js b/node_modules/caniuse-lite/data/regions/SR.js index f487c7305..c71e1a1a9 100644 --- a/node_modules/caniuse-lite/data/regions/SR.js +++ b/node_modules/caniuse-lite/data/regions/SR.js @@ -1 +1 @@ -module.exports={C:{"4":0.00574,"65":0.00287,"115":0.72087,"127":0.00287,"128":0.00862,"133":0.0201,"135":0.00287,"136":0.09765,"137":0.00574,"138":0.01436,"139":1.5997,"140":0.10914,"141":0.00287,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 134 142 143 3.5 3.6"},D:{"39":0.00862,"40":0.00574,"41":0.01436,"42":0.01149,"43":0.00862,"44":0.00862,"45":0.01436,"46":0.01436,"47":0.00574,"48":0.00862,"49":0.01149,"50":0.00862,"51":0.00862,"52":0.00862,"53":0.01436,"54":0.00862,"55":0.00862,"56":0.01149,"57":0.01436,"58":0.01723,"59":0.01149,"60":0.01723,"65":0.00287,"69":0.0201,"73":0.00287,"75":0.00287,"76":0.00574,"79":0.01149,"81":0.00287,"83":0.00574,"84":0.00287,"87":0.00287,"92":0.00287,"93":0.01436,"100":0.00574,"101":0.01149,"103":0.0201,"109":0.32454,"110":0.00287,"111":0.06606,"112":0.00287,"114":0.00862,"116":0.02298,"120":0.00574,"121":0.01723,"122":0.08042,"123":0.02585,"124":0.02298,"125":4.36257,"126":0.01723,"127":0.00574,"128":0.03159,"129":0.00287,"130":0.03734,"131":0.01723,"132":0.08329,"133":0.03734,"134":0.04882,"135":0.11488,"136":1.17178,"137":10.08359,"138":0.5026,"139":0.00287,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 71 72 74 77 78 80 85 86 88 89 90 91 94 95 96 97 98 99 102 104 105 106 107 108 113 115 117 118 119 140 141"},F:{"87":0.00287,"89":0.00862,"95":0.0201,"111":0.00287,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00287,"18":0.00287,"92":0.00287,"109":0.0201,"115":0.00287,"122":0.00287,"128":0.00287,"131":0.00574,"132":0.00574,"133":0.04882,"134":0.02585,"135":0.03734,"136":0.47675,"137":2.98114,"138":0.15796,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 127 129 130"},E:{"14":0.00287,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.2 16.5 17.0 17.2 18.0 18.1 26.0","5.1":0.00287,"12.1":0.00287,"15.6":0.0718,"16.0":0.00287,"16.1":0.01149,"16.3":0.00287,"16.4":0.00287,"16.6":0.11201,"17.1":0.0201,"17.3":0.00862,"17.4":0.00862,"17.5":0.03734,"17.6":0.04595,"18.2":0.00574,"18.3":0.02872,"18.4":0.04882,"18.5":0.57727},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00164,"5.0-5.1":0,"6.0-6.1":0.00329,"7.0-7.1":0.00329,"8.1-8.4":0,"9.0-9.2":0.00164,"9.3":0.00987,"10.0-10.2":0.00082,"10.3":0.01645,"11.0-11.2":0.10527,"11.3-11.4":0.00576,"12.0-12.1":0.00164,"12.2-12.5":0.0551,"13.0-13.1":0.00082,"13.2":0.00247,"13.3":0.00164,"13.4-13.7":0.00905,"14.0-14.4":0.02138,"14.5-14.8":0.02138,"15.0-15.1":0.0148,"15.2-15.3":0.0148,"15.4":0.01809,"15.5":0.01974,"15.6-15.8":0.25496,"16.0":0.03372,"16.1":0.06909,"16.2":0.03537,"16.3":0.06497,"16.4":0.0148,"16.5":0.02632,"16.6-16.7":0.31994,"17.0":0.01727,"17.1":0.03043,"17.2":0.02385,"17.3":0.03372,"17.4":0.06004,"17.5":0.12584,"17.6-17.7":0.32898,"18.0":0.08142,"18.1":0.18341,"18.2":0.09705,"18.3":0.41699,"18.4":0.44248,"18.5":5.18723,"26.0":0},P:{"20":0.01027,"21":0.02053,"22":0.04107,"23":0.0308,"24":0.34906,"25":0.07187,"26":0.1848,"27":0.32853,"28":3.71646,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.14373,"17.0":0.01027,"19.0":0.01027},I:{"0":0.00711,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.2637,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01149,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.86949},R:{_:"0"},M:{"0":0.12829},Q:{"14.9":0.09978},O:{"0":0.27083},H:{"0":0}}; +module.exports={C:{"99":0.00287,"115":0.45043,"121":0.01435,"122":0.0459,"123":0.00287,"124":0.05451,"125":1.37999,"126":1.73575,"127":0.00861,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 128 129 3.5 3.6"},D:{"36":0.00574,"39":0.00287,"49":0.00287,"56":0.00287,"58":0.00861,"61":0.00287,"65":0.01721,"67":0.00287,"69":0.01721,"73":0.00287,"74":0.00287,"76":0.01148,"79":0.02295,"81":0.00861,"83":0.01721,"85":0.00574,"87":0.01148,"88":0.00287,"92":0.00287,"93":0.01435,"94":0.01721,"97":0.00287,"99":0.00287,"100":0.00574,"102":0.00287,"103":0.1205,"106":0.00287,"107":0.00287,"108":0.00287,"109":0.7316,"111":0.05451,"112":0.01148,"116":0.30125,"117":0.00861,"118":0.00574,"119":0.01148,"120":0.05451,"121":0.05738,"122":0.21518,"123":0.45617,"124":10.61817,"125":4.25473,"126":0.00861,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 57 59 60 62 63 64 66 68 70 71 72 75 77 78 80 84 86 89 90 91 95 96 98 101 104 105 110 113 114 115 127 128"},F:{"95":0.00287,"103":0.00574,"107":0.06599,"108":0.00861,"109":1.26523,"110":0.04304,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00287,"17":0.00287,"18":0.00861,"92":0.01721,"100":0.00861,"109":0.03443,"110":0.00287,"114":0.00861,"115":0.00287,"116":0.00861,"117":0.00574,"118":0.00574,"120":0.01721,"121":0.01435,"122":0.02295,"123":0.08894,"124":2.23782,"125":1.13899,_:"12 13 14 15 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 111 112 113 119"},E:{"11":0.00287,"13":0.01721,"14":0.00287,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.5 17.6","13.1":0.00287,"14.1":0.06025,"15.1":0.00574,"15.4":0.00574,"15.6":0.1578,"16.0":0.02869,"16.1":0.02295,"16.2":0.02008,"16.3":0.02869,"16.4":0.00287,"16.5":0.03156,"16.6":0.06599,"17.0":0.00287,"17.1":0.00861,"17.2":0.08033,"17.3":0.00574,"17.4":0.47625,"17.5":0.06312},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00284,"5.0-5.1":0.00284,"6.0-6.1":0.00709,"7.0-7.1":0.00993,"8.1-8.4":0.00284,"9.0-9.2":0.00709,"9.3":0.03263,"10.0-10.2":0.00568,"10.3":0.05108,"11.0-11.2":0.0752,"11.3-11.4":0.01419,"12.0-12.1":0.00851,"12.2-12.5":0.20574,"13.0-13.1":0.00426,"13.2":0.01986,"13.3":0.00993,"13.4-13.7":0.0454,"14.0-14.4":0.07804,"14.5-14.8":0.1206,"15.0-15.1":0.05817,"15.2-15.3":0.06385,"15.4":0.07236,"15.5":0.09081,"15.6-15.8":0.81727,"16.0":0.18587,"16.1":0.38309,"16.2":0.18587,"16.3":0.32208,"16.4":0.06811,"16.5":0.13763,"16.6-16.7":1.09679,"17.0":0.11919,"17.1":0.19439,"17.2":0.2029,"17.3":0.37458,"17.4":8.50613,"17.5":0.60018,"17.6":0},P:{"4":0.12391,"20":0.14456,"21":0.10326,"22":0.16521,"23":0.30977,"24":0.75376,"25":5.18342,"5.0-5.4":0.02065,"6.2-6.4":0.01033,"7.2-7.4":0.4853,_:"8.2 9.2 10.1 12.0","11.1-11.2":0.02065,"13.0":0.03098,"14.0":0.06195,"15.0":0.01033,"16.0":0.05163,"17.0":0.06195,"18.0":0.0413,"19.0":0.0826},I:{"0":0.04972,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.29233,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.0306,"11":0.24482,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.45349},R:{_:"0"},M:{"0":0.08556},Q:{"14.9":0.15686},O:{"0":0.61318},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/ST.js b/node_modules/caniuse-lite/data/regions/ST.js index 19b76bd97..2d5065f99 100644 --- a/node_modules/caniuse-lite/data/regions/ST.js +++ b/node_modules/caniuse-lite/data/regions/ST.js @@ -1 +1 @@ -module.exports={C:{"78":0.1787,"133":0.04368,"137":0.0278,"138":0.00794,"139":0.27003,"140":0.16281,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 135 136 141 142 143 3.5 3.6"},D:{"48":0.04368,"51":0.0278,"52":0.01986,"58":0.01986,"59":0.0278,"62":0.0278,"63":0.00794,"68":0.09133,"72":0.0278,"79":0.20649,"87":0.0278,"88":0.13501,"102":0.00794,"109":0.66713,"114":0.00794,"120":0.07942,"121":0.06354,"122":0.00794,"125":4.5468,"126":0.0278,"127":0.07148,"128":0.05559,"131":0.12707,"132":0.0278,"133":0.03574,"134":0.15487,"135":0.07148,"136":1.2191,"137":8.81165,"138":0.5758,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 53 54 55 56 57 60 61 64 65 66 67 69 70 71 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 124 129 130 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"89":0.04368,"92":0.00794,"109":0.07942,"116":0.03574,"128":0.00794,"129":0.00794,"130":0.00794,"131":0.05559,"132":0.03574,"133":0.01986,"135":0.00794,"136":0.45269,"137":3.71686,"138":0.20649,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 123 124 125 126 127 134"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 26.0","14.1":0.00794,"15.6":0.01986,"16.6":0.05559,"17.6":0.07942,"18.2":0.15487,"18.3":0.03574,"18.4":0.40504,"18.5":1.09203},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00052,"5.0-5.1":0,"6.0-6.1":0.00104,"7.0-7.1":0.00104,"8.1-8.4":0,"9.0-9.2":0.00052,"9.3":0.00311,"10.0-10.2":0.00026,"10.3":0.00518,"11.0-11.2":0.03318,"11.3-11.4":0.00181,"12.0-12.1":0.00052,"12.2-12.5":0.01737,"13.0-13.1":0.00026,"13.2":0.00078,"13.3":0.00052,"13.4-13.7":0.00285,"14.0-14.4":0.00674,"14.5-14.8":0.00674,"15.0-15.1":0.00467,"15.2-15.3":0.00467,"15.4":0.0057,"15.5":0.00622,"15.6-15.8":0.08035,"16.0":0.01063,"16.1":0.02177,"16.2":0.01115,"16.3":0.02048,"16.4":0.00467,"16.5":0.00829,"16.6-16.7":0.10083,"17.0":0.00544,"17.1":0.00959,"17.2":0.00752,"17.3":0.01063,"17.4":0.01892,"17.5":0.03966,"17.6-17.7":0.10368,"18.0":0.02566,"18.1":0.0578,"18.2":0.03059,"18.3":0.13142,"18.4":0.13945,"18.5":1.6348,"26.0":0},P:{"4":0.02024,"21":0.01012,"22":0.0911,"23":0.02024,"24":0.415,"25":0.16195,"26":0.05061,"27":0.07085,"28":0.96158,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02024,"19.0":0.07085},I:{"0":0.45133,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00036},K:{"0":0.68116,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00794,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.20399},R:{_:"0"},M:{"0":0.14467},Q:{_:"14.9"},O:{"0":2.33284},H:{"0":0}}; +module.exports={C:{"78":0.1227,"115":1.26381,"124":0.03068,"125":4.21475,"126":3.97548,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"36":0.06749,"43":0.2454,"52":0.07976,"56":0.01841,"62":0.00614,"70":0.01227,"79":0.00614,"81":0.04295,"83":0.06749,"87":0.07362,"89":0.54602,"95":0.00614,"100":0.00614,"103":0.03681,"106":0.03681,"109":1.6994,"113":0.00614,"116":0.03068,"117":0.00614,"119":0.04295,"120":0.03068,"121":0.04295,"122":0.04908,"123":0.33129,"124":10.52766,"125":2.00001,"126":0.00614,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 84 85 86 88 90 91 92 93 94 96 97 98 99 101 102 104 105 107 108 110 111 112 114 115 118 127 128"},F:{"74":0.01841,"95":0.00614,"107":0.15951,"109":0.25154,"110":0.03068,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01227,"18":0.02454,"90":0.00614,"92":0.00614,"100":0.00614,"109":0.45399,"112":0.00614,"114":0.00614,"117":0.05522,"118":0.01841,"119":0.00614,"120":0.01227,"122":0.01841,"123":0.08589,"124":21.58907,"125":8.49698,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 121"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 17.2 17.6","15.6":0.03068,"16.5":0.00614,"16.6":0.01227,"17.0":0.01227,"17.1":0.00614,"17.3":0.00614,"17.4":0.05522,"17.5":0.03681},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00019,"5.0-5.1":0.00019,"6.0-6.1":0.00047,"7.0-7.1":0.00065,"8.1-8.4":0.00019,"9.0-9.2":0.00047,"9.3":0.00214,"10.0-10.2":0.00037,"10.3":0.00335,"11.0-11.2":0.00494,"11.3-11.4":0.00093,"12.0-12.1":0.00056,"12.2-12.5":0.01351,"13.0-13.1":0.00028,"13.2":0.0013,"13.3":0.00065,"13.4-13.7":0.00298,"14.0-14.4":0.00512,"14.5-14.8":0.00792,"15.0-15.1":0.00382,"15.2-15.3":0.00419,"15.4":0.00475,"15.5":0.00596,"15.6-15.8":0.05367,"16.0":0.01221,"16.1":0.02516,"16.2":0.01221,"16.3":0.02115,"16.4":0.00447,"16.5":0.00904,"16.6-16.7":0.07202,"17.0":0.00783,"17.1":0.01276,"17.2":0.01332,"17.3":0.0246,"17.4":0.55856,"17.5":0.03941,"17.6":0},P:{"4":0.1937,"20":0.01019,"21":0.11214,"22":0.02039,"23":0.10195,"24":0.10195,"25":0.34662,_:"5.0-5.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.05097,"7.2-7.4":0.04078,"9.2":0.01019,"19.0":0.04078},I:{"0":0.12708,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00028},K:{"0":0.54284,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":37.43579},R:{_:"0"},M:{"0":0.00773},Q:{_:"14.9"},O:{"0":2.21908},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/SV.js b/node_modules/caniuse-lite/data/regions/SV.js index ffbcb37ae..4a69f4e3f 100644 --- a/node_modules/caniuse-lite/data/regions/SV.js +++ b/node_modules/caniuse-lite/data/regions/SV.js @@ -1 +1 @@ -module.exports={C:{"4":0.00192,"35":0.00384,"52":0.00192,"78":0.00192,"103":0.00192,"106":0.00384,"109":0.00192,"110":0.00192,"112":0.04992,"115":0.12288,"120":0.02496,"121":0.00192,"122":0.00384,"123":0.00192,"124":0.00576,"127":0.00192,"128":0.03648,"131":0.00192,"132":0.00384,"133":0.00384,"134":0.00384,"135":0.00384,"136":0.0384,"137":0.00576,"138":0.02688,"139":0.66048,"140":0.12288,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 107 108 111 113 114 116 117 118 119 125 126 129 130 141 142 143 3.5 3.6"},D:{"38":0.00192,"39":0.00384,"40":0.00192,"41":0.00384,"42":0.00384,"43":0.00384,"44":0.00384,"45":0.00192,"46":0.00384,"47":0.00384,"48":0.00384,"49":0.00384,"50":0.00384,"51":0.00384,"52":0.00384,"53":0.00384,"54":0.00384,"55":0.00384,"56":0.00576,"57":0.00384,"58":0.00384,"59":0.00384,"60":0.00384,"65":0.00192,"79":0.02304,"80":0.00384,"83":0.00384,"84":0.00192,"87":0.04224,"91":0.00576,"93":0.00192,"94":0.00384,"96":0.00192,"102":0.00192,"103":0.01152,"104":0.00192,"106":0.00192,"107":0.00192,"108":0.00576,"109":0.49152,"110":0.00768,"111":0.01728,"112":0.00768,"113":0.00384,"114":0.00384,"116":0.02112,"118":0.00192,"119":0.02496,"120":0.00384,"121":0.00384,"122":0.02304,"123":0.00576,"124":0.00768,"125":0.37248,"126":0.0192,"127":0.00768,"128":0.03264,"129":0.01536,"130":0.00768,"131":0.03648,"132":0.02496,"133":0.43776,"134":0.04416,"135":0.05952,"136":1.33248,"137":8.92608,"138":0.3744,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 81 85 86 88 89 90 92 95 97 98 99 100 101 105 115 117 139 140 141"},F:{"89":0.0096,"90":0.00384,"95":0.01152,"109":0.00384,"114":0.00192,"117":0.00192,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00576,"100":0.00192,"109":0.0096,"113":0.00192,"118":0.00384,"119":0.00192,"122":0.00384,"124":0.00384,"126":0.00192,"127":0.00384,"128":0.00384,"129":0.0096,"130":0.00768,"131":0.02112,"132":0.01152,"133":0.01152,"134":0.03072,"135":0.0192,"136":0.26688,"137":1.71648,"138":0.1632,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 114 115 116 117 120 121 123 125"},E:{"12":0.00192,_:"0 4 5 6 7 8 9 10 11 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.1 16.3 16.5 17.0 17.2 17.3 26.0","5.1":0.00384,"13.1":0.00384,"14.1":0.00384,"15.4":0.00192,"15.6":0.02304,"16.0":0.00384,"16.2":0.00192,"16.4":0.00768,"16.6":0.01152,"17.1":0.0096,"17.4":0.00768,"17.5":0.00576,"17.6":0.01728,"18.0":0.00192,"18.1":0.00576,"18.2":0.00192,"18.3":0.01536,"18.4":0.02496,"18.5":0.18624},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00074,"5.0-5.1":0,"6.0-6.1":0.00149,"7.0-7.1":0.00149,"8.1-8.4":0,"9.0-9.2":0.00074,"9.3":0.00446,"10.0-10.2":0.00037,"10.3":0.00743,"11.0-11.2":0.04758,"11.3-11.4":0.0026,"12.0-12.1":0.00074,"12.2-12.5":0.0249,"13.0-13.1":0.00037,"13.2":0.00112,"13.3":0.00074,"13.4-13.7":0.00409,"14.0-14.4":0.00966,"14.5-14.8":0.00966,"15.0-15.1":0.00669,"15.2-15.3":0.00669,"15.4":0.00818,"15.5":0.00892,"15.6-15.8":0.11522,"16.0":0.01524,"16.1":0.03122,"16.2":0.01598,"16.3":0.02936,"16.4":0.00669,"16.5":0.01189,"16.6-16.7":0.14458,"17.0":0.00781,"17.1":0.01375,"17.2":0.01078,"17.3":0.01524,"17.4":0.02713,"17.5":0.05687,"17.6-17.7":0.14867,"18.0":0.0368,"18.1":0.08288,"18.2":0.04386,"18.3":0.18844,"18.4":0.19996,"18.5":2.34419,"26.0":0},P:{"4":0.02016,"20":0.01008,"21":0.01008,"22":0.02016,"23":0.01008,"24":0.02016,"25":0.01008,"26":0.02016,"27":0.0504,"28":0.76602,_:"5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02016,"8.2":0.01008,"14.0":0.01008},I:{"0":0.29845,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00024},K:{"0":0.12928,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":76.63792},R:{_:"0"},M:{"0":0.1616},Q:{_:"14.9"},O:{"0":0.0404},H:{"0":0}}; +module.exports={C:{"52":0.00427,"65":0.01708,"78":0.00854,"88":0.00427,"91":0.01281,"102":0.01281,"103":0.01281,"104":0.00427,"106":0.00427,"108":0.00427,"111":0.00854,"113":0.00427,"114":0.00854,"115":0.35006,"116":0.00427,"118":0.00427,"119":0.00427,"120":0.08538,"121":0.0555,"122":0.00854,"123":0.02561,"124":0.03415,"125":1.11848,"126":1.05444,"127":0.01281,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 105 107 109 110 112 117 128 129 3.5 3.6"},D:{"34":0.00427,"38":0.00427,"49":0.01708,"72":0.00427,"73":0.00427,"74":0.00427,"75":0.00854,"77":0.00427,"78":0.00854,"79":0.04269,"81":0.00427,"85":0.00427,"86":0.00854,"87":0.06404,"88":0.00854,"89":0.00427,"91":0.00427,"92":0.00854,"93":0.00854,"94":0.01281,"95":0.00427,"96":0.00427,"97":0.00427,"98":0.00854,"99":0.01708,"100":0.00427,"101":0.00427,"102":0.00427,"103":0.20491,"104":0.02135,"105":0.00854,"106":0.01708,"107":0.00854,"108":0.01281,"109":1.93386,"110":0.02135,"111":0.01281,"112":0.01281,"113":0.01281,"114":0.02561,"115":0.00854,"116":0.08111,"117":0.00854,"118":0.03415,"119":0.11526,"120":0.20491,"121":0.06404,"122":0.2476,"123":0.56778,"124":18.26278,"125":7.46221,"126":0.01281,"127":0.00427,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 76 80 83 84 90 128"},F:{"28":0.00427,"95":0.03415,"107":0.43971,"108":0.00854,"109":1.55819,"110":0.06404,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00427,"18":0.00427,"85":0.00427,"87":0.00427,"92":0.01708,"104":0.00427,"109":0.02561,"110":0.01281,"113":0.00427,"114":0.00427,"115":0.00427,"116":0.00427,"117":0.00427,"118":0.00854,"119":0.01281,"120":0.02561,"121":0.02135,"122":0.04696,"123":0.09392,"124":3.07368,"125":1.61368,_:"12 13 14 15 16 79 80 81 83 84 86 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 111 112"},E:{"14":0.01281,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.4 17.6","5.1":0.02135,"12.1":0.00427,"13.1":0.00854,"14.1":0.01708,"15.1":0.00854,"15.2-15.3":0.00427,"15.5":0.00427,"15.6":0.0683,"16.0":0.00854,"16.1":0.00854,"16.2":0.00427,"16.3":0.01281,"16.4":0.00854,"16.5":0.04696,"16.6":0.07257,"17.0":0.00854,"17.1":0.01708,"17.2":0.02988,"17.3":0.02561,"17.4":0.42263,"17.5":0.08111},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00141,"5.0-5.1":0.00141,"6.0-6.1":0.00352,"7.0-7.1":0.00493,"8.1-8.4":0.00141,"9.0-9.2":0.00352,"9.3":0.0162,"10.0-10.2":0.00282,"10.3":0.02536,"11.0-11.2":0.03733,"11.3-11.4":0.00704,"12.0-12.1":0.00423,"12.2-12.5":0.10213,"13.0-13.1":0.00211,"13.2":0.00986,"13.3":0.00493,"13.4-13.7":0.02254,"14.0-14.4":0.03874,"14.5-14.8":0.05987,"15.0-15.1":0.02888,"15.2-15.3":0.0317,"15.4":0.03592,"15.5":0.04508,"15.6-15.8":0.4057,"16.0":0.09227,"16.1":0.19017,"16.2":0.09227,"16.3":0.15989,"16.4":0.03381,"16.5":0.06832,"16.6-16.7":0.54445,"17.0":0.05916,"17.1":0.09649,"17.2":0.10072,"17.3":0.18595,"17.4":4.22252,"17.5":0.29794,"17.6":0},P:{"4":0.05184,"20":0.01037,"21":0.09331,"22":0.05184,"23":0.10368,"24":0.197,"25":1.88703,_:"5.0-5.4 8.2 9.2 10.1 12.0 15.0","6.2-6.4":0.01037,"7.2-7.4":0.09331,"11.1-11.2":0.01037,"13.0":0.11405,"14.0":0.01037,"16.0":0.02074,"17.0":0.01037,"18.0":0.01037,"19.0":0.0311},I:{"0":0.05709,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.34386,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00854,"11":0.02561,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":48.52677},R:{_:"0"},M:{"0":0.26363},Q:{_:"14.9"},O:{"0":0.10316},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/SY.js b/node_modules/caniuse-lite/data/regions/SY.js index 36b2c1c16..37b917a91 100644 --- a/node_modules/caniuse-lite/data/regions/SY.js +++ b/node_modules/caniuse-lite/data/regions/SY.js @@ -1 +1 @@ -module.exports={C:{"43":0.0017,"44":0.0017,"48":0.0017,"50":0.0017,"52":0.01018,"72":0.00339,"89":0.0017,"92":0.0017,"98":0.0017,"99":0.0017,"102":0.0017,"103":0.0017,"106":0.0017,"111":0.0017,"113":0.0017,"115":0.22726,"118":0.0017,"122":0.0017,"126":0.0017,"127":0.01018,"128":0.01357,"131":0.0017,"133":0.00509,"134":0.00339,"135":0.0017,"136":0.01018,"137":0.01018,"138":0.0407,"139":0.40365,"140":0.05088,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 45 46 47 49 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 93 94 95 96 97 100 101 104 105 107 108 109 110 112 114 116 117 119 120 121 123 124 125 129 130 132 141 142 143 3.5 3.6"},D:{"11":0.0017,"29":0.0017,"36":0.0017,"38":0.00848,"40":0.0017,"42":0.0017,"43":0.00509,"45":0.00509,"46":0.00509,"47":0.0017,"49":0.00509,"50":0.0017,"51":0.0017,"55":0.00509,"56":0.00339,"58":0.25779,"59":0.0017,"63":0.0441,"64":0.00509,"66":0.00339,"67":0.0017,"68":0.01866,"69":0.00339,"70":0.01357,"71":0.00509,"72":0.0017,"73":0.00848,"74":0.00339,"75":0.00339,"76":0.0017,"77":0.0017,"78":0.00678,"79":0.05427,"80":0.00509,"81":0.00848,"83":0.01696,"84":0.00339,"85":0.0017,"86":0.00339,"87":0.01866,"88":0.01018,"89":0.00678,"90":0.01187,"91":0.00339,"92":0.00509,"93":0.00509,"94":0.00848,"95":0.00339,"96":0.0017,"97":0.01018,"98":0.03392,"99":0.00678,"100":0.01696,"101":0.00339,"102":0.01187,"103":0.01526,"104":0.00678,"105":0.01526,"106":0.01696,"107":0.01018,"108":0.01018,"109":0.74963,"110":0.0017,"111":0.01018,"112":0.00339,"113":0.00678,"114":0.01357,"115":0.0017,"116":0.01696,"117":0.00848,"118":0.01357,"119":0.01187,"120":0.03901,"121":0.00848,"122":0.02035,"123":0.03222,"124":0.00848,"125":1.12614,"126":0.05597,"127":0.02205,"128":0.01187,"129":0.01187,"130":0.03053,"131":0.08819,"132":0.02883,"133":0.0441,"134":0.05088,"135":0.13059,"136":0.66992,"137":3.35299,"138":0.12042,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 37 39 41 44 48 52 53 54 57 60 61 62 65 139 140 141"},F:{"73":0.0017,"79":0.10515,"84":0.00339,"86":0.0017,"87":0.03222,"88":0.00509,"89":0.03222,"90":0.02544,"95":0.01526,"114":0.0017,"117":0.0017,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 85 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0017,"15":0.0017,"17":0.0017,"18":0.01018,"84":0.0017,"89":0.0017,"90":0.00509,"92":0.02714,"100":0.00339,"109":0.02374,"112":0.0017,"114":0.00509,"122":0.00509,"124":0.0017,"126":0.00339,"128":0.0017,"129":0.00339,"130":0.00339,"131":0.00339,"132":0.00339,"133":0.00339,"134":0.00339,"135":0.00678,"136":0.16112,"137":0.63261,"138":0.06275,_:"12 13 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 119 120 121 123 125 127"},E:{"14":0.0017,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.5 17.0 17.2 17.3 26.0","5.1":0.10346,"13.1":0.0017,"14.1":0.00678,"15.1":0.00339,"15.6":0.00848,"16.3":0.00339,"16.4":0.00509,"16.6":0.01357,"17.1":0.00339,"17.4":0.0017,"17.5":0.00339,"17.6":0.01187,"18.0":0.0017,"18.1":0.00339,"18.2":0.00339,"18.3":0.00678,"18.4":0.00848,"18.5":0.02205},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00037,"5.0-5.1":0,"6.0-6.1":0.00074,"7.0-7.1":0.00074,"8.1-8.4":0,"9.0-9.2":0.00037,"9.3":0.00223,"10.0-10.2":0.00019,"10.3":0.00372,"11.0-11.2":0.02381,"11.3-11.4":0.0013,"12.0-12.1":0.00037,"12.2-12.5":0.01246,"13.0-13.1":0.00019,"13.2":0.00056,"13.3":0.00037,"13.4-13.7":0.00205,"14.0-14.4":0.00484,"14.5-14.8":0.00484,"15.0-15.1":0.00335,"15.2-15.3":0.00335,"15.4":0.00409,"15.5":0.00446,"15.6-15.8":0.05766,"16.0":0.00763,"16.1":0.01562,"16.2":0.008,"16.3":0.01469,"16.4":0.00335,"16.5":0.00595,"16.6-16.7":0.07235,"17.0":0.00391,"17.1":0.00688,"17.2":0.00539,"17.3":0.00763,"17.4":0.01358,"17.5":0.02846,"17.6-17.7":0.07439,"18.0":0.01841,"18.1":0.04148,"18.2":0.02195,"18.3":0.0943,"18.4":0.10006,"18.5":1.17302,"26.0":0},P:{"4":1.27267,"20":0.0303,"21":0.0606,"22":0.0707,"23":0.10101,"24":0.11111,"25":0.40402,"26":0.20201,"27":0.46463,"28":0.77774,"5.0-5.4":0.0303,"6.2-6.4":0.28282,"7.2-7.4":0.23231,"8.2":0.0505,"9.2":0.11111,"10.1":0.0202,"11.1-11.2":0.0505,"12.0":0.0404,"13.0":0.12121,"14.0":0.0808,"15.0":0.0303,"16.0":0.15151,"17.0":0.14141,"18.0":0.0202,"19.0":0.0404},I:{"0":0.04144,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.11733,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.0017,"11":0.00678,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.00413},R:{_:"0"},M:{"0":0.09133},Q:{_:"14.9"},O:{"0":0.66424},H:{"0":0.07}}; +module.exports={C:{"29":0.00061,"31":0.00121,"34":0.00061,"36":0.00061,"39":0.00484,"41":0.00061,"43":0.00121,"44":0.00182,"47":0.00061,"48":0.00121,"49":0.00061,"52":0.00484,"56":0.00061,"58":0.00061,"61":0.00061,"63":0.00121,"72":0.00303,"74":0.00061,"76":0.00061,"78":0.00908,"81":0.00061,"95":0.00061,"98":0.00061,"101":0.00484,"102":0.00061,"103":0.00061,"106":0.00061,"107":0.00242,"110":0.00061,"111":0.00121,"112":0.00121,"113":0.00303,"114":0.00061,"115":0.12221,"116":0.00061,"118":0.00061,"119":0.00061,"120":0.00182,"121":0.00121,"122":0.00363,"123":0.00484,"124":0.00605,"125":0.1325,"126":0.07442,"127":0.00121,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 32 33 35 37 38 40 42 45 46 50 51 53 54 55 57 59 60 62 64 65 66 67 68 69 70 71 73 75 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 99 100 104 105 108 109 117 128 129 3.5 3.6"},D:{"11":0.00242,"26":0.00061,"27":0.00061,"28":0.00061,"31":0.00242,"32":0.00061,"33":0.00121,"34":0.00061,"36":0.00121,"37":0.00061,"38":0.00968,"39":0.00061,"40":0.00121,"43":0.00545,"44":0.00424,"45":0.00061,"46":0.00061,"47":0.00182,"49":0.00242,"50":0.00242,"52":0.00061,"53":0.00061,"54":0.00061,"55":0.00182,"56":0.00484,"57":0.00061,"58":0.03146,"59":0.00182,"60":0.00061,"61":0.00121,"62":0.00061,"63":0.00605,"64":0.00424,"65":0.00061,"66":0.00726,"67":0.00121,"68":0.01694,"69":0.00363,"70":0.01634,"71":0.00242,"72":0.00242,"73":0.00787,"74":0.00182,"75":0.00182,"76":0.00182,"77":0.00061,"78":0.00666,"79":0.02118,"80":0.00424,"81":0.01089,"83":0.02723,"84":0.00061,"85":0.00242,"86":0.00424,"87":0.0115,"88":0.01392,"89":0.00484,"90":0.00424,"91":0.02481,"92":0.00484,"93":0.00303,"94":0.0121,"95":0.00242,"96":0.00666,"97":0.00242,"98":0.01876,"99":0.00605,"100":0.00303,"101":0.00121,"102":0.01089,"103":0.01331,"104":0.00484,"105":0.01452,"106":0.00484,"107":0.00484,"108":0.00484,"109":0.59109,"110":0.00363,"111":0.01331,"112":0.00666,"113":0.00182,"114":0.02481,"115":0.00666,"116":0.0115,"117":0.01029,"118":0.00787,"119":0.01634,"120":0.03449,"121":0.10588,"122":0.05627,"123":0.10225,"124":1.27534,"125":0.53785,"126":0.00121,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 29 30 35 41 42 48 51 127 128"},F:{"79":0.00424,"81":0.00061,"83":0.00061,"84":0.00061,"85":0.00121,"86":0.00061,"95":0.02239,"105":0.00061,"107":0.00605,"108":0.00182,"109":0.08591,"110":0.00666,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 82 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00061,"14":0.00061,"15":0.00121,"16":0.00061,"17":0.00182,"18":0.00787,"84":0.00061,"90":0.00061,"92":0.00968,"95":0.00061,"100":0.00242,"101":0.00061,"107":0.00182,"108":0.00061,"109":0.00605,"110":0.00061,"112":0.00061,"113":0.00061,"114":0.00061,"115":0.00061,"116":0.00061,"117":0.00061,"118":0.00061,"119":0.00121,"120":0.01573,"121":0.00242,"122":0.00484,"123":0.00666,"124":0.22446,"125":0.13915,_:"13 79 80 81 83 85 86 87 88 89 91 93 94 96 97 98 99 102 103 104 105 106 111"},E:{"14":0.00121,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 16.0 17.6","5.1":0.09559,"13.1":0.00061,"14.1":0.00545,"15.1":0.00061,"15.2-15.3":0.00121,"15.4":0.00061,"15.5":0.00182,"15.6":0.03146,"16.1":0.00121,"16.2":0.00121,"16.3":0.00061,"16.4":0.00303,"16.5":0.00061,"16.6":0.00666,"17.0":0.00242,"17.1":0.00121,"17.2":0.00242,"17.3":0.00666,"17.4":0.00605,"17.5":0.00061},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00044,"5.0-5.1":0.00044,"6.0-6.1":0.00111,"7.0-7.1":0.00155,"8.1-8.4":0.00044,"9.0-9.2":0.00111,"9.3":0.0051,"10.0-10.2":0.00089,"10.3":0.00798,"11.0-11.2":0.01175,"11.3-11.4":0.00222,"12.0-12.1":0.00133,"12.2-12.5":0.03215,"13.0-13.1":0.00067,"13.2":0.0031,"13.3":0.00155,"13.4-13.7":0.00709,"14.0-14.4":0.01219,"14.5-14.8":0.01884,"15.0-15.1":0.00909,"15.2-15.3":0.00998,"15.4":0.01131,"15.5":0.01419,"15.6-15.8":0.1277,"16.0":0.02904,"16.1":0.05986,"16.2":0.02904,"16.3":0.05033,"16.4":0.01064,"16.5":0.0215,"16.6-16.7":0.17137,"17.0":0.01862,"17.1":0.03037,"17.2":0.0317,"17.3":0.05853,"17.4":1.32908,"17.5":0.09378,"17.6":0},P:{"4":3.70198,"20":0.13113,"21":0.3127,"22":0.34296,"23":0.64558,"24":0.48418,"25":0.88767,"5.0-5.4":0.14122,"6.2-6.4":0.61532,"7.2-7.4":0.68593,"8.2":0.09078,"9.2":0.29253,"10.1":0.09078,"11.1-11.2":0.17148,"12.0":0.07061,"13.0":0.29253,"14.0":0.36314,"15.0":0.10087,"16.0":0.30261,"17.0":0.36314,"18.0":0.10087,"19.0":0.20174},I:{"0":0.23393,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00005,"4.2-4.3":0.00014,"4.4":0,"4.4.3-4.4.4":0.00052},K:{"0":1.63304,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00061,"9":0.00061,"11":0.01634,_:"6 8 10 5.5"},S:{"2.5":0.00939,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":79.52524},R:{_:"0"},M:{"0":0.07515},Q:{_:"14.9"},O:{"0":1.17425},H:{"0":0.18}}; diff --git a/node_modules/caniuse-lite/data/regions/SZ.js b/node_modules/caniuse-lite/data/regions/SZ.js index c55da7e23..8e6347ca1 100644 --- a/node_modules/caniuse-lite/data/regions/SZ.js +++ b/node_modules/caniuse-lite/data/regions/SZ.js @@ -1 +1 @@ -module.exports={C:{"66":0.00408,"69":0.00408,"73":0.00204,"111":0.00613,"114":0.00408,"115":0.05105,"118":0.00204,"119":0.00204,"121":0.00204,"126":0.00204,"127":0.00204,"128":0.00817,"133":0.00204,"137":0.01225,"138":0.04288,"139":0.26138,"140":0.04492,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 116 117 120 122 123 124 125 129 130 131 132 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.00408,"40":0.00204,"41":0.00204,"42":0.00204,"43":0.00613,"47":0.00408,"48":0.00204,"49":0.00204,"51":0.00204,"52":0.00204,"53":0.00204,"56":0.00204,"57":0.00204,"58":0.00204,"59":0.00204,"62":0.00204,"70":0.00408,"74":0.02246,"79":0.00204,"81":0.00408,"83":0.02655,"86":0.00613,"88":0.00817,"93":0.00408,"94":0.00817,"95":0.00817,"97":0.00408,"98":0.00204,"99":0.00613,"101":0.00408,"103":0.01225,"106":0.00817,"107":0.00204,"108":0.00204,"109":0.31243,"110":0.0245,"111":0.00817,"113":0.00204,"114":0.01634,"116":0.04492,"118":0.01838,"119":0.00613,"120":0.01634,"121":0.00408,"122":0.00204,"124":0.02246,"125":0.5738,"126":0.01634,"127":0.01634,"128":0.00817,"130":0.00204,"131":0.07964,"132":0.00817,"133":0.03267,"134":0.1021,"135":0.05309,"136":0.79434,"137":5.13155,"138":0.18991,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 44 45 46 50 54 55 60 61 63 64 65 66 67 68 69 71 72 73 75 76 77 78 80 84 85 87 89 90 91 92 96 100 102 104 105 112 115 117 123 129 139 140 141"},F:{"24":0.00408,"40":0.00204,"42":0.00204,"45":0.00204,"46":0.00204,"79":0.01021,"84":0.00204,"86":0.02246,"87":0.03063,"88":0.00204,"89":0.04288,"90":0.05718,"95":0.0245,"103":0.00204,"114":0.00408,"117":0.00613,_:"9 11 12 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 43 44 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 85 91 92 93 94 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01838,"14":0.17765,"16":0.00408,"17":0.00204,"18":0.01429,"84":0.01225,"86":0.00204,"89":0.00408,"90":0.01634,"92":0.04697,"100":0.01021,"109":0.05309,"110":0.00613,"112":0.00204,"114":0.00204,"119":0.00204,"122":0.00204,"124":0.00204,"126":0.00204,"127":0.00817,"128":0.00204,"129":0.01021,"130":0.03267,"131":0.01429,"132":0.0245,"133":0.01429,"134":0.02246,"135":0.04288,"136":0.44516,"137":2.16452,"138":0.12456,_:"13 15 79 80 81 83 85 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 111 113 115 116 117 118 120 121 123 125"},E:{"14":0.00408,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.3","5.1":0.00408,"12.1":0.00204,"13.1":0.01429,"14.1":0.00817,"15.6":0.00613,"16.6":0.00613,"17.1":0.00204,"17.2":0.00204,"17.4":0.00613,"17.5":0.01021,"17.6":0.04901,"18.0":0.00204,"18.1":0.00204,"18.2":0.00408,"18.3":0.0776,"18.4":0.03471,"18.5":0.25933,"26.0":0.0245},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00102,"5.0-5.1":0,"6.0-6.1":0.00204,"7.0-7.1":0.00204,"8.1-8.4":0,"9.0-9.2":0.00102,"9.3":0.00611,"10.0-10.2":0.00051,"10.3":0.01019,"11.0-11.2":0.06519,"11.3-11.4":0.00357,"12.0-12.1":0.00102,"12.2-12.5":0.03412,"13.0-13.1":0.00051,"13.2":0.00153,"13.3":0.00102,"13.4-13.7":0.0056,"14.0-14.4":0.01324,"14.5-14.8":0.01324,"15.0-15.1":0.00917,"15.2-15.3":0.00917,"15.4":0.0112,"15.5":0.01222,"15.6-15.8":0.15789,"16.0":0.02088,"16.1":0.04278,"16.2":0.0219,"16.3":0.04024,"16.4":0.00917,"16.5":0.0163,"16.6-16.7":0.19812,"17.0":0.0107,"17.1":0.01884,"17.2":0.01477,"17.3":0.02088,"17.4":0.03718,"17.5":0.07792,"17.6-17.7":0.20372,"18.0":0.05042,"18.1":0.11358,"18.2":0.0601,"18.3":0.25822,"18.4":0.27401,"18.5":3.21223,"26.0":0},P:{"4":0.09199,"20":0.01022,"21":0.01022,"22":0.02044,"23":0.03066,"24":0.13287,"25":0.10221,"26":0.23508,"27":0.51105,"28":1.71714,_:"5.0-5.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","6.2-6.4":0.02044,"7.2-7.4":0.31685,"11.1-11.2":0.01022,"13.0":0.01022,"17.0":0.03066,"19.0":0.02044},I:{"0":0.04767,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":10.61267,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00408,"11":0.00408,_:"6 7 8 9 5.5"},S:{"2.5":0.01592,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.06479},R:{_:"0"},M:{"0":0.58093},Q:{"14.9":0.04775},O:{"0":0.3024},H:{"0":0.25}}; +module.exports={C:{"34":0.00889,"48":0.00178,"52":0.01067,"56":0.00178,"60":0.00178,"66":0.00178,"78":0.00356,"111":0.00356,"113":0.00178,"115":0.08357,"120":0.00178,"122":0.00356,"123":0.00178,"124":0.00711,"125":0.12802,"126":0.11557,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 59 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 114 116 117 118 119 121 127 128 129 3.5 3.6"},D:{"11":0.00178,"22":0.00178,"38":0.00533,"40":0.00533,"56":0.00178,"57":0.00178,"64":0.00356,"70":0.02311,"71":0.00178,"73":0.00178,"78":0.00356,"79":0.00178,"81":0.00356,"85":0.00178,"86":0.02845,"87":0.00889,"88":0.01245,"90":0.00533,"91":0.00533,"93":0.00178,"94":0.00356,"95":0.00889,"98":0.00533,"99":0.01067,"100":0.00533,"102":0.01067,"103":0.02311,"105":0.00533,"106":0.00178,"107":0.00356,"108":0.00178,"109":0.51384,"111":0.00533,"112":0.00356,"113":0.00356,"114":0.01422,"115":0.00356,"116":0.02134,"117":0.01245,"118":0.01422,"119":0.04623,"120":0.04801,"121":0.01067,"122":0.09423,"123":0.16002,"124":3.89382,"125":1.80467,"126":0.00356,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 65 66 67 68 69 72 74 75 76 77 80 83 84 89 92 96 97 101 104 110 127 128"},F:{"40":0.00356,"50":0.00178,"62":0.00178,"63":0.00356,"75":0.00356,"76":0.00533,"79":0.00711,"80":0.00178,"82":0.00533,"95":0.03378,"102":0.00533,"107":0.01422,"108":0.01422,"109":0.39827,"110":0.02667,_:"9 11 12 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 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 64 65 66 67 68 69 70 71 72 73 74 77 78 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.03556,"14":0.00178,"15":0.00711,"17":0.00178,"18":0.07468,"80":0.00178,"84":0.02134,"89":0.00711,"90":0.01067,"92":0.032,"100":0.00356,"105":0.00178,"108":0.00178,"109":0.03023,"110":0.00711,"112":0.00178,"114":0.00178,"115":0.00533,"116":0.00533,"117":0.00178,"118":0.00178,"119":0.00711,"120":0.01067,"121":0.01778,"122":0.01778,"123":0.08357,"124":1.55575,"125":0.86944,_:"13 16 79 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 106 107 111 113"},E:{"14":0.01422,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 16.0 16.2 16.5 17.1 17.6","12.1":0.00356,"13.1":0.00356,"14.1":0.04978,"15.1":0.00178,"15.2-15.3":0.00178,"15.4":0.00533,"15.5":0.03023,"15.6":0.01067,"16.1":0.00533,"16.3":0.01422,"16.4":0.00178,"16.6":0.016,"17.0":0.032,"17.2":0.00178,"17.3":0.00533,"17.4":0.09601,"17.5":0.00889},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00068,"5.0-5.1":0.00068,"6.0-6.1":0.00169,"7.0-7.1":0.00237,"8.1-8.4":0.00068,"9.0-9.2":0.00169,"9.3":0.00777,"10.0-10.2":0.00135,"10.3":0.01217,"11.0-11.2":0.01791,"11.3-11.4":0.00338,"12.0-12.1":0.00203,"12.2-12.5":0.049,"13.0-13.1":0.00101,"13.2":0.00473,"13.3":0.00237,"13.4-13.7":0.01081,"14.0-14.4":0.01859,"14.5-14.8":0.02872,"15.0-15.1":0.01385,"15.2-15.3":0.01521,"15.4":0.01723,"15.5":0.02163,"15.6-15.8":0.19464,"16.0":0.04427,"16.1":0.09124,"16.2":0.04427,"16.3":0.07671,"16.4":0.01622,"16.5":0.03278,"16.6-16.7":0.26122,"17.0":0.02839,"17.1":0.0463,"17.2":0.04832,"17.3":0.08921,"17.4":2.02586,"17.5":0.14294,"17.6":0},P:{"4":0.2452,"20":0.01022,"21":0.07152,"22":0.10217,"23":0.65386,"24":0.35758,"25":0.77646,_:"5.0-5.4 6.2-6.4 8.2 10.1","7.2-7.4":1.33837,"9.2":0.01022,"11.1-11.2":0.01022,"12.0":0.01022,"13.0":0.01022,"14.0":0.02043,"15.0":0.01022,"16.0":0.03065,"17.0":0.02043,"18.0":0.01022,"19.0":0.10217},I:{"0":0.04095,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":16.45729,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.15622,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.74689},R:{_:"0"},M:{"0":0.09044},Q:{_:"14.9"},O:{"0":0.34532},H:{"0":1.59}}; diff --git a/node_modules/caniuse-lite/data/regions/TC.js b/node_modules/caniuse-lite/data/regions/TC.js index f7f4d9189..f42b65400 100644 --- a/node_modules/caniuse-lite/data/regions/TC.js +++ b/node_modules/caniuse-lite/data/regions/TC.js @@ -1 +1 @@ -module.exports={C:{"115":4.76151,"118":0.00985,"128":0.00492,"137":0.00492,"138":0.02462,"139":1.26547,"140":0.0197,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.00985,"40":0.01477,"41":0.02462,"42":0.02462,"43":0.00492,"44":0.00985,"45":0.02462,"46":0.00492,"47":0.01477,"48":0.02462,"49":0.02462,"50":0.02954,"51":0.02462,"52":0.00985,"53":0.00985,"54":0.02954,"55":0.02462,"56":0.01477,"57":0.02462,"58":0.00492,"59":0.01477,"60":0.02462,"79":0.02462,"93":0.00492,"100":0.00492,"103":0.32498,"108":0.00492,"109":0.28067,"112":0.02462,"113":0.00985,"116":0.00492,"121":0.02462,"122":0.00985,"124":0.01477,"125":5.61336,"126":0.18711,"127":0.00985,"128":0.15757,"130":0.00492,"131":0.02462,"132":0.00492,"133":0.1034,"134":0.15757,"135":5.38686,"136":4.23956,"137":10.66538,"138":0.15757,"139":0.03447,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 101 102 104 105 106 107 110 111 114 115 117 118 119 120 123 129 140 141"},F:{"113":0.00492,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"100":0.00492,"109":0.00492,"112":0.00985,"131":0.00492,"133":0.00492,"134":0.02462,"135":0.06894,"136":1.71848,"137":5.62321,"138":0.31021,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 16.0 16.2 17.0 18.0 18.2","14.1":0.00492,"15.1":0.00492,"15.4":0.00985,"15.5":0.00492,"15.6":0.16742,"16.1":0.02462,"16.3":0.01477,"16.4":0.00492,"16.5":0.07878,"16.6":0.1428,"17.1":0.09356,"17.2":0.01477,"17.3":0.03447,"17.4":0.05909,"17.5":0.11325,"17.6":0.58596,"18.1":0.16742,"18.3":0.1428,"18.4":0.11818,"18.5":3.2006,"26.0":0.01477},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00503,"5.0-5.1":0,"6.0-6.1":0.01007,"7.0-7.1":0.01007,"8.1-8.4":0,"9.0-9.2":0.00503,"9.3":0.03021,"10.0-10.2":0.00252,"10.3":0.05034,"11.0-11.2":0.3222,"11.3-11.4":0.01762,"12.0-12.1":0.00503,"12.2-12.5":0.16865,"13.0-13.1":0.00252,"13.2":0.00755,"13.3":0.00503,"13.4-13.7":0.02769,"14.0-14.4":0.06545,"14.5-14.8":0.06545,"15.0-15.1":0.04531,"15.2-15.3":0.04531,"15.4":0.05538,"15.5":0.06041,"15.6-15.8":0.78033,"16.0":0.1032,"16.1":0.21144,"16.2":0.10824,"16.3":0.19886,"16.4":0.04531,"16.5":0.08055,"16.6-16.7":0.97919,"17.0":0.05286,"17.1":0.09314,"17.2":0.073,"17.3":0.1032,"17.4":0.18375,"17.5":0.38513,"17.6-17.7":1.00688,"18.0":0.2492,"18.1":0.56133,"18.2":0.29703,"18.3":1.27621,"18.4":1.35425,"18.5":15.87591,"26.0":0},P:{"4":0.02166,"22":0.04333,"24":0.01083,"25":0.04333,"27":0.05416,"28":1.10481,_:"20 21 23 26 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.07582,"7.2-7.4":0.02166},I:{"0":0.02027,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.17258,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.19039},R:{_:"0"},M:{"0":0.12182},Q:{"14.9":0.00508},O:{"0":0.00508},H:{"0":0}}; +module.exports={C:{"92":0.00429,"97":0.00429,"111":0.00429,"115":3.45774,"124":0.01287,"125":0.36465,"126":0.17589,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"65":0.00858,"76":0.02574,"79":0.05577,"80":0.01287,"81":0.00429,"83":0.00858,"87":0.00429,"89":0.00429,"90":0.02145,"93":0.00429,"94":0.00858,"101":0.00429,"102":0.00429,"103":0.06864,"104":0.00429,"105":0.1287,"109":0.46332,"110":0.00429,"112":0.01287,"113":0.08151,"114":0.00858,"115":0.00858,"116":0.03861,"117":0.00429,"118":0.00858,"119":0.02574,"120":0.06864,"121":0.05148,"122":0.28743,"123":1.31274,"124":12.50106,"125":3.35049,"126":0.03003,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 77 78 84 85 86 88 91 92 95 96 97 98 99 100 106 107 108 111 127 128"},F:{"95":0.01716,"107":0.02574,"108":0.00858,"109":0.45903,"110":0.00858,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01716,"92":0.00429,"109":0.02145,"112":0.02145,"114":0.02574,"117":0.00429,"120":0.20592,"121":0.03432,"122":0.01716,"123":0.97383,"124":8.44701,"125":3.45345,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 115 116 118 119"},E:{"14":0.00858,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 17.6","13.1":0.08151,"14.1":0.20163,"15.2-15.3":0.15873,"15.4":0.06435,"15.5":0.06006,"15.6":0.21879,"16.0":0.14586,"16.1":0.18876,"16.2":0.09009,"16.3":0.15873,"16.4":0.10725,"16.5":0.01716,"16.6":0.9438,"17.0":0.03861,"17.1":0.11583,"17.2":0.07722,"17.3":0.10296,"17.4":2.06349,"17.5":0.13728},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00596,"5.0-5.1":0.00596,"6.0-6.1":0.0149,"7.0-7.1":0.02086,"8.1-8.4":0.00596,"9.0-9.2":0.0149,"9.3":0.06854,"10.0-10.2":0.01192,"10.3":0.10728,"11.0-11.2":0.15795,"11.3-11.4":0.0298,"12.0-12.1":0.01788,"12.2-12.5":0.43211,"13.0-13.1":0.00894,"13.2":0.04172,"13.3":0.02086,"13.4-13.7":0.09536,"14.0-14.4":0.16391,"14.5-14.8":0.25331,"15.0-15.1":0.12218,"15.2-15.3":0.1341,"15.4":0.15198,"15.5":0.19073,"15.6-15.8":1.71654,"16.0":0.39039,"16.1":0.80463,"16.2":0.39039,"16.3":0.67648,"16.4":0.14304,"16.5":0.28907,"16.6-16.7":2.30362,"17.0":0.25033,"17.1":0.40827,"17.2":0.42615,"17.3":0.78675,"17.4":17.86569,"17.5":1.26058,"17.6":0},P:{"4":0.03297,"20":0.04396,"21":0.01099,"22":0.05495,"23":0.03297,"24":0.26376,"25":4.32999,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 17.0 18.0 19.0","7.2-7.4":0.01099,"11.1-11.2":0.01099,"14.0":0.01099,"15.0":0.01099,"16.0":0.02198},I:{"0":0.01137,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.11989,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.06006,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.97803},R:{_:"0"},M:{"0":0.17698},Q:{"14.9":0.01142},O:{"0":0.02855},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TD.js b/node_modules/caniuse-lite/data/regions/TD.js index 5c113669e..e575999d2 100644 --- a/node_modules/caniuse-lite/data/regions/TD.js +++ b/node_modules/caniuse-lite/data/regions/TD.js @@ -1 +1 @@ -module.exports={C:{"59":0.00327,"63":0.00327,"72":0.00327,"73":0.00327,"86":0.01145,"87":0.00327,"91":0.00818,"95":0.00818,"102":0.00327,"108":0.00491,"112":0.00164,"115":0.00982,"116":0.00327,"119":0.00491,"122":0.00327,"123":0.00327,"127":0.02127,"128":0.01145,"134":0.00327,"135":0.00491,"138":0.22413,"139":0.66422,"140":0.1636,"142":0.00164,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 64 65 66 67 68 69 70 71 74 75 76 77 78 79 80 81 82 83 84 85 88 89 90 92 93 94 96 97 98 99 100 101 103 104 105 106 107 109 110 111 113 114 117 118 120 121 124 125 126 129 130 131 132 133 136 137 141 143 3.5 3.6"},D:{"34":0.00327,"37":0.02945,"41":0.00491,"42":0.00164,"43":0.00327,"45":0.00327,"50":0.00164,"56":0.00327,"58":0.018,"59":0.00818,"60":0.00327,"71":0.00327,"74":0.00327,"77":0.00818,"78":0.018,"79":0.00327,"81":0.00327,"84":0.01309,"87":0.00982,"88":0.00491,"89":0.00982,"92":0.00164,"94":0.00818,"99":0.00491,"103":0.02945,"108":0.00818,"109":0.13252,"111":0.01636,"113":0.00491,"114":0.02127,"115":0.00327,"116":0.02781,"119":0.00327,"120":0.00327,"121":0.03599,"122":0.01472,"123":0.0409,"124":0.00654,"125":0.07198,"126":0.16687,"127":0.02945,"128":0.01472,"129":0.00327,"130":0.05726,"131":0.04254,"132":0.08016,"133":0.03108,"134":0.02781,"135":0.27158,"136":0.53497,"137":2.99388,"138":0.24049,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 38 39 40 44 46 47 48 49 51 52 53 54 55 57 61 62 63 64 65 66 67 68 69 70 72 73 75 76 80 83 85 86 90 91 93 95 96 97 98 100 101 102 104 105 106 107 110 112 117 118 139 140 141"},F:{"43":0.00327,"45":0.00327,"46":0.00654,"53":0.00327,"79":0.01145,"88":0.00164,"89":0.04744,"90":0.13415,"109":0.00164,"114":0.00491,"115":0.00654,"116":0.00327,"117":0.00327,_:"9 11 12 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 44 47 48 49 50 51 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00818,"13":0.00654,"14":0.00818,"16":0.00654,"17":0.02454,"18":0.04908,"84":0.00164,"85":0.00327,"89":0.03272,"90":0.01309,"92":0.06053,"100":0.00327,"109":0.00327,"122":0.00164,"124":0.11943,"126":0.00327,"128":0.00491,"129":0.00491,"130":0.00818,"131":0.03599,"132":0.00164,"133":0.01636,"134":0.03108,"135":0.018,"136":0.34029,"137":0.96851,"138":0.07526,_:"15 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 125 127"},E:{"14":0.04581,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 15.1 15.4 15.5 16.0 16.1 16.2 16.3 16.5 17.0 17.1 17.2 17.3 17.5 18.0 18.2 26.0","5.1":0.01963,"11.1":0.00327,"12.1":0.00164,"13.1":0.00327,"14.1":0.00164,"15.2-15.3":0.00164,"15.6":0.01309,"16.4":0.00327,"16.6":0.00164,"17.4":0.018,"17.6":0.00654,"18.1":0.00982,"18.3":0.01309,"18.4":0.01309,"18.5":0.06544},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00078,"5.0-5.1":0,"6.0-6.1":0.00157,"7.0-7.1":0.00157,"8.1-8.4":0,"9.0-9.2":0.00078,"9.3":0.0047,"10.0-10.2":0.00039,"10.3":0.00783,"11.0-11.2":0.0501,"11.3-11.4":0.00274,"12.0-12.1":0.00078,"12.2-12.5":0.02623,"13.0-13.1":0.00039,"13.2":0.00117,"13.3":0.00078,"13.4-13.7":0.00431,"14.0-14.4":0.01018,"14.5-14.8":0.01018,"15.0-15.1":0.00705,"15.2-15.3":0.00705,"15.4":0.00861,"15.5":0.00939,"15.6-15.8":0.12134,"16.0":0.01605,"16.1":0.03288,"16.2":0.01683,"16.3":0.03092,"16.4":0.00705,"16.5":0.01253,"16.6-16.7":0.15227,"17.0":0.00822,"17.1":0.01448,"17.2":0.01135,"17.3":0.01605,"17.4":0.02857,"17.5":0.05989,"17.6-17.7":0.15657,"18.0":0.03875,"18.1":0.08729,"18.2":0.04619,"18.3":0.19846,"18.4":0.21059,"18.5":2.46878,"26.0":0},P:{"4":0.01016,"20":0.02031,"21":0.07109,"22":0.20313,"23":0.06094,"24":0.31484,"25":0.79219,"26":0.28438,"27":0.62969,"28":0.8125,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 15.0 18.0","7.2-7.4":0.06094,"9.2":0.02031,"11.1-11.2":0.01016,"14.0":0.02031,"16.0":0.05078,"17.0":0.03047,"19.0":0.02031},I:{"0":0.1002,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":1.28936,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00491,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":79.89113},R:{_:"0"},M:{"0":0.2091},Q:{"14.9":0.16728},O:{"0":0.91168},H:{"0":0.81}}; +module.exports={C:{"7":0.0006,"30":0.0018,"54":0.0006,"66":0.0006,"72":0.0006,"93":0.01082,"94":0.0006,"103":0.0012,"106":0.0006,"115":0.09616,"119":0.0012,"120":0.0012,"122":0.0006,"123":0.0006,"124":0.00601,"125":0.14845,"126":0.1202,_:"2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 95 96 97 98 99 100 101 102 104 105 107 108 109 110 111 112 113 114 116 117 118 121 127 128 129 3.5 3.6"},D:{"42":0.0024,"45":0.0012,"58":0.0024,"63":0.0006,"64":0.0024,"68":0.00421,"69":0.00361,"70":0.00421,"71":0.0006,"74":0.0006,"76":0.0006,"77":0.0012,"78":0.00781,"79":0.00421,"80":0.0006,"81":0.0006,"83":0.0012,"86":0.0006,"87":0.0012,"90":0.0006,"92":0.0012,"94":0.01322,"95":0.18932,"96":0.00721,"97":0.0018,"98":0.0006,"99":0.04027,"102":0.0024,"103":0.02104,"105":0.0006,"106":0.0018,"108":0.0006,"109":0.07573,"110":0.0006,"111":0.0012,"114":0.00421,"115":0.0006,"116":0.00601,"117":0.00541,"119":0.00301,"120":0.05048,"121":0.00661,"122":0.01563,"123":0.0583,"124":0.6599,"125":0.18811,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 65 66 67 72 73 75 84 85 88 89 91 93 100 101 104 107 112 113 118 126 127 128"},F:{"30":0.0006,"31":0.0006,"44":0.0006,"46":0.0018,"47":0.0006,"51":0.0012,"67":0.0006,"79":0.0018,"95":0.0006,"102":0.0006,"107":0.0012,"108":0.0006,"109":0.03486,"110":0.0018,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 32 33 34 35 36 37 38 39 40 41 42 43 45 48 49 50 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0006,"13":0.0012,"14":0.00361,"15":0.0006,"17":0.03486,"18":0.00841,"84":0.0024,"85":0.0006,"89":0.0018,"92":0.01442,"97":0.0006,"100":0.0006,"104":0.0006,"109":0.05649,"110":0.0006,"111":0.01382,"112":0.0006,"114":0.0006,"115":0.0012,"116":0.0006,"119":0.0006,"120":0.0024,"121":0.00541,"122":0.00841,"123":0.00721,"124":0.25843,"125":0.06431,_:"16 79 80 81 83 86 87 88 90 91 93 94 95 96 98 99 101 102 103 105 106 107 108 113 117 118"},E:{"14":0.0006,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.5 17.0 17.2 17.6","5.1":0.0006,"13.1":0.0006,"14.1":0.11419,"15.6":0.00361,"16.2":0.0006,"16.3":0.0024,"16.4":0.0024,"16.6":0.00661,"17.1":0.0006,"17.3":0.0006,"17.4":0.00481,"17.5":0.0006},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00064,"5.0-5.1":0.00064,"6.0-6.1":0.00159,"7.0-7.1":0.00223,"8.1-8.4":0.00064,"9.0-9.2":0.00159,"9.3":0.00733,"10.0-10.2":0.00127,"10.3":0.01147,"11.0-11.2":0.01689,"11.3-11.4":0.00319,"12.0-12.1":0.00191,"12.2-12.5":0.0462,"13.0-13.1":0.00096,"13.2":0.00446,"13.3":0.00223,"13.4-13.7":0.0102,"14.0-14.4":0.01752,"14.5-14.8":0.02708,"15.0-15.1":0.01306,"15.2-15.3":0.01434,"15.4":0.01625,"15.5":0.02039,"15.6-15.8":0.18353,"16.0":0.04174,"16.1":0.08603,"16.2":0.04174,"16.3":0.07233,"16.4":0.01529,"16.5":0.03091,"16.6-16.7":0.2463,"17.0":0.02676,"17.1":0.04365,"17.2":0.04556,"17.3":0.08412,"17.4":1.91016,"17.5":0.13478,"17.6":0},P:{"4":0.04017,"20":0.04017,"21":1.04454,"22":1.2655,"23":0.3917,"24":0.30131,"25":0.19083,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0","7.2-7.4":0.15065,"9.2":0.09039,"11.1-11.2":0.02009,"13.0":0.01004,"15.0":0.03013,"16.0":0.09039,"17.0":0.01004,"18.0":0.05022,"19.0":0.81353},I:{"0":0.01872,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.02668,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0024,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":88.31505},R:{_:"0"},M:{"0":0.0094},Q:{"14.9":0.0282},O:{"0":0.09399},H:{"0":0.12}}; diff --git a/node_modules/caniuse-lite/data/regions/TG.js b/node_modules/caniuse-lite/data/regions/TG.js index 143dfde20..9a996bd94 100644 --- a/node_modules/caniuse-lite/data/regions/TG.js +++ b/node_modules/caniuse-lite/data/regions/TG.js @@ -1 +1 @@ -module.exports={C:{"45":0.00361,"46":0.00181,"52":0.00723,"64":0.00181,"72":0.00542,"76":0.00181,"80":0.00181,"81":0.00361,"83":0.00181,"84":0.00361,"89":0.00181,"90":0.00181,"91":0.00181,"92":0.00181,"94":0.00181,"95":0.00181,"108":0.02168,"112":0.01084,"113":0.00181,"115":0.26382,"124":0.00181,"127":0.02168,"128":0.05421,"133":0.01265,"134":0.00542,"135":0.01446,"136":0.00542,"137":0.0253,"138":0.06144,"139":1.04083,"140":0.14456,"141":0.00181,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 73 74 75 77 78 79 82 85 86 87 88 93 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 114 116 117 118 119 120 121 122 123 125 126 129 130 131 132 142 143 3.5 3.6"},D:{"11":0.00904,"33":0.01084,"38":0.00181,"39":0.00723,"40":0.01265,"41":0.00723,"42":0.00723,"43":0.00904,"44":0.00542,"45":0.00723,"46":0.00904,"47":0.00723,"48":0.00904,"49":0.01446,"50":0.01084,"51":0.00904,"52":0.00723,"53":0.01084,"54":0.00904,"55":0.00904,"56":0.00904,"57":0.00723,"58":0.00723,"59":0.00904,"60":0.00904,"63":0.00181,"64":0.00904,"65":0.00181,"66":0.00361,"68":0.00361,"69":0.00361,"70":0.00542,"72":0.00361,"73":0.02168,"74":0.00361,"75":0.02168,"76":0.0253,"77":0.00181,"79":0.01807,"80":0.00181,"81":0.00361,"83":0.02711,"84":0.00181,"85":0.00181,"86":0.01988,"87":0.03795,"88":0.00361,"89":0.00904,"91":0.00361,"92":0.00181,"93":0.06867,"94":0.00361,"95":0.00904,"98":0.00361,"100":0.01626,"102":0.00361,"103":0.15179,"104":0.08854,"105":0.00181,"106":0.01446,"107":0.00181,"108":0.00181,"109":1.07155,"110":0.00361,"111":0.00181,"112":0.00181,"113":0.00181,"114":0.00904,"116":0.0253,"117":0.00723,"118":0.05782,"119":0.11926,"120":0.03072,"121":0.00904,"122":0.00904,"123":0.00361,"124":0.00361,"125":1.19081,"126":0.01084,"127":0.01446,"128":0.03253,"129":0.00723,"130":0.01626,"131":0.05421,"132":0.03975,"133":0.02168,"134":0.03975,"135":0.08132,"136":0.56378,"137":5.09032,"138":0.23672,"139":0.00181,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 61 62 67 71 78 90 96 97 99 101 115 140 141"},F:{"29":0.00181,"36":0.00181,"40":0.00181,"46":0.00361,"79":0.00181,"83":0.00181,"85":0.00181,"89":0.00542,"90":0.01084,"95":0.08493,"110":0.00181,"113":0.00181,"114":0.00181,"115":0.00181,"117":0.01807,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00361,"17":0.00542,"18":0.01446,"85":0.00181,"89":0.00181,"90":0.00542,"92":0.0524,"100":0.04337,"107":0.00181,"109":0.01626,"120":0.00361,"121":0.00361,"122":0.01084,"126":0.00181,"128":0.00181,"130":0.01446,"131":0.01084,"132":0.00361,"133":0.00181,"134":0.01084,"135":0.12288,"136":0.20419,"137":1.70581,"138":0.14817,_:"13 14 15 16 79 80 81 83 84 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 123 124 125 127 129"},E:{"11":0.00181,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 14.1 15.1 15.2-15.3 15.4 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2","5.1":0.00361,"12.1":0.00181,"13.1":0.01626,"15.5":0.00723,"15.6":0.01988,"16.6":0.01988,"17.1":0.00181,"17.3":0.00181,"17.4":0.00181,"17.5":0.00181,"17.6":0.06867,"18.0":0.00181,"18.1":0.00181,"18.2":0.00361,"18.3":0.00361,"18.4":0.00904,"18.5":0.10119,"26.0":0.00181},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00091,"5.0-5.1":0,"6.0-6.1":0.00183,"7.0-7.1":0.00183,"8.1-8.4":0,"9.0-9.2":0.00091,"9.3":0.00548,"10.0-10.2":0.00046,"10.3":0.00913,"11.0-11.2":0.05841,"11.3-11.4":0.00319,"12.0-12.1":0.00091,"12.2-12.5":0.03058,"13.0-13.1":0.00046,"13.2":0.00137,"13.3":0.00091,"13.4-13.7":0.00502,"14.0-14.4":0.01187,"14.5-14.8":0.01187,"15.0-15.1":0.00821,"15.2-15.3":0.00821,"15.4":0.01004,"15.5":0.01095,"15.6-15.8":0.14147,"16.0":0.01871,"16.1":0.03833,"16.2":0.01962,"16.3":0.03605,"16.4":0.00821,"16.5":0.0146,"16.6-16.7":0.17752,"17.0":0.00958,"17.1":0.01688,"17.2":0.01323,"17.3":0.01871,"17.4":0.03331,"17.5":0.06982,"17.6-17.7":0.18254,"18.0":0.04518,"18.1":0.10177,"18.2":0.05385,"18.3":0.23137,"18.4":0.24552,"18.5":2.8782,"26.0":0},P:{"4":0.03277,"25":0.01092,"26":0.01092,"27":0.03277,"28":0.20756,_:"20 21 22 23 24 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01092,"7.2-7.4":0.02185},I:{"0":0.17176,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":1.46716,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00181,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":77.33448},R:{_:"0"},M:{"0":0.07374},Q:{"14.9":0.00819},O:{"0":0.09832},H:{"0":0.45}}; +module.exports={C:{"32":0.00318,"34":0.00318,"41":0.00318,"47":0.00954,"52":0.0477,"57":0.00318,"68":0.00318,"72":0.0159,"73":0.00318,"82":0.00318,"92":0.00318,"93":0.00318,"99":0.00318,"102":0.00954,"103":0.02226,"108":0.00636,"109":0.00318,"110":0.00318,"111":0.00954,"112":0.02544,"114":0.02862,"115":0.62328,"116":0.00318,"117":0.00318,"118":0.00318,"121":0.00318,"122":0.0318,"123":0.0159,"124":0.06042,"125":2.87154,"126":1.56774,"127":0.0159,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 35 36 37 38 39 40 42 43 44 45 46 48 49 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 69 70 71 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 94 95 96 97 98 100 101 104 105 106 107 113 119 120 128 129 3.5 3.6"},D:{"31":0.00318,"33":0.00318,"39":0.00318,"43":0.00636,"46":0.00318,"47":0.00636,"49":0.03498,"50":0.00636,"55":0.00636,"63":0.00318,"64":0.00954,"65":0.00636,"66":0.00318,"68":0.00318,"69":0.00636,"70":0.00636,"72":0.01272,"73":0.00636,"74":0.00318,"75":0.00954,"76":0.18444,"79":0.02862,"80":0.2385,"81":0.00318,"85":0.00318,"86":0.01272,"87":0.0159,"88":0.01272,"89":0.00318,"91":0.05088,"93":0.16854,"95":0.02226,"96":0.00318,"99":0.00318,"100":0.00954,"102":0.01908,"103":0.05724,"104":0.05724,"105":0.00318,"106":0.00636,"107":0.00636,"108":0.00954,"109":2.85564,"110":0.00636,"111":0.00636,"112":0.00954,"114":0.00636,"115":0.00318,"116":0.05088,"117":0.00636,"118":0.02226,"119":0.11766,"120":0.0636,"121":0.06678,"122":0.12402,"123":0.2226,"124":8.57964,"125":2.65848,"126":0.00318,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 34 35 36 37 38 40 41 42 44 45 48 51 52 53 54 56 57 58 59 60 61 62 67 71 77 78 83 84 90 92 94 97 98 101 113 127 128"},F:{"79":0.0159,"80":0.00318,"83":0.00318,"95":0.08904,"98":0.00636,"102":0.00318,"106":0.00318,"107":0.0477,"108":0.02544,"109":1.32288,"110":0.13992,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00636,"13":0.00318,"15":0.00318,"17":0.00318,"18":0.01272,"84":0.00318,"85":0.00318,"90":0.00318,"92":0.05088,"100":0.00636,"101":0.00636,"104":0.00636,"107":0.00318,"109":0.08586,"112":0.00318,"115":0.00636,"117":0.00636,"118":0.00318,"119":0.00954,"120":0.01908,"121":0.00636,"122":0.02544,"123":0.0954,"124":3.28176,"125":1.38966,_:"14 16 79 80 81 83 86 87 88 89 91 93 94 95 96 97 98 99 102 103 105 106 108 110 111 113 114 116"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.5 17.0 17.6","11.1":0.00318,"13.1":0.00636,"14.1":0.00318,"15.6":0.0159,"16.2":0.02862,"16.3":0.00318,"16.4":0.00318,"16.6":0.01272,"17.1":0.00318,"17.2":0.00954,"17.3":0.00318,"17.4":0.03498,"17.5":0.00954},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00127,"5.0-5.1":0.00127,"6.0-6.1":0.00318,"7.0-7.1":0.00445,"8.1-8.4":0.00127,"9.0-9.2":0.00318,"9.3":0.01463,"10.0-10.2":0.00254,"10.3":0.0229,"11.0-11.2":0.03372,"11.3-11.4":0.00636,"12.0-12.1":0.00382,"12.2-12.5":0.09225,"13.0-13.1":0.00191,"13.2":0.00891,"13.3":0.00445,"13.4-13.7":0.02036,"14.0-14.4":0.03499,"14.5-14.8":0.05408,"15.0-15.1":0.02608,"15.2-15.3":0.02863,"15.4":0.03245,"15.5":0.04072,"15.6-15.8":0.36646,"16.0":0.08334,"16.1":0.17178,"16.2":0.08334,"16.3":0.14442,"16.4":0.03054,"16.5":0.06171,"16.6-16.7":0.49179,"17.0":0.05344,"17.1":0.08716,"17.2":0.09098,"17.3":0.16796,"17.4":3.8141,"17.5":0.26912,"17.6":0},P:{"4":0.07257,"21":0.01037,"22":0.14515,"23":0.01037,"24":0.04147,"25":0.63243,_:"20 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01037,"6.2-6.4":0.01037,"13.0":0.05184,"17.0":0.02074,"19.0":0.01037},I:{"0":0.02717,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":1.6812,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01908,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00682,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.82625},R:{_:"0"},M:{"0":0.1091},Q:{"14.9":0.02728},O:{"0":0.30686},H:{"0":0.76}}; diff --git a/node_modules/caniuse-lite/data/regions/TH.js b/node_modules/caniuse-lite/data/regions/TH.js index 84b14b064..035f5f715 100644 --- a/node_modules/caniuse-lite/data/regions/TH.js +++ b/node_modules/caniuse-lite/data/regions/TH.js @@ -1 +1 @@ -module.exports={C:{"52":0.00732,"78":0.00366,"115":0.10977,"127":0.00366,"128":0.02195,"135":0.00732,"136":0.00366,"137":0.00366,"138":0.02195,"139":0.80864,"140":0.11343,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.00366,"40":0.00366,"41":0.00366,"42":0.00366,"43":0.00732,"44":0.00366,"45":0.00366,"46":0.00366,"47":0.00732,"48":0.00366,"49":0.00732,"50":0.00366,"51":0.00366,"52":0.00366,"53":0.00732,"54":0.00366,"55":0.00366,"56":0.00732,"57":0.00732,"58":0.01464,"59":0.00366,"60":0.00366,"65":0.00366,"67":0.00732,"69":0.00366,"70":0.00366,"72":0.00366,"73":0.00732,"74":0.00366,"75":0.00366,"78":0.00366,"79":0.02195,"81":0.00366,"83":0.00366,"85":0.00732,"86":0.00366,"87":0.02195,"88":0.01464,"89":0.00366,"91":0.01098,"92":0.00366,"93":0.00366,"94":0.00366,"95":0.00366,"96":0.00366,"97":0.00366,"98":0.00366,"99":0.00366,"100":0.00366,"101":0.0183,"102":0.00732,"103":0.01464,"104":0.18661,"105":0.17197,"106":0.00732,"107":0.01098,"108":0.01098,"109":1.14893,"110":0.00366,"111":0.00732,"112":0.00366,"113":0.02195,"114":0.04025,"115":0.00366,"116":0.02195,"117":0.00732,"118":0.03293,"119":0.02561,"120":0.0183,"121":0.04757,"122":0.06952,"123":0.04391,"124":0.04757,"125":0.05489,"126":0.03293,"127":0.02195,"128":0.04391,"129":0.0183,"130":0.03659,"131":0.0622,"132":0.05489,"133":0.06586,"134":0.07318,"135":0.13904,"136":1.71241,"137":17.53393,"138":0.63667,"139":0.0183,"140":0.00366,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 68 71 76 77 80 84 90 141"},F:{"89":0.02195,"90":0.01464,"95":0.01098,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00732,"17":0.00366,"18":0.00366,"84":0.00366,"92":0.00366,"108":0.00366,"109":0.01464,"110":0.00366,"113":0.00366,"114":0.00366,"120":0.00366,"122":0.00366,"124":0.00366,"125":0.00732,"126":0.00732,"127":0.00366,"128":0.00366,"129":0.01098,"130":0.01098,"131":0.01098,"132":0.00732,"133":0.01098,"134":0.0183,"135":0.0183,"136":0.35126,"137":2.60521,"138":0.19393,_:"12 13 14 15 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 111 112 115 116 117 118 119 121 123"},E:{"11":0.19027,"12":0.00366,"14":0.00366,_:"0 4 5 6 7 8 9 10 13 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 12.1 15.1 26.0","10.1":0.00366,"13.1":0.00732,"14.1":0.02561,"15.2-15.3":0.00366,"15.4":0.00366,"15.5":0.00732,"15.6":0.06586,"16.0":0.01098,"16.1":0.02927,"16.2":0.01098,"16.3":0.02927,"16.4":0.00732,"16.5":0.00732,"16.6":0.09513,"17.0":0.00732,"17.1":0.0805,"17.2":0.01098,"17.3":0.01098,"17.4":0.0183,"17.5":0.04757,"17.6":0.11343,"18.0":0.02195,"18.1":0.04757,"18.2":0.0183,"18.3":0.11343,"18.4":0.09513,"18.5":1.25504},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00321,"5.0-5.1":0,"6.0-6.1":0.00642,"7.0-7.1":0.00642,"8.1-8.4":0,"9.0-9.2":0.00321,"9.3":0.01925,"10.0-10.2":0.0016,"10.3":0.03208,"11.0-11.2":0.20531,"11.3-11.4":0.01123,"12.0-12.1":0.00321,"12.2-12.5":0.10747,"13.0-13.1":0.0016,"13.2":0.00481,"13.3":0.00321,"13.4-13.7":0.01764,"14.0-14.4":0.0417,"14.5-14.8":0.0417,"15.0-15.1":0.02887,"15.2-15.3":0.02887,"15.4":0.03529,"15.5":0.0385,"15.6-15.8":0.49725,"16.0":0.06576,"16.1":0.13474,"16.2":0.06897,"16.3":0.12672,"16.4":0.02887,"16.5":0.05133,"16.6-16.7":0.62396,"17.0":0.03368,"17.1":0.05935,"17.2":0.04652,"17.3":0.06576,"17.4":0.11709,"17.5":0.24542,"17.6-17.7":0.64161,"18.0":0.1588,"18.1":0.3577,"18.2":0.18927,"18.3":0.81324,"18.4":0.86296,"18.5":10.11655,"26.0":0},P:{"4":0.1272,"20":0.0106,"21":0.0212,"22":0.0212,"23":0.0424,"24":0.0318,"25":0.0954,"26":0.0954,"27":0.26499,"28":2.52273,_:"5.0-5.4 6.2-6.4 10.1 12.0 13.0 15.0","7.2-7.4":0.0424,"8.2":0.0106,"9.2":0.0212,"11.1-11.2":0.0212,"14.0":0.0106,"16.0":0.0106,"17.0":0.0212,"18.0":0.0106,"19.0":0.0106},I:{"0":0.02532,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.3387,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00409,"11":0.06543,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.54732},R:{_:"0"},M:{"0":0.1902},Q:{"14.9":0.00634},O:{"0":0.37406},H:{"0":0.01}}; +module.exports={C:{"34":0.00368,"48":0.00368,"52":0.01104,"53":0.03681,"55":0.15828,"56":1.32884,"78":0.00368,"85":0.00368,"96":0.00368,"98":0.00368,"101":0.00368,"103":0.00368,"105":0.00368,"113":0.00368,"115":0.12884,"116":0.00368,"119":0.00368,"120":0.00368,"122":0.00368,"123":0.00368,"124":0.01104,"125":0.41227,"126":0.38651,"127":0.00368,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 54 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 97 99 100 102 104 106 107 108 109 110 111 112 114 117 118 121 128 129 3.5 3.6"},D:{"25":0.10675,"37":0.01104,"38":0.00368,"43":0.00736,"49":0.01841,"53":0.01472,"56":0.00736,"57":0.00736,"58":0.00368,"63":0.00368,"67":0.00368,"70":0.00368,"73":0.01104,"74":0.01841,"75":0.00368,"76":0.00368,"78":0.00736,"79":0.39755,"80":0.00736,"81":0.00368,"83":0.00368,"84":0.00368,"85":0.00368,"86":0.01841,"87":0.27608,"88":0.01472,"89":0.00736,"90":0.00368,"91":0.01104,"92":0.01472,"93":0.02209,"94":0.05153,"95":0.02945,"96":0.00368,"97":0.00368,"98":0.00368,"99":0.02209,"100":0.00368,"101":0.04785,"102":0.01841,"103":0.03681,"104":0.00736,"105":0.02209,"106":0.01472,"107":0.01472,"108":0.04049,"109":2.10185,"110":0.01472,"111":0.01472,"112":0.01104,"113":0.0589,"114":0.04785,"115":0.01472,"116":0.06258,"117":0.02945,"118":0.07362,"119":0.03313,"120":0.07362,"121":0.0773,"122":0.23927,"123":0.36442,"124":14.06142,"125":6.78776,"126":0.01104,"127":0.00368,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 39 40 41 42 44 45 46 47 48 50 51 52 54 55 59 60 61 62 64 65 66 68 69 71 72 77 128"},F:{"28":0.00368,"46":0.01104,"95":0.01472,"107":0.0589,"108":0.00368,"109":0.32393,"110":0.01841,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00368,"18":0.01472,"92":0.00736,"100":0.00368,"105":0.00368,"107":0.00368,"108":0.00736,"109":0.05522,"110":0.00368,"111":0.00368,"112":0.00368,"113":0.00368,"114":0.00736,"115":0.00368,"116":0.00368,"117":0.00368,"118":0.00368,"119":0.00736,"120":0.01472,"121":0.01104,"122":0.02945,"123":0.04417,"124":1.8221,"125":1.22209,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 106"},E:{"14":0.01472,"15":0.00736,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00368,"13.1":0.01841,"14.1":0.06258,"15.1":0.00736,"15.2-15.3":0.00736,"15.4":0.01841,"15.5":0.02945,"15.6":0.11779,"16.0":0.01472,"16.1":0.07362,"16.2":0.03681,"16.3":0.12515,"16.4":0.03313,"16.5":0.05153,"16.6":0.20614,"17.0":0.04049,"17.1":0.05153,"17.2":0.06626,"17.3":0.11043,"17.4":1.82578,"17.5":0.14356},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00334,"5.0-5.1":0.00334,"6.0-6.1":0.00834,"7.0-7.1":0.01168,"8.1-8.4":0.00334,"9.0-9.2":0.00834,"9.3":0.03838,"10.0-10.2":0.00668,"10.3":0.06008,"11.0-11.2":0.08845,"11.3-11.4":0.01669,"12.0-12.1":0.01001,"12.2-12.5":0.24198,"13.0-13.1":0.00501,"13.2":0.02336,"13.3":0.01168,"13.4-13.7":0.0534,"14.0-14.4":0.09179,"14.5-14.8":0.14185,"15.0-15.1":0.06842,"15.2-15.3":0.0751,"15.4":0.08511,"15.5":0.10681,"15.6-15.8":0.96126,"16.0":0.21862,"16.1":0.45059,"16.2":0.21862,"16.3":0.37883,"16.4":0.0801,"16.5":0.16188,"16.6-16.7":1.29002,"17.0":0.14018,"17.1":0.22863,"17.2":0.23865,"17.3":0.44058,"17.4":10.00474,"17.5":0.70592,"17.6":0},P:{"4":0.49068,"20":0.02088,"21":0.07308,"22":0.14616,"23":0.16704,"24":0.34452,"25":2.3699,"5.0-5.4":0.09396,"6.2-6.4":0.02088,"7.2-7.4":0.0522,_:"8.2 9.2 10.1 12.0 15.0","11.1-11.2":0.02088,"13.0":0.01044,"14.0":0.13572,"16.0":0.02088,"17.0":0.07308,"18.0":0.01044,"19.0":0.03132},I:{"0":0.03777,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.28331,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00378,"9":0.00378,"11":0.41576,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.05412},R:{_:"0"},M:{"0":0.12006},Q:{"14.9":0.00632},O:{"0":0.17693},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/TJ.js b/node_modules/caniuse-lite/data/regions/TJ.js index fb2bc2340..fd3696e43 100644 --- a/node_modules/caniuse-lite/data/regions/TJ.js +++ b/node_modules/caniuse-lite/data/regions/TJ.js @@ -1 +1 @@ -module.exports={C:{"35":0.00283,"52":0.00283,"58":0.00565,"72":0.00283,"83":0.00283,"110":0.00565,"115":0.07913,"126":0.00283,"128":0.01696,"129":0.01696,"131":0.00283,"133":0.00565,"134":0.00283,"135":0.00283,"137":0.01413,"138":0.03956,"139":0.43803,"140":0.03391,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 122 123 124 125 127 130 132 136 141 142 143 3.5 3.6"},D:{"20":0.01413,"31":0.00283,"38":0.00565,"39":0.01413,"40":0.02261,"41":0.01978,"42":0.02543,"43":0.02261,"44":0.03674,"45":0.01696,"46":0.02543,"47":0.0113,"48":0.01978,"49":0.02826,"50":0.01696,"51":0.01978,"52":0.01696,"53":0.01413,"54":0.01978,"55":0.01696,"56":0.02261,"57":0.01696,"58":0.04804,"59":0.02261,"60":0.02261,"62":0.00565,"64":0.00848,"69":0.00848,"70":0.01413,"71":0.00565,"72":0.00848,"74":0.00283,"76":0.00283,"77":2.45297,"78":0.00283,"79":0.0113,"83":0.02261,"84":0.00565,"86":0.00283,"87":0.09891,"89":0.00565,"90":0.00848,"91":0.00283,"92":0.00283,"94":0.01413,"96":0.00565,"97":0.01696,"98":0.00565,"99":0.00283,"100":0.00283,"101":0.00283,"102":0.00283,"103":0.03109,"104":0.00565,"105":0.00283,"106":0.01413,"107":0.00283,"108":0.03674,"109":1.67017,"110":0.01696,"111":0.00848,"112":0.00283,"113":0.00283,"114":0.00283,"115":0.00848,"116":0.00283,"118":0.01413,"119":0.05087,"120":0.00565,"121":0.0113,"122":0.09891,"123":0.11587,"124":0.02543,"125":2.96165,"126":0.00283,"127":0.02543,"128":0.03956,"129":0.00565,"130":0.0113,"131":0.05087,"132":0.05652,"133":0.04522,"134":0.05087,"135":0.19217,"136":0.77998,"137":5.88091,"138":0.2176,"140":0.00565,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 61 63 65 66 67 68 73 75 80 81 85 88 93 95 117 139 141"},F:{"36":0.00565,"49":0.00283,"55":0.00283,"56":0.00565,"79":0.03674,"81":0.00283,"84":0.00565,"86":0.03391,"88":0.00565,"89":0.00848,"90":0.00848,"95":0.10456,"111":0.00283,"116":0.00283,"117":0.00283,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 82 83 85 87 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00283,"15":0.00283,"18":0.01978,"84":0.00283,"89":0.00283,"90":0.00283,"92":0.02826,"97":0.00283,"100":0.00283,"106":0.00283,"107":0.00283,"109":0.00565,"112":0.00283,"114":0.00283,"117":0.00283,"118":0.00283,"120":0.02826,"122":0.00848,"129":0.00283,"131":0.01696,"134":0.0113,"135":0.02261,"136":0.27695,"137":1.47517,"138":0.07913,_:"12 14 16 17 79 80 81 83 85 86 87 88 91 93 94 95 96 98 99 101 102 103 104 105 108 110 111 113 115 116 119 121 123 124 125 126 127 128 130 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.4 16.0 16.2 16.4 16.5 17.0 17.2 18.2 26.0","5.1":0.33347,"15.2-15.3":0.00848,"15.5":0.00565,"15.6":0.01696,"16.1":0.00283,"16.3":0.00283,"16.6":0.02826,"17.1":0.00283,"17.3":0.00283,"17.4":0.03391,"17.5":0.05087,"17.6":0.03956,"18.0":0.00283,"18.1":0.13282,"18.3":0.01978,"18.4":0.44651,"18.5":0.27695},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00139,"5.0-5.1":0,"6.0-6.1":0.00277,"7.0-7.1":0.00277,"8.1-8.4":0,"9.0-9.2":0.00139,"9.3":0.00832,"10.0-10.2":0.00069,"10.3":0.01386,"11.0-11.2":0.08871,"11.3-11.4":0.00485,"12.0-12.1":0.00139,"12.2-12.5":0.04643,"13.0-13.1":0.00069,"13.2":0.00208,"13.3":0.00139,"13.4-13.7":0.00762,"14.0-14.4":0.01802,"14.5-14.8":0.01802,"15.0-15.1":0.01247,"15.2-15.3":0.01247,"15.4":0.01525,"15.5":0.01663,"15.6-15.8":0.21483,"16.0":0.02841,"16.1":0.05821,"16.2":0.0298,"16.3":0.05475,"16.4":0.01247,"16.5":0.02218,"16.6-16.7":0.26958,"17.0":0.01455,"17.1":0.02564,"17.2":0.0201,"17.3":0.02841,"17.4":0.05059,"17.5":0.10603,"17.6-17.7":0.2772,"18.0":0.06861,"18.1":0.15454,"18.2":0.08177,"18.3":0.35136,"18.4":0.37284,"18.5":4.3708,"26.0":0},P:{"4":0.06111,"20":0.01018,"21":0.03055,"22":0.04074,"23":0.05092,"24":0.12221,"25":0.18332,"26":0.09166,"27":0.27498,"28":1.09993,"5.0-5.4":0.01018,"6.2-6.4":0.04074,"7.2-7.4":0.14258,_:"8.2 10.1 12.0 14.0 17.0","9.2":0.02037,"11.1-11.2":0.02037,"13.0":0.03055,"15.0":0.01018,"16.0":0.02037,"18.0":0.01018,"19.0":0.01018},I:{"0":0.02865,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.64546,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.0036,"11":0.03597,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.71034},R:{_:"0"},M:{"0":0.05739},Q:{"14.9":0.0287},O:{"0":1.56393},H:{"0":0.27}}; +module.exports={C:{"44":0.00209,"45":0.00209,"48":0.00209,"52":0.01046,"69":0.00418,"91":0.00209,"99":0.00209,"105":0.01255,"106":0.01255,"107":0.01464,"108":0.01255,"109":0.01674,"110":0.01464,"111":0.01046,"112":0.00209,"114":0.00418,"115":0.11715,"117":0.00209,"119":0.00418,"120":0.00837,"123":0.01046,"124":0.02092,"125":0.2092,"126":0.1569,"127":0.00418,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 100 101 102 103 104 113 116 118 121 122 128 129 3.5 3.6"},D:{"11":0.00628,"35":0.00628,"38":0.00837,"40":0.00628,"41":0.00209,"44":0.01883,"47":0.00418,"49":0.05439,"51":0.00837,"54":0.00628,"57":0.00209,"58":0.00209,"63":0.00418,"66":0.00209,"68":0.01046,"69":0.00837,"70":0.00837,"71":0.00418,"74":0.00837,"75":0.00628,"76":0.00628,"77":1.21754,"78":0.00418,"79":0.02092,"83":0.01674,"84":0.00628,"85":0.00418,"86":0.01046,"87":0.01674,"88":0.00628,"89":0.01883,"90":0.03556,"91":0.00209,"92":0.01255,"94":0.00209,"95":0.00418,"97":0.01674,"98":0.00628,"99":0.00628,"100":0.01464,"101":0.00628,"102":0.02301,"103":0.01046,"104":0.06485,"105":0.00837,"106":0.11506,"107":0.00837,"108":0.1046,"109":2.1966,"110":0.01464,"111":0.02929,"112":0.05858,"113":0.00209,"114":0.01255,"115":0.01046,"116":0.00628,"117":0.0272,"118":0.00628,"119":0.04393,"120":0.09832,"121":0.05439,"122":0.41631,"123":0.2866,"124":4.65888,"125":2.01041,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 39 42 43 45 46 48 50 52 53 55 56 59 60 61 62 64 65 67 72 73 80 81 93 96 126 127 128"},F:{"36":0.00209,"45":0.00418,"51":0.00209,"69":0.00209,"79":0.05021,"80":0.00209,"81":0.00209,"82":0.00209,"85":0.00209,"86":0.01046,"87":0.00418,"93":0.00209,"94":0.00628,"95":0.1569,"107":0.02301,"108":0.01046,"109":0.45815,"110":0.02929,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 46 47 48 49 50 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 83 84 88 89 90 91 92 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00209,"13":0.00209,"14":0.01674,"16":0.00837,"17":0.00209,"18":0.03138,"80":0.00209,"84":0.00837,"86":0.00209,"89":0.00418,"90":0.00209,"92":0.06694,"100":0.00209,"104":0.00209,"106":0.0774,"107":0.00418,"108":0.0251,"109":0.01464,"110":0.00209,"113":0.00209,"115":0.00209,"117":0.00209,"119":0.00837,"120":0.01255,"121":0.00837,"122":0.01255,"123":0.03556,"124":0.69664,"125":0.46024,_:"15 79 81 83 85 87 88 91 93 94 95 96 97 98 99 101 102 103 105 111 112 114 116 118"},E:{"14":0.00628,"15":0.00418,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.4 15.5 16.0 17.6","5.1":0.55647,"14.1":0.0251,"15.2-15.3":0.00209,"15.6":0.0251,"16.1":0.00628,"16.2":0.00418,"16.3":0.00418,"16.4":0.00209,"16.5":0.00418,"16.6":0.06904,"17.0":0.01464,"17.1":0.00837,"17.2":0.00837,"17.3":0.06694,"17.4":0.23012,"17.5":0.01255},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0.00125,"6.0-6.1":0.00312,"7.0-7.1":0.00437,"8.1-8.4":0.00125,"9.0-9.2":0.00312,"9.3":0.01437,"10.0-10.2":0.0025,"10.3":0.02249,"11.0-11.2":0.03311,"11.3-11.4":0.00625,"12.0-12.1":0.00375,"12.2-12.5":0.09059,"13.0-13.1":0.00187,"13.2":0.00875,"13.3":0.00437,"13.4-13.7":0.01999,"14.0-14.4":0.03436,"14.5-14.8":0.0531,"15.0-15.1":0.02561,"15.2-15.3":0.02811,"15.4":0.03186,"15.5":0.03998,"15.6-15.8":0.35985,"16.0":0.08184,"16.1":0.16868,"16.2":0.08184,"16.3":0.14181,"16.4":0.02999,"16.5":0.0606,"16.6-16.7":0.48292,"17.0":0.05248,"17.1":0.08559,"17.2":0.08934,"17.3":0.16493,"17.4":3.74527,"17.5":0.26426,"17.6":0},P:{"4":0.73159,"20":0.07015,"21":0.3207,"22":0.29063,"23":0.34074,"24":0.39085,"25":1.03225,"5.0-5.4":0.06013,"6.2-6.4":0.0902,"7.2-7.4":0.31068,"8.2":0.02004,"9.2":0.04009,"10.1":0.02004,"11.1-11.2":0.04009,"12.0":0.03007,"13.0":0.03007,"14.0":0.05011,"15.0":0.02004,"16.0":0.11024,"17.0":0.03007,"18.0":0.05011,"19.0":0.12026},I:{"0":0.02363,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":1.42788,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05302,"9":0.01326,"10":0.00221,"11":0.16791,_:"6 7 5.5"},S:{"2.5":0.03954,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.72122},R:{_:"0"},M:{"0":0.03163},Q:{"14.9":0.00791},O:{"0":0.74335},H:{"0":0.13}}; diff --git a/node_modules/caniuse-lite/data/regions/TK.js b/node_modules/caniuse-lite/data/regions/TK.js new file mode 100644 index 000000000..999618153 --- /dev/null +++ b/node_modules/caniuse-lite/data/regions/TK.js @@ -0,0 +1 @@ +module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 3.5 3.6"},D:{"91":0.71912,"117":4.31719,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 120"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},B:{"116":1.43825,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117"},E:{"4":0,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1","15.1":2.15737,"15.2-15.3":11.51088,"16.6":0.71912},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0.70962,"15.2-15.3":8.51107,"15.4":0,"15.5":0,"15.6-15.7":0,"16.0":0,"16.1":2.12885,"16.2":0,"16.3":0,"16.4":0,"16.5":1.41923,"16.6":21.27985,"17.0":9.22069,"17.1":0},P:{"4":0.11467,"20":0.01042,"21":0.73274,"22":2.93095,"5.0-5.4":0.01042,"6.2-6.4":0,"7.2-7.4":0.01042,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0,"12.0":0,"13.0":0.02085,"14.0":0,"15.0":0,"16.0":0,"17.0":0.01042,"18.0":0.01042,"19.0":0.01042},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},N:{"10":0,"11":0},L:{"0":28.59944},R:{_:"0"},M:{"0":0},Q:{"13.1":0},O:{"0":0},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TL.js b/node_modules/caniuse-lite/data/regions/TL.js index f8b4d581e..c3fa6ae50 100644 --- a/node_modules/caniuse-lite/data/regions/TL.js +++ b/node_modules/caniuse-lite/data/regions/TL.js @@ -1 +1 @@ -module.exports={C:{"36":0.00513,"44":0.0205,"47":0.00513,"48":0.01538,"50":0.00513,"52":0.01025,"56":0.03075,"57":0.00513,"61":0.00513,"63":0.00513,"67":0.00513,"72":0.02563,"75":0.07175,"77":0.00513,"78":0.1025,"79":0.07688,"80":0.01538,"89":0.00513,"91":0.01025,"96":0.00513,"112":0.00513,"114":0.02563,"115":0.74313,"120":0.00513,"122":0.00513,"123":0.01538,"125":0.01025,"126":0.00513,"127":0.041,"128":0.1845,"131":0.00513,"132":0.01538,"133":0.0205,"134":0.123,"135":0.03075,"136":0.09225,"137":0.08713,"138":0.492,"139":5.0635,"140":0.45613,"141":0.01025,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 45 46 49 51 53 54 55 58 59 60 62 64 65 66 68 69 70 71 73 74 76 81 82 83 84 85 86 87 88 90 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 116 117 118 119 121 124 129 130 142 143 3.5 3.6"},D:{"28":0.01025,"31":0.00513,"40":0.02563,"41":0.00513,"42":0.00513,"43":0.01538,"44":0.00513,"48":0.02563,"49":0.01025,"50":0.00513,"58":0.01025,"64":0.01025,"67":0.01025,"69":0.00513,"70":0.0205,"71":0.01025,"72":0.00513,"73":0.00513,"74":0.041,"75":0.00513,"78":0.00513,"79":0.03588,"80":0.0615,"81":0.01538,"84":0.01538,"85":0.01025,"86":0.0205,"87":0.00513,"88":0.00513,"91":0.01025,"93":0.00513,"95":0.00513,"96":0.00513,"97":0.03075,"100":0.00513,"102":0.01538,"103":0.05638,"105":0.01538,"108":0.01025,"109":1.04038,"110":0.01025,"111":0.01538,"113":0.00513,"114":0.03075,"115":0.01025,"116":0.26138,"117":0.01025,"118":0.02563,"119":0.15375,"120":0.0205,"121":0.04613,"122":0.041,"123":0.041,"124":0.12813,"125":0.1845,"126":0.09225,"127":0.11788,"128":0.11275,"129":0.05638,"130":0.11788,"131":0.14863,"132":0.164,"133":0.1025,"134":0.23063,"135":0.42025,"136":4.13075,"137":19.639,"138":0.40488,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 32 33 34 35 36 37 38 39 45 46 47 51 52 53 54 55 56 57 59 60 61 62 63 65 66 68 76 77 83 89 90 92 94 98 99 101 104 106 107 112 139 140 141"},F:{"75":0.01025,"89":0.03075,"90":0.05638,"95":0.03588,"102":0.00513,"117":0.01025,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02563,"13":0.00513,"14":0.00513,"15":0.00513,"16":0.01538,"17":0.00513,"18":0.05638,"80":0.00513,"84":0.00513,"88":0.00513,"89":0.05125,"90":0.0205,"92":0.10763,"96":0.0205,"97":0.02563,"100":0.11275,"108":0.01538,"109":0.00513,"110":0.00513,"119":0.01025,"120":0.01538,"121":0.0205,"122":0.05125,"123":0.00513,"124":0.01025,"125":0.01025,"126":0.0205,"127":0.01538,"128":0.03588,"129":0.03075,"130":0.082,"131":0.14863,"132":0.07688,"133":0.11275,"134":0.1435,"135":0.17938,"136":2.07563,"137":6.16025,"138":0.33825,_:"79 81 83 85 86 87 91 93 94 95 98 99 101 102 103 104 105 106 107 111 112 113 114 115 116 117 118"},E:{"11":0.0205,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 16.0 16.4 17.1 26.0","13.1":0.02563,"14.1":0.0615,"15.2-15.3":0.01538,"15.6":0.04613,"16.1":0.00513,"16.2":0.00513,"16.3":0.02563,"16.5":0.03588,"16.6":0.11275,"17.0":0.0205,"17.2":0.0615,"17.3":0.00513,"17.4":0.00513,"17.5":0.05125,"17.6":0.07688,"18.0":0.03588,"18.1":0.03075,"18.2":0.03075,"18.3":0.07175,"18.4":0.1025,"18.5":0.35363},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00128,"5.0-5.1":0,"6.0-6.1":0.00255,"7.0-7.1":0.00255,"8.1-8.4":0,"9.0-9.2":0.00128,"9.3":0.00766,"10.0-10.2":0.00064,"10.3":0.01277,"11.0-11.2":0.0817,"11.3-11.4":0.00447,"12.0-12.1":0.00128,"12.2-12.5":0.04276,"13.0-13.1":0.00064,"13.2":0.00191,"13.3":0.00128,"13.4-13.7":0.00702,"14.0-14.4":0.01659,"14.5-14.8":0.01659,"15.0-15.1":0.01149,"15.2-15.3":0.01149,"15.4":0.01404,"15.5":0.01532,"15.6-15.8":0.19786,"16.0":0.02617,"16.1":0.05361,"16.2":0.02745,"16.3":0.05042,"16.4":0.01149,"16.5":0.02042,"16.6-16.7":0.24829,"17.0":0.0134,"17.1":0.02362,"17.2":0.01851,"17.3":0.02617,"17.4":0.04659,"17.5":0.09766,"17.6-17.7":0.25531,"18.0":0.06319,"18.1":0.14233,"18.2":0.07532,"18.3":0.3236,"18.4":0.34339,"18.5":4.02556,"26.0":0},P:{"21":0.04042,"22":0.07074,"23":0.05053,"24":0.13138,"25":0.14148,"26":0.05053,"27":0.26275,"28":0.36381,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 17.0","7.2-7.4":0.04042,"11.1-11.2":0.01011,"14.0":0.02021,"15.0":0.01011,"16.0":0.02021,"18.0":0.02021,"19.0":0.02021},I:{"0":0.00487,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.47785,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03588,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.75163},R:{_:"0"},M:{"0":0.03413},Q:{"14.9":0.00975},O:{"0":0.25843},H:{"0":0}}; +module.exports={C:{"7":0.00829,"21":0.00829,"24":0.00829,"31":0.00414,"33":0.00414,"36":0.00829,"37":0.00829,"38":0.01243,"39":0.00414,"40":0.00414,"44":0.01243,"47":0.04143,"48":0.01243,"50":0.02486,"52":0.00414,"53":0.00414,"56":0.05386,"57":0.00829,"59":0.00414,"61":0.00829,"67":0.04143,"69":0.00414,"72":0.04557,"78":0.03314,"79":0.15743,"80":0.06215,"84":0.00414,"85":0.02072,"88":0.00414,"95":0.00414,"99":0.00414,"103":0.01657,"105":0.00829,"106":0.00414,"107":0.02486,"108":0.00829,"110":0.00414,"111":0.00414,"112":0.00414,"113":0.00414,"114":0.00414,"115":1.14761,"117":0.00829,"118":0.02072,"119":0.00414,"120":0.00414,"121":0.01657,"122":0.06215,"123":0.19472,"124":0.19886,"125":2.61009,"126":2.00107,"127":0.07872,_:"2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 25 26 27 28 29 30 32 34 35 41 42 43 45 46 49 51 54 55 58 60 62 63 64 65 66 68 70 71 73 74 75 76 77 81 82 83 86 87 89 90 91 92 93 94 96 97 98 100 101 102 104 109 116 128 129 3.5 3.6"},D:{"20":0.00414,"31":0.00829,"34":0.01243,"41":0.00414,"42":0.02072,"43":0.04143,"44":0.00414,"49":0.02072,"51":0.00414,"58":0.058,"61":0.00414,"63":0.00829,"64":0.01657,"65":0.00829,"66":0.00414,"67":0.00829,"68":0.02072,"71":0.01657,"72":0.00414,"73":0.00829,"74":0.01657,"76":0.00829,"77":0.00414,"78":0.02072,"79":0.00414,"80":0.04143,"81":0.00829,"84":0.00829,"85":0.00414,"86":0.02486,"87":0.04143,"88":0.00414,"89":0.00829,"90":0.00414,"91":0.00414,"92":0.01243,"94":0.00414,"95":0.01243,"96":0.01243,"98":0.01657,"99":0.00829,"100":0.01243,"102":0.00414,"103":0.12429,"104":0.00414,"105":0.00414,"107":0.00829,"108":0.01243,"109":1.85192,"110":0.029,"111":0.02072,"112":0.029,"113":0.01243,"114":0.05386,"115":0.02486,"116":0.17815,"117":0.03314,"118":0.07043,"119":0.06215,"120":0.24029,"121":0.14501,"122":0.33973,"123":1.11447,"124":14.17735,"125":4.68573,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 38 39 40 45 46 47 48 50 52 53 54 55 56 57 59 60 62 69 70 75 83 93 97 101 106 126 127 128"},F:{"85":0.01657,"90":0.00414,"94":0.00414,"95":0.07457,"102":0.01243,"107":0.01243,"108":0.029,"109":0.46816,"110":0.04143,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 91 92 93 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.058,"13":0.02072,"14":0.01243,"15":0.01657,"16":0.03729,"17":0.04557,"18":0.05386,"80":0.00414,"84":0.01243,"85":0.00414,"89":0.02486,"90":0.02486,"91":0.00414,"92":0.087,"96":0.058,"97":0.02486,"98":0.00414,"100":0.04972,"102":0.00414,"105":0.02072,"106":0.00829,"107":0.00414,"108":0.03314,"109":0.04143,"110":0.00414,"111":0.03314,"112":0.02486,"113":0.03314,"114":0.07043,"115":0.01657,"116":0.03314,"117":0.029,"118":0.02072,"119":0.03314,"120":0.09529,"121":0.13258,"122":0.21958,"123":0.2983,"124":4.00214,"125":1.54948,_:"79 81 83 86 87 88 93 94 95 99 101 103 104"},E:{"11":0.00414,"14":0.00414,"15":0.00414,_:"0 4 5 6 7 8 9 10 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.01243,"13.1":0.03314,"14.1":0.06215,"15.1":0.00414,"15.2-15.3":0.01657,"15.4":0.01243,"15.5":0.02486,"15.6":0.02486,"16.0":0.00414,"16.1":0.04143,"16.2":0.02486,"16.3":0.02072,"16.4":0.02072,"16.5":0.13672,"16.6":0.05386,"17.0":0.07043,"17.1":0.01657,"17.2":0.07043,"17.3":0.03314,"17.4":0.13258,"17.5":0.01657},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0.00116,"6.0-6.1":0.00289,"7.0-7.1":0.00405,"8.1-8.4":0.00116,"9.0-9.2":0.00289,"9.3":0.01331,"10.0-10.2":0.00232,"10.3":0.02084,"11.0-11.2":0.03067,"11.3-11.4":0.00579,"12.0-12.1":0.00347,"12.2-12.5":0.08392,"13.0-13.1":0.00174,"13.2":0.0081,"13.3":0.00405,"13.4-13.7":0.01852,"14.0-14.4":0.03183,"14.5-14.8":0.0492,"15.0-15.1":0.02373,"15.2-15.3":0.02604,"15.4":0.02952,"15.5":0.03704,"15.6-15.8":0.33337,"16.0":0.07582,"16.1":0.15627,"16.2":0.07582,"16.3":0.13138,"16.4":0.02778,"16.5":0.05614,"16.6-16.7":0.44739,"17.0":0.04862,"17.1":0.07929,"17.2":0.08276,"17.3":0.1528,"17.4":3.46973,"17.5":0.24482,"17.6":0},P:{"4":0.04989,"20":0.02994,"21":0.09979,"22":0.11975,"23":0.1397,"24":0.24947,"25":0.34926,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0","7.2-7.4":0.1397,"9.2":0.00998,"11.1-11.2":0.01996,"13.0":0.00998,"14.0":0.03992,"15.0":0.01996,"16.0":0.04989,"17.0":0.00998,"18.0":0.01996,"19.0":0.07983},I:{"0":0.02334,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.93314,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.13258,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.02744},R:{_:"0"},M:{"0":0.15817},Q:{_:"14.9"},O:{"0":0.53308},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/TM.js b/node_modules/caniuse-lite/data/regions/TM.js index 7c25c8755..646fe8a93 100644 --- a/node_modules/caniuse-lite/data/regions/TM.js +++ b/node_modules/caniuse-lite/data/regions/TM.js @@ -1 +1 @@ -module.exports={C:{"64":0.06572,"85":0.90694,"115":0.09858,"125":1.07124,"127":0.06572,"128":0.03286,"139":0.49947,"140":0.03286,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 135 136 137 138 141 142 143 3.5 3.6"},D:{"40":0.03286,"70":0.46661,"79":0.76892,"84":0.03286,"101":0.43375,"109":5.15902,"113":0.30231,"124":0.8675,"125":0.09858,"128":0.09858,"129":0.03286,"130":0.03286,"132":0.43375,"133":0.06572,"135":1.03838,"136":4.12064,"137":35.72539,"138":1.20268,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118 119 120 121 122 123 126 127 131 134 139 140 141"},F:{"40":0.1643,"95":1.70872,"107":0.03286,"109":0.03286,"113":0.03286,_:"9 11 12 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 12.1","11.6":0.30231},B:{"15":0.26945,"100":0.03286,"109":0.09858,"136":1.16982,"137":0.67034,_:"12 13 14 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.1 17.2 17.4 17.5 17.6 18.0 18.2 26.0","17.0":0.06572,"17.3":0.06572,"18.1":0.1643,"18.3":0.13144,"18.4":0.06572,"18.5":1.43927},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00328,"5.0-5.1":0,"6.0-6.1":0.00655,"7.0-7.1":0.00655,"8.1-8.4":0,"9.0-9.2":0.00328,"9.3":0.01965,"10.0-10.2":0.00164,"10.3":0.03275,"11.0-11.2":0.20961,"11.3-11.4":0.01146,"12.0-12.1":0.00328,"12.2-12.5":0.10972,"13.0-13.1":0.00164,"13.2":0.00491,"13.3":0.00328,"13.4-13.7":0.01801,"14.0-14.4":0.04258,"14.5-14.8":0.04258,"15.0-15.1":0.02948,"15.2-15.3":0.02948,"15.4":0.03603,"15.5":0.0393,"15.6-15.8":0.50764,"16.0":0.06714,"16.1":0.13755,"16.2":0.07041,"16.3":0.12937,"16.4":0.02948,"16.5":0.0524,"16.6-16.7":0.63701,"17.0":0.03439,"17.1":0.06059,"17.2":0.04749,"17.3":0.06714,"17.4":0.11954,"17.5":0.25055,"17.6-17.7":0.65502,"18.0":0.16212,"18.1":0.36517,"18.2":0.19323,"18.3":0.83024,"18.4":0.881,"18.5":10.32806,"26.0":0},P:{"4":0.20754,"27":0.17641,"28":2.15842,_:"20 21 22 23 24 25 26 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.1349},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.30244,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":12.91256},R:{_:"0"},M:{"0":0.03428},Q:{_:"14.9"},O:{"0":0.24339},H:{"0":2.2}}; +module.exports={C:{"44":0.00476,"52":0.02378,"64":0.00238,"68":0.00238,"69":0.08799,"70":0.00951,"72":0.04043,"78":0.00238,"84":0.00476,"88":0.00476,"89":0.00238,"91":0.00238,"100":0.00238,"111":0.00238,"115":0.02378,"119":0.28536,"121":0.03091,"124":0.01902,"125":0.13079,"126":0.17835,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 65 66 67 71 73 74 75 76 77 79 80 81 82 83 85 86 87 90 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 120 122 123 127 128 129 3.5 3.6"},D:{"11":0.00238,"47":0.00476,"49":0.01189,"50":0.00476,"52":0.00238,"55":0.00238,"57":0.00713,"58":0.00951,"64":0.00713,"65":0.00713,"68":0.02378,"69":0.05945,"71":0.00238,"72":0.17359,"73":0.00713,"78":0.00238,"79":0.00238,"80":0.04043,"81":0.00238,"84":0.02616,"85":0.01665,"86":0.01427,"92":0.00951,"95":0.00713,"96":0.00951,"100":0.00476,"101":0.02854,"102":0.23304,"103":0.00476,"105":0.01189,"106":0.05232,"107":0.01427,"108":0.14744,"109":4.17815,"110":0.00238,"112":0.00713,"114":0.02616,"116":0.01189,"117":0.00238,"118":0.03329,"119":0.01665,"120":0.04994,"121":0.06183,"122":0.2164,"123":0.22115,"124":7.4479,"125":3.7073,"126":0.00238,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 51 53 54 56 59 60 61 62 63 66 67 70 74 75 76 77 83 87 88 89 90 91 93 94 97 98 99 104 111 113 115 127 128"},F:{"40":0.00238,"46":0.01427,"50":0.00238,"53":0.00238,"64":0.00238,"68":0.00238,"73":0.00713,"74":0.00476,"79":0.01902,"82":0.00238,"83":0.00238,"84":0.00476,"89":0.00238,"90":0.00238,"92":0.00238,"94":0.00951,"95":0.00713,"98":0.00238,"101":0.00951,"106":0.00713,"107":0.03567,"109":0.07134,"110":0.00951,_:"9 11 12 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 41 42 43 44 45 47 48 49 51 52 54 55 56 57 58 60 62 63 65 66 67 69 70 71 72 75 76 77 78 80 81 85 86 87 88 91 93 96 97 99 100 102 103 104 105 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 12.1","11.6":0.00476},B:{"16":0.0761,"18":0.01665,"84":0.01902,"85":0.00238,"88":0.01189,"89":0.0428,"90":0.00238,"92":0.18786,"96":0.00238,"99":0.00951,"100":0.03567,"101":0.00238,"103":0.00476,"105":0.00713,"108":0.00951,"109":0.00238,"110":0.01189,"111":0.00476,"112":0.00951,"113":0.00713,"114":0.00713,"115":0.00476,"117":0.00238,"119":0.00713,"120":0.06421,"121":0.00476,"123":0.01427,"124":0.20926,"125":0.03329,_:"12 13 14 15 17 79 80 81 83 86 87 91 93 94 95 97 98 102 104 106 107 116 118 122"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.2-15.3 15.4 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.6","15.1":0.00713,"15.5":0.00238,"15.6":0.01189,"16.6":0.09274,"17.1":0.00713,"17.3":0.09036,"17.4":0.09274,"17.5":0.00238},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00146,"5.0-5.1":0.00146,"6.0-6.1":0.00365,"7.0-7.1":0.00511,"8.1-8.4":0.00146,"9.0-9.2":0.00365,"9.3":0.01678,"10.0-10.2":0.00292,"10.3":0.02626,"11.0-11.2":0.03866,"11.3-11.4":0.00729,"12.0-12.1":0.00438,"12.2-12.5":0.10577,"13.0-13.1":0.00219,"13.2":0.01021,"13.3":0.00511,"13.4-13.7":0.02334,"14.0-14.4":0.04012,"14.5-14.8":0.062,"15.0-15.1":0.02991,"15.2-15.3":0.03282,"15.4":0.0372,"15.5":0.04668,"15.6-15.8":0.42015,"16.0":0.09555,"16.1":0.19694,"16.2":0.09555,"16.3":0.16558,"16.4":0.03501,"16.5":0.07075,"16.6-16.7":0.56385,"17.0":0.06127,"17.1":0.09993,"17.2":0.10431,"17.3":0.19257,"17.4":4.37291,"17.5":0.30855,"17.6":0},P:{"4":0.1406,"20":0.04017,"21":0.16068,"22":0.472,"23":0.27115,"24":0.26111,"25":0.89378,"5.0-5.4":0.02009,"6.2-6.4":0.02009,"7.2-7.4":0.20085,_:"8.2 10.1 12.0","9.2":0.01004,"11.1-11.2":0.02009,"13.0":0.03013,"14.0":0.02009,"15.0":0.01004,"16.0":0.09038,"17.0":0.10043,"18.0":0.05021,"19.0":0.15064},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.35445,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.01806},R:{_:"0"},M:{"0":0.06098},Q:{_:"14.9"},O:{"0":0.33537},H:{"0":0.08}}; diff --git a/node_modules/caniuse-lite/data/regions/TN.js b/node_modules/caniuse-lite/data/regions/TN.js index c44ea490d..3cf4b4b5d 100644 --- a/node_modules/caniuse-lite/data/regions/TN.js +++ b/node_modules/caniuse-lite/data/regions/TN.js @@ -1 +1 @@ -module.exports={C:{"52":0.01308,"75":0.00436,"78":0.00436,"102":0.00436,"108":0.00436,"113":0.00436,"115":0.22241,"123":0.00436,"127":0.00436,"128":0.03053,"133":0.00436,"134":0.03489,"135":0.00872,"136":0.02181,"137":0.00436,"138":0.14827,"139":0.91145,"140":0.13083,"141":0.00436,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 109 110 111 112 114 116 117 118 119 120 121 122 124 125 126 129 130 131 132 142 143 3.5 3.6"},D:{"11":0.00436,"38":0.00436,"39":0.00872,"40":0.01308,"41":0.00872,"42":0.01308,"43":0.01308,"44":0.00872,"45":0.01308,"46":0.01308,"47":0.01308,"48":0.00872,"49":0.03925,"50":0.01308,"51":0.00872,"52":0.01308,"53":0.01308,"54":0.01308,"55":0.01308,"56":0.02181,"57":0.00872,"58":0.09158,"59":0.01308,"60":0.01308,"65":0.01744,"66":0.00436,"68":0.00436,"69":0.00872,"70":0.00872,"71":0.00436,"72":0.00436,"73":0.01308,"74":0.00436,"75":0.00436,"78":0.00436,"79":0.03053,"80":0.00436,"81":0.00872,"83":0.00872,"84":0.00436,"85":0.02181,"86":0.01744,"87":0.03053,"88":0.00436,"89":0.00436,"90":0.00436,"91":0.00872,"92":0.00436,"93":0.00436,"94":0.00436,"95":0.00872,"96":0.00436,"97":0.00872,"98":0.00872,"99":0.00436,"100":0.00436,"101":0.00436,"102":0.01744,"103":0.01744,"104":0.08722,"105":0.00872,"106":0.02181,"107":0.02617,"108":0.03489,"109":2.42908,"110":0.03489,"111":0.01308,"112":0.01308,"113":0.00436,"114":0.02181,"115":0.00436,"116":0.03925,"117":0.00436,"118":0.00872,"119":0.03489,"120":0.03053,"121":0.01744,"122":0.04797,"123":0.01744,"124":0.11775,"125":2.72999,"126":0.04361,"127":0.01744,"128":0.05669,"129":0.02617,"130":0.04797,"131":0.13955,"132":0.12211,"133":0.08286,"134":0.08722,"135":0.27038,"136":2.81285,"137":18.17665,"138":0.70648,"139":0.00872,_:"4 5 6 7 8 9 10 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 61 62 63 64 67 76 77 140 141"},F:{"40":0.00436,"46":0.00436,"79":0.01744,"82":0.01308,"89":0.00436,"90":0.00436,"92":0.00436,"95":0.06978,"109":0.00436,"114":0.00436,"117":0.00436,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00436,"84":0.00436,"92":0.02181,"100":0.00436,"103":0.00436,"109":0.03925,"111":0.00436,"114":0.01308,"115":0.00436,"119":0.00436,"122":0.00872,"125":0.00436,"128":0.00436,"129":0.00436,"130":0.00436,"131":0.01308,"132":0.02181,"133":0.02181,"134":0.02617,"135":0.02181,"136":0.61054,"137":3.04398,"138":0.24422,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 112 113 116 117 118 120 121 123 124 126 127"},E:{"11":0.00436,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 15.2-15.3 15.5 16.1 16.2 16.4 17.0 26.0","9.1":0.00436,"13.1":0.00436,"14.1":0.00872,"15.1":0.00436,"15.4":0.02181,"15.6":0.02617,"16.0":0.00436,"16.3":0.00436,"16.5":0.00436,"16.6":0.03489,"17.1":0.00872,"17.2":0.00436,"17.3":0.00436,"17.4":0.00872,"17.5":0.00872,"17.6":0.06978,"18.0":0.00872,"18.1":0.01308,"18.2":0.00436,"18.3":0.06105,"18.4":0.01744,"18.5":0.13083},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0,"6.0-6.1":0.00231,"7.0-7.1":0.00231,"8.1-8.4":0,"9.0-9.2":0.00116,"9.3":0.00694,"10.0-10.2":0.00058,"10.3":0.01157,"11.0-11.2":0.07406,"11.3-11.4":0.00405,"12.0-12.1":0.00116,"12.2-12.5":0.03876,"13.0-13.1":0.00058,"13.2":0.00174,"13.3":0.00116,"13.4-13.7":0.00636,"14.0-14.4":0.01504,"14.5-14.8":0.01504,"15.0-15.1":0.01041,"15.2-15.3":0.01041,"15.4":0.01273,"15.5":0.01389,"15.6-15.8":0.17935,"16.0":0.02372,"16.1":0.0486,"16.2":0.02488,"16.3":0.04571,"16.4":0.01041,"16.5":0.01851,"16.6-16.7":0.22506,"17.0":0.01215,"17.1":0.02141,"17.2":0.01678,"17.3":0.02372,"17.4":0.04223,"17.5":0.08852,"17.6-17.7":0.23142,"18.0":0.05728,"18.1":0.12902,"18.2":0.06827,"18.3":0.29333,"18.4":0.31127,"18.5":3.64899,"26.0":0},P:{"4":0.0908,"20":0.01009,"21":0.01009,"22":0.05045,"23":0.02018,"24":0.03027,"25":0.04036,"26":0.06054,"27":0.0908,"28":0.95848,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","7.2-7.4":0.45402,"13.0":0.01009,"17.0":0.02018,"18.0":0.01009,"19.0":0.01009},I:{"0":0.05066,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.24376,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01066,"9":0.00533,"10":0.00533,"11":0.02665,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":51.6155},R:{_:"0"},M:{"0":0.11842},Q:{_:"14.9"},O:{"0":0.11842},H:{"0":0.01}}; +module.exports={C:{"48":0.00317,"52":0.02216,"67":0.00317,"68":0.00317,"72":0.00317,"75":0.01266,"78":0.01266,"82":0.00317,"84":0.0095,"88":0.00317,"90":0.00317,"102":0.00633,"103":0.02532,"104":0.00633,"105":0.00317,"107":0.00317,"108":0.00317,"109":0.00317,"111":0.00317,"113":0.00317,"115":0.24054,"116":0.00317,"120":0.00317,"121":0.00317,"122":0.0095,"123":0.01899,"124":0.03165,"125":0.3798,"126":0.33866,"127":0.01266,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 69 70 71 73 74 76 77 79 80 81 83 85 86 87 89 91 92 93 94 95 96 97 98 99 100 101 106 110 112 114 117 118 119 128 129 3.5 3.6"},D:{"11":0.00317,"38":0.00317,"39":0.00317,"41":0.00317,"42":0.00317,"43":0.00317,"47":0.00317,"49":0.0633,"50":0.00317,"56":0.0095,"58":0.0728,"60":0.00633,"62":0.00317,"63":0.00317,"65":0.01583,"66":0.00317,"68":0.00317,"69":0.00317,"70":0.01266,"71":0.00317,"72":0.00633,"73":0.0095,"74":0.00633,"76":0.00633,"77":0.00633,"78":0.00317,"79":0.02532,"80":0.0095,"81":0.01899,"83":0.0095,"84":0.00317,"85":0.03798,"86":0.0095,"87":0.05064,"88":0.0095,"89":0.00317,"90":0.00633,"91":0.00633,"92":0.0095,"93":0.00633,"94":0.0095,"95":0.0095,"96":0.00633,"97":0.00633,"98":0.02849,"99":0.01583,"100":0.0095,"101":0.00317,"102":0.03165,"103":0.02849,"104":0.03798,"105":0.01583,"106":0.03482,"107":0.01899,"108":0.03482,"109":4.20312,"110":0.02216,"111":0.01583,"112":0.02216,"113":0.01266,"114":0.02216,"115":0.0095,"116":0.0633,"117":0.0095,"118":0.01583,"119":0.04431,"120":0.08546,"121":0.11394,"122":0.17091,"123":0.5159,"124":11.59656,"125":4.82663,"126":0.0095,"127":0.00317,_:"4 5 6 7 8 9 10 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 40 44 45 46 48 51 52 53 54 55 57 59 61 64 67 75 128"},F:{"36":0.00633,"40":0.00317,"46":0.00317,"65":0.00317,"79":0.00633,"82":0.0095,"83":0.00317,"85":0.00633,"95":0.10445,"102":0.00317,"106":0.00317,"107":0.56021,"108":0.01583,"109":1.94964,"110":0.07913,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.01266},B:{"15":0.00317,"16":0.00317,"18":0.00633,"89":0.00317,"92":0.01583,"100":0.00633,"107":0.00633,"109":0.05064,"110":0.00317,"114":0.01266,"116":0.00633,"117":0.00317,"118":0.0095,"119":0.00633,"120":0.01266,"121":0.01899,"122":0.03482,"123":0.0633,"124":1.56668,"125":0.86088,_:"12 13 14 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 112 113 115"},E:{"14":0.00633,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 17.6","13.1":0.0095,"14.1":0.0095,"15.1":0.00317,"15.4":0.00633,"15.5":0.0095,"15.6":0.02532,"16.0":0.0095,"16.1":0.01266,"16.2":0.00317,"16.3":0.00633,"16.4":0.00633,"16.5":0.00317,"16.6":0.02532,"17.0":0.01583,"17.1":0.00633,"17.2":0.01266,"17.3":0.01266,"17.4":0.08229,"17.5":0.01583},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00109,"5.0-5.1":0.00109,"6.0-6.1":0.00272,"7.0-7.1":0.0038,"8.1-8.4":0.00109,"9.0-9.2":0.00272,"9.3":0.0125,"10.0-10.2":0.00217,"10.3":0.01956,"11.0-11.2":0.0288,"11.3-11.4":0.00543,"12.0-12.1":0.00326,"12.2-12.5":0.07879,"13.0-13.1":0.00163,"13.2":0.00761,"13.3":0.0038,"13.4-13.7":0.01739,"14.0-14.4":0.02989,"14.5-14.8":0.04619,"15.0-15.1":0.02228,"15.2-15.3":0.02445,"15.4":0.02771,"15.5":0.03478,"15.6-15.8":0.31299,"16.0":0.07118,"16.1":0.14671,"16.2":0.07118,"16.3":0.12335,"16.4":0.02608,"16.5":0.05271,"16.6-16.7":0.42003,"17.0":0.04564,"17.1":0.07444,"17.2":0.0777,"17.3":0.14345,"17.4":3.25758,"17.5":0.22985,"17.6":0},P:{"4":0.16231,"20":0.03043,"21":0.05072,"22":0.06087,"23":0.13188,"24":0.21303,"25":0.99414,_:"5.0-5.4 8.2 10.1 12.0","6.2-6.4":0.02029,"7.2-7.4":0.35505,"9.2":0.01014,"11.1-11.2":0.03043,"13.0":0.02029,"14.0":0.02029,"15.0":0.01014,"16.0":0.03043,"17.0":0.05072,"18.0":0.01014,"19.0":0.04058},I:{"0":0.10893,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00024},K:{"0":0.36377,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00673,"9":0.00336,"11":0.04372,_:"6 7 10 5.5"},S:{"2.5":0.00684,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.62286},R:{_:"0"},M:{"0":0.06152},Q:{_:"14.9"},O:{"0":0.1162},H:{"0":0.06}}; diff --git a/node_modules/caniuse-lite/data/regions/TO.js b/node_modules/caniuse-lite/data/regions/TO.js index cd585d2e4..ef6a6d60f 100644 --- a/node_modules/caniuse-lite/data/regions/TO.js +++ b/node_modules/caniuse-lite/data/regions/TO.js @@ -1 +1 @@ -module.exports={C:{"78":0.02464,"126":0.00493,"127":0.00493,"133":0.01478,"136":0.00986,"137":0.04682,"138":0.00986,"139":3.65165,"140":1.1704,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 128 129 130 131 132 134 135 141 142 143 3.5 3.6"},D:{"39":0.00986,"42":0.00986,"44":0.03203,"47":0.00986,"52":0.00493,"56":0.00986,"57":0.05667,"60":0.00986,"66":0.00493,"73":0.00493,"92":0.00493,"93":0.00986,"95":0.00986,"103":0.07638,"107":0.00493,"109":0.19466,"112":0.01478,"113":0.00986,"114":0.02464,"116":0.00493,"118":0.00493,"120":0.00986,"122":0.0616,"124":0.00493,"125":0.22669,"126":0.02464,"128":0.01478,"130":0.02464,"131":0.03203,"132":0.00493,"133":0.1232,"134":0.30307,"135":0.09856,"136":1.16547,"137":6.50496,"138":0.1848,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 43 45 46 48 49 50 51 53 54 55 58 59 61 62 63 64 65 67 68 69 70 71 72 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 94 96 97 98 99 100 101 102 104 105 106 108 110 111 115 117 119 121 123 127 129 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00493,"84":0.04189,"92":0.01971,"114":0.00986,"116":0.00493,"119":0.07146,"121":0.03696,"122":0.00986,"128":0.00493,"131":0.05667,"132":0.00986,"133":0.00493,"134":0.04189,"135":0.13306,"136":0.99792,"137":5.12758,"138":0.29322,_:"12 13 14 15 16 18 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 118 120 123 124 125 126 127 129 130"},E:{"14":0.00493,"15":0.1232,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.3 17.4 18.1 26.0","11.1":0.01478,"13.1":0.07146,"14.1":0.01971,"15.1":0.00493,"15.6":0.01478,"16.3":0.03696,"16.6":0.04682,"17.1":0.0616,"17.2":0.00493,"17.5":0.07638,"17.6":0.11334,"18.0":0.03203,"18.2":0.05174,"18.3":0.10349,"18.4":0.00986,"18.5":0.06653},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0,"6.0-6.1":0.0025,"7.0-7.1":0.0025,"8.1-8.4":0,"9.0-9.2":0.00125,"9.3":0.00751,"10.0-10.2":0.00063,"10.3":0.01252,"11.0-11.2":0.08016,"11.3-11.4":0.00438,"12.0-12.1":0.00125,"12.2-12.5":0.04196,"13.0-13.1":0.00063,"13.2":0.00188,"13.3":0.00125,"13.4-13.7":0.00689,"14.0-14.4":0.01628,"14.5-14.8":0.01628,"15.0-15.1":0.01127,"15.2-15.3":0.01127,"15.4":0.01378,"15.5":0.01503,"15.6-15.8":0.19413,"16.0":0.02568,"16.1":0.0526,"16.2":0.02693,"16.3":0.04947,"16.4":0.01127,"16.5":0.02004,"16.6-16.7":0.24361,"17.0":0.01315,"17.1":0.02317,"17.2":0.01816,"17.3":0.02568,"17.4":0.04572,"17.5":0.09581,"17.6-17.7":0.2505,"18.0":0.062,"18.1":0.13965,"18.2":0.0739,"18.3":0.3175,"18.4":0.33692,"18.5":3.94971,"26.0":0},P:{"22":0.05032,"24":0.02013,"25":0.03019,"26":0.06039,"27":0.1409,"28":1.20774,_:"4 20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01006,"16.0":0.01006},I:{"0":0.08276,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":14.82331,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":54.71714},R:{_:"0"},M:{_:"0"},Q:{"14.9":0.02261},O:{"0":0.00754},H:{"0":0}}; +module.exports={C:{"115":0.08272,"120":0.00517,"124":0.10857,"125":0.41877,"126":0.517,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 127 128 129 3.5 3.6"},D:{"41":0.00517,"68":0.00517,"74":0.04136,"81":0.00517,"83":0.00517,"89":0.06204,"94":0.00517,"95":0.03102,"102":0.0517,"103":0.02068,"104":0.02068,"105":0.01551,"109":0.23265,"114":0.04136,"116":0.44462,"117":0.25333,"118":0.53768,"119":0.00517,"120":0.39292,"121":0.0517,"122":1.36488,"123":2.52813,"124":10.2883,"125":4.83912,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 75 76 77 78 79 80 84 85 86 87 88 90 91 92 93 96 97 98 99 100 101 106 107 108 110 111 112 113 115 126 127 128"},F:{"107":0.04136,"109":0.12925,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.08272,"16":0.00517,"17":0.03619,"18":0.01034,"92":0.02068,"100":0.01551,"103":0.03102,"108":0.49632,"109":0.1551,"111":0.00517,"112":0.00517,"113":0.01034,"115":0.06204,"116":0.03102,"117":0.01034,"118":0.01034,"119":0.03619,"120":0.28435,"121":0.03619,"122":0.64625,"123":0.23782,"124":11.52393,"125":3.24159,_:"13 14 15 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 107 110 114"},E:{"12":0.01034,"14":0.02585,_:"0 4 5 6 7 8 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 14.1 15.1 16.0 16.5 17.6","11.1":0.05687,"12.1":0.00517,"13.1":0.01034,"15.2-15.3":0.00517,"15.4":0.02585,"15.5":0.01034,"15.6":0.48081,"16.1":0.03102,"16.2":0.04136,"16.3":0.07755,"16.4":0.07238,"16.6":1.12706,"17.0":0.01034,"17.1":0.01551,"17.2":0.04653,"17.3":0.12408,"17.4":0.66693,"17.5":0.48081},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00231,"5.0-5.1":0.00231,"6.0-6.1":0.00576,"7.0-7.1":0.00807,"8.1-8.4":0.00231,"9.0-9.2":0.00576,"9.3":0.02652,"10.0-10.2":0.00461,"10.3":0.04151,"11.0-11.2":0.0611,"11.3-11.4":0.01153,"12.0-12.1":0.00692,"12.2-12.5":0.16717,"13.0-13.1":0.00346,"13.2":0.01614,"13.3":0.00807,"13.4-13.7":0.03689,"14.0-14.4":0.06341,"14.5-14.8":0.098,"15.0-15.1":0.04727,"15.2-15.3":0.05188,"15.4":0.0588,"15.5":0.07379,"15.6-15.8":0.66408,"16.0":0.15103,"16.1":0.31129,"16.2":0.15103,"16.3":0.26171,"16.4":0.05534,"16.5":0.11183,"16.6-16.7":0.89121,"17.0":0.09685,"17.1":0.15795,"17.2":0.16487,"17.3":0.30437,"17.4":6.91176,"17.5":0.48769,"17.6":0},P:{"4":0.01023,"20":0.04093,"21":0.14325,"22":0.06139,"23":0.13302,"24":0.31719,"25":0.66508,"5.0-5.4":0.02046,_:"6.2-6.4 8.2 9.2 11.1-11.2 12.0 14.0 17.0","7.2-7.4":0.02046,"10.1":0.01023,"13.0":0.01023,"15.0":0.01023,"16.0":0.02046,"18.0":0.0307,"19.0":0.06139},I:{"0":0.06736,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.06279,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02585,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":36.767},R:{_:"0"},M:{"0":0.07245},Q:{_:"14.9"},O:{"0":0.00966},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TR.js b/node_modules/caniuse-lite/data/regions/TR.js index a94ae0303..a03999d65 100644 --- a/node_modules/caniuse-lite/data/regions/TR.js +++ b/node_modules/caniuse-lite/data/regions/TR.js @@ -1 +1 @@ -module.exports={C:{"47":0.00223,"52":0.00446,"71":0.00223,"72":0.00223,"78":0.00223,"89":0.00223,"115":0.07585,"123":0.00223,"124":0.00223,"127":0.00223,"128":0.00669,"135":0.00223,"136":0.00446,"137":0.00223,"138":0.01116,"139":0.2588,"140":0.03123,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 125 126 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"26":0.00446,"34":0.01116,"38":0.029,"39":0.00223,"40":0.00223,"41":0.00223,"42":0.00223,"43":0.00223,"44":0.00223,"45":0.00223,"46":0.00223,"47":0.01339,"48":0.00223,"49":0.02008,"50":0.00669,"51":0.00223,"52":0.00446,"53":0.01116,"54":0.00223,"55":0.00223,"56":0.00223,"57":0.00223,"58":0.00446,"59":0.00223,"60":0.00223,"61":0.00223,"63":0.00223,"65":0.00223,"66":0.00223,"68":0.00223,"69":0.00223,"70":0.00223,"71":0.00223,"72":0.00223,"73":0.01339,"75":0.00223,"76":0.00223,"78":0.00223,"79":0.22087,"80":0.00669,"81":0.00669,"83":0.04016,"84":0.00223,"85":0.01562,"86":0.00446,"87":0.20525,"88":0.00669,"89":0.00223,"90":0.00223,"91":0.00892,"92":0.00223,"94":0.01116,"95":0.00892,"96":0.00223,"97":0.00223,"98":0.00446,"99":0.00223,"100":0.00223,"101":0.00669,"102":0.00669,"103":0.01339,"104":0.00892,"105":0.00446,"106":0.01785,"107":0.00892,"108":0.09147,"109":1.76918,"110":0.00669,"111":0.01116,"112":0.00669,"113":0.00223,"114":0.04239,"115":0.00223,"116":0.02231,"117":0.00223,"118":0.01116,"119":0.01562,"120":0.00892,"121":0.01116,"122":0.029,"123":0.01562,"124":0.01339,"125":0.28557,"126":0.02008,"127":0.01116,"128":0.03123,"129":0.01116,"130":0.02008,"131":0.05354,"132":0.02454,"133":0.03347,"134":0.06024,"135":0.11378,"136":1.28506,"137":9.23411,"138":0.30342,"139":0.00223,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 35 36 37 62 64 67 74 77 93 140 141"},F:{"32":0.00446,"36":0.01116,"40":0.05801,"46":0.06916,"58":0.00223,"79":0.00223,"85":0.00223,"86":0.00223,"89":0.03793,"90":0.01785,"95":0.02677,"113":0.00223,"114":0.00223,"117":0.00223,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00446,"15":0.00223,"17":0.00223,"18":0.00669,"92":0.00446,"108":0.00223,"109":0.05354,"121":0.00223,"122":0.00223,"124":0.00223,"125":0.00223,"126":0.00223,"128":0.00223,"129":0.00223,"130":0.00446,"131":0.00892,"132":0.00669,"133":0.00446,"134":0.01785,"135":0.01785,"136":0.22533,"137":1.40553,"138":0.10932,_:"12 13 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117 118 119 120 123 127"},E:{"13":0.00223,"14":0.00223,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 26.0","5.1":0.00223,"12.1":0.00223,"13.1":0.00446,"14.1":0.00892,"15.2-15.3":0.00223,"15.4":0.00446,"15.5":0.00223,"15.6":0.03793,"16.0":0.00669,"16.1":0.00669,"16.2":0.00446,"16.3":0.00892,"16.4":0.00446,"16.5":0.00669,"16.6":0.04239,"17.0":0.00223,"17.1":0.01339,"17.2":0.00446,"17.3":0.00446,"17.4":0.01116,"17.5":0.01562,"17.6":0.04462,"18.0":0.01116,"18.1":0.01562,"18.2":0.00892,"18.3":0.04016,"18.4":0.0357,"18.5":0.31903},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00305,"5.0-5.1":0,"6.0-6.1":0.00609,"7.0-7.1":0.00609,"8.1-8.4":0,"9.0-9.2":0.00305,"9.3":0.01828,"10.0-10.2":0.00152,"10.3":0.03047,"11.0-11.2":0.19501,"11.3-11.4":0.01066,"12.0-12.1":0.00305,"12.2-12.5":0.10207,"13.0-13.1":0.00152,"13.2":0.00457,"13.3":0.00305,"13.4-13.7":0.01676,"14.0-14.4":0.03961,"14.5-14.8":0.03961,"15.0-15.1":0.02742,"15.2-15.3":0.02742,"15.4":0.03352,"15.5":0.03656,"15.6-15.8":0.47229,"16.0":0.06246,"16.1":0.12797,"16.2":0.06551,"16.3":0.12036,"16.4":0.02742,"16.5":0.04875,"16.6-16.7":0.59264,"17.0":0.03199,"17.1":0.05637,"17.2":0.04418,"17.3":0.06246,"17.4":0.11122,"17.5":0.2331,"17.6-17.7":0.6094,"18.0":0.15083,"18.1":0.33974,"18.2":0.17977,"18.3":0.77241,"18.4":0.81964,"18.5":9.60872,"26.0":0},P:{"4":0.17672,"20":0.0104,"21":0.06237,"22":0.02079,"23":0.03119,"24":0.02079,"25":0.06237,"26":0.13514,"27":0.13514,"28":1.96476,"5.0-5.4":0.04158,"6.2-6.4":0.0104,"7.2-7.4":0.11435,_:"8.2 9.2 10.1 11.1-11.2 12.0 15.0 18.0","13.0":0.03119,"14.0":0.0104,"16.0":0.0104,"17.0":0.07277,"19.0":0.0104},I:{"0":0.03102,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.95559,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00527,"9":0.00264,"10":0.00264,"11":0.01846,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.16158},R:{_:"0"},M:{"0":0.101},Q:{_:"14.9"},O:{"0":0.08546},H:{"0":0}}; +module.exports={C:{"48":0.00225,"51":0.00225,"52":0.00451,"72":0.00225,"78":0.00225,"86":0.00225,"88":0.00676,"102":0.00225,"103":0.00225,"105":0.00225,"106":0.00225,"108":0.00225,"110":0.00225,"111":0.00225,"115":0.11721,"121":0.00225,"122":0.00225,"123":0.00225,"124":0.00676,"125":0.18934,"126":0.16229,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 107 109 112 113 114 116 117 118 119 120 127 128 129 3.5 3.6"},D:{"22":0.00451,"26":0.03606,"34":0.0834,"38":0.13524,"39":0.00225,"41":0.00225,"43":0.00225,"47":0.04283,"49":0.09241,"50":0.00225,"53":0.00902,"56":0.00225,"58":0.00225,"60":0.00676,"61":0.00225,"63":0.00225,"65":0.00225,"66":0.00225,"67":0.00451,"68":0.00451,"69":0.00225,"70":0.00225,"71":0.00225,"72":0.00225,"73":0.01578,"75":0.00225,"76":0.00225,"77":0.00225,"78":0.00225,"79":0.33134,"80":0.00902,"81":0.00451,"83":0.03832,"84":0.00225,"85":0.0293,"86":0.00676,"87":0.23667,"88":0.00902,"89":0.00451,"90":0.00451,"91":0.00451,"92":0.00451,"93":0.00225,"94":0.07664,"95":0.00451,"96":0.04508,"97":0.00451,"98":0.00676,"99":0.04733,"100":0.00902,"101":0.00451,"102":0.00676,"103":0.01803,"104":0.00902,"105":0.00676,"106":0.02479,"107":0.01578,"108":0.02254,"109":2.66423,"110":0.01127,"111":0.01352,"112":0.02254,"113":0.01127,"114":0.01803,"115":0.01803,"116":0.04959,"117":0.01127,"118":0.01803,"119":0.04283,"120":0.09467,"121":0.05184,"122":0.10143,"123":0.27048,"124":7.81687,"125":3.15109,"126":0.00451,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 27 28 29 30 31 32 33 35 36 37 40 42 44 45 46 48 51 52 54 55 57 59 62 64 74 127 128"},F:{"25":0.00225,"28":0.01127,"31":0.00902,"32":0.00676,"36":0.00676,"40":0.04508,"46":0.12172,"79":0.00451,"82":0.00225,"85":0.00451,"86":0.00225,"95":0.04959,"102":0.00225,"106":0.00225,"107":0.25019,"108":0.01127,"109":0.96697,"110":0.04959,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 29 30 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00225,"13":0.00225,"14":0.00225,"15":0.00225,"16":0.00225,"17":0.00225,"18":0.00902,"92":0.00676,"100":0.00225,"107":0.00225,"108":0.00225,"109":0.08565,"110":0.00225,"111":0.00225,"112":0.00225,"113":0.00225,"114":0.00451,"115":0.00225,"116":0.00225,"117":0.00451,"118":0.00225,"119":0.00676,"120":0.01127,"121":0.00902,"122":0.01578,"123":0.03381,"124":1.19462,"125":0.70325,_:"79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106"},E:{"13":0.00225,"14":0.01127,"15":0.00225,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 17.6","12.1":0.00225,"13.1":0.01127,"14.1":0.01578,"15.1":0.00225,"15.2-15.3":0.00225,"15.4":0.00676,"15.5":0.00451,"15.6":0.06086,"16.0":0.00451,"16.1":0.01352,"16.2":0.01127,"16.3":0.02479,"16.4":0.00676,"16.5":0.01352,"16.6":0.06086,"17.0":0.00902,"17.1":0.01578,"17.2":0.02479,"17.3":0.01803,"17.4":0.2547,"17.5":0.03156},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00241,"5.0-5.1":0.00241,"6.0-6.1":0.00602,"7.0-7.1":0.00843,"8.1-8.4":0.00241,"9.0-9.2":0.00602,"9.3":0.02769,"10.0-10.2":0.00481,"10.3":0.04333,"11.0-11.2":0.0638,"11.3-11.4":0.01204,"12.0-12.1":0.00722,"12.2-12.5":0.17454,"13.0-13.1":0.00361,"13.2":0.01685,"13.3":0.00843,"13.4-13.7":0.03852,"14.0-14.4":0.06621,"14.5-14.8":0.10232,"15.0-15.1":0.04935,"15.2-15.3":0.05417,"15.4":0.06139,"15.5":0.07704,"15.6-15.8":0.69335,"16.0":0.15769,"16.1":0.32501,"16.2":0.15769,"16.3":0.27325,"16.4":0.05778,"16.5":0.11676,"16.6-16.7":0.93048,"17.0":0.10111,"17.1":0.16491,"17.2":0.17213,"17.3":0.31778,"17.4":7.21635,"17.5":0.50918,"17.6":0},P:{"4":0.52935,"20":0.03054,"21":0.11198,"22":0.06108,"23":0.23414,"24":0.27486,"25":2.06651,"5.0-5.4":0.04072,"6.2-6.4":0.03054,"7.2-7.4":0.11198,_:"8.2 10.1 15.0","9.2":0.02036,"11.1-11.2":0.01018,"12.0":0.01018,"13.0":0.04072,"14.0":0.01018,"16.0":0.02036,"17.0":0.07126,"18.0":0.01018,"19.0":0.03054},I:{"0":0.03086,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.90628,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00228,"9":0.00228,"11":0.16448,_:"6 7 10 5.5"},S:{"2.5":0.00775,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":59.8771},R:{_:"0"},M:{"0":0.09295},Q:{_:"14.9"},O:{"0":0.10844},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TT.js b/node_modules/caniuse-lite/data/regions/TT.js index 350786508..62ad8d659 100644 --- a/node_modules/caniuse-lite/data/regions/TT.js +++ b/node_modules/caniuse-lite/data/regions/TT.js @@ -1 +1 @@ -module.exports={C:{"78":0.0031,"115":0.10537,"121":0.0124,"127":0.0031,"128":0.0155,"131":0.0031,"134":0.0031,"135":0.0124,"136":0.0062,"137":0.0031,"138":0.01859,"139":0.48344,"140":0.06508,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 130 132 133 141 142 143 3.5 3.6"},D:{"39":0.0124,"40":0.0124,"41":0.0124,"42":0.0093,"43":0.0124,"44":0.0093,"45":0.0124,"46":0.0124,"47":0.0124,"48":0.0124,"49":0.04029,"50":0.0124,"51":0.0124,"52":0.0124,"53":0.0155,"54":0.0093,"55":0.0124,"56":0.0124,"57":0.0155,"58":0.0093,"59":0.0124,"60":0.0155,"65":0.0031,"70":0.0031,"75":0.0031,"76":0.0031,"79":0.04029,"87":0.02479,"91":0.0031,"93":0.0124,"95":0.0031,"98":0.0062,"101":0.0031,"103":0.09297,"104":0.11776,"106":0.0062,"107":0.0031,"108":0.0124,"109":0.89251,"110":0.0031,"111":0.0031,"114":0.0062,"115":0.0031,"116":0.05578,"118":0.0031,"119":0.0124,"120":0.0093,"121":0.04339,"122":0.22003,"123":0.0155,"124":0.0155,"125":7.96133,"126":0.13016,"127":0.0031,"128":0.10227,"129":0.0093,"130":0.01859,"131":0.04339,"132":0.03099,"133":0.03719,"134":0.04649,"135":0.12396,"136":2.12282,"137":9.27531,"138":0.32849,"139":0.0062,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 71 72 73 74 77 78 80 81 83 84 85 86 88 89 90 92 94 96 97 99 100 102 105 112 113 117 140 141"},F:{"89":0.0062,"90":0.0062,"95":0.0031,"114":0.0031,"117":0.0155,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0031,"109":0.0155,"117":0.0031,"122":0.0062,"123":0.0124,"126":0.0093,"128":0.0031,"129":0.0031,"131":0.0155,"132":0.0062,"133":0.0093,"134":0.04339,"135":0.02789,"136":0.40597,"137":2.31185,"138":0.18904,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 118 119 120 121 124 125 127 130"},E:{"14":0.0031,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 26.0","12.1":0.0031,"13.1":0.02169,"14.1":0.0062,"15.4":0.0031,"15.5":0.0031,"15.6":0.04029,"16.0":0.0062,"16.1":0.0062,"16.2":0.03099,"16.3":0.0062,"16.4":0.0031,"16.5":0.0031,"16.6":0.12396,"17.0":0.0062,"17.1":0.05578,"17.2":0.0031,"17.3":0.0062,"17.4":0.0093,"17.5":0.03099,"17.6":0.15495,"18.0":0.02479,"18.1":0.01859,"18.2":0.0062,"18.3":0.11466,"18.4":0.08057,"18.5":1.00718},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00264,"5.0-5.1":0,"6.0-6.1":0.00529,"7.0-7.1":0.00529,"8.1-8.4":0,"9.0-9.2":0.00264,"9.3":0.01586,"10.0-10.2":0.00132,"10.3":0.02643,"11.0-11.2":0.16916,"11.3-11.4":0.00925,"12.0-12.1":0.00264,"12.2-12.5":0.08854,"13.0-13.1":0.00132,"13.2":0.00396,"13.3":0.00264,"13.4-13.7":0.01454,"14.0-14.4":0.03436,"14.5-14.8":0.03436,"15.0-15.1":0.02379,"15.2-15.3":0.02379,"15.4":0.02907,"15.5":0.03172,"15.6-15.8":0.40968,"16.0":0.05418,"16.1":0.11101,"16.2":0.05683,"16.3":0.1044,"16.4":0.02379,"16.5":0.04229,"16.6-16.7":0.51408,"17.0":0.02775,"17.1":0.0489,"17.2":0.03832,"17.3":0.05418,"17.4":0.09647,"17.5":0.2022,"17.6-17.7":0.52862,"18.0":0.13083,"18.1":0.2947,"18.2":0.15594,"18.3":0.67002,"18.4":0.71099,"18.5":8.33496,"26.0":0},P:{"4":0.08409,"21":0.01051,"22":0.01051,"23":0.02102,"24":0.03153,"25":0.03153,"26":0.06306,"27":0.0946,"28":2.30186,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","6.2-6.4":0.01051,"7.2-7.4":0.06306,"17.0":0.01051},I:{"0":0.03445,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.15872,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":54.20361},R:{_:"0"},M:{"0":0.17943},Q:{_:"14.9"},O:{"0":0.0069},H:{"0":0}}; +module.exports={C:{"31":0.00391,"52":0.01563,"78":0.00391,"87":0.00391,"88":0.01172,"102":0.00781,"103":0.00781,"115":0.10549,"121":0.03126,"123":0.00391,"124":0.01954,"125":0.5001,"126":0.53135,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 127 128 129 3.5 3.6"},D:{"38":0.00391,"49":0.03126,"53":0.00391,"56":0.00391,"58":0.00781,"62":0.00391,"65":0.00391,"67":0.00391,"69":0.00391,"70":0.00391,"75":0.00391,"76":0.00781,"79":0.02344,"81":0.00781,"83":0.00781,"84":0.00781,"85":0.00391,"87":0.01954,"88":0.00391,"89":0.00781,"90":0.00391,"91":0.01563,"93":0.06642,"94":0.02735,"95":0.01563,"96":0.00781,"97":0.00391,"98":0.03126,"99":0.01172,"100":0.01172,"101":0.00391,"102":0.01172,"103":0.35163,"104":0.02735,"105":0.00391,"106":0.00781,"107":0.00391,"108":0.01172,"109":1.98476,"110":0.00391,"111":0.04298,"112":0.00391,"113":0.00781,"114":0.01563,"115":0.01172,"116":0.13675,"117":0.00391,"118":0.01563,"119":0.18754,"120":0.14065,"121":0.04298,"122":0.26177,"123":1.29322,"124":14.80362,"125":5.57529,"126":0.01954,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 50 51 52 54 55 57 59 60 61 63 64 66 68 71 72 73 74 77 78 80 86 92 127 128"},F:{"28":0.00391,"95":0.01563,"107":0.34382,"108":0.01172,"109":0.91033,"110":0.04298,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00391,"13":0.1094,"15":0.21879,"17":0.00391,"18":0.00391,"90":0.00391,"91":0.00391,"92":0.00391,"98":0.00391,"108":0.00391,"109":0.10158,"111":0.00391,"113":0.00391,"117":0.00391,"119":0.01954,"120":0.01563,"121":0.00781,"122":0.02735,"123":0.17582,"124":4.39928,"125":1.6761,_:"14 16 79 80 81 83 84 85 86 87 88 89 93 94 95 96 97 99 100 101 102 103 104 105 106 107 110 112 114 115 116 118"},E:{"14":0.00391,"15":0.01172,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 17.6","13.1":0.04688,"14.1":0.13284,"15.1":0.00391,"15.4":0.01172,"15.5":0.01954,"15.6":0.10549,"16.0":0.01172,"16.1":0.01954,"16.2":0.02344,"16.3":0.02344,"16.4":0.00781,"16.5":0.02344,"16.6":0.15237,"17.0":0.02344,"17.1":0.08595,"17.2":0.05861,"17.3":0.08205,"17.4":1.04708,"17.5":0.22661},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00336,"5.0-5.1":0.00336,"6.0-6.1":0.00839,"7.0-7.1":0.01175,"8.1-8.4":0.00336,"9.0-9.2":0.00839,"9.3":0.03861,"10.0-10.2":0.00671,"10.3":0.06043,"11.0-11.2":0.08897,"11.3-11.4":0.01679,"12.0-12.1":0.01007,"12.2-12.5":0.2434,"13.0-13.1":0.00504,"13.2":0.0235,"13.3":0.01175,"13.4-13.7":0.05372,"14.0-14.4":0.09232,"14.5-14.8":0.14268,"15.0-15.1":0.06882,"15.2-15.3":0.07554,"15.4":0.08561,"15.5":0.10743,"15.6-15.8":0.96689,"16.0":0.2199,"16.1":0.45323,"16.2":0.2199,"16.3":0.38105,"16.4":0.08057,"16.5":0.16283,"16.6-16.7":1.29757,"17.0":0.141,"17.1":0.22997,"17.2":0.24004,"17.3":0.44316,"17.4":10.06334,"17.5":0.71006,"17.6":0},P:{"4":0.2066,"20":0.01087,"21":0.13049,"22":0.06524,"23":0.14136,"24":0.29359,"25":4.00158,_:"5.0-5.4 8.2 10.1 12.0 14.0 15.0","6.2-6.4":0.01087,"7.2-7.4":0.13049,"9.2":0.01087,"11.1-11.2":0.01087,"13.0":0.01087,"16.0":0.01087,"17.0":0.03262,"18.0":0.01087,"19.0":0.02175},I:{"0":0.01821,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.23763,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00391,"11":0.00391,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":40.24475},R:{_:"0"},M:{"0":0.28637},Q:{_:"14.9"},O:{"0":0.09749},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TV.js b/node_modules/caniuse-lite/data/regions/TV.js index 6bbf3707b..41d10c2ca 100644 --- a/node_modules/caniuse-lite/data/regions/TV.js +++ b/node_modules/caniuse-lite/data/regions/TV.js @@ -1 +1 @@ -module.exports={C:{"139":0.6476,"140":0.21587,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 141 142 143 3.5 3.6"},D:{"43":0.07306,"116":0.07306,"122":0.07306,"125":0.57453,"126":0.1428,"134":0.1428,"135":0.07306,"136":2.37119,"137":15.95741,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 119 120 121 123 124 127 128 129 130 131 132 133 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"136":0.86346,"137":6.90104,"138":0.86346,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.4 26.0","16.3":0.07306,"16.6":0.35867,"17.6":0.07306,"18.3":0.28893,"18.5":0.21587},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0,"6.0-6.1":0.00221,"7.0-7.1":0.00221,"8.1-8.4":0,"9.0-9.2":0.00111,"9.3":0.00664,"10.0-10.2":0.00055,"10.3":0.01107,"11.0-11.2":0.07087,"11.3-11.4":0.00388,"12.0-12.1":0.00111,"12.2-12.5":0.0371,"13.0-13.1":0.00055,"13.2":0.00166,"13.3":0.00111,"13.4-13.7":0.00609,"14.0-14.4":0.0144,"14.5-14.8":0.0144,"15.0-15.1":0.00997,"15.2-15.3":0.00997,"15.4":0.01218,"15.5":0.01329,"15.6-15.8":0.17164,"16.0":0.0227,"16.1":0.04651,"16.2":0.02381,"16.3":0.04374,"16.4":0.00997,"16.5":0.01772,"16.6-16.7":0.21539,"17.0":0.01163,"17.1":0.02049,"17.2":0.01606,"17.3":0.0227,"17.4":0.04042,"17.5":0.08471,"17.6-17.7":0.22148,"18.0":0.05482,"18.1":0.12347,"18.2":0.06534,"18.3":0.28072,"18.4":0.29788,"18.5":3.49212,"26.0":0},P:{"27":0.07186,"28":1.03685,_:"4 20 21 22 23 24 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.14669,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.21918},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"122":0.65624,"125":4.57727,"126":0.65624,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 123 124 127 128 129 3.5 3.6"},D:{"109":0.98436,"122":0.32812,"124":19.93329,"125":4.90539,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 126 127 128"},F:{"109":10.78695,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"106":0.65624,"122":0.32812,"123":0.65624,"124":15.0361,"125":22.22193,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6","16.3":0.32812},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0,"15.2-15.3":0,"15.4":0,"15.5":0,"15.6-15.8":0,"16.0":0,"16.1":0,"16.2":0,"16.3":0,"16.4":0,"16.5":0,"16.6-16.7":0,"17.0":0,"17.1":0,"17.2":0,"17.3":0,"17.4":0,"17.5":0,"17.6":0},P:{"25":0.32705,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":17.64295},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TW.js b/node_modules/caniuse-lite/data/regions/TW.js index e1f68a81a..5f456218a 100644 --- a/node_modules/caniuse-lite/data/regions/TW.js +++ b/node_modules/caniuse-lite/data/regions/TW.js @@ -1 +1 @@ -module.exports={C:{"14":0.0036,"52":0.02159,"56":0.0036,"78":0.0072,"112":0.0072,"115":0.09717,"125":0.0036,"128":0.0144,"131":0.0036,"132":0.0036,"133":0.0036,"134":0.0036,"135":0.0072,"136":0.0144,"137":0.0072,"138":0.03239,"139":0.77379,"140":0.13676,"141":0.0036,_:"2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 142 143 3.5 3.6"},D:{"41":0.0036,"43":0.0036,"48":0.0036,"49":0.018,"51":0.0036,"53":0.0036,"58":0.0036,"61":0.0036,"63":0.0036,"66":0.0036,"74":0.0036,"75":0.0036,"77":0.21234,"78":0.0036,"79":0.02879,"80":0.0108,"81":0.10437,"83":0.0072,"85":0.02519,"86":0.05399,"87":0.018,"89":0.0036,"90":0.0036,"91":0.03959,"92":0.0036,"95":0.0072,"96":0.0072,"97":0.0036,"98":0.0072,"100":0.0036,"101":0.0108,"102":0.0036,"103":0.018,"104":0.11517,"105":0.0072,"106":0.0072,"107":0.018,"108":0.03959,"109":1.25605,"110":0.0144,"111":0.0108,"112":0.018,"113":0.0108,"114":0.02519,"115":0.0108,"116":0.05758,"117":0.018,"118":0.04319,"119":0.06118,"120":0.05039,"121":0.02879,"122":0.03239,"123":0.02519,"124":0.04679,"125":0.09357,"126":0.03959,"127":0.05399,"128":0.06118,"129":0.02879,"130":0.04319,"131":0.07558,"132":0.08998,"133":0.09717,"134":0.11877,"135":0.19435,"136":2.69925,"137":16.96569,"138":0.7054,"139":0.02879,"140":0.0036,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 47 50 52 54 55 56 57 59 60 62 64 65 67 68 69 70 71 72 73 76 84 88 93 94 99 141"},F:{"46":0.0108,"47":0.0036,"79":0.0036,"89":0.0108,"90":0.0144,"95":0.0144,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0036,"92":0.0036,"106":0.0036,"107":0.0036,"108":0.0036,"109":0.06838,"110":0.0036,"113":0.0036,"114":0.0036,"115":0.0036,"118":0.0036,"119":0.0036,"120":0.0072,"121":0.0036,"122":0.0036,"124":0.0036,"125":0.0144,"126":0.0072,"127":0.0072,"128":0.0036,"129":0.0036,"130":0.0072,"131":0.0144,"132":0.0108,"133":0.02159,"134":0.02879,"135":0.04679,"136":0.55065,"137":3.17792,"138":0.24833,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 111 112 116 117 123"},E:{"14":0.0072,"15":0.0036,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.02159,"13.1":0.03959,"14.1":0.02879,"15.1":0.0036,"15.2-15.3":0.0036,"15.4":0.0108,"15.5":0.02159,"15.6":0.14756,"16.0":0.018,"16.1":0.02519,"16.2":0.02519,"16.3":0.04679,"16.4":0.0144,"16.5":0.018,"16.6":0.21234,"17.0":0.0072,"17.1":0.17635,"17.2":0.0144,"17.3":0.0144,"17.4":0.03959,"17.5":0.07558,"17.6":0.19435,"18.0":0.02879,"18.1":0.05758,"18.2":0.03239,"18.3":0.16196,"18.4":0.11157,"18.5":1.54397},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00528,"5.0-5.1":0,"6.0-6.1":0.01055,"7.0-7.1":0.01055,"8.1-8.4":0,"9.0-9.2":0.00528,"9.3":0.03166,"10.0-10.2":0.00264,"10.3":0.05277,"11.0-11.2":0.33773,"11.3-11.4":0.01847,"12.0-12.1":0.00528,"12.2-12.5":0.17678,"13.0-13.1":0.00264,"13.2":0.00792,"13.3":0.00528,"13.4-13.7":0.02902,"14.0-14.4":0.0686,"14.5-14.8":0.0686,"15.0-15.1":0.04749,"15.2-15.3":0.04749,"15.4":0.05805,"15.5":0.06332,"15.6-15.8":0.81793,"16.0":0.10818,"16.1":0.22163,"16.2":0.11346,"16.3":0.20844,"16.4":0.04749,"16.5":0.08443,"16.6-16.7":1.02637,"17.0":0.05541,"17.1":0.09762,"17.2":0.07652,"17.3":0.10818,"17.4":0.19261,"17.5":0.40369,"17.6-17.7":1.0554,"18.0":0.26121,"18.1":0.58838,"18.2":0.31134,"18.3":1.33772,"18.4":1.41951,"18.5":16.64097,"26.0":0},P:{"20":0.01076,"21":0.04304,"22":0.05381,"23":0.04304,"24":0.05381,"25":0.05381,"26":0.07533,"27":0.32283,"28":3.00235,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01076,"13.0":0.01076,"17.0":0.02152,"19.0":0.01076},I:{"0":0.00639,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.29445,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0125,"10":0.00625,"11":0.21878,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.09802},R:{_:"0"},M:{"0":0.26244},Q:{"14.9":0.04481},O:{"0":0.16003},H:{"0":0}}; +module.exports={C:{"34":0.03083,"52":0.0044,"78":0.0044,"88":0.01321,"102":0.0044,"103":0.00881,"115":0.16735,"121":0.0044,"122":0.0044,"123":0.0044,"124":0.01762,"125":0.35672,"126":0.31268,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 127 128 129 3.5 3.6"},D:{"11":0.00881,"26":0.0044,"30":0.00881,"33":0.00881,"34":0.02202,"38":0.07046,"45":0.0044,"49":0.03523,"53":0.04844,"55":0.0044,"56":0.01762,"61":0.04404,"63":0.0044,"64":0.0044,"65":0.00881,"66":0.00881,"67":0.00881,"68":0.0044,"69":0.0044,"70":0.0044,"71":0.00881,"72":0.0044,"73":0.02642,"74":0.01762,"75":0.0044,"76":0.0044,"77":0.0044,"78":0.0044,"79":0.43159,"80":0.00881,"81":0.02202,"83":0.02202,"84":0.0044,"85":0.0044,"86":0.01321,"87":0.29947,"88":0.0044,"89":0.00881,"90":0.00881,"91":0.00881,"92":0.0044,"93":0.0044,"94":0.08368,"95":0.01321,"96":0.00881,"97":0.02202,"98":0.00881,"99":0.01762,"100":0.00881,"101":0.01321,"102":0.02642,"103":0.07046,"104":0.02202,"105":0.01321,"106":0.01762,"107":0.01321,"108":0.03964,"109":3.42191,"110":0.01762,"111":0.01762,"112":0.01321,"113":0.00881,"114":0.02202,"115":0.01762,"116":0.13652,"117":0.01762,"118":0.03083,"119":0.08808,"120":0.1101,"121":0.1145,"122":0.18056,"123":0.73106,"124":17.43984,"125":6.80418,"126":0.01762,"127":0.0044,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 31 32 35 36 37 39 40 41 42 43 44 46 47 48 50 51 52 54 57 58 59 60 62 128"},F:{"28":0.01321,"36":0.01762,"40":0.0044,"46":0.1057,"95":0.01321,"107":0.0044,"108":0.0044,"109":0.08808,"110":0.00881,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0044,"17":0.0044,"18":0.00881,"84":0.0044,"92":0.0044,"98":0.0044,"106":0.0044,"107":0.0044,"108":0.00881,"109":0.09689,"110":0.0044,"111":0.0044,"112":0.0044,"113":0.00881,"114":0.0044,"115":0.00881,"116":0.0044,"117":0.0044,"118":0.0044,"119":0.00881,"120":0.01762,"121":0.01321,"122":0.02642,"123":0.08808,"124":2.54111,"125":1.47534,_:"12 13 15 16 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105"},E:{"13":0.03083,"14":0.10129,"15":0.01762,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.0044,"12.1":0.02202,"13.1":0.07927,"14.1":0.27745,"15.1":0.03083,"15.2-15.3":0.02642,"15.4":0.09689,"15.5":0.14974,"15.6":0.59454,"16.0":0.03083,"16.1":0.12772,"16.2":0.07927,"16.3":0.22901,"16.4":0.04844,"16.5":0.13212,"16.6":0.74428,"17.0":0.03523,"17.1":0.13652,"17.2":0.13652,"17.3":0.2158,"17.4":3.07399,"17.5":0.14974},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00525,"5.0-5.1":0.00525,"6.0-6.1":0.01312,"7.0-7.1":0.01836,"8.1-8.4":0.00525,"9.0-9.2":0.01312,"9.3":0.06034,"10.0-10.2":0.01049,"10.3":0.09444,"11.0-11.2":0.13904,"11.3-11.4":0.02623,"12.0-12.1":0.01574,"12.2-12.5":0.38039,"13.0-13.1":0.00787,"13.2":0.03673,"13.3":0.01836,"13.4-13.7":0.08395,"14.0-14.4":0.14429,"14.5-14.8":0.22299,"15.0-15.1":0.10756,"15.2-15.3":0.11805,"15.4":0.13379,"15.5":0.1679,"15.6-15.8":1.51108,"16.0":0.34367,"16.1":0.70832,"16.2":0.34367,"16.3":0.59551,"16.4":0.12592,"16.5":0.25447,"16.6-16.7":2.02789,"17.0":0.22037,"17.1":0.35941,"17.2":0.37515,"17.3":0.69258,"17.4":15.72731,"17.5":1.1097,"17.6":0},P:{"4":0.67148,"20":0.03414,"21":0.07967,"22":0.10243,"23":0.1821,"24":0.43248,"25":2.48105,"5.0-5.4":0.11381,"6.2-6.4":0.0569,_:"7.2-7.4 8.2 10.1 12.0","9.2":0.01138,"11.1-11.2":0.03414,"13.0":0.03414,"14.0":0.01138,"15.0":0.01138,"16.0":0.02276,"17.0":0.04552,"18.0":0.02276,"19.0":0.03414},I:{"0":0.01115,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.15669,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00699,"11":0.11191,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":25.45171},R:{_:"0"},M:{"0":0.12311},Q:{"14.9":0.0056},O:{"0":0.10073},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/TZ.js b/node_modules/caniuse-lite/data/regions/TZ.js index 29156da10..74ad0b3f2 100644 --- a/node_modules/caniuse-lite/data/regions/TZ.js +++ b/node_modules/caniuse-lite/data/regions/TZ.js @@ -1 +1 @@ -module.exports={C:{"48":0.00201,"65":0.00201,"68":0.00201,"72":0.00201,"78":0.00403,"79":0.00201,"112":0.00403,"115":0.11072,"127":0.01208,"128":0.03623,"131":0.00201,"133":0.00201,"134":0.00201,"135":0.00604,"136":0.00805,"137":0.01208,"138":0.05435,"139":0.68442,"140":0.11072,"141":0.00403,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 73 74 75 76 77 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 142 143 3.5 3.6"},D:{"11":0.00201,"33":0.00201,"39":0.00201,"40":0.00201,"41":0.00201,"42":0.00201,"43":0.00201,"44":0.00201,"45":0.00201,"46":0.00201,"47":0.00201,"48":0.00201,"49":0.00604,"50":0.00201,"51":0.00201,"52":0.00201,"53":0.00201,"54":0.00201,"55":0.00201,"56":0.00201,"57":0.00201,"58":0.00604,"59":0.00403,"60":0.00403,"61":0.00201,"63":0.00403,"64":0.00403,"65":0.00201,"67":0.00201,"68":0.01208,"69":0.00403,"70":0.01208,"71":0.00604,"72":0.00201,"73":0.00201,"74":0.00403,"75":0.00201,"77":0.00403,"78":0.00201,"79":0.01208,"80":0.00604,"81":0.00201,"83":0.00604,"85":0.00201,"86":0.00201,"87":0.01208,"88":0.00403,"89":0.00201,"90":0.01007,"91":0.00403,"92":0.00201,"93":0.00604,"94":0.03221,"95":0.00403,"96":0.00201,"97":0.00403,"98":0.00403,"99":0.03221,"100":0.00604,"102":0.00201,"103":0.02818,"104":0.02416,"105":0.00201,"106":0.00403,"107":0.00201,"108":0.00403,"109":0.26773,"111":0.01208,"112":0.00201,"113":0.00403,"114":0.01812,"115":0.00201,"116":0.03825,"117":0.00403,"118":0.01208,"119":0.01409,"120":0.0161,"121":0.00604,"122":0.01409,"123":0.00604,"124":0.06643,"125":0.25163,"126":0.0161,"127":0.01007,"128":0.03825,"129":0.01007,"130":0.01812,"131":0.06039,"132":0.02617,"133":0.03422,"134":0.05636,"135":0.11877,"136":0.90384,"137":6.60868,"138":0.25364,"139":0.00403,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 62 66 76 84 101 110 140 141"},F:{"36":0.00201,"37":0.00201,"42":0.00201,"46":0.00201,"79":0.00201,"81":0.00201,"83":0.00403,"86":0.00403,"87":0.00201,"88":0.00403,"89":0.03221,"90":0.01007,"95":0.0161,"109":0.00201,"113":0.00201,"114":0.00201,"116":0.00201,"117":0.02013,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 82 84 85 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00604,"13":0.00201,"14":0.00403,"15":0.00403,"16":0.02818,"17":0.00403,"18":0.03221,"84":0.00403,"85":0.00201,"89":0.01409,"90":0.01007,"92":0.04831,"100":0.00604,"101":0.00201,"107":0.00201,"109":0.00805,"111":0.00201,"114":0.01208,"120":0.00201,"122":0.01007,"124":0.00201,"125":0.00201,"126":0.00201,"127":0.00201,"128":0.00201,"129":0.00403,"130":0.00403,"131":0.01007,"132":0.01007,"133":0.01208,"134":0.01208,"135":0.02214,"136":0.2476,"137":1.40709,"138":0.08052,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 102 103 104 105 106 108 110 112 113 115 116 117 118 119 121 123"},E:{"13":0.00201,"14":0.00201,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.1 15.4 15.5 16.0 16.4 17.0 26.0","5.1":0.00201,"11.1":0.00201,"12.1":0.00604,"13.1":0.01007,"14.1":0.0161,"15.2-15.3":0.00201,"15.6":0.0463,"16.1":0.00201,"16.2":0.00201,"16.3":0.00201,"16.5":0.00201,"16.6":0.02617,"17.1":0.00201,"17.2":0.00201,"17.3":0.00201,"17.4":0.00403,"17.5":0.01208,"17.6":0.04429,"18.0":0.01007,"18.1":0.00805,"18.2":0.00403,"18.3":0.02416,"18.4":0.02013,"18.5":0.16708},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00064,"5.0-5.1":0,"6.0-6.1":0.00129,"7.0-7.1":0.00129,"8.1-8.4":0,"9.0-9.2":0.00064,"9.3":0.00386,"10.0-10.2":0.00032,"10.3":0.00644,"11.0-11.2":0.0412,"11.3-11.4":0.00225,"12.0-12.1":0.00064,"12.2-12.5":0.02157,"13.0-13.1":0.00032,"13.2":0.00097,"13.3":0.00064,"13.4-13.7":0.00354,"14.0-14.4":0.00837,"14.5-14.8":0.00837,"15.0-15.1":0.00579,"15.2-15.3":0.00579,"15.4":0.00708,"15.5":0.00773,"15.6-15.8":0.09978,"16.0":0.0132,"16.1":0.02704,"16.2":0.01384,"16.3":0.02543,"16.4":0.00579,"16.5":0.0103,"16.6-16.7":0.12521,"17.0":0.00676,"17.1":0.01191,"17.2":0.00933,"17.3":0.0132,"17.4":0.0235,"17.5":0.04925,"17.6-17.7":0.12875,"18.0":0.03187,"18.1":0.07178,"18.2":0.03798,"18.3":0.16319,"18.4":0.17317,"18.5":2.03007,"26.0":0},P:{"4":0.06132,"21":0.01022,"22":0.03066,"23":0.01022,"24":0.32702,"25":0.12263,"26":0.0511,"27":0.15329,"28":0.6847,_:"20 6.2-6.4 8.2 10.1 12.0 15.0 18.0","5.0-5.4":0.01022,"7.2-7.4":0.07154,"9.2":0.02044,"11.1-11.2":0.02044,"13.0":0.01022,"14.0":0.01022,"16.0":0.02044,"17.0":0.01022,"19.0":0.02044},I:{"0":0.18339,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":7.92972,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02617,_:"6 7 8 9 10 5.5"},S:{"2.5":0.52714,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.58202},R:{_:"0"},M:{"0":0.13578},Q:{"14.9":0.01597},O:{"0":0.25558},H:{"0":5.76}}; +module.exports={C:{"29":0.00306,"34":0.00153,"42":0.00153,"43":0.00765,"44":0.00153,"47":0.00153,"52":0.00612,"68":0.00153,"72":0.00153,"78":0.00306,"82":0.00153,"88":0.00153,"91":0.00459,"94":0.00153,"95":0.00153,"96":0.00153,"102":0.04893,"104":0.00306,"109":0.00153,"111":0.00153,"112":0.00306,"113":0.00459,"114":0.00153,"115":0.14678,"116":0.00153,"117":0.00153,"118":0.00153,"119":0.00153,"120":0.00153,"121":0.00153,"122":0.00153,"123":0.02446,"124":0.02905,"125":0.45106,"126":0.5168,"127":0.01835,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 38 39 40 41 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 83 84 85 86 87 89 90 92 93 97 98 99 100 101 103 105 106 107 108 110 128 129 3.5 3.6"},D:{"11":0.00306,"37":0.00153,"39":0.00153,"43":0.00153,"49":0.00153,"50":0.00153,"55":0.00306,"59":0.00153,"61":0.00153,"62":0.00153,"63":0.00306,"64":0.00153,"65":0.00153,"68":0.00765,"69":0.00917,"70":0.00612,"71":0.00306,"72":0.00153,"73":0.00153,"74":0.00153,"75":0.00306,"77":0.00306,"78":0.00153,"79":0.01682,"80":0.00612,"81":0.00459,"83":0.00306,"84":0.00153,"85":0.00153,"86":0.00306,"87":0.01682,"88":0.01376,"89":0.00459,"90":0.01529,"91":0.00306,"92":0.00153,"93":0.00459,"94":0.05963,"95":0.00306,"96":0.00153,"97":0.00306,"98":0.00153,"99":0.13608,"100":0.00306,"101":0.00459,"102":0.00612,"103":0.03211,"104":0.00153,"105":0.00612,"106":0.00612,"107":0.00765,"108":0.01682,"109":0.53209,"110":0.00459,"111":0.01835,"112":0.01835,"113":0.01682,"114":0.00765,"115":0.00459,"116":0.06422,"117":0.01223,"118":0.01835,"119":0.03364,"120":0.05199,"121":0.03823,"122":0.07645,"123":0.24158,"124":4.43104,"125":1.80422,"126":0.00306,_:"4 5 6 7 8 9 10 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 38 40 41 42 44 45 46 47 48 51 52 53 54 56 57 58 60 66 67 76 127 128"},F:{"31":0.00153,"37":0.00306,"52":0.00153,"74":0.00153,"79":0.00306,"80":0.00459,"82":0.00306,"95":0.03211,"106":0.00153,"107":0.0107,"108":0.01223,"109":0.28745,"110":0.0367,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0107,"13":0.01223,"14":0.00306,"15":0.00765,"16":0.0107,"17":0.00612,"18":0.05046,"84":0.00765,"89":0.0107,"90":0.01223,"91":0.00459,"92":0.02599,"100":0.00765,"103":0.00153,"107":0.00153,"108":0.00153,"109":0.00765,"110":0.00153,"111":0.00153,"112":0.00153,"113":0.00153,"114":0.00153,"115":0.00153,"116":0.00153,"117":0.00153,"118":0.00306,"119":0.00765,"120":0.01223,"121":0.0107,"122":0.02141,"123":0.04281,"124":0.99232,"125":0.46787,_:"79 80 81 83 85 86 87 88 93 94 95 96 97 98 99 101 102 104 105 106"},E:{"14":0.00306,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 17.6","5.1":0.00153,"11.1":0.00306,"12.1":0.0107,"13.1":0.00917,"14.1":0.0107,"15.1":0.00153,"15.2-15.3":0.00153,"15.4":0.00153,"15.5":0.00306,"15.6":0.01835,"16.0":0.00306,"16.1":0.01376,"16.2":0.00153,"16.3":0.00765,"16.4":0.00459,"16.5":0.00612,"16.6":0.02446,"17.0":0.00306,"17.1":0.00917,"17.2":0.01529,"17.3":0.01223,"17.4":0.11315,"17.5":0.02294},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00072,"5.0-5.1":0.00072,"6.0-6.1":0.0018,"7.0-7.1":0.00253,"8.1-8.4":0.00072,"9.0-9.2":0.0018,"9.3":0.0083,"10.0-10.2":0.00144,"10.3":0.01299,"11.0-11.2":0.01912,"11.3-11.4":0.00361,"12.0-12.1":0.00216,"12.2-12.5":0.05232,"13.0-13.1":0.00108,"13.2":0.00505,"13.3":0.00253,"13.4-13.7":0.01155,"14.0-14.4":0.01985,"14.5-14.8":0.03067,"15.0-15.1":0.01479,"15.2-15.3":0.01624,"15.4":0.0184,"15.5":0.02309,"15.6-15.8":0.20783,"16.0":0.04727,"16.1":0.09742,"16.2":0.04727,"16.3":0.08191,"16.4":0.01732,"16.5":0.035,"16.6-16.7":0.27892,"17.0":0.03031,"17.1":0.04943,"17.2":0.0516,"17.3":0.09526,"17.4":2.16313,"17.5":0.15263,"17.6":0},P:{"4":0.1315,"20":0.01012,"21":0.05058,"22":0.15173,"23":0.11127,"24":0.17196,"25":0.44507,"5.0-5.4":0.02023,"6.2-6.4":0.01012,"7.2-7.4":0.06069,_:"8.2 10.1 12.0 15.0","9.2":0.03035,"11.1-11.2":0.04046,"13.0":0.01012,"14.0":0.02023,"16.0":0.03035,"17.0":0.02023,"18.0":0.01012,"19.0":0.08092},I:{"0":0.0675,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":7.61203,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0024,"11":0.01442,_:"6 7 9 10 5.5"},S:{"2.5":1.63471,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.6747},R:{_:"0"},M:{"0":0.06776},Q:{"14.9":0.00847},O:{"0":0.34727},H:{"0":10.59}}; diff --git a/node_modules/caniuse-lite/data/regions/UA.js b/node_modules/caniuse-lite/data/regions/UA.js index dbad86876..8b88f39b5 100644 --- a/node_modules/caniuse-lite/data/regions/UA.js +++ b/node_modules/caniuse-lite/data/regions/UA.js @@ -1 +1 @@ -module.exports={C:{"44":0.01954,"51":0.00651,"52":0.08467,"56":0.01954,"68":0.01954,"72":0.00651,"74":0.00651,"75":0.00651,"78":0.00651,"84":0.00651,"91":0.00651,"92":0.02605,"98":0.01303,"102":0.00651,"105":0.01303,"106":0.01954,"107":0.01303,"108":0.01303,"109":0.01303,"110":0.01954,"111":0.00651,"115":0.67084,"118":0.00651,"123":0.00651,"125":0.01303,"126":0.00651,"128":0.0977,"131":0.01954,"133":0.03908,"134":0.01954,"135":0.01954,"136":0.02605,"137":0.01303,"138":0.05862,"139":1.88877,"140":0.31914,"141":0.01954,"142":0.00651,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 53 54 55 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 76 77 79 80 81 82 83 85 86 87 88 89 90 93 94 95 96 97 99 100 101 103 104 112 113 114 116 117 119 120 121 122 124 127 129 130 132 143 3.5 3.6"},D:{"26":0.00651,"38":0.00651,"39":0.01954,"40":0.01954,"41":0.01954,"42":0.01954,"43":0.01954,"44":0.01954,"45":0.01954,"46":0.01954,"47":0.01954,"48":0.02605,"49":0.07164,"50":0.01954,"51":0.01954,"52":0.01954,"53":0.01954,"54":0.01954,"55":0.01954,"56":0.01954,"57":0.01954,"58":0.01954,"59":0.01954,"60":0.01954,"61":0.00651,"67":0.01303,"71":0.01303,"74":0.00651,"77":0.00651,"79":0.02605,"80":0.00651,"81":0.00651,"83":0.00651,"85":0.03908,"86":0.01303,"87":0.03908,"88":0.00651,"89":0.00651,"90":0.00651,"91":0.00651,"92":0.00651,"95":0.00651,"96":0.01303,"97":0.01303,"98":0.00651,"99":0.00651,"100":0.00651,"101":0.01954,"102":0.02605,"103":0.03257,"104":0.15631,"105":0.0521,"106":0.16283,"107":0.19539,"108":0.24098,"109":3.44538,"110":0.13677,"111":0.14329,"112":0.12375,"113":0.00651,"114":0.04559,"116":0.07816,"117":0.00651,"118":0.08467,"119":0.01954,"120":0.05862,"121":0.03257,"122":0.0521,"123":0.01954,"124":0.06513,"125":1.38076,"126":0.19539,"127":0.14329,"128":0.19539,"129":0.01954,"130":0.03257,"131":0.1498,"132":0.0521,"133":0.10421,"134":0.18236,"135":1.17234,"136":5.82914,"137":21.0435,"138":0.89879,"139":0.01303,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 62 63 64 65 66 68 69 70 72 73 75 76 78 84 93 94 115 140 141"},F:{"36":0.00651,"65":0.00651,"69":0.00651,"72":0.00651,"79":0.02605,"83":0.01303,"84":0.01954,"85":0.02605,"86":0.03908,"87":0.00651,"88":0.00651,"89":0.13026,"90":0.12375,"91":0.00651,"92":0.00651,"93":0.00651,"94":0.01954,"95":0.81413,"98":0.00651,"99":0.00651,"106":0.00651,"109":0.00651,"111":0.00651,"114":0.00651,"116":0.00651,"117":0.03257,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 70 71 73 74 75 76 77 78 80 81 82 96 97 100 101 102 103 104 105 107 108 110 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00651,"92":0.01954,"105":0.00651,"106":0.01303,"107":0.02605,"108":0.03257,"109":0.05862,"110":0.02605,"111":0.01303,"116":0.01303,"122":0.00651,"131":0.01303,"132":0.00651,"134":0.16934,"135":0.01303,"136":1.32214,"137":7.6658,"138":0.2019,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 112 113 114 115 117 118 119 120 121 123 124 125 126 127 128 129 130 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 26.0","13.1":0.00651,"14.1":0.01954,"15.5":0.01954,"15.6":0.05862,"16.0":0.00651,"16.1":0.00651,"16.2":0.00651,"16.3":0.06513,"16.4":0.00651,"16.5":0.03908,"16.6":0.09118,"17.0":0.01303,"17.1":0.04559,"17.2":0.01303,"17.3":0.01954,"17.4":0.02605,"17.5":0.03257,"17.6":0.09118,"18.0":0.01954,"18.1":0.02605,"18.2":0.01303,"18.3":0.09118,"18.4":0.05862,"18.5":0.67084},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00154,"5.0-5.1":0,"6.0-6.1":0.00309,"7.0-7.1":0.00309,"8.1-8.4":0,"9.0-9.2":0.00154,"9.3":0.00926,"10.0-10.2":0.00077,"10.3":0.01543,"11.0-11.2":0.09877,"11.3-11.4":0.0054,"12.0-12.1":0.00154,"12.2-12.5":0.0517,"13.0-13.1":0.00077,"13.2":0.00232,"13.3":0.00154,"13.4-13.7":0.00849,"14.0-14.4":0.02006,"14.5-14.8":0.02006,"15.0-15.1":0.01389,"15.2-15.3":0.01389,"15.4":0.01698,"15.5":0.01852,"15.6-15.8":0.23922,"16.0":0.03164,"16.1":0.06482,"16.2":0.03318,"16.3":0.06096,"16.4":0.01389,"16.5":0.02469,"16.6-16.7":0.30018,"17.0":0.01621,"17.1":0.02855,"17.2":0.02238,"17.3":0.03164,"17.4":0.05633,"17.5":0.11807,"17.6-17.7":0.30867,"18.0":0.0764,"18.1":0.17208,"18.2":0.09106,"18.3":0.39124,"18.4":0.41516,"18.5":4.86694,"26.0":0},P:{"4":0.02104,"20":0.01052,"21":0.01052,"22":0.01052,"23":0.02104,"24":0.0526,"25":0.02104,"26":0.07364,"27":0.06312,"28":0.90477,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0","7.2-7.4":0.01052,"11.1-11.2":0.01052,"18.0":0.01052,"19.0":0.01052},I:{"0":0.04874,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":1.03215,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.04587,"9":0.02294,"11":0.10704,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":25.19288},R:{_:"0"},M:{"0":0.13599},Q:{"14.9":0.00697},O:{"0":0.09415},H:{"0":0}}; +module.exports={C:{"34":0.00591,"38":0.00591,"44":0.00591,"49":0.00591,"52":0.17142,"55":0.00591,"56":0.07093,"57":0.00591,"68":0.01773,"72":0.00591,"75":0.00591,"78":0.01182,"81":0.00591,"82":0.00591,"83":0.01773,"84":0.00591,"88":0.01182,"91":0.00591,"98":0.00591,"102":0.02364,"103":0.07093,"104":0.00591,"105":0.01773,"106":0.02364,"107":0.01773,"108":0.02364,"109":0.02364,"110":0.02364,"111":0.01773,"113":0.00591,"115":0.78616,"116":0.00591,"117":0.00591,"118":0.01182,"119":0.01773,"120":0.01182,"121":0.01182,"122":0.02364,"123":0.02956,"124":0.04729,"125":1.03443,"126":0.83936,"127":0.00591,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 45 46 47 48 50 51 53 54 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 76 77 79 80 85 86 87 89 90 92 93 94 95 96 97 99 100 101 112 114 128 129 3.5 3.6"},D:{"11":0.01182,"41":0.00591,"42":0.00591,"45":0.00591,"48":0.00591,"49":0.08867,"54":0.00591,"56":0.00591,"57":0.00591,"61":0.01182,"63":0.00591,"70":0.00591,"71":0.00591,"73":0.00591,"74":0.00591,"75":0.00591,"76":0.00591,"78":0.00591,"79":0.03547,"80":0.01773,"81":0.01182,"83":0.02364,"84":0.01182,"85":0.04138,"86":0.01773,"87":0.04138,"88":0.00591,"89":0.01182,"90":0.01182,"91":0.01182,"92":0.00591,"93":0.00591,"94":0.00591,"95":0.00591,"96":0.01182,"97":0.02956,"98":0.02364,"99":0.01182,"100":0.01182,"101":0.01182,"102":0.09458,"103":0.07684,"104":0.11822,"105":0.0532,"106":0.14778,"107":0.16551,"108":0.25417,"109":4.10223,"110":0.11822,"111":0.11231,"112":0.13595,"113":0.1064,"114":0.13595,"115":0.03547,"116":0.11231,"117":0.07093,"118":0.08867,"119":0.23053,"120":0.33102,"121":0.16551,"122":0.28964,"123":1.05216,"124":18.83836,"125":7.41239,"126":0.02364,"127":0.01773,_:"4 5 6 7 8 9 10 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 43 44 46 47 50 51 52 53 55 58 59 60 62 64 65 66 67 68 69 72 77 128"},F:{"36":0.02956,"46":0.00591,"51":0.00591,"57":0.01182,"64":0.00591,"69":0.00591,"77":0.00591,"79":0.05911,"80":0.01182,"82":0.01182,"83":0.01773,"84":0.01182,"85":0.0532,"86":0.02956,"87":0.01182,"89":0.00591,"90":0.00591,"91":0.00591,"92":0.00591,"93":0.00591,"94":0.01182,"95":0.92212,"96":0.00591,"97":0.00591,"98":0.00591,"99":0.01182,"102":0.01182,"105":0.00591,"106":0.00591,"107":0.36648,"108":0.07093,"109":3.88944,"110":0.33693,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 52 53 54 55 56 58 60 62 63 65 66 67 68 70 71 72 73 74 75 76 78 81 88 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.06502},B:{"12":0.00591,"13":0.00591,"18":0.00591,"92":0.01182,"103":0.00591,"105":0.00591,"106":0.01773,"107":0.02956,"108":0.02956,"109":0.07093,"110":0.01773,"111":0.01182,"112":0.00591,"113":0.00591,"114":0.00591,"116":0.02364,"117":0.00591,"118":0.00591,"119":0.00591,"120":0.01182,"121":0.01182,"122":0.01182,"123":0.04729,"124":5.27852,"125":2.85501,_:"14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 104 115"},E:{"9":0.00591,"14":0.01182,"15":0.00591,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 6.1 7.1 10.1 11.1 17.6","5.1":0.02364,"9.1":0.00591,"12.1":0.01773,"13.1":0.02364,"14.1":0.03547,"15.1":0.01182,"15.2-15.3":0.00591,"15.4":0.00591,"15.5":0.01182,"15.6":0.11231,"16.0":0.01182,"16.1":0.02956,"16.2":0.01182,"16.3":0.04729,"16.4":0.01773,"16.5":0.02956,"16.6":0.1596,"17.0":0.04138,"17.1":0.04729,"17.2":0.05911,"17.3":0.06502,"17.4":0.66203,"17.5":0.11231},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00185,"5.0-5.1":0.00185,"6.0-6.1":0.00463,"7.0-7.1":0.00648,"8.1-8.4":0.00185,"9.0-9.2":0.00463,"9.3":0.02128,"10.0-10.2":0.0037,"10.3":0.03331,"11.0-11.2":0.04903,"11.3-11.4":0.00925,"12.0-12.1":0.00555,"12.2-12.5":0.13415,"13.0-13.1":0.00278,"13.2":0.01295,"13.3":0.00648,"13.4-13.7":0.02961,"14.0-14.4":0.05088,"14.5-14.8":0.07864,"15.0-15.1":0.03793,"15.2-15.3":0.04163,"15.4":0.04718,"15.5":0.05921,"15.6-15.8":0.53289,"16.0":0.1212,"16.1":0.24979,"16.2":0.1212,"16.3":0.21001,"16.4":0.04441,"16.5":0.08974,"16.6-16.7":0.71515,"17.0":0.07771,"17.1":0.12675,"17.2":0.1323,"17.3":0.24424,"17.4":5.54632,"17.5":0.39134,"17.6":0},P:{"4":0.04298,"20":0.03223,"21":0.03223,"22":0.03223,"23":0.06447,"24":0.10744,"25":0.96699,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0","7.2-7.4":0.02149,"15.0":0.01074,"17.0":0.02149,"18.0":0.01074,"19.0":0.01074},I:{"0":0.03259,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":1.17019,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02449,"9":0.01837,"11":0.12856,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.54878},R:{_:"0"},M:{"0":0.17587},Q:{"14.9":0.00409},O:{"0":0.13497},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/UG.js b/node_modules/caniuse-lite/data/regions/UG.js index 381dc27d2..5d6e14fe8 100644 --- a/node_modules/caniuse-lite/data/regions/UG.js +++ b/node_modules/caniuse-lite/data/regions/UG.js @@ -1 +1 @@ -module.exports={C:{"35":0.00249,"47":0.00249,"50":0.00498,"52":0.00249,"55":0.00249,"58":0.00249,"72":0.00498,"78":0.00498,"91":0.00249,"93":0.00249,"100":0.00249,"109":0.00249,"112":0.00249,"115":0.17928,"118":0.00249,"123":0.00249,"125":0.00747,"127":0.01245,"128":0.01494,"130":0.00249,"132":0.00498,"133":0.00498,"134":0.00498,"135":0.00249,"136":0.00996,"137":0.01992,"138":0.06972,"139":1.00596,"140":0.14691,"141":0.00747,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 48 49 51 53 54 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 114 116 117 119 120 121 122 124 126 129 131 142 143 3.5 3.6"},D:{"11":0.00249,"19":0.00996,"39":0.00249,"40":0.00249,"41":0.00249,"42":0.00249,"43":0.00249,"44":0.00249,"45":0.00249,"46":0.00249,"47":0.00249,"48":0.00249,"49":0.03237,"50":0.00249,"51":0.00249,"52":0.00249,"53":0.00249,"54":0.00249,"55":0.00249,"56":0.00249,"57":0.00249,"58":0.00498,"59":0.00498,"60":0.00249,"63":0.00249,"64":0.00996,"66":0.00249,"68":0.00747,"69":0.00249,"70":0.00498,"71":0.00498,"72":0.01494,"73":0.00498,"74":0.00249,"75":0.00498,"76":0.00498,"77":0.00498,"78":0.00249,"79":0.01245,"80":0.00498,"81":0.00249,"83":0.01992,"86":0.00249,"87":0.01743,"88":0.00249,"89":0.00249,"90":0.00249,"91":0.00498,"92":0.00249,"93":0.01992,"94":0.01743,"95":0.01245,"96":0.00996,"98":0.00249,"99":0.00249,"100":0.00498,"101":0.00249,"102":0.00249,"103":0.0498,"104":0.00249,"105":0.00747,"106":0.01245,"107":0.00996,"108":0.00498,"109":0.74949,"110":0.00498,"111":0.01992,"112":0.00249,"113":0.00498,"114":0.05976,"116":0.09213,"117":0.00249,"118":0.00498,"119":0.03486,"120":0.00996,"121":0.00747,"122":0.03237,"123":0.00498,"124":0.00747,"125":0.46065,"126":0.01992,"127":0.01494,"128":0.03486,"129":0.01245,"130":0.02739,"131":0.0498,"132":0.01992,"133":0.0996,"134":0.07221,"135":0.13446,"136":1.17279,"137":7.37289,"138":0.2739,"139":0.00249,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 65 67 84 85 97 115 140 141"},F:{"79":0.00249,"86":0.00249,"87":0.00249,"88":0.00249,"89":0.04731,"90":0.02241,"95":0.01992,"113":0.00249,"116":0.00249,"117":0.00249,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01743,"13":0.00249,"14":0.00747,"15":0.00498,"16":0.00996,"17":0.00249,"18":0.08964,"84":0.00249,"89":0.00498,"90":0.01494,"92":0.05229,"100":0.00996,"109":0.00747,"112":0.00249,"114":0.01992,"116":0.00249,"117":0.00249,"119":0.00498,"122":0.00747,"124":0.00249,"125":0.00249,"126":0.00249,"127":0.00249,"128":0.00249,"129":0.00498,"130":0.00747,"131":0.00996,"132":0.00747,"133":0.01743,"134":0.0249,"135":0.0498,"136":0.26394,"137":1.54131,"138":0.09213,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 118 120 121 123"},E:{"11":0.00249,"12":0.00249,"13":0.00249,"14":0.00249,_:"0 4 5 6 7 8 9 10 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 16.2 16.3 16.5 17.0 26.0","5.1":0.00249,"11.1":0.00747,"12.1":0.00747,"13.1":0.00747,"14.1":0.00996,"15.1":0.00747,"15.4":0.00249,"15.5":0.00249,"15.6":0.04233,"16.0":0.00249,"16.1":0.00249,"16.4":0.00249,"16.6":0.03984,"17.1":0.00996,"17.2":0.00249,"17.3":0.00498,"17.4":0.00498,"17.5":0.00498,"17.6":0.03486,"18.0":0.00249,"18.1":0.00498,"18.2":0.00498,"18.3":0.02739,"18.4":0.01743,"18.5":0.10209},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00065,"5.0-5.1":0,"6.0-6.1":0.0013,"7.0-7.1":0.0013,"8.1-8.4":0,"9.0-9.2":0.00065,"9.3":0.00391,"10.0-10.2":0.00033,"10.3":0.00652,"11.0-11.2":0.04171,"11.3-11.4":0.00228,"12.0-12.1":0.00065,"12.2-12.5":0.02183,"13.0-13.1":0.00033,"13.2":0.00098,"13.3":0.00065,"13.4-13.7":0.00358,"14.0-14.4":0.00847,"14.5-14.8":0.00847,"15.0-15.1":0.00587,"15.2-15.3":0.00587,"15.4":0.00717,"15.5":0.00782,"15.6-15.8":0.10103,"16.0":0.01336,"16.1":0.02737,"16.2":0.01401,"16.3":0.02575,"16.4":0.00587,"16.5":0.01043,"16.6-16.7":0.12677,"17.0":0.00684,"17.1":0.01206,"17.2":0.00945,"17.3":0.01336,"17.4":0.02379,"17.5":0.04986,"17.6-17.7":0.13036,"18.0":0.03226,"18.1":0.07267,"18.2":0.03846,"18.3":0.16523,"18.4":0.17533,"18.5":2.05539,"26.0":0},P:{"4":0.03075,"20":0.01025,"21":0.0205,"22":0.05125,"23":0.0205,"24":0.53299,"25":0.21525,"26":0.09225,"27":0.1845,"28":0.62524,"5.0-5.4":0.03075,_:"6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0","7.2-7.4":0.09225,"9.2":0.041,"11.1-11.2":0.0205,"16.0":0.03075,"17.0":0.01025,"19.0":0.041},I:{"0":0.06747,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":3.97131,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.01577,"11":0.03154,_:"6 7 8 9 5.5"},S:{"2.5":0.05256,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.16624},R:{_:"0"},M:{"0":0.12014},Q:{"14.9":0.00751},O:{"0":0.21025},H:{"0":3.38}}; +module.exports={C:{"33":0.00199,"47":0.00199,"50":0.00199,"52":0.00598,"56":0.00199,"58":0.00199,"60":0.00199,"68":0.00199,"72":0.00199,"76":0.00199,"77":0.00199,"78":0.00399,"91":0.00598,"93":0.00399,"95":0.00199,"102":0.00199,"103":0.00199,"110":0.00199,"111":0.00199,"112":0.00199,"113":0.00199,"114":0.00199,"115":0.25324,"116":0.00199,"117":0.00199,"119":0.00199,"120":0.00199,"121":0.00598,"122":0.00399,"123":0.00798,"124":0.04187,"125":0.58823,"126":0.50049,"127":0.02393,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 53 54 55 57 59 61 62 63 64 65 66 67 69 70 71 73 74 75 79 80 81 82 83 84 85 86 87 88 89 90 92 94 96 97 98 99 100 101 104 105 106 107 108 109 118 128 129 3.5 3.6"},D:{"19":0.00798,"23":0.00199,"40":0.00199,"49":0.00399,"50":0.00399,"55":0.00199,"58":0.00199,"59":0.00798,"62":0.00199,"63":0.00399,"64":0.02792,"65":0.00199,"66":0.00199,"68":0.00798,"69":0.00798,"70":0.00399,"71":0.01196,"72":0.01595,"73":0.00199,"74":0.00598,"75":0.00199,"76":0.00199,"77":0.00399,"78":0.00399,"79":0.00798,"80":0.00598,"81":0.01196,"83":0.00798,"84":0.00199,"86":0.00399,"87":0.02592,"88":0.02592,"89":0.00199,"91":0.00199,"92":0.00798,"93":0.02193,"94":0.01196,"95":0.0319,"96":0.00199,"97":0.00399,"98":0.00399,"99":0.00798,"100":0.00598,"101":0.00399,"102":0.01396,"103":0.04985,"104":0.00997,"105":0.01196,"106":0.01795,"107":0.00798,"108":0.00798,"109":0.84944,"110":0.00598,"111":0.00598,"112":0.00598,"113":0.00399,"114":0.16949,"115":0.00798,"116":0.07976,"117":0.00598,"118":0.00798,"119":0.06181,"120":0.05982,"121":0.06181,"122":0.11166,"123":0.28115,"124":5.46755,"125":1.99001,"126":0.00598,"127":0.00199,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 51 52 53 54 56 57 60 61 67 85 90 128"},F:{"37":0.00199,"42":0.00199,"46":0.00399,"51":0.00399,"60":0.00399,"79":0.00798,"81":0.00598,"82":0.00199,"83":0.00199,"95":0.04586,"99":0.00199,"102":0.00199,"105":0.00199,"106":0.00399,"107":0.01994,"108":0.00798,"109":0.45463,"110":0.04387,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 43 44 45 47 48 49 50 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 84 85 86 87 88 89 90 91 92 93 94 96 97 98 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01396,"13":0.00199,"14":0.00598,"15":0.00399,"16":0.00399,"17":0.00199,"18":0.04586,"84":0.00598,"89":0.00598,"90":0.00598,"92":0.04187,"100":0.00598,"108":0.00199,"109":0.01396,"111":0.00199,"112":0.00199,"113":0.00199,"114":0.00399,"116":0.00399,"117":0.00399,"118":0.00199,"119":0.00798,"120":0.01396,"121":0.0319,"122":0.02792,"123":0.04586,"124":0.997,"125":0.47856,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 115"},E:{"12":0.00199,"13":0.00199,"14":0.00399,_:"0 4 5 6 7 8 9 10 11 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 16.2 17.6","12.1":0.00399,"13.1":0.00798,"14.1":0.00997,"15.1":0.00199,"15.4":0.00199,"15.5":0.00199,"15.6":0.07378,"16.0":0.00199,"16.1":0.00199,"16.3":0.00798,"16.4":0.00199,"16.5":0.00399,"16.6":0.02193,"17.0":0.00399,"17.1":0.00997,"17.2":0.01396,"17.3":0.00997,"17.4":0.05982,"17.5":0.01595},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00062,"5.0-5.1":0.00062,"6.0-6.1":0.00156,"7.0-7.1":0.00219,"8.1-8.4":0.00062,"9.0-9.2":0.00156,"9.3":0.00718,"10.0-10.2":0.00125,"10.3":0.01124,"11.0-11.2":0.01655,"11.3-11.4":0.00312,"12.0-12.1":0.00187,"12.2-12.5":0.04527,"13.0-13.1":0.00094,"13.2":0.00437,"13.3":0.00219,"13.4-13.7":0.00999,"14.0-14.4":0.01717,"14.5-14.8":0.02654,"15.0-15.1":0.0128,"15.2-15.3":0.01405,"15.4":0.01592,"15.5":0.01998,"15.6-15.8":0.17985,"16.0":0.0409,"16.1":0.0843,"16.2":0.0409,"16.3":0.07088,"16.4":0.01499,"16.5":0.03029,"16.6-16.7":0.24136,"17.0":0.02623,"17.1":0.04278,"17.2":0.04465,"17.3":0.08243,"17.4":1.87184,"17.5":0.13207,"17.6":0},P:{"4":0.09175,"20":0.02039,"21":0.06117,"22":0.13253,"23":0.13253,"24":0.22427,"25":0.44855,"5.0-5.4":0.02039,"6.2-6.4":0.01019,"7.2-7.4":0.08155,_:"8.2 10.1 12.0","9.2":0.08155,"11.1-11.2":0.05097,"13.0":0.01019,"14.0":0.01019,"15.0":0.01019,"16.0":0.02039,"17.0":0.02039,"18.0":0.01019,"19.0":0.09175},I:{"0":0.0319,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":6.14292,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00399,"11":0.01196,_:"6 7 8 9 5.5"},S:{"2.5":0.21616,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.44075},R:{_:"0"},M:{"0":0.1281},Q:{_:"14.9"},O:{"0":0.34426},H:{"0":13.76}}; diff --git a/node_modules/caniuse-lite/data/regions/US.js b/node_modules/caniuse-lite/data/regions/US.js index a68a7c878..6cc157c34 100644 --- a/node_modules/caniuse-lite/data/regions/US.js +++ b/node_modules/caniuse-lite/data/regions/US.js @@ -1 +1 @@ -module.exports={C:{"11":0.27378,"17":0.00489,"38":0.00489,"43":0.00489,"44":0.00978,"45":0.01956,"52":0.00978,"59":0.01467,"72":0.00978,"78":0.02445,"94":0.01467,"105":0.00489,"108":0.00489,"109":0.00489,"113":0.00489,"115":0.19067,"118":0.66002,"123":0.00489,"125":0.00978,"127":0.00489,"128":0.09778,"129":0.00489,"130":0.00489,"131":0.00489,"132":0.00489,"133":0.00978,"134":0.00978,"135":0.01956,"136":0.02933,"137":0.03422,"138":0.13689,"139":1.70626,"140":0.24445,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 106 107 110 111 112 114 116 117 119 120 121 122 124 126 141 142 143 3.5 3.6"},D:{"39":0.00978,"40":0.00978,"41":0.01467,"42":0.00978,"43":0.00978,"44":0.00978,"45":0.00978,"46":0.00978,"47":0.01467,"48":0.04889,"49":0.02933,"50":0.01467,"51":0.01467,"52":0.01467,"53":0.01467,"54":0.00978,"55":0.01467,"56":0.06845,"57":0.00978,"58":0.01467,"59":0.01467,"60":0.01467,"62":0.00489,"65":0.00489,"66":0.02933,"67":0.00489,"68":0.00978,"69":0.00489,"70":0.00978,"71":0.00489,"72":0.00978,"73":0.00489,"74":0.01467,"75":0.00489,"76":0.00978,"77":0.00978,"78":0.01467,"79":0.12223,"80":0.02445,"81":0.06356,"83":0.09289,"84":0.00978,"85":0.01467,"86":0.01467,"87":0.03911,"88":0.01467,"89":0.00978,"90":0.01467,"91":0.05867,"92":0.00489,"93":0.02445,"94":0.01956,"95":0.00489,"96":0.01467,"97":0.02933,"98":0.01467,"99":0.02445,"100":0.00489,"101":0.01956,"102":0.00978,"103":0.15156,"104":0.03422,"105":0.01956,"106":0.02933,"107":0.03422,"108":0.04889,"109":0.40579,"110":0.02445,"111":0.02933,"112":0.05378,"113":0.03911,"114":0.04889,"115":0.03911,"116":0.14178,"117":0.3129,"118":0.03911,"119":0.044,"120":0.06356,"121":0.14667,"122":0.10267,"123":0.54268,"124":0.06845,"125":0.29823,"126":0.11734,"127":0.03422,"128":0.132,"129":0.088,"130":0.16134,"131":1.47159,"132":1.36892,"133":1.35425,"134":0.52312,"135":1.04136,"136":3.28541,"137":13.36164,"138":0.53779,"139":0.03422,"140":0.00978,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 141"},F:{"89":0.01956,"90":0.01467,"95":0.02933,"102":0.00489,"113":0.00489,"114":0.00489,"117":0.00489,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.01467,"17":0.00489,"18":0.00489,"80":0.00489,"81":0.00489,"83":0.00489,"84":0.00489,"85":0.00489,"86":0.00489,"87":0.00489,"89":0.00489,"90":0.00489,"91":0.00489,"92":0.00489,"106":0.00489,"107":0.00489,"108":0.00489,"109":0.05867,"110":0.00489,"111":0.00489,"118":0.00489,"120":0.01467,"121":0.00978,"122":0.00489,"123":0.00489,"124":0.00489,"125":0.00489,"126":0.00489,"127":0.00489,"128":0.00489,"129":0.00978,"130":0.00978,"131":0.02445,"132":0.02445,"133":0.01467,"134":0.10267,"135":0.06845,"136":0.90935,"137":5.03567,"138":0.42534,_:"12 13 15 16 79 88 93 94 95 96 97 98 99 100 101 102 103 104 105 112 113 114 115 116 117 119"},E:{"8":0.00489,"9":0.00489,"13":0.00489,"14":0.02933,"15":0.00489,_:"0 4 5 6 7 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1","9.1":0.00489,"11.1":0.00489,"12.1":0.01956,"13.1":0.08311,"14.1":0.07334,"15.1":0.06356,"15.2-15.3":0.00978,"15.4":0.01467,"15.5":0.01956,"15.6":0.22489,"16.0":0.06845,"16.1":0.03422,"16.2":0.02445,"16.3":0.06356,"16.4":0.02445,"16.5":0.03911,"16.6":0.37156,"17.0":0.01467,"17.1":0.23956,"17.2":0.02933,"17.3":0.03422,"17.4":0.06845,"17.5":0.132,"17.6":0.44979,"18.0":0.03422,"18.1":0.088,"18.2":0.04889,"18.3":0.24445,"18.4":0.24445,"18.5":3.08496,"26.0":0.00489},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00521,"5.0-5.1":0,"6.0-6.1":0.01043,"7.0-7.1":0.01043,"8.1-8.4":0,"9.0-9.2":0.00521,"9.3":0.03129,"10.0-10.2":0.00261,"10.3":0.05214,"11.0-11.2":0.33371,"11.3-11.4":0.01825,"12.0-12.1":0.00521,"12.2-12.5":0.17468,"13.0-13.1":0.00261,"13.2":0.00782,"13.3":0.00521,"13.4-13.7":0.02868,"14.0-14.4":0.06779,"14.5-14.8":0.06779,"15.0-15.1":0.04693,"15.2-15.3":0.04693,"15.4":0.05736,"15.5":0.06257,"15.6-15.8":0.80821,"16.0":0.10689,"16.1":0.219,"16.2":0.11211,"16.3":0.20596,"16.4":0.04693,"16.5":0.08343,"16.6-16.7":1.01417,"17.0":0.05475,"17.1":0.09646,"17.2":0.07561,"17.3":0.10689,"17.4":0.19032,"17.5":0.39889,"17.6-17.7":1.04285,"18.0":0.2581,"18.1":0.58139,"18.2":0.30764,"18.3":1.32181,"18.4":1.40263,"18.5":16.44311,"26.0":0},P:{"4":0.02156,"21":0.02156,"22":0.01078,"23":0.01078,"24":0.01078,"25":0.01078,"26":0.03234,"27":0.07547,"28":1.46623,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","7.2-7.4":0.01078,"18.0":0.01078},I:{"0":0.07655,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.33228,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00622,"8":0.01867,"9":0.03733,"10":0.00622,"11":0.06845,_:"7 5.5"},S:{"2.5":0.00511,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":22.93727},R:{_:"0"},M:{"0":0.62878},Q:{"14.9":0.01534},O:{"0":0.05623},H:{"0":0}}; +module.exports={C:{"4":0.00492,"11":0.09344,"17":0.00492,"38":0.00492,"43":0.00492,"44":0.02459,"45":0.00492,"48":0.00492,"52":0.02459,"59":0.00492,"72":0.00492,"78":0.02951,"83":0.00492,"88":0.01475,"91":0.00492,"93":0.00492,"94":0.01475,"102":0.01475,"103":0.00984,"104":0.00984,"105":0.00492,"106":0.00492,"107":0.00492,"108":0.00984,"109":0.00492,"110":0.00492,"111":0.00492,"112":0.00492,"113":0.01475,"114":0.00492,"115":0.36885,"116":0.00492,"117":0.00984,"118":0.41311,"119":0.00492,"120":0.00492,"121":0.01475,"122":0.01475,"123":0.02459,"124":0.11311,"125":1.19999,"126":0.98852,"127":0.00492,_:"2 3 5 6 7 8 9 10 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 92 95 96 97 98 99 100 101 128 129 3.5 3.6"},D:{"23":0.00492,"38":0.00492,"41":0.00492,"47":0.00492,"48":0.06393,"49":0.02951,"50":0.00492,"51":0.00492,"52":0.00492,"53":0.00492,"56":0.04426,"62":0.00492,"63":0.00492,"65":0.00492,"66":0.02459,"67":0.00492,"69":0.00984,"70":0.00492,"74":0.00492,"75":0.00492,"76":0.01967,"77":0.00492,"78":0.00984,"79":0.19672,"80":0.02459,"81":0.06885,"83":0.13279,"84":0.00984,"85":0.00984,"86":0.1082,"87":0.0541,"88":0.01475,"89":0.01475,"90":0.00984,"91":0.09344,"92":0.00984,"93":0.05902,"94":0.03443,"95":0.00984,"96":0.01967,"97":0.01475,"98":0.00984,"99":0.02951,"100":0.13279,"101":0.18197,"102":0.09836,"103":0.49672,"104":0.1377,"105":0.05902,"106":0.04426,"107":0.0541,"108":0.06393,"109":0.66885,"110":0.04918,"111":0.04918,"112":0.04918,"113":0.11311,"114":0.22131,"115":0.06885,"116":0.31475,"117":0.31967,"118":0.17705,"119":0.18688,"120":0.43278,"121":0.69836,"122":0.6,"123":2.5967,"124":15.04416,"125":4.618,"126":0.04426,"127":0.02951,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 54 55 57 58 59 60 61 64 68 71 72 73 128"},F:{"95":0.02951,"102":0.00984,"106":0.00492,"107":0.20164,"108":0.02459,"109":0.57541,"110":0.04918,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00492,"18":0.00492,"85":0.00492,"87":0.00492,"92":0.00492,"107":0.00492,"108":0.00492,"109":0.07869,"110":0.00492,"111":0.00492,"112":0.00492,"113":0.00492,"114":0.00984,"115":0.00492,"116":0.00492,"117":0.00492,"118":0.00492,"119":0.00984,"120":0.02951,"121":0.02951,"122":0.05902,"123":0.32459,"124":4.2344,"125":2.27703,_:"12 13 14 15 16 79 80 81 83 84 86 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106"},E:{"8":0.00492,"9":0.00984,"13":0.00984,"14":0.06885,"15":0.01475,_:"0 4 5 6 7 10 11 12 3.1 3.2 6.1 7.1 10.1 17.6","5.1":0.00492,"9.1":0.00492,"11.1":0.00492,"12.1":0.02459,"13.1":0.16721,"14.1":0.17705,"15.1":0.12787,"15.2-15.3":0.02459,"15.4":0.03934,"15.5":0.04918,"15.6":0.45246,"16.0":0.06885,"16.1":0.09344,"16.2":0.07869,"16.3":0.19672,"16.4":0.07377,"16.5":0.14262,"16.6":0.76721,"17.0":0.09344,"17.1":0.14754,"17.2":0.18688,"17.3":0.22623,"17.4":3.41801,"17.5":0.44754},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00502,"5.0-5.1":0.00502,"6.0-6.1":0.01256,"7.0-7.1":0.01758,"8.1-8.4":0.00502,"9.0-9.2":0.01256,"9.3":0.05776,"10.0-10.2":0.01005,"10.3":0.09041,"11.0-11.2":0.13311,"11.3-11.4":0.02512,"12.0-12.1":0.01507,"12.2-12.5":0.36417,"13.0-13.1":0.00753,"13.2":0.03516,"13.3":0.01758,"13.4-13.7":0.08037,"14.0-14.4":0.13813,"14.5-14.8":0.21348,"15.0-15.1":0.10297,"15.2-15.3":0.11302,"15.4":0.12809,"15.5":0.16074,"15.6-15.8":1.44663,"16.0":0.32901,"16.1":0.67811,"16.2":0.32901,"16.3":0.57011,"16.4":0.12055,"16.5":0.24362,"16.6-16.7":1.9414,"17.0":0.21097,"17.1":0.34408,"17.2":0.35915,"17.3":0.66304,"17.4":15.0565,"17.5":1.06237,"17.6":0},P:{"4":0.0323,"20":0.01077,"21":0.0323,"22":0.0323,"23":0.04306,"24":0.13996,"25":1.36726,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 12.0 14.0 15.0","11.1-11.2":0.01077,"13.0":0.01077,"16.0":0.02153,"17.0":0.01077,"18.0":0.01077,"19.0":0.01077},I:{"0":0.11139,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00025},K:{"0":0.3304,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01113,"9":0.03339,"11":0.16695,_:"6 7 10 5.5"},S:{"2.5":0.00508,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":23.58589},R:{_:"0"},M:{"0":0.55913},Q:{"14.9":0.02542},O:{"0":0.07625},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/UY.js b/node_modules/caniuse-lite/data/regions/UY.js index 9b84100d4..4563ad97e 100644 --- a/node_modules/caniuse-lite/data/regions/UY.js +++ b/node_modules/caniuse-lite/data/regions/UY.js @@ -1 +1 @@ -module.exports={C:{"52":0.0082,"65":0.0041,"68":0.0082,"78":0.0041,"83":0.0082,"88":0.0164,"106":0.0041,"107":0.0041,"110":0.0041,"113":0.0123,"115":0.13117,"120":0.0082,"121":0.0041,"128":0.07788,"129":0.0041,"130":0.0041,"131":0.0082,"132":0.0041,"133":0.0041,"134":0.03279,"135":0.0123,"136":0.03279,"137":0.0123,"138":0.07788,"139":1.10673,"140":0.28693,"141":0.0041,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 108 109 111 112 114 116 117 118 119 122 123 124 125 126 127 142 143 3.5 3.6"},D:{"39":0.0123,"40":0.0123,"41":0.0123,"42":0.0082,"43":0.0123,"44":0.0082,"45":0.0082,"46":0.0082,"47":0.0164,"48":0.0123,"49":0.02459,"50":0.0123,"51":0.0082,"52":0.0123,"53":0.0123,"54":0.0123,"55":0.0164,"56":0.0123,"57":0.0123,"58":0.0123,"59":0.0082,"60":0.0123,"65":0.0041,"72":0.0041,"73":0.0082,"74":0.0041,"75":0.0041,"79":0.0164,"80":0.0123,"81":0.0123,"83":0.0041,"86":0.04509,"87":0.04099,"88":0.0164,"89":0.0041,"90":0.0082,"91":0.0041,"93":0.0082,"95":0.0082,"98":0.02869,"99":0.03689,"100":0.0041,"103":0.02869,"104":0.0041,"105":0.0164,"106":0.0205,"107":0.0082,"108":0.0082,"109":0.70503,"110":0.0041,"111":0.0082,"112":0.0041,"113":0.0041,"114":0.0123,"116":0.03279,"117":0.0041,"119":0.0205,"120":0.0082,"121":0.0123,"122":0.02869,"123":0.0205,"124":0.02459,"125":4.69745,"126":0.02459,"127":0.0205,"128":0.09838,"129":0.0123,"130":0.06968,"131":0.06968,"132":0.07788,"133":0.05739,"134":0.09428,"135":0.31562,"136":2.51269,"137":17.90853,"138":0.72962,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 76 77 78 84 85 92 94 96 97 101 102 115 118 139 140 141"},F:{"36":0.0041,"89":0.0041,"95":0.0041,"116":0.0082,"117":0.0041,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0123,"98":0.0041,"99":0.0041,"109":0.0082,"127":0.03689,"128":0.0041,"129":0.0123,"130":0.0123,"131":0.0164,"132":0.02869,"133":0.0041,"134":0.04099,"135":0.0205,"136":0.45089,"137":2.51269,"138":0.32382,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126"},E:{"13":0.0082,"14":0.0041,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 17.0 26.0","13.1":0.0164,"14.1":0.0123,"15.1":0.02459,"15.6":0.03279,"16.1":0.0041,"16.2":0.0041,"16.3":0.0041,"16.4":0.0041,"16.5":0.0123,"16.6":0.04919,"17.1":0.0164,"17.2":0.0123,"17.3":0.0041,"17.4":0.0082,"17.5":0.0164,"17.6":0.05739,"18.0":0.0123,"18.1":0.03279,"18.2":0.0041,"18.3":0.03689,"18.4":0.08608,"18.5":0.4017},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00264,"5.0-5.1":0,"6.0-6.1":0.00528,"7.0-7.1":0.00528,"8.1-8.4":0,"9.0-9.2":0.00264,"9.3":0.01585,"10.0-10.2":0.00132,"10.3":0.02642,"11.0-11.2":0.16909,"11.3-11.4":0.00925,"12.0-12.1":0.00264,"12.2-12.5":0.08851,"13.0-13.1":0.00132,"13.2":0.00396,"13.3":0.00264,"13.4-13.7":0.01453,"14.0-14.4":0.03435,"14.5-14.8":0.03435,"15.0-15.1":0.02378,"15.2-15.3":0.02378,"15.4":0.02906,"15.5":0.0317,"15.6-15.8":0.40951,"16.0":0.05416,"16.1":0.11096,"16.2":0.0568,"16.3":0.10436,"16.4":0.02378,"16.5":0.04227,"16.6-16.7":0.51387,"17.0":0.02774,"17.1":0.04888,"17.2":0.03831,"17.3":0.05416,"17.4":0.09643,"17.5":0.20211,"17.6-17.7":0.5284,"18.0":0.13078,"18.1":0.29459,"18.2":0.15588,"18.3":0.66975,"18.4":0.7107,"18.5":8.33161,"26.0":0},P:{"4":0.01018,"21":0.05092,"22":0.01018,"23":0.01018,"24":0.02037,"25":0.02037,"26":0.02037,"27":0.09166,"28":1.09988,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.1935,"7.2-7.4":0.07129},I:{"0":0.24149,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.0649,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0041,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":45.53704},R:{_:"0"},M:{"0":0.1829},Q:{_:"14.9"},O:{"0":0.0059},H:{"0":0}}; +module.exports={C:{"52":0.01447,"68":0.00964,"78":0.00482,"81":0.00482,"83":0.04822,"88":0.01447,"91":0.00964,"101":0.0434,"102":0.00964,"103":0.00482,"105":0.00482,"110":0.00482,"111":0.00482,"112":0.01929,"113":0.02411,"114":0.00482,"115":0.31825,"120":0.03375,"121":0.00964,"122":0.00482,"123":0.03858,"124":0.03858,"125":0.79563,"126":0.65579,"127":0.00482,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 82 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 104 106 107 108 109 116 117 118 119 128 129 3.5 3.6"},D:{"38":0.37129,"39":0.00482,"41":0.00482,"43":0.00482,"47":0.00964,"49":0.02411,"55":0.00482,"62":0.01447,"63":0.00482,"65":0.01447,"69":0.00482,"70":0.00964,"71":0.02411,"72":0.00482,"73":0.02411,"74":0.00482,"75":0.00964,"76":0.00482,"79":0.03375,"80":0.02893,"81":0.01447,"83":0.01447,"84":0.01447,"85":0.00482,"86":0.19288,"87":0.01447,"88":0.01929,"89":0.00964,"90":0.02411,"91":0.01447,"92":0.00482,"93":0.02411,"94":0.01447,"95":0.01447,"96":0.00482,"97":0.00482,"98":0.00964,"99":0.00964,"100":0.01447,"102":0.00482,"103":0.10608,"104":0.00482,"105":0.00964,"106":0.04822,"107":0.00482,"108":0.01929,"109":2.16508,"110":0.00964,"111":0.01447,"112":0.01929,"113":0.00482,"114":0.0434,"115":0.00964,"116":0.12537,"117":0.01447,"118":0.03375,"119":0.20252,"120":0.09644,"121":0.09162,"122":0.25074,"123":0.75223,"124":21.71347,"125":8.03827,"126":0.00482,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 42 44 45 46 48 50 51 52 53 54 56 57 58 59 60 61 64 66 67 68 77 78 101 127 128"},F:{"69":0.00482,"75":0.00482,"95":0.03375,"99":0.02411,"102":0.00482,"104":0.01929,"106":0.01929,"107":0.90171,"108":0.01447,"109":2.8932,"110":0.09644,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 100 101 103 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00482,"92":0.01447,"100":0.00482,"108":0.00482,"109":0.01929,"114":0.00482,"115":0.00482,"117":0.00482,"118":0.00482,"119":0.01929,"120":0.02411,"121":0.01447,"122":0.02411,"123":0.09644,"124":2.72443,"125":1.43213,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 116"},E:{"9":0.00482,"14":0.00964,"15":0.00482,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.6","12.1":0.00482,"13.1":0.03858,"14.1":0.03858,"15.1":0.03375,"15.4":0.01447,"15.5":0.03858,"15.6":0.04822,"16.0":0.00964,"16.1":0.02411,"16.2":0.00482,"16.3":0.02411,"16.4":0.00964,"16.5":0.05786,"16.6":0.13502,"17.0":0.02893,"17.1":0.03858,"17.2":0.0868,"17.3":0.01447,"17.4":0.47738,"17.5":0.08197},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00154,"5.0-5.1":0.00154,"6.0-6.1":0.00384,"7.0-7.1":0.00538,"8.1-8.4":0.00154,"9.0-9.2":0.00384,"9.3":0.01767,"10.0-10.2":0.00307,"10.3":0.02766,"11.0-11.2":0.04073,"11.3-11.4":0.00768,"12.0-12.1":0.00461,"12.2-12.5":0.11142,"13.0-13.1":0.00231,"13.2":0.01076,"13.3":0.00538,"13.4-13.7":0.02459,"14.0-14.4":0.04226,"14.5-14.8":0.06532,"15.0-15.1":0.03151,"15.2-15.3":0.03458,"15.4":0.03919,"15.5":0.04918,"15.6-15.8":0.44261,"16.0":0.10066,"16.1":0.20747,"16.2":0.10066,"16.3":0.17443,"16.4":0.03688,"16.5":0.07454,"16.6-16.7":0.59398,"17.0":0.06455,"17.1":0.10527,"17.2":0.10988,"17.3":0.20286,"17.4":4.60665,"17.5":0.32504,"17.6":0},P:{"4":0.02113,"20":0.01057,"21":0.13735,"22":0.0317,"23":0.06339,"24":0.12679,"25":1.26786,"5.0-5.4":0.01057,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","7.2-7.4":0.10566,"13.0":0.01057,"17.0":0.01057,"18.0":0.01057,"19.0":0.02113},I:{"0":0.03095,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.13981,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01447,"9":0.00482,"10":0.00482,"11":0.02411,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.93555},R:{_:"0"},M:{"0":0.28479},Q:{"14.9":0.02589},O:{"0":0.01036},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/UZ.js b/node_modules/caniuse-lite/data/regions/UZ.js index 962b01abd..5b7b5ec59 100644 --- a/node_modules/caniuse-lite/data/regions/UZ.js +++ b/node_modules/caniuse-lite/data/regions/UZ.js @@ -1 +1 @@ -module.exports={C:{"52":0.01403,"109":0.00468,"115":0.10287,"127":0.00468,"128":0.03273,"134":0.00935,"135":0.00468,"136":0.00468,"137":0.0187,"138":0.0187,"139":0.50033,"140":0.06079,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 141 142 143 3.5 3.6"},D:{"39":0.03273,"40":0.03273,"41":0.03273,"42":0.03273,"43":0.03273,"44":0.03741,"45":0.03273,"46":0.03741,"47":0.03273,"48":0.03273,"49":0.07482,"50":0.03273,"51":0.03273,"52":0.03741,"53":0.03273,"54":0.03741,"55":0.03273,"56":0.03741,"57":0.03741,"58":0.03273,"59":0.02806,"60":0.03273,"66":0.01403,"69":0.00468,"73":0.00468,"79":0.0187,"80":0.00935,"83":0.0187,"84":0.00468,"86":0.00468,"87":0.01403,"89":0.00468,"90":0.00468,"91":0.00935,"93":0.00468,"96":0.00468,"97":0.00935,"98":0.02338,"99":0.0187,"100":0.00468,"101":0.00935,"102":0.00468,"103":0.01403,"104":0.02338,"106":0.04208,"107":0.00935,"108":0.02338,"109":1.52438,"110":0.01403,"111":0.00935,"112":0.00935,"113":0.01403,"114":0.00935,"116":0.00935,"117":0.00468,"118":0.03273,"119":0.0187,"120":0.01403,"121":0.01403,"122":0.06546,"123":0.0187,"124":0.03273,"125":14.89774,"126":0.02806,"127":0.01403,"128":0.01403,"129":0.0187,"130":0.02338,"131":0.06079,"132":0.14496,"133":0.05611,"134":0.07014,"135":0.16366,"136":1.4215,"137":14.7107,"138":0.69205,"139":0.00935,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 70 71 72 74 75 76 77 78 81 85 88 92 94 95 105 115 140 141"},F:{"53":0.00468,"73":0.00468,"79":0.05611,"82":0.00468,"89":0.00935,"90":0.00468,"94":0.00468,"95":0.03273,"102":0.00468,"117":0.00468,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 83 84 85 86 87 88 91 92 93 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00468,"18":0.01403,"89":0.00468,"92":0.02338,"98":0.00468,"100":0.00468,"103":0.00468,"109":0.00935,"110":0.00468,"114":0.00935,"122":0.00468,"123":0.00468,"130":0.00468,"131":0.01403,"132":0.00935,"133":0.00468,"134":0.0187,"135":0.02338,"136":0.22912,"137":1.76285,"138":0.14028,_:"12 13 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 99 101 102 104 105 106 107 108 111 112 113 115 116 117 118 119 120 121 124 125 126 127 128 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 26.0","5.1":0.02806,"13.1":0.00468,"14.1":0.00935,"15.6":0.02806,"16.4":0.00935,"16.5":0.00468,"16.6":0.00935,"17.0":0.00468,"17.1":0.00468,"17.2":0.02338,"17.3":0.00468,"17.4":0.01403,"17.5":0.02338,"17.6":0.02338,"18.0":0.00935,"18.1":0.03273,"18.2":0.01403,"18.3":0.02806,"18.4":0.03741,"18.5":0.28991},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00107,"5.0-5.1":0,"6.0-6.1":0.00214,"7.0-7.1":0.00214,"8.1-8.4":0,"9.0-9.2":0.00107,"9.3":0.00643,"10.0-10.2":0.00054,"10.3":0.01071,"11.0-11.2":0.06856,"11.3-11.4":0.00375,"12.0-12.1":0.00107,"12.2-12.5":0.03588,"13.0-13.1":0.00054,"13.2":0.00161,"13.3":0.00107,"13.4-13.7":0.00589,"14.0-14.4":0.01393,"14.5-14.8":0.01393,"15.0-15.1":0.00964,"15.2-15.3":0.00964,"15.4":0.01178,"15.5":0.01285,"15.6-15.8":0.16603,"16.0":0.02196,"16.1":0.04499,"16.2":0.02303,"16.3":0.04231,"16.4":0.00964,"16.5":0.01714,"16.6-16.7":0.20835,"17.0":0.01125,"17.1":0.01982,"17.2":0.01553,"17.3":0.02196,"17.4":0.0391,"17.5":0.08195,"17.6-17.7":0.21424,"18.0":0.05302,"18.1":0.11944,"18.2":0.0632,"18.3":0.27155,"18.4":0.28815,"18.5":3.37799,"26.0":0},P:{"4":0.18331,"20":0.01018,"21":0.03055,"22":0.04074,"23":0.04074,"24":0.04074,"25":0.09166,"26":0.13239,"27":0.17313,"28":1.20171,"5.0-5.4":0.01018,"6.2-6.4":0.03055,"7.2-7.4":0.13239,"8.2":0.01018,"9.2":0.01018,_:"10.1 12.0 14.0 16.0","11.1-11.2":0.01018,"13.0":0.01018,"15.0":0.01018,"17.0":0.03055,"18.0":0.01018,"19.0":0.01018},I:{"0":0.01063,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.58564,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03377,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.10338},R:{_:"0"},M:{"0":0.09051},Q:{"14.9":0.01597},O:{"0":1.77822},H:{"0":0}}; +module.exports={C:{"52":0.01655,"67":0.10261,"68":0.00993,"77":0.00331,"84":0.00331,"89":0.00331,"101":0.00331,"102":0.00331,"103":0.00331,"105":0.00662,"106":0.00662,"107":0.00331,"108":0.00662,"109":0.00331,"110":0.00662,"111":0.00331,"115":0.29128,"118":0.00662,"119":0.00331,"121":0.00331,"122":0.00662,"123":0.00331,"124":0.01986,"125":0.36079,"126":0.27142,"127":0.00331,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 69 70 71 72 73 74 75 76 78 79 80 81 82 83 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 104 112 113 114 116 117 120 128 129 3.5 3.6"},D:{"11":0.00331,"39":0.00331,"41":0.00662,"43":0.00331,"44":0.00331,"45":0.00331,"46":0.00331,"47":0.00662,"49":0.02317,"50":0.00331,"51":0.00331,"53":0.00331,"55":0.00331,"56":0.00662,"63":0.00331,"64":0.00662,"66":0.02648,"68":0.00993,"69":0.00331,"70":0.00331,"71":0.00331,"72":0.00331,"73":0.00993,"76":0.00331,"78":0.00331,"79":0.01655,"80":0.01655,"81":0.00993,"83":0.01986,"84":0.00662,"86":0.00662,"87":0.02979,"88":0.00662,"89":0.00993,"90":0.00993,"91":0.00993,"92":0.00331,"93":0.00662,"94":0.00331,"95":0.00331,"96":0.00662,"97":0.00993,"98":0.00662,"99":0.00993,"100":0.00662,"101":0.00331,"102":0.05627,"103":0.02317,"104":0.01655,"105":0.02317,"106":0.42037,"107":0.01986,"108":0.01655,"109":2.33686,"110":0.00662,"111":0.01324,"112":0.03641,"113":0.00662,"114":0.00993,"115":0.01324,"116":0.04634,"117":0.01986,"118":0.02317,"119":0.02979,"120":0.11585,"121":0.09599,"122":0.10592,"123":0.50312,"124":12.45884,"125":4.85577,"126":0.01324,"127":0.00331,_:"4 5 6 7 8 9 10 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 40 42 48 52 54 57 58 59 60 61 62 65 67 74 75 77 85 128"},F:{"27":0.00331,"28":0.00662,"36":0.00331,"46":0.00331,"51":0.00331,"53":0.01655,"79":0.01655,"82":0.00331,"90":0.00331,"93":0.00331,"94":0.00993,"95":0.07613,"97":0.00331,"101":0.00662,"102":0.01655,"104":0.01986,"105":0.11585,"106":0.02648,"107":0.14233,"108":0.0331,"109":0.331,"110":0.04303,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 91 92 96 98 99 100 103 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 12.1","11.6":0.00331},B:{"12":0.00331,"14":0.00331,"15":0.00331,"16":0.00331,"17":0.12578,"18":0.02979,"84":0.00662,"89":0.00331,"92":0.02648,"100":0.00331,"102":0.00331,"106":0.00331,"108":0.00331,"109":0.01986,"110":0.00331,"112":0.00331,"113":0.00331,"114":0.00331,"115":0.00331,"116":0.00331,"117":0.00993,"118":0.00331,"119":0.00993,"120":0.02317,"121":0.02317,"122":0.04634,"123":0.04965,"124":1.51267,"125":0.83412,_:"13 79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 99 101 103 104 105 107 111"},E:{"9":0.00331,"14":0.00331,_:"0 4 5 6 7 8 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 17.6","5.1":0.27804,"11.1":0.00662,"13.1":0.00331,"14.1":0.00993,"15.1":0.00331,"15.4":0.00662,"15.5":0.00662,"15.6":0.04303,"16.0":0.00331,"16.1":0.01986,"16.2":0.01324,"16.3":0.00993,"16.4":0.00662,"16.5":0.00993,"16.6":0.03972,"17.0":0.01655,"17.1":0.08937,"17.2":0.02317,"17.3":0.01324,"17.4":0.20522,"17.5":0.04965},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00141,"5.0-5.1":0.00141,"6.0-6.1":0.00352,"7.0-7.1":0.00493,"8.1-8.4":0.00141,"9.0-9.2":0.00352,"9.3":0.01618,"10.0-10.2":0.00281,"10.3":0.02533,"11.0-11.2":0.0373,"11.3-11.4":0.00704,"12.0-12.1":0.00422,"12.2-12.5":0.10203,"13.0-13.1":0.00211,"13.2":0.00985,"13.3":0.00493,"13.4-13.7":0.02252,"14.0-14.4":0.0387,"14.5-14.8":0.05981,"15.0-15.1":0.02885,"15.2-15.3":0.03167,"15.4":0.03589,"15.5":0.04504,"15.6-15.8":0.40532,"16.0":0.09218,"16.1":0.18999,"16.2":0.09218,"16.3":0.15974,"16.4":0.03378,"16.5":0.06826,"16.6-16.7":0.54395,"17.0":0.05911,"17.1":0.0964,"17.2":0.10063,"17.3":0.18577,"17.4":4.21858,"17.5":0.29766,"17.6":0},P:{"4":0.29389,"20":0.07094,"21":0.12161,"22":0.20269,"23":0.34457,"24":0.43577,"25":1.66202,"5.0-5.4":0.01013,"6.2-6.4":0.07094,"7.2-7.4":0.22295,"8.2":0.01013,"9.2":0.02027,_:"10.1 12.0","11.1-11.2":0.0304,"13.0":0.02027,"14.0":0.02027,"15.0":0.01013,"16.0":0.0304,"17.0":0.05067,"18.0":0.02027,"19.0":0.05067},I:{"0":0.03331,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.38127,_:"10 11 12 11.1 11.5 12.1"},A:{"7":0.00346,"8":0.02422,"9":0.00692,"10":0.00346,"11":0.10035,_:"6 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.94481},R:{_:"0"},M:{"0":0.06689},Q:{"14.9":0.02007},O:{"0":1.63881},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VA.js b/node_modules/caniuse-lite/data/regions/VA.js index b7236f1aa..0b51fdf68 100644 --- a/node_modules/caniuse-lite/data/regions/VA.js +++ b/node_modules/caniuse-lite/data/regions/VA.js @@ -1 +1 @@ -module.exports={C:{"113":0.04886,"115":0.39901,"128":0.09772,"135":0.04886,"138":0.39901,"139":11.66078,"140":1.25402,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 136 137 141 142 143 3.5 3.6"},D:{"66":0.04886,"93":0.04886,"103":0.14657,"109":0.20358,"110":0.04886,"111":0.09772,"113":0.04886,"116":0.20358,"122":2.35333,"125":0.09772,"128":1.09931,"134":0.09772,"135":0.04886,"136":3.85164,"137":42.64489,"138":1.09931,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 112 114 115 117 118 119 120 121 123 124 126 127 129 130 131 132 133 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.04886,"122":0.14657,"123":0.09772,"130":0.09772,"131":0.14657,"136":1.00159,"137":8.30586,"138":0.25243,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 124 125 126 127 128 129 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.5 18.1 18.2 26.0","13.1":0.14657,"15.6":0.04886,"16.6":0.04886,"17.1":0.30129,"17.4":0.04886,"17.6":0.04886,"18.0":0.04886,"18.3":0.04886,"18.4":0.04886,"18.5":1.7996},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0,"6.0-6.1":0.0021,"7.0-7.1":0.0021,"8.1-8.4":0,"9.0-9.2":0.00105,"9.3":0.00631,"10.0-10.2":0.00053,"10.3":0.01051,"11.0-11.2":0.06727,"11.3-11.4":0.00368,"12.0-12.1":0.00105,"12.2-12.5":0.03521,"13.0-13.1":0.00053,"13.2":0.00158,"13.3":0.00105,"13.4-13.7":0.00578,"14.0-14.4":0.01366,"14.5-14.8":0.01366,"15.0-15.1":0.00946,"15.2-15.3":0.00946,"15.4":0.01156,"15.5":0.01261,"15.6-15.8":0.16291,"16.0":0.02155,"16.1":0.04414,"16.2":0.0226,"16.3":0.04152,"16.4":0.00946,"16.5":0.01682,"16.6-16.7":0.20443,"17.0":0.01104,"17.1":0.01944,"17.2":0.01524,"17.3":0.02155,"17.4":0.03836,"17.5":0.08041,"17.6-17.7":0.21021,"18.0":0.05203,"18.1":0.11719,"18.2":0.06201,"18.3":0.26644,"18.4":0.28274,"18.5":3.31452,"26.0":0},P:{"28":1.73444,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":10.96488},R:{_:"0"},M:{"0":0.20427},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"104":0.05831,"109":0.02499,"115":0.76636,"124":0.05831,"125":5.4145,"126":3.43196,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"103":0.02499,"109":0.70805,"110":0.02499,"114":0.02499,"116":0.02499,"122":1.10789,"123":0.30821,"124":25.13994,"125":9.7461,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 111 112 113 115 117 118 119 120 121 126 127 128"},F:{"109":0.0833,"110":0.05831,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.48314,"109":0.02499,"124":25.53978,"125":4.165,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123"},E:{"14":0.02499,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.0 17.6","11.1":0.0833,"13.1":0.14161,"14.1":0.0833,"15.6":0.30821,"16.3":0.05831,"16.5":0.05831,"16.6":0.14161,"17.1":1.3328,"17.2":0.0833,"17.3":1.04958,"17.4":1.44942,"17.5":1.1662},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0016,"5.0-5.1":0.0016,"6.0-6.1":0.00399,"7.0-7.1":0.00559,"8.1-8.4":0.0016,"9.0-9.2":0.00399,"9.3":0.01836,"10.0-10.2":0.00319,"10.3":0.02874,"11.0-11.2":0.04231,"11.3-11.4":0.00798,"12.0-12.1":0.00479,"12.2-12.5":0.11575,"13.0-13.1":0.00239,"13.2":0.01118,"13.3":0.00559,"13.4-13.7":0.02554,"14.0-14.4":0.0439,"14.5-14.8":0.06785,"15.0-15.1":0.03273,"15.2-15.3":0.03592,"15.4":0.04071,"15.5":0.05109,"15.6-15.8":0.4598,"16.0":0.10457,"16.1":0.21553,"16.2":0.10457,"16.3":0.18121,"16.4":0.03832,"16.5":0.07743,"16.6-16.7":0.61705,"17.0":0.06705,"17.1":0.10936,"17.2":0.11415,"17.3":0.21074,"17.4":4.78557,"17.5":0.33766,"17.6":0},P:{"25":0.41082,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":8.30658},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VC.js b/node_modules/caniuse-lite/data/regions/VC.js index 4f89c36ed..d3d3ae5ff 100644 --- a/node_modules/caniuse-lite/data/regions/VC.js +++ b/node_modules/caniuse-lite/data/regions/VC.js @@ -1 +1 @@ -module.exports={C:{"111":0.00389,"115":0.00389,"127":0.00389,"136":0.02333,"137":0.1283,"138":0.16718,"139":1.3297,"140":0.10498,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 141 142 143 3.5 3.6"},D:{"39":0.01944,"40":0.01166,"41":0.02722,"42":0.03499,"43":0.02333,"44":0.02722,"45":0.01555,"46":0.01555,"47":0.0311,"48":0.00778,"49":0.01166,"50":0.02333,"51":0.03499,"52":0.02333,"53":0.02333,"54":0.01944,"55":0.01555,"56":0.01555,"57":0.03499,"58":0.02333,"59":0.0311,"60":0.01555,"75":0.00389,"79":0.01555,"83":0.00778,"92":0.00389,"93":0.01944,"95":0.00778,"103":0.05832,"108":0.00389,"109":0.26438,"114":0.01166,"115":0.00389,"116":0.16718,"119":0.00778,"120":0.00389,"121":0.00389,"122":0.03888,"123":0.00389,"125":9.27288,"126":0.00778,"128":0.00389,"129":0.02333,"130":0.06221,"131":0.01555,"132":0.01944,"133":0.05832,"134":0.17107,"135":0.19829,"136":2.83435,"137":12.15389,"138":0.72317,"139":0.04277,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 84 85 86 87 88 89 90 91 94 96 97 98 99 100 101 102 104 105 106 107 110 111 112 113 117 118 124 127 140 141"},F:{"63":0.05832,"113":0.00778,"117":0.00389,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.00389,"92":0.01166,"109":0.03888,"131":0.03888,"134":0.00389,"135":0.0661,"136":0.5171,"137":3.15317,"138":0.17496,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.5 16.2 16.4 16.5 17.2 17.4 17.5 18.1 18.2 26.0","13.1":0.01166,"14.1":0.04277,"15.2-15.3":0.00389,"15.4":0.00389,"15.6":0.0972,"16.0":0.00389,"16.1":0.00778,"16.3":0.00778,"16.6":0.17885,"17.0":0.01555,"17.1":0.05443,"17.3":0.00778,"17.6":0.2605,"18.0":0.01555,"18.3":0.04277,"18.4":0.06998,"18.5":1.12363},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0,"6.0-6.1":0.00251,"7.0-7.1":0.00251,"8.1-8.4":0,"9.0-9.2":0.00125,"9.3":0.00753,"10.0-10.2":0.00063,"10.3":0.01254,"11.0-11.2":0.08027,"11.3-11.4":0.00439,"12.0-12.1":0.00125,"12.2-12.5":0.04202,"13.0-13.1":0.00063,"13.2":0.00188,"13.3":0.00125,"13.4-13.7":0.0069,"14.0-14.4":0.0163,"14.5-14.8":0.0163,"15.0-15.1":0.01129,"15.2-15.3":0.01129,"15.4":0.0138,"15.5":0.01505,"15.6-15.8":0.1944,"16.0":0.02571,"16.1":0.05268,"16.2":0.02696,"16.3":0.04954,"16.4":0.01129,"16.5":0.02007,"16.6-16.7":0.24394,"17.0":0.01317,"17.1":0.0232,"17.2":0.01819,"17.3":0.02571,"17.4":0.04578,"17.5":0.09594,"17.6-17.7":0.25084,"18.0":0.06208,"18.1":0.13984,"18.2":0.074,"18.3":0.31794,"18.4":0.33738,"18.5":3.95506,"26.0":0},P:{"4":0.03142,"21":0.10472,"22":0.07331,"24":0.04189,"25":0.01047,"26":0.01047,"27":0.03142,"28":1.39283,_:"20 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01047,"11.1-11.2":0.01047},I:{"0":0.0183,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08557,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":56.30018},R:{_:"0"},M:{"0":0.03667},Q:{_:"14.9"},O:{"0":0.02445},H:{"0":0}}; +module.exports={C:{"78":0.02285,"87":0.00381,"115":0.03809,"123":0.01905,"124":0.5904,"125":1.9883,"126":0.89131,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"58":0.00381,"70":0.00762,"74":0.04571,"76":0.01143,"79":0.00762,"83":0.03047,"85":0.03809,"87":0.02666,"88":0.00381,"89":0.02285,"91":0.00381,"92":0.00762,"93":0.15998,"94":0.00381,"96":0.00381,"98":0.00381,"99":0.07999,"102":0.03047,"103":0.07999,"105":0.00381,"106":0.00381,"109":1.10461,"110":0.00762,"111":0.00762,"112":0.02285,"114":0.00762,"115":0.06094,"116":0.06475,"117":0.03809,"118":0.01524,"119":0.04571,"120":0.26282,"121":0.04571,"122":0.1676,"123":1.34077,"124":12.00597,"125":4.20895,"126":0.03809,"127":0.00381,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 71 72 73 75 77 78 80 81 84 86 90 95 97 100 101 104 107 108 113 128"},F:{"81":0.00762,"102":0.00381,"107":0.01524,"108":0.00381,"109":0.32757,"110":0.05714,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01524,"96":0.00381,"109":0.00762,"112":0.00381,"116":0.00381,"117":0.00381,"121":0.00381,"122":0.02666,"123":0.17902,"124":4.62794,"125":2.42633,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 118 119 120"},E:{"14":0.02285,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 13.1 15.2-15.3 15.4 15.5 16.2 17.6","12.1":0.00762,"14.1":0.0419,"15.1":0.03047,"15.6":0.09142,"16.0":0.01905,"16.1":0.01524,"16.3":0.01905,"16.4":0.00762,"16.5":0.00762,"16.6":0.27806,"17.0":0.0419,"17.1":0.0419,"17.2":0.02285,"17.3":0.2133,"17.4":0.84179,"17.5":0.14474},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00266,"5.0-5.1":0.00266,"6.0-6.1":0.00665,"7.0-7.1":0.00931,"8.1-8.4":0.00266,"9.0-9.2":0.00665,"9.3":0.0306,"10.0-10.2":0.00532,"10.3":0.0479,"11.0-11.2":0.07051,"11.3-11.4":0.0133,"12.0-12.1":0.00798,"12.2-12.5":0.19291,"13.0-13.1":0.00399,"13.2":0.01863,"13.3":0.00931,"13.4-13.7":0.04257,"14.0-14.4":0.07317,"14.5-14.8":0.11309,"15.0-15.1":0.05455,"15.2-15.3":0.05987,"15.4":0.06785,"15.5":0.08515,"15.6-15.8":0.76634,"16.0":0.17429,"16.1":0.35922,"16.2":0.17429,"16.3":0.30201,"16.4":0.06386,"16.5":0.12905,"16.6-16.7":1.02843,"17.0":0.11176,"17.1":0.18227,"17.2":0.19025,"17.3":0.35124,"17.4":7.97602,"17.5":0.56278,"17.6":0},P:{"4":0.17675,"21":0.17675,"22":0.03535,"23":0.09427,"24":0.17675,"25":2.14462,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 14.0 15.0 16.0","7.2-7.4":0.23567,"11.1-11.2":0.02357,"12.0":0.01178,"13.0":0.04713,"17.0":0.01178,"18.0":0.01178,"19.0":0.02357},I:{"0":0.08017,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":0.4829,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00381,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.00977},R:{_:"0"},M:{"0":0.34051},Q:{_:"14.9"},O:{"0":0.12382},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VE.js b/node_modules/caniuse-lite/data/regions/VE.js index 0cf691291..b13d8ddc1 100644 --- a/node_modules/caniuse-lite/data/regions/VE.js +++ b/node_modules/caniuse-lite/data/regions/VE.js @@ -1 +1 @@ -module.exports={C:{"4":0.1043,"38":0.00033,"40":0.00033,"52":0.00492,"60":0.00033,"67":0.00033,"68":0.00033,"72":0.00033,"75":0.00066,"78":0.00033,"88":0.00033,"91":0.00033,"100":0.00033,"101":0.00066,"102":0.00066,"115":0.03346,"120":0.00033,"122":0.00066,"123":0.00197,"127":0.00033,"128":0.00328,"129":0.00033,"132":0.00033,"133":0.00033,"134":0.00197,"135":0.00066,"136":0.00098,"137":0.00098,"138":0.00295,"139":0.07183,"140":0.01115,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 69 70 71 73 74 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 124 125 126 130 131 141 142 143 3.5 3.6"},D:{"39":0.00098,"40":0.00098,"41":0.00098,"42":0.00098,"43":0.00098,"44":0.00098,"45":0.00098,"46":0.00098,"47":0.00131,"48":0.00098,"49":0.00558,"50":0.00131,"51":0.00098,"52":0.00098,"53":0.00098,"54":0.00098,"55":0.00098,"56":0.00098,"57":0.00098,"58":0.00098,"59":0.00098,"60":0.00098,"63":0.00033,"64":0.00033,"65":0.00066,"69":0.00033,"70":0.00066,"71":0.00033,"72":0.00033,"73":0.00164,"75":0.00066,"76":0.00066,"77":0.00033,"78":0.00033,"79":0.00131,"80":0.00066,"81":0.00131,"83":0.00131,"84":0.00098,"85":0.00262,"86":0.00066,"87":0.00361,"88":0.00066,"89":0.00066,"90":0.00066,"91":0.00197,"92":0.00098,"93":0.00459,"94":0.00262,"95":0.00033,"96":0.00033,"97":0.00033,"98":0.00131,"99":0.00033,"100":0.00131,"101":0.00098,"102":0.00131,"103":0.00328,"104":0.00066,"105":0.00033,"106":0.00131,"107":0.00131,"108":0.0023,"109":0.22402,"110":0.00131,"111":0.00197,"112":0.00164,"113":0.00033,"114":0.00131,"116":0.00394,"117":0.00033,"118":0.00098,"119":0.00197,"120":0.00197,"121":0.00328,"122":0.00722,"123":0.00098,"124":0.00131,"125":0.54546,"126":0.00361,"127":0.00164,"128":0.00328,"129":0.00164,"130":0.00262,"131":0.0059,"132":0.00689,"133":0.00558,"134":0.00623,"135":0.00918,"136":0.11414,"137":0.96202,"138":0.04198,"139":0.00033,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 66 67 68 74 115 140 141"},F:{"79":0.00033,"84":0.00033,"86":0.00033,"89":0.00197,"90":0.00164,"92":0.00033,"95":0.01443,"102":0.00033,"117":0.00066,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 85 87 88 91 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00033,"84":0.00033,"85":0.00066,"92":0.00328,"100":0.00033,"102":0.00066,"106":0.00033,"107":0.00033,"109":0.00459,"114":0.00033,"119":0.00033,"121":0.00098,"122":0.00164,"123":0.00033,"124":0.00131,"125":0.00033,"126":0.00033,"127":0.00033,"128":0.00033,"129":0.00066,"130":0.00066,"131":0.00164,"132":0.00131,"133":0.00066,"134":0.00394,"135":0.00262,"136":0.03247,"137":0.22534,"138":0.02329,_:"12 13 14 15 16 17 79 80 81 83 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 108 110 111 112 113 115 116 117 118 120"},E:{"14":0.00033,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.1 16.4 26.0","5.1":0.0023,"11.1":0.00033,"13.1":0.00098,"14.1":0.00098,"15.4":0.00066,"15.6":0.0023,"16.0":0.00033,"16.2":0.00033,"16.3":0.00033,"16.5":0.00033,"16.6":0.0023,"17.0":0.00033,"17.1":0.00098,"17.2":0.00033,"17.3":0.00098,"17.4":0.00066,"17.5":0.00066,"17.6":0.00197,"18.0":0.00033,"18.1":0.00066,"18.2":0.00066,"18.3":0.00131,"18.4":0.00164,"18.5":0.0105},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00004,"5.0-5.1":0,"6.0-6.1":0.00009,"7.0-7.1":0.00009,"8.1-8.4":0,"9.0-9.2":0.00004,"9.3":0.00027,"10.0-10.2":0.00002,"10.3":0.00044,"11.0-11.2":0.00285,"11.3-11.4":0.00016,"12.0-12.1":0.00004,"12.2-12.5":0.00149,"13.0-13.1":0.00002,"13.2":0.00007,"13.3":0.00004,"13.4-13.7":0.00024,"14.0-14.4":0.00058,"14.5-14.8":0.00058,"15.0-15.1":0.0004,"15.2-15.3":0.0004,"15.4":0.00049,"15.5":0.00053,"15.6-15.8":0.0069,"16.0":0.00091,"16.1":0.00187,"16.2":0.00096,"16.3":0.00176,"16.4":0.0004,"16.5":0.00071,"16.6-16.7":0.00865,"17.0":0.00047,"17.1":0.00082,"17.2":0.00065,"17.3":0.00091,"17.4":0.00162,"17.5":0.0034,"17.6-17.7":0.0089,"18.0":0.0022,"18.1":0.00496,"18.2":0.00262,"18.3":0.01128,"18.4":0.01197,"18.5":0.1403,"26.0":0},P:{"28":0.04836,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.42484,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00034},K:{"0":0.02902,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00131,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":96.33558},R:{_:"0"},M:{"0":0.00967},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"4":1.85558,"27":0.00392,"45":0.00392,"52":0.20792,"60":0.00785,"61":0.00392,"62":0.00392,"64":0.00392,"68":0.01177,"72":0.01177,"75":0.00785,"78":0.01569,"86":0.00392,"88":0.01177,"91":0.01177,"99":0.00392,"102":0.00392,"103":0.00392,"104":0.00392,"106":0.00392,"107":0.00392,"108":0.00392,"109":0.00785,"111":0.00392,"112":0.00785,"113":0.00785,"114":0.00392,"115":0.69829,"116":0.00392,"119":0.00392,"120":0.00392,"121":0.00785,"122":0.01962,"123":0.04315,"124":0.03923,"125":0.58453,"126":0.54922,"127":0.00392,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 53 54 55 56 57 58 59 63 65 66 67 69 70 71 73 74 76 77 79 80 81 82 83 84 85 87 89 90 92 93 94 95 96 97 98 100 101 105 110 117 118 128 129 3.5 3.6"},D:{"11":0.00392,"24":0.00392,"37":0.00392,"47":0.00392,"48":0.00392,"49":0.07846,"53":0.00392,"63":0.00392,"64":0.00785,"65":0.02354,"66":0.00392,"67":0.00392,"68":0.00392,"69":0.01177,"70":0.00392,"71":0.00785,"72":0.00392,"73":0.02746,"74":0.00785,"75":0.00785,"76":0.01962,"77":0.07454,"78":0.00392,"79":0.02354,"80":0.01569,"81":0.01569,"83":0.02354,"84":0.00392,"85":0.02746,"86":0.01177,"87":0.03923,"88":0.01569,"89":0.01177,"90":0.01962,"91":0.03531,"92":0.00785,"93":0.03531,"94":0.00785,"95":0.00785,"96":0.01177,"97":0.02354,"98":0.04708,"99":0.00785,"100":0.01569,"101":0.01962,"102":0.01962,"103":0.09023,"104":0.02354,"105":0.01569,"106":0.02746,"107":0.03138,"108":0.06277,"109":6.28857,"110":0.02746,"111":0.01962,"112":0.02746,"113":0.00785,"114":0.02354,"115":0.01177,"116":0.07846,"117":0.01569,"118":0.12554,"119":0.04315,"120":0.10592,"121":0.14515,"122":0.23538,"123":0.41976,"124":10.29003,"125":5.4922,"126":0.00392,"127":0.00392,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 50 51 52 54 55 56 57 58 59 60 61 62 128"},F:{"65":0.00392,"79":0.01177,"82":0.00785,"95":0.22753,"102":0.00392,"107":0.33346,"108":0.01177,"109":1.44759,"110":0.07061,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.01962,"18":0.00392,"79":0.00392,"83":0.00392,"85":0.00392,"89":0.00392,"92":0.03531,"100":0.00392,"107":0.00392,"109":0.11377,"111":0.00392,"112":0.00392,"113":0.00392,"114":0.00392,"115":0.00392,"116":0.00392,"117":0.00392,"118":0.00392,"119":0.00392,"120":0.00785,"121":0.02746,"122":0.03138,"123":0.153,"124":1.87912,"125":0.98467,_:"12 13 14 16 17 80 81 84 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110"},E:{"13":0.00785,"14":0.00392,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1 15.2-15.3 16.2 17.6","5.1":0.05492,"9.1":0.00392,"13.1":0.01569,"14.1":0.03138,"15.1":0.00392,"15.4":0.00392,"15.5":0.00392,"15.6":0.03138,"16.0":0.00392,"16.1":0.01177,"16.3":0.01569,"16.4":0.00785,"16.5":0.01177,"16.6":0.02746,"17.0":0.00392,"17.1":0.02354,"17.2":0.00785,"17.3":0.02354,"17.4":0.12161,"17.5":0.01962},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00056,"5.0-5.1":0.00056,"6.0-6.1":0.0014,"7.0-7.1":0.00196,"8.1-8.4":0.00056,"9.0-9.2":0.0014,"9.3":0.00644,"10.0-10.2":0.00112,"10.3":0.01009,"11.0-11.2":0.01485,"11.3-11.4":0.0028,"12.0-12.1":0.00168,"12.2-12.5":0.04063,"13.0-13.1":0.00084,"13.2":0.00392,"13.3":0.00196,"13.4-13.7":0.00897,"14.0-14.4":0.01541,"14.5-14.8":0.02382,"15.0-15.1":0.01149,"15.2-15.3":0.01261,"15.4":0.01429,"15.5":0.01793,"15.6-15.8":0.16139,"16.0":0.03671,"16.1":0.07565,"16.2":0.03671,"16.3":0.0636,"16.4":0.01345,"16.5":0.02718,"16.6-16.7":0.21659,"17.0":0.02354,"17.1":0.03839,"17.2":0.04007,"17.3":0.07397,"17.4":1.67977,"17.5":0.11852,"17.6":0},P:{"4":0.06422,"20":0.0107,"21":0.02141,"22":0.03211,"23":0.04281,"24":0.07492,"25":0.59934,"5.0-5.4":0.0107,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 18.0","7.2-7.4":0.06422,"13.0":0.0107,"16.0":0.0107,"17.0":0.02141,"19.0":0.02141},I:{"0":0.0666,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.39507,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00785,"9":0.00392,"11":0.03531,_:"6 7 10 5.5"},S:{"2.5":0.01216,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":60.49177},R:{_:"0"},M:{"0":0.13372},Q:{_:"14.9"},O:{"0":0.09117},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VG.js b/node_modules/caniuse-lite/data/regions/VG.js index cc090b443..01c999bbf 100644 --- a/node_modules/caniuse-lite/data/regions/VG.js +++ b/node_modules/caniuse-lite/data/regions/VG.js @@ -1 +1 @@ -module.exports={C:{"4":0.68166,"106":0.00509,"115":0.0407,"128":0.11191,"136":0.01017,"138":0.01017,"139":0.26452,"140":0.02035,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 141 142 143 3.5 3.6"},D:{"34":0.01017,"39":0.01017,"40":0.01526,"41":0.04578,"42":0.00509,"43":0.01017,"44":0.02544,"45":0.02544,"46":0.02544,"47":0.0407,"48":0.01017,"49":0.01017,"50":0.01017,"51":0.02544,"52":0.02544,"53":0.02544,"54":0.02544,"55":0.01526,"56":0.03052,"57":0.04578,"58":0.00509,"59":0.00509,"60":0.0407,"71":0.01017,"73":0.02035,"87":0.01017,"100":0.00509,"101":0.02544,"103":0.01017,"109":0.08648,"112":0.00509,"116":0.01526,"121":0.01017,"122":0.03561,"125":10.46905,"126":0.02544,"127":0.0407,"128":0.00509,"129":0.01526,"130":0.00509,"131":0.0407,"132":0.0407,"133":0.04578,"134":0.09157,"135":0.34592,"136":2.81311,"137":13.11429,"138":1.03266,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 61 62 63 64 65 66 67 68 69 70 72 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 102 104 105 106 107 108 110 111 113 114 115 117 118 119 120 123 124 139 140 141"},F:{"90":0.01017,"105":0.01526,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01017,"92":0.05596,"96":0.00509,"109":0.01017,"115":0.00509,"122":0.00509,"123":0.01017,"129":0.05596,"131":0.03052,"133":0.01017,"134":0.01017,"135":0.02544,"136":1.30736,"137":6.85728,"138":0.6664,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 124 125 126 127 128 130 132"},E:{"14":0.13735,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.2 16.4 26.0","13.1":0.02544,"14.1":0.02544,"15.4":0.00509,"15.5":0.01526,"15.6":0.06613,"16.0":0.02544,"16.1":0.06104,"16.3":0.01526,"16.5":0.01526,"16.6":1.65836,"17.0":0.01017,"17.1":0.06613,"17.2":0.01017,"17.3":0.02544,"17.4":0.00509,"17.5":0.03052,"17.6":0.09665,"18.0":0.38153,"18.1":0.06104,"18.2":0.02544,"18.3":0.13735,"18.4":0.26961,"18.5":5.57027},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00486,"5.0-5.1":0,"6.0-6.1":0.00971,"7.0-7.1":0.00971,"8.1-8.4":0,"9.0-9.2":0.00486,"9.3":0.02913,"10.0-10.2":0.00243,"10.3":0.04855,"11.0-11.2":0.31072,"11.3-11.4":0.01699,"12.0-12.1":0.00486,"12.2-12.5":0.16264,"13.0-13.1":0.00243,"13.2":0.00728,"13.3":0.00486,"13.4-13.7":0.0267,"14.0-14.4":0.06312,"14.5-14.8":0.06312,"15.0-15.1":0.0437,"15.2-15.3":0.0437,"15.4":0.05341,"15.5":0.05826,"15.6-15.8":0.75253,"16.0":0.09953,"16.1":0.20391,"16.2":0.10438,"16.3":0.19177,"16.4":0.0437,"16.5":0.07768,"16.6-16.7":0.9443,"17.0":0.05098,"17.1":0.08982,"17.2":0.0704,"17.3":0.09953,"17.4":0.17721,"17.5":0.37141,"17.6-17.7":0.97101,"18.0":0.24032,"18.1":0.54134,"18.2":0.28645,"18.3":1.23075,"18.4":1.306,"18.5":15.31033,"26.0":0},P:{"4":0.09793,"21":0.02176,"24":0.04352,"25":0.08705,"26":0.03264,"27":0.02176,"28":3.87369,_:"20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.68551},I:{"0":0.0049,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.00983,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02035,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":21.10371},R:{_:"0"},M:{"0":0.08352},Q:{_:"14.9"},O:{"0":0.02457},H:{"0":0}}; +module.exports={C:{"38":0.01116,"54":0.00372,"68":0.00372,"74":0.00372,"75":0.00372,"86":0.00372,"88":0.00372,"91":0.01488,"101":0.00372,"102":0.04092,"103":0.00372,"105":0.093,"106":0.23436,"107":0.04092,"108":0.0186,"109":0.04464,"110":0.0186,"111":0.02604,"113":0.00744,"114":0.01488,"115":0.02604,"119":0.00744,"121":0.00372,"124":0.01488,"125":0.42036,"126":0.47244,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 76 77 78 79 80 81 82 83 84 85 87 89 90 92 93 94 95 96 97 98 99 100 104 112 116 117 118 120 122 123 127 128 129 3.5 3.6"},D:{"49":0.00372,"50":0.00372,"66":0.00744,"68":0.01488,"72":0.00372,"75":0.00372,"76":0.02232,"77":0.00372,"78":0.00744,"79":0.00372,"80":0.00372,"81":0.00744,"83":0.00744,"84":0.00744,"85":0.00372,"86":0.00372,"87":0.00372,"88":0.00744,"89":0.00372,"90":0.00372,"91":0.02976,"92":0.00372,"93":0.01488,"94":0.00372,"101":0.00372,"102":0.04092,"103":0.13392,"104":0.00372,"106":0.8742,"107":0.0186,"108":0.30504,"109":2.18736,"110":0.02976,"111":0.0744,"112":0.55428,"113":0.0186,"114":0.01488,"115":0.04836,"116":0.06696,"117":0.01488,"118":0.10044,"119":0.23808,"120":0.05952,"121":0.10044,"122":0.13764,"123":1.11228,"124":9.3744,"125":4.08084,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 69 70 71 73 74 95 96 97 98 99 100 105 126 127 128"},F:{"46":0.01116,"54":0.00372,"55":0.00372,"56":0.00372,"70":0.00372,"93":0.00372,"103":0.01116,"105":0.01116,"107":0.05952,"108":0.00744,"109":0.86676,"110":0.00372,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 57 58 60 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"80":0.00372,"81":0.01116,"83":0.00372,"84":0.00744,"88":0.00372,"89":0.00372,"92":0.02232,"96":0.00372,"101":0.00372,"104":0.00372,"107":0.02604,"108":0.06324,"109":0.00744,"110":0.00372,"111":0.06696,"112":0.00744,"113":0.00372,"116":0.00372,"118":0.01116,"119":0.0372,"120":0.18972,"121":0.01488,"122":0.093,"123":0.3534,"124":4.02132,"125":2.94624,_:"12 13 14 15 16 17 18 79 85 86 87 90 91 93 94 95 97 98 99 100 102 103 105 106 114 115 117"},E:{"11":0.0186,"15":0.01116,_:"0 4 5 6 7 8 9 10 12 13 14 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 17.6","9.1":0.0372,"13.1":0.01488,"14.1":0.07068,"15.1":0.00372,"15.2-15.3":0.0186,"15.4":0.15252,"15.5":0.00372,"15.6":0.49104,"16.0":0.02232,"16.1":0.093,"16.2":0.00744,"16.3":0.10044,"16.4":0.02232,"16.5":0.27528,"16.6":0.79236,"17.0":0.01116,"17.1":0.06696,"17.2":0.04464,"17.3":0.093,"17.4":2.79744,"17.5":0.55056},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00571,"5.0-5.1":0.00571,"6.0-6.1":0.01428,"7.0-7.1":0.01999,"8.1-8.4":0.00571,"9.0-9.2":0.01428,"9.3":0.06569,"10.0-10.2":0.01142,"10.3":0.10282,"11.0-11.2":0.15138,"11.3-11.4":0.02856,"12.0-12.1":0.01714,"12.2-12.5":0.41414,"13.0-13.1":0.00857,"13.2":0.03999,"13.3":0.01999,"13.4-13.7":0.0914,"14.0-14.4":0.15709,"14.5-14.8":0.24277,"15.0-15.1":0.1171,"15.2-15.3":0.12853,"15.4":0.14566,"15.5":0.18279,"15.6-15.8":1.64514,"16.0":0.37415,"16.1":0.77116,"16.2":0.37415,"16.3":0.64834,"16.4":0.13709,"16.5":0.27705,"16.6-16.7":2.2078,"17.0":0.23992,"17.1":0.39129,"17.2":0.40843,"17.3":0.75402,"17.4":17.12258,"17.5":1.20815,"17.6":0},P:{"4":0.05478,"20":0.01096,"21":0.03287,"22":0.13146,"23":0.03287,"24":0.10955,"25":4.393,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02191,"9.2":0.0986,"11.1-11.2":0.01096,"19.0":0.03287},I:{"0":0.03128,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.18212,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.15996,"9":0.01488,"10":0.00372,"11":0.08556,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.71212},R:{_:"0"},M:{"0":0.25748},Q:{_:"14.9"},O:{"0":0.2826},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VI.js b/node_modules/caniuse-lite/data/regions/VI.js index 941d2d499..fbfc3ee28 100644 --- a/node_modules/caniuse-lite/data/regions/VI.js +++ b/node_modules/caniuse-lite/data/regions/VI.js @@ -1 +1 @@ -module.exports={C:{"115":0.42533,"118":0.00478,"128":0.01912,"135":0.48268,"136":0.0239,"137":0.03345,"138":0.4779,"139":4.57828,"140":0.58304,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 141 142 143 3.5 3.6"},D:{"39":0.0239,"40":0.0239,"41":0.01912,"42":0.0239,"43":0.01912,"44":0.00956,"45":0.02867,"46":0.02867,"47":0.01912,"48":0.02867,"49":0.01434,"50":0.02867,"51":0.00478,"52":0.01434,"53":0.00956,"54":0.01434,"55":0.0239,"56":0.01434,"57":0.01912,"58":0.00956,"59":0.01912,"60":0.01434,"79":0.00478,"83":0.00478,"86":0.00478,"88":0.00956,"93":0.00478,"99":0.00478,"103":0.46834,"109":0.19116,"116":0.01912,"120":0.00478,"122":0.00478,"125":5.11353,"126":0.01912,"127":0.00956,"128":0.09558,"129":0.0239,"130":0.00956,"131":0.01912,"132":0.0239,"133":0.12903,"134":0.74075,"135":0.31541,"136":2.85784,"137":12.95587,"138":0.73119,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 87 89 90 91 92 94 95 96 97 98 100 101 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 121 123 124 139 140 141"},F:{"69":0.0239,"89":0.00478,"90":0.00478,"95":0.0239,"113":0.00478,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"100":0.04779,"109":0.05735,"114":0.00478,"115":0.00478,"121":0.05257,"122":0.05735,"123":0.01434,"127":0.00956,"129":0.01912,"131":0.01912,"132":0.01912,"133":0.00478,"134":0.03823,"135":0.02867,"136":0.6834,"137":6.34173,"138":0.55914,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 124 125 126 128 130"},E:{"14":0.00478,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 26.0","14.1":0.00478,"15.5":0.00478,"15.6":0.55436,"16.0":0.01434,"16.1":0.02867,"16.2":0.00956,"16.3":0.00478,"16.4":0.01434,"16.5":0.12903,"16.6":0.23895,"17.0":0.00956,"17.1":0.32497,"17.2":0.00956,"17.3":0.10514,"17.4":0.08124,"17.5":0.10514,"17.6":0.2724,"18.0":0.02867,"18.1":0.1816,"18.2":0.05735,"18.3":0.78376,"18.4":0.23895,"18.5":3.13502},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00582,"5.0-5.1":0,"6.0-6.1":0.01164,"7.0-7.1":0.01164,"8.1-8.4":0,"9.0-9.2":0.00582,"9.3":0.03491,"10.0-10.2":0.00291,"10.3":0.05818,"11.0-11.2":0.37237,"11.3-11.4":0.02036,"12.0-12.1":0.00582,"12.2-12.5":0.19491,"13.0-13.1":0.00291,"13.2":0.00873,"13.3":0.00582,"13.4-13.7":0.032,"14.0-14.4":0.07564,"14.5-14.8":0.07564,"15.0-15.1":0.05236,"15.2-15.3":0.05236,"15.4":0.064,"15.5":0.06982,"15.6-15.8":0.90183,"16.0":0.11927,"16.1":0.24437,"16.2":0.12509,"16.3":0.22982,"16.4":0.05236,"16.5":0.09309,"16.6-16.7":1.13166,"17.0":0.06109,"17.1":0.10764,"17.2":0.08437,"17.3":0.11927,"17.4":0.21237,"17.5":0.4451,"17.6-17.7":1.16366,"18.0":0.288,"18.1":0.64874,"18.2":0.34328,"18.3":1.47493,"18.4":1.56512,"18.5":18.34795,"26.0":0},P:{"4":0.04155,"20":0.01039,"23":0.01039,"24":0.01039,"27":0.02077,"28":1.86967,_:"21 22 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","11.1-11.2":0.01039},I:{"0":0.00521,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.04177,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00956,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":20.81552},R:{_:"0"},M:{"0":0.66307},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"78":0.00894,"115":0.14298,"118":0.03574,"120":0.00447,"124":0.02234,"125":3.52972,"126":2.53782,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 121 122 123 127 128 129 3.5 3.6"},D:{"49":0.00447,"62":0.00447,"75":0.00447,"76":0.00447,"79":0.00894,"80":0.00447,"83":0.00447,"87":0.00894,"88":0.00894,"92":0.00447,"93":0.08489,"94":0.00447,"96":0.00447,"98":0.00447,"99":0.0134,"103":0.21,"109":0.37978,"111":0.08489,"112":0.00447,"113":0.0134,"114":0.00447,"115":0.01787,"116":0.55403,"117":0.03128,"118":0.0134,"119":0.04915,"120":0.35744,"121":0.10723,"122":0.2368,"123":1.34934,"124":12.32274,"125":3.84695,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 72 73 74 77 78 81 84 85 86 89 90 91 95 97 100 101 102 104 105 106 107 108 110 126 127 128"},F:{"82":0.00447,"95":0.03574,"107":0.15638,"108":0.03128,"109":0.30382,"110":0.01787,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00894,"18":0.00447,"104":0.01787,"109":0.20106,"118":0.00447,"120":0.05362,"121":0.02681,"122":0.03574,"123":0.35297,"124":5.87542,"125":2.72995,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 113 114 115 116 117 119"},E:{"14":0.12064,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 17.6","12.1":0.0134,"13.1":0.0134,"14.1":0.67914,"15.1":0.01787,"15.4":0.08042,"15.5":0.03574,"15.6":0.41552,"16.0":0.1117,"16.1":0.07596,"16.2":0.07596,"16.3":0.19659,"16.4":0.03128,"16.5":1.60848,"16.6":0.91594,"17.0":0.25021,"17.1":0.11617,"17.2":0.06702,"17.3":0.08042,"17.4":2.9176,"17.5":0.2368},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00547,"5.0-5.1":0.00547,"6.0-6.1":0.01368,"7.0-7.1":0.01915,"8.1-8.4":0.00547,"9.0-9.2":0.01368,"9.3":0.06293,"10.0-10.2":0.01094,"10.3":0.0985,"11.0-11.2":0.14501,"11.3-11.4":0.02736,"12.0-12.1":0.01642,"12.2-12.5":0.39673,"13.0-13.1":0.00821,"13.2":0.0383,"13.3":0.01915,"13.4-13.7":0.08755,"14.0-14.4":0.15048,"14.5-14.8":0.23257,"15.0-15.1":0.11218,"15.2-15.3":0.12312,"15.4":0.13954,"15.5":0.17511,"15.6-15.8":1.57598,"16.0":0.35842,"16.1":0.73874,"16.2":0.35842,"16.3":0.62109,"16.4":0.13133,"16.5":0.2654,"16.6-16.7":2.11498,"17.0":0.22983,"17.1":0.37484,"17.2":0.39126,"17.3":0.72232,"17.4":16.40273,"17.5":1.15736,"17.6":0},P:{"20":0.01083,"21":0.02166,"22":0.01083,"23":0.01083,"24":0.1733,"25":2.42615,_:"4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.10831,"13.0":0.01083,"19.0":0.03249},I:{"0":0.00551,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.02213,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04021,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.44791},R:{_:"0"},M:{"0":0.72482},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/VN.js b/node_modules/caniuse-lite/data/regions/VN.js index 5b9537554..93d0339eb 100644 --- a/node_modules/caniuse-lite/data/regions/VN.js +++ b/node_modules/caniuse-lite/data/regions/VN.js @@ -1 +1 @@ -module.exports={C:{"115":0.01843,"125":0.00922,"136":0.00461,"138":0.00461,"139":0.10598,"140":0.01382,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 137 141 142 143 3.5 3.6"},D:{"34":0.00461,"38":0.02765,"39":0.00461,"40":0.00461,"41":0.00461,"42":0.00461,"43":0.00461,"44":0.00461,"45":0.00461,"46":0.00461,"47":0.00461,"48":0.00461,"49":0.00461,"50":0.00461,"51":0.00461,"52":0.00461,"53":0.00461,"54":0.00461,"55":0.00461,"56":0.00461,"57":0.00461,"58":0.00461,"59":0.00461,"60":0.00461,"71":0.00461,"79":0.03686,"85":0.00461,"87":0.03686,"91":0.00461,"100":0.00461,"103":0.00461,"104":0.00461,"105":0.00461,"106":0.00461,"107":0.00461,"108":0.00922,"109":0.24422,"111":0.00461,"112":36.85478,"115":0.00461,"116":0.00922,"118":0.00461,"119":0.00461,"120":0.00922,"121":0.00922,"122":0.01382,"123":0.00461,"124":0.00922,"125":0.02304,"126":0.00922,"127":0.00922,"128":0.01382,"129":0.00922,"130":0.00922,"131":0.02765,"132":0.01843,"133":0.01843,"134":0.01843,"135":0.06451,"136":0.39168,"137":3.21638,"138":0.13363,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 80 81 83 84 86 88 89 90 92 93 94 95 96 97 98 99 101 102 110 113 114 117 139 140 141"},F:{"36":0.00922,"46":0.01382,"89":0.00922,"90":0.00461,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"131":0.01843,"134":0.00461,"135":0.00461,"136":0.06451,"137":0.42394,"138":0.03226,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133"},E:{"14":0.00461,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 17.0 17.3 26.0","13.1":0.00461,"14.1":0.01382,"15.1":0.00461,"15.4":0.00461,"15.5":0.00461,"15.6":0.0599,"16.0":0.00461,"16.1":0.00461,"16.2":0.00461,"16.3":0.00922,"16.4":0.00461,"16.5":0.00461,"16.6":0.05069,"17.1":0.02304,"17.2":0.00461,"17.4":0.00461,"17.5":0.00922,"17.6":0.02304,"18.0":0.00461,"18.1":0.00922,"18.2":0.00461,"18.3":0.01843,"18.4":0.01382,"18.5":0.15206},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00328,"5.0-5.1":0,"6.0-6.1":0.00657,"7.0-7.1":0.00657,"8.1-8.4":0,"9.0-9.2":0.00328,"9.3":0.0197,"10.0-10.2":0.00164,"10.3":0.03283,"11.0-11.2":0.21013,"11.3-11.4":0.01149,"12.0-12.1":0.00328,"12.2-12.5":0.10999,"13.0-13.1":0.00164,"13.2":0.00492,"13.3":0.00328,"13.4-13.7":0.01806,"14.0-14.4":0.04268,"14.5-14.8":0.04268,"15.0-15.1":0.02955,"15.2-15.3":0.02955,"15.4":0.03612,"15.5":0.0394,"15.6-15.8":0.50891,"16.0":0.06731,"16.1":0.1379,"16.2":0.07059,"16.3":0.12969,"16.4":0.02955,"16.5":0.05253,"16.6-16.7":0.63859,"17.0":0.03447,"17.1":0.06074,"17.2":0.04761,"17.3":0.06731,"17.4":0.11984,"17.5":0.25117,"17.6-17.7":0.65665,"18.0":0.16252,"18.1":0.36608,"18.2":0.19371,"18.3":0.83231,"18.4":0.8832,"18.5":10.35376,"26.0":0},P:{"4":0.18698,"20":0.01039,"21":0.03116,"22":0.04155,"23":0.04155,"24":0.04155,"25":0.11426,"26":0.15581,"27":0.1662,"28":1.20495,"5.0-5.4":0.01039,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.06233,"11.1-11.2":0.01039,"13.0":0.01039,"17.0":0.01039,"19.0":0.01039},I:{"0":0.01077,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.20493,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00922,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.18492},R:{_:"0"},M:{"0":0.05932},Q:{_:"14.9"},O:{"0":1.17028},H:{"0":0}}; +module.exports={C:{"47":0.00116,"52":0.00349,"54":0.00116,"59":0.00349,"68":0.00116,"72":0.00116,"78":0.00116,"88":0.00581,"101":0.00116,"102":0.00116,"103":0.00232,"105":0.00116,"106":0.00116,"107":0.00116,"108":0.00116,"109":0.00116,"111":0.00116,"113":0.00116,"115":0.04299,"118":0.00116,"121":0.00116,"123":0.00116,"124":0.00349,"125":0.10923,"126":0.08018,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 55 56 57 58 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 104 110 112 114 116 117 119 120 122 127 128 129 3.5 3.6"},D:{"11":0.00116,"21":0.00116,"22":0.00116,"26":0.00232,"34":0.01046,"38":0.03602,"41":0.00232,"43":0.00116,"47":0.00813,"49":0.01743,"50":0.00116,"53":0.00232,"54":0.00116,"55":0.00116,"56":0.00232,"57":0.00465,"58":0.00116,"61":0.00116,"65":0.00232,"66":0.01627,"67":0.00116,"68":0.00116,"69":0.00232,"70":0.00232,"71":0.00232,"72":0.00116,"73":0.00232,"74":0.00116,"75":0.00116,"76":0.00116,"77":0.00232,"78":0.00116,"79":0.07321,"80":0.00465,"81":0.00465,"83":0.00349,"84":0.00232,"85":0.01046,"86":0.00349,"87":0.04764,"88":0.00232,"89":0.00581,"90":0.00349,"91":0.00232,"92":0.00116,"93":0.00116,"94":0.00349,"95":0.00232,"96":0.00232,"97":0.00232,"98":0.00116,"99":0.00232,"100":0.00581,"101":0.00232,"102":0.00581,"103":0.01627,"104":0.00697,"105":0.00581,"106":0.01046,"107":0.00697,"108":0.01162,"109":0.65421,"110":0.00581,"111":0.00697,"112":0.00813,"113":0.00349,"114":0.0093,"115":0.0093,"116":0.02208,"117":0.01511,"118":0.0093,"119":0.02556,"120":0.03835,"121":0.0337,"122":0.06042,"123":0.1406,"124":4.02749,"125":1.57335,"126":0.00232,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 23 24 25 27 28 29 30 31 32 33 35 36 37 39 40 42 44 45 46 48 51 52 59 60 62 63 64 127 128"},F:{"28":0.00581,"29":0.00465,"36":0.0244,"40":0.00465,"46":0.03021,"79":0.00116,"82":0.00116,"85":0.00116,"95":0.00465,"107":0.01743,"108":0.00116,"109":0.10458,"110":0.00813,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00116,"17":0.00232,"18":0.00349,"84":0.00116,"92":0.00232,"100":0.00116,"105":0.00116,"107":0.00116,"108":0.00116,"109":0.00581,"110":0.00116,"111":0.00116,"114":0.00116,"115":0.00116,"116":0.00116,"117":0.00116,"118":0.00116,"119":0.00232,"120":0.00349,"121":0.00232,"122":0.00349,"123":0.01046,"124":0.41135,"125":0.23937,_:"12 13 14 15 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 106 112 113"},E:{"13":0.00465,"14":0.01859,"15":0.00349,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1 17.6","9.1":0.00349,"11.1":0.00465,"12.1":0.00116,"13.1":0.01627,"14.1":0.04648,"15.1":0.0093,"15.2-15.3":0.00465,"15.4":0.0093,"15.5":0.01627,"15.6":0.10574,"16.0":0.00697,"16.1":0.01394,"16.2":0.01046,"16.3":0.02556,"16.4":0.00813,"16.5":0.01278,"16.6":0.09296,"17.0":0.00581,"17.1":0.01046,"17.2":0.01046,"17.3":0.01511,"17.4":0.20451,"17.5":0.02208},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00462,"5.0-5.1":0.00462,"6.0-6.1":0.01155,"7.0-7.1":0.01617,"8.1-8.4":0.00462,"9.0-9.2":0.01155,"9.3":0.05314,"10.0-10.2":0.00924,"10.3":0.08317,"11.0-11.2":0.12244,"11.3-11.4":0.0231,"12.0-12.1":0.01386,"12.2-12.5":0.33499,"13.0-13.1":0.00693,"13.2":0.03234,"13.3":0.01617,"13.4-13.7":0.07393,"14.0-14.4":0.12706,"14.5-14.8":0.19637,"15.0-15.1":0.09472,"15.2-15.3":0.10396,"15.4":0.11782,"15.5":0.14786,"15.6-15.8":1.33071,"16.0":0.30264,"16.1":0.62377,"16.2":0.30264,"16.3":0.52443,"16.4":0.11089,"16.5":0.22409,"16.6-16.7":1.78583,"17.0":0.19406,"17.1":0.3165,"17.2":0.33037,"17.3":0.60991,"17.4":13.84997,"17.5":0.97724,"17.6":0},P:{"4":0.48325,"20":0.04113,"21":0.1131,"22":0.16451,"23":0.18508,"24":0.23648,"25":2.08724,"5.0-5.4":0.02056,"6.2-6.4":0.02056,"7.2-7.4":0.07197,_:"8.2 10.1","9.2":0.01028,"11.1-11.2":0.03085,"12.0":0.01028,"13.0":0.02056,"14.0":0.02056,"15.0":0.01028,"16.0":0.02056,"17.0":0.03085,"18.0":0.02056,"19.0":0.04113},I:{"0":0.01761,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.48377,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01859,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00884,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":57.75816},R:{_:"0"},M:{"0":0.08838},Q:{_:"14.9"},O:{"0":2.68675},H:{"0":0.02}}; diff --git a/node_modules/caniuse-lite/data/regions/VU.js b/node_modules/caniuse-lite/data/regions/VU.js index 12b08b2b4..4818a8582 100644 --- a/node_modules/caniuse-lite/data/regions/VU.js +++ b/node_modules/caniuse-lite/data/regions/VU.js @@ -1 +1 @@ -module.exports={C:{"45":0.00315,"115":0.02516,"132":0.00944,"137":0.11008,"138":0.01887,"139":0.55038,"140":0.03145,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 133 134 135 136 141 142 143 3.5 3.6"},D:{"39":0.00944,"42":0.01258,"44":0.00944,"45":0.01258,"46":0.01258,"47":0.00315,"51":0.00315,"54":0.01258,"55":0.00315,"59":0.00944,"60":0.00315,"63":0.00315,"75":0.00944,"78":0.00315,"81":0.00315,"84":0.00944,"94":0.00315,"103":0.00944,"109":0.16354,"110":0.00944,"111":0.11322,"112":0.05976,"114":0.07234,"116":0.20757,"117":0.00315,"119":0.00315,"120":0.0346,"122":0.15096,"123":0.00944,"124":0.04403,"125":0.05347,"126":0.24846,"128":0.00944,"130":0.00315,"131":0.12895,"132":0.04403,"133":0.13838,"134":0.05661,"135":0.31136,"136":1.55992,"137":11.25596,"138":0.29878,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 43 48 49 50 52 53 56 57 58 61 62 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 83 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 104 105 106 107 108 113 115 118 121 127 129 139 140 141"},F:{"89":0.01887,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00944,"90":0.01258,"92":0.00315,"101":0.00315,"106":0.01887,"117":0.00315,"119":0.00315,"122":0.00315,"130":0.00944,"131":0.01887,"132":0.00315,"133":0.00944,"134":0.22644,"135":0.03774,"136":0.74851,"137":3.97214,"138":0.16354,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 91 93 94 95 96 97 98 99 100 102 103 104 105 107 108 109 110 111 112 113 114 115 116 118 120 121 123 124 125 126 127 128 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 17.0 26.0","13.1":0.00944,"14.1":0.00315,"15.6":0.11008,"16.1":0.00315,"16.5":0.07234,"16.6":1.14164,"17.1":0.03145,"17.2":0.00944,"17.3":0.01887,"17.4":0.00944,"17.5":0.00315,"17.6":0.08177,"18.0":0.01887,"18.1":0.03774,"18.2":0.00315,"18.3":0.00315,"18.4":0.02202,"18.5":0.26104},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00147,"5.0-5.1":0,"6.0-6.1":0.00294,"7.0-7.1":0.00294,"8.1-8.4":0,"9.0-9.2":0.00147,"9.3":0.00883,"10.0-10.2":0.00074,"10.3":0.01471,"11.0-11.2":0.09415,"11.3-11.4":0.00515,"12.0-12.1":0.00147,"12.2-12.5":0.04928,"13.0-13.1":0.00074,"13.2":0.00221,"13.3":0.00147,"13.4-13.7":0.00809,"14.0-14.4":0.01912,"14.5-14.8":0.01912,"15.0-15.1":0.01324,"15.2-15.3":0.01324,"15.4":0.01618,"15.5":0.01765,"15.6-15.8":0.22802,"16.0":0.03016,"16.1":0.06179,"16.2":0.03163,"16.3":0.05811,"16.4":0.01324,"16.5":0.02354,"16.6-16.7":0.28613,"17.0":0.01545,"17.1":0.02722,"17.2":0.02133,"17.3":0.03016,"17.4":0.05369,"17.5":0.11254,"17.6-17.7":0.29422,"18.0":0.07282,"18.1":0.16403,"18.2":0.08679,"18.3":0.37292,"18.4":0.39572,"18.5":4.63906,"26.0":0},P:{"22":0.03068,"23":0.02045,"24":0.03068,"25":0.20453,"26":0.05113,"27":0.10226,"28":2.63839,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01023,"12.0":0.01023,"13.0":0.01023,"19.0":0.01023},I:{"0":0.03422,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.08597,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.38055,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.82441},R:{_:"0"},M:{"0":0.89801},Q:{"14.9":0.04113},O:{"0":0.19194},H:{"0":0.01}}; +module.exports={C:{"92":0.00109,"108":0.00218,"113":0.00109,"115":0.14157,"116":0.00109,"124":0.01089,"125":0.18404,"126":0.10454,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 114 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"59":0.00109,"65":0.00218,"67":0.00109,"68":0.00218,"81":0.00436,"87":0.00109,"88":0.05554,"89":0.00109,"90":0.00327,"92":0.00327,"94":0.00218,"97":0.00218,"99":0.00109,"102":0.00327,"103":0.01198,"106":0.00109,"108":0.00545,"109":0.13286,"110":0.00109,"111":0.0294,"112":0.17097,"115":0.00218,"116":0.01198,"117":0.01634,"118":0.00218,"119":0.01089,"120":0.01198,"121":0.00436,"122":0.08494,"123":0.14048,"124":2.97515,"125":0.99208,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 66 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 91 93 95 96 98 100 101 104 105 107 113 114 126 127 128"},F:{"107":0.00109,"109":0.04247,"110":0.00327,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00436,"15":0.00109,"16":0.00218,"18":0.01089,"84":0.00545,"92":0.00109,"96":0.00109,"100":0.00218,"102":0.00109,"105":0.00436,"106":0.00218,"107":0.00218,"109":0.00545,"113":0.01851,"114":0.00109,"116":0.00109,"117":0.00218,"118":0.00109,"119":0.00109,"120":0.00109,"121":0.00218,"122":0.02178,"123":0.05227,"124":0.74597,"125":0.42144,_:"12 14 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 97 98 99 101 103 104 108 110 111 112 115"},E:{"14":0.01525,"15":0.00327,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 15.5 16.0 16.2 17.6","14.1":0.00871,"15.1":0.00109,"15.6":0.01089,"16.1":0.00218,"16.3":0.00545,"16.4":0.00762,"16.5":0.00545,"16.6":0.01307,"17.0":0.00762,"17.1":0.06534,"17.2":0.01634,"17.3":0.01416,"17.4":0.10672,"17.5":0.05227},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00061,"5.0-5.1":0.00061,"6.0-6.1":0.00152,"7.0-7.1":0.00213,"8.1-8.4":0.00061,"9.0-9.2":0.00152,"9.3":0.00701,"10.0-10.2":0.00122,"10.3":0.01097,"11.0-11.2":0.01615,"11.3-11.4":0.00305,"12.0-12.1":0.00183,"12.2-12.5":0.04419,"13.0-13.1":0.00091,"13.2":0.00427,"13.3":0.00213,"13.4-13.7":0.00975,"14.0-14.4":0.01676,"14.5-14.8":0.02591,"15.0-15.1":0.0125,"15.2-15.3":0.01372,"15.4":0.01554,"15.5":0.01951,"15.6-15.8":0.17556,"16.0":0.03993,"16.1":0.08229,"16.2":0.03993,"16.3":0.06919,"16.4":0.01463,"16.5":0.02956,"16.6-16.7":0.2356,"17.0":0.0256,"17.1":0.04176,"17.2":0.04359,"17.3":0.08046,"17.4":1.82722,"17.5":0.12893,"17.6":0},P:{"4":0.02013,"20":0.02013,"21":0.18114,"22":0.10063,"23":0.23146,"24":0.38241,"25":0.81513,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 15.0","7.2-7.4":0.08051,"9.2":0.01006,"11.1-11.2":0.02013,"13.0":0.03019,"14.0":0.03019,"16.0":0.04025,"17.0":0.01006,"18.0":0.01006,"19.0":0.12076},I:{"0":0.05326,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.0613,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.01659,"11":0.00302,_:"6 7 8 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":87.60535},R:{_:"0"},M:{"0":0.03565},Q:{"14.9":0.08021},O:{"0":0.0713},H:{"0":0.01}}; diff --git a/node_modules/caniuse-lite/data/regions/WF.js b/node_modules/caniuse-lite/data/regions/WF.js index 44a2cf903..b5e4bf25d 100644 --- a/node_modules/caniuse-lite/data/regions/WF.js +++ b/node_modules/caniuse-lite/data/regions/WF.js @@ -1 +1 @@ -module.exports={C:{"115":0.03318,"128":0.26924,"139":0.77198,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 140 141 142 143 3.5 3.6"},D:{"39":0.03318,"56":0.03318,"109":0.03318,"123":0.06763,"129":0.03318,"133":0.06763,"136":0.03318,"137":0.83961,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 124 125 126 127 128 130 131 132 134 135 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"134":0.1008,"136":0.06763,"137":4.3652,"138":0.03318,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 17.0 17.2 17.3 17.4 17.6 18.0 18.3 26.0","14.1":0.1008,"15.1":0.16843,"15.2-15.3":0.03318,"16.5":0.03318,"16.6":0.50402,"17.1":0.638,"17.5":0.40322,"18.1":0.1008,"18.2":0.23478,"18.4":0.1008,"18.5":2.88759},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00463,"5.0-5.1":0,"6.0-6.1":0.00926,"7.0-7.1":0.00926,"8.1-8.4":0,"9.0-9.2":0.00463,"9.3":0.02779,"10.0-10.2":0.00232,"10.3":0.04632,"11.0-11.2":0.29648,"11.3-11.4":0.01621,"12.0-12.1":0.00463,"12.2-12.5":0.15519,"13.0-13.1":0.00232,"13.2":0.00695,"13.3":0.00463,"13.4-13.7":0.02548,"14.0-14.4":0.06022,"14.5-14.8":0.06022,"15.0-15.1":0.04169,"15.2-15.3":0.04169,"15.4":0.05096,"15.5":0.05559,"15.6-15.8":0.71803,"16.0":0.09497,"16.1":0.19456,"16.2":0.0996,"16.3":0.18298,"16.4":0.04169,"16.5":0.07412,"16.6-16.7":0.90101,"17.0":0.04864,"17.1":0.0857,"17.2":0.06717,"17.3":0.09497,"17.4":0.16908,"17.5":0.35438,"17.6-17.7":0.92649,"18.0":0.22931,"18.1":0.51652,"18.2":0.27331,"18.3":1.17432,"18.4":1.24613,"18.5":14.60841,"26.0":0},P:{"21":0.03095,"28":1.0421,_:"4 20 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.92156},R:{_:"0"},M:{"0":0.10469},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; +module.exports={C:{"78":0.38502,"102":0.23173,"115":0.54188,"124":0.38502,"125":7.40807,"126":0.46345,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 127 128 129 3.5 3.6"},D:{"105":0.07843,"109":3.78247,"122":0.31016,"123":0.54188,"124":5.09439,"125":1.0802,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 126 127 128"},F:{"109":1.23349,"110":1.15863,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"119":0.07843,"121":0.1533,"124":3.24059,"125":2.39212,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 120 122 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 13.1 14.1 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.1 17.2 17.3 17.6","12.1":0.07843,"15.1":1.54365,"15.2-15.3":0.07843,"15.6":0.07843,"16.6":0.23173,"17.0":0.07843,"17.4":3.31902,"17.5":0.46345},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00307,"5.0-5.1":0.00307,"6.0-6.1":0.00766,"7.0-7.1":0.01073,"8.1-8.4":0.00307,"9.0-9.2":0.00766,"9.3":0.03525,"10.0-10.2":0.00613,"10.3":0.05518,"11.0-11.2":0.08124,"11.3-11.4":0.01533,"12.0-12.1":0.0092,"12.2-12.5":0.22226,"13.0-13.1":0.0046,"13.2":0.02146,"13.3":0.01073,"13.4-13.7":0.04905,"14.0-14.4":0.0843,"14.5-14.8":0.13029,"15.0-15.1":0.06285,"15.2-15.3":0.06898,"15.4":0.07817,"15.5":0.0981,"15.6-15.8":0.8829,"16.0":0.2008,"16.1":0.41386,"16.2":0.2008,"16.3":0.34795,"16.4":0.07358,"16.5":0.14868,"16.6-16.7":1.18487,"17.0":0.12876,"17.1":0.21,"17.2":0.21919,"17.3":0.40466,"17.4":9.18924,"17.5":0.64838,"17.6":0},P:{"22":0.08282,"24":0.32094,"25":2.23625,_:"4 20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","7.2-7.4":0.08282,"18.0":0.08282},I:{"0":0.07692,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00017},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":46.89619},R:{_:"0"},M:{"0":0.2381},Q:{_:"14.9"},O:{_:"0"},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/WS.js b/node_modules/caniuse-lite/data/regions/WS.js index c797753a0..081656ea9 100644 --- a/node_modules/caniuse-lite/data/regions/WS.js +++ b/node_modules/caniuse-lite/data/regions/WS.js @@ -1 +1 @@ -module.exports={C:{"72":0.01463,"115":0.02195,"128":0.01463,"138":0.03658,"139":0.34385,"140":0.00732,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 141 142 143 3.5 3.6"},D:{"39":0.01463,"41":0.01463,"42":0.01463,"43":0.01463,"44":0.00732,"46":0.02195,"47":0.02195,"49":0.05121,"50":0.03658,"53":0.00732,"54":0.01463,"58":0.01463,"59":0.01463,"69":0.01463,"87":0.00732,"91":0.03658,"92":0.00732,"93":0.01463,"96":0.01463,"98":0.01463,"103":0.00732,"106":0.00732,"107":0.00732,"109":0.35117,"111":0.03658,"116":0.01463,"120":0.02926,"122":0.00732,"123":0.01463,"124":0.02926,"125":0.32922,"127":0.00732,"129":0.02195,"130":0.00732,"131":0.01463,"133":0.10242,"134":0.09511,"135":0.24143,"136":2.83861,"137":12.97127,"138":0.51212,"139":0.01463,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 45 48 51 52 55 56 57 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 94 95 97 99 100 101 102 104 105 108 110 112 113 114 115 117 118 119 121 126 128 132 140 141"},F:{"88":0.01463,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.05121,"106":0.00732,"109":0.03658,"113":0.01463,"122":0.00732,"123":0.02195,"127":0.00732,"129":0.02195,"130":0.01463,"131":0.00732,"132":0.02926,"133":0.01463,"134":0.06584,"135":0.19022,"136":1.37907,"137":7.49158,"138":0.59991,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 114 115 116 117 118 119 120 121 124 125 126 128"},E:{"14":0.03658,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 16.1 16.2 16.4 17.0 17.3 18.0 26.0","14.1":0.03658,"15.1":0.02926,"15.5":0.05121,"15.6":0.16095,"16.0":0.00732,"16.3":0.00732,"16.5":0.00732,"16.6":0.03658,"17.1":0.09511,"17.2":0.00732,"17.4":0.06584,"17.5":2.18748,"17.6":0.05853,"18.1":0.00732,"18.2":0.03658,"18.3":0.06584,"18.4":0.08048,"18.5":1.25469},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00241,"5.0-5.1":0,"6.0-6.1":0.00482,"7.0-7.1":0.00482,"8.1-8.4":0,"9.0-9.2":0.00241,"9.3":0.01446,"10.0-10.2":0.00121,"10.3":0.0241,"11.0-11.2":0.15426,"11.3-11.4":0.00844,"12.0-12.1":0.00241,"12.2-12.5":0.08075,"13.0-13.1":0.00121,"13.2":0.00362,"13.3":0.00241,"13.4-13.7":0.01326,"14.0-14.4":0.03133,"14.5-14.8":0.03133,"15.0-15.1":0.02169,"15.2-15.3":0.02169,"15.4":0.02651,"15.5":0.02892,"15.6-15.8":0.3736,"16.0":0.04941,"16.1":0.10123,"16.2":0.05182,"16.3":0.09521,"16.4":0.02169,"16.5":0.03857,"16.6-16.7":0.46881,"17.0":0.02531,"17.1":0.04459,"17.2":0.03495,"17.3":0.04941,"17.4":0.08798,"17.5":0.18439,"17.6-17.7":0.48207,"18.0":0.11931,"18.1":0.26875,"18.2":0.14221,"18.3":0.61102,"18.4":0.64838,"18.5":7.60101,"26.0":0},P:{"4":0.01028,"20":0.15417,"21":0.04111,"22":0.12333,"23":0.07194,"24":0.67833,"25":0.8325,"26":0.2775,"27":1.0175,"28":1.51083,_:"5.0-5.4 6.2-6.4 8.2 9.2 12.0 13.0 14.0 15.0 17.0","7.2-7.4":0.05139,"10.1":0.01028,"11.1-11.2":0.01028,"16.0":0.05139,"18.0":0.04111,"19.0":0.07194},I:{"0":0.10765,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":3.48865,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":44.89567},R:{_:"0"},M:{"0":1.09734},Q:{"14.9":0.03172},O:{"0":0.01269},H:{"0":0}}; +module.exports={C:{"93":0.01178,"102":0.00295,"115":0.03535,"121":0.98986,"123":0.01473,"125":0.19149,"126":0.13846,"127":0.00884,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 124 128 129 3.5 3.6"},D:{"49":0.01178,"76":0.00295,"77":0.04419,"79":0.00295,"80":0.01178,"81":0.00884,"84":0.01178,"88":0.01473,"91":0.02357,"93":0.01178,"94":0.00884,"97":0.00295,"99":0.00884,"101":0.01178,"103":0.06187,"105":0.01178,"106":0.01473,"107":0.02062,"108":0.00295,"109":1.16072,"110":0.06776,"111":0.01473,"112":0.00295,"114":0.21506,"115":0.02357,"116":0.10606,"117":0.01178,"118":0.00884,"119":0.01178,"120":0.01473,"121":0.02062,"122":0.3712,"123":0.3653,"124":8.93227,"125":2.59248,"126":0.00884,"127":0.02357,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 78 83 85 86 87 89 90 92 95 96 98 100 102 104 113 128"},F:{"109":0.13846,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.01473,"18":0.17676,"85":0.00295,"92":0.02357,"95":0.00295,"100":0.00295,"103":0.00884,"108":0.00295,"109":0.01473,"112":0.00295,"113":0.02357,"114":0.04124,"116":0.00295,"117":0.01178,"118":0.00295,"119":0.00884,"120":0.02062,"121":0.01473,"122":0.82488,"123":0.35941,"124":3.79739,"125":2.12407,_:"12 13 14 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 96 97 98 99 101 102 104 105 106 107 110 111 115"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 15.5 16.2 17.2 17.6","13.1":0.06481,"14.1":0.12668,"15.1":0.00295,"15.2-15.3":0.00884,"15.6":2.07104,"16.0":0.00295,"16.1":0.00295,"16.3":0.02946,"16.4":0.01473,"16.5":0.01473,"16.6":0.04419,"17.0":0.00884,"17.1":0.00884,"17.3":0.05597,"17.4":0.18265,"17.5":0.25925},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00268,"5.0-5.1":0.00268,"6.0-6.1":0.00671,"7.0-7.1":0.0094,"8.1-8.4":0.00268,"9.0-9.2":0.00671,"9.3":0.03087,"10.0-10.2":0.00537,"10.3":0.04833,"11.0-11.2":0.07115,"11.3-11.4":0.01342,"12.0-12.1":0.00805,"12.2-12.5":0.19464,"13.0-13.1":0.00403,"13.2":0.01879,"13.3":0.0094,"13.4-13.7":0.04296,"14.0-14.4":0.07383,"14.5-14.8":0.1141,"15.0-15.1":0.05504,"15.2-15.3":0.06041,"15.4":0.06846,"15.5":0.08591,"15.6-15.8":0.77321,"16.0":0.17585,"16.1":0.36244,"16.2":0.17585,"16.3":0.30472,"16.4":0.06443,"16.5":0.13021,"16.6-16.7":1.03766,"17.0":0.11276,"17.1":0.18391,"17.2":0.19196,"17.3":0.35439,"17.4":8.04755,"17.5":0.56783,"17.6":0},P:{"20":0.06283,"21":0.19898,"22":2.04213,"23":0.33512,"24":0.4189,"25":1.85363,_:"4 6.2-6.4 10.1 12.0 13.0 14.0 15.0 17.0","5.0-5.4":0.02094,"7.2-7.4":0.29323,"8.2":0.02094,"9.2":0.01047,"11.1-11.2":0.01047,"16.0":0.03142,"18.0":0.10472,"19.0":0.03142},I:{"0":0.14756,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.00009,"4.4":0,"4.4.3-4.4.4":0.00033},K:{"0":1.87636,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.64968},R:{_:"0"},M:{"0":0.13403},Q:{"14.9":0.02822},O:{"0":0.02116},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/YE.js b/node_modules/caniuse-lite/data/regions/YE.js index 6361f4004..3a7c6bd6c 100644 --- a/node_modules/caniuse-lite/data/regions/YE.js +++ b/node_modules/caniuse-lite/data/regions/YE.js @@ -1 +1 @@ -module.exports={C:{"47":0.0019,"99":0.0057,"110":0.0019,"115":0.03798,"128":0.01519,"129":0.0057,"135":0.0019,"137":0.0019,"138":0.0076,"139":0.34752,"140":0.03418,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 130 131 132 133 134 136 141 142 143 3.5 3.6"},D:{"33":0.0019,"39":0.0038,"40":0.01329,"41":0.0076,"42":0.0019,"43":0.0038,"44":0.0038,"45":0.0019,"46":0.0038,"47":0.0038,"48":0.0076,"49":0.0019,"50":0.0057,"51":0.0038,"52":0.0038,"53":0.0038,"54":0.0038,"55":0.0076,"56":0.0038,"57":0.0095,"58":0.09305,"59":0.0038,"60":0.0038,"67":0.0038,"68":0.0019,"69":0.0019,"70":0.02089,"71":0.0019,"72":0.0019,"73":0.0019,"74":0.0038,"77":0.0038,"79":0.01899,"80":0.0019,"81":0.0019,"83":0.01139,"85":0.0019,"86":0.0019,"87":0.0057,"88":0.0076,"89":0.0038,"90":0.0019,"91":0.0057,"93":0.0038,"94":0.0019,"95":0.0019,"96":0.0019,"97":0.0019,"98":0.0076,"102":0.0057,"103":0.0019,"104":0.0019,"105":0.0057,"106":0.07216,"107":0.0038,"108":0.01329,"109":0.25067,"110":0.0038,"111":0.0057,"113":0.0038,"114":0.01519,"115":0.0057,"116":0.0057,"118":0.0019,"119":0.03418,"120":0.0095,"121":0.0019,"122":0.0038,"123":0.03228,"124":0.01899,"125":0.04178,"126":0.0057,"127":0.0019,"128":0.01139,"129":0.02089,"130":0.01139,"131":0.04748,"132":0.07786,"133":0.02089,"134":0.01899,"135":0.08546,"136":0.3817,"137":2.59973,"138":0.15572,"139":0.0038,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 61 62 63 64 65 66 75 76 78 84 92 99 100 101 112 117 140 141"},F:{"84":0.08166,"85":0.0019,"87":0.0038,"88":0.02089,"89":0.1994,"90":0.13863,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 86 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0019,"16":0.0038,"17":0.0019,"18":0.0019,"92":0.01139,"109":0.0019,"110":0.0019,"114":0.0019,"122":0.0019,"124":0.0095,"131":0.0019,"132":0.0038,"133":0.0057,"134":0.0095,"135":0.0057,"136":0.23168,"137":0.40829,"138":0.04937,_:"12 13 15 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 119 120 121 123 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.5 18.0 18.1 18.2 18.4 26.0","5.1":0.02659,"14.1":0.03798,"15.2-15.3":0.0019,"15.6":0.0019,"16.6":0.01139,"17.4":0.0076,"17.6":0.01519,"18.3":0.0019,"18.5":0.02279},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00039,"5.0-5.1":0,"6.0-6.1":0.00078,"7.0-7.1":0.00078,"8.1-8.4":0,"9.0-9.2":0.00039,"9.3":0.00234,"10.0-10.2":0.0002,"10.3":0.0039,"11.0-11.2":0.02499,"11.3-11.4":0.00137,"12.0-12.1":0.00039,"12.2-12.5":0.01308,"13.0-13.1":0.0002,"13.2":0.00059,"13.3":0.00039,"13.4-13.7":0.00215,"14.0-14.4":0.00508,"14.5-14.8":0.00508,"15.0-15.1":0.00351,"15.2-15.3":0.00351,"15.4":0.0043,"15.5":0.00469,"15.6-15.8":0.06052,"16.0":0.008,"16.1":0.0164,"16.2":0.0084,"16.3":0.01542,"16.4":0.00351,"16.5":0.00625,"16.6-16.7":0.07595,"17.0":0.0041,"17.1":0.00722,"17.2":0.00566,"17.3":0.008,"17.4":0.01425,"17.5":0.02987,"17.6-17.7":0.07809,"18.0":0.01933,"18.1":0.04354,"18.2":0.02304,"18.3":0.09898,"18.4":0.10504,"18.5":1.23134,"26.0":0},P:{"4":0.05101,"20":0.0102,"21":0.0102,"22":0.0306,"23":0.06121,"24":0.0102,"25":0.0306,"26":0.06121,"27":0.07141,"28":0.87731,"5.0-5.4":0.0102,_:"6.2-6.4 8.2 10.1 12.0 18.0","7.2-7.4":0.04081,"9.2":0.0204,"11.1-11.2":0.09181,"13.0":0.08161,"14.0":0.06121,"15.0":0.0102,"16.0":0.09181,"17.0":0.0204,"19.0":0.0102},I:{"0":0.04044,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":2.76721,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0019,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":81.26303},R:{_:"0"},M:{"0":0.08911},Q:{_:"14.9"},O:{"0":4.0748},H:{"0":1.34}}; +module.exports={C:{"3":0.0151,"70":0.00336,"82":0.00168,"99":0.00168,"106":0.00168,"110":0.00168,"115":0.04363,"123":0.00839,"124":0.00168,"125":0.08054,"126":0.08558,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 107 108 109 111 112 113 114 116 117 118 119 120 121 122 127 128 129 3.5 3.6"},D:{"11":0.00168,"35":0.00336,"40":0.00168,"41":0.00839,"43":0.00168,"55":0.01342,"57":0.01007,"58":0.0151,"68":0.01342,"70":0.02181,"74":0.00168,"76":0.00336,"79":0.01678,"80":0.00168,"81":0.0151,"83":0.00503,"86":0.00168,"87":0.00336,"88":0.00168,"89":0.0151,"90":0.00503,"91":0.00168,"92":0.00503,"93":0.00168,"94":0.00671,"95":0.00168,"98":0.00168,"99":0.01007,"100":0.00336,"102":0.00168,"103":0.01007,"104":0.00168,"105":0.00168,"106":0.03524,"107":0.00168,"108":0.05873,"109":0.42118,"110":0.01342,"111":0.01007,"112":0.0151,"113":0.08054,"114":0.02517,"115":0.01175,"116":0.00336,"117":0.02014,"118":0.00839,"119":0.02685,"120":0.0302,"121":0.02349,"122":0.05034,"123":0.18122,"124":2.15455,"125":0.96149,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 42 44 45 46 47 48 49 50 51 52 53 54 56 59 60 61 62 63 64 65 66 67 69 71 72 73 75 77 78 84 85 96 97 101 126 127 128"},F:{"48":0.00336,"79":0.04866,"82":0.01342,"83":0.00168,"86":0.00168,"107":0.00168,"108":0.00168,"109":0.03692,"110":0.04027,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00168,"84":0.00168,"89":0.00168,"90":0.00168,"92":0.00336,"114":0.00168,"118":0.0151,"120":0.00336,"121":0.00503,"122":0.04195,"123":0.01007,"124":0.35909,"125":0.11746,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 119"},E:{"13":0.00168,"14":0.00168,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.4 16.0 16.2 16.4 17.1 17.6","5.1":0.02853,"15.2-15.3":0.00168,"15.5":0.01175,"15.6":0.00168,"16.1":0.00168,"16.3":0.00168,"16.5":0.00168,"16.6":0.0151,"17.0":0.00168,"17.2":0.00168,"17.3":0.01175,"17.4":0.02181,"17.5":0.00671},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00053,"5.0-5.1":0.00053,"6.0-6.1":0.00133,"7.0-7.1":0.00186,"8.1-8.4":0.00053,"9.0-9.2":0.00133,"9.3":0.00611,"10.0-10.2":0.00106,"10.3":0.00956,"11.0-11.2":0.01407,"11.3-11.4":0.00265,"12.0-12.1":0.00159,"12.2-12.5":0.03849,"13.0-13.1":0.0008,"13.2":0.00372,"13.3":0.00186,"13.4-13.7":0.0085,"14.0-14.4":0.0146,"14.5-14.8":0.02257,"15.0-15.1":0.01088,"15.2-15.3":0.01195,"15.4":0.01354,"15.5":0.01699,"15.6-15.8":0.15291,"16.0":0.03478,"16.1":0.07168,"16.2":0.03478,"16.3":0.06026,"16.4":0.01274,"16.5":0.02575,"16.6-16.7":0.20521,"17.0":0.0223,"17.1":0.03637,"17.2":0.03796,"17.3":0.07008,"17.4":1.5915,"17.5":0.11229,"17.6":0},P:{"4":0.07101,"20":0.01014,"21":0.08115,"22":0.03043,"23":0.12172,"24":0.30431,"25":0.7202,"5.0-5.4":0.02029,_:"6.2-6.4 7.2-7.4 8.2 10.1 12.0","9.2":0.03043,"11.1-11.2":0.09129,"13.0":0.05072,"14.0":0.17244,"15.0":0.02029,"16.0":0.20287,"17.0":0.03043,"18.0":0.02029,"19.0":0.06086},I:{"0":0.17408,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00038},K:{"0":7.25525,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00503,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":66.0808},R:{_:"0"},M:{"0":0.06658},Q:{_:"14.9"},O:{"0":7.88926},H:{"0":7.25}}; diff --git a/node_modules/caniuse-lite/data/regions/YT.js b/node_modules/caniuse-lite/data/regions/YT.js index accff92f3..278b5256a 100644 --- a/node_modules/caniuse-lite/data/regions/YT.js +++ b/node_modules/caniuse-lite/data/regions/YT.js @@ -1 +1 @@ -module.exports={C:{"78":0.0513,"91":0.0243,"102":0.2538,"115":0.0783,"120":0.0027,"121":0.0081,"128":0.324,"136":0.0243,"138":0.1161,"139":0.5832,"140":0.108,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 123 124 125 126 127 129 130 131 132 133 134 135 137 141 142 143 3.5 3.6"},D:{"39":0.0108,"40":0.0027,"41":0.0081,"43":0.0027,"44":0.0108,"45":0.0081,"46":0.0108,"49":0.0027,"50":0.0081,"51":0.0162,"52":0.0027,"53":0.0162,"55":0.0081,"56":0.0027,"57":0.0162,"58":0.0027,"59":0.0108,"69":0.0081,"73":0.0027,"79":0.1836,"81":0.0108,"83":0.1944,"91":0.0351,"97":0.0027,"99":0.0081,"102":0.0189,"103":0.0351,"104":0.0081,"109":0.0648,"111":0.0189,"113":0.1593,"114":0.0027,"116":0.0243,"117":0.0027,"118":0.0162,"119":0.0162,"120":0.162,"121":0.0027,"123":0.1161,"124":0.0027,"125":2.5434,"126":0.0162,"127":0.0027,"128":0.0405,"129":0.0027,"130":0.0324,"131":0.1269,"132":0.1242,"133":0.4671,"134":0.2106,"135":0.1458,"136":2.0979,"137":7.6869,"138":0.2052,"139":0.0027,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 42 47 48 54 60 61 62 63 64 65 66 67 68 70 71 72 74 75 76 77 78 80 84 85 86 87 88 89 90 92 93 94 95 96 98 100 101 105 106 107 108 110 112 115 122 140 141"},F:{"117":0.0108,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.0027,"92":0.0702,"100":0.0162,"109":0.0027,"112":0.0027,"114":0.0081,"124":0.0027,"127":0.0027,"129":0.0027,"130":0.0027,"131":0.0081,"132":0.0027,"133":0.0189,"134":0.0162,"135":0.0675,"136":1.1691,"137":3.8124,"138":0.3105,_:"12 13 14 15 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 119 120 121 122 123 125 126 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 13.1 14.1 15.1 15.5 16.0 16.2 16.3 16.4 17.1 17.4 26.0","11.1":0.0027,"12.1":0.0081,"15.2-15.3":0.0027,"15.4":0.0189,"15.6":0.0027,"16.1":0.0081,"16.5":0.0486,"16.6":0.405,"17.0":0.0108,"17.2":0.0189,"17.3":0.0027,"17.5":0.0324,"17.6":0.027,"18.0":0.0027,"18.1":0.0108,"18.2":0.0027,"18.3":0.0108,"18.4":0.1269,"18.5":0.5643},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0,"6.0-6.1":0.00232,"7.0-7.1":0.00232,"8.1-8.4":0,"9.0-9.2":0.00116,"9.3":0.00697,"10.0-10.2":0.00058,"10.3":0.01161,"11.0-11.2":0.07429,"11.3-11.4":0.00406,"12.0-12.1":0.00116,"12.2-12.5":0.03889,"13.0-13.1":0.00058,"13.2":0.00174,"13.3":0.00116,"13.4-13.7":0.00638,"14.0-14.4":0.01509,"14.5-14.8":0.01509,"15.0-15.1":0.01045,"15.2-15.3":0.01045,"15.4":0.01277,"15.5":0.01393,"15.6-15.8":0.17993,"16.0":0.0238,"16.1":0.04876,"16.2":0.02496,"16.3":0.04585,"16.4":0.01045,"16.5":0.01857,"16.6-16.7":0.22579,"17.0":0.01219,"17.1":0.02148,"17.2":0.01683,"17.3":0.0238,"17.4":0.04237,"17.5":0.08881,"17.6-17.7":0.23217,"18.0":0.05746,"18.1":0.12944,"18.2":0.06849,"18.3":0.29428,"18.4":0.31227,"18.5":3.66077,"26.0":0},P:{"4":0.40383,"21":0.01035,"22":0.13461,"24":0.19674,"25":0.25886,"26":0.17603,"27":0.17603,"28":1.66708,_:"20 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.19674,"16.0":0.06213,"19.0":0.01035},I:{"0":0.05102,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.39425,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.80263},R:{_:"0"},M:{"0":0.29934},Q:{_:"14.9"},O:{"0":0.0073},H:{"0":0}}; +module.exports={C:{"68":0.0448,"78":0.01493,"102":0.02613,"109":0.0112,"115":0.13439,"116":0.00373,"122":0.00373,"123":0.00373,"124":0.04853,"125":2.93414,"126":1.02284,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 113 114 117 118 119 120 121 127 128 129 3.5 3.6"},D:{"43":0.00747,"50":0.0112,"61":0.00373,"65":0.00747,"67":0.0224,"69":0.00747,"73":0.00747,"79":0.08213,"81":0.0112,"86":0.01867,"87":0.00373,"88":0.00373,"89":0.00373,"90":0.00747,"95":0.01867,"98":0.00373,"102":0.0112,"103":0.00747,"104":0.00373,"106":0.06346,"109":0.45169,"110":0.00373,"111":0.00373,"112":0.02986,"115":0.02613,"116":0.0224,"117":0.20158,"119":0.0112,"120":0.0336,"121":0.0336,"122":0.15679,"123":0.78393,"124":10.00817,"125":4.68865,"126":0.02986,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 60 62 63 64 66 68 70 71 72 74 75 76 77 78 80 83 84 85 91 92 93 94 96 97 99 100 101 105 107 108 113 114 118 127 128"},F:{"46":0.00373,"107":0.04106,"108":0.02613,"109":0.38823,"110":0.01867,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"84":0.00373,"92":0.02986,"96":0.00373,"100":0.0112,"105":0.07093,"109":0.01493,"114":0.04106,"115":0.00373,"119":0.21278,"120":0.0112,"121":0.0112,"122":0.0448,"123":0.18665,"124":3.24398,"125":2.05315,_:"12 13 14 15 16 17 18 79 80 81 83 85 86 87 88 89 90 91 93 94 95 97 98 99 101 102 103 104 106 107 108 110 111 112 113 116 117 118"},E:{"14":0.72047,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.5 17.6","12.1":0.00747,"13.1":0.02613,"14.1":0.09706,"15.2-15.3":0.0112,"15.4":0.08213,"15.6":1.538,"16.0":0.00373,"16.1":0.07093,"16.2":0.00373,"16.3":0.0336,"16.4":0.20905,"16.5":0.0112,"16.6":0.21651,"17.0":0.01493,"17.1":0.07466,"17.2":0.0336,"17.3":0.0336,"17.4":1.0751,"17.5":0.17172},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00257,"5.0-5.1":0.00257,"6.0-6.1":0.00643,"7.0-7.1":0.009,"8.1-8.4":0.00257,"9.0-9.2":0.00643,"9.3":0.02958,"10.0-10.2":0.00514,"10.3":0.0463,"11.0-11.2":0.06816,"11.3-11.4":0.01286,"12.0-12.1":0.00772,"12.2-12.5":0.18647,"13.0-13.1":0.00386,"13.2":0.018,"13.3":0.009,"13.4-13.7":0.04115,"14.0-14.4":0.07073,"14.5-14.8":0.10931,"15.0-15.1":0.05273,"15.2-15.3":0.05787,"15.4":0.06559,"15.5":0.0823,"15.6-15.8":0.74073,"16.0":0.16846,"16.1":0.34722,"16.2":0.16846,"16.3":0.29192,"16.4":0.06173,"16.5":0.12474,"16.6-16.7":0.99407,"17.0":0.10802,"17.1":0.17618,"17.2":0.1839,"17.3":0.3395,"17.4":7.7095,"17.5":0.54397,"17.6":0},P:{"4":0.07262,"20":0.0415,"21":0.25935,"22":0.17636,"23":0.17636,"24":0.44609,"25":2.27193,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 18.0","7.2-7.4":0.19711,"11.1-11.2":0.05187,"13.0":0.01037,"15.0":0.01037,"16.0":0.13486,"17.0":0.01037,"19.0":0.11412},I:{"0":0.03746,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.60444,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":49.9183},R:{_:"0"},M:{"0":0.22561},Q:{"14.9":0.0188},O:{"0":0.06894},H:{"0":0.11}}; diff --git a/node_modules/caniuse-lite/data/regions/ZA.js b/node_modules/caniuse-lite/data/regions/ZA.js index 32e1f10fc..64fd71ba7 100644 --- a/node_modules/caniuse-lite/data/regions/ZA.js +++ b/node_modules/caniuse-lite/data/regions/ZA.js @@ -1 +1 @@ -module.exports={C:{"34":0.01389,"52":0.00926,"59":0.00232,"78":0.00926,"91":0.00232,"113":0.00232,"115":0.0463,"127":0.00232,"128":0.01389,"132":0.00695,"134":0.00232,"135":0.00463,"136":0.00695,"137":0.00463,"138":0.02315,"139":0.36346,"140":0.05788,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 141 142 143 3.5 3.6"},D:{"39":0.00232,"40":0.00232,"41":0.00232,"42":0.00232,"43":0.00232,"44":0.00232,"45":0.00232,"46":0.00232,"47":0.00232,"48":0.00232,"49":0.00232,"50":0.00232,"51":0.00232,"52":0.02547,"53":0.00232,"54":0.00232,"55":0.00232,"56":0.00232,"57":0.00232,"58":0.00232,"59":0.00232,"60":0.00232,"65":0.00926,"66":0.01158,"69":0.00232,"70":0.00463,"71":0.01158,"73":0.00232,"74":0.00232,"75":0.00695,"78":0.00463,"79":0.00926,"81":0.00232,"86":0.00463,"87":0.01158,"88":0.00926,"90":0.00232,"91":0.00463,"92":0.00232,"94":0.00232,"95":0.00232,"98":0.49078,"99":0.00232,"100":0.00463,"102":0.00463,"103":0.00926,"104":0.00232,"106":0.00232,"107":0.00232,"108":0.00463,"109":0.33336,"110":0.00232,"111":0.01621,"113":0.01621,"114":0.03704,"116":0.02547,"117":0.00232,"118":0.00232,"119":0.01852,"120":0.01389,"121":0.01158,"122":0.02315,"123":0.01852,"124":0.02084,"125":0.55329,"126":0.02547,"127":0.00695,"128":0.0301,"129":0.00695,"130":0.01158,"131":0.11112,"132":0.09723,"133":0.11112,"134":0.05093,"135":0.09723,"136":1.20843,"137":6.82925,"138":0.22456,"139":0.00232,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 72 76 77 80 83 84 85 89 93 96 97 101 105 112 115 140 141"},F:{"46":0.00232,"84":0.00232,"85":0.00232,"86":0.00695,"87":0.00232,"88":0.00463,"89":0.08797,"90":0.03704,"95":0.02084,"109":0.00232,"113":0.00232,"114":0.00232,"117":0.00232,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00232,"15":0.00232,"17":0.00232,"18":0.00232,"84":0.00232,"92":0.00695,"100":0.00232,"109":0.01621,"114":0.00232,"118":0.01389,"122":0.00232,"124":0.00232,"126":0.00463,"127":0.00463,"128":0.00232,"129":0.00463,"130":0.00695,"131":0.00695,"132":0.00463,"133":0.02084,"134":0.02547,"135":0.02778,"136":0.36577,"137":1.97007,"138":0.12038,_:"13 14 16 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 123 125"},E:{"10":0.00232,"14":0.00232,"15":0.00232,_:"0 4 5 6 7 8 9 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 26.0","11.1":0.00232,"12.1":0.00232,"13.1":0.00695,"14.1":0.01158,"15.2-15.3":0.00232,"15.4":0.00232,"15.5":0.00695,"15.6":0.04167,"16.0":0.01158,"16.1":0.00463,"16.2":0.00232,"16.3":0.01158,"16.4":0.00463,"16.5":0.00463,"16.6":0.07408,"17.0":0.00232,"17.1":0.05788,"17.2":0.00463,"17.3":0.00926,"17.4":0.00695,"17.5":0.01158,"17.6":0.0463,"18.0":0.00463,"18.1":0.01389,"18.2":0.00695,"18.3":0.04399,"18.4":0.04167,"18.5":0.43059},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00196,"5.0-5.1":0,"6.0-6.1":0.00392,"7.0-7.1":0.00392,"8.1-8.4":0,"9.0-9.2":0.00196,"9.3":0.01176,"10.0-10.2":0.00098,"10.3":0.01959,"11.0-11.2":0.1254,"11.3-11.4":0.00686,"12.0-12.1":0.00196,"12.2-12.5":0.06564,"13.0-13.1":0.00098,"13.2":0.00294,"13.3":0.00196,"13.4-13.7":0.01078,"14.0-14.4":0.02547,"14.5-14.8":0.02547,"15.0-15.1":0.01763,"15.2-15.3":0.01763,"15.4":0.02155,"15.5":0.02351,"15.6-15.8":0.30371,"16.0":0.04017,"16.1":0.0823,"16.2":0.04213,"16.3":0.0774,"16.4":0.01763,"16.5":0.03135,"16.6-16.7":0.38111,"17.0":0.02057,"17.1":0.03625,"17.2":0.02841,"17.3":0.04017,"17.4":0.07152,"17.5":0.1499,"17.6-17.7":0.39188,"18.0":0.09699,"18.1":0.21848,"18.2":0.11561,"18.3":0.49671,"18.4":0.52708,"18.5":6.17903,"26.0":0},P:{"4":0.03037,"20":0.02024,"21":0.02024,"22":0.04049,"23":0.05061,"24":0.1822,"25":0.08098,"26":0.11135,"27":0.36441,"28":6.39735,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 13.0 15.0","7.2-7.4":0.17208,"11.1-11.2":0.02024,"12.0":0.01012,"14.0":0.02024,"16.0":0.01012,"17.0":0.02024,"18.0":0.01012,"19.0":0.03037},I:{"0":0.03068,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":3.14118,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00386,"11":0.00772,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.72398},R:{_:"0"},M:{"0":0.5302},Q:{"14.9":0.00768},O:{"0":0.30736},H:{"0":0.04}}; +module.exports={C:{"34":0.01208,"52":0.01812,"56":0.00201,"59":0.00403,"64":0.00201,"68":0.00201,"78":0.01007,"88":0.00805,"91":0.00201,"94":0.00201,"99":0.00201,"102":0.00201,"104":0.00201,"111":0.00201,"112":0.00201,"113":0.00403,"115":0.07649,"116":0.00201,"121":0.00201,"122":0.04227,"123":0.00604,"124":0.01208,"125":0.2476,"126":0.22546,"127":0.00201,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 60 61 62 63 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 95 96 97 98 100 101 103 105 106 107 108 109 110 114 117 118 119 120 128 129 3.5 3.6"},D:{"11":0.00201,"38":0.00201,"49":0.00201,"50":0.00403,"52":0.00805,"55":0.00201,"56":0.00403,"65":0.00403,"66":0.01812,"67":0.00403,"69":0.00201,"70":0.01208,"73":0.00201,"74":0.00604,"75":0.00201,"78":0.00403,"79":0.01007,"80":0.00201,"81":0.00201,"83":0.00201,"86":0.01409,"87":0.01208,"88":0.02818,"90":0.00201,"91":0.00403,"92":0.00403,"93":0.0302,"94":0.00403,"95":0.00403,"96":0.00201,"97":0.00403,"98":0.00403,"99":0.03825,"100":0.01409,"101":0.02013,"102":0.01409,"103":0.02617,"104":0.01409,"105":0.00201,"106":0.00403,"107":0.00403,"108":0.00403,"109":0.57773,"110":0.00403,"111":0.01007,"112":0.00604,"113":0.01812,"114":0.03623,"115":0.00604,"116":0.06039,"117":0.01208,"118":0.01007,"119":0.02818,"120":0.04026,"121":0.03221,"122":0.08656,"123":0.32007,"124":6.51608,"125":3.27314,"126":0.00403,"127":0.00201,_:"4 5 6 7 8 9 10 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 39 40 41 42 43 44 45 46 47 48 51 53 54 57 58 59 60 61 62 63 64 68 71 72 76 77 84 85 89 128"},F:{"28":0.00403,"79":0.00201,"95":0.01007,"102":0.00201,"107":0.04227,"108":0.00604,"109":0.25968,"110":0.02013,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00403,"13":0.00201,"14":0.00201,"15":0.00201,"16":0.00201,"17":0.00403,"18":0.00805,"84":0.00201,"90":0.00201,"91":0.00201,"92":0.00805,"100":0.00403,"107":0.00201,"109":0.02416,"110":0.00201,"111":0.00201,"112":0.00201,"113":0.00201,"114":0.00201,"115":0.00201,"116":0.00604,"117":0.00201,"118":0.02818,"119":0.00403,"120":0.00805,"121":0.01208,"122":0.02617,"123":0.05838,"124":1.43728,"125":0.81728,_:"79 80 81 83 85 86 87 88 89 93 94 95 96 97 98 99 101 102 103 104 105 106 108"},E:{"13":0.00201,"14":0.00805,"15":0.00201,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00403,"12.1":0.00403,"13.1":0.02013,"14.1":0.02416,"15.1":0.00604,"15.2-15.3":0.00604,"15.4":0.00604,"15.5":0.01007,"15.6":0.08052,"16.0":0.02416,"16.1":0.01007,"16.2":0.01208,"16.3":0.03623,"16.4":0.01409,"16.5":0.02013,"16.6":0.11877,"17.0":0.01208,"17.1":0.02818,"17.2":0.02214,"17.3":0.03221,"17.4":0.41669,"17.5":0.06039},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00195,"5.0-5.1":0.00195,"6.0-6.1":0.00488,"7.0-7.1":0.00683,"8.1-8.4":0.00195,"9.0-9.2":0.00488,"9.3":0.02245,"10.0-10.2":0.0039,"10.3":0.03514,"11.0-11.2":0.05173,"11.3-11.4":0.00976,"12.0-12.1":0.00586,"12.2-12.5":0.14152,"13.0-13.1":0.00293,"13.2":0.01366,"13.3":0.00683,"13.4-13.7":0.03123,"14.0-14.4":0.05368,"14.5-14.8":0.08296,"15.0-15.1":0.04002,"15.2-15.3":0.04392,"15.4":0.04978,"15.5":0.06246,"15.6-15.8":0.56218,"16.0":0.12786,"16.1":0.26352,"16.2":0.12786,"16.3":0.22155,"16.4":0.04685,"16.5":0.09467,"16.6-16.7":0.75446,"17.0":0.08198,"17.1":0.13371,"17.2":0.13957,"17.3":0.25767,"17.4":5.85119,"17.5":0.41285,"17.6":0},P:{"4":0.12212,"20":0.05088,"21":0.12212,"22":0.15265,"23":0.31549,"24":0.60044,"25":6.18761,_:"5.0-5.4 6.2-6.4 8.2 10.1","7.2-7.4":0.30531,"9.2":0.01018,"11.1-11.2":0.03053,"12.0":0.02035,"13.0":0.01018,"14.0":0.03053,"15.0":0.01018,"16.0":0.03053,"17.0":0.04071,"18.0":0.03053,"19.0":0.12212},I:{"0":0.02387,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":3.40025,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0302,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.37448},R:{_:"0"},M:{"0":0.4313},Q:{_:"14.9"},O:{"0":0.35143},H:{"0":0.13}}; diff --git a/node_modules/caniuse-lite/data/regions/ZM.js b/node_modules/caniuse-lite/data/regions/ZM.js index c3b658ff4..9874d80c1 100644 --- a/node_modules/caniuse-lite/data/regions/ZM.js +++ b/node_modules/caniuse-lite/data/regions/ZM.js @@ -1 +1 @@ -module.exports={C:{"112":0.00211,"115":0.02957,"125":0.00211,"127":0.00422,"128":0.01056,"130":0.00211,"133":0.00211,"134":0.00845,"135":0.00211,"136":0.00422,"137":0.00422,"138":0.02534,"139":0.27667,"140":0.03802,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 129 131 132 141 142 143 3.5 3.6"},D:{"20":0.01056,"26":0.00211,"32":0.00211,"38":0.00211,"43":0.00211,"44":0.00211,"46":0.00211,"47":0.00211,"48":0.00211,"49":0.00211,"50":0.00211,"51":0.00211,"52":0.00211,"53":0.00211,"54":0.00211,"55":0.00211,"56":0.00211,"57":0.00211,"58":0.00634,"59":0.00211,"60":0.00211,"63":0.00211,"64":0.00634,"65":0.00211,"66":0.00634,"68":0.01056,"69":0.00845,"70":0.01267,"71":0.00211,"72":0.00211,"73":0.00634,"74":0.00211,"75":0.00634,"77":0.00422,"79":0.01267,"80":0.00211,"81":0.00634,"83":0.01056,"86":0.00211,"87":0.00634,"88":0.00211,"91":0.00422,"92":0.00211,"93":0.00845,"94":0.00422,"95":0.00211,"96":0.00211,"97":0.00422,"98":0.00422,"99":0.00211,"100":0.00211,"102":0.00211,"103":0.02112,"105":0.00422,"106":0.0169,"108":0.00422,"109":0.26611,"110":0.00211,"111":0.01267,"112":0.00422,"113":0.00634,"114":0.00422,"115":0.00422,"116":0.02323,"117":0.01056,"118":0.01056,"119":0.03168,"120":0.01056,"121":0.00422,"122":0.01056,"123":0.01478,"124":0.10982,"125":0.28301,"126":0.02112,"127":0.01056,"128":0.01478,"129":0.00845,"130":0.00845,"131":0.04858,"132":0.01901,"133":0.03168,"134":0.02746,"135":0.08237,"136":0.65683,"137":3.75091,"138":0.16262,"139":0.00211,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 27 28 29 30 31 33 34 35 36 37 39 40 41 42 45 61 62 67 76 78 84 85 89 90 101 104 107 140 141"},F:{"20":0.00211,"34":0.00422,"35":0.00211,"42":0.00211,"46":0.00422,"67":0.00634,"72":0.00211,"73":0.00422,"79":0.0169,"85":0.00211,"86":0.00211,"87":0.00634,"88":0.00634,"89":0.05069,"90":0.03802,"95":0.02323,"113":0.00422,"114":0.00211,"115":0.00211,"116":0.00211,"117":0.01056,_:"9 11 12 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 36 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 74 75 76 77 78 80 81 82 83 84 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00634,"13":0.01056,"14":0.00211,"15":0.00422,"16":0.00422,"17":0.00845,"18":0.02534,"84":0.00422,"89":0.00422,"90":0.01478,"92":0.07181,"100":0.02746,"101":0.00211,"108":0.00211,"109":0.01478,"111":0.00211,"112":0.00211,"114":0.00211,"116":0.00211,"120":0.00422,"122":0.01056,"124":0.00422,"125":0.00634,"126":0.00634,"127":0.00845,"128":0.00845,"129":0.00845,"130":0.00422,"131":0.02323,"132":0.01478,"133":0.01901,"134":0.02323,"135":0.02957,"136":0.28723,"137":1.28621,"138":0.07814,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 102 103 104 105 106 107 110 113 115 117 118 119 121 123"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 9.1 10.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.4 17.0 17.2 26.0","7.1":0.00422,"11.1":0.00211,"12.1":0.00422,"13.1":0.00422,"14.1":0.00422,"15.6":0.02746,"16.2":0.00211,"16.3":0.00211,"16.5":0.00211,"16.6":0.0169,"17.1":0.02112,"17.3":0.00211,"17.4":0.00422,"17.5":0.00211,"17.6":0.0169,"18.0":0.00211,"18.1":0.00422,"18.2":0.00422,"18.3":0.01478,"18.4":0.00634,"18.5":0.11194},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00112,"5.0-5.1":0,"6.0-6.1":0.00225,"7.0-7.1":0.00225,"8.1-8.4":0,"9.0-9.2":0.00112,"9.3":0.00674,"10.0-10.2":0.00056,"10.3":0.01123,"11.0-11.2":0.07189,"11.3-11.4":0.00393,"12.0-12.1":0.00112,"12.2-12.5":0.03763,"13.0-13.1":0.00056,"13.2":0.00168,"13.3":0.00112,"13.4-13.7":0.00618,"14.0-14.4":0.0146,"14.5-14.8":0.0146,"15.0-15.1":0.01011,"15.2-15.3":0.01011,"15.4":0.01236,"15.5":0.01348,"15.6-15.8":0.1741,"16.0":0.02303,"16.1":0.04718,"16.2":0.02415,"16.3":0.04437,"16.4":0.01011,"16.5":0.01797,"16.6-16.7":0.21847,"17.0":0.01179,"17.1":0.02078,"17.2":0.01629,"17.3":0.02303,"17.4":0.041,"17.5":0.08593,"17.6-17.7":0.22465,"18.0":0.0556,"18.1":0.12524,"18.2":0.06627,"18.3":0.28474,"18.4":0.30215,"18.5":3.54217,"26.0":0},P:{"4":0.02056,"21":0.01028,"22":0.01028,"23":0.01028,"24":0.1028,"25":0.12336,"26":0.0514,"27":0.13364,"28":0.65794,_:"20 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01028,"7.2-7.4":0.06168,"9.2":0.02056,"11.1-11.2":0.01028,"17.0":0.02056,"19.0":0.01028},I:{"0":0.063,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":13.0628,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00634,"10":0.00634,"11":0.00634,_:"6 7 9 5.5"},S:{"2.5":0.01578,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":67.33645},R:{_:"0"},M:{"0":0.17354},Q:{"14.9":0.00789},O:{"0":0.70203},H:{"0":1.53}}; +module.exports={C:{"31":0.00146,"34":0.00146,"49":0.0102,"56":0.00729,"72":0.00146,"78":0.00146,"85":0.00146,"98":0.00146,"103":0.00583,"110":0.00146,"111":0.00146,"112":0.00146,"114":0.00583,"115":0.05245,"118":0.00146,"119":0.00146,"121":0.00583,"122":0.00146,"123":0.00729,"124":0.01603,"125":0.24478,"126":0.1763,"127":0.00146,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 104 105 106 107 108 109 113 116 117 120 128 129 3.5 3.6"},D:{"11":0.00291,"33":0.00146,"34":0.00146,"38":0.00146,"46":0.00291,"49":0.00583,"50":0.00146,"51":0.00146,"53":0.00291,"55":0.00146,"56":0.00146,"57":0.00146,"58":0.00146,"59":0.00146,"61":0.00146,"63":0.00146,"64":0.00583,"66":0.00146,"67":0.00146,"68":0.00729,"69":0.00874,"70":0.00291,"71":0.00146,"72":0.00146,"73":0.00291,"74":0.00291,"75":0.00437,"76":0.00146,"77":0.00874,"78":0.00146,"79":0.00729,"80":0.00291,"81":0.00437,"83":0.01166,"84":0.00146,"85":0.00146,"86":0.0102,"87":0.01457,"88":0.02186,"90":0.00291,"91":0.00437,"92":0.00437,"93":0.01748,"94":0.0102,"95":0.00583,"96":0.00146,"97":0.00291,"98":0.00291,"99":0.00291,"100":0.00146,"102":0.02186,"103":0.0204,"104":0.00146,"105":0.00437,"106":0.01166,"107":0.00729,"108":0.0102,"109":0.54638,"110":0.00146,"111":0.0102,"112":0.00437,"113":0.00583,"114":0.00874,"115":0.00583,"116":0.03351,"117":0.01457,"118":0.00874,"119":0.03351,"120":0.02768,"121":0.02623,"122":0.07139,"123":0.24478,"124":3.36713,"125":1.21805,"126":0.00437,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 35 36 37 39 40 41 42 43 44 45 47 48 52 54 60 62 65 89 101 127 128"},F:{"20":0.00729,"34":0.00146,"35":0.00291,"36":0.00146,"42":0.00291,"46":0.00146,"57":0.00146,"75":0.00291,"79":0.01166,"82":0.00437,"83":0.00146,"89":0.00583,"90":0.00291,"93":0.00437,"95":0.03934,"100":0.00146,"101":0.00146,"102":0.00146,"104":0.00291,"106":0.00291,"107":0.01457,"108":0.01603,"109":0.4269,"110":0.06265,_:"9 11 12 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 84 85 86 87 88 91 92 94 96 97 98 99 103 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01894,"13":0.00874,"14":0.00583,"15":0.00729,"16":0.00583,"17":0.00729,"18":0.04371,"83":0.00146,"84":0.00437,"86":0.00146,"89":0.00729,"90":0.0102,"92":0.04225,"100":0.01457,"101":0.00146,"107":0.00146,"109":0.02331,"110":0.00146,"111":0.00146,"112":0.00291,"113":0.00146,"114":0.01457,"115":0.00583,"116":0.00437,"117":0.00437,"118":0.00729,"119":0.051,"120":0.01748,"121":0.01457,"122":0.0408,"123":0.08159,"124":1.14957,"125":0.50849,_:"79 80 81 85 87 88 91 93 94 95 96 97 98 99 102 103 104 105 106 108"},E:{"13":0.01166,"14":0.00146,"15":0.00146,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 17.6","5.1":0.00146,"7.1":0.00146,"13.1":0.02914,"14.1":0.02331,"15.5":0.00146,"15.6":0.02186,"16.1":0.00146,"16.2":0.00146,"16.3":0.00583,"16.4":0.00146,"16.5":0.00437,"16.6":0.02768,"17.0":0.00146,"17.1":0.00583,"17.2":0.0204,"17.3":0.01894,"17.4":0.07285,"17.5":0.01311},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00106,"5.0-5.1":0.00106,"6.0-6.1":0.00266,"7.0-7.1":0.00373,"8.1-8.4":0.00106,"9.0-9.2":0.00266,"9.3":0.01224,"10.0-10.2":0.00213,"10.3":0.01916,"11.0-11.2":0.02821,"11.3-11.4":0.00532,"12.0-12.1":0.00319,"12.2-12.5":0.07718,"13.0-13.1":0.0016,"13.2":0.00745,"13.3":0.00373,"13.4-13.7":0.01703,"14.0-14.4":0.02928,"14.5-14.8":0.04524,"15.0-15.1":0.02182,"15.2-15.3":0.02395,"15.4":0.02715,"15.5":0.03407,"15.6-15.8":0.3066,"16.0":0.06973,"16.1":0.14372,"16.2":0.06973,"16.3":0.12083,"16.4":0.02555,"16.5":0.05163,"16.6-16.7":0.41146,"17.0":0.04471,"17.1":0.07292,"17.2":0.07612,"17.3":0.14052,"17.4":3.19109,"17.5":0.22516,"17.6":0},P:{"4":0.132,"20":0.01015,"21":0.05077,"22":0.07108,"23":0.07108,"24":0.21323,"25":0.55846,"5.0-5.4":0.02031,"6.2-6.4":0.02031,"7.2-7.4":0.11169,_:"8.2 10.1 12.0 14.0 15.0","9.2":0.03046,"11.1-11.2":0.01015,"13.0":0.01015,"16.0":0.03046,"17.0":0.02031,"18.0":0.01015,"19.0":0.03046},I:{"0":0.11064,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00007,"4.4":0,"4.4.3-4.4.4":0.00024},K:{"0":14.45918,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00379,"10":0.00758,"11":0.04546,_:"6 7 8 5.5"},S:{"2.5":0.00854,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":64.42329},R:{_:"0"},M:{"0":0.0769},Q:{"14.9":0.01709},O:{"0":0.88858},H:{"0":3.15}}; diff --git a/node_modules/caniuse-lite/data/regions/ZW.js b/node_modules/caniuse-lite/data/regions/ZW.js index c362c035e..4254121d8 100644 --- a/node_modules/caniuse-lite/data/regions/ZW.js +++ b/node_modules/caniuse-lite/data/regions/ZW.js @@ -1 +1 @@ -module.exports={C:{"47":0.00299,"102":0.00299,"107":0.00299,"112":0.00597,"115":0.06271,"121":0.00299,"124":0.00299,"127":0.00896,"128":0.01493,"129":0.00299,"133":0.00299,"134":0.00299,"135":0.01194,"136":0.01194,"137":0.01792,"138":0.05375,"139":0.97941,"140":0.11645,"141":0.00299,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 108 109 110 111 113 114 116 117 118 119 120 122 123 125 126 130 131 132 142 143 3.5 3.6"},D:{"11":0.00299,"29":0.00299,"39":0.00299,"40":0.00299,"41":0.00597,"42":0.00299,"43":0.00597,"44":0.00299,"45":0.00299,"46":0.00597,"47":0.00299,"48":0.00299,"49":0.00597,"50":0.00299,"51":0.00299,"52":0.00299,"53":0.00299,"54":0.00597,"55":0.00299,"56":0.00299,"57":0.00299,"58":0.00597,"59":0.00299,"60":0.00299,"63":0.01493,"64":0.00597,"65":0.00299,"67":0.00299,"68":0.00299,"69":0.00299,"70":0.01194,"71":0.00299,"74":0.00299,"75":0.00299,"76":0.00597,"78":0.00299,"79":0.02389,"80":0.00597,"81":0.00597,"83":0.00597,"86":0.00597,"87":0.01493,"88":0.00896,"89":0.00299,"90":0.00597,"91":0.00896,"93":0.00597,"94":0.00299,"95":0.00896,"96":0.00299,"98":0.00597,"99":0.00299,"100":0.00299,"102":0.00299,"103":0.03285,"104":0.01493,"105":0.00896,"108":0.00597,"109":0.36728,"110":0.00597,"111":0.03882,"112":0.00299,"114":0.03583,"115":0.00299,"116":0.0418,"117":0.00299,"118":0.01493,"119":0.02687,"120":0.03285,"121":0.01493,"122":0.02389,"123":0.00597,"124":0.00896,"125":0.68081,"126":0.03882,"127":0.0209,"128":0.05375,"129":0.03285,"130":0.0418,"131":0.06868,"132":0.08361,"133":0.07764,"134":0.08659,"135":0.15229,"136":1.66022,"137":9.10431,"138":0.37325,"139":0.00299,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 66 72 73 77 84 85 92 97 101 106 107 113 140 141"},F:{"34":0.00299,"36":0.00299,"42":0.00597,"60":0.00299,"74":0.00597,"76":0.00299,"77":0.00299,"79":0.00896,"87":0.00299,"88":0.00597,"89":0.03882,"90":0.01792,"95":0.04479,"108":0.02389,"109":0.00299,"110":0.00299,"113":0.00299,"114":0.00299,"115":0.00299,"116":0.00299,"117":0.01194,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 75 78 80 81 82 83 84 85 86 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01194,"13":0.01493,"14":0.00597,"15":0.01792,"16":0.00896,"17":0.00597,"18":0.06271,"84":0.01194,"89":0.01194,"90":0.02986,"91":0.00299,"92":0.1284,"100":0.0209,"104":0.00299,"107":0.00299,"109":0.01493,"111":0.00597,"112":0.00896,"113":0.00299,"114":0.00299,"116":0.00299,"120":0.00299,"121":0.00299,"122":0.02986,"123":0.00299,"124":0.00597,"125":0.00896,"126":0.01194,"127":0.00896,"128":0.00299,"129":0.00597,"130":0.01493,"131":0.02687,"132":0.03882,"133":0.06271,"134":0.06271,"135":0.08958,"136":0.79129,"137":3.74146,"138":0.24187,_:"79 80 81 83 85 86 87 88 93 94 95 96 97 98 99 101 102 103 105 106 108 110 115 117 118 119"},E:{"14":0.00597,"15":0.00299,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 15.1 15.2-15.3 16.0 16.2 17.0 26.0","9.1":0.00597,"11.1":0.00299,"12.1":0.00597,"13.1":0.00896,"14.1":0.08361,"15.4":0.00299,"15.5":0.00299,"15.6":0.04479,"16.1":0.00896,"16.3":0.00299,"16.4":0.00896,"16.5":0.00299,"16.6":0.02687,"17.1":0.01194,"17.2":0.00299,"17.3":0.00597,"17.4":0.0209,"17.5":0.0209,"17.6":0.05375,"18.0":0.01792,"18.1":0.0209,"18.2":0.01792,"18.3":0.04479,"18.4":0.03882,"18.5":0.56435},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0,"6.0-6.1":0.0021,"7.0-7.1":0.0021,"8.1-8.4":0,"9.0-9.2":0.00105,"9.3":0.0063,"10.0-10.2":0.00052,"10.3":0.01049,"11.0-11.2":0.06716,"11.3-11.4":0.00367,"12.0-12.1":0.00105,"12.2-12.5":0.03516,"13.0-13.1":0.00052,"13.2":0.00157,"13.3":0.00105,"13.4-13.7":0.00577,"14.0-14.4":0.01364,"14.5-14.8":0.01364,"15.0-15.1":0.00944,"15.2-15.3":0.00944,"15.4":0.01154,"15.5":0.01259,"15.6-15.8":0.16266,"16.0":0.02151,"16.1":0.04408,"16.2":0.02256,"16.3":0.04145,"16.4":0.00944,"16.5":0.01679,"16.6-16.7":0.20412,"17.0":0.01102,"17.1":0.01941,"17.2":0.01522,"17.3":0.02151,"17.4":0.0383,"17.5":0.08028,"17.6-17.7":0.20989,"18.0":0.05195,"18.1":0.11701,"18.2":0.06192,"18.3":0.26603,"18.4":0.2823,"18.5":3.30942,"26.0":0},P:{"4":0.0205,"20":0.01025,"21":0.041,"22":0.041,"23":0.0205,"24":0.16401,"25":0.14351,"26":0.0615,"27":0.56379,"28":1.67088,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0","7.2-7.4":0.09226,"16.0":0.0205,"17.0":0.01025,"18.0":0.01025,"19.0":0.041},I:{"0":0.55324,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00011,"4.4":0,"4.4.3-4.4.4":0.00044},K:{"0":4.99095,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00299,"10":0.00299,"11":0.00896,_:"6 7 8 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":61.49493},R:{_:"0"},M:{"0":0.16135},Q:{"14.9":0.07015},O:{"0":0.72956},H:{"0":0.13}}; +module.exports={C:{"7":0.00272,"36":0.00272,"37":0.00815,"52":0.00272,"72":0.00272,"87":0.00544,"88":0.01087,"94":0.00544,"97":0.00272,"99":0.00815,"102":0.01631,"106":0.04892,"107":0.00815,"108":0.00272,"112":0.00272,"113":0.01631,"115":0.18754,"116":0.00272,"118":0.00544,"119":0.00544,"120":0.00815,"121":0.01087,"122":0.00544,"123":0.01903,"124":0.0299,"125":0.70124,"126":0.55175,"127":0.01087,_:"2 3 4 5 6 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 89 90 91 92 93 95 96 98 100 101 103 104 105 109 110 111 114 117 128 129 3.5 3.6"},D:{"11":0.01359,"47":0.00272,"49":0.04077,"59":0.00272,"60":0.00272,"63":0.01631,"64":0.00815,"65":0.00272,"67":0.00272,"68":0.00815,"69":0.01087,"70":0.01087,"71":0.00272,"72":0.00272,"73":0.00272,"74":0.01359,"75":0.00272,"76":0.01359,"77":0.00272,"78":0.00272,"79":0.05164,"80":0.01087,"81":0.00544,"83":0.01631,"84":0.00272,"85":0.00272,"86":0.00815,"87":0.01631,"88":0.00815,"89":0.00544,"90":0.00544,"91":0.00272,"92":0.00815,"93":0.01087,"94":0.02446,"95":0.00272,"96":0.00272,"97":0.00272,"98":0.03262,"99":0.01359,"100":0.00272,"102":0.01903,"103":0.0299,"104":0.0299,"105":0.00272,"106":0.00815,"107":0.01087,"108":0.01087,"109":0.93771,"110":0.00815,"111":0.01087,"112":0.00815,"113":0.01359,"114":0.03805,"115":0.00815,"116":0.04892,"117":0.01359,"118":0.01903,"119":0.0598,"120":0.07339,"121":0.09513,"122":0.14677,"123":0.4077,"124":7.88492,"125":3.35673,"126":0.01631,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 57 58 61 62 66 101 127 128"},F:{"34":0.00272,"42":0.00544,"45":0.00272,"75":0.00544,"79":0.00544,"82":0.00272,"83":0.00544,"84":0.00272,"85":0.00544,"86":0.00272,"90":0.00272,"95":0.01631,"102":0.00272,"105":0.01359,"106":0.00544,"107":0.02718,"108":0.02718,"109":0.66863,"110":0.08698,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 87 88 89 91 92 93 94 96 97 98 99 100 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.04077,"13":0.01903,"14":0.00544,"15":0.00544,"16":0.02174,"17":0.09241,"18":0.10328,"81":0.00272,"84":0.01359,"85":0.00272,"89":0.01903,"90":0.03533,"92":0.12231,"96":0.00272,"98":0.00272,"100":0.04349,"103":0.00272,"105":0.00272,"106":0.00272,"107":0.00272,"108":0.00272,"109":0.0299,"110":0.00272,"111":0.01087,"112":0.00544,"113":0.00544,"114":0.01359,"115":0.01359,"116":0.01087,"117":0.01631,"118":0.02174,"119":0.02174,"120":0.03805,"121":0.04077,"122":0.17123,"123":0.20113,"124":2.89739,"125":1.37531,_:"79 80 83 86 87 88 91 93 94 95 97 99 101 102 104"},E:{"11":0.00272,"13":0.00272,"14":0.00272,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00272,"12.1":0.00815,"13.1":0.01631,"14.1":0.03533,"15.1":0.00272,"15.2-15.3":0.00272,"15.4":0.00272,"15.5":0.01087,"15.6":0.0761,"16.0":0.00272,"16.1":0.01087,"16.2":0.01087,"16.3":0.0299,"16.4":0.00272,"16.5":0.01359,"16.6":0.07339,"17.0":0.00815,"17.1":0.02174,"17.2":0.0299,"17.3":0.02718,"17.4":0.29354,"17.5":0.07882},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00097,"5.0-5.1":0.00097,"6.0-6.1":0.00244,"7.0-7.1":0.00341,"8.1-8.4":0.00097,"9.0-9.2":0.00244,"9.3":0.0112,"10.0-10.2":0.00195,"10.3":0.01754,"11.0-11.2":0.02582,"11.3-11.4":0.00487,"12.0-12.1":0.00292,"12.2-12.5":0.07064,"13.0-13.1":0.00146,"13.2":0.00682,"13.3":0.00341,"13.4-13.7":0.01559,"14.0-14.4":0.02679,"14.5-14.8":0.04141,"15.0-15.1":0.01997,"15.2-15.3":0.02192,"15.4":0.02485,"15.5":0.03118,"15.6-15.8":0.28061,"16.0":0.06382,"16.1":0.13153,"16.2":0.06382,"16.3":0.11059,"16.4":0.02338,"16.5":0.04726,"16.6-16.7":0.37658,"17.0":0.04092,"17.1":0.06674,"17.2":0.06966,"17.3":0.12861,"17.4":2.92056,"17.5":0.20607,"17.6":0},P:{"4":0.11411,"20":0.05187,"21":0.06224,"22":0.14523,"23":0.21785,"24":0.3942,"25":1.54567,_:"5.0-5.4 6.2-6.4 8.2 10.1 12.0 15.0","7.2-7.4":0.1971,"9.2":0.01037,"11.1-11.2":0.01037,"13.0":0.01037,"14.0":0.02075,"16.0":0.03112,"17.0":0.02075,"18.0":0.03112,"19.0":0.09336},I:{"0":0.10155,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00022},K:{"0":7.97783,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.0112,"11":0.08121,_:"6 7 8 9 5.5"},S:{"2.5":0.01456,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":58.76016},R:{_:"0"},M:{"0":0.18933},Q:{"14.9":0.05826},O:{"0":0.84471},H:{"0":1.03}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-af.js b/node_modules/caniuse-lite/data/regions/alt-af.js index cd22441be..5fb61e823 100644 --- a/node_modules/caniuse-lite/data/regions/alt-af.js +++ b/node_modules/caniuse-lite/data/regions/alt-af.js @@ -1 +1 @@ -module.exports={C:{"34":0.00399,"52":0.01597,"78":0.00399,"115":0.1497,"125":0.002,"127":0.00599,"128":0.02395,"132":0.002,"134":0.00399,"135":0.00399,"136":0.00798,"137":0.00798,"138":0.03593,"139":0.47505,"140":0.06986,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 133 141 142 143 3.5 3.6"},D:{"39":0.00399,"40":0.00399,"41":0.00399,"42":0.00399,"43":0.00798,"44":0.00399,"45":0.00599,"46":0.00399,"47":0.00798,"48":0.00599,"49":0.00798,"50":0.00399,"51":0.00399,"52":0.00998,"53":0.00399,"54":0.00399,"55":0.00399,"56":0.00399,"57":0.00399,"58":0.03593,"59":0.00399,"60":0.00399,"62":0.002,"63":0.002,"65":0.00399,"66":0.00399,"68":0.00798,"69":0.00599,"70":0.01198,"71":0.00599,"72":0.00798,"73":0.00599,"74":0.00798,"75":0.00798,"76":0.00599,"77":0.00599,"78":0.00798,"79":0.02595,"80":0.00998,"81":0.00998,"83":0.01198,"84":0.00399,"85":0.00798,"86":0.01397,"87":0.02196,"88":0.01198,"89":0.00599,"90":0.00798,"91":0.00599,"92":0.002,"93":0.00399,"94":0.00399,"95":0.00599,"98":0.12575,"99":0.002,"100":0.00399,"101":0.00399,"102":0.00399,"103":0.02196,"104":0.01597,"105":0.01198,"106":0.00998,"107":0.00599,"108":0.01397,"109":0.72056,"110":0.00798,"111":0.01397,"112":0.00399,"113":0.00798,"114":0.0479,"115":0.00399,"116":0.02994,"117":0.00399,"118":0.01597,"119":0.02196,"120":0.01397,"121":0.00998,"122":0.02395,"123":0.01597,"124":0.02794,"125":0.6008,"126":0.02595,"127":0.01597,"128":0.03194,"129":0.01198,"130":0.01796,"131":0.06786,"132":0.0479,"133":0.05589,"134":0.0519,"135":0.10778,"136":1.00399,"137":6.09778,"138":0.24152,"139":0.00399,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 64 67 96 97 140 141"},F:{"79":0.00399,"85":0.002,"86":0.00399,"87":0.00599,"88":0.00798,"89":0.07186,"90":0.02794,"95":0.02196,"113":0.002,"114":0.002,"117":0.00399,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.002,"16":0.002,"18":0.01198,"84":0.00399,"89":0.00399,"90":0.00599,"92":0.02595,"100":0.00599,"107":0.002,"109":0.01796,"111":0.002,"114":0.00599,"115":0.002,"118":0.00399,"119":0.002,"120":0.002,"122":0.00599,"124":0.00399,"125":0.002,"126":0.00399,"127":0.00399,"128":0.00399,"129":0.00599,"130":0.00798,"131":0.01198,"132":0.00798,"133":0.01397,"134":0.02196,"135":0.02595,"136":0.25549,"137":1.43512,"138":0.10379,_:"13 14 15 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 112 113 116 117 121 123"},E:{"14":0.002,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 17.0 26.0","5.1":0.00798,"9.1":0.00399,"13.1":0.00798,"14.1":0.00798,"15.5":0.00399,"15.6":0.02994,"16.0":0.00399,"16.1":0.00399,"16.2":0.002,"16.3":0.00599,"16.4":0.002,"16.5":0.00399,"16.6":0.03393,"17.1":0.01996,"17.2":0.002,"17.3":0.00399,"17.4":0.00599,"17.5":0.00998,"17.6":0.03593,"18.0":0.00599,"18.1":0.00798,"18.2":0.00599,"18.3":0.02395,"18.4":0.02794,"18.5":0.1996},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00125,"6.0-6.1":0,"7.0-7.1":0.00872,"8.1-8.4":0,"9.0-9.2":0.00062,"9.3":0.01308,"10.0-10.2":0.00187,"10.3":0.01246,"11.0-11.2":0.0573,"11.3-11.4":0.00125,"12.0-12.1":0.00249,"12.2-12.5":0.08221,"13.0-13.1":0.00125,"13.2":0.00062,"13.3":0.00125,"13.4-13.7":0.00311,"14.0-14.4":0.01121,"14.5-14.8":0.00872,"15.0-15.1":0.06041,"15.2-15.3":0.01432,"15.4":0.01246,"15.5":0.01744,"15.6-15.8":0.42474,"16.0":0.03737,"16.1":0.05854,"16.2":0.02989,"16.3":0.05045,"16.4":0.01432,"16.5":0.0274,"16.6-16.7":0.40668,"17.0":0.01868,"17.1":0.02367,"17.2":0.01868,"17.3":0.02553,"17.4":0.04048,"17.5":0.11148,"17.6-17.7":0.20863,"18.0":0.11397,"18.1":0.20926,"18.2":0.12767,"18.3":0.42723,"18.4":0.41166,"18.5":3.08343,"26.0":0},P:{"4":0.03176,"21":0.02117,"22":0.04235,"23":0.03176,"24":0.11646,"25":0.10587,"26":0.12705,"27":0.23292,"28":2.41389,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.11646,"11.1-11.2":0.01059,"17.0":0.01059,"19.0":0.02117},I:{"0":0.10388,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00016},K:{"0":4.49121,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02395,"9":0.00532,"10":0.00798,"11":0.0346,_:"6 7 5.5"},S:{"2.5":0.01601,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":70.06889},R:{_:"0"},M:{"0":0.24816},Q:{_:"14.9"},O:{"0":0.24816},H:{"0":0.64}}; +module.exports={C:{"34":0.00422,"52":0.04224,"57":0.00211,"72":0.00211,"77":0.00422,"78":0.00634,"88":0.00211,"95":0.00845,"99":0.00211,"102":0.00211,"103":0.00422,"108":0.00211,"113":0.00211,"115":0.27245,"121":0.00422,"122":0.01267,"123":0.00845,"124":0.02112,"125":0.39706,"126":0.32736,"127":0.00634,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 96 97 98 100 101 104 105 106 107 109 110 111 112 114 116 117 118 119 120 128 129 3.5 3.6"},D:{"11":0.00211,"38":0.00211,"42":0.00211,"43":0.01056,"45":0.00634,"47":0.00422,"49":0.00845,"50":0.00211,"56":0.00422,"58":0.03379,"59":0.00211,"62":0.00211,"63":0.00422,"64":0.00211,"65":0.00422,"66":0.00634,"67":0.06125,"68":0.00422,"69":0.00634,"70":0.00845,"72":0.00211,"73":0.00422,"74":0.00634,"75":0.00422,"76":0.00422,"77":0.00422,"78":0.00422,"79":0.02746,"80":0.00634,"81":0.01056,"83":0.01056,"84":0.00422,"85":0.00634,"86":0.01478,"87":0.03168,"88":0.0169,"89":0.00422,"90":0.00422,"91":0.00845,"92":0.01056,"93":0.03168,"94":0.00845,"95":0.01056,"96":0.00634,"97":0.00634,"98":0.0169,"99":0.02323,"100":0.00634,"101":0.00845,"102":0.01478,"103":0.03379,"104":0.01056,"105":0.00634,"106":0.01478,"107":0.00845,"108":0.01478,"109":1.46573,"110":0.00845,"111":0.01267,"112":0.00845,"113":0.00845,"114":0.02323,"115":0.01056,"116":0.05914,"117":0.01267,"118":0.01056,"119":0.04224,"120":0.06125,"121":0.0528,"122":0.10138,"123":0.29779,"124":6.2135,"125":2.59142,"126":0.00634,_:"4 5 6 7 8 9 10 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 39 40 41 44 46 48 51 52 53 54 55 57 60 61 71 127 128"},F:{"28":0.00211,"79":0.01056,"82":0.00422,"85":0.00211,"95":0.03802,"100":0.00211,"102":0.00211,"105":0.00211,"106":0.00211,"107":0.0528,"108":0.01267,"109":0.40339,"110":0.03379,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 101 103 104 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00634,"13":0.00211,"14":0.00211,"15":0.00634,"16":0.00211,"17":0.00422,"18":0.01901,"84":0.00422,"89":0.00422,"90":0.00422,"92":0.02323,"100":0.00422,"109":0.03168,"114":0.00422,"115":0.00211,"116":0.00422,"117":0.00422,"118":0.00845,"119":0.01267,"120":0.01478,"121":0.0169,"122":0.08237,"123":0.06547,"124":1.50586,"125":0.76877,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113"},E:{"13":0.00211,"14":0.01056,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00211,"12.1":0.00211,"13.1":0.01478,"14.1":0.01901,"15.1":0.00845,"15.2-15.3":0.00422,"15.4":0.00211,"15.5":0.00422,"15.6":0.04858,"16.0":0.00845,"16.1":0.00845,"16.2":0.00634,"16.3":0.0169,"16.4":0.00634,"16.5":0.01056,"16.6":0.05069,"17.0":0.00634,"17.1":0.01267,"17.2":0.01267,"17.3":0.01901,"17.4":0.17741,"17.5":0.03168},G:{"8":0.00228,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00304,"6.0-6.1":0,"7.0-7.1":0.01595,"8.1-8.4":0.00076,"9.0-9.2":0.00152,"9.3":0.02658,"10.0-10.2":0.00076,"10.3":0.02582,"11.0-11.2":0.01367,"11.3-11.4":0.00304,"12.0-12.1":0.00987,"12.2-12.5":0.44584,"13.0-13.1":0.00684,"13.2":0.00152,"13.3":0.01215,"13.4-13.7":0.03722,"14.0-14.4":0.10785,"14.5-14.8":0.10709,"15.0-15.1":0.12076,"15.2-15.3":0.06456,"15.4":0.04785,"15.5":0.08431,"15.6-15.8":1.05421,"16.0":0.12532,"16.1":0.19064,"16.2":0.09798,"16.3":0.18684,"16.4":0.0638,"16.5":0.12076,"16.6-16.7":0.79294,"17.0":0.1314,"17.1":0.14203,"17.2":0.14659,"17.3":0.2476,"17.4":2.90288,"17.5":0.24456,"17.6":0},P:{"4":0.14645,"20":0.03138,"21":0.08369,"22":0.12553,"23":0.1883,"24":0.32429,"25":2.14448,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0","7.2-7.4":0.1883,"11.1-11.2":0.02092,"13.0":0.02092,"14.0":0.01046,"15.0":0.01046,"16.0":0.04184,"17.0":0.04184,"18.0":0.03138,"19.0":0.08369},I:{"0":0.08585,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00003,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00075},K:{"0":6.42079,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00472,"11":0.03541,_:"6 7 9 10 5.5"},S:{"2.5":0.0631,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":62.87619},R:{_:"0"},M:{"0":0.20506},Q:{_:"14.9"},O:{"0":0.35492},H:{"0":1.9}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-an.js b/node_modules/caniuse-lite/data/regions/alt-an.js index 9ca792cf6..9d9af28e6 100644 --- a/node_modules/caniuse-lite/data/regions/alt-an.js +++ b/node_modules/caniuse-lite/data/regions/alt-an.js @@ -1 +1 @@ -module.exports={C:{"64":0.36465,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 3.5 3.6"},D:{"122":0.11995,"124":0.21591,"131":0.02879,"132":0.67172,"135":0.11995,"136":0.15354,"137":2.04875,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 123 125 126 127 128 129 130 133 134 138 139 140 141"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"113":0.06237,"136":0.02879,"137":1.62172,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.4 15.5 17.0","15.1":0.15354,"15.2-15.3":0.33586,"15.6":0.33586,"16.0":0.02879,"16.1":0.91642,"16.2":0.11995,"16.3":0.4894,"16.4":0.21591,"16.5":1.06995,"16.6":3.51693,"17.1":4.43335,"17.2":0.46061,"17.3":0.27349,"17.4":0.67172,"17.5":0.82526,"17.6":13.82304,"18.0":0.82526,"18.1":0.70531,"18.2":0.4894,"18.3":1.65051,"18.4":0.4894,"18.5":3.57931,"26.0":0.02879},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0,"15.2-15.3":0.12082,"15.4":0,"15.5":0,"15.6-15.8":0.30205,"16.0":0.93868,"16.1":1.76119,"16.2":0.63663,"16.3":0.66916,"16.4":0.03253,"16.5":0.03253,"16.6-16.7":3.7315,"17.0":0.27417,"17.1":0.09294,"17.2":1.0595,"17.3":0.51581,"17.4":0.39499,"17.5":2.12365,"17.6-17.7":6.73343,"18.0":0.15335,"18.1":0.39499,"18.2":0.30205,"18.3":0.42287,"18.4":1.39408,"18.5":23.65761,"26.0":0},P:{"28":0.03121,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":8.36474},R:{_:"0"},M:{"0":0.03121},Q:{_:"14.9"},O:{"0":0.03121},H:{"0":0}}; +module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 3.5 3.6"},D:{"81":0.02427,"86":0.0104,"102":0.04507,"116":0.05894,"120":0.0104,"121":0.04507,"123":0.09361,"124":0.47845,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 119 122 125 126 127 128"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"102":0.05894,"116":0.0104,"122":0.02427,"123":0.03467,"124":0.28083,"125":0.08321,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 119 120 121"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 16.0 17.6","15.1":0.19762,"15.2-15.3":0.23229,"15.4":0.35017,"15.5":0.04507,"15.6":0.63099,"16.1":0.17335,"16.2":0.79394,"16.3":0.94302,"16.4":0.08321,"16.5":0.47845,"16.6":2.4581,"17.0":0.13868,"17.1":0.92222,"17.2":1.77164,"17.3":1.87565,"17.4":18.02147,"17.5":1.3868},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0.0212,"15.2-15.3":1.20819,"15.4":0,"15.5":0.0212,"15.6-15.8":0.61469,"16.0":0.40803,"16.1":1.7328,"16.2":0.26495,"16.3":1.09161,"16.4":0.0106,"16.5":0.09538,"16.6-16.7":4.37174,"17.0":0.22256,"17.1":0.42922,"17.2":0.60409,"17.3":1.60562,"17.4":38.79452,"17.5":1.48904,"17.6":0},P:{"25":0.01307,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.03267,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":12.84197},R:{_:"0"},M:{_:"0"},Q:{"14.9":0.99317},O:{"0":0.24829},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-as.js b/node_modules/caniuse-lite/data/regions/alt-as.js index e2b42728b..09dba0fd9 100644 --- a/node_modules/caniuse-lite/data/regions/alt-as.js +++ b/node_modules/caniuse-lite/data/regions/alt-as.js @@ -1 +1 @@ -module.exports={C:{"5":0.00303,"43":0.00303,"52":0.02727,"115":0.24846,"122":0.00606,"125":0.00303,"127":0.00606,"128":0.02121,"133":0.00303,"134":0.00303,"135":0.00606,"136":0.01212,"137":0.00909,"138":0.0303,"139":0.58479,"140":0.08181,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 126 129 130 131 132 141 142 143 3.5 3.6"},D:{"38":0.00606,"39":0.00303,"40":0.00303,"41":0.00606,"42":0.00303,"43":0.00303,"44":0.00303,"45":0.00606,"46":0.00303,"47":0.00606,"48":0.00909,"49":0.01212,"50":0.01212,"51":0.00303,"52":0.00606,"53":0.00909,"54":0.00303,"55":0.00606,"56":0.00606,"57":0.00606,"58":0.00606,"59":0.00303,"60":0.00303,"66":0.00303,"69":0.01818,"70":0.0303,"73":0.00606,"74":0.00303,"75":0.00303,"77":0.00909,"78":0.00909,"79":0.04242,"80":0.00606,"81":0.00909,"83":0.01818,"85":0.00606,"86":0.02424,"87":0.03636,"88":0.00303,"89":0.00606,"90":0.00303,"91":0.01515,"92":0.01515,"93":0.00303,"94":0.00303,"95":0.00606,"96":0.00606,"97":0.01818,"98":0.05151,"99":0.01212,"100":0.00909,"101":0.02727,"102":0.00909,"103":0.05454,"104":0.02424,"105":0.02424,"106":0.01515,"107":0.01818,"108":0.03333,"109":0.87264,"110":0.01212,"111":0.03636,"112":4.00263,"113":0.00909,"114":0.05454,"115":0.02727,"116":0.17877,"117":0.01212,"118":0.02121,"119":0.05454,"120":0.02727,"121":0.02424,"122":0.06363,"123":0.13635,"124":0.07575,"125":0.41814,"126":0.04848,"127":0.02727,"128":0.05757,"129":0.02424,"130":0.08484,"131":0.09393,"132":0.0606,"133":0.06363,"134":0.19089,"135":0.15756,"136":1.36956,"137":9.62631,"138":0.37875,"139":0.01515,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 67 68 71 72 76 84 140 141"},F:{"40":0.00303,"46":0.00606,"89":0.03333,"90":0.02121,"95":0.01212,"102":0.14241,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00606,"92":0.01818,"100":0.00303,"106":0.00303,"108":0.00303,"109":0.03939,"110":0.00303,"111":0.00303,"112":0.00606,"113":0.01212,"114":0.02121,"115":0.00909,"116":0.00606,"117":0.00606,"118":0.00606,"119":0.00606,"120":0.05454,"121":0.01212,"122":0.01212,"123":0.00606,"124":0.00909,"125":0.00909,"126":0.01818,"127":0.02424,"128":0.01515,"129":0.01515,"130":0.01515,"131":0.04545,"132":0.01818,"133":0.02727,"134":0.03636,"135":0.05454,"136":0.46056,"137":2.52702,"138":0.20301,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 107"},E:{"11":0.00606,"14":0.00909,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 26.0","13.1":0.01212,"14.1":0.01818,"15.1":0.00303,"15.4":0.00606,"15.5":0.00909,"15.6":0.05151,"16.0":0.00606,"16.1":0.01212,"16.2":0.00606,"16.3":0.01515,"16.4":0.00606,"16.5":0.00909,"16.6":0.06666,"17.0":0.00909,"17.1":0.03333,"17.2":0.00606,"17.3":0.00909,"17.4":0.01515,"17.5":0.02727,"17.6":0.0606,"18.0":0.01212,"18.1":0.02121,"18.2":0.01212,"18.3":0.05454,"18.4":0.04545,"18.5":0.41511},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00487,"5.0-5.1":0.00195,"6.0-6.1":0.00195,"7.0-7.1":0.00876,"8.1-8.4":0,"9.0-9.2":0.00195,"9.3":0.01168,"10.0-10.2":0,"10.3":0.02726,"11.0-11.2":0.07595,"11.3-11.4":0.00487,"12.0-12.1":0.00389,"12.2-12.5":0.0964,"13.0-13.1":0.00097,"13.2":0.00584,"13.3":0.00389,"13.4-13.7":0.02142,"14.0-14.4":0.03992,"14.5-14.8":0.04771,"15.0-15.1":0.02921,"15.2-15.3":0.03116,"15.4":0.04284,"15.5":0.04382,"15.6-15.8":0.49367,"16.0":0.06816,"16.1":0.1149,"16.2":0.06426,"16.3":0.11295,"16.4":0.03311,"16.5":0.05355,"16.6-16.7":0.50341,"17.0":0.03603,"17.1":0.05453,"17.2":0.04869,"17.3":0.06524,"17.4":0.11685,"17.5":0.22103,"17.6-17.7":0.50925,"18.0":0.15774,"18.1":0.29114,"18.2":0.18598,"18.3":0.64752,"18.4":0.67089,"18.5":4.72638,"26.0":0},P:{"21":0.02195,"22":0.02195,"23":0.02195,"24":0.03293,"25":0.04391,"26":0.06586,"27":0.13172,"28":1.4599,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02195,"17.0":0.01098},I:{"0":1.29512,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00104},K:{"0":1.04641,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01563,"11":0.87519,_:"6 7 9 10 5.5"},S:{"2.5":0.02091,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":55.84133},R:{_:"0"},M:{"0":0.18122},Q:{"14.9":0.41123},O:{"0":1.6031},H:{"0":0.02}}; +module.exports={C:{"34":0.0059,"43":0.01474,"52":0.06486,"54":0.00884,"55":0.00295,"56":0.03538,"78":0.00295,"88":0.0059,"103":0.00295,"113":0.00884,"115":0.35081,"121":0.0059,"122":0.0059,"123":0.00884,"124":0.04127,"125":0.41272,"126":0.35671,"127":0.0059,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 128 129 3.5 3.6"},D:{"11":0.00295,"25":0.00295,"26":0.00295,"34":0.01179,"38":0.02653,"47":0.0059,"48":0.0059,"49":0.02358,"50":0.02064,"53":0.00884,"55":0.0059,"56":0.0059,"57":0.00295,"58":0.00295,"61":0.00884,"63":0.00295,"65":0.00295,"66":0.00884,"67":0.0059,"68":0.00295,"69":0.05896,"70":0.02064,"71":0.0059,"72":0.00295,"73":0.01474,"74":0.00884,"75":0.0059,"76":0.0059,"77":0.00884,"78":0.01179,"79":0.12676,"80":0.01179,"81":0.01179,"83":0.02064,"84":0.00884,"85":0.01179,"86":0.03538,"87":0.09139,"88":0.0059,"89":0.00884,"90":0.01474,"91":0.00884,"92":0.01769,"93":0.0059,"94":0.02948,"95":0.01179,"96":0.00884,"97":0.02358,"98":0.15035,"99":0.04127,"100":0.02064,"101":0.03243,"102":0.02064,"103":0.05601,"104":0.02064,"105":0.02064,"106":0.02064,"107":0.02358,"108":0.03832,"109":1.78354,"110":0.01474,"111":0.04422,"112":0.04127,"113":0.02358,"114":0.04422,"115":0.02358,"116":0.22405,"117":0.02948,"118":0.02948,"119":0.06191,"120":0.10908,"121":0.10318,"122":0.16804,"123":0.49821,"124":10.2384,"125":4.08593,"126":0.01474,"127":0.00295,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 51 52 54 59 60 62 64 128"},F:{"28":0.0059,"36":0.0059,"40":0.00295,"46":0.02653,"95":0.02064,"102":0.1533,"107":0.04422,"108":0.0059,"109":0.25058,"110":0.01769,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01179,"92":0.01769,"100":0.00295,"107":0.0059,"108":0.00884,"109":0.05896,"110":0.0059,"111":0.0059,"112":0.0059,"113":0.02358,"114":0.01769,"115":0.01179,"116":0.00884,"117":0.01179,"118":0.01179,"119":0.01769,"120":0.03832,"121":0.02653,"122":0.06486,"123":0.10613,"124":1.97516,"125":1.1055,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106"},E:{"13":0.0059,"14":0.02653,"15":0.0059,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 6.1 7.1 9.1 10.1 11.1 17.6","5.1":0.00295,"12.1":0.0059,"13.1":0.02653,"14.1":0.06191,"15.1":0.01179,"15.2-15.3":0.00884,"15.4":0.02358,"15.5":0.03243,"15.6":0.14445,"16.0":0.01179,"16.1":0.03538,"16.2":0.02358,"16.3":0.06191,"16.4":0.01769,"16.5":0.03538,"16.6":0.17688,"17.0":0.01769,"17.1":0.03538,"17.2":0.04127,"17.3":0.05601,"17.4":0.77238,"17.5":0.0678},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00443,"5.0-5.1":0.00443,"6.0-6.1":0.00222,"7.0-7.1":0.01552,"8.1-8.4":0.00332,"9.0-9.2":0.00554,"9.3":0.03103,"10.0-10.2":0.00443,"10.3":0.06206,"11.0-11.2":0.01884,"11.3-11.4":0.00887,"12.0-12.1":0.01108,"12.2-12.5":0.2283,"13.0-13.1":0.00443,"13.2":0.0133,"13.3":0.0133,"13.4-13.7":0.06871,"14.0-14.4":0.10861,"14.5-14.8":0.15959,"15.0-15.1":0.07315,"15.2-15.3":0.08312,"15.4":0.10085,"15.5":0.11304,"15.6-15.8":0.92207,"16.0":0.19395,"16.1":0.32804,"16.2":0.18175,"16.3":0.3081,"16.4":0.08423,"16.5":0.16291,"16.6-16.7":0.95975,"17.0":0.1341,"17.1":0.21611,"17.2":0.22609,"17.3":0.37459,"17.4":5.39612,"17.5":0.44552,"17.6":0},P:{"4":0.23444,"20":0.02131,"21":0.06394,"22":0.08525,"23":0.13853,"24":0.25575,"25":1.79027,"5.0-5.4":0.02131,"6.2-6.4":0.01066,"7.2-7.4":0.05328,_:"8.2 9.2 10.1 12.0 15.0 16.0","11.1-11.2":0.01066,"13.0":0.01066,"14.0":0.01066,"17.0":0.03197,"18.0":0.01066,"19.0":0.02131},I:{"0":0.37287,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00056},K:{"0":1.34475,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03196,"9":0.11187,"11":1.07074,_:"6 7 10 5.5"},S:{"2.5":0.19035,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":52.63995},R:{_:"0"},M:{"0":0.17625},Q:{"14.9":0.64155},O:{"0":1.89645},H:{"0":0.03}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-eu.js b/node_modules/caniuse-lite/data/regions/alt-eu.js index 0a99bebe9..e651039c9 100644 --- a/node_modules/caniuse-lite/data/regions/alt-eu.js +++ b/node_modules/caniuse-lite/data/regions/alt-eu.js @@ -1 +1 @@ -module.exports={C:{"48":0.00446,"52":0.04464,"59":0.02232,"68":0.00893,"78":0.01786,"94":0.00446,"105":0.00893,"113":0.00446,"115":0.35712,"118":0.00446,"119":0.01339,"120":0.01786,"124":0.00446,"125":0.00446,"127":0.00893,"128":0.16517,"131":0.00446,"132":0.00893,"133":0.01339,"134":0.01339,"135":0.01786,"136":0.04018,"137":0.03571,"138":0.13392,"139":2.41949,"140":0.34373,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 114 116 117 121 122 123 126 129 130 141 142 143 3.5 3.6"},D:{"39":0.00893,"40":0.00893,"41":0.00893,"42":0.00893,"43":0.00893,"44":0.00893,"45":0.02678,"46":0.00893,"47":0.01339,"48":0.01786,"49":0.02232,"50":0.00893,"51":0.00893,"52":0.02232,"53":0.00893,"54":0.00893,"55":0.00893,"56":0.00893,"57":0.00893,"58":0.00893,"59":0.00893,"60":0.00893,"63":0.00446,"66":0.0625,"68":0.00893,"70":0.00446,"72":0.00446,"73":0.01339,"74":0.01786,"75":0.00446,"76":0.00446,"78":0.02232,"79":0.08482,"80":0.00446,"81":0.00893,"83":0.00446,"85":0.01339,"86":0.00446,"87":0.03571,"88":0.01786,"90":0.00446,"91":0.03571,"92":0.00893,"93":0.01339,"94":0.02678,"96":0.00446,"97":0.01786,"98":0.0491,"99":0.02232,"100":0.00893,"101":0.02678,"102":0.03125,"103":0.07589,"104":0.06696,"105":0.00893,"106":0.02678,"107":0.02678,"108":0.04464,"109":0.9553,"110":0.01786,"111":0.03571,"112":0.01786,"113":0.01339,"114":0.04464,"115":0.01786,"116":0.1116,"117":0.02232,"118":0.20534,"119":0.04018,"120":0.12499,"121":0.02232,"122":0.08482,"123":0.03125,"124":0.05803,"125":0.29462,"126":0.09374,"127":0.04018,"128":0.09821,"129":0.11606,"130":0.09374,"131":1.30349,"132":0.26338,"133":0.24552,"134":0.15624,"135":0.33034,"136":2.82571,"137":15.15528,"138":0.57139,"139":0.00446,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 65 67 69 71 77 84 89 95 140 141"},F:{"31":0.01339,"40":0.01339,"46":0.01786,"79":0.00446,"85":0.00446,"89":0.03571,"90":0.02232,"95":0.08928,"113":0.01339,"114":0.00446,"117":0.00893,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00893,"92":0.00446,"96":0.03571,"109":0.05803,"118":0.00446,"120":0.01786,"122":0.01786,"124":0.00446,"126":0.01339,"127":0.00446,"128":0.00446,"129":0.00893,"130":0.01786,"131":0.02678,"132":0.01786,"133":0.01339,"134":0.07589,"135":0.05357,"136":0.79013,"137":4.72291,"138":0.35712,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 119 121 123 125"},E:{"14":0.01339,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.2-15.3 26.0","11.1":0.01339,"12.1":0.00893,"13.1":0.03571,"14.1":0.04018,"15.1":0.00446,"15.4":0.01339,"15.5":0.01339,"15.6":0.19642,"16.0":0.04464,"16.1":0.01786,"16.2":0.01786,"16.3":0.04018,"16.4":0.01339,"16.5":0.01786,"16.6":0.25891,"17.0":0.01339,"17.1":0.19642,"17.2":0.03125,"17.3":0.02232,"17.4":0.04018,"17.5":0.07589,"17.6":0.22766,"18.0":0.02678,"18.1":0.05803,"18.2":0.02678,"18.3":0.15624,"18.4":0.15624,"18.5":1.85256},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.03026,"10.0-10.2":0.00318,"10.3":0.03344,"11.0-11.2":0.19109,"11.3-11.4":0.01592,"12.0-12.1":0,"12.2-12.5":0.1051,"13.0-13.1":0,"13.2":0,"13.3":0.00159,"13.4-13.7":0.00478,"14.0-14.4":0.03026,"14.5-14.8":0.01115,"15.0-15.1":0.01433,"15.2-15.3":0.01274,"15.4":0.01433,"15.5":0.01911,"15.6-15.8":0.3997,"16.0":0.04937,"16.1":0.11784,"16.2":0.05096,"16.3":0.10191,"16.4":0.01433,"16.5":0.03026,"16.6-16.7":0.56849,"17.0":0.01911,"17.1":0.05892,"17.2":0.02548,"17.3":0.043,"17.4":0.06847,"17.5":0.1895,"17.6-17.7":0.55575,"18.0":0.12739,"18.1":0.30893,"18.2":0.12739,"18.3":0.72296,"18.4":0.81054,"18.5":10.9447,"26.0":0},P:{"4":0.0216,"21":0.0216,"22":0.0216,"23":0.0432,"24":0.0432,"25":0.0432,"26":0.08641,"27":0.16201,"28":3.09984,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0108},I:{"0":0.04418,"3":0.00001,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00001,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.55904,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02381,"9":0.0119,"10":0.0119,"11":0.07738,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.68607},R:{_:"0"},M:{"0":0.51476},Q:{_:"14.9"},O:{"0":0.14391},H:{"0":0}}; +module.exports={C:{"45":0.02259,"48":0.00452,"50":0.03162,"52":0.06324,"53":0.01807,"56":0.02259,"59":0.01355,"65":0.00452,"68":0.00452,"78":0.0271,"88":0.01355,"91":0.00452,"102":0.03614,"103":0.03614,"105":0.00903,"107":0.00452,"108":0.00452,"109":0.00903,"110":0.00903,"111":0.00452,"113":0.00903,"115":0.54204,"117":0.01355,"118":0.01807,"119":0.00452,"120":0.0271,"121":0.01807,"122":0.01807,"123":0.0271,"124":0.11293,"125":1.55385,"126":1.43189,"127":0.00452,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 49 51 54 55 57 58 60 61 62 63 64 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 104 106 112 114 116 128 129 3.5 3.6"},D:{"34":0.00452,"38":0.00903,"43":0.00452,"45":0.00903,"47":0.00452,"48":0.00903,"49":0.0271,"52":0.00903,"63":0.00452,"66":0.0542,"72":0.00452,"73":0.01807,"74":0.00452,"75":0.00452,"76":0.00903,"77":0.00903,"78":0.03614,"79":0.11744,"80":0.00903,"81":0.01355,"83":0.00903,"84":0.00903,"85":0.00903,"86":0.04517,"87":0.04065,"88":0.01355,"89":0.01355,"90":0.00903,"91":0.0271,"92":0.0271,"93":0.03614,"94":0.04517,"95":0.00903,"96":0.01807,"97":0.00903,"98":0.00903,"99":0.02259,"100":0.04065,"101":0.07227,"102":0.05872,"103":0.15358,"104":0.24844,"105":0.01807,"106":0.07227,"107":0.03162,"108":0.04517,"109":1.32348,"110":0.02259,"111":0.03162,"112":0.03162,"113":0.11744,"114":0.17165,"115":0.07227,"116":0.22585,"117":0.12648,"118":0.14454,"119":0.08582,"120":0.17165,"121":0.82661,"122":0.32522,"123":1.30993,"124":14.98741,"125":5.37523,"126":0.00903,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 44 46 50 51 53 54 55 56 57 58 59 60 61 62 64 65 67 68 69 70 71 127 128"},F:{"31":0.01355,"40":0.00903,"46":0.01355,"85":0.00452,"95":0.08582,"106":0.02259,"107":0.37943,"108":0.02259,"109":1.55385,"110":0.08582,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01355,"90":0.00903,"92":0.00452,"107":0.00452,"108":0.00452,"109":0.07679,"110":0.00452,"111":0.00903,"112":0.00452,"113":0.00452,"114":0.01807,"115":0.00452,"116":0.00452,"117":0.01807,"118":0.00452,"119":0.01355,"120":0.03162,"121":0.02259,"122":0.07227,"123":0.1852,"124":3.74459,"125":2.03265,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106"},E:{"7":0.00452,"14":0.03162,"15":0.00452,_:"0 4 5 6 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.01355,"12.1":0.0271,"13.1":0.06324,"14.1":0.09937,"15.1":0.01355,"15.2-15.3":0.01355,"15.4":0.02259,"15.5":0.03162,"15.6":0.28457,"16.0":0.04065,"16.1":0.04969,"16.2":0.04065,"16.3":0.09937,"16.4":0.03162,"16.5":0.05872,"16.6":0.36588,"17.0":0.04517,"17.1":0.07679,"17.2":0.09034,"17.3":0.09486,"17.4":1.69388,"17.5":0.23488},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.00906,"7.0-7.1":0.00302,"8.1-8.4":0.00302,"9.0-9.2":0,"9.3":0.04076,"10.0-10.2":0.00906,"10.3":0.04528,"11.0-11.2":0.10113,"11.3-11.4":0.02264,"12.0-12.1":0.00604,"12.2-12.5":0.17812,"13.0-13.1":0.00302,"13.2":0.0634,"13.3":0.00453,"13.4-13.7":0.01359,"14.0-14.4":0.03321,"14.5-14.8":0.07245,"15.0-15.1":0.03019,"15.2-15.3":0.03774,"15.4":0.03472,"15.5":0.05585,"15.6-15.8":0.69134,"16.0":0.18717,"16.1":0.41209,"16.2":0.1751,"16.3":0.31699,"16.4":0.04227,"16.5":0.10415,"16.6-16.7":1.13814,"17.0":0.10264,"17.1":0.15849,"17.2":0.16151,"17.3":0.33208,"17.4":9.81759,"17.5":0.67473,"17.6":0},P:{"4":0.03245,"20":0.02163,"21":0.05408,"22":0.0649,"23":0.1298,"24":0.25961,"25":2.96383,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0","13.0":0.01082,"17.0":0.01082,"18.0":0.01082,"19.0":0.02163},I:{"0":0.06559,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00002,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.62506,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00951,"9":0.00475,"11":0.07608,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":35.00314},R:{_:"0"},M:{"0":0.47154},Q:{_:"14.9"},O:{"0":0.11514},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-na.js b/node_modules/caniuse-lite/data/regions/alt-na.js index 7e3679f1d..e61bce11e 100644 --- a/node_modules/caniuse-lite/data/regions/alt-na.js +++ b/node_modules/caniuse-lite/data/regions/alt-na.js @@ -1 +1 @@ -module.exports={C:{"11":0.2108,"44":0.00897,"45":0.01346,"52":0.00897,"59":0.01346,"72":0.00897,"78":0.01794,"94":0.01346,"115":0.17492,"118":0.51578,"123":0.00449,"125":0.00897,"128":0.08522,"130":0.00449,"132":0.00449,"133":0.00897,"134":0.00897,"135":0.01794,"136":0.02691,"137":0.0314,"138":0.1211,"139":1.54284,"140":0.21977,_:"2 3 4 5 6 7 8 9 10 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 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 124 126 127 129 131 141 142 143 3.5 3.6"},D:{"39":0.00897,"40":0.00897,"41":0.01346,"42":0.00897,"43":0.01346,"44":0.00897,"45":0.00897,"46":0.01346,"47":0.01346,"48":0.04485,"49":0.02691,"50":0.01346,"51":0.01346,"52":0.01346,"53":0.01346,"54":0.01346,"55":0.01346,"56":0.05831,"57":0.01346,"58":0.01346,"59":0.01346,"60":0.01346,"66":0.02243,"68":0.00449,"69":0.00449,"70":0.00897,"72":0.00897,"74":0.01346,"75":0.00449,"76":0.00897,"77":0.00897,"78":0.01346,"79":0.09867,"80":0.01794,"81":0.05382,"83":0.08073,"84":0.00897,"85":0.01346,"86":0.01346,"87":0.03588,"88":0.01794,"89":0.00449,"90":0.01346,"91":0.04934,"93":0.02243,"94":0.01346,"96":0.00897,"97":0.02243,"98":0.01346,"99":0.02243,"100":0.00449,"101":0.01794,"102":0.00897,"103":0.13455,"104":0.0314,"105":0.01794,"106":0.02243,"107":0.0314,"108":0.04485,"109":0.41711,"110":0.02243,"111":0.02691,"112":0.04485,"113":0.0314,"114":0.04485,"115":0.0314,"116":0.13007,"117":0.24219,"118":0.03588,"119":0.03588,"120":0.05382,"121":0.11661,"122":0.0897,"123":0.42608,"124":0.05831,"125":0.37674,"126":0.10316,"127":0.0314,"128":0.1211,"129":0.07625,"130":0.13455,"131":1.19301,"132":1.11677,"133":1.1078,"134":0.49784,"135":0.87458,"136":2.97804,"137":12.65667,"138":0.51129,"139":0.02691,"140":0.00449,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 71 73 92 95 141"},F:{"89":0.01794,"90":0.01346,"95":0.02691,"117":0.00449,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00897,"91":0.00449,"109":0.05382,"120":0.00897,"121":0.00897,"122":0.01794,"126":0.00449,"127":0.00449,"128":0.00449,"129":0.00897,"130":0.00897,"131":0.02243,"132":0.01794,"133":0.01346,"134":0.10316,"135":0.05831,"136":0.82973,"137":4.61955,"138":0.3902,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 123 124 125"},E:{"14":0.02691,"15":0.00449,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 26.0","9.1":0.00449,"11.1":0.00449,"12.1":0.01346,"13.1":0.07176,"14.1":0.06279,"15.1":0.04934,"15.2-15.3":0.00897,"15.4":0.01346,"15.5":0.01794,"15.6":0.22425,"16.0":0.05831,"16.1":0.0314,"16.2":0.02691,"16.3":0.06279,"16.4":0.02243,"16.5":0.04037,"16.6":0.36777,"17.0":0.01346,"17.1":0.25116,"17.2":0.02691,"17.3":0.0314,"17.4":0.06728,"17.5":0.1211,"17.6":0.42159,"18.0":0.0314,"18.1":0.08522,"18.2":0.04485,"18.3":0.23771,"18.4":0.23322,"18.5":3.05429},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.02444,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0.00977,"9.3":0.01466,"10.0-10.2":0,"10.3":0.02688,"11.0-11.2":0.28834,"11.3-11.4":0.01222,"12.0-12.1":0.00489,"12.2-12.5":0.08064,"13.0-13.1":0,"13.2":0,"13.3":0.00489,"13.4-13.7":0.01466,"14.0-14.4":0.0391,"14.5-14.8":0.0391,"15.0-15.1":0.02444,"15.2-15.3":0.02199,"15.4":0.02199,"15.5":0.02688,"15.6-15.8":0.33233,"16.0":0.04643,"16.1":0.13928,"16.2":0.06842,"16.3":0.13195,"16.4":0.02199,"16.5":0.0391,"16.6-16.7":0.64266,"17.0":0.02688,"17.1":0.05132,"17.2":0.04154,"17.3":0.06109,"17.4":0.12218,"17.5":0.25169,"17.6-17.7":0.78439,"18.0":0.11485,"18.1":0.39097,"18.2":0.16128,"18.3":0.92856,"18.4":0.99454,"18.5":18.27071,"26.0":0},P:{"21":0.02237,"24":0.01119,"25":0.01119,"26":0.03356,"27":0.06712,"28":1.45422,_:"4 20 22 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.09353,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00014,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.28683,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01749,"9":0.02915,"11":0.06997,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.94685},R:{_:"0"},M:{"0":0.54057},Q:{"14.9":0.01103},O:{"0":0.04964},H:{"0":0}}; +module.exports={C:{"11":0.07814,"38":0.00488,"43":0.00488,"44":0.0293,"45":0.00488,"52":0.02442,"78":0.02442,"88":0.01465,"94":0.00977,"102":0.00977,"103":0.00977,"104":0.00977,"108":0.00488,"112":0.00488,"113":0.01465,"115":0.35165,"117":0.00977,"118":0.34188,"120":0.00977,"121":0.01465,"122":0.01465,"123":0.02442,"124":0.10256,"125":1.15751,"126":0.95726,_:"2 3 4 5 6 7 8 9 10 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 39 40 41 42 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 95 96 97 98 99 100 101 105 106 107 109 110 111 114 116 119 127 128 129 3.5 3.6"},D:{"47":0.00488,"48":0.07326,"49":0.0293,"56":0.03907,"66":0.02442,"67":0.00488,"69":0.00977,"74":0.00488,"75":0.00488,"76":0.01465,"78":0.00488,"79":0.16606,"80":0.02442,"81":0.05861,"83":0.1221,"84":0.00977,"85":0.00977,"86":0.09768,"87":0.05372,"88":0.02442,"89":0.01465,"90":0.00977,"91":0.07814,"92":0.00977,"93":0.05372,"94":0.0293,"95":0.00977,"96":0.01465,"97":0.01465,"98":0.00977,"99":0.02442,"100":0.11722,"101":0.16606,"102":0.0928,"103":0.47375,"104":0.12698,"105":0.05372,"106":0.03907,"107":0.04884,"108":0.06838,"109":0.77656,"110":0.04396,"111":0.04396,"112":0.04884,"113":0.11233,"114":0.20513,"115":0.06838,"116":0.30281,"117":0.26862,"118":0.1514,"119":0.17094,"120":0.39072,"121":0.60073,"122":0.56166,"123":2.37362,"124":15.35041,"125":4.90842,"126":0.03907,"127":0.02442,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 68 70 71 72 73 77 128"},F:{"95":0.0293,"102":0.00488,"107":0.20513,"108":0.02442,"109":0.62515,"110":0.04884,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"87":0.00488,"109":0.07814,"112":0.00488,"113":0.00488,"114":0.00977,"115":0.00488,"116":0.00488,"117":0.00488,"118":0.00488,"119":0.00977,"120":0.0293,"121":0.0293,"122":0.06349,"123":0.30769,"124":4.19047,"125":2.28083,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111"},E:{"9":0.01465,"13":0.00977,"14":0.06349,"15":0.00977,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00488,"12.1":0.02442,"13.1":0.15629,"14.1":0.16606,"15.1":0.10745,"15.2-15.3":0.01954,"15.4":0.03907,"15.5":0.04884,"15.6":0.46398,"16.0":0.06349,"16.1":0.08791,"16.2":0.07814,"16.3":0.19536,"16.4":0.06838,"16.5":0.13675,"16.6":0.7619,"17.0":0.08303,"17.1":0.14164,"17.2":0.18071,"17.3":0.21001,"17.4":3.43345,"17.5":0.43956},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.01719,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0.01228,"9.3":0.03439,"10.0-10.2":0.00491,"10.3":0.04421,"11.0-11.2":0.12281,"11.3-11.4":0.01719,"12.0-12.1":0.01228,"12.2-12.5":0.14737,"13.0-13.1":0.00491,"13.2":0.00491,"13.3":0.00737,"13.4-13.7":0.03193,"14.0-14.4":0.06877,"14.5-14.8":0.11298,"15.0-15.1":0.04667,"15.2-15.3":0.05895,"15.4":0.07123,"15.5":0.09579,"15.6-15.8":0.77124,"16.0":0.21614,"16.1":0.59194,"16.2":0.27018,"16.3":0.4544,"16.4":0.07123,"16.5":0.14737,"16.6-16.7":1.61372,"17.0":0.12527,"17.1":0.23088,"17.2":0.25299,"17.3":0.52317,"17.4":17.26457,"17.5":1.09055,"17.6":0.00246},P:{"4":0.01133,"20":0.01133,"21":0.0453,"22":0.03398,"23":0.0453,"24":0.14724,"25":1.49503,_:"5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01133},I:{"0":0.09659,"3":0.00002,"4":0.00004,"2.1":0.00001,"2.2":0.00005,"2.3":0.00001,"4.1":0.00002,"4.2-4.3":0.00022,"4.4":0,"4.4.3-4.4.4":0.00018},K:{"0":0.30696,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01102,"9":0.03306,"11":0.17081,_:"6 7 10 5.5"},S:{"2.5":0.00512,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.49669},R:{_:"0"},M:{"0":0.51672},Q:{"14.9":0.02046},O:{"0":0.07674},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-oc.js b/node_modules/caniuse-lite/data/regions/alt-oc.js index 3784e01be..e4edd27e7 100644 --- a/node_modules/caniuse-lite/data/regions/alt-oc.js +++ b/node_modules/caniuse-lite/data/regions/alt-oc.js @@ -1 +1 @@ -module.exports={C:{"52":0.01381,"78":0.01841,"115":0.13346,"125":0.0092,"128":0.05062,"132":0.0092,"133":0.0092,"134":0.0092,"135":0.0092,"136":0.03221,"137":0.02761,"138":0.11505,"139":1.47264,"140":0.19789,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 141 142 143 3.5 3.6"},D:{"25":0.03221,"34":0.0092,"38":0.05062,"39":0.03221,"40":0.03221,"41":0.03221,"42":0.03221,"43":0.03221,"44":0.03221,"45":0.03221,"46":0.03221,"47":0.03221,"48":0.03221,"49":0.04142,"50":0.03221,"51":0.03221,"52":0.03682,"53":0.03221,"54":0.03221,"55":0.03221,"56":0.03221,"57":0.03221,"58":0.03221,"59":0.03221,"60":0.03221,"66":0.0046,"74":0.0046,"79":0.04142,"80":0.0092,"81":0.02301,"85":0.0092,"86":0.0046,"87":0.03221,"88":0.01381,"90":0.0092,"93":0.0046,"95":0.0046,"96":0.0092,"97":0.0046,"98":0.0092,"99":0.0092,"100":0.0092,"102":0.0046,"103":0.06903,"104":0.0092,"105":0.01381,"106":0.0046,"107":0.0092,"108":0.03682,"109":0.40498,"110":0.0046,"111":0.03221,"112":0.0092,"113":0.0092,"114":0.02301,"115":0.0046,"116":0.16567,"117":0.0092,"118":0.0046,"119":0.01841,"120":0.03221,"121":0.03682,"122":0.07823,"123":0.05522,"124":0.05522,"125":0.10124,"126":0.04602,"127":0.02761,"128":0.15187,"129":0.03682,"130":0.05062,"131":0.37736,"132":0.28993,"133":0.32674,"134":0.2255,"135":0.52923,"136":3.73222,"137":16.83412,"138":0.67649,"139":0.02301,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 67 68 69 70 71 72 73 75 76 77 78 83 84 89 91 92 94 101 140 141"},F:{"46":0.01381,"89":0.0092,"95":0.01381,"117":0.0092,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.0046,"109":0.07823,"114":0.0046,"120":0.0092,"122":0.0046,"124":0.0046,"126":0.0092,"127":0.0092,"128":0.0092,"129":0.01841,"130":0.01841,"131":0.02761,"132":0.02761,"133":0.01841,"134":0.08744,"135":0.06903,"136":1.01244,"137":5.25088,"138":0.41878,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 125"},E:{"13":0.0092,"14":0.02761,"15":0.0046,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.0","12.1":0.01841,"13.1":0.06903,"14.1":0.10124,"15.1":0.01381,"15.2-15.3":0.01381,"15.4":0.02301,"15.5":0.03682,"15.6":0.38197,"16.0":0.06443,"16.1":0.06903,"16.2":0.03221,"16.3":0.08744,"16.4":0.02761,"16.5":0.04142,"16.6":0.49702,"17.0":0.0092,"17.1":0.42799,"17.2":0.03221,"17.3":0.04142,"17.4":0.08744,"17.5":0.14726,"17.6":0.4602,"18.0":0.03682,"18.1":0.11505,"18.2":0.05522,"18.3":0.32214,"18.4":0.29913,"18.5":3.77824},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00223,"6.0-6.1":0.00446,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02897,"10.0-10.2":0.00446,"10.3":0.0557,"11.0-11.2":1.37924,"11.3-11.4":0.02005,"12.0-12.1":0.00446,"12.2-12.5":0.19385,"13.0-13.1":0.00223,"13.2":0,"13.3":0.00446,"13.4-13.7":0.01114,"14.0-14.4":0.02228,"14.5-14.8":0.02674,"15.0-15.1":0.02674,"15.2-15.3":0.02674,"15.4":0.02674,"15.5":0.03342,"15.6-15.8":0.48574,"16.0":0.05793,"16.1":0.1582,"16.2":0.07576,"16.3":0.12701,"16.4":0.02228,"16.5":0.05348,"16.6-16.7":0.74644,"17.0":0.03119,"17.1":0.06462,"17.2":0.04234,"17.3":0.05793,"17.4":0.08244,"17.5":0.22504,"17.6-17.7":0.7754,"18.0":0.10695,"18.1":0.36542,"18.2":0.15374,"18.3":0.83333,"18.4":0.89795,"18.5":14.95546,"26.0":0},P:{"4":0.08807,"21":0.02202,"22":0.01101,"23":0.02202,"24":0.04403,"25":0.03303,"26":0.06605,"27":0.15412,"28":2.65307,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01101},I:{"0":0.02158,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.15657,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03068,"11":0.06136,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":28.61979},R:{_:"0"},M:{"0":0.50751},Q:{"14.9":0.0108},O:{"0":0.05399},H:{"0":0}}; +module.exports={C:{"34":0.00534,"52":0.01601,"54":0.00534,"78":0.02135,"83":0.00534,"88":0.02135,"103":0.00534,"113":0.00534,"114":0.01601,"115":0.21882,"120":0.00534,"121":0.00534,"122":0.01067,"123":0.02135,"124":0.05337,"125":1.00869,"126":0.83257,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 116 117 118 119 127 128 129 3.5 3.6"},D:{"25":0.02135,"34":0.01067,"35":0.03202,"38":0.08539,"49":0.01601,"51":0.00534,"52":0.00534,"59":0.01067,"63":0.00534,"66":0.02135,"68":0.00534,"69":0.00534,"70":0.00534,"72":0.00534,"74":0.01067,"76":0.00534,"78":0.00534,"79":0.06404,"80":0.01067,"81":0.0427,"83":0.00534,"85":0.01067,"86":0.0427,"87":0.05871,"88":0.0427,"89":0.01067,"90":0.02135,"91":0.01601,"93":0.02135,"94":0.02669,"95":0.00534,"96":0.00534,"97":0.01067,"98":0.02135,"99":0.02135,"100":0.0427,"101":0.06938,"102":0.04803,"103":0.22415,"104":0.05337,"105":0.03202,"106":0.01067,"107":0.01601,"108":0.03202,"109":0.8219,"110":0.02669,"111":0.02135,"112":0.03202,"113":0.1441,"114":0.16545,"115":0.02669,"116":0.43763,"117":0.03736,"118":0.03736,"119":0.11741,"120":0.22415,"121":0.29887,"122":0.6351,"123":2.24688,"124":20.16852,"125":6.37772,"126":0.01601,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 36 37 39 40 41 42 43 44 45 46 47 48 50 53 54 55 56 57 58 60 61 62 64 65 67 71 73 75 77 84 92 127 128"},F:{"46":0.02669,"95":0.01067,"107":0.20814,"108":0.01601,"109":0.65111,"110":0.02669,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01067,"109":0.08539,"113":0.01601,"114":0.01067,"115":0.01067,"116":0.00534,"117":0.00534,"118":0.01067,"119":0.01601,"120":0.0427,"121":0.03202,"122":0.09073,"123":0.2882,"124":4.97408,"125":2.52974,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112"},E:{"9":0.01067,"13":0.02135,"14":0.07472,"15":0.01601,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 10.1 11.1 17.6","9.1":0.02135,"12.1":0.02135,"13.1":0.13343,"14.1":0.21348,"15.1":0.03202,"15.2-15.3":0.03736,"15.4":0.05337,"15.5":0.08539,"15.6":0.74184,"16.0":0.05871,"16.1":0.13876,"16.2":0.09607,"16.3":0.23483,"16.4":0.06938,"16.5":0.12809,"16.6":0.79521,"17.0":0.05871,"17.1":0.14944,"17.2":0.16545,"17.3":0.23483,"17.4":3.65585,"17.5":0.37359},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00387,"6.0-6.1":0.00774,"7.0-7.1":0.0058,"8.1-8.4":0.00387,"9.0-9.2":0.0058,"9.3":0.05611,"10.0-10.2":0.01161,"10.3":0.09093,"11.0-11.2":1.17628,"11.3-11.4":0.03095,"12.0-12.1":0.02322,"12.2-12.5":0.34631,"13.0-13.1":0.00774,"13.2":0.00774,"13.3":0.00967,"13.4-13.7":0.03289,"14.0-14.4":0.07739,"14.5-14.8":0.10447,"15.0-15.1":0.0503,"15.2-15.3":0.05611,"15.4":0.05804,"15.5":0.09286,"15.6-15.8":0.84545,"16.0":0.20121,"16.1":0.53397,"16.2":0.22055,"16.3":0.41402,"16.4":0.06191,"16.5":0.12188,"16.6-16.7":1.37362,"17.0":0.07158,"17.1":0.17993,"17.2":0.18186,"17.3":0.36565,"17.4":11.91956,"17.5":0.59008,"17.6":0},P:{"4":0.16869,"20":0.02249,"21":0.05623,"22":0.04498,"23":0.08997,"24":0.22492,"25":2.19298,"5.0-5.4":0.02249,"6.2-6.4":0.01125,_:"7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","13.0":0.01125,"17.0":0.01125,"19.0":0.01125},I:{"0":0.06493,"3":0,"4":0.00005,"2.1":0.00001,"2.2":0.00003,"2.3":0.00003,"4.1":0.00002,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.14455,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05337,"11":0.10674,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":24.12134},R:{_:"0"},M:{"0":0.40568},Q:{"14.9":0.01399},O:{"0":0.05129},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-sa.js b/node_modules/caniuse-lite/data/regions/alt-sa.js index 21f981b5c..4612de8e6 100644 --- a/node_modules/caniuse-lite/data/regions/alt-sa.js +++ b/node_modules/caniuse-lite/data/regions/alt-sa.js @@ -1 +1 @@ -module.exports={C:{"4":0.02545,"52":0.00463,"91":0.00463,"115":0.07868,"120":0.00463,"128":0.03471,"133":0.00231,"134":0.00463,"135":0.00463,"136":0.00926,"137":0.00694,"138":0.03934,"139":0.5461,"140":0.08562,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 132 141 142 143 3.5 3.6"},D:{"39":0.0162,"40":0.0162,"41":0.0162,"42":0.0162,"43":0.0162,"44":0.0162,"45":0.0162,"46":0.0162,"47":0.0162,"48":0.01851,"49":0.01851,"50":0.0162,"51":0.0162,"52":0.0162,"53":0.0162,"54":0.0162,"55":0.0162,"56":0.0162,"57":0.0162,"58":0.0162,"59":0.0162,"60":0.0162,"66":0.00463,"75":0.00463,"78":0.00463,"79":0.0162,"81":0.00463,"85":0.00231,"86":0.00463,"87":0.02083,"88":0.00463,"91":0.00231,"96":0.00463,"98":0.00231,"102":0.00231,"103":0.0162,"104":0.0162,"105":0.00463,"106":0.00694,"107":0.00463,"108":0.01388,"109":0.64561,"110":0.00694,"111":0.01388,"112":0.00463,"113":0.00231,"114":0.00694,"115":0.00231,"116":0.02777,"118":0.00463,"119":0.01157,"120":0.01388,"121":0.01388,"122":0.03702,"123":0.01157,"124":0.02083,"125":0.81221,"126":0.02777,"127":0.02083,"128":0.06942,"129":0.01851,"130":0.02777,"131":0.1481,"132":0.06016,"133":0.04859,"134":0.06711,"135":0.13884,"136":1.45319,"137":11.45893,"138":0.52296,"139":0.00463,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 74 76 77 80 83 84 89 90 92 93 94 95 97 99 100 101 117 140 141"},F:{"89":0.00463,"90":0.00463,"95":0.01388,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00694,"109":0.0162,"122":0.00231,"129":0.00231,"130":0.00463,"131":0.01157,"132":0.00694,"133":0.00463,"134":0.02777,"135":0.0162,"136":0.30776,"137":1.87434,"138":0.17818,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 26.0","5.1":0.00463,"13.1":0.00231,"14.1":0.00463,"15.6":0.0162,"16.1":0.00231,"16.3":0.00231,"16.5":0.00231,"16.6":0.02083,"17.1":0.00694,"17.3":0.00231,"17.4":0.00694,"17.5":0.00926,"17.6":0.03008,"18.0":0.00463,"18.1":0.00694,"18.2":0.00463,"18.3":0.01851,"18.4":0.02545,"18.5":0.20595},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00066,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00332,"10.0-10.2":0.00066,"10.3":0.00166,"11.0-11.2":0.2726,"11.3-11.4":0.00664,"12.0-12.1":0,"12.2-12.5":0.00631,"13.0-13.1":0,"13.2":0.00066,"13.3":0,"13.4-13.7":0,"14.0-14.4":0.00066,"14.5-14.8":0.00066,"15.0-15.1":0.00133,"15.2-15.3":0.00166,"15.4":0.00133,"15.5":0.00299,"15.6-15.8":0.07106,"16.0":0.00896,"16.1":0.02025,"16.2":0.00797,"16.3":0.01561,"16.4":0.00365,"16.5":0.00498,"16.6-16.7":0.14278,"17.0":0.00365,"17.1":0.00498,"17.2":0.00398,"17.3":0.00764,"17.4":0.01162,"17.5":0.03719,"17.6-17.7":0.09463,"18.0":0.02723,"18.1":0.06973,"18.2":0.02324,"18.3":0.16303,"18.4":0.16303,"18.5":2.11141,"26.0":0},P:{"24":0.0111,"25":0.0111,"26":0.03331,"27":0.03331,"28":0.68832,_:"4 20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0222},I:{"0":0.46107,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.1076,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01377,"9":0.00275,"10":0.00551,"11":0.03581,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":73.0035},R:{_:"0"},M:{"0":0.06917},Q:{_:"14.9"},O:{"0":0.01537},H:{"0":0}}; +module.exports={C:{"4":0.07202,"52":0.0192,"59":0.0144,"78":0.0096,"88":0.0144,"91":0.0144,"102":0.0048,"103":0.0096,"113":0.0048,"115":0.26886,"117":0.0096,"120":0.0096,"121":0.0096,"122":0.0096,"123":0.0192,"124":0.03361,"125":0.68654,"126":0.61453,"127":0.0048,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 114 116 118 119 128 129 3.5 3.6"},D:{"38":0.0144,"47":0.0048,"49":0.0192,"55":0.0048,"66":0.05281,"71":0.0048,"75":0.0096,"76":0.0048,"77":0.0048,"78":0.0048,"79":0.05281,"81":0.0096,"85":0.0048,"86":0.0096,"87":0.04801,"88":0.0096,"89":0.0048,"90":0.0048,"91":0.26406,"92":0.0144,"93":0.10082,"94":0.0096,"95":0.0048,"96":0.0096,"97":0.0048,"98":0.0048,"99":0.0096,"100":0.0096,"101":0.0048,"102":0.0096,"103":0.05761,"104":0.0144,"105":0.0192,"106":0.0192,"107":0.02401,"108":0.02881,"109":3.80719,"110":0.0192,"111":0.0192,"112":0.02401,"113":0.0192,"114":0.05281,"115":0.03841,"116":0.11042,"117":0.0192,"118":0.02881,"119":0.07202,"120":0.12483,"121":0.13443,"122":0.28326,"123":0.69615,"124":19.38644,"125":8.06088,"126":0.0144,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 67 68 69 70 72 73 74 80 83 84 127 128"},F:{"95":0.04801,"107":0.80177,"108":0.0144,"109":2.45331,"110":0.06721,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.0192,"17":0.0048,"92":0.0192,"109":0.04321,"114":0.0048,"119":0.0048,"120":0.0144,"121":0.0144,"122":0.02881,"123":0.11522,"124":2.71737,"125":1.53632,_:"12 13 14 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118"},E:{"14":0.0048,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 16.0 17.6","5.1":0.02881,"11.1":0.0144,"13.1":0.0144,"14.1":0.02401,"15.1":0.0144,"15.4":0.0048,"15.5":0.0048,"15.6":0.05281,"16.1":0.0096,"16.2":0.0048,"16.3":0.0192,"16.4":0.0096,"16.5":0.0144,"16.6":0.05761,"17.0":0.0144,"17.1":0.0192,"17.2":0.02881,"17.3":0.02401,"17.4":0.33127,"17.5":0.06721},G:{"8":0,"3.2":0.00067,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00201,"6.0-6.1":0.00067,"7.0-7.1":0.00201,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01408,"10.0-10.2":0,"10.3":0.00871,"11.0-11.2":0.03217,"11.3-11.4":0.00938,"12.0-12.1":0.00603,"12.2-12.5":0.04826,"13.0-13.1":0.00134,"13.2":0,"13.3":0.00134,"13.4-13.7":0.00335,"14.0-14.4":0.01005,"14.5-14.8":0.02547,"15.0-15.1":0.00603,"15.2-15.3":0.01139,"15.4":0.01139,"15.5":0.02078,"15.6-15.8":0.36329,"16.0":0.07976,"16.1":0.16288,"16.2":0.06435,"16.3":0.13003,"16.4":0.01609,"16.5":0.03955,"16.6-16.7":0.59789,"17.0":0.04089,"17.1":0.07507,"17.2":0.07105,"17.3":0.17427,"17.4":4.35615,"17.5":0.309,"17.6":0},P:{"4":0.05301,"20":0.0106,"21":0.04241,"22":0.04241,"23":0.07421,"24":0.14843,"25":1.6433,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.11662,"17.0":0.03181,"19.0":0.0212},I:{"0":0.03629,"3":0,"4":0.00001,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.2548,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00518,"11":0.19166,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":43.22462},R:{_:"0"},M:{"0":0.1248},Q:{_:"14.9"},O:{"0":0.0416},H:{"0":0}}; diff --git a/node_modules/caniuse-lite/data/regions/alt-ww.js b/node_modules/caniuse-lite/data/regions/alt-ww.js index fc1b13dc1..5e269ba98 100644 --- a/node_modules/caniuse-lite/data/regions/alt-ww.js +++ b/node_modules/caniuse-lite/data/regions/alt-ww.js @@ -1 +1 @@ -module.exports={C:{"11":0.04584,"52":0.02468,"59":0.00705,"78":0.01058,"94":0.00353,"115":0.23624,"118":0.11636,"120":0.00353,"125":0.00353,"127":0.00353,"128":0.08462,"132":0.00353,"133":0.00705,"134":0.00705,"135":0.01058,"136":0.01763,"137":0.01763,"138":0.07052,"139":1.12832,"140":0.1622,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 121 122 123 124 126 129 130 131 141 142 143 3.5 3.6"},D:{"38":0.00353,"39":0.00705,"40":0.00705,"41":0.00705,"42":0.00705,"43":0.00705,"44":0.00705,"45":0.01058,"46":0.00705,"47":0.01058,"48":0.01763,"49":0.01763,"50":0.01058,"51":0.00705,"52":0.01058,"53":0.01058,"54":0.00705,"55":0.00705,"56":0.01763,"57":0.00705,"58":0.01058,"59":0.00705,"60":0.00705,"66":0.02116,"68":0.00353,"69":0.01058,"70":0.01763,"72":0.00353,"73":0.00705,"74":0.00705,"75":0.00353,"76":0.00353,"77":0.00705,"78":0.01058,"79":0.05994,"80":0.01058,"81":0.01763,"83":0.02821,"84":0.00353,"85":0.00705,"86":0.0141,"87":0.03526,"88":0.01058,"89":0.00353,"90":0.00705,"91":0.02468,"92":0.01058,"93":0.01058,"94":0.01058,"95":0.00353,"96":0.00705,"97":0.01763,"98":0.04231,"99":0.0141,"100":0.00705,"101":0.02116,"102":0.0141,"103":0.07052,"104":0.03173,"105":0.01763,"106":0.01763,"107":0.02116,"108":0.03526,"109":0.75809,"110":0.0141,"111":0.03173,"112":1.87231,"113":0.0141,"114":0.04584,"115":0.02468,"116":0.13751,"117":0.06347,"118":0.05642,"119":0.04231,"120":0.04936,"121":0.04231,"122":0.07052,"123":0.16572,"124":0.06347,"125":0.41959,"126":0.06699,"127":0.02821,"128":0.0811,"129":0.04936,"130":0.08815,"131":0.56063,"132":0.33144,"133":0.32792,"134":0.23624,"135":0.34555,"136":2.00277,"137":11.33256,"138":0.45133,"139":0.0141,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 67 71 140 141"},F:{"40":0.00353,"46":0.00705,"89":0.03173,"90":0.01763,"95":0.03173,"102":0.06699,"113":0.00353,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00353,"92":0.01058,"96":0.00705,"108":0.00353,"109":0.04231,"113":0.00705,"114":0.01058,"115":0.00353,"118":0.00353,"119":0.00353,"120":0.03173,"121":0.00705,"122":0.0141,"123":0.00353,"124":0.00705,"125":0.00705,"126":0.0141,"127":0.0141,"128":0.01058,"129":0.01058,"130":0.0141,"131":0.03173,"132":0.01763,"133":0.02116,"134":0.05642,"135":0.05289,"136":0.58532,"137":3.31444,"138":0.26798,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 110 111 112 116 117"},E:{"14":0.01058,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.0","11.1":0.00353,"12.1":0.00705,"13.1":0.02821,"14.1":0.03173,"15.1":0.0141,"15.2-15.3":0.00353,"15.4":0.00705,"15.5":0.01058,"15.6":0.11636,"16.0":0.02468,"16.1":0.01763,"16.2":0.0141,"16.3":0.02821,"16.4":0.01058,"16.5":0.01763,"16.6":0.16572,"17.0":0.01058,"17.1":0.11283,"17.2":0.01763,"17.3":0.0141,"17.4":0.03173,"17.5":0.05642,"17.6":0.17277,"18.0":0.01763,"18.1":0.04231,"18.2":0.02116,"18.3":0.11283,"18.4":0.10578,"18.5":1.27289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0027,"5.0-5.1":0,"6.0-6.1":0.0054,"7.0-7.1":0.0054,"8.1-8.4":0,"9.0-9.2":0.0027,"9.3":0.01621,"10.0-10.2":0.00135,"10.3":0.02702,"11.0-11.2":0.17294,"11.3-11.4":0.00946,"12.0-12.1":0.0027,"12.2-12.5":0.09053,"13.0-13.1":0.00135,"13.2":0.00405,"13.3":0.0027,"13.4-13.7":0.01486,"14.0-14.4":0.03513,"14.5-14.8":0.03513,"15.0-15.1":0.02432,"15.2-15.3":0.02432,"15.4":0.02972,"15.5":0.03243,"15.6-15.8":0.41885,"16.0":0.0554,"16.1":0.11349,"16.2":0.0581,"16.3":0.10674,"16.4":0.02432,"16.5":0.04324,"16.6-16.7":0.52559,"17.0":0.02837,"17.1":0.04999,"17.2":0.03918,"17.3":0.0554,"17.4":0.09863,"17.5":0.20672,"17.6-17.7":0.54045,"18.0":0.13376,"18.1":0.3013,"18.2":0.15943,"18.3":0.68502,"18.4":0.7269,"18.5":8.52154,"26.0":0},P:{"21":0.02174,"22":0.02174,"23":0.02174,"24":0.0326,"25":0.04347,"26":0.06521,"27":0.11955,"28":1.76066,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01087},I:{"0":0.67215,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00013,"4.4":0,"4.4.3-4.4.4":0.00054},K:{"0":0.89226,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0405,"9":0.027,"11":0.40499,_:"6 7 10 5.5"},S:{"2.5":0.01295,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":47.98175},R:{_:"0"},M:{"0":0.3237},Q:{"14.9":0.19422},O:{"0":0.80278},H:{"0":0.04}}; +module.exports={C:{"4":0.00379,"11":0.01894,"43":0.00757,"44":0.00757,"45":0.00757,"50":0.00757,"52":0.05302,"53":0.00379,"54":0.00379,"56":0.02272,"59":0.00379,"78":0.01515,"88":0.01136,"94":0.00379,"102":0.01136,"103":0.01136,"108":0.00379,"113":0.01136,"115":0.409,"117":0.00757,"118":0.07953,"120":0.00757,"121":0.00757,"122":0.01136,"123":0.01515,"124":0.06817,"125":0.84829,"126":0.74225,"127":0.00379,_:"2 3 5 6 7 8 9 10 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 46 47 48 49 51 55 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 95 96 97 98 99 100 101 104 105 106 107 109 110 111 112 114 116 119 128 129 3.5 3.6"},D:{"34":0.00757,"38":0.01515,"47":0.00379,"48":0.02272,"49":0.02651,"50":0.01136,"52":0.00379,"53":0.00379,"56":0.01136,"58":0.00379,"61":0.00379,"63":0.00379,"66":0.02272,"67":0.00757,"69":0.0303,"70":0.01136,"71":0.00379,"73":0.01136,"74":0.00757,"75":0.00757,"76":0.00757,"77":0.00757,"78":0.01515,"79":0.12497,"80":0.01136,"81":0.02272,"83":0.03787,"84":0.00757,"85":0.01136,"86":0.04923,"87":0.06817,"88":0.01515,"89":0.01136,"90":0.01136,"91":0.03787,"92":0.01894,"93":0.0303,"94":0.0303,"95":0.01136,"96":0.01136,"97":0.01515,"98":0.07195,"99":0.0303,"100":0.04544,"101":0.06817,"102":0.04544,"103":0.17042,"104":0.09468,"105":0.02651,"106":0.03408,"107":0.0303,"108":0.04544,"109":1.50723,"110":0.02272,"111":0.03787,"112":0.03787,"113":0.06438,"114":0.10982,"115":0.04544,"116":0.23101,"117":0.10225,"118":0.07953,"119":0.09089,"120":0.18556,"121":0.37491,"122":0.29539,"123":1.10959,"124":12.69024,"125":4.65422,"126":0.01894,"127":0.00757,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 46 51 54 55 57 59 60 62 64 65 68 72 128"},F:{"40":0.00379,"46":0.01515,"95":0.04544,"102":0.07195,"106":0.00757,"107":0.18935,"108":0.01515,"109":0.75361,"110":0.04544,_:"9 11 12 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 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00379,"18":0.00757,"92":0.01136,"107":0.00379,"108":0.00757,"109":0.06438,"110":0.00379,"111":0.00757,"112":0.00757,"113":0.01136,"114":0.01515,"115":0.00757,"116":0.00757,"117":0.01136,"118":0.00757,"119":0.01515,"120":0.03408,"121":0.02651,"122":0.06438,"123":0.17042,"124":2.89706,"125":1.58675,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106"},E:{"9":0.00379,"13":0.00757,"14":0.03408,"15":0.00757,_:"0 4 5 6 7 8 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 17.6","11.1":0.00757,"12.1":0.01515,"13.1":0.06438,"14.1":0.09089,"15.1":0.03408,"15.2-15.3":0.01136,"15.4":0.02651,"15.5":0.03408,"15.6":0.24616,"16.0":0.0303,"16.1":0.04923,"16.2":0.04166,"16.3":0.09846,"16.4":0.0303,"16.5":0.06059,"16.6":0.34462,"17.0":0.03787,"17.1":0.06817,"17.2":0.08331,"17.3":0.09846,"17.4":1.55267,"17.5":0.18935},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00292,"5.0-5.1":0.00292,"6.0-6.1":0.00729,"7.0-7.1":0.01021,"8.1-8.4":0.00292,"9.0-9.2":0.00729,"9.3":0.03354,"10.0-10.2":0.00583,"10.3":0.05249,"11.0-11.2":0.07728,"11.3-11.4":0.01458,"12.0-12.1":0.00875,"12.2-12.5":0.21144,"13.0-13.1":0.00437,"13.2":0.02041,"13.3":0.01021,"13.4-13.7":0.04666,"14.0-14.4":0.0802,"14.5-14.8":0.12395,"15.0-15.1":0.05979,"15.2-15.3":0.06562,"15.4":0.07437,"15.5":0.09332,"15.6-15.8":0.83992,"16.0":0.19102,"16.1":0.39371,"16.2":0.19102,"16.3":0.33101,"16.4":0.06999,"16.5":0.14144,"16.6-16.7":1.12718,"17.0":0.12249,"17.1":0.19977,"17.2":0.20852,"17.3":0.38496,"17.4":8.74186,"17.5":0.61681,"17.6":0},P:{"4":0.15052,"20":0.0215,"21":0.05376,"22":0.06451,"23":0.11827,"24":0.22578,"25":1.98901,"5.0-5.4":0.01075,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0","7.2-7.4":0.04301,"11.1-11.2":0.01075,"13.0":0.01075,"17.0":0.0215,"18.0":0.01075,"19.0":0.0215},I:{"0":0.21042,"3":0,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00004,"4.2-4.3":0.00013,"4.4":0,"4.4.3-4.4.4":0.00046},K:{"0":1.24201,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02733,"9":0.06833,"11":0.53298,_:"6 7 10 5.5"},S:{"2.5":0.0932,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":42.35456},R:{_:"0"},M:{"0":0.31686},Q:{"14.9":0.29822},O:{"0":0.91952},H:{"0":0.1}}; diff --git a/node_modules/caniuse-lite/package.json b/node_modules/caniuse-lite/package.json index 80e68f0e1..99c36efd5 100644 --- a/node_modules/caniuse-lite/package.json +++ b/node_modules/caniuse-lite/package.json @@ -1,6 +1,6 @@ { "name": "caniuse-lite", - "version": "1.0.30001727", + "version": "1.0.30001646", "description": "A smaller version of caniuse-db, with only the essentials!", "main": "dist/unpacker/index.js", "files": [ diff --git a/node_modules/cjs-module-lexer/LICENSE b/node_modules/cjs-module-lexer/LICENSE index 935b35796..b31c17aa3 100644 --- a/node_modules/cjs-module-lexer/LICENSE +++ b/node_modules/cjs-module-lexer/LICENSE @@ -1,10 +1,10 @@ -MIT License ------------ - -Copyright (C) 2018-2020 Guy Bedford - -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. +MIT License +----------- + +Copyright (C) 2018-2020 Guy Bedford + +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/cjs-module-lexer/README.md b/node_modules/cjs-module-lexer/README.md index 27167090a..852cad214 100644 --- a/node_modules/cjs-module-lexer/README.md +++ b/node_modules/cjs-module-lexer/README.md @@ -1,462 +1,461 @@ -# CJS Module Lexer - -[![Build Status][travis-image]][travis-url] - -A [very fast](#benchmarks) JS CommonJS module syntax lexer used to detect the most likely list of named exports of a CommonJS module. - -Outputs the list of named exports (`exports.name = ...`) and possible module reexports (`module.exports = require('...')`), including the common transpiler variations of these cases. - -Forked from https://github.com/guybedford/es-module-lexer. - -_Comprehensively handles the JS language grammar while remaining small and fast. - ~90ms per MB of JS cold and ~15ms per MB of JS warm, [see benchmarks](#benchmarks) for more info._ - -### Project Status - -This project is used in Node.js core for detecting the named exports available when importing a CJS module into ESM, and is maintained for this purpose. - -PRs will be accepted and upstreamed for parser bugs, performance improvements or new syntax support only. - -_Detection patterns for this project are **frozen**_. This is because adding any new export detection patterns would result in fragmented backwards-compatibility. Specifically, it would be very difficult to figure out why an ES module named export for CommonJS might work in newer Node.js versions but not older versions. This problem would only be discovered downstream of module authors, with the fix for module authors being to then have to understand which patterns in this project provide full backwards-compatibily. Rather, by fully freezing the detected patterns, if it works in any Node.js version it will work in any other. Build tools can also reliably treat the supported syntax for this project as a part of their output target for ensuring syntax support. - -### Usage - -``` -npm install cjs-module-lexer -``` - -For use in CommonJS: - -```js -const { parse } = require('cjs-module-lexer'); - -// `init` return a promise for parity with the ESM API, but you do not have to call it - -const { exports, reexports } = parse(` - // named exports detection - module.exports.a = 'a'; - (function () { - exports.b = 'b'; - })(); - Object.defineProperty(exports, 'c', { value: 'c' }); - /* exports.d = 'not detected'; */ - - // reexports detection - if (maybe) module.exports = require('./dep1.js'); - if (another) module.exports = require('./dep2.js'); - - // literal exports assignments - module.exports = { a, b: c, d, 'e': f } - - // __esModule detection - Object.defineProperty(module.exports, '__esModule', { value: true }) -`); - -// exports === ['a', 'b', 'c', '__esModule'] -// reexports === ['./dep1.js', './dep2.js'] -``` - -When using the ESM version, Wasm is supported instead: - -```js -import { parse, init } from 'cjs-module-lexer'; -// init() needs to be called and waited upon, or use initSync() to compile -// Wasm blockingly and synchronously. -await init(); -const { exports, reexports } = parse(source); -``` - -The Wasm build is around 1.5x faster and without a cold start. - -### Grammar - -CommonJS exports matches are run against the source token stream. - -The token grammar is: - -``` -IDENTIFIER: As defined by ECMA-262, without support for identifier `\` escapes, filtered to remove strict reserved words: - "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "enum" - -STRING_LITERAL: A `"` or `'` bounded ECMA-262 string literal. - -MODULE_EXPORTS: `module` `.` `exports` - -EXPORTS_IDENTIFIER: MODULE_EXPORTS_IDENTIFIER | `exports` - -EXPORTS_DOT_ASSIGN: EXPORTS_IDENTIFIER `.` IDENTIFIER `=` - -EXPORTS_LITERAL_COMPUTED_ASSIGN: EXPORTS_IDENTIFIER `[` STRING_LITERAL `]` `=` - -EXPORTS_LITERAL_PROP: (IDENTIFIER (`:` IDENTIFIER)?) | (STRING_LITERAL `:` IDENTIFIER) - -EXPORTS_SPREAD: `...` (IDENTIFIER | REQUIRE) - -EXPORTS_MEMBER: EXPORTS_DOT_ASSIGN | EXPORTS_LITERAL_COMPUTED_ASSIGN - -EXPORTS_DEFINE: `Object` `.` `defineProperty `(` EXPORTS_IDENFITIER `,` STRING_LITERAL - -EXPORTS_DEFINE_VALUE: EXPORTS_DEFINE `, {` - (`enumerable: true,`)? - ( - `value:` | - `get` (`: function` IDENTIFIER? )? `() {` return IDENTIFIER (`.` IDENTIFIER | `[` STRING_LITERAL `]`)? `;`? `}` `,`? - ) - `})` - -EXPORTS_LITERAL: MODULE_EXPORTS `=` `{` (EXPORTS_LITERAL_PROP | EXPORTS_SPREAD) `,`)+ `}` - -REQUIRE: `require` `(` STRING_LITERAL `)` - -EXPORTS_ASSIGN: (`var` | `const` | `let`) IDENTIFIER `=` (`_interopRequireWildcard (`)? REQUIRE - -MODULE_EXPORTS_ASSIGN: MODULE_EXPORTS `=` REQUIRE - -EXPORT_STAR: (`__export` | `__exportStar`) `(` REQUIRE - -EXPORT_STAR_LIB: `Object.keys(` IDENTIFIER$1 `).forEach(function (` IDENTIFIER$2 `) {` - ( - ( - `if (` IDENTIFIER$2 `===` ( `'default'` | `"default"` ) `||` IDENTIFIER$2 `===` ( '__esModule' | `"__esModule"` ) `) return` `;`? - ( - (`if (Object` `.prototype`? `.hasOwnProperty.call(` IDENTIFIER `, ` IDENTIFIER$2 `)) return` `;`?)? - (`if (` IDENTIFIER$2 `in` EXPORTS_IDENTIFIER `&&` EXPORTS_IDENTIFIER `[` IDENTIFIER$2 `] ===` IDENTIFIER$1 `[` IDENTIFIER$2 `]) return` `;`)? - )? - ) | - `if (` IDENTIFIER$2 `!==` ( `'default'` | `"default"` ) (`&& !` (`Object` `.prototype`? `.hasOwnProperty.call(` IDENTIFIER `, ` IDENTIFIER$2 `)` | IDENTIFIER `.hasOwnProperty(` IDENTIFIER$2 `)`))? `)` - ) - ( - EXPORTS_IDENTIFIER `[` IDENTIFIER$2 `] =` IDENTIFIER$1 `[` IDENTIFIER$2 `]` `;`? | - `Object.defineProperty(` EXPORTS_IDENTIFIER `, ` IDENTIFIER$2 `, { enumerable: true, get` (`: function` IDENTIFIER? )? `() { return ` IDENTIFIER$1 `[` IDENTIFIER$2 `]` `;`? `}` `,`? `})` `;`? - ) - `})` -``` - -Spacing between tokens is taken to be any ECMA-262 whitespace, ECMA-262 block comment or ECMA-262 line comment. - -* The returned export names are taken to be the combination of: - 1. All `IDENTIFIER` and `STRING_LITERAL` slots for `EXPORTS_MEMBER` and `EXPORTS_LITERAL` matches. - 2. The first `STRING_LITERAL` slot for all `EXPORTS_DEFINE_VALUE` matches where that same string is not an `EXPORTS_DEFINE` match that is not also an `EXPORTS_DEFINE_VALUE` match. -* The reexport specifiers are taken to be the combination of: - 1. The `REQUIRE` matches of the last matched of either `MODULE_EXPORTS_ASSIGN` or `EXPORTS_LITERAL`. - 2. All _top-level_ `EXPORT_STAR` `REQUIRE` matches and `EXPORTS_ASSIGN` matches whose `IDENTIFIER` also matches the first `IDENTIFIER` in `EXPORT_STAR_LIB`. - -### Parsing Examples - -#### Named Exports Parsing - -The basic matching rules for named exports are `exports.name`, `exports['name']` or `Object.defineProperty(exports, 'name', ...)`. This matching is done without scope analysis and regardless of the expression position: - -```js -// DETECTS EXPORTS: a, b -(function (exports) { - exports.a = 'a'; - exports['b'] = 'b'; -})(exports); -``` - -Because there is no scope analysis, the above detection may overclassify: - -```js -// DETECTS EXPORTS: a, b, c -(function (exports, Object) { - exports.a = 'a'; - exports['b'] = 'b'; - if (false) - exports.c = 'c'; -})(NOT_EXPORTS, NOT_OBJECT); -``` - -It will in turn underclassify in cases where the identifiers are renamed: - -```js -// DETECTS: NO EXPORTS -(function (e) { - e.a = 'a'; - e['b'] = 'b'; -})(exports); -``` - -#### Getter Exports Parsing - -`Object.defineProperty` is detected for specifically value and getter forms returning an identifier or member expression: - -```js -// DETECTS: a, b, c, d, __esModule -Object.defineProperty(exports, 'a', { - enumerable: true, - get: function () { - return q.p; - } -}); -Object.defineProperty(exports, 'b', { - enumerable: true, - get: function () { - return q['p']; - } -}); -Object.defineProperty(exports, 'c', { - enumerable: true, - get () { - return b; - } -}); -Object.defineProperty(exports, 'd', { value: 'd' }); -Object.defineProperty(exports, '__esModule', { value: true }); -``` - -Value properties are also detected specifically: - -```js -Object.defineProperty(exports, 'a', { - value: 'no problem' -}); -``` - -To avoid matching getters that have side effects, any getter for an export name that does not support the forms above will -opt-out of the getter matching: - -```js -// DETECTS: NO EXPORTS -Object.defineProperty(exports, 'a', { - get () { - return 'nope'; - } -}); - -if (false) { - Object.defineProperty(module.exports, 'a', { - get () { - return dynamic(); - } - }) -} -``` - -Alternative object definition structures or getter function bodies are not detected: - -```js -// DETECTS: NO EXPORTS -Object.defineProperty(exports, 'a', { - enumerable: false, - get () { - return p; - } -}); -Object.defineProperty(exports, 'b', { - configurable: true, - get () { - return p; - } -}); -Object.defineProperty(exports, 'c', { - get: () => p -}); -Object.defineProperty(exports, 'd', { - enumerable: true, - get: function () { - return dynamic(); - } -}); -Object.defineProperty(exports, 'e', { - enumerable: true, - get () { - return 'str'; - } -}); -``` - -`Object.defineProperties` is also not supported. - -#### Exports Object Assignment - -A best-effort is made to detect `module.exports` object assignments, but because this is not a full parser, arbitrary expressions are not handled in the -object parsing process. - -Simple object definitions are supported: - -```js -// DETECTS EXPORTS: a, b, c -module.exports = { - a, - 'b': b, - c: c, - ...d -}; -``` - -Object properties that are not identifiers or string expressions will bail out of the object detection, while spreads are ignored: - -```js -// DETECTS EXPORTS: a, b -module.exports = { - a, - ...d, - b: require('c'), - c: "not detected since require('c') above bails the object detection" -} -``` - -`Object.defineProperties` is not currently supported either. - -#### module.exports reexport assignment - -Any `module.exports = require('mod')` assignment is detected as a reexport, but only the last one is returned: - -```js -// DETECTS REEXPORTS: c -module.exports = require('a'); -(module => module.exports = require('b'))(NOT_MODULE); -if (false) module.exports = require('c'); -``` - -This is to avoid over-classification in Webpack bundles with externals which include `module.exports = require('external')` in their source for every external dependency. - -In exports object assignment, any spread of `require()` are detected as multiple separate reexports: - -```js -// DETECTS REEXPORTS: a, b -module.exports = require('ignored'); -module.exports = { - ...require('a'), - ...require('b') -}; -``` - -#### Transpiler Re-exports - -For named exports, transpiler output works well with the rules described above. - -But for star re-exports, special care is taken to support common patterns of transpiler outputs from Babel and TypeScript as well as bundlers like RollupJS. -These reexport and star reexport patterns are restricted to only be detected at the top-level as provided by the direct output of these tools. - -For example, `export * from 'external'` is output by Babel as: - -```js -"use strict"; - -exports.__esModule = true; - -var _external = require("external"); - -Object.keys(_external).forEach(function (key) { - if (key === "default" || key === "__esModule") return; - exports[key] = _external[key]; -}); -``` - -Where the `var _external = require("external")` is specifically detected as well as the `Object.keys(_external)` statement, down to the exact -for of that entire expression including minor variations of the output. The `_external` and `key` identifiers are carefully matched in this -detection. - -Similarly for TypeScript, `export * from 'external'` is output as: - -```js -"use strict"; -function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; -} -Object.defineProperty(exports, "__esModule", { value: true }); -__export(require("external")); -``` - -Where the `__export(require("external"))` statement is explicitly detected as a reexport, including variations `tslib.__export` and `__exportStar`. - -### Environment Support - -Node.js 10+, and [all browsers with Web Assembly support](https://caniuse.com/#feat=wasm). - -### JS Grammar Support - -* Token state parses all line comments, block comments, strings, template strings, blocks, parens and punctuators. -* Division operator / regex token ambiguity is handled via backtracking checks against punctuator prefixes, including closing brace or paren backtracking. -* Always correctly parses valid JS source, but may parse invalid JS source without errors. - -### Benchmarks - -Benchmarks can be run with `npm run bench`. - -Current results: - -JS Build: - -``` -Module load time -> 4ms -Cold Run, All Samples -test/samples/*.js (3635 KiB) -> 299ms - -Warm Runs (average of 25 runs) -test/samples/angular.js (1410 KiB) -> 13.96ms -test/samples/angular.min.js (303 KiB) -> 4.72ms -test/samples/d3.js (553 KiB) -> 6.76ms -test/samples/d3.min.js (250 KiB) -> 4ms -test/samples/magic-string.js (34 KiB) -> 0.64ms -test/samples/magic-string.min.js (20 KiB) -> 0ms -test/samples/rollup.js (698 KiB) -> 8.48ms -test/samples/rollup.min.js (367 KiB) -> 5.36ms - -Warm Runs, All Samples (average of 25 runs) -test/samples/*.js (3635 KiB) -> 40.28ms -``` - -Wasm Build: -``` -Module load time -> 10ms -Cold Run, All Samples -test/samples/*.js (3635 KiB) -> 43ms - -Warm Runs (average of 25 runs) -test/samples/angular.js (1410 KiB) -> 9.32ms -test/samples/angular.min.js (303 KiB) -> 3.16ms -test/samples/d3.js (553 KiB) -> 5ms -test/samples/d3.min.js (250 KiB) -> 2.32ms -test/samples/magic-string.js (34 KiB) -> 0.16ms -test/samples/magic-string.min.js (20 KiB) -> 0ms -test/samples/rollup.js (698 KiB) -> 6.28ms -test/samples/rollup.min.js (367 KiB) -> 3.6ms - -Warm Runs, All Samples (average of 25 runs) -test/samples/*.js (3635 KiB) -> 27.76ms -``` - -### Wasm Build Steps - -To build download the WASI SDK from https://github.com/WebAssembly/wasi-sdk/releases. - -The Makefile assumes the existence of "wasi-sdk-11.0" and "wabt" (optional) as sibling folders to this project. - -The build through the Makefile is then run via `make lib/lexer.wasm`, which can also be triggered via `npm run build-wasm` to create `dist/lexer.js`. - -On Windows it may be preferable to use the Linux subsystem. - -After the Web Assembly build, the CJS build can be triggered via `npm run build`. - -Optimization passes are run with [Binaryen](https://github.com/WebAssembly/binaryen) prior to publish to reduce the Web Assembly footprint. - -### License - -MIT - -[travis-url]: https://travis-ci.org/guybedford/es-module-lexer -[travis-image]: https://travis-ci.org/guybedford/es-module-lexer.svg?branch=master +# CJS Module Lexer + +[![Build Status][travis-image]][travis-url] + +A [very fast](#benchmarks) JS CommonJS module syntax lexer used to detect the most likely list of named exports of a CommonJS module. + +Outputs the list of named exports (`exports.name = ...`) and possible module reexports (`module.exports = require('...')`), including the common transpiler variations of these cases. + +Forked from https://github.com/guybedford/es-module-lexer. + +_Comprehensively handles the JS language grammar while remaining small and fast. - ~90ms per MB of JS cold and ~15ms per MB of JS warm, [see benchmarks](#benchmarks) for more info._ + +### Project Status + +This project is used in Node.js core for detecting the named exports available when importing a CJS module into ESM, and is maintained for this purpose. + +PRs will be accepted and upstreamed for parser bugs, performance improvements or new syntax support only. + +_Detection patterns for this project are **frozen**_. This is because adding any new export detection patterns would result in fragmented backwards-compatibility. Specifically, it would be very difficult to figure out why an ES module named export for CommonJS might work in newer Node.js versions but not older versions. This problem would only be discovered downstream of module authors, with the fix for module authors being to then have to understand which patterns in this project provide full backwards-compatibily. Rather, by fully freezing the detected patterns, if it works in any Node.js version it will work in any other. Build tools can also reliably treat the supported syntax for this project as a part of their output target for ensuring syntax support. + +### Usage + +``` +npm install cjs-module-lexer +``` + +For use in CommonJS: + +```js +const { parse } = require('cjs-module-lexer'); + +// `init` return a promise for parity with the ESM API, but you do not have to call it + +const { exports, reexports } = parse(` + // named exports detection + module.exports.a = 'a'; + (function () { + exports.b = 'b'; + })(); + Object.defineProperty(exports, 'c', { value: 'c' }); + /* exports.d = 'not detected'; */ + + // reexports detection + if (maybe) module.exports = require('./dep1.js'); + if (another) module.exports = require('./dep2.js'); + + // literal exports assignments + module.exports = { a, b: c, d, 'e': f } + + // __esModule detection + Object.defineProperty(module.exports, '__esModule', { value: true }) +`); + +// exports === ['a', 'b', 'c', '__esModule'] +// reexports === ['./dep1.js', './dep2.js'] +``` + +When using the ESM version, Wasm is supported instead: + +```js +import { parse, init } from 'cjs-module-lexer'; +// init needs to be called and waited upon +await init(); +const { exports, reexports } = parse(source); +``` + +The Wasm build is around 1.5x faster and without a cold start. + +### Grammar + +CommonJS exports matches are run against the source token stream. + +The token grammar is: + +``` +IDENTIFIER: As defined by ECMA-262, without support for identifier `\` escapes, filtered to remove strict reserved words: + "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "enum" + +STRING_LITERAL: A `"` or `'` bounded ECMA-262 string literal. + +MODULE_EXPORTS: `module` `.` `exports` + +EXPORTS_IDENTIFIER: MODULE_EXPORTS_IDENTIFIER | `exports` + +EXPORTS_DOT_ASSIGN: EXPORTS_IDENTIFIER `.` IDENTIFIER `=` + +EXPORTS_LITERAL_COMPUTED_ASSIGN: EXPORTS_IDENTIFIER `[` STRING_LITERAL `]` `=` + +EXPORTS_LITERAL_PROP: (IDENTIFIER (`:` IDENTIFIER)?) | (STRING_LITERAL `:` IDENTIFIER) + +EXPORTS_SPREAD: `...` (IDENTIFIER | REQUIRE) + +EXPORTS_MEMBER: EXPORTS_DOT_ASSIGN | EXPORTS_LITERAL_COMPUTED_ASSIGN + +EXPORTS_DEFINE: `Object` `.` `defineProperty `(` EXPORTS_IDENFITIER `,` STRING_LITERAL + +EXPORTS_DEFINE_VALUE: EXPORTS_DEFINE `, {` + (`enumerable: true,`)? + ( + `value:` | + `get` (`: function` IDENTIFIER? )? `() {` return IDENTIFIER (`.` IDENTIFIER | `[` STRING_LITERAL `]`)? `;`? `}` `,`? + ) + `})` + +EXPORTS_LITERAL: MODULE_EXPORTS `=` `{` (EXPORTS_LITERAL_PROP | EXPORTS_SPREAD) `,`)+ `}` + +REQUIRE: `require` `(` STRING_LITERAL `)` + +EXPORTS_ASSIGN: (`var` | `const` | `let`) IDENTIFIER `=` (`_interopRequireWildcard (`)? REQUIRE + +MODULE_EXPORTS_ASSIGN: MODULE_EXPORTS `=` REQUIRE + +EXPORT_STAR: (`__export` | `__exportStar`) `(` REQUIRE + +EXPORT_STAR_LIB: `Object.keys(` IDENTIFIER$1 `).forEach(function (` IDENTIFIER$2 `) {` + ( + ( + `if (` IDENTIFIER$2 `===` ( `'default'` | `"default"` ) `||` IDENTIFIER$2 `===` ( '__esModule' | `"__esModule"` ) `) return` `;`? + ( + (`if (Object` `.prototype`? `.hasOwnProperty.call(` IDENTIFIER `, ` IDENTIFIER$2 `)) return` `;`?)? + (`if (` IDENTIFIER$2 `in` EXPORTS_IDENTIFIER `&&` EXPORTS_IDENTIFIER `[` IDENTIFIER$2 `] ===` IDENTIFIER$1 `[` IDENTIFIER$2 `]) return` `;`)? + )? + ) | + `if (` IDENTIFIER$2 `!==` ( `'default'` | `"default"` ) (`&& !` (`Object` `.prototype`? `.hasOwnProperty.call(` IDENTIFIER `, ` IDENTIFIER$2 `)` | IDENTIFIER `.hasOwnProperty(` IDENTIFIER$2 `)`))? `)` + ) + ( + EXPORTS_IDENTIFIER `[` IDENTIFIER$2 `] =` IDENTIFIER$1 `[` IDENTIFIER$2 `]` `;`? | + `Object.defineProperty(` EXPORTS_IDENTIFIER `, ` IDENTIFIER$2 `, { enumerable: true, get` (`: function` IDENTIFIER? )? `() { return ` IDENTIFIER$1 `[` IDENTIFIER$2 `]` `;`? `}` `,`? `})` `;`? + ) + `})` +``` + +Spacing between tokens is taken to be any ECMA-262 whitespace, ECMA-262 block comment or ECMA-262 line comment. + +* The returned export names are taken to be the combination of: + 1. All `IDENTIFIER` and `STRING_LITERAL` slots for `EXPORTS_MEMBER` and `EXPORTS_LITERAL` matches. + 2. The first `STRING_LITERAL` slot for all `EXPORTS_DEFINE_VALUE` matches where that same string is not an `EXPORTS_DEFINE` match that is not also an `EXPORTS_DEFINE_VALUE` match. +* The reexport specifiers are taken to be the combination of: + 1. The `REQUIRE` matches of the last matched of either `MODULE_EXPORTS_ASSIGN` or `EXPORTS_LITERAL`. + 2. All _top-level_ `EXPORT_STAR` `REQUIRE` matches and `EXPORTS_ASSIGN` matches whose `IDENTIFIER` also matches the first `IDENTIFIER` in `EXPORT_STAR_LIB`. + +### Parsing Examples + +#### Named Exports Parsing + +The basic matching rules for named exports are `exports.name`, `exports['name']` or `Object.defineProperty(exports, 'name', ...)`. This matching is done without scope analysis and regardless of the expression position: + +```js +// DETECTS EXPORTS: a, b +(function (exports) { + exports.a = 'a'; + exports['b'] = 'b'; +})(exports); +``` + +Because there is no scope analysis, the above detection may overclassify: + +```js +// DETECTS EXPORTS: a, b, c +(function (exports, Object) { + exports.a = 'a'; + exports['b'] = 'b'; + if (false) + exports.c = 'c'; +})(NOT_EXPORTS, NOT_OBJECT); +``` + +It will in turn underclassify in cases where the identifiers are renamed: + +```js +// DETECTS: NO EXPORTS +(function (e) { + e.a = 'a'; + e['b'] = 'b'; +})(exports); +``` + +#### Getter Exports Parsing + +`Object.defineProperty` is detected for specifically value and getter forms returning an identifier or member expression: + +```js +// DETECTS: a, b, c, d, __esModule +Object.defineProperty(exports, 'a', { + enumerable: true, + get: function () { + return q.p; + } +}); +Object.defineProperty(exports, 'b', { + enumerable: true, + get: function () { + return q['p']; + } +}); +Object.defineProperty(exports, 'c', { + enumerable: true, + get () { + return b; + } +}); +Object.defineProperty(exports, 'd', { value: 'd' }); +Object.defineProperty(exports, '__esModule', { value: true }); +``` + +Value properties are also detected specifically: + +```js +Object.defineProperty(exports, 'a', { + value: 'no problem' +}); +``` + +To avoid matching getters that have side effects, any getter for an export name that does not support the forms above will +opt-out of the getter matching: + +```js +// DETECTS: NO EXPORTS +Object.defineProperty(exports, 'a', { + get () { + return 'nope'; + } +}); + +if (false) { + Object.defineProperty(module.exports, 'a', { + get () { + return dynamic(); + } + }) +} +``` + +Alternative object definition structures or getter function bodies are not detected: + +```js +// DETECTS: NO EXPORTS +Object.defineProperty(exports, 'a', { + enumerable: false, + get () { + return p; + } +}); +Object.defineProperty(exports, 'b', { + configurable: true, + get () { + return p; + } +}); +Object.defineProperty(exports, 'c', { + get: () => p +}); +Object.defineProperty(exports, 'd', { + enumerable: true, + get: function () { + return dynamic(); + } +}); +Object.defineProperty(exports, 'e', { + enumerable: true, + get () { + return 'str'; + } +}); +``` + +`Object.defineProperties` is also not supported. + +#### Exports Object Assignment + +A best-effort is made to detect `module.exports` object assignments, but because this is not a full parser, arbitrary expressions are not handled in the +object parsing process. + +Simple object definitions are supported: + +```js +// DETECTS EXPORTS: a, b, c +module.exports = { + a, + 'b': b, + c: c, + ...d +}; +``` + +Object properties that are not identifiers or string expressions will bail out of the object detection, while spreads are ignored: + +```js +// DETECTS EXPORTS: a, b +module.exports = { + a, + ...d, + b: require('c'), + c: "not detected since require('c') above bails the object detection" +} +``` + +`Object.defineProperties` is not currently supported either. + +#### module.exports reexport assignment + +Any `module.exports = require('mod')` assignment is detected as a reexport, but only the last one is returned: + +```js +// DETECTS REEXPORTS: c +module.exports = require('a'); +(module => module.exports = require('b'))(NOT_MODULE); +if (false) module.exports = require('c'); +``` + +This is to avoid over-classification in Webpack bundles with externals which include `module.exports = require('external')` in their source for every external dependency. + +In exports object assignment, any spread of `require()` are detected as multiple separate reexports: + +```js +// DETECTS REEXPORTS: a, b +module.exports = require('ignored'); +module.exports = { + ...require('a'), + ...require('b') +}; +``` + +#### Transpiler Re-exports + +For named exports, transpiler output works well with the rules described above. + +But for star re-exports, special care is taken to support common patterns of transpiler outputs from Babel and TypeScript as well as bundlers like RollupJS. +These reexport and star reexport patterns are restricted to only be detected at the top-level as provided by the direct output of these tools. + +For example, `export * from 'external'` is output by Babel as: + +```js +"use strict"; + +exports.__esModule = true; + +var _external = require("external"); + +Object.keys(_external).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + exports[key] = _external[key]; +}); +``` + +Where the `var _external = require("external")` is specifically detected as well as the `Object.keys(_external)` statement, down to the exact +for of that entire expression including minor variations of the output. The `_external` and `key` identifiers are carefully matched in this +detection. + +Similarly for TypeScript, `export * from 'external'` is output as: + +```js +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("external")); +``` + +Where the `__export(require("external"))` statement is explicitly detected as a reexport, including variations `tslib.__export` and `__exportStar`. + +### Environment Support + +Node.js 10+, and [all browsers with Web Assembly support](https://caniuse.com/#feat=wasm). + +### JS Grammar Support + +* Token state parses all line comments, block comments, strings, template strings, blocks, parens and punctuators. +* Division operator / regex token ambiguity is handled via backtracking checks against punctuator prefixes, including closing brace or paren backtracking. +* Always correctly parses valid JS source, but may parse invalid JS source without errors. + +### Benchmarks + +Benchmarks can be run with `npm run bench`. + +Current results: + +JS Build: + +``` +Module load time +> 4ms +Cold Run, All Samples +test/samples/*.js (3635 KiB) +> 299ms + +Warm Runs (average of 25 runs) +test/samples/angular.js (1410 KiB) +> 13.96ms +test/samples/angular.min.js (303 KiB) +> 4.72ms +test/samples/d3.js (553 KiB) +> 6.76ms +test/samples/d3.min.js (250 KiB) +> 4ms +test/samples/magic-string.js (34 KiB) +> 0.64ms +test/samples/magic-string.min.js (20 KiB) +> 0ms +test/samples/rollup.js (698 KiB) +> 8.48ms +test/samples/rollup.min.js (367 KiB) +> 5.36ms + +Warm Runs, All Samples (average of 25 runs) +test/samples/*.js (3635 KiB) +> 40.28ms +``` + +Wasm Build: +``` +Module load time +> 10ms +Cold Run, All Samples +test/samples/*.js (3635 KiB) +> 43ms + +Warm Runs (average of 25 runs) +test/samples/angular.js (1410 KiB) +> 9.32ms +test/samples/angular.min.js (303 KiB) +> 3.16ms +test/samples/d3.js (553 KiB) +> 5ms +test/samples/d3.min.js (250 KiB) +> 2.32ms +test/samples/magic-string.js (34 KiB) +> 0.16ms +test/samples/magic-string.min.js (20 KiB) +> 0ms +test/samples/rollup.js (698 KiB) +> 6.28ms +test/samples/rollup.min.js (367 KiB) +> 3.6ms + +Warm Runs, All Samples (average of 25 runs) +test/samples/*.js (3635 KiB) +> 27.76ms +``` + +### Wasm Build Steps + +To build download the WASI SDK from https://github.com/WebAssembly/wasi-sdk/releases. + +The Makefile assumes the existence of "wasi-sdk-11.0" and "wabt" (optional) as sibling folders to this project. + +The build through the Makefile is then run via `make lib/lexer.wasm`, which can also be triggered via `npm run build-wasm` to create `dist/lexer.js`. + +On Windows it may be preferable to use the Linux subsystem. + +After the Web Assembly build, the CJS build can be triggered via `npm run build`. + +Optimization passes are run with [Binaryen](https://github.com/WebAssembly/binaryen) prior to publish to reduce the Web Assembly footprint. + +### License + +MIT + +[travis-url]: https://travis-ci.org/guybedford/es-module-lexer +[travis-image]: https://travis-ci.org/guybedford/es-module-lexer.svg?branch=master diff --git a/node_modules/cjs-module-lexer/dist/lexer.js b/node_modules/cjs-module-lexer/dist/lexer.js index 7c9b7124a..ec5687c1b 100644 --- a/node_modules/cjs-module-lexer/dist/lexer.js +++ b/node_modules/cjs-module-lexer/dist/lexer.js @@ -1 +1,4 @@ -"use strict";exports.init=init;exports.initSync=initSync;exports.parse=parse;let A;const Q=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse(g,I="@"){if(!A)throw new Error("Not initialized");const D=g.length+1,N=(A.__heap_base.value||A.__heap_base)+4*D-A.memory.buffer.byteLength;N>0&&A.memory.grow(Math.ceil(N/65536));const k=A.sa(D);(Q?C:E)(g,new Uint16Array(A.memory.buffer,k,D));const w=A.parseCJS(k,g.length,0,0,0);if(w){const Q=new Error(`Parse error ${I}${A.e()}:${g.slice(0,A.e()).split("\n").length}:${A.e()-g.lastIndexOf("\n",A.e()-1)}`);throw Object.assign(Q,{idx:A.e()}),5!==w&&6!==w&&7!==w||Object.assign(Q,{code:"ERR_LEXER_ESM_SYNTAX"}),Q}let H=new Set,J=new Set,o=new Set;for(;A.rre();){const Q=B(g.slice(A.res(),A.ree()));Q&&J.add(Q)}for(;A.ru();)o.add(B(g.slice(A.us(),A.ue())));for(;A.re();){let Q=B(g.slice(A.es(),A.ee()));void 0===Q||o.has(Q)||H.add(Q)}return{exports:[...H],reexports:[...J]}}function B(A){if('"'!==A[0]&&"'"!==A[0])return A;try{const Q=(0,eval)(A);for(let A=0;A>>8}}function C(A,Q){const B=A.length;let E=0;for(;EA.charCodeAt(0))}let I;function init(){return I||(I=(async()=>{const Q=await WebAssembly.compile(g()),{exports:B}=await WebAssembly.instantiate(Q);A=B})())}function initSync(){if(A)return;const Q=new WebAssembly.Module(g()),{exports:B}=new WebAssembly.Instance(Q);A=B} \ No newline at end of file +/* cjs-module-lexer 1.3.1 */ +var N=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var f=(A,Q)=>{for(var E in Q)N(A,E,{get:Q[E],enumerable:!0})},U=(A,Q,E,C)=>{if(Q&&typeof Q=="object"||typeof Q=="function")for(let g of S(Q))!F.call(A,g)&&g!==E&&N(A,g,{get:()=>Q[g],enumerable:!(C=R(Q,g))||C.enumerable});return A};var G=A=>U(N({},"__esModule",{value:!0}),A);var i={};f(i,{init:()=>a,parse:()=>K});module.exports=G(i);var B,y=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function K(A,Q="@"){if(!B)throw new Error("Not initialized");let E=A.length+1,C=(B.__heap_base.value||B.__heap_base)+E*4-B.memory.buffer.byteLength;C>0&&B.memory.grow(Math.ceil(C/65536));let g=B.sa(E);(y?c:L)(A,new Uint16Array(B.memory.buffer,g,E));let D=B.parseCJS(g,A.length,0,0,0);if(D){let I=new Error(`Parse error ${Q}${B.e()}:${A.slice(0,B.e()).split(` +`).length}:${B.e()-A.lastIndexOf(` +`,B.e()-1)}`);throw Object.assign(I,{idx:B.e()}),(D===5||D===6||D===7)&&Object.assign(I,{code:"ERR_LEXER_ESM_SYNTAX"}),I}let w=new Set,H=new Set,J=new Set;for(;B.rre();){let I=k(A.slice(B.res(),B.ree()));I&&H.add(I)}for(;B.ru();)J.add(k(A.slice(B.us(),B.ue())));for(;B.re();){let I=k(A.slice(B.es(),B.ee()));I!==void 0&&!J.has(I)&&w.add(I)}return{exports:[...w],reexports:[...H]}}function k(A){if(A[0]==='"'||A[0]==="'")try{let Q=(0,eval)(A);for(let E=0;E>>8}}function c(A,Q){let E=A.length,C=0;for(;C{let A="AGFzbQEAAAABrAERYAJ/fwBgAABgAX8Bf2AAAX9gBn9/f39/fwF/YAF/AGAXf39/f39/f39/f39/f39/f39/f39/f38Bf2AIf39/f39/f38Bf2AHf39/f39/fwF/YAN/f38Bf2AFf39/f38Bf2AOf39/f39/f39/f39/f38Bf2AKf39/f39/f39/fwF/YAt/f39/f39/f39/fwF/YAJ/fwF/YAR/f39/AX9gCX9/f39/f39/fwF/A0NCAgMDAwMDAwMDAwMAAAABBAICBQQBBgcBBQEFBQUBAQICAgIBAQIIAwICAgkKAgELAgwNDgQPCA4HAgICAhACAgMJBAUBcAEFBQUDAQABBg8CfwFB0JgCC38AQdCYAgsHXA4GbWVtb3J5AgACc2EAAAFlAAECZXMAAgJlZQADA3JlcwAEA3JlZQAFAnVzAAYCdWUABwJyZQAIA3JyZQAJAnJ1AAoIcGFyc2VDSlMADwtfX2hlYXBfYmFzZQMBCQoBAEEBCwQLDA0OCt2fAUJ4AQF/QQAoApgfIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLkH0EAIAA2AugfQQBBADYCwB9BAEEANgLIH0EAQQA2AsQfQQBBADYCzB9BAEEANgLUH0EAQQA2AtAfQQBBADYC2B9BAEEANgLgH0EAQQA2AtwfIAELCABBACgC7B8LFQBBACgCxB8oAgBBACgCmB9rQQF1CxUAQQAoAsQfKAIEQQAoApgfa0EBdQsVAEEAKALQHygCAEEAKAKYH2tBAXULFQBBACgC0B8oAgRBACgCmB9rQQF1CxUAQQAoAtwfKAIAQQAoApgfa0EBdQsVAEEAKALcHygCBEEAKAKYH2tBAXULJQEBf0EAQQAoAsQfIgBBCGpBwB8gABsoAgAiADYCxB8gAEEARwslAQF/QQBBACgC0B8iAEEIakHMHyAAGygCACIANgLQHyAAQQBHCyUBAX9BAEEAKALcHyIAQQhqQdgfIAAbKAIAIgA2AtwfIABBAEcLSAEBf0EAKALIHyICQQhqQcAfIAIbQQAoAugfIgI2AgBBACACNgLIH0EAIAJBDGo2AugfIAJBADYCCCACIAE2AgQgAiAANgIAC0gBAX9BACgC1B8iAkEIakHMHyACG0EAKALoHyICNgIAQQAgAjYC1B9BACACQQxqNgLoHyACQQA2AgggAiABNgIEIAIgADYCAAtIAQF/QQAoAuAfIgJBCGpB2B8gAhtBACgC6B8iAjYCAEEAIAI2AuAfQQAgAkEMajYC6B8gAkEANgIIIAIgATYCBCACIAA2AgALEgBBAEEANgLMH0EAQQA2AtQfC50PAEEAIAE2AoBAQQAgADYCmB8CQCACRQ0AQQAgAjYCnB8LAkAgA0UNAEEAIAM2AqAfCwJAIARFDQBBACAENgKkHwtBAEH//wM7AYhAQQBBoMAANgKgYEEAQbDgADYCsKABQQBBgCA2ArSgAUEAQQAoAqwfNgKMQEEAIABBfmoiAjYCvKABQQAgAiABQQF0aiIDNgLAoAFBAEEAOwGGQEEAQQA7AYRAQQBBADoAkEBBAEEANgLsH0EAQQA2AvAfQQBBADoAuKABAkACQCAALwEAQSNHDQAgAC8BAkEhRw0AQQAhAiABQQJGDQFBACAAQQJqNgK8oAEgAEEEaiEAAkADQCAAIgJBfmogA08NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2ArygAQsDQEEAIAJBAmoiADYCvKABAkACQAJAAkACQAJAIAIgA08NAAJAIAAvAQAiAUF3aiIDQRdLDQBBASADdEGfgIAEcQ0GCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkBBAC8BhkAiAw0AAkACQAJAIAFBoX9qDg8CEBUVBhUFFRUVARUVFQQACwJAIAFBWWoOCQ4ICRUVFRUVDwALAkAgAUGFf2oOAwsVDAALIAFBIkYNDSABQc8ARg0GIAFB8gBHDRQCQEEAEBBFDQAgABARRQ0AIAIQEgtBAEEAKAK8oAE2AoxADBULAkAgAkEEakHtAEHwAEHvAEHyAEH0ABATRQ0AIAAQEUUNABAUQQAoArygASEAC0EAIAA2AoxADBQLAkACQCACQQRqIgNB6QBB7gBB9ABB5QBB8gBB7wBB8ABB0gBB5QBB8QBB9QBB6QBB8gBB5QBB1wBB6QBB7ABB5ABB4wBB4QBB8gBB5AAQFUUNAAJAIAAQEQ0AIAIvAQBBLkcNAQtBACACQTBqNgK8oAEgAi8BMEEoRw0BQQAgAkEyajYCvKABQQBBATsBhkBBACgCsKABQQAoAoxANgIAQQAQEEUNASAAEBFFDQEgAhASDAELIANB3wBB5QBB+ABB8ABB7wBB8gBB9AAQFkUNAAJAIAAQEQ0AIAIvAQBBLkcNAQtBACACQRJqNgK8oAECQCACLwESIgNB0wBHDQAgAi8BFEH0AEcNASACLwEWQeEARw0BIAIvARhB8gBHDQFBACACQRpqNgK8oAEgAi8BGiEDCyADQf//A3FBKEcNAEEAKAKwoAFBACgCjEA2AgBBAEEBOwGGQEEAQQAoArygASICQQJqNgK8oAEgAi8BAkHyAEcNAEECEBAaC0EAQQAoArygATYCjEAMEwsCQCABQVlqDgkLBQcSEhISEgwACwJAIAFBoH9qDgYNEhIDEgIACwJAIAFBhX9qDgMIEgoACyABQSJGDQogAUHPAEYNAyABQe0ARw0RCyACQQRqQe8AQeQAQfUAQewAQeUAEBNFDRAgABARRQ0QEBcMEAsgAkEEakH4AEHwAEHvAEHyAEH0ABATRQ0PIAAQEUUNDwJAIAIvAQ5B8wBHDQBBABAYDBALIAMNDxAZDA8LIAAQEUUNDiACLwEEQewARw0OIAIvAQZB4QBHDQ4gAi8BCEHzAEcNDiACLwEKQfMARw0OIAIvAQwiA0F3aiICQRdLDQxBASACdEGfgIAEcUUNDAwNCyACQQRqQeIAQeoAQeUAQeMAQfQAEBNFDQ0gABARRQ0NIANFEBoMDQtBACADQQFqOwGGQEEAKAKwoAEgA0ECdGpBACgCjEA2AgAMDAtBCBAbQQAoAvAfDwtBACADQX9qOwGGQAwKCyADQdCgAWpBAC0AuKABOgAAQQAgA0EBajsBhkBBACgCsKABIANBAnRqQQAoAoxANgIAQQBBADoAuKABDAkLQQIQG0EADwtBACADQX9qIgA7AYZAAkAgA0EALwGIQCICRw0AQQBBAC8BhEBBf2oiAjsBhEBBAEEAKAKgYCACQf//A3FBAXRqLwEAOwGIQAwFCyACQf//A0YNByAAQf//A3EgAk8NB0EDEBtBACgC8B8PCyABEBwMBgsCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAdDAgLEB4MBwsCQAJAAkACQEEAKAKMQCIALwEAIgIQH0UNAAJAAkACQCACQVVqDgQBBQIABQsgAEF+ai8BAEFQakH//wNxQQpJDQMMBAsgAEF+ai8BAEErRg0CDAMLIABBfmovAQBBLUYNAQwCCwJAAkAgAkH9AEYNACACQS9GDQEgAkEpRw0CQQAoArCgASADQQJ0aigCABAgRQ0CDAMLQQAoArCgASADQQJ0aigCABAhDQIgA0HQoAFqLQAARQ0BDAILQQAtAJBADQELIAAQIiEDIAJFDQBBASECIANFDQELECNBACECC0EAIAI6AJBADAULQQAvAYhAQf7/A0cNAUEEEBtBACgC8B8PC0EAIQICQAJAQQAvAYhAQf//A0YNAEEAKALwHyEDDAELQQAoAvAfIQNBAC8BhkANACADRQ0HCyADIQIMBgsQJAwCCyADQaABRw0BC0EAQQE6ALigAQtBAEEAKAK8oAE2AoxAC0EAKALAoAEhA0EAKAK8oAEhAgwACwsgAgvuAQEEf0EAIQECQEEAKAK8oAEiAkECakHlAEHxAEH1AEHpAEHyAEHlABAmRQ0AQQAhAUEAIAJBDmo2ArygAQJAECdBKEcNAEEAQQAoArygAUECajYCvKABECchA0EAKAK8oAEhBAJAIANBJ0YNACADQSJHDQELIAMQHEEAQQAoArygAUECaiIDNgK8oAEQJ0EpRw0AAkACQAJAIABBf2oOAgEAAgsgBCADQQAoAqAfEQAAQQEPCyAEIANBACgCoB8RAABBAQ8LQQAoArSgASAENgIAQQAoArSgASADNgIEQQEPC0EAIAI2ArygAQsgAQsdAAJAQQAoApgfIABHDQBBAQ8LIABBfmovAQAQJQv1AgEEf0EAKAKYHyEBAkADQCAAQX5qIQIgAC8BACIDQSBHDQEgACABSyEEIAIhACAEDQALCwJAIANBPUcNAAJAA0AgAkF+aiEAIAIvAQBBIEcNASACIAFLIQQgACECIAQNAAsLIABBAmohAiAAQQRqIQNBACEEAkADQCACECghACACIAFNDQEgAEUNASAAQdwARg0CIAAQKUUNASACQX5BfCAAQYCABEkbaiECIAAQKiEEDAALCyAEQQFxRQ0AIAIvAQBBIEcNAEEAKAK0oAEiBEEAKAKwH0YNACAEIAM2AgwgBCACQQJqNgIIIAJBfmohAEEgIQICQANAIABBAmogAU0NASACQf//A3FBIEcNASAALwEAIQIgAEF+aiEADAALCwJAAkACQCACQf//A3FBjn9qDgMAAwEDCyAAQfYAQeEAECsNAQwCCyAAQewAQeUAECsNACAAQeMAQe8AQe4AQfMAECxFDQELQQAgBEEQajYCtKABCws/AQF/QQAhBgJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVGIQYLIAYLowEBA39BAEEAKAK8oAEiAEEMaiIBNgK8oAECQAJAAkACQAJAAkACQBAnIgJBWWoOCAIDAQIBAQEEAAsgAkEiRg0BIAJB+wBGDQELQQAoArygASABRg0EC0EALwGGQEUNAkEAQQAoArygAUF+ajYCvKABDwtBAEEALwGGQCICQQFqOwGGQEEAKAKwoAEgAkECdGogADYCAA8LQQUQGw8LQQYQGwsL6QEBAX9BACEXAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRw0AIAAvAQ4gCEcNACAALwEQIAlHDQAgAC8BEiAKRw0AIAAvARQgC0cNACAALwEWIAxHDQAgAC8BGCANRw0AIAAvARogDkcNACAALwEcIA9HDQAgAC8BHiAQRw0AIAAvASAgEUcNACAALwEiIBJHDQAgAC8BJCATRw0AIAAvASYgFEcNACAALwEoIBVHDQAgAC8BKiAWRiEXCyAXC1MBAX9BACEIAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRiEICyAIC2wBAX9BAEEAKAK8oAEiAEEMajYCvKABAkAQJ0EuRw0AQQBBACgCvKABQQJqNgK8oAEQJ0HlAEcNAEEAKAK8oAFBAmpB+ABB8ABB7wBB8gBB9ABB8wAQJkUNAEEBEBgPC0EAIABBCmo2ArygAQu2AgECf0EAQQAoArygASIBQQ5qNgK8oAECQAJAAkAQJyICQdsARg0AIAJBPUYNASACQS5HDQJBAEEAKAK8oAFBAmo2ArygARAnIQJBACgCvKABIQAgAhAtRQ0CQQAoArygASECECdBPUcNAiAAIAJBACgCnB8RAAAPC0EAQQAoArygAUECajYCvKABAkAQJyICQSdGDQAgAkEiRw0CC0EAKAK8oAEhACACEBxBAEEAKAK8oAFBAmoiAjYCvKABECdB3QBHDQFBAEEAKAK8oAFBAmo2ArygARAnQT1HDQEgACACQQAoApwfEQAADAELIABFDQBBACgCqB8RAQBBAEEAKAK8oAFBAmo2ArygAQJAECciAkHyAEYNACACQfsARw0BEC4PC0EBEBAaC0EAIAFBDGo2ArygAQs4AQJ/QQBBACgCvKABQQxqIgA2ArygARAnIQECQAJAQQAoArygASAARw0AIAEQP0UNAQtBBxAbCwukJgEIf0EAQQAoArygASIBQQxqNgK8oAEgAUEKaiEBAkAQJ0EuRw0AQQBBACgCvKABQQJqNgK8oAECQAJAECciAkHkAEcNAEEAKAK8oAEiAEECakHlAEHmAEHpAEHuAEHlAEHQAEHyAEHvAEHwAEHlAEHyAEH0AEH5ABAvRQ0CQQAgAEEcajYCvKABIABBGmohARAnQShHDQJBAEEAKAK8oAFBAmo2ArygARAnEDBFDQIQJ0EsRw0CQQBBACgCvKABQQJqNgK8oAECQBAnIgBBJ0YNACAAQSJHDQMLQQAoArygASECIAAQHEEAQQAoArygAUECaiIANgK8oAEQJ0EsRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABAkAQJyIDQeUARw0AQQAoArygASIDQQJqQe4AQfUAQe0AQeUAQfIAQeEAQeIAQewAQeUAEDFFDQJBACADQRRqNgK8oAEQJ0E6Rw0CQQBBACgCvKABQQJqNgK8oAEQJ0H0AEcNAkEAKAK8oAEiAy8BAkHyAEcNAiADLwEEQfUARw0CIAMvAQZB5QBHDQJBACADQQhqNgK8oAEQJ0EsRw0CQQBBACgCvKABQQJqNgK8oAEQJyEDCwJAIANB5wBGDQAgA0H2AEcNAkEAKAK8oAEiAy8BAkHhAEcNAiADLwEEQewARw0CIAMvAQZB9QBHDQIgAy8BCEHlAEcNAkEAIANBCmo2ArygARAnQTpHDQIgAiAAQQAoApwfEQAAQQAgATYCvKABDwtBACgCvKABIgMvAQJB5QBHDQEgAy8BBEH0AEcNAUEAIANBBmo2ArygAQJAECciA0E6Rw0AQQBBACgCvKABQQJqNgK8oAEQJ0HmAEcNAkEAKAK8oAEiA0ECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0CQQAgA0EQaiIDNgK8oAECQBAnIgRBKEYNACADQQAoArygAUYNAyAEEC1FDQMLECchAwsgA0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABECdB8gBHDQFBACgCvKABIgNBAmpB5QBB9ABB9QBB8gBB7gAQE0UNAUEAIANBDGo2ArygARAnEC1FDQECQAJAAkAQJyIDQdsARg0AIANBLkcNAkEAQQAoArygAUECajYCvKABECcQLQ0BDAQLQQBBACgCvKABQQJqNgK8oAECQBAnIgNBJ0YNACADQSJHDQQLIAMQHEEAQQAoArygAUECajYCvKABECdB3QBHDQNBAEEAKAK8oAFBAmo2ArygAQsQJyEDCwJAIANBO0cNAEEAQQAoArygAUECajYCvKABECchAwsgA0H9AEcNAUEAQQAoArygAUECajYCvKABAkAQJyIDQSxHDQBBAEEAKAK8oAFBAmo2ArygARAnIQMLIANB/QBHDQFBAEEAKAK8oAFBAmo2ArygARAnQSlHDQEgAiAAQQAoApwfEQAADwsgAkHrAEcNASAARQ0BQQAoArygASIALwECQeUARw0BIAAvAQRB+QBHDQEgAC8BBkHzAEcNASAAQQZqIQFBACAAQQhqNgK8oAEQJ0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJyEAQQAoArygASECIAAQLUUNAUEAKAK8oAEhABAnQSlHDQFBAEEAKAK8oAEiAUECajYCvKABECdBLkcNAUEAQQAoArygAUECajYCvKABECdB5gBHDQFBACgCvKABIgNBAmpB7wBB8gBBxQBB4QBB4wBB6AAQJkUNAUEAIANBDmo2ArygARAnIQNBACgCvKABIgRBfmohASADQShHDQFBACAEQQJqNgK8oAEQJ0HmAEcNAUEAKAK8oAEiA0ECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0BQQAgA0EQajYCvKABECdBKEcNAUEAQQAoArygAUECajYCvKABECchA0EAKAK8oAEhBCADEC1FDQFBACgCvKABIQMQJ0EpRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABECdB6QBHDQFBACgCvKABIgUvAQJB5gBHDQFBACAFQQRqNgK8oAEQJ0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgUgBCADIARrIgMQQQ0BIAAgAmsiBkEBdSEHQQAgBSADQQF1IghBAXRqNgK8oAECQAJAAkAQJyIAQSFGDQAgAEE9Rw0EQQAoArygASIALwECQT1HDQQgAC8BBEE9Rw0EQQAgAEEGajYCvKABAkAQJyIAQSdGDQAgAEEiRw0FC0EAKAK8oAEiBUECakHkAEHlAEHmAEHhAEH1AEHsAEH0ABAWRQ0EQQAgBUEQajYCvKABECcgAEcNBEEAQQAoArygAUECajYCvKABECdB/ABHDQRBACgCvKABIgAvAQJB/ABHDQRBACAAQQRqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBEEAIAAgCEEBdGo2ArygARAnQT1HDQRBACgCvKABIgAvAQJBPUcNBCAALwEEQT1HDQRBACAAQQZqNgK8oAECQBAnIgBBJ0YNACAAQSJHDQULQQAoArygASIFQQJqQd8AQd8AQeUAQfMAQc0AQe8AQeQAQfUAQewAQeUAEDJFDQRBACAFQRZqNgK8oAEQJyAARw0EQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0EQQBBACgCvKABQQJqNgK8oAEQJ0HyAEcNBEEAKAK8oAEiAEECakHlAEH0AEH1AEHyAEHuABATRQ0EQQAgAEEMajYCvKABAkAQJ0E7Rw0AQQBBACgCvKABQQJqNgK8oAELECciAEHpAEcNAkHpACEAQQAoArygASIFLwECQeYARw0CQQAgBUEEajYCvKABECdBKEcNBEEAQQAoArygAUECaiIANgK8oAECQCAEIAgQM0UNABAnQSlHDQVBAEEAKAK8oAFBAmo2ArygARAnQfIARw0FQQAoArygASIAQQJqQeUAQfQAQfUAQfIAQe4AEBNFDQVBACAAQQxqNgK8oAECQBAnQTtHDQBBAEEAKAK8oAFBAmo2ArygAQsQJyIAQekARw0DQekAIQBBACgCvKABIgUvAQJB5gBHDQNBACAFQQRqNgK8oAEQJ0EoRw0FQQAoArygAUECaiEAC0EAIAA2ArygASAAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HpAEcNBEEAKAK8oAEiAC8BAkHuAEcNBCAALwEEQSBHDQRBACAAQQZqNgK8oAEQJxAwRQ0EECdBJkcNBEEAKAK8oAEiAC8BAkEmRw0EQQAgAEEEajYCvKABECcQMEUNBBAnQdsARw0EQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBEEAIAAgCEEBdGo2ArygARAnQd0ARw0EQQBBACgCvKABQQJqNgK8oAEQJ0E9Rw0EQQAoArygASIALwECQT1HDQQgAC8BBEE9Rw0EQQAgAEEGajYCvKABECcaQQAoArygASIAIAIgBhBBDQRBACAAIAdBAXRqNgK8oAEQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECdBKUcNBEEAQQAoArygAUECajYCvKABECdB8gBHDQRBACgCvKABIgBBAmpB5QBB9ABB9QBB8gBB7gAQE0UNBEEAIABBDGo2ArygARAnQTtHDQFBAEEAKAK8oAFBAmo2ArygAQwBC0EAKAK8oAEiAC8BAkE9Rw0DIAAvAQRBPUcNA0EAIABBBmo2ArygAQJAECciAEEnRg0AIABBIkcNBAtBACgCvKABIgVBAmpB5ABB5QBB5gBB4QBB9QBB7ABB9AAQFkUNA0EAIAVBEGo2ArygARAnIABHDQNBAEEAKAK8oAFBAmo2ArygAQJAECciAEEmRw0AQQAoArygASIALwECQSZHDQRBACAAQQRqNgK8oAEQJ0EhRw0EQQBBACgCvKABQQJqNgK8oAECQAJAECciAEHPAEcNAEEAKAK8oAFBAmpB4gBB6gBB5QBB4wBB9ABBLhAmRQ0AIAQgCBAzRQ0GDAELIAAQLUUNABAnQS5HDQVBAEEAKAK8oAFBAmo2ArygARAnQegARw0FQQAoArygASIAQQJqQeEAQfMAQc8AQfcAQe4AQdAAQfIAQe8AQfAAQeUAQfIAQfQAQfkAEC9FDQVBACAAQRxqNgK8oAEQJ0EoRw0FQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBUEAIAAgCEEBdGo2ArygARAnQSlHDQVBAEEAKAK8oAFBAmo2ArygAQsQJyEACyAAQSlHDQNBAEEAKAK8oAFBAmo2ArygAQsQJyEACwJAAkACQCAAEDBFDQAQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECdBPUcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAIgBhBBDQRBACAAIAdBAXRqNgK8oAEQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECciAEE7Rw0CQQBBACgCvKABQQJqNgK8oAEMAQsgAEHPAEcNA0EAKAK8oAEiAEECakHiAEHqAEHlAEHjAEH0ABATRQ0DQQAgAEEMajYCvKABECdBLkcNA0EAQQAoArygAUECajYCvKABECdB5ABHDQNBACgCvKABIgBBAmpB5QBB5gBB6QBB7gBB5QBB0ABB8gBB7wBB8ABB5QBB8gBB9ABB+QAQL0UNA0EAIABBHGo2ArygARAnQShHDQNBAEEAKAK8oAFBAmo2ArygARAnEDBFDQMQJ0EsRw0DQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENA0EAIAAgCEEBdGo2ArygARAnQSxHDQNBAEEAKAK8oAFBAmo2ArygARAnQfsARw0DQQBBACgCvKABQQJqNgK8oAEQJ0HlAEcNA0EAKAK8oAEiAEECakHuAEH1AEHtAEHlAEHyAEHhAEHiAEHsAEHlABAxRQ0DQQAgAEEUajYCvKABECdBOkcNA0EAQQAoArygAUECajYCvKABECchBUEAKAK8oAEhAAJAIAVB9ABGDQAgAC8BAkHyAEcNBCAALwEEQfUARw0EIAAvAQZB5QBHDQQLQQAgAEEIajYCvKABECdBLEcNA0EAQQAoArygAUECajYCvKABECdB5wBHDQNBACgCvKABIgAvAQJB5QBHDQMgAC8BBEH0AEcNA0EAIABBBmo2ArygAQJAECciAEE6Rw0AQQBBACgCvKABQQJqNgK8oAEQJ0HmAEcNBEEAKAK8oAEiAEECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0EQQAgAEEQaiIANgK8oAECQBAnIgVBKEYNACAAQQAoArygAUYNBSAFEC1FDQULECchAAsgAEEoRw0DQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0DQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNA0EAQQAoArygAUECajYCvKABECdB8gBHDQNBACgCvKABIgBBAmpB5QBB9ABB9QBB8gBB7gAQE0UNA0EAIABBDGo2ArygARAnGkEAKAK8oAEiACACIAYQQQ0DQQAgACAHQQF0ajYCvKABECdB2wBHDQNBAEEAKAK8oAFBAmo2ArygARAnGkEAKAK8oAEiACAEIAMQQQ0DQQAgACAIQQF0ajYCvKABECdB3QBHDQNBAEEAKAK8oAFBAmo2ArygAQJAECciAEE7Rw0AQQBBACgCvKABQQJqNgK8oAEQJyEACyAAQf0ARw0DQQBBACgCvKABQQJqNgK8oAECQBAnIgBBLEcNAEEAQQAoArygAUECajYCvKABECchAAsgAEH9AEcNA0EAQQAoArygAUECajYCvKABECdBKUcNA0EAQQAoArygAUECajYCvKABECciAEE7Rw0BQQBBACgCvKABQQJqNgK8oAELECchAAsgAEH9AEcNAUEAQQAoArygAUECajYCvKABECdBKUcNAUEAKAK0oAEhBEGAICEAA0ACQAJAIAQgAEYNACAHIABBDGooAgAgAEEIaigCACIDa0EBdUcNASACIAMgBhBBDQEgACgCACAAQQRqKAIAQQAoAqAfEQAAQQAgATYCvKABCw8LIABBEGohAAwACwsgAiAAQQAoAqQfEQAAC0EAIAE2ArygAQtBAAJAQQAoAvAfDQBBACAANgLwHwtBACgCvKABIQBBAEEAKALAoAFBAmo2ArygAUEAIABBACgCmB9rQQF1NgLsHwuOAQEEf0EAKAK8oAEhAUEAKALAoAEhAgJAAkADQCABIgNBAmohASADIAJPDQEgAS8BACIEIABGDQICQCAEQdwARg0AIARBdmoOBAIBAQIBCyADQQRqIQEgAy8BBEENRw0AIANBBmogASADLwEGQQpGGyEBDAALC0EAIAE2ArygAUEJEBsPC0EAIAE2ArygAQtKAQN/QQAoArygAUECaiEAQQAoAsCgASEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2ArygAQt8AQJ/QQBBACgCvKABIgBBAmo2ArygASAAQQZqIQBBACgCwKABIQEDQAJAAkACQCAAQXxqIAFPDQAgAEF+ai8BAEEqRw0CIAAvAQBBL0cNAkEAIABBfmo2ArygAQwBCyAAQX5qIQALQQAgADYCvKABDwsgAEECaiEADAALC2wBAX8CQAJAIABBX2oiAUEFSw0AQQEgAXRBMXENAQsgAEFGakH//wNxQQZJDQAgAEEpRyAAQVhqQf//A3FBB0lxDQACQCAAQaV/ag4EAQAAAQALIABB/QBHIABBhX9qQf//A3FBBElxDwtBAQs9AQF/QQEhAQJAIABB9wBB6ABB6QBB7ABB5QAQNA0AIABB5gBB7wBB8gAQNQ0AIABB6QBB5gAQKyEBCyABC5sBAQJ/QQEhAQJAAkACQAJAAkACQCAALwEAIgJBRWoOBAUEBAEACwJAIAJBm39qDgQDBAQCAAsgAkEpRg0EIAJB+QBHDQMgAEF+akHmAEHpAEHuAEHhAEHsAEHsABA2DwsgAEF+ai8BAEE9Rg8LIABBfmpB4wBB4QBB9ABB4wAQLA8LIABBfmpB5QBB7ABB8wAQNQ8LQQAhAQsgAQvSAwECf0EAIQECQAJAAkACQAJAAkACQAJAAkAgAC8BAEGcf2oOFAABAggICAgICAgDBAgIBQgGCAgHCAsCQAJAIABBfmovAQBBl39qDgQACQkBCQsgAEF8akH2AEHvABArDwsgAEF8akH5AEHpAEHlABA1DwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABA3DwsgAEF6akHjABA3DwsgAEF8akHkAEHlAEHsAEHlABAsDwsgAEF+ai8BAEHvAEcNBSAAQXxqLwEAQeUARw0FAkAgAEF6ai8BACICQfAARg0AIAJB4wBHDQYgAEF4akHpAEHuAEHzAEH0AEHhAEHuABA2DwsgAEF4akH0AEH5ABArDwtBASEBIABBfmoiAEHpABA3DQQgAEHyAEHlAEH0AEH1AEHyABA0DwsgAEF+akHkABA3DwsgAEF+akHkAEHlAEHiAEH1AEHnAEHnAEHlABA4DwsgAEF+akHhAEH3AEHhAEHpABAsDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AEDcPCyAAQXxqQfQAQegAQfIAEDUhAQsgAQt2AQJ/AkACQANAQQBBACgCvKABIgBBAmoiATYCvKABIABBACgCwKABTw0BAkACQAJAIAEvAQAiAUGlf2oOAgECAAsCQCABQXZqDgQEAwMEAAsgAUEvRw0CDAQLEEAaDAELQQAgAEEEajYCvKABDAALC0ELEBsLC8YBAQR/QQAoArygASEAQQAoAsCgASEBAkACQANAIAAiAkECaiEAIAIgAU8NAQJAAkAgAC8BACIDQaR/ag4FAQICAgQACyADQSRHDQEgAi8BBEH7AEcNAUEAQQAvAYRAIgBBAWo7AYRAQQAoAqBgIABBAXRqQQAvAYhAOwEAQQAgAkEEajYCvKABQQBBAC8BhkBBAWoiADsBiEBBACAAOwGGQA8LIAJBBGohAAwACwtBACAANgK8oAFBCBAbDwtBACAANgK8oAELNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQP3EhAQsgAQtJAQF/QQAhBwJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVHDQAgAC8BCiAGRiEHCyAHC3oBA39BACgCvKABIQACQANAAkAgAC8BACIBQXdqQQVJDQAgAUEgRg0AIAFBoAFGDQAgAUEvRw0CAkAgAC8BAiIAQSpGDQAgAEEvRw0DEB0MAQsQHgtBAEEAKAK8oAEiAkECaiIANgK8oAEgAkEAKALAoAFJDQALCyABCzkBAX8CQCAALwEAIgFBgPgDcUGAuANHDQAgAEF+ai8BAEH/B3FBCnQgAUH/B3FyQYCABGohAQsgAQt9AQF/AkAgAEEvSw0AIABBJEYPCwJAIABBOkkNAEEAIQECQCAAQcEASQ0AIABB2wBJDQECQCAAQeAASw0AIABB3wBGDwsgAEH7AEkNAQJAIABB//8DSw0AIABBqgFJDQEgABA5DwtBASEBIAAQOg0AIAAQOyEBCyABDwtBAQtjAQF/AkAgAEHAAEsNACAAQSRGDwtBASEBAkAgAEHbAEkNAAJAIABB4ABLDQAgAEHfAEYPCyAAQfsASQ0AAkAgAEH//wNLDQBBACEBIABBqgFJDQEgABA8DwsgABA6IQELIAELTAEDf0EAIQMCQCAAQX5qIgRBACgCmB8iBUkNACAELwEAIAFHDQAgAC8BACACRw0AAkAgBCAFRw0AQQEPCyAAQXxqLwEAECUhAwsgAwtmAQN/QQAhBQJAIABBemoiBkEAKAKYHyIHSQ0AIAYvAQAgAUcNACAAQXxqLwEAIAJHDQAgAEF+ai8BACADRw0AIAAvAQAgBEcNAAJAIAYgB0cNAEEBDwsgAEF4ai8BABAlIQULIAULhQEBAn8gABA+IgAQKiEBAkACQCAAQdwARg0AQQAhAiABRQ0BC0EAKAK8oAFBAkEEIABBgIAESRtqIQACQANAQQAgADYCvKABIAAvAQAQPiIBRQ0BAkAgARApRQ0AIABBAkEEIAFBgIAESRtqIQAMAQsLQQAhAiABQdwARg0BC0EBIQILIAIL2gMBBH9BACgCvKABIgBBfmohAQNAQQAgAEECajYCvKABAkACQAJAIABBACgCwKABTw0AECchAEEAKAK8oAEhAgJAAkAgABAtRQ0AQQAoArygASEDAkACQBAnIgBBOkcNAEEAQQAoArygAUECajYCvKABECcQLUUNAUEAKAK8oAEvAQAhAAsgAiADQQAoApwfEQAADAILQQAgATYCvKABDwsCQAJAIABBIkYNACAAQS5GDQEgAEEnRw0EC0EAKAK8oAEhAiAAEBxBAEEAKAK8oAFBAmoiAzYCvKABECciAEE6Rw0BQQBBACgCvKABQQJqNgK8oAECQBAnEC1FDQBBACgCvKABLwEAIQAgAiADQQAoApwfEQAADAILQQAgATYCvKABDwtBACgCvKABIgAvAQJBLkcNAiAALwEEQS5HDQJBACAAQQZqNgK8oAECQAJAAkAgAC8BBiIAQfIARw0AQQEQECEAQQAoArygASECIAANASACLwEAIQALIABB//8DcRAtDQFBACABNgK8oAEPC0EAIAJBAmo2ArygAQsQJyEACyAAQf//A3EiAEEsRg0CIABB/QBGDQBBACABNgK8oAELDwtBACABNgK8oAEPC0EAKAK8oAEhAAwACwuPAQEBf0EAIQ4CQCAALwEAIAFHDQAgAC8BAiACRw0AIAAvAQQgA0cNACAALwEGIARHDQAgAC8BCCAFRw0AIAAvAQogBkcNACAALwEMIAdHDQAgAC8BDiAIRw0AIAAvARAgCUcNACAALwESIApHDQAgAC8BFCALRw0AIAAvARYgDEcNACAALwEYIA1GIQ4LIA4LqAEBAn9BACEBQQAoArygASECAkACQCAAQe0ARw0AIAJBAmpB7wBB5ABB9QBB7ABB5QAQE0UNAUEAIAJBDGo2ArygAQJAECdBLkYNAEEAIQEMAgtBAEEAKAK8oAFBAmo2ArygARAnIQALIABB5QBHDQBBACgCvKABIgBBDmogAiAAQQJqQfgAQfAAQe8AQfIAQfQAQfMAECYiARshAgtBACACNgK8oAEgAQtnAQF/QQAhCgJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVHDQAgAC8BCiAGRw0AIAAvAQwgB0cNACAALwEOIAhHDQAgAC8BECAJRiEKCyAKC3EBAX9BACELAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRw0AIAAvAQ4gCEcNACAALwEQIAlHDQAgAC8BEiAKRiELCyALC4MEAQJ/QQAhAgJAECdBzwBHDQBBACECQQAoArygASIDQQJqQeIAQeoAQeUAQeMAQfQAEBNFDQBBACECQQAgA0EMajYCvKABECdBLkcNAEEAQQAoArygAUECajYCvKABAkAQJyIDQfAARw0AQQAhAkEAKAK8oAEiA0ECakHyAEHvAEH0AEHvAEH0AEH5AEHwAEHlABA9RQ0BQQAhAkEAIANBEmo2ArygARAnQS5HDQFBAEEAKAK8oAFBAmo2ArygARAnIQMLQQAhAiADQegARw0AQQAhAkEAKAK8oAEiA0ECakHhAEHzAEHPAEH3AEHuAEHQAEHyAEHvAEHwAEHlAEHyAEH0AEH5ABAvRQ0AQQAhAkEAIANBHGo2ArygARAnQS5HDQBBACECQQBBACgCvKABQQJqNgK8oAEQJ0HjAEcNAEEAIQJBACgCvKABIgMvAQJB4QBHDQAgAy8BBEHsAEcNACADLwEGQewARw0AQQAhAkEAIANBCGo2ArygARAnQShHDQBBACECQQBBACgCvKABQQJqNgK8oAEQJxAtRQ0AECdBLEcNAEEAIQJBAEEAKAK8oAFBAmo2ArygARAnGkEAKAK8oAEiAyAAIAFBAXQiARBBDQBBACECQQAgAyABajYCvKABECdBKUcNAEEAQQAoArygAUECajYCvKABQQEhAgsgAgtJAQN/QQAhBgJAIABBeGoiB0EAKAKYHyIISQ0AIAcgASACIAMgBCAFEBNFDQACQCAHIAhHDQBBAQ8LIABBdmovAQAQJSEGCyAGC1kBA39BACEEAkAgAEF8aiIFQQAoApgfIgZJDQAgBS8BACABRw0AIABBfmovAQAgAkcNACAALwEAIANHDQACQCAFIAZHDQBBAQ8LIABBemovAQAQJSEECyAEC0sBA39BACEHAkAgAEF2aiIIQQAoApgfIglJDQAgCCABIAIgAyAEIAUgBhAmRQ0AAkAgCCAJRw0AQQEPCyAAQXRqLwEAECUhBwsgBws9AQJ/QQAhAgJAQQAoApgfIgMgAEsNACAALwEAIAFHDQACQCADIABHDQBBAQ8LIABBfmovAQAQJSECCyACC00BA39BACEIAkAgAEF0aiIJQQAoApgfIgpJDQAgCSABIAIgAyAEIAUgBiAHEBZFDQACQCAJIApHDQBBAQ8LIABBcmovAQAQJSEICyAIC64SAQN/AkAgABA8DQAgAEH0v39qQQJJDQAgAEG3AUYNACAAQYB6akHwAEkNACAAQf12akEFSQ0AIABBhwdGDQAgAEHvdGpBLUkNAAJAIABBwXRqIgFBCEsNAEEBIAF0Qe0CcQ0BCyAAQfBzakELSQ0AIABBtXNqQR9JDQACQCAAQapyaiIBQRJLDQBBASABdEH//BlxDQELIABB8AxGDQAgAEGWcmpBBEkNACAAQcBwakEKSQ0AIABB2nBqQQtJDQAgAEHQcWpBG0kNACAAQZEORg0AIABBkHJqQQpJDQAgAEHCbWpBEkkNACAAQcZtakEDSQ0AIABBnW5qQSFJDQAgAEGtbmpBD0kNACAAQadvakEDSQ0AIABB129qQQVJDQAgAEHbb2pBA0kNACAAQeVvakEJSQ0AIABB6m9qQQRJDQAgAEH9D0YNACAAQZVwakEJSQ0AAkAgAEGvbWoiAUESSw0AQQEgAXRB/4AYcQ0BCyAAQZptakEKSQ0AAkACQCAAQcRsag4oAgECAgICAgICAQECAgEBAgICAQEBAQEBAQEBAgEBAQEBAQEBAQECAgALIABB/2xqQQNJDQELIABB/hNGDQAgAEGabGpBCkkNAAJAIABBxGtqIgFBFUsNAEEBIAF0Qf2wjgFxDQELIABB/2tqQQNJDQAgAEH1FEYNACAAQZprakEMSQ0AAkACQCAAQcRqag4oAgECAgICAgICAgECAgIBAgICAQEBAQEBAQEBAQEBAQEBAQEBAQECAgALIABB/2pqQQNJDQELIABBmmpqQQpJDQAgAEGGampBBkkNAAJAAkAgAEHEaWoOKAIBAgICAgICAgEBAgIBAQICAgEBAQEBAQEBAgIBAQEBAQEBAQEBAgIACyAAQf9pakEDSQ0BCyAAQZppakEKSQ0AAkAgAEHCaGoiAUEZSw0AQQEgAXRBn+6DEHENAQsgAEGCF0YNACAAQZpoakEKSQ0AAkACQCAAQcJnag4mAgICAgICAgECAgIBAgICAgEBAQEBAQECAgEBAQEBAQEBAQEBAgIACyAAQYBoakEFSQ0BCyAAQZpnakEKSQ0AAkACQCAAQcRmag4oAgECAgICAgICAQICAgECAgICAQEBAQEBAQICAQEBAQEBAQEBAQECAgALIABB/2ZqQQNJDQELIABBmmZqQQpJDQAgAEF8cSIBQYAaRg0AAkAgAEHFZWoOKQEBAAEBAQEBAQEAAQEBAAEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAEBAAsgAEGaZWpBCkkNAAJAIABBtmRqIgJBDEsNAEEBIAJ0QeEvcQ0BCyAAQf5kakECSQ0AIABBeHFB2BtGDQAgAEGaZGpBCkkNAAJAIABBz2NqIgJBHUsNAEEBIAJ0QfmHgP4DcQ0BCyAAQY5kakECSQ0AIABBsR1GDQAgAEGwY2pBCkkNAAJAIABBzGJqIgJBCEsNACACQQZHDQELIABBuGJqQQZJDQAgAEHgYWpBCkkNACAAQX5xIgJBmB5GDQAgAEGwYmpBCkkNAAJAIABBy2FqIgNBCksNAEEBIAN0QZUMcQ0BCyAAQfNgakELSQ0AIAJBhh9GDQAgAEGPYWpBFEkNACAAQe5RakEDSQ0AIABBl1lqQQlJDQAgAEGjWWpBA0kNACAAQfFeakEPSQ0AIABB/l5qQQxJDQAgAEGPX2pBBEkNACAAQZlfakEHSQ0AIABBnl9qQQNJDQAgAEGiX2pBA0kNACAAQapfakEESQ0AIABBwF9qQQpJDQAgAEHVX2pBFEkNACAAQcYfRg0AIABB52BqQSRJDQAgAEHOUWpBA0kNACAAQa5RakECSQ0AIABBjlFqQQJJDQAgAEH1T2pBA0kNACAAQaBQakEKSQ0AIABB3S9GDQAgAEHMUGpBIEkNACAAQbBGakEDSQ0AIABBsEdqQQpJDQAgAEHAR2pBCkkNACAAQdxHakEUSQ0AIABBmkhqQQ5JDQAgAEHQSGpBCkkNACAAQd9IakENSQ0AIABBgElqQQNJDQAgAEGVSWpBCUkNACAAQbBJakEKSQ0AIABBzElqQRFJDQAgAEGASmpBBUkNACAAQdBKakEOSQ0AIABB8EpqQQpJDQAgAEGBS2pBC0kNACAAQaBLakEdSQ0AIABBq0tqQQpJDQAgAEHpS2pBBUkNACAAQbBMakELSQ0AIABBuk1qQQpJDQAgAEHQTWpBDEkNACAAQeBNakEMSQ0AIABBqTFGDQAgAEHwT2pBCkkNACAAQcBEakE6SQ0AIABBiUZqQQNJDQAgAEGORmpBA0kNACAAQe05Rg0AIABBrEZqQRVJDQAgAEGFRGpBBUkNAAJAIABBwb9/aiICQRVLDQBBASACdEGDgIABcQ0BCyAAQZu+f2pBDEkNACAAQeHBAEYNACAAQbC+f2pBDUkNACAAQZGmf2pBA0kNACAAQf/aAEYNACAAQWBxQeDbAEYNACAAQdaff2pBBkkNACAAQeeef2pBAkkNACAAQYyzfWpBCkkNACAAQe/MAkYNACAAQeCzfWpBCkkNAAJAIABB9a99aiICQRxLDQBBASACdEGBgID4AXENAQsgAEHisn1qQQJJDQAgAEGQsn1qQQJJDQACQAJAIABB/q99ag4FAgEBAQIACyAAQYCvfWpBAkkNAQsgAEHNrH1qQQ5JDQAgAUGA0wJGDQAgAEG5rX1qQQ1JDQAgAEHarX1qQQhJDQAgAEGBrn1qQQtJDQAgAEGgrn1qQRJJDQAgAEHMrn1qQRJJDQAgAEGwrn1qQQpJDQAgAEHXq31qQQ5JDQAgAEHl0wJGDQAgAEFfcUGwrH1qQQpJDQACQCAAQb2rfWoiAUEKSw0AQQEgAXRBgQxxDQELIABBsKt9akEKSQ0AAkAgAEGdqH1qIgFBCksNACABQQhHDQELAkAgAEHQqn1qIgFBEUsNAEEBIAF0QZ2DC3ENAQsCQCAAQZWqfWoiAUELSw0AQQEgAXRBnxhxDQELIABBhat9akEDSQ0AIABBcHEiAUGA/ANGDQAgAEGe9gNGDQAgAEGQqH1qQQpJDQAgAEG//gNGIABB8IF8akEKSSAAQbODfGpBA0kgAEHNg3xqQQJJIAFBoPwDRnJycnIPC0EBC1wBBH9BgIAEIQFBkAghAkF+IQMCQANAQQAhBCADQQJqIgNB5wNLDQEgAigCACABaiIBIABLDQEgAkEEaiEEIAJBCGohAiAEKAIAIAFqIgEgAEkNAAtBASEECyAEC1wBBH9BgIAEIQFBsBchAkF+IQMCQANAQQAhBCADQQJqIgNB+QFLDQEgAigCACABaiIBIABLDQEgAkEEaiEEIAJBCGohAiAEKAIAIAFqIgEgAEkNAAtBASEECyAEC8YfAQZ/AkACQAJAAkACQAJAIABB1n5qIgFBEEsNAEEBIAF0QYGQBHENAQsgAEG6empBDEkNACAAQYh+akHKA0kNACAAQcB+akEXSQ0AIABBqH5qQR9JDQACQCAAQZB5aiIBQRxLDQBBASABdEHf+YK6AXENAQsCQCAAQaB6aiIBQQ5LDQBBASABdEGfoAFxDQELIABB9nZqQaYBSQ0AIABBiXhqQYsBSQ0AIABB8nhqQRRJDQAgAEHdeGpB0wBJDQAgAEGRdGpBBEkNACAAQbB0akEbSQ0AIABBoHVqQSlJDQAgAEHZCkYNACAAQc91akEmSQ0AIABBj3NqQeMASQ0AIABBfnEiAkHuDEYNACAAQeBzakErSQ0AAkAgAEGrcmoiAUE8Tw0AQoGAjLCAnIGACCABrYhCAYNQRQ0BCyAAQe5xakEeSQ0AIABBtnBqQSFJDQAgAEGxD0YNACAAQbNxakHZAEkNAAJAIABBjHBqIgFBBksNAEEBIAF0QcMAcQ0BCyAAQYBwakEWSQ0AQQEhAQJAAkAgAEHcb2oOBQUBAQEFAAsgAEGaEEYNAQsgAEH8bWpBNkkNACAAQcpuakEISQ0AIABB4G5qQRVJDQAgAEHAb2pBGUkNACAAQaBvakELSQ0AIABBvRJGDQAgAEHQEkYNACAAQahtakEKSQ0AIABBj21qQRBJDQACQCAAQftsaiIDQQxPDQBBASEBQf8ZIANB//8DcXZBAXENBAsgAEHtbGpBFkkNAAJAIABBhGxqIgFBFEsNAEEBIAF0QYH84QBxDQELIABB1mxqQQdJDQACQCAAQc5saiIBQRxLDQBBASABdEHxkYCAAXENAQsCQCAAQaRsaiIBQRVLDQBBASABdEG7gMABcQ0BCyAAQe1rakEWSQ0AAkAgAEHWa2oiAUE1Tw0AQv+2g4CAgOALIAGtiEIBg1BFDQELIABB7WpqQRZJDQAgAEHxampBA0kNACAAQY5rakEDSQ0AIABB+2pqQQlJDQBBASEBAkACQCAAQdZqag4nBQUFBQUFBQEFBQEFBQUFBQEBAQUBAQEBAQEBAQEBAQEBAQEBAQEFAAsCQCAAQYdqaiIBQRdLDQBBASABdEGB4L8GcQ0CCyAAQaBqakECSQ0BCyAAQe1pakEWSQ0AQQEhAQJAAkAgAEGPaWoONAUBAQEBAQEBAQEBAQEBAQEBAQUBBQUFBQUFAQEBBQUFAQUFBQUBAQEFBQEFAQUFAQEBBQUACwJAIABB1mlqIgFBE0sNAEEBIAF0Qf/2I3ENAgsgAEGkaWoiAUEFSw0AIAFBAkcNAQsgAEHYaGpBA0kNACAAQe5nakEXSQ0AIABB8mdqQQNJDQAgAEH7Z2pBCEkNACAAQdAXRg0AIABB0mhqQQxJDQAgAEG9GEYNACAAQdZnakEQSQ0AAkAgAEGoZ2oiAUEpTw0AQoeGgICAICABrYhCAYNQRQ0BCyAAQdZmakEKSQ0AIABB7mZqQRdJDQAgAEH7ZmpBCEkNACAAQfJmakEDSQ0AAkAgAEH7ZWoiAUELSw0AIAFBCEcNAQsCQCAAQctmaiIBQQhLDQBBASABdEGfAnENAQsCQCAAQaJmaiIBQRRLDQBBASABdEGNgOAAcQ0BCyAAQe5lakEpSQ0AIABBvRpGDQAgAEHOGkYNACAAQc1kakEJSQ0AIABB5mRqQRhJDQAgAEH7ZGpBEkkNACAAQYZlakEGSQ0AIABBrGVqQQNJDQAgAEGhZWpBA0kNAAJAIABBw2RqIgNBCk8NAEEBIQFB+QcgA0H//wNxdkEBcQ0ECyACQbIcRg0AIABB/2NqQTBJDQAgAEHAY2pBB0kNAAJAIABB/2JqIgFBDEsNAEEBIAF0QcslcQ0BCyAAQXxxIgNBlB1GDQAgAEHnYmpBB0kNAAJAIABB32JqIgFBJk8NAELX7JuA+QUgAa2IQgGDUEUNAQsgAEGAYGpBK0kNACAAQfhgakEFSQ0AIABBt2FqQSRJDQAgAEF4cSIEQcAeRg0AIABBgB5GDQAgA0HcHUYNAAJAIABBwV9qIgFBKE8NAEKBgPjDxxggAa2IQgGDUEUNAQsgAEGSX2pBA0kNACAAQeBeakEmSQ0AIABBjiFGDQAgAEGLX2pBDUkNACAAQcchRg0AIABBzSFGDQAgAEG2W2pBBEkNACAAQbBeakErSQ0AIABBhF5qQc0CSQ0AAkAgAEGwW2oiBUEJTw0AQQEhAUH/AiAFQf//A3F2QQFxDQQLIABBzlpqQQRJDQAgAEHwWmpBIUkNACAAQfZaakEESQ0AIABBpltqQQRJDQAgAEGgW2pBKUkNAAJAIABByFpqIgVBCU8NAEEBIQFB/wIgBUH//wNxdkEBcQ0ECyAAQYBRakE0SQ0AIABBklFqQQNJDQAgAEGgUWpBDUkNACAAQcBRakESSQ0AIABB4FFqQRJJDQAgAEHyUWpBBEkNACAAQYBSakENSQ0AIABBklJqQQtJDQAgAEHgUmpBywBJDQAgAEH/UmpBGkkNACAAQZFTakERSQ0AIABB/1dqQewESQ0AIABBiFhqQQZJDQAgAEHgWGpB1gBJDQAgAEFwcSIFQYAnRg0AIABB6FlqQcMASQ0AIABB7llqQQRJDQAgAEGoWmpBOUkNACAAQb5aakEESQ0AIABBuFpqQQ9JDQAgAEHXL0YNACAAQdwvRg0AIABB4E9qQdkASQ0AIABBgExqQRdJDQAgAEHQTGpBGkkNACAAQYBNakEsSQ0AIABBkE1qQQVJDQAgAEGwTWpBHkkNACAAQYBOakEfSQ0AIABB0E5qQcYASQ0AIABBqjFGDQQgAEGAT2pBKUkNBCAAQbtJakEHSQ0EIABB+0lqQS9JDQQgAEGnNUYNBCAAQeBLakE1SQ0EIABBl0ZqQQRJDQQgAEHDRmpBA0kNBCAAQfBGakErSQ0EIABBgEdqQQlJDQQgAEGmR2pBJEkNBCAAQbNHakEDSQ0EIABBgEhqQSRJDQQgAEHGSGpBLEkNBCACQa43Rg0EIABB/UhqQR5JDQQgAEGSRmoiBkEJSQ0BDAILQQEhAQwCC0EBIQFBjwMgBkH//wNxdkEBcQ0BCyAEQdA+Rg0BIABBuEFqQQZJDQEgAEHgQWpBJkkNASAAQehBakEGSQ0BIABBgEZqQcABSQ0BIABBgERqQZYCSQ0BAkAgAEGnQWoiAUEESw0AQQEgAXRBFXENAgsgAEGhQWpBH0kNASAAQYBBakE1SQ0BAkAgAEHKQGoiBEEJTw0AQQEhAUH/AiAEQf//A3F2QQFxDQELIABBjkBqQQNJDQEgAEGgQGpBDUkNASAAQapAakEGSQ0BIANB0D9GDQEgAEG+QGpBA0kNASAAQbpAakEHSQ0BIABBikBqQQdJDQEgAEHxwABGDQEgAEH/wABGDQEgAEHwvn9qQQ1JDQEgAEGCwgBGDQEgAEGHwgBGDQEgAEGVwgBGDQEgAEH2vX9qQQpJDQECQCAAQei9f2oiBEERTw0AQQEhAUG/oAUgBHZBAXENAQsgAEHWvX9qQRBJDQEgA0G8wgBGDQECQCAAQbu9f2oiBEEKTw0AQQEhAUGfBCAEQf//A3F2QQFxDQELIABBoKd/akGFAUkNASAAQdCnf2pBL0kNASAAQaC9f2pBKUkNASAAQYCof2pBL0kNAQJAIABBlaZ/aiIEQQlPDQBBASEBQY8DIARB//8DcXZBAXENAQsgAEGApn9qQSZJDQEgAEGn2gBGDQEgAEGt2gBGDQEgAEGAtn1qQY0CSQ0BIABBsLZ9akEuSQ0BIABBgMB9akGNCUkNASAAQYDkfmpB8KMBSQ0BIABBgJh/akG2M0kNASAFQfDjAEYNASAAQeCcf2pBG0kNASAAQc+df2pB3gBJDQEgAEH7nX9qQStJDQEgA0H84QBGDQEgAEHfnn9qQdoASQ0BIABB5Z5/akEFSQ0BIABBv59/akHWAEkNASAAQciff2pBBUkNASAAQc+ff2pBBUkNASAAQd+ff2pBCUkNASAAQfuff2pBA0kNASAAQaikf2pBB0kNASAAQbCkf2pBB0kNASAAQbikf2pBB0kNASAAQcCkf2pBB0kNASAAQcikf2pBB0kNASAAQdCkf2pBB0kNASAAQdikf2pBB0kNASAAQeCkf2pBB0kNASAAQYClf2pBF0kNASAAQe/aAEYNASAAQdClf2pBOEkNASAAQf6ufWpBMkkNASAAQcCvfWpBNEkNASAAQfSvfWpBF0kNASAAQfmvfWpBBEkNASAAQf2vfWpBA0kNASAAQYmwfWpBC0kNASAAQfWwfWpBL0kNASAAQd6xfWpB5wBJDQEgAEHpsX1qQQlJDQEgAEHgsn1qQdAASQ0BIABBgbN9akEfSQ0BIABBwLN9akEvSQ0BIAJBqswCRg0BIAVBkMwCRg0BAkAgAEGOrn1qIgJBDU8NAEEBIQFBvzQgAkH//wNxdkEBcQ0BCyAAQaCtfWpBHUkNASAAQfatfWpBHEkNASAAQdCtfWpBF0kNASAAQbyrfWpBCEkNASAAQcCrfWpBA0kNASAAQYCsfWpBKUkNASAAQYasfWpBBUkNASAAQZqsfWpBCkkNASAAQaCsfWpBBUkNASAAQc/TAkYNASAAQfysfWpBL0kNASAAQYKrfWpBMkkNASAAQfrUAkYNASAAQaCrfWpBF0kNAQJAIABBz6p9aiICQRJPDQBBASEBQbG+CiACdkEBcQ0BCyAAQYCKfGpBB0kNASAAQZCLfGpB6gBJDQEgAEGAjnxqQe4CSQ0BIABBtdB8akExSQ0BIABB0NB8akEXSQ0BIABBgKh9akGk1wBJDQEgAEGQqX1qQfMASQ0BIABBpKl9akEKSQ0BIABB0Kl9akErSQ0BIABB2Kl9akEHSQ0BIABB4Kl9akEHSQ0BIABB76l9akEGSQ0BIABBd3FB/6l9akEGSQ0BIABBjqp9akEDSQ0BIABBpap9akEDSQ0BIABBoKp9akELSQ0BAkAgAEHtiXxqIgJBC08NAEEBIQFBnwggAkH//wNxdkEBcQ0BCyAAQeGJfGpBCkkNASAAQdaJfGpBDUkNAQJAIABByIl8aiICQQ1PDQBBASEBQd82IAJB//8DcXZBAXENAQsgAEGugHxqQQZJDQEgAEG2gHxqQQZJDQEgAEG+gHxqQQZJDQEgAEGagXxqQdkASQ0BIABBv4F8akEaSQ0BIABB34F8akEaSQ0BIABBioN8akGHAUkNASAAQZCDfGpBBUkNASAAQZCEfGpBDEkNASAAQe6EfGpBNkkNASAAQbCFfGpBwABJDQEgAEG6iXxqQewASQ0BQQEhASAAQa2IfGpB6wJJDQAgAEGmgHxqQQNJDwsgAQ8LQQELXQEBf0EAIQkCQCAALwEAIAFHDQAgAC8BAiACRw0AIAAvAQQgA0cNACAALwEGIARHDQAgAC8BCCAFRw0AIAAvAQogBkcNACAALwEMIAdHDQAgAC8BDiAIRiEJCyAJCzUAAkAgAEGA+ANxQYCwA0cNACAAQQp0QYD4P3FBACgCvKABLwECQf8HcXJBgIAEaiEACyAAC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC3gBBH9BACgCvKABIQBBACgCwKABIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgK8oAFBChAbQQAPC0EAIAI2ArygAUHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCFwIAQYAIC5gXAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAABkAAAACAAAAEgAAAAIAAAABAAAAAgAAAA4AAAADAAAADQAAACMAAAB6AAAARgAAADQAAAAMAQAAHAAAAAQAAAAwAAAAMAAAAB8AAAAOAAAAHQAAAAYAAAAlAAAACwAAAB0AAAADAAAAIwAAAAUAAAAHAAAAAgAAAAQAAAArAAAAnQAAABMAAAAjAAAABQAAACMAAAAFAAAAJwAAAAkAAAAzAAAAnQAAADYBAAAKAAAAFQAAAAsAAAAHAAAAmQAAAAUAAAADAAAAAAAAAAIAAAArAAAAAgAAAAEAAAAEAAAAAAAAAAMAAAAWAAAACwAAABYAAAAKAAAAHgAAAEIAAAASAAAAAgAAAAEAAAALAAAAFQAAAAsAAAAZAAAARwAAADcAAAAHAAAAAQAAAEEAAAAAAAAAEAAAAAMAAAACAAAAAgAAAAIAAAAcAAAAKwAAABwAAAAEAAAAHAAAACQAAAAHAAAAAgAAABsAAAAcAAAANQAAAAsAAAAVAAAACwAAABIAAAAOAAAAEQAAAG8AAABIAAAAOAAAADIAAAAOAAAAMgAAAA4AAAAjAAAAXQEAACkAAAAHAAAAAQAAAE8AAAAcAAAACwAAAAAAAAAJAAAAFQAAAGsAAAAUAAAAHAAAABYAAAANAAAANAAAAEwAAAAsAAAAIQAAABgAAAAbAAAAIwAAAB4AAAAAAAAAAwAAAAAAAAAJAAAAIgAAAAQAAAAAAAAADQAAAC8AAAAPAAAAAwAAABYAAAAAAAAAAgAAAAAAAAAkAAAAEQAAAAIAAAAYAAAAVQAAAAYAAAACAAAAAAAAAAIAAAADAAAAAgAAAA4AAAACAAAACQAAAAgAAAAuAAAAJwAAAAcAAAADAAAAAQAAAAMAAAAVAAAAAgAAAAYAAAACAAAAAQAAAAIAAAAEAAAABAAAAAAAAAATAAAAAAAAAA0AAAAEAAAAnwAAADQAAAATAAAAAwAAABUAAAACAAAAHwAAAC8AAAAVAAAAAQAAAAIAAAAAAAAAuQAAAC4AAAAqAAAAAwAAACUAAAAvAAAAFQAAAAAAAAA8AAAAKgAAAA4AAAAAAAAASAAAABoAAADmAAAAKwAAAHUAAAA/AAAAIAAAAAcAAAADAAAAAAAAAAMAAAAHAAAAAgAAAAEAAAACAAAAFwAAABAAAAAAAAAAAgAAAAAAAABfAAAABwAAAAMAAAAmAAAAEQAAAAAAAAACAAAAAAAAAB0AAAAAAAAACwAAACcAAAAIAAAAAAAAABYAAAAAAAAADAAAAC0AAAAUAAAAAAAAACMAAAA4AAAACAEAAAgAAAACAAAAJAAAABIAAAAAAAAAMgAAAB0AAABxAAAABgAAAAIAAAABAAAAAgAAACUAAAAWAAAAAAAAABoAAAAFAAAAAgAAAAEAAAACAAAAHwAAAA8AAAAAAAAASAEAABIAAAC+AAAAAAAAAFAAAACZAwAAZwAAAG4AAAASAAAAwwAAAL0KAAAuBAAA0g8AAEYCAAC6IQAAOAIAAAgAAAAeAAAAcgAAAB0AAAATAAAALwAAABEAAAADAAAAIAAAABQAAAAGAAAAEgAAALECAAA/AAAAgQAAAEoAAAAGAAAAAAAAAEMAAAAMAAAAQQAAAAEAAAACAAAAAAAAAB0AAAD3FwAACQAAANUEAAArAAAACAAAAPgiAAAeAQAAMgAAAAIAAAASAAAAAwAAAAkAAACLAQAABQkAAGoAAAAGAAAADAAAAAQAAAAIAAAACAAAAAkAAABnFwAAVAAAAAIAAABGAAAAAgAAAAEAAAADAAAAAAAAAAMAAAABAAAAAwAAAAMAAAACAAAACwAAAAIAAAAAAAAAAgAAAAYAAAACAAAAQAAAAAIAAAADAAAAAwAAAAcAAAACAAAABgAAAAIAAAAbAAAAAgAAAAMAAAACAAAABAAAAAIAAAAAAAAABAAAAAYAAAACAAAAUwEAAAMAAAAYAAAAAgAAABgAAAACAAAAHgAAAAIAAAAYAAAAAgAAAB4AAAACAAAAGAAAAAIAAAAeAAAAAgAAABgAAAACAAAAHgAAAAIAAAAYAAAAAgAAAAcAAAA1CQAALAAAAAsAAAAGAAAAEQAAAAAAAAByAQAAKwAAABUFAADEAAAAPAAAAEMAAAAIAAAAAAAAALUEAAADAAAAAgAAABoAAAACAAAAAQAAAAIAAAAAAAAAAwAAAAAAAAACAAAACQAAAAIAAAADAAAAAgAAAAAAAAACAAAAAAAAAAcAAAAAAAAABQAAAAAAAAACAAAAAAAAAAIAAAAAAAAAAgAAAAIAAAACAAAAAQAAAAIAAAAAAAAAAwAAAAAAAAACAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAAAAAADAAAAAwAAAAIAAAAGAAAAAgAAAAMAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAkAAAACAAAAEAAAAAYAAAACAAAAAgAAAAQAAAACAAAAEAAAAEURAADdpgAAIwAAADQQAAAMAAAA3QAAAAMAAACBFgAADwAAADAdAAAgDAAAHQIAAOMFAABKEwAA/QEAAAAAAADjAAAAAAAAAJYAAAAEAAAAJgEAAAkAAABYBQAAAgAAAAIAAAABAAAABgAAAAMAAAApAAAAAgAAAAUAAAAAAAAApgAAAAEAAAA+AgAAAwAAAAkAAAAJAAAAcgEAAAEAAACaAAAACgAAALAAAAACAAAANgAAAA4AAAAgAAAACQAAABAAAAADAAAALgAAAAoAAAA2AAAACQAAAAcAAAACAAAAJQAAAA0AAAACAAAACQAAAAYAAAABAAAALQAAAAAAAAANAAAAAgAAADEAAAANAAAACQAAAAMAAAACAAAACwAAAFMAAAALAAAABwAAAAAAAAChAAAACwAAAAYAAAAJAAAABwAAAAMAAAA4AAAAAQAAAAIAAAAGAAAAAwAAAAEAAAADAAAAAgAAAAoAAAAAAAAACwAAAAEAAAADAAAABgAAAAQAAAAEAAAAwQAAABEAAAAKAAAACQAAAAUAAAAAAAAAUgAAABMAAAANAAAACQAAANYAAAAGAAAAAwAAAAgAAAAcAAAAAQAAAFMAAAAQAAAAEAAAAAkAAABSAAAADAAAAAkAAAAJAAAAVAAAAA4AAAAFAAAACQAAAPMAAAAOAAAApgAAAAkAAABHAAAABQAAAAIAAAABAAAAAwAAAAMAAAACAAAAAAAAAAIAAAABAAAADQAAAAkAAAB4AAAABgAAAAMAAAAGAAAABAAAAAAAAAAdAAAACQAAACkAAAAGAAAAAgAAAAMAAAAJAAAAAAAAAAoAAAAKAAAALwAAAA8AAACWAQAABwAAAAIAAAAHAAAAEQAAAAkAAAA5AAAAFQAAAAIAAAANAAAAewAAAAUAAAAEAAAAAAAAAAIAAAABAAAAAgAAAAYAAAACAAAAAAAAAAkAAAAJAAAAMQAAAAQAAAACAAAAAQAAAAIAAAAEAAAACQAAAAkAAABKAQAAAwAAAGpLAAAJAAAAhwAAAAQAAAA8AAAABgAAABoAAAAJAAAA9gMAAAAAAAACAAAANgAAAAgAAAADAAAAUgAAAAAAAAAMAAAAAQAAAKxMAAABAAAAxxQAAAQAAAAEAAAABQAAAAkAAAAHAAAAAwAAAAYAAAAfAAAAAwAAAJUAAAACAAAAigUAADEAAAABAgAANgAAAAUAAAAxAAAACQAAAAAAAAAPAAAAAAAAABcAAAAEAAAAAgAAAA4AAABRBQAABgAAAAIAAAAQAAAAAwAAAAYAAAACAAAAAQAAAAIAAAAEAAAABgEAAAYAAAAKAAAACQAAAKMBAAANAAAA1wUAAAYAAABuAAAABgAAAAYAAAAJAAAAlxIAAAkAAAAHBQwA7wAAAABBmB8LHFCMAAABAAAAAgAAAAMAAAAEAAAAAAQAAPAfAAA=";return typeof window<"u"&&typeof atob=="function"?Uint8Array.from(atob(A),Q=>Q.charCodeAt(0)):Buffer.from(A,"base64")},o;function a(){return o||(o=(async()=>{let A=await WebAssembly.compile(await q()),{exports:Q}=await WebAssembly.instantiate(A);B=Q})())}0&&(module.exports={init,parse}); diff --git a/node_modules/cjs-module-lexer/dist/lexer.mjs b/node_modules/cjs-module-lexer/dist/lexer.mjs index 6b283d6fc..6917b0ec0 100644 --- a/node_modules/cjs-module-lexer/dist/lexer.mjs +++ b/node_modules/cjs-module-lexer/dist/lexer.mjs @@ -1,2 +1,4 @@ -/* cjs-module-lexer 1.4.3 */ -let A;const Q=1===new Uint8Array(new Uint16Array([1]).buffer)[0];export function parse(g,I="@"){if(!A)throw new Error("Not initialized");const D=g.length+1,N=(A.__heap_base.value||A.__heap_base)+4*D-A.memory.buffer.byteLength;N>0&&A.memory.grow(Math.ceil(N/65536));const k=A.sa(D);(Q?C:E)(g,new Uint16Array(A.memory.buffer,k,D));const w=A.parseCJS(k,g.length,0,0,0);if(w){const Q=new Error(`Parse error ${I}${A.e()}:${g.slice(0,A.e()).split("\n").length}:${A.e()-g.lastIndexOf("\n",A.e()-1)}`);throw Object.assign(Q,{idx:A.e()}),5!==w&&6!==w&&7!==w||Object.assign(Q,{code:"ERR_LEXER_ESM_SYNTAX"}),Q}let H=new Set,J=new Set,o=new Set;for(;A.rre();){const Q=B(g.slice(A.res(),A.ree()));Q&&J.add(Q)}for(;A.ru();)o.add(B(g.slice(A.us(),A.ue())));for(;A.re();){let Q=B(g.slice(A.es(),A.ee()));void 0===Q||o.has(Q)||H.add(Q)}return{exports:[...H],reexports:[...J]}}function B(A){if('"'!==A[0]&&"'"!==A[0])return A;try{const Q=(0,eval)(A);for(let A=0;A>>8}}function C(A,Q){const B=A.length;let E=0;for(;EA.charCodeAt(0))}let I;export function init(){return I||(I=(async()=>{const Q=await WebAssembly.compile(g()),{exports:B}=await WebAssembly.instantiate(Q);A=B})())}export function initSync(){if(A)return;const Q=new WebAssembly.Module(g()),{exports:B}=new WebAssembly.Instance(Q);A=B} \ No newline at end of file +/* cjs-module-lexer 1.3.1 */ +var t,p=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function x(e,n="@"){if(!t)throw new Error("Not initialized");let i=e.length+1,r=(t.__heap_base.value||t.__heap_base)+i*4-t.memory.buffer.byteLength;r>0&&t.memory.grow(Math.ceil(r/65536));let a=t.sa(i);(p?u:w)(e,new Uint16Array(t.memory.buffer,a,i));let s=t.parseCJS(a,e.length,0,0,0);if(s){let o=new Error(`Parse error ${n}${t.e()}:${e.slice(0,t.e()).split(` +`).length}:${t.e()-e.lastIndexOf(` +`,t.e()-1)}`);throw Object.assign(o,{idx:t.e()}),(s===5||s===6||s===7)&&Object.assign(o,{code:"ERR_LEXER_ESM_SYNTAX"}),o}let f=new Set,d=new Set,h=new Set;for(;t.rre();){let o=l(e.slice(t.res(),t.ree()));o&&d.add(o)}for(;t.ru();)h.add(l(e.slice(t.us(),t.ue())));for(;t.re();){let o=l(e.slice(t.es(),t.ee()));o!==void 0&&!h.has(o)&&f.add(o)}return{exports:[...f],reexports:[...d]}}function l(e){if(e[0]==='"'||e[0]==="'")try{let n=(0,eval)(e);for(let i=0;i>>8}}function u(e,n){let i=e.length,r=0;for(;r{let e="AGFzbQEAAAABrAERYAJ/fwBgAABgAX8Bf2AAAX9gBn9/f39/fwF/YAF/AGAXf39/f39/f39/f39/f39/f39/f39/f38Bf2AIf39/f39/f38Bf2AHf39/f39/fwF/YAN/f38Bf2AFf39/f38Bf2AOf39/f39/f39/f39/f38Bf2AKf39/f39/f39/fwF/YAt/f39/f39/f39/fwF/YAJ/fwF/YAR/f39/AX9gCX9/f39/f39/fwF/A0NCAgMDAwMDAwMDAwMAAAABBAICBQQBBgcBBQEFBQUBAQICAgIBAQIIAwICAgkKAgELAgwNDgQPCA4HAgICAhACAgMJBAUBcAEFBQUDAQABBg8CfwFB0JgCC38AQdCYAgsHXA4GbWVtb3J5AgACc2EAAAFlAAECZXMAAgJlZQADA3JlcwAEA3JlZQAFAnVzAAYCdWUABwJyZQAIA3JyZQAJAnJ1AAoIcGFyc2VDSlMADwtfX2hlYXBfYmFzZQMBCQoBAEEBCwQLDA0OCt2fAUJ4AQF/QQAoApgfIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLkH0EAIAA2AugfQQBBADYCwB9BAEEANgLIH0EAQQA2AsQfQQBBADYCzB9BAEEANgLUH0EAQQA2AtAfQQBBADYC2B9BAEEANgLgH0EAQQA2AtwfIAELCABBACgC7B8LFQBBACgCxB8oAgBBACgCmB9rQQF1CxUAQQAoAsQfKAIEQQAoApgfa0EBdQsVAEEAKALQHygCAEEAKAKYH2tBAXULFQBBACgC0B8oAgRBACgCmB9rQQF1CxUAQQAoAtwfKAIAQQAoApgfa0EBdQsVAEEAKALcHygCBEEAKAKYH2tBAXULJQEBf0EAQQAoAsQfIgBBCGpBwB8gABsoAgAiADYCxB8gAEEARwslAQF/QQBBACgC0B8iAEEIakHMHyAAGygCACIANgLQHyAAQQBHCyUBAX9BAEEAKALcHyIAQQhqQdgfIAAbKAIAIgA2AtwfIABBAEcLSAEBf0EAKALIHyICQQhqQcAfIAIbQQAoAugfIgI2AgBBACACNgLIH0EAIAJBDGo2AugfIAJBADYCCCACIAE2AgQgAiAANgIAC0gBAX9BACgC1B8iAkEIakHMHyACG0EAKALoHyICNgIAQQAgAjYC1B9BACACQQxqNgLoHyACQQA2AgggAiABNgIEIAIgADYCAAtIAQF/QQAoAuAfIgJBCGpB2B8gAhtBACgC6B8iAjYCAEEAIAI2AuAfQQAgAkEMajYC6B8gAkEANgIIIAIgATYCBCACIAA2AgALEgBBAEEANgLMH0EAQQA2AtQfC50PAEEAIAE2AoBAQQAgADYCmB8CQCACRQ0AQQAgAjYCnB8LAkAgA0UNAEEAIAM2AqAfCwJAIARFDQBBACAENgKkHwtBAEH//wM7AYhAQQBBoMAANgKgYEEAQbDgADYCsKABQQBBgCA2ArSgAUEAQQAoAqwfNgKMQEEAIABBfmoiAjYCvKABQQAgAiABQQF0aiIDNgLAoAFBAEEAOwGGQEEAQQA7AYRAQQBBADoAkEBBAEEANgLsH0EAQQA2AvAfQQBBADoAuKABAkACQCAALwEAQSNHDQAgAC8BAkEhRw0AQQAhAiABQQJGDQFBACAAQQJqNgK8oAEgAEEEaiEAAkADQCAAIgJBfmogA08NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2ArygAQsDQEEAIAJBAmoiADYCvKABAkACQAJAAkACQAJAIAIgA08NAAJAIAAvAQAiAUF3aiIDQRdLDQBBASADdEGfgIAEcQ0GCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkBBAC8BhkAiAw0AAkACQAJAIAFBoX9qDg8CEBUVBhUFFRUVARUVFQQACwJAIAFBWWoOCQ4ICRUVFRUVDwALAkAgAUGFf2oOAwsVDAALIAFBIkYNDSABQc8ARg0GIAFB8gBHDRQCQEEAEBBFDQAgABARRQ0AIAIQEgtBAEEAKAK8oAE2AoxADBULAkAgAkEEakHtAEHwAEHvAEHyAEH0ABATRQ0AIAAQEUUNABAUQQAoArygASEAC0EAIAA2AoxADBQLAkACQCACQQRqIgNB6QBB7gBB9ABB5QBB8gBB7wBB8ABB0gBB5QBB8QBB9QBB6QBB8gBB5QBB1wBB6QBB7ABB5ABB4wBB4QBB8gBB5AAQFUUNAAJAIAAQEQ0AIAIvAQBBLkcNAQtBACACQTBqNgK8oAEgAi8BMEEoRw0BQQAgAkEyajYCvKABQQBBATsBhkBBACgCsKABQQAoAoxANgIAQQAQEEUNASAAEBFFDQEgAhASDAELIANB3wBB5QBB+ABB8ABB7wBB8gBB9AAQFkUNAAJAIAAQEQ0AIAIvAQBBLkcNAQtBACACQRJqNgK8oAECQCACLwESIgNB0wBHDQAgAi8BFEH0AEcNASACLwEWQeEARw0BIAIvARhB8gBHDQFBACACQRpqNgK8oAEgAi8BGiEDCyADQf//A3FBKEcNAEEAKAKwoAFBACgCjEA2AgBBAEEBOwGGQEEAQQAoArygASICQQJqNgK8oAEgAi8BAkHyAEcNAEECEBAaC0EAQQAoArygATYCjEAMEwsCQCABQVlqDgkLBQcSEhISEgwACwJAIAFBoH9qDgYNEhIDEgIACwJAIAFBhX9qDgMIEgoACyABQSJGDQogAUHPAEYNAyABQe0ARw0RCyACQQRqQe8AQeQAQfUAQewAQeUAEBNFDRAgABARRQ0QEBcMEAsgAkEEakH4AEHwAEHvAEHyAEH0ABATRQ0PIAAQEUUNDwJAIAIvAQ5B8wBHDQBBABAYDBALIAMNDxAZDA8LIAAQEUUNDiACLwEEQewARw0OIAIvAQZB4QBHDQ4gAi8BCEHzAEcNDiACLwEKQfMARw0OIAIvAQwiA0F3aiICQRdLDQxBASACdEGfgIAEcUUNDAwNCyACQQRqQeIAQeoAQeUAQeMAQfQAEBNFDQ0gABARRQ0NIANFEBoMDQtBACADQQFqOwGGQEEAKAKwoAEgA0ECdGpBACgCjEA2AgAMDAtBCBAbQQAoAvAfDwtBACADQX9qOwGGQAwKCyADQdCgAWpBAC0AuKABOgAAQQAgA0EBajsBhkBBACgCsKABIANBAnRqQQAoAoxANgIAQQBBADoAuKABDAkLQQIQG0EADwtBACADQX9qIgA7AYZAAkAgA0EALwGIQCICRw0AQQBBAC8BhEBBf2oiAjsBhEBBAEEAKAKgYCACQf//A3FBAXRqLwEAOwGIQAwFCyACQf//A0YNByAAQf//A3EgAk8NB0EDEBtBACgC8B8PCyABEBwMBgsCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAdDAgLEB4MBwsCQAJAAkACQEEAKAKMQCIALwEAIgIQH0UNAAJAAkACQCACQVVqDgQBBQIABQsgAEF+ai8BAEFQakH//wNxQQpJDQMMBAsgAEF+ai8BAEErRg0CDAMLIABBfmovAQBBLUYNAQwCCwJAAkAgAkH9AEYNACACQS9GDQEgAkEpRw0CQQAoArCgASADQQJ0aigCABAgRQ0CDAMLQQAoArCgASADQQJ0aigCABAhDQIgA0HQoAFqLQAARQ0BDAILQQAtAJBADQELIAAQIiEDIAJFDQBBASECIANFDQELECNBACECC0EAIAI6AJBADAULQQAvAYhAQf7/A0cNAUEEEBtBACgC8B8PC0EAIQICQAJAQQAvAYhAQf//A0YNAEEAKALwHyEDDAELQQAoAvAfIQNBAC8BhkANACADRQ0HCyADIQIMBgsQJAwCCyADQaABRw0BC0EAQQE6ALigAQtBAEEAKAK8oAE2AoxAC0EAKALAoAEhA0EAKAK8oAEhAgwACwsgAgvuAQEEf0EAIQECQEEAKAK8oAEiAkECakHlAEHxAEH1AEHpAEHyAEHlABAmRQ0AQQAhAUEAIAJBDmo2ArygAQJAECdBKEcNAEEAQQAoArygAUECajYCvKABECchA0EAKAK8oAEhBAJAIANBJ0YNACADQSJHDQELIAMQHEEAQQAoArygAUECaiIDNgK8oAEQJ0EpRw0AAkACQAJAIABBf2oOAgEAAgsgBCADQQAoAqAfEQAAQQEPCyAEIANBACgCoB8RAABBAQ8LQQAoArSgASAENgIAQQAoArSgASADNgIEQQEPC0EAIAI2ArygAQsgAQsdAAJAQQAoApgfIABHDQBBAQ8LIABBfmovAQAQJQv1AgEEf0EAKAKYHyEBAkADQCAAQX5qIQIgAC8BACIDQSBHDQEgACABSyEEIAIhACAEDQALCwJAIANBPUcNAAJAA0AgAkF+aiEAIAIvAQBBIEcNASACIAFLIQQgACECIAQNAAsLIABBAmohAiAAQQRqIQNBACEEAkADQCACECghACACIAFNDQEgAEUNASAAQdwARg0CIAAQKUUNASACQX5BfCAAQYCABEkbaiECIAAQKiEEDAALCyAEQQFxRQ0AIAIvAQBBIEcNAEEAKAK0oAEiBEEAKAKwH0YNACAEIAM2AgwgBCACQQJqNgIIIAJBfmohAEEgIQICQANAIABBAmogAU0NASACQf//A3FBIEcNASAALwEAIQIgAEF+aiEADAALCwJAAkACQCACQf//A3FBjn9qDgMAAwEDCyAAQfYAQeEAECsNAQwCCyAAQewAQeUAECsNACAAQeMAQe8AQe4AQfMAECxFDQELQQAgBEEQajYCtKABCws/AQF/QQAhBgJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVGIQYLIAYLowEBA39BAEEAKAK8oAEiAEEMaiIBNgK8oAECQAJAAkACQAJAAkACQBAnIgJBWWoOCAIDAQIBAQEEAAsgAkEiRg0BIAJB+wBGDQELQQAoArygASABRg0EC0EALwGGQEUNAkEAQQAoArygAUF+ajYCvKABDwtBAEEALwGGQCICQQFqOwGGQEEAKAKwoAEgAkECdGogADYCAA8LQQUQGw8LQQYQGwsL6QEBAX9BACEXAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRw0AIAAvAQ4gCEcNACAALwEQIAlHDQAgAC8BEiAKRw0AIAAvARQgC0cNACAALwEWIAxHDQAgAC8BGCANRw0AIAAvARogDkcNACAALwEcIA9HDQAgAC8BHiAQRw0AIAAvASAgEUcNACAALwEiIBJHDQAgAC8BJCATRw0AIAAvASYgFEcNACAALwEoIBVHDQAgAC8BKiAWRiEXCyAXC1MBAX9BACEIAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRiEICyAIC2wBAX9BAEEAKAK8oAEiAEEMajYCvKABAkAQJ0EuRw0AQQBBACgCvKABQQJqNgK8oAEQJ0HlAEcNAEEAKAK8oAFBAmpB+ABB8ABB7wBB8gBB9ABB8wAQJkUNAEEBEBgPC0EAIABBCmo2ArygAQu2AgECf0EAQQAoArygASIBQQ5qNgK8oAECQAJAAkAQJyICQdsARg0AIAJBPUYNASACQS5HDQJBAEEAKAK8oAFBAmo2ArygARAnIQJBACgCvKABIQAgAhAtRQ0CQQAoArygASECECdBPUcNAiAAIAJBACgCnB8RAAAPC0EAQQAoArygAUECajYCvKABAkAQJyICQSdGDQAgAkEiRw0CC0EAKAK8oAEhACACEBxBAEEAKAK8oAFBAmoiAjYCvKABECdB3QBHDQFBAEEAKAK8oAFBAmo2ArygARAnQT1HDQEgACACQQAoApwfEQAADAELIABFDQBBACgCqB8RAQBBAEEAKAK8oAFBAmo2ArygAQJAECciAkHyAEYNACACQfsARw0BEC4PC0EBEBAaC0EAIAFBDGo2ArygAQs4AQJ/QQBBACgCvKABQQxqIgA2ArygARAnIQECQAJAQQAoArygASAARw0AIAEQP0UNAQtBBxAbCwukJgEIf0EAQQAoArygASIBQQxqNgK8oAEgAUEKaiEBAkAQJ0EuRw0AQQBBACgCvKABQQJqNgK8oAECQAJAECciAkHkAEcNAEEAKAK8oAEiAEECakHlAEHmAEHpAEHuAEHlAEHQAEHyAEHvAEHwAEHlAEHyAEH0AEH5ABAvRQ0CQQAgAEEcajYCvKABIABBGmohARAnQShHDQJBAEEAKAK8oAFBAmo2ArygARAnEDBFDQIQJ0EsRw0CQQBBACgCvKABQQJqNgK8oAECQBAnIgBBJ0YNACAAQSJHDQMLQQAoArygASECIAAQHEEAQQAoArygAUECaiIANgK8oAEQJ0EsRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABAkAQJyIDQeUARw0AQQAoArygASIDQQJqQe4AQfUAQe0AQeUAQfIAQeEAQeIAQewAQeUAEDFFDQJBACADQRRqNgK8oAEQJ0E6Rw0CQQBBACgCvKABQQJqNgK8oAEQJ0H0AEcNAkEAKAK8oAEiAy8BAkHyAEcNAiADLwEEQfUARw0CIAMvAQZB5QBHDQJBACADQQhqNgK8oAEQJ0EsRw0CQQBBACgCvKABQQJqNgK8oAEQJyEDCwJAIANB5wBGDQAgA0H2AEcNAkEAKAK8oAEiAy8BAkHhAEcNAiADLwEEQewARw0CIAMvAQZB9QBHDQIgAy8BCEHlAEcNAkEAIANBCmo2ArygARAnQTpHDQIgAiAAQQAoApwfEQAAQQAgATYCvKABDwtBACgCvKABIgMvAQJB5QBHDQEgAy8BBEH0AEcNAUEAIANBBmo2ArygAQJAECciA0E6Rw0AQQBBACgCvKABQQJqNgK8oAEQJ0HmAEcNAkEAKAK8oAEiA0ECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0CQQAgA0EQaiIDNgK8oAECQBAnIgRBKEYNACADQQAoArygAUYNAyAEEC1FDQMLECchAwsgA0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABECdB8gBHDQFBACgCvKABIgNBAmpB5QBB9ABB9QBB8gBB7gAQE0UNAUEAIANBDGo2ArygARAnEC1FDQECQAJAAkAQJyIDQdsARg0AIANBLkcNAkEAQQAoArygAUECajYCvKABECcQLQ0BDAQLQQBBACgCvKABQQJqNgK8oAECQBAnIgNBJ0YNACADQSJHDQQLIAMQHEEAQQAoArygAUECajYCvKABECdB3QBHDQNBAEEAKAK8oAFBAmo2ArygAQsQJyEDCwJAIANBO0cNAEEAQQAoArygAUECajYCvKABECchAwsgA0H9AEcNAUEAQQAoArygAUECajYCvKABAkAQJyIDQSxHDQBBAEEAKAK8oAFBAmo2ArygARAnIQMLIANB/QBHDQFBAEEAKAK8oAFBAmo2ArygARAnQSlHDQEgAiAAQQAoApwfEQAADwsgAkHrAEcNASAARQ0BQQAoArygASIALwECQeUARw0BIAAvAQRB+QBHDQEgAC8BBkHzAEcNASAAQQZqIQFBACAAQQhqNgK8oAEQJ0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJyEAQQAoArygASECIAAQLUUNAUEAKAK8oAEhABAnQSlHDQFBAEEAKAK8oAEiAUECajYCvKABECdBLkcNAUEAQQAoArygAUECajYCvKABECdB5gBHDQFBACgCvKABIgNBAmpB7wBB8gBBxQBB4QBB4wBB6AAQJkUNAUEAIANBDmo2ArygARAnIQNBACgCvKABIgRBfmohASADQShHDQFBACAEQQJqNgK8oAEQJ0HmAEcNAUEAKAK8oAEiA0ECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0BQQAgA0EQajYCvKABECdBKEcNAUEAQQAoArygAUECajYCvKABECchA0EAKAK8oAEhBCADEC1FDQFBACgCvKABIQMQJ0EpRw0BQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNAUEAQQAoArygAUECajYCvKABECdB6QBHDQFBACgCvKABIgUvAQJB5gBHDQFBACAFQQRqNgK8oAEQJ0EoRw0BQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgUgBCADIARrIgMQQQ0BIAAgAmsiBkEBdSEHQQAgBSADQQF1IghBAXRqNgK8oAECQAJAAkAQJyIAQSFGDQAgAEE9Rw0EQQAoArygASIALwECQT1HDQQgAC8BBEE9Rw0EQQAgAEEGajYCvKABAkAQJyIAQSdGDQAgAEEiRw0FC0EAKAK8oAEiBUECakHkAEHlAEHmAEHhAEH1AEHsAEH0ABAWRQ0EQQAgBUEQajYCvKABECcgAEcNBEEAQQAoArygAUECajYCvKABECdB/ABHDQRBACgCvKABIgAvAQJB/ABHDQRBACAAQQRqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBEEAIAAgCEEBdGo2ArygARAnQT1HDQRBACgCvKABIgAvAQJBPUcNBCAALwEEQT1HDQRBACAAQQZqNgK8oAECQBAnIgBBJ0YNACAAQSJHDQULQQAoArygASIFQQJqQd8AQd8AQeUAQfMAQc0AQe8AQeQAQfUAQewAQeUAEDJFDQRBACAFQRZqNgK8oAEQJyAARw0EQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0EQQBBACgCvKABQQJqNgK8oAEQJ0HyAEcNBEEAKAK8oAEiAEECakHlAEH0AEH1AEHyAEHuABATRQ0EQQAgAEEMajYCvKABAkAQJ0E7Rw0AQQBBACgCvKABQQJqNgK8oAELECciAEHpAEcNAkHpACEAQQAoArygASIFLwECQeYARw0CQQAgBUEEajYCvKABECdBKEcNBEEAQQAoArygAUECaiIANgK8oAECQCAEIAgQM0UNABAnQSlHDQVBAEEAKAK8oAFBAmo2ArygARAnQfIARw0FQQAoArygASIAQQJqQeUAQfQAQfUAQfIAQe4AEBNFDQVBACAAQQxqNgK8oAECQBAnQTtHDQBBAEEAKAK8oAFBAmo2ArygAQsQJyIAQekARw0DQekAIQBBACgCvKABIgUvAQJB5gBHDQNBACAFQQRqNgK8oAEQJ0EoRw0FQQAoArygAUECaiEAC0EAIAA2ArygASAAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HpAEcNBEEAKAK8oAEiAC8BAkHuAEcNBCAALwEEQSBHDQRBACAAQQZqNgK8oAEQJxAwRQ0EECdBJkcNBEEAKAK8oAEiAC8BAkEmRw0EQQAgAEEEajYCvKABECcQMEUNBBAnQdsARw0EQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBEEAIAAgCEEBdGo2ArygARAnQd0ARw0EQQBBACgCvKABQQJqNgK8oAEQJ0E9Rw0EQQAoArygASIALwECQT1HDQQgAC8BBEE9Rw0EQQAgAEEGajYCvKABECcaQQAoArygASIAIAIgBhBBDQRBACAAIAdBAXRqNgK8oAEQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECdBKUcNBEEAQQAoArygAUECajYCvKABECdB8gBHDQRBACgCvKABIgBBAmpB5QBB9ABB9QBB8gBB7gAQE0UNBEEAIABBDGo2ArygARAnQTtHDQFBAEEAKAK8oAFBAmo2ArygAQwBC0EAKAK8oAEiAC8BAkE9Rw0DIAAvAQRBPUcNA0EAIABBBmo2ArygAQJAECciAEEnRg0AIABBIkcNBAtBACgCvKABIgVBAmpB5ABB5QBB5gBB4QBB9QBB7ABB9AAQFkUNA0EAIAVBEGo2ArygARAnIABHDQNBAEEAKAK8oAFBAmo2ArygAQJAECciAEEmRw0AQQAoArygASIALwECQSZHDQRBACAAQQRqNgK8oAEQJ0EhRw0EQQBBACgCvKABQQJqNgK8oAECQAJAECciAEHPAEcNAEEAKAK8oAFBAmpB4gBB6gBB5QBB4wBB9ABBLhAmRQ0AIAQgCBAzRQ0GDAELIAAQLUUNABAnQS5HDQVBAEEAKAK8oAFBAmo2ArygARAnQegARw0FQQAoArygASIAQQJqQeEAQfMAQc8AQfcAQe4AQdAAQfIAQe8AQfAAQeUAQfIAQfQAQfkAEC9FDQVBACAAQRxqNgK8oAEQJ0EoRw0FQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENBUEAIAAgCEEBdGo2ArygARAnQSlHDQVBAEEAKAK8oAFBAmo2ArygAQsQJyEACyAAQSlHDQNBAEEAKAK8oAFBAmo2ArygAQsQJyEACwJAAkACQCAAEDBFDQAQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECdBPUcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAIgBhBBDQRBACAAIAdBAXRqNgK8oAEQJ0HbAEcNBEEAQQAoArygAUECajYCvKABECcaQQAoArygASIAIAQgAxBBDQRBACAAIAhBAXRqNgK8oAEQJ0HdAEcNBEEAQQAoArygAUECajYCvKABECciAEE7Rw0CQQBBACgCvKABQQJqNgK8oAEMAQsgAEHPAEcNA0EAKAK8oAEiAEECakHiAEHqAEHlAEHjAEH0ABATRQ0DQQAgAEEMajYCvKABECdBLkcNA0EAQQAoArygAUECajYCvKABECdB5ABHDQNBACgCvKABIgBBAmpB5QBB5gBB6QBB7gBB5QBB0ABB8gBB7wBB8ABB5QBB8gBB9ABB+QAQL0UNA0EAIABBHGo2ArygARAnQShHDQNBAEEAKAK8oAFBAmo2ArygARAnEDBFDQMQJ0EsRw0DQQBBACgCvKABQQJqNgK8oAEQJxpBACgCvKABIgAgBCADEEENA0EAIAAgCEEBdGo2ArygARAnQSxHDQNBAEEAKAK8oAFBAmo2ArygARAnQfsARw0DQQBBACgCvKABQQJqNgK8oAEQJ0HlAEcNA0EAKAK8oAEiAEECakHuAEH1AEHtAEHlAEHyAEHhAEHiAEHsAEHlABAxRQ0DQQAgAEEUajYCvKABECdBOkcNA0EAQQAoArygAUECajYCvKABECchBUEAKAK8oAEhAAJAIAVB9ABGDQAgAC8BAkHyAEcNBCAALwEEQfUARw0EIAAvAQZB5QBHDQQLQQAgAEEIajYCvKABECdBLEcNA0EAQQAoArygAUECajYCvKABECdB5wBHDQNBACgCvKABIgAvAQJB5QBHDQMgAC8BBEH0AEcNA0EAIABBBmo2ArygAQJAECciAEE6Rw0AQQBBACgCvKABQQJqNgK8oAEQJ0HmAEcNBEEAKAK8oAEiAEECakH1AEHuAEHjAEH0AEHpAEHvAEHuABAWRQ0EQQAgAEEQaiIANgK8oAECQBAnIgVBKEYNACAAQQAoArygAUYNBSAFEC1FDQULECchAAsgAEEoRw0DQQBBACgCvKABQQJqNgK8oAEQJ0EpRw0DQQBBACgCvKABQQJqNgK8oAEQJ0H7AEcNA0EAQQAoArygAUECajYCvKABECdB8gBHDQNBACgCvKABIgBBAmpB5QBB9ABB9QBB8gBB7gAQE0UNA0EAIABBDGo2ArygARAnGkEAKAK8oAEiACACIAYQQQ0DQQAgACAHQQF0ajYCvKABECdB2wBHDQNBAEEAKAK8oAFBAmo2ArygARAnGkEAKAK8oAEiACAEIAMQQQ0DQQAgACAIQQF0ajYCvKABECdB3QBHDQNBAEEAKAK8oAFBAmo2ArygAQJAECciAEE7Rw0AQQBBACgCvKABQQJqNgK8oAEQJyEACyAAQf0ARw0DQQBBACgCvKABQQJqNgK8oAECQBAnIgBBLEcNAEEAQQAoArygAUECajYCvKABECchAAsgAEH9AEcNA0EAQQAoArygAUECajYCvKABECdBKUcNA0EAQQAoArygAUECajYCvKABECciAEE7Rw0BQQBBACgCvKABQQJqNgK8oAELECchAAsgAEH9AEcNAUEAQQAoArygAUECajYCvKABECdBKUcNAUEAKAK0oAEhBEGAICEAA0ACQAJAIAQgAEYNACAHIABBDGooAgAgAEEIaigCACIDa0EBdUcNASACIAMgBhBBDQEgACgCACAAQQRqKAIAQQAoAqAfEQAAQQAgATYCvKABCw8LIABBEGohAAwACwsgAiAAQQAoAqQfEQAAC0EAIAE2ArygAQtBAAJAQQAoAvAfDQBBACAANgLwHwtBACgCvKABIQBBAEEAKALAoAFBAmo2ArygAUEAIABBACgCmB9rQQF1NgLsHwuOAQEEf0EAKAK8oAEhAUEAKALAoAEhAgJAAkADQCABIgNBAmohASADIAJPDQEgAS8BACIEIABGDQICQCAEQdwARg0AIARBdmoOBAIBAQIBCyADQQRqIQEgAy8BBEENRw0AIANBBmogASADLwEGQQpGGyEBDAALC0EAIAE2ArygAUEJEBsPC0EAIAE2ArygAQtKAQN/QQAoArygAUECaiEAQQAoAsCgASEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2ArygAQt8AQJ/QQBBACgCvKABIgBBAmo2ArygASAAQQZqIQBBACgCwKABIQEDQAJAAkACQCAAQXxqIAFPDQAgAEF+ai8BAEEqRw0CIAAvAQBBL0cNAkEAIABBfmo2ArygAQwBCyAAQX5qIQALQQAgADYCvKABDwsgAEECaiEADAALC2wBAX8CQAJAIABBX2oiAUEFSw0AQQEgAXRBMXENAQsgAEFGakH//wNxQQZJDQAgAEEpRyAAQVhqQf//A3FBB0lxDQACQCAAQaV/ag4EAQAAAQALIABB/QBHIABBhX9qQf//A3FBBElxDwtBAQs9AQF/QQEhAQJAIABB9wBB6ABB6QBB7ABB5QAQNA0AIABB5gBB7wBB8gAQNQ0AIABB6QBB5gAQKyEBCyABC5sBAQJ/QQEhAQJAAkACQAJAAkACQCAALwEAIgJBRWoOBAUEBAEACwJAIAJBm39qDgQDBAQCAAsgAkEpRg0EIAJB+QBHDQMgAEF+akHmAEHpAEHuAEHhAEHsAEHsABA2DwsgAEF+ai8BAEE9Rg8LIABBfmpB4wBB4QBB9ABB4wAQLA8LIABBfmpB5QBB7ABB8wAQNQ8LQQAhAQsgAQvSAwECf0EAIQECQAJAAkACQAJAAkACQAJAAkAgAC8BAEGcf2oOFAABAggICAgICAgDBAgIBQgGCAgHCAsCQAJAIABBfmovAQBBl39qDgQACQkBCQsgAEF8akH2AEHvABArDwsgAEF8akH5AEHpAEHlABA1DwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABA3DwsgAEF6akHjABA3DwsgAEF8akHkAEHlAEHsAEHlABAsDwsgAEF+ai8BAEHvAEcNBSAAQXxqLwEAQeUARw0FAkAgAEF6ai8BACICQfAARg0AIAJB4wBHDQYgAEF4akHpAEHuAEHzAEH0AEHhAEHuABA2DwsgAEF4akH0AEH5ABArDwtBASEBIABBfmoiAEHpABA3DQQgAEHyAEHlAEH0AEH1AEHyABA0DwsgAEF+akHkABA3DwsgAEF+akHkAEHlAEHiAEH1AEHnAEHnAEHlABA4DwsgAEF+akHhAEH3AEHhAEHpABAsDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AEDcPCyAAQXxqQfQAQegAQfIAEDUhAQsgAQt2AQJ/AkACQANAQQBBACgCvKABIgBBAmoiATYCvKABIABBACgCwKABTw0BAkACQAJAIAEvAQAiAUGlf2oOAgECAAsCQCABQXZqDgQEAwMEAAsgAUEvRw0CDAQLEEAaDAELQQAgAEEEajYCvKABDAALC0ELEBsLC8YBAQR/QQAoArygASEAQQAoAsCgASEBAkACQANAIAAiAkECaiEAIAIgAU8NAQJAAkAgAC8BACIDQaR/ag4FAQICAgQACyADQSRHDQEgAi8BBEH7AEcNAUEAQQAvAYRAIgBBAWo7AYRAQQAoAqBgIABBAXRqQQAvAYhAOwEAQQAgAkEEajYCvKABQQBBAC8BhkBBAWoiADsBiEBBACAAOwGGQA8LIAJBBGohAAwACwtBACAANgK8oAFBCBAbDwtBACAANgK8oAELNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQP3EhAQsgAQtJAQF/QQAhBwJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVHDQAgAC8BCiAGRiEHCyAHC3oBA39BACgCvKABIQACQANAAkAgAC8BACIBQXdqQQVJDQAgAUEgRg0AIAFBoAFGDQAgAUEvRw0CAkAgAC8BAiIAQSpGDQAgAEEvRw0DEB0MAQsQHgtBAEEAKAK8oAEiAkECaiIANgK8oAEgAkEAKALAoAFJDQALCyABCzkBAX8CQCAALwEAIgFBgPgDcUGAuANHDQAgAEF+ai8BAEH/B3FBCnQgAUH/B3FyQYCABGohAQsgAQt9AQF/AkAgAEEvSw0AIABBJEYPCwJAIABBOkkNAEEAIQECQCAAQcEASQ0AIABB2wBJDQECQCAAQeAASw0AIABB3wBGDwsgAEH7AEkNAQJAIABB//8DSw0AIABBqgFJDQEgABA5DwtBASEBIAAQOg0AIAAQOyEBCyABDwtBAQtjAQF/AkAgAEHAAEsNACAAQSRGDwtBASEBAkAgAEHbAEkNAAJAIABB4ABLDQAgAEHfAEYPCyAAQfsASQ0AAkAgAEH//wNLDQBBACEBIABBqgFJDQEgABA8DwsgABA6IQELIAELTAEDf0EAIQMCQCAAQX5qIgRBACgCmB8iBUkNACAELwEAIAFHDQAgAC8BACACRw0AAkAgBCAFRw0AQQEPCyAAQXxqLwEAECUhAwsgAwtmAQN/QQAhBQJAIABBemoiBkEAKAKYHyIHSQ0AIAYvAQAgAUcNACAAQXxqLwEAIAJHDQAgAEF+ai8BACADRw0AIAAvAQAgBEcNAAJAIAYgB0cNAEEBDwsgAEF4ai8BABAlIQULIAULhQEBAn8gABA+IgAQKiEBAkACQCAAQdwARg0AQQAhAiABRQ0BC0EAKAK8oAFBAkEEIABBgIAESRtqIQACQANAQQAgADYCvKABIAAvAQAQPiIBRQ0BAkAgARApRQ0AIABBAkEEIAFBgIAESRtqIQAMAQsLQQAhAiABQdwARg0BC0EBIQILIAIL2gMBBH9BACgCvKABIgBBfmohAQNAQQAgAEECajYCvKABAkACQAJAIABBACgCwKABTw0AECchAEEAKAK8oAEhAgJAAkAgABAtRQ0AQQAoArygASEDAkACQBAnIgBBOkcNAEEAQQAoArygAUECajYCvKABECcQLUUNAUEAKAK8oAEvAQAhAAsgAiADQQAoApwfEQAADAILQQAgATYCvKABDwsCQAJAIABBIkYNACAAQS5GDQEgAEEnRw0EC0EAKAK8oAEhAiAAEBxBAEEAKAK8oAFBAmoiAzYCvKABECciAEE6Rw0BQQBBACgCvKABQQJqNgK8oAECQBAnEC1FDQBBACgCvKABLwEAIQAgAiADQQAoApwfEQAADAILQQAgATYCvKABDwtBACgCvKABIgAvAQJBLkcNAiAALwEEQS5HDQJBACAAQQZqNgK8oAECQAJAAkAgAC8BBiIAQfIARw0AQQEQECEAQQAoArygASECIAANASACLwEAIQALIABB//8DcRAtDQFBACABNgK8oAEPC0EAIAJBAmo2ArygAQsQJyEACyAAQf//A3EiAEEsRg0CIABB/QBGDQBBACABNgK8oAELDwtBACABNgK8oAEPC0EAKAK8oAEhAAwACwuPAQEBf0EAIQ4CQCAALwEAIAFHDQAgAC8BAiACRw0AIAAvAQQgA0cNACAALwEGIARHDQAgAC8BCCAFRw0AIAAvAQogBkcNACAALwEMIAdHDQAgAC8BDiAIRw0AIAAvARAgCUcNACAALwESIApHDQAgAC8BFCALRw0AIAAvARYgDEcNACAALwEYIA1GIQ4LIA4LqAEBAn9BACEBQQAoArygASECAkACQCAAQe0ARw0AIAJBAmpB7wBB5ABB9QBB7ABB5QAQE0UNAUEAIAJBDGo2ArygAQJAECdBLkYNAEEAIQEMAgtBAEEAKAK8oAFBAmo2ArygARAnIQALIABB5QBHDQBBACgCvKABIgBBDmogAiAAQQJqQfgAQfAAQe8AQfIAQfQAQfMAECYiARshAgtBACACNgK8oAEgAQtnAQF/QQAhCgJAIAAvAQAgAUcNACAALwECIAJHDQAgAC8BBCADRw0AIAAvAQYgBEcNACAALwEIIAVHDQAgAC8BCiAGRw0AIAAvAQwgB0cNACAALwEOIAhHDQAgAC8BECAJRiEKCyAKC3EBAX9BACELAkAgAC8BACABRw0AIAAvAQIgAkcNACAALwEEIANHDQAgAC8BBiAERw0AIAAvAQggBUcNACAALwEKIAZHDQAgAC8BDCAHRw0AIAAvAQ4gCEcNACAALwEQIAlHDQAgAC8BEiAKRiELCyALC4MEAQJ/QQAhAgJAECdBzwBHDQBBACECQQAoArygASIDQQJqQeIAQeoAQeUAQeMAQfQAEBNFDQBBACECQQAgA0EMajYCvKABECdBLkcNAEEAQQAoArygAUECajYCvKABAkAQJyIDQfAARw0AQQAhAkEAKAK8oAEiA0ECakHyAEHvAEH0AEHvAEH0AEH5AEHwAEHlABA9RQ0BQQAhAkEAIANBEmo2ArygARAnQS5HDQFBAEEAKAK8oAFBAmo2ArygARAnIQMLQQAhAiADQegARw0AQQAhAkEAKAK8oAEiA0ECakHhAEHzAEHPAEH3AEHuAEHQAEHyAEHvAEHwAEHlAEHyAEH0AEH5ABAvRQ0AQQAhAkEAIANBHGo2ArygARAnQS5HDQBBACECQQBBACgCvKABQQJqNgK8oAEQJ0HjAEcNAEEAIQJBACgCvKABIgMvAQJB4QBHDQAgAy8BBEHsAEcNACADLwEGQewARw0AQQAhAkEAIANBCGo2ArygARAnQShHDQBBACECQQBBACgCvKABQQJqNgK8oAEQJxAtRQ0AECdBLEcNAEEAIQJBAEEAKAK8oAFBAmo2ArygARAnGkEAKAK8oAEiAyAAIAFBAXQiARBBDQBBACECQQAgAyABajYCvKABECdBKUcNAEEAQQAoArygAUECajYCvKABQQEhAgsgAgtJAQN/QQAhBgJAIABBeGoiB0EAKAKYHyIISQ0AIAcgASACIAMgBCAFEBNFDQACQCAHIAhHDQBBAQ8LIABBdmovAQAQJSEGCyAGC1kBA39BACEEAkAgAEF8aiIFQQAoApgfIgZJDQAgBS8BACABRw0AIABBfmovAQAgAkcNACAALwEAIANHDQACQCAFIAZHDQBBAQ8LIABBemovAQAQJSEECyAEC0sBA39BACEHAkAgAEF2aiIIQQAoApgfIglJDQAgCCABIAIgAyAEIAUgBhAmRQ0AAkAgCCAJRw0AQQEPCyAAQXRqLwEAECUhBwsgBws9AQJ/QQAhAgJAQQAoApgfIgMgAEsNACAALwEAIAFHDQACQCADIABHDQBBAQ8LIABBfmovAQAQJSECCyACC00BA39BACEIAkAgAEF0aiIJQQAoApgfIgpJDQAgCSABIAIgAyAEIAUgBiAHEBZFDQACQCAJIApHDQBBAQ8LIABBcmovAQAQJSEICyAIC64SAQN/AkAgABA8DQAgAEH0v39qQQJJDQAgAEG3AUYNACAAQYB6akHwAEkNACAAQf12akEFSQ0AIABBhwdGDQAgAEHvdGpBLUkNAAJAIABBwXRqIgFBCEsNAEEBIAF0Qe0CcQ0BCyAAQfBzakELSQ0AIABBtXNqQR9JDQACQCAAQapyaiIBQRJLDQBBASABdEH//BlxDQELIABB8AxGDQAgAEGWcmpBBEkNACAAQcBwakEKSQ0AIABB2nBqQQtJDQAgAEHQcWpBG0kNACAAQZEORg0AIABBkHJqQQpJDQAgAEHCbWpBEkkNACAAQcZtakEDSQ0AIABBnW5qQSFJDQAgAEGtbmpBD0kNACAAQadvakEDSQ0AIABB129qQQVJDQAgAEHbb2pBA0kNACAAQeVvakEJSQ0AIABB6m9qQQRJDQAgAEH9D0YNACAAQZVwakEJSQ0AAkAgAEGvbWoiAUESSw0AQQEgAXRB/4AYcQ0BCyAAQZptakEKSQ0AAkACQCAAQcRsag4oAgECAgICAgICAQECAgEBAgICAQEBAQEBAQEBAgEBAQEBAQEBAQECAgALIABB/2xqQQNJDQELIABB/hNGDQAgAEGabGpBCkkNAAJAIABBxGtqIgFBFUsNAEEBIAF0Qf2wjgFxDQELIABB/2tqQQNJDQAgAEH1FEYNACAAQZprakEMSQ0AAkACQCAAQcRqag4oAgECAgICAgICAgECAgIBAgICAQEBAQEBAQEBAQEBAQEBAQEBAQECAgALIABB/2pqQQNJDQELIABBmmpqQQpJDQAgAEGGampBBkkNAAJAAkAgAEHEaWoOKAIBAgICAgICAgEBAgIBAQICAgEBAQEBAQEBAgIBAQEBAQEBAQEBAgIACyAAQf9pakEDSQ0BCyAAQZppakEKSQ0AAkAgAEHCaGoiAUEZSw0AQQEgAXRBn+6DEHENAQsgAEGCF0YNACAAQZpoakEKSQ0AAkACQCAAQcJnag4mAgICAgICAgECAgIBAgICAgEBAQEBAQECAgEBAQEBAQEBAQEBAgIACyAAQYBoakEFSQ0BCyAAQZpnakEKSQ0AAkACQCAAQcRmag4oAgECAgICAgICAQICAgECAgICAQEBAQEBAQICAQEBAQEBAQEBAQECAgALIABB/2ZqQQNJDQELIABBmmZqQQpJDQAgAEF8cSIBQYAaRg0AAkAgAEHFZWoOKQEBAAEBAQEBAQEAAQEBAAEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAEBAAsgAEGaZWpBCkkNAAJAIABBtmRqIgJBDEsNAEEBIAJ0QeEvcQ0BCyAAQf5kakECSQ0AIABBeHFB2BtGDQAgAEGaZGpBCkkNAAJAIABBz2NqIgJBHUsNAEEBIAJ0QfmHgP4DcQ0BCyAAQY5kakECSQ0AIABBsR1GDQAgAEGwY2pBCkkNAAJAIABBzGJqIgJBCEsNACACQQZHDQELIABBuGJqQQZJDQAgAEHgYWpBCkkNACAAQX5xIgJBmB5GDQAgAEGwYmpBCkkNAAJAIABBy2FqIgNBCksNAEEBIAN0QZUMcQ0BCyAAQfNgakELSQ0AIAJBhh9GDQAgAEGPYWpBFEkNACAAQe5RakEDSQ0AIABBl1lqQQlJDQAgAEGjWWpBA0kNACAAQfFeakEPSQ0AIABB/l5qQQxJDQAgAEGPX2pBBEkNACAAQZlfakEHSQ0AIABBnl9qQQNJDQAgAEGiX2pBA0kNACAAQapfakEESQ0AIABBwF9qQQpJDQAgAEHVX2pBFEkNACAAQcYfRg0AIABB52BqQSRJDQAgAEHOUWpBA0kNACAAQa5RakECSQ0AIABBjlFqQQJJDQAgAEH1T2pBA0kNACAAQaBQakEKSQ0AIABB3S9GDQAgAEHMUGpBIEkNACAAQbBGakEDSQ0AIABBsEdqQQpJDQAgAEHAR2pBCkkNACAAQdxHakEUSQ0AIABBmkhqQQ5JDQAgAEHQSGpBCkkNACAAQd9IakENSQ0AIABBgElqQQNJDQAgAEGVSWpBCUkNACAAQbBJakEKSQ0AIABBzElqQRFJDQAgAEGASmpBBUkNACAAQdBKakEOSQ0AIABB8EpqQQpJDQAgAEGBS2pBC0kNACAAQaBLakEdSQ0AIABBq0tqQQpJDQAgAEHpS2pBBUkNACAAQbBMakELSQ0AIABBuk1qQQpJDQAgAEHQTWpBDEkNACAAQeBNakEMSQ0AIABBqTFGDQAgAEHwT2pBCkkNACAAQcBEakE6SQ0AIABBiUZqQQNJDQAgAEGORmpBA0kNACAAQe05Rg0AIABBrEZqQRVJDQAgAEGFRGpBBUkNAAJAIABBwb9/aiICQRVLDQBBASACdEGDgIABcQ0BCyAAQZu+f2pBDEkNACAAQeHBAEYNACAAQbC+f2pBDUkNACAAQZGmf2pBA0kNACAAQf/aAEYNACAAQWBxQeDbAEYNACAAQdaff2pBBkkNACAAQeeef2pBAkkNACAAQYyzfWpBCkkNACAAQe/MAkYNACAAQeCzfWpBCkkNAAJAIABB9a99aiICQRxLDQBBASACdEGBgID4AXENAQsgAEHisn1qQQJJDQAgAEGQsn1qQQJJDQACQAJAIABB/q99ag4FAgEBAQIACyAAQYCvfWpBAkkNAQsgAEHNrH1qQQ5JDQAgAUGA0wJGDQAgAEG5rX1qQQ1JDQAgAEHarX1qQQhJDQAgAEGBrn1qQQtJDQAgAEGgrn1qQRJJDQAgAEHMrn1qQRJJDQAgAEGwrn1qQQpJDQAgAEHXq31qQQ5JDQAgAEHl0wJGDQAgAEFfcUGwrH1qQQpJDQACQCAAQb2rfWoiAUEKSw0AQQEgAXRBgQxxDQELIABBsKt9akEKSQ0AAkAgAEGdqH1qIgFBCksNACABQQhHDQELAkAgAEHQqn1qIgFBEUsNAEEBIAF0QZ2DC3ENAQsCQCAAQZWqfWoiAUELSw0AQQEgAXRBnxhxDQELIABBhat9akEDSQ0AIABBcHEiAUGA/ANGDQAgAEGe9gNGDQAgAEGQqH1qQQpJDQAgAEG//gNGIABB8IF8akEKSSAAQbODfGpBA0kgAEHNg3xqQQJJIAFBoPwDRnJycnIPC0EBC1wBBH9BgIAEIQFBkAghAkF+IQMCQANAQQAhBCADQQJqIgNB5wNLDQEgAigCACABaiIBIABLDQEgAkEEaiEEIAJBCGohAiAEKAIAIAFqIgEgAEkNAAtBASEECyAEC1wBBH9BgIAEIQFBsBchAkF+IQMCQANAQQAhBCADQQJqIgNB+QFLDQEgAigCACABaiIBIABLDQEgAkEEaiEEIAJBCGohAiAEKAIAIAFqIgEgAEkNAAtBASEECyAEC8YfAQZ/AkACQAJAAkACQAJAIABB1n5qIgFBEEsNAEEBIAF0QYGQBHENAQsgAEG6empBDEkNACAAQYh+akHKA0kNACAAQcB+akEXSQ0AIABBqH5qQR9JDQACQCAAQZB5aiIBQRxLDQBBASABdEHf+YK6AXENAQsCQCAAQaB6aiIBQQ5LDQBBASABdEGfoAFxDQELIABB9nZqQaYBSQ0AIABBiXhqQYsBSQ0AIABB8nhqQRRJDQAgAEHdeGpB0wBJDQAgAEGRdGpBBEkNACAAQbB0akEbSQ0AIABBoHVqQSlJDQAgAEHZCkYNACAAQc91akEmSQ0AIABBj3NqQeMASQ0AIABBfnEiAkHuDEYNACAAQeBzakErSQ0AAkAgAEGrcmoiAUE8Tw0AQoGAjLCAnIGACCABrYhCAYNQRQ0BCyAAQe5xakEeSQ0AIABBtnBqQSFJDQAgAEGxD0YNACAAQbNxakHZAEkNAAJAIABBjHBqIgFBBksNAEEBIAF0QcMAcQ0BCyAAQYBwakEWSQ0AQQEhAQJAAkAgAEHcb2oOBQUBAQEFAAsgAEGaEEYNAQsgAEH8bWpBNkkNACAAQcpuakEISQ0AIABB4G5qQRVJDQAgAEHAb2pBGUkNACAAQaBvakELSQ0AIABBvRJGDQAgAEHQEkYNACAAQahtakEKSQ0AIABBj21qQRBJDQACQCAAQftsaiIDQQxPDQBBASEBQf8ZIANB//8DcXZBAXENBAsgAEHtbGpBFkkNAAJAIABBhGxqIgFBFEsNAEEBIAF0QYH84QBxDQELIABB1mxqQQdJDQACQCAAQc5saiIBQRxLDQBBASABdEHxkYCAAXENAQsCQCAAQaRsaiIBQRVLDQBBASABdEG7gMABcQ0BCyAAQe1rakEWSQ0AAkAgAEHWa2oiAUE1Tw0AQv+2g4CAgOALIAGtiEIBg1BFDQELIABB7WpqQRZJDQAgAEHxampBA0kNACAAQY5rakEDSQ0AIABB+2pqQQlJDQBBASEBAkACQCAAQdZqag4nBQUFBQUFBQEFBQEFBQUFBQEBAQUBAQEBAQEBAQEBAQEBAQEBAQEFAAsCQCAAQYdqaiIBQRdLDQBBASABdEGB4L8GcQ0CCyAAQaBqakECSQ0BCyAAQe1pakEWSQ0AQQEhAQJAAkAgAEGPaWoONAUBAQEBAQEBAQEBAQEBAQEBAQUBBQUFBQUFAQEBBQUFAQUFBQUBAQEFBQEFAQUFAQEBBQUACwJAIABB1mlqIgFBE0sNAEEBIAF0Qf/2I3ENAgsgAEGkaWoiAUEFSw0AIAFBAkcNAQsgAEHYaGpBA0kNACAAQe5nakEXSQ0AIABB8mdqQQNJDQAgAEH7Z2pBCEkNACAAQdAXRg0AIABB0mhqQQxJDQAgAEG9GEYNACAAQdZnakEQSQ0AAkAgAEGoZ2oiAUEpTw0AQoeGgICAICABrYhCAYNQRQ0BCyAAQdZmakEKSQ0AIABB7mZqQRdJDQAgAEH7ZmpBCEkNACAAQfJmakEDSQ0AAkAgAEH7ZWoiAUELSw0AIAFBCEcNAQsCQCAAQctmaiIBQQhLDQBBASABdEGfAnENAQsCQCAAQaJmaiIBQRRLDQBBASABdEGNgOAAcQ0BCyAAQe5lakEpSQ0AIABBvRpGDQAgAEHOGkYNACAAQc1kakEJSQ0AIABB5mRqQRhJDQAgAEH7ZGpBEkkNACAAQYZlakEGSQ0AIABBrGVqQQNJDQAgAEGhZWpBA0kNAAJAIABBw2RqIgNBCk8NAEEBIQFB+QcgA0H//wNxdkEBcQ0ECyACQbIcRg0AIABB/2NqQTBJDQAgAEHAY2pBB0kNAAJAIABB/2JqIgFBDEsNAEEBIAF0QcslcQ0BCyAAQXxxIgNBlB1GDQAgAEHnYmpBB0kNAAJAIABB32JqIgFBJk8NAELX7JuA+QUgAa2IQgGDUEUNAQsgAEGAYGpBK0kNACAAQfhgakEFSQ0AIABBt2FqQSRJDQAgAEF4cSIEQcAeRg0AIABBgB5GDQAgA0HcHUYNAAJAIABBwV9qIgFBKE8NAEKBgPjDxxggAa2IQgGDUEUNAQsgAEGSX2pBA0kNACAAQeBeakEmSQ0AIABBjiFGDQAgAEGLX2pBDUkNACAAQcchRg0AIABBzSFGDQAgAEG2W2pBBEkNACAAQbBeakErSQ0AIABBhF5qQc0CSQ0AAkAgAEGwW2oiBUEJTw0AQQEhAUH/AiAFQf//A3F2QQFxDQQLIABBzlpqQQRJDQAgAEHwWmpBIUkNACAAQfZaakEESQ0AIABBpltqQQRJDQAgAEGgW2pBKUkNAAJAIABByFpqIgVBCU8NAEEBIQFB/wIgBUH//wNxdkEBcQ0ECyAAQYBRakE0SQ0AIABBklFqQQNJDQAgAEGgUWpBDUkNACAAQcBRakESSQ0AIABB4FFqQRJJDQAgAEHyUWpBBEkNACAAQYBSakENSQ0AIABBklJqQQtJDQAgAEHgUmpBywBJDQAgAEH/UmpBGkkNACAAQZFTakERSQ0AIABB/1dqQewESQ0AIABBiFhqQQZJDQAgAEHgWGpB1gBJDQAgAEFwcSIFQYAnRg0AIABB6FlqQcMASQ0AIABB7llqQQRJDQAgAEGoWmpBOUkNACAAQb5aakEESQ0AIABBuFpqQQ9JDQAgAEHXL0YNACAAQdwvRg0AIABB4E9qQdkASQ0AIABBgExqQRdJDQAgAEHQTGpBGkkNACAAQYBNakEsSQ0AIABBkE1qQQVJDQAgAEGwTWpBHkkNACAAQYBOakEfSQ0AIABB0E5qQcYASQ0AIABBqjFGDQQgAEGAT2pBKUkNBCAAQbtJakEHSQ0EIABB+0lqQS9JDQQgAEGnNUYNBCAAQeBLakE1SQ0EIABBl0ZqQQRJDQQgAEHDRmpBA0kNBCAAQfBGakErSQ0EIABBgEdqQQlJDQQgAEGmR2pBJEkNBCAAQbNHakEDSQ0EIABBgEhqQSRJDQQgAEHGSGpBLEkNBCACQa43Rg0EIABB/UhqQR5JDQQgAEGSRmoiBkEJSQ0BDAILQQEhAQwCC0EBIQFBjwMgBkH//wNxdkEBcQ0BCyAEQdA+Rg0BIABBuEFqQQZJDQEgAEHgQWpBJkkNASAAQehBakEGSQ0BIABBgEZqQcABSQ0BIABBgERqQZYCSQ0BAkAgAEGnQWoiAUEESw0AQQEgAXRBFXENAgsgAEGhQWpBH0kNASAAQYBBakE1SQ0BAkAgAEHKQGoiBEEJTw0AQQEhAUH/AiAEQf//A3F2QQFxDQELIABBjkBqQQNJDQEgAEGgQGpBDUkNASAAQapAakEGSQ0BIANB0D9GDQEgAEG+QGpBA0kNASAAQbpAakEHSQ0BIABBikBqQQdJDQEgAEHxwABGDQEgAEH/wABGDQEgAEHwvn9qQQ1JDQEgAEGCwgBGDQEgAEGHwgBGDQEgAEGVwgBGDQEgAEH2vX9qQQpJDQECQCAAQei9f2oiBEERTw0AQQEhAUG/oAUgBHZBAXENAQsgAEHWvX9qQRBJDQEgA0G8wgBGDQECQCAAQbu9f2oiBEEKTw0AQQEhAUGfBCAEQf//A3F2QQFxDQELIABBoKd/akGFAUkNASAAQdCnf2pBL0kNASAAQaC9f2pBKUkNASAAQYCof2pBL0kNAQJAIABBlaZ/aiIEQQlPDQBBASEBQY8DIARB//8DcXZBAXENAQsgAEGApn9qQSZJDQEgAEGn2gBGDQEgAEGt2gBGDQEgAEGAtn1qQY0CSQ0BIABBsLZ9akEuSQ0BIABBgMB9akGNCUkNASAAQYDkfmpB8KMBSQ0BIABBgJh/akG2M0kNASAFQfDjAEYNASAAQeCcf2pBG0kNASAAQc+df2pB3gBJDQEgAEH7nX9qQStJDQEgA0H84QBGDQEgAEHfnn9qQdoASQ0BIABB5Z5/akEFSQ0BIABBv59/akHWAEkNASAAQciff2pBBUkNASAAQc+ff2pBBUkNASAAQd+ff2pBCUkNASAAQfuff2pBA0kNASAAQaikf2pBB0kNASAAQbCkf2pBB0kNASAAQbikf2pBB0kNASAAQcCkf2pBB0kNASAAQcikf2pBB0kNASAAQdCkf2pBB0kNASAAQdikf2pBB0kNASAAQeCkf2pBB0kNASAAQYClf2pBF0kNASAAQe/aAEYNASAAQdClf2pBOEkNASAAQf6ufWpBMkkNASAAQcCvfWpBNEkNASAAQfSvfWpBF0kNASAAQfmvfWpBBEkNASAAQf2vfWpBA0kNASAAQYmwfWpBC0kNASAAQfWwfWpBL0kNASAAQd6xfWpB5wBJDQEgAEHpsX1qQQlJDQEgAEHgsn1qQdAASQ0BIABBgbN9akEfSQ0BIABBwLN9akEvSQ0BIAJBqswCRg0BIAVBkMwCRg0BAkAgAEGOrn1qIgJBDU8NAEEBIQFBvzQgAkH//wNxdkEBcQ0BCyAAQaCtfWpBHUkNASAAQfatfWpBHEkNASAAQdCtfWpBF0kNASAAQbyrfWpBCEkNASAAQcCrfWpBA0kNASAAQYCsfWpBKUkNASAAQYasfWpBBUkNASAAQZqsfWpBCkkNASAAQaCsfWpBBUkNASAAQc/TAkYNASAAQfysfWpBL0kNASAAQYKrfWpBMkkNASAAQfrUAkYNASAAQaCrfWpBF0kNAQJAIABBz6p9aiICQRJPDQBBASEBQbG+CiACdkEBcQ0BCyAAQYCKfGpBB0kNASAAQZCLfGpB6gBJDQEgAEGAjnxqQe4CSQ0BIABBtdB8akExSQ0BIABB0NB8akEXSQ0BIABBgKh9akGk1wBJDQEgAEGQqX1qQfMASQ0BIABBpKl9akEKSQ0BIABB0Kl9akErSQ0BIABB2Kl9akEHSQ0BIABB4Kl9akEHSQ0BIABB76l9akEGSQ0BIABBd3FB/6l9akEGSQ0BIABBjqp9akEDSQ0BIABBpap9akEDSQ0BIABBoKp9akELSQ0BAkAgAEHtiXxqIgJBC08NAEEBIQFBnwggAkH//wNxdkEBcQ0BCyAAQeGJfGpBCkkNASAAQdaJfGpBDUkNAQJAIABByIl8aiICQQ1PDQBBASEBQd82IAJB//8DcXZBAXENAQsgAEGugHxqQQZJDQEgAEG2gHxqQQZJDQEgAEG+gHxqQQZJDQEgAEGagXxqQdkASQ0BIABBv4F8akEaSQ0BIABB34F8akEaSQ0BIABBioN8akGHAUkNASAAQZCDfGpBBUkNASAAQZCEfGpBDEkNASAAQe6EfGpBNkkNASAAQbCFfGpBwABJDQEgAEG6iXxqQewASQ0BQQEhASAAQa2IfGpB6wJJDQAgAEGmgHxqQQNJDwsgAQ8LQQELXQEBf0EAIQkCQCAALwEAIAFHDQAgAC8BAiACRw0AIAAvAQQgA0cNACAALwEGIARHDQAgAC8BCCAFRw0AIAAvAQogBkcNACAALwEMIAdHDQAgAC8BDiAIRiEJCyAJCzUAAkAgAEGA+ANxQYCwA0cNACAAQQp0QYD4P3FBACgCvKABLwECQf8HcXJBgIAEaiEACyAAC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC3gBBH9BACgCvKABIQBBACgCwKABIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgK8oAFBChAbQQAPC0EAIAI2ArygAUHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCFwIAQYAIC5gXAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAABkAAAACAAAAEgAAAAIAAAABAAAAAgAAAA4AAAADAAAADQAAACMAAAB6AAAARgAAADQAAAAMAQAAHAAAAAQAAAAwAAAAMAAAAB8AAAAOAAAAHQAAAAYAAAAlAAAACwAAAB0AAAADAAAAIwAAAAUAAAAHAAAAAgAAAAQAAAArAAAAnQAAABMAAAAjAAAABQAAACMAAAAFAAAAJwAAAAkAAAAzAAAAnQAAADYBAAAKAAAAFQAAAAsAAAAHAAAAmQAAAAUAAAADAAAAAAAAAAIAAAArAAAAAgAAAAEAAAAEAAAAAAAAAAMAAAAWAAAACwAAABYAAAAKAAAAHgAAAEIAAAASAAAAAgAAAAEAAAALAAAAFQAAAAsAAAAZAAAARwAAADcAAAAHAAAAAQAAAEEAAAAAAAAAEAAAAAMAAAACAAAAAgAAAAIAAAAcAAAAKwAAABwAAAAEAAAAHAAAACQAAAAHAAAAAgAAABsAAAAcAAAANQAAAAsAAAAVAAAACwAAABIAAAAOAAAAEQAAAG8AAABIAAAAOAAAADIAAAAOAAAAMgAAAA4AAAAjAAAAXQEAACkAAAAHAAAAAQAAAE8AAAAcAAAACwAAAAAAAAAJAAAAFQAAAGsAAAAUAAAAHAAAABYAAAANAAAANAAAAEwAAAAsAAAAIQAAABgAAAAbAAAAIwAAAB4AAAAAAAAAAwAAAAAAAAAJAAAAIgAAAAQAAAAAAAAADQAAAC8AAAAPAAAAAwAAABYAAAAAAAAAAgAAAAAAAAAkAAAAEQAAAAIAAAAYAAAAVQAAAAYAAAACAAAAAAAAAAIAAAADAAAAAgAAAA4AAAACAAAACQAAAAgAAAAuAAAAJwAAAAcAAAADAAAAAQAAAAMAAAAVAAAAAgAAAAYAAAACAAAAAQAAAAIAAAAEAAAABAAAAAAAAAATAAAAAAAAAA0AAAAEAAAAnwAAADQAAAATAAAAAwAAABUAAAACAAAAHwAAAC8AAAAVAAAAAQAAAAIAAAAAAAAAuQAAAC4AAAAqAAAAAwAAACUAAAAvAAAAFQAAAAAAAAA8AAAAKgAAAA4AAAAAAAAASAAAABoAAADmAAAAKwAAAHUAAAA/AAAAIAAAAAcAAAADAAAAAAAAAAMAAAAHAAAAAgAAAAEAAAACAAAAFwAAABAAAAAAAAAAAgAAAAAAAABfAAAABwAAAAMAAAAmAAAAEQAAAAAAAAACAAAAAAAAAB0AAAAAAAAACwAAACcAAAAIAAAAAAAAABYAAAAAAAAADAAAAC0AAAAUAAAAAAAAACMAAAA4AAAACAEAAAgAAAACAAAAJAAAABIAAAAAAAAAMgAAAB0AAABxAAAABgAAAAIAAAABAAAAAgAAACUAAAAWAAAAAAAAABoAAAAFAAAAAgAAAAEAAAACAAAAHwAAAA8AAAAAAAAASAEAABIAAAC+AAAAAAAAAFAAAACZAwAAZwAAAG4AAAASAAAAwwAAAL0KAAAuBAAA0g8AAEYCAAC6IQAAOAIAAAgAAAAeAAAAcgAAAB0AAAATAAAALwAAABEAAAADAAAAIAAAABQAAAAGAAAAEgAAALECAAA/AAAAgQAAAEoAAAAGAAAAAAAAAEMAAAAMAAAAQQAAAAEAAAACAAAAAAAAAB0AAAD3FwAACQAAANUEAAArAAAACAAAAPgiAAAeAQAAMgAAAAIAAAASAAAAAwAAAAkAAACLAQAABQkAAGoAAAAGAAAADAAAAAQAAAAIAAAACAAAAAkAAABnFwAAVAAAAAIAAABGAAAAAgAAAAEAAAADAAAAAAAAAAMAAAABAAAAAwAAAAMAAAACAAAACwAAAAIAAAAAAAAAAgAAAAYAAAACAAAAQAAAAAIAAAADAAAAAwAAAAcAAAACAAAABgAAAAIAAAAbAAAAAgAAAAMAAAACAAAABAAAAAIAAAAAAAAABAAAAAYAAAACAAAAUwEAAAMAAAAYAAAAAgAAABgAAAACAAAAHgAAAAIAAAAYAAAAAgAAAB4AAAACAAAAGAAAAAIAAAAeAAAAAgAAABgAAAACAAAAHgAAAAIAAAAYAAAAAgAAAAcAAAA1CQAALAAAAAsAAAAGAAAAEQAAAAAAAAByAQAAKwAAABUFAADEAAAAPAAAAEMAAAAIAAAAAAAAALUEAAADAAAAAgAAABoAAAACAAAAAQAAAAIAAAAAAAAAAwAAAAAAAAACAAAACQAAAAIAAAADAAAAAgAAAAAAAAACAAAAAAAAAAcAAAAAAAAABQAAAAAAAAACAAAAAAAAAAIAAAAAAAAAAgAAAAIAAAACAAAAAQAAAAIAAAAAAAAAAwAAAAAAAAACAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAAAAAADAAAAAwAAAAIAAAAGAAAAAgAAAAMAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAkAAAACAAAAEAAAAAYAAAACAAAAAgAAAAQAAAACAAAAEAAAAEURAADdpgAAIwAAADQQAAAMAAAA3QAAAAMAAACBFgAADwAAADAdAAAgDAAAHQIAAOMFAABKEwAA/QEAAAAAAADjAAAAAAAAAJYAAAAEAAAAJgEAAAkAAABYBQAAAgAAAAIAAAABAAAABgAAAAMAAAApAAAAAgAAAAUAAAAAAAAApgAAAAEAAAA+AgAAAwAAAAkAAAAJAAAAcgEAAAEAAACaAAAACgAAALAAAAACAAAANgAAAA4AAAAgAAAACQAAABAAAAADAAAALgAAAAoAAAA2AAAACQAAAAcAAAACAAAAJQAAAA0AAAACAAAACQAAAAYAAAABAAAALQAAAAAAAAANAAAAAgAAADEAAAANAAAACQAAAAMAAAACAAAACwAAAFMAAAALAAAABwAAAAAAAAChAAAACwAAAAYAAAAJAAAABwAAAAMAAAA4AAAAAQAAAAIAAAAGAAAAAwAAAAEAAAADAAAAAgAAAAoAAAAAAAAACwAAAAEAAAADAAAABgAAAAQAAAAEAAAAwQAAABEAAAAKAAAACQAAAAUAAAAAAAAAUgAAABMAAAANAAAACQAAANYAAAAGAAAAAwAAAAgAAAAcAAAAAQAAAFMAAAAQAAAAEAAAAAkAAABSAAAADAAAAAkAAAAJAAAAVAAAAA4AAAAFAAAACQAAAPMAAAAOAAAApgAAAAkAAABHAAAABQAAAAIAAAABAAAAAwAAAAMAAAACAAAAAAAAAAIAAAABAAAADQAAAAkAAAB4AAAABgAAAAMAAAAGAAAABAAAAAAAAAAdAAAACQAAACkAAAAGAAAAAgAAAAMAAAAJAAAAAAAAAAoAAAAKAAAALwAAAA8AAACWAQAABwAAAAIAAAAHAAAAEQAAAAkAAAA5AAAAFQAAAAIAAAANAAAAewAAAAUAAAAEAAAAAAAAAAIAAAABAAAAAgAAAAYAAAACAAAAAAAAAAkAAAAJAAAAMQAAAAQAAAACAAAAAQAAAAIAAAAEAAAACQAAAAkAAABKAQAAAwAAAGpLAAAJAAAAhwAAAAQAAAA8AAAABgAAABoAAAAJAAAA9gMAAAAAAAACAAAANgAAAAgAAAADAAAAUgAAAAAAAAAMAAAAAQAAAKxMAAABAAAAxxQAAAQAAAAEAAAABQAAAAkAAAAHAAAAAwAAAAYAAAAfAAAAAwAAAJUAAAACAAAAigUAADEAAAABAgAANgAAAAUAAAAxAAAACQAAAAAAAAAPAAAAAAAAABcAAAAEAAAAAgAAAA4AAABRBQAABgAAAAIAAAAQAAAAAwAAAAYAAAACAAAAAQAAAAIAAAAEAAAABgEAAAYAAAAKAAAACQAAAKMBAAANAAAA1wUAAAYAAABuAAAABgAAAAYAAAAJAAAAlxIAAAkAAAAHBQwA7wAAAABBmB8LHFCMAAABAAAAAgAAAAMAAAAEAAAAAAQAAPAfAAA=";return typeof window<"u"&&typeof atob=="function"?Uint8Array.from(atob(e),n=>n.charCodeAt(0)):Buffer.from(e,"base64")},c;function m(){return c||(c=(async()=>{let e=await WebAssembly.compile(await y()),{exports:n}=await WebAssembly.instantiate(e);t=n})())}export{m as init,x as parse}; diff --git a/node_modules/cjs-module-lexer/lexer.d.ts b/node_modules/cjs-module-lexer/lexer.d.ts index cda07d80a..cdc94fbe9 100644 --- a/node_modules/cjs-module-lexer/lexer.d.ts +++ b/node_modules/cjs-module-lexer/lexer.d.ts @@ -1,8 +1,7 @@ -export interface Exports { - exports: string[]; - reexports: string[]; -} - -export declare function parse(source: string, name?: string): Exports; -export declare function init(): Promise; -export declare function initSync(): void; +export interface Exports { + exports: string[]; + reexports: string[]; +} + +export declare function parse(source: string, name?: string): Exports; +export declare function init(): Promise; diff --git a/node_modules/cjs-module-lexer/lexer.js b/node_modules/cjs-module-lexer/lexer.js index aaf7dde80..b0b586849 100644 --- a/node_modules/cjs-module-lexer/lexer.js +++ b/node_modules/cjs-module-lexer/lexer.js @@ -1,1443 +1,1442 @@ -let source, pos, end; -let openTokenDepth, - templateDepth, - lastTokenPos, - lastSlashWasDivision, - templateStack, - templateStackDepth, - openTokenPosStack, - openClassPosStack, - nextBraceIsClass, - starExportMap, - lastStarExportSpecifier, - _exports, - unsafeGetters, - reexports; - -function resetState () { - openTokenDepth = 0; - templateDepth = -1; - lastTokenPos = -1; - lastSlashWasDivision = false; - templateStack = new Array(1024); - templateStackDepth = 0; - openTokenPosStack = new Array(1024); - openClassPosStack = new Array(1024); - nextBraceIsClass = false; - starExportMap = Object.create(null); - lastStarExportSpecifier = null; - - _exports = new Set(); - unsafeGetters = new Set(); - reexports = new Set(); -} - -// RequireType -const Import = 0; -const ExportAssign = 1; -const ExportStar = 2; - -function parseCJS (source, name = '@') { - resetState(); - try { - parseSource(source); - } - catch (e) { - e.message += `\n at ${name}:${source.slice(0, pos).split('\n').length}:${pos - source.lastIndexOf('\n', pos - 1)}`; - e.loc = pos; - throw e; - } - const result = { exports: [..._exports].filter(expt => expt !== undefined && !unsafeGetters.has(expt)), reexports: [...reexports].filter(reexpt => reexpt !== undefined) }; - resetState(); - return result; -} - -function decode (str) { - if (str[0] === '"' || str[0] === '\'') { - try { - const decoded = (0, eval)(str); - // Filter to exclude non-matching UTF-16 surrogate strings - for (let i = 0; i < decoded.length; i++) { - const surrogatePrefix = decoded.charCodeAt(i) & 0xFC00; - if (surrogatePrefix < 0xD800) { - // Not a surrogate - continue; - } - else if (surrogatePrefix === 0xD800) { - // Validate surrogate pair - if ((decoded.charCodeAt(++i) & 0xFC00) !== 0xDC00) - return; - } - else { - // Out-of-range surrogate code (above 0xD800) - return; - } - } - return decoded; - } - catch {} - } - else { - return str; - } -} - -function parseSource (cjsSource) { - source = cjsSource; - pos = -1; - end = source.length - 1; - let ch = 0; - - // Handle #! - if (source.charCodeAt(0) === 35/*#*/ && source.charCodeAt(1) === 33/*!*/) { - if (source.length === 2) - return true; - pos += 2; - while (pos++ < end) { - ch = source.charCodeAt(pos); - if (ch === 10/*\n*/ || ch === 13/*\r*/) - break; - } - } - - while (pos++ < end) { - ch = source.charCodeAt(pos); - - if (ch === 32 || ch < 14 && ch > 8) - continue; - - if (openTokenDepth === 0) { - switch (ch) { - case 105/*i*/: - if (source.startsWith('mport', pos + 1) && keywordStart(pos)) - throwIfImportStatement(); - lastTokenPos = pos; - continue; - case 114/*r*/: - const startPos = pos; - if (tryParseRequire(Import) && keywordStart(startPos)) - tryBacktrackAddStarExportBinding(startPos - 1); - lastTokenPos = pos; - continue; - case 95/*_*/: - if (source.startsWith('interopRequireWildcard', pos + 1) && (keywordStart(pos) || source.charCodeAt(pos - 1) === 46/*.*/)) { - const startPos = pos; - pos += 23; - if (source.charCodeAt(pos) === 40/*(*/) { - pos++; - openTokenPosStack[openTokenDepth++] = lastTokenPos; - if (tryParseRequire(Import) && keywordStart(startPos)) { - tryBacktrackAddStarExportBinding(startPos - 1); - } - } - } - else if (source.startsWith('_export', pos + 1) && (keywordStart(pos) || source.charCodeAt(pos - 1) === 46/*.*/)) { - pos += 8; - if (source.startsWith('Star', pos)) - pos += 4; - if (source.charCodeAt(pos) === 40/*(*/) { - openTokenPosStack[openTokenDepth++] = lastTokenPos; - if (source.charCodeAt(++pos) === 114/*r*/) - tryParseRequire(ExportStar); - } - } - lastTokenPos = pos; - continue; - } - } - - switch (ch) { - case 101/*e*/: - if (source.startsWith('xport', pos + 1) && keywordStart(pos)) { - if (source.charCodeAt(pos + 6) === 115/*s*/) - tryParseExportsDotAssign(false); - else if (openTokenDepth === 0) - throwIfExportStatement(); - } - break; - case 99/*c*/: - if (keywordStart(pos) && source.startsWith('lass', pos + 1) && isBrOrWs(source.charCodeAt(pos + 5))) - nextBraceIsClass = true; - break; - case 109/*m*/: - if (source.startsWith('odule', pos + 1) && keywordStart(pos)) - tryParseModuleExportsDotAssign(); - break; - case 79/*O*/: - if (source.startsWith('bject', pos + 1) && keywordStart(pos)) - tryParseObjectDefineOrKeys(openTokenDepth === 0); - break; - case 40/*(*/: - openTokenPosStack[openTokenDepth++] = lastTokenPos; - break; - case 41/*)*/: - if (openTokenDepth === 0) - throw new Error('Unexpected closing bracket.'); - openTokenDepth--; - break; - case 123/*{*/: - openClassPosStack[openTokenDepth] = nextBraceIsClass; - nextBraceIsClass = false; - openTokenPosStack[openTokenDepth++] = lastTokenPos; - break; - case 125/*}*/: - if (openTokenDepth === 0) - throw new Error('Unexpected closing brace.'); - if (openTokenDepth-- === templateDepth) { - templateDepth = templateStack[--templateStackDepth]; - templateString(); - } - else { - if (templateDepth !== -1 && openTokenDepth < templateDepth) - throw new Error('Unexpected closing brace.'); - } - break; - case 60/*>*/: - // TODO: - -* `array` {Array} - -Allocates a new `Buffer` using an `array` of octets. - -```js -const buf = Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]); - // creates a new Buffer containing ASCII bytes - // ['b','u','f','f','e','r'] -``` - -A `TypeError` will be thrown if `array` is not an `Array`. - -### Class Method: Buffer.from(arrayBuffer[, byteOffset[, length]]) - - -* `arrayBuffer` {ArrayBuffer} The `.buffer` property of a `TypedArray` or - a `new ArrayBuffer()` -* `byteOffset` {Number} Default: `0` -* `length` {Number} Default: `arrayBuffer.length - byteOffset` - -When passed a reference to the `.buffer` property of a `TypedArray` instance, -the newly created `Buffer` will share the same allocated memory as the -TypedArray. - -```js -const arr = new Uint16Array(2); -arr[0] = 5000; -arr[1] = 4000; - -const buf = Buffer.from(arr.buffer); // shares the memory with arr; - -console.log(buf); - // Prints: - -// changing the TypedArray changes the Buffer also -arr[1] = 6000; - -console.log(buf); - // Prints: -``` - -The optional `byteOffset` and `length` arguments specify a memory range within -the `arrayBuffer` that will be shared by the `Buffer`. - -```js -const ab = new ArrayBuffer(10); -const buf = Buffer.from(ab, 0, 2); -console.log(buf.length); - // Prints: 2 -``` - -A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer`. - -### Class Method: Buffer.from(buffer) - - -* `buffer` {Buffer} - -Copies the passed `buffer` data onto a new `Buffer` instance. - -```js -const buf1 = Buffer.from('buffer'); -const buf2 = Buffer.from(buf1); - -buf1[0] = 0x61; -console.log(buf1.toString()); - // 'auffer' -console.log(buf2.toString()); - // 'buffer' (copy is not changed) -``` - -A `TypeError` will be thrown if `buffer` is not a `Buffer`. - -### Class Method: Buffer.from(str[, encoding]) - - -* `str` {String} String to encode. -* `encoding` {String} Encoding to use, Default: `'utf8'` - -Creates a new `Buffer` containing the given JavaScript string `str`. If -provided, the `encoding` parameter identifies the character encoding. -If not provided, `encoding` defaults to `'utf8'`. - -```js -const buf1 = Buffer.from('this is a tést'); -console.log(buf1.toString()); - // prints: this is a tést -console.log(buf1.toString('ascii')); - // prints: this is a tC)st - -const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); -console.log(buf2.toString()); - // prints: this is a tést -``` - -A `TypeError` will be thrown if `str` is not a string. - -### Class Method: Buffer.alloc(size[, fill[, encoding]]) - - -* `size` {Number} -* `fill` {Value} Default: `undefined` -* `encoding` {String} Default: `utf8` - -Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the -`Buffer` will be *zero-filled*. - -```js -const buf = Buffer.alloc(5); -console.log(buf); - // -``` - -The `size` must be less than or equal to the value of -`require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is -`(2^31)-1`). Otherwise, a [`RangeError`][] is thrown. A zero-length Buffer will -be created if a `size` less than or equal to 0 is specified. - -If `fill` is specified, the allocated `Buffer` will be initialized by calling -`buf.fill(fill)`. See [`buf.fill()`][] for more information. - -```js -const buf = Buffer.alloc(5, 'a'); -console.log(buf); - // -``` - -If both `fill` and `encoding` are specified, the allocated `Buffer` will be -initialized by calling `buf.fill(fill, encoding)`. For example: - -```js -const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); -console.log(buf); - // -``` - -Calling `Buffer.alloc(size)` can be significantly slower than the alternative -`Buffer.allocUnsafe(size)` but ensures that the newly created `Buffer` instance -contents will *never contain sensitive data*. - -A `TypeError` will be thrown if `size` is not a number. - -### Class Method: Buffer.allocUnsafe(size) - - -* `size` {Number} - -Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must -be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit -architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is -thrown. A zero-length Buffer will be created if a `size` less than or equal to -0 is specified. - -The underlying memory for `Buffer` instances created in this way is *not -initialized*. The contents of the newly created `Buffer` are unknown and -*may contain sensitive data*. Use [`buf.fill(0)`][] to initialize such -`Buffer` instances to zeroes. - -```js -const buf = Buffer.allocUnsafe(5); -console.log(buf); - // - // (octets will be different, every time) -buf.fill(0); -console.log(buf); - // -``` - -A `TypeError` will be thrown if `size` is not a number. - -Note that the `Buffer` module pre-allocates an internal `Buffer` instance of -size `Buffer.poolSize` that is used as a pool for the fast allocation of new -`Buffer` instances created using `Buffer.allocUnsafe(size)` (and the deprecated -`new Buffer(size)` constructor) only when `size` is less than or equal to -`Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). The default -value of `Buffer.poolSize` is `8192` but can be modified. - -Use of this pre-allocated internal memory pool is a key difference between -calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. -Specifically, `Buffer.alloc(size, fill)` will *never* use the internal Buffer -pool, while `Buffer.allocUnsafe(size).fill(fill)` *will* use the internal -Buffer pool if `size` is less than or equal to half `Buffer.poolSize`. The -difference is subtle but can be important when an application requires the -additional performance that `Buffer.allocUnsafe(size)` provides. - -### Class Method: Buffer.allocUnsafeSlow(size) - - -* `size` {Number} - -Allocates a new *non-zero-filled* and non-pooled `Buffer` of `size` bytes. The -`size` must be less than or equal to the value of -`require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is -`(2^31)-1`). Otherwise, a [`RangeError`][] is thrown. A zero-length Buffer will -be created if a `size` less than or equal to 0 is specified. - -The underlying memory for `Buffer` instances created in this way is *not -initialized*. The contents of the newly created `Buffer` are unknown and -*may contain sensitive data*. Use [`buf.fill(0)`][] to initialize such -`Buffer` instances to zeroes. - -When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, -allocations under 4KB are, by default, sliced from a single pre-allocated -`Buffer`. This allows applications to avoid the garbage collection overhead of -creating many individually allocated Buffers. This approach improves both -performance and memory usage by eliminating the need to track and cleanup as -many `Persistent` objects. - -However, in the case where a developer may need to retain a small chunk of -memory from a pool for an indeterminate amount of time, it may be appropriate -to create an un-pooled Buffer instance using `Buffer.allocUnsafeSlow()` then -copy out the relevant bits. - -```js -// need to keep around a few small chunks of memory -const store = []; - -socket.on('readable', () => { - const data = socket.read(); - // allocate for retained data - const sb = Buffer.allocUnsafeSlow(10); - // copy the data into the new allocation - data.copy(sb, 0, 0, 10); - store.push(sb); -}); -``` - -Use of `Buffer.allocUnsafeSlow()` should be used only as a last resort *after* -a developer has observed undue memory retention in their applications. - -A `TypeError` will be thrown if `size` is not a number. - -### All the Rest - -The rest of the `Buffer` API is exactly the same as in node.js. -[See the docs](https://nodejs.org/api/buffer.html). - - -## Related links - -- [Node.js issue: Buffer(number) is unsafe](https://github.com/nodejs/node/issues/4660) -- [Node.js Enhancement Proposal: Buffer.from/Buffer.alloc/Buffer.zalloc/Buffer() soft-deprecate](https://github.com/nodejs/node-eps/pull/4) - -## Why is `Buffer` unsafe? - -Today, the node.js `Buffer` constructor is overloaded to handle many different argument -types like `String`, `Array`, `Object`, `TypedArrayView` (`Uint8Array`, etc.), -`ArrayBuffer`, and also `Number`. - -The API is optimized for convenience: you can throw any type at it, and it will try to do -what you want. - -Because the Buffer constructor is so powerful, you often see code like this: - -```js -// Convert UTF-8 strings to hex -function toHex (str) { - return new Buffer(str).toString('hex') -} -``` - -***But what happens if `toHex` is called with a `Number` argument?*** - -### Remote Memory Disclosure - -If an attacker can make your program call the `Buffer` constructor with a `Number` -argument, then they can make it allocate uninitialized memory from the node.js process. -This could potentially disclose TLS private keys, user data, or database passwords. - -When the `Buffer` constructor is passed a `Number` argument, it returns an -**UNINITIALIZED** block of memory of the specified `size`. When you create a `Buffer` like -this, you **MUST** overwrite the contents before returning it to the user. - -From the [node.js docs](https://nodejs.org/api/buffer.html#buffer_new_buffer_size): - -> `new Buffer(size)` -> -> - `size` Number -> -> The underlying memory for `Buffer` instances created in this way is not initialized. -> **The contents of a newly created `Buffer` are unknown and could contain sensitive -> data.** Use `buf.fill(0)` to initialize a Buffer to zeroes. - -(Emphasis our own.) - -Whenever the programmer intended to create an uninitialized `Buffer` you often see code -like this: - -```js -var buf = new Buffer(16) - -// Immediately overwrite the uninitialized buffer with data from another buffer -for (var i = 0; i < buf.length; i++) { - buf[i] = otherBuf[i] -} -``` - - -### Would this ever be a problem in real code? - -Yes. It's surprisingly common to forget to check the type of your variables in a -dynamically-typed language like JavaScript. - -Usually the consequences of assuming the wrong type is that your program crashes with an -uncaught exception. But the failure mode for forgetting to check the type of arguments to -the `Buffer` constructor is more catastrophic. - -Here's an example of a vulnerable service that takes a JSON payload and converts it to -hex: - -```js -// Take a JSON payload {str: "some string"} and convert it to hex -var server = http.createServer(function (req, res) { - var data = '' - req.setEncoding('utf8') - req.on('data', function (chunk) { - data += chunk - }) - req.on('end', function () { - var body = JSON.parse(data) - res.end(new Buffer(body.str).toString('hex')) - }) -}) - -server.listen(8080) -``` - -In this example, an http client just has to send: - -```json -{ - "str": 1000 -} -``` - -and it will get back 1,000 bytes of uninitialized memory from the server. - -This is a very serious bug. It's similar in severity to the -[the Heartbleed bug](http://heartbleed.com/) that allowed disclosure of OpenSSL process -memory by remote attackers. - - -### Which real-world packages were vulnerable? - -#### [`bittorrent-dht`](https://www.npmjs.com/package/bittorrent-dht) - -[Mathias Buus](https://github.com/mafintosh) and I -([Feross Aboukhadijeh](http://feross.org/)) found this issue in one of our own packages, -[`bittorrent-dht`](https://www.npmjs.com/package/bittorrent-dht). The bug would allow -anyone on the internet to send a series of messages to a user of `bittorrent-dht` and get -them to reveal 20 bytes at a time of uninitialized memory from the node.js process. - -Here's -[the commit](https://github.com/feross/bittorrent-dht/commit/6c7da04025d5633699800a99ec3fbadf70ad35b8) -that fixed it. We released a new fixed version, created a -[Node Security Project disclosure](https://nodesecurity.io/advisories/68), and deprecated all -vulnerable versions on npm so users will get a warning to upgrade to a newer version. - -#### [`ws`](https://www.npmjs.com/package/ws) - -That got us wondering if there were other vulnerable packages. Sure enough, within a short -period of time, we found the same issue in [`ws`](https://www.npmjs.com/package/ws), the -most popular WebSocket implementation in node.js. - -If certain APIs were called with `Number` parameters instead of `String` or `Buffer` as -expected, then uninitialized server memory would be disclosed to the remote peer. - -These were the vulnerable methods: - -```js -socket.send(number) -socket.ping(number) -socket.pong(number) -``` - -Here's a vulnerable socket server with some echo functionality: - -```js -server.on('connection', function (socket) { - socket.on('message', function (message) { - message = JSON.parse(message) - if (message.type === 'echo') { - socket.send(message.data) // send back the user's message - } - }) -}) -``` - -`socket.send(number)` called on the server, will disclose server memory. - -Here's [the release](https://github.com/websockets/ws/releases/tag/1.0.1) where the issue -was fixed, with a more detailed explanation. Props to -[Arnout Kazemier](https://github.com/3rd-Eden) for the quick fix. Here's the -[Node Security Project disclosure](https://nodesecurity.io/advisories/67). - - -### What's the solution? - -It's important that node.js offers a fast way to get memory otherwise performance-critical -applications would needlessly get a lot slower. - -But we need a better way to *signal our intent* as programmers. **When we want -uninitialized memory, we should request it explicitly.** - -Sensitive functionality should not be packed into a developer-friendly API that loosely -accepts many different types. This type of API encourages the lazy practice of passing -variables in without checking the type very carefully. - -#### A new API: `Buffer.allocUnsafe(number)` - -The functionality of creating buffers with uninitialized memory should be part of another -API. We propose `Buffer.allocUnsafe(number)`. This way, it's not part of an API that -frequently gets user input of all sorts of different types passed into it. - -```js -var buf = Buffer.allocUnsafe(16) // careful, uninitialized memory! - -// Immediately overwrite the uninitialized buffer with data from another buffer -for (var i = 0; i < buf.length; i++) { - buf[i] = otherBuf[i] -} -``` - - -### How do we fix node.js core? - -We sent [a PR to node.js core](https://github.com/nodejs/node/pull/4514) (merged as -`semver-major`) which defends against one case: - -```js -var str = 16 -new Buffer(str, 'utf8') -``` - -In this situation, it's implied that the programmer intended the first argument to be a -string, since they passed an encoding as a second argument. Today, node.js will allocate -uninitialized memory in the case of `new Buffer(number, encoding)`, which is probably not -what the programmer intended. - -But this is only a partial solution, since if the programmer does `new Buffer(variable)` -(without an `encoding` parameter) there's no way to know what they intended. If `variable` -is sometimes a number, then uninitialized memory will sometimes be returned. - -### What's the real long-term fix? - -We could deprecate and remove `new Buffer(number)` and use `Buffer.allocUnsafe(number)` when -we need uninitialized memory. But that would break 1000s of packages. - -~~We believe the best solution is to:~~ - -~~1. Change `new Buffer(number)` to return safe, zeroed-out memory~~ - -~~2. Create a new API for creating uninitialized Buffers. We propose: `Buffer.allocUnsafe(number)`~~ - -#### Update - -We now support adding three new APIs: - -- `Buffer.from(value)` - convert from any type to a buffer -- `Buffer.alloc(size)` - create a zero-filled buffer -- `Buffer.allocUnsafe(size)` - create an uninitialized buffer with given size - -This solves the core problem that affected `ws` and `bittorrent-dht` which is -`Buffer(variable)` getting tricked into taking a number argument. - -This way, existing code continues working and the impact on the npm ecosystem will be -minimal. Over time, npm maintainers can migrate performance-critical code to use -`Buffer.allocUnsafe(number)` instead of `new Buffer(number)`. - - -### Conclusion - -We think there's a serious design issue with the `Buffer` API as it exists today. It -promotes insecure software by putting high-risk functionality into a convenient API -with friendly "developer ergonomics". - -This wasn't merely a theoretical exercise because we found the issue in some of the -most popular npm packages. - -Fortunately, there's an easy fix that can be applied today. Use `safe-buffer` in place of -`buffer`. - -```js -var Buffer = require('safe-buffer').Buffer -``` - -Eventually, we hope that node.js core can switch to this new, safer behavior. We believe -the impact on the ecosystem would be minimal since it's not a breaking change. -Well-maintained, popular packages would be updated to use `Buffer.alloc` quickly, while -older, insecure packages would magically become safe from this attack vector. - - -## links - -- [Node.js PR: buffer: throw if both length and enc are passed](https://github.com/nodejs/node/pull/4514) -- [Node Security Project disclosure for `ws`](https://nodesecurity.io/advisories/67) -- [Node Security Project disclosure for`bittorrent-dht`](https://nodesecurity.io/advisories/68) - - -## credit - -The original issues in `bittorrent-dht` -([disclosure](https://nodesecurity.io/advisories/68)) and -`ws` ([disclosure](https://nodesecurity.io/advisories/67)) were discovered by -[Mathias Buus](https://github.com/mafintosh) and -[Feross Aboukhadijeh](http://feross.org/). - -Thanks to [Adam Baldwin](https://github.com/evilpacket) for helping disclose these issues -and for his work running the [Node Security Project](https://nodesecurity.io/). - -Thanks to [John Hiesey](https://github.com/jhiesey) for proofreading this README and -auditing the code. - - -## license - -MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org) diff --git a/node_modules/to-buffer/node_modules/safe-buffer/index.d.ts b/node_modules/to-buffer/node_modules/safe-buffer/index.d.ts deleted file mode 100644 index e9fed809a..000000000 --- a/node_modules/to-buffer/node_modules/safe-buffer/index.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -declare module "safe-buffer" { - export class Buffer { - length: number - write(string: string, offset?: number, length?: number, encoding?: string): number; - toString(encoding?: string, start?: number, end?: number): string; - toJSON(): { type: 'Buffer', data: any[] }; - equals(otherBuffer: Buffer): boolean; - compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; - copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - slice(start?: number, end?: number): Buffer; - writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; - readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; - readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; - readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; - readUInt8(offset: number, noAssert?: boolean): number; - readUInt16LE(offset: number, noAssert?: boolean): number; - readUInt16BE(offset: number, noAssert?: boolean): number; - readUInt32LE(offset: number, noAssert?: boolean): number; - readUInt32BE(offset: number, noAssert?: boolean): number; - readInt8(offset: number, noAssert?: boolean): number; - readInt16LE(offset: number, noAssert?: boolean): number; - readInt16BE(offset: number, noAssert?: boolean): number; - readInt32LE(offset: number, noAssert?: boolean): number; - readInt32BE(offset: number, noAssert?: boolean): number; - readFloatLE(offset: number, noAssert?: boolean): number; - readFloatBE(offset: number, noAssert?: boolean): number; - readDoubleLE(offset: number, noAssert?: boolean): number; - readDoubleBE(offset: number, noAssert?: boolean): number; - swap16(): Buffer; - swap32(): Buffer; - swap64(): Buffer; - writeUInt8(value: number, offset: number, noAssert?: boolean): number; - writeUInt16LE(value: number, offset: number, noAssert?: boolean): number; - writeUInt16BE(value: number, offset: number, noAssert?: boolean): number; - writeUInt32LE(value: number, offset: number, noAssert?: boolean): number; - writeUInt32BE(value: number, offset: number, noAssert?: boolean): number; - writeInt8(value: number, offset: number, noAssert?: boolean): number; - writeInt16LE(value: number, offset: number, noAssert?: boolean): number; - writeInt16BE(value: number, offset: number, noAssert?: boolean): number; - writeInt32LE(value: number, offset: number, noAssert?: boolean): number; - writeInt32BE(value: number, offset: number, noAssert?: boolean): number; - writeFloatLE(value: number, offset: number, noAssert?: boolean): number; - writeFloatBE(value: number, offset: number, noAssert?: boolean): number; - writeDoubleLE(value: number, offset: number, noAssert?: boolean): number; - writeDoubleBE(value: number, offset: number, noAssert?: boolean): number; - fill(value: any, offset?: number, end?: number): this; - indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number; - lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number; - includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean; - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - */ - constructor (str: string, encoding?: string); - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - */ - constructor (size: number); - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - */ - constructor (array: Uint8Array); - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}. - * - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - */ - constructor (arrayBuffer: ArrayBuffer); - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - */ - constructor (array: any[]); - /** - * Copies the passed {buffer} data onto a new {Buffer} instance. - * - * @param buffer The buffer to copy. - */ - constructor (buffer: Buffer); - prototype: Buffer; - /** - * Allocates a new Buffer using an {array} of octets. - * - * @param array - */ - static from(array: any[]): Buffer; - /** - * When passed a reference to the .buffer property of a TypedArray instance, - * the newly created Buffer will share the same allocated memory as the TypedArray. - * The optional {byteOffset} and {length} arguments specify a memory range - * within the {arrayBuffer} that will be shared by the Buffer. - * - * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer() - * @param byteOffset - * @param length - */ - static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer; - /** - * Copies the passed {buffer} data onto a new Buffer instance. - * - * @param buffer - */ - static from(buffer: Buffer): Buffer; - /** - * Creates a new Buffer containing the given JavaScript string {str}. - * If provided, the {encoding} parameter identifies the character encoding. - * If not provided, {encoding} defaults to 'utf8'. - * - * @param str - */ - static from(str: string, encoding?: string): Buffer; - /** - * Returns true if {obj} is a Buffer - * - * @param obj object to test. - */ - static isBuffer(obj: any): obj is Buffer; - /** - * Returns true if {encoding} is a valid encoding argument. - * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' - * - * @param encoding string to test. - */ - static isEncoding(encoding: string): boolean; - /** - * Gives the actual byte length of a string. encoding defaults to 'utf8'. - * This is not the same as String.prototype.length since that returns the number of characters in a string. - * - * @param string string to test. - * @param encoding encoding used to evaluate (defaults to 'utf8') - */ - static byteLength(string: string, encoding?: string): number; - /** - * Returns a buffer which is the result of concatenating all the buffers in the list together. - * - * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer. - * If the list has exactly one item, then the first item of the list is returned. - * If the list has more than one item, then a new Buffer is created. - * - * @param list An array of Buffer objects to concatenate - * @param totalLength Total length of the buffers when concatenated. - * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly. - */ - static concat(list: Buffer[], totalLength?: number): Buffer; - /** - * The same as buf1.compare(buf2). - */ - static compare(buf1: Buffer, buf2: Buffer): number; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @param fill if specified, buffer will be initialized by calling buf.fill(fill). - * If parameter is omitted, buffer will be filled with zeros. - * @param encoding encoding used for call to buf.fill while initalizing - */ - static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer; - /** - * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents - * of the newly created Buffer are unknown and may contain sensitive data. - * - * @param size count of octets to allocate - */ - static allocUnsafe(size: number): Buffer; - /** - * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents - * of the newly created Buffer are unknown and may contain sensitive data. - * - * @param size count of octets to allocate - */ - static allocUnsafeSlow(size: number): Buffer; - } -} \ No newline at end of file diff --git a/node_modules/to-buffer/node_modules/safe-buffer/index.js b/node_modules/to-buffer/node_modules/safe-buffer/index.js deleted file mode 100644 index f8d3ec988..000000000 --- a/node_modules/to-buffer/node_modules/safe-buffer/index.js +++ /dev/null @@ -1,65 +0,0 @@ -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -/* eslint-disable node/no-deprecated-api */ -var buffer = require('buffer') -var Buffer = buffer.Buffer - -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] - } -} -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer -} - -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) -} - -SafeBuffer.prototype = Object.create(Buffer.prototype) - -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) - -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') - } - return Buffer(arg, encodingOrOffset, length) -} - -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - } else { - buf.fill(0) - } - return buf -} - -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) -} - -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return buffer.SlowBuffer(size) -} diff --git a/node_modules/to-buffer/node_modules/safe-buffer/package.json b/node_modules/to-buffer/node_modules/safe-buffer/package.json deleted file mode 100644 index f2869e256..000000000 --- a/node_modules/to-buffer/node_modules/safe-buffer/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "safe-buffer", - "description": "Safer Node.js Buffer API", - "version": "5.2.1", - "author": { - "name": "Feross Aboukhadijeh", - "email": "feross@feross.org", - "url": "https://feross.org" - }, - "bugs": { - "url": "https://github.com/feross/safe-buffer/issues" - }, - "devDependencies": { - "standard": "*", - "tape": "^5.0.0" - }, - "homepage": "https://github.com/feross/safe-buffer", - "keywords": [ - "buffer", - "buffer allocate", - "node security", - "safe", - "safe-buffer", - "security", - "uninitialized" - ], - "license": "MIT", - "main": "index.js", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "git://github.com/feross/safe-buffer.git" - }, - "scripts": { - "test": "standard && tape test/*.js" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] -} diff --git a/node_modules/to-buffer/package.json b/node_modules/to-buffer/package.json index fd4fc772f..fdc9c615e 100644 --- a/node_modules/to-buffer/package.json +++ b/node_modules/to-buffer/package.json @@ -1,60 +1,24 @@ { - "name": "to-buffer", - "version": "1.2.1", - "description": "Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.", - "main": "index.js", - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "lint": "eslint --ext=js,mjs .", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*'", - "test": "npm run tests-only", - "posttest": "npx npm@\">= 10.2\" audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "https://github.com/browserify/to-buffer.git" - }, - "author": "Mathias Buus (@mafintosh)", - "license": "MIT", - "bugs": { - "url": "https://github.com/browserify/to-buffer/issues" - }, - "homepage": "https://github.com/browserify/to-buffer", - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.1", - "auto-changelog": "^2.5.0", - "available-typed-arrays": "^1.0.7", - "encoding": "^0.1.13", - "eslint": "=8.8.0", - "for-each": "^0.3.5", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "tape": "^5.9.0" - }, - "engines": { - "node": ">= 0.4" - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "test" - ] - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - } + "name": "to-buffer", + "version": "1.1.1", + "description": "Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back", + "main": "index.js", + "dependencies": {}, + "devDependencies": { + "standard": "^6.0.5", + "tape": "^4.4.0" + }, + "scripts": { + "test": "standard && tape test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/mafintosh/to-buffer.git" + }, + "author": "Mathias Buus (@mafintosh)", + "license": "MIT", + "bugs": { + "url": "https://github.com/mafintosh/to-buffer/issues" + }, + "homepage": "https://github.com/mafintosh/to-buffer" } diff --git a/node_modules/to-buffer/test.js b/node_modules/to-buffer/test.js new file mode 100644 index 000000000..f5e97d6e9 --- /dev/null +++ b/node_modules/to-buffer/test.js @@ -0,0 +1,26 @@ +var tape = require('tape') +var toBuffer = require('./') + +tape('buffer returns buffer', function (t) { + t.same(toBuffer(Buffer('hi')), Buffer('hi')) + t.end() +}) + +tape('string returns buffer', function (t) { + t.same(toBuffer('hi'), Buffer('hi')) + t.end() +}) + +tape('string + enc returns buffer', function (t) { + t.same(toBuffer('6869', 'hex'), Buffer('hi')) + t.end() +}) + +tape('other input throws', function (t) { + try { + toBuffer(42) + } catch (err) { + t.same(err.message, 'Input should be a buffer or a string') + t.end() + } +}) diff --git a/node_modules/to-fast-properties/index.js b/node_modules/to-fast-properties/index.js new file mode 100644 index 000000000..028c88af0 --- /dev/null +++ b/node_modules/to-fast-properties/index.js @@ -0,0 +1,27 @@ +'use strict'; + +let fastProto = null; + +// Creates an object with permanently fast properties in V8. See Toon Verwaest's +// post https://medium.com/@tverwaes/setting-up-prototypes-in-v8-ec9c9491dfe2#5f62 +// for more details. Use %HasFastProperties(object) and the Node.js flag +// --allow-natives-syntax to check whether an object has fast properties. +function FastObject(o) { + // A prototype object will have "fast properties" enabled once it is checked + // against the inline property cache of a function, e.g. fastProto.property: + // https://github.com/v8/v8/blob/6.0.122/test/mjsunit/fast-prototype.js#L48-L63 + if (fastProto !== null && typeof fastProto.property) { + const result = fastProto; + fastProto = FastObject.prototype = null; + return result; + } + fastProto = FastObject.prototype = o == null ? Object.create(null) : o; + return new FastObject; +} + +// Initialize the inline property cache of FastObject +FastObject(); + +module.exports = function toFastproperties(o) { + return FastObject(o); +}; diff --git a/node_modules/to-fast-properties/license b/node_modules/to-fast-properties/license new file mode 100644 index 000000000..cef79eff9 --- /dev/null +++ b/node_modules/to-fast-properties/license @@ -0,0 +1,10 @@ +MIT License + +Copyright (c) 2014 Petka Antonov + 2015 Sindre Sorhus + +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/to-fast-properties/package.json b/node_modules/to-fast-properties/package.json new file mode 100644 index 000000000..7a64b2ccb --- /dev/null +++ b/node_modules/to-fast-properties/package.json @@ -0,0 +1,35 @@ +{ + "name": "to-fast-properties", + "version": "2.0.0", + "description": "Force V8 to use fast properties for an object", + "license": "MIT", + "repository": "sindresorhus/to-fast-properties", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "node --allow-natives-syntax test.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "object", + "obj", + "properties", + "props", + "v8", + "optimize", + "fast", + "convert", + "mode" + ], + "devDependencies": { + "ava": "0.0.4" + } +} diff --git a/node_modules/to-fast-properties/readme.md b/node_modules/to-fast-properties/readme.md new file mode 100644 index 000000000..692101d66 --- /dev/null +++ b/node_modules/to-fast-properties/readme.md @@ -0,0 +1,37 @@ +# to-fast-properties [![Build Status](https://travis-ci.org/sindresorhus/to-fast-properties.svg?branch=master)](https://travis-ci.org/sindresorhus/to-fast-properties) + +> Force V8 to use fast properties for an object + +[Read more.](http://stackoverflow.com/questions/24987896/) + +Use `%HasFastProperties(object)` and `--allow-natives-syntax` to check whether an object already has fast properties. + + +## Install + +``` +$ npm install --save to-fast-properties +``` + + +## Usage + +```js +const toFastProperties = require('to-fast-properties'); + +const obj = { + foo: true, + bar: true +}; + +delete obj.foo; +// `obj` now has slow properties + +toFastProperties(obj); +// `obj` now has fast properties +``` + + +## License + +MIT © Petka Antonov, John-David Dalton, Sindre Sorhus diff --git a/node_modules/ts-jest/node_modules/semver/README.md b/node_modules/ts-jest/node_modules/semver/README.md index e95221539..ede7b7d0e 100644 --- a/node_modules/ts-jest/node_modules/semver/README.md +++ b/node_modules/ts-jest/node_modules/semver/README.md @@ -100,7 +100,7 @@ Options: -i --increment [] Increment a version by the specified level. Level can be one of: major, minor, patch, premajor, preminor, - prepatch, prerelease, or release. Default level is 'patch'. + prepatch, or prerelease. Default level is 'patch'. Only one version may be specified. --preid @@ -141,8 +141,6 @@ A "version" is described by the `v2.0.0` specification found at . A leading `"="` or `"v"` character is stripped off and ignored. -Support for stripping a leading "v" is kept for compatibility with `v1.0.0` of the SemVer -specification but should not be used anymore. ## Ranges @@ -239,13 +237,6 @@ $ semver 1.2.4-beta.0 -i prerelease 1.2.4-beta.1 ``` -To get out of the prerelease phase, use the `release` option: - -```bash -$ semver 1.2.4-beta.1 -i release -1.2.4 -``` - #### Prerelease Identifier Base The method `.inc` takes an optional parameter 'identifierBase' string @@ -424,10 +415,10 @@ Strict-mode Comparators and Ranges will be strict about the SemVer strings that they parse. * `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, releaseType, options, identifier, identifierBase)`: +* `inc(v, release, options, identifier, identifierBase)`: Return the version incremented by the release type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, `prerelease`, or `release`), or null if it's not valid + `prepatch`, or `prerelease`), or null if it's not valid * `premajor` in one call will bump the version up to the next major version and down to a prerelease of that major version. `preminor`, and `prepatch` work the same way. @@ -435,7 +426,6 @@ strings that they parse. same as `prepatch`. It increments the patch version and then makes a prerelease. If the input version is already a prerelease it simply increments it. - * `release` will remove any prerelease part of the version. * `identifier` can be used to prefix `premajor`, `preminor`, `prepatch`, or `prerelease` version increments. `identifierBase` is the base to be used for the `prerelease` identifier. @@ -487,7 +477,7 @@ strings that they parse. ### Ranges -* `validRange(range)`: Return the valid range or null if it's not valid. +* `validRange(range)`: Return the valid range or null if it's not valid * `satisfies(version, range)`: Return true if the version satisfies the range. * `maxSatisfying(versions, range)`: Return the highest version in the list diff --git a/node_modules/ts-jest/node_modules/semver/classes/comparator.js b/node_modules/ts-jest/node_modules/semver/classes/comparator.js index 647c1f097..3d39c0eef 100644 --- a/node_modules/ts-jest/node_modules/semver/classes/comparator.js +++ b/node_modules/ts-jest/node_modules/semver/classes/comparator.js @@ -1,5 +1,3 @@ -'use strict' - const ANY = Symbol('SemVer ANY') // hoisted class for cyclic dependency class Comparator { diff --git a/node_modules/ts-jest/node_modules/semver/classes/index.js b/node_modules/ts-jest/node_modules/semver/classes/index.js index 91c24ec4a..5e3f5c9b1 100644 --- a/node_modules/ts-jest/node_modules/semver/classes/index.js +++ b/node_modules/ts-jest/node_modules/semver/classes/index.js @@ -1,5 +1,3 @@ -'use strict' - module.exports = { SemVer: require('./semver.js'), Range: require('./range.js'), diff --git a/node_modules/ts-jest/node_modules/semver/classes/range.js b/node_modules/ts-jest/node_modules/semver/classes/range.js index f80c2359c..ceee23144 100644 --- a/node_modules/ts-jest/node_modules/semver/classes/range.js +++ b/node_modules/ts-jest/node_modules/semver/classes/range.js @@ -1,5 +1,3 @@ -'use strict' - const SPACE_CHARACTERS = /\s+/g // hoisted class for cyclic dependency diff --git a/node_modules/ts-jest/node_modules/semver/classes/semver.js b/node_modules/ts-jest/node_modules/semver/classes/semver.js index 2efba0f4b..13e66ce44 100644 --- a/node_modules/ts-jest/node_modules/semver/classes/semver.js +++ b/node_modules/ts-jest/node_modules/semver/classes/semver.js @@ -1,5 +1,3 @@ -'use strict' - const debug = require('../internal/debug') const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants') const { safeRe: re, t } = require('../internal/re') @@ -12,7 +10,7 @@ class SemVer { if (version instanceof SemVer) { if (version.loose === !!options.loose && - version.includePrerelease === !!options.includePrerelease) { + version.includePrerelease === !!options.includePrerelease) { return version } else { version = version.version @@ -178,19 +176,6 @@ class SemVer { // preminor will bump the version up to the next minor release, and immediately // down to pre-release. premajor and prepatch work the same way. inc (release, identifier, identifierBase) { - if (release.startsWith('pre')) { - if (!identifier && identifierBase === false) { - throw new Error('invalid increment argument: identifier is empty') - } - // Avoid an invalid semver results - if (identifier) { - const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]) - if (!match || match[1] !== identifier) { - throw new Error(`invalid identifier: ${identifier}`) - } - } - } - switch (release) { case 'premajor': this.prerelease.length = 0 @@ -221,12 +206,6 @@ class SemVer { } this.inc('pre', identifier, identifierBase) break - case 'release': - if (this.prerelease.length === 0) { - throw new Error(`version ${this.raw} is not a prerelease`) - } - this.prerelease.length = 0 - break case 'major': // If this is a pre-major version, bump up to the same major version. @@ -270,6 +249,10 @@ class SemVer { case 'pre': { const base = Number(identifierBase) ? 1 : 0 + if (!identifier && identifierBase === false) { + throw new Error('invalid increment argument: identifier is empty') + } + if (this.prerelease.length === 0) { this.prerelease = [base] } else { diff --git a/node_modules/ts-jest/node_modules/semver/functions/clean.js b/node_modules/ts-jest/node_modules/semver/functions/clean.js index 79703d631..811fe6b82 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/clean.js +++ b/node_modules/ts-jest/node_modules/semver/functions/clean.js @@ -1,5 +1,3 @@ -'use strict' - const parse = require('./parse') const clean = (version, options) => { const s = parse(version.trim().replace(/^[=v]+/, ''), options) diff --git a/node_modules/ts-jest/node_modules/semver/functions/cmp.js b/node_modules/ts-jest/node_modules/semver/functions/cmp.js index 77487dcaa..401190947 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/cmp.js +++ b/node_modules/ts-jest/node_modules/semver/functions/cmp.js @@ -1,5 +1,3 @@ -'use strict' - const eq = require('./eq') const neq = require('./neq') const gt = require('./gt') diff --git a/node_modules/ts-jest/node_modules/semver/functions/coerce.js b/node_modules/ts-jest/node_modules/semver/functions/coerce.js index cfe027599..b378dcea4 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/coerce.js +++ b/node_modules/ts-jest/node_modules/semver/functions/coerce.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const parse = require('./parse') const { safeRe: re, t } = require('../internal/re') diff --git a/node_modules/ts-jest/node_modules/semver/functions/compare-build.js b/node_modules/ts-jest/node_modules/semver/functions/compare-build.js index 99157cf3d..9eb881bef 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/compare-build.js +++ b/node_modules/ts-jest/node_modules/semver/functions/compare-build.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const compareBuild = (a, b, loose) => { const versionA = new SemVer(a, loose) diff --git a/node_modules/ts-jest/node_modules/semver/functions/compare-loose.js b/node_modules/ts-jest/node_modules/semver/functions/compare-loose.js index 75316346a..4881fbe00 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/compare-loose.js +++ b/node_modules/ts-jest/node_modules/semver/functions/compare-loose.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const compareLoose = (a, b) => compare(a, b, true) module.exports = compareLoose diff --git a/node_modules/ts-jest/node_modules/semver/functions/compare.js b/node_modules/ts-jest/node_modules/semver/functions/compare.js index 63d8090c6..748b7afa5 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/compare.js +++ b/node_modules/ts-jest/node_modules/semver/functions/compare.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)) diff --git a/node_modules/ts-jest/node_modules/semver/functions/diff.js b/node_modules/ts-jest/node_modules/semver/functions/diff.js index 04e064e91..fc224e302 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/diff.js +++ b/node_modules/ts-jest/node_modules/semver/functions/diff.js @@ -1,5 +1,3 @@ -'use strict' - const parse = require('./parse.js') const diff = (version1, version2) => { @@ -29,13 +27,20 @@ const diff = (version1, version2) => { return 'major' } - // If the main part has no difference - if (lowVersion.compareMain(highVersion) === 0) { - if (lowVersion.minor && !lowVersion.patch) { - return 'minor' - } + // Otherwise it can be determined by checking the high version + + if (highVersion.patch) { + // anything higher than a patch bump would result in the wrong version return 'patch' } + + if (highVersion.minor) { + // anything higher than a minor bump would result in the wrong version + return 'minor' + } + + // bumping major/minor/patch all have same result + return 'major' } // add the `pre` prefix if we are going to a prerelease version diff --git a/node_modules/ts-jest/node_modules/semver/functions/eq.js b/node_modules/ts-jest/node_modules/semver/functions/eq.js index 5f0eead11..271fed976 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/eq.js +++ b/node_modules/ts-jest/node_modules/semver/functions/eq.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const eq = (a, b, loose) => compare(a, b, loose) === 0 module.exports = eq diff --git a/node_modules/ts-jest/node_modules/semver/functions/gt.js b/node_modules/ts-jest/node_modules/semver/functions/gt.js index 84a57ddff..d9b2156d8 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/gt.js +++ b/node_modules/ts-jest/node_modules/semver/functions/gt.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const gt = (a, b, loose) => compare(a, b, loose) > 0 module.exports = gt diff --git a/node_modules/ts-jest/node_modules/semver/functions/gte.js b/node_modules/ts-jest/node_modules/semver/functions/gte.js index 7c52bdf25..5aeaa6347 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/gte.js +++ b/node_modules/ts-jest/node_modules/semver/functions/gte.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const gte = (a, b, loose) => compare(a, b, loose) >= 0 module.exports = gte diff --git a/node_modules/ts-jest/node_modules/semver/functions/inc.js b/node_modules/ts-jest/node_modules/semver/functions/inc.js index ff999e9d0..7670b1bea 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/inc.js +++ b/node_modules/ts-jest/node_modules/semver/functions/inc.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const inc = (version, release, options, identifier, identifierBase) => { diff --git a/node_modules/ts-jest/node_modules/semver/functions/lt.js b/node_modules/ts-jest/node_modules/semver/functions/lt.js index 2fb32a0e6..b440ab7d4 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/lt.js +++ b/node_modules/ts-jest/node_modules/semver/functions/lt.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const lt = (a, b, loose) => compare(a, b, loose) < 0 module.exports = lt diff --git a/node_modules/ts-jest/node_modules/semver/functions/lte.js b/node_modules/ts-jest/node_modules/semver/functions/lte.js index da9ee8f4e..6dcc95650 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/lte.js +++ b/node_modules/ts-jest/node_modules/semver/functions/lte.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const lte = (a, b, loose) => compare(a, b, loose) <= 0 module.exports = lte diff --git a/node_modules/ts-jest/node_modules/semver/functions/major.js b/node_modules/ts-jest/node_modules/semver/functions/major.js index e6d08dc20..4283165e9 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/major.js +++ b/node_modules/ts-jest/node_modules/semver/functions/major.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const major = (a, loose) => new SemVer(a, loose).major module.exports = major diff --git a/node_modules/ts-jest/node_modules/semver/functions/minor.js b/node_modules/ts-jest/node_modules/semver/functions/minor.js index 9e70ffda1..57b3455f8 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/minor.js +++ b/node_modules/ts-jest/node_modules/semver/functions/minor.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const minor = (a, loose) => new SemVer(a, loose).minor module.exports = minor diff --git a/node_modules/ts-jest/node_modules/semver/functions/neq.js b/node_modules/ts-jest/node_modules/semver/functions/neq.js index 84326b773..f944c0157 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/neq.js +++ b/node_modules/ts-jest/node_modules/semver/functions/neq.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const neq = (a, b, loose) => compare(a, b, loose) !== 0 module.exports = neq diff --git a/node_modules/ts-jest/node_modules/semver/functions/parse.js b/node_modules/ts-jest/node_modules/semver/functions/parse.js index d544d33a7..459b3b173 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/parse.js +++ b/node_modules/ts-jest/node_modules/semver/functions/parse.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const parse = (version, options, throwErrors = false) => { if (version instanceof SemVer) { diff --git a/node_modules/ts-jest/node_modules/semver/functions/patch.js b/node_modules/ts-jest/node_modules/semver/functions/patch.js index 7675162f1..63afca252 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/patch.js +++ b/node_modules/ts-jest/node_modules/semver/functions/patch.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const patch = (a, loose) => new SemVer(a, loose).patch module.exports = patch diff --git a/node_modules/ts-jest/node_modules/semver/functions/prerelease.js b/node_modules/ts-jest/node_modules/semver/functions/prerelease.js index b8fe1db50..06aa13248 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/prerelease.js +++ b/node_modules/ts-jest/node_modules/semver/functions/prerelease.js @@ -1,5 +1,3 @@ -'use strict' - const parse = require('./parse') const prerelease = (version, options) => { const parsed = parse(version, options) diff --git a/node_modules/ts-jest/node_modules/semver/functions/rcompare.js b/node_modules/ts-jest/node_modules/semver/functions/rcompare.js index 8e1c222b2..0ac509e79 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/rcompare.js +++ b/node_modules/ts-jest/node_modules/semver/functions/rcompare.js @@ -1,5 +1,3 @@ -'use strict' - const compare = require('./compare') const rcompare = (a, b, loose) => compare(b, a, loose) module.exports = rcompare diff --git a/node_modules/ts-jest/node_modules/semver/functions/rsort.js b/node_modules/ts-jest/node_modules/semver/functions/rsort.js index 5d3d20096..82404c5cf 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/rsort.js +++ b/node_modules/ts-jest/node_modules/semver/functions/rsort.js @@ -1,5 +1,3 @@ -'use strict' - const compareBuild = require('./compare-build') const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) module.exports = rsort diff --git a/node_modules/ts-jest/node_modules/semver/functions/satisfies.js b/node_modules/ts-jest/node_modules/semver/functions/satisfies.js index a0264a222..50af1c199 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/satisfies.js +++ b/node_modules/ts-jest/node_modules/semver/functions/satisfies.js @@ -1,5 +1,3 @@ -'use strict' - const Range = require('../classes/range') const satisfies = (version, range, options) => { try { diff --git a/node_modules/ts-jest/node_modules/semver/functions/sort.js b/node_modules/ts-jest/node_modules/semver/functions/sort.js index edb24b1dc..4d10917ab 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/sort.js +++ b/node_modules/ts-jest/node_modules/semver/functions/sort.js @@ -1,5 +1,3 @@ -'use strict' - const compareBuild = require('./compare-build') const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) module.exports = sort diff --git a/node_modules/ts-jest/node_modules/semver/functions/valid.js b/node_modules/ts-jest/node_modules/semver/functions/valid.js index 0db67edcb..f27bae107 100644 --- a/node_modules/ts-jest/node_modules/semver/functions/valid.js +++ b/node_modules/ts-jest/node_modules/semver/functions/valid.js @@ -1,5 +1,3 @@ -'use strict' - const parse = require('./parse') const valid = (version, options) => { const v = parse(version, options) diff --git a/node_modules/ts-jest/node_modules/semver/index.js b/node_modules/ts-jest/node_modules/semver/index.js index 285662acb..86d42ac16 100644 --- a/node_modules/ts-jest/node_modules/semver/index.js +++ b/node_modules/ts-jest/node_modules/semver/index.js @@ -1,5 +1,3 @@ -'use strict' - // just pre-load all the stuff that index.js lazily exports const internalRe = require('./internal/re') const constants = require('./internal/constants') diff --git a/node_modules/ts-jest/node_modules/semver/internal/constants.js b/node_modules/ts-jest/node_modules/semver/internal/constants.js index 6d1db9154..94be1c570 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/constants.js +++ b/node_modules/ts-jest/node_modules/semver/internal/constants.js @@ -1,5 +1,3 @@ -'use strict' - // Note: this is the semver.org version of the spec that it implements // Not necessarily the package version of this code. const SEMVER_SPEC_VERSION = '2.0.0' diff --git a/node_modules/ts-jest/node_modules/semver/internal/debug.js b/node_modules/ts-jest/node_modules/semver/internal/debug.js index 20d1e9dce..1c00e1369 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/debug.js +++ b/node_modules/ts-jest/node_modules/semver/internal/debug.js @@ -1,5 +1,3 @@ -'use strict' - const debug = ( typeof process === 'object' && process.env && diff --git a/node_modules/ts-jest/node_modules/semver/internal/identifiers.js b/node_modules/ts-jest/node_modules/semver/internal/identifiers.js index a4613dee7..e612d0a3d 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/identifiers.js +++ b/node_modules/ts-jest/node_modules/semver/internal/identifiers.js @@ -1,5 +1,3 @@ -'use strict' - const numeric = /^[0-9]+$/ const compareIdentifiers = (a, b) => { const anum = numeric.test(a) diff --git a/node_modules/ts-jest/node_modules/semver/internal/lrucache.js b/node_modules/ts-jest/node_modules/semver/internal/lrucache.js index b8bf5262a..6d89ec948 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/lrucache.js +++ b/node_modules/ts-jest/node_modules/semver/internal/lrucache.js @@ -1,5 +1,3 @@ -'use strict' - class LRUCache { constructor () { this.max = 1000 diff --git a/node_modules/ts-jest/node_modules/semver/internal/parse-options.js b/node_modules/ts-jest/node_modules/semver/internal/parse-options.js index 529545413..10d64ce06 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/parse-options.js +++ b/node_modules/ts-jest/node_modules/semver/internal/parse-options.js @@ -1,5 +1,3 @@ -'use strict' - // parse out just the options we care about const looseOption = Object.freeze({ loose: true }) const emptyOpts = Object.freeze({ }) diff --git a/node_modules/ts-jest/node_modules/semver/internal/re.js b/node_modules/ts-jest/node_modules/semver/internal/re.js index 4758c58d4..fd8920e7b 100644 --- a/node_modules/ts-jest/node_modules/semver/internal/re.js +++ b/node_modules/ts-jest/node_modules/semver/internal/re.js @@ -1,5 +1,3 @@ -'use strict' - const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, @@ -12,7 +10,6 @@ exports = module.exports = {} const re = exports.re = [] const safeRe = exports.safeRe = [] const src = exports.src = [] -const safeSrc = exports.safeSrc = [] const t = exports.t = {} let R = 0 @@ -45,7 +42,6 @@ const createToken = (name, value, isGlobal) => { debug(name, index, value) t[name] = index src[index] = value - safeSrc[index] = safe re[index] = new RegExp(value, isGlobal ? 'g' : undefined) safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) } @@ -78,14 +74,12 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + // ## Pre-release Version Identifier // A numeric identifier, or a non-numeric identifier. -// Non-numberic identifiers include numberic identifiers but can be longer. -// Therefore non-numberic identifiers must go first. -createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER] -}|${src[t.NUMERICIDENTIFIER]})`) +createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER] +}|${src[t.NONNUMERICIDENTIFIER]})`) -createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER] -}|${src[t.NUMERICIDENTIFIERLOOSE]})`) +createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE] +}|${src[t.NONNUMERICIDENTIFIER]})`) // ## Pre-release Version // Hyphen, followed by one or more dot-separated pre-release version diff --git a/node_modules/ts-jest/node_modules/semver/package.json b/node_modules/ts-jest/node_modules/semver/package.json index 1fbef5a9b..663d3701b 100644 --- a/node_modules/ts-jest/node_modules/semver/package.json +++ b/node_modules/ts-jest/node_modules/semver/package.json @@ -1,21 +1,20 @@ { "name": "semver", - "version": "7.7.2", + "version": "7.6.3", "description": "The semantic version parser used by npm.", "main": "index.js", "scripts": { "test": "tap", "snap": "tap", - "lint": "npm run eslint", + "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", "postlint": "template-oss-check", - "lintfix": "npm run eslint -- --fix", + "lintfix": "npm run lint -- --fix", "posttest": "npm run lint", - "template-oss-apply": "template-oss-apply --force", - "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"" + "template-oss-apply": "template-oss-apply --force" }, "devDependencies": { - "@npmcli/eslint-config": "^5.0.0", - "@npmcli/template-oss": "4.24.3", + "@npmcli/eslint-config": "^4.0.0", + "@npmcli/template-oss": "4.22.0", "benchmark": "^2.1.4", "tap": "^16.0.0" }, @@ -52,7 +51,7 @@ "author": "GitHub Inc.", "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.24.3", + "version": "4.22.0", "engines": ">=10", "distPaths": [ "classes/", diff --git a/node_modules/ts-jest/node_modules/semver/preload.js b/node_modules/ts-jest/node_modules/semver/preload.js index e6c47b9b0..947cd4f79 100644 --- a/node_modules/ts-jest/node_modules/semver/preload.js +++ b/node_modules/ts-jest/node_modules/semver/preload.js @@ -1,4 +1,2 @@ -'use strict' - // XXX remove in v8 or beyond module.exports = require('./index.js') diff --git a/node_modules/ts-jest/node_modules/semver/ranges/gtr.js b/node_modules/ts-jest/node_modules/semver/ranges/gtr.js index 0e7601f69..db7e35599 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/gtr.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/gtr.js @@ -1,5 +1,3 @@ -'use strict' - // Determine if version is greater than all the versions possible in the range. const outside = require('./outside') const gtr = (version, range, options) => outside(version, range, '>', options) diff --git a/node_modules/ts-jest/node_modules/semver/ranges/intersects.js b/node_modules/ts-jest/node_modules/semver/ranges/intersects.js index 917be7e42..e0e9b7ce0 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/intersects.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/intersects.js @@ -1,5 +1,3 @@ -'use strict' - const Range = require('../classes/range') const intersects = (r1, r2, options) => { r1 = new Range(r1, options) diff --git a/node_modules/ts-jest/node_modules/semver/ranges/ltr.js b/node_modules/ts-jest/node_modules/semver/ranges/ltr.js index aa5e568ec..528a885eb 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/ltr.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/ltr.js @@ -1,5 +1,3 @@ -'use strict' - const outside = require('./outside') // Determine if version is less than all the versions possible in the range const ltr = (version, range, options) => outside(version, range, '<', options) diff --git a/node_modules/ts-jest/node_modules/semver/ranges/max-satisfying.js b/node_modules/ts-jest/node_modules/semver/ranges/max-satisfying.js index 01fe5ae38..6e3d993c6 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/max-satisfying.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/max-satisfying.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const Range = require('../classes/range') diff --git a/node_modules/ts-jest/node_modules/semver/ranges/min-satisfying.js b/node_modules/ts-jest/node_modules/semver/ranges/min-satisfying.js index af89c8ef4..9b60974e2 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/min-satisfying.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/min-satisfying.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const Range = require('../classes/range') const minSatisfying = (versions, range, options) => { diff --git a/node_modules/ts-jest/node_modules/semver/ranges/min-version.js b/node_modules/ts-jest/node_modules/semver/ranges/min-version.js index 09a65aa36..350e1f783 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/min-version.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/min-version.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const Range = require('../classes/range') const gt = require('../functions/gt') diff --git a/node_modules/ts-jest/node_modules/semver/ranges/outside.js b/node_modules/ts-jest/node_modules/semver/ranges/outside.js index ca7442120..ae99b10a5 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/outside.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/outside.js @@ -1,5 +1,3 @@ -'use strict' - const SemVer = require('../classes/semver') const Comparator = require('../classes/comparator') const { ANY } = Comparator diff --git a/node_modules/ts-jest/node_modules/semver/ranges/simplify.js b/node_modules/ts-jest/node_modules/semver/ranges/simplify.js index 262732e67..618d5b627 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/simplify.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/simplify.js @@ -1,5 +1,3 @@ -'use strict' - // given a set of versions and a range, create a "simplified" range // that includes the same versions that the original range does // If the original range is shorter than the simplified one, return that. diff --git a/node_modules/ts-jest/node_modules/semver/ranges/subset.js b/node_modules/ts-jest/node_modules/semver/ranges/subset.js index 2c49aef1b..1e5c26837 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/subset.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/subset.js @@ -1,5 +1,3 @@ -'use strict' - const Range = require('../classes/range.js') const Comparator = require('../classes/comparator.js') const { ANY } = Comparator diff --git a/node_modules/ts-jest/node_modules/semver/ranges/to-comparators.js b/node_modules/ts-jest/node_modules/semver/ranges/to-comparators.js index 5be251961..6c8bc7e6f 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/to-comparators.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/to-comparators.js @@ -1,5 +1,3 @@ -'use strict' - const Range = require('../classes/range') // Mostly just for testing and legacy API reasons diff --git a/node_modules/ts-jest/node_modules/semver/ranges/valid.js b/node_modules/ts-jest/node_modules/semver/ranges/valid.js index cc6b0e9f6..365f35689 100644 --- a/node_modules/ts-jest/node_modules/semver/ranges/valid.js +++ b/node_modules/ts-jest/node_modules/semver/ranges/valid.js @@ -1,5 +1,3 @@ -'use strict' - const Range = require('../classes/range') const validRange = (range, options) => { try { diff --git a/node_modules/typed-array-buffer/.eslintrc b/node_modules/typed-array-buffer/.eslintrc deleted file mode 100644 index 46f3b120b..000000000 --- a/node_modules/typed-array-buffer/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "new-cap": ["error", { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - }, -} diff --git a/node_modules/typed-array-buffer/.github/FUNDING.yml b/node_modules/typed-array-buffer/.github/FUNDING.yml deleted file mode 100644 index bf630d0a3..000000000 --- a/node_modules/typed-array-buffer/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/typed-array-buffer -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/node_modules/typed-array-buffer/.nycrc b/node_modules/typed-array-buffer/.nycrc deleted file mode 100644 index 1826526e0..000000000 --- a/node_modules/typed-array-buffer/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "test" - ] -} diff --git a/node_modules/typed-array-buffer/CHANGELOG.md b/node_modules/typed-array-buffer/CHANGELOG.md deleted file mode 100644 index bf2db5895..000000000 --- a/node_modules/typed-array-buffer/CHANGELOG.md +++ /dev/null @@ -1,50 +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). - -## [v1.0.3](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.2...v1.0.3) - 2024-12-18 - -### Commits - -- [meta] update URLs [`aca9484`](https://github.com/inspect-js/typed-array-buffer/commit/aca9484b41f96767408e26e63854b5d86f759de8) -- [types] use shared config [`fcdcb05`](https://github.com/inspect-js/typed-array-buffer/commit/fcdcb05941a771826e1478a77aadd89c582e37cd) -- [actions] split out node 10-20, and 20+ [`5f5a406`](https://github.com/inspect-js/typed-array-buffer/commit/5f5a4067752d7bccecbaa8f6e143863d55197af9) -- [types] improve types [`f45042c`](https://github.com/inspect-js/typed-array-buffer/commit/f45042c07c04007217404d73aa77c26a73885210) -- [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/object-inspect`, `@types/tape`, `auto-changelog`, `es-value-fixtures`, `object-inspect`, `tape` [`0c937e7`](https://github.com/inspect-js/typed-array-buffer/commit/0c937e72e93dccc359c08cf1a9ef060e5f5e1a8d) -- [Refactor] use `call-bound` directly [`cf4aba4`](https://github.com/inspect-js/typed-array-buffer/commit/cf4aba4d8c1702ee9130abaf8a6a72907ca96ce0) -- [Tests] replace `aud` with `npm audit` [`a3abb73`](https://github.com/inspect-js/typed-array-buffer/commit/a3abb739300d1de6e88736019d718d831c7a4cca) -- [Dev Deps] update `@types/tape` [`548ffdc`](https://github.com/inspect-js/typed-array-buffer/commit/548ffdc881726b060ac92fc0c59ab0bb150df91f) -- [Deps] update `is-typed-array` [`3b5deb1`](https://github.com/inspect-js/typed-array-buffer/commit/3b5deb191a1c942deced0273b07fe69bc8de39ab) -- [Deps] update `call-bind` [`02cbc0c`](https://github.com/inspect-js/typed-array-buffer/commit/02cbc0cca2f69d81cdeedf7beebae2a5dd9dd4f7) -- [Tests] add attw and `postlint` [`f6daa66`](https://github.com/inspect-js/typed-array-buffer/commit/f6daa6695a69878d845070b90ab0bbf6392ebb03) -- [Dev Deps] add missing peer dep [`c9faf2a`](https://github.com/inspect-js/typed-array-buffer/commit/c9faf2ac04fc78410aeb144405db110fe9b60b6c) - -## [v1.0.2](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.1...v1.0.2) - 2024-02-19 - -### Commits - -- add types [`23c6fba`](https://github.com/inspect-js/typed-array-buffer/commit/23c6fba167dbc8c1e9291eed3f68e64a5651075a) -- [Deps] update `available-typed-arrays` [`5f68ba1`](https://github.com/inspect-js/typed-array-buffer/commit/5f68ba1fdcd004af46d529fbb08220de2254cf43) -- [Deps] update `call-bind` [`54a92ce`](https://github.com/inspect-js/typed-array-buffer/commit/54a92ce4caf023c8680ffe64534ba881b78cdc17) -- [Dev Deps] update `tape` [`b0b3342`](https://github.com/inspect-js/typed-array-buffer/commit/b0b3342bcbefae5f3dff01b0e3734b08ca927f58) - -## [v1.0.1](https://github.com/inspect-js/typed-array-buffer/compare/v1.0.0...v1.0.1) - 2024-02-06 - -### Commits - -- [Dev Deps] update `aud`, `available-typed-arrays`, `npmignore`, `object-inspect`, `tape` [`5334477`](https://github.com/inspect-js/typed-array-buffer/commit/53344773866f35820dc4deef1aa47ec7890f2b02) -- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`e2511e0`](https://github.com/inspect-js/typed-array-buffer/commit/e2511e011a2331bd4a36ad6003a98b1cf766bc26) -- [Deps] update `call-bind`, `get-intrinsic`, `is-typed-array` [`36c3b11`](https://github.com/inspect-js/typed-array-buffer/commit/36c3b11efc9bce98de8bee5f81dcae4305876893) -- [meta] add `sideEffects` flag [`46cc1f4`](https://github.com/inspect-js/typed-array-buffer/commit/46cc1f4a8b8875fc6e84b33182602ec37655bbbd) - -## v1.0.0 - 2023-06-05 - -### Commits - -- Initial implementation, tests, readme [`5bc2953`](https://github.com/inspect-js/typed-array-buffer/commit/5bc295337b4310659832fc08699a4d10c2dbbded) -- Initial commit [`98b8ac9`](https://github.com/inspect-js/typed-array-buffer/commit/98b8ac90f407c368effa25d395aeea1d72e1d4b6) -- npm init [`6a4a73c`](https://github.com/inspect-js/typed-array-buffer/commit/6a4a73c66b1f13fd17699c6500a4979003676696) -- Only apps should have lockfiles [`7226abf`](https://github.com/inspect-js/typed-array-buffer/commit/7226abfda329b99dc25526c48740b076d128a7be) diff --git a/node_modules/typed-array-buffer/LICENSE b/node_modules/typed-array-buffer/LICENSE deleted file mode 100644 index b4213ac64..000000000 --- a/node_modules/typed-array-buffer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Jordan Harband - -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/typed-array-buffer/README.md b/node_modules/typed-array-buffer/README.md deleted file mode 100644 index da71d75f4..000000000 --- a/node_modules/typed-array-buffer/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# typed-array-buffer [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Get the ArrayBuffer out of a TypedArray, robustly. - -This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property. -It will also work in modern engines where `TypedArray.prototype.buffer` has been deleted after this module has loaded. - -## Example - -```js -const typedArrayBuffer = require('typed-array-buffer'); -const assert = require('assert'); - -const arr = new Uint8Array(0); -assert.equal(arr.buffer, typedArrayBuffer(arr)); -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/typed-array-buffer -[npm-version-svg]: https://versionbadg.es/inspect-js/typed-array-buffer.svg -[deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer.svg -[deps-url]: https://david-dm.org/inspect-js/typed-array-buffer -[dev-deps-svg]: https://david-dm.org/inspect-js/typed-array-buffer/dev-status.svg -[dev-deps-url]: https://david-dm.org/inspect-js/typed-array-buffer#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/typed-array-buffer.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/typed-array-buffer.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/typed-array-buffer.svg -[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-buffer -[codecov-image]: https://codecov.io/gh/inspect-js/typed-array-buffer/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/typed-array-buffer/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/typed-array-buffer -[actions-url]: https://github.com/inspect-js/typed-array-buffer/actions diff --git a/node_modules/typed-array-buffer/index.d.ts b/node_modules/typed-array-buffer/index.d.ts deleted file mode 100644 index 68ce88d6e..000000000 --- a/node_modules/typed-array-buffer/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TypedArray } from 'is-typed-array'; - -declare namespace typedArrayBuffer{ - export type { TypedArray }; -} - -declare function typedArrayBuffer(x: typedArrayBuffer.TypedArray): ArrayBuffer; - -export = typedArrayBuffer; diff --git a/node_modules/typed-array-buffer/index.js b/node_modules/typed-array-buffer/index.js deleted file mode 100644 index a27c2b97a..000000000 --- a/node_modules/typed-array-buffer/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var $TypeError = require('es-errors/type'); - -var callBound = require('call-bound'); - -/** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer)} */ -var $typedArrayBuffer = callBound('TypedArray.prototype.buffer', true); - -var isTypedArray = require('is-typed-array'); - -/** @type {import('.')} */ -// node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter -module.exports = $typedArrayBuffer || function typedArrayBuffer(x) { - if (!isTypedArray(x)) { - throw new $TypeError('Not a Typed Array'); - } - return x.buffer; -}; diff --git a/node_modules/typed-array-buffer/package.json b/node_modules/typed-array-buffer/package.json deleted file mode 100644 index bef6fb8a6..000000000 --- a/node_modules/typed-array-buffer/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "typed-array-buffer", - "version": "1.0.3", - "description": "Get the ArrayBuffer out of a TypedArray, robustly.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "lint": "eslint --ext=js,mjs .", - "postlint": "tsc && attw -P", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>= 10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/inspect-js/typed-array-buffer.git" - }, - "keywords": [ - "typed array", - "arraybuffer", - "buffer" - ], - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/inspect-js/typed-array-buffer/issues" - }, - "homepage": "https://github.com/inspect-js/typed-array-buffer#readme", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.1", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.2.2", - "@types/es-value-fixtures": "^1.4.4", - "@types/for-each": "^0.3.3", - "@types/object-inspect": "^1.13.0", - "@types/tape": "^5.8.0", - "auto-changelog": "^2.5.0", - "available-typed-arrays": "^1.0.7", - "encoding": "^0.1.13", - "es-value-fixtures": "^1.5.0", - "eslint": "=8.8.0", - "for-each": "^0.3.3", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.3", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "engines": { - "node": ">= 0.4" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - } -} diff --git a/node_modules/typed-array-buffer/test/index.js b/node_modules/typed-array-buffer/test/index.js deleted file mode 100644 index 9596317ed..000000000 --- a/node_modules/typed-array-buffer/test/index.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var test = require('tape'); -var availableTypedArrays = require('available-typed-arrays')(); -var forEach = require('for-each'); -var v = require('es-value-fixtures'); -var inspect = require('object-inspect'); - -var typedArrayBuffer = require('../'); - -test('typedArrayBuffer', function (t) { - // @ts-expect-error TS sucks at concat - forEach([].concat(v.primitives, v.objects), function (nonTA) { - t['throws'](function () { typedArrayBuffer(nonTA); }, TypeError, inspect(nonTA) + ' is not a Typed Array'); - }); - - forEach(availableTypedArrays, function (TA) { - var ta = new global[TA](0); - t.equal(typedArrayBuffer(ta), ta.buffer, inspect(ta) + ' has the same buffer as its own buffer property'); - }); - - t.end(); -}); diff --git a/node_modules/typed-array-buffer/tsconfig.json b/node_modules/typed-array-buffer/tsconfig.json deleted file mode 100644 index d9a6668c3..000000000 --- a/node_modules/typed-array-buffer/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "compilerOptions": { - "target": "es2021", - }, - "exclude": [ - "coverage", - ], -} diff --git a/node_modules/typescript/README.md b/node_modules/typescript/README.md index b6505f736..3314c58f4 100644 --- a/node_modules/typescript/README.md +++ b/node_modules/typescript/README.md @@ -1,7 +1,7 @@ # TypeScript -[![CI](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml/badge.svg)](https://github.com/microsoft/TypeScript/actions/workflows/ci.yml) +[![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) [![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/microsoft/TypeScript/badge)](https://securityscorecards.dev/viewer/?uri=github.com/microsoft/TypeScript) diff --git a/node_modules/typescript/lib/_tsc.js b/node_modules/typescript/lib/_tsc.js deleted file mode 100644 index 90c732888..000000000 --- a/node_modules/typescript/lib/_tsc.js +++ /dev/null @@ -1,132810 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -"use strict"; - -// src/compiler/corePublic.ts -var versionMajorMinor = "5.8"; -var version = "5.8.3"; - -// src/compiler/core.ts -var emptyArray = []; -var emptyMap = /* @__PURE__ */ new Map(); -function length(array) { - return array !== void 0 ? array.length : 0; -} -function forEach(array, callback) { - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const result = callback(array[i], i); - if (result) { - return result; - } - } - } - return void 0; -} -function firstDefined(array, callback) { - if (array === void 0) { - return void 0; - } - for (let i = 0; i < array.length; i++) { - const result = callback(array[i], i); - if (result !== void 0) { - return result; - } - } - return void 0; -} -function firstDefinedIterator(iter, callback) { - for (const value of iter) { - const result = callback(value); - if (result !== void 0) { - return result; - } - } - return void 0; -} -function reduceLeftIterator(iterator, f, initial) { - let result = initial; - if (iterator) { - let pos = 0; - for (const value of iterator) { - result = f(result, value, pos); - pos++; - } - } - return result; -} -function zipWith(arrayA, arrayB, callback) { - const result = []; - Debug.assertEqual(arrayA.length, arrayB.length); - for (let i = 0; i < arrayA.length; i++) { - result.push(callback(arrayA[i], arrayB[i], i)); - } - return result; -} -function every(array, callback) { - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - if (!callback(array[i], i)) { - return false; - } - } - } - return true; -} -function find(array, predicate, startIndex) { - if (array === void 0) return void 0; - for (let i = startIndex ?? 0; i < array.length; i++) { - const value = array[i]; - if (predicate(value, i)) { - return value; - } - } - return void 0; -} -function findLast(array, predicate, startIndex) { - if (array === void 0) return void 0; - for (let i = startIndex ?? array.length - 1; i >= 0; i--) { - const value = array[i]; - if (predicate(value, i)) { - return value; - } - } - return void 0; -} -function findIndex(array, predicate, startIndex) { - if (array === void 0) return -1; - for (let i = startIndex ?? 0; i < array.length; i++) { - if (predicate(array[i], i)) { - return i; - } - } - return -1; -} -function findLastIndex(array, predicate, startIndex) { - if (array === void 0) return -1; - for (let i = startIndex ?? array.length - 1; i >= 0; i--) { - if (predicate(array[i], i)) { - return i; - } - } - return -1; -} -function contains(array, value, equalityComparer = equateValues) { - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - if (equalityComparer(array[i], value)) { - return true; - } - } - } - return false; -} -function indexOfAnyCharCode(text, charCodes, start) { - for (let i = start ?? 0; i < text.length; i++) { - if (contains(charCodes, text.charCodeAt(i))) { - return i; - } - } - return -1; -} -function countWhere(array, predicate) { - let count = 0; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const v = array[i]; - if (predicate(v, i)) { - count++; - } - } - } - return count; -} -function filter(array, f) { - if (array !== void 0) { - const len = array.length; - let i = 0; - while (i < len && f(array[i])) i++; - if (i < len) { - const result = array.slice(0, i); - i++; - while (i < len) { - const item = array[i]; - if (f(item)) { - result.push(item); - } - i++; - } - return result; - } - } - return array; -} -function filterMutate(array, f) { - let outIndex = 0; - for (let i = 0; i < array.length; i++) { - if (f(array[i], i, array)) { - array[outIndex] = array[i]; - outIndex++; - } - } - array.length = outIndex; -} -function clear(array) { - array.length = 0; -} -function map(array, f) { - let result; - if (array !== void 0) { - result = []; - for (let i = 0; i < array.length; i++) { - result.push(f(array[i], i)); - } - } - return result; -} -function* mapIterator(iter, mapFn) { - for (const x of iter) { - yield mapFn(x); - } -} -function sameMap(array, f) { - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const item = array[i]; - const mapped = f(item, i); - if (item !== mapped) { - const result = array.slice(0, i); - result.push(mapped); - for (i++; i < array.length; i++) { - result.push(f(array[i], i)); - } - return result; - } - } - } - return array; -} -function flatten(array) { - const result = []; - for (let i = 0; i < array.length; i++) { - const v = array[i]; - if (v) { - if (isArray(v)) { - addRange(result, v); - } else { - result.push(v); - } - } - } - return result; -} -function flatMap(array, mapfn) { - let result; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const v = mapfn(array[i], i); - if (v) { - if (isArray(v)) { - result = addRange(result, v); - } else { - result = append(result, v); - } - } - } - } - return result ?? emptyArray; -} -function flatMapToMutable(array, mapfn) { - const result = []; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const v = mapfn(array[i], i); - if (v) { - if (isArray(v)) { - addRange(result, v); - } else { - result.push(v); - } - } - } - } - return result; -} -function sameFlatMap(array, mapfn) { - let result; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const item = array[i]; - const mapped = mapfn(item, i); - if (result || item !== mapped || isArray(mapped)) { - if (!result) { - result = array.slice(0, i); - } - if (isArray(mapped)) { - addRange(result, mapped); - } else { - result.push(mapped); - } - } - } - } - return result ?? array; -} -function mapDefined(array, mapFn) { - const result = []; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const mapped = mapFn(array[i], i); - if (mapped !== void 0) { - result.push(mapped); - } - } - } - return result; -} -function* mapDefinedIterator(iter, mapFn) { - for (const x of iter) { - const value = mapFn(x); - if (value !== void 0) { - yield value; - } - } -} -function getOrUpdate(map2, key, callback) { - if (map2.has(key)) { - return map2.get(key); - } - const value = callback(); - map2.set(key, value); - return value; -} -function tryAddToSet(set, value) { - if (!set.has(value)) { - set.add(value); - return true; - } - return false; -} -function spanMap(array, keyfn, mapfn) { - let result; - if (array !== void 0) { - result = []; - const len = array.length; - let previousKey; - let key; - let start = 0; - let pos = 0; - while (start < len) { - while (pos < len) { - const value = array[pos]; - key = keyfn(value, pos); - if (pos === 0) { - previousKey = key; - } else if (key !== previousKey) { - break; - } - pos++; - } - if (start < pos) { - const v = mapfn(array.slice(start, pos), previousKey, start, pos); - if (v) { - result.push(v); - } - start = pos; - } - previousKey = key; - pos++; - } - } - return result; -} -function some(array, predicate) { - if (array !== void 0) { - if (predicate !== void 0) { - for (let i = 0; i < array.length; i++) { - if (predicate(array[i])) { - return true; - } - } - } else { - return array.length > 0; - } - } - return false; -} -function getRangesWhere(arr, pred, cb) { - let start; - for (let i = 0; i < arr.length; i++) { - if (pred(arr[i])) { - start = start === void 0 ? i : start; - } else { - if (start !== void 0) { - cb(start, i); - start = void 0; - } - } - } - if (start !== void 0) cb(start, arr.length); -} -function concatenate(array1, array2) { - if (array2 === void 0 || array2.length === 0) return array1; - if (array1 === void 0 || array1.length === 0) return array2; - return [...array1, ...array2]; -} -function selectIndex(_, i) { - return i; -} -function indicesOf(array) { - return array.map(selectIndex); -} -function deduplicateRelational(array, equalityComparer, comparer) { - const indices = indicesOf(array); - stableSortIndices(array, indices, comparer); - let last2 = array[indices[0]]; - const deduplicated = [indices[0]]; - for (let i = 1; i < indices.length; i++) { - const index = indices[i]; - const item = array[index]; - if (!equalityComparer(last2, item)) { - deduplicated.push(index); - last2 = item; - } - } - deduplicated.sort(); - return deduplicated.map((i) => array[i]); -} -function deduplicateEquality(array, equalityComparer) { - const result = []; - for (let i = 0; i < array.length; i++) { - pushIfUnique(result, array[i], equalityComparer); - } - return result; -} -function deduplicate(array, equalityComparer, comparer) { - return array.length === 0 ? [] : array.length === 1 ? array.slice() : comparer ? deduplicateRelational(array, equalityComparer, comparer) : deduplicateEquality(array, equalityComparer); -} -function deduplicateSorted(array, comparer) { - if (array.length === 0) return emptyArray; - let last2 = array[0]; - const deduplicated = [last2]; - for (let i = 1; i < array.length; i++) { - const next = array[i]; - switch (comparer(next, last2)) { - // equality comparison - case true: - // relational comparison - // falls through - case 0 /* EqualTo */: - continue; - case -1 /* LessThan */: - return Debug.fail("Array is unsorted."); - } - deduplicated.push(last2 = next); - } - return deduplicated; -} -function insertSorted(array, insert, compare, equalityComparer, allowDuplicates) { - if (array.length === 0) { - array.push(insert); - return true; - } - const insertIndex = binarySearch(array, insert, identity, compare); - if (insertIndex < 0) { - if (equalityComparer && !allowDuplicates) { - const idx = ~insertIndex; - if (idx > 0 && equalityComparer(insert, array[idx - 1])) { - return false; - } - if (idx < array.length && equalityComparer(insert, array[idx])) { - array.splice(idx, 1, insert); - return true; - } - } - array.splice(~insertIndex, 0, insert); - return true; - } - if (allowDuplicates) { - array.splice(insertIndex, 0, insert); - return true; - } - return false; -} -function sortAndDeduplicate(array, comparer, equalityComparer) { - return deduplicateSorted(toSorted(array, comparer), equalityComparer ?? comparer ?? compareStringsCaseSensitive); -} -function arrayIsEqualTo(array1, array2, equalityComparer = equateValues) { - if (array1 === void 0 || array2 === void 0) { - return array1 === array2; - } - if (array1.length !== array2.length) { - return false; - } - for (let i = 0; i < array1.length; i++) { - if (!equalityComparer(array1[i], array2[i], i)) { - return false; - } - } - return true; -} -function compact(array) { - let result; - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - const v = array[i]; - if (result ?? !v) { - result ?? (result = array.slice(0, i)); - if (v) { - result.push(v); - } - } - } - } - return result ?? array; -} -function relativeComplement(arrayA, arrayB, comparer) { - if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0) return arrayB; - const result = []; - loopB: - for (let offsetA = 0, offsetB = 0; offsetB < arrayB.length; offsetB++) { - if (offsetB > 0) { - Debug.assertGreaterThanOrEqual(comparer(arrayB[offsetB], arrayB[offsetB - 1]), 0 /* EqualTo */); - } - loopA: - for (const startA = offsetA; offsetA < arrayA.length; offsetA++) { - if (offsetA > startA) { - Debug.assertGreaterThanOrEqual(comparer(arrayA[offsetA], arrayA[offsetA - 1]), 0 /* EqualTo */); - } - switch (comparer(arrayB[offsetB], arrayA[offsetA])) { - case -1 /* LessThan */: - result.push(arrayB[offsetB]); - continue loopB; - case 0 /* EqualTo */: - continue loopB; - case 1 /* GreaterThan */: - continue loopA; - } - } - } - return result; -} -function append(to, value) { - if (value === void 0) return to; - if (to === void 0) return [value]; - to.push(value); - return to; -} -function toOffset(array, offset) { - return offset < 0 ? array.length + offset : offset; -} -function addRange(to, from, start, end) { - if (from === void 0 || from.length === 0) return to; - if (to === void 0) return from.slice(start, end); - start = start === void 0 ? 0 : toOffset(from, start); - end = end === void 0 ? from.length : toOffset(from, end); - for (let i = start; i < end && i < from.length; i++) { - if (from[i] !== void 0) { - to.push(from[i]); - } - } - return to; -} -function pushIfUnique(array, toAdd, equalityComparer) { - if (contains(array, toAdd, equalityComparer)) { - return false; - } else { - array.push(toAdd); - return true; - } -} -function appendIfUnique(array, toAdd, equalityComparer) { - if (array !== void 0) { - pushIfUnique(array, toAdd, equalityComparer); - return array; - } else { - return [toAdd]; - } -} -function stableSortIndices(array, indices, comparer) { - indices.sort((x, y) => comparer(array[x], array[y]) || compareValues(x, y)); -} -function toSorted(array, comparer) { - return array.length === 0 ? emptyArray : array.slice().sort(comparer); -} -function rangeEquals(array1, array2, pos, end) { - while (pos < end) { - if (array1[pos] !== array2[pos]) { - return false; - } - pos++; - } - return true; -} -var elementAt = !!Array.prototype.at ? (array, offset) => array == null ? void 0 : array.at(offset) : (array, offset) => { - if (array !== void 0) { - offset = toOffset(array, offset); - if (offset < array.length) { - return array[offset]; - } - } - return void 0; -}; -function firstOrUndefined(array) { - return array === void 0 || array.length === 0 ? void 0 : array[0]; -} -function firstOrUndefinedIterator(iter) { - if (iter !== void 0) { - for (const value of iter) { - return value; - } - } - return void 0; -} -function first(array) { - Debug.assert(array.length !== 0); - return array[0]; -} -function firstIterator(iter) { - for (const value of iter) { - return value; - } - Debug.fail("iterator is empty"); -} -function lastOrUndefined(array) { - return array === void 0 || array.length === 0 ? void 0 : array[array.length - 1]; -} -function last(array) { - Debug.assert(array.length !== 0); - return array[array.length - 1]; -} -function singleOrUndefined(array) { - return array !== void 0 && array.length === 1 ? array[0] : void 0; -} -function singleOrMany(array) { - return array !== void 0 && array.length === 1 ? array[0] : array; -} -function replaceElement(array, index, value) { - const result = array.slice(0); - result[index] = value; - return result; -} -function binarySearch(array, value, keySelector, keyComparer, offset) { - return binarySearchKey(array, keySelector(value), keySelector, keyComparer, offset); -} -function binarySearchKey(array, key, keySelector, keyComparer, offset) { - if (!some(array)) { - return -1; - } - let low = offset ?? 0; - let high = array.length - 1; - while (low <= high) { - const middle = low + (high - low >> 1); - const midKey = keySelector(array[middle], middle); - switch (keyComparer(midKey, key)) { - case -1 /* LessThan */: - low = middle + 1; - break; - case 0 /* EqualTo */: - return middle; - case 1 /* GreaterThan */: - high = middle - 1; - break; - } - } - return ~low; -} -function reduceLeft(array, f, initial, start, count) { - if (array && array.length > 0) { - const size = array.length; - if (size > 0) { - let pos = start === void 0 || start < 0 ? 0 : start; - const end = count === void 0 || pos + count > size - 1 ? size - 1 : pos + count; - let result; - if (arguments.length <= 2) { - result = array[pos]; - pos++; - } else { - result = initial; - } - while (pos <= end) { - result = f(result, array[pos], pos); - pos++; - } - return result; - } - } - return initial; -} -var hasOwnProperty = Object.prototype.hasOwnProperty; -function hasProperty(map2, key) { - return hasOwnProperty.call(map2, key); -} -function getOwnKeys(map2) { - const keys = []; - for (const key in map2) { - if (hasOwnProperty.call(map2, key)) { - keys.push(key); - } - } - return keys; -} -function getOwnValues(collection) { - const values = []; - for (const key in collection) { - if (hasOwnProperty.call(collection, key)) { - values.push(collection[key]); - } - } - return values; -} -function arrayOf(count, f) { - const result = new Array(count); - for (let i = 0; i < count; i++) { - result[i] = f(i); - } - return result; -} -function arrayFrom(iterator, map2) { - const result = []; - for (const value of iterator) { - result.push(map2 ? map2(value) : value); - } - return result; -} -function assign(t, ...args) { - for (const arg of args) { - if (arg === void 0) continue; - for (const p in arg) { - if (hasProperty(arg, p)) { - t[p] = arg[p]; - } - } - } - return t; -} -function equalOwnProperties(left, right, equalityComparer = equateValues) { - if (left === right) return true; - if (!left || !right) return false; - for (const key in left) { - if (hasOwnProperty.call(left, key)) { - if (!hasOwnProperty.call(right, key)) return false; - if (!equalityComparer(left[key], right[key])) return false; - } - } - for (const key in right) { - if (hasOwnProperty.call(right, key)) { - if (!hasOwnProperty.call(left, key)) return false; - } - } - return true; -} -function arrayToMap(array, makeKey, makeValue = identity) { - const result = /* @__PURE__ */ new Map(); - for (let i = 0; i < array.length; i++) { - const value = array[i]; - const key = makeKey(value); - if (key !== void 0) result.set(key, makeValue(value)); - } - return result; -} -function arrayToMultiMap(values, makeKey, makeValue = identity) { - const result = createMultiMap(); - for (let i = 0; i < values.length; i++) { - const value = values[i]; - result.add(makeKey(value), makeValue(value)); - } - return result; -} -function group(values, getGroupId, resultSelector = identity) { - return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector); -} -function groupBy(values, keySelector) { - const result = {}; - if (values !== void 0) { - for (let i = 0; i < values.length; i++) { - const value = values[i]; - const key = `${keySelector(value)}`; - const array = result[key] ?? (result[key] = []); - array.push(value); - } - } - return result; -} -function extend(first2, second) { - const result = {}; - for (const id in second) { - if (hasOwnProperty.call(second, id)) { - result[id] = second[id]; - } - } - for (const id in first2) { - if (hasOwnProperty.call(first2, id)) { - result[id] = first2[id]; - } - } - return result; -} -function copyProperties(first2, second) { - for (const id in second) { - if (hasOwnProperty.call(second, id)) { - first2[id] = second[id]; - } - } -} -function maybeBind(obj, fn) { - return fn == null ? void 0 : fn.bind(obj); -} -function createMultiMap() { - const map2 = /* @__PURE__ */ new Map(); - map2.add = multiMapAdd; - map2.remove = multiMapRemove; - return map2; -} -function multiMapAdd(key, value) { - let values = this.get(key); - if (values !== void 0) { - values.push(value); - } else { - this.set(key, values = [value]); - } - return values; -} -function multiMapRemove(key, value) { - const values = this.get(key); - if (values !== void 0) { - unorderedRemoveItem(values, value); - if (!values.length) { - this.delete(key); - } - } -} -function createQueue(items) { - const elements = (items == null ? void 0 : items.slice()) ?? []; - let headIndex = 0; - function isEmpty() { - return headIndex === elements.length; - } - function enqueue(...items2) { - elements.push(...items2); - } - function dequeue() { - if (isEmpty()) { - throw new Error("Queue is empty"); - } - const result = elements[headIndex]; - elements[headIndex] = void 0; - headIndex++; - if (headIndex > 100 && headIndex > elements.length >> 1) { - const newLength = elements.length - headIndex; - elements.copyWithin( - /*target*/ - 0, - /*start*/ - headIndex - ); - elements.length = newLength; - headIndex = 0; - } - return result; - } - return { - enqueue, - dequeue, - isEmpty - }; -} -function isArray(value) { - return Array.isArray(value); -} -function toArray(value) { - return isArray(value) ? value : [value]; -} -function isString(text) { - return typeof text === "string"; -} -function isNumber(x) { - return typeof x === "number"; -} -function tryCast(value, test) { - return value !== void 0 && test(value) ? value : void 0; -} -function cast(value, test) { - if (value !== void 0 && test(value)) return value; - return Debug.fail(`Invalid cast. The supplied value ${value} did not pass the test '${Debug.getFunctionName(test)}'.`); -} -function noop(_) { -} -function returnFalse() { - return false; -} -function returnTrue() { - return true; -} -function returnUndefined() { - return void 0; -} -function identity(x) { - return x; -} -function toLowerCase(x) { - return x.toLowerCase(); -} -var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; -function toFileNameLowerCase(x) { - return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x; -} -function notImplemented() { - throw new Error("Not implemented"); -} -function memoize(callback) { - let value; - return () => { - if (callback) { - value = callback(); - callback = void 0; - } - return value; - }; -} -function memoizeOne(callback) { - const map2 = /* @__PURE__ */ new Map(); - return (arg) => { - const key = `${typeof arg}:${arg}`; - let value = map2.get(key); - if (value === void 0 && !map2.has(key)) { - value = callback(arg); - map2.set(key, value); - } - return value; - }; -} -function equateValues(a, b) { - return a === b; -} -function equateStringsCaseInsensitive(a, b) { - return a === b || a !== void 0 && b !== void 0 && a.toUpperCase() === b.toUpperCase(); -} -function equateStringsCaseSensitive(a, b) { - return equateValues(a, b); -} -function compareComparableValues(a, b) { - return a === b ? 0 /* EqualTo */ : a === void 0 ? -1 /* LessThan */ : b === void 0 ? 1 /* GreaterThan */ : a < b ? -1 /* LessThan */ : 1 /* GreaterThan */; -} -function compareValues(a, b) { - return compareComparableValues(a, b); -} -function maxBy(arr, init, mapper) { - for (let i = 0; i < arr.length; i++) { - init = Math.max(init, mapper(arr[i])); - } - return init; -} -function min(items, compare) { - return reduceLeft(items, (x, y) => compare(x, y) === -1 /* LessThan */ ? x : y); -} -function compareStringsCaseInsensitive(a, b) { - if (a === b) return 0 /* EqualTo */; - if (a === void 0) return -1 /* LessThan */; - if (b === void 0) return 1 /* GreaterThan */; - a = a.toUpperCase(); - b = b.toUpperCase(); - return a < b ? -1 /* LessThan */ : a > b ? 1 /* GreaterThan */ : 0 /* EqualTo */; -} -function compareStringsCaseSensitive(a, b) { - return compareComparableValues(a, b); -} -function getStringComparer(ignoreCase) { - return ignoreCase ? compareStringsCaseInsensitive : compareStringsCaseSensitive; -} -var uiComparerCaseSensitive; -var uiLocale; -function setUILocale(value) { - if (uiLocale !== value) { - uiLocale = value; - uiComparerCaseSensitive = void 0; - } -} -function compareBooleans(a, b) { - return compareValues(a ? 1 : 0, b ? 1 : 0); -} -function getSpellingSuggestion(name, candidates, getName) { - const maximumLengthDifference = Math.max(2, Math.floor(name.length * 0.34)); - let bestDistance = Math.floor(name.length * 0.4) + 1; - let bestCandidate; - for (const candidate of candidates) { - const candidateName = getName(candidate); - if (candidateName !== void 0 && Math.abs(candidateName.length - name.length) <= maximumLengthDifference) { - if (candidateName === name) { - continue; - } - if (candidateName.length < 3 && candidateName.toLowerCase() !== name.toLowerCase()) { - continue; - } - const distance = levenshteinWithMax(name, candidateName, bestDistance - 0.1); - if (distance === void 0) { - continue; - } - Debug.assert(distance < bestDistance); - bestDistance = distance; - bestCandidate = candidate; - } - } - return bestCandidate; -} -function levenshteinWithMax(s1, s2, max) { - let previous = new Array(s2.length + 1); - let current = new Array(s2.length + 1); - const big = max + 0.01; - for (let i = 0; i <= s2.length; i++) { - previous[i] = i; - } - for (let i = 1; i <= s1.length; i++) { - const c1 = s1.charCodeAt(i - 1); - const minJ = Math.ceil(i > max ? i - max : 1); - const maxJ = Math.floor(s2.length > max + i ? max + i : s2.length); - current[0] = i; - let colMin = i; - for (let j = 1; j < minJ; j++) { - current[j] = big; - } - for (let j = minJ; j <= maxJ; j++) { - const substitutionDistance = s1[i - 1].toLowerCase() === s2[j - 1].toLowerCase() ? previous[j - 1] + 0.1 : previous[j - 1] + 2; - const dist = c1 === s2.charCodeAt(j - 1) ? previous[j - 1] : Math.min( - /*delete*/ - previous[j] + 1, - /*insert*/ - current[j - 1] + 1, - /*substitute*/ - substitutionDistance - ); - current[j] = dist; - colMin = Math.min(colMin, dist); - } - for (let j = maxJ + 1; j <= s2.length; j++) { - current[j] = big; - } - if (colMin > max) { - return void 0; - } - const temp = previous; - previous = current; - current = temp; - } - const res = previous[s2.length]; - return res > max ? void 0 : res; -} -function endsWith(str, suffix, ignoreCase) { - const expectedPos = str.length - suffix.length; - return expectedPos >= 0 && (ignoreCase ? equateStringsCaseInsensitive(str.slice(expectedPos), suffix) : str.indexOf(suffix, expectedPos) === expectedPos); -} -function removeSuffix(str, suffix) { - return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : str; -} -function orderedRemoveItem(array, item) { - for (let i = 0; i < array.length; i++) { - if (array[i] === item) { - orderedRemoveItemAt(array, i); - return true; - } - } - return false; -} -function orderedRemoveItemAt(array, index) { - for (let i = index; i < array.length - 1; i++) { - array[i] = array[i + 1]; - } - array.pop(); -} -function unorderedRemoveItemAt(array, index) { - array[index] = array[array.length - 1]; - array.pop(); -} -function unorderedRemoveItem(array, item) { - return unorderedRemoveFirstItemWhere(array, (element) => element === item); -} -function unorderedRemoveFirstItemWhere(array, predicate) { - for (let i = 0; i < array.length; i++) { - if (predicate(array[i])) { - unorderedRemoveItemAt(array, i); - return true; - } - } - return false; -} -function createGetCanonicalFileName(useCaseSensitiveFileNames2) { - return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; -} -function patternText({ prefix, suffix }) { - return `${prefix}*${suffix}`; -} -function matchedText(pattern, candidate) { - Debug.assert(isPatternMatch(pattern, candidate)); - return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length); -} -function findBestPatternMatch(values, getPattern, candidate) { - let matchedValue; - let longestMatchPrefixLength = -1; - for (let i = 0; i < values.length; i++) { - const v = values[i]; - const pattern = getPattern(v); - if (pattern.prefix.length > longestMatchPrefixLength && isPatternMatch(pattern, candidate)) { - longestMatchPrefixLength = pattern.prefix.length; - matchedValue = v; - } - } - return matchedValue; -} -function startsWith(str, prefix, ignoreCase) { - return ignoreCase ? equateStringsCaseInsensitive(str.slice(0, prefix.length), prefix) : str.lastIndexOf(prefix, 0) === 0; -} -function removePrefix(str, prefix) { - return startsWith(str, prefix) ? str.substr(prefix.length) : str; -} -function isPatternMatch({ prefix, suffix }, candidate) { - return candidate.length >= prefix.length + suffix.length && startsWith(candidate, prefix) && endsWith(candidate, suffix); -} -function and(f, g) { - return (arg) => f(arg) && g(arg); -} -function or(...fs) { - return (...args) => { - let lastResult; - for (const f of fs) { - lastResult = f(...args); - if (lastResult) { - return lastResult; - } - } - return lastResult; - }; -} -function not(fn) { - return (...args) => !fn(...args); -} -function assertType(_) { -} -function singleElementArray(t) { - return t === void 0 ? void 0 : [t]; -} -function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) { - unchanged ?? (unchanged = noop); - let newIndex = 0; - let oldIndex = 0; - const newLen = newItems.length; - const oldLen = oldItems.length; - let hasChanges = false; - while (newIndex < newLen && oldIndex < oldLen) { - const newItem = newItems[newIndex]; - const oldItem = oldItems[oldIndex]; - const compareResult = comparer(newItem, oldItem); - if (compareResult === -1 /* LessThan */) { - inserted(newItem); - newIndex++; - hasChanges = true; - } else if (compareResult === 1 /* GreaterThan */) { - deleted(oldItem); - oldIndex++; - hasChanges = true; - } else { - unchanged(oldItem, newItem); - newIndex++; - oldIndex++; - } - } - while (newIndex < newLen) { - inserted(newItems[newIndex++]); - hasChanges = true; - } - while (oldIndex < oldLen) { - deleted(oldItems[oldIndex++]); - hasChanges = true; - } - return hasChanges; -} -function cartesianProduct(arrays) { - const result = []; - cartesianProductWorker( - arrays, - result, - /*outer*/ - void 0, - 0 - ); - return result; -} -function cartesianProductWorker(arrays, result, outer, index) { - for (const element of arrays[index]) { - let inner; - if (outer) { - inner = outer.slice(); - inner.push(element); - } else { - inner = [element]; - } - if (index === arrays.length - 1) { - result.push(inner); - } else { - cartesianProductWorker(arrays, result, inner, index + 1); - } - } -} -function takeWhile(array, predicate) { - if (array !== void 0) { - const len = array.length; - let index = 0; - while (index < len && predicate(array[index])) { - index++; - } - return array.slice(0, index); - } -} -function skipWhile(array, predicate) { - if (array !== void 0) { - const len = array.length; - let index = 0; - while (index < len && predicate(array[index])) { - index++; - } - return array.slice(index); - } -} -function isNodeLikeSystem() { - return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof require !== "undefined"; -} - -// src/compiler/debug.ts -var Debug; -((Debug2) => { - let currentAssertionLevel = 0 /* None */; - Debug2.currentLogLevel = 2 /* Warning */; - Debug2.isDebugging = false; - function shouldLog(level) { - return Debug2.currentLogLevel <= level; - } - Debug2.shouldLog = shouldLog; - function logMessage(level, s) { - if (Debug2.loggingHost && shouldLog(level)) { - Debug2.loggingHost.log(level, s); - } - } - function log(s) { - logMessage(3 /* Info */, s); - } - Debug2.log = log; - ((_log) => { - function error(s) { - logMessage(1 /* Error */, s); - } - _log.error = error; - function warn(s) { - logMessage(2 /* Warning */, s); - } - _log.warn = warn; - function log2(s) { - logMessage(3 /* Info */, s); - } - _log.log = log2; - function trace2(s) { - logMessage(4 /* Verbose */, s); - } - _log.trace = trace2; - })(log = Debug2.log || (Debug2.log = {})); - const assertionCache = {}; - function getAssertionLevel() { - return currentAssertionLevel; - } - Debug2.getAssertionLevel = getAssertionLevel; - function setAssertionLevel(level) { - const prevAssertionLevel = currentAssertionLevel; - currentAssertionLevel = level; - if (level > prevAssertionLevel) { - for (const key of getOwnKeys(assertionCache)) { - const cachedFunc = assertionCache[key]; - if (cachedFunc !== void 0 && Debug2[key] !== cachedFunc.assertion && level >= cachedFunc.level) { - Debug2[key] = cachedFunc; - assertionCache[key] = void 0; - } - } - } - } - Debug2.setAssertionLevel = setAssertionLevel; - function shouldAssert(level) { - return currentAssertionLevel >= level; - } - Debug2.shouldAssert = shouldAssert; - function shouldAssertFunction(level, name) { - if (!shouldAssert(level)) { - assertionCache[name] = { level, assertion: Debug2[name] }; - Debug2[name] = noop; - return false; - } - return true; - } - function fail(message, stackCrawlMark) { - debugger; - const e = new Error(message ? `Debug Failure. ${message}` : "Debug Failure."); - if (Error.captureStackTrace) { - Error.captureStackTrace(e, stackCrawlMark || fail); - } - throw e; - } - Debug2.fail = fail; - function failBadSyntaxKind(node, message, stackCrawlMark) { - return fail( - `${message || "Unexpected node."}\r -Node ${formatSyntaxKind(node.kind)} was unexpected.`, - stackCrawlMark || failBadSyntaxKind - ); - } - Debug2.failBadSyntaxKind = failBadSyntaxKind; - function assert(expression, message, verboseDebugInfo, stackCrawlMark) { - if (!expression) { - message = message ? `False expression: ${message}` : "False expression."; - if (verboseDebugInfo) { - message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo()); - } - fail(message, stackCrawlMark || assert); - } - } - Debug2.assert = assert; - function assertEqual(a, b, msg, msg2, stackCrawlMark) { - if (a !== b) { - const message = msg ? msg2 ? `${msg} ${msg2}` : msg : ""; - fail(`Expected ${a} === ${b}. ${message}`, stackCrawlMark || assertEqual); - } - } - Debug2.assertEqual = assertEqual; - function assertLessThan(a, b, msg, stackCrawlMark) { - if (a >= b) { - fail(`Expected ${a} < ${b}. ${msg || ""}`, stackCrawlMark || assertLessThan); - } - } - Debug2.assertLessThan = assertLessThan; - function assertLessThanOrEqual(a, b, stackCrawlMark) { - if (a > b) { - fail(`Expected ${a} <= ${b}`, stackCrawlMark || assertLessThanOrEqual); - } - } - Debug2.assertLessThanOrEqual = assertLessThanOrEqual; - function assertGreaterThanOrEqual(a, b, stackCrawlMark) { - if (a < b) { - fail(`Expected ${a} >= ${b}`, stackCrawlMark || assertGreaterThanOrEqual); - } - } - Debug2.assertGreaterThanOrEqual = assertGreaterThanOrEqual; - function assertIsDefined(value, message, stackCrawlMark) { - if (value === void 0 || value === null) { - fail(message, stackCrawlMark || assertIsDefined); - } - } - Debug2.assertIsDefined = assertIsDefined; - function checkDefined(value, message, stackCrawlMark) { - assertIsDefined(value, message, stackCrawlMark || checkDefined); - return value; - } - Debug2.checkDefined = checkDefined; - function assertEachIsDefined(value, message, stackCrawlMark) { - for (const v of value) { - assertIsDefined(v, message, stackCrawlMark || assertEachIsDefined); - } - } - Debug2.assertEachIsDefined = assertEachIsDefined; - function checkEachDefined(value, message, stackCrawlMark) { - assertEachIsDefined(value, message, stackCrawlMark || checkEachDefined); - return value; - } - Debug2.checkEachDefined = checkEachDefined; - function assertNever(member, message = "Illegal value:", stackCrawlMark) { - const detail = typeof member === "object" && hasProperty(member, "kind") && hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member); - return fail(`${message} ${detail}`, stackCrawlMark || assertNever); - } - Debug2.assertNever = assertNever; - function assertEachNode(nodes, test, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertEachNode")) { - assert( - test === void 0 || every(nodes, test), - message || "Unexpected node.", - () => `Node array did not pass test '${getFunctionName(test)}'.`, - stackCrawlMark || assertEachNode - ); - } - } - Debug2.assertEachNode = assertEachNode; - function assertNode(node, test, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertNode")) { - assert( - node !== void 0 && (test === void 0 || test(node)), - message || "Unexpected node.", - () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, - stackCrawlMark || assertNode - ); - } - } - Debug2.assertNode = assertNode; - function assertNotNode(node, test, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertNotNode")) { - assert( - node === void 0 || test === void 0 || !test(node), - message || "Unexpected node.", - () => `Node ${formatSyntaxKind(node.kind)} should not have passed test '${getFunctionName(test)}'.`, - stackCrawlMark || assertNotNode - ); - } - } - Debug2.assertNotNode = assertNotNode; - function assertOptionalNode(node, test, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertOptionalNode")) { - assert( - test === void 0 || node === void 0 || test(node), - message || "Unexpected node.", - () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, - stackCrawlMark || assertOptionalNode - ); - } - } - Debug2.assertOptionalNode = assertOptionalNode; - function assertOptionalToken(node, kind, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertOptionalToken")) { - assert( - kind === void 0 || node === void 0 || node.kind === kind, - message || "Unexpected node.", - () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} was not a '${formatSyntaxKind(kind)}' token.`, - stackCrawlMark || assertOptionalToken - ); - } - } - Debug2.assertOptionalToken = assertOptionalToken; - function assertMissingNode(node, message, stackCrawlMark) { - if (shouldAssertFunction(1 /* Normal */, "assertMissingNode")) { - assert( - node === void 0, - message || "Unexpected node.", - () => `Node ${formatSyntaxKind(node.kind)} was unexpected'.`, - stackCrawlMark || assertMissingNode - ); - } - } - Debug2.assertMissingNode = assertMissingNode; - function type(_value) { - } - Debug2.type = type; - function getFunctionName(func) { - if (typeof func !== "function") { - return ""; - } else if (hasProperty(func, "name")) { - return func.name; - } else { - const text = Function.prototype.toString.call(func); - const match = /^function\s+([\w$]+)\s*\(/.exec(text); - return match ? match[1] : ""; - } - } - Debug2.getFunctionName = getFunctionName; - function formatSymbol(symbol) { - return `{ name: ${unescapeLeadingUnderscores(symbol.escapedName)}; flags: ${formatSymbolFlags(symbol.flags)}; declarations: ${map(symbol.declarations, (node) => formatSyntaxKind(node.kind))} }`; - } - Debug2.formatSymbol = formatSymbol; - function formatEnum(value = 0, enumObject, isFlags) { - const members = getEnumMembers(enumObject); - if (value === 0) { - return members.length > 0 && members[0][0] === 0 ? members[0][1] : "0"; - } - if (isFlags) { - const result = []; - let remainingFlags = value; - for (const [enumValue, enumName] of members) { - if (enumValue > value) { - break; - } - if (enumValue !== 0 && enumValue & value) { - result.push(enumName); - remainingFlags &= ~enumValue; - } - } - if (remainingFlags === 0) { - return result.join("|"); - } - } else { - for (const [enumValue, enumName] of members) { - if (enumValue === value) { - return enumName; - } - } - } - return value.toString(); - } - Debug2.formatEnum = formatEnum; - const enumMemberCache = /* @__PURE__ */ new Map(); - function getEnumMembers(enumObject) { - const existing = enumMemberCache.get(enumObject); - if (existing) { - return existing; - } - const result = []; - for (const name in enumObject) { - const value = enumObject[name]; - if (typeof value === "number") { - result.push([value, name]); - } - } - const sorted = toSorted(result, (x, y) => compareValues(x[0], y[0])); - enumMemberCache.set(enumObject, sorted); - return sorted; - } - function formatSyntaxKind(kind) { - return formatEnum( - kind, - SyntaxKind, - /*isFlags*/ - false - ); - } - Debug2.formatSyntaxKind = formatSyntaxKind; - function formatSnippetKind(kind) { - return formatEnum( - kind, - SnippetKind, - /*isFlags*/ - false - ); - } - Debug2.formatSnippetKind = formatSnippetKind; - function formatScriptKind(kind) { - return formatEnum( - kind, - ScriptKind, - /*isFlags*/ - false - ); - } - Debug2.formatScriptKind = formatScriptKind; - function formatNodeFlags(flags) { - return formatEnum( - flags, - NodeFlags, - /*isFlags*/ - true - ); - } - Debug2.formatNodeFlags = formatNodeFlags; - function formatNodeCheckFlags(flags) { - return formatEnum( - flags, - NodeCheckFlags, - /*isFlags*/ - true - ); - } - Debug2.formatNodeCheckFlags = formatNodeCheckFlags; - function formatModifierFlags(flags) { - return formatEnum( - flags, - ModifierFlags, - /*isFlags*/ - true - ); - } - Debug2.formatModifierFlags = formatModifierFlags; - function formatTransformFlags(flags) { - return formatEnum( - flags, - TransformFlags, - /*isFlags*/ - true - ); - } - Debug2.formatTransformFlags = formatTransformFlags; - function formatEmitFlags(flags) { - return formatEnum( - flags, - EmitFlags, - /*isFlags*/ - true - ); - } - Debug2.formatEmitFlags = formatEmitFlags; - function formatSymbolFlags(flags) { - return formatEnum( - flags, - SymbolFlags, - /*isFlags*/ - true - ); - } - Debug2.formatSymbolFlags = formatSymbolFlags; - function formatTypeFlags(flags) { - return formatEnum( - flags, - TypeFlags, - /*isFlags*/ - true - ); - } - Debug2.formatTypeFlags = formatTypeFlags; - function formatSignatureFlags(flags) { - return formatEnum( - flags, - SignatureFlags, - /*isFlags*/ - true - ); - } - Debug2.formatSignatureFlags = formatSignatureFlags; - function formatObjectFlags(flags) { - return formatEnum( - flags, - ObjectFlags, - /*isFlags*/ - true - ); - } - Debug2.formatObjectFlags = formatObjectFlags; - function formatFlowFlags(flags) { - return formatEnum( - flags, - FlowFlags, - /*isFlags*/ - true - ); - } - Debug2.formatFlowFlags = formatFlowFlags; - function formatRelationComparisonResult(result) { - return formatEnum( - result, - RelationComparisonResult, - /*isFlags*/ - true - ); - } - Debug2.formatRelationComparisonResult = formatRelationComparisonResult; - function formatCheckMode(mode) { - return formatEnum( - mode, - CheckMode, - /*isFlags*/ - true - ); - } - Debug2.formatCheckMode = formatCheckMode; - function formatSignatureCheckMode(mode) { - return formatEnum( - mode, - SignatureCheckMode, - /*isFlags*/ - true - ); - } - Debug2.formatSignatureCheckMode = formatSignatureCheckMode; - function formatTypeFacts(facts) { - return formatEnum( - facts, - TypeFacts, - /*isFlags*/ - true - ); - } - Debug2.formatTypeFacts = formatTypeFacts; - let isDebugInfoEnabled = false; - let flowNodeProto; - function attachFlowNodeDebugInfoWorker(flowNode) { - if (!("__debugFlowFlags" in flowNode)) { - Object.defineProperties(flowNode, { - // for use with vscode-js-debug's new customDescriptionGenerator in launch.json - __tsDebuggerDisplay: { - value() { - const flowHeader = this.flags & 2 /* Start */ ? "FlowStart" : this.flags & 4 /* BranchLabel */ ? "FlowBranchLabel" : this.flags & 8 /* LoopLabel */ ? "FlowLoopLabel" : this.flags & 16 /* Assignment */ ? "FlowAssignment" : this.flags & 32 /* TrueCondition */ ? "FlowTrueCondition" : this.flags & 64 /* FalseCondition */ ? "FlowFalseCondition" : this.flags & 128 /* SwitchClause */ ? "FlowSwitchClause" : this.flags & 256 /* ArrayMutation */ ? "FlowArrayMutation" : this.flags & 512 /* Call */ ? "FlowCall" : this.flags & 1024 /* ReduceLabel */ ? "FlowReduceLabel" : this.flags & 1 /* Unreachable */ ? "FlowUnreachable" : "UnknownFlow"; - const remainingFlags = this.flags & ~(2048 /* Referenced */ - 1); - return `${flowHeader}${remainingFlags ? ` (${formatFlowFlags(remainingFlags)})` : ""}`; - } - }, - __debugFlowFlags: { - get() { - return formatEnum( - this.flags, - FlowFlags, - /*isFlags*/ - true - ); - } - }, - __debugToString: { - value() { - return formatControlFlowGraph(this); - } - } - }); - } - } - function attachFlowNodeDebugInfo(flowNode) { - if (isDebugInfoEnabled) { - if (typeof Object.setPrototypeOf === "function") { - if (!flowNodeProto) { - flowNodeProto = Object.create(Object.prototype); - attachFlowNodeDebugInfoWorker(flowNodeProto); - } - Object.setPrototypeOf(flowNode, flowNodeProto); - } else { - attachFlowNodeDebugInfoWorker(flowNode); - } - } - return flowNode; - } - Debug2.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo; - let nodeArrayProto; - function attachNodeArrayDebugInfoWorker(array) { - if (!("__tsDebuggerDisplay" in array)) { - Object.defineProperties(array, { - __tsDebuggerDisplay: { - value(defaultValue) { - defaultValue = String(defaultValue).replace(/(?:,[\s\w]+:[^,]+)+\]$/, "]"); - return `NodeArray ${defaultValue}`; - } - } - }); - } - } - function attachNodeArrayDebugInfo(array) { - if (isDebugInfoEnabled) { - if (typeof Object.setPrototypeOf === "function") { - if (!nodeArrayProto) { - nodeArrayProto = Object.create(Array.prototype); - attachNodeArrayDebugInfoWorker(nodeArrayProto); - } - Object.setPrototypeOf(array, nodeArrayProto); - } else { - attachNodeArrayDebugInfoWorker(array); - } - } - } - Debug2.attachNodeArrayDebugInfo = attachNodeArrayDebugInfo; - function enableDebugInfo() { - if (isDebugInfoEnabled) return; - const weakTypeTextMap = /* @__PURE__ */ new WeakMap(); - const weakNodeTextMap = /* @__PURE__ */ new WeakMap(); - Object.defineProperties(objectAllocator.getSymbolConstructor().prototype, { - // for use with vscode-js-debug's new customDescriptionGenerator in launch.json - __tsDebuggerDisplay: { - value() { - const symbolHeader = this.flags & 33554432 /* Transient */ ? "TransientSymbol" : "Symbol"; - const remainingSymbolFlags = this.flags & ~33554432 /* Transient */; - return `${symbolHeader} '${symbolName(this)}'${remainingSymbolFlags ? ` (${formatSymbolFlags(remainingSymbolFlags)})` : ""}`; - } - }, - __debugFlags: { - get() { - return formatSymbolFlags(this.flags); - } - } - }); - Object.defineProperties(objectAllocator.getTypeConstructor().prototype, { - // for use with vscode-js-debug's new customDescriptionGenerator in launch.json - __tsDebuggerDisplay: { - value() { - const typeHeader = this.flags & 67359327 /* Intrinsic */ ? `IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName ? ` (${this.debugIntrinsicName})` : ""}` : this.flags & 98304 /* Nullable */ ? "NullableType" : this.flags & 384 /* StringOrNumberLiteral */ ? `LiteralType ${JSON.stringify(this.value)}` : this.flags & 2048 /* BigIntLiteral */ ? `LiteralType ${this.value.negative ? "-" : ""}${this.value.base10Value}n` : this.flags & 8192 /* UniqueESSymbol */ ? "UniqueESSymbolType" : this.flags & 32 /* Enum */ ? "EnumType" : this.flags & 1048576 /* Union */ ? "UnionType" : this.flags & 2097152 /* Intersection */ ? "IntersectionType" : this.flags & 4194304 /* Index */ ? "IndexType" : this.flags & 8388608 /* IndexedAccess */ ? "IndexedAccessType" : this.flags & 16777216 /* Conditional */ ? "ConditionalType" : this.flags & 33554432 /* Substitution */ ? "SubstitutionType" : this.flags & 262144 /* TypeParameter */ ? "TypeParameter" : this.flags & 524288 /* Object */ ? this.objectFlags & 3 /* ClassOrInterface */ ? "InterfaceType" : this.objectFlags & 4 /* Reference */ ? "TypeReference" : this.objectFlags & 8 /* Tuple */ ? "TupleType" : this.objectFlags & 16 /* Anonymous */ ? "AnonymousType" : this.objectFlags & 32 /* Mapped */ ? "MappedType" : this.objectFlags & 1024 /* ReverseMapped */ ? "ReverseMappedType" : this.objectFlags & 256 /* EvolvingArray */ ? "EvolvingArrayType" : "ObjectType" : "Type"; - const remainingObjectFlags = this.flags & 524288 /* Object */ ? this.objectFlags & ~1343 /* ObjectTypeKindMask */ : 0; - return `${typeHeader}${this.symbol ? ` '${symbolName(this.symbol)}'` : ""}${remainingObjectFlags ? ` (${formatObjectFlags(remainingObjectFlags)})` : ""}`; - } - }, - __debugFlags: { - get() { - return formatTypeFlags(this.flags); - } - }, - __debugObjectFlags: { - get() { - return this.flags & 524288 /* Object */ ? formatObjectFlags(this.objectFlags) : ""; - } - }, - __debugTypeToString: { - value() { - let text = weakTypeTextMap.get(this); - if (text === void 0) { - text = this.checker.typeToString(this); - weakTypeTextMap.set(this, text); - } - return text; - } - } - }); - Object.defineProperties(objectAllocator.getSignatureConstructor().prototype, { - __debugFlags: { - get() { - return formatSignatureFlags(this.flags); - } - }, - __debugSignatureToString: { - value() { - var _a; - return (_a = this.checker) == null ? void 0 : _a.signatureToString(this); - } - } - }); - const nodeConstructors = [ - objectAllocator.getNodeConstructor(), - objectAllocator.getIdentifierConstructor(), - objectAllocator.getTokenConstructor(), - objectAllocator.getSourceFileConstructor() - ]; - for (const ctor of nodeConstructors) { - if (!hasProperty(ctor.prototype, "__debugKind")) { - Object.defineProperties(ctor.prototype, { - // for use with vscode-js-debug's new customDescriptionGenerator in launch.json - __tsDebuggerDisplay: { - value() { - const nodeHeader = isGeneratedIdentifier(this) ? "GeneratedIdentifier" : isIdentifier(this) ? `Identifier '${idText(this)}'` : isPrivateIdentifier(this) ? `PrivateIdentifier '${idText(this)}'` : isStringLiteral(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")}` : isNumericLiteral(this) ? `NumericLiteral ${this.text}` : isBigIntLiteral(this) ? `BigIntLiteral ${this.text}n` : isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" : isParameter(this) ? "ParameterDeclaration" : isConstructorDeclaration(this) ? "ConstructorDeclaration" : isGetAccessorDeclaration(this) ? "GetAccessorDeclaration" : isSetAccessorDeclaration(this) ? "SetAccessorDeclaration" : isCallSignatureDeclaration(this) ? "CallSignatureDeclaration" : isConstructSignatureDeclaration(this) ? "ConstructSignatureDeclaration" : isIndexSignatureDeclaration(this) ? "IndexSignatureDeclaration" : isTypePredicateNode(this) ? "TypePredicateNode" : isTypeReferenceNode(this) ? "TypeReferenceNode" : isFunctionTypeNode(this) ? "FunctionTypeNode" : isConstructorTypeNode(this) ? "ConstructorTypeNode" : isTypeQueryNode(this) ? "TypeQueryNode" : isTypeLiteralNode(this) ? "TypeLiteralNode" : isArrayTypeNode(this) ? "ArrayTypeNode" : isTupleTypeNode(this) ? "TupleTypeNode" : isOptionalTypeNode(this) ? "OptionalTypeNode" : isRestTypeNode(this) ? "RestTypeNode" : isUnionTypeNode(this) ? "UnionTypeNode" : isIntersectionTypeNode(this) ? "IntersectionTypeNode" : isConditionalTypeNode(this) ? "ConditionalTypeNode" : isInferTypeNode(this) ? "InferTypeNode" : isParenthesizedTypeNode(this) ? "ParenthesizedTypeNode" : isThisTypeNode(this) ? "ThisTypeNode" : isTypeOperatorNode(this) ? "TypeOperatorNode" : isIndexedAccessTypeNode(this) ? "IndexedAccessTypeNode" : isMappedTypeNode(this) ? "MappedTypeNode" : isLiteralTypeNode(this) ? "LiteralTypeNode" : isNamedTupleMember(this) ? "NamedTupleMember" : isImportTypeNode(this) ? "ImportTypeNode" : formatSyntaxKind(this.kind); - return `${nodeHeader}${this.flags ? ` (${formatNodeFlags(this.flags)})` : ""}`; - } - }, - __debugKind: { - get() { - return formatSyntaxKind(this.kind); - } - }, - __debugNodeFlags: { - get() { - return formatNodeFlags(this.flags); - } - }, - __debugModifierFlags: { - get() { - return formatModifierFlags(getEffectiveModifierFlagsNoCache(this)); - } - }, - __debugTransformFlags: { - get() { - return formatTransformFlags(this.transformFlags); - } - }, - __debugIsParseTreeNode: { - get() { - return isParseTreeNode(this); - } - }, - __debugEmitFlags: { - get() { - return formatEmitFlags(getEmitFlags(this)); - } - }, - __debugGetText: { - value(includeTrivia) { - if (nodeIsSynthesized(this)) return ""; - let text = weakNodeTextMap.get(this); - if (text === void 0) { - const parseNode = getParseTreeNode(this); - const sourceFile = parseNode && getSourceFileOfNode(parseNode); - text = sourceFile ? getSourceTextOfNodeFromSourceFile(sourceFile, parseNode, includeTrivia) : ""; - weakNodeTextMap.set(this, text); - } - return text; - } - } - }); - } - } - isDebugInfoEnabled = true; - } - Debug2.enableDebugInfo = enableDebugInfo; - function formatVariance(varianceFlags) { - const variance = varianceFlags & 7 /* VarianceMask */; - let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : ""; - if (varianceFlags & 8 /* Unmeasurable */) { - result += " (unmeasurable)"; - } else if (varianceFlags & 16 /* Unreliable */) { - result += " (unreliable)"; - } - return result; - } - Debug2.formatVariance = formatVariance; - class DebugTypeMapper { - __debugToString() { - var _a; - type(this); - switch (this.kind) { - case 3 /* Function */: - return ((_a = this.debugInfo) == null ? void 0 : _a.call(this)) || "(function mapper)"; - case 0 /* Simple */: - return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`; - case 1 /* Array */: - return zipWith( - this.sources, - this.targets || map(this.sources, () => "any"), - (s, t) => `${s.__debugTypeToString()} -> ${typeof t === "string" ? t : t.__debugTypeToString()}` - ).join(", "); - case 2 /* Deferred */: - return zipWith( - this.sources, - this.targets, - (s, t) => `${s.__debugTypeToString()} -> ${t().__debugTypeToString()}` - ).join(", "); - case 5 /* Merged */: - case 4 /* Composite */: - return `m1: ${this.mapper1.__debugToString().split("\n").join("\n ")} -m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`; - default: - return assertNever(this); - } - } - } - Debug2.DebugTypeMapper = DebugTypeMapper; - function attachDebugPrototypeIfDebug(mapper) { - if (Debug2.isDebugging) { - return Object.setPrototypeOf(mapper, DebugTypeMapper.prototype); - } - return mapper; - } - Debug2.attachDebugPrototypeIfDebug = attachDebugPrototypeIfDebug; - function printControlFlowGraph(flowNode) { - return console.log(formatControlFlowGraph(flowNode)); - } - Debug2.printControlFlowGraph = printControlFlowGraph; - function formatControlFlowGraph(flowNode) { - let nextDebugFlowId = -1; - function getDebugFlowNodeId(f) { - if (!f.id) { - f.id = nextDebugFlowId; - nextDebugFlowId--; - } - return f.id; - } - let BoxCharacter; - ((BoxCharacter2) => { - BoxCharacter2["lr"] = "\u2500"; - BoxCharacter2["ud"] = "\u2502"; - BoxCharacter2["dr"] = "\u256D"; - BoxCharacter2["dl"] = "\u256E"; - BoxCharacter2["ul"] = "\u256F"; - BoxCharacter2["ur"] = "\u2570"; - BoxCharacter2["udr"] = "\u251C"; - BoxCharacter2["udl"] = "\u2524"; - BoxCharacter2["dlr"] = "\u252C"; - BoxCharacter2["ulr"] = "\u2534"; - BoxCharacter2["udlr"] = "\u256B"; - })(BoxCharacter || (BoxCharacter = {})); - let Connection; - ((Connection2) => { - Connection2[Connection2["None"] = 0] = "None"; - Connection2[Connection2["Up"] = 1] = "Up"; - Connection2[Connection2["Down"] = 2] = "Down"; - Connection2[Connection2["Left"] = 4] = "Left"; - Connection2[Connection2["Right"] = 8] = "Right"; - Connection2[Connection2["UpDown"] = 3] = "UpDown"; - Connection2[Connection2["LeftRight"] = 12] = "LeftRight"; - Connection2[Connection2["UpLeft"] = 5] = "UpLeft"; - Connection2[Connection2["UpRight"] = 9] = "UpRight"; - Connection2[Connection2["DownLeft"] = 6] = "DownLeft"; - Connection2[Connection2["DownRight"] = 10] = "DownRight"; - Connection2[Connection2["UpDownLeft"] = 7] = "UpDownLeft"; - Connection2[Connection2["UpDownRight"] = 11] = "UpDownRight"; - Connection2[Connection2["UpLeftRight"] = 13] = "UpLeftRight"; - Connection2[Connection2["DownLeftRight"] = 14] = "DownLeftRight"; - Connection2[Connection2["UpDownLeftRight"] = 15] = "UpDownLeftRight"; - Connection2[Connection2["NoChildren"] = 16] = "NoChildren"; - })(Connection || (Connection = {})); - const hasAntecedentFlags = 16 /* Assignment */ | 96 /* Condition */ | 128 /* SwitchClause */ | 256 /* ArrayMutation */ | 512 /* Call */ | 1024 /* ReduceLabel */; - const hasNodeFlags = 2 /* Start */ | 16 /* Assignment */ | 512 /* Call */ | 96 /* Condition */ | 256 /* ArrayMutation */; - const links = /* @__PURE__ */ Object.create( - /*o*/ - null - ); - const nodes = []; - const edges = []; - const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set()); - for (const node of nodes) { - node.text = renderFlowNode(node.flowNode, node.circular); - computeLevel(node); - } - const height = computeHeight(root); - const columnWidths = computeColumnWidths(height); - computeLanes(root, 0); - return renderGraph(); - function isFlowSwitchClause(f) { - return !!(f.flags & 128 /* SwitchClause */); - } - function hasAntecedents(f) { - return !!(f.flags & 12 /* Label */) && !!f.antecedent; - } - function hasAntecedent(f) { - return !!(f.flags & hasAntecedentFlags); - } - function hasNode(f) { - return !!(f.flags & hasNodeFlags); - } - function getChildren(node) { - const children = []; - for (const edge of node.edges) { - if (edge.source === node) { - children.push(edge.target); - } - } - return children; - } - function getParents(node) { - const parents = []; - for (const edge of node.edges) { - if (edge.target === node) { - parents.push(edge.source); - } - } - return parents; - } - function buildGraphNode(flowNode2, seen) { - const id = getDebugFlowNodeId(flowNode2); - let graphNode = links[id]; - if (graphNode && seen.has(flowNode2)) { - graphNode.circular = true; - graphNode = { - id: -1, - flowNode: flowNode2, - edges: [], - text: "", - lane: -1, - endLane: -1, - level: -1, - circular: "circularity" - }; - nodes.push(graphNode); - return graphNode; - } - seen.add(flowNode2); - if (!graphNode) { - links[id] = graphNode = { id, flowNode: flowNode2, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: false }; - nodes.push(graphNode); - if (hasAntecedents(flowNode2)) { - for (const antecedent of flowNode2.antecedent) { - buildGraphEdge(graphNode, antecedent, seen); - } - } else if (hasAntecedent(flowNode2)) { - buildGraphEdge(graphNode, flowNode2.antecedent, seen); - } - } - seen.delete(flowNode2); - return graphNode; - } - function buildGraphEdge(source, antecedent, seen) { - const target = buildGraphNode(antecedent, seen); - const edge = { source, target }; - edges.push(edge); - source.edges.push(edge); - target.edges.push(edge); - } - function computeLevel(node) { - if (node.level !== -1) { - return node.level; - } - let level = 0; - for (const parent of getParents(node)) { - level = Math.max(level, computeLevel(parent) + 1); - } - return node.level = level; - } - function computeHeight(node) { - let height2 = 0; - for (const child of getChildren(node)) { - height2 = Math.max(height2, computeHeight(child)); - } - return height2 + 1; - } - function computeColumnWidths(height2) { - const columns = fill(Array(height2), 0); - for (const node of nodes) { - columns[node.level] = Math.max(columns[node.level], node.text.length); - } - return columns; - } - function computeLanes(node, lane) { - if (node.lane === -1) { - node.lane = lane; - node.endLane = lane; - const children = getChildren(node); - for (let i = 0; i < children.length; i++) { - if (i > 0) lane++; - const child = children[i]; - computeLanes(child, lane); - if (child.endLane > node.endLane) { - lane = child.endLane; - } - } - node.endLane = lane; - } - } - function getHeader2(flags) { - if (flags & 2 /* Start */) return "Start"; - if (flags & 4 /* BranchLabel */) return "Branch"; - if (flags & 8 /* LoopLabel */) return "Loop"; - if (flags & 16 /* Assignment */) return "Assignment"; - if (flags & 32 /* TrueCondition */) return "True"; - if (flags & 64 /* FalseCondition */) return "False"; - if (flags & 128 /* SwitchClause */) return "SwitchClause"; - if (flags & 256 /* ArrayMutation */) return "ArrayMutation"; - if (flags & 512 /* Call */) return "Call"; - if (flags & 1024 /* ReduceLabel */) return "ReduceLabel"; - if (flags & 1 /* Unreachable */) return "Unreachable"; - throw new Error(); - } - function getNodeText(node) { - const sourceFile = getSourceFileOfNode(node); - return getSourceTextOfNodeFromSourceFile( - sourceFile, - node, - /*includeTrivia*/ - false - ); - } - function renderFlowNode(flowNode2, circular) { - let text = getHeader2(flowNode2.flags); - if (circular) { - text = `${text}#${getDebugFlowNodeId(flowNode2)}`; - } - if (isFlowSwitchClause(flowNode2)) { - const clauses = []; - const { switchStatement, clauseStart, clauseEnd } = flowNode2.node; - for (let i = clauseStart; i < clauseEnd; i++) { - const clause = switchStatement.caseBlock.clauses[i]; - if (isDefaultClause(clause)) { - clauses.push("default"); - } else { - clauses.push(getNodeText(clause.expression)); - } - } - text += ` (${clauses.join(", ")})`; - } else if (hasNode(flowNode2)) { - if (flowNode2.node) { - text += ` (${getNodeText(flowNode2.node)})`; - } - } - return circular === "circularity" ? `Circular(${text})` : text; - } - function renderGraph() { - const columnCount = columnWidths.length; - const laneCount = maxBy(nodes, 0, (n) => n.lane) + 1; - const lanes = fill(Array(laneCount), ""); - const grid = columnWidths.map(() => Array(laneCount)); - const connectors = columnWidths.map(() => fill(Array(laneCount), 0)); - for (const node of nodes) { - grid[node.level][node.lane] = node; - const children = getChildren(node); - for (let i = 0; i < children.length; i++) { - const child = children[i]; - let connector = 8 /* Right */; - if (child.lane === node.lane) connector |= 4 /* Left */; - if (i > 0) connector |= 1 /* Up */; - if (i < children.length - 1) connector |= 2 /* Down */; - connectors[node.level][child.lane] |= connector; - } - if (children.length === 0) { - connectors[node.level][node.lane] |= 16 /* NoChildren */; - } - const parents = getParents(node); - for (let i = 0; i < parents.length; i++) { - const parent = parents[i]; - let connector = 4 /* Left */; - if (i > 0) connector |= 1 /* Up */; - if (i < parents.length - 1) connector |= 2 /* Down */; - connectors[node.level - 1][parent.lane] |= connector; - } - } - for (let column = 0; column < columnCount; column++) { - for (let lane = 0; lane < laneCount; lane++) { - const left = column > 0 ? connectors[column - 1][lane] : 0; - const above = lane > 0 ? connectors[column][lane - 1] : 0; - let connector = connectors[column][lane]; - if (!connector) { - if (left & 8 /* Right */) connector |= 12 /* LeftRight */; - if (above & 2 /* Down */) connector |= 3 /* UpDown */; - connectors[column][lane] = connector; - } - } - } - for (let column = 0; column < columnCount; column++) { - for (let lane = 0; lane < lanes.length; lane++) { - const connector = connectors[column][lane]; - const fill2 = connector & 4 /* Left */ ? "\u2500" /* lr */ : " "; - const node = grid[column][lane]; - if (!node) { - if (column < columnCount - 1) { - writeLane(lane, repeat(fill2, columnWidths[column] + 1)); - } - } else { - writeLane(lane, node.text); - if (column < columnCount - 1) { - writeLane(lane, " "); - writeLane(lane, repeat(fill2, columnWidths[column] - node.text.length)); - } - } - writeLane(lane, getBoxCharacter(connector)); - writeLane(lane, connector & 8 /* Right */ && column < columnCount - 1 && !grid[column + 1][lane] ? "\u2500" /* lr */ : " "); - } - } - return ` -${lanes.join("\n")} -`; - function writeLane(lane, text) { - lanes[lane] += text; - } - } - function getBoxCharacter(connector) { - switch (connector) { - case 3 /* UpDown */: - return "\u2502" /* ud */; - case 12 /* LeftRight */: - return "\u2500" /* lr */; - case 5 /* UpLeft */: - return "\u256F" /* ul */; - case 9 /* UpRight */: - return "\u2570" /* ur */; - case 6 /* DownLeft */: - return "\u256E" /* dl */; - case 10 /* DownRight */: - return "\u256D" /* dr */; - case 7 /* UpDownLeft */: - return "\u2524" /* udl */; - case 11 /* UpDownRight */: - return "\u251C" /* udr */; - case 13 /* UpLeftRight */: - return "\u2534" /* ulr */; - case 14 /* DownLeftRight */: - return "\u252C" /* dlr */; - case 15 /* UpDownLeftRight */: - return "\u256B" /* udlr */; - } - return " "; - } - function fill(array, value) { - if (array.fill) { - array.fill(value); - } else { - for (let i = 0; i < array.length; i++) { - array[i] = value; - } - } - return array; - } - function repeat(ch, length2) { - if (ch.repeat) { - return length2 > 0 ? ch.repeat(length2) : ""; - } - let s = ""; - while (s.length < length2) { - s += ch; - } - return s; - } - } - Debug2.formatControlFlowGraph = formatControlFlowGraph; -})(Debug || (Debug = {})); - -// src/compiler/semver.ts -var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; -var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; -var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; -var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; -var buildPartRegExp = /^[a-z0-9-]+$/i; -var numericIdentifierRegExp = /^(?:0|[1-9]\d*)$/; -var _Version = class _Version { - constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { - if (typeof major === "string") { - const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); - ({ major, minor, patch, prerelease, build: build2 } = result); - } - Debug.assert(major >= 0, "Invalid argument: major"); - Debug.assert(minor >= 0, "Invalid argument: minor"); - Debug.assert(patch >= 0, "Invalid argument: patch"); - const prereleaseArray = prerelease ? isArray(prerelease) ? prerelease : prerelease.split(".") : emptyArray; - const buildArray = build2 ? isArray(build2) ? build2 : build2.split(".") : emptyArray; - Debug.assert(every(prereleaseArray, (s) => prereleasePartRegExp.test(s)), "Invalid argument: prerelease"); - Debug.assert(every(buildArray, (s) => buildPartRegExp.test(s)), "Invalid argument: build"); - this.major = major; - this.minor = minor; - this.patch = patch; - this.prerelease = prereleaseArray; - this.build = buildArray; - } - static tryParse(text) { - const result = tryParseComponents(text); - if (!result) return void 0; - const { major, minor, patch, prerelease, build: build2 } = result; - return new _Version(major, minor, patch, prerelease, build2); - } - compareTo(other) { - if (this === other) return 0 /* EqualTo */; - if (other === void 0) return 1 /* GreaterThan */; - return compareValues(this.major, other.major) || compareValues(this.minor, other.minor) || compareValues(this.patch, other.patch) || comparePrereleaseIdentifiers(this.prerelease, other.prerelease); - } - increment(field) { - switch (field) { - case "major": - return new _Version(this.major + 1, 0, 0); - case "minor": - return new _Version(this.major, this.minor + 1, 0); - case "patch": - return new _Version(this.major, this.minor, this.patch + 1); - default: - return Debug.assertNever(field); - } - } - with(fields) { - const { - major = this.major, - minor = this.minor, - patch = this.patch, - prerelease = this.prerelease, - build: build2 = this.build - } = fields; - return new _Version(major, minor, patch, prerelease, build2); - } - toString() { - let result = `${this.major}.${this.minor}.${this.patch}`; - if (some(this.prerelease)) result += `-${this.prerelease.join(".")}`; - if (some(this.build)) result += `+${this.build.join(".")}`; - return result; - } -}; -_Version.zero = new _Version(0, 0, 0, ["0"]); -var Version = _Version; -function tryParseComponents(text) { - const match = versionRegExp.exec(text); - if (!match) return void 0; - const [, major, minor = "0", patch = "0", prerelease = "", build2 = ""] = match; - if (prerelease && !prereleaseRegExp.test(prerelease)) return void 0; - if (build2 && !buildRegExp.test(build2)) return void 0; - return { - major: parseInt(major, 10), - minor: parseInt(minor, 10), - patch: parseInt(patch, 10), - prerelease, - build: build2 - }; -} -function comparePrereleaseIdentifiers(left, right) { - if (left === right) return 0 /* EqualTo */; - if (left.length === 0) return right.length === 0 ? 0 /* EqualTo */ : 1 /* GreaterThan */; - if (right.length === 0) return -1 /* LessThan */; - const length2 = Math.min(left.length, right.length); - for (let i = 0; i < length2; i++) { - const leftIdentifier = left[i]; - const rightIdentifier = right[i]; - if (leftIdentifier === rightIdentifier) continue; - const leftIsNumeric = numericIdentifierRegExp.test(leftIdentifier); - const rightIsNumeric = numericIdentifierRegExp.test(rightIdentifier); - if (leftIsNumeric || rightIsNumeric) { - if (leftIsNumeric !== rightIsNumeric) return leftIsNumeric ? -1 /* LessThan */ : 1 /* GreaterThan */; - const result = compareValues(+leftIdentifier, +rightIdentifier); - if (result) return result; - } else { - const result = compareStringsCaseSensitive(leftIdentifier, rightIdentifier); - if (result) return result; - } - } - return compareValues(left.length, right.length); -} -var VersionRange = class _VersionRange { - constructor(spec) { - this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; - } - static tryParse(text) { - const sets = parseRange(text); - if (sets) { - const range = new _VersionRange(""); - range._alternatives = sets; - return range; - } - return void 0; - } - /** - * Tests whether a version matches the range. This is equivalent to `satisfies(version, range, { includePrerelease: true })`. - * in `node-semver`. - */ - test(version2) { - if (typeof version2 === "string") version2 = new Version(version2); - return testDisjunction(version2, this._alternatives); - } - toString() { - return formatDisjunction(this._alternatives); - } -}; -var logicalOrRegExp = /\|\|/; -var whitespaceRegExp = /\s+/; -var partialRegExp = /^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; -var hyphenRegExp = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i; -var rangeRegExp = /^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i; -function parseRange(text) { - const alternatives = []; - for (let range of text.trim().split(logicalOrRegExp)) { - if (!range) continue; - const comparators = []; - range = range.trim(); - const match = hyphenRegExp.exec(range); - if (match) { - if (!parseHyphen(match[1], match[2], comparators)) return void 0; - } else { - for (const simple of range.split(whitespaceRegExp)) { - const match2 = rangeRegExp.exec(simple.trim()); - if (!match2 || !parseComparator(match2[1], match2[2], comparators)) return void 0; - } - } - alternatives.push(comparators); - } - return alternatives; -} -function parsePartial(text) { - const match = partialRegExp.exec(text); - if (!match) return void 0; - const [, major, minor = "*", patch = "*", prerelease, build2] = match; - const version2 = new Version( - isWildcard(major) ? 0 : parseInt(major, 10), - isWildcard(major) || isWildcard(minor) ? 0 : parseInt(minor, 10), - isWildcard(major) || isWildcard(minor) || isWildcard(patch) ? 0 : parseInt(patch, 10), - prerelease, - build2 - ); - return { version: version2, major, minor, patch }; -} -function parseHyphen(left, right, comparators) { - const leftResult = parsePartial(left); - if (!leftResult) return false; - const rightResult = parsePartial(right); - if (!rightResult) return false; - if (!isWildcard(leftResult.major)) { - comparators.push(createComparator(">=", leftResult.version)); - } - if (!isWildcard(rightResult.major)) { - comparators.push( - isWildcard(rightResult.minor) ? createComparator("<", rightResult.version.increment("major")) : isWildcard(rightResult.patch) ? createComparator("<", rightResult.version.increment("minor")) : createComparator("<=", rightResult.version) - ); - } - return true; -} -function parseComparator(operator, text, comparators) { - const result = parsePartial(text); - if (!result) return false; - const { version: version2, major, minor, patch } = result; - if (!isWildcard(major)) { - switch (operator) { - case "~": - comparators.push(createComparator(">=", version2)); - comparators.push(createComparator( - "<", - version2.increment( - isWildcard(minor) ? "major" : "minor" - ) - )); - break; - case "^": - comparators.push(createComparator(">=", version2)); - comparators.push(createComparator( - "<", - version2.increment( - version2.major > 0 || isWildcard(minor) ? "major" : version2.minor > 0 || isWildcard(patch) ? "minor" : "patch" - ) - )); - break; - case "<": - case ">=": - comparators.push( - isWildcard(minor) || isWildcard(patch) ? createComparator(operator, version2.with({ prerelease: "0" })) : createComparator(operator, version2) - ); - break; - case "<=": - case ">": - comparators.push( - isWildcard(minor) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("major").with({ prerelease: "0" })) : isWildcard(patch) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("minor").with({ prerelease: "0" })) : createComparator(operator, version2) - ); - break; - case "=": - case void 0: - if (isWildcard(minor) || isWildcard(patch)) { - comparators.push(createComparator(">=", version2.with({ prerelease: "0" }))); - comparators.push(createComparator("<", version2.increment(isWildcard(minor) ? "major" : "minor").with({ prerelease: "0" }))); - } else { - comparators.push(createComparator("=", version2)); - } - break; - default: - return false; - } - } else if (operator === "<" || operator === ">") { - comparators.push(createComparator("<", Version.zero)); - } - return true; -} -function isWildcard(part) { - return part === "*" || part === "x" || part === "X"; -} -function createComparator(operator, operand) { - return { operator, operand }; -} -function testDisjunction(version2, alternatives) { - if (alternatives.length === 0) return true; - for (const alternative of alternatives) { - if (testAlternative(version2, alternative)) return true; - } - return false; -} -function testAlternative(version2, comparators) { - for (const comparator of comparators) { - if (!testComparator(version2, comparator.operator, comparator.operand)) return false; - } - return true; -} -function testComparator(version2, operator, operand) { - const cmp = version2.compareTo(operand); - switch (operator) { - case "<": - return cmp < 0; - case "<=": - return cmp <= 0; - case ">": - return cmp > 0; - case ">=": - return cmp >= 0; - case "=": - return cmp === 0; - default: - return Debug.assertNever(operator); - } -} -function formatDisjunction(alternatives) { - return map(alternatives, formatAlternative).join(" || ") || "*"; -} -function formatAlternative(comparators) { - return map(comparators, formatComparator).join(" "); -} -function formatComparator(comparator) { - return `${comparator.operator}${comparator.operand}`; -} - -// src/compiler/performanceCore.ts -function tryGetPerformance() { - if (isNodeLikeSystem()) { - try { - const { performance: performance2 } = require("perf_hooks"); - if (performance2) { - return { - shouldWriteNativeEvents: false, - performance: performance2 - }; - } - } catch { - } - } - if (typeof performance === "object") { - return { - shouldWriteNativeEvents: true, - performance - }; - } - return void 0; -} -function tryGetPerformanceHooks() { - const p = tryGetPerformance(); - if (!p) return void 0; - const { shouldWriteNativeEvents, performance: performance2 } = p; - const hooks = { - shouldWriteNativeEvents, - performance: void 0, - performanceTime: void 0 - }; - if (typeof performance2.timeOrigin === "number" && typeof performance2.now === "function") { - hooks.performanceTime = performance2; - } - if (hooks.performanceTime && typeof performance2.mark === "function" && typeof performance2.measure === "function" && typeof performance2.clearMarks === "function" && typeof performance2.clearMeasures === "function") { - hooks.performance = performance2; - } - return hooks; -} -var nativePerformanceHooks = tryGetPerformanceHooks(); -var nativePerformanceTime = nativePerformanceHooks == null ? void 0 : nativePerformanceHooks.performanceTime; -function tryGetNativePerformanceHooks() { - return nativePerformanceHooks; -} -var timestamp = nativePerformanceTime ? () => nativePerformanceTime.now() : Date.now; - -// src/compiler/performance.ts -var perfHooks; -var performanceImpl; -function createTimerIf(condition, measureName, startMarkName, endMarkName) { - return condition ? createTimer(measureName, startMarkName, endMarkName) : nullTimer; -} -function createTimer(measureName, startMarkName, endMarkName) { - let enterCount = 0; - return { - enter, - exit - }; - function enter() { - if (++enterCount === 1) { - mark(startMarkName); - } - } - function exit() { - if (--enterCount === 0) { - mark(endMarkName); - measure(measureName, startMarkName, endMarkName); - } else if (enterCount < 0) { - Debug.fail("enter/exit count does not match."); - } - } -} -var nullTimer = { enter: noop, exit: noop }; -var enabled = false; -var timeorigin = timestamp(); -var marks = /* @__PURE__ */ new Map(); -var counts = /* @__PURE__ */ new Map(); -var durations = /* @__PURE__ */ new Map(); -function mark(markName) { - if (enabled) { - const count = counts.get(markName) ?? 0; - counts.set(markName, count + 1); - marks.set(markName, timestamp()); - performanceImpl == null ? void 0 : performanceImpl.mark(markName); - if (typeof onProfilerEvent === "function") { - onProfilerEvent(markName); - } - } -} -function measure(measureName, startMarkName, endMarkName) { - if (enabled) { - const end = (endMarkName !== void 0 ? marks.get(endMarkName) : void 0) ?? timestamp(); - const start = (startMarkName !== void 0 ? marks.get(startMarkName) : void 0) ?? timeorigin; - const previousDuration = durations.get(measureName) || 0; - durations.set(measureName, previousDuration + (end - start)); - performanceImpl == null ? void 0 : performanceImpl.measure(measureName, startMarkName, endMarkName); - } -} -function getCount(markName) { - return counts.get(markName) || 0; -} -function getDuration(measureName) { - return durations.get(measureName) || 0; -} -function forEachMeasure(cb) { - durations.forEach((duration, measureName) => cb(measureName, duration)); -} -function forEachMark(cb) { - marks.forEach((_time, markName) => cb(markName)); -} -function clearMeasures(name) { - if (name !== void 0) durations.delete(name); - else durations.clear(); - performanceImpl == null ? void 0 : performanceImpl.clearMeasures(name); -} -function clearMarks(name) { - if (name !== void 0) { - counts.delete(name); - marks.delete(name); - } else { - counts.clear(); - marks.clear(); - } - performanceImpl == null ? void 0 : performanceImpl.clearMarks(name); -} -function isEnabled() { - return enabled; -} -function enable(system = sys) { - var _a; - if (!enabled) { - enabled = true; - perfHooks || (perfHooks = tryGetNativePerformanceHooks()); - if (perfHooks == null ? void 0 : perfHooks.performance) { - timeorigin = perfHooks.performance.timeOrigin; - if (perfHooks.shouldWriteNativeEvents || ((_a = system == null ? void 0 : system.cpuProfilingEnabled) == null ? void 0 : _a.call(system)) || (system == null ? void 0 : system.debugMode)) { - performanceImpl = perfHooks.performance; - } - } - } - return true; -} -function disable() { - if (enabled) { - marks.clear(); - counts.clear(); - durations.clear(); - performanceImpl = void 0; - enabled = false; - } -} - -// src/compiler/tracing.ts -var tracing; -var tracingEnabled; -((tracingEnabled2) => { - let fs; - let traceCount = 0; - let traceFd = 0; - let mode; - const typeCatalog = []; - let legendPath; - const legend = []; - function startTracing2(tracingMode, traceDir, configFilePath) { - Debug.assert(!tracing, "Tracing already started"); - if (fs === void 0) { - try { - fs = require("fs"); - } catch (e) { - throw new Error(`tracing requires having fs -(original error: ${e.message || e})`); - } - } - mode = tracingMode; - typeCatalog.length = 0; - if (legendPath === void 0) { - legendPath = combinePaths(traceDir, "legend.json"); - } - if (!fs.existsSync(traceDir)) { - fs.mkdirSync(traceDir, { recursive: true }); - } - const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``; - const tracePath = combinePaths(traceDir, `trace${countPart}.json`); - const typesPath = combinePaths(traceDir, `types${countPart}.json`); - legend.push({ - configFilePath, - tracePath, - typesPath - }); - traceFd = fs.openSync(tracePath, "w"); - tracing = tracingEnabled2; - const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 }; - fs.writeSync( - traceFd, - "[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(",\n") - ); - } - tracingEnabled2.startTracing = startTracing2; - function stopTracing() { - Debug.assert(tracing, "Tracing is not in progress"); - Debug.assert(!!typeCatalog.length === (mode !== "server")); - fs.writeSync(traceFd, ` -] -`); - fs.closeSync(traceFd); - tracing = void 0; - if (typeCatalog.length) { - dumpTypes(typeCatalog); - } else { - legend[legend.length - 1].typesPath = void 0; - } - } - tracingEnabled2.stopTracing = stopTracing; - function recordType(type) { - if (mode !== "server") { - typeCatalog.push(type); - } - } - tracingEnabled2.recordType = recordType; - let Phase; - ((Phase2) => { - Phase2["Parse"] = "parse"; - Phase2["Program"] = "program"; - Phase2["Bind"] = "bind"; - Phase2["Check"] = "check"; - Phase2["CheckTypes"] = "checkTypes"; - Phase2["Emit"] = "emit"; - Phase2["Session"] = "session"; - })(Phase = tracingEnabled2.Phase || (tracingEnabled2.Phase = {})); - function instant(phase, name, args) { - writeEvent("I", phase, name, args, `"s":"g"`); - } - tracingEnabled2.instant = instant; - const eventStack = []; - function push(phase, name, args, separateBeginAndEnd = false) { - if (separateBeginAndEnd) { - writeEvent("B", phase, name, args); - } - eventStack.push({ phase, name, args, time: 1e3 * timestamp(), separateBeginAndEnd }); - } - tracingEnabled2.push = push; - function pop(results) { - Debug.assert(eventStack.length > 0); - writeStackEvent(eventStack.length - 1, 1e3 * timestamp(), results); - eventStack.length--; - } - tracingEnabled2.pop = pop; - function popAll() { - const endTime = 1e3 * timestamp(); - for (let i = eventStack.length - 1; i >= 0; i--) { - writeStackEvent(i, endTime); - } - eventStack.length = 0; - } - tracingEnabled2.popAll = popAll; - const sampleInterval = 1e3 * 10; - function writeStackEvent(index, endTime, results) { - const { phase, name, args, time, separateBeginAndEnd } = eventStack[index]; - if (separateBeginAndEnd) { - Debug.assert(!results, "`results` are not supported for events with `separateBeginAndEnd`"); - writeEvent( - "E", - phase, - name, - args, - /*extras*/ - void 0, - endTime - ); - } else if (sampleInterval - time % sampleInterval <= endTime - time) { - writeEvent("X", phase, name, { ...args, results }, `"dur":${endTime - time}`, time); - } - } - function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) { - if (mode === "server" && phase === "checkTypes" /* CheckTypes */) return; - mark("beginTracing"); - fs.writeSync(traceFd, `, -{"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`); - if (extras) fs.writeSync(traceFd, `,${extras}`); - if (args) fs.writeSync(traceFd, `,"args":${JSON.stringify(args)}`); - fs.writeSync(traceFd, `}`); - mark("endTracing"); - measure("Tracing", "beginTracing", "endTracing"); - } - function getLocation(node) { - const file = getSourceFileOfNode(node); - return !file ? void 0 : { - path: file.path, - start: indexFromOne(getLineAndCharacterOfPosition(file, node.pos)), - end: indexFromOne(getLineAndCharacterOfPosition(file, node.end)) - }; - function indexFromOne(lc) { - return { - line: lc.line + 1, - character: lc.character + 1 - }; - } - } - function dumpTypes(types) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s; - mark("beginDumpTypes"); - const typesPath = legend[legend.length - 1].typesPath; - const typesFd = fs.openSync(typesPath, "w"); - const recursionIdentityMap = /* @__PURE__ */ new Map(); - fs.writeSync(typesFd, "["); - const numTypes = types.length; - for (let i = 0; i < numTypes; i++) { - const type = types[i]; - const objectFlags = type.objectFlags; - const symbol = type.aliasSymbol ?? type.symbol; - let display; - if (objectFlags & 16 /* Anonymous */ | type.flags & 2944 /* Literal */) { - try { - display = (_a = type.checker) == null ? void 0 : _a.typeToString(type); - } catch { - display = void 0; - } - } - let indexedAccessProperties = {}; - if (type.flags & 8388608 /* IndexedAccess */) { - const indexedAccessType = type; - indexedAccessProperties = { - indexedAccessObjectType: (_b = indexedAccessType.objectType) == null ? void 0 : _b.id, - indexedAccessIndexType: (_c = indexedAccessType.indexType) == null ? void 0 : _c.id - }; - } - let referenceProperties = {}; - if (objectFlags & 4 /* Reference */) { - const referenceType = type; - referenceProperties = { - instantiatedType: (_d = referenceType.target) == null ? void 0 : _d.id, - typeArguments: (_e = referenceType.resolvedTypeArguments) == null ? void 0 : _e.map((t) => t.id), - referenceLocation: getLocation(referenceType.node) - }; - } - let conditionalProperties = {}; - if (type.flags & 16777216 /* Conditional */) { - const conditionalType = type; - conditionalProperties = { - conditionalCheckType: (_f = conditionalType.checkType) == null ? void 0 : _f.id, - conditionalExtendsType: (_g = conditionalType.extendsType) == null ? void 0 : _g.id, - conditionalTrueType: ((_h = conditionalType.resolvedTrueType) == null ? void 0 : _h.id) ?? -1, - conditionalFalseType: ((_i = conditionalType.resolvedFalseType) == null ? void 0 : _i.id) ?? -1 - }; - } - let substitutionProperties = {}; - if (type.flags & 33554432 /* Substitution */) { - const substitutionType = type; - substitutionProperties = { - substitutionBaseType: (_j = substitutionType.baseType) == null ? void 0 : _j.id, - constraintType: (_k = substitutionType.constraint) == null ? void 0 : _k.id - }; - } - let reverseMappedProperties = {}; - if (objectFlags & 1024 /* ReverseMapped */) { - const reverseMappedType = type; - reverseMappedProperties = { - reverseMappedSourceType: (_l = reverseMappedType.source) == null ? void 0 : _l.id, - reverseMappedMappedType: (_m = reverseMappedType.mappedType) == null ? void 0 : _m.id, - reverseMappedConstraintType: (_n = reverseMappedType.constraintType) == null ? void 0 : _n.id - }; - } - let evolvingArrayProperties = {}; - if (objectFlags & 256 /* EvolvingArray */) { - const evolvingArrayType = type; - evolvingArrayProperties = { - evolvingArrayElementType: evolvingArrayType.elementType.id, - evolvingArrayFinalType: (_o = evolvingArrayType.finalArrayType) == null ? void 0 : _o.id - }; - } - let recursionToken; - const recursionIdentity = type.checker.getRecursionIdentity(type); - if (recursionIdentity) { - recursionToken = recursionIdentityMap.get(recursionIdentity); - if (!recursionToken) { - recursionToken = recursionIdentityMap.size; - recursionIdentityMap.set(recursionIdentity, recursionToken); - } - } - const descriptor = { - id: type.id, - intrinsicName: type.intrinsicName, - symbolName: (symbol == null ? void 0 : symbol.escapedName) && unescapeLeadingUnderscores(symbol.escapedName), - recursionId: recursionToken, - isTuple: objectFlags & 8 /* Tuple */ ? true : void 0, - unionTypes: type.flags & 1048576 /* Union */ ? (_p = type.types) == null ? void 0 : _p.map((t) => t.id) : void 0, - intersectionTypes: type.flags & 2097152 /* Intersection */ ? type.types.map((t) => t.id) : void 0, - aliasTypeArguments: (_q = type.aliasTypeArguments) == null ? void 0 : _q.map((t) => t.id), - keyofType: type.flags & 4194304 /* Index */ ? (_r = type.type) == null ? void 0 : _r.id : void 0, - ...indexedAccessProperties, - ...referenceProperties, - ...conditionalProperties, - ...substitutionProperties, - ...reverseMappedProperties, - ...evolvingArrayProperties, - destructuringPattern: getLocation(type.pattern), - firstDeclaration: getLocation((_s = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _s[0]), - flags: Debug.formatTypeFlags(type.flags).split("|"), - display - }; - fs.writeSync(typesFd, JSON.stringify(descriptor)); - if (i < numTypes - 1) { - fs.writeSync(typesFd, ",\n"); - } - } - fs.writeSync(typesFd, "]\n"); - fs.closeSync(typesFd); - mark("endDumpTypes"); - measure("Dump types", "beginDumpTypes", "endDumpTypes"); - } - function dumpLegend() { - if (!legendPath) { - return; - } - fs.writeFileSync(legendPath, JSON.stringify(legend)); - } - tracingEnabled2.dumpLegend = dumpLegend; -})(tracingEnabled || (tracingEnabled = {})); -var startTracing = tracingEnabled.startTracing; -var dumpTracingLegend = tracingEnabled.dumpLegend; - -// src/compiler/types.ts -var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { - SyntaxKind4[SyntaxKind4["Unknown"] = 0] = "Unknown"; - SyntaxKind4[SyntaxKind4["EndOfFileToken"] = 1] = "EndOfFileToken"; - SyntaxKind4[SyntaxKind4["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia"; - SyntaxKind4[SyntaxKind4["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia"; - SyntaxKind4[SyntaxKind4["NewLineTrivia"] = 4] = "NewLineTrivia"; - SyntaxKind4[SyntaxKind4["WhitespaceTrivia"] = 5] = "WhitespaceTrivia"; - SyntaxKind4[SyntaxKind4["ShebangTrivia"] = 6] = "ShebangTrivia"; - SyntaxKind4[SyntaxKind4["ConflictMarkerTrivia"] = 7] = "ConflictMarkerTrivia"; - SyntaxKind4[SyntaxKind4["NonTextFileMarkerTrivia"] = 8] = "NonTextFileMarkerTrivia"; - SyntaxKind4[SyntaxKind4["NumericLiteral"] = 9] = "NumericLiteral"; - SyntaxKind4[SyntaxKind4["BigIntLiteral"] = 10] = "BigIntLiteral"; - SyntaxKind4[SyntaxKind4["StringLiteral"] = 11] = "StringLiteral"; - SyntaxKind4[SyntaxKind4["JsxText"] = 12] = "JsxText"; - SyntaxKind4[SyntaxKind4["JsxTextAllWhiteSpaces"] = 13] = "JsxTextAllWhiteSpaces"; - SyntaxKind4[SyntaxKind4["RegularExpressionLiteral"] = 14] = "RegularExpressionLiteral"; - SyntaxKind4[SyntaxKind4["NoSubstitutionTemplateLiteral"] = 15] = "NoSubstitutionTemplateLiteral"; - SyntaxKind4[SyntaxKind4["TemplateHead"] = 16] = "TemplateHead"; - SyntaxKind4[SyntaxKind4["TemplateMiddle"] = 17] = "TemplateMiddle"; - SyntaxKind4[SyntaxKind4["TemplateTail"] = 18] = "TemplateTail"; - SyntaxKind4[SyntaxKind4["OpenBraceToken"] = 19] = "OpenBraceToken"; - SyntaxKind4[SyntaxKind4["CloseBraceToken"] = 20] = "CloseBraceToken"; - SyntaxKind4[SyntaxKind4["OpenParenToken"] = 21] = "OpenParenToken"; - SyntaxKind4[SyntaxKind4["CloseParenToken"] = 22] = "CloseParenToken"; - SyntaxKind4[SyntaxKind4["OpenBracketToken"] = 23] = "OpenBracketToken"; - SyntaxKind4[SyntaxKind4["CloseBracketToken"] = 24] = "CloseBracketToken"; - SyntaxKind4[SyntaxKind4["DotToken"] = 25] = "DotToken"; - SyntaxKind4[SyntaxKind4["DotDotDotToken"] = 26] = "DotDotDotToken"; - SyntaxKind4[SyntaxKind4["SemicolonToken"] = 27] = "SemicolonToken"; - SyntaxKind4[SyntaxKind4["CommaToken"] = 28] = "CommaToken"; - SyntaxKind4[SyntaxKind4["QuestionDotToken"] = 29] = "QuestionDotToken"; - SyntaxKind4[SyntaxKind4["LessThanToken"] = 30] = "LessThanToken"; - SyntaxKind4[SyntaxKind4["LessThanSlashToken"] = 31] = "LessThanSlashToken"; - SyntaxKind4[SyntaxKind4["GreaterThanToken"] = 32] = "GreaterThanToken"; - SyntaxKind4[SyntaxKind4["LessThanEqualsToken"] = 33] = "LessThanEqualsToken"; - SyntaxKind4[SyntaxKind4["GreaterThanEqualsToken"] = 34] = "GreaterThanEqualsToken"; - SyntaxKind4[SyntaxKind4["EqualsEqualsToken"] = 35] = "EqualsEqualsToken"; - SyntaxKind4[SyntaxKind4["ExclamationEqualsToken"] = 36] = "ExclamationEqualsToken"; - SyntaxKind4[SyntaxKind4["EqualsEqualsEqualsToken"] = 37] = "EqualsEqualsEqualsToken"; - SyntaxKind4[SyntaxKind4["ExclamationEqualsEqualsToken"] = 38] = "ExclamationEqualsEqualsToken"; - SyntaxKind4[SyntaxKind4["EqualsGreaterThanToken"] = 39] = "EqualsGreaterThanToken"; - SyntaxKind4[SyntaxKind4["PlusToken"] = 40] = "PlusToken"; - SyntaxKind4[SyntaxKind4["MinusToken"] = 41] = "MinusToken"; - SyntaxKind4[SyntaxKind4["AsteriskToken"] = 42] = "AsteriskToken"; - SyntaxKind4[SyntaxKind4["AsteriskAsteriskToken"] = 43] = "AsteriskAsteriskToken"; - SyntaxKind4[SyntaxKind4["SlashToken"] = 44] = "SlashToken"; - SyntaxKind4[SyntaxKind4["PercentToken"] = 45] = "PercentToken"; - SyntaxKind4[SyntaxKind4["PlusPlusToken"] = 46] = "PlusPlusToken"; - SyntaxKind4[SyntaxKind4["MinusMinusToken"] = 47] = "MinusMinusToken"; - SyntaxKind4[SyntaxKind4["LessThanLessThanToken"] = 48] = "LessThanLessThanToken"; - SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanToken"] = 49] = "GreaterThanGreaterThanToken"; - SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanGreaterThanToken"] = 50] = "GreaterThanGreaterThanGreaterThanToken"; - SyntaxKind4[SyntaxKind4["AmpersandToken"] = 51] = "AmpersandToken"; - SyntaxKind4[SyntaxKind4["BarToken"] = 52] = "BarToken"; - SyntaxKind4[SyntaxKind4["CaretToken"] = 53] = "CaretToken"; - SyntaxKind4[SyntaxKind4["ExclamationToken"] = 54] = "ExclamationToken"; - SyntaxKind4[SyntaxKind4["TildeToken"] = 55] = "TildeToken"; - SyntaxKind4[SyntaxKind4["AmpersandAmpersandToken"] = 56] = "AmpersandAmpersandToken"; - SyntaxKind4[SyntaxKind4["BarBarToken"] = 57] = "BarBarToken"; - SyntaxKind4[SyntaxKind4["QuestionToken"] = 58] = "QuestionToken"; - SyntaxKind4[SyntaxKind4["ColonToken"] = 59] = "ColonToken"; - SyntaxKind4[SyntaxKind4["AtToken"] = 60] = "AtToken"; - SyntaxKind4[SyntaxKind4["QuestionQuestionToken"] = 61] = "QuestionQuestionToken"; - SyntaxKind4[SyntaxKind4["BacktickToken"] = 62] = "BacktickToken"; - SyntaxKind4[SyntaxKind4["HashToken"] = 63] = "HashToken"; - SyntaxKind4[SyntaxKind4["EqualsToken"] = 64] = "EqualsToken"; - SyntaxKind4[SyntaxKind4["PlusEqualsToken"] = 65] = "PlusEqualsToken"; - SyntaxKind4[SyntaxKind4["MinusEqualsToken"] = 66] = "MinusEqualsToken"; - SyntaxKind4[SyntaxKind4["AsteriskEqualsToken"] = 67] = "AsteriskEqualsToken"; - SyntaxKind4[SyntaxKind4["AsteriskAsteriskEqualsToken"] = 68] = "AsteriskAsteriskEqualsToken"; - SyntaxKind4[SyntaxKind4["SlashEqualsToken"] = 69] = "SlashEqualsToken"; - SyntaxKind4[SyntaxKind4["PercentEqualsToken"] = 70] = "PercentEqualsToken"; - SyntaxKind4[SyntaxKind4["LessThanLessThanEqualsToken"] = 71] = "LessThanLessThanEqualsToken"; - SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanEqualsToken"] = 72] = "GreaterThanGreaterThanEqualsToken"; - SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanGreaterThanEqualsToken"] = 73] = "GreaterThanGreaterThanGreaterThanEqualsToken"; - SyntaxKind4[SyntaxKind4["AmpersandEqualsToken"] = 74] = "AmpersandEqualsToken"; - SyntaxKind4[SyntaxKind4["BarEqualsToken"] = 75] = "BarEqualsToken"; - SyntaxKind4[SyntaxKind4["BarBarEqualsToken"] = 76] = "BarBarEqualsToken"; - SyntaxKind4[SyntaxKind4["AmpersandAmpersandEqualsToken"] = 77] = "AmpersandAmpersandEqualsToken"; - SyntaxKind4[SyntaxKind4["QuestionQuestionEqualsToken"] = 78] = "QuestionQuestionEqualsToken"; - SyntaxKind4[SyntaxKind4["CaretEqualsToken"] = 79] = "CaretEqualsToken"; - SyntaxKind4[SyntaxKind4["Identifier"] = 80] = "Identifier"; - SyntaxKind4[SyntaxKind4["PrivateIdentifier"] = 81] = "PrivateIdentifier"; - SyntaxKind4[SyntaxKind4["JSDocCommentTextToken"] = 82] = "JSDocCommentTextToken"; - SyntaxKind4[SyntaxKind4["BreakKeyword"] = 83] = "BreakKeyword"; - SyntaxKind4[SyntaxKind4["CaseKeyword"] = 84] = "CaseKeyword"; - SyntaxKind4[SyntaxKind4["CatchKeyword"] = 85] = "CatchKeyword"; - SyntaxKind4[SyntaxKind4["ClassKeyword"] = 86] = "ClassKeyword"; - SyntaxKind4[SyntaxKind4["ConstKeyword"] = 87] = "ConstKeyword"; - SyntaxKind4[SyntaxKind4["ContinueKeyword"] = 88] = "ContinueKeyword"; - SyntaxKind4[SyntaxKind4["DebuggerKeyword"] = 89] = "DebuggerKeyword"; - SyntaxKind4[SyntaxKind4["DefaultKeyword"] = 90] = "DefaultKeyword"; - SyntaxKind4[SyntaxKind4["DeleteKeyword"] = 91] = "DeleteKeyword"; - SyntaxKind4[SyntaxKind4["DoKeyword"] = 92] = "DoKeyword"; - SyntaxKind4[SyntaxKind4["ElseKeyword"] = 93] = "ElseKeyword"; - SyntaxKind4[SyntaxKind4["EnumKeyword"] = 94] = "EnumKeyword"; - SyntaxKind4[SyntaxKind4["ExportKeyword"] = 95] = "ExportKeyword"; - SyntaxKind4[SyntaxKind4["ExtendsKeyword"] = 96] = "ExtendsKeyword"; - SyntaxKind4[SyntaxKind4["FalseKeyword"] = 97] = "FalseKeyword"; - SyntaxKind4[SyntaxKind4["FinallyKeyword"] = 98] = "FinallyKeyword"; - SyntaxKind4[SyntaxKind4["ForKeyword"] = 99] = "ForKeyword"; - SyntaxKind4[SyntaxKind4["FunctionKeyword"] = 100] = "FunctionKeyword"; - SyntaxKind4[SyntaxKind4["IfKeyword"] = 101] = "IfKeyword"; - SyntaxKind4[SyntaxKind4["ImportKeyword"] = 102] = "ImportKeyword"; - SyntaxKind4[SyntaxKind4["InKeyword"] = 103] = "InKeyword"; - SyntaxKind4[SyntaxKind4["InstanceOfKeyword"] = 104] = "InstanceOfKeyword"; - SyntaxKind4[SyntaxKind4["NewKeyword"] = 105] = "NewKeyword"; - SyntaxKind4[SyntaxKind4["NullKeyword"] = 106] = "NullKeyword"; - SyntaxKind4[SyntaxKind4["ReturnKeyword"] = 107] = "ReturnKeyword"; - SyntaxKind4[SyntaxKind4["SuperKeyword"] = 108] = "SuperKeyword"; - SyntaxKind4[SyntaxKind4["SwitchKeyword"] = 109] = "SwitchKeyword"; - SyntaxKind4[SyntaxKind4["ThisKeyword"] = 110] = "ThisKeyword"; - SyntaxKind4[SyntaxKind4["ThrowKeyword"] = 111] = "ThrowKeyword"; - SyntaxKind4[SyntaxKind4["TrueKeyword"] = 112] = "TrueKeyword"; - SyntaxKind4[SyntaxKind4["TryKeyword"] = 113] = "TryKeyword"; - SyntaxKind4[SyntaxKind4["TypeOfKeyword"] = 114] = "TypeOfKeyword"; - SyntaxKind4[SyntaxKind4["VarKeyword"] = 115] = "VarKeyword"; - SyntaxKind4[SyntaxKind4["VoidKeyword"] = 116] = "VoidKeyword"; - SyntaxKind4[SyntaxKind4["WhileKeyword"] = 117] = "WhileKeyword"; - SyntaxKind4[SyntaxKind4["WithKeyword"] = 118] = "WithKeyword"; - SyntaxKind4[SyntaxKind4["ImplementsKeyword"] = 119] = "ImplementsKeyword"; - SyntaxKind4[SyntaxKind4["InterfaceKeyword"] = 120] = "InterfaceKeyword"; - SyntaxKind4[SyntaxKind4["LetKeyword"] = 121] = "LetKeyword"; - SyntaxKind4[SyntaxKind4["PackageKeyword"] = 122] = "PackageKeyword"; - SyntaxKind4[SyntaxKind4["PrivateKeyword"] = 123] = "PrivateKeyword"; - SyntaxKind4[SyntaxKind4["ProtectedKeyword"] = 124] = "ProtectedKeyword"; - SyntaxKind4[SyntaxKind4["PublicKeyword"] = 125] = "PublicKeyword"; - SyntaxKind4[SyntaxKind4["StaticKeyword"] = 126] = "StaticKeyword"; - SyntaxKind4[SyntaxKind4["YieldKeyword"] = 127] = "YieldKeyword"; - SyntaxKind4[SyntaxKind4["AbstractKeyword"] = 128] = "AbstractKeyword"; - SyntaxKind4[SyntaxKind4["AccessorKeyword"] = 129] = "AccessorKeyword"; - SyntaxKind4[SyntaxKind4["AsKeyword"] = 130] = "AsKeyword"; - SyntaxKind4[SyntaxKind4["AssertsKeyword"] = 131] = "AssertsKeyword"; - SyntaxKind4[SyntaxKind4["AssertKeyword"] = 132] = "AssertKeyword"; - SyntaxKind4[SyntaxKind4["AnyKeyword"] = 133] = "AnyKeyword"; - SyntaxKind4[SyntaxKind4["AsyncKeyword"] = 134] = "AsyncKeyword"; - SyntaxKind4[SyntaxKind4["AwaitKeyword"] = 135] = "AwaitKeyword"; - SyntaxKind4[SyntaxKind4["BooleanKeyword"] = 136] = "BooleanKeyword"; - SyntaxKind4[SyntaxKind4["ConstructorKeyword"] = 137] = "ConstructorKeyword"; - SyntaxKind4[SyntaxKind4["DeclareKeyword"] = 138] = "DeclareKeyword"; - SyntaxKind4[SyntaxKind4["GetKeyword"] = 139] = "GetKeyword"; - SyntaxKind4[SyntaxKind4["InferKeyword"] = 140] = "InferKeyword"; - SyntaxKind4[SyntaxKind4["IntrinsicKeyword"] = 141] = "IntrinsicKeyword"; - SyntaxKind4[SyntaxKind4["IsKeyword"] = 142] = "IsKeyword"; - SyntaxKind4[SyntaxKind4["KeyOfKeyword"] = 143] = "KeyOfKeyword"; - SyntaxKind4[SyntaxKind4["ModuleKeyword"] = 144] = "ModuleKeyword"; - SyntaxKind4[SyntaxKind4["NamespaceKeyword"] = 145] = "NamespaceKeyword"; - SyntaxKind4[SyntaxKind4["NeverKeyword"] = 146] = "NeverKeyword"; - SyntaxKind4[SyntaxKind4["OutKeyword"] = 147] = "OutKeyword"; - SyntaxKind4[SyntaxKind4["ReadonlyKeyword"] = 148] = "ReadonlyKeyword"; - SyntaxKind4[SyntaxKind4["RequireKeyword"] = 149] = "RequireKeyword"; - SyntaxKind4[SyntaxKind4["NumberKeyword"] = 150] = "NumberKeyword"; - SyntaxKind4[SyntaxKind4["ObjectKeyword"] = 151] = "ObjectKeyword"; - SyntaxKind4[SyntaxKind4["SatisfiesKeyword"] = 152] = "SatisfiesKeyword"; - SyntaxKind4[SyntaxKind4["SetKeyword"] = 153] = "SetKeyword"; - SyntaxKind4[SyntaxKind4["StringKeyword"] = 154] = "StringKeyword"; - SyntaxKind4[SyntaxKind4["SymbolKeyword"] = 155] = "SymbolKeyword"; - SyntaxKind4[SyntaxKind4["TypeKeyword"] = 156] = "TypeKeyword"; - SyntaxKind4[SyntaxKind4["UndefinedKeyword"] = 157] = "UndefinedKeyword"; - SyntaxKind4[SyntaxKind4["UniqueKeyword"] = 158] = "UniqueKeyword"; - SyntaxKind4[SyntaxKind4["UnknownKeyword"] = 159] = "UnknownKeyword"; - SyntaxKind4[SyntaxKind4["UsingKeyword"] = 160] = "UsingKeyword"; - SyntaxKind4[SyntaxKind4["FromKeyword"] = 161] = "FromKeyword"; - SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 162] = "GlobalKeyword"; - SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 163] = "BigIntKeyword"; - SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 164] = "OverrideKeyword"; - SyntaxKind4[SyntaxKind4["OfKeyword"] = 165] = "OfKeyword"; - SyntaxKind4[SyntaxKind4["QualifiedName"] = 166] = "QualifiedName"; - SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 167] = "ComputedPropertyName"; - SyntaxKind4[SyntaxKind4["TypeParameter"] = 168] = "TypeParameter"; - SyntaxKind4[SyntaxKind4["Parameter"] = 169] = "Parameter"; - SyntaxKind4[SyntaxKind4["Decorator"] = 170] = "Decorator"; - SyntaxKind4[SyntaxKind4["PropertySignature"] = 171] = "PropertySignature"; - SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 172] = "PropertyDeclaration"; - SyntaxKind4[SyntaxKind4["MethodSignature"] = 173] = "MethodSignature"; - SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 174] = "MethodDeclaration"; - SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; - SyntaxKind4[SyntaxKind4["Constructor"] = 176] = "Constructor"; - SyntaxKind4[SyntaxKind4["GetAccessor"] = 177] = "GetAccessor"; - SyntaxKind4[SyntaxKind4["SetAccessor"] = 178] = "SetAccessor"; - SyntaxKind4[SyntaxKind4["CallSignature"] = 179] = "CallSignature"; - SyntaxKind4[SyntaxKind4["ConstructSignature"] = 180] = "ConstructSignature"; - SyntaxKind4[SyntaxKind4["IndexSignature"] = 181] = "IndexSignature"; - SyntaxKind4[SyntaxKind4["TypePredicate"] = 182] = "TypePredicate"; - SyntaxKind4[SyntaxKind4["TypeReference"] = 183] = "TypeReference"; - SyntaxKind4[SyntaxKind4["FunctionType"] = 184] = "FunctionType"; - SyntaxKind4[SyntaxKind4["ConstructorType"] = 185] = "ConstructorType"; - SyntaxKind4[SyntaxKind4["TypeQuery"] = 186] = "TypeQuery"; - SyntaxKind4[SyntaxKind4["TypeLiteral"] = 187] = "TypeLiteral"; - SyntaxKind4[SyntaxKind4["ArrayType"] = 188] = "ArrayType"; - SyntaxKind4[SyntaxKind4["TupleType"] = 189] = "TupleType"; - SyntaxKind4[SyntaxKind4["OptionalType"] = 190] = "OptionalType"; - SyntaxKind4[SyntaxKind4["RestType"] = 191] = "RestType"; - SyntaxKind4[SyntaxKind4["UnionType"] = 192] = "UnionType"; - SyntaxKind4[SyntaxKind4["IntersectionType"] = 193] = "IntersectionType"; - SyntaxKind4[SyntaxKind4["ConditionalType"] = 194] = "ConditionalType"; - SyntaxKind4[SyntaxKind4["InferType"] = 195] = "InferType"; - SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 196] = "ParenthesizedType"; - SyntaxKind4[SyntaxKind4["ThisType"] = 197] = "ThisType"; - SyntaxKind4[SyntaxKind4["TypeOperator"] = 198] = "TypeOperator"; - SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 199] = "IndexedAccessType"; - SyntaxKind4[SyntaxKind4["MappedType"] = 200] = "MappedType"; - SyntaxKind4[SyntaxKind4["LiteralType"] = 201] = "LiteralType"; - SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 202] = "NamedTupleMember"; - SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 203] = "TemplateLiteralType"; - SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; - SyntaxKind4[SyntaxKind4["ImportType"] = 205] = "ImportType"; - SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; - SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; - SyntaxKind4[SyntaxKind4["BindingElement"] = 208] = "BindingElement"; - SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; - SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; - SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; - SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 212] = "ElementAccessExpression"; - SyntaxKind4[SyntaxKind4["CallExpression"] = 213] = "CallExpression"; - SyntaxKind4[SyntaxKind4["NewExpression"] = 214] = "NewExpression"; - SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; - SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; - SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; - SyntaxKind4[SyntaxKind4["FunctionExpression"] = 218] = "FunctionExpression"; - SyntaxKind4[SyntaxKind4["ArrowFunction"] = 219] = "ArrowFunction"; - SyntaxKind4[SyntaxKind4["DeleteExpression"] = 220] = "DeleteExpression"; - SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 221] = "TypeOfExpression"; - SyntaxKind4[SyntaxKind4["VoidExpression"] = 222] = "VoidExpression"; - SyntaxKind4[SyntaxKind4["AwaitExpression"] = 223] = "AwaitExpression"; - SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; - SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; - SyntaxKind4[SyntaxKind4["BinaryExpression"] = 226] = "BinaryExpression"; - SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 227] = "ConditionalExpression"; - SyntaxKind4[SyntaxKind4["TemplateExpression"] = 228] = "TemplateExpression"; - SyntaxKind4[SyntaxKind4["YieldExpression"] = 229] = "YieldExpression"; - SyntaxKind4[SyntaxKind4["SpreadElement"] = 230] = "SpreadElement"; - SyntaxKind4[SyntaxKind4["ClassExpression"] = 231] = "ClassExpression"; - SyntaxKind4[SyntaxKind4["OmittedExpression"] = 232] = "OmittedExpression"; - SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; - SyntaxKind4[SyntaxKind4["AsExpression"] = 234] = "AsExpression"; - SyntaxKind4[SyntaxKind4["NonNullExpression"] = 235] = "NonNullExpression"; - SyntaxKind4[SyntaxKind4["MetaProperty"] = 236] = "MetaProperty"; - SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 237] = "SyntheticExpression"; - SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 238] = "SatisfiesExpression"; - SyntaxKind4[SyntaxKind4["TemplateSpan"] = 239] = "TemplateSpan"; - SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 240] = "SemicolonClassElement"; - SyntaxKind4[SyntaxKind4["Block"] = 241] = "Block"; - SyntaxKind4[SyntaxKind4["EmptyStatement"] = 242] = "EmptyStatement"; - SyntaxKind4[SyntaxKind4["VariableStatement"] = 243] = "VariableStatement"; - SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 244] = "ExpressionStatement"; - SyntaxKind4[SyntaxKind4["IfStatement"] = 245] = "IfStatement"; - SyntaxKind4[SyntaxKind4["DoStatement"] = 246] = "DoStatement"; - SyntaxKind4[SyntaxKind4["WhileStatement"] = 247] = "WhileStatement"; - SyntaxKind4[SyntaxKind4["ForStatement"] = 248] = "ForStatement"; - SyntaxKind4[SyntaxKind4["ForInStatement"] = 249] = "ForInStatement"; - SyntaxKind4[SyntaxKind4["ForOfStatement"] = 250] = "ForOfStatement"; - SyntaxKind4[SyntaxKind4["ContinueStatement"] = 251] = "ContinueStatement"; - SyntaxKind4[SyntaxKind4["BreakStatement"] = 252] = "BreakStatement"; - SyntaxKind4[SyntaxKind4["ReturnStatement"] = 253] = "ReturnStatement"; - SyntaxKind4[SyntaxKind4["WithStatement"] = 254] = "WithStatement"; - SyntaxKind4[SyntaxKind4["SwitchStatement"] = 255] = "SwitchStatement"; - SyntaxKind4[SyntaxKind4["LabeledStatement"] = 256] = "LabeledStatement"; - SyntaxKind4[SyntaxKind4["ThrowStatement"] = 257] = "ThrowStatement"; - SyntaxKind4[SyntaxKind4["TryStatement"] = 258] = "TryStatement"; - SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 259] = "DebuggerStatement"; - SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 260] = "VariableDeclaration"; - SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 261] = "VariableDeclarationList"; - SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 262] = "FunctionDeclaration"; - SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 263] = "ClassDeclaration"; - SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; - SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; - SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 266] = "EnumDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 267] = "ModuleDeclaration"; - SyntaxKind4[SyntaxKind4["ModuleBlock"] = 268] = "ModuleBlock"; - SyntaxKind4[SyntaxKind4["CaseBlock"] = 269] = "CaseBlock"; - SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; - SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 272] = "ImportDeclaration"; - SyntaxKind4[SyntaxKind4["ImportClause"] = 273] = "ImportClause"; - SyntaxKind4[SyntaxKind4["NamespaceImport"] = 274] = "NamespaceImport"; - SyntaxKind4[SyntaxKind4["NamedImports"] = 275] = "NamedImports"; - SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 276] = "ImportSpecifier"; - SyntaxKind4[SyntaxKind4["ExportAssignment"] = 277] = "ExportAssignment"; - SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 278] = "ExportDeclaration"; - SyntaxKind4[SyntaxKind4["NamedExports"] = 279] = "NamedExports"; - SyntaxKind4[SyntaxKind4["NamespaceExport"] = 280] = "NamespaceExport"; - SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 281] = "ExportSpecifier"; - SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 282] = "MissingDeclaration"; - SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 283] = "ExternalModuleReference"; - SyntaxKind4[SyntaxKind4["JsxElement"] = 284] = "JsxElement"; - SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; - SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 286] = "JsxOpeningElement"; - SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 287] = "JsxClosingElement"; - SyntaxKind4[SyntaxKind4["JsxFragment"] = 288] = "JsxFragment"; - SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; - SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 290] = "JsxClosingFragment"; - SyntaxKind4[SyntaxKind4["JsxAttribute"] = 291] = "JsxAttribute"; - SyntaxKind4[SyntaxKind4["JsxAttributes"] = 292] = "JsxAttributes"; - SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; - SyntaxKind4[SyntaxKind4["JsxExpression"] = 294] = "JsxExpression"; - SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 295] = "JsxNamespacedName"; - SyntaxKind4[SyntaxKind4["CaseClause"] = 296] = "CaseClause"; - SyntaxKind4[SyntaxKind4["DefaultClause"] = 297] = "DefaultClause"; - SyntaxKind4[SyntaxKind4["HeritageClause"] = 298] = "HeritageClause"; - SyntaxKind4[SyntaxKind4["CatchClause"] = 299] = "CatchClause"; - SyntaxKind4[SyntaxKind4["ImportAttributes"] = 300] = "ImportAttributes"; - SyntaxKind4[SyntaxKind4["ImportAttribute"] = 301] = "ImportAttribute"; - SyntaxKind4[SyntaxKind4["AssertClause"] = 300 /* ImportAttributes */] = "AssertClause"; - SyntaxKind4[SyntaxKind4["AssertEntry"] = 301 /* ImportAttribute */] = "AssertEntry"; - SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; - SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 303] = "PropertyAssignment"; - SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; - SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 305] = "SpreadAssignment"; - SyntaxKind4[SyntaxKind4["EnumMember"] = 306] = "EnumMember"; - SyntaxKind4[SyntaxKind4["SourceFile"] = 307] = "SourceFile"; - SyntaxKind4[SyntaxKind4["Bundle"] = 308] = "Bundle"; - SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 309] = "JSDocTypeExpression"; - SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 310] = "JSDocNameReference"; - SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 311] = "JSDocMemberName"; - SyntaxKind4[SyntaxKind4["JSDocAllType"] = 312] = "JSDocAllType"; - SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 313] = "JSDocUnknownType"; - SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 314] = "JSDocNullableType"; - SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 315] = "JSDocNonNullableType"; - SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 316] = "JSDocOptionalType"; - SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 317] = "JSDocFunctionType"; - SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 318] = "JSDocVariadicType"; - SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 319] = "JSDocNamepathType"; - SyntaxKind4[SyntaxKind4["JSDoc"] = 320] = "JSDoc"; - SyntaxKind4[SyntaxKind4["JSDocComment"] = 320 /* JSDoc */] = "JSDocComment"; - SyntaxKind4[SyntaxKind4["JSDocText"] = 321] = "JSDocText"; - SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 322] = "JSDocTypeLiteral"; - SyntaxKind4[SyntaxKind4["JSDocSignature"] = 323] = "JSDocSignature"; - SyntaxKind4[SyntaxKind4["JSDocLink"] = 324] = "JSDocLink"; - SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 325] = "JSDocLinkCode"; - SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 326] = "JSDocLinkPlain"; - SyntaxKind4[SyntaxKind4["JSDocTag"] = 327] = "JSDocTag"; - SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 328] = "JSDocAugmentsTag"; - SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 329] = "JSDocImplementsTag"; - SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 330] = "JSDocAuthorTag"; - SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 331] = "JSDocDeprecatedTag"; - SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 332] = "JSDocClassTag"; - SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 333] = "JSDocPublicTag"; - SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 334] = "JSDocPrivateTag"; - SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 335] = "JSDocProtectedTag"; - SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 336] = "JSDocReadonlyTag"; - SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 337] = "JSDocOverrideTag"; - SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 338] = "JSDocCallbackTag"; - SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 339] = "JSDocOverloadTag"; - SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 340] = "JSDocEnumTag"; - SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 341] = "JSDocParameterTag"; - SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 342] = "JSDocReturnTag"; - SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 343] = "JSDocThisTag"; - SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 344] = "JSDocTypeTag"; - SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 345] = "JSDocTemplateTag"; - SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 346] = "JSDocTypedefTag"; - SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 347] = "JSDocSeeTag"; - SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 348] = "JSDocPropertyTag"; - SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 349] = "JSDocThrowsTag"; - SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 350] = "JSDocSatisfiesTag"; - SyntaxKind4[SyntaxKind4["JSDocImportTag"] = 351] = "JSDocImportTag"; - SyntaxKind4[SyntaxKind4["SyntaxList"] = 352] = "SyntaxList"; - SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 353] = "NotEmittedStatement"; - SyntaxKind4[SyntaxKind4["NotEmittedTypeElement"] = 354] = "NotEmittedTypeElement"; - SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 355] = "PartiallyEmittedExpression"; - SyntaxKind4[SyntaxKind4["CommaListExpression"] = 356] = "CommaListExpression"; - SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 357] = "SyntheticReferenceExpression"; - SyntaxKind4[SyntaxKind4["Count"] = 358] = "Count"; - SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; - SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; - SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; - SyntaxKind4[SyntaxKind4["LastCompoundAssignment"] = 79 /* CaretEqualsToken */] = "LastCompoundAssignment"; - SyntaxKind4[SyntaxKind4["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; - SyntaxKind4[SyntaxKind4["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; - SyntaxKind4[SyntaxKind4["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; - SyntaxKind4[SyntaxKind4["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; - SyntaxKind4[SyntaxKind4["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; - SyntaxKind4[SyntaxKind4["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; - SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; - SyntaxKind4[SyntaxKind4["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; - SyntaxKind4[SyntaxKind4["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; - SyntaxKind4[SyntaxKind4["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; - SyntaxKind4[SyntaxKind4["FirstToken"] = 0 /* Unknown */] = "FirstToken"; - SyntaxKind4[SyntaxKind4["LastToken"] = 165 /* LastKeyword */] = "LastToken"; - SyntaxKind4[SyntaxKind4["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; - SyntaxKind4[SyntaxKind4["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; - SyntaxKind4[SyntaxKind4["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; - SyntaxKind4[SyntaxKind4["LastLiteralToken"] = 15 /* NoSubstitutionTemplateLiteral */] = "LastLiteralToken"; - SyntaxKind4[SyntaxKind4["FirstTemplateToken"] = 15 /* NoSubstitutionTemplateLiteral */] = "FirstTemplateToken"; - SyntaxKind4[SyntaxKind4["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; - SyntaxKind4[SyntaxKind4["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; - SyntaxKind4[SyntaxKind4["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; - SyntaxKind4[SyntaxKind4["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; - SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; - SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 309 /* JSDocTypeExpression */] = "FirstJSDocNode"; - SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 351 /* JSDocImportTag */] = "LastJSDocNode"; - SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 327 /* JSDocTag */] = "FirstJSDocTagNode"; - SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 351 /* JSDocImportTag */] = "LastJSDocTagNode"; - SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; - SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; - return SyntaxKind4; -})(SyntaxKind || {}); -var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { - NodeFlags3[NodeFlags3["None"] = 0] = "None"; - NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; - NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; - NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; - NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; - NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; - NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; - NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; - NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; - NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; - NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; - NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; - NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; - NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; - NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; - NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; - NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; - NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; - NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; - NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; - NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; - NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; - NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; - NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; - NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; - NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; - NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; - NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; - NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; - NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; - NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; - NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; - NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; - NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; - NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; - NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; - NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; - NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; - NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; - NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; - NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; - return NodeFlags3; -})(NodeFlags || {}); -var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { - ModifierFlags3[ModifierFlags3["None"] = 0] = "None"; - ModifierFlags3[ModifierFlags3["Public"] = 1] = "Public"; - ModifierFlags3[ModifierFlags3["Private"] = 2] = "Private"; - ModifierFlags3[ModifierFlags3["Protected"] = 4] = "Protected"; - ModifierFlags3[ModifierFlags3["Readonly"] = 8] = "Readonly"; - ModifierFlags3[ModifierFlags3["Override"] = 16] = "Override"; - ModifierFlags3[ModifierFlags3["Export"] = 32] = "Export"; - ModifierFlags3[ModifierFlags3["Abstract"] = 64] = "Abstract"; - ModifierFlags3[ModifierFlags3["Ambient"] = 128] = "Ambient"; - ModifierFlags3[ModifierFlags3["Static"] = 256] = "Static"; - ModifierFlags3[ModifierFlags3["Accessor"] = 512] = "Accessor"; - ModifierFlags3[ModifierFlags3["Async"] = 1024] = "Async"; - ModifierFlags3[ModifierFlags3["Default"] = 2048] = "Default"; - ModifierFlags3[ModifierFlags3["Const"] = 4096] = "Const"; - ModifierFlags3[ModifierFlags3["In"] = 8192] = "In"; - ModifierFlags3[ModifierFlags3["Out"] = 16384] = "Out"; - ModifierFlags3[ModifierFlags3["Decorator"] = 32768] = "Decorator"; - ModifierFlags3[ModifierFlags3["Deprecated"] = 65536] = "Deprecated"; - ModifierFlags3[ModifierFlags3["JSDocPublic"] = 8388608] = "JSDocPublic"; - ModifierFlags3[ModifierFlags3["JSDocPrivate"] = 16777216] = "JSDocPrivate"; - ModifierFlags3[ModifierFlags3["JSDocProtected"] = 33554432] = "JSDocProtected"; - ModifierFlags3[ModifierFlags3["JSDocReadonly"] = 67108864] = "JSDocReadonly"; - ModifierFlags3[ModifierFlags3["JSDocOverride"] = 134217728] = "JSDocOverride"; - ModifierFlags3[ModifierFlags3["SyntacticOrJSDocModifiers"] = 31] = "SyntacticOrJSDocModifiers"; - ModifierFlags3[ModifierFlags3["SyntacticOnlyModifiers"] = 65504] = "SyntacticOnlyModifiers"; - ModifierFlags3[ModifierFlags3["SyntacticModifiers"] = 65535] = "SyntacticModifiers"; - ModifierFlags3[ModifierFlags3["JSDocCacheOnlyModifiers"] = 260046848] = "JSDocCacheOnlyModifiers"; - ModifierFlags3[ModifierFlags3["JSDocOnlyModifiers"] = 65536 /* Deprecated */] = "JSDocOnlyModifiers"; - ModifierFlags3[ModifierFlags3["NonCacheOnlyModifiers"] = 131071] = "NonCacheOnlyModifiers"; - ModifierFlags3[ModifierFlags3["HasComputedJSDocModifiers"] = 268435456] = "HasComputedJSDocModifiers"; - ModifierFlags3[ModifierFlags3["HasComputedFlags"] = 536870912] = "HasComputedFlags"; - ModifierFlags3[ModifierFlags3["AccessibilityModifier"] = 7] = "AccessibilityModifier"; - ModifierFlags3[ModifierFlags3["ParameterPropertyModifier"] = 31] = "ParameterPropertyModifier"; - ModifierFlags3[ModifierFlags3["NonPublicAccessibilityModifier"] = 6] = "NonPublicAccessibilityModifier"; - ModifierFlags3[ModifierFlags3["TypeScriptModifier"] = 28895] = "TypeScriptModifier"; - ModifierFlags3[ModifierFlags3["ExportDefault"] = 2080] = "ExportDefault"; - ModifierFlags3[ModifierFlags3["All"] = 131071] = "All"; - ModifierFlags3[ModifierFlags3["Modifier"] = 98303] = "Modifier"; - return ModifierFlags3; -})(ModifierFlags || {}); -var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => { - RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None"; - RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded"; - RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed"; - RelationComparisonResult3[RelationComparisonResult3["ReportsUnmeasurable"] = 8] = "ReportsUnmeasurable"; - RelationComparisonResult3[RelationComparisonResult3["ReportsUnreliable"] = 16] = "ReportsUnreliable"; - RelationComparisonResult3[RelationComparisonResult3["ReportsMask"] = 24] = "ReportsMask"; - RelationComparisonResult3[RelationComparisonResult3["ComplexityOverflow"] = 32] = "ComplexityOverflow"; - RelationComparisonResult3[RelationComparisonResult3["StackDepthOverflow"] = 64] = "StackDepthOverflow"; - RelationComparisonResult3[RelationComparisonResult3["Overflow"] = 96] = "Overflow"; - return RelationComparisonResult3; -})(RelationComparisonResult || {}); -var GeneratedIdentifierFlags = /* @__PURE__ */ ((GeneratedIdentifierFlags2) => { - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["None"] = 0] = "None"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Auto"] = 1] = "Auto"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Loop"] = 2] = "Loop"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Unique"] = 3] = "Unique"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Node"] = 4] = "Node"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["KindMask"] = 7] = "KindMask"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["ReservedInNestedScopes"] = 8] = "ReservedInNestedScopes"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Optimistic"] = 16] = "Optimistic"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["FileLevel"] = 32] = "FileLevel"; - GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["AllowNameSubstitution"] = 64] = "AllowNameSubstitution"; - return GeneratedIdentifierFlags2; -})(GeneratedIdentifierFlags || {}); -var FlowFlags = /* @__PURE__ */ ((FlowFlags2) => { - FlowFlags2[FlowFlags2["Unreachable"] = 1] = "Unreachable"; - FlowFlags2[FlowFlags2["Start"] = 2] = "Start"; - FlowFlags2[FlowFlags2["BranchLabel"] = 4] = "BranchLabel"; - FlowFlags2[FlowFlags2["LoopLabel"] = 8] = "LoopLabel"; - FlowFlags2[FlowFlags2["Assignment"] = 16] = "Assignment"; - FlowFlags2[FlowFlags2["TrueCondition"] = 32] = "TrueCondition"; - FlowFlags2[FlowFlags2["FalseCondition"] = 64] = "FalseCondition"; - FlowFlags2[FlowFlags2["SwitchClause"] = 128] = "SwitchClause"; - FlowFlags2[FlowFlags2["ArrayMutation"] = 256] = "ArrayMutation"; - FlowFlags2[FlowFlags2["Call"] = 512] = "Call"; - FlowFlags2[FlowFlags2["ReduceLabel"] = 1024] = "ReduceLabel"; - FlowFlags2[FlowFlags2["Referenced"] = 2048] = "Referenced"; - FlowFlags2[FlowFlags2["Shared"] = 4096] = "Shared"; - FlowFlags2[FlowFlags2["Label"] = 12] = "Label"; - FlowFlags2[FlowFlags2["Condition"] = 96] = "Condition"; - return FlowFlags2; -})(FlowFlags || {}); -var OperationCanceledException = class { -}; -var FileIncludeKind = /* @__PURE__ */ ((FileIncludeKind2) => { - FileIncludeKind2[FileIncludeKind2["RootFile"] = 0] = "RootFile"; - FileIncludeKind2[FileIncludeKind2["SourceFromProjectReference"] = 1] = "SourceFromProjectReference"; - FileIncludeKind2[FileIncludeKind2["OutputFromProjectReference"] = 2] = "OutputFromProjectReference"; - FileIncludeKind2[FileIncludeKind2["Import"] = 3] = "Import"; - FileIncludeKind2[FileIncludeKind2["ReferenceFile"] = 4] = "ReferenceFile"; - FileIncludeKind2[FileIncludeKind2["TypeReferenceDirective"] = 5] = "TypeReferenceDirective"; - FileIncludeKind2[FileIncludeKind2["LibFile"] = 6] = "LibFile"; - FileIncludeKind2[FileIncludeKind2["LibReferenceDirective"] = 7] = "LibReferenceDirective"; - FileIncludeKind2[FileIncludeKind2["AutomaticTypeDirectiveFile"] = 8] = "AutomaticTypeDirectiveFile"; - return FileIncludeKind2; -})(FileIncludeKind || {}); -var SymbolFlags = /* @__PURE__ */ ((SymbolFlags2) => { - SymbolFlags2[SymbolFlags2["None"] = 0] = "None"; - SymbolFlags2[SymbolFlags2["FunctionScopedVariable"] = 1] = "FunctionScopedVariable"; - SymbolFlags2[SymbolFlags2["BlockScopedVariable"] = 2] = "BlockScopedVariable"; - SymbolFlags2[SymbolFlags2["Property"] = 4] = "Property"; - SymbolFlags2[SymbolFlags2["EnumMember"] = 8] = "EnumMember"; - SymbolFlags2[SymbolFlags2["Function"] = 16] = "Function"; - SymbolFlags2[SymbolFlags2["Class"] = 32] = "Class"; - SymbolFlags2[SymbolFlags2["Interface"] = 64] = "Interface"; - SymbolFlags2[SymbolFlags2["ConstEnum"] = 128] = "ConstEnum"; - SymbolFlags2[SymbolFlags2["RegularEnum"] = 256] = "RegularEnum"; - SymbolFlags2[SymbolFlags2["ValueModule"] = 512] = "ValueModule"; - SymbolFlags2[SymbolFlags2["NamespaceModule"] = 1024] = "NamespaceModule"; - SymbolFlags2[SymbolFlags2["TypeLiteral"] = 2048] = "TypeLiteral"; - SymbolFlags2[SymbolFlags2["ObjectLiteral"] = 4096] = "ObjectLiteral"; - SymbolFlags2[SymbolFlags2["Method"] = 8192] = "Method"; - SymbolFlags2[SymbolFlags2["Constructor"] = 16384] = "Constructor"; - SymbolFlags2[SymbolFlags2["GetAccessor"] = 32768] = "GetAccessor"; - SymbolFlags2[SymbolFlags2["SetAccessor"] = 65536] = "SetAccessor"; - SymbolFlags2[SymbolFlags2["Signature"] = 131072] = "Signature"; - SymbolFlags2[SymbolFlags2["TypeParameter"] = 262144] = "TypeParameter"; - SymbolFlags2[SymbolFlags2["TypeAlias"] = 524288] = "TypeAlias"; - SymbolFlags2[SymbolFlags2["ExportValue"] = 1048576] = "ExportValue"; - SymbolFlags2[SymbolFlags2["Alias"] = 2097152] = "Alias"; - SymbolFlags2[SymbolFlags2["Prototype"] = 4194304] = "Prototype"; - SymbolFlags2[SymbolFlags2["ExportStar"] = 8388608] = "ExportStar"; - SymbolFlags2[SymbolFlags2["Optional"] = 16777216] = "Optional"; - SymbolFlags2[SymbolFlags2["Transient"] = 33554432] = "Transient"; - SymbolFlags2[SymbolFlags2["Assignment"] = 67108864] = "Assignment"; - SymbolFlags2[SymbolFlags2["ModuleExports"] = 134217728] = "ModuleExports"; - SymbolFlags2[SymbolFlags2["All"] = -1] = "All"; - SymbolFlags2[SymbolFlags2["Enum"] = 384] = "Enum"; - SymbolFlags2[SymbolFlags2["Variable"] = 3] = "Variable"; - SymbolFlags2[SymbolFlags2["Value"] = 111551] = "Value"; - SymbolFlags2[SymbolFlags2["Type"] = 788968] = "Type"; - SymbolFlags2[SymbolFlags2["Namespace"] = 1920] = "Namespace"; - SymbolFlags2[SymbolFlags2["Module"] = 1536] = "Module"; - SymbolFlags2[SymbolFlags2["Accessor"] = 98304] = "Accessor"; - SymbolFlags2[SymbolFlags2["FunctionScopedVariableExcludes"] = 111550] = "FunctionScopedVariableExcludes"; - SymbolFlags2[SymbolFlags2["BlockScopedVariableExcludes"] = 111551 /* Value */] = "BlockScopedVariableExcludes"; - SymbolFlags2[SymbolFlags2["ParameterExcludes"] = 111551 /* Value */] = "ParameterExcludes"; - SymbolFlags2[SymbolFlags2["PropertyExcludes"] = 0 /* None */] = "PropertyExcludes"; - SymbolFlags2[SymbolFlags2["EnumMemberExcludes"] = 900095] = "EnumMemberExcludes"; - SymbolFlags2[SymbolFlags2["FunctionExcludes"] = 110991] = "FunctionExcludes"; - SymbolFlags2[SymbolFlags2["ClassExcludes"] = 899503] = "ClassExcludes"; - SymbolFlags2[SymbolFlags2["InterfaceExcludes"] = 788872] = "InterfaceExcludes"; - SymbolFlags2[SymbolFlags2["RegularEnumExcludes"] = 899327] = "RegularEnumExcludes"; - SymbolFlags2[SymbolFlags2["ConstEnumExcludes"] = 899967] = "ConstEnumExcludes"; - SymbolFlags2[SymbolFlags2["ValueModuleExcludes"] = 110735] = "ValueModuleExcludes"; - SymbolFlags2[SymbolFlags2["NamespaceModuleExcludes"] = 0] = "NamespaceModuleExcludes"; - SymbolFlags2[SymbolFlags2["MethodExcludes"] = 103359] = "MethodExcludes"; - SymbolFlags2[SymbolFlags2["GetAccessorExcludes"] = 46015] = "GetAccessorExcludes"; - SymbolFlags2[SymbolFlags2["SetAccessorExcludes"] = 78783] = "SetAccessorExcludes"; - SymbolFlags2[SymbolFlags2["AccessorExcludes"] = 13247] = "AccessorExcludes"; - SymbolFlags2[SymbolFlags2["TypeParameterExcludes"] = 526824] = "TypeParameterExcludes"; - SymbolFlags2[SymbolFlags2["TypeAliasExcludes"] = 788968 /* Type */] = "TypeAliasExcludes"; - SymbolFlags2[SymbolFlags2["AliasExcludes"] = 2097152 /* Alias */] = "AliasExcludes"; - SymbolFlags2[SymbolFlags2["ModuleMember"] = 2623475] = "ModuleMember"; - SymbolFlags2[SymbolFlags2["ExportHasLocal"] = 944] = "ExportHasLocal"; - SymbolFlags2[SymbolFlags2["BlockScoped"] = 418] = "BlockScoped"; - SymbolFlags2[SymbolFlags2["PropertyOrAccessor"] = 98308] = "PropertyOrAccessor"; - SymbolFlags2[SymbolFlags2["ClassMember"] = 106500] = "ClassMember"; - SymbolFlags2[SymbolFlags2["ExportSupportsDefaultModifier"] = 112] = "ExportSupportsDefaultModifier"; - SymbolFlags2[SymbolFlags2["ExportDoesNotSupportDefaultModifier"] = -113] = "ExportDoesNotSupportDefaultModifier"; - SymbolFlags2[SymbolFlags2["Classifiable"] = 2885600] = "Classifiable"; - SymbolFlags2[SymbolFlags2["LateBindingContainer"] = 6256] = "LateBindingContainer"; - return SymbolFlags2; -})(SymbolFlags || {}); -var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags3) => { - NodeCheckFlags3[NodeCheckFlags3["None"] = 0] = "None"; - NodeCheckFlags3[NodeCheckFlags3["TypeChecked"] = 1] = "TypeChecked"; - NodeCheckFlags3[NodeCheckFlags3["LexicalThis"] = 2] = "LexicalThis"; - NodeCheckFlags3[NodeCheckFlags3["CaptureThis"] = 4] = "CaptureThis"; - NodeCheckFlags3[NodeCheckFlags3["CaptureNewTarget"] = 8] = "CaptureNewTarget"; - NodeCheckFlags3[NodeCheckFlags3["SuperInstance"] = 16] = "SuperInstance"; - NodeCheckFlags3[NodeCheckFlags3["SuperStatic"] = 32] = "SuperStatic"; - NodeCheckFlags3[NodeCheckFlags3["ContextChecked"] = 64] = "ContextChecked"; - NodeCheckFlags3[NodeCheckFlags3["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync"; - NodeCheckFlags3[NodeCheckFlags3["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync"; - NodeCheckFlags3[NodeCheckFlags3["CaptureArguments"] = 512] = "CaptureArguments"; - NodeCheckFlags3[NodeCheckFlags3["EnumValuesComputed"] = 1024] = "EnumValuesComputed"; - NodeCheckFlags3[NodeCheckFlags3["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass"; - NodeCheckFlags3[NodeCheckFlags3["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding"; - NodeCheckFlags3[NodeCheckFlags3["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding"; - NodeCheckFlags3[NodeCheckFlags3["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding"; - NodeCheckFlags3[NodeCheckFlags3["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop"; - NodeCheckFlags3[NodeCheckFlags3["NeedsLoopOutParameter"] = 65536] = "NeedsLoopOutParameter"; - NodeCheckFlags3[NodeCheckFlags3["AssignmentsMarked"] = 131072] = "AssignmentsMarked"; - NodeCheckFlags3[NodeCheckFlags3["ContainsConstructorReference"] = 262144] = "ContainsConstructorReference"; - NodeCheckFlags3[NodeCheckFlags3["ConstructorReference"] = 536870912] = "ConstructorReference"; - NodeCheckFlags3[NodeCheckFlags3["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; - NodeCheckFlags3[NodeCheckFlags3["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; - NodeCheckFlags3[NodeCheckFlags3["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; - NodeCheckFlags3[NodeCheckFlags3["PartiallyTypeChecked"] = 8388608] = "PartiallyTypeChecked"; - NodeCheckFlags3[NodeCheckFlags3["LazyFlags"] = 539358128] = "LazyFlags"; - return NodeCheckFlags3; -})(NodeCheckFlags || {}); -var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => { - TypeFlags2[TypeFlags2["Any"] = 1] = "Any"; - TypeFlags2[TypeFlags2["Unknown"] = 2] = "Unknown"; - TypeFlags2[TypeFlags2["String"] = 4] = "String"; - TypeFlags2[TypeFlags2["Number"] = 8] = "Number"; - TypeFlags2[TypeFlags2["Boolean"] = 16] = "Boolean"; - TypeFlags2[TypeFlags2["Enum"] = 32] = "Enum"; - TypeFlags2[TypeFlags2["BigInt"] = 64] = "BigInt"; - TypeFlags2[TypeFlags2["StringLiteral"] = 128] = "StringLiteral"; - TypeFlags2[TypeFlags2["NumberLiteral"] = 256] = "NumberLiteral"; - TypeFlags2[TypeFlags2["BooleanLiteral"] = 512] = "BooleanLiteral"; - TypeFlags2[TypeFlags2["EnumLiteral"] = 1024] = "EnumLiteral"; - TypeFlags2[TypeFlags2["BigIntLiteral"] = 2048] = "BigIntLiteral"; - TypeFlags2[TypeFlags2["ESSymbol"] = 4096] = "ESSymbol"; - TypeFlags2[TypeFlags2["UniqueESSymbol"] = 8192] = "UniqueESSymbol"; - TypeFlags2[TypeFlags2["Void"] = 16384] = "Void"; - TypeFlags2[TypeFlags2["Undefined"] = 32768] = "Undefined"; - TypeFlags2[TypeFlags2["Null"] = 65536] = "Null"; - TypeFlags2[TypeFlags2["Never"] = 131072] = "Never"; - TypeFlags2[TypeFlags2["TypeParameter"] = 262144] = "TypeParameter"; - TypeFlags2[TypeFlags2["Object"] = 524288] = "Object"; - TypeFlags2[TypeFlags2["Union"] = 1048576] = "Union"; - TypeFlags2[TypeFlags2["Intersection"] = 2097152] = "Intersection"; - TypeFlags2[TypeFlags2["Index"] = 4194304] = "Index"; - TypeFlags2[TypeFlags2["IndexedAccess"] = 8388608] = "IndexedAccess"; - TypeFlags2[TypeFlags2["Conditional"] = 16777216] = "Conditional"; - TypeFlags2[TypeFlags2["Substitution"] = 33554432] = "Substitution"; - TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive"; - TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral"; - TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping"; - TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1"; - TypeFlags2[TypeFlags2["Reserved2"] = 1073741824] = "Reserved2"; - TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown"; - TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable"; - TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal"; - TypeFlags2[TypeFlags2["Unit"] = 109472] = "Unit"; - TypeFlags2[TypeFlags2["Freshable"] = 2976] = "Freshable"; - TypeFlags2[TypeFlags2["StringOrNumberLiteral"] = 384] = "StringOrNumberLiteral"; - TypeFlags2[TypeFlags2["StringOrNumberLiteralOrUnique"] = 8576] = "StringOrNumberLiteralOrUnique"; - TypeFlags2[TypeFlags2["DefinitelyFalsy"] = 117632] = "DefinitelyFalsy"; - TypeFlags2[TypeFlags2["PossiblyFalsy"] = 117724] = "PossiblyFalsy"; - TypeFlags2[TypeFlags2["Intrinsic"] = 67359327] = "Intrinsic"; - TypeFlags2[TypeFlags2["StringLike"] = 402653316] = "StringLike"; - TypeFlags2[TypeFlags2["NumberLike"] = 296] = "NumberLike"; - TypeFlags2[TypeFlags2["BigIntLike"] = 2112] = "BigIntLike"; - TypeFlags2[TypeFlags2["BooleanLike"] = 528] = "BooleanLike"; - TypeFlags2[TypeFlags2["EnumLike"] = 1056] = "EnumLike"; - TypeFlags2[TypeFlags2["ESSymbolLike"] = 12288] = "ESSymbolLike"; - TypeFlags2[TypeFlags2["VoidLike"] = 49152] = "VoidLike"; - TypeFlags2[TypeFlags2["Primitive"] = 402784252] = "Primitive"; - TypeFlags2[TypeFlags2["DefinitelyNonNullable"] = 470302716] = "DefinitelyNonNullable"; - TypeFlags2[TypeFlags2["DisjointDomains"] = 469892092] = "DisjointDomains"; - TypeFlags2[TypeFlags2["UnionOrIntersection"] = 3145728] = "UnionOrIntersection"; - TypeFlags2[TypeFlags2["StructuredType"] = 3670016] = "StructuredType"; - TypeFlags2[TypeFlags2["TypeVariable"] = 8650752] = "TypeVariable"; - TypeFlags2[TypeFlags2["InstantiableNonPrimitive"] = 58982400] = "InstantiableNonPrimitive"; - TypeFlags2[TypeFlags2["InstantiablePrimitive"] = 406847488] = "InstantiablePrimitive"; - TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable"; - TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable"; - TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType"; - TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable"; - TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton"; - TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable"; - TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask"; - TypeFlags2[TypeFlags2["IncludesMissingType"] = 262144 /* TypeParameter */] = "IncludesMissingType"; - TypeFlags2[TypeFlags2["IncludesNonWideningType"] = 4194304 /* Index */] = "IncludesNonWideningType"; - TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard"; - TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject"; - TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable"; - TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable"; - TypeFlags2[TypeFlags2["IncludesError"] = 1073741824 /* Reserved2 */] = "IncludesError"; - TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion"; - return TypeFlags2; -})(TypeFlags || {}); -var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => { - ObjectFlags3[ObjectFlags3["None"] = 0] = "None"; - ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class"; - ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface"; - ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference"; - ObjectFlags3[ObjectFlags3["Tuple"] = 8] = "Tuple"; - ObjectFlags3[ObjectFlags3["Anonymous"] = 16] = "Anonymous"; - ObjectFlags3[ObjectFlags3["Mapped"] = 32] = "Mapped"; - ObjectFlags3[ObjectFlags3["Instantiated"] = 64] = "Instantiated"; - ObjectFlags3[ObjectFlags3["ObjectLiteral"] = 128] = "ObjectLiteral"; - ObjectFlags3[ObjectFlags3["EvolvingArray"] = 256] = "EvolvingArray"; - ObjectFlags3[ObjectFlags3["ObjectLiteralPatternWithComputedProperties"] = 512] = "ObjectLiteralPatternWithComputedProperties"; - ObjectFlags3[ObjectFlags3["ReverseMapped"] = 1024] = "ReverseMapped"; - ObjectFlags3[ObjectFlags3["JsxAttributes"] = 2048] = "JsxAttributes"; - ObjectFlags3[ObjectFlags3["JSLiteral"] = 4096] = "JSLiteral"; - ObjectFlags3[ObjectFlags3["FreshLiteral"] = 8192] = "FreshLiteral"; - ObjectFlags3[ObjectFlags3["ArrayLiteral"] = 16384] = "ArrayLiteral"; - ObjectFlags3[ObjectFlags3["PrimitiveUnion"] = 32768] = "PrimitiveUnion"; - ObjectFlags3[ObjectFlags3["ContainsWideningType"] = 65536] = "ContainsWideningType"; - ObjectFlags3[ObjectFlags3["ContainsObjectOrArrayLiteral"] = 131072] = "ContainsObjectOrArrayLiteral"; - ObjectFlags3[ObjectFlags3["NonInferrableType"] = 262144] = "NonInferrableType"; - ObjectFlags3[ObjectFlags3["CouldContainTypeVariablesComputed"] = 524288] = "CouldContainTypeVariablesComputed"; - ObjectFlags3[ObjectFlags3["CouldContainTypeVariables"] = 1048576] = "CouldContainTypeVariables"; - ObjectFlags3[ObjectFlags3["ClassOrInterface"] = 3] = "ClassOrInterface"; - ObjectFlags3[ObjectFlags3["RequiresWidening"] = 196608] = "RequiresWidening"; - ObjectFlags3[ObjectFlags3["PropagatingFlags"] = 458752] = "PropagatingFlags"; - ObjectFlags3[ObjectFlags3["InstantiatedMapped"] = 96] = "InstantiatedMapped"; - ObjectFlags3[ObjectFlags3["ObjectTypeKindMask"] = 1343] = "ObjectTypeKindMask"; - ObjectFlags3[ObjectFlags3["ContainsSpread"] = 2097152] = "ContainsSpread"; - ObjectFlags3[ObjectFlags3["ObjectRestType"] = 4194304] = "ObjectRestType"; - ObjectFlags3[ObjectFlags3["InstantiationExpressionType"] = 8388608] = "InstantiationExpressionType"; - ObjectFlags3[ObjectFlags3["SingleSignatureType"] = 134217728] = "SingleSignatureType"; - ObjectFlags3[ObjectFlags3["IsClassInstanceClone"] = 16777216] = "IsClassInstanceClone"; - ObjectFlags3[ObjectFlags3["IdenticalBaseTypeCalculated"] = 33554432] = "IdenticalBaseTypeCalculated"; - ObjectFlags3[ObjectFlags3["IdenticalBaseTypeExists"] = 67108864] = "IdenticalBaseTypeExists"; - ObjectFlags3[ObjectFlags3["IsGenericTypeComputed"] = 2097152] = "IsGenericTypeComputed"; - ObjectFlags3[ObjectFlags3["IsGenericObjectType"] = 4194304] = "IsGenericObjectType"; - ObjectFlags3[ObjectFlags3["IsGenericIndexType"] = 8388608] = "IsGenericIndexType"; - ObjectFlags3[ObjectFlags3["IsGenericType"] = 12582912] = "IsGenericType"; - ObjectFlags3[ObjectFlags3["ContainsIntersections"] = 16777216] = "ContainsIntersections"; - ObjectFlags3[ObjectFlags3["IsUnknownLikeUnionComputed"] = 33554432] = "IsUnknownLikeUnionComputed"; - ObjectFlags3[ObjectFlags3["IsUnknownLikeUnion"] = 67108864] = "IsUnknownLikeUnion"; - ObjectFlags3[ObjectFlags3["IsNeverIntersectionComputed"] = 16777216] = "IsNeverIntersectionComputed"; - ObjectFlags3[ObjectFlags3["IsNeverIntersection"] = 33554432] = "IsNeverIntersection"; - ObjectFlags3[ObjectFlags3["IsConstrainedTypeVariable"] = 67108864] = "IsConstrainedTypeVariable"; - return ObjectFlags3; -})(ObjectFlags || {}); -var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => { - SignatureFlags4[SignatureFlags4["None"] = 0] = "None"; - SignatureFlags4[SignatureFlags4["HasRestParameter"] = 1] = "HasRestParameter"; - SignatureFlags4[SignatureFlags4["HasLiteralTypes"] = 2] = "HasLiteralTypes"; - SignatureFlags4[SignatureFlags4["Abstract"] = 4] = "Abstract"; - SignatureFlags4[SignatureFlags4["IsInnerCallChain"] = 8] = "IsInnerCallChain"; - SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain"; - SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; - SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable"; - SignatureFlags4[SignatureFlags4["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; - SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 167] = "PropagatingFlags"; - SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags"; - return SignatureFlags4; -})(SignatureFlags || {}); -var DiagnosticCategory = /* @__PURE__ */ ((DiagnosticCategory2) => { - DiagnosticCategory2[DiagnosticCategory2["Warning"] = 0] = "Warning"; - DiagnosticCategory2[DiagnosticCategory2["Error"] = 1] = "Error"; - DiagnosticCategory2[DiagnosticCategory2["Suggestion"] = 2] = "Suggestion"; - DiagnosticCategory2[DiagnosticCategory2["Message"] = 3] = "Message"; - return DiagnosticCategory2; -})(DiagnosticCategory || {}); -function diagnosticCategoryName(d, lowerCase = true) { - const name = DiagnosticCategory[d.category]; - return lowerCase ? name.toLowerCase() : name; -} -var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => { - ModuleResolutionKind2[ModuleResolutionKind2["Classic"] = 1] = "Classic"; - ModuleResolutionKind2[ModuleResolutionKind2["NodeJs"] = 2] = "NodeJs"; - ModuleResolutionKind2[ModuleResolutionKind2["Node10"] = 2] = "Node10"; - ModuleResolutionKind2[ModuleResolutionKind2["Node16"] = 3] = "Node16"; - ModuleResolutionKind2[ModuleResolutionKind2["NodeNext"] = 99] = "NodeNext"; - ModuleResolutionKind2[ModuleResolutionKind2["Bundler"] = 100] = "Bundler"; - return ModuleResolutionKind2; -})(ModuleResolutionKind || {}); -var ModuleKind = /* @__PURE__ */ ((ModuleKind2) => { - ModuleKind2[ModuleKind2["None"] = 0] = "None"; - ModuleKind2[ModuleKind2["CommonJS"] = 1] = "CommonJS"; - ModuleKind2[ModuleKind2["AMD"] = 2] = "AMD"; - ModuleKind2[ModuleKind2["UMD"] = 3] = "UMD"; - ModuleKind2[ModuleKind2["System"] = 4] = "System"; - ModuleKind2[ModuleKind2["ES2015"] = 5] = "ES2015"; - ModuleKind2[ModuleKind2["ES2020"] = 6] = "ES2020"; - ModuleKind2[ModuleKind2["ES2022"] = 7] = "ES2022"; - ModuleKind2[ModuleKind2["ESNext"] = 99] = "ESNext"; - ModuleKind2[ModuleKind2["Node16"] = 100] = "Node16"; - ModuleKind2[ModuleKind2["Node18"] = 101] = "Node18"; - ModuleKind2[ModuleKind2["NodeNext"] = 199] = "NodeNext"; - ModuleKind2[ModuleKind2["Preserve"] = 200] = "Preserve"; - return ModuleKind2; -})(ModuleKind || {}); -var ScriptKind = /* @__PURE__ */ ((ScriptKind3) => { - ScriptKind3[ScriptKind3["Unknown"] = 0] = "Unknown"; - ScriptKind3[ScriptKind3["JS"] = 1] = "JS"; - ScriptKind3[ScriptKind3["JSX"] = 2] = "JSX"; - ScriptKind3[ScriptKind3["TS"] = 3] = "TS"; - ScriptKind3[ScriptKind3["TSX"] = 4] = "TSX"; - ScriptKind3[ScriptKind3["External"] = 5] = "External"; - ScriptKind3[ScriptKind3["JSON"] = 6] = "JSON"; - ScriptKind3[ScriptKind3["Deferred"] = 7] = "Deferred"; - return ScriptKind3; -})(ScriptKind || {}); -var TransformFlags = /* @__PURE__ */ ((TransformFlags3) => { - TransformFlags3[TransformFlags3["None"] = 0] = "None"; - TransformFlags3[TransformFlags3["ContainsTypeScript"] = 1] = "ContainsTypeScript"; - TransformFlags3[TransformFlags3["ContainsJsx"] = 2] = "ContainsJsx"; - TransformFlags3[TransformFlags3["ContainsESNext"] = 4] = "ContainsESNext"; - TransformFlags3[TransformFlags3["ContainsES2022"] = 8] = "ContainsES2022"; - TransformFlags3[TransformFlags3["ContainsES2021"] = 16] = "ContainsES2021"; - TransformFlags3[TransformFlags3["ContainsES2020"] = 32] = "ContainsES2020"; - TransformFlags3[TransformFlags3["ContainsES2019"] = 64] = "ContainsES2019"; - TransformFlags3[TransformFlags3["ContainsES2018"] = 128] = "ContainsES2018"; - TransformFlags3[TransformFlags3["ContainsES2017"] = 256] = "ContainsES2017"; - TransformFlags3[TransformFlags3["ContainsES2016"] = 512] = "ContainsES2016"; - TransformFlags3[TransformFlags3["ContainsES2015"] = 1024] = "ContainsES2015"; - TransformFlags3[TransformFlags3["ContainsGenerator"] = 2048] = "ContainsGenerator"; - TransformFlags3[TransformFlags3["ContainsDestructuringAssignment"] = 4096] = "ContainsDestructuringAssignment"; - TransformFlags3[TransformFlags3["ContainsTypeScriptClassSyntax"] = 8192] = "ContainsTypeScriptClassSyntax"; - TransformFlags3[TransformFlags3["ContainsLexicalThis"] = 16384] = "ContainsLexicalThis"; - TransformFlags3[TransformFlags3["ContainsRestOrSpread"] = 32768] = "ContainsRestOrSpread"; - TransformFlags3[TransformFlags3["ContainsObjectRestOrSpread"] = 65536] = "ContainsObjectRestOrSpread"; - TransformFlags3[TransformFlags3["ContainsComputedPropertyName"] = 131072] = "ContainsComputedPropertyName"; - TransformFlags3[TransformFlags3["ContainsBlockScopedBinding"] = 262144] = "ContainsBlockScopedBinding"; - TransformFlags3[TransformFlags3["ContainsBindingPattern"] = 524288] = "ContainsBindingPattern"; - TransformFlags3[TransformFlags3["ContainsYield"] = 1048576] = "ContainsYield"; - TransformFlags3[TransformFlags3["ContainsAwait"] = 2097152] = "ContainsAwait"; - TransformFlags3[TransformFlags3["ContainsHoistedDeclarationOrCompletion"] = 4194304] = "ContainsHoistedDeclarationOrCompletion"; - TransformFlags3[TransformFlags3["ContainsDynamicImport"] = 8388608] = "ContainsDynamicImport"; - TransformFlags3[TransformFlags3["ContainsClassFields"] = 16777216] = "ContainsClassFields"; - TransformFlags3[TransformFlags3["ContainsDecorators"] = 33554432] = "ContainsDecorators"; - TransformFlags3[TransformFlags3["ContainsPossibleTopLevelAwait"] = 67108864] = "ContainsPossibleTopLevelAwait"; - TransformFlags3[TransformFlags3["ContainsLexicalSuper"] = 134217728] = "ContainsLexicalSuper"; - TransformFlags3[TransformFlags3["ContainsUpdateExpressionForIdentifier"] = 268435456] = "ContainsUpdateExpressionForIdentifier"; - TransformFlags3[TransformFlags3["ContainsPrivateIdentifierInExpression"] = 536870912] = "ContainsPrivateIdentifierInExpression"; - TransformFlags3[TransformFlags3["HasComputedFlags"] = -2147483648] = "HasComputedFlags"; - TransformFlags3[TransformFlags3["AssertTypeScript"] = 1 /* ContainsTypeScript */] = "AssertTypeScript"; - TransformFlags3[TransformFlags3["AssertJsx"] = 2 /* ContainsJsx */] = "AssertJsx"; - TransformFlags3[TransformFlags3["AssertESNext"] = 4 /* ContainsESNext */] = "AssertESNext"; - TransformFlags3[TransformFlags3["AssertES2022"] = 8 /* ContainsES2022 */] = "AssertES2022"; - TransformFlags3[TransformFlags3["AssertES2021"] = 16 /* ContainsES2021 */] = "AssertES2021"; - TransformFlags3[TransformFlags3["AssertES2020"] = 32 /* ContainsES2020 */] = "AssertES2020"; - TransformFlags3[TransformFlags3["AssertES2019"] = 64 /* ContainsES2019 */] = "AssertES2019"; - TransformFlags3[TransformFlags3["AssertES2018"] = 128 /* ContainsES2018 */] = "AssertES2018"; - TransformFlags3[TransformFlags3["AssertES2017"] = 256 /* ContainsES2017 */] = "AssertES2017"; - TransformFlags3[TransformFlags3["AssertES2016"] = 512 /* ContainsES2016 */] = "AssertES2016"; - TransformFlags3[TransformFlags3["AssertES2015"] = 1024 /* ContainsES2015 */] = "AssertES2015"; - TransformFlags3[TransformFlags3["AssertGenerator"] = 2048 /* ContainsGenerator */] = "AssertGenerator"; - TransformFlags3[TransformFlags3["AssertDestructuringAssignment"] = 4096 /* ContainsDestructuringAssignment */] = "AssertDestructuringAssignment"; - TransformFlags3[TransformFlags3["OuterExpressionExcludes"] = -2147483648 /* HasComputedFlags */] = "OuterExpressionExcludes"; - TransformFlags3[TransformFlags3["PropertyAccessExcludes"] = -2147483648 /* OuterExpressionExcludes */] = "PropertyAccessExcludes"; - TransformFlags3[TransformFlags3["NodeExcludes"] = -2147483648 /* PropertyAccessExcludes */] = "NodeExcludes"; - TransformFlags3[TransformFlags3["ArrowFunctionExcludes"] = -2072174592] = "ArrowFunctionExcludes"; - TransformFlags3[TransformFlags3["FunctionExcludes"] = -1937940480] = "FunctionExcludes"; - TransformFlags3[TransformFlags3["ConstructorExcludes"] = -1937948672] = "ConstructorExcludes"; - TransformFlags3[TransformFlags3["MethodOrAccessorExcludes"] = -2005057536] = "MethodOrAccessorExcludes"; - TransformFlags3[TransformFlags3["PropertyExcludes"] = -2013249536] = "PropertyExcludes"; - TransformFlags3[TransformFlags3["ClassExcludes"] = -2147344384] = "ClassExcludes"; - TransformFlags3[TransformFlags3["ModuleExcludes"] = -1941676032] = "ModuleExcludes"; - TransformFlags3[TransformFlags3["TypeExcludes"] = -2] = "TypeExcludes"; - TransformFlags3[TransformFlags3["ObjectLiteralExcludes"] = -2147278848] = "ObjectLiteralExcludes"; - TransformFlags3[TransformFlags3["ArrayLiteralOrCallOrNewExcludes"] = -2147450880] = "ArrayLiteralOrCallOrNewExcludes"; - TransformFlags3[TransformFlags3["VariableDeclarationListExcludes"] = -2146893824] = "VariableDeclarationListExcludes"; - TransformFlags3[TransformFlags3["ParameterExcludes"] = -2147483648 /* NodeExcludes */] = "ParameterExcludes"; - TransformFlags3[TransformFlags3["CatchClauseExcludes"] = -2147418112] = "CatchClauseExcludes"; - TransformFlags3[TransformFlags3["BindingPatternExcludes"] = -2147450880] = "BindingPatternExcludes"; - TransformFlags3[TransformFlags3["ContainsLexicalThisOrSuper"] = 134234112] = "ContainsLexicalThisOrSuper"; - TransformFlags3[TransformFlags3["PropertyNamePropagatingFlags"] = 134234112] = "PropertyNamePropagatingFlags"; - return TransformFlags3; -})(TransformFlags || {}); -var SnippetKind = /* @__PURE__ */ ((SnippetKind3) => { - SnippetKind3[SnippetKind3["TabStop"] = 0] = "TabStop"; - SnippetKind3[SnippetKind3["Placeholder"] = 1] = "Placeholder"; - SnippetKind3[SnippetKind3["Choice"] = 2] = "Choice"; - SnippetKind3[SnippetKind3["Variable"] = 3] = "Variable"; - return SnippetKind3; -})(SnippetKind || {}); -var EmitFlags = /* @__PURE__ */ ((EmitFlags3) => { - EmitFlags3[EmitFlags3["None"] = 0] = "None"; - EmitFlags3[EmitFlags3["SingleLine"] = 1] = "SingleLine"; - EmitFlags3[EmitFlags3["MultiLine"] = 2] = "MultiLine"; - EmitFlags3[EmitFlags3["AdviseOnEmitNode"] = 4] = "AdviseOnEmitNode"; - EmitFlags3[EmitFlags3["NoSubstitution"] = 8] = "NoSubstitution"; - EmitFlags3[EmitFlags3["CapturesThis"] = 16] = "CapturesThis"; - EmitFlags3[EmitFlags3["NoLeadingSourceMap"] = 32] = "NoLeadingSourceMap"; - EmitFlags3[EmitFlags3["NoTrailingSourceMap"] = 64] = "NoTrailingSourceMap"; - EmitFlags3[EmitFlags3["NoSourceMap"] = 96] = "NoSourceMap"; - EmitFlags3[EmitFlags3["NoNestedSourceMaps"] = 128] = "NoNestedSourceMaps"; - EmitFlags3[EmitFlags3["NoTokenLeadingSourceMaps"] = 256] = "NoTokenLeadingSourceMaps"; - EmitFlags3[EmitFlags3["NoTokenTrailingSourceMaps"] = 512] = "NoTokenTrailingSourceMaps"; - EmitFlags3[EmitFlags3["NoTokenSourceMaps"] = 768] = "NoTokenSourceMaps"; - EmitFlags3[EmitFlags3["NoLeadingComments"] = 1024] = "NoLeadingComments"; - EmitFlags3[EmitFlags3["NoTrailingComments"] = 2048] = "NoTrailingComments"; - EmitFlags3[EmitFlags3["NoComments"] = 3072] = "NoComments"; - EmitFlags3[EmitFlags3["NoNestedComments"] = 4096] = "NoNestedComments"; - EmitFlags3[EmitFlags3["HelperName"] = 8192] = "HelperName"; - EmitFlags3[EmitFlags3["ExportName"] = 16384] = "ExportName"; - EmitFlags3[EmitFlags3["LocalName"] = 32768] = "LocalName"; - EmitFlags3[EmitFlags3["InternalName"] = 65536] = "InternalName"; - EmitFlags3[EmitFlags3["Indented"] = 131072] = "Indented"; - EmitFlags3[EmitFlags3["NoIndentation"] = 262144] = "NoIndentation"; - EmitFlags3[EmitFlags3["AsyncFunctionBody"] = 524288] = "AsyncFunctionBody"; - EmitFlags3[EmitFlags3["ReuseTempVariableScope"] = 1048576] = "ReuseTempVariableScope"; - EmitFlags3[EmitFlags3["CustomPrologue"] = 2097152] = "CustomPrologue"; - EmitFlags3[EmitFlags3["NoHoisting"] = 4194304] = "NoHoisting"; - EmitFlags3[EmitFlags3["Iterator"] = 8388608] = "Iterator"; - EmitFlags3[EmitFlags3["NoAsciiEscaping"] = 16777216] = "NoAsciiEscaping"; - return EmitFlags3; -})(EmitFlags || {}); -var LanguageFeatureMinimumTarget = { - Classes: 2 /* ES2015 */, - ForOf: 2 /* ES2015 */, - Generators: 2 /* ES2015 */, - Iteration: 2 /* ES2015 */, - SpreadElements: 2 /* ES2015 */, - RestElements: 2 /* ES2015 */, - TaggedTemplates: 2 /* ES2015 */, - DestructuringAssignment: 2 /* ES2015 */, - BindingPatterns: 2 /* ES2015 */, - ArrowFunctions: 2 /* ES2015 */, - BlockScopedVariables: 2 /* ES2015 */, - ObjectAssign: 2 /* ES2015 */, - RegularExpressionFlagsUnicode: 2 /* ES2015 */, - RegularExpressionFlagsSticky: 2 /* ES2015 */, - Exponentiation: 3 /* ES2016 */, - AsyncFunctions: 4 /* ES2017 */, - ForAwaitOf: 5 /* ES2018 */, - AsyncGenerators: 5 /* ES2018 */, - AsyncIteration: 5 /* ES2018 */, - ObjectSpreadRest: 5 /* ES2018 */, - RegularExpressionFlagsDotAll: 5 /* ES2018 */, - BindinglessCatch: 6 /* ES2019 */, - BigInt: 7 /* ES2020 */, - NullishCoalesce: 7 /* ES2020 */, - OptionalChaining: 7 /* ES2020 */, - LogicalAssignment: 8 /* ES2021 */, - TopLevelAwait: 9 /* ES2022 */, - ClassFields: 9 /* ES2022 */, - PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */, - RegularExpressionFlagsHasIndices: 9 /* ES2022 */, - ShebangComments: 10 /* ES2023 */, - RegularExpressionFlagsUnicodeSets: 11 /* ES2024 */, - UsingAndAwaitUsing: 99 /* ESNext */, - ClassAndClassElementDecorators: 99 /* ESNext */ -}; -var commentPragmas = { - "reference": { - args: [ - { name: "types", optional: true, captureSpan: true }, - { name: "lib", optional: true, captureSpan: true }, - { name: "path", optional: true, captureSpan: true }, - { name: "no-default-lib", optional: true }, - { name: "resolution-mode", optional: true }, - { name: "preserve", optional: true } - ], - kind: 1 /* TripleSlashXML */ - }, - "amd-dependency": { - args: [{ name: "path" }, { name: "name", optional: true }], - kind: 1 /* TripleSlashXML */ - }, - "amd-module": { - args: [{ name: "name" }], - kind: 1 /* TripleSlashXML */ - }, - "ts-check": { - kind: 2 /* SingleLine */ - }, - "ts-nocheck": { - kind: 2 /* SingleLine */ - }, - "jsx": { - args: [{ name: "factory" }], - kind: 4 /* MultiLine */ - }, - "jsxfrag": { - args: [{ name: "factory" }], - kind: 4 /* MultiLine */ - }, - "jsximportsource": { - args: [{ name: "factory" }], - kind: 4 /* MultiLine */ - }, - "jsxruntime": { - args: [{ name: "factory" }], - kind: 4 /* MultiLine */ - } -}; - -// src/compiler/sys.ts -function generateDjb2Hash(data) { - let acc = 5381; - for (let i = 0; i < data.length; i++) { - acc = (acc << 5) + acc + data.charCodeAt(i); - } - return acc.toString(); -} -var PollingInterval = /* @__PURE__ */ ((PollingInterval3) => { - PollingInterval3[PollingInterval3["High"] = 2e3] = "High"; - PollingInterval3[PollingInterval3["Medium"] = 500] = "Medium"; - PollingInterval3[PollingInterval3["Low"] = 250] = "Low"; - return PollingInterval3; -})(PollingInterval || {}); -var missingFileModifiedTime = /* @__PURE__ */ new Date(0); -function getModifiedTime(host, fileName) { - return host.getModifiedTime(fileName) || missingFileModifiedTime; -} -function createPollingIntervalBasedLevels(levels) { - return { - [250 /* Low */]: levels.Low, - [500 /* Medium */]: levels.Medium, - [2e3 /* High */]: levels.High - }; -} -var defaultChunkLevels = { Low: 32, Medium: 64, High: 256 }; -var pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels); -var unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels); -function setCustomPollingValues(system) { - if (!system.getEnvironmentVariable) { - return; - } - const pollingIntervalChanged = setCustomLevels("TSC_WATCH_POLLINGINTERVAL", PollingInterval); - pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize; - unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || unchangedPollThresholds; - function getLevel(envVar, level) { - return system.getEnvironmentVariable(`${envVar}_${level.toUpperCase()}`); - } - function getCustomLevels(baseVariable) { - let customLevels; - setCustomLevel("Low"); - setCustomLevel("Medium"); - setCustomLevel("High"); - return customLevels; - function setCustomLevel(level) { - const customLevel = getLevel(baseVariable, level); - if (customLevel) { - (customLevels || (customLevels = {}))[level] = Number(customLevel); - } - } - } - function setCustomLevels(baseVariable, levels) { - const customLevels = getCustomLevels(baseVariable); - if (customLevels) { - setLevel("Low"); - setLevel("Medium"); - setLevel("High"); - return true; - } - return false; - function setLevel(level) { - levels[level] = customLevels[level] || levels[level]; - } - } - function getCustomPollingBasedLevels(baseVariable, defaultLevels) { - const customLevels = getCustomLevels(baseVariable); - return (pollingIntervalChanged || customLevels) && createPollingIntervalBasedLevels(customLevels ? { ...defaultLevels, ...customLevels } : defaultLevels); - } -} -function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) { - let definedValueCopyToIndex = pollIndex; - for (let canVisit = queue.length; chunkSize && canVisit; nextPollIndex(), canVisit--) { - const watchedFile = queue[pollIndex]; - if (!watchedFile) { - continue; - } else if (watchedFile.isClosed) { - queue[pollIndex] = void 0; - continue; - } - chunkSize--; - const fileChanged = onWatchedFileStat(watchedFile, getModifiedTime(host, watchedFile.fileName)); - if (watchedFile.isClosed) { - queue[pollIndex] = void 0; - continue; - } - callbackOnWatchFileStat == null ? void 0 : callbackOnWatchFileStat(watchedFile, pollIndex, fileChanged); - if (queue[pollIndex]) { - if (definedValueCopyToIndex < pollIndex) { - queue[definedValueCopyToIndex] = watchedFile; - queue[pollIndex] = void 0; - } - definedValueCopyToIndex++; - } - } - return pollIndex; - function nextPollIndex() { - pollIndex++; - if (pollIndex === queue.length) { - if (definedValueCopyToIndex < pollIndex) { - queue.length = definedValueCopyToIndex; - } - pollIndex = 0; - definedValueCopyToIndex = 0; - } - } -} -function createDynamicPriorityPollingWatchFile(host) { - const watchedFiles = []; - const changedFilesInLastPoll = []; - const lowPollingIntervalQueue = createPollingIntervalQueue(250 /* Low */); - const mediumPollingIntervalQueue = createPollingIntervalQueue(500 /* Medium */); - const highPollingIntervalQueue = createPollingIntervalQueue(2e3 /* High */); - return watchFile2; - function watchFile2(fileName, callback, defaultPollingInterval) { - const file = { - fileName, - callback, - unchangedPolls: 0, - mtime: getModifiedTime(host, fileName) - }; - watchedFiles.push(file); - addToPollingIntervalQueue(file, defaultPollingInterval); - return { - close: () => { - file.isClosed = true; - unorderedRemoveItem(watchedFiles, file); - } - }; - } - function createPollingIntervalQueue(pollingInterval) { - const queue = []; - queue.pollingInterval = pollingInterval; - queue.pollIndex = 0; - queue.pollScheduled = false; - return queue; - } - function pollPollingIntervalQueue(_timeoutType, queue) { - queue.pollIndex = pollQueue(queue, queue.pollingInterval, queue.pollIndex, pollingChunkSize[queue.pollingInterval]); - if (queue.length) { - scheduleNextPoll(queue.pollingInterval); - } else { - Debug.assert(queue.pollIndex === 0); - queue.pollScheduled = false; - } - } - function pollLowPollingIntervalQueue(_timeoutType, queue) { - pollQueue( - changedFilesInLastPoll, - 250 /* Low */, - /*pollIndex*/ - 0, - changedFilesInLastPoll.length - ); - pollPollingIntervalQueue(_timeoutType, queue); - if (!queue.pollScheduled && changedFilesInLastPoll.length) { - scheduleNextPoll(250 /* Low */); - } - } - function pollQueue(queue, pollingInterval, pollIndex, chunkSize) { - return pollWatchedFileQueue( - host, - queue, - pollIndex, - chunkSize, - onWatchFileStat - ); - function onWatchFileStat(watchedFile, pollIndex2, fileChanged) { - if (fileChanged) { - watchedFile.unchangedPolls = 0; - if (queue !== changedFilesInLastPoll) { - queue[pollIndex2] = void 0; - addChangedFileToLowPollingIntervalQueue(watchedFile); - } - } else if (watchedFile.unchangedPolls !== unchangedPollThresholds[pollingInterval]) { - watchedFile.unchangedPolls++; - } else if (queue === changedFilesInLastPoll) { - watchedFile.unchangedPolls = 1; - queue[pollIndex2] = void 0; - addToPollingIntervalQueue(watchedFile, 250 /* Low */); - } else if (pollingInterval !== 2e3 /* High */) { - watchedFile.unchangedPolls++; - queue[pollIndex2] = void 0; - addToPollingIntervalQueue(watchedFile, pollingInterval === 250 /* Low */ ? 500 /* Medium */ : 2e3 /* High */); - } - } - } - function pollingIntervalQueue(pollingInterval) { - switch (pollingInterval) { - case 250 /* Low */: - return lowPollingIntervalQueue; - case 500 /* Medium */: - return mediumPollingIntervalQueue; - case 2e3 /* High */: - return highPollingIntervalQueue; - } - } - function addToPollingIntervalQueue(file, pollingInterval) { - pollingIntervalQueue(pollingInterval).push(file); - scheduleNextPollIfNotAlreadyScheduled(pollingInterval); - } - function addChangedFileToLowPollingIntervalQueue(file) { - changedFilesInLastPoll.push(file); - scheduleNextPollIfNotAlreadyScheduled(250 /* Low */); - } - function scheduleNextPollIfNotAlreadyScheduled(pollingInterval) { - if (!pollingIntervalQueue(pollingInterval).pollScheduled) { - scheduleNextPoll(pollingInterval); - } - } - function scheduleNextPoll(pollingInterval) { - pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); - } -} -function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2, getModifiedTime3, fsWatchWithTimestamp) { - const fileWatcherCallbacks = createMultiMap(); - const fileTimestamps = fsWatchWithTimestamp ? /* @__PURE__ */ new Map() : void 0; - const dirWatchers = /* @__PURE__ */ new Map(); - const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); - return nonPollingWatchFile; - function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { - const filePath = toCanonicalName(fileName); - if (fileWatcherCallbacks.add(filePath, callback).length === 1 && fileTimestamps) { - fileTimestamps.set(filePath, getModifiedTime3(fileName) || missingFileModifiedTime); - } - const dirPath = getDirectoryPath(filePath) || "."; - const watcher = dirWatchers.get(dirPath) || createDirectoryWatcher(getDirectoryPath(fileName) || ".", dirPath, fallbackOptions); - watcher.referenceCount++; - return { - close: () => { - if (watcher.referenceCount === 1) { - watcher.close(); - dirWatchers.delete(dirPath); - } else { - watcher.referenceCount--; - } - fileWatcherCallbacks.remove(filePath, callback); - } - }; - } - function createDirectoryWatcher(dirName, dirPath, fallbackOptions) { - const watcher = fsWatch( - dirName, - 1 /* Directory */, - (eventName, relativeFileName) => { - if (!isString(relativeFileName)) return; - const fileName = getNormalizedAbsolutePath(relativeFileName, dirName); - const filePath = toCanonicalName(fileName); - const callbacks = fileName && fileWatcherCallbacks.get(filePath); - if (callbacks) { - let currentModifiedTime; - let eventKind = 1 /* Changed */; - if (fileTimestamps) { - const existingTime = fileTimestamps.get(filePath); - if (eventName === "change") { - currentModifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime; - if (currentModifiedTime.getTime() === existingTime.getTime()) return; - } - currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime); - fileTimestamps.set(filePath, currentModifiedTime); - if (existingTime === missingFileModifiedTime) eventKind = 0 /* Created */; - else if (currentModifiedTime === missingFileModifiedTime) eventKind = 2 /* Deleted */; - } - for (const fileCallback of callbacks) { - fileCallback(fileName, eventKind, currentModifiedTime); - } - } - }, - /*recursive*/ - false, - 500 /* Medium */, - fallbackOptions - ); - watcher.referenceCount = 0; - dirWatchers.set(dirPath, watcher); - return watcher; - } -} -function createFixedChunkSizePollingWatchFile(host) { - const watchedFiles = []; - let pollIndex = 0; - let pollScheduled; - return watchFile2; - function watchFile2(fileName, callback) { - const file = { - fileName, - callback, - mtime: getModifiedTime(host, fileName) - }; - watchedFiles.push(file); - scheduleNextPoll(); - return { - close: () => { - file.isClosed = true; - unorderedRemoveItem(watchedFiles, file); - } - }; - } - function pollQueue() { - pollScheduled = void 0; - pollIndex = pollWatchedFileQueue(host, watchedFiles, pollIndex, pollingChunkSize[250 /* Low */]); - scheduleNextPoll(); - } - function scheduleNextPoll() { - if (!watchedFiles.length || pollScheduled) return; - pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); - } -} -function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { - const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); - const path = toCanonicalFileName(name); - const existing = cache.get(path); - if (existing) { - existing.callbacks.push(callback); - } else { - cache.set(path, { - watcher: createWatcher( - // Cant infer types correctly so lets satisfy checker - (param1, param2, param3) => { - var _a; - return (_a = cache.get(path)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3)); - } - ), - callbacks: [callback] - }); - } - return { - close: () => { - const watcher = cache.get(path); - if (!watcher) return; - if (!orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length) return; - cache.delete(path); - closeFileWatcherOf(watcher); - } - }; -} -function onWatchedFileStat(watchedFile, modifiedTime) { - const oldTime = watchedFile.mtime.getTime(); - const newTime = modifiedTime.getTime(); - if (oldTime !== newTime) { - watchedFile.mtime = modifiedTime; - watchedFile.callback(watchedFile.fileName, getFileWatcherEventKind(oldTime, newTime), modifiedTime); - return true; - } - return false; -} -function getFileWatcherEventKind(oldTime, newTime) { - return oldTime === 0 ? 0 /* Created */ : newTime === 0 ? 2 /* Deleted */ : 1 /* Changed */; -} -var ignoredPaths = ["/node_modules/.", "/.git", "/.#"]; -var curSysLog = noop; -function sysLog(s) { - return curSysLog(s); -} -function setSysLog(logger) { - curSysLog = logger; -} -function createDirectoryWatcherSupportingRecursive({ - watchDirectory, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - getCurrentDirectory, - getAccessibleSortedChildDirectories, - fileSystemEntryExists, - realpath, - setTimeout: setTimeout2, - clearTimeout: clearTimeout2 -}) { - const cache = /* @__PURE__ */ new Map(); - const callbackCache = createMultiMap(); - const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); - let timerToUpdateChildWatches; - const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); - const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); - return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); - function createDirectoryWatcher(dirName, options, callback, link) { - const dirPath = toCanonicalFilePath(dirName); - let directoryWatcher = cache.get(dirPath); - if (directoryWatcher) { - directoryWatcher.refCount++; - } else { - directoryWatcher = { - watcher: watchDirectory( - dirName, - (fileName) => { - var _a; - if (isIgnoredPath(fileName, options)) return; - if (options == null ? void 0 : options.synchronousWatchDirectory) { - if (!((_a = cache.get(dirPath)) == null ? void 0 : _a.targetWatcher)) invokeCallbacks(dirName, dirPath, fileName); - updateChildWatches(dirName, dirPath, options); - } else { - nonSyncUpdateChildWatches(dirName, dirPath, fileName, options); - } - }, - /*recursive*/ - false, - options - ), - refCount: 1, - childWatches: emptyArray, - targetWatcher: void 0, - links: void 0 - }; - cache.set(dirPath, directoryWatcher); - updateChildWatches(dirName, dirPath, options); - } - if (link) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link); - const callbackToAdd = callback && { dirName, callback }; - if (callbackToAdd) { - callbackCache.add(dirPath, callbackToAdd); - } - return { - dirName, - close: () => { - var _a; - const directoryWatcher2 = Debug.checkDefined(cache.get(dirPath)); - if (callbackToAdd) callbackCache.remove(dirPath, callbackToAdd); - if (link) (_a = directoryWatcher2.links) == null ? void 0 : _a.delete(link); - directoryWatcher2.refCount--; - if (directoryWatcher2.refCount) return; - cache.delete(dirPath); - directoryWatcher2.links = void 0; - closeFileWatcherOf(directoryWatcher2); - closeTargetWatcher(directoryWatcher2); - directoryWatcher2.childWatches.forEach(closeFileWatcher); - } - }; - } - function invokeCallbacks(dirName, dirPath, fileNameOrInvokeMap, fileNames) { - var _a, _b; - let fileName; - let invokeMap; - if (isString(fileNameOrInvokeMap)) { - fileName = fileNameOrInvokeMap; - } else { - invokeMap = fileNameOrInvokeMap; - } - callbackCache.forEach((callbacks, rootDirName) => { - if (invokeMap && invokeMap.get(rootDirName) === true) return; - if (rootDirName === dirPath || startsWith(dirPath, rootDirName) && dirPath[rootDirName.length] === directorySeparator) { - if (invokeMap) { - if (fileNames) { - const existing = invokeMap.get(rootDirName); - if (existing) { - existing.push(...fileNames); - } else { - invokeMap.set(rootDirName, fileNames.slice()); - } - } else { - invokeMap.set(rootDirName, true); - } - } else { - callbacks.forEach(({ callback }) => callback(fileName)); - } - } - }); - (_b = (_a = cache.get(dirPath)) == null ? void 0 : _a.links) == null ? void 0 : _b.forEach((link) => { - const toPathInLink = (fileName2) => combinePaths(link, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath)); - if (invokeMap) { - invokeCallbacks(link, toCanonicalFilePath(link), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink)); - } else { - invokeCallbacks(link, toCanonicalFilePath(link), toPathInLink(fileName)); - } - }); - } - function nonSyncUpdateChildWatches(dirName, dirPath, fileName, options) { - const parentWatcher = cache.get(dirPath); - if (parentWatcher && fileSystemEntryExists(dirName, 1 /* Directory */)) { - scheduleUpdateChildWatches(dirName, dirPath, fileName, options); - return; - } - invokeCallbacks(dirName, dirPath, fileName); - closeTargetWatcher(parentWatcher); - removeChildWatches(parentWatcher); - } - function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) { - const existing = cacheToUpdateChildWatches.get(dirPath); - if (existing) { - existing.fileNames.push(fileName); - } else { - cacheToUpdateChildWatches.set(dirPath, { dirName, options, fileNames: [fileName] }); - } - if (timerToUpdateChildWatches) { - clearTimeout2(timerToUpdateChildWatches); - timerToUpdateChildWatches = void 0; - } - timerToUpdateChildWatches = setTimeout2(onTimerToUpdateChildWatches, 1e3, "timerToUpdateChildWatches"); - } - function onTimerToUpdateChildWatches() { - var _a; - timerToUpdateChildWatches = void 0; - sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`); - const start = timestamp(); - const invokeMap = /* @__PURE__ */ new Map(); - while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) { - const result = cacheToUpdateChildWatches.entries().next(); - Debug.assert(!result.done); - const { value: [dirPath, { dirName, options, fileNames }] } = result; - cacheToUpdateChildWatches.delete(dirPath); - const hasChanges = updateChildWatches(dirName, dirPath, options); - if (!((_a = cache.get(dirPath)) == null ? void 0 : _a.targetWatcher)) invokeCallbacks(dirName, dirPath, invokeMap, hasChanges ? void 0 : fileNames); - } - sysLog(`sysLog:: invokingWatchers:: Elapsed:: ${timestamp() - start}ms:: ${cacheToUpdateChildWatches.size}`); - callbackCache.forEach((callbacks, rootDirName) => { - const existing = invokeMap.get(rootDirName); - if (existing) { - callbacks.forEach(({ callback, dirName }) => { - if (isArray(existing)) { - existing.forEach(callback); - } else { - callback(dirName); - } - }); - } - }); - const elapsed = timestamp() - start; - sysLog(`sysLog:: Elapsed:: ${elapsed}ms:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size} ${timerToUpdateChildWatches}`); - } - function removeChildWatches(parentWatcher) { - if (!parentWatcher) return; - const existingChildWatches = parentWatcher.childWatches; - parentWatcher.childWatches = emptyArray; - for (const childWatcher of existingChildWatches) { - childWatcher.close(); - removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName))); - } - } - function closeTargetWatcher(watcher) { - if (watcher == null ? void 0 : watcher.targetWatcher) { - watcher.targetWatcher.close(); - watcher.targetWatcher = void 0; - } - } - function updateChildWatches(parentDir, parentDirPath, options) { - const parentWatcher = cache.get(parentDirPath); - if (!parentWatcher) return false; - const target = normalizePath(realpath(parentDir)); - let hasChanges; - let newChildWatches; - if (filePathComparer(target, parentDir) === 0 /* EqualTo */) { - hasChanges = enumerateInsertsAndDeletes( - fileSystemEntryExists(parentDir, 1 /* Directory */) ? mapDefined(getAccessibleSortedChildDirectories(parentDir), (child) => { - const childFullName = getNormalizedAbsolutePath(child, parentDir); - return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, normalizePath(realpath(childFullName))) === 0 /* EqualTo */ ? childFullName : void 0; - }) : emptyArray, - parentWatcher.childWatches, - (child, childWatcher) => filePathComparer(child, childWatcher.dirName), - createAndAddChildDirectoryWatcher, - closeFileWatcher, - addChildDirectoryWatcher - ); - } else if (parentWatcher.targetWatcher && filePathComparer(target, parentWatcher.targetWatcher.dirName) === 0 /* EqualTo */) { - hasChanges = false; - Debug.assert(parentWatcher.childWatches === emptyArray); - } else { - closeTargetWatcher(parentWatcher); - parentWatcher.targetWatcher = createDirectoryWatcher( - target, - options, - /*callback*/ - void 0, - parentDir - ); - parentWatcher.childWatches.forEach(closeFileWatcher); - hasChanges = true; - } - parentWatcher.childWatches = newChildWatches || emptyArray; - return hasChanges; - function createAndAddChildDirectoryWatcher(childName) { - const result = createDirectoryWatcher(childName, options); - addChildDirectoryWatcher(result); - } - function addChildDirectoryWatcher(childWatcher) { - (newChildWatches || (newChildWatches = [])).push(childWatcher); - } - } - function isIgnoredPath(path, options) { - return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); - } - function isInPath(path, searchPath) { - if (path.includes(searchPath)) return true; - if (useCaseSensitiveFileNames2) return false; - return toCanonicalFilePath(path).includes(searchPath); - } -} -function createFileWatcherCallback(callback) { - return (_fileName, eventKind, modifiedTime) => callback(eventKind === 1 /* Changed */ ? "change" : "rename", "", modifiedTime); -} -function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3) { - return (eventName, _relativeFileName, modifiedTime) => { - if (eventName === "rename") { - modifiedTime || (modifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime); - callback(fileName, modifiedTime !== missingFileModifiedTime ? 0 /* Created */ : 2 /* Deleted */, modifiedTime); - } else { - callback(fileName, 1 /* Changed */, modifiedTime); - } - }; -} -function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { - return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); -} -function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { - return (eventName, relativeFileName) => { - if (eventName === "rename") { - const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); - if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { - callback(fileName); - } - } - }; -} -function createSystemWatchFunctions({ - pollingWatchFileWorker, - getModifiedTime: getModifiedTime3, - setTimeout: setTimeout2, - clearTimeout: clearTimeout2, - fsWatchWorker, - fileSystemEntryExists, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - getCurrentDirectory, - fsSupportsRecursiveFsWatch, - getAccessibleSortedChildDirectories, - realpath, - tscWatchFile, - useNonPollingWatchers, - tscWatchDirectory, - inodeWatching, - fsWatchWithTimestamp, - sysLog: sysLog2 -}) { - const pollingWatches = /* @__PURE__ */ new Map(); - const fsWatches = /* @__PURE__ */ new Map(); - const fsWatchesRecursive = /* @__PURE__ */ new Map(); - let dynamicPollingWatchFile; - let fixedChunkSizePollingWatchFile; - let nonPollingWatchFile; - let hostRecursiveDirectoryWatcher; - let hitSystemWatcherLimit = false; - return { - watchFile: watchFile2, - watchDirectory - }; - function watchFile2(fileName, callback, pollingInterval, options) { - options = updateOptionsForWatchFile(options, useNonPollingWatchers); - const watchFileKind = Debug.checkDefined(options.watchFile); - switch (watchFileKind) { - case 0 /* FixedPollingInterval */: - return pollingWatchFile( - fileName, - callback, - 250 /* Low */, - /*options*/ - void 0 - ); - case 1 /* PriorityPollingInterval */: - return pollingWatchFile( - fileName, - callback, - pollingInterval, - /*options*/ - void 0 - ); - case 2 /* DynamicPriorityPolling */: - return ensureDynamicPollingWatchFile()( - fileName, - callback, - pollingInterval, - /*options*/ - void 0 - ); - case 3 /* FixedChunkSizePolling */: - return ensureFixedChunkSizePollingWatchFile()( - fileName, - callback, - /* pollingInterval */ - void 0, - /*options*/ - void 0 - ); - case 4 /* UseFsEvents */: - return fsWatch( - fileName, - 0 /* File */, - createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3), - /*recursive*/ - false, - pollingInterval, - getFallbackOptions(options) - ); - case 5 /* UseFsEventsOnParentDirectory */: - if (!nonPollingWatchFile) { - nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2, getModifiedTime3, fsWatchWithTimestamp); - } - return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); - default: - Debug.assertNever(watchFileKind); - } - } - function ensureDynamicPollingWatchFile() { - return dynamicPollingWatchFile || (dynamicPollingWatchFile = createDynamicPriorityPollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 })); - } - function ensureFixedChunkSizePollingWatchFile() { - return fixedChunkSizePollingWatchFile || (fixedChunkSizePollingWatchFile = createFixedChunkSizePollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 })); - } - function updateOptionsForWatchFile(options, useNonPollingWatchers2) { - if (options && options.watchFile !== void 0) return options; - switch (tscWatchFile) { - case "PriorityPollingInterval": - return { watchFile: 1 /* PriorityPollingInterval */ }; - case "DynamicPriorityPolling": - return { watchFile: 2 /* DynamicPriorityPolling */ }; - case "UseFsEvents": - return generateWatchFileOptions(4 /* UseFsEvents */, 1 /* PriorityInterval */, options); - case "UseFsEventsWithFallbackDynamicPolling": - return generateWatchFileOptions(4 /* UseFsEvents */, 2 /* DynamicPriority */, options); - case "UseFsEventsOnParentDirectory": - useNonPollingWatchers2 = true; - // fall through - default: - return useNonPollingWatchers2 ? ( - // Use notifications from FS to watch with falling back to fs.watchFile - generateWatchFileOptions(5 /* UseFsEventsOnParentDirectory */, 1 /* PriorityInterval */, options) - ) : ( - // Default to using fs events - { watchFile: 4 /* UseFsEvents */ } - ); - } - } - function generateWatchFileOptions(watchFile3, fallbackPolling, options) { - const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling; - return { - watchFile: watchFile3, - fallbackPolling: defaultFallbackPolling === void 0 ? fallbackPolling : defaultFallbackPolling - }; - } - function watchDirectory(directoryName, callback, recursive, options) { - if (fsSupportsRecursiveFsWatch) { - return fsWatch( - directoryName, - 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), - recursive, - 500 /* Medium */, - getFallbackOptions(options) - ); - } - if (!hostRecursiveDirectoryWatcher) { - hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - getCurrentDirectory, - fileSystemEntryExists, - getAccessibleSortedChildDirectories, - watchDirectory: nonRecursiveWatchDirectory, - realpath, - setTimeout: setTimeout2, - clearTimeout: clearTimeout2 - }); - } - return hostRecursiveDirectoryWatcher(directoryName, callback, recursive, options); - } - function nonRecursiveWatchDirectory(directoryName, callback, recursive, options) { - Debug.assert(!recursive); - const watchDirectoryOptions = updateOptionsForWatchDirectory(options); - const watchDirectoryKind = Debug.checkDefined(watchDirectoryOptions.watchDirectory); - switch (watchDirectoryKind) { - case 1 /* FixedPollingInterval */: - return pollingWatchFile( - directoryName, - () => callback(directoryName), - 500 /* Medium */, - /*options*/ - void 0 - ); - case 2 /* DynamicPriorityPolling */: - return ensureDynamicPollingWatchFile()( - directoryName, - () => callback(directoryName), - 500 /* Medium */, - /*options*/ - void 0 - ); - case 3 /* FixedChunkSizePolling */: - return ensureFixedChunkSizePollingWatchFile()( - directoryName, - () => callback(directoryName), - /* pollingInterval */ - void 0, - /*options*/ - void 0 - ); - case 0 /* UseFsEvents */: - return fsWatch( - directoryName, - 1 /* Directory */, - createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), - recursive, - 500 /* Medium */, - getFallbackOptions(watchDirectoryOptions) - ); - default: - Debug.assertNever(watchDirectoryKind); - } - } - function updateOptionsForWatchDirectory(options) { - if (options && options.watchDirectory !== void 0) return options; - switch (tscWatchDirectory) { - case "RecursiveDirectoryUsingFsWatchFile": - return { watchDirectory: 1 /* FixedPollingInterval */ }; - case "RecursiveDirectoryUsingDynamicPriorityPolling": - return { watchDirectory: 2 /* DynamicPriorityPolling */ }; - default: - const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling; - return { - watchDirectory: 0 /* UseFsEvents */, - fallbackPolling: defaultFallbackPolling !== void 0 ? defaultFallbackPolling : void 0 - }; - } - } - function pollingWatchFile(fileName, callback, pollingInterval, options) { - return createSingleWatcherPerName( - pollingWatches, - useCaseSensitiveFileNames2, - fileName, - callback, - (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) - ); - } - function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { - return createSingleWatcherPerName( - recursive ? fsWatchesRecursive : fsWatches, - useCaseSensitiveFileNames2, - fileOrDirectory, - callback, - (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) - ); - } - function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { - let lastDirectoryPartWithDirectorySeparator; - let lastDirectoryPart; - if (inodeWatching) { - lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(directorySeparator)); - lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length); - } - let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ? watchMissingFileSystemEntry() : watchPresentFileSystemEntry(); - return { - close: () => { - if (watcher) { - watcher.close(); - watcher = void 0; - } - } - }; - function updateWatcher(createWatcher) { - if (watcher) { - sysLog2(`sysLog:: ${fileOrDirectory}:: Changing watcher to ${createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing"}FileSystemEntryWatcher`); - watcher.close(); - watcher = createWatcher(); - } - } - function watchPresentFileSystemEntry() { - if (hitSystemWatcherLimit) { - sysLog2(`sysLog:: ${fileOrDirectory}:: Defaulting to watchFile`); - return watchPresentFileSystemEntryWithFsWatchFile(); - } - try { - const presentWatcher = (entryKind === 1 /* Directory */ || !fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)( - fileOrDirectory, - recursive, - inodeWatching ? callbackChangingToMissingFileSystemEntry : callback - ); - presentWatcher.on("error", () => { - callback("rename", ""); - updateWatcher(watchMissingFileSystemEntry); - }); - return presentWatcher; - } catch (e) { - hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC"); - sysLog2(`sysLog:: ${fileOrDirectory}:: Changing to watchFile`); - return watchPresentFileSystemEntryWithFsWatchFile(); - } - } - function callbackChangingToMissingFileSystemEntry(event, relativeName) { - let originalRelativeName; - if (relativeName && endsWith(relativeName, "~")) { - originalRelativeName = relativeName; - relativeName = relativeName.slice(0, relativeName.length - 1); - } - if (event === "rename" && (!relativeName || relativeName === lastDirectoryPart || endsWith(relativeName, lastDirectoryPartWithDirectorySeparator))) { - const modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; - if (originalRelativeName) callback(event, originalRelativeName, modifiedTime); - callback(event, relativeName, modifiedTime); - if (inodeWatching) { - updateWatcher(modifiedTime === missingFileModifiedTime ? watchMissingFileSystemEntry : watchPresentFileSystemEntry); - } else if (modifiedTime === missingFileModifiedTime) { - updateWatcher(watchMissingFileSystemEntry); - } - } else { - if (originalRelativeName) callback(event, originalRelativeName); - callback(event, relativeName); - } - } - function watchPresentFileSystemEntryWithFsWatchFile() { - return watchFile2( - fileOrDirectory, - createFileWatcherCallback(callback), - fallbackPollingInterval, - fallbackOptions - ); - } - function watchMissingFileSystemEntry() { - return watchFile2( - fileOrDirectory, - (_fileName, eventKind, modifiedTime) => { - if (eventKind === 0 /* Created */) { - modifiedTime || (modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime); - if (modifiedTime !== missingFileModifiedTime) { - callback("rename", "", modifiedTime); - updateWatcher(watchPresentFileSystemEntry); - } - } - }, - fallbackPollingInterval, - fallbackOptions - ); - } - } - function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) { - let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; - return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => { - if (eventName === "change") { - currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime); - if (currentModifiedTime.getTime() === modifiedTime.getTime()) return; - } - modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; - callback(eventName, relativeFileName, modifiedTime); - }); - } -} -function patchWriteFileEnsuringDirectory(sys2) { - const originalWriteFile = sys2.writeFile; - sys2.writeFile = (path, data, writeBom) => writeFileEnsuringDirectories( - path, - data, - !!writeBom, - (path2, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path2, data2, writeByteOrderMark), - (path2) => sys2.createDirectory(path2), - (path2) => sys2.directoryExists(path2) - ); -} -var sys = (() => { - const byteOrderMarkIndicator = "\uFEFF"; - function getNodeSystem() { - const nativePattern = /^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/; - const _fs = require("fs"); - const _path = require("path"); - const _os = require("os"); - let _crypto; - try { - _crypto = require("crypto"); - } catch { - _crypto = void 0; - } - let activeSession; - let profilePath = "./profile.cpuprofile"; - const isMacOs = process.platform === "darwin"; - const isLinuxOrMacOs = process.platform === "linux" || isMacOs; - const statSyncOptions = { throwIfNoEntry: false }; - const platform = _os.platform(); - const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); - const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; - const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; - const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs; - const getCurrentDirectory = memoize(() => process.cwd()); - const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({ - pollingWatchFileWorker: fsWatchFileWorker, - getModifiedTime: getModifiedTime3, - setTimeout, - clearTimeout, - fsWatchWorker, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - getCurrentDirectory, - fileSystemEntryExists, - // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows - // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643) - fsSupportsRecursiveFsWatch, - getAccessibleSortedChildDirectories: (path) => getAccessibleFileSystemEntries(path).directories, - realpath, - tscWatchFile: process.env.TSC_WATCHFILE, - useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER, - tscWatchDirectory: process.env.TSC_WATCHDIRECTORY, - inodeWatching: isLinuxOrMacOs, - fsWatchWithTimestamp: isMacOs, - sysLog - }); - const nodeSystem = { - args: process.argv.slice(2), - newLine: _os.EOL, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - write(s) { - process.stdout.write(s); - }, - getWidthOfTerminal() { - return process.stdout.columns; - }, - writeOutputIsTTY() { - return process.stdout.isTTY; - }, - readFile, - writeFile: writeFile2, - watchFile: watchFile2, - watchDirectory, - preferNonRecursiveWatch: !fsSupportsRecursiveFsWatch, - resolvePath: (path) => _path.resolve(path), - fileExists, - directoryExists, - getAccessibleFileSystemEntries, - createDirectory(directoryName) { - if (!nodeSystem.directoryExists(directoryName)) { - try { - _fs.mkdirSync(directoryName); - } catch (e) { - if (e.code !== "EEXIST") { - throw e; - } - } - } - }, - getExecutingFilePath() { - return executingFilePath; - }, - getCurrentDirectory, - getDirectories, - getEnvironmentVariable(name) { - return process.env[name] || ""; - }, - readDirectory, - getModifiedTime: getModifiedTime3, - setModifiedTime, - deleteFile, - createHash: _crypto ? createSHA256Hash : generateDjb2Hash, - createSHA256Hash: _crypto ? createSHA256Hash : void 0, - getMemoryUsage() { - if (global.gc) { - global.gc(); - } - return process.memoryUsage().heapUsed; - }, - getFileSize(path) { - const stat = statSync(path); - if (stat == null ? void 0 : stat.isFile()) { - return stat.size; - } - return 0; - }, - exit(exitCode) { - disableCPUProfiler(() => process.exit(exitCode)); - }, - enableCPUProfiler, - disableCPUProfiler, - cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), - realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay, - tryEnableSourceMapsForHost() { - try { - require("source-map-support").install(); - } catch { - } - }, - setTimeout, - clearTimeout, - clearScreen: () => { - process.stdout.write("\x1B[2J\x1B[3J\x1B[H"); - }, - setBlocking: () => { - var _a; - const handle = (_a = process.stdout) == null ? void 0 : _a._handle; - if (handle && handle.setBlocking) { - handle.setBlocking(true); - } - }, - base64decode: (input) => Buffer.from(input, "base64").toString("utf8"), - base64encode: (input) => Buffer.from(input).toString("base64"), - require: (baseDir, moduleName) => { - try { - const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem); - return { module: require(modulePath), modulePath, error: void 0 }; - } catch (error) { - return { module: void 0, modulePath: void 0, error }; - } - } - }; - return nodeSystem; - function statSync(path) { - try { - return _fs.statSync(path, statSyncOptions); - } catch { - return void 0; - } - } - function enableCPUProfiler(path, cb) { - if (activeSession) { - cb(); - return false; - } - const inspector = require("inspector"); - if (!inspector || !inspector.Session) { - cb(); - return false; - } - const session = new inspector.Session(); - session.connect(); - session.post("Profiler.enable", () => { - session.post("Profiler.start", () => { - activeSession = session; - profilePath = path; - cb(); - }); - }); - return true; - } - function cleanupPaths(profile) { - let externalFileCounter = 0; - const remappedPaths = /* @__PURE__ */ new Map(); - const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath)); - const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`; - for (const node of profile.nodes) { - if (node.callFrame.url) { - const url = normalizeSlashes(node.callFrame.url); - if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { - node.callFrame.url = getRelativePathToDirectoryOrUrl( - fileUrlRoot, - url, - fileUrlRoot, - createGetCanonicalFileName(useCaseSensitiveFileNames2), - /*isAbsolutePathAnUrl*/ - true - ); - } else if (!nativePattern.test(url)) { - node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, `external${externalFileCounter}.js`)).get(url); - externalFileCounter++; - } - } - } - return profile; - } - function disableCPUProfiler(cb) { - if (activeSession && activeSession !== "stopping") { - const s = activeSession; - activeSession.post("Profiler.stop", (err, { profile }) => { - var _a; - if (!err) { - if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) { - profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`); - } - try { - _fs.mkdirSync(_path.dirname(profilePath), { recursive: true }); - } catch { - } - _fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile))); - } - activeSession = void 0; - s.disconnect(); - cb(); - }); - activeSession = "stopping"; - return true; - } else { - cb(); - return false; - } - } - function isFileSystemCaseSensitive() { - if (platform === "win32" || platform === "win64") { - return false; - } - return !fileExists(swapCase(__filename)); - } - function swapCase(s) { - return s.replace(/\w/g, (ch) => { - const up = ch.toUpperCase(); - return ch === up ? ch.toLowerCase() : up; - }); - } - function fsWatchFileWorker(fileName, callback, pollingInterval) { - _fs.watchFile(fileName, { persistent: true, interval: pollingInterval }, fileChanged); - let eventKind; - return { - close: () => _fs.unwatchFile(fileName, fileChanged) - }; - function fileChanged(curr, prev) { - const isPreviouslyDeleted = +prev.mtime === 0 || eventKind === 2 /* Deleted */; - if (+curr.mtime === 0) { - if (isPreviouslyDeleted) { - return; - } - eventKind = 2 /* Deleted */; - } else if (isPreviouslyDeleted) { - eventKind = 0 /* Created */; - } else if (+curr.mtime === +prev.mtime) { - return; - } else { - eventKind = 1 /* Changed */; - } - callback(fileName, eventKind, curr.mtime); - } - } - function fsWatchWorker(fileOrDirectory, recursive, callback) { - return _fs.watch( - fileOrDirectory, - fsSupportsRecursiveFsWatch ? { persistent: true, recursive: !!recursive } : { persistent: true }, - callback - ); - } - function readFile(fileName, _encoding) { - let buffer; - try { - buffer = _fs.readFileSync(fileName); - } catch { - return void 0; - } - let len = buffer.length; - if (len >= 2 && buffer[0] === 254 && buffer[1] === 255) { - len &= ~1; - for (let i = 0; i < len; i += 2) { - const temp = buffer[i]; - buffer[i] = buffer[i + 1]; - buffer[i + 1] = temp; - } - return buffer.toString("utf16le", 2); - } - if (len >= 2 && buffer[0] === 255 && buffer[1] === 254) { - return buffer.toString("utf16le", 2); - } - if (len >= 3 && buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) { - return buffer.toString("utf8", 3); - } - return buffer.toString("utf8"); - } - function writeFile2(fileName, data, writeByteOrderMark) { - if (writeByteOrderMark) { - data = byteOrderMarkIndicator + data; - } - let fd; - try { - fd = _fs.openSync(fileName, "w"); - _fs.writeSync( - fd, - data, - /*position*/ - void 0, - "utf8" - ); - } finally { - if (fd !== void 0) { - _fs.closeSync(fd); - } - } - } - function getAccessibleFileSystemEntries(path) { - try { - const entries = _fs.readdirSync(path || ".", { withFileTypes: true }); - const files = []; - const directories = []; - for (const dirent of entries) { - const entry = typeof dirent === "string" ? dirent : dirent.name; - if (entry === "." || entry === "..") { - continue; - } - let stat; - if (typeof dirent === "string" || dirent.isSymbolicLink()) { - const name = combinePaths(path, entry); - stat = statSync(name); - if (!stat) { - continue; - } - } else { - stat = dirent; - } - if (stat.isFile()) { - files.push(entry); - } else if (stat.isDirectory()) { - directories.push(entry); - } - } - files.sort(); - directories.sort(); - return { files, directories }; - } catch { - return emptyFileSystemEntries; - } - } - function readDirectory(path, extensions, excludes, includes, depth) { - return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); - } - function fileSystemEntryExists(path, entryKind) { - const stat = statSync(path); - if (!stat) { - return false; - } - switch (entryKind) { - case 0 /* File */: - return stat.isFile(); - case 1 /* Directory */: - return stat.isDirectory(); - default: - return false; - } - } - function fileExists(path) { - return fileSystemEntryExists(path, 0 /* File */); - } - function directoryExists(path) { - return fileSystemEntryExists(path, 1 /* Directory */); - } - function getDirectories(path) { - return getAccessibleFileSystemEntries(path).directories.slice(); - } - function fsRealPathHandlingLongPath(path) { - return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path); - } - function realpath(path) { - try { - return fsRealpath(path); - } catch { - return path; - } - } - function getModifiedTime3(path) { - var _a; - return (_a = statSync(path)) == null ? void 0 : _a.mtime; - } - function setModifiedTime(path, time) { - try { - _fs.utimesSync(path, time, time); - } catch { - return; - } - } - function deleteFile(path) { - try { - return _fs.unlinkSync(path); - } catch { - return; - } - } - function createSHA256Hash(data) { - const hash = _crypto.createHash("sha256"); - hash.update(data); - return hash.digest("hex"); - } - } - let sys2; - if (isNodeLikeSystem()) { - sys2 = getNodeSystem(); - } - if (sys2) { - patchWriteFileEnsuringDirectory(sys2); - } - return sys2; -})(); -if (sys && sys.getEnvironmentVariable) { - setCustomPollingValues(sys); - Debug.setAssertionLevel( - /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV")) ? 1 /* Normal */ : 0 /* None */ - ); -} -if (sys && sys.debugMode) { - Debug.isDebugging = true; -} - -// src/compiler/path.ts -var directorySeparator = "/"; -var altDirectorySeparator = "\\"; -var urlSchemeSeparator = "://"; -var backslashRegExp = /\\/g; -function isAnyDirectorySeparator(charCode) { - return charCode === 47 /* slash */ || charCode === 92 /* backslash */; -} -function isRootedDiskPath(path) { - return getEncodedRootLength(path) > 0; -} -function isDiskPathRoot(path) { - const rootLength = getEncodedRootLength(path); - return rootLength > 0 && rootLength === path.length; -} -function pathIsAbsolute(path) { - return getEncodedRootLength(path) !== 0; -} -function pathIsRelative(path) { - return /^\.\.?(?:$|[\\/])/.test(path); -} -function pathIsBareSpecifier(path) { - return !pathIsAbsolute(path) && !pathIsRelative(path); -} -function hasExtension(fileName) { - return getBaseFileName(fileName).includes("."); -} -function fileExtensionIs(path, extension) { - return path.length > extension.length && endsWith(path, extension); -} -function fileExtensionIsOneOf(path, extensions) { - for (const extension of extensions) { - if (fileExtensionIs(path, extension)) { - return true; - } - } - return false; -} -function hasTrailingDirectorySeparator(path) { - return path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1)); -} -function isVolumeCharacter(charCode) { - return charCode >= 97 /* a */ && charCode <= 122 /* z */ || charCode >= 65 /* A */ && charCode <= 90 /* Z */; -} -function getFileUrlVolumeSeparatorEnd(url, start) { - const ch0 = url.charCodeAt(start); - if (ch0 === 58 /* colon */) return start + 1; - if (ch0 === 37 /* percent */ && url.charCodeAt(start + 1) === 51 /* _3 */) { - const ch2 = url.charCodeAt(start + 2); - if (ch2 === 97 /* a */ || ch2 === 65 /* A */) return start + 3; - } - return -1; -} -function getEncodedRootLength(path) { - if (!path) return 0; - const ch0 = path.charCodeAt(0); - if (ch0 === 47 /* slash */ || ch0 === 92 /* backslash */) { - if (path.charCodeAt(1) !== ch0) return 1; - const p1 = path.indexOf(ch0 === 47 /* slash */ ? directorySeparator : altDirectorySeparator, 2); - if (p1 < 0) return path.length; - return p1 + 1; - } - if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* colon */) { - const ch2 = path.charCodeAt(2); - if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */) return 3; - if (path.length === 2) return 2; - } - const schemeEnd = path.indexOf(urlSchemeSeparator); - if (schemeEnd !== -1) { - const authorityStart = schemeEnd + urlSchemeSeparator.length; - const authorityEnd = path.indexOf(directorySeparator, authorityStart); - if (authorityEnd !== -1) { - const scheme = path.slice(0, schemeEnd); - const authority = path.slice(authorityStart, authorityEnd); - if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) { - const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2); - if (volumeSeparatorEnd !== -1) { - if (path.charCodeAt(volumeSeparatorEnd) === 47 /* slash */) { - return ~(volumeSeparatorEnd + 1); - } - if (volumeSeparatorEnd === path.length) { - return ~volumeSeparatorEnd; - } - } - } - return ~(authorityEnd + 1); - } - return ~path.length; - } - return 0; -} -function getRootLength(path) { - const rootLength = getEncodedRootLength(path); - return rootLength < 0 ? ~rootLength : rootLength; -} -function getDirectoryPath(path) { - path = normalizeSlashes(path); - const rootLength = getRootLength(path); - if (rootLength === path.length) return path; - path = removeTrailingDirectorySeparator(path); - return path.slice(0, Math.max(rootLength, path.lastIndexOf(directorySeparator))); -} -function getBaseFileName(path, extensions, ignoreCase) { - path = normalizeSlashes(path); - const rootLength = getRootLength(path); - if (rootLength === path.length) return ""; - path = removeTrailingDirectorySeparator(path); - const name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(directorySeparator) + 1)); - const extension = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(name, extensions, ignoreCase) : void 0; - return extension ? name.slice(0, name.length - extension.length) : name; -} -function tryGetExtensionFromPath(path, extension, stringEqualityComparer) { - if (!startsWith(extension, ".")) extension = "." + extension; - if (path.length >= extension.length && path.charCodeAt(path.length - extension.length) === 46 /* dot */) { - const pathExtension = path.slice(path.length - extension.length); - if (stringEqualityComparer(pathExtension, extension)) { - return pathExtension; - } - } -} -function getAnyExtensionFromPathWorker(path, extensions, stringEqualityComparer) { - if (typeof extensions === "string") { - return tryGetExtensionFromPath(path, extensions, stringEqualityComparer) || ""; - } - for (const extension of extensions) { - const result = tryGetExtensionFromPath(path, extension, stringEqualityComparer); - if (result) return result; - } - return ""; -} -function getAnyExtensionFromPath(path, extensions, ignoreCase) { - if (extensions) { - return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive); - } - const baseFileName = getBaseFileName(path); - const extensionIndex = baseFileName.lastIndexOf("."); - if (extensionIndex >= 0) { - return baseFileName.substring(extensionIndex); - } - return ""; -} -function pathComponents(path, rootLength) { - const root = path.substring(0, rootLength); - const rest = path.substring(rootLength).split(directorySeparator); - if (rest.length && !lastOrUndefined(rest)) rest.pop(); - return [root, ...rest]; -} -function getPathComponents(path, currentDirectory = "") { - path = combinePaths(currentDirectory, path); - return pathComponents(path, getRootLength(path)); -} -function getPathFromPathComponents(pathComponents2, length2) { - if (pathComponents2.length === 0) return ""; - const root = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]); - return root + pathComponents2.slice(1, length2).join(directorySeparator); -} -function normalizeSlashes(path) { - return path.includes("\\") ? path.replace(backslashRegExp, directorySeparator) : path; -} -function reducePathComponents(components) { - if (!some(components)) return []; - const reduced = [components[0]]; - for (let i = 1; i < components.length; i++) { - const component = components[i]; - if (!component) continue; - if (component === ".") continue; - if (component === "..") { - if (reduced.length > 1) { - if (reduced[reduced.length - 1] !== "..") { - reduced.pop(); - continue; - } - } else if (reduced[0]) continue; - } - reduced.push(component); - } - return reduced; -} -function combinePaths(path, ...paths) { - if (path) path = normalizeSlashes(path); - for (let relativePath of paths) { - if (!relativePath) continue; - relativePath = normalizeSlashes(relativePath); - if (!path || getRootLength(relativePath) !== 0) { - path = relativePath; - } else { - path = ensureTrailingDirectorySeparator(path) + relativePath; - } - } - return path; -} -function resolvePath(path, ...paths) { - return normalizePath(some(paths) ? combinePaths(path, ...paths) : normalizeSlashes(path)); -} -function getNormalizedPathComponents(path, currentDirectory) { - return reducePathComponents(getPathComponents(path, currentDirectory)); -} -function getNormalizedAbsolutePath(path, currentDirectory) { - let rootLength = getRootLength(path); - if (rootLength === 0 && currentDirectory) { - path = combinePaths(currentDirectory, path); - rootLength = getRootLength(path); - } else { - path = normalizeSlashes(path); - } - const simpleNormalized = simpleNormalizePath(path); - if (simpleNormalized !== void 0) { - return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized; - } - const length2 = path.length; - const root = path.substring(0, rootLength); - let normalized; - let index = rootLength; - let segmentStart = index; - let normalizedUpTo = index; - let seenNonDotDotSegment = rootLength !== 0; - while (index < length2) { - segmentStart = index; - let ch = path.charCodeAt(index); - while (ch === 47 /* slash */ && index + 1 < length2) { - index++; - ch = path.charCodeAt(index); - } - if (index > segmentStart) { - normalized ?? (normalized = path.substring(0, segmentStart - 1)); - segmentStart = index; - } - let segmentEnd = path.indexOf(directorySeparator, index + 1); - if (segmentEnd === -1) { - segmentEnd = length2; - } - const segmentLength = segmentEnd - segmentStart; - if (segmentLength === 1 && path.charCodeAt(index) === 46 /* dot */) { - normalized ?? (normalized = path.substring(0, normalizedUpTo)); - } else if (segmentLength === 2 && path.charCodeAt(index) === 46 /* dot */ && path.charCodeAt(index + 1) === 46 /* dot */) { - if (!seenNonDotDotSegment) { - if (normalized !== void 0) { - normalized += normalized.length === rootLength ? ".." : "/.."; - } else { - normalizedUpTo = index + 2; - } - } else if (normalized === void 0) { - if (normalizedUpTo - 2 >= 0) { - normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2))); - } else { - normalized = path.substring(0, normalizedUpTo); - } - } else { - const lastSlash = normalized.lastIndexOf(directorySeparator); - if (lastSlash !== -1) { - normalized = normalized.substring(0, Math.max(rootLength, lastSlash)); - } else { - normalized = root; - } - if (normalized.length === rootLength) { - seenNonDotDotSegment = rootLength !== 0; - } - } - } else if (normalized !== void 0) { - if (normalized.length !== rootLength) { - normalized += directorySeparator; - } - seenNonDotDotSegment = true; - normalized += path.substring(segmentStart, segmentEnd); - } else { - seenNonDotDotSegment = true; - normalizedUpTo = segmentEnd; - } - index = segmentEnd + 1; - } - return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path) : path); -} -function normalizePath(path) { - path = normalizeSlashes(path); - let normalized = simpleNormalizePath(path); - if (normalized !== void 0) { - return normalized; - } - normalized = getNormalizedAbsolutePath(path, ""); - return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized; -} -function simpleNormalizePath(path) { - if (!relativePathSegmentRegExp.test(path)) { - return path; - } - let simplified = path.replace(/\/\.\//g, "/"); - if (simplified.startsWith("./")) { - simplified = simplified.slice(2); - } - if (simplified !== path) { - path = simplified; - if (!relativePathSegmentRegExp.test(path)) { - return path; - } - } - return void 0; -} -function getPathWithoutRoot(pathComponents2) { - if (pathComponents2.length === 0) return ""; - return pathComponents2.slice(1).join(directorySeparator); -} -function getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory) { - return getPathWithoutRoot(getNormalizedPathComponents(fileName, currentDirectory)); -} -function toPath(fileName, basePath, getCanonicalFileName) { - const nonCanonicalizedPath = isRootedDiskPath(fileName) ? normalizePath(fileName) : getNormalizedAbsolutePath(fileName, basePath); - return getCanonicalFileName(nonCanonicalizedPath); -} -function removeTrailingDirectorySeparator(path) { - if (hasTrailingDirectorySeparator(path)) { - return path.substr(0, path.length - 1); - } - return path; -} -function ensureTrailingDirectorySeparator(path) { - if (!hasTrailingDirectorySeparator(path)) { - return path + directorySeparator; - } - return path; -} -function ensurePathIsNonModuleName(path) { - return !pathIsAbsolute(path) && !pathIsRelative(path) ? "./" + path : path; -} -function changeAnyExtension(path, ext, extensions, ignoreCase) { - const pathext = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path); - return pathext ? path.slice(0, path.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path; -} -function changeFullExtension(path, newExtension) { - const declarationExtension = getDeclarationFileExtension(path); - if (declarationExtension) { - return path.slice(0, path.length - declarationExtension.length) + (startsWith(newExtension, ".") ? newExtension : "." + newExtension); - } - return changeAnyExtension(path, newExtension); -} -var relativePathSegmentRegExp = /\/\/|(?:^|\/)\.\.?(?:$|\/)/; -function comparePathsWorker(a, b, componentComparer) { - if (a === b) return 0 /* EqualTo */; - if (a === void 0) return -1 /* LessThan */; - if (b === void 0) return 1 /* GreaterThan */; - const aRoot = a.substring(0, getRootLength(a)); - const bRoot = b.substring(0, getRootLength(b)); - const result = compareStringsCaseInsensitive(aRoot, bRoot); - if (result !== 0 /* EqualTo */) { - return result; - } - const aRest = a.substring(aRoot.length); - const bRest = b.substring(bRoot.length); - if (!relativePathSegmentRegExp.test(aRest) && !relativePathSegmentRegExp.test(bRest)) { - return componentComparer(aRest, bRest); - } - const aComponents = reducePathComponents(getPathComponents(a)); - const bComponents = reducePathComponents(getPathComponents(b)); - const sharedLength = Math.min(aComponents.length, bComponents.length); - for (let i = 1; i < sharedLength; i++) { - const result2 = componentComparer(aComponents[i], bComponents[i]); - if (result2 !== 0 /* EqualTo */) { - return result2; - } - } - return compareValues(aComponents.length, bComponents.length); -} -function comparePaths(a, b, currentDirectory, ignoreCase) { - if (typeof currentDirectory === "string") { - a = combinePaths(currentDirectory, a); - b = combinePaths(currentDirectory, b); - } else if (typeof currentDirectory === "boolean") { - ignoreCase = currentDirectory; - } - return comparePathsWorker(a, b, getStringComparer(ignoreCase)); -} -function containsPath(parent, child, currentDirectory, ignoreCase) { - if (typeof currentDirectory === "string") { - parent = combinePaths(currentDirectory, parent); - child = combinePaths(currentDirectory, child); - } else if (typeof currentDirectory === "boolean") { - ignoreCase = currentDirectory; - } - if (parent === void 0 || child === void 0) return false; - if (parent === child) return true; - const parentComponents = reducePathComponents(getPathComponents(parent)); - const childComponents = reducePathComponents(getPathComponents(child)); - if (childComponents.length < parentComponents.length) { - return false; - } - const componentEqualityComparer = ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive; - for (let i = 0; i < parentComponents.length; i++) { - const equalityComparer = i === 0 ? equateStringsCaseInsensitive : componentEqualityComparer; - if (!equalityComparer(parentComponents[i], childComponents[i])) { - return false; - } - } - return true; -} -function startsWithDirectory(fileName, directoryName, getCanonicalFileName) { - const canonicalFileName = getCanonicalFileName(fileName); - const canonicalDirectoryName = getCanonicalFileName(directoryName); - return startsWith(canonicalFileName, canonicalDirectoryName + "/") || startsWith(canonicalFileName, canonicalDirectoryName + "\\"); -} -function getPathComponentsRelativeTo(from, to, stringEqualityComparer, getCanonicalFileName) { - const fromComponents = reducePathComponents(getPathComponents(from)); - const toComponents = reducePathComponents(getPathComponents(to)); - let start; - for (start = 0; start < fromComponents.length && start < toComponents.length; start++) { - const fromComponent = getCanonicalFileName(fromComponents[start]); - const toComponent = getCanonicalFileName(toComponents[start]); - const comparer = start === 0 ? equateStringsCaseInsensitive : stringEqualityComparer; - if (!comparer(fromComponent, toComponent)) break; - } - if (start === 0) { - return toComponents; - } - const components = toComponents.slice(start); - const relative = []; - for (; start < fromComponents.length; start++) { - relative.push(".."); - } - return ["", ...relative, ...components]; -} -function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { - Debug.assert(getRootLength(fromDirectory) > 0 === getRootLength(to) > 0, "Paths must either both be absolute or both be relative"); - const getCanonicalFileName = typeof getCanonicalFileNameOrIgnoreCase === "function" ? getCanonicalFileNameOrIgnoreCase : identity; - const ignoreCase = typeof getCanonicalFileNameOrIgnoreCase === "boolean" ? getCanonicalFileNameOrIgnoreCase : false; - const pathComponents2 = getPathComponentsRelativeTo(fromDirectory, to, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive, getCanonicalFileName); - return getPathFromPathComponents(pathComponents2); -} -function convertToRelativePath(absoluteOrRelativePath, basePath, getCanonicalFileName) { - return !isRootedDiskPath(absoluteOrRelativePath) ? absoluteOrRelativePath : getRelativePathToDirectoryOrUrl( - basePath, - absoluteOrRelativePath, - basePath, - getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - false - ); -} -function getRelativePathFromFile(from, to, getCanonicalFileName) { - return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanonicalFileName)); -} -function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) { - const pathComponents2 = getPathComponentsRelativeTo( - resolvePath(currentDirectory, directoryPathOrUrl), - resolvePath(currentDirectory, relativeOrAbsolutePath), - equateStringsCaseSensitive, - getCanonicalFileName - ); - const firstComponent = pathComponents2[0]; - if (isAbsolutePathAnUrl && isRootedDiskPath(firstComponent)) { - const prefix = firstComponent.charAt(0) === directorySeparator ? "file://" : "file:///"; - pathComponents2[0] = prefix + firstComponent; - } - return getPathFromPathComponents(pathComponents2); -} -function forEachAncestorDirectory(directory, callback) { - while (true) { - const result = callback(directory); - if (result !== void 0) { - return result; - } - const parentPath = getDirectoryPath(directory); - if (parentPath === directory) { - return void 0; - } - directory = parentPath; - } -} -function isNodeModulesDirectory(dirPath) { - return endsWith(dirPath, "/node_modules"); -} - -// src/compiler/diagnosticInformationMap.generated.ts -function diag(code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) { - return { code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated }; -} -var Diagnostics = { - Unterminated_string_literal: diag(1002, 1 /* Error */, "Unterminated_string_literal_1002", "Unterminated string literal."), - Identifier_expected: diag(1003, 1 /* Error */, "Identifier_expected_1003", "Identifier expected."), - _0_expected: diag(1005, 1 /* Error */, "_0_expected_1005", "'{0}' expected."), - A_file_cannot_have_a_reference_to_itself: diag(1006, 1 /* Error */, "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: diag(1007, 1 /* Error */, "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: diag(1009, 1 /* Error */, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."), - Asterisk_Slash_expected: diag(1010, 1 /* Error */, "Asterisk_Slash_expected_1010", "'*/' expected."), - An_element_access_expression_should_take_an_argument: diag(1011, 1 /* Error */, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."), - Unexpected_token: diag(1012, 1 /* Error */, "Unexpected_token_1012", "Unexpected token."), - A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: diag(1013, 1 /* Error */, "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: diag(1014, 1 /* Error */, "A_rest_parameter_must_be_last_in_a_parameter_list_1014", "A rest parameter must be last in a parameter list."), - Parameter_cannot_have_question_mark_and_initializer: diag(1015, 1 /* Error */, "Parameter_cannot_have_question_mark_and_initializer_1015", "Parameter cannot have question mark and initializer."), - A_required_parameter_cannot_follow_an_optional_parameter: diag(1016, 1 /* Error */, "A_required_parameter_cannot_follow_an_optional_parameter_1016", "A required parameter cannot follow an optional parameter."), - An_index_signature_cannot_have_a_rest_parameter: diag(1017, 1 /* Error */, "An_index_signature_cannot_have_a_rest_parameter_1017", "An index signature cannot have a rest parameter."), - An_index_signature_parameter_cannot_have_an_accessibility_modifier: diag(1018, 1 /* Error */, "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018", "An index signature parameter cannot have an accessibility modifier."), - An_index_signature_parameter_cannot_have_a_question_mark: diag(1019, 1 /* Error */, "An_index_signature_parameter_cannot_have_a_question_mark_1019", "An index signature parameter cannot have a question mark."), - An_index_signature_parameter_cannot_have_an_initializer: diag(1020, 1 /* Error */, "An_index_signature_parameter_cannot_have_an_initializer_1020", "An index signature parameter cannot have an initializer."), - An_index_signature_must_have_a_type_annotation: diag(1021, 1 /* Error */, "An_index_signature_must_have_a_type_annotation_1021", "An index signature must have a type annotation."), - An_index_signature_parameter_must_have_a_type_annotation: diag(1022, 1 /* Error */, "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: diag(1024, 1 /* Error */, "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024", "'readonly' modifier can only appear on a property declaration or index signature."), - An_index_signature_cannot_have_a_trailing_comma: diag(1025, 1 /* Error */, "An_index_signature_cannot_have_a_trailing_comma_1025", "An index signature cannot have a trailing comma."), - Accessibility_modifier_already_seen: diag(1028, 1 /* Error */, "Accessibility_modifier_already_seen_1028", "Accessibility modifier already seen."), - _0_modifier_must_precede_1_modifier: diag(1029, 1 /* Error */, "_0_modifier_must_precede_1_modifier_1029", "'{0}' modifier must precede '{1}' modifier."), - _0_modifier_already_seen: diag(1030, 1 /* Error */, "_0_modifier_already_seen_1030", "'{0}' modifier already seen."), - _0_modifier_cannot_appear_on_class_elements_of_this_kind: diag(1031, 1 /* Error */, "_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: diag(1034, 1 /* Error */, "super_must_be_followed_by_an_argument_list_or_member_access_1034", "'super' must be followed by an argument list or member access."), - Only_ambient_modules_can_use_quoted_names: diag(1035, 1 /* Error */, "Only_ambient_modules_can_use_quoted_names_1035", "Only ambient modules can use quoted names."), - Statements_are_not_allowed_in_ambient_contexts: diag(1036, 1 /* Error */, "Statements_are_not_allowed_in_ambient_contexts_1036", "Statements are not allowed in ambient contexts."), - A_declare_modifier_cannot_be_used_in_an_already_ambient_context: diag(1038, 1 /* Error */, "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038", "A 'declare' modifier cannot be used in an already ambient context."), - Initializers_are_not_allowed_in_ambient_contexts: diag(1039, 1 /* Error */, "Initializers_are_not_allowed_in_ambient_contexts_1039", "Initializers are not allowed in ambient contexts."), - _0_modifier_cannot_be_used_in_an_ambient_context: diag(1040, 1 /* Error */, "_0_modifier_cannot_be_used_in_an_ambient_context_1040", "'{0}' modifier cannot be used in an ambient context."), - _0_modifier_cannot_be_used_here: diag(1042, 1 /* Error */, "_0_modifier_cannot_be_used_here_1042", "'{0}' modifier cannot be used here."), - _0_modifier_cannot_appear_on_a_module_or_namespace_element: diag(1044, 1 /* Error */, "_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: diag(1046, 1 /* Error */, "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: diag(1047, 1 /* Error */, "A_rest_parameter_cannot_be_optional_1047", "A rest parameter cannot be optional."), - A_rest_parameter_cannot_have_an_initializer: diag(1048, 1 /* Error */, "A_rest_parameter_cannot_have_an_initializer_1048", "A rest parameter cannot have an initializer."), - A_set_accessor_must_have_exactly_one_parameter: diag(1049, 1 /* Error */, "A_set_accessor_must_have_exactly_one_parameter_1049", "A 'set' accessor must have exactly one parameter."), - A_set_accessor_cannot_have_an_optional_parameter: diag(1051, 1 /* Error */, "A_set_accessor_cannot_have_an_optional_parameter_1051", "A 'set' accessor cannot have an optional parameter."), - A_set_accessor_parameter_cannot_have_an_initializer: diag(1052, 1 /* Error */, "A_set_accessor_parameter_cannot_have_an_initializer_1052", "A 'set' accessor parameter cannot have an initializer."), - A_set_accessor_cannot_have_rest_parameter: diag(1053, 1 /* Error */, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."), - A_get_accessor_cannot_have_parameters: diag(1054, 1 /* Error */, "A_get_accessor_cannot_have_parameters_1054", "A 'get' accessor cannot have parameters."), - Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: diag(1055, 1 /* Error */, "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: diag(1056, 1 /* Error */, "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: diag(1058, 1 /* Error */, "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058", "The return type of an async function must either be a valid promise or must not contain a callable 'then' member."), - A_promise_must_have_a_then_method: diag(1059, 1 /* Error */, "A_promise_must_have_a_then_method_1059", "A promise must have a 'then' method."), - The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: diag(1060, 1 /* Error */, "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060", "The first parameter of the 'then' method of a promise must be a callback."), - Enum_member_must_have_initializer: diag(1061, 1 /* Error */, "Enum_member_must_have_initializer_1061", "Enum member must have initializer."), - Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), - An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), - The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "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: diag(1065, 1 /* Error */, "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: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), - Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), - Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), - _0_modifier_cannot_appear_on_a_type_member: diag(1070, 1 /* Error */, "_0_modifier_cannot_appear_on_a_type_member_1070", "'{0}' modifier cannot appear on a type member."), - _0_modifier_cannot_appear_on_an_index_signature: diag(1071, 1 /* Error */, "_0_modifier_cannot_appear_on_an_index_signature_1071", "'{0}' modifier cannot appear on an index signature."), - A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, 1 /* Error */, "A_0_modifier_cannot_be_used_with_an_import_declaration_1079", "A '{0}' modifier cannot be used with an import declaration."), - Invalid_reference_directive_syntax: diag(1084, 1 /* Error */, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."), - _0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, 1 /* Error */, "_0_modifier_cannot_appear_on_a_constructor_declaration_1089", "'{0}' modifier cannot appear on a constructor declaration."), - _0_modifier_cannot_appear_on_a_parameter: diag(1090, 1 /* Error */, "_0_modifier_cannot_appear_on_a_parameter_1090", "'{0}' modifier cannot appear on a parameter."), - Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091", "Only a single variable declaration is allowed in a 'for...in' statement."), - Type_parameters_cannot_appear_on_a_constructor_declaration: diag(1092, 1 /* Error */, "Type_parameters_cannot_appear_on_a_constructor_declaration_1092", "Type parameters cannot appear on a constructor declaration."), - Type_annotation_cannot_appear_on_a_constructor_declaration: diag(1093, 1 /* Error */, "Type_annotation_cannot_appear_on_a_constructor_declaration_1093", "Type annotation cannot appear on a constructor declaration."), - An_accessor_cannot_have_type_parameters: diag(1094, 1 /* Error */, "An_accessor_cannot_have_type_parameters_1094", "An accessor cannot have type parameters."), - A_set_accessor_cannot_have_a_return_type_annotation: diag(1095, 1 /* Error */, "A_set_accessor_cannot_have_a_return_type_annotation_1095", "A 'set' accessor cannot have a return type annotation."), - An_index_signature_must_have_exactly_one_parameter: diag(1096, 1 /* Error */, "An_index_signature_must_have_exactly_one_parameter_1096", "An index signature must have exactly one parameter."), - _0_list_cannot_be_empty: diag(1097, 1 /* Error */, "_0_list_cannot_be_empty_1097", "'{0}' list cannot be empty."), - Type_parameter_list_cannot_be_empty: diag(1098, 1 /* Error */, "Type_parameter_list_cannot_be_empty_1098", "Type parameter list cannot be empty."), - Type_argument_list_cannot_be_empty: diag(1099, 1 /* Error */, "Type_argument_list_cannot_be_empty_1099", "Type argument list cannot be empty."), - Invalid_use_of_0_in_strict_mode: diag(1100, 1 /* Error */, "Invalid_use_of_0_in_strict_mode_1100", "Invalid use of '{0}' in strict mode."), - with_statements_are_not_allowed_in_strict_mode: diag(1101, 1 /* Error */, "with_statements_are_not_allowed_in_strict_mode_1101", "'with' statements are not allowed in strict mode."), - delete_cannot_be_called_on_an_identifier_in_strict_mode: diag(1102, 1 /* Error */, "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: diag(1103, 1 /* Error */, "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: diag(1104, 1 /* Error */, "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104", "A 'continue' statement can only be used within an enclosing iteration statement."), - A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: diag(1105, 1 /* Error */, "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105", "A 'break' statement can only be used within an enclosing iteration or switch statement."), - The_left_hand_side_of_a_for_of_statement_may_not_be_async: diag(1106, 1 /* Error */, "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: diag(1107, 1 /* Error */, "Jump_target_cannot_cross_function_boundary_1107", "Jump target cannot cross function boundary."), - A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), - Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), - Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), - Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "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: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), - Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), - A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), - A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: diag(1116, 1 /* Error */, "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116", "A 'break' statement can only jump to a label of an enclosing statement."), - An_object_literal_cannot_have_multiple_properties_with_the_same_name: diag(1117, 1 /* Error */, "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: diag(1118, 1 /* Error */, "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118", "An object literal cannot have multiple get/set accessors with the same name."), - An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, 1 /* Error */, "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119", "An object literal cannot have property and accessor with the same name."), - An_export_assignment_cannot_have_modifiers: diag(1120, 1 /* Error */, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."), - Octal_literals_are_not_allowed_Use_the_syntax_0: diag(1121, 1 /* Error */, "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: diag(1123, 1 /* Error */, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."), - Digit_expected: diag(1124, 1 /* Error */, "Digit_expected_1124", "Digit expected."), - Hexadecimal_digit_expected: diag(1125, 1 /* Error */, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."), - Unexpected_end_of_text: diag(1126, 1 /* Error */, "Unexpected_end_of_text_1126", "Unexpected end of text."), - Invalid_character: diag(1127, 1 /* Error */, "Invalid_character_1127", "Invalid character."), - Declaration_or_statement_expected: diag(1128, 1 /* Error */, "Declaration_or_statement_expected_1128", "Declaration or statement expected."), - Statement_expected: diag(1129, 1 /* Error */, "Statement_expected_1129", "Statement expected."), - case_or_default_expected: diag(1130, 1 /* Error */, "case_or_default_expected_1130", "'case' or 'default' expected."), - Property_or_signature_expected: diag(1131, 1 /* Error */, "Property_or_signature_expected_1131", "Property or signature expected."), - Enum_member_expected: diag(1132, 1 /* Error */, "Enum_member_expected_1132", "Enum member expected."), - Variable_declaration_expected: diag(1134, 1 /* Error */, "Variable_declaration_expected_1134", "Variable declaration expected."), - Argument_expression_expected: diag(1135, 1 /* Error */, "Argument_expression_expected_1135", "Argument expression expected."), - Property_assignment_expected: diag(1136, 1 /* Error */, "Property_assignment_expected_1136", "Property assignment expected."), - Expression_or_comma_expected: diag(1137, 1 /* Error */, "Expression_or_comma_expected_1137", "Expression or comma expected."), - Parameter_declaration_expected: diag(1138, 1 /* Error */, "Parameter_declaration_expected_1138", "Parameter declaration expected."), - Type_parameter_declaration_expected: diag(1139, 1 /* Error */, "Type_parameter_declaration_expected_1139", "Type parameter declaration expected."), - Type_argument_expected: diag(1140, 1 /* Error */, "Type_argument_expected_1140", "Type argument expected."), - String_literal_expected: diag(1141, 1 /* Error */, "String_literal_expected_1141", "String literal expected."), - Line_break_not_permitted_here: diag(1142, 1 /* Error */, "Line_break_not_permitted_here_1142", "Line break not permitted here."), - or_expected: diag(1144, 1 /* Error */, "or_expected_1144", "'{' or ';' expected."), - or_JSX_element_expected: diag(1145, 1 /* Error */, "or_JSX_element_expected_1145", "'{' or JSX element expected."), - Declaration_expected: diag(1146, 1 /* Error */, "Declaration_expected_1146", "Declaration expected."), - Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), - Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), - File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), - _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), - _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), - Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), - Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), - An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), - A_yield_expression_is_only_allowed_in_a_generator_body: diag(1163, 1 /* Error */, "A_yield_expression_is_only_allowed_in_a_generator_body_1163", "A 'yield' expression is only allowed in a generator body."), - Computed_property_names_are_not_allowed_in_enums: diag(1164, 1 /* Error */, "Computed_property_names_are_not_allowed_in_enums_1164", "Computed property names are not allowed in enums."), - A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1165, 1 /* Error */, "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165", "A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."), - A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type: diag(1166, 1 /* Error */, "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: diag(1168, 1 /* Error */, "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168", "A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."), - A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1169, 1 /* Error */, "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169", "A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."), - A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1170, 1 /* Error */, "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170", "A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."), - A_comma_expression_is_not_allowed_in_a_computed_property_name: diag(1171, 1 /* Error */, "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171", "A comma expression is not allowed in a computed property name."), - extends_clause_already_seen: diag(1172, 1 /* Error */, "extends_clause_already_seen_1172", "'extends' clause already seen."), - extends_clause_must_precede_implements_clause: diag(1173, 1 /* Error */, "extends_clause_must_precede_implements_clause_1173", "'extends' clause must precede 'implements' clause."), - Classes_can_only_extend_a_single_class: diag(1174, 1 /* Error */, "Classes_can_only_extend_a_single_class_1174", "Classes can only extend a single class."), - implements_clause_already_seen: diag(1175, 1 /* Error */, "implements_clause_already_seen_1175", "'implements' clause already seen."), - Interface_declaration_cannot_have_implements_clause: diag(1176, 1 /* Error */, "Interface_declaration_cannot_have_implements_clause_1176", "Interface declaration cannot have 'implements' clause."), - Binary_digit_expected: diag(1177, 1 /* Error */, "Binary_digit_expected_1177", "Binary digit expected."), - Octal_digit_expected: diag(1178, 1 /* Error */, "Octal_digit_expected_1178", "Octal digit expected."), - Unexpected_token_expected: diag(1179, 1 /* Error */, "Unexpected_token_expected_1179", "Unexpected token. '{' expected."), - Property_destructuring_pattern_expected: diag(1180, 1 /* Error */, "Property_destructuring_pattern_expected_1180", "Property destructuring pattern expected."), - Array_element_destructuring_pattern_expected: diag(1181, 1 /* Error */, "Array_element_destructuring_pattern_expected_1181", "Array element destructuring pattern expected."), - A_destructuring_declaration_must_have_an_initializer: diag(1182, 1 /* Error */, "A_destructuring_declaration_must_have_an_initializer_1182", "A destructuring declaration must have an initializer."), - An_implementation_cannot_be_declared_in_ambient_contexts: diag(1183, 1 /* Error */, "An_implementation_cannot_be_declared_in_ambient_contexts_1183", "An implementation cannot be declared in ambient contexts."), - Modifiers_cannot_appear_here: diag(1184, 1 /* Error */, "Modifiers_cannot_appear_here_1184", "Modifiers cannot appear here."), - Merge_conflict_marker_encountered: diag(1185, 1 /* Error */, "Merge_conflict_marker_encountered_1185", "Merge conflict marker encountered."), - A_rest_element_cannot_have_an_initializer: diag(1186, 1 /* Error */, "A_rest_element_cannot_have_an_initializer_1186", "A rest element cannot have an initializer."), - A_parameter_property_may_not_be_declared_using_a_binding_pattern: diag(1187, 1 /* Error */, "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187", "A parameter property may not be declared using a binding pattern."), - Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: diag(1188, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188", "Only a single variable declaration is allowed in a 'for...of' statement."), - The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: diag(1189, 1 /* Error */, "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189", "The variable declaration of a 'for...in' statement cannot have an initializer."), - The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: diag(1190, 1 /* Error */, "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190", "The variable declaration of a 'for...of' statement cannot have an initializer."), - An_import_declaration_cannot_have_modifiers: diag(1191, 1 /* Error */, "An_import_declaration_cannot_have_modifiers_1191", "An import declaration cannot have modifiers."), - Module_0_has_no_default_export: diag(1192, 1 /* Error */, "Module_0_has_no_default_export_1192", "Module '{0}' has no default export."), - An_export_declaration_cannot_have_modifiers: diag(1193, 1 /* Error */, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."), - Export_declarations_are_not_permitted_in_a_namespace: diag(1194, 1 /* Error */, "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: diag(1195, 1 /* Error */, "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: diag(1196, 1 /* Error */, "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: diag(1197, 1 /* Error */, "Catch_clause_variable_cannot_have_an_initializer_1197", "Catch clause variable cannot have an initializer."), - An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, 1 /* Error */, "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198", "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."), - Unterminated_Unicode_escape_sequence: diag(1199, 1 /* Error */, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."), - Line_terminator_not_permitted_before_arrow: diag(1200, 1 /* Error */, "Line_terminator_not_permitted_before_arrow_1200", "Line terminator not permitted before arrow."), - Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(1202, 1 /* Error */, "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202", `Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`), - Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead: diag(1203, 1 /* Error */, "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203", "Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."), - Re_exporting_a_type_when_0_is_enabled_requires_using_export_type: diag(1205, 1 /* Error */, "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: diag(1206, 1 /* Error */, "Decorators_are_not_valid_here_1206", "Decorators are not valid here."), - Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: diag(1207, 1 /* Error */, "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207", "Decorators cannot be applied to multiple get/set accessors of the same name."), - Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0: diag(1209, 1 /* Error */, "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: diag(1210, 1 /* Error */, "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: diag(1211, 1 /* Error */, "A_class_declaration_without_the_default_modifier_must_have_a_name_1211", "A class declaration without the 'default' modifier must have a name."), - Identifier_expected_0_is_a_reserved_word_in_strict_mode: diag(1212, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212", "Identifier expected. '{0}' is a reserved word in strict mode."), - Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: diag(1213, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213", "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."), - Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode: diag(1214, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214", "Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."), - Invalid_use_of_0_Modules_are_automatically_in_strict_mode: diag(1215, 1 /* Error */, "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215", "Invalid use of '{0}'. Modules are automatically in strict mode."), - Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules: diag(1216, 1 /* Error */, "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216", "Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."), - Export_assignment_is_not_supported_when_module_flag_is_system: diag(1218, 1 /* Error */, "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: diag(1221, 1 /* Error */, "Generators_are_not_allowed_in_an_ambient_context_1221", "Generators are not allowed in an ambient context."), - An_overload_signature_cannot_be_declared_as_a_generator: diag(1222, 1 /* Error */, "An_overload_signature_cannot_be_declared_as_a_generator_1222", "An overload signature cannot be declared as a generator."), - _0_tag_already_specified: diag(1223, 1 /* Error */, "_0_tag_already_specified_1223", "'{0}' tag already specified."), - Signature_0_must_be_a_type_predicate: diag(1224, 1 /* Error */, "Signature_0_must_be_a_type_predicate_1224", "Signature '{0}' must be a type predicate."), - Cannot_find_parameter_0: diag(1225, 1 /* Error */, "Cannot_find_parameter_0_1225", "Cannot find parameter '{0}'."), - Type_predicate_0_is_not_assignable_to_1: diag(1226, 1 /* Error */, "Type_predicate_0_is_not_assignable_to_1_1226", "Type predicate '{0}' is not assignable to '{1}'."), - Parameter_0_is_not_in_the_same_position_as_parameter_1: diag(1227, 1 /* Error */, "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227", "Parameter '{0}' is not in the same position as parameter '{1}'."), - A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: diag(1228, 1 /* Error */, "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228", "A type predicate is only allowed in return type position for functions and methods."), - A_type_predicate_cannot_reference_a_rest_parameter: diag(1229, 1 /* Error */, "A_type_predicate_cannot_reference_a_rest_parameter_1229", "A type predicate cannot reference a rest parameter."), - A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: diag(1230, 1 /* Error */, "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230", "A type predicate cannot reference element '{0}' in a binding pattern."), - An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1231, 1 /* Error */, "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: diag(1232, 1 /* Error */, "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: diag(1233, 1 /* Error */, "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: diag(1234, 1 /* Error */, "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234", "An ambient module declaration is only allowed at the top level in a file."), - A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module: diag(1235, 1 /* Error */, "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: diag(1236, 1 /* Error */, "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236", "The return type of a property decorator function must be either 'void' or 'any'."), - The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any: diag(1237, 1 /* Error */, "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237", "The return type of a parameter decorator function must be either 'void' or 'any'."), - Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression: diag(1238, 1 /* Error */, "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238", "Unable to resolve signature of class decorator when called as an expression."), - Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression: diag(1239, 1 /* Error */, "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239", "Unable to resolve signature of parameter decorator when called as an expression."), - Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression: diag(1240, 1 /* Error */, "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240", "Unable to resolve signature of property decorator when called as an expression."), - Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression: diag(1241, 1 /* Error */, "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241", "Unable to resolve signature of method decorator when called as an expression."), - abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration: diag(1242, 1 /* Error */, "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242", "'abstract' modifier can only appear on a class, method, or property declaration."), - _0_modifier_cannot_be_used_with_1_modifier: diag(1243, 1 /* Error */, "_0_modifier_cannot_be_used_with_1_modifier_1243", "'{0}' modifier cannot be used with '{1}' modifier."), - Abstract_methods_can_only_appear_within_an_abstract_class: diag(1244, 1 /* Error */, "Abstract_methods_can_only_appear_within_an_abstract_class_1244", "Abstract methods can only appear within an abstract class."), - Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: diag(1245, 1 /* Error */, "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245", "Method '{0}' cannot have an implementation because it is marked abstract."), - An_interface_property_cannot_have_an_initializer: diag(1246, 1 /* Error */, "An_interface_property_cannot_have_an_initializer_1246", "An interface property cannot have an initializer."), - A_type_literal_property_cannot_have_an_initializer: diag(1247, 1 /* Error */, "A_type_literal_property_cannot_have_an_initializer_1247", "A type literal property cannot have an initializer."), - A_class_member_cannot_have_the_0_keyword: diag(1248, 1 /* Error */, "A_class_member_cannot_have_the_0_keyword_1248", "A class member cannot have the '{0}' keyword."), - A_decorator_can_only_decorate_a_method_implementation_not_an_overload: diag(1249, 1 /* Error */, "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249", "A decorator can only decorate a method implementation, not an overload."), - Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5: diag(1250, 1 /* Error */, "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: diag(1251, 1 /* Error */, "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: diag(1252, 1 /* Error */, "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: diag(1253, 1 /* Error */, "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: diag(1254, 1 /* Error */, "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254", "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."), - A_definite_assignment_assertion_is_not_permitted_in_this_context: diag(1255, 1 /* Error */, "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: diag(1257, 1 /* Error */, "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: diag(1258, 1 /* Error */, "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: diag(1259, 1 /* Error */, "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: diag(1260, 1 /* Error */, "Keywords_cannot_contain_escape_characters_1260", "Keywords cannot contain escape characters."), - Already_included_file_name_0_differs_from_file_name_1_only_in_casing: diag(1261, 1 /* Error */, "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: diag(1262, 1 /* Error */, "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: diag(1263, 1 /* Error */, "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: diag(1264, 1 /* Error */, "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: diag(1265, 1 /* Error */, "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: diag(1266, 1 /* Error */, "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: diag(1267, 1 /* Error */, "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: diag(1268, 1 /* Error */, "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: diag(1269, 1 /* Error */, "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: diag(1270, 1 /* Error */, "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: diag(1271, 1 /* Error */, "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: diag(1272, 1 /* Error */, "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: diag(1273, 1 /* Error */, "_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: diag(1274, 1 /* Error */, "_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: diag(1275, 1 /* Error */, "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: diag(1276, 1 /* Error */, "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: diag(1277, 1 /* Error */, "_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: diag(1278, 1 /* Error */, "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: diag(1279, 1 /* Error */, "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: diag(1280, 1 /* Error */, "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: diag(1281, 1 /* Error */, "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: diag(1282, 1 /* Error */, "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: diag(1283, 1 /* Error */, "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: diag(1284, 1 /* Error */, "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: diag(1285, 1 /* Error */, "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: diag(1286, 1 /* Error */, "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: diag(1287, 1 /* Error */, "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: diag(1288, 1 /* Error */, "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: diag(1289, 1 /* Error */, "_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: diag(1290, 1 /* Error */, "_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: diag(1291, 1 /* Error */, "_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: diag(1292, 1 /* Error */, "_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: diag(1293, 1 /* Error */, "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'."), - This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1 /* Error */, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."), - with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "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: diag(1308, 1 /* Error */, "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: diag(1309, 1 /* Error */, "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: diag(1312, 1 /* Error */, "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: diag(1313, 1 /* Error */, "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313", "The body of an 'if' statement cannot be the empty statement."), - Global_module_exports_may_only_appear_in_module_files: diag(1314, 1 /* Error */, "Global_module_exports_may_only_appear_in_module_files_1314", "Global module exports may only appear in module files."), - Global_module_exports_may_only_appear_in_declaration_files: diag(1315, 1 /* Error */, "Global_module_exports_may_only_appear_in_declaration_files_1315", "Global module exports may only appear in declaration files."), - Global_module_exports_may_only_appear_at_top_level: diag(1316, 1 /* Error */, "Global_module_exports_may_only_appear_at_top_level_1316", "Global module exports may only appear at top level."), - A_parameter_property_cannot_be_declared_using_a_rest_parameter: diag(1317, 1 /* Error */, "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", "A parameter property cannot be declared using a rest parameter."), - An_abstract_accessor_cannot_have_an_implementation: diag(1318, 1 /* Error */, "An_abstract_accessor_cannot_have_an_implementation_1318", "An abstract accessor cannot have an implementation."), - A_default_export_can_only_be_used_in_an_ECMAScript_style_module: diag(1319, 1 /* Error */, "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319", "A default export can only be used in an ECMAScript-style module."), - Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1 /* Error */, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."), - Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."), - Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."), - Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1 /* Error */, "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', 'node18', or 'nodenext'."), - Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."), - Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1 /* Error */, "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: diag(1326, 1 /* Error */, "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: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."), - Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: diag(1328, 1 /* Error */, "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328", "Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."), - _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: diag(1329, 1 /* Error */, "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329", "'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"), - A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly: diag(1330, 1 /* Error */, "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330", "A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."), - A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly: diag(1331, 1 /* Error */, "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331", "A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."), - A_variable_whose_type_is_a_unique_symbol_type_must_be_const: diag(1332, 1 /* Error */, "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332", "A variable whose type is a 'unique symbol' type must be 'const'."), - unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name: diag(1333, 1 /* Error */, "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333", "'unique symbol' types may not be used on a variable declaration with a binding name."), - unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement: diag(1334, 1 /* Error */, "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334", "'unique symbol' types are only allowed on variables in a variable statement."), - unique_symbol_types_are_not_allowed_here: diag(1335, 1 /* Error */, "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: diag(1337, 1 /* Error */, "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: diag(1338, 1 /* Error */, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."), - Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."), - Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"), - Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "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_node18_or_nodenext: diag(1343, 1 /* Error */, "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', 'node18', or 'nodenext'."), - A_label_is_not_allowed_here: diag(1344, 1 /* Error */, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."), - An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."), - This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."), - use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, 1 /* Error */, "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347", "'use strict' directive cannot be used with non-simple parameter list."), - Non_simple_parameter_declared_here: diag(1348, 1 /* Error */, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."), - use_strict_directive_used_here: diag(1349, 1 /* Error */, "use_strict_directive_used_here_1349", "'use strict' directive used here."), - Print_the_final_configuration_instead_of_building: diag(1350, 3 /* Message */, "Print_the_final_configuration_instead_of_building_1350", "Print the final configuration instead of building."), - An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, 1 /* Error */, "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351", "An identifier or keyword cannot immediately follow a numeric literal."), - A_bigint_literal_cannot_use_exponential_notation: diag(1352, 1 /* Error */, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."), - A_bigint_literal_must_be_an_integer: diag(1353, 1 /* Error */, "A_bigint_literal_must_be_an_integer_1353", "A bigint literal must be an integer."), - readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: diag(1354, 1 /* Error */, "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354", "'readonly' type modifier is only permitted on array and tuple literal types."), - A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: diag(1355, 1 /* Error */, "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: diag(1356, 1 /* Error */, "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: diag(1357, 1 /* Error */, "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: diag(1358, 1 /* Error */, "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: diag(1359, 1 /* Error */, "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: diag(1360, 1 /* Error */, "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: diag(1361, 1 /* Error */, "_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: diag(1362, 1 /* Error */, "_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: diag(1363, 1 /* Error */, "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: diag(1364, 3 /* Message */, "Convert_to_type_only_export_1364", "Convert to type-only export"), - Convert_all_re_exported_types_to_type_only_exports: diag(1365, 3 /* Message */, "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: diag(1366, 3 /* Message */, "Split_into_two_separate_import_declarations_1366", "Split into two separate import declarations"), - Split_all_invalid_type_only_imports: diag(1367, 3 /* Message */, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"), - Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), - Did_you_mean_0: diag(1369, 3 /* Message */, "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: diag(1375, 1 /* Error */, "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: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), - _0_was_exported_here: diag(1377, 3 /* Message */, "_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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "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', 'node18', '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: diag(1379, 1 /* Error */, "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: diag(1380, 1 /* Error */, "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: diag(1381, 1 /* Error */, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), - Unexpected_token_Did_you_mean_or_gt: diag(1382, 1 /* Error */, "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: diag(1385, 1 /* Error */, "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: diag(1386, 1 /* Error */, "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: diag(1387, 1 /* Error */, "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: diag(1388, 1 /* Error */, "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: diag(1389, 1 /* Error */, "_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: diag(1390, 1 /* Error */, "_0_is_not_allowed_as_a_parameter_name_1390", "'{0}' is not allowed as a parameter name."), - An_import_alias_cannot_use_import_type: diag(1392, 1 /* Error */, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"), - Imported_via_0_from_file_1: diag(1393, 3 /* Message */, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"), - Imported_via_0_from_file_1_with_packageId_2: diag(1394, 3 /* Message */, "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: diag(1395, 3 /* Message */, "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: diag(1396, 3 /* Message */, "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: diag(1397, 3 /* Message */, "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: diag(1398, 3 /* Message */, "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: diag(1399, 3 /* Message */, "File_is_included_via_import_here_1399", "File is included via import here."), - Referenced_via_0_from_file_1: diag(1400, 3 /* Message */, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"), - File_is_included_via_reference_here: diag(1401, 3 /* Message */, "File_is_included_via_reference_here_1401", "File is included via reference here."), - Type_library_referenced_via_0_from_file_1: diag(1402, 3 /* Message */, "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: diag(1403, 3 /* Message */, "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: diag(1404, 3 /* Message */, "File_is_included_via_type_library_reference_here_1404", "File is included via type library reference here."), - Library_referenced_via_0_from_file_1: diag(1405, 3 /* Message */, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"), - File_is_included_via_library_reference_here: diag(1406, 3 /* Message */, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."), - Matched_by_include_pattern_0_in_1: diag(1407, 3 /* Message */, "Matched_by_include_pattern_0_in_1_1407", "Matched by include pattern '{0}' in '{1}'"), - File_is_matched_by_include_pattern_specified_here: diag(1408, 3 /* Message */, "File_is_matched_by_include_pattern_specified_here_1408", "File is matched by include pattern specified here."), - Part_of_files_list_in_tsconfig_json: diag(1409, 3 /* Message */, "Part_of_files_list_in_tsconfig_json_1409", "Part of 'files' list in tsconfig.json"), - File_is_matched_by_files_list_specified_here: diag(1410, 3 /* Message */, "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: diag(1411, 3 /* Message */, "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: diag(1412, 3 /* Message */, "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: diag(1413, 3 /* Message */, "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: diag(1414, 3 /* Message */, "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: diag(1415, 3 /* Message */, "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: diag(1416, 3 /* Message */, "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: diag(1417, 3 /* Message */, "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: diag(1418, 3 /* Message */, "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: diag(1419, 3 /* Message */, "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: diag(1420, 3 /* Message */, "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: diag(1421, 3 /* Message */, "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: diag(1422, 3 /* Message */, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"), - File_is_library_specified_here: diag(1423, 3 /* Message */, "File_is_library_specified_here_1423", "File is library specified here."), - Default_library: diag(1424, 3 /* Message */, "Default_library_1424", "Default library"), - Default_library_for_target_0: diag(1425, 3 /* Message */, "Default_library_for_target_0_1425", "Default library for target '{0}'"), - File_is_default_library_for_target_specified_here: diag(1426, 3 /* Message */, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."), - Root_file_specified_for_compilation: diag(1427, 3 /* Message */, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"), - File_is_output_of_project_reference_source_0: diag(1428, 3 /* Message */, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"), - File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), - The_file_is_in_the_program_because_Colon: diag(1430, 3 /* Message */, "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: diag(1431, 1 /* Error */, "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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1 /* Error */, "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', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."), - Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1 /* Error */, "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: diag(1434, 1 /* Error */, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), - Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1 /* Error */, "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: diag(1436, 1 /* Error */, "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: diag(1437, 1 /* Error */, "Namespace_must_be_given_a_name_1437", "Namespace must be given a name."), - Interface_must_be_given_a_name: diag(1438, 1 /* Error */, "Interface_must_be_given_a_name_1438", "Interface must be given a name."), - Type_alias_must_be_given_a_name: diag(1439, 1 /* Error */, "Type_alias_must_be_given_a_name_1439", "Type alias must be given a name."), - Variable_declaration_not_allowed_at_this_location: diag(1440, 1 /* Error */, "Variable_declaration_not_allowed_at_this_location_1440", "Variable declaration not allowed at this location."), - Cannot_start_a_function_call_in_a_type_annotation: diag(1441, 1 /* Error */, "Cannot_start_a_function_call_in_a_type_annotation_1441", "Cannot start a function call in a type annotation."), - Expected_for_property_initializer: diag(1442, 1 /* Error */, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."), - Module_declaration_names_may_only_use_or_quoted_strings: diag(1443, 1 /* Error */, "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: diag(1448, 1 /* Error */, "_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: diag(1449, 3 /* Message */, "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: diag(1450, 3 /* Message */, "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: diag(1451, 1 /* Error */, "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: diag(1453, 1 /* Error */, "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: diag(1454, 1 /* Error */, "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: diag(1455, 1 /* Error */, "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: diag(1456, 1 /* Error */, "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: diag(1457, 3 /* Message */, "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: diag(1458, 3 /* Message */, "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: diag(1459, 3 /* Message */, "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: diag(1460, 3 /* Message */, "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: diag(1461, 3 /* Message */, "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: diag(1463, 1 /* Error */, "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: diag(1464, 1 /* Error */, "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: diag(1470, 1 /* Error */, "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: diag(1471, 1 /* Error */, "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: diag(1472, 1 /* Error */, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."), - An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1473, 1 /* Error */, "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: diag(1474, 1 /* Error */, "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: diag(1475, 3 /* Message */, "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: diag(1476, 3 /* Message */, "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: diag(1477, 1 /* Error */, "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: diag(1478, 1 /* Error */, "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: diag(1479, 1 /* Error */, "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: diag(1480, 3 /* Message */, "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: diag(1481, 3 /* Message */, "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: diag(1482, 3 /* Message */, "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: diag(1483, 3 /* Message */, "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: diag(1484, 1 /* Error */, "_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: diag(1485, 1 /* Error */, "_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: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."), - Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: diag(1487, 1 /* Error */, "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: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), - Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), - File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), - _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), - _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_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: diag(1493, 1 /* Error */, "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: diag(1494, 1 /* Error */, "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: diag(1495, 1 /* Error */, "_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: diag(1496, 1 /* Error */, "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: diag(1497, 1 /* Error */, "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: diag(1498, 1 /* Error */, "Invalid_syntax_in_decorator_1498", "Invalid syntax in decorator."), - Unknown_regular_expression_flag: diag(1499, 1 /* Error */, "Unknown_regular_expression_flag_1499", "Unknown regular expression flag."), - Duplicate_regular_expression_flag: diag(1500, 1 /* Error */, "Duplicate_regular_expression_flag_1500", "Duplicate regular expression flag."), - This_regular_expression_flag_is_only_available_when_targeting_0_or_later: diag(1501, 1 /* Error */, "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: diag(1502, 1 /* Error */, "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: diag(1503, 1 /* Error */, "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: diag(1504, 1 /* Error */, "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: diag(1505, 1 /* Error */, "Incomplete_quantifier_Digit_expected_1505", "Incomplete quantifier. Digit expected."), - Numbers_out_of_order_in_quantifier: diag(1506, 1 /* Error */, "Numbers_out_of_order_in_quantifier_1506", "Numbers out of order in quantifier."), - There_is_nothing_available_for_repetition: diag(1507, 1 /* Error */, "There_is_nothing_available_for_repetition_1507", "There is nothing available for repetition."), - Unexpected_0_Did_you_mean_to_escape_it_with_backslash: diag(1508, 1 /* Error */, "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: diag(1509, 1 /* Error */, "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: diag(1510, 1 /* Error */, "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: diag(1511, 1 /* Error */, "q_is_only_available_inside_character_class_1511", "'\\q' is only available inside character class."), - c_must_be_followed_by_an_ASCII_letter: diag(1512, 1 /* Error */, "c_must_be_followed_by_an_ASCII_letter_1512", "'\\c' must be followed by an ASCII letter."), - Undetermined_character_escape: diag(1513, 1 /* Error */, "Undetermined_character_escape_1513", "Undetermined character escape."), - Expected_a_capturing_group_name: diag(1514, 1 /* Error */, "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: diag(1515, 1 /* Error */, "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: diag(1516, 1 /* Error */, "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: diag(1517, 1 /* Error */, "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: diag(1518, 1 /* Error */, "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: diag(1519, 1 /* Error */, "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: diag(1520, 1 /* Error */, "Expected_a_class_set_operand_1520", "Expected a class set operand."), - q_must_be_followed_by_string_alternatives_enclosed_in_braces: diag(1521, 1 /* Error */, "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: diag(1522, 1 /* Error */, "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: diag(1523, 1 /* Error */, "Expected_a_Unicode_property_name_1523", "Expected a Unicode property name."), - Unknown_Unicode_property_name: diag(1524, 1 /* Error */, "Unknown_Unicode_property_name_1524", "Unknown Unicode property name."), - Expected_a_Unicode_property_value: diag(1525, 1 /* Error */, "Expected_a_Unicode_property_value_1525", "Expected a Unicode property value."), - Unknown_Unicode_property_value: diag(1526, 1 /* Error */, "Unknown_Unicode_property_value_1526", "Unknown Unicode property value."), - Expected_a_Unicode_property_name_or_value: diag(1527, 1 /* Error */, "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: diag(1528, 1 /* Error */, "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: diag(1529, 1 /* Error */, "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: diag(1530, 1 /* Error */, "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: diag(1531, 1 /* Error */, "_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: diag(1532, 1 /* Error */, "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: diag(1533, 1 /* Error */, "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: diag(1534, 1 /* Error */, "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: diag(1535, 1 /* Error */, "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: diag(1536, 1 /* Error */, "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: diag(1537, 1 /* Error */, "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: diag(1538, 1 /* Error */, "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: diag(1539, 1 /* Error */, "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: diag( - 1540, - 2 /* Suggestion */, - "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.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - void 0, - /*reportsDeprecated*/ - true - ), - Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1541, 1 /* Error */, "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: diag(1542, 1 /* Error */, "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: diag(1543, 1 /* Error */, "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: diag(1544, 1 /* Error */, "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: diag(2200, 1 /* Error */, "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: diag(2201, 1 /* Error */, "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: diag( - 2202, - 1 /* Error */, - "Call_signature_return_types_0_and_1_are_incompatible_2202", - "Call signature return types '{0}' and '{1}' are incompatible.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - true - ), - Construct_signature_return_types_0_and_1_are_incompatible: diag( - 2203, - 1 /* Error */, - "Construct_signature_return_types_0_and_1_are_incompatible_2203", - "Construct signature return types '{0}' and '{1}' are incompatible.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - true - ), - Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag( - 2204, - 1 /* Error */, - "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}'.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - true - ), - Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag( - 2205, - 1 /* Error */, - "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}'.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - true - ), - The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: diag(2206, 1 /* Error */, "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: diag(2207, 1 /* Error */, "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: diag(2208, 1 /* Error */, "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: diag(2209, 1 /* Error */, "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: diag(2210, 1 /* Error */, "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: diag(2211, 3 /* Message */, "Add_extends_constraint_2211", "Add `extends` constraint."), - Add_extends_constraint_to_all_type_parameters: diag(2212, 3 /* Message */, "Add_extends_constraint_to_all_type_parameters_2212", "Add `extends` constraint to all type parameters"), - Duplicate_identifier_0: diag(2300, 1 /* Error */, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."), - Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2301, 1 /* Error */, "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301", "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."), - Static_members_cannot_reference_class_type_parameters: diag(2302, 1 /* Error */, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."), - Circular_definition_of_import_alias_0: diag(2303, 1 /* Error */, "Circular_definition_of_import_alias_0_2303", "Circular definition of import alias '{0}'."), - Cannot_find_name_0: diag(2304, 1 /* Error */, "Cannot_find_name_0_2304", "Cannot find name '{0}'."), - Module_0_has_no_exported_member_1: diag(2305, 1 /* Error */, "Module_0_has_no_exported_member_1_2305", "Module '{0}' has no exported member '{1}'."), - File_0_is_not_a_module: diag(2306, 1 /* Error */, "File_0_is_not_a_module_2306", "File '{0}' is not a module."), - Cannot_find_module_0_or_its_corresponding_type_declarations: diag(2307, 1 /* Error */, "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: diag(2308, 1 /* Error */, "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308", "Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."), - An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: diag(2309, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309", "An export assignment cannot be used in a module with other exported elements."), - Type_0_recursively_references_itself_as_a_base_type: diag(2310, 1 /* Error */, "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: diag(2311, 1 /* Error */, "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: diag(2312, 1 /* Error */, "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312", "An interface can only extend an object type or intersection of object types with statically known members."), - Type_parameter_0_has_a_circular_constraint: diag(2313, 1 /* Error */, "Type_parameter_0_has_a_circular_constraint_2313", "Type parameter '{0}' has a circular constraint."), - Generic_type_0_requires_1_type_argument_s: diag(2314, 1 /* Error */, "Generic_type_0_requires_1_type_argument_s_2314", "Generic type '{0}' requires {1} type argument(s)."), - Type_0_is_not_generic: diag(2315, 1 /* Error */, "Type_0_is_not_generic_2315", "Type '{0}' is not generic."), - Global_type_0_must_be_a_class_or_interface_type: diag(2316, 1 /* Error */, "Global_type_0_must_be_a_class_or_interface_type_2316", "Global type '{0}' must be a class or interface type."), - Global_type_0_must_have_1_type_parameter_s: diag(2317, 1 /* Error */, "Global_type_0_must_have_1_type_parameter_s_2317", "Global type '{0}' must have {1} type parameter(s)."), - Cannot_find_global_type_0: diag(2318, 1 /* Error */, "Cannot_find_global_type_0_2318", "Cannot find global type '{0}'."), - Named_property_0_of_types_1_and_2_are_not_identical: diag(2319, 1 /* Error */, "Named_property_0_of_types_1_and_2_are_not_identical_2319", "Named property '{0}' of types '{1}' and '{2}' are not identical."), - Interface_0_cannot_simultaneously_extend_types_1_and_2: diag(2320, 1 /* Error */, "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320", "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."), - Excessive_stack_depth_comparing_types_0_and_1: diag(2321, 1 /* Error */, "Excessive_stack_depth_comparing_types_0_and_1_2321", "Excessive stack depth comparing types '{0}' and '{1}'."), - Type_0_is_not_assignable_to_type_1: diag(2322, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_2322", "Type '{0}' is not assignable to type '{1}'."), - Cannot_redeclare_exported_variable_0: diag(2323, 1 /* Error */, "Cannot_redeclare_exported_variable_0_2323", "Cannot redeclare exported variable '{0}'."), - Property_0_is_missing_in_type_1: diag(2324, 1 /* Error */, "Property_0_is_missing_in_type_1_2324", "Property '{0}' is missing in type '{1}'."), - Property_0_is_private_in_type_1_but_not_in_type_2: diag(2325, 1 /* Error */, "Property_0_is_private_in_type_1_but_not_in_type_2_2325", "Property '{0}' is private in type '{1}' but not in type '{2}'."), - Types_of_property_0_are_incompatible: diag(2326, 1 /* Error */, "Types_of_property_0_are_incompatible_2326", "Types of property '{0}' are incompatible."), - Property_0_is_optional_in_type_1_but_required_in_type_2: diag(2327, 1 /* Error */, "Property_0_is_optional_in_type_1_but_required_in_type_2_2327", "Property '{0}' is optional in type '{1}' but required in type '{2}'."), - Types_of_parameters_0_and_1_are_incompatible: diag(2328, 1 /* Error */, "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: diag(2329, 1 /* Error */, "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: diag(2330, 1 /* Error */, "_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: diag(2331, 1 /* Error */, "this_cannot_be_referenced_in_a_module_or_namespace_body_2331", "'this' cannot be referenced in a module or namespace body."), - this_cannot_be_referenced_in_current_location: diag(2332, 1 /* Error */, "this_cannot_be_referenced_in_current_location_2332", "'this' cannot be referenced in current location."), - this_cannot_be_referenced_in_a_static_property_initializer: diag(2334, 1 /* Error */, "this_cannot_be_referenced_in_a_static_property_initializer_2334", "'this' cannot be referenced in a static property initializer."), - super_can_only_be_referenced_in_a_derived_class: diag(2335, 1 /* Error */, "super_can_only_be_referenced_in_a_derived_class_2335", "'super' can only be referenced in a derived class."), - super_cannot_be_referenced_in_constructor_arguments: diag(2336, 1 /* Error */, "super_cannot_be_referenced_in_constructor_arguments_2336", "'super' cannot be referenced in constructor arguments."), - Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: diag(2337, 1 /* Error */, "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337", "Super calls are not permitted outside constructors or in nested functions inside constructors."), - super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: diag(2338, 1 /* Error */, "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338", "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."), - Property_0_does_not_exist_on_type_1: diag(2339, 1 /* Error */, "Property_0_does_not_exist_on_type_1_2339", "Property '{0}' does not exist on type '{1}'."), - Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: diag(2340, 1 /* Error */, "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340", "Only public and protected methods of the base class are accessible via the 'super' keyword."), - Property_0_is_private_and_only_accessible_within_class_1: diag(2341, 1 /* Error */, "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: diag(2343, 1 /* Error */, "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: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), - Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), - Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), - Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), - This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), - Only_a_void_function_can_be_called_with_the_new_keyword: diag(2350, 1 /* Error */, "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: diag(2351, 1 /* Error */, "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: diag(2352, 1 /* Error */, "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352", "Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."), - Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: diag(2353, 1 /* Error */, "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353", "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."), - This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: diag(2354, 1 /* Error */, "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", "This syntax requires an imported helper but module '{0}' cannot be found."), - A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2355, 1 /* Error */, "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: diag(2356, 1 /* Error */, "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356", "An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."), - The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, 1 /* Error */, "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357", "The operand of an increment or decrement operator must be a variable or a property access."), - The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358", "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."), - The_right_hand_side_of_an_instanceof_expression_must_be_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: diag(2359, 1 /* Error */, "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: diag(2362, 1 /* Error */, "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362", "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), - The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2363, 1 /* Error */, "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363", "The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), - The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: diag(2364, 1 /* Error */, "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364", "The left-hand side of an assignment expression must be a variable or a property access."), - Operator_0_cannot_be_applied_to_types_1_and_2: diag(2365, 1 /* Error */, "Operator_0_cannot_be_applied_to_types_1_and_2_2365", "Operator '{0}' cannot be applied to types '{1}' and '{2}'."), - Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: diag(2366, 1 /* Error */, "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366", "Function lacks ending return statement and return type does not include 'undefined'."), - This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap: diag(2367, 1 /* Error */, "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: diag(2368, 1 /* Error */, "Type_parameter_name_cannot_be_0_2368", "Type parameter name cannot be '{0}'."), - A_parameter_property_is_only_allowed_in_a_constructor_implementation: diag(2369, 1 /* Error */, "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369", "A parameter property is only allowed in a constructor implementation."), - A_rest_parameter_must_be_of_an_array_type: diag(2370, 1 /* Error */, "A_rest_parameter_must_be_of_an_array_type_2370", "A rest parameter must be of an array type."), - A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: diag(2371, 1 /* Error */, "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371", "A parameter initializer is only allowed in a function or constructor implementation."), - Parameter_0_cannot_reference_itself: diag(2372, 1 /* Error */, "Parameter_0_cannot_reference_itself_2372", "Parameter '{0}' cannot reference itself."), - Parameter_0_cannot_reference_identifier_1_declared_after_it: diag(2373, 1 /* Error */, "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: diag(2374, 1 /* Error */, "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: diag(2375, 1 /* Error */, "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: diag(2376, 1 /* Error */, "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: diag(2377, 1 /* Error */, "Constructors_for_derived_classes_must_contain_a_super_call_2377", "Constructors for derived classes must contain a 'super' call."), - A_get_accessor_must_return_a_value: diag(2378, 1 /* Error */, "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: diag(2379, 1 /* Error */, "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: diag(2383, 1 /* Error */, "Overload_signatures_must_all_be_exported_or_non_exported_2383", "Overload signatures must all be exported or non-exported."), - Overload_signatures_must_all_be_ambient_or_non_ambient: diag(2384, 1 /* Error */, "Overload_signatures_must_all_be_ambient_or_non_ambient_2384", "Overload signatures must all be ambient or non-ambient."), - Overload_signatures_must_all_be_public_private_or_protected: diag(2385, 1 /* Error */, "Overload_signatures_must_all_be_public_private_or_protected_2385", "Overload signatures must all be public, private or protected."), - Overload_signatures_must_all_be_optional_or_required: diag(2386, 1 /* Error */, "Overload_signatures_must_all_be_optional_or_required_2386", "Overload signatures must all be optional or required."), - Function_overload_must_be_static: diag(2387, 1 /* Error */, "Function_overload_must_be_static_2387", "Function overload must be static."), - Function_overload_must_not_be_static: diag(2388, 1 /* Error */, "Function_overload_must_not_be_static_2388", "Function overload must not be static."), - Function_implementation_name_must_be_0: diag(2389, 1 /* Error */, "Function_implementation_name_must_be_0_2389", "Function implementation name must be '{0}'."), - Constructor_implementation_is_missing: diag(2390, 1 /* Error */, "Constructor_implementation_is_missing_2390", "Constructor implementation is missing."), - Function_implementation_is_missing_or_not_immediately_following_the_declaration: diag(2391, 1 /* Error */, "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391", "Function implementation is missing or not immediately following the declaration."), - Multiple_constructor_implementations_are_not_allowed: diag(2392, 1 /* Error */, "Multiple_constructor_implementations_are_not_allowed_2392", "Multiple constructor implementations are not allowed."), - Duplicate_function_implementation: diag(2393, 1 /* Error */, "Duplicate_function_implementation_2393", "Duplicate function implementation."), - This_overload_signature_is_not_compatible_with_its_implementation_signature: diag(2394, 1 /* Error */, "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394", "This overload signature is not compatible with its implementation signature."), - Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: diag(2395, 1 /* Error */, "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395", "Individual declarations in merged declaration '{0}' must be all exported or all local."), - Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: diag(2396, 1 /* Error */, "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396", "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."), - Declaration_name_conflicts_with_built_in_global_identifier_0: diag(2397, 1 /* Error */, "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: diag(2398, 1 /* Error */, "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: diag(2399, 1 /* Error */, "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399", "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."), - Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: diag(2400, 1 /* Error */, "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400", "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."), - 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: diag(2401, 1 /* Error */, "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: diag(2402, 1 /* Error */, "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402", "Expression resolves to '_super' that compiler uses to capture base class reference."), - Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: diag(2403, 1 /* Error */, "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403", "Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."), - The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: diag(2404, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404", "The left-hand side of a 'for...in' statement cannot use a type annotation."), - The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: diag(2405, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405", "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."), - The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access: diag(2406, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406", "The left-hand side of a 'for...in' statement must be a variable or a property access."), - The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0: diag(2407, 1 /* Error */, "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407", "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."), - Setters_cannot_return_a_value: diag(2408, 1 /* Error */, "Setters_cannot_return_a_value_2408", "Setters cannot return a value."), - Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: diag(2409, 1 /* Error */, "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409", "Return type of constructor signature must be assignable to the instance type of the class."), - The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any: diag(2410, 1 /* Error */, "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410", "The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."), - Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target: diag(2412, 1 /* Error */, "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: diag(2411, 1 /* Error */, "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: diag(2413, 1 /* Error */, "_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: diag(2414, 1 /* Error */, "Class_name_cannot_be_0_2414", "Class name cannot be '{0}'."), - Class_0_incorrectly_extends_base_class_1: diag(2415, 1 /* Error */, "Class_0_incorrectly_extends_base_class_1_2415", "Class '{0}' incorrectly extends base class '{1}'."), - Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2: diag(2416, 1 /* Error */, "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416", "Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."), - Class_static_side_0_incorrectly_extends_base_class_static_side_1: diag(2417, 1 /* Error */, "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417", "Class static side '{0}' incorrectly extends base class static side '{1}'."), - Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1: diag(2418, 1 /* Error */, "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418", "Type of computed property's value is '{0}', which is not assignable to type '{1}'."), - Types_of_construct_signatures_are_incompatible: diag(2419, 1 /* Error */, "Types_of_construct_signatures_are_incompatible_2419", "Types of construct signatures are incompatible."), - Class_0_incorrectly_implements_interface_1: diag(2420, 1 /* Error */, "Class_0_incorrectly_implements_interface_1_2420", "Class '{0}' incorrectly implements interface '{1}'."), - A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2422, 1 /* Error */, "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422", "A class can only implement an object type or intersection of object types with statically known members."), - Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: diag(2423, 1 /* Error */, "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423", "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."), - Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2425, 1 /* Error */, "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425", "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."), - Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2426, 1 /* Error */, "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426", "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."), - Interface_name_cannot_be_0: diag(2427, 1 /* Error */, "Interface_name_cannot_be_0_2427", "Interface name cannot be '{0}'."), - All_declarations_of_0_must_have_identical_type_parameters: diag(2428, 1 /* Error */, "All_declarations_of_0_must_have_identical_type_parameters_2428", "All declarations of '{0}' must have identical type parameters."), - Interface_0_incorrectly_extends_interface_1: diag(2430, 1 /* Error */, "Interface_0_incorrectly_extends_interface_1_2430", "Interface '{0}' incorrectly extends interface '{1}'."), - Enum_name_cannot_be_0: diag(2431, 1 /* Error */, "Enum_name_cannot_be_0_2431", "Enum name cannot be '{0}'."), - In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: diag(2432, 1 /* Error */, "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432", "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."), - A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: diag(2433, 1 /* Error */, "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433", "A namespace declaration cannot be in a different file from a class or function with which it is merged."), - A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: diag(2434, 1 /* Error */, "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434", "A namespace declaration cannot be located prior to a class or function with which it is merged."), - Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: diag(2435, 1 /* Error */, "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435", "Ambient modules cannot be nested in other modules or namespaces."), - Ambient_module_declaration_cannot_specify_relative_module_name: diag(2436, 1 /* Error */, "Ambient_module_declaration_cannot_specify_relative_module_name_2436", "Ambient module declaration cannot specify relative module name."), - Module_0_is_hidden_by_a_local_declaration_with_the_same_name: diag(2437, 1 /* Error */, "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437", "Module '{0}' is hidden by a local declaration with the same name."), - Import_name_cannot_be_0: diag(2438, 1 /* Error */, "Import_name_cannot_be_0_2438", "Import name cannot be '{0}'."), - Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name: diag(2439, 1 /* Error */, "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439", "Import or export declaration in an ambient module declaration cannot reference module through relative module name."), - Import_declaration_conflicts_with_local_declaration_of_0: diag(2440, 1 /* Error */, "Import_declaration_conflicts_with_local_declaration_of_0_2440", "Import declaration conflicts with local declaration of '{0}'."), - Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module: diag(2441, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."), - Types_have_separate_declarations_of_a_private_property_0: diag(2442, 1 /* Error */, "Types_have_separate_declarations_of_a_private_property_0_2442", "Types have separate declarations of a private property '{0}'."), - Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: diag(2443, 1 /* Error */, "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443", "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."), - Property_0_is_protected_in_type_1_but_public_in_type_2: diag(2444, 1 /* Error */, "Property_0_is_protected_in_type_1_but_public_in_type_2_2444", "Property '{0}' is protected in type '{1}' but public in type '{2}'."), - Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: diag(2445, 1 /* Error */, "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445", "Property '{0}' is protected and only accessible within class '{1}' and its subclasses."), - Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2: diag(2446, 1 /* Error */, "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: diag(2447, 1 /* Error */, "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447", "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."), - Block_scoped_variable_0_used_before_its_declaration: diag(2448, 1 /* Error */, "Block_scoped_variable_0_used_before_its_declaration_2448", "Block-scoped variable '{0}' used before its declaration."), - Class_0_used_before_its_declaration: diag(2449, 1 /* Error */, "Class_0_used_before_its_declaration_2449", "Class '{0}' used before its declaration."), - Enum_0_used_before_its_declaration: diag(2450, 1 /* Error */, "Enum_0_used_before_its_declaration_2450", "Enum '{0}' used before its declaration."), - Cannot_redeclare_block_scoped_variable_0: diag(2451, 1 /* Error */, "Cannot_redeclare_block_scoped_variable_0_2451", "Cannot redeclare block-scoped variable '{0}'."), - An_enum_member_cannot_have_a_numeric_name: diag(2452, 1 /* Error */, "An_enum_member_cannot_have_a_numeric_name_2452", "An enum member cannot have a numeric name."), - Variable_0_is_used_before_being_assigned: diag(2454, 1 /* Error */, "Variable_0_is_used_before_being_assigned_2454", "Variable '{0}' is used before being assigned."), - Type_alias_0_circularly_references_itself: diag(2456, 1 /* Error */, "Type_alias_0_circularly_references_itself_2456", "Type alias '{0}' circularly references itself."), - Type_alias_name_cannot_be_0: diag(2457, 1 /* Error */, "Type_alias_name_cannot_be_0_2457", "Type alias name cannot be '{0}'."), - An_AMD_module_cannot_have_multiple_name_assignments: diag(2458, 1 /* Error */, "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: diag(2459, 1 /* Error */, "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: diag(2460, 1 /* Error */, "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: diag(2461, 1 /* Error */, "Type_0_is_not_an_array_type_2461", "Type '{0}' is not an array type."), - A_rest_element_must_be_last_in_a_destructuring_pattern: diag(2462, 1 /* Error */, "A_rest_element_must_be_last_in_a_destructuring_pattern_2462", "A rest element must be last in a destructuring pattern."), - A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: diag(2463, 1 /* Error */, "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463", "A binding pattern parameter cannot be optional in an implementation signature."), - A_computed_property_name_must_be_of_type_string_number_symbol_or_any: diag(2464, 1 /* Error */, "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464", "A computed property name must be of type 'string', 'number', 'symbol', or 'any'."), - this_cannot_be_referenced_in_a_computed_property_name: diag(2465, 1 /* Error */, "this_cannot_be_referenced_in_a_computed_property_name_2465", "'this' cannot be referenced in a computed property name."), - super_cannot_be_referenced_in_a_computed_property_name: diag(2466, 1 /* Error */, "super_cannot_be_referenced_in_a_computed_property_name_2466", "'super' cannot be referenced in a computed property name."), - A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: diag(2467, 1 /* Error */, "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467", "A computed property name cannot reference a type parameter from its containing type."), - Cannot_find_global_value_0: diag(2468, 1 /* Error */, "Cannot_find_global_value_0_2468", "Cannot find global value '{0}'."), - The_0_operator_cannot_be_applied_to_type_symbol: diag(2469, 1 /* Error */, "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: diag(2472, 1 /* Error */, "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472", "Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."), - Enum_declarations_must_all_be_const_or_non_const: diag(2473, 1 /* Error */, "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: diag(2474, 1 /* Error */, "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: diag(2475, 1 /* Error */, "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475", "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."), - A_const_enum_member_can_only_be_accessed_using_a_string_literal: diag(2476, 1 /* Error */, "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476", "A const enum member can only be accessed using a string literal."), - const_enum_member_initializer_was_evaluated_to_a_non_finite_value: diag(2477, 1 /* Error */, "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477", "'const' enum member initializer was evaluated to a non-finite value."), - const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: diag(2478, 1 /* Error */, "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: diag(2480, 1 /* Error */, "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480", "'let' is not allowed to be used as a name in 'let' or 'const' declarations."), - Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: diag(2481, 1 /* Error */, "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481", "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."), - The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: diag(2483, 1 /* Error */, "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483", "The left-hand side of a 'for...of' statement cannot use a type annotation."), - Export_declaration_conflicts_with_exported_declaration_of_0: diag(2484, 1 /* Error */, "Export_declaration_conflicts_with_exported_declaration_of_0_2484", "Export declaration conflicts with exported declaration of '{0}'."), - The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access: diag(2487, 1 /* Error */, "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487", "The left-hand side of a 'for...of' statement must be a variable or a property access."), - Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2488, 1 /* Error */, "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488", "Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."), - An_iterator_must_have_a_next_method: diag(2489, 1 /* Error */, "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: diag(2490, 1 /* Error */, "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: diag(2491, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491", "The left-hand side of a 'for...in' statement cannot be a destructuring pattern."), - Cannot_redeclare_identifier_0_in_catch_clause: diag(2492, 1 /* Error */, "Cannot_redeclare_identifier_0_in_catch_clause_2492", "Cannot redeclare identifier '{0}' in catch clause."), - Tuple_type_0_of_length_1_has_no_element_at_index_2: diag(2493, 1 /* Error */, "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493", "Tuple type '{0}' of length '{1}' has no element at index '{2}'."), - Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: diag(2494, 1 /* Error */, "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494", "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."), - Type_0_is_not_an_array_type_or_a_string_type: diag(2495, 1 /* Error */, "Type_0_is_not_an_array_type_or_a_string_type_2495", "Type '{0}' is not an array type or a string type."), - The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression: diag(2496, 1 /* Error */, "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: diag(2497, 1 /* Error */, "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497", "This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."), - Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: diag(2498, 1 /* Error */, "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498", "Module '{0}' uses 'export =' and cannot be used with 'export *'."), - An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2499, 1 /* Error */, "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499", "An interface can only extend an identifier/qualified-name with optional type arguments."), - A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2500, 1 /* Error */, "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500", "A class can only implement an identifier/qualified-name with optional type arguments."), - A_rest_element_cannot_contain_a_binding_pattern: diag(2501, 1 /* Error */, "A_rest_element_cannot_contain_a_binding_pattern_2501", "A rest element cannot contain a binding pattern."), - _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: diag(2502, 1 /* Error */, "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502", "'{0}' is referenced directly or indirectly in its own type annotation."), - Cannot_find_namespace_0: diag(2503, 1 /* Error */, "Cannot_find_namespace_0_2503", "Cannot find namespace '{0}'."), - Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: diag(2504, 1 /* Error */, "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504", "Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."), - A_generator_cannot_have_a_void_type_annotation: diag(2505, 1 /* Error */, "A_generator_cannot_have_a_void_type_annotation_2505", "A generator cannot have a 'void' type annotation."), - _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: diag(2506, 1 /* Error */, "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506", "'{0}' is referenced directly or indirectly in its own base expression."), - Type_0_is_not_a_constructor_function_type: diag(2507, 1 /* Error */, "Type_0_is_not_a_constructor_function_type_2507", "Type '{0}' is not a constructor function type."), - No_base_constructor_has_the_specified_number_of_type_arguments: diag(2508, 1 /* Error */, "No_base_constructor_has_the_specified_number_of_type_arguments_2508", "No base constructor has the specified number of type arguments."), - Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2509, 1 /* Error */, "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509", "Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."), - Base_constructors_must_all_have_the_same_return_type: diag(2510, 1 /* Error */, "Base_constructors_must_all_have_the_same_return_type_2510", "Base constructors must all have the same return type."), - Cannot_create_an_instance_of_an_abstract_class: diag(2511, 1 /* Error */, "Cannot_create_an_instance_of_an_abstract_class_2511", "Cannot create an instance of an abstract class."), - Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."), - Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."), - A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "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: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."), - All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."), - Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."), - A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."), - An_async_iterator_must_have_a_next_method: diag(2519, 1 /* Error */, "An_async_iterator_must_have_a_next_method_2519", "An async iterator must have a 'next()' method."), - Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: diag(2520, 1 /* Error */, "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: diag(2522, 1 /* Error */, "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: diag(2523, 1 /* Error */, "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523", "'yield' expressions cannot be used in a parameter initializer."), - await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, 1 /* Error */, "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: diag(2526, 1 /* Error */, "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526", "A 'this' type is available only in a non-static member of a class or interface."), - The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: diag(2527, 1 /* Error */, "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527", "The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."), - A_module_cannot_have_multiple_default_exports: diag(2528, 1 /* Error */, "A_module_cannot_have_multiple_default_exports_2528", "A module cannot have multiple default exports."), - Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions: diag(2529, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."), - Property_0_is_incompatible_with_index_signature: diag(2530, 1 /* Error */, "Property_0_is_incompatible_with_index_signature_2530", "Property '{0}' is incompatible with index signature."), - Object_is_possibly_null: diag(2531, 1 /* Error */, "Object_is_possibly_null_2531", "Object is possibly 'null'."), - Object_is_possibly_undefined: diag(2532, 1 /* Error */, "Object_is_possibly_undefined_2532", "Object is possibly 'undefined'."), - Object_is_possibly_null_or_undefined: diag(2533, 1 /* Error */, "Object_is_possibly_null_or_undefined_2533", "Object is possibly 'null' or 'undefined'."), - A_function_returning_never_cannot_have_a_reachable_end_point: diag(2534, 1 /* Error */, "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: diag(2536, 1 /* Error */, "Type_0_cannot_be_used_to_index_type_1_2536", "Type '{0}' cannot be used to index type '{1}'."), - Type_0_has_no_matching_index_signature_for_type_1: diag(2537, 1 /* Error */, "Type_0_has_no_matching_index_signature_for_type_1_2537", "Type '{0}' has no matching index signature for type '{1}'."), - Type_0_cannot_be_used_as_an_index_type: diag(2538, 1 /* Error */, "Type_0_cannot_be_used_as_an_index_type_2538", "Type '{0}' cannot be used as an index type."), - Cannot_assign_to_0_because_it_is_not_a_variable: diag(2539, 1 /* Error */, "Cannot_assign_to_0_because_it_is_not_a_variable_2539", "Cannot assign to '{0}' because it is not a variable."), - Cannot_assign_to_0_because_it_is_a_read_only_property: diag(2540, 1 /* Error */, "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: diag(2542, 1 /* Error */, "Index_signature_in_type_0_only_permits_reading_2542", "Index signature in type '{0}' only permits reading."), - Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference: diag(2543, 1 /* Error */, "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543", "Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."), - Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference: diag(2544, 1 /* Error */, "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544", "Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."), - A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any: diag(2545, 1 /* Error */, "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545", "A mixin class must have a constructor with a single rest parameter of type 'any[]'."), - The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: diag(2547, 1 /* Error */, "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: diag(2548, 1 /* Error */, "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548", "Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."), - Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2549, 1 /* Error */, "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549", "Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."), - Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later: diag(2550, 1 /* Error */, "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: diag(2551, 1 /* Error */, "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551", "Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"), - Cannot_find_name_0_Did_you_mean_1: diag(2552, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_1_2552", "Cannot find name '{0}'. Did you mean '{1}'?"), - Computed_values_are_not_permitted_in_an_enum_with_string_valued_members: diag(2553, 1 /* Error */, "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553", "Computed values are not permitted in an enum with string valued members."), - Expected_0_arguments_but_got_1: diag(2554, 1 /* Error */, "Expected_0_arguments_but_got_1_2554", "Expected {0} arguments, but got {1}."), - Expected_at_least_0_arguments_but_got_1: diag(2555, 1 /* Error */, "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: diag(2556, 1 /* Error */, "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: diag(2558, 1 /* Error */, "Expected_0_type_arguments_but_got_1_2558", "Expected {0} type arguments, but got {1}."), - Type_0_has_no_properties_in_common_with_type_1: diag(2559, 1 /* Error */, "Type_0_has_no_properties_in_common_with_type_1_2559", "Type '{0}' has no properties in common with type '{1}'."), - Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it: diag(2560, 1 /* Error */, "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560", "Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"), - Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2: diag(2561, 1 /* Error */, "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561", "Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"), - Base_class_expressions_cannot_reference_class_type_parameters: diag(2562, 1 /* Error */, "Base_class_expressions_cannot_reference_class_type_parameters_2562", "Base class expressions cannot reference class type parameters."), - The_containing_function_or_module_body_is_too_large_for_control_flow_analysis: diag(2563, 1 /* Error */, "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563", "The containing function or module body is too large for control flow analysis."), - Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor: diag(2564, 1 /* Error */, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564", "Property '{0}' has no initializer and is not definitely assigned in the constructor."), - Property_0_is_used_before_being_assigned: diag(2565, 1 /* Error */, "Property_0_is_used_before_being_assigned_2565", "Property '{0}' is used before being assigned."), - A_rest_element_cannot_have_a_property_name: diag(2566, 1 /* Error */, "A_rest_element_cannot_have_a_property_name_2566", "A rest element cannot have a property name."), - Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: diag(2567, 1 /* Error */, "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: diag(2568, 1 /* Error */, "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: diag(2570, 1 /* Error */, "Could_not_find_name_0_Did_you_mean_1_2570", "Could not find name '{0}'. Did you mean '{1}'?"), - Object_is_of_type_unknown: diag(2571, 1 /* Error */, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."), - A_rest_element_type_must_be_an_array_type: diag(2574, 1 /* Error */, "A_rest_element_type_must_be_an_array_type_2574", "A rest element type must be an array type."), - No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments: diag(2575, 1 /* Error */, "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575", "No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."), - Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead: diag(2576, 1 /* Error */, "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: diag(2577, 1 /* Error */, "Return_type_annotation_circularly_references_itself_2577", "Return type annotation circularly references itself."), - Unused_ts_expect_error_directive: diag(2578, 1 /* Error */, "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: diag(2580, 1 /* Error */, "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: diag(2581, 1 /* Error */, "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: diag(2582, 1 /* Error */, "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: diag(2583, 1 /* Error */, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."), - Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom: diag(2584, 1 /* Error */, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."), - _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: diag(2585, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585", "'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."), - Cannot_assign_to_0_because_it_is_a_constant: diag(2588, 1 /* Error */, "Cannot_assign_to_0_because_it_is_a_constant_2588", "Cannot assign to '{0}' because it is a constant."), - Type_instantiation_is_excessively_deep_and_possibly_infinite: diag(2589, 1 /* Error */, "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589", "Type instantiation is excessively deep and possibly infinite."), - Expression_produces_a_union_type_that_is_too_complex_to_represent: diag(2590, 1 /* Error */, "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590", "Expression produces a union type that is too complex to represent."), - Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: diag(2591, 1 /* Error */, "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: diag(2592, 1 /* Error */, "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: diag(2593, 1 /* Error */, "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: diag(2594, 1 /* Error */, "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: diag(2595, 1 /* Error */, "_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: diag(2596, 1 /* Error */, "_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: diag(2597, 1 /* Error */, "_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: diag(2598, 1 /* Error */, "_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: diag(2602, 1 /* Error */, "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602", "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."), - Property_0_in_type_1_is_not_assignable_to_type_2: diag(2603, 1 /* Error */, "Property_0_in_type_1_is_not_assignable_to_type_2_2603", "Property '{0}' in type '{1}' is not assignable to type '{2}'."), - JSX_element_type_0_does_not_have_any_construct_or_call_signatures: diag(2604, 1 /* Error */, "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604", "JSX element type '{0}' does not have any construct or call signatures."), - Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property: diag(2606, 1 /* Error */, "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606", "Property '{0}' of JSX spread attribute is not assignable to target property."), - JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: diag(2607, 1 /* Error */, "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607", "JSX element class does not support attributes because it does not have a '{0}' property."), - The_global_type_JSX_0_may_not_have_more_than_one_property: diag(2608, 1 /* Error */, "The_global_type_JSX_0_may_not_have_more_than_one_property_2608", "The global type 'JSX.{0}' may not have more than one property."), - JSX_spread_child_must_be_an_array_type: diag(2609, 1 /* Error */, "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: diag(2610, 1 /* Error */, "_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: diag(2611, 1 /* Error */, "_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: diag(2612, 1 /* Error */, "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: diag(2613, 1 /* Error */, "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: diag(2614, 1 /* Error */, "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: diag(2615, 1 /* Error */, "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: diag(2616, 1 /* Error */, "_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: diag(2617, 1 /* Error */, "_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: diag(2618, 1 /* Error */, "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: diag(2619, 1 /* Error */, "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: diag(2620, 1 /* Error */, "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: diag(2621, 1 /* Error */, "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: diag(2623, 1 /* Error */, "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: diag(2624, 1 /* Error */, "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: diag(2625, 1 /* Error */, "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: diag(2626, 1 /* Error */, "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: diag(2627, 1 /* Error */, "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: diag(2628, 1 /* Error */, "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: diag(2629, 1 /* Error */, "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: diag(2630, 1 /* Error */, "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: diag(2631, 1 /* Error */, "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: diag(2632, 1 /* Error */, "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: diag(2633, 1 /* Error */, "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633", "JSX property access expressions cannot include JSX namespace names"), - _0_index_signatures_are_incompatible: diag(2634, 1 /* Error */, "_0_index_signatures_are_incompatible_2634", "'{0}' index signatures are incompatible."), - Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable: diag(2635, 1 /* Error */, "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: diag(2636, 1 /* Error */, "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: diag(2637, 1 /* Error */, "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: diag(2638, 1 /* Error */, "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: diag(2639, 1 /* Error */, "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: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."), - Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "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: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."), - Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."), - Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."), - Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "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: diag(2655, 1 /* Error */, "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: diag(2656, 1 /* Error */, "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: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."), - Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."), - super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."), - super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions: diag(2660, 1 /* Error */, "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660", "'super' can only be referenced in members of derived classes or object literal expressions."), - Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: diag(2661, 1 /* Error */, "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661", "Cannot export '{0}'. Only local declarations can be exported from a module."), - Cannot_find_name_0_Did_you_mean_the_static_member_1_0: diag(2662, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662", "Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"), - Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: diag(2663, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663", "Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"), - Invalid_module_name_in_augmentation_module_0_cannot_be_found: diag(2664, 1 /* Error */, "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664", "Invalid module name in augmentation, module '{0}' cannot be found."), - Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented: diag(2665, 1 /* Error */, "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665", "Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."), - Exports_and_export_assignments_are_not_permitted_in_module_augmentations: diag(2666, 1 /* Error */, "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666", "Exports and export assignments are not permitted in module augmentations."), - Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module: diag(2667, 1 /* Error */, "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667", "Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."), - export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible: diag(2668, 1 /* Error */, "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668", "'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."), - Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations: diag(2669, 1 /* Error */, "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669", "Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."), - Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context: diag(2670, 1 /* Error */, "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670", "Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."), - Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: diag(2671, 1 /* Error */, "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671", "Cannot augment module '{0}' because it resolves to a non-module entity."), - Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: diag(2672, 1 /* Error */, "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672", "Cannot assign a '{0}' constructor type to a '{1}' constructor type."), - Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration: diag(2673, 1 /* Error */, "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673", "Constructor of class '{0}' is private and only accessible within the class declaration."), - Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration: diag(2674, 1 /* Error */, "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674", "Constructor of class '{0}' is protected and only accessible within the class declaration."), - Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: diag(2675, 1 /* Error */, "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675", "Cannot extend a class '{0}'. Class constructor is marked as private."), - Accessors_must_both_be_abstract_or_non_abstract: diag(2676, 1 /* Error */, "Accessors_must_both_be_abstract_or_non_abstract_2676", "Accessors must both be abstract or non-abstract."), - A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: diag(2677, 1 /* Error */, "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677", "A type predicate's type must be assignable to its parameter's type."), - Type_0_is_not_comparable_to_type_1: diag(2678, 1 /* Error */, "Type_0_is_not_comparable_to_type_1_2678", "Type '{0}' is not comparable to type '{1}'."), - A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void: diag(2679, 1 /* Error */, "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679", "A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."), - A_0_parameter_must_be_the_first_parameter: diag(2680, 1 /* Error */, "A_0_parameter_must_be_the_first_parameter_2680", "A '{0}' parameter must be the first parameter."), - A_constructor_cannot_have_a_this_parameter: diag(2681, 1 /* Error */, "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: diag(2683, 1 /* Error */, "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683", "'this' implicitly has type 'any' because it does not have a type annotation."), - The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1: diag(2684, 1 /* Error */, "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684", "The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."), - The_this_types_of_each_signature_are_incompatible: diag(2685, 1 /* Error */, "The_this_types_of_each_signature_are_incompatible_2685", "The 'this' types of each signature are incompatible."), - _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead: diag(2686, 1 /* Error */, "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686", "'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."), - All_declarations_of_0_must_have_identical_modifiers: diag(2687, 1 /* Error */, "All_declarations_of_0_must_have_identical_modifiers_2687", "All declarations of '{0}' must have identical modifiers."), - Cannot_find_type_definition_file_for_0: diag(2688, 1 /* Error */, "Cannot_find_type_definition_file_for_0_2688", "Cannot find type definition file for '{0}'."), - Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, 1 /* Error */, "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: diag(2690, 1 /* Error */, "_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: diag(2692, 1 /* Error */, "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692", "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."), - _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693", "'{0}' only refers to a type, but is being used as a value here."), - Namespace_0_has_no_exported_member_1: diag(2694, 1 /* Error */, "Namespace_0_has_no_exported_member_1_2694", "Namespace '{0}' has no exported member '{1}'."), - Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag( - 2695, - 1 /* Error */, - "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695", - "Left side of comma operator is unused and has no side effects.", - /*reportsUnnecessary*/ - true - ), - The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: diag(2696, 1 /* Error */, "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696", "The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"), - An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2697, 1 /* Error */, "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697", "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), - Spread_types_may_only_be_created_from_object_types: diag(2698, 1 /* Error */, "Spread_types_may_only_be_created_from_object_types_2698", "Spread types may only be created from object types."), - Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, 1 /* Error */, "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699", "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."), - Rest_types_may_only_be_created_from_object_types: diag(2700, 1 /* Error */, "Rest_types_may_only_be_created_from_object_types_2700", "Rest types may only be created from object types."), - The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, 1 /* Error */, "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701", "The target of an object rest assignment must be a variable or a property access."), - _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."), - The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."), - The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1 /* Error */, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."), - An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1 /* Error */, "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: diag(2706, 1 /* Error */, "Required_type_parameters_may_not_follow_optional_type_parameters_2706", "Required type parameters may not follow optional type parameters."), - Generic_type_0_requires_between_1_and_2_type_arguments: diag(2707, 1 /* Error */, "Generic_type_0_requires_between_1_and_2_type_arguments_2707", "Generic type '{0}' requires between {1} and {2} type arguments."), - Cannot_use_namespace_0_as_a_value: diag(2708, 1 /* Error */, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."), - Cannot_use_namespace_0_as_a_type: diag(2709, 1 /* Error */, "Cannot_use_namespace_0_as_a_type_2709", "Cannot use namespace '{0}' as a type."), - _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: diag(2710, 1 /* Error */, "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710", "'{0}' are specified twice. The attribute named '{0}' will be overwritten."), - A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2711, 1 /* Error */, "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711", "A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), - A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2712, 1 /* Error */, "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: diag(2713, 1 /* Error */, "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713", `Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`), - The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: diag(2714, 1 /* Error */, "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714", "The expression of an export assignment must be an identifier or qualified name in an ambient context."), - Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: diag(2715, 1 /* Error */, "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715", "Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."), - Type_parameter_0_has_a_circular_default: diag(2716, 1 /* Error */, "Type_parameter_0_has_a_circular_default_2716", "Type parameter '{0}' has a circular default."), - Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2: diag(2717, 1 /* Error */, "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717", "Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."), - Duplicate_property_0: diag(2718, 1 /* Error */, "Duplicate_property_0_2718", "Duplicate property '{0}'."), - Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: diag(2719, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719", "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."), - Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass: diag(2720, 1 /* Error */, "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720", "Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"), - Cannot_invoke_an_object_which_is_possibly_null: diag(2721, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_null_2721", "Cannot invoke an object which is possibly 'null'."), - Cannot_invoke_an_object_which_is_possibly_undefined: diag(2722, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_undefined_2722", "Cannot invoke an object which is possibly 'undefined'."), - Cannot_invoke_an_object_which_is_possibly_null_or_undefined: diag(2723, 1 /* Error */, "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: diag(2724, 1 /* Error */, "_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: diag(2725, 1 /* Error */, "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 with module {0}."), - Cannot_find_lib_definition_for_0: diag(2726, 1 /* Error */, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."), - Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, 1 /* Error */, "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727", "Cannot find lib definition for '{0}'. Did you mean '{1}'?"), - _0_is_declared_here: diag(2728, 3 /* Message */, "_0_is_declared_here_2728", "'{0}' is declared here."), - Property_0_is_used_before_its_initialization: diag(2729, 1 /* Error */, "Property_0_is_used_before_its_initialization_2729", "Property '{0}' is used before its initialization."), - An_arrow_function_cannot_have_a_this_parameter: diag(2730, 1 /* Error */, "An_arrow_function_cannot_have_a_this_parameter_2730", "An arrow function cannot have a 'this' parameter."), - Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, 1 /* Error */, "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731", "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."), - Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, 1 /* Error */, "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732", "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."), - Property_0_was_also_declared_here: diag(2733, 1 /* Error */, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."), - Are_you_missing_a_semicolon: diag(2734, 1 /* Error */, "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: diag(2735, 1 /* Error */, "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735", "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"), - Operator_0_cannot_be_applied_to_type_1: diag(2736, 1 /* Error */, "Operator_0_cannot_be_applied_to_type_1_2736", "Operator '{0}' cannot be applied to type '{1}'."), - BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: diag(2737, 1 /* Error */, "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: diag(2738, 3 /* Message */, "An_outer_value_of_this_is_shadowed_by_this_container_2738", "An outer value of 'this' is shadowed by this container."), - Type_0_is_missing_the_following_properties_from_type_1_Colon_2: diag(2739, 1 /* Error */, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739", "Type '{0}' is missing the following properties from type '{1}': {2}"), - Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more: diag(2740, 1 /* Error */, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740", "Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."), - Property_0_is_missing_in_type_1_but_required_in_type_2: diag(2741, 1 /* Error */, "Property_0_is_missing_in_type_1_but_required_in_type_2_2741", "Property '{0}' is missing in type '{1}' but required in type '{2}'."), - The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2742, 1 /* Error */, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742", "The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."), - No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments: diag(2743, 1 /* Error */, "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743", "No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."), - Type_parameter_defaults_can_only_reference_previously_declared_type_parameters: diag(2744, 1 /* Error */, "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744", "Type parameter defaults can only reference previously declared type parameters."), - This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided: diag(2745, 1 /* Error */, "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745", "This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."), - This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided: diag(2746, 1 /* Error */, "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746", "This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."), - _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, 1 /* Error */, "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747", "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."), - Cannot_access_ambient_const_enums_when_0_is_enabled: diag(2748, 1 /* Error */, "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: diag(2749, 1 /* Error */, "_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: diag(2750, 1 /* Error */, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."), - Circularity_originates_in_type_at_this_location: diag(2751, 1 /* Error */, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."), - The_first_export_default_is_here: diag(2752, 1 /* Error */, "The_first_export_default_is_here_2752", "The first export default is here."), - Another_export_default_is_here: diag(2753, 1 /* Error */, "Another_export_default_is_here_2753", "Another export default is here."), - super_may_not_use_type_arguments: diag(2754, 1 /* Error */, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."), - No_constituent_of_type_0_is_callable: diag(2755, 1 /* Error */, "No_constituent_of_type_0_is_callable_2755", "No constituent of type '{0}' is callable."), - Not_all_constituents_of_type_0_are_callable: diag(2756, 1 /* Error */, "Not_all_constituents_of_type_0_are_callable_2756", "Not all constituents of type '{0}' are callable."), - Type_0_has_no_call_signatures: diag(2757, 1 /* Error */, "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: diag(2758, 1 /* Error */, "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: diag(2759, 1 /* Error */, "No_constituent_of_type_0_is_constructable_2759", "No constituent of type '{0}' is constructable."), - Not_all_constituents_of_type_0_are_constructable: diag(2760, 1 /* Error */, "Not_all_constituents_of_type_0_are_constructable_2760", "Not all constituents of type '{0}' are constructable."), - Type_0_has_no_construct_signatures: diag(2761, 1 /* Error */, "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: diag(2762, 1 /* Error */, "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: diag(2763, 1 /* Error */, "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: diag(2764, 1 /* Error */, "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: diag(2765, 1 /* Error */, "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: diag(2766, 1 /* Error */, "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: diag(2767, 1 /* Error */, "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: diag(2768, 1 /* Error */, "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: diag(2769, 1 /* Error */, "No_overload_matches_this_call_2769", "No overload matches this call."), - The_last_overload_gave_the_following_error: diag(2770, 1 /* Error */, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."), - The_last_overload_is_declared_here: diag(2771, 1 /* Error */, "The_last_overload_is_declared_here_2771", "The last overload is declared here."), - Overload_0_of_1_2_gave_the_following_error: diag(2772, 1 /* Error */, "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: diag(2773, 1 /* Error */, "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: diag(2774, 1 /* Error */, "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: diag(2775, 1 /* Error */, "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: diag(2776, 1 /* Error */, "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: diag(2777, 1 /* Error */, "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: diag(2778, 1 /* Error */, "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: diag(2779, 1 /* Error */, "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: diag(2780, 1 /* Error */, "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: diag(2781, 1 /* Error */, "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: diag(2782, 3 /* Message */, "_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: diag(2783, 1 /* Error */, "_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: diag(2784, 1 /* Error */, "get_and_set_accessors_cannot_declare_this_parameters_2784", "'get' and 'set' accessors cannot declare 'this' parameters."), - This_spread_always_overwrites_this_property: diag(2785, 1 /* Error */, "This_spread_always_overwrites_this_property_2785", "This spread always overwrites this property."), - _0_cannot_be_used_as_a_JSX_component: diag(2786, 1 /* Error */, "_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: diag(2787, 1 /* Error */, "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: diag(2788, 1 /* Error */, "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: diag(2789, 1 /* Error */, "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: diag(2790, 1 /* Error */, "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: diag(2791, 1 /* Error */, "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: diag(2792, 1 /* Error */, "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: diag(2793, 1 /* Error */, "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: diag(2794, 1 /* Error */, "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: diag(2795, 1 /* Error */, "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: diag(2796, 1 /* Error */, "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: diag(2797, 1 /* Error */, "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: diag(2798, 1 /* Error */, "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: diag(2799, 1 /* Error */, "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: diag(2800, 1 /* Error */, "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: diag(2801, 1 /* Error */, "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: diag(2802, 1 /* Error */, "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: diag(2803, 1 /* Error */, "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: diag(2804, 1 /* Error */, "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: diag(2806, 1 /* Error */, "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: diag(2807, 1 /* Error */, "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: diag(2808, 1 /* Error */, "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: diag(2809, 1 /* Error */, "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: diag(2810, 1 /* Error */, "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: diag(2811, 1 /* Error */, "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: diag(2812, 1 /* Error */, "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: diag(2813, 1 /* Error */, "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: diag(2814, 1 /* Error */, "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: diag(2815, 1 /* Error */, "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: diag(2816, 1 /* Error */, "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: diag(2817, 1 /* Error */, "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: diag(2818, 1 /* Error */, "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: diag(2819, 1 /* Error */, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."), - Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1 /* Error */, "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_node18_nodenext_or_preserve: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."), - Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1 /* Error */, "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_node18_nodenext_or_preserve: diag(2823, 1 /* Error */, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."), - Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1 /* Error */, "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: diag(2834, 1 /* Error */, "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: diag(2835, 1 /* Error */, "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: diag(2836, 1 /* Error */, "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: diag(2837, 1 /* Error */, "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: diag(2838, 1 /* Error */, "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: diag(2839, 1 /* Error */, "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: diag(2840, 1 /* Error */, "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: diag(2842, 1 /* Error */, "_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: diag(2843, 1 /* Error */, "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: diag(2844, 1 /* Error */, "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: diag(2845, 1 /* Error */, "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: diag(2846, 1 /* Error */, "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: diag(2848, 1 /* Error */, "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: diag(2849, 1 /* Error */, "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: diag(2850, 1 /* Error */, "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: diag(2851, 1 /* Error */, "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: diag(2852, 1 /* Error */, "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: diag(2853, 1 /* Error */, "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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "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', 'node18', '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: diag(2855, 1 /* Error */, "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: diag(2856, 1 /* Error */, "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: diag(2857, 1 /* Error */, "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: diag(2858, 1 /* Error */, "Import_attribute_values_must_be_string_literal_expressions_2858", "Import attribute values must be string literal expressions."), - Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "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: diag(2860, 1 /* Error */, "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: diag(2861, 1 /* Error */, "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: diag(2862, 1 /* Error */, "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: diag(2863, 1 /* Error */, "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: diag(2864, 1 /* Error */, "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: diag(2865, 1 /* Error */, "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: diag(2866, 1 /* Error */, "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: diag(2867, 1 /* Error */, "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: diag(2868, 1 /* Error */, "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: diag(2869, 1 /* Error */, "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: diag(2870, 1 /* Error */, "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: diag(2871, 1 /* Error */, "This_expression_is_always_nullish_2871", "This expression is always nullish."), - This_kind_of_expression_is_always_truthy: diag(2872, 1 /* Error */, "This_kind_of_expression_is_always_truthy_2872", "This kind of expression is always truthy."), - This_kind_of_expression_is_always_falsy: diag(2873, 1 /* Error */, "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: diag(2874, 1 /* Error */, "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: diag(2875, 1 /* Error */, "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: diag(2876, 1 /* Error */, "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: diag(2877, 1 /* Error */, "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: diag(2878, 1 /* Error */, "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: diag(2879, 1 /* Error */, "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_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."), - Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), - Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), - Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), - Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4006, 1 /* Error */, "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006", "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), - Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4008, 1 /* Error */, "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008", "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), - Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4010, 1 /* Error */, "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010", "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."), - Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4012, 1 /* Error */, "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012", "Type parameter '{0}' of public method from exported class has or is using private name '{1}'."), - Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4014, 1 /* Error */, "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014", "Type parameter '{0}' of method from exported interface has or is using private name '{1}'."), - Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4016, 1 /* Error */, "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016", "Type parameter '{0}' of exported function has or is using private name '{1}'."), - Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4019, 1 /* Error */, "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019", "Implements clause of exported class '{0}' has or is using private name '{1}'."), - extends_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4020, 1 /* Error */, "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020", "'extends' clause of exported class '{0}' has or is using private name '{1}'."), - extends_clause_of_exported_class_has_or_is_using_private_name_0: diag(4021, 1 /* Error */, "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: diag(4022, 1 /* Error */, "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022", "'extends' clause of exported interface '{0}' has or is using private name '{1}'."), - Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4023, 1 /* Error */, "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023", "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."), - Exported_variable_0_has_or_is_using_name_1_from_private_module_2: diag(4024, 1 /* Error */, "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024", "Exported variable '{0}' has or is using name '{1}' from private module '{2}'."), - Exported_variable_0_has_or_is_using_private_name_1: diag(4025, 1 /* Error */, "Exported_variable_0_has_or_is_using_private_name_1_4025", "Exported variable '{0}' has or is using private name '{1}'."), - Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4026, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026", "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), - Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4027, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027", "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), - Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4028, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028", "Public static property '{0}' of exported class has or is using private name '{1}'."), - Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4029, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029", "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), - Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4030, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030", "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), - Public_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4031, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031", "Public property '{0}' of exported class has or is using private name '{1}'."), - Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4032, 1 /* Error */, "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032", "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), - Property_0_of_exported_interface_has_or_is_using_private_name_1: diag(4033, 1 /* Error */, "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033", "Property '{0}' of exported interface has or is using private name '{1}'."), - Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4034, 1 /* Error */, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034", "Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), - Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4035, 1 /* Error */, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035", "Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."), - Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4036, 1 /* Error */, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036", "Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), - Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4037, 1 /* Error */, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037", "Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."), - Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4038, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), - Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4039, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), - Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4040, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040", "Return type of public static getter '{0}' from exported class has or is using private name '{1}'."), - Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4041, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041", "Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), - Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4042, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042", "Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), - Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4043, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043", "Return type of public getter '{0}' from exported class has or is using private name '{1}'."), - Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4044, 1 /* Error */, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044", "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."), - Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4045, 1 /* Error */, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045", "Return type of constructor signature from exported interface has or is using private name '{0}'."), - Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4046, 1 /* Error */, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046", "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."), - Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4047, 1 /* Error */, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047", "Return type of call signature from exported interface has or is using private name '{0}'."), - Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4048, 1 /* Error */, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048", "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."), - Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4049, 1 /* Error */, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049", "Return type of index signature from exported interface has or is using private name '{0}'."), - Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4050, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050", "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."), - Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4051, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051", "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."), - Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: diag(4052, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052", "Return type of public static method from exported class has or is using private name '{0}'."), - Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4053, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053", "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."), - Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4054, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054", "Return type of public method from exported class has or is using name '{0}' from private module '{1}'."), - Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: diag(4055, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055", "Return type of public method from exported class has or is using private name '{0}'."), - Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4056, 1 /* Error */, "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056", "Return type of method from exported interface has or is using name '{0}' from private module '{1}'."), - Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: diag(4057, 1 /* Error */, "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057", "Return type of method from exported interface has or is using private name '{0}'."), - Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4058, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058", "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."), - Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: diag(4059, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059", "Return type of exported function has or is using name '{0}' from private module '{1}'."), - Return_type_of_exported_function_has_or_is_using_private_name_0: diag(4060, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_private_name_0_4060", "Return type of exported function has or is using private name '{0}'."), - Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4061, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."), - Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4062, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: diag(4063, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063", "Parameter '{0}' of constructor from exported class has or is using private name '{1}'."), - Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4064, 1 /* Error */, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064", "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4065, 1 /* Error */, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065", "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), - Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4066, 1 /* Error */, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066", "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4067, 1 /* Error */, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067", "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4068, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."), - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4069, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4070, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070", "Parameter '{0}' of public static method from exported class has or is using private name '{1}'."), - Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4071, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071", "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."), - Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4072, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072", "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4073, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073", "Parameter '{0}' of public method from exported class has or is using private name '{1}'."), - Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4074, 1 /* Error */, "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074", "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4075, 1 /* Error */, "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075", "Parameter '{0}' of method from exported interface has or is using private name '{1}'."), - Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4076, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076", "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."), - Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: diag(4077, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077", "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4078, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078", "Parameter '{0}' of exported function has or is using private name '{1}'."), - Exported_type_alias_0_has_or_is_using_private_name_1: diag(4081, 1 /* Error */, "Exported_type_alias_0_has_or_is_using_private_name_1_4081", "Exported type alias '{0}' has or is using private name '{1}'."), - Default_export_of_the_module_has_or_is_using_private_name_0: diag(4082, 1 /* Error */, "Default_export_of_the_module_has_or_is_using_private_name_0_4082", "Default export of the module has or is using private name '{0}'."), - Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: diag(4083, 1 /* Error */, "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", "Type parameter '{0}' of exported type alias has or is using private name '{1}'."), - Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: diag(4084, 1 /* Error */, "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: diag(4085, 1 /* Error */, "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: diag(4091, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091", "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."), - Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092", "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."), - Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected: diag(4094, 1 /* Error */, "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: diag(4095, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095", "Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), - Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4096, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096", "Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), - Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4097, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097", "Public static method '{0}' of exported class has or is using private name '{1}'."), - Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4098, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098", "Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), - Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4099, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099", "Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), - Public_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4100, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100", "Public method '{0}' of exported class has or is using private name '{1}'."), - Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4101, 1 /* Error */, "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101", "Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), - Method_0_of_exported_interface_has_or_is_using_private_name_1: diag(4102, 1 /* Error */, "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102", "Method '{0}' of exported interface has or is using private name '{1}'."), - Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1: diag(4103, 1 /* Error */, "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103", "Type parameter '{0}' of exported mapped object type is using private name '{1}'."), - The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: diag(4104, 1 /* Error */, "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: diag(4105, 1 /* Error */, "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: diag(4106, 1 /* Error */, "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: diag(4107, 1 /* Error */, "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: diag(4108, 1 /* Error */, "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: diag(4109, 1 /* Error */, "Type_arguments_for_0_circularly_reference_themselves_4109", "Type arguments for '{0}' circularly reference themselves."), - Tuple_type_arguments_circularly_reference_themselves: diag(4110, 1 /* Error */, "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: diag(4111, 1 /* Error */, "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: diag(4112, 1 /* Error */, "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: diag(4113, 1 /* Error */, "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: diag(4114, 1 /* Error */, "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: diag(4115, 1 /* Error */, "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: diag(4116, 1 /* Error */, "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: diag(4117, 1 /* Error */, "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: diag(4118, 1 /* Error */, "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: diag(4119, 1 /* Error */, "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: diag(4120, 1 /* Error */, "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: diag(4121, 1 /* Error */, "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: diag(4122, 1 /* Error */, "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: diag(4123, 1 /* Error */, "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: diag(4124, 1 /* Error */, "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: diag(4125, 1 /* Error */, "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: diag(4126, 1 /* Error */, "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."), - This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."), - This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."), - The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."), - Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."), - File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."), - Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), - Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), - Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "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: diag(5025, 1 /* Error */, "Unknown_compiler_option_0_Did_you_mean_1_5025", "Unknown compiler option '{0}'. Did you mean '{1}'?"), - Could_not_write_file_0_Colon_1: diag(5033, 1 /* Error */, "Could_not_write_file_0_Colon_1_5033", "Could not write file '{0}': {1}."), - Option_project_cannot_be_mixed_with_source_files_on_a_command_line: diag(5042, 1 /* Error */, "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042", "Option 'project' cannot be mixed with source files on a command line."), - Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: diag(5047, 1 /* Error */, "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047", "Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."), - Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: diag(5051, 1 /* Error */, "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051", "Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."), - Option_0_cannot_be_specified_without_specifying_option_1: diag(5052, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_5052", "Option '{0}' cannot be specified without specifying option '{1}'."), - Option_0_cannot_be_specified_with_option_1: diag(5053, 1 /* Error */, "Option_0_cannot_be_specified_with_option_1_5053", "Option '{0}' cannot be specified with option '{1}'."), - A_tsconfig_json_file_is_already_defined_at_Colon_0: diag(5054, 1 /* Error */, "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054", "A 'tsconfig.json' file is already defined at: '{0}'."), - Cannot_write_file_0_because_it_would_overwrite_input_file: diag(5055, 1 /* Error */, "Cannot_write_file_0_because_it_would_overwrite_input_file_5055", "Cannot write file '{0}' because it would overwrite input file."), - Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files: diag(5056, 1 /* Error */, "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056", "Cannot write file '{0}' because it would be overwritten by multiple input files."), - Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: diag(5057, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057", "Cannot find a tsconfig.json file at the specified directory: '{0}'."), - The_specified_path_does_not_exist_Colon_0: diag(5058, 1 /* Error */, "The_specified_path_does_not_exist_Colon_0_5058", "The specified path does not exist: '{0}'."), - Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: diag(5059, 1 /* Error */, "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: diag(5061, 1 /* Error */, "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: diag(5062, 1 /* Error */, "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: diag(5063, 1 /* Error */, "Substitutions_for_pattern_0_should_be_an_array_5063", "Substitutions for pattern '{0}' should be an array."), - Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: diag(5064, 1 /* Error */, "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064", "Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."), - File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5065, 1 /* Error */, "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065", "File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."), - Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: diag(5066, 1 /* Error */, "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066", "Substitutions for pattern '{0}' shouldn't be an empty array."), - Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(5067, 1 /* Error */, "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067", "Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."), - Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: diag(5068, 1 /* Error */, "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068", "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."), - Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: diag(5069, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069", "Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."), - Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic: diag(5070, 1 /* Error */, "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: diag(5071, 1 /* Error */, "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: diag(5072, 1 /* Error */, "Unknown_build_option_0_5072", "Unknown build option '{0}'."), - Build_option_0_requires_a_value_of_type_1: diag(5073, 1 /* Error */, "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: diag(5074, 1 /* Error */, "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: diag(5075, 1 /* Error */, "_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: diag(5076, 1 /* Error */, "_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: diag(5077, 1 /* Error */, "Unknown_build_option_0_Did_you_mean_1_5077", "Unknown build option '{0}'. Did you mean '{1}'?"), - Unknown_watch_option_0: diag(5078, 1 /* Error */, "Unknown_watch_option_0_5078", "Unknown watch option '{0}'."), - Unknown_watch_option_0_Did_you_mean_1: diag(5079, 1 /* Error */, "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: diag(5080, 1 /* Error */, "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: diag(5081, 1 /* Error */, "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: diag(5082, 1 /* Error */, "_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: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), - A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "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: diag(5086, 1 /* Error */, "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: diag(5087, 1 /* Error */, "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: diag(5088, 1 /* Error */, "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: diag(5089, 1 /* Error */, "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: diag(5090, 1 /* Error */, "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: diag(5091, 1 /* Error */, "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: diag(5092, 1 /* Error */, "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: diag(5093, 1 /* Error */, "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: diag(5094, 1 /* Error */, "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: diag(5095, 1 /* Error */, "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: diag(5096, 1 /* Error */, "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: diag(5097, 1 /* Error */, "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: diag(5098, 1 /* Error */, "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: diag(5101, 1 /* Error */, "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: diag(5102, 1 /* Error */, "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: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."), - Option_0_is_redundant_and_cannot_be_specified_with_option_1: diag(5104, 1 /* Error */, "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: diag(5105, 1 /* Error */, "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: diag(5106, 3 /* Message */, "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: diag(5107, 1 /* Error */, "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: diag(5108, 1 /* Error */, "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: diag(5109, 1 /* Error */, "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: diag(5110, 1 /* Error */, "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: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), - Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), - Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), - Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: diag(6004, 3 /* Message */, "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004", "Specify the location where debugger should locate TypeScript files instead of source locations."), - Watch_input_files: diag(6005, 3 /* Message */, "Watch_input_files_6005", "Watch input files."), - Redirect_output_structure_to_the_directory: diag(6006, 3 /* Message */, "Redirect_output_structure_to_the_directory_6006", "Redirect output structure to the directory."), - Do_not_erase_const_enum_declarations_in_generated_code: diag(6007, 3 /* Message */, "Do_not_erase_const_enum_declarations_in_generated_code_6007", "Do not erase const enum declarations in generated code."), - Do_not_emit_outputs_if_any_errors_were_reported: diag(6008, 3 /* Message */, "Do_not_emit_outputs_if_any_errors_were_reported_6008", "Do not emit outputs if any errors were reported."), - Do_not_emit_comments_to_output: diag(6009, 3 /* Message */, "Do_not_emit_comments_to_output_6009", "Do not emit comments to output."), - Do_not_emit_outputs: diag(6010, 3 /* Message */, "Do_not_emit_outputs_6010", "Do not emit outputs."), - Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: diag(6011, 3 /* Message */, "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011", "Allow default imports from modules with no default export. This does not affect code emit, just typechecking."), - Skip_type_checking_of_declaration_files: diag(6012, 3 /* Message */, "Skip_type_checking_of_declaration_files_6012", "Skip type checking of declaration files."), - Do_not_resolve_the_real_path_of_symlinks: diag(6013, 3 /* Message */, "Do_not_resolve_the_real_path_of_symlinks_6013", "Do not resolve the real path of symlinks."), - Only_emit_d_ts_declaration_files: diag(6014, 3 /* Message */, "Only_emit_d_ts_declaration_files_6014", "Only emit '.d.ts' declaration files."), - Specify_ECMAScript_target_version: diag(6015, 3 /* Message */, "Specify_ECMAScript_target_version_6015", "Specify ECMAScript target version."), - Specify_module_code_generation: diag(6016, 3 /* Message */, "Specify_module_code_generation_6016", "Specify module code generation."), - Print_this_message: diag(6017, 3 /* Message */, "Print_this_message_6017", "Print this message."), - Print_the_compiler_s_version: diag(6019, 3 /* Message */, "Print_the_compiler_s_version_6019", "Print the compiler's version."), - Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json: diag(6020, 3 /* Message */, "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020", "Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."), - Syntax_Colon_0: diag(6023, 3 /* Message */, "Syntax_Colon_0_6023", "Syntax: {0}"), - options: diag(6024, 3 /* Message */, "options_6024", "options"), - file: diag(6025, 3 /* Message */, "file_6025", "file"), - Examples_Colon_0: diag(6026, 3 /* Message */, "Examples_Colon_0_6026", "Examples: {0}"), - Options_Colon: diag(6027, 3 /* Message */, "Options_Colon_6027", "Options:"), - Version_0: diag(6029, 3 /* Message */, "Version_0_6029", "Version {0}"), - Insert_command_line_options_and_files_from_a_file: diag(6030, 3 /* Message */, "Insert_command_line_options_and_files_from_a_file_6030", "Insert command line options and files from a file."), - Starting_compilation_in_watch_mode: diag(6031, 3 /* Message */, "Starting_compilation_in_watch_mode_6031", "Starting compilation in watch mode..."), - File_change_detected_Starting_incremental_compilation: diag(6032, 3 /* Message */, "File_change_detected_Starting_incremental_compilation_6032", "File change detected. Starting incremental compilation..."), - KIND: diag(6034, 3 /* Message */, "KIND_6034", "KIND"), - FILE: diag(6035, 3 /* Message */, "FILE_6035", "FILE"), - VERSION: diag(6036, 3 /* Message */, "VERSION_6036", "VERSION"), - LOCATION: diag(6037, 3 /* Message */, "LOCATION_6037", "LOCATION"), - DIRECTORY: diag(6038, 3 /* Message */, "DIRECTORY_6038", "DIRECTORY"), - STRATEGY: diag(6039, 3 /* Message */, "STRATEGY_6039", "STRATEGY"), - FILE_OR_DIRECTORY: diag(6040, 3 /* Message */, "FILE_OR_DIRECTORY_6040", "FILE OR DIRECTORY"), - Errors_Files: diag(6041, 3 /* Message */, "Errors_Files_6041", "Errors Files"), - Generates_corresponding_map_file: diag(6043, 3 /* Message */, "Generates_corresponding_map_file_6043", "Generates corresponding '.map' file."), - Compiler_option_0_expects_an_argument: diag(6044, 1 /* Error */, "Compiler_option_0_expects_an_argument_6044", "Compiler option '{0}' expects an argument."), - Unterminated_quoted_string_in_response_file_0: diag(6045, 1 /* Error */, "Unterminated_quoted_string_in_response_file_0_6045", "Unterminated quoted string in response file '{0}'."), - Argument_for_0_option_must_be_Colon_1: diag(6046, 1 /* Error */, "Argument_for_0_option_must_be_Colon_1_6046", "Argument for '{0}' option must be: {1}."), - Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: diag(6048, 1 /* Error */, "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048", "Locale must be of the form or -. For example '{0}' or '{1}'."), - Unable_to_open_file_0: diag(6050, 1 /* Error */, "Unable_to_open_file_0_6050", "Unable to open file '{0}'."), - Corrupted_locale_file_0: diag(6051, 1 /* Error */, "Corrupted_locale_file_0_6051", "Corrupted locale file {0}."), - Raise_error_on_expressions_and_declarations_with_an_implied_any_type: diag(6052, 3 /* Message */, "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052", "Raise error on expressions and declarations with an implied 'any' type."), - File_0_not_found: diag(6053, 1 /* Error */, "File_0_not_found_6053", "File '{0}' not found."), - File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: diag(6054, 1 /* Error */, "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: diag(6055, 3 /* Message */, "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055", "Suppress noImplicitAny errors for indexing objects lacking index signatures."), - Do_not_emit_declarations_for_code_that_has_an_internal_annotation: diag(6056, 3 /* Message */, "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056", "Do not emit declarations for code that has an '@internal' annotation."), - Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir: diag(6058, 3 /* Message */, "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058", "Specify the root directory of input files. Use to control the output directory structure with --outDir."), - File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: diag(6059, 1 /* Error */, "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059", "File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."), - Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: diag(6060, 3 /* Message */, "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060", "Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."), - NEWLINE: diag(6061, 3 /* Message */, "NEWLINE_6061", "NEWLINE"), - Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: diag(6064, 1 /* Error */, "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: diag(6065, 3 /* Message */, "Enables_experimental_support_for_ES7_decorators_6065", "Enables experimental support for ES7 decorators."), - Enables_experimental_support_for_emitting_type_metadata_for_decorators: diag(6066, 3 /* Message */, "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: diag(6070, 3 /* Message */, "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070", "Initializes a TypeScript project and creates a tsconfig.json file."), - Successfully_created_a_tsconfig_json_file: diag(6071, 3 /* Message */, "Successfully_created_a_tsconfig_json_file_6071", "Successfully created a tsconfig.json file."), - Suppress_excess_property_checks_for_object_literals: diag(6072, 3 /* Message */, "Suppress_excess_property_checks_for_object_literals_6072", "Suppress excess property checks for object literals."), - Stylize_errors_and_messages_using_color_and_context_experimental: diag(6073, 3 /* Message */, "Stylize_errors_and_messages_using_color_and_context_experimental_6073", "Stylize errors and messages using color and context (experimental)."), - Do_not_report_errors_on_unused_labels: diag(6074, 3 /* Message */, "Do_not_report_errors_on_unused_labels_6074", "Do not report errors on unused labels."), - Report_error_when_not_all_code_paths_in_function_return_a_value: diag(6075, 3 /* Message */, "Report_error_when_not_all_code_paths_in_function_return_a_value_6075", "Report error when not all code paths in function return a value."), - Report_errors_for_fallthrough_cases_in_switch_statement: diag(6076, 3 /* Message */, "Report_errors_for_fallthrough_cases_in_switch_statement_6076", "Report errors for fallthrough cases in switch statement."), - Do_not_report_errors_on_unreachable_code: diag(6077, 3 /* Message */, "Do_not_report_errors_on_unreachable_code_6077", "Do not report errors on unreachable code."), - Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, 3 /* Message */, "Disallow_inconsistently_cased_references_to_the_same_file_6078", "Disallow inconsistently-cased references to the same file."), - Specify_library_files_to_be_included_in_the_compilation: diag(6079, 3 /* Message */, "Specify_library_files_to_be_included_in_the_compilation_6079", "Specify library files to be included in the compilation."), - Specify_JSX_code_generation: diag(6080, 3 /* Message */, "Specify_JSX_code_generation_6080", "Specify JSX code generation."), - Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, 1 /* Error */, "Only_amd_and_system_modules_are_supported_alongside_0_6082", "Only 'amd' and 'system' modules are supported alongside --{0}."), - Base_directory_to_resolve_non_absolute_module_names: diag(6083, 3 /* Message */, "Base_directory_to_resolve_non_absolute_module_names_6083", "Base directory to resolve non-absolute module names."), - Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, 3 /* Message */, "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084", "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"), - Enable_tracing_of_the_name_resolution_process: diag(6085, 3 /* Message */, "Enable_tracing_of_the_name_resolution_process_6085", "Enable tracing of the name resolution process."), - Resolving_module_0_from_1: diag(6086, 3 /* Message */, "Resolving_module_0_from_1_6086", "======== Resolving module '{0}' from '{1}'. ========"), - Explicitly_specified_module_resolution_kind_Colon_0: diag(6087, 3 /* Message */, "Explicitly_specified_module_resolution_kind_Colon_0_6087", "Explicitly specified module resolution kind: '{0}'."), - Module_resolution_kind_is_not_specified_using_0: diag(6088, 3 /* Message */, "Module_resolution_kind_is_not_specified_using_0_6088", "Module resolution kind is not specified, using '{0}'."), - Module_name_0_was_successfully_resolved_to_1: diag(6089, 3 /* Message */, "Module_name_0_was_successfully_resolved_to_1_6089", "======== Module name '{0}' was successfully resolved to '{1}'. ========"), - Module_name_0_was_not_resolved: diag(6090, 3 /* Message */, "Module_name_0_was_not_resolved_6090", "======== Module name '{0}' was not resolved. ========"), - paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: diag(6091, 3 /* Message */, "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091", "'paths' option is specified, looking for a pattern to match module name '{0}'."), - Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."), - Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."), - Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."), - Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "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: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."), - File_0_exists_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "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: diag(6098, 3 /* Message */, "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: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."), - package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."), - package_json_has_0_field_1_that_references_2: diag(6101, 3 /* Message */, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."), - Allow_javascript_files_to_be_compiled: diag(6102, 3 /* Message */, "Allow_javascript_files_to_be_compiled_6102", "Allow javascript files to be compiled."), - Checking_if_0_is_the_longest_matching_prefix_for_1_2: diag(6104, 3 /* Message */, "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104", "Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."), - Expected_type_of_0_field_in_package_json_to_be_1_got_2: diag(6105, 3 /* Message */, "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105", "Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."), - baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: diag(6106, 3 /* Message */, "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106", "'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."), - rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: diag(6107, 3 /* Message */, "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107", "'rootDirs' option is set, using it to resolve relative module name '{0}'."), - Longest_matching_prefix_for_0_is_1: diag(6108, 3 /* Message */, "Longest_matching_prefix_for_0_is_1_6108", "Longest matching prefix for '{0}' is '{1}'."), - Loading_0_from_the_root_dir_1_candidate_location_2: diag(6109, 3 /* Message */, "Loading_0_from_the_root_dir_1_candidate_location_2_6109", "Loading '{0}' from the root dir '{1}', candidate location '{2}'."), - Trying_other_entries_in_rootDirs: diag(6110, 3 /* Message */, "Trying_other_entries_in_rootDirs_6110", "Trying other entries in 'rootDirs'."), - Module_resolution_using_rootDirs_has_failed: diag(6111, 3 /* Message */, "Module_resolution_using_rootDirs_has_failed_6111", "Module resolution using 'rootDirs' has failed."), - Do_not_emit_use_strict_directives_in_module_output: diag(6112, 3 /* Message */, "Do_not_emit_use_strict_directives_in_module_output_6112", "Do not emit 'use strict' directives in module output."), - Enable_strict_null_checks: diag(6113, 3 /* Message */, "Enable_strict_null_checks_6113", "Enable strict null checks."), - Unknown_option_excludes_Did_you_mean_exclude: diag(6114, 1 /* Error */, "Unknown_option_excludes_Did_you_mean_exclude_6114", "Unknown option 'excludes'. Did you mean 'exclude'?"), - Raise_error_on_this_expressions_with_an_implied_any_type: diag(6115, 3 /* Message */, "Raise_error_on_this_expressions_with_an_implied_any_type_6115", "Raise error on 'this' expressions with an implied 'any' type."), - Resolving_type_reference_directive_0_containing_file_1_root_directory_2: diag(6116, 3 /* Message */, "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: diag(6119, 3 /* Message */, "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119", "======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"), - Type_reference_directive_0_was_not_resolved: diag(6120, 3 /* Message */, "Type_reference_directive_0_was_not_resolved_6120", "======== Type reference directive '{0}' was not resolved. ========"), - Resolving_with_primary_search_path_0: diag(6121, 3 /* Message */, "Resolving_with_primary_search_path_0_6121", "Resolving with primary search path '{0}'."), - Root_directory_cannot_be_determined_skipping_primary_search_paths: diag(6122, 3 /* Message */, "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122", "Root directory cannot be determined, skipping primary search paths."), - Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set: diag(6123, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123", "======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"), - Type_declaration_files_to_be_included_in_compilation: diag(6124, 3 /* Message */, "Type_declaration_files_to_be_included_in_compilation_6124", "Type declaration files to be included in compilation."), - Looking_up_in_node_modules_folder_initial_location_0: diag(6125, 3 /* Message */, "Looking_up_in_node_modules_folder_initial_location_0_6125", "Looking up in 'node_modules' folder, initial location '{0}'."), - Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder: diag(6126, 3 /* Message */, "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126", "Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."), - Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1: diag(6127, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127", "======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"), - Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set: diag(6128, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128", "======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"), - Resolving_real_path_for_0_result_1: diag(6130, 3 /* Message */, "Resolving_real_path_for_0_result_1_6130", "Resolving real path for '{0}', result '{1}'."), - Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system: diag(6131, 1 /* Error */, "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131", "Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."), - File_name_0_has_a_1_extension_stripping_it: diag(6132, 3 /* Message */, "File_name_0_has_a_1_extension_stripping_it_6132", "File name '{0}' has a '{1}' extension - stripping it."), - _0_is_declared_but_its_value_is_never_read: diag( - 6133, - 1 /* Error */, - "_0_is_declared_but_its_value_is_never_read_6133", - "'{0}' is declared but its value is never read.", - /*reportsUnnecessary*/ - true - ), - Report_errors_on_unused_locals: diag(6134, 3 /* Message */, "Report_errors_on_unused_locals_6134", "Report errors on unused locals."), - Report_errors_on_unused_parameters: diag(6135, 3 /* Message */, "Report_errors_on_unused_parameters_6135", "Report errors on unused parameters."), - The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files: diag(6136, 3 /* Message */, "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136", "The maximum dependency depth to search under node_modules and load JavaScript files."), - Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: diag(6137, 1 /* Error */, "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137", "Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."), - Property_0_is_declared_but_its_value_is_never_read: diag( - 6138, - 1 /* Error */, - "Property_0_is_declared_but_its_value_is_never_read_6138", - "Property '{0}' is declared but its value is never read.", - /*reportsUnnecessary*/ - true - ), - Import_emit_helpers_from_tslib: diag(6139, 3 /* Message */, "Import_emit_helpers_from_tslib_6139", "Import emit helpers from 'tslib'."), - Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2: diag(6140, 1 /* Error */, "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140", "Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."), - Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: diag(6141, 3 /* Message */, "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141", 'Parse in strict mode and emit "use strict" for each source file.'), - Module_0_was_resolved_to_1_but_jsx_is_not_set: diag(6142, 1 /* Error */, "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142", "Module '{0}' was resolved to '{1}', but '--jsx' is not set."), - Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: diag(6144, 3 /* Message */, "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", "Module '{0}' was resolved as locally declared ambient module in file '{1}'."), - Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: diag(6146, 3 /* Message */, "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146", "Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."), - Resolution_for_module_0_was_found_in_cache_from_location_1: diag(6147, 3 /* Message */, "Resolution_for_module_0_was_found_in_cache_from_location_1_6147", "Resolution for module '{0}' was found in cache from location '{1}'."), - Directory_0_does_not_exist_skipping_all_lookups_in_it: diag(6148, 3 /* Message */, "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148", "Directory '{0}' does not exist, skipping all lookups in it."), - Show_diagnostic_information: diag(6149, 3 /* Message */, "Show_diagnostic_information_6149", "Show diagnostic information."), - Show_verbose_diagnostic_information: diag(6150, 3 /* Message */, "Show_verbose_diagnostic_information_6150", "Show verbose diagnostic information."), - Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: diag(6151, 3 /* Message */, "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151", "Emit a single file with source maps instead of having a separate file."), - Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set: diag(6152, 3 /* Message */, "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152", "Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."), - Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: diag(6153, 3 /* Message */, "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153", "Transpile each file as a separate module (similar to 'ts.transpileModule')."), - Print_names_of_generated_files_part_of_the_compilation: diag(6154, 3 /* Message */, "Print_names_of_generated_files_part_of_the_compilation_6154", "Print names of generated files part of the compilation."), - Print_names_of_files_part_of_the_compilation: diag(6155, 3 /* Message */, "Print_names_of_files_part_of_the_compilation_6155", "Print names of files part of the compilation."), - The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: diag(6156, 3 /* Message */, "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156", "The locale used when displaying messages to the user (e.g. 'en-us')"), - Do_not_generate_custom_helper_functions_like_extends_in_compiled_output: diag(6157, 3 /* Message */, "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157", "Do not generate custom helper functions like '__extends' in compiled output."), - Do_not_include_the_default_library_file_lib_d_ts: diag(6158, 3 /* Message */, "Do_not_include_the_default_library_file_lib_d_ts_6158", "Do not include the default library file (lib.d.ts)."), - Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files: diag(6159, 3 /* Message */, "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159", "Do not add triple-slash references or imported modules to the list of compiled files."), - Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files: diag(6160, 3 /* Message */, "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160", "[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."), - List_of_folders_to_include_type_definitions_from: diag(6161, 3 /* Message */, "List_of_folders_to_include_type_definitions_from_6161", "List of folders to include type definitions from."), - Disable_size_limitations_on_JavaScript_projects: diag(6162, 3 /* Message */, "Disable_size_limitations_on_JavaScript_projects_6162", "Disable size limitations on JavaScript projects."), - The_character_set_of_the_input_files: diag(6163, 3 /* Message */, "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: diag(6164, 3 /* Message */, "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: diag(6165, 3 /* Message */, "Do_not_truncate_error_messages_6165", "Do not truncate error messages."), - Output_directory_for_generated_declaration_files: diag(6166, 3 /* Message */, "Output_directory_for_generated_declaration_files_6166", "Output directory for generated declaration files."), - A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl: diag(6167, 3 /* Message */, "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167", "A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."), - List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime: diag(6168, 3 /* Message */, "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168", "List of root folders whose combined content represents the structure of the project at runtime."), - Show_all_compiler_options: diag(6169, 3 /* Message */, "Show_all_compiler_options_6169", "Show all compiler options."), - Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: diag(6170, 3 /* Message */, "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170", "[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"), - Command_line_Options: diag(6171, 3 /* Message */, "Command_line_Options_6171", "Command-line Options"), - Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5: diag(6179, 3 /* Message */, "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: diag(6180, 3 /* Message */, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."), - Scoped_package_detected_looking_in_0: diag(6182, 3 /* Message */, "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: diag(6183, 3 /* Message */, "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: diag(6184, 3 /* Message */, "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: diag(6186, 3 /* Message */, "Enable_strict_checking_of_function_types_6186", "Enable strict checking of function types."), - Enable_strict_checking_of_property_initialization_in_classes: diag(6187, 3 /* Message */, "Enable_strict_checking_of_property_initialization_in_classes_6187", "Enable strict checking of property initialization in classes."), - Numeric_separators_are_not_allowed_here: diag(6188, 1 /* Error */, "Numeric_separators_are_not_allowed_here_6188", "Numeric separators are not allowed here."), - Multiple_consecutive_numeric_separators_are_not_permitted: diag(6189, 1 /* Error */, "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: diag(6191, 3 /* Message */, "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191", "Whether to keep outdated console output in watch mode instead of clearing the screen."), - All_imports_in_import_declaration_are_unused: diag( - 6192, - 1 /* Error */, - "All_imports_in_import_declaration_are_unused_6192", - "All imports in import declaration are unused.", - /*reportsUnnecessary*/ - true - ), - Found_1_error_Watching_for_file_changes: diag(6193, 3 /* Message */, "Found_1_error_Watching_for_file_changes_6193", "Found 1 error. Watching for file changes."), - Found_0_errors_Watching_for_file_changes: diag(6194, 3 /* Message */, "Found_0_errors_Watching_for_file_changes_6194", "Found {0} errors. Watching for file changes."), - Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols: diag(6195, 3 /* Message */, "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195", "Resolve 'keyof' to string valued property names only (no numbers or symbols)."), - _0_is_declared_but_never_used: diag( - 6196, - 1 /* Error */, - "_0_is_declared_but_never_used_6196", - "'{0}' is declared but never used.", - /*reportsUnnecessary*/ - true - ), - Include_modules_imported_with_json_extension: diag(6197, 3 /* Message */, "Include_modules_imported_with_json_extension_6197", "Include modules imported with '.json' extension"), - All_destructured_elements_are_unused: diag( - 6198, - 1 /* Error */, - "All_destructured_elements_are_unused_6198", - "All destructured elements are unused.", - /*reportsUnnecessary*/ - true - ), - All_variables_are_unused: diag( - 6199, - 1 /* Error */, - "All_variables_are_unused_6199", - "All variables are unused.", - /*reportsUnnecessary*/ - true - ), - Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, 1 /* Error */, "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200", "Definitions of the following identifiers conflict with those in another file: {0}"), - Conflicts_are_in_this_file: diag(6201, 3 /* Message */, "Conflicts_are_in_this_file_6201", "Conflicts are in this file."), - Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, 1 /* Error */, "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202", "Project references may not form a circular graph. Cycle detected: {0}"), - _0_was_also_declared_here: diag(6203, 3 /* Message */, "_0_was_also_declared_here_6203", "'{0}' was also declared here."), - and_here: diag(6204, 3 /* Message */, "and_here_6204", "and here."), - All_type_parameters_are_unused: diag(6205, 1 /* Error */, "All_type_parameters_are_unused_6205", "All type parameters are unused."), - package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, 3 /* Message */, "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206", "'package.json' has a 'typesVersions' field with version-specific path mappings."), - package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, 3 /* Message */, "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207", "'package.json' does not have a 'typesVersions' entry that matches version '{0}'."), - package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2: diag(6208, 3 /* Message */, "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208", "'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."), - package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range: diag(6209, 3 /* Message */, "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209", "'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."), - An_argument_for_0_was_not_provided: diag(6210, 3 /* Message */, "An_argument_for_0_was_not_provided_6210", "An argument for '{0}' was not provided."), - An_argument_matching_this_binding_pattern_was_not_provided: diag(6211, 3 /* Message */, "An_argument_matching_this_binding_pattern_was_not_provided_6211", "An argument matching this binding pattern was not provided."), - Did_you_mean_to_call_this_expression: diag(6212, 3 /* Message */, "Did_you_mean_to_call_this_expression_6212", "Did you mean to call this expression?"), - Did_you_mean_to_use_new_with_this_expression: diag(6213, 3 /* Message */, "Did_you_mean_to_use_new_with_this_expression_6213", "Did you mean to use 'new' with this expression?"), - Enable_strict_bind_call_and_apply_methods_on_functions: diag(6214, 3 /* Message */, "Enable_strict_bind_call_and_apply_methods_on_functions_6214", "Enable strict 'bind', 'call', and 'apply' methods on functions."), - Using_compiler_options_of_project_reference_redirect_0: diag(6215, 3 /* Message */, "Using_compiler_options_of_project_reference_redirect_0_6215", "Using compiler options of project reference redirect '{0}'."), - Found_1_error: diag(6216, 3 /* Message */, "Found_1_error_6216", "Found 1 error."), - Found_0_errors: diag(6217, 3 /* Message */, "Found_0_errors_6217", "Found {0} errors."), - Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: diag(6218, 3 /* Message */, "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: diag(6219, 3 /* Message */, "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: diag(6220, 3 /* Message */, "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: diag(6221, 3 /* Message */, "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: diag(6222, 3 /* Message */, "Emit_class_fields_with_Define_instead_of_Set_6222", "Emit class fields with Define instead of Set."), - Generates_a_CPU_profile: diag(6223, 3 /* Message */, "Generates_a_CPU_profile_6223", "Generates a CPU profile."), - Disable_solution_searching_for_this_project: diag(6224, 3 /* Message */, "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: diag(6225, 3 /* Message */, "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: diag(6226, 3 /* Message */, "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: diag(6227, 3 /* Message */, "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: diag(6229, 1 /* Error */, "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: diag(6230, 1 /* Error */, "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: diag(6231, 1 /* Error */, "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: diag(6232, 1 /* Error */, "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: diag(6233, 1 /* Error */, "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: diag(6234, 1 /* Error */, "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: diag(6235, 3 /* Message */, "Disable_loading_referenced_projects_6235", "Disable loading referenced projects."), - Arguments_for_the_rest_parameter_0_were_not_provided: diag(6236, 1 /* Error */, "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: diag(6237, 3 /* Message */, "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: diag(6238, 1 /* Error */, "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: diag(6239, 3 /* Message */, "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: diag(6240, 3 /* Message */, "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: diag(6241, 3 /* Message */, "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: diag(6242, 3 /* Message */, "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: diag(6243, 3 /* Message */, "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243", "Interpret optional property types as written, rather than adding 'undefined'."), - Modules: diag(6244, 3 /* Message */, "Modules_6244", "Modules"), - File_Management: diag(6245, 3 /* Message */, "File_Management_6245", "File Management"), - Emit: diag(6246, 3 /* Message */, "Emit_6246", "Emit"), - JavaScript_Support: diag(6247, 3 /* Message */, "JavaScript_Support_6247", "JavaScript Support"), - Type_Checking: diag(6248, 3 /* Message */, "Type_Checking_6248", "Type Checking"), - Editor_Support: diag(6249, 3 /* Message */, "Editor_Support_6249", "Editor Support"), - Watch_and_Build_Modes: diag(6250, 3 /* Message */, "Watch_and_Build_Modes_6250", "Watch and Build Modes"), - Compiler_Diagnostics: diag(6251, 3 /* Message */, "Compiler_Diagnostics_6251", "Compiler Diagnostics"), - Interop_Constraints: diag(6252, 3 /* Message */, "Interop_Constraints_6252", "Interop Constraints"), - Backwards_Compatibility: diag(6253, 3 /* Message */, "Backwards_Compatibility_6253", "Backwards Compatibility"), - Language_and_Environment: diag(6254, 3 /* Message */, "Language_and_Environment_6254", "Language and Environment"), - Projects: diag(6255, 3 /* Message */, "Projects_6255", "Projects"), - Output_Formatting: diag(6256, 3 /* Message */, "Output_Formatting_6256", "Output Formatting"), - Completeness: diag(6257, 3 /* Message */, "Completeness_6257", "Completeness"), - _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: diag(6258, 1 /* Error */, "_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: diag(6259, 3 /* Message */, "Found_1_error_in_0_6259", "Found 1 error in {0}"), - Found_0_errors_in_the_same_file_starting_at_Colon_1: diag(6260, 3 /* Message */, "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: diag(6261, 3 /* Message */, "Found_0_errors_in_1_files_6261", "Found {0} errors in {1} files."), - File_name_0_has_a_1_extension_looking_up_2_instead: diag(6262, 3 /* Message */, "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: diag(6263, 1 /* Error */, "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: diag(6264, 3 /* Message */, "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: diag(6265, 3 /* Message */, "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: diag(6266, 1 /* Error */, "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: diag(6270, 3 /* Message */, "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: diag(6271, 3 /* Message */, "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: diag(6272, 3 /* Message */, "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: diag(6273, 3 /* Message */, "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: diag(6274, 3 /* Message */, "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: diag(6275, 3 /* Message */, "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: diag(6276, 3 /* Message */, "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: diag(6277, 3 /* Message */, "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: diag(6278, 3 /* Message */, "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: diag(6279, 3 /* Message */, "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: diag(6280, 3 /* Message */, "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: diag(6281, 3 /* Message */, "package_json_has_a_peerDependencies_field_6281", "'package.json' has a 'peerDependencies' field."), - Found_peerDependency_0_with_1_version: diag(6282, 3 /* Message */, "Found_peerDependency_0_with_1_version_6282", "Found peerDependency '{0}' with '{1}' version."), - Failed_to_find_peerDependency_0: diag(6283, 3 /* Message */, "Failed_to_find_peerDependency_0_6283", "Failed to find peerDependency '{0}'."), - Enable_project_compilation: diag(6302, 3 /* Message */, "Enable_project_compilation_6302", "Enable project compilation"), - Composite_projects_may_not_disable_declaration_emit: diag(6304, 1 /* Error */, "Composite_projects_may_not_disable_declaration_emit_6304", "Composite projects may not disable declaration emit."), - Output_file_0_has_not_been_built_from_source_file_1: diag(6305, 1 /* Error */, "Output_file_0_has_not_been_built_from_source_file_1_6305", "Output file '{0}' has not been built from source file '{1}'."), - Referenced_project_0_must_have_setting_composite_Colon_true: diag(6306, 1 /* Error */, "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: diag(6307, 1 /* Error */, "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: diag(6310, 1 /* Error */, "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: diag(6350, 3 /* Message */, "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: diag(6351, 3 /* Message */, "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: diag(6352, 3 /* Message */, "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352", "Project '{0}' is out of date because output file '{1}' does not exist"), - Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: diag(6353, 3 /* Message */, "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353", "Project '{0}' is out of date because its dependency '{1}' is out of date"), - Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: diag(6354, 3 /* Message */, "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354", "Project '{0}' is up to date with .d.ts files from its dependencies"), - Projects_in_this_build_Colon_0: diag(6355, 3 /* Message */, "Projects_in_this_build_Colon_0_6355", "Projects in this build: {0}"), - A_non_dry_build_would_delete_the_following_files_Colon_0: diag(6356, 3 /* Message */, "A_non_dry_build_would_delete_the_following_files_Colon_0_6356", "A non-dry build would delete the following files: {0}"), - A_non_dry_build_would_build_project_0: diag(6357, 3 /* Message */, "A_non_dry_build_would_build_project_0_6357", "A non-dry build would build project '{0}'"), - Building_project_0: diag(6358, 3 /* Message */, "Building_project_0_6358", "Building project '{0}'..."), - Updating_output_timestamps_of_project_0: diag(6359, 3 /* Message */, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."), - Project_0_is_up_to_date: diag(6361, 3 /* Message */, "Project_0_is_up_to_date_6361", "Project '{0}' is up to date"), - Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, 3 /* Message */, "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362", "Skipping build of project '{0}' because its dependency '{1}' has errors"), - Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, 3 /* Message */, "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363", "Project '{0}' can't be built because its dependency '{1}' has errors"), - Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, 3 /* Message */, "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364", "Build one or more projects and their dependencies, if out of date"), - Delete_the_outputs_of_all_projects: diag(6365, 3 /* Message */, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."), - Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, 3 /* Message */, "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: diag(6369, 1 /* Error */, "Option_build_must_be_the_first_command_line_argument_6369", "Option '--build' must be the first command line argument."), - Options_0_and_1_cannot_be_combined: diag(6370, 1 /* Error */, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."), - Updating_unchanged_output_timestamps_of_project_0: diag(6371, 3 /* Message */, "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: diag(6374, 3 /* Message */, "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374", "A non-dry build would update timestamps for output of project '{0}'"), - Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, 1 /* Error */, "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377", "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"), - Composite_projects_may_not_disable_incremental_compilation: diag(6379, 1 /* Error */, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."), - Specify_file_to_store_incremental_compilation_information: diag(6380, 3 /* Message */, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"), - Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, 3 /* Message */, "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381", "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"), - Skipping_build_of_project_0_because_its_dependency_1_was_not_built: diag(6382, 3 /* Message */, "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: diag(6383, 3 /* Message */, "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: diag(6384, 3 /* Message */, "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: diag( - 6385, - 2 /* Suggestion */, - "_0_is_deprecated_6385", - "'{0}' is deprecated.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - void 0, - /*reportsDeprecated*/ - true - ), - Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, 3 /* Message */, "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: diag( - 6387, - 2 /* Suggestion */, - "The_signature_0_of_1_is_deprecated_6387", - "The signature '{0}' of '{1}' is deprecated.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - void 0, - /*reportsDeprecated*/ - true - ), - Project_0_is_being_forcibly_rebuilt: diag(6388, 3 /* Message */, "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: diag(6389, 3 /* Message */, "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: diag(6390, 3 /* Message */, "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: diag(6391, 3 /* Message */, "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: diag(6392, 3 /* Message */, "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: diag(6393, 3 /* Message */, "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: diag(6394, 3 /* Message */, "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: diag(6395, 3 /* Message */, "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: diag(6396, 3 /* Message */, "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: diag(6397, 3 /* Message */, "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: diag(6398, 3 /* Message */, "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: diag(6399, 3 /* Message */, "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: diag(6400, 3 /* Message */, "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: diag(6401, 3 /* Message */, "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: diag(6402, 3 /* Message */, "Resolving_in_0_mode_with_conditions_1_6402", "Resolving in {0} mode with conditions {1}."), - Matched_0_condition_1: diag(6403, 3 /* Message */, "Matched_0_condition_1_6403", "Matched '{0}' condition '{1}'."), - Using_0_subpath_1_with_target_2: diag(6404, 3 /* Message */, "Using_0_subpath_1_with_target_2_6404", "Using '{0}' subpath '{1}' with target '{2}'."), - Saw_non_matching_condition_0: diag(6405, 3 /* Message */, "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: diag(6406, 3 /* Message */, "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: diag(6407, 3 /* Message */, "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: diag(6408, 3 /* Message */, "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: diag(6409, 3 /* Message */, "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: diag(6410, 3 /* Message */, "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: diag(6411, 3 /* Message */, "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: diag(6412, 3 /* Message */, "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: diag(6413, 3 /* Message */, "Entering_conditional_exports_6413", "Entering conditional exports."), - Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), - Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), - Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), - Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "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: diag(6418, 3 /* Message */, "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: diag(6419, 3 /* Message */, "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: diag(6420, 3 /* Message */, "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: diag(6421, 3 /* Message */, "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: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), - The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), - The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "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: diag(6503, 3 /* Message */, "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: diag(6504, 1 /* Error */, "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: diag(6505, 3 /* Message */, "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: diag(6506, 3 /* Message */, "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: diag(6600, 3 /* Message */, "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: diag(6601, 3 /* Message */, "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: diag(6602, 3 /* Message */, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."), - Disable_error_reporting_for_unreachable_code: diag(6603, 3 /* Message */, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."), - Disable_error_reporting_for_unused_labels: diag(6604, 3 /* Message */, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."), - Ensure_use_strict_is_always_emitted: diag(6605, 3 /* Message */, "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: diag(6606, 3 /* Message */, "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: diag(6607, 3 /* Message */, "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: diag(6608, 3 /* Message */, "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: diag(6609, 3 /* Message */, "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: diag(6611, 3 /* Message */, "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: diag(6612, 3 /* Message */, "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: diag(6613, 3 /* Message */, "Specify_the_output_directory_for_generated_declaration_files_6613", "Specify the output directory for generated declaration files."), - Create_sourcemaps_for_d_ts_files: diag(6614, 3 /* Message */, "Create_sourcemaps_for_d_ts_files_6614", "Create sourcemaps for d.ts files."), - Output_compiler_performance_information_after_building: diag(6615, 3 /* Message */, "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: diag(6616, 3 /* Message */, "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: diag(6617, 3 /* Message */, "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: diag(6618, 3 /* Message */, "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: diag(6619, 3 /* Message */, "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: diag(6620, 3 /* Message */, "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: diag(6621, 3 /* Message */, "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: diag(6622, 3 /* Message */, "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: diag(6623, 3 /* Message */, "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: diag(6624, 3 /* Message */, "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: diag(6625, 3 /* Message */, "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: diag(6626, 3 /* Message */, "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: diag(6627, 3 /* Message */, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."), - Remove_a_list_of_directories_from_the_watch_process: diag(6628, 3 /* Message */, "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: diag(6629, 3 /* Message */, "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: diag(6630, 3 /* Message */, "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: diag(6631, 3 /* Message */, "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: diag(6632, 3 /* Message */, "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: diag(6633, 3 /* Message */, "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: diag(6634, 3 /* Message */, "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: diag(6635, 3 /* Message */, "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: diag(6636, 3 /* Message */, "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: diag(6637, 3 /* Message */, "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: diag(6638, 3 /* Message */, "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: diag(6639, 3 /* Message */, "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: diag(6640, 3 /* Message */, "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: diag(6641, 3 /* Message */, "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: diag(6642, 3 /* Message */, "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: diag(6643, 3 /* Message */, "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: diag(6644, 3 /* Message */, "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: diag(6645, 3 /* Message */, "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: diag(6646, 3 /* Message */, "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: diag(6647, 3 /* Message */, "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: diag(6648, 3 /* Message */, "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: diag(6649, 3 /* Message */, "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: diag(6650, 3 /* Message */, "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: diag(6651, 3 /* Message */, "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: diag(6652, 3 /* Message */, "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: diag(6653, 3 /* Message */, "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: diag(6654, 3 /* Message */, "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: diag(6655, 3 /* Message */, "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: diag(6656, 3 /* Message */, "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: diag(6657, 3 /* Message */, "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: diag(6658, 3 /* Message */, "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: diag(6659, 3 /* Message */, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."), - Disable_emitting_files_from_a_compilation: diag(6660, 3 /* Message */, "Disable_emitting_files_from_a_compilation_6660", "Disable emitting files from a compilation."), - Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, 3 /* Message */, "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: diag(6662, 3 /* Message */, "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: diag(6663, 3 /* Message */, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."), - Enable_error_reporting_for_fallthrough_cases_in_switch_statements: diag(6664, 3 /* Message */, "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: diag(6665, 3 /* Message */, "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: diag(6666, 3 /* Message */, "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: diag(6667, 3 /* Message */, "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: diag(6668, 3 /* Message */, "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: diag(6669, 3 /* Message */, "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: diag(6670, 3 /* Message */, "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: diag(6671, 3 /* Message */, "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: diag(6672, 3 /* Message */, "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: diag(6673, 3 /* Message */, "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: diag(6674, 3 /* Message */, "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: diag(6675, 3 /* Message */, "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: diag(6676, 3 /* Message */, "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: diag(6677, 3 /* Message */, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."), - Specify_an_output_folder_for_all_emitted_files: diag(6678, 3 /* Message */, "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: diag(6679, 3 /* Message */, "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: diag(6680, 3 /* Message */, "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: diag(6681, 3 /* Message */, "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: diag(6682, 3 /* Message */, "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: diag(6683, 3 /* Message */, "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: diag(6684, 3 /* Message */, "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: diag(6685, 3 /* Message */, "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: diag(6686, 3 /* Message */, "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: diag(6687, 3 /* Message */, "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: diag(6688, 3 /* Message */, "Disable_emitting_comments_6688", "Disable emitting comments."), - Enable_importing_json_files: diag(6689, 3 /* Message */, "Enable_importing_json_files_6689", "Enable importing .json files."), - Specify_the_root_folder_within_your_source_files: diag(6690, 3 /* Message */, "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: diag(6691, 3 /* Message */, "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: diag(6692, 3 /* Message */, "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: diag(6693, 3 /* Message */, "Skip_type_checking_all_d_ts_files_6693", "Skip type checking all .d.ts files."), - Create_source_map_files_for_emitted_JavaScript_files: diag(6694, 3 /* Message */, "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: diag(6695, 3 /* Message */, "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: diag(6697, 3 /* Message */, "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: diag(6698, 3 /* Message */, "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: diag(6699, 3 /* Message */, "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: diag(6700, 3 /* Message */, "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: diag(6701, 3 /* Message */, "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: diag(6702, 3 /* Message */, "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: diag(6703, 3 /* Message */, "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: diag(6704, 3 /* Message */, "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: diag(6705, 3 /* Message */, "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: diag(6706, 3 /* Message */, "Log_paths_used_during_the_moduleResolution_process_6706", "Log paths used during the 'moduleResolution' process."), - Specify_the_path_to_tsbuildinfo_incremental_compilation_file: diag(6707, 3 /* Message */, "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: diag(6709, 3 /* Message */, "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: diag(6710, 3 /* Message */, "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: diag(6711, 3 /* Message */, "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: diag(6712, 3 /* Message */, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."), - Enable_verbose_logging: diag(6713, 3 /* Message */, "Enable_verbose_logging_6713", "Enable verbose logging."), - Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: diag(6714, 3 /* Message */, "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: diag(6715, 3 /* Message */, "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: diag(6717, 3 /* Message */, "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: diag(6718, 3 /* Message */, "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: diag(6719, 3 /* Message */, "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: diag(6720, 3 /* Message */, "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'."), - Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3 /* Message */, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."), - Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "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: diag(6804, 3 /* Message */, "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: diag(6805, 3 /* Message */, "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: diag(6806, 3 /* Message */, "Check_side_effect_imports_6806", "Check side effect imports."), - This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1 /* Error */, "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}`."), - Enable_lib_replacement: diag(6808, 3 /* Message */, "Enable_lib_replacement_6808", "Enable lib replacement."), - one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"), - one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"), - type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"), - default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"), - module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'), - false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"), - false_unless_composite_is_set: diag(6906, 3 /* Message */, "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: diag(6907, 3 /* Message */, "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: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'), - true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"), - module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, 3 /* Message */, "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: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"), - Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"), - You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "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: diag(6914, 3 /* Message */, "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: diag(6915, 3 /* Message */, "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: diag(6916, 3 /* Message */, "COMMON_COMMANDS_6916", "COMMON COMMANDS"), - ALL_COMPILER_OPTIONS: diag(6917, 3 /* Message */, "ALL_COMPILER_OPTIONS_6917", "ALL COMPILER OPTIONS"), - WATCH_OPTIONS: diag(6918, 3 /* Message */, "WATCH_OPTIONS_6918", "WATCH OPTIONS"), - BUILD_OPTIONS: diag(6919, 3 /* Message */, "BUILD_OPTIONS_6919", "BUILD OPTIONS"), - COMMON_COMPILER_OPTIONS: diag(6920, 3 /* Message */, "COMMON_COMPILER_OPTIONS_6920", "COMMON COMPILER OPTIONS"), - COMMAND_LINE_FLAGS: diag(6921, 3 /* Message */, "COMMAND_LINE_FLAGS_6921", "COMMAND LINE FLAGS"), - tsc_Colon_The_TypeScript_Compiler: diag(6922, 3 /* Message */, "tsc_Colon_The_TypeScript_Compiler_6922", "tsc: The TypeScript Compiler"), - Compiles_the_current_project_tsconfig_json_in_the_working_directory: diag(6923, 3 /* Message */, "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: diag(6924, 3 /* Message */, "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: diag(6925, 3 /* Message */, "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: diag(6926, 3 /* Message */, "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: diag(6927, 3 /* Message */, "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: diag(6928, 3 /* Message */, "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: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."), - true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "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: diag(6931, 1 /* Error */, "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: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."), - Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."), - Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."), - new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: diag(7009, 1 /* Error */, "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009", "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."), - _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: diag(7010, 1 /* Error */, "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010", "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."), - Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7011, 1 /* Error */, "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011", "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."), - This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation: diag(7012, 1 /* Error */, "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: diag(7013, 1 /* Error */, "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013", "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."), - Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7014, 1 /* Error */, "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014", "Function type, which lacks return-type annotation, implicitly has an '{0}' return type."), - Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: diag(7015, 1 /* Error */, "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015", "Element implicitly has an 'any' type because index expression is not of type 'number'."), - Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type: diag(7016, 1 /* Error */, "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016", "Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."), - Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature: diag(7017, 1 /* Error */, "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017", "Element implicitly has an 'any' type because type '{0}' has no index signature."), - Object_literal_s_property_0_implicitly_has_an_1_type: diag(7018, 1 /* Error */, "Object_literal_s_property_0_implicitly_has_an_1_type_7018", "Object literal's property '{0}' implicitly has an '{1}' type."), - Rest_parameter_0_implicitly_has_an_any_type: diag(7019, 1 /* Error */, "Rest_parameter_0_implicitly_has_an_any_type_7019", "Rest parameter '{0}' implicitly has an 'any[]' type."), - Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7020, 1 /* Error */, "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020", "Call signature, which lacks return-type annotation, implicitly has an 'any' return type."), - _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: diag(7022, 1 /* Error */, "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022", "'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."), - _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7023, 1 /* Error */, "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023", "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), - Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7024, 1 /* Error */, "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024", "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), - Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation: diag(7025, 1 /* Error */, "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: diag(7026, 1 /* Error */, "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026", "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."), - Unreachable_code_detected: diag( - 7027, - 1 /* Error */, - "Unreachable_code_detected_7027", - "Unreachable code detected.", - /*reportsUnnecessary*/ - true - ), - Unused_label: diag( - 7028, - 1 /* Error */, - "Unused_label_7028", - "Unused label.", - /*reportsUnnecessary*/ - true - ), - Fallthrough_case_in_switch: diag(7029, 1 /* Error */, "Fallthrough_case_in_switch_7029", "Fallthrough case in switch."), - Not_all_code_paths_return_a_value: diag(7030, 1 /* Error */, "Not_all_code_paths_return_a_value_7030", "Not all code paths return a value."), - Binding_element_0_implicitly_has_an_1_type: diag(7031, 1 /* Error */, "Binding_element_0_implicitly_has_an_1_type_7031", "Binding element '{0}' implicitly has an '{1}' type."), - Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation: diag(7032, 1 /* Error */, "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032", "Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."), - Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation: diag(7033, 1 /* Error */, "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033", "Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."), - Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined: diag(7034, 1 /* Error */, "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034", "Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."), - Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0: diag(7035, 1 /* Error */, "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: diag(7036, 1 /* Error */, "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036", "Dynamic import's specifier must be of type 'string', but here has type '{0}'."), - Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports: diag(7037, 3 /* Message */, "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037", "Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."), - Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead: diag(7038, 3 /* Message */, "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038", "Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."), - Mapped_object_type_implicitly_has_an_any_template_type: diag(7039, 1 /* Error */, "Mapped_object_type_implicitly_has_an_any_template_type_7039", "Mapped object type implicitly has an 'any' template type."), - If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1: diag(7040, 1 /* Error */, "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040", "If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"), - The_containing_arrow_function_captures_the_global_value_of_this: diag(7041, 1 /* Error */, "The_containing_arrow_function_captures_the_global_value_of_this_7041", "The containing arrow function captures the global value of 'this'."), - Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: diag(7042, 1 /* Error */, "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042", "Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."), - Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7043, 2 /* Suggestion */, "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043", "Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), - Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7044, 2 /* Suggestion */, "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044", "Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), - Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7045, 2 /* Suggestion */, "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045", "Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), - Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage: diag(7046, 2 /* Suggestion */, "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046", "Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."), - Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage: diag(7047, 2 /* Suggestion */, "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047", "Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."), - Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage: diag(7048, 2 /* Suggestion */, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048", "Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."), - Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage: diag(7049, 2 /* Suggestion */, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049", "Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."), - _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage: diag(7050, 2 /* Suggestion */, "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050", "'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."), - Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: diag(7051, 1 /* Error */, "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051", "Parameter has a name but no type. Did you mean '{0}: {1}'?"), - Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1: diag(7052, 1 /* Error */, "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: diag(7053, 1 /* Error */, "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: diag(7054, 1 /* Error */, "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: diag(7055, 1 /* Error */, "_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: diag(7056, 1 /* Error */, "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: diag(7057, 1 /* Error */, "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: diag(7058, 1 /* Error */, "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: diag(7059, 1 /* Error */, "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: diag(7060, 1 /* Error */, "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: diag(7061, 1 /* Error */, "A_mapped_type_may_not_declare_properties_or_methods_7061", "A mapped type may not declare properties or methods."), - You_cannot_rename_this_element: diag(8e3, 1 /* Error */, "You_cannot_rename_this_element_8000", "You cannot rename this element."), - You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: diag(8001, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001", "You cannot rename elements that are defined in the standard TypeScript library."), - import_can_only_be_used_in_TypeScript_files: diag(8002, 1 /* Error */, "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: diag(8003, 1 /* Error */, "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: diag(8004, 1 /* Error */, "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: diag(8005, 1 /* Error */, "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: diag(8006, 1 /* Error */, "_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: diag(8008, 1 /* Error */, "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: diag(8009, 1 /* Error */, "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: diag(8010, 1 /* Error */, "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: diag(8011, 1 /* Error */, "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: diag(8012, 1 /* Error */, "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: diag(8013, 1 /* Error */, "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: diag(8016, 1 /* Error */, "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: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), - Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), - JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), - JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), - JSDoc_0_is_not_attached_to_a_class: diag(8022, 1 /* Error */, "JSDoc_0_is_not_attached_to_a_class_8022", "JSDoc '@{0}' is not attached to a class."), - JSDoc_0_1_does_not_match_the_extends_2_clause: diag(8023, 1 /* Error */, "JSDoc_0_1_does_not_match_the_extends_2_clause_8023", "JSDoc '@{0} {1}' does not match the 'extends {2}' clause."), - JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: diag(8024, 1 /* Error */, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name."), - Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: diag(8025, 1 /* Error */, "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025", "Class declarations cannot have more than one '@augments' or '@extends' tag."), - Expected_0_type_arguments_provide_these_with_an_extends_tag: diag(8026, 1 /* Error */, "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026", "Expected {0} type arguments; provide these with an '@extends' tag."), - Expected_0_1_type_arguments_provide_these_with_an_extends_tag: diag(8027, 1 /* Error */, "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027", "Expected {0}-{1} type arguments; provide these with an '@extends' tag."), - JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: diag(8028, 1 /* Error */, "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028", "JSDoc '...' may only appear in the last parameter of a signature."), - JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type: diag(8029, 1 /* Error */, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."), - The_type_of_a_function_declaration_must_match_the_function_s_signature: diag(8030, 1 /* Error */, "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030", "The type of a function declaration must match the function's signature."), - You_cannot_rename_a_module_via_a_global_import: diag(8031, 1 /* Error */, "You_cannot_rename_a_module_via_a_global_import_8031", "You cannot rename a module via a global import."), - Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, 1 /* Error */, "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032", "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."), - A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, 1 /* Error */, "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: diag(8034, 1 /* Error */, "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: diag(8035, 1 /* Error */, "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: diag(8036, 1 /* Error */, "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: diag(8037, 1 /* Error */, "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: diag(8038, 1 /* Error */, "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: diag(8039, 1 /* Error */, "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: diag(9005, 1 /* Error */, "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: diag(9006, 1 /* Error */, "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: diag(9007, 1 /* Error */, "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: diag(9008, 1 /* Error */, "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: diag(9009, 1 /* Error */, "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: diag(9010, 1 /* Error */, "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: diag(9011, 1 /* Error */, "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: diag(9012, 1 /* Error */, "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: diag(9013, 1 /* Error */, "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: diag(9014, 1 /* Error */, "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: diag(9015, 1 /* Error */, "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: diag(9016, 1 /* Error */, "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: diag(9017, 1 /* Error */, "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: diag(9018, 1 /* Error */, "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: diag(9019, 1 /* Error */, "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: diag(9020, 1 /* Error */, "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: diag(9021, 1 /* Error */, "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: diag(9022, 1 /* Error */, "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: diag(9023, 1 /* Error */, "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: diag(9025, 1 /* Error */, "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: diag(9026, 1 /* Error */, "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: diag(9027, 1 /* Error */, "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: diag(9028, 1 /* Error */, "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: diag(9029, 1 /* Error */, "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: diag(9030, 1 /* Error */, "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: diag(9031, 1 /* Error */, "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: diag(9032, 1 /* Error */, "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: diag(9033, 1 /* Error */, "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: diag(9034, 1 /* Error */, "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: diag(9035, 1 /* Error */, "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: diag(9036, 1 /* Error */, "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: diag(9037, 1 /* Error */, "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: diag(9038, 1 /* Error */, "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: diag(9039, 1 /* Error */, "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: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."), - JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, 1 /* Error */, "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001", "JSX elements cannot have multiple attributes with the same name."), - Expected_corresponding_JSX_closing_tag_for_0: diag(17002, 1 /* Error */, "Expected_corresponding_JSX_closing_tag_for_0_17002", "Expected corresponding JSX closing tag for '{0}'."), - Cannot_use_JSX_unless_the_jsx_flag_is_provided: diag(17004, 1 /* Error */, "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004", "Cannot use JSX unless the '--jsx' flag is provided."), - A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: diag(17005, 1 /* Error */, "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005", "A constructor cannot contain a 'super' call when its class extends 'null'."), - An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17006, 1 /* Error */, "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006", "An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), - A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17007, 1 /* Error */, "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007", "A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), - JSX_element_0_has_no_corresponding_closing_tag: diag(17008, 1 /* Error */, "JSX_element_0_has_no_corresponding_closing_tag_17008", "JSX element '{0}' has no corresponding closing tag."), - super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class: diag(17009, 1 /* Error */, "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009", "'super' must be called before accessing 'this' in the constructor of a derived class."), - Unknown_type_acquisition_option_0: diag(17010, 1 /* Error */, "Unknown_type_acquisition_option_0_17010", "Unknown type acquisition option '{0}'."), - super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class: diag(17011, 1 /* Error */, "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011", "'super' must be called before accessing a property of 'super' in the constructor of a derived class."), - _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: diag(17012, 1 /* Error */, "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012", "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"), - Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor: diag(17013, 1 /* Error */, "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013", "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."), - JSX_fragment_has_no_corresponding_closing_tag: diag(17014, 1 /* Error */, "JSX_fragment_has_no_corresponding_closing_tag_17014", "JSX fragment has no corresponding closing tag."), - Expected_corresponding_closing_tag_for_JSX_fragment: diag(17015, 1 /* Error */, "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: diag(17016, 1 /* Error */, "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: diag(17017, 1 /* Error */, "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: diag(17018, 1 /* Error */, "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: diag(17019, 1 /* Error */, "_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: diag(17020, 1 /* Error */, "_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: diag(17021, 1 /* Error */, "Unicode_escape_sequence_cannot_appear_here_17021", "Unicode escape sequence cannot appear here."), - Circularity_detected_while_resolving_configuration_Colon_0: diag(18e3, 1 /* Error */, "Circularity_detected_while_resolving_configuration_Colon_0_18000", "Circularity detected while resolving configuration: {0}"), - The_files_list_in_config_file_0_is_empty: diag(18002, 1 /* Error */, "The_files_list_in_config_file_0_is_empty_18002", "The 'files' list in config file '{0}' is empty."), - No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2: diag(18003, 1 /* Error */, "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003", "No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."), - File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module: diag(80001, 2 /* Suggestion */, "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: diag(80002, 2 /* Suggestion */, "This_constructor_function_may_be_converted_to_a_class_declaration_80002", "This constructor function may be converted to a class declaration."), - Import_may_be_converted_to_a_default_import: diag(80003, 2 /* Suggestion */, "Import_may_be_converted_to_a_default_import_80003", "Import may be converted to a default import."), - JSDoc_types_may_be_moved_to_TypeScript_types: diag(80004, 2 /* Suggestion */, "JSDoc_types_may_be_moved_to_TypeScript_types_80004", "JSDoc types may be moved to TypeScript types."), - require_call_may_be_converted_to_an_import: diag(80005, 2 /* Suggestion */, "require_call_may_be_converted_to_an_import_80005", "'require' call may be converted to an import."), - This_may_be_converted_to_an_async_function: diag(80006, 2 /* Suggestion */, "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: diag(80007, 2 /* Suggestion */, "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: diag(80008, 2 /* Suggestion */, "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: diag(80009, 2 /* Suggestion */, "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: diag(80010, 2 /* Suggestion */, "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010", "JSDoc typedefs may be converted to TypeScript types."), - Add_missing_super_call: diag(90001, 3 /* Message */, "Add_missing_super_call_90001", "Add missing 'super()' call"), - Make_super_call_the_first_statement_in_the_constructor: diag(90002, 3 /* Message */, "Make_super_call_the_first_statement_in_the_constructor_90002", "Make 'super()' call the first statement in the constructor"), - Change_extends_to_implements: diag(90003, 3 /* Message */, "Change_extends_to_implements_90003", "Change 'extends' to 'implements'"), - Remove_unused_declaration_for_Colon_0: diag(90004, 3 /* Message */, "Remove_unused_declaration_for_Colon_0_90004", "Remove unused declaration for: '{0}'"), - Remove_import_from_0: diag(90005, 3 /* Message */, "Remove_import_from_0_90005", "Remove import from '{0}'"), - Implement_interface_0: diag(90006, 3 /* Message */, "Implement_interface_0_90006", "Implement interface '{0}'"), - Implement_inherited_abstract_class: diag(90007, 3 /* Message */, "Implement_inherited_abstract_class_90007", "Implement inherited abstract class"), - Add_0_to_unresolved_variable: diag(90008, 3 /* Message */, "Add_0_to_unresolved_variable_90008", "Add '{0}.' to unresolved variable"), - Remove_variable_statement: diag(90010, 3 /* Message */, "Remove_variable_statement_90010", "Remove variable statement"), - Remove_template_tag: diag(90011, 3 /* Message */, "Remove_template_tag_90011", "Remove template tag"), - Remove_type_parameters: diag(90012, 3 /* Message */, "Remove_type_parameters_90012", "Remove type parameters"), - Import_0_from_1: diag(90013, 3 /* Message */, "Import_0_from_1_90013", `Import '{0}' from "{1}"`), - Change_0_to_1: diag(90014, 3 /* Message */, "Change_0_to_1_90014", "Change '{0}' to '{1}'"), - Declare_property_0: diag(90016, 3 /* Message */, "Declare_property_0_90016", "Declare property '{0}'"), - Add_index_signature_for_property_0: diag(90017, 3 /* Message */, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"), - Disable_checking_for_this_file: diag(90018, 3 /* Message */, "Disable_checking_for_this_file_90018", "Disable checking for this file"), - Ignore_this_error_message: diag(90019, 3 /* Message */, "Ignore_this_error_message_90019", "Ignore this error message"), - Initialize_property_0_in_the_constructor: diag(90020, 3 /* Message */, "Initialize_property_0_in_the_constructor_90020", "Initialize property '{0}' in the constructor"), - Initialize_static_property_0: diag(90021, 3 /* Message */, "Initialize_static_property_0_90021", "Initialize static property '{0}'"), - Change_spelling_to_0: diag(90022, 3 /* Message */, "Change_spelling_to_0_90022", "Change spelling to '{0}'"), - Declare_method_0: diag(90023, 3 /* Message */, "Declare_method_0_90023", "Declare method '{0}'"), - Declare_static_method_0: diag(90024, 3 /* Message */, "Declare_static_method_0_90024", "Declare static method '{0}'"), - Prefix_0_with_an_underscore: diag(90025, 3 /* Message */, "Prefix_0_with_an_underscore_90025", "Prefix '{0}' with an underscore"), - Rewrite_as_the_indexed_access_type_0: diag(90026, 3 /* Message */, "Rewrite_as_the_indexed_access_type_0_90026", "Rewrite as the indexed access type '{0}'"), - Declare_static_property_0: diag(90027, 3 /* Message */, "Declare_static_property_0_90027", "Declare static property '{0}'"), - Call_decorator_expression: diag(90028, 3 /* Message */, "Call_decorator_expression_90028", "Call decorator expression"), - Add_async_modifier_to_containing_function: diag(90029, 3 /* Message */, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"), - Replace_infer_0_with_unknown: diag(90030, 3 /* Message */, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"), - Replace_all_unused_infer_with_unknown: diag(90031, 3 /* Message */, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"), - Add_parameter_name: diag(90034, 3 /* Message */, "Add_parameter_name_90034", "Add parameter name"), - Declare_private_property_0: diag(90035, 3 /* Message */, "Declare_private_property_0_90035", "Declare private property '{0}'"), - Replace_0_with_Promise_1: diag(90036, 3 /* Message */, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"), - Fix_all_incorrect_return_type_of_an_async_functions: diag(90037, 3 /* Message */, "Fix_all_incorrect_return_type_of_an_async_functions_90037", "Fix all incorrect return type of an async functions"), - Declare_private_method_0: diag(90038, 3 /* Message */, "Declare_private_method_0_90038", "Declare private method '{0}'"), - Remove_unused_destructuring_declaration: diag(90039, 3 /* Message */, "Remove_unused_destructuring_declaration_90039", "Remove unused destructuring declaration"), - Remove_unused_declarations_for_Colon_0: diag(90041, 3 /* Message */, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"), - Declare_a_private_field_named_0: diag(90053, 3 /* Message */, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."), - Includes_imports_of_types_referenced_by_0: diag(90054, 3 /* Message */, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"), - Remove_type_from_import_declaration_from_0: diag(90055, 3 /* Message */, "Remove_type_from_import_declaration_from_0_90055", `Remove 'type' from import declaration from "{0}"`), - Remove_type_from_import_of_0_from_1: diag(90056, 3 /* Message */, "Remove_type_from_import_of_0_from_1_90056", `Remove 'type' from import of '{0}' from "{1}"`), - Add_import_from_0: diag(90057, 3 /* Message */, "Add_import_from_0_90057", 'Add import from "{0}"'), - Update_import_from_0: diag(90058, 3 /* Message */, "Update_import_from_0_90058", 'Update import from "{0}"'), - Export_0_from_module_1: diag(90059, 3 /* Message */, "Export_0_from_module_1_90059", "Export '{0}' from module '{1}'"), - Export_all_referenced_locals: diag(90060, 3 /* Message */, "Export_all_referenced_locals_90060", "Export all referenced locals"), - Update_modifiers_of_0: diag(90061, 3 /* Message */, "Update_modifiers_of_0_90061", "Update modifiers of '{0}'"), - Add_annotation_of_type_0: diag(90062, 3 /* Message */, "Add_annotation_of_type_0_90062", "Add annotation of type '{0}'"), - Add_return_type_0: diag(90063, 3 /* Message */, "Add_return_type_0_90063", "Add return type '{0}'"), - Extract_base_class_to_variable: diag(90064, 3 /* Message */, "Extract_base_class_to_variable_90064", "Extract base class to variable"), - Extract_default_export_to_variable: diag(90065, 3 /* Message */, "Extract_default_export_to_variable_90065", "Extract default export to variable"), - Extract_binding_expressions_to_variable: diag(90066, 3 /* Message */, "Extract_binding_expressions_to_variable_90066", "Extract binding expressions to variable"), - Add_all_missing_type_annotations: diag(90067, 3 /* Message */, "Add_all_missing_type_annotations_90067", "Add all missing type annotations"), - Add_satisfies_and_an_inline_type_assertion_with_0: diag(90068, 3 /* Message */, "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: diag(90069, 3 /* Message */, "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: diag(90070, 3 /* Message */, "Mark_array_literal_as_const_90070", "Mark array literal as const"), - Annotate_types_of_properties_expando_function_in_a_namespace: diag(90071, 3 /* Message */, "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: diag(95001, 3 /* Message */, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"), - Convert_0_to_1_in_0: diag(95003, 3 /* Message */, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"), - Extract_to_0_in_1: diag(95004, 3 /* Message */, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"), - Extract_function: diag(95005, 3 /* Message */, "Extract_function_95005", "Extract function"), - Extract_constant: diag(95006, 3 /* Message */, "Extract_constant_95006", "Extract constant"), - Extract_to_0_in_enclosing_scope: diag(95007, 3 /* Message */, "Extract_to_0_in_enclosing_scope_95007", "Extract to {0} in enclosing scope"), - Extract_to_0_in_1_scope: diag(95008, 3 /* Message */, "Extract_to_0_in_1_scope_95008", "Extract to {0} in {1} scope"), - Annotate_with_type_from_JSDoc: diag(95009, 3 /* Message */, "Annotate_with_type_from_JSDoc_95009", "Annotate with type from JSDoc"), - Infer_type_of_0_from_usage: diag(95011, 3 /* Message */, "Infer_type_of_0_from_usage_95011", "Infer type of '{0}' from usage"), - Infer_parameter_types_from_usage: diag(95012, 3 /* Message */, "Infer_parameter_types_from_usage_95012", "Infer parameter types from usage"), - Convert_to_default_import: diag(95013, 3 /* Message */, "Convert_to_default_import_95013", "Convert to default import"), - Install_0: diag(95014, 3 /* Message */, "Install_0_95014", "Install '{0}'"), - Replace_import_with_0: diag(95015, 3 /* Message */, "Replace_import_with_0_95015", "Replace import with '{0}'."), - Use_synthetic_default_member: diag(95016, 3 /* Message */, "Use_synthetic_default_member_95016", "Use synthetic 'default' member."), - Convert_to_ES_module: diag(95017, 3 /* Message */, "Convert_to_ES_module_95017", "Convert to ES module"), - Add_undefined_type_to_property_0: diag(95018, 3 /* Message */, "Add_undefined_type_to_property_0_95018", "Add 'undefined' type to property '{0}'"), - Add_initializer_to_property_0: diag(95019, 3 /* Message */, "Add_initializer_to_property_0_95019", "Add initializer to property '{0}'"), - Add_definite_assignment_assertion_to_property_0: diag(95020, 3 /* Message */, "Add_definite_assignment_assertion_to_property_0_95020", "Add definite assignment assertion to property '{0}'"), - Convert_all_type_literals_to_mapped_type: diag(95021, 3 /* Message */, "Convert_all_type_literals_to_mapped_type_95021", "Convert all type literals to mapped type"), - Add_all_missing_members: diag(95022, 3 /* Message */, "Add_all_missing_members_95022", "Add all missing members"), - Infer_all_types_from_usage: diag(95023, 3 /* Message */, "Infer_all_types_from_usage_95023", "Infer all types from usage"), - Delete_all_unused_declarations: diag(95024, 3 /* Message */, "Delete_all_unused_declarations_95024", "Delete all unused declarations"), - Prefix_all_unused_declarations_with_where_possible: diag(95025, 3 /* Message */, "Prefix_all_unused_declarations_with_where_possible_95025", "Prefix all unused declarations with '_' where possible"), - Fix_all_detected_spelling_errors: diag(95026, 3 /* Message */, "Fix_all_detected_spelling_errors_95026", "Fix all detected spelling errors"), - Add_initializers_to_all_uninitialized_properties: diag(95027, 3 /* Message */, "Add_initializers_to_all_uninitialized_properties_95027", "Add initializers to all uninitialized properties"), - Add_definite_assignment_assertions_to_all_uninitialized_properties: diag(95028, 3 /* Message */, "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028", "Add definite assignment assertions to all uninitialized properties"), - Add_undefined_type_to_all_uninitialized_properties: diag(95029, 3 /* Message */, "Add_undefined_type_to_all_uninitialized_properties_95029", "Add undefined type to all uninitialized properties"), - Change_all_jsdoc_style_types_to_TypeScript: diag(95030, 3 /* Message */, "Change_all_jsdoc_style_types_to_TypeScript_95030", "Change all jsdoc-style types to TypeScript"), - Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types: diag(95031, 3 /* Message */, "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031", "Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"), - Implement_all_unimplemented_interfaces: diag(95032, 3 /* Message */, "Implement_all_unimplemented_interfaces_95032", "Implement all unimplemented interfaces"), - Install_all_missing_types_packages: diag(95033, 3 /* Message */, "Install_all_missing_types_packages_95033", "Install all missing types packages"), - Rewrite_all_as_indexed_access_types: diag(95034, 3 /* Message */, "Rewrite_all_as_indexed_access_types_95034", "Rewrite all as indexed access types"), - Convert_all_to_default_imports: diag(95035, 3 /* Message */, "Convert_all_to_default_imports_95035", "Convert all to default imports"), - Make_all_super_calls_the_first_statement_in_their_constructor: diag(95036, 3 /* Message */, "Make_all_super_calls_the_first_statement_in_their_constructor_95036", "Make all 'super()' calls the first statement in their constructor"), - Add_qualifier_to_all_unresolved_variables_matching_a_member_name: diag(95037, 3 /* Message */, "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037", "Add qualifier to all unresolved variables matching a member name"), - Change_all_extended_interfaces_to_implements: diag(95038, 3 /* Message */, "Change_all_extended_interfaces_to_implements_95038", "Change all extended interfaces to 'implements'"), - Add_all_missing_super_calls: diag(95039, 3 /* Message */, "Add_all_missing_super_calls_95039", "Add all missing super calls"), - Implement_all_inherited_abstract_classes: diag(95040, 3 /* Message */, "Implement_all_inherited_abstract_classes_95040", "Implement all inherited abstract classes"), - Add_all_missing_async_modifiers: diag(95041, 3 /* Message */, "Add_all_missing_async_modifiers_95041", "Add all missing 'async' modifiers"), - Add_ts_ignore_to_all_error_messages: diag(95042, 3 /* Message */, "Add_ts_ignore_to_all_error_messages_95042", "Add '@ts-ignore' to all error messages"), - Annotate_everything_with_types_from_JSDoc: diag(95043, 3 /* Message */, "Annotate_everything_with_types_from_JSDoc_95043", "Annotate everything with types from JSDoc"), - Add_to_all_uncalled_decorators: diag(95044, 3 /* Message */, "Add_to_all_uncalled_decorators_95044", "Add '()' to all uncalled decorators"), - Convert_all_constructor_functions_to_classes: diag(95045, 3 /* Message */, "Convert_all_constructor_functions_to_classes_95045", "Convert all constructor functions to classes"), - Generate_get_and_set_accessors: diag(95046, 3 /* Message */, "Generate_get_and_set_accessors_95046", "Generate 'get' and 'set' accessors"), - Convert_require_to_import: diag(95047, 3 /* Message */, "Convert_require_to_import_95047", "Convert 'require' to 'import'"), - Convert_all_require_to_import: diag(95048, 3 /* Message */, "Convert_all_require_to_import_95048", "Convert all 'require' to 'import'"), - Move_to_a_new_file: diag(95049, 3 /* Message */, "Move_to_a_new_file_95049", "Move to a new file"), - Remove_unreachable_code: diag(95050, 3 /* Message */, "Remove_unreachable_code_95050", "Remove unreachable code"), - Remove_all_unreachable_code: diag(95051, 3 /* Message */, "Remove_all_unreachable_code_95051", "Remove all unreachable code"), - Add_missing_typeof: diag(95052, 3 /* Message */, "Add_missing_typeof_95052", "Add missing 'typeof'"), - Remove_unused_label: diag(95053, 3 /* Message */, "Remove_unused_label_95053", "Remove unused label"), - Remove_all_unused_labels: diag(95054, 3 /* Message */, "Remove_all_unused_labels_95054", "Remove all unused labels"), - Convert_0_to_mapped_object_type: diag(95055, 3 /* Message */, "Convert_0_to_mapped_object_type_95055", "Convert '{0}' to mapped object type"), - Convert_namespace_import_to_named_imports: diag(95056, 3 /* Message */, "Convert_namespace_import_to_named_imports_95056", "Convert namespace import to named imports"), - Convert_named_imports_to_namespace_import: diag(95057, 3 /* Message */, "Convert_named_imports_to_namespace_import_95057", "Convert named imports to namespace import"), - Add_or_remove_braces_in_an_arrow_function: diag(95058, 3 /* Message */, "Add_or_remove_braces_in_an_arrow_function_95058", "Add or remove braces in an arrow function"), - Add_braces_to_arrow_function: diag(95059, 3 /* Message */, "Add_braces_to_arrow_function_95059", "Add braces to arrow function"), - Remove_braces_from_arrow_function: diag(95060, 3 /* Message */, "Remove_braces_from_arrow_function_95060", "Remove braces from arrow function"), - Convert_default_export_to_named_export: diag(95061, 3 /* Message */, "Convert_default_export_to_named_export_95061", "Convert default export to named export"), - Convert_named_export_to_default_export: diag(95062, 3 /* Message */, "Convert_named_export_to_default_export_95062", "Convert named export to default export"), - Add_missing_enum_member_0: diag(95063, 3 /* Message */, "Add_missing_enum_member_0_95063", "Add missing enum member '{0}'"), - Add_all_missing_imports: diag(95064, 3 /* Message */, "Add_all_missing_imports_95064", "Add all missing imports"), - Convert_to_async_function: diag(95065, 3 /* Message */, "Convert_to_async_function_95065", "Convert to async function"), - Convert_all_to_async_functions: diag(95066, 3 /* Message */, "Convert_all_to_async_functions_95066", "Convert all to async functions"), - Add_missing_call_parentheses: diag(95067, 3 /* Message */, "Add_missing_call_parentheses_95067", "Add missing call parentheses"), - Add_all_missing_call_parentheses: diag(95068, 3 /* Message */, "Add_all_missing_call_parentheses_95068", "Add all missing call parentheses"), - Add_unknown_conversion_for_non_overlapping_types: diag(95069, 3 /* Message */, "Add_unknown_conversion_for_non_overlapping_types_95069", "Add 'unknown' conversion for non-overlapping types"), - Add_unknown_to_all_conversions_of_non_overlapping_types: diag(95070, 3 /* Message */, "Add_unknown_to_all_conversions_of_non_overlapping_types_95070", "Add 'unknown' to all conversions of non-overlapping types"), - Add_missing_new_operator_to_call: diag(95071, 3 /* Message */, "Add_missing_new_operator_to_call_95071", "Add missing 'new' operator to call"), - Add_missing_new_operator_to_all_calls: diag(95072, 3 /* Message */, "Add_missing_new_operator_to_all_calls_95072", "Add missing 'new' operator to all calls"), - Add_names_to_all_parameters_without_names: diag(95073, 3 /* Message */, "Add_names_to_all_parameters_without_names_95073", "Add names to all parameters without names"), - Enable_the_experimentalDecorators_option_in_your_configuration_file: diag(95074, 3 /* Message */, "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074", "Enable the 'experimentalDecorators' option in your configuration file"), - Convert_parameters_to_destructured_object: diag(95075, 3 /* Message */, "Convert_parameters_to_destructured_object_95075", "Convert parameters to destructured object"), - Extract_type: diag(95077, 3 /* Message */, "Extract_type_95077", "Extract type"), - Extract_to_type_alias: diag(95078, 3 /* Message */, "Extract_to_type_alias_95078", "Extract to type alias"), - Extract_to_typedef: diag(95079, 3 /* Message */, "Extract_to_typedef_95079", "Extract to typedef"), - Infer_this_type_of_0_from_usage: diag(95080, 3 /* Message */, "Infer_this_type_of_0_from_usage_95080", "Infer 'this' type of '{0}' from usage"), - Add_const_to_unresolved_variable: diag(95081, 3 /* Message */, "Add_const_to_unresolved_variable_95081", "Add 'const' to unresolved variable"), - Add_const_to_all_unresolved_variables: diag(95082, 3 /* Message */, "Add_const_to_all_unresolved_variables_95082", "Add 'const' to all unresolved variables"), - Add_await: diag(95083, 3 /* Message */, "Add_await_95083", "Add 'await'"), - Add_await_to_initializer_for_0: diag(95084, 3 /* Message */, "Add_await_to_initializer_for_0_95084", "Add 'await' to initializer for '{0}'"), - Fix_all_expressions_possibly_missing_await: diag(95085, 3 /* Message */, "Fix_all_expressions_possibly_missing_await_95085", "Fix all expressions possibly missing 'await'"), - Remove_unnecessary_await: diag(95086, 3 /* Message */, "Remove_unnecessary_await_95086", "Remove unnecessary 'await'"), - Remove_all_unnecessary_uses_of_await: diag(95087, 3 /* Message */, "Remove_all_unnecessary_uses_of_await_95087", "Remove all unnecessary uses of 'await'"), - Enable_the_jsx_flag_in_your_configuration_file: diag(95088, 3 /* Message */, "Enable_the_jsx_flag_in_your_configuration_file_95088", "Enable the '--jsx' flag in your configuration file"), - Add_await_to_initializers: diag(95089, 3 /* Message */, "Add_await_to_initializers_95089", "Add 'await' to initializers"), - Extract_to_interface: diag(95090, 3 /* Message */, "Extract_to_interface_95090", "Extract to interface"), - Convert_to_a_bigint_numeric_literal: diag(95091, 3 /* Message */, "Convert_to_a_bigint_numeric_literal_95091", "Convert to a bigint numeric literal"), - Convert_all_to_bigint_numeric_literals: diag(95092, 3 /* Message */, "Convert_all_to_bigint_numeric_literals_95092", "Convert all to bigint numeric literals"), - Convert_const_to_let: diag(95093, 3 /* Message */, "Convert_const_to_let_95093", "Convert 'const' to 'let'"), - Prefix_with_declare: diag(95094, 3 /* Message */, "Prefix_with_declare_95094", "Prefix with 'declare'"), - Prefix_all_incorrect_property_declarations_with_declare: diag(95095, 3 /* Message */, "Prefix_all_incorrect_property_declarations_with_declare_95095", "Prefix all incorrect property declarations with 'declare'"), - Convert_to_template_string: diag(95096, 3 /* Message */, "Convert_to_template_string_95096", "Convert to template string"), - Add_export_to_make_this_file_into_a_module: diag(95097, 3 /* Message */, "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: diag(95098, 3 /* Message */, "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: diag(95099, 3 /* Message */, "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: diag(95100, 3 /* Message */, "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: diag(95101, 3 /* Message */, "Convert_all_invalid_characters_to_HTML_entity_code_95101", "Convert all invalid characters to HTML entity code"), - Convert_all_const_to_let: diag(95102, 3 /* Message */, "Convert_all_const_to_let_95102", "Convert all 'const' to 'let'"), - Convert_function_expression_0_to_arrow_function: diag(95105, 3 /* Message */, "Convert_function_expression_0_to_arrow_function_95105", "Convert function expression '{0}' to arrow function"), - Convert_function_declaration_0_to_arrow_function: diag(95106, 3 /* Message */, "Convert_function_declaration_0_to_arrow_function_95106", "Convert function declaration '{0}' to arrow function"), - Fix_all_implicit_this_errors: diag(95107, 3 /* Message */, "Fix_all_implicit_this_errors_95107", "Fix all implicit-'this' errors"), - Wrap_invalid_character_in_an_expression_container: diag(95108, 3 /* Message */, "Wrap_invalid_character_in_an_expression_container_95108", "Wrap invalid character in an expression container"), - Wrap_all_invalid_characters_in_an_expression_container: diag(95109, 3 /* Message */, "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: diag(95110, 3 /* Message */, "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: diag(95111, 3 /* Message */, "Add_a_return_statement_95111", "Add a return statement"), - Remove_braces_from_arrow_function_body: diag(95112, 3 /* Message */, "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: diag(95113, 3 /* Message */, "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: diag(95114, 3 /* Message */, "Add_all_missing_return_statement_95114", "Add all missing return statement"), - Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: diag(95115, 3 /* Message */, "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: diag(95116, 3 /* Message */, "Wrap_all_object_literal_with_parentheses_95116", "Wrap all object literal with parentheses"), - Move_labeled_tuple_element_modifiers_to_labels: diag(95117, 3 /* Message */, "Move_labeled_tuple_element_modifiers_to_labels_95117", "Move labeled tuple element modifiers to labels"), - Convert_overload_list_to_single_signature: diag(95118, 3 /* Message */, "Convert_overload_list_to_single_signature_95118", "Convert overload list to single signature"), - Generate_get_and_set_accessors_for_all_overriding_properties: diag(95119, 3 /* Message */, "Generate_get_and_set_accessors_for_all_overriding_properties_95119", "Generate 'get' and 'set' accessors for all overriding properties"), - Wrap_in_JSX_fragment: diag(95120, 3 /* Message */, "Wrap_in_JSX_fragment_95120", "Wrap in JSX fragment"), - Wrap_all_unparented_JSX_in_JSX_fragment: diag(95121, 3 /* Message */, "Wrap_all_unparented_JSX_in_JSX_fragment_95121", "Wrap all unparented JSX in JSX fragment"), - Convert_arrow_function_or_function_expression: diag(95122, 3 /* Message */, "Convert_arrow_function_or_function_expression_95122", "Convert arrow function or function expression"), - Convert_to_anonymous_function: diag(95123, 3 /* Message */, "Convert_to_anonymous_function_95123", "Convert to anonymous function"), - Convert_to_named_function: diag(95124, 3 /* Message */, "Convert_to_named_function_95124", "Convert to named function"), - Convert_to_arrow_function: diag(95125, 3 /* Message */, "Convert_to_arrow_function_95125", "Convert to arrow function"), - Remove_parentheses: diag(95126, 3 /* Message */, "Remove_parentheses_95126", "Remove parentheses"), - Could_not_find_a_containing_arrow_function: diag(95127, 3 /* Message */, "Could_not_find_a_containing_arrow_function_95127", "Could not find a containing arrow function"), - Containing_function_is_not_an_arrow_function: diag(95128, 3 /* Message */, "Containing_function_is_not_an_arrow_function_95128", "Containing function is not an arrow function"), - Could_not_find_export_statement: diag(95129, 3 /* Message */, "Could_not_find_export_statement_95129", "Could not find export statement"), - This_file_already_has_a_default_export: diag(95130, 3 /* Message */, "This_file_already_has_a_default_export_95130", "This file already has a default export"), - Could_not_find_import_clause: diag(95131, 3 /* Message */, "Could_not_find_import_clause_95131", "Could not find import clause"), - Could_not_find_namespace_import_or_named_imports: diag(95132, 3 /* Message */, "Could_not_find_namespace_import_or_named_imports_95132", "Could not find namespace import or named imports"), - Selection_is_not_a_valid_type_node: diag(95133, 3 /* Message */, "Selection_is_not_a_valid_type_node_95133", "Selection is not a valid type node"), - No_type_could_be_extracted_from_this_type_node: diag(95134, 3 /* Message */, "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: diag(95135, 3 /* Message */, "Could_not_find_property_for_which_to_generate_accessor_95135", "Could not find property for which to generate accessor"), - Name_is_not_valid: diag(95136, 3 /* Message */, "Name_is_not_valid_95136", "Name is not valid"), - Can_only_convert_property_with_modifier: diag(95137, 3 /* Message */, "Can_only_convert_property_with_modifier_95137", "Can only convert property with modifier"), - Switch_each_misused_0_to_1: diag(95138, 3 /* Message */, "Switch_each_misused_0_to_1_95138", "Switch each misused '{0}' to '{1}'"), - Convert_to_optional_chain_expression: diag(95139, 3 /* Message */, "Convert_to_optional_chain_expression_95139", "Convert to optional chain expression"), - Could_not_find_convertible_access_expression: diag(95140, 3 /* Message */, "Could_not_find_convertible_access_expression_95140", "Could not find convertible access expression"), - Could_not_find_matching_access_expressions: diag(95141, 3 /* Message */, "Could_not_find_matching_access_expressions_95141", "Could not find matching access expressions"), - Can_only_convert_logical_AND_access_chains: diag(95142, 3 /* Message */, "Can_only_convert_logical_AND_access_chains_95142", "Can only convert logical AND access chains"), - Add_void_to_Promise_resolved_without_a_value: diag(95143, 3 /* Message */, "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: diag(95144, 3 /* Message */, "Add_void_to_all_Promises_resolved_without_a_value_95144", "Add 'void' to all Promises resolved without a value"), - Use_element_access_for_0: diag(95145, 3 /* Message */, "Use_element_access_for_0_95145", "Use element access for '{0}'"), - Use_element_access_for_all_undeclared_properties: diag(95146, 3 /* Message */, "Use_element_access_for_all_undeclared_properties_95146", "Use element access for all undeclared properties."), - Delete_all_unused_imports: diag(95147, 3 /* Message */, "Delete_all_unused_imports_95147", "Delete all unused imports"), - Infer_function_return_type: diag(95148, 3 /* Message */, "Infer_function_return_type_95148", "Infer function return type"), - Return_type_must_be_inferred_from_a_function: diag(95149, 3 /* Message */, "Return_type_must_be_inferred_from_a_function_95149", "Return type must be inferred from a function"), - Could_not_determine_function_return_type: diag(95150, 3 /* Message */, "Could_not_determine_function_return_type_95150", "Could not determine function return type"), - Could_not_convert_to_arrow_function: diag(95151, 3 /* Message */, "Could_not_convert_to_arrow_function_95151", "Could not convert to arrow function"), - Could_not_convert_to_named_function: diag(95152, 3 /* Message */, "Could_not_convert_to_named_function_95152", "Could not convert to named function"), - Could_not_convert_to_anonymous_function: diag(95153, 3 /* Message */, "Could_not_convert_to_anonymous_function_95153", "Could not convert to anonymous function"), - Can_only_convert_string_concatenations_and_string_literals: diag(95154, 3 /* Message */, "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: diag(95155, 3 /* Message */, "Selection_is_not_a_valid_statement_or_statements_95155", "Selection is not a valid statement or statements"), - Add_missing_function_declaration_0: diag(95156, 3 /* Message */, "Add_missing_function_declaration_0_95156", "Add missing function declaration '{0}'"), - Add_all_missing_function_declarations: diag(95157, 3 /* Message */, "Add_all_missing_function_declarations_95157", "Add all missing function declarations"), - Method_not_implemented: diag(95158, 3 /* Message */, "Method_not_implemented_95158", "Method not implemented."), - Function_not_implemented: diag(95159, 3 /* Message */, "Function_not_implemented_95159", "Function not implemented."), - Add_override_modifier: diag(95160, 3 /* Message */, "Add_override_modifier_95160", "Add 'override' modifier"), - Remove_override_modifier: diag(95161, 3 /* Message */, "Remove_override_modifier_95161", "Remove 'override' modifier"), - Add_all_missing_override_modifiers: diag(95162, 3 /* Message */, "Add_all_missing_override_modifiers_95162", "Add all missing 'override' modifiers"), - Remove_all_unnecessary_override_modifiers: diag(95163, 3 /* Message */, "Remove_all_unnecessary_override_modifiers_95163", "Remove all unnecessary 'override' modifiers"), - Can_only_convert_named_export: diag(95164, 3 /* Message */, "Can_only_convert_named_export_95164", "Can only convert named export"), - Add_missing_properties: diag(95165, 3 /* Message */, "Add_missing_properties_95165", "Add missing properties"), - Add_all_missing_properties: diag(95166, 3 /* Message */, "Add_all_missing_properties_95166", "Add all missing properties"), - Add_missing_attributes: diag(95167, 3 /* Message */, "Add_missing_attributes_95167", "Add missing attributes"), - Add_all_missing_attributes: diag(95168, 3 /* Message */, "Add_all_missing_attributes_95168", "Add all missing attributes"), - Add_undefined_to_optional_property_type: diag(95169, 3 /* Message */, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"), - Convert_named_imports_to_default_import: diag(95170, 3 /* Message */, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"), - Delete_unused_param_tag_0: diag(95171, 3 /* Message */, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"), - Delete_all_unused_param_tags: diag(95172, 3 /* Message */, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"), - Rename_param_tag_name_0_to_1: diag(95173, 3 /* Message */, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"), - Use_0: diag(95174, 3 /* Message */, "Use_0_95174", "Use `{0}`."), - Use_Number_isNaN_in_all_conditions: diag(95175, 3 /* Message */, "Use_Number_isNaN_in_all_conditions_95175", "Use `Number.isNaN` in all conditions."), - Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."), - Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), - Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), - Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), - Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), - Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), - Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), - Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), - Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), - Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), - Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), - Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), - Add_missing_parameter_to_0: diag(95188, 3 /* Message */, "Add_missing_parameter_to_0_95188", "Add missing parameter to '{0}'"), - Add_missing_parameters_to_0: diag(95189, 3 /* Message */, "Add_missing_parameters_to_0_95189", "Add missing parameters to '{0}'"), - Add_all_missing_parameters: diag(95190, 3 /* Message */, "Add_all_missing_parameters_95190", "Add all missing parameters"), - Add_optional_parameter_to_0: diag(95191, 3 /* Message */, "Add_optional_parameter_to_0_95191", "Add optional parameter to '{0}'"), - Add_optional_parameters_to_0: diag(95192, 3 /* Message */, "Add_optional_parameters_to_0_95192", "Add optional parameters to '{0}'"), - Add_all_optional_parameters: diag(95193, 3 /* Message */, "Add_all_optional_parameters_95193", "Add all optional parameters"), - Wrap_in_parentheses: diag(95194, 3 /* Message */, "Wrap_in_parentheses_95194", "Wrap in parentheses"), - Wrap_all_invalid_decorator_expressions_in_parentheses: diag(95195, 3 /* Message */, "Wrap_all_invalid_decorator_expressions_in_parentheses_95195", "Wrap all invalid decorator expressions in parentheses"), - Add_resolution_mode_import_attribute: diag(95196, 3 /* Message */, "Add_resolution_mode_import_attribute_95196", "Add 'resolution-mode' import attribute"), - Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it: diag(95197, 3 /* Message */, "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: diag(18004, 1 /* Error */, "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: diag(18006, 1 /* Error */, "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: diag(18007, 1 /* Error */, "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: diag(18009, 1 /* Error */, "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: diag(18010, 1 /* Error */, "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: diag(18011, 1 /* Error */, "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: diag(18012, 1 /* Error */, "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: diag(18013, 1 /* Error */, "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: diag(18014, 1 /* Error */, "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: diag(18015, 1 /* Error */, "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: diag(18016, 1 /* Error */, "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: diag(18017, 1 /* Error */, "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: diag(18018, 1 /* Error */, "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: diag(18019, 1 /* Error */, "_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: diag(18024, 1 /* Error */, "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: diag(18026, 1 /* Error */, "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: diag(18027, 1 /* Error */, "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: diag(18028, 1 /* Error */, "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: diag(18029, 1 /* Error */, "Private_identifiers_are_not_allowed_in_variable_declarations_18029", "Private identifiers are not allowed in variable declarations."), - An_optional_chain_cannot_contain_private_identifiers: diag(18030, 1 /* Error */, "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: diag(18031, 1 /* Error */, "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: diag(18032, 1 /* Error */, "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: diag(18033, 1 /* Error */, "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: diag(18034, 3 /* Message */, "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: diag(18035, 1 /* Error */, "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: diag(18036, 1 /* Error */, "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: diag(18037, 1 /* Error */, "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: diag(18038, 1 /* Error */, "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: diag(18039, 1 /* Error */, "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: diag(18041, 1 /* Error */, "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: diag(18042, 1 /* Error */, "_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: diag(18043, 1 /* Error */, "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043", "Types cannot appear in export declarations in JavaScript files."), - _0_is_automatically_exported_here: diag(18044, 3 /* Message */, "_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: diag(18045, 1 /* Error */, "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: diag(18046, 1 /* Error */, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."), - _0_is_possibly_null: diag(18047, 1 /* Error */, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."), - _0_is_possibly_undefined: diag(18048, 1 /* Error */, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."), - _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."), - The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), - Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "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: diag(18053, 1 /* Error */, "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: diag(18054, 1 /* Error */, "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: diag(18055, 1 /* Error */, "_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: diag(18056, 1 /* Error */, "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: diag(18057, 1 /* Error */, "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'.") -}; - -// src/compiler/scanner.ts -function tokenIsIdentifierOrKeyword(token) { - return token >= 80 /* Identifier */; -} -function tokenIsIdentifierOrKeywordOrGreaterThan(token) { - return token === 32 /* GreaterThanToken */ || tokenIsIdentifierOrKeyword(token); -} -var textToKeywordObj = { - abstract: 128 /* AbstractKeyword */, - accessor: 129 /* AccessorKeyword */, - any: 133 /* AnyKeyword */, - as: 130 /* AsKeyword */, - asserts: 131 /* AssertsKeyword */, - assert: 132 /* AssertKeyword */, - bigint: 163 /* BigIntKeyword */, - boolean: 136 /* BooleanKeyword */, - break: 83 /* BreakKeyword */, - case: 84 /* CaseKeyword */, - catch: 85 /* CatchKeyword */, - class: 86 /* ClassKeyword */, - continue: 88 /* ContinueKeyword */, - const: 87 /* ConstKeyword */, - ["constructor"]: 137 /* ConstructorKeyword */, - debugger: 89 /* DebuggerKeyword */, - declare: 138 /* DeclareKeyword */, - default: 90 /* DefaultKeyword */, - delete: 91 /* DeleteKeyword */, - do: 92 /* DoKeyword */, - else: 93 /* ElseKeyword */, - enum: 94 /* EnumKeyword */, - export: 95 /* ExportKeyword */, - extends: 96 /* ExtendsKeyword */, - false: 97 /* FalseKeyword */, - finally: 98 /* FinallyKeyword */, - for: 99 /* ForKeyword */, - from: 161 /* FromKeyword */, - function: 100 /* FunctionKeyword */, - get: 139 /* GetKeyword */, - if: 101 /* IfKeyword */, - implements: 119 /* ImplementsKeyword */, - import: 102 /* ImportKeyword */, - in: 103 /* InKeyword */, - infer: 140 /* InferKeyword */, - instanceof: 104 /* InstanceOfKeyword */, - interface: 120 /* InterfaceKeyword */, - intrinsic: 141 /* IntrinsicKeyword */, - is: 142 /* IsKeyword */, - keyof: 143 /* KeyOfKeyword */, - let: 121 /* LetKeyword */, - module: 144 /* ModuleKeyword */, - namespace: 145 /* NamespaceKeyword */, - never: 146 /* NeverKeyword */, - new: 105 /* NewKeyword */, - null: 106 /* NullKeyword */, - number: 150 /* NumberKeyword */, - object: 151 /* ObjectKeyword */, - package: 122 /* PackageKeyword */, - private: 123 /* PrivateKeyword */, - protected: 124 /* ProtectedKeyword */, - public: 125 /* PublicKeyword */, - override: 164 /* OverrideKeyword */, - out: 147 /* OutKeyword */, - readonly: 148 /* ReadonlyKeyword */, - require: 149 /* RequireKeyword */, - global: 162 /* GlobalKeyword */, - return: 107 /* ReturnKeyword */, - satisfies: 152 /* SatisfiesKeyword */, - set: 153 /* SetKeyword */, - static: 126 /* StaticKeyword */, - string: 154 /* StringKeyword */, - super: 108 /* SuperKeyword */, - switch: 109 /* SwitchKeyword */, - symbol: 155 /* SymbolKeyword */, - this: 110 /* ThisKeyword */, - throw: 111 /* ThrowKeyword */, - true: 112 /* TrueKeyword */, - try: 113 /* TryKeyword */, - type: 156 /* TypeKeyword */, - typeof: 114 /* TypeOfKeyword */, - undefined: 157 /* UndefinedKeyword */, - unique: 158 /* UniqueKeyword */, - unknown: 159 /* UnknownKeyword */, - using: 160 /* UsingKeyword */, - var: 115 /* VarKeyword */, - void: 116 /* VoidKeyword */, - while: 117 /* WhileKeyword */, - with: 118 /* WithKeyword */, - yield: 127 /* YieldKeyword */, - async: 134 /* AsyncKeyword */, - await: 135 /* AwaitKeyword */, - of: 165 /* OfKeyword */ -}; -var textToKeyword = new Map(Object.entries(textToKeywordObj)); -var textToToken = new Map(Object.entries({ - ...textToKeywordObj, - "{": 19 /* OpenBraceToken */, - "}": 20 /* CloseBraceToken */, - "(": 21 /* OpenParenToken */, - ")": 22 /* CloseParenToken */, - "[": 23 /* OpenBracketToken */, - "]": 24 /* CloseBracketToken */, - ".": 25 /* DotToken */, - "...": 26 /* DotDotDotToken */, - ";": 27 /* SemicolonToken */, - ",": 28 /* CommaToken */, - "<": 30 /* LessThanToken */, - ">": 32 /* GreaterThanToken */, - "<=": 33 /* LessThanEqualsToken */, - ">=": 34 /* GreaterThanEqualsToken */, - "==": 35 /* EqualsEqualsToken */, - "!=": 36 /* ExclamationEqualsToken */, - "===": 37 /* EqualsEqualsEqualsToken */, - "!==": 38 /* ExclamationEqualsEqualsToken */, - "=>": 39 /* EqualsGreaterThanToken */, - "+": 40 /* PlusToken */, - "-": 41 /* MinusToken */, - "**": 43 /* AsteriskAsteriskToken */, - "*": 42 /* AsteriskToken */, - "/": 44 /* SlashToken */, - "%": 45 /* PercentToken */, - "++": 46 /* PlusPlusToken */, - "--": 47 /* MinusMinusToken */, - "<<": 48 /* LessThanLessThanToken */, - ">": 49 /* GreaterThanGreaterThanToken */, - ">>>": 50 /* GreaterThanGreaterThanGreaterThanToken */, - "&": 51 /* AmpersandToken */, - "|": 52 /* BarToken */, - "^": 53 /* CaretToken */, - "!": 54 /* ExclamationToken */, - "~": 55 /* TildeToken */, - "&&": 56 /* AmpersandAmpersandToken */, - "||": 57 /* BarBarToken */, - "?": 58 /* QuestionToken */, - "??": 61 /* QuestionQuestionToken */, - "?.": 29 /* QuestionDotToken */, - ":": 59 /* ColonToken */, - "=": 64 /* EqualsToken */, - "+=": 65 /* PlusEqualsToken */, - "-=": 66 /* MinusEqualsToken */, - "*=": 67 /* AsteriskEqualsToken */, - "**=": 68 /* AsteriskAsteriskEqualsToken */, - "/=": 69 /* SlashEqualsToken */, - "%=": 70 /* PercentEqualsToken */, - "<<=": 71 /* LessThanLessThanEqualsToken */, - ">>=": 72 /* GreaterThanGreaterThanEqualsToken */, - ">>>=": 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */, - "&=": 74 /* AmpersandEqualsToken */, - "|=": 75 /* BarEqualsToken */, - "^=": 79 /* CaretEqualsToken */, - "||=": 76 /* BarBarEqualsToken */, - "&&=": 77 /* AmpersandAmpersandEqualsToken */, - "??=": 78 /* QuestionQuestionEqualsToken */, - "@": 60 /* AtToken */, - "#": 63 /* HashToken */, - "`": 62 /* BacktickToken */ -})); -var charCodeToRegExpFlag = /* @__PURE__ */ new Map([ - [100 /* d */, 1 /* HasIndices */], - [103 /* g */, 2 /* Global */], - [105 /* i */, 4 /* IgnoreCase */], - [109 /* m */, 8 /* Multiline */], - [115 /* s */, 16 /* DotAll */], - [117 /* u */, 32 /* Unicode */], - [118 /* v */, 64 /* UnicodeSets */], - [121 /* y */, 128 /* Sticky */] -]); -var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([ - [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices], - [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll], - [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode], - [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets], - [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky] -]); -var unicodeES5IdentifierStart = [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]; -var unicodeES5IdentifierPart = [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]; -var unicodeESNextIdentifierStart = [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]; -var unicodeESNextIdentifierPart = [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]; -var commentDirectiveRegExSingleLine = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/; -var commentDirectiveRegExMultiLine = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/; -var jsDocSeeOrLink = /@(?:see|link)/i; -function lookupInUnicodeMap(code, map2) { - if (code < map2[0]) { - return false; - } - let lo = 0; - let hi = map2.length; - let mid; - while (lo + 1 < hi) { - mid = lo + (hi - lo) / 2; - mid -= mid % 2; - if (map2[mid] <= code && code <= map2[mid + 1]) { - return true; - } - if (code < map2[mid]) { - hi = mid; - } else { - lo = mid + 2; - } - } - return false; -} -function isUnicodeIdentifierStart(code, languageVersion) { - return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code, unicodeES5IdentifierStart); -} -function isUnicodeIdentifierPart(code, languageVersion) { - return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code, unicodeES5IdentifierPart); -} -function makeReverseMap(source) { - const result = []; - source.forEach((value, name) => { - result[value] = name; - }); - return result; -} -var tokenStrings = makeReverseMap(textToToken); -function tokenToString(t) { - return tokenStrings[t]; -} -function stringToToken(s) { - return textToToken.get(s); -} -var regExpFlagCharCodes = makeReverseMap(charCodeToRegExpFlag); -function characterCodeToRegularExpressionFlag(ch) { - return charCodeToRegExpFlag.get(ch); -} -function computeLineStarts(text) { - const result = []; - let pos = 0; - let lineStart = 0; - while (pos < text.length) { - const ch = text.charCodeAt(pos); - pos++; - switch (ch) { - case 13 /* carriageReturn */: - if (text.charCodeAt(pos) === 10 /* lineFeed */) { - pos++; - } - // falls through - case 10 /* lineFeed */: - result.push(lineStart); - lineStart = pos; - break; - default: - if (ch > 127 /* maxAsciiCharacter */ && isLineBreak(ch)) { - result.push(lineStart); - lineStart = pos; - } - break; - } - } - result.push(lineStart); - return result; -} -function getPositionOfLineAndCharacter(sourceFile, line, character, allowEdits) { - return sourceFile.getPositionOfLineAndCharacter ? sourceFile.getPositionOfLineAndCharacter(line, character, allowEdits) : computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character, sourceFile.text, allowEdits); -} -function computePositionOfLineAndCharacter(lineStarts, line, character, debugText, allowEdits) { - if (line < 0 || line >= lineStarts.length) { - if (allowEdits) { - line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line; - } else { - Debug.fail(`Bad line number. Line: ${line}, lineStarts.length: ${lineStarts.length} , line map is correct? ${debugText !== void 0 ? arrayIsEqualTo(lineStarts, computeLineStarts(debugText)) : "unknown"}`); - } - } - const res = lineStarts[line] + character; - if (allowEdits) { - return res > lineStarts[line + 1] ? lineStarts[line + 1] : typeof debugText === "string" && res > debugText.length ? debugText.length : res; - } - if (line < lineStarts.length - 1) { - Debug.assert(res < lineStarts[line + 1]); - } else if (debugText !== void 0) { - Debug.assert(res <= debugText.length); - } - return res; -} -function getLineStarts(sourceFile) { - return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text)); -} -function computeLineAndCharacterOfPosition(lineStarts, position) { - const lineNumber = computeLineOfPosition(lineStarts, position); - return { - line: lineNumber, - character: position - lineStarts[lineNumber] - }; -} -function computeLineOfPosition(lineStarts, position, lowerBound) { - let lineNumber = binarySearch(lineStarts, position, identity, compareValues, lowerBound); - if (lineNumber < 0) { - lineNumber = ~lineNumber - 1; - Debug.assert(lineNumber !== -1, "position cannot precede the beginning of the file"); - } - return lineNumber; -} -function getLinesBetweenPositions(sourceFile, pos1, pos2) { - if (pos1 === pos2) return 0; - const lineStarts = getLineStarts(sourceFile); - const lower = Math.min(pos1, pos2); - const isNegative = lower === pos2; - const upper = isNegative ? pos1 : pos2; - const lowerLine = computeLineOfPosition(lineStarts, lower); - const upperLine = computeLineOfPosition(lineStarts, upper, lowerLine); - return isNegative ? lowerLine - upperLine : upperLine - lowerLine; -} -function getLineAndCharacterOfPosition(sourceFile, position) { - return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position); -} -function isWhiteSpaceLike(ch) { - return isWhiteSpaceSingleLine(ch) || isLineBreak(ch); -} -function isWhiteSpaceSingleLine(ch) { - return ch === 32 /* space */ || ch === 9 /* tab */ || ch === 11 /* verticalTab */ || ch === 12 /* formFeed */ || ch === 160 /* nonBreakingSpace */ || ch === 133 /* nextLine */ || ch === 5760 /* ogham */ || ch >= 8192 /* enQuad */ && ch <= 8203 /* zeroWidthSpace */ || ch === 8239 /* narrowNoBreakSpace */ || ch === 8287 /* mathematicalSpace */ || ch === 12288 /* ideographicSpace */ || ch === 65279 /* byteOrderMark */; -} -function isLineBreak(ch) { - return ch === 10 /* lineFeed */ || ch === 13 /* carriageReturn */ || ch === 8232 /* lineSeparator */ || ch === 8233 /* paragraphSeparator */; -} -function isDigit(ch) { - return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; -} -function isHexDigit(ch) { - return isDigit(ch) || ch >= 65 /* A */ && ch <= 70 /* F */ || ch >= 97 /* a */ && ch <= 102 /* f */; -} -function isASCIILetter(ch) { - return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */; -} -function isWordCharacter(ch) { - return isASCIILetter(ch) || isDigit(ch) || ch === 95 /* _ */; -} -function isOctalDigit(ch) { - return ch >= 48 /* _0 */ && ch <= 55 /* _7 */; -} -function skipTrivia(text, pos, stopAfterLineBreak, stopAtComments, inJSDoc) { - if (positionIsSynthesized(pos)) { - return pos; - } - let canConsumeStar = false; - while (true) { - const ch = text.charCodeAt(pos); - switch (ch) { - case 13 /* carriageReturn */: - if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { - pos++; - } - // falls through - case 10 /* lineFeed */: - pos++; - if (stopAfterLineBreak) { - return pos; - } - canConsumeStar = !!inJSDoc; - continue; - case 9 /* tab */: - case 11 /* verticalTab */: - case 12 /* formFeed */: - case 32 /* space */: - pos++; - continue; - case 47 /* slash */: - if (stopAtComments) { - break; - } - if (text.charCodeAt(pos + 1) === 47 /* slash */) { - pos += 2; - while (pos < text.length) { - if (isLineBreak(text.charCodeAt(pos))) { - break; - } - pos++; - } - canConsumeStar = false; - continue; - } - if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { - pos += 2; - while (pos < text.length) { - if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { - pos += 2; - break; - } - pos++; - } - canConsumeStar = false; - continue; - } - break; - case 60 /* lessThan */: - case 124 /* bar */: - case 61 /* equals */: - case 62 /* greaterThan */: - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos); - canConsumeStar = false; - continue; - } - break; - case 35 /* hash */: - if (pos === 0 && isShebangTrivia(text, pos)) { - pos = scanShebangTrivia(text, pos); - canConsumeStar = false; - continue; - } - break; - case 42 /* asterisk */: - if (canConsumeStar) { - pos++; - canConsumeStar = false; - continue; - } - break; - default: - if (ch > 127 /* maxAsciiCharacter */ && isWhiteSpaceLike(ch)) { - pos++; - continue; - } - break; - } - return pos; - } -} -var mergeConflictMarkerLength = "<<<<<<<".length; -function isConflictMarkerTrivia(text, pos) { - Debug.assert(pos >= 0); - if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { - const ch = text.charCodeAt(pos); - if (pos + mergeConflictMarkerLength < text.length) { - for (let i = 0; i < mergeConflictMarkerLength; i++) { - if (text.charCodeAt(pos + i) !== ch) { - return false; - } - } - return ch === 61 /* equals */ || text.charCodeAt(pos + mergeConflictMarkerLength) === 32 /* space */; - } - } - return false; -} -function scanConflictMarkerTrivia(text, pos, error) { - if (error) { - error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); - } - const ch = text.charCodeAt(pos); - const len = text.length; - if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { - while (pos < len && !isLineBreak(text.charCodeAt(pos))) { - pos++; - } - } else { - Debug.assert(ch === 124 /* bar */ || ch === 61 /* equals */); - while (pos < len) { - const currentChar = text.charCodeAt(pos); - if ((currentChar === 61 /* equals */ || currentChar === 62 /* greaterThan */) && currentChar !== ch && isConflictMarkerTrivia(text, pos)) { - break; - } - pos++; - } - } - return pos; -} -var shebangTriviaRegex = /^#!.*/; -function isShebangTrivia(text, pos) { - Debug.assert(pos === 0); - return shebangTriviaRegex.test(text); -} -function scanShebangTrivia(text, pos) { - const shebang = shebangTriviaRegex.exec(text)[0]; - pos = pos + shebang.length; - return pos; -} -function iterateCommentRanges(reduce, text, pos, trailing, cb, state, initial) { - let pendingPos; - let pendingEnd; - let pendingKind; - let pendingHasTrailingNewLine; - let hasPendingCommentRange = false; - let collecting = trailing; - let accumulator = initial; - if (pos === 0) { - collecting = true; - const shebang = getShebang(text); - if (shebang) { - pos = shebang.length; - } - } - scan: - while (pos >= 0 && pos < text.length) { - const ch = text.charCodeAt(pos); - switch (ch) { - case 13 /* carriageReturn */: - if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { - pos++; - } - // falls through - case 10 /* lineFeed */: - pos++; - if (trailing) { - break scan; - } - collecting = true; - if (hasPendingCommentRange) { - pendingHasTrailingNewLine = true; - } - continue; - case 9 /* tab */: - case 11 /* verticalTab */: - case 12 /* formFeed */: - case 32 /* space */: - pos++; - continue; - case 47 /* slash */: - const nextChar = text.charCodeAt(pos + 1); - let hasTrailingNewLine = false; - if (nextChar === 47 /* slash */ || nextChar === 42 /* asterisk */) { - const kind = nextChar === 47 /* slash */ ? 2 /* SingleLineCommentTrivia */ : 3 /* MultiLineCommentTrivia */; - const startPos = pos; - pos += 2; - if (nextChar === 47 /* slash */) { - while (pos < text.length) { - if (isLineBreak(text.charCodeAt(pos))) { - hasTrailingNewLine = true; - break; - } - pos++; - } - } else { - while (pos < text.length) { - if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { - pos += 2; - break; - } - pos++; - } - } - if (collecting) { - if (hasPendingCommentRange) { - accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator); - if (!reduce && accumulator) { - return accumulator; - } - } - pendingPos = startPos; - pendingEnd = pos; - pendingKind = kind; - pendingHasTrailingNewLine = hasTrailingNewLine; - hasPendingCommentRange = true; - } - continue; - } - break scan; - default: - if (ch > 127 /* maxAsciiCharacter */ && isWhiteSpaceLike(ch)) { - if (hasPendingCommentRange && isLineBreak(ch)) { - pendingHasTrailingNewLine = true; - } - pos++; - continue; - } - break scan; - } - } - if (hasPendingCommentRange) { - accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator); - } - return accumulator; -} -function forEachLeadingCommentRange(text, pos, cb, state) { - return iterateCommentRanges( - /*reduce*/ - false, - text, - pos, - /*trailing*/ - false, - cb, - state - ); -} -function forEachTrailingCommentRange(text, pos, cb, state) { - return iterateCommentRanges( - /*reduce*/ - false, - text, - pos, - /*trailing*/ - true, - cb, - state - ); -} -function reduceEachLeadingCommentRange(text, pos, cb, state, initial) { - return iterateCommentRanges( - /*reduce*/ - true, - text, - pos, - /*trailing*/ - false, - cb, - state, - initial - ); -} -function reduceEachTrailingCommentRange(text, pos, cb, state, initial) { - return iterateCommentRanges( - /*reduce*/ - true, - text, - pos, - /*trailing*/ - true, - cb, - state, - initial - ); -} -function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments = []) { - comments.push({ kind, pos, end, hasTrailingNewLine }); - return comments; -} -function getLeadingCommentRanges(text, pos) { - return reduceEachLeadingCommentRange( - text, - pos, - appendCommentRange, - /*state*/ - void 0, - /*initial*/ - void 0 - ); -} -function getTrailingCommentRanges(text, pos) { - return reduceEachTrailingCommentRange( - text, - pos, - appendCommentRange, - /*state*/ - void 0, - /*initial*/ - void 0 - ); -} -function getShebang(text) { - const match = shebangTriviaRegex.exec(text); - if (match) { - return match[0]; - } -} -function isIdentifierStart(ch, languageVersion) { - return isASCIILetter(ch) || ch === 36 /* $ */ || ch === 95 /* _ */ || ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); -} -function isIdentifierPart(ch, languageVersion, identifierVariant) { - return isWordCharacter(ch) || ch === 36 /* $ */ || // "-" and ":" are valid in JSX Identifiers - (identifierVariant === 1 /* JSX */ ? ch === 45 /* minus */ || ch === 58 /* colon */ : false) || ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); -} -function isIdentifierText(name, languageVersion, identifierVariant) { - let ch = codePointAt(name, 0); - if (!isIdentifierStart(ch, languageVersion)) { - return false; - } - for (let i = charSize(ch); i < name.length; i += charSize(ch)) { - if (!isIdentifierPart(ch = codePointAt(name, i), languageVersion, identifierVariant)) { - return false; - } - } - return true; -} -function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Standard */, textInitial, onError, start, length2) { - var text = textInitial; - var pos; - var end; - var fullStartPos; - var tokenStart; - var token; - var tokenValue; - var tokenFlags; - var commentDirectives; - var skipJsDocLeadingAsterisks = 0; - var scriptKind = 0 /* Unknown */; - var jsDocParsingMode = 0 /* ParseAll */; - setText(text, start, length2); - var scanner = { - getTokenFullStart: () => fullStartPos, - getStartPos: () => fullStartPos, - getTokenEnd: () => pos, - getTextPos: () => pos, - getToken: () => token, - getTokenStart: () => tokenStart, - getTokenPos: () => tokenStart, - getTokenText: () => text.substring(tokenStart, pos), - getTokenValue: () => tokenValue, - hasUnicodeEscape: () => (tokenFlags & 1024 /* UnicodeEscape */) !== 0, - hasExtendedUnicodeEscape: () => (tokenFlags & 8 /* ExtendedUnicodeEscape */) !== 0, - hasPrecedingLineBreak: () => (tokenFlags & 1 /* PrecedingLineBreak */) !== 0, - hasPrecedingJSDocComment: () => (tokenFlags & 2 /* PrecedingJSDocComment */) !== 0, - hasPrecedingJSDocLeadingAsterisks: () => (tokenFlags & 32768 /* PrecedingJSDocLeadingAsterisks */) !== 0, - isIdentifier: () => token === 80 /* Identifier */ || token > 118 /* LastReservedWord */, - isReservedWord: () => token >= 83 /* FirstReservedWord */ && token <= 118 /* LastReservedWord */, - isUnterminated: () => (tokenFlags & 4 /* Unterminated */) !== 0, - getCommentDirectives: () => commentDirectives, - getNumericLiteralFlags: () => tokenFlags & 25584 /* NumericLiteralFlags */, - getTokenFlags: () => tokenFlags, - reScanGreaterToken, - reScanAsteriskEqualsToken, - reScanSlashToken, - reScanTemplateToken, - reScanTemplateHeadOrNoSubstitutionTemplate, - scanJsxIdentifier, - scanJsxAttributeValue, - reScanJsxAttributeValue, - reScanJsxToken, - reScanLessThanToken, - reScanHashToken, - reScanQuestionToken, - reScanInvalidIdentifier, - scanJsxToken, - scanJsDocToken, - scanJSDocCommentTextToken, - scan, - getText, - clearCommentDirectives, - setText, - setScriptTarget, - setLanguageVariant, - setScriptKind, - setJSDocParsingMode, - setOnError, - resetTokenState, - setTextPos: resetTokenState, - setSkipJsDocLeadingAsterisks, - tryScan, - lookAhead, - scanRange - }; - if (Debug.isDebugging) { - Object.defineProperty(scanner, "__debugShowCurrentPositionInText", { - get: () => { - const text2 = scanner.getText(); - return text2.slice(0, scanner.getTokenFullStart()) + "\u2551" + text2.slice(scanner.getTokenFullStart()); - } - }); - } - return scanner; - function codePointUnchecked(pos2) { - return codePointAt(text, pos2); - } - function codePointChecked(pos2) { - return pos2 >= 0 && pos2 < end ? codePointUnchecked(pos2) : -1 /* EOF */; - } - function charCodeUnchecked(pos2) { - return text.charCodeAt(pos2); - } - function charCodeChecked(pos2) { - return pos2 >= 0 && pos2 < end ? charCodeUnchecked(pos2) : -1 /* EOF */; - } - function error(message, errPos = pos, length3, arg0) { - if (onError) { - const oldPos = pos; - pos = errPos; - onError(message, length3 || 0, arg0); - pos = oldPos; - } - } - function scanNumberFragment() { - let start2 = pos; - let allowSeparator = false; - let isPreviousTokenSeparator = false; - let result = ""; - while (true) { - const ch = charCodeUnchecked(pos); - if (ch === 95 /* _ */) { - tokenFlags |= 512 /* ContainsSeparator */; - if (allowSeparator) { - allowSeparator = false; - isPreviousTokenSeparator = true; - result += text.substring(start2, pos); - } else { - tokenFlags |= 16384 /* ContainsInvalidSeparator */; - if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); - } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); - } - } - pos++; - start2 = pos; - continue; - } - if (isDigit(ch)) { - allowSeparator = true; - isPreviousTokenSeparator = false; - pos++; - continue; - } - break; - } - if (charCodeUnchecked(pos - 1) === 95 /* _ */) { - tokenFlags |= 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); - } - return result + text.substring(start2, pos); - } - function scanNumber() { - let start2 = pos; - let mainFragment; - if (charCodeUnchecked(pos) === 48 /* _0 */) { - pos++; - if (charCodeUnchecked(pos) === 95 /* _ */) { - tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */; - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); - pos--; - mainFragment = scanNumberFragment(); - } else if (!scanDigits()) { - tokenFlags |= 8192 /* ContainsLeadingZero */; - mainFragment = "" + +tokenValue; - } else if (!tokenValue) { - mainFragment = "0"; - } else { - tokenValue = "" + parseInt(tokenValue, 8); - tokenFlags |= 32 /* Octal */; - const withMinus = token === 41 /* MinusToken */; - const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8); - if (withMinus) start2--; - error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); - return 9 /* NumericLiteral */; - } - } else { - mainFragment = scanNumberFragment(); - } - let decimalFragment; - let scientificFragment; - if (charCodeUnchecked(pos) === 46 /* dot */) { - pos++; - decimalFragment = scanNumberFragment(); - } - let end2 = pos; - if (charCodeUnchecked(pos) === 69 /* E */ || charCodeUnchecked(pos) === 101 /* e */) { - pos++; - tokenFlags |= 16 /* Scientific */; - if (charCodeUnchecked(pos) === 43 /* plus */ || charCodeUnchecked(pos) === 45 /* minus */) pos++; - const preNumericPart = pos; - const finalFragment = scanNumberFragment(); - if (!finalFragment) { - error(Diagnostics.Digit_expected); - } else { - scientificFragment = text.substring(end2, preNumericPart) + finalFragment; - end2 = pos; - } - } - let result; - if (tokenFlags & 512 /* ContainsSeparator */) { - result = mainFragment; - if (decimalFragment) { - result += "." + decimalFragment; - } - if (scientificFragment) { - result += scientificFragment; - } - } else { - result = text.substring(start2, end2); - } - if (tokenFlags & 8192 /* ContainsLeadingZero */) { - error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); - tokenValue = "" + +result; - return 9 /* NumericLiteral */; - } - if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { - checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); - tokenValue = "" + +result; - return 9 /* NumericLiteral */; - } else { - tokenValue = result; - const type = checkBigIntSuffix(); - checkForIdentifierStartAfterNumericLiteral(start2); - return type; - } - } - function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { - if (!isIdentifierStart(codePointUnchecked(pos), languageVersion)) { - return; - } - const identifierStart = pos; - const { length: length3 } = scanIdentifierParts(); - if (length3 === 1 && text[identifierStart] === "n") { - if (isScientific) { - error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); - } else { - error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); - } - } else { - error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); - pos = identifierStart; - } - } - function scanDigits() { - const start2 = pos; - let isOctal = true; - while (isDigit(charCodeChecked(pos))) { - if (!isOctalDigit(charCodeUnchecked(pos))) { - isOctal = false; - } - pos++; - } - tokenValue = text.substring(start2, pos); - return isOctal; - } - function scanExactNumberOfHexDigits(count, canHaveSeparators) { - const valueString = scanHexDigits( - /*minCount*/ - count, - /*scanAsManyAsPossible*/ - false, - canHaveSeparators - ); - return valueString ? parseInt(valueString, 16) : -1; - } - function scanMinimumNumberOfHexDigits(count, canHaveSeparators) { - return scanHexDigits( - /*minCount*/ - count, - /*scanAsManyAsPossible*/ - true, - canHaveSeparators - ); - } - function scanHexDigits(minCount, scanAsManyAsPossible, canHaveSeparators) { - let valueChars = []; - let allowSeparator = false; - let isPreviousTokenSeparator = false; - while (valueChars.length < minCount || scanAsManyAsPossible) { - let ch = charCodeUnchecked(pos); - if (canHaveSeparators && ch === 95 /* _ */) { - tokenFlags |= 512 /* ContainsSeparator */; - if (allowSeparator) { - allowSeparator = false; - isPreviousTokenSeparator = true; - } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); - } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); - } - pos++; - continue; - } - allowSeparator = canHaveSeparators; - if (ch >= 65 /* A */ && ch <= 70 /* F */) { - ch += 97 /* a */ - 65 /* A */; - } else if (!(ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch >= 97 /* a */ && ch <= 102 /* f */)) { - break; - } - valueChars.push(ch); - pos++; - isPreviousTokenSeparator = false; - } - if (valueChars.length < minCount) { - valueChars = []; - } - if (charCodeUnchecked(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); - } - return String.fromCharCode(...valueChars); - } - function scanString(jsxAttributeString = false) { - const quote = charCodeUnchecked(pos); - pos++; - let result = ""; - let start2 = pos; - while (true) { - if (pos >= end) { - result += text.substring(start2, pos); - tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); - break; - } - const ch = charCodeUnchecked(pos); - if (ch === quote) { - result += text.substring(start2, pos); - pos++; - break; - } - if (ch === 92 /* backslash */ && !jsxAttributeString) { - result += text.substring(start2, pos); - result += scanEscapeSequence(1 /* String */ | 2 /* ReportErrors */); - start2 = pos; - continue; - } - if ((ch === 10 /* lineFeed */ || ch === 13 /* carriageReturn */) && !jsxAttributeString) { - result += text.substring(start2, pos); - tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_string_literal); - break; - } - pos++; - } - return result; - } - function scanTemplateAndSetTokenValue(shouldEmitInvalidEscapeError) { - const startedWithBacktick = charCodeUnchecked(pos) === 96 /* backtick */; - pos++; - let start2 = pos; - let contents = ""; - let resultingToken; - while (true) { - if (pos >= end) { - contents += text.substring(start2, pos); - tokenFlags |= 4 /* Unterminated */; - error(Diagnostics.Unterminated_template_literal); - resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; - break; - } - const currChar = charCodeUnchecked(pos); - if (currChar === 96 /* backtick */) { - contents += text.substring(start2, pos); - pos++; - resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; - break; - } - if (currChar === 36 /* $ */ && pos + 1 < end && charCodeUnchecked(pos + 1) === 123 /* openBrace */) { - contents += text.substring(start2, pos); - pos += 2; - resultingToken = startedWithBacktick ? 16 /* TemplateHead */ : 17 /* TemplateMiddle */; - break; - } - if (currChar === 92 /* backslash */) { - contents += text.substring(start2, pos); - contents += scanEscapeSequence(1 /* String */ | (shouldEmitInvalidEscapeError ? 2 /* ReportErrors */ : 0)); - start2 = pos; - continue; - } - if (currChar === 13 /* carriageReturn */) { - contents += text.substring(start2, pos); - pos++; - if (pos < end && charCodeUnchecked(pos) === 10 /* lineFeed */) { - pos++; - } - contents += "\n"; - start2 = pos; - continue; - } - pos++; - } - Debug.assert(resultingToken !== void 0); - tokenValue = contents; - return resultingToken; - } - function scanEscapeSequence(flags) { - const start2 = pos; - pos++; - if (pos >= end) { - error(Diagnostics.Unexpected_end_of_text); - return ""; - } - const ch = charCodeUnchecked(pos); - pos++; - switch (ch) { - case 48 /* _0 */: - if (pos >= end || !isDigit(charCodeUnchecked(pos))) { - return "\0"; - } - // '\01', '\011' - // falls through - case 49 /* _1 */: - case 50 /* _2 */: - case 51 /* _3 */: - if (pos < end && isOctalDigit(charCodeUnchecked(pos))) { - pos++; - } - // '\17', '\177' - // falls through - case 52 /* _4 */: - case 53 /* _5 */: - case 54 /* _6 */: - case 55 /* _7 */: - if (pos < end && isOctalDigit(charCodeUnchecked(pos))) { - pos++; - } - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - const code = parseInt(text.substring(start2 + 1, pos), 8); - if (flags & 4 /* RegularExpression */ && !(flags & 32 /* AtomEscape */) && ch !== 48 /* _0 */) { - error(Diagnostics.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, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0")); - } else { - error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0")); - } - return String.fromCharCode(code); - } - return text.substring(start2, pos); - case 56 /* _8 */: - case 57 /* _9 */: - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - if (flags & 4 /* RegularExpression */ && !(flags & 32 /* AtomEscape */)) { - error(Diagnostics.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class, start2, pos - start2); - } else { - error(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); - } - return String.fromCharCode(ch); - } - return text.substring(start2, pos); - case 98 /* b */: - return "\b"; - case 116 /* t */: - return " "; - case 110 /* n */: - return "\n"; - case 118 /* v */: - return "\v"; - case 102 /* f */: - return "\f"; - case 114 /* r */: - return "\r"; - case 39 /* singleQuote */: - return "'"; - case 34 /* doubleQuote */: - return '"'; - case 117 /* u */: - if (pos < end && charCodeUnchecked(pos) === 123 /* openBrace */) { - pos -= 2; - const result = scanExtendedUnicodeEscape(!!(flags & 6 /* ReportInvalidEscapeErrors */)); - if (!(flags & 17 /* AllowExtendedUnicodeEscape */)) { - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - error(Diagnostics.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, start2, pos - start2); - } - } - return result; - } - for (; pos < start2 + 6; pos++) { - if (!(pos < end && isHexDigit(charCodeUnchecked(pos)))) { - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - error(Diagnostics.Hexadecimal_digit_expected); - } - return text.substring(start2, pos); - } - } - tokenFlags |= 1024 /* UnicodeEscape */; - const escapedValue = parseInt(text.substring(start2 + 2, pos), 16); - const escapedValueString = String.fromCharCode(escapedValue); - if (flags & 16 /* AnyUnicodeMode */ && escapedValue >= 55296 && escapedValue <= 56319 && pos + 6 < end && text.substring(pos, pos + 2) === "\\u" && charCodeUnchecked(pos + 2) !== 123 /* openBrace */) { - const nextStart = pos; - let nextPos = pos + 2; - for (; nextPos < nextStart + 6; nextPos++) { - if (!isHexDigit(charCodeUnchecked(nextPos))) { - return escapedValueString; - } - } - const nextEscapedValue = parseInt(text.substring(nextStart + 2, nextPos), 16); - if (nextEscapedValue >= 56320 && nextEscapedValue <= 57343) { - pos = nextPos; - return escapedValueString + String.fromCharCode(nextEscapedValue); - } - } - return escapedValueString; - case 120 /* x */: - for (; pos < start2 + 4; pos++) { - if (!(pos < end && isHexDigit(charCodeUnchecked(pos)))) { - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - error(Diagnostics.Hexadecimal_digit_expected); - } - return text.substring(start2, pos); - } - } - tokenFlags |= 4096 /* HexEscape */; - return String.fromCharCode(parseInt(text.substring(start2 + 2, pos), 16)); - // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence), - // the line terminator is interpreted to be "the empty code unit sequence". - case 13 /* carriageReturn */: - if (pos < end && charCodeUnchecked(pos) === 10 /* lineFeed */) { - pos++; - } - // falls through - case 10 /* lineFeed */: - case 8232 /* lineSeparator */: - case 8233 /* paragraphSeparator */: - return ""; - default: - if (flags & 16 /* AnyUnicodeMode */ || flags & 4 /* RegularExpression */ && !(flags & 8 /* AnnexB */) && isIdentifierPart(ch, languageVersion)) { - error(Diagnostics.This_character_cannot_be_escaped_in_a_regular_expression, pos - 2, 2); - } - return String.fromCharCode(ch); - } - } - function scanExtendedUnicodeEscape(shouldEmitInvalidEscapeError) { - const start2 = pos; - pos += 3; - const escapedStart = pos; - const escapedValueString = scanMinimumNumberOfHexDigits( - 1, - /*canHaveSeparators*/ - false - ); - const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; - let isInvalidExtendedEscape = false; - if (escapedValue < 0) { - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Hexadecimal_digit_expected); - } - isInvalidExtendedEscape = true; - } else if (escapedValue > 1114111) { - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive, escapedStart, pos - escapedStart); - } - isInvalidExtendedEscape = true; - } - if (pos >= end) { - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unexpected_end_of_text); - } - isInvalidExtendedEscape = true; - } else if (charCodeUnchecked(pos) === 125 /* closeBrace */) { - pos++; - } else { - if (shouldEmitInvalidEscapeError) { - error(Diagnostics.Unterminated_Unicode_escape_sequence); - } - isInvalidExtendedEscape = true; - } - if (isInvalidExtendedEscape) { - tokenFlags |= 2048 /* ContainsInvalidEscape */; - return text.substring(start2, pos); - } - tokenFlags |= 8 /* ExtendedUnicodeEscape */; - return utf16EncodeAsString(escapedValue); - } - function peekUnicodeEscape() { - if (pos + 5 < end && charCodeUnchecked(pos + 1) === 117 /* u */) { - const start2 = pos; - pos += 2; - const value = scanExactNumberOfHexDigits( - 4, - /*canHaveSeparators*/ - false - ); - pos = start2; - return value; - } - return -1; - } - function peekExtendedUnicodeEscape() { - if (codePointUnchecked(pos + 1) === 117 /* u */ && codePointUnchecked(pos + 2) === 123 /* openBrace */) { - const start2 = pos; - pos += 3; - const escapedValueString = scanMinimumNumberOfHexDigits( - 1, - /*canHaveSeparators*/ - false - ); - const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; - pos = start2; - return escapedValue; - } - return -1; - } - function scanIdentifierParts() { - let result = ""; - let start2 = pos; - while (pos < end) { - let ch = codePointUnchecked(pos); - if (isIdentifierPart(ch, languageVersion)) { - pos += charSize(ch); - } else if (ch === 92 /* backslash */) { - ch = peekExtendedUnicodeEscape(); - if (ch >= 0 && isIdentifierPart(ch, languageVersion)) { - result += scanExtendedUnicodeEscape( - /*shouldEmitInvalidEscapeError*/ - true - ); - start2 = pos; - continue; - } - ch = peekUnicodeEscape(); - if (!(ch >= 0 && isIdentifierPart(ch, languageVersion))) { - break; - } - tokenFlags |= 1024 /* UnicodeEscape */; - result += text.substring(start2, pos); - result += utf16EncodeAsString(ch); - pos += 6; - start2 = pos; - } else { - break; - } - } - result += text.substring(start2, pos); - return result; - } - function getIdentifierToken() { - const len = tokenValue.length; - if (len >= 2 && len <= 12) { - const ch = tokenValue.charCodeAt(0); - if (ch >= 97 /* a */ && ch <= 122 /* z */) { - const keyword = textToKeyword.get(tokenValue); - if (keyword !== void 0) { - return token = keyword; - } - } - } - return token = 80 /* Identifier */; - } - function scanBinaryOrOctalDigits(base) { - let value = ""; - let separatorAllowed = false; - let isPreviousTokenSeparator = false; - while (true) { - const ch = charCodeUnchecked(pos); - if (ch === 95 /* _ */) { - tokenFlags |= 512 /* ContainsSeparator */; - if (separatorAllowed) { - separatorAllowed = false; - isPreviousTokenSeparator = true; - } else if (isPreviousTokenSeparator) { - error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); - } else { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); - } - pos++; - continue; - } - separatorAllowed = true; - if (!isDigit(ch) || ch - 48 /* _0 */ >= base) { - break; - } - value += text[pos]; - pos++; - isPreviousTokenSeparator = false; - } - if (charCodeUnchecked(pos - 1) === 95 /* _ */) { - error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); - } - return value; - } - function checkBigIntSuffix() { - if (charCodeUnchecked(pos) === 110 /* n */) { - tokenValue += "n"; - if (tokenFlags & 384 /* BinaryOrOctalSpecifier */) { - tokenValue = parsePseudoBigInt(tokenValue) + "n"; - } - pos++; - return 10 /* BigIntLiteral */; - } else { - const numericValue = tokenFlags & 128 /* BinarySpecifier */ ? parseInt(tokenValue.slice(2), 2) : tokenFlags & 256 /* OctalSpecifier */ ? parseInt(tokenValue.slice(2), 8) : +tokenValue; - tokenValue = "" + numericValue; - return 9 /* NumericLiteral */; - } - } - function scan() { - fullStartPos = pos; - tokenFlags = 0 /* None */; - while (true) { - tokenStart = pos; - if (pos >= end) { - return token = 1 /* EndOfFileToken */; - } - const ch = codePointUnchecked(pos); - if (pos === 0) { - if (ch === 35 /* hash */ && isShebangTrivia(text, pos)) { - pos = scanShebangTrivia(text, pos); - if (skipTrivia2) { - continue; - } else { - return token = 6 /* ShebangTrivia */; - } - } - } - switch (ch) { - case 10 /* lineFeed */: - case 13 /* carriageReturn */: - tokenFlags |= 1 /* PrecedingLineBreak */; - if (skipTrivia2) { - pos++; - continue; - } else { - if (ch === 13 /* carriageReturn */ && pos + 1 < end && charCodeUnchecked(pos + 1) === 10 /* lineFeed */) { - pos += 2; - } else { - pos++; - } - return token = 4 /* NewLineTrivia */; - } - case 9 /* tab */: - case 11 /* verticalTab */: - case 12 /* formFeed */: - case 32 /* space */: - case 160 /* nonBreakingSpace */: - case 5760 /* ogham */: - case 8192 /* enQuad */: - case 8193 /* emQuad */: - case 8194 /* enSpace */: - case 8195 /* emSpace */: - case 8196 /* threePerEmSpace */: - case 8197 /* fourPerEmSpace */: - case 8198 /* sixPerEmSpace */: - case 8199 /* figureSpace */: - case 8200 /* punctuationSpace */: - case 8201 /* thinSpace */: - case 8202 /* hairSpace */: - case 8203 /* zeroWidthSpace */: - case 8239 /* narrowNoBreakSpace */: - case 8287 /* mathematicalSpace */: - case 12288 /* ideographicSpace */: - case 65279 /* byteOrderMark */: - if (skipTrivia2) { - pos++; - continue; - } else { - while (pos < end && isWhiteSpaceSingleLine(charCodeUnchecked(pos))) { - pos++; - } - return token = 5 /* WhitespaceTrivia */; - } - case 33 /* exclamation */: - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */; - } - return pos += 2, token = 36 /* ExclamationEqualsToken */; - } - pos++; - return token = 54 /* ExclamationToken */; - case 34 /* doubleQuote */: - case 39 /* singleQuote */: - tokenValue = scanString(); - return token = 11 /* StringLiteral */; - case 96 /* backtick */: - return token = scanTemplateAndSetTokenValue( - /*shouldEmitInvalidEscapeError*/ - false - ); - case 37 /* percent */: - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 70 /* PercentEqualsToken */; - } - pos++; - return token = 45 /* PercentToken */; - case 38 /* ampersand */: - if (charCodeUnchecked(pos + 1) === 38 /* ampersand */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 77 /* AmpersandAmpersandEqualsToken */; - } - return pos += 2, token = 56 /* AmpersandAmpersandToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 74 /* AmpersandEqualsToken */; - } - pos++; - return token = 51 /* AmpersandToken */; - case 40 /* openParen */: - pos++; - return token = 21 /* OpenParenToken */; - case 41 /* closeParen */: - pos++; - return token = 22 /* CloseParenToken */; - case 42 /* asterisk */: - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 67 /* AsteriskEqualsToken */; - } - if (charCodeUnchecked(pos + 1) === 42 /* asterisk */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 68 /* AsteriskAsteriskEqualsToken */; - } - return pos += 2, token = 43 /* AsteriskAsteriskToken */; - } - pos++; - if (skipJsDocLeadingAsterisks && (tokenFlags & 32768 /* PrecedingJSDocLeadingAsterisks */) === 0 && tokenFlags & 1 /* PrecedingLineBreak */) { - tokenFlags |= 32768 /* PrecedingJSDocLeadingAsterisks */; - continue; - } - return token = 42 /* AsteriskToken */; - case 43 /* plus */: - if (charCodeUnchecked(pos + 1) === 43 /* plus */) { - return pos += 2, token = 46 /* PlusPlusToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 65 /* PlusEqualsToken */; - } - pos++; - return token = 40 /* PlusToken */; - case 44 /* comma */: - pos++; - return token = 28 /* CommaToken */; - case 45 /* minus */: - if (charCodeUnchecked(pos + 1) === 45 /* minus */) { - return pos += 2, token = 47 /* MinusMinusToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 66 /* MinusEqualsToken */; - } - pos++; - return token = 41 /* MinusToken */; - case 46 /* dot */: - if (isDigit(charCodeUnchecked(pos + 1))) { - scanNumber(); - return token = 9 /* NumericLiteral */; - } - if (charCodeUnchecked(pos + 1) === 46 /* dot */ && charCodeUnchecked(pos + 2) === 46 /* dot */) { - return pos += 3, token = 26 /* DotDotDotToken */; - } - pos++; - return token = 25 /* DotToken */; - case 47 /* slash */: - if (charCodeUnchecked(pos + 1) === 47 /* slash */) { - pos += 2; - while (pos < end) { - if (isLineBreak(charCodeUnchecked(pos))) { - break; - } - pos++; - } - commentDirectives = appendIfCommentDirective( - commentDirectives, - text.slice(tokenStart, pos), - commentDirectiveRegExSingleLine, - tokenStart - ); - if (skipTrivia2) { - continue; - } else { - return token = 2 /* SingleLineCommentTrivia */; - } - } - if (charCodeUnchecked(pos + 1) === 42 /* asterisk */) { - pos += 2; - const isJSDoc2 = charCodeUnchecked(pos) === 42 /* asterisk */ && charCodeUnchecked(pos + 1) !== 47 /* slash */; - let commentClosed = false; - let lastLineStart = tokenStart; - while (pos < end) { - const ch2 = charCodeUnchecked(pos); - if (ch2 === 42 /* asterisk */ && charCodeUnchecked(pos + 1) === 47 /* slash */) { - pos += 2; - commentClosed = true; - break; - } - pos++; - if (isLineBreak(ch2)) { - lastLineStart = pos; - tokenFlags |= 1 /* PrecedingLineBreak */; - } - } - if (isJSDoc2 && shouldParseJSDoc()) { - tokenFlags |= 2 /* PrecedingJSDocComment */; - } - commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart); - if (!commentClosed) { - error(Diagnostics.Asterisk_Slash_expected); - } - if (skipTrivia2) { - continue; - } else { - if (!commentClosed) { - tokenFlags |= 4 /* Unterminated */; - } - return token = 3 /* MultiLineCommentTrivia */; - } - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 69 /* SlashEqualsToken */; - } - pos++; - return token = 44 /* SlashToken */; - case 48 /* _0 */: - if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 88 /* X */ || charCodeUnchecked(pos + 1) === 120 /* x */)) { - pos += 2; - tokenValue = scanMinimumNumberOfHexDigits( - 1, - /*canHaveSeparators*/ - true - ); - if (!tokenValue) { - error(Diagnostics.Hexadecimal_digit_expected); - tokenValue = "0"; - } - tokenValue = "0x" + tokenValue; - tokenFlags |= 64 /* HexSpecifier */; - return token = checkBigIntSuffix(); - } else if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 66 /* B */ || charCodeUnchecked(pos + 1) === 98 /* b */)) { - pos += 2; - tokenValue = scanBinaryOrOctalDigits( - /* base */ - 2 - ); - if (!tokenValue) { - error(Diagnostics.Binary_digit_expected); - tokenValue = "0"; - } - tokenValue = "0b" + tokenValue; - tokenFlags |= 128 /* BinarySpecifier */; - return token = checkBigIntSuffix(); - } else if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 79 /* O */ || charCodeUnchecked(pos + 1) === 111 /* o */)) { - pos += 2; - tokenValue = scanBinaryOrOctalDigits( - /* base */ - 8 - ); - if (!tokenValue) { - error(Diagnostics.Octal_digit_expected); - tokenValue = "0"; - } - tokenValue = "0o" + tokenValue; - tokenFlags |= 256 /* OctalSpecifier */; - return token = checkBigIntSuffix(); - } - // falls through - case 49 /* _1 */: - case 50 /* _2 */: - case 51 /* _3 */: - case 52 /* _4 */: - case 53 /* _5 */: - case 54 /* _6 */: - case 55 /* _7 */: - case 56 /* _8 */: - case 57 /* _9 */: - return token = scanNumber(); - case 58 /* colon */: - pos++; - return token = 59 /* ColonToken */; - case 59 /* semicolon */: - pos++; - return token = 27 /* SemicolonToken */; - case 60 /* lessThan */: - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); - if (skipTrivia2) { - continue; - } else { - return token = 7 /* ConflictMarkerTrivia */; - } - } - if (charCodeUnchecked(pos + 1) === 60 /* lessThan */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 71 /* LessThanLessThanEqualsToken */; - } - return pos += 2, token = 48 /* LessThanLessThanToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 33 /* LessThanEqualsToken */; - } - if (languageVariant === 1 /* JSX */ && charCodeUnchecked(pos + 1) === 47 /* slash */ && charCodeUnchecked(pos + 2) !== 42 /* asterisk */) { - return pos += 2, token = 31 /* LessThanSlashToken */; - } - pos++; - return token = 30 /* LessThanToken */; - case 61 /* equals */: - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); - if (skipTrivia2) { - continue; - } else { - return token = 7 /* ConflictMarkerTrivia */; - } - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 37 /* EqualsEqualsEqualsToken */; - } - return pos += 2, token = 35 /* EqualsEqualsToken */; - } - if (charCodeUnchecked(pos + 1) === 62 /* greaterThan */) { - return pos += 2, token = 39 /* EqualsGreaterThanToken */; - } - pos++; - return token = 64 /* EqualsToken */; - case 62 /* greaterThan */: - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); - if (skipTrivia2) { - continue; - } else { - return token = 7 /* ConflictMarkerTrivia */; - } - } - pos++; - return token = 32 /* GreaterThanToken */; - case 63 /* question */: - if (charCodeUnchecked(pos + 1) === 46 /* dot */ && !isDigit(charCodeUnchecked(pos + 2))) { - return pos += 2, token = 29 /* QuestionDotToken */; - } - if (charCodeUnchecked(pos + 1) === 63 /* question */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 78 /* QuestionQuestionEqualsToken */; - } - return pos += 2, token = 61 /* QuestionQuestionToken */; - } - pos++; - return token = 58 /* QuestionToken */; - case 91 /* openBracket */: - pos++; - return token = 23 /* OpenBracketToken */; - case 93 /* closeBracket */: - pos++; - return token = 24 /* CloseBracketToken */; - case 94 /* caret */: - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 79 /* CaretEqualsToken */; - } - pos++; - return token = 53 /* CaretToken */; - case 123 /* openBrace */: - pos++; - return token = 19 /* OpenBraceToken */; - case 124 /* bar */: - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); - if (skipTrivia2) { - continue; - } else { - return token = 7 /* ConflictMarkerTrivia */; - } - } - if (charCodeUnchecked(pos + 1) === 124 /* bar */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 76 /* BarBarEqualsToken */; - } - return pos += 2, token = 57 /* BarBarToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 75 /* BarEqualsToken */; - } - pos++; - return token = 52 /* BarToken */; - case 125 /* closeBrace */: - pos++; - return token = 20 /* CloseBraceToken */; - case 126 /* tilde */: - pos++; - return token = 55 /* TildeToken */; - case 64 /* at */: - pos++; - return token = 60 /* AtToken */; - case 92 /* backslash */: - const extendedCookedChar = peekExtendedUnicodeEscape(); - if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - tokenValue = scanExtendedUnicodeEscape( - /*shouldEmitInvalidEscapeError*/ - true - ) + scanIdentifierParts(); - return token = getIdentifierToken(); - } - const cookedChar = peekUnicodeEscape(); - if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) { - pos += 6; - tokenFlags |= 1024 /* UnicodeEscape */; - tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); - return token = getIdentifierToken(); - } - error(Diagnostics.Invalid_character); - pos++; - return token = 0 /* Unknown */; - case 35 /* hash */: - if (pos !== 0 && text[pos + 1] === "!") { - error(Diagnostics.can_only_be_used_at_the_start_of_a_file, pos, 2); - pos++; - return token = 0 /* Unknown */; - } - const charAfterHash = codePointUnchecked(pos + 1); - if (charAfterHash === 92 /* backslash */) { - pos++; - const extendedCookedChar2 = peekExtendedUnicodeEscape(); - if (extendedCookedChar2 >= 0 && isIdentifierStart(extendedCookedChar2, languageVersion)) { - tokenValue = "#" + scanExtendedUnicodeEscape( - /*shouldEmitInvalidEscapeError*/ - true - ) + scanIdentifierParts(); - return token = 81 /* PrivateIdentifier */; - } - const cookedChar2 = peekUnicodeEscape(); - if (cookedChar2 >= 0 && isIdentifierStart(cookedChar2, languageVersion)) { - pos += 6; - tokenFlags |= 1024 /* UnicodeEscape */; - tokenValue = "#" + String.fromCharCode(cookedChar2) + scanIdentifierParts(); - return token = 81 /* PrivateIdentifier */; - } - pos--; - } - if (isIdentifierStart(charAfterHash, languageVersion)) { - pos++; - scanIdentifier(charAfterHash, languageVersion); - } else { - tokenValue = "#"; - error(Diagnostics.Invalid_character, pos++, charSize(ch)); - } - return token = 81 /* PrivateIdentifier */; - case 65533 /* replacementCharacter */: - error(Diagnostics.File_appears_to_be_binary, 0, 0); - pos = end; - return token = 8 /* NonTextFileMarkerTrivia */; - default: - const identifierKind = scanIdentifier(ch, languageVersion); - if (identifierKind) { - return token = identifierKind; - } else if (isWhiteSpaceSingleLine(ch)) { - pos += charSize(ch); - continue; - } else if (isLineBreak(ch)) { - tokenFlags |= 1 /* PrecedingLineBreak */; - pos += charSize(ch); - continue; - } - const size = charSize(ch); - error(Diagnostics.Invalid_character, pos, size); - pos += size; - return token = 0 /* Unknown */; - } - } - } - function shouldParseJSDoc() { - switch (jsDocParsingMode) { - case 0 /* ParseAll */: - return true; - case 1 /* ParseNone */: - return false; - } - if (scriptKind !== 3 /* TS */ && scriptKind !== 4 /* TSX */) { - return true; - } - if (jsDocParsingMode === 3 /* ParseForTypeInfo */) { - return false; - } - return jsDocSeeOrLink.test(text.slice(fullStartPos, pos)); - } - function reScanInvalidIdentifier() { - Debug.assert(token === 0 /* Unknown */, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."); - pos = tokenStart = fullStartPos; - tokenFlags = 0; - const ch = codePointUnchecked(pos); - const identifierKind = scanIdentifier(ch, 99 /* ESNext */); - if (identifierKind) { - return token = identifierKind; - } - pos += charSize(ch); - return token; - } - function scanIdentifier(startCharacter, languageVersion2) { - let ch = startCharacter; - if (isIdentifierStart(ch, languageVersion2)) { - pos += charSize(ch); - while (pos < end && isIdentifierPart(ch = codePointUnchecked(pos), languageVersion2)) pos += charSize(ch); - tokenValue = text.substring(tokenStart, pos); - if (ch === 92 /* backslash */) { - tokenValue += scanIdentifierParts(); - } - return getIdentifierToken(); - } - } - function reScanGreaterToken() { - if (token === 32 /* GreaterThanToken */) { - if (charCodeUnchecked(pos) === 62 /* greaterThan */) { - if (charCodeUnchecked(pos + 1) === 62 /* greaterThan */) { - if (charCodeUnchecked(pos + 2) === 61 /* equals */) { - return pos += 3, token = 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */; - } - return pos += 2, token = 50 /* GreaterThanGreaterThanGreaterThanToken */; - } - if (charCodeUnchecked(pos + 1) === 61 /* equals */) { - return pos += 2, token = 72 /* GreaterThanGreaterThanEqualsToken */; - } - pos++; - return token = 49 /* GreaterThanGreaterThanToken */; - } - if (charCodeUnchecked(pos) === 61 /* equals */) { - pos++; - return token = 34 /* GreaterThanEqualsToken */; - } - } - return token; - } - function reScanAsteriskEqualsToken() { - Debug.assert(token === 67 /* AsteriskEqualsToken */, "'reScanAsteriskEqualsToken' should only be called on a '*='"); - pos = tokenStart + 1; - return token = 64 /* EqualsToken */; - } - function reScanSlashToken(reportErrors2) { - if (token === 44 /* SlashToken */ || token === 69 /* SlashEqualsToken */) { - const startOfRegExpBody = tokenStart + 1; - pos = startOfRegExpBody; - let inEscape = false; - let namedCaptureGroups = false; - let inCharacterClass = false; - while (true) { - const ch = charCodeChecked(pos); - if (ch === -1 /* EOF */ || isLineBreak(ch)) { - tokenFlags |= 4 /* Unterminated */; - break; - } - if (inEscape) { - inEscape = false; - } else if (ch === 47 /* slash */ && !inCharacterClass) { - break; - } else if (ch === 91 /* openBracket */) { - inCharacterClass = true; - } else if (ch === 92 /* backslash */) { - inEscape = true; - } else if (ch === 93 /* closeBracket */) { - inCharacterClass = false; - } else if (!inCharacterClass && ch === 40 /* openParen */ && charCodeChecked(pos + 1) === 63 /* question */ && charCodeChecked(pos + 2) === 60 /* lessThan */ && charCodeChecked(pos + 3) !== 61 /* equals */ && charCodeChecked(pos + 3) !== 33 /* exclamation */) { - namedCaptureGroups = true; - } - pos++; - } - const endOfRegExpBody = pos; - if (tokenFlags & 4 /* Unterminated */) { - pos = startOfRegExpBody; - inEscape = false; - let characterClassDepth = 0; - let inDecimalQuantifier = false; - let groupDepth = 0; - while (pos < endOfRegExpBody) { - const ch = charCodeUnchecked(pos); - if (inEscape) { - inEscape = false; - } else if (ch === 92 /* backslash */) { - inEscape = true; - } else if (ch === 91 /* openBracket */) { - characterClassDepth++; - } else if (ch === 93 /* closeBracket */ && characterClassDepth) { - characterClassDepth--; - } else if (!characterClassDepth) { - if (ch === 123 /* openBrace */) { - inDecimalQuantifier = true; - } else if (ch === 125 /* closeBrace */ && inDecimalQuantifier) { - inDecimalQuantifier = false; - } else if (!inDecimalQuantifier) { - if (ch === 40 /* openParen */) { - groupDepth++; - } else if (ch === 41 /* closeParen */ && groupDepth) { - groupDepth--; - } else if (ch === 41 /* closeParen */ || ch === 93 /* closeBracket */ || ch === 125 /* closeBrace */) { - break; - } - } - } - pos++; - } - while (isWhiteSpaceLike(charCodeChecked(pos - 1)) || charCodeChecked(pos - 1) === 59 /* semicolon */) pos--; - error(Diagnostics.Unterminated_regular_expression_literal, tokenStart, pos - tokenStart); - } else { - pos++; - let regExpFlags = 0 /* None */; - while (true) { - const ch = codePointChecked(pos); - if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { - break; - } - const size = charSize(ch); - if (reportErrors2) { - const flag = characterCodeToRegularExpressionFlag(ch); - if (flag === void 0) { - error(Diagnostics.Unknown_regular_expression_flag, pos, size); - } else if (regExpFlags & flag) { - error(Diagnostics.Duplicate_regular_expression_flag, pos, size); - } else if (((regExpFlags | flag) & 96 /* AnyUnicodeMode */) === 96 /* AnyUnicodeMode */) { - error(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos, size); - } else { - regExpFlags |= flag; - checkRegularExpressionFlagAvailability(flag, size); - } - } - pos += size; - } - if (reportErrors2) { - scanRange(startOfRegExpBody, endOfRegExpBody - startOfRegExpBody, () => { - scanRegularExpressionWorker( - regExpFlags, - /*annexB*/ - true, - namedCaptureGroups - ); - }); - } - } - tokenValue = text.substring(tokenStart, pos); - token = 14 /* RegularExpressionLiteral */; - } - return token; - } - function scanRegularExpressionWorker(regExpFlags, annexB, namedCaptureGroups) { - var unicodeSetsMode = !!(regExpFlags & 64 /* UnicodeSets */); - var anyUnicodeMode = !!(regExpFlags & 96 /* AnyUnicodeMode */); - var anyUnicodeModeOrNonAnnexB = anyUnicodeMode || !annexB; - var mayContainStrings = false; - var numberOfCapturingGroups = 0; - var groupSpecifiers; - var groupNameReferences; - var decimalEscapes; - var namedCapturingGroupsScopeStack = []; - var topNamedCapturingGroupsScope; - function scanDisjunction(isInGroup) { - while (true) { - namedCapturingGroupsScopeStack.push(topNamedCapturingGroupsScope); - topNamedCapturingGroupsScope = void 0; - scanAlternative(isInGroup); - topNamedCapturingGroupsScope = namedCapturingGroupsScopeStack.pop(); - if (charCodeChecked(pos) !== 124 /* bar */) { - return; - } - pos++; - } - } - function scanAlternative(isInGroup) { - let isPreviousTermQuantifiable = false; - while (true) { - const start2 = pos; - const ch = charCodeChecked(pos); - switch (ch) { - case -1 /* EOF */: - return; - case 94 /* caret */: - case 36 /* $ */: - pos++; - isPreviousTermQuantifiable = false; - break; - case 92 /* backslash */: - pos++; - switch (charCodeChecked(pos)) { - case 98 /* b */: - case 66 /* B */: - pos++; - isPreviousTermQuantifiable = false; - break; - default: - scanAtomEscape(); - isPreviousTermQuantifiable = true; - break; - } - break; - case 40 /* openParen */: - pos++; - if (charCodeChecked(pos) === 63 /* question */) { - pos++; - switch (charCodeChecked(pos)) { - case 61 /* equals */: - case 33 /* exclamation */: - pos++; - isPreviousTermQuantifiable = !anyUnicodeModeOrNonAnnexB; - break; - case 60 /* lessThan */: - const groupNameStart = pos; - pos++; - switch (charCodeChecked(pos)) { - case 61 /* equals */: - case 33 /* exclamation */: - pos++; - isPreviousTermQuantifiable = false; - break; - default: - scanGroupName( - /*isReference*/ - false - ); - scanExpectedChar(62 /* greaterThan */); - if (languageVersion < 5 /* ES2018 */) { - error(Diagnostics.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later, groupNameStart, pos - groupNameStart); - } - numberOfCapturingGroups++; - isPreviousTermQuantifiable = true; - break; - } - break; - default: - const start3 = pos; - const setFlags = scanPatternModifiers(0 /* None */); - if (charCodeChecked(pos) === 45 /* minus */) { - pos++; - scanPatternModifiers(setFlags); - if (pos === start3 + 1) { - error(Diagnostics.Subpattern_flags_must_be_present_when_there_is_a_minus_sign, start3, pos - start3); - } - } - scanExpectedChar(58 /* colon */); - isPreviousTermQuantifiable = true; - break; - } - } else { - numberOfCapturingGroups++; - isPreviousTermQuantifiable = true; - } - scanDisjunction( - /*isInGroup*/ - true - ); - scanExpectedChar(41 /* closeParen */); - break; - case 123 /* openBrace */: - pos++; - const digitsStart = pos; - scanDigits(); - const min2 = tokenValue; - if (!anyUnicodeModeOrNonAnnexB && !min2) { - isPreviousTermQuantifiable = true; - break; - } - if (charCodeChecked(pos) === 44 /* comma */) { - pos++; - scanDigits(); - const max = tokenValue; - if (!min2) { - if (max || charCodeChecked(pos) === 125 /* closeBrace */) { - error(Diagnostics.Incomplete_quantifier_Digit_expected, digitsStart, 0); - } else { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start2, 1, String.fromCharCode(ch)); - isPreviousTermQuantifiable = true; - break; - } - } else if (max && Number.parseInt(min2) > Number.parseInt(max) && (anyUnicodeModeOrNonAnnexB || charCodeChecked(pos) === 125 /* closeBrace */)) { - error(Diagnostics.Numbers_out_of_order_in_quantifier, digitsStart, pos - digitsStart); - } - } else if (!min2) { - if (anyUnicodeModeOrNonAnnexB) { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start2, 1, String.fromCharCode(ch)); - } - isPreviousTermQuantifiable = true; - break; - } - if (charCodeChecked(pos) !== 125 /* closeBrace */) { - if (anyUnicodeModeOrNonAnnexB) { - error(Diagnostics._0_expected, pos, 0, String.fromCharCode(125 /* closeBrace */)); - pos--; - } else { - isPreviousTermQuantifiable = true; - break; - } - } - // falls through - case 42 /* asterisk */: - case 43 /* plus */: - case 63 /* question */: - pos++; - if (charCodeChecked(pos) === 63 /* question */) { - pos++; - } - if (!isPreviousTermQuantifiable) { - error(Diagnostics.There_is_nothing_available_for_repetition, start2, pos - start2); - } - isPreviousTermQuantifiable = false; - break; - case 46 /* dot */: - pos++; - isPreviousTermQuantifiable = true; - break; - case 91 /* openBracket */: - pos++; - if (unicodeSetsMode) { - scanClassSetExpression(); - } else { - scanClassRanges(); - } - scanExpectedChar(93 /* closeBracket */); - isPreviousTermQuantifiable = true; - break; - case 41 /* closeParen */: - if (isInGroup) { - return; - } - // falls through - case 93 /* closeBracket */: - case 125 /* closeBrace */: - if (anyUnicodeModeOrNonAnnexB || ch === 41 /* closeParen */) { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); - } - pos++; - isPreviousTermQuantifiable = true; - break; - case 47 /* slash */: - case 124 /* bar */: - return; - default: - scanSourceCharacter(); - isPreviousTermQuantifiable = true; - break; - } - } - } - function scanPatternModifiers(currFlags) { - while (true) { - const ch = codePointChecked(pos); - if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { - break; - } - const size = charSize(ch); - const flag = characterCodeToRegularExpressionFlag(ch); - if (flag === void 0) { - error(Diagnostics.Unknown_regular_expression_flag, pos, size); - } else if (currFlags & flag) { - error(Diagnostics.Duplicate_regular_expression_flag, pos, size); - } else if (!(flag & 28 /* Modifiers */)) { - error(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, size); - } else { - currFlags |= flag; - checkRegularExpressionFlagAvailability(flag, size); - } - pos += size; - } - return currFlags; - } - function scanAtomEscape() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); - switch (charCodeChecked(pos)) { - case 107 /* k */: - pos++; - if (charCodeChecked(pos) === 60 /* lessThan */) { - pos++; - scanGroupName( - /*isReference*/ - true - ); - scanExpectedChar(62 /* greaterThan */); - } else if (anyUnicodeModeOrNonAnnexB || namedCaptureGroups) { - error(Diagnostics.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets, pos - 2, 2); - } - break; - case 113 /* q */: - if (unicodeSetsMode) { - pos++; - error(Diagnostics.q_is_only_available_inside_character_class, pos - 2, 2); - break; - } - // falls through - default: - Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape( - /*atomEscape*/ - true - )); - break; - } - } - function scanDecimalEscape() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); - const ch = charCodeChecked(pos); - if (ch >= 49 /* _1 */ && ch <= 57 /* _9 */) { - const start2 = pos; - scanDigits(); - decimalEscapes = append(decimalEscapes, { pos: start2, end: pos, value: +tokenValue }); - return true; - } - return false; - } - function scanCharacterEscape(atomEscape) { - Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); - let ch = charCodeChecked(pos); - switch (ch) { - case -1 /* EOF */: - error(Diagnostics.Undetermined_character_escape, pos - 1, 1); - return "\\"; - case 99 /* c */: - pos++; - ch = charCodeChecked(pos); - if (isASCIILetter(ch)) { - pos++; - return String.fromCharCode(ch & 31); - } - if (anyUnicodeModeOrNonAnnexB) { - error(Diagnostics.c_must_be_followed_by_an_ASCII_letter, pos - 2, 2); - } else if (atomEscape) { - pos--; - return "\\"; - } - return String.fromCharCode(ch); - case 94 /* caret */: - case 36 /* $ */: - case 47 /* slash */: - case 92 /* backslash */: - case 46 /* dot */: - case 42 /* asterisk */: - case 43 /* plus */: - case 63 /* question */: - case 40 /* openParen */: - case 41 /* closeParen */: - case 91 /* openBracket */: - case 93 /* closeBracket */: - case 123 /* openBrace */: - case 125 /* closeBrace */: - case 124 /* bar */: - pos++; - return String.fromCharCode(ch); - default: - pos--; - return scanEscapeSequence( - 4 /* RegularExpression */ | (annexB ? 8 /* AnnexB */ : 0) | (anyUnicodeMode ? 16 /* AnyUnicodeMode */ : 0) | (atomEscape ? 32 /* AtomEscape */ : 0) - ); - } - } - function scanGroupName(isReference) { - Debug.assertEqual(charCodeUnchecked(pos - 1), 60 /* lessThan */); - tokenStart = pos; - scanIdentifier(codePointChecked(pos), languageVersion); - if (pos === tokenStart) { - error(Diagnostics.Expected_a_capturing_group_name); - } else if (isReference) { - groupNameReferences = append(groupNameReferences, { pos: tokenStart, end: pos, name: tokenValue }); - } else if ((topNamedCapturingGroupsScope == null ? void 0 : topNamedCapturingGroupsScope.has(tokenValue)) || namedCapturingGroupsScopeStack.some((group2) => group2 == null ? void 0 : group2.has(tokenValue))) { - error(Diagnostics.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other, tokenStart, pos - tokenStart); - } else { - topNamedCapturingGroupsScope ?? (topNamedCapturingGroupsScope = /* @__PURE__ */ new Set()); - topNamedCapturingGroupsScope.add(tokenValue); - groupSpecifiers ?? (groupSpecifiers = /* @__PURE__ */ new Set()); - groupSpecifiers.add(tokenValue); - } - } - function isClassContentExit(ch) { - return ch === 93 /* closeBracket */ || ch === -1 /* EOF */ || pos >= end; - } - function scanClassRanges() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 91 /* openBracket */); - if (charCodeChecked(pos) === 94 /* caret */) { - pos++; - } - while (true) { - const ch = charCodeChecked(pos); - if (isClassContentExit(ch)) { - return; - } - const minStart = pos; - const minCharacter = scanClassAtom(); - if (charCodeChecked(pos) === 45 /* minus */) { - pos++; - const ch2 = charCodeChecked(pos); - if (isClassContentExit(ch2)) { - return; - } - if (!minCharacter && anyUnicodeModeOrNonAnnexB) { - error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, minStart, pos - 1 - minStart); - } - const maxStart = pos; - const maxCharacter = scanClassAtom(); - if (!maxCharacter && anyUnicodeModeOrNonAnnexB) { - error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, maxStart, pos - maxStart); - continue; - } - if (!minCharacter) { - continue; - } - const minCharacterValue = codePointAt(minCharacter, 0); - const maxCharacterValue = codePointAt(maxCharacter, 0); - if (minCharacter.length === charSize(minCharacterValue) && maxCharacter.length === charSize(maxCharacterValue) && minCharacterValue > maxCharacterValue) { - error(Diagnostics.Range_out_of_order_in_character_class, minStart, pos - minStart); - } - } - } - } - function scanClassSetExpression() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 91 /* openBracket */); - let isCharacterComplement = false; - if (charCodeChecked(pos) === 94 /* caret */) { - pos++; - isCharacterComplement = true; - } - let expressionMayContainStrings = false; - let ch = charCodeChecked(pos); - if (isClassContentExit(ch)) { - return; - } - let start2 = pos; - let operand; - switch (text.slice(pos, pos + 2)) { - // TODO: don't use slice - case "--": - case "&&": - error(Diagnostics.Expected_a_class_set_operand); - mayContainStrings = false; - break; - default: - operand = scanClassSetOperand(); - break; - } - switch (charCodeChecked(pos)) { - case 45 /* minus */: - if (charCodeChecked(pos + 1) === 45 /* minus */) { - if (isCharacterComplement && mayContainStrings) { - error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); - } - expressionMayContainStrings = mayContainStrings; - scanClassSetSubExpression(3 /* ClassSubtraction */); - mayContainStrings = !isCharacterComplement && expressionMayContainStrings; - return; - } - break; - case 38 /* ampersand */: - if (charCodeChecked(pos + 1) === 38 /* ampersand */) { - scanClassSetSubExpression(2 /* ClassIntersection */); - if (isCharacterComplement && mayContainStrings) { - error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); - } - expressionMayContainStrings = mayContainStrings; - mayContainStrings = !isCharacterComplement && expressionMayContainStrings; - return; - } else { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); - } - break; - default: - if (isCharacterComplement && mayContainStrings) { - error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); - } - expressionMayContainStrings = mayContainStrings; - break; - } - while (true) { - ch = charCodeChecked(pos); - if (ch === -1 /* EOF */) { - break; - } - switch (ch) { - case 45 /* minus */: - pos++; - ch = charCodeChecked(pos); - if (isClassContentExit(ch)) { - mayContainStrings = !isCharacterComplement && expressionMayContainStrings; - return; - } - if (ch === 45 /* minus */) { - pos++; - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); - start2 = pos - 2; - operand = text.slice(start2, pos); - continue; - } else { - if (!operand) { - error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, start2, pos - 1 - start2); - } - const secondStart = pos; - const secondOperand = scanClassSetOperand(); - if (isCharacterComplement && mayContainStrings) { - error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, secondStart, pos - secondStart); - } - expressionMayContainStrings || (expressionMayContainStrings = mayContainStrings); - if (!secondOperand) { - error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, secondStart, pos - secondStart); - break; - } - if (!operand) { - break; - } - const minCharacterValue = codePointAt(operand, 0); - const maxCharacterValue = codePointAt(secondOperand, 0); - if (operand.length === charSize(minCharacterValue) && secondOperand.length === charSize(maxCharacterValue) && minCharacterValue > maxCharacterValue) { - error(Diagnostics.Range_out_of_order_in_character_class, start2, pos - start2); - } - } - break; - case 38 /* ampersand */: - start2 = pos; - pos++; - if (charCodeChecked(pos) === 38 /* ampersand */) { - pos++; - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); - if (charCodeChecked(pos) === 38 /* ampersand */) { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); - pos++; - } - } else { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); - } - operand = text.slice(start2, pos); - continue; - } - if (isClassContentExit(charCodeChecked(pos))) { - break; - } - start2 = pos; - switch (text.slice(pos, pos + 2)) { - // TODO: don't use slice - case "--": - case "&&": - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos, 2); - pos += 2; - operand = text.slice(start2, pos); - break; - default: - operand = scanClassSetOperand(); - break; - } - } - mayContainStrings = !isCharacterComplement && expressionMayContainStrings; - } - function scanClassSetSubExpression(expressionType) { - let expressionMayContainStrings = mayContainStrings; - while (true) { - let ch = charCodeChecked(pos); - if (isClassContentExit(ch)) { - break; - } - switch (ch) { - case 45 /* minus */: - pos++; - if (charCodeChecked(pos) === 45 /* minus */) { - pos++; - if (expressionType !== 3 /* ClassSubtraction */) { - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); - } - } else { - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 1, 1); - } - break; - case 38 /* ampersand */: - pos++; - if (charCodeChecked(pos) === 38 /* ampersand */) { - pos++; - if (expressionType !== 2 /* ClassIntersection */) { - error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); - } - if (charCodeChecked(pos) === 38 /* ampersand */) { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); - pos++; - } - } else { - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); - } - break; - default: - switch (expressionType) { - case 3 /* ClassSubtraction */: - error(Diagnostics._0_expected, pos, 0, "--"); - break; - case 2 /* ClassIntersection */: - error(Diagnostics._0_expected, pos, 0, "&&"); - break; - default: - break; - } - break; - } - ch = charCodeChecked(pos); - if (isClassContentExit(ch)) { - error(Diagnostics.Expected_a_class_set_operand); - break; - } - scanClassSetOperand(); - expressionMayContainStrings && (expressionMayContainStrings = mayContainStrings); - } - mayContainStrings = expressionMayContainStrings; - } - function scanClassSetOperand() { - mayContainStrings = false; - switch (charCodeChecked(pos)) { - case -1 /* EOF */: - return ""; - case 91 /* openBracket */: - pos++; - scanClassSetExpression(); - scanExpectedChar(93 /* closeBracket */); - return ""; - case 92 /* backslash */: - pos++; - if (scanCharacterClassEscape()) { - return ""; - } else if (charCodeChecked(pos) === 113 /* q */) { - pos++; - if (charCodeChecked(pos) === 123 /* openBrace */) { - pos++; - scanClassStringDisjunctionContents(); - scanExpectedChar(125 /* closeBrace */); - return ""; - } else { - error(Diagnostics.q_must_be_followed_by_string_alternatives_enclosed_in_braces, pos - 2, 2); - return "q"; - } - } - pos--; - // falls through - default: - return scanClassSetCharacter(); - } - } - function scanClassStringDisjunctionContents() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 123 /* openBrace */); - let characterCount = 0; - while (true) { - const ch = charCodeChecked(pos); - switch (ch) { - case -1 /* EOF */: - return; - case 125 /* closeBrace */: - if (characterCount !== 1) { - mayContainStrings = true; - } - return; - case 124 /* bar */: - if (characterCount !== 1) { - mayContainStrings = true; - } - pos++; - start = pos; - characterCount = 0; - break; - default: - scanClassSetCharacter(); - characterCount++; - break; - } - } - } - function scanClassSetCharacter() { - const ch = charCodeChecked(pos); - if (ch === -1 /* EOF */) { - return ""; - } - if (ch === 92 /* backslash */) { - pos++; - const ch2 = charCodeChecked(pos); - switch (ch2) { - case 98 /* b */: - pos++; - return "\b"; - case 38 /* ampersand */: - case 45 /* minus */: - case 33 /* exclamation */: - case 35 /* hash */: - case 37 /* percent */: - case 44 /* comma */: - case 58 /* colon */: - case 59 /* semicolon */: - case 60 /* lessThan */: - case 61 /* equals */: - case 62 /* greaterThan */: - case 64 /* at */: - case 96 /* backtick */: - case 126 /* tilde */: - pos++; - return String.fromCharCode(ch2); - default: - return scanCharacterEscape( - /*atomEscape*/ - false - ); - } - } else if (ch === charCodeChecked(pos + 1)) { - switch (ch) { - case 38 /* ampersand */: - case 33 /* exclamation */: - case 35 /* hash */: - case 37 /* percent */: - case 42 /* asterisk */: - case 43 /* plus */: - case 44 /* comma */: - case 46 /* dot */: - case 58 /* colon */: - case 59 /* semicolon */: - case 60 /* lessThan */: - case 61 /* equals */: - case 62 /* greaterThan */: - case 63 /* question */: - case 64 /* at */: - case 96 /* backtick */: - case 126 /* tilde */: - error(Diagnostics.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash, pos, 2); - pos += 2; - return text.substring(pos - 2, pos); - } - } - switch (ch) { - case 47 /* slash */: - case 40 /* openParen */: - case 41 /* closeParen */: - case 91 /* openBracket */: - case 93 /* closeBracket */: - case 123 /* openBrace */: - case 125 /* closeBrace */: - case 45 /* minus */: - case 124 /* bar */: - error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); - pos++; - return String.fromCharCode(ch); - } - return scanSourceCharacter(); - } - function scanClassAtom() { - if (charCodeChecked(pos) === 92 /* backslash */) { - pos++; - const ch = charCodeChecked(pos); - switch (ch) { - case 98 /* b */: - pos++; - return "\b"; - case 45 /* minus */: - pos++; - return String.fromCharCode(ch); - default: - if (scanCharacterClassEscape()) { - return ""; - } - return scanCharacterEscape( - /*atomEscape*/ - false - ); - } - } else { - return scanSourceCharacter(); - } - } - function scanCharacterClassEscape() { - Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); - let isCharacterComplement = false; - const start2 = pos - 1; - const ch = charCodeChecked(pos); - switch (ch) { - case 100 /* d */: - case 68 /* D */: - case 115 /* s */: - case 83 /* S */: - case 119 /* w */: - case 87 /* W */: - pos++; - return true; - case 80 /* P */: - isCharacterComplement = true; - // falls through - case 112 /* p */: - pos++; - if (charCodeChecked(pos) === 123 /* openBrace */) { - pos++; - const propertyNameOrValueStart = pos; - const propertyNameOrValue = scanWordCharacters(); - if (charCodeChecked(pos) === 61 /* equals */) { - const propertyName = nonBinaryUnicodeProperties.get(propertyNameOrValue); - if (pos === propertyNameOrValueStart) { - error(Diagnostics.Expected_a_Unicode_property_name); - } else if (propertyName === void 0) { - error(Diagnostics.Unknown_Unicode_property_name, propertyNameOrValueStart, pos - propertyNameOrValueStart); - const suggestion = getSpellingSuggestion(propertyNameOrValue, nonBinaryUnicodeProperties.keys(), identity); - if (suggestion) { - error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); - } - } - pos++; - const propertyValueStart = pos; - const propertyValue = scanWordCharacters(); - if (pos === propertyValueStart) { - error(Diagnostics.Expected_a_Unicode_property_value); - } else if (propertyName !== void 0 && !valuesOfNonBinaryUnicodeProperties[propertyName].has(propertyValue)) { - error(Diagnostics.Unknown_Unicode_property_value, propertyValueStart, pos - propertyValueStart); - const suggestion = getSpellingSuggestion(propertyValue, valuesOfNonBinaryUnicodeProperties[propertyName], identity); - if (suggestion) { - error(Diagnostics.Did_you_mean_0, propertyValueStart, pos - propertyValueStart, suggestion); - } - } - } else { - if (pos === propertyNameOrValueStart) { - error(Diagnostics.Expected_a_Unicode_property_name_or_value); - } else if (binaryUnicodePropertiesOfStrings.has(propertyNameOrValue)) { - if (!unicodeSetsMode) { - error(Diagnostics.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set, propertyNameOrValueStart, pos - propertyNameOrValueStart); - } else if (isCharacterComplement) { - error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, propertyNameOrValueStart, pos - propertyNameOrValueStart); - } else { - mayContainStrings = true; - } - } else if (!valuesOfNonBinaryUnicodeProperties.General_Category.has(propertyNameOrValue) && !binaryUnicodeProperties.has(propertyNameOrValue)) { - error(Diagnostics.Unknown_Unicode_property_name_or_value, propertyNameOrValueStart, pos - propertyNameOrValueStart); - const suggestion = getSpellingSuggestion(propertyNameOrValue, [...valuesOfNonBinaryUnicodeProperties.General_Category, ...binaryUnicodeProperties, ...binaryUnicodePropertiesOfStrings], identity); - if (suggestion) { - error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); - } - } - } - scanExpectedChar(125 /* closeBrace */); - if (!anyUnicodeMode) { - error(Diagnostics.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, start2, pos - start2); - } - } else if (anyUnicodeModeOrNonAnnexB) { - error(Diagnostics._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces, pos - 2, 2, String.fromCharCode(ch)); - } else { - pos--; - return false; - } - return true; - } - return false; - } - function scanWordCharacters() { - let value = ""; - while (true) { - const ch = charCodeChecked(pos); - if (ch === -1 /* EOF */ || !isWordCharacter(ch)) { - break; - } - value += String.fromCharCode(ch); - pos++; - } - return value; - } - function scanSourceCharacter() { - const size = anyUnicodeMode ? charSize(codePointChecked(pos)) : 1; - pos += size; - return size > 0 ? text.substring(pos - size, pos) : ""; - } - function scanExpectedChar(ch) { - if (charCodeChecked(pos) === ch) { - pos++; - } else { - error(Diagnostics._0_expected, pos, 0, String.fromCharCode(ch)); - } - } - scanDisjunction( - /*isInGroup*/ - false - ); - forEach(groupNameReferences, (reference) => { - if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference.name))) { - error(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name); - if (groupSpecifiers) { - const suggestion = getSpellingSuggestion(reference.name, groupSpecifiers, identity); - if (suggestion) { - error(Diagnostics.Did_you_mean_0, reference.pos, reference.end - reference.pos, suggestion); - } - } - } - }); - forEach(decimalEscapes, (escape) => { - if (escape.value > numberOfCapturingGroups) { - if (numberOfCapturingGroups) { - error(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression, escape.pos, escape.end - escape.pos, numberOfCapturingGroups); - } else { - error(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression, escape.pos, escape.end - escape.pos); - } - } - }); - } - function checkRegularExpressionFlagAvailability(flag, size) { - const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag); - if (availableFrom && languageVersion < availableFrom) { - error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, size, getNameOfScriptTarget(availableFrom)); - } - } - function appendIfCommentDirective(commentDirectives2, text2, commentDirectiveRegEx, lineStart) { - const type = getDirectiveFromComment(text2.trimStart(), commentDirectiveRegEx); - if (type === void 0) { - return commentDirectives2; - } - return append( - commentDirectives2, - { - range: { pos: lineStart, end: pos }, - type - } - ); - } - function getDirectiveFromComment(text2, commentDirectiveRegEx) { - const match = commentDirectiveRegEx.exec(text2); - if (!match) { - return void 0; - } - switch (match[1]) { - case "ts-expect-error": - return 0 /* ExpectError */; - case "ts-ignore": - return 1 /* Ignore */; - } - return void 0; - } - function reScanTemplateToken(isTaggedTemplate) { - pos = tokenStart; - return token = scanTemplateAndSetTokenValue(!isTaggedTemplate); - } - function reScanTemplateHeadOrNoSubstitutionTemplate() { - pos = tokenStart; - return token = scanTemplateAndSetTokenValue( - /*shouldEmitInvalidEscapeError*/ - true - ); - } - function reScanJsxToken(allowMultilineJsxText = true) { - pos = tokenStart = fullStartPos; - return token = scanJsxToken(allowMultilineJsxText); - } - function reScanLessThanToken() { - if (token === 48 /* LessThanLessThanToken */) { - pos = tokenStart + 1; - return token = 30 /* LessThanToken */; - } - return token; - } - function reScanHashToken() { - if (token === 81 /* PrivateIdentifier */) { - pos = tokenStart + 1; - return token = 63 /* HashToken */; - } - return token; - } - function reScanQuestionToken() { - Debug.assert(token === 61 /* QuestionQuestionToken */, "'reScanQuestionToken' should only be called on a '??'"); - pos = tokenStart + 1; - return token = 58 /* QuestionToken */; - } - function scanJsxToken(allowMultilineJsxText = true) { - fullStartPos = tokenStart = pos; - if (pos >= end) { - return token = 1 /* EndOfFileToken */; - } - let char = charCodeUnchecked(pos); - if (char === 60 /* lessThan */) { - if (charCodeUnchecked(pos + 1) === 47 /* slash */) { - pos += 2; - return token = 31 /* LessThanSlashToken */; - } - pos++; - return token = 30 /* LessThanToken */; - } - if (char === 123 /* openBrace */) { - pos++; - return token = 19 /* OpenBraceToken */; - } - let firstNonWhitespace = 0; - while (pos < end) { - char = charCodeUnchecked(pos); - if (char === 123 /* openBrace */) { - break; - } - if (char === 60 /* lessThan */) { - if (isConflictMarkerTrivia(text, pos)) { - pos = scanConflictMarkerTrivia(text, pos, error); - return token = 7 /* ConflictMarkerTrivia */; - } - break; - } - if (char === 62 /* greaterThan */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); - } - if (char === 125 /* closeBrace */) { - error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); - } - if (isLineBreak(char) && firstNonWhitespace === 0) { - firstNonWhitespace = -1; - } else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) { - break; - } else if (!isWhiteSpaceLike(char)) { - firstNonWhitespace = pos; - } - pos++; - } - tokenValue = text.substring(fullStartPos, pos); - return firstNonWhitespace === -1 ? 13 /* JsxTextAllWhiteSpaces */ : 12 /* JsxText */; - } - function scanJsxIdentifier() { - if (tokenIsIdentifierOrKeyword(token)) { - while (pos < end) { - const ch = charCodeUnchecked(pos); - if (ch === 45 /* minus */) { - tokenValue += "-"; - pos++; - continue; - } - const oldPos = pos; - tokenValue += scanIdentifierParts(); - if (pos === oldPos) { - break; - } - } - return getIdentifierToken(); - } - return token; - } - function scanJsxAttributeValue() { - fullStartPos = pos; - switch (charCodeUnchecked(pos)) { - case 34 /* doubleQuote */: - case 39 /* singleQuote */: - tokenValue = scanString( - /*jsxAttributeString*/ - true - ); - return token = 11 /* StringLiteral */; - default: - return scan(); - } - } - function reScanJsxAttributeValue() { - pos = tokenStart = fullStartPos; - return scanJsxAttributeValue(); - } - function scanJSDocCommentTextToken(inBackticks) { - fullStartPos = tokenStart = pos; - tokenFlags = 0 /* None */; - if (pos >= end) { - return token = 1 /* EndOfFileToken */; - } - for (let ch = charCodeUnchecked(pos); pos < end && (!isLineBreak(ch) && ch !== 96 /* backtick */); ch = codePointUnchecked(++pos)) { - if (!inBackticks) { - if (ch === 123 /* openBrace */) { - break; - } else if (ch === 64 /* at */ && pos - 1 >= 0 && isWhiteSpaceSingleLine(charCodeUnchecked(pos - 1)) && !(pos + 1 < end && isWhiteSpaceLike(charCodeUnchecked(pos + 1)))) { - break; - } - } - } - if (pos === tokenStart) { - return scanJsDocToken(); - } - tokenValue = text.substring(tokenStart, pos); - return token = 82 /* JSDocCommentTextToken */; - } - function scanJsDocToken() { - fullStartPos = tokenStart = pos; - tokenFlags = 0 /* None */; - if (pos >= end) { - return token = 1 /* EndOfFileToken */; - } - const ch = codePointUnchecked(pos); - pos += charSize(ch); - switch (ch) { - case 9 /* tab */: - case 11 /* verticalTab */: - case 12 /* formFeed */: - case 32 /* space */: - while (pos < end && isWhiteSpaceSingleLine(charCodeUnchecked(pos))) { - pos++; - } - return token = 5 /* WhitespaceTrivia */; - case 64 /* at */: - return token = 60 /* AtToken */; - case 13 /* carriageReturn */: - if (charCodeUnchecked(pos) === 10 /* lineFeed */) { - pos++; - } - // falls through - case 10 /* lineFeed */: - tokenFlags |= 1 /* PrecedingLineBreak */; - return token = 4 /* NewLineTrivia */; - case 42 /* asterisk */: - return token = 42 /* AsteriskToken */; - case 123 /* openBrace */: - return token = 19 /* OpenBraceToken */; - case 125 /* closeBrace */: - return token = 20 /* CloseBraceToken */; - case 91 /* openBracket */: - return token = 23 /* OpenBracketToken */; - case 93 /* closeBracket */: - return token = 24 /* CloseBracketToken */; - case 40 /* openParen */: - return token = 21 /* OpenParenToken */; - case 41 /* closeParen */: - return token = 22 /* CloseParenToken */; - case 60 /* lessThan */: - return token = 30 /* LessThanToken */; - case 62 /* greaterThan */: - return token = 32 /* GreaterThanToken */; - case 61 /* equals */: - return token = 64 /* EqualsToken */; - case 44 /* comma */: - return token = 28 /* CommaToken */; - case 46 /* dot */: - return token = 25 /* DotToken */; - case 96 /* backtick */: - return token = 62 /* BacktickToken */; - case 35 /* hash */: - return token = 63 /* HashToken */; - case 92 /* backslash */: - pos--; - const extendedCookedChar = peekExtendedUnicodeEscape(); - if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { - tokenValue = scanExtendedUnicodeEscape( - /*shouldEmitInvalidEscapeError*/ - true - ) + scanIdentifierParts(); - return token = getIdentifierToken(); - } - const cookedChar = peekUnicodeEscape(); - if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) { - pos += 6; - tokenFlags |= 1024 /* UnicodeEscape */; - tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); - return token = getIdentifierToken(); - } - pos++; - return token = 0 /* Unknown */; - } - if (isIdentifierStart(ch, languageVersion)) { - let char = ch; - while (pos < end && isIdentifierPart(char = codePointUnchecked(pos), languageVersion) || char === 45 /* minus */) pos += charSize(char); - tokenValue = text.substring(tokenStart, pos); - if (char === 92 /* backslash */) { - tokenValue += scanIdentifierParts(); - } - return token = getIdentifierToken(); - } else { - return token = 0 /* Unknown */; - } - } - function speculationHelper(callback, isLookahead) { - const savePos = pos; - const saveStartPos = fullStartPos; - const saveTokenPos = tokenStart; - const saveToken = token; - const saveTokenValue = tokenValue; - const saveTokenFlags = tokenFlags; - const result = callback(); - if (!result || isLookahead) { - pos = savePos; - fullStartPos = saveStartPos; - tokenStart = saveTokenPos; - token = saveToken; - tokenValue = saveTokenValue; - tokenFlags = saveTokenFlags; - } - return result; - } - function scanRange(start2, length3, callback) { - const saveEnd = end; - const savePos = pos; - const saveStartPos = fullStartPos; - const saveTokenPos = tokenStart; - const saveToken = token; - const saveTokenValue = tokenValue; - const saveTokenFlags = tokenFlags; - const saveErrorExpectations = commentDirectives; - setText(text, start2, length3); - const result = callback(); - end = saveEnd; - pos = savePos; - fullStartPos = saveStartPos; - tokenStart = saveTokenPos; - token = saveToken; - tokenValue = saveTokenValue; - tokenFlags = saveTokenFlags; - commentDirectives = saveErrorExpectations; - return result; - } - function lookAhead(callback) { - return speculationHelper( - callback, - /*isLookahead*/ - true - ); - } - function tryScan(callback) { - return speculationHelper( - callback, - /*isLookahead*/ - false - ); - } - function getText() { - return text; - } - function clearCommentDirectives() { - commentDirectives = void 0; - } - function setText(newText, start2, length3) { - text = newText || ""; - end = length3 === void 0 ? text.length : start2 + length3; - resetTokenState(start2 || 0); - } - function setOnError(errorCallback) { - onError = errorCallback; - } - function setScriptTarget(scriptTarget) { - languageVersion = scriptTarget; - } - function setLanguageVariant(variant) { - languageVariant = variant; - } - function setScriptKind(kind) { - scriptKind = kind; - } - function setJSDocParsingMode(kind) { - jsDocParsingMode = kind; - } - function resetTokenState(position) { - Debug.assert(position >= 0); - pos = position; - fullStartPos = position; - tokenStart = position; - token = 0 /* Unknown */; - tokenValue = void 0; - tokenFlags = 0 /* None */; - } - function setSkipJsDocLeadingAsterisks(skip) { - skipJsDocLeadingAsterisks += skip ? 1 : -1; - } -} -function codePointAt(s, i) { - return s.codePointAt(i); -} -function charSize(ch) { - if (ch >= 65536) { - return 2; - } - if (ch === -1 /* EOF */) { - return 0; - } - return 1; -} -function utf16EncodeAsStringFallback(codePoint) { - Debug.assert(0 <= codePoint && codePoint <= 1114111); - if (codePoint <= 65535) { - return String.fromCharCode(codePoint); - } - const codeUnit1 = Math.floor((codePoint - 65536) / 1024) + 55296; - const codeUnit2 = (codePoint - 65536) % 1024 + 56320; - return String.fromCharCode(codeUnit1, codeUnit2); -} -var utf16EncodeAsStringWorker = String.fromCodePoint ? (codePoint) => String.fromCodePoint(codePoint) : utf16EncodeAsStringFallback; -function utf16EncodeAsString(codePoint) { - return utf16EncodeAsStringWorker(codePoint); -} -var nonBinaryUnicodeProperties = new Map(Object.entries({ - General_Category: "General_Category", - gc: "General_Category", - Script: "Script", - sc: "Script", - Script_Extensions: "Script_Extensions", - scx: "Script_Extensions" -})); -var binaryUnicodeProperties = /* @__PURE__ */ 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"]); -var binaryUnicodePropertiesOfStrings = /* @__PURE__ */ 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"]); -var valuesOfNonBinaryUnicodeProperties = { - General_Category: /* @__PURE__ */ 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: /* @__PURE__ */ 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 -}; -valuesOfNonBinaryUnicodeProperties.Script_Extensions = valuesOfNonBinaryUnicodeProperties.Script; - -// src/compiler/utilitiesPublic.ts -function isExternalModuleNameRelative(moduleName) { - return pathIsRelative(moduleName) || isRootedDiskPath(moduleName); -} -function sortAndDeduplicateDiagnostics(diagnostics) { - return sortAndDeduplicate(diagnostics, compareDiagnostics, diagnosticsEqualityComparer); -} -var targetToLibMap = /* @__PURE__ */ new Map([ - [99 /* ESNext */, "lib.esnext.full.d.ts"], - [11 /* ES2024 */, "lib.es2024.full.d.ts"], - [10 /* ES2023 */, "lib.es2023.full.d.ts"], - [9 /* ES2022 */, "lib.es2022.full.d.ts"], - [8 /* ES2021 */, "lib.es2021.full.d.ts"], - [7 /* ES2020 */, "lib.es2020.full.d.ts"], - [6 /* ES2019 */, "lib.es2019.full.d.ts"], - [5 /* ES2018 */, "lib.es2018.full.d.ts"], - [4 /* ES2017 */, "lib.es2017.full.d.ts"], - [3 /* ES2016 */, "lib.es2016.full.d.ts"], - [2 /* ES2015 */, "lib.es6.d.ts"] - // We don't use lib.es2015.full.d.ts due to breaking change. -]); -function getDefaultLibFileName(options) { - const target = getEmitScriptTarget(options); - switch (target) { - case 99 /* ESNext */: - case 11 /* ES2024 */: - case 10 /* ES2023 */: - case 9 /* ES2022 */: - case 8 /* ES2021 */: - case 7 /* ES2020 */: - case 6 /* ES2019 */: - case 5 /* ES2018 */: - case 4 /* ES2017 */: - case 3 /* ES2016 */: - case 2 /* ES2015 */: - return targetToLibMap.get(target); - default: - return "lib.d.ts"; - } -} -function textSpanEnd(span) { - return span.start + span.length; -} -function textSpanIsEmpty(span) { - return span.length === 0; -} -function textSpanContainsPosition(span, position) { - return position >= span.start && position < textSpanEnd(span); -} -function textRangeContainsPositionInclusive(range, position) { - return position >= range.pos && position <= range.end; -} -function createTextSpan(start, length2) { - if (start < 0) { - throw new Error("start < 0"); - } - if (length2 < 0) { - throw new Error("length < 0"); - } - return { start, length: length2 }; -} -function createTextSpanFromBounds(start, end) { - return createTextSpan(start, end - start); -} -function textChangeRangeNewSpan(range) { - return createTextSpan(range.span.start, range.newLength); -} -function textChangeRangeIsUnchanged(range) { - return textSpanIsEmpty(range.span) && range.newLength === 0; -} -function createTextChangeRange(span, newLength) { - if (newLength < 0) { - throw new Error("newLength < 0"); - } - return { span, newLength }; -} -var unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); -function isParameterPropertyDeclaration(node, parent) { - return isParameter(node) && hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */) && parent.kind === 176 /* Constructor */; -} -function walkUpBindingElementsAndPatterns(binding) { - let node = binding.parent; - while (isBindingElement(node.parent)) { - node = node.parent.parent; - } - return node.parent; -} -function getCombinedFlags(node, getFlags) { - if (isBindingElement(node)) { - node = walkUpBindingElementsAndPatterns(node); - } - let flags = getFlags(node); - if (node.kind === 260 /* VariableDeclaration */) { - node = node.parent; - } - if (node && node.kind === 261 /* VariableDeclarationList */) { - flags |= getFlags(node); - node = node.parent; - } - if (node && node.kind === 243 /* VariableStatement */) { - flags |= getFlags(node); - } - return flags; -} -function getCombinedModifierFlags(node) { - return getCombinedFlags(node, getEffectiveModifierFlags); -} -function getCombinedNodeFlags(node) { - return getCombinedFlags(node, getNodeFlags); -} -function getNodeFlags(node) { - return node.flags; -} -var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]; -function validateLocaleAndSetLanguage(locale, sys2, errors) { - const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)(?:[_-]([a-z]+))?$/.exec(lowerCaseLocale); - if (!matchResult) { - if (errors) { - errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); - } - return; - } - const language = matchResult[1]; - const territory = matchResult[2]; - if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors)) { - trySetLanguageAndTerritory( - language, - /*territory*/ - void 0, - errors - ); - } - setUILocale(locale); - function trySetLanguageAndTerritory(language2, territory2, errors2) { - const compilerFilePath = normalizePath(sys2.getExecutingFilePath()); - const containingDirectoryPath = getDirectoryPath(compilerFilePath); - let filePath = combinePaths(containingDirectoryPath, language2); - if (territory2) { - filePath = filePath + "-" + territory2; - } - filePath = sys2.resolvePath(combinePaths(filePath, "diagnosticMessages.generated.json")); - if (!sys2.fileExists(filePath)) { - return false; - } - let fileContents = ""; - try { - fileContents = sys2.readFile(filePath); - } catch { - if (errors2) { - errors2.push(createCompilerDiagnostic(Diagnostics.Unable_to_open_file_0, filePath)); - } - return false; - } - try { - setLocalizedDiagnosticMessages(JSON.parse(fileContents)); - } catch { - if (errors2) { - errors2.push(createCompilerDiagnostic(Diagnostics.Corrupted_locale_file_0, filePath)); - } - return false; - } - return true; - } -} -function getOriginalNode(node, nodeTest) { - if (node) { - while (node.original !== void 0) { - node = node.original; - } - } - if (!node || !nodeTest) { - return node; - } - return nodeTest(node) ? node : void 0; -} -function findAncestor(node, callback) { - while (node) { - const result = callback(node); - if (result === "quit") { - return void 0; - } else if (result) { - return node; - } - node = node.parent; - } - return void 0; -} -function isParseTreeNode(node) { - return (node.flags & 16 /* Synthesized */) === 0; -} -function getParseTreeNode(node, nodeTest) { - if (node === void 0 || isParseTreeNode(node)) { - return node; - } - node = node.original; - while (node) { - if (isParseTreeNode(node)) { - return !nodeTest || nodeTest(node) ? node : void 0; - } - node = node.original; - } -} -function escapeLeadingUnderscores(identifier) { - return identifier.length >= 2 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ ? "_" + identifier : identifier; -} -function unescapeLeadingUnderscores(identifier) { - const id = identifier; - return id.length >= 3 && id.charCodeAt(0) === 95 /* _ */ && id.charCodeAt(1) === 95 /* _ */ && id.charCodeAt(2) === 95 /* _ */ ? id.substr(1) : id; -} -function idText(identifierOrPrivateName) { - return unescapeLeadingUnderscores(identifierOrPrivateName.escapedText); -} -function identifierToKeywordKind(node) { - const token = stringToToken(node.escapedText); - return token ? tryCast(token, isKeyword) : void 0; -} -function symbolName(symbol) { - if (symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) { - return idText(symbol.valueDeclaration.name); - } - return unescapeLeadingUnderscores(symbol.escapedName); -} -function nameForNamelessJSDocTypedef(declaration) { - const hostNode = declaration.parent.parent; - if (!hostNode) { - return void 0; - } - if (isDeclaration(hostNode)) { - return getDeclarationIdentifier(hostNode); - } - switch (hostNode.kind) { - case 243 /* VariableStatement */: - if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { - return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); - } - break; - case 244 /* ExpressionStatement */: - let expr = hostNode.expression; - if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { - expr = expr.left; - } - switch (expr.kind) { - case 211 /* PropertyAccessExpression */: - return expr.name; - case 212 /* ElementAccessExpression */: - const arg = expr.argumentExpression; - if (isIdentifier(arg)) { - return arg; - } - } - break; - case 217 /* ParenthesizedExpression */: { - return getDeclarationIdentifier(hostNode.expression); - } - case 256 /* LabeledStatement */: { - if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { - return getDeclarationIdentifier(hostNode.statement); - } - break; - } - } -} -function getDeclarationIdentifier(node) { - const name = getNameOfDeclaration(node); - return name && isIdentifier(name) ? name : void 0; -} -function nodeHasName(statement, name) { - if (isNamedDeclaration(statement) && isIdentifier(statement.name) && idText(statement.name) === idText(name)) { - return true; - } - if (isVariableStatement(statement) && some(statement.declarationList.declarations, (d) => nodeHasName(d, name))) { - return true; - } - return false; -} -function getNameOfJSDocTypedef(declaration) { - return declaration.name || nameForNamelessJSDocTypedef(declaration); -} -function isNamedDeclaration(node) { - return !!node.name; -} -function getNonAssignedNameOfDeclaration(declaration) { - switch (declaration.kind) { - case 80 /* Identifier */: - return declaration; - case 348 /* JSDocPropertyTag */: - case 341 /* JSDocParameterTag */: { - const { name } = declaration; - if (name.kind === 166 /* QualifiedName */) { - return name.right; - } - break; - } - case 213 /* CallExpression */: - case 226 /* BinaryExpression */: { - const expr2 = declaration; - switch (getAssignmentDeclarationKind(expr2)) { - case 1 /* ExportsProperty */: - case 4 /* ThisProperty */: - case 5 /* Property */: - case 3 /* PrototypeProperty */: - return getElementOrPropertyAccessArgumentExpressionOrName(expr2.left); - case 7 /* ObjectDefinePropertyValue */: - case 8 /* ObjectDefinePropertyExports */: - case 9 /* ObjectDefinePrototypeProperty */: - return expr2.arguments[1]; - default: - return void 0; - } - } - case 346 /* JSDocTypedefTag */: - return getNameOfJSDocTypedef(declaration); - case 340 /* JSDocEnumTag */: - return nameForNamelessJSDocTypedef(declaration); - case 277 /* ExportAssignment */: { - const { expression } = declaration; - return isIdentifier(expression) ? expression : void 0; - } - case 212 /* ElementAccessExpression */: - const expr = declaration; - if (isBindableStaticElementAccessExpression(expr)) { - return expr.argumentExpression; - } - } - return declaration.name; -} -function getNameOfDeclaration(declaration) { - if (declaration === void 0) return void 0; - return getNonAssignedNameOfDeclaration(declaration) || (isFunctionExpression(declaration) || isArrowFunction(declaration) || isClassExpression(declaration) ? getAssignedName(declaration) : void 0); -} -function getAssignedName(node) { - if (!node.parent) { - return void 0; - } else if (isPropertyAssignment(node.parent) || isBindingElement(node.parent)) { - return node.parent.name; - } else if (isBinaryExpression(node.parent) && node === node.parent.right) { - if (isIdentifier(node.parent.left)) { - return node.parent.left; - } else if (isAccessExpression(node.parent.left)) { - return getElementOrPropertyAccessArgumentExpressionOrName(node.parent.left); - } - } else if (isVariableDeclaration(node.parent) && isIdentifier(node.parent.name)) { - return node.parent.name; - } -} -function getDecorators(node) { - if (hasDecorators(node)) { - return filter(node.modifiers, isDecorator); - } -} -function getModifiers(node) { - if (hasSyntacticModifier(node, 98303 /* Modifier */)) { - return filter(node.modifiers, isModifier); - } -} -function getJSDocParameterTagsWorker(param, noCache) { - if (param.name) { - if (isIdentifier(param.name)) { - const name = param.name.escapedText; - return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocParameterTag(tag) && isIdentifier(tag.name) && tag.name.escapedText === name); - } else { - const i = param.parent.parameters.indexOf(param); - Debug.assert(i > -1, "Parameters should always be in their parents' parameter list"); - const paramTags = getJSDocTagsWorker(param.parent, noCache).filter(isJSDocParameterTag); - if (i < paramTags.length) { - return [paramTags[i]]; - } - } - } - return emptyArray; -} -function getJSDocParameterTags(param) { - return getJSDocParameterTagsWorker( - param, - /*noCache*/ - false - ); -} -function getJSDocParameterTagsNoCache(param) { - return getJSDocParameterTagsWorker( - param, - /*noCache*/ - true - ); -} -function getJSDocTypeParameterTagsWorker(param, noCache) { - const name = param.name.escapedText; - return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocTemplateTag(tag) && tag.typeParameters.some((tp) => tp.name.escapedText === name)); -} -function getJSDocTypeParameterTags(param) { - return getJSDocTypeParameterTagsWorker( - param, - /*noCache*/ - false - ); -} -function getJSDocTypeParameterTagsNoCache(param) { - return getJSDocTypeParameterTagsWorker( - param, - /*noCache*/ - true - ); -} -function hasJSDocParameterTags(node) { - return !!getFirstJSDocTag(node, isJSDocParameterTag); -} -function getJSDocAugmentsTag(node) { - return getFirstJSDocTag(node, isJSDocAugmentsTag); -} -function getJSDocImplementsTags(node) { - return getAllJSDocTags(node, isJSDocImplementsTag); -} -function getJSDocClassTag(node) { - return getFirstJSDocTag(node, isJSDocClassTag); -} -function getJSDocPublicTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocPublicTag, - /*noCache*/ - true - ); -} -function getJSDocPrivateTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocPrivateTag, - /*noCache*/ - true - ); -} -function getJSDocProtectedTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocProtectedTag, - /*noCache*/ - true - ); -} -function getJSDocReadonlyTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocReadonlyTag, - /*noCache*/ - true - ); -} -function getJSDocOverrideTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocOverrideTag, - /*noCache*/ - true - ); -} -function getJSDocDeprecatedTag(node) { - return getFirstJSDocTag(node, isJSDocDeprecatedTag); -} -function getJSDocDeprecatedTagNoCache(node) { - return getFirstJSDocTag( - node, - isJSDocDeprecatedTag, - /*noCache*/ - true - ); -} -function getJSDocEnumTag(node) { - return getFirstJSDocTag(node, isJSDocEnumTag); -} -function getJSDocThisTag(node) { - return getFirstJSDocTag(node, isJSDocThisTag); -} -function getJSDocReturnTag(node) { - return getFirstJSDocTag(node, isJSDocReturnTag); -} -function getJSDocSatisfiesTag(node) { - return getFirstJSDocTag(node, isJSDocSatisfiesTag); -} -function getJSDocTypeTag(node) { - const tag = getFirstJSDocTag(node, isJSDocTypeTag); - if (tag && tag.typeExpression && tag.typeExpression.type) { - return tag; - } - return void 0; -} -function getJSDocType(node) { - let tag = getFirstJSDocTag(node, isJSDocTypeTag); - if (!tag && isParameter(node)) { - tag = find(getJSDocParameterTags(node), (tag2) => !!tag2.typeExpression); - } - return tag && tag.typeExpression && tag.typeExpression.type; -} -function getJSDocReturnType(node) { - const returnTag = getJSDocReturnTag(node); - if (returnTag && returnTag.typeExpression) { - return returnTag.typeExpression.type; - } - const typeTag = getJSDocTypeTag(node); - if (typeTag && typeTag.typeExpression) { - const type = typeTag.typeExpression.type; - if (isTypeLiteralNode(type)) { - const sig = find(type.members, isCallSignatureDeclaration); - return sig && sig.type; - } - if (isFunctionTypeNode(type) || isJSDocFunctionType(type)) { - return type.type; - } - } -} -function getJSDocTagsWorker(node, noCache) { - var _a; - if (!canHaveJSDoc(node)) return emptyArray; - let tags = (_a = node.jsDoc) == null ? void 0 : _a.jsDocCache; - if (tags === void 0 || noCache) { - const comments = getJSDocCommentsAndTags(node, noCache); - Debug.assert(comments.length < 2 || comments[0] !== comments[1]); - tags = flatMap(comments, (j) => isJSDoc(j) ? j.tags : j); - if (!noCache) { - node.jsDoc ?? (node.jsDoc = []); - node.jsDoc.jsDocCache = tags; - } - } - return tags; -} -function getJSDocTags(node) { - return getJSDocTagsWorker( - node, - /*noCache*/ - false - ); -} -function getFirstJSDocTag(node, predicate, noCache) { - return find(getJSDocTagsWorker(node, noCache), predicate); -} -function getAllJSDocTags(node, predicate) { - return getJSDocTags(node).filter(predicate); -} -function getTextOfJSDocComment(comment) { - return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 321 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); -} -function formatJSDocLink(link) { - const kind = link.kind === 324 /* JSDocLink */ ? "link" : link.kind === 325 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; - const name = link.name ? entityNameToString(link.name) : ""; - const space = link.name && (link.text === "" || link.text.startsWith("://")) ? "" : " "; - return `{@${kind} ${name}${space}${link.text}}`; -} -function getEffectiveTypeParameterDeclarations(node) { - if (isJSDocSignature(node)) { - if (isJSDocOverloadTag(node.parent)) { - const jsDoc = getJSDocRoot(node.parent); - if (jsDoc && length(jsDoc.tags)) { - return flatMap(jsDoc.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); - } - } - return emptyArray; - } - if (isJSDocTypeAlias(node)) { - Debug.assert(node.parent.kind === 320 /* JSDoc */); - return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); - } - if (node.typeParameters) { - return node.typeParameters; - } - if (canHaveIllegalTypeParameters(node) && node.typeParameters) { - return node.typeParameters; - } - if (isInJSFile(node)) { - const decls = getJSDocTypeParameterDeclarations(node); - if (decls.length) { - return decls; - } - const typeTag = getJSDocType(node); - if (typeTag && isFunctionTypeNode(typeTag) && typeTag.typeParameters) { - return typeTag.typeParameters; - } - } - return emptyArray; -} -function getEffectiveConstraintOfTypeParameter(node) { - return node.constraint ? node.constraint : isJSDocTemplateTag(node.parent) && node === node.parent.typeParameters[0] ? node.parent.constraint : void 0; -} -function isMemberName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; -} -function isGetOrSetAccessorDeclaration(node) { - return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; -} -function isPropertyAccessChain(node) { - return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); -} -function isElementAccessChain(node) { - return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); -} -function isCallChain(node) { - return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); -} -function isOptionalChain(node) { - const kind = node.kind; - return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); -} -function isOptionalChainRoot(node) { - return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; -} -function isExpressionOfOptionalChainRoot(node) { - return isOptionalChainRoot(node.parent) && node.parent.expression === node; -} -function isOutermostOptionalChain(node) { - return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; -} -function isNullishCoalesce(node) { - return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; -} -function isConstTypeReference(node) { - return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; -} -function skipPartiallyEmittedExpressions(node) { - return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); -} -function isNonNullChain(node) { - return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); -} -function isNamedExportBindings(node) { - return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; -} -function isJSDocPropertyLikeTag(node) { - return node.kind === 348 /* JSDocPropertyTag */ || node.kind === 341 /* JSDocParameterTag */; -} -function isNodeKind(kind) { - return kind >= 166 /* FirstNode */; -} -function isTokenKind(kind) { - return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; -} -function isNodeArray(array) { - return hasProperty(array, "pos") && hasProperty(array, "end"); -} -function isLiteralKind(kind) { - return 9 /* FirstLiteralToken */ <= kind && kind <= 15 /* LastLiteralToken */; -} -function isLiteralExpression(node) { - return isLiteralKind(node.kind); -} -function isLiteralExpressionOfObject(node) { - switch (node.kind) { - case 210 /* ObjectLiteralExpression */: - case 209 /* ArrayLiteralExpression */: - case 14 /* RegularExpressionLiteral */: - case 218 /* FunctionExpression */: - case 231 /* ClassExpression */: - return true; - } - return false; -} -function isTemplateLiteralKind(kind) { - return 15 /* FirstTemplateToken */ <= kind && kind <= 18 /* LastTemplateToken */; -} -function isTemplateMiddleOrTemplateTail(node) { - const kind = node.kind; - return kind === 17 /* TemplateMiddle */ || kind === 18 /* TemplateTail */; -} -function isImportOrExportSpecifier(node) { - return isImportSpecifier(node) || isExportSpecifier(node); -} -function isTypeOnlyImportDeclaration(node) { - switch (node.kind) { - case 276 /* ImportSpecifier */: - return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 274 /* NamespaceImport */: - return node.parent.isTypeOnly; - case 273 /* ImportClause */: - case 271 /* ImportEqualsDeclaration */: - return node.isTypeOnly; - } - return false; -} -function isTypeOnlyExportDeclaration(node) { - switch (node.kind) { - case 281 /* ExportSpecifier */: - return node.isTypeOnly || node.parent.parent.isTypeOnly; - case 278 /* ExportDeclaration */: - return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; - case 280 /* NamespaceExport */: - return node.parent.isTypeOnly; - } - return false; -} -function isTypeOnlyImportOrExportDeclaration(node) { - return isTypeOnlyImportDeclaration(node) || isTypeOnlyExportDeclaration(node); -} -function isPartOfTypeOnlyImportOrExportDeclaration(node) { - return findAncestor(node, isTypeOnlyImportOrExportDeclaration) !== void 0; -} -function isImportAttributeName(node) { - return isStringLiteral(node) || isIdentifier(node); -} -function isGeneratedIdentifier(node) { - var _a; - return isIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; -} -function isGeneratedPrivateIdentifier(node) { - var _a; - return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; -} -function isFileLevelReservedGeneratedIdentifier(node) { - const flags = node.emitNode.autoGenerate.flags; - return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); -} -function isPrivateIdentifierClassElementDeclaration(node) { - return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); -} -function isPrivateIdentifierPropertyAccessExpression(node) { - return isPropertyAccessExpression(node) && isPrivateIdentifier(node.name); -} -function isModifierKind(token) { - switch (token) { - case 128 /* AbstractKeyword */: - case 129 /* AccessorKeyword */: - case 134 /* AsyncKeyword */: - case 87 /* ConstKeyword */: - case 138 /* DeclareKeyword */: - case 90 /* DefaultKeyword */: - case 95 /* ExportKeyword */: - case 103 /* InKeyword */: - case 125 /* PublicKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 148 /* ReadonlyKeyword */: - case 126 /* StaticKeyword */: - case 147 /* OutKeyword */: - case 164 /* OverrideKeyword */: - return true; - } - return false; -} -function isParameterPropertyModifier(kind) { - return !!(modifierToFlag(kind) & 31 /* ParameterPropertyModifier */); -} -function isClassMemberModifier(idToken) { - return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; -} -function isModifier(node) { - return isModifierKind(node.kind); -} -function isEntityName(node) { - const kind = node.kind; - return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; -} -function isPropertyName(node) { - const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; -} -function isBindingName(node) { - const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; -} -function isFunctionLike(node) { - return !!node && isFunctionLikeKind(node.kind); -} -function isFunctionLikeOrClassStaticBlockDeclaration(node) { - return !!node && (isFunctionLikeKind(node.kind) || isClassStaticBlockDeclaration(node)); -} -function isFunctionLikeDeclaration(node) { - return node && isFunctionLikeDeclarationKind(node.kind); -} -function isBooleanLiteral(node) { - return node.kind === 112 /* TrueKeyword */ || node.kind === 97 /* FalseKeyword */; -} -function isFunctionLikeDeclarationKind(kind) { - switch (kind) { - case 262 /* FunctionDeclaration */: - case 174 /* MethodDeclaration */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return true; - default: - return false; - } -} -function isFunctionLikeKind(kind) { - switch (kind) { - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 323 /* JSDocSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - case 184 /* FunctionType */: - case 317 /* JSDocFunctionType */: - case 185 /* ConstructorType */: - return true; - default: - return isFunctionLikeDeclarationKind(kind); - } -} -function isFunctionOrModuleBlock(node) { - return isSourceFile(node) || isModuleBlock(node) || isBlock(node) && isFunctionLike(node.parent); -} -function isClassElement(node) { - const kind = node.kind; - return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; -} -function isClassLike(node) { - return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); -} -function isAccessor(node) { - return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); -} -function isAutoAccessorPropertyDeclaration(node) { - return isPropertyDeclaration(node) && hasAccessorModifier(node); -} -function isClassInstanceProperty(node) { - if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) { - return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression( - node, - /*excludeThisKeyword*/ - true - ); - } - return node.parent && isClassLike(node.parent) && isPropertyDeclaration(node) && !hasAccessorModifier(node); -} -function isMethodOrAccessor(node) { - switch (node.kind) { - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return true; - default: - return false; - } -} -function isModifierLike(node) { - return isModifier(node) || isDecorator(node); -} -function isTypeElement(node) { - const kind = node.kind; - return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 354 /* NotEmittedTypeElement */; -} -function isObjectLiteralElementLike(node) { - const kind = node.kind; - return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; -} -function isTypeNode(node) { - return isTypeNodeKind(node.kind); -} -function isFunctionOrConstructorTypeNode(node) { - switch (node.kind) { - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - return true; - } - return false; -} -function isBindingPattern(node) { - if (node) { - const kind = node.kind; - return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; - } - return false; -} -function isAssignmentPattern(node) { - const kind = node.kind; - return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; -} -function isArrayBindingElement(node) { - const kind = node.kind; - return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; -} -function isDeclarationBindingElement(bindingElement) { - switch (bindingElement.kind) { - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 208 /* BindingElement */: - return true; - } - return false; -} -function isBindingOrAssignmentElement(node) { - return isVariableDeclaration(node) || isParameter(node) || isObjectBindingOrAssignmentElement(node) || isArrayBindingOrAssignmentElement(node); -} -function isBindingOrAssignmentPattern(node) { - return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node); -} -function isObjectBindingOrAssignmentPattern(node) { - switch (node.kind) { - case 206 /* ObjectBindingPattern */: - case 210 /* ObjectLiteralExpression */: - return true; - } - return false; -} -function isObjectBindingOrAssignmentElement(node) { - switch (node.kind) { - case 208 /* BindingElement */: - case 303 /* PropertyAssignment */: - // AssignmentProperty - case 304 /* ShorthandPropertyAssignment */: - // AssignmentProperty - case 305 /* SpreadAssignment */: - return true; - } - return false; -} -function isArrayBindingOrAssignmentPattern(node) { - switch (node.kind) { - case 207 /* ArrayBindingPattern */: - case 209 /* ArrayLiteralExpression */: - return true; - } - return false; -} -function isArrayBindingOrAssignmentElement(node) { - switch (node.kind) { - case 208 /* BindingElement */: - case 232 /* OmittedExpression */: - // Elision - case 230 /* SpreadElement */: - // AssignmentRestElement - case 209 /* ArrayLiteralExpression */: - // ArrayAssignmentPattern - case 210 /* ObjectLiteralExpression */: - // ObjectAssignmentPattern - case 80 /* Identifier */: - // DestructuringAssignmentTarget - case 211 /* PropertyAccessExpression */: - // DestructuringAssignmentTarget - case 212 /* ElementAccessExpression */: - return true; - } - return isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - ); -} -function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { - const kind = node.kind; - return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; -} -function isPropertyAccessOrQualifiedName(node) { - const kind = node.kind; - return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */; -} -function isCallLikeOrFunctionLikeExpression(node) { - return isCallLikeExpression(node) || isFunctionExpressionOrArrowFunction(node); -} -function isCallLikeExpression(node) { - switch (node.kind) { - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 215 /* TaggedTemplateExpression */: - case 170 /* Decorator */: - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - case 289 /* JsxOpeningFragment */: - return true; - case 226 /* BinaryExpression */: - return node.operatorToken.kind === 104 /* InstanceOfKeyword */; - default: - return false; - } -} -function isCallOrNewExpression(node) { - return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; -} -function isTemplateLiteral(node) { - const kind = node.kind; - return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; -} -function isLeftHandSideExpression(node) { - return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); -} -function isLeftHandSideExpressionKind(kind) { - switch (kind) { - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - case 214 /* NewExpression */: - case 213 /* CallExpression */: - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 288 /* JsxFragment */: - case 215 /* TaggedTemplateExpression */: - case 209 /* ArrayLiteralExpression */: - case 217 /* ParenthesizedExpression */: - case 210 /* ObjectLiteralExpression */: - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - // technically this is only an Expression if it's in a `#field in expr` BinaryExpression - case 14 /* RegularExpressionLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 228 /* TemplateExpression */: - case 97 /* FalseKeyword */: - case 106 /* NullKeyword */: - case 110 /* ThisKeyword */: - case 112 /* TrueKeyword */: - case 108 /* SuperKeyword */: - case 235 /* NonNullExpression */: - case 233 /* ExpressionWithTypeArguments */: - case 236 /* MetaProperty */: - case 102 /* ImportKeyword */: - // technically this is only an Expression if it's in a CallExpression - case 282 /* MissingDeclaration */: - return true; - default: - return false; - } -} -function isUnaryExpression(node) { - return isUnaryExpressionKind(skipPartiallyEmittedExpressions(node).kind); -} -function isUnaryExpressionKind(kind) { - switch (kind) { - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - case 220 /* DeleteExpression */: - case 221 /* TypeOfExpression */: - case 222 /* VoidExpression */: - case 223 /* AwaitExpression */: - case 216 /* TypeAssertionExpression */: - return true; - default: - return isLeftHandSideExpressionKind(kind); - } -} -function isLiteralTypeLiteral(node) { - switch (node.kind) { - case 106 /* NullKeyword */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 224 /* PrefixUnaryExpression */: - return true; - default: - return isLiteralExpression(node); - } -} -function isExpression(node) { - return isExpressionKind(skipPartiallyEmittedExpressions(node).kind); -} -function isExpressionKind(kind) { - switch (kind) { - case 227 /* ConditionalExpression */: - case 229 /* YieldExpression */: - case 219 /* ArrowFunction */: - case 226 /* BinaryExpression */: - case 230 /* SpreadElement */: - case 234 /* AsExpression */: - case 232 /* OmittedExpression */: - case 356 /* CommaListExpression */: - case 355 /* PartiallyEmittedExpression */: - case 238 /* SatisfiesExpression */: - return true; - default: - return isUnaryExpressionKind(kind); - } -} -function isAssertionExpression(node) { - const kind = node.kind; - return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; -} -function isIterationStatement(node, lookInLabeledStatements) { - switch (node.kind) { - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - return true; - case 256 /* LabeledStatement */: - return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); - } - return false; -} -function isScopeMarker(node) { - return isExportAssignment(node) || isExportDeclaration(node); -} -function hasScopeMarker(statements) { - return some(statements, isScopeMarker); -} -function needsScopeMarker(result) { - return !isAnyImportOrReExport(result) && !isExportAssignment(result) && !hasSyntacticModifier(result, 32 /* Export */) && !isAmbientModule(result); -} -function isExternalModuleIndicator(result) { - return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 32 /* Export */); -} -function isForInOrOfStatement(node) { - return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; -} -function isConciseBody(node) { - return isBlock(node) || isExpression(node); -} -function isForInitializer(node) { - return isVariableDeclarationList(node) || isExpression(node); -} -function isModuleBody(node) { - const kind = node.kind; - return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; -} -function isNamedImportBindings(node) { - const kind = node.kind; - return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; -} -function isModuleOrEnumDeclaration(node) { - return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; -} -function canHaveSymbol(node) { - switch (node.kind) { - case 219 /* ArrowFunction */: - case 226 /* BinaryExpression */: - case 208 /* BindingElement */: - case 213 /* CallExpression */: - case 179 /* CallSignature */: - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 175 /* ClassStaticBlockDeclaration */: - case 176 /* Constructor */: - case 185 /* ConstructorType */: - case 180 /* ConstructSignature */: - case 212 /* ElementAccessExpression */: - case 266 /* EnumDeclaration */: - case 306 /* EnumMember */: - case 277 /* ExportAssignment */: - case 278 /* ExportDeclaration */: - case 281 /* ExportSpecifier */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 184 /* FunctionType */: - case 177 /* GetAccessor */: - case 80 /* Identifier */: - case 273 /* ImportClause */: - case 271 /* ImportEqualsDeclaration */: - case 276 /* ImportSpecifier */: - case 181 /* IndexSignature */: - case 264 /* InterfaceDeclaration */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - case 317 /* JSDocFunctionType */: - case 341 /* JSDocParameterTag */: - case 348 /* JSDocPropertyTag */: - case 323 /* JSDocSignature */: - case 346 /* JSDocTypedefTag */: - case 322 /* JSDocTypeLiteral */: - case 291 /* JsxAttribute */: - case 292 /* JsxAttributes */: - case 293 /* JsxSpreadAttribute */: - case 200 /* MappedType */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 267 /* ModuleDeclaration */: - case 202 /* NamedTupleMember */: - case 280 /* NamespaceExport */: - case 270 /* NamespaceExportDeclaration */: - case 274 /* NamespaceImport */: - case 214 /* NewExpression */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 9 /* NumericLiteral */: - case 210 /* ObjectLiteralExpression */: - case 169 /* Parameter */: - case 211 /* PropertyAccessExpression */: - case 303 /* PropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 178 /* SetAccessor */: - case 304 /* ShorthandPropertyAssignment */: - case 307 /* SourceFile */: - case 305 /* SpreadAssignment */: - case 11 /* StringLiteral */: - case 265 /* TypeAliasDeclaration */: - case 187 /* TypeLiteral */: - case 168 /* TypeParameter */: - case 260 /* VariableDeclaration */: - return true; - default: - return false; - } -} -function canHaveLocals(node) { - switch (node.kind) { - case 219 /* ArrowFunction */: - case 241 /* Block */: - case 179 /* CallSignature */: - case 269 /* CaseBlock */: - case 299 /* CatchClause */: - case 175 /* ClassStaticBlockDeclaration */: - case 194 /* ConditionalType */: - case 176 /* Constructor */: - case 185 /* ConstructorType */: - case 180 /* ConstructSignature */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 184 /* FunctionType */: - case 177 /* GetAccessor */: - case 181 /* IndexSignature */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - case 317 /* JSDocFunctionType */: - case 323 /* JSDocSignature */: - case 346 /* JSDocTypedefTag */: - case 200 /* MappedType */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 267 /* ModuleDeclaration */: - case 178 /* SetAccessor */: - case 307 /* SourceFile */: - case 265 /* TypeAliasDeclaration */: - return true; - default: - return false; - } -} -function isDeclarationKind(kind) { - return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 346 /* JSDocTypedefTag */ || kind === 338 /* JSDocCallbackTag */ || kind === 348 /* JSDocPropertyTag */ || kind === 202 /* NamedTupleMember */; -} -function isDeclarationStatementKind(kind) { - return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; -} -function isStatementKindButNotDeclarationKind(kind) { - return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 353 /* NotEmittedStatement */; -} -function isDeclaration(node) { - if (node.kind === 168 /* TypeParameter */) { - return node.parent && node.parent.kind !== 345 /* JSDocTemplateTag */ || isInJSFile(node); - } - return isDeclarationKind(node.kind); -} -function isDeclarationStatement(node) { - return isDeclarationStatementKind(node.kind); -} -function isStatementButNotDeclaration(node) { - return isStatementKindButNotDeclarationKind(node.kind); -} -function isStatement(node) { - const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); -} -function isBlockStatement(node) { - if (node.kind !== 241 /* Block */) return false; - if (node.parent !== void 0) { - if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { - return false; - } - } - return !isFunctionBlock(node); -} -function isStatementOrBlock(node) { - const kind = node.kind; - return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; -} -function isModuleReference(node) { - const kind = node.kind; - return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; -} -function isJsxTagNameExpression(node) { - const kind = node.kind; - return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; -} -function isJsxChild(node) { - const kind = node.kind; - return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; -} -function isJsxAttributeLike(node) { - const kind = node.kind; - return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; -} -function isStringLiteralOrJsxExpression(node) { - const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; -} -function isJsxOpeningLikeElement(node) { - const kind = node.kind; - return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; -} -function isJsxCallLike(node) { - const kind = node.kind; - return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */ || kind === 289 /* JsxOpeningFragment */; -} -function isCaseOrDefaultClause(node) { - const kind = node.kind; - return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; -} -function isJSDocNode(node) { - return node.kind >= 309 /* FirstJSDocNode */ && node.kind <= 351 /* LastJSDocNode */; -} -function isJSDocTag(node) { - return node.kind >= 327 /* FirstJSDocTagNode */ && node.kind <= 351 /* LastJSDocTagNode */; -} -function isSetAccessor(node) { - return node.kind === 178 /* SetAccessor */; -} -function isGetAccessor(node) { - return node.kind === 177 /* GetAccessor */; -} -function hasJSDocNodes(node) { - if (!canHaveJSDoc(node)) return false; - const { jsDoc } = node; - return !!jsDoc && jsDoc.length > 0; -} -function hasType(node) { - return !!node.type; -} -function hasInitializer(node) { - return !!node.initializer; -} -function hasOnlyExpressionInitializer(node) { - switch (node.kind) { - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 208 /* BindingElement */: - case 172 /* PropertyDeclaration */: - case 303 /* PropertyAssignment */: - case 306 /* EnumMember */: - return true; - default: - return false; - } -} -function isTypeReferenceType(node) { - return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; -} -var MAX_SMI_X86 = 1073741823; -function guessIndentation(lines) { - let indentation = MAX_SMI_X86; - for (const line of lines) { - if (!line.length) { - continue; - } - let i = 0; - for (; i < line.length && i < indentation; i++) { - if (!isWhiteSpaceLike(line.charCodeAt(i))) { - break; - } - } - if (i < indentation) { - indentation = i; - } - if (indentation === 0) { - return 0; - } - } - return indentation === MAX_SMI_X86 ? void 0 : indentation; -} -function isStringLiteralLike(node) { - return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; -} -function isJSDocLinkLike(node) { - return node.kind === 324 /* JSDocLink */ || node.kind === 325 /* JSDocLinkCode */ || node.kind === 326 /* JSDocLinkPlain */; -} -function hasRestParameter(s) { - const last2 = lastOrUndefined(s.parameters); - return !!last2 && isRestParameter(last2); -} -function isRestParameter(node) { - const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; - return node.dotDotDotToken !== void 0 || !!type && type.kind === 318 /* JSDocVariadicType */; -} -function hasInternalAnnotation(range, sourceFile) { - const comment = sourceFile.text.substring(range.pos, range.end); - return comment.includes("@internal"); -} -function isInternalDeclaration(node, sourceFile) { - sourceFile ?? (sourceFile = getSourceFileOfNode(node)); - const parseTreeNode = getParseTreeNode(node); - if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { - const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); - const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; - const text = sourceFile.text; - const commentRanges = previousSibling ? concatenate( - // to handle - // ... parameters, /** @internal */ - // public param: string - getTrailingCommentRanges(text, skipTrivia( - text, - previousSibling.end + 1, - /*stopAfterLineBreak*/ - false, - /*stopAtComments*/ - true - )), - getLeadingCommentRanges(text, node.pos) - ) : getTrailingCommentRanges(text, skipTrivia( - text, - node.pos, - /*stopAfterLineBreak*/ - false, - /*stopAtComments*/ - true - )); - return some(commentRanges) && hasInternalAnnotation(last(commentRanges), sourceFile); - } - const leadingCommentRanges = parseTreeNode && getLeadingCommentRangesOfNode(parseTreeNode, sourceFile); - return !!forEach(leadingCommentRanges, (range) => { - return hasInternalAnnotation(range, sourceFile); - }); -} - -// src/compiler/utilities.ts -var resolvingEmptyArray = []; -var externalHelpersModuleNameText = "tslib"; -var defaultMaximumTruncationLength = 160; -var noTruncationMaximumTruncationLength = 1e6; -function getDeclarationOfKind(symbol, kind) { - const declarations = symbol.declarations; - if (declarations) { - for (const declaration of declarations) { - if (declaration.kind === kind) { - return declaration; - } - } - } - return void 0; -} -function getDeclarationsOfKind(symbol, kind) { - return filter(symbol.declarations || emptyArray, (d) => d.kind === kind); -} -function createSymbolTable(symbols) { - const result = /* @__PURE__ */ new Map(); - if (symbols) { - for (const symbol of symbols) { - result.set(symbol.escapedName, symbol); - } - } - return result; -} -function isTransientSymbol(symbol) { - return (symbol.flags & 33554432 /* Transient */) !== 0; -} -function isExternalModuleSymbol(moduleSymbol) { - return !!(moduleSymbol.flags & 1536 /* Module */) && moduleSymbol.escapedName.charCodeAt(0) === 34 /* doubleQuote */; -} -var stringWriter = createSingleLineStringWriter(); -function createSingleLineStringWriter() { - var str = ""; - const writeText = (text) => str += text; - return { - getText: () => str, - write: writeText, - rawWrite: writeText, - writeKeyword: writeText, - writeOperator: writeText, - writePunctuation: writeText, - writeSpace: writeText, - writeStringLiteral: writeText, - writeLiteral: writeText, - writeParameter: writeText, - writeProperty: writeText, - writeSymbol: (s, _) => writeText(s), - writeTrailingSemicolon: writeText, - writeComment: writeText, - getTextPos: () => str.length, - getLine: () => 0, - getColumn: () => 0, - getIndent: () => 0, - isAtStartOfLine: () => false, - hasTrailingComment: () => false, - hasTrailingWhitespace: () => !!str.length && isWhiteSpaceLike(str.charCodeAt(str.length - 1)), - // Completely ignore indentation for string writers. And map newlines to - // a single space. - writeLine: () => str += " ", - increaseIndent: noop, - decreaseIndent: noop, - clear: () => str = "" - }; -} -function changesAffectModuleResolution(oldOptions, newOptions) { - return oldOptions.configFilePath !== newOptions.configFilePath || optionsHaveModuleResolutionChanges(oldOptions, newOptions); -} -function optionsHaveModuleResolutionChanges(oldOptions, newOptions) { - return optionsHaveChanges(oldOptions, newOptions, moduleResolutionOptionDeclarations); -} -function changesAffectingProgramStructure(oldOptions, newOptions) { - return optionsHaveChanges(oldOptions, newOptions, optionsAffectingProgramStructure); -} -function optionsHaveChanges(oldOptions, newOptions, optionDeclarations2) { - return oldOptions !== newOptions && optionDeclarations2.some((o) => !isJsonEqual(getCompilerOptionValue(oldOptions, o), getCompilerOptionValue(newOptions, o))); -} -function forEachEntry(map2, callback) { - const iterator = map2.entries(); - for (const [key, value] of iterator) { - const result = callback(value, key); - if (result) { - return result; - } - } - return void 0; -} -function forEachKey(map2, callback) { - const iterator = map2.keys(); - for (const key of iterator) { - const result = callback(key); - if (result) { - return result; - } - } - return void 0; -} -function copyEntries(source, target) { - source.forEach((value, key) => { - target.set(key, value); - }); -} -function usingSingleLineStringWriter(action) { - const oldString = stringWriter.getText(); - try { - action(stringWriter); - return stringWriter.getText(); - } finally { - stringWriter.clear(); - stringWriter.writeKeyword(oldString); - } -} -function getFullWidth(node) { - return node.end - node.pos; -} -function projectReferenceIsEqualTo(oldRef, newRef) { - return oldRef.path === newRef.path && !oldRef.prepend === !newRef.prepend && !oldRef.circular === !newRef.circular; -} -function moduleResolutionIsEqualTo(oldResolution, newResolution) { - return oldResolution === newResolution || oldResolution.resolvedModule === newResolution.resolvedModule || !!oldResolution.resolvedModule && !!newResolution.resolvedModule && oldResolution.resolvedModule.isExternalLibraryImport === newResolution.resolvedModule.isExternalLibraryImport && oldResolution.resolvedModule.extension === newResolution.resolvedModule.extension && oldResolution.resolvedModule.resolvedFileName === newResolution.resolvedModule.resolvedFileName && oldResolution.resolvedModule.originalPath === newResolution.resolvedModule.originalPath && packageIdIsEqual(oldResolution.resolvedModule.packageId, newResolution.resolvedModule.packageId) && oldResolution.alternateResult === newResolution.alternateResult; -} -function getResolvedModuleFromResolution(resolution) { - return resolution.resolvedModule; -} -function getResolvedTypeReferenceDirectiveFromResolution(resolution) { - return resolution.resolvedTypeReferenceDirective; -} -function createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageName) { - var _a; - const alternateResult = (_a = host.getResolvedModule(sourceFile, moduleReference, mode)) == null ? void 0 : _a.alternateResult; - const alternateResultMessage = alternateResult && (getEmitModuleResolutionKind(host.getCompilerOptions()) === 2 /* Node10 */ ? [Diagnostics.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler, [alternateResult]] : [ - Diagnostics.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, - [alternateResult, alternateResult.includes(nodeModulesPathPart + "@types/") ? `@types/${mangleScopedPackageName(packageName)}` : packageName] - ]); - const result = alternateResultMessage ? chainDiagnosticMessages( - /*details*/ - void 0, - alternateResultMessage[0], - ...alternateResultMessage[1] - ) : host.typesPackageExists(packageName) ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.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, - packageName, - mangleScopedPackageName(packageName) - ) : host.packageBundlesTypes(packageName) ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1, - packageName, - moduleReference - ) : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, - moduleReference, - mangleScopedPackageName(packageName) - ); - if (result) result.repopulateInfo = () => ({ moduleReference, mode, packageName: packageName === moduleReference ? void 0 : packageName }); - return result; -} -function createModeMismatchDetails(currentSourceFile) { - const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); - const scope = currentSourceFile.packageJsonScope; - const targetExt = ext === ".ts" /* Ts */ ? ".mts" /* Mts */ : ext === ".js" /* Js */ ? ".mjs" /* Mjs */ : void 0; - const result = scope && !scope.contents.packageJsonContent.type ? targetExt ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, - targetExt, - combinePaths(scope.packageDirectory, "package.json") - ) : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, - combinePaths(scope.packageDirectory, "package.json") - ) : targetExt ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.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, - targetExt - ) : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module - ); - result.repopulateInfo = () => true; - return result; -} -function packageIdIsEqual(a, b) { - return a === b || !!a && !!b && a.name === b.name && a.subModuleName === b.subModuleName && a.version === b.version && a.peerDependencies === b.peerDependencies; -} -function packageIdToPackageName({ name, subModuleName }) { - return subModuleName ? `${name}/${subModuleName}` : name; -} -function packageIdToString(packageId) { - return `${packageIdToPackageName(packageId)}@${packageId.version}${packageId.peerDependencies ?? ""}`; -} -function typeDirectiveIsEqualTo(oldResolution, newResolution) { - return oldResolution === newResolution || oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || !!oldResolution.resolvedTypeReferenceDirective && !!newResolution.resolvedTypeReferenceDirective && oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && !!oldResolution.resolvedTypeReferenceDirective.primary === !!newResolution.resolvedTypeReferenceDirective.primary && oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath; -} -function hasChangesInResolutions(names, newResolutions, getOldResolution, comparer) { - Debug.assert(names.length === newResolutions.length); - for (let i = 0; i < names.length; i++) { - const newResolution = newResolutions[i]; - const entry = names[i]; - const oldResolution = getOldResolution(entry); - const changed = oldResolution ? !newResolution || !comparer(oldResolution, newResolution) : newResolution; - if (changed) { - return true; - } - } - return false; -} -function containsParseError(node) { - aggregateChildData(node); - return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; -} -function aggregateChildData(node) { - if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { - const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); - if (thisNodeOrAnySubNodesHasError) { - node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; - } - node.flags |= 2097152 /* HasAggregatedChildData */; - } -} -function getSourceFileOfNode(node) { - while (node && node.kind !== 307 /* SourceFile */) { - node = node.parent; - } - return node; -} -function getSourceFileOfModule(module2) { - return getSourceFileOfNode(module2.valueDeclaration || getNonAugmentationDeclaration(module2)); -} -function isPlainJsFile(file, checkJs) { - return !!file && (file.scriptKind === 1 /* JS */ || file.scriptKind === 2 /* JSX */) && !file.checkJsDirective && checkJs === void 0; -} -function isStatementWithLocals(node) { - switch (node.kind) { - case 241 /* Block */: - case 269 /* CaseBlock */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - return true; - } - return false; -} -function getEndLinePosition(line, sourceFile) { - Debug.assert(line >= 0); - const lineStarts = getLineStarts(sourceFile); - const lineIndex = line; - const sourceText = sourceFile.text; - if (lineIndex + 1 === lineStarts.length) { - return sourceText.length - 1; - } else { - const start = lineStarts[lineIndex]; - let pos = lineStarts[lineIndex + 1] - 1; - Debug.assert(isLineBreak(sourceText.charCodeAt(pos))); - while (start <= pos && isLineBreak(sourceText.charCodeAt(pos))) { - pos--; - } - return pos; - } -} -function isFileLevelUniqueName(sourceFile, name, hasGlobalName) { - return !(hasGlobalName && hasGlobalName(name)) && !sourceFile.identifiers.has(name); -} -function nodeIsMissing(node) { - if (node === void 0) { - return true; - } - return node.pos === node.end && node.pos >= 0 && node.kind !== 1 /* EndOfFileToken */; -} -function nodeIsPresent(node) { - return !nodeIsMissing(node); -} -function insertStatementsAfterPrologue(to, from, isPrologueDirective2) { - if (from === void 0 || from.length === 0) return to; - let statementIndex = 0; - for (; statementIndex < to.length; ++statementIndex) { - if (!isPrologueDirective2(to[statementIndex])) { - break; - } - } - to.splice(statementIndex, 0, ...from); - return to; -} -function insertStatementAfterPrologue(to, statement, isPrologueDirective2) { - if (statement === void 0) return to; - let statementIndex = 0; - for (; statementIndex < to.length; ++statementIndex) { - if (!isPrologueDirective2(to[statementIndex])) { - break; - } - } - to.splice(statementIndex, 0, statement); - return to; -} -function isAnyPrologueDirective(node) { - return isPrologueDirective(node) || !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); -} -function insertStatementsAfterStandardPrologue(to, from) { - return insertStatementsAfterPrologue(to, from, isPrologueDirective); -} -function insertStatementsAfterCustomPrologue(to, from) { - return insertStatementsAfterPrologue(to, from, isAnyPrologueDirective); -} -function insertStatementAfterCustomPrologue(to, statement) { - return insertStatementAfterPrologue(to, statement, isAnyPrologueDirective); -} -function isRecognizedTripleSlashComment(text, commentPos, commentEnd) { - if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) { - const textSubStr = text.substring(commentPos, commentEnd); - return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false; - } - return false; -} -function isPinnedComment(text, start) { - return text.charCodeAt(start + 1) === 42 /* asterisk */ && text.charCodeAt(start + 2) === 33 /* exclamation */; -} -function createCommentDirectivesMap(sourceFile, commentDirectives) { - const directivesByLine = new Map( - commentDirectives.map((commentDirective) => [ - `${getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line}`, - commentDirective - ]) - ); - const usedLines = /* @__PURE__ */ new Map(); - return { getUnusedExpectations, markUsed }; - function getUnusedExpectations() { - return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive); - } - function markUsed(line) { - if (!directivesByLine.has(`${line}`)) { - return false; - } - usedLines.set(`${line}`, true); - return true; - } -} -function getTokenPosOfNode(node, sourceFile, includeJsDoc) { - if (nodeIsMissing(node)) { - return node.pos; - } - if (isJSDocNode(node) || node.kind === 12 /* JsxText */) { - return skipTrivia( - (sourceFile ?? getSourceFileOfNode(node)).text, - node.pos, - /*stopAfterLineBreak*/ - false, - /*stopAtComments*/ - true - ); - } - if (includeJsDoc && hasJSDocNodes(node)) { - return getTokenPosOfNode(node.jsDoc[0], sourceFile); - } - if (node.kind === 352 /* SyntaxList */) { - sourceFile ?? (sourceFile = getSourceFileOfNode(node)); - const first2 = firstOrUndefined(getNodeChildren(node, sourceFile)); - if (first2) { - return getTokenPosOfNode(first2, sourceFile, includeJsDoc); - } - } - return skipTrivia( - (sourceFile ?? getSourceFileOfNode(node)).text, - node.pos, - /*stopAfterLineBreak*/ - false, - /*stopAtComments*/ - false, - isInJSDoc(node) - ); -} -function getNonModifierTokenPosOfNode(node, sourceFile) { - const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0; - if (!lastModifier) { - return getTokenPosOfNode(node, sourceFile); - } - return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end); -} -function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) { - return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia); -} -function isJSDocTypeExpressionOrChild(node) { - return !!findAncestor(node, isJSDocTypeExpression); -} -function isExportNamespaceAsDefaultDeclaration(node) { - return !!(isExportDeclaration(node) && node.exportClause && isNamespaceExport(node.exportClause) && moduleExportNameIsDefault(node.exportClause.name)); -} -function moduleExportNameTextUnescaped(node) { - return node.kind === 11 /* StringLiteral */ ? node.text : unescapeLeadingUnderscores(node.escapedText); -} -function moduleExportNameTextEscaped(node) { - return node.kind === 11 /* StringLiteral */ ? escapeLeadingUnderscores(node.text) : node.escapedText; -} -function moduleExportNameIsDefault(node) { - return (node.kind === 11 /* StringLiteral */ ? node.text : node.escapedText) === "default" /* Default */; -} -function getTextOfNodeFromSourceText(sourceText, node, includeTrivia = false) { - if (nodeIsMissing(node)) { - return ""; - } - let text = sourceText.substring(includeTrivia ? node.pos : skipTrivia(sourceText, node.pos), node.end); - if (isJSDocTypeExpressionOrChild(node)) { - text = text.split(/\r\n|\n|\r/).map((line) => line.replace(/^\s*\*/, "").trimStart()).join("\n"); - } - return text; -} -function getTextOfNode(node, includeTrivia = false) { - return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node, includeTrivia); -} -function getPos(range) { - return range.pos; -} -function indexOfNode(nodeArray, node) { - return binarySearch(nodeArray, node, getPos, compareValues); -} -function getEmitFlags(node) { - const emitNode = node.emitNode; - return emitNode && emitNode.flags || 0; -} -function getInternalEmitFlags(node) { - const emitNode = node.emitNode; - return emitNode && emitNode.internalFlags || 0; -} -var getScriptTargetFeatures = /* @__PURE__ */ memoize( - () => new Map(Object.entries({ - Array: new Map(Object.entries({ - es2015: [ - "find", - "findIndex", - "fill", - "copyWithin", - "entries", - "keys", - "values" - ], - es2016: [ - "includes" - ], - es2019: [ - "flat", - "flatMap" - ], - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Iterator: new Map(Object.entries({ - es2015: emptyArray - })), - AsyncIterator: new Map(Object.entries({ - es2015: emptyArray - })), - ArrayBuffer: new Map(Object.entries({ - es2024: [ - "maxByteLength", - "resizable", - "resize", - "detached", - "transfer", - "transferToFixedLength" - ] - })), - Atomics: new Map(Object.entries({ - es2017: [ - "add", - "and", - "compareExchange", - "exchange", - "isLockFree", - "load", - "or", - "store", - "sub", - "wait", - "notify", - "xor" - ], - es2024: [ - "waitAsync" - ] - })), - SharedArrayBuffer: new Map(Object.entries({ - es2017: [ - "byteLength", - "slice" - ], - es2024: [ - "growable", - "maxByteLength", - "grow" - ] - })), - AsyncIterable: new Map(Object.entries({ - es2018: emptyArray - })), - AsyncIterableIterator: new Map(Object.entries({ - es2018: emptyArray - })), - AsyncGenerator: new Map(Object.entries({ - es2018: emptyArray - })), - AsyncGeneratorFunction: new Map(Object.entries({ - es2018: emptyArray - })), - RegExp: new Map(Object.entries({ - es2015: [ - "flags", - "sticky", - "unicode" - ], - es2018: [ - "dotAll" - ], - es2024: [ - "unicodeSets" - ] - })), - Reflect: new Map(Object.entries({ - es2015: [ - "apply", - "construct", - "defineProperty", - "deleteProperty", - "get", - "getOwnPropertyDescriptor", - "getPrototypeOf", - "has", - "isExtensible", - "ownKeys", - "preventExtensions", - "set", - "setPrototypeOf" - ] - })), - ArrayConstructor: new Map(Object.entries({ - es2015: [ - "from", - "of" - ], - esnext: [ - "fromAsync" - ] - })), - ObjectConstructor: new Map(Object.entries({ - es2015: [ - "assign", - "getOwnPropertySymbols", - "keys", - "is", - "setPrototypeOf" - ], - es2017: [ - "values", - "entries", - "getOwnPropertyDescriptors" - ], - es2019: [ - "fromEntries" - ], - es2022: [ - "hasOwn" - ], - es2024: [ - "groupBy" - ] - })), - NumberConstructor: new Map(Object.entries({ - es2015: [ - "isFinite", - "isInteger", - "isNaN", - "isSafeInteger", - "parseFloat", - "parseInt" - ] - })), - Math: new Map(Object.entries({ - es2015: [ - "clz32", - "imul", - "sign", - "log10", - "log2", - "log1p", - "expm1", - "cosh", - "sinh", - "tanh", - "acosh", - "asinh", - "atanh", - "hypot", - "trunc", - "fround", - "cbrt" - ], - esnext: [ - "f16round" - ] - })), - Map: new Map(Object.entries({ - es2015: [ - "entries", - "keys", - "values" - ] - })), - MapConstructor: new Map(Object.entries({ - es2024: [ - "groupBy" - ] - })), - Set: new Map(Object.entries({ - es2015: [ - "entries", - "keys", - "values" - ], - esnext: [ - "union", - "intersection", - "difference", - "symmetricDifference", - "isSubsetOf", - "isSupersetOf", - "isDisjointFrom" - ] - })), - PromiseConstructor: new Map(Object.entries({ - es2015: [ - "all", - "race", - "reject", - "resolve" - ], - es2020: [ - "allSettled" - ], - es2021: [ - "any" - ], - es2024: [ - "withResolvers" - ] - })), - Symbol: new Map(Object.entries({ - es2015: [ - "for", - "keyFor" - ], - es2019: [ - "description" - ] - })), - WeakMap: new Map(Object.entries({ - es2015: [ - "entries", - "keys", - "values" - ] - })), - WeakSet: new Map(Object.entries({ - es2015: [ - "entries", - "keys", - "values" - ] - })), - String: new Map(Object.entries({ - es2015: [ - "codePointAt", - "includes", - "endsWith", - "normalize", - "repeat", - "startsWith", - "anchor", - "big", - "blink", - "bold", - "fixed", - "fontcolor", - "fontsize", - "italics", - "link", - "small", - "strike", - "sub", - "sup" - ], - es2017: [ - "padStart", - "padEnd" - ], - es2019: [ - "trimStart", - "trimEnd", - "trimLeft", - "trimRight" - ], - es2020: [ - "matchAll" - ], - es2021: [ - "replaceAll" - ], - es2022: [ - "at" - ], - es2024: [ - "isWellFormed", - "toWellFormed" - ] - })), - StringConstructor: new Map(Object.entries({ - es2015: [ - "fromCodePoint", - "raw" - ] - })), - DateTimeFormat: new Map(Object.entries({ - es2017: [ - "formatToParts" - ] - })), - Promise: new Map(Object.entries({ - es2015: emptyArray, - es2018: [ - "finally" - ] - })), - RegExpMatchArray: new Map(Object.entries({ - es2018: [ - "groups" - ] - })), - RegExpExecArray: new Map(Object.entries({ - es2018: [ - "groups" - ] - })), - Intl: new Map(Object.entries({ - es2018: [ - "PluralRules" - ] - })), - NumberFormat: new Map(Object.entries({ - es2018: [ - "formatToParts" - ] - })), - SymbolConstructor: new Map(Object.entries({ - es2020: [ - "matchAll" - ], - esnext: [ - "metadata", - "dispose", - "asyncDispose" - ] - })), - DataView: new Map(Object.entries({ - es2020: [ - "setBigInt64", - "setBigUint64", - "getBigInt64", - "getBigUint64" - ], - esnext: [ - "setFloat16", - "getFloat16" - ] - })), - BigInt: new Map(Object.entries({ - es2020: emptyArray - })), - RelativeTimeFormat: new Map(Object.entries({ - es2020: [ - "format", - "formatToParts", - "resolvedOptions" - ] - })), - Int8Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Uint8Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Uint8ClampedArray: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Int16Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Uint16Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Int32Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Uint32Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Float16Array: new Map(Object.entries({ - esnext: emptyArray - })), - Float32Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Float64Array: new Map(Object.entries({ - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - BigInt64Array: new Map(Object.entries({ - es2020: emptyArray, - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - BigUint64Array: new Map(Object.entries({ - es2020: emptyArray, - es2022: [ - "at" - ], - es2023: [ - "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" - ] - })), - Error: new Map(Object.entries({ - es2022: [ - "cause" - ] - })) - })) -); -function getLiteralText(node, sourceFile, flags) { - if (sourceFile && canUseOriginalText(node, flags)) { - return getSourceTextOfNodeFromSourceFile(sourceFile, node); - } - switch (node.kind) { - case 11 /* StringLiteral */: { - const escapeText = flags & 2 /* JsxAttributeEscape */ ? escapeJsxAttributeString : flags & 1 /* NeverAsciiEscape */ || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? escapeString : escapeNonAsciiString; - if (node.singleQuote) { - return "'" + escapeText(node.text, 39 /* singleQuote */) + "'"; - } else { - return '"' + escapeText(node.text, 34 /* doubleQuote */) + '"'; - } - } - case 15 /* NoSubstitutionTemplateLiteral */: - case 16 /* TemplateHead */: - case 17 /* TemplateMiddle */: - case 18 /* TemplateTail */: { - const escapeText = flags & 1 /* NeverAsciiEscape */ || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? escapeString : escapeNonAsciiString; - const rawText = node.rawText ?? escapeTemplateSubstitution(escapeText(node.text, 96 /* backtick */)); - switch (node.kind) { - case 15 /* NoSubstitutionTemplateLiteral */: - return "`" + rawText + "`"; - case 16 /* TemplateHead */: - return "`" + rawText + "${"; - case 17 /* TemplateMiddle */: - return "}" + rawText + "${"; - case 18 /* TemplateTail */: - return "}" + rawText + "`"; - } - break; - } - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - return node.text; - case 14 /* RegularExpressionLiteral */: - if (flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) { - return node.text + (node.text.charCodeAt(node.text.length - 1) === 92 /* backslash */ ? " /" : "/"); - } - return node.text; - } - return Debug.fail(`Literal kind '${node.kind}' not accounted for.`); -} -function canUseOriginalText(node, flags) { - if (nodeIsSynthesized(node) || !node.parent || flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) { - return false; - } - if (isNumericLiteral(node)) { - if (node.numericLiteralFlags & 26656 /* IsInvalid */) { - return false; - } - if (node.numericLiteralFlags & 512 /* ContainsSeparator */) { - return !!(flags & 8 /* AllowNumericSeparator */); - } - } - return !isBigIntLiteral(node); -} -function makeIdentifierFromModuleName(moduleName) { - return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); -} -function isBlockOrCatchScoped(declaration) { - return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); -} -function isCatchClauseVariableDeclarationOrBindingElement(declaration) { - const node = getRootDeclaration(declaration); - return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; -} -function isAmbientModule(node) { - return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); -} -function isModuleWithStringLiteralName(node) { - return isModuleDeclaration(node) && node.name.kind === 11 /* StringLiteral */; -} -function isNonGlobalAmbientModule(node) { - return isModuleDeclaration(node) && isStringLiteral(node.name); -} -function isEffectiveModuleDeclaration(node) { - return isModuleDeclaration(node) || isIdentifier(node); -} -function isShorthandAmbientModuleSymbol(moduleSymbol) { - return isShorthandAmbientModule(moduleSymbol.valueDeclaration); -} -function isShorthandAmbientModule(node) { - return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; -} -function isBlockScopedContainerTopLevel(node) { - return node.kind === 307 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); -} -function isGlobalScopeAugmentation(module2) { - return !!(module2.flags & 2048 /* GlobalAugmentation */); -} -function isExternalModuleAugmentation(node) { - return isAmbientModule(node) && isModuleAugmentationExternal(node); -} -function isModuleAugmentationExternal(node) { - switch (node.parent.kind) { - case 307 /* SourceFile */: - return isExternalModule(node.parent); - case 268 /* ModuleBlock */: - return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); - } - return false; -} -function getNonAugmentationDeclaration(symbol) { - var _a; - return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d))); -} -function isCommonJSContainingModuleKind(kind) { - return kind === 1 /* CommonJS */ || 100 /* Node16 */ <= kind && kind <= 199 /* NodeNext */; -} -function isEffectiveExternalModule(node, compilerOptions) { - return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator; -} -function isEffectiveStrictModeSourceFile(node, compilerOptions) { - switch (node.scriptKind) { - case 1 /* JS */: - case 3 /* TS */: - case 2 /* JSX */: - case 4 /* TSX */: - break; - default: - return false; - } - if (node.isDeclarationFile) { - return false; - } - if (getStrictOptionValue(compilerOptions, "alwaysStrict")) { - return true; - } - if (startsWithUseStrict(node.statements)) { - return true; - } - if (isExternalModule(node) || getIsolatedModules(compilerOptions)) { - return true; - } - return false; -} -function isAmbientPropertyDeclaration(node) { - return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 128 /* Ambient */); -} -function isBlockScope(node, parentNode) { - switch (node.kind) { - case 307 /* SourceFile */: - case 269 /* CaseBlock */: - case 299 /* CatchClause */: - case 267 /* ModuleDeclaration */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 172 /* PropertyDeclaration */: - case 175 /* ClassStaticBlockDeclaration */: - return true; - case 241 /* Block */: - return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); - } - return false; -} -function isAnyImportSyntax(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - return true; - default: - return false; - } -} -function isLateVisibilityPaintedStatement(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 243 /* VariableStatement */: - case 263 /* ClassDeclaration */: - case 262 /* FunctionDeclaration */: - case 267 /* ModuleDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 264 /* InterfaceDeclaration */: - case 266 /* EnumDeclaration */: - return true; - default: - return false; - } -} -function hasPossibleExternalModuleReference(node) { - return isAnyImportOrReExport(node) || isModuleDeclaration(node) || isImportTypeNode(node) || isImportCall(node); -} -function isAnyImportOrReExport(node) { - return isAnyImportSyntax(node) || isExportDeclaration(node); -} -function getEnclosingContainer(node) { - return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); -} -function getEnclosingBlockScopeContainer(node) { - return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); -} -function forEachEnclosingBlockScopeContainer(node, cb) { - let container = getEnclosingBlockScopeContainer(node); - while (container) { - cb(container); - container = getEnclosingBlockScopeContainer(container); - } -} -function declarationNameToString(name) { - return !name || getFullWidth(name) === 0 ? "(Missing)" : getTextOfNode(name); -} -function getNameFromIndexInfo(info) { - return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; -} -function isComputedNonLiteralName(name) { - return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); -} -function tryGetTextOfPropertyName(name) { - var _a; - switch (name.kind) { - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - return ((_a = name.emitNode) == null ? void 0 : _a.autoGenerate) ? void 0 : name.escapedText; - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - return escapeLeadingUnderscores(name.text); - case 167 /* ComputedPropertyName */: - if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); - return void 0; - case 295 /* JsxNamespacedName */: - return getEscapedTextOfJsxNamespacedName(name); - default: - return Debug.assertNever(name); - } -} -function getTextOfPropertyName(name) { - return Debug.checkDefined(tryGetTextOfPropertyName(name)); -} -function entityNameToString(name) { - switch (name.kind) { - case 110 /* ThisKeyword */: - return "this"; - case 81 /* PrivateIdentifier */: - case 80 /* Identifier */: - return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); - case 166 /* QualifiedName */: - return entityNameToString(name.left) + "." + entityNameToString(name.right); - case 211 /* PropertyAccessExpression */: - if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { - return entityNameToString(name.expression) + "." + entityNameToString(name.name); - } else { - return Debug.assertNever(name.name); - } - case 311 /* JSDocMemberName */: - return entityNameToString(name.left) + "#" + entityNameToString(name.right); - case 295 /* JsxNamespacedName */: - return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); - default: - return Debug.assertNever(name); - } -} -function createDiagnosticForNode(node, message, ...args) { - const sourceFile = getSourceFileOfNode(node); - return createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args); -} -function createDiagnosticForNodeArray(sourceFile, nodes, message, ...args) { - const start = skipTrivia(sourceFile.text, nodes.pos); - return createFileDiagnostic(sourceFile, start, nodes.end - start, message, ...args); -} -function createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) { - const span = getErrorSpanForNode(sourceFile, node); - return createFileDiagnostic(sourceFile, span.start, span.length, message, ...args); -} -function createDiagnosticForNodeFromMessageChain(sourceFile, node, messageChain, relatedInformation) { - const span = getErrorSpanForNode(sourceFile, node); - return createFileDiagnosticFromMessageChain(sourceFile, span.start, span.length, messageChain, relatedInformation); -} -function createDiagnosticForNodeArrayFromMessageChain(sourceFile, nodes, messageChain, relatedInformation) { - const start = skipTrivia(sourceFile.text, nodes.pos); - return createFileDiagnosticFromMessageChain(sourceFile, start, nodes.end - start, messageChain, relatedInformation); -} -function assertDiagnosticLocation(sourceText, start, length2) { - Debug.assertGreaterThanOrEqual(start, 0); - Debug.assertGreaterThanOrEqual(length2, 0); - Debug.assertLessThanOrEqual(start, sourceText.length); - Debug.assertLessThanOrEqual(start + length2, sourceText.length); -} -function createFileDiagnosticFromMessageChain(file, start, length2, messageChain, relatedInformation) { - assertDiagnosticLocation(file.text, start, length2); - return { - file, - start, - length: length2, - code: messageChain.code, - category: messageChain.category, - messageText: messageChain.next ? messageChain : messageChain.messageText, - relatedInformation, - canonicalHead: messageChain.canonicalHead - }; -} -function createDiagnosticForFileFromMessageChain(sourceFile, messageChain, relatedInformation) { - return { - file: sourceFile, - start: 0, - length: 0, - code: messageChain.code, - category: messageChain.category, - messageText: messageChain.next ? messageChain : messageChain.messageText, - relatedInformation - }; -} -function createDiagnosticMessageChainFromDiagnostic(diagnostic) { - return typeof diagnostic.messageText === "string" ? { - code: diagnostic.code, - category: diagnostic.category, - messageText: diagnostic.messageText, - next: diagnostic.next - } : diagnostic.messageText; -} -function createDiagnosticForRange(sourceFile, range, message) { - return { - file: sourceFile, - start: range.pos, - length: range.end - range.pos, - code: message.code, - category: message.category, - messageText: message.message - }; -} -function getCanonicalDiagnostic(message, ...args) { - return { - code: message.code, - messageText: formatMessage(message, ...args) - }; -} -function getSpanOfTokenAtPosition(sourceFile, pos) { - const scanner = createScanner( - sourceFile.languageVersion, - /*skipTrivia*/ - true, - sourceFile.languageVariant, - sourceFile.text, - /*onError*/ - void 0, - pos - ); - scanner.scan(); - const start = scanner.getTokenStart(); - return createTextSpanFromBounds(start, scanner.getTokenEnd()); -} -function scanTokenAtPosition(sourceFile, pos) { - const scanner = createScanner( - sourceFile.languageVersion, - /*skipTrivia*/ - true, - sourceFile.languageVariant, - sourceFile.text, - /*onError*/ - void 0, - pos - ); - scanner.scan(); - return scanner.getToken(); -} -function getErrorSpanForArrowFunction(sourceFile, node) { - const pos = skipTrivia(sourceFile.text, node.pos); - if (node.body && node.body.kind === 241 /* Block */) { - const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); - const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); - if (startLine < endLine) { - return createTextSpan(pos, getEndLinePosition(startLine, sourceFile) - pos + 1); - } - } - return createTextSpanFromBounds(pos, node.end); -} -function getErrorSpanForNode(sourceFile, node) { - let errorNode = node; - switch (node.kind) { - case 307 /* SourceFile */: { - const pos2 = skipTrivia( - sourceFile.text, - 0, - /*stopAfterLineBreak*/ - false - ); - if (pos2 === sourceFile.text.length) { - return createTextSpan(0, 0); - } - return getSpanOfTokenAtPosition(sourceFile, pos2); - } - // This list is a work in progress. Add missing node kinds to improve their error - // spans. - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 264 /* InterfaceDeclaration */: - case 267 /* ModuleDeclaration */: - case 266 /* EnumDeclaration */: - case 306 /* EnumMember */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 265 /* TypeAliasDeclaration */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 274 /* NamespaceImport */: - errorNode = node.name; - break; - case 219 /* ArrowFunction */: - return getErrorSpanForArrowFunction(sourceFile, node); - case 296 /* CaseClause */: - case 297 /* DefaultClause */: { - const start = skipTrivia(sourceFile.text, node.pos); - const end = node.statements.length > 0 ? node.statements[0].pos : node.end; - return createTextSpanFromBounds(start, end); - } - case 253 /* ReturnStatement */: - case 229 /* YieldExpression */: { - const pos2 = skipTrivia(sourceFile.text, node.pos); - return getSpanOfTokenAtPosition(sourceFile, pos2); - } - case 238 /* SatisfiesExpression */: { - const pos2 = skipTrivia(sourceFile.text, node.expression.end); - return getSpanOfTokenAtPosition(sourceFile, pos2); - } - case 350 /* JSDocSatisfiesTag */: { - const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); - return getSpanOfTokenAtPosition(sourceFile, pos2); - } - case 176 /* Constructor */: { - const constructorDeclaration = node; - const start = skipTrivia(sourceFile.text, constructorDeclaration.pos); - const scanner = createScanner( - sourceFile.languageVersion, - /*skipTrivia*/ - true, - sourceFile.languageVariant, - sourceFile.text, - /*onError*/ - void 0, - start - ); - let token = scanner.scan(); - while (token !== 137 /* ConstructorKeyword */ && token !== 1 /* EndOfFileToken */) { - token = scanner.scan(); - } - const end = scanner.getTokenEnd(); - return createTextSpanFromBounds(start, end); - } - } - if (errorNode === void 0) { - return getSpanOfTokenAtPosition(sourceFile, node.pos); - } - Debug.assert(!isJSDoc(errorNode)); - const isMissing = nodeIsMissing(errorNode); - const pos = isMissing || isJsxText(node) ? errorNode.pos : skipTrivia(sourceFile.text, errorNode.pos); - if (isMissing) { - Debug.assert(pos === errorNode.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); - Debug.assert(pos === errorNode.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); - } else { - Debug.assert(pos >= errorNode.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); - Debug.assert(pos <= errorNode.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); - } - return createTextSpanFromBounds(pos, errorNode.end); -} -function isGlobalSourceFile(node) { - return node.kind === 307 /* SourceFile */ && !isExternalOrCommonJsModule(node); -} -function isExternalOrCommonJsModule(file) { - return (file.externalModuleIndicator || file.commonJsModuleIndicator) !== void 0; -} -function isJsonSourceFile(file) { - return file.scriptKind === 6 /* JSON */; -} -function isEnumConst(node) { - return !!(getCombinedModifierFlags(node) & 4096 /* Const */); -} -function isDeclarationReadonly(declaration) { - return !!(getCombinedModifierFlags(declaration) & 8 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); -} -function isVarAwaitUsing(node) { - return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; -} -function isVarUsing(node) { - return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; -} -function isVarConst(node) { - return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; -} -function isVarConstLike(node) { - const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; - return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; -} -function isLet(node) { - return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; -} -function isSuperCall(n) { - return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; -} -function isImportCall(n) { - return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; -} -function isImportMeta(n) { - return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; -} -function isLiteralImportTypeNode(n) { - return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); -} -function isPrologueDirective(node) { - return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; -} -function isCustomPrologue(node) { - return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); -} -function isHoistedFunction(node) { - return isCustomPrologue(node) && isFunctionDeclaration(node); -} -function isHoistedVariable(node) { - return isIdentifier(node.name) && !node.initializer; -} -function isHoistedVariableStatement(node) { - return isCustomPrologue(node) && isVariableStatement(node) && every(node.declarationList.declarations, isHoistedVariable); -} -function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { - return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; -} -function getJSDocCommentRanges(node, text) { - const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); - return filter(commentRanges, (comment) => comment.end <= node.end && // Due to parse errors sometime empty parameter may get comments assigned to it that end up not in parameter range - text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); -} -var fullTripleSlashReferencePathRegEx = /^\/\/\/\s*/; -var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^\/\/\/\s*/; -var fullTripleSlashLibReferenceRegEx = /^\/\/\/\s*/; -var fullTripleSlashAMDReferencePathRegEx = /^\/\/\/\s*/; -var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*/; -var defaultLibReferenceRegEx = /^\/\/\/\s*/; -function isPartOfTypeNode(node) { - if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { - return true; - } - switch (node.kind) { - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 154 /* StringKeyword */: - case 136 /* BooleanKeyword */: - case 155 /* SymbolKeyword */: - case 151 /* ObjectKeyword */: - case 157 /* UndefinedKeyword */: - case 106 /* NullKeyword */: - case 146 /* NeverKeyword */: - return true; - case 116 /* VoidKeyword */: - return node.parent.kind !== 222 /* VoidExpression */; - case 233 /* ExpressionWithTypeArguments */: - return isPartOfTypeExpressionWithTypeArguments(node); - case 168 /* TypeParameter */: - return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; - // Identifiers and qualified names may be type nodes, depending on their context. Climb - // above them to find the lowest container - case 80 /* Identifier */: - if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { - node = node.parent; - } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { - node = node.parent; - } - Debug.assert(node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'."); - // falls through - case 166 /* QualifiedName */: - case 211 /* PropertyAccessExpression */: - case 110 /* ThisKeyword */: { - const { parent } = node; - if (parent.kind === 186 /* TypeQuery */) { - return false; - } - if (parent.kind === 205 /* ImportType */) { - return !parent.isTypeOf; - } - if (182 /* FirstTypeNode */ <= parent.kind && parent.kind <= 205 /* LastTypeNode */) { - return true; - } - switch (parent.kind) { - case 233 /* ExpressionWithTypeArguments */: - return isPartOfTypeExpressionWithTypeArguments(parent); - case 168 /* TypeParameter */: - return node === parent.constraint; - case 345 /* JSDocTemplateTag */: - return node === parent.constraint; - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 169 /* Parameter */: - case 260 /* VariableDeclaration */: - return node === parent.type; - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return node === parent.type; - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - return node === parent.type; - case 216 /* TypeAssertionExpression */: - return node === parent.type; - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 215 /* TaggedTemplateExpression */: - return contains(parent.typeArguments, node); - } - } - } - return false; -} -function isPartOfTypeExpressionWithTypeArguments(node) { - return isJSDocImplementsTag(node.parent) || isJSDocAugmentsTag(node.parent) || isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); -} -function forEachReturnStatement(body, visitor) { - return traverse(body); - function traverse(node) { - switch (node.kind) { - case 253 /* ReturnStatement */: - return visitor(node); - case 269 /* CaseBlock */: - case 241 /* Block */: - case 245 /* IfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 254 /* WithStatement */: - case 255 /* SwitchStatement */: - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - case 256 /* LabeledStatement */: - case 258 /* TryStatement */: - case 299 /* CatchClause */: - return forEachChild(node, traverse); - } - } -} -function forEachYieldExpression(body, visitor) { - return traverse(body); - function traverse(node) { - switch (node.kind) { - case 229 /* YieldExpression */: - visitor(node); - const operand = node.expression; - if (operand) { - traverse(operand); - } - return; - case 266 /* EnumDeclaration */: - case 264 /* InterfaceDeclaration */: - case 267 /* ModuleDeclaration */: - case 265 /* TypeAliasDeclaration */: - return; - default: - if (isFunctionLike(node)) { - if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { - traverse(node.name.expression); - return; - } - } else if (!isPartOfTypeNode(node)) { - forEachChild(node, traverse); - } - } - } -} -function getRestParameterElementType(node) { - if (node && node.kind === 188 /* ArrayType */) { - return node.elementType; - } else if (node && node.kind === 183 /* TypeReference */) { - return singleOrUndefined(node.typeArguments); - } else { - return void 0; - } -} -function getMembersOfDeclaration(node) { - switch (node.kind) { - case 264 /* InterfaceDeclaration */: - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 187 /* TypeLiteral */: - return node.members; - case 210 /* ObjectLiteralExpression */: - return node.properties; - } -} -function isVariableLike(node) { - if (node) { - switch (node.kind) { - case 208 /* BindingElement */: - case 306 /* EnumMember */: - case 169 /* Parameter */: - case 303 /* PropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 304 /* ShorthandPropertyAssignment */: - case 260 /* VariableDeclaration */: - return true; - } - } - return false; -} -function isVariableDeclarationInVariableStatement(node) { - return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; -} -function isCommonJsExportedExpression(node) { - if (!isInJSFile(node)) return false; - return isObjectLiteralExpression(node.parent) && isBinaryExpression(node.parent.parent) && getAssignmentDeclarationKind(node.parent.parent) === 2 /* ModuleExports */ || isCommonJsExportPropertyAssignment(node.parent); -} -function isCommonJsExportPropertyAssignment(node) { - if (!isInJSFile(node)) return false; - return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 1 /* ExportsProperty */; -} -function isValidESSymbolDeclaration(node) { - return (isVariableDeclaration(node) ? isVarConst(node) && isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) : isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) : isPropertySignature(node) && hasEffectiveReadonlyModifier(node)) || isCommonJsExportPropertyAssignment(node); -} -function introducesArgumentsExoticObject(node) { - switch (node.kind) { - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - return true; - } - return false; -} -function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) { - while (true) { - if (beforeUnwrapLabelCallback) { - beforeUnwrapLabelCallback(node); - } - if (node.statement.kind !== 256 /* LabeledStatement */) { - return node.statement; - } - node = node.statement; - } -} -function isFunctionBlock(node) { - return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); -} -function isObjectLiteralMethod(node) { - return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; -} -function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { - return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); -} -function isIdentifierTypePredicate(predicate) { - return predicate && predicate.kind === 1 /* Identifier */; -} -function isThisTypePredicate(predicate) { - return predicate && predicate.kind === 0 /* This */; -} -function forEachPropertyAssignment(objectLiteral, key, callback, key2) { - return forEach(objectLiteral == null ? void 0 : objectLiteral.properties, (property) => { - if (!isPropertyAssignment(property)) return void 0; - const propName = tryGetTextOfPropertyName(property.name); - return key === propName || key2 && key2 === propName ? callback(property) : void 0; - }); -} -function getTsConfigObjectLiteralExpression(tsConfigSourceFile) { - if (tsConfigSourceFile && tsConfigSourceFile.statements.length) { - const expression = tsConfigSourceFile.statements[0].expression; - return tryCast(expression, isObjectLiteralExpression); - } -} -function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) { - return forEachTsConfigPropArray(tsConfigSourceFile, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); -} -function forEachTsConfigPropArray(tsConfigSourceFile, propKey, callback) { - return forEachPropertyAssignment(getTsConfigObjectLiteralExpression(tsConfigSourceFile), propKey, callback); -} -function getContainingFunction(node) { - return findAncestor(node.parent, isFunctionLike); -} -function getContainingClass(node) { - return findAncestor(node.parent, isClassLike); -} -function getContainingClassStaticBlock(node) { - return findAncestor(node.parent, (n) => { - if (isClassLike(n) || isFunctionLike(n)) { - return "quit"; - } - return isClassStaticBlockDeclaration(n); - }); -} -function getContainingFunctionOrClassStaticBlock(node) { - return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); -} -function getContainingClassExcludingClassDecorators(node) { - const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); - return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); -} -function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { - Debug.assert(node.kind !== 307 /* SourceFile */); - while (true) { - node = node.parent; - if (!node) { - return Debug.fail(); - } - switch (node.kind) { - case 167 /* ComputedPropertyName */: - if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { - return node; - } - node = node.parent.parent; - break; - case 170 /* Decorator */: - if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { - node = node.parent.parent; - } else if (isClassElement(node.parent)) { - node = node.parent; - } - break; - case 219 /* ArrowFunction */: - if (!includeArrowFunctions) { - continue; - } - // falls through - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 267 /* ModuleDeclaration */: - case 175 /* ClassStaticBlockDeclaration */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - case 266 /* EnumDeclaration */: - case 307 /* SourceFile */: - return node; - } - } -} -function isThisContainerOrFunctionBlock(node) { - switch (node.kind) { - // Arrow functions use the same scope, but may do so in a "delayed" manner - // For example, `const getThis = () => this` may be before a super() call in a derived constructor - case 219 /* ArrowFunction */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 172 /* PropertyDeclaration */: - return true; - case 241 /* Block */: - switch (node.parent.kind) { - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return true; - default: - return false; - } - default: - return false; - } -} -function isInTopLevelContext(node) { - if (isIdentifier(node) && (isClassDeclaration(node.parent) || isFunctionDeclaration(node.parent)) && node.parent.name === node) { - node = node.parent; - } - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - true, - /*includeClassComputedPropertyName*/ - false - ); - return isSourceFile(container); -} -function getNewTargetContainer(node) { - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (container) { - switch (container.kind) { - case 176 /* Constructor */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - return container; - } - } - return void 0; -} -function getSuperContainer(node, stopOnFunctions) { - while (true) { - node = node.parent; - if (!node) { - return void 0; - } - switch (node.kind) { - case 167 /* ComputedPropertyName */: - node = node.parent; - break; - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - if (!stopOnFunctions) { - continue; - } - // falls through - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 175 /* ClassStaticBlockDeclaration */: - return node; - case 170 /* Decorator */: - if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { - node = node.parent.parent; - } else if (isClassElement(node.parent)) { - node = node.parent; - } - break; - } - } -} -function getImmediatelyInvokedFunctionExpression(func) { - if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { - let prev = func; - let parent = func.parent; - while (parent.kind === 217 /* ParenthesizedExpression */) { - prev = parent; - parent = parent.parent; - } - if (parent.kind === 213 /* CallExpression */ && parent.expression === prev) { - return parent; - } - } -} -function isSuperProperty(node) { - const kind = node.kind; - return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; -} -function isThisProperty(node) { - const kind = node.kind; - return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; -} -function isThisInitializedDeclaration(node) { - var _a; - return !!node && isVariableDeclaration(node) && ((_a = node.initializer) == null ? void 0 : _a.kind) === 110 /* ThisKeyword */; -} -function isThisInitializedObjectBindingExpression(node) { - return !!node && (isShorthandPropertyAssignment(node) || isPropertyAssignment(node)) && isBinaryExpression(node.parent.parent) && node.parent.parent.operatorToken.kind === 64 /* EqualsToken */ && node.parent.parent.right.kind === 110 /* ThisKeyword */; -} -function getEntityNameFromTypeNode(node) { - switch (node.kind) { - case 183 /* TypeReference */: - return node.typeName; - case 233 /* ExpressionWithTypeArguments */: - return isEntityNameExpression(node.expression) ? node.expression : void 0; - // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s. - case 80 /* Identifier */: - case 166 /* QualifiedName */: - return node; - } - return void 0; -} -function getInvokedExpression(node) { - switch (node.kind) { - case 215 /* TaggedTemplateExpression */: - return node.tag; - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - return node.tagName; - case 226 /* BinaryExpression */: - return node.right; - case 289 /* JsxOpeningFragment */: - return node; - default: - return node.expression; - } -} -function nodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent) { - if (useLegacyDecorators && isNamedDeclaration(node) && isPrivateIdentifier(node.name)) { - return false; - } - switch (node.kind) { - case 263 /* ClassDeclaration */: - return true; - case 231 /* ClassExpression */: - return !useLegacyDecorators; - case 172 /* PropertyDeclaration */: - return parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - return node.body !== void 0 && parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent)); - case 169 /* Parameter */: - if (!useLegacyDecorators) return false; - return parent !== void 0 && parent.body !== void 0 && (parent.kind === 176 /* Constructor */ || parent.kind === 174 /* MethodDeclaration */ || parent.kind === 178 /* SetAccessor */) && getThisParameter(parent) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; - } - return false; -} -function nodeIsDecorated(useLegacyDecorators, node, parent, grandparent) { - return hasDecorators(node) && nodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent); -} -function nodeOrChildIsDecorated(useLegacyDecorators, node, parent, grandparent) { - return nodeIsDecorated(useLegacyDecorators, node, parent, grandparent) || childIsDecorated(useLegacyDecorators, node, parent); -} -function childIsDecorated(useLegacyDecorators, node, parent) { - switch (node.kind) { - case 263 /* ClassDeclaration */: - return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); - case 231 /* ClassExpression */: - return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); - case 174 /* MethodDeclaration */: - case 178 /* SetAccessor */: - case 176 /* Constructor */: - return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent)); - default: - return false; - } -} -function classOrConstructorParameterIsDecorated(useLegacyDecorators, node) { - if (nodeIsDecorated(useLegacyDecorators, node)) return true; - const constructor = getFirstConstructorWithBody(node); - return !!constructor && childIsDecorated(useLegacyDecorators, constructor, node); -} -function classElementOrClassElementParameterIsDecorated(useLegacyDecorators, node, parent) { - let parameters; - if (isAccessor(node)) { - const { firstAccessor, secondAccessor, setAccessor } = getAllAccessorDeclarations(parent.members, node); - const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0; - if (!firstAccessorWithDecorators || node !== firstAccessorWithDecorators) { - return false; - } - parameters = setAccessor == null ? void 0 : setAccessor.parameters; - } else if (isMethodDeclaration(node)) { - parameters = node.parameters; - } - if (nodeIsDecorated(useLegacyDecorators, node, parent)) { - return true; - } - if (parameters) { - for (const parameter of parameters) { - if (parameterIsThisKeyword(parameter)) continue; - if (nodeIsDecorated(useLegacyDecorators, parameter, node, parent)) return true; - } - } - return false; -} -function isEmptyStringLiteral(node) { - if (node.textSourceNode) { - switch (node.textSourceNode.kind) { - case 11 /* StringLiteral */: - return isEmptyStringLiteral(node.textSourceNode); - case 15 /* NoSubstitutionTemplateLiteral */: - return node.text === ""; - } - return false; - } - return node.text === ""; -} -function isJSXTagName(node) { - const { parent } = node; - if (parent.kind === 286 /* JsxOpeningElement */ || parent.kind === 285 /* JsxSelfClosingElement */ || parent.kind === 287 /* JsxClosingElement */) { - return parent.tagName === node; - } - return false; -} -function isExpressionNode(node) { - switch (node.kind) { - case 108 /* SuperKeyword */: - case 106 /* NullKeyword */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 14 /* RegularExpressionLiteral */: - case 209 /* ArrayLiteralExpression */: - case 210 /* ObjectLiteralExpression */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 215 /* TaggedTemplateExpression */: - case 234 /* AsExpression */: - case 216 /* TypeAssertionExpression */: - case 238 /* SatisfiesExpression */: - case 235 /* NonNullExpression */: - case 217 /* ParenthesizedExpression */: - case 218 /* FunctionExpression */: - case 231 /* ClassExpression */: - case 219 /* ArrowFunction */: - case 222 /* VoidExpression */: - case 220 /* DeleteExpression */: - case 221 /* TypeOfExpression */: - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - case 226 /* BinaryExpression */: - case 227 /* ConditionalExpression */: - case 230 /* SpreadElement */: - case 228 /* TemplateExpression */: - case 232 /* OmittedExpression */: - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 288 /* JsxFragment */: - case 229 /* YieldExpression */: - case 223 /* AwaitExpression */: - case 236 /* MetaProperty */: - return true; - case 233 /* ExpressionWithTypeArguments */: - return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); - case 166 /* QualifiedName */: - while (node.parent.kind === 166 /* QualifiedName */) { - node = node.parent; - } - return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 311 /* JSDocMemberName */: - while (isJSDocMemberName(node.parent)) { - node = node.parent; - } - return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); - case 81 /* PrivateIdentifier */: - return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; - case 80 /* Identifier */: - if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { - return true; - } - // falls through - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 110 /* ThisKeyword */: - return isInExpressionContext(node); - default: - return false; - } -} -function isInExpressionContext(node) { - const { parent } = node; - switch (parent.kind) { - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 306 /* EnumMember */: - case 303 /* PropertyAssignment */: - case 208 /* BindingElement */: - return parent.initializer === node; - case 244 /* ExpressionStatement */: - case 245 /* IfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 253 /* ReturnStatement */: - case 254 /* WithStatement */: - case 255 /* SwitchStatement */: - case 296 /* CaseClause */: - case 257 /* ThrowStatement */: - return parent.expression === node; - case 248 /* ForStatement */: - const forStatement = parent; - return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - const forInOrOfStatement = parent; - return forInOrOfStatement.initializer === node && forInOrOfStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInOrOfStatement.expression === node; - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - return node === parent.expression; - case 239 /* TemplateSpan */: - return node === parent.expression; - case 167 /* ComputedPropertyName */: - return node === parent.expression; - case 170 /* Decorator */: - case 294 /* JsxExpression */: - case 293 /* JsxSpreadAttribute */: - case 305 /* SpreadAssignment */: - return true; - case 233 /* ExpressionWithTypeArguments */: - return parent.expression === node && !isPartOfTypeNode(parent); - case 304 /* ShorthandPropertyAssignment */: - return parent.objectAssignmentInitializer === node; - case 238 /* SatisfiesExpression */: - return node === parent.expression; - default: - return isExpressionNode(parent); - } -} -function isPartOfTypeQuery(node) { - while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { - node = node.parent; - } - return node.kind === 186 /* TypeQuery */; -} -function isNamespaceReexportDeclaration(node) { - return isNamespaceExport(node) && !!node.parent.moduleSpecifier; -} -function isExternalModuleImportEqualsDeclaration(node) { - return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; -} -function getExternalModuleImportEqualsDeclarationExpression(node) { - Debug.assert(isExternalModuleImportEqualsDeclaration(node)); - return node.moduleReference.expression; -} -function getExternalModuleRequireArgument(node) { - return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; -} -function isInternalModuleImportEqualsDeclaration(node) { - return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; -} -function isFullSourceFile(sourceFile) { - return (sourceFile == null ? void 0 : sourceFile.kind) === 307 /* SourceFile */; -} -function isSourceFileJS(file) { - return isInJSFile(file); -} -function isInJSFile(node) { - return !!node && !!(node.flags & 524288 /* JavaScriptFile */); -} -function isInJsonFile(node) { - return !!node && !!(node.flags & 134217728 /* JsonFile */); -} -function isSourceFileNotJson(file) { - return !isJsonSourceFile(file); -} -function isInJSDoc(node) { - return !!node && !!(node.flags & 16777216 /* JSDoc */); -} -function isJSDocIndexSignature(node) { - return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); -} -function isRequireCall(callExpression, requireStringLiteralLikeArgument) { - if (callExpression.kind !== 213 /* CallExpression */) { - return false; - } - const { expression, arguments: args } = callExpression; - if (expression.kind !== 80 /* Identifier */ || expression.escapedText !== "require") { - return false; - } - if (args.length !== 1) { - return false; - } - const arg = args[0]; - return !requireStringLiteralLikeArgument || isStringLiteralLike(arg); -} -function isVariableDeclarationInitializedToRequire(node) { - return isVariableDeclarationInitializedWithRequireHelper( - node, - /*allowAccessedRequire*/ - false - ); -} -function isVariableDeclarationInitializedToBareOrAccessedRequire(node) { - return isVariableDeclarationInitializedWithRequireHelper( - node, - /*allowAccessedRequire*/ - true - ); -} -function isBindingElementOfBareOrAccessedRequire(node) { - return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); -} -function isVariableDeclarationInitializedWithRequireHelper(node, allowAccessedRequire) { - return isVariableDeclaration(node) && !!node.initializer && isRequireCall( - allowAccessedRequire ? getLeftmostAccessExpression(node.initializer) : node.initializer, - /*requireStringLiteralLikeArgument*/ - true - ); -} -function isRequireVariableStatement(node) { - return isVariableStatement(node) && node.declarationList.declarations.length > 0 && every(node.declarationList.declarations, (decl) => isVariableDeclarationInitializedToRequire(decl)); -} -function isSingleOrDoubleQuote(charCode) { - return charCode === 39 /* singleQuote */ || charCode === 34 /* doubleQuote */; -} -function isStringDoubleQuoted(str, sourceFile) { - return getSourceTextOfNodeFromSourceFile(sourceFile, str).charCodeAt(0) === 34 /* doubleQuote */; -} -function isAssignmentDeclaration(decl) { - return isBinaryExpression(decl) || isAccessExpression(decl) || isIdentifier(decl) || isCallExpression(decl); -} -function getEffectiveInitializer(node) { - if (isInJSFile(node) && node.initializer && isBinaryExpression(node.initializer) && (node.initializer.operatorToken.kind === 57 /* BarBarToken */ || node.initializer.operatorToken.kind === 61 /* QuestionQuestionToken */) && node.name && isEntityNameExpression(node.name) && isSameEntityName(node.name, node.initializer.left)) { - return node.initializer.right; - } - return node.initializer; -} -function getDeclaredExpandoInitializer(node) { - const init = getEffectiveInitializer(node); - return init && getExpandoInitializer(init, isPrototypeAccess(node.name)); -} -function hasExpandoValueProperty(node, isPrototypeAssignment) { - return forEach(node.properties, (p) => isPropertyAssignment(p) && isIdentifier(p.name) && p.name.escapedText === "value" && p.initializer && getExpandoInitializer(p.initializer, isPrototypeAssignment)); -} -function getAssignedExpandoInitializer(node) { - if (node && node.parent && isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 64 /* EqualsToken */) { - const isPrototypeAssignment = isPrototypeAccess(node.parent.left); - return getExpandoInitializer(node.parent.right, isPrototypeAssignment) || getDefaultedExpandoInitializer(node.parent.left, node.parent.right, isPrototypeAssignment); - } - if (node && isCallExpression(node) && isBindableObjectDefinePropertyCall(node)) { - const result = hasExpandoValueProperty(node.arguments[2], node.arguments[1].text === "prototype"); - if (result) { - return result; - } - } -} -function getExpandoInitializer(initializer, isPrototypeAssignment) { - if (isCallExpression(initializer)) { - const e = skipParentheses(initializer.expression); - return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; - } - if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { - return initializer; - } - if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { - return initializer; - } -} -function getDefaultedExpandoInitializer(name, initializer, isPrototypeAssignment) { - const e = isBinaryExpression(initializer) && (initializer.operatorToken.kind === 57 /* BarBarToken */ || initializer.operatorToken.kind === 61 /* QuestionQuestionToken */) && getExpandoInitializer(initializer.right, isPrototypeAssignment); - if (e && isSameEntityName(name, initializer.left)) { - return e; - } -} -function isDefaultedExpandoInitializer(node) { - const name = isVariableDeclaration(node.parent) ? node.parent.name : isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 64 /* EqualsToken */ ? node.parent.left : void 0; - return name && getExpandoInitializer(node.right, isPrototypeAccess(name)) && isEntityNameExpression(name) && isSameEntityName(name, node.left); -} -function getNameOfExpando(node) { - if (isBinaryExpression(node.parent)) { - const parent = (node.parent.operatorToken.kind === 57 /* BarBarToken */ || node.parent.operatorToken.kind === 61 /* QuestionQuestionToken */) && isBinaryExpression(node.parent.parent) ? node.parent.parent : node.parent; - if (parent.operatorToken.kind === 64 /* EqualsToken */ && isIdentifier(parent.left)) { - return parent.left; - } - } else if (isVariableDeclaration(node.parent)) { - return node.parent.name; - } -} -function isSameEntityName(name, initializer) { - if (isPropertyNameLiteral(name) && isPropertyNameLiteral(initializer)) { - return getTextOfIdentifierOrLiteral(name) === getTextOfIdentifierOrLiteral(initializer); - } - if (isMemberName(name) && isLiteralLikeAccess(initializer) && (initializer.expression.kind === 110 /* ThisKeyword */ || isIdentifier(initializer.expression) && (initializer.expression.escapedText === "window" || initializer.expression.escapedText === "self" || initializer.expression.escapedText === "global"))) { - return isSameEntityName(name, getNameOrArgument(initializer)); - } - if (isLiteralLikeAccess(name) && isLiteralLikeAccess(initializer)) { - return getElementOrPropertyAccessName(name) === getElementOrPropertyAccessName(initializer) && isSameEntityName(name.expression, initializer.expression); - } - return false; -} -function getRightMostAssignedExpression(node) { - while (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - )) { - node = node.right; - } - return node; -} -function isExportsIdentifier(node) { - return isIdentifier(node) && node.escapedText === "exports"; -} -function isModuleIdentifier(node) { - return isIdentifier(node) && node.escapedText === "module"; -} -function isModuleExportsAccessExpression(node) { - return (isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node)) && isModuleIdentifier(node.expression) && getElementOrPropertyAccessName(node) === "exports"; -} -function getAssignmentDeclarationKind(expr) { - const special = getAssignmentDeclarationKindWorker(expr); - return special === 5 /* Property */ || isInJSFile(expr) ? special : 0 /* None */; -} -function isBindableObjectDefinePropertyCall(expr) { - return length(expr.arguments) === 3 && isPropertyAccessExpression(expr.expression) && isIdentifier(expr.expression.expression) && idText(expr.expression.expression) === "Object" && idText(expr.expression.name) === "defineProperty" && isStringOrNumericLiteralLike(expr.arguments[1]) && isBindableStaticNameExpression( - expr.arguments[0], - /*excludeThisKeyword*/ - true - ); -} -function isLiteralLikeAccess(node) { - return isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node); -} -function isLiteralLikeElementAccess(node) { - return isElementAccessExpression(node) && isStringOrNumericLiteralLike(node.argumentExpression); -} -function isBindableStaticAccessExpression(node, excludeThisKeyword) { - return isPropertyAccessExpression(node) && (!excludeThisKeyword && node.expression.kind === 110 /* ThisKeyword */ || isIdentifier(node.name) && isBindableStaticNameExpression( - node.expression, - /*excludeThisKeyword*/ - true - )) || isBindableStaticElementAccessExpression(node, excludeThisKeyword); -} -function isBindableStaticElementAccessExpression(node, excludeThisKeyword) { - return isLiteralLikeElementAccess(node) && (!excludeThisKeyword && node.expression.kind === 110 /* ThisKeyword */ || isEntityNameExpression(node.expression) || isBindableStaticAccessExpression( - node.expression, - /*excludeThisKeyword*/ - true - )); -} -function isBindableStaticNameExpression(node, excludeThisKeyword) { - return isEntityNameExpression(node) || isBindableStaticAccessExpression(node, excludeThisKeyword); -} -function getNameOrArgument(expr) { - if (isPropertyAccessExpression(expr)) { - return expr.name; - } - return expr.argumentExpression; -} -function getAssignmentDeclarationKindWorker(expr) { - if (isCallExpression(expr)) { - if (!isBindableObjectDefinePropertyCall(expr)) { - return 0 /* None */; - } - const entityName = expr.arguments[0]; - if (isExportsIdentifier(entityName) || isModuleExportsAccessExpression(entityName)) { - return 8 /* ObjectDefinePropertyExports */; - } - if (isBindableStaticAccessExpression(entityName) && getElementOrPropertyAccessName(entityName) === "prototype") { - return 9 /* ObjectDefinePrototypeProperty */; - } - return 7 /* ObjectDefinePropertyValue */; - } - if (expr.operatorToken.kind !== 64 /* EqualsToken */ || !isAccessExpression(expr.left) || isVoidZero(getRightMostAssignedExpression(expr))) { - return 0 /* None */; - } - if (isBindableStaticNameExpression( - expr.left.expression, - /*excludeThisKeyword*/ - true - ) && getElementOrPropertyAccessName(expr.left) === "prototype" && isObjectLiteralExpression(getInitializerOfBinaryExpression(expr))) { - return 6 /* Prototype */; - } - return getAssignmentDeclarationPropertyAccessKind(expr.left); -} -function isVoidZero(node) { - return isVoidExpression(node) && isNumericLiteral(node.expression) && node.expression.text === "0"; -} -function getElementOrPropertyAccessArgumentExpressionOrName(node) { - if (isPropertyAccessExpression(node)) { - return node.name; - } - const arg = skipParentheses(node.argumentExpression); - if (isNumericLiteral(arg) || isStringLiteralLike(arg)) { - return arg; - } - return node; -} -function getElementOrPropertyAccessName(node) { - const name = getElementOrPropertyAccessArgumentExpressionOrName(node); - if (name) { - if (isIdentifier(name)) { - return name.escapedText; - } - if (isStringLiteralLike(name) || isNumericLiteral(name)) { - return escapeLeadingUnderscores(name.text); - } - } - return void 0; -} -function getAssignmentDeclarationPropertyAccessKind(lhs) { - if (lhs.expression.kind === 110 /* ThisKeyword */) { - return 4 /* ThisProperty */; - } else if (isModuleExportsAccessExpression(lhs)) { - return 2 /* ModuleExports */; - } else if (isBindableStaticNameExpression( - lhs.expression, - /*excludeThisKeyword*/ - true - )) { - if (isPrototypeAccess(lhs.expression)) { - return 3 /* PrototypeProperty */; - } - let nextToLast = lhs; - while (!isIdentifier(nextToLast.expression)) { - nextToLast = nextToLast.expression; - } - const id = nextToLast.expression; - if ((id.escapedText === "exports" || id.escapedText === "module" && getElementOrPropertyAccessName(nextToLast) === "exports") && // ExportsProperty does not support binding with computed names - isBindableStaticAccessExpression(lhs)) { - return 1 /* ExportsProperty */; - } - if (isBindableStaticNameExpression( - lhs, - /*excludeThisKeyword*/ - true - ) || isElementAccessExpression(lhs) && isDynamicName(lhs)) { - return 5 /* Property */; - } - } - return 0 /* None */; -} -function getInitializerOfBinaryExpression(expr) { - while (isBinaryExpression(expr.right)) { - expr = expr.right; - } - return expr.right; -} -function isPrototypePropertyAssignment(node) { - return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; -} -function isSpecialPropertyDeclaration(expr) { - return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); -} -function setValueDeclaration(symbol, node) { - const { valueDeclaration } = symbol; - if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { - symbol.valueDeclaration = node; - } -} -function isFunctionSymbol(symbol) { - if (!symbol || !symbol.valueDeclaration) { - return false; - } - const decl = symbol.valueDeclaration; - return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); -} -function canHaveModuleSpecifier(node) { - switch (node == null ? void 0 : node.kind) { - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 273 /* ImportClause */: - case 280 /* NamespaceExport */: - case 274 /* NamespaceImport */: - case 281 /* ExportSpecifier */: - case 276 /* ImportSpecifier */: - case 205 /* ImportType */: - return true; - } - return false; -} -function tryGetModuleSpecifierFromDeclaration(node) { - var _a, _b; - switch (node.kind) { - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - return (_a = findAncestor(node.initializer, (node2) => isRequireCall( - node2, - /*requireStringLiteralLikeArgument*/ - true - ))) == null ? void 0 : _a.arguments[0]; - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 351 /* JSDocImportTag */: - return tryCast(node.moduleSpecifier, isStringLiteralLike); - case 271 /* ImportEqualsDeclaration */: - return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); - case 273 /* ImportClause */: - case 280 /* NamespaceExport */: - return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); - case 274 /* NamespaceImport */: - case 281 /* ExportSpecifier */: - return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); - case 276 /* ImportSpecifier */: - return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); - case 205 /* ImportType */: - return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - default: - Debug.assertNever(node); - } -} -function shouldRewriteModuleSpecifier(specifier, compilerOptions) { - return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier); -} -function getExternalModuleName(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 351 /* JSDocImportTag */: - return node.moduleSpecifier; - case 271 /* ImportEqualsDeclaration */: - return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; - case 205 /* ImportType */: - return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; - case 213 /* CallExpression */: - return node.arguments[0]; - case 267 /* ModuleDeclaration */: - return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; - default: - return Debug.assertNever(node); - } -} -function getNamespaceDeclarationNode(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); - case 271 /* ImportEqualsDeclaration */: - return node; - case 278 /* ExportDeclaration */: - return node.exportClause && tryCast(node.exportClause, isNamespaceExport); - default: - return Debug.assertNever(node); - } -} -function isDefaultImport(node) { - return (node.kind === 272 /* ImportDeclaration */ || node.kind === 351 /* JSDocImportTag */) && !!node.importClause && !!node.importClause.name; -} -function hasQuestionToken(node) { - switch (node.kind) { - case 169 /* Parameter */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 304 /* ShorthandPropertyAssignment */: - case 303 /* PropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return node.questionToken !== void 0; - } - return false; -} -function isJSDocConstructSignature(node) { - const param = isJSDocFunctionType(node) ? firstOrUndefined(node.parameters) : void 0; - const name = tryCast(param && param.name, isIdentifier); - return !!name && name.escapedText === "new"; -} -function isJSDocTypeAlias(node) { - return node.kind === 346 /* JSDocTypedefTag */ || node.kind === 338 /* JSDocCallbackTag */ || node.kind === 340 /* JSDocEnumTag */; -} -function isTypeAlias(node) { - return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); -} -function getSourceOfAssignment(node) { - return isExpressionStatement(node) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 64 /* EqualsToken */ ? getRightMostAssignedExpression(node.expression) : void 0; -} -function getSourceOfDefaultedAssignment(node) { - return isExpressionStatement(node) && isBinaryExpression(node.expression) && getAssignmentDeclarationKind(node.expression) !== 0 /* None */ && isBinaryExpression(node.expression.right) && (node.expression.right.operatorToken.kind === 57 /* BarBarToken */ || node.expression.right.operatorToken.kind === 61 /* QuestionQuestionToken */) ? node.expression.right.right : void 0; -} -function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { - switch (node.kind) { - case 243 /* VariableStatement */: - const v = getSingleVariableOfVariableStatement(node); - return v && v.initializer; - case 172 /* PropertyDeclaration */: - return node.initializer; - case 303 /* PropertyAssignment */: - return node.initializer; - } -} -function getSingleVariableOfVariableStatement(node) { - return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; -} -function getNestedModuleDeclaration(node) { - return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; -} -function canHaveFlowNode(node) { - if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { - return true; - } - switch (node.kind) { - case 80 /* Identifier */: - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 166 /* QualifiedName */: - case 236 /* MetaProperty */: - case 212 /* ElementAccessExpression */: - case 211 /* PropertyAccessExpression */: - case 208 /* BindingElement */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return true; - default: - return false; - } -} -function canHaveJSDoc(node) { - switch (node.kind) { - case 219 /* ArrowFunction */: - case 226 /* BinaryExpression */: - case 241 /* Block */: - case 252 /* BreakStatement */: - case 179 /* CallSignature */: - case 296 /* CaseClause */: - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 175 /* ClassStaticBlockDeclaration */: - case 176 /* Constructor */: - case 185 /* ConstructorType */: - case 180 /* ConstructSignature */: - case 251 /* ContinueStatement */: - case 259 /* DebuggerStatement */: - case 246 /* DoStatement */: - case 212 /* ElementAccessExpression */: - case 242 /* EmptyStatement */: - case 1 /* EndOfFileToken */: - case 266 /* EnumDeclaration */: - case 306 /* EnumMember */: - case 277 /* ExportAssignment */: - case 278 /* ExportDeclaration */: - case 281 /* ExportSpecifier */: - case 244 /* ExpressionStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 248 /* ForStatement */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 184 /* FunctionType */: - case 177 /* GetAccessor */: - case 80 /* Identifier */: - case 245 /* IfStatement */: - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 181 /* IndexSignature */: - case 264 /* InterfaceDeclaration */: - case 317 /* JSDocFunctionType */: - case 323 /* JSDocSignature */: - case 256 /* LabeledStatement */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 267 /* ModuleDeclaration */: - case 202 /* NamedTupleMember */: - case 270 /* NamespaceExportDeclaration */: - case 210 /* ObjectLiteralExpression */: - case 169 /* Parameter */: - case 217 /* ParenthesizedExpression */: - case 211 /* PropertyAccessExpression */: - case 303 /* PropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 253 /* ReturnStatement */: - case 240 /* SemicolonClassElement */: - case 178 /* SetAccessor */: - case 304 /* ShorthandPropertyAssignment */: - case 305 /* SpreadAssignment */: - case 255 /* SwitchStatement */: - case 257 /* ThrowStatement */: - case 258 /* TryStatement */: - case 265 /* TypeAliasDeclaration */: - case 168 /* TypeParameter */: - case 260 /* VariableDeclaration */: - case 243 /* VariableStatement */: - case 247 /* WhileStatement */: - case 254 /* WithStatement */: - return true; - default: - return false; - } -} -function getJSDocCommentsAndTags(hostNode, noCache) { - let result; - if (isVariableLike(hostNode) && hasInitializer(hostNode) && hasJSDocNodes(hostNode.initializer)) { - result = addRange(result, filterOwnedJSDocTags(hostNode, hostNode.initializer.jsDoc)); - } - let node = hostNode; - while (node && node.parent) { - if (hasJSDocNodes(node)) { - result = addRange(result, filterOwnedJSDocTags(hostNode, node.jsDoc)); - } - if (node.kind === 169 /* Parameter */) { - result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); - break; - } - if (node.kind === 168 /* TypeParameter */) { - result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); - break; - } - node = getNextJSDocCommentLocation(node); - } - return result || emptyArray; -} -function filterOwnedJSDocTags(hostNode, comments) { - const lastJsDoc = last(comments); - return flatMap(comments, (jsDoc) => { - if (jsDoc === lastJsDoc) { - const ownedTags = filter(jsDoc.tags, (tag) => ownsJSDocTag(hostNode, tag)); - return jsDoc.tags === ownedTags ? [jsDoc] : ownedTags; - } else { - return filter(jsDoc.tags, isJSDocOverloadTag); - } - }); -} -function ownsJSDocTag(hostNode, tag) { - return !(isJSDocTypeTag(tag) || isJSDocSatisfiesTag(tag)) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode; -} -function getNextJSDocCommentLocation(node) { - const parent = node.parent; - if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isAssignmentExpression(node)) { - return parent; - } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isAssignmentExpression(parent))) { - return parent.parent; - } else if (parent.parent && parent.parent.parent && (getSingleVariableOfVariableStatement(parent.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node || getSourceOfDefaultedAssignment(parent.parent.parent))) { - return parent.parent.parent; - } -} -function getParameterSymbolFromJSDoc(node) { - if (node.symbol) { - return node.symbol; - } - if (!isIdentifier(node.name)) { - return void 0; - } - const name = node.name.escapedText; - const decl = getHostSignatureFromJSDoc(node); - if (!decl) { - return void 0; - } - const parameter = find(decl.parameters, (p) => p.name.kind === 80 /* Identifier */ && p.name.escapedText === name); - return parameter && parameter.symbol; -} -function getEffectiveContainerForJSDocTemplateTag(node) { - if (isJSDoc(node.parent) && node.parent.tags) { - const typeAlias = find(node.parent.tags, isJSDocTypeAlias); - if (typeAlias) { - return typeAlias; - } - } - return getHostSignatureFromJSDoc(node); -} -function getJSDocOverloadTags(node) { - return getAllJSDocTags(node, isJSDocOverloadTag); -} -function getHostSignatureFromJSDoc(node) { - const host = getEffectiveJSDocHost(node); - if (host) { - return isPropertySignature(host) && host.type && isFunctionLike(host.type) ? host.type : isFunctionLike(host) ? host : void 0; - } - return void 0; -} -function getEffectiveJSDocHost(node) { - const host = getJSDocHost(node); - if (host) { - return getSourceOfDefaultedAssignment(host) || getSourceOfAssignment(host) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(host) || getSingleVariableOfVariableStatement(host) || getNestedModuleDeclaration(host) || host; - } -} -function getJSDocHost(node) { - const jsDoc = getJSDocRoot(node); - if (!jsDoc) { - return void 0; - } - const host = jsDoc.parent; - if (host && host.jsDoc && jsDoc === lastOrUndefined(host.jsDoc)) { - return host; - } -} -function getJSDocRoot(node) { - return findAncestor(node.parent, isJSDoc); -} -function getTypeParameterFromJsDoc(node) { - const name = node.name.escapedText; - const { typeParameters } = node.parent.parent.parent; - return typeParameters && find(typeParameters, (p) => p.name.escapedText === name); -} -function getAssignmentTarget(node) { - let parent = node.parent; - while (true) { - switch (parent.kind) { - case 226 /* BinaryExpression */: - const binaryExpression = parent; - const binaryOperator = binaryExpression.operatorToken.kind; - return isAssignmentOperator(binaryOperator) && binaryExpression.left === node ? binaryExpression : void 0; - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - const unaryExpression = parent; - const unaryOperator = unaryExpression.operator; - return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? unaryExpression : void 0; - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - const forInOrOfStatement = parent; - return forInOrOfStatement.initializer === node ? forInOrOfStatement : void 0; - case 217 /* ParenthesizedExpression */: - case 209 /* ArrayLiteralExpression */: - case 230 /* SpreadElement */: - case 235 /* NonNullExpression */: - node = parent; - break; - case 305 /* SpreadAssignment */: - node = parent.parent; - break; - case 304 /* ShorthandPropertyAssignment */: - if (parent.name !== node) { - return void 0; - } - node = parent.parent; - break; - case 303 /* PropertyAssignment */: - if (parent.name === node) { - return void 0; - } - node = parent.parent; - break; - default: - return void 0; - } - parent = node.parent; - } -} -function getAssignmentTargetKind(node) { - const target = getAssignmentTarget(node); - if (!target) { - return 0 /* None */; - } - switch (target.kind) { - case 226 /* BinaryExpression */: - const binaryOperator = target.operatorToken.kind; - return binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */; - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return 2 /* Compound */; - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - return 1 /* Definite */; - } -} -function isAssignmentTarget(node) { - return !!getAssignmentTarget(node); -} -function isCompoundLikeAssignment(assignment) { - const right = skipParentheses(assignment.right); - return right.kind === 226 /* BinaryExpression */ && isShiftOperatorOrHigher(right.operatorToken.kind); -} -function isInCompoundLikeAssignment(node) { - const target = getAssignmentTarget(node); - return !!target && isAssignmentExpression( - target, - /*excludeCompoundAssignment*/ - true - ) && isCompoundLikeAssignment(target); -} -function isNodeWithPossibleHoistedDeclaration(node) { - switch (node.kind) { - case 241 /* Block */: - case 243 /* VariableStatement */: - case 254 /* WithStatement */: - case 245 /* IfStatement */: - case 255 /* SwitchStatement */: - case 269 /* CaseBlock */: - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - case 256 /* LabeledStatement */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 258 /* TryStatement */: - case 299 /* CatchClause */: - return true; - } - return false; -} -function isValueSignatureDeclaration(node) { - return isFunctionExpression(node) || isArrowFunction(node) || isMethodOrAccessor(node) || isFunctionDeclaration(node) || isConstructorDeclaration(node); -} -function walkUp(node, kind) { - while (node && node.kind === kind) { - node = node.parent; - } - return node; -} -function walkUpParenthesizedTypes(node) { - return walkUp(node, 196 /* ParenthesizedType */); -} -function walkUpParenthesizedExpressions(node) { - return walkUp(node, 217 /* ParenthesizedExpression */); -} -function walkUpParenthesizedTypesAndGetParentAndChild(node) { - let child; - while (node && node.kind === 196 /* ParenthesizedType */) { - child = node; - node = node.parent; - } - return [child, node]; -} -function skipTypeParentheses(node) { - while (isParenthesizedTypeNode(node)) node = node.type; - return node; -} -function skipParentheses(node, excludeJSDocTypeAssertions) { - const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */; - return skipOuterExpressions(node, flags); -} -function isDeleteTarget(node) { - if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { - return false; - } - node = walkUpParenthesizedExpressions(node.parent); - return node && node.kind === 220 /* DeleteExpression */; -} -function isNodeDescendantOf(node, ancestor) { - while (node) { - if (node === ancestor) return true; - node = node.parent; - } - return false; -} -function isDeclarationName(name) { - return !isSourceFile(name) && !isBindingPattern(name) && isDeclaration(name.parent) && name.parent.name === name; -} -function isLiteralComputedPropertyDeclarationName(node) { - return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); -} -function isIdentifierName(node) { - const parent = node.parent; - switch (parent.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 306 /* EnumMember */: - case 303 /* PropertyAssignment */: - case 211 /* PropertyAccessExpression */: - return parent.name === node; - case 166 /* QualifiedName */: - return parent.right === node; - case 208 /* BindingElement */: - case 276 /* ImportSpecifier */: - return parent.propertyName === node; - case 281 /* ExportSpecifier */: - case 291 /* JsxAttribute */: - case 285 /* JsxSelfClosingElement */: - case 286 /* JsxOpeningElement */: - case 287 /* JsxClosingElement */: - return true; - } - return false; -} -function getAliasDeclarationFromName(node) { - switch (node.parent.kind) { - case 273 /* ImportClause */: - case 276 /* ImportSpecifier */: - case 274 /* NamespaceImport */: - case 281 /* ExportSpecifier */: - case 277 /* ExportAssignment */: - case 271 /* ImportEqualsDeclaration */: - case 280 /* NamespaceExport */: - return node.parent; - case 166 /* QualifiedName */: - do { - node = node.parent; - } while (node.parent.kind === 166 /* QualifiedName */); - return getAliasDeclarationFromName(node); - } -} -function isAliasableExpression(e) { - return isEntityNameExpression(e) || isClassExpression(e); -} -function exportAssignmentIsAlias(node) { - const e = getExportAssignmentExpression(node); - return isAliasableExpression(e); -} -function getExportAssignmentExpression(node) { - return isExportAssignment(node) ? node.expression : node.right; -} -function getPropertyAssignmentAliasLikeExpression(node) { - return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; -} -function getEffectiveBaseTypeNode(node) { - const baseType = getClassExtendsHeritageElement(node); - if (baseType && isInJSFile(node)) { - const tag = getJSDocAugmentsTag(node); - if (tag) { - return tag.class; - } - } - return baseType; -} -function getClassExtendsHeritageElement(node) { - const heritageClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : void 0; -} -function getEffectiveImplementsTypeNodes(node) { - if (isInJSFile(node)) { - return getJSDocImplementsTags(node).map((n) => n.class); - } else { - const heritageClause = getHeritageClause(node.heritageClauses, 119 /* ImplementsKeyword */); - return heritageClause == null ? void 0 : heritageClause.types; - } -} -function getInterfaceBaseTypeNodes(node) { - const heritageClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - return heritageClause ? heritageClause.types : void 0; -} -function getHeritageClause(clauses, kind) { - if (clauses) { - for (const clause of clauses) { - if (clause.token === kind) { - return clause; - } - } - } - return void 0; -} -function getAncestor(node, kind) { - while (node) { - if (node.kind === kind) { - return node; - } - node = node.parent; - } - return void 0; -} -function isKeyword(token) { - return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; -} -function isPunctuation(token) { - return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; -} -function isKeywordOrPunctuation(token) { - return isKeyword(token) || isPunctuation(token); -} -function isContextualKeyword(token) { - return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; -} -function isNonContextualKeyword(token) { - return isKeyword(token) && !isContextualKeyword(token); -} -function isStringANonContextualKeyword(name) { - const token = stringToToken(name); - return token !== void 0 && isNonContextualKeyword(token); -} -function isIdentifierANonContextualKeyword(node) { - const originalKeywordKind = identifierToKeywordKind(node); - return !!originalKeywordKind && !isContextualKeyword(originalKeywordKind); -} -function getFunctionFlags(node) { - if (!node) { - return 4 /* Invalid */; - } - let flags = 0 /* Normal */; - switch (node.kind) { - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 174 /* MethodDeclaration */: - if (node.asteriskToken) { - flags |= 1 /* Generator */; - } - // falls through - case 219 /* ArrowFunction */: - if (hasSyntacticModifier(node, 1024 /* Async */)) { - flags |= 2 /* Async */; - } - break; - } - if (!node.body) { - flags |= 4 /* Invalid */; - } - return flags; -} -function isAsyncFunction(node) { - switch (node.kind) { - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 1024 /* Async */); - } - return false; -} -function isStringOrNumericLiteralLike(node) { - return isStringLiteralLike(node) || isNumericLiteral(node); -} -function isSignedNumericLiteral(node) { - return isPrefixUnaryExpression(node) && (node.operator === 40 /* PlusToken */ || node.operator === 41 /* MinusToken */) && isNumericLiteral(node.operand); -} -function hasDynamicName(declaration) { - const name = getNameOfDeclaration(declaration); - return !!name && isDynamicName(name); -} -function isDynamicName(name) { - if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { - return false; - } - const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; - return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral(expr); -} -function getPropertyNameForPropertyNameNode(name) { - switch (name.kind) { - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - return name.escapedText; - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - return escapeLeadingUnderscores(name.text); - case 167 /* ComputedPropertyName */: - const nameExpression = name.expression; - if (isStringOrNumericLiteralLike(nameExpression)) { - return escapeLeadingUnderscores(nameExpression.text); - } else if (isSignedNumericLiteral(nameExpression)) { - if (nameExpression.operator === 41 /* MinusToken */) { - return tokenToString(nameExpression.operator) + nameExpression.operand.text; - } - return nameExpression.operand.text; - } - return void 0; - case 295 /* JsxNamespacedName */: - return getEscapedTextOfJsxNamespacedName(name); - default: - return Debug.assertNever(name); - } -} -function isPropertyNameLiteral(node) { - switch (node.kind) { - case 80 /* Identifier */: - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 9 /* NumericLiteral */: - return true; - default: - return false; - } -} -function getTextOfIdentifierOrLiteral(node) { - return isMemberName(node) ? idText(node) : isJsxNamespacedName(node) ? getTextOfJsxNamespacedName(node) : node.text; -} -function getEscapedTextOfIdentifierOrLiteral(node) { - return isMemberName(node) ? node.escapedText : isJsxNamespacedName(node) ? getEscapedTextOfJsxNamespacedName(node) : escapeLeadingUnderscores(node.text); -} -function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) { - return `__#${getSymbolId(containingClassSymbol)}@${description}`; -} -function isKnownSymbol(symbol) { - return startsWith(symbol.escapedName, "__@"); -} -function isProtoSetter(node) { - return isIdentifier(node) ? idText(node) === "__proto__" : isStringLiteral(node) && node.text === "__proto__"; -} -function isAnonymousFunctionDefinition(node, cb) { - node = skipOuterExpressions(node); - switch (node.kind) { - case 231 /* ClassExpression */: - if (classHasDeclaredOrExplicitlyAssignedName(node)) { - return false; - } - break; - case 218 /* FunctionExpression */: - if (node.name) { - return false; - } - break; - case 219 /* ArrowFunction */: - break; - default: - return false; - } - return typeof cb === "function" ? cb(node) : true; -} -function isNamedEvaluationSource(node) { - switch (node.kind) { - case 303 /* PropertyAssignment */: - return !isProtoSetter(node.name); - case 304 /* ShorthandPropertyAssignment */: - return !!node.objectAssignmentInitializer; - case 260 /* VariableDeclaration */: - return isIdentifier(node.name) && !!node.initializer; - case 169 /* Parameter */: - return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 208 /* BindingElement */: - return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; - case 172 /* PropertyDeclaration */: - return !!node.initializer; - case 226 /* BinaryExpression */: - switch (node.operatorToken.kind) { - case 64 /* EqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 76 /* BarBarEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return isIdentifier(node.left); - } - break; - case 277 /* ExportAssignment */: - return true; - } - return false; -} -function isNamedEvaluation(node, cb) { - if (!isNamedEvaluationSource(node)) return false; - switch (node.kind) { - case 303 /* PropertyAssignment */: - return isAnonymousFunctionDefinition(node.initializer, cb); - case 304 /* ShorthandPropertyAssignment */: - return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 208 /* BindingElement */: - case 172 /* PropertyDeclaration */: - return isAnonymousFunctionDefinition(node.initializer, cb); - case 226 /* BinaryExpression */: - return isAnonymousFunctionDefinition(node.right, cb); - case 277 /* ExportAssignment */: - return isAnonymousFunctionDefinition(node.expression, cb); - } -} -function isPushOrUnshiftIdentifier(node) { - return node.escapedText === "push" || node.escapedText === "unshift"; -} -function isPartOfParameterDeclaration(node) { - const root = getRootDeclaration(node); - return root.kind === 169 /* Parameter */; -} -function getRootDeclaration(node) { - while (node.kind === 208 /* BindingElement */) { - node = node.parent.parent; - } - return node; -} -function nodeStartsNewLexicalEnvironment(node) { - const kind = node.kind; - return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 307 /* SourceFile */; -} -function nodeIsSynthesized(range) { - return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); -} -function getExpressionAssociativity(expression) { - const operator = getOperator(expression); - const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; - return getOperatorAssociativity(expression.kind, operator, hasArguments); -} -function getOperatorAssociativity(kind, operator, hasArguments) { - switch (kind) { - case 214 /* NewExpression */: - return hasArguments ? 0 /* Left */ : 1 /* Right */; - case 224 /* PrefixUnaryExpression */: - case 221 /* TypeOfExpression */: - case 222 /* VoidExpression */: - case 220 /* DeleteExpression */: - case 223 /* AwaitExpression */: - case 227 /* ConditionalExpression */: - case 229 /* YieldExpression */: - return 1 /* Right */; - case 226 /* BinaryExpression */: - switch (operator) { - case 43 /* AsteriskAsteriskToken */: - case 64 /* EqualsToken */: - case 65 /* PlusEqualsToken */: - case 66 /* MinusEqualsToken */: - case 68 /* AsteriskAsteriskEqualsToken */: - case 67 /* AsteriskEqualsToken */: - case 69 /* SlashEqualsToken */: - case 70 /* PercentEqualsToken */: - case 71 /* LessThanLessThanEqualsToken */: - case 72 /* GreaterThanGreaterThanEqualsToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - case 74 /* AmpersandEqualsToken */: - case 79 /* CaretEqualsToken */: - case 75 /* BarEqualsToken */: - case 76 /* BarBarEqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return 1 /* Right */; - } - } - return 0 /* Left */; -} -function getExpressionPrecedence(expression) { - const operator = getOperator(expression); - const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; - return getOperatorPrecedence(expression.kind, operator, hasArguments); -} -function getOperator(expression) { - if (expression.kind === 226 /* BinaryExpression */) { - return expression.operatorToken.kind; - } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { - return expression.operator; - } else { - return expression.kind; - } -} -function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { - switch (nodeKind) { - case 356 /* CommaListExpression */: - return 0 /* Comma */; - case 230 /* SpreadElement */: - return 1 /* Spread */; - case 229 /* YieldExpression */: - return 2 /* Yield */; - case 227 /* ConditionalExpression */: - return 4 /* Conditional */; - case 226 /* BinaryExpression */: - switch (operatorKind) { - case 28 /* CommaToken */: - return 0 /* Comma */; - case 64 /* EqualsToken */: - case 65 /* PlusEqualsToken */: - case 66 /* MinusEqualsToken */: - case 68 /* AsteriskAsteriskEqualsToken */: - case 67 /* AsteriskEqualsToken */: - case 69 /* SlashEqualsToken */: - case 70 /* PercentEqualsToken */: - case 71 /* LessThanLessThanEqualsToken */: - case 72 /* GreaterThanGreaterThanEqualsToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - case 74 /* AmpersandEqualsToken */: - case 79 /* CaretEqualsToken */: - case 75 /* BarEqualsToken */: - case 76 /* BarBarEqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return 3 /* Assignment */; - default: - return getBinaryOperatorPrecedence(operatorKind); - } - // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? - case 216 /* TypeAssertionExpression */: - case 235 /* NonNullExpression */: - case 224 /* PrefixUnaryExpression */: - case 221 /* TypeOfExpression */: - case 222 /* VoidExpression */: - case 220 /* DeleteExpression */: - case 223 /* AwaitExpression */: - return 16 /* Unary */; - case 225 /* PostfixUnaryExpression */: - return 17 /* Update */; - case 213 /* CallExpression */: - return 18 /* LeftHandSide */; - case 214 /* NewExpression */: - return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; - case 215 /* TaggedTemplateExpression */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - case 236 /* MetaProperty */: - return 19 /* Member */; - case 234 /* AsExpression */: - case 238 /* SatisfiesExpression */: - return 11 /* Relational */; - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - case 106 /* NullKeyword */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - case 209 /* ArrayLiteralExpression */: - case 210 /* ObjectLiteralExpression */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 231 /* ClassExpression */: - case 14 /* RegularExpressionLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 228 /* TemplateExpression */: - case 217 /* ParenthesizedExpression */: - case 232 /* OmittedExpression */: - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 288 /* JsxFragment */: - return 20 /* Primary */; - default: - return -1 /* Invalid */; - } -} -function getBinaryOperatorPrecedence(kind) { - switch (kind) { - case 61 /* QuestionQuestionToken */: - return 4 /* Coalesce */; - case 57 /* BarBarToken */: - return 5 /* LogicalOR */; - case 56 /* AmpersandAmpersandToken */: - return 6 /* LogicalAND */; - case 52 /* BarToken */: - return 7 /* BitwiseOR */; - case 53 /* CaretToken */: - return 8 /* BitwiseXOR */; - case 51 /* AmpersandToken */: - return 9 /* BitwiseAND */; - case 35 /* EqualsEqualsToken */: - case 36 /* ExclamationEqualsToken */: - case 37 /* EqualsEqualsEqualsToken */: - case 38 /* ExclamationEqualsEqualsToken */: - return 10 /* Equality */; - case 30 /* LessThanToken */: - case 32 /* GreaterThanToken */: - case 33 /* LessThanEqualsToken */: - case 34 /* GreaterThanEqualsToken */: - case 104 /* InstanceOfKeyword */: - case 103 /* InKeyword */: - case 130 /* AsKeyword */: - case 152 /* SatisfiesKeyword */: - return 11 /* Relational */; - case 48 /* LessThanLessThanToken */: - case 49 /* GreaterThanGreaterThanToken */: - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - return 12 /* Shift */; - case 40 /* PlusToken */: - case 41 /* MinusToken */: - return 13 /* Additive */; - case 42 /* AsteriskToken */: - case 44 /* SlashToken */: - case 45 /* PercentToken */: - return 14 /* Multiplicative */; - case 43 /* AsteriskAsteriskToken */: - return 15 /* Exponentiation */; - } - return -1; -} -function getSemanticJsxChildren(children) { - return filter(children, (i) => { - switch (i.kind) { - case 294 /* JsxExpression */: - return !!i.expression; - case 12 /* JsxText */: - return !i.containsOnlyTriviaWhiteSpaces; - default: - return true; - } - }); -} -function createDiagnosticCollection() { - let nonFileDiagnostics = []; - const filesWithDiagnostics = []; - const fileDiagnostics = /* @__PURE__ */ new Map(); - let hasReadNonFileDiagnostics = false; - return { - add, - lookup, - getGlobalDiagnostics, - getDiagnostics - }; - function lookup(diagnostic) { - let diagnostics; - if (diagnostic.file) { - diagnostics = fileDiagnostics.get(diagnostic.file.fileName); - } else { - diagnostics = nonFileDiagnostics; - } - if (!diagnostics) { - return void 0; - } - const result = binarySearch(diagnostics, diagnostic, identity, compareDiagnosticsSkipRelatedInformation); - if (result >= 0) { - return diagnostics[result]; - } - if (~result > 0 && diagnosticsEqualityComparer(diagnostic, diagnostics[~result - 1])) { - return diagnostics[~result - 1]; - } - return void 0; - } - function add(diagnostic) { - let diagnostics; - if (diagnostic.file) { - diagnostics = fileDiagnostics.get(diagnostic.file.fileName); - if (!diagnostics) { - diagnostics = []; - fileDiagnostics.set(diagnostic.file.fileName, diagnostics); - insertSorted(filesWithDiagnostics, diagnostic.file.fileName, compareStringsCaseSensitive); - } - } else { - if (hasReadNonFileDiagnostics) { - hasReadNonFileDiagnostics = false; - nonFileDiagnostics = nonFileDiagnostics.slice(); - } - diagnostics = nonFileDiagnostics; - } - insertSorted(diagnostics, diagnostic, compareDiagnosticsSkipRelatedInformation, diagnosticsEqualityComparer); - } - function getGlobalDiagnostics() { - hasReadNonFileDiagnostics = true; - return nonFileDiagnostics; - } - function getDiagnostics(fileName) { - if (fileName) { - return fileDiagnostics.get(fileName) || []; - } - const fileDiags = flatMapToMutable(filesWithDiagnostics, (f) => fileDiagnostics.get(f)); - if (!nonFileDiagnostics.length) { - return fileDiags; - } - fileDiags.unshift(...nonFileDiagnostics); - return fileDiags; - } -} -var templateSubstitutionRegExp = /\$\{/g; -function escapeTemplateSubstitution(str) { - return str.replace(templateSubstitutionRegExp, "\\${"); -} -function containsInvalidEscapeFlag(node) { - return !!((node.templateFlags || 0) & 2048 /* ContainsInvalidEscape */); -} -function hasInvalidEscape(template) { - return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal))); -} -var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\u2028\u2029\u0085]/g; -var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\u2028\u2029\u0085]/g; -var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g; -var escapedCharsMap = new Map(Object.entries({ - " ": "\\t", - "\v": "\\v", - "\f": "\\f", - "\b": "\\b", - "\r": "\\r", - "\n": "\\n", - "\\": "\\\\", - '"': '\\"', - "'": "\\'", - "`": "\\`", - "\u2028": "\\u2028", - // lineSeparator - "\u2029": "\\u2029", - // paragraphSeparator - "\x85": "\\u0085", - // nextLine - "\r\n": "\\r\\n" - // special case for CRLFs in backticks -})); -function encodeUtf16EscapeSequence(charCode) { - const hexCharCode = charCode.toString(16).toUpperCase(); - const paddedHexCode = ("0000" + hexCharCode).slice(-4); - return "\\u" + paddedHexCode; -} -function getReplacement(c, offset, input) { - if (c.charCodeAt(0) === 0 /* nullCharacter */) { - const lookAhead = input.charCodeAt(offset + c.length); - if (lookAhead >= 48 /* _0 */ && lookAhead <= 57 /* _9 */) { - return "\\x00"; - } - return "\\0"; - } - return escapedCharsMap.get(c) || encodeUtf16EscapeSequence(c.charCodeAt(0)); -} -function escapeString(s, quoteChar) { - const escapedCharsRegExp = quoteChar === 96 /* backtick */ ? backtickQuoteEscapedCharsRegExp : quoteChar === 39 /* singleQuote */ ? singleQuoteEscapedCharsRegExp : doubleQuoteEscapedCharsRegExp; - return s.replace(escapedCharsRegExp, getReplacement); -} -var nonAsciiCharacters = /[^\u0000-\u007F]/g; -function escapeNonAsciiString(s, quoteChar) { - s = escapeString(s, quoteChar); - return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, (c) => encodeUtf16EscapeSequence(c.charCodeAt(0))) : s; -} -var jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; -var jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; -var jsxEscapedCharsMap = new Map(Object.entries({ - '"': """, - "'": "'" -})); -function encodeJsxCharacterEntity(charCode) { - const hexCharCode = charCode.toString(16).toUpperCase(); - return "&#x" + hexCharCode + ";"; -} -function getJsxAttributeStringReplacement(c) { - if (c.charCodeAt(0) === 0 /* nullCharacter */) { - return "�"; - } - return jsxEscapedCharsMap.get(c) || encodeJsxCharacterEntity(c.charCodeAt(0)); -} -function escapeJsxAttributeString(s, quoteChar) { - const escapedCharsRegExp = quoteChar === 39 /* singleQuote */ ? jsxSingleQuoteEscapedCharsRegExp : jsxDoubleQuoteEscapedCharsRegExp; - return s.replace(escapedCharsRegExp, getJsxAttributeStringReplacement); -} -function stripQuotes(name) { - const length2 = name.length; - if (length2 >= 2 && name.charCodeAt(0) === name.charCodeAt(length2 - 1) && isQuoteOrBacktick(name.charCodeAt(0))) { - return name.substring(1, length2 - 1); - } - return name; -} -function isQuoteOrBacktick(charCode) { - return charCode === 39 /* singleQuote */ || charCode === 34 /* doubleQuote */ || charCode === 96 /* backtick */; -} -function isIntrinsicJsxName(name) { - const ch = name.charCodeAt(0); - return ch >= 97 /* a */ && ch <= 122 /* z */ || name.includes("-"); -} -var indentStrings = ["", " "]; -function getIndentString(level) { - const singleLevel = indentStrings[1]; - for (let current = indentStrings.length; current <= level; current++) { - indentStrings.push(indentStrings[current - 1] + singleLevel); - } - return indentStrings[level]; -} -function getIndentSize() { - return indentStrings[1].length; -} -function createTextWriter(newLine) { - var output; - var indent2; - var lineStart; - var lineCount; - var linePos; - var hasTrailingComment = false; - function updateLineCountAndPosFor(s) { - const lineStartsOfS = computeLineStarts(s); - if (lineStartsOfS.length > 1) { - lineCount = lineCount + lineStartsOfS.length - 1; - linePos = output.length - s.length + last(lineStartsOfS); - lineStart = linePos - output.length === 0; - } else { - lineStart = false; - } - } - function writeText(s) { - if (s && s.length) { - if (lineStart) { - s = getIndentString(indent2) + s; - lineStart = false; - } - output += s; - updateLineCountAndPosFor(s); - } - } - function write(s) { - if (s) hasTrailingComment = false; - writeText(s); - } - function writeComment(s) { - if (s) hasTrailingComment = true; - writeText(s); - } - function reset() { - output = ""; - indent2 = 0; - lineStart = true; - lineCount = 0; - linePos = 0; - hasTrailingComment = false; - } - function rawWrite(s) { - if (s !== void 0) { - output += s; - updateLineCountAndPosFor(s); - hasTrailingComment = false; - } - } - function writeLiteral(s) { - if (s && s.length) { - write(s); - } - } - function writeLine(force) { - if (!lineStart || force) { - output += newLine; - lineCount++; - linePos = output.length; - lineStart = true; - hasTrailingComment = false; - } - } - reset(); - return { - write, - rawWrite, - writeLiteral, - writeLine, - increaseIndent: () => { - indent2++; - }, - decreaseIndent: () => { - indent2--; - }, - getIndent: () => indent2, - getTextPos: () => output.length, - getLine: () => lineCount, - getColumn: () => lineStart ? indent2 * getIndentSize() : output.length - linePos, - getText: () => output, - isAtStartOfLine: () => lineStart, - hasTrailingComment: () => hasTrailingComment, - hasTrailingWhitespace: () => !!output.length && isWhiteSpaceLike(output.charCodeAt(output.length - 1)), - clear: reset, - writeKeyword: write, - writeOperator: write, - writeParameter: write, - writeProperty: write, - writePunctuation: write, - writeSpace: write, - writeStringLiteral: write, - writeSymbol: (s, _) => write(s), - writeTrailingSemicolon: write, - writeComment - }; -} -function getTrailingSemicolonDeferringWriter(writer) { - let pendingTrailingSemicolon = false; - function commitPendingTrailingSemicolon() { - if (pendingTrailingSemicolon) { - writer.writeTrailingSemicolon(";"); - pendingTrailingSemicolon = false; - } - } - return { - ...writer, - writeTrailingSemicolon() { - pendingTrailingSemicolon = true; - }, - writeLiteral(s) { - commitPendingTrailingSemicolon(); - writer.writeLiteral(s); - }, - writeStringLiteral(s) { - commitPendingTrailingSemicolon(); - writer.writeStringLiteral(s); - }, - writeSymbol(s, sym) { - commitPendingTrailingSemicolon(); - writer.writeSymbol(s, sym); - }, - writePunctuation(s) { - commitPendingTrailingSemicolon(); - writer.writePunctuation(s); - }, - writeKeyword(s) { - commitPendingTrailingSemicolon(); - writer.writeKeyword(s); - }, - writeOperator(s) { - commitPendingTrailingSemicolon(); - writer.writeOperator(s); - }, - writeParameter(s) { - commitPendingTrailingSemicolon(); - writer.writeParameter(s); - }, - writeSpace(s) { - commitPendingTrailingSemicolon(); - writer.writeSpace(s); - }, - writeProperty(s) { - commitPendingTrailingSemicolon(); - writer.writeProperty(s); - }, - writeComment(s) { - commitPendingTrailingSemicolon(); - writer.writeComment(s); - }, - writeLine() { - commitPendingTrailingSemicolon(); - writer.writeLine(); - }, - increaseIndent() { - commitPendingTrailingSemicolon(); - writer.increaseIndent(); - }, - decreaseIndent() { - commitPendingTrailingSemicolon(); - writer.decreaseIndent(); - } - }; -} -function hostUsesCaseSensitiveFileNames(host) { - return host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : false; -} -function hostGetCanonicalFileName(host) { - return createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(host)); -} -function getResolvedExternalModuleName(host, file, referenceFile) { - return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName); -} -function getCanonicalAbsolutePath(host, path) { - return host.getCanonicalFileName(getNormalizedAbsolutePath(path, host.getCurrentDirectory())); -} -function getExternalModuleNameFromDeclaration(host, resolver, declaration) { - const file = resolver.getExternalModuleFileFromDeclaration(declaration); - if (!file || file.isDeclarationFile) { - return void 0; - } - const specifier = getExternalModuleName(declaration); - if (specifier && isStringLiteralLike(specifier) && !pathIsRelative(specifier.text) && !getCanonicalAbsolutePath(host, file.path).includes(getCanonicalAbsolutePath(host, ensureTrailingDirectorySeparator(host.getCommonSourceDirectory())))) { - return void 0; - } - return getResolvedExternalModuleName(host, file); -} -function getExternalModuleNameFromPath(host, fileName, referencePath) { - const getCanonicalFileName = (f) => host.getCanonicalFileName(f); - const dir = toPath(referencePath ? getDirectoryPath(referencePath) : host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName); - const filePath = getNormalizedAbsolutePath(fileName, host.getCurrentDirectory()); - const relativePath = getRelativePathToDirectoryOrUrl( - dir, - filePath, - dir, - getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - false - ); - const extensionless = removeFileExtension(relativePath); - return referencePath ? ensurePathIsNonModuleName(extensionless) : extensionless; -} -function getOwnEmitOutputFilePath(fileName, host, extension) { - const compilerOptions = host.getCompilerOptions(); - let emitOutputFilePathWithoutExtension; - if (compilerOptions.outDir) { - emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(fileName, host, compilerOptions.outDir)); - } else { - emitOutputFilePathWithoutExtension = removeFileExtension(fileName); - } - return emitOutputFilePathWithoutExtension + extension; -} -function getDeclarationEmitOutputFilePath(fileName, host) { - return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host); -} -function getDeclarationEmitOutputFilePathWorker(fileName, options, host) { - const outputDir = options.declarationDir || options.outDir; - const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName; - const declarationExtension = getDeclarationEmitExtensionForPath(path); - return removeFileExtension(path) + declarationExtension; -} -function getDeclarationEmitExtensionForPath(path) { - return fileExtensionIsOneOf(path, [".mjs" /* Mjs */, ".mts" /* Mts */]) ? ".d.mts" /* Dmts */ : fileExtensionIsOneOf(path, [".cjs" /* Cjs */, ".cts" /* Cts */]) ? ".d.cts" /* Dcts */ : fileExtensionIsOneOf(path, [".json" /* Json */]) ? `.d.json.ts` : ( - // Drive-by redefinition of json declaration file output name so if it's ever enabled, it behaves well - ".d.ts" /* Dts */ - ); -} -function getPossibleOriginalInputExtensionForExtension(path) { - return fileExtensionIsOneOf(path, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path, [`.d.json.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */]; -} -function getPathsBasePath(options, host) { - var _a; - if (!options.paths) return void 0; - return options.baseUrl ?? Debug.checkDefined(options.pathsBasePath || ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'."); -} -function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) { - const options = host.getCompilerOptions(); - if (options.outFile) { - const moduleKind = getEmitModuleKind(options); - const moduleEmitEnabled = options.emitDeclarationOnly || moduleKind === 2 /* AMD */ || moduleKind === 4 /* System */; - return filter( - host.getSourceFiles(), - (sourceFile) => (moduleEmitEnabled || !isExternalModule(sourceFile)) && sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) - ); - } else { - const sourceFiles = targetSourceFile === void 0 ? host.getSourceFiles() : [targetSourceFile]; - return filter( - sourceFiles, - (sourceFile) => sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) - ); - } -} -function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) { - const options = host.getCompilerOptions(); - if (options.noEmitForJsFiles && isSourceFileJS(sourceFile)) return false; - if (sourceFile.isDeclarationFile) return false; - if (host.isSourceFileFromExternalLibrary(sourceFile)) return false; - if (forceDtsEmit) return true; - if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) return false; - if (!isJsonSourceFile(sourceFile)) return true; - if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return false; - if (options.outFile) return true; - if (!options.outDir) return false; - if (options.rootDir || options.composite && options.configFilePath) { - const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory()); - const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName); - if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false; - } - return true; -} -function getSourceFilePathInNewDir(fileName, host, newDirPath) { - return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)); -} -function getSourceFilePathInNewDirWorker(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName) { - let sourceFilePath = getNormalizedAbsolutePath(fileName, currentDirectory); - const isSourceFileInCommonSourceDirectory = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0; - sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath; - return combinePaths(newDirPath, sourceFilePath); -} -function writeFile(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) { - host.writeFile( - fileName, - text, - writeByteOrderMark, - (hostErrorMessage) => { - diagnostics.add(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage)); - }, - sourceFiles, - data - ); -} -function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists) { - if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) { - const parentDirectory = getDirectoryPath(directoryPath); - ensureDirectoriesExist(parentDirectory, createDirectory, directoryExists); - createDirectory(directoryPath); - } -} -function writeFileEnsuringDirectories(path, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) { - try { - writeFile2(path, data, writeByteOrderMark); - } catch { - ensureDirectoriesExist(getDirectoryPath(normalizePath(path)), createDirectory, directoryExists); - writeFile2(path, data, writeByteOrderMark); - } -} -function getLineOfLocalPositionFromLineMap(lineMap, pos) { - return computeLineOfPosition(lineMap, pos); -} -function getFirstConstructorWithBody(node) { - return find(node.members, (member) => isConstructorDeclaration(member) && nodeIsPresent(member.body)); -} -function getSetAccessorValueParameter(accessor) { - if (accessor && accessor.parameters.length > 0) { - const hasThis = accessor.parameters.length === 2 && parameterIsThisKeyword(accessor.parameters[0]); - return accessor.parameters[hasThis ? 1 : 0]; - } -} -function getSetAccessorTypeAnnotationNode(accessor) { - const parameter = getSetAccessorValueParameter(accessor); - return parameter && parameter.type; -} -function getThisParameter(signature) { - if (signature.parameters.length && !isJSDocSignature(signature)) { - const thisParameter = signature.parameters[0]; - if (parameterIsThisKeyword(thisParameter)) { - return thisParameter; - } - } -} -function parameterIsThisKeyword(parameter) { - return isThisIdentifier(parameter.name); -} -function isThisIdentifier(node) { - return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); -} -function isInTypeQuery(node) { - return !!findAncestor( - node, - (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" - ); -} -function isThisInTypeQuery(node) { - if (!isThisIdentifier(node)) { - return false; - } - while (isQualifiedName(node.parent) && node.parent.left === node) { - node = node.parent; - } - return node.parent.kind === 186 /* TypeQuery */; -} -function identifierIsThisKeyword(id) { - return id.escapedText === "this"; -} -function getAllAccessorDeclarations(declarations, accessor) { - let firstAccessor; - let secondAccessor; - let getAccessor; - let setAccessor; - if (hasDynamicName(accessor)) { - firstAccessor = accessor; - if (accessor.kind === 177 /* GetAccessor */) { - getAccessor = accessor; - } else if (accessor.kind === 178 /* SetAccessor */) { - setAccessor = accessor; - } else { - Debug.fail("Accessor has wrong kind"); - } - } else { - forEach(declarations, (member) => { - if (isAccessor(member) && isStatic(member) === isStatic(accessor)) { - const memberName = getPropertyNameForPropertyNameNode(member.name); - const accessorName = getPropertyNameForPropertyNameNode(accessor.name); - if (memberName === accessorName) { - if (!firstAccessor) { - firstAccessor = member; - } else if (!secondAccessor) { - secondAccessor = member; - } - if (member.kind === 177 /* GetAccessor */ && !getAccessor) { - getAccessor = member; - } - if (member.kind === 178 /* SetAccessor */ && !setAccessor) { - setAccessor = member; - } - } - } - }); - } - return { - firstAccessor, - secondAccessor, - getAccessor, - setAccessor - }; -} -function getEffectiveTypeAnnotationNode(node) { - if (!isInJSFile(node) && isFunctionDeclaration(node)) return void 0; - if (isTypeAliasDeclaration(node)) return void 0; - const type = node.type; - if (type || !isInJSFile(node)) return type; - return isJSDocPropertyLikeTag(node) ? node.typeExpression && node.typeExpression.type : getJSDocType(node); -} -function getEffectiveReturnTypeNode(node) { - return isJSDocSignature(node) ? node.type && node.type.typeExpression && node.type.typeExpression.type : node.type || (isInJSFile(node) ? getJSDocReturnType(node) : void 0); -} -function getJSDocTypeParameterDeclarations(node) { - return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); -} -function isNonTypeAliasTemplate(tag) { - return isJSDocTemplateTag(tag) && !(tag.parent.kind === 320 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); -} -function getEffectiveSetAccessorTypeAnnotationNode(node) { - const parameter = getSetAccessorValueParameter(node); - return parameter && getEffectiveTypeAnnotationNode(parameter); -} -function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) { - emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments); -} -function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) { - if (leadingComments && leadingComments.length && pos !== leadingComments[0].pos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, leadingComments[0].pos)) { - writer.writeLine(); - } -} -function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) { - if (pos !== commentPos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, commentPos)) { - writer.writeLine(); - } -} -function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLine, writeComment) { - if (comments && comments.length > 0) { - if (leadingSeparator) { - writer.writeSpace(" "); - } - let emitInterveningSeparator = false; - for (const comment of comments) { - if (emitInterveningSeparator) { - writer.writeSpace(" "); - emitInterveningSeparator = false; - } - writeComment(text, lineMap, writer, comment.pos, comment.end, newLine); - if (comment.hasTrailingNewLine) { - writer.writeLine(); - } else { - emitInterveningSeparator = true; - } - } - if (emitInterveningSeparator && trailingSeparator) { - writer.writeSpace(" "); - } - } -} -function emitDetachedComments(text, lineMap, writer, writeComment, node, newLine, removeComments) { - let leadingComments; - let currentDetachedCommentInfo; - if (removeComments) { - if (node.pos === 0) { - leadingComments = filter(getLeadingCommentRanges(text, node.pos), isPinnedCommentLocal); - } - } else { - leadingComments = getLeadingCommentRanges(text, node.pos); - } - if (leadingComments) { - const detachedComments = []; - let lastComment; - for (const comment of leadingComments) { - if (lastComment) { - const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, lastComment.end); - const commentLine = getLineOfLocalPositionFromLineMap(lineMap, comment.pos); - if (commentLine >= lastCommentLine + 2) { - break; - } - } - detachedComments.push(comment); - lastComment = comment; - } - if (detachedComments.length) { - const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, last(detachedComments).end); - const nodeLine = getLineOfLocalPositionFromLineMap(lineMap, skipTrivia(text, node.pos)); - if (nodeLine >= lastCommentLine + 2) { - emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments); - emitComments( - text, - lineMap, - writer, - detachedComments, - /*leadingSeparator*/ - false, - /*trailingSeparator*/ - true, - newLine, - writeComment - ); - currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: last(detachedComments).end }; - } - } - } - return currentDetachedCommentInfo; - function isPinnedCommentLocal(comment) { - return isPinnedComment(text, comment.pos); - } -} -function writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine) { - if (text.charCodeAt(commentPos + 1) === 42 /* asterisk */) { - const firstCommentLineAndCharacter = computeLineAndCharacterOfPosition(lineMap, commentPos); - const lineCount = lineMap.length; - let firstCommentLineIndent; - for (let pos = commentPos, currentLine = firstCommentLineAndCharacter.line; pos < commentEnd; currentLine++) { - const nextLineStart = currentLine + 1 === lineCount ? text.length + 1 : lineMap[currentLine + 1]; - if (pos !== commentPos) { - if (firstCommentLineIndent === void 0) { - firstCommentLineIndent = calculateIndent(text, lineMap[firstCommentLineAndCharacter.line], commentPos); - } - const currentWriterIndentSpacing = writer.getIndent() * getIndentSize(); - const spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(text, pos, nextLineStart); - if (spacesToEmit > 0) { - let numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize(); - const indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize()); - writer.rawWrite(indentSizeSpaceString); - while (numberOfSingleSpacesToEmit) { - writer.rawWrite(" "); - numberOfSingleSpacesToEmit--; - } - } else { - writer.rawWrite(""); - } - } - writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart); - pos = nextLineStart; - } - } else { - writer.writeComment(text.substring(commentPos, commentEnd)); - } -} -function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) { - const end = Math.min(commentEnd, nextLineStart - 1); - const currentLineText = text.substring(pos, end).trim(); - if (currentLineText) { - writer.writeComment(currentLineText); - if (end !== commentEnd) { - writer.writeLine(); - } - } else { - writer.rawWrite(newLine); - } -} -function calculateIndent(text, pos, end) { - let currentLineIndent = 0; - for (; pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++) { - if (text.charCodeAt(pos) === 9 /* tab */) { - currentLineIndent += getIndentSize() - currentLineIndent % getIndentSize(); - } else { - currentLineIndent++; - } - } - return currentLineIndent; -} -function hasEffectiveModifiers(node) { - return getEffectiveModifierFlags(node) !== 0 /* None */; -} -function hasSyntacticModifiers(node) { - return getSyntacticModifierFlags(node) !== 0 /* None */; -} -function hasEffectiveModifier(node, flags) { - return !!getSelectedEffectiveModifierFlags(node, flags); -} -function hasSyntacticModifier(node, flags) { - return !!getSelectedSyntacticModifierFlags(node, flags); -} -function isStatic(node) { - return isClassElement(node) && hasStaticModifier(node) || isClassStaticBlockDeclaration(node); -} -function hasStaticModifier(node) { - return hasSyntacticModifier(node, 256 /* Static */); -} -function hasOverrideModifier(node) { - return hasEffectiveModifier(node, 16 /* Override */); -} -function hasAbstractModifier(node) { - return hasSyntacticModifier(node, 64 /* Abstract */); -} -function hasAmbientModifier(node) { - return hasSyntacticModifier(node, 128 /* Ambient */); -} -function hasAccessorModifier(node) { - return hasSyntacticModifier(node, 512 /* Accessor */); -} -function hasEffectiveReadonlyModifier(node) { - return hasEffectiveModifier(node, 8 /* Readonly */); -} -function hasDecorators(node) { - return hasSyntacticModifier(node, 32768 /* Decorator */); -} -function getSelectedEffectiveModifierFlags(node, flags) { - return getEffectiveModifierFlags(node) & flags; -} -function getSelectedSyntacticModifierFlags(node, flags) { - return getSyntacticModifierFlags(node) & flags; -} -function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { - if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { - return 0 /* None */; - } - if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { - node.modifierFlagsCache = getSyntacticModifierFlagsNoCache(node) | 536870912 /* HasComputedFlags */; - } - if (alwaysIncludeJSDoc || includeJSDoc && isInJSFile(node)) { - if (!(node.modifierFlagsCache & 268435456 /* HasComputedJSDocModifiers */) && node.parent) { - node.modifierFlagsCache |= getRawJSDocModifierFlagsNoCache(node) | 268435456 /* HasComputedJSDocModifiers */; - } - return selectEffectiveModifierFlags(node.modifierFlagsCache); - } - return selectSyntacticModifierFlags(node.modifierFlagsCache); -} -function getEffectiveModifierFlags(node) { - return getModifierFlagsWorker( - node, - /*includeJSDoc*/ - true - ); -} -function getSyntacticModifierFlags(node) { - return getModifierFlagsWorker( - node, - /*includeJSDoc*/ - false - ); -} -function getRawJSDocModifierFlagsNoCache(node) { - let flags = 0 /* None */; - if (!!node.parent && !isParameter(node)) { - if (isInJSFile(node)) { - if (getJSDocPublicTagNoCache(node)) flags |= 8388608 /* JSDocPublic */; - if (getJSDocPrivateTagNoCache(node)) flags |= 16777216 /* JSDocPrivate */; - if (getJSDocProtectedTagNoCache(node)) flags |= 33554432 /* JSDocProtected */; - if (getJSDocReadonlyTagNoCache(node)) flags |= 67108864 /* JSDocReadonly */; - if (getJSDocOverrideTagNoCache(node)) flags |= 134217728 /* JSDocOverride */; - } - if (getJSDocDeprecatedTagNoCache(node)) flags |= 65536 /* Deprecated */; - } - return flags; -} -function selectSyntacticModifierFlags(flags) { - return flags & 65535 /* SyntacticModifiers */; -} -function selectEffectiveModifierFlags(flags) { - return flags & 131071 /* NonCacheOnlyModifiers */ | (flags & 260046848 /* JSDocCacheOnlyModifiers */) >>> 23; -} -function getJSDocModifierFlagsNoCache(node) { - return selectEffectiveModifierFlags(getRawJSDocModifierFlagsNoCache(node)); -} -function getEffectiveModifierFlagsNoCache(node) { - return getSyntacticModifierFlagsNoCache(node) | getJSDocModifierFlagsNoCache(node); -} -function getSyntacticModifierFlagsNoCache(node) { - let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; - if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { - flags |= 32 /* Export */; - } - return flags; -} -function modifiersToFlags(modifiers) { - let flags = 0 /* None */; - if (modifiers) { - for (const modifier of modifiers) { - flags |= modifierToFlag(modifier.kind); - } - } - return flags; -} -function modifierToFlag(token) { - switch (token) { - case 126 /* StaticKeyword */: - return 256 /* Static */; - case 125 /* PublicKeyword */: - return 1 /* Public */; - case 124 /* ProtectedKeyword */: - return 4 /* Protected */; - case 123 /* PrivateKeyword */: - return 2 /* Private */; - case 128 /* AbstractKeyword */: - return 64 /* Abstract */; - case 129 /* AccessorKeyword */: - return 512 /* Accessor */; - case 95 /* ExportKeyword */: - return 32 /* Export */; - case 138 /* DeclareKeyword */: - return 128 /* Ambient */; - case 87 /* ConstKeyword */: - return 4096 /* Const */; - case 90 /* DefaultKeyword */: - return 2048 /* Default */; - case 134 /* AsyncKeyword */: - return 1024 /* Async */; - case 148 /* ReadonlyKeyword */: - return 8 /* Readonly */; - case 164 /* OverrideKeyword */: - return 16 /* Override */; - case 103 /* InKeyword */: - return 8192 /* In */; - case 147 /* OutKeyword */: - return 16384 /* Out */; - case 170 /* Decorator */: - return 32768 /* Decorator */; - } - return 0 /* None */; -} -function isBinaryLogicalOperator(token) { - return token === 57 /* BarBarToken */ || token === 56 /* AmpersandAmpersandToken */; -} -function isLogicalOperator(token) { - return isBinaryLogicalOperator(token) || token === 54 /* ExclamationToken */; -} -function isLogicalOrCoalescingAssignmentOperator(token) { - return token === 76 /* BarBarEqualsToken */ || token === 77 /* AmpersandAmpersandEqualsToken */ || token === 78 /* QuestionQuestionEqualsToken */; -} -function isLogicalOrCoalescingAssignmentExpression(expr) { - return isBinaryExpression(expr) && isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind); -} -function isLogicalOrCoalescingBinaryOperator(token) { - return isBinaryLogicalOperator(token) || token === 61 /* QuestionQuestionToken */; -} -function isLogicalOrCoalescingBinaryExpression(expr) { - return isBinaryExpression(expr) && isLogicalOrCoalescingBinaryOperator(expr.operatorToken.kind); -} -function isAssignmentOperator(token) { - return token >= 64 /* FirstAssignment */ && token <= 79 /* LastAssignment */; -} -function tryGetClassExtendingExpressionWithTypeArguments(node) { - const cls = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); - return cls && !cls.isImplements ? cls.class : void 0; -} -function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node) { - if (isExpressionWithTypeArguments(node)) { - if (isHeritageClause(node.parent) && isClassLike(node.parent.parent)) { - return { class: node.parent.parent, isImplements: node.parent.token === 119 /* ImplementsKeyword */ }; - } - if (isJSDocAugmentsTag(node.parent)) { - const host = getEffectiveJSDocHost(node.parent); - if (host && isClassLike(host)) { - return { class: host, isImplements: false }; - } - } - } - return void 0; -} -function isAssignmentExpression(node, excludeCompoundAssignment) { - return isBinaryExpression(node) && (excludeCompoundAssignment ? node.operatorToken.kind === 64 /* EqualsToken */ : isAssignmentOperator(node.operatorToken.kind)) && isLeftHandSideExpression(node.left); -} -function isDestructuringAssignment(node) { - if (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - )) { - const kind = node.left.kind; - return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; - } - return false; -} -function isExpressionWithTypeArgumentsInClassExtendsClause(node) { - return tryGetClassExtendingExpressionWithTypeArguments(node) !== void 0; -} -function isEntityNameExpression(node) { - return node.kind === 80 /* Identifier */ || isPropertyAccessEntityNameExpression(node); -} -function getFirstIdentifier(node) { - switch (node.kind) { - case 80 /* Identifier */: - return node; - case 166 /* QualifiedName */: - do { - node = node.left; - } while (node.kind !== 80 /* Identifier */); - return node; - case 211 /* PropertyAccessExpression */: - do { - node = node.expression; - } while (node.kind !== 80 /* Identifier */); - return node; - } -} -function isDottedName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); -} -function isPropertyAccessEntityNameExpression(node) { - return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); -} -function tryGetPropertyAccessOrIdentifierToString(expr) { - if (isPropertyAccessExpression(expr)) { - const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression); - if (baseStr !== void 0) { - return baseStr + "." + entityNameToString(expr.name); - } - } else if (isElementAccessExpression(expr)) { - const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression); - if (baseStr !== void 0 && isPropertyName(expr.argumentExpression)) { - return baseStr + "." + getPropertyNameForPropertyNameNode(expr.argumentExpression); - } - } else if (isIdentifier(expr)) { - return unescapeLeadingUnderscores(expr.escapedText); - } else if (isJsxNamespacedName(expr)) { - return getTextOfJsxNamespacedName(expr); - } - return void 0; -} -function isPrototypeAccess(node) { - return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; -} -function isRightSideOfQualifiedNameOrPropertyAccess(node) { - return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; -} -function isRightSideOfAccessExpression(node) { - return !!node.parent && (isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node); -} -function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) { - return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; -} -function isInstanceOfExpression(node) { - return isBinaryExpression(node) && node.operatorToken.kind === 104 /* InstanceOfKeyword */; -} -function isRightSideOfInstanceofExpression(node) { - return isInstanceOfExpression(node.parent) && node === node.parent.right; -} -function isEmptyObjectLiteral(expression) { - return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; -} -function isEmptyArrayLiteral(expression) { - return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; -} -function getLocalSymbolForExportDefault(symbol) { - if (!isExportDefaultSymbol(symbol) || !symbol.declarations) return void 0; - for (const decl of symbol.declarations) { - if (decl.localSymbol) return decl.localSymbol; - } - return void 0; -} -function isExportDefaultSymbol(symbol) { - return symbol && length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 2048 /* Default */); -} -function tryExtractTSExtension(fileName) { - return find(supportedTSExtensionsForExtractExtension, (extension) => fileExtensionIs(fileName, extension)); -} -function getExpandedCharCodes(input) { - const output = []; - const length2 = input.length; - for (let i = 0; i < length2; i++) { - const charCode = input.charCodeAt(i); - if (charCode < 128) { - output.push(charCode); - } else if (charCode < 2048) { - output.push(charCode >> 6 | 192); - output.push(charCode & 63 | 128); - } else if (charCode < 65536) { - output.push(charCode >> 12 | 224); - output.push(charCode >> 6 & 63 | 128); - output.push(charCode & 63 | 128); - } else if (charCode < 131072) { - output.push(charCode >> 18 | 240); - output.push(charCode >> 12 & 63 | 128); - output.push(charCode >> 6 & 63 | 128); - output.push(charCode & 63 | 128); - } else { - Debug.assert(false, "Unexpected code point"); - } - } - return output; -} -var base64Digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; -function convertToBase64(input) { - let result = ""; - const charCodes = getExpandedCharCodes(input); - let i = 0; - const length2 = charCodes.length; - let byte1, byte2, byte3, byte4; - while (i < length2) { - byte1 = charCodes[i] >> 2; - byte2 = (charCodes[i] & 3) << 4 | charCodes[i + 1] >> 4; - byte3 = (charCodes[i + 1] & 15) << 2 | charCodes[i + 2] >> 6; - byte4 = charCodes[i + 2] & 63; - if (i + 1 >= length2) { - byte3 = byte4 = 64; - } else if (i + 2 >= length2) { - byte4 = 64; - } - result += base64Digits.charAt(byte1) + base64Digits.charAt(byte2) + base64Digits.charAt(byte3) + base64Digits.charAt(byte4); - i += 3; - } - return result; -} -function base64encode(host, input) { - if (host && host.base64encode) { - return host.base64encode(input); - } - return convertToBase64(input); -} -function readJsonOrUndefined(path, hostOrText) { - const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path); - if (!jsonText) return void 0; - const result = parseConfigFileTextToJson(path, jsonText); - return !result.error ? result.config : void 0; -} -function readJson(path, host) { - return readJsonOrUndefined(path, host) || {}; -} -function tryParseJson(text) { - try { - return JSON.parse(text); - } catch { - return void 0; - } -} -function directoryProbablyExists(directoryName, host) { - return !host.directoryExists || host.directoryExists(directoryName); -} -var carriageReturnLineFeed = "\r\n"; -var lineFeed = "\n"; -function getNewLineCharacter(options) { - switch (options.newLine) { - case 0 /* CarriageReturnLineFeed */: - return carriageReturnLineFeed; - case 1 /* LineFeed */: - case void 0: - return lineFeed; - } -} -function createRange(pos, end = pos) { - Debug.assert(end >= pos || end === -1); - return { pos, end }; -} -function moveRangeEnd(range, end) { - return createRange(range.pos, end); -} -function moveRangePos(range, pos) { - return createRange(pos, range.end); -} -function moveRangePastDecorators(node) { - const lastDecorator = canHaveModifiers(node) ? findLast(node.modifiers, isDecorator) : void 0; - return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? moveRangePos(node, lastDecorator.end) : node; -} -function moveRangePastModifiers(node) { - if (isPropertyDeclaration(node) || isMethodDeclaration(node)) { - return moveRangePos(node, node.name.pos); - } - const lastModifier = canHaveModifiers(node) ? lastOrUndefined(node.modifiers) : void 0; - return lastModifier && !positionIsSynthesized(lastModifier.end) ? moveRangePos(node, lastModifier.end) : moveRangePastDecorators(node); -} -function createTokenRange(pos, token) { - return createRange(pos, pos + tokenToString(token).length); -} -function rangeIsOnSingleLine(range, sourceFile) { - return rangeStartIsOnSameLineAsRangeEnd(range, range, sourceFile); -} -function rangeStartPositionsAreOnSameLine(range1, range2, sourceFile) { - return positionsAreOnSameLine( - getStartPositionOfRange( - range1, - sourceFile, - /*includeComments*/ - false - ), - getStartPositionOfRange( - range2, - sourceFile, - /*includeComments*/ - false - ), - sourceFile - ); -} -function rangeEndPositionsAreOnSameLine(range1, range2, sourceFile) { - return positionsAreOnSameLine(range1.end, range2.end, sourceFile); -} -function rangeStartIsOnSameLineAsRangeEnd(range1, range2, sourceFile) { - return positionsAreOnSameLine(getStartPositionOfRange( - range1, - sourceFile, - /*includeComments*/ - false - ), range2.end, sourceFile); -} -function rangeEndIsOnSameLineAsRangeStart(range1, range2, sourceFile) { - return positionsAreOnSameLine(range1.end, getStartPositionOfRange( - range2, - sourceFile, - /*includeComments*/ - false - ), sourceFile); -} -function getLinesBetweenRangeEndAndRangeStart(range1, range2, sourceFile, includeSecondRangeComments) { - const range2Start = getStartPositionOfRange(range2, sourceFile, includeSecondRangeComments); - return getLinesBetweenPositions(sourceFile, range1.end, range2Start); -} -function positionsAreOnSameLine(pos1, pos2, sourceFile) { - return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0; -} -function getStartPositionOfRange(range, sourceFile, includeComments) { - return positionIsSynthesized(range.pos) ? -1 : skipTrivia( - sourceFile.text, - range.pos, - /*stopAfterLineBreak*/ - false, - includeComments - ); -} -function getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) { - const startPos = skipTrivia( - sourceFile.text, - pos, - /*stopAfterLineBreak*/ - false, - includeComments - ); - const prevPos = getPreviousNonWhitespacePosition(startPos, stopPos, sourceFile); - return getLinesBetweenPositions(sourceFile, prevPos ?? stopPos, startPos); -} -function getLinesBetweenPositionAndNextNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) { - const nextPos = skipTrivia( - sourceFile.text, - pos, - /*stopAfterLineBreak*/ - false, - includeComments - ); - return getLinesBetweenPositions(sourceFile, pos, Math.min(stopPos, nextPos)); -} -function rangeContainsRange(r1, r2) { - return startEndContainsRange(r1.pos, r1.end, r2); -} -function startEndContainsRange(start, end, range) { - return start <= range.pos && end >= range.end; -} -function getPreviousNonWhitespacePosition(pos, stopPos = 0, sourceFile) { - while (pos-- > stopPos) { - if (!isWhiteSpaceLike(sourceFile.text.charCodeAt(pos))) { - return pos; - } - } -} -function isDeclarationNameOfEnumOrNamespace(node) { - const parseNode = getParseTreeNode(node); - if (parseNode) { - switch (parseNode.parent.kind) { - case 266 /* EnumDeclaration */: - case 267 /* ModuleDeclaration */: - return parseNode === parseNode.parent.name; - } - } - return false; -} -function getInitializedVariables(node) { - return filter(node.declarations, isInitializedVariable); -} -function isInitializedVariable(node) { - return isVariableDeclaration(node) && node.initializer !== void 0; -} -function isWatchSet(options) { - return options.watch && hasProperty(options, "watch"); -} -function closeFileWatcher(watcher) { - watcher.close(); -} -function getCheckFlags(symbol) { - return symbol.flags & 33554432 /* Transient */ ? symbol.links.checkFlags : 0; -} -function getDeclarationModifierFlagsFromSymbol(s, isWrite = false) { - if (s.valueDeclaration) { - const declaration = isWrite && s.declarations && find(s.declarations, isSetAccessorDeclaration) || s.flags & 32768 /* GetAccessor */ && find(s.declarations, isGetAccessorDeclaration) || s.valueDeclaration; - const flags = getCombinedModifierFlags(declaration); - return s.parent && s.parent.flags & 32 /* Class */ ? flags : flags & ~7 /* AccessibilityModifier */; - } - if (getCheckFlags(s) & 6 /* Synthetic */) { - const checkFlags = s.links.checkFlags; - const accessModifier = checkFlags & 1024 /* ContainsPrivate */ ? 2 /* Private */ : checkFlags & 256 /* ContainsPublic */ ? 1 /* Public */ : 4 /* Protected */; - const staticModifier = checkFlags & 2048 /* ContainsStatic */ ? 256 /* Static */ : 0; - return accessModifier | staticModifier; - } - if (s.flags & 4194304 /* Prototype */) { - return 1 /* Public */ | 256 /* Static */; - } - return 0; -} -function skipAlias(symbol, checker) { - return symbol.flags & 2097152 /* Alias */ ? checker.getAliasedSymbol(symbol) : symbol; -} -function getCombinedLocalAndExportSymbolFlags(symbol) { - return symbol.exportSymbol ? symbol.exportSymbol.flags | symbol.flags : symbol.flags; -} -function isWriteOnlyAccess(node) { - return accessKind(node) === 1 /* Write */; -} -function isWriteAccess(node) { - return accessKind(node) !== 0 /* Read */; -} -function accessKind(node) { - const { parent } = node; - switch (parent == null ? void 0 : parent.kind) { - case 217 /* ParenthesizedExpression */: - return accessKind(parent); - case 225 /* PostfixUnaryExpression */: - case 224 /* PrefixUnaryExpression */: - const { operator } = parent; - return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; - case 226 /* BinaryExpression */: - const { left, operatorToken } = parent; - return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; - case 211 /* PropertyAccessExpression */: - return parent.name !== node ? 0 /* Read */ : accessKind(parent); - case 303 /* PropertyAssignment */: { - const parentAccess = accessKind(parent.parent); - return node === parent.name ? reverseAccessKind(parentAccess) : parentAccess; - } - case 304 /* ShorthandPropertyAssignment */: - return node === parent.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent.parent); - case 209 /* ArrayLiteralExpression */: - return accessKind(parent); - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - return node === parent.initializer ? 1 /* Write */ : 0 /* Read */; - default: - return 0 /* Read */; - } -} -function reverseAccessKind(a) { - switch (a) { - case 0 /* Read */: - return 1 /* Write */; - case 1 /* Write */: - return 0 /* Read */; - case 2 /* ReadWrite */: - return 2 /* ReadWrite */; - default: - return Debug.assertNever(a); - } -} -function compareDataObjects(dst, src) { - if (!dst || !src || Object.keys(dst).length !== Object.keys(src).length) { - return false; - } - for (const e in dst) { - if (typeof dst[e] === "object") { - if (!compareDataObjects(dst[e], src[e])) { - return false; - } - } else if (typeof dst[e] !== "function") { - if (dst[e] !== src[e]) { - return false; - } - } - } - return true; -} -function clearMap(map2, onDeleteValue) { - map2.forEach(onDeleteValue); - map2.clear(); -} -function mutateMapSkippingNewValues(map2, newMap, options) { - const { onDeleteValue, onExistingValue } = options; - map2.forEach((existingValue, key) => { - var _a; - if (!(newMap == null ? void 0 : newMap.has(key))) { - map2.delete(key); - onDeleteValue(existingValue, key); - } else if (onExistingValue) { - onExistingValue(existingValue, (_a = newMap.get) == null ? void 0 : _a.call(newMap, key), key); - } - }); -} -function mutateMap(map2, newMap, options) { - mutateMapSkippingNewValues(map2, newMap, options); - const { createNewValue } = options; - newMap == null ? void 0 : newMap.forEach((valueInNewMap, key) => { - if (!map2.has(key)) { - map2.set(key, createNewValue(key, valueInNewMap)); - } - }); -} -function getClassLikeDeclarationOfSymbol(symbol) { - var _a; - return (_a = symbol.declarations) == null ? void 0 : _a.find(isClassLike); -} -function getObjectFlags(type) { - return type.flags & 3899393 /* ObjectFlagsType */ ? type.objectFlags : 0; -} -function isUMDExportSymbol(symbol) { - return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && isNamespaceExportDeclaration(symbol.declarations[0]); -} -function getLastChild(node) { - let lastChild; - forEachChild(node, (child) => { - if (nodeIsPresent(child)) lastChild = child; - }, (children) => { - for (let i = children.length - 1; i >= 0; i--) { - if (nodeIsPresent(children[i])) { - lastChild = children[i]; - break; - } - } - }); - return lastChild; -} -function addToSeen(seen, key) { - if (seen.has(key)) { - return false; - } - seen.add(key); - return true; -} -function isTypeNodeKind(kind) { - return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 312 /* JSDocAllType */ || kind === 313 /* JSDocUnknownType */ || kind === 314 /* JSDocNullableType */ || kind === 315 /* JSDocNonNullableType */ || kind === 316 /* JSDocOptionalType */ || kind === 317 /* JSDocFunctionType */ || kind === 318 /* JSDocVariadicType */; -} -function isAccessExpression(node) { - return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; -} -function getLeftmostAccessExpression(expr) { - while (isAccessExpression(expr)) { - expr = expr.expression; - } - return expr; -} -function getLeftmostExpression(node, stopAtCallExpressions) { - while (true) { - switch (node.kind) { - case 225 /* PostfixUnaryExpression */: - node = node.operand; - continue; - case 226 /* BinaryExpression */: - node = node.left; - continue; - case 227 /* ConditionalExpression */: - node = node.condition; - continue; - case 215 /* TaggedTemplateExpression */: - node = node.tag; - continue; - case 213 /* CallExpression */: - if (stopAtCallExpressions) { - return node; - } - // falls through - case 234 /* AsExpression */: - case 212 /* ElementAccessExpression */: - case 211 /* PropertyAccessExpression */: - case 235 /* NonNullExpression */: - case 355 /* PartiallyEmittedExpression */: - case 238 /* SatisfiesExpression */: - node = node.expression; - continue; - } - return node; - } -} -function Symbol4(flags, name) { - this.flags = flags; - this.escapedName = name; - 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 Type3(checker, flags) { - this.flags = flags; - if (Debug.isDebugging || tracing) { - this.checker = checker; - } -} -function Signature2(checker, flags) { - this.flags = flags; - if (Debug.isDebugging) { - this.checker = checker; - } -} -function Node4(kind, pos, end) { - this.pos = pos; - this.end = end; - this.kind = kind; - this.id = 0; - this.flags = 0 /* None */; - this.modifierFlagsCache = 0 /* None */; - this.transformFlags = 0 /* None */; - this.parent = void 0; - this.original = void 0; - this.emitNode = void 0; -} -function Token(kind, pos, end) { - this.pos = pos; - this.end = end; - this.kind = kind; - this.id = 0; - this.flags = 0 /* None */; - this.transformFlags = 0 /* None */; - this.parent = void 0; - this.emitNode = void 0; -} -function Identifier2(kind, pos, end) { - this.pos = pos; - this.end = end; - this.kind = kind; - this.id = 0; - this.flags = 0 /* None */; - this.transformFlags = 0 /* None */; - this.parent = void 0; - this.original = void 0; - this.emitNode = void 0; -} -function SourceMapSource(fileName, text, skipTrivia2) { - this.fileName = fileName; - this.text = text; - this.skipTrivia = skipTrivia2 || ((pos) => pos); -} -var objectAllocator = { - getNodeConstructor: () => Node4, - getTokenConstructor: () => Token, - getIdentifierConstructor: () => Identifier2, - getPrivateIdentifierConstructor: () => Node4, - getSourceFileConstructor: () => Node4, - getSymbolConstructor: () => Symbol4, - getTypeConstructor: () => Type3, - getSignatureConstructor: () => Signature2, - getSourceMapSourceConstructor: () => SourceMapSource -}; -function formatStringFromArgs(text, args) { - return text.replace(/\{(\d+)\}/g, (_match, index) => "" + Debug.checkDefined(args[+index])); -} -var localizedDiagnosticMessages; -function setLocalizedDiagnosticMessages(messages) { - localizedDiagnosticMessages = messages; -} -function getLocaleSpecificMessage(message) { - return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] || message.message; -} -function createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args) { - if (start + length2 > sourceText.length) { - length2 = sourceText.length - start; - } - assertDiagnosticLocation(sourceText, start, length2); - let text = getLocaleSpecificMessage(message); - if (some(args)) { - text = formatStringFromArgs(text, args); - } - return { - file: void 0, - start, - length: length2, - messageText: text, - category: message.category, - code: message.code, - reportsUnnecessary: message.reportsUnnecessary, - fileName - }; -} -function isDiagnosticWithDetachedLocation(diagnostic) { - return diagnostic.file === void 0 && diagnostic.start !== void 0 && diagnostic.length !== void 0 && typeof diagnostic.fileName === "string"; -} -function attachFileToDiagnostic(diagnostic, file) { - const fileName = file.fileName || ""; - const length2 = file.text.length; - Debug.assertEqual(diagnostic.fileName, fileName); - Debug.assertLessThanOrEqual(diagnostic.start, length2); - Debug.assertLessThanOrEqual(diagnostic.start + diagnostic.length, length2); - const diagnosticWithLocation = { - file, - start: diagnostic.start, - length: diagnostic.length, - messageText: diagnostic.messageText, - category: diagnostic.category, - code: diagnostic.code, - reportsUnnecessary: diagnostic.reportsUnnecessary - }; - if (diagnostic.relatedInformation) { - diagnosticWithLocation.relatedInformation = []; - for (const related of diagnostic.relatedInformation) { - if (isDiagnosticWithDetachedLocation(related) && related.fileName === fileName) { - Debug.assertLessThanOrEqual(related.start, length2); - Debug.assertLessThanOrEqual(related.start + related.length, length2); - diagnosticWithLocation.relatedInformation.push(attachFileToDiagnostic(related, file)); - } else { - diagnosticWithLocation.relatedInformation.push(related); - } - } - } - return diagnosticWithLocation; -} -function attachFileToDiagnostics(diagnostics, file) { - const diagnosticsWithLocation = []; - for (const diagnostic of diagnostics) { - diagnosticsWithLocation.push(attachFileToDiagnostic(diagnostic, file)); - } - return diagnosticsWithLocation; -} -function createFileDiagnostic(file, start, length2, message, ...args) { - assertDiagnosticLocation(file.text, start, length2); - let text = getLocaleSpecificMessage(message); - if (some(args)) { - text = formatStringFromArgs(text, args); - } - return { - file, - start, - length: length2, - messageText: text, - category: message.category, - code: message.code, - reportsUnnecessary: message.reportsUnnecessary, - reportsDeprecated: message.reportsDeprecated - }; -} -function formatMessage(message, ...args) { - let text = getLocaleSpecificMessage(message); - if (some(args)) { - text = formatStringFromArgs(text, args); - } - return text; -} -function createCompilerDiagnostic(message, ...args) { - let text = getLocaleSpecificMessage(message); - if (some(args)) { - text = formatStringFromArgs(text, args); - } - return { - file: void 0, - start: void 0, - length: void 0, - messageText: text, - category: message.category, - code: message.code, - reportsUnnecessary: message.reportsUnnecessary, - reportsDeprecated: message.reportsDeprecated - }; -} -function createCompilerDiagnosticFromMessageChain(chain, relatedInformation) { - return { - file: void 0, - start: void 0, - length: void 0, - code: chain.code, - category: chain.category, - messageText: chain.next ? chain : chain.messageText, - relatedInformation - }; -} -function chainDiagnosticMessages(details, message, ...args) { - let text = getLocaleSpecificMessage(message); - if (some(args)) { - text = formatStringFromArgs(text, args); - } - return { - messageText: text, - category: message.category, - code: message.code, - next: details === void 0 || Array.isArray(details) ? details : [details] - }; -} -function concatenateDiagnosticMessageChains(headChain, tailChain) { - let lastChain = headChain; - while (lastChain.next) { - lastChain = lastChain.next[0]; - } - lastChain.next = [tailChain]; -} -function getDiagnosticFilePath(diagnostic) { - return diagnostic.file ? diagnostic.file.path : void 0; -} -function compareDiagnostics(d1, d2) { - return compareDiagnosticsSkipRelatedInformation(d1, d2) || compareRelatedInformation(d1, d2) || 0 /* EqualTo */; -} -function compareDiagnosticsSkipRelatedInformation(d1, d2) { - const code1 = getDiagnosticCode(d1); - const code2 = getDiagnosticCode(d2); - return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) || compareValues(d1.start, d2.start) || compareValues(d1.length, d2.length) || compareValues(code1, code2) || compareMessageText(d1, d2) || 0 /* EqualTo */; -} -function compareRelatedInformation(d1, d2) { - if (!d1.relatedInformation && !d2.relatedInformation) { - return 0 /* EqualTo */; - } - if (d1.relatedInformation && d2.relatedInformation) { - return compareValues(d2.relatedInformation.length, d1.relatedInformation.length) || forEach(d1.relatedInformation, (d1i, index) => { - const d2i = d2.relatedInformation[index]; - return compareDiagnostics(d1i, d2i); - }) || 0 /* EqualTo */; - } - return d1.relatedInformation ? -1 /* LessThan */ : 1 /* GreaterThan */; -} -function compareMessageText(d1, d2) { - let headMsg1 = getDiagnosticMessage(d1); - let headMsg2 = getDiagnosticMessage(d2); - if (typeof headMsg1 !== "string") { - headMsg1 = headMsg1.messageText; - } - if (typeof headMsg2 !== "string") { - headMsg2 = headMsg2.messageText; - } - const chain1 = typeof d1.messageText !== "string" ? d1.messageText.next : void 0; - const chain2 = typeof d2.messageText !== "string" ? d2.messageText.next : void 0; - let res = compareStringsCaseSensitive(headMsg1, headMsg2); - if (res) { - return res; - } - res = compareMessageChain(chain1, chain2); - if (res) { - return res; - } - if (d1.canonicalHead && !d2.canonicalHead) { - return -1 /* LessThan */; - } - if (d2.canonicalHead && !d1.canonicalHead) { - return 1 /* GreaterThan */; - } - return 0 /* EqualTo */; -} -function compareMessageChain(c1, c2) { - if (c1 === void 0 && c2 === void 0) { - return 0 /* EqualTo */; - } - if (c1 === void 0) { - return 1 /* GreaterThan */; - } - if (c2 === void 0) { - return -1 /* LessThan */; - } - return compareMessageChainSize(c1, c2) || compareMessageChainContent(c1, c2); -} -function compareMessageChainSize(c1, c2) { - if (c1 === void 0 && c2 === void 0) { - return 0 /* EqualTo */; - } - if (c1 === void 0) { - return 1 /* GreaterThan */; - } - if (c2 === void 0) { - return -1 /* LessThan */; - } - let res = compareValues(c2.length, c1.length); - if (res) { - return res; - } - for (let i = 0; i < c2.length; i++) { - res = compareMessageChainSize(c1[i].next, c2[i].next); - if (res) { - return res; - } - } - return 0 /* EqualTo */; -} -function compareMessageChainContent(c1, c2) { - let res; - for (let i = 0; i < c2.length; i++) { - res = compareStringsCaseSensitive(c1[i].messageText, c2[i].messageText); - if (res) { - return res; - } - if (c1[i].next === void 0) { - continue; - } - res = compareMessageChainContent(c1[i].next, c2[i].next); - if (res) { - return res; - } - } - return 0 /* EqualTo */; -} -function diagnosticsEqualityComparer(d1, d2) { - const code1 = getDiagnosticCode(d1); - const code2 = getDiagnosticCode(d2); - const msg1 = getDiagnosticMessage(d1); - const msg2 = getDiagnosticMessage(d2); - return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) === 0 /* EqualTo */ && compareValues(d1.start, d2.start) === 0 /* EqualTo */ && compareValues(d1.length, d2.length) === 0 /* EqualTo */ && compareValues(code1, code2) === 0 /* EqualTo */ && messageTextEqualityComparer(msg1, msg2); -} -function getDiagnosticCode(d) { - var _a; - return ((_a = d.canonicalHead) == null ? void 0 : _a.code) || d.code; -} -function getDiagnosticMessage(d) { - var _a; - return ((_a = d.canonicalHead) == null ? void 0 : _a.messageText) || d.messageText; -} -function messageTextEqualityComparer(m1, m2) { - const t1 = typeof m1 === "string" ? m1 : m1.messageText; - const t2 = typeof m2 === "string" ? m2 : m2.messageText; - return compareStringsCaseSensitive(t1, t2) === 0 /* EqualTo */; -} -function getLanguageVariant(scriptKind) { - return scriptKind === 4 /* TSX */ || scriptKind === 2 /* JSX */ || scriptKind === 1 /* JS */ || scriptKind === 6 /* JSON */ ? 1 /* JSX */ : 0 /* Standard */; -} -function walkTreeForJSXTags(node) { - if (!(node.transformFlags & 2 /* ContainsJsx */)) return void 0; - return isJsxOpeningLikeElement(node) || isJsxFragment(node) ? node : forEachChild(node, walkTreeForJSXTags); -} -function isFileModuleFromUsingJSXTag(file) { - return !file.isDeclarationFile ? walkTreeForJSXTags(file) : void 0; -} -function isFileForcedToBeModuleByFormat(file, options) { - return (getImpliedNodeFormatForEmitWorker(file, options) === 99 /* ESNext */ || fileExtensionIsOneOf(file.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */, ".mjs" /* Mjs */, ".mts" /* Mts */])) && !file.isDeclarationFile ? true : void 0; -} -function getSetExternalModuleIndicator(options) { - switch (getEmitModuleDetectionKind(options)) { - case 3 /* Force */: - return (file) => { - file.externalModuleIndicator = isFileProbablyExternalModule(file) || !file.isDeclarationFile || void 0; - }; - case 1 /* Legacy */: - return (file) => { - file.externalModuleIndicator = isFileProbablyExternalModule(file); - }; - case 2 /* Auto */: - const checks = [isFileProbablyExternalModule]; - if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { - checks.push(isFileModuleFromUsingJSXTag); - } - checks.push(isFileForcedToBeModuleByFormat); - const combined = or(...checks); - const callback = (file) => void (file.externalModuleIndicator = combined(file, options)); - return callback; - } -} -function importSyntaxAffectsModuleResolution(options) { - const moduleResolution = getEmitModuleResolutionKind(options); - return 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || getResolvePackageJsonExports(options) || getResolvePackageJsonImports(options); -} -function createComputedCompilerOptions(options) { - return options; -} -var _computedOptions = createComputedCompilerOptions({ - allowImportingTsExtensions: { - dependencies: ["rewriteRelativeImportExtensions"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.allowImportingTsExtensions || compilerOptions.rewriteRelativeImportExtensions); - } - }, - target: { - dependencies: ["module"], - computeValue: (compilerOptions) => { - const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target; - return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 101 /* Node18 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */); - } - }, - module: { - dependencies: ["target"], - computeValue: (compilerOptions) => { - return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */; - } - }, - moduleResolution: { - dependencies: ["module", "target"], - computeValue: (compilerOptions) => { - let moduleResolution = compilerOptions.moduleResolution; - if (moduleResolution === void 0) { - switch (_computedOptions.module.computeValue(compilerOptions)) { - case 1 /* CommonJS */: - moduleResolution = 2 /* Node10 */; - break; - case 100 /* Node16 */: - case 101 /* Node18 */: - moduleResolution = 3 /* Node16 */; - break; - case 199 /* NodeNext */: - moduleResolution = 99 /* NodeNext */; - break; - case 200 /* Preserve */: - moduleResolution = 100 /* Bundler */; - break; - default: - moduleResolution = 1 /* Classic */; - break; - } - } - return moduleResolution; - } - }, - moduleDetection: { - dependencies: ["module", "target"], - computeValue: (compilerOptions) => { - if (compilerOptions.moduleDetection !== void 0) { - return compilerOptions.moduleDetection; - } - const moduleKind = _computedOptions.module.computeValue(compilerOptions); - return 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */; - } - }, - isolatedModules: { - dependencies: ["verbatimModuleSyntax"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax); - } - }, - esModuleInterop: { - dependencies: ["module", "target"], - computeValue: (compilerOptions) => { - if (compilerOptions.esModuleInterop !== void 0) { - return compilerOptions.esModuleInterop; - } - switch (_computedOptions.module.computeValue(compilerOptions)) { - case 100 /* Node16 */: - case 101 /* Node18 */: - case 199 /* NodeNext */: - case 200 /* Preserve */: - return true; - } - return false; - } - }, - allowSyntheticDefaultImports: { - dependencies: ["module", "target", "moduleResolution"], - computeValue: (compilerOptions) => { - if (compilerOptions.allowSyntheticDefaultImports !== void 0) { - return compilerOptions.allowSyntheticDefaultImports; - } - return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; - } - }, - resolvePackageJsonExports: { - dependencies: ["moduleResolution"], - computeValue: (compilerOptions) => { - const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); - if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - return false; - } - if (compilerOptions.resolvePackageJsonExports !== void 0) { - return compilerOptions.resolvePackageJsonExports; - } - switch (moduleResolution) { - case 3 /* Node16 */: - case 99 /* NodeNext */: - case 100 /* Bundler */: - return true; - } - return false; - } - }, - resolvePackageJsonImports: { - dependencies: ["moduleResolution", "resolvePackageJsonExports"], - computeValue: (compilerOptions) => { - const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); - if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - return false; - } - if (compilerOptions.resolvePackageJsonExports !== void 0) { - return compilerOptions.resolvePackageJsonExports; - } - switch (moduleResolution) { - case 3 /* Node16 */: - case 99 /* NodeNext */: - case 100 /* Bundler */: - return true; - } - return false; - } - }, - resolveJsonModule: { - dependencies: ["moduleResolution", "module", "target"], - computeValue: (compilerOptions) => { - if (compilerOptions.resolveJsonModule !== void 0) { - return compilerOptions.resolveJsonModule; - } - return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; - } - }, - declaration: { - dependencies: ["composite"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.declaration || compilerOptions.composite); - } - }, - preserveConstEnums: { - dependencies: ["isolatedModules", "verbatimModuleSyntax"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions)); - } - }, - incremental: { - dependencies: ["composite"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.incremental || compilerOptions.composite); - } - }, - declarationMap: { - dependencies: ["declaration", "composite"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions)); - } - }, - allowJs: { - dependencies: ["checkJs"], - computeValue: (compilerOptions) => { - return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs; - } - }, - useDefineForClassFields: { - dependencies: ["target", "module"], - computeValue: (compilerOptions) => { - return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; - } - }, - noImplicitAny: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "noImplicitAny"); - } - }, - noImplicitThis: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "noImplicitThis"); - } - }, - strictNullChecks: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictNullChecks"); - } - }, - strictFunctionTypes: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictFunctionTypes"); - } - }, - strictBindCallApply: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictBindCallApply"); - } - }, - strictPropertyInitialization: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); - } - }, - strictBuiltinIteratorReturn: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictBuiltinIteratorReturn"); - } - }, - alwaysStrict: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "alwaysStrict"); - } - }, - useUnknownInCatchVariables: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables"); - } - } -}); -var computedOptions = _computedOptions; -var getAllowImportingTsExtensions = _computedOptions.allowImportingTsExtensions.computeValue; -var getEmitScriptTarget = _computedOptions.target.computeValue; -var getEmitModuleKind = _computedOptions.module.computeValue; -var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue; -var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue; -var getIsolatedModules = _computedOptions.isolatedModules.computeValue; -var getESModuleInterop = _computedOptions.esModuleInterop.computeValue; -var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue; -var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue; -var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue; -var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue; -var getEmitDeclarations = _computedOptions.declaration.computeValue; -var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue; -var isIncrementalCompilation = _computedOptions.incremental.computeValue; -var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue; -var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue; -var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue; -function emitModuleKindIsNonNodeESM(moduleKind) { - return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */; -} -function hasJsonModuleEmitEnabled(options) { - switch (getEmitModuleKind(options)) { - case 0 /* None */: - case 4 /* System */: - case 3 /* UMD */: - return false; - } - return true; -} -function unreachableCodeIsError(options) { - return options.allowUnreachableCode === false; -} -function unusedLabelIsError(options) { - return options.allowUnusedLabels === false; -} -function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) { - return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */; -} -function moduleSupportsImportAttributes(moduleKind) { - return 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */ || moduleKind === 99 /* ESNext */; -} -function getStrictOptionValue(compilerOptions, flag) { - return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag]; -} -function getNameOfScriptTarget(scriptTarget) { - return forEachEntry(targetOptionDeclaration.type, (value, key) => value === scriptTarget ? key : void 0); -} -function getEmitStandardClassFields(compilerOptions) { - return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; -} -function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { - return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); -} -function compilerOptionsAffectEmit(newOptions, oldOptions) { - return optionsHaveChanges(oldOptions, newOptions, affectsEmitOptionDeclarations); -} -function compilerOptionsAffectDeclarationPath(newOptions, oldOptions) { - return optionsHaveChanges(oldOptions, newOptions, affectsDeclarationPathOptionDeclarations); -} -function getCompilerOptionValue(options, option) { - return option.strictFlag ? getStrictOptionValue(options, option.name) : option.allowJsFlag ? getAllowJSCompilerOption(options) : options[option.name]; -} -function getJSXTransformEnabled(options) { - const jsx = options.jsx; - return jsx === 2 /* React */ || jsx === 4 /* ReactJSX */ || jsx === 5 /* ReactJSXDev */; -} -function getJSXImplicitImportBase(compilerOptions, file) { - const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get("jsximportsource"); - const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas; - const jsxRuntimePragmas = file == null ? void 0 : file.pragmas.get("jsxruntime"); - const jsxRuntimePragma = isArray(jsxRuntimePragmas) ? jsxRuntimePragmas[jsxRuntimePragmas.length - 1] : jsxRuntimePragmas; - if ((jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "classic") { - return void 0; - } - return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma || (jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "automatic" ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0; -} -function getJSXRuntimeImport(base, options) { - return base ? `${base}/${options.jsx === 5 /* ReactJSXDev */ ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0; -} -function hasZeroOrOneAsteriskCharacter(str) { - let seenAsterisk = false; - for (let i = 0; i < str.length; i++) { - if (str.charCodeAt(i) === 42 /* asterisk */) { - if (!seenAsterisk) { - seenAsterisk = true; - } else { - return false; - } - } - } - return true; -} -function createSymlinkCache(cwd, getCanonicalFileName) { - let symlinkedDirectories; - let symlinkedDirectoriesByRealpath; - let symlinkedFiles; - let hasProcessedResolutions = false; - return { - getSymlinkedFiles: () => symlinkedFiles, - getSymlinkedDirectories: () => symlinkedDirectories, - getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath, - setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real), - setSymlinkedDirectory: (symlink, real) => { - let symlinkPath = toPath(symlink, cwd, getCanonicalFileName); - if (!containsIgnoredPath(symlinkPath)) { - symlinkPath = ensureTrailingDirectorySeparator(symlinkPath); - if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) { - (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(real.realPath, symlink); - } - (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real); - } - }, - setSymlinksFromResolutions(forEachResolvedModule, forEachResolvedTypeReferenceDirective, typeReferenceDirectives) { - Debug.assert(!hasProcessedResolutions); - hasProcessedResolutions = true; - forEachResolvedModule((resolution) => processResolution(this, resolution.resolvedModule)); - forEachResolvedTypeReferenceDirective((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective)); - typeReferenceDirectives.forEach((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective)); - }, - hasProcessedResolutions: () => hasProcessedResolutions, - setSymlinksFromResolution(resolution) { - processResolution(this, resolution); - }, - hasAnySymlinks - }; - function hasAnySymlinks() { - return !!(symlinkedFiles == null ? void 0 : symlinkedFiles.size) || !!symlinkedDirectories && !!forEachEntry(symlinkedDirectories, (value) => !!value); - } - function processResolution(cache, resolution) { - if (!resolution || !resolution.originalPath || !resolution.resolvedFileName) return; - const { resolvedFileName, originalPath } = resolution; - cache.setSymlinkedFile(toPath(originalPath, cwd, getCanonicalFileName), resolvedFileName); - const [commonResolved, commonOriginal] = guessDirectorySymlink(resolvedFileName, originalPath, cwd, getCanonicalFileName) || emptyArray; - if (commonResolved && commonOriginal) { - cache.setSymlinkedDirectory( - commonOriginal, - { - real: ensureTrailingDirectorySeparator(commonResolved), - realPath: ensureTrailingDirectorySeparator(toPath(commonResolved, cwd, getCanonicalFileName)) - } - ); - } - } -} -function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) { - const aParts = getPathComponents(getNormalizedAbsolutePath(a, cwd)); - const bParts = getPathComponents(getNormalizedAbsolutePath(b, cwd)); - let isDirectory = false; - while (aParts.length >= 2 && bParts.length >= 2 && !isNodeModulesOrScopedPackageDirectory(aParts[aParts.length - 2], getCanonicalFileName) && !isNodeModulesOrScopedPackageDirectory(bParts[bParts.length - 2], getCanonicalFileName) && getCanonicalFileName(aParts[aParts.length - 1]) === getCanonicalFileName(bParts[bParts.length - 1])) { - aParts.pop(); - bParts.pop(); - isDirectory = true; - } - return isDirectory ? [getPathFromPathComponents(aParts), getPathFromPathComponents(bParts)] : void 0; -} -function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) { - return s !== void 0 && (getCanonicalFileName(s) === "node_modules" || startsWith(s, "@")); -} -var reservedCharacterPattern = /[^\w\s/]/g; -var wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; -var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; -var implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; -var filesMatcher = { - /** - * Matches any single directory segment unless it is the last segment and a .min.js file - * Breakdown: - * [^./] # matches everything up to the first . character (excluding directory separators) - * (\\.(?!min\\.js$))? # matches . characters but not if they are part of the .min.js file extension - */ - singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*", - /** - * Regex for the ** wildcard. Matches any number of subdirectories. When used for including - * files or directories, does not match subdirectories that start with a . character - */ - doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`, - replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment) -}; -var directoriesMatcher = { - singleAsteriskRegexFragment: "[^/]*", - /** - * Regex for the ** wildcard. Matches any number of subdirectories. When used for including - * files or directories, does not match subdirectories that start with a . character - */ - doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`, - replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment) -}; -var excludeMatcher = { - singleAsteriskRegexFragment: "[^/]*", - doubleAsteriskRegexFragment: "(/.+?)?", - replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment) -}; -var wildcardMatchers = { - files: filesMatcher, - directories: directoriesMatcher, - exclude: excludeMatcher -}; -function getRegularExpressionForWildcard(specs, basePath, usage) { - const patterns = getRegularExpressionsForWildcards(specs, basePath, usage); - if (!patterns || !patterns.length) { - return void 0; - } - const pattern = patterns.map((pattern2) => `(${pattern2})`).join("|"); - const terminator = usage === "exclude" ? "($|/)" : "$"; - return `^(${pattern})${terminator}`; -} -function getRegularExpressionsForWildcards(specs, basePath, usage) { - if (specs === void 0 || specs.length === 0) { - return void 0; - } - return flatMap(specs, (spec) => spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage])); -} -function isImplicitGlob(lastPathComponent) { - return !/[.*?]/.test(lastPathComponent); -} -function getPatternFromSpec(spec, basePath, usage) { - const pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]); - return pattern && `^(${pattern})${usage === "exclude" ? "($|/)" : "$"}`; -} -function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter: replaceWildcardCharacter2 } = wildcardMatchers[usage]) { - let subpattern = ""; - let hasWrittenComponent = false; - const components = getNormalizedPathComponents(spec, basePath); - const lastComponent = last(components); - if (usage !== "exclude" && lastComponent === "**") { - return void 0; - } - components[0] = removeTrailingDirectorySeparator(components[0]); - if (isImplicitGlob(lastComponent)) { - components.push("**", "*"); - } - let optionalCount = 0; - for (let component of components) { - if (component === "**") { - subpattern += doubleAsteriskRegexFragment; - } else { - if (usage === "directories") { - subpattern += "("; - optionalCount++; - } - if (hasWrittenComponent) { - subpattern += directorySeparator; - } - if (usage !== "exclude") { - let componentPattern = ""; - if (component.charCodeAt(0) === 42 /* asterisk */) { - componentPattern += "([^./]" + singleAsteriskRegexFragment + ")?"; - component = component.substr(1); - } else if (component.charCodeAt(0) === 63 /* question */) { - componentPattern += "[^./]"; - component = component.substr(1); - } - componentPattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2); - if (componentPattern !== component) { - subpattern += implicitExcludePathRegexPattern; - } - subpattern += componentPattern; - } else { - subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2); - } - } - hasWrittenComponent = true; - } - while (optionalCount > 0) { - subpattern += ")?"; - optionalCount--; - } - return subpattern; -} -function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { - return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; -} -function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { - path = normalizePath(path); - currentDirectory = normalizePath(currentDirectory); - const absolutePath = combinePaths(currentDirectory, path); - return { - includeFilePatterns: map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), (pattern) => `^${pattern}$`), - includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), - includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), - excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), - basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) - }; -} -function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { - return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); -} -function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { - path = normalizePath(path); - currentDirectory = normalizePath(currentDirectory); - const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); - const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); - const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); - const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); - const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; - const visited = /* @__PURE__ */ new Map(); - const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); - for (const basePath of patterns.basePaths) { - visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); - } - return flatten(results); - function visitDirectory(path2, absolutePath, depth2) { - const canonicalPath = toCanonical(realpath(absolutePath)); - if (visited.has(canonicalPath)) return; - visited.set(canonicalPath, true); - const { files, directories } = getFileSystemEntries(path2); - for (const current of toSorted(files, compareStringsCaseSensitive)) { - const name = combinePaths(path2, current); - const absoluteName = combinePaths(absolutePath, current); - if (extensions && !fileExtensionIsOneOf(name, extensions)) continue; - if (excludeRegex && excludeRegex.test(absoluteName)) continue; - if (!includeFileRegexes) { - results[0].push(name); - } else { - const includeIndex = findIndex(includeFileRegexes, (re) => re.test(absoluteName)); - if (includeIndex !== -1) { - results[includeIndex].push(name); - } - } - } - if (depth2 !== void 0) { - depth2--; - if (depth2 === 0) { - return; - } - } - for (const current of toSorted(directories, compareStringsCaseSensitive)) { - const name = combinePaths(path2, current); - const absoluteName = combinePaths(absolutePath, current); - if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) && (!excludeRegex || !excludeRegex.test(absoluteName))) { - visitDirectory(name, absoluteName, depth2); - } - } - } -} -function getBasePaths(path, includes, useCaseSensitiveFileNames2) { - const basePaths = [path]; - if (includes) { - const includeBasePaths = []; - for (const include of includes) { - const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); - includeBasePaths.push(getIncludeBasePath(absolute)); - } - includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); - for (const includeBasePath of includeBasePaths) { - if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { - basePaths.push(includeBasePath); - } - } - } - return basePaths; -} -function getIncludeBasePath(absolute) { - const wildcardOffset = indexOfAnyCharCode(absolute, wildcardCharCodes); - if (wildcardOffset < 0) { - return !hasExtension(absolute) ? absolute : removeTrailingDirectorySeparator(getDirectoryPath(absolute)); - } - return absolute.substring(0, absolute.lastIndexOf(directorySeparator, wildcardOffset)); -} -function ensureScriptKind(fileName, scriptKind) { - return scriptKind || getScriptKindFromFileName(fileName) || 3 /* TS */; -} -function getScriptKindFromFileName(fileName) { - const ext = fileName.substr(fileName.lastIndexOf(".")); - switch (ext.toLowerCase()) { - case ".js" /* Js */: - case ".cjs" /* Cjs */: - case ".mjs" /* Mjs */: - return 1 /* JS */; - case ".jsx" /* Jsx */: - return 2 /* JSX */; - case ".ts" /* Ts */: - case ".cts" /* Cts */: - case ".mts" /* Mts */: - return 3 /* TS */; - case ".tsx" /* Tsx */: - return 4 /* TSX */; - case ".json" /* Json */: - return 6 /* JSON */; - default: - return 0 /* Unknown */; - } -} -var supportedTSExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */], [".cts" /* Cts */, ".d.cts" /* Dcts */], [".mts" /* Mts */, ".d.mts" /* Dmts */]]; -var supportedTSExtensionsFlat = flatten(supportedTSExtensions); -var supportedTSExtensionsWithJson = [...supportedTSExtensions, [".json" /* Json */]]; -var supportedTSExtensionsForExtractExtension = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */, ".cts" /* Cts */, ".mts" /* Mts */, ".ts" /* Ts */, ".tsx" /* Tsx */]; -var supportedJSExtensions = [[".js" /* Js */, ".jsx" /* Jsx */], [".mjs" /* Mjs */], [".cjs" /* Cjs */]]; -var supportedJSExtensionsFlat = flatten(supportedJSExtensions); -var allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]]; -var allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]]; -var supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */]; -var supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */]; -var extensionsNotSupportingExtensionlessResolution = [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */]; -function getSupportedExtensions(options, extraFileExtensions) { - const needJsExtensions = options && getAllowJSCompilerOption(options); - if (!extraFileExtensions || extraFileExtensions.length === 0) { - return needJsExtensions ? allSupportedExtensions : supportedTSExtensions; - } - const builtins = needJsExtensions ? allSupportedExtensions : supportedTSExtensions; - const flatBuiltins = flatten(builtins); - const extensions = [ - ...builtins, - ...mapDefined(extraFileExtensions, (x) => x.scriptKind === 7 /* Deferred */ || needJsExtensions && isJSLike(x.scriptKind) && !flatBuiltins.includes(x.extension) ? [x.extension] : void 0) - ]; - return extensions; -} -function getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions) { - if (!options || !getResolveJsonModule(options)) return supportedExtensions; - if (supportedExtensions === allSupportedExtensions) return allSupportedExtensionsWithJson; - if (supportedExtensions === supportedTSExtensions) return supportedTSExtensionsWithJson; - return [...supportedExtensions, [".json" /* Json */]]; -} -function isJSLike(scriptKind) { - return scriptKind === 1 /* JS */ || scriptKind === 2 /* JSX */; -} -function hasJSFileExtension(fileName) { - return some(supportedJSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension)); -} -function hasTSFileExtension(fileName) { - return some(supportedTSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension)); -} -function hasImplementationTSFileExtension(fileName) { - return some(supportedTSImplementationExtensions, (extension) => fileExtensionIs(fileName, extension)) && !isDeclarationFileName(fileName); -} -function usesExtensionsOnImports({ imports }, hasExtension2 = or(hasJSFileExtension, hasTSFileExtension)) { - return firstDefined(imports, ({ text }) => pathIsRelative(text) && !fileExtensionIsOneOf(text, extensionsNotSupportingExtensionlessResolution) ? hasExtension2(text) : void 0) || false; -} -function getModuleSpecifierEndingPreference(preference, resolutionMode, compilerOptions, sourceFile) { - const moduleResolution = getEmitModuleResolutionKind(compilerOptions); - const moduleResolutionIsNodeNext = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */; - if (preference === "js" || resolutionMode === 99 /* ESNext */ && moduleResolutionIsNodeNext) { - if (!shouldAllowImportingTsExtension(compilerOptions)) { - return 2 /* JsExtension */; - } - return inferPreference() !== 2 /* JsExtension */ ? 3 /* TsExtension */ : 2 /* JsExtension */; - } - if (preference === "minimal") { - return 0 /* Minimal */; - } - if (preference === "index") { - return 1 /* Index */; - } - if (!shouldAllowImportingTsExtension(compilerOptions)) { - return sourceFile && usesExtensionsOnImports(sourceFile) ? 2 /* JsExtension */ : 0 /* Minimal */; - } - return inferPreference(); - function inferPreference() { - let usesJsExtensions = false; - const specifiers = (sourceFile == null ? void 0 : sourceFile.imports.length) ? sourceFile.imports : sourceFile && isSourceFileJS(sourceFile) ? getRequiresAtTopOfFile(sourceFile).map((r) => r.arguments[0]) : emptyArray; - for (const specifier of specifiers) { - if (pathIsRelative(specifier.text)) { - if (moduleResolutionIsNodeNext && resolutionMode === 1 /* CommonJS */ && getModeForUsageLocation(sourceFile, specifier, compilerOptions) === 99 /* ESNext */) { - continue; - } - if (fileExtensionIsOneOf(specifier.text, extensionsNotSupportingExtensionlessResolution)) { - continue; - } - if (hasTSFileExtension(specifier.text)) { - return 3 /* TsExtension */; - } - if (hasJSFileExtension(specifier.text)) { - usesJsExtensions = true; - } - } - } - return usesJsExtensions ? 2 /* JsExtension */ : 0 /* Minimal */; - } -} -function getRequiresAtTopOfFile(sourceFile) { - let nonRequireStatementCount = 0; - let requires; - for (const statement of sourceFile.statements) { - if (nonRequireStatementCount > 3) { - break; - } - if (isRequireVariableStatement(statement)) { - requires = concatenate(requires, statement.declarationList.declarations.map((d) => d.initializer)); - } else if (isExpressionStatement(statement) && isRequireCall( - statement.expression, - /*requireStringLiteralLikeArgument*/ - true - )) { - requires = append(requires, statement.expression); - } else { - nonRequireStatementCount++; - } - } - return requires || emptyArray; -} -function isSupportedSourceFileName(fileName, compilerOptions, extraFileExtensions) { - if (!fileName) return false; - const supportedExtensions = getSupportedExtensions(compilerOptions, extraFileExtensions); - for (const extension of flatten(getSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions, supportedExtensions))) { - if (fileExtensionIs(fileName, extension)) { - return true; - } - } - return false; -} -function numberOfDirectorySeparators(str) { - const match = str.match(/\//g); - return match ? match.length : 0; -} -function compareNumberOfDirectorySeparators(path1, path2) { - return compareValues( - numberOfDirectorySeparators(path1), - numberOfDirectorySeparators(path2) - ); -} -var extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */]; -function removeFileExtension(path) { - for (const ext of extensionsToRemove) { - const extensionless = tryRemoveExtension(path, ext); - if (extensionless !== void 0) { - return extensionless; - } - } - return path; -} -function tryRemoveExtension(path, extension) { - return fileExtensionIs(path, extension) ? removeExtension(path, extension) : void 0; -} -function removeExtension(path, extension) { - return path.substring(0, path.length - extension.length); -} -function changeExtension(path, newExtension) { - return changeAnyExtension( - path, - newExtension, - extensionsToRemove, - /*ignoreCase*/ - false - ); -} -function tryParsePattern(pattern) { - const indexOfStar = pattern.indexOf("*"); - if (indexOfStar === -1) { - return pattern; - } - return pattern.indexOf("*", indexOfStar + 1) !== -1 ? void 0 : { - prefix: pattern.substr(0, indexOfStar), - suffix: pattern.substr(indexOfStar + 1) - }; -} -var parsedPatternsCache = /* @__PURE__ */ new WeakMap(); -function tryParsePatterns(paths) { - let result = parsedPatternsCache.get(paths); - if (result !== void 0) { - return result; - } - let matchableStringSet; - let patterns; - const pathList = getOwnKeys(paths); - for (const path of pathList) { - const patternOrStr = tryParsePattern(path); - if (patternOrStr === void 0) { - continue; - } else if (typeof patternOrStr === "string") { - (matchableStringSet ?? (matchableStringSet = /* @__PURE__ */ new Set())).add(patternOrStr); - } else { - (patterns ?? (patterns = [])).push(patternOrStr); - } - } - parsedPatternsCache.set( - paths, - result = { - matchableStringSet, - patterns - } - ); - return result; -} -function positionIsSynthesized(pos) { - return !(pos >= 0); -} -function extensionIsTS(ext) { - return ext === ".ts" /* Ts */ || ext === ".tsx" /* Tsx */ || ext === ".d.ts" /* Dts */ || ext === ".cts" /* Cts */ || ext === ".mts" /* Mts */ || ext === ".d.mts" /* Dmts */ || ext === ".d.cts" /* Dcts */ || startsWith(ext, ".d.") && endsWith(ext, ".ts"); -} -function resolutionExtensionIsTSOrJson(ext) { - return extensionIsTS(ext) || ext === ".json" /* Json */; -} -function extensionFromPath(path) { - const ext = tryGetExtensionFromPath2(path); - return ext !== void 0 ? ext : Debug.fail(`File ${path} has unknown extension.`); -} -function tryGetExtensionFromPath2(path) { - return find(extensionsToRemove, (e) => fileExtensionIs(path, e)); -} -function isCheckJsEnabledForFile(sourceFile, compilerOptions) { - return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs; -} -var emptyFileSystemEntries = { - files: emptyArray, - directories: emptyArray -}; -function matchPatternOrExact(parsedPatterns, candidate) { - const { matchableStringSet, patterns } = parsedPatterns; - if (matchableStringSet == null ? void 0 : matchableStringSet.has(candidate)) { - return candidate; - } - if (patterns === void 0 || patterns.length === 0) { - return void 0; - } - return findBestPatternMatch(patterns, (_) => _, candidate); -} -function sliceAfter(arr, value) { - const index = arr.indexOf(value); - Debug.assert(index !== -1); - return arr.slice(index); -} -function addRelatedInfo(diagnostic, ...relatedInformation) { - if (!relatedInformation.length) { - return diagnostic; - } - if (!diagnostic.relatedInformation) { - diagnostic.relatedInformation = []; - } - Debug.assert(diagnostic.relatedInformation !== emptyArray, "Diagnostic had empty array singleton for related info, but is still being constructed!"); - diagnostic.relatedInformation.push(...relatedInformation); - return diagnostic; -} -function minAndMax(arr, getValue) { - Debug.assert(arr.length !== 0); - let min2 = getValue(arr[0]); - let max = min2; - for (let i = 1; i < arr.length; i++) { - const value = getValue(arr[i]); - if (value < min2) { - min2 = value; - } else if (value > max) { - max = value; - } - } - return { min: min2, max }; -} -function rangeOfNode(node) { - return { pos: getTokenPosOfNode(node), end: node.end }; -} -function rangeOfTypeParameters(sourceFile, typeParameters) { - const pos = typeParameters.pos - 1; - const end = Math.min(sourceFile.text.length, skipTrivia(sourceFile.text, typeParameters.end) + 1); - return { pos, end }; -} -function skipTypeChecking(sourceFile, options, host) { - return skipTypeCheckingWorker( - sourceFile, - options, - host, - /*ignoreNoCheck*/ - false - ); -} -function skipTypeCheckingIgnoringNoCheck(sourceFile, options, host) { - return skipTypeCheckingWorker( - sourceFile, - options, - host, - /*ignoreNoCheck*/ - true - ); -} -function skipTypeCheckingWorker(sourceFile, options, host, ignoreNoCheck) { - return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || !ignoreNoCheck && options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnostics(sourceFile, options); -} -function canIncludeBindAndCheckDiagnostics(sourceFile, options) { - if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false; - if (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */ || sourceFile.scriptKind === 5 /* External */) return true; - const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; - const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options); - const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); - return isPlainJs || isCheckJs || sourceFile.scriptKind === 7 /* Deferred */; -} -function isJsonEqual(a, b) { - return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual); -} -function parsePseudoBigInt(stringValue) { - let log2Base; - switch (stringValue.charCodeAt(1)) { - // "x" in "0x123" - case 98 /* b */: - case 66 /* B */: - log2Base = 1; - break; - case 111 /* o */: - case 79 /* O */: - log2Base = 3; - break; - case 120 /* x */: - case 88 /* X */: - log2Base = 4; - break; - default: - const nIndex = stringValue.length - 1; - let nonZeroStart = 0; - while (stringValue.charCodeAt(nonZeroStart) === 48 /* _0 */) { - nonZeroStart++; - } - return stringValue.slice(nonZeroStart, nIndex) || "0"; - } - const startIndex = 2, endIndex = stringValue.length - 1; - const bitsNeeded = (endIndex - startIndex) * log2Base; - const segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0)); - for (let i = endIndex - 1, bitOffset = 0; i >= startIndex; i--, bitOffset += log2Base) { - const segment = bitOffset >>> 4; - const digitChar = stringValue.charCodeAt(i); - const digit = digitChar <= 57 /* _9 */ ? digitChar - 48 /* _0 */ : 10 + digitChar - (digitChar <= 70 /* F */ ? 65 /* A */ : 97 /* a */); - const shiftedDigit = digit << (bitOffset & 15); - segments[segment] |= shiftedDigit; - const residual = shiftedDigit >>> 16; - if (residual) segments[segment + 1] |= residual; - } - let base10Value = ""; - let firstNonzeroSegment = segments.length - 1; - let segmentsRemaining = true; - while (segmentsRemaining) { - let mod10 = 0; - segmentsRemaining = false; - for (let segment = firstNonzeroSegment; segment >= 0; segment--) { - const newSegment = mod10 << 16 | segments[segment]; - const segmentValue = newSegment / 10 | 0; - segments[segment] = segmentValue; - mod10 = newSegment - segmentValue * 10; - if (segmentValue && !segmentsRemaining) { - firstNonzeroSegment = segment; - segmentsRemaining = true; - } - } - base10Value = mod10 + base10Value; - } - return base10Value; -} -function pseudoBigIntToString({ negative, base10Value }) { - return (negative && base10Value !== "0" ? "-" : "") + base10Value; -} -function parseValidBigInt(text) { - const negative = text.startsWith("-"); - const base10Value = parsePseudoBigInt(`${negative ? text.slice(1) : text}n`); - return { negative, base10Value }; -} -function isValidBigIntString(s, roundTripOnly) { - if (s === "") return false; - const scanner = createScanner( - 99 /* ESNext */, - /*skipTrivia*/ - false - ); - let success = true; - scanner.setOnError(() => success = false); - scanner.setText(s + "n"); - let result = scanner.scan(); - const negative = result === 41 /* MinusToken */; - if (negative) { - result = scanner.scan(); - } - const flags = scanner.getTokenFlags(); - return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) })); -} -function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); -} -function isShorthandPropertyNameUseSite(useSite) { - return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; -} -function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { - while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { - node = node.parent; - } - if (node.kind !== 167 /* ComputedPropertyName */) { - return false; - } - if (hasSyntacticModifier(node.parent, 64 /* Abstract */)) { - return true; - } - const containerKind = node.parent.parent.kind; - return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; -} -function isIdentifierInNonEmittingHeritageClause(node) { - if (node.kind !== 80 /* Identifier */) return false; - const heritageClause = findAncestor(node.parent, (parent) => { - switch (parent.kind) { - case 298 /* HeritageClause */: - return true; - case 211 /* PropertyAccessExpression */: - case 233 /* ExpressionWithTypeArguments */: - return false; - default: - return "quit"; - } - }); - return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; -} -function isIdentifierTypeReference(node) { - return isTypeReferenceNode(node) && isIdentifier(node.typeName); -} -function arrayIsHomogeneous(array, comparer = equateValues) { - if (array.length < 2) return true; - const first2 = array[0]; - for (let i = 1, length2 = array.length; i < length2; i++) { - const target = array[i]; - if (!comparer(first2, target)) return false; - } - return true; -} -function setTextRangePos(range, pos) { - range.pos = pos; - return range; -} -function setTextRangeEnd(range, end) { - range.end = end; - return range; -} -function setTextRangePosEnd(range, pos, end) { - return setTextRangeEnd(setTextRangePos(range, pos), end); -} -function setTextRangePosWidth(range, pos, width) { - return setTextRangePosEnd(range, pos, pos + width); -} -function setNodeFlags(node, newFlags) { - if (node) { - node.flags = newFlags; - } - return node; -} -function setParent(child, parent) { - if (child && parent) { - child.parent = parent; - } - return child; -} -function setParentRecursive(rootNode, incremental) { - if (!rootNode) return rootNode; - forEachChildRecursively(rootNode, isJSDocNode(rootNode) ? bindParentToChildIgnoringJSDoc : bindParentToChild); - return rootNode; - function bindParentToChildIgnoringJSDoc(child, parent) { - if (incremental && child.parent === parent) { - return "skip"; - } - setParent(child, parent); - } - function bindJSDoc(child) { - if (hasJSDocNodes(child)) { - for (const doc of child.jsDoc) { - bindParentToChildIgnoringJSDoc(doc, child); - forEachChildRecursively(doc, bindParentToChildIgnoringJSDoc); - } - } - } - function bindParentToChild(child, parent) { - return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child); - } -} -function isPackedElement(node) { - return !isOmittedExpression(node); -} -function isPackedArrayLiteral(node) { - return isArrayLiteralExpression(node) && every(node.elements, isPackedElement); -} -function expressionResultIsUnused(node) { - Debug.assertIsDefined(node.parent); - while (true) { - const parent = node.parent; - if (isParenthesizedExpression(parent)) { - node = parent; - continue; - } - if (isExpressionStatement(parent) || isVoidExpression(parent) || isForStatement(parent) && (parent.initializer === node || parent.incrementor === node)) { - return true; - } - if (isCommaListExpression(parent)) { - if (node !== last(parent.elements)) return true; - node = parent; - continue; - } - if (isBinaryExpression(parent) && parent.operatorToken.kind === 28 /* CommaToken */) { - if (node === parent.left) return true; - node = parent; - continue; - } - return false; - } -} -function containsIgnoredPath(path) { - return some(ignoredPaths, (p) => path.includes(p)); -} -function getContainingNodeArray(node) { - if (!node.parent) return void 0; - switch (node.kind) { - case 168 /* TypeParameter */: - const { parent: parent2 } = node; - return parent2.kind === 195 /* InferType */ ? void 0 : parent2.typeParameters; - case 169 /* Parameter */: - return node.parent.parameters; - case 204 /* TemplateLiteralTypeSpan */: - return node.parent.templateSpans; - case 239 /* TemplateSpan */: - return node.parent.templateSpans; - case 170 /* Decorator */: { - const { parent: parent3 } = node; - return canHaveDecorators(parent3) ? parent3.modifiers : void 0; - } - case 298 /* HeritageClause */: - return node.parent.heritageClauses; - } - const { parent } = node; - if (isJSDocTag(node)) { - return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; - } - switch (parent.kind) { - case 187 /* TypeLiteral */: - case 264 /* InterfaceDeclaration */: - return isTypeElement(node) ? parent.members : void 0; - case 192 /* UnionType */: - case 193 /* IntersectionType */: - return parent.types; - case 189 /* TupleType */: - case 209 /* ArrayLiteralExpression */: - case 356 /* CommaListExpression */: - case 275 /* NamedImports */: - case 279 /* NamedExports */: - return parent.elements; - case 210 /* ObjectLiteralExpression */: - case 292 /* JsxAttributes */: - return parent.properties; - case 213 /* CallExpression */: - case 214 /* NewExpression */: - return isTypeNode(node) ? parent.typeArguments : parent.expression === node ? void 0 : parent.arguments; - case 284 /* JsxElement */: - case 288 /* JsxFragment */: - return isJsxChild(node) ? parent.children : void 0; - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - return isTypeNode(node) ? parent.typeArguments : void 0; - case 241 /* Block */: - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - case 268 /* ModuleBlock */: - return parent.statements; - case 269 /* CaseBlock */: - return parent.clauses; - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return isClassElement(node) ? parent.members : void 0; - case 266 /* EnumDeclaration */: - return isEnumMember(node) ? parent.members : void 0; - case 307 /* SourceFile */: - return parent.statements; - } -} -function hasContextSensitiveParameters(node) { - if (!node.typeParameters) { - if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { - return true; - } - if (node.kind !== 219 /* ArrowFunction */) { - const parameter = firstOrUndefined(node.parameters); - if (!(parameter && parameterIsThisKeyword(parameter))) { - return true; - } - } - } - return false; -} -function isInfinityOrNaNString(name) { - return name === "Infinity" || name === "-Infinity" || name === "NaN"; -} -function isCatchClauseVariableDeclaration(node) { - return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; -} -function isFunctionExpressionOrArrowFunction(node) { - return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; -} -function isNumericLiteralName(name) { - return (+name).toString() === name; -} -function createPropertyNameNodeForIdentifierOrLiteral(name, target, singleQuote, stringNamed, isMethod) { - const isMethodNamedNew = isMethod && name === "new"; - return !isMethodNamedNew && isIdentifierText(name, target) ? factory.createIdentifier(name) : !stringNamed && !isMethodNamedNew && isNumericLiteralName(name) && +name >= 0 ? factory.createNumericLiteral(+name) : factory.createStringLiteral(name, !!singleQuote); -} -function isThisTypeParameter(type) { - return !!(type.flags & 262144 /* TypeParameter */ && type.isThisType); -} -function getNodeModulePathParts(fullPath) { - let topLevelNodeModulesIndex = 0; - let topLevelPackageNameIndex = 0; - let packageRootIndex = 0; - let fileNameIndex = 0; - let States; - ((States2) => { - States2[States2["BeforeNodeModules"] = 0] = "BeforeNodeModules"; - States2[States2["NodeModules"] = 1] = "NodeModules"; - States2[States2["Scope"] = 2] = "Scope"; - States2[States2["PackageContent"] = 3] = "PackageContent"; - })(States || (States = {})); - let partStart = 0; - let partEnd = 0; - let state = 0 /* BeforeNodeModules */; - while (partEnd >= 0) { - partStart = partEnd; - partEnd = fullPath.indexOf("/", partStart + 1); - switch (state) { - case 0 /* BeforeNodeModules */: - if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) { - topLevelNodeModulesIndex = partStart; - topLevelPackageNameIndex = partEnd; - state = 1 /* NodeModules */; - } - break; - case 1 /* NodeModules */: - case 2 /* Scope */: - if (state === 1 /* NodeModules */ && fullPath.charAt(partStart + 1) === "@") { - state = 2 /* Scope */; - } else { - packageRootIndex = partEnd; - state = 3 /* PackageContent */; - } - break; - case 3 /* PackageContent */: - if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) { - state = 1 /* NodeModules */; - } else { - state = 3 /* PackageContent */; - } - break; - } - } - fileNameIndex = partStart; - return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : void 0; -} -function isTypeDeclaration(node) { - switch (node.kind) { - case 168 /* TypeParameter */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 266 /* EnumDeclaration */: - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - return true; - case 273 /* ImportClause */: - return node.isTypeOnly; - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - return node.parent.parent.isTypeOnly; - default: - return false; - } -} -function canHaveExportModifier(node) { - return isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isTypeDeclaration(node) || isModuleDeclaration(node) && !isExternalModuleAugmentation(node) && !isGlobalScopeAugmentation(node); -} -function isOptionalJSDocPropertyLikeTag(node) { - if (!isJSDocPropertyLikeTag(node)) { - return false; - } - const { isBracketed, typeExpression } = node; - return isBracketed || !!typeExpression && typeExpression.type.kind === 316 /* JSDocOptionalType */; -} -function canUsePropertyAccess(name, languageVersion) { - if (name.length === 0) { - return false; - } - const firstChar = name.charCodeAt(0); - return firstChar === 35 /* hash */ ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion); -} -function isJSDocOptionalParameter(node) { - return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType - (node.type && node.type.kind === 316 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(isOptionalJSDocPropertyLikeTag)); -} -function isOptionalDeclaration(declaration) { - switch (declaration.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return !!declaration.questionToken; - case 169 /* Parameter */: - return !!declaration.questionToken || isJSDocOptionalParameter(declaration); - case 348 /* JSDocPropertyTag */: - case 341 /* JSDocParameterTag */: - return isOptionalJSDocPropertyLikeTag(declaration); - default: - return false; - } -} -function isNonNullAccess(node) { - const kind = node.kind; - return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); -} -function isJSDocSatisfiesExpression(node) { - return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); -} -function getJSDocSatisfiesExpressionType(node) { - return Debug.checkDefined(tryGetJSDocSatisfiesTypeNode(node)); -} -function tryGetJSDocSatisfiesTypeNode(node) { - const tag = getJSDocSatisfiesTag(node); - return tag && tag.typeExpression && tag.typeExpression.type; -} -function getEscapedTextOfJsxAttributeName(node) { - return isIdentifier(node) ? node.escapedText : getEscapedTextOfJsxNamespacedName(node); -} -function getTextOfJsxAttributeName(node) { - return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); -} -function isJsxAttributeName(node) { - const kind = node.kind; - return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; -} -function getEscapedTextOfJsxNamespacedName(node) { - return `${node.namespace.escapedText}:${idText(node.name)}`; -} -function getTextOfJsxNamespacedName(node) { - return `${idText(node.namespace)}:${idText(node.name)}`; -} -function intrinsicTagNameToString(node) { - return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); -} -function isTypeUsableAsPropertyName(type) { - return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); -} -function getPropertyNameFromType(type) { - if (type.flags & 8192 /* UniqueESSymbol */) { - return type.escapedName; - } - if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - return escapeLeadingUnderscores("" + type.value); - } - return Debug.fail(); -} -function isExpandoPropertyDeclaration(declaration) { - return !!declaration && (isPropertyAccessExpression(declaration) || isElementAccessExpression(declaration) || isBinaryExpression(declaration)); -} -function hasResolutionModeOverride(node) { - if (node === void 0) { - return false; - } - return !!getResolutionModeOverride(node.attributes); -} -var stringReplace = String.prototype.replace; -function replaceFirstStar(s, replacement) { - return stringReplace.call(s, "*", replacement); -} -function getNameFromImportAttribute(node) { - return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text); -} -function evaluatorResult(value, isSyntacticallyString = false, resolvedOtherFiles = false, hasExternalReferences = false) { - return { value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences }; -} -function createEvaluator({ evaluateElementAccessExpression, evaluateEntityNameExpression }) { - function evaluate(expr, location) { - let isSyntacticallyString = false; - let resolvedOtherFiles = false; - let hasExternalReferences = false; - expr = skipParentheses(expr); - switch (expr.kind) { - case 224 /* PrefixUnaryExpression */: - const result = evaluate(expr.operand, location); - resolvedOtherFiles = result.resolvedOtherFiles; - hasExternalReferences = result.hasExternalReferences; - if (typeof result.value === "number") { - switch (expr.operator) { - case 40 /* PlusToken */: - return evaluatorResult(result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 41 /* MinusToken */: - return evaluatorResult(-result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 55 /* TildeToken */: - return evaluatorResult(~result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - } - } - break; - case 226 /* BinaryExpression */: { - const left = evaluate(expr.left, location); - const right = evaluate(expr.right, location); - isSyntacticallyString = (left.isSyntacticallyString || right.isSyntacticallyString) && expr.operatorToken.kind === 40 /* PlusToken */; - resolvedOtherFiles = left.resolvedOtherFiles || right.resolvedOtherFiles; - hasExternalReferences = left.hasExternalReferences || right.hasExternalReferences; - if (typeof left.value === "number" && typeof right.value === "number") { - switch (expr.operatorToken.kind) { - case 52 /* BarToken */: - return evaluatorResult(left.value | right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 51 /* AmpersandToken */: - return evaluatorResult(left.value & right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 49 /* GreaterThanGreaterThanToken */: - return evaluatorResult(left.value >> right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - return evaluatorResult(left.value >>> right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 48 /* LessThanLessThanToken */: - return evaluatorResult(left.value << right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 53 /* CaretToken */: - return evaluatorResult(left.value ^ right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 42 /* AsteriskToken */: - return evaluatorResult(left.value * right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 44 /* SlashToken */: - return evaluatorResult(left.value / right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 40 /* PlusToken */: - return evaluatorResult(left.value + right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 41 /* MinusToken */: - return evaluatorResult(left.value - right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 45 /* PercentToken */: - return evaluatorResult(left.value % right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - case 43 /* AsteriskAsteriskToken */: - return evaluatorResult(left.value ** right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); - } - } else if ((typeof left.value === "string" || typeof left.value === "number") && (typeof right.value === "string" || typeof right.value === "number") && expr.operatorToken.kind === 40 /* PlusToken */) { - return evaluatorResult( - "" + left.value + right.value, - isSyntacticallyString, - resolvedOtherFiles, - hasExternalReferences - ); - } - break; - } - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - return evaluatorResult( - expr.text, - /*isSyntacticallyString*/ - true - ); - case 228 /* TemplateExpression */: - return evaluateTemplateExpression(expr, location); - case 9 /* NumericLiteral */: - return evaluatorResult(+expr.text); - case 80 /* Identifier */: - return evaluateEntityNameExpression(expr, location); - case 211 /* PropertyAccessExpression */: - if (isEntityNameExpression(expr)) { - return evaluateEntityNameExpression(expr, location); - } - break; - case 212 /* ElementAccessExpression */: - return evaluateElementAccessExpression(expr, location); - } - return evaluatorResult( - /*value*/ - void 0, - isSyntacticallyString, - resolvedOtherFiles, - hasExternalReferences - ); - } - function evaluateTemplateExpression(expr, location) { - let result = expr.head.text; - let resolvedOtherFiles = false; - let hasExternalReferences = false; - for (const span of expr.templateSpans) { - const spanResult = evaluate(span.expression, location); - if (spanResult.value === void 0) { - return evaluatorResult( - /*value*/ - void 0, - /*isSyntacticallyString*/ - true - ); - } - result += spanResult.value; - result += span.literal.text; - resolvedOtherFiles || (resolvedOtherFiles = spanResult.resolvedOtherFiles); - hasExternalReferences || (hasExternalReferences = spanResult.hasExternalReferences); - } - return evaluatorResult( - result, - /*isSyntacticallyString*/ - true, - resolvedOtherFiles, - hasExternalReferences - ); - } - return evaluate; -} -function isConstAssertion(location) { - return isAssertionExpression(location) && isConstTypeReference(location.type) || isJSDocTypeTag(location) && isConstTypeReference(location.typeExpression); -} -function findConstructorDeclaration(node) { - const members = node.members; - for (const member of members) { - if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { - return member; - } - } -} -function createNameResolver({ - compilerOptions, - requireSymbol, - argumentsSymbol, - error, - getSymbolOfDeclaration, - globals, - lookup, - setRequiresScopeChangeCache = returnUndefined, - getRequiresScopeChangeCache = returnUndefined, - onPropertyWithInvalidInitializer = returnFalse, - onFailedToResolveSymbol = returnUndefined, - onSuccessfullyResolvedSymbol = returnUndefined -}) { - var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; - var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); - var emptySymbols = createSymbolTable(); - return resolveNameHelper; - function resolveNameHelper(location, nameArg, meaning, nameNotFoundMessage, isUse, excludeGlobals) { - var _a, _b, _c; - const originalLocation = location; - let result; - let lastLocation; - let lastSelfReferenceLocation; - let propertyWithInvalidInitializer; - let associatedDeclarationForContainingInitializerOrBindingName; - let withinDeferredContext = false; - let grandparent; - const name = isString(nameArg) ? nameArg : nameArg.escapedText; - loop: - while (location) { - if (name === "const" && isConstAssertion(location)) { - return void 0; - } - if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { - lastLocation = location; - location = location.parent; - } - if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { - if (result = lookup(location.locals, name, meaning)) { - let useResult = true; - if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { - if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 320 /* JSDoc */) { - useResult = result.flags & 262144 /* TypeParameter */ ? !!(lastLocation.flags & 16 /* Synthesized */) || // Synthetic fake scopes are added for signatures so type parameters are accessible from them - lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 341 /* JSDocParameterTag */ || lastLocation.kind === 342 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; - } - if (meaning & result.flags & 3 /* Variable */) { - if (useOuterVariableScopeInParameter(result, location, lastLocation)) { - useResult = false; - } else if (result.flags & 1 /* FunctionScopedVariable */) { - useResult = lastLocation.kind === 169 /* Parameter */ || !!(lastLocation.flags & 16 /* Synthesized */) || // Synthetic fake scopes are added for signatures so parameters are accessible from them - lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); - } - } - } else if (location.kind === 194 /* ConditionalType */) { - useResult = lastLocation === location.trueType; - } - if (useResult) { - break loop; - } else { - result = void 0; - } - } - } - withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); - switch (location.kind) { - case 307 /* SourceFile */: - if (!isExternalOrCommonJsModule(location)) break; - // falls through - case 267 /* ModuleDeclaration */: - const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; - if (location.kind === 307 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { - if (result = moduleExports.get("default" /* Default */)) { - const localSymbol = getLocalSymbolForExportDefault(result); - if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { - break loop; - } - result = void 0; - } - const moduleExport = moduleExports.get(name); - if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { - break; - } - } - if (name !== "default" /* Default */ && (result = lookup(moduleExports, name, meaning & 2623475 /* ModuleMember */))) { - if (isSourceFile(location) && location.commonJsModuleIndicator && !((_b = result.declarations) == null ? void 0 : _b.some(isJSDocTypeAlias))) { - result = void 0; - } else { - break loop; - } - } - break; - case 266 /* EnumDeclaration */: - if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { - if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { - error( - originalLocation, - Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, - unescapeLeadingUnderscores(name), - isolatedModulesLikeFlagName, - `${unescapeLeadingUnderscores(getSymbolOfDeclaration(location).escapedName)}.${unescapeLeadingUnderscores(name)}` - ); - } - break loop; - } - break; - case 172 /* PropertyDeclaration */: - if (!isStatic(location)) { - const ctor = findConstructorDeclaration(location.parent); - if (ctor && ctor.locals) { - if (lookup(ctor.locals, name, meaning & 111551 /* Value */)) { - Debug.assertNode(location, isPropertyDeclaration); - propertyWithInvalidInitializer = location; - } - } - } - break; - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 264 /* InterfaceDeclaration */: - if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { - if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { - result = void 0; - break; - } - if (lastLocation && isStatic(lastLocation)) { - if (nameNotFoundMessage) { - error(originalLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); - } - return void 0; - } - break loop; - } - if (isClassExpression(location) && meaning & 32 /* Class */) { - const className = location.name; - if (className && name === className.escapedText) { - result = location.symbol; - break loop; - } - } - break; - case 233 /* ExpressionWithTypeArguments */: - if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { - const container = location.parent.parent; - if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { - if (nameNotFoundMessage) { - error(originalLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); - } - return void 0; - } - } - break; - // It is not legal to reference a class's own type parameters from a computed property name that - // belongs to the class. For example: - // - // function foo() { return '' } - // class C { // <-- Class's own type parameter T - // [foo()]() { } // <-- Reference to T from class's own computed property - // } - // - case 167 /* ComputedPropertyName */: - grandparent = location.parent.parent; - if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { - if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { - if (nameNotFoundMessage) { - error(originalLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); - } - return void 0; - } - } - break; - case 219 /* ArrowFunction */: - if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { - break; - } - // falls through - case 174 /* MethodDeclaration */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 262 /* FunctionDeclaration */: - if (meaning & 3 /* Variable */ && name === "arguments") { - result = argumentsSymbol; - break loop; - } - break; - case 218 /* FunctionExpression */: - if (meaning & 3 /* Variable */ && name === "arguments") { - result = argumentsSymbol; - break loop; - } - if (meaning & 16 /* Function */) { - const functionName = location.name; - if (functionName && name === functionName.escapedText) { - result = location.symbol; - break loop; - } - } - break; - case 170 /* Decorator */: - if (location.parent && location.parent.kind === 169 /* Parameter */) { - location = location.parent; - } - if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { - location = location.parent; - } - break; - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - case 351 /* JSDocImportTag */: - const root = getJSDocRoot(location); - if (root) { - location = root.parent; - } - break; - case 169 /* Parameter */: - if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { - if (!associatedDeclarationForContainingInitializerOrBindingName) { - associatedDeclarationForContainingInitializerOrBindingName = location; - } - } - break; - case 208 /* BindingElement */: - if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { - if (isPartOfParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { - associatedDeclarationForContainingInitializerOrBindingName = location; - } - } - break; - case 195 /* InferType */: - if (meaning & 262144 /* TypeParameter */) { - const parameterName = location.typeParameter.name; - if (parameterName && name === parameterName.escapedText) { - result = location.typeParameter.symbol; - break loop; - } - } - break; - case 281 /* ExportSpecifier */: - if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { - location = location.parent.parent.parent; - } - break; - } - if (isSelfReferenceLocation(location, lastLocation)) { - lastSelfReferenceLocation = location; - } - lastLocation = location; - location = isJSDocTemplateTag(location) ? getEffectiveContainerForJSDocTemplateTag(location) || location.parent : isJSDocParameterTag(location) || isJSDocReturnTag(location) ? getHostSignatureFromJSDoc(location) || location.parent : location.parent; - } - if (isUse && result && (!lastSelfReferenceLocation || result !== lastSelfReferenceLocation.symbol)) { - result.isReferenced |= meaning; - } - if (!result) { - if (lastLocation) { - Debug.assertNode(lastLocation, isSourceFile); - if (lastLocation.commonJsModuleIndicator && name === "exports" && meaning & lastLocation.symbol.flags) { - return lastLocation.symbol; - } - } - if (!excludeGlobals) { - result = lookup(globals, name, meaning); - } - } - if (!result) { - if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) { - if (isRequireCall( - originalLocation.parent, - /*requireStringLiteralLikeArgument*/ - false - )) { - return requireSymbol; - } - } - } - if (nameNotFoundMessage) { - if (propertyWithInvalidInitializer && onPropertyWithInvalidInitializer(originalLocation, name, propertyWithInvalidInitializer, result)) { - return void 0; - } - if (!result) { - onFailedToResolveSymbol(originalLocation, nameArg, meaning, nameNotFoundMessage); - } else { - onSuccessfullyResolvedSymbol(originalLocation, result, meaning, lastLocation, associatedDeclarationForContainingInitializerOrBindingName, withinDeferredContext); - } - } - return result; - } - function useOuterVariableScopeInParameter(result, location, lastLocation) { - const target = getEmitScriptTarget(compilerOptions); - const functionLocation = location; - if (isParameter(lastLocation) && functionLocation.body && result.valueDeclaration && result.valueDeclaration.pos >= functionLocation.body.pos && result.valueDeclaration.end <= functionLocation.body.end) { - if (target >= 2 /* ES2015 */) { - let declarationRequiresScopeChange = getRequiresScopeChangeCache(functionLocation); - if (declarationRequiresScopeChange === void 0) { - declarationRequiresScopeChange = forEach(functionLocation.parameters, requiresScopeChange) || false; - setRequiresScopeChangeCache(functionLocation, declarationRequiresScopeChange); - } - return !declarationRequiresScopeChange; - } - } - return false; - function requiresScopeChange(node) { - return requiresScopeChangeWorker(node.name) || !!node.initializer && requiresScopeChangeWorker(node.initializer); - } - function requiresScopeChangeWorker(node) { - switch (node.kind) { - case 219 /* ArrowFunction */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 176 /* Constructor */: - return false; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 303 /* PropertyAssignment */: - return requiresScopeChangeWorker(node.name); - case 172 /* PropertyDeclaration */: - if (hasStaticModifier(node)) { - return !emitStandardClassFields; - } - return requiresScopeChangeWorker(node.name); - default: - if (isNullishCoalesce(node) || isOptionalChain(node)) { - return target < 7 /* ES2020 */; - } - if (isBindingElement(node) && node.dotDotDotToken && isObjectBindingPattern(node.parent)) { - return target < 4 /* ES2017 */; - } - if (isTypeNode(node)) return false; - return forEachChild(node, requiresScopeChangeWorker) || false; - } - } - } - function getIsDeferredContext(location, lastLocation) { - if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { - return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); - } - if (lastLocation && lastLocation === location.name) { - return false; - } - if (location.asteriskToken || hasSyntacticModifier(location, 1024 /* Async */)) { - return true; - } - return !getImmediatelyInvokedFunctionExpression(location); - } - function isSelfReferenceLocation(node, lastLocation) { - switch (node.kind) { - case 169 /* Parameter */: - return !!lastLocation && lastLocation === node.name; - case 262 /* FunctionDeclaration */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 266 /* EnumDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 267 /* ModuleDeclaration */: - return true; - default: - return false; - } - } - function isTypeParameterSymbolDeclaredInContainer(symbol, container) { - if (symbol.declarations) { - for (const decl of symbol.declarations) { - if (decl.kind === 168 /* TypeParameter */) { - const parent = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; - if (parent === container) { - return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); - } - } - } - } - return false; - } -} -function isPrimitiveLiteralValue(node, includeBigInt = true) { - Debug.type(node); - switch (node.kind) { - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 9 /* NumericLiteral */: - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - return true; - case 10 /* BigIntLiteral */: - return includeBigInt; - case 224 /* PrefixUnaryExpression */: - if (node.operator === 41 /* MinusToken */) { - return isNumericLiteral(node.operand) || includeBigInt && isBigIntLiteral(node.operand); - } - if (node.operator === 40 /* PlusToken */) { - return isNumericLiteral(node.operand); - } - return false; - default: - assertType(node); - return false; - } -} -function unwrapParenthesizedExpression(o) { - while (o.kind === 217 /* ParenthesizedExpression */) { - o = o.expression; - } - return o; -} -function hasInferredType(node) { - Debug.type(node); - switch (node.kind) { - case 169 /* Parameter */: - case 171 /* PropertySignature */: - case 172 /* PropertyDeclaration */: - case 208 /* BindingElement */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - case 226 /* BinaryExpression */: - case 260 /* VariableDeclaration */: - case 277 /* ExportAssignment */: - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 341 /* JSDocParameterTag */: - case 348 /* JSDocPropertyTag */: - return true; - default: - assertType(node); - return false; - } -} -function isSideEffectImport(node) { - const ancestor = findAncestor(node, isImportDeclaration); - return !!ancestor && !ancestor.importClause; -} -var unprefixedNodeCoreModulesList = [ - "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" -]; -var unprefixedNodeCoreModules = new Set(unprefixedNodeCoreModulesList); -var exclusivelyPrefixedNodeCoreModules = /* @__PURE__ */ new Set([ - "node:sea", - "node:sqlite", - "node:test", - "node:test/reporters" -]); -var nodeCoreModules = /* @__PURE__ */ new Set([ - ...unprefixedNodeCoreModulesList, - ...unprefixedNodeCoreModulesList.map((name) => `node:${name}`), - ...exclusivelyPrefixedNodeCoreModules -]); -function forEachDynamicImportOrRequireCall(file, includeTypeSpaceImports, requireStringLiteralLikeArgument, cb) { - const isJavaScriptFile = isInJSFile(file); - const r = /import|require/g; - while (r.exec(file.text) !== null) { - const node = getNodeAtPosition( - file, - r.lastIndex, - /*includeJSDoc*/ - includeTypeSpaceImports - ); - if (isJavaScriptFile && isRequireCall(node, requireStringLiteralLikeArgument)) { - cb(node, node.arguments[0]); - } else if (isImportCall(node) && node.arguments.length >= 1 && (!requireStringLiteralLikeArgument || isStringLiteralLike(node.arguments[0]))) { - cb(node, node.arguments[0]); - } else if (includeTypeSpaceImports && isLiteralImportTypeNode(node)) { - cb(node, node.argument.literal); - } else if (includeTypeSpaceImports && isJSDocImportTag(node)) { - const moduleNameExpr = getExternalModuleName(node); - if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) { - cb(node, moduleNameExpr); - } - } - } -} -function getNodeAtPosition(sourceFile, position, includeJSDoc) { - const isJavaScriptFile = isInJSFile(sourceFile); - let current = sourceFile; - const getContainingChild = (child) => { - if (child.pos <= position && (position < child.end || position === child.end && child.kind === 1 /* EndOfFileToken */)) { - return child; - } - }; - while (true) { - const child = isJavaScriptFile && includeJSDoc && hasJSDocNodes(current) && forEach(current.jsDoc, getContainingChild) || forEachChild(current, getContainingChild); - if (!child) { - return current; - } - current = child; - } -} -function isNewScopeNode(node) { - return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node); -} -function getLibNameFromLibReference(libReference) { - return toFileNameLowerCase(libReference.fileName); -} -function getLibFileNameFromLibReference(libReference) { - const libName = getLibNameFromLibReference(libReference); - return libMap.get(libName); -} -function forEachResolvedProjectReference(resolvedProjectReferences, cb) { - return forEachProjectReference( - /*projectReferences*/ - void 0, - resolvedProjectReferences, - (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent) - ); -} -function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) { - let seenResolvedRefs; - return worker( - projectReferences, - resolvedProjectReferences, - /*parent*/ - void 0 - ); - function worker(projectReferences2, resolvedProjectReferences2, parent) { - if (cbRef) { - const result = cbRef(projectReferences2, parent); - if (result) return result; - } - let skipChildren; - return forEach( - resolvedProjectReferences2, - (resolvedRef, index) => { - if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) { - (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef); - return void 0; - } - const result = cbResolvedRef(resolvedRef, parent, index); - if (result || !resolvedRef) return result; - (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path); - } - ) || forEach( - resolvedProjectReferences2, - (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0 - ); - } -} -function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) { - return optionsObject && getPropertyArrayElementValue(optionsObject, name, value); -} -function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) { - return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); -} -function getOptionsSyntaxByValue(optionsObject, name, value) { - return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0); -} -function forEachOptionsSyntaxByName(optionsObject, name, callback) { - return forEachPropertyAssignment(optionsObject, name, callback); -} - -// src/compiler/factory/baseNodeFactory.ts -function createBaseNodeFactory() { - let NodeConstructor2; - let TokenConstructor2; - let IdentifierConstructor2; - let PrivateIdentifierConstructor2; - let SourceFileConstructor2; - return { - createBaseSourceFileNode, - createBaseIdentifierNode, - createBasePrivateIdentifierNode, - createBaseTokenNode, - createBaseNode - }; - function createBaseSourceFileNode(kind) { - return new (SourceFileConstructor2 || (SourceFileConstructor2 = objectAllocator.getSourceFileConstructor()))( - kind, - /*pos*/ - -1, - /*end*/ - -1 - ); - } - function createBaseIdentifierNode(kind) { - return new (IdentifierConstructor2 || (IdentifierConstructor2 = objectAllocator.getIdentifierConstructor()))( - kind, - /*pos*/ - -1, - /*end*/ - -1 - ); - } - function createBasePrivateIdentifierNode(kind) { - return new (PrivateIdentifierConstructor2 || (PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor()))( - kind, - /*pos*/ - -1, - /*end*/ - -1 - ); - } - function createBaseTokenNode(kind) { - return new (TokenConstructor2 || (TokenConstructor2 = objectAllocator.getTokenConstructor()))( - kind, - /*pos*/ - -1, - /*end*/ - -1 - ); - } - function createBaseNode(kind) { - return new (NodeConstructor2 || (NodeConstructor2 = objectAllocator.getNodeConstructor()))( - kind, - /*pos*/ - -1, - /*end*/ - -1 - ); - } -} - -// src/compiler/factory/parenthesizerRules.ts -function createParenthesizerRules(factory2) { - let binaryLeftOperandParenthesizerCache; - let binaryRightOperandParenthesizerCache; - return { - getParenthesizeLeftSideOfBinaryForOperator, - getParenthesizeRightSideOfBinaryForOperator, - parenthesizeLeftSideOfBinary, - parenthesizeRightSideOfBinary, - parenthesizeExpressionOfComputedPropertyName, - parenthesizeConditionOfConditionalExpression, - parenthesizeBranchOfConditionalExpression, - parenthesizeExpressionOfExportDefault, - parenthesizeExpressionOfNew, - parenthesizeLeftSideOfAccess, - parenthesizeOperandOfPostfixUnary, - parenthesizeOperandOfPrefixUnary, - parenthesizeExpressionsOfCommaDelimitedList, - parenthesizeExpressionForDisallowedComma, - parenthesizeExpressionOfExpressionStatement, - parenthesizeConciseBodyOfArrowFunction, - parenthesizeCheckTypeOfConditionalType, - parenthesizeExtendsTypeOfConditionalType, - parenthesizeConstituentTypesOfUnionType, - parenthesizeConstituentTypeOfUnionType, - parenthesizeConstituentTypesOfIntersectionType, - parenthesizeConstituentTypeOfIntersectionType, - parenthesizeOperandOfTypeOperator, - parenthesizeOperandOfReadonlyTypeOperator, - parenthesizeNonArrayTypeOfPostfixType, - parenthesizeElementTypesOfTupleType, - parenthesizeElementTypeOfTupleType, - parenthesizeTypeOfOptionalType, - parenthesizeTypeArguments, - parenthesizeLeadingTypeArgument - }; - function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) { - binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map()); - let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind); - if (!parenthesizerRule) { - parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node); - binaryLeftOperandParenthesizerCache.set(operatorKind, parenthesizerRule); - } - return parenthesizerRule; - } - function getParenthesizeRightSideOfBinaryForOperator(operatorKind) { - binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map()); - let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind); - if (!parenthesizerRule) { - parenthesizerRule = (node) => parenthesizeRightSideOfBinary( - operatorKind, - /*leftSide*/ - void 0, - node - ); - binaryRightOperandParenthesizerCache.set(operatorKind, parenthesizerRule); - } - return parenthesizerRule; - } - function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); - const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); - const emittedOperand = skipPartiallyEmittedExpressions(operand); - if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { - return true; - } - const operandPrecedence = getExpressionPrecedence(emittedOperand); - switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { - case -1 /* LessThan */: - if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { - return false; - } - return true; - case 1 /* GreaterThan */: - return false; - case 0 /* EqualTo */: - if (isLeftSideOfBinary) { - return binaryOperatorAssociativity === 1 /* Right */; - } else { - if (isBinaryExpression(emittedOperand) && emittedOperand.operatorToken.kind === binaryOperator) { - if (operatorHasAssociativeProperty(binaryOperator)) { - return false; - } - if (binaryOperator === 40 /* PlusToken */) { - const leftKind = leftOperand ? getLiteralKindOfBinaryPlusOperand(leftOperand) : 0 /* Unknown */; - if (isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(emittedOperand)) { - return false; - } - } - } - const operandAssociativity = getExpressionAssociativity(emittedOperand); - return operandAssociativity === 0 /* Left */; - } - } - } - function operatorHasAssociativeProperty(binaryOperator) { - return binaryOperator === 42 /* AsteriskToken */ || binaryOperator === 52 /* BarToken */ || binaryOperator === 51 /* AmpersandToken */ || binaryOperator === 53 /* CaretToken */ || binaryOperator === 28 /* CommaToken */; - } - function getLiteralKindOfBinaryPlusOperand(node) { - node = skipPartiallyEmittedExpressions(node); - if (isLiteralKind(node.kind)) { - return node.kind; - } - if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { - if (node.cachedLiteralKind !== void 0) { - return node.cachedLiteralKind; - } - const leftKind = getLiteralKindOfBinaryPlusOperand(node.left); - const literalKind = isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(node.right) ? leftKind : 0 /* Unknown */; - node.cachedLiteralKind = literalKind; - return literalKind; - } - return 0 /* Unknown */; - } - function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { - const skipped = skipPartiallyEmittedExpressions(operand); - if (skipped.kind === 217 /* ParenthesizedExpression */) { - return operand; - } - return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; - } - function parenthesizeLeftSideOfBinary(binaryOperator, leftSide) { - return parenthesizeBinaryOperand( - binaryOperator, - leftSide, - /*isLeftSideOfBinary*/ - true - ); - } - function parenthesizeRightSideOfBinary(binaryOperator, leftSide, rightSide) { - return parenthesizeBinaryOperand( - binaryOperator, - rightSide, - /*isLeftSideOfBinary*/ - false, - leftSide - ); - } - function parenthesizeExpressionOfComputedPropertyName(expression) { - return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; - } - function parenthesizeConditionOfConditionalExpression(condition) { - const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); - const emittedCondition = skipPartiallyEmittedExpressions(condition); - const conditionPrecedence = getExpressionPrecedence(emittedCondition); - if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { - return factory2.createParenthesizedExpression(condition); - } - return condition; - } - function parenthesizeBranchOfConditionalExpression(branch) { - const emittedExpression = skipPartiallyEmittedExpressions(branch); - return isCommaSequence(emittedExpression) ? factory2.createParenthesizedExpression(branch) : branch; - } - function parenthesizeExpressionOfExportDefault(expression) { - const check = skipPartiallyEmittedExpressions(expression); - let needsParens = isCommaSequence(check); - if (!needsParens) { - switch (getLeftmostExpression( - check, - /*stopAtCallExpressions*/ - false - ).kind) { - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - needsParens = true; - } - } - return needsParens ? factory2.createParenthesizedExpression(expression) : expression; - } - function parenthesizeExpressionOfNew(expression) { - const leftmostExpr = getLeftmostExpression( - expression, - /*stopAtCallExpressions*/ - true - ); - switch (leftmostExpr.kind) { - case 213 /* CallExpression */: - return factory2.createParenthesizedExpression(expression); - case 214 /* NewExpression */: - return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; - } - return parenthesizeLeftSideOfAccess(expression); - } - function parenthesizeLeftSideOfAccess(expression, optionalChain) { - const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { - return expression; - } - return setTextRange(factory2.createParenthesizedExpression(expression), expression); - } - function parenthesizeOperandOfPostfixUnary(operand) { - return isLeftHandSideExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand); - } - function parenthesizeOperandOfPrefixUnary(operand) { - return isUnaryExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand); - } - function parenthesizeExpressionsOfCommaDelimitedList(elements) { - const result = sameMap(elements, parenthesizeExpressionForDisallowedComma); - return setTextRange(factory2.createNodeArray(result, elements.hasTrailingComma), elements); - } - function parenthesizeExpressionForDisallowedComma(expression) { - const emittedExpression = skipPartiallyEmittedExpressions(expression); - const expressionPrecedence = getExpressionPrecedence(emittedExpression); - const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); - return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); - } - function parenthesizeExpressionOfExpressionStatement(expression) { - const emittedExpression = skipPartiallyEmittedExpressions(expression); - if (isCallExpression(emittedExpression)) { - const callee = emittedExpression.expression; - const kind = skipPartiallyEmittedExpressions(callee).kind; - if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { - const updated = factory2.updateCallExpression( - emittedExpression, - setTextRange(factory2.createParenthesizedExpression(callee), callee), - emittedExpression.typeArguments, - emittedExpression.arguments - ); - return factory2.restoreOuterExpressions(expression, updated, 8 /* PartiallyEmittedExpressions */); - } - } - const leftmostExpressionKind = getLeftmostExpression( - emittedExpression, - /*stopAtCallExpressions*/ - false - ).kind; - if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { - return setTextRange(factory2.createParenthesizedExpression(expression), expression); - } - return expression; - } - function parenthesizeConciseBodyOfArrowFunction(body) { - if (!isBlock(body) && (isCommaSequence(body) || getLeftmostExpression( - body, - /*stopAtCallExpressions*/ - false - ).kind === 210 /* ObjectLiteralExpression */)) { - return setTextRange(factory2.createParenthesizedExpression(body), body); - } - return body; - } - function parenthesizeCheckTypeOfConditionalType(checkType) { - switch (checkType.kind) { - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 194 /* ConditionalType */: - return factory2.createParenthesizedType(checkType); - } - return checkType; - } - function parenthesizeExtendsTypeOfConditionalType(extendsType) { - switch (extendsType.kind) { - case 194 /* ConditionalType */: - return factory2.createParenthesizedType(extendsType); - } - return extendsType; - } - function parenthesizeConstituentTypeOfUnionType(type) { - switch (type.kind) { - case 192 /* UnionType */: - // Not strictly necessary, but a union containing a union should have been flattened - case 193 /* IntersectionType */: - return factory2.createParenthesizedType(type); - } - return parenthesizeCheckTypeOfConditionalType(type); - } - function parenthesizeConstituentTypesOfUnionType(members) { - return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfUnionType)); - } - function parenthesizeConstituentTypeOfIntersectionType(type) { - switch (type.kind) { - case 192 /* UnionType */: - case 193 /* IntersectionType */: - return factory2.createParenthesizedType(type); - } - return parenthesizeConstituentTypeOfUnionType(type); - } - function parenthesizeConstituentTypesOfIntersectionType(members) { - return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfIntersectionType)); - } - function parenthesizeOperandOfTypeOperator(type) { - switch (type.kind) { - case 193 /* IntersectionType */: - return factory2.createParenthesizedType(type); - } - return parenthesizeConstituentTypeOfIntersectionType(type); - } - function parenthesizeOperandOfReadonlyTypeOperator(type) { - switch (type.kind) { - case 198 /* TypeOperator */: - return factory2.createParenthesizedType(type); - } - return parenthesizeOperandOfTypeOperator(type); - } - function parenthesizeNonArrayTypeOfPostfixType(type) { - switch (type.kind) { - case 195 /* InferType */: - case 198 /* TypeOperator */: - case 186 /* TypeQuery */: - return factory2.createParenthesizedType(type); - } - return parenthesizeOperandOfTypeOperator(type); - } - function parenthesizeElementTypesOfTupleType(types) { - return factory2.createNodeArray(sameMap(types, parenthesizeElementTypeOfTupleType)); - } - function parenthesizeElementTypeOfTupleType(type) { - if (hasJSDocPostfixQuestion(type)) return factory2.createParenthesizedType(type); - return type; - } - function hasJSDocPostfixQuestion(type) { - if (isJSDocNullableType(type)) return type.postfix; - if (isNamedTupleMember(type)) return hasJSDocPostfixQuestion(type.type); - if (isFunctionTypeNode(type) || isConstructorTypeNode(type) || isTypeOperatorNode(type)) return hasJSDocPostfixQuestion(type.type); - if (isConditionalTypeNode(type)) return hasJSDocPostfixQuestion(type.falseType); - if (isUnionTypeNode(type)) return hasJSDocPostfixQuestion(last(type.types)); - if (isIntersectionTypeNode(type)) return hasJSDocPostfixQuestion(last(type.types)); - if (isInferTypeNode(type)) return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.typeParameter.constraint); - return false; - } - function parenthesizeTypeOfOptionalType(type) { - if (hasJSDocPostfixQuestion(type)) return factory2.createParenthesizedType(type); - return parenthesizeNonArrayTypeOfPostfixType(type); - } - function parenthesizeLeadingTypeArgument(node) { - return isFunctionOrConstructorTypeNode(node) && node.typeParameters ? factory2.createParenthesizedType(node) : node; - } - function parenthesizeOrdinalTypeArgument(node, i) { - return i === 0 ? parenthesizeLeadingTypeArgument(node) : node; - } - function parenthesizeTypeArguments(typeArguments) { - if (some(typeArguments)) { - return factory2.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument)); - } - } -} -var nullParenthesizerRules = { - getParenthesizeLeftSideOfBinaryForOperator: (_) => identity, - getParenthesizeRightSideOfBinaryForOperator: (_) => identity, - parenthesizeLeftSideOfBinary: (_binaryOperator, leftSide) => leftSide, - parenthesizeRightSideOfBinary: (_binaryOperator, _leftSide, rightSide) => rightSide, - parenthesizeExpressionOfComputedPropertyName: identity, - parenthesizeConditionOfConditionalExpression: identity, - parenthesizeBranchOfConditionalExpression: identity, - parenthesizeExpressionOfExportDefault: identity, - parenthesizeExpressionOfNew: (expression) => cast(expression, isLeftHandSideExpression), - parenthesizeLeftSideOfAccess: (expression) => cast(expression, isLeftHandSideExpression), - parenthesizeOperandOfPostfixUnary: (operand) => cast(operand, isLeftHandSideExpression), - parenthesizeOperandOfPrefixUnary: (operand) => cast(operand, isUnaryExpression), - parenthesizeExpressionsOfCommaDelimitedList: (nodes) => cast(nodes, isNodeArray), - parenthesizeExpressionForDisallowedComma: identity, - parenthesizeExpressionOfExpressionStatement: identity, - parenthesizeConciseBodyOfArrowFunction: identity, - parenthesizeCheckTypeOfConditionalType: identity, - parenthesizeExtendsTypeOfConditionalType: identity, - parenthesizeConstituentTypesOfUnionType: (nodes) => cast(nodes, isNodeArray), - parenthesizeConstituentTypeOfUnionType: identity, - parenthesizeConstituentTypesOfIntersectionType: (nodes) => cast(nodes, isNodeArray), - parenthesizeConstituentTypeOfIntersectionType: identity, - parenthesizeOperandOfTypeOperator: identity, - parenthesizeOperandOfReadonlyTypeOperator: identity, - parenthesizeNonArrayTypeOfPostfixType: identity, - parenthesizeElementTypesOfTupleType: (nodes) => cast(nodes, isNodeArray), - parenthesizeElementTypeOfTupleType: identity, - parenthesizeTypeOfOptionalType: identity, - parenthesizeTypeArguments: (nodes) => nodes && cast(nodes, isNodeArray), - parenthesizeLeadingTypeArgument: identity -}; - -// src/compiler/factory/nodeConverters.ts -function createNodeConverters(factory2) { - return { - convertToFunctionBlock, - convertToFunctionExpression, - convertToClassExpression, - convertToArrayAssignmentElement, - convertToObjectAssignmentElement, - convertToAssignmentPattern, - convertToObjectAssignmentPattern, - convertToArrayAssignmentPattern, - convertToAssignmentElementTarget - }; - function convertToFunctionBlock(node, multiLine) { - if (isBlock(node)) return node; - const returnStatement = factory2.createReturnStatement(node); - setTextRange(returnStatement, node); - const body = factory2.createBlock([returnStatement], multiLine); - setTextRange(body, node); - return body; - } - function convertToFunctionExpression(node) { - var _a; - if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); - const updated = factory2.createFunctionExpression( - (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), - node.asteriskToken, - node.name, - node.typeParameters, - node.parameters, - node.type, - node.body - ); - setOriginalNode(updated, node); - setTextRange(updated, node); - if (getStartsOnNewLine(node)) { - setStartsOnNewLine( - updated, - /*newLine*/ - true - ); - } - return updated; - } - function convertToClassExpression(node) { - var _a; - const updated = factory2.createClassExpression( - (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), - node.name, - node.typeParameters, - node.heritageClauses, - node.members - ); - setOriginalNode(updated, node); - setTextRange(updated, node); - if (getStartsOnNewLine(node)) { - setStartsOnNewLine( - updated, - /*newLine*/ - true - ); - } - return updated; - } - function convertToArrayAssignmentElement(element) { - if (isBindingElement(element)) { - if (element.dotDotDotToken) { - Debug.assertNode(element.name, isIdentifier); - return setOriginalNode(setTextRange(factory2.createSpreadElement(element.name), element), element); - } - const expression = convertToAssignmentElementTarget(element.name); - return element.initializer ? setOriginalNode( - setTextRange( - factory2.createAssignment(expression, element.initializer), - element - ), - element - ) : expression; - } - return cast(element, isExpression); - } - function convertToObjectAssignmentElement(element) { - if (isBindingElement(element)) { - if (element.dotDotDotToken) { - Debug.assertNode(element.name, isIdentifier); - return setOriginalNode(setTextRange(factory2.createSpreadAssignment(element.name), element), element); - } - if (element.propertyName) { - const expression = convertToAssignmentElementTarget(element.name); - return setOriginalNode(setTextRange(factory2.createPropertyAssignment(element.propertyName, element.initializer ? factory2.createAssignment(expression, element.initializer) : expression), element), element); - } - Debug.assertNode(element.name, isIdentifier); - return setOriginalNode(setTextRange(factory2.createShorthandPropertyAssignment(element.name, element.initializer), element), element); - } - return cast(element, isObjectLiteralElementLike); - } - function convertToAssignmentPattern(node) { - switch (node.kind) { - case 207 /* ArrayBindingPattern */: - case 209 /* ArrayLiteralExpression */: - return convertToArrayAssignmentPattern(node); - case 206 /* ObjectBindingPattern */: - case 210 /* ObjectLiteralExpression */: - return convertToObjectAssignmentPattern(node); - } - } - function convertToObjectAssignmentPattern(node) { - if (isObjectBindingPattern(node)) { - return setOriginalNode( - setTextRange( - factory2.createObjectLiteralExpression(map(node.elements, convertToObjectAssignmentElement)), - node - ), - node - ); - } - return cast(node, isObjectLiteralExpression); - } - function convertToArrayAssignmentPattern(node) { - if (isArrayBindingPattern(node)) { - return setOriginalNode( - setTextRange( - factory2.createArrayLiteralExpression(map(node.elements, convertToArrayAssignmentElement)), - node - ), - node - ); - } - return cast(node, isArrayLiteralExpression); - } - function convertToAssignmentElementTarget(node) { - if (isBindingPattern(node)) { - return convertToAssignmentPattern(node); - } - return cast(node, isExpression); - } -} -var nullNodeConverters = { - convertToFunctionBlock: notImplemented, - convertToFunctionExpression: notImplemented, - convertToClassExpression: notImplemented, - convertToArrayAssignmentElement: notImplemented, - convertToObjectAssignmentElement: notImplemented, - convertToAssignmentPattern: notImplemented, - convertToObjectAssignmentPattern: notImplemented, - convertToArrayAssignmentPattern: notImplemented, - convertToAssignmentElementTarget: notImplemented -}; - -// src/compiler/factory/nodeFactory.ts -var nextAutoGenerateId = 0; -var nodeFactoryPatchers = []; -function createNodeFactory(flags, baseFactory2) { - const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode; - const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2)); - const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2)); - const getBinaryCreateFunction = memoizeOne((operator) => (left, right) => createBinaryExpression(left, operator, right)); - const getPrefixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPrefixUnaryExpression(operator, operand)); - const getPostfixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPostfixUnaryExpression(operand, operator)); - const getJSDocPrimaryTypeCreateFunction = memoizeOne((kind) => () => createJSDocPrimaryTypeWorker(kind)); - const getJSDocUnaryTypeCreateFunction = memoizeOne((kind) => (type) => createJSDocUnaryTypeWorker(kind, type)); - const getJSDocUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocUnaryTypeWorker(kind, node, type)); - const getJSDocPrePostfixUnaryTypeCreateFunction = memoizeOne((kind) => (type, postfix) => createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix)); - const getJSDocPrePostfixUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocPrePostfixUnaryTypeWorker(kind, node, type)); - const getJSDocSimpleTagCreateFunction = memoizeOne((kind) => (tagName, comment) => createJSDocSimpleTagWorker(kind, tagName, comment)); - const getJSDocSimpleTagUpdateFunction = memoizeOne((kind) => (node, tagName, comment) => updateJSDocSimpleTagWorker(kind, node, tagName, comment)); - const getJSDocTypeLikeTagCreateFunction = memoizeOne((kind) => (tagName, typeExpression, comment) => createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment)); - const getJSDocTypeLikeTagUpdateFunction = memoizeOne((kind) => (node, tagName, typeExpression, comment) => updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment)); - const factory2 = { - get parenthesizer() { - return parenthesizerRules(); - }, - get converters() { - return converters(); - }, - baseFactory: baseFactory2, - flags, - createNodeArray, - createNumericLiteral, - createBigIntLiteral, - createStringLiteral, - createStringLiteralFromNode, - createRegularExpressionLiteral, - createLiteralLikeNode, - createIdentifier, - createTempVariable, - createLoopVariable, - createUniqueName, - getGeneratedNameForNode, - createPrivateIdentifier, - createUniquePrivateName, - getGeneratedPrivateNameForNode, - createToken, - createSuper, - createThis, - createNull, - createTrue, - createFalse, - createModifier, - createModifiersFromModifierFlags, - createQualifiedName, - updateQualifiedName, - createComputedPropertyName, - updateComputedPropertyName, - createTypeParameterDeclaration, - updateTypeParameterDeclaration, - createParameterDeclaration, - updateParameterDeclaration, - createDecorator, - updateDecorator, - createPropertySignature, - updatePropertySignature, - createPropertyDeclaration, - updatePropertyDeclaration, - createMethodSignature, - updateMethodSignature, - createMethodDeclaration, - updateMethodDeclaration, - createConstructorDeclaration, - updateConstructorDeclaration, - createGetAccessorDeclaration, - updateGetAccessorDeclaration, - createSetAccessorDeclaration, - updateSetAccessorDeclaration, - createCallSignature, - updateCallSignature, - createConstructSignature, - updateConstructSignature, - createIndexSignature, - updateIndexSignature, - createClassStaticBlockDeclaration, - updateClassStaticBlockDeclaration, - createTemplateLiteralTypeSpan, - updateTemplateLiteralTypeSpan, - createKeywordTypeNode, - createTypePredicateNode, - updateTypePredicateNode, - createTypeReferenceNode, - updateTypeReferenceNode, - createFunctionTypeNode, - updateFunctionTypeNode, - createConstructorTypeNode, - updateConstructorTypeNode, - createTypeQueryNode, - updateTypeQueryNode, - createTypeLiteralNode, - updateTypeLiteralNode, - createArrayTypeNode, - updateArrayTypeNode, - createTupleTypeNode, - updateTupleTypeNode, - createNamedTupleMember, - updateNamedTupleMember, - createOptionalTypeNode, - updateOptionalTypeNode, - createRestTypeNode, - updateRestTypeNode, - createUnionTypeNode, - updateUnionTypeNode, - createIntersectionTypeNode, - updateIntersectionTypeNode, - createConditionalTypeNode, - updateConditionalTypeNode, - createInferTypeNode, - updateInferTypeNode, - createImportTypeNode, - updateImportTypeNode, - createParenthesizedType, - updateParenthesizedType, - createThisTypeNode, - createTypeOperatorNode, - updateTypeOperatorNode, - createIndexedAccessTypeNode, - updateIndexedAccessTypeNode, - createMappedTypeNode, - updateMappedTypeNode, - createLiteralTypeNode, - updateLiteralTypeNode, - createTemplateLiteralType, - updateTemplateLiteralType, - createObjectBindingPattern, - updateObjectBindingPattern, - createArrayBindingPattern, - updateArrayBindingPattern, - createBindingElement, - updateBindingElement, - createArrayLiteralExpression, - updateArrayLiteralExpression, - createObjectLiteralExpression, - updateObjectLiteralExpression, - createPropertyAccessExpression: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ? (expression, name) => setEmitFlags(createPropertyAccessExpression(expression, name), 262144 /* NoIndentation */) : createPropertyAccessExpression, - updatePropertyAccessExpression, - createPropertyAccessChain: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ? (expression, questionDotToken, name) => setEmitFlags(createPropertyAccessChain(expression, questionDotToken, name), 262144 /* NoIndentation */) : createPropertyAccessChain, - updatePropertyAccessChain, - createElementAccessExpression, - updateElementAccessExpression, - createElementAccessChain, - updateElementAccessChain, - createCallExpression, - updateCallExpression, - createCallChain, - updateCallChain, - createNewExpression, - updateNewExpression, - createTaggedTemplateExpression, - updateTaggedTemplateExpression, - createTypeAssertion, - updateTypeAssertion, - createParenthesizedExpression, - updateParenthesizedExpression, - createFunctionExpression, - updateFunctionExpression, - createArrowFunction, - updateArrowFunction, - createDeleteExpression, - updateDeleteExpression, - createTypeOfExpression, - updateTypeOfExpression, - createVoidExpression, - updateVoidExpression, - createAwaitExpression, - updateAwaitExpression, - createPrefixUnaryExpression, - updatePrefixUnaryExpression, - createPostfixUnaryExpression, - updatePostfixUnaryExpression, - createBinaryExpression, - updateBinaryExpression, - createConditionalExpression, - updateConditionalExpression, - createTemplateExpression, - updateTemplateExpression, - createTemplateHead, - createTemplateMiddle, - createTemplateTail, - createNoSubstitutionTemplateLiteral, - createTemplateLiteralLikeNode, - createYieldExpression, - updateYieldExpression, - createSpreadElement, - updateSpreadElement, - createClassExpression, - updateClassExpression, - createOmittedExpression, - createExpressionWithTypeArguments, - updateExpressionWithTypeArguments, - createAsExpression, - updateAsExpression, - createNonNullExpression, - updateNonNullExpression, - createSatisfiesExpression, - updateSatisfiesExpression, - createNonNullChain, - updateNonNullChain, - createMetaProperty, - updateMetaProperty, - createTemplateSpan, - updateTemplateSpan, - createSemicolonClassElement, - createBlock, - updateBlock, - createVariableStatement, - updateVariableStatement, - createEmptyStatement, - createExpressionStatement, - updateExpressionStatement, - createIfStatement, - updateIfStatement, - createDoStatement, - updateDoStatement, - createWhileStatement, - updateWhileStatement, - createForStatement, - updateForStatement, - createForInStatement, - updateForInStatement, - createForOfStatement, - updateForOfStatement, - createContinueStatement, - updateContinueStatement, - createBreakStatement, - updateBreakStatement, - createReturnStatement, - updateReturnStatement, - createWithStatement, - updateWithStatement, - createSwitchStatement, - updateSwitchStatement, - createLabeledStatement, - updateLabeledStatement, - createThrowStatement, - updateThrowStatement, - createTryStatement, - updateTryStatement, - createDebuggerStatement, - createVariableDeclaration, - updateVariableDeclaration, - createVariableDeclarationList, - updateVariableDeclarationList, - createFunctionDeclaration, - updateFunctionDeclaration, - createClassDeclaration, - updateClassDeclaration, - createInterfaceDeclaration, - updateInterfaceDeclaration, - createTypeAliasDeclaration, - updateTypeAliasDeclaration, - createEnumDeclaration, - updateEnumDeclaration, - createModuleDeclaration, - updateModuleDeclaration, - createModuleBlock, - updateModuleBlock, - createCaseBlock, - updateCaseBlock, - createNamespaceExportDeclaration, - updateNamespaceExportDeclaration, - createImportEqualsDeclaration, - updateImportEqualsDeclaration, - createImportDeclaration, - updateImportDeclaration, - createImportClause, - updateImportClause, - createAssertClause, - updateAssertClause, - createAssertEntry, - updateAssertEntry, - createImportTypeAssertionContainer, - updateImportTypeAssertionContainer, - createImportAttributes, - updateImportAttributes, - createImportAttribute, - updateImportAttribute, - createNamespaceImport, - updateNamespaceImport, - createNamespaceExport, - updateNamespaceExport, - createNamedImports, - updateNamedImports, - createImportSpecifier, - updateImportSpecifier, - createExportAssignment, - updateExportAssignment, - createExportDeclaration, - updateExportDeclaration, - createNamedExports, - updateNamedExports, - createExportSpecifier, - updateExportSpecifier, - createMissingDeclaration, - createExternalModuleReference, - updateExternalModuleReference, - // lazily load factory members for JSDoc types with similar structure - get createJSDocAllType() { - return getJSDocPrimaryTypeCreateFunction(312 /* JSDocAllType */); - }, - get createJSDocUnknownType() { - return getJSDocPrimaryTypeCreateFunction(313 /* JSDocUnknownType */); - }, - get createJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(315 /* JSDocNonNullableType */); - }, - get updateJSDocNonNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(315 /* JSDocNonNullableType */); - }, - get createJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeCreateFunction(314 /* JSDocNullableType */); - }, - get updateJSDocNullableType() { - return getJSDocPrePostfixUnaryTypeUpdateFunction(314 /* JSDocNullableType */); - }, - get createJSDocOptionalType() { - return getJSDocUnaryTypeCreateFunction(316 /* JSDocOptionalType */); - }, - get updateJSDocOptionalType() { - return getJSDocUnaryTypeUpdateFunction(316 /* JSDocOptionalType */); - }, - get createJSDocVariadicType() { - return getJSDocUnaryTypeCreateFunction(318 /* JSDocVariadicType */); - }, - get updateJSDocVariadicType() { - return getJSDocUnaryTypeUpdateFunction(318 /* JSDocVariadicType */); - }, - get createJSDocNamepathType() { - return getJSDocUnaryTypeCreateFunction(319 /* JSDocNamepathType */); - }, - get updateJSDocNamepathType() { - return getJSDocUnaryTypeUpdateFunction(319 /* JSDocNamepathType */); - }, - createJSDocFunctionType, - updateJSDocFunctionType, - createJSDocTypeLiteral, - updateJSDocTypeLiteral, - createJSDocTypeExpression, - updateJSDocTypeExpression, - createJSDocSignature, - updateJSDocSignature, - createJSDocTemplateTag, - updateJSDocTemplateTag, - createJSDocTypedefTag, - updateJSDocTypedefTag, - createJSDocParameterTag, - updateJSDocParameterTag, - createJSDocPropertyTag, - updateJSDocPropertyTag, - createJSDocCallbackTag, - updateJSDocCallbackTag, - createJSDocOverloadTag, - updateJSDocOverloadTag, - createJSDocAugmentsTag, - updateJSDocAugmentsTag, - createJSDocImplementsTag, - updateJSDocImplementsTag, - createJSDocSeeTag, - updateJSDocSeeTag, - createJSDocImportTag, - updateJSDocImportTag, - createJSDocNameReference, - updateJSDocNameReference, - createJSDocMemberName, - updateJSDocMemberName, - createJSDocLink, - updateJSDocLink, - createJSDocLinkCode, - updateJSDocLinkCode, - createJSDocLinkPlain, - updateJSDocLinkPlain, - // lazily load factory members for JSDoc tags with similar structure - get createJSDocTypeTag() { - return getJSDocTypeLikeTagCreateFunction(344 /* JSDocTypeTag */); - }, - get updateJSDocTypeTag() { - return getJSDocTypeLikeTagUpdateFunction(344 /* JSDocTypeTag */); - }, - get createJSDocReturnTag() { - return getJSDocTypeLikeTagCreateFunction(342 /* JSDocReturnTag */); - }, - get updateJSDocReturnTag() { - return getJSDocTypeLikeTagUpdateFunction(342 /* JSDocReturnTag */); - }, - get createJSDocThisTag() { - return getJSDocTypeLikeTagCreateFunction(343 /* JSDocThisTag */); - }, - get updateJSDocThisTag() { - return getJSDocTypeLikeTagUpdateFunction(343 /* JSDocThisTag */); - }, - get createJSDocAuthorTag() { - return getJSDocSimpleTagCreateFunction(330 /* JSDocAuthorTag */); - }, - get updateJSDocAuthorTag() { - return getJSDocSimpleTagUpdateFunction(330 /* JSDocAuthorTag */); - }, - get createJSDocClassTag() { - return getJSDocSimpleTagCreateFunction(332 /* JSDocClassTag */); - }, - get updateJSDocClassTag() { - return getJSDocSimpleTagUpdateFunction(332 /* JSDocClassTag */); - }, - get createJSDocPublicTag() { - return getJSDocSimpleTagCreateFunction(333 /* JSDocPublicTag */); - }, - get updateJSDocPublicTag() { - return getJSDocSimpleTagUpdateFunction(333 /* JSDocPublicTag */); - }, - get createJSDocPrivateTag() { - return getJSDocSimpleTagCreateFunction(334 /* JSDocPrivateTag */); - }, - get updateJSDocPrivateTag() { - return getJSDocSimpleTagUpdateFunction(334 /* JSDocPrivateTag */); - }, - get createJSDocProtectedTag() { - return getJSDocSimpleTagCreateFunction(335 /* JSDocProtectedTag */); - }, - get updateJSDocProtectedTag() { - return getJSDocSimpleTagUpdateFunction(335 /* JSDocProtectedTag */); - }, - get createJSDocReadonlyTag() { - return getJSDocSimpleTagCreateFunction(336 /* JSDocReadonlyTag */); - }, - get updateJSDocReadonlyTag() { - return getJSDocSimpleTagUpdateFunction(336 /* JSDocReadonlyTag */); - }, - get createJSDocOverrideTag() { - return getJSDocSimpleTagCreateFunction(337 /* JSDocOverrideTag */); - }, - get updateJSDocOverrideTag() { - return getJSDocSimpleTagUpdateFunction(337 /* JSDocOverrideTag */); - }, - get createJSDocDeprecatedTag() { - return getJSDocSimpleTagCreateFunction(331 /* JSDocDeprecatedTag */); - }, - get updateJSDocDeprecatedTag() { - return getJSDocSimpleTagUpdateFunction(331 /* JSDocDeprecatedTag */); - }, - get createJSDocThrowsTag() { - return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThrowsTag */); - }, - get updateJSDocThrowsTag() { - return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThrowsTag */); - }, - get createJSDocSatisfiesTag() { - return getJSDocTypeLikeTagCreateFunction(350 /* JSDocSatisfiesTag */); - }, - get updateJSDocSatisfiesTag() { - return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocSatisfiesTag */); - }, - createJSDocEnumTag, - updateJSDocEnumTag, - createJSDocUnknownTag, - updateJSDocUnknownTag, - createJSDocText, - updateJSDocText, - createJSDocComment, - updateJSDocComment, - createJsxElement, - updateJsxElement, - createJsxSelfClosingElement, - updateJsxSelfClosingElement, - createJsxOpeningElement, - updateJsxOpeningElement, - createJsxClosingElement, - updateJsxClosingElement, - createJsxFragment, - createJsxText, - updateJsxText, - createJsxOpeningFragment, - createJsxJsxClosingFragment, - updateJsxFragment, - createJsxAttribute, - updateJsxAttribute, - createJsxAttributes, - updateJsxAttributes, - createJsxSpreadAttribute, - updateJsxSpreadAttribute, - createJsxExpression, - updateJsxExpression, - createJsxNamespacedName, - updateJsxNamespacedName, - createCaseClause, - updateCaseClause, - createDefaultClause, - updateDefaultClause, - createHeritageClause, - updateHeritageClause, - createCatchClause, - updateCatchClause, - createPropertyAssignment, - updatePropertyAssignment, - createShorthandPropertyAssignment, - updateShorthandPropertyAssignment, - createSpreadAssignment, - updateSpreadAssignment, - createEnumMember, - updateEnumMember, - createSourceFile: createSourceFile2, - updateSourceFile, - createRedirectedSourceFile, - createBundle, - updateBundle, - createSyntheticExpression, - createSyntaxList, - createNotEmittedStatement, - createNotEmittedTypeElement, - createPartiallyEmittedExpression, - updatePartiallyEmittedExpression, - createCommaListExpression, - updateCommaListExpression, - createSyntheticReferenceExpression, - updateSyntheticReferenceExpression, - cloneNode, - // Lazily load factory methods for common operator factories and utilities - get createComma() { - return getBinaryCreateFunction(28 /* CommaToken */); - }, - get createAssignment() { - return getBinaryCreateFunction(64 /* EqualsToken */); - }, - get createLogicalOr() { - return getBinaryCreateFunction(57 /* BarBarToken */); - }, - get createLogicalAnd() { - return getBinaryCreateFunction(56 /* AmpersandAmpersandToken */); - }, - get createBitwiseOr() { - return getBinaryCreateFunction(52 /* BarToken */); - }, - get createBitwiseXor() { - return getBinaryCreateFunction(53 /* CaretToken */); - }, - get createBitwiseAnd() { - return getBinaryCreateFunction(51 /* AmpersandToken */); - }, - get createStrictEquality() { - return getBinaryCreateFunction(37 /* EqualsEqualsEqualsToken */); - }, - get createStrictInequality() { - return getBinaryCreateFunction(38 /* ExclamationEqualsEqualsToken */); - }, - get createEquality() { - return getBinaryCreateFunction(35 /* EqualsEqualsToken */); - }, - get createInequality() { - return getBinaryCreateFunction(36 /* ExclamationEqualsToken */); - }, - get createLessThan() { - return getBinaryCreateFunction(30 /* LessThanToken */); - }, - get createLessThanEquals() { - return getBinaryCreateFunction(33 /* LessThanEqualsToken */); - }, - get createGreaterThan() { - return getBinaryCreateFunction(32 /* GreaterThanToken */); - }, - get createGreaterThanEquals() { - return getBinaryCreateFunction(34 /* GreaterThanEqualsToken */); - }, - get createLeftShift() { - return getBinaryCreateFunction(48 /* LessThanLessThanToken */); - }, - get createRightShift() { - return getBinaryCreateFunction(49 /* GreaterThanGreaterThanToken */); - }, - get createUnsignedRightShift() { - return getBinaryCreateFunction(50 /* GreaterThanGreaterThanGreaterThanToken */); - }, - get createAdd() { - return getBinaryCreateFunction(40 /* PlusToken */); - }, - get createSubtract() { - return getBinaryCreateFunction(41 /* MinusToken */); - }, - get createMultiply() { - return getBinaryCreateFunction(42 /* AsteriskToken */); - }, - get createDivide() { - return getBinaryCreateFunction(44 /* SlashToken */); - }, - get createModulo() { - return getBinaryCreateFunction(45 /* PercentToken */); - }, - get createExponent() { - return getBinaryCreateFunction(43 /* AsteriskAsteriskToken */); - }, - get createPrefixPlus() { - return getPrefixUnaryCreateFunction(40 /* PlusToken */); - }, - get createPrefixMinus() { - return getPrefixUnaryCreateFunction(41 /* MinusToken */); - }, - get createPrefixIncrement() { - return getPrefixUnaryCreateFunction(46 /* PlusPlusToken */); - }, - get createPrefixDecrement() { - return getPrefixUnaryCreateFunction(47 /* MinusMinusToken */); - }, - get createBitwiseNot() { - return getPrefixUnaryCreateFunction(55 /* TildeToken */); - }, - get createLogicalNot() { - return getPrefixUnaryCreateFunction(54 /* ExclamationToken */); - }, - get createPostfixIncrement() { - return getPostfixUnaryCreateFunction(46 /* PlusPlusToken */); - }, - get createPostfixDecrement() { - return getPostfixUnaryCreateFunction(47 /* MinusMinusToken */); - }, - // Compound nodes - createImmediatelyInvokedFunctionExpression, - createImmediatelyInvokedArrowFunction, - createVoidZero, - createExportDefault, - createExternalModuleExport, - createTypeCheck, - createIsNotTypeCheck, - createMethodCall, - createGlobalMethodCall, - createFunctionBindCall, - createFunctionCallCall, - createFunctionApplyCall, - createArraySliceCall, - createArrayConcatCall, - createObjectDefinePropertyCall, - createObjectGetOwnPropertyDescriptorCall, - createReflectGetCall, - createReflectSetCall, - createPropertyDescriptor, - createCallBinding, - createAssignmentTargetWrapper, - // Utilities - inlineExpressions, - getInternalName, - getLocalName, - getExportName, - getDeclarationName, - getNamespaceMemberName, - getExternalModuleOrNamespaceExportName, - restoreOuterExpressions, - restoreEnclosingLabel, - createUseStrictPrologue, - copyPrologue, - copyStandardPrologue, - copyCustomPrologue, - ensureUseStrict, - liftToBlock, - mergeLexicalEnvironment, - replaceModifiers, - replaceDecoratorsAndModifiers, - replacePropertyName - }; - forEach(nodeFactoryPatchers, (fn) => fn(factory2)); - return factory2; - function createNodeArray(elements, hasTrailingComma) { - if (elements === void 0 || elements === emptyArray) { - elements = []; - } else if (isNodeArray(elements)) { - if (hasTrailingComma === void 0 || elements.hasTrailingComma === hasTrailingComma) { - if (elements.transformFlags === void 0) { - aggregateChildrenFlags(elements); - } - Debug.attachNodeArrayDebugInfo(elements); - return elements; - } - const array2 = elements.slice(); - array2.pos = elements.pos; - array2.end = elements.end; - array2.hasTrailingComma = hasTrailingComma; - array2.transformFlags = elements.transformFlags; - Debug.attachNodeArrayDebugInfo(array2); - return array2; - } - const length2 = elements.length; - const array = length2 >= 1 && length2 <= 4 ? elements.slice() : elements; - array.pos = -1; - array.end = -1; - array.hasTrailingComma = !!hasTrailingComma; - array.transformFlags = 0 /* None */; - aggregateChildrenFlags(array); - Debug.attachNodeArrayDebugInfo(array); - return array; - } - function createBaseNode(kind) { - return baseFactory2.createBaseNode(kind); - } - function createBaseDeclaration(kind) { - const node = createBaseNode(kind); - node.symbol = void 0; - node.localSymbol = void 0; - return node; - } - function finishUpdateBaseSignatureDeclaration(updated, original) { - if (updated !== original) { - updated.typeArguments = original.typeArguments; - } - return update(updated, original); - } - function createNumericLiteral(value, numericLiteralFlags = 0 /* None */) { - const text = typeof value === "number" ? value + "" : value; - Debug.assert(text.charCodeAt(0) !== 45 /* minus */, "Negative numbers should be created in combination with createPrefixUnaryExpression"); - const node = createBaseDeclaration(9 /* NumericLiteral */); - node.text = text; - node.numericLiteralFlags = numericLiteralFlags; - if (numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */) node.transformFlags |= 1024 /* ContainsES2015 */; - return node; - } - function createBigIntLiteral(value) { - const node = createBaseToken(10 /* BigIntLiteral */); - node.text = typeof value === "string" ? value : pseudoBigIntToString(value) + "n"; - node.transformFlags |= 32 /* ContainsES2020 */; - return node; - } - function createBaseStringLiteral(text, isSingleQuote) { - const node = createBaseDeclaration(11 /* StringLiteral */); - node.text = text; - node.singleQuote = isSingleQuote; - return node; - } - function createStringLiteral(text, isSingleQuote, hasExtendedUnicodeEscape) { - const node = createBaseStringLiteral(text, isSingleQuote); - node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape; - if (hasExtendedUnicodeEscape) node.transformFlags |= 1024 /* ContainsES2015 */; - return node; - } - function createStringLiteralFromNode(sourceNode) { - const node = createBaseStringLiteral( - getTextOfIdentifierOrLiteral(sourceNode), - /*isSingleQuote*/ - void 0 - ); - node.textSourceNode = sourceNode; - return node; - } - function createRegularExpressionLiteral(text) { - const node = createBaseToken(14 /* RegularExpressionLiteral */); - node.text = text; - return node; - } - function createLiteralLikeNode(kind, text) { - switch (kind) { - case 9 /* NumericLiteral */: - return createNumericLiteral( - text, - /*numericLiteralFlags*/ - 0 - ); - case 10 /* BigIntLiteral */: - return createBigIntLiteral(text); - case 11 /* StringLiteral */: - return createStringLiteral( - text, - /*isSingleQuote*/ - void 0 - ); - case 12 /* JsxText */: - return createJsxText( - text, - /*containsOnlyTriviaWhiteSpaces*/ - false - ); - case 13 /* JsxTextAllWhiteSpaces */: - return createJsxText( - text, - /*containsOnlyTriviaWhiteSpaces*/ - true - ); - case 14 /* RegularExpressionLiteral */: - return createRegularExpressionLiteral(text); - case 15 /* NoSubstitutionTemplateLiteral */: - return createTemplateLiteralLikeNode( - kind, - text, - /*rawText*/ - void 0, - /*templateFlags*/ - 0 - ); - } - } - function createBaseIdentifier(escapedText) { - const node = baseFactory2.createBaseIdentifierNode(80 /* Identifier */); - node.escapedText = escapedText; - node.jsDoc = void 0; - node.flowNode = void 0; - node.symbol = void 0; - return node; - } - function createBaseGeneratedIdentifier(text, autoGenerateFlags, prefix, suffix) { - const node = createBaseIdentifier(escapeLeadingUnderscores(text)); - setIdentifierAutoGenerate(node, { - flags: autoGenerateFlags, - id: nextAutoGenerateId, - prefix, - suffix - }); - nextAutoGenerateId++; - return node; - } - function createIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape) { - if (originalKeywordKind === void 0 && text) { - originalKeywordKind = stringToToken(text); - } - if (originalKeywordKind === 80 /* Identifier */) { - originalKeywordKind = void 0; - } - const node = createBaseIdentifier(escapeLeadingUnderscores(text)); - if (hasExtendedUnicodeEscape) node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; - if (node.escapedText === "await") { - node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; - } - if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { - node.transformFlags |= 1024 /* ContainsES2015 */; - } - return node; - } - function createTempVariable(recordTempVariable, reservedInNestedScopes, prefix, suffix) { - let flags2 = 1 /* Auto */; - if (reservedInNestedScopes) flags2 |= 8 /* ReservedInNestedScopes */; - const name = createBaseGeneratedIdentifier("", flags2, prefix, suffix); - if (recordTempVariable) { - recordTempVariable(name); - } - return name; - } - function createLoopVariable(reservedInNestedScopes) { - let flags2 = 2 /* Loop */; - if (reservedInNestedScopes) flags2 |= 8 /* ReservedInNestedScopes */; - return createBaseGeneratedIdentifier( - "", - flags2, - /*prefix*/ - void 0, - /*suffix*/ - void 0 - ); - } - function createUniqueName(text, flags2 = 0 /* None */, prefix, suffix) { - Debug.assert(!(flags2 & 7 /* KindMask */), "Argument out of range: flags"); - Debug.assert((flags2 & (16 /* Optimistic */ | 32 /* FileLevel */)) !== 32 /* FileLevel */, "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"); - return createBaseGeneratedIdentifier(text, 3 /* Unique */ | flags2, prefix, suffix); - } - function getGeneratedNameForNode(node, flags2 = 0, prefix, suffix) { - Debug.assert(!(flags2 & 7 /* KindMask */), "Argument out of range: flags"); - const text = !node ? "" : isMemberName(node) ? formatGeneratedName( - /*privateName*/ - false, - prefix, - node, - suffix, - idText - ) : `generated@${getNodeId(node)}`; - if (prefix || suffix) flags2 |= 16 /* Optimistic */; - const name = createBaseGeneratedIdentifier(text, 4 /* Node */ | flags2, prefix, suffix); - name.original = node; - return name; - } - function createBasePrivateIdentifier(escapedText) { - const node = baseFactory2.createBasePrivateIdentifierNode(81 /* PrivateIdentifier */); - node.escapedText = escapedText; - node.transformFlags |= 16777216 /* ContainsClassFields */; - return node; - } - function createPrivateIdentifier(text) { - if (!startsWith(text, "#")) Debug.fail("First character of private identifier must be #: " + text); - return createBasePrivateIdentifier(escapeLeadingUnderscores(text)); - } - function createBaseGeneratedPrivateIdentifier(text, autoGenerateFlags, prefix, suffix) { - const node = createBasePrivateIdentifier(escapeLeadingUnderscores(text)); - setIdentifierAutoGenerate(node, { - flags: autoGenerateFlags, - id: nextAutoGenerateId, - prefix, - suffix - }); - nextAutoGenerateId++; - return node; - } - function createUniquePrivateName(text, prefix, suffix) { - if (text && !startsWith(text, "#")) Debug.fail("First character of private identifier must be #: " + text); - const autoGenerateFlags = 8 /* ReservedInNestedScopes */ | (text ? 3 /* Unique */ : 1 /* Auto */); - return createBaseGeneratedPrivateIdentifier(text ?? "", autoGenerateFlags, prefix, suffix); - } - function getGeneratedPrivateNameForNode(node, prefix, suffix) { - const text = isMemberName(node) ? formatGeneratedName( - /*privateName*/ - true, - prefix, - node, - suffix, - idText - ) : `#generated@${getNodeId(node)}`; - const flags2 = prefix || suffix ? 16 /* Optimistic */ : 0 /* None */; - const name = createBaseGeneratedPrivateIdentifier(text, 4 /* Node */ | flags2, prefix, suffix); - name.original = node; - return name; - } - function createBaseToken(kind) { - return baseFactory2.createBaseTokenNode(kind); - } - function createToken(token) { - Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); - Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); - Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); - Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); - const node = createBaseToken(token); - let transformFlags = 0 /* None */; - switch (token) { - case 134 /* AsyncKeyword */: - transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; - break; - case 160 /* UsingKeyword */: - transformFlags = 4 /* ContainsESNext */; - break; - case 125 /* PublicKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 148 /* ReadonlyKeyword */: - case 128 /* AbstractKeyword */: - case 138 /* DeclareKeyword */: - case 87 /* ConstKeyword */: - case 133 /* AnyKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 146 /* NeverKeyword */: - case 151 /* ObjectKeyword */: - case 103 /* InKeyword */: - case 147 /* OutKeyword */: - case 164 /* OverrideKeyword */: - case 154 /* StringKeyword */: - case 136 /* BooleanKeyword */: - case 155 /* SymbolKeyword */: - case 116 /* VoidKeyword */: - case 159 /* UnknownKeyword */: - case 157 /* UndefinedKeyword */: - transformFlags = 1 /* ContainsTypeScript */; - break; - case 108 /* SuperKeyword */: - transformFlags = 1024 /* ContainsES2015 */ | 134217728 /* ContainsLexicalSuper */; - node.flowNode = void 0; - break; - case 126 /* StaticKeyword */: - transformFlags = 1024 /* ContainsES2015 */; - break; - case 129 /* AccessorKeyword */: - transformFlags = 16777216 /* ContainsClassFields */; - break; - case 110 /* ThisKeyword */: - transformFlags = 16384 /* ContainsLexicalThis */; - node.flowNode = void 0; - break; - } - if (transformFlags) { - node.transformFlags |= transformFlags; - } - return node; - } - function createSuper() { - return createToken(108 /* SuperKeyword */); - } - function createThis() { - return createToken(110 /* ThisKeyword */); - } - function createNull() { - return createToken(106 /* NullKeyword */); - } - function createTrue() { - return createToken(112 /* TrueKeyword */); - } - function createFalse() { - return createToken(97 /* FalseKeyword */); - } - function createModifier(kind) { - return createToken(kind); - } - function createModifiersFromModifierFlags(flags2) { - const result = []; - if (flags2 & 32 /* Export */) result.push(createModifier(95 /* ExportKeyword */)); - if (flags2 & 128 /* Ambient */) result.push(createModifier(138 /* DeclareKeyword */)); - if (flags2 & 2048 /* Default */) result.push(createModifier(90 /* DefaultKeyword */)); - if (flags2 & 4096 /* Const */) result.push(createModifier(87 /* ConstKeyword */)); - if (flags2 & 1 /* Public */) result.push(createModifier(125 /* PublicKeyword */)); - if (flags2 & 2 /* Private */) result.push(createModifier(123 /* PrivateKeyword */)); - if (flags2 & 4 /* Protected */) result.push(createModifier(124 /* ProtectedKeyword */)); - if (flags2 & 64 /* Abstract */) result.push(createModifier(128 /* AbstractKeyword */)); - if (flags2 & 256 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); - if (flags2 & 16 /* Override */) result.push(createModifier(164 /* OverrideKeyword */)); - if (flags2 & 8 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); - if (flags2 & 512 /* Accessor */) result.push(createModifier(129 /* AccessorKeyword */)); - if (flags2 & 1024 /* Async */) result.push(createModifier(134 /* AsyncKeyword */)); - if (flags2 & 8192 /* In */) result.push(createModifier(103 /* InKeyword */)); - if (flags2 & 16384 /* Out */) result.push(createModifier(147 /* OutKeyword */)); - return result.length ? result : void 0; - } - function createQualifiedName(left, right) { - const node = createBaseNode(166 /* QualifiedName */); - node.left = left; - node.right = asName(right); - node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); - node.flowNode = void 0; - return node; - } - function updateQualifiedName(node, left, right) { - return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; - } - function createComputedPropertyName(expression) { - const node = createBaseNode(167 /* ComputedPropertyName */); - node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); - node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; - return node; - } - function updateComputedPropertyName(node, expression) { - return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; - } - function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { - const node = createBaseDeclaration(168 /* TypeParameter */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.constraint = constraint; - node.default = defaultType; - node.transformFlags = 1 /* ContainsTypeScript */; - node.expression = void 0; - node.jsDoc = void 0; - return node; - } - function updateTypeParameterDeclaration(node, modifiers, name, constraint, defaultType) { - return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; - } - function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { - const node = createBaseDeclaration(169 /* Parameter */); - node.modifiers = asNodeArray(modifiers); - node.dotDotDotToken = dotDotDotToken; - node.name = asName(name); - node.questionToken = questionToken; - node.type = type; - node.initializer = asInitializer(initializer); - if (isThisIdentifier(node.name)) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.initializer) | (node.questionToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (node.dotDotDotToken ?? node.initializer ? 1024 /* ContainsES2015 */ : 0 /* None */) | (modifiersToFlags(node.modifiers) & 31 /* ParameterPropertyModifier */ ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */); - } - node.jsDoc = void 0; - return node; - } - function updateParameterDeclaration(node, modifiers, dotDotDotToken, name, questionToken, type, initializer) { - return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; - } - function createDecorator(expression) { - const node = createBaseNode(170 /* Decorator */); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ); - node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */ | 8192 /* ContainsTypeScriptClassSyntax */ | 33554432 /* ContainsDecorators */; - return node; - } - function updateDecorator(node, expression) { - return node.expression !== expression ? update(createDecorator(expression), node) : node; - } - function createPropertySignature(modifiers, name, questionToken, type) { - const node = createBaseDeclaration(171 /* PropertySignature */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.type = type; - node.questionToken = questionToken; - node.transformFlags = 1 /* ContainsTypeScript */; - node.initializer = void 0; - node.jsDoc = void 0; - return node; - } - function updatePropertySignature(node, modifiers, name, questionToken, type) { - return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.type !== type ? finishUpdatePropertySignature(createPropertySignature(modifiers, name, questionToken, type), node) : node; - } - function finishUpdatePropertySignature(updated, original) { - if (updated !== original) { - updated.initializer = original.initializer; - } - return update(updated, original); - } - function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { - const node = createBaseDeclaration(172 /* PropertyDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; - node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; - node.type = type; - node.initializer = asInitializer(initializer); - const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 128 /* Ambient */; - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 256 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; - node.jsDoc = void 0; - return node; - } - function updatePropertyDeclaration(node, modifiers, name, questionOrExclamationToken, type, initializer) { - return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; - } - function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { - const node = createBaseDeclaration(173 /* MethodSignature */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.questionToken = questionToken; - node.typeParameters = asNodeArray(typeParameters); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateMethodSignature(node, modifiers, name, questionToken, typeParameters, parameters, type) { - return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; - } - function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(174 /* MethodDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.asteriskToken = asteriskToken; - node.name = asName(name); - node.questionToken = questionToken; - node.exclamationToken = void 0; - node.typeParameters = asNodeArray(typeParameters); - node.parameters = createNodeArray(parameters); - node.type = type; - node.body = body; - if (!node.body) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; - const isGenerator = !!node.asteriskToken; - const isAsyncGenerator = isAsync && isGenerator; - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.questionToken || node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; - } - node.typeArguments = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateMethodDeclaration(node, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { - return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateMethodDeclaration(createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body), node) : node; - } - function finishUpdateMethodDeclaration(updated, original) { - if (updated !== original) { - updated.exclamationToken = original.exclamationToken; - } - return update(updated, original); - } - function createClassStaticBlockDeclaration(body) { - const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); - node.body = body; - node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; - node.modifiers = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateClassStaticBlockDeclaration(node, body) { - return node.body !== body ? finishUpdateClassStaticBlockDeclaration(createClassStaticBlockDeclaration(body), node) : node; - } - function finishUpdateClassStaticBlockDeclaration(updated, original) { - if (updated !== original) { - updated.modifiers = original.modifiers; - } - return update(updated, original); - } - function createConstructorDeclaration(modifiers, parameters, body) { - const node = createBaseDeclaration(176 /* Constructor */); - node.modifiers = asNodeArray(modifiers); - node.parameters = createNodeArray(parameters); - node.body = body; - if (!node.body) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */; - } - node.typeParameters = void 0; - node.type = void 0; - node.typeArguments = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateConstructorDeclaration(node, modifiers, parameters, body) { - return node.modifiers !== modifiers || node.parameters !== parameters || node.body !== body ? finishUpdateConstructorDeclaration(createConstructorDeclaration(modifiers, parameters, body), node) : node; - } - function finishUpdateConstructorDeclaration(updated, original) { - if (updated !== original) { - updated.typeParameters = original.typeParameters; - updated.type = original.type; - } - return finishUpdateBaseSignatureDeclaration(updated, original); - } - function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { - const node = createBaseDeclaration(177 /* GetAccessor */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.parameters = createNodeArray(parameters); - node.type = type; - node.body = body; - if (!node.body) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); - } - node.typeArguments = void 0; - node.typeParameters = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateGetAccessorDeclaration(node, modifiers, name, parameters, type, body) { - return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateGetAccessorDeclaration(createGetAccessorDeclaration(modifiers, name, parameters, type, body), node) : node; - } - function finishUpdateGetAccessorDeclaration(updated, original) { - if (updated !== original) { - updated.typeParameters = original.typeParameters; - } - return finishUpdateBaseSignatureDeclaration(updated, original); - } - function createSetAccessorDeclaration(modifiers, name, parameters, body) { - const node = createBaseDeclaration(178 /* SetAccessor */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.parameters = createNodeArray(parameters); - node.body = body; - if (!node.body) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); - } - node.typeArguments = void 0; - node.typeParameters = void 0; - node.type = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateSetAccessorDeclaration(node, modifiers, name, parameters, body) { - return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.body !== body ? finishUpdateSetAccessorDeclaration(createSetAccessorDeclaration(modifiers, name, parameters, body), node) : node; - } - function finishUpdateSetAccessorDeclaration(updated, original) { - if (updated !== original) { - updated.typeParameters = original.typeParameters; - updated.type = original.type; - } - return finishUpdateBaseSignatureDeclaration(updated, original); - } - function createCallSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(179 /* CallSignature */); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateCallSignature(node, typeParameters, parameters, type) { - return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; - } - function createConstructSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(180 /* ConstructSignature */); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateConstructSignature(node, typeParameters, parameters, type) { - return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; - } - function createIndexSignature(modifiers, parameters, type) { - const node = createBaseDeclaration(181 /* IndexSignature */); - node.modifiers = asNodeArray(modifiers); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateIndexSignature(node, modifiers, parameters, type) { - return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; - } - function createTemplateLiteralTypeSpan(type, literal) { - const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); - node.type = type; - node.literal = literal; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTemplateLiteralTypeSpan(node, type, literal) { - return node.type !== type || node.literal !== literal ? update(createTemplateLiteralTypeSpan(type, literal), node) : node; - } - function createKeywordTypeNode(kind) { - return createToken(kind); - } - function createTypePredicateNode(assertsModifier, parameterName, type) { - const node = createBaseNode(182 /* TypePredicate */); - node.assertsModifier = assertsModifier; - node.parameterName = asName(parameterName); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTypePredicateNode(node, assertsModifier, parameterName, type) { - return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; - } - function createTypeReferenceNode(typeName, typeArguments) { - const node = createBaseNode(183 /* TypeReference */); - node.typeName = asName(typeName); - node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTypeReferenceNode(node, typeName, typeArguments) { - return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; - } - function createFunctionTypeNode(typeParameters, parameters, type) { - const node = createBaseDeclaration(184 /* FunctionType */); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.modifiers = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateFunctionTypeNode(node, typeParameters, parameters, type) { - return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateFunctionTypeNode(createFunctionTypeNode(typeParameters, parameters, type), node) : node; - } - function finishUpdateFunctionTypeNode(updated, original) { - if (updated !== original) { - updated.modifiers = original.modifiers; - } - return finishUpdateBaseSignatureDeclaration(updated, original); - } - function createConstructorTypeNode(...args) { - return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); - } - function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { - const node = createBaseDeclaration(185 /* ConstructorType */); - node.modifiers = asNodeArray(modifiers); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function createConstructorTypeNode2(typeParameters, parameters, type) { - return createConstructorTypeNode1( - /*modifiers*/ - void 0, - typeParameters, - parameters, - type - ); - } - function updateConstructorTypeNode(...args) { - return args.length === 5 ? updateConstructorTypeNode1(...args) : args.length === 4 ? updateConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); - } - function updateConstructorTypeNode1(node, modifiers, typeParameters, parameters, type) { - return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructorTypeNode(modifiers, typeParameters, parameters, type), node) : node; - } - function updateConstructorTypeNode2(node, typeParameters, parameters, type) { - return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); - } - function createTypeQueryNode(exprName, typeArguments) { - const node = createBaseNode(186 /* TypeQuery */); - node.exprName = exprName; - node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTypeQueryNode(node, exprName, typeArguments) { - return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; - } - function createTypeLiteralNode(members) { - const node = createBaseDeclaration(187 /* TypeLiteral */); - node.members = createNodeArray(members); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTypeLiteralNode(node, members) { - return node.members !== members ? update(createTypeLiteralNode(members), node) : node; - } - function createArrayTypeNode(elementType) { - const node = createBaseNode(188 /* ArrayType */); - node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateArrayTypeNode(node, elementType) { - return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; - } - function createTupleTypeNode(elements) { - const node = createBaseNode(189 /* TupleType */); - node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTupleTypeNode(node, elements) { - return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; - } - function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { - const node = createBaseDeclaration(202 /* NamedTupleMember */); - node.dotDotDotToken = dotDotDotToken; - node.name = name; - node.questionToken = questionToken; - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - return node; - } - function updateNamedTupleMember(node, dotDotDotToken, name, questionToken, type) { - return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; - } - function createOptionalTypeNode(type) { - const node = createBaseNode(190 /* OptionalType */); - node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateOptionalTypeNode(node, type) { - return node.type !== type ? update(createOptionalTypeNode(type), node) : node; - } - function createRestTypeNode(type) { - const node = createBaseNode(191 /* RestType */); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateRestTypeNode(node, type) { - return node.type !== type ? update(createRestTypeNode(type), node) : node; - } - function createUnionOrIntersectionTypeNode(kind, types, parenthesize) { - const node = createBaseNode(kind); - node.types = factory2.createNodeArray(parenthesize(types)); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateUnionOrIntersectionTypeNode(node, types, parenthesize) { - return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; - } - function createUnionTypeNode(types) { - return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); - } - function updateUnionTypeNode(node, types) { - return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); - } - function createIntersectionTypeNode(types) { - return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); - } - function updateIntersectionTypeNode(node, types) { - return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); - } - function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { - const node = createBaseNode(194 /* ConditionalType */); - node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); - node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); - node.trueType = trueType; - node.falseType = falseType; - node.transformFlags = 1 /* ContainsTypeScript */; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateConditionalTypeNode(node, checkType, extendsType, trueType, falseType) { - return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; - } - function createInferTypeNode(typeParameter) { - const node = createBaseNode(195 /* InferType */); - node.typeParameter = typeParameter; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateInferTypeNode(node, typeParameter) { - return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; - } - function createTemplateLiteralType(head, templateSpans) { - const node = createBaseNode(203 /* TemplateLiteralType */); - node.head = head; - node.templateSpans = createNodeArray(templateSpans); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTemplateLiteralType(node, head, templateSpans) { - return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; - } - function createImportTypeNode(argument, attributes, qualifier, typeArguments, isTypeOf = false) { - const node = createBaseNode(205 /* ImportType */); - node.argument = argument; - node.attributes = attributes; - if (node.assertions && node.assertions.assertClause && node.attributes) { - node.assertions.assertClause = node.attributes; - } - node.qualifier = qualifier; - node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); - node.isTypeOf = isTypeOf; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateImportTypeNode(node, argument, attributes, qualifier, typeArguments, isTypeOf = node.isTypeOf) { - return node.argument !== argument || node.attributes !== attributes || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, attributes, qualifier, typeArguments, isTypeOf), node) : node; - } - function createParenthesizedType(type) { - const node = createBaseNode(196 /* ParenthesizedType */); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateParenthesizedType(node, type) { - return node.type !== type ? update(createParenthesizedType(type), node) : node; - } - function createThisTypeNode() { - const node = createBaseNode(197 /* ThisType */); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function createTypeOperatorNode(operator, type) { - const node = createBaseNode(198 /* TypeOperator */); - node.operator = operator; - node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateTypeOperatorNode(node, type) { - return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; - } - function createIndexedAccessTypeNode(objectType, indexType) { - const node = createBaseNode(199 /* IndexedAccessType */); - node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); - node.indexType = indexType; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateIndexedAccessTypeNode(node, objectType, indexType) { - return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; - } - function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { - const node = createBaseDeclaration(200 /* MappedType */); - node.readonlyToken = readonlyToken; - node.typeParameter = typeParameter; - node.nameType = nameType; - node.questionToken = questionToken; - node.type = type; - node.members = members && createNodeArray(members); - node.transformFlags = 1 /* ContainsTypeScript */; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type, members) { - return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; - } - function createLiteralTypeNode(literal) { - const node = createBaseNode(201 /* LiteralType */); - node.literal = literal; - node.transformFlags = 1 /* ContainsTypeScript */; - return node; - } - function updateLiteralTypeNode(node, literal) { - return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; - } - function createObjectBindingPattern(elements) { - const node = createBaseNode(206 /* ObjectBindingPattern */); - node.elements = createNodeArray(elements); - node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; - if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { - node.transformFlags |= 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; - } - return node; - } - function updateObjectBindingPattern(node, elements) { - return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; - } - function createArrayBindingPattern(elements) { - const node = createBaseNode(207 /* ArrayBindingPattern */); - node.elements = createNodeArray(elements); - node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; - return node; - } - function updateArrayBindingPattern(node, elements) { - return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; - } - function createBindingElement(dotDotDotToken, propertyName, name, initializer) { - const node = createBaseDeclaration(208 /* BindingElement */); - node.dotDotDotToken = dotDotDotToken; - node.propertyName = asName(propertyName); - node.name = asName(name); - node.initializer = asInitializer(initializer); - node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.propertyName) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.dotDotDotToken ? 32768 /* ContainsRestOrSpread */ : 0 /* None */) | 1024 /* ContainsES2015 */; - node.flowNode = void 0; - return node; - } - function updateBindingElement(node, dotDotDotToken, propertyName, name, initializer) { - return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; - } - function createArrayLiteralExpression(elements, multiLine) { - const node = createBaseNode(209 /* ArrayLiteralExpression */); - const lastElement = elements && lastOrUndefined(elements); - const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); - node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); - node.multiLine = multiLine; - node.transformFlags |= propagateChildrenFlags(node.elements); - return node; - } - function updateArrayLiteralExpression(node, elements) { - return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; - } - function createObjectLiteralExpression(properties, multiLine) { - const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); - node.properties = createNodeArray(properties); - node.multiLine = multiLine; - node.transformFlags |= propagateChildrenFlags(node.properties); - node.jsDoc = void 0; - return node; - } - function updateObjectLiteralExpression(node, properties) { - return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; - } - function createBasePropertyAccessExpression(expression, questionDotToken, name) { - const node = createBaseDeclaration(211 /* PropertyAccessExpression */); - node.expression = expression; - node.questionDotToken = questionDotToken; - node.name = name; - node.transformFlags = propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | (isIdentifier(node.name) ? propagateIdentifierNameFlags(node.name) : propagateChildFlags(node.name) | 536870912 /* ContainsPrivateIdentifierInExpression */); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function createPropertyAccessExpression(expression, name) { - const node = createBasePropertyAccessExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ), - /*questionDotToken*/ - void 0, - asName(name) - ); - if (isSuperKeyword(expression)) { - node.transformFlags |= 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; - } - return node; - } - function updatePropertyAccessExpression(node, expression, name) { - if (isPropertyAccessChain(node)) { - return updatePropertyAccessChain(node, expression, node.questionDotToken, cast(name, isIdentifier)); - } - return node.expression !== expression || node.name !== name ? update(createPropertyAccessExpression(expression, name), node) : node; - } - function createPropertyAccessChain(expression, questionDotToken, name) { - const node = createBasePropertyAccessExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - true - ), - questionDotToken, - asName(name) - ); - node.flags |= 64 /* OptionalChain */; - node.transformFlags |= 32 /* ContainsES2020 */; - return node; - } - function updatePropertyAccessChain(node, expression, questionDotToken, name) { - Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); - return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; - } - function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { - const node = createBaseDeclaration(212 /* ElementAccessExpression */); - node.expression = expression; - node.questionDotToken = questionDotToken; - node.argumentExpression = argumentExpression; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildFlags(node.argumentExpression); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function createElementAccessExpression(expression, index) { - const node = createBaseElementAccessExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ), - /*questionDotToken*/ - void 0, - asExpression(index) - ); - if (isSuperKeyword(expression)) { - node.transformFlags |= 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; - } - return node; - } - function updateElementAccessExpression(node, expression, argumentExpression) { - if (isElementAccessChain(node)) { - return updateElementAccessChain(node, expression, node.questionDotToken, argumentExpression); - } - return node.expression !== expression || node.argumentExpression !== argumentExpression ? update(createElementAccessExpression(expression, argumentExpression), node) : node; - } - function createElementAccessChain(expression, questionDotToken, index) { - const node = createBaseElementAccessExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - true - ), - questionDotToken, - asExpression(index) - ); - node.flags |= 64 /* OptionalChain */; - node.transformFlags |= 32 /* ContainsES2020 */; - return node; - } - function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { - Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); - return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; - } - function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseDeclaration(213 /* CallExpression */); - node.expression = expression; - node.questionDotToken = questionDotToken; - node.typeArguments = typeArguments; - node.arguments = argumentsArray; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments); - if (node.typeArguments) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - if (isSuperProperty(node.expression)) { - node.transformFlags |= 16384 /* ContainsLexicalThis */; - } - return node; - } - function createCallExpression(expression, typeArguments, argumentsArray) { - const node = createBaseCallExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ), - /*questionDotToken*/ - void 0, - asNodeArray(typeArguments), - parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) - ); - if (isImportKeyword(node.expression)) { - node.transformFlags |= 8388608 /* ContainsDynamicImport */; - } - return node; - } - function updateCallExpression(node, expression, typeArguments, argumentsArray) { - if (isCallChain(node)) { - return updateCallChain(node, expression, node.questionDotToken, typeArguments, argumentsArray); - } - return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallExpression(expression, typeArguments, argumentsArray), node) : node; - } - function createCallChain(expression, questionDotToken, typeArguments, argumentsArray) { - const node = createBaseCallExpression( - parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - true - ), - questionDotToken, - asNodeArray(typeArguments), - parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) - ); - node.flags |= 64 /* OptionalChain */; - node.transformFlags |= 32 /* ContainsES2020 */; - return node; - } - function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { - Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); - return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; - } - function createNewExpression(expression, typeArguments, argumentsArray) { - const node = createBaseDeclaration(214 /* NewExpression */); - node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); - node.typeArguments = asNodeArray(typeArguments); - node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments) | 32 /* ContainsES2020 */; - if (node.typeArguments) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - return node; - } - function updateNewExpression(node, expression, typeArguments, argumentsArray) { - return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; - } - function createTaggedTemplateExpression(tag, typeArguments, template) { - const node = createBaseNode(215 /* TaggedTemplateExpression */); - node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( - tag, - /*optionalChain*/ - false - ); - node.typeArguments = asNodeArray(typeArguments); - node.template = template; - node.transformFlags |= propagateChildFlags(node.tag) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.template) | 1024 /* ContainsES2015 */; - if (node.typeArguments) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - if (hasInvalidEscape(node.template)) { - node.transformFlags |= 128 /* ContainsES2018 */; - } - return node; - } - function updateTaggedTemplateExpression(node, tag, typeArguments, template) { - return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; - } - function createTypeAssertion(type, expression) { - const node = createBaseNode(216 /* TypeAssertionExpression */); - node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); - node.type = type; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; - return node; - } - function updateTypeAssertion(node, type, expression) { - return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; - } - function createParenthesizedExpression(expression) { - const node = createBaseNode(217 /* ParenthesizedExpression */); - node.expression = expression; - node.transformFlags = propagateChildFlags(node.expression); - node.jsDoc = void 0; - return node; - } - function updateParenthesizedExpression(node, expression) { - return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; - } - function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(218 /* FunctionExpression */); - node.modifiers = asNodeArray(modifiers); - node.asteriskToken = asteriskToken; - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = createNodeArray(parameters); - node.type = type; - node.body = body; - const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; - const isGenerator = !!node.asteriskToken; - const isAsyncGenerator = isAsync && isGenerator; - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - node.typeArguments = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateFunctionExpression(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; - } - function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - const node = createBaseDeclaration(219 /* ArrowFunction */); - node.modifiers = asNodeArray(modifiers); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = createNodeArray(parameters); - node.type = type; - node.equalsGreaterThanToken = equalsGreaterThanToken ?? createToken(39 /* EqualsGreaterThanToken */); - node.body = parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body); - const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isAsync ? 256 /* ContainsES2017 */ | 16384 /* ContainsLexicalThis */ : 0 /* None */) | 1024 /* ContainsES2015 */; - node.typeArguments = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { - return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; - } - function createDeleteExpression(expression) { - const node = createBaseNode(220 /* DeleteExpression */); - node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); - node.transformFlags |= propagateChildFlags(node.expression); - return node; - } - function updateDeleteExpression(node, expression) { - return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; - } - function createTypeOfExpression(expression) { - const node = createBaseNode(221 /* TypeOfExpression */); - node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); - node.transformFlags |= propagateChildFlags(node.expression); - return node; - } - function updateTypeOfExpression(node, expression) { - return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; - } - function createVoidExpression(expression) { - const node = createBaseNode(222 /* VoidExpression */); - node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); - node.transformFlags |= propagateChildFlags(node.expression); - return node; - } - function updateVoidExpression(node, expression) { - return node.expression !== expression ? update(createVoidExpression(expression), node) : node; - } - function createAwaitExpression(expression) { - const node = createBaseNode(223 /* AwaitExpression */); - node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); - node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; - return node; - } - function updateAwaitExpression(node, expression) { - return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; - } - function createPrefixUnaryExpression(operator, operand) { - const node = createBaseNode(224 /* PrefixUnaryExpression */); - node.operator = operator; - node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); - node.transformFlags |= propagateChildFlags(node.operand); - if ((operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) { - node.transformFlags |= 268435456 /* ContainsUpdateExpressionForIdentifier */; - } - return node; - } - function updatePrefixUnaryExpression(node, operand) { - return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; - } - function createPostfixUnaryExpression(operand, operator) { - const node = createBaseNode(225 /* PostfixUnaryExpression */); - node.operator = operator; - node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); - node.transformFlags |= propagateChildFlags(node.operand); - if (isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) { - node.transformFlags |= 268435456 /* ContainsUpdateExpressionForIdentifier */; - } - return node; - } - function updatePostfixUnaryExpression(node, operand) { - return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; - } - function createBinaryExpression(left, operator, right) { - const node = createBaseDeclaration(226 /* BinaryExpression */); - const operatorToken = asToken(operator); - const operatorKind = operatorToken.kind; - node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); - node.operatorToken = operatorToken; - node.right = parenthesizerRules().parenthesizeRightSideOfBinary(operatorKind, node.left, right); - node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.operatorToken) | propagateChildFlags(node.right); - if (operatorKind === 61 /* QuestionQuestionToken */) { - node.transformFlags |= 32 /* ContainsES2020 */; - } else if (operatorKind === 64 /* EqualsToken */) { - if (isObjectLiteralExpression(node.left)) { - node.transformFlags |= 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 4096 /* ContainsDestructuringAssignment */ | propagateAssignmentPatternFlags(node.left); - } else if (isArrayLiteralExpression(node.left)) { - node.transformFlags |= 1024 /* ContainsES2015 */ | 4096 /* ContainsDestructuringAssignment */ | propagateAssignmentPatternFlags(node.left); - } - } else if (operatorKind === 43 /* AsteriskAsteriskToken */ || operatorKind === 68 /* AsteriskAsteriskEqualsToken */) { - node.transformFlags |= 512 /* ContainsES2016 */; - } else if (isLogicalOrCoalescingAssignmentOperator(operatorKind)) { - node.transformFlags |= 16 /* ContainsES2021 */; - } - if (operatorKind === 103 /* InKeyword */ && isPrivateIdentifier(node.left)) { - node.transformFlags |= 536870912 /* ContainsPrivateIdentifierInExpression */; - } - node.jsDoc = void 0; - return node; - } - function propagateAssignmentPatternFlags(node) { - return containsObjectRestOrSpread(node) ? 65536 /* ContainsObjectRestOrSpread */ : 0 /* None */; - } - function updateBinaryExpression(node, left, operator, right) { - return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; - } - function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { - const node = createBaseNode(227 /* ConditionalExpression */); - node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); - node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); - node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); - node.colonToken = colonToken ?? createToken(59 /* ColonToken */); - node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse); - node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse); - node.flowNodeWhenFalse = void 0; - node.flowNodeWhenTrue = void 0; - return node; - } - function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) { - return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; - } - function createTemplateExpression(head, templateSpans) { - const node = createBaseNode(228 /* TemplateExpression */); - node.head = head; - node.templateSpans = createNodeArray(templateSpans); - node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; - return node; - } - function updateTemplateExpression(node, head, templateSpans) { - return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node; - } - function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0 /* None */) { - Debug.assert(!(templateFlags & ~7176 /* TemplateLiteralLikeFlags */), "Unsupported template flags."); - let cooked = void 0; - if (rawText !== void 0 && rawText !== text) { - cooked = getCookedText(kind, rawText); - if (typeof cooked === "object") { - return Debug.fail("Invalid raw text"); - } - } - if (text === void 0) { - if (cooked === void 0) { - return Debug.fail("Arguments 'text' and 'rawText' may not both be undefined."); - } - text = cooked; - } else if (cooked !== void 0) { - Debug.assert(text === cooked, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."); - } - return text; - } - function getTransformFlagsOfTemplateLiteralLike(templateFlags) { - let transformFlags = 1024 /* ContainsES2015 */; - if (templateFlags) { - transformFlags |= 128 /* ContainsES2018 */; - } - return transformFlags; - } - function createTemplateLiteralLikeToken(kind, text, rawText, templateFlags) { - const node = createBaseToken(kind); - node.text = text; - node.rawText = rawText; - node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */; - node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags); - return node; - } - function createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags) { - const node = createBaseDeclaration(kind); - node.text = text; - node.rawText = rawText; - node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */; - node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags); - return node; - } - function createTemplateLiteralLikeNode(kind, text, rawText, templateFlags) { - if (kind === 15 /* NoSubstitutionTemplateLiteral */) { - return createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags); - } - return createTemplateLiteralLikeToken(kind, text, rawText, templateFlags); - } - function createTemplateHead(text, rawText, templateFlags) { - text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); - return createTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); - } - function createTemplateMiddle(text, rawText, templateFlags) { - text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); - return createTemplateLiteralLikeNode(17 /* TemplateMiddle */, text, rawText, templateFlags); - } - function createTemplateTail(text, rawText, templateFlags) { - text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); - return createTemplateLiteralLikeNode(18 /* TemplateTail */, text, rawText, templateFlags); - } - function createNoSubstitutionTemplateLiteral(text, rawText, templateFlags) { - text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); - return createTemplateLiteralLikeDeclaration(15 /* NoSubstitutionTemplateLiteral */, text, rawText, templateFlags); - } - function createYieldExpression(asteriskToken, expression) { - Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); - const node = createBaseNode(229 /* YieldExpression */); - node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.asteriskToken = asteriskToken; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; - return node; - } - function updateYieldExpression(node, asteriskToken, expression) { - return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; - } - function createSpreadElement(expression) { - const node = createBaseNode(230 /* SpreadElement */); - node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; - return node; - } - function updateSpreadElement(node, expression) { - return node.expression !== expression ? update(createSpreadElement(expression), node) : node; - } - function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(231 /* ClassExpression */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.heritageClauses = asNodeArray(heritageClauses); - node.members = createNodeArray(members); - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; - node.jsDoc = void 0; - return node; - } - function updateClassExpression(node, modifiers, name, typeParameters, heritageClauses, members) { - return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; - } - function createOmittedExpression() { - return createBaseNode(232 /* OmittedExpression */); - } - function createExpressionWithTypeArguments(expression, typeArguments) { - const node = createBaseNode(233 /* ExpressionWithTypeArguments */); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ); - node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | 1024 /* ContainsES2015 */; - return node; - } - function updateExpressionWithTypeArguments(node, expression, typeArguments) { - return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; - } - function createAsExpression(expression, type) { - const node = createBaseNode(234 /* AsExpression */); - node.expression = expression; - node.type = type; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; - return node; - } - function updateAsExpression(node, expression, type) { - return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; - } - function createNonNullExpression(expression) { - const node = createBaseNode(235 /* NonNullExpression */); - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ); - node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; - return node; - } - function updateNonNullExpression(node, expression) { - if (isNonNullChain(node)) { - return updateNonNullChain(node, expression); - } - return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; - } - function createSatisfiesExpression(expression, type) { - const node = createBaseNode(238 /* SatisfiesExpression */); - node.expression = expression; - node.type = type; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; - return node; - } - function updateSatisfiesExpression(node, expression, type) { - return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; - } - function createNonNullChain(expression) { - const node = createBaseNode(235 /* NonNullExpression */); - node.flags |= 64 /* OptionalChain */; - node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - true - ); - node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; - return node; - } - function updateNonNullChain(node, expression) { - Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); - return node.expression !== expression ? update(createNonNullChain(expression), node) : node; - } - function createMetaProperty(keywordToken, name) { - const node = createBaseNode(236 /* MetaProperty */); - node.keywordToken = keywordToken; - node.name = name; - node.transformFlags |= propagateChildFlags(node.name); - switch (keywordToken) { - case 105 /* NewKeyword */: - node.transformFlags |= 1024 /* ContainsES2015 */; - break; - case 102 /* ImportKeyword */: - node.transformFlags |= 32 /* ContainsES2020 */; - break; - default: - return Debug.assertNever(keywordToken); - } - node.flowNode = void 0; - return node; - } - function updateMetaProperty(node, name) { - return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; - } - function createTemplateSpan(expression, literal) { - const node = createBaseNode(239 /* TemplateSpan */); - node.expression = expression; - node.literal = literal; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; - return node; - } - function updateTemplateSpan(node, expression, literal) { - return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; - } - function createSemicolonClassElement() { - const node = createBaseNode(240 /* SemicolonClassElement */); - node.transformFlags |= 1024 /* ContainsES2015 */; - return node; - } - function createBlock(statements, multiLine) { - const node = createBaseNode(241 /* Block */); - node.statements = createNodeArray(statements); - node.multiLine = multiLine; - node.transformFlags |= propagateChildrenFlags(node.statements); - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateBlock(node, statements) { - return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; - } - function createVariableStatement(modifiers, declarationList) { - const node = createBaseNode(243 /* VariableStatement */); - node.modifiers = asNodeArray(modifiers); - node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); - if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { - node.transformFlags = 1 /* ContainsTypeScript */; - } - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateVariableStatement(node, modifiers, declarationList) { - return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; - } - function createEmptyStatement() { - const node = createBaseNode(242 /* EmptyStatement */); - node.jsDoc = void 0; - return node; - } - function createExpressionStatement(expression) { - const node = createBaseNode(244 /* ExpressionStatement */); - node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); - node.transformFlags |= propagateChildFlags(node.expression); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateExpressionStatement(node, expression) { - return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; - } - function createIfStatement(expression, thenStatement, elseStatement) { - const node = createBaseNode(245 /* IfStatement */); - node.expression = expression; - node.thenStatement = asEmbeddedStatement(thenStatement); - node.elseStatement = asEmbeddedStatement(elseStatement); - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thenStatement) | propagateChildFlags(node.elseStatement); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateIfStatement(node, expression, thenStatement, elseStatement) { - return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; - } - function createDoStatement(statement, expression) { - const node = createBaseNode(246 /* DoStatement */); - node.statement = asEmbeddedStatement(statement); - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateDoStatement(node, statement, expression) { - return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; - } - function createWhileStatement(expression, statement) { - const node = createBaseNode(247 /* WhileStatement */); - node.expression = expression; - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateWhileStatement(node, expression, statement) { - return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; - } - function createForStatement(initializer, condition, incrementor, statement) { - const node = createBaseNode(248 /* ForStatement */); - node.initializer = initializer; - node.condition = condition; - node.incrementor = incrementor; - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.condition) | propagateChildFlags(node.incrementor) | propagateChildFlags(node.statement); - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - return node; - } - function updateForStatement(node, initializer, condition, incrementor, statement) { - return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; - } - function createForInStatement(initializer, expression, statement) { - const node = createBaseNode(249 /* ForInStatement */); - node.initializer = initializer; - node.expression = expression; - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement); - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - return node; - } - function updateForInStatement(node, initializer, expression, statement) { - return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; - } - function createForOfStatement(awaitModifier, initializer, expression, statement) { - const node = createBaseNode(250 /* ForOfStatement */); - node.awaitModifier = awaitModifier; - node.initializer = initializer; - node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.awaitModifier) | propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement) | 1024 /* ContainsES2015 */; - if (awaitModifier) node.transformFlags |= 128 /* ContainsES2018 */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.flowNode = void 0; - return node; - } - function updateForOfStatement(node, awaitModifier, initializer, expression, statement) { - return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; - } - function createContinueStatement(label) { - const node = createBaseNode(251 /* ContinueStatement */); - node.label = asName(label); - node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateContinueStatement(node, label) { - return node.label !== label ? update(createContinueStatement(label), node) : node; - } - function createBreakStatement(label) { - const node = createBaseNode(252 /* BreakStatement */); - node.label = asName(label); - node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateBreakStatement(node, label) { - return node.label !== label ? update(createBreakStatement(label), node) : node; - } - function createReturnStatement(expression) { - const node = createBaseNode(253 /* ReturnStatement */); - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateReturnStatement(node, expression) { - return node.expression !== expression ? update(createReturnStatement(expression), node) : node; - } - function createWithStatement(expression, statement) { - const node = createBaseNode(254 /* WithStatement */); - node.expression = expression; - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateWithStatement(node, expression, statement) { - return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; - } - function createSwitchStatement(expression, caseBlock) { - const node = createBaseNode(255 /* SwitchStatement */); - node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.caseBlock = caseBlock; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); - node.jsDoc = void 0; - node.flowNode = void 0; - node.possiblyExhaustive = false; - return node; - } - function updateSwitchStatement(node, expression, caseBlock) { - return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; - } - function createLabeledStatement(label, statement) { - const node = createBaseNode(256 /* LabeledStatement */); - node.label = asName(label); - node.statement = asEmbeddedStatement(statement); - node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateLabeledStatement(node, label, statement) { - return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; - } - function createThrowStatement(expression) { - const node = createBaseNode(257 /* ThrowStatement */); - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.expression); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateThrowStatement(node, expression) { - return node.expression !== expression ? update(createThrowStatement(expression), node) : node; - } - function createTryStatement(tryBlock, catchClause, finallyBlock) { - const node = createBaseNode(258 /* TryStatement */); - node.tryBlock = tryBlock; - node.catchClause = catchClause; - node.finallyBlock = finallyBlock; - node.transformFlags |= propagateChildFlags(node.tryBlock) | propagateChildFlags(node.catchClause) | propagateChildFlags(node.finallyBlock); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function updateTryStatement(node, tryBlock, catchClause, finallyBlock) { - return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; - } - function createDebuggerStatement() { - const node = createBaseNode(259 /* DebuggerStatement */); - node.jsDoc = void 0; - node.flowNode = void 0; - return node; - } - function createVariableDeclaration(name, exclamationToken, type, initializer) { - const node = createBaseDeclaration(260 /* VariableDeclaration */); - node.name = asName(name); - node.exclamationToken = exclamationToken; - node.type = type; - node.initializer = asInitializer(initializer); - node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.exclamationToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); - node.jsDoc = void 0; - return node; - } - function updateVariableDeclaration(node, name, exclamationToken, type, initializer) { - return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; - } - function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { - const node = createBaseNode(261 /* VariableDeclarationList */); - node.flags |= flags2 & 7 /* BlockScoped */; - node.declarations = createNodeArray(declarations); - node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - if (flags2 & 7 /* BlockScoped */) { - node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; - } - if (flags2 & 4 /* Using */) { - node.transformFlags |= 4 /* ContainsESNext */; - } - return node; - } - function updateVariableDeclarationList(node, declarations) { - return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; - } - function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - const node = createBaseDeclaration(262 /* FunctionDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.asteriskToken = asteriskToken; - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = createNodeArray(parameters); - node.type = type; - node.body = body; - if (!node.body || modifiersToFlags(node.modifiers) & 128 /* Ambient */) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; - const isGenerator = !!node.asteriskToken; - const isAsyncGenerator = isAsync && isGenerator; - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; - } - node.typeArguments = void 0; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.endFlowNode = void 0; - node.returnFlowNode = void 0; - return node; - } - function updateFunctionDeclaration(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) { - return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateFunctionDeclaration(createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; - } - function finishUpdateFunctionDeclaration(updated, original) { - if (updated !== original) { - if (updated.modifiers === original.modifiers) { - updated.modifiers = original.modifiers; - } - } - return finishUpdateBaseSignatureDeclaration(updated, original); - } - function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(263 /* ClassDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.heritageClauses = asNodeArray(heritageClauses); - node.members = createNodeArray(members); - if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; - if (node.transformFlags & 8192 /* ContainsTypeScriptClassSyntax */) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - } - node.jsDoc = void 0; - return node; - } - function updateClassDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) { - return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; - } - function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { - const node = createBaseDeclaration(264 /* InterfaceDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.heritageClauses = asNodeArray(heritageClauses); - node.members = createNodeArray(members); - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - return node; - } - function updateInterfaceDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) { - return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; - } - function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { - const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.typeParameters = asNodeArray(typeParameters); - node.type = type; - node.transformFlags = 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateTypeAliasDeclaration(node, modifiers, name, typeParameters, type) { - return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; - } - function createEnumDeclaration(modifiers, name, members) { - const node = createBaseDeclaration(266 /* EnumDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.members = createNodeArray(members); - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildrenFlags(node.members) | 1 /* ContainsTypeScript */; - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateEnumDeclaration(node, modifiers, name, members) { - return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; - } - function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { - const node = createBaseDeclaration(267 /* ModuleDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); - node.name = name; - node.body = body; - if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildFlags(node.body) | 1 /* ContainsTypeScript */; - } - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateModuleDeclaration(node, modifiers, name, body) { - return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; - } - function createModuleBlock(statements) { - const node = createBaseNode(268 /* ModuleBlock */); - node.statements = createNodeArray(statements); - node.transformFlags |= propagateChildrenFlags(node.statements); - node.jsDoc = void 0; - return node; - } - function updateModuleBlock(node, statements) { - return node.statements !== statements ? update(createModuleBlock(statements), node) : node; - } - function createCaseBlock(clauses) { - const node = createBaseNode(269 /* CaseBlock */); - node.clauses = createNodeArray(clauses); - node.transformFlags |= propagateChildrenFlags(node.clauses); - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateCaseBlock(node, clauses) { - return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; - } - function createNamespaceExportDeclaration(name) { - const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); - node.name = asName(name); - node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; - node.modifiers = void 0; - node.jsDoc = void 0; - return node; - } - function updateNamespaceExportDeclaration(node, name) { - return node.name !== name ? finishUpdateNamespaceExportDeclaration(createNamespaceExportDeclaration(name), node) : node; - } - function finishUpdateNamespaceExportDeclaration(updated, original) { - if (updated !== original) { - updated.modifiers = original.modifiers; - } - return update(updated, original); - } - function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { - const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.name = asName(name); - node.isTypeOnly = isTypeOnly; - node.moduleReference = moduleReference; - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.moduleReference); - if (!isExternalModuleReference(node.moduleReference)) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateImportEqualsDeclaration(node, modifiers, isTypeOnly, name, moduleReference) { - return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; - } - function createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes) { - const node = createBaseNode(272 /* ImportDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.importClause = importClause; - node.moduleSpecifier = moduleSpecifier; - node.attributes = node.assertClause = attributes; - node.transformFlags |= propagateChildFlags(node.importClause) | propagateChildFlags(node.moduleSpecifier); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateImportDeclaration(node, modifiers, importClause, moduleSpecifier, attributes) { - return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes), node) : node; - } - function createImportClause(isTypeOnly, name, namedBindings) { - const node = createBaseDeclaration(273 /* ImportClause */); - node.isTypeOnly = isTypeOnly; - node.name = name; - node.namedBindings = namedBindings; - node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.namedBindings); - if (isTypeOnly) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateImportClause(node, isTypeOnly, name, namedBindings) { - return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; - } - function createAssertClause(elements, multiLine) { - const node = createBaseNode(300 /* AssertClause */); - node.elements = createNodeArray(elements); - node.multiLine = multiLine; - node.token = 132 /* AssertKeyword */; - node.transformFlags |= 4 /* ContainsESNext */; - return node; - } - function updateAssertClause(node, elements, multiLine) { - return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; - } - function createAssertEntry(name, value) { - const node = createBaseNode(301 /* AssertEntry */); - node.name = name; - node.value = value; - node.transformFlags |= 4 /* ContainsESNext */; - return node; - } - function updateAssertEntry(node, name, value) { - return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; - } - function createImportTypeAssertionContainer(clause, multiLine) { - const node = createBaseNode(302 /* ImportTypeAssertionContainer */); - node.assertClause = clause; - node.multiLine = multiLine; - return node; - } - function updateImportTypeAssertionContainer(node, clause, multiLine) { - return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; - } - function createImportAttributes(elements, multiLine, token) { - const node = createBaseNode(300 /* ImportAttributes */); - node.token = token ?? 118 /* WithKeyword */; - node.elements = createNodeArray(elements); - node.multiLine = multiLine; - node.transformFlags |= 4 /* ContainsESNext */; - return node; - } - function updateImportAttributes(node, elements, multiLine) { - return node.elements !== elements || node.multiLine !== multiLine ? update(createImportAttributes(elements, multiLine, node.token), node) : node; - } - function createImportAttribute(name, value) { - const node = createBaseNode(301 /* ImportAttribute */); - node.name = name; - node.value = value; - node.transformFlags |= 4 /* ContainsESNext */; - return node; - } - function updateImportAttribute(node, name, value) { - return node.name !== name || node.value !== value ? update(createImportAttribute(name, value), node) : node; - } - function createNamespaceImport(name) { - const node = createBaseDeclaration(274 /* NamespaceImport */); - node.name = name; - node.transformFlags |= propagateChildFlags(node.name); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateNamespaceImport(node, name) { - return node.name !== name ? update(createNamespaceImport(name), node) : node; - } - function createNamespaceExport(name) { - const node = createBaseDeclaration(280 /* NamespaceExport */); - node.name = name; - node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateNamespaceExport(node, name) { - return node.name !== name ? update(createNamespaceExport(name), node) : node; - } - function createNamedImports(elements) { - const node = createBaseNode(275 /* NamedImports */); - node.elements = createNodeArray(elements); - node.transformFlags |= propagateChildrenFlags(node.elements); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateNamedImports(node, elements) { - return node.elements !== elements ? update(createNamedImports(elements), node) : node; - } - function createImportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseDeclaration(276 /* ImportSpecifier */); - node.isTypeOnly = isTypeOnly; - node.propertyName = propertyName; - node.name = name; - node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateImportSpecifier(node, isTypeOnly, propertyName, name) { - return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; - } - function createExportAssignment(modifiers, isExportEquals, expression) { - const node = createBaseDeclaration(277 /* ExportAssignment */); - node.modifiers = asNodeArray(modifiers); - node.isExportEquals = isExportEquals; - node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( - 64 /* EqualsToken */, - /*leftSide*/ - void 0, - expression - ) : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression); - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateExportAssignment(node, modifiers, expression) { - return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment(modifiers, node.isExportEquals, expression), node) : node; - } - function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes) { - const node = createBaseDeclaration(278 /* ExportDeclaration */); - node.modifiers = asNodeArray(modifiers); - node.isTypeOnly = isTypeOnly; - node.exportClause = exportClause; - node.moduleSpecifier = moduleSpecifier; - node.attributes = node.assertClause = attributes; - node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.exportClause) | propagateChildFlags(node.moduleSpecifier); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateExportDeclaration(node, modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes) { - return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.exportClause !== exportClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? finishUpdateExportDeclaration(createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes), node) : node; - } - function finishUpdateExportDeclaration(updated, original) { - if (updated !== original) { - if (updated.modifiers === original.modifiers) { - updated.modifiers = original.modifiers; - } - } - return update(updated, original); - } - function createNamedExports(elements) { - const node = createBaseNode(279 /* NamedExports */); - node.elements = createNodeArray(elements); - node.transformFlags |= propagateChildrenFlags(node.elements); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateNamedExports(node, elements) { - return node.elements !== elements ? update(createNamedExports(elements), node) : node; - } - function createExportSpecifier(isTypeOnly, propertyName, name) { - const node = createBaseNode(281 /* ExportSpecifier */); - node.isTypeOnly = isTypeOnly; - node.propertyName = asName(propertyName); - node.name = asName(name); - node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - node.jsDoc = void 0; - return node; - } - function updateExportSpecifier(node, isTypeOnly, propertyName, name) { - return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; - } - function createMissingDeclaration() { - const node = createBaseDeclaration(282 /* MissingDeclaration */); - node.jsDoc = void 0; - return node; - } - function createExternalModuleReference(expression) { - const node = createBaseNode(283 /* ExternalModuleReference */); - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.expression); - node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; - return node; - } - function updateExternalModuleReference(node, expression) { - return node.expression !== expression ? update(createExternalModuleReference(expression), node) : node; - } - function createJSDocPrimaryTypeWorker(kind) { - return createBaseNode(kind); - } - function createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix = false) { - const node = createJSDocUnaryTypeWorker( - kind, - postfix ? type && parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(type) : type - ); - node.postfix = postfix; - return node; - } - function createJSDocUnaryTypeWorker(kind, type) { - const node = createBaseNode(kind); - node.type = type; - return node; - } - function updateJSDocPrePostfixUnaryTypeWorker(kind, node, type) { - return node.type !== type ? update(createJSDocPrePostfixUnaryTypeWorker(kind, type, node.postfix), node) : node; - } - function updateJSDocUnaryTypeWorker(kind, node, type) { - return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; - } - function createJSDocFunctionType(parameters, type) { - const node = createBaseDeclaration(317 /* JSDocFunctionType */); - node.parameters = asNodeArray(parameters); - node.type = type; - node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - node.typeArguments = void 0; - return node; - } - function updateJSDocFunctionType(node, parameters, type) { - return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; - } - function createJSDocTypeLiteral(propertyTags, isArrayType = false) { - const node = createBaseDeclaration(322 /* JSDocTypeLiteral */); - node.jsDocPropertyTags = asNodeArray(propertyTags); - node.isArrayType = isArrayType; - return node; - } - function updateJSDocTypeLiteral(node, propertyTags, isArrayType) { - return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; - } - function createJSDocTypeExpression(type) { - const node = createBaseNode(309 /* JSDocTypeExpression */); - node.type = type; - return node; - } - function updateJSDocTypeExpression(node, type) { - return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; - } - function createJSDocSignature(typeParameters, parameters, type) { - const node = createBaseDeclaration(323 /* JSDocSignature */); - node.typeParameters = asNodeArray(typeParameters); - node.parameters = createNodeArray(parameters); - node.type = type; - node.jsDoc = void 0; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateJSDocSignature(node, typeParameters, parameters, type) { - return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? update(createJSDocSignature(typeParameters, parameters, type), node) : node; - } - function getDefaultTagName(node) { - const defaultTagName = getDefaultTagNameForKind(node.kind); - return node.tagName.escapedText === escapeLeadingUnderscores(defaultTagName) ? node.tagName : createIdentifier(defaultTagName); - } - function createBaseJSDocTag(kind, tagName, comment) { - const node = createBaseNode(kind); - node.tagName = tagName; - node.comment = comment; - return node; - } - function createBaseJSDocTagDeclaration(kind, tagName, comment) { - const node = createBaseDeclaration(kind); - node.tagName = tagName; - node.comment = comment; - return node; - } - function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { - const node = createBaseJSDocTag(345 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); - node.constraint = constraint; - node.typeParameters = createNodeArray(typeParameters); - return node; - } - function updateJSDocTemplateTag(node, tagName = getDefaultTagName(node), constraint, typeParameters, comment) { - return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; - } - function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(346 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); - node.typeExpression = typeExpression; - node.fullName = fullName; - node.name = getJSDocTypeAliasName(fullName); - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateJSDocTypedefTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) { - return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; - } - function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(341 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); - node.typeExpression = typeExpression; - node.name = name; - node.isNameFirst = !!isNameFirst; - node.isBracketed = isBracketed; - return node; - } - function updateJSDocParameterTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) { - return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; - } - function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { - const node = createBaseJSDocTagDeclaration(348 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); - node.typeExpression = typeExpression; - node.name = name; - node.isNameFirst = !!isNameFirst; - node.isBracketed = isBracketed; - return node; - } - function updateJSDocPropertyTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) { - return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; - } - function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { - const node = createBaseJSDocTagDeclaration(338 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); - node.typeExpression = typeExpression; - node.fullName = fullName; - node.name = getJSDocTypeAliasName(fullName); - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateJSDocCallbackTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) { - return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; - } - function createJSDocOverloadTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTag(339 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); - node.typeExpression = typeExpression; - return node; - } - function updateJSDocOverloadTag(node, tagName = getDefaultTagName(node), typeExpression, comment) { - return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; - } - function createJSDocAugmentsTag(tagName, className, comment) { - const node = createBaseJSDocTag(328 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); - node.class = className; - return node; - } - function updateJSDocAugmentsTag(node, tagName = getDefaultTagName(node), className, comment) { - return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; - } - function createJSDocImplementsTag(tagName, className, comment) { - const node = createBaseJSDocTag(329 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); - node.class = className; - return node; - } - function createJSDocSeeTag(tagName, name, comment) { - const node = createBaseJSDocTag(347 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); - node.name = name; - return node; - } - function updateJSDocSeeTag(node, tagName, name, comment) { - return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; - } - function createJSDocNameReference(name) { - const node = createBaseNode(310 /* JSDocNameReference */); - node.name = name; - return node; - } - function updateJSDocNameReference(node, name) { - return node.name !== name ? update(createJSDocNameReference(name), node) : node; - } - function createJSDocMemberName(left, right) { - const node = createBaseNode(311 /* JSDocMemberName */); - node.left = left; - node.right = right; - node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); - return node; - } - function updateJSDocMemberName(node, left, right) { - return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; - } - function createJSDocLink(name, text) { - const node = createBaseNode(324 /* JSDocLink */); - node.name = name; - node.text = text; - return node; - } - function updateJSDocLink(node, name, text) { - return node.name !== name ? update(createJSDocLink(name, text), node) : node; - } - function createJSDocLinkCode(name, text) { - const node = createBaseNode(325 /* JSDocLinkCode */); - node.name = name; - node.text = text; - return node; - } - function updateJSDocLinkCode(node, name, text) { - return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; - } - function createJSDocLinkPlain(name, text) { - const node = createBaseNode(326 /* JSDocLinkPlain */); - node.name = name; - node.text = text; - return node; - } - function updateJSDocLinkPlain(node, name, text) { - return node.name !== name ? update(createJSDocLinkPlain(name, text), node) : node; - } - function updateJSDocImplementsTag(node, tagName = getDefaultTagName(node), className, comment) { - return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocImplementsTag(tagName, className, comment), node) : node; - } - function createJSDocSimpleTagWorker(kind, tagName, comment) { - const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); - return node; - } - function updateJSDocSimpleTagWorker(kind, node, tagName = getDefaultTagName(node), comment) { - return node.tagName !== tagName || node.comment !== comment ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) : node; - } - function createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment) { - const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); - node.typeExpression = typeExpression; - return node; - } - function updateJSDocTypeLikeTagWorker(kind, node, tagName = getDefaultTagName(node), typeExpression, comment) { - return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; - } - function createJSDocUnknownTag(tagName, comment) { - const node = createBaseJSDocTag(327 /* JSDocTag */, tagName, comment); - return node; - } - function updateJSDocUnknownTag(node, tagName, comment) { - return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; - } - function createJSDocEnumTag(tagName, typeExpression, comment) { - const node = createBaseJSDocTagDeclaration(340 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(340 /* JSDocEnumTag */)), comment); - node.typeExpression = typeExpression; - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) { - return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; - } - function createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment) { - const node = createBaseJSDocTag(351 /* JSDocImportTag */, tagName ?? createIdentifier("import"), comment); - node.importClause = importClause; - node.moduleSpecifier = moduleSpecifier; - node.attributes = attributes; - node.comment = comment; - return node; - } - function updateJSDocImportTag(node, tagName, importClause, moduleSpecifier, attributes, comment) { - return node.tagName !== tagName || node.comment !== comment || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? update(createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment), node) : node; - } - function createJSDocText(text) { - const node = createBaseNode(321 /* JSDocText */); - node.text = text; - return node; - } - function updateJSDocText(node, text) { - return node.text !== text ? update(createJSDocText(text), node) : node; - } - function createJSDocComment(comment, tags) { - const node = createBaseNode(320 /* JSDoc */); - node.comment = comment; - node.tags = asNodeArray(tags); - return node; - } - function updateJSDocComment(node, comment, tags) { - return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; - } - function createJsxElement(openingElement, children, closingElement) { - const node = createBaseNode(284 /* JsxElement */); - node.openingElement = openingElement; - node.children = createNodeArray(children); - node.closingElement = closingElement; - node.transformFlags |= propagateChildFlags(node.openingElement) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingElement) | 2 /* ContainsJsx */; - return node; - } - function updateJsxElement(node, openingElement, children, closingElement) { - return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; - } - function createJsxSelfClosingElement(tagName, typeArguments, attributes) { - const node = createBaseNode(285 /* JsxSelfClosingElement */); - node.tagName = tagName; - node.typeArguments = asNodeArray(typeArguments); - node.attributes = attributes; - node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2 /* ContainsJsx */; - if (node.typeArguments) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - return node; - } - function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) { - return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; - } - function createJsxOpeningElement(tagName, typeArguments, attributes) { - const node = createBaseNode(286 /* JsxOpeningElement */); - node.tagName = tagName; - node.typeArguments = asNodeArray(typeArguments); - node.attributes = attributes; - node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2 /* ContainsJsx */; - if (typeArguments) { - node.transformFlags |= 1 /* ContainsTypeScript */; - } - return node; - } - function updateJsxOpeningElement(node, tagName, typeArguments, attributes) { - return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; - } - function createJsxClosingElement(tagName) { - const node = createBaseNode(287 /* JsxClosingElement */); - node.tagName = tagName; - node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; - return node; - } - function updateJsxClosingElement(node, tagName) { - return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; - } - function createJsxFragment(openingFragment, children, closingFragment) { - const node = createBaseNode(288 /* JsxFragment */); - node.openingFragment = openingFragment; - node.children = createNodeArray(children); - node.closingFragment = closingFragment; - node.transformFlags |= propagateChildFlags(node.openingFragment) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingFragment) | 2 /* ContainsJsx */; - return node; - } - function updateJsxFragment(node, openingFragment, children, closingFragment) { - return node.openingFragment !== openingFragment || node.children !== children || node.closingFragment !== closingFragment ? update(createJsxFragment(openingFragment, children, closingFragment), node) : node; - } - function createJsxText(text, containsOnlyTriviaWhiteSpaces) { - const node = createBaseNode(12 /* JsxText */); - node.text = text; - node.containsOnlyTriviaWhiteSpaces = !!containsOnlyTriviaWhiteSpaces; - node.transformFlags |= 2 /* ContainsJsx */; - return node; - } - function updateJsxText(node, text, containsOnlyTriviaWhiteSpaces) { - return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; - } - function createJsxOpeningFragment() { - const node = createBaseNode(289 /* JsxOpeningFragment */); - node.transformFlags |= 2 /* ContainsJsx */; - return node; - } - function createJsxJsxClosingFragment() { - const node = createBaseNode(290 /* JsxClosingFragment */); - node.transformFlags |= 2 /* ContainsJsx */; - return node; - } - function createJsxAttribute(name, initializer) { - const node = createBaseDeclaration(291 /* JsxAttribute */); - node.name = name; - node.initializer = initializer; - node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; - return node; - } - function updateJsxAttribute(node, name, initializer) { - return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; - } - function createJsxAttributes(properties) { - const node = createBaseDeclaration(292 /* JsxAttributes */); - node.properties = createNodeArray(properties); - node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; - return node; - } - function updateJsxAttributes(node, properties) { - return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; - } - function createJsxSpreadAttribute(expression) { - const node = createBaseNode(293 /* JsxSpreadAttribute */); - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; - return node; - } - function updateJsxSpreadAttribute(node, expression) { - return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; - } - function createJsxExpression(dotDotDotToken, expression) { - const node = createBaseNode(294 /* JsxExpression */); - node.dotDotDotToken = dotDotDotToken; - node.expression = expression; - node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; - return node; - } - function updateJsxExpression(node, expression) { - return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; - } - function createJsxNamespacedName(namespace, name) { - const node = createBaseNode(295 /* JsxNamespacedName */); - node.namespace = namespace; - node.name = name; - node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; - return node; - } - function updateJsxNamespacedName(node, namespace, name) { - return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; - } - function createCaseClause(expression, statements) { - const node = createBaseNode(296 /* CaseClause */); - node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.statements = createNodeArray(statements); - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); - node.jsDoc = void 0; - return node; - } - function updateCaseClause(node, expression, statements) { - return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; - } - function createDefaultClause(statements) { - const node = createBaseNode(297 /* DefaultClause */); - node.statements = createNodeArray(statements); - node.transformFlags = propagateChildrenFlags(node.statements); - return node; - } - function updateDefaultClause(node, statements) { - return node.statements !== statements ? update(createDefaultClause(statements), node) : node; - } - function createHeritageClause(token, types) { - const node = createBaseNode(298 /* HeritageClause */); - node.token = token; - node.types = createNodeArray(types); - node.transformFlags |= propagateChildrenFlags(node.types); - switch (token) { - case 96 /* ExtendsKeyword */: - node.transformFlags |= 1024 /* ContainsES2015 */; - break; - case 119 /* ImplementsKeyword */: - node.transformFlags |= 1 /* ContainsTypeScript */; - break; - default: - return Debug.assertNever(token); - } - return node; - } - function updateHeritageClause(node, types) { - return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; - } - function createCatchClause(variableDeclaration, block) { - const node = createBaseNode(299 /* CatchClause */); - node.variableDeclaration = asVariableDeclaration(variableDeclaration); - node.block = block; - node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); - node.locals = void 0; - node.nextContainer = void 0; - return node; - } - function updateCatchClause(node, variableDeclaration, block) { - return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; - } - function createPropertyAssignment(name, initializer) { - const node = createBaseDeclaration(303 /* PropertyAssignment */); - node.name = asName(name); - node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); - node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); - node.modifiers = void 0; - node.questionToken = void 0; - node.exclamationToken = void 0; - node.jsDoc = void 0; - return node; - } - function updatePropertyAssignment(node, name, initializer) { - return node.name !== name || node.initializer !== initializer ? finishUpdatePropertyAssignment(createPropertyAssignment(name, initializer), node) : node; - } - function finishUpdatePropertyAssignment(updated, original) { - if (updated !== original) { - updated.modifiers = original.modifiers; - updated.questionToken = original.questionToken; - updated.exclamationToken = original.exclamationToken; - } - return update(updated, original); - } - function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { - const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); - node.name = asName(name); - node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); - node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; - node.equalsToken = void 0; - node.modifiers = void 0; - node.questionToken = void 0; - node.exclamationToken = void 0; - node.jsDoc = void 0; - return node; - } - function updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer) { - return node.name !== name || node.objectAssignmentInitializer !== objectAssignmentInitializer ? finishUpdateShorthandPropertyAssignment(createShorthandPropertyAssignment(name, objectAssignmentInitializer), node) : node; - } - function finishUpdateShorthandPropertyAssignment(updated, original) { - if (updated !== original) { - updated.modifiers = original.modifiers; - updated.questionToken = original.questionToken; - updated.exclamationToken = original.exclamationToken; - updated.equalsToken = original.equalsToken; - } - return update(updated, original); - } - function createSpreadAssignment(expression) { - const node = createBaseDeclaration(305 /* SpreadAssignment */); - node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); - node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; - node.jsDoc = void 0; - return node; - } - function updateSpreadAssignment(node, expression) { - return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; - } - function createEnumMember(name, initializer) { - const node = createBaseDeclaration(306 /* EnumMember */); - node.name = asName(name); - node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); - node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; - node.jsDoc = void 0; - return node; - } - function updateEnumMember(node, name, initializer) { - return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; - } - function createSourceFile2(statements, endOfFileToken, flags2) { - const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */); - node.statements = createNodeArray(statements); - node.endOfFileToken = endOfFileToken; - node.flags |= flags2; - node.text = ""; - node.fileName = ""; - node.path = ""; - node.resolvedPath = ""; - node.originalFileName = ""; - node.languageVersion = 1 /* ES5 */; - node.languageVariant = 0; - node.scriptKind = 0; - node.isDeclarationFile = false; - node.hasNoDefaultLib = false; - node.transformFlags |= propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken); - node.locals = void 0; - node.nextContainer = void 0; - node.endFlowNode = void 0; - node.nodeCount = 0; - node.identifierCount = 0; - node.symbolCount = 0; - node.parseDiagnostics = void 0; - node.bindDiagnostics = void 0; - node.bindSuggestionDiagnostics = void 0; - node.lineMap = void 0; - node.externalModuleIndicator = void 0; - node.setExternalModuleIndicator = void 0; - node.pragmas = void 0; - node.checkJsDirective = void 0; - node.referencedFiles = void 0; - node.typeReferenceDirectives = void 0; - node.libReferenceDirectives = void 0; - node.amdDependencies = void 0; - node.commentDirectives = void 0; - node.identifiers = void 0; - node.packageJsonLocations = void 0; - node.packageJsonScope = void 0; - node.imports = void 0; - node.moduleAugmentations = void 0; - node.ambientModuleNames = void 0; - node.classifiableNames = void 0; - node.impliedNodeFormat = void 0; - return node; - } - function createRedirectedSourceFile(redirectInfo) { - const node = Object.create(redirectInfo.redirectTarget); - Object.defineProperties(node, { - id: { - get() { - return this.redirectInfo.redirectTarget.id; - }, - set(value) { - this.redirectInfo.redirectTarget.id = value; - } - }, - symbol: { - get() { - return this.redirectInfo.redirectTarget.symbol; - }, - set(value) { - this.redirectInfo.redirectTarget.symbol = value; - } - } - }); - node.redirectInfo = redirectInfo; - return node; - } - function cloneRedirectedSourceFile(source) { - const node = createRedirectedSourceFile(source.redirectInfo); - node.flags |= source.flags & ~16 /* Synthesized */; - node.fileName = source.fileName; - node.path = source.path; - node.resolvedPath = source.resolvedPath; - node.originalFileName = source.originalFileName; - node.packageJsonLocations = source.packageJsonLocations; - node.packageJsonScope = source.packageJsonScope; - node.emitNode = void 0; - return node; - } - function cloneSourceFileWorker(source) { - const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */); - node.flags |= source.flags & ~16 /* Synthesized */; - for (const p in source) { - if (hasProperty(node, p) || !hasProperty(source, p)) { - continue; - } - if (p === "emitNode") { - node.emitNode = void 0; - continue; - } - node[p] = source[p]; - } - return node; - } - function cloneSourceFile(source) { - const node = source.redirectInfo ? cloneRedirectedSourceFile(source) : cloneSourceFileWorker(source); - setOriginal(node, source); - return node; - } - function cloneSourceFileWithChanges(source, statements, isDeclarationFile, referencedFiles, typeReferences, hasNoDefaultLib, libReferences) { - const node = cloneSourceFile(source); - node.statements = createNodeArray(statements); - node.isDeclarationFile = isDeclarationFile; - node.referencedFiles = referencedFiles; - node.typeReferenceDirectives = typeReferences; - node.hasNoDefaultLib = hasNoDefaultLib; - node.libReferenceDirectives = libReferences; - node.transformFlags = propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken); - return node; - } - function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, hasNoDefaultLib = node.hasNoDefaultLib, libReferenceDirectives = node.libReferenceDirectives) { - return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; - } - function createBundle(sourceFiles) { - const node = createBaseNode(308 /* Bundle */); - node.sourceFiles = sourceFiles; - node.syntheticFileReferences = void 0; - node.syntheticTypeReferences = void 0; - node.syntheticLibReferences = void 0; - node.hasNoDefaultLib = void 0; - return node; - } - function updateBundle(node, sourceFiles) { - return node.sourceFiles !== sourceFiles ? update(createBundle(sourceFiles), node) : node; - } - function createSyntheticExpression(type, isSpread = false, tupleNameSource) { - const node = createBaseNode(237 /* SyntheticExpression */); - node.type = type; - node.isSpread = isSpread; - node.tupleNameSource = tupleNameSource; - return node; - } - function createSyntaxList(children) { - const node = createBaseNode(352 /* SyntaxList */); - node._children = children; - return node; - } - function createNotEmittedStatement(original) { - const node = createBaseNode(353 /* NotEmittedStatement */); - node.original = original; - setTextRange(node, original); - return node; - } - function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(355 /* PartiallyEmittedExpression */); - node.expression = expression; - node.original = original; - node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; - setTextRange(node, original); - return node; - } - function updatePartiallyEmittedExpression(node, expression) { - return node.expression !== expression ? update(createPartiallyEmittedExpression(expression, node.original), node) : node; - } - function createNotEmittedTypeElement() { - return createBaseNode(354 /* NotEmittedTypeElement */); - } - function flattenCommaElements(node) { - if (nodeIsSynthesized(node) && !isParseTreeNode(node) && !node.original && !node.emitNode && !node.id) { - if (isCommaListExpression(node)) { - return node.elements; - } - if (isBinaryExpression(node) && isCommaToken(node.operatorToken)) { - return [node.left, node.right]; - } - } - return node; - } - function createCommaListExpression(elements) { - const node = createBaseNode(356 /* CommaListExpression */); - node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); - node.transformFlags |= propagateChildrenFlags(node.elements); - return node; - } - function updateCommaListExpression(node, elements) { - return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; - } - function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(357 /* SyntheticReferenceExpression */); - node.expression = expression; - node.thisArg = thisArg; - node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); - return node; - } - function updateSyntheticReferenceExpression(node, expression, thisArg) { - return node.expression !== expression || node.thisArg !== thisArg ? update(createSyntheticReferenceExpression(expression, thisArg), node) : node; - } - function cloneGeneratedIdentifier(node) { - const clone = createBaseIdentifier(node.escapedText); - clone.flags |= node.flags & ~16 /* Synthesized */; - clone.transformFlags = node.transformFlags; - setOriginal(clone, node); - setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate }); - return clone; - } - function cloneIdentifier(node) { - const clone = createBaseIdentifier(node.escapedText); - clone.flags |= node.flags & ~16 /* Synthesized */; - clone.jsDoc = node.jsDoc; - clone.flowNode = node.flowNode; - clone.symbol = node.symbol; - clone.transformFlags = node.transformFlags; - setOriginal(clone, node); - const typeArguments = getIdentifierTypeArguments(node); - if (typeArguments) setIdentifierTypeArguments(clone, typeArguments); - return clone; - } - function cloneGeneratedPrivateIdentifier(node) { - const clone = createBasePrivateIdentifier(node.escapedText); - clone.flags |= node.flags & ~16 /* Synthesized */; - clone.transformFlags = node.transformFlags; - setOriginal(clone, node); - setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate }); - return clone; - } - function clonePrivateIdentifier(node) { - const clone = createBasePrivateIdentifier(node.escapedText); - clone.flags |= node.flags & ~16 /* Synthesized */; - clone.transformFlags = node.transformFlags; - setOriginal(clone, node); - return clone; - } - function cloneNode(node) { - if (node === void 0) { - return node; - } - if (isSourceFile(node)) { - return cloneSourceFile(node); - } - if (isGeneratedIdentifier(node)) { - return cloneGeneratedIdentifier(node); - } - if (isIdentifier(node)) { - return cloneIdentifier(node); - } - if (isGeneratedPrivateIdentifier(node)) { - return cloneGeneratedPrivateIdentifier(node); - } - if (isPrivateIdentifier(node)) { - return clonePrivateIdentifier(node); - } - const clone = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); - clone.flags |= node.flags & ~16 /* Synthesized */; - clone.transformFlags = node.transformFlags; - setOriginal(clone, node); - for (const key in node) { - if (hasProperty(clone, key) || !hasProperty(node, key)) { - continue; - } - clone[key] = node[key]; - } - return clone; - } - function createImmediatelyInvokedFunctionExpression(statements, param, paramValue) { - return createCallExpression( - createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - param ? [param] : [], - /*type*/ - void 0, - createBlock( - statements, - /*multiLine*/ - true - ) - ), - /*typeArguments*/ - void 0, - /*argumentsArray*/ - paramValue ? [paramValue] : [] - ); - } - function createImmediatelyInvokedArrowFunction(statements, param, paramValue) { - return createCallExpression( - createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - param ? [param] : [], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - createBlock( - statements, - /*multiLine*/ - true - ) - ), - /*typeArguments*/ - void 0, - /*argumentsArray*/ - paramValue ? [paramValue] : [] - ); - } - function createVoidZero() { - return createVoidExpression(createNumericLiteral("0")); - } - function createExportDefault(expression) { - return createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - expression - ); - } - function createExternalModuleExport(exportName) { - return createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - createNamedExports([ - createExportSpecifier( - /*isTypeOnly*/ - false, - /*propertyName*/ - void 0, - exportName - ) - ]) - ); - } - function createTypeCheck(value, tag) { - return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); - } - function createIsNotTypeCheck(value, tag) { - return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); - } - function createMethodCall(object, methodName, argumentsList) { - if (isCallChain(object)) { - return createCallChain( - createPropertyAccessChain( - object, - /*questionDotToken*/ - void 0, - methodName - ), - /*questionDotToken*/ - void 0, - /*typeArguments*/ - void 0, - argumentsList - ); - } - return createCallExpression( - createPropertyAccessExpression(object, methodName), - /*typeArguments*/ - void 0, - argumentsList - ); - } - function createFunctionBindCall(target, thisArg, argumentsList) { - return createMethodCall(target, "bind", [thisArg, ...argumentsList]); - } - function createFunctionCallCall(target, thisArg, argumentsList) { - return createMethodCall(target, "call", [thisArg, ...argumentsList]); - } - function createFunctionApplyCall(target, thisArg, argumentsExpression) { - return createMethodCall(target, "apply", [thisArg, argumentsExpression]); - } - function createGlobalMethodCall(globalObjectName, methodName, argumentsList) { - return createMethodCall(createIdentifier(globalObjectName), methodName, argumentsList); - } - function createArraySliceCall(array, start) { - return createMethodCall(array, "slice", start === void 0 ? [] : [asExpression(start)]); - } - function createArrayConcatCall(array, argumentsList) { - return createMethodCall(array, "concat", argumentsList); - } - function createObjectDefinePropertyCall(target, propertyName, attributes) { - return createGlobalMethodCall("Object", "defineProperty", [target, asExpression(propertyName), attributes]); - } - function createObjectGetOwnPropertyDescriptorCall(target, propertyName) { - return createGlobalMethodCall("Object", "getOwnPropertyDescriptor", [target, asExpression(propertyName)]); - } - function createReflectGetCall(target, propertyKey, receiver) { - return createGlobalMethodCall("Reflect", "get", receiver ? [target, propertyKey, receiver] : [target, propertyKey]); - } - function createReflectSetCall(target, propertyKey, value, receiver) { - return createGlobalMethodCall("Reflect", "set", receiver ? [target, propertyKey, value, receiver] : [target, propertyKey, value]); - } - function tryAddPropertyAssignment(properties, propertyName, expression) { - if (expression) { - properties.push(createPropertyAssignment(propertyName, expression)); - return true; - } - return false; - } - function createPropertyDescriptor(attributes, singleLine) { - const properties = []; - tryAddPropertyAssignment(properties, "enumerable", asExpression(attributes.enumerable)); - tryAddPropertyAssignment(properties, "configurable", asExpression(attributes.configurable)); - let isData = tryAddPropertyAssignment(properties, "writable", asExpression(attributes.writable)); - isData = tryAddPropertyAssignment(properties, "value", attributes.value) || isData; - let isAccessor2 = tryAddPropertyAssignment(properties, "get", attributes.get); - isAccessor2 = tryAddPropertyAssignment(properties, "set", attributes.set) || isAccessor2; - Debug.assert(!(isData && isAccessor2), "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."); - return createObjectLiteralExpression(properties, !singleLine); - } - function updateOuterExpression(outerExpression, expression) { - switch (outerExpression.kind) { - case 217 /* ParenthesizedExpression */: - return updateParenthesizedExpression(outerExpression, expression); - case 216 /* TypeAssertionExpression */: - return updateTypeAssertion(outerExpression, outerExpression.type, expression); - case 234 /* AsExpression */: - return updateAsExpression(outerExpression, expression, outerExpression.type); - case 238 /* SatisfiesExpression */: - return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); - case 235 /* NonNullExpression */: - return updateNonNullExpression(outerExpression, expression); - case 233 /* ExpressionWithTypeArguments */: - return updateExpressionWithTypeArguments(outerExpression, expression, outerExpression.typeArguments); - case 355 /* PartiallyEmittedExpression */: - return updatePartiallyEmittedExpression(outerExpression, expression); - } - } - function isIgnorableParen(node) { - return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node)); - } - function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63 /* All */) { - if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) { - return updateOuterExpression( - outerExpression, - restoreOuterExpressions(outerExpression.expression, innerExpression) - ); - } - return innerExpression; - } - function restoreEnclosingLabel(node, outermostLabeledStatement, afterRestoreLabelCallback) { - if (!outermostLabeledStatement) { - return node; - } - const updated = updateLabeledStatement( - outermostLabeledStatement, - outermostLabeledStatement.label, - isLabeledStatement(outermostLabeledStatement.statement) ? restoreEnclosingLabel(node, outermostLabeledStatement.statement) : node - ); - if (afterRestoreLabelCallback) { - afterRestoreLabelCallback(outermostLabeledStatement); - } - return updated; - } - function shouldBeCapturedInTempVariable(node, cacheIdentifiers) { - const target = skipParentheses(node); - switch (target.kind) { - case 80 /* Identifier */: - return cacheIdentifiers; - case 110 /* ThisKeyword */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - return false; - case 209 /* ArrayLiteralExpression */: - const elements = target.elements; - if (elements.length === 0) { - return false; - } - return true; - case 210 /* ObjectLiteralExpression */: - return target.properties.length > 0; - default: - return true; - } - } - function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) { - const callee = skipOuterExpressions(expression, 63 /* All */); - let thisArg; - let target; - if (isSuperProperty(callee)) { - thisArg = createThis(); - target = callee; - } else if (isSuperKeyword(callee)) { - thisArg = createThis(); - target = languageVersion !== void 0 && languageVersion < 2 /* ES2015 */ ? setTextRange(createIdentifier("_super"), callee) : callee; - } else if (getEmitFlags(callee) & 8192 /* HelperName */) { - thisArg = createVoidZero(); - target = parenthesizerRules().parenthesizeLeftSideOfAccess( - callee, - /*optionalChain*/ - false - ); - } else if (isPropertyAccessExpression(callee)) { - if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) { - thisArg = createTempVariable(recordTempVariable); - target = createPropertyAccessExpression( - setTextRange( - factory2.createAssignment( - thisArg, - callee.expression - ), - callee.expression - ), - callee.name - ); - setTextRange(target, callee); - } else { - thisArg = callee.expression; - target = callee; - } - } else if (isElementAccessExpression(callee)) { - if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) { - thisArg = createTempVariable(recordTempVariable); - target = createElementAccessExpression( - setTextRange( - factory2.createAssignment( - thisArg, - callee.expression - ), - callee.expression - ), - callee.argumentExpression - ); - setTextRange(target, callee); - } else { - thisArg = callee.expression; - target = callee; - } - } else { - thisArg = createVoidZero(); - target = parenthesizerRules().parenthesizeLeftSideOfAccess( - expression, - /*optionalChain*/ - false - ); - } - return { target, thisArg }; - } - function createAssignmentTargetWrapper(paramName, expression) { - return createPropertyAccessExpression( - // Explicit parens required because of v8 regression (https://bugs.chromium.org/p/v8/issues/detail?id=9560) - createParenthesizedExpression( - createObjectLiteralExpression([ - createSetAccessorDeclaration( - /*modifiers*/ - void 0, - "value", - [createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - paramName, - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - )], - createBlock([ - createExpressionStatement(expression) - ]) - ) - ]) - ), - "value" - ); - } - function inlineExpressions(expressions) { - return expressions.length > 10 ? createCommaListExpression(expressions) : reduceLeft(expressions, factory2.createComma); - } - function getName(node, allowComments, allowSourceMaps, emitFlags = 0, ignoreAssignedName) { - const nodeName = ignoreAssignedName ? node && getNonAssignedNameOfDeclaration(node) : getNameOfDeclaration(node); - if (nodeName && isIdentifier(nodeName) && !isGeneratedIdentifier(nodeName)) { - const name = setParent(setTextRange(cloneNode(nodeName), nodeName), nodeName.parent); - emitFlags |= getEmitFlags(nodeName); - if (!allowSourceMaps) emitFlags |= 96 /* NoSourceMap */; - if (!allowComments) emitFlags |= 3072 /* NoComments */; - if (emitFlags) setEmitFlags(name, emitFlags); - return name; - } - return getGeneratedNameForNode(node); - } - function getInternalName(node, allowComments, allowSourceMaps) { - return getName(node, allowComments, allowSourceMaps, 32768 /* LocalName */ | 65536 /* InternalName */); - } - function getLocalName(node, allowComments, allowSourceMaps, ignoreAssignedName) { - return getName(node, allowComments, allowSourceMaps, 32768 /* LocalName */, ignoreAssignedName); - } - function getExportName(node, allowComments, allowSourceMaps) { - return getName(node, allowComments, allowSourceMaps, 16384 /* ExportName */); - } - function getDeclarationName(node, allowComments, allowSourceMaps) { - return getName(node, allowComments, allowSourceMaps); - } - function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) { - const qualifiedName = createPropertyAccessExpression(ns, nodeIsSynthesized(name) ? name : cloneNode(name)); - setTextRange(qualifiedName, name); - let emitFlags = 0; - if (!allowSourceMaps) emitFlags |= 96 /* NoSourceMap */; - if (!allowComments) emitFlags |= 3072 /* NoComments */; - if (emitFlags) setEmitFlags(qualifiedName, emitFlags); - return qualifiedName; - } - function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) { - if (ns && hasSyntacticModifier(node, 32 /* Export */)) { - return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps); - } - return getExportName(node, allowComments, allowSourceMaps); - } - function copyPrologue(source, target, ensureUseStrict2, visitor) { - const offset = copyStandardPrologue(source, target, 0, ensureUseStrict2); - return copyCustomPrologue(source, target, offset, visitor); - } - function isUseStrictPrologue2(node) { - return isStringLiteral(node.expression) && node.expression.text === "use strict"; - } - function createUseStrictPrologue() { - return startOnNewLine(createExpressionStatement(createStringLiteral("use strict"))); - } - function copyStandardPrologue(source, target, statementOffset = 0, ensureUseStrict2) { - Debug.assert(target.length === 0, "Prologue directives should be at the first statement in the target statements array"); - let foundUseStrict = false; - const numStatements = source.length; - while (statementOffset < numStatements) { - const statement = source[statementOffset]; - if (isPrologueDirective(statement)) { - if (isUseStrictPrologue2(statement)) { - foundUseStrict = true; - } - target.push(statement); - } else { - break; - } - statementOffset++; - } - if (ensureUseStrict2 && !foundUseStrict) { - target.push(createUseStrictPrologue()); - } - return statementOffset; - } - function copyCustomPrologue(source, target, statementOffset, visitor, filter2 = returnTrue) { - const numStatements = source.length; - while (statementOffset !== void 0 && statementOffset < numStatements) { - const statement = source[statementOffset]; - if (getEmitFlags(statement) & 2097152 /* CustomPrologue */ && filter2(statement)) { - append(target, visitor ? visitNode(statement, visitor, isStatement) : statement); - } else { - break; - } - statementOffset++; - } - return statementOffset; - } - function ensureUseStrict(statements) { - const foundUseStrict = findUseStrictPrologue(statements); - if (!foundUseStrict) { - return setTextRange(createNodeArray([createUseStrictPrologue(), ...statements]), statements); - } - return statements; - } - function liftToBlock(nodes) { - Debug.assert(every(nodes, isStatementOrBlock), "Cannot lift nodes to a Block."); - return singleOrUndefined(nodes) || createBlock(nodes); - } - function findSpanEnd(array, test, start) { - let i = start; - while (i < array.length && test(array[i])) { - i++; - } - return i; - } - function mergeLexicalEnvironment(statements, declarations) { - if (!some(declarations)) { - return statements; - } - const leftStandardPrologueEnd = findSpanEnd(statements, isPrologueDirective, 0); - const leftHoistedFunctionsEnd = findSpanEnd(statements, isHoistedFunction, leftStandardPrologueEnd); - const leftHoistedVariablesEnd = findSpanEnd(statements, isHoistedVariableStatement, leftHoistedFunctionsEnd); - const rightStandardPrologueEnd = findSpanEnd(declarations, isPrologueDirective, 0); - const rightHoistedFunctionsEnd = findSpanEnd(declarations, isHoistedFunction, rightStandardPrologueEnd); - const rightHoistedVariablesEnd = findSpanEnd(declarations, isHoistedVariableStatement, rightHoistedFunctionsEnd); - const rightCustomPrologueEnd = findSpanEnd(declarations, isCustomPrologue, rightHoistedVariablesEnd); - Debug.assert(rightCustomPrologueEnd === declarations.length, "Expected declarations to be valid standard or custom prologues"); - const left = isNodeArray(statements) ? statements.slice() : statements; - if (rightCustomPrologueEnd > rightHoistedVariablesEnd) { - left.splice(leftHoistedVariablesEnd, 0, ...declarations.slice(rightHoistedVariablesEnd, rightCustomPrologueEnd)); - } - if (rightHoistedVariablesEnd > rightHoistedFunctionsEnd) { - left.splice(leftHoistedFunctionsEnd, 0, ...declarations.slice(rightHoistedFunctionsEnd, rightHoistedVariablesEnd)); - } - if (rightHoistedFunctionsEnd > rightStandardPrologueEnd) { - left.splice(leftStandardPrologueEnd, 0, ...declarations.slice(rightStandardPrologueEnd, rightHoistedFunctionsEnd)); - } - if (rightStandardPrologueEnd > 0) { - if (leftStandardPrologueEnd === 0) { - left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd)); - } else { - const leftPrologues = /* @__PURE__ */ new Map(); - for (let i = 0; i < leftStandardPrologueEnd; i++) { - const leftPrologue = statements[i]; - leftPrologues.set(leftPrologue.expression.text, true); - } - for (let i = rightStandardPrologueEnd - 1; i >= 0; i--) { - const rightPrologue = declarations[i]; - if (!leftPrologues.has(rightPrologue.expression.text)) { - left.unshift(rightPrologue); - } - } - } - } - if (isNodeArray(statements)) { - return setTextRange(createNodeArray(left, statements.hasTrailingComma), statements); - } - return statements; - } - function replaceModifiers(node, modifiers) { - let modifierArray; - if (typeof modifiers === "number") { - modifierArray = createModifiersFromModifierFlags(modifiers); - } else { - modifierArray = modifiers; - } - return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.attributes) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.attributes) : Debug.assertNever(node); - } - function replaceDecoratorsAndModifiers(node, modifierArray) { - return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); - } - function replacePropertyName(node, name) { - switch (node.kind) { - case 177 /* GetAccessor */: - return updateGetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.type, node.body); - case 178 /* SetAccessor */: - return updateSetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.body); - case 174 /* MethodDeclaration */: - return updateMethodDeclaration(node, node.modifiers, node.asteriskToken, name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body); - case 173 /* MethodSignature */: - return updateMethodSignature(node, node.modifiers, name, node.questionToken, node.typeParameters, node.parameters, node.type); - case 172 /* PropertyDeclaration */: - return updatePropertyDeclaration(node, node.modifiers, name, node.questionToken ?? node.exclamationToken, node.type, node.initializer); - case 171 /* PropertySignature */: - return updatePropertySignature(node, node.modifiers, name, node.questionToken, node.type); - case 303 /* PropertyAssignment */: - return updatePropertyAssignment(node, name, node.initializer); - } - } - function asNodeArray(array) { - return array ? createNodeArray(array) : void 0; - } - function asName(name) { - return typeof name === "string" ? createIdentifier(name) : name; - } - function asExpression(value) { - return typeof value === "string" ? createStringLiteral(value) : typeof value === "number" ? createNumericLiteral(value) : typeof value === "boolean" ? value ? createTrue() : createFalse() : value; - } - function asInitializer(node) { - return node && parenthesizerRules().parenthesizeExpressionForDisallowedComma(node); - } - function asToken(value) { - return typeof value === "number" ? createToken(value) : value; - } - function asEmbeddedStatement(statement) { - return statement && isNotEmittedStatement(statement) ? setTextRange(setOriginal(createEmptyStatement(), statement), statement) : statement; - } - function asVariableDeclaration(variableDeclaration) { - if (typeof variableDeclaration === "string" || variableDeclaration && !isVariableDeclaration(variableDeclaration)) { - return createVariableDeclaration( - variableDeclaration, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - } - return variableDeclaration; - } - function update(updated, original) { - if (updated !== original) { - setOriginal(updated, original); - setTextRange(updated, original); - } - return updated; - } -} -function getDefaultTagNameForKind(kind) { - switch (kind) { - case 344 /* JSDocTypeTag */: - return "type"; - case 342 /* JSDocReturnTag */: - return "returns"; - case 343 /* JSDocThisTag */: - return "this"; - case 340 /* JSDocEnumTag */: - return "enum"; - case 330 /* JSDocAuthorTag */: - return "author"; - case 332 /* JSDocClassTag */: - return "class"; - case 333 /* JSDocPublicTag */: - return "public"; - case 334 /* JSDocPrivateTag */: - return "private"; - case 335 /* JSDocProtectedTag */: - return "protected"; - case 336 /* JSDocReadonlyTag */: - return "readonly"; - case 337 /* JSDocOverrideTag */: - return "override"; - case 345 /* JSDocTemplateTag */: - return "template"; - case 346 /* JSDocTypedefTag */: - return "typedef"; - case 341 /* JSDocParameterTag */: - return "param"; - case 348 /* JSDocPropertyTag */: - return "prop"; - case 338 /* JSDocCallbackTag */: - return "callback"; - case 339 /* JSDocOverloadTag */: - return "overload"; - case 328 /* JSDocAugmentsTag */: - return "augments"; - case 329 /* JSDocImplementsTag */: - return "implements"; - case 351 /* JSDocImportTag */: - return "import"; - default: - return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); - } -} -var rawTextScanner; -var invalidValueSentinel = {}; -function getCookedText(kind, rawText) { - if (!rawTextScanner) { - rawTextScanner = createScanner( - 99 /* Latest */, - /*skipTrivia*/ - false, - 0 /* Standard */ - ); - } - switch (kind) { - case 15 /* NoSubstitutionTemplateLiteral */: - rawTextScanner.setText("`" + rawText + "`"); - break; - case 16 /* TemplateHead */: - rawTextScanner.setText("`" + rawText + "${"); - break; - case 17 /* TemplateMiddle */: - rawTextScanner.setText("}" + rawText + "${"); - break; - case 18 /* TemplateTail */: - rawTextScanner.setText("}" + rawText + "`"); - break; - } - let token = rawTextScanner.scan(); - if (token === 20 /* CloseBraceToken */) { - token = rawTextScanner.reScanTemplateToken( - /*isTaggedTemplate*/ - false - ); - } - if (rawTextScanner.isUnterminated()) { - rawTextScanner.setText(void 0); - return invalidValueSentinel; - } - let tokenValue; - switch (token) { - case 15 /* NoSubstitutionTemplateLiteral */: - case 16 /* TemplateHead */: - case 17 /* TemplateMiddle */: - case 18 /* TemplateTail */: - tokenValue = rawTextScanner.getTokenValue(); - break; - } - if (tokenValue === void 0 || rawTextScanner.scan() !== 1 /* EndOfFileToken */) { - rawTextScanner.setText(void 0); - return invalidValueSentinel; - } - rawTextScanner.setText(void 0); - return tokenValue; -} -function propagateNameFlags(node) { - return node && isIdentifier(node) ? propagateIdentifierNameFlags(node) : propagateChildFlags(node); -} -function propagateIdentifierNameFlags(node) { - return propagateChildFlags(node) & ~67108864 /* ContainsPossibleTopLevelAwait */; -} -function propagatePropertyNameFlagsOfChild(node, transformFlags) { - return transformFlags | node.transformFlags & 134234112 /* PropertyNamePropagatingFlags */; -} -function propagateChildFlags(child) { - if (!child) return 0 /* None */; - const childFlags = child.transformFlags & ~getTransformFlagsSubtreeExclusions(child.kind); - return isNamedDeclaration(child) && isPropertyName(child.name) ? propagatePropertyNameFlagsOfChild(child.name, childFlags) : childFlags; -} -function propagateChildrenFlags(children) { - return children ? children.transformFlags : 0 /* None */; -} -function aggregateChildrenFlags(children) { - let subtreeFlags = 0 /* None */; - for (const child of children) { - subtreeFlags |= propagateChildFlags(child); - } - children.transformFlags = subtreeFlags; -} -function getTransformFlagsSubtreeExclusions(kind) { - if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { - return -2 /* TypeExcludes */; - } - switch (kind) { - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 209 /* ArrayLiteralExpression */: - return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; - case 267 /* ModuleDeclaration */: - return -1941676032 /* ModuleExcludes */; - case 169 /* Parameter */: - return -2147483648 /* ParameterExcludes */; - case 219 /* ArrowFunction */: - return -2072174592 /* ArrowFunctionExcludes */; - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - return -1937940480 /* FunctionExcludes */; - case 261 /* VariableDeclarationList */: - return -2146893824 /* VariableDeclarationListExcludes */; - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return -2147344384 /* ClassExcludes */; - case 176 /* Constructor */: - return -1937948672 /* ConstructorExcludes */; - case 172 /* PropertyDeclaration */: - return -2013249536 /* PropertyExcludes */; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return -2005057536 /* MethodOrAccessorExcludes */; - case 133 /* AnyKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 146 /* NeverKeyword */: - case 154 /* StringKeyword */: - case 151 /* ObjectKeyword */: - case 136 /* BooleanKeyword */: - case 155 /* SymbolKeyword */: - case 116 /* VoidKeyword */: - case 168 /* TypeParameter */: - case 171 /* PropertySignature */: - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - return -2 /* TypeExcludes */; - case 210 /* ObjectLiteralExpression */: - return -2147278848 /* ObjectLiteralExcludes */; - case 299 /* CatchClause */: - return -2147418112 /* CatchClauseExcludes */; - case 206 /* ObjectBindingPattern */: - case 207 /* ArrayBindingPattern */: - return -2147450880 /* BindingPatternExcludes */; - case 216 /* TypeAssertionExpression */: - case 238 /* SatisfiesExpression */: - case 234 /* AsExpression */: - case 355 /* PartiallyEmittedExpression */: - case 217 /* ParenthesizedExpression */: - case 108 /* SuperKeyword */: - return -2147483648 /* OuterExpressionExcludes */; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return -2147483648 /* PropertyAccessExcludes */; - default: - return -2147483648 /* NodeExcludes */; - } -} -var baseFactory = createBaseNodeFactory(); -function makeSynthetic(node) { - node.flags |= 16 /* Synthesized */; - return node; -} -var syntheticFactory = { - createBaseSourceFileNode: (kind) => makeSynthetic(baseFactory.createBaseSourceFileNode(kind)), - createBaseIdentifierNode: (kind) => makeSynthetic(baseFactory.createBaseIdentifierNode(kind)), - createBasePrivateIdentifierNode: (kind) => makeSynthetic(baseFactory.createBasePrivateIdentifierNode(kind)), - createBaseTokenNode: (kind) => makeSynthetic(baseFactory.createBaseTokenNode(kind)), - createBaseNode: (kind) => makeSynthetic(baseFactory.createBaseNode(kind)) -}; -var factory = createNodeFactory(4 /* NoIndentationOnFreshPropertyAccess */, syntheticFactory); -function setOriginalNode(node, original) { - if (node.original !== original) { - node.original = original; - if (original) { - const emitNode = original.emitNode; - if (emitNode) node.emitNode = mergeEmitNode(emitNode, node.emitNode); - } - } - return node; -} -function mergeEmitNode(sourceEmitNode, destEmitNode) { - const { - flags, - internalFlags, - leadingComments, - trailingComments, - commentRange, - sourceMapRange, - tokenSourceMapRanges, - constantValue, - helpers, - startsOnNewLine, - snippetElement, - classThis, - assignedName - } = sourceEmitNode; - if (!destEmitNode) destEmitNode = {}; - if (flags) { - destEmitNode.flags = flags; - } - if (internalFlags) { - destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; - } - if (leadingComments) { - destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); - } - if (trailingComments) { - destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); - } - if (commentRange) { - destEmitNode.commentRange = commentRange; - } - if (sourceMapRange) { - destEmitNode.sourceMapRange = sourceMapRange; - } - if (tokenSourceMapRanges) { - destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); - } - if (constantValue !== void 0) { - destEmitNode.constantValue = constantValue; - } - if (helpers) { - for (const helper of helpers) { - destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); - } - } - if (startsOnNewLine !== void 0) { - destEmitNode.startsOnNewLine = startsOnNewLine; - } - if (snippetElement !== void 0) { - destEmitNode.snippetElement = snippetElement; - } - if (classThis) { - destEmitNode.classThis = classThis; - } - if (assignedName) { - destEmitNode.assignedName = assignedName; - } - return destEmitNode; -} -function mergeTokenSourceMapRanges(sourceRanges, destRanges) { - if (!destRanges) destRanges = []; - for (const key in sourceRanges) { - destRanges[key] = sourceRanges[key]; - } - return destRanges; -} - -// src/compiler/factory/emitNode.ts -function getOrCreateEmitNode(node) { - if (!node.emitNode) { - if (isParseTreeNode(node)) { - if (node.kind === 307 /* SourceFile */) { - return node.emitNode = { annotatedNodes: [node] }; - } - const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); - getOrCreateEmitNode(sourceFile).annotatedNodes.push(node); - } - node.emitNode = {}; - } else { - Debug.assert(!(node.emitNode.internalFlags & 8 /* Immutable */), "Invalid attempt to mutate an immutable node."); - } - return node.emitNode; -} -function disposeEmitNodes(sourceFile) { - var _a, _b; - const annotatedNodes = (_b = (_a = getSourceFileOfNode(getParseTreeNode(sourceFile))) == null ? void 0 : _a.emitNode) == null ? void 0 : _b.annotatedNodes; - if (annotatedNodes) { - for (const node of annotatedNodes) { - node.emitNode = void 0; - } - } -} -function removeAllComments(node) { - const emitNode = getOrCreateEmitNode(node); - emitNode.flags |= 3072 /* NoComments */; - emitNode.leadingComments = void 0; - emitNode.trailingComments = void 0; - return node; -} -function setEmitFlags(node, emitFlags) { - getOrCreateEmitNode(node).flags = emitFlags; - return node; -} -function addEmitFlags(node, emitFlags) { - const emitNode = getOrCreateEmitNode(node); - emitNode.flags = emitNode.flags | emitFlags; - return node; -} -function setInternalEmitFlags(node, emitFlags) { - getOrCreateEmitNode(node).internalFlags = emitFlags; - return node; -} -function addInternalEmitFlags(node, emitFlags) { - const emitNode = getOrCreateEmitNode(node); - emitNode.internalFlags = emitNode.internalFlags | emitFlags; - return node; -} -function getSourceMapRange(node) { - var _a; - return ((_a = node.emitNode) == null ? void 0 : _a.sourceMapRange) ?? node; -} -function setSourceMapRange(node, range) { - getOrCreateEmitNode(node).sourceMapRange = range; - return node; -} -function setTokenSourceMapRange(node, token, range) { - const emitNode = getOrCreateEmitNode(node); - const tokenSourceMapRanges = emitNode.tokenSourceMapRanges ?? (emitNode.tokenSourceMapRanges = []); - tokenSourceMapRanges[token] = range; - return node; -} -function getStartsOnNewLine(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.startsOnNewLine; -} -function setStartsOnNewLine(node, newLine) { - getOrCreateEmitNode(node).startsOnNewLine = newLine; - return node; -} -function getCommentRange(node) { - var _a; - return ((_a = node.emitNode) == null ? void 0 : _a.commentRange) ?? node; -} -function setCommentRange(node, range) { - getOrCreateEmitNode(node).commentRange = range; - return node; -} -function getSyntheticLeadingComments(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.leadingComments; -} -function setSyntheticLeadingComments(node, comments) { - getOrCreateEmitNode(node).leadingComments = comments; - return node; -} -function addSyntheticLeadingComment(node, kind, text, hasTrailingNewLine) { - return setSyntheticLeadingComments(node, append(getSyntheticLeadingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text })); -} -function getSyntheticTrailingComments(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.trailingComments; -} -function setSyntheticTrailingComments(node, comments) { - getOrCreateEmitNode(node).trailingComments = comments; - return node; -} -function addSyntheticTrailingComment(node, kind, text, hasTrailingNewLine) { - return setSyntheticTrailingComments(node, append(getSyntheticTrailingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text })); -} -function moveSyntheticComments(node, original) { - setSyntheticLeadingComments(node, getSyntheticLeadingComments(original)); - setSyntheticTrailingComments(node, getSyntheticTrailingComments(original)); - const emit = getOrCreateEmitNode(original); - emit.leadingComments = void 0; - emit.trailingComments = void 0; - return node; -} -function getConstantValue(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.constantValue; -} -function setConstantValue(node, value) { - const emitNode = getOrCreateEmitNode(node); - emitNode.constantValue = value; - return node; -} -function addEmitHelper(node, helper) { - const emitNode = getOrCreateEmitNode(node); - emitNode.helpers = append(emitNode.helpers, helper); - return node; -} -function addEmitHelpers(node, helpers) { - if (some(helpers)) { - const emitNode = getOrCreateEmitNode(node); - for (const helper of helpers) { - emitNode.helpers = appendIfUnique(emitNode.helpers, helper); - } - } - return node; -} -function getEmitHelpers(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.helpers; -} -function moveEmitHelpers(source, target, predicate) { - const sourceEmitNode = source.emitNode; - const sourceEmitHelpers = sourceEmitNode && sourceEmitNode.helpers; - if (!some(sourceEmitHelpers)) return; - const targetEmitNode = getOrCreateEmitNode(target); - let helpersRemoved = 0; - for (let i = 0; i < sourceEmitHelpers.length; i++) { - const helper = sourceEmitHelpers[i]; - if (predicate(helper)) { - helpersRemoved++; - targetEmitNode.helpers = appendIfUnique(targetEmitNode.helpers, helper); - } else if (helpersRemoved > 0) { - sourceEmitHelpers[i - helpersRemoved] = helper; - } - } - if (helpersRemoved > 0) { - sourceEmitHelpers.length -= helpersRemoved; - } -} -function getSnippetElement(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.snippetElement; -} -function setTypeNode(node, type) { - const emitNode = getOrCreateEmitNode(node); - emitNode.typeNode = type; - return node; -} -function getTypeNode(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.typeNode; -} -function setIdentifierTypeArguments(node, typeArguments) { - getOrCreateEmitNode(node).identifierTypeArguments = typeArguments; - return node; -} -function getIdentifierTypeArguments(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.identifierTypeArguments; -} -function setIdentifierAutoGenerate(node, autoGenerate) { - getOrCreateEmitNode(node).autoGenerate = autoGenerate; - return node; -} -function setIdentifierGeneratedImportReference(node, value) { - getOrCreateEmitNode(node).generatedImportReference = value; - return node; -} -function getIdentifierGeneratedImportReference(node) { - var _a; - return (_a = node.emitNode) == null ? void 0 : _a.generatedImportReference; -} - -// src/compiler/factory/emitHelpers.ts -function createEmitHelperFactory(context) { - const factory2 = context.factory; - const immutableTrue = memoize(() => setInternalEmitFlags(factory2.createTrue(), 8 /* Immutable */)); - const immutableFalse = memoize(() => setInternalEmitFlags(factory2.createFalse(), 8 /* Immutable */)); - return { - getUnscopedHelperName, - // TypeScript Helpers - createDecorateHelper, - createMetadataHelper, - createParamHelper, - // ES Decorators Helpers - createESDecorateHelper, - createRunInitializersHelper, - // ES2018 Helpers - createAssignHelper, - createAwaitHelper, - createAsyncGeneratorHelper, - createAsyncDelegatorHelper, - createAsyncValuesHelper, - // ES2018 Destructuring Helpers - createRestHelper, - // ES2017 Helpers - createAwaiterHelper, - // ES2015 Helpers - createExtendsHelper, - createTemplateObjectHelper, - createSpreadArrayHelper, - createPropKeyHelper, - createSetFunctionNameHelper, - // ES2015 Destructuring Helpers - createValuesHelper, - createReadHelper, - // ES2015 Generator Helpers - createGeneratorHelper, - // ES Module Helpers - createImportStarHelper, - createImportStarCallbackHelper, - createImportDefaultHelper, - createExportStarHelper, - // Class Fields Helpers - createClassPrivateFieldGetHelper, - createClassPrivateFieldSetHelper, - createClassPrivateFieldInHelper, - // 'using' helpers - createAddDisposableResourceHelper, - createDisposeResourcesHelper, - // --rewriteRelativeImportExtensions helpers - createRewriteRelativeImportExtensionsHelper - }; - function getUnscopedHelperName(name) { - return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); - } - function createDecorateHelper(decoratorExpressions, target, memberName, descriptor) { - context.requestEmitHelper(decorateHelper); - const argumentsArray = []; - argumentsArray.push(factory2.createArrayLiteralExpression( - decoratorExpressions, - /*multiLine*/ - true - )); - argumentsArray.push(target); - if (memberName) { - argumentsArray.push(memberName); - if (descriptor) { - argumentsArray.push(descriptor); - } - } - return factory2.createCallExpression( - getUnscopedHelperName("__decorate"), - /*typeArguments*/ - void 0, - argumentsArray - ); - } - function createMetadataHelper(metadataKey, metadataValue) { - context.requestEmitHelper(metadataHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__metadata"), - /*typeArguments*/ - void 0, - [ - factory2.createStringLiteral(metadataKey), - metadataValue - ] - ); - } - function createParamHelper(expression, parameterOffset, location) { - context.requestEmitHelper(paramHelper); - return setTextRange( - factory2.createCallExpression( - getUnscopedHelperName("__param"), - /*typeArguments*/ - void 0, - [ - factory2.createNumericLiteral(parameterOffset + ""), - expression - ] - ), - location - ); - } - function createESDecorateClassContextObject(contextIn) { - const properties = [ - factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), - factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) - ]; - return factory2.createObjectLiteralExpression(properties); - } - function createESDecorateClassElementAccessGetMethod(elementName) { - const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); - return factory2.createPropertyAssignment( - "get", - factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.createIdentifier("obj") - )], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - accessor - ) - ); - } - function createESDecorateClassElementAccessSetMethod(elementName) { - const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); - return factory2.createPropertyAssignment( - "set", - factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.createIdentifier("obj") - ), - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.createIdentifier("value") - ) - ], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment( - accessor, - factory2.createIdentifier("value") - ) - ) - ]) - ) - ); - } - function createESDecorateClassElementAccessHasMethod(elementName) { - const propertyName = elementName.computed ? elementName.name : isIdentifier(elementName.name) ? factory2.createStringLiteralFromNode(elementName.name) : elementName.name; - return factory2.createPropertyAssignment( - "has", - factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.createIdentifier("obj") - )], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - factory2.createBinaryExpression( - propertyName, - 103 /* InKeyword */, - factory2.createIdentifier("obj") - ) - ) - ); - } - function createESDecorateClassElementAccessObject(name, access) { - const properties = []; - properties.push(createESDecorateClassElementAccessHasMethod(name)); - if (access.get) properties.push(createESDecorateClassElementAccessGetMethod(name)); - if (access.set) properties.push(createESDecorateClassElementAccessSetMethod(name)); - return factory2.createObjectLiteralExpression(properties); - } - function createESDecorateClassElementContextObject(contextIn) { - const properties = [ - factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), - factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), - factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), - factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), - factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) - ]; - return factory2.createObjectLiteralExpression(properties); - } - function createESDecorateContextObject(contextIn) { - return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); - } - function createESDecorateHelper(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - context.requestEmitHelper(esDecorateHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__esDecorate"), - /*typeArguments*/ - void 0, - [ - ctor ?? factory2.createNull(), - descriptorIn ?? factory2.createNull(), - decorators, - createESDecorateContextObject(contextIn), - initializers, - extraInitializers - ] - ); - } - function createRunInitializersHelper(thisArg, initializers, value) { - context.requestEmitHelper(runInitializersHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__runInitializers"), - /*typeArguments*/ - void 0, - value ? [thisArg, initializers, value] : [thisArg, initializers] - ); - } - function createAssignHelper(attributesSegments) { - if (getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) { - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "assign"), - /*typeArguments*/ - void 0, - attributesSegments - ); - } - context.requestEmitHelper(assignHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__assign"), - /*typeArguments*/ - void 0, - attributesSegments - ); - } - function createAwaitHelper(expression) { - context.requestEmitHelper(awaitHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__await"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createAsyncGeneratorHelper(generatorFunc, hasLexicalThis) { - context.requestEmitHelper(awaitHelper); - context.requestEmitHelper(asyncGeneratorHelper); - (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 /* AsyncFunctionBody */ | 1048576 /* ReuseTempVariableScope */; - return factory2.createCallExpression( - getUnscopedHelperName("__asyncGenerator"), - /*typeArguments*/ - void 0, - [ - hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(), - factory2.createIdentifier("arguments"), - generatorFunc - ] - ); - } - function createAsyncDelegatorHelper(expression) { - context.requestEmitHelper(awaitHelper); - context.requestEmitHelper(asyncDelegator); - return factory2.createCallExpression( - getUnscopedHelperName("__asyncDelegator"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createAsyncValuesHelper(expression) { - context.requestEmitHelper(asyncValues); - return factory2.createCallExpression( - getUnscopedHelperName("__asyncValues"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createRestHelper(value, elements, computedTempVariables, location) { - context.requestEmitHelper(restHelper); - const propertyNames = []; - let computedTempVariableOffset = 0; - for (let i = 0; i < elements.length - 1; i++) { - const propertyName = getPropertyNameOfBindingOrAssignmentElement(elements[i]); - if (propertyName) { - if (isComputedPropertyName(propertyName)) { - Debug.assertIsDefined(computedTempVariables, "Encountered computed property name but 'computedTempVariables' argument was not provided."); - const temp = computedTempVariables[computedTempVariableOffset]; - computedTempVariableOffset++; - propertyNames.push( - factory2.createConditionalExpression( - factory2.createTypeCheck(temp, "symbol"), - /*questionToken*/ - void 0, - temp, - /*colonToken*/ - void 0, - factory2.createAdd(temp, factory2.createStringLiteral("")) - ) - ); - } else { - propertyNames.push(factory2.createStringLiteralFromNode(propertyName)); - } - } - } - return factory2.createCallExpression( - getUnscopedHelperName("__rest"), - /*typeArguments*/ - void 0, - [ - value, - setTextRange( - factory2.createArrayLiteralExpression(propertyNames), - location - ) - ] - ); - } - function createAwaiterHelper(hasLexicalThis, argumentsExpression, promiseConstructor, parameters, body) { - context.requestEmitHelper(awaiterHelper); - const generatorFunc = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - factory2.createToken(42 /* AsteriskToken */), - /*name*/ - void 0, - /*typeParameters*/ - void 0, - parameters ?? [], - /*type*/ - void 0, - body - ); - (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 /* AsyncFunctionBody */ | 1048576 /* ReuseTempVariableScope */; - return factory2.createCallExpression( - getUnscopedHelperName("__awaiter"), - /*typeArguments*/ - void 0, - [ - hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(), - argumentsExpression ?? factory2.createVoidZero(), - promiseConstructor ? createExpressionFromEntityName(factory2, promiseConstructor) : factory2.createVoidZero(), - generatorFunc - ] - ); - } - function createExtendsHelper(name) { - context.requestEmitHelper(extendsHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__extends"), - /*typeArguments*/ - void 0, - [name, factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */)] - ); - } - function createTemplateObjectHelper(cooked, raw) { - context.requestEmitHelper(templateObjectHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__makeTemplateObject"), - /*typeArguments*/ - void 0, - [cooked, raw] - ); - } - function createSpreadArrayHelper(to, from, packFrom) { - context.requestEmitHelper(spreadArrayHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__spreadArray"), - /*typeArguments*/ - void 0, - [to, from, packFrom ? immutableTrue() : immutableFalse()] - ); - } - function createPropKeyHelper(expr) { - context.requestEmitHelper(propKeyHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__propKey"), - /*typeArguments*/ - void 0, - [expr] - ); - } - function createSetFunctionNameHelper(f, name, prefix) { - context.requestEmitHelper(setFunctionNameHelper); - return context.factory.createCallExpression( - getUnscopedHelperName("__setFunctionName"), - /*typeArguments*/ - void 0, - prefix ? [f, name, context.factory.createStringLiteral(prefix)] : [f, name] - ); - } - function createValuesHelper(expression) { - context.requestEmitHelper(valuesHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__values"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createReadHelper(iteratorRecord, count) { - context.requestEmitHelper(readHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__read"), - /*typeArguments*/ - void 0, - count !== void 0 ? [iteratorRecord, factory2.createNumericLiteral(count + "")] : [iteratorRecord] - ); - } - function createGeneratorHelper(body) { - context.requestEmitHelper(generatorHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__generator"), - /*typeArguments*/ - void 0, - [factory2.createThis(), body] - ); - } - function createImportStarHelper(expression) { - context.requestEmitHelper(importStarHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__importStar"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createImportStarCallbackHelper() { - context.requestEmitHelper(importStarHelper); - return getUnscopedHelperName("__importStar"); - } - function createImportDefaultHelper(expression) { - context.requestEmitHelper(importDefaultHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__importDefault"), - /*typeArguments*/ - void 0, - [expression] - ); - } - function createExportStarHelper(moduleExpression, exportsExpression = factory2.createIdentifier("exports")) { - context.requestEmitHelper(exportStarHelper); - context.requestEmitHelper(createBindingHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__exportStar"), - /*typeArguments*/ - void 0, - [moduleExpression, exportsExpression] - ); - } - function createClassPrivateFieldGetHelper(receiver, state, kind, f) { - context.requestEmitHelper(classPrivateFieldGetHelper); - let args; - if (!f) { - args = [receiver, state, factory2.createStringLiteral(kind)]; - } else { - args = [receiver, state, factory2.createStringLiteral(kind), f]; - } - return factory2.createCallExpression( - getUnscopedHelperName("__classPrivateFieldGet"), - /*typeArguments*/ - void 0, - args - ); - } - function createClassPrivateFieldSetHelper(receiver, state, value, kind, f) { - context.requestEmitHelper(classPrivateFieldSetHelper); - let args; - if (!f) { - args = [receiver, state, value, factory2.createStringLiteral(kind)]; - } else { - args = [receiver, state, value, factory2.createStringLiteral(kind), f]; - } - return factory2.createCallExpression( - getUnscopedHelperName("__classPrivateFieldSet"), - /*typeArguments*/ - void 0, - args - ); - } - function createClassPrivateFieldInHelper(state, receiver) { - context.requestEmitHelper(classPrivateFieldInHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__classPrivateFieldIn"), - /*typeArguments*/ - void 0, - [state, receiver] - ); - } - function createAddDisposableResourceHelper(envBinding, value, async) { - context.requestEmitHelper(addDisposableResourceHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__addDisposableResource"), - /*typeArguments*/ - void 0, - [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] - ); - } - function createDisposeResourcesHelper(envBinding) { - context.requestEmitHelper(disposeResourcesHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__disposeResources"), - /*typeArguments*/ - void 0, - [envBinding] - ); - } - function createRewriteRelativeImportExtensionsHelper(expression) { - context.requestEmitHelper(rewriteRelativeImportExtensionsHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__rewriteRelativeImportExtension"), - /*typeArguments*/ - void 0, - context.getCompilerOptions().jsx === 1 /* Preserve */ ? [expression, factory2.createTrue()] : [expression] - ); - } -} -function compareEmitHelpers(x, y) { - if (x === y) return 0 /* EqualTo */; - if (x.priority === y.priority) return 0 /* EqualTo */; - if (x.priority === void 0) return 1 /* GreaterThan */; - if (y.priority === void 0) return -1 /* LessThan */; - return compareValues(x.priority, y.priority); -} -function helperString(input, ...args) { - return (uniqueName) => { - let result = ""; - for (let i = 0; i < args.length; i++) { - result += input[i]; - result += uniqueName(args[i]); - } - result += input[input.length - 1]; - return result; - }; -} -var decorateHelper = { - name: "typescript:decorate", - importName: "__decorate", - scoped: false, - priority: 2, - text: ` - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - };` -}; -var metadataHelper = { - name: "typescript:metadata", - importName: "__metadata", - scoped: false, - priority: 3, - text: ` - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };` -}; -var paramHelper = { - name: "typescript:param", - importName: "__param", - scoped: false, - priority: 4, - text: ` - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - };` -}; -var esDecorateHelper = { - name: "typescript:esDecorate", - importName: "__esDecorate", - scoped: false, - priority: 2, - text: ` - var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - };` -}; -var runInitializersHelper = { - name: "typescript:runInitializers", - importName: "__runInitializers", - scoped: false, - priority: 2, - text: ` - var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - };` -}; -var assignHelper = { - name: "typescript:assign", - importName: "__assign", - scoped: false, - priority: 1, - text: ` - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - };` -}; -var awaitHelper = { - name: "typescript:await", - importName: "__await", - scoped: false, - text: ` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }` -}; -var asyncGeneratorHelper = { - name: "typescript:asyncGenerator", - importName: "__asyncGenerator", - scoped: false, - dependencies: [awaitHelper], - text: ` - var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };` -}; -var asyncDelegator = { - name: "typescript:asyncDelegator", - importName: "__asyncDelegator", - scoped: false, - dependencies: [awaitHelper], - text: ` - var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };` -}; -var asyncValues = { - name: "typescript:asyncValues", - importName: "__asyncValues", - scoped: false, - text: ` - var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };` -}; -var restHelper = { - name: "typescript:rest", - importName: "__rest", - scoped: false, - text: ` - var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - };` -}; -var awaiterHelper = { - name: "typescript:awaiter", - importName: "__awaiter", - scoped: false, - priority: 5, - text: ` - var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - };` -}; -var extendsHelper = { - name: "typescript:extends", - importName: "__extends", - scoped: false, - priority: 0, - text: ` - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })();` -}; -var templateObjectHelper = { - name: "typescript:makeTemplateObject", - importName: "__makeTemplateObject", - scoped: false, - priority: 0, - text: ` - var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - };` -}; -var readHelper = { - name: "typescript:read", - importName: "__read", - scoped: false, - text: ` - var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - };` -}; -var spreadArrayHelper = { - name: "typescript:spreadArray", - importName: "__spreadArray", - scoped: false, - text: ` - var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - };` -}; -var propKeyHelper = { - name: "typescript:propKey", - importName: "__propKey", - scoped: false, - text: ` - var __propKey = (this && this.__propKey) || function (x) { - return typeof x === "symbol" ? x : "".concat(x); - };` -}; -var setFunctionNameHelper = { - name: "typescript:setFunctionName", - importName: "__setFunctionName", - scoped: false, - text: ` - var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };` -}; -var valuesHelper = { - name: "typescript:values", - importName: "__values", - scoped: false, - text: ` - var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };` -}; -var generatorHelper = { - name: "typescript:generator", - importName: "__generator", - scoped: false, - priority: 6, - text: ` - var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - };` -}; -var createBindingHelper = { - name: "typescript:commonjscreatebinding", - importName: "__createBinding", - scoped: false, - priority: 1, - text: ` - 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 setModuleDefaultHelper = { - name: "typescript:commonjscreatevalue", - importName: "__setModuleDefault", - scoped: false, - priority: 1, - text: ` - 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 importStarHelper = { - name: "typescript:commonjsimportstar", - importName: "__importStar", - scoped: false, - dependencies: [createBindingHelper, setModuleDefaultHelper], - priority: 2, - text: ` - 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 importDefaultHelper = { - name: "typescript:commonjsimportdefault", - importName: "__importDefault", - scoped: false, - text: ` - var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - };` -}; -var exportStarHelper = { - name: "typescript:export-star", - importName: "__exportStar", - scoped: false, - dependencies: [createBindingHelper], - priority: 2, - text: ` - 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); - };` -}; -var classPrivateFieldGetHelper = { - name: "typescript:classPrivateFieldGet", - importName: "__classPrivateFieldGet", - scoped: false, - text: ` - var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };` -}; -var classPrivateFieldSetHelper = { - name: "typescript:classPrivateFieldSet", - importName: "__classPrivateFieldSet", - scoped: false, - text: ` - var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };` -}; -var classPrivateFieldInHelper = { - name: "typescript:classPrivateFieldIn", - importName: "__classPrivateFieldIn", - scoped: false, - text: ` - var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - };` -}; -var addDisposableResourceHelper = { - name: "typescript:addDisposableResource", - importName: "__addDisposableResource", - scoped: false, - text: ` - var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose, inner; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - if (async) inner = dispose; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - };` -}; -var disposeResourcesHelper = { - name: "typescript:disposeResources", - importName: "__disposeResources", - scoped: false, - text: ` - var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { - return function (env) { - function fail(e) { - env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - var r, s = 0; - function next() { - while (r = env.stack.pop()) { - try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; - } - catch (e) { - fail(e); - } - } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); - if (env.hasError) throw env.error; - } - return next(); - }; - })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });` -}; -var rewriteRelativeImportExtensionsHelper = { - name: "typescript:rewriteRelativeImportExtensions", - importName: "__rewriteRelativeImportExtension", - scoped: false, - text: ` - var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { - return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; - };` -}; -var asyncSuperHelper = { - name: "typescript:async-super", - scoped: true, - text: helperString` - const ${"_superIndex"} = name => super[name];` -}; -var advancedAsyncSuperHelper = { - name: "typescript:advanced-async-super", - scoped: true, - text: helperString` - const ${"_superIndex"} = (function (geti, seti) { - const cache = Object.create(null); - return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);` -}; -function isCallToHelper(firstSegment, helperName) { - return isCallExpression(firstSegment) && isIdentifier(firstSegment.expression) && (getEmitFlags(firstSegment.expression) & 8192 /* HelperName */) !== 0 && firstSegment.expression.escapedText === helperName; -} - -// src/compiler/factory/nodeTests.ts -function isNumericLiteral(node) { - return node.kind === 9 /* NumericLiteral */; -} -function isBigIntLiteral(node) { - return node.kind === 10 /* BigIntLiteral */; -} -function isStringLiteral(node) { - return node.kind === 11 /* StringLiteral */; -} -function isJsxText(node) { - return node.kind === 12 /* JsxText */; -} -function isNoSubstitutionTemplateLiteral(node) { - return node.kind === 15 /* NoSubstitutionTemplateLiteral */; -} -function isTemplateHead(node) { - return node.kind === 16 /* TemplateHead */; -} -function isDotDotDotToken(node) { - return node.kind === 26 /* DotDotDotToken */; -} -function isCommaToken(node) { - return node.kind === 28 /* CommaToken */; -} -function isPlusToken(node) { - return node.kind === 40 /* PlusToken */; -} -function isMinusToken(node) { - return node.kind === 41 /* MinusToken */; -} -function isAsteriskToken(node) { - return node.kind === 42 /* AsteriskToken */; -} -function isExclamationToken(node) { - return node.kind === 54 /* ExclamationToken */; -} -function isQuestionToken(node) { - return node.kind === 58 /* QuestionToken */; -} -function isColonToken(node) { - return node.kind === 59 /* ColonToken */; -} -function isQuestionDotToken(node) { - return node.kind === 29 /* QuestionDotToken */; -} -function isEqualsGreaterThanToken(node) { - return node.kind === 39 /* EqualsGreaterThanToken */; -} -function isIdentifier(node) { - return node.kind === 80 /* Identifier */; -} -function isPrivateIdentifier(node) { - return node.kind === 81 /* PrivateIdentifier */; -} -function isExportModifier(node) { - return node.kind === 95 /* ExportKeyword */; -} -function isDefaultModifier(node) { - return node.kind === 90 /* DefaultKeyword */; -} -function isAsyncModifier(node) { - return node.kind === 134 /* AsyncKeyword */; -} -function isAssertsKeyword(node) { - return node.kind === 131 /* AssertsKeyword */; -} -function isAwaitKeyword(node) { - return node.kind === 135 /* AwaitKeyword */; -} -function isReadonlyKeyword(node) { - return node.kind === 148 /* ReadonlyKeyword */; -} -function isStaticModifier(node) { - return node.kind === 126 /* StaticKeyword */; -} -function isAccessorModifier(node) { - return node.kind === 129 /* AccessorKeyword */; -} -function isSuperKeyword(node) { - return node.kind === 108 /* SuperKeyword */; -} -function isImportKeyword(node) { - return node.kind === 102 /* ImportKeyword */; -} -function isQualifiedName(node) { - return node.kind === 166 /* QualifiedName */; -} -function isComputedPropertyName(node) { - return node.kind === 167 /* ComputedPropertyName */; -} -function isTypeParameterDeclaration(node) { - return node.kind === 168 /* TypeParameter */; -} -function isParameter(node) { - return node.kind === 169 /* Parameter */; -} -function isDecorator(node) { - return node.kind === 170 /* Decorator */; -} -function isPropertySignature(node) { - return node.kind === 171 /* PropertySignature */; -} -function isPropertyDeclaration(node) { - return node.kind === 172 /* PropertyDeclaration */; -} -function isMethodSignature(node) { - return node.kind === 173 /* MethodSignature */; -} -function isMethodDeclaration(node) { - return node.kind === 174 /* MethodDeclaration */; -} -function isClassStaticBlockDeclaration(node) { - return node.kind === 175 /* ClassStaticBlockDeclaration */; -} -function isConstructorDeclaration(node) { - return node.kind === 176 /* Constructor */; -} -function isGetAccessorDeclaration(node) { - return node.kind === 177 /* GetAccessor */; -} -function isSetAccessorDeclaration(node) { - return node.kind === 178 /* SetAccessor */; -} -function isCallSignatureDeclaration(node) { - return node.kind === 179 /* CallSignature */; -} -function isConstructSignatureDeclaration(node) { - return node.kind === 180 /* ConstructSignature */; -} -function isIndexSignatureDeclaration(node) { - return node.kind === 181 /* IndexSignature */; -} -function isTypePredicateNode(node) { - return node.kind === 182 /* TypePredicate */; -} -function isTypeReferenceNode(node) { - return node.kind === 183 /* TypeReference */; -} -function isFunctionTypeNode(node) { - return node.kind === 184 /* FunctionType */; -} -function isConstructorTypeNode(node) { - return node.kind === 185 /* ConstructorType */; -} -function isTypeQueryNode(node) { - return node.kind === 186 /* TypeQuery */; -} -function isTypeLiteralNode(node) { - return node.kind === 187 /* TypeLiteral */; -} -function isArrayTypeNode(node) { - return node.kind === 188 /* ArrayType */; -} -function isTupleTypeNode(node) { - return node.kind === 189 /* TupleType */; -} -function isNamedTupleMember(node) { - return node.kind === 202 /* NamedTupleMember */; -} -function isOptionalTypeNode(node) { - return node.kind === 190 /* OptionalType */; -} -function isRestTypeNode(node) { - return node.kind === 191 /* RestType */; -} -function isUnionTypeNode(node) { - return node.kind === 192 /* UnionType */; -} -function isIntersectionTypeNode(node) { - return node.kind === 193 /* IntersectionType */; -} -function isConditionalTypeNode(node) { - return node.kind === 194 /* ConditionalType */; -} -function isInferTypeNode(node) { - return node.kind === 195 /* InferType */; -} -function isParenthesizedTypeNode(node) { - return node.kind === 196 /* ParenthesizedType */; -} -function isThisTypeNode(node) { - return node.kind === 197 /* ThisType */; -} -function isTypeOperatorNode(node) { - return node.kind === 198 /* TypeOperator */; -} -function isIndexedAccessTypeNode(node) { - return node.kind === 199 /* IndexedAccessType */; -} -function isMappedTypeNode(node) { - return node.kind === 200 /* MappedType */; -} -function isLiteralTypeNode(node) { - return node.kind === 201 /* LiteralType */; -} -function isImportTypeNode(node) { - return node.kind === 205 /* ImportType */; -} -function isTemplateLiteralTypeSpan(node) { - return node.kind === 204 /* TemplateLiteralTypeSpan */; -} -function isObjectBindingPattern(node) { - return node.kind === 206 /* ObjectBindingPattern */; -} -function isArrayBindingPattern(node) { - return node.kind === 207 /* ArrayBindingPattern */; -} -function isBindingElement(node) { - return node.kind === 208 /* BindingElement */; -} -function isArrayLiteralExpression(node) { - return node.kind === 209 /* ArrayLiteralExpression */; -} -function isObjectLiteralExpression(node) { - return node.kind === 210 /* ObjectLiteralExpression */; -} -function isPropertyAccessExpression(node) { - return node.kind === 211 /* PropertyAccessExpression */; -} -function isElementAccessExpression(node) { - return node.kind === 212 /* ElementAccessExpression */; -} -function isCallExpression(node) { - return node.kind === 213 /* CallExpression */; -} -function isNewExpression(node) { - return node.kind === 214 /* NewExpression */; -} -function isTaggedTemplateExpression(node) { - return node.kind === 215 /* TaggedTemplateExpression */; -} -function isTypeAssertionExpression(node) { - return node.kind === 216 /* TypeAssertionExpression */; -} -function isParenthesizedExpression(node) { - return node.kind === 217 /* ParenthesizedExpression */; -} -function isFunctionExpression(node) { - return node.kind === 218 /* FunctionExpression */; -} -function isArrowFunction(node) { - return node.kind === 219 /* ArrowFunction */; -} -function isTypeOfExpression(node) { - return node.kind === 221 /* TypeOfExpression */; -} -function isVoidExpression(node) { - return node.kind === 222 /* VoidExpression */; -} -function isAwaitExpression(node) { - return node.kind === 223 /* AwaitExpression */; -} -function isPrefixUnaryExpression(node) { - return node.kind === 224 /* PrefixUnaryExpression */; -} -function isPostfixUnaryExpression(node) { - return node.kind === 225 /* PostfixUnaryExpression */; -} -function isBinaryExpression(node) { - return node.kind === 226 /* BinaryExpression */; -} -function isConditionalExpression(node) { - return node.kind === 227 /* ConditionalExpression */; -} -function isSpreadElement(node) { - return node.kind === 230 /* SpreadElement */; -} -function isClassExpression(node) { - return node.kind === 231 /* ClassExpression */; -} -function isOmittedExpression(node) { - return node.kind === 232 /* OmittedExpression */; -} -function isExpressionWithTypeArguments(node) { - return node.kind === 233 /* ExpressionWithTypeArguments */; -} -function isAsExpression(node) { - return node.kind === 234 /* AsExpression */; -} -function isSatisfiesExpression(node) { - return node.kind === 238 /* SatisfiesExpression */; -} -function isNonNullExpression(node) { - return node.kind === 235 /* NonNullExpression */; -} -function isMetaProperty(node) { - return node.kind === 236 /* MetaProperty */; -} -function isPartiallyEmittedExpression(node) { - return node.kind === 355 /* PartiallyEmittedExpression */; -} -function isCommaListExpression(node) { - return node.kind === 356 /* CommaListExpression */; -} -function isTemplateSpan(node) { - return node.kind === 239 /* TemplateSpan */; -} -function isSemicolonClassElement(node) { - return node.kind === 240 /* SemicolonClassElement */; -} -function isBlock(node) { - return node.kind === 241 /* Block */; -} -function isVariableStatement(node) { - return node.kind === 243 /* VariableStatement */; -} -function isEmptyStatement(node) { - return node.kind === 242 /* EmptyStatement */; -} -function isExpressionStatement(node) { - return node.kind === 244 /* ExpressionStatement */; -} -function isIfStatement(node) { - return node.kind === 245 /* IfStatement */; -} -function isForStatement(node) { - return node.kind === 248 /* ForStatement */; -} -function isForInStatement(node) { - return node.kind === 249 /* ForInStatement */; -} -function isForOfStatement(node) { - return node.kind === 250 /* ForOfStatement */; -} -function isReturnStatement(node) { - return node.kind === 253 /* ReturnStatement */; -} -function isWithStatement(node) { - return node.kind === 254 /* WithStatement */; -} -function isSwitchStatement(node) { - return node.kind === 255 /* SwitchStatement */; -} -function isLabeledStatement(node) { - return node.kind === 256 /* LabeledStatement */; -} -function isTryStatement(node) { - return node.kind === 258 /* TryStatement */; -} -function isVariableDeclaration(node) { - return node.kind === 260 /* VariableDeclaration */; -} -function isVariableDeclarationList(node) { - return node.kind === 261 /* VariableDeclarationList */; -} -function isFunctionDeclaration(node) { - return node.kind === 262 /* FunctionDeclaration */; -} -function isClassDeclaration(node) { - return node.kind === 263 /* ClassDeclaration */; -} -function isInterfaceDeclaration(node) { - return node.kind === 264 /* InterfaceDeclaration */; -} -function isTypeAliasDeclaration(node) { - return node.kind === 265 /* TypeAliasDeclaration */; -} -function isEnumDeclaration(node) { - return node.kind === 266 /* EnumDeclaration */; -} -function isModuleDeclaration(node) { - return node.kind === 267 /* ModuleDeclaration */; -} -function isModuleBlock(node) { - return node.kind === 268 /* ModuleBlock */; -} -function isCaseBlock(node) { - return node.kind === 269 /* CaseBlock */; -} -function isNamespaceExportDeclaration(node) { - return node.kind === 270 /* NamespaceExportDeclaration */; -} -function isImportEqualsDeclaration(node) { - return node.kind === 271 /* ImportEqualsDeclaration */; -} -function isImportDeclaration(node) { - return node.kind === 272 /* ImportDeclaration */; -} -function isImportClause(node) { - return node.kind === 273 /* ImportClause */; -} -function isAssertClause(node) { - return node.kind === 300 /* AssertClause */; -} -function isImportAttributes(node) { - return node.kind === 300 /* ImportAttributes */; -} -function isImportAttribute(node) { - return node.kind === 301 /* ImportAttribute */; -} -function isNamespaceImport(node) { - return node.kind === 274 /* NamespaceImport */; -} -function isNamespaceExport(node) { - return node.kind === 280 /* NamespaceExport */; -} -function isNamedImports(node) { - return node.kind === 275 /* NamedImports */; -} -function isImportSpecifier(node) { - return node.kind === 276 /* ImportSpecifier */; -} -function isExportAssignment(node) { - return node.kind === 277 /* ExportAssignment */; -} -function isExportDeclaration(node) { - return node.kind === 278 /* ExportDeclaration */; -} -function isNamedExports(node) { - return node.kind === 279 /* NamedExports */; -} -function isExportSpecifier(node) { - return node.kind === 281 /* ExportSpecifier */; -} -function isModuleExportName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 11 /* StringLiteral */; -} -function isNotEmittedStatement(node) { - return node.kind === 353 /* NotEmittedStatement */; -} -function isSyntheticReference(node) { - return node.kind === 357 /* SyntheticReferenceExpression */; -} -function isExternalModuleReference(node) { - return node.kind === 283 /* ExternalModuleReference */; -} -function isJsxElement(node) { - return node.kind === 284 /* JsxElement */; -} -function isJsxSelfClosingElement(node) { - return node.kind === 285 /* JsxSelfClosingElement */; -} -function isJsxOpeningElement(node) { - return node.kind === 286 /* JsxOpeningElement */; -} -function isJsxClosingElement(node) { - return node.kind === 287 /* JsxClosingElement */; -} -function isJsxFragment(node) { - return node.kind === 288 /* JsxFragment */; -} -function isJsxOpeningFragment(node) { - return node.kind === 289 /* JsxOpeningFragment */; -} -function isJsxClosingFragment(node) { - return node.kind === 290 /* JsxClosingFragment */; -} -function isJsxAttribute(node) { - return node.kind === 291 /* JsxAttribute */; -} -function isJsxAttributes(node) { - return node.kind === 292 /* JsxAttributes */; -} -function isJsxSpreadAttribute(node) { - return node.kind === 293 /* JsxSpreadAttribute */; -} -function isJsxExpression(node) { - return node.kind === 294 /* JsxExpression */; -} -function isJsxNamespacedName(node) { - return node.kind === 295 /* JsxNamespacedName */; -} -function isCaseClause(node) { - return node.kind === 296 /* CaseClause */; -} -function isDefaultClause(node) { - return node.kind === 297 /* DefaultClause */; -} -function isHeritageClause(node) { - return node.kind === 298 /* HeritageClause */; -} -function isCatchClause(node) { - return node.kind === 299 /* CatchClause */; -} -function isPropertyAssignment(node) { - return node.kind === 303 /* PropertyAssignment */; -} -function isShorthandPropertyAssignment(node) { - return node.kind === 304 /* ShorthandPropertyAssignment */; -} -function isSpreadAssignment(node) { - return node.kind === 305 /* SpreadAssignment */; -} -function isEnumMember(node) { - return node.kind === 306 /* EnumMember */; -} -function isSourceFile(node) { - return node.kind === 307 /* SourceFile */; -} -function isBundle(node) { - return node.kind === 308 /* Bundle */; -} -function isJSDocTypeExpression(node) { - return node.kind === 309 /* JSDocTypeExpression */; -} -function isJSDocNameReference(node) { - return node.kind === 310 /* JSDocNameReference */; -} -function isJSDocMemberName(node) { - return node.kind === 311 /* JSDocMemberName */; -} -function isJSDocAllType(node) { - return node.kind === 312 /* JSDocAllType */; -} -function isJSDocUnknownType(node) { - return node.kind === 313 /* JSDocUnknownType */; -} -function isJSDocNullableType(node) { - return node.kind === 314 /* JSDocNullableType */; -} -function isJSDocNonNullableType(node) { - return node.kind === 315 /* JSDocNonNullableType */; -} -function isJSDocOptionalType(node) { - return node.kind === 316 /* JSDocOptionalType */; -} -function isJSDocFunctionType(node) { - return node.kind === 317 /* JSDocFunctionType */; -} -function isJSDocVariadicType(node) { - return node.kind === 318 /* JSDocVariadicType */; -} -function isJSDoc(node) { - return node.kind === 320 /* JSDoc */; -} -function isJSDocTypeLiteral(node) { - return node.kind === 322 /* JSDocTypeLiteral */; -} -function isJSDocSignature(node) { - return node.kind === 323 /* JSDocSignature */; -} -function isJSDocAugmentsTag(node) { - return node.kind === 328 /* JSDocAugmentsTag */; -} -function isJSDocClassTag(node) { - return node.kind === 332 /* JSDocClassTag */; -} -function isJSDocCallbackTag(node) { - return node.kind === 338 /* JSDocCallbackTag */; -} -function isJSDocPublicTag(node) { - return node.kind === 333 /* JSDocPublicTag */; -} -function isJSDocPrivateTag(node) { - return node.kind === 334 /* JSDocPrivateTag */; -} -function isJSDocProtectedTag(node) { - return node.kind === 335 /* JSDocProtectedTag */; -} -function isJSDocReadonlyTag(node) { - return node.kind === 336 /* JSDocReadonlyTag */; -} -function isJSDocOverrideTag(node) { - return node.kind === 337 /* JSDocOverrideTag */; -} -function isJSDocOverloadTag(node) { - return node.kind === 339 /* JSDocOverloadTag */; -} -function isJSDocDeprecatedTag(node) { - return node.kind === 331 /* JSDocDeprecatedTag */; -} -function isJSDocEnumTag(node) { - return node.kind === 340 /* JSDocEnumTag */; -} -function isJSDocParameterTag(node) { - return node.kind === 341 /* JSDocParameterTag */; -} -function isJSDocReturnTag(node) { - return node.kind === 342 /* JSDocReturnTag */; -} -function isJSDocThisTag(node) { - return node.kind === 343 /* JSDocThisTag */; -} -function isJSDocTypeTag(node) { - return node.kind === 344 /* JSDocTypeTag */; -} -function isJSDocTemplateTag(node) { - return node.kind === 345 /* JSDocTemplateTag */; -} -function isJSDocTypedefTag(node) { - return node.kind === 346 /* JSDocTypedefTag */; -} -function isJSDocPropertyTag(node) { - return node.kind === 348 /* JSDocPropertyTag */; -} -function isJSDocImplementsTag(node) { - return node.kind === 329 /* JSDocImplementsTag */; -} -function isJSDocSatisfiesTag(node) { - return node.kind === 350 /* JSDocSatisfiesTag */; -} -function isJSDocImportTag(node) { - return node.kind === 351 /* JSDocImportTag */; -} - -// src/compiler/factory/nodeChildren.ts -var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap(); -function getNodeChildren(node, sourceFile) { - var _a; - const kind = node.kind; - if (!isNodeKind(kind)) { - return emptyArray; - } - if (kind === 352 /* SyntaxList */) { - return node._children; - } - return (_a = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a.get(node); -} -function unsetNodeChildren(node, origSourceFile) { - var _a; - if (node.kind === 352 /* SyntaxList */) { - Debug.fail("Did not expect to unset the children of a SyntaxList."); - } - (_a = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a.delete(node); -} -function transferSourceFileChildren(sourceFile, targetSourceFile) { - const map2 = sourceFileToNodeChildren.get(sourceFile); - if (map2 !== void 0) { - sourceFileToNodeChildren.delete(sourceFile); - sourceFileToNodeChildren.set(targetSourceFile, map2); - } -} - -// src/compiler/factory/utilities.ts -function createEmptyExports(factory2) { - return factory2.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory2.createNamedExports([]), - /*moduleSpecifier*/ - void 0 - ); -} -function createMemberAccessForPropertyName(factory2, target, memberName, location) { - if (isComputedPropertyName(memberName)) { - return setTextRange(factory2.createElementAccessExpression(target, memberName.expression), location); - } else { - const expression = setTextRange( - isMemberName(memberName) ? factory2.createPropertyAccessExpression(target, memberName) : factory2.createElementAccessExpression(target, memberName), - memberName - ); - addEmitFlags(expression, 128 /* NoNestedSourceMaps */); - return expression; - } -} -function createReactNamespace(reactNamespace, parent) { - const react = parseNodeFactory.createIdentifier(reactNamespace || "React"); - setParent(react, getParseTreeNode(parent)); - return react; -} -function createJsxFactoryExpressionFromEntityName(factory2, jsxFactory, parent) { - if (isQualifiedName(jsxFactory)) { - const left = createJsxFactoryExpressionFromEntityName(factory2, jsxFactory.left, parent); - const right = factory2.createIdentifier(idText(jsxFactory.right)); - right.escapedText = jsxFactory.right.escapedText; - return factory2.createPropertyAccessExpression(left, right); - } else { - return createReactNamespace(idText(jsxFactory), parent); - } -} -function createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parent) { - return jsxFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFactoryEntity, parent) : factory2.createPropertyAccessExpression( - createReactNamespace(reactNamespace, parent), - "createElement" - ); -} -function createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parent) { - return jsxFragmentFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFragmentFactoryEntity, parent) : factory2.createPropertyAccessExpression( - createReactNamespace(reactNamespace, parent), - "Fragment" - ); -} -function createExpressionForJsxElement(factory2, callee, tagName, props, children, location) { - const argumentsList = [tagName]; - if (props) { - argumentsList.push(props); - } - if (children && children.length > 0) { - if (!props) { - argumentsList.push(factory2.createNull()); - } - if (children.length > 1) { - for (const child of children) { - startOnNewLine(child); - argumentsList.push(child); - } - } else { - argumentsList.push(children[0]); - } - } - return setTextRange( - factory2.createCallExpression( - callee, - /*typeArguments*/ - void 0, - argumentsList - ), - location - ); -} -function createExpressionForJsxFragment(factory2, jsxFactoryEntity, jsxFragmentFactoryEntity, reactNamespace, children, parentElement, location) { - const tagName = createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parentElement); - const argumentsList = [tagName, factory2.createNull()]; - if (children && children.length > 0) { - if (children.length > 1) { - for (const child of children) { - startOnNewLine(child); - argumentsList.push(child); - } - } else { - argumentsList.push(children[0]); - } - } - return setTextRange( - factory2.createCallExpression( - createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parentElement), - /*typeArguments*/ - void 0, - argumentsList - ), - location - ); -} -function createForOfBindingStatement(factory2, node, boundValue) { - if (isVariableDeclarationList(node)) { - const firstDeclaration = first(node.declarations); - const updatedDeclaration = factory2.updateVariableDeclaration( - firstDeclaration, - firstDeclaration.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - boundValue - ); - return setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.updateVariableDeclarationList(node, [updatedDeclaration]) - ), - /*location*/ - node - ); - } else { - const updatedExpression = setTextRange( - factory2.createAssignment(node, boundValue), - /*location*/ - node - ); - return setTextRange( - factory2.createExpressionStatement(updatedExpression), - /*location*/ - node - ); - } -} -function createExpressionFromEntityName(factory2, node) { - if (isQualifiedName(node)) { - const left = createExpressionFromEntityName(factory2, node.left); - const right = setParent(setTextRange(factory2.cloneNode(node.right), node.right), node.right.parent); - return setTextRange(factory2.createPropertyAccessExpression(left, right), node); - } else { - return setParent(setTextRange(factory2.cloneNode(node), node), node.parent); - } -} -function createExpressionForPropertyName(factory2, memberName) { - if (isIdentifier(memberName)) { - return factory2.createStringLiteralFromNode(memberName); - } else if (isComputedPropertyName(memberName)) { - return setParent(setTextRange(factory2.cloneNode(memberName.expression), memberName.expression), memberName.expression.parent); - } else { - return setParent(setTextRange(factory2.cloneNode(memberName), memberName), memberName.parent); - } -} -function createExpressionForAccessorDeclaration(factory2, properties, property, receiver, multiLine) { - const { firstAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(properties, property); - if (property === firstAccessor) { - return setTextRange( - factory2.createObjectDefinePropertyCall( - receiver, - createExpressionForPropertyName(factory2, property.name), - factory2.createPropertyDescriptor({ - enumerable: factory2.createFalse(), - configurable: true, - get: getAccessor && setTextRange( - setOriginalNode( - factory2.createFunctionExpression( - getModifiers(getAccessor), - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - getAccessor.parameters, - /*type*/ - void 0, - getAccessor.body - // TODO: GH#18217 - ), - getAccessor - ), - getAccessor - ), - set: setAccessor && setTextRange( - setOriginalNode( - factory2.createFunctionExpression( - getModifiers(setAccessor), - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - setAccessor.parameters, - /*type*/ - void 0, - setAccessor.body - // TODO: GH#18217 - ), - setAccessor - ), - setAccessor - ) - }, !multiLine) - ), - firstAccessor - ); - } - return void 0; -} -function createExpressionForPropertyAssignment(factory2, property, receiver) { - return setOriginalNode( - setTextRange( - factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - property.name, - /*location*/ - property.name - ), - property.initializer - ), - property - ), - property - ); -} -function createExpressionForShorthandPropertyAssignment(factory2, property, receiver) { - return setOriginalNode( - setTextRange( - factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - property.name, - /*location*/ - property.name - ), - factory2.cloneNode(property.name) - ), - /*location*/ - property - ), - /*original*/ - property - ); -} -function createExpressionForMethodDeclaration(factory2, method, receiver) { - return setOriginalNode( - setTextRange( - factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - method.name, - /*location*/ - method.name - ), - setOriginalNode( - setTextRange( - factory2.createFunctionExpression( - getModifiers(method), - method.asteriskToken, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - method.parameters, - /*type*/ - void 0, - method.body - // TODO: GH#18217 - ), - /*location*/ - method - ), - /*original*/ - method - ) - ), - /*location*/ - method - ), - /*original*/ - method - ); -} -function createExpressionForObjectLiteralElementLike(factory2, node, property, receiver) { - if (property.name && isPrivateIdentifier(property.name)) { - Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); - } - switch (property.kind) { - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); - case 303 /* PropertyAssignment */: - return createExpressionForPropertyAssignment(factory2, property, receiver); - case 304 /* ShorthandPropertyAssignment */: - return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); - case 174 /* MethodDeclaration */: - return createExpressionForMethodDeclaration(factory2, property, receiver); - } -} -function expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, recordTempVariable, resultVariable) { - const operator = node.operator; - Debug.assert(operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */, "Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression"); - const temp = factory2.createTempVariable(recordTempVariable); - expression = factory2.createAssignment(temp, expression); - setTextRange(expression, node.operand); - let operation = isPrefixUnaryExpression(node) ? factory2.createPrefixUnaryExpression(operator, temp) : factory2.createPostfixUnaryExpression(temp, operator); - setTextRange(operation, node); - if (resultVariable) { - operation = factory2.createAssignment(resultVariable, operation); - setTextRange(operation, node); - } - expression = factory2.createComma(expression, operation); - setTextRange(expression, node); - if (isPostfixUnaryExpression(node)) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; -} -function isInternalName(node) { - return (getEmitFlags(node) & 65536 /* InternalName */) !== 0; -} -function isLocalName(node) { - return (getEmitFlags(node) & 32768 /* LocalName */) !== 0; -} -function isExportName(node) { - return (getEmitFlags(node) & 16384 /* ExportName */) !== 0; -} -function isUseStrictPrologue(node) { - return isStringLiteral(node.expression) && node.expression.text === "use strict"; -} -function findUseStrictPrologue(statements) { - for (const statement of statements) { - if (isPrologueDirective(statement)) { - if (isUseStrictPrologue(statement)) { - return statement; - } - } else { - break; - } - } - return void 0; -} -function startsWithUseStrict(statements) { - const firstStatement = firstOrUndefined(statements); - return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); -} -function isCommaExpression(node) { - return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; -} -function isCommaSequence(node) { - return isCommaExpression(node) || isCommaListExpression(node); -} -function isJSDocTypeAssertion(node) { - return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node); -} -function getJSDocTypeAssertionType(node) { - const type = getJSDocType(node); - Debug.assertIsDefined(type); - return type; -} -function isOuterExpression(node, kinds = 63 /* All */) { - switch (node.kind) { - case 217 /* ParenthesizedExpression */: - if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { - return false; - } - return (kinds & 1 /* Parentheses */) !== 0; - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - return (kinds & 2 /* TypeAssertions */) !== 0; - case 238 /* SatisfiesExpression */: - return (kinds & (2 /* TypeAssertions */ | 32 /* Satisfies */)) !== 0; - case 233 /* ExpressionWithTypeArguments */: - return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0; - case 235 /* NonNullExpression */: - return (kinds & 4 /* NonNullAssertions */) !== 0; - case 355 /* PartiallyEmittedExpression */: - return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; - } - return false; -} -function skipOuterExpressions(node, kinds = 63 /* All */) { - while (isOuterExpression(node, kinds)) { - node = node.expression; - } - return node; -} -function walkUpOuterExpressions(node, kinds = 63 /* All */) { - let parent = node.parent; - while (isOuterExpression(parent, kinds)) { - parent = parent.parent; - Debug.assert(parent); - } - return parent; -} -function startOnNewLine(node) { - return setStartsOnNewLine( - node, - /*newLine*/ - true - ); -} -function getExternalHelpersModuleName(node) { - const parseNode = getOriginalNode(node, isSourceFile); - const emitNode = parseNode && parseNode.emitNode; - return emitNode && emitNode.externalHelpersModuleName; -} -function hasRecordedExternalHelpers(sourceFile) { - const parseNode = getOriginalNode(sourceFile, isSourceFile); - const emitNode = parseNode && parseNode.emitNode; - return !!emitNode && (!!emitNode.externalHelpersModuleName || !!emitNode.externalHelpers); -} -function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault) { - if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { - const moduleKind = getEmitModuleKind(compilerOptions); - const impliedModuleKind = getImpliedNodeFormatForEmitWorker(sourceFile, compilerOptions); - const helpers = getImportedHelpers(sourceFile); - if (moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */ || impliedModuleKind === 99 /* ESNext */ || impliedModuleKind === void 0 && moduleKind === 200 /* Preserve */) { - if (helpers) { - const helperNames = []; - for (const helper of helpers) { - const importName = helper.importName; - if (importName) { - pushIfUnique(helperNames, importName); - } - } - if (some(helperNames)) { - helperNames.sort(compareStringsCaseSensitive); - const namedBindings = nodeFactory.createNamedImports( - map(helperNames, (name) => isFileLevelUniqueName(sourceFile, name) ? nodeFactory.createImportSpecifier( - /*isTypeOnly*/ - false, - /*propertyName*/ - void 0, - nodeFactory.createIdentifier(name) - ) : nodeFactory.createImportSpecifier( - /*isTypeOnly*/ - false, - nodeFactory.createIdentifier(name), - helperFactory.getUnscopedHelperName(name) - )) - ); - const parseNode = getOriginalNode(sourceFile, isSourceFile); - const emitNode = getOrCreateEmitNode(parseNode); - emitNode.externalHelpers = true; - const externalHelpersImportDeclaration = nodeFactory.createImportDeclaration( - /*modifiers*/ - void 0, - nodeFactory.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - namedBindings - ), - nodeFactory.createStringLiteral(externalHelpersModuleNameText), - /*attributes*/ - void 0 - ); - addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); - return externalHelpersImportDeclaration; - } - } - } else { - const externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, helpers, hasExportStarsToExportValues, hasImportStar || hasImportDefault); - if (externalHelpersModuleName) { - const externalHelpersImportDeclaration = nodeFactory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - externalHelpersModuleName, - nodeFactory.createExternalModuleReference(nodeFactory.createStringLiteral(externalHelpersModuleNameText)) - ); - addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); - return externalHelpersImportDeclaration; - } - } - } -} -function getImportedHelpers(sourceFile) { - return filter(getEmitHelpers(sourceFile), (helper) => !helper.scoped); -} -function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, helpers, hasExportStarsToExportValues, hasImportStarOrImportDefault) { - const externalHelpersModuleName = getExternalHelpersModuleName(node); - if (externalHelpersModuleName) { - return externalHelpersModuleName; - } - const create = some(helpers) || (hasExportStarsToExportValues || getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault) && getEmitModuleFormatOfFileWorker(node, compilerOptions) < 4 /* System */; - if (create) { - const parseNode = getOriginalNode(node, isSourceFile); - const emitNode = getOrCreateEmitNode(parseNode); - return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory2.createUniqueName(externalHelpersModuleNameText)); - } -} -function getLocalNameForExternalImport(factory2, node, sourceFile) { - const namespaceDeclaration = getNamespaceDeclarationNode(node); - if (namespaceDeclaration && !isDefaultImport(node) && !isExportNamespaceAsDefaultDeclaration(node)) { - const name = namespaceDeclaration.name; - if (name.kind === 11 /* StringLiteral */) { - return factory2.getGeneratedNameForNode(node); - } - return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); - } - if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { - return factory2.getGeneratedNameForNode(node); - } - if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { - return factory2.getGeneratedNameForNode(node); - } - return void 0; -} -function getExternalModuleNameLiteral(factory2, importNode, sourceFile, host, resolver, compilerOptions) { - const moduleName = getExternalModuleName(importNode); - if (moduleName && isStringLiteral(moduleName)) { - return tryGetModuleNameFromDeclaration(importNode, host, factory2, resolver, compilerOptions) || tryRenameExternalModule(factory2, moduleName, sourceFile) || factory2.cloneNode(moduleName); - } - return void 0; -} -function tryRenameExternalModule(factory2, moduleName, sourceFile) { - const rename = sourceFile.renamedDependencies && sourceFile.renamedDependencies.get(moduleName.text); - return rename ? factory2.createStringLiteral(rename) : void 0; -} -function tryGetModuleNameFromFile(factory2, file, host, options) { - if (!file) { - return void 0; - } - if (file.moduleName) { - return factory2.createStringLiteral(file.moduleName); - } - if (!file.isDeclarationFile && options.outFile) { - return factory2.createStringLiteral(getExternalModuleNameFromPath(host, file.fileName)); - } - return void 0; -} -function tryGetModuleNameFromDeclaration(declaration, host, factory2, resolver, compilerOptions) { - return tryGetModuleNameFromFile(factory2, resolver.getExternalModuleFileFromDeclaration(declaration), host, compilerOptions); -} -function getInitializerOfBindingOrAssignmentElement(bindingElement) { - if (isDeclarationBindingElement(bindingElement)) { - return bindingElement.initializer; - } - if (isPropertyAssignment(bindingElement)) { - const initializer = bindingElement.initializer; - return isAssignmentExpression( - initializer, - /*excludeCompoundAssignment*/ - true - ) ? initializer.right : void 0; - } - if (isShorthandPropertyAssignment(bindingElement)) { - return bindingElement.objectAssignmentInitializer; - } - if (isAssignmentExpression( - bindingElement, - /*excludeCompoundAssignment*/ - true - )) { - return bindingElement.right; - } - if (isSpreadElement(bindingElement)) { - return getInitializerOfBindingOrAssignmentElement(bindingElement.expression); - } -} -function getTargetOfBindingOrAssignmentElement(bindingElement) { - if (isDeclarationBindingElement(bindingElement)) { - return bindingElement.name; - } - if (isObjectLiteralElementLike(bindingElement)) { - switch (bindingElement.kind) { - case 303 /* PropertyAssignment */: - return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); - case 304 /* ShorthandPropertyAssignment */: - return bindingElement.name; - case 305 /* SpreadAssignment */: - return getTargetOfBindingOrAssignmentElement(bindingElement.expression); - } - return void 0; - } - if (isAssignmentExpression( - bindingElement, - /*excludeCompoundAssignment*/ - true - )) { - return getTargetOfBindingOrAssignmentElement(bindingElement.left); - } - if (isSpreadElement(bindingElement)) { - return getTargetOfBindingOrAssignmentElement(bindingElement.expression); - } - return bindingElement; -} -function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { - switch (bindingElement.kind) { - case 169 /* Parameter */: - case 208 /* BindingElement */: - return bindingElement.dotDotDotToken; - case 230 /* SpreadElement */: - case 305 /* SpreadAssignment */: - return bindingElement; - } - return void 0; -} -function getPropertyNameOfBindingOrAssignmentElement(bindingElement) { - const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement); - Debug.assert(!!propertyName || isSpreadAssignment(bindingElement), "Invalid property name for binding element."); - return propertyName; -} -function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { - switch (bindingElement.kind) { - case 208 /* BindingElement */: - if (bindingElement.propertyName) { - const propertyName = bindingElement.propertyName; - if (isPrivateIdentifier(propertyName)) { - return Debug.failBadSyntaxKind(propertyName); - } - return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; - } - break; - case 303 /* PropertyAssignment */: - if (bindingElement.name) { - const propertyName = bindingElement.name; - if (isPrivateIdentifier(propertyName)) { - return Debug.failBadSyntaxKind(propertyName); - } - return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; - } - break; - case 305 /* SpreadAssignment */: - if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { - return Debug.failBadSyntaxKind(bindingElement.name); - } - return bindingElement.name; - } - const target = getTargetOfBindingOrAssignmentElement(bindingElement); - if (target && isPropertyName(target)) { - return target; - } -} -function isStringOrNumericLiteral(node) { - const kind = node.kind; - return kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */; -} -function getElementsOfBindingOrAssignmentPattern(name) { - switch (name.kind) { - case 206 /* ObjectBindingPattern */: - case 207 /* ArrayBindingPattern */: - case 209 /* ArrayLiteralExpression */: - return name.elements; - case 210 /* ObjectLiteralExpression */: - return name.properties; - } -} -function getJSDocTypeAliasName(fullName) { - if (fullName) { - let rightNode = fullName; - while (true) { - if (isIdentifier(rightNode) || !rightNode.body) { - return isIdentifier(rightNode) ? rightNode : rightNode.name; - } - rightNode = rightNode.body; - } - } -} -function canHaveIllegalTypeParameters(node) { - const kind = node.kind; - return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; -} -function canHaveIllegalDecorators(node) { - const kind = node.kind; - return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; -} -function canHaveIllegalModifiers(node) { - const kind = node.kind; - return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; -} -function isQuestionOrExclamationToken(node) { - return isQuestionToken(node) || isExclamationToken(node); -} -function isIdentifierOrThisTypeNode(node) { - return isIdentifier(node) || isThisTypeNode(node); -} -function isReadonlyKeywordOrPlusOrMinusToken(node) { - return isReadonlyKeyword(node) || isPlusToken(node) || isMinusToken(node); -} -function isQuestionOrPlusOrMinusToken(node) { - return isQuestionToken(node) || isPlusToken(node) || isMinusToken(node); -} -function isModuleName(node) { - return isIdentifier(node) || isStringLiteral(node); -} -function isExponentiationOperator(kind) { - return kind === 43 /* AsteriskAsteriskToken */; -} -function isMultiplicativeOperator(kind) { - return kind === 42 /* AsteriskToken */ || kind === 44 /* SlashToken */ || kind === 45 /* PercentToken */; -} -function isMultiplicativeOperatorOrHigher(kind) { - return isExponentiationOperator(kind) || isMultiplicativeOperator(kind); -} -function isAdditiveOperator(kind) { - return kind === 40 /* PlusToken */ || kind === 41 /* MinusToken */; -} -function isAdditiveOperatorOrHigher(kind) { - return isAdditiveOperator(kind) || isMultiplicativeOperatorOrHigher(kind); -} -function isShiftOperator(kind) { - return kind === 48 /* LessThanLessThanToken */ || kind === 49 /* GreaterThanGreaterThanToken */ || kind === 50 /* GreaterThanGreaterThanGreaterThanToken */; -} -function isShiftOperatorOrHigher(kind) { - return isShiftOperator(kind) || isAdditiveOperatorOrHigher(kind); -} -function isRelationalOperator(kind) { - return kind === 30 /* LessThanToken */ || kind === 33 /* LessThanEqualsToken */ || kind === 32 /* GreaterThanToken */ || kind === 34 /* GreaterThanEqualsToken */ || kind === 104 /* InstanceOfKeyword */ || kind === 103 /* InKeyword */; -} -function isRelationalOperatorOrHigher(kind) { - return isRelationalOperator(kind) || isShiftOperatorOrHigher(kind); -} -function isEqualityOperator(kind) { - return kind === 35 /* EqualsEqualsToken */ || kind === 37 /* EqualsEqualsEqualsToken */ || kind === 36 /* ExclamationEqualsToken */ || kind === 38 /* ExclamationEqualsEqualsToken */; -} -function isEqualityOperatorOrHigher(kind) { - return isEqualityOperator(kind) || isRelationalOperatorOrHigher(kind); -} -function isBitwiseOperator(kind) { - return kind === 51 /* AmpersandToken */ || kind === 52 /* BarToken */ || kind === 53 /* CaretToken */; -} -function isBitwiseOperatorOrHigher(kind) { - return isBitwiseOperator(kind) || isEqualityOperatorOrHigher(kind); -} -function isLogicalOperator2(kind) { - return kind === 56 /* AmpersandAmpersandToken */ || kind === 57 /* BarBarToken */; -} -function isLogicalOperatorOrHigher(kind) { - return isLogicalOperator2(kind) || isBitwiseOperatorOrHigher(kind); -} -function isAssignmentOperatorOrHigher(kind) { - return kind === 61 /* QuestionQuestionToken */ || isLogicalOperatorOrHigher(kind) || isAssignmentOperator(kind); -} -function isBinaryOperator(kind) { - return isAssignmentOperatorOrHigher(kind) || kind === 28 /* CommaToken */; -} -function isBinaryOperatorToken(node) { - return isBinaryOperator(node.kind); -} -var BinaryExpressionState; -((BinaryExpressionState2) => { - function enter(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, outerState) { - const prevUserState = stackIndex > 0 ? userStateStack[stackIndex - 1] : void 0; - Debug.assertEqual(stateStack[stackIndex], enter); - userStateStack[stackIndex] = machine.onEnter(nodeStack[stackIndex], prevUserState, outerState); - stateStack[stackIndex] = nextState(machine, enter); - return stackIndex; - } - BinaryExpressionState2.enter = enter; - function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { - Debug.assertEqual(stateStack[stackIndex], left); - Debug.assertIsDefined(machine.onLeft); - stateStack[stackIndex] = nextState(machine, left); - const nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]); - if (nextNode) { - checkCircularity(stackIndex, nodeStack, nextNode); - return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode); - } - return stackIndex; - } - BinaryExpressionState2.left = left; - function operator(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { - Debug.assertEqual(stateStack[stackIndex], operator); - Debug.assertIsDefined(machine.onOperator); - stateStack[stackIndex] = nextState(machine, operator); - machine.onOperator(nodeStack[stackIndex].operatorToken, userStateStack[stackIndex], nodeStack[stackIndex]); - return stackIndex; - } - BinaryExpressionState2.operator = operator; - function right(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { - Debug.assertEqual(stateStack[stackIndex], right); - Debug.assertIsDefined(machine.onRight); - stateStack[stackIndex] = nextState(machine, right); - const nextNode = machine.onRight(nodeStack[stackIndex].right, userStateStack[stackIndex], nodeStack[stackIndex]); - if (nextNode) { - checkCircularity(stackIndex, nodeStack, nextNode); - return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode); - } - return stackIndex; - } - BinaryExpressionState2.right = right; - function exit(machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, _outerState) { - Debug.assertEqual(stateStack[stackIndex], exit); - stateStack[stackIndex] = nextState(machine, exit); - const result = machine.onExit(nodeStack[stackIndex], userStateStack[stackIndex]); - if (stackIndex > 0) { - stackIndex--; - if (machine.foldState) { - const side = stateStack[stackIndex] === exit ? "right" : "left"; - userStateStack[stackIndex] = machine.foldState(userStateStack[stackIndex], result, side); - } - } else { - resultHolder.value = result; - } - return stackIndex; - } - BinaryExpressionState2.exit = exit; - function done(_machine, stackIndex, stateStack, _nodeStack, _userStateStack, _resultHolder, _outerState) { - Debug.assertEqual(stateStack[stackIndex], done); - return stackIndex; - } - BinaryExpressionState2.done = done; - function nextState(machine, currentState) { - switch (currentState) { - case enter: - if (machine.onLeft) return left; - // falls through - case left: - if (machine.onOperator) return operator; - // falls through - case operator: - if (machine.onRight) return right; - // falls through - case right: - return exit; - case exit: - return done; - case done: - return done; - default: - Debug.fail("Invalid state"); - } - } - BinaryExpressionState2.nextState = nextState; - function pushStack(stackIndex, stateStack, nodeStack, userStateStack, node) { - stackIndex++; - stateStack[stackIndex] = enter; - nodeStack[stackIndex] = node; - userStateStack[stackIndex] = void 0; - return stackIndex; - } - function checkCircularity(stackIndex, nodeStack, node) { - if (Debug.shouldAssert(2 /* Aggressive */)) { - while (stackIndex >= 0) { - Debug.assert(nodeStack[stackIndex] !== node, "Circular traversal detected."); - stackIndex--; - } - } - } -})(BinaryExpressionState || (BinaryExpressionState = {})); -var BinaryExpressionStateMachine = class { - constructor(onEnter, onLeft, onOperator, onRight, onExit, foldState) { - this.onEnter = onEnter; - this.onLeft = onLeft; - this.onOperator = onOperator; - this.onRight = onRight; - this.onExit = onExit; - this.foldState = foldState; - } -}; -function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState) { - const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit, foldState); - return trampoline; - function trampoline(node, outerState) { - const resultHolder = { value: void 0 }; - const stateStack = [BinaryExpressionState.enter]; - const nodeStack = [node]; - const userStateStack = [void 0]; - let stackIndex = 0; - while (stateStack[stackIndex] !== BinaryExpressionState.done) { - stackIndex = stateStack[stackIndex](machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, outerState); - } - Debug.assertEqual(stackIndex, 0); - return resultHolder.value; - } -} -function isExportOrDefaultKeywordKind(kind) { - return kind === 95 /* ExportKeyword */ || kind === 90 /* DefaultKeyword */; -} -function isExportOrDefaultModifier(node) { - const kind = node.kind; - return isExportOrDefaultKeywordKind(kind); -} -function elideNodes(factory2, nodes) { - if (nodes === void 0) return void 0; - if (nodes.length === 0) return nodes; - return setTextRange(factory2.createNodeArray([], nodes.hasTrailingComma), nodes); -} -function getNodeForGeneratedName(name) { - var _a; - const autoGenerate = name.emitNode.autoGenerate; - if (autoGenerate.flags & 4 /* Node */) { - const autoGenerateId = autoGenerate.id; - let node = name; - let original = node.original; - while (original) { - node = original; - const autoGenerate2 = (_a = node.emitNode) == null ? void 0 : _a.autoGenerate; - if (isMemberName(node) && (autoGenerate2 === void 0 || !!(autoGenerate2.flags & 4 /* Node */) && autoGenerate2.id !== autoGenerateId)) { - break; - } - original = node.original; - } - return node; - } - return name; -} -function formatGeneratedNamePart(part, generateName) { - return typeof part === "object" ? formatGeneratedName( - /*privateName*/ - false, - part.prefix, - part.node, - part.suffix, - generateName - ) : typeof part === "string" ? part.length > 0 && part.charCodeAt(0) === 35 /* hash */ ? part.slice(1) : part : ""; -} -function formatIdentifier(name, generateName) { - return typeof name === "string" ? name : formatIdentifierWorker(name, Debug.checkDefined(generateName)); -} -function formatIdentifierWorker(node, generateName) { - return isGeneratedPrivateIdentifier(node) ? generateName(node).slice(1) : isGeneratedIdentifier(node) ? generateName(node) : isPrivateIdentifier(node) ? node.escapedText.slice(1) : idText(node); -} -function formatGeneratedName(privateName, prefix, baseName, suffix, generateName) { - prefix = formatGeneratedNamePart(prefix, generateName); - suffix = formatGeneratedNamePart(suffix, generateName); - baseName = formatIdentifier(baseName, generateName); - return `${privateName ? "#" : ""}${prefix}${baseName}${suffix}`; -} -function createAccessorPropertyBackingField(factory2, node, modifiers, initializer) { - return factory2.updatePropertyDeclaration( - node, - modifiers, - factory2.getGeneratedPrivateNameForNode( - node.name, - /*prefix*/ - void 0, - "_accessor_storage" - ), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); -} -function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { - return factory2.createGetAccessorDeclaration( - modifiers, - name, - [], - /*type*/ - void 0, - factory2.createBlock([ - factory2.createReturnStatement( - factory2.createPropertyAccessExpression( - receiver, - factory2.getGeneratedPrivateNameForNode( - node.name, - /*prefix*/ - void 0, - "_accessor_storage" - ) - ) - ) - ]) - ); -} -function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { - return factory2.createSetAccessorDeclaration( - modifiers, - name, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "value" - )], - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression( - receiver, - factory2.getGeneratedPrivateNameForNode( - node.name, - /*prefix*/ - void 0, - "_accessor_storage" - ) - ), - factory2.createIdentifier("value") - ) - ) - ]) - ); -} -function findComputedPropertyNameCacheAssignment(name) { - let node = name.expression; - while (true) { - node = skipOuterExpressions(node); - if (isCommaListExpression(node)) { - node = last(node.elements); - continue; - } - if (isCommaExpression(node)) { - node = node.right; - continue; - } - if (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - ) && isGeneratedIdentifier(node.left)) { - return node; - } - break; - } -} -function isSyntheticParenthesizedExpression(node) { - return isParenthesizedExpression(node) && nodeIsSynthesized(node) && !node.emitNode; -} -function flattenCommaListWorker(node, expressions) { - if (isSyntheticParenthesizedExpression(node)) { - flattenCommaListWorker(node.expression, expressions); - } else if (isCommaExpression(node)) { - flattenCommaListWorker(node.left, expressions); - flattenCommaListWorker(node.right, expressions); - } else if (isCommaListExpression(node)) { - for (const child of node.elements) { - flattenCommaListWorker(child, expressions); - } - } else { - expressions.push(node); - } -} -function flattenCommaList(node) { - const expressions = []; - flattenCommaListWorker(node, expressions); - return expressions; -} -function containsObjectRestOrSpread(node) { - if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) return true; - if (node.transformFlags & 128 /* ContainsES2018 */) { - for (const element of getElementsOfBindingOrAssignmentPattern(node)) { - const target = getTargetOfBindingOrAssignmentElement(element); - if (target && isAssignmentPattern(target)) { - if (target.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - return true; - } - if (target.transformFlags & 128 /* ContainsES2018 */) { - if (containsObjectRestOrSpread(target)) return true; - } - } - } - } - return false; -} - -// src/compiler/factory/utilitiesPublic.ts -function setTextRange(range, location) { - return location ? setTextRangePosEnd(range, location.pos, location.end) : range; -} -function canHaveModifiers(node) { - const kind = node.kind; - return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; -} -function canHaveDecorators(node) { - const kind = node.kind; - return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; -} - -// src/compiler/parser.ts -var NodeConstructor; -var TokenConstructor; -var IdentifierConstructor; -var PrivateIdentifierConstructor; -var SourceFileConstructor; -var parseBaseNodeFactory = { - createBaseSourceFileNode: (kind) => new (SourceFileConstructor || (SourceFileConstructor = objectAllocator.getSourceFileConstructor()))(kind, -1, -1), - createBaseIdentifierNode: (kind) => new (IdentifierConstructor || (IdentifierConstructor = objectAllocator.getIdentifierConstructor()))(kind, -1, -1), - createBasePrivateIdentifierNode: (kind) => new (PrivateIdentifierConstructor || (PrivateIdentifierConstructor = objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1), - createBaseTokenNode: (kind) => new (TokenConstructor || (TokenConstructor = objectAllocator.getTokenConstructor()))(kind, -1, -1), - createBaseNode: (kind) => new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, -1, -1) -}; -var parseNodeFactory = createNodeFactory(1 /* NoParenthesizerRules */, parseBaseNodeFactory); -function visitNode2(cbNode, node) { - return node && cbNode(node); -} -function visitNodes(cbNode, cbNodes, nodes) { - if (nodes) { - if (cbNodes) { - return cbNodes(nodes); - } - for (const node of nodes) { - const result = cbNode(node); - if (result) { - return result; - } - } - } -} -function isJSDocLikeText(text, start) { - return text.charCodeAt(start + 1) === 42 /* asterisk */ && text.charCodeAt(start + 2) === 42 /* asterisk */ && text.charCodeAt(start + 3) !== 47 /* slash */; -} -function isFileProbablyExternalModule(sourceFile) { - return forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) || getImportMetaIfNecessary(sourceFile); -} -function isAnExternalModuleIndicatorNode(node) { - return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; -} -function getImportMetaIfNecessary(sourceFile) { - return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; -} -function walkTreeForImportMeta(node) { - return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); -} -function hasModifierOfKind(node, kind) { - return some(node.modifiers, (m) => m.kind === kind); -} -function isImportMeta2(node) { - return isMetaProperty(node) && node.keywordToken === 102 /* ImportKeyword */ && node.name.escapedText === "meta"; -} -var forEachChildTable = { - [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); - }, - [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); - }, - [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); - }, - [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); - }, - [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); - }, - [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); - }, - [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); - }, - [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); - }, - [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); - }, - [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); - }, - [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); - }, - [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); - }, - [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, - [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, - [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); - }, - [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); - }, - [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); - }, - [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); - }, - [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); - }, - [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); - }, - [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); - }, - [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.members); - }, - [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.elementType); - }, - [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); - }, - [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, - [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, - [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); - }, - [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.typeParameter); - }, - [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.attributes) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); - }, - [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.assertClause); - }, - [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, - [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, - [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); - }, - [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); - }, - [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.literal); - }, - [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); - }, - [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, - [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); - }, - [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.properties); - }, - [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); - }, - [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); - }, - [213 /* CallExpression */]: forEachChildInCallOrNewExpression, - [214 /* NewExpression */]: forEachChildInCallOrNewExpression, - [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); - }, - [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); - }, - [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.operand); - }, - [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); - }, - [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.operand); - }, - [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); - }, - [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); - }, - [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); - }, - [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name); - }, - [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); - }, - [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [241 /* Block */]: forEachChildInBlock, - [268 /* ModuleBlock */]: forEachChildInBlock, - [307 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); - }, - [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); - }, - [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.declarations); - }, - [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); - }, - [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); - }, - [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); - }, - [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); - }, - [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); - }, - [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); - }, - [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, - [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, - [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); - }, - [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); - }, - [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.clauses); - }, - [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); - }, - [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.statements); - }, - [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); - }, - [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); - }, - [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); - }, - [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, - [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, - [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); - }, - [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); - }, - [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); - }, - [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); - }, - [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); - }, - [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); - }, - [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes); - }, - [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); - }, - [300 /* ImportAttributes */]: function forEachChildInImportAttributes(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); - }, - [301 /* ImportAttribute */]: function forEachChildInImportAttribute(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); - }, - [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); - }, - [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name); - }, - [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name); - }, - [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, - [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, - [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes); - }, - [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, - [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, - [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); - }, - [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); - }, - [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); - }, - [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); - }, - [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); - }, - [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.types); - }, - [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); - }, - [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers); - }, - [356 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); - }, - [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); - }, - [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); - }, - [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, - [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.properties); - }, - [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); - }, - [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); - }, - [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); - }, - [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.tagName); - }, - [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); - }, - [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [309 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [315 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [314 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [316 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [318 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, - [317 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); - }, - [320 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { - return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); - }, - [347 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [310 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name); - }, - [311 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); - }, - [341 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, - [348 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, - [330 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [329 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [328 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [345 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [346 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 309 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); - }, - [338 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); - }, - [342 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, - [344 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, - [343 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, - [340 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, - [350 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, - [349 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, - [339 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, - [323 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { - return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); - }, - [324 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, - [325 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, - [326 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, - [322 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { - return forEach(node.jsDocPropertyTags, cbNode); - }, - [327 /* JSDocTag */]: forEachChildInJSDocTag, - [332 /* JSDocClassTag */]: forEachChildInJSDocTag, - [333 /* JSDocPublicTag */]: forEachChildInJSDocTag, - [334 /* JSDocPrivateTag */]: forEachChildInJSDocTag, - [335 /* JSDocProtectedTag */]: forEachChildInJSDocTag, - [336 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, - [331 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, - [337 /* JSDocOverrideTag */]: forEachChildInJSDocTag, - [351 /* JSDocImportTag */]: forEachChildInJSDocImportTag, - [355 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression -}; -function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); -} -function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.types); -} -function forEachChildInParenthesizedTypeOrTypeOperator(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.type); -} -function forEachChildInObjectOrArrayBindingPattern(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); -} -function forEachChildInCallOrNewExpression(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.expression) || // TODO: should we separate these branches out? - visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNodes(cbNode, cbNodes, node.arguments); -} -function forEachChildInBlock(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.statements); -} -function forEachChildInContinueOrBreakStatement(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.label); -} -function forEachChildInClassDeclarationOrExpression(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); -} -function forEachChildInNamedImportsOrExports(node, cbNode, cbNodes) { - return visitNodes(cbNode, cbNodes, node.elements); -} -function forEachChildInImportOrExportSpecifier(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name); -} -function forEachChildInJsxOpeningOrSelfClosingElement(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.attributes); -} -function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.type); -} -function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (node.isNameFirst ? visitNode2(cbNode, node.name) || visitNode2(cbNode, node.typeExpression) : visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.name)) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); -} -function forEachChildInJSDocTypeLikeTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); -} -function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.name); -} -function forEachChildInJSDocTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); -} -function forEachChildInJSDocImportTag(node, cbNode, cbNodes) { - return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); -} -function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) { - return visitNode2(cbNode, node.expression); -} -function forEachChild(node, cbNode, cbNodes) { - if (node === void 0 || node.kind <= 165 /* LastToken */) { - return; - } - const fn = forEachChildTable[node.kind]; - return fn === void 0 ? void 0 : fn(node, cbNode, cbNodes); -} -function forEachChildRecursively(rootNode, cbNode, cbNodes) { - const queue = gatherPossibleChildren(rootNode); - const parents = []; - while (parents.length < queue.length) { - parents.push(rootNode); - } - while (queue.length !== 0) { - const current = queue.pop(); - const parent = parents.pop(); - if (isArray(current)) { - if (cbNodes) { - const res = cbNodes(current, parent); - if (res) { - if (res === "skip") continue; - return res; - } - } - for (let i = current.length - 1; i >= 0; --i) { - queue.push(current[i]); - parents.push(parent); - } - } else { - const res = cbNode(current, parent); - if (res) { - if (res === "skip") continue; - return res; - } - if (current.kind >= 166 /* FirstNode */) { - for (const child of gatherPossibleChildren(current)) { - queue.push(child); - parents.push(current); - } - } - } - } -} -function gatherPossibleChildren(node) { - const children = []; - forEachChild(node, addWorkItem, addWorkItem); - return children; - function addWorkItem(n) { - children.unshift(n); - } -} -function setExternalModuleIndicator(sourceFile) { - sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile); -} -function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push( - tracing.Phase.Parse, - "createSourceFile", - { path: fileName }, - /*separateBeginAndEnd*/ - true - ); - mark("beforeParse"); - let result; - const { - languageVersion, - setExternalModuleIndicator: overrideSetExternalModuleIndicator, - impliedNodeFormat: format, - jsDocParsingMode - } = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions }; - if (languageVersion === 100 /* JSON */) { - result = Parser.parseSourceFile( - fileName, - sourceText, - languageVersion, - /*syntaxCursor*/ - void 0, - setParentNodes, - 6 /* JSON */, - noop, - jsDocParsingMode - ); - } else { - const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file) => { - file.impliedNodeFormat = format; - return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file); - }; - result = Parser.parseSourceFile( - fileName, - sourceText, - languageVersion, - /*syntaxCursor*/ - void 0, - setParentNodes, - scriptKind, - setIndicator, - jsDocParsingMode - ); - } - mark("afterParse"); - measure("Parse", "beforeParse", "afterParse"); - (_b = tracing) == null ? void 0 : _b.pop(); - return result; -} -function parseIsolatedEntityName(text, languageVersion) { - return Parser.parseIsolatedEntityName(text, languageVersion); -} -function parseJsonText(fileName, sourceText) { - return Parser.parseJsonText(fileName, sourceText); -} -function isExternalModule(file) { - return file.externalModuleIndicator !== void 0; -} -var Parser; -((Parser2) => { - var scanner = createScanner( - 99 /* Latest */, - /*skipTrivia*/ - true - ); - var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; - var NodeConstructor2; - var TokenConstructor2; - var IdentifierConstructor2; - var PrivateIdentifierConstructor2; - var SourceFileConstructor2; - function countNode(node) { - nodeCount++; - return node; - } - var baseNodeFactory = { - createBaseSourceFileNode: (kind) => countNode(new SourceFileConstructor2( - kind, - /*pos*/ - 0, - /*end*/ - 0 - )), - createBaseIdentifierNode: (kind) => countNode(new IdentifierConstructor2( - kind, - /*pos*/ - 0, - /*end*/ - 0 - )), - createBasePrivateIdentifierNode: (kind) => countNode(new PrivateIdentifierConstructor2( - kind, - /*pos*/ - 0, - /*end*/ - 0 - )), - createBaseTokenNode: (kind) => countNode(new TokenConstructor2( - kind, - /*pos*/ - 0, - /*end*/ - 0 - )), - createBaseNode: (kind) => countNode(new NodeConstructor2( - kind, - /*pos*/ - 0, - /*end*/ - 0 - )) - }; - var factory2 = createNodeFactory(1 /* NoParenthesizerRules */ | 2 /* NoNodeConverters */ | 8 /* NoOriginalNode */, baseNodeFactory); - var { - createNodeArray: factoryCreateNodeArray, - createNumericLiteral: factoryCreateNumericLiteral, - createStringLiteral: factoryCreateStringLiteral, - createLiteralLikeNode: factoryCreateLiteralLikeNode, - createIdentifier: factoryCreateIdentifier, - createPrivateIdentifier: factoryCreatePrivateIdentifier, - createToken: factoryCreateToken, - createArrayLiteralExpression: factoryCreateArrayLiteralExpression, - createObjectLiteralExpression: factoryCreateObjectLiteralExpression, - createPropertyAccessExpression: factoryCreatePropertyAccessExpression, - createPropertyAccessChain: factoryCreatePropertyAccessChain, - createElementAccessExpression: factoryCreateElementAccessExpression, - createElementAccessChain: factoryCreateElementAccessChain, - createCallExpression: factoryCreateCallExpression, - createCallChain: factoryCreateCallChain, - createNewExpression: factoryCreateNewExpression, - createParenthesizedExpression: factoryCreateParenthesizedExpression, - createBlock: factoryCreateBlock, - createVariableStatement: factoryCreateVariableStatement, - createExpressionStatement: factoryCreateExpressionStatement, - createIfStatement: factoryCreateIfStatement, - createWhileStatement: factoryCreateWhileStatement, - createForStatement: factoryCreateForStatement, - createForOfStatement: factoryCreateForOfStatement, - createVariableDeclaration: factoryCreateVariableDeclaration, - createVariableDeclarationList: factoryCreateVariableDeclarationList - } = factory2; - var fileName; - var sourceFlags; - var sourceText; - var languageVersion; - var scriptKind; - var languageVariant; - var parseDiagnostics; - var jsDocDiagnostics; - var syntaxCursor; - var currentToken; - var nodeCount; - var identifiers; - var identifierCount; - var parsingContext; - var notParenthesizedArrow; - var contextFlags; - var topLevel = true; - var parseErrorBeforeNextFinishedNode = false; - function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride, jsDocParsingMode = 0 /* ParseAll */) { - var _a; - scriptKind2 = ensureScriptKind(fileName2, scriptKind2); - if (scriptKind2 === 6 /* JSON */) { - const result2 = parseJsonText2(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes); - convertToJson( - result2, - (_a = result2.statements[0]) == null ? void 0 : _a.expression, - result2.parseDiagnostics, - /*returnValue*/ - false, - /*jsonConversionNotifier*/ - void 0 - ); - result2.referencedFiles = emptyArray; - result2.typeReferenceDirectives = emptyArray; - result2.libReferenceDirectives = emptyArray; - result2.amdDependencies = emptyArray; - result2.hasNoDefaultLib = false; - result2.pragmas = emptyMap; - return result2; - } - initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2, jsDocParsingMode); - const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator, jsDocParsingMode); - clearState(); - return result; - } - Parser2.parseSourceFile = parseSourceFile; - function parseIsolatedEntityName2(content, languageVersion2) { - initializeState( - "", - content, - languageVersion2, - /*syntaxCursor*/ - void 0, - 1 /* JS */, - 0 /* ParseAll */ - ); - nextToken(); - const entityName = parseEntityName( - /*allowReservedWords*/ - true - ); - const isValid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length; - clearState(); - return isValid ? entityName : void 0; - } - Parser2.parseIsolatedEntityName = parseIsolatedEntityName2; - function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) { - initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, 6 /* JSON */, 0 /* ParseAll */); - sourceFlags = contextFlags; - nextToken(); - const pos = getNodePos(); - let statements, endOfFileToken; - if (token() === 1 /* EndOfFileToken */) { - statements = createNodeArray([], pos, pos); - endOfFileToken = parseTokenNode(); - } else { - let expressions; - while (token() !== 1 /* EndOfFileToken */) { - let expression2; - switch (token()) { - case 23 /* OpenBracketToken */: - expression2 = parseArrayLiteralExpression(); - break; - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 106 /* NullKeyword */: - expression2 = parseTokenNode(); - break; - case 41 /* MinusToken */: - if (lookAhead(() => nextToken() === 9 /* NumericLiteral */ && nextToken() !== 59 /* ColonToken */)) { - expression2 = parsePrefixUnaryExpression(); - } else { - expression2 = parseObjectLiteralExpression(); - } - break; - case 9 /* NumericLiteral */: - case 11 /* StringLiteral */: - if (lookAhead(() => nextToken() !== 59 /* ColonToken */)) { - expression2 = parseLiteralNode(); - break; - } - // falls through - default: - expression2 = parseObjectLiteralExpression(); - break; - } - if (expressions && isArray(expressions)) { - expressions.push(expression2); - } else if (expressions) { - expressions = [expressions, expression2]; - } else { - expressions = expression2; - if (token() !== 1 /* EndOfFileToken */) { - parseErrorAtCurrentToken(Diagnostics.Unexpected_token); - } - } - } - const expression = isArray(expressions) ? finishNode(factoryCreateArrayLiteralExpression(expressions), pos) : Debug.checkDefined(expressions); - const statement = factoryCreateExpressionStatement(expression); - finishNode(statement, pos); - statements = createNodeArray([statement], pos); - endOfFileToken = parseExpectedToken(1 /* EndOfFileToken */, Diagnostics.Unexpected_token); - } - const sourceFile = createSourceFile2( - fileName2, - 2 /* ES2015 */, - 6 /* JSON */, - /*isDeclarationFile*/ - false, - statements, - endOfFileToken, - sourceFlags, - noop - ); - if (setParentNodes) { - fixupParentReferences(sourceFile); - } - sourceFile.nodeCount = nodeCount; - sourceFile.identifierCount = identifierCount; - sourceFile.identifiers = identifiers; - sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); - if (jsDocDiagnostics) { - sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); - } - const result = sourceFile; - clearState(); - return result; - } - Parser2.parseJsonText = parseJsonText2; - function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind, _jsDocParsingMode) { - NodeConstructor2 = objectAllocator.getNodeConstructor(); - TokenConstructor2 = objectAllocator.getTokenConstructor(); - IdentifierConstructor2 = objectAllocator.getIdentifierConstructor(); - PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor(); - SourceFileConstructor2 = objectAllocator.getSourceFileConstructor(); - fileName = normalizePath(_fileName); - sourceText = _sourceText; - languageVersion = _languageVersion; - syntaxCursor = _syntaxCursor; - scriptKind = _scriptKind; - languageVariant = getLanguageVariant(_scriptKind); - parseDiagnostics = []; - parsingContext = 0; - identifiers = /* @__PURE__ */ new Map(); - identifierCount = 0; - nodeCount = 0; - sourceFlags = 0; - topLevel = true; - switch (scriptKind) { - case 1 /* JS */: - case 2 /* JSX */: - contextFlags = 524288 /* JavaScriptFile */; - break; - case 6 /* JSON */: - contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; - break; - default: - contextFlags = 0 /* None */; - break; - } - parseErrorBeforeNextFinishedNode = false; - scanner.setText(sourceText); - scanner.setOnError(scanError); - scanner.setScriptTarget(languageVersion); - scanner.setLanguageVariant(languageVariant); - scanner.setScriptKind(scriptKind); - scanner.setJSDocParsingMode(_jsDocParsingMode); - } - function clearState() { - scanner.clearCommentDirectives(); - scanner.setText(""); - scanner.setOnError(void 0); - scanner.setScriptKind(0 /* Unknown */); - scanner.setJSDocParsingMode(0 /* ParseAll */); - sourceText = void 0; - languageVersion = void 0; - syntaxCursor = void 0; - scriptKind = void 0; - languageVariant = void 0; - sourceFlags = 0; - parseDiagnostics = void 0; - jsDocDiagnostics = void 0; - parsingContext = 0; - identifiers = void 0; - notParenthesizedArrow = void 0; - topLevel = true; - } - function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2, jsDocParsingMode) { - const isDeclarationFile = isDeclarationFileName(fileName); - if (isDeclarationFile) { - contextFlags |= 33554432 /* Ambient */; - } - sourceFlags = contextFlags; - nextToken(); - const statements = parseList(0 /* SourceElements */, parseStatement); - Debug.assert(token() === 1 /* EndOfFileToken */); - const endHasJSDoc = hasPrecedingJSDocComment(); - const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); - const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); - processCommentPragmas(sourceFile, sourceText); - processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); - sourceFile.commentDirectives = scanner.getCommentDirectives(); - sourceFile.nodeCount = nodeCount; - sourceFile.identifierCount = identifierCount; - sourceFile.identifiers = identifiers; - sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); - sourceFile.jsDocParsingMode = jsDocParsingMode; - if (jsDocDiagnostics) { - sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); - } - if (setParentNodes) { - fixupParentReferences(sourceFile); - } - return sourceFile; - function reportPragmaDiagnostic(pos, end, diagnostic) { - parseDiagnostics.push(createDetachedDiagnostic(fileName, sourceText, pos, end, diagnostic)); - } - } - let hasDeprecatedTag = false; - function withJSDoc(node, hasJSDoc) { - if (!hasJSDoc) { - return node; - } - Debug.assert(!node.jsDoc); - const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); - if (jsDoc.length) node.jsDoc = jsDoc; - if (hasDeprecatedTag) { - hasDeprecatedTag = false; - node.flags |= 536870912 /* Deprecated */; - } - return node; - } - function reparseTopLevelAwait(sourceFile) { - const savedSyntaxCursor = syntaxCursor; - const baseSyntaxCursor = IncrementalParser.createSyntaxCursor(sourceFile); - syntaxCursor = { currentNode: currentNode2 }; - const statements = []; - const savedParseDiagnostics = parseDiagnostics; - parseDiagnostics = []; - let pos = 0; - let start = findNextStatementWithAwait(sourceFile.statements, 0); - while (start !== -1) { - const prevStatement = sourceFile.statements[pos]; - const nextStatement = sourceFile.statements[start]; - addRange(statements, sourceFile.statements, pos, start); - pos = findNextStatementWithoutAwait(sourceFile.statements, start); - const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos); - const diagnosticEnd = diagnosticStart >= 0 ? findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= nextStatement.pos, diagnosticStart) : -1; - if (diagnosticStart >= 0) { - addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart, diagnosticEnd >= 0 ? diagnosticEnd : void 0); - } - speculationHelper(() => { - const savedContextFlags = contextFlags; - contextFlags |= 65536 /* AwaitContext */; - scanner.resetTokenState(nextStatement.pos); - nextToken(); - while (token() !== 1 /* EndOfFileToken */) { - const startPos = scanner.getTokenFullStart(); - const statement = parseListElement(0 /* SourceElements */, parseStatement); - statements.push(statement); - if (startPos === scanner.getTokenFullStart()) { - nextToken(); - } - if (pos >= 0) { - const nonAwaitStatement = sourceFile.statements[pos]; - if (statement.end === nonAwaitStatement.pos) { - break; - } - if (statement.end > nonAwaitStatement.pos) { - pos = findNextStatementWithoutAwait(sourceFile.statements, pos + 1); - } - } - } - contextFlags = savedContextFlags; - }, 2 /* Reparse */); - start = pos >= 0 ? findNextStatementWithAwait(sourceFile.statements, pos) : -1; - } - if (pos >= 0) { - const prevStatement = sourceFile.statements[pos]; - addRange(statements, sourceFile.statements, pos); - const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos); - if (diagnosticStart >= 0) { - addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart); - } - } - syntaxCursor = savedSyntaxCursor; - return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); - function containsPossibleTopLevelAwait(node) { - return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); - } - function findNextStatementWithAwait(statements2, start2) { - for (let i = start2; i < statements2.length; i++) { - if (containsPossibleTopLevelAwait(statements2[i])) { - return i; - } - } - return -1; - } - function findNextStatementWithoutAwait(statements2, start2) { - for (let i = start2; i < statements2.length; i++) { - if (!containsPossibleTopLevelAwait(statements2[i])) { - return i; - } - } - return -1; - } - function currentNode2(position) { - const node = baseSyntaxCursor.currentNode(position); - if (topLevel && node && containsPossibleTopLevelAwait(node)) { - markAsIntersectingIncrementalChange(node); - } - return node; - } - } - function fixupParentReferences(rootNode) { - setParentRecursive( - rootNode, - /*incremental*/ - true - ); - } - Parser2.fixupParentReferences = fixupParentReferences; - function createSourceFile2(fileName2, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, flags, setExternalModuleIndicator2) { - let sourceFile = factory2.createSourceFile(statements, endOfFileToken, flags); - setTextRangePosWidth(sourceFile, 0, sourceText.length); - setFields(sourceFile); - if (!isDeclarationFile && isExternalModule(sourceFile) && sourceFile.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */) { - const oldSourceFile = sourceFile; - sourceFile = reparseTopLevelAwait(sourceFile); - if (oldSourceFile !== sourceFile) setFields(sourceFile); - } - return sourceFile; - function setFields(sourceFile2) { - sourceFile2.text = sourceText; - sourceFile2.bindDiagnostics = []; - sourceFile2.bindSuggestionDiagnostics = void 0; - sourceFile2.languageVersion = languageVersion2; - sourceFile2.fileName = fileName2; - sourceFile2.languageVariant = getLanguageVariant(scriptKind2); - sourceFile2.isDeclarationFile = isDeclarationFile; - sourceFile2.scriptKind = scriptKind2; - setExternalModuleIndicator2(sourceFile2); - sourceFile2.setExternalModuleIndicator = setExternalModuleIndicator2; - } - } - function setContextFlag(val, flag) { - if (val) { - contextFlags |= flag; - } else { - contextFlags &= ~flag; - } - } - function setDisallowInContext(val) { - setContextFlag(val, 8192 /* DisallowInContext */); - } - function setYieldContext(val) { - setContextFlag(val, 16384 /* YieldContext */); - } - function setDecoratorContext(val) { - setContextFlag(val, 32768 /* DecoratorContext */); - } - function setAwaitContext(val) { - setContextFlag(val, 65536 /* AwaitContext */); - } - function doOutsideOfContext(context, func) { - const contextFlagsToClear = context & contextFlags; - if (contextFlagsToClear) { - setContextFlag( - /*val*/ - false, - contextFlagsToClear - ); - const result = func(); - setContextFlag( - /*val*/ - true, - contextFlagsToClear - ); - return result; - } - return func(); - } - function doInsideOfContext(context, func) { - const contextFlagsToSet = context & ~contextFlags; - if (contextFlagsToSet) { - setContextFlag( - /*val*/ - true, - contextFlagsToSet - ); - const result = func(); - setContextFlag( - /*val*/ - false, - contextFlagsToSet - ); - return result; - } - return func(); - } - function allowInAnd(func) { - return doOutsideOfContext(8192 /* DisallowInContext */, func); - } - function disallowInAnd(func) { - return doInsideOfContext(8192 /* DisallowInContext */, func); - } - function allowConditionalTypesAnd(func) { - return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); - } - function disallowConditionalTypesAnd(func) { - return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); - } - function doInYieldContext(func) { - return doInsideOfContext(16384 /* YieldContext */, func); - } - function doInDecoratorContext(func) { - return doInsideOfContext(32768 /* DecoratorContext */, func); - } - function doInAwaitContext(func) { - return doInsideOfContext(65536 /* AwaitContext */, func); - } - function doOutsideOfAwaitContext(func) { - return doOutsideOfContext(65536 /* AwaitContext */, func); - } - function doInYieldAndAwaitContext(func) { - return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); - } - function doOutsideOfYieldAndAwaitContext(func) { - return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); - } - function inContext(flags) { - return (contextFlags & flags) !== 0; - } - function inYieldContext() { - return inContext(16384 /* YieldContext */); - } - function inDisallowInContext() { - return inContext(8192 /* DisallowInContext */); - } - function inDisallowConditionalTypesContext() { - return inContext(131072 /* DisallowConditionalTypesContext */); - } - function inDecoratorContext() { - return inContext(32768 /* DecoratorContext */); - } - function inAwaitContext() { - return inContext(65536 /* AwaitContext */); - } - function parseErrorAtCurrentToken(message, ...args) { - return parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), message, ...args); - } - function parseErrorAtPosition(start, length2, message, ...args) { - const lastError = lastOrUndefined(parseDiagnostics); - let result; - if (!lastError || start !== lastError.start) { - result = createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args); - parseDiagnostics.push(result); - } - parseErrorBeforeNextFinishedNode = true; - return result; - } - function parseErrorAt(start, end, message, ...args) { - return parseErrorAtPosition(start, end - start, message, ...args); - } - function parseErrorAtRange(range, message, ...args) { - parseErrorAt(range.pos, range.end, message, ...args); - } - function scanError(message, length2, arg0) { - parseErrorAtPosition(scanner.getTokenEnd(), length2, message, arg0); - } - function getNodePos() { - return scanner.getTokenFullStart(); - } - function hasPrecedingJSDocComment() { - return scanner.hasPrecedingJSDocComment(); - } - function token() { - return currentToken; - } - function nextTokenWithoutCheck() { - return currentToken = scanner.scan(); - } - function nextTokenAnd(func) { - nextToken(); - return func(); - } - function nextToken() { - if (isKeyword(currentToken) && (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape())) { - parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), Diagnostics.Keywords_cannot_contain_escape_characters); - } - return nextTokenWithoutCheck(); - } - function nextTokenJSDoc() { - return currentToken = scanner.scanJsDocToken(); - } - function nextJSDocCommentTextToken(inBackticks) { - return currentToken = scanner.scanJSDocCommentTextToken(inBackticks); - } - function reScanGreaterToken() { - return currentToken = scanner.reScanGreaterToken(); - } - function reScanSlashToken() { - return currentToken = scanner.reScanSlashToken(); - } - function reScanTemplateToken(isTaggedTemplate) { - return currentToken = scanner.reScanTemplateToken(isTaggedTemplate); - } - function reScanLessThanToken() { - return currentToken = scanner.reScanLessThanToken(); - } - function reScanHashToken() { - return currentToken = scanner.reScanHashToken(); - } - function scanJsxIdentifier() { - return currentToken = scanner.scanJsxIdentifier(); - } - function scanJsxText() { - return currentToken = scanner.scanJsxToken(); - } - function scanJsxAttributeValue() { - return currentToken = scanner.scanJsxAttributeValue(); - } - function speculationHelper(callback, speculationKind) { - const saveToken = currentToken; - const saveParseDiagnosticsLength = parseDiagnostics.length; - const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const saveContextFlags = contextFlags; - const result = speculationKind !== 0 /* TryParse */ ? scanner.lookAhead(callback) : scanner.tryScan(callback); - Debug.assert(saveContextFlags === contextFlags); - if (!result || speculationKind !== 0 /* TryParse */) { - currentToken = saveToken; - if (speculationKind !== 2 /* Reparse */) { - parseDiagnostics.length = saveParseDiagnosticsLength; - } - parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode; - } - return result; - } - function lookAhead(callback) { - return speculationHelper(callback, 1 /* Lookahead */); - } - function tryParse(callback) { - return speculationHelper(callback, 0 /* TryParse */); - } - function isBindingIdentifier() { - if (token() === 80 /* Identifier */) { - return true; - } - return token() > 118 /* LastReservedWord */; - } - function isIdentifier2() { - if (token() === 80 /* Identifier */) { - return true; - } - if (token() === 127 /* YieldKeyword */ && inYieldContext()) { - return false; - } - if (token() === 135 /* AwaitKeyword */ && inAwaitContext()) { - return false; - } - return token() > 118 /* LastReservedWord */; - } - function parseExpected(kind, diagnosticMessage, shouldAdvance = true) { - if (token() === kind) { - if (shouldAdvance) { - nextToken(); - } - return true; - } - if (diagnosticMessage) { - parseErrorAtCurrentToken(diagnosticMessage); - } else { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind)); - } - return false; - } - const viableKeywordSuggestions = Object.keys(textToKeywordObj).filter((keyword) => keyword.length > 2); - function parseErrorForMissingSemicolonAfter(node) { - if (isTaggedTemplateExpression(node)) { - parseErrorAt(skipTrivia(sourceText, node.template.pos), node.template.end, Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings); - return; - } - const expressionText = isIdentifier(node) ? idText(node) : void 0; - if (!expressionText || !isIdentifierText(expressionText, languageVersion)) { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); - return; - } - const pos = skipTrivia(sourceText, node.pos); - switch (expressionText) { - case "const": - case "let": - case "var": - parseErrorAt(pos, node.end, Diagnostics.Variable_declaration_not_allowed_at_this_location); - return; - case "declare": - return; - case "interface": - parseErrorForInvalidName(Diagnostics.Interface_name_cannot_be_0, Diagnostics.Interface_must_be_given_a_name, 19 /* OpenBraceToken */); - return; - case "is": - parseErrorAt(pos, scanner.getTokenStart(), Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); - return; - case "module": - case "namespace": - parseErrorForInvalidName(Diagnostics.Namespace_name_cannot_be_0, Diagnostics.Namespace_must_be_given_a_name, 19 /* OpenBraceToken */); - return; - case "type": - parseErrorForInvalidName(Diagnostics.Type_alias_name_cannot_be_0, Diagnostics.Type_alias_must_be_given_a_name, 64 /* EqualsToken */); - return; - } - const suggestion = getSpellingSuggestion(expressionText, viableKeywordSuggestions, identity) ?? getSpaceSuggestion(expressionText); - if (suggestion) { - parseErrorAt(pos, node.end, Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion); - return; - } - if (token() === 0 /* Unknown */) { - return; - } - parseErrorAt(pos, node.end, Diagnostics.Unexpected_keyword_or_identifier); - } - function parseErrorForInvalidName(nameDiagnostic, blankDiagnostic, tokenIfBlankName) { - if (token() === tokenIfBlankName) { - parseErrorAtCurrentToken(blankDiagnostic); - } else { - parseErrorAtCurrentToken(nameDiagnostic, scanner.getTokenValue()); - } - } - function getSpaceSuggestion(expressionText) { - for (const keyword of viableKeywordSuggestions) { - if (expressionText.length > keyword.length + 2 && startsWith(expressionText, keyword)) { - return `${keyword} ${expressionText.slice(keyword.length)}`; - } - } - return void 0; - } - function parseSemicolonAfterPropertyName(name, type, initializer) { - if (token() === 60 /* AtToken */ && !scanner.hasPrecedingLineBreak()) { - parseErrorAtCurrentToken(Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations); - return; - } - if (token() === 21 /* OpenParenToken */) { - parseErrorAtCurrentToken(Diagnostics.Cannot_start_a_function_call_in_a_type_annotation); - nextToken(); - return; - } - if (type && !canParseSemicolon()) { - if (initializer) { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); - } else { - parseErrorAtCurrentToken(Diagnostics.Expected_for_property_initializer); - } - return; - } - if (tryParseSemicolon()) { - return; - } - if (initializer) { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); - return; - } - parseErrorForMissingSemicolonAfter(name); - } - function parseExpectedJSDoc(kind) { - if (token() === kind) { - nextTokenJSDoc(); - return true; - } - Debug.assert(isKeywordOrPunctuation(kind)); - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind)); - return false; - } - function parseExpectedMatchingBrackets(openKind, closeKind, openParsed, openPosition) { - if (token() === closeKind) { - nextToken(); - return; - } - const lastError = parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(closeKind)); - if (!openParsed) { - return; - } - if (lastError) { - addRelatedInfo( - lastError, - createDetachedDiagnostic(fileName, sourceText, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind)) - ); - } - } - function parseOptional(t) { - if (token() === t) { - nextToken(); - return true; - } - return false; - } - function parseOptionalToken(t) { - if (token() === t) { - return parseTokenNode(); - } - return void 0; - } - function parseOptionalTokenJSDoc(t) { - if (token() === t) { - return parseTokenNodeJSDoc(); - } - return void 0; - } - function parseExpectedToken(t, diagnosticMessage, arg0) { - return parseOptionalToken(t) || createMissingNode( - t, - /*reportAtCurrentPosition*/ - false, - diagnosticMessage || Diagnostics._0_expected, - arg0 || tokenToString(t) - ); - } - function parseExpectedTokenJSDoc(t) { - const optional = parseOptionalTokenJSDoc(t); - if (optional) return optional; - Debug.assert(isKeywordOrPunctuation(t)); - return createMissingNode( - t, - /*reportAtCurrentPosition*/ - false, - Diagnostics._0_expected, - tokenToString(t) - ); - } - function parseTokenNode() { - const pos = getNodePos(); - const kind = token(); - nextToken(); - return finishNode(factoryCreateToken(kind), pos); - } - function parseTokenNodeJSDoc() { - const pos = getNodePos(); - const kind = token(); - nextTokenJSDoc(); - return finishNode(factoryCreateToken(kind), pos); - } - function canParseSemicolon() { - if (token() === 27 /* SemicolonToken */) { - return true; - } - return token() === 20 /* CloseBraceToken */ || token() === 1 /* EndOfFileToken */ || scanner.hasPrecedingLineBreak(); - } - function tryParseSemicolon() { - if (!canParseSemicolon()) { - return false; - } - if (token() === 27 /* SemicolonToken */) { - nextToken(); - } - return true; - } - function parseSemicolon() { - return tryParseSemicolon() || parseExpected(27 /* SemicolonToken */); - } - function createNodeArray(elements, pos, end, hasTrailingComma) { - const array = factoryCreateNodeArray(elements, hasTrailingComma); - setTextRangePosEnd(array, pos, end ?? scanner.getTokenFullStart()); - return array; - } - function finishNode(node, pos, end) { - setTextRangePosEnd(node, pos, end ?? scanner.getTokenFullStart()); - if (contextFlags) { - node.flags |= contextFlags; - } - if (parseErrorBeforeNextFinishedNode) { - parseErrorBeforeNextFinishedNode = false; - node.flags |= 262144 /* ThisNodeHasError */; - } - return node; - } - function createMissingNode(kind, reportAtCurrentPosition, diagnosticMessage, ...args) { - if (reportAtCurrentPosition) { - parseErrorAtPosition(scanner.getTokenFullStart(), 0, diagnosticMessage, ...args); - } else if (diagnosticMessage) { - parseErrorAtCurrentToken(diagnosticMessage, ...args); - } - const pos = getNodePos(); - const result = kind === 80 /* Identifier */ ? factoryCreateIdentifier( - "", - /*originalKeywordKind*/ - void 0 - ) : isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode( - kind, - "", - "", - /*templateFlags*/ - void 0 - ) : kind === 9 /* NumericLiteral */ ? factoryCreateNumericLiteral( - "", - /*numericLiteralFlags*/ - void 0 - ) : kind === 11 /* StringLiteral */ ? factoryCreateStringLiteral( - "", - /*isSingleQuote*/ - void 0 - ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); - return finishNode(result, pos); - } - function internIdentifier(text) { - let identifier = identifiers.get(text); - if (identifier === void 0) { - identifiers.set(text, identifier = text); - } - return identifier; - } - function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) { - if (isIdentifier3) { - identifierCount++; - const pos = scanner.hasPrecedingJSDocLeadingAsterisks() ? scanner.getTokenStart() : getNodePos(); - const originalKeywordKind = token(); - const text = internIdentifier(scanner.getTokenValue()); - const hasExtendedUnicodeEscape = scanner.hasExtendedUnicodeEscape(); - nextTokenWithoutCheck(); - return finishNode(factoryCreateIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape), pos); - } - if (token() === 81 /* PrivateIdentifier */) { - parseErrorAtCurrentToken(privateIdentifierDiagnosticMessage || Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - return createIdentifier( - /*isIdentifier*/ - true - ); - } - if (token() === 0 /* Unknown */ && scanner.tryScan(() => scanner.reScanInvalidIdentifier() === 80 /* Identifier */)) { - return createIdentifier( - /*isIdentifier*/ - true - ); - } - identifierCount++; - const reportAtCurrentPosition = token() === 1 /* EndOfFileToken */; - const isReservedWord = scanner.isReservedWord(); - const msgArg = scanner.getTokenText(); - const defaultMessage = isReservedWord ? Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : Diagnostics.Identifier_expected; - return createMissingNode(80 /* Identifier */, reportAtCurrentPosition, diagnosticMessage || defaultMessage, msgArg); - } - function parseBindingIdentifier(privateIdentifierDiagnosticMessage) { - return createIdentifier( - isBindingIdentifier(), - /*diagnosticMessage*/ - void 0, - privateIdentifierDiagnosticMessage - ); - } - function parseIdentifier(diagnosticMessage, privateIdentifierDiagnosticMessage) { - return createIdentifier(isIdentifier2(), diagnosticMessage, privateIdentifierDiagnosticMessage); - } - function parseIdentifierName(diagnosticMessage) { - return createIdentifier(tokenIsIdentifierOrKeyword(token()), diagnosticMessage); - } - function parseIdentifierNameErrorOnUnicodeEscapeSequence() { - if (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape()) { - parseErrorAtCurrentToken(Diagnostics.Unicode_escape_sequence_cannot_appear_here); - } - return createIdentifier(tokenIsIdentifierOrKeyword(token())); - } - function isLiteralPropertyName() { - return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */; - } - function isImportAttributeName2() { - return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */; - } - function parsePropertyNameWorker(allowComputedPropertyNames) { - if (token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */) { - const node = parseLiteralNode(); - node.text = internIdentifier(node.text); - return node; - } - if (allowComputedPropertyNames && token() === 23 /* OpenBracketToken */) { - return parseComputedPropertyName(); - } - if (token() === 81 /* PrivateIdentifier */) { - return parsePrivateIdentifier(); - } - return parseIdentifierName(); - } - function parsePropertyName() { - return parsePropertyNameWorker( - /*allowComputedPropertyNames*/ - true - ); - } - function parseComputedPropertyName() { - const pos = getNodePos(); - parseExpected(23 /* OpenBracketToken */); - const expression = allowInAnd(parseExpression); - parseExpected(24 /* CloseBracketToken */); - return finishNode(factory2.createComputedPropertyName(expression), pos); - } - function parsePrivateIdentifier() { - const pos = getNodePos(); - const node = factoryCreatePrivateIdentifier(internIdentifier(scanner.getTokenValue())); - nextToken(); - return finishNode(node, pos); - } - function parseContextualModifier(t) { - return token() === t && tryParse(nextTokenCanFollowModifier); - } - function nextTokenIsOnSameLineAndCanFollowModifier() { - nextToken(); - if (scanner.hasPrecedingLineBreak()) { - return false; - } - return canFollowModifier(); - } - function nextTokenCanFollowModifier() { - switch (token()) { - case 87 /* ConstKeyword */: - return nextToken() === 94 /* EnumKeyword */; - case 95 /* ExportKeyword */: - nextToken(); - if (token() === 90 /* DefaultKeyword */) { - return lookAhead(nextTokenCanFollowDefaultKeyword); - } - if (token() === 156 /* TypeKeyword */) { - return lookAhead(nextTokenCanFollowExportModifier); - } - return canFollowExportModifier(); - case 90 /* DefaultKeyword */: - return nextTokenCanFollowDefaultKeyword(); - case 126 /* StaticKeyword */: - nextToken(); - return canFollowModifier(); - case 139 /* GetKeyword */: - case 153 /* SetKeyword */: - nextToken(); - return canFollowGetOrSetKeyword(); - default: - return nextTokenIsOnSameLineAndCanFollowModifier(); - } - } - function canFollowExportModifier() { - return token() === 60 /* AtToken */ || token() !== 42 /* AsteriskToken */ && token() !== 130 /* AsKeyword */ && token() !== 19 /* OpenBraceToken */ && canFollowModifier(); - } - function nextTokenCanFollowExportModifier() { - nextToken(); - return canFollowExportModifier(); - } - function parseAnyContextualModifier() { - return isModifierKind(token()) && tryParse(nextTokenCanFollowModifier); - } - function canFollowModifier() { - return token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */ || token() === 42 /* AsteriskToken */ || token() === 26 /* DotDotDotToken */ || isLiteralPropertyName(); - } - function canFollowGetOrSetKeyword() { - return token() === 23 /* OpenBracketToken */ || isLiteralPropertyName(); - } - function nextTokenCanFollowDefaultKeyword() { - nextToken(); - return token() === 86 /* ClassKeyword */ || token() === 100 /* FunctionKeyword */ || token() === 120 /* InterfaceKeyword */ || token() === 60 /* AtToken */ || token() === 128 /* AbstractKeyword */ && lookAhead(nextTokenIsClassKeywordOnSameLine) || token() === 134 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine); - } - function isListElement(parsingContext2, inErrorRecovery) { - const node = currentNode(parsingContext2); - if (node) { - return true; - } - switch (parsingContext2) { - case 0 /* SourceElements */: - case 1 /* BlockStatements */: - case 3 /* SwitchClauseStatements */: - return !(token() === 27 /* SemicolonToken */ && inErrorRecovery) && isStartOfStatement(); - case 2 /* SwitchClauses */: - return token() === 84 /* CaseKeyword */ || token() === 90 /* DefaultKeyword */; - case 4 /* TypeMembers */: - return lookAhead(isTypeMemberStart); - case 5 /* ClassMembers */: - return lookAhead(isClassMemberStart) || token() === 27 /* SemicolonToken */ && !inErrorRecovery; - case 6 /* EnumMembers */: - return token() === 23 /* OpenBracketToken */ || isLiteralPropertyName(); - case 12 /* ObjectLiteralMembers */: - switch (token()) { - case 23 /* OpenBracketToken */: - case 42 /* AsteriskToken */: - case 26 /* DotDotDotToken */: - case 25 /* DotToken */: - return true; - default: - return isLiteralPropertyName(); - } - case 18 /* RestProperties */: - return isLiteralPropertyName(); - case 9 /* ObjectBindingElements */: - return token() === 23 /* OpenBracketToken */ || token() === 26 /* DotDotDotToken */ || isLiteralPropertyName(); - case 24 /* ImportAttributes */: - return isImportAttributeName2(); - case 7 /* HeritageClauseElement */: - if (token() === 19 /* OpenBraceToken */) { - return lookAhead(isValidHeritageClauseObjectLiteral); - } - if (!inErrorRecovery) { - return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword(); - } else { - return isIdentifier2() && !isHeritageClauseExtendsOrImplementsKeyword(); - } - case 8 /* VariableDeclarations */: - return isBindingIdentifierOrPrivateIdentifierOrPattern(); - case 10 /* ArrayBindingElements */: - return token() === 28 /* CommaToken */ || token() === 26 /* DotDotDotToken */ || isBindingIdentifierOrPrivateIdentifierOrPattern(); - case 19 /* TypeParameters */: - return token() === 103 /* InKeyword */ || token() === 87 /* ConstKeyword */ || isIdentifier2(); - case 15 /* ArrayLiteralMembers */: - switch (token()) { - case 28 /* CommaToken */: - case 25 /* DotToken */: - return true; - } - // falls through - case 11 /* ArgumentExpressions */: - return token() === 26 /* DotDotDotToken */ || isStartOfExpression(); - case 16 /* Parameters */: - return isStartOfParameter( - /*isJSDocParameter*/ - false - ); - case 17 /* JSDocParameters */: - return isStartOfParameter( - /*isJSDocParameter*/ - true - ); - case 20 /* TypeArguments */: - case 21 /* TupleElementTypes */: - return token() === 28 /* CommaToken */ || isStartOfType(); - case 22 /* HeritageClauses */: - return isHeritageClause2(); - case 23 /* ImportOrExportSpecifiers */: - if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { - return false; - } - if (token() === 11 /* StringLiteral */) { - return true; - } - return tokenIsIdentifierOrKeyword(token()); - case 13 /* JsxAttributes */: - return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; - case 14 /* JsxChildren */: - return true; - case 25 /* JSDocComment */: - return true; - case 26 /* Count */: - return Debug.fail("ParsingContext.Count used as a context"); - // Not a real context, only a marker. - default: - Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'."); - } - } - function isValidHeritageClauseObjectLiteral() { - Debug.assert(token() === 19 /* OpenBraceToken */); - if (nextToken() === 20 /* CloseBraceToken */) { - const next = nextToken(); - return next === 28 /* CommaToken */ || next === 19 /* OpenBraceToken */ || next === 96 /* ExtendsKeyword */ || next === 119 /* ImplementsKeyword */; - } - return true; - } - function nextTokenIsIdentifier() { - nextToken(); - return isIdentifier2(); - } - function nextTokenIsIdentifierOrKeyword() { - nextToken(); - return tokenIsIdentifierOrKeyword(token()); - } - function nextTokenIsIdentifierOrKeywordOrGreaterThan() { - nextToken(); - return tokenIsIdentifierOrKeywordOrGreaterThan(token()); - } - function isHeritageClauseExtendsOrImplementsKeyword() { - if (token() === 119 /* ImplementsKeyword */ || token() === 96 /* ExtendsKeyword */) { - return lookAhead(nextTokenIsStartOfExpression); - } - return false; - } - function nextTokenIsStartOfExpression() { - nextToken(); - return isStartOfExpression(); - } - function nextTokenIsStartOfType() { - nextToken(); - return isStartOfType(); - } - function isListTerminator(kind) { - if (token() === 1 /* EndOfFileToken */) { - return true; - } - switch (kind) { - case 1 /* BlockStatements */: - case 2 /* SwitchClauses */: - case 4 /* TypeMembers */: - case 5 /* ClassMembers */: - case 6 /* EnumMembers */: - case 12 /* ObjectLiteralMembers */: - case 9 /* ObjectBindingElements */: - case 23 /* ImportOrExportSpecifiers */: - case 24 /* ImportAttributes */: - return token() === 20 /* CloseBraceToken */; - case 3 /* SwitchClauseStatements */: - return token() === 20 /* CloseBraceToken */ || token() === 84 /* CaseKeyword */ || token() === 90 /* DefaultKeyword */; - case 7 /* HeritageClauseElement */: - return token() === 19 /* OpenBraceToken */ || token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; - case 8 /* VariableDeclarations */: - return isVariableDeclaratorListTerminator(); - case 19 /* TypeParameters */: - return token() === 32 /* GreaterThanToken */ || token() === 21 /* OpenParenToken */ || token() === 19 /* OpenBraceToken */ || token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; - case 11 /* ArgumentExpressions */: - return token() === 22 /* CloseParenToken */ || token() === 27 /* SemicolonToken */; - case 15 /* ArrayLiteralMembers */: - case 21 /* TupleElementTypes */: - case 10 /* ArrayBindingElements */: - return token() === 24 /* CloseBracketToken */; - case 17 /* JSDocParameters */: - case 16 /* Parameters */: - case 18 /* RestProperties */: - return token() === 22 /* CloseParenToken */ || token() === 24 /* CloseBracketToken */; - case 20 /* TypeArguments */: - return token() !== 28 /* CommaToken */; - case 22 /* HeritageClauses */: - return token() === 19 /* OpenBraceToken */ || token() === 20 /* CloseBraceToken */; - case 13 /* JsxAttributes */: - return token() === 32 /* GreaterThanToken */ || token() === 44 /* SlashToken */; - case 14 /* JsxChildren */: - return token() === 30 /* LessThanToken */ && lookAhead(nextTokenIsSlash); - default: - return false; - } - } - function isVariableDeclaratorListTerminator() { - if (canParseSemicolon()) { - return true; - } - if (isInOrOfKeyword(token())) { - return true; - } - if (token() === 39 /* EqualsGreaterThanToken */) { - return true; - } - return false; - } - function isInSomeParsingContext() { - Debug.assert(parsingContext, "Missing parsing context"); - for (let kind = 0; kind < 26 /* Count */; kind++) { - if (parsingContext & 1 << kind) { - if (isListElement( - kind, - /*inErrorRecovery*/ - true - ) || isListTerminator(kind)) { - return true; - } - } - } - return false; - } - function parseList(kind, parseElement) { - const saveParsingContext = parsingContext; - parsingContext |= 1 << kind; - const list = []; - const listPos = getNodePos(); - while (!isListTerminator(kind)) { - if (isListElement( - kind, - /*inErrorRecovery*/ - false - )) { - list.push(parseListElement(kind, parseElement)); - continue; - } - if (abortParsingListOrMoveToNextToken(kind)) { - break; - } - } - parsingContext = saveParsingContext; - return createNodeArray(list, listPos); - } - function parseListElement(parsingContext2, parseElement) { - const node = currentNode(parsingContext2); - if (node) { - return consumeNode(node); - } - return parseElement(); - } - function currentNode(parsingContext2, pos) { - var _a; - if (!syntaxCursor || !isReusableParsingContext(parsingContext2) || parseErrorBeforeNextFinishedNode) { - return void 0; - } - const node = syntaxCursor.currentNode(pos ?? scanner.getTokenFullStart()); - if (nodeIsMissing(node) || intersectsIncrementalChange(node) || containsParseError(node)) { - return void 0; - } - const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; - if (nodeContextFlags !== contextFlags) { - return void 0; - } - if (!canReuseNode(node, parsingContext2)) { - return void 0; - } - if (canHaveJSDoc(node) && ((_a = node.jsDoc) == null ? void 0 : _a.jsDocCache)) { - node.jsDoc.jsDocCache = void 0; - } - return node; - } - function consumeNode(node) { - scanner.resetTokenState(node.end); - nextToken(); - return node; - } - function isReusableParsingContext(parsingContext2) { - switch (parsingContext2) { - case 5 /* ClassMembers */: - case 2 /* SwitchClauses */: - case 0 /* SourceElements */: - case 1 /* BlockStatements */: - case 3 /* SwitchClauseStatements */: - case 6 /* EnumMembers */: - case 4 /* TypeMembers */: - case 8 /* VariableDeclarations */: - case 17 /* JSDocParameters */: - case 16 /* Parameters */: - return true; - } - return false; - } - function canReuseNode(node, parsingContext2) { - switch (parsingContext2) { - case 5 /* ClassMembers */: - return isReusableClassMember(node); - case 2 /* SwitchClauses */: - return isReusableSwitchClause(node); - case 0 /* SourceElements */: - case 1 /* BlockStatements */: - case 3 /* SwitchClauseStatements */: - return isReusableStatement(node); - case 6 /* EnumMembers */: - return isReusableEnumMember(node); - case 4 /* TypeMembers */: - return isReusableTypeMember(node); - case 8 /* VariableDeclarations */: - return isReusableVariableDeclaration(node); - case 17 /* JSDocParameters */: - case 16 /* Parameters */: - return isReusableParameter(node); - } - return false; - } - function isReusableClassMember(node) { - if (node) { - switch (node.kind) { - case 176 /* Constructor */: - case 181 /* IndexSignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 172 /* PropertyDeclaration */: - case 240 /* SemicolonClassElement */: - return true; - case 174 /* MethodDeclaration */: - const methodDeclaration = node; - const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; - return !nameIsConstructor; - } - } - return false; - } - function isReusableSwitchClause(node) { - if (node) { - switch (node.kind) { - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - return true; - } - } - return false; - } - function isReusableStatement(node) { - if (node) { - switch (node.kind) { - case 262 /* FunctionDeclaration */: - case 243 /* VariableStatement */: - case 241 /* Block */: - case 245 /* IfStatement */: - case 244 /* ExpressionStatement */: - case 257 /* ThrowStatement */: - case 253 /* ReturnStatement */: - case 255 /* SwitchStatement */: - case 252 /* BreakStatement */: - case 251 /* ContinueStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 248 /* ForStatement */: - case 247 /* WhileStatement */: - case 254 /* WithStatement */: - case 242 /* EmptyStatement */: - case 258 /* TryStatement */: - case 256 /* LabeledStatement */: - case 246 /* DoStatement */: - case 259 /* DebuggerStatement */: - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 278 /* ExportDeclaration */: - case 277 /* ExportAssignment */: - case 267 /* ModuleDeclaration */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 266 /* EnumDeclaration */: - case 265 /* TypeAliasDeclaration */: - return true; - } - } - return false; - } - function isReusableEnumMember(node) { - return node.kind === 306 /* EnumMember */; - } - function isReusableTypeMember(node) { - if (node) { - switch (node.kind) { - case 180 /* ConstructSignature */: - case 173 /* MethodSignature */: - case 181 /* IndexSignature */: - case 171 /* PropertySignature */: - case 179 /* CallSignature */: - return true; - } - } - return false; - } - function isReusableVariableDeclaration(node) { - if (node.kind !== 260 /* VariableDeclaration */) { - return false; - } - const variableDeclarator = node; - return variableDeclarator.initializer === void 0; - } - function isReusableParameter(node) { - if (node.kind !== 169 /* Parameter */) { - return false; - } - const parameter = node; - return parameter.initializer === void 0; - } - function abortParsingListOrMoveToNextToken(kind) { - parsingContextErrors(kind); - if (isInSomeParsingContext()) { - return true; - } - nextToken(); - return false; - } - function parsingContextErrors(context) { - switch (context) { - case 0 /* SourceElements */: - return token() === 90 /* DefaultKeyword */ ? parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(95 /* ExportKeyword */)) : parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected); - case 1 /* BlockStatements */: - return parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected); - case 2 /* SwitchClauses */: - return parseErrorAtCurrentToken(Diagnostics.case_or_default_expected); - case 3 /* SwitchClauseStatements */: - return parseErrorAtCurrentToken(Diagnostics.Statement_expected); - case 18 /* RestProperties */: - // fallthrough - case 4 /* TypeMembers */: - return parseErrorAtCurrentToken(Diagnostics.Property_or_signature_expected); - case 5 /* ClassMembers */: - return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected); - case 6 /* EnumMembers */: - return parseErrorAtCurrentToken(Diagnostics.Enum_member_expected); - case 7 /* HeritageClauseElement */: - return parseErrorAtCurrentToken(Diagnostics.Expression_expected); - case 8 /* VariableDeclarations */: - return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_variable_declaration_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Variable_declaration_expected); - case 9 /* ObjectBindingElements */: - return parseErrorAtCurrentToken(Diagnostics.Property_destructuring_pattern_expected); - case 10 /* ArrayBindingElements */: - return parseErrorAtCurrentToken(Diagnostics.Array_element_destructuring_pattern_expected); - case 11 /* ArgumentExpressions */: - return parseErrorAtCurrentToken(Diagnostics.Argument_expression_expected); - case 12 /* ObjectLiteralMembers */: - return parseErrorAtCurrentToken(Diagnostics.Property_assignment_expected); - case 15 /* ArrayLiteralMembers */: - return parseErrorAtCurrentToken(Diagnostics.Expression_or_comma_expected); - case 17 /* JSDocParameters */: - return parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected); - case 16 /* Parameters */: - return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_parameter_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected); - case 19 /* TypeParameters */: - return parseErrorAtCurrentToken(Diagnostics.Type_parameter_declaration_expected); - case 20 /* TypeArguments */: - return parseErrorAtCurrentToken(Diagnostics.Type_argument_expected); - case 21 /* TupleElementTypes */: - return parseErrorAtCurrentToken(Diagnostics.Type_expected); - case 22 /* HeritageClauses */: - return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); - case 23 /* ImportOrExportSpecifiers */: - if (token() === 161 /* FromKeyword */) { - return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); - } - return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); - case 13 /* JsxAttributes */: - return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); - case 14 /* JsxChildren */: - return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); - case 24 /* ImportAttributes */: - return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected); - case 25 /* JSDocComment */: - return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); - case 26 /* Count */: - return Debug.fail("ParsingContext.Count used as a context"); - // Not a real context, only a marker. - default: - Debug.assertNever(context); - } - } - function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) { - const saveParsingContext = parsingContext; - parsingContext |= 1 << kind; - const list = []; - const listPos = getNodePos(); - let commaStart = -1; - while (true) { - if (isListElement( - kind, - /*inErrorRecovery*/ - false - )) { - const startPos = scanner.getTokenFullStart(); - const result = parseListElement(kind, parseElement); - if (!result) { - parsingContext = saveParsingContext; - return void 0; - } - list.push(result); - commaStart = scanner.getTokenStart(); - if (parseOptional(28 /* CommaToken */)) { - continue; - } - commaStart = -1; - if (isListTerminator(kind)) { - break; - } - parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind)); - if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner.hasPrecedingLineBreak()) { - nextToken(); - } - if (startPos === scanner.getTokenFullStart()) { - nextToken(); - } - continue; - } - if (isListTerminator(kind)) { - break; - } - if (abortParsingListOrMoveToNextToken(kind)) { - break; - } - } - parsingContext = saveParsingContext; - return createNodeArray( - list, - listPos, - /*end*/ - void 0, - commaStart >= 0 - ); - } - function getExpectedCommaDiagnostic(kind) { - return kind === 6 /* EnumMembers */ ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0; - } - function createMissingList() { - const list = createNodeArray([], getNodePos()); - list.isMissingList = true; - return list; - } - function isMissingList(arr) { - return !!arr.isMissingList; - } - function parseBracketedList(kind, parseElement, open, close) { - if (parseExpected(open)) { - const result = parseDelimitedList(kind, parseElement); - parseExpected(close); - return result; - } - return createMissingList(); - } - function parseEntityName(allowReservedWords, diagnosticMessage) { - const pos = getNodePos(); - let entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage); - while (parseOptional(25 /* DotToken */)) { - if (token() === 30 /* LessThanToken */) { - break; - } - entity = finishNode( - factory2.createQualifiedName( - entity, - parseRightSideOfDot( - allowReservedWords, - /*allowPrivateIdentifiers*/ - false, - /*allowUnicodeEscapeSequenceInIdentifierName*/ - true - ) - ), - pos - ); - } - return entity; - } - function createQualifiedName(entity, name) { - return finishNode(factory2.createQualifiedName(entity, name), entity.pos); - } - function parseRightSideOfDot(allowIdentifierNames, allowPrivateIdentifiers, allowUnicodeEscapeSequenceInIdentifierName) { - if (scanner.hasPrecedingLineBreak() && tokenIsIdentifierOrKeyword(token())) { - const matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); - if (matchesPattern) { - return createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.Identifier_expected - ); - } - } - if (token() === 81 /* PrivateIdentifier */) { - const node = parsePrivateIdentifier(); - return allowPrivateIdentifiers ? node : createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.Identifier_expected - ); - } - if (allowIdentifierNames) { - return allowUnicodeEscapeSequenceInIdentifierName ? parseIdentifierName() : parseIdentifierNameErrorOnUnicodeEscapeSequence(); - } - return parseIdentifier(); - } - function parseTemplateSpans(isTaggedTemplate) { - const pos = getNodePos(); - const list = []; - let node; - do { - node = parseTemplateSpan(isTaggedTemplate); - list.push(node); - } while (node.literal.kind === 17 /* TemplateMiddle */); - return createNodeArray(list, pos); - } - function parseTemplateExpression(isTaggedTemplate) { - const pos = getNodePos(); - return finishNode( - factory2.createTemplateExpression( - parseTemplateHead(isTaggedTemplate), - parseTemplateSpans(isTaggedTemplate) - ), - pos - ); - } - function parseTemplateType() { - const pos = getNodePos(); - return finishNode( - factory2.createTemplateLiteralType( - parseTemplateHead( - /*isTaggedTemplate*/ - false - ), - parseTemplateTypeSpans() - ), - pos - ); - } - function parseTemplateTypeSpans() { - const pos = getNodePos(); - const list = []; - let node; - do { - node = parseTemplateTypeSpan(); - list.push(node); - } while (node.literal.kind === 17 /* TemplateMiddle */); - return createNodeArray(list, pos); - } - function parseTemplateTypeSpan() { - const pos = getNodePos(); - return finishNode( - factory2.createTemplateLiteralTypeSpan( - parseType(), - parseLiteralOfTemplateSpan( - /*isTaggedTemplate*/ - false - ) - ), - pos - ); - } - function parseLiteralOfTemplateSpan(isTaggedTemplate) { - if (token() === 20 /* CloseBraceToken */) { - reScanTemplateToken(isTaggedTemplate); - return parseTemplateMiddleOrTemplateTail(); - } else { - return parseExpectedToken(18 /* TemplateTail */, Diagnostics._0_expected, tokenToString(20 /* CloseBraceToken */)); - } - } - function parseTemplateSpan(isTaggedTemplate) { - const pos = getNodePos(); - return finishNode( - factory2.createTemplateSpan( - allowInAnd(parseExpression), - parseLiteralOfTemplateSpan(isTaggedTemplate) - ), - pos - ); - } - function parseLiteralNode() { - return parseLiteralLikeNode(token()); - } - function parseTemplateHead(isTaggedTemplate) { - if (!isTaggedTemplate && scanner.getTokenFlags() & 26656 /* IsInvalid */) { - reScanTemplateToken( - /*isTaggedTemplate*/ - false - ); - } - const fragment = parseLiteralLikeNode(token()); - Debug.assert(fragment.kind === 16 /* TemplateHead */, "Template head has wrong token kind"); - return fragment; - } - function parseTemplateMiddleOrTemplateTail() { - const fragment = parseLiteralLikeNode(token()); - Debug.assert(fragment.kind === 17 /* TemplateMiddle */ || fragment.kind === 18 /* TemplateTail */, "Template fragment has wrong token kind"); - return fragment; - } - function getTemplateLiteralRawText(kind) { - const isLast = kind === 15 /* NoSubstitutionTemplateLiteral */ || kind === 18 /* TemplateTail */; - const tokenText = scanner.getTokenText(); - return tokenText.substring(1, tokenText.length - (scanner.isUnterminated() ? 0 : isLast ? 1 : 2)); - } - function parseLiteralLikeNode(kind) { - const pos = getNodePos(); - const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner.getTokenValue(), getTemplateLiteralRawText(kind), scanner.getTokenFlags() & 7176 /* TemplateLiteralLikeFlags */) : ( - // Note that theoretically the following condition would hold true literals like 009, - // which is not octal. But because of how the scanner separates the tokens, we would - // never get a token like this. Instead, we would get 00 and 9 as two separate tokens. - // We also do not need to check for negatives because any prefix operator would be part of a - // parent unary expression. - kind === 9 /* NumericLiteral */ ? factoryCreateNumericLiteral(scanner.getTokenValue(), scanner.getNumericLiteralFlags()) : kind === 11 /* StringLiteral */ ? factoryCreateStringLiteral( - scanner.getTokenValue(), - /*isSingleQuote*/ - void 0, - scanner.hasExtendedUnicodeEscape() - ) : isLiteralKind(kind) ? factoryCreateLiteralLikeNode(kind, scanner.getTokenValue()) : Debug.fail() - ); - if (scanner.hasExtendedUnicodeEscape()) { - node.hasExtendedUnicodeEscape = true; - } - if (scanner.isUnterminated()) { - node.isUnterminated = true; - } - nextToken(); - return finishNode(node, pos); - } - function parseEntityNameOfTypeReference() { - return parseEntityName( - /*allowReservedWords*/ - true, - Diagnostics.Type_expected - ); - } - function parseTypeArgumentsOfTypeReference() { - if (!scanner.hasPrecedingLineBreak() && reScanLessThanToken() === 30 /* LessThanToken */) { - return parseBracketedList(20 /* TypeArguments */, parseType, 30 /* LessThanToken */, 32 /* GreaterThanToken */); - } - } - function parseTypeReference() { - const pos = getNodePos(); - return finishNode( - factory2.createTypeReferenceNode( - parseEntityNameOfTypeReference(), - parseTypeArgumentsOfTypeReference() - ), - pos - ); - } - function typeHasArrowFunctionBlockingParseError(node) { - switch (node.kind) { - case 183 /* TypeReference */: - return nodeIsMissing(node.typeName); - case 184 /* FunctionType */: - case 185 /* ConstructorType */: { - const { parameters, type } = node; - return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); - } - case 196 /* ParenthesizedType */: - return typeHasArrowFunctionBlockingParseError(node.type); - default: - return false; - } - } - function parseThisTypePredicate(lhs) { - nextToken(); - return finishNode(factory2.createTypePredicateNode( - /*assertsModifier*/ - void 0, - lhs, - parseType() - ), lhs.pos); - } - function parseThisTypeNode() { - const pos = getNodePos(); - nextToken(); - return finishNode(factory2.createThisTypeNode(), pos); - } - function parseJSDocAllType() { - const pos = getNodePos(); - nextToken(); - return finishNode(factory2.createJSDocAllType(), pos); - } - function parseJSDocNonNullableType() { - const pos = getNodePos(); - nextToken(); - return finishNode(factory2.createJSDocNonNullableType( - parseNonArrayType(), - /*postfix*/ - false - ), pos); - } - function parseJSDocUnknownOrNullableType() { - const pos = getNodePos(); - nextToken(); - if (token() === 28 /* CommaToken */ || token() === 20 /* CloseBraceToken */ || token() === 22 /* CloseParenToken */ || token() === 32 /* GreaterThanToken */ || token() === 64 /* EqualsToken */ || token() === 52 /* BarToken */) { - return finishNode(factory2.createJSDocUnknownType(), pos); - } else { - return finishNode(factory2.createJSDocNullableType( - parseType(), - /*postfix*/ - false - ), pos); - } - } - function parseJSDocFunctionType() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - if (tryParse(nextTokenIsOpenParen)) { - const parameters = parseParameters(4 /* Type */ | 32 /* JSDoc */); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - return withJSDoc(finishNode(factory2.createJSDocFunctionType(parameters, type), pos), hasJSDoc); - } - return finishNode(factory2.createTypeReferenceNode( - parseIdentifierName(), - /*typeArguments*/ - void 0 - ), pos); - } - function parseJSDocParameter() { - const pos = getNodePos(); - let name; - if (token() === 110 /* ThisKeyword */ || token() === 105 /* NewKeyword */) { - name = parseIdentifierName(); - parseExpected(59 /* ColonToken */); - } - return finishNode( - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - // TODO(rbuckton): JSDoc parameters don't have names (except `this`/`new`), should we manufacture an empty identifier? - name, - /*questionToken*/ - void 0, - parseJSDocType(), - /*initializer*/ - void 0 - ), - pos - ); - } - function parseJSDocType() { - scanner.setSkipJsDocLeadingAsterisks(true); - const pos = getNodePos(); - if (parseOptional(144 /* ModuleKeyword */)) { - const moduleTag = factory2.createJSDocNamepathType( - /*type*/ - void 0 - ); - terminate: - while (true) { - switch (token()) { - case 20 /* CloseBraceToken */: - case 1 /* EndOfFileToken */: - case 28 /* CommaToken */: - case 5 /* WhitespaceTrivia */: - break terminate; - default: - nextTokenJSDoc(); - } - } - scanner.setSkipJsDocLeadingAsterisks(false); - return finishNode(moduleTag, pos); - } - const hasDotDotDot = parseOptional(26 /* DotDotDotToken */); - let type = parseTypeOrTypePredicate(); - scanner.setSkipJsDocLeadingAsterisks(false); - if (hasDotDotDot) { - type = finishNode(factory2.createJSDocVariadicType(type), pos); - } - if (token() === 64 /* EqualsToken */) { - nextToken(); - return finishNode(factory2.createJSDocOptionalType(type), pos); - } - return type; - } - function parseTypeQuery() { - const pos = getNodePos(); - parseExpected(114 /* TypeOfKeyword */); - const entityName = parseEntityName( - /*allowReservedWords*/ - true - ); - const typeArguments = !scanner.hasPrecedingLineBreak() ? tryParseTypeArguments() : void 0; - return finishNode(factory2.createTypeQueryNode(entityName, typeArguments), pos); - } - function parseTypeParameter() { - const pos = getNodePos(); - const modifiers = parseModifiers( - /*allowDecorators*/ - false, - /*permitConstAsModifier*/ - true - ); - const name = parseIdentifier(); - let constraint; - let expression; - if (parseOptional(96 /* ExtendsKeyword */)) { - if (isStartOfType() || !isStartOfExpression()) { - constraint = parseType(); - } else { - expression = parseUnaryExpressionOrHigher(); - } - } - const defaultType = parseOptional(64 /* EqualsToken */) ? parseType() : void 0; - const node = factory2.createTypeParameterDeclaration(modifiers, name, constraint, defaultType); - node.expression = expression; - return finishNode(node, pos); - } - function parseTypeParameters() { - if (token() === 30 /* LessThanToken */) { - return parseBracketedList(19 /* TypeParameters */, parseTypeParameter, 30 /* LessThanToken */, 32 /* GreaterThanToken */); - } - } - function isStartOfParameter(isJSDocParameter) { - return token() === 26 /* DotDotDotToken */ || isBindingIdentifierOrPrivateIdentifierOrPattern() || isModifierKind(token()) || token() === 60 /* AtToken */ || isStartOfType( - /*inStartOfParameter*/ - !isJSDocParameter - ); - } - function parseNameOfParameter(modifiers) { - const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_cannot_be_used_as_parameters); - if (getFullWidth(name) === 0 && !some(modifiers) && isModifierKind(token())) { - nextToken(); - } - return name; - } - function isParameterNameStart() { - return isBindingIdentifier() || token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */; - } - function parseParameter(inOuterAwaitContext) { - return parseParameterWorker(inOuterAwaitContext); - } - function parseParameterForSpeculation(inOuterAwaitContext) { - return parseParameterWorker( - inOuterAwaitContext, - /*allowAmbiguity*/ - false - ); - } - function parseParameterWorker(inOuterAwaitContext, allowAmbiguity = true) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = inOuterAwaitContext ? doInAwaitContext(() => parseModifiers( - /*allowDecorators*/ - true - )) : doOutsideOfAwaitContext(() => parseModifiers( - /*allowDecorators*/ - true - )); - if (token() === 110 /* ThisKeyword */) { - const node2 = factory2.createParameterDeclaration( - modifiers, - /*dotDotDotToken*/ - void 0, - createIdentifier( - /*isIdentifier*/ - true - ), - /*questionToken*/ - void 0, - parseTypeAnnotation(), - /*initializer*/ - void 0 - ); - const modifier = firstOrUndefined(modifiers); - if (modifier) { - parseErrorAtRange(modifier, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); - } - return withJSDoc(finishNode(node2, pos), hasJSDoc); - } - const savedTopLevel = topLevel; - topLevel = false; - const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); - if (!allowAmbiguity && !isParameterNameStart()) { - return void 0; - } - const node = withJSDoc( - finishNode( - factory2.createParameterDeclaration( - modifiers, - dotDotDotToken, - parseNameOfParameter(modifiers), - parseOptionalToken(58 /* QuestionToken */), - parseTypeAnnotation(), - parseInitializer() - ), - pos - ), - hasJSDoc - ); - topLevel = savedTopLevel; - return node; - } - function parseReturnType(returnToken, isType) { - if (shouldParseReturnType(returnToken, isType)) { - return allowConditionalTypesAnd(parseTypeOrTypePredicate); - } - } - function shouldParseReturnType(returnToken, isType) { - if (returnToken === 39 /* EqualsGreaterThanToken */) { - parseExpected(returnToken); - return true; - } else if (parseOptional(59 /* ColonToken */)) { - return true; - } else if (isType && token() === 39 /* EqualsGreaterThanToken */) { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(59 /* ColonToken */)); - nextToken(); - return true; - } - return false; - } - function parseParametersWorker(flags, allowAmbiguity) { - const savedYieldContext = inYieldContext(); - const savedAwaitContext = inAwaitContext(); - setYieldContext(!!(flags & 1 /* Yield */)); - setAwaitContext(!!(flags & 2 /* Await */)); - const parameters = flags & 32 /* JSDoc */ ? parseDelimitedList(17 /* JSDocParameters */, parseJSDocParameter) : parseDelimitedList(16 /* Parameters */, () => allowAmbiguity ? parseParameter(savedAwaitContext) : parseParameterForSpeculation(savedAwaitContext)); - setYieldContext(savedYieldContext); - setAwaitContext(savedAwaitContext); - return parameters; - } - function parseParameters(flags) { - if (!parseExpected(21 /* OpenParenToken */)) { - return createMissingList(); - } - const parameters = parseParametersWorker( - flags, - /*allowAmbiguity*/ - true - ); - parseExpected(22 /* CloseParenToken */); - return parameters; - } - function parseTypeMemberSemicolon() { - if (parseOptional(28 /* CommaToken */)) { - return; - } - parseSemicolon(); - } - function parseSignatureMember(kind) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - if (kind === 180 /* ConstructSignature */) { - parseExpected(105 /* NewKeyword */); - } - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(4 /* Type */); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - true - ); - parseTypeMemberSemicolon(); - const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function isIndexSignature() { - return token() === 23 /* OpenBracketToken */ && lookAhead(isUnambiguouslyIndexSignature); - } - function isUnambiguouslyIndexSignature() { - nextToken(); - if (token() === 26 /* DotDotDotToken */ || token() === 24 /* CloseBracketToken */) { - return true; - } - if (isModifierKind(token())) { - nextToken(); - if (isIdentifier2()) { - return true; - } - } else if (!isIdentifier2()) { - return false; - } else { - nextToken(); - } - if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */) { - return true; - } - if (token() !== 58 /* QuestionToken */) { - return false; - } - nextToken(); - return token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 24 /* CloseBracketToken */; - } - function parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers) { - const parameters = parseBracketedList(16 /* Parameters */, () => parseParameter( - /*inOuterAwaitContext*/ - false - ), 23 /* OpenBracketToken */, 24 /* CloseBracketToken */); - const type = parseTypeAnnotation(); - parseTypeMemberSemicolon(); - const node = factory2.createIndexSignature(modifiers, parameters, type); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) { - const name = parsePropertyName(); - const questionToken = parseOptionalToken(58 /* QuestionToken */); - let node; - if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(4 /* Type */); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - true - ); - node = factory2.createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type); - } else { - const type = parseTypeAnnotation(); - node = factory2.createPropertySignature(modifiers, name, questionToken, type); - if (token() === 64 /* EqualsToken */) node.initializer = parseInitializer(); - } - parseTypeMemberSemicolon(); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function isTypeMemberStart() { - if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 139 /* GetKeyword */ || token() === 153 /* SetKeyword */) { - return true; - } - let idToken = false; - while (isModifierKind(token())) { - idToken = true; - nextToken(); - } - if (token() === 23 /* OpenBracketToken */) { - return true; - } - if (isLiteralPropertyName()) { - idToken = true; - nextToken(); - } - if (idToken) { - return token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 58 /* QuestionToken */ || token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || canParseSemicolon(); - } - return false; - } - function parseTypeMember() { - if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseSignatureMember(179 /* CallSignature */); - } - if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { - return parseSignatureMember(180 /* ConstructSignature */); - } - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiers( - /*allowDecorators*/ - false - ); - if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); - } - if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); - } - if (isIndexSignature()) { - return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); - } - return parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers); - } - function nextTokenIsOpenParenOrLessThan() { - nextToken(); - return token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */; - } - function nextTokenIsDot() { - return nextToken() === 25 /* DotToken */; - } - function nextTokenIsOpenParenOrLessThanOrDot() { - switch (nextToken()) { - case 21 /* OpenParenToken */: - case 30 /* LessThanToken */: - case 25 /* DotToken */: - return true; - } - return false; - } - function parseTypeLiteral() { - const pos = getNodePos(); - return finishNode(factory2.createTypeLiteralNode(parseObjectTypeMembers()), pos); - } - function parseObjectTypeMembers() { - let members; - if (parseExpected(19 /* OpenBraceToken */)) { - members = parseList(4 /* TypeMembers */, parseTypeMember); - parseExpected(20 /* CloseBraceToken */); - } else { - members = createMissingList(); - } - return members; - } - function isStartOfMappedType() { - nextToken(); - if (token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { - return nextToken() === 148 /* ReadonlyKeyword */; - } - if (token() === 148 /* ReadonlyKeyword */) { - nextToken(); - } - return token() === 23 /* OpenBracketToken */ && nextTokenIsIdentifier() && nextToken() === 103 /* InKeyword */; - } - function parseMappedTypeParameter() { - const pos = getNodePos(); - const name = parseIdentifierName(); - parseExpected(103 /* InKeyword */); - const type = parseType(); - return finishNode(factory2.createTypeParameterDeclaration( - /*modifiers*/ - void 0, - name, - type, - /*defaultType*/ - void 0 - ), pos); - } - function parseMappedType() { - const pos = getNodePos(); - parseExpected(19 /* OpenBraceToken */); - let readonlyToken; - if (token() === 148 /* ReadonlyKeyword */ || token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { - readonlyToken = parseTokenNode(); - if (readonlyToken.kind !== 148 /* ReadonlyKeyword */) { - parseExpected(148 /* ReadonlyKeyword */); - } - } - parseExpected(23 /* OpenBracketToken */); - const typeParameter = parseMappedTypeParameter(); - const nameType = parseOptional(130 /* AsKeyword */) ? parseType() : void 0; - parseExpected(24 /* CloseBracketToken */); - let questionToken; - if (token() === 58 /* QuestionToken */ || token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { - questionToken = parseTokenNode(); - if (questionToken.kind !== 58 /* QuestionToken */) { - parseExpected(58 /* QuestionToken */); - } - } - const type = parseTypeAnnotation(); - parseSemicolon(); - const members = parseList(4 /* TypeMembers */, parseTypeMember); - parseExpected(20 /* CloseBraceToken */); - return finishNode(factory2.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), pos); - } - function parseTupleElementType() { - const pos = getNodePos(); - if (parseOptional(26 /* DotDotDotToken */)) { - return finishNode(factory2.createRestTypeNode(parseType()), pos); - } - const type = parseType(); - if (isJSDocNullableType(type) && type.pos === type.type.pos) { - const node = factory2.createOptionalTypeNode(type.type); - setTextRange(node, type); - node.flags = type.flags; - return node; - } - return type; - } - function isNextTokenColonOrQuestionColon() { - return nextToken() === 59 /* ColonToken */ || token() === 58 /* QuestionToken */ && nextToken() === 59 /* ColonToken */; - } - function isTupleElementName() { - if (token() === 26 /* DotDotDotToken */) { - return tokenIsIdentifierOrKeyword(nextToken()) && isNextTokenColonOrQuestionColon(); - } - return tokenIsIdentifierOrKeyword(token()) && isNextTokenColonOrQuestionColon(); - } - function parseTupleElementNameOrTupleElementType() { - if (lookAhead(isTupleElementName)) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); - const name = parseIdentifierName(); - const questionToken = parseOptionalToken(58 /* QuestionToken */); - parseExpected(59 /* ColonToken */); - const type = parseTupleElementType(); - const node = factory2.createNamedTupleMember(dotDotDotToken, name, questionToken, type); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - return parseTupleElementType(); - } - function parseTupleType() { - const pos = getNodePos(); - return finishNode( - factory2.createTupleTypeNode( - parseBracketedList(21 /* TupleElementTypes */, parseTupleElementNameOrTupleElementType, 23 /* OpenBracketToken */, 24 /* CloseBracketToken */) - ), - pos - ); - } - function parseParenthesizedType() { - const pos = getNodePos(); - parseExpected(21 /* OpenParenToken */); - const type = parseType(); - parseExpected(22 /* CloseParenToken */); - return finishNode(factory2.createParenthesizedType(type), pos); - } - function parseModifiersForConstructorType() { - let modifiers; - if (token() === 128 /* AbstractKeyword */) { - const pos = getNodePos(); - nextToken(); - const modifier = finishNode(factoryCreateToken(128 /* AbstractKeyword */), pos); - modifiers = createNodeArray([modifier], pos); - } - return modifiers; - } - function parseFunctionOrConstructorType() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiersForConstructorType(); - const isConstructorType = parseOptional(105 /* NewKeyword */); - Debug.assert(!modifiers || isConstructorType, "Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers."); - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(4 /* Type */); - const type = parseReturnType( - 39 /* EqualsGreaterThanToken */, - /*isType*/ - false - ); - const node = isConstructorType ? factory2.createConstructorTypeNode(modifiers, typeParameters, parameters, type) : factory2.createFunctionTypeNode(typeParameters, parameters, type); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseKeywordAndNoDot() { - const node = parseTokenNode(); - return token() === 25 /* DotToken */ ? void 0 : node; - } - function parseLiteralTypeNode(negative) { - const pos = getNodePos(); - if (negative) { - nextToken(); - } - let expression = token() === 112 /* TrueKeyword */ || token() === 97 /* FalseKeyword */ || token() === 106 /* NullKeyword */ ? parseTokenNode() : parseLiteralLikeNode(token()); - if (negative) { - expression = finishNode(factory2.createPrefixUnaryExpression(41 /* MinusToken */, expression), pos); - } - return finishNode(factory2.createLiteralTypeNode(expression), pos); - } - function isStartOfTypeOfImportType() { - nextToken(); - return token() === 102 /* ImportKeyword */; - } - function parseImportType() { - sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; - const pos = getNodePos(); - const isTypeOf = parseOptional(114 /* TypeOfKeyword */); - parseExpected(102 /* ImportKeyword */); - parseExpected(21 /* OpenParenToken */); - const type = parseType(); - let attributes; - if (parseOptional(28 /* CommaToken */)) { - const openBracePosition = scanner.getTokenStart(); - parseExpected(19 /* OpenBraceToken */); - const currentToken2 = token(); - if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) { - nextToken(); - } else { - parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(118 /* WithKeyword */)); - } - parseExpected(59 /* ColonToken */); - attributes = parseImportAttributes( - currentToken2, - /*skipKeyword*/ - true - ); - if (!parseExpected(20 /* CloseBraceToken */)) { - const lastError = lastOrUndefined(parseDiagnostics); - if (lastError && lastError.code === Diagnostics._0_expected.code) { - addRelatedInfo( - lastError, - createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}") - ); - } - } - } - parseExpected(22 /* CloseParenToken */); - const qualifier = parseOptional(25 /* DotToken */) ? parseEntityNameOfTypeReference() : void 0; - const typeArguments = parseTypeArgumentsOfTypeReference(); - return finishNode(factory2.createImportTypeNode(type, attributes, qualifier, typeArguments, isTypeOf), pos); - } - function nextTokenIsNumericOrBigIntLiteral() { - nextToken(); - return token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */; - } - function parseNonArrayType() { - switch (token()) { - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 154 /* StringKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 155 /* SymbolKeyword */: - case 136 /* BooleanKeyword */: - case 157 /* UndefinedKeyword */: - case 146 /* NeverKeyword */: - case 151 /* ObjectKeyword */: - return tryParse(parseKeywordAndNoDot) || parseTypeReference(); - case 67 /* AsteriskEqualsToken */: - scanner.reScanAsteriskEqualsToken(); - // falls through - case 42 /* AsteriskToken */: - return parseJSDocAllType(); - case 61 /* QuestionQuestionToken */: - scanner.reScanQuestionToken(); - // falls through - case 58 /* QuestionToken */: - return parseJSDocUnknownOrNullableType(); - case 100 /* FunctionKeyword */: - return parseJSDocFunctionType(); - case 54 /* ExclamationToken */: - return parseJSDocNonNullableType(); - case 15 /* NoSubstitutionTemplateLiteral */: - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 106 /* NullKeyword */: - return parseLiteralTypeNode(); - case 41 /* MinusToken */: - return lookAhead(nextTokenIsNumericOrBigIntLiteral) ? parseLiteralTypeNode( - /*negative*/ - true - ) : parseTypeReference(); - case 116 /* VoidKeyword */: - return parseTokenNode(); - case 110 /* ThisKeyword */: { - const thisKeyword = parseThisTypeNode(); - if (token() === 142 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) { - return parseThisTypePredicate(thisKeyword); - } else { - return thisKeyword; - } - } - case 114 /* TypeOfKeyword */: - return lookAhead(isStartOfTypeOfImportType) ? parseImportType() : parseTypeQuery(); - case 19 /* OpenBraceToken */: - return lookAhead(isStartOfMappedType) ? parseMappedType() : parseTypeLiteral(); - case 23 /* OpenBracketToken */: - return parseTupleType(); - case 21 /* OpenParenToken */: - return parseParenthesizedType(); - case 102 /* ImportKeyword */: - return parseImportType(); - case 131 /* AssertsKeyword */: - return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine) ? parseAssertsTypePredicate() : parseTypeReference(); - case 16 /* TemplateHead */: - return parseTemplateType(); - default: - return parseTypeReference(); - } - } - function isStartOfType(inStartOfParameter) { - switch (token()) { - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 154 /* StringKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 136 /* BooleanKeyword */: - case 148 /* ReadonlyKeyword */: - case 155 /* SymbolKeyword */: - case 158 /* UniqueKeyword */: - case 116 /* VoidKeyword */: - case 157 /* UndefinedKeyword */: - case 106 /* NullKeyword */: - case 110 /* ThisKeyword */: - case 114 /* TypeOfKeyword */: - case 146 /* NeverKeyword */: - case 19 /* OpenBraceToken */: - case 23 /* OpenBracketToken */: - case 30 /* LessThanToken */: - case 52 /* BarToken */: - case 51 /* AmpersandToken */: - case 105 /* NewKeyword */: - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 151 /* ObjectKeyword */: - case 42 /* AsteriskToken */: - case 58 /* QuestionToken */: - case 54 /* ExclamationToken */: - case 26 /* DotDotDotToken */: - case 140 /* InferKeyword */: - case 102 /* ImportKeyword */: - case 131 /* AssertsKeyword */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 16 /* TemplateHead */: - return true; - case 100 /* FunctionKeyword */: - return !inStartOfParameter; - case 41 /* MinusToken */: - return !inStartOfParameter && lookAhead(nextTokenIsNumericOrBigIntLiteral); - case 21 /* OpenParenToken */: - return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType); - default: - return isIdentifier2(); - } - } - function isStartOfParenthesizedOrFunctionType() { - nextToken(); - return token() === 22 /* CloseParenToken */ || isStartOfParameter( - /*isJSDocParameter*/ - false - ) || isStartOfType(); - } - function parsePostfixTypeOrHigher() { - const pos = getNodePos(); - let type = parseNonArrayType(); - while (!scanner.hasPrecedingLineBreak()) { - switch (token()) { - case 54 /* ExclamationToken */: - nextToken(); - type = finishNode(factory2.createJSDocNonNullableType( - type, - /*postfix*/ - true - ), pos); - break; - case 58 /* QuestionToken */: - if (lookAhead(nextTokenIsStartOfType)) { - return type; - } - nextToken(); - type = finishNode(factory2.createJSDocNullableType( - type, - /*postfix*/ - true - ), pos); - break; - case 23 /* OpenBracketToken */: - parseExpected(23 /* OpenBracketToken */); - if (isStartOfType()) { - const indexType = parseType(); - parseExpected(24 /* CloseBracketToken */); - type = finishNode(factory2.createIndexedAccessTypeNode(type, indexType), pos); - } else { - parseExpected(24 /* CloseBracketToken */); - type = finishNode(factory2.createArrayTypeNode(type), pos); - } - break; - default: - return type; - } - } - return type; - } - function parseTypeOperator(operator) { - const pos = getNodePos(); - parseExpected(operator); - return finishNode(factory2.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos); - } - function tryParseConstraintOfInferType() { - if (parseOptional(96 /* ExtendsKeyword */)) { - const constraint = disallowConditionalTypesAnd(parseType); - if (inDisallowConditionalTypesContext() || token() !== 58 /* QuestionToken */) { - return constraint; - } - } - } - function parseTypeParameterOfInferType() { - const pos = getNodePos(); - const name = parseIdentifier(); - const constraint = tryParse(tryParseConstraintOfInferType); - const node = factory2.createTypeParameterDeclaration( - /*modifiers*/ - void 0, - name, - constraint - ); - return finishNode(node, pos); - } - function parseInferType() { - const pos = getNodePos(); - parseExpected(140 /* InferKeyword */); - return finishNode(factory2.createInferTypeNode(parseTypeParameterOfInferType()), pos); - } - function parseTypeOperatorOrHigher() { - const operator = token(); - switch (operator) { - case 143 /* KeyOfKeyword */: - case 158 /* UniqueKeyword */: - case 148 /* ReadonlyKeyword */: - return parseTypeOperator(operator); - case 140 /* InferKeyword */: - return parseInferType(); - } - return allowConditionalTypesAnd(parsePostfixTypeOrHigher); - } - function parseFunctionOrConstructorTypeToError(isInUnionType) { - if (isStartOfFunctionTypeOrConstructorType()) { - const type = parseFunctionOrConstructorType(); - let diagnostic; - if (isFunctionTypeNode(type)) { - diagnostic = isInUnionType ? Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type; - } else { - diagnostic = isInUnionType ? Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type; - } - parseErrorAtRange(type, diagnostic); - return type; - } - return void 0; - } - function parseUnionOrIntersectionType(operator, parseConstituentType, createTypeNode) { - const pos = getNodePos(); - const isUnionType = operator === 52 /* BarToken */; - const hasLeadingOperator = parseOptional(operator); - let type = hasLeadingOperator && parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType(); - if (token() === operator || hasLeadingOperator) { - const types = [type]; - while (parseOptional(operator)) { - types.push(parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType()); - } - type = finishNode(createTypeNode(createNodeArray(types, pos)), pos); - } - return type; - } - function parseIntersectionTypeOrHigher() { - return parseUnionOrIntersectionType(51 /* AmpersandToken */, parseTypeOperatorOrHigher, factory2.createIntersectionTypeNode); - } - function parseUnionTypeOrHigher() { - return parseUnionOrIntersectionType(52 /* BarToken */, parseIntersectionTypeOrHigher, factory2.createUnionTypeNode); - } - function nextTokenIsNewKeyword() { - nextToken(); - return token() === 105 /* NewKeyword */; - } - function isStartOfFunctionTypeOrConstructorType() { - if (token() === 30 /* LessThanToken */) { - return true; - } - if (token() === 21 /* OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType)) { - return true; - } - return token() === 105 /* NewKeyword */ || token() === 128 /* AbstractKeyword */ && lookAhead(nextTokenIsNewKeyword); - } - function skipParameterStart() { - if (isModifierKind(token())) { - parseModifiers( - /*allowDecorators*/ - false - ); - } - if (isIdentifier2() || token() === 110 /* ThisKeyword */) { - nextToken(); - return true; - } - if (token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */) { - const previousErrorCount = parseDiagnostics.length; - parseIdentifierOrPattern(); - return previousErrorCount === parseDiagnostics.length; - } - return false; - } - function isUnambiguouslyStartOfFunctionType() { - nextToken(); - if (token() === 22 /* CloseParenToken */ || token() === 26 /* DotDotDotToken */) { - return true; - } - if (skipParameterStart()) { - if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 58 /* QuestionToken */ || token() === 64 /* EqualsToken */) { - return true; - } - if (token() === 22 /* CloseParenToken */) { - nextToken(); - if (token() === 39 /* EqualsGreaterThanToken */) { - return true; - } - } - } - return false; - } - function parseTypeOrTypePredicate() { - const pos = getNodePos(); - const typePredicateVariable = isIdentifier2() && tryParse(parseTypePredicatePrefix); - const type = parseType(); - if (typePredicateVariable) { - return finishNode(factory2.createTypePredicateNode( - /*assertsModifier*/ - void 0, - typePredicateVariable, - type - ), pos); - } else { - return type; - } - } - function parseTypePredicatePrefix() { - const id = parseIdentifier(); - if (token() === 142 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) { - nextToken(); - return id; - } - } - function parseAssertsTypePredicate() { - const pos = getNodePos(); - const assertsModifier = parseExpectedToken(131 /* AssertsKeyword */); - const parameterName = token() === 110 /* ThisKeyword */ ? parseThisTypeNode() : parseIdentifier(); - const type = parseOptional(142 /* IsKeyword */) ? parseType() : void 0; - return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); - } - function parseType() { - if (contextFlags & 81920 /* TypeExcludesFlags */) { - return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); - } - if (isStartOfFunctionTypeOrConstructorType()) { - return parseFunctionOrConstructorType(); - } - const pos = getNodePos(); - const type = parseUnionTypeOrHigher(); - if (!inDisallowConditionalTypesContext() && !scanner.hasPrecedingLineBreak() && parseOptional(96 /* ExtendsKeyword */)) { - const extendsType = disallowConditionalTypesAnd(parseType); - parseExpected(58 /* QuestionToken */); - const trueType = allowConditionalTypesAnd(parseType); - parseExpected(59 /* ColonToken */); - const falseType = allowConditionalTypesAnd(parseType); - return finishNode(factory2.createConditionalTypeNode(type, extendsType, trueType, falseType), pos); - } - return type; - } - function parseTypeAnnotation() { - return parseOptional(59 /* ColonToken */) ? parseType() : void 0; - } - function isStartOfLeftHandSideExpression() { - switch (token()) { - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 106 /* NullKeyword */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 16 /* TemplateHead */: - case 21 /* OpenParenToken */: - case 23 /* OpenBracketToken */: - case 19 /* OpenBraceToken */: - case 100 /* FunctionKeyword */: - case 86 /* ClassKeyword */: - case 105 /* NewKeyword */: - case 44 /* SlashToken */: - case 69 /* SlashEqualsToken */: - case 80 /* Identifier */: - return true; - case 102 /* ImportKeyword */: - return lookAhead(nextTokenIsOpenParenOrLessThanOrDot); - default: - return isIdentifier2(); - } - } - function isStartOfExpression() { - if (isStartOfLeftHandSideExpression()) { - return true; - } - switch (token()) { - case 40 /* PlusToken */: - case 41 /* MinusToken */: - case 55 /* TildeToken */: - case 54 /* ExclamationToken */: - case 91 /* DeleteKeyword */: - case 114 /* TypeOfKeyword */: - case 116 /* VoidKeyword */: - case 46 /* PlusPlusToken */: - case 47 /* MinusMinusToken */: - case 30 /* LessThanToken */: - case 135 /* AwaitKeyword */: - case 127 /* YieldKeyword */: - case 81 /* PrivateIdentifier */: - case 60 /* AtToken */: - return true; - default: - if (isBinaryOperator2()) { - return true; - } - return isIdentifier2(); - } - } - function isStartOfExpressionStatement() { - return token() !== 19 /* OpenBraceToken */ && token() !== 100 /* FunctionKeyword */ && token() !== 86 /* ClassKeyword */ && token() !== 60 /* AtToken */ && isStartOfExpression(); - } - function parseExpression() { - const saveDecoratorContext = inDecoratorContext(); - if (saveDecoratorContext) { - setDecoratorContext( - /*val*/ - false - ); - } - const pos = getNodePos(); - let expr = parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - let operatorToken; - while (operatorToken = parseOptionalToken(28 /* CommaToken */)) { - expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ), pos); - } - if (saveDecoratorContext) { - setDecoratorContext( - /*val*/ - true - ); - } - return expr; - } - function parseInitializer() { - return parseOptional(64 /* EqualsToken */) ? parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ) : void 0; - } - function parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) { - if (isYieldExpression()) { - return parseYieldExpression(); - } - const arrowExpression = tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) || tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction); - if (arrowExpression) { - return arrowExpression; - } - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { - return parseSimpleArrowFunctionExpression( - pos, - expr, - allowReturnTypeInArrowFunction, - hasJSDoc, - /*asyncModifier*/ - void 0 - ); - } - if (isLeftHandSideExpression(expr) && isAssignmentOperator(reScanGreaterToken())) { - return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction), pos); - } - return parseConditionalExpressionRest(expr, pos, allowReturnTypeInArrowFunction); - } - function isYieldExpression() { - if (token() === 127 /* YieldKeyword */) { - if (inYieldContext()) { - return true; - } - return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine); - } - return false; - } - function nextTokenIsIdentifierOnSameLine() { - nextToken(); - return !scanner.hasPrecedingLineBreak() && isIdentifier2(); - } - function parseYieldExpression() { - const pos = getNodePos(); - nextToken(); - if (!scanner.hasPrecedingLineBreak() && (token() === 42 /* AsteriskToken */ || isStartOfExpression())) { - return finishNode( - factory2.createYieldExpression( - parseOptionalToken(42 /* AsteriskToken */), - parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ) - ), - pos - ); - } else { - return finishNode(factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - /*expression*/ - void 0 - ), pos); - } - } - function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { - Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); - const parameter = factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - identifier, - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - finishNode(parameter, identifier.pos); - const parameters = createNodeArray([parameter], parameter.pos, parameter.end); - const equalsGreaterThanToken = parseExpectedToken(39 /* EqualsGreaterThanToken */); - const body = parseArrowFunctionExpressionBody( - /*isAsync*/ - !!asyncModifier, - allowReturnTypeInArrowFunction - ); - const node = factory2.createArrowFunction( - asyncModifier, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - equalsGreaterThanToken, - body - ); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { - const triState = isParenthesizedArrowFunctionExpression(); - if (triState === 0 /* False */) { - return void 0; - } - return triState === 1 /* True */ ? parseParenthesizedArrowFunctionExpression( - /*allowAmbiguity*/ - true, - /*allowReturnTypeInArrowFunction*/ - true - ) : tryParse(() => parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction)); - } - function isParenthesizedArrowFunctionExpression() { - if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 134 /* AsyncKeyword */) { - return lookAhead(isParenthesizedArrowFunctionExpressionWorker); - } - if (token() === 39 /* EqualsGreaterThanToken */) { - return 1 /* True */; - } - return 0 /* False */; - } - function isParenthesizedArrowFunctionExpressionWorker() { - if (token() === 134 /* AsyncKeyword */) { - nextToken(); - if (scanner.hasPrecedingLineBreak()) { - return 0 /* False */; - } - if (token() !== 21 /* OpenParenToken */ && token() !== 30 /* LessThanToken */) { - return 0 /* False */; - } - } - const first2 = token(); - const second = nextToken(); - if (first2 === 21 /* OpenParenToken */) { - if (second === 22 /* CloseParenToken */) { - const third = nextToken(); - switch (third) { - case 39 /* EqualsGreaterThanToken */: - case 59 /* ColonToken */: - case 19 /* OpenBraceToken */: - return 1 /* True */; - default: - return 0 /* False */; - } - } - if (second === 23 /* OpenBracketToken */ || second === 19 /* OpenBraceToken */) { - return 2 /* Unknown */; - } - if (second === 26 /* DotDotDotToken */) { - return 1 /* True */; - } - if (isModifierKind(second) && second !== 134 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) { - if (nextToken() === 130 /* AsKeyword */) { - return 0 /* False */; - } - return 1 /* True */; - } - if (!isIdentifier2() && second !== 110 /* ThisKeyword */) { - return 0 /* False */; - } - switch (nextToken()) { - case 59 /* ColonToken */: - return 1 /* True */; - case 58 /* QuestionToken */: - nextToken(); - if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 64 /* EqualsToken */ || token() === 22 /* CloseParenToken */) { - return 1 /* True */; - } - return 0 /* False */; - case 28 /* CommaToken */: - case 64 /* EqualsToken */: - case 22 /* CloseParenToken */: - return 2 /* Unknown */; - } - return 0 /* False */; - } else { - Debug.assert(first2 === 30 /* LessThanToken */); - if (!isIdentifier2() && token() !== 87 /* ConstKeyword */) { - return 0 /* False */; - } - if (languageVariant === 1 /* JSX */) { - const isArrowFunctionInJsx = lookAhead(() => { - parseOptional(87 /* ConstKeyword */); - const third = nextToken(); - if (third === 96 /* ExtendsKeyword */) { - const fourth = nextToken(); - switch (fourth) { - case 64 /* EqualsToken */: - case 32 /* GreaterThanToken */: - case 44 /* SlashToken */: - return false; - default: - return true; - } - } else if (third === 28 /* CommaToken */ || third === 64 /* EqualsToken */) { - return true; - } - return false; - }); - if (isArrowFunctionInJsx) { - return 1 /* True */; - } - return 0 /* False */; - } - return 2 /* Unknown */; - } - } - function parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { - const tokenPos = scanner.getTokenStart(); - if (notParenthesizedArrow == null ? void 0 : notParenthesizedArrow.has(tokenPos)) { - return void 0; - } - const result = parseParenthesizedArrowFunctionExpression( - /*allowAmbiguity*/ - false, - allowReturnTypeInArrowFunction - ); - if (!result) { - (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos); - } - return result; - } - function tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction) { - if (token() === 134 /* AsyncKeyword */) { - if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const asyncModifier = parseModifiersForArrowFunction(); - const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); - } - } - return void 0; - } - function isUnParenthesizedAsyncArrowFunctionWorker() { - if (token() === 134 /* AsyncKeyword */) { - nextToken(); - if (scanner.hasPrecedingLineBreak() || token() === 39 /* EqualsGreaterThanToken */) { - return 0 /* False */; - } - const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); - if (!scanner.hasPrecedingLineBreak() && expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { - return 1 /* True */; - } - } - return 0 /* False */; - } - function parseParenthesizedArrowFunctionExpression(allowAmbiguity, allowReturnTypeInArrowFunction) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiersForArrowFunction(); - const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; - const typeParameters = parseTypeParameters(); - let parameters; - if (!parseExpected(21 /* OpenParenToken */)) { - if (!allowAmbiguity) { - return void 0; - } - parameters = createMissingList(); - } else { - if (!allowAmbiguity) { - const maybeParameters = parseParametersWorker(isAsync, allowAmbiguity); - if (!maybeParameters) { - return void 0; - } - parameters = maybeParameters; - } else { - parameters = parseParametersWorker(isAsync, allowAmbiguity); - } - if (!parseExpected(22 /* CloseParenToken */) && !allowAmbiguity) { - return void 0; - } - } - const hasReturnColon = token() === 59 /* ColonToken */; - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) { - return void 0; - } - let unwrappedType = type; - while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { - unwrappedType = unwrappedType.type; - } - const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); - if (!allowAmbiguity && token() !== 39 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 19 /* OpenBraceToken */)) { - return void 0; - } - const lastToken = token(); - const equalsGreaterThanToken = parseExpectedToken(39 /* EqualsGreaterThanToken */); - const body = lastToken === 39 /* EqualsGreaterThanToken */ || lastToken === 19 /* OpenBraceToken */ ? parseArrowFunctionExpressionBody(some(modifiers, isAsyncModifier), allowReturnTypeInArrowFunction) : parseIdentifier(); - if (!allowReturnTypeInArrowFunction && hasReturnColon) { - if (token() !== 59 /* ColonToken */) { - return void 0; - } - } - const node = factory2.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseArrowFunctionExpressionBody(isAsync, allowReturnTypeInArrowFunction) { - if (token() === 19 /* OpenBraceToken */) { - return parseFunctionBlock(isAsync ? 2 /* Await */ : 0 /* None */); - } - if (token() !== 27 /* SemicolonToken */ && token() !== 100 /* FunctionKeyword */ && token() !== 86 /* ClassKeyword */ && isStartOfStatement() && !isStartOfExpressionStatement()) { - return parseFunctionBlock(16 /* IgnoreMissingOpenBrace */ | (isAsync ? 2 /* Await */ : 0 /* None */)); - } - const savedTopLevel = topLevel; - topLevel = false; - const node = isAsync ? doInAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)) : doOutsideOfAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)); - topLevel = savedTopLevel; - return node; - } - function parseConditionalExpressionRest(leftOperand, pos, allowReturnTypeInArrowFunction) { - const questionToken = parseOptionalToken(58 /* QuestionToken */); - if (!questionToken) { - return leftOperand; - } - let colonToken; - return finishNode( - factory2.createConditionalExpression( - leftOperand, - questionToken, - doOutsideOfContext(disallowInAndDecoratorContext, () => parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - false - )), - colonToken = parseExpectedToken(59 /* ColonToken */), - nodeIsPresent(colonToken) ? parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) : createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - false, - Diagnostics._0_expected, - tokenToString(59 /* ColonToken */) - ) - ), - pos - ); - } - function parseBinaryExpressionOrHigher(precedence) { - const pos = getNodePos(); - const leftOperand = parseUnaryExpressionOrHigher(); - return parseBinaryExpressionRest(precedence, leftOperand, pos); - } - function isInOrOfKeyword(t) { - return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; - } - function parseBinaryExpressionRest(precedence, leftOperand, pos) { - while (true) { - reScanGreaterToken(); - const newPrecedence = getBinaryOperatorPrecedence(token()); - const consumeCurrentOperator = token() === 43 /* AsteriskAsteriskToken */ ? newPrecedence >= precedence : newPrecedence > precedence; - if (!consumeCurrentOperator) { - break; - } - if (token() === 103 /* InKeyword */ && inDisallowInContext()) { - break; - } - if (token() === 130 /* AsKeyword */ || token() === 152 /* SatisfiesKeyword */) { - if (scanner.hasPrecedingLineBreak()) { - break; - } else { - const keywordKind = token(); - nextToken(); - leftOperand = keywordKind === 152 /* SatisfiesKeyword */ ? makeSatisfiesExpression(leftOperand, parseType()) : makeAsExpression(leftOperand, parseType()); - } - } else { - leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence), pos); - } - } - return leftOperand; - } - function isBinaryOperator2() { - if (inDisallowInContext() && token() === 103 /* InKeyword */) { - return false; - } - return getBinaryOperatorPrecedence(token()) > 0; - } - function makeSatisfiesExpression(left, right) { - return finishNode(factory2.createSatisfiesExpression(left, right), left.pos); - } - function makeBinaryExpression(left, operatorToken, right, pos) { - return finishNode(factory2.createBinaryExpression(left, operatorToken, right), pos); - } - function makeAsExpression(left, right) { - return finishNode(factory2.createAsExpression(left, right), left.pos); - } - function parsePrefixUnaryExpression() { - const pos = getNodePos(); - return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseSimpleUnaryExpression)), pos); - } - function parseDeleteExpression() { - const pos = getNodePos(); - return finishNode(factory2.createDeleteExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); - } - function parseTypeOfExpression() { - const pos = getNodePos(); - return finishNode(factory2.createTypeOfExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); - } - function parseVoidExpression() { - const pos = getNodePos(); - return finishNode(factory2.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); - } - function isAwaitExpression2() { - if (token() === 135 /* AwaitKeyword */) { - if (inAwaitContext()) { - return true; - } - return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine); - } - return false; - } - function parseAwaitExpression() { - const pos = getNodePos(); - return finishNode(factory2.createAwaitExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); - } - function parseUnaryExpressionOrHigher() { - if (isUpdateExpression()) { - const pos = getNodePos(); - const updateExpression = parseUpdateExpression(); - return token() === 43 /* AsteriskAsteriskToken */ ? parseBinaryExpressionRest(getBinaryOperatorPrecedence(token()), updateExpression, pos) : updateExpression; - } - const unaryOperator = token(); - const simpleUnaryExpression = parseSimpleUnaryExpression(); - if (token() === 43 /* AsteriskAsteriskToken */) { - const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); - const { end } = simpleUnaryExpression; - if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { - parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); - } else { - Debug.assert(isKeywordOrPunctuation(unaryOperator)); - parseErrorAt(pos, end, Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, tokenToString(unaryOperator)); - } - } - return simpleUnaryExpression; - } - function parseSimpleUnaryExpression() { - switch (token()) { - case 40 /* PlusToken */: - case 41 /* MinusToken */: - case 55 /* TildeToken */: - case 54 /* ExclamationToken */: - return parsePrefixUnaryExpression(); - case 91 /* DeleteKeyword */: - return parseDeleteExpression(); - case 114 /* TypeOfKeyword */: - return parseTypeOfExpression(); - case 116 /* VoidKeyword */: - return parseVoidExpression(); - case 30 /* LessThanToken */: - if (languageVariant === 1 /* JSX */) { - return parseJsxElementOrSelfClosingElementOrFragment( - /*inExpressionContext*/ - true, - /*topInvalidNodePosition*/ - void 0, - /*openingTag*/ - void 0, - /*mustBeUnary*/ - true - ); - } - return parseTypeAssertion(); - case 135 /* AwaitKeyword */: - if (isAwaitExpression2()) { - return parseAwaitExpression(); - } - // falls through - default: - return parseUpdateExpression(); - } - } - function isUpdateExpression() { - switch (token()) { - case 40 /* PlusToken */: - case 41 /* MinusToken */: - case 55 /* TildeToken */: - case 54 /* ExclamationToken */: - case 91 /* DeleteKeyword */: - case 114 /* TypeOfKeyword */: - case 116 /* VoidKeyword */: - case 135 /* AwaitKeyword */: - return false; - case 30 /* LessThanToken */: - if (languageVariant !== 1 /* JSX */) { - return false; - } - // We are in JSX context and the token is part of JSXElement. - // falls through - default: - return true; - } - } - function parseUpdateExpression() { - if (token() === 46 /* PlusPlusToken */ || token() === 47 /* MinusMinusToken */) { - const pos = getNodePos(); - return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseLeftHandSideExpressionOrHigher)), pos); - } else if (languageVariant === 1 /* JSX */ && token() === 30 /* LessThanToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)) { - return parseJsxElementOrSelfClosingElementOrFragment( - /*inExpressionContext*/ - true - ); - } - const expression = parseLeftHandSideExpressionOrHigher(); - Debug.assert(isLeftHandSideExpression(expression)); - if ((token() === 46 /* PlusPlusToken */ || token() === 47 /* MinusMinusToken */) && !scanner.hasPrecedingLineBreak()) { - const operator = token(); - nextToken(); - return finishNode(factory2.createPostfixUnaryExpression(expression, operator), expression.pos); - } - return expression; - } - function parseLeftHandSideExpressionOrHigher() { - const pos = getNodePos(); - let expression; - if (token() === 102 /* ImportKeyword */) { - if (lookAhead(nextTokenIsOpenParenOrLessThan)) { - sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; - expression = parseTokenNode(); - } else if (lookAhead(nextTokenIsDot)) { - nextToken(); - nextToken(); - expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); - sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; - } else { - expression = parseMemberExpressionOrHigher(); - } - } else { - expression = token() === 108 /* SuperKeyword */ ? parseSuperExpression() : parseMemberExpressionOrHigher(); - } - return parseCallExpressionRest(pos, expression); - } - function parseMemberExpressionOrHigher() { - const pos = getNodePos(); - const expression = parsePrimaryExpression(); - return parseMemberExpressionRest( - pos, - expression, - /*allowOptionalChain*/ - true - ); - } - function parseSuperExpression() { - const pos = getNodePos(); - let expression = parseTokenNode(); - if (token() === 30 /* LessThanToken */) { - const startPos = getNodePos(); - const typeArguments = tryParse(parseTypeArgumentsInExpression); - if (typeArguments !== void 0) { - parseErrorAt(startPos, getNodePos(), Diagnostics.super_may_not_use_type_arguments); - if (!isTemplateStartOfTaggedTemplate()) { - expression = factory2.createExpressionWithTypeArguments(expression, typeArguments); - } - } - } - if (token() === 21 /* OpenParenToken */ || token() === 25 /* DotToken */ || token() === 23 /* OpenBracketToken */) { - return expression; - } - parseExpectedToken(25 /* DotToken */, Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); - return finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot( - /*allowIdentifierNames*/ - true, - /*allowPrivateIdentifiers*/ - true, - /*allowUnicodeEscapeSequenceInIdentifierName*/ - true - )), pos); - } - function parseJsxElementOrSelfClosingElementOrFragment(inExpressionContext, topInvalidNodePosition, openingTag, mustBeUnary = false) { - const pos = getNodePos(); - const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); - let result; - if (opening.kind === 286 /* JsxOpeningElement */) { - let children = parseJsxChildren(opening); - let closingElement; - const lastChild = children[children.length - 1]; - if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { - const end = lastChild.children.end; - const newLast = finishNode( - factory2.createJsxElement( - lastChild.openingElement, - lastChild.children, - finishNode(factory2.createJsxClosingElement(finishNode(factoryCreateIdentifier(""), end, end)), end, end) - ), - lastChild.openingElement.pos, - end - ); - children = createNodeArray([...children.slice(0, children.length - 1), newLast], children.pos, end); - closingElement = lastChild.closingElement; - } else { - closingElement = parseJsxClosingElement(opening, inExpressionContext); - if (!tagNamesAreEquivalent(opening.tagName, closingElement.tagName)) { - if (openingTag && isJsxOpeningElement(openingTag) && tagNamesAreEquivalent(closingElement.tagName, openingTag.tagName)) { - parseErrorAtRange(opening.tagName, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, opening.tagName)); - } else { - parseErrorAtRange(closingElement.tagName, Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, getTextOfNodeFromSourceText(sourceText, opening.tagName)); - } - } - } - result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); - } else if (opening.kind === 289 /* JsxOpeningFragment */) { - result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); - } else { - Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); - result = opening; - } - if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { - const topBadPos = typeof topInvalidNodePosition === "undefined" ? result.pos : topInvalidNodePosition; - const invalidElement = tryParse(() => parseJsxElementOrSelfClosingElementOrFragment( - /*inExpressionContext*/ - true, - topBadPos - )); - if (invalidElement) { - const operatorToken = createMissingNode( - 28 /* CommaToken */, - /*reportAtCurrentPosition*/ - false - ); - setTextRangePosWidth(operatorToken, invalidElement.pos, 0); - parseErrorAt(skipTrivia(sourceText, topBadPos), invalidElement.end, Diagnostics.JSX_expressions_must_have_one_parent_element); - return finishNode(factory2.createBinaryExpression(result, operatorToken, invalidElement), pos); - } - } - return result; - } - function parseJsxText() { - const pos = getNodePos(); - const node = factory2.createJsxText(scanner.getTokenValue(), currentToken === 13 /* JsxTextAllWhiteSpaces */); - currentToken = scanner.scanJsxToken(); - return finishNode(node, pos); - } - function parseJsxChild(openingTag, token2) { - switch (token2) { - case 1 /* EndOfFileToken */: - if (isJsxOpeningFragment(openingTag)) { - parseErrorAtRange(openingTag, Diagnostics.JSX_fragment_has_no_corresponding_closing_tag); - } else { - const tag = openingTag.tagName; - const start = Math.min(skipTrivia(sourceText, tag.pos), tag.end); - parseErrorAt(start, tag.end, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, openingTag.tagName)); - } - return void 0; - case 31 /* LessThanSlashToken */: - case 7 /* ConflictMarkerTrivia */: - return void 0; - case 12 /* JsxText */: - case 13 /* JsxTextAllWhiteSpaces */: - return parseJsxText(); - case 19 /* OpenBraceToken */: - return parseJsxExpression( - /*inExpressionContext*/ - false - ); - case 30 /* LessThanToken */: - return parseJsxElementOrSelfClosingElementOrFragment( - /*inExpressionContext*/ - false, - /*topInvalidNodePosition*/ - void 0, - openingTag - ); - default: - return Debug.assertNever(token2); - } - } - function parseJsxChildren(openingTag) { - const list = []; - const listPos = getNodePos(); - const saveParsingContext = parsingContext; - parsingContext |= 1 << 14 /* JsxChildren */; - while (true) { - const child = parseJsxChild(openingTag, currentToken = scanner.reScanJsxToken()); - if (!child) break; - list.push(child); - if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { - break; - } - } - parsingContext = saveParsingContext; - return createNodeArray(list, listPos); - } - function parseJsxAttributes() { - const pos = getNodePos(); - return finishNode(factory2.createJsxAttributes(parseList(13 /* JsxAttributes */, parseJsxAttribute)), pos); - } - function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext) { - const pos = getNodePos(); - parseExpected(30 /* LessThanToken */); - if (token() === 32 /* GreaterThanToken */) { - scanJsxText(); - return finishNode(factory2.createJsxOpeningFragment(), pos); - } - const tagName = parseJsxElementName(); - const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; - const attributes = parseJsxAttributes(); - let node; - if (token() === 32 /* GreaterThanToken */) { - scanJsxText(); - node = factory2.createJsxOpeningElement(tagName, typeArguments, attributes); - } else { - parseExpected(44 /* SlashToken */); - if (parseExpected( - 32 /* GreaterThanToken */, - /*diagnosticMessage*/ - void 0, - /*shouldAdvance*/ - false - )) { - if (inExpressionContext) { - nextToken(); - } else { - scanJsxText(); - } - } - node = factory2.createJsxSelfClosingElement(tagName, typeArguments, attributes); - } - return finishNode(node, pos); - } - function parseJsxElementName() { - const pos = getNodePos(); - const initialExpression = parseJsxTagName(); - if (isJsxNamespacedName(initialExpression)) { - return initialExpression; - } - let expression = initialExpression; - while (parseOptional(25 /* DotToken */)) { - expression = finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot( - /*allowIdentifierNames*/ - true, - /*allowPrivateIdentifiers*/ - false, - /*allowUnicodeEscapeSequenceInIdentifierName*/ - false - )), pos); - } - return expression; - } - function parseJsxTagName() { - const pos = getNodePos(); - scanJsxIdentifier(); - const isThis = token() === 110 /* ThisKeyword */; - const tagName = parseIdentifierNameErrorOnUnicodeEscapeSequence(); - if (parseOptional(59 /* ColonToken */)) { - scanJsxIdentifier(); - return finishNode(factory2.createJsxNamespacedName(tagName, parseIdentifierNameErrorOnUnicodeEscapeSequence()), pos); - } - return isThis ? finishNode(factory2.createToken(110 /* ThisKeyword */), pos) : tagName; - } - function parseJsxExpression(inExpressionContext) { - const pos = getNodePos(); - if (!parseExpected(19 /* OpenBraceToken */)) { - return void 0; - } - let dotDotDotToken; - let expression; - if (token() !== 20 /* CloseBraceToken */) { - if (!inExpressionContext) { - dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); - } - expression = parseExpression(); - } - if (inExpressionContext) { - parseExpected(20 /* CloseBraceToken */); - } else { - if (parseExpected( - 20 /* CloseBraceToken */, - /*diagnosticMessage*/ - void 0, - /*shouldAdvance*/ - false - )) { - scanJsxText(); - } - } - return finishNode(factory2.createJsxExpression(dotDotDotToken, expression), pos); - } - function parseJsxAttribute() { - if (token() === 19 /* OpenBraceToken */) { - return parseJsxSpreadAttribute(); - } - const pos = getNodePos(); - return finishNode(factory2.createJsxAttribute(parseJsxAttributeName(), parseJsxAttributeValue()), pos); - } - function parseJsxAttributeValue() { - if (token() === 64 /* EqualsToken */) { - if (scanJsxAttributeValue() === 11 /* StringLiteral */) { - return parseLiteralNode(); - } - if (token() === 19 /* OpenBraceToken */) { - return parseJsxExpression( - /*inExpressionContext*/ - true - ); - } - if (token() === 30 /* LessThanToken */) { - return parseJsxElementOrSelfClosingElementOrFragment( - /*inExpressionContext*/ - true - ); - } - parseErrorAtCurrentToken(Diagnostics.or_JSX_element_expected); - } - return void 0; - } - function parseJsxAttributeName() { - const pos = getNodePos(); - scanJsxIdentifier(); - const attrName = parseIdentifierNameErrorOnUnicodeEscapeSequence(); - if (parseOptional(59 /* ColonToken */)) { - scanJsxIdentifier(); - return finishNode(factory2.createJsxNamespacedName(attrName, parseIdentifierNameErrorOnUnicodeEscapeSequence()), pos); - } - return attrName; - } - function parseJsxSpreadAttribute() { - const pos = getNodePos(); - parseExpected(19 /* OpenBraceToken */); - parseExpected(26 /* DotDotDotToken */); - const expression = parseExpression(); - parseExpected(20 /* CloseBraceToken */); - return finishNode(factory2.createJsxSpreadAttribute(expression), pos); - } - function parseJsxClosingElement(open, inExpressionContext) { - const pos = getNodePos(); - parseExpected(31 /* LessThanSlashToken */); - const tagName = parseJsxElementName(); - if (parseExpected( - 32 /* GreaterThanToken */, - /*diagnosticMessage*/ - void 0, - /*shouldAdvance*/ - false - )) { - if (inExpressionContext || !tagNamesAreEquivalent(open.tagName, tagName)) { - nextToken(); - } else { - scanJsxText(); - } - } - return finishNode(factory2.createJsxClosingElement(tagName), pos); - } - function parseJsxClosingFragment(inExpressionContext) { - const pos = getNodePos(); - parseExpected(31 /* LessThanSlashToken */); - if (parseExpected( - 32 /* GreaterThanToken */, - Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment, - /*shouldAdvance*/ - false - )) { - if (inExpressionContext) { - nextToken(); - } else { - scanJsxText(); - } - } - return finishNode(factory2.createJsxJsxClosingFragment(), pos); - } - function parseTypeAssertion() { - Debug.assert(languageVariant !== 1 /* JSX */, "Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments."); - const pos = getNodePos(); - parseExpected(30 /* LessThanToken */); - const type = parseType(); - parseExpected(32 /* GreaterThanToken */); - const expression = parseSimpleUnaryExpression(); - return finishNode(factory2.createTypeAssertion(type, expression), pos); - } - function nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate() { - nextToken(); - return tokenIsIdentifierOrKeyword(token()) || token() === 23 /* OpenBracketToken */ || isTemplateStartOfTaggedTemplate(); - } - function isStartOfOptionalPropertyOrElementAccessChain() { - return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); - } - function tryReparseOptionalChain(node) { - if (node.flags & 64 /* OptionalChain */) { - return true; - } - if (isNonNullExpression(node)) { - let expr = node.expression; - while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { - expr = expr.expression; - } - if (expr.flags & 64 /* OptionalChain */) { - while (isNonNullExpression(node)) { - node.flags |= 64 /* OptionalChain */; - node = node.expression; - } - return true; - } - } - return false; - } - function parsePropertyAccessExpressionRest(pos, expression, questionDotToken) { - const name = parseRightSideOfDot( - /*allowIdentifierNames*/ - true, - /*allowPrivateIdentifiers*/ - true, - /*allowUnicodeEscapeSequenceInIdentifierName*/ - true - ); - const isOptionalChain2 = questionDotToken || tryReparseOptionalChain(expression); - const propertyAccess = isOptionalChain2 ? factoryCreatePropertyAccessChain(expression, questionDotToken, name) : factoryCreatePropertyAccessExpression(expression, name); - if (isOptionalChain2 && isPrivateIdentifier(propertyAccess.name)) { - parseErrorAtRange(propertyAccess.name, Diagnostics.An_optional_chain_cannot_contain_private_identifiers); - } - if (isExpressionWithTypeArguments(expression) && expression.typeArguments) { - const pos2 = expression.typeArguments.pos - 1; - const end = skipTrivia(sourceText, expression.typeArguments.end) + 1; - parseErrorAt(pos2, end, Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access); - } - return finishNode(propertyAccess, pos); - } - function parseElementAccessExpressionRest(pos, expression, questionDotToken) { - let argumentExpression; - if (token() === 24 /* CloseBracketToken */) { - argumentExpression = createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.An_element_access_expression_should_take_an_argument - ); - } else { - const argument = allowInAnd(parseExpression); - if (isStringOrNumericLiteralLike(argument)) { - argument.text = internIdentifier(argument.text); - } - argumentExpression = argument; - } - parseExpected(24 /* CloseBracketToken */); - const indexedAccess = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateElementAccessChain(expression, questionDotToken, argumentExpression) : factoryCreateElementAccessExpression(expression, argumentExpression); - return finishNode(indexedAccess, pos); - } - function parseMemberExpressionRest(pos, expression, allowOptionalChain) { - while (true) { - let questionDotToken; - let isPropertyAccess = false; - if (allowOptionalChain && isStartOfOptionalPropertyOrElementAccessChain()) { - questionDotToken = parseExpectedToken(29 /* QuestionDotToken */); - isPropertyAccess = tokenIsIdentifierOrKeyword(token()); - } else { - isPropertyAccess = parseOptional(25 /* DotToken */); - } - if (isPropertyAccess) { - expression = parsePropertyAccessExpressionRest(pos, expression, questionDotToken); - continue; - } - if ((questionDotToken || !inDecoratorContext()) && parseOptional(23 /* OpenBracketToken */)) { - expression = parseElementAccessExpressionRest(pos, expression, questionDotToken); - continue; - } - if (isTemplateStartOfTaggedTemplate()) { - expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( - pos, - expression, - questionDotToken, - /*typeArguments*/ - void 0 - ); - continue; - } - if (!questionDotToken) { - if (token() === 54 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) { - nextToken(); - expression = finishNode(factory2.createNonNullExpression(expression), pos); - continue; - } - const typeArguments = tryParse(parseTypeArgumentsInExpression); - if (typeArguments) { - expression = finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos); - continue; - } - } - return expression; - } - } - function isTemplateStartOfTaggedTemplate() { - return token() === 15 /* NoSubstitutionTemplateLiteral */ || token() === 16 /* TemplateHead */; - } - function parseTaggedTemplateRest(pos, tag, questionDotToken, typeArguments) { - const tagExpression = factory2.createTaggedTemplateExpression( - tag, - typeArguments, - token() === 15 /* NoSubstitutionTemplateLiteral */ ? (reScanTemplateToken( - /*isTaggedTemplate*/ - true - ), parseLiteralNode()) : parseTemplateExpression( - /*isTaggedTemplate*/ - true - ) - ); - if (questionDotToken || tag.flags & 64 /* OptionalChain */) { - tagExpression.flags |= 64 /* OptionalChain */; - } - tagExpression.questionDotToken = questionDotToken; - return finishNode(tagExpression, pos); - } - function parseCallExpressionRest(pos, expression) { - while (true) { - expression = parseMemberExpressionRest( - pos, - expression, - /*allowOptionalChain*/ - true - ); - let typeArguments; - const questionDotToken = parseOptionalToken(29 /* QuestionDotToken */); - if (questionDotToken) { - typeArguments = tryParse(parseTypeArgumentsInExpression); - if (isTemplateStartOfTaggedTemplate()) { - expression = parseTaggedTemplateRest(pos, expression, questionDotToken, typeArguments); - continue; - } - } - if (typeArguments || token() === 21 /* OpenParenToken */) { - if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { - typeArguments = expression.typeArguments; - expression = expression.expression; - } - const argumentList = parseArgumentList(); - const callExpr = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateCallChain(expression, questionDotToken, typeArguments, argumentList) : factoryCreateCallExpression(expression, typeArguments, argumentList); - expression = finishNode(callExpr, pos); - continue; - } - if (questionDotToken) { - const name = createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - false, - Diagnostics.Identifier_expected - ); - expression = finishNode(factoryCreatePropertyAccessChain(expression, questionDotToken, name), pos); - } - break; - } - return expression; - } - function parseArgumentList() { - parseExpected(21 /* OpenParenToken */); - const result = parseDelimitedList(11 /* ArgumentExpressions */, parseArgumentExpression); - parseExpected(22 /* CloseParenToken */); - return result; - } - function parseTypeArgumentsInExpression() { - if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { - return void 0; - } - if (reScanLessThanToken() !== 30 /* LessThanToken */) { - return void 0; - } - nextToken(); - const typeArguments = parseDelimitedList(20 /* TypeArguments */, parseType); - if (reScanGreaterToken() !== 32 /* GreaterThanToken */) { - return void 0; - } - nextToken(); - return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : void 0; - } - function canFollowTypeArgumentsInExpression() { - switch (token()) { - // These tokens can follow a type argument list in a call expression. - case 21 /* OpenParenToken */: - // foo( - case 15 /* NoSubstitutionTemplateLiteral */: - // foo `...` - case 16 /* TemplateHead */: - return true; - // A type argument list followed by `<` never makes sense, and a type argument list followed - // by `>` is ambiguous with a (re-scanned) `>>` operator, so we disqualify both. Also, in - // this context, `+` and `-` are unary operators, not binary operators. - case 30 /* LessThanToken */: - case 32 /* GreaterThanToken */: - case 40 /* PlusToken */: - case 41 /* MinusToken */: - return false; - } - return scanner.hasPrecedingLineBreak() || isBinaryOperator2() || !isStartOfExpression(); - } - function parsePrimaryExpression() { - switch (token()) { - case 15 /* NoSubstitutionTemplateLiteral */: - if (scanner.getTokenFlags() & 26656 /* IsInvalid */) { - reScanTemplateToken( - /*isTaggedTemplate*/ - false - ); - } - // falls through - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 11 /* StringLiteral */: - return parseLiteralNode(); - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 106 /* NullKeyword */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - return parseTokenNode(); - case 21 /* OpenParenToken */: - return parseParenthesizedExpression(); - case 23 /* OpenBracketToken */: - return parseArrayLiteralExpression(); - case 19 /* OpenBraceToken */: - return parseObjectLiteralExpression(); - case 134 /* AsyncKeyword */: - if (!lookAhead(nextTokenIsFunctionKeywordOnSameLine)) { - break; - } - return parseFunctionExpression(); - case 60 /* AtToken */: - return parseDecoratedExpression(); - case 86 /* ClassKeyword */: - return parseClassExpression(); - case 100 /* FunctionKeyword */: - return parseFunctionExpression(); - case 105 /* NewKeyword */: - return parseNewExpressionOrNewDotTarget(); - case 44 /* SlashToken */: - case 69 /* SlashEqualsToken */: - if (reScanSlashToken() === 14 /* RegularExpressionLiteral */) { - return parseLiteralNode(); - } - break; - case 16 /* TemplateHead */: - return parseTemplateExpression( - /*isTaggedTemplate*/ - false - ); - case 81 /* PrivateIdentifier */: - return parsePrivateIdentifier(); - } - return parseIdentifier(Diagnostics.Expression_expected); - } - function parseParenthesizedExpression() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpected(22 /* CloseParenToken */); - return withJSDoc(finishNode(factoryCreateParenthesizedExpression(expression), pos), hasJSDoc); - } - function parseSpreadElement() { - const pos = getNodePos(); - parseExpected(26 /* DotDotDotToken */); - const expression = parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - return finishNode(factory2.createSpreadElement(expression), pos); - } - function parseArgumentOrArrayLiteralElement() { - return token() === 26 /* DotDotDotToken */ ? parseSpreadElement() : token() === 28 /* CommaToken */ ? finishNode(factory2.createOmittedExpression(), getNodePos()) : parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - } - function parseArgumentExpression() { - return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement); - } - function parseArrayLiteralExpression() { - const pos = getNodePos(); - const openBracketPosition = scanner.getTokenStart(); - const openBracketParsed = parseExpected(23 /* OpenBracketToken */); - const multiLine = scanner.hasPrecedingLineBreak(); - const elements = parseDelimitedList(15 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement); - parseExpectedMatchingBrackets(23 /* OpenBracketToken */, 24 /* CloseBracketToken */, openBracketParsed, openBracketPosition); - return finishNode(factoryCreateArrayLiteralExpression(elements, multiLine), pos); - } - function parseObjectLiteralElement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - if (parseOptionalToken(26 /* DotDotDotToken */)) { - const expression = parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - return withJSDoc(finishNode(factory2.createSpreadAssignment(expression), pos), hasJSDoc); - } - const modifiers = parseModifiers( - /*allowDecorators*/ - true - ); - if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); - } - if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); - } - const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); - const tokenIsIdentifier = isIdentifier2(); - const name = parsePropertyName(); - const questionToken = parseOptionalToken(58 /* QuestionToken */); - const exclamationToken = parseOptionalToken(54 /* ExclamationToken */); - if (asteriskToken || token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken); - } - let node; - const isShorthandPropertyAssignment2 = tokenIsIdentifier && token() !== 59 /* ColonToken */; - if (isShorthandPropertyAssignment2) { - const equalsToken = parseOptionalToken(64 /* EqualsToken */); - const objectAssignmentInitializer = equalsToken ? allowInAnd(() => parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - )) : void 0; - node = factory2.createShorthandPropertyAssignment(name, objectAssignmentInitializer); - node.equalsToken = equalsToken; - } else { - parseExpected(59 /* ColonToken */); - const initializer = allowInAnd(() => parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - )); - node = factory2.createPropertyAssignment(name, initializer); - } - node.modifiers = modifiers; - node.questionToken = questionToken; - node.exclamationToken = exclamationToken; - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseObjectLiteralExpression() { - const pos = getNodePos(); - const openBracePosition = scanner.getTokenStart(); - const openBraceParsed = parseExpected(19 /* OpenBraceToken */); - const multiLine = scanner.hasPrecedingLineBreak(); - const properties = parseDelimitedList( - 12 /* ObjectLiteralMembers */, - parseObjectLiteralElement, - /*considerSemicolonAsDelimiter*/ - true - ); - parseExpectedMatchingBrackets(19 /* OpenBraceToken */, 20 /* CloseBraceToken */, openBraceParsed, openBracePosition); - return finishNode(factoryCreateObjectLiteralExpression(properties, multiLine), pos); - } - function parseFunctionExpression() { - const savedDecoratorContext = inDecoratorContext(); - setDecoratorContext( - /*val*/ - false - ); - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiers( - /*allowDecorators*/ - false - ); - parseExpected(100 /* FunctionKeyword */); - const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); - const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; - const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; - const name = isGenerator && isAsync ? doInYieldAndAwaitContext(parseOptionalBindingIdentifier) : isGenerator ? doInYieldContext(parseOptionalBindingIdentifier) : isAsync ? doInAwaitContext(parseOptionalBindingIdentifier) : parseOptionalBindingIdentifier(); - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(isGenerator | isAsync); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - const body = parseFunctionBlock(isGenerator | isAsync); - setDecoratorContext(savedDecoratorContext); - const node = factory2.createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseOptionalBindingIdentifier() { - return isBindingIdentifier() ? parseBindingIdentifier() : void 0; - } - function parseNewExpressionOrNewDotTarget() { - const pos = getNodePos(); - parseExpected(105 /* NewKeyword */); - if (parseOptional(25 /* DotToken */)) { - const name = parseIdentifierName(); - return finishNode(factory2.createMetaProperty(105 /* NewKeyword */, name), pos); - } - const expressionPos = getNodePos(); - let expression = parseMemberExpressionRest( - expressionPos, - parsePrimaryExpression(), - /*allowOptionalChain*/ - false - ); - let typeArguments; - if (expression.kind === 233 /* ExpressionWithTypeArguments */) { - typeArguments = expression.typeArguments; - expression = expression.expression; - } - if (token() === 29 /* QuestionDotToken */) { - parseErrorAtCurrentToken(Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, getTextOfNodeFromSourceText(sourceText, expression)); - } - const argumentList = token() === 21 /* OpenParenToken */ ? parseArgumentList() : void 0; - return finishNode(factoryCreateNewExpression(expression, typeArguments, argumentList), pos); - } - function parseBlock(ignoreMissingOpenBrace, diagnosticMessage) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const openBracePosition = scanner.getTokenStart(); - const openBraceParsed = parseExpected(19 /* OpenBraceToken */, diagnosticMessage); - if (openBraceParsed || ignoreMissingOpenBrace) { - const multiLine = scanner.hasPrecedingLineBreak(); - const statements = parseList(1 /* BlockStatements */, parseStatement); - parseExpectedMatchingBrackets(19 /* OpenBraceToken */, 20 /* CloseBraceToken */, openBraceParsed, openBracePosition); - const result = withJSDoc(finishNode(factoryCreateBlock(statements, multiLine), pos), hasJSDoc); - if (token() === 64 /* EqualsToken */) { - parseErrorAtCurrentToken(Diagnostics.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); - nextToken(); - } - return result; - } else { - const statements = createMissingList(); - return withJSDoc(finishNode(factoryCreateBlock( - statements, - /*multiLine*/ - void 0 - ), pos), hasJSDoc); - } - } - function parseFunctionBlock(flags, diagnosticMessage) { - const savedYieldContext = inYieldContext(); - setYieldContext(!!(flags & 1 /* Yield */)); - const savedAwaitContext = inAwaitContext(); - setAwaitContext(!!(flags & 2 /* Await */)); - const savedTopLevel = topLevel; - topLevel = false; - const saveDecoratorContext = inDecoratorContext(); - if (saveDecoratorContext) { - setDecoratorContext( - /*val*/ - false - ); - } - const block = parseBlock(!!(flags & 16 /* IgnoreMissingOpenBrace */), diagnosticMessage); - if (saveDecoratorContext) { - setDecoratorContext( - /*val*/ - true - ); - } - topLevel = savedTopLevel; - setYieldContext(savedYieldContext); - setAwaitContext(savedAwaitContext); - return block; - } - function parseEmptyStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(27 /* SemicolonToken */); - return withJSDoc(finishNode(factory2.createEmptyStatement(), pos), hasJSDoc); - } - function parseIfStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(101 /* IfKeyword */); - const openParenPosition = scanner.getTokenStart(); - const openParenParsed = parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const thenStatement = parseStatement(); - const elseStatement = parseOptional(93 /* ElseKeyword */) ? parseStatement() : void 0; - return withJSDoc(finishNode(factoryCreateIfStatement(expression, thenStatement, elseStatement), pos), hasJSDoc); - } - function parseDoStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(92 /* DoKeyword */); - const statement = parseStatement(); - parseExpected(117 /* WhileKeyword */); - const openParenPosition = scanner.getTokenStart(); - const openParenParsed = parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - parseOptional(27 /* SemicolonToken */); - return withJSDoc(finishNode(factory2.createDoStatement(statement, expression), pos), hasJSDoc); - } - function parseWhileStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(117 /* WhileKeyword */); - const openParenPosition = scanner.getTokenStart(); - const openParenParsed = parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = parseStatement(); - return withJSDoc(finishNode(factoryCreateWhileStatement(expression, statement), pos), hasJSDoc); - } - function parseForOrForInOrForOfStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(99 /* ForKeyword */); - const awaitToken = parseOptionalToken(135 /* AwaitKeyword */); - parseExpected(21 /* OpenParenToken */); - let initializer; - if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of - token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { - initializer = parseVariableDeclarationList( - /*inForStatementInitializer*/ - true - ); - } else { - initializer = disallowInAnd(parseExpression); - } - } - let node; - if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { - const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - )); - parseExpected(22 /* CloseParenToken */); - node = factoryCreateForOfStatement(awaitToken, initializer, expression, parseStatement()); - } else if (parseOptional(103 /* InKeyword */)) { - const expression = allowInAnd(parseExpression); - parseExpected(22 /* CloseParenToken */); - node = factory2.createForInStatement(initializer, expression, parseStatement()); - } else { - parseExpected(27 /* SemicolonToken */); - const condition = token() !== 27 /* SemicolonToken */ && token() !== 22 /* CloseParenToken */ ? allowInAnd(parseExpression) : void 0; - parseExpected(27 /* SemicolonToken */); - const incrementor = token() !== 22 /* CloseParenToken */ ? allowInAnd(parseExpression) : void 0; - parseExpected(22 /* CloseParenToken */); - node = factoryCreateForStatement(initializer, condition, incrementor, parseStatement()); - } - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseBreakOrContinueStatement(kind) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); - const label = canParseSemicolon() ? void 0 : parseIdentifier(); - parseSemicolon(); - const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseReturnStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(107 /* ReturnKeyword */); - const expression = canParseSemicolon() ? void 0 : allowInAnd(parseExpression); - parseSemicolon(); - return withJSDoc(finishNode(factory2.createReturnStatement(expression), pos), hasJSDoc); - } - function parseWithStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(118 /* WithKeyword */); - const openParenPosition = scanner.getTokenStart(); - const openParenParsed = parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); - const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); - return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); - } - function parseCaseClause() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(84 /* CaseKeyword */); - const expression = allowInAnd(parseExpression); - parseExpected(59 /* ColonToken */); - const statements = parseList(3 /* SwitchClauseStatements */, parseStatement); - return withJSDoc(finishNode(factory2.createCaseClause(expression, statements), pos), hasJSDoc); - } - function parseDefaultClause() { - const pos = getNodePos(); - parseExpected(90 /* DefaultKeyword */); - parseExpected(59 /* ColonToken */); - const statements = parseList(3 /* SwitchClauseStatements */, parseStatement); - return finishNode(factory2.createDefaultClause(statements), pos); - } - function parseCaseOrDefaultClause() { - return token() === 84 /* CaseKeyword */ ? parseCaseClause() : parseDefaultClause(); - } - function parseCaseBlock() { - const pos = getNodePos(); - parseExpected(19 /* OpenBraceToken */); - const clauses = parseList(2 /* SwitchClauses */, parseCaseOrDefaultClause); - parseExpected(20 /* CloseBraceToken */); - return finishNode(factory2.createCaseBlock(clauses), pos); - } - function parseSwitchStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(109 /* SwitchKeyword */); - parseExpected(21 /* OpenParenToken */); - const expression = allowInAnd(parseExpression); - parseExpected(22 /* CloseParenToken */); - const caseBlock = parseCaseBlock(); - return withJSDoc(finishNode(factory2.createSwitchStatement(expression, caseBlock), pos), hasJSDoc); - } - function parseThrowStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(111 /* ThrowKeyword */); - let expression = scanner.hasPrecedingLineBreak() ? void 0 : allowInAnd(parseExpression); - if (expression === void 0) { - identifierCount++; - expression = finishNode(factoryCreateIdentifier(""), getNodePos()); - } - if (!tryParseSemicolon()) { - parseErrorForMissingSemicolonAfter(expression); - } - return withJSDoc(finishNode(factory2.createThrowStatement(expression), pos), hasJSDoc); - } - function parseTryStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(113 /* TryKeyword */); - const tryBlock = parseBlock( - /*ignoreMissingOpenBrace*/ - false - ); - const catchClause = token() === 85 /* CatchKeyword */ ? parseCatchClause() : void 0; - let finallyBlock; - if (!catchClause || token() === 98 /* FinallyKeyword */) { - parseExpected(98 /* FinallyKeyword */, Diagnostics.catch_or_finally_expected); - finallyBlock = parseBlock( - /*ignoreMissingOpenBrace*/ - false - ); - } - return withJSDoc(finishNode(factory2.createTryStatement(tryBlock, catchClause, finallyBlock), pos), hasJSDoc); - } - function parseCatchClause() { - const pos = getNodePos(); - parseExpected(85 /* CatchKeyword */); - let variableDeclaration; - if (parseOptional(21 /* OpenParenToken */)) { - variableDeclaration = parseVariableDeclaration(); - parseExpected(22 /* CloseParenToken */); - } else { - variableDeclaration = void 0; - } - const block = parseBlock( - /*ignoreMissingOpenBrace*/ - false - ); - return finishNode(factory2.createCatchClause(variableDeclaration, block), pos); - } - function parseDebuggerStatement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - parseExpected(89 /* DebuggerKeyword */); - parseSemicolon(); - return withJSDoc(finishNode(factory2.createDebuggerStatement(), pos), hasJSDoc); - } - function parseExpressionOrLabeledStatement() { - const pos = getNodePos(); - let hasJSDoc = hasPrecedingJSDocComment(); - let node; - const hasParen = token() === 21 /* OpenParenToken */; - const expression = allowInAnd(parseExpression); - if (isIdentifier(expression) && parseOptional(59 /* ColonToken */)) { - node = factory2.createLabeledStatement(expression, parseStatement()); - } else { - if (!tryParseSemicolon()) { - parseErrorForMissingSemicolonAfter(expression); - } - node = factoryCreateExpressionStatement(expression); - if (hasParen) { - hasJSDoc = false; - } - } - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function nextTokenIsIdentifierOrKeywordOnSameLine() { - nextToken(); - return tokenIsIdentifierOrKeyword(token()) && !scanner.hasPrecedingLineBreak(); - } - function nextTokenIsClassKeywordOnSameLine() { - nextToken(); - return token() === 86 /* ClassKeyword */ && !scanner.hasPrecedingLineBreak(); - } - function nextTokenIsFunctionKeywordOnSameLine() { - nextToken(); - return token() === 100 /* FunctionKeyword */ && !scanner.hasPrecedingLineBreak(); - } - function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() { - nextToken(); - return (tokenIsIdentifierOrKeyword(token()) || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */ || token() === 11 /* StringLiteral */) && !scanner.hasPrecedingLineBreak(); - } - function isDeclaration2() { - while (true) { - switch (token()) { - case 115 /* VarKeyword */: - case 121 /* LetKeyword */: - case 87 /* ConstKeyword */: - case 100 /* FunctionKeyword */: - case 86 /* ClassKeyword */: - case 94 /* EnumKeyword */: - return true; - case 160 /* UsingKeyword */: - return isUsingDeclaration(); - case 135 /* AwaitKeyword */: - return isAwaitUsingDeclaration(); - // 'declare', 'module', 'namespace', 'interface'* and 'type' are all legal JavaScript identifiers; - // however, an identifier cannot be followed by another identifier on the same line. This is what we - // count on to parse out the respective declarations. For instance, we exploit this to say that - // - // namespace n - // - // can be none other than the beginning of a namespace declaration, but need to respect that JavaScript sees - // - // namespace - // n - // - // as the identifier 'namespace' on one line followed by the identifier 'n' on another. - // We need to look one token ahead to see if it permissible to try parsing a declaration. - // - // *Note*: 'interface' is actually a strict mode reserved word. So while - // - // "use strict" - // interface - // I {} - // - // could be legal, it would add complexity for very little gain. - case 120 /* InterfaceKeyword */: - case 156 /* TypeKeyword */: - return nextTokenIsIdentifierOnSameLine(); - case 144 /* ModuleKeyword */: - case 145 /* NamespaceKeyword */: - return nextTokenIsIdentifierOrStringLiteralOnSameLine(); - case 128 /* AbstractKeyword */: - case 129 /* AccessorKeyword */: - case 134 /* AsyncKeyword */: - case 138 /* DeclareKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 125 /* PublicKeyword */: - case 148 /* ReadonlyKeyword */: - const previousToken = token(); - nextToken(); - if (scanner.hasPrecedingLineBreak()) { - return false; - } - if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { - return true; - } - continue; - case 162 /* GlobalKeyword */: - nextToken(); - return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; - case 102 /* ImportKeyword */: - nextToken(); - return token() === 11 /* StringLiteral */ || token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */ || tokenIsIdentifierOrKeyword(token()); - case 95 /* ExportKeyword */: - let currentToken2 = nextToken(); - if (currentToken2 === 156 /* TypeKeyword */) { - currentToken2 = lookAhead(nextToken); - } - if (currentToken2 === 64 /* EqualsToken */ || currentToken2 === 42 /* AsteriskToken */ || currentToken2 === 19 /* OpenBraceToken */ || currentToken2 === 90 /* DefaultKeyword */ || currentToken2 === 130 /* AsKeyword */ || currentToken2 === 60 /* AtToken */) { - return true; - } - continue; - case 126 /* StaticKeyword */: - nextToken(); - continue; - default: - return false; - } - } - } - function isStartOfDeclaration() { - return lookAhead(isDeclaration2); - } - function isStartOfStatement() { - switch (token()) { - case 60 /* AtToken */: - case 27 /* SemicolonToken */: - case 19 /* OpenBraceToken */: - case 115 /* VarKeyword */: - case 121 /* LetKeyword */: - case 160 /* UsingKeyword */: - case 100 /* FunctionKeyword */: - case 86 /* ClassKeyword */: - case 94 /* EnumKeyword */: - case 101 /* IfKeyword */: - case 92 /* DoKeyword */: - case 117 /* WhileKeyword */: - case 99 /* ForKeyword */: - case 88 /* ContinueKeyword */: - case 83 /* BreakKeyword */: - case 107 /* ReturnKeyword */: - case 118 /* WithKeyword */: - case 109 /* SwitchKeyword */: - case 111 /* ThrowKeyword */: - case 113 /* TryKeyword */: - case 89 /* DebuggerKeyword */: - // 'catch' and 'finally' do not actually indicate that the code is part of a statement, - // however, we say they are here so that we may gracefully parse them and error later. - // falls through - case 85 /* CatchKeyword */: - case 98 /* FinallyKeyword */: - return true; - case 102 /* ImportKeyword */: - return isStartOfDeclaration() || lookAhead(nextTokenIsOpenParenOrLessThanOrDot); - case 87 /* ConstKeyword */: - case 95 /* ExportKeyword */: - return isStartOfDeclaration(); - case 134 /* AsyncKeyword */: - case 138 /* DeclareKeyword */: - case 120 /* InterfaceKeyword */: - case 144 /* ModuleKeyword */: - case 145 /* NamespaceKeyword */: - case 156 /* TypeKeyword */: - case 162 /* GlobalKeyword */: - return true; - case 129 /* AccessorKeyword */: - case 125 /* PublicKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 126 /* StaticKeyword */: - case 148 /* ReadonlyKeyword */: - return isStartOfDeclaration() || !lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); - default: - return isStartOfExpression(); - } - } - function nextTokenIsBindingIdentifierOrStartOfDestructuring() { - nextToken(); - return isBindingIdentifier() || token() === 19 /* OpenBraceToken */ || token() === 23 /* OpenBracketToken */; - } - function isLetDeclaration() { - return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); - } - function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { - return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( - /*disallowOf*/ - true - ); - } - function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { - nextToken(); - if (disallowOf && token() === 165 /* OfKeyword */) return false; - return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner.hasPrecedingLineBreak(); - } - function isUsingDeclaration() { - return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); - } - function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { - if (nextToken() === 160 /* UsingKeyword */) { - return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); - } - return false; - } - function isAwaitUsingDeclaration() { - return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); - } - function parseStatement() { - switch (token()) { - case 27 /* SemicolonToken */: - return parseEmptyStatement(); - case 19 /* OpenBraceToken */: - return parseBlock( - /*ignoreMissingOpenBrace*/ - false - ); - case 115 /* VarKeyword */: - return parseVariableStatement( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - case 121 /* LetKeyword */: - if (isLetDeclaration()) { - return parseVariableStatement( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - } - break; - case 135 /* AwaitKeyword */: - if (isAwaitUsingDeclaration()) { - return parseVariableStatement( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - } - break; - case 160 /* UsingKeyword */: - if (isUsingDeclaration()) { - return parseVariableStatement( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - } - break; - case 100 /* FunctionKeyword */: - return parseFunctionDeclaration( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - case 86 /* ClassKeyword */: - return parseClassDeclaration( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0 - ); - case 101 /* IfKeyword */: - return parseIfStatement(); - case 92 /* DoKeyword */: - return parseDoStatement(); - case 117 /* WhileKeyword */: - return parseWhileStatement(); - case 99 /* ForKeyword */: - return parseForOrForInOrForOfStatement(); - case 88 /* ContinueKeyword */: - return parseBreakOrContinueStatement(251 /* ContinueStatement */); - case 83 /* BreakKeyword */: - return parseBreakOrContinueStatement(252 /* BreakStatement */); - case 107 /* ReturnKeyword */: - return parseReturnStatement(); - case 118 /* WithKeyword */: - return parseWithStatement(); - case 109 /* SwitchKeyword */: - return parseSwitchStatement(); - case 111 /* ThrowKeyword */: - return parseThrowStatement(); - case 113 /* TryKeyword */: - // Include 'catch' and 'finally' for error recovery. - // falls through - case 85 /* CatchKeyword */: - case 98 /* FinallyKeyword */: - return parseTryStatement(); - case 89 /* DebuggerKeyword */: - return parseDebuggerStatement(); - case 60 /* AtToken */: - return parseDeclaration(); - case 134 /* AsyncKeyword */: - case 120 /* InterfaceKeyword */: - case 156 /* TypeKeyword */: - case 144 /* ModuleKeyword */: - case 145 /* NamespaceKeyword */: - case 138 /* DeclareKeyword */: - case 87 /* ConstKeyword */: - case 94 /* EnumKeyword */: - case 95 /* ExportKeyword */: - case 102 /* ImportKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 125 /* PublicKeyword */: - case 128 /* AbstractKeyword */: - case 129 /* AccessorKeyword */: - case 126 /* StaticKeyword */: - case 148 /* ReadonlyKeyword */: - case 162 /* GlobalKeyword */: - if (isStartOfDeclaration()) { - return parseDeclaration(); - } - break; - } - return parseExpressionOrLabeledStatement(); - } - function isDeclareModifier(modifier) { - return modifier.kind === 138 /* DeclareKeyword */; - } - function parseDeclaration() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiers( - /*allowDecorators*/ - true - ); - const isAmbient = some(modifiers, isDeclareModifier); - if (isAmbient) { - const node = tryReuseAmbientDeclaration(pos); - if (node) { - return node; - } - for (const m of modifiers) { - m.flags |= 33554432 /* Ambient */; - } - return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); - } else { - return parseDeclarationWorker(pos, hasJSDoc, modifiers); - } - } - function tryReuseAmbientDeclaration(pos) { - return doInsideOfContext(33554432 /* Ambient */, () => { - const node = currentNode(parsingContext, pos); - if (node) { - return consumeNode(node); - } - }); - } - function parseDeclarationWorker(pos, hasJSDoc, modifiersIn) { - switch (token()) { - case 115 /* VarKeyword */: - case 121 /* LetKeyword */: - case 87 /* ConstKeyword */: - case 160 /* UsingKeyword */: - case 135 /* AwaitKeyword */: - return parseVariableStatement(pos, hasJSDoc, modifiersIn); - case 100 /* FunctionKeyword */: - return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); - case 86 /* ClassKeyword */: - return parseClassDeclaration(pos, hasJSDoc, modifiersIn); - case 120 /* InterfaceKeyword */: - return parseInterfaceDeclaration(pos, hasJSDoc, modifiersIn); - case 156 /* TypeKeyword */: - return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); - case 94 /* EnumKeyword */: - return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); - case 162 /* GlobalKeyword */: - case 144 /* ModuleKeyword */: - case 145 /* NamespaceKeyword */: - return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); - case 102 /* ImportKeyword */: - return parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiersIn); - case 95 /* ExportKeyword */: - nextToken(); - switch (token()) { - case 90 /* DefaultKeyword */: - case 64 /* EqualsToken */: - return parseExportAssignment(pos, hasJSDoc, modifiersIn); - case 130 /* AsKeyword */: - return parseNamespaceExportDeclaration(pos, hasJSDoc, modifiersIn); - default: - return parseExportDeclaration(pos, hasJSDoc, modifiersIn); - } - default: - if (modifiersIn) { - const missing = createMissingNode( - 282 /* MissingDeclaration */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.Declaration_expected - ); - setTextRangePos(missing, pos); - missing.modifiers = modifiersIn; - return missing; - } - return void 0; - } - } - function nextTokenIsStringLiteral() { - return nextToken() === 11 /* StringLiteral */; - } - function nextTokenIsFromKeywordOrEqualsToken() { - nextToken(); - return token() === 161 /* FromKeyword */ || token() === 64 /* EqualsToken */; - } - function nextTokenIsIdentifierOrStringLiteralOnSameLine() { - nextToken(); - return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); - } - function parseFunctionBlockOrSemicolon(flags, diagnosticMessage) { - if (token() !== 19 /* OpenBraceToken */) { - if (flags & 4 /* Type */) { - parseTypeMemberSemicolon(); - return; - } - if (canParseSemicolon()) { - parseSemicolon(); - return; - } - } - return parseFunctionBlock(flags, diagnosticMessage); - } - function parseArrayBindingElement() { - const pos = getNodePos(); - if (token() === 28 /* CommaToken */) { - return finishNode(factory2.createOmittedExpression(), pos); - } - const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); - const name = parseIdentifierOrPattern(); - const initializer = parseInitializer(); - return finishNode(factory2.createBindingElement( - dotDotDotToken, - /*propertyName*/ - void 0, - name, - initializer - ), pos); - } - function parseObjectBindingElement() { - const pos = getNodePos(); - const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); - const tokenIsIdentifier = isBindingIdentifier(); - let propertyName = parsePropertyName(); - let name; - if (tokenIsIdentifier && token() !== 59 /* ColonToken */) { - name = propertyName; - propertyName = void 0; - } else { - parseExpected(59 /* ColonToken */); - name = parseIdentifierOrPattern(); - } - const initializer = parseInitializer(); - return finishNode(factory2.createBindingElement(dotDotDotToken, propertyName, name, initializer), pos); - } - function parseObjectBindingPattern() { - const pos = getNodePos(); - parseExpected(19 /* OpenBraceToken */); - const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); - parseExpected(20 /* CloseBraceToken */); - return finishNode(factory2.createObjectBindingPattern(elements), pos); - } - function parseArrayBindingPattern() { - const pos = getNodePos(); - parseExpected(23 /* OpenBracketToken */); - const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); - parseExpected(24 /* CloseBracketToken */); - return finishNode(factory2.createArrayBindingPattern(elements), pos); - } - function isBindingIdentifierOrPrivateIdentifierOrPattern() { - return token() === 19 /* OpenBraceToken */ || token() === 23 /* OpenBracketToken */ || token() === 81 /* PrivateIdentifier */ || isBindingIdentifier(); - } - function parseIdentifierOrPattern(privateIdentifierDiagnosticMessage) { - if (token() === 23 /* OpenBracketToken */) { - return parseArrayBindingPattern(); - } - if (token() === 19 /* OpenBraceToken */) { - return parseObjectBindingPattern(); - } - return parseBindingIdentifier(privateIdentifierDiagnosticMessage); - } - function parseVariableDeclarationAllowExclamation() { - return parseVariableDeclaration( - /*allowExclamation*/ - true - ); - } - function parseVariableDeclaration(allowExclamation) { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations); - let exclamationToken; - if (allowExclamation && name.kind === 80 /* Identifier */ && token() === 54 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) { - exclamationToken = parseTokenNode(); - } - const type = parseTypeAnnotation(); - const initializer = isInOrOfKeyword(token()) ? void 0 : parseInitializer(); - const node = factoryCreateVariableDeclaration(name, exclamationToken, type, initializer); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseVariableDeclarationList(inForStatementInitializer) { - const pos = getNodePos(); - let flags = 0; - switch (token()) { - case 115 /* VarKeyword */: - break; - case 121 /* LetKeyword */: - flags |= 1 /* Let */; - break; - case 87 /* ConstKeyword */: - flags |= 2 /* Const */; - break; - case 160 /* UsingKeyword */: - flags |= 4 /* Using */; - break; - case 135 /* AwaitKeyword */: - Debug.assert(isAwaitUsingDeclaration()); - flags |= 6 /* AwaitUsing */; - nextToken(); - break; - default: - Debug.fail(); - } - nextToken(); - let declarations; - if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { - declarations = createMissingList(); - } else { - const savedDisallowIn = inDisallowInContext(); - setDisallowInContext(inForStatementInitializer); - declarations = parseDelimitedList( - 8 /* VariableDeclarations */, - inForStatementInitializer ? parseVariableDeclaration : parseVariableDeclarationAllowExclamation - ); - setDisallowInContext(savedDisallowIn); - } - return finishNode(factoryCreateVariableDeclarationList(declarations, flags), pos); - } - function canFollowContextualOfKeyword() { - return nextTokenIsIdentifier() && nextToken() === 22 /* CloseParenToken */; - } - function parseVariableStatement(pos, hasJSDoc, modifiers) { - const declarationList = parseVariableDeclarationList( - /*inForStatementInitializer*/ - false - ); - parseSemicolon(); - const node = factoryCreateVariableStatement(modifiers, declarationList); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseFunctionDeclaration(pos, hasJSDoc, modifiers) { - const savedAwaitContext = inAwaitContext(); - const modifierFlags = modifiersToFlags(modifiers); - parseExpected(100 /* FunctionKeyword */); - const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); - const name = modifierFlags & 2048 /* Default */ ? parseOptionalBindingIdentifier() : parseBindingIdentifier(); - const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; - const isAsync = modifierFlags & 1024 /* Async */ ? 2 /* Await */ : 0 /* None */; - const typeParameters = parseTypeParameters(); - if (modifierFlags & 32 /* Export */) setAwaitContext( - /*value*/ - true - ); - const parameters = parseParameters(isGenerator | isAsync); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, Diagnostics.or_expected); - setAwaitContext(savedAwaitContext); - const node = factory2.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseConstructorName() { - if (token() === 137 /* ConstructorKeyword */) { - return parseExpected(137 /* ConstructorKeyword */); - } - if (token() === 11 /* StringLiteral */ && lookAhead(nextToken) === 21 /* OpenParenToken */) { - return tryParse(() => { - const literalNode = parseLiteralNode(); - return literalNode.text === "constructor" ? literalNode : void 0; - }); - } - } - function tryParseConstructorDeclaration(pos, hasJSDoc, modifiers) { - return tryParse(() => { - if (parseConstructorName()) { - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(0 /* None */); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - const body = parseFunctionBlockOrSemicolon(0 /* None */, Diagnostics.or_expected); - const node = factory2.createConstructorDeclaration(modifiers, parameters, body); - node.typeParameters = typeParameters; - node.type = type; - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - }); - } - function parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken, diagnosticMessage) { - const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; - const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(isGenerator | isAsync); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, diagnosticMessage); - const node = factory2.createMethodDeclaration( - modifiers, - asteriskToken, - name, - questionToken, - typeParameters, - parameters, - type, - body - ); - node.exclamationToken = exclamationToken; - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { - const exclamationToken = !questionToken && !scanner.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; - const type = parseTypeAnnotation(); - const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); - parseSemicolonAfterPropertyName(name, type, initializer); - const node = factory2.createPropertyDeclaration( - modifiers, - name, - questionToken || exclamationToken, - type, - initializer - ); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers) { - const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); - const name = parsePropertyName(); - const questionToken = parseOptionalToken(58 /* QuestionToken */); - if (asteriskToken || token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { - return parseMethodDeclaration( - pos, - hasJSDoc, - modifiers, - asteriskToken, - name, - questionToken, - /*exclamationToken*/ - void 0, - Diagnostics.or_expected - ); - } - return parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken); - } - function parseAccessorDeclaration(pos, hasJSDoc, modifiers, kind, flags) { - const name = parsePropertyName(); - const typeParameters = parseTypeParameters(); - const parameters = parseParameters(0 /* None */); - const type = parseReturnType( - 59 /* ColonToken */, - /*isType*/ - false - ); - const body = parseFunctionBlockOrSemicolon(flags); - const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); - node.typeParameters = typeParameters; - if (isSetAccessorDeclaration(node)) node.type = type; - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function isClassMemberStart() { - let idToken; - if (token() === 60 /* AtToken */) { - return true; - } - while (isModifierKind(token())) { - idToken = token(); - if (isClassMemberModifier(idToken)) { - return true; - } - nextToken(); - } - if (token() === 42 /* AsteriskToken */) { - return true; - } - if (isLiteralPropertyName()) { - idToken = token(); - nextToken(); - } - if (token() === 23 /* OpenBracketToken */) { - return true; - } - if (idToken !== void 0) { - if (!isKeyword(idToken) || idToken === 153 /* SetKeyword */ || idToken === 139 /* GetKeyword */) { - return true; - } - switch (token()) { - case 21 /* OpenParenToken */: - // Method declaration - case 30 /* LessThanToken */: - // Generic Method declaration - case 54 /* ExclamationToken */: - // Non-null assertion on property name - case 59 /* ColonToken */: - // Type Annotation for declaration - case 64 /* EqualsToken */: - // Initializer for declaration - case 58 /* QuestionToken */: - return true; - default: - return canParseSemicolon(); - } - } - return false; - } - function parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers) { - parseExpectedToken(126 /* StaticKeyword */); - const body = parseClassStaticBlockBody(); - const node = withJSDoc(finishNode(factory2.createClassStaticBlockDeclaration(body), pos), hasJSDoc); - node.modifiers = modifiers; - return node; - } - function parseClassStaticBlockBody() { - const savedYieldContext = inYieldContext(); - const savedAwaitContext = inAwaitContext(); - setYieldContext(false); - setAwaitContext(true); - const body = parseBlock( - /*ignoreMissingOpenBrace*/ - false - ); - setYieldContext(savedYieldContext); - setAwaitContext(savedAwaitContext); - return body; - } - function parseDecoratorExpression() { - if (inAwaitContext() && token() === 135 /* AwaitKeyword */) { - const pos = getNodePos(); - const awaitExpression = parseIdentifier(Diagnostics.Expression_expected); - nextToken(); - const memberExpression = parseMemberExpressionRest( - pos, - awaitExpression, - /*allowOptionalChain*/ - true - ); - return parseCallExpressionRest(pos, memberExpression); - } - return parseLeftHandSideExpressionOrHigher(); - } - function tryParseDecorator() { - const pos = getNodePos(); - if (!parseOptional(60 /* AtToken */)) { - return void 0; - } - const expression = doInDecoratorContext(parseDecoratorExpression); - return finishNode(factory2.createDecorator(expression), pos); - } - function tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock) { - const pos = getNodePos(); - const kind = token(); - if (token() === 87 /* ConstKeyword */ && permitConstAsModifier) { - if (!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)) { - return void 0; - } - } else if (stopOnStartOfClassStaticBlock && token() === 126 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) { - return void 0; - } else if (hasSeenStaticModifier && token() === 126 /* StaticKeyword */) { - return void 0; - } else { - if (!parseAnyContextualModifier()) { - return void 0; - } - } - return finishNode(factoryCreateToken(kind), pos); - } - function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) { - const pos = getNodePos(); - let list; - let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false; - if (allowDecorators && token() === 60 /* AtToken */) { - while (decorator = tryParseDecorator()) { - list = append(list, decorator); - } - } - while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) { - if (modifier.kind === 126 /* StaticKeyword */) hasSeenStaticModifier = true; - list = append(list, modifier); - hasLeadingModifier = true; - } - if (hasLeadingModifier && allowDecorators && token() === 60 /* AtToken */) { - while (decorator = tryParseDecorator()) { - list = append(list, decorator); - hasTrailingDecorator = true; - } - } - if (hasTrailingDecorator) { - while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) { - if (modifier.kind === 126 /* StaticKeyword */) hasSeenStaticModifier = true; - list = append(list, modifier); - } - } - return list && createNodeArray(list, pos); - } - function parseModifiersForArrowFunction() { - let modifiers; - if (token() === 134 /* AsyncKeyword */) { - const pos = getNodePos(); - nextToken(); - const modifier = finishNode(factoryCreateToken(134 /* AsyncKeyword */), pos); - modifiers = createNodeArray([modifier], pos); - } - return modifiers; - } - function parseClassElement() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - if (token() === 27 /* SemicolonToken */) { - nextToken(); - return withJSDoc(finishNode(factory2.createSemicolonClassElement(), pos), hasJSDoc); - } - const modifiers = parseModifiers( - /*allowDecorators*/ - true, - /*permitConstAsModifier*/ - true, - /*stopOnStartOfClassStaticBlock*/ - true - ); - if (token() === 126 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) { - return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); - } - if (parseContextualModifier(139 /* GetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); - } - if (parseContextualModifier(153 /* SetKeyword */)) { - return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); - } - if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { - const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); - if (constructorDeclaration) { - return constructorDeclaration; - } - } - if (isIndexSignature()) { - return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); - } - if (tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */ || token() === 42 /* AsteriskToken */ || token() === 23 /* OpenBracketToken */) { - const isAmbient = some(modifiers, isDeclareModifier); - if (isAmbient) { - for (const m of modifiers) { - m.flags |= 33554432 /* Ambient */; - } - return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); - } else { - return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); - } - } - if (modifiers) { - const name = createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.Declaration_expected - ); - return parsePropertyDeclaration( - pos, - hasJSDoc, - modifiers, - name, - /*questionToken*/ - void 0 - ); - } - return Debug.fail("Should not have attempted to parse class member declaration."); - } - function parseDecoratedExpression() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const modifiers = parseModifiers( - /*allowDecorators*/ - true - ); - if (token() === 86 /* ClassKeyword */) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); - } - const missing = createMissingNode( - 282 /* MissingDeclaration */, - /*reportAtCurrentPosition*/ - true, - Diagnostics.Expression_expected - ); - setTextRangePos(missing, pos); - missing.modifiers = modifiers; - return missing; - } - function parseClassExpression() { - return parseClassDeclarationOrExpression( - getNodePos(), - hasPrecedingJSDocComment(), - /*modifiers*/ - void 0, - 231 /* ClassExpression */ - ); - } - function parseClassDeclaration(pos, hasJSDoc, modifiers) { - return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); - } - function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { - const savedAwaitContext = inAwaitContext(); - parseExpected(86 /* ClassKeyword */); - const name = parseNameOfClassDeclarationOrExpression(); - const typeParameters = parseTypeParameters(); - if (some(modifiers, isExportModifier)) setAwaitContext( - /*value*/ - true - ); - const heritageClauses = parseHeritageClauses(); - let members; - if (parseExpected(19 /* OpenBraceToken */)) { - members = parseClassMembers(); - parseExpected(20 /* CloseBraceToken */); - } else { - members = createMissingList(); - } - setAwaitContext(savedAwaitContext); - const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseNameOfClassDeclarationOrExpression() { - return isBindingIdentifier() && !isImplementsClause() ? createIdentifier(isBindingIdentifier()) : void 0; - } - function isImplementsClause() { - return token() === 119 /* ImplementsKeyword */ && lookAhead(nextTokenIsIdentifierOrKeyword); - } - function parseHeritageClauses() { - if (isHeritageClause2()) { - return parseList(22 /* HeritageClauses */, parseHeritageClause); - } - return void 0; - } - function parseHeritageClause() { - const pos = getNodePos(); - const tok = token(); - Debug.assert(tok === 96 /* ExtendsKeyword */ || tok === 119 /* ImplementsKeyword */); - nextToken(); - const types = parseDelimitedList(7 /* HeritageClauseElement */, parseExpressionWithTypeArguments); - return finishNode(factory2.createHeritageClause(tok, types), pos); - } - function parseExpressionWithTypeArguments() { - const pos = getNodePos(); - const expression = parseLeftHandSideExpressionOrHigher(); - if (expression.kind === 233 /* ExpressionWithTypeArguments */) { - return expression; - } - const typeArguments = tryParseTypeArguments(); - return finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos); - } - function tryParseTypeArguments() { - return token() === 30 /* LessThanToken */ ? parseBracketedList(20 /* TypeArguments */, parseType, 30 /* LessThanToken */, 32 /* GreaterThanToken */) : void 0; - } - function isHeritageClause2() { - return token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; - } - function parseClassMembers() { - return parseList(5 /* ClassMembers */, parseClassElement); - } - function parseInterfaceDeclaration(pos, hasJSDoc, modifiers) { - parseExpected(120 /* InterfaceKeyword */); - const name = parseIdentifier(); - const typeParameters = parseTypeParameters(); - const heritageClauses = parseHeritageClauses(); - const members = parseObjectTypeMembers(); - const node = factory2.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { - parseExpected(156 /* TypeKeyword */); - if (scanner.hasPrecedingLineBreak()) { - parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); - } - const name = parseIdentifier(); - const typeParameters = parseTypeParameters(); - parseExpected(64 /* EqualsToken */); - const type = token() === 141 /* IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType(); - parseSemicolon(); - const node = factory2.createTypeAliasDeclaration(modifiers, name, typeParameters, type); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseEnumMember() { - const pos = getNodePos(); - const hasJSDoc = hasPrecedingJSDocComment(); - const name = parsePropertyName(); - const initializer = allowInAnd(parseInitializer); - return withJSDoc(finishNode(factory2.createEnumMember(name, initializer), pos), hasJSDoc); - } - function parseEnumDeclaration(pos, hasJSDoc, modifiers) { - parseExpected(94 /* EnumKeyword */); - const name = parseIdentifier(); - let members; - if (parseExpected(19 /* OpenBraceToken */)) { - members = doOutsideOfYieldAndAwaitContext(() => parseDelimitedList(6 /* EnumMembers */, parseEnumMember)); - parseExpected(20 /* CloseBraceToken */); - } else { - members = createMissingList(); - } - const node = factory2.createEnumDeclaration(modifiers, name, members); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseModuleBlock() { - const pos = getNodePos(); - let statements; - if (parseExpected(19 /* OpenBraceToken */)) { - statements = parseList(1 /* BlockStatements */, parseStatement); - parseExpected(20 /* CloseBraceToken */); - } else { - statements = createMissingList(); - } - return finishNode(factory2.createModuleBlock(statements), pos); - } - function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { - const namespaceFlag = flags & 32 /* Namespace */; - const name = flags & 8 /* NestedNamespace */ ? parseIdentifierName() : parseIdentifier(); - const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( - getNodePos(), - /*hasJSDoc*/ - false, - /*modifiers*/ - void 0, - 8 /* NestedNamespace */ | namespaceFlag - ) : parseModuleBlock(); - const node = factory2.createModuleDeclaration(modifiers, name, body, flags); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { - let flags = 0; - let name; - if (token() === 162 /* GlobalKeyword */) { - name = parseIdentifier(); - flags |= 2048 /* GlobalAugmentation */; - } else { - name = parseLiteralNode(); - name.text = internIdentifier(name.text); - } - let body; - if (token() === 19 /* OpenBraceToken */) { - body = parseModuleBlock(); - } else { - parseSemicolon(); - } - const node = factory2.createModuleDeclaration(modifiersIn, name, body, flags); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { - let flags = 0; - if (token() === 162 /* GlobalKeyword */) { - return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); - } else if (parseOptional(145 /* NamespaceKeyword */)) { - flags |= 32 /* Namespace */; - } else { - parseExpected(144 /* ModuleKeyword */); - if (token() === 11 /* StringLiteral */) { - return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); - } - } - return parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiersIn, flags); - } - function isExternalModuleReference2() { - return token() === 149 /* RequireKeyword */ && lookAhead(nextTokenIsOpenParen); - } - function nextTokenIsOpenParen() { - return nextToken() === 21 /* OpenParenToken */; - } - function nextTokenIsOpenBrace() { - return nextToken() === 19 /* OpenBraceToken */; - } - function nextTokenIsSlash() { - return nextToken() === 44 /* SlashToken */; - } - function parseNamespaceExportDeclaration(pos, hasJSDoc, modifiers) { - parseExpected(130 /* AsKeyword */); - parseExpected(145 /* NamespaceKeyword */); - const name = parseIdentifier(); - parseSemicolon(); - const node = factory2.createNamespaceExportDeclaration(name); - node.modifiers = modifiers; - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiers) { - parseExpected(102 /* ImportKeyword */); - const afterImportPos = scanner.getTokenFullStart(); - let identifier; - if (isIdentifier2()) { - identifier = parseIdentifier(); - } - let isTypeOnly = false; - if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeywordOrEqualsToken)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { - isTypeOnly = true; - identifier = isIdentifier2() ? parseIdentifier() : void 0; - } - if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) { - return parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly); - } - const importClause = tryParseImportClause(identifier, afterImportPos, isTypeOnly); - const moduleSpecifier = parseModuleSpecifier(); - const attributes = tryParseImportAttributes(); - parseSemicolon(); - const node = factory2.createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function tryParseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks = false) { - let importClause; - if (identifier || // import id - token() === 42 /* AsteriskToken */ || // import * - token() === 19 /* OpenBraceToken */) { - importClause = parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks); - parseExpected(161 /* FromKeyword */); - } - return importClause; - } - function tryParseImportAttributes() { - const currentToken2 = token(); - if ((currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) && !scanner.hasPrecedingLineBreak()) { - return parseImportAttributes(currentToken2); - } - } - function parseImportAttribute() { - const pos = getNodePos(); - const name = tokenIsIdentifierOrKeyword(token()) ? parseIdentifierName() : parseLiteralLikeNode(11 /* StringLiteral */); - parseExpected(59 /* ColonToken */); - const value = parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - return finishNode(factory2.createImportAttribute(name, value), pos); - } - function parseImportAttributes(token2, skipKeyword) { - const pos = getNodePos(); - if (!skipKeyword) { - parseExpected(token2); - } - const openBracePosition = scanner.getTokenStart(); - if (parseExpected(19 /* OpenBraceToken */)) { - const multiLine = scanner.hasPrecedingLineBreak(); - const elements = parseDelimitedList( - 24 /* ImportAttributes */, - parseImportAttribute, - /*considerSemicolonAsDelimiter*/ - true - ); - if (!parseExpected(20 /* CloseBraceToken */)) { - const lastError = lastOrUndefined(parseDiagnostics); - if (lastError && lastError.code === Diagnostics._0_expected.code) { - addRelatedInfo( - lastError, - createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}") - ); - } - } - return finishNode(factory2.createImportAttributes(elements, multiLine, token2), pos); - } else { - const elements = createNodeArray( - [], - getNodePos(), - /*end*/ - void 0, - /*hasTrailingComma*/ - false - ); - return finishNode(factory2.createImportAttributes( - elements, - /*multiLine*/ - false, - token2 - ), pos); - } - } - function tokenAfterImportDefinitelyProducesImportDeclaration() { - return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; - } - function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { - return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; - } - function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { - parseExpected(64 /* EqualsToken */); - const moduleReference = parseModuleReference(); - parseSemicolon(); - const node = factory2.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference); - const finished = withJSDoc(finishNode(node, pos), hasJSDoc); - return finished; - } - function parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks) { - let namedBindings; - if (!identifier || parseOptional(28 /* CommaToken */)) { - if (skipJsDocLeadingAsterisks) scanner.setSkipJsDocLeadingAsterisks(true); - namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); - if (skipJsDocLeadingAsterisks) scanner.setSkipJsDocLeadingAsterisks(false); - } - return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); - } - function parseModuleReference() { - return isExternalModuleReference2() ? parseExternalModuleReference() : parseEntityName( - /*allowReservedWords*/ - false - ); - } - function parseExternalModuleReference() { - const pos = getNodePos(); - parseExpected(149 /* RequireKeyword */); - parseExpected(21 /* OpenParenToken */); - const expression = parseModuleSpecifier(); - parseExpected(22 /* CloseParenToken */); - return finishNode(factory2.createExternalModuleReference(expression), pos); - } - function parseModuleSpecifier() { - if (token() === 11 /* StringLiteral */) { - const result = parseLiteralNode(); - result.text = internIdentifier(result.text); - return result; - } else { - return parseExpression(); - } - } - function parseNamespaceImport() { - const pos = getNodePos(); - parseExpected(42 /* AsteriskToken */); - parseExpected(130 /* AsKeyword */); - const name = parseIdentifier(); - return finishNode(factory2.createNamespaceImport(name), pos); - } - function canParseModuleExportName() { - return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */; - } - function parseModuleExportName(parseName) { - return token() === 11 /* StringLiteral */ ? parseLiteralNode() : parseName(); - } - function parseNamedImportsOrExports(kind) { - const pos = getNodePos(); - const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); - return finishNode(node, pos); - } - function parseExportSpecifier() { - const hasJSDoc = hasPrecedingJSDocComment(); - return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); - } - function parseImportSpecifier() { - return parseImportOrExportSpecifier(276 /* ImportSpecifier */); - } - function parseImportOrExportSpecifier(kind) { - const pos = getNodePos(); - let checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); - let checkIdentifierStart = scanner.getTokenStart(); - let checkIdentifierEnd = scanner.getTokenEnd(); - let isTypeOnly = false; - let propertyName; - let canParseAsKeyword = true; - let name = parseModuleExportName(parseIdentifierName); - if (name.kind === 80 /* Identifier */ && name.escapedText === "type") { - if (token() === 130 /* AsKeyword */) { - const firstAs = parseIdentifierName(); - if (token() === 130 /* AsKeyword */) { - const secondAs = parseIdentifierName(); - if (canParseModuleExportName()) { - isTypeOnly = true; - propertyName = firstAs; - name = parseModuleExportName(parseNameWithKeywordCheck); - canParseAsKeyword = false; - } else { - propertyName = name; - name = secondAs; - canParseAsKeyword = false; - } - } else if (canParseModuleExportName()) { - propertyName = name; - canParseAsKeyword = false; - name = parseModuleExportName(parseNameWithKeywordCheck); - } else { - isTypeOnly = true; - name = firstAs; - } - } else if (canParseModuleExportName()) { - isTypeOnly = true; - name = parseModuleExportName(parseNameWithKeywordCheck); - } - } - if (canParseAsKeyword && token() === 130 /* AsKeyword */) { - propertyName = name; - parseExpected(130 /* AsKeyword */); - name = parseModuleExportName(parseNameWithKeywordCheck); - } - if (kind === 276 /* ImportSpecifier */) { - if (name.kind !== 80 /* Identifier */) { - parseErrorAt(skipTrivia(sourceText, name.pos), name.end, Diagnostics.Identifier_expected); - name = setTextRangePosEnd(createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - false - ), name.pos, name.pos); - } else if (checkIdentifierIsKeyword) { - parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); - } - } - const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); - return finishNode(node, pos); - function parseNameWithKeywordCheck() { - checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); - checkIdentifierStart = scanner.getTokenStart(); - checkIdentifierEnd = scanner.getTokenEnd(); - return parseIdentifierName(); - } - } - function parseNamespaceExport(pos) { - return finishNode(factory2.createNamespaceExport(parseModuleExportName(parseIdentifierName)), pos); - } - function parseExportDeclaration(pos, hasJSDoc, modifiers) { - const savedAwaitContext = inAwaitContext(); - setAwaitContext( - /*value*/ - true - ); - let exportClause; - let moduleSpecifier; - let attributes; - const isTypeOnly = parseOptional(156 /* TypeKeyword */); - const namespaceExportPos = getNodePos(); - if (parseOptional(42 /* AsteriskToken */)) { - if (parseOptional(130 /* AsKeyword */)) { - exportClause = parseNamespaceExport(namespaceExportPos); - } - parseExpected(161 /* FromKeyword */); - moduleSpecifier = parseModuleSpecifier(); - } else { - exportClause = parseNamedImportsOrExports(279 /* NamedExports */); - if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { - parseExpected(161 /* FromKeyword */); - moduleSpecifier = parseModuleSpecifier(); - } - } - const currentToken2 = token(); - if (moduleSpecifier && (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) && !scanner.hasPrecedingLineBreak()) { - attributes = parseImportAttributes(currentToken2); - } - parseSemicolon(); - setAwaitContext(savedAwaitContext); - const node = factory2.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - function parseExportAssignment(pos, hasJSDoc, modifiers) { - const savedAwaitContext = inAwaitContext(); - setAwaitContext( - /*value*/ - true - ); - let isExportEquals; - if (parseOptional(64 /* EqualsToken */)) { - isExportEquals = true; - } else { - parseExpected(90 /* DefaultKeyword */); - } - const expression = parseAssignmentExpressionOrHigher( - /*allowReturnTypeInArrowFunction*/ - true - ); - parseSemicolon(); - setAwaitContext(savedAwaitContext); - const node = factory2.createExportAssignment(modifiers, isExportEquals, expression); - return withJSDoc(finishNode(node, pos), hasJSDoc); - } - let ParsingContext; - ((ParsingContext2) => { - ParsingContext2[ParsingContext2["SourceElements"] = 0] = "SourceElements"; - ParsingContext2[ParsingContext2["BlockStatements"] = 1] = "BlockStatements"; - ParsingContext2[ParsingContext2["SwitchClauses"] = 2] = "SwitchClauses"; - ParsingContext2[ParsingContext2["SwitchClauseStatements"] = 3] = "SwitchClauseStatements"; - ParsingContext2[ParsingContext2["TypeMembers"] = 4] = "TypeMembers"; - ParsingContext2[ParsingContext2["ClassMembers"] = 5] = "ClassMembers"; - ParsingContext2[ParsingContext2["EnumMembers"] = 6] = "EnumMembers"; - ParsingContext2[ParsingContext2["HeritageClauseElement"] = 7] = "HeritageClauseElement"; - ParsingContext2[ParsingContext2["VariableDeclarations"] = 8] = "VariableDeclarations"; - ParsingContext2[ParsingContext2["ObjectBindingElements"] = 9] = "ObjectBindingElements"; - ParsingContext2[ParsingContext2["ArrayBindingElements"] = 10] = "ArrayBindingElements"; - ParsingContext2[ParsingContext2["ArgumentExpressions"] = 11] = "ArgumentExpressions"; - ParsingContext2[ParsingContext2["ObjectLiteralMembers"] = 12] = "ObjectLiteralMembers"; - ParsingContext2[ParsingContext2["JsxAttributes"] = 13] = "JsxAttributes"; - ParsingContext2[ParsingContext2["JsxChildren"] = 14] = "JsxChildren"; - ParsingContext2[ParsingContext2["ArrayLiteralMembers"] = 15] = "ArrayLiteralMembers"; - ParsingContext2[ParsingContext2["Parameters"] = 16] = "Parameters"; - ParsingContext2[ParsingContext2["JSDocParameters"] = 17] = "JSDocParameters"; - ParsingContext2[ParsingContext2["RestProperties"] = 18] = "RestProperties"; - ParsingContext2[ParsingContext2["TypeParameters"] = 19] = "TypeParameters"; - ParsingContext2[ParsingContext2["TypeArguments"] = 20] = "TypeArguments"; - ParsingContext2[ParsingContext2["TupleElementTypes"] = 21] = "TupleElementTypes"; - ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses"; - ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers"; - ParsingContext2[ParsingContext2["ImportAttributes"] = 24] = "ImportAttributes"; - ParsingContext2[ParsingContext2["JSDocComment"] = 25] = "JSDocComment"; - ParsingContext2[ParsingContext2["Count"] = 26] = "Count"; - })(ParsingContext || (ParsingContext = {})); - let Tristate; - ((Tristate2) => { - Tristate2[Tristate2["False"] = 0] = "False"; - Tristate2[Tristate2["True"] = 1] = "True"; - Tristate2[Tristate2["Unknown"] = 2] = "Unknown"; - })(Tristate || (Tristate = {})); - let JSDocParser; - ((JSDocParser2) => { - function parseJSDocTypeExpressionForTests(content, start, length2) { - initializeState( - "file.js", - content, - 99 /* Latest */, - /*syntaxCursor*/ - void 0, - 1 /* JS */, - 0 /* ParseAll */ - ); - scanner.setText(content, start, length2); - currentToken = scanner.scan(); - const jsDocTypeExpression = parseJSDocTypeExpression(); - const sourceFile = createSourceFile2( - "file.js", - 99 /* Latest */, - 1 /* JS */, - /*isDeclarationFile*/ - false, - [], - factoryCreateToken(1 /* EndOfFileToken */), - 0 /* None */, - noop - ); - const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); - if (jsDocDiagnostics) { - sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); - } - clearState(); - return jsDocTypeExpression ? { jsDocTypeExpression, diagnostics } : void 0; - } - JSDocParser2.parseJSDocTypeExpressionForTests = parseJSDocTypeExpressionForTests; - function parseJSDocTypeExpression(mayOmitBraces) { - const pos = getNodePos(); - const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); - const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); - if (!mayOmitBraces || hasBrace) { - parseExpectedJSDoc(20 /* CloseBraceToken */); - } - const result = factory2.createJSDocTypeExpression(type); - fixupParentReferences(result); - return finishNode(result, pos); - } - JSDocParser2.parseJSDocTypeExpression = parseJSDocTypeExpression; - function parseJSDocNameReference() { - const pos = getNodePos(); - const hasBrace = parseOptional(19 /* OpenBraceToken */); - const p2 = getNodePos(); - let entityName = parseEntityName( - /*allowReservedWords*/ - false - ); - while (token() === 81 /* PrivateIdentifier */) { - reScanHashToken(); - nextTokenJSDoc(); - entityName = finishNode(factory2.createJSDocMemberName(entityName, parseIdentifier()), p2); - } - if (hasBrace) { - parseExpectedJSDoc(20 /* CloseBraceToken */); - } - const result = factory2.createJSDocNameReference(entityName); - fixupParentReferences(result); - return finishNode(result, pos); - } - JSDocParser2.parseJSDocNameReference = parseJSDocNameReference; - function parseIsolatedJSDocComment(content, start, length2) { - initializeState( - "", - content, - 99 /* Latest */, - /*syntaxCursor*/ - void 0, - 1 /* JS */, - 0 /* ParseAll */ - ); - const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); - const sourceFile = { languageVariant: 0 /* Standard */, text: content }; - const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); - clearState(); - return jsDoc ? { jsDoc, diagnostics } : void 0; - } - JSDocParser2.parseIsolatedJSDocComment = parseIsolatedJSDocComment; - function parseJSDocComment(parent, start, length2) { - const saveToken = currentToken; - const saveParseDiagnosticsLength = parseDiagnostics.length; - const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; - const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); - setParent(comment, parent); - if (contextFlags & 524288 /* JavaScriptFile */) { - if (!jsDocDiagnostics) { - jsDocDiagnostics = []; - } - addRange(jsDocDiagnostics, parseDiagnostics, saveParseDiagnosticsLength); - } - currentToken = saveToken; - parseDiagnostics.length = saveParseDiagnosticsLength; - parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode; - return comment; - } - JSDocParser2.parseJSDocComment = parseJSDocComment; - let JSDocState; - ((JSDocState2) => { - JSDocState2[JSDocState2["BeginningOfLine"] = 0] = "BeginningOfLine"; - JSDocState2[JSDocState2["SawAsterisk"] = 1] = "SawAsterisk"; - JSDocState2[JSDocState2["SavingComments"] = 2] = "SavingComments"; - JSDocState2[JSDocState2["SavingBackticks"] = 3] = "SavingBackticks"; - })(JSDocState || (JSDocState = {})); - let PropertyLikeParse; - ((PropertyLikeParse2) => { - PropertyLikeParse2[PropertyLikeParse2["Property"] = 1] = "Property"; - PropertyLikeParse2[PropertyLikeParse2["Parameter"] = 2] = "Parameter"; - PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter"; - })(PropertyLikeParse || (PropertyLikeParse = {})); - function parseJSDocCommentWorker(start = 0, length2) { - const content = sourceText; - const end = length2 === void 0 ? content.length : start + length2; - length2 = end - start; - Debug.assert(start >= 0); - Debug.assert(start <= end); - Debug.assert(end <= content.length); - if (!isJSDocLikeText(content, start)) { - return void 0; - } - let tags; - let tagsPos; - let tagsEnd; - let linkEnd; - let commentsPos; - let comments = []; - const parts = []; - const saveParsingContext = parsingContext; - parsingContext |= 1 << 25 /* JSDocComment */; - const result = scanner.scanRange(start + 3, length2 - 5, doJSDocScan); - parsingContext = saveParsingContext; - return result; - function doJSDocScan() { - let state = 1 /* SawAsterisk */; - let margin; - let indent2 = start - (content.lastIndexOf("\n", start) + 1) + 4; - function pushComment(text) { - if (!margin) { - margin = indent2; - } - comments.push(text); - indent2 += text.length; - } - nextTokenJSDoc(); - while (parseOptionalJsdoc(5 /* WhitespaceTrivia */)) ; - if (parseOptionalJsdoc(4 /* NewLineTrivia */)) { - state = 0 /* BeginningOfLine */; - indent2 = 0; - } - loop: - while (true) { - switch (token()) { - case 60 /* AtToken */: - removeTrailingWhitespace(comments); - if (!commentsPos) commentsPos = getNodePos(); - addTag(parseTag(indent2)); - state = 0 /* BeginningOfLine */; - margin = void 0; - break; - case 4 /* NewLineTrivia */: - comments.push(scanner.getTokenText()); - state = 0 /* BeginningOfLine */; - indent2 = 0; - break; - case 42 /* AsteriskToken */: - const asterisk = scanner.getTokenText(); - if (state === 1 /* SawAsterisk */) { - state = 2 /* SavingComments */; - pushComment(asterisk); - } else { - Debug.assert(state === 0 /* BeginningOfLine */); - state = 1 /* SawAsterisk */; - indent2 += asterisk.length; - } - break; - case 5 /* WhitespaceTrivia */: - Debug.assert(state !== 2 /* SavingComments */, "whitespace shouldn't come from the scanner while saving top-level comment text"); - const whitespace = scanner.getTokenText(); - if (margin !== void 0 && indent2 + whitespace.length > margin) { - comments.push(whitespace.slice(margin - indent2)); - } - indent2 += whitespace.length; - break; - case 1 /* EndOfFileToken */: - break loop; - case 82 /* JSDocCommentTextToken */: - state = 2 /* SavingComments */; - pushComment(scanner.getTokenValue()); - break; - case 19 /* OpenBraceToken */: - state = 2 /* SavingComments */; - const commentEnd = scanner.getTokenFullStart(); - const linkStart = scanner.getTokenEnd() - 1; - const link = parseJSDocLink(linkStart); - if (link) { - if (!linkEnd) { - removeLeadingNewlines(comments); - } - parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd)); - parts.push(link); - comments = []; - linkEnd = scanner.getTokenEnd(); - break; - } - // fallthrough if it's not a {@link sequence - default: - state = 2 /* SavingComments */; - pushComment(scanner.getTokenText()); - break; - } - if (state === 2 /* SavingComments */) { - nextJSDocCommentTextToken( - /*inBackticks*/ - false - ); - } else { - nextTokenJSDoc(); - } - } - const trimmedComments = comments.join("").trimEnd(); - if (parts.length && trimmedComments.length) { - parts.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd ?? start, commentsPos)); - } - if (parts.length && tags) Debug.assertIsDefined(commentsPos, "having parsed tags implies that the end of the comment span should be set"); - const tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd); - return finishNode(factory2.createJSDocComment(parts.length ? createNodeArray(parts, start, commentsPos) : trimmedComments.length ? trimmedComments : void 0, tagsArray), start, end); - } - function removeLeadingNewlines(comments2) { - while (comments2.length && (comments2[0] === "\n" || comments2[0] === "\r")) { - comments2.shift(); - } - } - function removeTrailingWhitespace(comments2) { - while (comments2.length) { - const trimmed = comments2[comments2.length - 1].trimEnd(); - if (trimmed === "") { - comments2.pop(); - } else if (trimmed.length < comments2[comments2.length - 1].length) { - comments2[comments2.length - 1] = trimmed; - break; - } else { - break; - } - } - } - function isNextNonwhitespaceTokenEndOfFile() { - while (true) { - nextTokenJSDoc(); - if (token() === 1 /* EndOfFileToken */) { - return true; - } - if (!(token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */)) { - return false; - } - } - } - function skipWhitespace() { - if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { - if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) { - return; - } - } - while (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { - nextTokenJSDoc(); - } - } - function skipWhitespaceOrAsterisk() { - if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { - if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) { - return ""; - } - } - let precedingLineBreak = scanner.hasPrecedingLineBreak(); - let seenLineBreak = false; - let indentText = ""; - while (precedingLineBreak && token() === 42 /* AsteriskToken */ || token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { - indentText += scanner.getTokenText(); - if (token() === 4 /* NewLineTrivia */) { - precedingLineBreak = true; - seenLineBreak = true; - indentText = ""; - } else if (token() === 42 /* AsteriskToken */) { - precedingLineBreak = false; - } - nextTokenJSDoc(); - } - return seenLineBreak ? indentText : ""; - } - function parseTag(margin) { - Debug.assert(token() === 60 /* AtToken */); - const start2 = scanner.getTokenStart(); - nextTokenJSDoc(); - const tagName = parseJSDocIdentifierName( - /*message*/ - void 0 - ); - const indentText = skipWhitespaceOrAsterisk(); - let tag; - switch (tagName.escapedText) { - case "author": - tag = parseAuthorTag(start2, tagName, margin, indentText); - break; - case "implements": - tag = parseImplementsTag(start2, tagName, margin, indentText); - break; - case "augments": - case "extends": - tag = parseAugmentsTag(start2, tagName, margin, indentText); - break; - case "class": - case "constructor": - tag = parseSimpleTag(start2, factory2.createJSDocClassTag, tagName, margin, indentText); - break; - case "public": - tag = parseSimpleTag(start2, factory2.createJSDocPublicTag, tagName, margin, indentText); - break; - case "private": - tag = parseSimpleTag(start2, factory2.createJSDocPrivateTag, tagName, margin, indentText); - break; - case "protected": - tag = parseSimpleTag(start2, factory2.createJSDocProtectedTag, tagName, margin, indentText); - break; - case "readonly": - tag = parseSimpleTag(start2, factory2.createJSDocReadonlyTag, tagName, margin, indentText); - break; - case "override": - tag = parseSimpleTag(start2, factory2.createJSDocOverrideTag, tagName, margin, indentText); - break; - case "deprecated": - hasDeprecatedTag = true; - tag = parseSimpleTag(start2, factory2.createJSDocDeprecatedTag, tagName, margin, indentText); - break; - case "this": - tag = parseThisTag(start2, tagName, margin, indentText); - break; - case "enum": - tag = parseEnumTag(start2, tagName, margin, indentText); - break; - case "arg": - case "argument": - case "param": - return parseParameterOrPropertyTag(start2, tagName, 2 /* Parameter */, margin); - case "return": - case "returns": - tag = parseReturnTag(start2, tagName, margin, indentText); - break; - case "template": - tag = parseTemplateTag(start2, tagName, margin, indentText); - break; - case "type": - tag = parseTypeTag(start2, tagName, margin, indentText); - break; - case "typedef": - tag = parseTypedefTag(start2, tagName, margin, indentText); - break; - case "callback": - tag = parseCallbackTag(start2, tagName, margin, indentText); - break; - case "overload": - tag = parseOverloadTag(start2, tagName, margin, indentText); - break; - case "satisfies": - tag = parseSatisfiesTag(start2, tagName, margin, indentText); - break; - case "see": - tag = parseSeeTag(start2, tagName, margin, indentText); - break; - case "exception": - case "throws": - tag = parseThrowsTag(start2, tagName, margin, indentText); - break; - case "import": - tag = parseImportTag(start2, tagName, margin, indentText); - break; - default: - tag = parseUnknownTag(start2, tagName, margin, indentText); - break; - } - return tag; - } - function parseTrailingTagComments(pos, end2, margin, indentText) { - if (!indentText) { - margin += end2 - pos; - } - return parseTagComments(margin, indentText.slice(margin)); - } - function parseTagComments(indent2, initialMargin) { - const commentsPos2 = getNodePos(); - let comments2 = []; - const parts2 = []; - let linkEnd2; - let state = 0 /* BeginningOfLine */; - let margin; - function pushComment(text) { - if (!margin) { - margin = indent2; - } - comments2.push(text); - indent2 += text.length; - } - if (initialMargin !== void 0) { - if (initialMargin !== "") { - pushComment(initialMargin); - } - state = 1 /* SawAsterisk */; - } - let tok = token(); - loop: - while (true) { - switch (tok) { - case 4 /* NewLineTrivia */: - state = 0 /* BeginningOfLine */; - comments2.push(scanner.getTokenText()); - indent2 = 0; - break; - case 60 /* AtToken */: - scanner.resetTokenState(scanner.getTokenEnd() - 1); - break loop; - case 1 /* EndOfFileToken */: - break loop; - case 5 /* WhitespaceTrivia */: - Debug.assert(state !== 2 /* SavingComments */ && state !== 3 /* SavingBackticks */, "whitespace shouldn't come from the scanner while saving comment text"); - const whitespace = scanner.getTokenText(); - if (margin !== void 0 && indent2 + whitespace.length > margin) { - comments2.push(whitespace.slice(margin - indent2)); - state = 2 /* SavingComments */; - } - indent2 += whitespace.length; - break; - case 19 /* OpenBraceToken */: - state = 2 /* SavingComments */; - const commentEnd = scanner.getTokenFullStart(); - const linkStart = scanner.getTokenEnd() - 1; - const link = parseJSDocLink(linkStart); - if (link) { - parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 ?? commentsPos2, commentEnd)); - parts2.push(link); - comments2 = []; - linkEnd2 = scanner.getTokenEnd(); - } else { - pushComment(scanner.getTokenText()); - } - break; - case 62 /* BacktickToken */: - if (state === 3 /* SavingBackticks */) { - state = 2 /* SavingComments */; - } else { - state = 3 /* SavingBackticks */; - } - pushComment(scanner.getTokenText()); - break; - case 82 /* JSDocCommentTextToken */: - if (state !== 3 /* SavingBackticks */) { - state = 2 /* SavingComments */; - } - pushComment(scanner.getTokenValue()); - break; - case 42 /* AsteriskToken */: - if (state === 0 /* BeginningOfLine */) { - state = 1 /* SawAsterisk */; - indent2 += 1; - break; - } - // record the * as a comment - // falls through - default: - if (state !== 3 /* SavingBackticks */) { - state = 2 /* SavingComments */; - } - pushComment(scanner.getTokenText()); - break; - } - if (state === 2 /* SavingComments */ || state === 3 /* SavingBackticks */) { - tok = nextJSDocCommentTextToken(state === 3 /* SavingBackticks */); - } else { - tok = nextTokenJSDoc(); - } - } - removeLeadingNewlines(comments2); - const trimmedComments = comments2.join("").trimEnd(); - if (parts2.length) { - if (trimmedComments.length) { - parts2.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd2 ?? commentsPos2)); - } - return createNodeArray(parts2, commentsPos2, scanner.getTokenEnd()); - } else if (trimmedComments.length) { - return trimmedComments; - } - } - function parseJSDocLink(start2) { - const linkType = tryParse(parseJSDocLinkPrefix); - if (!linkType) { - return void 0; - } - nextTokenJSDoc(); - skipWhitespace(); - const name = parseJSDocLinkName(); - const text = []; - while (token() !== 20 /* CloseBraceToken */ && token() !== 4 /* NewLineTrivia */ && token() !== 1 /* EndOfFileToken */) { - text.push(scanner.getTokenText()); - nextTokenJSDoc(); - } - const create = linkType === "link" ? factory2.createJSDocLink : linkType === "linkcode" ? factory2.createJSDocLinkCode : factory2.createJSDocLinkPlain; - return finishNode(create(name, text.join("")), start2, scanner.getTokenEnd()); - } - function parseJSDocLinkName() { - if (tokenIsIdentifierOrKeyword(token())) { - const pos = getNodePos(); - let name = parseIdentifierName(); - while (parseOptional(25 /* DotToken */)) { - name = finishNode(factory2.createQualifiedName(name, token() === 81 /* PrivateIdentifier */ ? createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - false - ) : parseIdentifierName()), pos); - } - while (token() === 81 /* PrivateIdentifier */) { - reScanHashToken(); - nextTokenJSDoc(); - name = finishNode(factory2.createJSDocMemberName(name, parseIdentifier()), pos); - } - return name; - } - return void 0; - } - function parseJSDocLinkPrefix() { - skipWhitespaceOrAsterisk(); - if (token() === 19 /* OpenBraceToken */ && nextTokenJSDoc() === 60 /* AtToken */ && tokenIsIdentifierOrKeyword(nextTokenJSDoc())) { - const kind = scanner.getTokenValue(); - if (isJSDocLinkTag(kind)) return kind; - } - } - function isJSDocLinkTag(kind) { - return kind === "link" || kind === "linkcode" || kind === "linkplain"; - } - function parseUnknownTag(start2, tagName, indent2, indentText) { - return finishNode(factory2.createJSDocUnknownTag(tagName, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); - } - function addTag(tag) { - if (!tag) { - return; - } - if (!tags) { - tags = [tag]; - tagsPos = tag.pos; - } else { - tags.push(tag); - } - tagsEnd = tag.end; - } - function tryParseTypeExpression() { - skipWhitespaceOrAsterisk(); - return token() === 19 /* OpenBraceToken */ ? parseJSDocTypeExpression() : void 0; - } - function parseBracketNameInPropertyAndParamTag() { - const isBracketed = parseOptionalJsdoc(23 /* OpenBracketToken */); - if (isBracketed) { - skipWhitespace(); - } - const isBackquoted = parseOptionalJsdoc(62 /* BacktickToken */); - const name = parseJSDocEntityName(); - if (isBackquoted) { - parseExpectedTokenJSDoc(62 /* BacktickToken */); - } - if (isBracketed) { - skipWhitespace(); - if (parseOptionalToken(64 /* EqualsToken */)) { - parseExpression(); - } - parseExpected(24 /* CloseBracketToken */); - } - return { name, isBracketed }; - } - function isObjectOrObjectArrayTypeReference(node) { - switch (node.kind) { - case 151 /* ObjectKeyword */: - return true; - case 188 /* ArrayType */: - return isObjectOrObjectArrayTypeReference(node.elementType); - default: - return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; - } - } - function parseParameterOrPropertyTag(start2, tagName, target, indent2) { - let typeExpression = tryParseTypeExpression(); - let isNameFirst = !typeExpression; - skipWhitespaceOrAsterisk(); - const { name, isBracketed } = parseBracketNameInPropertyAndParamTag(); - const indentText = skipWhitespaceOrAsterisk(); - if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) { - typeExpression = tryParseTypeExpression(); - } - const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2); - if (nestedTypeLiteral) { - typeExpression = nestedTypeLiteral; - isNameFirst = true; - } - const result2 = target === 1 /* Property */ ? factory2.createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) : factory2.createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment); - return finishNode(result2, start2); - } - function parseNestedTypeLiteral(typeExpression, name, target, indent2) { - if (typeExpression && isObjectOrObjectArrayTypeReference(typeExpression.type)) { - const pos = getNodePos(); - let child; - let children; - while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) { - if (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) { - children = append(children, child); - } else if (child.kind === 345 /* JSDocTemplateTag */) { - parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); - } - } - if (children) { - const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); - return finishNode(factory2.createJSDocTypeExpression(literal), pos); - } - } - } - function parseReturnTag(start2, tagName, indent2, indentText) { - if (some(tags, isJSDocReturnTag)) { - parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText)); - } - const typeExpression = tryParseTypeExpression(); - return finishNode(factory2.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); - } - function parseTypeTag(start2, tagName, indent2, indentText) { - if (some(tags, isJSDocTypeTag)) { - parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText)); - } - const typeExpression = parseJSDocTypeExpression( - /*mayOmitBraces*/ - true - ); - const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0; - return finishNode(factory2.createJSDocTypeTag(tagName, typeExpression, comments2), start2); - } - function parseSeeTag(start2, tagName, indent2, indentText) { - const isMarkdownOrJSDocLink = token() === 23 /* OpenBracketToken */ || lookAhead(() => nextTokenJSDoc() === 60 /* AtToken */ && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner.getTokenValue())); - const nameExpression = isMarkdownOrJSDocLink ? void 0 : parseJSDocNameReference(); - const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0; - return finishNode(factory2.createJSDocSeeTag(tagName, nameExpression, comments2), start2); - } - function parseThrowsTag(start2, tagName, indent2, indentText) { - const typeExpression = tryParseTypeExpression(); - const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - return finishNode(factory2.createJSDocThrowsTag(tagName, typeExpression, comment), start2); - } - function parseAuthorTag(start2, tagName, indent2, indentText) { - const commentStart = getNodePos(); - const textOnly = parseAuthorNameAndEmail(); - let commentEnd = scanner.getTokenFullStart(); - const comments2 = parseTrailingTagComments(start2, commentEnd, indent2, indentText); - if (!comments2) { - commentEnd = scanner.getTokenFullStart(); - } - const allParts = typeof comments2 !== "string" ? createNodeArray(concatenate([finishNode(textOnly, commentStart, commentEnd)], comments2), commentStart) : textOnly.text + comments2; - return finishNode(factory2.createJSDocAuthorTag(tagName, allParts), start2); - } - function parseAuthorNameAndEmail() { - const comments2 = []; - let inEmail = false; - let token2 = scanner.getToken(); - while (token2 !== 1 /* EndOfFileToken */ && token2 !== 4 /* NewLineTrivia */) { - if (token2 === 30 /* LessThanToken */) { - inEmail = true; - } else if (token2 === 60 /* AtToken */ && !inEmail) { - break; - } else if (token2 === 32 /* GreaterThanToken */ && inEmail) { - comments2.push(scanner.getTokenText()); - scanner.resetTokenState(scanner.getTokenEnd()); - break; - } - comments2.push(scanner.getTokenText()); - token2 = nextTokenJSDoc(); - } - return factory2.createJSDocText(comments2.join("")); - } - function parseImplementsTag(start2, tagName, margin, indentText) { - const className = parseExpressionWithTypeArgumentsForAugments(); - return finishNode(factory2.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); - } - function parseAugmentsTag(start2, tagName, margin, indentText) { - const className = parseExpressionWithTypeArgumentsForAugments(); - return finishNode(factory2.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); - } - function parseSatisfiesTag(start2, tagName, margin, indentText) { - const typeExpression = parseJSDocTypeExpression( - /*mayOmitBraces*/ - false - ); - const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0; - return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2); - } - function parseImportTag(start2, tagName, margin, indentText) { - const afterImportTagPos = scanner.getTokenFullStart(); - let identifier; - if (isIdentifier2()) { - identifier = parseIdentifier(); - } - const importClause = tryParseImportClause( - identifier, - afterImportTagPos, - /*isTypeOnly*/ - true, - /*skipJsDocLeadingAsterisks*/ - true - ); - const moduleSpecifier = parseModuleSpecifier(); - const attributes = tryParseImportAttributes(); - const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0; - return finishNode(factory2.createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comments2), start2); - } - function parseExpressionWithTypeArgumentsForAugments() { - const usedBrace = parseOptional(19 /* OpenBraceToken */); - const pos = getNodePos(); - const expression = parsePropertyAccessEntityNameExpression(); - scanner.setSkipJsDocLeadingAsterisks(true); - const typeArguments = tryParseTypeArguments(); - scanner.setSkipJsDocLeadingAsterisks(false); - const node = factory2.createExpressionWithTypeArguments(expression, typeArguments); - const res = finishNode(node, pos); - if (usedBrace) { - skipWhitespace(); - parseExpected(20 /* CloseBraceToken */); - } - return res; - } - function parsePropertyAccessEntityNameExpression() { - const pos = getNodePos(); - let node = parseJSDocIdentifierName(); - while (parseOptional(25 /* DotToken */)) { - const name = parseJSDocIdentifierName(); - node = finishNode(factoryCreatePropertyAccessExpression(node, name), pos); - } - return node; - } - function parseSimpleTag(start2, createTag, tagName, margin, indentText) { - return finishNode(createTag(tagName, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); - } - function parseThisTag(start2, tagName, margin, indentText) { - const typeExpression = parseJSDocTypeExpression( - /*mayOmitBraces*/ - true - ); - skipWhitespace(); - return finishNode(factory2.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); - } - function parseEnumTag(start2, tagName, margin, indentText) { - const typeExpression = parseJSDocTypeExpression( - /*mayOmitBraces*/ - true - ); - skipWhitespace(); - return finishNode(factory2.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); - } - function parseTypedefTag(start2, tagName, indent2, indentText) { - let typeExpression = tryParseTypeExpression(); - skipWhitespaceOrAsterisk(); - const fullName = parseJSDocTypeNameWithNamespace(); - skipWhitespace(); - let comment = parseTagComments(indent2); - let end2; - if (!typeExpression || isObjectOrObjectArrayTypeReference(typeExpression.type)) { - let child; - let childTypeTag; - let jsDocPropertyTags; - let hasChildren = false; - while (child = tryParse(() => parseChildPropertyTag(indent2))) { - if (child.kind === 345 /* JSDocTemplateTag */) { - break; - } - hasChildren = true; - if (child.kind === 344 /* JSDocTypeTag */) { - if (childTypeTag) { - const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); - if (lastError) { - addRelatedInfo(lastError, createDetachedDiagnostic(fileName, sourceText, 0, 0, Diagnostics.The_tag_was_first_specified_here)); - } - break; - } else { - childTypeTag = child; - } - } else { - jsDocPropertyTags = append(jsDocPropertyTags, child); - } - } - if (hasChildren) { - const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; - const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); - typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); - end2 = typeExpression.end; - } - } - end2 = end2 || comment !== void 0 ? getNodePos() : (fullName ?? typeExpression ?? tagName).end; - if (!comment) { - comment = parseTrailingTagComments(start2, end2, indent2, indentText); - } - const typedefTag = factory2.createJSDocTypedefTag(tagName, typeExpression, fullName, comment); - return finishNode(typedefTag, start2, end2); - } - function parseJSDocTypeNameWithNamespace(nested) { - const start2 = scanner.getTokenStart(); - if (!tokenIsIdentifierOrKeyword(token())) { - return void 0; - } - const typeNameOrNamespaceName = parseJSDocIdentifierName(); - if (parseOptional(25 /* DotToken */)) { - const body = parseJSDocTypeNameWithNamespace( - /*nested*/ - true - ); - const jsDocNamespaceNode = factory2.createModuleDeclaration( - /*modifiers*/ - void 0, - typeNameOrNamespaceName, - body, - nested ? 8 /* NestedNamespace */ : void 0 - ); - return finishNode(jsDocNamespaceNode, start2); - } - if (nested) { - typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; - } - return typeNameOrNamespaceName; - } - function parseCallbackTagParameters(indent2) { - const pos = getNodePos(); - let child; - let parameters; - while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) { - if (child.kind === 345 /* JSDocTemplateTag */) { - parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); - break; - } - parameters = append(parameters, child); - } - return createNodeArray(parameters || [], pos); - } - function parseJSDocSignature(start2, indent2) { - const parameters = parseCallbackTagParameters(indent2); - const returnTag = tryParse(() => { - if (parseOptionalJsdoc(60 /* AtToken */)) { - const tag = parseTag(indent2); - if (tag && tag.kind === 342 /* JSDocReturnTag */) { - return tag; - } - } - }); - return finishNode(factory2.createJSDocSignature( - /*typeParameters*/ - void 0, - parameters, - returnTag - ), start2); - } - function parseCallbackTag(start2, tagName, indent2, indentText) { - const fullName = parseJSDocTypeNameWithNamespace(); - skipWhitespace(); - let comment = parseTagComments(indent2); - const typeExpression = parseJSDocSignature(start2, indent2); - if (!comment) { - comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - } - const end2 = comment !== void 0 ? getNodePos() : typeExpression.end; - return finishNode(factory2.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start2, end2); - } - function parseOverloadTag(start2, tagName, indent2, indentText) { - skipWhitespace(); - let comment = parseTagComments(indent2); - const typeExpression = parseJSDocSignature(start2, indent2); - if (!comment) { - comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); - } - const end2 = comment !== void 0 ? getNodePos() : typeExpression.end; - return finishNode(factory2.createJSDocOverloadTag(tagName, typeExpression, comment), start2, end2); - } - function escapedTextsEqual(a, b) { - while (!isIdentifier(a) || !isIdentifier(b)) { - if (!isIdentifier(a) && !isIdentifier(b) && a.right.escapedText === b.right.escapedText) { - a = a.left; - b = b.left; - } else { - return false; - } - } - return a.escapedText === b.escapedText; - } - function parseChildPropertyTag(indent2) { - return parseChildParameterOrPropertyTag(1 /* Property */, indent2); - } - function parseChildParameterOrPropertyTag(target, indent2, name) { - let canParseTag = true; - let seenAsterisk = false; - while (true) { - switch (nextTokenJSDoc()) { - case 60 /* AtToken */: - if (canParseTag) { - const child = tryParseChildTag(target, indent2); - if (child && (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { - return false; - } - return child; - } - seenAsterisk = false; - break; - case 4 /* NewLineTrivia */: - canParseTag = true; - seenAsterisk = false; - break; - case 42 /* AsteriskToken */: - if (seenAsterisk) { - canParseTag = false; - } - seenAsterisk = true; - break; - case 80 /* Identifier */: - canParseTag = false; - break; - case 1 /* EndOfFileToken */: - return false; - } - } - } - function tryParseChildTag(target, indent2) { - Debug.assert(token() === 60 /* AtToken */); - const start2 = scanner.getTokenFullStart(); - nextTokenJSDoc(); - const tagName = parseJSDocIdentifierName(); - const indentText = skipWhitespaceOrAsterisk(); - let t; - switch (tagName.escapedText) { - case "type": - return target === 1 /* Property */ && parseTypeTag(start2, tagName); - case "prop": - case "property": - t = 1 /* Property */; - break; - case "arg": - case "argument": - case "param": - t = 2 /* Parameter */ | 4 /* CallbackParameter */; - break; - case "template": - return parseTemplateTag(start2, tagName, indent2, indentText); - case "this": - return parseThisTag(start2, tagName, indent2, indentText); - default: - return false; - } - if (!(target & t)) { - return false; - } - return parseParameterOrPropertyTag(start2, tagName, target, indent2); - } - function parseTemplateTagTypeParameter() { - const typeParameterPos = getNodePos(); - const isBracketed = parseOptionalJsdoc(23 /* OpenBracketToken */); - if (isBracketed) { - skipWhitespace(); - } - const modifiers = parseModifiers( - /*allowDecorators*/ - false, - /*permitConstAsModifier*/ - true - ); - const name = parseJSDocIdentifierName(Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces); - let defaultType; - if (isBracketed) { - skipWhitespace(); - parseExpected(64 /* EqualsToken */); - defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); - parseExpected(24 /* CloseBracketToken */); - } - if (nodeIsMissing(name)) { - return void 0; - } - return finishNode(factory2.createTypeParameterDeclaration( - modifiers, - name, - /*constraint*/ - void 0, - defaultType - ), typeParameterPos); - } - function parseTemplateTagTypeParameters() { - const pos = getNodePos(); - const typeParameters = []; - do { - skipWhitespace(); - const node = parseTemplateTagTypeParameter(); - if (node !== void 0) { - typeParameters.push(node); - } - skipWhitespaceOrAsterisk(); - } while (parseOptionalJsdoc(28 /* CommaToken */)); - return createNodeArray(typeParameters, pos); - } - function parseTemplateTag(start2, tagName, indent2, indentText) { - const constraint = token() === 19 /* OpenBraceToken */ ? parseJSDocTypeExpression() : void 0; - const typeParameters = parseTemplateTagTypeParameters(); - return finishNode(factory2.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); - } - function parseOptionalJsdoc(t) { - if (token() === t) { - nextTokenJSDoc(); - return true; - } - return false; - } - function parseJSDocEntityName() { - let entity = parseJSDocIdentifierName(); - if (parseOptional(23 /* OpenBracketToken */)) { - parseExpected(24 /* CloseBracketToken */); - } - while (parseOptional(25 /* DotToken */)) { - const name = parseJSDocIdentifierName(); - if (parseOptional(23 /* OpenBracketToken */)) { - parseExpected(24 /* CloseBracketToken */); - } - entity = createQualifiedName(entity, name); - } - return entity; - } - function parseJSDocIdentifierName(message) { - if (!tokenIsIdentifierOrKeyword(token())) { - return createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - !message, - message || Diagnostics.Identifier_expected - ); - } - identifierCount++; - const start2 = scanner.getTokenStart(); - const end2 = scanner.getTokenEnd(); - const originalKeywordKind = token(); - const text = internIdentifier(scanner.getTokenValue()); - const result2 = finishNode(factoryCreateIdentifier(text, originalKeywordKind), start2, end2); - nextTokenJSDoc(); - return result2; - } - } - })(JSDocParser = Parser2.JSDocParser || (Parser2.JSDocParser = {})); -})(Parser || (Parser = {})); -var incrementallyParsedFiles = /* @__PURE__ */ new WeakSet(); -function markAsIncrementallyParsed(sourceFile) { - if (incrementallyParsedFiles.has(sourceFile)) { - Debug.fail("Source file has already been incrementally parsed"); - } - incrementallyParsedFiles.add(sourceFile); -} -var intersectingChangeSet = /* @__PURE__ */ new WeakSet(); -function intersectsIncrementalChange(node) { - return intersectingChangeSet.has(node); -} -function markAsIntersectingIncrementalChange(node) { - intersectingChangeSet.add(node); -} -var IncrementalParser; -((IncrementalParser2) => { - function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) { - aggressiveChecks = aggressiveChecks || Debug.shouldAssert(2 /* Aggressive */); - checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks); - if (textChangeRangeIsUnchanged(textChangeRange)) { - return sourceFile; - } - if (sourceFile.statements.length === 0) { - return Parser.parseSourceFile( - sourceFile.fileName, - newText, - sourceFile.languageVersion, - /*syntaxCursor*/ - void 0, - /*setParentNodes*/ - true, - sourceFile.scriptKind, - sourceFile.setExternalModuleIndicator, - sourceFile.jsDocParsingMode - ); - } - markAsIncrementallyParsed(sourceFile); - Parser.fixupParentReferences(sourceFile); - const oldText = sourceFile.text; - const syntaxCursor = createSyntaxCursor(sourceFile); - const changeRange = extendToAffectedRange(sourceFile, textChangeRange); - checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks); - Debug.assert(changeRange.span.start <= textChangeRange.span.start); - Debug.assert(textSpanEnd(changeRange.span) === textSpanEnd(textChangeRange.span)); - Debug.assert(textSpanEnd(textChangeRangeNewSpan(changeRange)) === textSpanEnd(textChangeRangeNewSpan(textChangeRange))); - const delta = textChangeRangeNewSpan(changeRange).length - changeRange.span.length; - updateTokenPositionsAndMarkElements(sourceFile, changeRange.span.start, textSpanEnd(changeRange.span), textSpanEnd(textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks); - const result = Parser.parseSourceFile( - sourceFile.fileName, - newText, - sourceFile.languageVersion, - syntaxCursor, - /*setParentNodes*/ - true, - sourceFile.scriptKind, - sourceFile.setExternalModuleIndicator, - sourceFile.jsDocParsingMode - ); - result.commentDirectives = getNewCommentDirectives( - sourceFile.commentDirectives, - result.commentDirectives, - changeRange.span.start, - textSpanEnd(changeRange.span), - delta, - oldText, - newText, - aggressiveChecks - ); - result.impliedNodeFormat = sourceFile.impliedNodeFormat; - transferSourceFileChildren(sourceFile, result); - return result; - } - IncrementalParser2.updateSourceFile = updateSourceFile; - function getNewCommentDirectives(oldDirectives, newDirectives, changeStart, changeRangeOldEnd, delta, oldText, newText, aggressiveChecks) { - if (!oldDirectives) return newDirectives; - let commentDirectives; - let addedNewlyScannedDirectives = false; - for (const directive of oldDirectives) { - const { range, type } = directive; - if (range.end < changeStart) { - commentDirectives = append(commentDirectives, directive); - } else if (range.pos > changeRangeOldEnd) { - addNewlyScannedDirectives(); - const updatedDirective = { - range: { pos: range.pos + delta, end: range.end + delta }, - type - }; - commentDirectives = append(commentDirectives, updatedDirective); - if (aggressiveChecks) { - Debug.assert(oldText.substring(range.pos, range.end) === newText.substring(updatedDirective.range.pos, updatedDirective.range.end)); - } - } - } - addNewlyScannedDirectives(); - return commentDirectives; - function addNewlyScannedDirectives() { - if (addedNewlyScannedDirectives) return; - addedNewlyScannedDirectives = true; - if (!commentDirectives) { - commentDirectives = newDirectives; - } else if (newDirectives) { - commentDirectives.push(...newDirectives); - } - } - } - function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray2, delta, oldText, newText, aggressiveChecks) { - if (isArray2) { - visitArray2(element); - } else { - visitNode3(element); - } - return; - function visitNode3(node) { - let text = ""; - if (aggressiveChecks && shouldCheckNode(node)) { - text = oldText.substring(node.pos, node.end); - } - unsetNodeChildren(node, origSourceFile); - setTextRangePosEnd(node, node.pos + delta, node.end + delta); - if (aggressiveChecks && shouldCheckNode(node)) { - Debug.assert(text === newText.substring(node.pos, node.end)); - } - forEachChild(node, visitNode3, visitArray2); - if (hasJSDocNodes(node)) { - for (const jsDocComment of node.jsDoc) { - visitNode3(jsDocComment); - } - } - checkNodePositions(node, aggressiveChecks); - } - function visitArray2(array) { - setTextRangePosEnd(array, array.pos + delta, array.end + delta); - for (const node of array) { - visitNode3(node); - } - } - } - function shouldCheckNode(node) { - switch (node.kind) { - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - case 80 /* Identifier */: - return true; - } - return false; - } - function adjustIntersectingElement(element, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta) { - Debug.assert(element.end >= changeStart, "Adjusting an element that was entirely before the change range"); - Debug.assert(element.pos <= changeRangeOldEnd, "Adjusting an element that was entirely after the change range"); - Debug.assert(element.pos <= element.end); - const pos = Math.min(element.pos, changeRangeNewEnd); - const end = element.end >= changeRangeOldEnd ? ( - // Element ends after the change range. Always adjust the end pos. - element.end + delta - ) : ( - // Element ends in the change range. The element will keep its position if - // possible. Or Move backward to the new-end if it's in the 'Y' range. - Math.min(element.end, changeRangeNewEnd) - ); - Debug.assert(pos <= end); - if (element.parent) { - const parent = element.parent; - Debug.assertGreaterThanOrEqual(pos, parent.pos); - Debug.assertLessThanOrEqual(end, parent.end); - } - setTextRangePosEnd(element, pos, end); - } - function checkNodePositions(node, aggressiveChecks) { - if (aggressiveChecks) { - let pos = node.pos; - const visitNode3 = (child) => { - Debug.assert(child.pos >= pos); - pos = child.end; - }; - if (hasJSDocNodes(node)) { - for (const jsDocComment of node.jsDoc) { - visitNode3(jsDocComment); - } - } - forEachChild(node, visitNode3); - Debug.assert(pos <= node.end); - } - } - function updateTokenPositionsAndMarkElements(sourceFile, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta, oldText, newText, aggressiveChecks) { - visitNode3(sourceFile); - return; - function visitNode3(child) { - Debug.assert(child.pos <= child.end); - if (child.pos > changeRangeOldEnd) { - moveElementEntirelyPastChangeRange( - child, - sourceFile, - /*isArray*/ - false, - delta, - oldText, - newText, - aggressiveChecks - ); - return; - } - const fullEnd = child.end; - if (fullEnd >= changeStart) { - markAsIntersectingIncrementalChange(child); - unsetNodeChildren(child, sourceFile); - adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); - forEachChild(child, visitNode3, visitArray2); - if (hasJSDocNodes(child)) { - for (const jsDocComment of child.jsDoc) { - visitNode3(jsDocComment); - } - } - checkNodePositions(child, aggressiveChecks); - return; - } - Debug.assert(fullEnd < changeStart); - } - function visitArray2(array) { - Debug.assert(array.pos <= array.end); - if (array.pos > changeRangeOldEnd) { - moveElementEntirelyPastChangeRange( - array, - sourceFile, - /*isArray*/ - true, - delta, - oldText, - newText, - aggressiveChecks - ); - return; - } - const fullEnd = array.end; - if (fullEnd >= changeStart) { - markAsIntersectingIncrementalChange(array); - adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); - for (const node of array) { - visitNode3(node); - } - return; - } - Debug.assert(fullEnd < changeStart); - } - } - function extendToAffectedRange(sourceFile, changeRange) { - const maxLookahead = 1; - let start = changeRange.span.start; - for (let i = 0; start > 0 && i <= maxLookahead; i++) { - const nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start); - Debug.assert(nearestNode.pos <= start); - const position = nearestNode.pos; - start = Math.max(0, position - 1); - } - const finalSpan = createTextSpanFromBounds(start, textSpanEnd(changeRange.span)); - const finalLength = changeRange.newLength + (changeRange.span.start - start); - return createTextChangeRange(finalSpan, finalLength); - } - function findNearestNodeStartingBeforeOrAtPosition(sourceFile, position) { - let bestResult = sourceFile; - let lastNodeEntirelyBeforePosition; - forEachChild(sourceFile, visit); - if (lastNodeEntirelyBeforePosition) { - const lastChildOfLastEntireNodeBeforePosition = getLastDescendant(lastNodeEntirelyBeforePosition); - if (lastChildOfLastEntireNodeBeforePosition.pos > bestResult.pos) { - bestResult = lastChildOfLastEntireNodeBeforePosition; - } - } - return bestResult; - function getLastDescendant(node) { - while (true) { - const lastChild = getLastChild(node); - if (lastChild) { - node = lastChild; - } else { - return node; - } - } - } - function visit(child) { - if (nodeIsMissing(child)) { - return; - } - if (child.pos <= position) { - if (child.pos >= bestResult.pos) { - bestResult = child; - } - if (position < child.end) { - forEachChild(child, visit); - return true; - } else { - Debug.assert(child.end <= position); - lastNodeEntirelyBeforePosition = child; - } - } else { - Debug.assert(child.pos > position); - return true; - } - } - } - function checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks) { - const oldText = sourceFile.text; - if (textChangeRange) { - Debug.assert(oldText.length - textChangeRange.span.length + textChangeRange.newLength === newText.length); - if (aggressiveChecks || Debug.shouldAssert(3 /* VeryAggressive */)) { - const oldTextPrefix = oldText.substr(0, textChangeRange.span.start); - const newTextPrefix = newText.substr(0, textChangeRange.span.start); - Debug.assert(oldTextPrefix === newTextPrefix); - const oldTextSuffix = oldText.substring(textSpanEnd(textChangeRange.span), oldText.length); - const newTextSuffix = newText.substring(textSpanEnd(textChangeRangeNewSpan(textChangeRange)), newText.length); - Debug.assert(oldTextSuffix === newTextSuffix); - } - } - } - function createSyntaxCursor(sourceFile) { - let currentArray = sourceFile.statements; - let currentArrayIndex = 0; - Debug.assert(currentArrayIndex < currentArray.length); - let current = currentArray[currentArrayIndex]; - let lastQueriedPosition = -1 /* Value */; - return { - currentNode(position) { - if (position !== lastQueriedPosition) { - if (current && current.end === position && currentArrayIndex < currentArray.length - 1) { - currentArrayIndex++; - current = currentArray[currentArrayIndex]; - } - if (!current || current.pos !== position) { - findHighestListElementThatStartsAtPosition(position); - } - } - lastQueriedPosition = position; - Debug.assert(!current || current.pos === position); - return current; - } - }; - function findHighestListElementThatStartsAtPosition(position) { - currentArray = void 0; - currentArrayIndex = -1 /* Value */; - current = void 0; - forEachChild(sourceFile, visitNode3, visitArray2); - return; - function visitNode3(node) { - if (position >= node.pos && position < node.end) { - forEachChild(node, visitNode3, visitArray2); - return true; - } - return false; - } - function visitArray2(array) { - if (position >= array.pos && position < array.end) { - for (let i = 0; i < array.length; i++) { - const child = array[i]; - if (child) { - if (child.pos === position) { - currentArray = array; - currentArrayIndex = i; - current = child; - return true; - } else { - if (child.pos < position && position < child.end) { - forEachChild(child, visitNode3, visitArray2); - return true; - } - } - } - } - } - return false; - } - } - } - IncrementalParser2.createSyntaxCursor = createSyntaxCursor; - let InvalidPosition; - ((InvalidPosition2) => { - InvalidPosition2[InvalidPosition2["Value"] = -1] = "Value"; - })(InvalidPosition || (InvalidPosition = {})); -})(IncrementalParser || (IncrementalParser = {})); -function isDeclarationFileName(fileName) { - return getDeclarationFileExtension(fileName) !== void 0; -} -function getDeclarationFileExtension(fileName) { - const standardExtension = getAnyExtensionFromPath( - fileName, - supportedDeclarationExtensions, - /*ignoreCase*/ - false - ); - if (standardExtension) { - return standardExtension; - } - if (fileExtensionIs(fileName, ".ts" /* Ts */)) { - const baseName = getBaseFileName(fileName); - const index = baseName.lastIndexOf(".d."); - if (index >= 0) { - return baseName.substring(index); - } - } - return void 0; -} -function parseResolutionMode(mode, pos, end, reportDiagnostic) { - if (!mode) { - return void 0; - } - if (mode === "import") { - return 99 /* ESNext */; - } - if (mode === "require") { - return 1 /* CommonJS */; - } - reportDiagnostic(pos, end - pos, Diagnostics.resolution_mode_should_be_either_require_or_import); - return void 0; -} -function processCommentPragmas(context, sourceText) { - const pragmas = []; - for (const range of getLeadingCommentRanges(sourceText, 0) || emptyArray) { - const comment = sourceText.substring(range.pos, range.end); - extractPragmas(pragmas, range, comment); - } - context.pragmas = /* @__PURE__ */ new Map(); - for (const pragma of pragmas) { - if (context.pragmas.has(pragma.name)) { - const currentValue = context.pragmas.get(pragma.name); - if (currentValue instanceof Array) { - currentValue.push(pragma.args); - } else { - context.pragmas.set(pragma.name, [currentValue, pragma.args]); - } - continue; - } - context.pragmas.set(pragma.name, pragma.args); - } -} -function processPragmasIntoFields(context, reportDiagnostic) { - context.checkJsDirective = void 0; - context.referencedFiles = []; - context.typeReferenceDirectives = []; - context.libReferenceDirectives = []; - context.amdDependencies = []; - context.hasNoDefaultLib = false; - context.pragmas.forEach((entryOrList, key) => { - switch (key) { - case "reference": { - const referencedFiles = context.referencedFiles; - const typeReferenceDirectives = context.typeReferenceDirectives; - const libReferenceDirectives = context.libReferenceDirectives; - forEach(toArray(entryOrList), (arg) => { - const { types, lib, path, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments; - const preserve = _preserve === "true" ? true : void 0; - if (arg.arguments["no-default-lib"] === "true") { - context.hasNoDefaultLib = true; - } else if (types) { - const parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic); - typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} }); - } else if (lib) { - libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value, ...preserve ? { preserve } : {} }); - } else if (path) { - referencedFiles.push({ pos: path.pos, end: path.end, fileName: path.value, ...preserve ? { preserve } : {} }); - } else { - reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax); - } - }); - break; - } - case "amd-dependency": { - context.amdDependencies = map( - toArray(entryOrList), - (x) => ({ name: x.arguments.name, path: x.arguments.path }) - ); - break; - } - case "amd-module": { - if (entryOrList instanceof Array) { - for (const entry of entryOrList) { - if (context.moduleName) { - reportDiagnostic(entry.range.pos, entry.range.end - entry.range.pos, Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments); - } - context.moduleName = entry.arguments.name; - } - } else { - context.moduleName = entryOrList.arguments.name; - } - break; - } - case "ts-nocheck": - case "ts-check": { - forEach(toArray(entryOrList), (entry) => { - if (!context.checkJsDirective || entry.range.pos > context.checkJsDirective.pos) { - context.checkJsDirective = { - enabled: key === "ts-check", - end: entry.range.end, - pos: entry.range.pos - }; - } - }); - break; - } - case "jsx": - case "jsxfrag": - case "jsximportsource": - case "jsxruntime": - return; - // Accessed directly - default: - Debug.fail("Unhandled pragma kind"); - } - }); -} -var namedArgRegExCache = /* @__PURE__ */ new Map(); -function getNamedArgRegEx(name) { - if (namedArgRegExCache.has(name)) { - return namedArgRegExCache.get(name); - } - const result = new RegExp(`(\\s${name}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`, "im"); - namedArgRegExCache.set(name, result); - return result; -} -var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/m; -var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m; -function extractPragmas(pragmas, range, text) { - const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); - if (tripleSlash) { - const name = tripleSlash[1].toLowerCase(); - const pragma = commentPragmas[name]; - if (!pragma || !(pragma.kind & 1 /* TripleSlashXML */)) { - return; - } - if (pragma.args) { - const argument = {}; - for (const arg of pragma.args) { - const matcher = getNamedArgRegEx(arg.name); - const matchResult = matcher.exec(text); - if (!matchResult && !arg.optional) { - return; - } else if (matchResult) { - const value = matchResult[2] || matchResult[3]; - if (arg.captureSpan) { - const startPos = range.pos + matchResult.index + matchResult[1].length + 1; - argument[arg.name] = { - value, - pos: startPos, - end: startPos + value.length - }; - } else { - argument[arg.name] = value; - } - } - } - pragmas.push({ name, args: { arguments: argument, range } }); - } else { - pragmas.push({ name, args: { arguments: {}, range } }); - } - return; - } - const singleLine = range.kind === 2 /* SingleLineCommentTrivia */ && singleLinePragmaRegEx.exec(text); - if (singleLine) { - return addPragmaForMatch(pragmas, range, 2 /* SingleLine */, singleLine); - } - if (range.kind === 3 /* MultiLineCommentTrivia */) { - const multiLinePragmaRegEx = /@(\S+)(\s+(?:\S.*)?)?$/gm; - let multiLineMatch; - while (multiLineMatch = multiLinePragmaRegEx.exec(text)) { - addPragmaForMatch(pragmas, range, 4 /* MultiLine */, multiLineMatch); - } - } -} -function addPragmaForMatch(pragmas, range, kind, match) { - if (!match) return; - const name = match[1].toLowerCase(); - const pragma = commentPragmas[name]; - if (!pragma || !(pragma.kind & kind)) { - return; - } - const args = match[2]; - const argument = getNamedPragmaArguments(pragma, args); - if (argument === "fail") return; - pragmas.push({ name, args: { arguments: argument, range } }); - return; -} -function getNamedPragmaArguments(pragma, text) { - if (!text) return {}; - if (!pragma.args) return {}; - const args = text.trim().split(/\s+/); - const argMap = {}; - for (let i = 0; i < pragma.args.length; i++) { - const argument = pragma.args[i]; - if (!args[i] && !argument.optional) { - return "fail"; - } - if (argument.captureSpan) { - return Debug.fail("Capture spans not yet implemented for non-xml pragmas"); - } - argMap[argument.name] = args[i]; - } - return argMap; -} -function tagNamesAreEquivalent(lhs, rhs) { - if (lhs.kind !== rhs.kind) { - return false; - } - if (lhs.kind === 80 /* Identifier */) { - return lhs.escapedText === rhs.escapedText; - } - if (lhs.kind === 110 /* ThisKeyword */) { - return true; - } - if (lhs.kind === 295 /* JsxNamespacedName */) { - return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; - } - return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); -} - -// src/compiler/commandLineParser.ts -var compileOnSaveCommandLineOption = { - name: "compileOnSave", - type: "boolean", - defaultValueDescription: false -}; -var jsxOptionMap = new Map(Object.entries({ - "preserve": 1 /* Preserve */, - "react-native": 3 /* ReactNative */, - "react": 2 /* React */, - "react-jsx": 4 /* ReactJSX */, - "react-jsxdev": 5 /* ReactJSXDev */ -})); -var inverseJsxOptionMap = new Map(mapIterator(jsxOptionMap.entries(), ([key, value]) => ["" + value, key])); -var libEntries = [ - // JavaScript only - ["es5", "lib.es5.d.ts"], - ["es6", "lib.es2015.d.ts"], - ["es2015", "lib.es2015.d.ts"], - ["es7", "lib.es2016.d.ts"], - ["es2016", "lib.es2016.d.ts"], - ["es2017", "lib.es2017.d.ts"], - ["es2018", "lib.es2018.d.ts"], - ["es2019", "lib.es2019.d.ts"], - ["es2020", "lib.es2020.d.ts"], - ["es2021", "lib.es2021.d.ts"], - ["es2022", "lib.es2022.d.ts"], - ["es2023", "lib.es2023.d.ts"], - ["es2024", "lib.es2024.d.ts"], - ["esnext", "lib.esnext.d.ts"], - // Host only - ["dom", "lib.dom.d.ts"], - ["dom.iterable", "lib.dom.iterable.d.ts"], - ["dom.asynciterable", "lib.dom.asynciterable.d.ts"], - ["webworker", "lib.webworker.d.ts"], - ["webworker.importscripts", "lib.webworker.importscripts.d.ts"], - ["webworker.iterable", "lib.webworker.iterable.d.ts"], - ["webworker.asynciterable", "lib.webworker.asynciterable.d.ts"], - ["scripthost", "lib.scripthost.d.ts"], - // ES2015 Or ESNext By-feature options - ["es2015.core", "lib.es2015.core.d.ts"], - ["es2015.collection", "lib.es2015.collection.d.ts"], - ["es2015.generator", "lib.es2015.generator.d.ts"], - ["es2015.iterable", "lib.es2015.iterable.d.ts"], - ["es2015.promise", "lib.es2015.promise.d.ts"], - ["es2015.proxy", "lib.es2015.proxy.d.ts"], - ["es2015.reflect", "lib.es2015.reflect.d.ts"], - ["es2015.symbol", "lib.es2015.symbol.d.ts"], - ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], - ["es2016.array.include", "lib.es2016.array.include.d.ts"], - ["es2016.intl", "lib.es2016.intl.d.ts"], - ["es2017.arraybuffer", "lib.es2017.arraybuffer.d.ts"], - ["es2017.date", "lib.es2017.date.d.ts"], - ["es2017.object", "lib.es2017.object.d.ts"], - ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], - ["es2017.string", "lib.es2017.string.d.ts"], - ["es2017.intl", "lib.es2017.intl.d.ts"], - ["es2017.typedarrays", "lib.es2017.typedarrays.d.ts"], - ["es2018.asyncgenerator", "lib.es2018.asyncgenerator.d.ts"], - ["es2018.asynciterable", "lib.es2018.asynciterable.d.ts"], - ["es2018.intl", "lib.es2018.intl.d.ts"], - ["es2018.promise", "lib.es2018.promise.d.ts"], - ["es2018.regexp", "lib.es2018.regexp.d.ts"], - ["es2019.array", "lib.es2019.array.d.ts"], - ["es2019.object", "lib.es2019.object.d.ts"], - ["es2019.string", "lib.es2019.string.d.ts"], - ["es2019.symbol", "lib.es2019.symbol.d.ts"], - ["es2019.intl", "lib.es2019.intl.d.ts"], - ["es2020.bigint", "lib.es2020.bigint.d.ts"], - ["es2020.date", "lib.es2020.date.d.ts"], - ["es2020.promise", "lib.es2020.promise.d.ts"], - ["es2020.sharedmemory", "lib.es2020.sharedmemory.d.ts"], - ["es2020.string", "lib.es2020.string.d.ts"], - ["es2020.symbol.wellknown", "lib.es2020.symbol.wellknown.d.ts"], - ["es2020.intl", "lib.es2020.intl.d.ts"], - ["es2020.number", "lib.es2020.number.d.ts"], - ["es2021.promise", "lib.es2021.promise.d.ts"], - ["es2021.string", "lib.es2021.string.d.ts"], - ["es2021.weakref", "lib.es2021.weakref.d.ts"], - ["es2021.intl", "lib.es2021.intl.d.ts"], - ["es2022.array", "lib.es2022.array.d.ts"], - ["es2022.error", "lib.es2022.error.d.ts"], - ["es2022.intl", "lib.es2022.intl.d.ts"], - ["es2022.object", "lib.es2022.object.d.ts"], - ["es2022.string", "lib.es2022.string.d.ts"], - ["es2022.regexp", "lib.es2022.regexp.d.ts"], - ["es2023.array", "lib.es2023.array.d.ts"], - ["es2023.collection", "lib.es2023.collection.d.ts"], - ["es2023.intl", "lib.es2023.intl.d.ts"], - ["es2024.arraybuffer", "lib.es2024.arraybuffer.d.ts"], - ["es2024.collection", "lib.es2024.collection.d.ts"], - ["es2024.object", "lib.es2024.object.d.ts"], - ["es2024.promise", "lib.es2024.promise.d.ts"], - ["es2024.regexp", "lib.es2024.regexp.d.ts"], - ["es2024.sharedmemory", "lib.es2024.sharedmemory.d.ts"], - ["es2024.string", "lib.es2024.string.d.ts"], - ["esnext.array", "lib.es2023.array.d.ts"], - ["esnext.collection", "lib.esnext.collection.d.ts"], - ["esnext.symbol", "lib.es2019.symbol.d.ts"], - ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], - ["esnext.intl", "lib.esnext.intl.d.ts"], - ["esnext.disposable", "lib.esnext.disposable.d.ts"], - ["esnext.bigint", "lib.es2020.bigint.d.ts"], - ["esnext.string", "lib.es2022.string.d.ts"], - ["esnext.promise", "lib.es2024.promise.d.ts"], - ["esnext.weakref", "lib.es2021.weakref.d.ts"], - ["esnext.decorators", "lib.esnext.decorators.d.ts"], - ["esnext.object", "lib.es2024.object.d.ts"], - ["esnext.array", "lib.esnext.array.d.ts"], - ["esnext.regexp", "lib.es2024.regexp.d.ts"], - ["esnext.string", "lib.es2024.string.d.ts"], - ["esnext.iterator", "lib.esnext.iterator.d.ts"], - ["esnext.promise", "lib.esnext.promise.d.ts"], - ["esnext.float16", "lib.esnext.float16.d.ts"], - ["decorators", "lib.decorators.d.ts"], - ["decorators.legacy", "lib.decorators.legacy.d.ts"] -]; -var libs = libEntries.map((entry) => entry[0]); -var libMap = new Map(libEntries); -var optionsForWatch = [ - { - name: "watchFile", - type: new Map(Object.entries({ - fixedpollinginterval: 0 /* FixedPollingInterval */, - prioritypollinginterval: 1 /* PriorityPollingInterval */, - dynamicprioritypolling: 2 /* DynamicPriorityPolling */, - fixedchunksizepolling: 3 /* FixedChunkSizePolling */, - usefsevents: 4 /* UseFsEvents */, - usefseventsonparentdirectory: 5 /* UseFsEventsOnParentDirectory */ - })), - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Specify_how_the_TypeScript_watch_mode_works, - defaultValueDescription: 4 /* UseFsEvents */ - }, - { - name: "watchDirectory", - type: new Map(Object.entries({ - usefsevents: 0 /* UseFsEvents */, - fixedpollinginterval: 1 /* FixedPollingInterval */, - dynamicprioritypolling: 2 /* DynamicPriorityPolling */, - fixedchunksizepolling: 3 /* FixedChunkSizePolling */ - })), - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality, - defaultValueDescription: 0 /* UseFsEvents */ - }, - { - name: "fallbackPolling", - type: new Map(Object.entries({ - fixedinterval: 0 /* FixedInterval */, - priorityinterval: 1 /* PriorityInterval */, - dynamicpriority: 2 /* DynamicPriority */, - fixedchunksize: 3 /* FixedChunkSize */ - })), - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers, - defaultValueDescription: 1 /* PriorityInterval */ - }, - { - name: "synchronousWatchDirectory", - type: "boolean", - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively, - defaultValueDescription: false - }, - { - name: "excludeDirectories", - type: "list", - element: { - name: "excludeDirectory", - type: "string", - isFilePath: true, - extraValidation: specToDiagnostic - }, - allowConfigDirTemplateSubstitution: true, - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Remove_a_list_of_directories_from_the_watch_process - }, - { - name: "excludeFiles", - type: "list", - element: { - name: "excludeFile", - type: "string", - isFilePath: true, - extraValidation: specToDiagnostic - }, - allowConfigDirTemplateSubstitution: true, - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing - } -]; -var commonOptionsWithBuild = [ - { - name: "help", - shortName: "h", - type: "boolean", - showInSimplifiedHelpView: true, - isCommandLineOnly: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Print_this_message, - defaultValueDescription: false - }, - { - name: "help", - shortName: "?", - type: "boolean", - isCommandLineOnly: true, - category: Diagnostics.Command_line_Options, - defaultValueDescription: false - }, - { - name: "watch", - shortName: "w", - type: "boolean", - showInSimplifiedHelpView: true, - isCommandLineOnly: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Watch_input_files, - defaultValueDescription: false - }, - { - name: "preserveWatchOutput", - type: "boolean", - showInSimplifiedHelpView: false, - category: Diagnostics.Output_Formatting, - description: Diagnostics.Disable_wiping_the_console_in_watch_mode, - defaultValueDescription: false - }, - { - name: "listFiles", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Print_all_of_the_files_read_during_the_compilation, - defaultValueDescription: false - }, - { - name: "explainFiles", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included, - defaultValueDescription: false - }, - { - name: "listEmittedFiles", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Print_the_names_of_emitted_files_after_a_compilation, - defaultValueDescription: false - }, - { - name: "pretty", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Output_Formatting, - description: Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read, - defaultValueDescription: true - }, - { - name: "traceResolution", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Log_paths_used_during_the_moduleResolution_process, - defaultValueDescription: false - }, - { - name: "diagnostics", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Output_compiler_performance_information_after_building, - defaultValueDescription: false - }, - { - name: "extendedDiagnostics", - type: "boolean", - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Output_more_detailed_compiler_performance_information_after_building, - defaultValueDescription: false - }, - { - name: "generateCpuProfile", - type: "string", - isFilePath: true, - paramType: Diagnostics.FILE_OR_DIRECTORY, - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging, - defaultValueDescription: "profile.cpuprofile" - }, - { - name: "generateTrace", - type: "string", - isFilePath: true, - paramType: Diagnostics.DIRECTORY, - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Generates_an_event_trace_and_a_list_of_types - }, - { - name: "incremental", - shortName: "i", - type: "boolean", - category: Diagnostics.Projects, - description: Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects, - transpileOptionValue: void 0, - defaultValueDescription: Diagnostics.false_unless_composite_is_set - }, - { - name: "declaration", - shortName: "d", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - transpileOptionValue: void 0, - description: Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project, - defaultValueDescription: Diagnostics.false_unless_composite_is_set - }, - { - name: "declarationMap", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - defaultValueDescription: false, - description: Diagnostics.Create_sourcemaps_for_d_ts_files - }, - { - name: "emitDeclarationOnly", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - description: Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files, - transpileOptionValue: void 0, - defaultValueDescription: false - }, - { - name: "sourceMap", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - defaultValueDescription: false, - description: Diagnostics.Create_source_map_files_for_emitted_JavaScript_files - }, - { - name: "inlineSourceMap", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript, - defaultValueDescription: false - }, - { - name: "noCheck", - type: "boolean", - showInSimplifiedHelpView: false, - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported, - transpileOptionValue: true, - defaultValueDescription: false - // Not setting affectsSemanticDiagnostics or affectsBuildInfo because we dont want all diagnostics to go away, its handled in builder - }, - { - name: "noEmit", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - description: Diagnostics.Disable_emitting_files_from_a_compilation, - transpileOptionValue: void 0, - defaultValueDescription: false - }, - { - name: "assumeChangesOnlyAffectDirectDependencies", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Watch_and_Build_Modes, - description: Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it, - defaultValueDescription: false - }, - { - name: "locale", - type: "string", - category: Diagnostics.Command_line_Options, - isCommandLineOnly: true, - description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit, - defaultValueDescription: Diagnostics.Platform_specific - } -]; -var targetOptionDeclaration = { - name: "target", - shortName: "t", - type: new Map(Object.entries({ - es3: 0 /* ES3 */, - es5: 1 /* ES5 */, - es6: 2 /* ES2015 */, - es2015: 2 /* ES2015 */, - es2016: 3 /* ES2016 */, - es2017: 4 /* ES2017 */, - es2018: 5 /* ES2018 */, - es2019: 6 /* ES2019 */, - es2020: 7 /* ES2020 */, - es2021: 8 /* ES2021 */, - es2022: 9 /* ES2022 */, - es2023: 10 /* ES2023 */, - es2024: 11 /* ES2024 */, - esnext: 99 /* ESNext */ - })), - affectsSourceFile: true, - affectsModuleResolution: true, - affectsEmit: true, - affectsBuildInfo: true, - deprecatedKeys: /* @__PURE__ */ new Set(["es3"]), - paramType: Diagnostics.VERSION, - showInSimplifiedHelpView: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations, - defaultValueDescription: 1 /* ES5 */ -}; -var moduleOptionDeclaration = { - name: "module", - shortName: "m", - type: new Map(Object.entries({ - none: 0 /* None */, - commonjs: 1 /* CommonJS */, - amd: 2 /* AMD */, - system: 4 /* System */, - umd: 3 /* UMD */, - es6: 5 /* ES2015 */, - es2015: 5 /* ES2015 */, - es2020: 6 /* ES2020 */, - es2022: 7 /* ES2022 */, - esnext: 99 /* ESNext */, - node16: 100 /* Node16 */, - node18: 101 /* Node18 */, - nodenext: 199 /* NodeNext */, - preserve: 200 /* Preserve */ - })), - affectsSourceFile: true, - affectsModuleResolution: true, - affectsEmit: true, - affectsBuildInfo: true, - paramType: Diagnostics.KIND, - showInSimplifiedHelpView: true, - category: Diagnostics.Modules, - description: Diagnostics.Specify_what_module_code_is_generated, - defaultValueDescription: void 0 -}; -var commandOptionsWithoutBuild = [ - // CommandLine only options - { - name: "all", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Show_all_compiler_options, - defaultValueDescription: false - }, - { - name: "version", - shortName: "v", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Print_the_compiler_s_version, - defaultValueDescription: false - }, - { - name: "init", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file, - defaultValueDescription: false - }, - { - name: "project", - shortName: "p", - type: "string", - isFilePath: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - paramType: Diagnostics.FILE_OR_DIRECTORY, - description: Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json - }, - { - name: "showConfig", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - isCommandLineOnly: true, - description: Diagnostics.Print_the_final_configuration_instead_of_building, - defaultValueDescription: false - }, - { - name: "listFilesOnly", - type: "boolean", - category: Diagnostics.Command_line_Options, - isCommandLineOnly: true, - description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing, - defaultValueDescription: false - }, - // Basic - targetOptionDeclaration, - moduleOptionDeclaration, - { - name: "lib", - type: "list", - element: { - name: "lib", - type: libMap, - defaultValueDescription: void 0 - }, - affectsProgramStructure: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment, - transpileOptionValue: void 0 - }, - { - name: "allowJs", - type: "boolean", - allowJsFlag: true, - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.JavaScript_Support, - description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files, - defaultValueDescription: false - }, - { - name: "checkJs", - type: "boolean", - affectsModuleResolution: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.JavaScript_Support, - description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, - defaultValueDescription: false - }, - { - name: "jsx", - type: jsxOptionMap, - affectsSourceFile: true, - affectsEmit: true, - affectsBuildInfo: true, - affectsModuleResolution: true, - // The checker emits an error when it sees JSX but this option is not set in compilerOptions. - // This is effectively a semantic error, so mark this option as affecting semantic diagnostics - // so we know to refresh errors when this option is changed. - affectsSemanticDiagnostics: true, - paramType: Diagnostics.KIND, - showInSimplifiedHelpView: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_what_JSX_code_is_generated, - defaultValueDescription: void 0 - }, - { - name: "outFile", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - affectsDeclarationPath: true, - isFilePath: true, - paramType: Diagnostics.FILE, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - description: Diagnostics.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, - transpileOptionValue: void 0 - }, - { - name: "outDir", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - affectsDeclarationPath: true, - isFilePath: true, - paramType: Diagnostics.DIRECTORY, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - description: Diagnostics.Specify_an_output_folder_for_all_emitted_files - }, - { - name: "rootDir", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - affectsDeclarationPath: true, - isFilePath: true, - paramType: Diagnostics.LOCATION, - category: Diagnostics.Modules, - description: Diagnostics.Specify_the_root_folder_within_your_source_files, - defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files - }, - { - name: "composite", - type: "boolean", - // Not setting affectsEmit because we calculate this flag might not affect full emit - affectsBuildInfo: true, - isTSConfigOnly: true, - category: Diagnostics.Projects, - transpileOptionValue: void 0, - defaultValueDescription: false, - description: Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references - }, - { - name: "tsBuildInfoFile", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - isFilePath: true, - paramType: Diagnostics.FILE, - category: Diagnostics.Projects, - transpileOptionValue: void 0, - defaultValueDescription: ".tsbuildinfo", - description: Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file - }, - { - name: "removeComments", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - defaultValueDescription: false, - description: Diagnostics.Disable_emitting_comments - }, - { - name: "importHelpers", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - affectsSourceFile: true, - category: Diagnostics.Emit, - description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file, - defaultValueDescription: false - }, - { - name: "importsNotUsedAsValues", - type: new Map(Object.entries({ - remove: 0 /* Remove */, - preserve: 1 /* Preserve */, - error: 2 /* Error */ - })), - affectsEmit: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types, - defaultValueDescription: 0 /* Remove */ - }, - { - name: "downlevelIteration", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration, - defaultValueDescription: false - }, - { - name: "isolatedModules", - type: "boolean", - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports, - transpileOptionValue: true, - defaultValueDescription: false - }, - { - name: "verbatimModuleSyntax", - type: "boolean", - affectsEmit: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Interop_Constraints, - description: Diagnostics.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, - defaultValueDescription: false - }, - { - name: "isolatedDeclarations", - type: "boolean", - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files, - defaultValueDescription: false, - affectsBuildInfo: true, - affectsSemanticDiagnostics: true - }, - { - name: "erasableSyntaxOnly", - type: "boolean", - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript, - defaultValueDescription: false, - affectsBuildInfo: true, - affectsSemanticDiagnostics: true - }, - { - name: "libReplacement", - type: "boolean", - affectsProgramStructure: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Enable_lib_replacement, - defaultValueDescription: true - }, - // Strict Type Checks - { - name: "strict", - type: "boolean", - // Though this affects semantic diagnostics, affectsSemanticDiagnostics is not set here - // The value of each strictFlag depends on own strictFlag value or this and never accessed directly. - // But we need to store `strict` in builf info, even though it won't be examined directly, so that the - // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_all_strict_type_checking_options, - defaultValueDescription: false - }, - { - name: "noImplicitAny", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "strictNullChecks", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.When_type_checking_take_into_account_null_and_undefined, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "strictFunctionTypes", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "strictBindCallApply", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "strictPropertyInitialization", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "strictBuiltinIteratorReturn", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "noImplicitThis", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "useUnknownInCatchVariables", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - { - name: "alwaysStrict", - type: "boolean", - affectsSourceFile: true, - affectsEmit: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Ensure_use_strict_is_always_emitted, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, - // Additional Checks - { - name: "noUnusedLocals", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read, - defaultValueDescription: false - }, - { - name: "noUnusedParameters", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read, - defaultValueDescription: false - }, - { - name: "exactOptionalPropertyTypes", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined, - defaultValueDescription: false - }, - { - name: "noImplicitReturns", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function, - defaultValueDescription: false - }, - { - name: "noFallthroughCasesInSwitch", - type: "boolean", - affectsBindDiagnostics: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements, - defaultValueDescription: false - }, - { - name: "noUncheckedIndexedAccess", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index, - defaultValueDescription: false - }, - { - name: "noImplicitOverride", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier, - defaultValueDescription: false - }, - { - name: "noPropertyAccessFromIndexSignature", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - showInSimplifiedHelpView: false, - category: Diagnostics.Type_Checking, - description: Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type, - defaultValueDescription: false - }, - // Module Resolution - { - name: "moduleResolution", - type: new Map(Object.entries({ - // N.B. The first entry specifies the value shown in `tsc --init` - node10: 2 /* Node10 */, - node: 2 /* Node10 */, - classic: 1 /* Classic */, - node16: 3 /* Node16 */, - nodenext: 99 /* NodeNext */, - bundler: 100 /* Bundler */ - })), - deprecatedKeys: /* @__PURE__ */ new Set(["node"]), - affectsSourceFile: true, - affectsModuleResolution: true, - paramType: Diagnostics.STRATEGY, - category: Diagnostics.Modules, - description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier, - defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node - }, - { - name: "baseUrl", - type: "string", - affectsModuleResolution: true, - isFilePath: true, - category: Diagnostics.Modules, - description: Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names - }, - { - // this option can only be specified in tsconfig.json - // use type = object to copy the value as-is - name: "paths", - type: "object", - affectsModuleResolution: true, - allowConfigDirTemplateSubstitution: true, - isTSConfigOnly: true, - category: Diagnostics.Modules, - description: Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations, - transpileOptionValue: void 0 - }, - { - // this option can only be specified in tsconfig.json - // use type = object to copy the value as-is - name: "rootDirs", - type: "list", - isTSConfigOnly: true, - element: { - name: "rootDirs", - type: "string", - isFilePath: true - }, - affectsModuleResolution: true, - allowConfigDirTemplateSubstitution: true, - category: Diagnostics.Modules, - description: Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules, - transpileOptionValue: void 0, - defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files - }, - { - name: "typeRoots", - type: "list", - element: { - name: "typeRoots", - type: "string", - isFilePath: true - }, - affectsModuleResolution: true, - allowConfigDirTemplateSubstitution: true, - category: Diagnostics.Modules, - description: Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types - }, - { - name: "types", - type: "list", - element: { - name: "types", - type: "string" - }, - affectsProgramStructure: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Modules, - description: Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file, - transpileOptionValue: void 0 - }, - { - name: "allowSyntheticDefaultImports", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export, - defaultValueDescription: Diagnostics.module_system_or_esModuleInterop - }, - { - name: "esModuleInterop", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsEmit: true, - affectsBuildInfo: true, - showInSimplifiedHelpView: true, - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility, - defaultValueDescription: false - }, - { - name: "preserveSymlinks", - type: "boolean", - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node, - defaultValueDescription: false - }, - { - name: "allowUmdGlobalAccess", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Allow_accessing_UMD_globals_from_modules, - defaultValueDescription: false - }, - { - name: "moduleSuffixes", - type: "list", - element: { - name: "suffix", - type: "string" - }, - listPreserveFalsyValues: true, - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module - }, - { - name: "allowImportingTsExtensions", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set, - defaultValueDescription: false, - transpileOptionValue: void 0 - }, - { - name: "rewriteRelativeImportExtensions", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files, - defaultValueDescription: false - }, - { - name: "resolvePackageJsonExports", - type: "boolean", - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.Use_the_package_json_exports_field_when_resolving_package_imports, - defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false - }, - { - name: "resolvePackageJsonImports", - type: "boolean", - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.Use_the_package_json_imports_field_when_resolving_imports, - defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false - }, - { - name: "customConditions", - type: "list", - element: { - name: "condition", - type: "string" - }, - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports - }, - { - name: "noUncheckedSideEffectImports", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Check_side_effect_imports, - defaultValueDescription: false - }, - // Source Maps - { - name: "sourceRoot", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - paramType: Diagnostics.LOCATION, - category: Diagnostics.Emit, - description: Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code - }, - { - name: "mapRoot", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - paramType: Diagnostics.LOCATION, - category: Diagnostics.Emit, - description: Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations - }, - { - name: "inlineSources", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript, - defaultValueDescription: false - }, - // Experimental - { - name: "experimentalDecorators", - type: "boolean", - affectsEmit: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Enable_experimental_support_for_legacy_experimental_decorators, - defaultValueDescription: false - }, - { - name: "emitDecoratorMetadata", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files, - defaultValueDescription: false - }, - // Advanced - { - name: "jsxFactory", - type: "string", - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h, - defaultValueDescription: "`React.createElement`" - }, - { - name: "jsxFragmentFactory", - type: "string", - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment, - defaultValueDescription: "React.Fragment" - }, - { - name: "jsxImportSource", - type: "string", - affectsSemanticDiagnostics: true, - affectsEmit: true, - affectsBuildInfo: true, - affectsModuleResolution: true, - affectsSourceFile: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk, - defaultValueDescription: "react" - }, - { - name: "resolveJsonModule", - type: "boolean", - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.Enable_importing_json_files, - defaultValueDescription: false - }, - { - name: "allowArbitraryExtensions", - type: "boolean", - affectsProgramStructure: true, - category: Diagnostics.Modules, - description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present, - defaultValueDescription: false - }, - { - name: "out", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - affectsDeclarationPath: true, - isFilePath: false, - // This is intentionally broken to support compatibility with existing tsconfig files - // for correct behaviour, please use outFile - category: Diagnostics.Backwards_Compatibility, - paramType: Diagnostics.FILE, - transpileOptionValue: void 0, - description: Diagnostics.Deprecated_setting_Use_outFile_instead - }, - { - name: "reactNamespace", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit, - defaultValueDescription: "`React`" - }, - { - name: "skipDefaultLibCheck", - type: "boolean", - // We need to store these to determine whether `lib` files need to be rechecked - affectsBuildInfo: true, - category: Diagnostics.Completeness, - description: Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript, - defaultValueDescription: false - }, - { - name: "charset", - type: "string", - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files, - defaultValueDescription: "utf8" - }, - { - name: "emitBOM", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files, - defaultValueDescription: false - }, - { - name: "newLine", - type: new Map(Object.entries({ - crlf: 0 /* CarriageReturnLineFeed */, - lf: 1 /* LineFeed */ - })), - affectsEmit: true, - affectsBuildInfo: true, - paramType: Diagnostics.NEWLINE, - category: Diagnostics.Emit, - description: Diagnostics.Set_the_newline_character_for_emitting_files, - defaultValueDescription: "lf" - }, - { - name: "noErrorTruncation", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Output_Formatting, - description: Diagnostics.Disable_truncating_types_in_error_messages, - defaultValueDescription: false - }, - { - name: "noLib", - type: "boolean", - category: Diagnostics.Language_and_Environment, - affectsProgramStructure: true, - description: Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts, - // We are not returning a sourceFile for lib file when asked by the program, - // so pass --noLib to avoid reporting a file not found error. - transpileOptionValue: true, - defaultValueDescription: false - }, - { - name: "noResolve", - type: "boolean", - affectsModuleResolution: true, - category: Diagnostics.Modules, - description: Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project, - // We are not doing a full typecheck, we are not resolving the whole context, - // so pass --noResolve to avoid reporting missing file errors. - transpileOptionValue: true, - defaultValueDescription: false - }, - { - name: "stripInternal", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments, - defaultValueDescription: false - }, - { - name: "disableSizeLimit", - type: "boolean", - affectsProgramStructure: true, - category: Diagnostics.Editor_Support, - description: Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server, - defaultValueDescription: false - }, - { - name: "disableSourceOfProjectReferenceRedirect", - type: "boolean", - isTSConfigOnly: true, - category: Diagnostics.Projects, - description: Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects, - defaultValueDescription: false - }, - { - name: "disableSolutionSearching", - type: "boolean", - isTSConfigOnly: true, - category: Diagnostics.Projects, - description: Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing, - defaultValueDescription: false - }, - { - name: "disableReferencedProjectLoad", - type: "boolean", - isTSConfigOnly: true, - category: Diagnostics.Projects, - description: Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript, - defaultValueDescription: false - }, - { - name: "noImplicitUseStrict", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files, - defaultValueDescription: false - }, - { - name: "noEmitHelpers", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output, - defaultValueDescription: false - }, - { - name: "noEmitOnError", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - transpileOptionValue: void 0, - description: Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported, - defaultValueDescription: false - }, - { - name: "preserveConstEnums", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Emit, - description: Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code, - defaultValueDescription: false - }, - { - name: "declarationDir", - type: "string", - affectsEmit: true, - affectsBuildInfo: true, - affectsDeclarationPath: true, - isFilePath: true, - paramType: Diagnostics.DIRECTORY, - category: Diagnostics.Emit, - transpileOptionValue: void 0, - description: Diagnostics.Specify_the_output_directory_for_generated_declaration_files - }, - { - name: "skipLibCheck", - type: "boolean", - // We need to store these to determine whether `lib` files need to be rechecked - affectsBuildInfo: true, - category: Diagnostics.Completeness, - description: Diagnostics.Skip_type_checking_all_d_ts_files, - defaultValueDescription: false - }, - { - name: "allowUnusedLabels", - type: "boolean", - affectsBindDiagnostics: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Disable_error_reporting_for_unused_labels, - defaultValueDescription: void 0 - }, - { - name: "allowUnreachableCode", - type: "boolean", - affectsBindDiagnostics: true, - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Disable_error_reporting_for_unreachable_code, - defaultValueDescription: void 0 - }, - { - name: "suppressExcessPropertyErrors", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals, - defaultValueDescription: false - }, - { - name: "suppressImplicitAnyIndexErrors", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures, - defaultValueDescription: false - }, - { - name: "forceConsistentCasingInFileNames", - type: "boolean", - affectsModuleResolution: true, - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Ensure_that_casing_is_correct_in_imports, - defaultValueDescription: true - }, - { - name: "maxNodeModuleJsDepth", - type: "number", - affectsModuleResolution: true, - category: Diagnostics.JavaScript_Support, - description: Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs, - defaultValueDescription: 0 - }, - { - name: "noStrictGenericChecks", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types, - defaultValueDescription: false - }, - { - name: "useDefineForClassFields", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields, - defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext - }, - { - name: "preserveValueImports", - type: "boolean", - affectsEmit: true, - affectsBuildInfo: true, - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed, - defaultValueDescription: false - }, - { - name: "keyofStringsOnly", - type: "boolean", - category: Diagnostics.Backwards_Compatibility, - description: Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option, - defaultValueDescription: false - }, - { - // A list of plugins to load in the language service - name: "plugins", - type: "list", - isTSConfigOnly: true, - element: { - name: "plugin", - type: "object" - }, - description: Diagnostics.Specify_a_list_of_language_service_plugins_to_include, - category: Diagnostics.Editor_Support - }, - { - name: "moduleDetection", - type: new Map(Object.entries({ - auto: 2 /* Auto */, - legacy: 1 /* Legacy */, - force: 3 /* Force */ - })), - affectsSourceFile: true, - affectsModuleResolution: true, - description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, - category: Diagnostics.Language_and_Environment, - defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules - }, - { - name: "ignoreDeprecations", - type: "string", - defaultValueDescription: void 0 - } -]; -var optionDeclarations = [ - ...commonOptionsWithBuild, - ...commandOptionsWithoutBuild -]; -var semanticDiagnosticsOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsSemanticDiagnostics); -var affectsEmitOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsEmit); -var affectsDeclarationPathOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsDeclarationPath); -var moduleResolutionOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsModuleResolution); -var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsBindDiagnostics); -var optionsAffectingProgramStructure = optionDeclarations.filter((option) => !!option.affectsProgramStructure); -var transpileOptionValueCompilerOptions = optionDeclarations.filter((option) => hasProperty(option, "transpileOptionValue")); -var configDirTemplateSubstitutionOptions = optionDeclarations.filter( - (option) => option.allowConfigDirTemplateSubstitution || !option.isCommandLineOnly && option.isFilePath -); -var configDirTemplateSubstitutionWatchOptions = optionsForWatch.filter( - (option) => option.allowConfigDirTemplateSubstitution || !option.isCommandLineOnly && option.isFilePath -); -var commandLineOptionOfCustomType = optionDeclarations.filter(isCommandLineOptionOfCustomType); -function isCommandLineOptionOfCustomType(option) { - return !isString(option.type); -} -var tscBuildOption = { - name: "build", - type: "boolean", - shortName: "b", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, - defaultValueDescription: false -}; -var optionsForBuild = [ - tscBuildOption, - { - name: "verbose", - shortName: "v", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Enable_verbose_logging, - type: "boolean", - defaultValueDescription: false - }, - { - name: "dry", - shortName: "d", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean, - type: "boolean", - defaultValueDescription: false - }, - { - name: "force", - shortName: "f", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date, - type: "boolean", - defaultValueDescription: false - }, - { - name: "clean", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Delete_the_outputs_of_all_projects, - type: "boolean", - defaultValueDescription: false - }, - { - name: "stopBuildOnErrors", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Skip_building_downstream_projects_on_error_in_upstream_project, - type: "boolean", - defaultValueDescription: false - } -]; -var buildOpts = [ - ...commonOptionsWithBuild, - ...optionsForBuild -]; -var typeAcquisitionDeclarations = [ - { - name: "enable", - type: "boolean", - defaultValueDescription: false - }, - { - name: "include", - type: "list", - element: { - name: "include", - type: "string" - } - }, - { - name: "exclude", - type: "list", - element: { - name: "exclude", - type: "string" - } - }, - { - name: "disableFilenameBasedTypeAcquisition", - type: "boolean", - defaultValueDescription: false - } -]; -function createOptionNameMap(optionDeclarations2) { - const optionsNameMap = /* @__PURE__ */ new Map(); - const shortOptionNames = /* @__PURE__ */ new Map(); - forEach(optionDeclarations2, (option) => { - optionsNameMap.set(option.name.toLowerCase(), option); - if (option.shortName) { - shortOptionNames.set(option.shortName, option.name); - } - }); - return { optionsNameMap, shortOptionNames }; -} -var optionsNameMapCache; -function getOptionsNameMap() { - return optionsNameMapCache || (optionsNameMapCache = createOptionNameMap(optionDeclarations)); -} -var compilerOptionsAlternateMode = { - diagnostic: Diagnostics.Compiler_option_0_may_only_be_used_with_build, - getOptionsNameMap: getBuildOptionsNameMap -}; -var defaultInitCompilerOptions = { - module: 1 /* CommonJS */, - target: 3 /* ES2016 */, - strict: true, - esModuleInterop: true, - forceConsistentCasingInFileNames: true, - skipLibCheck: true -}; -function createDiagnosticForInvalidCustomType(opt, createDiagnostic) { - const namesOfType = arrayFrom(opt.type.keys()); - const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(", "); - return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames); -} -function parseCustomTypeOption(opt, value, errors) { - return convertJsonOptionOfCustomType(opt, (value ?? "").trim(), errors); -} -function parseListTypeOption(opt, value = "", errors) { - value = value.trim(); - if (startsWith(value, "-")) { - return void 0; - } - if (opt.type === "listOrElement" && !value.includes(",")) { - return validateJsonOptionValue(opt, value, errors); - } - if (value === "") { - return []; - } - const values = value.split(","); - switch (opt.element.type) { - case "number": - return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors)); - case "string": - return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors)); - case "boolean": - case "object": - return Debug.fail(`List of ${opt.element.type} is not yet supported.`); - default: - return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors)); - } -} -function getOptionName(option) { - return option.name; -} -function createUnknownOptionError(unknownOption, diagnostics, unknownOptionErrorText, node, sourceFile) { - var _a; - const otherOption = (_a = diagnostics.alternateMode) == null ? void 0 : _a.getOptionsNameMap().optionsNameMap.get(unknownOption.toLowerCase()); - if (otherOption) { - return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic( - sourceFile, - node, - otherOption !== tscBuildOption ? diagnostics.alternateMode.diagnostic : Diagnostics.Option_build_must_be_the_first_command_line_argument, - unknownOption - ); - } - const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName); - return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption); -} -function parseCommandLineWorker(diagnostics, commandLine, readFile) { - const options = {}; - let watchOptions; - const fileNames = []; - const errors = []; - parseStrings(commandLine); - return { - options, - watchOptions, - fileNames, - errors - }; - function parseStrings(args) { - let i = 0; - while (i < args.length) { - const s = args[i]; - i++; - if (s.charCodeAt(0) === 64 /* at */) { - parseResponseFile(s.slice(1)); - } else if (s.charCodeAt(0) === 45 /* minus */) { - const inputOptionName = s.slice(s.charCodeAt(1) === 45 /* minus */ ? 2 : 1); - const opt = getOptionDeclarationFromName( - diagnostics.getOptionsNameMap, - inputOptionName, - /*allowShort*/ - true - ); - if (opt) { - i = parseOptionValue(args, i, diagnostics, opt, options, errors); - } else { - const watchOpt = getOptionDeclarationFromName( - watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, - inputOptionName, - /*allowShort*/ - true - ); - if (watchOpt) { - i = parseOptionValue(args, i, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors); - } else { - errors.push(createUnknownOptionError(inputOptionName, diagnostics, s)); - } - } - } else { - fileNames.push(s); - } - } - } - function parseResponseFile(fileName) { - const text = tryReadFile(fileName, readFile || ((fileName2) => sys.readFile(fileName2))); - if (!isString(text)) { - errors.push(text); - return; - } - const args = []; - let pos = 0; - while (true) { - while (pos < text.length && text.charCodeAt(pos) <= 32 /* space */) pos++; - if (pos >= text.length) break; - const start = pos; - if (text.charCodeAt(start) === 34 /* doubleQuote */) { - pos++; - while (pos < text.length && text.charCodeAt(pos) !== 34 /* doubleQuote */) pos++; - if (pos < text.length) { - args.push(text.substring(start + 1, pos)); - pos++; - } else { - errors.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName)); - } - } else { - while (text.charCodeAt(pos) > 32 /* space */) pos++; - args.push(text.substring(start, pos)); - } - } - parseStrings(args); - } -} -function parseOptionValue(args, i, diagnostics, opt, options, errors) { - if (opt.isTSConfigOnly) { - const optValue = args[i]; - if (optValue === "null") { - options[opt.name] = void 0; - i++; - } else if (opt.type === "boolean") { - if (optValue === "false") { - options[opt.name] = validateJsonOptionValue( - opt, - /*value*/ - false, - errors - ); - i++; - } else { - if (optValue === "true") i++; - errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name)); - } - } else { - errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name)); - if (optValue && !startsWith(optValue, "-")) i++; - } - } else { - if (!args[i] && opt.type !== "boolean") { - errors.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt))); - } - if (args[i] !== "null") { - switch (opt.type) { - case "number": - options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i]), errors); - i++; - break; - case "boolean": - const optValue = args[i]; - options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors); - if (optValue === "false" || optValue === "true") { - i++; - } - break; - case "string": - options[opt.name] = validateJsonOptionValue(opt, args[i] || "", errors); - i++; - break; - case "list": - const result = parseListTypeOption(opt, args[i], errors); - options[opt.name] = result || []; - if (result) { - i++; - } - break; - case "listOrElement": - Debug.fail("listOrElement not supported here"); - break; - // If not a primitive, the possible types are specified in what is effectively a map of options. - default: - options[opt.name] = parseCustomTypeOption(opt, args[i], errors); - i++; - break; - } - } else { - options[opt.name] = void 0; - i++; - } - } - return i; -} -var compilerOptionsDidYouMeanDiagnostics = { - alternateMode: compilerOptionsAlternateMode, - getOptionsNameMap, - optionDeclarations, - unknownOptionDiagnostic: Diagnostics.Unknown_compiler_option_0, - unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1, - optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument -}; -function parseCommandLine(commandLine, readFile) { - return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile); -} -function getOptionDeclarationFromName(getOptionNameMap, optionName, allowShort = false) { - optionName = optionName.toLowerCase(); - const { optionsNameMap, shortOptionNames } = getOptionNameMap(); - if (allowShort) { - const short = shortOptionNames.get(optionName); - if (short !== void 0) { - optionName = short; - } - } - return optionsNameMap.get(optionName); -} -var buildOptionsNameMapCache; -function getBuildOptionsNameMap() { - return buildOptionsNameMapCache || (buildOptionsNameMapCache = createOptionNameMap(buildOpts)); -} -var buildOptionsAlternateMode = { - diagnostic: Diagnostics.Compiler_option_0_may_not_be_used_with_build, - getOptionsNameMap -}; -var buildOptionsDidYouMeanDiagnostics = { - alternateMode: buildOptionsAlternateMode, - getOptionsNameMap: getBuildOptionsNameMap, - optionDeclarations: buildOpts, - unknownOptionDiagnostic: Diagnostics.Unknown_build_option_0, - unknownDidYouMeanDiagnostic: Diagnostics.Unknown_build_option_0_Did_you_mean_1, - optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1 -}; -function parseBuildCommand(commandLine) { - const { options, watchOptions, fileNames: projects, errors } = parseCommandLineWorker( - buildOptionsDidYouMeanDiagnostics, - commandLine - ); - const buildOptions = options; - if (projects.length === 0) { - projects.push("."); - } - if (buildOptions.clean && buildOptions.force) { - errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force")); - } - if (buildOptions.clean && buildOptions.verbose) { - errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose")); - } - if (buildOptions.clean && buildOptions.watch) { - errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch")); - } - if (buildOptions.watch && buildOptions.dry) { - errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry")); - } - return { buildOptions, watchOptions, projects, errors }; -} -function getDiagnosticText(message, ...args) { - return cast(createCompilerDiagnostic(message, ...args).messageText, isString); -} -function getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend, extraFileExtensions) { - const configFileText = tryReadFile(configFileName, (fileName) => host.readFile(fileName)); - if (!isString(configFileText)) { - host.onUnRecoverableConfigFileDiagnostic(configFileText); - return void 0; - } - const result = parseJsonText(configFileName, configFileText); - const cwd = host.getCurrentDirectory(); - result.path = toPath(configFileName, cwd, createGetCanonicalFileName(host.useCaseSensitiveFileNames)); - result.resolvedPath = result.path; - result.originalFileName = result.fileName; - return parseJsonSourceFileConfigFileContent( - result, - host, - getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd), - optionsToExtend, - getNormalizedAbsolutePath(configFileName, cwd), - /*resolutionStack*/ - void 0, - extraFileExtensions, - extendedConfigCache, - watchOptionsToExtend - ); -} -function parseConfigFileTextToJson(fileName, jsonText) { - const jsonSourceFile = parseJsonText(fileName, jsonText); - return { - config: convertConfigFileToObject( - jsonSourceFile, - jsonSourceFile.parseDiagnostics, - /*jsonConversionNotifier*/ - void 0 - ), - error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0 - }; -} -function readJsonConfigFile(fileName, readFile) { - const textOrDiagnostic = tryReadFile(fileName, readFile); - return isString(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] }; -} -function tryReadFile(fileName, readFile) { - let text; - try { - text = readFile(fileName); - } catch (e) { - return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message); - } - return text === void 0 ? createCompilerDiagnostic(Diagnostics.Cannot_read_file_0, fileName) : text; -} -function commandLineOptionsToMap(options) { - return arrayToMap(options, getOptionName); -} -var typeAcquisitionDidYouMeanDiagnostics = { - optionDeclarations: typeAcquisitionDeclarations, - unknownOptionDiagnostic: Diagnostics.Unknown_type_acquisition_option_0, - unknownDidYouMeanDiagnostic: Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1 -}; -var watchOptionsNameMapCache; -function getWatchOptionsNameMap() { - return watchOptionsNameMapCache || (watchOptionsNameMapCache = createOptionNameMap(optionsForWatch)); -} -var watchOptionsDidYouMeanDiagnostics = { - getOptionsNameMap: getWatchOptionsNameMap, - optionDeclarations: optionsForWatch, - unknownOptionDiagnostic: Diagnostics.Unknown_watch_option_0, - unknownDidYouMeanDiagnostic: Diagnostics.Unknown_watch_option_0_Did_you_mean_1, - optionTypeMismatchDiagnostic: Diagnostics.Watch_option_0_requires_a_value_of_type_1 -}; -var commandLineCompilerOptionsMapCache; -function getCommandLineCompilerOptionsMap() { - return commandLineCompilerOptionsMapCache || (commandLineCompilerOptionsMapCache = commandLineOptionsToMap(optionDeclarations)); -} -var commandLineWatchOptionsMapCache; -function getCommandLineWatchOptionsMap() { - return commandLineWatchOptionsMapCache || (commandLineWatchOptionsMapCache = commandLineOptionsToMap(optionsForWatch)); -} -var commandLineTypeAcquisitionMapCache; -function getCommandLineTypeAcquisitionMap() { - return commandLineTypeAcquisitionMapCache || (commandLineTypeAcquisitionMapCache = commandLineOptionsToMap(typeAcquisitionDeclarations)); -} -var extendsOptionDeclaration = { - name: "extends", - type: "listOrElement", - element: { - name: "extends", - type: "string" - }, - category: Diagnostics.File_Management, - disallowNullOrUndefined: true -}; -var compilerOptionsDeclaration = { - name: "compilerOptions", - type: "object", - elementOptions: getCommandLineCompilerOptionsMap(), - extraKeyDiagnostics: compilerOptionsDidYouMeanDiagnostics -}; -var watchOptionsDeclaration = { - name: "watchOptions", - type: "object", - elementOptions: getCommandLineWatchOptionsMap(), - extraKeyDiagnostics: watchOptionsDidYouMeanDiagnostics -}; -var typeAcquisitionDeclaration = { - name: "typeAcquisition", - type: "object", - elementOptions: getCommandLineTypeAcquisitionMap(), - extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics -}; -var _tsconfigRootOptions; -function getTsconfigRootOptionsMap() { - if (_tsconfigRootOptions === void 0) { - _tsconfigRootOptions = { - name: void 0, - // should never be needed since this is root - type: "object", - elementOptions: commandLineOptionsToMap([ - compilerOptionsDeclaration, - watchOptionsDeclaration, - typeAcquisitionDeclaration, - extendsOptionDeclaration, - { - name: "references", - type: "list", - element: { - name: "references", - type: "object" - }, - category: Diagnostics.Projects - }, - { - name: "files", - type: "list", - element: { - name: "files", - type: "string" - }, - category: Diagnostics.File_Management - }, - { - name: "include", - type: "list", - element: { - name: "include", - type: "string" - }, - category: Diagnostics.File_Management, - defaultValueDescription: Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk - }, - { - name: "exclude", - type: "list", - element: { - name: "exclude", - type: "string" - }, - category: Diagnostics.File_Management, - defaultValueDescription: Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified - }, - compileOnSaveCommandLineOption - ]) - }; - } - return _tsconfigRootOptions; -} -function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { - var _a; - const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; - if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { - errors.push(createDiagnosticForNodeInSourceFile( - sourceFile, - rootExpression, - Diagnostics.The_root_value_of_a_0_file_must_be_an_object, - getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json" - )); - if (isArrayLiteralExpression(rootExpression)) { - const firstObject = find(rootExpression.elements, isObjectLiteralExpression); - if (firstObject) { - return convertToJson( - sourceFile, - firstObject, - errors, - /*returnValue*/ - true, - jsonConversionNotifier - ); - } - } - return {}; - } - return convertToJson( - sourceFile, - rootExpression, - errors, - /*returnValue*/ - true, - jsonConversionNotifier - ); -} -function convertToObject(sourceFile, errors) { - var _a; - return convertToJson( - sourceFile, - (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression, - errors, - /*returnValue*/ - true, - /*jsonConversionNotifier*/ - void 0 - ); -} -function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConversionNotifier) { - if (!rootExpression) { - return returnValue ? {} : void 0; - } - return convertPropertyValueToJson(rootExpression, jsonConversionNotifier == null ? void 0 : jsonConversionNotifier.rootOptions); - function convertObjectLiteralExpressionToJson(node, objectOption) { - var _a; - const result = returnValue ? {} : void 0; - for (const element of node.properties) { - if (element.kind !== 303 /* PropertyAssignment */) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); - continue; - } - if (element.questionToken) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); - } - if (!isDoubleQuotedString(element.name)) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected)); - } - const textOfKey = isComputedNonLiteralName(element.name) ? void 0 : getTextOfPropertyName(element.name); - const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey); - const option = keyText ? (_a = objectOption == null ? void 0 : objectOption.elementOptions) == null ? void 0 : _a.get(keyText) : void 0; - const value = convertPropertyValueToJson(element.initializer, option); - if (typeof keyText !== "undefined") { - if (returnValue) { - result[keyText] = value; - } - jsonConversionNotifier == null ? void 0 : jsonConversionNotifier.onPropertySet(keyText, value, element, objectOption, option); - } - } - return result; - } - function convertArrayLiteralExpressionToJson(elements, elementOption) { - if (!returnValue) { - elements.forEach((element) => convertPropertyValueToJson(element, elementOption)); - return void 0; - } - return filter(elements.map((element) => convertPropertyValueToJson(element, elementOption)), (v) => v !== void 0); - } - function convertPropertyValueToJson(valueExpression, option) { - switch (valueExpression.kind) { - case 112 /* TrueKeyword */: - return true; - case 97 /* FalseKeyword */: - return false; - case 106 /* NullKeyword */: - return null; - // eslint-disable-line no-restricted-syntax - case 11 /* StringLiteral */: - if (!isDoubleQuotedString(valueExpression)) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected)); - } - return valueExpression.text; - case 9 /* NumericLiteral */: - return Number(valueExpression.text); - case 224 /* PrefixUnaryExpression */: - if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { - break; - } - return -Number(valueExpression.operand.text); - case 210 /* ObjectLiteralExpression */: - const objectLiteralExpression = valueExpression; - return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); - case 209 /* ArrayLiteralExpression */: - return convertArrayLiteralExpressionToJson( - valueExpression.elements, - option && option.element - ); - } - if (option) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option))); - } else { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)); - } - return void 0; - } - function isDoubleQuotedString(node) { - return isStringLiteral(node) && isStringDoubleQuoted(node, sourceFile); - } -} -function getCompilerOptionValueTypeString(option) { - return option.type === "listOrElement" ? `${getCompilerOptionValueTypeString(option.element)} or Array` : option.type === "list" ? "Array" : isString(option.type) ? option.type : "string"; -} -function isCompilerOptionsValue(option, value) { - if (option) { - if (isNullOrUndefined(value)) return !option.disallowNullOrUndefined; - if (option.type === "list") { - return isArray(value); - } - if (option.type === "listOrElement") { - return isArray(value) || isCompilerOptionsValue(option.element, value); - } - const expectedType = isString(option.type) ? option.type : "string"; - return typeof value === expectedType; - } - return false; -} -function convertToTSConfig(configParseResult, configFileName, host) { - var _a, _b, _c; - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames); - const files = map( - filter( - configParseResult.fileNames, - !((_b = (_a = configParseResult.options.configFile) == null ? void 0 : _a.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs) ? returnTrue : matchesSpecs( - configFileName, - configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs, - configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs, - host - ) - ), - (f) => getRelativePathFromFile(getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName) - ); - const pathOptions = { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames }; - const optionMap = serializeCompilerOptions(configParseResult.options, pathOptions); - const watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions); - const config = { - compilerOptions: { - ...optionMapToObject(optionMap), - showConfig: void 0, - configFile: void 0, - configFilePath: void 0, - help: void 0, - init: void 0, - listFiles: void 0, - listEmittedFiles: void 0, - project: void 0, - build: void 0, - version: void 0 - }, - watchOptions: watchOptionMap && optionMapToObject(watchOptionMap), - references: map(configParseResult.projectReferences, (r) => ({ ...r, path: r.originalPath ? r.originalPath : "", originalPath: void 0 })), - files: length(files) ? files : void 0, - ...((_c = configParseResult.options.configFile) == null ? void 0 : _c.configFileSpecs) ? { - include: filterSameAsDefaultInclude(configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs), - exclude: configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs - } : {}, - compileOnSave: !!configParseResult.compileOnSave ? true : void 0 - }; - const providedKeys = new Set(optionMap.keys()); - const impliedCompilerOptions = {}; - for (const option in computedOptions) { - if (!providedKeys.has(option) && optionDependsOn(option, providedKeys)) { - const implied = computedOptions[option].computeValue(configParseResult.options); - const defaultValue = computedOptions[option].computeValue({}); - if (implied !== defaultValue) { - impliedCompilerOptions[option] = computedOptions[option].computeValue(configParseResult.options); - } - } - } - assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions))); - return config; -} -function optionDependsOn(option, dependsOn) { - const seen = /* @__PURE__ */ new Set(); - return optionDependsOnRecursive(option); - function optionDependsOnRecursive(option2) { - var _a; - if (addToSeen(seen, option2)) { - return some((_a = computedOptions[option2]) == null ? void 0 : _a.dependencies, (dep) => dependsOn.has(dep) || optionDependsOnRecursive(dep)); - } - return false; - } -} -function optionMapToObject(optionMap) { - return Object.fromEntries(optionMap); -} -function filterSameAsDefaultInclude(specs) { - if (!length(specs)) return void 0; - if (length(specs) !== 1) return specs; - if (specs[0] === defaultIncludeSpec) return void 0; - return specs; -} -function matchesSpecs(path, includeSpecs, excludeSpecs, host) { - if (!includeSpecs) return returnTrue; - const patterns = getFileMatcherPatterns(path, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory()); - const excludeRe = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames); - const includeRe = patterns.includeFilePattern && getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames); - if (includeRe) { - if (excludeRe) { - return (path2) => !(includeRe.test(path2) && !excludeRe.test(path2)); - } - return (path2) => !includeRe.test(path2); - } - if (excludeRe) { - return (path2) => excludeRe.test(path2); - } - return returnTrue; -} -function getCustomTypeMapOfCommandLineOption(optionDefinition) { - switch (optionDefinition.type) { - case "string": - case "number": - case "boolean": - case "object": - return void 0; - case "list": - case "listOrElement": - return getCustomTypeMapOfCommandLineOption(optionDefinition.element); - default: - return optionDefinition.type; - } -} -function getNameOfCompilerOptionValue(value, customTypeMap) { - return forEachEntry(customTypeMap, (mapValue, key) => { - if (mapValue === value) { - return key; - } - }); -} -function serializeCompilerOptions(options, pathOptions) { - return serializeOptionBaseObject(options, getOptionsNameMap(), pathOptions); -} -function serializeWatchOptions(options) { - return serializeOptionBaseObject(options, getWatchOptionsNameMap()); -} -function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) { - const result = /* @__PURE__ */ new Map(); - const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames); - for (const name in options) { - if (hasProperty(options, name)) { - if (optionsNameMap.has(name) && (optionsNameMap.get(name).category === Diagnostics.Command_line_Options || optionsNameMap.get(name).category === Diagnostics.Output_Formatting)) { - continue; - } - const value = options[name]; - const optionDefinition = optionsNameMap.get(name.toLowerCase()); - if (optionDefinition) { - Debug.assert(optionDefinition.type !== "listOrElement"); - const customTypeMap = getCustomTypeMapOfCommandLineOption(optionDefinition); - if (!customTypeMap) { - if (pathOptions && optionDefinition.isFilePath) { - result.set(name, getRelativePathFromFile(pathOptions.configFilePath, getNormalizedAbsolutePath(value, getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName)); - } else if (pathOptions && optionDefinition.type === "list" && optionDefinition.element.isFilePath) { - result.set(name, value.map((v) => getRelativePathFromFile(pathOptions.configFilePath, getNormalizedAbsolutePath(v, getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName))); - } else { - result.set(name, value); - } - } else { - if (optionDefinition.type === "list") { - result.set(name, value.map((element) => getNameOfCompilerOptionValue(element, customTypeMap))); - } else { - result.set(name, getNameOfCompilerOptionValue(value, customTypeMap)); - } - } - } - } - } - return result; -} -function getCompilerOptionsDiffValue(options, newLine) { - const compilerOptionsMap = getSerializedCompilerOption(options); - return getOverwrittenDefaultOptions(); - function makePadding(paddingLength) { - return Array(paddingLength + 1).join(" "); - } - function getOverwrittenDefaultOptions() { - const result = []; - const tab = makePadding(2); - commandOptionsWithoutBuild.forEach((cmd) => { - if (!compilerOptionsMap.has(cmd.name)) { - return; - } - const newValue = compilerOptionsMap.get(cmd.name); - const defaultValue = getDefaultValueForOption(cmd); - if (newValue !== defaultValue) { - result.push(`${tab}${cmd.name}: ${newValue}`); - } else if (hasProperty(defaultInitCompilerOptions, cmd.name)) { - result.push(`${tab}${cmd.name}: ${defaultValue}`); - } - }); - return result.join(newLine) + newLine; - } -} -function getSerializedCompilerOption(options) { - const compilerOptions = extend(options, defaultInitCompilerOptions); - return serializeCompilerOptions(compilerOptions); -} -function generateTSConfig(options, fileNames, newLine) { - const compilerOptionsMap = getSerializedCompilerOption(options); - return writeConfigurations(); - function makePadding(paddingLength) { - return Array(paddingLength + 1).join(" "); - } - function isAllowedOptionForOutput({ category, name, isCommandLineOnly }) { - const categoriesToSkip = [Diagnostics.Command_line_Options, Diagnostics.Editor_Support, Diagnostics.Compiler_Diagnostics, Diagnostics.Backwards_Compatibility, Diagnostics.Watch_and_Build_Modes, Diagnostics.Output_Formatting]; - return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name)); - } - function writeConfigurations() { - const categorizedOptions = /* @__PURE__ */ new Map(); - categorizedOptions.set(Diagnostics.Projects, []); - categorizedOptions.set(Diagnostics.Language_and_Environment, []); - categorizedOptions.set(Diagnostics.Modules, []); - categorizedOptions.set(Diagnostics.JavaScript_Support, []); - categorizedOptions.set(Diagnostics.Emit, []); - categorizedOptions.set(Diagnostics.Interop_Constraints, []); - categorizedOptions.set(Diagnostics.Type_Checking, []); - categorizedOptions.set(Diagnostics.Completeness, []); - for (const option of optionDeclarations) { - if (isAllowedOptionForOutput(option)) { - let listForCategory = categorizedOptions.get(option.category); - if (!listForCategory) categorizedOptions.set(option.category, listForCategory = []); - listForCategory.push(option); - } - } - let marginLength = 0; - let seenKnownKeys = 0; - const entries = []; - categorizedOptions.forEach((options2, category) => { - if (entries.length !== 0) { - entries.push({ value: "" }); - } - entries.push({ value: `/* ${getLocaleSpecificMessage(category)} */` }); - for (const option of options2) { - let optionName; - if (compilerOptionsMap.has(option.name)) { - optionName = `"${option.name}": ${JSON.stringify(compilerOptionsMap.get(option.name))}${(seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ","}`; - } else { - optionName = `// "${option.name}": ${JSON.stringify(getDefaultValueForOption(option))},`; - } - entries.push({ - value: optionName, - description: `/* ${option.description && getLocaleSpecificMessage(option.description) || option.name} */` - }); - marginLength = Math.max(optionName.length, marginLength); - } - }); - const tab = makePadding(2); - const result = []; - result.push(`{`); - result.push(`${tab}"compilerOptions": {`); - result.push(`${tab}${tab}/* ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`); - result.push(""); - for (const entry of entries) { - const { value, description = "" } = entry; - result.push(value && `${tab}${tab}${value}${description && makePadding(marginLength - value.length + 2) + description}`); - } - if (fileNames.length) { - result.push(`${tab}},`); - result.push(`${tab}"files": [`); - for (let i = 0; i < fileNames.length; i++) { - result.push(`${tab}${tab}${JSON.stringify(fileNames[i])}${i === fileNames.length - 1 ? "" : ","}`); - } - result.push(`${tab}]`); - } else { - result.push(`${tab}}`); - } - result.push(`}`); - return result.join(newLine) + newLine; - } -} -function convertToOptionsWithAbsolutePaths(options, toAbsolutePath) { - const result = {}; - const optionsNameMap = getOptionsNameMap().optionsNameMap; - for (const name in options) { - if (hasProperty(options, name)) { - result[name] = convertToOptionValueWithAbsolutePaths( - optionsNameMap.get(name.toLowerCase()), - options[name], - toAbsolutePath - ); - } - } - if (result.configFilePath) { - result.configFilePath = toAbsolutePath(result.configFilePath); - } - return result; -} -function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) { - if (option && !isNullOrUndefined(value)) { - if (option.type === "list") { - const values = value; - if (option.element.isFilePath && values.length) { - return values.map(toAbsolutePath); - } - } else if (option.isFilePath) { - return toAbsolutePath(value); - } - Debug.assert(option.type !== "listOrElement"); - } - return value; -} -function parseJsonSourceFileConfigFileContent(sourceFile, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Parse, "parseJsonSourceFileConfigFileContent", { path: sourceFile.fileName }); - const result = parseJsonConfigFileContentWorker( - /*json*/ - void 0, - sourceFile, - host, - basePath, - existingOptions, - existingWatchOptions, - configFileName, - resolutionStack, - extraFileExtensions, - extendedConfigCache - ); - (_b = tracing) == null ? void 0 : _b.pop(); - return result; -} -function setConfigFileInOptions(options, configFile) { - if (configFile) { - Object.defineProperty(options, "configFile", { enumerable: false, writable: false, value: configFile }); - } -} -function isNullOrUndefined(x) { - return x === void 0 || x === null; -} -function directoryOfCombinedPath(fileName, basePath) { - return getDirectoryPath(getNormalizedAbsolutePath(fileName, basePath)); -} -var defaultIncludeSpec = "**/*"; -function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions = {}, existingWatchOptions, configFileName, resolutionStack = [], extraFileExtensions = [], extendedConfigCache) { - Debug.assert(json === void 0 && sourceFile !== void 0 || json !== void 0 && sourceFile === void 0); - const errors = []; - const parsedConfig = parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache); - const { raw } = parsedConfig; - const options = handleOptionConfigDirTemplateSubstitution( - extend(existingOptions, parsedConfig.options || {}), - configDirTemplateSubstitutionOptions, - basePath - ); - const watchOptions = handleWatchOptionsConfigDirTemplateSubstitution( - existingWatchOptions && parsedConfig.watchOptions ? extend(existingWatchOptions, parsedConfig.watchOptions) : parsedConfig.watchOptions || existingWatchOptions, - basePath - ); - options.configFilePath = configFileName && normalizeSlashes(configFileName); - const basePathForFileNames = normalizePath(configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath); - const configFileSpecs = getConfigFileSpecs(); - if (sourceFile) sourceFile.configFileSpecs = configFileSpecs; - setConfigFileInOptions(options, sourceFile); - return { - options, - watchOptions, - fileNames: getFileNames(basePathForFileNames), - projectReferences: getProjectReferences(basePathForFileNames), - typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(), - raw, - errors, - // Wildcard directories (provided as part of a wildcard path) are stored in a - // file map that marks whether it was a regular wildcard match (with a `*` or `?` token), - // or a recursive directory. This information is used by filesystem watchers to monitor for - // new entries in these paths. - wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames), - compileOnSave: !!raw.compileOnSave - }; - function getConfigFileSpecs() { - const referencesOfRaw = getPropFromRaw("references", (element) => typeof element === "object", "object"); - const filesSpecs = toPropValue(getSpecsFromRaw("files")); - if (filesSpecs) { - const hasZeroOrNoReferences = referencesOfRaw === "no-prop" || isArray(referencesOfRaw) && referencesOfRaw.length === 0; - const hasExtends = hasProperty(raw, "extends"); - if (filesSpecs.length === 0 && hasZeroOrNoReferences && !hasExtends) { - if (sourceFile) { - const fileName = configFileName || "tsconfig.json"; - const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty; - const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer); - const error = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); - errors.push(error); - } else { - createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json"); - } - } - } - let includeSpecs = toPropValue(getSpecsFromRaw("include")); - const excludeOfRaw = getSpecsFromRaw("exclude"); - let isDefaultIncludeSpec = false; - let excludeSpecs = toPropValue(excludeOfRaw); - if (excludeOfRaw === "no-prop") { - const outDir = options.outDir; - const declarationDir = options.declarationDir; - if (outDir || declarationDir) { - excludeSpecs = filter([outDir, declarationDir], (d) => !!d); - } - } - if (filesSpecs === void 0 && includeSpecs === void 0) { - includeSpecs = [defaultIncludeSpec]; - isDefaultIncludeSpec = true; - } - let validatedIncludeSpecsBeforeSubstitution, validatedExcludeSpecsBeforeSubstitution; - let validatedIncludeSpecs, validatedExcludeSpecs; - if (includeSpecs) { - validatedIncludeSpecsBeforeSubstitution = validateSpecs( - includeSpecs, - errors, - /*disallowTrailingRecursion*/ - true, - sourceFile, - "include" - ); - validatedIncludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate( - validatedIncludeSpecsBeforeSubstitution, - basePathForFileNames - ) || validatedIncludeSpecsBeforeSubstitution; - } - if (excludeSpecs) { - validatedExcludeSpecsBeforeSubstitution = validateSpecs( - excludeSpecs, - errors, - /*disallowTrailingRecursion*/ - false, - sourceFile, - "exclude" - ); - validatedExcludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate( - validatedExcludeSpecsBeforeSubstitution, - basePathForFileNames - ) || validatedExcludeSpecsBeforeSubstitution; - } - const validatedFilesSpecBeforeSubstitution = filter(filesSpecs, isString); - const validatedFilesSpec = getSubstitutedStringArrayWithConfigDirTemplate( - validatedFilesSpecBeforeSubstitution, - basePathForFileNames - ) || validatedFilesSpecBeforeSubstitution; - return { - filesSpecs, - includeSpecs, - excludeSpecs, - validatedFilesSpec, - validatedIncludeSpecs, - validatedExcludeSpecs, - validatedFilesSpecBeforeSubstitution, - validatedIncludeSpecsBeforeSubstitution, - validatedExcludeSpecsBeforeSubstitution, - isDefaultIncludeSpec - }; - } - function getFileNames(basePath2) { - const fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath2, options, host, extraFileExtensions); - if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) { - errors.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); - } - return fileNames; - } - function getProjectReferences(basePath2) { - let projectReferences; - const referencesOfRaw = getPropFromRaw("references", (element) => typeof element === "object", "object"); - if (isArray(referencesOfRaw)) { - for (const ref of referencesOfRaw) { - if (typeof ref.path !== "string") { - createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "reference.path", "string"); - } else { - (projectReferences || (projectReferences = [])).push({ - path: getNormalizedAbsolutePath(ref.path, basePath2), - originalPath: ref.path, - prepend: ref.prepend, - circular: ref.circular - }); - } - } - } - return projectReferences; - } - function toPropValue(specResult) { - return isArray(specResult) ? specResult : void 0; - } - function getSpecsFromRaw(prop) { - return getPropFromRaw(prop, isString, "string"); - } - function getPropFromRaw(prop, validateElement, elementTypeName) { - if (hasProperty(raw, prop) && !isNullOrUndefined(raw[prop])) { - if (isArray(raw[prop])) { - const result = raw[prop]; - if (!sourceFile && !every(result, validateElement)) { - errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName)); - } - return result; - } else { - createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, "Array"); - return "not-array"; - } - } - return "no-prop"; - } - function createCompilerDiagnosticOnlyIfJson(message, ...args) { - if (!sourceFile) { - errors.push(createCompilerDiagnostic(message, ...args)); - } - } -} -function handleWatchOptionsConfigDirTemplateSubstitution(watchOptions, basePath) { - return handleOptionConfigDirTemplateSubstitution(watchOptions, configDirTemplateSubstitutionWatchOptions, basePath); -} -function handleOptionConfigDirTemplateSubstitution(options, optionDeclarations2, basePath) { - if (!options) return options; - let result; - for (const option of optionDeclarations2) { - if (options[option.name] !== void 0) { - const value = options[option.name]; - switch (option.type) { - case "string": - Debug.assert(option.isFilePath); - if (startsWithConfigDirTemplate(value)) { - setOptionValue(option, getSubstitutedPathWithConfigDirTemplate(value, basePath)); - } - break; - case "list": - Debug.assert(option.element.isFilePath); - const listResult = getSubstitutedStringArrayWithConfigDirTemplate(value, basePath); - if (listResult) setOptionValue(option, listResult); - break; - case "object": - Debug.assert(option.name === "paths"); - const objectResult = getSubstitutedMapLikeOfStringArrayWithConfigDirTemplate(value, basePath); - if (objectResult) setOptionValue(option, objectResult); - break; - default: - Debug.fail("option type not supported"); - } - } - } - return result || options; - function setOptionValue(option, value) { - (result ?? (result = assign({}, options)))[option.name] = value; - } -} -var configDirTemplate = `\${configDir}`; -function startsWithConfigDirTemplate(value) { - return isString(value) && startsWith( - value, - configDirTemplate, - /*ignoreCase*/ - true - ); -} -function getSubstitutedPathWithConfigDirTemplate(value, basePath) { - return getNormalizedAbsolutePath(value.replace(configDirTemplate, "./"), basePath); -} -function getSubstitutedStringArrayWithConfigDirTemplate(list, basePath) { - if (!list) return list; - let result; - list.forEach((element, index) => { - if (!startsWithConfigDirTemplate(element)) return; - (result ?? (result = list.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath); - }); - return result; -} -function getSubstitutedMapLikeOfStringArrayWithConfigDirTemplate(mapLike, basePath) { - let result; - const ownKeys = getOwnKeys(mapLike); - ownKeys.forEach((key) => { - if (!isArray(mapLike[key])) return; - const subStitution = getSubstitutedStringArrayWithConfigDirTemplate(mapLike[key], basePath); - if (!subStitution) return; - (result ?? (result = assign({}, mapLike)))[key] = subStitution; - }); - return result; -} -function isErrorNoInputFiles(error) { - return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; -} -function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) { - return createCompilerDiagnostic( - Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, - configFileName || "tsconfig.json", - JSON.stringify(includeSpecs || []), - JSON.stringify(excludeSpecs || []) - ); -} -function shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles, resolutionStack) { - return fileNames.length === 0 && canJsonReportNoInutFiles && (!resolutionStack || resolutionStack.length === 0); -} -function isSolutionConfig(config) { - return !config.fileNames.length && hasProperty(config.raw, "references"); -} -function canJsonReportNoInputFiles(raw) { - return !hasProperty(raw, "files") && !hasProperty(raw, "references"); -} -function updateErrorForNoInputFiles(fileNames, configFileName, configFileSpecs, configParseDiagnostics, canJsonReportNoInutFiles) { - const existingErrors = configParseDiagnostics.length; - if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) { - configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); - } else { - filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error)); - } - return existingErrors !== configParseDiagnostics.length; -} -function isSuccessfulParsedTsconfig(value) { - return !!value.options; -} -function parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache) { - var _a; - basePath = normalizeSlashes(basePath); - const resolvedPath = getNormalizedAbsolutePath(configFileName || "", basePath); - if (resolutionStack.includes(resolvedPath)) { - errors.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> "))); - return { raw: json || convertToObject(sourceFile, errors) }; - } - const ownConfig = json ? parseOwnConfigOfJson(json, host, basePath, configFileName, errors) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors); - if ((_a = ownConfig.options) == null ? void 0 : _a.paths) { - ownConfig.options.pathsBasePath = basePath; - } - if (ownConfig.extendedConfigPath) { - resolutionStack = resolutionStack.concat([resolvedPath]); - const result = { options: {} }; - if (isString(ownConfig.extendedConfigPath)) { - applyExtendedConfig(result, ownConfig.extendedConfigPath); - } else { - ownConfig.extendedConfigPath.forEach((extendedConfigPath) => applyExtendedConfig(result, extendedConfigPath)); - } - if (result.include) ownConfig.raw.include = result.include; - if (result.exclude) ownConfig.raw.exclude = result.exclude; - if (result.files) ownConfig.raw.files = result.files; - if (ownConfig.raw.compileOnSave === void 0 && result.compileOnSave) ownConfig.raw.compileOnSave = result.compileOnSave; - if (sourceFile && result.extendedSourceFiles) sourceFile.extendedSourceFiles = arrayFrom(result.extendedSourceFiles.keys()); - ownConfig.options = assign(result.options, ownConfig.options); - ownConfig.watchOptions = ownConfig.watchOptions && result.watchOptions ? assignWatchOptions(result, ownConfig.watchOptions) : ownConfig.watchOptions || result.watchOptions; - } - return ownConfig; - function applyExtendedConfig(result, extendedConfigPath) { - const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result); - if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) { - const extendsRaw = extendedConfig.raw; - let relativeDifference; - const setPropertyInResultIfNotUndefined = (propertyName) => { - if (ownConfig.raw[propertyName]) return; - if (extendsRaw[propertyName]) { - result[propertyName] = map(extendsRaw[propertyName], (path) => startsWithConfigDirTemplate(path) || isRootedDiskPath(path) ? path : combinePaths( - relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))), - path - )); - } - }; - setPropertyInResultIfNotUndefined("include"); - setPropertyInResultIfNotUndefined("exclude"); - setPropertyInResultIfNotUndefined("files"); - if (extendsRaw.compileOnSave !== void 0) { - result.compileOnSave = extendsRaw.compileOnSave; - } - assign(result.options, extendedConfig.options); - result.watchOptions = result.watchOptions && extendedConfig.watchOptions ? assignWatchOptions(result, extendedConfig.watchOptions) : result.watchOptions || extendedConfig.watchOptions; - } - } - function assignWatchOptions(result, watchOptions) { - if (result.watchOptionsCopied) return assign(result.watchOptions, watchOptions); - result.watchOptionsCopied = true; - return assign({}, result.watchOptions, watchOptions); - } -} -function parseOwnConfigOfJson(json, host, basePath, configFileName, errors) { - if (hasProperty(json, "excludes")) { - errors.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)); - } - const options = convertCompilerOptionsFromJsonWorker(json.compilerOptions, basePath, errors, configFileName); - const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json.typeAcquisition, basePath, errors, configFileName); - const watchOptions = convertWatchOptionsFromJsonWorker(json.watchOptions, basePath, errors); - json.compileOnSave = convertCompileOnSaveOptionFromJson(json, basePath, errors); - const extendedConfigPath = json.extends || json.extends === "" ? getExtendsConfigPathOrArray(json.extends, host, basePath, configFileName, errors) : void 0; - return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath }; -} -function getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, valueExpression, sourceFile) { - let extendedConfigPath; - const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath; - if (isString(value)) { - extendedConfigPath = getExtendsConfigPath( - value, - host, - newBase, - errors, - valueExpression, - sourceFile - ); - } else if (isArray(value)) { - extendedConfigPath = []; - for (let index = 0; index < value.length; index++) { - const fileName = value[index]; - if (isString(fileName)) { - extendedConfigPath = append( - extendedConfigPath, - getExtendsConfigPath( - fileName, - host, - newBase, - errors, - valueExpression == null ? void 0 : valueExpression.elements[index], - sourceFile - ) - ); - } else { - convertJsonOption(extendsOptionDeclaration.element, value, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile); - } - } - } else { - convertJsonOption(extendsOptionDeclaration, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); - } - return extendedConfigPath; -} -function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors) { - const options = getDefaultCompilerOptions(configFileName); - let typeAcquisition; - let watchOptions; - let extendedConfigPath; - let rootCompilerOptions; - const rootOptions = getTsconfigRootOptionsMap(); - const json = convertConfigFileToObject( - sourceFile, - errors, - { rootOptions, onPropertySet } - ); - if (!typeAcquisition) { - typeAcquisition = getDefaultTypeAcquisition(configFileName); - } - if (rootCompilerOptions && json && json.compilerOptions === void 0) { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0]))); - } - return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath }; - function onPropertySet(keyText, value, propertyAssignment, parentOption, option) { - if (option && option !== extendsOptionDeclaration) value = convertJsonOption(option, value, basePath, errors, propertyAssignment, propertyAssignment.initializer, sourceFile); - if (parentOption == null ? void 0 : parentOption.name) { - if (option) { - let currentOption; - if (parentOption === compilerOptionsDeclaration) currentOption = options; - else if (parentOption === watchOptionsDeclaration) currentOption = watchOptions ?? (watchOptions = {}); - else if (parentOption === typeAcquisitionDeclaration) currentOption = typeAcquisition ?? (typeAcquisition = getDefaultTypeAcquisition(configFileName)); - else Debug.fail("Unknown option"); - currentOption[option.name] = value; - } else if (keyText && (parentOption == null ? void 0 : parentOption.extraKeyDiagnostics)) { - if (parentOption.elementOptions) { - errors.push(createUnknownOptionError( - keyText, - parentOption.extraKeyDiagnostics, - /*unknownOptionErrorText*/ - void 0, - propertyAssignment.name, - sourceFile - )); - } else { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText)); - } - } - } else if (parentOption === rootOptions) { - if (option === extendsOptionDeclaration) { - extendedConfigPath = getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, propertyAssignment.initializer, sourceFile); - } else if (!option) { - if (keyText === "excludes") { - errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)); - } - if (find(commandOptionsWithoutBuild, (opt) => opt.name === keyText)) { - rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name); - } - } - } - } -} -function getExtendsConfigPath(extendedConfig, host, basePath, errors, valueExpression, sourceFile) { - extendedConfig = normalizeSlashes(extendedConfig); - if (isRootedDiskPath(extendedConfig) || startsWith(extendedConfig, "./") || startsWith(extendedConfig, "../")) { - let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath); - if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, ".json" /* Json */)) { - extendedConfigPath = `${extendedConfigPath}.json`; - if (!host.fileExists(extendedConfigPath)) { - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig)); - return void 0; - } - } - return extendedConfigPath; - } - const resolved = nodeNextJsonConfigResolver(extendedConfig, combinePaths(basePath, "tsconfig.json"), host); - if (resolved.resolvedModule) { - return resolved.resolvedModule.resolvedFileName; - } - if (extendedConfig === "") { - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends")); - } else { - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig)); - } - return void 0; -} -function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result) { - const path = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath); - let value; - let extendedResult; - let extendedConfig; - if (extendedConfigCache && (value = extendedConfigCache.get(path))) { - ({ extendedResult, extendedConfig } = value); - } else { - extendedResult = readJsonConfigFile(extendedConfigPath, (path2) => host.readFile(path2)); - if (!extendedResult.parseDiagnostics.length) { - extendedConfig = parseConfig( - /*json*/ - void 0, - extendedResult, - host, - getDirectoryPath(extendedConfigPath), - getBaseFileName(extendedConfigPath), - resolutionStack, - errors, - extendedConfigCache - ); - } - if (extendedConfigCache) { - extendedConfigCache.set(path, { extendedResult, extendedConfig }); - } - } - if (sourceFile) { - (result.extendedSourceFiles ?? (result.extendedSourceFiles = /* @__PURE__ */ new Set())).add(extendedResult.fileName); - if (extendedResult.extendedSourceFiles) { - for (const extenedSourceFile of extendedResult.extendedSourceFiles) { - result.extendedSourceFiles.add(extenedSourceFile); - } - } - } - if (extendedResult.parseDiagnostics.length) { - errors.push(...extendedResult.parseDiagnostics); - return void 0; - } - return extendedConfig; -} -function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors) { - if (!hasProperty(jsonOption, compileOnSaveCommandLineOption.name)) { - return false; - } - const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors); - return typeof result === "boolean" && result; -} -function getDefaultCompilerOptions(configFileName) { - const options = configFileName && getBaseFileName(configFileName) === "jsconfig.json" ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true } : {}; - return options; -} -function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName) { - const options = getDefaultCompilerOptions(configFileName); - convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors); - if (configFileName) { - options.configFilePath = normalizeSlashes(configFileName); - } - return options; -} -function getDefaultTypeAcquisition(configFileName) { - return { enable: !!configFileName && getBaseFileName(configFileName) === "jsconfig.json", include: [], exclude: [] }; -} -function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName) { - const options = getDefaultTypeAcquisition(configFileName); - convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors); - return options; -} -function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors) { - return convertOptionsFromJson( - getCommandLineWatchOptionsMap(), - jsonOptions, - basePath, - /*defaultOptions*/ - void 0, - watchOptionsDidYouMeanDiagnostics, - errors - ); -} -function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors) { - if (!jsonOptions) { - return; - } - for (const id in jsonOptions) { - const opt = optionsNameMap.get(id); - if (opt) { - (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors); - } else { - errors.push(createUnknownOptionError(id, diagnostics)); - } - } - return defaultOptions; -} -function createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, message, ...args) { - return sourceFile && node ? createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) : createCompilerDiagnostic(message, ...args); -} -function convertJsonOption(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile) { - if (opt.isCommandLineOnly) { - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? void 0 : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name)); - return void 0; - } - if (isCompilerOptionsValue(opt, value)) { - const optType = opt.type; - if (optType === "list" && isArray(value)) { - return convertJsonOptionOfListType(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); - } else if (optType === "listOrElement") { - return isArray(value) ? convertJsonOptionOfListType(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); - } else if (!isString(opt.type)) { - return convertJsonOptionOfCustomType(opt, value, errors, valueExpression, sourceFile); - } - const validatedValue = validateJsonOptionValue(opt, value, errors, valueExpression, sourceFile); - return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue); - } else { - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt))); - } -} -function normalizeNonListOptionValue(option, basePath, value) { - if (option.isFilePath) { - value = normalizeSlashes(value); - value = !startsWithConfigDirTemplate(value) ? getNormalizedAbsolutePath(value, basePath) : value; - if (value === "") { - value = "."; - } - } - return value; -} -function validateJsonOptionValue(opt, value, errors, valueExpression, sourceFile) { - var _a; - if (isNullOrUndefined(value)) return void 0; - const d = (_a = opt.extraValidation) == null ? void 0 : _a.call(opt, value); - if (!d) return value; - errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d)); - return void 0; -} -function convertJsonOptionOfCustomType(opt, value, errors, valueExpression, sourceFile) { - if (isNullOrUndefined(value)) return void 0; - const key = value.toLowerCase(); - const val = opt.type.get(key); - if (val !== void 0) { - return validateJsonOptionValue(opt, val, errors, valueExpression, sourceFile); - } else { - errors.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args))); - } -} -function convertJsonOptionOfListType(option, values, basePath, errors, propertyAssignment, valueExpression, sourceFile) { - return filter(map(values, (v, index) => convertJsonOption(option.element, v, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v); -} -var invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/; -var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/; -function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) { - basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames); - const literalFileMap = /* @__PURE__ */ new Map(); - const wildcardFileMap = /* @__PURE__ */ new Map(); - const wildCardJsonFileMap = /* @__PURE__ */ new Map(); - const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs; - const supportedExtensions = getSupportedExtensions(options, extraFileExtensions); - const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions); - if (validatedFilesSpec) { - for (const fileName of validatedFilesSpec) { - const file = getNormalizedAbsolutePath(fileName, basePath); - literalFileMap.set(keyMapper(file), file); - } - } - let jsonOnlyIncludeRegexes; - if (validatedIncludeSpecs && validatedIncludeSpecs.length > 0) { - for (const file of host.readDirectory( - basePath, - flatten(supportedExtensionsWithJsonIfResolveJsonModule), - validatedExcludeSpecs, - validatedIncludeSpecs, - /*depth*/ - void 0 - )) { - if (fileExtensionIs(file, ".json" /* Json */)) { - if (!jsonOnlyIncludeRegexes) { - const includes = validatedIncludeSpecs.filter((s) => endsWith(s, ".json" /* Json */)); - const includeFilePatterns = map(getRegularExpressionsForWildcards(includes, basePath, "files"), (pattern) => `^${pattern}$`); - jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, host.useCaseSensitiveFileNames)) : emptyArray; - } - const includeIndex = findIndex(jsonOnlyIncludeRegexes, (re) => re.test(file)); - if (includeIndex !== -1) { - const key2 = keyMapper(file); - if (!literalFileMap.has(key2) && !wildCardJsonFileMap.has(key2)) { - wildCardJsonFileMap.set(key2, file); - } - } - continue; - } - if (hasFileWithHigherPriorityExtension(file, literalFileMap, wildcardFileMap, supportedExtensions, keyMapper)) { - continue; - } - removeWildcardFilesWithLowerPriorityExtension(file, wildcardFileMap, supportedExtensions, keyMapper); - const key = keyMapper(file); - if (!literalFileMap.has(key) && !wildcardFileMap.has(key)) { - wildcardFileMap.set(key, file); - } - } - } - const literalFiles = arrayFrom(literalFileMap.values()); - const wildcardFiles = arrayFrom(wildcardFileMap.values()); - return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); -} -function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { - const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; - if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; - basePath = normalizePath(basePath); - const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); - if (validatedFilesSpec) { - for (const fileName of validatedFilesSpec) { - if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; - } - } - return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); -} -function invalidDotDotAfterRecursiveWildcard(s) { - const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); - if (wildcardIndex === -1) { - return false; - } - const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); - return lastDotIndex > wildcardIndex; -} -function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { - return matchesExcludeWorker( - pathToCheck, - filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), - useCaseSensitiveFileNames2, - currentDirectory - ); -} -function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { - const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); - const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); - if (!excludeRegex) return false; - if (excludeRegex.test(pathToCheck)) return true; - return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck)); -} -function validateSpecs(specs, errors, disallowTrailingRecursion, jsonSourceFile, specKey) { - return specs.filter((spec) => { - if (!isString(spec)) return false; - const diag2 = specToDiagnostic(spec, disallowTrailingRecursion); - if (diag2 !== void 0) { - errors.push(createDiagnostic(...diag2)); - } - return diag2 === void 0; - }); - function createDiagnostic(message, spec) { - const element = getTsConfigPropArrayElementValue(jsonSourceFile, specKey, spec); - return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(jsonSourceFile, element, message, spec); - } -} -function specToDiagnostic(spec, disallowTrailingRecursion) { - Debug.assert(typeof spec === "string"); - if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) { - return [Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; - } else if (invalidDotDotAfterRecursiveWildcard(spec)) { - return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; - } -} -function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, basePath, useCaseSensitiveFileNames2) { - const rawExcludeRegex = getRegularExpressionForWildcard(exclude, basePath, "exclude"); - const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); - const wildcardDirectories = {}; - const wildCardKeyToPath = /* @__PURE__ */ new Map(); - if (include !== void 0) { - const recursiveKeys = []; - for (const file of include) { - const spec = normalizePath(combinePaths(basePath, file)); - if (excludeRegex && excludeRegex.test(spec)) { - continue; - } - const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); - if (match) { - const { key, path, flags } = match; - const existingPath = wildCardKeyToPath.get(key); - const existingFlags = existingPath !== void 0 ? wildcardDirectories[existingPath] : void 0; - if (existingFlags === void 0 || existingFlags < flags) { - wildcardDirectories[existingPath !== void 0 ? existingPath : path] = flags; - if (existingPath === void 0) wildCardKeyToPath.set(key, path); - if (flags === 1 /* Recursive */) { - recursiveKeys.push(key); - } - } - } - } - for (const path in wildcardDirectories) { - if (hasProperty(wildcardDirectories, path)) { - for (const recursiveKey of recursiveKeys) { - const key = toCanonicalKey(path, useCaseSensitiveFileNames2); - if (key !== recursiveKey && containsPath(recursiveKey, key, basePath, !useCaseSensitiveFileNames2)) { - delete wildcardDirectories[path]; - } - } - } - } - } - return wildcardDirectories; -} -function toCanonicalKey(path, useCaseSensitiveFileNames2) { - return useCaseSensitiveFileNames2 ? path : toFileNameLowerCase(path); -} -function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { - const match = wildcardDirectoryPattern.exec(spec); - if (match) { - const questionWildcardIndex = spec.indexOf("?"); - const starWildcardIndex = spec.indexOf("*"); - const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); - return { - key: toCanonicalKey(match[0], useCaseSensitiveFileNames2), - path: match[0], - flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ - }; - } - if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { - const path = removeTrailingDirectorySeparator(spec); - return { - key: toCanonicalKey(path, useCaseSensitiveFileNames2), - path, - flags: 1 /* Recursive */ - }; - } - return void 0; -} -function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, extensions, keyMapper) { - const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0); - if (!extensionGroup) { - return false; - } - for (const ext of extensionGroup) { - if (fileExtensionIs(file, ext) && (ext !== ".ts" /* Ts */ || !fileExtensionIs(file, ".d.ts" /* Dts */))) { - return false; - } - const higherPriorityPath = keyMapper(changeExtension(file, ext)); - if (literalFiles.has(higherPriorityPath) || wildcardFiles.has(higherPriorityPath)) { - if (ext === ".d.ts" /* Dts */ && (fileExtensionIs(file, ".js" /* Js */) || fileExtensionIs(file, ".jsx" /* Jsx */))) { - continue; - } - return true; - } - } - return false; -} -function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) { - const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0); - if (!extensionGroup) { - return; - } - for (let i = extensionGroup.length - 1; i >= 0; i--) { - const ext = extensionGroup[i]; - if (fileExtensionIs(file, ext)) { - return; - } - const lowerPriorityPath = keyMapper(changeExtension(file, ext)); - wildcardFiles.delete(lowerPriorityPath); - } -} -function getDefaultValueForOption(option) { - switch (option.type) { - case "number": - return 1; - case "boolean": - return true; - case "string": - const defaultValue = option.defaultValueDescription; - return option.isFilePath ? `./${defaultValue && typeof defaultValue === "string" ? defaultValue : ""}` : ""; - case "list": - return []; - case "listOrElement": - return getDefaultValueForOption(option.element); - case "object": - return {}; - default: - const value = firstOrUndefinedIterator(option.type.keys()); - if (value !== void 0) return value; - return Debug.fail("Expected 'option.type' to have entries."); - } -} - -// src/compiler/moduleNameResolver.ts -function trace(host, message, ...args) { - host.trace(formatMessage(message, ...args)); -} -function isTraceEnabled(compilerOptions, host) { - return !!compilerOptions.traceResolution && host.trace !== void 0; -} -function withPackageId(packageInfo, r, state) { - let packageId; - if (r && packageInfo) { - const packageJsonContent = packageInfo.contents.packageJsonContent; - if (typeof packageJsonContent.name === "string" && typeof packageJsonContent.version === "string") { - packageId = { - name: packageJsonContent.name, - subModuleName: r.path.slice(packageInfo.packageDirectory.length + directorySeparator.length), - version: packageJsonContent.version, - peerDependencies: getPeerDependenciesOfPackageJsonInfo(packageInfo, state) - }; - } - } - return r && { path: r.path, extension: r.ext, packageId, resolvedUsingTsExtension: r.resolvedUsingTsExtension }; -} -function noPackageId(r) { - return withPackageId( - /*packageInfo*/ - void 0, - r, - /*state*/ - void 0 - ); -} -function removeIgnoredPackageId(r) { - if (r) { - Debug.assert(r.packageId === void 0); - return { path: r.path, ext: r.extension, resolvedUsingTsExtension: r.resolvedUsingTsExtension }; - } -} -function formatExtensions(extensions) { - const result = []; - if (extensions & 1 /* TypeScript */) result.push("TypeScript"); - if (extensions & 2 /* JavaScript */) result.push("JavaScript"); - if (extensions & 4 /* Declaration */) result.push("Declaration"); - if (extensions & 8 /* Json */) result.push("JSON"); - return result.join(", "); -} -function resolvedTypeScriptOnly(resolved) { - if (!resolved) { - return void 0; - } - Debug.assert(extensionIsTS(resolved.extension)); - return { fileName: resolved.path, packageId: resolved.packageId }; -} -function createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state, cache, alternateResult) { - if (!state.resultFromCache && !state.compilerOptions.preserveSymlinks && resolved && isExternalLibraryImport && !resolved.originalPath && !isExternalModuleNameRelative(moduleName)) { - const { resolvedFileName, originalPath } = getOriginalAndResolvedFileName(resolved.path, state.host, state.traceEnabled); - if (originalPath) resolved = { ...resolved, path: resolvedFileName, originalPath }; - } - return createResolvedModuleWithFailedLookupLocations( - resolved, - isExternalLibraryImport, - failedLookupLocations, - affectingLocations, - diagnostics, - state.resultFromCache, - cache, - alternateResult - ); -} -function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, resultFromCache, cache, alternateResult) { - if (resultFromCache) { - if (!(cache == null ? void 0 : cache.isReadonly)) { - resultFromCache.failedLookupLocations = updateResolutionField(resultFromCache.failedLookupLocations, failedLookupLocations); - resultFromCache.affectingLocations = updateResolutionField(resultFromCache.affectingLocations, affectingLocations); - resultFromCache.resolutionDiagnostics = updateResolutionField(resultFromCache.resolutionDiagnostics, diagnostics); - return resultFromCache; - } else { - return { - ...resultFromCache, - failedLookupLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.failedLookupLocations, failedLookupLocations), - affectingLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.affectingLocations, affectingLocations), - resolutionDiagnostics: initializeResolutionFieldForReadonlyCache(resultFromCache.resolutionDiagnostics, diagnostics) - }; - } - } - return { - resolvedModule: resolved && { - resolvedFileName: resolved.path, - originalPath: resolved.originalPath === true ? void 0 : resolved.originalPath, - extension: resolved.extension, - isExternalLibraryImport, - packageId: resolved.packageId, - resolvedUsingTsExtension: !!resolved.resolvedUsingTsExtension - }, - failedLookupLocations: initializeResolutionField(failedLookupLocations), - affectingLocations: initializeResolutionField(affectingLocations), - resolutionDiagnostics: initializeResolutionField(diagnostics), - alternateResult - }; -} -function initializeResolutionField(value) { - return value.length ? value : void 0; -} -function updateResolutionField(to, value) { - if (!(value == null ? void 0 : value.length)) return to; - if (!(to == null ? void 0 : to.length)) return value; - to.push(...value); - return to; -} -function initializeResolutionFieldForReadonlyCache(fromCache, value) { - if (!(fromCache == null ? void 0 : fromCache.length)) return initializeResolutionField(value); - if (!value.length) return fromCache.slice(); - return [...fromCache, ...value]; -} -function readPackageJsonField(jsonContent, fieldName, typeOfTag, state) { - if (!hasProperty(jsonContent, fieldName)) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_does_not_have_a_0_field, fieldName); - } - return; - } - const value = jsonContent[fieldName]; - if (typeof value !== typeOfTag || value === null) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, fieldName, typeOfTag, value === null ? "null" : typeof value); - } - return; - } - return value; -} -function readPackageJsonPathField(jsonContent, fieldName, baseDirectory, state) { - const fileName = readPackageJsonField(jsonContent, fieldName, "string", state); - if (fileName === void 0) { - return; - } - if (!fileName) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_had_a_falsy_0_field, fieldName); - } - return; - } - const path = normalizePath(combinePaths(baseDirectory, fileName)); - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path); - } - return path; -} -function readPackageJsonTypesFields(jsonContent, baseDirectory, state) { - return readPackageJsonPathField(jsonContent, "typings", baseDirectory, state) || readPackageJsonPathField(jsonContent, "types", baseDirectory, state); -} -function readPackageJsonTSConfigField(jsonContent, baseDirectory, state) { - return readPackageJsonPathField(jsonContent, "tsconfig", baseDirectory, state); -} -function readPackageJsonMainField(jsonContent, baseDirectory, state) { - return readPackageJsonPathField(jsonContent, "main", baseDirectory, state); -} -function readPackageJsonTypesVersionsField(jsonContent, state) { - const typesVersions = readPackageJsonField(jsonContent, "typesVersions", "object", state); - if (typesVersions === void 0) return; - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings); - } - return typesVersions; -} -function readPackageJsonTypesVersionPaths(jsonContent, state) { - const typesVersions = readPackageJsonTypesVersionsField(jsonContent, state); - if (typesVersions === void 0) return; - if (state.traceEnabled) { - for (const key in typesVersions) { - if (hasProperty(typesVersions, key) && !VersionRange.tryParse(key)) { - trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, key); - } - } - } - const result = getPackageJsonTypesVersionsPaths(typesVersions); - if (!result) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, versionMajorMinor); - } - return; - } - const { version: bestVersionKey, paths: bestVersionPaths } = result; - if (typeof bestVersionPaths !== "object") { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, `typesVersions['${bestVersionKey}']`, "object", typeof bestVersionPaths); - } - return; - } - return result; -} -var typeScriptVersion; -function getPackageJsonTypesVersionsPaths(typesVersions) { - if (!typeScriptVersion) typeScriptVersion = new Version(version); - for (const key in typesVersions) { - if (!hasProperty(typesVersions, key)) continue; - const keyRange = VersionRange.tryParse(key); - if (keyRange === void 0) { - continue; - } - if (keyRange.test(typeScriptVersion)) { - return { version: key, paths: typesVersions[key] }; - } - } -} -function getEffectiveTypeRoots(options, host) { - if (options.typeRoots) { - return options.typeRoots; - } - let currentDirectory; - if (options.configFilePath) { - currentDirectory = getDirectoryPath(options.configFilePath); - } else if (host.getCurrentDirectory) { - currentDirectory = host.getCurrentDirectory(); - } - if (currentDirectory !== void 0) { - return getDefaultTypeRoots(currentDirectory); - } -} -function getDefaultTypeRoots(currentDirectory) { - let typeRoots; - forEachAncestorDirectory(normalizePath(currentDirectory), (directory) => { - const atTypes = combinePaths(directory, nodeModulesAtTypes); - (typeRoots ?? (typeRoots = [])).push(atTypes); - }); - return typeRoots; -} -var nodeModulesAtTypes = combinePaths("node_modules", "@types"); -function arePathsEqual(path1, path2, host) { - const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; - return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; -} -function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { - const resolvedFileName = realPath(fileName, host, traceEnabled); - const pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host); - return { - // If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames - resolvedFileName: pathsAreEqual ? fileName : resolvedFileName, - originalPath: pathsAreEqual ? void 0 : fileName - }; -} -function getCandidateFromTypeRoot(typeRoot, typeReferenceDirectiveName, moduleResolutionState) { - const nameForLookup = endsWith(typeRoot, "/node_modules/@types") || endsWith(typeRoot, "/node_modules/@types/") ? mangleScopedPackageNameWithTrace(typeReferenceDirectiveName, moduleResolutionState) : typeReferenceDirectiveName; - return combinePaths(typeRoot, nameForLookup); -} -function resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference, cache, resolutionMode) { - Debug.assert(typeof typeReferenceDirectiveName === "string", "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself."); - const traceEnabled = isTraceEnabled(options, host); - if (redirectedReference) { - options = redirectedReference.commandLine.options; - } - const containingDirectory = containingFile ? getDirectoryPath(containingFile) : void 0; - let result = containingDirectory ? cache == null ? void 0 : cache.getFromDirectoryCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference) : void 0; - if (!result && containingDirectory && !isExternalModuleNameRelative(typeReferenceDirectiveName)) { - result = cache == null ? void 0 : cache.getFromNonRelativeNameCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference); - } - if (result) { - if (traceEnabled) { - trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1, typeReferenceDirectiveName, containingFile); - if (redirectedReference) trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); - trace(host, Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, typeReferenceDirectiveName, containingDirectory); - traceResult(result); - } - return result; - } - const typeRoots = getEffectiveTypeRoots(options, host); - if (traceEnabled) { - if (containingFile === void 0) { - if (typeRoots === void 0) { - trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, typeReferenceDirectiveName); - } else { - trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, typeReferenceDirectiveName, typeRoots); - } - } else { - if (typeRoots === void 0) { - trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, typeReferenceDirectiveName, containingFile); - } else { - trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, typeReferenceDirectiveName, containingFile, typeRoots); - } - } - if (redirectedReference) { - trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); - } - } - const failedLookupLocations = []; - const affectingLocations = []; - let features = getNodeResolutionFeatures(options); - if (resolutionMode !== void 0) { - features |= 30 /* AllFeatures */; - } - const moduleResolution = getEmitModuleResolutionKind(options); - if (resolutionMode === 99 /* ESNext */ && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { - features |= 32 /* EsmMode */; - } - const conditions = features & 8 /* Exports */ ? getConditions(options, resolutionMode) : []; - const diagnostics = []; - const moduleResolutionState = { - compilerOptions: options, - host, - traceEnabled, - failedLookupLocations, - affectingLocations, - packageJsonInfoCache: cache, - features, - conditions, - requestContainingDirectory: containingDirectory, - reportDiagnostic: (diag2) => void diagnostics.push(diag2), - isConfigLookup: false, - candidateIsFromPackageJsonField: false, - resolvedPackageDirectory: false - }; - let resolved = primaryLookup(); - let primary = true; - if (!resolved) { - resolved = secondaryLookup(); - primary = false; - } - let resolvedTypeReferenceDirective; - if (resolved) { - const { fileName, packageId } = resolved; - let resolvedFileName = fileName, originalPath; - if (!options.preserveSymlinks) ({ resolvedFileName, originalPath } = getOriginalAndResolvedFileName(fileName, host, traceEnabled)); - resolvedTypeReferenceDirective = { - primary, - resolvedFileName, - originalPath, - packageId, - isExternalLibraryImport: pathContainsNodeModules(fileName) - }; - } - result = { - resolvedTypeReferenceDirective, - failedLookupLocations: initializeResolutionField(failedLookupLocations), - affectingLocations: initializeResolutionField(affectingLocations), - resolutionDiagnostics: initializeResolutionField(diagnostics) - }; - if (containingDirectory && cache && !cache.isReadonly) { - cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set( - typeReferenceDirectiveName, - /*mode*/ - resolutionMode, - result - ); - if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) { - cache.getOrCreateCacheForNonRelativeName(typeReferenceDirectiveName, resolutionMode, redirectedReference).set(containingDirectory, result); - } - } - if (traceEnabled) traceResult(result); - return result; - function traceResult(result2) { - var _a; - if (!((_a = result2.resolvedTypeReferenceDirective) == null ? void 0 : _a.resolvedFileName)) { - trace(host, Diagnostics.Type_reference_directive_0_was_not_resolved, typeReferenceDirectiveName); - } else if (result2.resolvedTypeReferenceDirective.packageId) { - trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, packageIdToString(result2.resolvedTypeReferenceDirective.packageId), result2.resolvedTypeReferenceDirective.primary); - } else { - trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, result2.resolvedTypeReferenceDirective.primary); - } - } - function primaryLookup() { - if (typeRoots && typeRoots.length) { - if (traceEnabled) { - trace(host, Diagnostics.Resolving_with_primary_search_path_0, typeRoots.join(", ")); - } - return firstDefined(typeRoots, (typeRoot) => { - const candidate = getCandidateFromTypeRoot(typeRoot, typeReferenceDirectiveName, moduleResolutionState); - const directoryExists = directoryProbablyExists(typeRoot, host); - if (!directoryExists && traceEnabled) { - trace(host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, typeRoot); - } - if (options.typeRoots) { - const resolvedFromFile = loadModuleFromFile(4 /* Declaration */, candidate, !directoryExists, moduleResolutionState); - if (resolvedFromFile) { - const packageDirectory = parseNodeModuleFromPath(resolvedFromFile.path); - const packageInfo = packageDirectory ? getPackageJsonInfo( - packageDirectory, - /*onlyRecordFailures*/ - false, - moduleResolutionState - ) : void 0; - return resolvedTypeScriptOnly(withPackageId(packageInfo, resolvedFromFile, moduleResolutionState)); - } - } - return resolvedTypeScriptOnly( - loadNodeModuleFromDirectory(4 /* Declaration */, candidate, !directoryExists, moduleResolutionState) - ); - }); - } else { - if (traceEnabled) { - trace(host, Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths); - } - } - } - function secondaryLookup() { - const initialLocationForSecondaryLookup = containingFile && getDirectoryPath(containingFile); - if (initialLocationForSecondaryLookup !== void 0) { - let result2; - if (!options.typeRoots || !endsWith(containingFile, inferredTypesContainingFile)) { - if (traceEnabled) { - trace(host, Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, initialLocationForSecondaryLookup); - } - if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) { - const searchResult = loadModuleFromNearestNodeModulesDirectory( - 4 /* Declaration */, - typeReferenceDirectiveName, - initialLocationForSecondaryLookup, - moduleResolutionState, - /*cache*/ - void 0, - /*redirectedReference*/ - void 0 - ); - result2 = searchResult && searchResult.value; - } else { - const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName); - result2 = nodeLoadModuleByRelativeName( - 4 /* Declaration */, - candidate, - /*onlyRecordFailures*/ - false, - moduleResolutionState, - /*considerPackageJson*/ - true - ); - } - } else if (traceEnabled) { - trace(host, Diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder); - } - return resolvedTypeScriptOnly(result2); - } else { - if (traceEnabled) { - trace(host, Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder); - } - } - } -} -function getNodeResolutionFeatures(options) { - let features = 0 /* None */; - switch (getEmitModuleResolutionKind(options)) { - case 3 /* Node16 */: - features = 30 /* Node16Default */; - break; - case 99 /* NodeNext */: - features = 30 /* NodeNextDefault */; - break; - case 100 /* Bundler */: - features = 30 /* BundlerDefault */; - break; - } - if (options.resolvePackageJsonExports) { - features |= 8 /* Exports */; - } else if (options.resolvePackageJsonExports === false) { - features &= ~8 /* Exports */; - } - if (options.resolvePackageJsonImports) { - features |= 2 /* Imports */; - } else if (options.resolvePackageJsonImports === false) { - features &= ~2 /* Imports */; - } - return features; -} -function getConditions(options, resolutionMode) { - const moduleResolution = getEmitModuleResolutionKind(options); - if (resolutionMode === void 0) { - if (moduleResolution === 100 /* Bundler */) { - resolutionMode = 99 /* ESNext */; - } else if (moduleResolution === 2 /* Node10 */) { - return []; - } - } - const conditions = resolutionMode === 99 /* ESNext */ ? ["import"] : ["require"]; - if (!options.noDtsResolution) { - conditions.push("types"); - } - if (moduleResolution !== 100 /* Bundler */) { - conditions.push("node"); - } - return concatenate(conditions, options.customConditions); -} -function getAutomaticTypeDirectiveNames(options, host) { - if (options.types) { - return options.types; - } - const result = []; - if (host.directoryExists && host.getDirectories) { - const typeRoots = getEffectiveTypeRoots(options, host); - if (typeRoots) { - for (const root of typeRoots) { - if (host.directoryExists(root)) { - for (const typeDirectivePath of host.getDirectories(root)) { - const normalized = normalizePath(typeDirectivePath); - const packageJsonPath = combinePaths(root, normalized, "package.json"); - const isNotNeededPackage = host.fileExists(packageJsonPath) && readJson(packageJsonPath, host).typings === null; - if (!isNotNeededPackage) { - const baseFileName = getBaseFileName(normalized); - if (baseFileName.charCodeAt(0) !== 46 /* dot */) { - result.push(baseFileName); - } - } - } - } - } - } - } - return result; -} -function isPackageJsonInfo(entry) { - return !!(entry == null ? void 0 : entry.contents); -} -function isMissingPackageJsonInfo(entry) { - return !!entry && !entry.contents; -} -function compilerOptionValueToString(value) { - var _a; - if (value === null || typeof value !== "object") { - return "" + value; - } - if (isArray(value)) { - return `[${(_a = value.map((e) => compilerOptionValueToString(e))) == null ? void 0 : _a.join(",")}]`; - } - let str = "{"; - for (const key in value) { - if (hasProperty(value, key)) { - str += `${key}: ${compilerOptionValueToString(value[key])}`; - } - } - return str + "}"; -} -function getKeyForCompilerOptions(options, affectingOptionDeclarations) { - return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; -} -function createCacheWithRedirects(ownOptions, optionsToRedirectsKey) { - const redirectsMap = /* @__PURE__ */ new Map(); - const redirectsKeyToMap = /* @__PURE__ */ new Map(); - let ownMap = /* @__PURE__ */ new Map(); - if (ownOptions) redirectsMap.set(ownOptions, ownMap); - return { - getMapOfCacheRedirects, - getOrCreateMapOfCacheRedirects, - update, - clear: clear2, - getOwnMap: () => ownMap - }; - function getMapOfCacheRedirects(redirectedReference) { - return redirectedReference ? getOrCreateMap( - redirectedReference.commandLine.options, - /*create*/ - false - ) : ownMap; - } - function getOrCreateMapOfCacheRedirects(redirectedReference) { - return redirectedReference ? getOrCreateMap( - redirectedReference.commandLine.options, - /*create*/ - true - ) : ownMap; - } - function update(newOptions) { - if (ownOptions !== newOptions) { - if (ownOptions) ownMap = getOrCreateMap( - newOptions, - /*create*/ - true - ); - else redirectsMap.set(newOptions, ownMap); - ownOptions = newOptions; - } - } - function getOrCreateMap(redirectOptions, create) { - let result = redirectsMap.get(redirectOptions); - if (result) return result; - const key = getRedirectsCacheKey(redirectOptions); - result = redirectsKeyToMap.get(key); - if (!result) { - if (ownOptions) { - const ownKey = getRedirectsCacheKey(ownOptions); - if (ownKey === key) result = ownMap; - else if (!redirectsKeyToMap.has(ownKey)) redirectsKeyToMap.set(ownKey, ownMap); - } - if (create) result ?? (result = /* @__PURE__ */ new Map()); - if (result) redirectsKeyToMap.set(key, result); - } - if (result) redirectsMap.set(redirectOptions, result); - return result; - } - function clear2() { - const ownKey = ownOptions && optionsToRedirectsKey.get(ownOptions); - ownMap.clear(); - redirectsMap.clear(); - optionsToRedirectsKey.clear(); - redirectsKeyToMap.clear(); - if (ownOptions) { - if (ownKey) optionsToRedirectsKey.set(ownOptions, ownKey); - redirectsMap.set(ownOptions, ownMap); - } - } - function getRedirectsCacheKey(options) { - let result = optionsToRedirectsKey.get(options); - if (!result) { - optionsToRedirectsKey.set(options, result = getKeyForCompilerOptions(options, moduleResolutionOptionDeclarations)); - } - return result; - } -} -function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) { - let cache; - return { getPackageJsonInfo: getPackageJsonInfo2, setPackageJsonInfo, clear: clear2, getInternalMap }; - function getPackageJsonInfo2(packageJsonPath) { - return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName)); - } - function setPackageJsonInfo(packageJsonPath, info) { - (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info); - } - function clear2() { - cache = void 0; - } - function getInternalMap() { - return cache; - } -} -function getOrCreateCache(cacheWithRedirects, redirectedReference, key, create) { - const cache = cacheWithRedirects.getOrCreateMapOfCacheRedirects(redirectedReference); - let result = cache.get(key); - if (!result) { - result = create(); - cache.set(key, result); - } - return result; -} -function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, options, optionsToRedirectsKey) { - const directoryToModuleNameMap = createCacheWithRedirects(options, optionsToRedirectsKey); - return { - getFromDirectoryCache, - getOrCreateCacheForDirectory, - clear: clear2, - update, - directoryToModuleNameMap - }; - function clear2() { - directoryToModuleNameMap.clear(); - } - function update(options2) { - directoryToModuleNameMap.update(options2); - } - function getOrCreateCacheForDirectory(directoryName, redirectedReference) { - const path = toPath(directoryName, currentDirectory, getCanonicalFileName); - return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path, () => createModeAwareCache()); - } - function getFromDirectoryCache(name, mode, directoryName, redirectedReference) { - var _a, _b; - const path = toPath(directoryName, currentDirectory, getCanonicalFileName); - return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(path)) == null ? void 0 : _b.get(name, mode); - } -} -function createModeAwareCacheKey(specifier, mode) { - return mode === void 0 ? specifier : `${mode}|${specifier}`; -} -function createModeAwareCache() { - const underlying = /* @__PURE__ */ new Map(); - const memoizedReverseKeys = /* @__PURE__ */ new Map(); - const cache = { - get(specifier, mode) { - return underlying.get(getUnderlyingCacheKey(specifier, mode)); - }, - set(specifier, mode, value) { - underlying.set(getUnderlyingCacheKey(specifier, mode), value); - return cache; - }, - delete(specifier, mode) { - underlying.delete(getUnderlyingCacheKey(specifier, mode)); - return cache; - }, - has(specifier, mode) { - return underlying.has(getUnderlyingCacheKey(specifier, mode)); - }, - forEach(cb) { - return underlying.forEach((elem, key) => { - const [specifier, mode] = memoizedReverseKeys.get(key); - return cb(elem, specifier, mode); - }); - }, - size() { - return underlying.size; - } - }; - return cache; - function getUnderlyingCacheKey(specifier, mode) { - const result = createModeAwareCacheKey(specifier, mode); - memoizedReverseKeys.set(result, [specifier, mode]); - return result; - } -} -function getOriginalOrResolvedModuleFileName(result) { - return result.resolvedModule && (result.resolvedModule.originalPath || result.resolvedModule.resolvedFileName); -} -function getOriginalOrResolvedTypeReferenceFileName(result) { - return result.resolvedTypeReferenceDirective && (result.resolvedTypeReferenceDirective.originalPath || result.resolvedTypeReferenceDirective.resolvedFileName); -} -function createNonRelativeNameResolutionCache(currentDirectory, getCanonicalFileName, options, getResolvedFileName, optionsToRedirectsKey) { - const moduleNameToDirectoryMap = createCacheWithRedirects(options, optionsToRedirectsKey); - return { - getFromNonRelativeNameCache, - getOrCreateCacheForNonRelativeName, - clear: clear2, - update - }; - function clear2() { - moduleNameToDirectoryMap.clear(); - } - function update(options2) { - moduleNameToDirectoryMap.update(options2); - } - function getFromNonRelativeNameCache(nonRelativeModuleName, mode, directoryName, redirectedReference) { - var _a, _b; - Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); - return (_b = (_a = moduleNameToDirectoryMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(createModeAwareCacheKey(nonRelativeModuleName, mode))) == null ? void 0 : _b.get(directoryName); - } - function getOrCreateCacheForNonRelativeName(nonRelativeModuleName, mode, redirectedReference) { - Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); - return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, createModeAwareCacheKey(nonRelativeModuleName, mode), createPerModuleNameCache); - } - function createPerModuleNameCache() { - const directoryPathMap = /* @__PURE__ */ new Map(); - return { get, set }; - function get(directory) { - return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName)); - } - function set(directory, result) { - const path = toPath(directory, currentDirectory, getCanonicalFileName); - if (directoryPathMap.has(path)) { - return; - } - directoryPathMap.set(path, result); - const resolvedFileName = getResolvedFileName(result); - const commonPrefix = resolvedFileName && getCommonPrefix(path, resolvedFileName); - let current = path; - while (current !== commonPrefix) { - const parent = getDirectoryPath(current); - if (parent === current || directoryPathMap.has(parent)) { - break; - } - directoryPathMap.set(parent, result); - current = parent; - } - } - function getCommonPrefix(directory, resolution) { - const resolutionDirectory = toPath(getDirectoryPath(resolution), currentDirectory, getCanonicalFileName); - let i = 0; - const limit = Math.min(directory.length, resolutionDirectory.length); - while (i < limit && directory.charCodeAt(i) === resolutionDirectory.charCodeAt(i)) { - i++; - } - if (i === directory.length && (resolutionDirectory.length === i || resolutionDirectory[i] === directorySeparator)) { - return directory; - } - const rootLength = getRootLength(directory); - if (i < rootLength) { - return void 0; - } - const sep = directory.lastIndexOf(directorySeparator, i - 1); - if (sep === -1) { - return void 0; - } - return directory.substr(0, Math.max(sep, rootLength)); - } - } -} -function createModuleOrTypeReferenceResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, getResolvedFileName, optionsToRedirectsKey) { - optionsToRedirectsKey ?? (optionsToRedirectsKey = /* @__PURE__ */ new Map()); - const perDirectoryResolutionCache = createPerDirectoryResolutionCache( - currentDirectory, - getCanonicalFileName, - options, - optionsToRedirectsKey - ); - const nonRelativeNameResolutionCache = createNonRelativeNameResolutionCache( - currentDirectory, - getCanonicalFileName, - options, - getResolvedFileName, - optionsToRedirectsKey - ); - packageJsonInfoCache ?? (packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName)); - return { - ...packageJsonInfoCache, - ...perDirectoryResolutionCache, - ...nonRelativeNameResolutionCache, - clear: clear2, - update, - getPackageJsonInfoCache: () => packageJsonInfoCache, - clearAllExceptPackageJsonInfoCache, - optionsToRedirectsKey - }; - function clear2() { - clearAllExceptPackageJsonInfoCache(); - packageJsonInfoCache.clear(); - } - function clearAllExceptPackageJsonInfoCache() { - perDirectoryResolutionCache.clear(); - nonRelativeNameResolutionCache.clear(); - } - function update(options2) { - perDirectoryResolutionCache.update(options2); - nonRelativeNameResolutionCache.update(options2); - } -} -function createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, optionsToRedirectsKey) { - const result = createModuleOrTypeReferenceResolutionCache( - currentDirectory, - getCanonicalFileName, - options, - packageJsonInfoCache, - getOriginalOrResolvedModuleFileName, - optionsToRedirectsKey - ); - result.getOrCreateCacheForModuleName = (nonRelativeName, mode, redirectedReference) => result.getOrCreateCacheForNonRelativeName(nonRelativeName, mode, redirectedReference); - return result; -} -function createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, optionsToRedirectsKey) { - return createModuleOrTypeReferenceResolutionCache( - currentDirectory, - getCanonicalFileName, - options, - packageJsonInfoCache, - getOriginalOrResolvedTypeReferenceFileName, - optionsToRedirectsKey - ); -} -function getOptionsForLibraryResolution(options) { - return { moduleResolution: 2 /* Node10 */, traceResolution: options.traceResolution }; -} -function resolveLibrary(libraryName, resolveFrom, compilerOptions, host, cache) { - return resolveModuleName(libraryName, resolveFrom, getOptionsForLibraryResolution(compilerOptions), host, cache); -} -function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { - const traceEnabled = isTraceEnabled(compilerOptions, host); - if (redirectedReference) { - compilerOptions = redirectedReference.commandLine.options; - } - if (traceEnabled) { - trace(host, Diagnostics.Resolving_module_0_from_1, moduleName, containingFile); - if (redirectedReference) { - trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); - } - } - const containingDirectory = getDirectoryPath(containingFile); - let result = cache == null ? void 0 : cache.getFromDirectoryCache(moduleName, resolutionMode, containingDirectory, redirectedReference); - if (result) { - if (traceEnabled) { - trace(host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory); - } - } else { - let moduleResolution = compilerOptions.moduleResolution; - if (moduleResolution === void 0) { - moduleResolution = getEmitModuleResolutionKind(compilerOptions); - if (traceEnabled) { - trace(host, Diagnostics.Module_resolution_kind_is_not_specified_using_0, ModuleResolutionKind[moduleResolution]); - } - } else { - if (traceEnabled) { - trace(host, Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ModuleResolutionKind[moduleResolution]); - } - } - switch (moduleResolution) { - case 3 /* Node16 */: - result = node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); - break; - case 99 /* NodeNext */: - result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); - break; - case 2 /* Node10 */: - result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : void 0); - break; - case 1 /* Classic */: - result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference); - break; - case 100 /* Bundler */: - result = bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : void 0); - break; - default: - return Debug.fail(`Unexpected moduleResolution: ${moduleResolution}`); - } - if (cache && !cache.isReadonly) { - cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result); - if (!isExternalModuleNameRelative(moduleName)) { - cache.getOrCreateCacheForNonRelativeName(moduleName, resolutionMode, redirectedReference).set(containingDirectory, result); - } - } - } - if (traceEnabled) { - if (result.resolvedModule) { - if (result.resolvedModule.packageId) { - trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, moduleName, result.resolvedModule.resolvedFileName, packageIdToString(result.resolvedModule.packageId)); - } else { - trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1, moduleName, result.resolvedModule.resolvedFileName); - } - } else { - trace(host, Diagnostics.Module_name_0_was_not_resolved, moduleName); - } - } - return result; -} -function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state) { - const resolved = tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state); - if (resolved) return resolved.value; - if (!isExternalModuleNameRelative(moduleName)) { - return tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state); - } else { - return tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state); - } -} -function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) { - const { baseUrl, paths } = state.compilerOptions; - if (paths && !pathIsRelative(moduleName)) { - if (state.traceEnabled) { - if (baseUrl) { - trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName); - } - trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName); - } - const baseDirectory = getPathsBasePath(state.compilerOptions, state.host); - const pathPatterns = tryParsePatterns(paths); - return tryLoadModuleUsingPaths( - extensions, - moduleName, - baseDirectory, - paths, - pathPatterns, - loader, - /*onlyRecordFailures*/ - false, - state - ); - } -} -function tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state) { - if (!state.compilerOptions.rootDirs) { - return void 0; - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, moduleName); - } - const candidate = normalizePath(combinePaths(containingDirectory, moduleName)); - let matchedRootDir; - let matchedNormalizedPrefix; - for (const rootDir of state.compilerOptions.rootDirs) { - let normalizedRoot = normalizePath(rootDir); - if (!endsWith(normalizedRoot, directorySeparator)) { - normalizedRoot += directorySeparator; - } - const isLongestMatchingPrefix = startsWith(candidate, normalizedRoot) && (matchedNormalizedPrefix === void 0 || matchedNormalizedPrefix.length < normalizedRoot.length); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2, normalizedRoot, candidate, isLongestMatchingPrefix); - } - if (isLongestMatchingPrefix) { - matchedNormalizedPrefix = normalizedRoot; - matchedRootDir = rootDir; - } - } - if (matchedNormalizedPrefix) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Longest_matching_prefix_for_0_is_1, candidate, matchedNormalizedPrefix); - } - const suffix = candidate.substr(matchedNormalizedPrefix.length); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, matchedNormalizedPrefix, candidate); - } - const resolvedFileName = loader(extensions, candidate, !directoryProbablyExists(containingDirectory, state.host), state); - if (resolvedFileName) { - return resolvedFileName; - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.Trying_other_entries_in_rootDirs); - } - for (const rootDir of state.compilerOptions.rootDirs) { - if (rootDir === matchedRootDir) { - continue; - } - const candidate2 = combinePaths(normalizePath(rootDir), suffix); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, rootDir, candidate2); - } - const baseDirectory = getDirectoryPath(candidate2); - const resolvedFileName2 = loader(extensions, candidate2, !directoryProbablyExists(baseDirectory, state.host), state); - if (resolvedFileName2) { - return resolvedFileName2; - } - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.Module_resolution_using_rootDirs_has_failed); - } - } - return void 0; -} -function tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state) { - const { baseUrl } = state.compilerOptions; - if (!baseUrl) { - return void 0; - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName); - } - const candidate = normalizePath(combinePaths(baseUrl, moduleName)); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2, moduleName, baseUrl, candidate); - } - return loader(extensions, candidate, !directoryProbablyExists(getDirectoryPath(candidate), state.host), state); -} -function resolveJSModule(moduleName, initialDir, host) { - const { resolvedModule, failedLookupLocations } = tryResolveJSModuleWorker(moduleName, initialDir, host); - if (!resolvedModule) { - throw new Error(`Could not resolve JS module '${moduleName}' starting at '${initialDir}'. Looked in: ${failedLookupLocations == null ? void 0 : failedLookupLocations.join(", ")}`); - } - return resolvedModule.resolvedFileName; -} -function node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { - return nodeNextModuleNameResolverWorker( - 30 /* Node16Default */, - moduleName, - containingFile, - compilerOptions, - host, - cache, - redirectedReference, - resolutionMode - ); -} -function nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { - return nodeNextModuleNameResolverWorker( - 30 /* NodeNextDefault */, - moduleName, - containingFile, - compilerOptions, - host, - cache, - redirectedReference, - resolutionMode - ); -} -function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode, conditions) { - const containingDirectory = getDirectoryPath(containingFile); - const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0; - let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; - if (getResolveJsonModule(compilerOptions)) { - extensions |= 8 /* Json */; - } - return nodeModuleNameResolverWorker( - features | esmMode, - moduleName, - containingDirectory, - compilerOptions, - host, - cache, - extensions, - /*isConfigLookup*/ - false, - redirectedReference, - conditions - ); -} -function tryResolveJSModuleWorker(moduleName, initialDir, host) { - return nodeModuleNameResolverWorker( - 0 /* None */, - moduleName, - initialDir, - { moduleResolution: 2 /* Node10 */, allowJs: true }, - host, - /*cache*/ - void 0, - 2 /* JavaScript */, - /*isConfigLookup*/ - false, - /*redirectedReference*/ - void 0, - /*conditions*/ - void 0 - ); -} -function bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, conditions) { - const containingDirectory = getDirectoryPath(containingFile); - let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; - if (getResolveJsonModule(compilerOptions)) { - extensions |= 8 /* Json */; - } - return nodeModuleNameResolverWorker( - getNodeResolutionFeatures(compilerOptions), - moduleName, - containingDirectory, - compilerOptions, - host, - cache, - extensions, - /*isConfigLookup*/ - false, - redirectedReference, - conditions - ); -} -function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, conditions, isConfigLookup) { - let extensions; - if (isConfigLookup) { - extensions = 8 /* Json */; - } else if (compilerOptions.noDtsResolution) { - extensions = 3 /* ImplementationFiles */; - if (getResolveJsonModule(compilerOptions)) extensions |= 8 /* Json */; - } else { - extensions = getResolveJsonModule(compilerOptions) ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; - } - return nodeModuleNameResolverWorker(conditions ? 30 /* AllFeatures */ : 0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference, conditions); -} -function nodeNextJsonConfigResolver(moduleName, containingFile, host) { - return nodeModuleNameResolverWorker( - 30 /* NodeNextDefault */, - moduleName, - getDirectoryPath(containingFile), - { moduleResolution: 99 /* NodeNext */ }, - host, - /*cache*/ - void 0, - 8 /* Json */, - /*isConfigLookup*/ - true, - /*redirectedReference*/ - void 0, - /*conditions*/ - void 0 - ); -} -function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference, conditions) { - var _a, _b, _c, _d, _e; - const traceEnabled = isTraceEnabled(compilerOptions, host); - const failedLookupLocations = []; - const affectingLocations = []; - const moduleResolution = getEmitModuleResolutionKind(compilerOptions); - conditions ?? (conditions = getConditions( - compilerOptions, - moduleResolution === 100 /* Bundler */ || moduleResolution === 2 /* Node10 */ ? void 0 : features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */ - )); - const diagnostics = []; - const state = { - compilerOptions, - host, - traceEnabled, - failedLookupLocations, - affectingLocations, - packageJsonInfoCache: cache, - features, - conditions: conditions ?? emptyArray, - requestContainingDirectory: containingDirectory, - reportDiagnostic: (diag2) => void diagnostics.push(diag2), - isConfigLookup, - candidateIsFromPackageJsonField: false, - resolvedPackageDirectory: false - }; - if (traceEnabled && moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", state.conditions.map((c) => `'${c}'`).join(", ")); - } - let result; - if (moduleResolution === 2 /* Node10 */) { - const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); - const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); - result = priorityExtensions && tryResolve(priorityExtensions, state) || secondaryExtensions && tryResolve(secondaryExtensions, state) || void 0; - } else { - result = tryResolve(extensions, state); - } - let alternateResult; - if (state.resolvedPackageDirectory && !isConfigLookup && !isExternalModuleNameRelative(moduleName)) { - const wantedTypesButGotJs = (result == null ? void 0 : result.value) && extensions & (1 /* TypeScript */ | 4 /* Declaration */) && !extensionIsOk(1 /* TypeScript */ | 4 /* Declaration */, result.value.resolved.extension); - if (((_a = result == null ? void 0 : result.value) == null ? void 0 : _a.isExternalLibraryImport) && wantedTypesButGotJs && features & 8 /* Exports */ && (conditions == null ? void 0 : conditions.includes("import"))) { - traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update); - const diagnosticState = { - ...state, - features: state.features & ~8 /* Exports */, - reportDiagnostic: noop - }; - const diagnosticResult = tryResolve(extensions & (1 /* TypeScript */ | 4 /* Declaration */), diagnosticState); - if ((_b = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _b.isExternalLibraryImport) { - alternateResult = diagnosticResult.value.resolved.path; - } - } else if ((!(result == null ? void 0 : result.value) || wantedTypesButGotJs) && moduleResolution === 2 /* Node10 */) { - traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update); - const diagnosticsCompilerOptions = { ...state.compilerOptions, moduleResolution: 100 /* Bundler */ }; - const diagnosticState = { - ...state, - compilerOptions: diagnosticsCompilerOptions, - features: 30 /* BundlerDefault */, - conditions: getConditions(diagnosticsCompilerOptions), - reportDiagnostic: noop - }; - const diagnosticResult = tryResolve(extensions & (1 /* TypeScript */ | 4 /* Declaration */), diagnosticState); - if ((_c = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _c.isExternalLibraryImport) { - alternateResult = diagnosticResult.value.resolved.path; - } - } - } - return createResolvedModuleWithFailedLookupLocationsHandlingSymlink( - moduleName, - (_d = result == null ? void 0 : result.value) == null ? void 0 : _d.resolved, - (_e = result == null ? void 0 : result.value) == null ? void 0 : _e.isExternalLibraryImport, - failedLookupLocations, - affectingLocations, - diagnostics, - state, - cache, - alternateResult - ); - function tryResolve(extensions2, state2) { - const loader = (extensions3, candidate, onlyRecordFailures, state3) => nodeLoadModuleByRelativeName( - extensions3, - candidate, - onlyRecordFailures, - state3, - /*considerPackageJson*/ - true - ); - const resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions2, moduleName, containingDirectory, loader, state2); - if (resolved) { - return toSearchResult({ resolved, isExternalLibraryImport: pathContainsNodeModules(resolved.path) }); - } - if (!isExternalModuleNameRelative(moduleName)) { - if (features & 2 /* Imports */ && startsWith(moduleName, "#")) { - const resolved3 = loadModuleFromImports(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); - if (resolved3) { - return resolved3.value && { value: { resolved: resolved3.value, isExternalLibraryImport: false } }; - } - } - if (features & 4 /* SelfName */) { - const resolved3 = loadModuleFromSelfNameReference(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); - if (resolved3) { - return resolved3.value && { value: { resolved: resolved3.value, isExternalLibraryImport: false } }; - } - } - if (moduleName.includes(":")) { - if (traceEnabled) { - trace(host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); - } - return void 0; - } - if (traceEnabled) { - trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); - } - let resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); - if (extensions2 & 4 /* Declaration */) { - resolved2 ?? (resolved2 = resolveFromTypeRoot(moduleName, state2)); - } - return resolved2 && { value: resolved2.value && { resolved: resolved2.value, isExternalLibraryImport: true } }; - } else { - const { path: candidate, parts } = normalizePathForCJSResolution(containingDirectory, moduleName); - const resolved2 = nodeLoadModuleByRelativeName( - extensions2, - candidate, - /*onlyRecordFailures*/ - false, - state2, - /*considerPackageJson*/ - true - ); - return resolved2 && toSearchResult({ resolved: resolved2, isExternalLibraryImport: contains(parts, "node_modules") }); - } - } -} -function normalizePathForCJSResolution(containingDirectory, moduleName) { - const combined = combinePaths(containingDirectory, moduleName); - const parts = getPathComponents(combined); - const lastPart = lastOrUndefined(parts); - const path = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined); - return { path, parts }; -} -function realPath(path, host, traceEnabled) { - if (!host.realpath) { - return path; - } - const real = normalizePath(host.realpath(path)); - if (traceEnabled) { - trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real); - } - return real; -} -function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions)); - } - if (!hasTrailingDirectorySeparator(candidate)) { - if (!onlyRecordFailures) { - const parentOfCandidate = getDirectoryPath(candidate); - if (!directoryProbablyExists(parentOfCandidate, state.host)) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, parentOfCandidate); - } - onlyRecordFailures = true; - } - } - const resolvedFromFile = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state); - if (resolvedFromFile) { - const packageDirectory = considerPackageJson ? parseNodeModuleFromPath(resolvedFromFile.path) : void 0; - const packageInfo = packageDirectory ? getPackageJsonInfo( - packageDirectory, - /*onlyRecordFailures*/ - false, - state - ) : void 0; - return withPackageId(packageInfo, resolvedFromFile, state); - } - } - if (!onlyRecordFailures) { - const candidateExists = directoryProbablyExists(candidate, state.host); - if (!candidateExists) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidate); - } - onlyRecordFailures = true; - } - } - if (!(state.features & 32 /* EsmMode */)) { - return loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson); - } - return void 0; -} -var nodeModulesPathPart = "/node_modules/"; -function pathContainsNodeModules(path) { - return path.includes(nodeModulesPathPart); -} -function parseNodeModuleFromPath(resolved, isFolder) { - const path = normalizePath(resolved); - const idx = path.lastIndexOf(nodeModulesPathPart); - if (idx === -1) { - return void 0; - } - const indexAfterNodeModules = idx + nodeModulesPathPart.length; - let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterNodeModules, isFolder); - if (path.charCodeAt(indexAfterNodeModules) === 64 /* at */) { - indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterPackageName, isFolder); - } - return path.slice(0, indexAfterPackageName); -} -function moveToNextDirectorySeparatorIfAvailable(path, prevSeparatorIndex, isFolder) { - const nextSeparatorIndex = path.indexOf(directorySeparator, prevSeparatorIndex + 1); - return nextSeparatorIndex === -1 ? isFolder ? path.length : prevSeparatorIndex : nextSeparatorIndex; -} -function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) { - return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state)); -} -function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) { - const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state); - if (resolvedByReplacingExtension) { - return resolvedByReplacingExtension; - } - if (!(state.features & 32 /* EsmMode */)) { - const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state); - if (resolvedByAddingExtension) { - return resolvedByAddingExtension; - } - } -} -function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) { - const filename = getBaseFileName(candidate); - if (!filename.includes(".")) { - return void 0; - } - let extensionless = removeFileExtension(candidate); - if (extensionless === candidate) { - extensionless = candidate.substring(0, candidate.lastIndexOf(".")); - } - const extension = candidate.substring(extensionless.length); - if (state.traceEnabled) { - trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension); - } - return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state); -} -function loadFileNameFromPackageJsonField(extensions, candidate, packageJsonValue, onlyRecordFailures, state) { - if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) { - const result = tryFile(candidate, onlyRecordFailures, state); - const ext = tryExtractTSExtension(candidate); - return result !== void 0 ? { path: candidate, ext, resolvedUsingTsExtension: packageJsonValue ? !endsWith(packageJsonValue, ext) : void 0 } : void 0; - } - if (state.isConfigLookup && extensions === 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) { - const result = tryFile(candidate, onlyRecordFailures, state); - return result !== void 0 ? { path: candidate, ext: ".json" /* Json */, resolvedUsingTsExtension: void 0 } : void 0; - } - return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state); -} -function tryAddingExtensions(candidate, extensions, originalExtension, onlyRecordFailures, state) { - if (!onlyRecordFailures) { - const directory = getDirectoryPath(candidate); - if (directory) { - onlyRecordFailures = !directoryProbablyExists(directory, state.host); - } - } - switch (originalExtension) { - case ".mjs" /* Mjs */: - case ".mts" /* Mts */: - case ".d.mts" /* Dmts */: - return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0; - case ".cjs" /* Cjs */: - case ".cts" /* Cts */: - case ".d.cts" /* Dcts */: - return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0; - case ".json" /* Json */: - return extensions & 4 /* Declaration */ && tryExtension(".d.json.ts") || extensions & 8 /* Json */ && tryExtension(".json" /* Json */) || void 0; - case ".tsx" /* Tsx */: - case ".jsx" /* Jsx */: - return extensions & 1 /* TypeScript */ && (tryExtension(".tsx" /* Tsx */, originalExtension === ".tsx" /* Tsx */) || tryExtension(".ts" /* Ts */, originalExtension === ".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".tsx" /* Tsx */) || extensions & 2 /* JavaScript */ && (tryExtension(".jsx" /* Jsx */) || tryExtension(".js" /* Js */)) || void 0; - case ".ts" /* Ts */: - case ".d.ts" /* Dts */: - case ".js" /* Js */: - case "": - return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || tryExtension(".tsx" /* Tsx */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0; - default: - return extensions & 4 /* Declaration */ && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || void 0; - } - function tryExtension(ext, resolvedUsingTsExtension) { - const path = tryFile(candidate + ext, onlyRecordFailures, state); - return path === void 0 ? void 0 : { path, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension }; - } -} -function tryFile(fileName, onlyRecordFailures, state) { - var _a; - if (!((_a = state.compilerOptions.moduleSuffixes) == null ? void 0 : _a.length)) { - return tryFileLookup(fileName, onlyRecordFailures, state); - } - const ext = tryGetExtensionFromPath2(fileName) ?? ""; - const fileNameNoExtension = ext ? removeExtension(fileName, ext) : fileName; - return forEach(state.compilerOptions.moduleSuffixes, (suffix) => tryFileLookup(fileNameNoExtension + suffix + ext, onlyRecordFailures, state)); -} -function tryFileLookup(fileName, onlyRecordFailures, state) { - var _a; - if (!onlyRecordFailures) { - if (state.host.fileExists(fileName)) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.File_0_exists_use_it_as_a_name_resolution_result, fileName); - } - return fileName; - } else { - if (state.traceEnabled) { - trace(state.host, Diagnostics.File_0_does_not_exist, fileName); - } - } - } - (_a = state.failedLookupLocations) == null ? void 0 : _a.push(fileName); - return void 0; -} -function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) { - const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0; - return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state); -} -function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) { - return { - host, - compilerOptions: options, - traceEnabled: isTraceEnabled(options, host), - failedLookupLocations: void 0, - affectingLocations: void 0, - packageJsonInfoCache, - features: 0 /* None */, - conditions: emptyArray, - requestContainingDirectory: void 0, - reportDiagnostic: noop, - isConfigLookup: false, - candidateIsFromPackageJsonField: false, - resolvedPackageDirectory: false - }; -} -function getPackageScopeForPath(directory, state) { - return forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - directory, - (dir) => getPackageJsonInfo( - dir, - /*onlyRecordFailures*/ - false, - state - ) - ); -} -function getVersionPathsOfPackageJsonInfo(packageJsonInfo, state) { - if (packageJsonInfo.contents.versionPaths === void 0) { - packageJsonInfo.contents.versionPaths = readPackageJsonTypesVersionPaths(packageJsonInfo.contents.packageJsonContent, state) || false; - } - return packageJsonInfo.contents.versionPaths || void 0; -} -function getPeerDependenciesOfPackageJsonInfo(packageJsonInfo, state) { - if (packageJsonInfo.contents.peerDependencies === void 0) { - packageJsonInfo.contents.peerDependencies = readPackageJsonPeerDependencies(packageJsonInfo, state) || false; - } - return packageJsonInfo.contents.peerDependencies || void 0; -} -function readPackageJsonPeerDependencies(packageJsonInfo, state) { - const peerDependencies = readPackageJsonField(packageJsonInfo.contents.packageJsonContent, "peerDependencies", "object", state); - if (peerDependencies === void 0) return void 0; - if (state.traceEnabled) trace(state.host, Diagnostics.package_json_has_a_peerDependencies_field); - const packageDirectory = realPath(packageJsonInfo.packageDirectory, state.host, state.traceEnabled); - const nodeModules = packageDirectory.substring(0, packageDirectory.lastIndexOf("node_modules") + "node_modules".length) + directorySeparator; - let result = ""; - for (const key in peerDependencies) { - if (hasProperty(peerDependencies, key)) { - const peerPackageJson = getPackageJsonInfo( - nodeModules + key, - /*onlyRecordFailures*/ - false, - state - ); - if (peerPackageJson) { - const version2 = peerPackageJson.contents.packageJsonContent.version; - result += `+${key}@${version2}`; - if (state.traceEnabled) trace(state.host, Diagnostics.Found_peerDependency_0_with_1_version, key, version2); - } else { - if (state.traceEnabled) trace(state.host, Diagnostics.Failed_to_find_peerDependency_0, key); - } - } - } - return result; -} -function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) { - var _a, _b, _c, _d, _e, _f; - const { host, traceEnabled } = state; - const packageJsonPath = combinePaths(packageDirectory, "package.json"); - if (onlyRecordFailures) { - (_a = state.failedLookupLocations) == null ? void 0 : _a.push(packageJsonPath); - return void 0; - } - const existing = (_b = state.packageJsonInfoCache) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); - if (existing !== void 0) { - if (isPackageJsonInfo(existing)) { - if (traceEnabled) trace(host, Diagnostics.File_0_exists_according_to_earlier_cached_lookups, packageJsonPath); - (_c = state.affectingLocations) == null ? void 0 : _c.push(packageJsonPath); - return existing.packageDirectory === packageDirectory ? existing : { packageDirectory, contents: existing.contents }; - } else { - if (existing.directoryExists && traceEnabled) trace(host, Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, packageJsonPath); - (_d = state.failedLookupLocations) == null ? void 0 : _d.push(packageJsonPath); - return void 0; - } - } - const directoryExists = directoryProbablyExists(packageDirectory, host); - if (directoryExists && host.fileExists(packageJsonPath)) { - const packageJsonContent = readJson(packageJsonPath, host); - if (traceEnabled) { - trace(host, Diagnostics.Found_package_json_at_0, packageJsonPath); - } - const result = { packageDirectory, contents: { packageJsonContent, versionPaths: void 0, resolvedEntrypoints: void 0, peerDependencies: void 0 } }; - if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, result); - (_e = state.affectingLocations) == null ? void 0 : _e.push(packageJsonPath); - return result; - } else { - if (directoryExists && traceEnabled) { - trace(host, Diagnostics.File_0_does_not_exist, packageJsonPath); - } - if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, { packageDirectory, directoryExists }); - (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath); - } -} -function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) { - const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state); - let packageFile; - if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) { - if (state.isConfigLookup) { - packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state); - } else { - packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0; - } - } - const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => { - const fromFile = loadFileNameFromPackageJsonField( - extensions2, - candidate2, - /*packageJsonValue*/ - void 0, - onlyRecordFailures2, - state2 - ); - if (fromFile) { - return noPackageId(fromFile); - } - const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2; - const features = state2.features; - const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField; - state2.candidateIsFromPackageJsonField = true; - if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") { - state2.features &= ~32 /* EsmMode */; - } - const result = nodeLoadModuleByRelativeName( - expandedExtensions, - candidate2, - onlyRecordFailures2, - state2, - /*considerPackageJson*/ - false - ); - state2.features = features; - state2.candidateIsFromPackageJsonField = candidateIsFromPackageJsonField; - return result; - }; - const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0; - const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host); - const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index"); - if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) { - const moduleName = getRelativePathFromDirectory( - candidate, - packageFile || indexPath, - /*ignoreCase*/ - false - ); - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName); - } - const pathPatterns = tryParsePatterns(versionPaths.paths); - const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state); - if (result) { - return removeIgnoredPackageId(result.value); - } - } - const packageFileResult = packageFile && removeIgnoredPackageId(loader(extensions, packageFile, onlyRecordFailuresForPackageFile, state)); - if (packageFileResult) return packageFileResult; - if (!(state.features & 32 /* EsmMode */)) { - return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state); - } -} -function extensionIsOk(extensions, extension) { - return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false; -} -function parsePackageName(moduleName) { - let idx = moduleName.indexOf(directorySeparator); - if (moduleName[0] === "@") { - idx = moduleName.indexOf(directorySeparator, idx + 1); - } - return idx === -1 ? { packageName: moduleName, rest: "" } : { packageName: moduleName.slice(0, idx), rest: moduleName.slice(idx + 1) }; -} -function allKeysStartWithDot(obj) { - return every(getOwnKeys(obj), (k) => startsWith(k, ".")); -} -function noKeyStartsWithDot(obj) { - return !some(getOwnKeys(obj), (k) => startsWith(k, ".")); -} -function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) { - var _a, _b; - const directoryPath = getNormalizedAbsolutePath(directory, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); - const scope = getPackageScopeForPath(directoryPath, state); - if (!scope || !scope.contents.packageJsonContent.exports) { - return void 0; - } - if (typeof scope.contents.packageJsonContent.name !== "string") { - return void 0; - } - const parts = getPathComponents(moduleName); - const nameParts = getPathComponents(scope.contents.packageJsonContent.name); - if (!every(nameParts, (p, i) => parts[i] === p)) { - return void 0; - } - const trailingParts = parts.slice(nameParts.length); - const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; - if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { - return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); - } - const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); - const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); - return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); -} -function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) { - if (!scope.contents.packageJsonContent.exports) { - return void 0; - } - if (subpath === ".") { - let mainExport; - if (typeof scope.contents.packageJsonContent.exports === "string" || Array.isArray(scope.contents.packageJsonContent.exports) || typeof scope.contents.packageJsonContent.exports === "object" && noKeyStartsWithDot(scope.contents.packageJsonContent.exports)) { - mainExport = scope.contents.packageJsonContent.exports; - } else if (hasProperty(scope.contents.packageJsonContent.exports, ".")) { - mainExport = scope.contents.packageJsonContent.exports["."]; - } - if (mainExport) { - const loadModuleFromTargetExportOrImport = getLoadModuleFromTargetExportOrImport( - extensions, - state, - cache, - redirectedReference, - subpath, - scope, - /*isImports*/ - false - ); - return loadModuleFromTargetExportOrImport( - mainExport, - "", - /*pattern*/ - false, - "." - ); - } - } else if (allKeysStartWithDot(scope.contents.packageJsonContent.exports)) { - if (typeof scope.contents.packageJsonContent.exports !== "object") { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - const result = loadModuleFromExportsOrImports( - extensions, - state, - cache, - redirectedReference, - subpath, - scope.contents.packageJsonContent.exports, - scope, - /*isImports*/ - false - ); - if (result) { - return result; - } - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory); - } - return toSearchResult( - /*value*/ - void 0 - ); -} -function loadModuleFromImports(extensions, moduleName, directory, state, cache, redirectedReference) { - var _a, _b; - if (moduleName === "#" || startsWith(moduleName, "#/")) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - const directoryPath = getNormalizedAbsolutePath(directory, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); - const scope = getPackageScopeForPath(directoryPath, state); - if (!scope) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - if (!scope.contents.packageJsonContent.imports) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_no_imports_defined, scope.packageDirectory); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - const result = loadModuleFromExportsOrImports( - extensions, - state, - cache, - redirectedReference, - moduleName, - scope.contents.packageJsonContent.imports, - scope, - /*isImports*/ - true - ); - if (result) { - return result; - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1, moduleName, scope.packageDirectory); - } - return toSearchResult( - /*value*/ - void 0 - ); -} -function comparePatternKeys(a, b) { - const aPatternIndex = a.indexOf("*"); - const bPatternIndex = b.indexOf("*"); - const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; - const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLenA > baseLenB) return -1 /* LessThan */; - if (baseLenB > baseLenA) return 1 /* GreaterThan */; - if (aPatternIndex === -1) return 1 /* GreaterThan */; - if (bPatternIndex === -1) return -1 /* LessThan */; - if (a.length > b.length) return -1 /* LessThan */; - if (b.length > a.length) return 1 /* GreaterThan */; - return 0 /* EqualTo */; -} -function loadModuleFromExportsOrImports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) { - const loadModuleFromTargetExportOrImport = getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports); - if (!endsWith(moduleName, directorySeparator) && !moduleName.includes("*") && hasProperty(lookupTable, moduleName)) { - const target = lookupTable[moduleName]; - return loadModuleFromTargetExportOrImport( - target, - /*subpath*/ - "", - /*pattern*/ - false, - moduleName - ); - } - const expandingKeys = toSorted(filter(getOwnKeys(lookupTable), (k) => hasOneAsterisk(k) || endsWith(k, "/")), comparePatternKeys); - for (const potentialTarget of expandingKeys) { - if (state.features & 16 /* ExportsPatternTrailers */ && matchesPatternWithTrailer(potentialTarget, moduleName)) { - const target = lookupTable[potentialTarget]; - const starPos = potentialTarget.indexOf("*"); - const subpath = moduleName.substring(potentialTarget.substring(0, starPos).length, moduleName.length - (potentialTarget.length - 1 - starPos)); - return loadModuleFromTargetExportOrImport( - target, - subpath, - /*pattern*/ - true, - potentialTarget - ); - } else if (endsWith(potentialTarget, "*") && startsWith(moduleName, potentialTarget.substring(0, potentialTarget.length - 1))) { - const target = lookupTable[potentialTarget]; - const subpath = moduleName.substring(potentialTarget.length - 1); - return loadModuleFromTargetExportOrImport( - target, - subpath, - /*pattern*/ - true, - potentialTarget - ); - } else if (startsWith(moduleName, potentialTarget)) { - const target = lookupTable[potentialTarget]; - const subpath = moduleName.substring(potentialTarget.length); - return loadModuleFromTargetExportOrImport( - target, - subpath, - /*pattern*/ - false, - potentialTarget - ); - } - } - function matchesPatternWithTrailer(target, name) { - if (endsWith(target, "*")) return false; - const starPos = target.indexOf("*"); - if (starPos === -1) return false; - return startsWith(name, target.substring(0, starPos)) && endsWith(name, target.substring(starPos + 1)); - } -} -function hasOneAsterisk(patternKey) { - const firstStar = patternKey.indexOf("*"); - return firstStar !== -1 && firstStar === patternKey.lastIndexOf("*"); -} -function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) { - return loadModuleFromTargetExportOrImport; - function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) { - var _a, _b; - if (typeof target === "string") { - if (!pattern && subpath.length > 0 && !endsWith(target, "/")) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - if (!startsWith(target, "./")) { - if (isImports && !startsWith(target, "../") && !startsWith(target, "/") && !isRootedDiskPath(target)) { - const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath; - traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup); - traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/"); - const result = nodeModuleNameResolverWorker( - state.features, - combinedLookup, - scope.packageDirectory + "/", - state.compilerOptions, - state.host, - cache, - extensions, - /*isConfigLookup*/ - false, - redirectedReference, - state.conditions - ); - (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray); - (_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray); - return toSearchResult( - result.resolvedModule ? { - path: result.resolvedModule.resolvedFileName, - extension: result.resolvedModule.extension, - packageId: result.resolvedModule.packageId, - originalPath: result.resolvedModule.originalPath, - resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension - } : void 0 - ); - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - const parts = pathIsRelative(target) ? getPathComponents(target).slice(1) : getPathComponents(target); - const partsAfterFirst = parts.slice(1); - if (partsAfterFirst.includes("..") || partsAfterFirst.includes(".") || partsAfterFirst.includes("node_modules")) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - const resolvedTarget = combinePaths(scope.packageDirectory, target); - const subpathParts = getPathComponents(subpath); - if (subpathParts.includes("..") || subpathParts.includes(".") || subpathParts.includes("node_modules")) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.Using_0_subpath_1_with_target_2, isImports ? "imports" : "exports", key, pattern ? target.replace(/\*/g, subpath) : target + subpath); - } - const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath); - const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, "package.json"), isImports); - if (inputLink) return inputLink; - return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( - extensions, - finalPath, - target, - /*onlyRecordFailures*/ - false, - state - ), state)); - } else if (typeof target === "object" && target !== null) { - if (!Array.isArray(target)) { - traceIfEnabled(state, Diagnostics.Entering_conditional_exports); - for (const condition of getOwnKeys(target)) { - if (condition === "default" || state.conditions.includes(condition) || isApplicableVersionedTypesKey(state.conditions, condition)) { - traceIfEnabled(state, Diagnostics.Matched_0_condition_1, isImports ? "imports" : "exports", condition); - const subTarget = target[condition]; - const result = loadModuleFromTargetExportOrImport(subTarget, subpath, pattern, key); - if (result) { - traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition); - traceIfEnabled(state, Diagnostics.Exiting_conditional_exports); - return result; - } else { - traceIfEnabled(state, Diagnostics.Failed_to_resolve_under_condition_0, condition); - } - } else { - traceIfEnabled(state, Diagnostics.Saw_non_matching_condition_0, condition); - } - } - traceIfEnabled(state, Diagnostics.Exiting_conditional_exports); - return void 0; - } else { - if (!length(target)) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - for (const elem of target) { - const result = loadModuleFromTargetExportOrImport(elem, subpath, pattern, key); - if (result) { - return result; - } - } - } - } else if (target === null) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - } - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); - } - return toSearchResult( - /*value*/ - void 0 - ); - function toAbsolutePath(path) { - var _a2, _b2; - if (path === void 0) return path; - return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)); - } - function combineDirectoryPath(root, dir) { - return ensureTrailingDirectorySeparator(combinePaths(root, dir)); - } - function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { - var _a2, _b2, _c, _d; - if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { - const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); - const commonSourceDirGuesses = []; - if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { - const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName)); - commonSourceDirGuesses.push(commonDir); - } else if (state.requestContainingDirectory) { - const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts")); - const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [requestingFile, toAbsolutePath(packagePath)], ((_d = (_c = state.host).getCurrentDirectory) == null ? void 0 : _d.call(_c)) || "", getCanonicalFileName)); - commonSourceDirGuesses.push(commonDir); - let fragment = ensureTrailingDirectorySeparator(commonDir); - while (fragment && fragment.length > 1) { - const parts = getPathComponents(fragment); - parts.pop(); - const commonDir2 = getPathFromPathComponents(parts); - commonSourceDirGuesses.unshift(commonDir2); - fragment = ensureTrailingDirectorySeparator(commonDir2); - } - } - if (commonSourceDirGuesses.length > 1) { - state.reportDiagnostic(createCompilerDiagnostic( - isImports2 ? Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate : Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, - entry === "" ? "." : entry, - // replace empty string with `.` - the reverse of the operation done when entries are built - so main entrypoint errors don't look weird - packagePath - )); - } - for (const commonSourceDirGuess of commonSourceDirGuesses) { - const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); - for (const candidateDir of candidateDirectories) { - if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { - const pathFragment = finalPath.slice(candidateDir.length + 1); - const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); - const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; - for (const ext of jsAndDtsExtensions) { - if (fileExtensionIs(possibleInputBase, ext)) { - const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase); - for (const possibleExt of inputExts) { - if (!extensionIsOk(extensions, possibleExt)) continue; - const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); - if (state.host.fileExists(possibleInputWithInputExtension)) { - return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( - extensions, - possibleInputWithInputExtension, - /*packageJsonValue*/ - void 0, - /*onlyRecordFailures*/ - false, - state - ), state)); - } - } - } - } - } - } - } - } - return void 0; - function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) { - var _a3, _b3; - const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess; - const candidateDirectories = []; - if (state.compilerOptions.declarationDir) { - candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir))); - } - if (state.compilerOptions.outDir && state.compilerOptions.outDir !== state.compilerOptions.declarationDir) { - candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.outDir))); - } - return candidateDirectories; - } - } - } -} -function isApplicableVersionedTypesKey(conditions, key) { - if (!conditions.includes("types")) return false; - if (!startsWith(key, "types@")) return false; - const range = VersionRange.tryParse(key.substring("types@".length)); - if (!range) return false; - return range.test(version); -} -function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache, redirectedReference) { - return loadModuleFromNearestNodeModulesDirectoryWorker( - extensions, - moduleName, - directory, - state, - /*typesScopeOnly*/ - false, - cache, - redirectedReference - ); -} -function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) { - return loadModuleFromNearestNodeModulesDirectoryWorker( - 4 /* Declaration */, - moduleName, - directory, - state, - /*typesScopeOnly*/ - true, - /*cache*/ - void 0, - /*redirectedReference*/ - void 0 - ); -} -function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { - const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ || state.conditions.includes("import") ? 99 /* ESNext */ : 1 /* CommonJS */; - const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); - const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); - if (priorityExtensions) { - traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); - const result = lookup(priorityExtensions); - if (result) return result; - } - if (secondaryExtensions && !typesScopeOnly) { - traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); - return lookup(secondaryExtensions); - } - function lookup(extensions2) { - return forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - normalizeSlashes(directory), - (ancestorDirectory) => { - if (getBaseFileName(ancestorDirectory) !== "node_modules") { - const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, ancestorDirectory, redirectedReference, state); - if (resolutionFromCache) { - return resolutionFromCache; - } - return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference)); - } - } - ); - } -} -function forEachAncestorDirectoryStoppingAtGlobalCache(host, directory, callback) { - var _a; - const globalCache = (_a = host == null ? void 0 : host.getGlobalTypingsCacheLocation) == null ? void 0 : _a.call(host); - return forEachAncestorDirectory(directory, (ancestorDirectory) => { - const result = callback(ancestorDirectory); - if (result !== void 0) return result; - if (ancestorDirectory === globalCache) return false; - }) || void 0; -} -function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { - const nodeModulesFolder = combinePaths(directory, "node_modules"); - const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host); - if (!nodeModulesFolderExists && state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder); - } - if (!typesScopeOnly) { - const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference); - if (packageResult) { - return packageResult; - } - } - if (extensions & 4 /* Declaration */) { - const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types"); - let nodeModulesAtTypesExists = nodeModulesFolderExists; - if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesAtTypes2); - } - nodeModulesAtTypesExists = false; - } - return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference); - } -} -function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) { - var _a, _b; - const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName)); - const { packageName, rest } = parsePackageName(moduleName); - const packageDirectory = combinePaths(nodeModulesDirectory, packageName); - let rootPackageInfo; - let packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state); - if (rest !== "" && packageInfo && (!(state.features & 8 /* Exports */) || !hasProperty(((_a = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a.contents.packageJsonContent) ?? emptyArray, "exports"))) { - const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state); - if (fromFile) { - return noPackageId(fromFile); - } - const fromDirectory = loadNodeModuleFromDirectoryWorker( - extensions, - candidate, - !nodeModulesDirectoryExists, - state, - packageInfo - ); - return withPackageId(packageInfo, fromDirectory, state); - } - const loader = (extensions2, candidate2, onlyRecordFailures, state2) => { - let pathAndExtension = (rest || !(state2.features & 32 /* EsmMode */)) && loadModuleFromFile(extensions2, candidate2, onlyRecordFailures, state2) || loadNodeModuleFromDirectoryWorker( - extensions2, - candidate2, - onlyRecordFailures, - state2, - packageInfo - ); - if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) { - pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2); - } - return withPackageId(packageInfo, pathAndExtension, state2); - }; - if (rest !== "") { - packageInfo = rootPackageInfo ?? getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state); - } - if (packageInfo) { - state.resolvedPackageDirectory = true; - } - if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & 8 /* Exports */) { - return (_b = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _b.value; - } - const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0; - if (versionPaths) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest); - } - const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host); - const pathPatterns = tryParsePatterns(versionPaths.paths); - const fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, versionPaths.paths, pathPatterns, loader, !packageDirectoryExists, state); - if (fromPaths) { - return fromPaths.value; - } - } - return loader(extensions, candidate, !nodeModulesDirectoryExists, state); -} -function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) { - const matchedPattern = matchPatternOrExact(pathPatterns, moduleName); - if (matchedPattern) { - const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName); - const matchedPatternText = isString(matchedPattern) ? matchedPattern : patternText(matchedPattern); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText); - } - const resolved = forEach(paths[matchedPatternText], (subst) => { - const path = matchedStar ? replaceFirstStar(subst, matchedStar) : subst; - const candidate = normalizePath(combinePaths(baseDirectory, path)); - if (state.traceEnabled) { - trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path); - } - const extension = tryGetExtensionFromPath2(subst); - if (extension !== void 0) { - const path2 = tryFile(candidate, onlyRecordFailures, state); - if (path2 !== void 0) { - return noPackageId({ path: path2, ext: extension, resolvedUsingTsExtension: void 0 }); - } - } - return loader(extensions, candidate, onlyRecordFailures || !directoryProbablyExists(getDirectoryPath(candidate), state.host), state); - }); - return { value: resolved }; - } -} -var mangledScopedPackageSeparator = "__"; -function mangleScopedPackageNameWithTrace(packageName, state) { - const mangled = mangleScopedPackageName(packageName); - if (state.traceEnabled && mangled !== packageName) { - trace(state.host, Diagnostics.Scoped_package_detected_looking_in_0, mangled); - } - return mangled; -} -function getTypesPackageName(packageName) { - return `@types/${mangleScopedPackageName(packageName)}`; -} -function mangleScopedPackageName(packageName) { - if (startsWith(packageName, "@")) { - const replaceSlash = packageName.replace(directorySeparator, mangledScopedPackageSeparator); - if (replaceSlash !== packageName) { - return replaceSlash.slice(1); - } - } - return packageName; -} -function getPackageNameFromTypesPackageName(mangledName) { - const withoutAtTypePrefix = removePrefix(mangledName, "@types/"); - if (withoutAtTypePrefix !== mangledName) { - return unmangleScopedPackageName(withoutAtTypePrefix); - } - return mangledName; -} -function unmangleScopedPackageName(typesPackageName) { - return typesPackageName.includes(mangledScopedPackageSeparator) ? "@" + typesPackageName.replace(mangledScopedPackageSeparator, directorySeparator) : typesPackageName; -} -function tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, containingDirectory, redirectedReference, state) { - const result = cache && cache.getFromNonRelativeNameCache(moduleName, mode, containingDirectory, redirectedReference); - if (result) { - if (state.traceEnabled) { - trace(state.host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory); - } - state.resultFromCache = result; - return { - value: result.resolvedModule && { - path: result.resolvedModule.resolvedFileName, - originalPath: result.resolvedModule.originalPath || true, - extension: result.resolvedModule.extension, - packageId: result.resolvedModule.packageId, - resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension - } - }; - } -} -function classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) { - const traceEnabled = isTraceEnabled(compilerOptions, host); - const failedLookupLocations = []; - const affectingLocations = []; - const containingDirectory = getDirectoryPath(containingFile); - const diagnostics = []; - const state = { - compilerOptions, - host, - traceEnabled, - failedLookupLocations, - affectingLocations, - packageJsonInfoCache: cache, - features: 0 /* None */, - conditions: [], - requestContainingDirectory: containingDirectory, - reportDiagnostic: (diag2) => void diagnostics.push(diag2), - isConfigLookup: false, - candidateIsFromPackageJsonField: false, - resolvedPackageDirectory: false - }; - const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0)); - return createResolvedModuleWithFailedLookupLocationsHandlingSymlink( - moduleName, - resolved && resolved.value, - (resolved == null ? void 0 : resolved.value) && pathContainsNodeModules(resolved.value.path), - failedLookupLocations, - affectingLocations, - diagnostics, - state, - cache - ); - function tryResolve(extensions) { - const resolvedUsingSettings = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loadModuleFromFileNoPackageId, state); - if (resolvedUsingSettings) { - return { value: resolvedUsingSettings }; - } - if (!isExternalModuleNameRelative(moduleName)) { - const resolved2 = forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - containingDirectory, - (directory) => { - const resolutionFromCache = tryFindNonRelativeModuleNameInCache( - cache, - moduleName, - /*mode*/ - void 0, - directory, - redirectedReference, - state - ); - if (resolutionFromCache) { - return resolutionFromCache; - } - const searchName = normalizePath(combinePaths(directory, moduleName)); - return toSearchResult(loadModuleFromFileNoPackageId( - extensions, - searchName, - /*onlyRecordFailures*/ - false, - state - )); - } - ); - if (resolved2) return resolved2; - if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) { - let resolved3 = loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state); - if (extensions & 4 /* Declaration */) resolved3 ?? (resolved3 = resolveFromTypeRoot(moduleName, state)); - return resolved3; - } - } else { - const candidate = normalizePath(combinePaths(containingDirectory, moduleName)); - return toSearchResult(loadModuleFromFileNoPackageId( - extensions, - candidate, - /*onlyRecordFailures*/ - false, - state - )); - } - } -} -function resolveFromTypeRoot(moduleName, state) { - if (!state.compilerOptions.typeRoots) return; - for (const typeRoot of state.compilerOptions.typeRoots) { - const candidate = getCandidateFromTypeRoot(typeRoot, moduleName, state); - const directoryExists = directoryProbablyExists(typeRoot, state.host); - if (!directoryExists && state.traceEnabled) { - trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, typeRoot); - } - const resolvedFromFile = loadModuleFromFile(4 /* Declaration */, candidate, !directoryExists, state); - if (resolvedFromFile) { - const packageDirectory = parseNodeModuleFromPath(resolvedFromFile.path); - const packageInfo = packageDirectory ? getPackageJsonInfo( - packageDirectory, - /*onlyRecordFailures*/ - false, - state - ) : void 0; - return toSearchResult(withPackageId(packageInfo, resolvedFromFile, state)); - } - const resolved = loadNodeModuleFromDirectory(4 /* Declaration */, candidate, !directoryExists, state); - if (resolved) return toSearchResult(resolved); - } -} -function shouldAllowImportingTsExtension(compilerOptions, fromFileName) { - return getAllowImportingTsExtensions(compilerOptions) || !!fromFileName && isDeclarationFileName(fromFileName); -} -function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) { - const traceEnabled = isTraceEnabled(compilerOptions, host); - if (traceEnabled) { - trace(host, Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, projectName, moduleName, globalCache); - } - const failedLookupLocations = []; - const affectingLocations = []; - const diagnostics = []; - const state = { - compilerOptions, - host, - traceEnabled, - failedLookupLocations, - affectingLocations, - packageJsonInfoCache, - features: 0 /* None */, - conditions: [], - requestContainingDirectory: void 0, - reportDiagnostic: (diag2) => void diagnostics.push(diag2), - isConfigLookup: false, - candidateIsFromPackageJsonField: false, - resolvedPackageDirectory: false - }; - const resolved = loadModuleFromImmediateNodeModulesDirectory( - 4 /* Declaration */, - moduleName, - globalCache, - state, - /*typesScopeOnly*/ - false, - /*cache*/ - void 0, - /*redirectedReference*/ - void 0 - ); - return createResolvedModuleWithFailedLookupLocations( - resolved, - /*isExternalLibraryImport*/ - true, - failedLookupLocations, - affectingLocations, - diagnostics, - state.resultFromCache, - /*cache*/ - void 0 - ); -} -function toSearchResult(value) { - return value !== void 0 ? { value } : void 0; -} -function traceIfEnabled(state, diagnostic, ...args) { - if (state.traceEnabled) { - trace(state.host, diagnostic, ...args); - } -} -function useCaseSensitiveFileNames(state) { - return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); -} - -// src/compiler/binder.ts -function getModuleInstanceState(node, visited) { - if (node.body && !node.body.parent) { - setParent(node.body, node); - setParentRecursive( - node.body, - /*incremental*/ - false - ); - } - return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */; -} -function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) { - const nodeId = getNodeId(node); - if (visited.has(nodeId)) { - return visited.get(nodeId) || 0 /* NonInstantiated */; - } - visited.set(nodeId, void 0); - const result = getModuleInstanceStateWorker(node, visited); - visited.set(nodeId, result); - return result; -} -function getModuleInstanceStateWorker(node, visited) { - switch (node.kind) { - // 1. interface declarations, type alias declarations - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - return 0 /* NonInstantiated */; - // 2. const enum declarations - case 266 /* EnumDeclaration */: - if (isEnumConst(node)) { - return 2 /* ConstEnumOnly */; - } - break; - // 3. non-exported import declarations - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - if (!hasSyntacticModifier(node, 32 /* Export */)) { - return 0 /* NonInstantiated */; - } - break; - // 4. Export alias declarations pointing at only uninstantiated modules or things uninstantiated modules contain - case 278 /* ExportDeclaration */: - const exportDeclaration = node; - if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { - let state = 0 /* NonInstantiated */; - for (const specifier of exportDeclaration.exportClause.elements) { - const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); - if (specifierState > state) { - state = specifierState; - } - if (state === 1 /* Instantiated */) { - return state; - } - } - return state; - } - break; - // 5. other uninstantiated module declarations. - case 268 /* ModuleBlock */: { - let state = 0 /* NonInstantiated */; - forEachChild(node, (n) => { - const childState = getModuleInstanceStateCached(n, visited); - switch (childState) { - case 0 /* NonInstantiated */: - return; - case 2 /* ConstEnumOnly */: - state = 2 /* ConstEnumOnly */; - return; - case 1 /* Instantiated */: - state = 1 /* Instantiated */; - return true; - default: - Debug.assertNever(childState); - } - }); - return state; - } - case 267 /* ModuleDeclaration */: - return getModuleInstanceState(node, visited); - case 80 /* Identifier */: - if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { - return 0 /* NonInstantiated */; - } - } - return 1 /* Instantiated */; -} -function getModuleInstanceStateForAliasTarget(specifier, visited) { - const name = specifier.propertyName || specifier.name; - if (name.kind !== 80 /* Identifier */) { - return 1 /* Instantiated */; - } - let p = specifier.parent; - while (p) { - if (isBlock(p) || isModuleBlock(p) || isSourceFile(p)) { - const statements = p.statements; - let found; - for (const statement of statements) { - if (nodeHasName(statement, name)) { - if (!statement.parent) { - setParent(statement, p); - setParentRecursive( - statement, - /*incremental*/ - false - ); - } - const state = getModuleInstanceStateCached(statement, visited); - if (found === void 0 || state > found) { - found = state; - } - if (found === 1 /* Instantiated */) { - return found; - } - if (statement.kind === 271 /* ImportEqualsDeclaration */) { - found = 1 /* Instantiated */; - } - } - } - if (found !== void 0) { - return found; - } - } - p = p.parent; - } - return 1 /* Instantiated */; -} -function createFlowNode(flags, node, antecedent) { - return Debug.attachFlowNodeDebugInfo({ flags, id: 0, node, antecedent }); -} -var binder = /* @__PURE__ */ createBinder(); -function bindSourceFile(file, options) { - mark("beforeBind"); - binder(file, options); - mark("afterBind"); - measure("Bind", "beforeBind", "afterBind"); -} -function createBinder() { - var file; - var options; - var languageVersion; - var parent; - var container; - var thisParentContainer; - var blockScopeContainer; - var lastContainer; - var delayedTypeAliases; - var seenThisKeyword; - var jsDocImports; - var currentFlow; - var currentBreakTarget; - var currentContinueTarget; - var currentReturnTarget; - var currentTrueTarget; - var currentFalseTarget; - var currentExceptionTarget; - var preSwitchCaseFlow; - var activeLabelList; - var hasExplicitReturn; - var inReturnPosition; - var hasFlowEffects; - var emitFlags; - var inStrictMode; - var inAssignmentPattern = false; - var symbolCount = 0; - var Symbol13; - var classifiableNames; - var unreachableFlow = createFlowNode( - 1 /* Unreachable */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - var reportedUnreachableFlow = createFlowNode( - 1 /* Unreachable */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - var bindBinaryExpressionFlow = createBindBinaryExpressionFlow(); - return bindSourceFile2; - function createDiagnosticForNode2(node, message, ...args) { - return createDiagnosticForNodeInSourceFile(getSourceFileOfNode(node) || file, node, message, ...args); - } - function bindSourceFile2(f, opts) { - var _a, _b; - file = f; - options = opts; - languageVersion = getEmitScriptTarget(options); - inStrictMode = bindInStrictMode(file, opts); - classifiableNames = /* @__PURE__ */ new Set(); - symbolCount = 0; - Symbol13 = objectAllocator.getSymbolConstructor(); - Debug.attachFlowNodeDebugInfo(unreachableFlow); - Debug.attachFlowNodeDebugInfo(reportedUnreachableFlow); - if (!file.locals) { - (_a = tracing) == null ? void 0 : _a.push( - tracing.Phase.Bind, - "bindSourceFile", - { path: file.path }, - /*separateBeginAndEnd*/ - true - ); - bind(file); - (_b = tracing) == null ? void 0 : _b.pop(); - file.symbolCount = symbolCount; - file.classifiableNames = classifiableNames; - delayedBindJSDocTypedefTag(); - bindJSDocImports(); - } - file = void 0; - options = void 0; - languageVersion = void 0; - parent = void 0; - container = void 0; - thisParentContainer = void 0; - blockScopeContainer = void 0; - lastContainer = void 0; - delayedTypeAliases = void 0; - jsDocImports = void 0; - seenThisKeyword = false; - currentFlow = void 0; - currentBreakTarget = void 0; - currentContinueTarget = void 0; - currentReturnTarget = void 0; - currentTrueTarget = void 0; - currentFalseTarget = void 0; - currentExceptionTarget = void 0; - activeLabelList = void 0; - hasExplicitReturn = false; - inReturnPosition = false; - hasFlowEffects = false; - inAssignmentPattern = false; - emitFlags = 0 /* None */; - } - function bindInStrictMode(file2, opts) { - if (getStrictOptionValue(opts, "alwaysStrict") && !file2.isDeclarationFile) { - return true; - } else { - return !!file2.externalModuleIndicator; - } - } - function createSymbol(flags, name) { - symbolCount++; - return new Symbol13(flags, name); - } - function addDeclarationToSymbol(symbol, node, symbolFlags) { - symbol.flags |= symbolFlags; - node.symbol = symbol; - symbol.declarations = appendIfUnique(symbol.declarations, node); - if (symbolFlags & (32 /* Class */ | 384 /* Enum */ | 1536 /* Module */ | 3 /* Variable */) && !symbol.exports) { - symbol.exports = createSymbolTable(); - } - if (symbolFlags & (32 /* Class */ | 64 /* Interface */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && !symbol.members) { - symbol.members = createSymbolTable(); - } - if (symbol.constEnumOnlyModule && symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */)) { - symbol.constEnumOnlyModule = false; - } - if (symbolFlags & 111551 /* Value */) { - setValueDeclaration(symbol, node); - } - } - function getDeclarationName(node) { - if (node.kind === 277 /* ExportAssignment */) { - return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; - } - const name = getNameOfDeclaration(node); - if (name) { - if (isAmbientModule(node)) { - const moduleName = getTextOfIdentifierOrLiteral(name); - return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; - } - if (name.kind === 167 /* ComputedPropertyName */) { - const nameExpression = name.expression; - if (isStringOrNumericLiteralLike(nameExpression)) { - return escapeLeadingUnderscores(nameExpression.text); - } - if (isSignedNumericLiteral(nameExpression)) { - return tokenToString(nameExpression.operator) + nameExpression.operand.text; - } else { - Debug.fail("Only computed properties with literal names have declaration names"); - } - } - if (isPrivateIdentifier(name)) { - const containingClass = getContainingClass(node); - if (!containingClass) { - return void 0; - } - const containingClassSymbol = containingClass.symbol; - return getSymbolNameForPrivateIdentifier(containingClassSymbol, name.escapedText); - } - if (isJsxNamespacedName(name)) { - return getEscapedTextOfJsxNamespacedName(name); - } - return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; - } - switch (node.kind) { - case 176 /* Constructor */: - return "__constructor" /* Constructor */; - case 184 /* FunctionType */: - case 179 /* CallSignature */: - case 323 /* JSDocSignature */: - return "__call" /* Call */; - case 185 /* ConstructorType */: - case 180 /* ConstructSignature */: - return "__new" /* New */; - case 181 /* IndexSignature */: - return "__index" /* Index */; - case 278 /* ExportDeclaration */: - return "__export" /* ExportStar */; - case 307 /* SourceFile */: - return "export=" /* ExportEquals */; - case 226 /* BinaryExpression */: - if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { - return "export=" /* ExportEquals */; - } - Debug.fail("Unknown binary declaration kind"); - break; - case 317 /* JSDocFunctionType */: - return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; - case 169 /* Parameter */: - Debug.assert(node.parent.kind === 317 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); - const functionType = node.parent; - const index = functionType.parameters.indexOf(node); - return "arg" + index; - } - } - function getDisplayName(node) { - return isNamedDeclaration(node) ? declarationNameToString(node.name) : unescapeLeadingUnderscores(Debug.checkDefined(getDeclarationName(node))); - } - function declareSymbol(symbolTable, parent2, node, includes, excludes, isReplaceableByMethod, isComputedName) { - Debug.assert(isComputedName || !hasDynamicName(node)); - const isDefaultExport = hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) && moduleExportNameIsDefault(node.name); - const name = isComputedName ? "__computed" /* Computed */ : isDefaultExport && parent2 ? "default" /* Default */ : getDeclarationName(node); - let symbol; - if (name === void 0) { - symbol = createSymbol(0 /* None */, "__missing" /* Missing */); - } else { - symbol = symbolTable.get(name); - if (includes & 2885600 /* Classifiable */) { - classifiableNames.add(name); - } - if (!symbol) { - symbolTable.set(name, symbol = createSymbol(0 /* None */, name)); - if (isReplaceableByMethod) symbol.isReplaceableByMethod = true; - } else if (isReplaceableByMethod && !symbol.isReplaceableByMethod) { - return symbol; - } else if (symbol.flags & excludes) { - if (symbol.isReplaceableByMethod) { - symbolTable.set(name, symbol = createSymbol(0 /* None */, name)); - } else if (!(includes & 3 /* Variable */ && symbol.flags & 67108864 /* Assignment */)) { - if (isNamedDeclaration(node)) { - setParent(node.name, node); - } - let message = symbol.flags & 2 /* BlockScopedVariable */ ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; - let messageNeedsName = true; - if (symbol.flags & 384 /* Enum */ || includes & 384 /* Enum */) { - message = Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations; - messageNeedsName = false; - } - let multipleDefaultExports = false; - if (length(symbol.declarations)) { - if (isDefaultExport) { - message = Diagnostics.A_module_cannot_have_multiple_default_exports; - messageNeedsName = false; - multipleDefaultExports = true; - } else { - if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { - message = Diagnostics.A_module_cannot_have_multiple_default_exports; - messageNeedsName = false; - multipleDefaultExports = true; - } - } - } - const relatedInformation = []; - if (isTypeAliasDeclaration(node) && nodeIsMissing(node.type) && hasSyntacticModifier(node, 32 /* Export */) && symbol.flags & (2097152 /* Alias */ | 788968 /* Type */ | 1920 /* Namespace */)) { - relatedInformation.push(createDiagnosticForNode2(node, Diagnostics.Did_you_mean_0, `export type { ${unescapeLeadingUnderscores(node.name.escapedText)} }`)); - } - const declarationName = getNameOfDeclaration(node) || node; - forEach(symbol.declarations, (declaration, index) => { - const decl = getNameOfDeclaration(declaration) || declaration; - const diag3 = messageNeedsName ? createDiagnosticForNode2(decl, message, getDisplayName(declaration)) : createDiagnosticForNode2(decl, message); - file.bindDiagnostics.push( - multipleDefaultExports ? addRelatedInfo(diag3, createDiagnosticForNode2(declarationName, index === 0 ? Diagnostics.Another_export_default_is_here : Diagnostics.and_here)) : diag3 - ); - if (multipleDefaultExports) { - relatedInformation.push(createDiagnosticForNode2(decl, Diagnostics.The_first_export_default_is_here)); - } - }); - const diag2 = messageNeedsName ? createDiagnosticForNode2(declarationName, message, getDisplayName(node)) : createDiagnosticForNode2(declarationName, message); - file.bindDiagnostics.push(addRelatedInfo(diag2, ...relatedInformation)); - symbol = createSymbol(0 /* None */, name); - } - } - } - addDeclarationToSymbol(symbol, node, includes); - if (symbol.parent) { - Debug.assert(symbol.parent === parent2, "Existing symbol parent should match new one"); - } else { - symbol.parent = parent2; - } - return symbol; - } - function declareModuleMember(node, symbolFlags, symbolExcludes) { - const hasExportModifier = !!(getCombinedModifierFlags(node) & 32 /* Export */) || jsdocTreatAsExported(node); - if (symbolFlags & 2097152 /* Alias */) { - if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { - return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - } else { - Debug.assertNode(container, canHaveLocals); - return declareSymbol( - container.locals, - /*parent*/ - void 0, - node, - symbolFlags, - symbolExcludes - ); - } - } else { - if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); - if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { - if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 2048 /* Default */) && !getDeclarationName(node)) { - return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - } - const exportKind = symbolFlags & 111551 /* Value */ ? 1048576 /* ExportValue */ : 0; - const local = declareSymbol( - container.locals, - /*parent*/ - void 0, - node, - exportKind, - symbolExcludes - ); - local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - node.localSymbol = local; - return local; - } else { - Debug.assertNode(container, canHaveLocals); - return declareSymbol( - container.locals, - /*parent*/ - void 0, - node, - symbolFlags, - symbolExcludes - ); - } - } - } - function jsdocTreatAsExported(node) { - if (node.parent && isModuleDeclaration(node)) { - node = node.parent; - } - if (!isJSDocTypeAlias(node)) return false; - if (!isJSDocEnumTag(node) && !!node.fullName) return true; - const declName = getNameOfDeclaration(node); - if (!declName) return false; - if (isPropertyAccessEntityNameExpression(declName.parent) && isTopLevelNamespaceAssignment(declName.parent)) return true; - if (isDeclaration(declName.parent) && getCombinedModifierFlags(declName.parent) & 32 /* Export */) return true; - return false; - } - function bindContainer(node, containerFlags) { - const saveContainer = container; - const saveThisParentContainer = thisParentContainer; - const savedBlockScopeContainer = blockScopeContainer; - const savedInReturnPosition = inReturnPosition; - if (node.kind === 219 /* ArrowFunction */ && node.body.kind !== 241 /* Block */) inReturnPosition = true; - if (containerFlags & 1 /* IsContainer */) { - if (node.kind !== 219 /* ArrowFunction */) { - thisParentContainer = container; - } - container = blockScopeContainer = node; - if (containerFlags & 32 /* HasLocals */) { - container.locals = createSymbolTable(); - addToContainerChain(container); - } - } else if (containerFlags & 2 /* IsBlockScopedContainer */) { - blockScopeContainer = node; - if (containerFlags & 32 /* HasLocals */) { - blockScopeContainer.locals = void 0; - } - } - if (containerFlags & 4 /* IsControlFlowContainer */) { - const saveCurrentFlow = currentFlow; - const saveBreakTarget = currentBreakTarget; - const saveContinueTarget = currentContinueTarget; - const saveReturnTarget = currentReturnTarget; - const saveExceptionTarget = currentExceptionTarget; - const saveActiveLabelList = activeLabelList; - const saveHasExplicitReturn = hasExplicitReturn; - const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 1024 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; - if (!isImmediatelyInvoked) { - currentFlow = createFlowNode( - 2 /* Start */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { - currentFlow.node = node; - } - } - currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; - currentExceptionTarget = void 0; - currentBreakTarget = void 0; - currentContinueTarget = void 0; - activeLabelList = void 0; - hasExplicitReturn = false; - bindChildren(node); - node.flags &= ~5632 /* ReachabilityAndEmitFlags */; - if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { - node.flags |= 512 /* HasImplicitReturn */; - if (hasExplicitReturn) node.flags |= 1024 /* HasExplicitReturn */; - node.endFlowNode = currentFlow; - } - if (node.kind === 307 /* SourceFile */) { - node.flags |= emitFlags; - node.endFlowNode = currentFlow; - } - if (currentReturnTarget) { - addAntecedent(currentReturnTarget, currentFlow); - currentFlow = finishFlowLabel(currentReturnTarget); - if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { - node.returnFlowNode = currentFlow; - } - } - if (!isImmediatelyInvoked) { - currentFlow = saveCurrentFlow; - } - currentBreakTarget = saveBreakTarget; - currentContinueTarget = saveContinueTarget; - currentReturnTarget = saveReturnTarget; - currentExceptionTarget = saveExceptionTarget; - activeLabelList = saveActiveLabelList; - hasExplicitReturn = saveHasExplicitReturn; - } else if (containerFlags & 64 /* IsInterface */) { - seenThisKeyword = false; - bindChildren(node); - Debug.assertNotNode(node, isIdentifier); - node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; - } else { - bindChildren(node); - } - inReturnPosition = savedInReturnPosition; - container = saveContainer; - thisParentContainer = saveThisParentContainer; - blockScopeContainer = savedBlockScopeContainer; - } - function bindEachFunctionsFirst(nodes) { - bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); - bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); - } - function bindEach(nodes, bindFunction = bind) { - if (nodes === void 0) { - return; - } - forEach(nodes, bindFunction); - } - function bindEachChild(node) { - forEachChild(node, bind, bindEach); - } - function bindChildren(node) { - const saveInAssignmentPattern = inAssignmentPattern; - inAssignmentPattern = false; - if (checkUnreachable(node)) { - if (canHaveFlowNode(node) && node.flowNode) { - node.flowNode = void 0; - } - bindEachChild(node); - bindJSDoc(node); - inAssignmentPattern = saveInAssignmentPattern; - return; - } - if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && (!options.allowUnreachableCode || node.kind === 253 /* ReturnStatement */)) { - node.flowNode = currentFlow; - } - switch (node.kind) { - case 247 /* WhileStatement */: - bindWhileStatement(node); - break; - case 246 /* DoStatement */: - bindDoStatement(node); - break; - case 248 /* ForStatement */: - bindForStatement(node); - break; - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - bindForInOrForOfStatement(node); - break; - case 245 /* IfStatement */: - bindIfStatement(node); - break; - case 253 /* ReturnStatement */: - case 257 /* ThrowStatement */: - bindReturnOrThrow(node); - break; - case 252 /* BreakStatement */: - case 251 /* ContinueStatement */: - bindBreakOrContinueStatement(node); - break; - case 258 /* TryStatement */: - bindTryStatement(node); - break; - case 255 /* SwitchStatement */: - bindSwitchStatement(node); - break; - case 269 /* CaseBlock */: - bindCaseBlock(node); - break; - case 296 /* CaseClause */: - bindCaseClause(node); - break; - case 244 /* ExpressionStatement */: - bindExpressionStatement(node); - break; - case 256 /* LabeledStatement */: - bindLabeledStatement(node); - break; - case 224 /* PrefixUnaryExpression */: - bindPrefixUnaryExpressionFlow(node); - break; - case 225 /* PostfixUnaryExpression */: - bindPostfixUnaryExpressionFlow(node); - break; - case 226 /* BinaryExpression */: - if (isDestructuringAssignment(node)) { - inAssignmentPattern = saveInAssignmentPattern; - bindDestructuringAssignmentFlow(node); - return; - } - bindBinaryExpressionFlow(node); - break; - case 220 /* DeleteExpression */: - bindDeleteExpressionFlow(node); - break; - case 227 /* ConditionalExpression */: - bindConditionalExpressionFlow(node); - break; - case 260 /* VariableDeclaration */: - bindVariableDeclarationFlow(node); - break; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - bindAccessExpressionFlow(node); - break; - case 213 /* CallExpression */: - bindCallExpressionFlow(node); - break; - case 235 /* NonNullExpression */: - bindNonNullExpressionFlow(node); - break; - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - bindJSDocTypeAlias(node); - break; - case 351 /* JSDocImportTag */: - bindJSDocImportTag(node); - break; - // In source files and blocks, bind functions first to match hoisting that occurs at runtime - case 307 /* SourceFile */: { - bindEachFunctionsFirst(node.statements); - bind(node.endOfFileToken); - break; - } - case 241 /* Block */: - case 268 /* ModuleBlock */: - bindEachFunctionsFirst(node.statements); - break; - case 208 /* BindingElement */: - bindBindingElementFlow(node); - break; - case 169 /* Parameter */: - bindParameterFlow(node); - break; - case 210 /* ObjectLiteralExpression */: - case 209 /* ArrayLiteralExpression */: - case 303 /* PropertyAssignment */: - case 230 /* SpreadElement */: - inAssignmentPattern = saveInAssignmentPattern; - // falls through - default: - bindEachChild(node); - break; - } - bindJSDoc(node); - inAssignmentPattern = saveInAssignmentPattern; - } - function isNarrowingExpression(expr) { - switch (expr.kind) { - case 80 /* Identifier */: - case 110 /* ThisKeyword */: - return true; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return containsNarrowableReference(expr); - case 213 /* CallExpression */: - return hasNarrowableArgument(expr); - case 217 /* ParenthesizedExpression */: - if (isJSDocTypeAssertion(expr)) { - return false; - } - // fallthrough - case 235 /* NonNullExpression */: - return isNarrowingExpression(expr.expression); - case 226 /* BinaryExpression */: - return isNarrowingBinaryExpression(expr); - case 224 /* PrefixUnaryExpression */: - return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); - case 221 /* TypeOfExpression */: - return isNarrowingExpression(expr.expression); - } - return false; - } - function isNarrowableReference(expr) { - switch (expr.kind) { - case 80 /* Identifier */: - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 236 /* MetaProperty */: - return true; - case 211 /* PropertyAccessExpression */: - case 217 /* ParenthesizedExpression */: - case 235 /* NonNullExpression */: - return isNarrowableReference(expr.expression); - case 212 /* ElementAccessExpression */: - return (isStringOrNumericLiteralLike(expr.argumentExpression) || isEntityNameExpression(expr.argumentExpression)) && isNarrowableReference(expr.expression); - case 226 /* BinaryExpression */: - return expr.operatorToken.kind === 28 /* CommaToken */ && isNarrowableReference(expr.right) || isAssignmentOperator(expr.operatorToken.kind) && isLeftHandSideExpression(expr.left); - } - return false; - } - function containsNarrowableReference(expr) { - return isNarrowableReference(expr) || isOptionalChain(expr) && containsNarrowableReference(expr.expression); - } - function hasNarrowableArgument(expr) { - if (expr.arguments) { - for (const argument of expr.arguments) { - if (containsNarrowableReference(argument)) { - return true; - } - } - } - if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { - return true; - } - return false; - } - function isNarrowingTypeofOperands(expr1, expr2) { - return isTypeOfExpression(expr1) && isNarrowableOperand(expr1.expression) && isStringLiteralLike(expr2); - } - function isNarrowingBinaryExpression(expr) { - switch (expr.operatorToken.kind) { - case 64 /* EqualsToken */: - case 76 /* BarBarEqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return containsNarrowableReference(expr.left); - case 35 /* EqualsEqualsToken */: - case 36 /* ExclamationEqualsToken */: - case 37 /* EqualsEqualsEqualsToken */: - case 38 /* ExclamationEqualsEqualsToken */: - const left = skipParentheses(expr.left); - const right = skipParentheses(expr.right); - return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right)); - case 104 /* InstanceOfKeyword */: - return isNarrowableOperand(expr.left); - case 103 /* InKeyword */: - return isNarrowingExpression(expr.right); - case 28 /* CommaToken */: - return isNarrowingExpression(expr.right); - } - return false; - } - function isNarrowableOperand(expr) { - switch (expr.kind) { - case 217 /* ParenthesizedExpression */: - return isNarrowableOperand(expr.expression); - case 226 /* BinaryExpression */: - switch (expr.operatorToken.kind) { - case 64 /* EqualsToken */: - return isNarrowableOperand(expr.left); - case 28 /* CommaToken */: - return isNarrowableOperand(expr.right); - } - } - return containsNarrowableReference(expr); - } - function createBranchLabel() { - return createFlowNode( - 4 /* BranchLabel */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - } - function createLoopLabel() { - return createFlowNode( - 8 /* LoopLabel */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - } - function createReduceLabel(target, antecedents, antecedent) { - return createFlowNode(1024 /* ReduceLabel */, { target, antecedents }, antecedent); - } - function setFlowNodeReferenced(flow) { - flow.flags |= flow.flags & 2048 /* Referenced */ ? 4096 /* Shared */ : 2048 /* Referenced */; - } - function addAntecedent(label, antecedent) { - if (!(antecedent.flags & 1 /* Unreachable */) && !contains(label.antecedent, antecedent)) { - (label.antecedent || (label.antecedent = [])).push(antecedent); - setFlowNodeReferenced(antecedent); - } - } - function createFlowCondition(flags, antecedent, expression) { - if (antecedent.flags & 1 /* Unreachable */) { - return antecedent; - } - if (!expression) { - return flags & 32 /* TrueCondition */ ? antecedent : unreachableFlow; - } - if ((expression.kind === 112 /* TrueKeyword */ && flags & 64 /* FalseCondition */ || expression.kind === 97 /* FalseKeyword */ && flags & 32 /* TrueCondition */) && !isExpressionOfOptionalChainRoot(expression) && !isNullishCoalesce(expression.parent)) { - return unreachableFlow; - } - if (!isNarrowingExpression(expression)) { - return antecedent; - } - setFlowNodeReferenced(antecedent); - return createFlowNode(flags, expression, antecedent); - } - function createFlowSwitchClause(antecedent, switchStatement, clauseStart, clauseEnd) { - setFlowNodeReferenced(antecedent); - return createFlowNode(128 /* SwitchClause */, { switchStatement, clauseStart, clauseEnd }, antecedent); - } - function createFlowMutation(flags, antecedent, node) { - setFlowNodeReferenced(antecedent); - hasFlowEffects = true; - const result = createFlowNode(flags, node, antecedent); - if (currentExceptionTarget) { - addAntecedent(currentExceptionTarget, result); - } - return result; - } - function createFlowCall(antecedent, node) { - setFlowNodeReferenced(antecedent); - hasFlowEffects = true; - return createFlowNode(512 /* Call */, node, antecedent); - } - function finishFlowLabel(flow) { - const antecedents = flow.antecedent; - if (!antecedents) { - return unreachableFlow; - } - if (antecedents.length === 1) { - return antecedents[0]; - } - return flow; - } - function isStatementCondition(node) { - const parent2 = node.parent; - switch (parent2.kind) { - case 245 /* IfStatement */: - case 247 /* WhileStatement */: - case 246 /* DoStatement */: - return parent2.expression === node; - case 248 /* ForStatement */: - case 227 /* ConditionalExpression */: - return parent2.condition === node; - } - return false; - } - function isLogicalExpression(node) { - while (true) { - if (node.kind === 217 /* ParenthesizedExpression */) { - node = node.expression; - } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { - node = node.operand; - } else { - return isLogicalOrCoalescingBinaryExpression(node); - } - } - } - function isLogicalAssignmentExpression(node) { - return isLogicalOrCoalescingAssignmentExpression(skipParentheses(node)); - } - function isTopLevelLogicalExpression(node) { - while (isParenthesizedExpression(node.parent) || isPrefixUnaryExpression(node.parent) && node.parent.operator === 54 /* ExclamationToken */) { - node = node.parent; - } - return !isStatementCondition(node) && !isLogicalExpression(node.parent) && !(isOptionalChain(node.parent) && node.parent.expression === node); - } - function doWithConditionalBranches(action, value, trueTarget, falseTarget) { - const savedTrueTarget = currentTrueTarget; - const savedFalseTarget = currentFalseTarget; - currentTrueTarget = trueTarget; - currentFalseTarget = falseTarget; - action(value); - currentTrueTarget = savedTrueTarget; - currentFalseTarget = savedFalseTarget; - } - function bindCondition(node, trueTarget, falseTarget) { - doWithConditionalBranches(bind, node, trueTarget, falseTarget); - if (!node || !isLogicalAssignmentExpression(node) && !isLogicalExpression(node) && !(isOptionalChain(node) && isOutermostOptionalChain(node))) { - addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); - addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); - } - } - function bindIterativeStatement(node, breakTarget, continueTarget) { - const saveBreakTarget = currentBreakTarget; - const saveContinueTarget = currentContinueTarget; - currentBreakTarget = breakTarget; - currentContinueTarget = continueTarget; - bind(node); - currentBreakTarget = saveBreakTarget; - currentContinueTarget = saveContinueTarget; - } - function setContinueTarget(node, target) { - let label = activeLabelList; - while (label && node.parent.kind === 256 /* LabeledStatement */) { - label.continueTarget = target; - label = label.next; - node = node.parent; - } - return target; - } - function bindWhileStatement(node) { - const preWhileLabel = setContinueTarget(node, createLoopLabel()); - const preBodyLabel = createBranchLabel(); - const postWhileLabel = createBranchLabel(); - addAntecedent(preWhileLabel, currentFlow); - currentFlow = preWhileLabel; - bindCondition(node.expression, preBodyLabel, postWhileLabel); - currentFlow = finishFlowLabel(preBodyLabel); - bindIterativeStatement(node.statement, postWhileLabel, preWhileLabel); - addAntecedent(preWhileLabel, currentFlow); - currentFlow = finishFlowLabel(postWhileLabel); - } - function bindDoStatement(node) { - const preDoLabel = createLoopLabel(); - const preConditionLabel = setContinueTarget(node, createBranchLabel()); - const postDoLabel = createBranchLabel(); - addAntecedent(preDoLabel, currentFlow); - currentFlow = preDoLabel; - bindIterativeStatement(node.statement, postDoLabel, preConditionLabel); - addAntecedent(preConditionLabel, currentFlow); - currentFlow = finishFlowLabel(preConditionLabel); - bindCondition(node.expression, preDoLabel, postDoLabel); - currentFlow = finishFlowLabel(postDoLabel); - } - function bindForStatement(node) { - const preLoopLabel = setContinueTarget(node, createLoopLabel()); - const preBodyLabel = createBranchLabel(); - const preIncrementorLabel = createBranchLabel(); - const postLoopLabel = createBranchLabel(); - bind(node.initializer); - addAntecedent(preLoopLabel, currentFlow); - currentFlow = preLoopLabel; - bindCondition(node.condition, preBodyLabel, postLoopLabel); - currentFlow = finishFlowLabel(preBodyLabel); - bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel); - addAntecedent(preIncrementorLabel, currentFlow); - currentFlow = finishFlowLabel(preIncrementorLabel); - bind(node.incrementor); - addAntecedent(preLoopLabel, currentFlow); - currentFlow = finishFlowLabel(postLoopLabel); - } - function bindForInOrForOfStatement(node) { - const preLoopLabel = setContinueTarget(node, createLoopLabel()); - const postLoopLabel = createBranchLabel(); - bind(node.expression); - addAntecedent(preLoopLabel, currentFlow); - currentFlow = preLoopLabel; - if (node.kind === 250 /* ForOfStatement */) { - bind(node.awaitModifier); - } - addAntecedent(postLoopLabel, currentFlow); - bind(node.initializer); - if (node.initializer.kind !== 261 /* VariableDeclarationList */) { - bindAssignmentTargetFlow(node.initializer); - } - bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); - addAntecedent(preLoopLabel, currentFlow); - currentFlow = finishFlowLabel(postLoopLabel); - } - function bindIfStatement(node) { - const thenLabel = createBranchLabel(); - const elseLabel = createBranchLabel(); - const postIfLabel = createBranchLabel(); - bindCondition(node.expression, thenLabel, elseLabel); - currentFlow = finishFlowLabel(thenLabel); - bind(node.thenStatement); - addAntecedent(postIfLabel, currentFlow); - currentFlow = finishFlowLabel(elseLabel); - bind(node.elseStatement); - addAntecedent(postIfLabel, currentFlow); - currentFlow = finishFlowLabel(postIfLabel); - } - function bindReturnOrThrow(node) { - const savedInReturnPosition = inReturnPosition; - inReturnPosition = true; - bind(node.expression); - inReturnPosition = savedInReturnPosition; - if (node.kind === 253 /* ReturnStatement */) { - hasExplicitReturn = true; - if (currentReturnTarget) { - addAntecedent(currentReturnTarget, currentFlow); - } - } - currentFlow = unreachableFlow; - hasFlowEffects = true; - } - function findActiveLabel(name) { - for (let label = activeLabelList; label; label = label.next) { - if (label.name === name) { - return label; - } - } - return void 0; - } - function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { - const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; - if (flowLabel) { - addAntecedent(flowLabel, currentFlow); - currentFlow = unreachableFlow; - hasFlowEffects = true; - } - } - function bindBreakOrContinueStatement(node) { - bind(node.label); - if (node.label) { - const activeLabel = findActiveLabel(node.label.escapedText); - if (activeLabel) { - activeLabel.referenced = true; - bindBreakOrContinueFlow(node, activeLabel.breakTarget, activeLabel.continueTarget); - } - } else { - bindBreakOrContinueFlow(node, currentBreakTarget, currentContinueTarget); - } - } - function bindTryStatement(node) { - const saveReturnTarget = currentReturnTarget; - const saveExceptionTarget = currentExceptionTarget; - const normalExitLabel = createBranchLabel(); - const returnLabel = createBranchLabel(); - let exceptionLabel = createBranchLabel(); - if (node.finallyBlock) { - currentReturnTarget = returnLabel; - } - addAntecedent(exceptionLabel, currentFlow); - currentExceptionTarget = exceptionLabel; - bind(node.tryBlock); - addAntecedent(normalExitLabel, currentFlow); - if (node.catchClause) { - currentFlow = finishFlowLabel(exceptionLabel); - exceptionLabel = createBranchLabel(); - addAntecedent(exceptionLabel, currentFlow); - currentExceptionTarget = exceptionLabel; - bind(node.catchClause); - addAntecedent(normalExitLabel, currentFlow); - } - currentReturnTarget = saveReturnTarget; - currentExceptionTarget = saveExceptionTarget; - if (node.finallyBlock) { - const finallyLabel = createBranchLabel(); - finallyLabel.antecedent = concatenate(concatenate(normalExitLabel.antecedent, exceptionLabel.antecedent), returnLabel.antecedent); - currentFlow = finallyLabel; - bind(node.finallyBlock); - if (currentFlow.flags & 1 /* Unreachable */) { - currentFlow = unreachableFlow; - } else { - if (currentReturnTarget && returnLabel.antecedent) { - addAntecedent(currentReturnTarget, createReduceLabel(finallyLabel, returnLabel.antecedent, currentFlow)); - } - if (currentExceptionTarget && exceptionLabel.antecedent) { - addAntecedent(currentExceptionTarget, createReduceLabel(finallyLabel, exceptionLabel.antecedent, currentFlow)); - } - currentFlow = normalExitLabel.antecedent ? createReduceLabel(finallyLabel, normalExitLabel.antecedent, currentFlow) : unreachableFlow; - } - } else { - currentFlow = finishFlowLabel(normalExitLabel); - } - } - function bindSwitchStatement(node) { - const postSwitchLabel = createBranchLabel(); - bind(node.expression); - const saveBreakTarget = currentBreakTarget; - const savePreSwitchCaseFlow = preSwitchCaseFlow; - currentBreakTarget = postSwitchLabel; - preSwitchCaseFlow = currentFlow; - bind(node.caseBlock); - addAntecedent(postSwitchLabel, currentFlow); - const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); - node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedent; - if (!hasDefault) { - addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); - } - currentBreakTarget = saveBreakTarget; - preSwitchCaseFlow = savePreSwitchCaseFlow; - currentFlow = finishFlowLabel(postSwitchLabel); - } - function bindCaseBlock(node) { - const clauses = node.clauses; - const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression); - let fallthroughFlow = unreachableFlow; - for (let i = 0; i < clauses.length; i++) { - const clauseStart = i; - while (!clauses[i].statements.length && i + 1 < clauses.length) { - if (fallthroughFlow === unreachableFlow) { - currentFlow = preSwitchCaseFlow; - } - bind(clauses[i]); - i++; - } - const preCaseLabel = createBranchLabel(); - addAntecedent(preCaseLabel, isNarrowingSwitch ? createFlowSwitchClause(preSwitchCaseFlow, node.parent, clauseStart, i + 1) : preSwitchCaseFlow); - addAntecedent(preCaseLabel, fallthroughFlow); - currentFlow = finishFlowLabel(preCaseLabel); - const clause = clauses[i]; - bind(clause); - fallthroughFlow = currentFlow; - if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) { - clause.fallthroughFlowNode = currentFlow; - } - } - } - function bindCaseClause(node) { - const saveCurrentFlow = currentFlow; - currentFlow = preSwitchCaseFlow; - bind(node.expression); - currentFlow = saveCurrentFlow; - bindEach(node.statements); - } - function bindExpressionStatement(node) { - bind(node.expression); - maybeBindExpressionFlowIfCall(node.expression); - } - function maybeBindExpressionFlowIfCall(node) { - if (node.kind === 213 /* CallExpression */) { - const call = node; - if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { - currentFlow = createFlowCall(currentFlow, call); - } - } - } - function bindLabeledStatement(node) { - const postStatementLabel = createBranchLabel(); - activeLabelList = { - next: activeLabelList, - name: node.label.escapedText, - breakTarget: postStatementLabel, - continueTarget: void 0, - referenced: false - }; - bind(node.label); - bind(node.statement); - if (!activeLabelList.referenced && !options.allowUnusedLabels) { - errorOrSuggestionOnNode(unusedLabelIsError(options), node.label, Diagnostics.Unused_label); - } - activeLabelList = activeLabelList.next; - addAntecedent(postStatementLabel, currentFlow); - currentFlow = finishFlowLabel(postStatementLabel); - } - function bindDestructuringTargetFlow(node) { - if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { - bindAssignmentTargetFlow(node.left); - } else { - bindAssignmentTargetFlow(node); - } - } - function bindAssignmentTargetFlow(node) { - if (isNarrowableReference(node)) { - currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } else if (node.kind === 209 /* ArrayLiteralExpression */) { - for (const e of node.elements) { - if (e.kind === 230 /* SpreadElement */) { - bindAssignmentTargetFlow(e.expression); - } else { - bindDestructuringTargetFlow(e); - } - } - } else if (node.kind === 210 /* ObjectLiteralExpression */) { - for (const p of node.properties) { - if (p.kind === 303 /* PropertyAssignment */) { - bindDestructuringTargetFlow(p.initializer); - } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { - bindAssignmentTargetFlow(p.name); - } else if (p.kind === 305 /* SpreadAssignment */) { - bindAssignmentTargetFlow(p.expression); - } - } - } - } - function bindLogicalLikeExpression(node, trueTarget, falseTarget) { - const preRightLabel = createBranchLabel(); - if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ || node.operatorToken.kind === 77 /* AmpersandAmpersandEqualsToken */) { - bindCondition(node.left, preRightLabel, falseTarget); - } else { - bindCondition(node.left, trueTarget, preRightLabel); - } - currentFlow = finishFlowLabel(preRightLabel); - bind(node.operatorToken); - if (isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind)) { - doWithConditionalBranches(bind, node.right, trueTarget, falseTarget); - bindAssignmentTargetFlow(node.left); - addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); - addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); - } else { - bindCondition(node.right, trueTarget, falseTarget); - } - } - function bindPrefixUnaryExpressionFlow(node) { - if (node.operator === 54 /* ExclamationToken */) { - const saveTrueTarget = currentTrueTarget; - currentTrueTarget = currentFalseTarget; - currentFalseTarget = saveTrueTarget; - bindEachChild(node); - currentFalseTarget = currentTrueTarget; - currentTrueTarget = saveTrueTarget; - } else { - bindEachChild(node); - if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { - bindAssignmentTargetFlow(node.operand); - } - } - } - function bindPostfixUnaryExpressionFlow(node) { - bindEachChild(node); - if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { - bindAssignmentTargetFlow(node.operand); - } - } - function bindDestructuringAssignmentFlow(node) { - if (inAssignmentPattern) { - inAssignmentPattern = false; - bind(node.operatorToken); - bind(node.right); - inAssignmentPattern = true; - bind(node.left); - } else { - inAssignmentPattern = true; - bind(node.left); - inAssignmentPattern = false; - bind(node.operatorToken); - bind(node.right); - } - bindAssignmentTargetFlow(node.left); - } - function createBindBinaryExpressionFlow() { - return createBinaryExpressionTrampoline( - onEnter, - onLeft, - onOperator, - onRight, - onExit, - /*foldState*/ - void 0 - ); - function onEnter(node, state) { - if (state) { - state.stackIndex++; - setParent(node, parent); - const saveInStrictMode = inStrictMode; - bindWorker(node); - const saveParent = parent; - parent = node; - state.skip = false; - state.inStrictModeStack[state.stackIndex] = saveInStrictMode; - state.parentStack[state.stackIndex] = saveParent; - } else { - state = { - stackIndex: 0, - skip: false, - inStrictModeStack: [void 0], - parentStack: [void 0] - }; - } - const operator = node.operatorToken.kind; - if (isLogicalOrCoalescingBinaryOperator(operator) || isLogicalOrCoalescingAssignmentOperator(operator)) { - if (isTopLevelLogicalExpression(node)) { - const postExpressionLabel = createBranchLabel(); - const saveCurrentFlow = currentFlow; - const saveHasFlowEffects = hasFlowEffects; - hasFlowEffects = false; - bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel); - currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; - hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); - } else { - bindLogicalLikeExpression(node, currentTrueTarget, currentFalseTarget); - } - state.skip = true; - } - return state; - } - function onLeft(left, state, node) { - if (!state.skip) { - const maybeBound = maybeBind2(left); - if (node.operatorToken.kind === 28 /* CommaToken */) { - maybeBindExpressionFlowIfCall(left); - } - return maybeBound; - } - } - function onOperator(operatorToken, state, _node) { - if (!state.skip) { - bind(operatorToken); - } - } - function onRight(right, state, node) { - if (!state.skip) { - const maybeBound = maybeBind2(right); - if (node.operatorToken.kind === 28 /* CommaToken */) { - maybeBindExpressionFlowIfCall(right); - } - return maybeBound; - } - } - function onExit(node, state) { - if (!state.skip) { - const operator = node.operatorToken.kind; - if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { - bindAssignmentTargetFlow(node.left); - if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { - const elementAccess = node.left; - if (isNarrowableOperand(elementAccess.expression)) { - currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); - } - } - } - } - const savedInStrictMode = state.inStrictModeStack[state.stackIndex]; - const savedParent = state.parentStack[state.stackIndex]; - if (savedInStrictMode !== void 0) { - inStrictMode = savedInStrictMode; - } - if (savedParent !== void 0) { - parent = savedParent; - } - state.skip = false; - state.stackIndex--; - } - function maybeBind2(node) { - if (node && isBinaryExpression(node) && !isDestructuringAssignment(node)) { - return node; - } - bind(node); - } - } - function bindDeleteExpressionFlow(node) { - bindEachChild(node); - if (node.expression.kind === 211 /* PropertyAccessExpression */) { - bindAssignmentTargetFlow(node.expression); - } - } - function bindConditionalExpressionFlow(node) { - const trueLabel = createBranchLabel(); - const falseLabel = createBranchLabel(); - const postExpressionLabel = createBranchLabel(); - const saveCurrentFlow = currentFlow; - const saveHasFlowEffects = hasFlowEffects; - hasFlowEffects = false; - bindCondition(node.condition, trueLabel, falseLabel); - currentFlow = finishFlowLabel(trueLabel); - if (inReturnPosition) { - node.flowNodeWhenTrue = currentFlow; - } - bind(node.questionToken); - bind(node.whenTrue); - addAntecedent(postExpressionLabel, currentFlow); - currentFlow = finishFlowLabel(falseLabel); - if (inReturnPosition) { - node.flowNodeWhenFalse = currentFlow; - } - bind(node.colonToken); - bind(node.whenFalse); - addAntecedent(postExpressionLabel, currentFlow); - currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; - hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); - } - function bindInitializedVariableFlow(node) { - const name = !isOmittedExpression(node) ? node.name : void 0; - if (isBindingPattern(name)) { - for (const child of name.elements) { - bindInitializedVariableFlow(child); - } - } else { - currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); - } - } - function bindVariableDeclarationFlow(node) { - bindEachChild(node); - if (node.initializer || isForInOrOfStatement(node.parent.parent)) { - bindInitializedVariableFlow(node); - } - } - function bindBindingElementFlow(node) { - bind(node.dotDotDotToken); - bind(node.propertyName); - bindInitializer(node.initializer); - bind(node.name); - } - function bindParameterFlow(node) { - bindEach(node.modifiers); - bind(node.dotDotDotToken); - bind(node.questionToken); - bind(node.type); - bindInitializer(node.initializer); - bind(node.name); - } - function bindInitializer(node) { - if (!node) { - return; - } - const entryFlow = currentFlow; - bind(node); - if (entryFlow === unreachableFlow || entryFlow === currentFlow) { - return; - } - const exitFlow = createBranchLabel(); - addAntecedent(exitFlow, entryFlow); - addAntecedent(exitFlow, currentFlow); - currentFlow = finishFlowLabel(exitFlow); - } - function bindJSDocTypeAlias(node) { - bind(node.tagName); - if (node.kind !== 340 /* JSDocEnumTag */ && node.fullName) { - setParent(node.fullName, node); - setParentRecursive( - node.fullName, - /*incremental*/ - false - ); - } - if (typeof node.comment !== "string") { - bindEach(node.comment); - } - } - function bindJSDocClassTag(node) { - bindEachChild(node); - const host = getHostSignatureFromJSDoc(node); - if (host && host.kind !== 174 /* MethodDeclaration */) { - addDeclarationToSymbol(host.symbol, host, 32 /* Class */); - } - } - function bindJSDocImportTag(node) { - bind(node.tagName); - bind(node.moduleSpecifier); - bind(node.attributes); - if (typeof node.comment !== "string") { - bindEach(node.comment); - } - } - function bindOptionalExpression(node, trueTarget, falseTarget) { - doWithConditionalBranches(bind, node, trueTarget, falseTarget); - if (!isOptionalChain(node) || isOutermostOptionalChain(node)) { - addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); - addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); - } - } - function bindOptionalChainRest(node) { - switch (node.kind) { - case 211 /* PropertyAccessExpression */: - bind(node.questionDotToken); - bind(node.name); - break; - case 212 /* ElementAccessExpression */: - bind(node.questionDotToken); - bind(node.argumentExpression); - break; - case 213 /* CallExpression */: - bind(node.questionDotToken); - bindEach(node.typeArguments); - bindEach(node.arguments); - break; - } - } - function bindOptionalChain(node, trueTarget, falseTarget) { - const preChainLabel = isOptionalChainRoot(node) ? createBranchLabel() : void 0; - bindOptionalExpression(node.expression, preChainLabel || trueTarget, falseTarget); - if (preChainLabel) { - currentFlow = finishFlowLabel(preChainLabel); - } - doWithConditionalBranches(bindOptionalChainRest, node, trueTarget, falseTarget); - if (isOutermostOptionalChain(node)) { - addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); - addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); - } - } - function bindOptionalChainFlow(node) { - if (isTopLevelLogicalExpression(node)) { - const postExpressionLabel = createBranchLabel(); - const saveCurrentFlow = currentFlow; - const saveHasFlowEffects = hasFlowEffects; - bindOptionalChain(node, postExpressionLabel, postExpressionLabel); - currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; - hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); - } else { - bindOptionalChain(node, currentTrueTarget, currentFalseTarget); - } - } - function bindNonNullExpressionFlow(node) { - if (isOptionalChain(node)) { - bindOptionalChainFlow(node); - } else { - bindEachChild(node); - } - } - function bindAccessExpressionFlow(node) { - if (isOptionalChain(node)) { - bindOptionalChainFlow(node); - } else { - bindEachChild(node); - } - } - function bindCallExpressionFlow(node) { - if (isOptionalChain(node)) { - bindOptionalChainFlow(node); - } else { - const expr = skipParentheses(node.expression); - if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { - bindEach(node.typeArguments); - bindEach(node.arguments); - bind(node.expression); - } else { - bindEachChild(node); - if (node.expression.kind === 108 /* SuperKeyword */) { - currentFlow = createFlowCall(currentFlow, node); - } - } - } - if (node.expression.kind === 211 /* PropertyAccessExpression */) { - const propertyAccess = node.expression; - if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { - currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); - } - } - } - function addToContainerChain(next) { - if (lastContainer) { - lastContainer.nextContainer = next; - } - lastContainer = next; - } - function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { - switch (container.kind) { - // Modules, source files, and classes need specialized handling for how their - // members are declared (for example, a member of a class will go into a specific - // symbol table depending on if it is static or not). We defer to specialized - // handlers to take care of declaring these child members. - case 267 /* ModuleDeclaration */: - return declareModuleMember(node, symbolFlags, symbolExcludes); - case 307 /* SourceFile */: - return declareSourceFileMember(node, symbolFlags, symbolExcludes); - case 231 /* ClassExpression */: - case 263 /* ClassDeclaration */: - return declareClassMember(node, symbolFlags, symbolExcludes); - case 266 /* EnumDeclaration */: - return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); - case 187 /* TypeLiteral */: - case 322 /* JSDocTypeLiteral */: - case 210 /* ObjectLiteralExpression */: - case 264 /* InterfaceDeclaration */: - case 292 /* JsxAttributes */: - return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 323 /* JSDocSignature */: - case 181 /* IndexSignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 317 /* JSDocFunctionType */: - case 175 /* ClassStaticBlockDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 200 /* MappedType */: - if (container.locals) Debug.assertNode(container, canHaveLocals); - return declareSymbol( - container.locals, - /*parent*/ - void 0, - node, - symbolFlags, - symbolExcludes - ); - } - } - function declareClassMember(node, symbolFlags, symbolExcludes) { - return isStatic(node) ? declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes) : declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); - } - function declareSourceFileMember(node, symbolFlags, symbolExcludes) { - return isExternalModule(file) ? declareModuleMember(node, symbolFlags, symbolExcludes) : declareSymbol( - file.locals, - /*parent*/ - void 0, - node, - symbolFlags, - symbolExcludes - ); - } - function hasExportDeclarations(node) { - const body = isSourceFile(node) ? node : tryCast(node.body, isModuleBlock); - return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); - } - function setExportContextFlag(node) { - if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { - node.flags |= 128 /* ExportContext */; - } else { - node.flags &= ~128 /* ExportContext */; - } - } - function bindModuleDeclaration(node) { - setExportContextFlag(node); - if (isAmbientModule(node)) { - if (hasSyntacticModifier(node, 32 /* Export */)) { - errorOnFirstToken(node, Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible); - } - if (isModuleAugmentationExternal(node)) { - declareModuleSymbol(node); - } else { - let pattern; - if (node.name.kind === 11 /* StringLiteral */) { - const { text } = node.name; - pattern = tryParsePattern(text); - if (pattern === void 0) { - errorOnFirstToken(node.name, Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, text); - } - } - const symbol = declareSymbolAndAddToSymbolTable(node, 512 /* ValueModule */, 110735 /* ValueModuleExcludes */); - file.patternAmbientModules = append(file.patternAmbientModules, pattern && !isString(pattern) ? { pattern, symbol } : void 0); - } - } else { - const state = declareModuleSymbol(node); - if (state !== 0 /* NonInstantiated */) { - const { symbol } = node; - symbol.constEnumOnlyModule = !(symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */)) && state === 2 /* ConstEnumOnly */ && symbol.constEnumOnlyModule !== false; - } - } - } - function declareModuleSymbol(node) { - const state = getModuleInstanceState(node); - const instantiated = state !== 0 /* NonInstantiated */; - declareSymbolAndAddToSymbolTable( - node, - instantiated ? 512 /* ValueModule */ : 1024 /* NamespaceModule */, - instantiated ? 110735 /* ValueModuleExcludes */ : 0 /* NamespaceModuleExcludes */ - ); - return state; - } - function bindFunctionOrConstructorType(node) { - const symbol = createSymbol(131072 /* Signature */, getDeclarationName(node)); - addDeclarationToSymbol(symbol, node, 131072 /* Signature */); - const typeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); - addDeclarationToSymbol(typeLiteralSymbol, node, 2048 /* TypeLiteral */); - typeLiteralSymbol.members = createSymbolTable(); - typeLiteralSymbol.members.set(symbol.escapedName, symbol); - } - function bindObjectLiteralExpression(node) { - return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__object" /* Object */); - } - function bindJsxAttributes(node) { - return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__jsxAttributes" /* JSXAttributes */); - } - function bindJsxAttribute(node, symbolFlags, symbolExcludes) { - return declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes); - } - function bindAnonymousDeclaration(node, symbolFlags, name) { - const symbol = createSymbol(symbolFlags, name); - if (symbolFlags & (8 /* EnumMember */ | 106500 /* ClassMember */)) { - symbol.parent = container.symbol; - } - addDeclarationToSymbol(symbol, node, symbolFlags); - return symbol; - } - function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { - switch (blockScopeContainer.kind) { - case 267 /* ModuleDeclaration */: - declareModuleMember(node, symbolFlags, symbolExcludes); - break; - case 307 /* SourceFile */: - if (isExternalOrCommonJsModule(container)) { - declareModuleMember(node, symbolFlags, symbolExcludes); - break; - } - // falls through - default: - Debug.assertNode(blockScopeContainer, canHaveLocals); - if (!blockScopeContainer.locals) { - blockScopeContainer.locals = createSymbolTable(); - addToContainerChain(blockScopeContainer); - } - declareSymbol( - blockScopeContainer.locals, - /*parent*/ - void 0, - node, - symbolFlags, - symbolExcludes - ); - } - } - function delayedBindJSDocTypedefTag() { - if (!delayedTypeAliases) { - return; - } - const saveContainer = container; - const saveLastContainer = lastContainer; - const saveBlockScopeContainer = blockScopeContainer; - const saveParent = parent; - const saveCurrentFlow = currentFlow; - for (const typeAlias of delayedTypeAliases) { - const host = typeAlias.parent.parent; - container = getEnclosingContainer(host) || file; - blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; - currentFlow = createFlowNode( - 2 /* Start */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - parent = typeAlias; - bind(typeAlias.typeExpression); - const declName = getNameOfDeclaration(typeAlias); - if ((isJSDocEnumTag(typeAlias) || !typeAlias.fullName) && declName && isPropertyAccessEntityNameExpression(declName.parent)) { - const isTopLevel = isTopLevelNamespaceAssignment(declName.parent); - if (isTopLevel) { - bindPotentiallyMissingNamespaces( - file.symbol, - declName.parent, - isTopLevel, - !!findAncestor(declName, (d) => isPropertyAccessExpression(d) && d.name.escapedText === "prototype"), - /*containerIsClass*/ - false - ); - const oldContainer = container; - switch (getAssignmentDeclarationPropertyAccessKind(declName.parent)) { - case 1 /* ExportsProperty */: - case 2 /* ModuleExports */: - if (!isExternalOrCommonJsModule(file)) { - container = void 0; - } else { - container = file; - } - break; - case 4 /* ThisProperty */: - container = declName.parent.expression; - break; - case 3 /* PrototypeProperty */: - container = declName.parent.expression.name; - break; - case 5 /* Property */: - container = isExportsOrModuleExportsOrAlias(file, declName.parent.expression) ? file : isPropertyAccessExpression(declName.parent.expression) ? declName.parent.expression.name : declName.parent.expression; - break; - case 0 /* None */: - return Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration"); - } - if (container) { - declareModuleMember(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - } - container = oldContainer; - } - } else if (isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === 80 /* Identifier */) { - parent = typeAlias.parent; - bindBlockScopedDeclaration(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - } else { - bind(typeAlias.fullName); - } - } - container = saveContainer; - lastContainer = saveLastContainer; - blockScopeContainer = saveBlockScopeContainer; - parent = saveParent; - currentFlow = saveCurrentFlow; - } - function bindJSDocImports() { - if (jsDocImports === void 0) { - return; - } - const saveContainer = container; - const saveLastContainer = lastContainer; - const saveBlockScopeContainer = blockScopeContainer; - const saveParent = parent; - const saveCurrentFlow = currentFlow; - for (const jsDocImportTag of jsDocImports) { - const host = getJSDocHost(jsDocImportTag); - const enclosingContainer = host ? getEnclosingContainer(host) : void 0; - const enclosingBlockScopeContainer = host ? getEnclosingBlockScopeContainer(host) : void 0; - container = enclosingContainer || file; - blockScopeContainer = enclosingBlockScopeContainer || file; - currentFlow = createFlowNode( - 2 /* Start */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - parent = jsDocImportTag; - bind(jsDocImportTag.importClause); - } - container = saveContainer; - lastContainer = saveLastContainer; - blockScopeContainer = saveBlockScopeContainer; - parent = saveParent; - currentFlow = saveCurrentFlow; - } - function checkContextualIdentifier(node) { - if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { - const originalKeywordKind = identifierToKeywordKind(node); - if (originalKeywordKind === void 0) { - return; - } - if (inStrictMode && originalKeywordKind >= 119 /* FirstFutureReservedWord */ && originalKeywordKind <= 127 /* LastFutureReservedWord */) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, getStrictModeIdentifierMessage(node), declarationNameToString(node))); - } else if (originalKeywordKind === 135 /* AwaitKeyword */) { - if (isExternalModule(file) && isInTopLevelContext(node)) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node))); - } else if (node.flags & 65536 /* AwaitContext */) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node))); - } - } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node))); - } - } - } - function getStrictModeIdentifierMessage(node) { - if (getContainingClass(node)) { - return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode; - } - if (file.externalModuleIndicator) { - return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode; - } - return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode; - } - function checkPrivateIdentifier(node) { - if (node.escapedText === "#constructor") { - if (!file.parseDiagnostics.length) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.constructor_is_a_reserved_word, declarationNameToString(node))); - } - } - } - function checkStrictModeBinaryExpression(node) { - if (inStrictMode && isLeftHandSideExpression(node.left) && isAssignmentOperator(node.operatorToken.kind)) { - checkStrictModeEvalOrArguments(node, node.left); - } - } - function checkStrictModeCatchClause(node) { - if (inStrictMode && node.variableDeclaration) { - checkStrictModeEvalOrArguments(node, node.variableDeclaration.name); - } - } - function checkStrictModeDeleteExpression(node) { - if (inStrictMode && node.expression.kind === 80 /* Identifier */) { - const span = getErrorSpanForNode(file, node.expression); - file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode)); - } - } - function isEvalOrArgumentsIdentifier(node) { - return isIdentifier(node) && (node.escapedText === "eval" || node.escapedText === "arguments"); - } - function checkStrictModeEvalOrArguments(contextNode, name) { - if (name && name.kind === 80 /* Identifier */) { - const identifier = name; - if (isEvalOrArgumentsIdentifier(identifier)) { - const span = getErrorSpanForNode(file, name); - file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, getStrictModeEvalOrArgumentsMessage(contextNode), idText(identifier))); - } - } - } - function getStrictModeEvalOrArgumentsMessage(node) { - if (getContainingClass(node)) { - return Diagnostics.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; - } - if (file.externalModuleIndicator) { - return Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode; - } - return Diagnostics.Invalid_use_of_0_in_strict_mode; - } - function checkStrictModeFunctionName(node) { - if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { - checkStrictModeEvalOrArguments(node, node.name); - } - } - function getStrictModeBlockScopeFunctionDeclarationMessage(node) { - if (getContainingClass(node)) { - return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode; - } - if (file.externalModuleIndicator) { - return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode; - } - return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5; - } - function checkStrictModeFunctionDeclaration(node) { - if (languageVersion < 2 /* ES2015 */) { - if (blockScopeContainer.kind !== 307 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { - const errorSpan = getErrorSpanForNode(file, node); - file.bindDiagnostics.push(createFileDiagnostic(file, errorSpan.start, errorSpan.length, getStrictModeBlockScopeFunctionDeclarationMessage(node))); - } - } - } - function checkStrictModePostfixUnaryExpression(node) { - if (inStrictMode) { - checkStrictModeEvalOrArguments(node, node.operand); - } - } - function checkStrictModePrefixUnaryExpression(node) { - if (inStrictMode) { - if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { - checkStrictModeEvalOrArguments(node, node.operand); - } - } - } - function checkStrictModeWithStatement(node) { - if (inStrictMode) { - errorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_strict_mode); - } - } - function checkStrictModeLabeledStatement(node) { - if (inStrictMode && getEmitScriptTarget(options) >= 2 /* ES2015 */) { - if (isDeclarationStatement(node.statement) || isVariableStatement(node.statement)) { - errorOnFirstToken(node.label, Diagnostics.A_label_is_not_allowed_here); - } - } - } - function errorOnFirstToken(node, message, ...args) { - const span = getSpanOfTokenAtPosition(file, node.pos); - file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, message, ...args)); - } - function errorOrSuggestionOnNode(isError, node, message) { - errorOrSuggestionOnRange(isError, node, node, message); - } - function errorOrSuggestionOnRange(isError, startNode, endNode, message) { - addErrorOrSuggestionDiagnostic(isError, { pos: getTokenPosOfNode(startNode, file), end: endNode.end }, message); - } - function addErrorOrSuggestionDiagnostic(isError, range, message) { - const diag2 = createFileDiagnostic(file, range.pos, range.end - range.pos, message); - if (isError) { - file.bindDiagnostics.push(diag2); - } else { - file.bindSuggestionDiagnostics = append(file.bindSuggestionDiagnostics, { ...diag2, category: 2 /* Suggestion */ }); - } - } - function bind(node) { - if (!node) { - return; - } - setParent(node, parent); - if (tracing) node.tracingPath = file.path; - const saveInStrictMode = inStrictMode; - bindWorker(node); - if (node.kind > 165 /* LastToken */) { - const saveParent = parent; - parent = node; - const containerFlags = getContainerFlags(node); - if (containerFlags === 0 /* None */) { - bindChildren(node); - } else { - bindContainer(node, containerFlags); - } - parent = saveParent; - } else { - const saveParent = parent; - if (node.kind === 1 /* EndOfFileToken */) parent = node; - bindJSDoc(node); - parent = saveParent; - } - inStrictMode = saveInStrictMode; - } - function bindJSDoc(node) { - if (hasJSDocNodes(node)) { - if (isInJSFile(node)) { - for (const j of node.jsDoc) { - bind(j); - } - } else { - for (const j of node.jsDoc) { - setParent(j, node); - setParentRecursive( - j, - /*incremental*/ - false - ); - } - } - } - } - function updateStrictModeStatementList(statements) { - if (!inStrictMode) { - for (const statement of statements) { - if (!isPrologueDirective(statement)) { - return; - } - if (isUseStrictPrologueDirective(statement)) { - inStrictMode = true; - return; - } - } - } - } - function isUseStrictPrologueDirective(node) { - const nodeText = getSourceTextOfNodeFromSourceFile(file, node.expression); - return nodeText === '"use strict"' || nodeText === "'use strict'"; - } - function bindWorker(node) { - switch (node.kind) { - /* Strict mode checks */ - case 80 /* Identifier */: - if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { - let parentNode = node.parent; - while (parentNode && !isJSDocTypeAlias(parentNode)) { - parentNode = parentNode.parent; - } - bindBlockScopedDeclaration(parentNode, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - break; - } - // falls through - case 110 /* ThisKeyword */: - if (currentFlow && (isExpression(node) || parent.kind === 304 /* ShorthandPropertyAssignment */)) { - node.flowNode = currentFlow; - } - return checkContextualIdentifier(node); - case 166 /* QualifiedName */: - if (currentFlow && isPartOfTypeQuery(node)) { - node.flowNode = currentFlow; - } - break; - case 236 /* MetaProperty */: - case 108 /* SuperKeyword */: - node.flowNode = currentFlow; - break; - case 81 /* PrivateIdentifier */: - return checkPrivateIdentifier(node); - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - const expr = node; - if (currentFlow && isNarrowableReference(expr)) { - expr.flowNode = currentFlow; - } - if (isSpecialPropertyDeclaration(expr)) { - bindSpecialPropertyDeclaration(expr); - } - if (isInJSFile(expr) && file.commonJsModuleIndicator && isModuleExportsAccessExpression(expr) && !lookupSymbolForName(blockScopeContainer, "module")) { - declareSymbol( - file.locals, - /*parent*/ - void 0, - expr.expression, - 1 /* FunctionScopedVariable */ | 134217728 /* ModuleExports */, - 111550 /* FunctionScopedVariableExcludes */ - ); - } - break; - case 226 /* BinaryExpression */: - const specialKind = getAssignmentDeclarationKind(node); - switch (specialKind) { - case 1 /* ExportsProperty */: - bindExportsPropertyAssignment(node); - break; - case 2 /* ModuleExports */: - bindModuleExportsAssignment(node); - break; - case 3 /* PrototypeProperty */: - bindPrototypePropertyAssignment(node.left, node); - break; - case 6 /* Prototype */: - bindPrototypeAssignment(node); - break; - case 4 /* ThisProperty */: - bindThisPropertyAssignment(node); - break; - case 5 /* Property */: - const expression = node.left.expression; - if (isInJSFile(node) && isIdentifier(expression)) { - const symbol = lookupSymbolForName(blockScopeContainer, expression.escapedText); - if (isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration)) { - bindThisPropertyAssignment(node); - break; - } - } - bindSpecialPropertyAssignment(node); - break; - case 0 /* None */: - break; - default: - Debug.fail("Unknown binary expression special property assignment kind"); - } - return checkStrictModeBinaryExpression(node); - case 299 /* CatchClause */: - return checkStrictModeCatchClause(node); - case 220 /* DeleteExpression */: - return checkStrictModeDeleteExpression(node); - case 225 /* PostfixUnaryExpression */: - return checkStrictModePostfixUnaryExpression(node); - case 224 /* PrefixUnaryExpression */: - return checkStrictModePrefixUnaryExpression(node); - case 254 /* WithStatement */: - return checkStrictModeWithStatement(node); - case 256 /* LabeledStatement */: - return checkStrictModeLabeledStatement(node); - case 197 /* ThisType */: - seenThisKeyword = true; - return; - case 182 /* TypePredicate */: - break; - // Binding the children will handle everything - case 168 /* TypeParameter */: - return bindTypeParameter(node); - case 169 /* Parameter */: - return bindParameter(node); - case 260 /* VariableDeclaration */: - return bindVariableDeclarationOrBindingElement(node); - case 208 /* BindingElement */: - node.flowNode = currentFlow; - return bindVariableDeclarationOrBindingElement(node); - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return bindPropertyWorker(node); - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); - case 306 /* EnumMember */: - return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - return bindPropertyOrMethodOrAccessor(node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */); - case 262 /* FunctionDeclaration */: - return bindFunctionDeclaration(node); - case 176 /* Constructor */: - return declareSymbolAndAddToSymbolTable( - node, - 16384 /* Constructor */, - /*symbolExcludes:*/ - 0 /* None */ - ); - case 177 /* GetAccessor */: - return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); - case 178 /* SetAccessor */: - return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); - case 184 /* FunctionType */: - case 317 /* JSDocFunctionType */: - case 323 /* JSDocSignature */: - case 185 /* ConstructorType */: - return bindFunctionOrConstructorType(node); - case 187 /* TypeLiteral */: - case 322 /* JSDocTypeLiteral */: - case 200 /* MappedType */: - return bindAnonymousTypeWorker(node); - case 332 /* JSDocClassTag */: - return bindJSDocClassTag(node); - case 210 /* ObjectLiteralExpression */: - return bindObjectLiteralExpression(node); - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return bindFunctionExpression(node); - case 213 /* CallExpression */: - const assignmentKind = getAssignmentDeclarationKind(node); - switch (assignmentKind) { - case 7 /* ObjectDefinePropertyValue */: - return bindObjectDefinePropertyAssignment(node); - case 8 /* ObjectDefinePropertyExports */: - return bindObjectDefinePropertyExport(node); - case 9 /* ObjectDefinePrototypeProperty */: - return bindObjectDefinePrototypeProperty(node); - case 0 /* None */: - break; - // Nothing to do - default: - return Debug.fail("Unknown call expression assignment declaration kind"); - } - if (isInJSFile(node)) { - bindCallExpression(node); - } - break; - // Members of classes, interfaces, and modules - case 231 /* ClassExpression */: - case 263 /* ClassDeclaration */: - inStrictMode = true; - return bindClassLikeDeclaration(node); - case 264 /* InterfaceDeclaration */: - return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); - case 265 /* TypeAliasDeclaration */: - return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); - case 266 /* EnumDeclaration */: - return bindEnumDeclaration(node); - case 267 /* ModuleDeclaration */: - return bindModuleDeclaration(node); - // Jsx-attributes - case 292 /* JsxAttributes */: - return bindJsxAttributes(node); - case 291 /* JsxAttribute */: - return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - // Imports and exports - case 271 /* ImportEqualsDeclaration */: - case 274 /* NamespaceImport */: - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - case 270 /* NamespaceExportDeclaration */: - return bindNamespaceExportDeclaration(node); - case 273 /* ImportClause */: - return bindImportClause(node); - case 278 /* ExportDeclaration */: - return bindExportDeclaration(node); - case 277 /* ExportAssignment */: - return bindExportAssignment(node); - case 307 /* SourceFile */: - updateStrictModeStatementList(node.statements); - return bindSourceFileIfExternalModule(); - case 241 /* Block */: - if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { - return; - } - // falls through - case 268 /* ModuleBlock */: - return updateStrictModeStatementList(node.statements); - case 341 /* JSDocParameterTag */: - if (node.parent.kind === 323 /* JSDocSignature */) { - return bindParameter(node); - } - if (node.parent.kind !== 322 /* JSDocTypeLiteral */) { - break; - } - // falls through - case 348 /* JSDocPropertyTag */: - const propTag = node; - const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 316 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; - return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); - case 339 /* JSDocOverloadTag */: - return bind(node.typeExpression); - case 351 /* JSDocImportTag */: - return (jsDocImports || (jsDocImports = [])).push(node); - } - } - function bindPropertyWorker(node) { - const isAutoAccessor = isAutoAccessorPropertyDeclaration(node); - const includes = isAutoAccessor ? 98304 /* Accessor */ : 4 /* Property */; - const excludes = isAutoAccessor ? 13247 /* AccessorExcludes */ : 0 /* PropertyExcludes */; - return bindPropertyOrMethodOrAccessor(node, includes | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), excludes); - } - function bindAnonymousTypeWorker(node) { - return bindAnonymousDeclaration(node, 2048 /* TypeLiteral */, "__type" /* Type */); - } - function bindSourceFileIfExternalModule() { - setExportContextFlag(file); - if (isExternalModule(file)) { - bindSourceFileAsExternalModule(); - } else if (isJsonSourceFile(file)) { - bindSourceFileAsExternalModule(); - const originalSymbol = file.symbol; - declareSymbol(file.symbol.exports, file.symbol, file, 4 /* Property */, -1 /* All */); - file.symbol = originalSymbol; - } - } - function bindSourceFileAsExternalModule() { - bindAnonymousDeclaration(file, 512 /* ValueModule */, `"${removeFileExtension(file.fileName)}"`); - } - function bindExportAssignment(node) { - if (!container.symbol || !container.symbol.exports) { - bindAnonymousDeclaration(node, 111551 /* Value */, getDeclarationName(node)); - } else { - const flags = exportAssignmentIsAlias(node) ? 2097152 /* Alias */ : 4 /* Property */; - const symbol = declareSymbol(container.symbol.exports, container.symbol, node, flags, -1 /* All */); - if (node.isExportEquals) { - setValueDeclaration(symbol, node); - } - } - } - function bindNamespaceExportDeclaration(node) { - if (some(node.modifiers)) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Modifiers_cannot_appear_here)); - } - const diag2 = !isSourceFile(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_at_top_level : !isExternalModule(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_in_module_files : !node.parent.isDeclarationFile ? Diagnostics.Global_module_exports_may_only_appear_in_declaration_files : void 0; - if (diag2) { - file.bindDiagnostics.push(createDiagnosticForNode2(node, diag2)); - } else { - file.symbol.globalExports = file.symbol.globalExports || createSymbolTable(); - declareSymbol(file.symbol.globalExports, file.symbol, node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - } - } - function bindExportDeclaration(node) { - if (!container.symbol || !container.symbol.exports) { - bindAnonymousDeclaration(node, 8388608 /* ExportStar */, getDeclarationName(node)); - } else if (!node.exportClause) { - declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* ExportStar */, 0 /* None */); - } else if (isNamespaceExport(node.exportClause)) { - setParent(node.exportClause, node); - declareSymbol(container.symbol.exports, container.symbol, node.exportClause, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - } - } - function bindImportClause(node) { - if (node.name) { - declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - } - } - function setCommonJsModuleIndicator(node) { - if (file.externalModuleIndicator && file.externalModuleIndicator !== true) { - return false; - } - if (!file.commonJsModuleIndicator) { - file.commonJsModuleIndicator = node; - if (!file.externalModuleIndicator) { - bindSourceFileAsExternalModule(); - } - } - return true; - } - function bindObjectDefinePropertyExport(node) { - if (!setCommonJsModuleIndicator(node)) { - return; - } - const symbol = forEachIdentifierInEntityName( - node.arguments[0], - /*parent*/ - void 0, - (id, symbol2) => { - if (symbol2) { - addDeclarationToSymbol(symbol2, id, 1536 /* Module */ | 67108864 /* Assignment */); - } - return symbol2; - } - ); - if (symbol) { - const flags = 4 /* Property */ | 1048576 /* ExportValue */; - declareSymbol(symbol.exports, symbol, node, flags, 0 /* None */); - } - } - function bindExportsPropertyAssignment(node) { - if (!setCommonJsModuleIndicator(node)) { - return; - } - const symbol = forEachIdentifierInEntityName( - node.left.expression, - /*parent*/ - void 0, - (id, symbol2) => { - if (symbol2) { - addDeclarationToSymbol(symbol2, id, 1536 /* Module */ | 67108864 /* Assignment */); - } - return symbol2; - } - ); - if (symbol) { - const isAlias = isAliasableExpression(node.right) && (isExportsIdentifier(node.left.expression) || isModuleExportsAccessExpression(node.left.expression)); - const flags = isAlias ? 2097152 /* Alias */ : 4 /* Property */ | 1048576 /* ExportValue */; - setParent(node.left, node); - declareSymbol(symbol.exports, symbol, node.left, flags, 0 /* None */); - } - } - function bindModuleExportsAssignment(node) { - if (!setCommonJsModuleIndicator(node)) { - return; - } - const assignedExpression = getRightMostAssignedExpression(node.right); - if (isEmptyObjectLiteral(assignedExpression) || container === file && isExportsOrModuleExportsOrAlias(file, assignedExpression)) { - return; - } - if (isObjectLiteralExpression(assignedExpression) && every(assignedExpression.properties, isShorthandPropertyAssignment)) { - forEach(assignedExpression.properties, bindExportAssignedObjectMemberAlias); - return; - } - const flags = exportAssignmentIsAlias(node) ? 2097152 /* Alias */ : 4 /* Property */ | 1048576 /* ExportValue */ | 512 /* ValueModule */; - const symbol = declareSymbol(file.symbol.exports, file.symbol, node, flags | 67108864 /* Assignment */, 0 /* None */); - setValueDeclaration(symbol, node); - } - function bindExportAssignedObjectMemberAlias(node) { - declareSymbol(file.symbol.exports, file.symbol, node, 2097152 /* Alias */ | 67108864 /* Assignment */, 0 /* None */); - } - function bindThisPropertyAssignment(node) { - Debug.assert(isInJSFile(node)); - const hasPrivateIdentifier = isBinaryExpression(node) && isPropertyAccessExpression(node.left) && isPrivateIdentifier(node.left.name) || isPropertyAccessExpression(node) && isPrivateIdentifier(node.name); - if (hasPrivateIdentifier) { - return; - } - const thisContainer = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - switch (thisContainer.kind) { - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - let constructorSymbol = thisContainer.symbol; - if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { - const l = thisContainer.parent.left; - if (isBindableStaticAccessExpression(l) && isPrototypeAccess(l.expression)) { - constructorSymbol = lookupSymbolForPropertyAccess(l.expression.expression, thisParentContainer); - } - } - if (constructorSymbol && constructorSymbol.valueDeclaration) { - constructorSymbol.members = constructorSymbol.members || createSymbolTable(); - if (hasDynamicName(node)) { - bindDynamicallyNamedThisPropertyAssignment(node, constructorSymbol, constructorSymbol.members); - } else { - declareSymbol(constructorSymbol.members, constructorSymbol, node, 4 /* Property */ | 67108864 /* Assignment */, 0 /* PropertyExcludes */ & ~4 /* Property */); - } - addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); - } - break; - case 176 /* Constructor */: - case 172 /* PropertyDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 175 /* ClassStaticBlockDeclaration */: - const containingClass = thisContainer.parent; - const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; - if (hasDynamicName(node)) { - bindDynamicallyNamedThisPropertyAssignment(node, containingClass.symbol, symbolTable); - } else { - declareSymbol( - symbolTable, - containingClass.symbol, - node, - 4 /* Property */ | 67108864 /* Assignment */, - 0 /* None */, - /*isReplaceableByMethod*/ - true - ); - } - break; - case 307 /* SourceFile */: - if (hasDynamicName(node)) { - break; - } else if (thisContainer.commonJsModuleIndicator) { - declareSymbol(thisContainer.symbol.exports, thisContainer.symbol, node, 4 /* Property */ | 1048576 /* ExportValue */, 0 /* None */); - } else { - declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); - } - break; - // Namespaces are not allowed in javascript files, so do nothing here - case 267 /* ModuleDeclaration */: - break; - default: - Debug.failBadSyntaxKind(thisContainer); - } - } - function bindDynamicallyNamedThisPropertyAssignment(node, symbol, symbolTable) { - declareSymbol( - symbolTable, - symbol, - node, - 4 /* Property */, - 0 /* None */, - /*isReplaceableByMethod*/ - true, - /*isComputedName*/ - true - ); - addLateBoundAssignmentDeclarationToSymbol(node, symbol); - } - function addLateBoundAssignmentDeclarationToSymbol(node, symbol) { - if (symbol) { - (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node); - } - } - function bindSpecialPropertyDeclaration(node) { - if (node.expression.kind === 110 /* ThisKeyword */) { - bindThisPropertyAssignment(node); - } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 307 /* SourceFile */) { - if (isPrototypeAccess(node.expression)) { - bindPrototypePropertyAssignment(node, node.parent); - } else { - bindStaticPropertyAssignment(node); - } - } - } - function bindPrototypeAssignment(node) { - setParent(node.left, node); - setParent(node.right, node); - bindPropertyAssignment( - node.left.expression, - node.left, - /*isPrototypeProperty*/ - false, - /*containerIsClass*/ - true - ); - } - function bindObjectDefinePrototypeProperty(node) { - const namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0].expression); - if (namespaceSymbol && namespaceSymbol.valueDeclaration) { - addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */); - } - bindPotentiallyNewExpandoMemberToNamespace( - node, - namespaceSymbol, - /*isPrototypeProperty*/ - true - ); - } - function bindPrototypePropertyAssignment(lhs, parent2) { - const classPrototype = lhs.expression; - const constructorFunction = classPrototype.expression; - setParent(constructorFunction, classPrototype); - setParent(classPrototype, lhs); - setParent(lhs, parent2); - bindPropertyAssignment( - constructorFunction, - lhs, - /*isPrototypeProperty*/ - true, - /*containerIsClass*/ - true - ); - } - function bindObjectDefinePropertyAssignment(node) { - let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); - const isToplevel = node.parent.parent.kind === 307 /* SourceFile */; - namespaceSymbol = bindPotentiallyMissingNamespaces( - namespaceSymbol, - node.arguments[0], - isToplevel, - /*isPrototypeProperty*/ - false, - /*containerIsClass*/ - false - ); - bindPotentiallyNewExpandoMemberToNamespace( - node, - namespaceSymbol, - /*isPrototypeProperty*/ - false - ); - } - function bindSpecialPropertyAssignment(node) { - var _a; - const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer) || lookupSymbolForPropertyAccess(node.left.expression, container); - if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) { - return; - } - const rootExpr = getLeftmostAccessExpression(node.left); - if (isIdentifier(rootExpr) && ((_a = lookupSymbolForName(container, rootExpr.escapedText)) == null ? void 0 : _a.flags) & 2097152 /* Alias */) { - return; - } - setParent(node.left, node); - setParent(node.right, node); - if (isIdentifier(node.left.expression) && container === file && isExportsOrModuleExportsOrAlias(file, node.left.expression)) { - bindExportsPropertyAssignment(node); - } else if (hasDynamicName(node)) { - bindAnonymousDeclaration(node, 4 /* Property */ | 67108864 /* Assignment */, "__computed" /* Computed */); - const sym = bindPotentiallyMissingNamespaces( - parentSymbol, - node.left.expression, - isTopLevelNamespaceAssignment(node.left), - /*isPrototypeProperty*/ - false, - /*containerIsClass*/ - false - ); - addLateBoundAssignmentDeclarationToSymbol(node, sym); - } else { - bindStaticPropertyAssignment(cast(node.left, isBindableStaticNameExpression)); - } - } - function bindStaticPropertyAssignment(node) { - Debug.assert(!isIdentifier(node)); - setParent(node.expression, node); - bindPropertyAssignment( - node.expression, - node, - /*isPrototypeProperty*/ - false, - /*containerIsClass*/ - false - ); - } - function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) { - if ((namespaceSymbol == null ? void 0 : namespaceSymbol.flags) & 2097152 /* Alias */) { - return namespaceSymbol; - } - if (isToplevel && !isPrototypeProperty) { - const flags = 1536 /* Module */ | 67108864 /* Assignment */; - const excludeFlags = 110735 /* ValueModuleExcludes */ & ~67108864 /* Assignment */; - namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, (id, symbol, parent2) => { - if (symbol) { - addDeclarationToSymbol(symbol, id, flags); - return symbol; - } else { - const table = parent2 ? parent2.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable()); - return declareSymbol(table, parent2, id, flags, excludeFlags); - } - }); - } - if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) { - addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */); - } - return namespaceSymbol; - } - function bindPotentiallyNewExpandoMemberToNamespace(declaration, namespaceSymbol, isPrototypeProperty) { - if (!namespaceSymbol || !isExpandoSymbol(namespaceSymbol)) { - return; - } - const symbolTable = isPrototypeProperty ? namespaceSymbol.members || (namespaceSymbol.members = createSymbolTable()) : namespaceSymbol.exports || (namespaceSymbol.exports = createSymbolTable()); - let includes = 0 /* None */; - let excludes = 0 /* None */; - if (isFunctionLikeDeclaration(getAssignedExpandoInitializer(declaration))) { - includes = 8192 /* Method */; - excludes = 103359 /* MethodExcludes */; - } else if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) { - if (some(declaration.arguments[2].properties, (p) => { - const id = getNameOfDeclaration(p); - return !!id && isIdentifier(id) && idText(id) === "set"; - })) { - includes |= 65536 /* SetAccessor */ | 4 /* Property */; - excludes |= 78783 /* SetAccessorExcludes */; - } - if (some(declaration.arguments[2].properties, (p) => { - const id = getNameOfDeclaration(p); - return !!id && isIdentifier(id) && idText(id) === "get"; - })) { - includes |= 32768 /* GetAccessor */ | 4 /* Property */; - excludes |= 46015 /* GetAccessorExcludes */; - } - } - if (includes === 0 /* None */) { - includes = 4 /* Property */; - excludes = 0 /* PropertyExcludes */; - } - declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); - } - function isTopLevelNamespaceAssignment(propertyAccess) { - return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 307 /* SourceFile */ : propertyAccess.parent.parent.kind === 307 /* SourceFile */; - } - function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { - let namespaceSymbol = lookupSymbolForPropertyAccess(name, blockScopeContainer) || lookupSymbolForPropertyAccess(name, container); - const isToplevel = isTopLevelNamespaceAssignment(propertyAccess); - namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass); - bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty); - } - function isExpandoSymbol(symbol) { - if (symbol.flags & (16 /* Function */ | 32 /* Class */ | 1024 /* NamespaceModule */)) { - return true; - } - const node = symbol.valueDeclaration; - if (node && isCallExpression(node)) { - return !!getAssignedExpandoInitializer(node); - } - let init = !node ? void 0 : isVariableDeclaration(node) ? node.initializer : isBinaryExpression(node) ? node.right : isPropertyAccessExpression(node) && isBinaryExpression(node.parent) ? node.parent.right : void 0; - init = init && getRightMostAssignedExpression(init); - if (init) { - const isPrototypeAssignment = isPrototypeAccess(isVariableDeclaration(node) ? node.name : isBinaryExpression(node) ? node.left : node); - return !!getExpandoInitializer(isBinaryExpression(init) && (init.operatorToken.kind === 57 /* BarBarToken */ || init.operatorToken.kind === 61 /* QuestionQuestionToken */) ? init.right : init, isPrototypeAssignment); - } - return false; - } - function getParentOfBinaryExpression(expr) { - while (isBinaryExpression(expr.parent)) { - expr = expr.parent; - } - return expr.parent; - } - function lookupSymbolForPropertyAccess(node, lookupContainer = container) { - if (isIdentifier(node)) { - return lookupSymbolForName(lookupContainer, node.escapedText); - } else { - const symbol = lookupSymbolForPropertyAccess(node.expression); - return symbol && symbol.exports && symbol.exports.get(getElementOrPropertyAccessName(node)); - } - } - function forEachIdentifierInEntityName(e, parent2, action) { - if (isExportsOrModuleExportsOrAlias(file, e)) { - return file.symbol; - } else if (isIdentifier(e)) { - return action(e, lookupSymbolForPropertyAccess(e), parent2); - } else { - const s = forEachIdentifierInEntityName(e.expression, parent2, action); - const name = getNameOrArgument(e); - if (isPrivateIdentifier(name)) { - Debug.fail("unexpected PrivateIdentifier"); - } - return action(name, s && s.exports && s.exports.get(getElementOrPropertyAccessName(e)), s); - } - } - function bindCallExpression(node) { - if (!file.commonJsModuleIndicator && isRequireCall( - node, - /*requireStringLiteralLikeArgument*/ - false - )) { - setCommonJsModuleIndicator(node); - } - } - function bindClassLikeDeclaration(node) { - if (node.kind === 263 /* ClassDeclaration */) { - bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); - } else { - const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; - bindAnonymousDeclaration(node, 32 /* Class */, bindingName); - if (node.name) { - classifiableNames.add(node.name.escapedText); - } - } - const { symbol } = node; - const prototypeSymbol = createSymbol(4 /* Property */ | 4194304 /* Prototype */, "prototype"); - const symbolExport = symbol.exports.get(prototypeSymbol.escapedName); - if (symbolExport) { - if (node.name) { - setParent(node.name, node); - } - file.bindDiagnostics.push(createDiagnosticForNode2(symbolExport.declarations[0], Diagnostics.Duplicate_identifier_0, symbolName(prototypeSymbol))); - } - symbol.exports.set(prototypeSymbol.escapedName, prototypeSymbol); - prototypeSymbol.parent = symbol; - } - function bindEnumDeclaration(node) { - return isEnumConst(node) ? bindBlockScopedDeclaration(node, 128 /* ConstEnum */, 899967 /* ConstEnumExcludes */) : bindBlockScopedDeclaration(node, 256 /* RegularEnum */, 899327 /* RegularEnumExcludes */); - } - function bindVariableDeclarationOrBindingElement(node) { - if (inStrictMode) { - checkStrictModeEvalOrArguments(node, node.name); - } - if (!isBindingPattern(node.name)) { - const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; - if (isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 32 /* Export */)) { - declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); - } else if (isBlockOrCatchScoped(node)) { - bindBlockScopedDeclaration(node, 2 /* BlockScopedVariable */, 111551 /* BlockScopedVariableExcludes */); - } else if (isPartOfParameterDeclaration(node)) { - declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */); - } else { - declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); - } - } - } - function bindParameter(node) { - if (node.kind === 341 /* JSDocParameterTag */ && container.kind !== 323 /* JSDocSignature */) { - return; - } - if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { - checkStrictModeEvalOrArguments(node, node.name); - } - if (isBindingPattern(node.name)) { - bindAnonymousDeclaration(node, 1 /* FunctionScopedVariable */, "__" + node.parent.parameters.indexOf(node)); - } else { - declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */); - } - if (isParameterPropertyDeclaration(node, node.parent)) { - const classDeclaration = node.parent.parent; - declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), 0 /* PropertyExcludes */); - } - } - function bindFunctionDeclaration(node) { - if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { - if (isAsyncFunction(node)) { - emitFlags |= 4096 /* HasAsyncFunctions */; - } - } - checkStrictModeFunctionName(node); - if (inStrictMode) { - checkStrictModeFunctionDeclaration(node); - bindBlockScopedDeclaration(node, 16 /* Function */, 110991 /* FunctionExcludes */); - } else { - declareSymbolAndAddToSymbolTable(node, 16 /* Function */, 110991 /* FunctionExcludes */); - } - } - function bindFunctionExpression(node) { - if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { - if (isAsyncFunction(node)) { - emitFlags |= 4096 /* HasAsyncFunctions */; - } - } - if (currentFlow) { - node.flowNode = currentFlow; - } - checkStrictModeFunctionName(node); - const bindingName = node.name ? node.name.escapedText : "__function" /* Function */; - return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); - } - function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { - if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { - emitFlags |= 4096 /* HasAsyncFunctions */; - } - if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { - node.flowNode = currentFlow; - } - return hasDynamicName(node) ? bindAnonymousDeclaration(node, symbolFlags, "__computed" /* Computed */) : declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes); - } - function getInferTypeContainer(node) { - const extendsType = findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && n.parent.extendsType === n); - return extendsType && extendsType.parent; - } - function bindTypeParameter(node) { - if (isJSDocTemplateTag(node.parent)) { - const container2 = getEffectiveContainerForJSDocTemplateTag(node.parent); - if (container2) { - Debug.assertNode(container2, canHaveLocals); - container2.locals ?? (container2.locals = createSymbolTable()); - declareSymbol( - container2.locals, - /*parent*/ - void 0, - node, - 262144 /* TypeParameter */, - 526824 /* TypeParameterExcludes */ - ); - } else { - declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); - } - } else if (node.parent.kind === 195 /* InferType */) { - const container2 = getInferTypeContainer(node.parent); - if (container2) { - Debug.assertNode(container2, canHaveLocals); - container2.locals ?? (container2.locals = createSymbolTable()); - declareSymbol( - container2.locals, - /*parent*/ - void 0, - node, - 262144 /* TypeParameter */, - 526824 /* TypeParameterExcludes */ - ); - } else { - bindAnonymousDeclaration(node, 262144 /* TypeParameter */, getDeclarationName(node)); - } - } else { - declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); - } - } - function shouldReportErrorOnModuleDeclaration(node) { - const instanceState = getModuleInstanceState(node); - return instanceState === 1 /* Instantiated */ || instanceState === 2 /* ConstEnumOnly */ && shouldPreserveConstEnums(options); - } - function checkUnreachable(node) { - if (!(currentFlow.flags & 1 /* Unreachable */)) { - return false; - } - if (currentFlow === unreachableFlow) { - const reportError = ( - // report error on all statements except empty ones - isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations - node.kind === 263 /* ClassDeclaration */ || // report errors on enums with preserved emit - isEnumDeclarationWithPreservedEmit(node, options) || // report error on instantiated modules - node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) - ); - if (reportError) { - currentFlow = reportedUnreachableFlow; - if (!options.allowUnreachableCode) { - const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); - eachUnreachableRange(node, options, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); - } - } - } - return true; - } -} -function isEnumDeclarationWithPreservedEmit(node, options) { - return node.kind === 266 /* EnumDeclaration */ && (!isEnumConst(node) || shouldPreserveConstEnums(options)); -} -function eachUnreachableRange(node, options, cb) { - if (isStatement(node) && isExecutableStatement(node) && isBlock(node.parent)) { - const { statements } = node.parent; - const slice = sliceAfter(statements, node); - getRangesWhere(slice, isExecutableStatement, (start, afterEnd) => cb(slice[start], slice[afterEnd - 1])); - } else { - cb(node, node); - } - function isExecutableStatement(s) { - return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); - } - function isPurelyTypeDeclaration(s) { - switch (s.kind) { - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - return true; - case 267 /* ModuleDeclaration */: - return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 266 /* EnumDeclaration */: - return !isEnumDeclarationWithPreservedEmit(s, options); - default: - return false; - } - } -} -function isExportsOrModuleExportsOrAlias(sourceFile, node) { - let i = 0; - const q = createQueue(); - q.enqueue(node); - while (!q.isEmpty() && i < 100) { - i++; - node = q.dequeue(); - if (isExportsIdentifier(node) || isModuleExportsAccessExpression(node)) { - return true; - } else if (isIdentifier(node)) { - const symbol = lookupSymbolForName(sourceFile, node.escapedText); - if (!!symbol && !!symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && !!symbol.valueDeclaration.initializer) { - const init = symbol.valueDeclaration.initializer; - q.enqueue(init); - if (isAssignmentExpression( - init, - /*excludeCompoundAssignment*/ - true - )) { - q.enqueue(init.left); - q.enqueue(init.right); - } - } - } - } - return false; -} -function getContainerFlags(node) { - switch (node.kind) { - case 231 /* ClassExpression */: - case 263 /* ClassDeclaration */: - case 266 /* EnumDeclaration */: - case 210 /* ObjectLiteralExpression */: - case 187 /* TypeLiteral */: - case 322 /* JSDocTypeLiteral */: - case 292 /* JsxAttributes */: - return 1 /* IsContainer */; - case 264 /* InterfaceDeclaration */: - return 1 /* IsContainer */ | 64 /* IsInterface */; - case 267 /* ModuleDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 200 /* MappedType */: - case 181 /* IndexSignature */: - return 1 /* IsContainer */ | 32 /* HasLocals */; - case 307 /* SourceFile */: - return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { - return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; - } - // falls through - case 176 /* Constructor */: - case 262 /* FunctionDeclaration */: - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 323 /* JSDocSignature */: - case 317 /* JSDocFunctionType */: - case 184 /* FunctionType */: - case 180 /* ConstructSignature */: - case 185 /* ConstructorType */: - case 175 /* ClassStaticBlockDeclaration */: - return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; - case 268 /* ModuleBlock */: - return 4 /* IsControlFlowContainer */; - case 172 /* PropertyDeclaration */: - return node.initializer ? 4 /* IsControlFlowContainer */ : 0; - case 299 /* CatchClause */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 269 /* CaseBlock */: - return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - case 241 /* Block */: - return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; - } - return 0 /* None */; -} -function lookupSymbolForName(container, name) { - var _a, _b, _c, _d; - const local = (_b = (_a = tryCast(container, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name); - if (local) { - return local.exportSymbol ?? local; - } - if (isSourceFile(container) && container.jsGlobalAugmentations && container.jsGlobalAugmentations.has(name)) { - return container.jsGlobalAugmentations.get(name); - } - if (canHaveSymbol(container)) { - return (_d = (_c = container.symbol) == null ? void 0 : _c.exports) == null ? void 0 : _d.get(name); - } -} - -// src/compiler/symbolWalker.ts -function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, getFirstIdentifier2, getTypeArguments) { - return getSymbolWalker; - function getSymbolWalker(accept = () => true) { - const visitedTypes = []; - const visitedSymbols = []; - return { - walkType: (type) => { - try { - visitType(type); - return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) }; - } finally { - clear(visitedTypes); - clear(visitedSymbols); - } - }, - walkSymbol: (symbol) => { - try { - visitSymbol(symbol); - return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) }; - } finally { - clear(visitedTypes); - clear(visitedSymbols); - } - } - }; - function visitType(type) { - if (!type) { - return; - } - if (visitedTypes[type.id]) { - return; - } - visitedTypes[type.id] = type; - const shouldBail = visitSymbol(type.symbol); - if (shouldBail) return; - if (type.flags & 524288 /* Object */) { - const objectType = type; - const objectFlags = objectType.objectFlags; - if (objectFlags & 4 /* Reference */) { - visitTypeReference(type); - } - if (objectFlags & 32 /* Mapped */) { - visitMappedType(type); - } - if (objectFlags & (1 /* Class */ | 2 /* Interface */)) { - visitInterfaceType(type); - } - if (objectFlags & (8 /* Tuple */ | 16 /* Anonymous */)) { - visitObjectType(objectType); - } - } - if (type.flags & 262144 /* TypeParameter */) { - visitTypeParameter(type); - } - if (type.flags & 3145728 /* UnionOrIntersection */) { - visitUnionOrIntersectionType(type); - } - if (type.flags & 4194304 /* Index */) { - visitIndexType(type); - } - if (type.flags & 8388608 /* IndexedAccess */) { - visitIndexedAccessType(type); - } - } - function visitTypeReference(type) { - visitType(type.target); - forEach(getTypeArguments(type), visitType); - } - function visitTypeParameter(type) { - visitType(getConstraintOfTypeParameter(type)); - } - function visitUnionOrIntersectionType(type) { - forEach(type.types, visitType); - } - function visitIndexType(type) { - visitType(type.type); - } - function visitIndexedAccessType(type) { - visitType(type.objectType); - visitType(type.indexType); - visitType(type.constraint); - } - function visitMappedType(type) { - visitType(type.typeParameter); - visitType(type.constraintType); - visitType(type.templateType); - visitType(type.modifiersType); - } - function visitSignature(signature) { - const typePredicate = getTypePredicateOfSignature(signature); - if (typePredicate) { - visitType(typePredicate.type); - } - forEach(signature.typeParameters, visitType); - for (const parameter of signature.parameters) { - visitSymbol(parameter); - } - visitType(getRestTypeOfSignature(signature)); - visitType(getReturnTypeOfSignature(signature)); - } - function visitInterfaceType(interfaceT) { - visitObjectType(interfaceT); - forEach(interfaceT.typeParameters, visitType); - forEach(getBaseTypes(interfaceT), visitType); - visitType(interfaceT.thisType); - } - function visitObjectType(type) { - const resolved = resolveStructuredTypeMembers(type); - for (const info of resolved.indexInfos) { - visitType(info.keyType); - visitType(info.type); - } - for (const signature of resolved.callSignatures) { - visitSignature(signature); - } - for (const signature of resolved.constructSignatures) { - visitSignature(signature); - } - for (const p of resolved.properties) { - visitSymbol(p); - } - } - function visitSymbol(symbol) { - if (!symbol) { - return false; - } - const symbolId = getSymbolId(symbol); - if (visitedSymbols[symbolId]) { - return false; - } - visitedSymbols[symbolId] = symbol; - if (!accept(symbol)) { - return true; - } - const t = getTypeOfSymbol(symbol); - visitType(t); - if (symbol.exports) { - symbol.exports.forEach(visitSymbol); - } - forEach(symbol.declarations, (d) => { - if (d.type && d.type.kind === 186 /* TypeQuery */) { - const query = d.type; - const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); - visitSymbol(entity); - } - }); - return false; - } - } -} - -// src/compiler/moduleSpecifiers.ts -var stringToRegex = memoizeOne((pattern) => { - try { - let slash = pattern.indexOf("/"); - if (slash !== 0) { - return new RegExp(pattern); - } - const lastSlash = pattern.lastIndexOf("/"); - if (slash === lastSlash) { - return new RegExp(pattern); - } - while ((slash = pattern.indexOf("/", slash + 1)) !== lastSlash) { - if (pattern[slash - 1] !== "\\") { - return new RegExp(pattern); - } - } - const flags = pattern.substring(lastSlash + 1).replace(/[^iu]/g, ""); - pattern = pattern.substring(1, lastSlash); - return new RegExp(pattern, flags); - } catch { - return void 0; - } -}); -function getModuleSpecifierPreferences({ importModuleSpecifierPreference, importModuleSpecifierEnding, autoImportSpecifierExcludeRegexes }, host, compilerOptions, importingSourceFile, oldImportSpecifier) { - const filePreferredEnding = getPreferredEnding(); - return { - excludeRegexes: autoImportSpecifierExcludeRegexes, - relativePreference: oldImportSpecifier !== void 0 ? isExternalModuleNameRelative(oldImportSpecifier) ? 0 /* Relative */ : 1 /* NonRelative */ : importModuleSpecifierPreference === "relative" ? 0 /* Relative */ : importModuleSpecifierPreference === "non-relative" ? 1 /* NonRelative */ : importModuleSpecifierPreference === "project-relative" ? 3 /* ExternalNonRelative */ : 2 /* Shortest */, - getAllowedEndingsInPreferredOrder: (syntaxImpliedNodeFormat) => { - const impliedNodeFormat = getDefaultResolutionModeForFile(importingSourceFile, host, compilerOptions); - const preferredEnding = syntaxImpliedNodeFormat !== impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; - const moduleResolution = getEmitModuleResolutionKind(compilerOptions); - if ((syntaxImpliedNodeFormat ?? impliedNodeFormat) === 99 /* ESNext */ && 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) { - if (shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName)) { - return [3 /* TsExtension */, 2 /* JsExtension */]; - } - return [2 /* JsExtension */]; - } - if (getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */) { - return preferredEnding === 2 /* JsExtension */ ? [2 /* JsExtension */, 1 /* Index */] : [1 /* Index */, 2 /* JsExtension */]; - } - const allowImportingTsExtension = shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName); - switch (preferredEnding) { - case 2 /* JsExtension */: - return allowImportingTsExtension ? [2 /* JsExtension */, 3 /* TsExtension */, 0 /* Minimal */, 1 /* Index */] : [2 /* JsExtension */, 0 /* Minimal */, 1 /* Index */]; - case 3 /* TsExtension */: - return [3 /* TsExtension */, 0 /* Minimal */, 2 /* JsExtension */, 1 /* Index */]; - case 1 /* Index */: - return allowImportingTsExtension ? [1 /* Index */, 0 /* Minimal */, 3 /* TsExtension */, 2 /* JsExtension */] : [1 /* Index */, 0 /* Minimal */, 2 /* JsExtension */]; - case 0 /* Minimal */: - return allowImportingTsExtension ? [0 /* Minimal */, 1 /* Index */, 3 /* TsExtension */, 2 /* JsExtension */] : [0 /* Minimal */, 1 /* Index */, 2 /* JsExtension */]; - default: - Debug.assertNever(preferredEnding); - } - } - }; - function getPreferredEnding(resolutionMode) { - if (oldImportSpecifier !== void 0) { - if (hasJSFileExtension(oldImportSpecifier)) return 2 /* JsExtension */; - if (endsWith(oldImportSpecifier, "/index")) return 1 /* Index */; - } - return getModuleSpecifierEndingPreference( - importModuleSpecifierEnding, - resolutionMode ?? getDefaultResolutionModeForFile(importingSourceFile, host, compilerOptions), - compilerOptions, - isFullSourceFile(importingSourceFile) ? importingSourceFile : void 0 - ); - } -} -function tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options = {}) { - var _a; - const moduleSourceFile = getSourceFileOfModule(moduleSymbol); - if (!moduleSourceFile) { - return emptyArray; - } - const cache = (_a = host.getModuleSpecifierCache) == null ? void 0 : _a.call(host); - const cached = cache == null ? void 0 : cache.get(importingSourceFile.path, moduleSourceFile.path, userPreferences, options); - return [cached == null ? void 0 : cached.kind, cached == null ? void 0 : cached.moduleSpecifiers, moduleSourceFile, cached == null ? void 0 : cached.modulePaths, cache]; -} -function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) { - return getModuleSpecifiersWithCacheInfo( - moduleSymbol, - checker, - compilerOptions, - importingSourceFile, - host, - userPreferences, - options, - /*forAutoImport*/ - false - ).moduleSpecifiers; -} -function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { - let computedWithoutCache = false; - const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker); - if (ambient) { - return { - kind: "ambient", - moduleSpecifiers: !(forAutoImport && isExcludedByRegex(ambient, userPreferences.autoImportSpecifierExcludeRegexes)) ? [ambient] : emptyArray, - computedWithoutCache - }; - } - let [kind, specifiers, moduleSourceFile, modulePaths, cache] = tryGetModuleSpecifiersFromCacheWorker( - moduleSymbol, - importingSourceFile, - host, - userPreferences, - options - ); - if (specifiers) return { kind, moduleSpecifiers: specifiers, computedWithoutCache }; - if (!moduleSourceFile) return { kind: void 0, moduleSpecifiers: emptyArray, computedWithoutCache }; - computedWithoutCache = true; - modulePaths || (modulePaths = getAllModulePathsWorker(getInfo(importingSourceFile.fileName, host), moduleSourceFile.originalFileName, host, compilerOptions, options)); - const result = computeModuleSpecifiers( - modulePaths, - compilerOptions, - importingSourceFile, - host, - userPreferences, - options, - forAutoImport - ); - cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, result.kind, modulePaths, result.moduleSpecifiers); - return result; -} -function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { - const info = getInfo(importingSourceFile.fileName, host); - const preferences = getModuleSpecifierPreferences(userPreferences, host, compilerOptions, importingSourceFile); - const existingSpecifier = isFullSourceFile(importingSourceFile) && forEach(modulePaths, (modulePath) => forEach( - host.getFileIncludeReasons().get(toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), - (reason) => { - if (reason.kind !== 3 /* Import */ || reason.file !== importingSourceFile.path) return void 0; - const existingMode = host.getModeForResolutionAtIndex(importingSourceFile, reason.index); - const targetMode = options.overrideImportMode ?? host.getDefaultResolutionModeForFile(importingSourceFile); - if (existingMode !== targetMode && existingMode !== void 0 && targetMode !== void 0) { - return void 0; - } - const specifier = getModuleNameStringLiteralAt(importingSourceFile, reason.index).text; - return preferences.relativePreference !== 1 /* NonRelative */ || !pathIsRelative(specifier) ? specifier : void 0; - } - )); - if (existingSpecifier) { - return { kind: void 0, moduleSpecifiers: [existingSpecifier], computedWithoutCache: true }; - } - const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules); - let nodeModulesSpecifiers; - let pathsSpecifiers; - let redirectPathsSpecifiers; - let relativeSpecifiers; - for (const modulePath of modulePaths) { - const specifier = modulePath.isInNodeModules ? tryGetModuleNameAsNodeModule( - modulePath, - info, - importingSourceFile, - host, - compilerOptions, - userPreferences, - /*packageNameOnly*/ - void 0, - options.overrideImportMode - ) : void 0; - if (specifier && !(forAutoImport && isExcludedByRegex(specifier, preferences.excludeRegexes))) { - nodeModulesSpecifiers = append(nodeModulesSpecifiers, specifier); - if (modulePath.isRedirect) { - return { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true }; - } - } - const local = getLocalModuleSpecifier( - modulePath.path, - info, - compilerOptions, - host, - options.overrideImportMode || importingSourceFile.impliedNodeFormat, - preferences, - /*pathsOnly*/ - modulePath.isRedirect || !!specifier - ); - if (!local || forAutoImport && isExcludedByRegex(local, preferences.excludeRegexes)) { - continue; - } - if (modulePath.isRedirect) { - redirectPathsSpecifiers = append(redirectPathsSpecifiers, local); - } else if (pathIsBareSpecifier(local)) { - if (pathContainsNodeModules(local)) { - relativeSpecifiers = append(relativeSpecifiers, local); - } else { - pathsSpecifiers = append(pathsSpecifiers, local); - } - } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) { - relativeSpecifiers = append(relativeSpecifiers, local); - } - } - return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? { kind: "paths", moduleSpecifiers: pathsSpecifiers, computedWithoutCache: true } : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? { kind: "redirect", moduleSpecifiers: redirectPathsSpecifiers, computedWithoutCache: true } : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true } : { kind: "relative", moduleSpecifiers: relativeSpecifiers ?? emptyArray, computedWithoutCache: true }; -} -function isExcludedByRegex(moduleSpecifier, excludeRegexes) { - return some(excludeRegexes, (pattern) => { - var _a; - return !!((_a = stringToRegex(pattern)) == null ? void 0 : _a.test(moduleSpecifier)); - }); -} -function getInfo(importingSourceFileName, host) { - importingSourceFileName = getNormalizedAbsolutePath(importingSourceFileName, host.getCurrentDirectory()); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true); - const sourceDirectory = getDirectoryPath(importingSourceFileName); - return { - getCanonicalFileName, - importingSourceFileName, - sourceDirectory, - canonicalSourceDirectory: getCanonicalFileName(sourceDirectory) - }; -} -function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { getAllowedEndingsInPreferredOrder: getAllowedEndingsInPrefererredOrder, relativePreference, excludeRegexes }, pathsOnly) { - const { baseUrl, paths, rootDirs } = compilerOptions; - if (pathsOnly && !paths) { - return void 0; - } - const { sourceDirectory, canonicalSourceDirectory, getCanonicalFileName } = info; - const allowedEndings = getAllowedEndingsInPrefererredOrder(importMode); - const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) || processEnding(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), allowedEndings, compilerOptions); - if (!baseUrl && !paths && !getResolvePackageJsonImports(compilerOptions) || relativePreference === 0 /* Relative */) { - return pathsOnly ? void 0 : relativePath; - } - const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory()); - const relativeToBaseUrl = getRelativePathIfInSameVolume(moduleFileName, baseDirectory, getCanonicalFileName); - if (!relativeToBaseUrl) { - return pathsOnly ? void 0 : relativePath; - } - const fromPackageJsonImports = pathsOnly ? void 0 : tryGetModuleNameFromPackageJsonImports( - moduleFileName, - sourceDirectory, - compilerOptions, - host, - importMode, - prefersTsExtension(allowedEndings) - ); - const fromPaths = pathsOnly || fromPackageJsonImports === void 0 ? paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, baseDirectory, getCanonicalFileName, host, compilerOptions) : void 0; - if (pathsOnly) { - return fromPaths; - } - const maybeNonRelative = fromPackageJsonImports ?? (fromPaths === void 0 && baseUrl !== void 0 ? processEnding(relativeToBaseUrl, allowedEndings, compilerOptions) : fromPaths); - if (!maybeNonRelative) { - return relativePath; - } - const relativeIsExcluded = isExcludedByRegex(relativePath, excludeRegexes); - const nonRelativeIsExcluded = isExcludedByRegex(maybeNonRelative, excludeRegexes); - if (!relativeIsExcluded && nonRelativeIsExcluded) { - return relativePath; - } - if (relativeIsExcluded && !nonRelativeIsExcluded) { - return maybeNonRelative; - } - if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) { - return maybeNonRelative; - } - if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) { - const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory()); - const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName); - const sourceIsInternal = startsWith(canonicalSourceDirectory, projectDirectory); - const targetIsInternal = startsWith(modulePath, projectDirectory); - if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) { - return maybeNonRelative; - } - const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath)); - const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory); - const ignoreCase = !hostUsesCaseSensitiveFileNames(host); - if (!packageJsonPathsAreEqual(nearestTargetPackageJson, nearestSourcePackageJson, ignoreCase)) { - return maybeNonRelative; - } - return relativePath; - } - return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative; -} -function packageJsonPathsAreEqual(a, b, ignoreCase) { - if (a === b) return true; - if (a === void 0 || b === void 0) return false; - return comparePaths(a, b, ignoreCase) === 0 /* EqualTo */; -} -function countPathComponents(path) { - let count = 0; - for (let i = startsWith(path, "./") ? 2 : 0; i < path.length; i++) { - if (path.charCodeAt(i) === 47 /* slash */) count++; - } - return count; -} -function comparePathsByRedirectAndNumberOfDirectorySeparators(a, b) { - return compareBooleans(b.isRedirect, a.isRedirect) || compareNumberOfDirectorySeparators(a.path, b.path); -} -function getNearestAncestorDirectoryWithPackageJson(host, fileName) { - if (host.getNearestAncestorDirectoryWithPackageJson) { - return host.getNearestAncestorDirectoryWithPackageJson(fileName); - } - return forEachAncestorDirectoryStoppingAtGlobalCache( - host, - fileName, - (directory) => host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0 - ); -} -function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) { - var _a; - const getCanonicalFileName = hostGetCanonicalFileName(host); - const cwd = host.getCurrentDirectory(); - const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0; - const importedPath = toPath(importedFileName, cwd, getCanonicalFileName); - const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray; - const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects]; - const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f, cwd)); - let shouldFilterIgnoredPaths = !every(targets, containsIgnoredPath); - if (!preferSymlinks) { - const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p)); - if (result2) return result2; - } - const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath(); - const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd); - const result = symlinkedDirectories && forEachAncestorDirectoryStoppingAtGlobalCache( - host, - getDirectoryPath(fullImportedFileName), - (realPathDirectory) => { - const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath(realPathDirectory, cwd, getCanonicalFileName))); - if (!symlinkDirectories) return void 0; - if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) { - return false; - } - return forEach(targets, (target) => { - if (!startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) { - return; - } - const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName); - for (const symlinkDirectory of symlinkDirectories) { - const option = resolvePath(symlinkDirectory, relative); - const result2 = cb(option, target === referenceRedirect); - shouldFilterIgnoredPaths = true; - if (result2) return result2; - } - }); - } - ); - return result || (preferSymlinks ? forEach(targets, (p) => shouldFilterIgnoredPaths && containsIgnoredPath(p) ? void 0 : cb(p, p === referenceRedirect)) : void 0); -} -var runtimeDependencyFields = ["dependencies", "peerDependencies", "optionalDependencies"]; -function getAllRuntimeDependencies(packageJson) { - let result; - for (const field of runtimeDependencyFields) { - const deps = packageJson[field]; - if (deps && typeof deps === "object") { - result = concatenate(result, getOwnKeys(deps)); - } - } - return result; -} -function getAllModulePathsWorker(info, importedFileName, host, compilerOptions, options) { - var _a, _b; - const cache = (_a = host.getModuleResolutionCache) == null ? void 0 : _a.call(host); - const links = (_b = host.getSymlinkCache) == null ? void 0 : _b.call(host); - if (cache && links && host.readFile && !pathContainsNodeModules(info.importingSourceFileName)) { - Debug.type(host); - const state = getTemporaryModuleResolutionState(cache.getPackageJsonInfoCache(), host, {}); - const packageJson = getPackageScopeForPath(getDirectoryPath(info.importingSourceFileName), state); - if (packageJson) { - const toResolve = getAllRuntimeDependencies(packageJson.contents.packageJsonContent); - for (const depName of toResolve || emptyArray) { - const resolved = resolveModuleName( - depName, - combinePaths(packageJson.packageDirectory, "package.json"), - compilerOptions, - host, - cache, - /*redirectedReference*/ - void 0, - options.overrideImportMode - ); - links.setSymlinksFromResolution(resolved.resolvedModule); - } - } - } - const allFileNames = /* @__PURE__ */ new Map(); - let importedFileFromNodeModules = false; - forEachFileNameOfModule( - info.importingSourceFileName, - importedFileName, - host, - /*preferSymlinks*/ - true, - (path, isRedirect) => { - const isInNodeModules = pathContainsNodeModules(path); - allFileNames.set(path, { path: info.getCanonicalFileName(path), isRedirect, isInNodeModules }); - importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules; - } - ); - const sortedPaths = []; - for (let directory = info.canonicalSourceDirectory; allFileNames.size !== 0; ) { - const directoryStart = ensureTrailingDirectorySeparator(directory); - let pathsInDirectory; - allFileNames.forEach(({ path, isRedirect, isInNodeModules }, fileName) => { - if (startsWith(path, directoryStart)) { - (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect, isInNodeModules }); - allFileNames.delete(fileName); - } - }); - if (pathsInDirectory) { - if (pathsInDirectory.length > 1) { - pathsInDirectory.sort(comparePathsByRedirectAndNumberOfDirectorySeparators); - } - sortedPaths.push(...pathsInDirectory); - } - const newDirectory = getDirectoryPath(directory); - if (newDirectory === directory) break; - directory = newDirectory; - } - if (allFileNames.size) { - const remainingPaths = arrayFrom( - allFileNames.entries(), - ([fileName, { isRedirect, isInNodeModules }]) => ({ path: fileName, isRedirect, isInNodeModules }) - ); - if (remainingPaths.length > 1) remainingPaths.sort(comparePathsByRedirectAndNumberOfDirectorySeparators); - sortedPaths.push(...remainingPaths); - } - return sortedPaths; -} -function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) { - var _a; - const decl = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find( - (d) => isNonGlobalAmbientModule(d) && (!isExternalModuleAugmentation(d) || !isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(d.name))) - ); - if (decl) { - return decl.name.text; - } - const ambientModuleDeclareCandidates = mapDefined(moduleSymbol.declarations, (d) => { - var _a2, _b, _c, _d; - if (!isModuleDeclaration(d)) return; - const topNamespace = getTopNamespace(d); - if (!(((_a2 = topNamespace == null ? void 0 : topNamespace.parent) == null ? void 0 : _a2.parent) && isModuleBlock(topNamespace.parent) && isAmbientModule(topNamespace.parent.parent) && isSourceFile(topNamespace.parent.parent.parent))) return; - const exportAssignment = (_d = (_c = (_b = topNamespace.parent.parent.symbol.exports) == null ? void 0 : _b.get("export=")) == null ? void 0 : _c.valueDeclaration) == null ? void 0 : _d.expression; - if (!exportAssignment) return; - const exportSymbol = checker.getSymbolAtLocation(exportAssignment); - if (!exportSymbol) return; - const originalExportSymbol = (exportSymbol == null ? void 0 : exportSymbol.flags) & 2097152 /* Alias */ ? checker.getAliasedSymbol(exportSymbol) : exportSymbol; - if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; - function getTopNamespace(namespaceDeclaration) { - while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { - namespaceDeclaration = namespaceDeclaration.parent; - } - return namespaceDeclaration; - } - }); - const ambientModuleDeclare = ambientModuleDeclareCandidates[0]; - if (ambientModuleDeclare) { - return ambientModuleDeclare.name.text; - } -} -function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, baseDirectory, getCanonicalFileName, host, compilerOptions) { - for (const key in paths) { - for (const patternText2 of paths[key]) { - const normalized = normalizePath(patternText2); - const pattern = getRelativePathIfInSameVolume(normalized, baseDirectory, getCanonicalFileName) ?? normalized; - const indexOfStar = pattern.indexOf("*"); - const candidates = allowedEndings.map((ending) => ({ - ending, - value: processEnding(relativeToBaseUrl, [ending], compilerOptions) - })); - if (tryGetExtensionFromPath2(pattern)) { - candidates.push({ ending: void 0, value: relativeToBaseUrl }); - } - if (indexOfStar !== -1) { - const prefix = pattern.substring(0, indexOfStar); - const suffix = pattern.substring(indexOfStar + 1); - for (const { ending, value } of candidates) { - if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { - const matchedStar = value.substring(prefix.length, value.length - suffix.length); - if (!pathIsRelative(matchedStar)) { - return replaceFirstStar(key, matchedStar); - } - } - } - } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { - return key; - } - } - } - function validateEnding({ ending, value }) { - return ending !== 0 /* Minimal */ || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host); - } -} -function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions, mode, isImports, preferTsExtension) { - if (typeof exports2 === "string") { - const ignoreCase = !hostUsesCaseSensitiveFileNames(host); - const getCommonSourceDirectory2 = () => host.getCommonSourceDirectory(); - const outputFile = isImports && getOutputJSFileNameWorker(targetFilePath, options, ignoreCase, getCommonSourceDirectory2); - const declarationFile = isImports && getOutputDeclarationFileNameWorker(targetFilePath, options, ignoreCase, getCommonSourceDirectory2); - const pathOrPattern = getNormalizedAbsolutePath( - combinePaths(packageDirectory, exports2), - /*currentDirectory*/ - void 0 - ); - const extensionSwappedTarget = hasTSFileExtension(targetFilePath) ? removeFileExtension(targetFilePath) + tryGetJSExtensionForFile(targetFilePath, options) : void 0; - const canTryTsExtension = preferTsExtension && hasImplementationTSFileExtension(targetFilePath); - switch (mode) { - case 0 /* Exact */: - if (extensionSwappedTarget && comparePaths(extensionSwappedTarget, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || comparePaths(targetFilePath, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || outputFile && comparePaths(outputFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || declarationFile && comparePaths(declarationFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */) { - return { moduleFileToTry: packageName }; - } - break; - case 1 /* Directory */: - if (canTryTsExtension && containsPath(targetFilePath, pathOrPattern, ignoreCase)) { - const fragment = getRelativePathFromDirectory( - pathOrPattern, - targetFilePath, - /*ignoreCase*/ - false - ); - return { moduleFileToTry: getNormalizedAbsolutePath( - combinePaths(combinePaths(packageName, exports2), fragment), - /*currentDirectory*/ - void 0 - ) }; - } - if (extensionSwappedTarget && containsPath(pathOrPattern, extensionSwappedTarget, ignoreCase)) { - const fragment = getRelativePathFromDirectory( - pathOrPattern, - extensionSwappedTarget, - /*ignoreCase*/ - false - ); - return { moduleFileToTry: getNormalizedAbsolutePath( - combinePaths(combinePaths(packageName, exports2), fragment), - /*currentDirectory*/ - void 0 - ) }; - } - if (!canTryTsExtension && containsPath(pathOrPattern, targetFilePath, ignoreCase)) { - const fragment = getRelativePathFromDirectory( - pathOrPattern, - targetFilePath, - /*ignoreCase*/ - false - ); - return { moduleFileToTry: getNormalizedAbsolutePath( - combinePaths(combinePaths(packageName, exports2), fragment), - /*currentDirectory*/ - void 0 - ) }; - } - if (outputFile && containsPath(pathOrPattern, outputFile, ignoreCase)) { - const fragment = getRelativePathFromDirectory( - pathOrPattern, - outputFile, - /*ignoreCase*/ - false - ); - return { moduleFileToTry: combinePaths(packageName, fragment) }; - } - if (declarationFile && containsPath(pathOrPattern, declarationFile, ignoreCase)) { - const fragment = changeFullExtension(getRelativePathFromDirectory( - pathOrPattern, - declarationFile, - /*ignoreCase*/ - false - ), getJSExtensionForFile(declarationFile, options)); - return { moduleFileToTry: combinePaths(packageName, fragment) }; - } - break; - case 2 /* Pattern */: - const starPos = pathOrPattern.indexOf("*"); - const leadingSlice = pathOrPattern.slice(0, starPos); - const trailingSlice = pathOrPattern.slice(starPos + 1); - if (canTryTsExtension && startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { - const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length); - return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; - } - if (extensionSwappedTarget && startsWith(extensionSwappedTarget, leadingSlice, ignoreCase) && endsWith(extensionSwappedTarget, trailingSlice, ignoreCase)) { - const starReplacement = extensionSwappedTarget.slice(leadingSlice.length, extensionSwappedTarget.length - trailingSlice.length); - return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; - } - if (!canTryTsExtension && startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { - const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length); - return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; - } - if (outputFile && startsWith(outputFile, leadingSlice, ignoreCase) && endsWith(outputFile, trailingSlice, ignoreCase)) { - const starReplacement = outputFile.slice(leadingSlice.length, outputFile.length - trailingSlice.length); - return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; - } - if (declarationFile && startsWith(declarationFile, leadingSlice, ignoreCase) && endsWith(declarationFile, trailingSlice, ignoreCase)) { - const starReplacement = declarationFile.slice(leadingSlice.length, declarationFile.length - trailingSlice.length); - const substituted = replaceFirstStar(packageName, starReplacement); - const jsExtension = tryGetJSExtensionForFile(declarationFile, options); - return jsExtension ? { moduleFileToTry: changeFullExtension(substituted, jsExtension) } : void 0; - } - break; - } - } else if (Array.isArray(exports2)) { - return forEach(exports2, (e) => tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, e, conditions, mode, isImports, preferTsExtension)); - } else if (typeof exports2 === "object" && exports2 !== null) { - for (const key of getOwnKeys(exports2)) { - if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { - const subTarget = exports2[key]; - const result = tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode, isImports, preferTsExtension); - if (result) { - return result; - } - } - } - } - return void 0; -} -function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions) { - if (typeof exports2 === "object" && exports2 !== null && !Array.isArray(exports2) && allKeysStartWithDot(exports2)) { - return forEach(getOwnKeys(exports2), (k) => { - const subPackageName = getNormalizedAbsolutePath( - combinePaths(packageName, k), - /*currentDirectory*/ - void 0 - ); - const mode = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */; - return tryGetModuleNameFromExportsOrImports( - options, - host, - targetFilePath, - packageDirectory, - subPackageName, - exports2[k], - conditions, - mode, - /*isImports*/ - false, - /*preferTsExtension*/ - false - ); - }); - } - return tryGetModuleNameFromExportsOrImports( - options, - host, - targetFilePath, - packageDirectory, - packageName, - exports2, - conditions, - 0 /* Exact */, - /*isImports*/ - false, - /*preferTsExtension*/ - false - ); -} -function tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, options, host, importMode, preferTsExtension) { - var _a, _b, _c; - if (!host.readFile || !getResolvePackageJsonImports(options)) { - return void 0; - } - const ancestorDirectoryWithPackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory); - if (!ancestorDirectoryWithPackageJson) { - return void 0; - } - const packageJsonPath = combinePaths(ancestorDirectoryWithPackageJson, "package.json"); - const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); - if (isMissingPackageJsonInfo(cachedPackageJson) || !host.fileExists(packageJsonPath)) { - return void 0; - } - const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || tryParseJson(host.readFile(packageJsonPath)); - const imports = packageJsonContent == null ? void 0 : packageJsonContent.imports; - if (!imports) { - return void 0; - } - const conditions = getConditions(options, importMode); - return (_c = forEach(getOwnKeys(imports), (k) => { - if (!startsWith(k, "#") || k === "#" || startsWith(k, "#/")) return void 0; - const mode = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */; - return tryGetModuleNameFromExportsOrImports( - options, - host, - moduleFileName, - ancestorDirectoryWithPackageJson, - k, - imports[k], - conditions, - mode, - /*isImports*/ - true, - preferTsExtension - ); - })) == null ? void 0 : _c.moduleFileToTry; -} -function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) { - const normalizedTargetPaths = getPathsRelativeToRootDirs(moduleFileName, rootDirs, getCanonicalFileName); - if (normalizedTargetPaths === void 0) { - return void 0; - } - const normalizedSourcePaths = getPathsRelativeToRootDirs(sourceDirectory, rootDirs, getCanonicalFileName); - const relativePaths = flatMap(normalizedSourcePaths, (sourcePath) => { - return map(normalizedTargetPaths, (targetPath) => ensurePathIsNonModuleName(getRelativePathFromDirectory(sourcePath, targetPath, getCanonicalFileName))); - }); - const shortest = min(relativePaths, compareNumberOfDirectorySeparators); - if (!shortest) { - return void 0; - } - return processEnding(shortest, allowedEndings, compilerOptions); -} -function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) { - if (!host.fileExists || !host.readFile) { - return void 0; - } - const parts = getNodeModulePathParts(path); - if (!parts) { - return void 0; - } - const preferences = getModuleSpecifierPreferences(userPreferences, host, options, importingSourceFile); - const allowedEndings = preferences.getAllowedEndingsInPreferredOrder(); - let moduleSpecifier = path; - let isPackageRootPath = false; - if (!packageNameOnly) { - let packageRootIndex = parts.packageRootIndex; - let moduleFileName; - while (true) { - const { moduleFileToTry, packageRootPath, blockedByExports, verbatimFromExports } = tryDirectoryWithPackageJson(packageRootIndex); - if (getEmitModuleResolutionKind(options) !== 1 /* Classic */) { - if (blockedByExports) { - return void 0; - } - if (verbatimFromExports) { - return moduleFileToTry; - } - } - if (packageRootPath) { - moduleSpecifier = packageRootPath; - isPackageRootPath = true; - break; - } - if (!moduleFileName) moduleFileName = moduleFileToTry; - packageRootIndex = path.indexOf(directorySeparator, packageRootIndex + 1); - if (packageRootIndex === -1) { - moduleSpecifier = processEnding(moduleFileName, allowedEndings, options, host); - break; - } - } - } - if (isRedirect && !isPackageRootPath) { - return void 0; - } - const globalTypingsCacheLocation = host.getGlobalTypingsCacheLocation && host.getGlobalTypingsCacheLocation(); - const pathToTopLevelNodeModules = getCanonicalFileName(moduleSpecifier.substring(0, parts.topLevelNodeModulesIndex)); - if (!(startsWith(canonicalSourceDirectory, pathToTopLevelNodeModules) || globalTypingsCacheLocation && startsWith(getCanonicalFileName(globalTypingsCacheLocation), pathToTopLevelNodeModules))) { - return void 0; - } - const nodeModulesDirectoryName = moduleSpecifier.substring(parts.topLevelPackageNameIndex + 1); - const packageName = getPackageNameFromTypesPackageName(nodeModulesDirectoryName); - return getEmitModuleResolutionKind(options) === 1 /* Classic */ && packageName === nodeModulesDirectoryName ? void 0 : packageName; - function tryDirectoryWithPackageJson(packageRootIndex) { - var _a, _b; - const packageRootPath = path.substring(0, packageRootIndex); - const packageJsonPath = combinePaths(packageRootPath, "package.json"); - let moduleFileToTry = path; - let maybeBlockedByTypesVersions = false; - const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); - if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) { - const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || tryParseJson(host.readFile(packageJsonPath)); - const importMode = overrideMode || getDefaultResolutionModeForFile(importingSourceFile, host, options); - if (getResolvePackageJsonExports(options)) { - const nodeModulesDirectoryName2 = packageRootPath.substring(parts.topLevelPackageNameIndex + 1); - const packageName2 = getPackageNameFromTypesPackageName(nodeModulesDirectoryName2); - const conditions = getConditions(options, importMode); - const fromExports = (packageJsonContent == null ? void 0 : packageJsonContent.exports) ? tryGetModuleNameFromExports( - options, - host, - path, - packageRootPath, - packageName2, - packageJsonContent.exports, - conditions - ) : void 0; - if (fromExports) { - return { ...fromExports, verbatimFromExports: true }; - } - if (packageJsonContent == null ? void 0 : packageJsonContent.exports) { - return { moduleFileToTry: path, blockedByExports: true }; - } - } - const versionPaths = (packageJsonContent == null ? void 0 : packageJsonContent.typesVersions) ? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions) : void 0; - if (versionPaths) { - const subModuleName = path.slice(packageRootPath.length + 1); - const fromPaths = tryGetModuleNameFromPaths( - subModuleName, - versionPaths.paths, - allowedEndings, - packageRootPath, - getCanonicalFileName, - host, - options - ); - if (fromPaths === void 0) { - maybeBlockedByTypesVersions = true; - } else { - moduleFileToTry = combinePaths(packageRootPath, fromPaths); - } - } - const mainFileRelative = (packageJsonContent == null ? void 0 : packageJsonContent.typings) || (packageJsonContent == null ? void 0 : packageJsonContent.types) || (packageJsonContent == null ? void 0 : packageJsonContent.main) || "index.js"; - if (isString(mainFileRelative) && !(maybeBlockedByTypesVersions && matchPatternOrExact(tryParsePatterns(versionPaths.paths), mainFileRelative))) { - const mainExportFile = toPath(mainFileRelative, packageRootPath, getCanonicalFileName); - const canonicalModuleFileToTry = getCanonicalFileName(moduleFileToTry); - if (removeFileExtension(mainExportFile) === removeFileExtension(canonicalModuleFileToTry)) { - return { packageRootPath, moduleFileToTry }; - } else if ((packageJsonContent == null ? void 0 : packageJsonContent.type) !== "module" && !fileExtensionIsOneOf(canonicalModuleFileToTry, extensionsNotSupportingExtensionlessResolution) && startsWith(canonicalModuleFileToTry, mainExportFile) && getDirectoryPath(canonicalModuleFileToTry) === removeTrailingDirectorySeparator(mainExportFile) && removeFileExtension(getBaseFileName(canonicalModuleFileToTry)) === "index") { - return { packageRootPath, moduleFileToTry }; - } - } - } else { - const fileName = getCanonicalFileName(moduleFileToTry.substring(parts.packageRootIndex + 1)); - if (fileName === "index.d.ts" || fileName === "index.js" || fileName === "index.ts" || fileName === "index.tsx") { - return { moduleFileToTry, packageRootPath }; - } - } - return { moduleFileToTry }; - } -} -function tryGetAnyFileFromPath(host, path) { - if (!host.fileExists) return; - const extensions = flatten(getSupportedExtensions({ allowJs: true }, [{ extension: "node", isMixedContent: false }, { extension: "json", isMixedContent: false, scriptKind: 6 /* JSON */ }])); - for (const e of extensions) { - const fullPath = path + e; - if (host.fileExists(fullPath)) { - return fullPath; - } - } -} -function getPathsRelativeToRootDirs(path, rootDirs, getCanonicalFileName) { - return mapDefined(rootDirs, (rootDir) => { - const relativePath = getRelativePathIfInSameVolume(path, rootDir, getCanonicalFileName); - return relativePath !== void 0 && isPathRelativeToParent(relativePath) ? void 0 : relativePath; - }); -} -function processEnding(fileName, allowedEndings, options, host) { - if (fileExtensionIsOneOf(fileName, [".json" /* Json */, ".mjs" /* Mjs */, ".cjs" /* Cjs */])) { - return fileName; - } - const noExtension = removeFileExtension(fileName); - if (fileName === noExtension) { - return fileName; - } - const jsPriority = allowedEndings.indexOf(2 /* JsExtension */); - const tsPriority = allowedEndings.indexOf(3 /* TsExtension */); - if (fileExtensionIsOneOf(fileName, [".mts" /* Mts */, ".cts" /* Cts */]) && tsPriority !== -1 && tsPriority < jsPriority) { - return fileName; - } else if (fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".d.cts" /* Dcts */, ".cts" /* Cts */])) { - return noExtension + getJSExtensionForFile(fileName, options); - } else if (!fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */]) && fileExtensionIsOneOf(fileName, [".ts" /* Ts */]) && fileName.includes(".d.")) { - return tryGetRealFileNameForNonJsDeclarationFileName(fileName); - } - switch (allowedEndings[0]) { - case 0 /* Minimal */: - const withoutIndex = removeSuffix(noExtension, "/index"); - if (host && withoutIndex !== noExtension && tryGetAnyFileFromPath(host, withoutIndex)) { - return noExtension; - } - return withoutIndex; - case 1 /* Index */: - return noExtension; - case 2 /* JsExtension */: - return noExtension + getJSExtensionForFile(fileName, options); - case 3 /* TsExtension */: - if (isDeclarationFileName(fileName)) { - const extensionlessPriority = allowedEndings.findIndex((e) => e === 0 /* Minimal */ || e === 1 /* Index */); - return extensionlessPriority !== -1 && extensionlessPriority < jsPriority ? noExtension : noExtension + getJSExtensionForFile(fileName, options); - } - return fileName; - default: - return Debug.assertNever(allowedEndings[0]); - } -} -function tryGetRealFileNameForNonJsDeclarationFileName(fileName) { - const baseName = getBaseFileName(fileName); - if (!endsWith(fileName, ".ts" /* Ts */) || !baseName.includes(".d.") || fileExtensionIsOneOf(baseName, [".d.ts" /* Dts */])) return void 0; - const noExtension = removeExtension(fileName, ".ts" /* Ts */); - const ext = noExtension.substring(noExtension.lastIndexOf(".")); - return noExtension.substring(0, noExtension.indexOf(".d.")) + ext; -} -function getJSExtensionForFile(fileName, options) { - return tryGetJSExtensionForFile(fileName, options) ?? Debug.fail(`Extension ${extensionFromPath(fileName)} is unsupported:: FileName:: ${fileName}`); -} -function tryGetJSExtensionForFile(fileName, options) { - const ext = tryGetExtensionFromPath2(fileName); - switch (ext) { - case ".ts" /* Ts */: - case ".d.ts" /* Dts */: - return ".js" /* Js */; - case ".tsx" /* Tsx */: - return options.jsx === 1 /* Preserve */ ? ".jsx" /* Jsx */ : ".js" /* Js */; - case ".js" /* Js */: - case ".jsx" /* Jsx */: - case ".json" /* Json */: - return ext; - case ".d.mts" /* Dmts */: - case ".mts" /* Mts */: - case ".mjs" /* Mjs */: - return ".mjs" /* Mjs */; - case ".d.cts" /* Dcts */: - case ".cts" /* Cts */: - case ".cjs" /* Cjs */: - return ".cjs" /* Cjs */; - default: - return void 0; - } -} -function getRelativePathIfInSameVolume(path, directoryPath, getCanonicalFileName) { - const relativePath = getRelativePathToDirectoryOrUrl( - directoryPath, - path, - directoryPath, - getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - false - ); - return isRootedDiskPath(relativePath) ? void 0 : relativePath; -} -function isPathRelativeToParent(path) { - return startsWith(path, ".."); -} -function getDefaultResolutionModeForFile(file, host, compilerOptions) { - return isFullSourceFile(file) ? host.getDefaultResolutionModeForFile(file) : getDefaultResolutionModeForFileWorker(file, compilerOptions); -} -function prefersTsExtension(allowedEndings) { - const tsPriority = allowedEndings.indexOf(3 /* TsExtension */); - return tsPriority > -1 && tsPriority < allowedEndings.indexOf(2 /* JsExtension */); -} - -// src/compiler/checker.ts -var ambientModuleSymbolRegex = /^".+"$/; -var anon = "(anonymous)"; -var nextSymbolId = 1; -var nextNodeId = 1; -var nextMergeId = 1; -var nextFlowId = 1; -var TypeFacts = /* @__PURE__ */ ((TypeFacts3) => { - TypeFacts3[TypeFacts3["None"] = 0] = "None"; - TypeFacts3[TypeFacts3["TypeofEQString"] = 1] = "TypeofEQString"; - TypeFacts3[TypeFacts3["TypeofEQNumber"] = 2] = "TypeofEQNumber"; - TypeFacts3[TypeFacts3["TypeofEQBigInt"] = 4] = "TypeofEQBigInt"; - TypeFacts3[TypeFacts3["TypeofEQBoolean"] = 8] = "TypeofEQBoolean"; - TypeFacts3[TypeFacts3["TypeofEQSymbol"] = 16] = "TypeofEQSymbol"; - TypeFacts3[TypeFacts3["TypeofEQObject"] = 32] = "TypeofEQObject"; - TypeFacts3[TypeFacts3["TypeofEQFunction"] = 64] = "TypeofEQFunction"; - TypeFacts3[TypeFacts3["TypeofEQHostObject"] = 128] = "TypeofEQHostObject"; - TypeFacts3[TypeFacts3["TypeofNEString"] = 256] = "TypeofNEString"; - TypeFacts3[TypeFacts3["TypeofNENumber"] = 512] = "TypeofNENumber"; - TypeFacts3[TypeFacts3["TypeofNEBigInt"] = 1024] = "TypeofNEBigInt"; - TypeFacts3[TypeFacts3["TypeofNEBoolean"] = 2048] = "TypeofNEBoolean"; - TypeFacts3[TypeFacts3["TypeofNESymbol"] = 4096] = "TypeofNESymbol"; - TypeFacts3[TypeFacts3["TypeofNEObject"] = 8192] = "TypeofNEObject"; - TypeFacts3[TypeFacts3["TypeofNEFunction"] = 16384] = "TypeofNEFunction"; - TypeFacts3[TypeFacts3["TypeofNEHostObject"] = 32768] = "TypeofNEHostObject"; - TypeFacts3[TypeFacts3["EQUndefined"] = 65536] = "EQUndefined"; - TypeFacts3[TypeFacts3["EQNull"] = 131072] = "EQNull"; - TypeFacts3[TypeFacts3["EQUndefinedOrNull"] = 262144] = "EQUndefinedOrNull"; - TypeFacts3[TypeFacts3["NEUndefined"] = 524288] = "NEUndefined"; - TypeFacts3[TypeFacts3["NENull"] = 1048576] = "NENull"; - TypeFacts3[TypeFacts3["NEUndefinedOrNull"] = 2097152] = "NEUndefinedOrNull"; - TypeFacts3[TypeFacts3["Truthy"] = 4194304] = "Truthy"; - TypeFacts3[TypeFacts3["Falsy"] = 8388608] = "Falsy"; - TypeFacts3[TypeFacts3["IsUndefined"] = 16777216] = "IsUndefined"; - TypeFacts3[TypeFacts3["IsNull"] = 33554432] = "IsNull"; - TypeFacts3[TypeFacts3["IsUndefinedOrNull"] = 50331648] = "IsUndefinedOrNull"; - TypeFacts3[TypeFacts3["All"] = 134217727] = "All"; - TypeFacts3[TypeFacts3["BaseStringStrictFacts"] = 3735041] = "BaseStringStrictFacts"; - TypeFacts3[TypeFacts3["BaseStringFacts"] = 12582401] = "BaseStringFacts"; - TypeFacts3[TypeFacts3["StringStrictFacts"] = 16317953] = "StringStrictFacts"; - TypeFacts3[TypeFacts3["StringFacts"] = 16776705] = "StringFacts"; - TypeFacts3[TypeFacts3["EmptyStringStrictFacts"] = 12123649] = "EmptyStringStrictFacts"; - TypeFacts3[TypeFacts3["EmptyStringFacts"] = 12582401 /* BaseStringFacts */] = "EmptyStringFacts"; - TypeFacts3[TypeFacts3["NonEmptyStringStrictFacts"] = 7929345] = "NonEmptyStringStrictFacts"; - TypeFacts3[TypeFacts3["NonEmptyStringFacts"] = 16776705] = "NonEmptyStringFacts"; - TypeFacts3[TypeFacts3["BaseNumberStrictFacts"] = 3734786] = "BaseNumberStrictFacts"; - TypeFacts3[TypeFacts3["BaseNumberFacts"] = 12582146] = "BaseNumberFacts"; - TypeFacts3[TypeFacts3["NumberStrictFacts"] = 16317698] = "NumberStrictFacts"; - TypeFacts3[TypeFacts3["NumberFacts"] = 16776450] = "NumberFacts"; - TypeFacts3[TypeFacts3["ZeroNumberStrictFacts"] = 12123394] = "ZeroNumberStrictFacts"; - TypeFacts3[TypeFacts3["ZeroNumberFacts"] = 12582146 /* BaseNumberFacts */] = "ZeroNumberFacts"; - TypeFacts3[TypeFacts3["NonZeroNumberStrictFacts"] = 7929090] = "NonZeroNumberStrictFacts"; - TypeFacts3[TypeFacts3["NonZeroNumberFacts"] = 16776450] = "NonZeroNumberFacts"; - TypeFacts3[TypeFacts3["BaseBigIntStrictFacts"] = 3734276] = "BaseBigIntStrictFacts"; - TypeFacts3[TypeFacts3["BaseBigIntFacts"] = 12581636] = "BaseBigIntFacts"; - TypeFacts3[TypeFacts3["BigIntStrictFacts"] = 16317188] = "BigIntStrictFacts"; - TypeFacts3[TypeFacts3["BigIntFacts"] = 16775940] = "BigIntFacts"; - TypeFacts3[TypeFacts3["ZeroBigIntStrictFacts"] = 12122884] = "ZeroBigIntStrictFacts"; - TypeFacts3[TypeFacts3["ZeroBigIntFacts"] = 12581636 /* BaseBigIntFacts */] = "ZeroBigIntFacts"; - TypeFacts3[TypeFacts3["NonZeroBigIntStrictFacts"] = 7928580] = "NonZeroBigIntStrictFacts"; - TypeFacts3[TypeFacts3["NonZeroBigIntFacts"] = 16775940] = "NonZeroBigIntFacts"; - TypeFacts3[TypeFacts3["BaseBooleanStrictFacts"] = 3733256] = "BaseBooleanStrictFacts"; - TypeFacts3[TypeFacts3["BaseBooleanFacts"] = 12580616] = "BaseBooleanFacts"; - TypeFacts3[TypeFacts3["BooleanStrictFacts"] = 16316168] = "BooleanStrictFacts"; - TypeFacts3[TypeFacts3["BooleanFacts"] = 16774920] = "BooleanFacts"; - TypeFacts3[TypeFacts3["FalseStrictFacts"] = 12121864] = "FalseStrictFacts"; - TypeFacts3[TypeFacts3["FalseFacts"] = 12580616 /* BaseBooleanFacts */] = "FalseFacts"; - TypeFacts3[TypeFacts3["TrueStrictFacts"] = 7927560] = "TrueStrictFacts"; - TypeFacts3[TypeFacts3["TrueFacts"] = 16774920] = "TrueFacts"; - TypeFacts3[TypeFacts3["SymbolStrictFacts"] = 7925520] = "SymbolStrictFacts"; - TypeFacts3[TypeFacts3["SymbolFacts"] = 16772880] = "SymbolFacts"; - TypeFacts3[TypeFacts3["ObjectStrictFacts"] = 7888800] = "ObjectStrictFacts"; - TypeFacts3[TypeFacts3["ObjectFacts"] = 16736160] = "ObjectFacts"; - TypeFacts3[TypeFacts3["FunctionStrictFacts"] = 7880640] = "FunctionStrictFacts"; - TypeFacts3[TypeFacts3["FunctionFacts"] = 16728e3] = "FunctionFacts"; - TypeFacts3[TypeFacts3["VoidFacts"] = 9830144] = "VoidFacts"; - TypeFacts3[TypeFacts3["UndefinedFacts"] = 26607360] = "UndefinedFacts"; - TypeFacts3[TypeFacts3["NullFacts"] = 42917664] = "NullFacts"; - TypeFacts3[TypeFacts3["EmptyObjectStrictFacts"] = 83427327] = "EmptyObjectStrictFacts"; - TypeFacts3[TypeFacts3["EmptyObjectFacts"] = 83886079] = "EmptyObjectFacts"; - TypeFacts3[TypeFacts3["UnknownFacts"] = 83886079] = "UnknownFacts"; - TypeFacts3[TypeFacts3["AllTypeofNE"] = 556800] = "AllTypeofNE"; - TypeFacts3[TypeFacts3["OrFactsMask"] = 8256] = "OrFactsMask"; - TypeFacts3[TypeFacts3["AndFactsMask"] = 134209471] = "AndFactsMask"; - return TypeFacts3; -})(TypeFacts || {}); -var typeofNEFacts = new Map(Object.entries({ - string: 256 /* TypeofNEString */, - number: 512 /* TypeofNENumber */, - bigint: 1024 /* TypeofNEBigInt */, - boolean: 2048 /* TypeofNEBoolean */, - symbol: 4096 /* TypeofNESymbol */, - undefined: 524288 /* NEUndefined */, - object: 8192 /* TypeofNEObject */, - function: 16384 /* TypeofNEFunction */ -})); -var CheckMode = /* @__PURE__ */ ((CheckMode3) => { - CheckMode3[CheckMode3["Normal"] = 0] = "Normal"; - CheckMode3[CheckMode3["Contextual"] = 1] = "Contextual"; - CheckMode3[CheckMode3["Inferential"] = 2] = "Inferential"; - CheckMode3[CheckMode3["SkipContextSensitive"] = 4] = "SkipContextSensitive"; - CheckMode3[CheckMode3["SkipGenericFunctions"] = 8] = "SkipGenericFunctions"; - CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; - CheckMode3[CheckMode3["RestBindingElement"] = 32] = "RestBindingElement"; - CheckMode3[CheckMode3["TypeOnly"] = 64] = "TypeOnly"; - return CheckMode3; -})(CheckMode || {}); -var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { - SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None"; - SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback"; - SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback"; - SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes"; - SignatureCheckMode3[SignatureCheckMode3["StrictArity"] = 8] = "StrictArity"; - SignatureCheckMode3[SignatureCheckMode3["StrictTopSignature"] = 16] = "StrictTopSignature"; - SignatureCheckMode3[SignatureCheckMode3["Callback"] = 3] = "Callback"; - return SignatureCheckMode3; -})(SignatureCheckMode || {}); -var isNotOverloadAndNotAccessor = and(isNotOverload, isNotAccessor); -var intrinsicTypeKinds = new Map(Object.entries({ - Uppercase: 0 /* Uppercase */, - Lowercase: 1 /* Lowercase */, - Capitalize: 2 /* Capitalize */, - Uncapitalize: 3 /* Uncapitalize */, - NoInfer: 4 /* NoInfer */ -})); -var SymbolLinks = class { -}; -function NodeLinks() { - this.flags = 0 /* None */; -} -function getNodeId(node) { - if (!node.id) { - node.id = nextNodeId; - nextNodeId++; - } - return node.id; -} -function getSymbolId(symbol) { - if (!symbol.id) { - symbol.id = nextSymbolId; - nextSymbolId++; - } - return symbol.id; -} -function isInstantiatedModule(node, preserveConstEnums) { - const moduleState = getModuleInstanceState(node); - return moduleState === 1 /* Instantiated */ || preserveConstEnums && moduleState === 2 /* ConstEnumOnly */; -} -function createTypeChecker(host) { - var deferredDiagnosticsCallbacks = []; - var addLazyDiagnostic = (arg) => { - deferredDiagnosticsCallbacks.push(arg); - }; - var cancellationToken; - var scanner; - var Symbol13 = objectAllocator.getSymbolConstructor(); - var Type7 = objectAllocator.getTypeConstructor(); - var Signature5 = objectAllocator.getSignatureConstructor(); - var typeCount = 0; - var symbolCount = 0; - var totalInstantiationCount = 0; - var instantiationCount = 0; - var instantiationDepth = 0; - var inlineLevel = 0; - var currentNode; - var varianceTypeParameter; - var isInferencePartiallyBlocked = false; - var emptySymbols = createSymbolTable(); - var arrayVariances = [1 /* Covariant */]; - var compilerOptions = host.getCompilerOptions(); - var languageVersion = getEmitScriptTarget(compilerOptions); - var moduleKind = getEmitModuleKind(compilerOptions); - var legacyDecorators = !!compilerOptions.experimentalDecorators; - var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); - var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); - var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); - var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); - var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); - var strictBindCallApply = getStrictOptionValue(compilerOptions, "strictBindCallApply"); - var strictPropertyInitialization = getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); - var strictBuiltinIteratorReturn = getStrictOptionValue(compilerOptions, "strictBuiltinIteratorReturn"); - var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny"); - var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis"); - var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables"); - var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes; - var noUncheckedSideEffectImports = !!compilerOptions.noUncheckedSideEffectImports; - var checkBinaryExpression = createCheckBinaryExpression(); - var emitResolver = createResolver(); - var nodeBuilder = createNodeBuilder(); - var syntacticNodeBuilder = createSyntacticTypeNodeBuilder(compilerOptions, nodeBuilder.syntacticBuilderResolver); - var evaluate = createEvaluator({ - evaluateElementAccessExpression, - evaluateEntityNameExpression - }); - var globals = createSymbolTable(); - var undefinedSymbol = createSymbol(4 /* Property */, "undefined"); - undefinedSymbol.declarations = []; - var globalThisSymbol = createSymbol(1536 /* Module */, "globalThis", 8 /* Readonly */); - globalThisSymbol.exports = globals; - globalThisSymbol.declarations = []; - globals.set(globalThisSymbol.escapedName, globalThisSymbol); - var argumentsSymbol = createSymbol(4 /* Property */, "arguments"); - var requireSymbol = createSymbol(4 /* Property */, "require"); - var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; - var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax; - var apparentArgumentCount; - var lastGetCombinedNodeFlagsNode; - var lastGetCombinedNodeFlagsResult = 0 /* None */; - var lastGetCombinedModifierFlagsNode; - var lastGetCombinedModifierFlagsResult = 0 /* None */; - var resolveName = createNameResolver({ - compilerOptions, - requireSymbol, - argumentsSymbol, - globals, - getSymbolOfDeclaration, - error, - getRequiresScopeChangeCache, - setRequiresScopeChangeCache, - lookup: getSymbol, - onPropertyWithInvalidInitializer: checkAndReportErrorForInvalidInitializer, - onFailedToResolveSymbol, - onSuccessfullyResolvedSymbol - }); - var resolveNameForSymbolSuggestion = createNameResolver({ - compilerOptions, - requireSymbol, - argumentsSymbol, - globals, - getSymbolOfDeclaration, - error, - getRequiresScopeChangeCache, - setRequiresScopeChangeCache, - lookup: getSuggestionForSymbolNameLookup - }); - const checker = { - getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), - getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), - getSymbolCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.symbolCount, symbolCount), - getTypeCount: () => typeCount, - getInstantiationCount: () => totalInstantiationCount, - getRelationCacheSizes: () => ({ - assignable: assignableRelation.size, - identity: identityRelation.size, - subtype: subtypeRelation.size, - strictSubtype: strictSubtypeRelation.size - }), - isUndefinedSymbol: (symbol) => symbol === undefinedSymbol, - isArgumentsSymbol: (symbol) => symbol === argumentsSymbol, - isUnknownSymbol: (symbol) => symbol === unknownSymbol, - getMergedSymbol, - symbolIsValue, - getDiagnostics, - getGlobalDiagnostics, - getRecursionIdentity, - getUnmatchedProperties, - getTypeOfSymbolAtLocation: (symbol, locationIn) => { - const location = getParseTreeNode(locationIn); - return location ? getTypeOfSymbolAtLocation(symbol, location) : errorType; - }, - getTypeOfSymbol, - getSymbolsOfParameterPropertyDeclaration: (parameterIn, parameterName) => { - const parameter = getParseTreeNode(parameterIn, isParameter); - if (parameter === void 0) return Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."); - Debug.assert(isParameterPropertyDeclaration(parameter, parameter.parent)); - return getSymbolsOfParameterPropertyDeclaration(parameter, escapeLeadingUnderscores(parameterName)); - }, - getDeclaredTypeOfSymbol, - getPropertiesOfType, - getPropertyOfType: (type, name) => getPropertyOfType(type, escapeLeadingUnderscores(name)), - getPrivateIdentifierPropertyOfType: (leftType, name, location) => { - const node = getParseTreeNode(location); - if (!node) { - return void 0; - } - const propName = escapeLeadingUnderscores(name); - const lexicallyScopedIdentifier = lookupSymbolForPrivateIdentifierDeclaration(propName, node); - return lexicallyScopedIdentifier ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) : void 0; - }, - getTypeOfPropertyOfType: (type, name) => getTypeOfPropertyOfType(type, escapeLeadingUnderscores(name)), - getIndexInfoOfType: (type, kind) => getIndexInfoOfType(type, kind === 0 /* String */ ? stringType : numberType), - getIndexInfosOfType, - getIndexInfosOfIndexSymbol, - getSignaturesOfType, - getIndexTypeOfType: (type, kind) => getIndexTypeOfType(type, kind === 0 /* String */ ? stringType : numberType), - getIndexType: (type) => getIndexType(type), - getBaseTypes, - getBaseTypeOfLiteralType, - getWidenedType, - getWidenedLiteralType, - fillMissingTypeArguments, - getTypeFromTypeNode: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isTypeNode); - return node ? getTypeFromTypeNode(node) : errorType; - }, - getParameterType: getTypeAtPosition, - getParameterIdentifierInfoAtPosition, - getPromisedTypeOfPromise, - getAwaitedType: (type) => getAwaitedType(type), - getReturnTypeOfSignature, - isNullableType, - getNullableType, - getNonNullableType, - getNonOptionalType: removeOptionalTypeMarker, - getTypeArguments, - typeToTypeNode: nodeBuilder.typeToTypeNode, - typePredicateToTypePredicateNode: nodeBuilder.typePredicateToTypePredicateNode, - indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration, - signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration, - symbolToEntityName: nodeBuilder.symbolToEntityName, - symbolToExpression: nodeBuilder.symbolToExpression, - symbolToNode: nodeBuilder.symbolToNode, - symbolToTypeParameterDeclarations: nodeBuilder.symbolToTypeParameterDeclarations, - symbolToParameterDeclaration: nodeBuilder.symbolToParameterDeclaration, - typeParameterToDeclaration: nodeBuilder.typeParameterToDeclaration, - getSymbolsInScope: (locationIn, meaning) => { - const location = getParseTreeNode(locationIn); - return location ? getSymbolsInScope(location, meaning) : []; - }, - getSymbolAtLocation: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node ? getSymbolAtLocation( - node, - /*ignoreErrors*/ - true - ) : void 0; - }, - getIndexInfosAtLocation: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node ? getIndexInfosAtLocation(node) : void 0; - }, - getShorthandAssignmentValueSymbol: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node ? getShorthandAssignmentValueSymbol(node) : void 0; - }, - getExportSpecifierLocalTargetSymbol: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isExportSpecifier); - return node ? getExportSpecifierLocalTargetSymbol(node) : void 0; - }, - getExportSymbolOfSymbol(symbol) { - return getMergedSymbol(symbol.exportSymbol || symbol); - }, - getTypeAtLocation: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node ? getTypeOfNode(node) : errorType; - }, - getTypeOfAssignmentPattern: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isAssignmentPattern); - return node && getTypeOfAssignmentPattern(node) || errorType; - }, - getPropertySymbolOfDestructuringAssignment: (locationIn) => { - const location = getParseTreeNode(locationIn, isIdentifier); - return location ? getPropertySymbolOfDestructuringAssignment(location) : void 0; - }, - signatureToString: (signature, enclosingDeclaration, flags, kind) => { - return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind); - }, - typeToString: (type, enclosingDeclaration, flags) => { - return typeToString(type, getParseTreeNode(enclosingDeclaration), flags); - }, - symbolToString: (symbol, enclosingDeclaration, meaning, flags) => { - return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags); - }, - typePredicateToString: (predicate, enclosingDeclaration, flags) => { - return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags); - }, - writeSignature: (signature, enclosingDeclaration, flags, kind, writer) => { - return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind, writer); - }, - writeType: (type, enclosingDeclaration, flags, writer) => { - return typeToString(type, getParseTreeNode(enclosingDeclaration), flags, writer); - }, - writeSymbol: (symbol, enclosingDeclaration, meaning, flags, writer) => { - return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags, writer); - }, - writeTypePredicate: (predicate, enclosingDeclaration, flags, writer) => { - return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags, writer); - }, - getAugmentedPropertiesOfType, - getRootSymbols, - getSymbolOfExpando, - getContextualType: (nodeIn, contextFlags) => { - const node = getParseTreeNode(nodeIn, isExpression); - if (!node) { - return void 0; - } - if (contextFlags & 4 /* Completions */) { - return runWithInferenceBlockedFromSourceNode(node, () => getContextualType(node, contextFlags)); - } - return getContextualType(node, contextFlags); - }, - getContextualTypeForObjectLiteralElement: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isObjectLiteralElementLike); - return node ? getContextualTypeForObjectLiteralElement( - node, - /*contextFlags*/ - void 0 - ) : void 0; - }, - getContextualTypeForArgumentAtIndex: (nodeIn, argIndex) => { - const node = getParseTreeNode(nodeIn, isCallLikeExpression); - return node && getContextualTypeForArgumentAtIndex(node, argIndex); - }, - getContextualTypeForJsxAttribute: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isJsxAttributeLike); - return node && getContextualTypeForJsxAttribute( - node, - /*contextFlags*/ - void 0 - ); - }, - isContextSensitive, - getTypeOfPropertyOfContextualType, - getFullyQualifiedName, - getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), - getCandidateSignaturesForStringLiteralCompletions, - getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), - getExpandedParameters, - hasEffectiveRestParameter, - containsArgumentsReference, - getConstantValue: (nodeIn) => { - const node = getParseTreeNode(nodeIn, canHaveConstantValue); - return node ? getConstantValue2(node) : void 0; - }, - isValidPropertyAccess: (nodeIn, propertyName) => { - const node = getParseTreeNode(nodeIn, isPropertyAccessOrQualifiedNameOrImportTypeNode); - return !!node && isValidPropertyAccess(node, escapeLeadingUnderscores(propertyName)); - }, - isValidPropertyAccessForCompletions: (nodeIn, type, property) => { - const node = getParseTreeNode(nodeIn, isPropertyAccessExpression); - return !!node && isValidPropertyAccessForCompletions(node, type, property); - }, - getSignatureFromDeclaration: (declarationIn) => { - const declaration = getParseTreeNode(declarationIn, isFunctionLike); - return declaration ? getSignatureFromDeclaration(declaration) : void 0; - }, - isImplementationOfOverload: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isFunctionLike); - return node ? isImplementationOfOverload(node) : void 0; - }, - getImmediateAliasedSymbol, - getAliasedSymbol: resolveAlias, - getEmitResolver, - requiresAddingImplicitUndefined, - getExportsOfModule: getExportsOfModuleAsArray, - getExportsAndPropertiesOfModule, - forEachExportAndPropertyOfModule, - getSymbolWalker: createGetSymbolWalker( - getRestTypeOfSignature, - getTypePredicateOfSignature, - getReturnTypeOfSignature, - getBaseTypes, - resolveStructuredTypeMembers, - getTypeOfSymbol, - getResolvedSymbol, - getConstraintOfTypeParameter, - getFirstIdentifier, - getTypeArguments - ), - getAmbientModules, - getJsxIntrinsicTagNamesAt, - isOptionalParameter: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isParameter); - return node ? isOptionalParameter(node) : false; - }, - tryGetMemberInModuleExports: (name, symbol) => tryGetMemberInModuleExports(escapeLeadingUnderscores(name), symbol), - tryGetMemberInModuleExportsAndProperties: (name, symbol) => tryGetMemberInModuleExportsAndProperties(escapeLeadingUnderscores(name), symbol), - tryFindAmbientModule: (moduleName) => tryFindAmbientModule( - moduleName, - /*withAugmentations*/ - true - ), - getApparentType, - getUnionType, - isTypeAssignableTo, - createAnonymousType, - createSignature, - createSymbol, - createIndexInfo, - getAnyType: () => anyType, - getStringType: () => stringType, - getStringLiteralType, - getNumberType: () => numberType, - getNumberLiteralType, - getBigIntType: () => bigintType, - getBigIntLiteralType, - getUnknownType: () => unknownType, - createPromiseType, - createArrayType, - getElementTypeOfArrayType, - getBooleanType: () => booleanType, - getFalseType: (fresh) => fresh ? falseType : regularFalseType, - getTrueType: (fresh) => fresh ? trueType : regularTrueType, - getVoidType: () => voidType, - getUndefinedType: () => undefinedType, - getNullType: () => nullType, - getESSymbolType: () => esSymbolType, - getNeverType: () => neverType, - getOptionalType: () => optionalType, - getPromiseType: () => getGlobalPromiseType( - /*reportErrors*/ - false - ), - getPromiseLikeType: () => getGlobalPromiseLikeType( - /*reportErrors*/ - false - ), - getAnyAsyncIterableType: () => { - const type = getGlobalAsyncIterableType( - /*reportErrors*/ - false - ); - if (type === emptyGenericType) return void 0; - return createTypeReference(type, [anyType, anyType, anyType]); - }, - isSymbolAccessible, - isArrayType, - isTupleType, - isArrayLikeType, - isEmptyAnonymousObjectType, - isTypeInvalidDueToUnionDiscriminant, - getExactOptionalProperties, - getAllPossiblePropertiesOfTypes, - getSuggestedSymbolForNonexistentProperty, - getSuggestedSymbolForNonexistentJSXAttribute, - getSuggestedSymbolForNonexistentSymbol: (location, name, meaning) => getSuggestedSymbolForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning), - getSuggestedSymbolForNonexistentModule, - getSuggestedSymbolForNonexistentClassMember, - getBaseConstraintOfType, - getDefaultFromTypeParameter: (type) => type && type.flags & 262144 /* TypeParameter */ ? getDefaultFromTypeParameter(type) : void 0, - resolveName(name, location, meaning, excludeGlobals) { - return resolveName( - location, - escapeLeadingUnderscores(name), - meaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false, - excludeGlobals - ); - }, - getJsxNamespace: (n) => unescapeLeadingUnderscores(getJsxNamespace(n)), - getJsxFragmentFactory: (n) => { - const jsxFragmentFactory = getJsxFragmentFactoryEntity(n); - return jsxFragmentFactory && unescapeLeadingUnderscores(getFirstIdentifier(jsxFragmentFactory).escapedText); - }, - getAccessibleSymbolChain, - getTypePredicateOfSignature, - resolveExternalModuleName: (moduleSpecifierIn) => { - const moduleSpecifier = getParseTreeNode(moduleSpecifierIn, isExpression); - return moduleSpecifier && resolveExternalModuleName( - moduleSpecifier, - moduleSpecifier, - /*ignoreErrors*/ - true - ); - }, - resolveExternalModuleSymbol, - tryGetThisTypeAt: (nodeIn, includeGlobalThis, container) => { - const node = getParseTreeNode(nodeIn); - return node && tryGetThisTypeAt(node, includeGlobalThis, container); - }, - getTypeArgumentConstraint: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isTypeNode); - return node && getTypeArgumentConstraint(node); - }, - getSuggestionDiagnostics: (fileIn, ct) => { - const file = getParseTreeNode(fileIn, isSourceFile) || Debug.fail("Could not determine parsed source file."); - if (skipTypeChecking(file, compilerOptions, host)) { - return emptyArray; - } - let diagnostics2; - try { - cancellationToken = ct; - checkSourceFileWithEagerDiagnostics(file); - Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); - diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); - checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { - (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); - } - }); - return diagnostics2 || emptyArray; - } finally { - cancellationToken = void 0; - } - }, - runWithCancellationToken: (token, callback) => { - try { - cancellationToken = token; - return callback(checker); - } finally { - cancellationToken = void 0; - } - }, - getLocalTypeParametersOfClassOrInterfaceOrTypeAlias, - isDeclarationVisible, - isPropertyAccessible, - getTypeOnlyAliasDeclaration, - getMemberOverrideModifierStatus, - isTypeParameterPossiblyReferenced, - typeHasCallOrConstructSignatures, - getSymbolFlags, - getTypeArgumentsForResolvedSignature - }; - function getTypeArgumentsForResolvedSignature(signature) { - if (signature.mapper === void 0) return void 0; - return instantiateTypes((signature.target || signature).typeParameters, signature.mapper); - } - function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) { - const candidatesSet = /* @__PURE__ */ new Set(); - const candidates = []; - runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( - call, - candidates, - /*argumentCount*/ - void 0, - 0 /* Normal */ - )); - for (const candidate of candidates) { - candidatesSet.add(candidate); - } - candidates.length = 0; - runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( - call, - candidates, - /*argumentCount*/ - void 0, - 0 /* Normal */ - )); - for (const candidate of candidates) { - candidatesSet.add(candidate); - } - return arrayFrom(candidatesSet); - } - function runWithoutResolvedSignatureCaching(node, fn) { - node = findAncestor(node, isCallLikeOrFunctionLikeExpression); - if (node) { - const cachedResolvedSignatures = []; - const cachedTypes2 = []; - while (node) { - const nodeLinks2 = getNodeLinks(node); - cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]); - nodeLinks2.resolvedSignature = void 0; - if (isFunctionExpressionOrArrowFunction(node)) { - const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node)); - const type = symbolLinks2.type; - cachedTypes2.push([symbolLinks2, type]); - symbolLinks2.type = void 0; - } - node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression); - } - const result = fn(); - for (const [nodeLinks2, resolvedSignature] of cachedResolvedSignatures) { - nodeLinks2.resolvedSignature = resolvedSignature; - } - for (const [symbolLinks2, type] of cachedTypes2) { - symbolLinks2.type = type; - } - return result; - } - return fn(); - } - function runWithInferenceBlockedFromSourceNode(node, fn) { - const containingCall = findAncestor(node, isCallLikeExpression); - if (containingCall) { - let toMarkSkip = node; - do { - getNodeLinks(toMarkSkip).skipDirectInference = true; - toMarkSkip = toMarkSkip.parent; - } while (toMarkSkip && toMarkSkip !== containingCall); - } - isInferencePartiallyBlocked = true; - const result = runWithoutResolvedSignatureCaching(node, fn); - isInferencePartiallyBlocked = false; - if (containingCall) { - let toMarkSkip = node; - do { - getNodeLinks(toMarkSkip).skipDirectInference = void 0; - toMarkSkip = toMarkSkip.parent; - } while (toMarkSkip && toMarkSkip !== containingCall); - } - return result; - } - function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) { - const node = getParseTreeNode(nodeIn, isCallLikeExpression); - apparentArgumentCount = argumentCount; - const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode); - apparentArgumentCount = void 0; - return res; - } - var tupleTypes = /* @__PURE__ */ new Map(); - var unionTypes = /* @__PURE__ */ new Map(); - var unionOfUnionTypes = /* @__PURE__ */ new Map(); - var intersectionTypes = /* @__PURE__ */ new Map(); - var stringLiteralTypes = /* @__PURE__ */ new Map(); - var numberLiteralTypes = /* @__PURE__ */ new Map(); - var bigIntLiteralTypes = /* @__PURE__ */ new Map(); - var enumLiteralTypes = /* @__PURE__ */ new Map(); - var indexedAccessTypes = /* @__PURE__ */ new Map(); - var templateLiteralTypes = /* @__PURE__ */ new Map(); - var stringMappingTypes = /* @__PURE__ */ new Map(); - var substitutionTypes = /* @__PURE__ */ new Map(); - var subtypeReductionCache = /* @__PURE__ */ new Map(); - var decoratorContextOverrideTypeCache = /* @__PURE__ */ new Map(); - var cachedTypes = /* @__PURE__ */ new Map(); - var evolvingArrayTypes = []; - var undefinedProperties = /* @__PURE__ */ new Map(); - var markerTypes = /* @__PURE__ */ new Set(); - var unknownSymbol = createSymbol(4 /* Property */, "unknown"); - var resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */); - var unresolvedSymbols = /* @__PURE__ */ new Map(); - var errorTypes = /* @__PURE__ */ new Map(); - var seenIntrinsicNames = /* @__PURE__ */ new Set(); - var anyType = createIntrinsicType(1 /* Any */, "any"); - var autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */, "auto"); - var wildcardType = createIntrinsicType( - 1 /* Any */, - "any", - /*objectFlags*/ - void 0, - "wildcard" - ); - var blockedStringType = createIntrinsicType( - 1 /* Any */, - "any", - /*objectFlags*/ - void 0, - "blocked string" - ); - var errorType = createIntrinsicType(1 /* Any */, "error"); - var unresolvedType = createIntrinsicType(1 /* Any */, "unresolved"); - var nonInferrableAnyType = createIntrinsicType(1 /* Any */, "any", 65536 /* ContainsWideningType */, "non-inferrable"); - var intrinsicMarkerType = createIntrinsicType(1 /* Any */, "intrinsic"); - var unknownType = createIntrinsicType(2 /* Unknown */, "unknown"); - var undefinedType = createIntrinsicType(32768 /* Undefined */, "undefined"); - var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768 /* Undefined */, "undefined", 65536 /* ContainsWideningType */, "widening"); - var missingType = createIntrinsicType( - 32768 /* Undefined */, - "undefined", - /*objectFlags*/ - void 0, - "missing" - ); - var undefinedOrMissingType = exactOptionalPropertyTypes ? missingType : undefinedType; - var optionalType = createIntrinsicType( - 32768 /* Undefined */, - "undefined", - /*objectFlags*/ - void 0, - "optional" - ); - var nullType = createIntrinsicType(65536 /* Null */, "null"); - var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536 /* Null */, "null", 65536 /* ContainsWideningType */, "widening"); - var stringType = createIntrinsicType(4 /* String */, "string"); - var numberType = createIntrinsicType(8 /* Number */, "number"); - var bigintType = createIntrinsicType(64 /* BigInt */, "bigint"); - var falseType = createIntrinsicType( - 512 /* BooleanLiteral */, - "false", - /*objectFlags*/ - void 0, - "fresh" - ); - var regularFalseType = createIntrinsicType(512 /* BooleanLiteral */, "false"); - var trueType = createIntrinsicType( - 512 /* BooleanLiteral */, - "true", - /*objectFlags*/ - void 0, - "fresh" - ); - var regularTrueType = createIntrinsicType(512 /* BooleanLiteral */, "true"); - trueType.regularType = regularTrueType; - trueType.freshType = trueType; - regularTrueType.regularType = regularTrueType; - regularTrueType.freshType = trueType; - falseType.regularType = regularFalseType; - falseType.freshType = falseType; - regularFalseType.regularType = regularFalseType; - regularFalseType.freshType = falseType; - var booleanType = getUnionType([regularFalseType, regularTrueType]); - var esSymbolType = createIntrinsicType(4096 /* ESSymbol */, "symbol"); - var voidType = createIntrinsicType(16384 /* Void */, "void"); - var neverType = createIntrinsicType(131072 /* Never */, "never"); - var silentNeverType = createIntrinsicType(131072 /* Never */, "never", 262144 /* NonInferrableType */, "silent"); - var implicitNeverType = createIntrinsicType( - 131072 /* Never */, - "never", - /*objectFlags*/ - void 0, - "implicit" - ); - var unreachableNeverType = createIntrinsicType( - 131072 /* Never */, - "never", - /*objectFlags*/ - void 0, - "unreachable" - ); - var nonPrimitiveType = createIntrinsicType(67108864 /* NonPrimitive */, "object"); - var stringOrNumberType = getUnionType([stringType, numberType]); - var stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]); - var numberOrBigIntType = getUnionType([numberType, bigintType]); - var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]); - var numericStringType = getTemplateLiteralType(["", ""], [numberType]); - var restrictiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? getRestrictiveTypeParameter(t) : t, () => "(restrictive mapper)"); - var permissiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? wildcardType : t, () => "(permissive mapper)"); - var uniqueLiteralType = createIntrinsicType( - 131072 /* Never */, - "never", - /*objectFlags*/ - void 0, - "unique literal" - ); - var uniqueLiteralMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? uniqueLiteralType : t, () => "(unique literal mapper)"); - var outofbandVarianceMarkerHandler; - var reportUnreliableMapper = makeFunctionTypeMapper((t) => { - if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { - outofbandVarianceMarkerHandler( - /*onlyUnreliable*/ - true - ); - } - return t; - }, () => "(unmeasurable reporter)"); - var reportUnmeasurableMapper = makeFunctionTypeMapper((t) => { - if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { - outofbandVarianceMarkerHandler( - /*onlyUnreliable*/ - false - ); - } - return t; - }, () => "(unreliable reporter)"); - var emptyObjectType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - var emptyJsxObjectType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */; - var emptyFreshJsxObjectType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - emptyFreshJsxObjectType.objectFlags |= 2048 /* JsxAttributes */ | 8192 /* FreshLiteral */ | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); - emptyTypeLiteralSymbol.members = createSymbolTable(); - var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray); - var unknownEmptyObjectType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType; - var emptyGenericType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - emptyGenericType.instantiations = /* @__PURE__ */ new Map(); - var anyFunctionType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - anyFunctionType.objectFlags |= 262144 /* NonInferrableType */; - var noConstraintType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - var circularConstraintType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - var resolvingDefaultType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - var markerSuperType = createTypeParameter(); - var markerSubType = createTypeParameter(); - markerSubType.constraint = markerSuperType; - var markerOtherType = createTypeParameter(); - var markerSuperTypeForCheck = createTypeParameter(); - var markerSubTypeForCheck = createTypeParameter(); - markerSubTypeForCheck.constraint = markerSuperTypeForCheck; - var noTypePredicate = createTypePredicate(1 /* Identifier */, "<>", 0, anyType); - var anySignature = createSignature( - /*declaration*/ - void 0, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - anyType, - /*resolvedTypePredicate*/ - void 0, - 0, - 0 /* None */ - ); - var unknownSignature = createSignature( - /*declaration*/ - void 0, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - errorType, - /*resolvedTypePredicate*/ - void 0, - 0, - 0 /* None */ - ); - var resolvingSignature = createSignature( - /*declaration*/ - void 0, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - anyType, - /*resolvedTypePredicate*/ - void 0, - 0, - 0 /* None */ - ); - var silentNeverSignature = createSignature( - /*declaration*/ - void 0, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - silentNeverType, - /*resolvedTypePredicate*/ - void 0, - 0, - 0 /* None */ - ); - var enumNumberIndexInfo = createIndexInfo( - numberType, - stringType, - /*isReadonly*/ - true - ); - var anyBaseTypeIndexInfo = createIndexInfo( - stringType, - anyType, - /*isReadonly*/ - false - ); - var iterationTypesCache = /* @__PURE__ */ new Map(); - var noIterationTypes = { - get yieldType() { - return Debug.fail("Not supported"); - }, - get returnType() { - return Debug.fail("Not supported"); - }, - get nextType() { - return Debug.fail("Not supported"); - } - }; - var anyIterationTypes = createIterationTypes(anyType, anyType, anyType); - var asyncIterationTypesResolver = { - iterableCacheKey: "iterationTypesOfAsyncIterable", - iteratorCacheKey: "iterationTypesOfAsyncIterator", - iteratorSymbolName: "asyncIterator", - getGlobalIteratorType: getGlobalAsyncIteratorType, - getGlobalIterableType: getGlobalAsyncIterableType, - getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType, - getGlobalIteratorObjectType: getGlobalAsyncIteratorObjectType, - getGlobalGeneratorType: getGlobalAsyncGeneratorType, - getGlobalBuiltinIteratorTypes: getGlobalBuiltinAsyncIteratorTypes, - resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member), - mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method, - mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method, - mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property - }; - var syncIterationTypesResolver = { - iterableCacheKey: "iterationTypesOfIterable", - iteratorCacheKey: "iterationTypesOfIterator", - iteratorSymbolName: "iterator", - getGlobalIteratorType, - getGlobalIterableType, - getGlobalIterableIteratorType, - getGlobalIteratorObjectType, - getGlobalGeneratorType, - getGlobalBuiltinIteratorTypes, - resolveIterationType: (type, _errorNode) => type, - mustHaveANextMethodDiagnostic: Diagnostics.An_iterator_must_have_a_next_method, - mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_iterator_must_be_a_method, - mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property - }; - var amalgamatedDuplicates; - var reverseMappedCache = /* @__PURE__ */ new Map(); - var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map(); - var ambientModulesCache; - var patternAmbientModules; - var patternAmbientModuleAugmentations; - var globalObjectType; - var globalFunctionType; - var globalCallableFunctionType; - var globalNewableFunctionType; - var globalArrayType; - var globalReadonlyArrayType; - var globalStringType; - var globalNumberType; - var globalBooleanType; - var globalRegExpType; - var globalThisType; - var anyArrayType; - var autoArrayType; - var anyReadonlyArrayType; - var deferredGlobalNonNullableTypeAlias; - var deferredGlobalESSymbolConstructorSymbol; - var deferredGlobalESSymbolConstructorTypeSymbol; - var deferredGlobalESSymbolType; - var deferredGlobalTypedPropertyDescriptorType; - var deferredGlobalPromiseType; - var deferredGlobalPromiseLikeType; - var deferredGlobalPromiseConstructorSymbol; - var deferredGlobalPromiseConstructorLikeType; - var deferredGlobalIterableType; - var deferredGlobalIteratorType; - var deferredGlobalIterableIteratorType; - var deferredGlobalIteratorObjectType; - var deferredGlobalGeneratorType; - var deferredGlobalIteratorYieldResultType; - var deferredGlobalIteratorReturnResultType; - var deferredGlobalAsyncIterableType; - var deferredGlobalAsyncIteratorType; - var deferredGlobalAsyncIterableIteratorType; - var deferredGlobalBuiltinIteratorTypes; - var deferredGlobalBuiltinAsyncIteratorTypes; - var deferredGlobalAsyncIteratorObjectType; - var deferredGlobalAsyncGeneratorType; - var deferredGlobalTemplateStringsArrayType; - var deferredGlobalImportMetaType; - var deferredGlobalImportMetaExpressionType; - var deferredGlobalImportCallOptionsType; - var deferredGlobalImportAttributesType; - var deferredGlobalDisposableType; - var deferredGlobalAsyncDisposableType; - var deferredGlobalExtractSymbol; - var deferredGlobalOmitSymbol; - var deferredGlobalAwaitedSymbol; - var deferredGlobalBigIntType; - var deferredGlobalNaNSymbol; - var deferredGlobalRecordSymbol; - var deferredGlobalClassDecoratorContextType; - var deferredGlobalClassMethodDecoratorContextType; - var deferredGlobalClassGetterDecoratorContextType; - var deferredGlobalClassSetterDecoratorContextType; - var deferredGlobalClassAccessorDecoratorContextType; - var deferredGlobalClassAccessorDecoratorTargetType; - var deferredGlobalClassAccessorDecoratorResultType; - var deferredGlobalClassFieldDecoratorContextType; - var allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map(); - var flowLoopStart = 0; - var flowLoopCount = 0; - var sharedFlowCount = 0; - var flowAnalysisDisabled = false; - var flowInvocationCount = 0; - var lastFlowNode; - var lastFlowNodeReachable; - var flowTypeCache; - var contextualTypeNodes = []; - var contextualTypes = []; - var contextualIsCache = []; - var contextualTypeCount = 0; - var contextualBindingPatterns = []; - var inferenceContextNodes = []; - var inferenceContexts = []; - var inferenceContextCount = 0; - var emptyStringType = getStringLiteralType(""); - var zeroType = getNumberLiteralType(0); - var zeroBigIntType = getBigIntLiteralType({ negative: false, base10Value: "0" }); - var resolutionTargets = []; - var resolutionResults = []; - var resolutionPropertyNames = []; - var resolutionStart = 0; - var inVarianceComputation = false; - var suggestionCount = 0; - var maximumSuggestionCount = 10; - var mergedSymbols = []; - var symbolLinks = []; - var nodeLinks = []; - var flowLoopCaches = []; - var flowLoopNodes = []; - var flowLoopKeys = []; - var flowLoopTypes = []; - var sharedFlowNodes = []; - var sharedFlowTypes = []; - var flowNodeReachable = []; - var flowNodePostSuper = []; - var potentialThisCollisions = []; - var potentialNewTargetCollisions = []; - var potentialWeakMapSetCollisions = []; - var potentialReflectCollisions = []; - var potentialUnusedRenamedBindingElementsInTypes = []; - var awaitedTypeStack = []; - var reverseMappedSourceStack = []; - var reverseMappedTargetStack = []; - var reverseExpandingFlags = 0 /* None */; - var diagnostics = createDiagnosticCollection(); - var suggestionDiagnostics = createDiagnosticCollection(); - var typeofType = createTypeofType(); - var _jsxNamespace; - var _jsxFactoryEntity; - var subtypeRelation = /* @__PURE__ */ new Map(); - var strictSubtypeRelation = /* @__PURE__ */ new Map(); - var assignableRelation = /* @__PURE__ */ new Map(); - var comparableRelation = /* @__PURE__ */ new Map(); - var identityRelation = /* @__PURE__ */ new Map(); - var enumRelation = /* @__PURE__ */ new Map(); - var suggestedExtensions = [ - [".mts", ".mjs"], - [".ts", ".js"], - [".cts", ".cjs"], - [".mjs", ".mjs"], - [".js", ".js"], - [".cjs", ".cjs"], - [".tsx", compilerOptions.jsx === 1 /* Preserve */ ? ".jsx" : ".js"], - [".jsx", ".jsx"], - [".json", ".json"] - ]; - initializeTypeChecker(); - return checker; - function isDefinitelyReferenceToGlobalSymbolObject(node) { - if (!isPropertyAccessExpression(node)) return false; - if (!isIdentifier(node.name)) return false; - if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false; - if (isIdentifier(node.expression)) { - return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol( - "Symbol", - 111551 /* Value */ | 1048576 /* ExportValue */, - /*diagnostic*/ - void 0 - ) || unknownSymbol); - } - if (!isIdentifier(node.expression.expression)) return false; - return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol; - } - function getCachedType(key) { - return key ? cachedTypes.get(key) : void 0; - } - function setCachedType(key, type) { - if (key) cachedTypes.set(key, type); - return type; - } - function getJsxNamespace(location) { - if (location) { - const file = getSourceFileOfNode(location); - if (file) { - if (isJsxOpeningFragment(location)) { - if (file.localJsxFragmentNamespace) { - return file.localJsxFragmentNamespace; - } - const jsxFragmentPragma = file.pragmas.get("jsxfrag"); - if (jsxFragmentPragma) { - const chosenPragma = isArray(jsxFragmentPragma) ? jsxFragmentPragma[0] : jsxFragmentPragma; - file.localJsxFragmentFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion); - visitNode(file.localJsxFragmentFactory, markAsSynthetic, isEntityName); - if (file.localJsxFragmentFactory) { - return file.localJsxFragmentNamespace = getFirstIdentifier(file.localJsxFragmentFactory).escapedText; - } - } - const entity = getJsxFragmentFactoryEntity(location); - if (entity) { - file.localJsxFragmentFactory = entity; - return file.localJsxFragmentNamespace = getFirstIdentifier(entity).escapedText; - } - } else { - const localJsxNamespace = getLocalJsxNamespace(file); - if (localJsxNamespace) { - return file.localJsxNamespace = localJsxNamespace; - } - } - } - } - if (!_jsxNamespace) { - _jsxNamespace = "React"; - if (compilerOptions.jsxFactory) { - _jsxFactoryEntity = parseIsolatedEntityName(compilerOptions.jsxFactory, languageVersion); - visitNode(_jsxFactoryEntity, markAsSynthetic); - if (_jsxFactoryEntity) { - _jsxNamespace = getFirstIdentifier(_jsxFactoryEntity).escapedText; - } - } else if (compilerOptions.reactNamespace) { - _jsxNamespace = escapeLeadingUnderscores(compilerOptions.reactNamespace); - } - } - if (!_jsxFactoryEntity) { - _jsxFactoryEntity = factory.createQualifiedName(factory.createIdentifier(unescapeLeadingUnderscores(_jsxNamespace)), "createElement"); - } - return _jsxNamespace; - } - function getLocalJsxNamespace(file) { - if (file.localJsxNamespace) { - return file.localJsxNamespace; - } - const jsxPragma = file.pragmas.get("jsx"); - if (jsxPragma) { - const chosenPragma = isArray(jsxPragma) ? jsxPragma[0] : jsxPragma; - file.localJsxFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion); - visitNode(file.localJsxFactory, markAsSynthetic, isEntityName); - if (file.localJsxFactory) { - return file.localJsxNamespace = getFirstIdentifier(file.localJsxFactory).escapedText; - } - } - } - function markAsSynthetic(node) { - setTextRangePosEnd(node, -1, -1); - return visitEachChild( - node, - markAsSynthetic, - /*context*/ - void 0 - ); - } - function getEmitResolver(sourceFile, cancellationToken2, skipDiagnostics) { - if (!skipDiagnostics) getDiagnostics(sourceFile, cancellationToken2); - return emitResolver; - } - function lookupOrIssueError(location, message, ...args) { - const diagnostic = location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); - const existing = diagnostics.lookup(diagnostic); - if (existing) { - return existing; - } else { - diagnostics.add(diagnostic); - return diagnostic; - } - } - function errorSkippedOn(key, location, message, ...args) { - const diagnostic = error(location, message, ...args); - diagnostic.skippedOn = key; - return diagnostic; - } - function createError(location, message, ...args) { - return location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); - } - function error(location, message, ...args) { - const diagnostic = createError(location, message, ...args); - diagnostics.add(diagnostic); - return diagnostic; - } - function addErrorOrSuggestion(isError, diagnostic) { - if (isError) { - diagnostics.add(diagnostic); - } else { - suggestionDiagnostics.add({ ...diagnostic, category: 2 /* Suggestion */ }); - } - } - function errorOrSuggestion(isError, location, message, ...args) { - if (location.pos < 0 || location.end < 0) { - if (!isError) { - return; - } - const file = getSourceFileOfNode(location); - addErrorOrSuggestion(isError, "message" in message ? createFileDiagnostic(file, 0, 0, message, ...args) : createDiagnosticForFileFromMessageChain(file, message)); - return; - } - addErrorOrSuggestion(isError, "message" in message ? createDiagnosticForNode(location, message, ...args) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message)); - } - function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, ...args) { - const diagnostic = error(location, message, ...args); - if (maybeMissingAwait) { - const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await); - addRelatedInfo(diagnostic, related); - } - return diagnostic; - } - function addDeprecatedSuggestionWorker(declarations, diagnostic) { - const deprecatedTag = Array.isArray(declarations) ? forEach(declarations, getJSDocDeprecatedTag) : getJSDocDeprecatedTag(declarations); - if (deprecatedTag) { - addRelatedInfo( - diagnostic, - createDiagnosticForNode(deprecatedTag, Diagnostics.The_declaration_was_marked_as_deprecated_here) - ); - } - suggestionDiagnostics.add(diagnostic); - return diagnostic; - } - function isDeprecatedSymbol(symbol) { - const parentSymbol = getParentOfSymbol(symbol); - if (parentSymbol && length(symbol.declarations) > 1) { - return parentSymbol.flags & 64 /* Interface */ ? some(symbol.declarations, isDeprecatedDeclaration) : every(symbol.declarations, isDeprecatedDeclaration); - } - return !!symbol.valueDeclaration && isDeprecatedDeclaration(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration); - } - function isDeprecatedDeclaration(declaration) { - return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); - } - function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { - const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); - return addDeprecatedSuggestionWorker(declarations, diagnostic); - } - function addDeprecatedSuggestionWithSignature(location, declaration, deprecatedEntity, signatureString) { - const diagnostic = deprecatedEntity ? createDiagnosticForNode(location, Diagnostics.The_signature_0_of_1_is_deprecated, signatureString, deprecatedEntity) : createDiagnosticForNode(location, Diagnostics._0_is_deprecated, signatureString); - return addDeprecatedSuggestionWorker(declaration, diagnostic); - } - function createSymbol(flags, name, checkFlags) { - symbolCount++; - const symbol = new Symbol13(flags | 33554432 /* Transient */, name); - symbol.links = new SymbolLinks(); - symbol.links.checkFlags = checkFlags || 0 /* None */; - return symbol; - } - function createParameter(name, type) { - const symbol = createSymbol(1 /* FunctionScopedVariable */, name); - symbol.links.type = type; - return symbol; - } - function createProperty(name, type) { - const symbol = createSymbol(4 /* Property */, name); - symbol.links.type = type; - return symbol; - } - function getExcludedSymbolFlags(flags) { - let result = 0; - if (flags & 2 /* BlockScopedVariable */) result |= 111551 /* BlockScopedVariableExcludes */; - if (flags & 1 /* FunctionScopedVariable */) result |= 111550 /* FunctionScopedVariableExcludes */; - if (flags & 4 /* Property */) result |= 0 /* PropertyExcludes */; - if (flags & 8 /* EnumMember */) result |= 900095 /* EnumMemberExcludes */; - if (flags & 16 /* Function */) result |= 110991 /* FunctionExcludes */; - if (flags & 32 /* Class */) result |= 899503 /* ClassExcludes */; - if (flags & 64 /* Interface */) result |= 788872 /* InterfaceExcludes */; - if (flags & 256 /* RegularEnum */) result |= 899327 /* RegularEnumExcludes */; - if (flags & 128 /* ConstEnum */) result |= 899967 /* ConstEnumExcludes */; - if (flags & 512 /* ValueModule */) result |= 110735 /* ValueModuleExcludes */; - if (flags & 8192 /* Method */) result |= 103359 /* MethodExcludes */; - if (flags & 32768 /* GetAccessor */) result |= 46015 /* GetAccessorExcludes */; - if (flags & 65536 /* SetAccessor */) result |= 78783 /* SetAccessorExcludes */; - if (flags & 262144 /* TypeParameter */) result |= 526824 /* TypeParameterExcludes */; - if (flags & 524288 /* TypeAlias */) result |= 788968 /* TypeAliasExcludes */; - if (flags & 2097152 /* Alias */) result |= 2097152 /* AliasExcludes */; - return result; - } - function recordMergedSymbol(target, source) { - if (!source.mergeId) { - source.mergeId = nextMergeId; - nextMergeId++; - } - mergedSymbols[source.mergeId] = target; - } - function cloneSymbol(symbol) { - const result = createSymbol(symbol.flags, symbol.escapedName); - result.declarations = symbol.declarations ? symbol.declarations.slice() : []; - result.parent = symbol.parent; - if (symbol.valueDeclaration) result.valueDeclaration = symbol.valueDeclaration; - if (symbol.constEnumOnlyModule) result.constEnumOnlyModule = true; - if (symbol.members) result.members = new Map(symbol.members); - if (symbol.exports) result.exports = new Map(symbol.exports); - recordMergedSymbol(result, symbol); - return result; - } - function mergeSymbol(target, source, unidirectional = false) { - if (!(target.flags & getExcludedSymbolFlags(source.flags)) || (source.flags | target.flags) & 67108864 /* Assignment */) { - if (source === target) { - return target; - } - if (!(target.flags & 33554432 /* Transient */)) { - const resolvedTarget = resolveSymbol(target); - if (resolvedTarget === unknownSymbol) { - return source; - } - if (!(resolvedTarget.flags & getExcludedSymbolFlags(source.flags)) || (source.flags | resolvedTarget.flags) & 67108864 /* Assignment */) { - target = cloneSymbol(resolvedTarget); - } else { - reportMergeSymbolError(target, source); - return source; - } - } - if (source.flags & 512 /* ValueModule */ && target.flags & 512 /* ValueModule */ && target.constEnumOnlyModule && !source.constEnumOnlyModule) { - target.constEnumOnlyModule = false; - } - target.flags |= source.flags; - if (source.valueDeclaration) { - setValueDeclaration(target, source.valueDeclaration); - } - addRange(target.declarations, source.declarations); - if (source.members) { - if (!target.members) target.members = createSymbolTable(); - mergeSymbolTable(target.members, source.members, unidirectional); - } - if (source.exports) { - if (!target.exports) target.exports = createSymbolTable(); - mergeSymbolTable(target.exports, source.exports, unidirectional, target); - } - if (!unidirectional) { - recordMergedSymbol(target, source); - } - } else if (target.flags & 1024 /* NamespaceModule */) { - if (target !== globalThisSymbol) { - error( - source.declarations && getNameOfDeclaration(source.declarations[0]), - Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, - symbolToString(target) - ); - } - } else { - reportMergeSymbolError(target, source); - } - return target; - function reportMergeSymbolError(target2, source2) { - const isEitherEnum = !!(target2.flags & 384 /* Enum */ || source2.flags & 384 /* Enum */); - const isEitherBlockScoped = !!(target2.flags & 2 /* BlockScopedVariable */ || source2.flags & 2 /* BlockScopedVariable */); - const message = isEitherEnum ? Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations : isEitherBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; - const sourceSymbolFile = source2.declarations && getSourceFileOfNode(source2.declarations[0]); - const targetSymbolFile = target2.declarations && getSourceFileOfNode(target2.declarations[0]); - const isSourcePlainJs = isPlainJsFile(sourceSymbolFile, compilerOptions.checkJs); - const isTargetPlainJs = isPlainJsFile(targetSymbolFile, compilerOptions.checkJs); - const symbolName2 = symbolToString(source2); - if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) { - const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile; - const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile; - const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() })); - const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] })); - if (!isSourcePlainJs) addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source2); - if (!isTargetPlainJs) addDuplicateLocations(conflictingSymbolInfo.secondFileLocations, target2); - } else { - if (!isSourcePlainJs) addDuplicateDeclarationErrorsForSymbols(source2, message, symbolName2, target2); - if (!isTargetPlainJs) addDuplicateDeclarationErrorsForSymbols(target2, message, symbolName2, source2); - } - } - function addDuplicateLocations(locs, symbol) { - if (symbol.declarations) { - for (const decl of symbol.declarations) { - pushIfUnique(locs, decl); - } - } - } - } - function addDuplicateDeclarationErrorsForSymbols(target, message, symbolName2, source) { - forEach(target.declarations, (node) => { - addDuplicateDeclarationError(node, message, symbolName2, source.declarations); - }); - } - function addDuplicateDeclarationError(node, message, symbolName2, relatedNodes) { - const errorNode = (getExpandoInitializer( - node, - /*isPrototypeAssignment*/ - false - ) ? getNameOfExpando(node) : getNameOfDeclaration(node)) || node; - const err = lookupOrIssueError(errorNode, message, symbolName2); - for (const relatedNode of relatedNodes || emptyArray) { - const adjustedNode = (getExpandoInitializer( - relatedNode, - /*isPrototypeAssignment*/ - false - ) ? getNameOfExpando(relatedNode) : getNameOfDeclaration(relatedNode)) || relatedNode; - if (adjustedNode === errorNode) continue; - err.relatedInformation = err.relatedInformation || []; - const leadingMessage = createDiagnosticForNode(adjustedNode, Diagnostics._0_was_also_declared_here, symbolName2); - const followOnMessage = createDiagnosticForNode(adjustedNode, Diagnostics.and_here); - if (length(err.relatedInformation) >= 5 || some(err.relatedInformation, (r) => compareDiagnostics(r, followOnMessage) === 0 /* EqualTo */ || compareDiagnostics(r, leadingMessage) === 0 /* EqualTo */)) continue; - addRelatedInfo(err, !length(err.relatedInformation) ? leadingMessage : followOnMessage); - } - } - function combineSymbolTables(first2, second) { - if (!(first2 == null ? void 0 : first2.size)) return second; - if (!(second == null ? void 0 : second.size)) return first2; - const combined = createSymbolTable(); - mergeSymbolTable(combined, first2); - mergeSymbolTable(combined, second); - return combined; - } - function mergeSymbolTable(target, source, unidirectional = false, mergedParent) { - source.forEach((sourceSymbol, id) => { - const targetSymbol = target.get(id); - const merged = targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol); - if (mergedParent && targetSymbol) { - merged.parent = mergedParent; - } - target.set(id, merged); - }); - } - function mergeModuleAugmentation(moduleName) { - var _a, _b, _c; - const moduleAugmentation = moduleName.parent; - if (((_a = moduleAugmentation.symbol.declarations) == null ? void 0 : _a[0]) !== moduleAugmentation) { - Debug.assert(moduleAugmentation.symbol.declarations.length > 1); - return; - } - if (isGlobalScopeAugmentation(moduleAugmentation)) { - mergeSymbolTable(globals, moduleAugmentation.symbol.exports); - } else { - const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; - let mainModule = resolveExternalModuleNameWorker( - moduleName, - moduleName, - moduleNotFoundError, - /*ignoreErrors*/ - false, - /*isForAugmentation*/ - true - ); - if (!mainModule) { - return; - } - mainModule = resolveExternalModuleSymbol(mainModule); - if (mainModule.flags & 1920 /* Namespace */) { - if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) { - const merged = mergeSymbol( - moduleAugmentation.symbol, - mainModule, - /*unidirectional*/ - true - ); - if (!patternAmbientModuleAugmentations) { - patternAmbientModuleAugmentations = /* @__PURE__ */ new Map(); - } - patternAmbientModuleAugmentations.set(moduleName.text, merged); - } else { - if (((_b = mainModule.exports) == null ? void 0 : _b.get("__export" /* ExportStar */)) && ((_c = moduleAugmentation.symbol.exports) == null ? void 0 : _c.size)) { - const resolvedExports = getResolvedMembersOrExportsOfSymbol(mainModule, "resolvedExports" /* resolvedExports */); - for (const [key, value] of arrayFrom(moduleAugmentation.symbol.exports.entries())) { - if (resolvedExports.has(key) && !mainModule.exports.has(key)) { - mergeSymbol(resolvedExports.get(key), value); - } - } - } - mergeSymbol(mainModule, moduleAugmentation.symbol); - } - } else { - error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); - } - } - } - function addUndefinedToGlobalsOrErrorOnRedeclaration() { - const name = undefinedSymbol.escapedName; - const targetSymbol = globals.get(name); - if (targetSymbol) { - forEach(targetSymbol.declarations, (declaration) => { - if (!isTypeDeclaration(declaration)) { - diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, unescapeLeadingUnderscores(name))); - } - }); - } else { - globals.set(name, undefinedSymbol); - } - } - function getSymbolLinks(symbol) { - if (symbol.flags & 33554432 /* Transient */) return symbol.links; - const id = getSymbolId(symbol); - return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks()); - } - function getNodeLinks(node) { - const nodeId = getNodeId(node); - return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); - } - function getSymbol(symbols, name, meaning) { - if (meaning) { - const symbol = getMergedSymbol(symbols.get(name)); - if (symbol) { - if (symbol.flags & meaning) { - return symbol; - } - if (symbol.flags & 2097152 /* Alias */) { - const targetFlags = getSymbolFlags(symbol); - if (targetFlags & meaning) { - return symbol; - } - } - } - } - } - function getSymbolsOfParameterPropertyDeclaration(parameter, parameterName) { - const constructorDeclaration = parameter.parent; - const classDeclaration = parameter.parent.parent; - const parameterSymbol = getSymbol(constructorDeclaration.locals, parameterName, 111551 /* Value */); - const propertySymbol = getSymbol(getMembersOfSymbol(classDeclaration.symbol), parameterName, 111551 /* Value */); - if (parameterSymbol && propertySymbol) { - return [parameterSymbol, propertySymbol]; - } - return Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration"); - } - function isBlockScopedNameDeclaredBeforeUse(declaration, usage) { - const declarationFile = getSourceFileOfNode(declaration); - const useFile = getSourceFileOfNode(usage); - const declContainer = getEnclosingBlockScopeContainer(declaration); - if (declarationFile !== useFile) { - if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !compilerOptions.outFile || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { - return true; - } - if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - return true; - } - const sourceFiles = host.getSourceFiles(); - return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); - } - if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { - return true; - } - if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { - if (declaration.kind === 208 /* BindingElement */) { - const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); - if (errorBindingElement) { - return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; - } - return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); - } else if (declaration.kind === 260 /* VariableDeclaration */) { - return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); - } else if (isClassLike(declaration)) { - const container = findAncestor(usage, (n) => n === declaration ? "quit" : isComputedPropertyName(n) ? n.parent.parent === declaration : !legacyDecorators && isDecorator(n) && (n.parent === declaration || isMethodDeclaration(n.parent) && n.parent.parent === declaration || isGetOrSetAccessorDeclaration(n.parent) && n.parent.parent === declaration || isPropertyDeclaration(n.parent) && n.parent.parent === declaration || isParameter(n.parent) && n.parent.parent.parent === declaration)); - if (!container) { - return true; - } - if (!legacyDecorators && isDecorator(container)) { - return !!findAncestor(usage, (n) => n === container ? "quit" : isFunctionLike(n) && !getImmediatelyInvokedFunctionExpression(n)); - } - return false; - } else if (isPropertyDeclaration(declaration)) { - return !isPropertyImmediatelyReferencedWithinDeclaration( - declaration, - usage, - /*stopAtAnyPropertyDeclaration*/ - false - ); - } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { - return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); - } - return true; - } - if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { - return true; - } - if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { - return true; - } - if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { - if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { - return !isPropertyImmediatelyReferencedWithinDeclaration( - declaration, - usage, - /*stopAtAnyPropertyDeclaration*/ - true - ); - } else { - return true; - } - } - return false; - function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { - switch (declaration2.parent.parent.kind) { - case 243 /* VariableStatement */: - case 248 /* ForStatement */: - case 250 /* ForOfStatement */: - if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { - return true; - } - break; - } - const grandparent = declaration2.parent.parent; - return isForInOrOfStatement(grandparent) && isSameScopeDescendentOf(usage2, grandparent.expression, declContainer); - } - function isUsedInFunctionOrInstanceProperty(usage2, declaration2) { - return !!findAncestor(usage2, (current) => { - if (current === declContainer) { - return "quit"; - } - if (isFunctionLike(current)) { - return true; - } - if (isClassStaticBlockDeclaration(current)) { - return declaration2.pos < usage2.pos; - } - const propertyDeclaration = tryCast(current.parent, isPropertyDeclaration); - if (propertyDeclaration) { - const initializerOfProperty = propertyDeclaration.initializer === current; - if (initializerOfProperty) { - if (isStatic(current.parent)) { - if (declaration2.kind === 174 /* MethodDeclaration */) { - return true; - } - if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { - const propName = declaration2.name; - if (isIdentifier(propName) || isPrivateIdentifier(propName)) { - const type = getTypeOfSymbol(getSymbolOfDeclaration(declaration2)); - const staticBlocks = filter(declaration2.parent.members, isClassStaticBlockDeclaration); - if (isPropertyInitializedInStaticBlocks(propName, type, staticBlocks, declaration2.parent.pos, current.pos)) { - return true; - } - } - } - } else { - const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); - if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { - return true; - } - } - } - } - return false; - }); - } - function isPropertyImmediatelyReferencedWithinDeclaration(declaration2, usage2, stopAtAnyPropertyDeclaration) { - if (usage2.end > declaration2.end) { - return false; - } - const ancestorChangingReferenceScope = findAncestor(usage2, (node) => { - if (node === declaration2) { - return "quit"; - } - switch (node.kind) { - case 219 /* ArrowFunction */: - return true; - case 172 /* PropertyDeclaration */: - return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; - case 241 /* Block */: - switch (node.parent.kind) { - case 177 /* GetAccessor */: - case 174 /* MethodDeclaration */: - case 178 /* SetAccessor */: - return true; - default: - return false; - } - default: - return false; - } - }); - return ancestorChangingReferenceScope === void 0; - } - } - function getRequiresScopeChangeCache(node) { - return getNodeLinks(node).declarationRequiresScopeChange; - } - function setRequiresScopeChangeCache(node, value) { - getNodeLinks(node).declarationRequiresScopeChange = value; - } - function checkAndReportErrorForInvalidInitializer(errorLocation, name, propertyWithInvalidInitializer, result) { - if (!emitStandardClassFields) { - if (errorLocation && !result && checkAndReportErrorForMissingPrefix(errorLocation, name, name)) { - return true; - } - error( - errorLocation, - errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, - declarationNameToString(propertyWithInvalidInitializer.name), - diagnosticName(name) - ); - return true; - } - return false; - } - function onFailedToResolveSymbol(errorLocation, nameArg, meaning, nameNotFoundMessage) { - const name = isString(nameArg) ? nameArg : nameArg.escapedText; - addLazyDiagnostic(() => { - if (!errorLocation || errorLocation.parent.kind !== 324 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { - let suggestion; - let suggestedLib; - if (nameArg) { - suggestedLib = getSuggestedLibForNonExistentName(nameArg); - if (suggestedLib) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); - } - } - if (!suggestedLib && suggestionCount < maximumSuggestionCount) { - suggestion = getSuggestedSymbolForNonexistentSymbol(errorLocation, name, meaning); - const isGlobalScopeAugmentationDeclaration = (suggestion == null ? void 0 : suggestion.valueDeclaration) && isAmbientModule(suggestion.valueDeclaration) && isGlobalScopeAugmentation(suggestion.valueDeclaration); - if (isGlobalScopeAugmentationDeclaration) { - suggestion = void 0; - } - if (suggestion) { - const suggestionName = symbolToString(suggestion); - const isUncheckedJS = isUncheckedJSSuggestion( - errorLocation, - suggestion, - /*excludeClasses*/ - false - ); - const message = meaning === 1920 /* Namespace */ || nameArg && typeof nameArg !== "string" && nodeIsSynthesized(nameArg) ? Diagnostics.Cannot_find_namespace_0_Did_you_mean_1 : isUncheckedJS ? Diagnostics.Could_not_find_name_0_Did_you_mean_1 : Diagnostics.Cannot_find_name_0_Did_you_mean_1; - const diagnostic = createError(errorLocation, message, diagnosticName(nameArg), suggestionName); - diagnostic.canonicalHead = getCanonicalDiagnostic(nameNotFoundMessage, diagnosticName(nameArg)); - addErrorOrSuggestion(!isUncheckedJS, diagnostic); - if (suggestion.valueDeclaration) { - addRelatedInfo( - diagnostic, - createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName) - ); - } - } - } - if (!suggestion && !suggestedLib && nameArg) { - error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); - } - suggestionCount++; - } - }); - } - function onSuccessfullyResolvedSymbol(errorLocation, result, meaning, lastLocation, associatedDeclarationForContainingInitializerOrBindingName, withinDeferredContext) { - addLazyDiagnostic(() => { - var _a; - const name = result.escapedName; - const isInExternalModule = lastLocation && isSourceFile(lastLocation) && isExternalOrCommonJsModule(lastLocation); - if (errorLocation && (meaning & 2 /* BlockScopedVariable */ || (meaning & 32 /* Class */ || meaning & 384 /* Enum */) && (meaning & 111551 /* Value */) === 111551 /* Value */)) { - const exportOrLocalSymbol = getExportSymbolOfValueSymbolIfExported(result); - if (exportOrLocalSymbol.flags & 2 /* BlockScopedVariable */ || exportOrLocalSymbol.flags & 32 /* Class */ || exportOrLocalSymbol.flags & 384 /* Enum */) { - checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); - } - } - if (isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(errorLocation.flags & 16777216 /* JSDoc */)) { - const merged = getMergedSymbol(result); - if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { - errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); - } - } - if (associatedDeclarationForContainingInitializerOrBindingName && !withinDeferredContext && (meaning & 111551 /* Value */) === 111551 /* Value */) { - const candidate = getMergedSymbol(getLateBoundSymbol(result)); - const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName); - if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); - } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && getSymbol(root.parent.locals, candidate.escapedName, meaning) === candidate) { - error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); - } - } - if (errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { - const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); - if (typeOnlyDeclaration) { - const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; - const unescapedName = unescapeLeadingUnderscores(name); - addTypeOnlyDeclarationRelatedInfo( - error(errorLocation, message, unescapedName), - typeOnlyDeclaration, - unescapedName - ); - } - } - if (compilerOptions.isolatedModules && result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */) { - const isGlobal = getSymbol(globals, name, meaning) === result; - const nonValueSymbol = isGlobal && isSourceFile(lastLocation) && lastLocation.locals && getSymbol(lastLocation.locals, name, ~111551 /* Value */); - if (nonValueSymbol) { - const importDecl = (_a = nonValueSymbol.declarations) == null ? void 0 : _a.find((d) => d.kind === 276 /* ImportSpecifier */ || d.kind === 273 /* ImportClause */ || d.kind === 274 /* NamespaceImport */ || d.kind === 271 /* ImportEqualsDeclaration */); - if (importDecl && !isTypeOnlyImportDeclaration(importDecl)) { - error(importDecl, Diagnostics.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled, unescapeLeadingUnderscores(name)); - } - } - } - }); - } - function addTypeOnlyDeclarationRelatedInfo(diagnostic, typeOnlyDeclaration, unescapedName) { - if (!typeOnlyDeclaration) return diagnostic; - return addRelatedInfo( - diagnostic, - createDiagnosticForNode( - typeOnlyDeclaration, - typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, - unescapedName - ) - ); - } - function diagnosticName(nameArg) { - return isString(nameArg) ? unescapeLeadingUnderscores(nameArg) : declarationNameToString(nameArg); - } - function checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) { - if (!isIdentifier(errorLocation) || errorLocation.escapedText !== name || isTypeReferenceIdentifier(errorLocation) || isInTypeQuery(errorLocation)) { - return false; - } - const container = getThisContainer( - errorLocation, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - let location = container; - while (location) { - if (isClassLike(location.parent)) { - const classSymbol = getSymbolOfDeclaration(location.parent); - if (!classSymbol) { - break; - } - const constructorType = getTypeOfSymbol(classSymbol); - if (getPropertyOfType(constructorType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); - return true; - } - if (location === container && !isStatic(location)) { - const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; - if (getPropertyOfType(instanceType, name)) { - error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); - return true; - } - } - } - location = location.parent; - } - return false; - } - function checkAndReportErrorForExtendingInterface(errorLocation) { - const expression = getEntityNameForExtendingInterface(errorLocation); - if (expression && resolveEntityName( - expression, - 64 /* Interface */, - /*ignoreErrors*/ - true - )) { - error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); - return true; - } - return false; - } - function getEntityNameForExtendingInterface(node) { - switch (node.kind) { - case 80 /* Identifier */: - case 211 /* PropertyAccessExpression */: - return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; - case 233 /* ExpressionWithTypeArguments */: - if (isEntityNameExpression(node.expression)) { - return node.expression; - } - // falls through - default: - return void 0; - } - } - function checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) { - const namespaceMeaning = 1920 /* Namespace */ | (isInJSFile(errorLocation) ? 111551 /* Value */ : 0); - if (meaning === namespaceMeaning) { - const symbol = resolveSymbol(resolveName( - errorLocation, - name, - 788968 /* Type */ & ~namespaceMeaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )); - const parent = errorLocation.parent; - if (symbol) { - if (isQualifiedName(parent)) { - Debug.assert(parent.left === errorLocation, "Should only be resolving left side of qualified name as a namespace"); - const propName = parent.right.escapedText; - const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName); - if (propType) { - error( - parent, - Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, - unescapeLeadingUnderscores(name), - unescapeLeadingUnderscores(propName) - ); - return true; - } - } - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); - return true; - } - } - return false; - } - function checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning) { - if (meaning & (788968 /* Type */ & ~1920 /* Namespace */)) { - const symbol = resolveSymbol(resolveName( - errorLocation, - name, - ~788968 /* Type */ & 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )); - if (symbol && !(symbol.flags & 1920 /* Namespace */)) { - error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); - return true; - } - } - return false; - } - function isPrimitiveTypeName(name) { - return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; - } - function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { - if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { - error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); - return true; - } - return false; - } - function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) { - if (meaning & 111551 /* Value */) { - if (isPrimitiveTypeName(name)) { - const grandparent = errorLocation.parent.parent; - if (grandparent && grandparent.parent && isHeritageClause(grandparent)) { - const heritageKind = grandparent.token; - const containerKind = grandparent.parent.kind; - if (containerKind === 264 /* InterfaceDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) { - error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name)); - } else if (isClassLike(grandparent.parent) && heritageKind === 96 /* ExtendsKeyword */) { - error(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name)); - } else if (isClassLike(grandparent.parent) && heritageKind === 119 /* ImplementsKeyword */) { - error(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name)); - } - } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); - } - return true; - } - const symbol = resolveSymbol(resolveName( - errorLocation, - name, - 788968 /* Type */ & ~111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )); - const allFlags = symbol && getSymbolFlags(symbol); - if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { - const rawName = unescapeLeadingUnderscores(name); - if (isES2015OrLaterConstructorName(name)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); - } else if (maybeMappedType(errorLocation, symbol)) { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); - } else { - error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); - } - return true; - } - } - return false; - } - function maybeMappedType(node, symbol) { - const container = findAncestor(node.parent, (n) => isComputedPropertyName(n) || isPropertySignature(n) ? false : isTypeLiteralNode(n) || "quit"); - if (container && container.members.length === 1) { - const type = getDeclaredTypeOfSymbol(symbol); - return !!(type.flags & 1048576 /* Union */) && allTypesAssignableToKind( - type, - 384 /* StringOrNumberLiteral */, - /*strict*/ - true - ); - } - return false; - } - function isES2015OrLaterConstructorName(n) { - switch (n) { - case "Promise": - case "Symbol": - case "Map": - case "WeakMap": - case "Set": - case "WeakSet": - return true; - } - return false; - } - function checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) { - if (meaning & (111551 /* Value */ & ~788968 /* Type */)) { - const symbol = resolveSymbol(resolveName( - errorLocation, - name, - 1024 /* NamespaceModule */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )); - if (symbol) { - error( - errorLocation, - Diagnostics.Cannot_use_namespace_0_as_a_value, - unescapeLeadingUnderscores(name) - ); - return true; - } - } else if (meaning & (788968 /* Type */ & ~111551 /* Value */)) { - const symbol = resolveSymbol(resolveName( - errorLocation, - name, - 1536 /* Module */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )); - if (symbol) { - error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); - return true; - } - } - return false; - } - function checkResolvedBlockScopedVariable(result, errorLocation) { - var _a; - Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */)); - if (result.flags & (16 /* Function */ | 1 /* FunctionScopedVariable */ | 67108864 /* Assignment */) && result.flags & 32 /* Class */) { - return; - } - const declaration = (_a = result.declarations) == null ? void 0 : _a.find( - (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ - ); - if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); - if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { - let diagnosticMessage; - const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); - if (result.flags & 2 /* BlockScopedVariable */) { - diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); - } else if (result.flags & 32 /* Class */) { - diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); - } else if (result.flags & 256 /* RegularEnum */) { - diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); - } else { - Debug.assert(!!(result.flags & 128 /* ConstEnum */)); - if (getIsolatedModules(compilerOptions)) { - diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); - } - } - if (diagnosticMessage) { - addRelatedInfo(diagnosticMessage, createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName)); - } - } - } - function isSameScopeDescendentOf(initial, parent, stopAt) { - return !!parent && !!findAncestor(initial, (n) => n === parent || (n === stopAt || isFunctionLike(n) && (!getImmediatelyInvokedFunctionExpression(n) || getFunctionFlags(n) & 3 /* AsyncGenerator */) ? "quit" : false)); - } - function getAnyImportSyntax(node) { - switch (node.kind) { - case 271 /* ImportEqualsDeclaration */: - return node; - case 273 /* ImportClause */: - return node.parent; - case 274 /* NamespaceImport */: - return node.parent.parent; - case 276 /* ImportSpecifier */: - return node.parent.parent.parent; - default: - return void 0; - } - } - function getDeclarationOfAliasSymbol(symbol) { - return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration); - } - function isAliasSymbolDeclaration(node) { - return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); - } - function isAliasableOrJsExpression(e) { - return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); - } - function getTargetOfImportEqualsDeclaration(node, dontResolveAlias) { - const commonJSPropertyAccess = getCommonJSPropertyAccess(node); - if (commonJSPropertyAccess) { - const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; - return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; - } - if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { - const immediate = resolveExternalModuleName( - node, - getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) - ); - const resolved2 = resolveExternalModuleSymbol(immediate); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - immediate, - resolved2, - /*overwriteEmpty*/ - false - ); - return resolved2; - } - const resolved = getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, dontResolveAlias); - checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved); - return resolved; - } - function checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved) { - if (markSymbolOfAliasDeclarationIfTypeOnly( - node, - /*immediateTarget*/ - void 0, - resolved, - /*overwriteEmpty*/ - false - ) && !node.isTypeOnly) { - const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); - const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; - const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; - const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : moduleExportNameTextUnescaped(typeOnlyDeclaration.name); - addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); - } - } - function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) { - const exportValue = moduleSymbol.exports.get("export=" /* ExportEquals */); - const exportSymbol = exportValue ? getPropertyOfType( - getTypeOfSymbol(exportValue), - name, - /*skipObjectFunctionPropertyAugment*/ - true - ) : moduleSymbol.exports.get(name); - const resolved = resolveSymbol(exportSymbol, dontResolveAlias); - markSymbolOfAliasDeclarationIfTypeOnly( - sourceNode, - exportSymbol, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function isSyntacticDefault(node) { - return isExportAssignment(node) && !node.isExportEquals || hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) || isNamespaceExport(node); - } - function getEmitSyntaxForModuleSpecifierExpression(usage) { - return isStringLiteralLike(usage) ? host.getEmitSyntaxForUsageLocation(getSourceFileOfNode(usage), usage) : void 0; - } - function isESMFormatImportImportingCommonjsFormatFile(usageMode, targetMode) { - return usageMode === 99 /* ESNext */ && targetMode === 1 /* CommonJS */; - } - function isOnlyImportableAsDefault(usage, resolvedModule) { - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - const usageMode = getEmitSyntaxForModuleSpecifierExpression(usage); - if (usageMode === 99 /* ESNext */) { - resolvedModule ?? (resolvedModule = resolveExternalModuleName( - usage, - usage, - /*ignoreErrors*/ - true - )); - const targetFile = resolvedModule && getSourceFileOfModule(resolvedModule); - return targetFile && (isJsonSourceFile(targetFile) || getDeclarationFileExtension(targetFile.fileName) === ".d.json.ts"); - } - } - return false; - } - function canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, usage) { - const usageMode = file && getEmitSyntaxForModuleSpecifierExpression(usage); - if (file && usageMode !== void 0) { - const targetMode = host.getImpliedNodeFormatForEmit(file); - if (usageMode === 99 /* ESNext */ && targetMode === 1 /* CommonJS */ && 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - return true; - } - if (usageMode === 99 /* ESNext */ && targetMode === 99 /* ESNext */) { - return false; - } - } - if (!allowSyntheticDefaultImports) { - return false; - } - if (!file || file.isDeclarationFile) { - const defaultExportSymbol = resolveExportByName( - moduleSymbol, - "default" /* Default */, - /*sourceNode*/ - void 0, - /*dontResolveAlias*/ - true - ); - if (defaultExportSymbol && some(defaultExportSymbol.declarations, isSyntacticDefault)) { - return false; - } - if (resolveExportByName( - moduleSymbol, - escapeLeadingUnderscores("__esModule"), - /*sourceNode*/ - void 0, - dontResolveAlias - )) { - return false; - } - return true; - } - if (!isSourceFileJS(file)) { - return hasExportAssignmentSymbol(moduleSymbol); - } - return typeof file.externalModuleIndicator !== "object" && !resolveExportByName( - moduleSymbol, - escapeLeadingUnderscores("__esModule"), - /*sourceNode*/ - void 0, - dontResolveAlias - ); - } - function getTargetOfImportClause(node, dontResolveAlias) { - const moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier); - if (moduleSymbol) { - return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias); - } - } - function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) { - var _a; - let exportDefaultSymbol; - if (isShorthandAmbientModuleSymbol(moduleSymbol)) { - exportDefaultSymbol = moduleSymbol; - } else { - exportDefaultSymbol = resolveExportByName(moduleSymbol, "default" /* Default */, node, dontResolveAlias); - } - const file = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - const specifier = getModuleSpecifierForImportOrExport(node); - if (!specifier) { - return exportDefaultSymbol; - } - const hasDefaultOnly = isOnlyImportableAsDefault(specifier, moduleSymbol); - const hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier); - if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) { - if (hasExportAssignmentSymbol(moduleSymbol) && !allowSyntheticDefaultImports) { - const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; - const exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */); - const exportAssignment = exportEqualsSymbol.valueDeclaration; - const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); - if (exportAssignment) { - addRelatedInfo( - err, - createDiagnosticForNode( - exportAssignment, - Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, - compilerOptionName - ) - ); - } - } else if (isImportClause(node)) { - reportNonDefaultExport(moduleSymbol, node); - } else { - errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, isImportOrExportSpecifier(node) && node.propertyName || node.name); - } - } else if (hasSyntheticDefault || hasDefaultOnly) { - const resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - moduleSymbol, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - markSymbolOfAliasDeclarationIfTypeOnly( - node, - exportDefaultSymbol, - /*finalTarget*/ - void 0, - /*overwriteEmpty*/ - false - ); - return exportDefaultSymbol; - } - function getModuleSpecifierForImportOrExport(node) { - switch (node.kind) { - case 273 /* ImportClause */: - return node.parent.moduleSpecifier; - case 271 /* ImportEqualsDeclaration */: - return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; - case 274 /* NamespaceImport */: - return node.parent.parent.moduleSpecifier; - case 276 /* ImportSpecifier */: - return node.parent.parent.parent.moduleSpecifier; - case 281 /* ExportSpecifier */: - return node.parent.parent.moduleSpecifier; - default: - return Debug.assertNever(node); - } - } - function reportNonDefaultExport(moduleSymbol, node) { - var _a, _b, _c; - if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has(node.symbol.escapedName)) { - error( - node.name, - Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, - symbolToString(moduleSymbol), - symbolToString(node.symbol) - ); - } else { - const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); - const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get("__export" /* ExportStar */); - if (exportStar) { - const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find( - (decl) => { - var _a2, _b2; - return !!(isExportDeclaration(decl) && decl.moduleSpecifier && ((_b2 = (_a2 = resolveExternalModuleName(decl, decl.moduleSpecifier)) == null ? void 0 : _a2.exports) == null ? void 0 : _b2.has("default" /* Default */))); - } - ); - if (defaultExport) { - addRelatedInfo(diagnostic, createDiagnosticForNode(defaultExport, Diagnostics.export_Asterisk_does_not_re_export_a_default)); - } - } - } - } - function getTargetOfNamespaceImport(node, dontResolveAlias) { - const moduleSpecifier = node.parent.parent.moduleSpecifier; - const immediate = resolveExternalModuleName(node, moduleSpecifier); - const resolved = resolveESModuleSymbol( - immediate, - moduleSpecifier, - dontResolveAlias, - /*suppressInteropError*/ - false - ); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - immediate, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function getTargetOfNamespaceExport(node, dontResolveAlias) { - const moduleSpecifier = node.parent.moduleSpecifier; - const immediate = moduleSpecifier && resolveExternalModuleName(node, moduleSpecifier); - const resolved = moduleSpecifier && resolveESModuleSymbol( - immediate, - moduleSpecifier, - dontResolveAlias, - /*suppressInteropError*/ - false - ); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - immediate, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function combineValueAndTypeSymbols(valueSymbol, typeSymbol) { - if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) { - return unknownSymbol; - } - if (valueSymbol.flags & (788968 /* Type */ | 1920 /* Namespace */)) { - return valueSymbol; - } - const result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.escapedName); - Debug.assert(valueSymbol.declarations || typeSymbol.declarations); - result.declarations = deduplicate(concatenate(valueSymbol.declarations, typeSymbol.declarations), equateValues); - result.parent = valueSymbol.parent || typeSymbol.parent; - if (valueSymbol.valueDeclaration) result.valueDeclaration = valueSymbol.valueDeclaration; - if (typeSymbol.members) result.members = new Map(typeSymbol.members); - if (valueSymbol.exports) result.exports = new Map(valueSymbol.exports); - return result; - } - function getExportOfModule(symbol, nameText, specifier, dontResolveAlias) { - var _a; - if (symbol.flags & 1536 /* Module */) { - const exportSymbol = getExportsOfSymbol(symbol).get(nameText); - const resolved = resolveSymbol(exportSymbol, dontResolveAlias); - const exportStarDeclaration = (_a = getSymbolLinks(symbol).typeOnlyExportStarMap) == null ? void 0 : _a.get(nameText); - markSymbolOfAliasDeclarationIfTypeOnly( - specifier, - exportSymbol, - resolved, - /*overwriteEmpty*/ - false, - exportStarDeclaration, - nameText - ); - return resolved; - } - } - function getPropertyOfVariable(symbol, name) { - if (symbol.flags & 3 /* Variable */) { - const typeAnnotation = symbol.valueDeclaration.type; - if (typeAnnotation) { - return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(typeAnnotation), name)); - } - } - } - function getExternalModuleMember(node, specifier, dontResolveAlias = false) { - var _a; - const moduleSpecifier = getExternalModuleRequireArgument(node) || node.moduleSpecifier; - const moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); - const name = !isPropertyAccessExpression(specifier) && specifier.propertyName || specifier.name; - if (!isIdentifier(name) && name.kind !== 11 /* StringLiteral */) { - return void 0; - } - const nameText = moduleExportNameTextEscaped(name); - const suppressInteropError = nameText === "default" /* Default */ && allowSyntheticDefaultImports; - const targetSymbol = resolveESModuleSymbol( - moduleSymbol, - moduleSpecifier, - /*dontResolveAlias*/ - false, - suppressInteropError - ); - if (targetSymbol) { - if (nameText || name.kind === 11 /* StringLiteral */) { - if (isShorthandAmbientModuleSymbol(moduleSymbol)) { - return moduleSymbol; - } - let symbolFromVariable; - if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports.get("export=" /* ExportEquals */)) { - symbolFromVariable = getPropertyOfType( - getTypeOfSymbol(targetSymbol), - nameText, - /*skipObjectFunctionPropertyAugment*/ - true - ); - } else { - symbolFromVariable = getPropertyOfVariable(targetSymbol, nameText); - } - symbolFromVariable = resolveSymbol(symbolFromVariable, dontResolveAlias); - let symbolFromModule = getExportOfModule(targetSymbol, nameText, specifier, dontResolveAlias); - if (symbolFromModule === void 0 && nameText === "default" /* Default */) { - const file = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - if (isOnlyImportableAsDefault(moduleSpecifier, moduleSymbol) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { - symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); - } - } - const symbol = symbolFromModule && symbolFromVariable && symbolFromModule !== symbolFromVariable ? combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : symbolFromModule || symbolFromVariable; - if (isImportOrExportSpecifier(specifier) && isOnlyImportableAsDefault(moduleSpecifier, moduleSymbol) && nameText !== "default" /* Default */) { - error(name, Diagnostics.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0, ModuleKind[moduleKind]); - } else if (!symbol) { - errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name); - } - return symbol; - } - } - } - function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) { - var _a; - const moduleName = getFullyQualifiedName(moduleSymbol, node); - const declarationName = declarationNameToString(name); - const suggestion = isIdentifier(name) ? getSuggestedSymbolForNonexistentModule(name, targetSymbol) : void 0; - if (suggestion !== void 0) { - const suggestionName = symbolToString(suggestion); - const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); - if (suggestion.valueDeclaration) { - addRelatedInfo(diagnostic, createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName)); - } - } else { - if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has("default" /* Default */)) { - error( - name, - Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, - moduleName, - declarationName - ); - } else { - reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName); - } - } - } - function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) { - var _a, _b; - const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(moduleExportNameTextEscaped(name)); - const exports2 = moduleSymbol.exports; - if (localSymbol) { - const exportedEqualsSymbol = exports2 == null ? void 0 : exports2.get("export=" /* ExportEquals */); - if (exportedEqualsSymbol) { - getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); - } else { - const exportedSymbol = exports2 ? find(symbolsToArray(exports2), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0; - const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); - if (localSymbol.declarations) { - addRelatedInfo(diagnostic, ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName))); - } - } - } else { - error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); - } - } - function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) { - if (moduleKind >= 5 /* ES2015 */) { - const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); - } else { - if (isInJSFile(node)) { - const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName); - } else { - const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; - error(name, message, declarationName, declarationName, moduleName); - } - } - } - function getTargetOfImportSpecifier(node, dontResolveAlias) { - if (isImportSpecifier(node) && moduleExportNameIsDefault(node.propertyName || node.name)) { - const specifier = getModuleSpecifierForImportOrExport(node); - const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); - if (moduleSymbol) { - return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias); - } - } - const root = isBindingElement(node) ? getRootDeclaration(node) : node.parent.parent.parent; - const commonJSPropertyAccess = getCommonJSPropertyAccess(root); - const resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias); - const name = node.propertyName || node.name; - if (commonJSPropertyAccess && resolved && isIdentifier(name)) { - return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias); - } - markSymbolOfAliasDeclarationIfTypeOnly( - node, - /*immediateTarget*/ - void 0, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function getCommonJSPropertyAccess(node) { - if (isVariableDeclaration(node) && node.initializer && isPropertyAccessExpression(node.initializer)) { - return node.initializer; - } - } - function getTargetOfNamespaceExportDeclaration(node, dontResolveAlias) { - if (canHaveSymbol(node.parent)) { - const resolved = resolveExternalModuleSymbol(node.parent.symbol, dontResolveAlias); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - /*immediateTarget*/ - void 0, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - } - function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) { - const name = node.propertyName || node.name; - if (moduleExportNameIsDefault(name)) { - const specifier = getModuleSpecifierForImportOrExport(node); - const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); - if (moduleSymbol) { - return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias); - } - } - const resolved = node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node, dontResolveAlias) : name.kind === 11 /* StringLiteral */ ? void 0 : ( - // Skip for invalid syntax like this: export { "x" } - resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - false, - dontResolveAlias - ) - ); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - /*immediateTarget*/ - void 0, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function getTargetOfExportAssignment(node, dontResolveAlias) { - const expression = isExportAssignment(node) ? node.expression : node.right; - const resolved = getTargetOfAliasLikeExpression(expression, dontResolveAlias); - markSymbolOfAliasDeclarationIfTypeOnly( - node, - /*immediateTarget*/ - void 0, - resolved, - /*overwriteEmpty*/ - false - ); - return resolved; - } - function getTargetOfAliasLikeExpression(expression, dontResolveAlias) { - if (isClassExpression(expression)) { - return checkExpressionCached(expression).symbol; - } - if (!isEntityName(expression) && !isEntityNameExpression(expression)) { - return void 0; - } - const aliasLike = resolveEntityName( - expression, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, - /*ignoreErrors*/ - true, - dontResolveAlias - ); - if (aliasLike) { - return aliasLike; - } - checkExpressionCached(expression); - return getNodeLinks(expression).resolvedSymbol; - } - function getTargetOfAccessExpression(node, dontRecursivelyResolve) { - if (!(isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */)) { - return void 0; - } - return getTargetOfAliasLikeExpression(node.parent.right, dontRecursivelyResolve); - } - function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { - switch (node.kind) { - case 271 /* ImportEqualsDeclaration */: - case 260 /* VariableDeclaration */: - return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); - case 273 /* ImportClause */: - return getTargetOfImportClause(node, dontRecursivelyResolve); - case 274 /* NamespaceImport */: - return getTargetOfNamespaceImport(node, dontRecursivelyResolve); - case 280 /* NamespaceExport */: - return getTargetOfNamespaceExport(node, dontRecursivelyResolve); - case 276 /* ImportSpecifier */: - case 208 /* BindingElement */: - return getTargetOfImportSpecifier(node, dontRecursivelyResolve); - case 281 /* ExportSpecifier */: - return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); - case 277 /* ExportAssignment */: - case 226 /* BinaryExpression */: - return getTargetOfExportAssignment(node, dontRecursivelyResolve); - case 270 /* NamespaceExportDeclaration */: - return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); - case 304 /* ShorthandPropertyAssignment */: - return resolveEntityName( - node.name, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, - /*ignoreErrors*/ - true, - dontRecursivelyResolve - ); - case 303 /* PropertyAssignment */: - return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); - case 212 /* ElementAccessExpression */: - case 211 /* PropertyAccessExpression */: - return getTargetOfAccessExpression(node, dontRecursivelyResolve); - default: - return Debug.fail(); - } - } - function isNonLocalAlias(symbol, excludes = 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */) { - if (!symbol) return false; - return (symbol.flags & (2097152 /* Alias */ | excludes)) === 2097152 /* Alias */ || !!(symbol.flags & 2097152 /* Alias */ && symbol.flags & 67108864 /* Assignment */); - } - function resolveSymbol(symbol, dontResolveAlias) { - return !dontResolveAlias && isNonLocalAlias(symbol) ? resolveAlias(symbol) : symbol; - } - function resolveAlias(symbol) { - Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here."); - const links = getSymbolLinks(symbol); - if (!links.aliasTarget) { - links.aliasTarget = resolvingSymbol; - const node = getDeclarationOfAliasSymbol(symbol); - if (!node) return Debug.fail(); - const target = getTargetOfAliasDeclaration(node); - if (links.aliasTarget === resolvingSymbol) { - links.aliasTarget = target || unknownSymbol; - } else { - error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); - } - } else if (links.aliasTarget === resolvingSymbol) { - links.aliasTarget = unknownSymbol; - } - return links.aliasTarget; - } - function tryResolveAlias(symbol) { - const links = getSymbolLinks(symbol); - if (links.aliasTarget !== resolvingSymbol) { - return resolveAlias(symbol); - } - return void 0; - } - function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { - const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); - const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); - const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( - typeOnlyDeclaration.moduleSpecifier, - typeOnlyDeclaration.moduleSpecifier, - /*ignoreErrors*/ - true - ) : resolveAlias(typeOnlyDeclaration.symbol)); - const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; - let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; - let seenSymbols; - while (symbol.flags & 2097152 /* Alias */) { - const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); - if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { - break; - } - if (target === unknownSymbol) { - return -1 /* All */; - } - if (target === symbol || (seenSymbols == null ? void 0 : seenSymbols.has(target))) { - break; - } - if (target.flags & 2097152 /* Alias */) { - if (seenSymbols) { - seenSymbols.add(target); - } else { - seenSymbols = /* @__PURE__ */ new Set([symbol, target]); - } - } - flags |= target.flags; - symbol = target; - } - return flags; - } - function markSymbolOfAliasDeclarationIfTypeOnly(aliasDeclaration, immediateTarget, finalTarget, overwriteEmpty, exportStarDeclaration, exportStarName) { - if (!aliasDeclaration || isPropertyAccessExpression(aliasDeclaration)) return false; - const sourceSymbol = getSymbolOfDeclaration(aliasDeclaration); - if (isTypeOnlyImportOrExportDeclaration(aliasDeclaration)) { - const links2 = getSymbolLinks(sourceSymbol); - links2.typeOnlyDeclaration = aliasDeclaration; - return true; - } - if (exportStarDeclaration) { - const links2 = getSymbolLinks(sourceSymbol); - links2.typeOnlyDeclaration = exportStarDeclaration; - if (sourceSymbol.escapedName !== exportStarName) { - links2.typeOnlyExportStarName = exportStarName; - } - return true; - } - const links = getSymbolLinks(sourceSymbol); - return markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, immediateTarget, overwriteEmpty) || markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, finalTarget, overwriteEmpty); - } - function markSymbolOfAliasDeclarationIfTypeOnlyWorker(aliasDeclarationLinks, target, overwriteEmpty) { - var _a; - if (target && (aliasDeclarationLinks.typeOnlyDeclaration === void 0 || overwriteEmpty && aliasDeclarationLinks.typeOnlyDeclaration === false)) { - const exportSymbol = ((_a = target.exports) == null ? void 0 : _a.get("export=" /* ExportEquals */)) ?? target; - const typeOnly = exportSymbol.declarations && find(exportSymbol.declarations, isTypeOnlyImportOrExportDeclaration); - aliasDeclarationLinks.typeOnlyDeclaration = typeOnly ?? getSymbolLinks(exportSymbol).typeOnlyDeclaration ?? false; - } - return !!aliasDeclarationLinks.typeOnlyDeclaration; - } - function getTypeOnlyAliasDeclaration(symbol, include) { - var _a; - if (!(symbol.flags & 2097152 /* Alias */)) { - return void 0; - } - const links = getSymbolLinks(symbol); - if (links.typeOnlyDeclaration === void 0) { - links.typeOnlyDeclaration = false; - const resolved = resolveSymbol(symbol); - markSymbolOfAliasDeclarationIfTypeOnly( - (_a = symbol.declarations) == null ? void 0 : _a[0], - getDeclarationOfAliasSymbol(symbol) && getImmediateAliasedSymbol(symbol), - resolved, - /*overwriteEmpty*/ - true - ); - } - if (include === void 0) { - return links.typeOnlyDeclaration || void 0; - } - if (links.typeOnlyDeclaration) { - const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); - return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; - } - return void 0; - } - function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, dontResolveAlias) { - if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { - entityName = entityName.parent; - } - if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { - return resolveEntityName( - entityName, - 1920 /* Namespace */, - /*ignoreErrors*/ - false, - dontResolveAlias - ); - } else { - Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); - return resolveEntityName( - entityName, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, - /*ignoreErrors*/ - false, - dontResolveAlias - ); - } - } - function getFullyQualifiedName(symbol, containingLocation) { - return symbol.parent ? getFullyQualifiedName(symbol.parent, containingLocation) + "." + symbolToString(symbol) : symbolToString( - symbol, - containingLocation, - /*meaning*/ - void 0, - 32 /* DoNotIncludeSymbolChain */ | 4 /* AllowAnyNodeKind */ - ); - } - function getContainingQualifiedNameNode(node) { - while (isQualifiedName(node.parent)) { - node = node.parent; - } - return node; - } - function tryGetQualifiedNameAsValue(node) { - let left = getFirstIdentifier(node); - let symbol = resolveName( - left, - left, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (!symbol) { - return void 0; - } - while (isQualifiedName(left.parent)) { - const type = getTypeOfSymbol(symbol); - symbol = getPropertyOfType(type, left.parent.right.escapedText); - if (!symbol) { - return void 0; - } - left = left.parent; - } - return symbol; - } - function resolveEntityName(name, meaning, ignoreErrors, dontResolveAlias, location) { - if (nodeIsMissing(name)) { - return void 0; - } - const namespaceMeaning = 1920 /* Namespace */ | (isInJSFile(name) ? meaning & 111551 /* Value */ : 0); - let symbol; - if (name.kind === 80 /* Identifier */) { - const message = meaning === namespaceMeaning || nodeIsSynthesized(name) ? Diagnostics.Cannot_find_namespace_0 : getCannotFindNameDiagnosticForName(getFirstIdentifier(name)); - const symbolFromJSPrototype = isInJSFile(name) && !nodeIsSynthesized(name) ? resolveEntityNameFromAssignmentDeclaration(name, meaning) : void 0; - symbol = getMergedSymbol(resolveName( - location || name, - name, - meaning, - ignoreErrors || symbolFromJSPrototype ? void 0 : message, - /*isUse*/ - true, - /*excludeGlobals*/ - false - )); - if (!symbol) { - return getMergedSymbol(symbolFromJSPrototype); - } - } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { - const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; - const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; - let namespace = resolveEntityName( - left, - namespaceMeaning, - ignoreErrors, - /*dontResolveAlias*/ - false, - location - ); - if (!namespace || nodeIsMissing(right)) { - return void 0; - } else if (namespace === unknownSymbol) { - return namespace; - } - if (namespace.valueDeclaration && isInJSFile(namespace.valueDeclaration) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isVariableDeclaration(namespace.valueDeclaration) && namespace.valueDeclaration.initializer && isCommonJsRequire(namespace.valueDeclaration.initializer)) { - const moduleName = namespace.valueDeclaration.initializer.arguments[0]; - const moduleSym = resolveExternalModuleName(moduleName, moduleName); - if (moduleSym) { - const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym); - if (resolvedModuleSymbol) { - namespace = resolvedModuleSymbol; - } - } - } - symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, meaning)); - if (!symbol && namespace.flags & 2097152 /* Alias */) { - symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(resolveAlias(namespace)), right.escapedText, meaning)); - } - if (!symbol) { - if (!ignoreErrors) { - const namespaceName = getFullyQualifiedName(namespace); - const declarationName = declarationNameToString(right); - const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace); - if (suggestionForNonexistentModule) { - error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); - return void 0; - } - const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name); - const canSuggestTypeof = globalObjectType && meaning & 788968 /* Type */ && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName); - if (canSuggestTypeof) { - error( - containingQualifiedName, - Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, - entityNameToString(containingQualifiedName) - ); - return void 0; - } - if (meaning & 1920 /* Namespace */ && isQualifiedName(name.parent)) { - const exportedTypeSymbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, 788968 /* Type */)); - if (exportedTypeSymbol) { - error( - name.parent.right, - Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, - symbolToString(exportedTypeSymbol), - unescapeLeadingUnderscores(name.parent.right.escapedText) - ); - return void 0; - } - } - error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); - } - return void 0; - } - } else { - Debug.assertNever(name, "Unknown entity name kind."); - } - if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { - markSymbolOfAliasDeclarationIfTypeOnly( - getAliasDeclarationFromName(name), - symbol, - /*finalTarget*/ - void 0, - /*overwriteEmpty*/ - true - ); - } - return symbol.flags & meaning || dontResolveAlias ? symbol : resolveAlias(symbol); - } - function resolveEntityNameFromAssignmentDeclaration(name, meaning) { - if (isJSDocTypeReference(name.parent)) { - const secondaryLocation = getAssignmentDeclarationLocation(name.parent); - if (secondaryLocation) { - return resolveName( - secondaryLocation, - name, - meaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - } - } - } - function getAssignmentDeclarationLocation(node) { - const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); - if (typeAlias) { - return; - } - const host2 = getJSDocHost(node); - if (host2 && isExpressionStatement(host2) && isPrototypePropertyAssignment(host2.expression)) { - const symbol = getSymbolOfDeclaration(host2.expression.left); - if (symbol) { - return getDeclarationOfJSPrototypeContainer(symbol); - } - } - if (host2 && isFunctionExpression(host2) && isPrototypePropertyAssignment(host2.parent) && isExpressionStatement(host2.parent.parent)) { - const symbol = getSymbolOfDeclaration(host2.parent.left); - if (symbol) { - return getDeclarationOfJSPrototypeContainer(symbol); - } - } - if (host2 && (isObjectLiteralMethod(host2) || isPropertyAssignment(host2)) && isBinaryExpression(host2.parent.parent) && getAssignmentDeclarationKind(host2.parent.parent) === 6 /* Prototype */) { - const symbol = getSymbolOfDeclaration(host2.parent.parent.left); - if (symbol) { - return getDeclarationOfJSPrototypeContainer(symbol); - } - } - const sig = getEffectiveJSDocHost(node); - if (sig && isFunctionLike(sig)) { - const symbol = getSymbolOfDeclaration(sig); - return symbol && symbol.valueDeclaration; - } - } - function getDeclarationOfJSPrototypeContainer(symbol) { - const decl = symbol.parent.valueDeclaration; - if (!decl) { - return void 0; - } - const initializer = isAssignmentDeclaration(decl) ? getAssignedExpandoInitializer(decl) : hasOnlyExpressionInitializer(decl) ? getDeclaredExpandoInitializer(decl) : void 0; - return initializer || decl; - } - function getExpandoSymbol(symbol) { - const decl = symbol.valueDeclaration; - if (!decl || !isInJSFile(decl) || symbol.flags & 524288 /* TypeAlias */ || getExpandoInitializer( - decl, - /*isPrototypeAssignment*/ - false - )) { - return void 0; - } - const init = isVariableDeclaration(decl) ? getDeclaredExpandoInitializer(decl) : getAssignedExpandoInitializer(decl); - if (init) { - const initSymbol = getSymbolOfNode(init); - if (initSymbol) { - return mergeJSSymbols(initSymbol, symbol); - } - } - } - function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) { - const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; - const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; - return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors); - } - function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) { - return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : void 0, isForAugmentation) : void 0; - } - function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; - if (errorNode && startsWith(moduleReference, "@types/")) { - const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; - const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); - error(errorNode, diag2, withoutAtTypePrefix, moduleReference); - } - const ambientModule = tryFindAmbientModule( - moduleReference, - /*withAugmentations*/ - true - ); - if (ambientModule) { - return ambientModule; - } - const currentSourceFile = getSourceFileOfNode(location); - const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall( - location.initializer, - /*requireStringLiteralLikeArgument*/ - true - ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression); - const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile); - const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); - const resolvedModule = (_f = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _f.resolvedModule; - const resolutionDiagnostic = errorNode && resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); - const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); - if (sourceFile) { - if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); - } - if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { - const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); - if (errorNode && importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { - error( - errorNode, - Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, - getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))) - ); - } - } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); - if (errorNode && !((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { - const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); - error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); - } - } else if (compilerOptions.rewriteRelativeImportExtensions && !(location.flags & 33554432 /* Ambient */) && !isDeclarationFileName(moduleReference) && !isLiteralImportTypeNode(location) && !isPartOfTypeOnlyImportOrExportDeclaration(location)) { - const shouldRewrite = shouldRewriteModuleSpecifier(moduleReference, compilerOptions); - if (!resolvedModule.resolvedUsingTsExtension && shouldRewrite) { - error( - errorNode, - Diagnostics.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0, - getRelativePathFromFile(getNormalizedAbsolutePath(currentSourceFile.fileName, host.getCurrentDirectory()), resolvedModule.resolvedFileName, hostGetCanonicalFileName(host)) - ); - } else if (resolvedModule.resolvedUsingTsExtension && !shouldRewrite && sourceFileMayBeEmitted(sourceFile, host)) { - error( - errorNode, - Diagnostics.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, - getAnyExtensionFromPath(moduleReference) - ); - } else if (resolvedModule.resolvedUsingTsExtension && shouldRewrite) { - const redirect = host.getResolvedProjectReferenceToRedirect(sourceFile.path); - if (redirect) { - const ignoreCase = !host.useCaseSensitiveFileNames(); - const ownRootDir = host.getCommonSourceDirectory(); - const otherRootDir = getCommonSourceDirectoryOfConfig(redirect.commandLine, ignoreCase); - const rootDirPath = getRelativePathFromDirectory(ownRootDir, otherRootDir, ignoreCase); - const outDirPath = getRelativePathFromDirectory(compilerOptions.outDir || ownRootDir, redirect.commandLine.options.outDir || otherRootDir, ignoreCase); - if (rootDirPath !== outDirPath) { - error( - errorNode, - Diagnostics.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 - ); - } - } - } - } - if (sourceFile.symbol) { - if (errorNode && resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { - errorOnImplicitAnyModule( - /*isError*/ - false, - errorNode, - currentSourceFile, - mode, - resolvedModule, - moduleReference - ); - } - if (errorNode && (moduleKind === 100 /* Node16 */ || moduleKind === 101 /* Node18 */)) { - const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); - const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l)); - if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) { - if (findAncestor(location, isImportEqualsDeclaration)) { - error(errorNode, Diagnostics.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, moduleReference); - } else { - let diagnosticDetails; - const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); - if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) { - diagnosticDetails = createModeMismatchDetails(currentSourceFile); - } - const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_i = overrideHost.importClause) == null ? void 0 : _i.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.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; - diagnostics.add(createDiagnosticForNodeFromMessageChain( - getSourceFileOfNode(errorNode), - errorNode, - chainDiagnosticMessages(diagnosticDetails, message, moduleReference) - )); - } - } - } - return getMergedSymbol(sourceFile.symbol); - } - if (errorNode && moduleNotFoundError && !isSideEffectImport(errorNode)) { - error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); - } - return void 0; - } - if (patternAmbientModules) { - const pattern = findBestPatternMatch(patternAmbientModules, (_) => _.pattern, moduleReference); - if (pattern) { - const augmentation = patternAmbientModuleAugmentations && patternAmbientModuleAugmentations.get(moduleReference); - if (augmentation) { - return getMergedSymbol(augmentation); - } - return getMergedSymbol(pattern.symbol); - } - } - if (!errorNode) { - return void 0; - } - if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { - if (isForAugmentation) { - const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; - error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); - } else { - errorOnImplicitAnyModule( - /*isError*/ - noImplicitAny && !!moduleNotFoundError, - errorNode, - currentSourceFile, - mode, - resolvedModule, - moduleReference - ); - } - return void 0; - } - if (moduleNotFoundError) { - if (resolvedModule) { - const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName); - if (redirect) { - error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); - return void 0; - } - } - if (resolutionDiagnostic) { - error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); - } else { - const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference); - const resolutionIsNode16OrNext = moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */; - if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, ".json" /* Json */) && moduleResolutionKind !== 1 /* Classic */ && hasJsonModuleEmitEnabled(compilerOptions)) { - error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); - } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { - const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); - const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; - if (suggestedExt) { - error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt); - } else { - error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); - } - } else { - if ((_k = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _k.alternateResult) { - const errorInfo = createModuleNotFoundChain(currentSourceFile, host, moduleReference, mode, moduleReference); - errorOrSuggestion( - /*isError*/ - true, - errorNode, - chainDiagnosticMessages(errorInfo, moduleNotFoundError, moduleReference) - ); - } else { - error(errorNode, moduleNotFoundError, moduleReference); - } - } - } - } - return void 0; - function getSuggestedImportSource(tsExtension) { - const importSourceWithoutExtension = removeExtension(moduleReference, tsExtension); - if (emitModuleKindIsNonNodeESM(moduleKind) || mode === 99 /* ESNext */) { - const preferTs = isDeclarationFileName(moduleReference) && shouldAllowImportingTsExtension(compilerOptions); - const ext = tsExtension === ".mts" /* Mts */ || tsExtension === ".d.mts" /* Dmts */ ? preferTs ? ".mts" : ".mjs" : tsExtension === ".cts" /* Cts */ || tsExtension === ".d.mts" /* Dmts */ ? preferTs ? ".cts" : ".cjs" : preferTs ? ".ts" : ".js"; - return importSourceWithoutExtension + ext; - } - return importSourceWithoutExtension; - } - } - function errorOnImplicitAnyModule(isError, errorNode, sourceFile, mode, { packageId, resolvedFileName }, moduleReference) { - if (isSideEffectImport(errorNode)) { - return; - } - let errorInfo; - if (!isExternalModuleNameRelative(moduleReference) && packageId) { - errorInfo = createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageId.name); - } - errorOrSuggestion( - isError, - errorNode, - chainDiagnosticMessages( - errorInfo, - Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, - moduleReference, - resolvedFileName - ) - ); - } - function resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) { - if (moduleSymbol == null ? void 0 : moduleSymbol.exports) { - const exportEquals = resolveSymbol(moduleSymbol.exports.get("export=" /* ExportEquals */), dontResolveAlias); - const exported = getCommonJsExportEquals(getMergedSymbol(exportEquals), getMergedSymbol(moduleSymbol)); - return getMergedSymbol(exported) || moduleSymbol; - } - return void 0; - } - function getCommonJsExportEquals(exported, moduleSymbol) { - if (!exported || exported === unknownSymbol || exported === moduleSymbol || moduleSymbol.exports.size === 1 || exported.flags & 2097152 /* Alias */) { - return exported; - } - const links = getSymbolLinks(exported); - if (links.cjsExportMerged) { - return links.cjsExportMerged; - } - const merged = exported.flags & 33554432 /* Transient */ ? exported : cloneSymbol(exported); - merged.flags = merged.flags | 512 /* ValueModule */; - if (merged.exports === void 0) { - merged.exports = createSymbolTable(); - } - moduleSymbol.exports.forEach((s, name) => { - if (name === "export=" /* ExportEquals */) return; - merged.exports.set(name, merged.exports.has(name) ? mergeSymbol(merged.exports.get(name), s) : s); - }); - if (merged === exported) { - getSymbolLinks(merged).resolvedExports = void 0; - getSymbolLinks(merged).resolvedMembers = void 0; - } - getSymbolLinks(merged).cjsExportMerged = merged; - return links.cjsExportMerged = merged; - } - function resolveESModuleSymbol(moduleSymbol, referencingLocation, dontResolveAlias, suppressInteropError) { - var _a; - const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); - if (!dontResolveAlias && symbol) { - if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 307 /* SourceFile */)) { - const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; - error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); - return symbol; - } - const referenceParent = referencingLocation.parent; - if (isImportDeclaration(referenceParent) && getNamespaceDeclarationNode(referenceParent) || isImportCall(referenceParent)) { - const reference = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier; - const type = getTypeOfSymbol(symbol); - const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference); - if (defaultOnlyType) { - return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent); - } - const targetFile = (_a = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), host.getImpliedNodeFormatForEmit(targetFile)); - if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { - let sigs = getSignaturesOfStructuredType(type, 0 /* Call */); - if (!sigs || !sigs.length) { - sigs = getSignaturesOfStructuredType(type, 1 /* Construct */); - } - if (sigs && sigs.length || getPropertyOfType( - type, - "default" /* Default */, - /*skipObjectFunctionPropertyAugment*/ - true - ) || isEsmCjsRef) { - const moduleType = type.flags & 3670016 /* StructuredType */ ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference) : createDefaultPropertyWrapperForModule(symbol, symbol.parent); - return cloneTypeAsModuleType(symbol, moduleType, referenceParent); - } - } - } - } - return symbol; - } - function cloneTypeAsModuleType(symbol, moduleType, referenceParent) { - const result = createSymbol(symbol.flags, symbol.escapedName); - result.declarations = symbol.declarations ? symbol.declarations.slice() : []; - result.parent = symbol.parent; - result.links.target = symbol; - result.links.originatingImport = referenceParent; - if (symbol.valueDeclaration) result.valueDeclaration = symbol.valueDeclaration; - if (symbol.constEnumOnlyModule) result.constEnumOnlyModule = true; - if (symbol.members) result.members = new Map(symbol.members); - if (symbol.exports) result.exports = new Map(symbol.exports); - const resolvedModuleType = resolveStructuredTypeMembers(moduleType); - result.links.type = createAnonymousType(result, resolvedModuleType.members, emptyArray, emptyArray, resolvedModuleType.indexInfos); - return result; - } - function hasExportAssignmentSymbol(moduleSymbol) { - return moduleSymbol.exports.get("export=" /* ExportEquals */) !== void 0; - } - function getExportsOfModuleAsArray(moduleSymbol) { - return symbolsToArray(getExportsOfModule(moduleSymbol)); - } - function getExportsAndPropertiesOfModule(moduleSymbol) { - const exports2 = getExportsOfModuleAsArray(moduleSymbol); - const exportEquals = resolveExternalModuleSymbol(moduleSymbol); - if (exportEquals !== moduleSymbol) { - const type = getTypeOfSymbol(exportEquals); - if (shouldTreatPropertiesOfExternalModuleAsExports(type)) { - addRange(exports2, getPropertiesOfType(type)); - } - } - return exports2; - } - function forEachExportAndPropertyOfModule(moduleSymbol, cb) { - const exports2 = getExportsOfModule(moduleSymbol); - exports2.forEach((symbol, key) => { - if (!isReservedMemberName(key)) { - cb(symbol, key); - } - }); - const exportEquals = resolveExternalModuleSymbol(moduleSymbol); - if (exportEquals !== moduleSymbol) { - const type = getTypeOfSymbol(exportEquals); - if (shouldTreatPropertiesOfExternalModuleAsExports(type)) { - forEachPropertyOfType(type, (symbol, escapedName) => { - cb(symbol, escapedName); - }); - } - } - } - function tryGetMemberInModuleExports(memberName, moduleSymbol) { - const symbolTable = getExportsOfModule(moduleSymbol); - if (symbolTable) { - return symbolTable.get(memberName); - } - } - function tryGetMemberInModuleExportsAndProperties(memberName, moduleSymbol) { - const symbol = tryGetMemberInModuleExports(memberName, moduleSymbol); - if (symbol) { - return symbol; - } - const exportEquals = resolveExternalModuleSymbol(moduleSymbol); - if (exportEquals === moduleSymbol) { - return void 0; - } - const type = getTypeOfSymbol(exportEquals); - return shouldTreatPropertiesOfExternalModuleAsExports(type) ? getPropertyOfType(type, memberName) : void 0; - } - function shouldTreatPropertiesOfExternalModuleAsExports(resolvedExternalModuleType) { - return !(resolvedExternalModuleType.flags & 402784252 /* Primitive */ || getObjectFlags(resolvedExternalModuleType) & 1 /* Class */ || // `isArrayOrTupleLikeType` is too expensive to use in this auto-imports hot path - isArrayType(resolvedExternalModuleType) || isTupleType(resolvedExternalModuleType)); - } - function getExportsOfSymbol(symbol) { - return symbol.flags & 6256 /* LateBindingContainer */ ? getResolvedMembersOrExportsOfSymbol(symbol, "resolvedExports" /* resolvedExports */) : symbol.flags & 1536 /* Module */ ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; - } - function getExportsOfModule(moduleSymbol) { - const links = getSymbolLinks(moduleSymbol); - if (!links.resolvedExports) { - const { exports: exports2, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol); - links.resolvedExports = exports2; - links.typeOnlyExportStarMap = typeOnlyExportStarMap; - } - return links.resolvedExports; - } - function extendExportSymbols(target, source, lookupTable, exportNode) { - if (!source) return; - source.forEach((sourceSymbol, id) => { - if (id === "default" /* Default */) return; - const targetSymbol = target.get(id); - if (!targetSymbol) { - target.set(id, sourceSymbol); - if (lookupTable && exportNode) { - lookupTable.set(id, { - specifierText: getTextOfNode(exportNode.moduleSpecifier) - }); - } - } else if (lookupTable && exportNode && targetSymbol && resolveSymbol(targetSymbol) !== resolveSymbol(sourceSymbol)) { - const collisionTracker = lookupTable.get(id); - if (!collisionTracker.exportsWithDuplicate) { - collisionTracker.exportsWithDuplicate = [exportNode]; - } else { - collisionTracker.exportsWithDuplicate.push(exportNode); - } - } - }); - } - function getExportsOfModuleWorker(moduleSymbol) { - const visitedSymbols = []; - let typeOnlyExportStarMap; - const nonTypeOnlyNames = /* @__PURE__ */ new Set(); - moduleSymbol = resolveExternalModuleSymbol(moduleSymbol); - const exports2 = visit(moduleSymbol) || emptySymbols; - if (typeOnlyExportStarMap) { - nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name)); - } - return { - exports: exports2, - typeOnlyExportStarMap - }; - function visit(symbol, exportStar, isTypeOnly) { - if (!isTypeOnly && (symbol == null ? void 0 : symbol.exports)) { - symbol.exports.forEach((_, name) => nonTypeOnlyNames.add(name)); - } - if (!(symbol && symbol.exports && pushIfUnique(visitedSymbols, symbol))) { - return; - } - const symbols = new Map(symbol.exports); - const exportStars = symbol.exports.get("__export" /* ExportStar */); - if (exportStars) { - const nestedSymbols = createSymbolTable(); - const lookupTable = /* @__PURE__ */ new Map(); - if (exportStars.declarations) { - for (const node of exportStars.declarations) { - const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); - const exportedSymbols = visit(resolvedModule, node, isTypeOnly || node.isTypeOnly); - extendExportSymbols( - nestedSymbols, - exportedSymbols, - lookupTable, - node - ); - } - } - lookupTable.forEach(({ exportsWithDuplicate }, id) => { - if (id === "export=" || !(exportsWithDuplicate && exportsWithDuplicate.length) || symbols.has(id)) { - return; - } - for (const node of exportsWithDuplicate) { - diagnostics.add(createDiagnosticForNode( - node, - Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, - lookupTable.get(id).specifierText, - unescapeLeadingUnderscores(id) - )); - } - }); - extendExportSymbols(symbols, nestedSymbols); - } - if (exportStar == null ? void 0 : exportStar.isTypeOnly) { - typeOnlyExportStarMap ?? (typeOnlyExportStarMap = /* @__PURE__ */ new Map()); - symbols.forEach( - (_, escapedName) => typeOnlyExportStarMap.set( - escapedName, - exportStar - ) - ); - } - return symbols; - } - } - function getMergedSymbol(symbol) { - let merged; - return symbol && symbol.mergeId && (merged = mergedSymbols[symbol.mergeId]) ? merged : symbol; - } - function getSymbolOfDeclaration(node) { - return getMergedSymbol(node.symbol && getLateBoundSymbol(node.symbol)); - } - function getSymbolOfNode(node) { - return canHaveSymbol(node) ? getSymbolOfDeclaration(node) : void 0; - } - function getParentOfSymbol(symbol) { - return getMergedSymbol(symbol.parent && getLateBoundSymbol(symbol.parent)); - } - function getFunctionExpressionParentSymbolOrSymbol(symbol) { - var _a, _b; - return ((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */ ? getSymbolOfNode(symbol.valueDeclaration.parent) || symbol : symbol; - } - function getAlternativeContainingModules(symbol, enclosingDeclaration) { - const containingFile = getSourceFileOfNode(enclosingDeclaration); - const id = getNodeId(containingFile); - const links = getSymbolLinks(symbol); - let results; - if (links.extendedContainersByFile && (results = links.extendedContainersByFile.get(id))) { - return results; - } - if (containingFile && containingFile.imports) { - for (const importRef of containingFile.imports) { - if (nodeIsSynthesized(importRef)) continue; - const resolvedModule = resolveExternalModuleName( - enclosingDeclaration, - importRef, - /*ignoreErrors*/ - true - ); - if (!resolvedModule) continue; - const ref = getAliasForSymbolInContainer(resolvedModule, symbol); - if (!ref) continue; - results = append(results, resolvedModule); - } - if (length(results)) { - (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results); - return results; - } - } - if (links.extendedContainers) { - return links.extendedContainers; - } - const otherFiles = host.getSourceFiles(); - for (const file of otherFiles) { - if (!isExternalModule(file)) continue; - const sym = getSymbolOfDeclaration(file); - const ref = getAliasForSymbolInContainer(sym, symbol); - if (!ref) continue; - results = append(results, sym); - } - return links.extendedContainers = results || emptyArray; - } - function getContainersOfSymbol(symbol, enclosingDeclaration, meaning) { - const container = getParentOfSymbol(symbol); - if (container && !(symbol.flags & 262144 /* TypeParameter */)) { - return getWithAlternativeContainers(container); - } - const candidates = mapDefined(symbol.declarations, (d) => { - if (!isAmbientModule(d) && d.parent) { - if (hasNonGlobalAugmentationExternalModuleSymbol(d.parent)) { - return getSymbolOfDeclaration(d.parent); - } - if (isModuleBlock(d.parent) && d.parent.parent && resolveExternalModuleSymbol(getSymbolOfDeclaration(d.parent.parent)) === symbol) { - return getSymbolOfDeclaration(d.parent.parent); - } - } - if (isClassExpression(d) && isBinaryExpression(d.parent) && d.parent.operatorToken.kind === 64 /* EqualsToken */ && isAccessExpression(d.parent.left) && isEntityNameExpression(d.parent.left.expression)) { - if (isModuleExportsAccessExpression(d.parent.left) || isExportsIdentifier(d.parent.left.expression)) { - return getSymbolOfDeclaration(getSourceFileOfNode(d)); - } - checkExpressionCached(d.parent.left.expression); - return getNodeLinks(d.parent.left.expression).resolvedSymbol; - } - }); - if (!length(candidates)) { - return void 0; - } - const containers = mapDefined(candidates, (candidate) => getAliasForSymbolInContainer(candidate, symbol) ? candidate : void 0); - let bestContainers = []; - let alternativeContainers = []; - for (const container2 of containers) { - const [bestMatch, ...rest] = getWithAlternativeContainers(container2); - bestContainers = append(bestContainers, bestMatch); - alternativeContainers = addRange(alternativeContainers, rest); - } - return concatenate(bestContainers, alternativeContainers); - function getWithAlternativeContainers(container2) { - const additionalContainers = mapDefined(container2.declarations, fileSymbolIfFileSymbolExportEqualsContainer); - const reexportContainers = enclosingDeclaration && getAlternativeContainingModules(symbol, enclosingDeclaration); - const objectLiteralContainer = getVariableDeclarationOfObjectLiteral(container2, meaning); - if (enclosingDeclaration && container2.flags & getQualifiedLeftMeaning(meaning) && getAccessibleSymbolChain( - container2, - enclosingDeclaration, - 1920 /* Namespace */, - /*useOnlyExternalAliasing*/ - false - )) { - return append(concatenate(concatenate([container2], additionalContainers), reexportContainers), objectLiteralContainer); - } - const firstVariableMatch = !(container2.flags & getQualifiedLeftMeaning(meaning)) && container2.flags & 788968 /* Type */ && getDeclaredTypeOfSymbol(container2).flags & 524288 /* Object */ && meaning === 111551 /* Value */ ? forEachSymbolTableInScope(enclosingDeclaration, (t) => { - return forEachEntry(t, (s) => { - if (s.flags & getQualifiedLeftMeaning(meaning) && getTypeOfSymbol(s) === getDeclaredTypeOfSymbol(container2)) { - return s; - } - }); - }) : void 0; - let res = firstVariableMatch ? [firstVariableMatch, ...additionalContainers, container2] : [...additionalContainers, container2]; - res = append(res, objectLiteralContainer); - res = addRange(res, reexportContainers); - return res; - } - function fileSymbolIfFileSymbolExportEqualsContainer(d) { - return container && getFileSymbolIfFileSymbolExportEqualsContainer(d, container); - } - } - function getVariableDeclarationOfObjectLiteral(symbol, meaning) { - const firstDecl = !!length(symbol.declarations) && first(symbol.declarations); - if (meaning & 111551 /* Value */ && firstDecl && firstDecl.parent && isVariableDeclaration(firstDecl.parent)) { - if (isObjectLiteralExpression(firstDecl) && firstDecl === firstDecl.parent.initializer || isTypeLiteralNode(firstDecl) && firstDecl === firstDecl.parent.type) { - return getSymbolOfDeclaration(firstDecl.parent); - } - } - } - function getFileSymbolIfFileSymbolExportEqualsContainer(d, container) { - const fileSymbol = getExternalModuleContainer(d); - const exported = fileSymbol && fileSymbol.exports && fileSymbol.exports.get("export=" /* ExportEquals */); - return exported && getSymbolIfSameReference(exported, container) ? fileSymbol : void 0; - } - function getAliasForSymbolInContainer(container, symbol) { - if (container === getParentOfSymbol(symbol)) { - return symbol; - } - const exportEquals = container.exports && container.exports.get("export=" /* ExportEquals */); - if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) { - return container; - } - const exports2 = getExportsOfSymbol(container); - const quick = exports2.get(symbol.escapedName); - if (quick && getSymbolIfSameReference(quick, symbol)) { - return quick; - } - return forEachEntry(exports2, (exported) => { - if (getSymbolIfSameReference(exported, symbol)) { - return exported; - } - }); - } - function getSymbolIfSameReference(s1, s2) { - if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) { - return s1; - } - } - function getExportSymbolOfValueSymbolIfExported(symbol) { - return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); - } - function symbolIsValue(symbol, includeTypeOnlyMembers) { - return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); - } - function createType(flags) { - var _a; - const result = new Type7(checker, flags); - typeCount++; - result.id = typeCount; - (_a = tracing) == null ? void 0 : _a.recordType(result); - return result; - } - function createTypeWithSymbol(flags, symbol) { - const result = createType(flags); - result.symbol = symbol; - return result; - } - function createOriginType(flags) { - return new Type7(checker, flags); - } - function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */, debugIntrinsicName) { - checkIntrinsicName(intrinsicName, debugIntrinsicName); - const type = createType(kind); - type.intrinsicName = intrinsicName; - type.debugIntrinsicName = debugIntrinsicName; - type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; - return type; - } - function checkIntrinsicName(name, debug) { - const key = `${name},${debug ?? ""}`; - if (seenIntrinsicNames.has(key)) { - Debug.fail(`Duplicate intrinsic type name ${name}${debug ? ` (${debug})` : ""}; you may need to pass a name to createIntrinsicType.`); - } - seenIntrinsicNames.add(key); - } - function createObjectType(objectFlags, symbol) { - const type = createTypeWithSymbol(524288 /* Object */, symbol); - type.objectFlags = objectFlags; - type.members = void 0; - type.properties = void 0; - type.callSignatures = void 0; - type.constructSignatures = void 0; - type.indexInfos = void 0; - return type; - } - function createTypeofType() { - return getUnionType(arrayFrom(typeofNEFacts.keys(), getStringLiteralType)); - } - function createTypeParameter(symbol) { - return createTypeWithSymbol(262144 /* TypeParameter */, symbol); - } - function isReservedMemberName(name) { - return name.charCodeAt(0) === 95 /* _ */ && name.charCodeAt(1) === 95 /* _ */ && name.charCodeAt(2) !== 95 /* _ */ && name.charCodeAt(2) !== 64 /* at */ && name.charCodeAt(2) !== 35 /* hash */; - } - function getNamedMembers(members) { - let result; - members.forEach((symbol, id) => { - if (isNamedMember(symbol, id)) { - (result || (result = [])).push(symbol); - } - }); - return result || emptyArray; - } - function isNamedMember(member, escapedName) { - return !isReservedMemberName(escapedName) && symbolIsValue(member); - } - function getNamedOrIndexSignatureMembers(members) { - const result = getNamedMembers(members); - const index = getIndexSymbolFromSymbolTable(members); - return index ? concatenate(result, [index]) : result; - } - function setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos) { - const resolved = type; - resolved.members = members; - resolved.properties = emptyArray; - resolved.callSignatures = callSignatures; - resolved.constructSignatures = constructSignatures; - resolved.indexInfos = indexInfos; - if (members !== emptySymbols) resolved.properties = getNamedMembers(members); - return resolved; - } - function createAnonymousType(symbol, members, callSignatures, constructSignatures, indexInfos) { - return setStructuredTypeMembers(createObjectType(16 /* Anonymous */, symbol), members, callSignatures, constructSignatures, indexInfos); - } - function getResolvedTypeWithoutAbstractConstructSignatures(type) { - if (type.constructSignatures.length === 0) return type; - if (type.objectTypeWithoutAbstractConstructSignatures) return type.objectTypeWithoutAbstractConstructSignatures; - const constructSignatures = filter(type.constructSignatures, (signature) => !(signature.flags & 4 /* Abstract */)); - if (type.constructSignatures === constructSignatures) return type; - const typeCopy = createAnonymousType( - type.symbol, - type.members, - type.callSignatures, - some(constructSignatures) ? constructSignatures : emptyArray, - type.indexInfos - ); - type.objectTypeWithoutAbstractConstructSignatures = typeCopy; - typeCopy.objectTypeWithoutAbstractConstructSignatures = typeCopy; - return typeCopy; - } - function forEachSymbolTableInScope(enclosingDeclaration, callback) { - let result; - for (let location = enclosingDeclaration; location; location = location.parent) { - if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { - if (result = callback( - location.locals, - /*ignoreQualification*/ - void 0, - /*isLocalNameLookup*/ - true, - location - )) { - return result; - } - } - switch (location.kind) { - case 307 /* SourceFile */: - if (!isExternalOrCommonJsModule(location)) { - break; - } - // falls through - case 267 /* ModuleDeclaration */: - const sym = getSymbolOfDeclaration(location); - if (result = callback( - (sym == null ? void 0 : sym.exports) || emptySymbols, - /*ignoreQualification*/ - void 0, - /*isLocalNameLookup*/ - true, - location - )) { - return result; - } - break; - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 264 /* InterfaceDeclaration */: - let table; - (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { - if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { - (table || (table = createSymbolTable())).set(key, memberSymbol); - } - }); - if (table && (result = callback( - table, - /*ignoreQualification*/ - void 0, - /*isLocalNameLookup*/ - false, - location - ))) { - return result; - } - break; - } - } - return callback( - globals, - /*ignoreQualification*/ - void 0, - /*isLocalNameLookup*/ - true - ); - } - function getQualifiedLeftMeaning(rightMeaning) { - return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */; - } - function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) { - if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) { - return void 0; - } - const links = getSymbolLinks(symbol); - const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map()); - const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node); - const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation ? getNodeId(firstRelevantLocation) : 0}|${meaning}`; - if (cache.has(key)) { - return cache.get(key); - } - const id = getSymbolId(symbol); - let visitedSymbolTables = visitedSymbolTablesMap.get(id); - if (!visitedSymbolTables) { - visitedSymbolTablesMap.set(id, visitedSymbolTables = []); - } - const result = forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable); - cache.set(key, result); - return result; - function getAccessibleSymbolChainFromSymbolTable(symbols, ignoreQualification, isLocalNameLookup) { - if (!pushIfUnique(visitedSymbolTables, symbols)) { - return void 0; - } - const result2 = trySymbolTable(symbols, ignoreQualification, isLocalNameLookup); - visitedSymbolTables.pop(); - return result2; - } - function canQualifySymbol(symbolFromSymbolTable, meaning2) { - return !needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning2) || // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too - !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning2), useOnlyExternalAliasing, visitedSymbolTablesMap); - } - function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification) { - return (symbol === (resolvedAliasSymbol || symbolFromSymbolTable) || getMergedSymbol(symbol) === getMergedSymbol(resolvedAliasSymbol || symbolFromSymbolTable)) && // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table) - // and if symbolFromSymbolTable or alias resolution matches the symbol, - // check the symbol can be qualified, it is only then this symbol is accessible - !some(symbolFromSymbolTable.declarations, hasNonGlobalAugmentationExternalModuleSymbol) && (ignoreQualification || canQualifySymbol(getMergedSymbol(symbolFromSymbolTable), meaning)); - } - function trySymbolTable(symbols, ignoreQualification, isLocalNameLookup) { - if (isAccessible( - symbols.get(symbol.escapedName), - /*resolvedAliasSymbol*/ - void 0, - ignoreQualification - )) { - return [symbol]; - } - const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { - if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { - const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); - const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); - if (candidate) { - return candidate; - } - } - if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) { - if (isAccessible( - getMergedSymbol(symbolFromSymbolTable.exportSymbol), - /*resolvedAliasSymbol*/ - void 0, - ignoreQualification - )) { - return [symbol]; - } - } - }); - return result2 || (symbols === globals ? getCandidateListForSymbol(globalThisSymbol, globalThisSymbol, ignoreQualification) : void 0); - } - function getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification) { - if (isAccessible(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification)) { - return [symbolFromSymbolTable]; - } - const candidateTable = getExportsOfSymbol(resolvedImportedSymbol); - const accessibleSymbolsFromExports = candidateTable && getAccessibleSymbolChainFromSymbolTable( - candidateTable, - /*ignoreQualification*/ - true - ); - if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) { - return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports); - } - } - } - function needsQualification(symbol, enclosingDeclaration, meaning) { - let qualify = false; - forEachSymbolTableInScope(enclosingDeclaration, (symbolTable) => { - let symbolFromSymbolTable = getMergedSymbol(symbolTable.get(symbol.escapedName)); - if (!symbolFromSymbolTable) { - return false; - } - if (symbolFromSymbolTable === symbol) { - return true; - } - const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); - symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; - const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; - if (flags & meaning) { - qualify = true; - return true; - } - return false; - }); - return qualify; - } - function isPropertyOrMethodDeclarationSymbol(symbol) { - if (symbol.declarations && symbol.declarations.length) { - for (const declaration of symbol.declarations) { - switch (declaration.kind) { - case 172 /* PropertyDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - continue; - default: - return false; - } - } - return true; - } - return false; - } - function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) { - const access = isSymbolAccessibleWorker( - typeSymbol, - enclosingDeclaration, - 788968 /* Type */, - /*shouldComputeAliasesToMakeVisible*/ - false, - /*allowModules*/ - true - ); - return access.accessibility === 0 /* Accessible */; - } - function isValueSymbolAccessible(typeSymbol, enclosingDeclaration) { - const access = isSymbolAccessibleWorker( - typeSymbol, - enclosingDeclaration, - 111551 /* Value */, - /*shouldComputeAliasesToMakeVisible*/ - false, - /*allowModules*/ - true - ); - return access.accessibility === 0 /* Accessible */; - } - function isSymbolAccessibleByFlags(typeSymbol, enclosingDeclaration, flags) { - const access = isSymbolAccessibleWorker( - typeSymbol, - enclosingDeclaration, - flags, - /*shouldComputeAliasesToMakeVisible*/ - false, - /*allowModules*/ - false - ); - return access.accessibility === 0 /* Accessible */; - } - function isAnySymbolAccessible(symbols, enclosingDeclaration, initialSymbol, meaning, shouldComputeAliasesToMakeVisible, allowModules) { - if (!length(symbols)) return; - let hadAccessibleChain; - let earlyModuleBail = false; - for (const symbol of symbols) { - const accessibleSymbolChain = getAccessibleSymbolChain( - symbol, - enclosingDeclaration, - meaning, - /*useOnlyExternalAliasing*/ - false - ); - if (accessibleSymbolChain) { - hadAccessibleChain = symbol; - const hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0], shouldComputeAliasesToMakeVisible); - if (hasAccessibleDeclarations) { - return hasAccessibleDeclarations; - } - } - if (allowModules) { - if (some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { - if (shouldComputeAliasesToMakeVisible) { - earlyModuleBail = true; - continue; - } - return { - accessibility: 0 /* Accessible */ - }; - } - } - const containers = getContainersOfSymbol(symbol, enclosingDeclaration, meaning); - const parentResult = isAnySymbolAccessible(containers, enclosingDeclaration, initialSymbol, initialSymbol === symbol ? getQualifiedLeftMeaning(meaning) : meaning, shouldComputeAliasesToMakeVisible, allowModules); - if (parentResult) { - return parentResult; - } - } - if (earlyModuleBail) { - return { - accessibility: 0 /* Accessible */ - }; - } - if (hadAccessibleChain) { - return { - accessibility: 1 /* NotAccessible */, - errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), - errorModuleName: hadAccessibleChain !== initialSymbol ? symbolToString(hadAccessibleChain, enclosingDeclaration, 1920 /* Namespace */) : void 0 - }; - } - } - function isSymbolAccessible(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible) { - return isSymbolAccessibleWorker( - symbol, - enclosingDeclaration, - meaning, - shouldComputeAliasesToMakeVisible, - /*allowModules*/ - true - ); - } - function isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, allowModules) { - if (symbol && enclosingDeclaration) { - const result = isAnySymbolAccessible([symbol], enclosingDeclaration, symbol, meaning, shouldComputeAliasesToMakeVisible, allowModules); - if (result) { - return result; - } - const symbolExternalModule = forEach(symbol.declarations, getExternalModuleContainer); - if (symbolExternalModule) { - const enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration); - if (symbolExternalModule !== enclosingExternalModule) { - return { - accessibility: 2 /* CannotBeNamed */, - errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning), - errorModuleName: symbolToString(symbolExternalModule), - errorNode: isInJSFile(enclosingDeclaration) ? enclosingDeclaration : void 0 - }; - } - } - return { - accessibility: 1 /* NotAccessible */, - errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning) - }; - } - return { accessibility: 0 /* Accessible */ }; - } - function getExternalModuleContainer(declaration) { - const node = findAncestor(declaration, hasExternalModuleSymbol); - return node && getSymbolOfDeclaration(node); - } - function hasExternalModuleSymbol(declaration) { - return isAmbientModule(declaration) || declaration.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(declaration); - } - function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { - return isModuleWithStringLiteralName(declaration) || declaration.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(declaration); - } - function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { - let aliasesToMakeVisible; - if (!every(filter(symbol.declarations, (d) => d.kind !== 80 /* Identifier */), getIsDeclarationVisible)) { - return void 0; - } - return { accessibility: 0 /* Accessible */, aliasesToMakeVisible }; - function getIsDeclarationVisible(declaration) { - var _a, _b; - if (!isDeclarationVisible(declaration)) { - const anyImportSyntax = getAnyImportSyntax(declaration); - if (anyImportSyntax && !hasSyntacticModifier(anyImportSyntax, 32 /* Export */) && // import clause without export - isDeclarationVisible(anyImportSyntax.parent)) { - return addVisibleAlias(declaration, anyImportSyntax); - } else if (isVariableDeclaration(declaration) && isVariableStatement(declaration.parent.parent) && !hasSyntacticModifier(declaration.parent.parent, 32 /* Export */) && // unexported variable statement - isDeclarationVisible(declaration.parent.parent.parent)) { - return addVisibleAlias(declaration, declaration.parent.parent); - } else if (isLateVisibilityPaintedStatement(declaration) && !hasSyntacticModifier(declaration, 32 /* Export */) && isDeclarationVisible(declaration.parent)) { - return addVisibleAlias(declaration, declaration); - } else if (isBindingElement(declaration)) { - if (symbol.flags & 2097152 /* Alias */ && isInJSFile(declaration) && ((_a = declaration.parent) == null ? void 0 : _a.parent) && isVariableDeclaration(declaration.parent.parent) && ((_b = declaration.parent.parent.parent) == null ? void 0 : _b.parent) && isVariableStatement(declaration.parent.parent.parent.parent) && !hasSyntacticModifier(declaration.parent.parent.parent.parent, 32 /* Export */) && declaration.parent.parent.parent.parent.parent && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) { - return addVisibleAlias(declaration, declaration.parent.parent.parent.parent); - } else if (symbol.flags & 2 /* BlockScopedVariable */) { - const variableStatement = findAncestor(declaration, isVariableStatement); - if (hasSyntacticModifier(variableStatement, 32 /* Export */)) { - return true; - } - if (!isDeclarationVisible(variableStatement.parent)) { - return false; - } - return addVisibleAlias(declaration, variableStatement); - } - } - return false; - } - return true; - } - function addVisibleAlias(declaration, aliasingStatement) { - if (shouldComputeAliasToMakeVisible) { - getNodeLinks(declaration).isVisible = true; - aliasesToMakeVisible = appendIfUnique(aliasesToMakeVisible, aliasingStatement); - } - return true; - } - } - function getMeaningOfEntityNameReference(entityName) { - let meaning; - if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName) { - meaning = 111551 /* Value */ | 1048576 /* ExportValue */; - } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */ || entityName.parent.kind === 166 /* QualifiedName */ && entityName.parent.left === entityName || entityName.parent.kind === 211 /* PropertyAccessExpression */ && entityName.parent.expression === entityName || entityName.parent.kind === 212 /* ElementAccessExpression */ && entityName.parent.expression === entityName) { - meaning = 1920 /* Namespace */; - } else { - meaning = 788968 /* Type */; - } - return meaning; - } - function isEntityNameVisible(entityName, enclosingDeclaration, shouldComputeAliasToMakeVisible = true) { - const meaning = getMeaningOfEntityNameReference(entityName); - const firstIdentifier = getFirstIdentifier(entityName); - const symbol = resolveName( - enclosingDeclaration, - firstIdentifier.escapedText, - meaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - if (symbol && symbol.flags & 262144 /* TypeParameter */ && meaning & 788968 /* Type */) { - return { accessibility: 0 /* Accessible */ }; - } - if (!symbol && isThisIdentifier(firstIdentifier) && isSymbolAccessible( - getSymbolOfDeclaration(getThisContainer( - firstIdentifier, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - )), - firstIdentifier, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility === 0 /* Accessible */) { - return { accessibility: 0 /* Accessible */ }; - } - if (!symbol) { - return { - accessibility: 3 /* NotResolved */, - errorSymbolName: getTextOfNode(firstIdentifier), - errorNode: firstIdentifier - }; - } - return hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) || { - accessibility: 1 /* NotAccessible */, - errorSymbolName: getTextOfNode(firstIdentifier), - errorNode: firstIdentifier - }; - } - function symbolToString(symbol, enclosingDeclaration, meaning, flags = 4 /* AllowAnyNodeKind */, writer) { - let nodeFlags = 70221824 /* IgnoreErrors */; - let internalNodeFlags = 0 /* None */; - if (flags & 2 /* UseOnlyExternalAliasing */) { - nodeFlags |= 128 /* UseOnlyExternalAliasing */; - } - if (flags & 1 /* WriteTypeParametersOrArguments */) { - nodeFlags |= 512 /* WriteTypeParametersInQualifiedName */; - } - if (flags & 8 /* UseAliasDefinedOutsideCurrentScope */) { - nodeFlags |= 16384 /* UseAliasDefinedOutsideCurrentScope */; - } - if (flags & 32 /* DoNotIncludeSymbolChain */) { - internalNodeFlags |= 4 /* DoNotIncludeSymbolChain */; - } - if (flags & 16 /* WriteComputedProps */) { - internalNodeFlags |= 1 /* WriteComputedProps */; - } - const builder = flags & 4 /* AllowAnyNodeKind */ ? nodeBuilder.symbolToNode : nodeBuilder.symbolToEntityName; - return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); - function symbolToStringWorker(writer2) { - const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags, internalNodeFlags); - const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 307 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); - const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); - printer.writeNode( - 4 /* Unspecified */, - entity, - /*sourceFile*/ - sourceFile, - writer2 - ); - return writer2; - } - } - function signatureToString(signature, enclosingDeclaration, flags = 0 /* None */, kind, writer) { - return writer ? signatureToStringWorker(writer).getText() : usingSingleLineStringWriter(signatureToStringWorker); - function signatureToStringWorker(writer2) { - let sigOutput; - if (flags & 262144 /* WriteArrowStyleSignature */) { - sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; - } else { - sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; - } - const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); - const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); - const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); - printer.writeNode( - 4 /* Unspecified */, - sig, - /*sourceFile*/ - sourceFile, - getTrailingSemicolonDeferringWriter(writer2) - ); - return writer2; - } - } - function typeToString(type, enclosingDeclaration, flags = 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */, writer = createTextWriter("")) { - const noTruncation = compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */; - const typeNode = nodeBuilder.typeToTypeNode( - type, - enclosingDeclaration, - toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | (noTruncation ? 1 /* NoTruncation */ : 0 /* None */), - /*internalFlags*/ - void 0 - ); - if (typeNode === void 0) return Debug.fail("should always get typenode"); - const printer = type !== unresolvedType ? createPrinterWithRemoveComments() : createPrinterWithDefaults(); - const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); - printer.writeNode( - 4 /* Unspecified */, - typeNode, - /*sourceFile*/ - sourceFile, - writer - ); - const result = writer.getText(); - const maxLength = noTruncation ? noTruncationMaximumTruncationLength * 2 : defaultMaximumTruncationLength * 2; - if (maxLength && result && result.length >= maxLength) { - return result.substr(0, maxLength - "...".length) + "..."; - } - return result; - } - function getTypeNamesForErrorDisplay(left, right) { - let leftStr = symbolValueDeclarationIsContextSensitive(left.symbol) ? typeToString(left, left.symbol.valueDeclaration) : typeToString(left); - let rightStr = symbolValueDeclarationIsContextSensitive(right.symbol) ? typeToString(right, right.symbol.valueDeclaration) : typeToString(right); - if (leftStr === rightStr) { - leftStr = getTypeNameForErrorDisplay(left); - rightStr = getTypeNameForErrorDisplay(right); - } - return [leftStr, rightStr]; - } - function getTypeNameForErrorDisplay(type) { - return typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 64 /* UseFullyQualifiedType */ - ); - } - function symbolValueDeclarationIsContextSensitive(symbol) { - return symbol && !!symbol.valueDeclaration && isExpression(symbol.valueDeclaration) && !isContextSensitive(symbol.valueDeclaration); - } - function toNodeBuilderFlags(flags = 0 /* None */) { - return flags & 848330095 /* NodeBuilderFlagsMask */; - } - function isClassInstanceSide(type) { - return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || !!(type.flags & 524288 /* Object */) && !!(getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)); - } - function getTypeFromTypeNodeWithoutContext(node) { - return getTypeFromTypeNode(node); - } - function createNodeBuilder() { - const syntacticBuilderResolver = { - evaluateEntityNameExpression, - isExpandoFunctionDeclaration, - hasLateBindableName, - shouldRemoveDeclaration(context, node) { - return !(context.internalFlags & 8 /* AllowUnresolvedNames */ && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1 /* Any */); - }, - createRecoveryBoundary(context) { - return createRecoveryBoundary(context); - }, - isDefinitelyReferenceToGlobalSymbolObject, - getAllAccessorDeclarations: getAllAccessorDeclarationsForDeclaration, - requiresAddingImplicitUndefined(declaration, symbol, enclosingDeclaration) { - var _a; - switch (declaration.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 348 /* JSDocPropertyTag */: - symbol ?? (symbol = getSymbolOfDeclaration(declaration)); - const type = getTypeOfSymbol(symbol); - return !!(symbol.flags & 4 /* Property */ && symbol.flags & 16777216 /* Optional */ && isOptionalDeclaration(declaration) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type)); - case 169 /* Parameter */: - case 341 /* JSDocParameterTag */: - return requiresAddingImplicitUndefined(declaration, enclosingDeclaration); - default: - Debug.assertNever(declaration); - } - }, - isOptionalParameter, - isUndefinedIdentifierExpression(node) { - Debug.assert(isExpressionNode(node)); - return getSymbolAtLocation(node) === undefinedSymbol; - }, - isEntityNameVisible(context, entityName, shouldComputeAliasToMakeVisible) { - return isEntityNameVisible(entityName, context.enclosingDeclaration, shouldComputeAliasToMakeVisible); - }, - serializeExistingTypeNode(context, typeNode, addUndefined) { - return serializeExistingTypeNode(context, typeNode, !!addUndefined); - }, - serializeReturnTypeForSignature(syntacticContext, signatureDeclaration, symbol) { - const context = syntacticContext; - const signature = getSignatureFromDeclaration(signatureDeclaration); - symbol ?? (symbol = getSymbolOfDeclaration(signatureDeclaration)); - const returnType = context.enclosingSymbolTypes.get(getSymbolId(symbol)) ?? instantiateType(getReturnTypeOfSignature(signature), context.mapper); - return serializeInferredReturnTypeForSignature(context, signature, returnType); - }, - serializeTypeOfExpression(syntacticContext, expr) { - const context = syntacticContext; - const type = instantiateType(getWidenedType(getRegularTypeOfExpression(expr)), context.mapper); - return typeToTypeNodeHelper(type, context); - }, - serializeTypeOfDeclaration(syntacticContext, declaration, symbol) { - var _a; - const context = syntacticContext; - symbol ?? (symbol = getSymbolOfDeclaration(declaration)); - let type = (_a = context.enclosingSymbolTypes) == null ? void 0 : _a.get(getSymbolId(symbol)); - if (type === void 0) { - type = symbol.flags & 98304 /* Accessor */ && declaration.kind === 178 /* SetAccessor */ ? instantiateType(getWriteTypeOfSymbol(symbol), context.mapper) : symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType; - } - const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration); - if (addUndefinedForParameter) { - type = getOptionalType(type); - } - return serializeInferredTypeForDeclaration(symbol, context, type); - }, - serializeNameOfParameter(context, parameter) { - return parameterToParameterDeclarationName(getSymbolOfDeclaration(parameter), parameter, context); - }, - serializeEntityName(syntacticContext, node) { - const context = syntacticContext; - const symbol = getSymbolAtLocation( - node, - /*ignoreErrors*/ - true - ); - if (!symbol) return void 0; - if (!isValueSymbolAccessible(symbol, context.enclosingDeclaration)) return void 0; - return symbolToExpression(symbol, context, 111551 /* Value */ | 1048576 /* ExportValue */); - }, - serializeTypeName(context, node, isTypeOf, typeArguments) { - return serializeTypeName(context, node, isTypeOf, typeArguments); - }, - getJsDocPropertyOverride(syntacticContext, jsDocTypeLiteral, jsDocProperty) { - const context = syntacticContext; - const name = isIdentifier(jsDocProperty.name) ? jsDocProperty.name : jsDocProperty.name.right; - const typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode2(context, jsDocTypeLiteral), name.escapedText); - const overrideTypeNode = typeViaParent && jsDocProperty.typeExpression && getTypeFromTypeNode2(context, jsDocProperty.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : void 0; - return overrideTypeNode; - }, - enterNewScope(context, node) { - if (isFunctionLike(node) || isJSDocSignature(node)) { - const signature = getSignatureFromDeclaration(node); - return enterNewScope(context, node, signature.parameters, signature.typeParameters); - } else { - const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))]; - return enterNewScope( - context, - node, - /*expandedParams*/ - void 0, - typeParameters - ); - } - }, - markNodeReuse(context, range, location) { - return setTextRange2(context, range, location); - }, - trackExistingEntityName(context, node) { - return trackExistingEntityName(node, context); - }, - trackComputedName(context, accessExpression) { - trackComputedName(accessExpression, context.enclosingDeclaration, context); - }, - getModuleSpecifierOverride(syntacticContext, parent, lit) { - const context = syntacticContext; - if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) { - let name = lit.text; - const originalName = name; - const nodeSymbol = getNodeLinks(parent).resolvedSymbol; - const meaning = parent.isTypeOf ? 111551 /* Value */ : 788968 /* Type */; - const parentSymbol = nodeSymbol && isSymbolAccessible( - nodeSymbol, - context.enclosingDeclaration, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility === 0 /* Accessible */ && lookupSymbolChain( - nodeSymbol, - context, - meaning, - /*yieldModuleSymbol*/ - true - )[0]; - if (parentSymbol && isExternalModuleSymbol(parentSymbol)) { - name = getSpecifierForModuleSymbol(parentSymbol, context); - } else { - const targetFile = getExternalModuleFileFromDeclaration(parent); - if (targetFile) { - name = getSpecifierForModuleSymbol(targetFile.symbol, context); - } - } - if (name.includes("/node_modules/")) { - context.encounteredError = true; - if (context.tracker.reportLikelyUnsafeImportRequiredError) { - context.tracker.reportLikelyUnsafeImportRequiredError(name); - } - } - if (name !== originalName) { - return name; - } - } - }, - canReuseTypeNode(context, typeNode) { - return canReuseTypeNode(context, typeNode); - }, - canReuseTypeNodeAnnotation(syntacticContext, node, existing, symbol, requiresAddingUndefined) { - var _a; - const context = syntacticContext; - if (context.enclosingDeclaration === void 0) return false; - symbol ?? (symbol = getSymbolOfDeclaration(node)); - let type = (_a = context.enclosingSymbolTypes) == null ? void 0 : _a.get(getSymbolId(symbol)); - if (type === void 0) { - if (symbol.flags & 98304 /* Accessor */) { - type = node.kind === 178 /* SetAccessor */ ? getWriteTypeOfSymbol(symbol) : getTypeOfAccessors(symbol); - } else if (isValueSignatureDeclaration(node)) { - type = getReturnTypeOfSignature(getSignatureFromDeclaration(node)); - } else { - type = getTypeOfSymbol(symbol); - } - } - let annotationType = getTypeFromTypeNodeWithoutContext(existing); - if (isErrorType(annotationType)) { - return true; - } - if (requiresAddingUndefined && annotationType) { - annotationType = addOptionality(annotationType, !isParameter(node)); - } - return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type); - } - }; - return { - syntacticBuilderResolver, - typeToTypeNode: (type, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeToTypeNodeHelper(type, context)), - typePredicateToTypePredicateNode: (typePredicate, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => typePredicateToTypePredicateNodeHelper(typePredicate, context)), - serializeTypeForExpression: (expr, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeTypeOfExpression(expr, context)), - serializeTypeForDeclaration: (declaration, symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeTypeOfDeclaration(declaration, symbol, context)), - serializeReturnTypeForSignature: (signature, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeReturnTypeForSignature(signature, getSymbolOfDeclaration(signature), context)), - indexInfoToIndexSignatureDeclaration: (indexInfo, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => indexInfoToIndexSignatureDeclarationHelper( - indexInfo, - context, - /*typeNode*/ - void 0 - )), - signatureToSignatureDeclaration: (signature, kind, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => signatureToSignatureDeclarationHelper(signature, kind, context)), - symbolToEntityName: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToName( - symbol, - context, - meaning, - /*expectsIdentifier*/ - false - )), - symbolToExpression: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToExpression(symbol, context, meaning)), - symbolToTypeParameterDeclarations: (symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeParametersToTypeParameterDeclarations(symbol, context)), - symbolToParameterDeclaration: (symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToParameterDeclaration(symbol, context)), - typeParameterToDeclaration: (parameter, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeParameterToDeclaration(parameter, context)), - symbolTableToDeclarationStatements: (symbolTable, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolTableToDeclarationStatements(symbolTable, context)), - symbolToNode: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToNode(symbol, context, meaning)) - }; - function getTypeFromTypeNode2(context, node, noMappedTypes) { - const type = getTypeFromTypeNodeWithoutContext(node); - if (!context.mapper) return type; - const mappedType = instantiateType(type, context.mapper); - return noMappedTypes && mappedType !== type ? void 0 : mappedType; - } - function setTextRange2(context, range, location) { - if (!nodeIsSynthesized(range) || !(range.flags & 16 /* Synthesized */) || !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(range))) { - range = factory.cloneNode(range); - } - if (range === location) return range; - if (!location) { - return range; - } - let original = range.original; - while (original && original !== location) { - original = original.original; - } - if (!original) { - setOriginalNode(range, location); - } - if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(getOriginalNode(location))) { - return setTextRange(range, location); - } - return range; - } - function symbolToNode(symbol, context, meaning) { - if (context.internalFlags & 1 /* WriteComputedProps */) { - if (symbol.valueDeclaration) { - const name = getNameOfDeclaration(symbol.valueDeclaration); - if (name && isComputedPropertyName(name)) return name; - } - const nameType = getSymbolLinks(symbol).nameType; - if (nameType && nameType.flags & (1024 /* EnumLiteral */ | 8192 /* UniqueESSymbol */)) { - context.enclosingDeclaration = nameType.symbol.valueDeclaration; - return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, meaning)); - } - } - return symbolToExpression(symbol, context, meaning); - } - function withContext(enclosingDeclaration, flags, internalFlags, tracker, cb) { - const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : (internalFlags || 0 /* None */) & 4 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; - const context = { - enclosingDeclaration, - enclosingFile: enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration), - flags: flags || 0 /* None */, - internalFlags: internalFlags || 0 /* None */, - tracker: void 0, - encounteredError: false, - suppressReportInferenceFallback: false, - reportedDiagnostic: false, - visitedTypes: void 0, - symbolDepth: void 0, - inferTypeParameters: void 0, - approximateLength: 0, - trackedSymbols: void 0, - bundled: !!compilerOptions.outFile && !!enclosingDeclaration && isExternalOrCommonJsModule(getSourceFileOfNode(enclosingDeclaration)), - truncating: false, - usedSymbolNames: void 0, - remappedSymbolNames: void 0, - remappedSymbolReferences: void 0, - reverseMappedStack: void 0, - mustCreateTypeParameterSymbolList: true, - typeParameterSymbolList: void 0, - mustCreateTypeParametersNamesLookups: true, - typeParameterNames: void 0, - typeParameterNamesByText: void 0, - typeParameterNamesByTextNextNameCount: void 0, - enclosingSymbolTypes: /* @__PURE__ */ new Map(), - mapper: void 0 - }; - context.tracker = new SymbolTrackerImpl(context, tracker, moduleResolverHost); - const resultingNode = cb(context); - if (context.truncating && context.flags & 1 /* NoTruncation */) { - context.tracker.reportTruncationError(); - } - return context.encounteredError ? void 0 : resultingNode; - } - function addSymbolTypeToContext(context, symbol, type) { - const id = getSymbolId(symbol); - const oldType = context.enclosingSymbolTypes.get(id); - context.enclosingSymbolTypes.set(id, type); - return restore; - function restore() { - if (oldType) { - context.enclosingSymbolTypes.set(id, oldType); - } else { - context.enclosingSymbolTypes.delete(id); - } - } - } - function saveRestoreFlags(context) { - const flags = context.flags; - const internalFlags = context.internalFlags; - return restore; - function restore() { - context.flags = flags; - context.internalFlags = internalFlags; - } - } - function checkTruncationLength(context) { - if (context.truncating) return context.truncating; - return context.truncating = context.approximateLength > (context.flags & 1 /* NoTruncation */ ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength); - } - function typeToTypeNodeHelper(type, context) { - const restoreFlags = saveRestoreFlags(context); - const typeNode = typeToTypeNodeWorker(type, context); - restoreFlags(); - return typeNode; - } - function typeToTypeNodeWorker(type, context) { - var _a, _b; - if (cancellationToken && cancellationToken.throwIfCancellationRequested) { - cancellationToken.throwIfCancellationRequested(); - } - const inTypeAlias = context.flags & 8388608 /* InTypeAlias */; - context.flags &= ~8388608 /* InTypeAlias */; - if (!type) { - if (!(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) { - context.encounteredError = true; - return void 0; - } - context.approximateLength += 3; - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - if (!(context.flags & 536870912 /* NoTypeReduction */)) { - type = getReducedType(type); - } - if (type.flags & 1 /* Any */) { - if (type.aliasSymbol) { - return factory.createTypeReferenceNode(symbolToEntityNameNode(type.aliasSymbol), mapToTypeNodes(type.aliasTypeArguments, context)); - } - if (type === unresolvedType) { - return addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "unresolved"); - } - context.approximateLength += 3; - return factory.createKeywordTypeNode(type === intrinsicMarkerType ? 141 /* IntrinsicKeyword */ : 133 /* AnyKeyword */); - } - if (type.flags & 2 /* Unknown */) { - return factory.createKeywordTypeNode(159 /* UnknownKeyword */); - } - if (type.flags & 4 /* String */) { - context.approximateLength += 6; - return factory.createKeywordTypeNode(154 /* StringKeyword */); - } - if (type.flags & 8 /* Number */) { - context.approximateLength += 6; - return factory.createKeywordTypeNode(150 /* NumberKeyword */); - } - if (type.flags & 64 /* BigInt */) { - context.approximateLength += 6; - return factory.createKeywordTypeNode(163 /* BigIntKeyword */); - } - if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { - context.approximateLength += 7; - return factory.createKeywordTypeNode(136 /* BooleanKeyword */); - } - if (type.flags & 1056 /* EnumLike */) { - if (type.symbol.flags & 8 /* EnumMember */) { - const parentSymbol = getParentOfSymbol(type.symbol); - const parentName = symbolToTypeNode(parentSymbol, context, 788968 /* Type */); - if (getDeclaredTypeOfSymbol(parentSymbol) === type) { - return parentName; - } - const memberName = symbolName(type.symbol); - if (isIdentifierText(memberName, 1 /* ES5 */)) { - return appendReferenceToType( - parentName, - factory.createTypeReferenceNode( - memberName, - /*typeArguments*/ - void 0 - ) - ); - } - if (isImportTypeNode(parentName)) { - parentName.isTypeOf = true; - return factory.createIndexedAccessTypeNode(parentName, factory.createLiteralTypeNode(factory.createStringLiteral(memberName))); - } else if (isTypeReferenceNode(parentName)) { - return factory.createIndexedAccessTypeNode(factory.createTypeQueryNode(parentName.typeName), factory.createLiteralTypeNode(factory.createStringLiteral(memberName))); - } else { - return Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`."); - } - } - return symbolToTypeNode(type.symbol, context, 788968 /* Type */); - } - if (type.flags & 128 /* StringLiteral */) { - context.approximateLength += type.value.length + 2; - return factory.createLiteralTypeNode(setEmitFlags(factory.createStringLiteral(type.value, !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */)), 16777216 /* NoAsciiEscaping */)); - } - if (type.flags & 256 /* NumberLiteral */) { - const value = type.value; - context.approximateLength += ("" + value).length; - return factory.createLiteralTypeNode(value < 0 ? factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-value)) : factory.createNumericLiteral(value)); - } - if (type.flags & 2048 /* BigIntLiteral */) { - context.approximateLength += pseudoBigIntToString(type.value).length + 1; - return factory.createLiteralTypeNode(factory.createBigIntLiteral(type.value)); - } - if (type.flags & 512 /* BooleanLiteral */) { - context.approximateLength += type.intrinsicName.length; - return factory.createLiteralTypeNode(type.intrinsicName === "true" ? factory.createTrue() : factory.createFalse()); - } - if (type.flags & 8192 /* UniqueESSymbol */) { - if (!(context.flags & 1048576 /* AllowUniqueESSymbolType */)) { - if (isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)) { - context.approximateLength += 6; - return symbolToTypeNode(type.symbol, context, 111551 /* Value */); - } - if (context.tracker.reportInaccessibleUniqueSymbolError) { - context.tracker.reportInaccessibleUniqueSymbolError(); - } - } - context.approximateLength += 13; - return factory.createTypeOperatorNode(158 /* UniqueKeyword */, factory.createKeywordTypeNode(155 /* SymbolKeyword */)); - } - if (type.flags & 16384 /* Void */) { - context.approximateLength += 4; - return factory.createKeywordTypeNode(116 /* VoidKeyword */); - } - if (type.flags & 32768 /* Undefined */) { - context.approximateLength += 9; - return factory.createKeywordTypeNode(157 /* UndefinedKeyword */); - } - if (type.flags & 65536 /* Null */) { - context.approximateLength += 4; - return factory.createLiteralTypeNode(factory.createNull()); - } - if (type.flags & 131072 /* Never */) { - context.approximateLength += 5; - return factory.createKeywordTypeNode(146 /* NeverKeyword */); - } - if (type.flags & 4096 /* ESSymbol */) { - context.approximateLength += 6; - return factory.createKeywordTypeNode(155 /* SymbolKeyword */); - } - if (type.flags & 67108864 /* NonPrimitive */) { - context.approximateLength += 6; - return factory.createKeywordTypeNode(151 /* ObjectKeyword */); - } - if (isThisTypeParameter(type)) { - if (context.flags & 4194304 /* InObjectTypeLiteral */) { - if (!context.encounteredError && !(context.flags & 32768 /* AllowThisInObjectLiteral */)) { - context.encounteredError = true; - } - (_b = (_a = context.tracker).reportInaccessibleThisError) == null ? void 0 : _b.call(_a); - } - context.approximateLength += 4; - return factory.createThisTypeNode(); - } - if (!inTypeAlias && type.aliasSymbol && (context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */ || isTypeSymbolAccessible(type.aliasSymbol, context.enclosingDeclaration))) { - const typeArgumentNodes = mapToTypeNodes(type.aliasTypeArguments, context); - if (isReservedMemberName(type.aliasSymbol.escapedName) && !(type.aliasSymbol.flags & 32 /* Class */)) return factory.createTypeReferenceNode(factory.createIdentifier(""), typeArgumentNodes); - if (length(typeArgumentNodes) === 1 && type.aliasSymbol === globalArrayType.symbol) { - return factory.createArrayTypeNode(typeArgumentNodes[0]); - } - return symbolToTypeNode(type.aliasSymbol, context, 788968 /* Type */, typeArgumentNodes); - } - const objectFlags = getObjectFlags(type); - if (objectFlags & 4 /* Reference */) { - Debug.assert(!!(type.flags & 524288 /* Object */)); - return type.node ? visitAndTransformType(type, typeReferenceToTypeNode) : typeReferenceToTypeNode(type); - } - if (type.flags & 262144 /* TypeParameter */ || objectFlags & 3 /* ClassOrInterface */) { - if (type.flags & 262144 /* TypeParameter */ && contains(context.inferTypeParameters, type)) { - context.approximateLength += symbolName(type.symbol).length + 6; - let constraintNode; - const constraint = getConstraintOfTypeParameter(type); - if (constraint) { - const inferredConstraint = getInferredTypeParameterConstraint( - type, - /*omitTypeReferences*/ - true - ); - if (!(inferredConstraint && isTypeIdenticalTo(constraint, inferredConstraint))) { - context.approximateLength += 9; - constraintNode = constraint && typeToTypeNodeHelper(constraint, context); - } - } - return factory.createInferTypeNode(typeParameterToDeclarationWithConstraint(type, context, constraintNode)); - } - if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && type.flags & 262144 /* TypeParameter */) { - const name2 = typeParameterToName(type, context); - context.approximateLength += idText(name2).length; - return factory.createTypeReferenceNode( - factory.createIdentifier(idText(name2)), - /*typeArguments*/ - void 0 - ); - } - if (type.symbol) { - return symbolToTypeNode(type.symbol, context, 788968 /* Type */); - } - const name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ? (type === markerSubTypeForCheck ? "sub-" : "super-") + symbolName(varianceTypeParameter.symbol) : "?"; - return factory.createTypeReferenceNode( - factory.createIdentifier(name), - /*typeArguments*/ - void 0 - ); - } - if (type.flags & 1048576 /* Union */ && type.origin) { - type = type.origin; - } - if (type.flags & (1048576 /* Union */ | 2097152 /* Intersection */)) { - const types = type.flags & 1048576 /* Union */ ? formatUnionTypes(type.types) : type.types; - if (length(types) === 1) { - return typeToTypeNodeHelper(types[0], context); - } - const typeNodes = mapToTypeNodes( - types, - context, - /*isBareList*/ - true - ); - if (typeNodes && typeNodes.length > 0) { - return type.flags & 1048576 /* Union */ ? factory.createUnionTypeNode(typeNodes) : factory.createIntersectionTypeNode(typeNodes); - } else { - if (!context.encounteredError && !(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) { - context.encounteredError = true; - } - return void 0; - } - } - if (objectFlags & (16 /* Anonymous */ | 32 /* Mapped */)) { - Debug.assert(!!(type.flags & 524288 /* Object */)); - return createAnonymousTypeNode(type); - } - if (type.flags & 4194304 /* Index */) { - const indexedType = type.type; - context.approximateLength += 6; - const indexTypeNode = typeToTypeNodeHelper(indexedType, context); - return factory.createTypeOperatorNode(143 /* KeyOfKeyword */, indexTypeNode); - } - if (type.flags & 134217728 /* TemplateLiteral */) { - const texts = type.texts; - const types = type.types; - const templateHead = factory.createTemplateHead(texts[0]); - const templateSpans = factory.createNodeArray( - map(types, (t, i) => factory.createTemplateLiteralTypeSpan( - typeToTypeNodeHelper(t, context), - (i < types.length - 1 ? factory.createTemplateMiddle : factory.createTemplateTail)(texts[i + 1]) - )) - ); - context.approximateLength += 2; - return factory.createTemplateLiteralType(templateHead, templateSpans); - } - if (type.flags & 268435456 /* StringMapping */) { - const typeNode = typeToTypeNodeHelper(type.type, context); - return symbolToTypeNode(type.symbol, context, 788968 /* Type */, [typeNode]); - } - if (type.flags & 8388608 /* IndexedAccess */) { - const objectTypeNode = typeToTypeNodeHelper(type.objectType, context); - const indexTypeNode = typeToTypeNodeHelper(type.indexType, context); - context.approximateLength += 2; - return factory.createIndexedAccessTypeNode(objectTypeNode, indexTypeNode); - } - if (type.flags & 16777216 /* Conditional */) { - return visitAndTransformType(type, (type2) => conditionalTypeToTypeNode(type2)); - } - if (type.flags & 33554432 /* Substitution */) { - const typeNode = typeToTypeNodeHelper(type.baseType, context); - const noInferSymbol = isNoInferType(type) && getGlobalTypeSymbol( - "NoInfer", - /*reportErrors*/ - false - ); - return noInferSymbol ? symbolToTypeNode(noInferSymbol, context, 788968 /* Type */, [typeNode]) : typeNode; - } - return Debug.fail("Should be unreachable."); - function conditionalTypeToTypeNode(type2) { - const checkTypeNode = typeToTypeNodeHelper(type2.checkType, context); - context.approximateLength += 15; - if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && type2.root.isDistributive && !(type2.checkType.flags & 262144 /* TypeParameter */)) { - const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); - const name = typeParameterToName(newParam, context); - const newTypeVariable = factory.createTypeReferenceNode(name); - context.approximateLength += 37; - const newMapper = prependTypeMapping(type2.root.checkType, newParam, type2.mapper); - const saveInferTypeParameters2 = context.inferTypeParameters; - context.inferTypeParameters = type2.root.inferTypeParameters; - const extendsTypeNode2 = typeToTypeNodeHelper(instantiateType(type2.root.extendsType, newMapper), context); - context.inferTypeParameters = saveInferTypeParameters2; - const trueTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode2(context, type2.root.node.trueType), newMapper)); - const falseTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode2(context, type2.root.node.falseType), newMapper)); - return factory.createConditionalTypeNode( - checkTypeNode, - factory.createInferTypeNode(factory.createTypeParameterDeclaration( - /*modifiers*/ - void 0, - factory.cloneNode(newTypeVariable.typeName) - )), - factory.createConditionalTypeNode( - factory.createTypeReferenceNode(factory.cloneNode(name)), - typeToTypeNodeHelper(type2.checkType, context), - factory.createConditionalTypeNode(newTypeVariable, extendsTypeNode2, trueTypeNode2, falseTypeNode2), - factory.createKeywordTypeNode(146 /* NeverKeyword */) - ), - factory.createKeywordTypeNode(146 /* NeverKeyword */) - ); - } - const saveInferTypeParameters = context.inferTypeParameters; - context.inferTypeParameters = type2.root.inferTypeParameters; - const extendsTypeNode = typeToTypeNodeHelper(type2.extendsType, context); - context.inferTypeParameters = saveInferTypeParameters; - const trueTypeNode = typeToTypeNodeOrCircularityElision(getTrueTypeFromConditionalType(type2)); - const falseTypeNode = typeToTypeNodeOrCircularityElision(getFalseTypeFromConditionalType(type2)); - return factory.createConditionalTypeNode(checkTypeNode, extendsTypeNode, trueTypeNode, falseTypeNode); - } - function typeToTypeNodeOrCircularityElision(type2) { - var _a2, _b2, _c; - if (type2.flags & 1048576 /* Union */) { - if ((_a2 = context.visitedTypes) == null ? void 0 : _a2.has(getTypeId(type2))) { - if (!(context.flags & 131072 /* AllowAnonymousIdentifier */)) { - context.encounteredError = true; - (_c = (_b2 = context.tracker) == null ? void 0 : _b2.reportCyclicStructureError) == null ? void 0 : _c.call(_b2); - } - return createElidedInformationPlaceholder(context); - } - return visitAndTransformType(type2, (type3) => typeToTypeNodeHelper(type3, context)); - } - return typeToTypeNodeHelper(type2, context); - } - function isMappedTypeHomomorphic(type2) { - return !!getHomomorphicTypeVariable(type2); - } - function isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) { - return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); - } - function createMappedTypeNodeFromType(type2) { - var _a2; - Debug.assert(!!(type2.flags & 524288 /* Object */)); - const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; - const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; - let appropriateConstraintTypeNode; - let newTypeVariable; - const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); - if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { - if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { - const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); - const name = typeParameterToName(newParam, context); - newTypeVariable = factory.createTypeReferenceNode(name); - } - appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); - } else if (needsModifierPreservingWrapper) { - const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); - const name = typeParameterToName(newParam, context); - newTypeVariable = factory.createTypeReferenceNode(name); - appropriateConstraintTypeNode = newTypeVariable; - } else { - appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); - } - const typeParameterNode = typeParameterToDeclarationWithConstraint(getTypeParameterFromMappedType(type2), context, appropriateConstraintTypeNode); - const nameTypeNode = type2.declaration.nameType ? typeToTypeNodeHelper(getNameTypeFromMappedType(type2), context) : void 0; - const templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type2), !!(getMappedTypeModifiers(type2) & 4 /* IncludeOptional */)), context); - const mappedTypeNode = factory.createMappedTypeNode( - readonlyToken, - typeParameterNode, - nameTypeNode, - questionToken, - templateTypeNode, - /*members*/ - void 0 - ); - context.approximateLength += 10; - const result = setEmitFlags(mappedTypeNode, 1 /* SingleLine */); - if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { - const originalConstraint = instantiateType(getConstraintOfTypeParameter(getTypeFromTypeNode2(context, type2.declaration.typeParameter.constraint.type)) || unknownType, type2.mapper); - return factory.createConditionalTypeNode( - typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context), - factory.createInferTypeNode(factory.createTypeParameterDeclaration( - /*modifiers*/ - void 0, - factory.cloneNode(newTypeVariable.typeName), - originalConstraint.flags & 2 /* Unknown */ ? void 0 : typeToTypeNodeHelper(originalConstraint, context) - )), - result, - factory.createKeywordTypeNode(146 /* NeverKeyword */) - ); - } else if (needsModifierPreservingWrapper) { - return factory.createConditionalTypeNode( - typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), - factory.createInferTypeNode(factory.createTypeParameterDeclaration( - /*modifiers*/ - void 0, - factory.cloneNode(newTypeVariable.typeName), - factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) - )), - result, - factory.createKeywordTypeNode(146 /* NeverKeyword */) - ); - } - return result; - } - function createAnonymousTypeNode(type2) { - var _a2, _b2; - const typeId = type2.id; - const symbol = type2.symbol; - if (symbol) { - const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608 /* InstantiationExpressionType */); - if (isInstantiationExpressionType) { - const instantiationExpressionType = type2; - const existing = instantiationExpressionType.node; - if (isTypeQueryNode(existing) && getTypeFromTypeNode2(context, existing) === type2) { - const typeNode = syntacticNodeBuilder.tryReuseExistingTypeNode(context, existing); - if (typeNode) { - return typeNode; - } - } - if ((_a2 = context.visitedTypes) == null ? void 0 : _a2.has(typeId)) { - return createElidedInformationPlaceholder(context); - } - return visitAndTransformType(type2, createTypeNodeFromObjectType); - } - const isInstanceType = isClassInstanceSide(type2) ? 788968 /* Type */ : 111551 /* Value */; - if (isJSConstructor(symbol.valueDeclaration)) { - return symbolToTypeNode(symbol, context, isInstanceType); - } else if (symbol.flags & 32 /* Class */ && !getBaseTypeVariableOfClass(symbol) && !(symbol.valueDeclaration && isClassLike(symbol.valueDeclaration) && context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ && (!isClassDeclaration(symbol.valueDeclaration) || isSymbolAccessible( - symbol, - context.enclosingDeclaration, - isInstanceType, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) { - return symbolToTypeNode(symbol, context, isInstanceType); - } else if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) { - const typeAlias = getTypeAliasForTypeLiteral(type2); - if (typeAlias) { - return symbolToTypeNode(typeAlias, context, 788968 /* Type */); - } else { - return createElidedInformationPlaceholder(context); - } - } else { - return visitAndTransformType(type2, createTypeNodeFromObjectType); - } - } else { - return createTypeNodeFromObjectType(type2); - } - function shouldWriteTypeOfFunctionSymbol() { - var _a3; - const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method - some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration))); - const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol - forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); - if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { - return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively - (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); - } - } - } - function visitAndTransformType(type2, transform) { - var _a2, _b2, _c; - const typeId = type2.id; - const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */; - const id = getObjectFlags(type2) & 4 /* Reference */ && type2.node ? "N" + getNodeId(type2.node) : type2.flags & 16777216 /* Conditional */ ? "N" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? "+" : "") + getSymbolId(type2.symbol) : void 0; - if (!context.visitedTypes) { - context.visitedTypes = /* @__PURE__ */ new Set(); - } - if (id && !context.symbolDepth) { - context.symbolDepth = /* @__PURE__ */ new Map(); - } - const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration); - const key = `${getTypeId(type2)}|${context.flags}|${context.internalFlags}`; - if (links) { - links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map()); - } - const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key); - if (cachedResult) { - (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach( - ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( - symbol, - enclosingDeclaration, - meaning - ) - ); - if (cachedResult.truncating) { - context.truncating = true; - } - context.approximateLength += cachedResult.addedLength; - return deepCloneOrReuseNode(cachedResult.node); - } - let depth; - if (id) { - depth = context.symbolDepth.get(id) || 0; - if (depth > 10) { - return createElidedInformationPlaceholder(context); - } - context.symbolDepth.set(id, depth + 1); - } - context.visitedTypes.add(typeId); - const prevTrackedSymbols = context.trackedSymbols; - context.trackedSymbols = void 0; - const startLength = context.approximateLength; - const result = transform(type2); - const addedLength = context.approximateLength - startLength; - if (!context.reportedDiagnostic && !context.encounteredError) { - (_c = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _c.set(key, { - node: result, - truncating: context.truncating, - addedLength, - trackedSymbols: context.trackedSymbols - }); - } - context.visitedTypes.delete(typeId); - if (id) { - context.symbolDepth.set(id, depth); - } - context.trackedSymbols = prevTrackedSymbols; - return result; - function deepCloneOrReuseNode(node) { - if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) { - return node; - } - return setTextRange2(context, factory.cloneNode(visitEachChild( - node, - deepCloneOrReuseNode, - /*context*/ - void 0, - deepCloneOrReuseNodes, - deepCloneOrReuseNode - )), node); - } - function deepCloneOrReuseNodes(nodes, visitor, test, start, count) { - if (nodes && nodes.length === 0) { - return setTextRange(factory.createNodeArray( - /*elements*/ - void 0, - nodes.hasTrailingComma - ), nodes); - } - return visitNodes2(nodes, visitor, test, start, count); - } - } - function createTypeNodeFromObjectType(type2) { - if (isGenericMappedType(type2) || type2.containsError) { - return createMappedTypeNodeFromType(type2); - } - const resolved = resolveStructuredTypeMembers(type2); - if (!resolved.properties.length && !resolved.indexInfos.length) { - if (!resolved.callSignatures.length && !resolved.constructSignatures.length) { - context.approximateLength += 2; - return setEmitFlags(factory.createTypeLiteralNode( - /*members*/ - void 0 - ), 1 /* SingleLine */); - } - if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { - const signature = resolved.callSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); - return signatureNode; - } - if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { - const signature = resolved.constructSignatures[0]; - const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); - return signatureNode; - } - } - const abstractSignatures = filter(resolved.constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */)); - if (some(abstractSignatures)) { - const types = map(abstractSignatures, (s) => getOrCreateTypeFromSignature(s)); - const typeElementCount = resolved.callSignatures.length + (resolved.constructSignatures.length - abstractSignatures.length) + resolved.indexInfos.length + // exclude `prototype` when writing a class expression as a type literal, as per - // the logic in `createTypeNodesFromResolvedType`. - (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ ? countWhere(resolved.properties, (p) => !(p.flags & 4194304 /* Prototype */)) : length(resolved.properties)); - if (typeElementCount) { - types.push(getResolvedTypeWithoutAbstractConstructSignatures(resolved)); - } - return typeToTypeNodeHelper(getIntersectionType(types), context); - } - const restoreFlags = saveRestoreFlags(context); - context.flags |= 4194304 /* InObjectTypeLiteral */; - const members = createTypeNodesFromResolvedType(resolved); - restoreFlags(); - const typeLiteralNode = factory.createTypeLiteralNode(members); - context.approximateLength += 2; - setEmitFlags(typeLiteralNode, context.flags & 1024 /* MultilineObjectLiterals */ ? 0 : 1 /* SingleLine */); - return typeLiteralNode; - } - function typeReferenceToTypeNode(type2) { - let typeArguments = getTypeArguments(type2); - if (type2.target === globalArrayType || type2.target === globalReadonlyArrayType) { - if (context.flags & 2 /* WriteArrayAsGenericType */) { - const typeArgumentNode = typeToTypeNodeHelper(typeArguments[0], context); - return factory.createTypeReferenceNode(type2.target === globalArrayType ? "Array" : "ReadonlyArray", [typeArgumentNode]); - } - const elementType = typeToTypeNodeHelper(typeArguments[0], context); - const arrayType = factory.createArrayTypeNode(elementType); - return type2.target === globalArrayType ? arrayType : factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, arrayType); - } else if (type2.target.objectFlags & 8 /* Tuple */) { - typeArguments = sameMap(typeArguments, (t, i) => removeMissingType(t, !!(type2.target.elementFlags[i] & 2 /* Optional */))); - if (typeArguments.length > 0) { - const arity = getTypeReferenceArity(type2); - const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); - if (tupleConstituentNodes) { - const { labeledElementDeclarations } = type2.target; - for (let i = 0; i < tupleConstituentNodes.length; i++) { - const flags = type2.target.elementFlags[i]; - const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; - if (labeledElementDeclaration) { - tupleConstituentNodes[i] = factory.createNamedTupleMember( - flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, - factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), - flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, - flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] - ); - } else { - tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; - } - } - const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode(tupleConstituentNodes), 1 /* SingleLine */); - return type2.target.readonly ? factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode; - } - } - if (context.encounteredError || context.flags & 524288 /* AllowEmptyTuple */) { - const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode([]), 1 /* SingleLine */); - return type2.target.readonly ? factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode; - } - context.encounteredError = true; - return void 0; - } else if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ && type2.symbol.valueDeclaration && isClassLike(type2.symbol.valueDeclaration) && !isValueSymbolAccessible(type2.symbol, context.enclosingDeclaration)) { - return createAnonymousTypeNode(type2); - } else { - const outerTypeParameters = type2.target.outerTypeParameters; - let i = 0; - let resultType; - if (outerTypeParameters) { - const length2 = outerTypeParameters.length; - while (i < length2) { - const start = i; - const parent = getParentSymbolOfTypeParameter(outerTypeParameters[i]); - do { - i++; - } while (i < length2 && getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent); - if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) { - const typeArgumentSlice = mapToTypeNodes(typeArguments.slice(start, i), context); - const restoreFlags2 = saveRestoreFlags(context); - context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; - const ref = symbolToTypeNode(parent, context, 788968 /* Type */, typeArgumentSlice); - restoreFlags2(); - resultType = !resultType ? ref : appendReferenceToType(resultType, ref); - } - } - } - let typeArgumentNodes; - if (typeArguments.length > 0) { - let typeParameterCount = 0; - if (type2.target.typeParameters) { - typeParameterCount = Math.min(type2.target.typeParameters.length, typeArguments.length); - if (isReferenceToType(type2, getGlobalIterableType( - /*reportErrors*/ - false - )) || isReferenceToType(type2, getGlobalIterableIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType(type2, getGlobalAsyncIterableType( - /*reportErrors*/ - false - )) || isReferenceToType(type2, getGlobalAsyncIterableIteratorType( - /*reportErrors*/ - false - ))) { - if (!type2.node || !isTypeReferenceNode(type2.node) || !type2.node.typeArguments || type2.node.typeArguments.length < typeParameterCount) { - while (typeParameterCount > 0) { - const typeArgument = typeArguments[typeParameterCount - 1]; - const typeParameter = type2.target.typeParameters[typeParameterCount - 1]; - const defaultType = getDefaultFromTypeParameter(typeParameter); - if (!defaultType || !isTypeIdenticalTo(typeArgument, defaultType)) { - break; - } - typeParameterCount--; - } - } - } - } - typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context); - } - const restoreFlags = saveRestoreFlags(context); - context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; - const finalRef = symbolToTypeNode(type2.symbol, context, 788968 /* Type */, typeArgumentNodes); - restoreFlags(); - return !resultType ? finalRef : appendReferenceToType(resultType, finalRef); - } - } - function appendReferenceToType(root, ref) { - if (isImportTypeNode(root)) { - let typeArguments = root.typeArguments; - let qualifier = root.qualifier; - if (qualifier) { - if (isIdentifier(qualifier)) { - if (typeArguments !== getIdentifierTypeArguments(qualifier)) { - qualifier = setIdentifierTypeArguments(factory.cloneNode(qualifier), typeArguments); - } - } else { - if (typeArguments !== getIdentifierTypeArguments(qualifier.right)) { - qualifier = factory.updateQualifiedName(qualifier, qualifier.left, setIdentifierTypeArguments(factory.cloneNode(qualifier.right), typeArguments)); - } - } - } - typeArguments = ref.typeArguments; - const ids = getAccessStack(ref); - for (const id of ids) { - qualifier = qualifier ? factory.createQualifiedName(qualifier, id) : id; - } - return factory.updateImportTypeNode( - root, - root.argument, - root.attributes, - qualifier, - typeArguments, - root.isTypeOf - ); - } else { - let typeArguments = root.typeArguments; - let typeName = root.typeName; - if (isIdentifier(typeName)) { - if (typeArguments !== getIdentifierTypeArguments(typeName)) { - typeName = setIdentifierTypeArguments(factory.cloneNode(typeName), typeArguments); - } - } else { - if (typeArguments !== getIdentifierTypeArguments(typeName.right)) { - typeName = factory.updateQualifiedName(typeName, typeName.left, setIdentifierTypeArguments(factory.cloneNode(typeName.right), typeArguments)); - } - } - typeArguments = ref.typeArguments; - const ids = getAccessStack(ref); - for (const id of ids) { - typeName = factory.createQualifiedName(typeName, id); - } - return factory.updateTypeReferenceNode( - root, - typeName, - typeArguments - ); - } - } - function getAccessStack(ref) { - let state = ref.typeName; - const ids = []; - while (!isIdentifier(state)) { - ids.unshift(state.right); - state = state.left; - } - ids.unshift(state); - return ids; - } - function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) { - if (indexInfo.components) { - const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => { - var _a2; - return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible( - e.name.expression, - context2.enclosingDeclaration, - /*shouldComputeAliasToMakeVisible*/ - false - )) == null ? void 0 : _a2.accessibility) === 0 /* Accessible */); - }); - if (allComponentComputedNamesSerializable) { - const newComponents = filter(indexInfo.components, (e) => { - return !hasLateBindableName(e); - }); - return map(newComponents, (e) => { - trackComputedName(e.name.expression, context2.enclosingDeclaration, context2); - return setTextRange2( - context2, - factory.createPropertySignature( - indexInfo.isReadonly ? [factory.createModifier(148 /* ReadonlyKeyword */)] : void 0, - e.name, - (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0, - typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2) - ), - e - ); - }); - } - } - return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)]; - } - function createTypeNodesFromResolvedType(resolvedType) { - if (checkTruncationLength(context)) { - if (context.flags & 1 /* NoTruncation */) { - return [addSyntheticTrailingComment(factory.createNotEmittedTypeElement(), 3 /* MultiLineCommentTrivia */, "elided")]; - } - return [factory.createPropertySignature( - /*modifiers*/ - void 0, - "...", - /*questionToken*/ - void 0, - /*type*/ - void 0 - )]; - } - const typeElements = []; - for (const signature of resolvedType.callSignatures) { - typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); - } - for (const signature of resolvedType.constructSignatures) { - if (signature.flags & 4 /* Abstract */) continue; - typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); - } - for (const info of resolvedType.indexInfos) { - typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); - } - const properties = resolvedType.properties; - if (!properties) { - return typeElements; - } - let i = 0; - for (const propertySymbol of properties) { - i++; - if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */) { - if (propertySymbol.flags & 4194304 /* Prototype */) { - continue; - } - if (getDeclarationModifierFlagsFromSymbol(propertySymbol) & (2 /* Private */ | 4 /* Protected */) && context.tracker.reportPrivateInBaseOfClassExpression) { - context.tracker.reportPrivateInBaseOfClassExpression(unescapeLeadingUnderscores(propertySymbol.escapedName)); - } - } - if (checkTruncationLength(context) && i + 2 < properties.length - 1) { - if (context.flags & 1 /* NoTruncation */) { - const typeElement = typeElements.pop(); - typeElements.push(addSyntheticTrailingComment(typeElement, 3 /* MultiLineCommentTrivia */, `... ${properties.length - i} more elided ...`)); - } else { - typeElements.push(factory.createPropertySignature( - /*modifiers*/ - void 0, - `... ${properties.length - i} more ...`, - /*questionToken*/ - void 0, - /*type*/ - void 0 - )); - } - addPropertyToElementList(properties[properties.length - 1], context, typeElements); - break; - } - addPropertyToElementList(propertySymbol, context, typeElements); - } - return typeElements.length ? typeElements : void 0; - } - } - function createElidedInformationPlaceholder(context) { - context.approximateLength += 3; - if (!(context.flags & 1 /* NoTruncation */)) { - return factory.createTypeReferenceNode( - factory.createIdentifier("..."), - /*typeArguments*/ - void 0 - ); - } - return addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "elided"); - } - function shouldUsePlaceholderForProperty(propertySymbol, context) { - var _a; - const depth = 3; - return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */) || isDeeplyNestedReverseMappedTypeProperty()); - function isDeeplyNestedReverseMappedTypeProperty() { - var _a2; - if ((((_a2 = context.reverseMappedStack) == null ? void 0 : _a2.length) ?? 0) < depth) { - return false; - } - for (let i = 0; i < depth; i++) { - const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i]; - if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) { - return false; - } - } - return true; - } - } - function addPropertyToElementList(propertySymbol, context, typeElements) { - var _a; - const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */); - const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol); - const saveEnclosingDeclaration = context.enclosingDeclaration; - context.enclosingDeclaration = void 0; - if (context.tracker.canTrackSymbol && isLateBoundName(propertySymbol.escapedName)) { - if (propertySymbol.declarations) { - const decl = first(propertySymbol.declarations); - if (hasLateBindableName(decl)) { - if (isBinaryExpression(decl)) { - const name = getNameOfDeclaration(decl); - if (name && isElementAccessExpression(name) && isPropertyAccessEntityNameExpression(name.argumentExpression)) { - trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context); - } - } else { - trackComputedName(decl.name.expression, saveEnclosingDeclaration, context); - } - } - } else { - context.tracker.reportNonSerializableProperty(symbolToString(propertySymbol)); - } - } - context.enclosingDeclaration = propertySymbol.valueDeclaration || ((_a = propertySymbol.declarations) == null ? void 0 : _a[0]) || saveEnclosingDeclaration; - const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context); - context.enclosingDeclaration = saveEnclosingDeclaration; - context.approximateLength += symbolName(propertySymbol).length + 1; - if (propertySymbol.flags & 98304 /* Accessor */) { - const writeType = getWriteTypeOfSymbol(propertySymbol); - if (propertyType !== writeType && !isErrorType(propertyType) && !isErrorType(writeType)) { - const symbolMapper = getSymbolLinks(propertySymbol).mapper; - const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */); - const getterSignature = getSignatureFromDeclaration(getterDeclaration); - typeElements.push( - setCommentRange2( - context, - signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(getterSignature, symbolMapper) : getterSignature, 177 /* GetAccessor */, context, { name: propertyName }), - getterDeclaration - ) - ); - const setterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* SetAccessor */); - const setterSignature = getSignatureFromDeclaration(setterDeclaration); - typeElements.push( - setCommentRange2( - context, - signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(setterSignature, symbolMapper) : setterSignature, 178 /* SetAccessor */, context, { name: propertyName }), - setterDeclaration - ) - ); - return; - } - } - const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0; - if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { - const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); - for (const signature of signatures) { - const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); - typeElements.push(preserveCommentsOn(methodDeclaration, signature.declaration || propertySymbol.valueDeclaration)); - } - if (signatures.length || !optionalToken) { - return; - } - } - let propertyTypeNode; - if (shouldUsePlaceholderForProperty(propertySymbol, context)) { - propertyTypeNode = createElidedInformationPlaceholder(context); - } else { - if (propertyIsReverseMapped) { - context.reverseMappedStack || (context.reverseMappedStack = []); - context.reverseMappedStack.push(propertySymbol); - } - propertyTypeNode = propertyType ? serializeTypeForDeclaration( - context, - /*declaration*/ - void 0, - propertyType, - propertySymbol - ) : factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (propertyIsReverseMapped) { - context.reverseMappedStack.pop(); - } - } - const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; - if (modifiers) { - context.approximateLength += 9; - } - const propertySignature = factory.createPropertySignature( - modifiers, - propertyName, - optionalToken, - propertyTypeNode - ); - typeElements.push(preserveCommentsOn(propertySignature, propertySymbol.valueDeclaration)); - function preserveCommentsOn(node, range) { - var _a2; - const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 348 /* JSDocPropertyTag */); - if (jsdocPropertyTag) { - const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment); - if (commentText) { - setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); - } - } else if (range) { - setCommentRange2(context, node, range); - } - return node; - } - } - function setCommentRange2(context, node, range) { - if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(range)) { - return setCommentRange(node, range); - } - return node; - } - function mapToTypeNodes(types, context, isBareList) { - if (some(types)) { - if (checkTruncationLength(context)) { - if (!isBareList) { - return [ - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "elided") : factory.createTypeReferenceNode( - "...", - /*typeArguments*/ - void 0 - ) - ]; - } else if (types.length > 2) { - return [ - typeToTypeNodeHelper(types[0], context), - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, `... ${types.length - 2} more elided ...`) : factory.createTypeReferenceNode( - `... ${types.length - 2} more ...`, - /*typeArguments*/ - void 0 - ), - typeToTypeNodeHelper(types[types.length - 1], context) - ]; - } - } - const mayHaveNameCollisions = !(context.flags & 64 /* UseFullyQualifiedType */); - const seenNames = mayHaveNameCollisions ? createMultiMap() : void 0; - const result = []; - let i = 0; - for (const type of types) { - i++; - if (checkTruncationLength(context) && i + 2 < types.length - 1) { - result.push( - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, `... ${types.length - i} more elided ...`) : factory.createTypeReferenceNode( - `... ${types.length - i} more ...`, - /*typeArguments*/ - void 0 - ) - ); - const typeNode2 = typeToTypeNodeHelper(types[types.length - 1], context); - if (typeNode2) { - result.push(typeNode2); - } - break; - } - context.approximateLength += 2; - const typeNode = typeToTypeNodeHelper(type, context); - if (typeNode) { - result.push(typeNode); - if (seenNames && isIdentifierTypeReference(typeNode)) { - seenNames.add(typeNode.typeName.escapedText, [type, result.length - 1]); - } - } - } - if (seenNames) { - const restoreFlags = saveRestoreFlags(context); - context.flags |= 64 /* UseFullyQualifiedType */; - seenNames.forEach((types2) => { - if (!arrayIsHomogeneous(types2, ([a], [b]) => typesAreSameReference(a, b))) { - for (const [type, resultIndex] of types2) { - result[resultIndex] = typeToTypeNodeHelper(type, context); - } - } - }); - restoreFlags(); - } - return result; - } - } - function typesAreSameReference(a, b) { - return a === b || !!a.symbol && a.symbol === b.symbol || !!a.aliasSymbol && a.aliasSymbol === b.aliasSymbol; - } - function indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, typeNode) { - const name = getNameFromIndexInfo(indexInfo) || "x"; - const indexerTypeNode = typeToTypeNodeHelper(indexInfo.keyType, context); - const indexingParameter = factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name, - /*questionToken*/ - void 0, - indexerTypeNode, - /*initializer*/ - void 0 - ); - if (!typeNode) { - typeNode = typeToTypeNodeHelper(indexInfo.type || anyType, context); - } - if (!indexInfo.type && !(context.flags & 2097152 /* AllowEmptyIndexInfoType */)) { - context.encounteredError = true; - } - context.approximateLength += name.length + 4; - return factory.createIndexSignature( - indexInfo.isReadonly ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0, - [indexingParameter], - typeNode - ); - } - function signatureToSignatureDeclarationHelper(signature, kind, context, options) { - var _a; - let typeParameters; - let typeArguments; - const expandedParams = getExpandedParameters( - signature, - /*skipUnionExpanding*/ - true - )[0]; - const cleanup = enterNewScope(context, signature.declaration, expandedParams, signature.typeParameters, signature.parameters, signature.mapper); - context.approximateLength += 3; - if (context.flags & 32 /* WriteTypeArgumentsOfSignature */ && signature.target && signature.mapper && signature.target.typeParameters) { - typeArguments = signature.target.typeParameters.map((parameter) => typeToTypeNodeHelper(instantiateType(parameter, signature.mapper), context)); - } else { - typeParameters = signature.typeParameters && signature.typeParameters.map((parameter) => typeParameterToDeclaration(parameter, context)); - } - const restoreFlags = saveRestoreFlags(context); - context.flags &= ~256 /* SuppressAnyReturnType */; - const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */)); - const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); - if (thisParameter) { - parameters.unshift(thisParameter); - } - restoreFlags(); - const returnTypeNode = serializeReturnTypeForSignature(context, signature); - let modifiers = options == null ? void 0 : options.modifiers; - if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { - const flags = modifiersToFlags(modifiers); - modifiers = factory.createModifiersFromModifierFlags(flags | 64 /* Abstract */); - } - const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( - modifiers, - /*asteriskToken*/ - void 0, - (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), - /*questionToken*/ - void 0, - typeParameters, - parameters, - returnTypeNode, - /*body*/ - void 0 - ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( - modifiers, - parameters, - /*body*/ - void 0 - ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( - modifiers, - (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), - parameters, - returnTypeNode, - /*body*/ - void 0 - ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( - modifiers, - (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), - parameters, - /*body*/ - void 0 - ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 317 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( - modifiers, - /*asteriskToken*/ - void 0, - (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""), - typeParameters, - parameters, - returnTypeNode, - /*body*/ - void 0 - ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( - modifiers, - /*asteriskToken*/ - void 0, - (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""), - typeParameters, - parameters, - returnTypeNode, - factory.createBlock([]) - ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( - modifiers, - typeParameters, - parameters, - returnTypeNode, - /*equalsGreaterThanToken*/ - void 0, - factory.createBlock([]) - ) : Debug.assertNever(kind); - if (typeArguments) { - node.typeArguments = factory.createNodeArray(typeArguments); - } - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocSignature */ && signature.declaration.parent.kind === 339 /* JSDocOverloadTag */) { - const comment = getTextOfNode( - signature.declaration.parent.parent, - /*includeTrivia*/ - true - ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); - addSyntheticLeadingComment( - node, - 3 /* MultiLineCommentTrivia */, - comment, - /*hasTrailingNewLine*/ - true - ); - } - cleanup == null ? void 0 : cleanup(); - return node; - } - function createRecoveryBoundary(context) { - if (cancellationToken && cancellationToken.throwIfCancellationRequested) { - cancellationToken.throwIfCancellationRequested(); - } - let trackedSymbols; - let unreportedErrors; - let hadError = false; - const oldTracker = context.tracker; - const oldTrackedSymbols = context.trackedSymbols; - context.trackedSymbols = void 0; - const oldEncounteredError = context.encounteredError; - context.tracker = new SymbolTrackerImpl(context, { - ...oldTracker.inner, - reportCyclicStructureError() { - markError(() => oldTracker.reportCyclicStructureError()); - }, - reportInaccessibleThisError() { - markError(() => oldTracker.reportInaccessibleThisError()); - }, - reportInaccessibleUniqueSymbolError() { - markError(() => oldTracker.reportInaccessibleUniqueSymbolError()); - }, - reportLikelyUnsafeImportRequiredError(specifier) { - markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier)); - }, - reportNonSerializableProperty(name) { - markError(() => oldTracker.reportNonSerializableProperty(name)); - }, - reportPrivateInBaseOfClassExpression(propertyName) { - markError(() => oldTracker.reportPrivateInBaseOfClassExpression(propertyName)); - }, - trackSymbol(sym, decl, meaning) { - (trackedSymbols ?? (trackedSymbols = [])).push([sym, decl, meaning]); - return false; - }, - moduleResolverHost: context.tracker.moduleResolverHost - }, context.tracker.moduleResolverHost); - return { - startRecoveryScope, - finalizeBoundary, - markError, - hadError: () => hadError - }; - function markError(unreportedError) { - hadError = true; - if (unreportedError) { - (unreportedErrors ?? (unreportedErrors = [])).push(unreportedError); - } - } - function startRecoveryScope() { - const trackedSymbolsTop = (trackedSymbols == null ? void 0 : trackedSymbols.length) ?? 0; - const unreportedErrorsTop = (unreportedErrors == null ? void 0 : unreportedErrors.length) ?? 0; - return () => { - hadError = false; - if (trackedSymbols) { - trackedSymbols.length = trackedSymbolsTop; - } - if (unreportedErrors) { - unreportedErrors.length = unreportedErrorsTop; - } - }; - } - function finalizeBoundary() { - context.tracker = oldTracker; - context.trackedSymbols = oldTrackedSymbols; - context.encounteredError = oldEncounteredError; - unreportedErrors == null ? void 0 : unreportedErrors.forEach((fn) => fn()); - if (hadError) { - return false; - } - trackedSymbols == null ? void 0 : trackedSymbols.forEach( - ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( - symbol, - enclosingDeclaration, - meaning - ) - ); - return true; - } - } - function enterNewScope(context, declaration, expandedParams, typeParameters, originalParameters, mapper) { - const cleanupContext = cloneNodeBuilderContext(context); - let cleanupParams; - let cleanupTypeParams; - const oldEnclosingDecl = context.enclosingDeclaration; - const oldMapper = context.mapper; - if (mapper) { - context.mapper = mapper; - } - if (context.enclosingDeclaration && declaration) { - let pushFakeScope2 = function(kind, addAll) { - Debug.assert(context.enclosingDeclaration); - let existingFakeScope; - if (getNodeLinks(context.enclosingDeclaration).fakeScopeForSignatureDeclaration === kind) { - existingFakeScope = context.enclosingDeclaration; - } else if (context.enclosingDeclaration.parent && getNodeLinks(context.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration === kind) { - existingFakeScope = context.enclosingDeclaration.parent; - } - Debug.assertOptionalNode(existingFakeScope, isBlock); - const locals = (existingFakeScope == null ? void 0 : existingFakeScope.locals) ?? createSymbolTable(); - let newLocals; - let oldLocals; - addAll((name, symbol) => { - if (existingFakeScope) { - const oldSymbol = locals.get(name); - if (!oldSymbol) { - newLocals = append(newLocals, name); - } else { - oldLocals = append(oldLocals, { name, oldSymbol }); - } - } - locals.set(name, symbol); - }); - if (!existingFakeScope) { - const fakeScope = factory.createBlock(emptyArray); - getNodeLinks(fakeScope).fakeScopeForSignatureDeclaration = kind; - fakeScope.locals = locals; - setParent(fakeScope, context.enclosingDeclaration); - context.enclosingDeclaration = fakeScope; - } else { - return function undo() { - forEach(newLocals, (s) => locals.delete(s)); - forEach(oldLocals, (s) => locals.set(s.name, s.oldSymbol)); - }; - } - }; - var pushFakeScope = pushFakeScope2; - cleanupParams = !some(expandedParams) ? void 0 : pushFakeScope2( - "params", - (add) => { - if (!expandedParams) return; - for (let pIndex = 0; pIndex < expandedParams.length; pIndex++) { - const param = expandedParams[pIndex]; - const originalParam = originalParameters == null ? void 0 : originalParameters[pIndex]; - if (originalParameters && originalParam !== param) { - add(param.escapedName, unknownSymbol); - if (originalParam) { - add(originalParam.escapedName, unknownSymbol); - } - } else if (!forEach(param.declarations, (d) => { - if (isParameter(d) && isBindingPattern(d.name)) { - bindPattern(d.name); - return true; - } - return void 0; - function bindPattern(p) { - forEach(p.elements, (e) => { - switch (e.kind) { - case 232 /* OmittedExpression */: - return; - case 208 /* BindingElement */: - return bindElement(e); - default: - return Debug.assertNever(e); - } - }); - } - function bindElement(e) { - if (isBindingPattern(e.name)) { - return bindPattern(e.name); - } - const symbol = getSymbolOfDeclaration(e); - add(symbol.escapedName, symbol); - } - })) { - add(param.escapedName, param); - } - } - } - ); - if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && some(typeParameters)) { - cleanupTypeParams = pushFakeScope2( - "typeParams", - (add) => { - for (const typeParam of typeParameters ?? emptyArray) { - const typeParamName = typeParameterToName(typeParam, context).escapedText; - add(typeParamName, typeParam.symbol); - } - } - ); - } - } - return () => { - cleanupParams == null ? void 0 : cleanupParams(); - cleanupTypeParams == null ? void 0 : cleanupTypeParams(); - cleanupContext(); - context.enclosingDeclaration = oldEnclosingDecl; - context.mapper = oldMapper; - }; - } - function tryGetThisParameterDeclaration(signature, context) { - if (signature.thisParameter) { - return symbolToParameterDeclaration(signature.thisParameter, context); - } - if (signature.declaration && isInJSFile(signature.declaration)) { - const thisTag = getJSDocThisTag(signature.declaration); - if (thisTag && thisTag.typeExpression) { - return factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "this", - /*questionToken*/ - void 0, - typeToTypeNodeHelper(getTypeFromTypeNode2(context, thisTag.typeExpression), context) - ); - } - } - } - function typeParameterToDeclarationWithConstraint(type, context, constraintNode) { - const restoreFlags = saveRestoreFlags(context); - context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; - const modifiers = factory.createModifiersFromModifierFlags(getTypeParameterModifiers(type)); - const name = typeParameterToName(type, context); - const defaultParameter = getDefaultFromTypeParameter(type); - const defaultParameterNode = defaultParameter && typeToTypeNodeHelper(defaultParameter, context); - restoreFlags(); - return factory.createTypeParameterDeclaration(modifiers, name, constraintNode, defaultParameterNode); - } - function typeToTypeNodeHelperWithPossibleReusableTypeNode(type, typeNode, context) { - return typeNode && getTypeFromTypeNode2(context, typeNode) === type && syntacticNodeBuilder.tryReuseExistingTypeNode(context, typeNode) || typeToTypeNodeHelper(type, context); - } - function typeParameterToDeclaration(type, context, constraint = getConstraintOfTypeParameter(type)) { - const constraintNode = constraint && typeToTypeNodeHelperWithPossibleReusableTypeNode(constraint, getConstraintDeclaration(type), context); - return typeParameterToDeclarationWithConstraint(type, context, constraintNode); - } - function typePredicateToTypePredicateNodeHelper(typePredicate, context) { - const assertsModifier = typePredicate.kind === 2 /* AssertsThis */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? factory.createToken(131 /* AssertsKeyword */) : void 0; - const parameterName = typePredicate.kind === 1 /* Identifier */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? setEmitFlags(factory.createIdentifier(typePredicate.parameterName), 16777216 /* NoAsciiEscaping */) : factory.createThisTypeNode(); - const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context); - return factory.createTypePredicateNode(assertsModifier, parameterName, typeNode); - } - function getEffectiveParameterDeclaration(parameterSymbol) { - const parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); - if (parameterDeclaration) { - return parameterDeclaration; - } - if (!isTransientSymbol(parameterSymbol)) { - return getDeclarationOfKind(parameterSymbol, 341 /* JSDocParameterTag */); - } - } - function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) { - const parameterDeclaration = getEffectiveParameterDeclaration(parameterSymbol); - const parameterType = getTypeOfSymbol(parameterSymbol); - const parameterTypeNode = serializeTypeForDeclaration(context, parameterDeclaration, parameterType, parameterSymbol); - const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; - const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; - const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; - const name = parameterToParameterDeclarationName(parameterSymbol, parameterDeclaration, context); - const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; - const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; - const parameterNode = factory.createParameterDeclaration( - modifiers, - dotDotDotToken, - name, - questionToken, - parameterTypeNode, - /*initializer*/ - void 0 - ); - context.approximateLength += symbolName(parameterSymbol).length + 3; - return parameterNode; - } - function parameterToParameterDeclarationName(parameterSymbol, parameterDeclaration, context) { - return parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); - function cloneBindingName(node) { - return elideInitializerAndSetEmitFlags(node); - function elideInitializerAndSetEmitFlags(node2) { - if (context.tracker.canTrackSymbol && isComputedPropertyName(node2) && isLateBindableName(node2)) { - trackComputedName(node2.expression, context.enclosingDeclaration, context); - } - let visited = visitEachChild( - node2, - elideInitializerAndSetEmitFlags, - /*context*/ - void 0, - /*nodesVisitor*/ - void 0, - elideInitializerAndSetEmitFlags - ); - if (isBindingElement(visited)) { - visited = factory.updateBindingElement( - visited, - visited.dotDotDotToken, - visited.propertyName, - visited.name, - /*initializer*/ - void 0 - ); - } - if (!nodeIsSynthesized(visited)) { - visited = factory.cloneNode(visited); - } - return setEmitFlags(visited, 1 /* SingleLine */ | 16777216 /* NoAsciiEscaping */); - } - } - } - function trackComputedName(accessExpression, enclosingDeclaration, context) { - if (!context.tracker.canTrackSymbol) return; - const firstIdentifier = getFirstIdentifier(accessExpression); - const name = resolveName( - enclosingDeclaration, - firstIdentifier.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (name) { - context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */); - } else { - const fallback = resolveName( - firstIdentifier, - firstIdentifier.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (fallback) { - context.tracker.trackSymbol(fallback, enclosingDeclaration, 111551 /* Value */); - } - } - } - function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) { - context.tracker.trackSymbol(symbol, context.enclosingDeclaration, meaning); - return lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol); - } - function lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol) { - let chain; - const isTypeParameter = symbol.flags & 262144 /* TypeParameter */; - if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64 /* UseFullyQualifiedType */) && !(context.internalFlags & 4 /* DoNotIncludeSymbolChain */)) { - chain = Debug.checkDefined(getSymbolChain( - symbol, - meaning, - /*endOfChain*/ - true - )); - Debug.assert(chain && chain.length > 0); - } else { - chain = [symbol]; - } - return chain; - function getSymbolChain(symbol2, meaning2, endOfChain) { - let accessibleSymbolChain = getAccessibleSymbolChain(symbol2, context.enclosingDeclaration, meaning2, !!(context.flags & 128 /* UseOnlyExternalAliasing */)); - let parentSpecifiers; - if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], context.enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning2 : getQualifiedLeftMeaning(meaning2))) { - const parents = getContainersOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol2, context.enclosingDeclaration, meaning2); - if (length(parents)) { - parentSpecifiers = parents.map( - (symbol3) => some(symbol3.declarations, hasNonGlobalAugmentationExternalModuleSymbol) ? getSpecifierForModuleSymbol(symbol3, context) : void 0 - ); - const indices = parents.map((_, i) => i); - indices.sort(sortByBestName); - const sortedParents = indices.map((i) => parents[i]); - for (const parent of sortedParents) { - const parentChain = getSymbolChain( - parent, - getQualifiedLeftMeaning(meaning2), - /*endOfChain*/ - false - ); - if (parentChain) { - if (parent.exports && parent.exports.get("export=" /* ExportEquals */) && getSymbolIfSameReference(parent.exports.get("export=" /* ExportEquals */), symbol2)) { - accessibleSymbolChain = parentChain; - break; - } - accessibleSymbolChain = parentChain.concat(accessibleSymbolChain || [getAliasForSymbolInContainer(parent, symbol2) || symbol2]); - break; - } - } - } - } - if (accessibleSymbolChain) { - return accessibleSymbolChain; - } - if ( - // If this is the last part of outputting the symbol, always output. The cases apply only to parent symbols. - endOfChain || // If a parent symbol is an anonymous type, don't write it. - !(symbol2.flags & (2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */)) - ) { - if (!endOfChain && !yieldModuleSymbol && !!forEach(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { - return; - } - return [symbol2]; - } - function sortByBestName(a, b) { - const specifierA = parentSpecifiers[a]; - const specifierB = parentSpecifiers[b]; - if (specifierA && specifierB) { - const isBRelative = pathIsRelative(specifierB); - if (pathIsRelative(specifierA) === isBRelative) { - return countPathComponents(specifierA) - countPathComponents(specifierB); - } - if (isBRelative) { - return -1; - } - return 1; - } - return 0; - } - } - } - function typeParametersToTypeParameterDeclarations(symbol, context) { - let typeParameterNodes; - const targetSymbol = getTargetSymbol(symbol); - if (targetSymbol.flags & (32 /* Class */ | 64 /* Interface */ | 524288 /* TypeAlias */)) { - typeParameterNodes = factory.createNodeArray(map(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol), (tp) => typeParameterToDeclaration(tp, context))); - } - return typeParameterNodes; - } - function lookupTypeParameterNodes(chain, index, context) { - var _a; - Debug.assert(chain && 0 <= index && index < chain.length); - const symbol = chain[index]; - const symbolId = getSymbolId(symbol); - if ((_a = context.typeParameterSymbolList) == null ? void 0 : _a.has(symbolId)) { - return void 0; - } - if (context.mustCreateTypeParameterSymbolList) { - context.mustCreateTypeParameterSymbolList = false; - context.typeParameterSymbolList = new Set(context.typeParameterSymbolList); - } - context.typeParameterSymbolList.add(symbolId); - let typeParameterNodes; - if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) { - const parentSymbol = symbol; - const nextSymbol = chain[index + 1]; - if (getCheckFlags(nextSymbol) & 1 /* Instantiated */) { - const params = getTypeParametersOfClassOrInterface( - parentSymbol.flags & 2097152 /* Alias */ ? resolveAlias(parentSymbol) : parentSymbol - ); - typeParameterNodes = mapToTypeNodes(map(params, (t) => getMappedType(t, nextSymbol.links.mapper)), context); - } else { - typeParameterNodes = typeParametersToTypeParameterDeclarations(symbol, context); - } - } - return typeParameterNodes; - } - function getTopmostIndexedAccessType(top) { - if (isIndexedAccessTypeNode(top.objectType)) { - return getTopmostIndexedAccessType(top.objectType); - } - return top; - } - function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { - let file = getDeclarationOfKind(symbol, 307 /* SourceFile */); - if (!file) { - const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); - if (equivalentFileSymbol) { - file = getDeclarationOfKind(equivalentFileSymbol, 307 /* SourceFile */); - } - } - if (file && file.moduleName !== void 0) { - return file.moduleName; - } - if (!file) { - if (ambientModuleSymbolRegex.test(symbol.escapedName)) { - return symbol.escapedName.substring(1, symbol.escapedName.length - 1); - } - } - if (!context.enclosingFile || !context.tracker.moduleResolverHost) { - if (ambientModuleSymbolRegex.test(symbol.escapedName)) { - return symbol.escapedName.substring(1, symbol.escapedName.length - 1); - } - return getSourceFileOfNode(getNonAugmentationDeclaration(symbol)).fileName; - } - const enclosingDeclaration = getOriginalNode(context.enclosingDeclaration); - const originalModuleSpecifier = canHaveModuleSpecifier(enclosingDeclaration) ? tryGetModuleSpecifierFromDeclaration(enclosingDeclaration) : void 0; - const contextFile = context.enclosingFile; - const resolutionMode = overrideImportMode || originalModuleSpecifier && host.getModeForUsageLocation(contextFile, originalModuleSpecifier) || contextFile && host.getDefaultResolutionModeForFile(contextFile); - const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode); - const links = getSymbolLinks(symbol); - let specifier = links.specifierCache && links.specifierCache.get(cacheKey); - if (!specifier) { - const isBundle2 = !!compilerOptions.outFile; - const { moduleResolverHost } = context.tracker; - const specifierCompilerOptions = isBundle2 ? { ...compilerOptions, baseUrl: moduleResolverHost.getCommonSourceDirectory() } : compilerOptions; - specifier = first(getModuleSpecifiers( - symbol, - checker, - specifierCompilerOptions, - contextFile, - moduleResolverHost, - { - importModuleSpecifierPreference: isBundle2 ? "non-relative" : "project-relative", - importModuleSpecifierEnding: isBundle2 ? "minimal" : resolutionMode === 99 /* ESNext */ ? "js" : void 0 - }, - { overrideImportMode } - )); - links.specifierCache ?? (links.specifierCache = /* @__PURE__ */ new Map()); - links.specifierCache.set(cacheKey, specifier); - } - return specifier; - } - function symbolToEntityNameNode(symbol) { - const identifier = factory.createIdentifier(unescapeLeadingUnderscores(symbol.escapedName)); - return symbol.parent ? factory.createQualifiedName(symbolToEntityNameNode(symbol.parent), identifier) : identifier; - } - function symbolToTypeNode(symbol, context, meaning, overrideTypeArguments) { - const chain = lookupSymbolChain(symbol, context, meaning, !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */)); - const isTypeOf = meaning === 111551 /* Value */; - if (some(chain[0].declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { - const nonRootParts = chain.length > 1 ? createAccessFromSymbolChain(chain, chain.length - 1, 1) : void 0; - const typeParameterNodes = overrideTypeArguments || lookupTypeParameterNodes(chain, 0, context); - const contextFile = getSourceFileOfNode(getOriginalNode(context.enclosingDeclaration)); - const targetFile = getSourceFileOfModule(chain[0]); - let specifier; - let attributes; - if (getEmitModuleResolutionKind(compilerOptions) === 3 /* Node16 */ || getEmitModuleResolutionKind(compilerOptions) === 99 /* NodeNext */) { - if ((targetFile == null ? void 0 : targetFile.impliedNodeFormat) === 99 /* ESNext */ && targetFile.impliedNodeFormat !== (contextFile == null ? void 0 : contextFile.impliedNodeFormat)) { - specifier = getSpecifierForModuleSymbol(chain[0], context, 99 /* ESNext */); - attributes = factory.createImportAttributes( - factory.createNodeArray([ - factory.createImportAttribute( - factory.createStringLiteral("resolution-mode"), - factory.createStringLiteral("import") - ) - ]) - ); - } - } - if (!specifier) { - specifier = getSpecifierForModuleSymbol(chain[0], context); - } - if (!(context.flags & 67108864 /* AllowNodeModulesRelativePaths */) && getEmitModuleResolutionKind(compilerOptions) !== 1 /* Classic */ && specifier.includes("/node_modules/")) { - const oldSpecifier = specifier; - if (getEmitModuleResolutionKind(compilerOptions) === 3 /* Node16 */ || getEmitModuleResolutionKind(compilerOptions) === 99 /* NodeNext */) { - const swappedMode = (contextFile == null ? void 0 : contextFile.impliedNodeFormat) === 99 /* ESNext */ ? 1 /* CommonJS */ : 99 /* ESNext */; - specifier = getSpecifierForModuleSymbol(chain[0], context, swappedMode); - if (specifier.includes("/node_modules/")) { - specifier = oldSpecifier; - } else { - attributes = factory.createImportAttributes( - factory.createNodeArray([ - factory.createImportAttribute( - factory.createStringLiteral("resolution-mode"), - factory.createStringLiteral(swappedMode === 99 /* ESNext */ ? "import" : "require") - ) - ]) - ); - } - } - if (!attributes) { - context.encounteredError = true; - if (context.tracker.reportLikelyUnsafeImportRequiredError) { - context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier); - } - } - } - const lit = factory.createLiteralTypeNode(factory.createStringLiteral(specifier)); - context.approximateLength += specifier.length + 10; - if (!nonRootParts || isEntityName(nonRootParts)) { - if (nonRootParts) { - const lastId = isIdentifier(nonRootParts) ? nonRootParts : nonRootParts.right; - setIdentifierTypeArguments( - lastId, - /*typeArguments*/ - void 0 - ); - } - return factory.createImportTypeNode(lit, attributes, nonRootParts, typeParameterNodes, isTypeOf); - } else { - const splitNode = getTopmostIndexedAccessType(nonRootParts); - const qualifier = splitNode.objectType.typeName; - return factory.createIndexedAccessTypeNode(factory.createImportTypeNode(lit, attributes, qualifier, typeParameterNodes, isTypeOf), splitNode.indexType); - } - } - const entityName = createAccessFromSymbolChain(chain, chain.length - 1, 0); - if (isIndexedAccessTypeNode(entityName)) { - return entityName; - } - if (isTypeOf) { - return factory.createTypeQueryNode(entityName); - } else { - const lastId = isIdentifier(entityName) ? entityName : entityName.right; - const lastTypeArgs = getIdentifierTypeArguments(lastId); - setIdentifierTypeArguments( - lastId, - /*typeArguments*/ - void 0 - ); - return factory.createTypeReferenceNode(entityName, lastTypeArgs); - } - function createAccessFromSymbolChain(chain2, index, stopper) { - const typeParameterNodes = index === chain2.length - 1 ? overrideTypeArguments : lookupTypeParameterNodes(chain2, index, context); - const symbol2 = chain2[index]; - const parent = chain2[index - 1]; - let symbolName2; - if (index === 0) { - context.flags |= 16777216 /* InInitialEntityName */; - symbolName2 = getNameOfSymbolAsWritten(symbol2, context); - context.approximateLength += (symbolName2 ? symbolName2.length : 0) + 1; - context.flags ^= 16777216 /* InInitialEntityName */; - } else { - if (parent && getExportsOfSymbol(parent)) { - const exports2 = getExportsOfSymbol(parent); - forEachEntry(exports2, (ex, name) => { - if (getSymbolIfSameReference(ex, symbol2) && !isLateBoundName(name) && name !== "export=" /* ExportEquals */) { - symbolName2 = unescapeLeadingUnderscores(name); - return true; - } - }); - } - } - if (symbolName2 === void 0) { - const name = firstDefined(symbol2.declarations, getNameOfDeclaration); - if (name && isComputedPropertyName(name) && isEntityName(name.expression)) { - const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); - if (isEntityName(LHS)) { - return factory.createIndexedAccessTypeNode(factory.createParenthesizedType(factory.createTypeQueryNode(LHS)), factory.createTypeQueryNode(name.expression)); - } - return LHS; - } - symbolName2 = getNameOfSymbolAsWritten(symbol2, context); - } - context.approximateLength += symbolName2.length + 1; - if (!(context.flags & 16 /* ForbidIndexedAccessSymbolReferences */) && parent && getMembersOfSymbol(parent) && getMembersOfSymbol(parent).get(symbol2.escapedName) && getSymbolIfSameReference(getMembersOfSymbol(parent).get(symbol2.escapedName), symbol2)) { - const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); - if (isIndexedAccessTypeNode(LHS)) { - return factory.createIndexedAccessTypeNode(LHS, factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2))); - } else { - return factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(LHS, typeParameterNodes), factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2))); - } - } - const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); - if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); - identifier.symbol = symbol2; - if (index > stopper) { - const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); - if (!isEntityName(LHS)) { - return Debug.fail("Impossible construct - an export of an indexed access cannot be reachable"); - } - return factory.createQualifiedName(LHS, identifier); - } - return identifier; - } - } - function typeParameterShadowsOtherTypeParameterInScope(escapedName, context, type) { - const result = resolveName( - context.enclosingDeclaration, - escapedName, - 788968 /* Type */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - if (result && result.flags & 262144 /* TypeParameter */) { - return result !== type.symbol; - } - return false; - } - function typeParameterToName(type, context) { - var _a, _b, _c, _d; - if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && context.typeParameterNames) { - const cached = context.typeParameterNames.get(getTypeId(type)); - if (cached) { - return cached; - } - } - let result = symbolToName( - type.symbol, - context, - 788968 /* Type */, - /*expectsIdentifier*/ - true - ); - if (!(result.kind & 80 /* Identifier */)) { - return factory.createIdentifier("(Missing type parameter)"); - } - const decl = (_b = (_a = type.symbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b[0]; - if (decl && isTypeParameterDeclaration(decl)) { - result = setTextRange2(context, result, decl.name); - } - if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { - const rawtext = result.escapedText; - let i = ((_c = context.typeParameterNamesByTextNextNameCount) == null ? void 0 : _c.get(rawtext)) || 0; - let text = rawtext; - while (((_d = context.typeParameterNamesByText) == null ? void 0 : _d.has(text)) || typeParameterShadowsOtherTypeParameterInScope(text, context, type)) { - i++; - text = `${rawtext}_${i}`; - } - if (text !== rawtext) { - const typeArguments = getIdentifierTypeArguments(result); - result = factory.createIdentifier(text); - setIdentifierTypeArguments(result, typeArguments); - } - if (context.mustCreateTypeParametersNamesLookups) { - context.mustCreateTypeParametersNamesLookups = false; - context.typeParameterNames = new Map(context.typeParameterNames); - context.typeParameterNamesByTextNextNameCount = new Map(context.typeParameterNamesByTextNextNameCount); - context.typeParameterNamesByText = new Set(context.typeParameterNamesByText); - } - context.typeParameterNamesByTextNextNameCount.set(rawtext, i); - context.typeParameterNames.set(getTypeId(type), result); - context.typeParameterNamesByText.add(text); - } - return result; - } - function symbolToName(symbol, context, meaning, expectsIdentifier) { - const chain = lookupSymbolChain(symbol, context, meaning); - if (expectsIdentifier && chain.length !== 1 && !context.encounteredError && !(context.flags & 65536 /* AllowQualifiedNameInPlaceOfIdentifier */)) { - context.encounteredError = true; - } - return createEntityNameFromSymbolChain(chain, chain.length - 1); - function createEntityNameFromSymbolChain(chain2, index) { - const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context); - const symbol2 = chain2[index]; - if (index === 0) { - context.flags |= 16777216 /* InInitialEntityName */; - } - const symbolName2 = getNameOfSymbolAsWritten(symbol2, context); - if (index === 0) { - context.flags ^= 16777216 /* InInitialEntityName */; - } - const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); - if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); - identifier.symbol = symbol2; - return index > 0 ? factory.createQualifiedName(createEntityNameFromSymbolChain(chain2, index - 1), identifier) : identifier; - } - } - function symbolToExpression(symbol, context, meaning) { - const chain = lookupSymbolChain(symbol, context, meaning); - return createExpressionFromSymbolChain(chain, chain.length - 1); - function createExpressionFromSymbolChain(chain2, index) { - const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context); - const symbol2 = chain2[index]; - if (index === 0) { - context.flags |= 16777216 /* InInitialEntityName */; - } - let symbolName2 = getNameOfSymbolAsWritten(symbol2, context); - if (index === 0) { - context.flags ^= 16777216 /* InInitialEntityName */; - } - let firstChar = symbolName2.charCodeAt(0); - if (isSingleOrDoubleQuote(firstChar) && some(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { - return factory.createStringLiteral(getSpecifierForModuleSymbol(symbol2, context)); - } - if (index === 0 || canUsePropertyAccess(symbolName2, languageVersion)) { - const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); - if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); - identifier.symbol = symbol2; - return index > 0 ? factory.createPropertyAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), identifier) : identifier; - } else { - if (firstChar === 91 /* openBracket */) { - symbolName2 = symbolName2.substring(1, symbolName2.length - 1); - firstChar = symbolName2.charCodeAt(0); - } - let expression; - if (isSingleOrDoubleQuote(firstChar) && !(symbol2.flags & 8 /* EnumMember */)) { - expression = factory.createStringLiteral(stripQuotes(symbolName2).replace(/\\./g, (s) => s.substring(1)), firstChar === 39 /* singleQuote */); - } else if ("" + +symbolName2 === symbolName2) { - expression = factory.createNumericLiteral(+symbolName2); - } - if (!expression) { - const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); - if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); - identifier.symbol = symbol2; - expression = identifier; - } - return factory.createElementAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), expression); - } - } - } - function isStringNamed(d) { - const name = getNameOfDeclaration(d); - if (!name) { - return false; - } - if (isComputedPropertyName(name)) { - const type = checkExpression(name.expression); - return !!(type.flags & 402653316 /* StringLike */); - } - if (isElementAccessExpression(name)) { - const type = checkExpression(name.argumentExpression); - return !!(type.flags & 402653316 /* StringLike */); - } - return isStringLiteral(name); - } - function isSingleQuotedStringNamed(d) { - const name = getNameOfDeclaration(d); - return !!(name && isStringLiteral(name) && (name.singleQuote || !nodeIsSynthesized(name) && startsWith(getTextOfNode( - name, - /*includeTrivia*/ - false - ), "'"))); - } - function getPropertyNameNodeForSymbol(symbol, context) { - const stringNamed = !!length(symbol.declarations) && every(symbol.declarations, isStringNamed); - const singleQuote = !!length(symbol.declarations) && every(symbol.declarations, isSingleQuotedStringNamed); - const isMethod = !!(symbol.flags & 8192 /* Method */); - const fromNameType = getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed, isMethod); - if (fromNameType) { - return fromNameType; - } - const rawName = unescapeLeadingUnderscores(symbol.escapedName); - return createPropertyNameNodeForIdentifierOrLiteral(rawName, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod); - } - function getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed, isMethod) { - const nameType = getSymbolLinks(symbol).nameType; - if (nameType) { - if (nameType.flags & 384 /* StringOrNumberLiteral */) { - const name = "" + nameType.value; - if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && (stringNamed || !isNumericLiteralName(name))) { - return factory.createStringLiteral(name, !!singleQuote); - } - if (isNumericLiteralName(name) && startsWith(name, "-")) { - return factory.createComputedPropertyName(factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-name))); - } - return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod); - } - if (nameType.flags & 8192 /* UniqueESSymbol */) { - return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, 111551 /* Value */)); - } - } - } - function cloneNodeBuilderContext(context) { - const oldMustCreateTypeParameterSymbolList = context.mustCreateTypeParameterSymbolList; - const oldMustCreateTypeParametersNamesLookups = context.mustCreateTypeParametersNamesLookups; - context.mustCreateTypeParameterSymbolList = true; - context.mustCreateTypeParametersNamesLookups = true; - const oldTypeParameterNames = context.typeParameterNames; - const oldTypeParameterNamesByText = context.typeParameterNamesByText; - const oldTypeParameterNamesByTextNextNameCount = context.typeParameterNamesByTextNextNameCount; - const oldTypeParameterSymbolList = context.typeParameterSymbolList; - return () => { - context.typeParameterNames = oldTypeParameterNames; - context.typeParameterNamesByText = oldTypeParameterNamesByText; - context.typeParameterNamesByTextNextNameCount = oldTypeParameterNamesByTextNextNameCount; - context.typeParameterSymbolList = oldTypeParameterSymbolList; - context.mustCreateTypeParameterSymbolList = oldMustCreateTypeParameterSymbolList; - context.mustCreateTypeParametersNamesLookups = oldMustCreateTypeParametersNamesLookups; - }; - } - function getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration) { - return symbol.declarations && find(symbol.declarations, (s) => !!getNonlocalEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!findAncestor(s, (n) => n === enclosingDeclaration))); - } - function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) { - if (!(getObjectFlags(type) & 4 /* Reference */)) return true; - if (!isTypeReferenceNode(existing)) return true; - void getTypeFromTypeReference(existing); - const symbol = getNodeLinks(existing).resolvedSymbol; - const existingTarget = symbol && getDeclaredTypeOfSymbol(symbol); - if (!existingTarget || existingTarget !== type.target) return true; - return length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters); - } - function getEnclosingDeclarationIgnoringFakeScope(enclosingDeclaration) { - while (getNodeLinks(enclosingDeclaration).fakeScopeForSignatureDeclaration) { - enclosingDeclaration = enclosingDeclaration.parent; - } - return enclosingDeclaration; - } - function serializeInferredTypeForDeclaration(symbol, context, type) { - if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === context.enclosingFile))) { - context.flags |= 1048576 /* AllowUniqueESSymbolType */; - } - const result = typeToTypeNodeHelper(type, context); - return result; - } - function serializeTypeForDeclaration(context, declaration, type, symbol) { - var _a; - let result; - const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration); - const decl = declaration ?? symbol.valueDeclaration ?? getDeclarationWithTypeAnnotation(symbol) ?? ((_a = symbol.declarations) == null ? void 0 : _a[0]); - if (decl) { - const restore = addSymbolTypeToContext(context, symbol, type); - if (isAccessor(decl)) { - result = syntacticNodeBuilder.serializeTypeOfAccessor(decl, symbol, context); - } else if (hasInferredType(decl) && !nodeIsSynthesized(decl) && !(getObjectFlags(type) & 196608 /* RequiresWidening */)) { - result = syntacticNodeBuilder.serializeTypeOfDeclaration(decl, symbol, context); - } - restore(); - } - if (!result) { - if (addUndefinedForParameter) { - type = getOptionalType(type); - } - result = serializeInferredTypeForDeclaration(symbol, context, type); - } - return result ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function typeNodeIsEquivalentToType(annotatedDeclaration, type, typeFromTypeNode) { - if (typeFromTypeNode === type) { - return true; - } - if (!annotatedDeclaration) { - return false; - } - if ((isPropertySignature(annotatedDeclaration) || isPropertyDeclaration(annotatedDeclaration)) && annotatedDeclaration.questionToken) { - return getTypeWithFacts(type, 524288 /* NEUndefined */) === typeFromTypeNode; - } - if (isParameter(annotatedDeclaration) && hasEffectiveQuestionToken(annotatedDeclaration)) { - return getTypeWithFacts(type, 524288 /* NEUndefined */) === typeFromTypeNode; - } - return false; - } - function serializeReturnTypeForSignature(context, signature) { - const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; - const restoreFlags = saveRestoreFlags(context); - if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; - let returnTypeNode; - const returnType = getReturnTypeOfSignature(signature); - if (!(suppressAny && isTypeAny(returnType))) { - if (signature.declaration && !nodeIsSynthesized(signature.declaration)) { - const declarationSymbol = getSymbolOfDeclaration(signature.declaration); - const restore = addSymbolTypeToContext(context, declarationSymbol, returnType); - returnTypeNode = syntacticNodeBuilder.serializeReturnTypeForSignature(signature.declaration, declarationSymbol, context); - restore(); - } - if (!returnTypeNode) { - returnTypeNode = serializeInferredReturnTypeForSignature(context, signature, returnType); - } - } - if (!returnTypeNode && !suppressAny) { - returnTypeNode = factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - restoreFlags(); - return returnTypeNode; - } - function serializeInferredReturnTypeForSignature(context, signature, returnType) { - const oldSuppressReportInferenceFallback = context.suppressReportInferenceFallback; - context.suppressReportInferenceFallback = true; - const typePredicate = getTypePredicateOfSignature(signature); - const returnTypeNode = typePredicate ? typePredicateToTypePredicateNodeHelper(context.mapper ? instantiateTypePredicate(typePredicate, context.mapper) : typePredicate, context) : typeToTypeNodeHelper(returnType, context); - context.suppressReportInferenceFallback = oldSuppressReportInferenceFallback; - return returnTypeNode; - } - function trackExistingEntityName(node, context, enclosingDeclaration = context.enclosingDeclaration) { - let introducesError = false; - const leftmost = getFirstIdentifier(node); - if (isInJSFile(node) && (isExportsIdentifier(leftmost) || isModuleExportsAccessExpression(leftmost.parent) || isQualifiedName(leftmost.parent) && isModuleIdentifier(leftmost.parent.left) && isExportsIdentifier(leftmost.parent.right))) { - introducesError = true; - return { introducesError, node }; - } - const meaning = getMeaningOfEntityNameReference(node); - let sym; - if (isThisIdentifier(leftmost)) { - sym = getSymbolOfDeclaration(getThisContainer( - leftmost, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - )); - if (isSymbolAccessible( - sym, - leftmost, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility !== 0 /* Accessible */) { - introducesError = true; - context.tracker.reportInaccessibleThisError(); - } - return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; - } - sym = resolveEntityName( - leftmost, - meaning, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true - ); - if (context.enclosingDeclaration && !(sym && sym.flags & 262144 /* TypeParameter */)) { - sym = getExportSymbolOfValueSymbolIfExported(sym); - const symAtLocation = resolveEntityName( - leftmost, - meaning, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - context.enclosingDeclaration - ); - if ( - // Check for unusable parameters symbols - symAtLocation === unknownSymbol || // If the symbol is not found, but was not found in the original scope either we probably have an error, don't reuse the node - symAtLocation === void 0 && sym !== void 0 || // If the symbol is found both in declaration scope and in current scope then it should point to the same reference - symAtLocation && sym && !getSymbolIfSameReference(getExportSymbolOfValueSymbolIfExported(symAtLocation), sym) - ) { - if (symAtLocation !== unknownSymbol) { - context.tracker.reportInferenceFallback(node); - } - introducesError = true; - return { introducesError, node, sym }; - } else { - sym = symAtLocation; - } - } - if (sym) { - if (sym.flags & 1 /* FunctionScopedVariable */ && sym.valueDeclaration) { - if (isPartOfParameterDeclaration(sym.valueDeclaration) || isJSDocParameterTag(sym.valueDeclaration)) { - return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; - } - } - if (!(sym.flags & 262144 /* TypeParameter */) && // Type parameters are visible in the current context if they are are resolvable - !isDeclarationName(node) && isSymbolAccessible( - sym, - enclosingDeclaration, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility !== 0 /* Accessible */) { - context.tracker.reportInferenceFallback(node); - introducesError = true; - } else { - context.tracker.trackSymbol(sym, enclosingDeclaration, meaning); - } - return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; - } - return { introducesError, node }; - function attachSymbolToLeftmostIdentifier(node2) { - if (node2 === leftmost) { - const type = getDeclaredTypeOfSymbol(sym); - const name = sym.flags & 262144 /* TypeParameter */ ? typeParameterToName(type, context) : factory.cloneNode(node2); - name.symbol = sym; - return setTextRange2(context, setEmitFlags(name, 16777216 /* NoAsciiEscaping */), node2); - } - const updated = visitEachChild( - node2, - (c) => attachSymbolToLeftmostIdentifier(c), - /*context*/ - void 0 - ); - return setTextRange2(context, updated, node2); - } - } - function serializeTypeName(context, node, isTypeOf, typeArguments) { - const meaning = isTypeOf ? 111551 /* Value */ : 788968 /* Type */; - const symbol = resolveEntityName( - node, - meaning, - /*ignoreErrors*/ - true - ); - if (!symbol) return void 0; - const resolvedSymbol = symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol; - if (isSymbolAccessible( - symbol, - context.enclosingDeclaration, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility !== 0 /* Accessible */) return void 0; - return symbolToTypeNode(resolvedSymbol, context, meaning, typeArguments); - } - function canReuseTypeNode(context, existing) { - const type = getTypeFromTypeNode2( - context, - existing, - /*noMappedTypes*/ - true - ); - if (!type) { - return false; - } - if (isInJSFile(existing)) { - if (isLiteralImportTypeNode(existing)) { - void getTypeFromImportTypeNode(existing); - const nodeSymbol = getNodeLinks(existing).resolvedSymbol; - return !nodeSymbol || !// The import type resolved using jsdoc fallback logic - (!existing.isTypeOf && !(nodeSymbol.flags & 788968 /* Type */) || // The import type had type arguments autofilled by js fallback logic - !(length(existing.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol)))); - } - } - if (isTypeReferenceNode(existing)) { - if (isConstTypeReference(existing)) return false; - const symbol = getNodeLinks(existing).resolvedSymbol; - if (!symbol) return false; - if (symbol.flags & 262144 /* TypeParameter */) { - const declaredType = getDeclaredTypeOfSymbol(symbol); - return !(context.mapper && getMappedType(declaredType, context.mapper) !== declaredType); - } - if (isInJSDoc(existing)) { - return existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) && !getIntendedTypeFromJSDocTypeReference(existing) && !!(symbol.flags & 788968 /* Type */); - } - } - if (isTypeOperatorNode(existing) && existing.operator === 158 /* UniqueKeyword */ && existing.type.kind === 155 /* SymbolKeyword */) { - const effectiveEnclosingContext = context.enclosingDeclaration && getEnclosingDeclarationIgnoringFakeScope(context.enclosingDeclaration); - return !!findAncestor(existing, (n) => n === effectiveEnclosingContext); - } - return true; - } - function serializeExistingTypeNode(context, typeNode, addUndefined) { - const type = getTypeFromTypeNode2(context, typeNode); - if (addUndefined && !someType(type, (t) => !!(t.flags & 32768 /* Undefined */)) && canReuseTypeNode(context, typeNode)) { - const clone = syntacticNodeBuilder.tryReuseExistingTypeNode(context, typeNode); - if (clone) { - return factory.createUnionTypeNode([clone, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - } - return typeToTypeNodeHelper(type, context); - } - function symbolTableToDeclarationStatements(symbolTable, context) { - var _a; - const serializePropertySymbolForClass = makeSerializePropertySymbol( - factory.createPropertyDeclaration, - 174 /* MethodDeclaration */, - /*useAccessors*/ - true - ); - const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( - (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), - 173 /* MethodSignature */, - /*useAccessors*/ - false - ); - const enclosingDeclaration = context.enclosingDeclaration; - let results = []; - const visitedSymbols = /* @__PURE__ */ new Set(); - const deferredPrivatesStack = []; - const oldcontext = context; - context = { - ...oldcontext, - usedSymbolNames: new Set(oldcontext.usedSymbolNames), - remappedSymbolNames: /* @__PURE__ */ new Map(), - remappedSymbolReferences: new Map((_a = oldcontext.remappedSymbolReferences) == null ? void 0 : _a.entries()), - tracker: void 0 - }; - const tracker = { - ...oldcontext.tracker.inner, - trackSymbol: (sym, decl, meaning) => { - var _a2, _b; - if ((_a2 = context.remappedSymbolNames) == null ? void 0 : _a2.has(getSymbolId(sym))) return false; - const accessibleResult = isSymbolAccessible( - sym, - decl, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ); - if (accessibleResult.accessibility === 0 /* Accessible */) { - const chain = lookupSymbolChainWorker(sym, context, meaning); - if (!(sym.flags & 4 /* Property */)) { - const root = chain[0]; - const contextFile = getSourceFileOfNode(oldcontext.enclosingDeclaration); - if (some(root.declarations, (d) => getSourceFileOfNode(d) === contextFile)) { - includePrivateSymbol(root); - } - } - } else if ((_b = oldcontext.tracker.inner) == null ? void 0 : _b.trackSymbol) { - return oldcontext.tracker.inner.trackSymbol(sym, decl, meaning); - } - return false; - } - }; - context.tracker = new SymbolTrackerImpl(context, tracker, oldcontext.tracker.moduleResolverHost); - forEachEntry(symbolTable, (symbol, name) => { - const baseName = unescapeLeadingUnderscores(name); - void getInternalSymbolName(symbol, baseName); - }); - let addingDeclare = !context.bundled; - const exportEquals = symbolTable.get("export=" /* ExportEquals */); - if (exportEquals && symbolTable.size > 1 && exportEquals.flags & (2097152 /* Alias */ | 1536 /* Module */)) { - symbolTable = createSymbolTable(); - symbolTable.set("export=" /* ExportEquals */, exportEquals); - } - visitSymbolTable(symbolTable); - return mergeRedundantStatements(results); - function isIdentifierAndNotUndefined(node) { - return !!node && node.kind === 80 /* Identifier */; - } - function getNamesOfDeclaration(statement) { - if (isVariableStatement(statement)) { - return filter(map(statement.declarationList.declarations, getNameOfDeclaration), isIdentifierAndNotUndefined); - } - return filter([getNameOfDeclaration(statement)], isIdentifierAndNotUndefined); - } - function flattenExportAssignedNamespace(statements) { - const exportAssignment = find(statements, isExportAssignment); - const nsIndex = findIndex(statements, isModuleDeclaration); - let ns = nsIndex !== -1 ? statements[nsIndex] : void 0; - if (ns && exportAssignment && exportAssignment.isExportEquals && isIdentifier(exportAssignment.expression) && isIdentifier(ns.name) && idText(ns.name) === idText(exportAssignment.expression) && ns.body && isModuleBlock(ns.body)) { - const excessExports = filter(statements, (s) => !!(getEffectiveModifierFlags(s) & 32 /* Export */)); - const name = ns.name; - let body = ns.body; - if (length(excessExports)) { - ns = factory.updateModuleDeclaration( - ns, - ns.modifiers, - ns.name, - body = factory.updateModuleBlock( - body, - factory.createNodeArray([ - ...ns.body.statements, - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier( - /*isTypeOnly*/ - false, - /*propertyName*/ - void 0, - id - ))), - /*moduleSpecifier*/ - void 0 - ) - ]) - ) - ); - statements = [...statements.slice(0, nsIndex), ns, ...statements.slice(nsIndex + 1)]; - } - if (!find(statements, (s) => s !== ns && nodeHasName(s, name))) { - results = []; - const mixinExportFlag = !some(body.statements, (s) => hasSyntacticModifier(s, 32 /* Export */) || isExportAssignment(s) || isExportDeclaration(s)); - forEach(body.statements, (s) => { - addResult(s, mixinExportFlag ? 32 /* Export */ : 0 /* None */); - }); - statements = [...filter(statements, (s) => s !== ns && s !== exportAssignment), ...results]; - } - } - return statements; - } - function mergeExportDeclarations(statements) { - const exports2 = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause)); - if (length(exports2) > 1) { - const nonExports = filter(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause); - statements = [ - ...nonExports, - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports(flatMap(exports2, (e) => cast(e.exportClause, isNamedExports).elements)), - /*moduleSpecifier*/ - void 0 - ) - ]; - } - const reexports = filter(statements, (d) => isExportDeclaration(d) && !!d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause)); - if (length(reexports) > 1) { - const groups = group(reexports, (decl) => isStringLiteral(decl.moduleSpecifier) ? ">" + decl.moduleSpecifier.text : ">"); - if (groups.length !== reexports.length) { - for (const group2 of groups) { - if (group2.length > 1) { - statements = [ - ...filter(statements, (s) => !group2.includes(s)), - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports(flatMap(group2, (e) => cast(e.exportClause, isNamedExports).elements)), - group2[0].moduleSpecifier - ) - ]; - } - } - } - } - return statements; - } - function inlineExportModifiers(statements) { - const index = findIndex(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !d.attributes && !!d.exportClause && isNamedExports(d.exportClause)); - if (index >= 0) { - const exportDecl = statements[index]; - const replacements = mapDefined(exportDecl.exportClause.elements, (e) => { - if (!e.propertyName && e.name.kind !== 11 /* StringLiteral */) { - const name = e.name; - const indices = indicesOf(statements); - const associatedIndices = filter(indices, (i) => nodeHasName(statements[i], name)); - if (length(associatedIndices) && every(associatedIndices, (i) => canHaveExportModifier(statements[i]))) { - for (const index2 of associatedIndices) { - statements[index2] = addExportModifier(statements[index2]); - } - return void 0; - } - } - return e; - }); - if (!length(replacements)) { - orderedRemoveItemAt(statements, index); - } else { - statements[index] = factory.updateExportDeclaration( - exportDecl, - exportDecl.modifiers, - exportDecl.isTypeOnly, - factory.updateNamedExports( - exportDecl.exportClause, - replacements - ), - exportDecl.moduleSpecifier, - exportDecl.attributes - ); - } - } - return statements; - } - function mergeRedundantStatements(statements) { - statements = flattenExportAssignedNamespace(statements); - statements = mergeExportDeclarations(statements); - statements = inlineExportModifiers(statements); - if (enclosingDeclaration && (isSourceFile(enclosingDeclaration) && isExternalOrCommonJsModule(enclosingDeclaration) || isModuleDeclaration(enclosingDeclaration)) && (!some(statements, isExternalModuleIndicator) || !hasScopeMarker(statements) && some(statements, needsScopeMarker))) { - statements.push(createEmptyExports(factory)); - } - return statements; - } - function addExportModifier(node) { - const flags = (getEffectiveModifierFlags(node) | 32 /* Export */) & ~128 /* Ambient */; - return factory.replaceModifiers(node, flags); - } - function removeExportModifier(node) { - const flags = getEffectiveModifierFlags(node) & ~32 /* Export */; - return factory.replaceModifiers(node, flags); - } - function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) { - if (!suppressNewPrivateContext) { - deferredPrivatesStack.push(/* @__PURE__ */ new Map()); - } - symbolTable2.forEach((symbol) => { - serializeSymbol( - symbol, - /*isPrivate*/ - false, - !!propertyAsAlias - ); - }); - if (!suppressNewPrivateContext) { - deferredPrivatesStack[deferredPrivatesStack.length - 1].forEach((symbol) => { - serializeSymbol( - symbol, - /*isPrivate*/ - true, - !!propertyAsAlias - ); - }); - deferredPrivatesStack.pop(); - } - } - function serializeSymbol(symbol, isPrivate, propertyAsAlias) { - void getPropertiesOfType(getTypeOfSymbol(symbol)); - const visitedSym = getMergedSymbol(symbol); - if (visitedSymbols.has(getSymbolId(visitedSym))) { - return; - } - visitedSymbols.add(getSymbolId(visitedSym)); - const skipMembershipCheck = !isPrivate; - if (skipMembershipCheck || !!length(symbol.declarations) && some(symbol.declarations, (d) => !!findAncestor(d, (n) => n === enclosingDeclaration))) { - const scopeCleanup = cloneNodeBuilderContext(context); - context.tracker.pushErrorFallbackNode(find(symbol.declarations, (d) => getSourceFileOfNode(d) === context.enclosingFile)); - serializeSymbolWorker(symbol, isPrivate, propertyAsAlias); - context.tracker.popErrorFallbackNode(); - scopeCleanup(); - } - } - function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias, escapedSymbolName = symbol.escapedName) { - var _a2, _b, _c, _d, _e, _f; - const symbolName2 = unescapeLeadingUnderscores(escapedSymbolName); - const isDefault = escapedSymbolName === "default" /* Default */; - if (isPrivate && !(context.flags & 131072 /* AllowAnonymousIdentifier */) && isStringANonContextualKeyword(symbolName2) && !isDefault) { - context.encounteredError = true; - return; - } - let needsPostExportDefault = isDefault && !!(symbol.flags & -113 /* ExportDoesNotSupportDefaultModifier */ || symbol.flags & 16 /* Function */ && length(getPropertiesOfType(getTypeOfSymbol(symbol)))) && !(symbol.flags & 2097152 /* Alias */); - let needsExportDeclaration = !needsPostExportDefault && !isPrivate && isStringANonContextualKeyword(symbolName2) && !isDefault; - if (needsPostExportDefault || needsExportDeclaration) { - isPrivate = true; - } - const modifierFlags = (!isPrivate ? 32 /* Export */ : 0) | (isDefault && !needsPostExportDefault ? 2048 /* Default */ : 0); - const isConstMergedWithNS = symbol.flags & 1536 /* Module */ && symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */) && escapedSymbolName !== "export=" /* ExportEquals */; - const isConstMergedWithNSPrintableAsSignatureMerge = isConstMergedWithNS && isTypeRepresentableAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol); - if (symbol.flags & (16 /* Function */ | 8192 /* Method */) || isConstMergedWithNSPrintableAsSignatureMerge) { - serializeAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); - } - if (symbol.flags & 524288 /* TypeAlias */) { - serializeTypeAlias(symbol, symbolName2, modifierFlags); - } - if (symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */ | 98304 /* Accessor */) && escapedSymbolName !== "export=" /* ExportEquals */ && !(symbol.flags & 4194304 /* Prototype */) && !(symbol.flags & 32 /* Class */) && !(symbol.flags & 8192 /* Method */) && !isConstMergedWithNSPrintableAsSignatureMerge) { - if (propertyAsAlias) { - const createdExport = serializeMaybeAliasAssignment(symbol); - if (createdExport) { - needsExportDeclaration = false; - needsPostExportDefault = false; - } - } else { - const type = getTypeOfSymbol(symbol); - const localName = getInternalSymbolName(symbol, symbolName2); - if (type.symbol && type.symbol !== symbol && type.symbol.flags & 16 /* Function */ && some(type.symbol.declarations, isFunctionExpressionOrArrowFunction) && (((_a2 = type.symbol.members) == null ? void 0 : _a2.size) || ((_b = type.symbol.exports) == null ? void 0 : _b.size))) { - if (!context.remappedSymbolReferences) { - context.remappedSymbolReferences = /* @__PURE__ */ new Map(); - } - context.remappedSymbolReferences.set(getSymbolId(type.symbol), symbol); - serializeSymbolWorker(type.symbol, isPrivate, propertyAsAlias, escapedSymbolName); - context.remappedSymbolReferences.delete(getSymbolId(type.symbol)); - } else if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { - serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); - } else { - const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_c = symbol.parent) == null ? void 0 : _c.valueDeclaration) && isSourceFile((_d = symbol.parent) == null ? void 0 : _d.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; - const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); - let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); - if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { - textRange = textRange.parent.parent; - } - const propertyAccessRequire = (_e = symbol.declarations) == null ? void 0 : _e.find(isPropertyAccessExpression); - if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((_f = type.symbol) == null ? void 0 : _f.valueDeclaration) && isSourceFile(type.symbol.valueDeclaration)) { - const alias = localName === propertyAccessRequire.parent.right.escapedText ? void 0 : propertyAccessRequire.parent.right; - addResult( - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports([factory.createExportSpecifier( - /*isTypeOnly*/ - false, - alias, - localName - )]) - ), - 0 /* None */ - ); - context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551 /* Value */); - } else { - const statement = setTextRange2( - context, - factory.createVariableStatement( - /*modifiers*/ - void 0, - factory.createVariableDeclarationList([ - factory.createVariableDeclaration( - name, - /*exclamationToken*/ - void 0, - serializeTypeForDeclaration( - context, - /*declaration*/ - void 0, - type, - symbol - ) - ) - ], flags) - ), - textRange - ); - addResult(statement, name !== localName ? modifierFlags & ~32 /* Export */ : modifierFlags); - if (name !== localName && !isPrivate) { - addResult( - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports([factory.createExportSpecifier( - /*isTypeOnly*/ - false, - name, - localName - )]) - ), - 0 /* None */ - ); - needsExportDeclaration = false; - needsPostExportDefault = false; - } - } - } - } - } - if (symbol.flags & 384 /* Enum */) { - serializeEnum(symbol, symbolName2, modifierFlags); - } - if (symbol.flags & 32 /* Class */) { - if (symbol.flags & 4 /* Property */ && symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration.parent) && isClassExpression(symbol.valueDeclaration.parent.right)) { - serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); - } else { - serializeAsClass(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); - } - } - if (symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && (!isConstMergedWithNS || isTypeOnlyNamespace(symbol)) || isConstMergedWithNSPrintableAsSignatureMerge) { - serializeModule(symbol, symbolName2, modifierFlags); - } - if (symbol.flags & 64 /* Interface */ && !(symbol.flags & 32 /* Class */)) { - serializeInterface(symbol, symbolName2, modifierFlags); - } - if (symbol.flags & 2097152 /* Alias */) { - serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); - } - if (symbol.flags & 4 /* Property */ && symbol.escapedName === "export=" /* ExportEquals */) { - serializeMaybeAliasAssignment(symbol); - } - if (symbol.flags & 8388608 /* ExportStar */) { - if (symbol.declarations) { - for (const node of symbol.declarations) { - const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); - if (!resolvedModule) continue; - addResult(factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - node.isTypeOnly, - /*exportClause*/ - void 0, - factory.createStringLiteral(getSpecifierForModuleSymbol(resolvedModule, context)) - ), 0 /* None */); - } - } - } - if (needsPostExportDefault) { - addResult(factory.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - factory.createIdentifier(getInternalSymbolName(symbol, symbolName2)) - ), 0 /* None */); - } else if (needsExportDeclaration) { - addResult( - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports([factory.createExportSpecifier( - /*isTypeOnly*/ - false, - getInternalSymbolName(symbol, symbolName2), - symbolName2 - )]) - ), - 0 /* None */ - ); - } - } - function includePrivateSymbol(symbol) { - if (some(symbol.declarations, isPartOfParameterDeclaration)) return; - Debug.assertIsDefined(deferredPrivatesStack[deferredPrivatesStack.length - 1]); - getUnusedName(unescapeLeadingUnderscores(symbol.escapedName), symbol); - const isExternalImportAlias = !!(symbol.flags & 2097152 /* Alias */) && !some(symbol.declarations, (d) => !!findAncestor(d, isExportDeclaration) || isNamespaceExport(d) || isImportEqualsDeclaration(d) && !isExternalModuleReference(d.moduleReference)); - deferredPrivatesStack[isExternalImportAlias ? 0 : deferredPrivatesStack.length - 1].set(getSymbolId(symbol), symbol); - } - function isExportingScope(enclosingDeclaration2) { - return isSourceFile(enclosingDeclaration2) && (isExternalOrCommonJsModule(enclosingDeclaration2) || isJsonSourceFile(enclosingDeclaration2)) || isAmbientModule(enclosingDeclaration2) && !isGlobalScopeAugmentation(enclosingDeclaration2); - } - function addResult(node, additionalModifierFlags) { - if (canHaveModifiers(node)) { - let newModifierFlags = 0 /* None */; - const enclosingDeclaration2 = context.enclosingDeclaration && (isJSDocTypeAlias(context.enclosingDeclaration) ? getSourceFileOfNode(context.enclosingDeclaration) : context.enclosingDeclaration); - if (additionalModifierFlags & 32 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { - newModifierFlags |= 32 /* Export */; - } - if (addingDeclare && !(newModifierFlags & 32 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { - newModifierFlags |= 128 /* Ambient */; - } - if (additionalModifierFlags & 2048 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { - newModifierFlags |= 2048 /* Default */; - } - if (newModifierFlags) { - node = factory.replaceModifiers(node, newModifierFlags | getEffectiveModifierFlags(node)); - } - } - results.push(node); - } - function serializeTypeAlias(symbol, symbolName2, modifierFlags) { - var _a2; - const aliasType = getDeclaredTypeOfTypeAlias(symbol); - const typeParams = getSymbolLinks(symbol).typeParameters; - const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context)); - const jsdocAliasDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isJSDocTypeAlias); - const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0); - const restoreFlags = saveRestoreFlags(context); - context.flags |= 8388608 /* InTypeAlias */; - const oldEnclosingDecl = context.enclosingDeclaration; - context.enclosingDeclaration = jsdocAliasDecl; - const typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression && isJSDocTypeExpression(jsdocAliasDecl.typeExpression) && syntacticNodeBuilder.tryReuseExistingTypeNode(context, jsdocAliasDecl.typeExpression.type) || typeToTypeNodeHelper(aliasType, context); - addResult( - setSyntheticLeadingComments( - factory.createTypeAliasDeclaration( - /*modifiers*/ - void 0, - getInternalSymbolName(symbol, symbolName2), - typeParamDecls, - typeNode - ), - !commentText ? [] : [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }] - ), - modifierFlags - ); - restoreFlags(); - context.enclosingDeclaration = oldEnclosingDecl; - } - function serializeInterface(symbol, symbolName2, modifierFlags) { - const interfaceType = getDeclaredTypeOfClassOrInterface(symbol); - const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); - const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context)); - const baseTypes = getBaseTypes(interfaceType); - const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; - const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); - const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); - const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); - const indexSignatures = serializeIndexSignatures(interfaceType, baseType); - const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; - addResult( - factory.createInterfaceDeclaration( - /*modifiers*/ - void 0, - getInternalSymbolName(symbol, symbolName2), - typeParamDecls, - heritageClauses, - [...indexSignatures, ...constructSignatures, ...callSignatures, ...members] - ), - modifierFlags - ); - } - function getNamespaceMembersForSerialization(symbol) { - let exports2 = arrayFrom(getExportsOfSymbol(symbol).values()); - const merged = getMergedSymbol(symbol); - if (merged !== symbol) { - const membersSet = new Set(exports2); - for (const exported of getExportsOfSymbol(merged).values()) { - if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) { - membersSet.add(exported); - } - } - exports2 = arrayFrom(membersSet); - } - return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); - } - function isTypeOnlyNamespace(symbol) { - return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); - } - function serializeModule(symbol, symbolName2, modifierFlags) { - const members = getNamespaceMembersForSerialization(symbol); - const locationMap = arrayToMultiMap(members, (m) => m.parent && m.parent === symbol ? "real" : "merged"); - const realMembers = locationMap.get("real") || emptyArray; - const mergedMembers = locationMap.get("merged") || emptyArray; - if (length(realMembers)) { - const localName = getInternalSymbolName(symbol, symbolName2); - serializeAsNamespaceDeclaration(realMembers, localName, modifierFlags, !!(symbol.flags & (16 /* Function */ | 67108864 /* Assignment */))); - } - if (length(mergedMembers)) { - const containingFile = getSourceFileOfNode(context.enclosingDeclaration); - const localName = getInternalSymbolName(symbol, symbolName2); - const nsBody = factory.createModuleBlock([factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports(mapDefined(filter(mergedMembers, (n) => n.escapedName !== "export=" /* ExportEquals */), (s) => { - var _a2, _b; - const name = unescapeLeadingUnderscores(s.escapedName); - const localName2 = getInternalSymbolName(s, name); - const aliasDecl = s.declarations && getDeclarationOfAliasSymbol(s); - if (containingFile && (aliasDecl ? containingFile !== getSourceFileOfNode(aliasDecl) : !some(s.declarations, (d) => getSourceFileOfNode(d) === containingFile))) { - (_b = (_a2 = context.tracker) == null ? void 0 : _a2.reportNonlocalAugmentation) == null ? void 0 : _b.call(_a2, containingFile, symbol, s); - return void 0; - } - const target = aliasDecl && getTargetOfAliasDeclaration( - aliasDecl, - /*dontRecursivelyResolve*/ - true - ); - includePrivateSymbol(target || s); - const targetName = target ? getInternalSymbolName(target, unescapeLeadingUnderscores(target.escapedName)) : localName2; - return factory.createExportSpecifier( - /*isTypeOnly*/ - false, - name === targetName ? void 0 : targetName, - name - ); - })) - )]); - addResult( - factory.createModuleDeclaration( - /*modifiers*/ - void 0, - factory.createIdentifier(localName), - nsBody, - 32 /* Namespace */ - ), - 0 /* None */ - ); - } - } - function serializeEnum(symbol, symbolName2, modifierFlags) { - addResult( - factory.createEnumDeclaration( - factory.createModifiersFromModifierFlags(isConstEnumSymbol(symbol) ? 4096 /* Const */ : 0), - getInternalSymbolName(symbol, symbolName2), - map(filter(getPropertiesOfType(getTypeOfSymbol(symbol)), (p) => !!(p.flags & 8 /* EnumMember */)), (p) => { - const initializedValue = p.declarations && p.declarations[0] && isEnumMember(p.declarations[0]) ? getConstantValue2(p.declarations[0]) : void 0; - return factory.createEnumMember( - unescapeLeadingUnderscores(p.escapedName), - initializedValue === void 0 ? void 0 : typeof initializedValue === "string" ? factory.createStringLiteral(initializedValue) : factory.createNumericLiteral(initializedValue) - ); - }) - ), - modifierFlags - ); - } - function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { - const signatures = getSignaturesOfType(type, 0 /* Call */); - for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName) }); - addResult(setTextRange2(context, decl, getSignatureTextRangeLocation(sig)), modifierFlags); - } - if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { - const props = filter(getPropertiesOfType(type), isNamespaceMember); - serializeAsNamespaceDeclaration( - props, - localName, - modifierFlags, - /*suppressNewPrivateContext*/ - true - ); - } - } - function getSignatureTextRangeLocation(signature) { - if (signature.declaration && signature.declaration.parent) { - if (isBinaryExpression(signature.declaration.parent) && getAssignmentDeclarationKind(signature.declaration.parent) === 5 /* Property */) { - return signature.declaration.parent; - } - if (isVariableDeclaration(signature.declaration.parent) && signature.declaration.parent.parent) { - return signature.declaration.parent.parent; - } - } - return signature.declaration; - } - function serializeAsNamespaceDeclaration(props, localName, modifierFlags, suppressNewPrivateContext) { - if (length(props)) { - const localVsRemoteMap = arrayToMultiMap(props, (p) => !length(p.declarations) || some(p.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)) ? "local" : "remote"); - const localProps = localVsRemoteMap.get("local") || emptyArray; - let fakespace = parseNodeFactory.createModuleDeclaration( - /*modifiers*/ - void 0, - factory.createIdentifier(localName), - factory.createModuleBlock([]), - 32 /* Namespace */ - ); - setParent(fakespace, enclosingDeclaration); - fakespace.locals = createSymbolTable(props); - fakespace.symbol = props[0].parent; - const oldResults = results; - results = []; - const oldAddingDeclare = addingDeclare; - addingDeclare = false; - const subcontext = { ...context, enclosingDeclaration: fakespace }; - const oldContext = context; - context = subcontext; - visitSymbolTable( - createSymbolTable(localProps), - suppressNewPrivateContext, - /*propertyAsAlias*/ - true - ); - context = oldContext; - addingDeclare = oldAddingDeclare; - const declarations = results; - results = oldResults; - const defaultReplaced = map(declarations, (d) => isExportAssignment(d) && !d.isExportEquals && isIdentifier(d.expression) ? factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports([factory.createExportSpecifier( - /*isTypeOnly*/ - false, - d.expression, - factory.createIdentifier("default" /* Default */) - )]) - ) : d); - const exportModifierStripped = every(defaultReplaced, (d) => hasSyntacticModifier(d, 32 /* Export */)) ? map(defaultReplaced, removeExportModifier) : defaultReplaced; - fakespace = factory.updateModuleDeclaration( - fakespace, - fakespace.modifiers, - fakespace.name, - factory.createModuleBlock(exportModifierStripped) - ); - addResult(fakespace, modifierFlags); - } - } - function isNamespaceMember(p) { - return !!(p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) || !(p.flags & 4194304 /* Prototype */ || p.escapedName === "prototype" || p.valueDeclaration && isStatic(p.valueDeclaration) && isClassLike(p.valueDeclaration.parent)); - } - function sanitizeJSDocImplements(clauses) { - const result = mapDefined(clauses, (e) => { - const oldEnclosing = context.enclosingDeclaration; - context.enclosingDeclaration = e; - let expr = e.expression; - if (isEntityNameExpression(expr)) { - if (isIdentifier(expr) && idText(expr) === "") { - return cleanup( - /*result*/ - void 0 - ); - } - let introducesError; - ({ introducesError, node: expr } = trackExistingEntityName(expr, context)); - if (introducesError) { - return cleanup( - /*result*/ - void 0 - ); - } - } - return cleanup(factory.createExpressionWithTypeArguments( - expr, - map(e.typeArguments, (a) => syntacticNodeBuilder.tryReuseExistingTypeNode(context, a) || typeToTypeNodeHelper(getTypeFromTypeNode2(context, a), context)) - )); - function cleanup(result2) { - context.enclosingDeclaration = oldEnclosing; - return result2; - } - }); - if (result.length === clauses.length) { - return result; - } - return void 0; - } - function serializeAsClass(symbol, localName, modifierFlags) { - var _a2, _b; - const originalDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isClassLike); - const oldEnclosing = context.enclosingDeclaration; - context.enclosingDeclaration = originalDecl || oldEnclosing; - const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); - const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context)); - const classType = getTypeWithThisArgument(getDeclaredTypeOfClassOrInterface(symbol)); - const baseTypes = getBaseTypes(classType); - const originalImplements = originalDecl && getEffectiveImplementsTypeNodes(originalDecl); - const implementsExpressions = originalImplements && sanitizeJSDocImplements(originalImplements) || mapDefined(getImplementsTypes(classType), serializeImplementedType); - const staticType = getTypeOfSymbol(symbol); - const isClass = !!((_b = staticType.symbol) == null ? void 0 : _b.valueDeclaration) && isClassLike(staticType.symbol.valueDeclaration); - const staticBaseType = isClass ? getBaseConstructorTypeOfClass(staticType) : anyType; - const heritageClauses = [ - ...!length(baseTypes) ? [] : [factory.createHeritageClause(96 /* ExtendsKeyword */, map(baseTypes, (b) => serializeBaseType(b, staticBaseType, localName)))], - ...!length(implementsExpressions) ? [] : [factory.createHeritageClause(119 /* ImplementsKeyword */, implementsExpressions)] - ]; - const symbolProps = getNonInheritedProperties(classType, baseTypes, getPropertiesOfType(classType)); - const publicSymbolProps = filter(symbolProps, (s) => { - const valueDecl = s.valueDeclaration; - return !!valueDecl && !(isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name)); - }); - const hasPrivateIdentifier = some(symbolProps, (s) => { - const valueDecl = s.valueDeclaration; - return !!valueDecl && isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name); - }); - const privateProperties = hasPrivateIdentifier ? [factory.createPropertyDeclaration( - /*modifiers*/ - void 0, - factory.createPrivateIdentifier("#private"), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - )] : emptyArray; - const publicProperties = flatMap(publicSymbolProps, (p) => serializePropertySymbolForClass( - p, - /*isStatic*/ - false, - baseTypes[0] - )); - const staticMembers = flatMap( - filter(getPropertiesOfType(staticType), (p) => !(p.flags & 4194304 /* Prototype */) && p.escapedName !== "prototype" && !isNamespaceMember(p)), - (p) => serializePropertySymbolForClass( - p, - /*isStatic*/ - true, - staticBaseType - ) - ); - const isNonConstructableClassLikeInJsFile = !isClass && !!symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && !some(getSignaturesOfType(staticType, 1 /* Construct */)); - const constructors = isNonConstructableClassLikeInJsFile ? [factory.createConstructorDeclaration( - factory.createModifiersFromModifierFlags(2 /* Private */), - [], - /*body*/ - void 0 - )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); - const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); - context.enclosingDeclaration = oldEnclosing; - addResult( - setTextRange2( - context, - factory.createClassDeclaration( - /*modifiers*/ - void 0, - localName, - typeParamDecls, - heritageClauses, - [...indexSignatures, ...staticMembers, ...constructors, ...publicProperties, ...privateProperties] - ), - symbol.declarations && filter(symbol.declarations, (d) => isClassDeclaration(d) || isClassExpression(d))[0] - ), - modifierFlags - ); - } - function getSomeTargetNameFromDeclarations(declarations) { - return firstDefined(declarations, (d) => { - if (isImportSpecifier(d) || isExportSpecifier(d)) { - return moduleExportNameTextUnescaped(d.propertyName || d.name); - } - if (isBinaryExpression(d) || isExportAssignment(d)) { - const expression = isExportAssignment(d) ? d.expression : d.right; - if (isPropertyAccessExpression(expression)) { - return idText(expression.name); - } - } - if (isAliasSymbolDeclaration(d)) { - const name = getNameOfDeclaration(d); - if (name && isIdentifier(name)) { - return idText(name); - } - } - return void 0; - }); - } - function serializeAsAlias(symbol, localName, modifierFlags) { - var _a2, _b, _c, _d, _e; - const node = getDeclarationOfAliasSymbol(symbol); - if (!node) return Debug.fail(); - const target = getMergedSymbol(getTargetOfAliasDeclaration( - node, - /*dontRecursivelyResolve*/ - true - )); - if (!target) { - return; - } - let verbatimTargetName = isShorthandAmbientModuleSymbol(target) && getSomeTargetNameFromDeclarations(symbol.declarations) || unescapeLeadingUnderscores(target.escapedName); - if (verbatimTargetName === "export=" /* ExportEquals */ && allowSyntheticDefaultImports) { - verbatimTargetName = "default" /* Default */; - } - const targetName = getInternalSymbolName(target, verbatimTargetName); - includePrivateSymbol(target); - switch (node.kind) { - case 208 /* BindingElement */: - if (((_b = (_a2 = node.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { - const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); - const { propertyName } = node; - addResult( - factory.createImportDeclaration( - /*modifiers*/ - void 0, - factory.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - factory.createNamedImports([factory.createImportSpecifier( - /*isTypeOnly*/ - false, - propertyName && isIdentifier(propertyName) ? factory.createIdentifier(idText(propertyName)) : void 0, - factory.createIdentifier(localName) - )]) - ), - factory.createStringLiteral(specifier2), - /*attributes*/ - void 0 - ), - 0 /* None */ - ); - break; - } - Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); - break; - case 304 /* ShorthandPropertyAssignment */: - if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { - serializeExportSpecifier( - unescapeLeadingUnderscores(symbol.escapedName), - targetName - ); - } - break; - case 260 /* VariableDeclaration */: - if (isPropertyAccessExpression(node.initializer)) { - const initializer = node.initializer; - const uniqueName = factory.createUniqueName(localName); - const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); - addResult( - factory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - uniqueName, - factory.createExternalModuleReference(factory.createStringLiteral(specifier2)) - ), - 0 /* None */ - ); - addResult( - factory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createIdentifier(localName), - factory.createQualifiedName(uniqueName, initializer.name) - ), - modifierFlags - ); - break; - } - // else fall through and treat commonjs require just like import= - case 271 /* ImportEqualsDeclaration */: - if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { - serializeMaybeAliasAssignment(symbol); - break; - } - const isLocalImport = !(target.flags & 512 /* ValueModule */) && !isVariableDeclaration(node); - addResult( - factory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createIdentifier(localName), - isLocalImport ? symbolToName( - target, - context, - -1 /* All */, - /*expectsIdentifier*/ - false - ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) - ), - isLocalImport ? modifierFlags : 0 /* None */ - ); - break; - case 270 /* NamespaceExportDeclaration */: - addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); - break; - case 273 /* ImportClause */: { - const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); - const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; - const attributes = isImportDeclaration(node.parent) ? node.parent.attributes : void 0; - const isTypeOnly = isJSDocImportTag(node.parent); - addResult( - factory.createImportDeclaration( - /*modifiers*/ - void 0, - factory.createImportClause( - isTypeOnly, - factory.createIdentifier(localName), - /*namedBindings*/ - void 0 - ), - specifier2, - attributes - ), - 0 /* None */ - ); - break; - } - case 274 /* NamespaceImport */: { - const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); - const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; - const isTypeOnly = isJSDocImportTag(node.parent.parent); - addResult( - factory.createImportDeclaration( - /*modifiers*/ - void 0, - factory.createImportClause( - isTypeOnly, - /*name*/ - void 0, - factory.createNamespaceImport(factory.createIdentifier(localName)) - ), - specifier2, - node.parent.attributes - ), - 0 /* None */ - ); - break; - } - case 280 /* NamespaceExport */: - addResult( - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamespaceExport(factory.createIdentifier(localName)), - factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) - ), - 0 /* None */ - ); - break; - case 276 /* ImportSpecifier */: { - const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); - const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; - const isTypeOnly = isJSDocImportTag(node.parent.parent.parent); - addResult( - factory.createImportDeclaration( - /*modifiers*/ - void 0, - factory.createImportClause( - isTypeOnly, - /*name*/ - void 0, - factory.createNamedImports([ - factory.createImportSpecifier( - /*isTypeOnly*/ - false, - localName !== verbatimTargetName ? factory.createIdentifier(verbatimTargetName) : void 0, - factory.createIdentifier(localName) - ) - ]) - ), - specifier2, - node.parent.parent.parent.attributes - ), - 0 /* None */ - ); - break; - } - case 281 /* ExportSpecifier */: - const specifier = node.parent.parent.moduleSpecifier; - if (specifier) { - const propertyName = node.propertyName; - if (propertyName && moduleExportNameIsDefault(propertyName)) { - verbatimTargetName = "default" /* Default */; - } - } - serializeExportSpecifier( - unescapeLeadingUnderscores(symbol.escapedName), - specifier ? verbatimTargetName : targetName, - specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 - ); - break; - case 277 /* ExportAssignment */: - serializeMaybeAliasAssignment(symbol); - break; - case 226 /* BinaryExpression */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { - serializeMaybeAliasAssignment(symbol); - } else { - serializeExportSpecifier(localName, targetName); - } - break; - default: - return Debug.failBadSyntaxKind(node, "Unhandled alias declaration kind in symbol serializer!"); - } - } - function serializeExportSpecifier(localName, targetName, specifier) { - addResult( - factory.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createNamedExports([factory.createExportSpecifier( - /*isTypeOnly*/ - false, - localName !== targetName ? targetName : void 0, - localName - )]), - specifier - ), - 0 /* None */ - ); - } - function serializeMaybeAliasAssignment(symbol) { - var _a2; - if (symbol.flags & 4194304 /* Prototype */) { - return false; - } - const name = unescapeLeadingUnderscores(symbol.escapedName); - const isExportEquals = name === "export=" /* ExportEquals */; - const isDefault = name === "default" /* Default */; - const isExportAssignmentCompatibleSymbolName = isExportEquals || isDefault; - const aliasDecl = symbol.declarations && getDeclarationOfAliasSymbol(symbol); - const target = aliasDecl && getTargetOfAliasDeclaration( - aliasDecl, - /*dontRecursivelyResolve*/ - true - ); - if (target && length(target.declarations) && some(target.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(enclosingDeclaration))) { - const expr = aliasDecl && (isExportAssignment(aliasDecl) || isBinaryExpression(aliasDecl) ? getExportAssignmentExpression(aliasDecl) : getPropertyAssignmentAliasLikeExpression(aliasDecl)); - const first2 = expr && isEntityNameExpression(expr) ? getFirstNonModuleExportsIdentifier(expr) : void 0; - const referenced = first2 && resolveEntityName( - first2, - -1 /* All */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - enclosingDeclaration - ); - if (referenced || target) { - includePrivateSymbol(referenced || target); - } - const prevDisableTrackSymbol = context.tracker.disableTrackSymbol; - context.tracker.disableTrackSymbol = true; - if (isExportAssignmentCompatibleSymbolName) { - results.push(factory.createExportAssignment( - /*modifiers*/ - void 0, - isExportEquals, - symbolToExpression(target, context, -1 /* All */) - )); - } else { - if (first2 === expr && first2) { - serializeExportSpecifier(name, idText(first2)); - } else if (expr && isClassExpression(expr)) { - serializeExportSpecifier(name, getInternalSymbolName(target, symbolName(target))); - } else { - const varName = getUnusedName(name, symbol); - addResult( - factory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory.createIdentifier(varName), - symbolToName( - target, - context, - -1 /* All */, - /*expectsIdentifier*/ - false - ) - ), - 0 /* None */ - ); - serializeExportSpecifier(name, varName); - } - } - context.tracker.disableTrackSymbol = prevDisableTrackSymbol; - return true; - } else { - const varName = getUnusedName(name, symbol); - const typeToSerialize = getWidenedType(getTypeOfSymbol(getMergedSymbol(symbol))); - if (isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, symbol)) { - serializeAsFunctionNamespaceMerge(typeToSerialize, symbol, varName, isExportAssignmentCompatibleSymbolName ? 0 /* None */ : 32 /* Export */); - } else { - const flags = ((_a2 = context.enclosingDeclaration) == null ? void 0 : _a2.kind) === 267 /* ModuleDeclaration */ && (!(symbol.flags & 98304 /* Accessor */) || symbol.flags & 65536 /* SetAccessor */) ? 1 /* Let */ : 2 /* Const */; - const statement = factory.createVariableStatement( - /*modifiers*/ - void 0, - factory.createVariableDeclarationList([ - factory.createVariableDeclaration( - varName, - /*exclamationToken*/ - void 0, - serializeTypeForDeclaration( - context, - /*declaration*/ - void 0, - typeToSerialize, - symbol - ) - ) - ], flags) - ); - addResult( - statement, - target && target.flags & 4 /* Property */ && target.escapedName === "export=" /* ExportEquals */ ? 128 /* Ambient */ : name === varName ? 32 /* Export */ : 0 /* None */ - ); - } - if (isExportAssignmentCompatibleSymbolName) { - results.push(factory.createExportAssignment( - /*modifiers*/ - void 0, - isExportEquals, - factory.createIdentifier(varName) - )); - return true; - } else if (name !== varName) { - serializeExportSpecifier(name, varName); - return true; - } - return false; - } - } - function isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, hostSymbol) { - var _a2; - const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration); - return getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) && !some((_a2 = typeToSerialize.symbol) == null ? void 0 : _a2.declarations, isTypeNode) && // If the type comes straight from a type node, we shouldn't try to break it up - !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class - !!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) && !length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK - !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => { - if (!isIdentifierText(symbolName(p), languageVersion)) { - return false; - } - if (!(p.flags & 98304 /* Accessor */)) { - return true; - } - return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p); - }); - } - function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) { - return function serializePropertySymbol(p, isStatic2, baseType) { - var _a2, _b, _c, _d, _e, _f; - const modifierFlags = getDeclarationModifierFlagsFromSymbol(p); - const isPrivate = !!(modifierFlags & 2 /* Private */); - if (isStatic2 && p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) { - return []; - } - if (p.flags & 4194304 /* Prototype */ || p.escapedName === "constructor" || baseType && getPropertyOfType(baseType, p.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p) && (p.flags & 16777216 /* Optional */) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216 /* Optional */) && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName))) { - return []; - } - const flag = modifierFlags & ~1024 /* Async */ | (isStatic2 ? 256 /* Static */ : 0); - const name = getPropertyNameNodeForSymbol(p, context); - const firstPropertyLikeDecl = (_a2 = p.declarations) == null ? void 0 : _a2.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression)); - if (p.flags & 98304 /* Accessor */ && useAccessors) { - const result = []; - if (p.flags & 65536 /* SetAccessor */) { - const setter = p.declarations && forEach(p.declarations, (d) => { - if (d.kind === 178 /* SetAccessor */) { - return d; - } - if (isCallExpression(d) && isBindableObjectDefinePropertyCall(d)) { - return forEach(d.arguments[2].properties, (propDecl) => { - const id = getNameOfDeclaration(propDecl); - if (!!id && isIdentifier(id) && idText(id) === "set") { - return propDecl; - } - }); - } - }); - Debug.assert(!!setter); - const paramSymbol = isFunctionLikeDeclaration(setter) ? getSignatureFromDeclaration(setter).parameters[0] : void 0; - const setterDeclaration = (_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor); - result.push(setTextRange2( - context, - factory.createSetAccessorDeclaration( - factory.createModifiersFromModifierFlags(flag), - name, - [factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - paramSymbol ? parameterToParameterDeclarationName(paramSymbol, getEffectiveParameterDeclaration(paramSymbol), context) : "value", - /*questionToken*/ - void 0, - isPrivate ? void 0 : serializeTypeForDeclaration(context, setterDeclaration, getWriteTypeOfSymbol(p), p) - )], - /*body*/ - void 0 - ), - setterDeclaration ?? firstPropertyLikeDecl - )); - } - if (p.flags & 32768 /* GetAccessor */) { - const isPrivate2 = modifierFlags & 2 /* Private */; - const getterDeclaration = (_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor); - result.push(setTextRange2( - context, - factory.createGetAccessorDeclaration( - factory.createModifiersFromModifierFlags(flag), - name, - [], - isPrivate2 ? void 0 : serializeTypeForDeclaration(context, getterDeclaration, getTypeOfSymbol(p), p), - /*body*/ - void 0 - ), - getterDeclaration ?? firstPropertyLikeDecl - )); - } - return result; - } else if (p.flags & (4 /* Property */ | 3 /* Variable */ | 98304 /* Accessor */)) { - return setTextRange2( - context, - createProperty2( - factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 8 /* Readonly */ : 0) | flag), - name, - p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, - isPrivate ? void 0 : serializeTypeForDeclaration(context, (_d = p.declarations) == null ? void 0 : _d.find(isSetAccessorDeclaration), getWriteTypeOfSymbol(p), p), - // TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357 - // interface members can't have initializers, however class members _can_ - /*initializer*/ - void 0 - ), - ((_e = p.declarations) == null ? void 0 : _e.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl - ); - } - if (p.flags & (8192 /* Method */ | 16 /* Function */)) { - const type = getTypeOfSymbol(p); - const signatures = getSignaturesOfType(type, 0 /* Call */); - if (flag & 2 /* Private */) { - return setTextRange2( - context, - createProperty2( - factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 8 /* Readonly */ : 0) | flag), - name, - p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ), - ((_f = p.declarations) == null ? void 0 : _f.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0] - ); - } - const results2 = []; - for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper( - sig, - methodKind, - context, - { - name, - questionToken: p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, - modifiers: flag ? factory.createModifiersFromModifierFlags(flag) : void 0 - } - ); - const location = sig.declaration && isPrototypePropertyAssignment(sig.declaration.parent) ? sig.declaration.parent : sig.declaration; - results2.push(setTextRange2(context, decl, location)); - } - return results2; - } - return Debug.fail(`Unhandled class member kind! ${p.__debugFlags || p.flags}`); - }; - } - function serializePropertySymbolForInterface(p, baseType) { - return serializePropertySymbolForInterfaceWorker( - p, - /*isStatic*/ - false, - baseType - ); - } - function serializeSignatures(kind, input, baseType, outputKind) { - const signatures = getSignaturesOfType(input, kind); - if (kind === 1 /* Construct */) { - if (!baseType && every(signatures, (s) => length(s.parameters) === 0)) { - return []; - } - if (baseType) { - const baseSigs = getSignaturesOfType(baseType, 1 /* Construct */); - if (!length(baseSigs) && every(signatures, (s) => length(s.parameters) === 0)) { - return []; - } - if (baseSigs.length === signatures.length) { - let failed2 = false; - for (let i = 0; i < baseSigs.length; i++) { - if (!compareSignaturesIdentical( - signatures[i], - baseSigs[i], - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - true, - compareTypesIdentical - )) { - failed2 = true; - break; - } - } - if (!failed2) { - return []; - } - } - } - let privateProtected = 0; - for (const s of signatures) { - if (s.declaration) { - privateProtected |= getSelectedEffectiveModifierFlags(s.declaration, 2 /* Private */ | 4 /* Protected */); - } - } - if (privateProtected) { - return [setTextRange2( - context, - factory.createConstructorDeclaration( - factory.createModifiersFromModifierFlags(privateProtected), - /*parameters*/ - [], - /*body*/ - void 0 - ), - signatures[0].declaration - )]; - } - } - const results2 = []; - for (const sig of signatures) { - const decl = signatureToSignatureDeclarationHelper(sig, outputKind, context); - results2.push(setTextRange2(context, decl, sig.declaration)); - } - return results2; - } - function serializeIndexSignatures(input, baseType) { - const results2 = []; - for (const info of getIndexInfosOfType(input)) { - if (baseType) { - const baseInfo = getIndexInfoOfType(baseType, info.keyType); - if (baseInfo) { - if (isTypeIdenticalTo(info.type, baseInfo.type)) { - continue; - } - } - } - results2.push(indexInfoToIndexSignatureDeclarationHelper( - info, - context, - /*typeNode*/ - void 0 - )); - } - return results2; - } - function serializeBaseType(t, staticType, rootName) { - const ref = trySerializeAsTypeReference(t, 111551 /* Value */); - if (ref) { - return ref; - } - const tempName = getUnusedName(`${rootName}_base`); - const statement = factory.createVariableStatement( - /*modifiers*/ - void 0, - factory.createVariableDeclarationList([ - factory.createVariableDeclaration( - tempName, - /*exclamationToken*/ - void 0, - typeToTypeNodeHelper(staticType, context) - ) - ], 2 /* Const */) - ); - addResult(statement, 0 /* None */); - return factory.createExpressionWithTypeArguments( - factory.createIdentifier(tempName), - /*typeArguments*/ - void 0 - ); - } - function trySerializeAsTypeReference(t, flags) { - let typeArgs; - let reference; - if (t.target && isSymbolAccessibleByFlags(t.target.symbol, enclosingDeclaration, flags)) { - typeArgs = map(getTypeArguments(t), (t2) => typeToTypeNodeHelper(t2, context)); - reference = symbolToExpression(t.target.symbol, context, 788968 /* Type */); - } else if (t.symbol && isSymbolAccessibleByFlags(t.symbol, enclosingDeclaration, flags)) { - reference = symbolToExpression(t.symbol, context, 788968 /* Type */); - } - if (reference) { - return factory.createExpressionWithTypeArguments(reference, typeArgs); - } - } - function serializeImplementedType(t) { - const ref = trySerializeAsTypeReference(t, 788968 /* Type */); - if (ref) { - return ref; - } - if (t.symbol) { - return factory.createExpressionWithTypeArguments( - symbolToExpression(t.symbol, context, 788968 /* Type */), - /*typeArguments*/ - void 0 - ); - } - } - function getUnusedName(input, symbol) { - var _a2, _b; - const id = symbol ? getSymbolId(symbol) : void 0; - if (id) { - if (context.remappedSymbolNames.has(id)) { - return context.remappedSymbolNames.get(id); - } - } - if (symbol) { - input = getNameCandidateWorker(symbol, input); - } - let i = 0; - const original = input; - while ((_a2 = context.usedSymbolNames) == null ? void 0 : _a2.has(input)) { - i++; - input = `${original}_${i}`; - } - (_b = context.usedSymbolNames) == null ? void 0 : _b.add(input); - if (id) { - context.remappedSymbolNames.set(id, input); - } - return input; - } - function getNameCandidateWorker(symbol, localName) { - if (localName === "default" /* Default */ || localName === "__class" /* Class */ || localName === "__function" /* Function */) { - const restoreFlags = saveRestoreFlags(context); - context.flags |= 16777216 /* InInitialEntityName */; - const nameCandidate = getNameOfSymbolAsWritten(symbol, context); - restoreFlags(); - localName = nameCandidate.length > 0 && isSingleOrDoubleQuote(nameCandidate.charCodeAt(0)) ? stripQuotes(nameCandidate) : nameCandidate; - } - if (localName === "default" /* Default */) { - localName = "_default"; - } else if (localName === "export=" /* ExportEquals */) { - localName = "_exports"; - } - localName = isIdentifierText(localName, languageVersion) && !isStringANonContextualKeyword(localName) ? localName : "_" + localName.replace(/[^a-z0-9]/gi, "_"); - return localName; - } - function getInternalSymbolName(symbol, localName) { - const id = getSymbolId(symbol); - if (context.remappedSymbolNames.has(id)) { - return context.remappedSymbolNames.get(id); - } - localName = getNameCandidateWorker(symbol, localName); - context.remappedSymbolNames.set(id, localName); - return localName; - } - } - } - function typePredicateToString(typePredicate, enclosingDeclaration, flags = 16384 /* UseAliasDefinedOutsideCurrentScope */, writer) { - return writer ? typePredicateToStringWorker(writer).getText() : usingSingleLineStringWriter(typePredicateToStringWorker); - function typePredicateToStringWorker(writer2) { - const nodeBuilderFlags = toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */; - const predicate = nodeBuilder.typePredicateToTypePredicateNode(typePredicate, enclosingDeclaration, nodeBuilderFlags); - const printer = createPrinterWithRemoveComments(); - const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); - printer.writeNode( - 4 /* Unspecified */, - predicate, - /*sourceFile*/ - sourceFile, - writer2 - ); - return writer2; - } - } - function formatUnionTypes(types) { - const result = []; - let flags = 0; - for (let i = 0; i < types.length; i++) { - const t = types[i]; - flags |= t.flags; - if (!(t.flags & 98304 /* Nullable */)) { - if (t.flags & (512 /* BooleanLiteral */ | 1056 /* EnumLike */)) { - const baseType = t.flags & 512 /* BooleanLiteral */ ? booleanType : getBaseTypeOfEnumLikeType(t); - if (baseType.flags & 1048576 /* Union */) { - const count = baseType.types.length; - if (i + count <= types.length && getRegularTypeOfLiteralType(types[i + count - 1]) === getRegularTypeOfLiteralType(baseType.types[count - 1])) { - result.push(baseType); - i += count - 1; - continue; - } - } - } - result.push(t); - } - } - if (flags & 65536 /* Null */) result.push(nullType); - if (flags & 32768 /* Undefined */) result.push(undefinedType); - return result || types; - } - function visibilityToString(flags) { - if (flags === 2 /* Private */) { - return "private"; - } - if (flags === 4 /* Protected */) { - return "protected"; - } - return "public"; - } - function getTypeAliasForTypeLiteral(type) { - if (type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && type.symbol.declarations) { - const node = walkUpParenthesizedTypes(type.symbol.declarations[0].parent); - if (isTypeAliasDeclaration(node)) { - return getSymbolOfDeclaration(node); - } - } - return void 0; - } - function isTopLevelInExternalModuleAugmentation(node) { - return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); - } - function isDefaultBindingContext(location) { - return location.kind === 307 /* SourceFile */ || isAmbientModule(location); - } - function getNameOfSymbolFromNameType(symbol, context) { - const nameType = getSymbolLinks(symbol).nameType; - if (nameType) { - if (nameType.flags & 384 /* StringOrNumberLiteral */) { - const name = "" + nameType.value; - if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && !isNumericLiteralName(name)) { - return `"${escapeString(name, 34 /* doubleQuote */)}"`; - } - if (isNumericLiteralName(name) && startsWith(name, "-")) { - return `[${name}]`; - } - return name; - } - if (nameType.flags & 8192 /* UniqueESSymbol */) { - return `[${getNameOfSymbolAsWritten(nameType.symbol, context)}]`; - } - } - } - function getNameOfSymbolAsWritten(symbol, context) { - var _a; - if ((_a = context == null ? void 0 : context.remappedSymbolReferences) == null ? void 0 : _a.has(getSymbolId(symbol))) { - symbol = context.remappedSymbolReferences.get(getSymbolId(symbol)); - } - if (context && symbol.escapedName === "default" /* Default */ && !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */) && // If it's not the first part of an entity name, it must print as `default` - (!(context.flags & 16777216 /* InInitialEntityName */) || // if the symbol is synthesized, it will only be referenced externally it must print as `default` - !symbol.declarations || // if not in the same binding context (source file, module declaration), it must print as `default` - context.enclosingDeclaration && findAncestor(symbol.declarations[0], isDefaultBindingContext) !== findAncestor(context.enclosingDeclaration, isDefaultBindingContext))) { - return "default"; - } - if (symbol.declarations && symbol.declarations.length) { - let declaration = firstDefined(symbol.declarations, (d) => getNameOfDeclaration(d) ? d : void 0); - const name2 = declaration && getNameOfDeclaration(declaration); - if (declaration && name2) { - if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) { - return symbolName(symbol); - } - if (isComputedPropertyName(name2) && !(getCheckFlags(symbol) & 4096 /* Late */)) { - const nameType = getSymbolLinks(symbol).nameType; - if (nameType && nameType.flags & 384 /* StringOrNumberLiteral */) { - const result = getNameOfSymbolFromNameType(symbol, context); - if (result !== void 0) { - return result; - } - } - } - return declarationNameToString(name2); - } - if (!declaration) { - declaration = symbol.declarations[0]; - } - if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { - return declarationNameToString(declaration.parent.name); - } - switch (declaration.kind) { - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { - context.encounteredError = true; - } - return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; - } - } - const name = getNameOfSymbolFromNameType(symbol, context); - return name !== void 0 ? name : symbolName(symbol); - } - function isDeclarationVisible(node) { - if (node) { - const links = getNodeLinks(node); - if (links.isVisible === void 0) { - links.isVisible = !!determineIfDeclarationIsVisible(); - } - return links.isVisible; - } - return false; - function determineIfDeclarationIsVisible() { - switch (node.kind) { - case 338 /* JSDocCallbackTag */: - case 346 /* JSDocTypedefTag */: - case 340 /* JSDocEnumTag */: - return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); - case 208 /* BindingElement */: - return isDeclarationVisible(node.parent.parent); - case 260 /* VariableDeclaration */: - if (isBindingPattern(node.name) && !node.name.elements.length) { - return false; - } - // falls through - case 267 /* ModuleDeclaration */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 262 /* FunctionDeclaration */: - case 266 /* EnumDeclaration */: - case 271 /* ImportEqualsDeclaration */: - if (isExternalModuleAugmentation(node)) { - return true; - } - const parent = getDeclarationContainer(node); - if (!(getCombinedModifierFlagsCached(node) & 32 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent.kind !== 307 /* SourceFile */ && parent.flags & 33554432 /* Ambient */)) { - return isGlobalSourceFile(parent); - } - return isDeclarationVisible(parent); - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - if (hasEffectiveModifier(node, 2 /* Private */ | 4 /* Protected */)) { - return false; - } - // Public properties/methods are visible if its parents are visible, so: - // falls through - case 176 /* Constructor */: - case 180 /* ConstructSignature */: - case 179 /* CallSignature */: - case 181 /* IndexSignature */: - case 169 /* Parameter */: - case 268 /* ModuleBlock */: - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 187 /* TypeLiteral */: - case 183 /* TypeReference */: - case 188 /* ArrayType */: - case 189 /* TupleType */: - case 192 /* UnionType */: - case 193 /* IntersectionType */: - case 196 /* ParenthesizedType */: - case 202 /* NamedTupleMember */: - return isDeclarationVisible(node.parent); - // Default binding, import specifier and namespace import is visible - // only on demand so by default it is not visible - case 273 /* ImportClause */: - case 274 /* NamespaceImport */: - case 276 /* ImportSpecifier */: - return false; - // Type parameters are always visible - case 168 /* TypeParameter */: - // Source file and namespace export are always visible - // falls through - case 307 /* SourceFile */: - case 270 /* NamespaceExportDeclaration */: - return true; - // Export assignments do not create name bindings outside the module - case 277 /* ExportAssignment */: - return false; - default: - return false; - } - } - } - function collectLinkedAliases(node, setVisibility) { - let exportSymbol; - if (node.kind !== 11 /* StringLiteral */ && node.parent && node.parent.kind === 277 /* ExportAssignment */) { - exportSymbol = resolveName( - node, - node, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - } else if (node.parent.kind === 281 /* ExportSpecifier */) { - exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); - } - let result; - let visited; - if (exportSymbol) { - visited = /* @__PURE__ */ new Set(); - visited.add(getSymbolId(exportSymbol)); - buildVisibleNodeList(exportSymbol.declarations); - } - return result; - function buildVisibleNodeList(declarations) { - forEach(declarations, (declaration) => { - const resultNode = getAnyImportSyntax(declaration) || declaration; - if (setVisibility) { - getNodeLinks(declaration).isVisible = true; - } else { - result = result || []; - pushIfUnique(result, resultNode); - } - if (isInternalModuleImportEqualsDeclaration(declaration)) { - const internalModuleReference = declaration.moduleReference; - const firstIdentifier = getFirstIdentifier(internalModuleReference); - const importSymbol = resolveName( - declaration, - firstIdentifier.escapedText, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - if (importSymbol && visited) { - if (tryAddToSet(visited, getSymbolId(importSymbol))) { - buildVisibleNodeList(importSymbol.declarations); - } - } - } - }); - } - } - function pushTypeResolution(target, propertyName) { - const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName); - if (resolutionCycleStartIndex >= 0) { - const { length: length2 } = resolutionTargets; - for (let i = resolutionCycleStartIndex; i < length2; i++) { - resolutionResults[i] = false; - } - return false; - } - resolutionTargets.push(target); - resolutionResults.push( - /*items*/ - true - ); - resolutionPropertyNames.push(propertyName); - return true; - } - function findResolutionCycleStartIndex(target, propertyName) { - for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) { - if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) { - return -1; - } - if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) { - return i; - } - } - return -1; - } - function resolutionTargetHasProperty(target, propertyName) { - switch (propertyName) { - case 0 /* Type */: - return !!getSymbolLinks(target).type; - case 2 /* DeclaredType */: - return !!getSymbolLinks(target).declaredType; - case 1 /* ResolvedBaseConstructorType */: - return !!target.resolvedBaseConstructorType; - case 3 /* ResolvedReturnType */: - return !!target.resolvedReturnType; - case 4 /* ImmediateBaseConstraint */: - return !!target.immediateBaseConstraint; - case 5 /* ResolvedTypeArguments */: - return !!target.resolvedTypeArguments; - case 6 /* ResolvedBaseTypes */: - return !!target.baseTypesResolved; - case 7 /* WriteType */: - return !!getSymbolLinks(target).writeType; - case 8 /* ParameterInitializerContainsUndefined */: - return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0; - } - return Debug.assertNever(propertyName); - } - function popTypeResolution() { - resolutionTargets.pop(); - resolutionPropertyNames.pop(); - return resolutionResults.pop(); - } - function getDeclarationContainer(node) { - return findAncestor(getRootDeclaration(node), (node2) => { - switch (node2.kind) { - case 260 /* VariableDeclaration */: - case 261 /* VariableDeclarationList */: - case 276 /* ImportSpecifier */: - case 275 /* NamedImports */: - case 274 /* NamespaceImport */: - case 273 /* ImportClause */: - return false; - default: - return true; - } - }).parent; - } - function getTypeOfPrototypeProperty(prototype) { - const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype)); - return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType; - } - function getTypeOfPropertyOfType(type, name) { - const prop = getPropertyOfType(type, name); - return prop ? getTypeOfSymbol(prop) : void 0; - } - function getTypeOfPropertyOrIndexSignatureOfType(type, name) { - var _a; - let propType; - return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( - propType, - /*isProperty*/ - true, - /*isOptional*/ - true - ); - } - function isTypeAny(type) { - return type && (type.flags & 1 /* Any */) !== 0; - } - function isErrorType(type) { - return type === errorType || !!(type.flags & 1 /* Any */ && type.aliasSymbol); - } - function getTypeForBindingElementParent(node, checkMode) { - if (checkMode !== 0 /* Normal */) { - return getTypeForVariableLikeDeclaration( - node, - /*includeOptionality*/ - false, - checkMode - ); - } - const symbol = getSymbolOfDeclaration(node); - return symbol && getSymbolLinks(symbol).type || getTypeForVariableLikeDeclaration( - node, - /*includeOptionality*/ - false, - checkMode - ); - } - function getRestType(source, properties, symbol) { - source = filterType(source, (t) => !(t.flags & 98304 /* Nullable */)); - if (source.flags & 131072 /* Never */) { - return emptyObjectType; - } - if (source.flags & 1048576 /* Union */) { - return mapType(source, (t) => getRestType(t, properties, symbol)); - } - let omitKeyType = getUnionType(map(properties, getLiteralTypeFromPropertyName)); - const spreadableProperties = []; - const unspreadableToRestKeys = []; - for (const prop of getPropertiesOfType(source)) { - const literalTypeFromProperty = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */); - if (!isTypeAssignableTo(literalTypeFromProperty, omitKeyType) && !(getDeclarationModifierFlagsFromSymbol(prop) & (2 /* Private */ | 4 /* Protected */)) && isSpreadableProperty(prop)) { - spreadableProperties.push(prop); - } else { - unspreadableToRestKeys.push(literalTypeFromProperty); - } - } - if (isGenericObjectType(source) || isGenericIndexType(omitKeyType)) { - if (unspreadableToRestKeys.length) { - omitKeyType = getUnionType([omitKeyType, ...unspreadableToRestKeys]); - } - if (omitKeyType.flags & 131072 /* Never */) { - return source; - } - const omitTypeAlias = getGlobalOmitSymbol(); - if (!omitTypeAlias) { - return errorType; - } - return getTypeAliasInstantiation(omitTypeAlias, [source, omitKeyType]); - } - const members = createSymbolTable(); - for (const prop of spreadableProperties) { - members.set(prop.escapedName, getSpreadSymbol( - prop, - /*readonly*/ - false - )); - } - const result = createAnonymousType(symbol, members, emptyArray, emptyArray, getIndexInfosOfType(source)); - result.objectFlags |= 4194304 /* ObjectRestType */; - return result; - } - function isGenericTypeWithUndefinedConstraint(type) { - return !!(type.flags & 465829888 /* Instantiable */) && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 32768 /* Undefined */); - } - function getNonUndefinedType(type) { - const typeOrConstraint = someType(type, isGenericTypeWithUndefinedConstraint) ? mapType(type, (t) => t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOrType(t) : t) : type; - return getTypeWithFacts(typeOrConstraint, 524288 /* NEUndefined */); - } - function getFlowTypeOfDestructuring(node, declaredType) { - const reference = getSyntheticElementAccess(node); - return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType; - } - function getSyntheticElementAccess(node) { - const parentAccess = getParentElementAccess(node); - if (parentAccess && canHaveFlowNode(parentAccess) && parentAccess.flowNode) { - const propName = getDestructuringPropertyName(node); - if (propName) { - const literal = setTextRange(parseNodeFactory.createStringLiteral(propName), node); - const lhsExpr = isLeftHandSideExpression(parentAccess) ? parentAccess : parseNodeFactory.createParenthesizedExpression(parentAccess); - const result = setTextRange(parseNodeFactory.createElementAccessExpression(lhsExpr, literal), node); - setParent(literal, result); - setParent(result, node); - if (lhsExpr !== parentAccess) { - setParent(lhsExpr, result); - } - result.flowNode = parentAccess.flowNode; - return result; - } - } - } - function getParentElementAccess(node) { - const ancestor = node.parent.parent; - switch (ancestor.kind) { - case 208 /* BindingElement */: - case 303 /* PropertyAssignment */: - return getSyntheticElementAccess(ancestor); - case 209 /* ArrayLiteralExpression */: - return getSyntheticElementAccess(node.parent); - case 260 /* VariableDeclaration */: - return ancestor.initializer; - case 226 /* BinaryExpression */: - return ancestor.right; - } - } - function getDestructuringPropertyName(node) { - const parent = node.parent; - if (node.kind === 208 /* BindingElement */ && parent.kind === 206 /* ObjectBindingPattern */) { - return getLiteralPropertyNameText(node.propertyName || node.name); - } - if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { - return getLiteralPropertyNameText(node.name); - } - return "" + parent.elements.indexOf(node); - } - function getLiteralPropertyNameText(name) { - const type = getLiteralTypeFromPropertyName(name); - return type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */) ? "" + type.value : void 0; - } - function getTypeForBindingElement(declaration) { - const checkMode = declaration.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */; - const parentType = getTypeForBindingElementParent(declaration.parent.parent, checkMode); - return parentType && getBindingElementTypeFromParentType( - declaration, - parentType, - /*noTupleBoundsCheck*/ - false - ); - } - function getBindingElementTypeFromParentType(declaration, parentType, noTupleBoundsCheck) { - if (isTypeAny(parentType)) { - return parentType; - } - const pattern = declaration.parent; - if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isPartOfParameterDeclaration(declaration)) { - parentType = getNonNullableType(parentType); - } else if (strictNullChecks && pattern.parent.initializer && !hasTypeFacts(getTypeOfInitializer(pattern.parent.initializer), 65536 /* EQUndefined */)) { - parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); - } - const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* AllowMissing */ : 0); - let type; - if (pattern.kind === 206 /* ObjectBindingPattern */) { - if (declaration.dotDotDotToken) { - parentType = getReducedType(parentType); - if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { - error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); - return errorType; - } - const literalMembers = []; - for (const element of pattern.elements) { - if (!element.dotDotDotToken) { - literalMembers.push(element.propertyName || element.name); - } - } - type = getRestType(parentType, literalMembers, declaration.symbol); - } else { - const name = declaration.propertyName || declaration.name; - const indexType = getLiteralTypeFromPropertyName(name); - const declaredType = getIndexedAccessType(parentType, indexType, accessFlags, name); - type = getFlowTypeOfDestructuring(declaration, declaredType); - } - } else { - const elementType = checkIteratedTypeOrElementType(65 /* Destructuring */ | (declaration.dotDotDotToken ? 0 : 128 /* PossiblyOutOfBounds */), parentType, undefinedType, pattern); - const index = pattern.elements.indexOf(declaration); - if (declaration.dotDotDotToken) { - const baseConstraint = mapType(parentType, (t) => t.flags & 58982400 /* InstantiableNonPrimitive */ ? getBaseConstraintOrType(t) : t); - type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType); - } else if (isArrayLikeType(parentType)) { - const indexType = getNumberLiteralType(index); - const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType; - type = getFlowTypeOfDestructuring(declaration, declaredType); - } else { - type = elementType; - } - } - if (!declaration.initializer) { - return type; - } - if (getEffectiveTypeAnnotationNode(walkUpBindingElementsAndPatterns(declaration))) { - return strictNullChecks && !hasTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */), 16777216 /* IsUndefined */) ? getNonUndefinedType(type) : type; - } - return widenTypeInferredFromInitializer(declaration, getUnionType([getNonUndefinedType(type), checkDeclarationInitializer(declaration, 0 /* Normal */)], 2 /* Subtype */)); - } - function getTypeForDeclarationFromJSDocComment(declaration) { - const jsdocType = getJSDocType(declaration); - if (jsdocType) { - return getTypeFromTypeNode(jsdocType); - } - return void 0; - } - function isNullOrUndefined2(node) { - const expr = skipParentheses( - node, - /*excludeJSDocTypeAssertions*/ - true - ); - return expr.kind === 106 /* NullKeyword */ || expr.kind === 80 /* Identifier */ && getResolvedSymbol(expr) === undefinedSymbol; - } - function isEmptyArrayLiteral2(node) { - const expr = skipParentheses( - node, - /*excludeJSDocTypeAssertions*/ - true - ); - return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; - } - function addOptionality(type, isProperty = false, isOptional = true) { - return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; - } - function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { - const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( - declaration.parent.parent.expression, - /*checkMode*/ - checkMode - ))); - return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; - } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { - const forOfStatement = declaration.parent.parent; - return checkRightHandSideOfForOf(forOfStatement) || anyType; - } - if (isBindingPattern(declaration.parent)) { - return getTypeForBindingElement(declaration); - } - const isProperty = isPropertyDeclaration(declaration) && !hasAccessorModifier(declaration) || isPropertySignature(declaration) || isJSDocPropertyTag(declaration); - const isOptional = includeOptionality && isOptionalDeclaration(declaration); - const declaredType = tryGetTypeFromEffectiveTypeNode(declaration); - if (isCatchClauseVariableDeclarationOrBindingElement(declaration)) { - if (declaredType) { - return isTypeAny(declaredType) || declaredType === unknownType ? declaredType : errorType; - } - return useUnknownInCatchVariables ? unknownType : anyType; - } - if (declaredType) { - return addOptionality(declaredType, isProperty, isOptional); - } - if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 32 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { - if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined2(declaration.initializer))) { - return autoType; - } - if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { - return autoArrayType; - } - } - if (isParameter(declaration)) { - if (!declaration.symbol) { - return; - } - const func = declaration.parent; - if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { - const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); - if (getter) { - const getterSignature = getSignatureFromDeclaration(getter); - const thisParameter = getAccessorThisParameter(func); - if (thisParameter && declaration === thisParameter) { - Debug.assert(!thisParameter.type); - return getTypeOfSymbol(getterSignature.thisParameter); - } - return getReturnTypeOfSignature(getterSignature); - } - } - const parameterTypeOfTypeTag = getParameterTypeOfTypeTag(func, declaration); - if (parameterTypeOfTypeTag) return parameterTypeOfTypeTag; - const type = declaration.symbol.escapedName === "this" /* This */ ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration); - if (type) { - return addOptionality( - type, - /*isProperty*/ - false, - isOptional - ); - } - } - if (hasOnlyExpressionInitializer(declaration) && !!declaration.initializer) { - if (isInJSFile(declaration) && !isParameter(declaration)) { - const containerObjectType = getJSContainerObjectType(declaration, getSymbolOfDeclaration(declaration), getDeclaredExpandoInitializer(declaration)); - if (containerObjectType) { - return containerObjectType; - } - } - const type = widenTypeInferredFromInitializer(declaration, checkDeclarationInitializer(declaration, checkMode)); - return addOptionality(type, isProperty, isOptional); - } - if (isPropertyDeclaration(declaration) && (noImplicitAny || isInJSFile(declaration))) { - if (!hasStaticModifier(declaration)) { - const constructor = findConstructorDeclaration(declaration.parent); - const type = constructor ? getFlowTypeInConstructor(declaration.symbol, constructor) : getEffectiveModifierFlags(declaration) & 128 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0; - return type && addOptionality( - type, - /*isProperty*/ - true, - isOptional - ); - } else { - const staticBlocks = filter(declaration.parent.members, isClassStaticBlockDeclaration); - const type = staticBlocks.length ? getFlowTypeInStaticBlocks(declaration.symbol, staticBlocks) : getEffectiveModifierFlags(declaration) & 128 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0; - return type && addOptionality( - type, - /*isProperty*/ - true, - isOptional - ); - } - } - if (isJsxAttribute(declaration)) { - return trueType; - } - if (isBindingPattern(declaration.name)) { - return getTypeFromBindingPattern( - declaration.name, - /*includePatternInType*/ - false, - /*reportErrors*/ - true - ); - } - return void 0; - } - function isConstructorDeclaredProperty(symbol) { - if (symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration)) { - const links = getSymbolLinks(symbol); - if (links.isConstructorDeclaredProperty === void 0) { - links.isConstructorDeclaredProperty = false; - links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( - /*declaredType*/ - void 0, - declaration, - symbol, - declaration - )); - } - return links.isConstructorDeclaredProperty; - } - return false; - } - function isAutoTypedProperty(symbol) { - const declaration = symbol.valueDeclaration; - return declaration && isPropertyDeclaration(declaration) && !getEffectiveTypeAnnotationNode(declaration) && !declaration.initializer && (noImplicitAny || isInJSFile(declaration)); - } - function getDeclaringConstructor(symbol) { - if (!symbol.declarations) { - return; - } - for (const declaration of symbol.declarations) { - const container = getThisContainer( - declaration, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { - return container; - } - } - } - function getFlowTypeFromCommonJSExport(symbol) { - const file = getSourceFileOfNode(symbol.declarations[0]); - const accessName = unescapeLeadingUnderscores(symbol.escapedName); - const areAllModuleExports = symbol.declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && isModuleExportsAccessExpression(d.expression)); - const reference = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName); - if (areAllModuleExports) { - setParent(reference.expression.expression, reference.expression); - } - setParent(reference.expression, reference); - setParent(reference, file); - reference.flowNode = file.endFlowNode; - return getFlowTypeOfReference(reference, autoType, undefinedType); - } - function getFlowTypeInStaticBlocks(symbol, staticBlocks) { - const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName); - for (const staticBlock of staticBlocks) { - const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName); - setParent(reference.expression, reference); - setParent(reference, staticBlock); - reference.flowNode = staticBlock.returnFlowNode; - const flowType = getFlowTypeOfProperty(reference, symbol); - if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); - } - if (everyType(flowType, isNullableType)) { - continue; - } - return convertAutoToAny(flowType); - } - } - function getFlowTypeInConstructor(symbol, constructor) { - const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName); - const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName); - setParent(reference.expression, reference); - setParent(reference, constructor); - reference.flowNode = constructor.returnFlowNode; - const flowType = getFlowTypeOfProperty(reference, symbol); - if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { - error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); - } - return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType); - } - function getFlowTypeOfProperty(reference, prop) { - const initialType = (prop == null ? void 0 : prop.valueDeclaration) && (!isAutoTypedProperty(prop) || getEffectiveModifierFlags(prop.valueDeclaration) & 128 /* Ambient */) && getTypeOfPropertyInBaseClass(prop) || undefinedType; - return getFlowTypeOfReference(reference, autoType, initialType); - } - function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) { - const container = getAssignedExpandoInitializer(symbol.valueDeclaration); - if (container) { - const tag = isInJSFile(container) ? getJSDocTypeTag(container) : void 0; - if (tag && tag.typeExpression) { - return getTypeFromTypeNode(tag.typeExpression); - } - const containerObjectType = symbol.valueDeclaration && getJSContainerObjectType(symbol.valueDeclaration, symbol, container); - return containerObjectType || getWidenedLiteralType(checkExpressionCached(container)); - } - let type; - let definedInConstructor = false; - let definedInMethod = false; - if (isConstructorDeclaredProperty(symbol)) { - type = getFlowTypeInConstructor(symbol, getDeclaringConstructor(symbol)); - } - if (!type) { - let types; - if (symbol.declarations) { - let jsdocType; - for (const declaration of symbol.declarations) { - const expression = isBinaryExpression(declaration) || isCallExpression(declaration) ? declaration : isAccessExpression(declaration) ? isBinaryExpression(declaration.parent) ? declaration.parent : declaration : void 0; - if (!expression) { - continue; - } - const kind = isAccessExpression(expression) ? getAssignmentDeclarationPropertyAccessKind(expression) : getAssignmentDeclarationKind(expression); - if (kind === 4 /* ThisProperty */ || isBinaryExpression(expression) && isPossiblyAliasedThisProperty(expression, kind)) { - if (isDeclarationInConstructor(expression)) { - definedInConstructor = true; - } else { - definedInMethod = true; - } - } - if (!isCallExpression(expression)) { - jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration); - } - if (!jsdocType) { - (types || (types = [])).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType); - } - } - type = jsdocType; - } - if (!type) { - if (!length(types)) { - return errorType; - } - let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0; - if (definedInMethod) { - const propType = getTypeOfPropertyInBaseClass(symbol); - if (propType) { - (constructorTypes || (constructorTypes = [])).push(propType); - definedInConstructor = true; - } - } - const sourceTypes = some(constructorTypes, (t) => !!(t.flags & ~98304 /* Nullable */)) ? constructorTypes : types; - type = getUnionType(sourceTypes); - } - } - const widened = getWidenedType(addOptionality( - type, - /*isProperty*/ - false, - definedInMethod && !definedInConstructor - )); - if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { - reportImplicitAny(symbol.valueDeclaration, anyType); - return anyType; - } - return widened; - } - function getJSContainerObjectType(decl, symbol, init) { - var _a, _b; - if (!isInJSFile(decl) || !init || !isObjectLiteralExpression(init) || init.properties.length) { - return void 0; - } - const exports2 = createSymbolTable(); - while (isBinaryExpression(decl) || isPropertyAccessExpression(decl)) { - const s2 = getSymbolOfNode(decl); - if ((_a = s2 == null ? void 0 : s2.exports) == null ? void 0 : _a.size) { - mergeSymbolTable(exports2, s2.exports); - } - decl = isBinaryExpression(decl) ? decl.parent : decl.parent.parent; - } - const s = getSymbolOfNode(decl); - if ((_b = s == null ? void 0 : s.exports) == null ? void 0 : _b.size) { - mergeSymbolTable(exports2, s.exports); - } - const type = createAnonymousType(symbol, exports2, emptyArray, emptyArray, emptyArray); - type.objectFlags |= 4096 /* JSLiteral */; - return type; - } - function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) { - var _a; - const typeNode = getEffectiveTypeAnnotationNode(expression.parent); - if (typeNode) { - const type = getWidenedType(getTypeFromTypeNode(typeNode)); - if (!declaredType) { - return type; - } else if (!isErrorType(declaredType) && !isErrorType(type) && !isTypeIdenticalTo(declaredType, type)) { - errorNextVariableOrPropertyDeclarationMustHaveSameType( - /*firstDeclaration*/ - void 0, - declaredType, - declaration, - type - ); - } - } - if ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) { - const possiblyAnnotatedSymbol = getFunctionExpressionParentSymbolOrSymbol(symbol.parent); - if (possiblyAnnotatedSymbol.valueDeclaration) { - const typeNode2 = getEffectiveTypeAnnotationNode(possiblyAnnotatedSymbol.valueDeclaration); - if (typeNode2) { - const annotationSymbol = getPropertyOfType(getTypeFromTypeNode(typeNode2), symbol.escapedName); - if (annotationSymbol) { - return getNonMissingTypeOfSymbol(annotationSymbol); - } - } - } - } - return declaredType; - } - function getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) { - if (isCallExpression(expression)) { - if (resolvedSymbol) { - return getTypeOfSymbol(resolvedSymbol); - } - const objectLitType = checkExpressionCached(expression.arguments[2]); - const valueType = getTypeOfPropertyOfType(objectLitType, "value"); - if (valueType) { - return valueType; - } - const getFunc = getTypeOfPropertyOfType(objectLitType, "get"); - if (getFunc) { - const getSig = getSingleCallSignature(getFunc); - if (getSig) { - return getReturnTypeOfSignature(getSig); - } - } - const setFunc = getTypeOfPropertyOfType(objectLitType, "set"); - if (setFunc) { - const setSig = getSingleCallSignature(setFunc); - if (setSig) { - return getTypeOfFirstParameterOfSignature(setSig); - } - } - return anyType; - } - if (containsSameNamedThisProperty(expression.left, expression.right)) { - return anyType; - } - const isDirectExport = kind === 1 /* ExportsProperty */ && (isPropertyAccessExpression(expression.left) || isElementAccessExpression(expression.left)) && (isModuleExportsAccessExpression(expression.left.expression) || isIdentifier(expression.left.expression) && isExportsIdentifier(expression.left.expression)); - const type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol) : isDirectExport ? getRegularTypeOfLiteralType(checkExpressionCached(expression.right)) : getWidenedLiteralType(checkExpressionCached(expression.right)); - if (type.flags & 524288 /* Object */ && kind === 2 /* ModuleExports */ && symbol.escapedName === "export=" /* ExportEquals */) { - const exportedType = resolveStructuredTypeMembers(type); - const members = createSymbolTable(); - copyEntries(exportedType.members, members); - const initialSize = members.size; - if (resolvedSymbol && !resolvedSymbol.exports) { - resolvedSymbol.exports = createSymbolTable(); - } - (resolvedSymbol || symbol).exports.forEach((s, name) => { - var _a; - const exportedMember = members.get(name); - if (exportedMember && exportedMember !== s && !(s.flags & 2097152 /* Alias */)) { - if (s.flags & 111551 /* Value */ && exportedMember.flags & 111551 /* Value */) { - if (s.valueDeclaration && exportedMember.valueDeclaration && getSourceFileOfNode(s.valueDeclaration) !== getSourceFileOfNode(exportedMember.valueDeclaration)) { - const unescapedName = unescapeLeadingUnderscores(s.escapedName); - const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration; - addRelatedInfo( - error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), - createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName) - ); - addRelatedInfo( - error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), - createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName) - ); - } - const union = createSymbol(s.flags | exportedMember.flags, name); - union.links.type = getUnionType([getTypeOfSymbol(s), getTypeOfSymbol(exportedMember)]); - union.valueDeclaration = exportedMember.valueDeclaration; - union.declarations = concatenate(exportedMember.declarations, s.declarations); - members.set(name, union); - } else { - members.set(name, mergeSymbol(s, exportedMember)); - } - } else { - members.set(name, s); - } - }); - const result = createAnonymousType( - initialSize !== members.size ? void 0 : exportedType.symbol, - // Only set the type's symbol if it looks to be the same as the original type - members, - exportedType.callSignatures, - exportedType.constructSignatures, - exportedType.indexInfos - ); - if (initialSize === members.size) { - if (type.aliasSymbol) { - result.aliasSymbol = type.aliasSymbol; - result.aliasTypeArguments = type.aliasTypeArguments; - } - if (getObjectFlags(type) & 4 /* Reference */) { - result.aliasSymbol = type.symbol; - const args = getTypeArguments(type); - result.aliasTypeArguments = length(args) ? args : void 0; - } - } - result.objectFlags |= getPropagatingFlagsOfTypes([type]) | getObjectFlags(type) & (4096 /* JSLiteral */ | 16384 /* ArrayLiteral */ | 128 /* ObjectLiteral */); - if (result.symbol && result.symbol.flags & 32 /* Class */ && type === getDeclaredTypeOfClassOrInterface(result.symbol)) { - result.objectFlags |= 16777216 /* IsClassInstanceClone */; - } - return result; - } - if (isEmptyArrayLiteralType(type)) { - reportImplicitAny(expression, anyArrayType); - return anyArrayType; - } - return type; - } - function containsSameNamedThisProperty(thisProperty, expression) { - return isPropertyAccessExpression(thisProperty) && thisProperty.expression.kind === 110 /* ThisKeyword */ && forEachChildRecursively(expression, (n) => isMatchingReference(thisProperty, n)); - } - function isDeclarationInConstructor(expression) { - const thisContainer = getThisContainer( - expression, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); - } - function getConstructorDefinedThisAssignmentTypes(types, declarations) { - Debug.assert(types.length === declarations.length); - return types.filter((_, i) => { - const declaration = declarations[i]; - const expression = isBinaryExpression(declaration) ? declaration : isBinaryExpression(declaration.parent) ? declaration.parent : void 0; - return expression && isDeclarationInConstructor(expression); - }); - } - function getTypeFromBindingElement(element, includePatternInType, reportErrors2) { - if (element.initializer) { - const contextualType = isBindingPattern(element.name) ? getTypeFromBindingPattern( - element.name, - /*includePatternInType*/ - true, - /*reportErrors*/ - false - ) : unknownType; - return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType))); - } - if (isBindingPattern(element.name)) { - return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2); - } - if (reportErrors2 && !declarationBelongsToPrivateAmbientMember(element)) { - reportImplicitAny(element, anyType); - } - return includePatternInType ? nonInferrableAnyType : anyType; - } - function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) { - const members = createSymbolTable(); - let stringIndexInfo; - let objectFlags = 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - forEach(pattern.elements, (e) => { - const name = e.propertyName || e.name; - if (e.dotDotDotToken) { - stringIndexInfo = createIndexInfo( - stringType, - anyType, - /*isReadonly*/ - false - ); - return; - } - const exprType = getLiteralTypeFromPropertyName(name); - if (!isTypeUsableAsPropertyName(exprType)) { - objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */; - return; - } - const text = getPropertyNameFromType(exprType); - const flags = 4 /* Property */ | (e.initializer ? 16777216 /* Optional */ : 0); - const symbol = createSymbol(flags, text); - symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors2); - members.set(symbol.escapedName, symbol); - }); - const result = createAnonymousType( - /*symbol*/ - void 0, - members, - emptyArray, - emptyArray, - stringIndexInfo ? [stringIndexInfo] : emptyArray - ); - result.objectFlags |= objectFlags; - if (includePatternInType) { - result.pattern = pattern; - result.objectFlags |= 131072 /* ContainsObjectOrArrayLiteral */; - } - return result; - } - function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { - const elements = pattern.elements; - const lastElement = lastOrUndefined(elements); - const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; - if (elements.length === 0 || elements.length === 1 && restElement) { - return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; - } - const elementTypes = map(elements, (e) => isOmittedExpression(e) ? anyType : getTypeFromBindingElement(e, includePatternInType, reportErrors2)); - const minLength = findLastIndex(elements, (e) => !(e === restElement || isOmittedExpression(e) || hasDefaultValue(e)), elements.length - 1) + 1; - const elementFlags = map(elements, (e, i) => e === restElement ? 4 /* Rest */ : i >= minLength ? 2 /* Optional */ : 1 /* Required */); - let result = createTupleType(elementTypes, elementFlags); - if (includePatternInType) { - result = cloneTypeReference(result); - result.pattern = pattern; - result.objectFlags |= 131072 /* ContainsObjectOrArrayLiteral */; - } - return result; - } - function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - if (includePatternInType) contextualBindingPatterns.push(pattern); - const result = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); - if (includePatternInType) contextualBindingPatterns.pop(); - return result; - } - function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { - return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( - declaration, - /*includeOptionality*/ - true, - 0 /* Normal */ - ), declaration, reportErrors2); - } - function getTypeFromImportAttributes(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const symbol = createSymbol(4096 /* ObjectLiteral */, "__importAttributes" /* ImportAttributes */); - const members = createSymbolTable(); - forEach(node.elements, (attr) => { - const member = createSymbol(4 /* Property */, getNameFromImportAttribute(attr)); - member.parent = symbol; - member.links.type = checkImportAttribute(attr); - member.links.target = member; - members.set(member.escapedName, member); - }); - const type = createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); - type.objectFlags |= 128 /* ObjectLiteral */ | 262144 /* NonInferrableType */; - links.resolvedType = type; - } - return links.resolvedType; - } - function isGlobalSymbolConstructor(node) { - const symbol = getSymbolOfNode(node); - const globalSymbol = getGlobalESSymbolConstructorTypeSymbol( - /*reportErrors*/ - false - ); - return globalSymbol && symbol && symbol === globalSymbol; - } - function widenTypeForVariableLikeDeclaration(type, declaration, reportErrors2) { - if (type) { - if (type.flags & 4096 /* ESSymbol */ && isGlobalSymbolConstructor(declaration.parent)) { - type = getESSymbolLikeTypeForNode(declaration); - } - if (reportErrors2) { - reportErrorsFromWidening(declaration, type); - } - if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) { - type = esSymbolType; - } - return getWidenedType(type); - } - type = isParameter(declaration) && declaration.dotDotDotToken ? anyArrayType : anyType; - if (reportErrors2) { - if (!declarationBelongsToPrivateAmbientMember(declaration)) { - reportImplicitAny(declaration, type); - } - } - return type; - } - function declarationBelongsToPrivateAmbientMember(declaration) { - const root = getRootDeclaration(declaration); - const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; - return isPrivateWithinAmbient(memberDeclaration); - } - function tryGetTypeFromEffectiveTypeNode(node) { - const typeNode = getEffectiveTypeAnnotationNode(node); - if (typeNode) { - return getTypeFromTypeNode(typeNode); - } - } - function isParameterOfContextSensitiveSignature(symbol) { - let decl = symbol.valueDeclaration; - if (!decl) { - return false; - } - if (isBindingElement(decl)) { - decl = walkUpBindingElementsAndPatterns(decl); - } - if (isParameter(decl)) { - return isContextSensitiveFunctionOrObjectLiteralMethod(decl.parent); - } - return false; - } - function getTypeOfVariableOrParameterOrProperty(symbol) { - const links = getSymbolLinks(symbol); - if (!links.type) { - const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol); - if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) { - links.type = type; - } - return type; - } - return links.type; - } - function getTypeOfVariableOrParameterOrPropertyWorker(symbol) { - if (symbol.flags & 4194304 /* Prototype */) { - return getTypeOfPrototypeProperty(symbol); - } - if (symbol === requireSymbol) { - return anyType; - } - if (symbol.flags & 134217728 /* ModuleExports */ && symbol.valueDeclaration) { - const fileSymbol = getSymbolOfDeclaration(getSourceFileOfNode(symbol.valueDeclaration)); - const result = createSymbol(fileSymbol.flags, "exports"); - result.declarations = fileSymbol.declarations ? fileSymbol.declarations.slice() : []; - result.parent = symbol; - result.links.target = fileSymbol; - if (fileSymbol.valueDeclaration) result.valueDeclaration = fileSymbol.valueDeclaration; - if (fileSymbol.members) result.members = new Map(fileSymbol.members); - if (fileSymbol.exports) result.exports = new Map(fileSymbol.exports); - const members = createSymbolTable(); - members.set("exports", result); - return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); - } - Debug.assertIsDefined(symbol.valueDeclaration); - const declaration = symbol.valueDeclaration; - if (isSourceFile(declaration) && isJsonSourceFile(declaration)) { - if (!declaration.statements.length) { - return emptyObjectType; - } - return getWidenedType(getWidenedLiteralType(checkExpression(declaration.statements[0].expression))); - } - if (isAccessor(declaration)) { - return getTypeOfAccessors(symbol); - } - if (!pushTypeResolution(symbol, 0 /* Type */)) { - if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { - return getTypeOfFuncClassEnumModule(symbol); - } - return reportCircularityError(symbol); - } - let type; - if (declaration.kind === 277 /* ExportAssignment */) { - type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); - } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { - type = getWidenedTypeForAssignmentDeclaration(symbol); - } else if (isPropertyAccessExpression(declaration) || isElementAccessExpression(declaration) || isIdentifier(declaration) || isStringLiteralLike(declaration) || isNumericLiteral(declaration) || isClassDeclaration(declaration) || isFunctionDeclaration(declaration) || isMethodDeclaration(declaration) && !isObjectLiteralMethod(declaration) || isMethodSignature(declaration) || isSourceFile(declaration)) { - if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { - return getTypeOfFuncClassEnumModule(symbol); - } - type = isBinaryExpression(declaration.parent) ? getWidenedTypeForAssignmentDeclaration(symbol) : tryGetTypeFromEffectiveTypeNode(declaration) || anyType; - } else if (isPropertyAssignment(declaration)) { - type = tryGetTypeFromEffectiveTypeNode(declaration) || checkPropertyAssignment(declaration); - } else if (isJsxAttribute(declaration)) { - type = tryGetTypeFromEffectiveTypeNode(declaration) || checkJsxAttribute(declaration); - } else if (isShorthandPropertyAssignment(declaration)) { - type = tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionForMutableLocation(declaration.name, 0 /* Normal */); - } else if (isObjectLiteralMethod(declaration)) { - type = tryGetTypeFromEffectiveTypeNode(declaration) || checkObjectLiteralMethod(declaration, 0 /* Normal */); - } else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) { - type = getWidenedTypeForVariableLikeDeclaration( - declaration, - /*reportErrors*/ - true - ); - } else if (isEnumDeclaration(declaration)) { - type = getTypeOfFuncClassEnumModule(symbol); - } else if (isEnumMember(declaration)) { - type = getTypeOfEnumMember(symbol); - } else { - return Debug.fail("Unhandled declaration kind! " + Debug.formatSyntaxKind(declaration.kind) + " for " + Debug.formatSymbol(symbol)); - } - if (!popTypeResolution()) { - if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { - return getTypeOfFuncClassEnumModule(symbol); - } - return reportCircularityError(symbol); - } - return type; - } - function getAnnotatedAccessorTypeNode(accessor) { - if (accessor) { - switch (accessor.kind) { - case 177 /* GetAccessor */: - const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); - return getterTypeAnnotation; - case 178 /* SetAccessor */: - const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); - return setterTypeAnnotation; - case 172 /* PropertyDeclaration */: - Debug.assert(hasAccessorModifier(accessor)); - const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); - return accessorTypeAnnotation; - } - } - return void 0; - } - function getAnnotatedAccessorType(accessor) { - const node = getAnnotatedAccessorTypeNode(accessor); - return node && getTypeFromTypeNode(node); - } - function getAnnotatedAccessorThisParameter(accessor) { - const parameter = getAccessorThisParameter(accessor); - return parameter && parameter.symbol; - } - function getThisTypeOfDeclaration(declaration) { - return getThisTypeOfSignature(getSignatureFromDeclaration(declaration)); - } - function getTypeOfAccessors(symbol) { - const links = getSymbolLinks(symbol); - if (!links.type) { - if (!pushTypeResolution(symbol, 0 /* Type */)) { - return errorType; - } - const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); - const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); - let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && getWidenedTypeForVariableLikeDeclaration( - accessor, - /*reportErrors*/ - true - ); - if (!type) { - if (setter && !isPrivateWithinAmbient(setter)) { - errorOrSuggestion(noImplicitAny, setter, Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol)); - } else if (getter && !isPrivateWithinAmbient(getter)) { - errorOrSuggestion(noImplicitAny, getter, Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); - } else if (accessor && !isPrivateWithinAmbient(accessor)) { - errorOrSuggestion(noImplicitAny, accessor, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), "any"); - } - type = anyType; - } - if (!popTypeResolution()) { - if (getAnnotatedAccessorTypeNode(getter)) { - error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - } else if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - } else if (getAnnotatedAccessorTypeNode(accessor)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - } else if (getter && noImplicitAny) { - error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); - } - type = anyType; - } - links.type ?? (links.type = type); - } - return links.type; - } - function getWriteTypeOfAccessors(symbol) { - const links = getSymbolLinks(symbol); - if (!links.writeType) { - if (!pushTypeResolution(symbol, 7 /* WriteType */)) { - return errorType; - } - const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); - let writeType = getAnnotatedAccessorType(setter); - if (!popTypeResolution()) { - if (getAnnotatedAccessorTypeNode(setter)) { - error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - } - writeType = anyType; - } - links.writeType ?? (links.writeType = writeType || getTypeOfAccessors(symbol)); - } - return links.writeType; - } - function getBaseTypeVariableOfClass(symbol) { - const baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol)); - return baseConstructorType.flags & 8650752 /* TypeVariable */ ? baseConstructorType : baseConstructorType.flags & 2097152 /* Intersection */ ? find(baseConstructorType.types, (t) => !!(t.flags & 8650752 /* TypeVariable */)) : void 0; - } - function getTypeOfFuncClassEnumModule(symbol) { - let links = getSymbolLinks(symbol); - const originalLinks = links; - if (!links.type) { - const expando = symbol.valueDeclaration && getSymbolOfExpando( - symbol.valueDeclaration, - /*allowDeclaration*/ - false - ); - if (expando) { - const merged = mergeJSSymbols(symbol, expando); - if (merged) { - symbol = merged; - links = merged.links; - } - } - originalLinks.type = links.type = getTypeOfFuncClassEnumModuleWorker(symbol); - } - return links.type; - } - function getTypeOfFuncClassEnumModuleWorker(symbol) { - const declaration = symbol.valueDeclaration; - if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { - return anyType; - } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { - return getWidenedTypeForAssignmentDeclaration(symbol); - } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { - const resolvedModule = resolveExternalModuleSymbol(symbol); - if (resolvedModule !== symbol) { - if (!pushTypeResolution(symbol, 0 /* Type */)) { - return errorType; - } - const exportEquals = getMergedSymbol(symbol.exports.get("export=" /* ExportEquals */)); - const type2 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? void 0 : resolvedModule); - if (!popTypeResolution()) { - return reportCircularityError(symbol); - } - return type2; - } - } - const type = createObjectType(16 /* Anonymous */, symbol); - if (symbol.flags & 32 /* Class */) { - const baseTypeVariable = getBaseTypeVariableOfClass(symbol); - return baseTypeVariable ? getIntersectionType([type, baseTypeVariable]) : type; - } else { - return strictNullChecks && symbol.flags & 16777216 /* Optional */ ? getOptionalType( - type, - /*isProperty*/ - true - ) : type; - } - } - function getTypeOfEnumMember(symbol) { - const links = getSymbolLinks(symbol); - return links.type || (links.type = getDeclaredTypeOfEnumMember(symbol)); - } - function getTypeOfAlias(symbol) { - const links = getSymbolLinks(symbol); - if (!links.type) { - if (!pushTypeResolution(symbol, 0 /* Type */)) { - return errorType; - } - const targetSymbol = resolveAlias(symbol); - const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration( - getDeclarationOfAliasSymbol(symbol), - /*dontRecursivelyResolve*/ - true - ); - const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); - links.type ?? (links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType); - if (!popTypeResolution()) { - reportCircularityError(exportSymbol ?? symbol); - return links.type ?? (links.type = errorType); - } - } - return links.type; - } - function getTypeOfInstantiatedSymbol(symbol) { - const links = getSymbolLinks(symbol); - return links.type || (links.type = instantiateType(getTypeOfSymbol(links.target), links.mapper)); - } - function getWriteTypeOfInstantiatedSymbol(symbol) { - const links = getSymbolLinks(symbol); - return links.writeType || (links.writeType = instantiateType(getWriteTypeOfSymbol(links.target), links.mapper)); - } - function reportCircularityError(symbol) { - const declaration = symbol.valueDeclaration; - if (declaration) { - if (getEffectiveTypeAnnotationNode(declaration)) { - error(symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); - return errorType; - } - if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { - error(symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol)); - } - } else if (symbol.flags & 2097152 /* Alias */) { - const node = getDeclarationOfAliasSymbol(symbol); - if (node) { - error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); - } - } - return anyType; - } - function getTypeOfSymbolWithDeferredType(symbol) { - const links = getSymbolLinks(symbol); - if (!links.type) { - Debug.assertIsDefined(links.deferralParent); - Debug.assertIsDefined(links.deferralConstituents); - links.type = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralConstituents) : getIntersectionType(links.deferralConstituents); - } - return links.type; - } - function getWriteTypeOfSymbolWithDeferredType(symbol) { - const links = getSymbolLinks(symbol); - if (!links.writeType && links.deferralWriteConstituents) { - Debug.assertIsDefined(links.deferralParent); - Debug.assertIsDefined(links.deferralConstituents); - links.writeType = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents); - } - return links.writeType; - } - function getWriteTypeOfSymbol(symbol) { - const checkFlags = getCheckFlags(symbol); - if (symbol.flags & 4 /* Property */) { - return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : ( - // NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty - symbol.links.writeType || symbol.links.type - ) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */)); - } - if (symbol.flags & 98304 /* Accessor */) { - return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol); - } - return getTypeOfSymbol(symbol); - } - function getTypeOfSymbol(symbol) { - const checkFlags = getCheckFlags(symbol); - if (checkFlags & 65536 /* DeferredType */) { - return getTypeOfSymbolWithDeferredType(symbol); - } - if (checkFlags & 1 /* Instantiated */) { - return getTypeOfInstantiatedSymbol(symbol); - } - if (checkFlags & 262144 /* Mapped */) { - return getTypeOfMappedSymbol(symbol); - } - if (checkFlags & 8192 /* ReverseMapped */) { - return getTypeOfReverseMappedSymbol(symbol); - } - if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { - return getTypeOfVariableOrParameterOrProperty(symbol); - } - if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { - return getTypeOfFuncClassEnumModule(symbol); - } - if (symbol.flags & 8 /* EnumMember */) { - return getTypeOfEnumMember(symbol); - } - if (symbol.flags & 98304 /* Accessor */) { - return getTypeOfAccessors(symbol); - } - if (symbol.flags & 2097152 /* Alias */) { - return getTypeOfAlias(symbol); - } - return errorType; - } - function getNonMissingTypeOfSymbol(symbol) { - return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */)); - } - function isReferenceToSomeType(type, targets) { - if (type === void 0 || (getObjectFlags(type) & 4 /* Reference */) === 0) { - return false; - } - for (const target of targets) { - if (type.target === target) { - return true; - } - } - return false; - } - function isReferenceToType(type, target) { - return type !== void 0 && target !== void 0 && (getObjectFlags(type) & 4 /* Reference */) !== 0 && type.target === target; - } - function getTargetType(type) { - return getObjectFlags(type) & 4 /* Reference */ ? type.target : type; - } - function hasBaseType(type, checkBase) { - return check(type); - function check(type2) { - if (getObjectFlags(type2) & (3 /* ClassOrInterface */ | 4 /* Reference */)) { - const target = getTargetType(type2); - return target === checkBase || some(getBaseTypes(target), check); - } else if (type2.flags & 2097152 /* Intersection */) { - return some(type2.types, check); - } - return false; - } - } - function appendTypeParameters(typeParameters, declarations) { - for (const declaration of declarations) { - typeParameters = appendIfUnique(typeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(declaration))); - } - return typeParameters; - } - function getOuterTypeParameters(node, includeThisTypes) { - while (true) { - node = node.parent; - if (node && isBinaryExpression(node)) { - const assignmentKind = getAssignmentDeclarationKind(node); - if (assignmentKind === 6 /* Prototype */ || assignmentKind === 3 /* PrototypeProperty */) { - const symbol = getSymbolOfDeclaration(node.left); - if (symbol && symbol.parent && !findAncestor(symbol.parent.valueDeclaration, (d) => node === d)) { - node = symbol.parent.valueDeclaration; - } - } - } - if (!node) { - return void 0; - } - const kind = node.kind; - switch (kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 264 /* InterfaceDeclaration */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 173 /* MethodSignature */: - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 317 /* JSDocFunctionType */: - case 262 /* FunctionDeclaration */: - case 174 /* MethodDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 265 /* TypeAliasDeclaration */: - case 345 /* JSDocTemplateTag */: - case 346 /* JSDocTypedefTag */: - case 340 /* JSDocEnumTag */: - case 338 /* JSDocCallbackTag */: - case 200 /* MappedType */: - case 194 /* ConditionalType */: { - const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if ((kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || isObjectLiteralMethod(node)) && isContextSensitive(node)) { - const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfDeclaration(node)), 0 /* Call */)); - if (signature && signature.typeParameters) { - return [...outerTypeParameters || emptyArray, ...signature.typeParameters]; - } - } - if (kind === 200 /* MappedType */) { - return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (kind === 194 /* ConditionalType */) { - return concatenate(outerTypeParameters, getInferTypeParameters(node)); - } - const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; - return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; - } - case 341 /* JSDocParameterTag */: - const paramSymbol = getParameterSymbolFromJSDoc(node); - if (paramSymbol) { - node = paramSymbol.valueDeclaration; - } - break; - case 320 /* JSDoc */: { - const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; - } - } - } - } - function getOuterTypeParametersOfClassOrInterface(symbol) { - var _a; - const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { - if (decl.kind === 264 /* InterfaceDeclaration */) { - return true; - } - if (decl.kind !== 260 /* VariableDeclaration */) { - return false; - } - const initializer = decl.initializer; - return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); - }); - Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); - return getOuterTypeParameters(declaration); - } - function getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) { - if (!symbol.declarations) { - return; - } - let result; - for (const node of symbol.declarations) { - if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { - const declaration = node; - result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); - } - } - return result; - } - function getTypeParametersOfClassOrInterface(symbol) { - return concatenate(getOuterTypeParametersOfClassOrInterface(symbol), getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol)); - } - function isMixinConstructorType(type) { - const signatures = getSignaturesOfType(type, 1 /* Construct */); - if (signatures.length === 1) { - const s = signatures[0]; - if (!s.typeParameters && s.parameters.length === 1 && signatureHasRestParameter(s)) { - const paramType = getTypeOfParameter(s.parameters[0]); - return isTypeAny(paramType) || getElementTypeOfArrayType(paramType) === anyType; - } - } - return false; - } - function isConstructorType(type) { - if (getSignaturesOfType(type, 1 /* Construct */).length > 0) { - return true; - } - if (type.flags & 8650752 /* TypeVariable */) { - const constraint = getBaseConstraintOfType(type); - return !!constraint && isMixinConstructorType(constraint); - } - return false; - } - function getBaseTypeNodeOfClass(type) { - const decl = getClassLikeDeclarationOfSymbol(type.symbol); - return decl && getEffectiveBaseTypeNode(decl); - } - function getConstructorsForTypeArguments(type, typeArgumentNodes, location) { - const typeArgCount = length(typeArgumentNodes); - const isJavascript = isInJSFile(location); - return filter(getSignaturesOfType(type, 1 /* Construct */), (sig) => (isJavascript || typeArgCount >= getMinTypeArgumentCount(sig.typeParameters)) && typeArgCount <= length(sig.typeParameters)); - } - function getInstantiatedConstructorsForTypeArguments(type, typeArgumentNodes, location) { - const signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location); - const typeArguments = map(typeArgumentNodes, getTypeFromTypeNode); - return sameMap(signatures, (sig) => some(sig.typeParameters) ? getSignatureInstantiation(sig, typeArguments, isInJSFile(location)) : sig); - } - function getBaseConstructorTypeOfClass(type) { - if (!type.resolvedBaseConstructorType) { - const decl = getClassLikeDeclarationOfSymbol(type.symbol); - const extended = decl && getEffectiveBaseTypeNode(decl); - const baseTypeNode = getBaseTypeNodeOfClass(type); - if (!baseTypeNode) { - return type.resolvedBaseConstructorType = undefinedType; - } - if (!pushTypeResolution(type, 1 /* ResolvedBaseConstructorType */)) { - return errorType; - } - const baseConstructorType = checkExpression(baseTypeNode.expression); - if (extended && baseTypeNode !== extended) { - Debug.assert(!extended.typeArguments); - checkExpression(extended.expression); - } - if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { - resolveStructuredTypeMembers(baseConstructorType); - } - if (!popTypeResolution()) { - error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); - return type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = errorType); - } - if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) { - const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); - if (baseConstructorType.flags & 262144 /* TypeParameter */) { - const constraint = getConstraintFromTypeParameter(baseConstructorType); - let ctorReturn = unknownType; - if (constraint) { - const ctorSig = getSignaturesOfType(constraint, 1 /* Construct */); - if (ctorSig[0]) { - ctorReturn = getReturnTypeOfSignature(ctorSig[0]); - } - } - if (baseConstructorType.symbol.declarations) { - addRelatedInfo(err, createDiagnosticForNode(baseConstructorType.symbol.declarations[0], Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn))); - } - } - return type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = errorType); - } - type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = baseConstructorType); - } - return type.resolvedBaseConstructorType; - } - function getImplementsTypes(type) { - let resolvedImplementsTypes = emptyArray; - if (type.symbol.declarations) { - for (const declaration of type.symbol.declarations) { - const implementsTypeNodes = getEffectiveImplementsTypeNodes(declaration); - if (!implementsTypeNodes) continue; - for (const node of implementsTypeNodes) { - const implementsType = getTypeFromTypeNode(node); - if (!isErrorType(implementsType)) { - if (resolvedImplementsTypes === emptyArray) { - resolvedImplementsTypes = [implementsType]; - } else { - resolvedImplementsTypes.push(implementsType); - } - } - } - } - } - return resolvedImplementsTypes; - } - function reportCircularBaseType(node, type) { - error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 2 /* WriteArrayAsGenericType */ - )); - } - function getBaseTypes(type) { - if (!type.baseTypesResolved) { - if (pushTypeResolution(type, 6 /* ResolvedBaseTypes */)) { - if (type.objectFlags & 8 /* Tuple */) { - type.resolvedBaseTypes = [getTupleBaseType(type)]; - } else if (type.symbol.flags & (32 /* Class */ | 64 /* Interface */)) { - if (type.symbol.flags & 32 /* Class */) { - resolveBaseTypesOfClass(type); - } - if (type.symbol.flags & 64 /* Interface */) { - resolveBaseTypesOfInterface(type); - } - } else { - Debug.fail("type must be class or interface"); - } - if (!popTypeResolution() && type.symbol.declarations) { - for (const declaration of type.symbol.declarations) { - if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { - reportCircularBaseType(declaration, type); - } - } - } - } - type.baseTypesResolved = true; - } - return type.resolvedBaseTypes; - } - function getTupleBaseType(type) { - const elementTypes = sameMap(type.typeParameters, (t, i) => type.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t); - return createArrayType(getUnionType(elementTypes || emptyArray), type.readonly); - } - function resolveBaseTypesOfClass(type) { - type.resolvedBaseTypes = resolvingEmptyArray; - const baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type)); - if (!(baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 1 /* Any */))) { - return type.resolvedBaseTypes = emptyArray; - } - const baseTypeNode = getBaseTypeNodeOfClass(type); - let baseType; - const originalBaseType = baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : void 0; - if (baseConstructorType.symbol && baseConstructorType.symbol.flags & 32 /* Class */ && areAllOuterTypeParametersApplied(originalBaseType)) { - baseType = getTypeFromClassOrInterfaceReference(baseTypeNode, baseConstructorType.symbol); - } else if (baseConstructorType.flags & 1 /* Any */) { - baseType = baseConstructorType; - } else { - const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); - if (!constructors.length) { - error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); - return type.resolvedBaseTypes = emptyArray; - } - baseType = getReturnTypeOfSignature(constructors[0]); - } - if (isErrorType(baseType)) { - return type.resolvedBaseTypes = emptyArray; - } - const reducedBaseType = getReducedType(baseType); - if (!isValidBaseType(reducedBaseType)) { - const elaboration = elaborateNeverIntersection( - /*errorInfo*/ - void 0, - baseType - ); - const diagnostic = chainDiagnosticMessages(elaboration, Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, typeToString(reducedBaseType)); - diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(baseTypeNode.expression), baseTypeNode.expression, diagnostic)); - return type.resolvedBaseTypes = emptyArray; - } - if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { - error(type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 2 /* WriteArrayAsGenericType */ - )); - return type.resolvedBaseTypes = emptyArray; - } - if (type.resolvedBaseTypes === resolvingEmptyArray) { - type.members = void 0; - } - return type.resolvedBaseTypes = [reducedBaseType]; - } - function areAllOuterTypeParametersApplied(type) { - const outerTypeParameters = type.outerTypeParameters; - if (outerTypeParameters) { - const last2 = outerTypeParameters.length - 1; - const typeArguments = getTypeArguments(type); - return outerTypeParameters[last2].symbol !== typeArguments[last2].symbol; - } - return true; - } - function isValidBaseType(type) { - if (type.flags & 262144 /* TypeParameter */) { - const constraint = getBaseConstraintOfType(type); - if (constraint) { - return isValidBaseType(constraint); - } - } - return !!(type.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 1 /* Any */) && !isGenericMappedType(type) || type.flags & 2097152 /* Intersection */ && every(type.types, isValidBaseType)); - } - function resolveBaseTypesOfInterface(type) { - type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; - if (type.symbol.declarations) { - for (const declaration of type.symbol.declarations) { - if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { - for (const node of getInterfaceBaseTypeNodes(declaration)) { - const baseType = getReducedType(getTypeFromTypeNode(node)); - if (!isErrorType(baseType)) { - if (isValidBaseType(baseType)) { - if (type !== baseType && !hasBaseType(baseType, type)) { - if (type.resolvedBaseTypes === emptyArray) { - type.resolvedBaseTypes = [baseType]; - } else { - type.resolvedBaseTypes.push(baseType); - } - } else { - reportCircularBaseType(declaration, type); - } - } else { - error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); - } - } - } - } - } - } - } - function isThislessInterface(symbol) { - if (!symbol.declarations) { - return true; - } - for (const declaration of symbol.declarations) { - if (declaration.kind === 264 /* InterfaceDeclaration */) { - if (declaration.flags & 256 /* ContainsThis */) { - return false; - } - const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); - if (baseTypeNodes) { - for (const node of baseTypeNodes) { - if (isEntityNameExpression(node.expression)) { - const baseSymbol = resolveEntityName( - node.expression, - 788968 /* Type */, - /*ignoreErrors*/ - true - ); - if (!baseSymbol || !(baseSymbol.flags & 64 /* Interface */) || getDeclaredTypeOfClassOrInterface(baseSymbol).thisType) { - return false; - } - } - } - } - } - } - return true; - } - function getDeclaredTypeOfClassOrInterface(symbol) { - let links = getSymbolLinks(symbol); - const originalLinks = links; - if (!links.declaredType) { - const kind = symbol.flags & 32 /* Class */ ? 1 /* Class */ : 2 /* Interface */; - const merged = mergeJSSymbols(symbol, symbol.valueDeclaration && getAssignedClassSymbol(symbol.valueDeclaration)); - if (merged) { - symbol = merged; - links = merged.links; - } - const type = originalLinks.declaredType = links.declaredType = createObjectType(kind, symbol); - const outerTypeParameters = getOuterTypeParametersOfClassOrInterface(symbol); - const localTypeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); - if (outerTypeParameters || localTypeParameters || kind === 1 /* Class */ || !isThislessInterface(symbol)) { - type.objectFlags |= 4 /* Reference */; - type.typeParameters = concatenate(outerTypeParameters, localTypeParameters); - type.outerTypeParameters = outerTypeParameters; - type.localTypeParameters = localTypeParameters; - type.instantiations = /* @__PURE__ */ new Map(); - type.instantiations.set(getTypeListId(type.typeParameters), type); - type.target = type; - type.resolvedTypeArguments = type.typeParameters; - type.thisType = createTypeParameter(symbol); - type.thisType.isThisType = true; - type.thisType.constraint = type; - } - } - return links.declaredType; - } - function getDeclaredTypeOfTypeAlias(symbol) { - var _a; - const links = getSymbolLinks(symbol); - if (!links.declaredType) { - if (!pushTypeResolution(symbol, 2 /* DeclaredType */)) { - return errorType; - } - const declaration = Debug.checkDefined((_a = symbol.declarations) == null ? void 0 : _a.find(isTypeAlias), "Type alias symbol with no valid declaration found"); - const typeNode = isJSDocTypeAlias(declaration) ? declaration.typeExpression : declaration.type; - let type = typeNode ? getTypeFromTypeNode(typeNode) : errorType; - if (popTypeResolution()) { - const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); - if (typeParameters) { - links.typeParameters = typeParameters; - links.instantiations = /* @__PURE__ */ new Map(); - links.instantiations.set(getTypeListId(typeParameters), type); - } - if (type === intrinsicMarkerType && symbol.escapedName === "BuiltinIteratorReturn") { - type = getBuiltinIteratorReturnType(); - } - } else { - type = errorType; - if (declaration.kind === 340 /* JSDocEnumTag */) { - error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); - } else { - error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); - } - } - links.declaredType ?? (links.declaredType = type); - } - return links.declaredType; - } - function getBaseTypeOfEnumLikeType(type) { - return type.flags & 1056 /* EnumLike */ && type.symbol.flags & 8 /* EnumMember */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(type.symbol)) : type; - } - function getDeclaredTypeOfEnum(symbol) { - const links = getSymbolLinks(symbol); - if (!links.declaredType) { - const memberTypeList = []; - if (symbol.declarations) { - for (const declaration of symbol.declarations) { - if (declaration.kind === 266 /* EnumDeclaration */) { - for (const member of declaration.members) { - if (hasBindableName(member)) { - const memberSymbol = getSymbolOfDeclaration(member); - const value = getEnumMemberValue(member).value; - const memberType = getFreshTypeOfLiteralType( - value !== void 0 ? getEnumLiteralType(value, getSymbolId(symbol), memberSymbol) : createComputedEnumType(memberSymbol) - ); - getSymbolLinks(memberSymbol).declaredType = memberType; - memberTypeList.push(getRegularTypeOfLiteralType(memberType)); - } - } - } - } - } - const enumType = memberTypeList.length ? getUnionType( - memberTypeList, - 1 /* Literal */, - symbol, - /*aliasTypeArguments*/ - void 0 - ) : createComputedEnumType(symbol); - if (enumType.flags & 1048576 /* Union */) { - enumType.flags |= 1024 /* EnumLiteral */; - enumType.symbol = symbol; - } - links.declaredType = enumType; - } - return links.declaredType; - } - function createComputedEnumType(symbol) { - const regularType = createTypeWithSymbol(32 /* Enum */, symbol); - const freshType = createTypeWithSymbol(32 /* Enum */, symbol); - regularType.regularType = regularType; - regularType.freshType = freshType; - freshType.regularType = regularType; - freshType.freshType = freshType; - return regularType; - } - function getDeclaredTypeOfEnumMember(symbol) { - const links = getSymbolLinks(symbol); - if (!links.declaredType) { - const enumType = getDeclaredTypeOfEnum(getParentOfSymbol(symbol)); - if (!links.declaredType) { - links.declaredType = enumType; - } - } - return links.declaredType; - } - function getDeclaredTypeOfTypeParameter(symbol) { - const links = getSymbolLinks(symbol); - return links.declaredType || (links.declaredType = createTypeParameter(symbol)); - } - function getDeclaredTypeOfAlias(symbol) { - const links = getSymbolLinks(symbol); - return links.declaredType || (links.declaredType = getDeclaredTypeOfSymbol(resolveAlias(symbol))); - } - function getDeclaredTypeOfSymbol(symbol) { - return tryGetDeclaredTypeOfSymbol(symbol) || errorType; - } - function tryGetDeclaredTypeOfSymbol(symbol) { - if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) { - return getDeclaredTypeOfClassOrInterface(symbol); - } - if (symbol.flags & 524288 /* TypeAlias */) { - return getDeclaredTypeOfTypeAlias(symbol); - } - if (symbol.flags & 262144 /* TypeParameter */) { - return getDeclaredTypeOfTypeParameter(symbol); - } - if (symbol.flags & 384 /* Enum */) { - return getDeclaredTypeOfEnum(symbol); - } - if (symbol.flags & 8 /* EnumMember */) { - return getDeclaredTypeOfEnumMember(symbol); - } - if (symbol.flags & 2097152 /* Alias */) { - return getDeclaredTypeOfAlias(symbol); - } - return void 0; - } - function isThislessType(node) { - switch (node.kind) { - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 154 /* StringKeyword */: - case 150 /* NumberKeyword */: - case 163 /* BigIntKeyword */: - case 136 /* BooleanKeyword */: - case 155 /* SymbolKeyword */: - case 151 /* ObjectKeyword */: - case 116 /* VoidKeyword */: - case 157 /* UndefinedKeyword */: - case 146 /* NeverKeyword */: - case 201 /* LiteralType */: - return true; - case 188 /* ArrayType */: - return isThislessType(node.elementType); - case 183 /* TypeReference */: - return !node.typeArguments || node.typeArguments.every(isThislessType); - } - return false; - } - function isThislessTypeParameter(node) { - const constraint = getEffectiveConstraintOfTypeParameter(node); - return !constraint || isThislessType(constraint); - } - function isThislessVariableLikeDeclaration(node) { - const typeNode = getEffectiveTypeAnnotationNode(node); - return typeNode ? isThislessType(typeNode) : !hasInitializer(node); - } - function isThislessFunctionLikeDeclaration(node) { - const returnType = getEffectiveReturnTypeNode(node); - const typeParameters = getEffectiveTypeParameterDeclarations(node); - return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); - } - function isThisless(symbol) { - if (symbol.declarations && symbol.declarations.length === 1) { - const declaration = symbol.declarations[0]; - if (declaration) { - switch (declaration.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return isThislessVariableLikeDeclaration(declaration); - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return isThislessFunctionLikeDeclaration(declaration); - } - } - } - return false; - } - function createInstantiatedSymbolTable(symbols, mapper, mappingThisOnly) { - const result = createSymbolTable(); - for (const symbol of symbols) { - result.set(symbol.escapedName, mappingThisOnly && isThisless(symbol) ? symbol : instantiateSymbol(symbol, mapper)); - } - return result; - } - function addInheritedMembers(symbols, baseSymbols) { - for (const base of baseSymbols) { - if (isStaticPrivateIdentifierProperty(base)) { - continue; - } - const derived = symbols.get(base.escapedName); - if (!derived || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration) && !isConstructorDeclaredProperty(derived) && !getContainingClassStaticBlock(derived.valueDeclaration)) { - symbols.set(base.escapedName, base); - symbols.set(base.escapedName, base); - } - } - } - function isStaticPrivateIdentifierProperty(s) { - return !!s.valueDeclaration && isPrivateIdentifierClassElementDeclaration(s.valueDeclaration) && isStatic(s.valueDeclaration); - } - function resolveDeclaredMembers(type) { - if (!type.declaredProperties) { - const symbol = type.symbol; - const members = getMembersOfSymbol(symbol); - type.declaredProperties = getNamedMembers(members); - type.declaredCallSignatures = emptyArray; - type.declaredConstructSignatures = emptyArray; - type.declaredIndexInfos = emptyArray; - type.declaredCallSignatures = getSignaturesOfSymbol(members.get("__call" /* Call */)); - type.declaredConstructSignatures = getSignaturesOfSymbol(members.get("__new" /* New */)); - type.declaredIndexInfos = getIndexInfosOfSymbol(symbol); - } - return type; - } - function isLateBindableName(node) { - return isLateBindableAST(node) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(node.argumentExpression)); - } - function isLateBindableIndexSignature(node) { - return isLateBindableAST(node) && isTypeUsableAsIndexSignature(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(node.argumentExpression)); - } - function isLateBindableAST(node) { - if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { - return false; - } - const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression; - return isEntityNameExpression(expr); - } - function isTypeUsableAsIndexSignature(type) { - return isTypeAssignableTo(type, stringNumberSymbolType); - } - function isLateBoundName(name) { - return name.charCodeAt(0) === 95 /* _ */ && name.charCodeAt(1) === 95 /* _ */ && name.charCodeAt(2) === 64 /* at */; - } - function hasLateBindableName(node) { - const name = getNameOfDeclaration(node); - return !!name && isLateBindableName(name); - } - function hasLateBindableIndexSignature(node) { - const name = getNameOfDeclaration(node); - return !!name && isLateBindableIndexSignature(name); - } - function hasBindableName(node) { - return !hasDynamicName(node) || hasLateBindableName(node); - } - function isNonBindableDynamicName(node) { - return isDynamicName(node) && !isLateBindableName(node); - } - function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { - Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); - symbol.flags |= symbolFlags; - getSymbolLinks(member.symbol).lateSymbol = symbol; - if (!symbol.declarations) { - symbol.declarations = [member]; - } else if (!member.symbol.isReplaceableByMethod) { - symbol.declarations.push(member); - } - if (symbolFlags & 111551 /* Value */) { - if (!symbol.valueDeclaration || symbol.valueDeclaration.kind !== member.kind) { - symbol.valueDeclaration = member; - } - } - } - function lateBindMember(parent, earlySymbols, lateSymbols, decl) { - Debug.assert(!!decl.symbol, "The member is expected to have a symbol."); - const links = getNodeLinks(decl); - if (!links.resolvedSymbol) { - links.resolvedSymbol = decl.symbol; - const declName = isBinaryExpression(decl) ? decl.left : decl.name; - const type = isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName); - if (isTypeUsableAsPropertyName(type)) { - const memberName = getPropertyNameFromType(type); - const symbolFlags = decl.symbol.flags; - let lateSymbol = lateSymbols.get(memberName); - if (!lateSymbol) lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */)); - const earlySymbol = earlySymbols && earlySymbols.get(memberName); - if (!(parent.flags & 32 /* Class */) && lateSymbol.flags & getExcludedSymbolFlags(symbolFlags)) { - const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations; - const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName); - forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); - error(declName || decl, Diagnostics.Duplicate_property_0, name); - lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */); - } - lateSymbol.links.nameType = type; - addDeclarationToLateBoundSymbol(lateSymbol, decl, symbolFlags); - if (lateSymbol.parent) { - Debug.assert(lateSymbol.parent === parent, "Existing symbol parent should match new one"); - } else { - lateSymbol.parent = parent; - } - return links.resolvedSymbol = lateSymbol; - } - } - return links.resolvedSymbol; - } - function lateBindIndexSignature(parent, earlySymbols, lateSymbols, decl) { - let indexSymbol = lateSymbols.get("__index" /* Index */); - if (!indexSymbol) { - const early = earlySymbols == null ? void 0 : earlySymbols.get("__index" /* Index */); - if (!early) { - indexSymbol = createSymbol(0 /* None */, "__index" /* Index */, 4096 /* Late */); - } else { - indexSymbol = cloneSymbol(early); - indexSymbol.links.checkFlags |= 4096 /* Late */; - } - lateSymbols.set("__index" /* Index */, indexSymbol); - } - if (!indexSymbol.declarations) { - indexSymbol.declarations = [decl]; - } else if (!decl.symbol.isReplaceableByMethod) { - indexSymbol.declarations.push(decl); - } - } - function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { - const links = getSymbolLinks(symbol); - if (!links[resolutionKind]) { - const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; - const earlySymbols = !isStatic2 ? symbol.members : symbol.flags & 1536 /* Module */ ? getExportsOfModuleWorker(symbol).exports : symbol.exports; - links[resolutionKind] = earlySymbols || emptySymbols; - const lateSymbols = createSymbolTable(); - for (const decl of symbol.declarations || emptyArray) { - const members = getMembersOfDeclaration(decl); - if (members) { - for (const member of members) { - if (isStatic2 === hasStaticModifier(member)) { - if (hasLateBindableName(member)) { - lateBindMember(symbol, earlySymbols, lateSymbols, member); - } else if (hasLateBindableIndexSignature(member)) { - lateBindIndexSignature(symbol, earlySymbols, lateSymbols, member); - } - } - } - } - } - const assignments = getFunctionExpressionParentSymbolOrSymbol(symbol).assignmentDeclarationMembers; - if (assignments) { - const decls = arrayFrom(assignments.values()); - for (const member of decls) { - const assignmentKind = getAssignmentDeclarationKind(member); - const isInstanceMember = assignmentKind === 3 /* PrototypeProperty */ || isBinaryExpression(member) && isPossiblyAliasedThisProperty(member, assignmentKind) || assignmentKind === 9 /* ObjectDefinePrototypeProperty */ || assignmentKind === 6 /* Prototype */; - if (isStatic2 === !isInstanceMember) { - if (hasLateBindableName(member)) { - lateBindMember(symbol, earlySymbols, lateSymbols, member); - } - } - } - } - let resolved = combineSymbolTables(earlySymbols, lateSymbols); - if (symbol.flags & 33554432 /* Transient */ && links.cjsExportMerged && symbol.declarations) { - for (const decl of symbol.declarations) { - const original = getSymbolLinks(decl.symbol)[resolutionKind]; - if (!resolved) { - resolved = original; - continue; - } - if (!original) continue; - original.forEach((s, name) => { - const existing = resolved.get(name); - if (!existing) resolved.set(name, s); - else if (existing === s) return; - else resolved.set(name, mergeSymbol(existing, s)); - }); - } - } - links[resolutionKind] = resolved || emptySymbols; - } - return links[resolutionKind]; - } - function getMembersOfSymbol(symbol) { - return symbol.flags & 6256 /* LateBindingContainer */ ? getResolvedMembersOrExportsOfSymbol(symbol, "resolvedMembers" /* resolvedMembers */) : symbol.members || emptySymbols; - } - function getLateBoundSymbol(symbol) { - if (symbol.flags & 106500 /* ClassMember */ && symbol.escapedName === "__computed" /* Computed */) { - const links = getSymbolLinks(symbol); - if (!links.lateSymbol && some(symbol.declarations, hasLateBindableName)) { - const parent = getMergedSymbol(symbol.parent); - if (some(symbol.declarations, hasStaticModifier)) { - getExportsOfSymbol(parent); - } else { - getMembersOfSymbol(parent); - } - } - return links.lateSymbol || (links.lateSymbol = symbol); - } - return symbol; - } - function getTypeWithThisArgument(type, thisArgument, needApparentType) { - if (getObjectFlags(type) & 4 /* Reference */) { - const target = type.target; - const typeArguments = getTypeArguments(type); - return length(target.typeParameters) === length(typeArguments) ? createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType])) : type; - } else if (type.flags & 2097152 /* Intersection */) { - const types = sameMap(type.types, (t) => getTypeWithThisArgument(t, thisArgument, needApparentType)); - return types !== type.types ? getIntersectionType(types) : type; - } - return needApparentType ? getApparentType(type) : type; - } - function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) { - let mapper; - let members; - let callSignatures; - let constructSignatures; - let indexInfos; - if (rangeEquals(typeParameters, typeArguments, 0, typeParameters.length)) { - members = source.symbol ? getMembersOfSymbol(source.symbol) : createSymbolTable(source.declaredProperties); - callSignatures = source.declaredCallSignatures; - constructSignatures = source.declaredConstructSignatures; - indexInfos = source.declaredIndexInfos; - } else { - mapper = createTypeMapper(typeParameters, typeArguments); - members = createInstantiatedSymbolTable( - source.declaredProperties, - mapper, - /*mappingThisOnly*/ - typeParameters.length === 1 - ); - callSignatures = instantiateSignatures(source.declaredCallSignatures, mapper); - constructSignatures = instantiateSignatures(source.declaredConstructSignatures, mapper); - indexInfos = instantiateIndexInfos(source.declaredIndexInfos, mapper); - } - const baseTypes = getBaseTypes(source); - if (baseTypes.length) { - if (source.symbol && members === getMembersOfSymbol(source.symbol)) { - const symbolTable = createSymbolTable(source.declaredProperties); - const sourceIndex = getIndexSymbol(source.symbol); - if (sourceIndex) { - symbolTable.set("__index" /* Index */, sourceIndex); - } - members = symbolTable; - } - setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos); - const thisArgument = lastOrUndefined(typeArguments); - for (const baseType of baseTypes) { - const instantiatedBaseType = thisArgument ? getTypeWithThisArgument(instantiateType(baseType, mapper), thisArgument) : baseType; - addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType)); - callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */)); - constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */)); - const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo]; - indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType))); - } - } - setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos); - } - function resolveClassOrInterfaceMembers(type) { - resolveObjectTypeMembers(type, resolveDeclaredMembers(type), emptyArray, emptyArray); - } - function resolveTypeReferenceMembers(type) { - const source = resolveDeclaredMembers(type.target); - const typeParameters = concatenate(source.typeParameters, [source.thisType]); - const typeArguments = getTypeArguments(type); - const paddedTypeArguments = typeArguments.length === typeParameters.length ? typeArguments : concatenate(typeArguments, [type]); - resolveObjectTypeMembers(type, source, typeParameters, paddedTypeArguments); - } - function createSignature(declaration, typeParameters, thisParameter, parameters, resolvedReturnType, resolvedTypePredicate, minArgumentCount, flags) { - const sig = new Signature5(checker, flags); - sig.declaration = declaration; - sig.typeParameters = typeParameters; - sig.parameters = parameters; - sig.thisParameter = thisParameter; - sig.resolvedReturnType = resolvedReturnType; - sig.resolvedTypePredicate = resolvedTypePredicate; - sig.minArgumentCount = minArgumentCount; - sig.resolvedMinArgumentCount = void 0; - sig.target = void 0; - sig.mapper = void 0; - sig.compositeSignatures = void 0; - sig.compositeKind = void 0; - return sig; - } - function cloneSignature(sig) { - const result = createSignature( - sig.declaration, - sig.typeParameters, - sig.thisParameter, - sig.parameters, - /*resolvedReturnType*/ - void 0, - /*resolvedTypePredicate*/ - void 0, - sig.minArgumentCount, - sig.flags & 167 /* PropagatingFlags */ - ); - result.target = sig.target; - result.mapper = sig.mapper; - result.compositeSignatures = sig.compositeSignatures; - result.compositeKind = sig.compositeKind; - return result; - } - function createUnionSignature(signature, unionSignatures) { - const result = cloneSignature(signature); - result.compositeSignatures = unionSignatures; - result.compositeKind = 1048576 /* Union */; - result.target = void 0; - result.mapper = void 0; - return result; - } - function getOptionalCallSignature(signature, callChainFlags) { - if ((signature.flags & 24 /* CallChainFlags */) === callChainFlags) { - return signature; - } - if (!signature.optionalCallSignatureCache) { - signature.optionalCallSignatureCache = {}; - } - const key = callChainFlags === 8 /* IsInnerCallChain */ ? "inner" : "outer"; - return signature.optionalCallSignatureCache[key] || (signature.optionalCallSignatureCache[key] = createOptionalCallSignature(signature, callChainFlags)); - } - function createOptionalCallSignature(signature, callChainFlags) { - Debug.assert(callChainFlags === 8 /* IsInnerCallChain */ || callChainFlags === 16 /* IsOuterCallChain */, "An optional call signature can either be for an inner call chain or an outer call chain, but not both."); - const result = cloneSignature(signature); - result.flags |= callChainFlags; - return result; - } - function getExpandedParameters(sig, skipUnionExpanding) { - if (signatureHasRestParameter(sig)) { - const restIndex = sig.parameters.length - 1; - const restSymbol = sig.parameters[restIndex]; - const restType = getTypeOfSymbol(restSymbol); - if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex, restSymbol)]; - } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restSymbol)); - } - } - return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex, restSymbol) { - const elementTypes = getTypeArguments(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restSymbol); - const restParams = map(elementTypes, (t, i) => { - const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); - const flags = restType.target.elementFlags[i]; - const checkFlags = flags & 12 /* Variable */ ? 32768 /* RestParameter */ : flags & 2 /* Optional */ ? 16384 /* OptionalParameter */ : 0; - const symbol = createSymbol(1 /* FunctionScopedVariable */, name, checkFlags); - symbol.links.type = flags & 4 /* Rest */ ? createArrayType(t) : t; - return symbol; - }); - return concatenate(sig.parameters.slice(0, restIndex), restParams); - } - function getUniqAssociatedNamesFromTupleType(type, restSymbol) { - const names = map(type.target.labeledElementDeclarations, (labeledElement, i) => getTupleElementLabel(labeledElement, i, type.target.elementFlags[i], restSymbol)); - if (names) { - const duplicates = []; - const uniqueNames = /* @__PURE__ */ new Set(); - for (let i = 0; i < names.length; i++) { - const name = names[i]; - if (!tryAddToSet(uniqueNames, name)) { - duplicates.push(i); - } - } - const counters = /* @__PURE__ */ new Map(); - for (const i of duplicates) { - let counter = counters.get(names[i]) ?? 1; - let name; - while (!tryAddToSet(uniqueNames, name = `${names[i]}_${counter}`)) { - counter++; - } - names[i] = name; - counters.set(names[i], counter + 1); - } - } - return names; - } - } - function getDefaultConstructSignatures(classType) { - const baseConstructorType = getBaseConstructorTypeOfClass(classType); - const baseSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); - const declaration = getClassLikeDeclarationOfSymbol(classType.symbol); - const isAbstract = !!declaration && hasSyntacticModifier(declaration, 64 /* Abstract */); - if (baseSignatures.length === 0) { - return [createSignature( - /*declaration*/ - void 0, - classType.localTypeParameters, - /*thisParameter*/ - void 0, - emptyArray, - classType, - /*resolvedTypePredicate*/ - void 0, - 0, - isAbstract ? 4 /* Abstract */ : 0 /* None */ - )]; - } - const baseTypeNode = getBaseTypeNodeOfClass(classType); - const isJavaScript = isInJSFile(baseTypeNode); - const typeArguments = typeArgumentsFromTypeReferenceNode(baseTypeNode); - const typeArgCount = length(typeArguments); - const result = []; - for (const baseSig of baseSignatures) { - const minTypeArgumentCount = getMinTypeArgumentCount(baseSig.typeParameters); - const typeParamCount = length(baseSig.typeParameters); - if (isJavaScript || typeArgCount >= minTypeArgumentCount && typeArgCount <= typeParamCount) { - const sig = typeParamCount ? createSignatureInstantiation(baseSig, fillMissingTypeArguments(typeArguments, baseSig.typeParameters, minTypeArgumentCount, isJavaScript)) : cloneSignature(baseSig); - sig.typeParameters = classType.localTypeParameters; - sig.resolvedReturnType = classType; - sig.flags = isAbstract ? sig.flags | 4 /* Abstract */ : sig.flags & ~4 /* Abstract */; - result.push(sig); - } - } - return result; - } - function findMatchingSignature(signatureList, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes) { - for (const s of signatureList) { - if (compareSignaturesIdentical(s, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes, partialMatch ? compareTypesSubtypeOf : compareTypesIdentical)) { - return s; - } - } - } - function findMatchingSignatures(signatureLists, signature, listIndex) { - if (signature.typeParameters) { - if (listIndex > 0) { - return void 0; - } - for (let i = 1; i < signatureLists.length; i++) { - if (!findMatchingSignature( - signatureLists[i], - signature, - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - false - )) { - return void 0; - } - } - return [signature]; - } - let result; - for (let i = 0; i < signatureLists.length; i++) { - const match = i === listIndex ? signature : findMatchingSignature( - signatureLists[i], - signature, - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - true - ) || findMatchingSignature( - signatureLists[i], - signature, - /*partialMatch*/ - true, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - true - ); - if (!match) { - return void 0; - } - result = appendIfUnique(result, match); - } - return result; - } - function getUnionSignatures(signatureLists) { - let result; - let indexWithLengthOverOne; - for (let i = 0; i < signatureLists.length; i++) { - if (signatureLists[i].length === 0) return emptyArray; - if (signatureLists[i].length > 1) { - indexWithLengthOverOne = indexWithLengthOverOne === void 0 ? i : -1; - } - for (const signature of signatureLists[i]) { - if (!result || !findMatchingSignature( - result, - signature, - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - true - )) { - const unionSignatures = findMatchingSignatures(signatureLists, signature, i); - if (unionSignatures) { - let s = signature; - if (unionSignatures.length > 1) { - let thisParameter = signature.thisParameter; - const firstThisParameterOfUnionSignatures = forEach(unionSignatures, (sig) => sig.thisParameter); - if (firstThisParameterOfUnionSignatures) { - const thisType = getIntersectionType(mapDefined(unionSignatures, (sig) => sig.thisParameter && getTypeOfSymbol(sig.thisParameter))); - thisParameter = createSymbolWithType(firstThisParameterOfUnionSignatures, thisType); - } - s = createUnionSignature(signature, unionSignatures); - s.thisParameter = thisParameter; - } - (result || (result = [])).push(s); - } - } - } - } - if (!length(result) && indexWithLengthOverOne !== -1) { - const masterList = signatureLists[indexWithLengthOverOne !== void 0 ? indexWithLengthOverOne : 0]; - let results = masterList.slice(); - for (const signatures of signatureLists) { - if (signatures !== masterList) { - const signature = signatures[0]; - Debug.assert(!!signature, "getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"); - results = !!signature.typeParameters && some(results, (s) => !!s.typeParameters && !compareTypeParametersIdentical(signature.typeParameters, s.typeParameters)) ? void 0 : map(results, (sig) => combineSignaturesOfUnionMembers(sig, signature)); - if (!results) { - break; - } - } - } - result = results; - } - return result || emptyArray; - } - function compareTypeParametersIdentical(sourceParams, targetParams) { - if (length(sourceParams) !== length(targetParams)) { - return false; - } - if (!sourceParams || !targetParams) { - return true; - } - const mapper = createTypeMapper(targetParams, sourceParams); - for (let i = 0; i < sourceParams.length; i++) { - const source = sourceParams[i]; - const target = targetParams[i]; - if (source === target) continue; - if (!isTypeIdenticalTo(getConstraintFromTypeParameter(source) || unknownType, instantiateType(getConstraintFromTypeParameter(target) || unknownType, mapper))) return false; - } - return true; - } - function combineUnionThisParam(left, right, mapper) { - if (!left || !right) { - return left || right; - } - const thisType = getIntersectionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]); - return createSymbolWithType(left, thisType); - } - function combineUnionParameters(left, right, mapper) { - const leftCount = getParameterCount(left); - const rightCount = getParameterCount(right); - const longest = leftCount >= rightCount ? left : right; - const shorter = longest === left ? right : left; - const longestCount = longest === left ? leftCount : rightCount; - const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right); - const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest); - const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0)); - for (let i = 0; i < longestCount; i++) { - let longestParamType = tryGetTypeAtPosition(longest, i); - if (longest === right) { - longestParamType = instantiateType(longestParamType, mapper); - } - let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType; - if (shorter === right) { - shorterParamType = instantiateType(shorterParamType, mapper); - } - const unionParamType = getIntersectionType([longestParamType, shorterParamType]); - const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1; - const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter); - const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i); - const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i); - const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0; - const paramSymbol = createSymbol( - 1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), - paramName || `arg${i}`, - isRestParam ? 32768 /* RestParameter */ : isOptional ? 16384 /* OptionalParameter */ : 0 - ); - paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType; - params[i] = paramSymbol; - } - if (needsExtraRestElement) { - const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args", 32768 /* RestParameter */); - restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount)); - if (shorter === right) { - restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper); - } - params[longestCount] = restParamSymbol; - } - return params; - } - function combineSignaturesOfUnionMembers(left, right) { - const typeParams = left.typeParameters || right.typeParameters; - let paramMapper; - if (left.typeParameters && right.typeParameters) { - paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); - } - let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */); - const declaration = left.declaration; - const params = combineUnionParameters(left, right, paramMapper); - const lastParam = lastOrUndefined(params); - if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) { - flags |= 1 /* HasRestParameter */; - } - const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper); - const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); - const result = createSignature( - declaration, - typeParams, - thisParam, - params, - /*resolvedReturnType*/ - void 0, - /*resolvedTypePredicate*/ - void 0, - minArgCount, - flags - ); - result.compositeKind = 1048576 /* Union */; - result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); - if (paramMapper) { - result.mapper = left.compositeKind !== 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper; - } else if (left.compositeKind !== 2097152 /* Intersection */ && left.mapper && left.compositeSignatures) { - result.mapper = left.mapper; - } - return result; - } - function getUnionIndexInfos(types) { - const sourceInfos = getIndexInfosOfType(types[0]); - if (sourceInfos) { - const result = []; - for (const info of sourceInfos) { - const indexType = info.keyType; - if (every(types, (t) => !!getIndexInfoOfType(t, indexType))) { - result.push(createIndexInfo(indexType, getUnionType(map(types, (t) => getIndexTypeOfType(t, indexType))), some(types, (t) => getIndexInfoOfType(t, indexType).isReadonly))); - } - } - return result; - } - return emptyArray; - } - function resolveUnionTypeMembers(type) { - const callSignatures = getUnionSignatures(map(type.types, (t) => t === globalFunctionType ? [unknownSignature] : getSignaturesOfType(t, 0 /* Call */))); - const constructSignatures = getUnionSignatures(map(type.types, (t) => getSignaturesOfType(t, 1 /* Construct */))); - const indexInfos = getUnionIndexInfos(type.types); - setStructuredTypeMembers(type, emptySymbols, callSignatures, constructSignatures, indexInfos); - } - function intersectTypes(type1, type2) { - return !type1 ? type2 : !type2 ? type1 : getIntersectionType([type1, type2]); - } - function findMixins(types) { - const constructorTypeCount = countWhere(types, (t) => getSignaturesOfType(t, 1 /* Construct */).length > 0); - const mixinFlags = map(types, isMixinConstructorType); - if (constructorTypeCount > 0 && constructorTypeCount === countWhere(mixinFlags, (b) => b)) { - const firstMixinIndex = mixinFlags.indexOf( - /*searchElement*/ - true - ); - mixinFlags[firstMixinIndex] = false; - } - return mixinFlags; - } - function includeMixinType(type, types, mixinFlags, index) { - const mixedTypes = []; - for (let i = 0; i < types.length; i++) { - if (i === index) { - mixedTypes.push(type); - } else if (mixinFlags[i]) { - mixedTypes.push(getReturnTypeOfSignature(getSignaturesOfType(types[i], 1 /* Construct */)[0])); - } - } - return getIntersectionType(mixedTypes); - } - function resolveIntersectionTypeMembers(type) { - let callSignatures; - let constructSignatures; - let indexInfos; - const types = type.types; - const mixinFlags = findMixins(types); - const mixinCount = countWhere(mixinFlags, (b) => b); - for (let i = 0; i < types.length; i++) { - const t = type.types[i]; - if (!mixinFlags[i]) { - let signatures = getSignaturesOfType(t, 1 /* Construct */); - if (signatures.length && mixinCount > 0) { - signatures = map(signatures, (s) => { - const clone = cloneSignature(s); - clone.resolvedReturnType = includeMixinType(getReturnTypeOfSignature(s), types, mixinFlags, i); - return clone; - }); - } - constructSignatures = appendSignatures(constructSignatures, signatures); - } - callSignatures = appendSignatures(callSignatures, getSignaturesOfType(t, 0 /* Call */)); - indexInfos = reduceLeft(getIndexInfosOfType(t), (infos, newInfo) => appendIndexInfo( - infos, - newInfo, - /*union*/ - false - ), indexInfos); - } - setStructuredTypeMembers(type, emptySymbols, callSignatures || emptyArray, constructSignatures || emptyArray, indexInfos || emptyArray); - } - function appendSignatures(signatures, newSignatures) { - for (const sig of newSignatures) { - if (!signatures || every(signatures, (s) => !compareSignaturesIdentical( - s, - sig, - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - false, - compareTypesIdentical - ))) { - signatures = append(signatures, sig); - } - } - return signatures; - } - function appendIndexInfo(indexInfos, newInfo, union) { - if (indexInfos) { - for (let i = 0; i < indexInfos.length; i++) { - const info = indexInfos[i]; - if (info.keyType === newInfo.keyType) { - indexInfos[i] = createIndexInfo(info.keyType, union ? getUnionType([info.type, newInfo.type]) : getIntersectionType([info.type, newInfo.type]), union ? info.isReadonly || newInfo.isReadonly : info.isReadonly && newInfo.isReadonly); - return indexInfos; - } - } - } - return append(indexInfos, newInfo); - } - function resolveAnonymousTypeMembers(type) { - if (type.target) { - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); - const members2 = createInstantiatedSymbolTable( - getPropertiesOfObjectType(type.target), - type.mapper, - /*mappingThisOnly*/ - false - ); - const callSignatures = instantiateSignatures(getSignaturesOfType(type.target, 0 /* Call */), type.mapper); - const constructSignatures = instantiateSignatures(getSignaturesOfType(type.target, 1 /* Construct */), type.mapper); - const indexInfos2 = instantiateIndexInfos(getIndexInfosOfType(type.target), type.mapper); - setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); - return; - } - const symbol = getMergedSymbol(type.symbol); - if (symbol.flags & 2048 /* TypeLiteral */) { - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); - const members2 = getMembersOfSymbol(symbol); - const callSignatures = getSignaturesOfSymbol(members2.get("__call" /* Call */)); - const constructSignatures = getSignaturesOfSymbol(members2.get("__new" /* New */)); - const indexInfos2 = getIndexInfosOfSymbol(symbol); - setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); - return; - } - let members = getExportsOfSymbol(symbol); - let indexInfos; - if (symbol === globalThisSymbol) { - const varsOnly = /* @__PURE__ */ new Map(); - members.forEach((p) => { - var _a; - if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { - varsOnly.set(p.escapedName, p); - } - }); - members = varsOnly; - } - let baseConstructorIndexInfo; - setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); - if (symbol.flags & 32 /* Class */) { - const classType = getDeclaredTypeOfClassOrInterface(symbol); - const baseConstructorType = getBaseConstructorTypeOfClass(classType); - if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 8650752 /* TypeVariable */)) { - members = createSymbolTable(getNamedOrIndexSignatureMembers(members)); - addInheritedMembers(members, getPropertiesOfType(baseConstructorType)); - } else if (baseConstructorType === anyType) { - baseConstructorIndexInfo = anyBaseTypeIndexInfo; - } - } - const indexSymbol = getIndexSymbolFromSymbolTable(members); - if (indexSymbol) { - indexInfos = getIndexInfosOfIndexSymbol(indexSymbol, arrayFrom(members.values())); - } else { - if (baseConstructorIndexInfo) { - indexInfos = append(indexInfos, baseConstructorIndexInfo); - } - if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) { - indexInfos = append(indexInfos, enumNumberIndexInfo); - } - } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray); - if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { - type.callSignatures = getSignaturesOfSymbol(symbol); - } - if (symbol.flags & 32 /* Class */) { - const classType = getDeclaredTypeOfClassOrInterface(symbol); - let constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get("__constructor" /* Constructor */)) : emptyArray; - if (symbol.flags & 16 /* Function */) { - constructSignatures = addRange( - constructSignatures.slice(), - mapDefined( - type.callSignatures, - (sig) => isJSConstructor(sig.declaration) ? createSignature( - sig.declaration, - sig.typeParameters, - sig.thisParameter, - sig.parameters, - classType, - /*resolvedTypePredicate*/ - void 0, - sig.minArgumentCount, - sig.flags & 167 /* PropagatingFlags */ - ) : void 0 - ) - ); - } - if (!constructSignatures.length) { - constructSignatures = getDefaultConstructSignatures(classType); - } - type.constructSignatures = constructSignatures; - } - } - function replaceIndexedAccess(instantiable, type, replacement) { - return instantiateType(instantiable, createTypeMapper([type.indexType, type.objectType], [getNumberLiteralType(0), createTupleType([replacement])])); - } - function getLimitedConstraint(type) { - const constraint = getConstraintTypeFromMappedType(type.mappedType); - if (!(constraint.flags & 1048576 /* Union */ || constraint.flags & 2097152 /* Intersection */)) { - return; - } - const origin = constraint.flags & 1048576 /* Union */ ? constraint.origin : constraint; - if (!origin || !(origin.flags & 2097152 /* Intersection */)) { - return; - } - const limitedConstraint = getIntersectionType(origin.types.filter((t) => t !== type.constraintType)); - return limitedConstraint !== neverType ? limitedConstraint : void 0; - } - function resolveReverseMappedTypeMembers(type) { - const indexInfo = getIndexInfoOfType(type.source, stringType); - const modifiers = getMappedTypeModifiers(type.mappedType); - const readonlyMask = modifiers & 1 /* IncludeReadonly */ ? false : true; - const optionalMask = modifiers & 4 /* IncludeOptional */ ? 0 : 16777216 /* Optional */; - const indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType) || unknownType, readonlyMask && indexInfo.isReadonly)] : emptyArray; - const members = createSymbolTable(); - const limitedConstraint = getLimitedConstraint(type); - for (const prop of getPropertiesOfType(type.source)) { - if (limitedConstraint) { - const propertyNameType = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */); - if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) { - continue; - } - } - const checkFlags = 8192 /* ReverseMapped */ | (readonlyMask && isReadonlySymbol(prop) ? 8 /* Readonly */ : 0); - const inferredProp = createSymbol(4 /* Property */ | prop.flags & optionalMask, prop.escapedName, checkFlags); - inferredProp.declarations = prop.declarations; - inferredProp.links.nameType = getSymbolLinks(prop).nameType; - inferredProp.links.propertyType = getTypeOfSymbol(prop); - if (type.constraintType.type.flags & 8388608 /* IndexedAccess */ && type.constraintType.type.objectType.flags & 262144 /* TypeParameter */ && type.constraintType.type.indexType.flags & 262144 /* TypeParameter */) { - const newTypeParam = type.constraintType.type.objectType; - const newMappedType = replaceIndexedAccess(type.mappedType, type.constraintType.type, newTypeParam); - inferredProp.links.mappedType = newMappedType; - inferredProp.links.constraintType = getIndexType(newTypeParam); - } else { - inferredProp.links.mappedType = type.mappedType; - inferredProp.links.constraintType = type.constraintType; - } - members.set(prop.escapedName, inferredProp); - } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos); - } - function getLowerBoundOfKeyType(type) { - if (type.flags & 4194304 /* Index */) { - const t = getApparentType(type.type); - return isGenericTupleType(t) ? getKnownKeysOfTupleType(t) : getIndexType(t); - } - if (type.flags & 16777216 /* Conditional */) { - if (type.root.isDistributive) { - const checkType = type.checkType; - const constraint = getLowerBoundOfKeyType(checkType); - if (constraint !== checkType) { - return getConditionalTypeInstantiation( - type, - prependTypeMapping(type.root.checkType, constraint, type.mapper), - /*forConstraint*/ - false - ); - } - } - return type; - } - if (type.flags & 1048576 /* Union */) { - return mapType( - type, - getLowerBoundOfKeyType, - /*noReductions*/ - true - ); - } - if (type.flags & 2097152 /* Intersection */) { - const types = type.types; - if (types.length === 2 && !!(types[0].flags & (4 /* String */ | 8 /* Number */ | 64 /* BigInt */)) && types[1] === emptyTypeLiteralType) { - return type; - } - return getIntersectionType(sameMap(type.types, getLowerBoundOfKeyType)); - } - return type; - } - function getIsLateCheckFlag(s) { - return getCheckFlags(s) & 4096 /* Late */; - } - function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) { - for (const prop of getPropertiesOfType(type)) { - cb(getLiteralTypeFromProperty(prop, include)); - } - if (type.flags & 1 /* Any */) { - cb(stringType); - } else { - for (const info of getIndexInfosOfType(type)) { - if (!stringsOnly || info.keyType.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) { - cb(info.keyType); - } - } - } - } - function resolveMappedTypeMembers(type) { - const members = createSymbolTable(); - let indexInfos; - setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); - const typeParameter = getTypeParameterFromMappedType(type); - const constraintType = getConstraintTypeFromMappedType(type); - const mappedType = type.target || type; - const nameType = getNameTypeFromMappedType(mappedType); - const shouldLinkPropDeclarations = getMappedTypeNameTypeKind(mappedType) !== 2 /* Remapping */; - const templateType = getTemplateTypeFromMappedType(mappedType); - const modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); - const templateModifiers = getMappedTypeModifiers(type); - const include = 8576 /* StringOrNumberLiteralOrUnique */; - if (isMappedTypeWithKeyofConstraintDeclaration(type)) { - forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType( - modifiersType, - include, - /*stringsOnly*/ - false, - addMemberForKeyType - ); - } else { - forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType); - } - setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray); - function addMemberForKeyType(keyType) { - const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType; - forEachType(propNameType, (t) => addMemberForKeyTypeWorker(keyType, t)); - } - function addMemberForKeyTypeWorker(keyType, propNameType) { - if (isTypeUsableAsPropertyName(propNameType)) { - const propName = getPropertyNameFromType(propNameType); - const existingProp = members.get(propName); - if (existingProp) { - existingProp.links.nameType = getUnionType([existingProp.links.nameType, propNameType]); - existingProp.links.keyType = getUnionType([existingProp.links.keyType, keyType]); - } else { - const modifiersProp = isTypeUsableAsPropertyName(keyType) ? getPropertyOfType(modifiersType, getPropertyNameFromType(keyType)) : void 0; - const isOptional = !!(templateModifiers & 4 /* IncludeOptional */ || !(templateModifiers & 8 /* ExcludeOptional */) && modifiersProp && modifiersProp.flags & 16777216 /* Optional */); - const isReadonly = !!(templateModifiers & 1 /* IncludeReadonly */ || !(templateModifiers & 2 /* ExcludeReadonly */) && modifiersProp && isReadonlySymbol(modifiersProp)); - const stripOptional = strictNullChecks && !isOptional && modifiersProp && modifiersProp.flags & 16777216 /* Optional */; - const lateFlag = modifiersProp ? getIsLateCheckFlag(modifiersProp) : 0; - const prop = createSymbol(4 /* Property */ | (isOptional ? 16777216 /* Optional */ : 0), propName, lateFlag | 262144 /* Mapped */ | (isReadonly ? 8 /* Readonly */ : 0) | (stripOptional ? 524288 /* StripOptional */ : 0)); - prop.links.mappedType = type; - prop.links.nameType = propNameType; - prop.links.keyType = keyType; - if (modifiersProp) { - prop.links.syntheticOrigin = modifiersProp; - prop.declarations = shouldLinkPropDeclarations ? modifiersProp.declarations : void 0; - } - members.set(propName, prop); - } - } else if (isValidIndexKeyType(propNameType) || propNameType.flags & (1 /* Any */ | 32 /* Enum */)) { - const indexKeyType = propNameType.flags & (1 /* Any */ | 4 /* String */) ? stringType : propNameType.flags & (8 /* Number */ | 32 /* Enum */) ? numberType : propNameType; - const propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType)); - const modifiersIndexInfo = getApplicableIndexInfo(modifiersType, propNameType); - const isReadonly = !!(templateModifiers & 1 /* IncludeReadonly */ || !(templateModifiers & 2 /* ExcludeReadonly */) && (modifiersIndexInfo == null ? void 0 : modifiersIndexInfo.isReadonly)); - const indexInfo = createIndexInfo(indexKeyType, propType, isReadonly); - indexInfos = appendIndexInfo( - indexInfos, - indexInfo, - /*union*/ - true - ); - } - } - } - function getTypeOfMappedSymbol(symbol) { - var _a; - if (!symbol.links.type) { - const mappedType = symbol.links.mappedType; - if (!pushTypeResolution(symbol, 0 /* Type */)) { - mappedType.containsError = true; - return errorType; - } - const templateType = getTemplateTypeFromMappedType(mappedType.target || mappedType); - const mapper = appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), symbol.links.keyType); - const propType = instantiateType(templateType, mapper); - let type = strictNullChecks && symbol.flags & 16777216 /* Optional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType( - propType, - /*isProperty*/ - true - ) : symbol.links.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) : propType; - if (!popTypeResolution()) { - error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); - type = errorType; - } - (_a = symbol.links).type ?? (_a.type = type); - } - return symbol.links.type; - } - function getTypeParameterFromMappedType(type) { - return type.typeParameter || (type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(type.declaration.typeParameter))); - } - function getConstraintTypeFromMappedType(type) { - return type.constraintType || (type.constraintType = getConstraintOfTypeParameter(getTypeParameterFromMappedType(type)) || errorType); - } - function getNameTypeFromMappedType(type) { - return type.declaration.nameType ? type.nameType || (type.nameType = instantiateType(getTypeFromTypeNode(type.declaration.nameType), type.mapper)) : void 0; - } - function getTemplateTypeFromMappedType(type) { - return type.templateType || (type.templateType = type.declaration.type ? instantiateType(addOptionality( - getTypeFromTypeNode(type.declaration.type), - /*isProperty*/ - true, - !!(getMappedTypeModifiers(type) & 4 /* IncludeOptional */) - ), type.mapper) : errorType); - } - function getConstraintDeclarationForMappedType(type) { - return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter); - } - function isMappedTypeWithKeyofConstraintDeclaration(type) { - const constraintDeclaration = getConstraintDeclarationForMappedType(type); - return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; - } - function getModifiersTypeFromMappedType(type) { - if (!type.modifiersType) { - if (isMappedTypeWithKeyofConstraintDeclaration(type)) { - type.modifiersType = instantiateType(getTypeFromTypeNode(getConstraintDeclarationForMappedType(type).type), type.mapper); - } else { - const declaredType = getTypeFromMappedTypeNode(type.declaration); - const constraint = getConstraintTypeFromMappedType(declaredType); - const extendedConstraint = constraint && constraint.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(constraint) : constraint; - type.modifiersType = extendedConstraint && extendedConstraint.flags & 4194304 /* Index */ ? instantiateType(extendedConstraint.type, type.mapper) : unknownType; - } - } - return type.modifiersType; - } - function getMappedTypeModifiers(type) { - const declaration = type.declaration; - return (declaration.readonlyToken ? declaration.readonlyToken.kind === 41 /* MinusToken */ ? 2 /* ExcludeReadonly */ : 1 /* IncludeReadonly */ : 0) | (declaration.questionToken ? declaration.questionToken.kind === 41 /* MinusToken */ ? 8 /* ExcludeOptional */ : 4 /* IncludeOptional */ : 0); - } - function getMappedTypeOptionality(type) { - const modifiers = getMappedTypeModifiers(type); - return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0; - } - function getCombinedMappedTypeOptionality(type) { - if (getObjectFlags(type) & 32 /* Mapped */) { - return getMappedTypeOptionality(type) || getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(type)); - } - if (type.flags & 2097152 /* Intersection */) { - const optionality = getCombinedMappedTypeOptionality(type.types[0]); - return every(type.types, (t, i) => i === 0 || getCombinedMappedTypeOptionality(t) === optionality) ? optionality : 0; - } - return 0; - } - function isPartialMappedType(type) { - return !!(getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */); - } - function isGenericMappedType(type) { - if (getObjectFlags(type) & 32 /* Mapped */) { - const constraint = getConstraintTypeFromMappedType(type); - if (isGenericIndexType(constraint)) { - return true; - } - const nameType = getNameTypeFromMappedType(type); - if (nameType && isGenericIndexType(instantiateType(nameType, makeUnaryTypeMapper(getTypeParameterFromMappedType(type), constraint)))) { - return true; - } - } - return false; - } - function getMappedTypeNameTypeKind(type) { - const nameType = getNameTypeFromMappedType(type); - if (!nameType) { - return 0 /* None */; - } - return isTypeAssignableTo(nameType, getTypeParameterFromMappedType(type)) ? 1 /* Filtering */ : 2 /* Remapping */; - } - function resolveStructuredTypeMembers(type) { - if (!type.members) { - if (type.flags & 524288 /* Object */) { - if (type.objectFlags & 4 /* Reference */) { - resolveTypeReferenceMembers(type); - } else if (type.objectFlags & 3 /* ClassOrInterface */) { - resolveClassOrInterfaceMembers(type); - } else if (type.objectFlags & 1024 /* ReverseMapped */) { - resolveReverseMappedTypeMembers(type); - } else if (type.objectFlags & 16 /* Anonymous */) { - resolveAnonymousTypeMembers(type); - } else if (type.objectFlags & 32 /* Mapped */) { - resolveMappedTypeMembers(type); - } else { - Debug.fail("Unhandled object type " + Debug.formatObjectFlags(type.objectFlags)); - } - } else if (type.flags & 1048576 /* Union */) { - resolveUnionTypeMembers(type); - } else if (type.flags & 2097152 /* Intersection */) { - resolveIntersectionTypeMembers(type); - } else { - Debug.fail("Unhandled type " + Debug.formatTypeFlags(type.flags)); - } - } - return type; - } - function getPropertiesOfObjectType(type) { - if (type.flags & 524288 /* Object */) { - return resolveStructuredTypeMembers(type).properties; - } - return emptyArray; - } - function getPropertyOfObjectType(type, name) { - if (type.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type); - const symbol = resolved.members.get(name); - if (symbol && symbolIsValue(symbol)) { - return symbol; - } - } - } - function getPropertiesOfUnionOrIntersectionType(type) { - if (!type.resolvedProperties) { - const members = createSymbolTable(); - for (const current of type.types) { - for (const prop of getPropertiesOfType(current)) { - if (!members.has(prop.escapedName)) { - const combinedProp = getPropertyOfUnionOrIntersectionType( - type, - prop.escapedName, - /*skipObjectFunctionPropertyAugment*/ - !!(type.flags & 2097152 /* Intersection */) - ); - if (combinedProp) { - members.set(prop.escapedName, combinedProp); - } - } - } - if (type.flags & 1048576 /* Union */ && getIndexInfosOfType(current).length === 0) { - break; - } - } - type.resolvedProperties = getNamedMembers(members); - } - return type.resolvedProperties; - } - function getPropertiesOfType(type) { - type = getReducedApparentType(type); - return type.flags & 3145728 /* UnionOrIntersection */ ? getPropertiesOfUnionOrIntersectionType(type) : getPropertiesOfObjectType(type); - } - function forEachPropertyOfType(type, action) { - type = getReducedApparentType(type); - if (type.flags & 3670016 /* StructuredType */) { - resolveStructuredTypeMembers(type).members.forEach((symbol, escapedName) => { - if (isNamedMember(symbol, escapedName)) { - action(symbol, escapedName); - } - }); - } - } - function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { - const list = obj.properties; - return list.some((property) => { - const nameType = property.name && (isJsxNamespacedName(property.name) ? getStringLiteralType(getTextOfJsxAttributeName(property.name)) : getLiteralTypeFromPropertyName(property.name)); - const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0; - const expected = name === void 0 ? void 0 : getTypeOfPropertyOfType(contextualType, name); - return !!expected && isLiteralType(expected) && !isTypeAssignableTo(getTypeOfNode(property), expected); - }); - } - function getAllPossiblePropertiesOfTypes(types) { - const unionType = getUnionType(types); - if (!(unionType.flags & 1048576 /* Union */)) { - return getAugmentedPropertiesOfType(unionType); - } - const props = createSymbolTable(); - for (const memberType of types) { - for (const { escapedName } of getAugmentedPropertiesOfType(memberType)) { - if (!props.has(escapedName)) { - const prop = createUnionOrIntersectionProperty(unionType, escapedName); - if (prop) props.set(escapedName, prop); - } - } - } - return arrayFrom(props.values()); - } - function getConstraintOfType(type) { - return type.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(type) : type.flags & 8388608 /* IndexedAccess */ ? getConstraintOfIndexedAccess(type) : type.flags & 16777216 /* Conditional */ ? getConstraintOfConditionalType(type) : getBaseConstraintOfType(type); - } - function getConstraintOfTypeParameter(typeParameter) { - return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; - } - function isConstMappedType(type, depth) { - const typeVariable = getHomomorphicTypeVariable(type); - return !!typeVariable && isConstTypeVariable(typeVariable, depth); - } - function isConstTypeVariable(type, depth = 0) { - var _a; - return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 4096 /* Const */)) || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || getObjectFlags(type) & 32 /* Mapped */ && isConstMappedType(type, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); - } - function getConstraintOfIndexedAccess(type) { - return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; - } - function getSimplifiedTypeOrConstraint(type) { - const simplified = getSimplifiedType( - type, - /*writing*/ - false - ); - return simplified !== type ? simplified : getConstraintOfType(type); - } - function getConstraintFromIndexedAccess(type) { - if (isMappedTypeGenericIndexedAccess(type)) { - return substituteIndexedMappedType(type.objectType, type.indexType); - } - const indexConstraint = getSimplifiedTypeOrConstraint(type.indexType); - if (indexConstraint && indexConstraint !== type.indexType) { - const indexedAccess = getIndexedAccessTypeOrUndefined(type.objectType, indexConstraint, type.accessFlags); - if (indexedAccess) { - return indexedAccess; - } - } - const objectConstraint = getSimplifiedTypeOrConstraint(type.objectType); - if (objectConstraint && objectConstraint !== type.objectType) { - return getIndexedAccessTypeOrUndefined(objectConstraint, type.indexType, type.accessFlags); - } - return void 0; - } - function getDefaultConstraintOfConditionalType(type) { - if (!type.resolvedDefaultConstraint) { - const trueConstraint = getInferredTrueTypeFromConditionalType(type); - const falseConstraint = getFalseTypeFromConditionalType(type); - type.resolvedDefaultConstraint = isTypeAny(trueConstraint) ? falseConstraint : isTypeAny(falseConstraint) ? trueConstraint : getUnionType([trueConstraint, falseConstraint]); - } - return type.resolvedDefaultConstraint; - } - function getConstraintOfDistributiveConditionalType(type) { - if (type.resolvedConstraintOfDistributive !== void 0) { - return type.resolvedConstraintOfDistributive || void 0; - } - if (type.root.isDistributive && type.restrictiveInstantiation !== type) { - const simplified = getSimplifiedType( - type.checkType, - /*writing*/ - false - ); - const constraint = simplified === type.checkType ? getConstraintOfType(simplified) : simplified; - if (constraint && constraint !== type.checkType) { - const instantiated = getConditionalTypeInstantiation( - type, - prependTypeMapping(type.root.checkType, constraint, type.mapper), - /*forConstraint*/ - true - ); - if (!(instantiated.flags & 131072 /* Never */)) { - type.resolvedConstraintOfDistributive = instantiated; - return instantiated; - } - } - } - type.resolvedConstraintOfDistributive = false; - return void 0; - } - function getConstraintFromConditionalType(type) { - return getConstraintOfDistributiveConditionalType(type) || getDefaultConstraintOfConditionalType(type); - } - function getConstraintOfConditionalType(type) { - return hasNonCircularBaseConstraint(type) ? getConstraintFromConditionalType(type) : void 0; - } - function getEffectiveConstraintOfIntersection(types, targetIsUnion) { - let constraints; - let hasDisjointDomainType = false; - for (const t of types) { - if (t.flags & 465829888 /* Instantiable */) { - let constraint = getConstraintOfType(t); - while (constraint && constraint.flags & (262144 /* TypeParameter */ | 4194304 /* Index */ | 16777216 /* Conditional */)) { - constraint = getConstraintOfType(constraint); - } - if (constraint) { - constraints = append(constraints, constraint); - if (targetIsUnion) { - constraints = append(constraints, t); - } - } - } else if (t.flags & 469892092 /* DisjointDomains */ || isEmptyAnonymousObjectType(t)) { - hasDisjointDomainType = true; - } - } - if (constraints && (targetIsUnion || hasDisjointDomainType)) { - if (hasDisjointDomainType) { - for (const t of types) { - if (t.flags & 469892092 /* DisjointDomains */ || isEmptyAnonymousObjectType(t)) { - constraints = append(constraints, t); - } - } - } - return getNormalizedType( - getIntersectionType(constraints, 2 /* NoConstraintReduction */), - /*writing*/ - false - ); - } - return void 0; - } - function getBaseConstraintOfType(type) { - if (type.flags & (58982400 /* InstantiableNonPrimitive */ | 3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || isGenericTupleType(type)) { - const constraint = getResolvedBaseConstraint(type); - return constraint !== noConstraintType && constraint !== circularConstraintType ? constraint : void 0; - } - return type.flags & 4194304 /* Index */ ? stringNumberSymbolType : void 0; - } - function getBaseConstraintOrType(type) { - return getBaseConstraintOfType(type) || type; - } - function hasNonCircularBaseConstraint(type) { - return getResolvedBaseConstraint(type) !== circularConstraintType; - } - function getResolvedBaseConstraint(type) { - if (type.resolvedBaseConstraint) { - return type.resolvedBaseConstraint; - } - const stack = []; - return type.resolvedBaseConstraint = getImmediateBaseConstraint(type); - function getImmediateBaseConstraint(t) { - if (!t.immediateBaseConstraint) { - if (!pushTypeResolution(t, 4 /* ImmediateBaseConstraint */)) { - return circularConstraintType; - } - let result; - const identity2 = getRecursionIdentity(t); - if (stack.length < 10 || stack.length < 50 && !contains(stack, identity2)) { - stack.push(identity2); - result = computeBaseConstraint(getSimplifiedType( - t, - /*writing*/ - false - )); - stack.pop(); - } - if (!popTypeResolution()) { - if (t.flags & 262144 /* TypeParameter */) { - const errorNode = getConstraintDeclaration(t); - if (errorNode) { - const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); - if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) { - addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location)); - } - } - } - result = circularConstraintType; - } - t.immediateBaseConstraint ?? (t.immediateBaseConstraint = result || noConstraintType); - } - return t.immediateBaseConstraint; - } - function getBaseConstraint(t) { - const c = getImmediateBaseConstraint(t); - return c !== noConstraintType && c !== circularConstraintType ? c : void 0; - } - function computeBaseConstraint(t) { - if (t.flags & 262144 /* TypeParameter */) { - const constraint = getConstraintFromTypeParameter(t); - return t.isThisType || !constraint ? constraint : getBaseConstraint(constraint); - } - if (t.flags & 3145728 /* UnionOrIntersection */) { - const types = t.types; - const baseTypes = []; - let different = false; - for (const type2 of types) { - const baseType = getBaseConstraint(type2); - if (baseType) { - if (baseType !== type2) { - different = true; - } - baseTypes.push(baseType); - } else { - different = true; - } - } - if (!different) { - return t; - } - return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) : void 0; - } - if (t.flags & 4194304 /* Index */) { - return stringNumberSymbolType; - } - if (t.flags & 134217728 /* TemplateLiteral */) { - const types = t.types; - const constraints = mapDefined(types, getBaseConstraint); - return constraints.length === types.length ? getTemplateLiteralType(t.texts, constraints) : stringType; - } - if (t.flags & 268435456 /* StringMapping */) { - const constraint = getBaseConstraint(t.type); - return constraint && constraint !== t.type ? getStringMappingType(t.symbol, constraint) : stringType; - } - if (t.flags & 8388608 /* IndexedAccess */) { - if (isMappedTypeGenericIndexedAccess(t)) { - return getBaseConstraint(substituteIndexedMappedType(t.objectType, t.indexType)); - } - const baseObjectType = getBaseConstraint(t.objectType); - const baseIndexType = getBaseConstraint(t.indexType); - const baseIndexedAccess = baseObjectType && baseIndexType && getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, t.accessFlags); - return baseIndexedAccess && getBaseConstraint(baseIndexedAccess); - } - if (t.flags & 16777216 /* Conditional */) { - const constraint = getConstraintFromConditionalType(t); - return constraint && getBaseConstraint(constraint); - } - if (t.flags & 33554432 /* Substitution */) { - return getBaseConstraint(getSubstitutionIntersection(t)); - } - if (isGenericTupleType(t)) { - const newElements = map(getElementTypes(t), (v, i) => { - const constraint = v.flags & 262144 /* TypeParameter */ && t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v; - return constraint !== v && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v; - }); - return createTupleType(newElements, t.target.elementFlags, t.target.readonly, t.target.labeledElementDeclarations); - } - return t; - } - } - function getApparentTypeOfIntersectionType(type, thisArgument) { - if (type === thisArgument) { - return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument( - type, - thisArgument, - /*needApparentType*/ - true - )); - } - const key = `I${getTypeId(type)},${getTypeId(thisArgument)}`; - return getCachedType(key) ?? setCachedType(key, getTypeWithThisArgument( - type, - thisArgument, - /*needApparentType*/ - true - )); - } - function getResolvedTypeParameterDefault(typeParameter) { - if (!typeParameter.default) { - if (typeParameter.target) { - const targetDefault = getResolvedTypeParameterDefault(typeParameter.target); - typeParameter.default = targetDefault ? instantiateType(targetDefault, typeParameter.mapper) : noConstraintType; - } else { - typeParameter.default = resolvingDefaultType; - const defaultDeclaration = typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default); - const defaultType = defaultDeclaration ? getTypeFromTypeNode(defaultDeclaration) : noConstraintType; - if (typeParameter.default === resolvingDefaultType) { - typeParameter.default = defaultType; - } - } - } else if (typeParameter.default === resolvingDefaultType) { - typeParameter.default = circularConstraintType; - } - return typeParameter.default; - } - function getDefaultFromTypeParameter(typeParameter) { - const defaultType = getResolvedTypeParameterDefault(typeParameter); - return defaultType !== noConstraintType && defaultType !== circularConstraintType ? defaultType : void 0; - } - function hasNonCircularTypeParameterDefault(typeParameter) { - return getResolvedTypeParameterDefault(typeParameter) !== circularConstraintType; - } - function hasTypeParameterDefault(typeParameter) { - return !!(typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default)); - } - function getApparentTypeOfMappedType(type) { - return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type)); - } - function getResolvedApparentTypeOfMappedType(type) { - const target = type.target ?? type; - const typeVariable = getHomomorphicTypeVariable(target); - if (typeVariable && !target.declaration.nameType) { - const modifiersType = getModifiersTypeFromMappedType(type); - const baseConstraint = isGenericMappedType(modifiersType) ? getApparentTypeOfMappedType(modifiersType) : getBaseConstraintOfType(modifiersType); - if (baseConstraint && everyType(baseConstraint, (t) => isArrayOrTupleType(t) || isArrayOrTupleOrIntersection(t))) { - return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper)); - } - } - return type; - } - function isArrayOrTupleOrIntersection(type) { - return !!(type.flags & 2097152 /* Intersection */) && every(type.types, isArrayOrTupleType); - } - function isMappedTypeGenericIndexedAccess(type) { - let objectType; - return !!(type.flags & 8388608 /* IndexedAccess */ && getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ && !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) && !(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType); - } - function getApparentType(type) { - const t = type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type; - const objectFlags = getObjectFlags(t); - return objectFlags & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : objectFlags & 4 /* Reference */ && t !== type ? getTypeWithThisArgument(t, type) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t, type) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? stringNumberSymbolType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t; - } - function getReducedApparentType(type) { - return getReducedType(getApparentType(getReducedType(type))); - } - function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) { - var _a, _b, _c; - let singleProp; - let propSet; - let indexTypes; - const isUnion = containingType.flags & 1048576 /* Union */; - let optionalFlag; - let syntheticFlag = 4 /* SyntheticMethod */; - let checkFlags = isUnion ? 0 : 8 /* Readonly */; - let mergedInstantiations = false; - for (const current of containingType.types) { - const type = getApparentType(current); - if (!(isErrorType(type) || type.flags & 131072 /* Never */)) { - const prop = getPropertyOfType(type, name, skipObjectFunctionPropertyAugment); - const modifiers = prop ? getDeclarationModifierFlagsFromSymbol(prop) : 0; - if (prop) { - if (prop.flags & 106500 /* ClassMember */) { - optionalFlag ?? (optionalFlag = isUnion ? 0 /* None */ : 16777216 /* Optional */); - if (isUnion) { - optionalFlag |= prop.flags & 16777216 /* Optional */; - } else { - optionalFlag &= prop.flags; - } - } - if (!singleProp) { - singleProp = prop; - } else if (prop !== singleProp) { - const isInstantiation = (getTargetSymbol(prop) || prop) === (getTargetSymbol(singleProp) || singleProp); - if (isInstantiation && compareProperties(singleProp, prop, (a, b) => a === b ? -1 /* True */ : 0 /* False */) === -1 /* True */) { - mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent)); - } else { - if (!propSet) { - propSet = /* @__PURE__ */ new Map(); - propSet.set(getSymbolId(singleProp), singleProp); - } - const id = getSymbolId(prop); - if (!propSet.has(id)) { - propSet.set(id, prop); - } - } - } - if (isUnion && isReadonlySymbol(prop)) { - checkFlags |= 8 /* Readonly */; - } else if (!isUnion && !isReadonlySymbol(prop)) { - checkFlags &= ~8 /* Readonly */; - } - checkFlags |= (!(modifiers & 6 /* NonPublicAccessibilityModifier */) ? 256 /* ContainsPublic */ : 0) | (modifiers & 4 /* Protected */ ? 512 /* ContainsProtected */ : 0) | (modifiers & 2 /* Private */ ? 1024 /* ContainsPrivate */ : 0) | (modifiers & 256 /* Static */ ? 2048 /* ContainsStatic */ : 0); - if (!isPrototypeProperty(prop)) { - syntheticFlag = 2 /* SyntheticProperty */; - } - } else if (isUnion) { - const indexInfo = !isLateBoundName(name) && getApplicableIndexInfoForName(type, name); - if (indexInfo) { - checkFlags |= 32 /* WritePartial */ | (indexInfo.isReadonly ? 8 /* Readonly */ : 0); - indexTypes = append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type); - } else if (isObjectLiteralType(type) && !(getObjectFlags(type) & 2097152 /* ContainsSpread */)) { - checkFlags |= 32 /* WritePartial */; - indexTypes = append(indexTypes, undefinedType); - } else { - checkFlags |= 16 /* ReadPartial */; - } - } - } - } - if (!singleProp || isUnion && (propSet || checkFlags & 48 /* Partial */) && checkFlags & (1024 /* ContainsPrivate */ | 512 /* ContainsProtected */) && !(propSet && getCommonDeclarationsOfSymbols(propSet.values()))) { - return void 0; - } - if (!propSet && !(checkFlags & 16 /* ReadPartial */) && !indexTypes) { - if (mergedInstantiations) { - const links = (_a = tryCast(singleProp, isTransientSymbol)) == null ? void 0 : _a.links; - const clone = createSymbolWithType(singleProp, links == null ? void 0 : links.type); - clone.parent = (_c = (_b = singleProp.valueDeclaration) == null ? void 0 : _b.symbol) == null ? void 0 : _c.parent; - clone.links.containingType = containingType; - clone.links.mapper = links == null ? void 0 : links.mapper; - clone.links.writeType = getWriteTypeOfSymbol(singleProp); - return clone; - } else { - return singleProp; - } - } - const props = propSet ? arrayFrom(propSet.values()) : [singleProp]; - let declarations; - let firstType; - let nameType; - const propTypes = []; - let writeTypes; - let firstValueDeclaration; - let hasNonUniformValueDeclaration = false; - for (const prop of props) { - if (!firstValueDeclaration) { - firstValueDeclaration = prop.valueDeclaration; - } else if (prop.valueDeclaration && prop.valueDeclaration !== firstValueDeclaration) { - hasNonUniformValueDeclaration = true; - } - declarations = addRange(declarations, prop.declarations); - const type = getTypeOfSymbol(prop); - if (!firstType) { - firstType = type; - nameType = getSymbolLinks(prop).nameType; - } - const writeType = getWriteTypeOfSymbol(prop); - if (writeTypes || writeType !== type) { - writeTypes = append(!writeTypes ? propTypes.slice() : writeTypes, writeType); - } - if (type !== firstType) { - checkFlags |= 64 /* HasNonUniformType */; - } - if (isLiteralType(type) || isPatternLiteralType(type)) { - checkFlags |= 128 /* HasLiteralType */; - } - if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) { - checkFlags |= 131072 /* HasNeverType */; - } - propTypes.push(type); - } - addRange(propTypes, indexTypes); - const result = createSymbol(4 /* Property */ | (optionalFlag ?? 0), name, syntheticFlag | checkFlags); - result.links.containingType = containingType; - if (!hasNonUniformValueDeclaration && firstValueDeclaration) { - result.valueDeclaration = firstValueDeclaration; - if (firstValueDeclaration.symbol.parent) { - result.parent = firstValueDeclaration.symbol.parent; - } - } - result.declarations = declarations; - result.links.nameType = nameType; - if (propTypes.length > 2) { - result.links.checkFlags |= 65536 /* DeferredType */; - result.links.deferralParent = containingType; - result.links.deferralConstituents = propTypes; - result.links.deferralWriteConstituents = writeTypes; - } else { - result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes); - if (writeTypes) { - result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes); - } - } - return result; - } - function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) { - var _a, _b, _c; - let property = skipObjectFunctionPropertyAugment ? (_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name) : (_b = type.propertyCache) == null ? void 0 : _b.get(name); - if (!property) { - property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment); - if (property) { - const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable()); - properties.set(name, property); - if (skipObjectFunctionPropertyAugment && !(getCheckFlags(property) & 48 /* Partial */) && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) { - const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable()); - properties2.set(name, property); - } - } - } - return property; - } - function getCommonDeclarationsOfSymbols(symbols) { - let commonDeclarations; - for (const symbol of symbols) { - if (!symbol.declarations) { - return void 0; - } - if (!commonDeclarations) { - commonDeclarations = new Set(symbol.declarations); - continue; - } - commonDeclarations.forEach((declaration) => { - if (!contains(symbol.declarations, declaration)) { - commonDeclarations.delete(declaration); - } - }); - if (commonDeclarations.size === 0) { - return void 0; - } - } - return commonDeclarations; - } - function getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment) { - const property = getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment); - return property && !(getCheckFlags(property) & 16 /* ReadPartial */) ? property : void 0; - } - function getReducedType(type) { - if (type.flags & 1048576 /* Union */ && type.objectFlags & 16777216 /* ContainsIntersections */) { - return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type)); - } else if (type.flags & 2097152 /* Intersection */) { - if (!(type.objectFlags & 16777216 /* IsNeverIntersectionComputed */)) { - type.objectFlags |= 16777216 /* IsNeverIntersectionComputed */ | (some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 33554432 /* IsNeverIntersection */ : 0); - } - return type.objectFlags & 33554432 /* IsNeverIntersection */ ? neverType : type; - } - return type; - } - function getReducedUnionType(unionType) { - const reducedTypes = sameMap(unionType.types, getReducedType); - if (reducedTypes === unionType.types) { - return unionType; - } - const reduced = getUnionType(reducedTypes); - if (reduced.flags & 1048576 /* Union */) { - reduced.resolvedReducedType = reduced; - } - return reduced; - } - function isNeverReducedProperty(prop) { - return isDiscriminantWithNeverType(prop) || isConflictingPrivateProperty(prop); - } - function isDiscriminantWithNeverType(prop) { - return !(prop.flags & 16777216 /* Optional */) && (getCheckFlags(prop) & (192 /* Discriminant */ | 131072 /* HasNeverType */)) === 192 /* Discriminant */ && !!(getTypeOfSymbol(prop).flags & 131072 /* Never */); - } - function isConflictingPrivateProperty(prop) { - return !prop.valueDeclaration && !!(getCheckFlags(prop) & 1024 /* ContainsPrivate */); - } - function isGenericReducibleType(type) { - return !!(type.flags & 1048576 /* Union */ && type.objectFlags & 16777216 /* ContainsIntersections */ && some(type.types, isGenericReducibleType) || type.flags & 2097152 /* Intersection */ && isReducibleIntersection(type)); - } - function isReducibleIntersection(type) { - const uniqueFilled = type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper)); - return getReducedType(uniqueFilled) !== uniqueFilled; - } - function elaborateNeverIntersection(errorInfo, type) { - if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 33554432 /* IsNeverIntersection */) { - const neverProp = find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType); - if (neverProp) { - return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 536870912 /* NoTypeReduction */ - ), symbolToString(neverProp)); - } - const privateProp = find(getPropertiesOfUnionOrIntersectionType(type), isConflictingPrivateProperty); - if (privateProp) { - return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 536870912 /* NoTypeReduction */ - ), symbolToString(privateProp)); - } - } - return errorInfo; - } - function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) { - var _a, _b; - type = getReducedApparentType(type); - if (type.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type); - const symbol = resolved.members.get(name); - if (symbol && !includeTypeOnlyMembers && ((_a = type.symbol) == null ? void 0 : _a.flags) & 512 /* ValueModule */ && ((_b = getSymbolLinks(type.symbol).typeOnlyExportStarMap) == null ? void 0 : _b.has(name))) { - return void 0; - } - if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) { - return symbol; - } - if (skipObjectFunctionPropertyAugment) return void 0; - const functionType = resolved === anyFunctionType ? globalFunctionType : resolved.callSignatures.length ? globalCallableFunctionType : resolved.constructSignatures.length ? globalNewableFunctionType : void 0; - if (functionType) { - const symbol2 = getPropertyOfObjectType(functionType, name); - if (symbol2) { - return symbol2; - } - } - return getPropertyOfObjectType(globalObjectType, name); - } - if (type.flags & 2097152 /* Intersection */) { - const prop = getPropertyOfUnionOrIntersectionType( - type, - name, - /*skipObjectFunctionPropertyAugment*/ - true - ); - if (prop) { - return prop; - } - if (!skipObjectFunctionPropertyAugment) { - return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment); - } - return void 0; - } - if (type.flags & 1048576 /* Union */) { - return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment); - } - return void 0; - } - function getSignaturesOfStructuredType(type, kind) { - if (type.flags & 3670016 /* StructuredType */) { - const resolved = resolveStructuredTypeMembers(type); - return kind === 0 /* Call */ ? resolved.callSignatures : resolved.constructSignatures; - } - return emptyArray; - } - function getSignaturesOfType(type, kind) { - const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); - if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { - if (type.arrayFallbackSignatures) { - return type.arrayFallbackSignatures; - } - let memberName; - if (everyType(type, (t) => { - var _a; - return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); - })) { - const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); - const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); - return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); - } - type.arrayFallbackSignatures = result; - } - return result; - } - function isArrayOrTupleSymbol(symbol) { - if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { - return false; - } - return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); - } - function isReadonlyArraySymbol(symbol) { - if (!symbol || !globalReadonlyArrayType.symbol) { - return false; - } - return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); - } - function findIndexInfo(indexInfos, keyType) { - return find(indexInfos, (info) => info.keyType === keyType); - } - function findApplicableIndexInfo(indexInfos, keyType) { - let stringIndexInfo; - let applicableInfo; - let applicableInfos; - for (const info of indexInfos) { - if (info.keyType === stringType) { - stringIndexInfo = info; - } else if (isApplicableIndexType(keyType, info.keyType)) { - if (!applicableInfo) { - applicableInfo = info; - } else { - (applicableInfos || (applicableInfos = [applicableInfo])).push(info); - } - } - } - return applicableInfos ? createIndexInfo(unknownType, getIntersectionType(map(applicableInfos, (info) => info.type)), reduceLeft( - applicableInfos, - (isReadonly, info) => isReadonly && info.isReadonly, - /*initial*/ - true - )) : applicableInfo ? applicableInfo : stringIndexInfo && isApplicableIndexType(keyType, stringType) ? stringIndexInfo : void 0; - } - function isApplicableIndexType(source, target) { - return isTypeAssignableTo(source, target) || target === stringType && isTypeAssignableTo(source, numberType) || target === numberType && (source === numericStringType || !!(source.flags & 128 /* StringLiteral */) && isNumericLiteralName(source.value)); - } - function getIndexInfosOfStructuredType(type) { - if (type.flags & 3670016 /* StructuredType */) { - const resolved = resolveStructuredTypeMembers(type); - return resolved.indexInfos; - } - return emptyArray; - } - function getIndexInfosOfType(type) { - return getIndexInfosOfStructuredType(getReducedApparentType(type)); - } - function getIndexInfoOfType(type, keyType) { - return findIndexInfo(getIndexInfosOfType(type), keyType); - } - function getIndexTypeOfType(type, keyType) { - var _a; - return (_a = getIndexInfoOfType(type, keyType)) == null ? void 0 : _a.type; - } - function getApplicableIndexInfos(type, keyType) { - return getIndexInfosOfType(type).filter((info) => isApplicableIndexType(keyType, info.keyType)); - } - function getApplicableIndexInfo(type, keyType) { - return findApplicableIndexInfo(getIndexInfosOfType(type), keyType); - } - function getApplicableIndexInfoForName(type, name) { - return getApplicableIndexInfo(type, isLateBoundName(name) ? esSymbolType : getStringLiteralType(unescapeLeadingUnderscores(name))); - } - function getTypeParametersFromDeclaration(declaration) { - var _a; - let result; - for (const node of getEffectiveTypeParameterDeclarations(declaration)) { - result = appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol)); - } - return (result == null ? void 0 : result.length) ? result : isFunctionDeclaration(declaration) ? (_a = getSignatureOfTypeTag(declaration)) == null ? void 0 : _a.typeParameters : void 0; - } - function symbolsToArray(symbols) { - const result = []; - symbols.forEach((symbol, id) => { - if (!isReservedMemberName(id)) { - result.push(symbol); - } - }); - return result; - } - function tryFindAmbientModule(moduleName, withAugmentations) { - if (isExternalModuleNameRelative(moduleName)) { - return void 0; - } - const symbol = getSymbol(globals, '"' + moduleName + '"', 512 /* ValueModule */); - return symbol && withAugmentations ? getMergedSymbol(symbol) : symbol; - } - function hasEffectiveQuestionToken(node) { - return hasQuestionToken(node) || isOptionalJSDocPropertyLikeTag(node) || isParameter(node) && isJSDocOptionalParameter(node); - } - function isOptionalParameter(node) { - if (hasEffectiveQuestionToken(node)) { - return true; - } - if (!isParameter(node)) { - return false; - } - if (node.initializer) { - const signature = getSignatureFromDeclaration(node.parent); - const parameterIndex = node.parent.parameters.indexOf(node); - Debug.assert(parameterIndex >= 0); - return parameterIndex >= getMinArgumentCount(signature, 1 /* StrongArityForUntypedJS */ | 2 /* VoidIsNonOptional */); - } - const iife = getImmediatelyInvokedFunctionExpression(node.parent); - if (iife) { - return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= getEffectiveCallArguments(iife).length; - } - return false; - } - function isOptionalPropertyDeclaration(node) { - return isPropertyDeclaration(node) && !hasAccessorModifier(node) && node.questionToken; - } - function createTypePredicate(kind, parameterName, parameterIndex, type) { - return { kind, parameterName, parameterIndex, type }; - } - function getMinTypeArgumentCount(typeParameters) { - let minTypeArgumentCount = 0; - if (typeParameters) { - for (let i = 0; i < typeParameters.length; i++) { - if (!hasTypeParameterDefault(typeParameters[i])) { - minTypeArgumentCount = i + 1; - } - } - } - return minTypeArgumentCount; - } - function fillMissingTypeArguments(typeArguments, typeParameters, minTypeArgumentCount, isJavaScriptImplicitAny) { - const numTypeParameters = length(typeParameters); - if (!numTypeParameters) { - return []; - } - const numTypeArguments = length(typeArguments); - if (isJavaScriptImplicitAny || numTypeArguments >= minTypeArgumentCount && numTypeArguments <= numTypeParameters) { - const result = typeArguments ? typeArguments.slice() : []; - for (let i = numTypeArguments; i < numTypeParameters; i++) { - result[i] = errorType; - } - const baseDefaultType = getDefaultTypeArgumentType(isJavaScriptImplicitAny); - for (let i = numTypeArguments; i < numTypeParameters; i++) { - let defaultType = getDefaultFromTypeParameter(typeParameters[i]); - if (isJavaScriptImplicitAny && defaultType && (isTypeIdenticalTo(defaultType, unknownType) || isTypeIdenticalTo(defaultType, emptyObjectType))) { - defaultType = anyType; - } - result[i] = defaultType ? instantiateType(defaultType, createTypeMapper(typeParameters, result)) : baseDefaultType; - } - result.length = typeParameters.length; - return result; - } - return typeArguments && typeArguments.slice(); - } - function getSignatureFromDeclaration(declaration) { - const links = getNodeLinks(declaration); - if (!links.resolvedSignature) { - const parameters = []; - let flags = 0 /* None */; - let minArgumentCount = 0; - let thisParameter; - let thisTag = isInJSFile(declaration) ? getJSDocThisTag(declaration) : void 0; - let hasThisParameter = false; - const iife = getImmediatelyInvokedFunctionExpression(declaration); - const isJSConstructSignature = isJSDocConstructSignature(declaration); - const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration); - if (isUntypedSignatureInJSFile) { - flags |= 32 /* IsUntypedSignatureInJSFile */; - } - for (let i = isJSConstructSignature ? 1 : 0; i < declaration.parameters.length; i++) { - const param = declaration.parameters[i]; - if (isInJSFile(param) && isJSDocThisTag(param)) { - thisTag = param; - continue; - } - let paramSymbol = param.symbol; - const type = isJSDocParameterTag(param) ? param.typeExpression && param.typeExpression.type : param.type; - if (paramSymbol && !!(paramSymbol.flags & 4 /* Property */) && !isBindingPattern(param.name)) { - const resolvedSymbol = resolveName( - param, - paramSymbol.escapedName, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - paramSymbol = resolvedSymbol; - } - if (i === 0 && paramSymbol.escapedName === "this" /* This */) { - hasThisParameter = true; - thisParameter = param.symbol; - } else { - parameters.push(paramSymbol); - } - if (type && type.kind === 201 /* LiteralType */) { - flags |= 2 /* HasLiteralTypes */; - } - const isOptionalParameter2 = hasEffectiveQuestionToken(param) || isParameter(param) && param.initializer || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type; - if (!isOptionalParameter2) { - minArgumentCount = parameters.length; - } - } - if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter || !thisParameter)) { - const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; - const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); - if (other) { - thisParameter = getAnnotatedAccessorThisParameter(other); - } - } - if (thisTag && thisTag.typeExpression) { - thisParameter = createSymbolWithType(createSymbol(1 /* FunctionScopedVariable */, "this" /* This */), getTypeFromTypeNode(thisTag.typeExpression)); - } - const hostDeclaration = isJSDocSignature(declaration) ? getEffectiveJSDocHost(declaration) : declaration; - const classType = hostDeclaration && isConstructorDeclaration(hostDeclaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(hostDeclaration.parent.symbol)) : void 0; - const typeParameters = classType ? classType.localTypeParameters : getTypeParametersFromDeclaration(declaration); - if (hasRestParameter(declaration) || isInJSFile(declaration) && maybeAddJsSyntheticRestParameter(declaration, parameters)) { - flags |= 1 /* HasRestParameter */; - } - if (isConstructorTypeNode(declaration) && hasSyntacticModifier(declaration, 64 /* Abstract */) || isConstructorDeclaration(declaration) && hasSyntacticModifier(declaration.parent, 64 /* Abstract */)) { - flags |= 4 /* Abstract */; - } - links.resolvedSignature = createSignature( - declaration, - typeParameters, - thisParameter, - parameters, - /*resolvedReturnType*/ - void 0, - /*resolvedTypePredicate*/ - void 0, - minArgumentCount, - flags - ); - } - return links.resolvedSignature; - } - function maybeAddJsSyntheticRestParameter(declaration, parameters) { - if (isJSDocSignature(declaration) || !containsArgumentsReference(declaration)) { - return false; - } - const lastParam = lastOrUndefined(declaration.parameters); - const lastParamTags = lastParam ? getJSDocParameterTags(lastParam) : getJSDocTags(declaration).filter(isJSDocParameterTag); - const lastParamVariadicType = firstDefined(lastParamTags, (p) => p.typeExpression && isJSDocVariadicType(p.typeExpression.type) ? p.typeExpression.type : void 0); - const syntheticArgsSymbol = createSymbol(3 /* Variable */, "args", 32768 /* RestParameter */); - if (lastParamVariadicType) { - syntheticArgsSymbol.links.type = createArrayType(getTypeFromTypeNode(lastParamVariadicType.type)); - } else { - syntheticArgsSymbol.links.checkFlags |= 65536 /* DeferredType */; - syntheticArgsSymbol.links.deferralParent = neverType; - syntheticArgsSymbol.links.deferralConstituents = [anyArrayType]; - syntheticArgsSymbol.links.deferralWriteConstituents = [anyArrayType]; - } - if (lastParamVariadicType) { - parameters.pop(); - } - parameters.push(syntheticArgsSymbol); - return true; - } - function getSignatureOfTypeTag(node) { - if (!(isInJSFile(node) && isFunctionLikeDeclaration(node))) return void 0; - const typeTag = getJSDocTypeTag(node); - return (typeTag == null ? void 0 : typeTag.typeExpression) && getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); - } - function getParameterTypeOfTypeTag(func, parameter) { - const signature = getSignatureOfTypeTag(func); - if (!signature) return void 0; - const pos = func.parameters.indexOf(parameter); - return parameter.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos); - } - function getReturnTypeOfTypeTag(node) { - const signature = getSignatureOfTypeTag(node); - return signature && getReturnTypeOfSignature(signature); - } - function containsArgumentsReference(declaration) { - const links = getNodeLinks(declaration); - if (links.containsArgumentsReference === void 0) { - if (links.flags & 512 /* CaptureArguments */) { - links.containsArgumentsReference = true; - } else { - links.containsArgumentsReference = traverse(declaration.body); - } - } - return links.containsArgumentsReference; - function traverse(node) { - if (!node) return false; - switch (node.kind) { - case 80 /* Identifier */: - return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; - case 172 /* PropertyDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return traverse(node.expression); - case 303 /* PropertyAssignment */: - return traverse(node.initializer); - default: - return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); - } - } - } - function getSignaturesOfSymbol(symbol) { - if (!symbol || !symbol.declarations) return emptyArray; - const result = []; - for (let i = 0; i < symbol.declarations.length; i++) { - const decl = symbol.declarations[i]; - if (!isFunctionLike(decl)) continue; - if (i > 0 && decl.body) { - const previous = symbol.declarations[i - 1]; - if (decl.parent === previous.parent && decl.kind === previous.kind && decl.pos === previous.end) { - continue; - } - } - if (isInJSFile(decl) && decl.jsDoc) { - const tags = getJSDocOverloadTags(decl); - if (length(tags)) { - for (const tag of tags) { - const jsDocSignature = tag.typeExpression; - if (jsDocSignature.type === void 0 && !isConstructorDeclaration(decl)) { - reportImplicitAny(jsDocSignature, anyType); - } - result.push(getSignatureFromDeclaration(jsDocSignature)); - } - continue; - } - } - result.push( - !isFunctionExpressionOrArrowFunction(decl) && !isObjectLiteralMethod(decl) && getSignatureOfTypeTag(decl) || getSignatureFromDeclaration(decl) - ); - } - return result; - } - function resolveExternalModuleTypeByLiteral(name) { - const moduleSym = resolveExternalModuleName(name, name); - if (moduleSym) { - const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym); - if (resolvedModuleSymbol) { - return getTypeOfSymbol(resolvedModuleSymbol); - } - } - return anyType; - } - function getThisTypeOfSignature(signature) { - if (signature.thisParameter) { - return getTypeOfSymbol(signature.thisParameter); - } - } - function getTypePredicateOfSignature(signature) { - if (!signature.resolvedTypePredicate) { - if (signature.target) { - const targetTypePredicate = getTypePredicateOfSignature(signature.target); - signature.resolvedTypePredicate = targetTypePredicate ? instantiateTypePredicate(targetTypePredicate, signature.mapper) : noTypePredicate; - } else if (signature.compositeSignatures) { - signature.resolvedTypePredicate = getUnionOrIntersectionTypePredicate(signature.compositeSignatures, signature.compositeKind) || noTypePredicate; - } else { - const type = signature.declaration && getEffectiveReturnTypeNode(signature.declaration); - let jsdocPredicate; - if (!type) { - const jsdocSignature = getSignatureOfTypeTag(signature.declaration); - if (jsdocSignature && signature !== jsdocSignature) { - jsdocPredicate = getTypePredicateOfSignature(jsdocSignature); - } - } - if (type || jsdocPredicate) { - signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate; - } else if (signature.declaration && isFunctionLikeDeclaration(signature.declaration) && (!signature.resolvedReturnType || signature.resolvedReturnType.flags & 16 /* Boolean */) && getParameterCount(signature) > 0) { - const { declaration } = signature; - signature.resolvedTypePredicate = noTypePredicate; - signature.resolvedTypePredicate = getTypePredicateFromBody(declaration) || noTypePredicate; - } else { - signature.resolvedTypePredicate = noTypePredicate; - } - } - Debug.assert(!!signature.resolvedTypePredicate); - } - return signature.resolvedTypePredicate === noTypePredicate ? void 0 : signature.resolvedTypePredicate; - } - function createTypePredicateFromTypePredicateNode(node, signature) { - const parameterName = node.parameterName; - const type = node.type && getTypeFromTypeNode(node.type); - return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( - node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, - /*parameterName*/ - void 0, - /*parameterIndex*/ - void 0, - type - ) : createTypePredicate(node.assertsModifier ? 3 /* AssertsIdentifier */ : 1 /* Identifier */, parameterName.escapedText, findIndex(signature.parameters, (p) => p.escapedName === parameterName.escapedText), type); - } - function getUnionOrIntersectionType(types, kind, unionReduction) { - return kind !== 2097152 /* Intersection */ ? getUnionType(types, unionReduction) : getIntersectionType(types); - } - function getReturnTypeOfSignature(signature) { - if (!signature.resolvedReturnType) { - if (!pushTypeResolution(signature, 3 /* ResolvedReturnType */)) { - return errorType; - } - let type = signature.target ? instantiateType(getReturnTypeOfSignature(signature.target), signature.mapper) : signature.compositeSignatures ? instantiateType(getUnionOrIntersectionType(map(signature.compositeSignatures, getReturnTypeOfSignature), signature.compositeKind, 2 /* Subtype */), signature.mapper) : getReturnTypeFromAnnotation(signature.declaration) || (nodeIsMissing(signature.declaration.body) ? anyType : getReturnTypeFromBody(signature.declaration)); - if (signature.flags & 8 /* IsInnerCallChain */) { - type = addOptionalTypeMarker(type); - } else if (signature.flags & 16 /* IsOuterCallChain */) { - type = getOptionalType(type); - } - if (!popTypeResolution()) { - if (signature.declaration) { - const typeNode = getEffectiveReturnTypeNode(signature.declaration); - if (typeNode) { - error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); - } else if (noImplicitAny) { - const declaration = signature.declaration; - const name = getNameOfDeclaration(declaration); - if (name) { - error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); - } else { - error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); - } - } - } - type = anyType; - } - signature.resolvedReturnType ?? (signature.resolvedReturnType = type); - } - return signature.resolvedReturnType; - } - function getReturnTypeFromAnnotation(declaration) { - if (declaration.kind === 176 /* Constructor */) { - return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); - } - const typeNode = getEffectiveReturnTypeNode(declaration); - if (isJSDocSignature(declaration)) { - const root = getJSDocRoot(declaration); - if (root && isConstructorDeclaration(root.parent) && !typeNode) { - return getDeclaredTypeOfClassOrInterface(getMergedSymbol(root.parent.parent.symbol)); - } - } - if (isJSDocConstructSignature(declaration)) { - return getTypeFromTypeNode(declaration.parameters[0].type); - } - if (typeNode) { - return getTypeFromTypeNode(typeNode); - } - if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { - const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); - if (jsDocType) { - return jsDocType; - } - const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); - const setterType = getAnnotatedAccessorType(setter); - if (setterType) { - return setterType; - } - } - return getReturnTypeOfTypeTag(declaration); - } - function isResolvingReturnTypeOfSignature(signature) { - return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; - } - function getRestTypeOfSignature(signature) { - return tryGetRestTypeOfSignature(signature) || anyType; - } - function tryGetRestTypeOfSignature(signature) { - if (signatureHasRestParameter(signature)) { - const sigRestType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - const restType = isTupleType(sigRestType) ? getRestTypeOfTupleType(sigRestType) : sigRestType; - return restType && getIndexTypeOfType(restType, numberType); - } - return void 0; - } - function getSignatureInstantiation(signature, typeArguments, isJavascript, inferredTypeParameters) { - const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, fillMissingTypeArguments(typeArguments, signature.typeParameters, getMinTypeArgumentCount(signature.typeParameters), isJavascript)); - if (inferredTypeParameters) { - const returnSignature = getSingleCallOrConstructSignature(getReturnTypeOfSignature(instantiatedSignature)); - if (returnSignature) { - const newReturnSignature = cloneSignature(returnSignature); - newReturnSignature.typeParameters = inferredTypeParameters; - const newInstantiatedSignature = cloneSignature(instantiatedSignature); - newInstantiatedSignature.resolvedReturnType = getOrCreateTypeFromSignature(newReturnSignature); - return newInstantiatedSignature; - } - } - return instantiatedSignature; - } - function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) { - const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map()); - const id = getTypeListId(typeArguments); - let instantiation = instantiations.get(id); - if (!instantiation) { - instantiations.set(id, instantiation = createSignatureInstantiation(signature, typeArguments)); - } - return instantiation; - } - function createSignatureInstantiation(signature, typeArguments) { - return instantiateSignature( - signature, - createSignatureTypeMapper(signature, typeArguments), - /*eraseTypeParameters*/ - true - ); - } - function getTypeParametersForMapper(signature) { - return sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp); - } - function createSignatureTypeMapper(signature, typeArguments) { - return createTypeMapper(getTypeParametersForMapper(signature), typeArguments); - } - function getErasedSignature(signature) { - return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature; - } - function createErasedSignature(signature) { - return instantiateSignature( - signature, - createTypeEraser(signature.typeParameters), - /*eraseTypeParameters*/ - true - ); - } - function getCanonicalSignature(signature) { - return signature.typeParameters ? signature.canonicalSignatureCache || (signature.canonicalSignatureCache = createCanonicalSignature(signature)) : signature; - } - function createCanonicalSignature(signature) { - return getSignatureInstantiation( - signature, - map(signature.typeParameters, (tp) => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp), - isInJSFile(signature.declaration) - ); - } - function getImplementationSignature(signature) { - return signature.typeParameters ? signature.implementationSignatureCache || (signature.implementationSignatureCache = createImplementationSignature(signature)) : signature; - } - function createImplementationSignature(signature) { - return signature.typeParameters ? instantiateSignature(signature, createTypeMapper([], [])) : signature; - } - function getBaseSignature(signature) { - const typeParameters = signature.typeParameters; - if (typeParameters) { - if (signature.baseSignatureCache) { - return signature.baseSignatureCache; - } - const typeEraser = createTypeEraser(typeParameters); - const baseConstraintMapper = createTypeMapper(typeParameters, map(typeParameters, (tp) => getConstraintOfTypeParameter(tp) || unknownType)); - let baseConstraints = map(typeParameters, (tp) => instantiateType(tp, baseConstraintMapper) || unknownType); - for (let i = 0; i < typeParameters.length - 1; i++) { - baseConstraints = instantiateTypes(baseConstraints, baseConstraintMapper); - } - baseConstraints = instantiateTypes(baseConstraints, typeEraser); - return signature.baseSignatureCache = instantiateSignature( - signature, - createTypeMapper(typeParameters, baseConstraints), - /*eraseTypeParameters*/ - true - ); - } - return signature; - } - function getOrCreateTypeFromSignature(signature, outerTypeParameters) { - var _a; - if (!signature.isolatedSignatureType) { - const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; - const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; - const type = createObjectType(16 /* Anonymous */ | 134217728 /* SingleSignatureType */, createSymbol(16 /* Function */, "__function" /* Function */)); - if (signature.declaration && !nodeIsSynthesized(signature.declaration)) { - type.symbol.declarations = [signature.declaration]; - type.symbol.valueDeclaration = signature.declaration; - } - outerTypeParameters || (outerTypeParameters = signature.declaration && getOuterTypeParameters( - signature.declaration, - /*includeThisTypes*/ - true - )); - type.outerTypeParameters = outerTypeParameters; - type.members = emptySymbols; - type.properties = emptyArray; - type.callSignatures = !isConstructor ? [signature] : emptyArray; - type.constructSignatures = isConstructor ? [signature] : emptyArray; - type.indexInfos = emptyArray; - signature.isolatedSignatureType = type; - } - return signature.isolatedSignatureType; - } - function getIndexSymbol(symbol) { - return symbol.members ? getIndexSymbolFromSymbolTable(getMembersOfSymbol(symbol)) : void 0; - } - function getIndexSymbolFromSymbolTable(symbolTable) { - return symbolTable.get("__index" /* Index */); - } - function createIndexInfo(keyType, type, isReadonly, declaration, components) { - return { keyType, type, isReadonly, declaration, components }; - } - function getIndexInfosOfSymbol(symbol) { - const indexSymbol = getIndexSymbol(symbol); - return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol, arrayFrom(getMembersOfSymbol(symbol).values())) : emptyArray; - } - function getIndexInfosOfIndexSymbol(indexSymbol, siblingSymbols = indexSymbol.parent ? arrayFrom(getMembersOfSymbol(indexSymbol.parent).values()) : void 0) { - if (indexSymbol.declarations) { - const indexInfos = []; - let hasComputedNumberProperty = false; - let readonlyComputedNumberProperty = true; - let hasComputedSymbolProperty = false; - let readonlyComputedSymbolProperty = true; - let hasComputedStringProperty = false; - let readonlyComputedStringProperty = true; - const computedPropertySymbols = []; - for (const declaration of indexSymbol.declarations) { - if (isIndexSignatureDeclaration(declaration)) { - if (declaration.parameters.length === 1) { - const parameter = declaration.parameters[0]; - if (parameter.type) { - forEachType(getTypeFromTypeNode(parameter.type), (keyType) => { - if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos, keyType)) { - indexInfos.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, hasEffectiveModifier(declaration, 8 /* Readonly */), declaration)); - } - }); - } - } - } else if (hasLateBindableIndexSignature(declaration)) { - const declName = isBinaryExpression(declaration) ? declaration.left : declaration.name; - const keyType = isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName); - if (findIndexInfo(indexInfos, keyType)) { - continue; - } - if (isTypeAssignableTo(keyType, stringNumberSymbolType)) { - if (isTypeAssignableTo(keyType, numberType)) { - hasComputedNumberProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedNumberProperty = false; - } - } else if (isTypeAssignableTo(keyType, esSymbolType)) { - hasComputedSymbolProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedSymbolProperty = false; - } - } else { - hasComputedStringProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedStringProperty = false; - } - } - computedPropertySymbols.push(declaration.symbol); - } - } - } - const allPropertySymbols = concatenate(computedPropertySymbols, filter(siblingSymbols, (s) => s !== indexSymbol)); - if (hasComputedStringProperty && !findIndexInfo(indexInfos, stringType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedStringProperty, 0, allPropertySymbols, stringType)); - if (hasComputedNumberProperty && !findIndexInfo(indexInfos, numberType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedNumberProperty, 0, allPropertySymbols, numberType)); - if (hasComputedSymbolProperty && !findIndexInfo(indexInfos, esSymbolType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedSymbolProperty, 0, allPropertySymbols, esSymbolType)); - return indexInfos; - } - return emptyArray; - } - function isValidIndexKeyType(type) { - return !!(type.flags & (4 /* String */ | 8 /* Number */ | 4096 /* ESSymbol */)) || isPatternLiteralType(type) || !!(type.flags & 2097152 /* Intersection */) && !isGenericType(type) && some(type.types, isValidIndexKeyType); - } - function getConstraintDeclaration(type) { - return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0]; - } - function getInferredTypeParameterConstraint(typeParameter, omitTypeReferences) { - var _a; - let inferences; - if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { - for (const declaration of typeParameter.symbol.declarations) { - if (declaration.parent.kind === 195 /* InferType */) { - const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); - if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { - const typeReference = grandParent; - const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); - if (typeParameters) { - const index = typeReference.typeArguments.indexOf(childTypeParameter); - if (index < typeParameters.length) { - const declaredConstraint = getConstraintOfTypeParameter(typeParameters[index]); - if (declaredConstraint) { - const mapper = makeDeferredTypeMapper( - typeParameters, - typeParameters.map((_, index2) => () => { - return getEffectiveTypeArgumentAtIndex(typeReference, typeParameters, index2); - }) - ); - const constraint = instantiateType(declaredConstraint, mapper); - if (constraint !== typeParameter) { - inferences = append(inferences, constraint); - } - } - } - } - } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { - inferences = append(inferences, createArrayType(unknownType)); - } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { - inferences = append(inferences, stringType); - } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { - inferences = append(inferences, stringNumberSymbolType); - } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { - const checkMappedType2 = grandParent.parent.checkType; - const nodeType = getTypeFromTypeNode(checkMappedType2.type); - inferences = append(inferences, instantiateType(nodeType, makeUnaryTypeMapper(getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(checkMappedType2.typeParameter)), checkMappedType2.typeParameter.constraint ? getTypeFromTypeNode(checkMappedType2.typeParameter.constraint) : stringNumberSymbolType))); - } - } - } - } - return inferences && getIntersectionType(inferences); - } - function getConstraintFromTypeParameter(typeParameter) { - if (!typeParameter.constraint) { - if (typeParameter.target) { - const targetConstraint = getConstraintOfTypeParameter(typeParameter.target); - typeParameter.constraint = targetConstraint ? instantiateType(targetConstraint, typeParameter.mapper) : noConstraintType; - } else { - const constraintDeclaration = getConstraintDeclaration(typeParameter); - if (!constraintDeclaration) { - typeParameter.constraint = getInferredTypeParameterConstraint(typeParameter) || noConstraintType; - } else { - let type = getTypeFromTypeNode(constraintDeclaration); - if (type.flags & 1 /* Any */ && !isErrorType(type)) { - type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? stringNumberSymbolType : unknownType; - } - typeParameter.constraint = type; - } - } - } - return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; - } - function getParentSymbolOfTypeParameter(typeParameter) { - const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); - const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; - return host2 && getSymbolOfNode(host2); - } - function getTypeListId(types) { - let result = ""; - if (types) { - const length2 = types.length; - let i = 0; - while (i < length2) { - const startId = types[i].id; - let count = 1; - while (i + count < length2 && types[i + count].id === startId + count) { - count++; - } - if (result.length) { - result += ","; - } - result += startId; - if (count > 1) { - result += ":" + count; - } - i += count; - } - } - return result; - } - function getAliasId(aliasSymbol, aliasTypeArguments) { - return aliasSymbol ? `@${getSymbolId(aliasSymbol)}` + (aliasTypeArguments ? `:${getTypeListId(aliasTypeArguments)}` : "") : ""; - } - function getPropagatingFlagsOfTypes(types, excludeKinds) { - let result = 0; - for (const type of types) { - if (excludeKinds === void 0 || !(type.flags & excludeKinds)) { - result |= getObjectFlags(type); - } - } - return result & 458752 /* PropagatingFlags */; - } - function tryCreateTypeReference(target, typeArguments) { - if (some(typeArguments) && target === emptyGenericType) { - return unknownType; - } - return createTypeReference(target, typeArguments); - } - function createTypeReference(target, typeArguments) { - const id = getTypeListId(typeArguments); - let type = target.instantiations.get(id); - if (!type) { - type = createObjectType(4 /* Reference */, target.symbol); - target.instantiations.set(id, type); - type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments) : 0; - type.target = target; - type.resolvedTypeArguments = typeArguments; - } - return type; - } - function cloneTypeReference(source) { - const type = createTypeWithSymbol(source.flags, source.symbol); - type.objectFlags = source.objectFlags; - type.target = source.target; - type.resolvedTypeArguments = source.resolvedTypeArguments; - return type; - } - function createDeferredTypeReference(target, node, mapper, aliasSymbol, aliasTypeArguments) { - if (!aliasSymbol) { - aliasSymbol = getAliasSymbolForTypeNode(node); - const localAliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); - aliasTypeArguments = mapper ? instantiateTypes(localAliasTypeArguments, mapper) : localAliasTypeArguments; - } - const type = createObjectType(4 /* Reference */, target.symbol); - type.target = target; - type.node = node; - type.mapper = mapper; - type.aliasSymbol = aliasSymbol; - type.aliasTypeArguments = aliasTypeArguments; - return type; - } - function getTypeArguments(type) { - var _a, _b; - if (!type.resolvedTypeArguments) { - if (!pushTypeResolution(type, 5 /* ResolvedTypeArguments */)) { - return concatenate(type.target.outerTypeParameters, (_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; - } - const node = type.node; - const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); - if (popTypeResolution()) { - type.resolvedTypeArguments ?? (type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments); - } else { - type.resolvedTypeArguments ?? (type.resolvedTypeArguments = concatenate(type.target.outerTypeParameters, ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray)); - error( - type.node || currentNode, - type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, - type.target.symbol && symbolToString(type.target.symbol) - ); - } - } - return type.resolvedTypeArguments; - } - function getTypeReferenceArity(type) { - return length(type.target.typeParameters); - } - function getTypeFromClassOrInterfaceReference(node, symbol) { - const type = getDeclaredTypeOfSymbol(getMergedSymbol(symbol)); - const typeParameters = type.localTypeParameters; - if (typeParameters) { - const numTypeArguments = length(node.typeArguments); - const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); - const isJs = isInJSFile(node); - const isJsImplicitAny = !noImplicitAny && isJs; - if (!isJsImplicitAny && (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length)) { - const missingAugmentsTag = isJs && isExpressionWithTypeArguments(node) && !isJSDocAugmentsTag(node.parent); - const diag2 = minTypeArgumentCount === typeParameters.length ? missingAugmentsTag ? Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_1_type_argument_s : missingAugmentsTag ? Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments; - const typeStr = typeToString( - type, - /*enclosingDeclaration*/ - void 0, - 2 /* WriteArrayAsGenericType */ - ); - error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); - if (!isJs) { - return errorType; - } - } - if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { - return createDeferredTypeReference( - type, - node, - /*mapper*/ - void 0 - ); - } - const typeArguments = concatenate(type.outerTypeParameters, fillMissingTypeArguments(typeArgumentsFromTypeReferenceNode(node), typeParameters, minTypeArgumentCount, isJs)); - return createTypeReference(type, typeArguments); - } - return checkNoTypeArguments(node, symbol) ? type : errorType; - } - function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) { - const type = getDeclaredTypeOfSymbol(symbol); - if (type === intrinsicMarkerType) { - const typeKind = intrinsicTypeKinds.get(symbol.escapedName); - if (typeKind !== void 0 && typeArguments && typeArguments.length === 1) { - return typeKind === 4 /* NoInfer */ ? getNoInferType(typeArguments[0]) : getStringMappingType(symbol, typeArguments[0]); - } - } - const links = getSymbolLinks(symbol); - const typeParameters = links.typeParameters; - const id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments); - let instantiation = links.instantiations.get(id); - if (!instantiation) { - links.instantiations.set(id, instantiation = instantiateTypeWithAlias(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(symbol.valueDeclaration))), aliasSymbol, aliasTypeArguments)); - } - return instantiation; - } - function getTypeFromTypeAliasReference(node, symbol) { - if (getCheckFlags(symbol) & 1048576 /* Unresolved */) { - const typeArguments = typeArgumentsFromTypeReferenceNode(node); - const id = getAliasId(symbol, typeArguments); - let errorType2 = errorTypes.get(id); - if (!errorType2) { - errorType2 = createIntrinsicType( - 1 /* Any */, - "error", - /*objectFlags*/ - void 0, - `alias ${id}` - ); - errorType2.aliasSymbol = symbol; - errorType2.aliasTypeArguments = typeArguments; - errorTypes.set(id, errorType2); - } - return errorType2; - } - const type = getDeclaredTypeOfSymbol(symbol); - const typeParameters = getSymbolLinks(symbol).typeParameters; - if (typeParameters) { - const numTypeArguments = length(node.typeArguments); - const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); - if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) { - error( - node, - minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, - symbolToString(symbol), - minTypeArgumentCount, - typeParameters.length - ); - return errorType; - } - const aliasSymbol = getAliasSymbolForTypeNode(node); - let newAliasSymbol = aliasSymbol && (isLocalTypeAlias(symbol) || !isLocalTypeAlias(aliasSymbol)) ? aliasSymbol : void 0; - let aliasTypeArguments; - if (newAliasSymbol) { - aliasTypeArguments = getTypeArgumentsForAliasSymbol(newAliasSymbol); - } else if (isTypeReferenceType(node)) { - const aliasSymbol2 = resolveTypeReferenceName( - node, - 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); - if (aliasSymbol2 && aliasSymbol2 !== unknownSymbol) { - const resolved = resolveAlias(aliasSymbol2); - if (resolved && resolved.flags & 524288 /* TypeAlias */) { - newAliasSymbol = resolved; - aliasTypeArguments = typeArgumentsFromTypeReferenceNode(node) || (typeParameters ? [] : void 0); - } - } - } - return getTypeAliasInstantiation(symbol, typeArgumentsFromTypeReferenceNode(node), newAliasSymbol, aliasTypeArguments); - } - return checkNoTypeArguments(node, symbol) ? type : errorType; - } - function isLocalTypeAlias(symbol) { - var _a; - const declaration = (_a = symbol.declarations) == null ? void 0 : _a.find(isTypeAlias); - return !!(declaration && getContainingFunction(declaration)); - } - function getTypeReferenceName(node) { - switch (node.kind) { - case 183 /* TypeReference */: - return node.typeName; - case 233 /* ExpressionWithTypeArguments */: - const expr = node.expression; - if (isEntityNameExpression(expr)) { - return expr; - } - } - return void 0; - } - function getSymbolPath(symbol) { - return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; - } - function getUnresolvedSymbolForEntityName(name) { - const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; - const text = identifier.escapedText; - if (text) { - const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; - const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; - let result = unresolvedSymbols.get(path); - if (!result) { - unresolvedSymbols.set(path, result = createSymbol(524288 /* TypeAlias */, text, 1048576 /* Unresolved */)); - result.parent = parentSymbol; - result.links.declaredType = unresolvedType; - } - return result; - } - return unknownSymbol; - } - function resolveTypeReferenceName(typeReference, meaning, ignoreErrors) { - const name = getTypeReferenceName(typeReference); - if (!name) { - return unknownSymbol; - } - const symbol = resolveEntityName(name, meaning, ignoreErrors); - return symbol && symbol !== unknownSymbol ? symbol : ignoreErrors ? unknownSymbol : getUnresolvedSymbolForEntityName(name); - } - function getTypeReferenceType(node, symbol) { - if (symbol === unknownSymbol) { - return errorType; - } - symbol = getExpandoSymbol(symbol) || symbol; - if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) { - return getTypeFromClassOrInterfaceReference(node, symbol); - } - if (symbol.flags & 524288 /* TypeAlias */) { - return getTypeFromTypeAliasReference(node, symbol); - } - const res = tryGetDeclaredTypeOfSymbol(symbol); - if (res) { - return checkNoTypeArguments(node, symbol) ? getRegularTypeOfLiteralType(res) : errorType; - } - if (symbol.flags & 111551 /* Value */ && isJSDocTypeReference(node)) { - const jsdocType = getTypeFromJSDocValueReference(node, symbol); - if (jsdocType) { - return jsdocType; - } else { - resolveTypeReferenceName(node, 788968 /* Type */); - return getTypeOfSymbol(symbol); - } - } - return errorType; - } - function getTypeFromJSDocValueReference(node, symbol) { - const links = getNodeLinks(node); - if (!links.resolvedJSDocType) { - const valueType = getTypeOfSymbol(symbol); - let typeType = valueType; - if (symbol.valueDeclaration) { - const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; - if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { - typeType = getTypeReferenceType(node, valueType.symbol); - } - } - links.resolvedJSDocType = typeType; - } - return links.resolvedJSDocType; - } - function getNoInferType(type) { - return isNoInferTargetType(type) ? getOrCreateSubstitutionType(type, unknownType) : type; - } - function isNoInferTargetType(type) { - return !!(type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, isNoInferTargetType) || type.flags & 33554432 /* Substitution */ && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 /* Instantiable */ & ~33554432 /* Substitution */) && !isPatternLiteralType(type)); - } - function isNoInferType(type) { - return !!(type.flags & 33554432 /* Substitution */ && type.constraint.flags & 2 /* Unknown */); - } - function getSubstitutionType(baseType, constraint) { - return constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */ ? baseType : getOrCreateSubstitutionType(baseType, constraint); - } - function getOrCreateSubstitutionType(baseType, constraint) { - const id = `${getTypeId(baseType)}>${getTypeId(constraint)}`; - const cached = substitutionTypes.get(id); - if (cached) { - return cached; - } - const result = createType(33554432 /* Substitution */); - result.baseType = baseType; - result.constraint = constraint; - substitutionTypes.set(id, result); - return result; - } - function getSubstitutionIntersection(substitutionType) { - return isNoInferType(substitutionType) ? substitutionType.baseType : getIntersectionType([substitutionType.constraint, substitutionType.baseType]); - } - function isUnaryTupleTypeNode(node) { - return node.kind === 189 /* TupleType */ && node.elements.length === 1; - } - function getImpliedConstraint(type, checkNode, extendsNode) { - return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; - } - function getConditionalFlowTypeOfType(type, node) { - let constraints; - let covariant = true; - while (node && !isStatement(node) && node.kind !== 320 /* JSDoc */) { - const parent = node.parent; - if (parent.kind === 169 /* Parameter */) { - covariant = !covariant; - } - if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent.kind === 194 /* ConditionalType */ && node === parent.trueType) { - const constraint = getImpliedConstraint(type, parent.checkType, parent.extendsType); - if (constraint) { - constraints = append(constraints, constraint); - } - } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && !parent.nameType && node === parent.type) { - const mappedType = getTypeFromTypeNode(parent); - if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { - const typeParameter = getHomomorphicTypeVariable(mappedType); - if (typeParameter) { - const constraint = getConstraintOfTypeParameter(typeParameter); - if (constraint && everyType(constraint, isArrayOrTupleType)) { - constraints = append(constraints, getUnionType([numberType, numericStringType])); - } - } - } - } - node = parent; - } - return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; - } - function isJSDocTypeReference(node) { - return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); - } - function checkNoTypeArguments(node, symbol) { - if (node.typeArguments) { - error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); - return false; - } - return true; - } - function getIntendedTypeFromJSDocTypeReference(node) { - if (isIdentifier(node.typeName)) { - const typeArgs = node.typeArguments; - switch (node.typeName.escapedText) { - case "String": - checkNoTypeArguments(node); - return stringType; - case "Number": - checkNoTypeArguments(node); - return numberType; - case "BigInt": - checkNoTypeArguments(node); - return bigintType; - case "Boolean": - checkNoTypeArguments(node); - return booleanType; - case "Void": - checkNoTypeArguments(node); - return voidType; - case "Undefined": - checkNoTypeArguments(node); - return undefinedType; - case "Null": - checkNoTypeArguments(node); - return nullType; - case "Function": - case "function": - checkNoTypeArguments(node); - return globalFunctionType; - case "array": - return (!typeArgs || !typeArgs.length) && !noImplicitAny ? anyArrayType : void 0; - case "promise": - return (!typeArgs || !typeArgs.length) && !noImplicitAny ? createPromiseType(anyType) : void 0; - case "Object": - if (typeArgs && typeArgs.length === 2) { - if (isJSDocIndexSignature(node)) { - const indexed = getTypeFromTypeNode(typeArgs[0]); - const target = getTypeFromTypeNode(typeArgs[1]); - const indexInfo = indexed === stringType || indexed === numberType ? [createIndexInfo( - indexed, - target, - /*isReadonly*/ - false - )] : emptyArray; - return createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - indexInfo - ); - } - return anyType; - } - checkNoTypeArguments(node); - return !noImplicitAny ? anyType : void 0; - } - } - } - function getTypeFromJSDocNullableTypeNode(node) { - const type = getTypeFromTypeNode(node.type); - return strictNullChecks ? getNullableType(type, 65536 /* Null */) : type; - } - function getTypeFromTypeReference(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - if (isConstTypeReference(node) && isAssertionExpression(node.parent)) { - links.resolvedSymbol = unknownSymbol; - return links.resolvedType = checkExpressionCached(node.parent.expression); - } - let symbol; - let type; - const meaning = 788968 /* Type */; - if (isJSDocTypeReference(node)) { - type = getIntendedTypeFromJSDocTypeReference(node); - if (!type) { - symbol = resolveTypeReferenceName( - node, - meaning, - /*ignoreErrors*/ - true - ); - if (symbol === unknownSymbol) { - symbol = resolveTypeReferenceName(node, meaning | 111551 /* Value */); - } else { - resolveTypeReferenceName(node, meaning); - } - type = getTypeReferenceType(node, symbol); - } - } - if (!type) { - symbol = resolveTypeReferenceName(node, meaning); - type = getTypeReferenceType(node, symbol); - } - links.resolvedSymbol = symbol; - links.resolvedType = type; - } - return links.resolvedType; - } - function typeArgumentsFromTypeReferenceNode(node) { - return map(node.typeArguments, getTypeFromTypeNode); - } - function getTypeFromTypeQueryNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const type = checkExpressionWithTypeArguments(node); - links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(type)); - } - return links.resolvedType; - } - function getTypeOfGlobalSymbol(symbol, arity) { - function getTypeDeclaration(symbol2) { - const declarations = symbol2.declarations; - if (declarations) { - for (const declaration of declarations) { - switch (declaration.kind) { - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 266 /* EnumDeclaration */: - return declaration; - } - } - } - } - if (!symbol) { - return arity ? emptyGenericType : emptyObjectType; - } - const type = getDeclaredTypeOfSymbol(symbol); - if (!(type.flags & 524288 /* Object */)) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); - return arity ? emptyGenericType : emptyObjectType; - } - if (length(type.typeParameters) !== arity) { - error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); - return arity ? emptyGenericType : emptyObjectType; - } - return type; - } - function getGlobalValueSymbol(name, reportErrors2) { - return getGlobalSymbol(name, 111551 /* Value */, reportErrors2 ? Diagnostics.Cannot_find_global_value_0 : void 0); - } - function getGlobalTypeSymbol(name, reportErrors2) { - return getGlobalSymbol(name, 788968 /* Type */, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0); - } - function getGlobalTypeAliasSymbol(name, arity, reportErrors2) { - const symbol = getGlobalSymbol(name, 788968 /* Type */, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0); - if (symbol) { - getDeclaredTypeOfSymbol(symbol); - if (length(getSymbolLinks(symbol).typeParameters) !== arity) { - const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration); - error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); - return void 0; - } - } - return symbol; - } - function getGlobalSymbol(name, meaning, diagnostic) { - return resolveName( - /*location*/ - void 0, - name, - meaning, - diagnostic, - /*isUse*/ - false, - /*excludeGlobals*/ - false - ); - } - function getGlobalType(name, arity, reportErrors2) { - const symbol = getGlobalTypeSymbol(name, reportErrors2); - return symbol || reportErrors2 ? getTypeOfGlobalSymbol(symbol, arity) : void 0; - } - function getGlobalBuiltinTypes(typeNames, arity) { - let types; - for (const typeName of typeNames) { - types = append(types, getGlobalType( - typeName, - arity, - /*reportErrors*/ - false - )); - } - return types ?? emptyArray; - } - function getGlobalTypedPropertyDescriptorType() { - return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType( - "TypedPropertyDescriptor", - /*arity*/ - 1, - /*reportErrors*/ - true - ) || emptyGenericType); - } - function getGlobalTemplateStringsArrayType() { - return deferredGlobalTemplateStringsArrayType || (deferredGlobalTemplateStringsArrayType = getGlobalType( - "TemplateStringsArray", - /*arity*/ - 0, - /*reportErrors*/ - true - ) || emptyObjectType); - } - function getGlobalImportMetaType() { - return deferredGlobalImportMetaType || (deferredGlobalImportMetaType = getGlobalType( - "ImportMeta", - /*arity*/ - 0, - /*reportErrors*/ - true - ) || emptyObjectType); - } - function getGlobalImportMetaExpressionType() { - if (!deferredGlobalImportMetaExpressionType) { - const symbol = createSymbol(0 /* None */, "ImportMetaExpression"); - const importMetaType = getGlobalImportMetaType(); - const metaPropertySymbol = createSymbol(4 /* Property */, "meta", 8 /* Readonly */); - metaPropertySymbol.parent = symbol; - metaPropertySymbol.links.type = importMetaType; - const members = createSymbolTable([metaPropertySymbol]); - symbol.members = members; - deferredGlobalImportMetaExpressionType = createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); - } - return deferredGlobalImportMetaExpressionType; - } - function getGlobalImportCallOptionsType(reportErrors2) { - return deferredGlobalImportCallOptionsType || (deferredGlobalImportCallOptionsType = getGlobalType( - "ImportCallOptions", - /*arity*/ - 0, - reportErrors2 - )) || emptyObjectType; - } - function getGlobalImportAttributesType(reportErrors2) { - return deferredGlobalImportAttributesType || (deferredGlobalImportAttributesType = getGlobalType( - "ImportAttributes", - /*arity*/ - 0, - reportErrors2 - )) || emptyObjectType; - } - function getGlobalESSymbolConstructorSymbol(reportErrors2) { - return deferredGlobalESSymbolConstructorSymbol || (deferredGlobalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol", reportErrors2)); - } - function getGlobalESSymbolConstructorTypeSymbol(reportErrors2) { - return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors2)); - } - function getGlobalESSymbolType() { - return deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType( - "Symbol", - /*arity*/ - 0, - /*reportErrors*/ - false - )) || emptyObjectType; - } - function getGlobalPromiseType(reportErrors2) { - return deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType( - "Promise", - /*arity*/ - 1, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalPromiseLikeType(reportErrors2) { - return deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType( - "PromiseLike", - /*arity*/ - 1, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalPromiseConstructorSymbol(reportErrors2) { - return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol("Promise", reportErrors2)); - } - function getGlobalPromiseConstructorLikeType(reportErrors2) { - return deferredGlobalPromiseConstructorLikeType || (deferredGlobalPromiseConstructorLikeType = getGlobalType( - "PromiseConstructorLike", - /*arity*/ - 0, - reportErrors2 - )) || emptyObjectType; - } - function getGlobalAsyncIterableType(reportErrors2) { - return deferredGlobalAsyncIterableType || (deferredGlobalAsyncIterableType = getGlobalType( - "AsyncIterable", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalAsyncIteratorType(reportErrors2) { - return deferredGlobalAsyncIteratorType || (deferredGlobalAsyncIteratorType = getGlobalType( - "AsyncIterator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalAsyncIterableIteratorType(reportErrors2) { - return deferredGlobalAsyncIterableIteratorType || (deferredGlobalAsyncIterableIteratorType = getGlobalType( - "AsyncIterableIterator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalBuiltinAsyncIteratorTypes() { - return deferredGlobalBuiltinAsyncIteratorTypes ?? (deferredGlobalBuiltinAsyncIteratorTypes = getGlobalBuiltinTypes(["ReadableStreamAsyncIterator"], 1)); - } - function getGlobalAsyncIteratorObjectType(reportErrors2) { - return deferredGlobalAsyncIteratorObjectType || (deferredGlobalAsyncIteratorObjectType = getGlobalType( - "AsyncIteratorObject", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalAsyncGeneratorType(reportErrors2) { - return deferredGlobalAsyncGeneratorType || (deferredGlobalAsyncGeneratorType = getGlobalType( - "AsyncGenerator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalIterableType(reportErrors2) { - return deferredGlobalIterableType || (deferredGlobalIterableType = getGlobalType( - "Iterable", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalIteratorType(reportErrors2) { - return deferredGlobalIteratorType || (deferredGlobalIteratorType = getGlobalType( - "Iterator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalIterableIteratorType(reportErrors2) { - return deferredGlobalIterableIteratorType || (deferredGlobalIterableIteratorType = getGlobalType( - "IterableIterator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getBuiltinIteratorReturnType() { - return strictBuiltinIteratorReturn ? undefinedType : anyType; - } - function getGlobalBuiltinIteratorTypes() { - return deferredGlobalBuiltinIteratorTypes ?? (deferredGlobalBuiltinIteratorTypes = getGlobalBuiltinTypes(["ArrayIterator", "MapIterator", "SetIterator", "StringIterator"], 1)); - } - function getGlobalIteratorObjectType(reportErrors2) { - return deferredGlobalIteratorObjectType || (deferredGlobalIteratorObjectType = getGlobalType( - "IteratorObject", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalGeneratorType(reportErrors2) { - return deferredGlobalGeneratorType || (deferredGlobalGeneratorType = getGlobalType( - "Generator", - /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalIteratorYieldResultType(reportErrors2) { - return deferredGlobalIteratorYieldResultType || (deferredGlobalIteratorYieldResultType = getGlobalType( - "IteratorYieldResult", - /*arity*/ - 1, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalIteratorReturnResultType(reportErrors2) { - return deferredGlobalIteratorReturnResultType || (deferredGlobalIteratorReturnResultType = getGlobalType( - "IteratorReturnResult", - /*arity*/ - 1, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalDisposableType(reportErrors2) { - return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( - "Disposable", - /*arity*/ - 0, - reportErrors2 - )) || emptyObjectType; - } - function getGlobalAsyncDisposableType(reportErrors2) { - return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( - "AsyncDisposable", - /*arity*/ - 0, - reportErrors2 - )) || emptyObjectType; - } - function getGlobalTypeOrUndefined(name, arity = 0) { - const symbol = getGlobalSymbol( - name, - 788968 /* Type */, - /*diagnostic*/ - void 0 - ); - return symbol && getTypeOfGlobalSymbol(symbol, arity); - } - function getGlobalExtractSymbol() { - deferredGlobalExtractSymbol || (deferredGlobalExtractSymbol = getGlobalTypeAliasSymbol( - "Extract", - /*arity*/ - 2, - /*reportErrors*/ - true - ) || unknownSymbol); - return deferredGlobalExtractSymbol === unknownSymbol ? void 0 : deferredGlobalExtractSymbol; - } - function getGlobalOmitSymbol() { - deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalTypeAliasSymbol( - "Omit", - /*arity*/ - 2, - /*reportErrors*/ - true - ) || unknownSymbol); - return deferredGlobalOmitSymbol === unknownSymbol ? void 0 : deferredGlobalOmitSymbol; - } - function getGlobalAwaitedSymbol(reportErrors2) { - deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol( - "Awaited", - /*arity*/ - 1, - reportErrors2 - ) || (reportErrors2 ? unknownSymbol : void 0)); - return deferredGlobalAwaitedSymbol === unknownSymbol ? void 0 : deferredGlobalAwaitedSymbol; - } - function getGlobalBigIntType() { - return deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType( - "BigInt", - /*arity*/ - 0, - /*reportErrors*/ - false - )) || emptyObjectType; - } - function getGlobalClassDecoratorContextType(reportErrors2) { - return deferredGlobalClassDecoratorContextType ?? (deferredGlobalClassDecoratorContextType = getGlobalType( - "ClassDecoratorContext", - /*arity*/ - 1, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassMethodDecoratorContextType(reportErrors2) { - return deferredGlobalClassMethodDecoratorContextType ?? (deferredGlobalClassMethodDecoratorContextType = getGlobalType( - "ClassMethodDecoratorContext", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassGetterDecoratorContextType(reportErrors2) { - return deferredGlobalClassGetterDecoratorContextType ?? (deferredGlobalClassGetterDecoratorContextType = getGlobalType( - "ClassGetterDecoratorContext", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassSetterDecoratorContextType(reportErrors2) { - return deferredGlobalClassSetterDecoratorContextType ?? (deferredGlobalClassSetterDecoratorContextType = getGlobalType( - "ClassSetterDecoratorContext", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassAccessorDecoratorContextType(reportErrors2) { - return deferredGlobalClassAccessorDecoratorContextType ?? (deferredGlobalClassAccessorDecoratorContextType = getGlobalType( - "ClassAccessorDecoratorContext", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassAccessorDecoratorTargetType(reportErrors2) { - return deferredGlobalClassAccessorDecoratorTargetType ?? (deferredGlobalClassAccessorDecoratorTargetType = getGlobalType( - "ClassAccessorDecoratorTarget", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassAccessorDecoratorResultType(reportErrors2) { - return deferredGlobalClassAccessorDecoratorResultType ?? (deferredGlobalClassAccessorDecoratorResultType = getGlobalType( - "ClassAccessorDecoratorResult", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalClassFieldDecoratorContextType(reportErrors2) { - return deferredGlobalClassFieldDecoratorContextType ?? (deferredGlobalClassFieldDecoratorContextType = getGlobalType( - "ClassFieldDecoratorContext", - /*arity*/ - 2, - reportErrors2 - )) ?? emptyGenericType; - } - function getGlobalNaNSymbol() { - return deferredGlobalNaNSymbol || (deferredGlobalNaNSymbol = getGlobalValueSymbol( - "NaN", - /*reportErrors*/ - false - )); - } - function getGlobalRecordSymbol() { - deferredGlobalRecordSymbol || (deferredGlobalRecordSymbol = getGlobalTypeAliasSymbol( - "Record", - /*arity*/ - 2, - /*reportErrors*/ - true - ) || unknownSymbol); - return deferredGlobalRecordSymbol === unknownSymbol ? void 0 : deferredGlobalRecordSymbol; - } - function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) { - return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType; - } - function createTypedPropertyDescriptorType(propertyType) { - return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(), [propertyType]); - } - function createIterableType(iteratedType) { - return createTypeFromGenericGlobalType(getGlobalIterableType( - /*reportErrors*/ - true - ), [iteratedType, voidType, undefinedType]); - } - function createArrayType(elementType, readonly) { - return createTypeFromGenericGlobalType(readonly ? globalReadonlyArrayType : globalArrayType, [elementType]); - } - function getTupleElementFlags(node) { - switch (node.kind) { - case 190 /* OptionalType */: - return 2 /* Optional */; - case 191 /* RestType */: - return getRestTypeElementFlags(node); - case 202 /* NamedTupleMember */: - return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; - default: - return 1 /* Required */; - } - } - function getRestTypeElementFlags(node) { - return getArrayElementTypeNode(node.type) ? 4 /* Rest */ : 8 /* Variadic */; - } - function getArrayOrTupleTargetType(node) { - const readonly = isReadonlyTypeOperator(node.parent); - const elementType = getArrayElementTypeNode(node); - if (elementType) { - return readonly ? globalReadonlyArrayType : globalArrayType; - } - const elementFlags = map(node.elements, getTupleElementFlags); - return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); - } - function memberIfLabeledElementDeclaration(member) { - return isNamedTupleMember(member) || isParameter(member) ? member : void 0; - } - function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { - return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); - } - function isResolvedByTypeAlias(node) { - const parent = node.parent; - switch (parent.kind) { - case 196 /* ParenthesizedType */: - case 202 /* NamedTupleMember */: - case 183 /* TypeReference */: - case 192 /* UnionType */: - case 193 /* IntersectionType */: - case 199 /* IndexedAccessType */: - case 194 /* ConditionalType */: - case 198 /* TypeOperator */: - case 188 /* ArrayType */: - case 189 /* TupleType */: - return isResolvedByTypeAlias(parent); - case 265 /* TypeAliasDeclaration */: - return true; - } - return false; - } - function mayResolveTypeAlias(node) { - switch (node.kind) { - case 183 /* TypeReference */: - return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); - case 186 /* TypeQuery */: - return true; - case 198 /* TypeOperator */: - return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); - case 196 /* ParenthesizedType */: - case 190 /* OptionalType */: - case 202 /* NamedTupleMember */: - case 316 /* JSDocOptionalType */: - case 314 /* JSDocNullableType */: - case 315 /* JSDocNonNullableType */: - case 309 /* JSDocTypeExpression */: - return mayResolveTypeAlias(node.type); - case 191 /* RestType */: - return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); - case 192 /* UnionType */: - case 193 /* IntersectionType */: - return some(node.types, mayResolveTypeAlias); - case 199 /* IndexedAccessType */: - return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); - case 194 /* ConditionalType */: - return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); - } - return false; - } - function getTypeFromArrayOrTupleTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const target = getArrayOrTupleTargetType(node); - if (target === emptyGenericType) { - links.resolvedType = emptyObjectType; - } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { - links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( - target, - node, - /*mapper*/ - void 0 - ); - } else { - const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); - links.resolvedType = createNormalizedTypeReference(target, elementTypes); - } - } - return links.resolvedType; - } - function isReadonlyTypeOperator(node) { - return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; - } - function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { - const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); - return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; - } - function getTupleTargetType(elementFlags, readonly, namedMemberDeclarations) { - if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { - return readonly ? globalReadonlyArrayType : globalArrayType; - } - const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (some(namedMemberDeclarations, (node) => !!node) ? "," + map(namedMemberDeclarations, (node) => node ? getNodeId(node) : "_").join(",") : ""); - let type = tupleTypes.get(key); - if (!type) { - tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); - } - return type; - } - function createTupleTargetType(elementFlags, readonly, namedMemberDeclarations) { - const arity = elementFlags.length; - const minLength = countWhere(elementFlags, (f) => !!(f & (1 /* Required */ | 8 /* Variadic */))); - let typeParameters; - const properties = []; - let combinedFlags = 0; - if (arity) { - typeParameters = new Array(arity); - for (let i = 0; i < arity; i++) { - const typeParameter = typeParameters[i] = createTypeParameter(); - const flags = elementFlags[i]; - combinedFlags |= flags; - if (!(combinedFlags & 12 /* Variable */)) { - const property = createSymbol(4 /* Property */ | (flags & 2 /* Optional */ ? 16777216 /* Optional */ : 0), "" + i, readonly ? 8 /* Readonly */ : 0); - property.links.tupleLabelDeclaration = namedMemberDeclarations == null ? void 0 : namedMemberDeclarations[i]; - property.links.type = typeParameter; - properties.push(property); - } - } - } - const fixedLength = properties.length; - const lengthSymbol = createSymbol(4 /* Property */, "length", readonly ? 8 /* Readonly */ : 0); - if (combinedFlags & 12 /* Variable */) { - lengthSymbol.links.type = numberType; - } else { - const literalTypes = []; - for (let i = minLength; i <= arity; i++) literalTypes.push(getNumberLiteralType(i)); - lengthSymbol.links.type = getUnionType(literalTypes); - } - properties.push(lengthSymbol); - const type = createObjectType(8 /* Tuple */ | 4 /* Reference */); - type.typeParameters = typeParameters; - type.outerTypeParameters = void 0; - type.localTypeParameters = typeParameters; - type.instantiations = /* @__PURE__ */ new Map(); - type.instantiations.set(getTypeListId(type.typeParameters), type); - type.target = type; - type.resolvedTypeArguments = type.typeParameters; - type.thisType = createTypeParameter(); - type.thisType.isThisType = true; - type.thisType.constraint = type; - type.declaredProperties = properties; - type.declaredCallSignatures = emptyArray; - type.declaredConstructSignatures = emptyArray; - type.declaredIndexInfos = emptyArray; - type.elementFlags = elementFlags; - type.minLength = minLength; - type.fixedLength = fixedLength; - type.hasRestElement = !!(combinedFlags & 12 /* Variable */); - type.combinedFlags = combinedFlags; - type.readonly = readonly; - type.labeledElementDeclarations = namedMemberDeclarations; - return type; - } - function createNormalizedTypeReference(target, typeArguments) { - return target.objectFlags & 8 /* Tuple */ ? createNormalizedTupleType(target, typeArguments) : createTypeReference(target, typeArguments); - } - function createNormalizedTupleType(target, elementTypes) { - var _a, _b, _c, _d; - if (!(target.combinedFlags & 14 /* NonRequired */)) { - return createTypeReference(target, elementTypes); - } - if (target.combinedFlags & 8 /* Variadic */) { - const unionIndex = findIndex(elementTypes, (t, i) => !!(target.elementFlags[i] & 8 /* Variadic */ && t.flags & (131072 /* Never */ | 1048576 /* Union */))); - if (unionIndex >= 0) { - return checkCrossProductUnion(map(elementTypes, (t, i) => target.elementFlags[i] & 8 /* Variadic */ ? t : unknownType)) ? mapType(elementTypes[unionIndex], (t) => createNormalizedTupleType(target, replaceElement(elementTypes, unionIndex, t))) : errorType; - } - } - const expandedTypes = []; - const expandedFlags = []; - const expandedDeclarations = []; - let lastRequiredIndex = -1; - let firstRestIndex = -1; - let lastOptionalOrRestIndex = -1; - for (let i = 0; i < elementTypes.length; i++) { - const type = elementTypes[i]; - const flags = target.elementFlags[i]; - if (flags & 8 /* Variadic */) { - if (type.flags & 1 /* Any */) { - addElement(type, 4 /* Rest */, (_a = target.labeledElementDeclarations) == null ? void 0 : _a[i]); - } else if (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type)) { - addElement(type, 8 /* Variadic */, (_b = target.labeledElementDeclarations) == null ? void 0 : _b[i]); - } else if (isTupleType(type)) { - const elements = getElementTypes(type); - if (elements.length + expandedTypes.length >= 1e4) { - error( - currentNode, - isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent - ); - return errorType; - } - forEach(elements, (t, n) => { - var _a2; - return addElement(t, type.target.elementFlags[n], (_a2 = type.target.labeledElementDeclarations) == null ? void 0 : _a2[n]); - }); - } else { - addElement(isArrayLikeType(type) && getIndexTypeOfType(type, numberType) || errorType, 4 /* Rest */, (_c = target.labeledElementDeclarations) == null ? void 0 : _c[i]); - } - } else { - addElement(type, flags, (_d = target.labeledElementDeclarations) == null ? void 0 : _d[i]); - } - } - for (let i = 0; i < lastRequiredIndex; i++) { - if (expandedFlags[i] & 2 /* Optional */) expandedFlags[i] = 1 /* Required */; - } - if (firstRestIndex >= 0 && firstRestIndex < lastOptionalOrRestIndex) { - expandedTypes[firstRestIndex] = getUnionType(sameMap(expandedTypes.slice(firstRestIndex, lastOptionalOrRestIndex + 1), (t, i) => expandedFlags[firstRestIndex + i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t)); - expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); - } - const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); - return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; - function addElement(type, flags, declaration) { - if (flags & 1 /* Required */) { - lastRequiredIndex = expandedFlags.length; - } - if (flags & 4 /* Rest */ && firstRestIndex < 0) { - firstRestIndex = expandedFlags.length; - } - if (flags & (2 /* Optional */ | 4 /* Rest */)) { - lastOptionalOrRestIndex = expandedFlags.length; - } - expandedTypes.push(flags & 2 /* Optional */ ? addOptionality( - type, - /*isProperty*/ - true - ) : type); - expandedFlags.push(flags); - expandedDeclarations.push(declaration); - } - } - function sliceTupleType(type, index, endSkipCount = 0) { - const target = type.target; - const endIndex = getTypeReferenceArity(type) - endSkipCount; - return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(emptyArray) : createTupleType( - getTypeArguments(type).slice(index, endIndex), - target.elementFlags.slice(index, endIndex), - /*readonly*/ - false, - target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex) - ); - } - function getKnownKeysOfTupleType(type) { - return getUnionType(append(arrayOf(type.target.fixedLength, (i) => getStringLiteralType("" + i)), getIndexType(type.target.readonly ? globalReadonlyArrayType : globalArrayType))); - } - function getStartElementCount(type, flags) { - const index = findIndex(type.elementFlags, (f) => !(f & flags)); - return index >= 0 ? index : type.elementFlags.length; - } - function getEndElementCount(type, flags) { - return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; - } - function getTotalFixedElementCount(type) { - return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); - } - function getElementTypes(type) { - const typeArguments = getTypeArguments(type); - const arity = getTypeReferenceArity(type); - return typeArguments.length === arity ? typeArguments : typeArguments.slice(0, arity); - } - function getTypeFromOptionalTypeNode(node) { - return addOptionality( - getTypeFromTypeNode(node.type), - /*isProperty*/ - true - ); - } - function getTypeId(type) { - return type.id; - } - function containsType(types, type) { - return binarySearch(types, type, getTypeId, compareValues) >= 0; - } - function insertType(types, type) { - const index = binarySearch(types, type, getTypeId, compareValues); - if (index < 0) { - types.splice(~index, 0, type); - return true; - } - return false; - } - function addTypeToUnion(typeSet, includes, type) { - const flags = type.flags; - if (!(flags & 131072 /* Never */)) { - includes |= flags & 473694207 /* IncludesMask */; - if (flags & 465829888 /* Instantiable */) includes |= 33554432 /* IncludesInstantiable */; - if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) includes |= 536870912 /* IncludesConstrainedTypeVariable */; - if (type === wildcardType) includes |= 8388608 /* IncludesWildcard */; - if (isErrorType(type)) includes |= 1073741824 /* IncludesError */; - if (!strictNullChecks && flags & 98304 /* Nullable */) { - if (!(getObjectFlags(type) & 65536 /* ContainsWideningType */)) includes |= 4194304 /* IncludesNonWideningType */; - } else { - const len = typeSet.length; - const index = len && type.id > typeSet[len - 1].id ? ~len : binarySearch(typeSet, type, getTypeId, compareValues); - if (index < 0) { - typeSet.splice(~index, 0, type); - } - } - } - return includes; - } - function addTypesToUnion(typeSet, includes, types) { - let lastType; - for (const type of types) { - if (type !== lastType) { - includes = type.flags & 1048576 /* Union */ ? addTypesToUnion(typeSet, includes | (isNamedUnionType(type) ? 1048576 /* Union */ : 0), type.types) : addTypeToUnion(typeSet, includes, type); - lastType = type; - } - } - return includes; - } - function removeSubtypes(types, hasObjectTypes) { - var _a; - if (types.length < 2) { - return types; - } - const id = getTypeListId(types); - const match = subtypeReductionCache.get(id); - if (match) { - return match; - } - const hasEmptyObject = hasObjectTypes && some(types, (t) => !!(t.flags & 524288 /* Object */) && !isGenericMappedType(t) && isEmptyResolvedType(resolveStructuredTypeMembers(t))); - const len = types.length; - let i = len; - let count = 0; - while (i > 0) { - i--; - const source = types[i]; - if (hasEmptyObject || source.flags & 469499904 /* StructuredOrInstantiable */) { - if (source.flags & 262144 /* TypeParameter */ && getBaseConstraintOrType(source).flags & 1048576 /* Union */) { - if (isTypeRelatedTo(source, getUnionType(map(types, (t) => t === source ? neverType : t)), strictSubtypeRelation)) { - orderedRemoveItemAt(types, i); - } - continue; - } - const keyProperty = source.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */) ? find(getPropertiesOfType(source), (p) => isUnitType(getTypeOfSymbol(p))) : void 0; - const keyPropertyType = keyProperty && getRegularTypeOfLiteralType(getTypeOfSymbol(keyProperty)); - for (const target of types) { - if (source !== target) { - if (count === 1e5) { - const estimatedCount = count / (len - i) * len; - if (estimatedCount > 1e6) { - (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: types.map((t) => t.id) }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); - return void 0; - } - } - count++; - if (keyProperty && target.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) { - const t = getTypeOfPropertyOfType(target, keyProperty.escapedName); - if (t && isUnitType(t) && getRegularTypeOfLiteralType(t) !== keyPropertyType) { - continue; - } - } - if (isTypeRelatedTo(source, target, strictSubtypeRelation) && (!(getObjectFlags(getTargetType(source)) & 1 /* Class */) || !(getObjectFlags(getTargetType(target)) & 1 /* Class */) || isTypeDerivedFrom(source, target))) { - orderedRemoveItemAt(types, i); - break; - } - } - } - } - } - subtypeReductionCache.set(id, types); - return types; - } - function removeRedundantLiteralTypes(types, includes, reduceVoidUndefined) { - let i = types.length; - while (i > 0) { - i--; - const t = types[i]; - const flags = t.flags; - const remove = flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 4 /* String */ || flags & 256 /* NumberLiteral */ && includes & 8 /* Number */ || flags & 2048 /* BigIntLiteral */ && includes & 64 /* BigInt */ || flags & 8192 /* UniqueESSymbol */ && includes & 4096 /* ESSymbol */ || reduceVoidUndefined && flags & 32768 /* Undefined */ && includes & 16384 /* Void */ || isFreshLiteralType(t) && containsType(types, t.regularType); - if (remove) { - orderedRemoveItemAt(types, i); - } - } - } - function removeStringLiteralsMatchedByTemplateLiterals(types) { - const templates = filter(types, isPatternLiteralType); - if (templates.length) { - let i = types.length; - while (i > 0) { - i--; - const t = types[i]; - if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) { - orderedRemoveItemAt(types, i); - } - } - } - } - function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) { - return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template); - } - function removeConstrainedTypeVariables(types) { - const typeVariables = []; - for (const type of types) { - if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { - const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; - pushIfUnique(typeVariables, type.types[index]); - } - } - for (const typeVariable of typeVariables) { - const primitives = []; - for (const type of types) { - if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { - const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; - if (type.types[index] === typeVariable) { - insertType(primitives, type.types[1 - index]); - } - } - } - const constraint = getBaseConstraintOfType(typeVariable); - if (everyType(constraint, (t) => containsType(primitives, t))) { - let i = types.length; - while (i > 0) { - i--; - const type = types[i]; - if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { - const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; - if (type.types[index] === typeVariable && containsType(primitives, type.types[1 - index])) { - orderedRemoveItemAt(types, i); - } - } - } - insertType(types, typeVariable); - } - } - } - function isNamedUnionType(type) { - return !!(type.flags & 1048576 /* Union */ && (type.aliasSymbol || type.origin)); - } - function addNamedUnions(namedUnions, types) { - for (const t of types) { - if (t.flags & 1048576 /* Union */) { - const origin = t.origin; - if (t.aliasSymbol || origin && !(origin.flags & 1048576 /* Union */)) { - pushIfUnique(namedUnions, t); - } else if (origin && origin.flags & 1048576 /* Union */) { - addNamedUnions(namedUnions, origin.types); - } - } - } - } - function createOriginUnionOrIntersectionType(flags, types) { - const result = createOriginType(flags); - result.types = types; - return result; - } - function getUnionType(types, unionReduction = 1 /* Literal */, aliasSymbol, aliasTypeArguments, origin) { - if (types.length === 0) { - return neverType; - } - if (types.length === 1) { - return types[0]; - } - if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) { - const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L"; - const index = types[0].id < types[1].id ? 0 : 1; - const id = types[index].id + infix + types[1 - index].id + getAliasId(aliasSymbol, aliasTypeArguments); - let type = unionOfUnionTypes.get(id); - if (!type) { - type = getUnionTypeWorker( - types, - unionReduction, - aliasSymbol, - aliasTypeArguments, - /*origin*/ - void 0 - ); - unionOfUnionTypes.set(id, type); - } - return type; - } - return getUnionTypeWorker(types, unionReduction, aliasSymbol, aliasTypeArguments, origin); - } - function getUnionTypeWorker(types, unionReduction, aliasSymbol, aliasTypeArguments, origin) { - let typeSet = []; - const includes = addTypesToUnion(typeSet, 0, types); - if (unionReduction !== 0 /* None */) { - if (includes & 3 /* AnyOrUnknown */) { - return includes & 1 /* Any */ ? includes & 8388608 /* IncludesWildcard */ ? wildcardType : includes & 1073741824 /* IncludesError */ ? errorType : anyType : unknownType; - } - if (includes & 32768 /* Undefined */) { - if (typeSet.length >= 2 && typeSet[0] === undefinedType && typeSet[1] === missingType) { - orderedRemoveItemAt(typeSet, 1); - } - } - if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) { - removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */)); - } - if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) { - removeStringLiteralsMatchedByTemplateLiterals(typeSet); - } - if (includes & 536870912 /* IncludesConstrainedTypeVariable */) { - removeConstrainedTypeVariables(typeSet); - } - if (unionReduction === 2 /* Subtype */) { - typeSet = removeSubtypes(typeSet, !!(includes & 524288 /* Object */)); - if (!typeSet) { - return errorType; - } - } - if (typeSet.length === 0) { - return includes & 65536 /* Null */ ? includes & 4194304 /* IncludesNonWideningType */ ? nullType : nullWideningType : includes & 32768 /* Undefined */ ? includes & 4194304 /* IncludesNonWideningType */ ? undefinedType : undefinedWideningType : neverType; - } - } - if (!origin && includes & 1048576 /* Union */) { - const namedUnions = []; - addNamedUnions(namedUnions, types); - const reducedTypes = []; - for (const t of typeSet) { - if (!some(namedUnions, (union) => containsType(union.types, t))) { - reducedTypes.push(t); - } - } - if (!aliasSymbol && namedUnions.length === 1 && reducedTypes.length === 0) { - return namedUnions[0]; - } - const namedTypesCount = reduceLeft(namedUnions, (sum, union) => sum + union.types.length, 0); - if (namedTypesCount + reducedTypes.length === typeSet.length) { - for (const t of namedUnions) { - insertType(reducedTypes, t); - } - origin = createOriginUnionOrIntersectionType(1048576 /* Union */, reducedTypes); - } - } - const objectFlags = (includes & 36323331 /* NotPrimitiveUnion */ ? 0 : 32768 /* PrimitiveUnion */) | (includes & 2097152 /* Intersection */ ? 16777216 /* ContainsIntersections */ : 0); - return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin); - } - function getUnionOrIntersectionTypePredicate(signatures, kind) { - let last2; - const types = []; - for (const sig of signatures) { - const pred = getTypePredicateOfSignature(sig); - if (pred) { - if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) { - return void 0; - } - last2 = pred; - types.push(pred.type); - } else { - const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0; - if (returnType !== falseType && returnType !== regularFalseType) { - return void 0; - } - } - } - if (!last2) { - return void 0; - } - const compositeType = getUnionOrIntersectionType(types, kind); - return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType); - } - function typePredicateKindsMatch(a, b) { - return a.kind === b.kind && a.parameterIndex === b.parameterIndex; - } - function getUnionTypeFromSortedList(types, precomputedObjectFlags, aliasSymbol, aliasTypeArguments, origin) { - if (types.length === 0) { - return neverType; - } - if (types.length === 1) { - return types[0]; - } - const typeKey = !origin ? getTypeListId(types) : origin.flags & 1048576 /* Union */ ? `|${getTypeListId(origin.types)}` : origin.flags & 2097152 /* Intersection */ ? `&${getTypeListId(origin.types)}` : `#${origin.type.id}|${getTypeListId(types)}`; - const id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments); - let type = unionTypes.get(id); - if (!type) { - type = createType(1048576 /* Union */); - type.objectFlags = precomputedObjectFlags | getPropagatingFlagsOfTypes( - types, - /*excludeKinds*/ - 98304 /* Nullable */ - ); - type.types = types; - type.origin = origin; - type.aliasSymbol = aliasSymbol; - type.aliasTypeArguments = aliasTypeArguments; - if (types.length === 2 && types[0].flags & 512 /* BooleanLiteral */ && types[1].flags & 512 /* BooleanLiteral */) { - type.flags |= 16 /* Boolean */; - type.intrinsicName = "boolean"; - } - unionTypes.set(id, type); - } - return type; - } - function getTypeFromUnionTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const aliasSymbol = getAliasSymbolForTypeNode(node); - links.resolvedType = getUnionType(map(node.types, getTypeFromTypeNode), 1 /* Literal */, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol)); - } - return links.resolvedType; - } - function addTypeToIntersection(typeSet, includes, type) { - const flags = type.flags; - if (flags & 2097152 /* Intersection */) { - return addTypesToIntersection(typeSet, includes, type.types); - } - if (isEmptyAnonymousObjectType(type)) { - if (!(includes & 16777216 /* IncludesEmptyObject */)) { - includes |= 16777216 /* IncludesEmptyObject */; - typeSet.set(type.id.toString(), type); - } - } else { - if (flags & 3 /* AnyOrUnknown */) { - if (type === wildcardType) includes |= 8388608 /* IncludesWildcard */; - if (isErrorType(type)) includes |= 1073741824 /* IncludesError */; - } else if (strictNullChecks || !(flags & 98304 /* Nullable */)) { - if (type === missingType) { - includes |= 262144 /* IncludesMissingType */; - type = undefinedType; - } - if (!typeSet.has(type.id.toString())) { - if (type.flags & 109472 /* Unit */ && includes & 109472 /* Unit */) { - includes |= 67108864 /* NonPrimitive */; - } - typeSet.set(type.id.toString(), type); - } - } - includes |= flags & 473694207 /* IncludesMask */; - } - return includes; - } - function addTypesToIntersection(typeSet, includes, types) { - for (const type of types) { - includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type)); - } - return includes; - } - function removeRedundantSupertypes(types, includes) { - let i = types.length; - while (i > 0) { - i--; - const t = types[i]; - const remove = t.flags & 4 /* String */ && includes & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || t.flags & 8 /* Number */ && includes & 256 /* NumberLiteral */ || t.flags & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ || t.flags & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */ || t.flags & 16384 /* Void */ && includes & 32768 /* Undefined */ || isEmptyAnonymousObjectType(t) && includes & 470302716 /* DefinitelyNonNullable */; - if (remove) { - orderedRemoveItemAt(types, i); - } - } - } - function eachUnionContains(unionTypes2, type) { - for (const u of unionTypes2) { - if (!containsType(u.types, type)) { - if (type === missingType) { - return containsType(u.types, undefinedType); - } - if (type === undefinedType) { - return containsType(u.types, missingType); - } - const primitive = type.flags & 128 /* StringLiteral */ ? stringType : type.flags & (32 /* Enum */ | 256 /* NumberLiteral */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : void 0; - if (!primitive || !containsType(u.types, primitive)) { - return false; - } - } - } - return true; - } - function extractRedundantTemplateLiterals(types) { - let i = types.length; - const literals = filter(types, (t) => !!(t.flags & 128 /* StringLiteral */)); - while (i > 0) { - i--; - const t = types[i]; - if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */))) continue; - for (const t2 of literals) { - if (isTypeSubtypeOf(t2, t)) { - orderedRemoveItemAt(types, i); - break; - } else if (isPatternLiteralType(t)) { - return true; - } - } - } - return false; - } - function removeFromEach(types, flag) { - for (let i = 0; i < types.length; i++) { - types[i] = filterType(types[i], (t) => !(t.flags & flag)); - } - } - function intersectUnionsOfPrimitiveTypes(types) { - let unionTypes2; - const index = findIndex(types, (t) => !!(getObjectFlags(t) & 32768 /* PrimitiveUnion */)); - if (index < 0) { - return false; - } - let i = index + 1; - while (i < types.length) { - const t = types[i]; - if (getObjectFlags(t) & 32768 /* PrimitiveUnion */) { - (unionTypes2 || (unionTypes2 = [types[index]])).push(t); - orderedRemoveItemAt(types, i); - } else { - i++; - } - } - if (!unionTypes2) { - return false; - } - const checked = []; - const result = []; - for (const u of unionTypes2) { - for (const t of u.types) { - if (insertType(checked, t)) { - if (eachUnionContains(unionTypes2, t)) { - if (t === undefinedType && result.length && result[0] === missingType) { - continue; - } - if (t === missingType && result.length && result[0] === undefinedType) { - result[0] = missingType; - continue; - } - insertType(result, t); - } - } - } - } - types[index] = getUnionTypeFromSortedList(result, 32768 /* PrimitiveUnion */); - return true; - } - function createIntersectionType(types, objectFlags, aliasSymbol, aliasTypeArguments) { - const result = createType(2097152 /* Intersection */); - result.objectFlags = objectFlags | getPropagatingFlagsOfTypes( - types, - /*excludeKinds*/ - 98304 /* Nullable */ - ); - result.types = types; - result.aliasSymbol = aliasSymbol; - result.aliasTypeArguments = aliasTypeArguments; - return result; - } - function getIntersectionType(types, flags = 0 /* None */, aliasSymbol, aliasTypeArguments) { - const typeMembershipMap = /* @__PURE__ */ new Map(); - const includes = addTypesToIntersection(typeMembershipMap, 0, types); - const typeSet = arrayFrom(typeMembershipMap.values()); - let objectFlags = 0 /* None */; - if (includes & 131072 /* Never */) { - return contains(typeSet, silentNeverType) ? silentNeverType : neverType; - } - if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) { - return neverType; - } - if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) { - return neverType; - } - if (includes & 1 /* Any */) { - return includes & 8388608 /* IncludesWildcard */ ? wildcardType : includes & 1073741824 /* IncludesError */ ? errorType : anyType; - } - if (!strictNullChecks && includes & 98304 /* Nullable */) { - return includes & 16777216 /* IncludesEmptyObject */ ? neverType : includes & 32768 /* Undefined */ ? undefinedType : nullType; - } - if (includes & 4 /* String */ && includes & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 8 /* Number */ && includes & 256 /* NumberLiteral */ || includes & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ || includes & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */ || includes & 16384 /* Void */ && includes & 32768 /* Undefined */ || includes & 16777216 /* IncludesEmptyObject */ && includes & 470302716 /* DefinitelyNonNullable */) { - if (!(flags & 1 /* NoSupertypeReduction */)) removeRedundantSupertypes(typeSet, includes); - } - if (includes & 262144 /* IncludesMissingType */) { - typeSet[typeSet.indexOf(undefinedType)] = missingType; - } - if (typeSet.length === 0) { - return unknownType; - } - if (typeSet.length === 1) { - return typeSet[0]; - } - if (typeSet.length === 2 && !(flags & 2 /* NoConstraintReduction */)) { - const typeVarIndex = typeSet[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; - const typeVariable = typeSet[typeVarIndex]; - const primitiveType = typeSet[1 - typeVarIndex]; - if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) && !isGenericStringLikeType(primitiveType) || includes & 16777216 /* IncludesEmptyObject */)) { - const constraint = getBaseConstraintOfType(typeVariable); - if (constraint && everyType(constraint, (t) => !!(t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) || isEmptyAnonymousObjectType(t))) { - if (isTypeStrictSubtypeOf(constraint, primitiveType)) { - return typeVariable; - } - if (!(constraint.flags & 1048576 /* Union */ && someType(constraint, (c) => isTypeStrictSubtypeOf(c, primitiveType)))) { - if (!isTypeStrictSubtypeOf(primitiveType, constraint)) { - return neverType; - } - } - objectFlags = 67108864 /* IsConstrainedTypeVariable */; - } - } - } - const id = getTypeListId(typeSet) + (flags & 2 /* NoConstraintReduction */ ? "*" : getAliasId(aliasSymbol, aliasTypeArguments)); - let result = intersectionTypes.get(id); - if (!result) { - if (includes & 1048576 /* Union */) { - if (intersectUnionsOfPrimitiveTypes(typeSet)) { - result = getIntersectionType(typeSet, flags, aliasSymbol, aliasTypeArguments); - } else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && t.types[0].flags & 32768 /* Undefined */))) { - const containedUndefinedType = some(typeSet, containsMissingType) ? missingType : undefinedType; - removeFromEach(typeSet, 32768 /* Undefined */); - result = getUnionType([getIntersectionType(typeSet, flags), containedUndefinedType], 1 /* Literal */, aliasSymbol, aliasTypeArguments); - } else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && (t.types[0].flags & 65536 /* Null */ || t.types[1].flags & 65536 /* Null */)))) { - removeFromEach(typeSet, 65536 /* Null */); - result = getUnionType([getIntersectionType(typeSet, flags), nullType], 1 /* Literal */, aliasSymbol, aliasTypeArguments); - } else if (typeSet.length >= 3 && types.length > 2) { - const middle = Math.floor(typeSet.length / 2); - result = getIntersectionType([getIntersectionType(typeSet.slice(0, middle), flags), getIntersectionType(typeSet.slice(middle), flags)], flags, aliasSymbol, aliasTypeArguments); - } else { - if (!checkCrossProductUnion(typeSet)) { - return errorType; - } - const constituents = getCrossProductIntersections(typeSet, flags); - const origin = some(constituents, (t) => !!(t.flags & 2097152 /* Intersection */)) && getConstituentCountOfTypes(constituents) > getConstituentCountOfTypes(typeSet) ? createOriginUnionOrIntersectionType(2097152 /* Intersection */, typeSet) : void 0; - result = getUnionType(constituents, 1 /* Literal */, aliasSymbol, aliasTypeArguments, origin); - } - } else { - result = createIntersectionType(typeSet, objectFlags, aliasSymbol, aliasTypeArguments); - } - intersectionTypes.set(id, result); - } - return result; - } - function getCrossProductUnionSize(types) { - return reduceLeft(types, (n, t) => t.flags & 1048576 /* Union */ ? n * t.types.length : t.flags & 131072 /* Never */ ? 0 : n, 1); - } - function checkCrossProductUnion(types) { - var _a; - const size = getCrossProductUnionSize(types); - if (size >= 1e5) { - (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types.map((t) => t.id), size }); - error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); - return false; - } - return true; - } - function getCrossProductIntersections(types, flags) { - const count = getCrossProductUnionSize(types); - const intersections = []; - for (let i = 0; i < count; i++) { - const constituents = types.slice(); - let n = i; - for (let j = types.length - 1; j >= 0; j--) { - if (types[j].flags & 1048576 /* Union */) { - const sourceTypes = types[j].types; - const length2 = sourceTypes.length; - constituents[j] = sourceTypes[n % length2]; - n = Math.floor(n / length2); - } - } - const t = getIntersectionType(constituents, flags); - if (!(t.flags & 131072 /* Never */)) intersections.push(t); - } - return intersections; - } - function getConstituentCount(type) { - return !(type.flags & 3145728 /* UnionOrIntersection */) || type.aliasSymbol ? 1 : type.flags & 1048576 /* Union */ && type.origin ? getConstituentCount(type.origin) : getConstituentCountOfTypes(type.types); - } - function getConstituentCountOfTypes(types) { - return reduceLeft(types, (n, t) => n + getConstituentCount(t), 0); - } - function getTypeFromIntersectionTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const aliasSymbol = getAliasSymbolForTypeNode(node); - const types = map(node.types, getTypeFromTypeNode); - const emptyIndex = types.length === 2 ? types.indexOf(emptyTypeLiteralType) : -1; - const t = emptyIndex >= 0 ? types[1 - emptyIndex] : unknownType; - const noSupertypeReduction = !!(t.flags & (4 /* String */ | 8 /* Number */ | 64 /* BigInt */) || t.flags & 134217728 /* TemplateLiteral */ && isPatternLiteralType(t)); - links.resolvedType = getIntersectionType(types, noSupertypeReduction ? 1 /* NoSupertypeReduction */ : 0, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol)); - } - return links.resolvedType; - } - function createIndexType(type, indexFlags) { - const result = createType(4194304 /* Index */); - result.type = type; - result.indexFlags = indexFlags; - return result; - } - function createOriginIndexType(type) { - const result = createOriginType(4194304 /* Index */); - result.type = type; - return result; - } - function getIndexTypeForGenericType(type, indexFlags) { - return indexFlags & 1 /* StringsOnly */ ? type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(type, 1 /* StringsOnly */)) : type.resolvedIndexType || (type.resolvedIndexType = createIndexType(type, 0 /* None */)); - } - function getIndexTypeForMappedType(type, indexFlags) { - const typeParameter = getTypeParameterFromMappedType(type); - const constraintType = getConstraintTypeFromMappedType(type); - const nameType = getNameTypeFromMappedType(type.target || type); - if (!nameType && !(indexFlags & 2 /* NoIndexSignatures */)) { - return constraintType; - } - const keyTypes = []; - if (isGenericIndexType(constraintType)) { - if (isMappedTypeWithKeyofConstraintDeclaration(type)) { - return getIndexTypeForGenericType(type, indexFlags); - } - forEachType(constraintType, addMemberForKeyType); - } else if (isMappedTypeWithKeyofConstraintDeclaration(type)) { - const modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); - forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, !!(indexFlags & 1 /* StringsOnly */), addMemberForKeyType); - } else { - forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType); - } - const result = indexFlags & 2 /* NoIndexSignatures */ ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 /* Any */ | 4 /* String */))) : getUnionType(keyTypes); - if (result.flags & 1048576 /* Union */ && constraintType.flags & 1048576 /* Union */ && getTypeListId(result.types) === getTypeListId(constraintType.types)) { - return constraintType; - } - return result; - function addMemberForKeyType(keyType) { - const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType; - keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType); - } - } - function hasDistributiveNameType(mappedType) { - const typeVariable = getTypeParameterFromMappedType(mappedType); - return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable); - function isDistributive(type) { - return type.flags & (3 /* AnyOrUnknown */ | 402784252 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true : type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? every(type.types, isDistributive) : type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) : false; - } - } - function getLiteralTypeFromPropertyName(name) { - if (isPrivateIdentifier(name)) { - return neverType; - } - if (isNumericLiteral(name)) { - return getRegularTypeOfLiteralType(checkExpression(name)); - } - if (isComputedPropertyName(name)) { - return getRegularTypeOfLiteralType(checkComputedPropertyName(name)); - } - const propertyName = getPropertyNameForPropertyNameNode(name); - if (propertyName !== void 0) { - return getStringLiteralType(unescapeLeadingUnderscores(propertyName)); - } - if (isExpression(name)) { - return getRegularTypeOfLiteralType(checkExpression(name)); - } - return neverType; - } - function getLiteralTypeFromProperty(prop, include, includeNonPublic) { - if (includeNonPublic || !(getDeclarationModifierFlagsFromSymbol(prop) & 6 /* NonPublicAccessibilityModifier */)) { - let type = getSymbolLinks(getLateBoundSymbol(prop)).nameType; - if (!type) { - const name = getNameOfDeclaration(prop.valueDeclaration); - type = prop.escapedName === "default" /* Default */ ? getStringLiteralType("default") : name && getLiteralTypeFromPropertyName(name) || (!isKnownSymbol(prop) ? getStringLiteralType(symbolName(prop)) : void 0); - } - if (type && type.flags & include) { - return type; - } - } - return neverType; - } - function isKeyTypeIncluded(keyType, include) { - return !!(keyType.flags & include || keyType.flags & 2097152 /* Intersection */ && some(keyType.types, (t) => isKeyTypeIncluded(t, include))); - } - function getLiteralTypeFromProperties(type, include, includeOrigin) { - const origin = includeOrigin && (getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */) || type.aliasSymbol) ? createOriginIndexType(type) : void 0; - const propertyTypes = map(getPropertiesOfType(type), (prop) => getLiteralTypeFromProperty(prop, include)); - const indexKeyTypes = map(getIndexInfosOfType(type), (info) => info !== enumNumberIndexInfo && isKeyTypeIncluded(info.keyType, include) ? info.keyType === stringType && include & 8 /* Number */ ? stringOrNumberType : info.keyType : neverType); - return getUnionType( - concatenate(propertyTypes, indexKeyTypes), - 1 /* Literal */, - /*aliasSymbol*/ - void 0, - /*aliasTypeArguments*/ - void 0, - origin - ); - } - function shouldDeferIndexType(type, indexFlags = 0 /* None */) { - return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType)); - } - function getIndexType(type, indexFlags = 0 /* None */) { - type = getReducedType(type); - return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? stringNumberSymbolType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === 0 /* None */); - } - function getExtractStringType(type) { - const extractTypeAlias = getGlobalExtractSymbol(); - return extractTypeAlias ? getTypeAliasInstantiation(extractTypeAlias, [type, stringType]) : stringType; - } - function getIndexTypeOrString(type) { - const indexType = getExtractStringType(getIndexType(type)); - return indexType.flags & 131072 /* Never */ ? stringType : indexType; - } - function getTypeFromTypeOperatorNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - switch (node.operator) { - case 143 /* KeyOfKeyword */: - links.resolvedType = getIndexType(getTypeFromTypeNode(node.type)); - break; - case 158 /* UniqueKeyword */: - links.resolvedType = node.type.kind === 155 /* SymbolKeyword */ ? getESSymbolLikeTypeForNode(walkUpParenthesizedTypes(node.parent)) : errorType; - break; - case 148 /* ReadonlyKeyword */: - links.resolvedType = getTypeFromTypeNode(node.type); - break; - default: - Debug.assertNever(node.operator); - } - } - return links.resolvedType; - } - function getTypeFromTemplateTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - links.resolvedType = getTemplateLiteralType( - [node.head.text, ...map(node.templateSpans, (span) => span.literal.text)], - map(node.templateSpans, (span) => getTypeFromTypeNode(span.type)) - ); - } - return links.resolvedType; - } - function getTemplateLiteralType(texts, types) { - const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 /* Never */ | 1048576 /* Union */))); - if (unionIndex >= 0) { - return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType; - } - if (contains(types, wildcardType)) { - return wildcardType; - } - const newTypes = []; - const newTexts = []; - let text = texts[0]; - if (!addSpans(texts, types)) { - return stringType; - } - if (newTypes.length === 0) { - return getStringLiteralType(text); - } - newTexts.push(text); - if (every(newTexts, (t) => t === "")) { - if (every(newTypes, (t) => !!(t.flags & 4 /* String */))) { - return stringType; - } - if (newTypes.length === 1 && isPatternLiteralType(newTypes[0])) { - return newTypes[0]; - } - } - const id = `${getTypeListId(newTypes)}|${map(newTexts, (t) => t.length).join(",")}|${newTexts.join("")}`; - let type = templateLiteralTypes.get(id); - if (!type) { - templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes)); - } - return type; - function addSpans(texts2, types2) { - for (let i = 0; i < types2.length; i++) { - const t = types2[i]; - if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) { - text += getTemplateStringForType(t) || ""; - text += texts2[i + 1]; - } else if (t.flags & 134217728 /* TemplateLiteral */) { - text += t.texts[0]; - if (!addSpans(t.texts, t.types)) return false; - text += texts2[i + 1]; - } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) { - newTypes.push(t); - newTexts.push(text); - text = texts2[i + 1]; - } else { - return false; - } - } - return true; - } - } - function getTemplateStringForType(type) { - return type.flags & 128 /* StringLiteral */ ? type.value : type.flags & 256 /* NumberLiteral */ ? "" + type.value : type.flags & 2048 /* BigIntLiteral */ ? pseudoBigIntToString(type.value) : type.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) ? type.intrinsicName : void 0; - } - function createTemplateLiteralType(texts, types) { - const type = createType(134217728 /* TemplateLiteral */); - type.texts = texts; - type.types = types; - return type; - } - function getStringMappingType(symbol, type) { - return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : ( - // Mapping> === Mapping - type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : ( - // This handles Mapping<`${number}`> and Mapping<`${bigint}`> - isPatternLiteralPlaceholderType(type) ? getStringMappingTypeForGenericType(symbol, getTemplateLiteralType(["", ""], [type])) : type - ) - ); - } - function applyStringMapping(symbol, str) { - switch (intrinsicTypeKinds.get(symbol.escapedName)) { - case 0 /* Uppercase */: - return str.toUpperCase(); - case 1 /* Lowercase */: - return str.toLowerCase(); - case 2 /* Capitalize */: - return str.charAt(0).toUpperCase() + str.slice(1); - case 3 /* Uncapitalize */: - return str.charAt(0).toLowerCase() + str.slice(1); - } - return str; - } - function applyTemplateStringMapping(symbol, texts, types) { - switch (intrinsicTypeKinds.get(symbol.escapedName)) { - case 0 /* Uppercase */: - return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))]; - case 1 /* Lowercase */: - return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))]; - case 2 /* Capitalize */: - return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types]; - case 3 /* Uncapitalize */: - return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types]; - } - return [texts, types]; - } - function getStringMappingTypeForGenericType(symbol, type) { - const id = `${getSymbolId(symbol)},${getTypeId(type)}`; - let result = stringMappingTypes.get(id); - if (!result) { - stringMappingTypes.set(id, result = createStringMappingType(symbol, type)); - } - return result; - } - function createStringMappingType(symbol, type) { - const result = createTypeWithSymbol(268435456 /* StringMapping */, symbol); - result.type = type; - return result; - } - function createIndexedAccessType(objectType, indexType, accessFlags, aliasSymbol, aliasTypeArguments) { - const type = createType(8388608 /* IndexedAccess */); - type.objectType = objectType; - type.indexType = indexType; - type.accessFlags = accessFlags; - type.aliasSymbol = aliasSymbol; - type.aliasTypeArguments = aliasTypeArguments; - return type; - } - function isJSLiteralType(type) { - if (noImplicitAny) { - return false; - } - if (getObjectFlags(type) & 4096 /* JSLiteral */) { - return true; - } - if (type.flags & 1048576 /* Union */) { - return every(type.types, isJSLiteralType); - } - if (type.flags & 2097152 /* Intersection */) { - return some(type.types, isJSLiteralType); - } - if (type.flags & 465829888 /* Instantiable */) { - const constraint = getResolvedBaseConstraint(type); - return constraint !== type && isJSLiteralType(constraint); - } - return false; - } - function getPropertyNameFromIndex(indexType, accessNode) { - return isTypeUsableAsPropertyName(indexType) ? getPropertyNameFromType(indexType) : accessNode && isPropertyName(accessNode) ? ( - // late bound names are handled in the first branch, so here we only need to handle normal names - getPropertyNameForPropertyNameNode(accessNode) - ) : void 0; - } - function isUncalledFunctionReference(node, symbol) { - if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { - const parent = findAncestor(node.parent, (n) => !isAccessExpression(n)) || node.parent; - if (isCallLikeExpression(parent)) { - return isCallOrNewExpression(parent) && isIdentifier(node) && hasMatchingArgument(parent, node); - } - return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration(d)); - } - return true; - } - function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { - const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; - const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); - if (propName !== void 0) { - if (accessFlags & 256 /* Contextual */) { - return getTypeOfPropertyOfContextualType(objectType, propName) || anyType; - } - const prop = getPropertyOfType(objectType, propName); - if (prop) { - if (accessFlags & 64 /* ReportDeprecated */ && accessNode && prop.declarations && isDeprecatedSymbol(prop) && isUncalledFunctionReference(accessNode, prop)) { - const deprecatedNode = (accessExpression == null ? void 0 : accessExpression.argumentExpression) ?? (isIndexedAccessTypeNode(accessNode) ? accessNode.indexType : accessNode); - addDeprecatedSuggestion(deprecatedNode, prop.declarations, propName); - } - if (accessExpression) { - markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol)); - if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) { - error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); - return void 0; - } - if (accessFlags & 8 /* CacheSymbol */) { - getNodeLinks(accessNode).resolvedSymbol = prop; - } - if (isThisPropertyAccessInConstructor(accessExpression, prop)) { - return autoType; - } - } - const propType = accessFlags & 4 /* Writing */ ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); - return accessExpression && getAssignmentTargetKind(accessExpression) !== 1 /* Definite */ ? getFlowTypeOfReference(accessExpression, propType) : accessNode && isIndexedAccessTypeNode(accessNode) && containsMissingType(propType) ? getUnionType([propType, undefinedType]) : propType; - } - if (everyType(objectType, isTupleType) && isNumericLiteralName(propName)) { - const index = +propName; - if (accessNode && everyType(objectType, (t) => !(t.target.combinedFlags & 12 /* Variable */)) && !(accessFlags & 16 /* AllowMissing */)) { - const indexNode = getIndexNodeForAccessExpression(accessNode); - if (isTupleType(objectType)) { - if (index < 0) { - error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); - return undefinedType; - } - error(indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), unescapeLeadingUnderscores(propName)); - } else { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); - } - } - if (index >= 0) { - errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); - return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); - } - } - } - if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) { - if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) { - return objectType; - } - const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType); - if (indexInfo) { - if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) { - if (accessExpression) { - if (accessFlags & 4 /* Writing */) { - error(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType)); - } else { - error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); - } - } - return void 0; - } - if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { - const indexNode = getIndexNodeForAccessExpression(accessNode); - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); - return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; - } - errorIfWritingToReadonlyIndex(indexInfo); - if (accessFlags & 1 /* IncludeUndefined */ && !(objectType.symbol && objectType.symbol.flags & (256 /* RegularEnum */ | 128 /* ConstEnum */) && (indexType.symbol && indexType.flags & 1024 /* EnumLiteral */ && getParentOfSymbol(indexType.symbol) === objectType.symbol))) { - return getUnionType([indexInfo.type, missingType]); - } - return indexInfo.type; - } - if (indexType.flags & 131072 /* Never */) { - return neverType; - } - if (isJSLiteralType(objectType)) { - return anyType; - } - if (accessExpression && !isConstEnumObjectType(objectType)) { - if (isObjectLiteralType(objectType)) { - if (noImplicitAny && indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - diagnostics.add(createDiagnosticForNode(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType))); - return undefinedType; - } else if (indexType.flags & (8 /* Number */ | 4 /* String */)) { - const types = map(objectType.properties, (property) => { - return getTypeOfSymbol(property); - }); - return getUnionType(append(types, undefinedType)); - } - } - if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */) { - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); - } else if (noImplicitAny && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) { - if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) { - const typeName = typeToString(objectType); - error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); - } else if (getIndexTypeOfType(objectType, numberType)) { - error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); - } else { - let suggestion; - if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) { - if (suggestion !== void 0) { - error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); - } - } else { - const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType); - if (suggestion2 !== void 0) { - error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); - } else { - let errorInfo; - if (indexType.flags & 1024 /* EnumLiteral */) { - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Property_0_does_not_exist_on_type_1, - "[" + typeToString(indexType) + "]", - typeToString(objectType) - ); - } else if (indexType.flags & 8192 /* UniqueESSymbol */) { - const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression); - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Property_0_does_not_exist_on_type_1, - "[" + symbolName2 + "]", - typeToString(objectType) - ); - } else if (indexType.flags & 128 /* StringLiteral */) { - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Property_0_does_not_exist_on_type_1, - indexType.value, - typeToString(objectType) - ); - } else if (indexType.flags & 256 /* NumberLiteral */) { - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Property_0_does_not_exist_on_type_1, - indexType.value, - typeToString(objectType) - ); - } else if (indexType.flags & (8 /* Number */ | 4 /* String */)) { - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, - typeToString(indexType), - typeToString(objectType) - ); - } - errorInfo = chainDiagnosticMessages( - errorInfo, - Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, - typeToString(fullIndexType), - typeToString(objectType) - ); - diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(accessExpression), accessExpression, errorInfo)); - } - } - } - } - return void 0; - } - } - if (accessFlags & 16 /* AllowMissing */ && isObjectLiteralType(objectType)) { - return undefinedType; - } - if (isJSLiteralType(objectType)) { - return anyType; - } - if (accessNode) { - const indexNode = getIndexNodeForAccessExpression(accessNode); - if (indexNode.kind !== 10 /* BigIntLiteral */ && indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { - error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); - } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { - error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); - } else { - const typeString = indexNode.kind === 10 /* BigIntLiteral */ ? "bigint" : typeToString(indexType); - error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeString); - } - } - if (isTypeAny(indexType)) { - return indexType; - } - return void 0; - function errorIfWritingToReadonlyIndex(indexInfo) { - if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) { - error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); - } - } - } - function getIndexNodeForAccessExpression(accessNode) { - return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; - } - function isPatternLiteralPlaceholderType(type) { - if (type.flags & 2097152 /* Intersection */) { - let seenPlaceholder = false; - for (const t of type.types) { - if (t.flags & (2944 /* Literal */ | 98304 /* Nullable */) || isPatternLiteralPlaceholderType(t)) { - seenPlaceholder = true; - } else if (!(t.flags & 524288 /* Object */)) { - return false; - } - } - return seenPlaceholder; - } - return !!(type.flags & (1 /* Any */ | 4 /* String */ | 8 /* Number */ | 64 /* BigInt */)) || isPatternLiteralType(type); - } - function isPatternLiteralType(type) { - return !!(type.flags & 134217728 /* TemplateLiteral */) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456 /* StringMapping */) && isPatternLiteralPlaceholderType(type.type); - } - function isGenericStringLikeType(type) { - return !!(type.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) && !isPatternLiteralType(type); - } - function isGenericType(type) { - return !!getGenericObjectFlags(type); - } - function isGenericObjectType(type) { - return !!(getGenericObjectFlags(type) & 4194304 /* IsGenericObjectType */); - } - function isGenericIndexType(type) { - return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */); - } - function getGenericObjectFlags(type) { - if (type.flags & 3145728 /* UnionOrIntersection */) { - if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) { - type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0); - } - return type.objectFlags & 12582912 /* IsGenericType */; - } - if (type.flags & 33554432 /* Substitution */) { - if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) { - type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | getGenericObjectFlags(type.baseType) | getGenericObjectFlags(type.constraint); - } - return type.objectFlags & 12582912 /* IsGenericType */; - } - return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0); - } - function getSimplifiedType(type, writing) { - return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type; - } - function distributeIndexOverObjectType(objectType, indexType, writing) { - if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !shouldDeferIndexType(objectType)) { - const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing)); - return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types); - } - } - function distributeObjectOverIndexType(objectType, indexType, writing) { - if (indexType.flags & 1048576 /* Union */) { - const types = map(indexType.types, (t) => getSimplifiedType(getIndexedAccessType(objectType, t), writing)); - return writing ? getIntersectionType(types) : getUnionType(types); - } - } - function getSimplifiedIndexedAccessType(type, writing) { - const cache = writing ? "simplifiedForWriting" : "simplifiedForReading"; - if (type[cache]) { - return type[cache] === circularConstraintType ? type : type[cache]; - } - type[cache] = circularConstraintType; - const objectType = getSimplifiedType(type.objectType, writing); - const indexType = getSimplifiedType(type.indexType, writing); - const distributedOverIndex = distributeObjectOverIndexType(objectType, indexType, writing); - if (distributedOverIndex) { - return type[cache] = distributedOverIndex; - } - if (!(indexType.flags & 465829888 /* Instantiable */)) { - const distributedOverObject = distributeIndexOverObjectType(objectType, indexType, writing); - if (distributedOverObject) { - return type[cache] = distributedOverObject; - } - } - if (isGenericTupleType(objectType) && indexType.flags & 296 /* NumberLike */) { - const elementType = getElementTypeOfSliceOfTupleType( - objectType, - indexType.flags & 8 /* Number */ ? 0 : objectType.target.fixedLength, - /*endSkipCount*/ - 0, - writing - ); - if (elementType) { - return type[cache] = elementType; - } - } - if (isGenericMappedType(objectType)) { - if (getMappedTypeNameTypeKind(objectType) !== 2 /* Remapping */) { - return type[cache] = mapType(substituteIndexedMappedType(objectType, type.indexType), (t) => getSimplifiedType(t, writing)); - } - } - return type[cache] = type; - } - function getSimplifiedConditionalType(type, writing) { - const checkType = type.checkType; - const extendsType = type.extendsType; - const trueType2 = getTrueTypeFromConditionalType(type); - const falseType2 = getFalseTypeFromConditionalType(type); - if (falseType2.flags & 131072 /* Never */ && getActualTypeVariable(trueType2) === getActualTypeVariable(checkType)) { - if (checkType.flags & 1 /* Any */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { - return getSimplifiedType(trueType2, writing); - } else if (isIntersectionEmpty(checkType, extendsType)) { - return neverType; - } - } else if (trueType2.flags & 131072 /* Never */ && getActualTypeVariable(falseType2) === getActualTypeVariable(checkType)) { - if (!(checkType.flags & 1 /* Any */) && isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { - return neverType; - } else if (checkType.flags & 1 /* Any */ || isIntersectionEmpty(checkType, extendsType)) { - return getSimplifiedType(falseType2, writing); - } - } - return type; - } - function isIntersectionEmpty(type1, type2) { - return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */); - } - function substituteIndexedMappedType(objectType, index) { - const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]); - const templateMapper = combineTypeMappers(objectType.mapper, mapper); - const instantiatedTemplateType = instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper); - const isOptional = getMappedTypeOptionality(objectType) > 0 || (isGenericType(objectType) ? getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(objectType)) > 0 : couldAccessOptionalProperty(objectType, index)); - return addOptionality( - instantiatedTemplateType, - /*isProperty*/ - true, - isOptional - ); - } - function couldAccessOptionalProperty(objectType, indexType) { - const indexConstraint = getBaseConstraintOfType(indexType); - return !!indexConstraint && some(getPropertiesOfType(objectType), (p) => !!(p.flags & 16777216 /* Optional */) && isTypeAssignableTo(getLiteralTypeFromProperty(p, 8576 /* StringOrNumberLiteralOrUnique */), indexConstraint)); - } - function getIndexedAccessType(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) { - return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType); - } - function indexTypeLessThan(indexType, limit) { - return everyType(indexType, (t) => { - if (t.flags & 384 /* StringOrNumberLiteral */) { - const propName = getPropertyNameFromType(t); - if (isNumericLiteralName(propName)) { - const index = +propName; - return index >= 0 && index < limit; - } - } - return false; - }); - } - function getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) { - if (objectType === wildcardType || indexType === wildcardType) { - return wildcardType; - } - objectType = getReducedType(objectType); - if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { - indexType = stringType; - } - if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; - if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { - if (objectType.flags & 3 /* AnyOrUnknown */) { - return objectType; - } - const persistentAccessFlags = accessFlags & 1 /* Persistent */; - const id = objectType.id + "," + indexType.id + "," + persistentAccessFlags + getAliasId(aliasSymbol, aliasTypeArguments); - let type = indexedAccessTypes.get(id); - if (!type) { - indexedAccessTypes.set(id, type = createIndexedAccessType(objectType, indexType, persistentAccessFlags, aliasSymbol, aliasTypeArguments)); - } - return type; - } - const apparentObjectType = getReducedApparentType(objectType); - if (indexType.flags & 1048576 /* Union */ && !(indexType.flags & 16 /* Boolean */)) { - const propTypes = []; - let wasMissingProp = false; - for (const t of indexType.types) { - const propType = getPropertyTypeForIndexType(objectType, apparentObjectType, t, indexType, accessNode, accessFlags | (wasMissingProp ? 128 /* SuppressNoImplicitAnyError */ : 0)); - if (propType) { - propTypes.push(propType); - } else if (!accessNode) { - return void 0; - } else { - wasMissingProp = true; - } - } - if (wasMissingProp) { - return void 0; - } - return accessFlags & 4 /* Writing */ ? getIntersectionType(propTypes, 0 /* None */, aliasSymbol, aliasTypeArguments) : getUnionType(propTypes, 1 /* Literal */, aliasSymbol, aliasTypeArguments); - } - return getPropertyTypeForIndexType(objectType, apparentObjectType, indexType, indexType, accessNode, accessFlags | 8 /* CacheSymbol */ | 64 /* ReportDeprecated */); - } - function getTypeFromIndexedAccessTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const objectType = getTypeFromTypeNode(node.objectType); - const indexType = getTypeFromTypeNode(node.indexType); - const potentialAlias = getAliasSymbolForTypeNode(node); - links.resolvedType = getIndexedAccessType(objectType, indexType, 0 /* None */, node, potentialAlias, getTypeArgumentsForAliasSymbol(potentialAlias)); - } - return links.resolvedType; - } - function getTypeFromMappedTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const type = createObjectType(32 /* Mapped */, node.symbol); - type.declaration = node; - type.aliasSymbol = getAliasSymbolForTypeNode(node); - type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(type.aliasSymbol); - links.resolvedType = type; - getConstraintTypeFromMappedType(type); - } - return links.resolvedType; - } - function getActualTypeVariable(type) { - if (type.flags & 33554432 /* Substitution */) { - return getActualTypeVariable(type.baseType); - } - if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) { - return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType)); - } - return type; - } - function isSimpleTupleType(node) { - return isTupleTypeNode(node) && length(node.elements) > 0 && !some(node.elements, (e) => isOptionalTypeNode(e) || isRestTypeNode(e) || isNamedTupleMember(e) && !!(e.questionToken || e.dotDotDotToken)); - } - function isDeferredType(type, checkTuples) { - return isGenericType(type) || checkTuples && isTupleType(type) && some(getElementTypes(type), isGenericType); - } - function getConditionalType(root, mapper, forConstraint, aliasSymbol, aliasTypeArguments) { - let result; - let extraTypes; - let tailCount = 0; - while (true) { - if (tailCount === 1e3) { - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); - return errorType; - } - const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper); - const extendsType = instantiateType(root.extendsType, mapper); - if (checkType === errorType || extendsType === errorType) { - return errorType; - } - if (checkType === wildcardType || extendsType === wildcardType) { - return wildcardType; - } - const checkTypeNode = skipTypeParentheses(root.node.checkType); - const extendsTypeNode = skipTypeParentheses(root.node.extendsType); - const checkTuples = isSimpleTupleType(checkTypeNode) && isSimpleTupleType(extendsTypeNode) && length(checkTypeNode.elements) === length(extendsTypeNode.elements); - const checkTypeDeferred = isDeferredType(checkType, checkTuples); - let combinedMapper; - if (root.inferTypeParameters) { - const context = createInferenceContext( - root.inferTypeParameters, - /*signature*/ - void 0, - 0 /* None */ - ); - if (mapper) { - context.nonFixingMapper = combineTypeMappers(context.nonFixingMapper, mapper); - } - if (!checkTypeDeferred) { - inferTypes(context.inferences, checkType, extendsType, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */); - } - combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper; - } - const inferredExtendsType = combinedMapper ? instantiateType(root.extendsType, combinedMapper) : extendsType; - if (!checkTypeDeferred && !isDeferredType(inferredExtendsType, checkTuples)) { - if (!(inferredExtendsType.flags & 3 /* AnyOrUnknown */) && (checkType.flags & 1 /* Any */ || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) { - if (checkType.flags & 1 /* Any */ || forConstraint && !(inferredExtendsType.flags & 131072 /* Never */) && someType(getPermissiveInstantiation(inferredExtendsType), (t) => isTypeAssignableTo(t, getPermissiveInstantiation(checkType)))) { - (extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper)); - } - const falseType2 = getTypeFromTypeNode(root.node.falseType); - if (falseType2.flags & 16777216 /* Conditional */) { - const newRoot = falseType2.root; - if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) { - root = newRoot; - continue; - } - if (canTailRecurse(falseType2, mapper)) { - continue; - } - } - result = instantiateType(falseType2, mapper); - break; - } - if (inferredExtendsType.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) { - const trueType2 = getTypeFromTypeNode(root.node.trueType); - const trueMapper = combinedMapper || mapper; - if (canTailRecurse(trueType2, trueMapper)) { - continue; - } - result = instantiateType(trueType2, trueMapper); - break; - } - } - result = createType(16777216 /* Conditional */); - result.root = root; - result.checkType = instantiateType(root.checkType, mapper); - result.extendsType = instantiateType(root.extendsType, mapper); - result.mapper = mapper; - result.combinedMapper = combinedMapper; - result.aliasSymbol = aliasSymbol || root.aliasSymbol; - result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper); - break; - } - return extraTypes ? getUnionType(append(extraTypes, result)) : result; - function canTailRecurse(newType, newMapper) { - if (newType.flags & 16777216 /* Conditional */ && newMapper) { - const newRoot = newType.root; - if (newRoot.outerTypeParameters) { - const typeParamMapper = combineTypeMappers(newType.mapper, newMapper); - const typeArguments = map(newRoot.outerTypeParameters, (t) => getMappedType(t, typeParamMapper)); - const newRootMapper = createTypeMapper(newRoot.outerTypeParameters, typeArguments); - const newCheckType = newRoot.isDistributive ? getMappedType(newRoot.checkType, newRootMapper) : void 0; - if (!newCheckType || newCheckType === newRoot.checkType || !(newCheckType.flags & (1048576 /* Union */ | 131072 /* Never */))) { - root = newRoot; - mapper = newRootMapper; - aliasSymbol = void 0; - aliasTypeArguments = void 0; - if (newRoot.aliasSymbol) { - tailCount++; - } - return true; - } - } - } - return false; - } - } - function getTrueTypeFromConditionalType(type) { - return type.resolvedTrueType || (type.resolvedTrueType = instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.mapper)); - } - function getFalseTypeFromConditionalType(type) { - return type.resolvedFalseType || (type.resolvedFalseType = instantiateType(getTypeFromTypeNode(type.root.node.falseType), type.mapper)); - } - function getInferredTrueTypeFromConditionalType(type) { - return type.resolvedInferredTrueType || (type.resolvedInferredTrueType = type.combinedMapper ? instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.combinedMapper) : getTrueTypeFromConditionalType(type)); - } - function getInferTypeParameters(node) { - let result; - if (node.locals) { - node.locals.forEach((symbol) => { - if (symbol.flags & 262144 /* TypeParameter */) { - result = append(result, getDeclaredTypeOfSymbol(symbol)); - } - }); - } - return result; - } - function isDistributionDependent(root) { - return root.isDistributive && (isTypeParameterPossiblyReferenced(root.checkType, root.node.trueType) || isTypeParameterPossiblyReferenced(root.checkType, root.node.falseType)); - } - function getTypeFromConditionalTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const checkType = getTypeFromTypeNode(node.checkType); - const aliasSymbol = getAliasSymbolForTypeNode(node); - const aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); - const allOuterTypeParameters = getOuterTypeParameters( - node, - /*includeThisTypes*/ - true - ); - const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter(allOuterTypeParameters, (tp) => isTypeParameterPossiblyReferenced(tp, node)); - const root = { - node, - checkType, - extendsType: getTypeFromTypeNode(node.extendsType), - isDistributive: !!(checkType.flags & 262144 /* TypeParameter */), - inferTypeParameters: getInferTypeParameters(node), - outerTypeParameters, - instantiations: void 0, - aliasSymbol, - aliasTypeArguments - }; - links.resolvedType = getConditionalType( - root, - /*mapper*/ - void 0, - /*forConstraint*/ - false - ); - if (outerTypeParameters) { - root.instantiations = /* @__PURE__ */ new Map(); - root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType); - } - } - return links.resolvedType; - } - function getTypeFromInferTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - links.resolvedType = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter)); - } - return links.resolvedType; - } - function getIdentifierChain(node) { - if (isIdentifier(node)) { - return [node]; - } else { - return append(getIdentifierChain(node.left), node.right); - } - } - function getTypeFromImportTypeNode(node) { - var _a; - const links = getNodeLinks(node); - if (!links.resolvedType) { - if (!isLiteralImportTypeNode(node)) { - error(node.argument, Diagnostics.String_literal_expected); - links.resolvedSymbol = unknownSymbol; - return links.resolvedType = errorType; - } - const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; - const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); - if (!innerModuleSymbol) { - links.resolvedSymbol = unknownSymbol; - return links.resolvedType = errorType; - } - const isExportEquals = !!((_a = innerModuleSymbol.exports) == null ? void 0 : _a.get("export=" /* ExportEquals */)); - const moduleSymbol = resolveExternalModuleSymbol( - innerModuleSymbol, - /*dontResolveAlias*/ - false - ); - if (!nodeIsMissing(node.qualifier)) { - const nameStack = getIdentifierChain(node.qualifier); - let currentNamespace = moduleSymbol; - let current; - while (current = nameStack.shift()) { - const meaning = nameStack.length ? 1920 /* Namespace */ : targetMeaning; - const mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace)); - const symbolFromVariable = node.isTypeOf || isInJSFile(node) && isExportEquals ? getPropertyOfType( - getTypeOfSymbol(mergedResolvedSymbol), - current.escapedText, - /*skipObjectFunctionPropertyAugment*/ - false, - /*includeTypeOnlyMembers*/ - true - ) : void 0; - const symbolFromModule = node.isTypeOf ? void 0 : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); - const next = symbolFromModule ?? symbolFromVariable; - if (!next) { - error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); - return links.resolvedType = errorType; - } - getNodeLinks(current).resolvedSymbol = next; - getNodeLinks(current.parent).resolvedSymbol = next; - currentNamespace = next; - } - links.resolvedType = resolveImportSymbolType(node, links, currentNamespace, targetMeaning); - } else { - if (moduleSymbol.flags & targetMeaning) { - links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning); - } else { - const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0; - error(node, errorMessage, node.argument.literal.text); - links.resolvedSymbol = unknownSymbol; - links.resolvedType = errorType; - } - } - } - return links.resolvedType; - } - function resolveImportSymbolType(node, links, symbol, meaning) { - const resolvedSymbol = resolveSymbol(symbol); - links.resolvedSymbol = resolvedSymbol; - if (meaning === 111551 /* Value */) { - return getInstantiationExpressionType(getTypeOfSymbol(symbol), node); - } else { - return getTypeReferenceType(node, resolvedSymbol); - } - } - function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - const aliasSymbol = getAliasSymbolForTypeNode(node); - if (!node.symbol || getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) { - links.resolvedType = emptyTypeLiteralType; - } else { - let type = createObjectType(16 /* Anonymous */, node.symbol); - type.aliasSymbol = aliasSymbol; - type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); - if (isJSDocTypeLiteral(node) && node.isArrayType) { - type = createArrayType(type); - } - links.resolvedType = type; - } - } - return links.resolvedType; - } - function getAliasSymbolForTypeNode(node) { - let host2 = node.parent; - while (isParenthesizedTypeNode(host2) || isJSDocTypeExpression(host2) || isTypeOperatorNode(host2) && host2.operator === 148 /* ReadonlyKeyword */) { - host2 = host2.parent; - } - return isTypeAlias(host2) ? getSymbolOfDeclaration(host2) : void 0; - } - function getTypeArgumentsForAliasSymbol(symbol) { - return symbol ? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : void 0; - } - function isNonGenericObjectType(type) { - return !!(type.flags & 524288 /* Object */) && !isGenericMappedType(type); - } - function isEmptyObjectTypeOrSpreadsIntoEmptyObject(type) { - return isEmptyObjectType(type) || !!(type.flags & (65536 /* Null */ | 32768 /* Undefined */ | 528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */)); - } - function tryMergeUnionOfObjectTypeAndEmptyObject(type, readonly) { - if (!(type.flags & 1048576 /* Union */)) { - return type; - } - if (every(type.types, isEmptyObjectTypeOrSpreadsIntoEmptyObject)) { - return find(type.types, isEmptyObjectType) || emptyObjectType; - } - const firstType = find(type.types, (t) => !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t)); - if (!firstType) { - return type; - } - const secondType = find(type.types, (t) => t !== firstType && !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t)); - if (secondType) { - return type; - } - return getAnonymousPartialType(firstType); - function getAnonymousPartialType(type2) { - const members = createSymbolTable(); - for (const prop of getPropertiesOfType(type2)) { - if (getDeclarationModifierFlagsFromSymbol(prop) & (2 /* Private */ | 4 /* Protected */)) { - } else if (isSpreadableProperty(prop)) { - const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); - const flags = 4 /* Property */ | 16777216 /* Optional */; - const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0)); - result.links.type = isSetonlyAccessor ? undefinedType : addOptionality( - getTypeOfSymbol(prop), - /*isProperty*/ - true - ); - result.declarations = prop.declarations; - result.links.nameType = getSymbolLinks(prop).nameType; - result.links.syntheticOrigin = prop; - members.set(prop.escapedName, result); - } - } - const spread = createAnonymousType(type2.symbol, members, emptyArray, emptyArray, getIndexInfosOfType(type2)); - spread.objectFlags |= 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - return spread; - } - } - function getSpreadType(left, right, symbol, objectFlags, readonly) { - if (left.flags & 1 /* Any */ || right.flags & 1 /* Any */) { - return anyType; - } - if (left.flags & 2 /* Unknown */ || right.flags & 2 /* Unknown */) { - return unknownType; - } - if (left.flags & 131072 /* Never */) { - return right; - } - if (right.flags & 131072 /* Never */) { - return left; - } - left = tryMergeUnionOfObjectTypeAndEmptyObject(left, readonly); - if (left.flags & 1048576 /* Union */) { - return checkCrossProductUnion([left, right]) ? mapType(left, (t) => getSpreadType(t, right, symbol, objectFlags, readonly)) : errorType; - } - right = tryMergeUnionOfObjectTypeAndEmptyObject(right, readonly); - if (right.flags & 1048576 /* Union */) { - return checkCrossProductUnion([left, right]) ? mapType(right, (t) => getSpreadType(left, t, symbol, objectFlags, readonly)) : errorType; - } - if (right.flags & (528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */)) { - return left; - } - if (isGenericObjectType(left) || isGenericObjectType(right)) { - if (isEmptyObjectType(left)) { - return right; - } - if (left.flags & 2097152 /* Intersection */) { - const types = left.types; - const lastLeft = types[types.length - 1]; - if (isNonGenericObjectType(lastLeft) && isNonGenericObjectType(right)) { - return getIntersectionType(concatenate(types.slice(0, types.length - 1), [getSpreadType(lastLeft, right, symbol, objectFlags, readonly)])); - } - } - return getIntersectionType([left, right]); - } - const members = createSymbolTable(); - const skippedPrivateMembers = /* @__PURE__ */ new Set(); - const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]); - for (const rightProp of getPropertiesOfType(right)) { - if (getDeclarationModifierFlagsFromSymbol(rightProp) & (2 /* Private */ | 4 /* Protected */)) { - skippedPrivateMembers.add(rightProp.escapedName); - } else if (isSpreadableProperty(rightProp)) { - members.set(rightProp.escapedName, getSpreadSymbol(rightProp, readonly)); - } - } - for (const leftProp of getPropertiesOfType(left)) { - if (skippedPrivateMembers.has(leftProp.escapedName) || !isSpreadableProperty(leftProp)) { - continue; - } - if (members.has(leftProp.escapedName)) { - const rightProp = members.get(leftProp.escapedName); - const rightType = getTypeOfSymbol(rightProp); - if (rightProp.flags & 16777216 /* Optional */) { - const declarations = concatenate(leftProp.declarations, rightProp.declarations); - const flags = 4 /* Property */ | leftProp.flags & 16777216 /* Optional */; - const result = createSymbol(flags, leftProp.escapedName); - const leftType = getTypeOfSymbol(leftProp); - const leftTypeWithoutUndefined = removeMissingOrUndefinedType(leftType); - const rightTypeWithoutUndefined = removeMissingOrUndefinedType(rightType); - result.links.type = leftTypeWithoutUndefined === rightTypeWithoutUndefined ? leftType : getUnionType([leftType, rightTypeWithoutUndefined], 2 /* Subtype */); - result.links.leftSpread = leftProp; - result.links.rightSpread = rightProp; - result.declarations = declarations; - result.links.nameType = getSymbolLinks(leftProp).nameType; - members.set(leftProp.escapedName, result); - } - } else { - members.set(leftProp.escapedName, getSpreadSymbol(leftProp, readonly)); - } - } - const spread = createAnonymousType(symbol, members, emptyArray, emptyArray, sameMap(indexInfos, (info) => getIndexInfoWithReadonly(info, readonly))); - spread.objectFlags |= 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */ | 2097152 /* ContainsSpread */ | objectFlags; - return spread; - } - function isSpreadableProperty(prop) { - var _a; - return !some(prop.declarations, isPrivateIdentifierClassElementDeclaration) && (!(prop.flags & (8192 /* Method */ | 32768 /* GetAccessor */ | 65536 /* SetAccessor */)) || !((_a = prop.declarations) == null ? void 0 : _a.some((decl) => isClassLike(decl.parent)))); - } - function getSpreadSymbol(prop, readonly) { - const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); - if (!isSetonlyAccessor && readonly === isReadonlySymbol(prop)) { - return prop; - } - const flags = 4 /* Property */ | prop.flags & 16777216 /* Optional */; - const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0)); - result.links.type = isSetonlyAccessor ? undefinedType : getTypeOfSymbol(prop); - result.declarations = prop.declarations; - result.links.nameType = getSymbolLinks(prop).nameType; - result.links.syntheticOrigin = prop; - return result; - } - function getIndexInfoWithReadonly(info, readonly) { - return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info; - } - function createLiteralType(flags, value, symbol, regularType) { - const type = createTypeWithSymbol(flags, symbol); - type.value = value; - type.regularType = regularType || type; - return type; - } - function getFreshTypeOfLiteralType(type) { - if (type.flags & 2976 /* Freshable */) { - if (!type.freshType) { - const freshType = createLiteralType(type.flags, type.value, type.symbol, type); - freshType.freshType = freshType; - type.freshType = freshType; - } - return type.freshType; - } - return type; - } - function getRegularTypeOfLiteralType(type) { - return type.flags & 2976 /* Freshable */ ? type.regularType : type.flags & 1048576 /* Union */ ? type.regularType || (type.regularType = mapType(type, getRegularTypeOfLiteralType)) : type; - } - function isFreshLiteralType(type) { - return !!(type.flags & 2976 /* Freshable */) && type.freshType === type; - } - function getStringLiteralType(value) { - let type; - return stringLiteralTypes.get(value) || (stringLiteralTypes.set(value, type = createLiteralType(128 /* StringLiteral */, value)), type); - } - function getNumberLiteralType(value) { - let type; - return numberLiteralTypes.get(value) || (numberLiteralTypes.set(value, type = createLiteralType(256 /* NumberLiteral */, value)), type); - } - function getBigIntLiteralType(value) { - let type; - const key = pseudoBigIntToString(value); - return bigIntLiteralTypes.get(key) || (bigIntLiteralTypes.set(key, type = createLiteralType(2048 /* BigIntLiteral */, value)), type); - } - function getEnumLiteralType(value, enumId, symbol) { - let type; - const key = `${enumId}${typeof value === "string" ? "@" : "#"}${value}`; - const flags = 1024 /* EnumLiteral */ | (typeof value === "string" ? 128 /* StringLiteral */ : 256 /* NumberLiteral */); - return enumLiteralTypes.get(key) || (enumLiteralTypes.set(key, type = createLiteralType(flags, value, symbol)), type); - } - function getTypeFromLiteralTypeNode(node) { - if (node.literal.kind === 106 /* NullKeyword */) { - return nullType; - } - const links = getNodeLinks(node); - if (!links.resolvedType) { - links.resolvedType = getRegularTypeOfLiteralType(checkExpression(node.literal)); - } - return links.resolvedType; - } - function createUniqueESSymbolType(symbol) { - const type = createTypeWithSymbol(8192 /* UniqueESSymbol */, symbol); - type.escapedName = `__@${type.symbol.escapedName}@${getSymbolId(type.symbol)}`; - return type; - } - function getESSymbolLikeTypeForNode(node) { - if (isInJSFile(node) && isJSDocTypeExpression(node)) { - const host2 = getJSDocHost(node); - if (host2) { - node = getSingleVariableOfVariableStatement(host2) || host2; - } - } - if (isValidESSymbolDeclaration(node)) { - const symbol = isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node); - if (symbol) { - const links = getSymbolLinks(symbol); - return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol)); - } - } - return esSymbolType; - } - function getThisType(node) { - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - const parent = container && container.parent; - if (parent && (isClassLike(parent) || parent.kind === 264 /* InterfaceDeclaration */)) { - if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { - return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent)).thisType; - } - } - if (parent && isObjectLiteralExpression(parent) && isBinaryExpression(parent.parent) && getAssignmentDeclarationKind(parent.parent) === 6 /* Prototype */) { - return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent.parent.left).parent).thisType; - } - const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; - if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { - return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; - } - if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) { - return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType; - } - error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); - return errorType; - } - function getTypeFromThisTypeNode(node) { - const links = getNodeLinks(node); - if (!links.resolvedType) { - links.resolvedType = getThisType(node); - } - return links.resolvedType; - } - function getTypeFromRestTypeNode(node) { - return getTypeFromTypeNode(getArrayElementTypeNode(node.type) || node.type); - } - function getArrayElementTypeNode(node) { - switch (node.kind) { - case 196 /* ParenthesizedType */: - return getArrayElementTypeNode(node.type); - case 189 /* TupleType */: - if (node.elements.length === 1) { - node = node.elements[0]; - if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { - return getArrayElementTypeNode(node.type); - } - } - break; - case 188 /* ArrayType */: - return node.elementType; - } - return void 0; - } - function getTypeFromNamedTupleTypeNode(node) { - const links = getNodeLinks(node); - return links.resolvedType || (links.resolvedType = node.dotDotDotToken ? getTypeFromRestTypeNode(node) : addOptionality( - getTypeFromTypeNode(node.type), - /*isProperty*/ - true, - !!node.questionToken - )); - } - function getTypeFromTypeNode(node) { - return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node); - } - function getTypeFromTypeNodeWorker(node) { - switch (node.kind) { - case 133 /* AnyKeyword */: - case 312 /* JSDocAllType */: - case 313 /* JSDocUnknownType */: - return anyType; - case 159 /* UnknownKeyword */: - return unknownType; - case 154 /* StringKeyword */: - return stringType; - case 150 /* NumberKeyword */: - return numberType; - case 163 /* BigIntKeyword */: - return bigintType; - case 136 /* BooleanKeyword */: - return booleanType; - case 155 /* SymbolKeyword */: - return esSymbolType; - case 116 /* VoidKeyword */: - return voidType; - case 157 /* UndefinedKeyword */: - return undefinedType; - case 106 /* NullKeyword */: - return nullType; - case 146 /* NeverKeyword */: - return neverType; - case 151 /* ObjectKeyword */: - return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; - case 141 /* IntrinsicKeyword */: - return intrinsicMarkerType; - case 197 /* ThisType */: - case 110 /* ThisKeyword */: - return getTypeFromThisTypeNode(node); - case 201 /* LiteralType */: - return getTypeFromLiteralTypeNode(node); - case 183 /* TypeReference */: - return getTypeFromTypeReference(node); - case 182 /* TypePredicate */: - return node.assertsModifier ? voidType : booleanType; - case 233 /* ExpressionWithTypeArguments */: - return getTypeFromTypeReference(node); - case 186 /* TypeQuery */: - return getTypeFromTypeQueryNode(node); - case 188 /* ArrayType */: - case 189 /* TupleType */: - return getTypeFromArrayOrTupleTypeNode(node); - case 190 /* OptionalType */: - return getTypeFromOptionalTypeNode(node); - case 192 /* UnionType */: - return getTypeFromUnionTypeNode(node); - case 193 /* IntersectionType */: - return getTypeFromIntersectionTypeNode(node); - case 314 /* JSDocNullableType */: - return getTypeFromJSDocNullableTypeNode(node); - case 316 /* JSDocOptionalType */: - return addOptionality(getTypeFromTypeNode(node.type)); - case 202 /* NamedTupleMember */: - return getTypeFromNamedTupleTypeNode(node); - case 196 /* ParenthesizedType */: - case 315 /* JSDocNonNullableType */: - case 309 /* JSDocTypeExpression */: - return getTypeFromTypeNode(node.type); - case 191 /* RestType */: - return getTypeFromRestTypeNode(node); - case 318 /* JSDocVariadicType */: - return getTypeFromJSDocVariadicType(node); - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 187 /* TypeLiteral */: - case 322 /* JSDocTypeLiteral */: - case 317 /* JSDocFunctionType */: - case 323 /* JSDocSignature */: - return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - case 198 /* TypeOperator */: - return getTypeFromTypeOperatorNode(node); - case 199 /* IndexedAccessType */: - return getTypeFromIndexedAccessTypeNode(node); - case 200 /* MappedType */: - return getTypeFromMappedTypeNode(node); - case 194 /* ConditionalType */: - return getTypeFromConditionalTypeNode(node); - case 195 /* InferType */: - return getTypeFromInferTypeNode(node); - case 203 /* TemplateLiteralType */: - return getTypeFromTemplateTypeNode(node); - case 205 /* ImportType */: - return getTypeFromImportTypeNode(node); - // This function assumes that an identifier, qualified name, or property access expression is a type expression - // Callers should first ensure this by calling `isPartOfTypeNode` - // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s. - case 80 /* Identifier */: - case 166 /* QualifiedName */: - case 211 /* PropertyAccessExpression */: - const symbol = getSymbolAtLocation(node); - return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; - default: - return errorType; - } - } - function instantiateList(items, mapper, instantiator) { - if (items && items.length) { - for (let i = 0; i < items.length; i++) { - const item = items[i]; - const mapped = instantiator(item, mapper); - if (item !== mapped) { - const result = i === 0 ? [] : items.slice(0, i); - result.push(mapped); - for (i++; i < items.length; i++) { - result.push(instantiator(items[i], mapper)); - } - return result; - } - } - } - return items; - } - function instantiateTypes(types, mapper) { - return instantiateList(types, mapper, instantiateType); - } - function instantiateSignatures(signatures, mapper) { - return instantiateList(signatures, mapper, instantiateSignature); - } - function instantiateIndexInfos(indexInfos, mapper) { - return instantiateList(indexInfos, mapper, instantiateIndexInfo); - } - function createTypeMapper(sources, targets) { - return sources.length === 1 ? makeUnaryTypeMapper(sources[0], targets ? targets[0] : anyType) : makeArrayTypeMapper(sources, targets); - } - function getMappedType(type, mapper) { - switch (mapper.kind) { - case 0 /* Simple */: - return type === mapper.source ? mapper.target : type; - case 1 /* Array */: { - const sources = mapper.sources; - const targets = mapper.targets; - for (let i = 0; i < sources.length; i++) { - if (type === sources[i]) { - return targets ? targets[i] : anyType; - } - } - return type; - } - case 2 /* Deferred */: { - const sources = mapper.sources; - const targets = mapper.targets; - for (let i = 0; i < sources.length; i++) { - if (type === sources[i]) { - return targets[i](); - } - } - return type; - } - case 3 /* Function */: - return mapper.func(type); - case 4 /* Composite */: - case 5 /* Merged */: - const t1 = getMappedType(type, mapper.mapper1); - return t1 !== type && mapper.kind === 4 /* Composite */ ? instantiateType(t1, mapper.mapper2) : getMappedType(t1, mapper.mapper2); - } - } - function makeUnaryTypeMapper(source, target) { - return Debug.attachDebugPrototypeIfDebug({ kind: 0 /* Simple */, source, target }); - } - function makeArrayTypeMapper(sources, targets) { - return Debug.attachDebugPrototypeIfDebug({ kind: 1 /* Array */, sources, targets }); - } - function makeFunctionTypeMapper(func, debugInfo) { - return Debug.attachDebugPrototypeIfDebug({ kind: 3 /* Function */, func, debugInfo: Debug.isDebugging ? debugInfo : void 0 }); - } - function makeDeferredTypeMapper(sources, targets) { - return Debug.attachDebugPrototypeIfDebug({ kind: 2 /* Deferred */, sources, targets }); - } - function makeCompositeTypeMapper(kind, mapper1, mapper2) { - return Debug.attachDebugPrototypeIfDebug({ kind, mapper1, mapper2 }); - } - function createTypeEraser(sources) { - return createTypeMapper( - sources, - /*targets*/ - void 0 - ); - } - function createBackreferenceMapper(context, index) { - const forwardInferences = context.inferences.slice(index); - return createTypeMapper(map(forwardInferences, (i) => i.typeParameter), map(forwardInferences, () => unknownType)); - } - function combineTypeMappers(mapper1, mapper2) { - return mapper1 ? makeCompositeTypeMapper(4 /* Composite */, mapper1, mapper2) : mapper2; - } - function mergeTypeMappers(mapper1, mapper2) { - return mapper1 ? makeCompositeTypeMapper(5 /* Merged */, mapper1, mapper2) : mapper2; - } - function prependTypeMapping(source, target, mapper) { - return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, makeUnaryTypeMapper(source, target), mapper); - } - function appendTypeMapping(mapper, source, target) { - return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, mapper, makeUnaryTypeMapper(source, target)); - } - function getRestrictiveTypeParameter(tp) { - return !tp.constraint && !getConstraintDeclaration(tp) || tp.constraint === noConstraintType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol), tp.restrictiveInstantiation.constraint = noConstraintType, tp.restrictiveInstantiation); - } - function cloneTypeParameter(typeParameter) { - const result = createTypeParameter(typeParameter.symbol); - result.target = typeParameter; - return result; - } - function instantiateTypePredicate(predicate, mapper) { - return createTypePredicate(predicate.kind, predicate.parameterName, predicate.parameterIndex, instantiateType(predicate.type, mapper)); - } - function instantiateSignature(signature, mapper, eraseTypeParameters) { - let freshTypeParameters; - if (signature.typeParameters && !eraseTypeParameters) { - freshTypeParameters = map(signature.typeParameters, cloneTypeParameter); - mapper = combineTypeMappers(createTypeMapper(signature.typeParameters, freshTypeParameters), mapper); - for (const tp of freshTypeParameters) { - tp.mapper = mapper; - } - } - const result = createSignature( - signature.declaration, - freshTypeParameters, - signature.thisParameter && instantiateSymbol(signature.thisParameter, mapper), - instantiateList(signature.parameters, mapper, instantiateSymbol), - /*resolvedReturnType*/ - void 0, - /*resolvedTypePredicate*/ - void 0, - signature.minArgumentCount, - signature.flags & 167 /* PropagatingFlags */ - ); - result.target = signature; - result.mapper = mapper; - return result; - } - function instantiateSymbol(symbol, mapper) { - const links = getSymbolLinks(symbol); - if (links.type && !couldContainTypeVariables(links.type)) { - if (!(symbol.flags & 65536 /* SetAccessor */)) { - return symbol; - } - if (links.writeType && !couldContainTypeVariables(links.writeType)) { - return symbol; - } - } - if (getCheckFlags(symbol) & 1 /* Instantiated */) { - symbol = links.target; - mapper = combineTypeMappers(links.mapper, mapper); - } - const result = createSymbol(symbol.flags, symbol.escapedName, 1 /* Instantiated */ | getCheckFlags(symbol) & (8 /* Readonly */ | 4096 /* Late */ | 16384 /* OptionalParameter */ | 32768 /* RestParameter */)); - result.declarations = symbol.declarations; - result.parent = symbol.parent; - result.links.target = symbol; - result.links.mapper = mapper; - if (symbol.valueDeclaration) { - result.valueDeclaration = symbol.valueDeclaration; - } - if (links.nameType) { - result.links.nameType = links.nameType; - } - return result; - } - function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) { - const declaration = type.objectFlags & 4 /* Reference */ ? type.node : type.objectFlags & 8388608 /* InstantiationExpressionType */ ? type.node : type.symbol.declarations[0]; - const links = getNodeLinks(declaration); - const target = type.objectFlags & 4 /* Reference */ ? links.resolvedType : type.objectFlags & 64 /* Instantiated */ ? type.target : type; - let typeParameters = type.objectFlags & 134217728 /* SingleSignatureType */ ? type.outerTypeParameters : links.outerTypeParameters; - if (!typeParameters) { - let outerTypeParameters = getOuterTypeParameters( - declaration, - /*includeThisTypes*/ - true - ); - if (isJSConstructor(declaration)) { - const templateTagParameters = getTypeParametersFromDeclaration(declaration); - outerTypeParameters = addRange(outerTypeParameters, templateTagParameters); - } - typeParameters = outerTypeParameters || emptyArray; - const allDeclarations = type.objectFlags & (4 /* Reference */ | 8388608 /* InstantiationExpressionType */) ? [declaration] : type.symbol.declarations; - typeParameters = (target.objectFlags & (4 /* Reference */ | 8388608 /* InstantiationExpressionType */) || target.symbol.flags & 8192 /* Method */ || target.symbol.flags & 2048 /* TypeLiteral */) && !target.aliasTypeArguments ? filter(typeParameters, (tp) => some(allDeclarations, (d) => isTypeParameterPossiblyReferenced(tp, d))) : typeParameters; - links.outerTypeParameters = typeParameters; - } - if (typeParameters.length) { - const combinedMapper = combineTypeMappers(type.mapper, mapper); - const typeArguments = map(typeParameters, (t) => getMappedType(t, combinedMapper)); - const newAliasSymbol = aliasSymbol || type.aliasSymbol; - const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); - const id = (type.objectFlags & 134217728 /* SingleSignatureType */ ? "S" : "") + getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments); - if (!target.instantiations) { - target.instantiations = /* @__PURE__ */ new Map(); - target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target); - } - let result = target.instantiations.get(id); - if (!result) { - if (type.objectFlags & 134217728 /* SingleSignatureType */) { - result = instantiateAnonymousType(type, mapper); - target.instantiations.set(id, result); - return result; - } - const newMapper = createTypeMapper(typeParameters, typeArguments); - result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); - target.instantiations.set(id, result); - const resultObjectFlags = getObjectFlags(result); - if (result.flags & 3899393 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { - const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); - if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { - if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { - result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); - } else { - result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; - } - } - } - } - return result; - } - return type; - } - function maybeTypeParameterReference(node) { - return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); - } - function isTypeParameterPossiblyReferenced(tp, node) { - if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { - const container = tp.symbol.declarations[0].parent; - for (let n = node; n !== container; n = n.parent) { - if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { - return true; - } - } - return containsReference(node); - } - return true; - function containsReference(node2) { - switch (node2.kind) { - case 197 /* ThisType */: - return !!tp.isThisType; - case 80 /* Identifier */: - return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - // use worker because we're looking for === equality - case 186 /* TypeQuery */: - const entityName = node2.exprName; - const firstIdentifier = getFirstIdentifier(entityName); - if (!isThisIdentifier(firstIdentifier)) { - const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); - const tpDeclaration = tp.symbol.declarations[0]; - const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( - // Type parameter is a regular type parameter, e.g. foo - tp.isThisType ? tpDeclaration : ( - // Type parameter is the this type, and its declaration is the class declaration. - void 0 - ) - ); - if (firstIdentifierSymbol.declarations && tpScope) { - return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference); - } - } - return true; - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); - } - return !!forEachChild(node2, containsReference); - } - } - function getHomomorphicTypeVariable(type) { - const constraintType = getConstraintTypeFromMappedType(type); - if (constraintType.flags & 4194304 /* Index */) { - const typeVariable = getActualTypeVariable(constraintType.type); - if (typeVariable.flags & 262144 /* TypeParameter */) { - return typeVariable; - } - } - return void 0; - } - function instantiateMappedType(type, mapper, aliasSymbol, aliasTypeArguments) { - const typeVariable = getHomomorphicTypeVariable(type); - if (typeVariable) { - const mappedTypeVariable = instantiateType(typeVariable, mapper); - if (typeVariable !== mappedTypeVariable) { - return mapTypeWithAlias(getReducedType(mappedTypeVariable), instantiateConstituent, aliasSymbol, aliasTypeArguments); - } - } - return instantiateType(getConstraintTypeFromMappedType(type), mapper) === wildcardType ? wildcardType : instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments); - function instantiateConstituent(t) { - if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) { - if (!type.declaration.nameType) { - let constraint; - if (isArrayType(t) || t.flags & 1 /* Any */ && findResolutionCycleStartIndex(typeVariable, 4 /* ImmediateBaseConstraint */) < 0 && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) { - return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper)); - } - if (isTupleType(t)) { - return instantiateMappedTupleType(t, type, typeVariable, mapper); - } - if (isArrayOrTupleOrIntersection(t)) { - return getIntersectionType(map(t.types, instantiateConstituent)); - } - } - return instantiateAnonymousType(type, prependTypeMapping(typeVariable, t, mapper)); - } - return t; - } - } - function getModifiedReadonlyState(state, modifiers) { - return modifiers & 1 /* IncludeReadonly */ ? true : modifiers & 2 /* ExcludeReadonly */ ? false : state; - } - function instantiateMappedTupleType(tupleType, mappedType, typeVariable, mapper) { - const elementFlags = tupleType.target.elementFlags; - const fixedLength = tupleType.target.fixedLength; - const fixedMapper = fixedLength ? prependTypeMapping(typeVariable, tupleType, mapper) : mapper; - const newElementTypes = map(getElementTypes(tupleType), (type, i) => { - const flags = elementFlags[i]; - return i < fixedLength ? instantiateMappedTypeTemplate(mappedType, getStringLiteralType("" + i), !!(flags & 2 /* Optional */), fixedMapper) : flags & 8 /* Variadic */ ? instantiateType(mappedType, prependTypeMapping(typeVariable, type, mapper)) : getElementTypeOfArrayType(instantiateType(mappedType, prependTypeMapping(typeVariable, createArrayType(type), mapper))) ?? unknownType; - }); - const modifiers = getMappedTypeModifiers(mappedType); - const newElementFlags = modifiers & 4 /* IncludeOptional */ ? map(elementFlags, (f) => f & 1 /* Required */ ? 2 /* Optional */ : f) : modifiers & 8 /* ExcludeOptional */ ? map(elementFlags, (f) => f & 2 /* Optional */ ? 1 /* Required */ : f) : elementFlags; - const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); - return contains(newElementTypes, errorType) ? errorType : createTupleType(newElementTypes, newElementFlags, newReadonly, tupleType.target.labeledElementDeclarations); - } - function instantiateMappedArrayType(arrayType, mappedType, mapper) { - const elementType = instantiateMappedTypeTemplate( - mappedType, - numberType, - /*isOptional*/ - true, - mapper - ); - return isErrorType(elementType) ? errorType : createArrayType(elementType, getModifiedReadonlyState(isReadonlyArrayType(arrayType), getMappedTypeModifiers(mappedType))); - } - function instantiateMappedTypeTemplate(type, key, isOptional, mapper) { - const templateMapper = appendTypeMapping(mapper, getTypeParameterFromMappedType(type), key); - const propType = instantiateType(getTemplateTypeFromMappedType(type.target || type), templateMapper); - const modifiers = getMappedTypeModifiers(type); - return strictNullChecks && modifiers & 4 /* IncludeOptional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType( - propType, - /*isProperty*/ - true - ) : strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) : propType; - } - function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) { - Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated"); - const result = createObjectType(type.objectFlags & ~(524288 /* CouldContainTypeVariablesComputed */ | 1048576 /* CouldContainTypeVariables */) | 64 /* Instantiated */, type.symbol); - if (type.objectFlags & 32 /* Mapped */) { - result.declaration = type.declaration; - const origTypeParameter = getTypeParameterFromMappedType(type); - const freshTypeParameter = cloneTypeParameter(origTypeParameter); - result.typeParameter = freshTypeParameter; - mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper); - freshTypeParameter.mapper = mapper; - } - if (type.objectFlags & 8388608 /* InstantiationExpressionType */) { - result.node = type.node; - } - if (type.objectFlags & 134217728 /* SingleSignatureType */) { - result.outerTypeParameters = type.outerTypeParameters; - } - result.target = type; - result.mapper = mapper; - result.aliasSymbol = aliasSymbol || type.aliasSymbol; - result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); - result.objectFlags |= result.aliasTypeArguments ? getPropagatingFlagsOfTypes(result.aliasTypeArguments) : 0; - return result; - } - function getConditionalTypeInstantiation(type, mapper, forConstraint, aliasSymbol, aliasTypeArguments) { - const root = type.root; - if (root.outerTypeParameters) { - const typeArguments = map(root.outerTypeParameters, (t) => getMappedType(t, mapper)); - const id = (forConstraint ? "C" : "") + getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments); - let result = root.instantiations.get(id); - if (!result) { - const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments); - const checkType = root.checkType; - const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0; - result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments); - root.instantiations.set(id, result); - } - return result; - } - return type; - } - function instantiateType(type, mapper) { - return type && mapper ? instantiateTypeWithAlias( - type, - mapper, - /*aliasSymbol*/ - void 0, - /*aliasTypeArguments*/ - void 0 - ) : type; - } - function instantiateTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) { - var _a; - if (!couldContainTypeVariables(type)) { - return type; - } - if (instantiationDepth === 100 || instantiationCount >= 5e6) { - (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: type.id, instantiationDepth, instantiationCount }); - error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); - return errorType; - } - totalInstantiationCount++; - instantiationCount++; - instantiationDepth++; - const result = instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments); - instantiationDepth--; - return result; - } - function instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments) { - const flags = type.flags; - if (flags & 262144 /* TypeParameter */) { - return getMappedType(type, mapper); - } - if (flags & 524288 /* Object */) { - const objectFlags = type.objectFlags; - if (objectFlags & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */)) { - if (objectFlags & 4 /* Reference */ && !type.node) { - const resolvedTypeArguments = type.resolvedTypeArguments; - const newTypeArguments = instantiateTypes(resolvedTypeArguments, mapper); - return newTypeArguments !== resolvedTypeArguments ? createNormalizedTypeReference(type.target, newTypeArguments) : type; - } - if (objectFlags & 1024 /* ReverseMapped */) { - return instantiateReverseMappedType(type, mapper); - } - return getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments); - } - return type; - } - if (flags & 3145728 /* UnionOrIntersection */) { - const origin = type.flags & 1048576 /* Union */ ? type.origin : void 0; - const types = origin && origin.flags & 3145728 /* UnionOrIntersection */ ? origin.types : type.types; - const newTypes = instantiateTypes(types, mapper); - if (newTypes === types && aliasSymbol === type.aliasSymbol) { - return type; - } - const newAliasSymbol = aliasSymbol || type.aliasSymbol; - const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); - return flags & 2097152 /* Intersection */ || origin && origin.flags & 2097152 /* Intersection */ ? getIntersectionType(newTypes, 0 /* None */, newAliasSymbol, newAliasTypeArguments) : getUnionType(newTypes, 1 /* Literal */, newAliasSymbol, newAliasTypeArguments); - } - if (flags & 4194304 /* Index */) { - return getIndexType(instantiateType(type.type, mapper)); - } - if (flags & 134217728 /* TemplateLiteral */) { - return getTemplateLiteralType(type.texts, instantiateTypes(type.types, mapper)); - } - if (flags & 268435456 /* StringMapping */) { - return getStringMappingType(type.symbol, instantiateType(type.type, mapper)); - } - if (flags & 8388608 /* IndexedAccess */) { - const newAliasSymbol = aliasSymbol || type.aliasSymbol; - const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); - return getIndexedAccessType( - instantiateType(type.objectType, mapper), - instantiateType(type.indexType, mapper), - type.accessFlags, - /*accessNode*/ - void 0, - newAliasSymbol, - newAliasTypeArguments - ); - } - if (flags & 16777216 /* Conditional */) { - return getConditionalTypeInstantiation( - type, - combineTypeMappers(type.mapper, mapper), - /*forConstraint*/ - false, - aliasSymbol, - aliasTypeArguments - ); - } - if (flags & 33554432 /* Substitution */) { - const newBaseType = instantiateType(type.baseType, mapper); - if (isNoInferType(type)) { - return getNoInferType(newBaseType); - } - const newConstraint = instantiateType(type.constraint, mapper); - if (newBaseType.flags & 8650752 /* TypeVariable */ && isGenericType(newConstraint)) { - return getSubstitutionType(newBaseType, newConstraint); - } - if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) { - return newBaseType; - } - return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]); - } - return type; - } - function instantiateReverseMappedType(type, mapper) { - const innerMappedType = instantiateType(type.mappedType, mapper); - if (!(getObjectFlags(innerMappedType) & 32 /* Mapped */)) { - return type; - } - const innerIndexType = instantiateType(type.constraintType, mapper); - if (!(innerIndexType.flags & 4194304 /* Index */)) { - return type; - } - const instantiated = inferTypeForHomomorphicMappedType( - instantiateType(type.source, mapper), - innerMappedType, - innerIndexType - ); - if (instantiated) { - return instantiated; - } - return type; - } - function getPermissiveInstantiation(type) { - return type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */) ? type : type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper)); - } - function getRestrictiveInstantiation(type) { - if (type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */)) { - return type; - } - if (type.restrictiveInstantiation) { - return type.restrictiveInstantiation; - } - type.restrictiveInstantiation = instantiateType(type, restrictiveMapper); - type.restrictiveInstantiation.restrictiveInstantiation = type.restrictiveInstantiation; - return type.restrictiveInstantiation; - } - function instantiateIndexInfo(info, mapper) { - return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components); - } - function isContextSensitive(node) { - Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); - switch (node.kind) { - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - case 262 /* FunctionDeclaration */: - return isContextSensitiveFunctionLikeDeclaration(node); - case 210 /* ObjectLiteralExpression */: - return some(node.properties, isContextSensitive); - case 209 /* ArrayLiteralExpression */: - return some(node.elements, isContextSensitive); - case 227 /* ConditionalExpression */: - return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); - case 226 /* BinaryExpression */: - return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); - case 303 /* PropertyAssignment */: - return isContextSensitive(node.initializer); - case 217 /* ParenthesizedExpression */: - return isContextSensitive(node.expression); - case 292 /* JsxAttributes */: - return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); - case 291 /* JsxAttribute */: { - const { initializer } = node; - return !!initializer && isContextSensitive(initializer); - } - case 294 /* JsxExpression */: { - const { expression } = node; - return !!expression && isContextSensitive(expression); - } - } - return false; - } - function isContextSensitiveFunctionLikeDeclaration(node) { - return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node); - } - function hasContextSensitiveReturnExpression(node) { - if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { - return false; - } - if (node.body.kind !== 241 /* Block */) { - return isContextSensitive(node.body); - } - return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); - } - function isContextSensitiveFunctionOrObjectLiteralMethod(func) { - return (isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) && isContextSensitiveFunctionLikeDeclaration(func); - } - function getTypeWithoutSignatures(type) { - if (type.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type); - if (resolved.constructSignatures.length || resolved.callSignatures.length) { - const result = createObjectType(16 /* Anonymous */, type.symbol); - result.members = resolved.members; - result.properties = resolved.properties; - result.callSignatures = emptyArray; - result.constructSignatures = emptyArray; - result.indexInfos = emptyArray; - return result; - } - } else if (type.flags & 2097152 /* Intersection */) { - return getIntersectionType(map(type.types, getTypeWithoutSignatures)); - } - return type; - } - function isTypeIdenticalTo(source, target) { - return isTypeRelatedTo(source, target, identityRelation); - } - function compareTypesIdentical(source, target) { - return isTypeRelatedTo(source, target, identityRelation) ? -1 /* True */ : 0 /* False */; - } - function compareTypesAssignable(source, target) { - return isTypeRelatedTo(source, target, assignableRelation) ? -1 /* True */ : 0 /* False */; - } - function compareTypesSubtypeOf(source, target) { - return isTypeRelatedTo(source, target, subtypeRelation) ? -1 /* True */ : 0 /* False */; - } - function isTypeSubtypeOf(source, target) { - return isTypeRelatedTo(source, target, subtypeRelation); - } - function isTypeStrictSubtypeOf(source, target) { - return isTypeRelatedTo(source, target, strictSubtypeRelation); - } - function isTypeAssignableTo(source, target) { - return isTypeRelatedTo(source, target, assignableRelation); - } - function isTypeDerivedFrom(source, target) { - return source.flags & 1048576 /* Union */ ? every(source.types, (t) => isTypeDerivedFrom(t, target)) : target.flags & 1048576 /* Union */ ? some(target.types, (t) => isTypeDerivedFrom(source, t)) : source.flags & 2097152 /* Intersection */ ? some(source.types, (t) => isTypeDerivedFrom(t, target)) : source.flags & 58982400 /* InstantiableNonPrimitive */ ? isTypeDerivedFrom(getBaseConstraintOfType(source) || unknownType, target) : isEmptyAnonymousObjectType(target) ? !!(source.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */)) : target === globalObjectType ? !!(source.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */)) && !isEmptyAnonymousObjectType(source) : target === globalFunctionType ? !!(source.flags & 524288 /* Object */) && isFunctionObjectType(source) : hasBaseType(source, getTargetType(target)) || isArrayType(target) && !isReadonlyArrayType(target) && isTypeDerivedFrom(source, globalReadonlyArrayType); - } - function isTypeComparableTo(source, target) { - return isTypeRelatedTo(source, target, comparableRelation); - } - function areTypesComparable(type1, type2) { - return isTypeComparableTo(type1, type2) || isTypeComparableTo(type2, type1); - } - function checkTypeAssignableTo(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject) { - return checkTypeRelatedTo(source, target, assignableRelation, errorNode, headMessage, containingMessageChain, errorOutputObject); - } - function checkTypeAssignableToAndOptionallyElaborate(source, target, errorNode, expr, headMessage, containingMessageChain) { - return checkTypeRelatedToAndOptionallyElaborate( - source, - target, - assignableRelation, - errorNode, - expr, - headMessage, - containingMessageChain, - /*errorOutputContainer*/ - void 0 - ); - } - function checkTypeRelatedToAndOptionallyElaborate(source, target, relation, errorNode, expr, headMessage, containingMessageChain, errorOutputContainer) { - if (isTypeRelatedTo(source, target, relation)) return true; - if (!errorNode || !elaborateError(expr, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) { - return checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer); - } - return false; - } - function isOrHasGenericConditional(type) { - return !!(type.flags & 16777216 /* Conditional */ || type.flags & 2097152 /* Intersection */ && some(type.types, isOrHasGenericConditional)); - } - function elaborateError(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) { - if (!node || isOrHasGenericConditional(target)) return false; - if (!checkTypeRelatedTo( - source, - target, - relation, - /*errorNode*/ - void 0 - ) && elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) { - return true; - } - switch (node.kind) { - case 234 /* AsExpression */: - if (!isConstAssertion(node)) { - break; - } - // fallthrough - case 294 /* JsxExpression */: - case 217 /* ParenthesizedExpression */: - return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - case 226 /* BinaryExpression */: - switch (node.operatorToken.kind) { - case 64 /* EqualsToken */: - case 28 /* CommaToken */: - return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); - } - break; - case 210 /* ObjectLiteralExpression */: - return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 209 /* ArrayLiteralExpression */: - return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 292 /* JsxAttributes */: - return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); - case 219 /* ArrowFunction */: - return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); - } - return false; - } - function elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) { - const callSignatures = getSignaturesOfType(source, 0 /* Call */); - const constructSignatures = getSignaturesOfType(source, 1 /* Construct */); - for (const signatures of [constructSignatures, callSignatures]) { - if (some(signatures, (s) => { - const returnType = getReturnTypeOfSignature(s); - return !(returnType.flags & (1 /* Any */ | 131072 /* Never */)) && checkTypeRelatedTo( - returnType, - target, - relation, - /*errorNode*/ - void 0 - ); - })) { - const resultObj = errorOutputContainer || {}; - checkTypeAssignableTo(source, target, node, headMessage, containingMessageChain, resultObj); - const diagnostic = resultObj.errors[resultObj.errors.length - 1]; - addRelatedInfo( - diagnostic, - createDiagnosticForNode( - node, - signatures === constructSignatures ? Diagnostics.Did_you_mean_to_use_new_with_this_expression : Diagnostics.Did_you_mean_to_call_this_expression - ) - ); - return true; - } - } - return false; - } - function elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer) { - if (isBlock(node.body)) { - return false; - } - if (some(node.parameters, hasType)) { - return false; - } - const sourceSig = getSingleCallSignature(source); - if (!sourceSig) { - return false; - } - const targetSignatures = getSignaturesOfType(target, 0 /* Call */); - if (!length(targetSignatures)) { - return false; - } - const returnExpression = node.body; - const sourceReturn = getReturnTypeOfSignature(sourceSig); - const targetReturn = getUnionType(map(targetSignatures, getReturnTypeOfSignature)); - if (!checkTypeRelatedTo( - sourceReturn, - targetReturn, - relation, - /*errorNode*/ - void 0 - )) { - const elaborated = returnExpression && elaborateError( - returnExpression, - sourceReturn, - targetReturn, - relation, - /*headMessage*/ - void 0, - containingMessageChain, - errorOutputContainer - ); - if (elaborated) { - return elaborated; - } - const resultObj = errorOutputContainer || {}; - checkTypeRelatedTo( - sourceReturn, - targetReturn, - relation, - returnExpression, - /*headMessage*/ - void 0, - containingMessageChain, - resultObj - ); - if (resultObj.errors) { - if (target.symbol && length(target.symbol.declarations)) { - addRelatedInfo( - resultObj.errors[resultObj.errors.length - 1], - createDiagnosticForNode( - target.symbol.declarations[0], - Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature - ) - ); - } - if ((getFunctionFlags(node) & 2 /* Async */) === 0 && !getTypeOfPropertyOfType(sourceReturn, "then") && checkTypeRelatedTo( - createPromiseType(sourceReturn), - targetReturn, - relation, - /*errorNode*/ - void 0 - )) { - addRelatedInfo( - resultObj.errors[resultObj.errors.length - 1], - createDiagnosticForNode( - node, - Diagnostics.Did_you_mean_to_mark_this_function_as_async - ) - ); - } - return true; - } - } - return false; - } - function getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType) { - const idx = getIndexedAccessTypeOrUndefined(target, nameType); - if (idx) { - return idx; - } - if (target.flags & 1048576 /* Union */) { - const best = getBestMatchingType(source, target); - if (best) { - return getIndexedAccessTypeOrUndefined(best, nameType); - } - } - } - function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) { - pushContextualType( - next, - sourcePropType, - /*isCache*/ - false - ); - const result = checkExpressionForMutableLocation(next, 1 /* Contextual */); - popContextualType(); - return result; - } - function elaborateElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) { - let reportedError = false; - for (const value of iterator) { - const { errorNode: prop, innerExpression: next, nameType, errorMessage } = value; - let targetPropType = getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType); - if (!targetPropType || targetPropType.flags & 8388608 /* IndexedAccess */) continue; - let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType); - if (!sourcePropType) continue; - const propName = getPropertyNameFromIndex( - nameType, - /*accessNode*/ - void 0 - ); - if (!checkTypeRelatedTo( - sourcePropType, - targetPropType, - relation, - /*errorNode*/ - void 0 - )) { - const elaborated = next && elaborateError( - next, - sourcePropType, - targetPropType, - relation, - /*headMessage*/ - void 0, - containingMessageChain, - errorOutputContainer - ); - reportedError = true; - if (!elaborated) { - const resultObj = errorOutputContainer || {}; - const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType; - if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) { - const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType)); - diagnostics.add(diag2); - resultObj.errors = [diag2]; - } else { - const targetIsOptional = !!(propName && (getPropertyOfType(target, propName) || unknownSymbol).flags & 16777216 /* Optional */); - const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216 /* Optional */); - targetPropType = removeMissingType(targetPropType, targetIsOptional); - sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional); - const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); - if (result && specificSource !== sourcePropType) { - checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); - } - } - if (resultObj.errors) { - const reportedDiag = resultObj.errors[resultObj.errors.length - 1]; - const propertyName = isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0; - const targetProp = propertyName !== void 0 ? getPropertyOfType(target, propertyName) : void 0; - let issuedElaboration = false; - if (!targetProp) { - const indexInfo = getApplicableIndexInfo(target, nameType); - if (indexInfo && indexInfo.declaration && !getSourceFileOfNode(indexInfo.declaration).hasNoDefaultLib) { - issuedElaboration = true; - addRelatedInfo(reportedDiag, createDiagnosticForNode(indexInfo.declaration, Diagnostics.The_expected_type_comes_from_this_index_signature)); - } - } - if (!issuedElaboration && (targetProp && length(targetProp.declarations) || target.symbol && length(target.symbol.declarations))) { - const targetNode = targetProp && length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0]; - if (!getSourceFileOfNode(targetNode).hasNoDefaultLib) { - addRelatedInfo( - reportedDiag, - createDiagnosticForNode( - targetNode, - Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, - propertyName && !(nameType.flags & 8192 /* UniqueESSymbol */) ? unescapeLeadingUnderscores(propertyName) : typeToString(nameType), - typeToString(target) - ) - ); - } - } - } - } - } - } - return reportedError; - } - function elaborateIterableOrArrayLikeTargetElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) { - const tupleOrArrayLikeTargetParts = filterType(target, isArrayOrTupleLikeType); - const nonTupleOrArrayLikeTargetParts = filterType(target, (t) => !isArrayOrTupleLikeType(t)); - const iterationType = nonTupleOrArrayLikeTargetParts !== neverType ? getIterationTypeOfIterable( - 13 /* ForOf */, - 0 /* Yield */, - nonTupleOrArrayLikeTargetParts, - /*errorNode*/ - void 0 - ) : void 0; - let reportedError = false; - for (let status = iterator.next(); !status.done; status = iterator.next()) { - const { errorNode: prop, innerExpression: next, nameType, errorMessage } = status.value; - let targetPropType = iterationType; - const targetIndexedPropType = tupleOrArrayLikeTargetParts !== neverType ? getBestMatchIndexedAccessTypeOrUndefined(source, tupleOrArrayLikeTargetParts, nameType) : void 0; - if (targetIndexedPropType && !(targetIndexedPropType.flags & 8388608 /* IndexedAccess */)) { - targetPropType = iterationType ? getUnionType([iterationType, targetIndexedPropType]) : targetIndexedPropType; - } - if (!targetPropType) continue; - let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType); - if (!sourcePropType) continue; - const propName = getPropertyNameFromIndex( - nameType, - /*accessNode*/ - void 0 - ); - if (!checkTypeRelatedTo( - sourcePropType, - targetPropType, - relation, - /*errorNode*/ - void 0 - )) { - const elaborated = next && elaborateError( - next, - sourcePropType, - targetPropType, - relation, - /*headMessage*/ - void 0, - containingMessageChain, - errorOutputContainer - ); - reportedError = true; - if (!elaborated) { - const resultObj = errorOutputContainer || {}; - const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType; - if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) { - const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType)); - diagnostics.add(diag2); - resultObj.errors = [diag2]; - } else { - const targetIsOptional = !!(propName && (getPropertyOfType(tupleOrArrayLikeTargetParts, propName) || unknownSymbol).flags & 16777216 /* Optional */); - const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216 /* Optional */); - targetPropType = removeMissingType(targetPropType, targetIsOptional); - sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional); - const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); - if (result && specificSource !== sourcePropType) { - checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); - } - } - } - } - } - return reportedError; - } - function* generateJsxAttributes(node) { - if (!length(node.properties)) return; - for (const prop of node.properties) { - if (isJsxSpreadAttribute(prop) || isHyphenatedJsxName(getTextOfJsxAttributeName(prop.name))) continue; - yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: getStringLiteralType(getTextOfJsxAttributeName(prop.name)) }; - } - } - function* generateJsxChildren(node, getInvalidTextDiagnostic) { - if (!length(node.children)) return; - let memberOffset = 0; - for (let i = 0; i < node.children.length; i++) { - const child = node.children[i]; - const nameType = getNumberLiteralType(i - memberOffset); - const elem = getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic); - if (elem) { - yield elem; - } else { - memberOffset++; - } - } - } - function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { - switch (child.kind) { - case 294 /* JsxExpression */: - return { errorNode: child, innerExpression: child.expression, nameType }; - case 12 /* JsxText */: - if (child.containsOnlyTriviaWhiteSpaces) { - break; - } - return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 288 /* JsxFragment */: - return { errorNode: child, innerExpression: child, nameType }; - default: - return Debug.assertNever(child, "Found invalid jsx child"); - } - } - function elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer) { - let result = elaborateElementwise(generateJsxAttributes(node), source, target, relation, containingMessageChain, errorOutputContainer); - let invalidTextDiagnostic; - if (isJsxOpeningElement(node.parent) && isJsxElement(node.parent.parent)) { - const containingElement = node.parent.parent; - const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); - const childrenPropName = childPropName === void 0 ? "children" : unescapeLeadingUnderscores(childPropName); - const childrenNameType = getStringLiteralType(childrenPropName); - const childrenTargetType = getIndexedAccessType(target, childrenNameType); - const validChildren = getSemanticJsxChildren(containingElement.children); - if (!length(validChildren)) { - return result; - } - const moreThanOneRealChildren = length(validChildren) > 1; - let arrayLikeTargetParts; - let nonArrayLikeTargetParts; - const iterableType = getGlobalIterableType( - /*reportErrors*/ - false - ); - if (iterableType !== emptyGenericType) { - const anyIterable = createIterableType(anyType); - arrayLikeTargetParts = filterType(childrenTargetType, (t) => isTypeAssignableTo(t, anyIterable)); - nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isTypeAssignableTo(t, anyIterable)); - } else { - arrayLikeTargetParts = filterType(childrenTargetType, isArrayOrTupleLikeType); - nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isArrayOrTupleLikeType(t)); - } - if (moreThanOneRealChildren) { - if (arrayLikeTargetParts !== neverType) { - const realSource = createTupleType(checkJsxChildren(containingElement, 0 /* Normal */)); - const children = generateJsxChildren(containingElement, getInvalidTextualChildDiagnostic); - result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result; - } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { - result = true; - const diag2 = error( - containingElement.openingElement.tagName, - Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, - childrenPropName, - typeToString(childrenTargetType) - ); - if (errorOutputContainer && errorOutputContainer.skipLogging) { - (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); - } - } - } else { - if (nonArrayLikeTargetParts !== neverType) { - const child = validChildren[0]; - const elem = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic); - if (elem) { - result = elaborateElementwise( - function* () { - yield elem; - }(), - source, - target, - relation, - containingMessageChain, - errorOutputContainer - ) || result; - } - } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { - result = true; - const diag2 = error( - containingElement.openingElement.tagName, - Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, - childrenPropName, - typeToString(childrenTargetType) - ); - if (errorOutputContainer && errorOutputContainer.skipLogging) { - (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); - } - } - } - } - return result; - function getInvalidTextualChildDiagnostic() { - if (!invalidTextDiagnostic) { - const tagNameText = getTextOfNode(node.parent.tagName); - const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); - const childrenPropName = childPropName === void 0 ? "children" : unescapeLeadingUnderscores(childPropName); - const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName)); - const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2; - invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(diagnostic, tagNameText, childrenPropName, typeToString(childrenTargetType)) }; - } - return invalidTextDiagnostic; - } - } - function* generateLimitedTupleElements(node, target) { - const len = length(node.elements); - if (!len) return; - for (let i = 0; i < len; i++) { - if (isTupleLikeType(target) && !getPropertyOfType(target, "" + i)) continue; - const elem = node.elements[i]; - if (isOmittedExpression(elem)) continue; - const nameType = getNumberLiteralType(i); - const checkNode = getEffectiveCheckNode(elem); - yield { errorNode: checkNode, innerExpression: checkNode, nameType }; - } - } - function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) { - if (target.flags & (402784252 /* Primitive */ | 131072 /* Never */)) return false; - if (isTupleLikeType(source)) { - return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer); - } - pushContextualType( - node, - target, - /*isCache*/ - false - ); - const tupleizedType = checkArrayLiteral( - node, - 1 /* Contextual */, - /*forceTuple*/ - true - ); - popContextualType(); - if (isTupleLikeType(tupleizedType)) { - return elaborateElementwise(generateLimitedTupleElements(node, target), tupleizedType, target, relation, containingMessageChain, errorOutputContainer); - } - return false; - } - function* generateObjectLiteralElements(node) { - if (!length(node.properties)) return; - for (const prop of node.properties) { - if (isSpreadAssignment(prop)) continue; - const type = getLiteralTypeFromProperty(getSymbolOfDeclaration(prop), 8576 /* StringOrNumberLiteralOrUnique */); - if (!type || type.flags & 131072 /* Never */) { - continue; - } - switch (prop.kind) { - case 178 /* SetAccessor */: - case 177 /* GetAccessor */: - case 174 /* MethodDeclaration */: - case 304 /* ShorthandPropertyAssignment */: - yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; - break; - case 303 /* PropertyAssignment */: - yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; - break; - default: - Debug.assertNever(prop); - } - } - } - function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) { - if (target.flags & (402784252 /* Primitive */ | 131072 /* Never */)) return false; - return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer); - } - function checkTypeComparableTo(source, target, errorNode, headMessage, containingMessageChain) { - return checkTypeRelatedTo(source, target, comparableRelation, errorNode, headMessage, containingMessageChain); - } - function isSignatureAssignableTo(source, target, ignoreReturnTypes) { - return compareSignaturesRelated( - source, - target, - ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */, - /*reportErrors*/ - false, - /*errorReporter*/ - void 0, - /*incompatibleErrorReporter*/ - void 0, - compareTypesAssignable, - /*reportUnreliableMarkers*/ - void 0 - ) !== 0 /* False */; - } - function isTopSignature(s) { - if (!s.typeParameters && (!s.thisParameter || isTypeAny(getTypeOfParameter(s.thisParameter))) && s.parameters.length === 1 && signatureHasRestParameter(s)) { - const paramType = getTypeOfParameter(s.parameters[0]); - const restType = isArrayType(paramType) ? getTypeArguments(paramType)[0] : paramType; - return !!(restType.flags & (1 /* Any */ | 131072 /* Never */) && getReturnTypeOfSignature(s).flags & 3 /* AnyOrUnknown */); - } - return false; - } - function compareSignaturesRelated(source, target, checkMode, reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) { - if (source === target) { - return -1 /* True */; - } - if (!(checkMode & 16 /* StrictTopSignature */ && isTopSignature(source)) && isTopSignature(target)) { - return -1 /* True */; - } - if (checkMode & 16 /* StrictTopSignature */ && isTopSignature(source) && !isTopSignature(target)) { - return 0 /* False */; - } - const targetCount = getParameterCount(target); - const sourceHasMoreParameters = !hasEffectiveRestParameter(target) && (checkMode & 8 /* StrictArity */ ? hasEffectiveRestParameter(source) || getParameterCount(source) > targetCount : getMinArgumentCount(source) > targetCount); - if (sourceHasMoreParameters) { - if (reportErrors2 && !(checkMode & 8 /* StrictArity */)) { - errorReporter(Diagnostics.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1, getMinArgumentCount(source), targetCount); - } - return 0 /* False */; - } - if (source.typeParameters && source.typeParameters !== target.typeParameters) { - target = getCanonicalSignature(target); - source = instantiateSignatureInContextOf( - source, - target, - /*inferenceContext*/ - void 0, - compareTypes - ); - } - const sourceCount = getParameterCount(source); - const sourceRestType = getNonArrayRestType(source); - const targetRestType = getNonArrayRestType(target); - if (sourceRestType || targetRestType) { - void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); - } - const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; - let result = -1 /* True */; - const sourceThisType = getThisTypeOfSignature(source); - if (sourceThisType && sourceThisType !== voidType) { - const targetThisType = getThisTypeOfSignature(target); - if (targetThisType) { - const related = !strictVariance && compareTypes( - sourceThisType, - targetThisType, - /*reportErrors*/ - false - ) || compareTypes(targetThisType, sourceThisType, reportErrors2); - if (!related) { - if (reportErrors2) { - errorReporter(Diagnostics.The_this_types_of_each_signature_are_incompatible); - } - return 0 /* False */; - } - result &= related; - } - } - const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount); - const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1; - for (let i = 0; i < paramCount; i++) { - const sourceType = i === restIndex ? getRestOrAnyTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i); - const targetType = i === restIndex ? getRestOrAnyTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i); - if (sourceType && targetType && (sourceType !== targetType || checkMode & 8 /* StrictArity */)) { - const sourceSig = checkMode & 3 /* Callback */ || isInstantiatedGenericParameter(source, i) ? void 0 : getSingleCallSignature(getNonNullableType(sourceType)); - const targetSig = checkMode & 3 /* Callback */ || isInstantiatedGenericParameter(target, i) ? void 0 : getSingleCallSignature(getNonNullableType(targetType)); - const callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) && getTypeFacts(sourceType, 50331648 /* IsUndefinedOrNull */) === getTypeFacts(targetType, 50331648 /* IsUndefinedOrNull */); - let related = callbacks ? compareSignaturesRelated(targetSig, sourceSig, checkMode & 8 /* StrictArity */ | (strictVariance ? 2 /* StrictCallback */ : 1 /* BivariantCallback */), reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) : !(checkMode & 3 /* Callback */) && !strictVariance && compareTypes( - sourceType, - targetType, - /*reportErrors*/ - false - ) || compareTypes(targetType, sourceType, reportErrors2); - if (related && checkMode & 8 /* StrictArity */ && i >= getMinArgumentCount(source) && i < getMinArgumentCount(target) && compareTypes( - sourceType, - targetType, - /*reportErrors*/ - false - )) { - related = 0 /* False */; - } - if (!related) { - if (reportErrors2) { - errorReporter(Diagnostics.Types_of_parameters_0_and_1_are_incompatible, unescapeLeadingUnderscores(getParameterNameAtPosition(source, i)), unescapeLeadingUnderscores(getParameterNameAtPosition(target, i))); - } - return 0 /* False */; - } - result &= related; - } - } - if (!(checkMode & 4 /* IgnoreReturnTypes */)) { - const targetReturnType = isResolvingReturnTypeOfSignature(target) ? anyType : target.declaration && isJSConstructor(target.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(target.declaration.symbol)) : getReturnTypeOfSignature(target); - if (targetReturnType === voidType || targetReturnType === anyType) { - return result; - } - const sourceReturnType = isResolvingReturnTypeOfSignature(source) ? anyType : source.declaration && isJSConstructor(source.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(source.declaration.symbol)) : getReturnTypeOfSignature(source); - const targetTypePredicate = getTypePredicateOfSignature(target); - if (targetTypePredicate) { - const sourceTypePredicate = getTypePredicateOfSignature(source); - if (sourceTypePredicate) { - result &= compareTypePredicateRelatedTo(sourceTypePredicate, targetTypePredicate, reportErrors2, errorReporter, compareTypes); - } else if (isIdentifierTypePredicate(targetTypePredicate) || isThisTypePredicate(targetTypePredicate)) { - if (reportErrors2) { - errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source)); - } - return 0 /* False */; - } - } else { - result &= checkMode & 1 /* BivariantCallback */ && compareTypes( - targetReturnType, - sourceReturnType, - /*reportErrors*/ - false - ) || compareTypes(sourceReturnType, targetReturnType, reportErrors2); - if (!result && reportErrors2 && incompatibleErrorReporter) { - incompatibleErrorReporter(sourceReturnType, targetReturnType); - } - } - } - return result; - } - function compareTypePredicateRelatedTo(source, target, reportErrors2, errorReporter, compareTypes) { - if (source.kind !== target.kind) { - if (reportErrors2) { - errorReporter(Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard); - errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); - } - return 0 /* False */; - } - if (source.kind === 1 /* Identifier */ || source.kind === 3 /* AssertsIdentifier */) { - if (source.parameterIndex !== target.parameterIndex) { - if (reportErrors2) { - errorReporter(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, target.parameterName); - errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); - } - return 0 /* False */; - } - } - const related = source.type === target.type ? -1 /* True */ : source.type && target.type ? compareTypes(source.type, target.type, reportErrors2) : 0 /* False */; - if (related === 0 /* False */ && reportErrors2) { - errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); - } - return related; - } - function isImplementationCompatibleWithOverload(implementation, overload) { - const erasedSource = getErasedSignature(implementation); - const erasedTarget = getErasedSignature(overload); - const sourceReturnType = getReturnTypeOfSignature(erasedSource); - const targetReturnType = getReturnTypeOfSignature(erasedTarget); - if (targetReturnType === voidType || isTypeRelatedTo(targetReturnType, sourceReturnType, assignableRelation) || isTypeRelatedTo(sourceReturnType, targetReturnType, assignableRelation)) { - return isSignatureAssignableTo( - erasedSource, - erasedTarget, - /*ignoreReturnTypes*/ - true - ); - } - return false; - } - function isEmptyResolvedType(t) { - return t !== anyFunctionType && t.properties.length === 0 && t.callSignatures.length === 0 && t.constructSignatures.length === 0 && t.indexInfos.length === 0; - } - function isEmptyObjectType(type) { - return type.flags & 524288 /* Object */ ? !isGenericMappedType(type) && isEmptyResolvedType(resolveStructuredTypeMembers(type)) : type.flags & 67108864 /* NonPrimitive */ ? true : type.flags & 1048576 /* Union */ ? some(type.types, isEmptyObjectType) : type.flags & 2097152 /* Intersection */ ? every(type.types, isEmptyObjectType) : false; - } - function isEmptyAnonymousObjectType(type) { - return !!(getObjectFlags(type) & 16 /* Anonymous */ && (type.members && isEmptyResolvedType(type) || type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && getMembersOfSymbol(type.symbol).size === 0)); - } - function isUnknownLikeUnionType(type) { - if (strictNullChecks && type.flags & 1048576 /* Union */) { - if (!(type.objectFlags & 33554432 /* IsUnknownLikeUnionComputed */)) { - const types = type.types; - type.objectFlags |= 33554432 /* IsUnknownLikeUnionComputed */ | (types.length >= 3 && types[0].flags & 32768 /* Undefined */ && types[1].flags & 65536 /* Null */ && some(types, isEmptyAnonymousObjectType) ? 67108864 /* IsUnknownLikeUnion */ : 0); - } - return !!(type.objectFlags & 67108864 /* IsUnknownLikeUnion */); - } - return false; - } - function containsUndefinedType(type) { - return !!((type.flags & 1048576 /* Union */ ? type.types[0] : type).flags & 32768 /* Undefined */); - } - function containsNonMissingUndefinedType(type) { - const candidate = type.flags & 1048576 /* Union */ ? type.types[0] : type; - return !!(candidate.flags & 32768 /* Undefined */) && candidate !== missingType; - } - function isStringIndexSignatureOnlyType(type) { - return type.flags & 524288 /* Object */ && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 /* UnionOrIntersection */ && every(type.types, isStringIndexSignatureOnlyType) || false; - } - function isEnumTypeRelatedTo(source, target, errorReporter) { - const sourceSymbol = source.flags & 8 /* EnumMember */ ? getParentOfSymbol(source) : source; - const targetSymbol = target.flags & 8 /* EnumMember */ ? getParentOfSymbol(target) : target; - if (sourceSymbol === targetSymbol) { - return true; - } - if (sourceSymbol.escapedName !== targetSymbol.escapedName || !(sourceSymbol.flags & 256 /* RegularEnum */) || !(targetSymbol.flags & 256 /* RegularEnum */)) { - return false; - } - const id = getSymbolId(sourceSymbol) + "," + getSymbolId(targetSymbol); - const entry = enumRelation.get(id); - if (entry !== void 0 && !(entry & 2 /* Failed */ && errorReporter)) { - return !!(entry & 1 /* Succeeded */); - } - const targetEnumType = getTypeOfSymbol(targetSymbol); - for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) { - if (sourceProperty.flags & 8 /* EnumMember */) { - const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName); - if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) { - if (errorReporter) { - errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString( - getDeclaredTypeOfSymbol(targetSymbol), - /*enclosingDeclaration*/ - void 0, - 64 /* UseFullyQualifiedType */ - )); - } - enumRelation.set(id, 2 /* Failed */); - return false; - } - const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */)).value; - const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */)).value; - if (sourceValue !== targetValue) { - const sourceIsString = typeof sourceValue === "string"; - const targetIsString = typeof targetValue === "string"; - if (sourceValue !== void 0 && targetValue !== void 0) { - if (errorReporter) { - const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue; - const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue; - errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource); - } - enumRelation.set(id, 2 /* Failed */); - return false; - } - if (sourceIsString || targetIsString) { - if (errorReporter) { - const knownStringValue = sourceValue ?? targetValue; - Debug.assert(typeof knownStringValue === "string"); - const escapedValue = `"${escapeString(knownStringValue)}"`; - errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue); - } - enumRelation.set(id, 2 /* Failed */); - return false; - } - } - } - } - enumRelation.set(id, 1 /* Succeeded */); - return true; - } - function isSimpleTypeRelatedTo(source, target, relation, errorReporter) { - const s = source.flags; - const t = target.flags; - if (t & 1 /* Any */ || s & 131072 /* Never */ || source === wildcardType) return true; - if (t & 2 /* Unknown */ && !(relation === strictSubtypeRelation && s & 1 /* Any */)) return true; - if (t & 131072 /* Never */) return false; - if (s & 402653316 /* StringLike */ && t & 4 /* String */) return true; - if (s & 128 /* StringLiteral */ && s & 1024 /* EnumLiteral */ && t & 128 /* StringLiteral */ && !(t & 1024 /* EnumLiteral */) && source.value === target.value) return true; - if (s & 296 /* NumberLike */ && t & 8 /* Number */) return true; - if (s & 256 /* NumberLiteral */ && s & 1024 /* EnumLiteral */ && t & 256 /* NumberLiteral */ && !(t & 1024 /* EnumLiteral */) && source.value === target.value) return true; - if (s & 2112 /* BigIntLike */ && t & 64 /* BigInt */) return true; - if (s & 528 /* BooleanLike */ && t & 16 /* Boolean */) return true; - if (s & 12288 /* ESSymbolLike */ && t & 4096 /* ESSymbol */) return true; - if (s & 32 /* Enum */ && t & 32 /* Enum */ && source.symbol.escapedName === target.symbol.escapedName && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; - if (s & 1024 /* EnumLiteral */ && t & 1024 /* EnumLiteral */) { - if (s & 1048576 /* Union */ && t & 1048576 /* Union */ && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; - if (s & 2944 /* Literal */ && t & 2944 /* Literal */ && source.value === target.value && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; - } - if (s & 32768 /* Undefined */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & (32768 /* Undefined */ | 16384 /* Void */))) return true; - if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */)) return true; - if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(getObjectFlags(source) & 8192 /* FreshLiteral */))) return true; - if (relation === assignableRelation || relation === comparableRelation) { - if (s & 1 /* Any */) return true; - if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */)) return true; - if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value)) return true; - if (isUnknownLikeUnionType(target)) return true; - } - return false; - } - function isTypeRelatedTo(source, target, relation) { - if (isFreshLiteralType(source)) { - source = source.regularType; - } - if (isFreshLiteralType(target)) { - target = target.regularType; - } - if (source === target) { - return true; - } - if (relation !== identityRelation) { - if (relation === comparableRelation && !(target.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target, source, relation) || isSimpleTypeRelatedTo(source, target, relation)) { - return true; - } - } else if (!((source.flags | target.flags) & (3145728 /* UnionOrIntersection */ | 8388608 /* IndexedAccess */ | 16777216 /* Conditional */ | 33554432 /* Substitution */))) { - if (source.flags !== target.flags) return false; - if (source.flags & 67358815 /* Singleton */) return true; - } - if (source.flags & 524288 /* Object */ && target.flags & 524288 /* Object */) { - const related = relation.get(getRelationKey( - source, - target, - 0 /* None */, - relation, - /*ignoreConstraints*/ - false - )); - if (related !== void 0) { - return !!(related & 1 /* Succeeded */); - } - } - if (source.flags & 469499904 /* StructuredOrInstantiable */ || target.flags & 469499904 /* StructuredOrInstantiable */) { - return checkTypeRelatedTo( - source, - target, - relation, - /*errorNode*/ - void 0 - ); - } - return false; - } - function isIgnoredJsxProperty(source, sourceProp) { - return getObjectFlags(source) & 2048 /* JsxAttributes */ && isHyphenatedJsxName(sourceProp.escapedName); - } - function getNormalizedType(type, writing) { - while (true) { - const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) : type; - if (t === type) return t; - type = t; - } - } - function getNormalizedUnionOrIntersectionType(type, writing) { - const reduced = getReducedType(type); - if (reduced !== type) { - return reduced; - } - if (type.flags & 2097152 /* Intersection */ && shouldNormalizeIntersection(type)) { - const normalizedTypes = sameMap(type.types, (t) => getNormalizedType(t, writing)); - if (normalizedTypes !== type.types) { - return getIntersectionType(normalizedTypes); - } - } - return type; - } - function shouldNormalizeIntersection(type) { - let hasInstantiable = false; - let hasNullableOrEmpty = false; - for (const t of type.types) { - hasInstantiable || (hasInstantiable = !!(t.flags & 465829888 /* Instantiable */)); - hasNullableOrEmpty || (hasNullableOrEmpty = !!(t.flags & 98304 /* Nullable */) || isEmptyAnonymousObjectType(t)); - if (hasInstantiable && hasNullableOrEmpty) return true; - } - return false; - } - function getNormalizedTupleType(type, writing) { - const elements = getElementTypes(type); - const normalizedElements = sameMap(elements, (t) => t.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(t, writing) : t); - return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type; - } - function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) { - var _a; - let errorInfo; - let relatedInfo; - let maybeKeys; - let maybeKeysSet; - let sourceStack; - let targetStack; - let maybeCount = 0; - let sourceDepth = 0; - let targetDepth = 0; - let expandingFlags = 0 /* None */; - let overflow = false; - let overrideNextErrorInfo = 0; - let skipParentCounter = 0; - let lastSkippedInfo; - let incompatibleStack; - let relationCount = 16e6 - relation.size >> 3; - Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking"); - const result = isRelatedTo( - source, - target, - 3 /* Both */, - /*reportErrors*/ - !!errorNode, - headMessage - ); - if (incompatibleStack) { - reportIncompatibleStack(); - } - if (overflow) { - const id = getRelationKey( - source, - target, - /*intersectionState*/ - 0 /* None */, - relation, - /*ignoreConstraints*/ - false - ); - relation.set(id, 2 /* Failed */ | (relationCount <= 0 ? 32 /* ComplexityOverflow */ : 64 /* StackDepthOverflow */)); - (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); - const message = relationCount <= 0 ? Diagnostics.Excessive_complexity_comparing_types_0_and_1 : Diagnostics.Excessive_stack_depth_comparing_types_0_and_1; - const diag2 = error(errorNode || currentNode, message, typeToString(source), typeToString(target)); - if (errorOutputContainer) { - (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); - } - } else if (errorInfo) { - if (containingMessageChain) { - const chain = containingMessageChain(); - if (chain) { - concatenateDiagnosticMessageChains(chain, errorInfo); - errorInfo = chain; - } - } - let relatedInformation; - if (headMessage && errorNode && !result && source.symbol) { - const links = getSymbolLinks(source.symbol); - if (links.originatingImport && !isImportCall(links.originatingImport)) { - const helpfulRetry = checkTypeRelatedTo( - getTypeOfSymbol(links.target), - target, - relation, - /*errorNode*/ - void 0 - ); - if (helpfulRetry) { - const diag3 = createDiagnosticForNode(links.originatingImport, Diagnostics.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); - relatedInformation = append(relatedInformation, diag3); - } - } - } - const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, errorInfo, relatedInformation); - if (relatedInfo) { - addRelatedInfo(diag2, ...relatedInfo); - } - if (errorOutputContainer) { - (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); - } - if (!errorOutputContainer || !errorOutputContainer.skipLogging) { - diagnostics.add(diag2); - } - } - if (errorNode && errorOutputContainer && errorOutputContainer.skipLogging && result === 0 /* False */) { - Debug.assert(!!errorOutputContainer.errors, "missed opportunity to interact with error."); - } - return result !== 0 /* False */; - function resetErrorInfo(saved) { - errorInfo = saved.errorInfo; - lastSkippedInfo = saved.lastSkippedInfo; - incompatibleStack = saved.incompatibleStack; - overrideNextErrorInfo = saved.overrideNextErrorInfo; - skipParentCounter = saved.skipParentCounter; - relatedInfo = saved.relatedInfo; - } - function captureErrorCalculationState() { - return { - errorInfo, - lastSkippedInfo, - incompatibleStack: incompatibleStack == null ? void 0 : incompatibleStack.slice(), - overrideNextErrorInfo, - skipParentCounter, - relatedInfo: relatedInfo == null ? void 0 : relatedInfo.slice() - }; - } - function reportIncompatibleError(message, ...args) { - overrideNextErrorInfo++; - lastSkippedInfo = void 0; - (incompatibleStack || (incompatibleStack = [])).push([message, ...args]); - } - function reportIncompatibleStack() { - const stack = incompatibleStack || []; - incompatibleStack = void 0; - const info = lastSkippedInfo; - lastSkippedInfo = void 0; - if (stack.length === 1) { - reportError(...stack[0]); - if (info) { - reportRelationError( - /*message*/ - void 0, - ...info - ); - } - return; - } - let path = ""; - const secondaryRootErrors = []; - while (stack.length) { - const [msg, ...args] = stack.pop(); - switch (msg.code) { - case Diagnostics.Types_of_property_0_are_incompatible.code: { - if (path.indexOf("new ") === 0) { - path = `(${path})`; - } - const str = "" + args[0]; - if (path.length === 0) { - path = `${str}`; - } else if (isIdentifierText(str, getEmitScriptTarget(compilerOptions))) { - path = `${path}.${str}`; - } else if (str[0] === "[" && str[str.length - 1] === "]") { - path = `${path}${str}`; - } else { - path = `${path}[${str}]`; - } - break; - } - case Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code: - case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code: - case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: - case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: { - if (path.length === 0) { - let mappedMsg = msg; - if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { - mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible; - } else if (msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { - mappedMsg = Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible; - } - secondaryRootErrors.unshift([mappedMsg, args[0], args[1]]); - } else { - const prefix = msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : ""; - const params = msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "..."; - path = `${prefix}${path}(${params})`; - } - break; - } - case Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: { - secondaryRootErrors.unshift([Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, args[0], args[1]]); - break; - } - case Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: { - secondaryRootErrors.unshift([Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, args[0], args[1], args[2]]); - break; - } - default: - return Debug.fail(`Unhandled Diagnostic: ${msg.code}`); - } - } - if (path) { - reportError( - path[path.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types, - path - ); - } else { - secondaryRootErrors.shift(); - } - for (const [msg, ...args] of secondaryRootErrors) { - const originalValue = msg.elidedInCompatabilityPyramid; - msg.elidedInCompatabilityPyramid = false; - reportError(msg, ...args); - msg.elidedInCompatabilityPyramid = originalValue; - } - if (info) { - reportRelationError( - /*message*/ - void 0, - ...info - ); - } - } - function reportError(message, ...args) { - Debug.assert(!!errorNode); - if (incompatibleStack) reportIncompatibleStack(); - if (message.elidedInCompatabilityPyramid) return; - if (skipParentCounter === 0) { - errorInfo = chainDiagnosticMessages(errorInfo, message, ...args); - } else { - skipParentCounter--; - } - } - function reportParentSkippedError(message, ...args) { - reportError(message, ...args); - skipParentCounter++; - } - function associateRelatedInfo(info) { - Debug.assert(!!errorInfo); - if (!relatedInfo) { - relatedInfo = [info]; - } else { - relatedInfo.push(info); - } - } - function reportRelationError(message, source2, target2) { - if (incompatibleStack) reportIncompatibleStack(); - const [sourceType, targetType] = getTypeNamesForErrorDisplay(source2, target2); - let generalizedSource = source2; - let generalizedSourceType = sourceType; - if (!(target2.flags & 131072 /* Never */) && isLiteralType(source2) && !typeCouldHaveTopLevelSingletonTypes(target2)) { - generalizedSource = getBaseTypeOfLiteralType(source2); - Debug.assert(!isTypeAssignableTo(generalizedSource, target2), "generalized source shouldn't be assignable"); - generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource); - } - const targetFlags = target2.flags & 8388608 /* IndexedAccess */ && !(source2.flags & 8388608 /* IndexedAccess */) ? target2.objectType.flags : target2.flags; - if (targetFlags & 262144 /* TypeParameter */ && target2 !== markerSuperTypeForCheck && target2 !== markerSubTypeForCheck) { - const constraint = getBaseConstraintOfType(target2); - let needsOriginalSource; - if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source2, constraint)))) { - reportError( - Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, - needsOriginalSource ? sourceType : generalizedSourceType, - targetType, - typeToString(constraint) - ); - } else { - errorInfo = void 0; - reportError( - Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, - targetType, - generalizedSourceType - ); - } - } - if (!message) { - if (relation === comparableRelation) { - message = Diagnostics.Type_0_is_not_comparable_to_type_1; - } else if (sourceType === targetType) { - message = Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated; - } else if (exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) { - message = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties; - } else { - if (source2.flags & 128 /* StringLiteral */ && target2.flags & 1048576 /* Union */) { - const suggestedType = getSuggestedTypeForNonexistentStringLiteralType(source2, target2); - if (suggestedType) { - reportError(Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, generalizedSourceType, targetType, typeToString(suggestedType)); - return; - } - } - message = Diagnostics.Type_0_is_not_assignable_to_type_1; - } - } else if (message === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 && exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) { - message = Diagnostics.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; - } - reportError(message, generalizedSourceType, targetType); - } - function tryElaborateErrorsForPrimitivesAndObjects(source2, target2) { - const sourceType = symbolValueDeclarationIsContextSensitive(source2.symbol) ? typeToString(source2, source2.symbol.valueDeclaration) : typeToString(source2); - const targetType = symbolValueDeclarationIsContextSensitive(target2.symbol) ? typeToString(target2, target2.symbol.valueDeclaration) : typeToString(target2); - if (globalStringType === source2 && stringType === target2 || globalNumberType === source2 && numberType === target2 || globalBooleanType === source2 && booleanType === target2 || getGlobalESSymbolType() === source2 && esSymbolType === target2) { - reportError(Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType); - } - } - function tryElaborateArrayLikeErrors(source2, target2, reportErrors2) { - if (isTupleType(source2)) { - if (source2.target.readonly && isMutableArrayOrTuple(target2)) { - if (reportErrors2) { - reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2)); - } - return false; - } - return isArrayOrTupleType(target2); - } - if (isReadonlyArrayType(source2) && isMutableArrayOrTuple(target2)) { - if (reportErrors2) { - reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2)); - } - return false; - } - if (isTupleType(target2)) { - return isArrayType(source2); - } - return true; - } - function isRelatedToWorker(source2, target2, reportErrors2) { - return isRelatedTo(source2, target2, 3 /* Both */, reportErrors2); - } - function isRelatedTo(originalSource, originalTarget, recursionFlags = 3 /* Both */, reportErrors2 = false, headMessage2, intersectionState = 0 /* None */) { - if (originalSource === originalTarget) return -1 /* True */; - if (originalSource.flags & 524288 /* Object */ && originalTarget.flags & 402784252 /* Primitive */) { - if (relation === comparableRelation && !(originalTarget.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(originalTarget, originalSource, relation) || isSimpleTypeRelatedTo(originalSource, originalTarget, relation, reportErrors2 ? reportError : void 0)) { - return -1 /* True */; - } - if (reportErrors2) { - reportErrorResults(originalSource, originalTarget, originalSource, originalTarget, headMessage2); - } - return 0 /* False */; - } - const source2 = getNormalizedType( - originalSource, - /*writing*/ - false - ); - let target2 = getNormalizedType( - originalTarget, - /*writing*/ - true - ); - if (source2 === target2) return -1 /* True */; - if (relation === identityRelation) { - if (source2.flags !== target2.flags) return 0 /* False */; - if (source2.flags & 67358815 /* Singleton */) return -1 /* True */; - traceUnionsOrIntersectionsTooLarge(source2, target2); - return recursiveTypeRelatedTo( - source2, - target2, - /*reportErrors*/ - false, - 0 /* None */, - recursionFlags - ); - } - if (source2.flags & 262144 /* TypeParameter */ && getConstraintOfType(source2) === target2) { - return -1 /* True */; - } - if (source2.flags & 470302716 /* DefinitelyNonNullable */ && target2.flags & 1048576 /* Union */) { - const types = target2.types; - const candidate = types.length === 2 && types[0].flags & 98304 /* Nullable */ ? types[1] : types.length === 3 && types[0].flags & 98304 /* Nullable */ && types[1].flags & 98304 /* Nullable */ ? types[2] : void 0; - if (candidate && !(candidate.flags & 98304 /* Nullable */)) { - target2 = getNormalizedType( - candidate, - /*writing*/ - true - ); - if (source2 === target2) return -1 /* True */; - } - } - if (relation === comparableRelation && !(target2.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target2, source2, relation) || isSimpleTypeRelatedTo(source2, target2, relation, reportErrors2 ? reportError : void 0)) return -1 /* True */; - if (source2.flags & 469499904 /* StructuredOrInstantiable */ || target2.flags & 469499904 /* StructuredOrInstantiable */) { - const isPerformingExcessPropertyChecks = !(intersectionState & 2 /* Target */) && (isObjectLiteralType(source2) && getObjectFlags(source2) & 8192 /* FreshLiteral */); - if (isPerformingExcessPropertyChecks) { - if (hasExcessProperties(source2, target2, reportErrors2)) { - if (reportErrors2) { - reportRelationError(headMessage2, source2, originalTarget.aliasSymbol ? originalTarget : target2); - } - return 0 /* False */; - } - } - const isPerformingCommonPropertyChecks = (relation !== comparableRelation || isUnitType(source2)) && !(intersectionState & 2 /* Target */) && source2.flags & (402784252 /* Primitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && source2 !== globalObjectType && target2.flags & (524288 /* Object */ | 2097152 /* Intersection */) && isWeakType(target2) && (getPropertiesOfType(source2).length > 0 || typeHasCallOrConstructSignatures(source2)); - const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048 /* JsxAttributes */); - if (isPerformingCommonPropertyChecks && !hasCommonProperties(source2, target2, isComparingJsxAttributes)) { - if (reportErrors2) { - const sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source2); - const targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target2); - const calls = getSignaturesOfType(source2, 0 /* Call */); - const constructs = getSignaturesOfType(source2, 1 /* Construct */); - if (calls.length > 0 && isRelatedTo( - getReturnTypeOfSignature(calls[0]), - target2, - 1 /* Source */, - /*reportErrors*/ - false - ) || constructs.length > 0 && isRelatedTo( - getReturnTypeOfSignature(constructs[0]), - target2, - 1 /* Source */, - /*reportErrors*/ - false - )) { - reportError(Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString); - } else { - reportError(Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString); - } - } - return 0 /* False */; - } - traceUnionsOrIntersectionsTooLarge(source2, target2); - const skipCaching = source2.flags & 1048576 /* Union */ && source2.types.length < 4 && !(target2.flags & 1048576 /* Union */) || target2.flags & 1048576 /* Union */ && target2.types.length < 4 && !(source2.flags & 469499904 /* StructuredOrInstantiable */); - const result2 = skipCaching ? unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) : recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags); - if (result2) { - return result2; - } - } - if (reportErrors2) { - reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2); - } - return 0 /* False */; - } - function reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2) { - var _a2, _b; - const sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource); - const targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget); - source2 = originalSource.aliasSymbol || sourceHasBase ? originalSource : source2; - target2 = originalTarget.aliasSymbol || targetHasBase ? originalTarget : target2; - let maybeSuppress = overrideNextErrorInfo > 0; - if (maybeSuppress) { - overrideNextErrorInfo--; - } - if (source2.flags & 524288 /* Object */ && target2.flags & 524288 /* Object */) { - const currentError = errorInfo; - tryElaborateArrayLikeErrors( - source2, - target2, - /*reportErrors*/ - true - ); - if (errorInfo !== currentError) { - maybeSuppress = !!errorInfo; - } - } - if (source2.flags & 524288 /* Object */ && target2.flags & 402784252 /* Primitive */) { - tryElaborateErrorsForPrimitivesAndObjects(source2, target2); - } else if (source2.symbol && source2.flags & 524288 /* Object */ && globalObjectType === source2) { - reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead); - } else if (getObjectFlags(source2) & 2048 /* JsxAttributes */ && target2.flags & 2097152 /* Intersection */) { - const targetTypes = target2.types; - const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode); - const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode); - if (!isErrorType(intrinsicAttributes) && !isErrorType(intrinsicClassAttributes) && (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) { - return; - } - } else { - errorInfo = elaborateNeverIntersection(errorInfo, originalTarget); - } - if (!headMessage2 && maybeSuppress) { - const savedErrorState = captureErrorCalculationState(); - reportRelationError(headMessage2, source2, target2); - let canonical; - if (errorInfo && errorInfo !== savedErrorState.errorInfo) { - canonical = { code: errorInfo.code, messageText: errorInfo.messageText }; - } - resetErrorInfo(savedErrorState); - if (canonical && errorInfo) { - errorInfo.canonicalHead = canonical; - } - lastSkippedInfo = [source2, target2]; - return; - } - reportRelationError(headMessage2, source2, target2); - if (source2.flags & 262144 /* TypeParameter */ && ((_b = (_a2 = source2.symbol) == null ? void 0 : _a2.declarations) == null ? void 0 : _b[0]) && !getConstraintOfType(source2)) { - const syntheticParam = cloneTypeParameter(source2); - syntheticParam.constraint = instantiateType(target2, makeUnaryTypeMapper(source2, syntheticParam)); - if (hasNonCircularBaseConstraint(syntheticParam)) { - const targetConstraintString = typeToString(target2, source2.symbol.declarations[0]); - associateRelatedInfo(createDiagnosticForNode(source2.symbol.declarations[0], Diagnostics.This_type_parameter_might_need_an_extends_0_constraint, targetConstraintString)); - } - } - } - function traceUnionsOrIntersectionsTooLarge(source2, target2) { - if (!tracing) { - return; - } - if (source2.flags & 3145728 /* UnionOrIntersection */ && target2.flags & 3145728 /* UnionOrIntersection */) { - const sourceUnionOrIntersection = source2; - const targetUnionOrIntersection = target2; - if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 32768 /* PrimitiveUnion */) { - return; - } - const sourceSize = sourceUnionOrIntersection.types.length; - const targetSize = targetUnionOrIntersection.types.length; - if (sourceSize * targetSize > 1e6) { - tracing.instant(tracing.Phase.CheckTypes, "traceUnionsOrIntersectionsTooLarge_DepthLimit", { - sourceId: source2.id, - sourceSize, - targetId: target2.id, - targetSize, - pos: errorNode == null ? void 0 : errorNode.pos, - end: errorNode == null ? void 0 : errorNode.end - }); - } - } - } - function getTypeOfPropertyInTypes(types, name) { - const appendPropType = (propTypes, type) => { - var _a2; - type = getApparentType(type); - const prop = type.flags & 3145728 /* UnionOrIntersection */ ? getPropertyOfUnionOrIntersectionType(type, name) : getPropertyOfObjectType(type, name); - const propType = prop && getTypeOfSymbol(prop) || ((_a2 = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a2.type) || undefinedType; - return append(propTypes, propType); - }; - return getUnionType(reduceLeft( - types, - appendPropType, - /*initial*/ - void 0 - ) || emptyArray); - } - function hasExcessProperties(source2, target2, reportErrors2) { - var _a2; - if (!isExcessPropertyCheckTarget(target2) || !noImplicitAny && getObjectFlags(target2) & 4096 /* JSLiteral */) { - return false; - } - const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048 /* JsxAttributes */); - if ((relation === assignableRelation || relation === comparableRelation) && (isTypeSubsetOf(globalObjectType, target2) || !isComparingJsxAttributes && isEmptyObjectType(target2))) { - return false; - } - let reducedTarget = target2; - let checkTypes; - if (target2.flags & 1048576 /* Union */) { - reducedTarget = findMatchingDiscriminantType(source2, target2, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target2); - checkTypes = reducedTarget.flags & 1048576 /* Union */ ? reducedTarget.types : [reducedTarget]; - } - for (const prop of getPropertiesOfType(source2)) { - if (shouldCheckAsExcessProperty(prop, source2.symbol) && !isIgnoredJsxProperty(source2, prop)) { - if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) { - if (reportErrors2) { - const errorTarget = filterType(reducedTarget, isExcessPropertyCheckTarget); - if (!errorNode) return Debug.fail(); - if (isJsxAttributes(errorNode) || isJsxOpeningLikeElement(errorNode) || isJsxOpeningLikeElement(errorNode.parent)) { - if (prop.valueDeclaration && isJsxAttribute(prop.valueDeclaration) && getSourceFileOfNode(errorNode) === getSourceFileOfNode(prop.valueDeclaration.name)) { - errorNode = prop.valueDeclaration.name; - } - const propName = symbolToString(prop); - const suggestionSymbol = getSuggestedSymbolForNonexistentJSXAttribute(propName, errorTarget); - const suggestion = suggestionSymbol ? symbolToString(suggestionSymbol) : void 0; - if (suggestion) { - reportError(Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(errorTarget), suggestion); - } else { - reportError(Diagnostics.Property_0_does_not_exist_on_type_1, propName, typeToString(errorTarget)); - } - } else { - const objectLiteralDeclaration = ((_a2 = source2.symbol) == null ? void 0 : _a2.declarations) && firstOrUndefined(source2.symbol.declarations); - let suggestion; - if (prop.valueDeclaration && findAncestor(prop.valueDeclaration, (d) => d === objectLiteralDeclaration) && getSourceFileOfNode(objectLiteralDeclaration) === getSourceFileOfNode(errorNode)) { - const propDeclaration = prop.valueDeclaration; - Debug.assertNode(propDeclaration, isObjectLiteralElementLike); - const name = propDeclaration.name; - errorNode = name; - if (isIdentifier(name)) { - suggestion = getSuggestionForNonexistentProperty(name, errorTarget); - } - } - if (suggestion !== void 0) { - reportParentSkippedError(Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, symbolToString(prop), typeToString(errorTarget), suggestion); - } else { - reportParentSkippedError(Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(prop), typeToString(errorTarget)); - } - } - } - return true; - } - if (checkTypes && !isRelatedTo(getTypeOfSymbol(prop), getTypeOfPropertyInTypes(checkTypes, prop.escapedName), 3 /* Both */, reportErrors2)) { - if (reportErrors2) { - reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(prop)); - } - return true; - } - } - } - return false; - } - function shouldCheckAsExcessProperty(prop, container) { - return prop.valueDeclaration && container.valueDeclaration && prop.valueDeclaration.parent === container.valueDeclaration; - } - function unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) { - if (source2.flags & 1048576 /* Union */) { - if (target2.flags & 1048576 /* Union */) { - const sourceOrigin = source2.origin; - if (sourceOrigin && sourceOrigin.flags & 2097152 /* Intersection */ && target2.aliasSymbol && contains(sourceOrigin.types, target2)) { - return -1 /* True */; - } - const targetOrigin = target2.origin; - if (targetOrigin && targetOrigin.flags & 1048576 /* Union */ && source2.aliasSymbol && contains(targetOrigin.types, source2)) { - return -1 /* True */; - } - } - return relation === comparableRelation ? someTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState) : eachTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState); - } - if (target2.flags & 1048576 /* Union */) { - return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source2), target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */) && !(target2.flags & 402784252 /* Primitive */), intersectionState); - } - if (target2.flags & 2097152 /* Intersection */) { - return typeRelatedToEachType(source2, target2, reportErrors2, 2 /* Target */); - } - if (relation === comparableRelation && target2.flags & 402784252 /* Primitive */) { - const constraints = sameMap(source2.types, (t) => t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t); - if (constraints !== source2.types) { - source2 = getIntersectionType(constraints); - if (source2.flags & 131072 /* Never */) { - return 0 /* False */; - } - if (!(source2.flags & 2097152 /* Intersection */)) { - return isRelatedTo( - source2, - target2, - 1 /* Source */, - /*reportErrors*/ - false - ) || isRelatedTo( - target2, - source2, - 1 /* Source */, - /*reportErrors*/ - false - ); - } - } - } - return someTypeRelatedToType( - source2, - target2, - /*reportErrors*/ - false, - 1 /* Source */ - ); - } - function eachTypeRelatedToSomeType(source2, target2) { - let result2 = -1 /* True */; - const sourceTypes = source2.types; - for (const sourceType of sourceTypes) { - const related = typeRelatedToSomeType( - sourceType, - target2, - /*reportErrors*/ - false, - 0 /* None */ - ); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function typeRelatedToSomeType(source2, target2, reportErrors2, intersectionState) { - const targetTypes = target2.types; - if (target2.flags & 1048576 /* Union */) { - if (containsType(targetTypes, source2)) { - return -1 /* True */; - } - if (relation !== comparableRelation && getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) { - const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType; - const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0; - return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */; - } - const match = getMatchingUnionConstituentForType(target2, source2); - if (match) { - const related = isRelatedTo( - source2, - match, - 2 /* Target */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - ); - if (related) { - return related; - } - } - } - for (const type of targetTypes) { - const related = isRelatedTo( - source2, - type, - 2 /* Target */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - ); - if (related) { - return related; - } - } - if (reportErrors2) { - const bestMatchingType = getBestMatchingType(source2, target2, isRelatedTo); - if (bestMatchingType) { - isRelatedTo( - source2, - bestMatchingType, - 2 /* Target */, - /*reportErrors*/ - true, - /*headMessage*/ - void 0, - intersectionState - ); - } - } - return 0 /* False */; - } - function typeRelatedToEachType(source2, target2, reportErrors2, intersectionState) { - let result2 = -1 /* True */; - const targetTypes = target2.types; - for (const targetType of targetTypes) { - const related = isRelatedTo( - source2, - targetType, - 2 /* Target */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function someTypeRelatedToType(source2, target2, reportErrors2, intersectionState) { - const sourceTypes = source2.types; - if (source2.flags & 1048576 /* Union */ && containsType(sourceTypes, target2)) { - return -1 /* True */; - } - const len = sourceTypes.length; - for (let i = 0; i < len; i++) { - const related = isRelatedTo( - sourceTypes[i], - target2, - 1 /* Source */, - reportErrors2 && i === len - 1, - /*headMessage*/ - void 0, - intersectionState - ); - if (related) { - return related; - } - } - return 0 /* False */; - } - function getUndefinedStrippedTargetIfNeeded(source2, target2) { - if (source2.flags & 1048576 /* Union */ && target2.flags & 1048576 /* Union */ && !(source2.types[0].flags & 32768 /* Undefined */) && target2.types[0].flags & 32768 /* Undefined */) { - return extractTypesOfKind(target2, ~32768 /* Undefined */); - } - return target2; - } - function eachTypeRelatedToType(source2, target2, reportErrors2, intersectionState) { - let result2 = -1 /* True */; - const sourceTypes = source2.types; - const undefinedStrippedTarget = getUndefinedStrippedTargetIfNeeded(source2, target2); - for (let i = 0; i < sourceTypes.length; i++) { - const sourceType = sourceTypes[i]; - if (undefinedStrippedTarget.flags & 1048576 /* Union */ && sourceTypes.length >= undefinedStrippedTarget.types.length && sourceTypes.length % undefinedStrippedTarget.types.length === 0) { - const related2 = isRelatedTo( - sourceType, - undefinedStrippedTarget.types[i % undefinedStrippedTarget.types.length], - 3 /* Both */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - ); - if (related2) { - result2 &= related2; - continue; - } - } - const related = isRelatedTo( - sourceType, - target2, - 1 /* Source */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function typeArgumentsRelatedTo(sources = emptyArray, targets = emptyArray, variances = emptyArray, reportErrors2, intersectionState) { - if (sources.length !== targets.length && relation === identityRelation) { - return 0 /* False */; - } - const length2 = sources.length <= targets.length ? sources.length : targets.length; - let result2 = -1 /* True */; - for (let i = 0; i < length2; i++) { - const varianceFlags = i < variances.length ? variances[i] : 1 /* Covariant */; - const variance = varianceFlags & 7 /* VarianceMask */; - if (variance !== 4 /* Independent */) { - const s = sources[i]; - const t = targets[i]; - let related = -1 /* True */; - if (varianceFlags & 8 /* Unmeasurable */) { - related = relation === identityRelation ? isRelatedTo( - s, - t, - 3 /* Both */, - /*reportErrors*/ - false - ) : compareTypesIdentical(s, t); - } else if (variance === 1 /* Covariant */) { - related = isRelatedTo( - s, - t, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - } else if (variance === 2 /* Contravariant */) { - related = isRelatedTo( - t, - s, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - } else if (variance === 3 /* Bivariant */) { - related = isRelatedTo( - t, - s, - 3 /* Both */, - /*reportErrors*/ - false - ); - if (!related) { - related = isRelatedTo( - s, - t, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - } - } else { - related = isRelatedTo( - s, - t, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (related) { - related &= isRelatedTo( - t, - s, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - } - } - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - } - return result2; - } - function recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags) { - var _a2, _b, _c; - if (overflow) { - return 0 /* False */; - } - const id = getRelationKey( - source2, - target2, - intersectionState, - relation, - /*ignoreConstraints*/ - false - ); - const entry = relation.get(id); - if (entry !== void 0) { - if (reportErrors2 && entry & 2 /* Failed */ && !(entry & 96 /* Overflow */)) { - } else { - if (outofbandVarianceMarkerHandler) { - const saved = entry & 24 /* ReportsMask */; - if (saved & 8 /* ReportsUnmeasurable */) { - instantiateType(source2, reportUnmeasurableMapper); - } - if (saved & 16 /* ReportsUnreliable */) { - instantiateType(source2, reportUnreliableMapper); - } - } - if (reportErrors2 && entry & 96 /* Overflow */) { - const message = entry & 32 /* ComplexityOverflow */ ? Diagnostics.Excessive_complexity_comparing_types_0_and_1 : Diagnostics.Excessive_stack_depth_comparing_types_0_and_1; - reportError(message, typeToString(source2), typeToString(target2)); - overrideNextErrorInfo++; - } - return entry & 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */; - } - } - if (relationCount <= 0) { - overflow = true; - return 0 /* False */; - } - if (!maybeKeys) { - maybeKeys = []; - maybeKeysSet = /* @__PURE__ */ new Set(); - sourceStack = []; - targetStack = []; - } else { - if (maybeKeysSet.has(id)) { - return 3 /* Maybe */; - } - const broadestEquivalentId = id.startsWith("*") ? getRelationKey( - source2, - target2, - intersectionState, - relation, - /*ignoreConstraints*/ - true - ) : void 0; - if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { - return 3 /* Maybe */; - } - if (sourceDepth === 100 || targetDepth === 100) { - overflow = true; - return 0 /* False */; - } - } - const maybeStart = maybeCount; - maybeKeys[maybeCount] = id; - maybeKeysSet.add(id); - maybeCount++; - const saveExpandingFlags = expandingFlags; - if (recursionFlags & 1 /* Source */) { - sourceStack[sourceDepth] = source2; - sourceDepth++; - if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth)) expandingFlags |= 1 /* Source */; - } - if (recursionFlags & 2 /* Target */) { - targetStack[targetDepth] = target2; - targetDepth++; - if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth)) expandingFlags |= 2 /* Target */; - } - let originalHandler; - let propagatingVarianceFlags = 0; - if (outofbandVarianceMarkerHandler) { - originalHandler = outofbandVarianceMarkerHandler; - outofbandVarianceMarkerHandler = (onlyUnreliable) => { - propagatingVarianceFlags |= onlyUnreliable ? 16 /* ReportsUnreliable */ : 8 /* ReportsUnmeasurable */; - return originalHandler(onlyUnreliable); - }; - } - let result2; - if (expandingFlags === 3 /* Both */) { - (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "recursiveTypeRelatedTo_DepthLimit", { - sourceId: source2.id, - sourceIdStack: sourceStack.map((t) => t.id), - targetId: target2.id, - targetIdStack: targetStack.map((t) => t.id), - depth: sourceDepth, - targetDepth - }); - result2 = 3 /* Maybe */; - } else { - (_b = tracing) == null ? void 0 : _b.push(tracing.Phase.CheckTypes, "structuredTypeRelatedTo", { sourceId: source2.id, targetId: target2.id }); - result2 = structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState); - (_c = tracing) == null ? void 0 : _c.pop(); - } - if (outofbandVarianceMarkerHandler) { - outofbandVarianceMarkerHandler = originalHandler; - } - if (recursionFlags & 1 /* Source */) { - sourceDepth--; - } - if (recursionFlags & 2 /* Target */) { - targetDepth--; - } - expandingFlags = saveExpandingFlags; - if (result2) { - if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { - if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { - resetMaybeStack( - /*markAllAsSucceeded*/ - true - ); - } else { - resetMaybeStack( - /*markAllAsSucceeded*/ - false - ); - } - } - } else { - relation.set(id, 2 /* Failed */ | propagatingVarianceFlags); - relationCount--; - resetMaybeStack( - /*markAllAsSucceeded*/ - false - ); - } - return result2; - function resetMaybeStack(markAllAsSucceeded) { - for (let i = maybeStart; i < maybeCount; i++) { - maybeKeysSet.delete(maybeKeys[i]); - if (markAllAsSucceeded) { - relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); - relationCount--; - } - } - maybeCount = maybeStart; - } - } - function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { - const saveErrorInfo = captureErrorCalculationState(); - let result2 = structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo); - if (relation !== identityRelation) { - if (!result2 && (source2.flags & 2097152 /* Intersection */ || source2.flags & 262144 /* TypeParameter */ && target2.flags & 1048576 /* Union */)) { - const constraint = getEffectiveConstraintOfIntersection(source2.flags & 2097152 /* Intersection */ ? source2.types : [source2], !!(target2.flags & 1048576 /* Union */)); - if (constraint && everyType(constraint, (c) => c !== source2)) { - result2 = isRelatedTo( - constraint, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - ); - } - } - if (result2 && !(intersectionState & 2 /* Target */) && target2.flags & 2097152 /* Intersection */ && !isGenericObjectType(target2) && source2.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { - result2 &= propertiesRelatedTo( - source2, - target2, - reportErrors2, - /*excludedProperties*/ - void 0, - /*optionalsOnly*/ - false, - 0 /* None */ - ); - if (result2 && isObjectLiteralType(source2) && getObjectFlags(source2) & 8192 /* FreshLiteral */) { - result2 &= indexSignaturesRelatedTo( - source2, - target2, - /*sourceIsPrimitive*/ - false, - reportErrors2, - 0 /* None */ - ); - } - } else if (result2 && isNonGenericObjectType(target2) && !isArrayOrTupleType(target2) && source2.flags & 2097152 /* Intersection */ && getApparentType(source2).flags & 3670016 /* StructuredType */ && !some(source2.types, (t) => t === target2 || !!(getObjectFlags(t) & 262144 /* NonInferrableType */))) { - result2 &= propertiesRelatedTo( - source2, - target2, - reportErrors2, - /*excludedProperties*/ - void 0, - /*optionalsOnly*/ - true, - intersectionState - ); - } - } - if (result2) { - resetErrorInfo(saveErrorInfo); - } - return result2; - } - function getApparentMappedTypeKeys(nameType, targetType) { - const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType)); - const mappedKeys = []; - forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType( - modifiersType, - 8576 /* StringOrNumberLiteralOrUnique */, - /*stringsOnly*/ - false, - (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t))) - ); - return getUnionType(mappedKeys); - } - function structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo) { - let result2; - let originalErrorInfo; - let varianceCheckFailed = false; - let sourceFlags = source2.flags; - const targetFlags = target2.flags; - if (relation === identityRelation) { - if (sourceFlags & 3145728 /* UnionOrIntersection */) { - let result3 = eachTypeRelatedToSomeType(source2, target2); - if (result3) { - result3 &= eachTypeRelatedToSomeType(target2, source2); - } - return result3; - } - if (sourceFlags & 4194304 /* Index */) { - return isRelatedTo( - source2.type, - target2.type, - 3 /* Both */, - /*reportErrors*/ - false - ); - } - if (sourceFlags & 8388608 /* IndexedAccess */) { - if (result2 = isRelatedTo( - source2.objectType, - target2.objectType, - 3 /* Both */, - /*reportErrors*/ - false - )) { - if (result2 &= isRelatedTo( - source2.indexType, - target2.indexType, - 3 /* Both */, - /*reportErrors*/ - false - )) { - return result2; - } - } - } - if (sourceFlags & 16777216 /* Conditional */) { - if (source2.root.isDistributive === target2.root.isDistributive) { - if (result2 = isRelatedTo( - source2.checkType, - target2.checkType, - 3 /* Both */, - /*reportErrors*/ - false - )) { - if (result2 &= isRelatedTo( - source2.extendsType, - target2.extendsType, - 3 /* Both */, - /*reportErrors*/ - false - )) { - if (result2 &= isRelatedTo( - getTrueTypeFromConditionalType(source2), - getTrueTypeFromConditionalType(target2), - 3 /* Both */, - /*reportErrors*/ - false - )) { - if (result2 &= isRelatedTo( - getFalseTypeFromConditionalType(source2), - getFalseTypeFromConditionalType(target2), - 3 /* Both */, - /*reportErrors*/ - false - )) { - return result2; - } - } - } - } - } - } - if (sourceFlags & 33554432 /* Substitution */) { - if (result2 = isRelatedTo( - source2.baseType, - target2.baseType, - 3 /* Both */, - /*reportErrors*/ - false - )) { - if (result2 &= isRelatedTo( - source2.constraint, - target2.constraint, - 3 /* Both */, - /*reportErrors*/ - false - )) { - return result2; - } - } - } - if (!(sourceFlags & 524288 /* Object */)) { - return 0 /* False */; - } - } else if (sourceFlags & 3145728 /* UnionOrIntersection */ || targetFlags & 3145728 /* UnionOrIntersection */) { - if (result2 = unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState)) { - return result2; - } - if (!(sourceFlags & 465829888 /* Instantiable */ || sourceFlags & 524288 /* Object */ && targetFlags & 1048576 /* Union */ || sourceFlags & 2097152 /* Intersection */ && targetFlags & (524288 /* Object */ | 1048576 /* Union */ | 465829888 /* Instantiable */))) { - return 0 /* False */; - } - } - if (sourceFlags & (524288 /* Object */ | 16777216 /* Conditional */) && source2.aliasSymbol && source2.aliasTypeArguments && source2.aliasSymbol === target2.aliasSymbol && !(isMarkerType(source2) || isMarkerType(target2))) { - const variances = getAliasVariances(source2.aliasSymbol); - if (variances === emptyArray) { - return 1 /* Unknown */; - } - const params = getSymbolLinks(source2.aliasSymbol).typeParameters; - const minParams = getMinTypeArgumentCount(params); - const sourceTypes = fillMissingTypeArguments(source2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration)); - const targetTypes = fillMissingTypeArguments(target2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration)); - const varianceResult = relateVariances(sourceTypes, targetTypes, variances, intersectionState); - if (varianceResult !== void 0) { - return varianceResult; - } - } - if (isSingleElementGenericTupleType(source2) && !source2.target.readonly && (result2 = isRelatedTo(getTypeArguments(source2)[0], target2, 1 /* Source */)) || isSingleElementGenericTupleType(target2) && (target2.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source2) || source2)) && (result2 = isRelatedTo(source2, getTypeArguments(target2)[0], 2 /* Target */))) { - return result2; - } - if (targetFlags & 262144 /* TypeParameter */) { - if (getObjectFlags(source2) & 32 /* Mapped */ && !source2.declaration.nameType && isRelatedTo(getIndexType(target2), getConstraintTypeFromMappedType(source2), 3 /* Both */)) { - if (!(getMappedTypeModifiers(source2) & 4 /* IncludeOptional */)) { - const templateType = getTemplateTypeFromMappedType(source2); - const indexedAccessType = getIndexedAccessType(target2, getTypeParameterFromMappedType(source2)); - if (result2 = isRelatedTo(templateType, indexedAccessType, 3 /* Both */, reportErrors2)) { - return result2; - } - } - } - if (relation === comparableRelation && sourceFlags & 262144 /* TypeParameter */) { - let constraint = getConstraintOfTypeParameter(source2); - if (constraint) { - while (constraint && someType(constraint, (c) => !!(c.flags & 262144 /* TypeParameter */))) { - if (result2 = isRelatedTo( - constraint, - target2, - 1 /* Source */, - /*reportErrors*/ - false - )) { - return result2; - } - constraint = getConstraintOfTypeParameter(constraint); - } - } - return 0 /* False */; - } - } else if (targetFlags & 4194304 /* Index */) { - const targetType = target2.type; - if (sourceFlags & 4194304 /* Index */) { - if (result2 = isRelatedTo( - targetType, - source2.type, - 3 /* Both */, - /*reportErrors*/ - false - )) { - return result2; - } - } - if (isTupleType(targetType)) { - if (result2 = isRelatedTo(source2, getKnownKeysOfTupleType(targetType), 2 /* Target */, reportErrors2)) { - return result2; - } - } else { - const constraint = getSimplifiedTypeOrConstraint(targetType); - if (constraint) { - if (isRelatedTo(source2, getIndexType(constraint, target2.indexFlags | 4 /* NoReducibleCheck */), 2 /* Target */, reportErrors2) === -1 /* True */) { - return -1 /* True */; - } - } else if (isGenericMappedType(targetType)) { - const nameType = getNameTypeFromMappedType(targetType); - const constraintType = getConstraintTypeFromMappedType(targetType); - let targetKeys; - if (nameType && isMappedTypeWithKeyofConstraintDeclaration(targetType)) { - const mappedKeys = getApparentMappedTypeKeys(nameType, targetType); - targetKeys = getUnionType([mappedKeys, nameType]); - } else { - targetKeys = nameType || constraintType; - } - if (isRelatedTo(source2, targetKeys, 2 /* Target */, reportErrors2) === -1 /* True */) { - return -1 /* True */; - } - } - } - } else if (targetFlags & 8388608 /* IndexedAccess */) { - if (sourceFlags & 8388608 /* IndexedAccess */) { - if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) { - result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2); - } - if (result2) { - return result2; - } - if (reportErrors2) { - originalErrorInfo = errorInfo; - } - } - if (relation === assignableRelation || relation === comparableRelation) { - const objectType = target2.objectType; - const indexType = target2.indexType; - const baseObjectType = getBaseConstraintOfType(objectType) || objectType; - const baseIndexType = getBaseConstraintOfType(indexType) || indexType; - if (!isGenericObjectType(baseObjectType) && !isGenericIndexType(baseIndexType)) { - const accessFlags = 4 /* Writing */ | (baseObjectType !== objectType ? 2 /* NoIndexSignatures */ : 0); - const constraint = getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, accessFlags); - if (constraint) { - if (reportErrors2 && originalErrorInfo) { - resetErrorInfo(saveErrorInfo); - } - if (result2 = isRelatedTo( - source2, - constraint, - 2 /* Target */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - if (reportErrors2 && originalErrorInfo && errorInfo) { - errorInfo = countMessageChainBreadth([originalErrorInfo]) <= countMessageChainBreadth([errorInfo]) ? originalErrorInfo : errorInfo; - } - } - } - } - if (reportErrors2) { - originalErrorInfo = void 0; - } - } else if (isGenericMappedType(target2) && relation !== identityRelation) { - const keysRemapped = !!target2.declaration.nameType; - const templateType = getTemplateTypeFromMappedType(target2); - const modifiers = getMappedTypeModifiers(target2); - if (!(modifiers & 8 /* ExcludeOptional */)) { - if (!keysRemapped && templateType.flags & 8388608 /* IndexedAccess */ && templateType.objectType === source2 && templateType.indexType === getTypeParameterFromMappedType(target2)) { - return -1 /* True */; - } - if (!isGenericMappedType(source2)) { - const targetKeys = keysRemapped ? getNameTypeFromMappedType(target2) : getConstraintTypeFromMappedType(target2); - const sourceKeys = getIndexType(source2, 2 /* NoIndexSignatures */); - const includeOptional = modifiers & 4 /* IncludeOptional */; - const filteredByApplicability = includeOptional ? intersectTypes(targetKeys, sourceKeys) : void 0; - if (includeOptional ? !(filteredByApplicability.flags & 131072 /* Never */) : isRelatedTo(targetKeys, sourceKeys, 3 /* Both */)) { - const templateType2 = getTemplateTypeFromMappedType(target2); - const typeParameter = getTypeParameterFromMappedType(target2); - const nonNullComponent = extractTypesOfKind(templateType2, ~98304 /* Nullable */); - if (!keysRemapped && nonNullComponent.flags & 8388608 /* IndexedAccess */ && nonNullComponent.indexType === typeParameter) { - if (result2 = isRelatedTo(source2, nonNullComponent.objectType, 2 /* Target */, reportErrors2)) { - return result2; - } - } else { - const indexingType = keysRemapped ? filteredByApplicability || targetKeys : filteredByApplicability ? getIntersectionType([filteredByApplicability, typeParameter]) : typeParameter; - const indexedAccessType = getIndexedAccessType(source2, indexingType); - if (result2 = isRelatedTo(indexedAccessType, templateType2, 3 /* Both */, reportErrors2)) { - return result2; - } - } - } - originalErrorInfo = errorInfo; - resetErrorInfo(saveErrorInfo); - } - } - } else if (targetFlags & 16777216 /* Conditional */) { - if (isDeeplyNestedType(target2, targetStack, targetDepth, 10)) { - return 3 /* Maybe */; - } - const c = target2; - if (!c.root.inferTypeParameters && !isDistributionDependent(c.root) && !(source2.flags & 16777216 /* Conditional */ && source2.root === c.root)) { - const skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType)); - const skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType)); - if (result2 = skipTrue ? -1 /* True */ : isRelatedTo( - source2, - getTrueTypeFromConditionalType(c), - 2 /* Target */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - result2 &= skipFalse ? -1 /* True */ : isRelatedTo( - source2, - getFalseTypeFromConditionalType(c), - 2 /* Target */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - ); - if (result2) { - return result2; - } - } - } - } else if (targetFlags & 134217728 /* TemplateLiteral */) { - if (sourceFlags & 134217728 /* TemplateLiteral */) { - if (relation === comparableRelation) { - return templateLiteralTypesDefinitelyUnrelated(source2, target2) ? 0 /* False */ : -1 /* True */; - } - instantiateType(source2, reportUnreliableMapper); - } - if (isTypeMatchedByTemplateLiteralType(source2, target2)) { - return -1 /* True */; - } - } else if (target2.flags & 268435456 /* StringMapping */) { - if (!(source2.flags & 268435456 /* StringMapping */)) { - if (isMemberOfStringMapping(source2, target2)) { - return -1 /* True */; - } - } - } - if (sourceFlags & 8650752 /* TypeVariable */) { - if (!(sourceFlags & 8388608 /* IndexedAccess */ && targetFlags & 8388608 /* IndexedAccess */)) { - const constraint = getConstraintOfType(source2) || unknownType; - if (result2 = isRelatedTo( - constraint, - target2, - 1 /* Source */, - /*reportErrors*/ - false, - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } else if (result2 = isRelatedTo( - getTypeWithThisArgument(constraint, source2), - target2, - 1 /* Source */, - reportErrors2 && constraint !== unknownType && !(targetFlags & sourceFlags & 262144 /* TypeParameter */), - /*headMessage*/ - void 0, - intersectionState - )) { - return result2; - } - if (isMappedTypeGenericIndexedAccess(source2)) { - const indexConstraint = getConstraintOfType(source2.indexType); - if (indexConstraint) { - if (result2 = isRelatedTo(getIndexedAccessType(source2.objectType, indexConstraint), target2, 1 /* Source */, reportErrors2)) { - return result2; - } - } - } - } - } else if (sourceFlags & 4194304 /* Index */) { - const isDeferredMappedIndex = shouldDeferIndexType(source2.type, source2.indexFlags) && getObjectFlags(source2.type) & 32 /* Mapped */; - if (result2 = isRelatedTo(stringNumberSymbolType, target2, 1 /* Source */, reportErrors2 && !isDeferredMappedIndex)) { - return result2; - } - if (isDeferredMappedIndex) { - const mappedType = source2.type; - const nameType = getNameTypeFromMappedType(mappedType); - const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType); - if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) { - return result2; - } - } - } else if (sourceFlags & 134217728 /* TemplateLiteral */ && !(targetFlags & 524288 /* Object */)) { - if (!(targetFlags & 134217728 /* TemplateLiteral */)) { - const constraint = getBaseConstraintOfType(source2); - if (constraint && constraint !== source2 && (result2 = isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2))) { - return result2; - } - } - } else if (sourceFlags & 268435456 /* StringMapping */) { - if (targetFlags & 268435456 /* StringMapping */) { - if (source2.symbol !== target2.symbol) { - return 0 /* False */; - } - if (result2 = isRelatedTo(source2.type, target2.type, 3 /* Both */, reportErrors2)) { - return result2; - } - } else { - const constraint = getBaseConstraintOfType(source2); - if (constraint && (result2 = isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2))) { - return result2; - } - } - } else if (sourceFlags & 16777216 /* Conditional */) { - if (isDeeplyNestedType(source2, sourceStack, sourceDepth, 10)) { - return 3 /* Maybe */; - } - if (targetFlags & 16777216 /* Conditional */) { - const sourceParams = source2.root.inferTypeParameters; - let sourceExtends = source2.extendsType; - let mapper; - if (sourceParams) { - const ctx = createInferenceContext( - sourceParams, - /*signature*/ - void 0, - 0 /* None */, - isRelatedToWorker - ); - inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */); - sourceExtends = instantiateType(sourceExtends, ctx.mapper); - mapper = ctx.mapper; - } - if (isTypeIdenticalTo(sourceExtends, target2.extendsType) && (isRelatedTo(source2.checkType, target2.checkType, 3 /* Both */) || isRelatedTo(target2.checkType, source2.checkType, 3 /* Both */))) { - if (result2 = isRelatedTo(instantiateType(getTrueTypeFromConditionalType(source2), mapper), getTrueTypeFromConditionalType(target2), 3 /* Both */, reportErrors2)) { - result2 &= isRelatedTo(getFalseTypeFromConditionalType(source2), getFalseTypeFromConditionalType(target2), 3 /* Both */, reportErrors2); - } - if (result2) { - return result2; - } - } - } - const defaultConstraint = getDefaultConstraintOfConditionalType(source2); - if (defaultConstraint) { - if (result2 = isRelatedTo(defaultConstraint, target2, 1 /* Source */, reportErrors2)) { - return result2; - } - } - const distributiveConstraint = !(targetFlags & 16777216 /* Conditional */) && hasNonCircularBaseConstraint(source2) ? getConstraintOfDistributiveConditionalType(source2) : void 0; - if (distributiveConstraint) { - resetErrorInfo(saveErrorInfo); - if (result2 = isRelatedTo(distributiveConstraint, target2, 1 /* Source */, reportErrors2)) { - return result2; - } - } - } else { - if (relation !== subtypeRelation && relation !== strictSubtypeRelation && isPartialMappedType(target2) && isEmptyObjectType(source2)) { - return -1 /* True */; - } - if (isGenericMappedType(target2)) { - if (isGenericMappedType(source2)) { - if (result2 = mappedTypeRelatedTo(source2, target2, reportErrors2)) { - return result2; - } - } - return 0 /* False */; - } - const sourceIsPrimitive = !!(sourceFlags & 402784252 /* Primitive */); - if (relation !== identityRelation) { - source2 = getApparentType(source2); - sourceFlags = source2.flags; - } else if (isGenericMappedType(source2)) { - return 0 /* False */; - } - if (getObjectFlags(source2) & 4 /* Reference */ && getObjectFlags(target2) & 4 /* Reference */ && source2.target === target2.target && !isTupleType(source2) && !(isMarkerType(source2) || isMarkerType(target2))) { - if (isEmptyArrayLiteralType(source2)) { - return -1 /* True */; - } - const variances = getVariances(source2.target); - if (variances === emptyArray) { - return 1 /* Unknown */; - } - const varianceResult = relateVariances(getTypeArguments(source2), getTypeArguments(target2), variances, intersectionState); - if (varianceResult !== void 0) { - return varianceResult; - } - } else if (isReadonlyArrayType(target2) ? everyType(source2, isArrayOrTupleType) : isArrayType(target2) && everyType(source2, (t) => isTupleType(t) && !t.target.readonly)) { - if (relation !== identityRelation) { - return isRelatedTo(getIndexTypeOfType(source2, numberType) || anyType, getIndexTypeOfType(target2, numberType) || anyType, 3 /* Both */, reportErrors2); - } else { - return 0 /* False */; - } - } else if (isGenericTupleType(source2) && isTupleType(target2) && !isGenericTupleType(target2)) { - const constraint = getBaseConstraintOrType(source2); - if (constraint !== source2) { - return isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2); - } - } else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target2) && getObjectFlags(target2) & 8192 /* FreshLiteral */ && !isEmptyObjectType(source2)) { - return 0 /* False */; - } - if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 524288 /* Object */) { - const reportStructuralErrors = reportErrors2 && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive; - result2 = propertiesRelatedTo( - source2, - target2, - reportStructuralErrors, - /*excludedProperties*/ - void 0, - /*optionalsOnly*/ - false, - intersectionState - ); - if (result2) { - result2 &= signaturesRelatedTo(source2, target2, 0 /* Call */, reportStructuralErrors, intersectionState); - if (result2) { - result2 &= signaturesRelatedTo(source2, target2, 1 /* Construct */, reportStructuralErrors, intersectionState); - if (result2) { - result2 &= indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportStructuralErrors, intersectionState); - } - } - } - if (varianceCheckFailed && result2) { - errorInfo = originalErrorInfo || errorInfo || saveErrorInfo.errorInfo; - } else if (result2) { - return result2; - } - } - if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) { - const objectOnlyTarget = extractTypesOfKind(target2, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */); - if (objectOnlyTarget.flags & 1048576 /* Union */) { - const result3 = typeRelatedToDiscriminatedType(source2, objectOnlyTarget); - if (result3) { - return result3; - } - } - } - } - return 0 /* False */; - function countMessageChainBreadth(info) { - if (!info) return 0; - return reduceLeft(info, (value, chain) => value + 1 + countMessageChainBreadth(chain.next), 0); - } - function relateVariances(sourceTypeArguments, targetTypeArguments, variances, intersectionState2) { - if (result2 = typeArgumentsRelatedTo(sourceTypeArguments, targetTypeArguments, variances, reportErrors2, intersectionState2)) { - return result2; - } - if (some(variances, (v) => !!(v & 24 /* AllowsStructuralFallback */))) { - originalErrorInfo = void 0; - resetErrorInfo(saveErrorInfo); - return void 0; - } - const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances); - varianceCheckFailed = !allowStructuralFallback; - if (variances !== emptyArray && !allowStructuralFallback) { - if (varianceCheckFailed && !(reportErrors2 && some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */))) { - return 0 /* False */; - } - originalErrorInfo = errorInfo; - resetErrorInfo(saveErrorInfo); - } - } - } - function mappedTypeRelatedTo(source2, target2, reportErrors2) { - const modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source2) === getMappedTypeModifiers(target2) : getCombinedMappedTypeOptionality(source2) <= getCombinedMappedTypeOptionality(target2)); - if (modifiersRelated) { - let result2; - const targetConstraint = getConstraintTypeFromMappedType(target2); - const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source2), getCombinedMappedTypeOptionality(source2) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper); - if (result2 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors2)) { - const mapper = createTypeMapper([getTypeParameterFromMappedType(source2)], [getTypeParameterFromMappedType(target2)]); - if (instantiateType(getNameTypeFromMappedType(source2), mapper) === instantiateType(getNameTypeFromMappedType(target2), mapper)) { - return result2 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source2), mapper), getTemplateTypeFromMappedType(target2), 3 /* Both */, reportErrors2); - } - } - } - return 0 /* False */; - } - function typeRelatedToDiscriminatedType(source2, target2) { - var _a2; - const sourceProperties = getPropertiesOfType(source2); - const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target2); - if (!sourcePropertiesFiltered) return 0 /* False */; - let numCombinations = 1; - for (const sourceProperty of sourcePropertiesFiltered) { - numCombinations *= countTypes(getNonMissingTypeOfSymbol(sourceProperty)); - if (numCombinations > 25) { - (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "typeRelatedToDiscriminatedType_DepthLimit", { sourceId: source2.id, targetId: target2.id, numCombinations }); - return 0 /* False */; - } - } - const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length); - const excludedProperties = /* @__PURE__ */ new Set(); - for (let i = 0; i < sourcePropertiesFiltered.length; i++) { - const sourceProperty = sourcePropertiesFiltered[i]; - const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty); - sourceDiscriminantTypes[i] = sourcePropertyType.flags & 1048576 /* Union */ ? sourcePropertyType.types : [sourcePropertyType]; - excludedProperties.add(sourceProperty.escapedName); - } - const discriminantCombinations = cartesianProduct(sourceDiscriminantTypes); - const matchingTypes = []; - for (const combination of discriminantCombinations) { - let hasMatch = false; - outer: - for (const type of target2.types) { - for (let i = 0; i < sourcePropertiesFiltered.length; i++) { - const sourceProperty = sourcePropertiesFiltered[i]; - const targetProperty = getPropertyOfType(type, sourceProperty.escapedName); - if (!targetProperty) continue outer; - if (sourceProperty === targetProperty) continue; - const related = propertyRelatedTo( - source2, - target2, - sourceProperty, - targetProperty, - (_) => combination[i], - /*reportErrors*/ - false, - 0 /* None */, - /*skipOptional*/ - strictNullChecks || relation === comparableRelation - ); - if (!related) { - continue outer; - } - } - pushIfUnique(matchingTypes, type, equateValues); - hasMatch = true; - } - if (!hasMatch) { - return 0 /* False */; - } - } - let result2 = -1 /* True */; - for (const type of matchingTypes) { - result2 &= propertiesRelatedTo( - source2, - type, - /*reportErrors*/ - false, - excludedProperties, - /*optionalsOnly*/ - false, - 0 /* None */ - ); - if (result2) { - result2 &= signaturesRelatedTo( - source2, - type, - 0 /* Call */, - /*reportErrors*/ - false, - 0 /* None */ - ); - if (result2) { - result2 &= signaturesRelatedTo( - source2, - type, - 1 /* Construct */, - /*reportErrors*/ - false, - 0 /* None */ - ); - if (result2 && !(isTupleType(source2) && isTupleType(type))) { - result2 &= indexSignaturesRelatedTo( - source2, - type, - /*sourceIsPrimitive*/ - false, - /*reportErrors*/ - false, - 0 /* None */ - ); - } - } - } - if (!result2) { - return result2; - } - } - return result2; - } - function excludeProperties(properties, excludedProperties) { - if (!excludedProperties || properties.length === 0) return properties; - let result2; - for (let i = 0; i < properties.length; i++) { - if (!excludedProperties.has(properties[i].escapedName)) { - if (result2) { - result2.push(properties[i]); - } - } else if (!result2) { - result2 = properties.slice(0, i); - } - } - return result2 || properties; - } - function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState) { - const targetIsOptional = strictNullChecks && !!(getCheckFlags(targetProp) & 48 /* Partial */); - const effectiveTarget = addOptionality( - getNonMissingTypeOfSymbol(targetProp), - /*isProperty*/ - false, - targetIsOptional - ); - const effectiveSource = getTypeOfSourceProperty(sourceProp); - return isRelatedTo( - effectiveSource, - effectiveTarget, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - } - function propertyRelatedTo(source2, target2, sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState, skipOptional) { - const sourcePropFlags = getDeclarationModifierFlagsFromSymbol(sourceProp); - const targetPropFlags = getDeclarationModifierFlagsFromSymbol(targetProp); - if (sourcePropFlags & 2 /* Private */ || targetPropFlags & 2 /* Private */) { - if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) { - if (reportErrors2) { - if (sourcePropFlags & 2 /* Private */ && targetPropFlags & 2 /* Private */) { - reportError(Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp)); - } else { - reportError(Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourcePropFlags & 2 /* Private */ ? source2 : target2), typeToString(sourcePropFlags & 2 /* Private */ ? target2 : source2)); - } - } - return 0 /* False */; - } - } else if (targetPropFlags & 4 /* Protected */) { - if (!isValidOverrideOf(sourceProp, targetProp)) { - if (reportErrors2) { - reportError(Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(getDeclaringClass(sourceProp) || source2), typeToString(getDeclaringClass(targetProp) || target2)); - } - return 0 /* False */; - } - } else if (sourcePropFlags & 4 /* Protected */) { - if (reportErrors2) { - reportError(Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2)); - } - return 0 /* False */; - } - if (relation === strictSubtypeRelation && isReadonlySymbol(sourceProp) && !isReadonlySymbol(targetProp)) { - return 0 /* False */; - } - const related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState); - if (!related) { - if (reportErrors2) { - reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); - } - return 0 /* False */; - } - if (!skipOptional && sourceProp.flags & 16777216 /* Optional */ && targetProp.flags & 106500 /* ClassMember */ && !(targetProp.flags & 16777216 /* Optional */)) { - if (reportErrors2) { - reportError(Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2)); - } - return 0 /* False */; - } - return related; - } - function reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties) { - let shouldSkipElaboration = false; - if (unmatchedProperty.valueDeclaration && isNamedDeclaration(unmatchedProperty.valueDeclaration) && isPrivateIdentifier(unmatchedProperty.valueDeclaration.name) && source2.symbol && source2.symbol.flags & 32 /* Class */) { - const privateIdentifierDescription = unmatchedProperty.valueDeclaration.name.escapedText; - const symbolTableKey = getSymbolNameForPrivateIdentifier(source2.symbol, privateIdentifierDescription); - if (symbolTableKey && getPropertyOfType(source2, symbolTableKey)) { - const sourceName = factory.getDeclarationName(source2.symbol.valueDeclaration); - const targetName = factory.getDeclarationName(target2.symbol.valueDeclaration); - reportError( - Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, - diagnosticName(privateIdentifierDescription), - diagnosticName(sourceName.escapedText === "" ? anon : sourceName), - diagnosticName(targetName.escapedText === "" ? anon : targetName) - ); - return; - } - } - const props = arrayFrom(getUnmatchedProperties( - source2, - target2, - requireOptionalProperties, - /*matchDiscriminantProperties*/ - false - )); - if (!headMessage || headMessage.code !== Diagnostics.Class_0_incorrectly_implements_interface_1.code && headMessage.code !== Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code) { - shouldSkipElaboration = true; - } - if (props.length === 1) { - const propName = symbolToString( - unmatchedProperty, - /*enclosingDeclaration*/ - void 0, - 0 /* None */, - 4 /* AllowAnyNodeKind */ | 16 /* WriteComputedProps */ - ); - reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2)); - if (length(unmatchedProperty.declarations)) { - associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName)); - } - if (shouldSkipElaboration && errorInfo) { - overrideNextErrorInfo++; - } - } else if (tryElaborateArrayLikeErrors( - source2, - target2, - /*reportErrors*/ - false - )) { - if (props.length > 5) { - reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(", "), props.length - 4); - } else { - reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(", ")); - } - if (shouldSkipElaboration && errorInfo) { - overrideNextErrorInfo++; - } - } - } - function propertiesRelatedTo(source2, target2, reportErrors2, excludedProperties, optionalsOnly, intersectionState) { - if (relation === identityRelation) { - return propertiesIdenticalTo(source2, target2, excludedProperties); - } - let result2 = -1 /* True */; - if (isTupleType(target2)) { - if (isArrayOrTupleType(source2)) { - if (!target2.target.readonly && (isReadonlyArrayType(source2) || isTupleType(source2) && source2.target.readonly)) { - return 0 /* False */; - } - const sourceArity = getTypeReferenceArity(source2); - const targetArity = getTypeReferenceArity(target2); - const sourceRestFlag = isTupleType(source2) ? source2.target.combinedFlags & 4 /* Rest */ : 4 /* Rest */; - const targetHasRestElement = !!(target2.target.combinedFlags & 12 /* Variable */); - const sourceMinLength = isTupleType(source2) ? source2.target.minLength : 0; - const targetMinLength = target2.target.minLength; - if (!sourceRestFlag && sourceArity < targetMinLength) { - if (reportErrors2) { - reportError(Diagnostics.Source_has_0_element_s_but_target_requires_1, sourceArity, targetMinLength); - } - return 0 /* False */; - } - if (!targetHasRestElement && targetArity < sourceMinLength) { - if (reportErrors2) { - reportError(Diagnostics.Source_has_0_element_s_but_target_allows_only_1, sourceMinLength, targetArity); - } - return 0 /* False */; - } - if (!targetHasRestElement && (sourceRestFlag || targetArity < sourceArity)) { - if (reportErrors2) { - if (sourceMinLength < targetMinLength) { - reportError(Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, targetMinLength); - } else { - reportError(Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more, targetArity); - } - } - return 0 /* False */; - } - const sourceTypeArguments = getTypeArguments(source2); - const targetTypeArguments = getTypeArguments(target2); - const targetStartCount = getStartElementCount(target2.target, 11 /* NonRest */); - const targetEndCount = getEndElementCount(target2.target, 11 /* NonRest */); - let canExcludeDiscriminants = !!excludedProperties; - for (let sourcePosition = 0; sourcePosition < sourceArity; sourcePosition++) { - const sourceFlags = isTupleType(source2) ? source2.target.elementFlags[sourcePosition] : 4 /* Rest */; - const sourcePositionFromEnd = sourceArity - 1 - sourcePosition; - const targetPosition = targetHasRestElement && sourcePosition >= targetStartCount ? targetArity - 1 - Math.min(sourcePositionFromEnd, targetEndCount) : sourcePosition; - const targetFlags = target2.target.elementFlags[targetPosition]; - if (targetFlags & 8 /* Variadic */ && !(sourceFlags & 8 /* Variadic */)) { - if (reportErrors2) { - reportError(Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target, targetPosition); - } - return 0 /* False */; - } - if (sourceFlags & 8 /* Variadic */ && !(targetFlags & 12 /* Variable */)) { - if (reportErrors2) { - reportError(Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, sourcePosition, targetPosition); - } - return 0 /* False */; - } - if (targetFlags & 1 /* Required */ && !(sourceFlags & 1 /* Required */)) { - if (reportErrors2) { - reportError(Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target, targetPosition); - } - return 0 /* False */; - } - if (canExcludeDiscriminants) { - if (sourceFlags & 12 /* Variable */ || targetFlags & 12 /* Variable */) { - canExcludeDiscriminants = false; - } - if (canExcludeDiscriminants && (excludedProperties == null ? void 0 : excludedProperties.has("" + sourcePosition))) { - continue; - } - } - const sourceType = removeMissingType(sourceTypeArguments[sourcePosition], !!(sourceFlags & targetFlags & 2 /* Optional */)); - const targetType = targetTypeArguments[targetPosition]; - const targetCheckType = sourceFlags & 8 /* Variadic */ && targetFlags & 4 /* Rest */ ? createArrayType(targetType) : removeMissingType(targetType, !!(targetFlags & 2 /* Optional */)); - const related = isRelatedTo( - sourceType, - targetCheckType, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (!related) { - if (reportErrors2 && (targetArity > 1 || sourceArity > 1)) { - if (targetHasRestElement && sourcePosition >= targetStartCount && sourcePositionFromEnd >= targetEndCount && targetStartCount !== sourceArity - targetEndCount - 1) { - reportIncompatibleError(Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, targetStartCount, sourceArity - targetEndCount - 1, targetPosition); - } else { - reportIncompatibleError(Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, sourcePosition, targetPosition); - } - } - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - if (target2.target.combinedFlags & 12 /* Variable */) { - return 0 /* False */; - } - } - const requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType(source2) && !isEmptyArrayLiteralType(source2) && !isTupleType(source2); - const unmatchedProperty = getUnmatchedProperty( - source2, - target2, - requireOptionalProperties, - /*matchDiscriminantProperties*/ - false - ); - if (unmatchedProperty) { - if (reportErrors2 && shouldReportUnmatchedPropertyError(source2, target2)) { - reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties); - } - return 0 /* False */; - } - if (isObjectLiteralType(target2)) { - for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) { - if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) { - const sourceType = getTypeOfSymbol(sourceProp); - if (!(sourceType.flags & 32768 /* Undefined */)) { - if (reportErrors2) { - reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2)); - } - return 0 /* False */; - } - } - } - } - const properties = getPropertiesOfType(target2); - const numericNamesOnly = isTupleType(source2) && isTupleType(target2); - for (const targetProp of excludeProperties(properties, excludedProperties)) { - const name = targetProp.escapedName; - if (!(targetProp.flags & 4194304 /* Prototype */) && (!numericNamesOnly || isNumericLiteralName(name) || name === "length") && (!optionalsOnly || targetProp.flags & 16777216 /* Optional */)) { - const sourceProp = getPropertyOfType(source2, name); - if (sourceProp && sourceProp !== targetProp) { - const related = propertyRelatedTo(source2, target2, sourceProp, targetProp, getNonMissingTypeOfSymbol, reportErrors2, intersectionState, relation === comparableRelation); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - } - } - return result2; - } - function propertiesIdenticalTo(source2, target2, excludedProperties) { - if (!(source2.flags & 524288 /* Object */ && target2.flags & 524288 /* Object */)) { - return 0 /* False */; - } - const sourceProperties = excludeProperties(getPropertiesOfObjectType(source2), excludedProperties); - const targetProperties = excludeProperties(getPropertiesOfObjectType(target2), excludedProperties); - if (sourceProperties.length !== targetProperties.length) { - return 0 /* False */; - } - let result2 = -1 /* True */; - for (const sourceProp of sourceProperties) { - const targetProp = getPropertyOfObjectType(target2, sourceProp.escapedName); - if (!targetProp) { - return 0 /* False */; - } - const related = compareProperties(sourceProp, targetProp, isRelatedTo); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function signaturesRelatedTo(source2, target2, kind, reportErrors2, intersectionState) { - var _a2, _b; - if (relation === identityRelation) { - return signaturesIdenticalTo(source2, target2, kind); - } - if (target2 === anyFunctionType || source2 === anyFunctionType) { - return -1 /* True */; - } - const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration); - const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration); - const sourceSignatures = getSignaturesOfType( - source2, - sourceIsJSConstructor && kind === 1 /* Construct */ ? 0 /* Call */ : kind - ); - const targetSignatures = getSignaturesOfType( - target2, - targetIsJSConstructor && kind === 1 /* Construct */ ? 0 /* Call */ : kind - ); - if (kind === 1 /* Construct */ && sourceSignatures.length && targetSignatures.length) { - const sourceIsAbstract = !!(sourceSignatures[0].flags & 4 /* Abstract */); - const targetIsAbstract = !!(targetSignatures[0].flags & 4 /* Abstract */); - if (sourceIsAbstract && !targetIsAbstract) { - if (reportErrors2) { - reportError(Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type); - } - return 0 /* False */; - } - if (!constructorVisibilitiesAreCompatible(sourceSignatures[0], targetSignatures[0], reportErrors2)) { - return 0 /* False */; - } - } - let result2 = -1 /* True */; - const incompatibleReporter = kind === 1 /* Construct */ ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn; - const sourceObjectFlags = getObjectFlags(source2); - const targetObjectFlags = getObjectFlags(target2); - if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source2.symbol === target2.symbol || sourceObjectFlags & 4 /* Reference */ && targetObjectFlags & 4 /* Reference */ && source2.target === target2.target) { - Debug.assertEqual(sourceSignatures.length, targetSignatures.length); - for (let i = 0; i < targetSignatures.length; i++) { - const related = signatureRelatedTo( - sourceSignatures[i], - targetSignatures[i], - /*erase*/ - true, - reportErrors2, - intersectionState, - incompatibleReporter(sourceSignatures[i], targetSignatures[i]) - ); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - } else if (sourceSignatures.length === 1 && targetSignatures.length === 1) { - const eraseGenerics = relation === comparableRelation; - const sourceSignature = first(sourceSignatures); - const targetSignature = first(targetSignatures); - result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); - if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { - const constructSignatureToString = (signature) => signatureToString( - signature, - /*enclosingDeclaration*/ - void 0, - 262144 /* WriteArrowStyleSignature */, - kind - ); - reportError(Diagnostics.Type_0_is_not_assignable_to_type_1, constructSignatureToString(sourceSignature), constructSignatureToString(targetSignature)); - reportError(Diagnostics.Types_of_construct_signatures_are_incompatible); - return result2; - } - } else { - outer: - for (const t of targetSignatures) { - const saveErrorInfo = captureErrorCalculationState(); - let shouldElaborateErrors = reportErrors2; - for (const s of sourceSignatures) { - const related = signatureRelatedTo( - s, - t, - /*erase*/ - true, - shouldElaborateErrors, - intersectionState, - incompatibleReporter(s, t) - ); - if (related) { - result2 &= related; - resetErrorInfo(saveErrorInfo); - continue outer; - } - shouldElaborateErrors = false; - } - if (shouldElaborateErrors) { - reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1, typeToString(source2), signatureToString( - t, - /*enclosingDeclaration*/ - void 0, - /*flags*/ - void 0, - kind - )); - } - return 0 /* False */; - } - } - return result2; - } - function shouldReportUnmatchedPropertyError(source2, target2) { - const typeCallSignatures = getSignaturesOfStructuredType(source2, 0 /* Call */); - const typeConstructSignatures = getSignaturesOfStructuredType(source2, 1 /* Construct */); - const typeProperties = getPropertiesOfObjectType(source2); - if ((typeCallSignatures.length || typeConstructSignatures.length) && !typeProperties.length) { - if (getSignaturesOfType(target2, 0 /* Call */).length && typeCallSignatures.length || getSignaturesOfType(target2, 1 /* Construct */).length && typeConstructSignatures.length) { - return true; - } - return false; - } - return true; - } - function reportIncompatibleCallSignatureReturn(siga, sigb) { - if (siga.parameters.length === 0 && sigb.parameters.length === 0) { - return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2)); - } - return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2)); - } - function reportIncompatibleConstructSignatureReturn(siga, sigb) { - if (siga.parameters.length === 0 && sigb.parameters.length === 0) { - return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2)); - } - return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2)); - } - function signatureRelatedTo(source2, target2, erase, reportErrors2, intersectionState, incompatibleReporter) { - const checkMode = relation === subtypeRelation ? 16 /* StrictTopSignature */ : relation === strictSubtypeRelation ? 16 /* StrictTopSignature */ | 8 /* StrictArity */ : 0 /* None */; - return compareSignaturesRelated(erase ? getErasedSignature(source2) : source2, erase ? getErasedSignature(target2) : target2, checkMode, reportErrors2, reportError, incompatibleReporter, isRelatedToWorker2, reportUnreliableMapper); - function isRelatedToWorker2(source3, target3, reportErrors3) { - return isRelatedTo( - source3, - target3, - 3 /* Both */, - reportErrors3, - /*headMessage*/ - void 0, - intersectionState - ); - } - } - function signaturesIdenticalTo(source2, target2, kind) { - const sourceSignatures = getSignaturesOfType(source2, kind); - const targetSignatures = getSignaturesOfType(target2, kind); - if (sourceSignatures.length !== targetSignatures.length) { - return 0 /* False */; - } - let result2 = -1 /* True */; - for (let i = 0; i < sourceSignatures.length; i++) { - const related = compareSignaturesIdentical( - sourceSignatures[i], - targetSignatures[i], - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - false, - /*ignoreReturnTypes*/ - false, - isRelatedTo - ); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) { - let result2 = -1 /* True */; - const keyType = targetInfo.keyType; - const props = source2.flags & 2097152 /* Intersection */ ? getPropertiesOfUnionOrIntersectionType(source2) : getPropertiesOfObjectType(source2); - for (const prop of props) { - if (isIgnoredJsxProperty(source2, prop)) { - continue; - } - if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), keyType)) { - const propType = getNonMissingTypeOfSymbol(prop); - const type = exactOptionalPropertyTypes || propType.flags & 32768 /* Undefined */ || keyType === numberType || !(prop.flags & 16777216 /* Optional */) ? propType : getTypeWithFacts(propType, 524288 /* NEUndefined */); - const related = isRelatedTo( - type, - targetInfo.type, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (!related) { - if (reportErrors2) { - reportError(Diagnostics.Property_0_is_incompatible_with_index_signature, symbolToString(prop)); - } - return 0 /* False */; - } - result2 &= related; - } - } - for (const info of getIndexInfosOfType(source2)) { - if (isApplicableIndexType(info.keyType, keyType)) { - const related = indexInfoRelatedTo(info, targetInfo, reportErrors2, intersectionState); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - } - return result2; - } - function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState) { - const related = isRelatedTo( - sourceInfo.type, - targetInfo.type, - 3 /* Both */, - reportErrors2, - /*headMessage*/ - void 0, - intersectionState - ); - if (!related && reportErrors2) { - if (sourceInfo.keyType === targetInfo.keyType) { - reportError(Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType)); - } else { - reportError(Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType)); - } - } - return related; - } - function indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportErrors2, intersectionState) { - if (relation === identityRelation) { - return indexSignaturesIdenticalTo(source2, target2); - } - const indexInfos = getIndexInfosOfType(target2); - const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType); - let result2 = -1 /* True */; - for (const targetInfo of indexInfos) { - const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState); - if (!related) { - return 0 /* False */; - } - result2 &= related; - } - return result2; - } - function typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) { - const sourceInfo = getApplicableIndexInfo(source2, targetInfo.keyType); - if (sourceInfo) { - return indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState); - } - if (!(intersectionState & 1 /* Source */) && (relation !== strictSubtypeRelation || getObjectFlags(source2) & 8192 /* FreshLiteral */) && isObjectTypeWithInferableIndex(source2)) { - return membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState); - } - if (reportErrors2) { - reportError(Diagnostics.Index_signature_for_type_0_is_missing_in_type_1, typeToString(targetInfo.keyType), typeToString(source2)); - } - return 0 /* False */; - } - function indexSignaturesIdenticalTo(source2, target2) { - const sourceInfos = getIndexInfosOfType(source2); - const targetInfos = getIndexInfosOfType(target2); - if (sourceInfos.length !== targetInfos.length) { - return 0 /* False */; - } - for (const targetInfo of targetInfos) { - const sourceInfo = getIndexInfoOfType(source2, targetInfo.keyType); - if (!(sourceInfo && isRelatedTo(sourceInfo.type, targetInfo.type, 3 /* Both */) && sourceInfo.isReadonly === targetInfo.isReadonly)) { - return 0 /* False */; - } - } - return -1 /* True */; - } - function constructorVisibilitiesAreCompatible(sourceSignature, targetSignature, reportErrors2) { - if (!sourceSignature.declaration || !targetSignature.declaration) { - return true; - } - const sourceAccessibility = getSelectedEffectiveModifierFlags(sourceSignature.declaration, 6 /* NonPublicAccessibilityModifier */); - const targetAccessibility = getSelectedEffectiveModifierFlags(targetSignature.declaration, 6 /* NonPublicAccessibilityModifier */); - if (targetAccessibility === 2 /* Private */) { - return true; - } - if (targetAccessibility === 4 /* Protected */ && sourceAccessibility !== 2 /* Private */) { - return true; - } - if (targetAccessibility !== 4 /* Protected */ && !sourceAccessibility) { - return true; - } - if (reportErrors2) { - reportError(Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, visibilityToString(sourceAccessibility), visibilityToString(targetAccessibility)); - } - return false; - } - } - function typeCouldHaveTopLevelSingletonTypes(type) { - if (type.flags & 16 /* Boolean */) { - return false; - } - if (type.flags & 3145728 /* UnionOrIntersection */) { - return !!forEach(type.types, typeCouldHaveTopLevelSingletonTypes); - } - if (type.flags & 465829888 /* Instantiable */) { - const constraint = getConstraintOfType(type); - if (constraint && constraint !== type) { - return typeCouldHaveTopLevelSingletonTypes(constraint); - } - } - return isUnitType(type) || !!(type.flags & 134217728 /* TemplateLiteral */) || !!(type.flags & 268435456 /* StringMapping */); - } - function getExactOptionalUnassignableProperties(source, target) { - if (isTupleType(source) && isTupleType(target)) return emptyArray; - return getPropertiesOfType(target).filter((targetProp) => isExactOptionalPropertyMismatch(getTypeOfPropertyOfType(source, targetProp.escapedName), getTypeOfSymbol(targetProp))); - } - function isExactOptionalPropertyMismatch(source, target) { - return !!source && !!target && maybeTypeOfKind(source, 32768 /* Undefined */) && !!containsMissingType(target); - } - function getExactOptionalProperties(type) { - return getPropertiesOfType(type).filter((targetProp) => containsMissingType(getTypeOfSymbol(targetProp))); - } - function getBestMatchingType(source, target, isRelatedTo = compareTypesAssignable) { - return findMatchingDiscriminantType(source, target, isRelatedTo) || findMatchingTypeReferenceOrTypeAliasReference(source, target) || findBestTypeForObjectLiteral(source, target) || findBestTypeForInvokable(source, target) || findMostOverlappyType(source, target); - } - function discriminateTypeByDiscriminableItems(target, discriminators, related) { - const types = target.types; - const include = types.map((t) => t.flags & 402784252 /* Primitive */ ? 0 /* False */ : -1 /* True */); - for (const [getDiscriminatingType, propertyName] of discriminators) { - let matched = false; - for (let i = 0; i < types.length; i++) { - if (include[i]) { - const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); - if (targetType && someType(getDiscriminatingType(), (t) => !!related(t, targetType))) { - matched = true; - } else { - include[i] = 3 /* Maybe */; - } - } - } - for (let i = 0; i < types.length; i++) { - if (include[i] === 3 /* Maybe */) { - include[i] = matched ? 0 /* False */ : -1 /* True */; - } - } - } - const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; - return filtered.flags & 131072 /* Never */ ? target : filtered; - } - function isWeakType(type) { - if (type.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type); - return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 && resolved.properties.length > 0 && every(resolved.properties, (p) => !!(p.flags & 16777216 /* Optional */)); - } - if (type.flags & 33554432 /* Substitution */) { - return isWeakType(type.baseType); - } - if (type.flags & 2097152 /* Intersection */) { - return every(type.types, isWeakType); - } - return false; - } - function hasCommonProperties(source, target, isComparingJsxAttributes) { - for (const prop of getPropertiesOfType(source)) { - if (isKnownProperty(target, prop.escapedName, isComparingJsxAttributes)) { - return true; - } - } - return false; - } - function getVariances(type) { - return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 /* Tuple */ ? arrayVariances : getVariancesWorker(type.symbol, type.typeParameters); - } - function getAliasVariances(symbol) { - return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters); - } - function getVariancesWorker(symbol, typeParameters = emptyArray) { - var _a, _b; - const links = getSymbolLinks(symbol); - if (!links.variances) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) }); - const oldVarianceComputation = inVarianceComputation; - const saveResolutionStart = resolutionStart; - if (!inVarianceComputation) { - inVarianceComputation = true; - resolutionStart = resolutionTargets.length; - } - links.variances = emptyArray; - const variances = []; - for (const tp of typeParameters) { - const modifiers = getTypeParameterModifiers(tp); - let variance = modifiers & 16384 /* Out */ ? modifiers & 8192 /* In */ ? 0 /* Invariant */ : 1 /* Covariant */ : modifiers & 8192 /* In */ ? 2 /* Contravariant */ : void 0; - if (variance === void 0) { - let unmeasurable = false; - let unreliable = false; - const oldHandler = outofbandVarianceMarkerHandler; - outofbandVarianceMarkerHandler = (onlyUnreliable) => onlyUnreliable ? unreliable = true : unmeasurable = true; - const typeWithSuper = createMarkerType(symbol, tp, markerSuperType); - const typeWithSub = createMarkerType(symbol, tp, markerSubType); - variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 /* Covariant */ : 0) | (isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 /* Contravariant */ : 0); - if (variance === 3 /* Bivariant */ && isTypeAssignableTo(createMarkerType(symbol, tp, markerOtherType), typeWithSuper)) { - variance = 4 /* Independent */; - } - outofbandVarianceMarkerHandler = oldHandler; - if (unmeasurable || unreliable) { - if (unmeasurable) { - variance |= 8 /* Unmeasurable */; - } - if (unreliable) { - variance |= 16 /* Unreliable */; - } - } - } - variances.push(variance); - } - if (!oldVarianceComputation) { - inVarianceComputation = false; - resolutionStart = saveResolutionStart; - } - links.variances = variances; - (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) }); - } - return links.variances; - } - function createMarkerType(symbol, source, target) { - const mapper = makeUnaryTypeMapper(source, target); - const type = getDeclaredTypeOfSymbol(symbol); - if (isErrorType(type)) { - return type; - } - const result = symbol.flags & 524288 /* TypeAlias */ ? getTypeAliasInstantiation(symbol, instantiateTypes(getSymbolLinks(symbol).typeParameters, mapper)) : createTypeReference(type, instantiateTypes(type.typeParameters, mapper)); - markerTypes.add(getTypeId(result)); - return result; - } - function isMarkerType(type) { - return markerTypes.has(getTypeId(type)); - } - function getTypeParameterModifiers(tp) { - var _a; - return reduceLeft((_a = tp.symbol) == null ? void 0 : _a.declarations, (modifiers, d) => modifiers | getEffectiveModifierFlags(d), 0 /* None */) & (8192 /* In */ | 16384 /* Out */ | 4096 /* Const */); - } - function hasCovariantVoidArgument(typeArguments, variances) { - for (let i = 0; i < variances.length; i++) { - if ((variances[i] & 7 /* VarianceMask */) === 1 /* Covariant */ && typeArguments[i].flags & 16384 /* Void */) { - return true; - } - } - return false; - } - function isUnconstrainedTypeParameter(type) { - return type.flags & 262144 /* TypeParameter */ && !getConstraintOfTypeParameter(type); - } - function isNonDeferredTypeReference(type) { - return !!(getObjectFlags(type) & 4 /* Reference */) && !type.node; - } - function isTypeReferenceWithGenericArguments(type) { - return isNonDeferredTypeReference(type) && some(getTypeArguments(type), (t) => !!(t.flags & 262144 /* TypeParameter */) || isTypeReferenceWithGenericArguments(t)); - } - function getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) { - const typeParameters = []; - let constraintMarker = ""; - const sourceId = getTypeReferenceId(source, 0); - const targetId = getTypeReferenceId(target, 0); - return `${constraintMarker}${sourceId},${targetId}${postFix}`; - function getTypeReferenceId(type, depth = 0) { - let result = "" + type.target.id; - for (const t of getTypeArguments(type)) { - if (t.flags & 262144 /* TypeParameter */) { - if (ignoreConstraints || isUnconstrainedTypeParameter(t)) { - let index = typeParameters.indexOf(t); - if (index < 0) { - index = typeParameters.length; - typeParameters.push(t); - } - result += "=" + index; - continue; - } - constraintMarker = "*"; - } else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) { - result += "<" + getTypeReferenceId(t, depth + 1) + ">"; - continue; - } - result += "-" + t.id; - } - return result; - } - } - function getRelationKey(source, target, intersectionState, relation, ignoreConstraints) { - if (relation === identityRelation && source.id > target.id) { - const temp = source; - source = target; - target = temp; - } - const postFix = intersectionState ? ":" + intersectionState : ""; - return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ? getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) : `${source.id},${target.id}${postFix}`; - } - function forEachProperty(prop, callback) { - if (getCheckFlags(prop) & 6 /* Synthetic */) { - for (const t of prop.links.containingType.types) { - const p = getPropertyOfType(t, prop.escapedName); - const result = p && forEachProperty(p, callback); - if (result) { - return result; - } - } - return void 0; - } - return callback(prop); - } - function getDeclaringClass(prop) { - return prop.parent && prop.parent.flags & 32 /* Class */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(prop)) : void 0; - } - function getTypeOfPropertyInBaseClass(property) { - const classType = getDeclaringClass(property); - const baseClassType = classType && getBaseTypes(classType)[0]; - return baseClassType && getTypeOfPropertyOfType(baseClassType, property.escapedName); - } - function isPropertyInClassDerivedFrom(prop, baseClass) { - return forEachProperty(prop, (sp) => { - const sourceClass = getDeclaringClass(sp); - return sourceClass ? hasBaseType(sourceClass, baseClass) : false; - }); - } - function isValidOverrideOf(sourceProp, targetProp) { - return !forEachProperty(targetProp, (tp) => getDeclarationModifierFlagsFromSymbol(tp) & 4 /* Protected */ ? !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false); - } - function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) { - return forEachProperty(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 4 /* Protected */ ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass; - } - function isDeeplyNestedType(type, stack, depth, maxDepth = 3) { - if (depth >= maxDepth) { - if ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */) { - type = getMappedTargetWithSymbol(type); - } - if (type.flags & 2097152 /* Intersection */) { - return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth)); - } - const identity2 = getRecursionIdentity(type); - let count = 0; - let lastTypeId = 0; - for (let i = 0; i < depth; i++) { - const t = stack[i]; - if (hasMatchingRecursionIdentity(t, identity2)) { - if (t.id >= lastTypeId) { - count++; - if (count >= maxDepth) { - return true; - } - } - lastTypeId = t.id; - } - } - } - return false; - } - function getMappedTargetWithSymbol(type) { - let target; - while ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */ && (target = getModifiersTypeFromMappedType(type)) && (target.symbol || target.flags & 2097152 /* Intersection */ && some(target.types, (t) => !!t.symbol))) { - type = target; - } - return type; - } - function hasMatchingRecursionIdentity(type, identity2) { - if ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */) { - type = getMappedTargetWithSymbol(type); - } - if (type.flags & 2097152 /* Intersection */) { - return some(type.types, (t) => hasMatchingRecursionIdentity(t, identity2)); - } - return getRecursionIdentity(type) === identity2; - } - function getRecursionIdentity(type) { - if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { - if (getObjectFlags(type) & 4 /* Reference */ && type.node) { - return type.node; - } - if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { - return type.symbol; - } - if (isTupleType(type)) { - return type.target; - } - } - if (type.flags & 262144 /* TypeParameter */) { - return type.symbol; - } - if (type.flags & 8388608 /* IndexedAccess */) { - do { - type = type.objectType; - } while (type.flags & 8388608 /* IndexedAccess */); - return type; - } - if (type.flags & 16777216 /* Conditional */) { - return type.root; - } - return type; - } - function isPropertyIdenticalTo(sourceProp, targetProp) { - return compareProperties(sourceProp, targetProp, compareTypesIdentical) !== 0 /* False */; - } - function compareProperties(sourceProp, targetProp, compareTypes) { - if (sourceProp === targetProp) { - return -1 /* True */; - } - const sourcePropAccessibility = getDeclarationModifierFlagsFromSymbol(sourceProp) & 6 /* NonPublicAccessibilityModifier */; - const targetPropAccessibility = getDeclarationModifierFlagsFromSymbol(targetProp) & 6 /* NonPublicAccessibilityModifier */; - if (sourcePropAccessibility !== targetPropAccessibility) { - return 0 /* False */; - } - if (sourcePropAccessibility) { - if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) { - return 0 /* False */; - } - } else { - if ((sourceProp.flags & 16777216 /* Optional */) !== (targetProp.flags & 16777216 /* Optional */)) { - return 0 /* False */; - } - } - if (isReadonlySymbol(sourceProp) !== isReadonlySymbol(targetProp)) { - return 0 /* False */; - } - return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp)); - } - function isMatchingSignature(source, target, partialMatch) { - const sourceParameterCount = getParameterCount(source); - const targetParameterCount = getParameterCount(target); - const sourceMinArgumentCount = getMinArgumentCount(source); - const targetMinArgumentCount = getMinArgumentCount(target); - const sourceHasRestParameter = hasEffectiveRestParameter(source); - const targetHasRestParameter = hasEffectiveRestParameter(target); - if (sourceParameterCount === targetParameterCount && sourceMinArgumentCount === targetMinArgumentCount && sourceHasRestParameter === targetHasRestParameter) { - return true; - } - if (partialMatch && sourceMinArgumentCount <= targetMinArgumentCount) { - return true; - } - return false; - } - function compareSignaturesIdentical(source, target, partialMatch, ignoreThisTypes, ignoreReturnTypes, compareTypes) { - if (source === target) { - return -1 /* True */; - } - if (!isMatchingSignature(source, target, partialMatch)) { - return 0 /* False */; - } - if (length(source.typeParameters) !== length(target.typeParameters)) { - return 0 /* False */; - } - if (target.typeParameters) { - const mapper = createTypeMapper(source.typeParameters, target.typeParameters); - for (let i = 0; i < target.typeParameters.length; i++) { - const s = source.typeParameters[i]; - const t = target.typeParameters[i]; - if (!(s === t || compareTypes(instantiateType(getConstraintFromTypeParameter(s), mapper) || unknownType, getConstraintFromTypeParameter(t) || unknownType) && compareTypes(instantiateType(getDefaultFromTypeParameter(s), mapper) || unknownType, getDefaultFromTypeParameter(t) || unknownType))) { - return 0 /* False */; - } - } - source = instantiateSignature( - source, - mapper, - /*eraseTypeParameters*/ - true - ); - } - let result = -1 /* True */; - if (!ignoreThisTypes) { - const sourceThisType = getThisTypeOfSignature(source); - if (sourceThisType) { - const targetThisType = getThisTypeOfSignature(target); - if (targetThisType) { - const related = compareTypes(sourceThisType, targetThisType); - if (!related) { - return 0 /* False */; - } - result &= related; - } - } - } - const targetLen = getParameterCount(target); - for (let i = 0; i < targetLen; i++) { - const s = getTypeAtPosition(source, i); - const t = getTypeAtPosition(target, i); - const related = compareTypes(t, s); - if (!related) { - return 0 /* False */; - } - result &= related; - } - if (!ignoreReturnTypes) { - const sourceTypePredicate = getTypePredicateOfSignature(source); - const targetTypePredicate = getTypePredicateOfSignature(target); - result &= sourceTypePredicate || targetTypePredicate ? compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) : compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); - } - return result; - } - function compareTypePredicatesIdentical(source, target, compareTypes) { - return !(source && target && typePredicateKindsMatch(source, target)) ? 0 /* False */ : source.type === target.type ? -1 /* True */ : source.type && target.type ? compareTypes(source.type, target.type) : 0 /* False */; - } - function literalTypesWithSameBaseType(types) { - let commonBaseType; - for (const t of types) { - if (!(t.flags & 131072 /* Never */)) { - const baseType = getBaseTypeOfLiteralType(t); - commonBaseType ?? (commonBaseType = baseType); - if (baseType === t || baseType !== commonBaseType) { - return false; - } - } - } - return true; - } - function getCombinedTypeFlags(types) { - return reduceLeft(types, (flags, t) => flags | (t.flags & 1048576 /* Union */ ? getCombinedTypeFlags(t.types) : t.flags), 0); - } - function getCommonSupertype(types) { - if (types.length === 1) { - return types[0]; - } - const primaryTypes = strictNullChecks ? sameMap(types, (t) => filterType(t, (u) => !(u.flags & 98304 /* Nullable */))) : types; - const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? getUnionType(primaryTypes) : reduceLeft(primaryTypes, (s, t) => isTypeSubtypeOf(s, t) ? t : s); - return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & 98304 /* Nullable */); - } - function getCommonSubtype(types) { - return reduceLeft(types, (s, t) => isTypeSubtypeOf(t, s) ? t : s); - } - function isArrayType(type) { - return !!(getObjectFlags(type) & 4 /* Reference */) && (type.target === globalArrayType || type.target === globalReadonlyArrayType); - } - function isReadonlyArrayType(type) { - return !!(getObjectFlags(type) & 4 /* Reference */) && type.target === globalReadonlyArrayType; - } - function isArrayOrTupleType(type) { - return isArrayType(type) || isTupleType(type); - } - function isMutableArrayOrTuple(type) { - return isArrayType(type) && !isReadonlyArrayType(type) || isTupleType(type) && !type.target.readonly; - } - function getElementTypeOfArrayType(type) { - return isArrayType(type) ? getTypeArguments(type)[0] : void 0; - } - function isArrayLikeType(type) { - return isArrayType(type) || !(type.flags & 98304 /* Nullable */) && isTypeAssignableTo(type, anyReadonlyArrayType); - } - function isMutableArrayLikeType(type) { - return isMutableArrayOrTuple(type) || !(type.flags & (1 /* Any */ | 98304 /* Nullable */)) && isTypeAssignableTo(type, anyArrayType); - } - function getSingleBaseForNonAugmentingSubtype(type) { - if (!(getObjectFlags(type) & 4 /* Reference */) || !(getObjectFlags(type.target) & 3 /* ClassOrInterface */)) { - return void 0; - } - if (getObjectFlags(type) & 33554432 /* IdenticalBaseTypeCalculated */) { - return getObjectFlags(type) & 67108864 /* IdenticalBaseTypeExists */ ? type.cachedEquivalentBaseType : void 0; - } - type.objectFlags |= 33554432 /* IdenticalBaseTypeCalculated */; - const target = type.target; - if (getObjectFlags(target) & 1 /* Class */) { - const baseTypeNode = getBaseTypeNodeOfClass(target); - if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { - return void 0; - } - } - const bases = getBaseTypes(target); - if (bases.length !== 1) { - return void 0; - } - if (getMembersOfSymbol(type.symbol).size) { - return void 0; - } - let instantiatedBase = !length(target.typeParameters) ? bases[0] : instantiateType(bases[0], createTypeMapper(target.typeParameters, getTypeArguments(type).slice(0, target.typeParameters.length))); - if (length(getTypeArguments(type)) > length(target.typeParameters)) { - instantiatedBase = getTypeWithThisArgument(instantiatedBase, last(getTypeArguments(type))); - } - type.objectFlags |= 67108864 /* IdenticalBaseTypeExists */; - return type.cachedEquivalentBaseType = instantiatedBase; - } - function isEmptyLiteralType(type) { - return strictNullChecks ? type === implicitNeverType : type === undefinedWideningType; - } - function isEmptyArrayLiteralType(type) { - const elementType = getElementTypeOfArrayType(type); - return !!elementType && isEmptyLiteralType(elementType); - } - function isTupleLikeType(type) { - let lengthType; - return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); - } - function isArrayOrTupleLikeType(type) { - return isArrayLikeType(type) || isTupleLikeType(type); - } - function getTupleElementType(type, index) { - const propType = getTypeOfPropertyOfType(type, "" + index); - if (propType) { - return propType; - } - if (everyType(type, isTupleType)) { - return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); - } - return void 0; - } - function isNeitherUnitTypeNorNever(type) { - return !(type.flags & (109472 /* Unit */ | 131072 /* Never */)); - } - function isUnitType(type) { - return !!(type.flags & 109472 /* Unit */); - } - function isUnitLikeType(type) { - const t = getBaseConstraintOrType(type); - return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t); - } - function extractUnitType(type) { - return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type; - } - function isLiteralType(type) { - return type.flags & 16 /* Boolean */ ? true : type.flags & 1048576 /* Union */ ? type.flags & 1024 /* EnumLiteral */ ? true : every(type.types, isUnitType) : isUnitType(type); - } - function getBaseTypeOfLiteralType(type) { - return type.flags & 1056 /* EnumLike */ ? getBaseTypeOfEnumLikeType(type) : type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? stringType : type.flags & 256 /* NumberLiteral */ ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 512 /* BooleanLiteral */ ? booleanType : type.flags & 1048576 /* Union */ ? getBaseTypeOfLiteralTypeUnion(type) : type; - } - function getBaseTypeOfLiteralTypeUnion(type) { - const key = `B${getTypeId(type)}`; - return getCachedType(key) ?? setCachedType(key, mapType(type, getBaseTypeOfLiteralType)); - } - function getBaseTypeOfLiteralTypeForComparison(type) { - return type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? stringType : type.flags & (256 /* NumberLiteral */ | 32 /* Enum */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 512 /* BooleanLiteral */ ? booleanType : type.flags & 1048576 /* Union */ ? mapType(type, getBaseTypeOfLiteralTypeForComparison) : type; - } - function getWidenedLiteralType(type) { - return type.flags & 1056 /* EnumLike */ && isFreshLiteralType(type) ? getBaseTypeOfEnumLikeType(type) : type.flags & 128 /* StringLiteral */ && isFreshLiteralType(type) ? stringType : type.flags & 256 /* NumberLiteral */ && isFreshLiteralType(type) ? numberType : type.flags & 2048 /* BigIntLiteral */ && isFreshLiteralType(type) ? bigintType : type.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(type) ? booleanType : type.flags & 1048576 /* Union */ ? mapType(type, getWidenedLiteralType) : type; - } - function getWidenedUniqueESSymbolType(type) { - return type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : type.flags & 1048576 /* Union */ ? mapType(type, getWidenedUniqueESSymbolType) : type; - } - function getWidenedLiteralLikeTypeForContextualType(type, contextualType) { - if (!isLiteralOfContextualType(type, contextualType)) { - type = getWidenedUniqueESSymbolType(getWidenedLiteralType(type)); - } - return getRegularTypeOfLiteralType(type); - } - function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(type, contextualSignatureReturnType, isAsync) { - if (type && isUnitType(type)) { - const contextualType = !contextualSignatureReturnType ? void 0 : isAsync ? getPromisedTypeOfPromise(contextualSignatureReturnType) : contextualSignatureReturnType; - type = getWidenedLiteralLikeTypeForContextualType(type, contextualType); - } - return type; - } - function getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(type, contextualSignatureReturnType, kind, isAsyncGenerator) { - if (type && isUnitType(type)) { - const contextualType = !contextualSignatureReturnType ? void 0 : getIterationTypeOfGeneratorFunctionReturnType(kind, contextualSignatureReturnType, isAsyncGenerator); - type = getWidenedLiteralLikeTypeForContextualType(type, contextualType); - } - return type; - } - function isTupleType(type) { - return !!(getObjectFlags(type) & 4 /* Reference */ && type.target.objectFlags & 8 /* Tuple */); - } - function isGenericTupleType(type) { - return isTupleType(type) && !!(type.target.combinedFlags & 8 /* Variadic */); - } - function isSingleElementGenericTupleType(type) { - return isGenericTupleType(type) && type.target.elementFlags.length === 1; - } - function getRestTypeOfTupleType(type) { - return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); - } - function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { - return mapType(type, (t) => { - const tupleType = t; - const restType = getRestTypeOfTupleType(tupleType); - if (!restType) { - return undefinedType; - } - if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { - return getUnionType([restType, undefinedOrMissingType2]); - } - return restType; - }); - } - function getRestArrayTypeOfTupleType(type) { - const restType = getRestTypeOfTupleType(type); - return restType && createArrayType(restType); - } - function getElementTypeOfSliceOfTupleType(type, index, endSkipCount = 0, writing = false, noReductions = false) { - const length2 = getTypeReferenceArity(type) - endSkipCount; - if (index < length2) { - const typeArguments = getTypeArguments(type); - const elementTypes = []; - for (let i = index; i < length2; i++) { - const t = typeArguments[i]; - elementTypes.push(type.target.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t); - } - return writing ? getIntersectionType(elementTypes) : getUnionType(elementTypes, noReductions ? 0 /* None */ : 1 /* Literal */); - } - return void 0; - } - function isTupleTypeStructureMatching(t1, t2) { - return getTypeReferenceArity(t1) === getTypeReferenceArity(t2) && every(t1.target.elementFlags, (f, i) => (f & 12 /* Variable */) === (t2.target.elementFlags[i] & 12 /* Variable */)); - } - function isZeroBigInt({ value }) { - return value.base10Value === "0"; - } - function removeDefinitelyFalsyTypes(type) { - return filterType(type, (t) => hasTypeFacts(t, 4194304 /* Truthy */)); - } - function extractDefinitelyFalsyTypes(type) { - return mapType(type, getDefinitelyFalsyPartOfType); - } - function getDefinitelyFalsyPartOfType(type) { - return type.flags & 4 /* String */ ? emptyStringType : type.flags & 8 /* Number */ ? zeroType : type.flags & 64 /* BigInt */ ? zeroBigIntType : type === regularFalseType || type === falseType || type.flags & (16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */ | 3 /* AnyOrUnknown */) || type.flags & 128 /* StringLiteral */ && type.value === "" || type.flags & 256 /* NumberLiteral */ && type.value === 0 || type.flags & 2048 /* BigIntLiteral */ && isZeroBigInt(type) ? type : neverType; - } - function getNullableType(type, flags) { - const missing = flags & ~type.flags & (32768 /* Undefined */ | 65536 /* Null */); - return missing === 0 ? type : missing === 32768 /* Undefined */ ? getUnionType([type, undefinedType]) : missing === 65536 /* Null */ ? getUnionType([type, nullType]) : getUnionType([type, undefinedType, nullType]); - } - function getOptionalType(type, isProperty = false) { - Debug.assert(strictNullChecks); - const missingOrUndefined = isProperty ? undefinedOrMissingType : undefinedType; - return type === missingOrUndefined || type.flags & 1048576 /* Union */ && type.types[0] === missingOrUndefined ? type : getUnionType([type, missingOrUndefined]); - } - function getGlobalNonNullableTypeInstantiation(type) { - if (!deferredGlobalNonNullableTypeAlias) { - deferredGlobalNonNullableTypeAlias = getGlobalSymbol( - "NonNullable", - 524288 /* TypeAlias */, - /*diagnostic*/ - void 0 - ) || unknownSymbol; - } - return deferredGlobalNonNullableTypeAlias !== unknownSymbol ? getTypeAliasInstantiation(deferredGlobalNonNullableTypeAlias, [type]) : getIntersectionType([type, emptyObjectType]); - } - function getNonNullableType(type) { - return strictNullChecks ? getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; - } - function addOptionalTypeMarker(type) { - return strictNullChecks ? getUnionType([type, optionalType]) : type; - } - function removeOptionalTypeMarker(type) { - return strictNullChecks ? removeType(type, optionalType) : type; - } - function propagateOptionalTypeMarker(type, node, wasOptional) { - return wasOptional ? isOutermostOptionalChain(node) ? getOptionalType(type) : addOptionalTypeMarker(type) : type; - } - function getOptionalExpressionType(exprType, expression) { - return isExpressionOfOptionalChainRoot(expression) ? getNonNullableType(exprType) : isOptionalChain(expression) ? removeOptionalTypeMarker(exprType) : exprType; - } - function removeMissingType(type, isOptional) { - return exactOptionalPropertyTypes && isOptional ? removeType(type, missingType) : type; - } - function containsMissingType(type) { - return type === missingType || !!(type.flags & 1048576 /* Union */) && type.types[0] === missingType; - } - function removeMissingOrUndefinedType(type) { - return exactOptionalPropertyTypes ? removeType(type, missingType) : getTypeWithFacts(type, 524288 /* NEUndefined */); - } - function isCoercibleUnderDoubleEquals(source, target) { - return (source.flags & (8 /* Number */ | 4 /* String */ | 512 /* BooleanLiteral */)) !== 0 && (target.flags & (8 /* Number */ | 4 /* String */ | 16 /* Boolean */)) !== 0; - } - function isObjectTypeWithInferableIndex(type) { - const objectFlags = getObjectFlags(type); - return type.flags & 2097152 /* Intersection */ ? every(type.types, isObjectTypeWithInferableIndex) : !!(type.symbol && (type.symbol.flags & (4096 /* ObjectLiteral */ | 2048 /* TypeLiteral */ | 384 /* Enum */ | 512 /* ValueModule */)) !== 0 && !(type.symbol.flags & 32 /* Class */) && !typeHasCallOrConstructSignatures(type)) || !!(objectFlags & 4194304 /* ObjectRestType */) || !!(objectFlags & 1024 /* ReverseMapped */ && isObjectTypeWithInferableIndex(type.source)); - } - function createSymbolWithType(source, type) { - const symbol = createSymbol(source.flags, source.escapedName, getCheckFlags(source) & 8 /* Readonly */); - symbol.declarations = source.declarations; - symbol.parent = source.parent; - symbol.links.type = type; - symbol.links.target = source; - if (source.valueDeclaration) { - symbol.valueDeclaration = source.valueDeclaration; - } - const nameType = getSymbolLinks(source).nameType; - if (nameType) { - symbol.links.nameType = nameType; - } - return symbol; - } - function transformTypeOfMembers(type, f) { - const members = createSymbolTable(); - for (const property of getPropertiesOfObjectType(type)) { - const original = getTypeOfSymbol(property); - const updated = f(original); - members.set(property.escapedName, updated === original ? property : createSymbolWithType(property, updated)); - } - return members; - } - function getRegularTypeOfObjectLiteral(type) { - if (!(isObjectLiteralType(type) && getObjectFlags(type) & 8192 /* FreshLiteral */)) { - return type; - } - const regularType = type.regularType; - if (regularType) { - return regularType; - } - const resolved = type; - const members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral); - const regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos); - regularNew.flags = resolved.flags; - regularNew.objectFlags |= resolved.objectFlags & ~8192 /* FreshLiteral */; - type.regularType = regularNew; - return regularNew; - } - function createWideningContext(parent, propertyName, siblings) { - return { parent, propertyName, siblings, resolvedProperties: void 0 }; - } - function getSiblingsOfContext(context) { - if (!context.siblings) { - const siblings = []; - for (const type of getSiblingsOfContext(context.parent)) { - if (isObjectLiteralType(type)) { - const prop = getPropertyOfObjectType(type, context.propertyName); - if (prop) { - forEachType(getTypeOfSymbol(prop), (t) => { - siblings.push(t); - }); - } - } - } - context.siblings = siblings; - } - return context.siblings; - } - function getPropertiesOfContext(context) { - if (!context.resolvedProperties) { - const names = /* @__PURE__ */ new Map(); - for (const t of getSiblingsOfContext(context)) { - if (isObjectLiteralType(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) { - for (const prop of getPropertiesOfType(t)) { - names.set(prop.escapedName, prop); - } - } - } - context.resolvedProperties = arrayFrom(names.values()); - } - return context.resolvedProperties; - } - function getWidenedProperty(prop, context) { - if (!(prop.flags & 4 /* Property */)) { - return prop; - } - const original = getTypeOfSymbol(prop); - const propContext = context && createWideningContext( - context, - prop.escapedName, - /*siblings*/ - void 0 - ); - const widened = getWidenedTypeWithContext(original, propContext); - return widened === original ? prop : createSymbolWithType(prop, widened); - } - function getUndefinedProperty(prop) { - const cached = undefinedProperties.get(prop.escapedName); - if (cached) { - return cached; - } - const result = createSymbolWithType(prop, undefinedOrMissingType); - result.flags |= 16777216 /* Optional */; - undefinedProperties.set(prop.escapedName, result); - return result; - } - function getWidenedTypeOfObjectLiteral(type, context) { - const members = createSymbolTable(); - for (const prop of getPropertiesOfObjectType(type)) { - members.set(prop.escapedName, getWidenedProperty(prop, context)); - } - if (context) { - for (const prop of getPropertiesOfContext(context)) { - if (!members.has(prop.escapedName)) { - members.set(prop.escapedName, getUndefinedProperty(prop)); - } - } - } - const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components))); - result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */); - return result; - } - function getWidenedType(type) { - return getWidenedTypeWithContext( - type, - /*context*/ - void 0 - ); - } - function getWidenedTypeWithContext(type, context) { - if (getObjectFlags(type) & 196608 /* RequiresWidening */) { - if (context === void 0 && type.widened) { - return type.widened; - } - let result; - if (type.flags & (1 /* Any */ | 98304 /* Nullable */)) { - result = anyType; - } else if (isObjectLiteralType(type)) { - result = getWidenedTypeOfObjectLiteral(type, context); - } else if (type.flags & 1048576 /* Union */) { - const unionContext = context || createWideningContext( - /*parent*/ - void 0, - /*propertyName*/ - void 0, - type.types - ); - const widenedTypes = sameMap(type.types, (t) => t.flags & 98304 /* Nullable */ ? t : getWidenedTypeWithContext(t, unionContext)); - result = getUnionType(widenedTypes, some(widenedTypes, isEmptyObjectType) ? 2 /* Subtype */ : 1 /* Literal */); - } else if (type.flags & 2097152 /* Intersection */) { - result = getIntersectionType(sameMap(type.types, getWidenedType)); - } else if (isArrayOrTupleType(type)) { - result = createTypeReference(type.target, sameMap(getTypeArguments(type), getWidenedType)); - } - if (result && context === void 0) { - type.widened = result; - } - return result || type; - } - return type; - } - function reportWideningErrorsInType(type) { - var _a; - let errorReported = false; - if (getObjectFlags(type) & 65536 /* ContainsWideningType */) { - if (type.flags & 1048576 /* Union */) { - if (some(type.types, isEmptyObjectType)) { - errorReported = true; - } else { - for (const t of type.types) { - errorReported || (errorReported = reportWideningErrorsInType(t)); - } - } - } else if (isArrayOrTupleType(type)) { - for (const t of getTypeArguments(type)) { - errorReported || (errorReported = reportWideningErrorsInType(t)); - } - } else if (isObjectLiteralType(type)) { - for (const p of getPropertiesOfObjectType(type)) { - const t = getTypeOfSymbol(p); - if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { - errorReported = reportWideningErrorsInType(t); - if (!errorReported) { - const valueDeclaration = (_a = p.declarations) == null ? void 0 : _a.find((d) => { - var _a2; - return ((_a2 = d.symbol.valueDeclaration) == null ? void 0 : _a2.parent) === type.symbol.valueDeclaration; - }); - if (valueDeclaration) { - error(valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); - errorReported = true; - } - } - } - } - } - } - return errorReported; - } - function reportImplicitAny(declaration, type, wideningKind) { - const typeAsString = typeToString(getWidenedType(type)); - if (isInJSFile(declaration) && !isCheckJsEnabledForFile(getSourceFileOfNode(declaration), compilerOptions)) { - return; - } - let diagnostic; - switch (declaration.kind) { - case 226 /* BinaryExpression */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; - break; - case 169 /* Parameter */: - const param = declaration; - if (isIdentifier(param.name)) { - const originalKeywordKind = identifierToKeywordKind(param.name); - if ((isCallSignatureDeclaration(param.parent) || isMethodSignature(param.parent) || isFunctionTypeNode(param.parent)) && param.parent.parameters.includes(param) && (resolveName( - param, - param.name.escapedText, - 788968 /* Type */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ) || originalKeywordKind && isTypeNodeKind(originalKeywordKind))) { - const newName = "arg" + param.parent.parameters.indexOf(param); - const typeName = declarationNameToString(param.name) + (param.dotDotDotToken ? "[]" : ""); - errorOrSuggestion(noImplicitAny, declaration, Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, typeName); - return; - } - } - diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; - break; - case 208 /* BindingElement */: - diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; - if (!noImplicitAny) { - return; - } - break; - case 317 /* JSDocFunctionType */: - error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); - return; - case 323 /* JSDocSignature */: - if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { - error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); - } - return; - case 262 /* FunctionDeclaration */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - if (noImplicitAny && !declaration.name) { - if (wideningKind === 3 /* GeneratorYield */) { - error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation, typeAsString); - } else { - error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); - } - return; - } - diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; - break; - case 200 /* MappedType */: - if (noImplicitAny) { - error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); - } - return; - default: - diagnostic = noImplicitAny ? Diagnostics.Variable_0_implicitly_has_an_1_type : Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; - } - errorOrSuggestion(noImplicitAny, declaration, diagnostic, declarationNameToString(getNameOfDeclaration(declaration)), typeAsString); - } - function shouldReportErrorsFromWideningWithContextualSignature(declaration, wideningKind) { - const signature = getContextualSignatureForFunctionLikeDeclaration(declaration); - if (!signature) { - return true; - } - let returnType = getReturnTypeOfSignature(signature); - const flags = getFunctionFlags(declaration); - switch (wideningKind) { - case 1 /* FunctionReturn */: - if (flags & 1 /* Generator */) { - returnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, !!(flags & 2 /* Async */)) ?? returnType; - } else if (flags & 2 /* Async */) { - returnType = getAwaitedTypeNoAlias(returnType) ?? returnType; - } - return isGenericType(returnType); - case 3 /* GeneratorYield */: - const yieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, !!(flags & 2 /* Async */)); - return !!yieldType && isGenericType(yieldType); - case 2 /* GeneratorNext */: - const nextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, !!(flags & 2 /* Async */)); - return !!nextType && isGenericType(nextType); - } - return false; - } - function reportErrorsFromWidening(declaration, type, wideningKind) { - addLazyDiagnostic(() => { - if (noImplicitAny && getObjectFlags(type) & 65536 /* ContainsWideningType */) { - if (!wideningKind || isFunctionLikeDeclaration(declaration) && shouldReportErrorsFromWideningWithContextualSignature(declaration, wideningKind)) { - if (!reportWideningErrorsInType(type)) { - reportImplicitAny(declaration, type, wideningKind); - } - } - } - }); - } - function applyToParameterTypes(source, target, callback) { - const sourceCount = getParameterCount(source); - const targetCount = getParameterCount(target); - const sourceRestType = getEffectiveRestType(source); - const targetRestType = getEffectiveRestType(target); - const targetNonRestCount = targetRestType ? targetCount - 1 : targetCount; - const paramCount = sourceRestType ? targetNonRestCount : Math.min(sourceCount, targetNonRestCount); - const sourceThisType = getThisTypeOfSignature(source); - if (sourceThisType) { - const targetThisType = getThisTypeOfSignature(target); - if (targetThisType) { - callback(sourceThisType, targetThisType); - } - } - for (let i = 0; i < paramCount; i++) { - callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i)); - } - if (targetRestType) { - callback(getRestTypeAtPosition( - source, - paramCount, - /*readonly*/ - isConstTypeVariable(targetRestType) && !someType(targetRestType, isMutableArrayLikeType) - ), targetRestType); - } - } - function applyToReturnTypes(source, target, callback) { - const targetTypePredicate = getTypePredicateOfSignature(target); - if (targetTypePredicate) { - const sourceTypePredicate = getTypePredicateOfSignature(source); - if (sourceTypePredicate && typePredicateKindsMatch(sourceTypePredicate, targetTypePredicate) && sourceTypePredicate.type && targetTypePredicate.type) { - callback(sourceTypePredicate.type, targetTypePredicate.type); - return; - } - } - const targetReturnType = getReturnTypeOfSignature(target); - if (couldContainTypeVariables(targetReturnType)) { - callback(getReturnTypeOfSignature(source), targetReturnType); - } - } - function createInferenceContext(typeParameters, signature, flags, compareTypes) { - return createInferenceContextWorker(typeParameters.map(createInferenceInfo), signature, flags, compareTypes || compareTypesAssignable); - } - function cloneInferenceContext(context, extraFlags = 0) { - return context && createInferenceContextWorker(map(context.inferences, cloneInferenceInfo), context.signature, context.flags | extraFlags, context.compareTypes); - } - function createInferenceContextWorker(inferences, signature, flags, compareTypes) { - const context = { - inferences, - signature, - flags, - compareTypes, - mapper: reportUnmeasurableMapper, - // initialize to a noop mapper so the context object is available, but the underlying object shape is right upon construction - nonFixingMapper: reportUnmeasurableMapper - }; - context.mapper = makeFixingMapperForContext(context); - context.nonFixingMapper = makeNonFixingMapperForContext(context); - return context; - } - function makeFixingMapperForContext(context) { - return makeDeferredTypeMapper( - map(context.inferences, (i) => i.typeParameter), - map(context.inferences, (inference, i) => () => { - if (!inference.isFixed) { - inferFromIntraExpressionSites(context); - clearCachedInferences(context.inferences); - inference.isFixed = true; - } - return getInferredType(context, i); - }) - ); - } - function makeNonFixingMapperForContext(context) { - return makeDeferredTypeMapper( - map(context.inferences, (i) => i.typeParameter), - map(context.inferences, (_, i) => () => { - return getInferredType(context, i); - }) - ); - } - function clearCachedInferences(inferences) { - for (const inference of inferences) { - if (!inference.isFixed) { - inference.inferredType = void 0; - } - } - } - function addIntraExpressionInferenceSite(context, node, type) { - (context.intraExpressionInferenceSites ?? (context.intraExpressionInferenceSites = [])).push({ node, type }); - } - function inferFromIntraExpressionSites(context) { - if (context.intraExpressionInferenceSites) { - for (const { node, type } of context.intraExpressionInferenceSites) { - const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType(node, 2 /* NoConstraints */); - if (contextualType) { - inferTypes(context.inferences, type, contextualType); - } - } - context.intraExpressionInferenceSites = void 0; - } - } - function createInferenceInfo(typeParameter) { - return { - typeParameter, - candidates: void 0, - contraCandidates: void 0, - inferredType: void 0, - priority: void 0, - topLevel: true, - isFixed: false, - impliedArity: void 0 - }; - } - function cloneInferenceInfo(inference) { - return { - typeParameter: inference.typeParameter, - candidates: inference.candidates && inference.candidates.slice(), - contraCandidates: inference.contraCandidates && inference.contraCandidates.slice(), - inferredType: inference.inferredType, - priority: inference.priority, - topLevel: inference.topLevel, - isFixed: inference.isFixed, - impliedArity: inference.impliedArity - }; - } - function cloneInferredPartOfContext(context) { - const inferences = filter(context.inferences, hasInferenceCandidates); - return inferences.length ? createInferenceContextWorker(map(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) : void 0; - } - function getMapperFromContext(context) { - return context && context.mapper; - } - function couldContainTypeVariables(type) { - const objectFlags = getObjectFlags(type); - if (objectFlags & 524288 /* CouldContainTypeVariablesComputed */) { - return !!(objectFlags & 1048576 /* CouldContainTypeVariables */); - } - const result = !!(type.flags & 465829888 /* Instantiable */ || type.flags & 524288 /* Object */ && !isNonGenericTopLevelType(type) && (objectFlags & 4 /* Reference */ && (type.node || some(getTypeArguments(type), couldContainTypeVariables)) || objectFlags & 134217728 /* SingleSignatureType */ && !!length(type.outerTypeParameters) || objectFlags & 16 /* Anonymous */ && type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && type.symbol.declarations || objectFlags & (32 /* Mapped */ | 1024 /* ReverseMapped */ | 4194304 /* ObjectRestType */ | 8388608 /* InstantiationExpressionType */)) || type.flags & 3145728 /* UnionOrIntersection */ && !(type.flags & 1024 /* EnumLiteral */) && !isNonGenericTopLevelType(type) && some(type.types, couldContainTypeVariables)); - if (type.flags & 3899393 /* ObjectFlagsType */) { - type.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (result ? 1048576 /* CouldContainTypeVariables */ : 0); - } - return result; - } - function isNonGenericTopLevelType(type) { - if (type.aliasSymbol && !type.aliasTypeArguments) { - const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); - return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 307 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); - } - return false; - } - function isTypeParameterAtTopLevel(type, tp, depth = 0) { - return !!(type === tp || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isTypeParameterAtTopLevel(t, tp, depth)) || depth < 3 && type.flags & 16777216 /* Conditional */ && (isTypeParameterAtTopLevel(getTrueTypeFromConditionalType(type), tp, depth + 1) || isTypeParameterAtTopLevel(getFalseTypeFromConditionalType(type), tp, depth + 1))); - } - function isTypeParameterAtTopLevelInReturnType(signature, typeParameter) { - const typePredicate = getTypePredicateOfSignature(signature); - return typePredicate ? !!typePredicate.type && isTypeParameterAtTopLevel(typePredicate.type, typeParameter) : isTypeParameterAtTopLevel(getReturnTypeOfSignature(signature), typeParameter); - } - function createEmptyObjectTypeFromStringLiteral(type) { - const members = createSymbolTable(); - forEachType(type, (t) => { - if (!(t.flags & 128 /* StringLiteral */)) { - return; - } - const name = escapeLeadingUnderscores(t.value); - const literalProp = createSymbol(4 /* Property */, name); - literalProp.links.type = anyType; - if (t.symbol) { - literalProp.declarations = t.symbol.declarations; - literalProp.valueDeclaration = t.symbol.valueDeclaration; - } - members.set(name, literalProp); - }); - const indexInfos = type.flags & 4 /* String */ ? [createIndexInfo( - stringType, - emptyObjectType, - /*isReadonly*/ - false - )] : emptyArray; - return createAnonymousType( - /*symbol*/ - void 0, - members, - emptyArray, - emptyArray, - indexInfos - ); - } - function inferTypeForHomomorphicMappedType(source, target, constraint) { - const cacheKey = source.id + "," + target.id + "," + constraint.id; - if (reverseHomomorphicMappedCache.has(cacheKey)) { - return reverseHomomorphicMappedCache.get(cacheKey); - } - const type = createReverseMappedType(source, target, constraint); - reverseHomomorphicMappedCache.set(cacheKey, type); - return type; - } - function isPartiallyInferableType(type) { - return !(getObjectFlags(type) & 262144 /* NonInferrableType */) || isObjectLiteralType(type) && some(getPropertiesOfType(type), (prop) => isPartiallyInferableType(getTypeOfSymbol(prop))) || isTupleType(type) && some(getElementTypes(type), isPartiallyInferableType); - } - function createReverseMappedType(source, target, constraint) { - if (!(getIndexInfoOfType(source, stringType) || getPropertiesOfType(source).length !== 0 && isPartiallyInferableType(source))) { - return void 0; - } - if (isArrayType(source)) { - const elementType = inferReverseMappedType(getTypeArguments(source)[0], target, constraint); - if (!elementType) { - return void 0; - } - return createArrayType(elementType, isReadonlyArrayType(source)); - } - if (isTupleType(source)) { - const elementTypes = map(getElementTypes(source), (t) => inferReverseMappedType(t, target, constraint)); - if (!every(elementTypes, (t) => !!t)) { - return void 0; - } - const elementFlags = getMappedTypeModifiers(target) & 4 /* IncludeOptional */ ? sameMap(source.target.elementFlags, (f) => f & 2 /* Optional */ ? 1 /* Required */ : f) : source.target.elementFlags; - return createTupleType(elementTypes, elementFlags, source.target.readonly, source.target.labeledElementDeclarations); - } - const reversed = createObjectType( - 1024 /* ReverseMapped */ | 16 /* Anonymous */, - /*symbol*/ - void 0 - ); - reversed.source = source; - reversed.mappedType = target; - reversed.constraintType = constraint; - return reversed; - } - function getTypeOfReverseMappedSymbol(symbol) { - const links = getSymbolLinks(symbol); - if (!links.type) { - links.type = inferReverseMappedType(symbol.links.propertyType, symbol.links.mappedType, symbol.links.constraintType) || unknownType; - } - return links.type; - } - function inferReverseMappedTypeWorker(sourceType, target, constraint) { - const typeParameter = getIndexedAccessType(constraint.type, getTypeParameterFromMappedType(target)); - const templateType = getTemplateTypeFromMappedType(target); - const inference = createInferenceInfo(typeParameter); - inferTypes([inference], sourceType, templateType); - return getTypeFromInference(inference) || unknownType; - } - function inferReverseMappedType(source, target, constraint) { - const cacheKey = source.id + "," + target.id + "," + constraint.id; - if (reverseMappedCache.has(cacheKey)) { - return reverseMappedCache.get(cacheKey) || unknownType; - } - reverseMappedSourceStack.push(source); - reverseMappedTargetStack.push(target); - const saveExpandingFlags = reverseExpandingFlags; - if (isDeeplyNestedType(source, reverseMappedSourceStack, reverseMappedSourceStack.length, 2)) reverseExpandingFlags |= 1 /* Source */; - if (isDeeplyNestedType(target, reverseMappedTargetStack, reverseMappedTargetStack.length, 2)) reverseExpandingFlags |= 2 /* Target */; - let type; - if (reverseExpandingFlags !== 3 /* Both */) { - type = inferReverseMappedTypeWorker(source, target, constraint); - } - reverseMappedSourceStack.pop(); - reverseMappedTargetStack.pop(); - reverseExpandingFlags = saveExpandingFlags; - reverseMappedCache.set(cacheKey, type); - return type; - } - function* getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties) { - const properties = getPropertiesOfType(target); - for (const targetProp of properties) { - if (isStaticPrivateIdentifierProperty(targetProp)) { - continue; - } - if (requireOptionalProperties || !(targetProp.flags & 16777216 /* Optional */ || getCheckFlags(targetProp) & 48 /* Partial */)) { - const sourceProp = getPropertyOfType(source, targetProp.escapedName); - if (!sourceProp) { - yield targetProp; - } else if (matchDiscriminantProperties) { - const targetType = getTypeOfSymbol(targetProp); - if (targetType.flags & 109472 /* Unit */) { - const sourceType = getTypeOfSymbol(sourceProp); - if (!(sourceType.flags & 1 /* Any */ || getRegularTypeOfLiteralType(sourceType) === getRegularTypeOfLiteralType(targetType))) { - yield targetProp; - } - } - } - } - } - } - function getUnmatchedProperty(source, target, requireOptionalProperties, matchDiscriminantProperties) { - return firstOrUndefinedIterator(getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties)); - } - function tupleTypesDefinitelyUnrelated(source, target) { - return !(target.target.combinedFlags & 8 /* Variadic */) && target.target.minLength > source.target.minLength || !(target.target.combinedFlags & 12 /* Variable */) && (!!(source.target.combinedFlags & 12 /* Variable */) || target.target.fixedLength < source.target.fixedLength); - } - function typesDefinitelyUnrelated(source, target) { - return isTupleType(source) && isTupleType(target) ? tupleTypesDefinitelyUnrelated(source, target) : !!getUnmatchedProperty( - source, - target, - /*requireOptionalProperties*/ - false, - /*matchDiscriminantProperties*/ - true - ) && !!getUnmatchedProperty( - target, - source, - /*requireOptionalProperties*/ - false, - /*matchDiscriminantProperties*/ - false - ); - } - function getTypeFromInference(inference) { - return inference.candidates ? getUnionType(inference.candidates, 2 /* Subtype */) : inference.contraCandidates ? getIntersectionType(inference.contraCandidates) : void 0; - } - function hasSkipDirectInferenceFlag(node) { - return !!getNodeLinks(node).skipDirectInference; - } - function isFromInferenceBlockedSource(type) { - return !!(type.symbol && some(type.symbol.declarations, hasSkipDirectInferenceFlag)); - } - function templateLiteralTypesDefinitelyUnrelated(source, target) { - const sourceStart = source.texts[0]; - const targetStart = target.texts[0]; - const sourceEnd = source.texts[source.texts.length - 1]; - const targetEnd = target.texts[target.texts.length - 1]; - const startLen = Math.min(sourceStart.length, targetStart.length); - const endLen = Math.min(sourceEnd.length, targetEnd.length); - return sourceStart.slice(0, startLen) !== targetStart.slice(0, startLen) || sourceEnd.slice(sourceEnd.length - endLen) !== targetEnd.slice(targetEnd.length - endLen); - } - function isValidNumberString(s, roundTripOnly) { - if (s === "") return false; - const n = +s; - return isFinite(n) && (!roundTripOnly || "" + n === s); - } - function parseBigIntLiteralType(text) { - return getBigIntLiteralType(parseValidBigInt(text)); - } - function isMemberOfStringMapping(source, target) { - if (target.flags & 1 /* Any */) { - return true; - } - if (target.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) { - return isTypeAssignableTo(source, target); - } - if (target.flags & 268435456 /* StringMapping */) { - const mappingStack = []; - while (target.flags & 268435456 /* StringMapping */) { - mappingStack.unshift(target.symbol); - target = target.type; - } - const mappedSource = reduceLeft(mappingStack, (memo, value) => getStringMappingType(value, memo), source); - return mappedSource === source && isMemberOfStringMapping(source, target); - } - return false; - } - function isValidTypeForTemplateLiteralPlaceholder(source, target) { - if (target.flags & 2097152 /* Intersection */) { - return every(target.types, (t) => t === emptyTypeLiteralType || isValidTypeForTemplateLiteralPlaceholder(source, t)); - } - if (target.flags & 4 /* String */ || isTypeAssignableTo(source, target)) { - return true; - } - if (source.flags & 128 /* StringLiteral */) { - const value = source.value; - return !!(target.flags & 8 /* Number */ && isValidNumberString( - value, - /*roundTripOnly*/ - false - ) || target.flags & 64 /* BigInt */ && isValidBigIntString( - value, - /*roundTripOnly*/ - false - ) || target.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) && value === target.intrinsicName || target.flags & 268435456 /* StringMapping */ && isMemberOfStringMapping(getStringLiteralType(value), target) || target.flags & 134217728 /* TemplateLiteral */ && isTypeMatchedByTemplateLiteralType(source, target)); - } - if (source.flags & 134217728 /* TemplateLiteral */) { - const texts = source.texts; - return texts.length === 2 && texts[0] === "" && texts[1] === "" && isTypeAssignableTo(source.types[0], target); - } - return false; - } - function inferTypesFromTemplateLiteralType(source, target) { - return source.flags & 128 /* StringLiteral */ ? inferFromLiteralPartsToTemplateLiteral([source.value], emptyArray, target) : source.flags & 134217728 /* TemplateLiteral */ ? arrayIsEqualTo(source.texts, target.texts) ? map(source.types, (s, i) => { - return isTypeAssignableTo(getBaseConstraintOrType(s), getBaseConstraintOrType(target.types[i])) ? s : getStringLikeTypeForType(s); - }) : inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) : void 0; - } - function isTypeMatchedByTemplateLiteralType(source, target) { - const inferences = inferTypesFromTemplateLiteralType(source, target); - return !!inferences && every(inferences, (r, i) => isValidTypeForTemplateLiteralPlaceholder(r, target.types[i])); - } - function getStringLikeTypeForType(type) { - return type.flags & (1 /* Any */ | 402653316 /* StringLike */) ? type : getTemplateLiteralType(["", ""], [type]); - } - function inferFromLiteralPartsToTemplateLiteral(sourceTexts, sourceTypes, target) { - const lastSourceIndex = sourceTexts.length - 1; - const sourceStartText = sourceTexts[0]; - const sourceEndText = sourceTexts[lastSourceIndex]; - const targetTexts = target.texts; - const lastTargetIndex = targetTexts.length - 1; - const targetStartText = targetTexts[0]; - const targetEndText = targetTexts[lastTargetIndex]; - if (lastSourceIndex === 0 && sourceStartText.length < targetStartText.length + targetEndText.length || !sourceStartText.startsWith(targetStartText) || !sourceEndText.endsWith(targetEndText)) return void 0; - const remainingEndText = sourceEndText.slice(0, sourceEndText.length - targetEndText.length); - const matches = []; - let seg = 0; - let pos = targetStartText.length; - for (let i = 1; i < lastTargetIndex; i++) { - const delim = targetTexts[i]; - if (delim.length > 0) { - let s = seg; - let p = pos; - while (true) { - p = getSourceText(s).indexOf(delim, p); - if (p >= 0) break; - s++; - if (s === sourceTexts.length) return void 0; - p = 0; - } - addMatch(s, p); - pos += delim.length; - } else if (pos < getSourceText(seg).length) { - addMatch(seg, pos + 1); - } else if (seg < lastSourceIndex) { - addMatch(seg + 1, 0); - } else { - return void 0; - } - } - addMatch(lastSourceIndex, getSourceText(lastSourceIndex).length); - return matches; - function getSourceText(index) { - return index < lastSourceIndex ? sourceTexts[index] : remainingEndText; - } - function addMatch(s, p) { - const matchType = s === seg ? getStringLiteralType(getSourceText(s).slice(pos, p)) : getTemplateLiteralType( - [sourceTexts[seg].slice(pos), ...sourceTexts.slice(seg + 1, s), getSourceText(s).slice(0, p)], - sourceTypes.slice(seg, s) - ); - matches.push(matchType); - seg = s; - pos = p; - } - } - function isTupleOfSelf(typeParameter, type) { - return isTupleType(type) && getTupleElementType(type, 0) === getIndexedAccessType(typeParameter, getNumberLiteralType(0)) && !getTypeOfPropertyOfType(type, "1"); - } - function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) { - let bivariant = false; - let propagationType; - let inferencePriority = 2048 /* MaxValue */; - let visited; - let sourceStack; - let targetStack; - let expandingFlags = 0 /* None */; - inferFromTypes(originalSource, originalTarget); - function inferFromTypes(source, target) { - if (!couldContainTypeVariables(target) || isNoInferType(target)) { - return; - } - if (source === wildcardType || source === blockedStringType) { - const savePropagationType = propagationType; - propagationType = source; - inferFromTypes(target, target); - propagationType = savePropagationType; - return; - } - if (source.aliasSymbol && source.aliasSymbol === target.aliasSymbol) { - if (source.aliasTypeArguments) { - const params = getSymbolLinks(source.aliasSymbol).typeParameters; - const minParams = getMinTypeArgumentCount(params); - const sourceTypes = fillMissingTypeArguments(source.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration)); - const targetTypes = fillMissingTypeArguments(target.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration)); - inferFromTypeArguments(sourceTypes, targetTypes, getAliasVariances(source.aliasSymbol)); - } - return; - } - if (source === target && source.flags & 3145728 /* UnionOrIntersection */) { - for (const t of source.types) { - inferFromTypes(t, t); - } - return; - } - if (target.flags & 1048576 /* Union */) { - const [tempSources, tempTargets] = inferFromMatchingTypes(source.flags & 1048576 /* Union */ ? source.types : [source], target.types, isTypeOrBaseIdenticalTo); - const [sources, targets] = inferFromMatchingTypes(tempSources, tempTargets, isTypeCloselyMatchedBy); - if (targets.length === 0) { - return; - } - target = getUnionType(targets); - if (sources.length === 0) { - inferWithPriority(source, target, 1 /* NakedTypeVariable */); - return; - } - source = getUnionType(sources); - } else if (target.flags & 2097152 /* Intersection */ && !every(target.types, isNonGenericObjectType)) { - if (!(source.flags & 1048576 /* Union */)) { - const [sources, targets] = inferFromMatchingTypes(source.flags & 2097152 /* Intersection */ ? source.types : [source], target.types, isTypeIdenticalTo); - if (sources.length === 0 || targets.length === 0) { - return; - } - source = getIntersectionType(sources); - target = getIntersectionType(targets); - } - } - if (target.flags & (8388608 /* IndexedAccess */ | 33554432 /* Substitution */)) { - if (isNoInferType(target)) { - return; - } - target = getActualTypeVariable(target); - } - if (target.flags & 8650752 /* TypeVariable */) { - if (isFromInferenceBlockedSource(source)) { - return; - } - const inference = getInferenceInfoForType(target); - if (inference) { - if (getObjectFlags(source) & 262144 /* NonInferrableType */ || source === nonInferrableAnyType) { - return; - } - if (!inference.isFixed) { - const candidate = propagationType || source; - if (candidate === blockedStringType) { - return; - } - if (inference.priority === void 0 || priority < inference.priority) { - inference.candidates = void 0; - inference.contraCandidates = void 0; - inference.topLevel = true; - inference.priority = priority; - } - if (priority === inference.priority) { - if (isTupleOfSelf(inference.typeParameter, candidate)) { - return; - } - if (contravariant && !bivariant) { - if (!contains(inference.contraCandidates, candidate)) { - inference.contraCandidates = append(inference.contraCandidates, candidate); - clearCachedInferences(inferences); - } - } else if (!contains(inference.candidates, candidate)) { - inference.candidates = append(inference.candidates, candidate); - clearCachedInferences(inferences); - } - } - if (!(priority & 128 /* ReturnType */) && target.flags & 262144 /* TypeParameter */ && inference.topLevel && !isTypeParameterAtTopLevel(originalTarget, target)) { - inference.topLevel = false; - clearCachedInferences(inferences); - } - } - inferencePriority = Math.min(inferencePriority, priority); - return; - } - const simplified = getSimplifiedType( - target, - /*writing*/ - false - ); - if (simplified !== target) { - inferFromTypes(source, simplified); - } else if (target.flags & 8388608 /* IndexedAccess */) { - const indexType = getSimplifiedType( - target.indexType, - /*writing*/ - false - ); - if (indexType.flags & 465829888 /* Instantiable */) { - const simplified2 = distributeIndexOverObjectType( - getSimplifiedType( - target.objectType, - /*writing*/ - false - ), - indexType, - /*writing*/ - false - ); - if (simplified2 && simplified2 !== target) { - inferFromTypes(source, simplified2); - } - } - } - } - if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target)) && !(source.node && target.node)) { - inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target)); - } else if (source.flags & 4194304 /* Index */ && target.flags & 4194304 /* Index */) { - inferFromContravariantTypes(source.type, target.type); - } else if ((isLiteralType(source) || source.flags & 4 /* String */) && target.flags & 4194304 /* Index */) { - const empty = createEmptyObjectTypeFromStringLiteral(source); - inferFromContravariantTypesWithPriority(empty, target.type, 256 /* LiteralKeyof */); - } else if (source.flags & 8388608 /* IndexedAccess */ && target.flags & 8388608 /* IndexedAccess */) { - inferFromTypes(source.objectType, target.objectType); - inferFromTypes(source.indexType, target.indexType); - } else if (source.flags & 268435456 /* StringMapping */ && target.flags & 268435456 /* StringMapping */) { - if (source.symbol === target.symbol) { - inferFromTypes(source.type, target.type); - } - } else if (source.flags & 33554432 /* Substitution */) { - inferFromTypes(source.baseType, target); - inferWithPriority(getSubstitutionIntersection(source), target, 4 /* SubstituteSource */); - } else if (target.flags & 16777216 /* Conditional */) { - invokeOnce(source, target, inferToConditionalType); - } else if (target.flags & 3145728 /* UnionOrIntersection */) { - inferToMultipleTypes(source, target.types, target.flags); - } else if (source.flags & 1048576 /* Union */) { - const sourceTypes = source.types; - for (const sourceType of sourceTypes) { - inferFromTypes(sourceType, target); - } - } else if (target.flags & 134217728 /* TemplateLiteral */) { - inferToTemplateLiteralType(source, target); - } else { - source = getReducedType(source); - if (isGenericMappedType(source) && isGenericMappedType(target)) { - invokeOnce(source, target, inferFromGenericMappedTypes); - } - if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) { - const apparentSource = getApparentType(source); - if (apparentSource !== source && !(apparentSource.flags & (524288 /* Object */ | 2097152 /* Intersection */))) { - return inferFromTypes(apparentSource, target); - } - source = apparentSource; - } - if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { - invokeOnce(source, target, inferFromObjectTypes); - } - } - } - function inferWithPriority(source, target, newPriority) { - const savePriority = priority; - priority |= newPriority; - inferFromTypes(source, target); - priority = savePriority; - } - function inferFromContravariantTypesWithPriority(source, target, newPriority) { - const savePriority = priority; - priority |= newPriority; - inferFromContravariantTypes(source, target); - priority = savePriority; - } - function inferToMultipleTypesWithPriority(source, targets, targetFlags, newPriority) { - const savePriority = priority; - priority |= newPriority; - inferToMultipleTypes(source, targets, targetFlags); - priority = savePriority; - } - function invokeOnce(source, target, action) { - const key = source.id + "," + target.id; - const status = visited && visited.get(key); - if (status !== void 0) { - inferencePriority = Math.min(inferencePriority, status); - return; - } - (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */); - const saveInferencePriority = inferencePriority; - inferencePriority = 2048 /* MaxValue */; - const saveExpandingFlags = expandingFlags; - (sourceStack ?? (sourceStack = [])).push(source); - (targetStack ?? (targetStack = [])).push(target); - if (isDeeplyNestedType(source, sourceStack, sourceStack.length, 2)) expandingFlags |= 1 /* Source */; - if (isDeeplyNestedType(target, targetStack, targetStack.length, 2)) expandingFlags |= 2 /* Target */; - if (expandingFlags !== 3 /* Both */) { - action(source, target); - } else { - inferencePriority = -1 /* Circularity */; - } - targetStack.pop(); - sourceStack.pop(); - expandingFlags = saveExpandingFlags; - visited.set(key, inferencePriority); - inferencePriority = Math.min(inferencePriority, saveInferencePriority); - } - function inferFromMatchingTypes(sources, targets, matches) { - let matchedSources; - let matchedTargets; - for (const t of targets) { - for (const s of sources) { - if (matches(s, t)) { - inferFromTypes(s, t); - matchedSources = appendIfUnique(matchedSources, s); - matchedTargets = appendIfUnique(matchedTargets, t); - } - } - } - return [ - matchedSources ? filter(sources, (t) => !contains(matchedSources, t)) : sources, - matchedTargets ? filter(targets, (t) => !contains(matchedTargets, t)) : targets - ]; - } - function inferFromTypeArguments(sourceTypes, targetTypes, variances) { - const count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length; - for (let i = 0; i < count; i++) { - if (i < variances.length && (variances[i] & 7 /* VarianceMask */) === 2 /* Contravariant */) { - inferFromContravariantTypes(sourceTypes[i], targetTypes[i]); - } else { - inferFromTypes(sourceTypes[i], targetTypes[i]); - } - } - } - function inferFromContravariantTypes(source, target) { - contravariant = !contravariant; - inferFromTypes(source, target); - contravariant = !contravariant; - } - function inferFromContravariantTypesIfStrictFunctionTypes(source, target) { - if (strictFunctionTypes || priority & 1024 /* AlwaysStrict */) { - inferFromContravariantTypes(source, target); - } else { - inferFromTypes(source, target); - } - } - function getInferenceInfoForType(type) { - if (type.flags & 8650752 /* TypeVariable */) { - for (const inference of inferences) { - if (type === inference.typeParameter) { - return inference; - } - } - } - return void 0; - } - function getSingleTypeVariableFromIntersectionTypes(types) { - let typeVariable; - for (const type of types) { - const t = type.flags & 2097152 /* Intersection */ && find(type.types, (t2) => !!getInferenceInfoForType(t2)); - if (!t || typeVariable && t !== typeVariable) { - return void 0; - } - typeVariable = t; - } - return typeVariable; - } - function inferToMultipleTypes(source, targets, targetFlags) { - let typeVariableCount = 0; - if (targetFlags & 1048576 /* Union */) { - let nakedTypeVariable; - const sources = source.flags & 1048576 /* Union */ ? source.types : [source]; - const matched = new Array(sources.length); - let inferenceCircularity = false; - for (const t of targets) { - if (getInferenceInfoForType(t)) { - nakedTypeVariable = t; - typeVariableCount++; - } else { - for (let i = 0; i < sources.length; i++) { - const saveInferencePriority = inferencePriority; - inferencePriority = 2048 /* MaxValue */; - inferFromTypes(sources[i], t); - if (inferencePriority === priority) matched[i] = true; - inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */; - inferencePriority = Math.min(inferencePriority, saveInferencePriority); - } - } - } - if (typeVariableCount === 0) { - const intersectionTypeVariable = getSingleTypeVariableFromIntersectionTypes(targets); - if (intersectionTypeVariable) { - inferWithPriority(source, intersectionTypeVariable, 1 /* NakedTypeVariable */); - } - return; - } - if (typeVariableCount === 1 && !inferenceCircularity) { - const unmatched = flatMap(sources, (s, i) => matched[i] ? void 0 : s); - if (unmatched.length) { - inferFromTypes(getUnionType(unmatched), nakedTypeVariable); - return; - } - } - } else { - for (const t of targets) { - if (getInferenceInfoForType(t)) { - typeVariableCount++; - } else { - inferFromTypes(source, t); - } - } - } - if (targetFlags & 2097152 /* Intersection */ ? typeVariableCount === 1 : typeVariableCount > 0) { - for (const t of targets) { - if (getInferenceInfoForType(t)) { - inferWithPriority(source, t, 1 /* NakedTypeVariable */); - } - } - } - } - function inferToMappedType(source, target, constraintType) { - if (constraintType.flags & 1048576 /* Union */ || constraintType.flags & 2097152 /* Intersection */) { - let result = false; - for (const type of constraintType.types) { - result = inferToMappedType(source, target, type) || result; - } - return result; - } - if (constraintType.flags & 4194304 /* Index */) { - const inference = getInferenceInfoForType(constraintType.type); - if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) { - const inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType); - if (inferredType) { - inferWithPriority( - inferredType, - inference.typeParameter, - getObjectFlags(source) & 262144 /* NonInferrableType */ ? 16 /* PartialHomomorphicMappedType */ : 8 /* HomomorphicMappedType */ - ); - } - } - return true; - } - if (constraintType.flags & 262144 /* TypeParameter */) { - inferWithPriority(getIndexType( - source, - /*indexFlags*/ - !!source.pattern ? 2 /* NoIndexSignatures */ : 0 /* None */ - ), constraintType, 32 /* MappedTypeConstraint */); - const extendedConstraint = getConstraintOfType(constraintType); - if (extendedConstraint && inferToMappedType(source, target, extendedConstraint)) { - return true; - } - const propTypes = map(getPropertiesOfType(source), getTypeOfSymbol); - const indexTypes = map(getIndexInfosOfType(source), (info) => info !== enumNumberIndexInfo ? info.type : neverType); - inferFromTypes(getUnionType(concatenate(propTypes, indexTypes)), getTemplateTypeFromMappedType(target)); - return true; - } - return false; - } - function inferToConditionalType(source, target) { - if (source.flags & 16777216 /* Conditional */) { - inferFromTypes(source.checkType, target.checkType); - inferFromTypes(source.extendsType, target.extendsType); - inferFromTypes(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target)); - inferFromTypes(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target)); - } else { - const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)]; - inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 /* ContravariantConditional */ : 0); - } - } - function inferToTemplateLiteralType(source, target) { - const matches = inferTypesFromTemplateLiteralType(source, target); - const types = target.types; - if (matches || every(target.texts, (s) => s.length === 0)) { - for (let i = 0; i < types.length; i++) { - const source2 = matches ? matches[i] : neverType; - const target2 = types[i]; - if (source2.flags & 128 /* StringLiteral */ && target2.flags & 8650752 /* TypeVariable */) { - const inferenceContext = getInferenceInfoForType(target2); - const constraint = inferenceContext ? getBaseConstraintOfType(inferenceContext.typeParameter) : void 0; - if (constraint && !isTypeAny(constraint)) { - const constraintTypes = constraint.flags & 1048576 /* Union */ ? constraint.types : [constraint]; - let allTypeFlags = reduceLeft(constraintTypes, (flags, t) => flags | t.flags, 0); - if (!(allTypeFlags & 4 /* String */)) { - const str = source2.value; - if (allTypeFlags & 296 /* NumberLike */ && !isValidNumberString( - str, - /*roundTripOnly*/ - true - )) { - allTypeFlags &= ~296 /* NumberLike */; - } - if (allTypeFlags & 2112 /* BigIntLike */ && !isValidBigIntString( - str, - /*roundTripOnly*/ - true - )) { - allTypeFlags &= ~2112 /* BigIntLike */; - } - const matchingType = reduceLeft(constraintTypes, (left, right) => !(right.flags & allTypeFlags) ? left : left.flags & 4 /* String */ ? left : right.flags & 4 /* String */ ? source2 : left.flags & 134217728 /* TemplateLiteral */ ? left : right.flags & 134217728 /* TemplateLiteral */ && isTypeMatchedByTemplateLiteralType(source2, right) ? source2 : left.flags & 268435456 /* StringMapping */ ? left : right.flags & 268435456 /* StringMapping */ && str === applyStringMapping(right.symbol, str) ? source2 : left.flags & 128 /* StringLiteral */ ? left : right.flags & 128 /* StringLiteral */ && right.value === str ? right : left.flags & 8 /* Number */ ? left : right.flags & 8 /* Number */ ? getNumberLiteralType(+str) : left.flags & 32 /* Enum */ ? left : right.flags & 32 /* Enum */ ? getNumberLiteralType(+str) : left.flags & 256 /* NumberLiteral */ ? left : right.flags & 256 /* NumberLiteral */ && right.value === +str ? right : left.flags & 64 /* BigInt */ ? left : right.flags & 64 /* BigInt */ ? parseBigIntLiteralType(str) : left.flags & 2048 /* BigIntLiteral */ ? left : right.flags & 2048 /* BigIntLiteral */ && pseudoBigIntToString(right.value) === str ? right : left.flags & 16 /* Boolean */ ? left : right.flags & 16 /* Boolean */ ? str === "true" ? trueType : str === "false" ? falseType : booleanType : left.flags & 512 /* BooleanLiteral */ ? left : right.flags & 512 /* BooleanLiteral */ && right.intrinsicName === str ? right : left.flags & 32768 /* Undefined */ ? left : right.flags & 32768 /* Undefined */ && right.intrinsicName === str ? right : left.flags & 65536 /* Null */ ? left : right.flags & 65536 /* Null */ && right.intrinsicName === str ? right : left, neverType); - if (!(matchingType.flags & 131072 /* Never */)) { - inferFromTypes(matchingType, target2); - continue; - } - } - } - } - inferFromTypes(source2, target2); - } - } - } - function inferFromGenericMappedTypes(source, target) { - inferFromTypes(getConstraintTypeFromMappedType(source), getConstraintTypeFromMappedType(target)); - inferFromTypes(getTemplateTypeFromMappedType(source), getTemplateTypeFromMappedType(target)); - const sourceNameType = getNameTypeFromMappedType(source); - const targetNameType = getNameTypeFromMappedType(target); - if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType); - } - function inferFromObjectTypes(source, target) { - var _a, _b; - if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) { - inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target)); - return; - } - if (isGenericMappedType(source) && isGenericMappedType(target)) { - inferFromGenericMappedTypes(source, target); - } - if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) { - const constraintType = getConstraintTypeFromMappedType(target); - if (inferToMappedType(source, target, constraintType)) { - return; - } - } - if (!typesDefinitelyUnrelated(source, target)) { - if (isArrayOrTupleType(source)) { - if (isTupleType(target)) { - const sourceArity = getTypeReferenceArity(source); - const targetArity = getTypeReferenceArity(target); - const elementTypes = getTypeArguments(target); - const elementFlags = target.target.elementFlags; - if (isTupleType(source) && isTupleTypeStructureMatching(source, target)) { - for (let i = 0; i < targetArity; i++) { - inferFromTypes(getTypeArguments(source)[i], elementTypes[i]); - } - return; - } - const startLength = isTupleType(source) ? Math.min(source.target.fixedLength, target.target.fixedLength) : 0; - const endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3 /* Fixed */) : 0, target.target.combinedFlags & 12 /* Variable */ ? getEndElementCount(target.target, 3 /* Fixed */) : 0); - for (let i = 0; i < startLength; i++) { - inferFromTypes(getTypeArguments(source)[i], elementTypes[i]); - } - if (!isTupleType(source) || sourceArity - startLength - endLength === 1 && source.target.elementFlags[startLength] & 4 /* Rest */) { - const restType = getTypeArguments(source)[startLength]; - for (let i = startLength; i < targetArity - endLength; i++) { - inferFromTypes(elementFlags[i] & 8 /* Variadic */ ? createArrayType(restType) : restType, elementTypes[i]); - } - } else { - const middleLength = targetArity - startLength - endLength; - if (middleLength === 2) { - if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) { - const targetInfo = getInferenceInfoForType(elementTypes[startLength]); - if (targetInfo && targetInfo.impliedArity !== void 0) { - inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]); - inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]); - } - } else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) { - const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter; - const constraint = param && getBaseConstraintOfType(param); - if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) { - const impliedArity = constraint.target.fixedLength; - inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]); - inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]); - } - } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) { - const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter; - const constraint = param && getBaseConstraintOfType(param); - if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) { - const impliedArity = constraint.target.fixedLength; - const endIndex = sourceArity - getEndElementCount(target.target, 3 /* Fixed */); - const startIndex = endIndex - impliedArity; - const trailingSlice = createTupleType( - getTypeArguments(source).slice(startIndex, endIndex), - source.target.elementFlags.slice(startIndex, endIndex), - /*readonly*/ - false, - source.target.labeledElementDeclarations && source.target.labeledElementDeclarations.slice(startIndex, endIndex) - ); - inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength, endLength + impliedArity), elementTypes[startLength]); - inferFromTypes(trailingSlice, elementTypes[startLength + 1]); - } - } - } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) { - const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */; - const sourceSlice = sliceTupleType(source, startLength, endLength); - inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0); - } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) { - const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength); - if (restType) { - inferFromTypes(restType, elementTypes[startLength]); - } - } - } - for (let i = 0; i < endLength; i++) { - inferFromTypes(getTypeArguments(source)[sourceArity - i - 1], elementTypes[targetArity - i - 1]); - } - return; - } - if (isArrayType(target)) { - inferFromIndexTypes(source, target); - return; - } - } - inferFromProperties(source, target); - inferFromSignatures(source, target, 0 /* Call */); - inferFromSignatures(source, target, 1 /* Construct */); - inferFromIndexTypes(source, target); - } - } - function inferFromProperties(source, target) { - const properties = getPropertiesOfObjectType(target); - for (const targetProp of properties) { - const sourceProp = getPropertyOfType(source, targetProp.escapedName); - if (sourceProp && !some(sourceProp.declarations, hasSkipDirectInferenceFlag)) { - inferFromTypes( - removeMissingType(getTypeOfSymbol(sourceProp), !!(sourceProp.flags & 16777216 /* Optional */)), - removeMissingType(getTypeOfSymbol(targetProp), !!(targetProp.flags & 16777216 /* Optional */)) - ); - } - } - } - function inferFromSignatures(source, target, kind) { - const sourceSignatures = getSignaturesOfType(source, kind); - const sourceLen = sourceSignatures.length; - if (sourceLen > 0) { - const targetSignatures = getSignaturesOfType(target, kind); - const targetLen = targetSignatures.length; - for (let i = 0; i < targetLen; i++) { - const sourceIndex = Math.max(sourceLen - targetLen + i, 0); - inferFromSignature(getBaseSignature(sourceSignatures[sourceIndex]), getErasedSignature(targetSignatures[i])); - } - } - } - function inferFromSignature(source, target) { - if (!(source.flags & 64 /* IsNonInferrable */)) { - const saveBivariant = bivariant; - const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; - bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; - applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); - bivariant = saveBivariant; - } - applyToReturnTypes(source, target, inferFromTypes); - } - function inferFromIndexTypes(source, target) { - const priority2 = getObjectFlags(source) & getObjectFlags(target) & 32 /* Mapped */ ? 8 /* HomomorphicMappedType */ : 0; - const indexInfos = getIndexInfosOfType(target); - if (isObjectTypeWithInferableIndex(source)) { - for (const targetInfo of indexInfos) { - const propTypes = []; - for (const prop of getPropertiesOfType(source)) { - if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), targetInfo.keyType)) { - const propType = getTypeOfSymbol(prop); - propTypes.push(prop.flags & 16777216 /* Optional */ ? removeMissingOrUndefinedType(propType) : propType); - } - } - for (const info of getIndexInfosOfType(source)) { - if (isApplicableIndexType(info.keyType, targetInfo.keyType)) { - propTypes.push(info.type); - } - } - if (propTypes.length) { - inferWithPriority(getUnionType(propTypes), targetInfo.type, priority2); - } - } - } - for (const targetInfo of indexInfos) { - const sourceInfo = getApplicableIndexInfo(source, targetInfo.keyType); - if (sourceInfo) { - inferWithPriority(sourceInfo.type, targetInfo.type, priority2); - } - } - } - } - function isTypeOrBaseIdenticalTo(s, t) { - return t === missingType ? s === t : isTypeIdenticalTo(s, t) || !!(t.flags & 4 /* String */ && s.flags & 128 /* StringLiteral */ || t.flags & 8 /* Number */ && s.flags & 256 /* NumberLiteral */); - } - function isTypeCloselyMatchedBy(s, t) { - return !!(s.flags & 524288 /* Object */ && t.flags & 524288 /* Object */ && s.symbol && s.symbol === t.symbol || s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol); - } - function hasPrimitiveConstraint(type) { - const constraint = getConstraintOfTypeParameter(type); - return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 /* Conditional */ ? getDefaultConstraintOfConditionalType(constraint) : constraint, 402784252 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */); - } - function isObjectLiteralType(type) { - return !!(getObjectFlags(type) & 128 /* ObjectLiteral */); - } - function isObjectOrArrayLiteralType(type) { - return !!(getObjectFlags(type) & (128 /* ObjectLiteral */ | 16384 /* ArrayLiteral */)); - } - function unionObjectAndArrayLiteralCandidates(candidates) { - if (candidates.length > 1) { - const objectLiterals = filter(candidates, isObjectOrArrayLiteralType); - if (objectLiterals.length) { - const literalsType = getUnionType(objectLiterals, 2 /* Subtype */); - return concatenate(filter(candidates, (t) => !isObjectOrArrayLiteralType(t)), [literalsType]); - } - } - return candidates; - } - function getContravariantInference(inference) { - return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates); - } - function getCovariantInference(inference, signature) { - const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates); - const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter); - const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter)); - const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates; - const unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates); - return getWidenedType(unwidenedType); - } - function getInferredType(context, index) { - const inference = context.inferences[index]; - if (!inference.inferredType) { - let inferredType; - let fallbackType; - if (context.signature) { - const inferredCovariantType = inference.candidates ? getCovariantInference(inference, context.signature) : void 0; - const inferredContravariantType = inference.contraCandidates ? getContravariantInference(inference) : void 0; - if (inferredCovariantType || inferredContravariantType) { - const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => isTypeAssignableTo(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeAssignableTo(t, inferredCovariantType)))); - inferredType = preferCovariantType ? inferredCovariantType : inferredContravariantType; - fallbackType = preferCovariantType ? inferredContravariantType : inferredCovariantType; - } else if (context.flags & 1 /* NoDefault */) { - inferredType = silentNeverType; - } else { - const defaultType = getDefaultFromTypeParameter(inference.typeParameter); - if (defaultType) { - inferredType = instantiateType(defaultType, mergeTypeMappers(createBackreferenceMapper(context, index), context.nonFixingMapper)); - } - } - } else { - inferredType = getTypeFromInference(inference); - } - inference.inferredType = inferredType || getDefaultTypeArgumentType(!!(context.flags & 2 /* AnyDefault */)); - const constraint = getConstraintOfTypeParameter(inference.typeParameter); - if (constraint) { - const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); - if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { - inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; - } - } - } - return inference.inferredType; - } - function getDefaultTypeArgumentType(isInJavaScriptFile) { - return isInJavaScriptFile ? anyType : unknownType; - } - function getInferredTypes(context) { - const result = []; - for (let i = 0; i < context.inferences.length; i++) { - result.push(getInferredType(context, i)); - } - return result; - } - function getCannotFindNameDiagnosticForName(node) { - switch (node.escapedText) { - case "document": - case "console": - return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; - case "$": - return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; - case "describe": - case "suite": - case "it": - case "test": - return compilerOptions.types ? Diagnostics.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 : Diagnostics.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; - case "process": - case "require": - case "Buffer": - case "module": - return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; - case "Bun": - return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun; - case "Map": - case "Set": - case "Promise": - case "Symbol": - case "WeakMap": - case "WeakSet": - case "Iterator": - case "AsyncIterator": - case "SharedArrayBuffer": - case "Atomics": - case "AsyncIterable": - case "AsyncIterableIterator": - case "AsyncGenerator": - case "AsyncGeneratorFunction": - case "BigInt": - case "Reflect": - case "BigInt64Array": - case "BigUint64Array": - return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later; - case "await": - if (isCallExpression(node.parent)) { - return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; - } - // falls through - default: - if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { - return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; - } else { - return Diagnostics.Cannot_find_name_0; - } - } - } - function getResolvedSymbol(node) { - const links = getNodeLinks(node); - if (!links.resolvedSymbol) { - links.resolvedSymbol = !nodeIsMissing(node) && resolveName( - node, - node, - 111551 /* Value */ | 1048576 /* ExportValue */, - getCannotFindNameDiagnosticForName(node), - !isWriteOnlyAccess(node), - /*excludeGlobals*/ - false - ) || unknownSymbol; - } - return links.resolvedSymbol; - } - function isInAmbientOrTypeNode(node) { - return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); - } - function getFlowCacheKey(node, declaredType, initialType, flowContainer) { - switch (node.kind) { - case 80 /* Identifier */: - if (!isThisInTypeQuery(node)) { - const symbol = getResolvedSymbol(node); - return symbol !== unknownSymbol ? `${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}|${getSymbolId(symbol)}` : void 0; - } - // falls through - case 110 /* ThisKeyword */: - return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; - case 235 /* NonNullExpression */: - case 217 /* ParenthesizedExpression */: - return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - case 166 /* QualifiedName */: - const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); - return left && `${left}.${node.right.escapedText}`; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - const propName = getAccessedPropertyName(node); - if (propName !== void 0) { - const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - return key && `${key}.${propName}`; - } - if (isElementAccessExpression(node) && isIdentifier(node.argumentExpression)) { - const symbol = getResolvedSymbol(node.argumentExpression); - if (isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol)) { - const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); - return key && `${key}.@${getSymbolId(symbol)}`; - } - } - break; - case 206 /* ObjectBindingPattern */: - case 207 /* ArrayBindingPattern */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - return `${getNodeId(node)}#${getTypeId(declaredType)}`; - } - return void 0; - } - function isMatchingReference(source, target) { - switch (target.kind) { - case 217 /* ParenthesizedExpression */: - case 235 /* NonNullExpression */: - return isMatchingReference(source, target.expression); - case 226 /* BinaryExpression */: - return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); - } - switch (source.kind) { - case 236 /* MetaProperty */: - return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); - case 110 /* ThisKeyword */: - return target.kind === 110 /* ThisKeyword */; - case 108 /* SuperKeyword */: - return target.kind === 108 /* SuperKeyword */; - case 235 /* NonNullExpression */: - case 217 /* ParenthesizedExpression */: - case 238 /* SatisfiesExpression */: - return isMatchingReference(source.expression, target); - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - const sourcePropertyName = getAccessedPropertyName(source); - if (sourcePropertyName !== void 0) { - const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; - if (targetPropertyName !== void 0) { - return targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); - } - } - if (isElementAccessExpression(source) && isElementAccessExpression(target) && isIdentifier(source.argumentExpression) && isIdentifier(target.argumentExpression)) { - const symbol = getResolvedSymbol(source.argumentExpression); - if (symbol === getResolvedSymbol(target.argumentExpression) && (isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol))) { - return isMatchingReference(source.expression, target.expression); - } - } - break; - case 166 /* QualifiedName */: - return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); - case 226 /* BinaryExpression */: - return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); - } - return false; - } - function getAccessedPropertyName(access) { - if (isPropertyAccessExpression(access)) { - return access.name.escapedText; - } - if (isElementAccessExpression(access)) { - return tryGetElementAccessExpressionName(access); - } - if (isBindingElement(access)) { - const name = getDestructuringPropertyName(access); - return name ? escapeLeadingUnderscores(name) : void 0; - } - if (isParameter(access)) { - return "" + access.parent.parameters.indexOf(access); - } - return void 0; - } - function tryGetNameFromType(type) { - return type.flags & 8192 /* UniqueESSymbol */ ? type.escapedName : type.flags & 384 /* StringOrNumberLiteral */ ? escapeLeadingUnderscores("" + type.value) : void 0; - } - function tryGetElementAccessExpressionName(node) { - return isStringOrNumericLiteralLike(node.argumentExpression) ? escapeLeadingUnderscores(node.argumentExpression.text) : isEntityNameExpression(node.argumentExpression) ? tryGetNameFromEntityNameExpression(node.argumentExpression) : void 0; - } - function tryGetNameFromEntityNameExpression(node) { - const symbol = resolveEntityName( - node, - 111551 /* Value */, - /*ignoreErrors*/ - true - ); - if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; - const declaration = symbol.valueDeclaration; - if (declaration === void 0) return void 0; - const type = tryGetTypeFromEffectiveTypeNode(declaration); - if (type) { - const name = tryGetNameFromType(type); - if (name !== void 0) { - return name; - } - } - if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) { - const initializer = getEffectiveInitializer(declaration); - if (initializer) { - const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer); - return initializerType && tryGetNameFromType(initializerType); - } - if (isEnumMember(declaration)) { - return getTextOfPropertyName(declaration.name); - } - } - return void 0; - } - function containsMatchingReference(source, target) { - while (isAccessExpression(source)) { - source = source.expression; - if (isMatchingReference(source, target)) { - return true; - } - } - return false; - } - function optionalChainContainsReference(source, target) { - while (isOptionalChain(source)) { - source = source.expression; - if (isMatchingReference(source, target)) { - return true; - } - } - return false; - } - function isDiscriminantProperty(type, name) { - if (type && type.flags & 1048576 /* Union */) { - const prop = getUnionOrIntersectionProperty(type, name); - if (prop && getCheckFlags(prop) & 2 /* SyntheticProperty */) { - if (prop.links.isDiscriminantProperty === void 0) { - prop.links.isDiscriminantProperty = (prop.links.checkFlags & 192 /* Discriminant */) === 192 /* Discriminant */ && !isGenericType(getTypeOfSymbol(prop)); - } - return !!prop.links.isDiscriminantProperty; - } - } - return false; - } - function findDiscriminantProperties(sourceProperties, target) { - let result; - for (const sourceProperty of sourceProperties) { - if (isDiscriminantProperty(target, sourceProperty.escapedName)) { - if (result) { - result.push(sourceProperty); - continue; - } - result = [sourceProperty]; - } - } - return result; - } - function mapTypesByKeyProperty(types, name) { - const map2 = /* @__PURE__ */ new Map(); - let count = 0; - for (const type of types) { - if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) { - const discriminant = getTypeOfPropertyOfType(type, name); - if (discriminant) { - if (!isLiteralType(discriminant)) { - return void 0; - } - let duplicate = false; - forEachType(discriminant, (t) => { - const id = getTypeId(getRegularTypeOfLiteralType(t)); - const existing = map2.get(id); - if (!existing) { - map2.set(id, type); - } else if (existing !== unknownType) { - map2.set(id, unknownType); - duplicate = true; - } - }); - if (!duplicate) count++; - } - } - } - return count >= 10 && count * 2 >= types.length ? map2 : void 0; - } - function getKeyPropertyName(unionType) { - const types = unionType.types; - if (types.length < 10 || getObjectFlags(unionType) & 32768 /* PrimitiveUnion */ || countWhere(types, (t) => !!(t.flags & (524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */))) < 10) { - return void 0; - } - if (unionType.keyPropertyName === void 0) { - const keyPropertyName = forEach(types, (t) => t.flags & (524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) ? forEach(getPropertiesOfType(t), (p) => isUnitType(getTypeOfSymbol(p)) ? p.escapedName : void 0) : void 0); - const mapByKeyProperty = keyPropertyName && mapTypesByKeyProperty(types, keyPropertyName); - unionType.keyPropertyName = mapByKeyProperty ? keyPropertyName : ""; - unionType.constituentMap = mapByKeyProperty; - } - return unionType.keyPropertyName.length ? unionType.keyPropertyName : void 0; - } - function getConstituentTypeForKeyType(unionType, keyType) { - var _a; - const result = (_a = unionType.constituentMap) == null ? void 0 : _a.get(getTypeId(getRegularTypeOfLiteralType(keyType))); - return result !== unknownType ? result : void 0; - } - function getMatchingUnionConstituentForType(unionType, type) { - const keyPropertyName = getKeyPropertyName(unionType); - const propType = keyPropertyName && getTypeOfPropertyOfType(type, keyPropertyName); - return propType && getConstituentTypeForKeyType(unionType, propType); - } - function getMatchingUnionConstituentForObjectLiteral(unionType, node) { - const keyPropertyName = getKeyPropertyName(unionType); - const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); - const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); - return propType && getConstituentTypeForKeyType(unionType, propType); - } - function isOrContainsMatchingReference(source, target) { - return isMatchingReference(source, target) || containsMatchingReference(source, target); - } - function hasMatchingArgument(expression, reference) { - if (expression.arguments) { - for (const argument of expression.arguments) { - if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) { - return true; - } - } - } - if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { - return true; - } - return false; - } - function getFlowNodeId(flow) { - if (flow.id <= 0) { - flow.id = nextFlowId; - nextFlowId++; - } - return flow.id; - } - function typeMaybeAssignableTo(source, target) { - if (!(source.flags & 1048576 /* Union */)) { - return isTypeAssignableTo(source, target); - } - for (const t of source.types) { - if (isTypeAssignableTo(t, target)) { - return true; - } - } - return false; - } - function getAssignmentReducedType(declaredType, assignedType) { - if (declaredType === assignedType) { - return declaredType; - } - if (assignedType.flags & 131072 /* Never */) { - return assignedType; - } - const key = `A${getTypeId(declaredType)},${getTypeId(assignedType)}`; - return getCachedType(key) ?? setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType)); - } - function getAssignmentReducedTypeWorker(declaredType, assignedType) { - const filteredType = filterType(declaredType, (t) => typeMaybeAssignableTo(assignedType, t)); - const reducedType = assignedType.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(assignedType) ? mapType(filteredType, getFreshTypeOfLiteralType) : filteredType; - return isTypeAssignableTo(assignedType, reducedType) ? reducedType : declaredType; - } - function isFunctionObjectType(type) { - if (getObjectFlags(type) & 256 /* EvolvingArray */) { - return false; - } - const resolved = resolveStructuredTypeMembers(type); - return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType)); - } - function getTypeFacts(type, mask) { - return getTypeFactsWorker(type, mask) & mask; - } - function hasTypeFacts(type, mask) { - return getTypeFacts(type, mask) !== 0; - } - function getTypeFactsWorker(type, callerOnlyNeeds) { - if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) { - type = getBaseConstraintOfType(type) || unknownType; - } - const flags = type.flags; - if (flags & (4 /* String */ | 268435456 /* StringMapping */)) { - return strictNullChecks ? 16317953 /* StringStrictFacts */ : 16776705 /* StringFacts */; - } - if (flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */)) { - const isEmpty = flags & 128 /* StringLiteral */ && type.value === ""; - return strictNullChecks ? isEmpty ? 12123649 /* EmptyStringStrictFacts */ : 7929345 /* NonEmptyStringStrictFacts */ : isEmpty ? 12582401 /* EmptyStringFacts */ : 16776705 /* NonEmptyStringFacts */; - } - if (flags & (8 /* Number */ | 32 /* Enum */)) { - return strictNullChecks ? 16317698 /* NumberStrictFacts */ : 16776450 /* NumberFacts */; - } - if (flags & 256 /* NumberLiteral */) { - const isZero = type.value === 0; - return strictNullChecks ? isZero ? 12123394 /* ZeroNumberStrictFacts */ : 7929090 /* NonZeroNumberStrictFacts */ : isZero ? 12582146 /* ZeroNumberFacts */ : 16776450 /* NonZeroNumberFacts */; - } - if (flags & 64 /* BigInt */) { - return strictNullChecks ? 16317188 /* BigIntStrictFacts */ : 16775940 /* BigIntFacts */; - } - if (flags & 2048 /* BigIntLiteral */) { - const isZero = isZeroBigInt(type); - return strictNullChecks ? isZero ? 12122884 /* ZeroBigIntStrictFacts */ : 7928580 /* NonZeroBigIntStrictFacts */ : isZero ? 12581636 /* ZeroBigIntFacts */ : 16775940 /* NonZeroBigIntFacts */; - } - if (flags & 16 /* Boolean */) { - return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */; - } - if (flags & 528 /* BooleanLike */) { - return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */; - } - if (flags & 524288 /* Object */) { - const possibleFacts = strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ | 7880640 /* FunctionStrictFacts */ | 7888800 /* ObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ | 16728e3 /* FunctionFacts */ | 16736160 /* ObjectFacts */; - if ((callerOnlyNeeds & possibleFacts) === 0) { - return 0; - } - return getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ? strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ : isFunctionObjectType(type) ? strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728e3 /* FunctionFacts */ : strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */; - } - if (flags & 16384 /* Void */) { - return 9830144 /* VoidFacts */; - } - if (flags & 32768 /* Undefined */) { - return 26607360 /* UndefinedFacts */; - } - if (flags & 65536 /* Null */) { - return 42917664 /* NullFacts */; - } - if (flags & 12288 /* ESSymbolLike */) { - return strictNullChecks ? 7925520 /* SymbolStrictFacts */ : 16772880 /* SymbolFacts */; - } - if (flags & 67108864 /* NonPrimitive */) { - return strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */; - } - if (flags & 131072 /* Never */) { - return 0 /* None */; - } - if (flags & 1048576 /* Union */) { - return reduceLeft(type.types, (facts, t) => facts | getTypeFactsWorker(t, callerOnlyNeeds), 0 /* None */); - } - if (flags & 2097152 /* Intersection */) { - return getIntersectionTypeFacts(type, callerOnlyNeeds); - } - return 83886079 /* UnknownFacts */; - } - function getIntersectionTypeFacts(type, callerOnlyNeeds) { - const ignoreObjects = maybeTypeOfKind(type, 402784252 /* Primitive */); - let oredFacts = 0 /* None */; - let andedFacts = 134217727 /* All */; - for (const t of type.types) { - if (!(ignoreObjects && t.flags & 524288 /* Object */)) { - const f = getTypeFactsWorker(t, callerOnlyNeeds); - oredFacts |= f; - andedFacts &= f; - } - } - return oredFacts & 8256 /* OrFactsMask */ | andedFacts & 134209471 /* AndFactsMask */; - } - function getTypeWithFacts(type, include) { - return filterType(type, (t) => hasTypeFacts(t, include)); - } - function getAdjustedTypeWithFacts(type, facts) { - const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 /* Unknown */ ? unknownUnionType : type, facts)); - if (strictNullChecks) { - switch (facts) { - case 524288 /* NEUndefined */: - return removeNullableByIntersection(reduced, 65536 /* EQUndefined */, 131072 /* EQNull */, 33554432 /* IsNull */, nullType); - case 1048576 /* NENull */: - return removeNullableByIntersection(reduced, 131072 /* EQNull */, 65536 /* EQUndefined */, 16777216 /* IsUndefined */, undefinedType); - case 2097152 /* NEUndefinedOrNull */: - case 4194304 /* Truthy */: - return mapType(reduced, (t) => hasTypeFacts(t, 262144 /* EQUndefinedOrNull */) ? getGlobalNonNullableTypeInstantiation(t) : t); - } - } - return reduced; - } - function removeNullableByIntersection(type, targetFacts, otherFacts, otherIncludesFacts, otherType) { - const facts = getTypeFacts(type, 65536 /* EQUndefined */ | 131072 /* EQNull */ | 16777216 /* IsUndefined */ | 33554432 /* IsNull */); - if (!(facts & targetFacts)) { - return type; - } - const emptyAndOtherUnion = getUnionType([emptyObjectType, otherType]); - return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t, !(facts & otherIncludesFacts) && hasTypeFacts(t, otherFacts) ? emptyAndOtherUnion : emptyObjectType]) : t); - } - function recombineUnknownType(type) { - return type === unknownUnionType ? unknownType : type; - } - function getTypeWithDefault(type, defaultExpression) { - return defaultExpression ? getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) : type; - } - function getTypeOfDestructuredProperty(type, name) { - var _a; - const nameType = getLiteralTypeFromPropertyName(name); - if (!isTypeUsableAsPropertyName(nameType)) return errorType; - const text = getPropertyNameFromType(nameType); - return getTypeOfPropertyOfType(type, text) || includeUndefinedInIndexSignature((_a = getApplicableIndexInfoForName(type, text)) == null ? void 0 : _a.type) || errorType; - } - function getTypeOfDestructuredArrayElement(type, index) { - return everyType(type, isTupleLikeType) && getTupleElementType(type, index) || includeUndefinedInIndexSignature(checkIteratedTypeOrElementType( - 65 /* Destructuring */, - type, - undefinedType, - /*errorNode*/ - void 0 - )) || errorType; - } - function includeUndefinedInIndexSignature(type) { - if (!type) return type; - return compilerOptions.noUncheckedIndexedAccess ? getUnionType([type, missingType]) : type; - } - function getTypeOfDestructuredSpreadExpression(type) { - return createArrayType(checkIteratedTypeOrElementType( - 65 /* Destructuring */, - type, - undefinedType, - /*errorNode*/ - void 0 - ) || errorType); - } - function getAssignedTypeOfBinaryExpression(node) { - const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); - return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); - } - function isDestructuringAssignmentTarget(parent) { - return parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.left === parent || parent.parent.kind === 250 /* ForOfStatement */ && parent.parent.initializer === parent; - } - function getAssignedTypeOfArrayLiteralElement(node, element) { - return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); - } - function getAssignedTypeOfSpreadExpression(node) { - return getTypeOfDestructuredSpreadExpression(getAssignedType(node.parent)); - } - function getAssignedTypeOfPropertyAssignment(node) { - return getTypeOfDestructuredProperty(getAssignedType(node.parent), node.name); - } - function getAssignedTypeOfShorthandPropertyAssignment(node) { - return getTypeWithDefault(getAssignedTypeOfPropertyAssignment(node), node.objectAssignmentInitializer); - } - function getAssignedType(node) { - const { parent } = node; - switch (parent.kind) { - case 249 /* ForInStatement */: - return stringType; - case 250 /* ForOfStatement */: - return checkRightHandSideOfForOf(parent) || errorType; - case 226 /* BinaryExpression */: - return getAssignedTypeOfBinaryExpression(parent); - case 220 /* DeleteExpression */: - return undefinedType; - case 209 /* ArrayLiteralExpression */: - return getAssignedTypeOfArrayLiteralElement(parent, node); - case 230 /* SpreadElement */: - return getAssignedTypeOfSpreadExpression(parent); - case 303 /* PropertyAssignment */: - return getAssignedTypeOfPropertyAssignment(parent); - case 304 /* ShorthandPropertyAssignment */: - return getAssignedTypeOfShorthandPropertyAssignment(parent); - } - return errorType; - } - function getInitialTypeOfBindingElement(node) { - const pattern = node.parent; - const parentType = getInitialType(pattern.parent); - const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); - return getTypeWithDefault(type, node.initializer); - } - function getTypeOfInitializer(node) { - const links = getNodeLinks(node); - return links.resolvedType || getTypeOfExpression(node); - } - function getInitialTypeOfVariableDeclaration(node) { - if (node.initializer) { - return getTypeOfInitializer(node.initializer); - } - if (node.parent.parent.kind === 249 /* ForInStatement */) { - return stringType; - } - if (node.parent.parent.kind === 250 /* ForOfStatement */) { - return checkRightHandSideOfForOf(node.parent.parent) || errorType; - } - return errorType; - } - function getInitialType(node) { - return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); - } - function isEmptyArrayAssignment(node) { - return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); - } - function getReferenceCandidate(node) { - switch (node.kind) { - case 217 /* ParenthesizedExpression */: - return getReferenceCandidate(node.expression); - case 226 /* BinaryExpression */: - switch (node.operatorToken.kind) { - case 64 /* EqualsToken */: - case 76 /* BarBarEqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return getReferenceCandidate(node.left); - case 28 /* CommaToken */: - return getReferenceCandidate(node.right); - } - } - return node; - } - function getReferenceRoot(node) { - const { parent } = node; - return parent.kind === 217 /* ParenthesizedExpression */ || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */ && parent.left === node || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 28 /* CommaToken */ && parent.right === node ? getReferenceRoot(parent) : node; - } - function getTypeOfSwitchClause(clause) { - if (clause.kind === 296 /* CaseClause */) { - return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); - } - return neverType; - } - function getSwitchClauseTypes(switchStatement) { - const links = getNodeLinks(switchStatement); - if (!links.switchTypes) { - links.switchTypes = []; - for (const clause of switchStatement.caseBlock.clauses) { - links.switchTypes.push(getTypeOfSwitchClause(clause)); - } - } - return links.switchTypes; - } - function getSwitchClauseTypeOfWitnesses(switchStatement) { - if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { - return void 0; - } - const witnesses = []; - for (const clause of switchStatement.caseBlock.clauses) { - const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; - witnesses.push(text && !contains(witnesses, text) ? text : void 0); - } - return witnesses; - } - function eachTypeContainedIn(source, types) { - return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source); - } - function isTypeSubsetOf(source, target) { - return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target)); - } - function isTypeSubsetOfUnion(source, target) { - if (source.flags & 1048576 /* Union */) { - for (const t of source.types) { - if (!containsType(target.types, t)) { - return false; - } - } - return true; - } - if (source.flags & 1056 /* EnumLike */ && getBaseTypeOfEnumLikeType(source) === target) { - return true; - } - return containsType(target.types, source); - } - function forEachType(type, f) { - return type.flags & 1048576 /* Union */ ? forEach(type.types, f) : f(type); - } - function someType(type, f) { - return type.flags & 1048576 /* Union */ ? some(type.types, f) : f(type); - } - function everyType(type, f) { - return type.flags & 1048576 /* Union */ ? every(type.types, f) : f(type); - } - function everyContainedType(type, f) { - return type.flags & 3145728 /* UnionOrIntersection */ ? every(type.types, f) : f(type); - } - function filterType(type, f) { - if (type.flags & 1048576 /* Union */) { - const types = type.types; - const filtered = filter(types, f); - if (filtered === types) { - return type; - } - const origin = type.origin; - let newOrigin; - if (origin && origin.flags & 1048576 /* Union */) { - const originTypes = origin.types; - const originFiltered = filter(originTypes, (t) => !!(t.flags & 1048576 /* Union */) || f(t)); - if (originTypes.length - originFiltered.length === types.length - filtered.length) { - if (originFiltered.length === 1) { - return originFiltered[0]; - } - newOrigin = createOriginUnionOrIntersectionType(1048576 /* Union */, originFiltered); - } - } - return getUnionTypeFromSortedList( - filtered, - type.objectFlags & (32768 /* PrimitiveUnion */ | 16777216 /* ContainsIntersections */), - /*aliasSymbol*/ - void 0, - /*aliasTypeArguments*/ - void 0, - newOrigin - ); - } - return type.flags & 131072 /* Never */ || f(type) ? type : neverType; - } - function removeType(type, targetType) { - return filterType(type, (t) => t !== targetType); - } - function countTypes(type) { - return type.flags & 1048576 /* Union */ ? type.types.length : 1; - } - function mapType(type, mapper, noReductions) { - if (type.flags & 131072 /* Never */) { - return type; - } - if (!(type.flags & 1048576 /* Union */)) { - return mapper(type); - } - const origin = type.origin; - const types = origin && origin.flags & 1048576 /* Union */ ? origin.types : type.types; - let mappedTypes; - let changed = false; - for (const t of types) { - const mapped = t.flags & 1048576 /* Union */ ? mapType(t, mapper, noReductions) : mapper(t); - changed || (changed = t !== mapped); - if (mapped) { - if (!mappedTypes) { - mappedTypes = [mapped]; - } else { - mappedTypes.push(mapped); - } - } - } - return changed ? mappedTypes && getUnionType(mappedTypes, noReductions ? 0 /* None */ : 1 /* Literal */) : type; - } - function mapTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) { - return type.flags & 1048576 /* Union */ && aliasSymbol ? getUnionType(map(type.types, mapper), 1 /* Literal */, aliasSymbol, aliasTypeArguments) : mapType(type, mapper); - } - function extractTypesOfKind(type, kind) { - return filterType(type, (t) => (t.flags & kind) !== 0); - } - function replacePrimitivesWithLiterals(typeWithPrimitives, typeWithLiterals) { - if (maybeTypeOfKind(typeWithPrimitives, 4 /* String */ | 134217728 /* TemplateLiteral */ | 8 /* Number */ | 64 /* BigInt */) && maybeTypeOfKind(typeWithLiterals, 128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */ | 256 /* NumberLiteral */ | 2048 /* BigIntLiteral */)) { - return mapType(typeWithPrimitives, (t) => t.flags & 4 /* String */ ? extractTypesOfKind(typeWithLiterals, 4 /* String */ | 128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) : isPatternLiteralType(t) && !maybeTypeOfKind(typeWithLiterals, 4 /* String */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? extractTypesOfKind(typeWithLiterals, 128 /* StringLiteral */) : t.flags & 8 /* Number */ ? extractTypesOfKind(typeWithLiterals, 8 /* Number */ | 256 /* NumberLiteral */) : t.flags & 64 /* BigInt */ ? extractTypesOfKind(typeWithLiterals, 64 /* BigInt */ | 2048 /* BigIntLiteral */) : t); - } - return typeWithPrimitives; - } - function isIncomplete(flowType) { - return flowType.flags === 0; - } - function getTypeFromFlowType(flowType) { - return flowType.flags === 0 ? flowType.type : flowType; - } - function createFlowType(type, incomplete) { - return incomplete ? { flags: 0, type: type.flags & 131072 /* Never */ ? silentNeverType : type } : type; - } - function createEvolvingArrayType(elementType) { - const result = createObjectType(256 /* EvolvingArray */); - result.elementType = elementType; - return result; - } - function getEvolvingArrayType(elementType) { - return evolvingArrayTypes[elementType.id] || (evolvingArrayTypes[elementType.id] = createEvolvingArrayType(elementType)); - } - function addEvolvingArrayElementType(evolvingArrayType, node) { - const elementType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(getContextFreeTypeOfExpression(node))); - return isTypeSubsetOf(elementType, evolvingArrayType.elementType) ? evolvingArrayType : getEvolvingArrayType(getUnionType([evolvingArrayType.elementType, elementType])); - } - function createFinalArrayType(elementType) { - return elementType.flags & 131072 /* Never */ ? autoArrayType : createArrayType( - elementType.flags & 1048576 /* Union */ ? getUnionType(elementType.types, 2 /* Subtype */) : elementType - ); - } - function getFinalArrayType(evolvingArrayType) { - return evolvingArrayType.finalArrayType || (evolvingArrayType.finalArrayType = createFinalArrayType(evolvingArrayType.elementType)); - } - function finalizeEvolvingArrayType(type) { - return getObjectFlags(type) & 256 /* EvolvingArray */ ? getFinalArrayType(type) : type; - } - function getElementTypeOfEvolvingArrayType(type) { - return getObjectFlags(type) & 256 /* EvolvingArray */ ? type.elementType : neverType; - } - function isEvolvingArrayTypeList(types) { - let hasEvolvingArrayType = false; - for (const t of types) { - if (!(t.flags & 131072 /* Never */)) { - if (!(getObjectFlags(t) & 256 /* EvolvingArray */)) { - return false; - } - hasEvolvingArrayType = true; - } - } - return hasEvolvingArrayType; - } - function isEvolvingArrayOperationTarget(node) { - const root = getReferenceRoot(node); - const parent = root.parent; - const isLengthPushOrUnshift = isPropertyAccessExpression(parent) && (parent.name.escapedText === "length" || parent.parent.kind === 213 /* CallExpression */ && isIdentifier(parent.name) && isPushOrUnshiftIdentifier(parent.name)); - const isElementAssignment = parent.kind === 212 /* ElementAccessExpression */ && parent.expression === root && parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.operatorToken.kind === 64 /* EqualsToken */ && parent.parent.left === parent && !isAssignmentTarget(parent.parent) && isTypeAssignableToKind(getTypeOfExpression(parent.argumentExpression), 296 /* NumberLike */); - return isLengthPushOrUnshift || isElementAssignment; - } - function isDeclarationWithExplicitTypeAnnotation(node) { - return (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isParameter(node)) && !!(getEffectiveTypeAnnotationNode(node) || isInJSFile(node) && hasInitializer(node) && node.initializer && isFunctionExpressionOrArrowFunction(node.initializer) && getEffectiveReturnTypeNode(node.initializer)); - } - function getExplicitTypeOfSymbol(symbol, diagnostic) { - symbol = resolveSymbol(symbol); - if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 512 /* ValueModule */)) { - return getTypeOfSymbol(symbol); - } - if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { - if (getCheckFlags(symbol) & 262144 /* Mapped */) { - const origin = symbol.links.syntheticOrigin; - if (origin && getExplicitTypeOfSymbol(origin)) { - return getTypeOfSymbol(symbol); - } - } - const declaration = symbol.valueDeclaration; - if (declaration) { - if (isDeclarationWithExplicitTypeAnnotation(declaration)) { - return getTypeOfSymbol(symbol); - } - if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { - const statement = declaration.parent.parent; - const expressionType = getTypeOfDottedName( - statement.expression, - /*diagnostic*/ - void 0 - ); - if (expressionType) { - const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; - return checkIteratedTypeOrElementType( - use, - expressionType, - undefinedType, - /*errorNode*/ - void 0 - ); - } - } - if (diagnostic) { - addRelatedInfo(diagnostic, createDiagnosticForNode(declaration, Diagnostics._0_needs_an_explicit_type_annotation, symbolToString(symbol))); - } - } - } - } - function getTypeOfDottedName(node, diagnostic) { - if (!(node.flags & 67108864 /* InWithStatement */)) { - switch (node.kind) { - case 80 /* Identifier */: - const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); - return getExplicitTypeOfSymbol(symbol, diagnostic); - case 110 /* ThisKeyword */: - return getExplicitThisType(node); - case 108 /* SuperKeyword */: - return checkSuperExpression(node); - case 211 /* PropertyAccessExpression */: { - const type = getTypeOfDottedName(node.expression, diagnostic); - if (type) { - const name = node.name; - let prop; - if (isPrivateIdentifier(name)) { - if (!type.symbol) { - return void 0; - } - prop = getPropertyOfType(type, getSymbolNameForPrivateIdentifier(type.symbol, name.escapedText)); - } else { - prop = getPropertyOfType(type, name.escapedText); - } - return prop && getExplicitTypeOfSymbol(prop, diagnostic); - } - return void 0; - } - case 217 /* ParenthesizedExpression */: - return getTypeOfDottedName(node.expression, diagnostic); - } - } - } - function getEffectsSignature(node) { - const links = getNodeLinks(node); - let signature = links.effectsSignature; - if (signature === void 0) { - let funcType; - if (isBinaryExpression(node)) { - const rightType = checkNonNullExpression(node.right); - funcType = getSymbolHasInstanceMethodOfObjectType(rightType); - } else if (node.parent.kind === 244 /* ExpressionStatement */) { - funcType = getTypeOfDottedName( - node.expression, - /*diagnostic*/ - void 0 - ); - } else if (node.expression.kind !== 108 /* SuperKeyword */) { - if (isOptionalChain(node)) { - funcType = checkNonNullType( - getOptionalExpressionType(checkExpression(node.expression), node.expression), - node.expression - ); - } else { - funcType = checkNonNullExpression(node.expression); - } - } - const signatures = getSignaturesOfType(funcType && getApparentType(funcType) || unknownType, 0 /* Call */); - const candidate = signatures.length === 1 && !signatures[0].typeParameters ? signatures[0] : some(signatures, hasTypePredicateOrNeverReturnType) ? getResolvedSignature(node) : void 0; - signature = links.effectsSignature = candidate && hasTypePredicateOrNeverReturnType(candidate) ? candidate : unknownSignature; - } - return signature === unknownSignature ? void 0 : signature; - } - function hasTypePredicateOrNeverReturnType(signature) { - return !!(getTypePredicateOfSignature(signature) || signature.declaration && (getReturnTypeFromAnnotation(signature.declaration) || unknownType).flags & 131072 /* Never */); - } - function getTypePredicateArgument(predicate, callExpression) { - if (predicate.kind === 1 /* Identifier */ || predicate.kind === 3 /* AssertsIdentifier */) { - return callExpression.arguments[predicate.parameterIndex]; - } - const invokedExpression = skipParentheses(callExpression.expression); - return isAccessExpression(invokedExpression) ? skipParentheses(invokedExpression.expression) : void 0; - } - function reportFlowControlError(node) { - const block = findAncestor(node, isFunctionOrModuleBlock); - const sourceFile = getSourceFileOfNode(node); - const span = getSpanOfTokenAtPosition(sourceFile, block.statements.pos); - diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)); - } - function isReachableFlowNode(flow) { - const result = isReachableFlowNodeWorker( - flow, - /*noCacheCheck*/ - false - ); - lastFlowNode = flow; - lastFlowNodeReachable = result; - return result; - } - function isFalseExpression(expr) { - const node = skipParentheses( - expr, - /*excludeJSDocTypeAssertions*/ - true - ); - return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); - } - function isReachableFlowNodeWorker(flow, noCacheCheck) { - while (true) { - if (flow === lastFlowNode) { - return lastFlowNodeReachable; - } - const flags = flow.flags; - if (flags & 4096 /* Shared */) { - if (!noCacheCheck) { - const id = getFlowNodeId(flow); - const reachable = flowNodeReachable[id]; - return reachable !== void 0 ? reachable : flowNodeReachable[id] = isReachableFlowNodeWorker( - flow, - /*noCacheCheck*/ - true - ); - } - noCacheCheck = false; - } - if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */)) { - flow = flow.antecedent; - } else if (flags & 512 /* Call */) { - const signature = getEffectsSignature(flow.node); - if (signature) { - const predicate = getTypePredicateOfSignature(signature); - if (predicate && predicate.kind === 3 /* AssertsIdentifier */ && !predicate.type) { - const predicateArgument = flow.node.arguments[predicate.parameterIndex]; - if (predicateArgument && isFalseExpression(predicateArgument)) { - return false; - } - } - if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) { - return false; - } - } - flow = flow.antecedent; - } else if (flags & 4 /* BranchLabel */) { - return some(flow.antecedent, (f) => isReachableFlowNodeWorker( - f, - /*noCacheCheck*/ - false - )); - } else if (flags & 8 /* LoopLabel */) { - const antecedents = flow.antecedent; - if (antecedents === void 0 || antecedents.length === 0) { - return false; - } - flow = antecedents[0]; - } else if (flags & 128 /* SwitchClause */) { - const data = flow.node; - if (data.clauseStart === data.clauseEnd && isExhaustiveSwitchStatement(data.switchStatement)) { - return false; - } - flow = flow.antecedent; - } else if (flags & 1024 /* ReduceLabel */) { - lastFlowNode = void 0; - const target = flow.node.target; - const saveAntecedents = target.antecedent; - target.antecedent = flow.node.antecedents; - const result = isReachableFlowNodeWorker( - flow.antecedent, - /*noCacheCheck*/ - false - ); - target.antecedent = saveAntecedents; - return result; - } else { - return !(flags & 1 /* Unreachable */); - } - } - } - function isPostSuperFlowNode(flow, noCacheCheck) { - while (true) { - const flags = flow.flags; - if (flags & 4096 /* Shared */) { - if (!noCacheCheck) { - const id = getFlowNodeId(flow); - const postSuper = flowNodePostSuper[id]; - return postSuper !== void 0 ? postSuper : flowNodePostSuper[id] = isPostSuperFlowNode( - flow, - /*noCacheCheck*/ - true - ); - } - noCacheCheck = false; - } - if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */ | 128 /* SwitchClause */)) { - flow = flow.antecedent; - } else if (flags & 512 /* Call */) { - if (flow.node.expression.kind === 108 /* SuperKeyword */) { - return true; - } - flow = flow.antecedent; - } else if (flags & 4 /* BranchLabel */) { - return every(flow.antecedent, (f) => isPostSuperFlowNode( - f, - /*noCacheCheck*/ - false - )); - } else if (flags & 8 /* LoopLabel */) { - flow = flow.antecedent[0]; - } else if (flags & 1024 /* ReduceLabel */) { - const target = flow.node.target; - const saveAntecedents = target.antecedent; - target.antecedent = flow.node.antecedents; - const result = isPostSuperFlowNode( - flow.antecedent, - /*noCacheCheck*/ - false - ); - target.antecedent = saveAntecedents; - return result; - } else { - return !!(flags & 1 /* Unreachable */); - } - } - } - function isConstantReference(node) { - switch (node.kind) { - case 110 /* ThisKeyword */: - return true; - case 80 /* Identifier */: - if (!isThisInTypeQuery(node)) { - const symbol = getResolvedSymbol(node); - return isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol) || !!symbol.valueDeclaration && isFunctionExpression(symbol.valueDeclaration); - } - break; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); - case 206 /* ObjectBindingPattern */: - case 207 /* ArrayBindingPattern */: - const rootDeclaration = getRootDeclaration(node.parent); - return isParameter(rootDeclaration) || isCatchClauseVariableDeclaration(rootDeclaration) ? !isSomeSymbolAssigned(rootDeclaration) : isVariableDeclaration(rootDeclaration) && isVarConstLike2(rootDeclaration); - } - return false; - } - function getFlowTypeOfReference(reference, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a) => (_a = tryCast(reference, canHaveFlowNode)) == null ? void 0 : _a.flowNode)()) { - let key; - let isKeySet = false; - let flowDepth = 0; - if (flowAnalysisDisabled) { - return errorType; - } - if (!flowNode) { - return declaredType; - } - flowInvocationCount++; - const sharedFlowStart = sharedFlowCount; - const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); - sharedFlowCount = sharedFlowStart; - const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); - if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { - return declaredType; - } - return resultType; - function getOrSetCacheKey() { - if (isKeySet) { - return key; - } - isKeySet = true; - return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer); - } - function getTypeAtFlowNode(flow) { - var _a2; - if (flowDepth === 2e3) { - (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "getTypeAtFlowNode_DepthLimit", { flowId: flow.id }); - flowAnalysisDisabled = true; - reportFlowControlError(reference); - return errorType; - } - flowDepth++; - let sharedFlow; - while (true) { - const flags = flow.flags; - if (flags & 4096 /* Shared */) { - for (let i = sharedFlowStart; i < sharedFlowCount; i++) { - if (sharedFlowNodes[i] === flow) { - flowDepth--; - return sharedFlowTypes[i]; - } - } - sharedFlow = flow; - } - let type; - if (flags & 16 /* Assignment */) { - type = getTypeAtFlowAssignment(flow); - if (!type) { - flow = flow.antecedent; - continue; - } - } else if (flags & 512 /* Call */) { - type = getTypeAtFlowCall(flow); - if (!type) { - flow = flow.antecedent; - continue; - } - } else if (flags & 96 /* Condition */) { - type = getTypeAtFlowCondition(flow); - } else if (flags & 128 /* SwitchClause */) { - type = getTypeAtSwitchClause(flow); - } else if (flags & 12 /* Label */) { - if (flow.antecedent.length === 1) { - flow = flow.antecedent[0]; - continue; - } - type = flags & 4 /* BranchLabel */ ? getTypeAtFlowBranchLabel(flow) : getTypeAtFlowLoopLabel(flow); - } else if (flags & 256 /* ArrayMutation */) { - type = getTypeAtFlowArrayMutation(flow); - if (!type) { - flow = flow.antecedent; - continue; - } - } else if (flags & 1024 /* ReduceLabel */) { - const target = flow.node.target; - const saveAntecedents = target.antecedent; - target.antecedent = flow.node.antecedents; - type = getTypeAtFlowNode(flow.antecedent); - target.antecedent = saveAntecedents; - } else if (flags & 2 /* Start */) { - const container = flow.node; - if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { - flow = container.flowNode; - continue; - } - type = initialType; - } else { - type = convertAutoToAny(declaredType); - } - if (sharedFlow) { - sharedFlowNodes[sharedFlowCount] = sharedFlow; - sharedFlowTypes[sharedFlowCount] = type; - sharedFlowCount++; - } - flowDepth--; - return type; - } - } - function getInitialOrAssignedType(flow) { - const node = flow.node; - return getNarrowableTypeForReference( - node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), - reference - ); - } - function getTypeAtFlowAssignment(flow) { - const node = flow.node; - if (isMatchingReference(reference, node)) { - if (!isReachableFlowNode(flow)) { - return unreachableNeverType; - } - if (getAssignmentTargetKind(node) === 2 /* Compound */) { - const flowType = getTypeAtFlowNode(flow.antecedent); - return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); - } - if (declaredType === autoType || declaredType === autoArrayType) { - if (isEmptyArrayAssignment(node)) { - return getEvolvingArrayType(neverType); - } - const assignedType = getWidenedLiteralType(getInitialOrAssignedType(flow)); - return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType; - } - const t = isInCompoundLikeAssignment(node) ? getBaseTypeOfLiteralType(declaredType) : declaredType; - if (t.flags & 1048576 /* Union */) { - return getAssignmentReducedType(t, getInitialOrAssignedType(flow)); - } - return t; - } - if (containsMatchingReference(reference, node)) { - if (!isReachableFlowNode(flow)) { - return unreachableNeverType; - } - if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike2(node))) { - const init = getDeclaredExpandoInitializer(node); - if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { - return getTypeAtFlowNode(flow.antecedent); - } - } - return declaredType; - } - if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { - return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); - } - return void 0; - } - function narrowTypeByAssertion(type, expr) { - const node = skipParentheses( - expr, - /*excludeJSDocTypeAssertions*/ - true - ); - if (node.kind === 97 /* FalseKeyword */) { - return unreachableNeverType; - } - if (node.kind === 226 /* BinaryExpression */) { - if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { - return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); - } - if (node.operatorToken.kind === 57 /* BarBarToken */) { - return getUnionType([narrowTypeByAssertion(type, node.left), narrowTypeByAssertion(type, node.right)]); - } - } - return narrowType( - type, - node, - /*assumeTrue*/ - true - ); - } - function getTypeAtFlowCall(flow) { - const signature = getEffectsSignature(flow.node); - if (signature) { - const predicate = getTypePredicateOfSignature(signature); - if (predicate && (predicate.kind === 2 /* AssertsThis */ || predicate.kind === 3 /* AssertsIdentifier */)) { - const flowType = getTypeAtFlowNode(flow.antecedent); - const type = finalizeEvolvingArrayType(getTypeFromFlowType(flowType)); - const narrowedType = predicate.type ? narrowTypeByTypePredicate( - type, - predicate, - flow.node, - /*assumeTrue*/ - true - ) : predicate.kind === 3 /* AssertsIdentifier */ && predicate.parameterIndex >= 0 && predicate.parameterIndex < flow.node.arguments.length ? narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]) : type; - return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); - } - if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) { - return unreachableNeverType; - } - } - return void 0; - } - function getTypeAtFlowArrayMutation(flow) { - if (declaredType === autoType || declaredType === autoArrayType) { - const node = flow.node; - const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; - if (isMatchingReference(reference, getReferenceCandidate(expr))) { - const flowType = getTypeAtFlowNode(flow.antecedent); - const type = getTypeFromFlowType(flowType); - if (getObjectFlags(type) & 256 /* EvolvingArray */) { - let evolvedType2 = type; - if (node.kind === 213 /* CallExpression */) { - for (const arg of node.arguments) { - evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); - } - } else { - const indexType = getContextFreeTypeOfExpression(node.left.argumentExpression); - if (isTypeAssignableToKind(indexType, 296 /* NumberLike */)) { - evolvedType2 = addEvolvingArrayElementType(evolvedType2, node.right); - } - } - return evolvedType2 === type ? flowType : createFlowType(evolvedType2, isIncomplete(flowType)); - } - return flowType; - } - } - return void 0; - } - function getTypeAtFlowCondition(flow) { - const flowType = getTypeAtFlowNode(flow.antecedent); - const type = getTypeFromFlowType(flowType); - if (type.flags & 131072 /* Never */) { - return flowType; - } - const assumeTrue = (flow.flags & 32 /* TrueCondition */) !== 0; - const nonEvolvingType = finalizeEvolvingArrayType(type); - const narrowedType = narrowType(nonEvolvingType, flow.node, assumeTrue); - if (narrowedType === nonEvolvingType) { - return flowType; - } - return createFlowType(narrowedType, isIncomplete(flowType)); - } - function getTypeAtSwitchClause(flow) { - const expr = skipParentheses(flow.node.switchStatement.expression); - const flowType = getTypeAtFlowNode(flow.antecedent); - let type = getTypeFromFlowType(flowType); - if (isMatchingReference(reference, expr)) { - type = narrowTypeBySwitchOnDiscriminant(type, flow.node); - } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { - type = narrowTypeBySwitchOnTypeOf(type, flow.node); - } else if (expr.kind === 112 /* TrueKeyword */) { - type = narrowTypeBySwitchOnTrue(type, flow.node); - } else { - if (strictNullChecks) { - if (optionalChainContainsReference(expr, reference)) { - type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */))); - } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { - type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t) => !(t.flags & 131072 /* Never */ || t.flags & 128 /* StringLiteral */ && t.value === "undefined")); - } - } - const access = getDiscriminantPropertyAccess(expr, type); - if (access) { - type = narrowTypeBySwitchOnDiscriminantProperty(type, access, flow.node); - } - } - return createFlowType(type, isIncomplete(flowType)); - } - function getTypeAtFlowBranchLabel(flow) { - const antecedentTypes = []; - let subtypeReduction = false; - let seenIncomplete = false; - let bypassFlow; - for (const antecedent of flow.antecedent) { - if (!bypassFlow && antecedent.flags & 128 /* SwitchClause */ && antecedent.node.clauseStart === antecedent.node.clauseEnd) { - bypassFlow = antecedent; - continue; - } - const flowType = getTypeAtFlowNode(antecedent); - const type = getTypeFromFlowType(flowType); - if (type === declaredType && declaredType === initialType) { - return type; - } - pushIfUnique(antecedentTypes, type); - if (!isTypeSubsetOf(type, initialType)) { - subtypeReduction = true; - } - if (isIncomplete(flowType)) { - seenIncomplete = true; - } - } - if (bypassFlow) { - const flowType = getTypeAtFlowNode(bypassFlow); - const type = getTypeFromFlowType(flowType); - if (!(type.flags & 131072 /* Never */) && !contains(antecedentTypes, type) && !isExhaustiveSwitchStatement(bypassFlow.node.switchStatement)) { - if (type === declaredType && declaredType === initialType) { - return type; - } - antecedentTypes.push(type); - if (!isTypeSubsetOf(type, initialType)) { - subtypeReduction = true; - } - if (isIncomplete(flowType)) { - seenIncomplete = true; - } - } - } - return createFlowType(getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */), seenIncomplete); - } - function getTypeAtFlowLoopLabel(flow) { - const id = getFlowNodeId(flow); - const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map()); - const key2 = getOrSetCacheKey(); - if (!key2) { - return declaredType; - } - const cached = cache.get(key2); - if (cached) { - return cached; - } - for (let i = flowLoopStart; i < flowLoopCount; i++) { - if (flowLoopNodes[i] === flow && flowLoopKeys[i] === key2 && flowLoopTypes[i].length) { - return createFlowType( - getUnionOrEvolvingArrayType(flowLoopTypes[i], 1 /* Literal */), - /*incomplete*/ - true - ); - } - } - const antecedentTypes = []; - let subtypeReduction = false; - let firstAntecedentType; - for (const antecedent of flow.antecedent) { - let flowType; - if (!firstAntecedentType) { - flowType = firstAntecedentType = getTypeAtFlowNode(antecedent); - } else { - flowLoopNodes[flowLoopCount] = flow; - flowLoopKeys[flowLoopCount] = key2; - flowLoopTypes[flowLoopCount] = antecedentTypes; - flowLoopCount++; - const saveFlowTypeCache = flowTypeCache; - flowTypeCache = void 0; - flowType = getTypeAtFlowNode(antecedent); - flowTypeCache = saveFlowTypeCache; - flowLoopCount--; - const cached2 = cache.get(key2); - if (cached2) { - return cached2; - } - } - const type = getTypeFromFlowType(flowType); - pushIfUnique(antecedentTypes, type); - if (!isTypeSubsetOf(type, initialType)) { - subtypeReduction = true; - } - if (type === declaredType) { - break; - } - } - const result = getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */); - if (isIncomplete(firstAntecedentType)) { - return createFlowType( - result, - /*incomplete*/ - true - ); - } - cache.set(key2, result); - return result; - } - function getUnionOrEvolvingArrayType(types, subtypeReduction) { - if (isEvolvingArrayTypeList(types)) { - return getEvolvingArrayType(getUnionType(map(types, getElementTypeOfEvolvingArrayType))); - } - const result = recombineUnknownType(getUnionType(sameMap(types, finalizeEvolvingArrayType), subtypeReduction)); - if (result !== declaredType && result.flags & declaredType.flags & 1048576 /* Union */ && arrayIsEqualTo(result.types, declaredType.types)) { - return declaredType; - } - return result; - } - function getCandidateDiscriminantPropertyAccess(expr) { - if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) { - if (isIdentifier(expr)) { - const symbol = getResolvedSymbol(expr); - const declaration = symbol.valueDeclaration; - if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) { - return declaration; - } - } - } else if (isAccessExpression(expr)) { - if (isMatchingReference(reference, expr.expression)) { - return expr; - } - } else if (isIdentifier(expr)) { - const symbol = getResolvedSymbol(expr); - if (isConstantVariable(symbol)) { - const declaration = symbol.valueDeclaration; - if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { - return declaration.initializer; - } - if (isBindingElement(declaration) && !declaration.initializer) { - const parent = declaration.parent.parent; - if (isVariableDeclaration(parent) && !parent.type && parent.initializer && (isIdentifier(parent.initializer) || isAccessExpression(parent.initializer)) && isMatchingReference(reference, parent.initializer)) { - return declaration; - } - } - } - } - return void 0; - } - function getDiscriminantPropertyAccess(expr, computedType) { - if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) { - const access = getCandidateDiscriminantPropertyAccess(expr); - if (access) { - const name = getAccessedPropertyName(access); - if (name) { - const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType; - if (isDiscriminantProperty(type, name)) { - return access; - } - } - } - } - return void 0; - } - function narrowTypeByDiscriminant(type, access, narrowType2) { - const propName = getAccessedPropertyName(access); - if (propName === void 0) { - return type; - } - const optionalChain = isOptionalChain(access); - const removeNullable = strictNullChecks && (optionalChain || isNonNullAccess(access)) && maybeTypeOfKind(type, 98304 /* Nullable */); - let propType = getTypeOfPropertyOfType(removeNullable ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type, propName); - if (!propType) { - return type; - } - propType = removeNullable && optionalChain ? getOptionalType(propType) : propType; - const narrowedPropType = narrowType2(propType); - return filterType(type, (t) => { - const discriminantType = getTypeOfPropertyOrIndexSignatureOfType(t, propName) || unknownType; - return !(discriminantType.flags & 131072 /* Never */) && !(narrowedPropType.flags & 131072 /* Never */) && areTypesComparable(narrowedPropType, discriminantType); - }); - } - function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) { - if ((operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) && type.flags & 1048576 /* Union */) { - const keyPropertyName = getKeyPropertyName(type); - if (keyPropertyName && keyPropertyName === getAccessedPropertyName(access)) { - const candidate = getConstituentTypeForKeyType(type, getTypeOfExpression(value)); - if (candidate) { - return operator === (assumeTrue ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */) ? candidate : isUnitType(getTypeOfPropertyOfType(candidate, keyPropertyName) || unknownType) ? removeType(type, candidate) : type; - } - } - } - return narrowTypeByDiscriminant(type, access, (t) => narrowTypeByEquality(t, operator, value, assumeTrue)); - } - function narrowTypeBySwitchOnDiscriminantProperty(type, access, data) { - if (data.clauseStart < data.clauseEnd && type.flags & 1048576 /* Union */ && getKeyPropertyName(type) === getAccessedPropertyName(access)) { - const clauseTypes = getSwitchClauseTypes(data.switchStatement).slice(data.clauseStart, data.clauseEnd); - const candidate = getUnionType(map(clauseTypes, (t) => getConstituentTypeForKeyType(type, t) || unknownType)); - if (candidate !== unknownType) { - return candidate; - } - } - return narrowTypeByDiscriminant(type, access, (t) => narrowTypeBySwitchOnDiscriminant(t, data)); - } - function narrowTypeByTruthiness(type, expr, assumeTrue) { - if (isMatchingReference(reference, expr)) { - return getAdjustedTypeWithFacts(type, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */); - } - if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) { - type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); - } - const access = getDiscriminantPropertyAccess(expr, type); - if (access) { - return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */)); - } - return type; - } - function isTypePresencePossible(type, propName, assumeTrue) { - const prop = getPropertyOfType(type, propName); - return prop ? !!(prop.flags & 16777216 /* Optional */ || getCheckFlags(prop) & 48 /* Partial */) || assumeTrue : !!getApplicableIndexInfoForName(type, propName) || !assumeTrue; - } - function narrowTypeByInKeyword(type, nameType, assumeTrue) { - const name = getPropertyNameFromType(nameType); - const isKnownProperty2 = someType(type, (t) => isTypePresencePossible( - t, - name, - /*assumeTrue*/ - true - )); - if (isKnownProperty2) { - return filterType(type, (t) => isTypePresencePossible(t, name, assumeTrue)); - } - if (assumeTrue) { - const recordSymbol = getGlobalRecordSymbol(); - if (recordSymbol) { - return getIntersectionType([type, getTypeAliasInstantiation(recordSymbol, [nameType, unknownType])]); - } - } - return type; - } - function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) { - assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */); - return narrowType(type, expr, assumeTrue); - } - function narrowTypeByBinaryExpression(type, expr, assumeTrue) { - switch (expr.operatorToken.kind) { - case 64 /* EqualsToken */: - case 76 /* BarBarEqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return narrowTypeByTruthiness(narrowType(type, expr.right, assumeTrue), expr.left, assumeTrue); - case 35 /* EqualsEqualsToken */: - case 36 /* ExclamationEqualsToken */: - case 37 /* EqualsEqualsEqualsToken */: - case 38 /* ExclamationEqualsEqualsToken */: - const operator = expr.operatorToken.kind; - const left = getReferenceCandidate(expr.left); - const right = getReferenceCandidate(expr.right); - if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { - return narrowTypeByTypeof(type, left, operator, right, assumeTrue); - } - if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { - return narrowTypeByTypeof(type, right, operator, left, assumeTrue); - } - if (isMatchingReference(reference, left)) { - return narrowTypeByEquality(type, operator, right, assumeTrue); - } - if (isMatchingReference(reference, right)) { - return narrowTypeByEquality(type, operator, left, assumeTrue); - } - if (strictNullChecks) { - if (optionalChainContainsReference(left, reference)) { - type = narrowTypeByOptionalChainContainment(type, operator, right, assumeTrue); - } else if (optionalChainContainsReference(right, reference)) { - type = narrowTypeByOptionalChainContainment(type, operator, left, assumeTrue); - } - } - const leftAccess = getDiscriminantPropertyAccess(left, type); - if (leftAccess) { - return narrowTypeByDiscriminantProperty(type, leftAccess, operator, right, assumeTrue); - } - const rightAccess = getDiscriminantPropertyAccess(right, type); - if (rightAccess) { - return narrowTypeByDiscriminantProperty(type, rightAccess, operator, left, assumeTrue); - } - if (isMatchingConstructorReference(left)) { - return narrowTypeByConstructor(type, operator, right, assumeTrue); - } - if (isMatchingConstructorReference(right)) { - return narrowTypeByConstructor(type, operator, left, assumeTrue); - } - if (isBooleanLiteral(right) && !isAccessExpression(left)) { - return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue); - } - if (isBooleanLiteral(left) && !isAccessExpression(right)) { - return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue); - } - break; - case 104 /* InstanceOfKeyword */: - return narrowTypeByInstanceof(type, expr, assumeTrue); - case 103 /* InKeyword */: - if (isPrivateIdentifier(expr.left)) { - return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); - } - const target = getReferenceCandidate(expr.right); - if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { - const leftType = getTypeOfExpression(expr.left); - if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { - return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); - } - } - if (isMatchingReference(reference, target)) { - const leftType = getTypeOfExpression(expr.left); - if (isTypeUsableAsPropertyName(leftType)) { - return narrowTypeByInKeyword(type, leftType, assumeTrue); - } - } - break; - case 28 /* CommaToken */: - return narrowType(type, expr.right, assumeTrue); - // Ordinarily we won't see && and || expressions in control flow analysis because the Binder breaks those - // expressions down to individual conditional control flows. However, we may encounter them when analyzing - // aliased conditional expressions. - case 56 /* AmpersandAmpersandToken */: - return assumeTrue ? narrowType( - narrowType( - type, - expr.left, - /*assumeTrue*/ - true - ), - expr.right, - /*assumeTrue*/ - true - ) : getUnionType([narrowType( - type, - expr.left, - /*assumeTrue*/ - false - ), narrowType( - type, - expr.right, - /*assumeTrue*/ - false - )]); - case 57 /* BarBarToken */: - return assumeTrue ? getUnionType([narrowType( - type, - expr.left, - /*assumeTrue*/ - true - ), narrowType( - type, - expr.right, - /*assumeTrue*/ - true - )]) : narrowType( - narrowType( - type, - expr.left, - /*assumeTrue*/ - false - ), - expr.right, - /*assumeTrue*/ - false - ); - } - return type; - } - function narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue) { - const target = getReferenceCandidate(expr.right); - if (!isMatchingReference(reference, target)) { - return type; - } - Debug.assertNode(expr.left, isPrivateIdentifier); - const symbol = getSymbolForPrivateIdentifierExpression(expr.left); - if (symbol === void 0) { - return type; - } - const classSymbol = symbol.parent; - const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol); - return getNarrowedType( - type, - targetType, - assumeTrue, - /*checkDerived*/ - true - ); - } - function narrowTypeByOptionalChainContainment(type, operator, value, assumeTrue) { - const equalsOperator = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - const nullableFlags = operator === 35 /* EqualsEqualsToken */ || operator === 36 /* ExclamationEqualsToken */ ? 98304 /* Nullable */ : 32768 /* Undefined */; - const valueType = getTypeOfExpression(value); - const removeNullable = equalsOperator !== assumeTrue && everyType(valueType, (t) => !!(t.flags & nullableFlags)) || equalsOperator === assumeTrue && everyType(valueType, (t) => !(t.flags & (3 /* AnyOrUnknown */ | nullableFlags))); - return removeNullable ? getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; - } - function narrowTypeByEquality(type, operator, value, assumeTrue) { - if (type.flags & 1 /* Any */) { - return type; - } - if (operator === 36 /* ExclamationEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) { - assumeTrue = !assumeTrue; - } - const valueType = getTypeOfExpression(value); - const doubleEquals = operator === 35 /* EqualsEqualsToken */ || operator === 36 /* ExclamationEqualsToken */; - if (valueType.flags & 98304 /* Nullable */) { - if (!strictNullChecks) { - return type; - } - const facts = doubleEquals ? assumeTrue ? 262144 /* EQUndefinedOrNull */ : 2097152 /* NEUndefinedOrNull */ : valueType.flags & 65536 /* Null */ ? assumeTrue ? 131072 /* EQNull */ : 1048576 /* NENull */ : assumeTrue ? 65536 /* EQUndefined */ : 524288 /* NEUndefined */; - return getAdjustedTypeWithFacts(type, facts); - } - if (assumeTrue) { - if (!doubleEquals && (type.flags & 2 /* Unknown */ || someType(type, isEmptyAnonymousObjectType))) { - if (valueType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) { - return valueType; - } - if (valueType.flags & 524288 /* Object */) { - return nonPrimitiveType; - } - } - const filteredType = filterType(type, (t) => areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType)); - return replacePrimitivesWithLiterals(filteredType, valueType); - } - if (isUnitType(valueType)) { - return filterType(type, (t) => !(isUnitLikeType(t) && areTypesComparable(t, valueType))); - } - return type; - } - function narrowTypeByTypeof(type, typeOfExpr, operator, literal, assumeTrue) { - if (operator === 36 /* ExclamationEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) { - assumeTrue = !assumeTrue; - } - const target = getReferenceCandidate(typeOfExpr.expression); - if (!isMatchingReference(reference, target)) { - if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== "undefined")) { - type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); - } - const propertyAccess = getDiscriminantPropertyAccess(target, type); - if (propertyAccess) { - return narrowTypeByDiscriminant(type, propertyAccess, (t) => narrowTypeByLiteralExpression(t, literal, assumeTrue)); - } - return type; - } - return narrowTypeByLiteralExpression(type, literal, assumeTrue); - } - function narrowTypeByLiteralExpression(type, literal, assumeTrue) { - return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */); - } - function narrowTypeBySwitchOptionalChainContainment(type, { switchStatement, clauseStart, clauseEnd }, clauseCheck) { - const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck); - return everyClauseChecks ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; - } - function narrowTypeBySwitchOnDiscriminant(type, { switchStatement, clauseStart, clauseEnd }) { - const switchTypes = getSwitchClauseTypes(switchStatement); - if (!switchTypes.length) { - return type; - } - const clauseTypes = switchTypes.slice(clauseStart, clauseEnd); - const hasDefaultClause = clauseStart === clauseEnd || contains(clauseTypes, neverType); - if (type.flags & 2 /* Unknown */ && !hasDefaultClause) { - let groundClauseTypes; - for (let i = 0; i < clauseTypes.length; i += 1) { - const t = clauseTypes[i]; - if (t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) { - if (groundClauseTypes !== void 0) { - groundClauseTypes.push(t); - } - } else if (t.flags & 524288 /* Object */) { - if (groundClauseTypes === void 0) { - groundClauseTypes = clauseTypes.slice(0, i); - } - groundClauseTypes.push(nonPrimitiveType); - } else { - return type; - } - } - return getUnionType(groundClauseTypes === void 0 ? clauseTypes : groundClauseTypes); - } - const discriminantType = getUnionType(clauseTypes); - const caseType = discriminantType.flags & 131072 /* Never */ ? neverType : replacePrimitivesWithLiterals(filterType(type, (t) => areTypesComparable(discriminantType, t)), discriminantType); - if (!hasDefaultClause) { - return caseType; - } - const defaultType = filterType(type, (t) => !(isUnitLikeType(t) && contains(switchTypes, t.flags & 32768 /* Undefined */ ? undefinedType : getRegularTypeOfLiteralType(extractUnitType(t))))); - return caseType.flags & 131072 /* Never */ ? defaultType : getUnionType([caseType, defaultType]); - } - function narrowTypeByTypeName(type, typeName) { - switch (typeName) { - case "string": - return narrowTypeByTypeFacts(type, stringType, 1 /* TypeofEQString */); - case "number": - return narrowTypeByTypeFacts(type, numberType, 2 /* TypeofEQNumber */); - case "bigint": - return narrowTypeByTypeFacts(type, bigintType, 4 /* TypeofEQBigInt */); - case "boolean": - return narrowTypeByTypeFacts(type, booleanType, 8 /* TypeofEQBoolean */); - case "symbol": - return narrowTypeByTypeFacts(type, esSymbolType, 16 /* TypeofEQSymbol */); - case "object": - return type.flags & 1 /* Any */ ? type : getUnionType([narrowTypeByTypeFacts(type, nonPrimitiveType, 32 /* TypeofEQObject */), narrowTypeByTypeFacts(type, nullType, 131072 /* EQNull */)]); - case "function": - return type.flags & 1 /* Any */ ? type : narrowTypeByTypeFacts(type, globalFunctionType, 64 /* TypeofEQFunction */); - case "undefined": - return narrowTypeByTypeFacts(type, undefinedType, 65536 /* EQUndefined */); - } - return narrowTypeByTypeFacts(type, nonPrimitiveType, 128 /* TypeofEQHostObject */); - } - function narrowTypeByTypeFacts(type, impliedType, facts) { - return mapType(type, (t) => ( - // We first check if a constituent is a subtype of the implied type. If so, we either keep or eliminate - // the constituent based on its type facts. We use the strict subtype relation because it treats `object` - // as a subtype of `{}`, and we need the type facts check because function types are subtypes of `object`, - // but are classified as "function" according to `typeof`. - isTypeRelatedTo(t, impliedType, strictSubtypeRelation) ? hasTypeFacts(t, facts) ? t : neverType : ( - // We next check if the consituent is a supertype of the implied type. If so, we substitute the implied - // type. This handles top types like `unknown` and `{}`, and supertypes like `{ toString(): string }`. - isTypeSubtypeOf(impliedType, t) ? impliedType : ( - // Neither the constituent nor the implied type is a subtype of the other, however their domains may still - // overlap. For example, an unconstrained type parameter and type `string`. If the type facts indicate - // possible overlap, we form an intersection. Otherwise, we eliminate the constituent. - hasTypeFacts(t, facts) ? getIntersectionType([t, impliedType]) : neverType - ) - ) - )); - } - function narrowTypeBySwitchOnTypeOf(type, { switchStatement, clauseStart, clauseEnd }) { - const witnesses = getSwitchClauseTypeOfWitnesses(switchStatement); - if (!witnesses) { - return type; - } - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); - const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; - if (hasDefaultClause) { - const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); - return filterType(type, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts); - } - const clauseWitnesses = witnesses.slice(clauseStart, clauseEnd); - return getUnionType(map(clauseWitnesses, (text) => text ? narrowTypeByTypeName(type, text) : neverType)); - } - function narrowTypeBySwitchOnTrue(type, { switchStatement, clauseStart, clauseEnd }) { - const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); - const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; - for (let i = 0; i < clauseStart; i++) { - const clause = switchStatement.caseBlock.clauses[i]; - if (clause.kind === 296 /* CaseClause */) { - type = narrowType( - type, - clause.expression, - /*assumeTrue*/ - false - ); - } - } - if (hasDefaultClause) { - for (let i = clauseEnd; i < switchStatement.caseBlock.clauses.length; i++) { - const clause = switchStatement.caseBlock.clauses[i]; - if (clause.kind === 296 /* CaseClause */) { - type = narrowType( - type, - clause.expression, - /*assumeTrue*/ - false - ); - } - } - return type; - } - const clauses = switchStatement.caseBlock.clauses.slice(clauseStart, clauseEnd); - return getUnionType(map(clauses, (clause) => clause.kind === 296 /* CaseClause */ ? narrowType( - type, - clause.expression, - /*assumeTrue*/ - true - ) : neverType)); - } - function isMatchingConstructorReference(expr) { - return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference, expr.expression); - } - function narrowTypeByConstructor(type, operator, identifier, assumeTrue) { - if (assumeTrue ? operator !== 35 /* EqualsEqualsToken */ && operator !== 37 /* EqualsEqualsEqualsToken */ : operator !== 36 /* ExclamationEqualsToken */ && operator !== 38 /* ExclamationEqualsEqualsToken */) { - return type; - } - const identifierType = getTypeOfExpression(identifier); - if (!isFunctionType(identifierType) && !isConstructorType(identifierType)) { - return type; - } - const prototypeProperty = getPropertyOfType(identifierType, "prototype"); - if (!prototypeProperty) { - return type; - } - const prototypeType = getTypeOfSymbol(prototypeProperty); - const candidate = !isTypeAny(prototypeType) ? prototypeType : void 0; - if (!candidate || candidate === globalObjectType || candidate === globalFunctionType) { - return type; - } - if (isTypeAny(type)) { - return candidate; - } - return filterType(type, (t) => isConstructedBy(t, candidate)); - function isConstructedBy(source, target) { - if (source.flags & 524288 /* Object */ && getObjectFlags(source) & 1 /* Class */ || target.flags & 524288 /* Object */ && getObjectFlags(target) & 1 /* Class */) { - return source.symbol === target.symbol; - } - return isTypeSubtypeOf(source, target); - } - } - function narrowTypeByInstanceof(type, expr, assumeTrue) { - const left = getReferenceCandidate(expr.left); - if (!isMatchingReference(reference, left)) { - if (assumeTrue && strictNullChecks && optionalChainContainsReference(left, reference)) { - return getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); - } - return type; - } - const right = expr.right; - const rightType = getTypeOfExpression(right); - if (!isTypeDerivedFrom(rightType, globalObjectType)) { - return type; - } - const signature = getEffectsSignature(expr); - const predicate = signature && getTypePredicateOfSignature(signature); - if (predicate && predicate.kind === 1 /* Identifier */ && predicate.parameterIndex === 0) { - return getNarrowedType( - type, - predicate.type, - assumeTrue, - /*checkDerived*/ - true - ); - } - if (!isTypeDerivedFrom(rightType, globalFunctionType)) { - return type; - } - const instanceType = mapType(rightType, getInstanceType); - if (isTypeAny(type) && (instanceType === globalObjectType || instanceType === globalFunctionType) || !assumeTrue && !(instanceType.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(instanceType))) { - return type; - } - return getNarrowedType( - type, - instanceType, - assumeTrue, - /*checkDerived*/ - true - ); - } - function getInstanceType(constructorType) { - const prototypePropertyType = getTypeOfPropertyOfType(constructorType, "prototype"); - if (prototypePropertyType && !isTypeAny(prototypePropertyType)) { - return prototypePropertyType; - } - const constructSignatures = getSignaturesOfType(constructorType, 1 /* Construct */); - if (constructSignatures.length) { - return getUnionType(map(constructSignatures, (signature) => getReturnTypeOfSignature(getErasedSignature(signature)))); - } - return emptyObjectType; - } - function getNarrowedType(type, candidate, assumeTrue, checkDerived) { - const key2 = type.flags & 1048576 /* Union */ ? `N${getTypeId(type)},${getTypeId(candidate)},${(assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)}` : void 0; - return getCachedType(key2) ?? setCachedType(key2, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived)); - } - function getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived) { - if (!assumeTrue) { - if (type === candidate) { - return neverType; - } - if (checkDerived) { - return filterType(type, (t) => !isTypeDerivedFrom(t, candidate)); - } - type = type.flags & 2 /* Unknown */ ? unknownUnionType : type; - const trueType2 = getNarrowedType( - type, - candidate, - /*assumeTrue*/ - true, - /*checkDerived*/ - false - ); - return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2))); - } - if (type.flags & 3 /* AnyOrUnknown */) { - return candidate; - } - if (type === candidate) { - return candidate; - } - const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf; - const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0; - const narrowedType = mapType(candidate, (c) => { - const discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName); - const matching = discriminant && getConstituentTypeForKeyType(type, discriminant); - const directlyRelated = mapType( - matching || type, - checkDerived ? (t) => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : (t) => isTypeStrictSubtypeOf(t, c) ? t : isTypeStrictSubtypeOf(c, t) ? c : isTypeSubtypeOf(t, c) ? t : isTypeSubtypeOf(c, t) ? c : neverType - ); - return directlyRelated.flags & 131072 /* Never */ ? mapType(type, (t) => maybeTypeOfKind(t, 465829888 /* Instantiable */) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType) : directlyRelated; - }); - return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]); - } - function narrowTypeByCallExpression(type, callExpression, assumeTrue) { - if (hasMatchingArgument(callExpression, reference)) { - const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0; - const predicate = signature && getTypePredicateOfSignature(signature); - if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) { - return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); - } - } - if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) { - const callAccess = callExpression.expression; - if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) { - const argument = callExpression.arguments[0]; - if (isStringLiteralLike(argument) && getAccessedPropertyName(reference) === escapeLeadingUnderscores(argument.text)) { - return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); - } - } - } - return type; - } - function narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue) { - if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) { - const predicateArgument = getTypePredicateArgument(predicate, callExpression); - if (predicateArgument) { - if (isMatchingReference(reference, predicateArgument)) { - return getNarrowedType( - type, - predicate.type, - assumeTrue, - /*checkDerived*/ - false - ); - } - if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference) && (assumeTrue && !hasTypeFacts(predicate.type, 65536 /* EQUndefined */) || !assumeTrue && everyType(predicate.type, isNullableType))) { - type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); - } - const access = getDiscriminantPropertyAccess(predicateArgument, type); - if (access) { - return narrowTypeByDiscriminant(type, access, (t) => getNarrowedType( - t, - predicate.type, - assumeTrue, - /*checkDerived*/ - false - )); - } - } - } - return type; - } - function narrowType(type, expr, assumeTrue) { - if (isExpressionOfOptionalChainRoot(expr) || isBinaryExpression(expr.parent) && (expr.parent.operatorToken.kind === 61 /* QuestionQuestionToken */ || expr.parent.operatorToken.kind === 78 /* QuestionQuestionEqualsToken */) && expr.parent.left === expr) { - return narrowTypeByOptionality(type, expr, assumeTrue); - } - switch (expr.kind) { - case 80 /* Identifier */: - if (!isMatchingReference(reference, expr) && inlineLevel < 5) { - const symbol = getResolvedSymbol(expr); - if (isConstantVariable(symbol)) { - const declaration = symbol.valueDeclaration; - if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { - inlineLevel++; - const result = narrowType(type, declaration.initializer, assumeTrue); - inlineLevel--; - return result; - } - } - } - // falls through - case 110 /* ThisKeyword */: - case 108 /* SuperKeyword */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return narrowTypeByTruthiness(type, expr, assumeTrue); - case 213 /* CallExpression */: - return narrowTypeByCallExpression(type, expr, assumeTrue); - case 217 /* ParenthesizedExpression */: - case 235 /* NonNullExpression */: - case 238 /* SatisfiesExpression */: - return narrowType(type, expr.expression, assumeTrue); - case 226 /* BinaryExpression */: - return narrowTypeByBinaryExpression(type, expr, assumeTrue); - case 224 /* PrefixUnaryExpression */: - if (expr.operator === 54 /* ExclamationToken */) { - return narrowType(type, expr.operand, !assumeTrue); - } - break; - } - return type; - } - function narrowTypeByOptionality(type, expr, assumePresent) { - if (isMatchingReference(reference, expr)) { - return getAdjustedTypeWithFacts(type, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */); - } - const access = getDiscriminantPropertyAccess(expr, type); - if (access) { - return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */)); - } - return type; - } - } - function getTypeOfSymbolAtLocation(symbol, location) { - symbol = getExportSymbolOfValueSymbolIfExported(symbol); - if (location.kind === 80 /* Identifier */ || location.kind === 81 /* PrivateIdentifier */) { - if (isRightSideOfQualifiedNameOrPropertyAccess(location)) { - location = location.parent; - } - if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { - const type = removeOptionalTypeMarker( - isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression( - location, - /*checkMode*/ - void 0, - /*writeOnly*/ - true - ) : getTypeOfExpression(location) - ); - if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { - return type; - } - } - } - if (isDeclarationName(location) && isSetAccessor(location.parent) && getAnnotatedAccessorTypeNode(location.parent)) { - return getWriteTypeOfAccessors(location.parent.symbol); - } - return isRightSideOfAccessExpression(location) && isWriteAccess(location.parent) ? getWriteTypeOfSymbol(symbol) : getNonMissingTypeOfSymbol(symbol); - } - function getControlFlowContainer(node) { - return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 307 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); - } - function isSymbolAssignedDefinitely(symbol) { - if (symbol.lastAssignmentPos !== void 0) { - return symbol.lastAssignmentPos < 0; - } - return isSymbolAssigned(symbol) && symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0; - } - function isSymbolAssigned(symbol) { - return !isPastLastAssignment( - symbol, - /*location*/ - void 0 - ); - } - function isPastLastAssignment(symbol, location) { - const parent = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); - if (!parent) { - return false; - } - const links = getNodeLinks(parent); - if (!(links.flags & 131072 /* AssignmentsMarked */)) { - links.flags |= 131072 /* AssignmentsMarked */; - if (!hasParentWithAssignmentsMarked(parent)) { - markNodeAssignments(parent); - } - } - return !symbol.lastAssignmentPos || location && Math.abs(symbol.lastAssignmentPos) < location.pos; - } - function isSomeSymbolAssigned(rootDeclaration) { - Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration)); - return isSomeSymbolAssignedWorker(rootDeclaration.name); - } - function isSomeSymbolAssignedWorker(node) { - if (node.kind === 80 /* Identifier */) { - return isSymbolAssigned(getSymbolOfDeclaration(node.parent)); - } - return some(node.elements, (e) => e.kind !== 232 /* OmittedExpression */ && isSomeSymbolAssignedWorker(e.name)); - } - function hasParentWithAssignmentsMarked(node) { - return !!findAncestor(node.parent, (node2) => isFunctionOrSourceFile(node2) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); - } - function isFunctionOrSourceFile(node) { - return isFunctionLikeDeclaration(node) || isSourceFile(node); - } - function markNodeAssignments(node) { - switch (node.kind) { - case 80 /* Identifier */: - const assigmentTarget = getAssignmentTargetKind(node); - if (assigmentTarget !== 0 /* None */) { - const symbol = getResolvedSymbol(node); - const hasDefiniteAssignment = assigmentTarget === 1 /* Definite */ || symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0; - if (isParameterOrMutableLocalVariable(symbol)) { - if (symbol.lastAssignmentPos === void 0 || Math.abs(symbol.lastAssignmentPos) !== Number.MAX_VALUE) { - const referencingFunction = findAncestor(node, isFunctionOrSourceFile); - const declaringFunction = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); - symbol.lastAssignmentPos = referencingFunction === declaringFunction ? extendAssignmentPosition(node, symbol.valueDeclaration) : Number.MAX_VALUE; - } - if (hasDefiniteAssignment && symbol.lastAssignmentPos > 0) { - symbol.lastAssignmentPos *= -1; - } - } - } - return; - case 281 /* ExportSpecifier */: - const exportDeclaration = node.parent.parent; - const name = node.propertyName || node.name; - if (!node.isTypeOnly && !exportDeclaration.isTypeOnly && !exportDeclaration.moduleSpecifier && name.kind !== 11 /* StringLiteral */) { - const symbol = resolveEntityName( - name, - 111551 /* Value */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true - ); - if (symbol && isParameterOrMutableLocalVariable(symbol)) { - const sign = symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0 ? -1 : 1; - symbol.lastAssignmentPos = sign * Number.MAX_VALUE; - } - } - return; - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 266 /* EnumDeclaration */: - return; - } - if (isTypeNode(node)) { - return; - } - forEachChild(node, markNodeAssignments); - } - function extendAssignmentPosition(node, declaration) { - let pos = node.pos; - while (node && node.pos > declaration.pos) { - switch (node.kind) { - case 243 /* VariableStatement */: - case 244 /* ExpressionStatement */: - case 245 /* IfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 254 /* WithStatement */: - case 255 /* SwitchStatement */: - case 258 /* TryStatement */: - case 263 /* ClassDeclaration */: - pos = node.end; - } - node = node.parent; - } - return pos; - } - function isConstantVariable(symbol) { - return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; - } - function isParameterOrMutableLocalVariable(symbol) { - const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); - return !!declaration && (isParameter(declaration) || isVariableDeclaration(declaration) && (isCatchClause(declaration.parent) || isMutableLocalVariableDeclaration(declaration))); - } - function isMutableLocalVariableDeclaration(declaration) { - return !!(declaration.parent.flags & 1 /* Let */) && !(getCombinedModifierFlags(declaration) & 32 /* Export */ || declaration.parent.parent.kind === 243 /* VariableStatement */ && isGlobalSourceFile(declaration.parent.parent.parent)); - } - function parameterInitializerContainsUndefined(declaration) { - const links = getNodeLinks(declaration); - if (links.parameterInitializerContainsUndefined === void 0) { - if (!pushTypeResolution(declaration, 8 /* ParameterInitializerContainsUndefined */)) { - reportCircularityError(declaration.symbol); - return true; - } - const containsUndefined = !!hasTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */), 16777216 /* IsUndefined */); - if (!popTypeResolution()) { - reportCircularityError(declaration.symbol); - return true; - } - links.parameterInitializerContainsUndefined ?? (links.parameterInitializerContainsUndefined = containsUndefined); - } - return links.parameterInitializerContainsUndefined; - } - function removeOptionalityFromDeclaredType(declaredType, declaration) { - const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && hasTypeFacts(declaredType, 16777216 /* IsUndefined */) && !parameterInitializerContainsUndefined(declaration); - return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; - } - function isConstraintPosition(type, node) { - const parent = node.parent; - return parent.kind === 211 /* PropertyAccessExpression */ || parent.kind === 166 /* QualifiedName */ || parent.kind === 213 /* CallExpression */ && parent.expression === node || parent.kind === 214 /* NewExpression */ && parent.expression === node || parent.kind === 212 /* ElementAccessExpression */ && parent.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression))); - } - function isGenericTypeWithUnionConstraint(type) { - return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); - } - function isGenericTypeWithoutNullableConstraint(type) { - return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithoutNullableConstraint) : !!(type.flags & 465829888 /* Instantiable */ && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304 /* Nullable */)); - } - function hasContextualTypeWithNoGenericTypes(node, checkMode) { - const contextualType = (isIdentifier(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node)) && !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && (checkMode && checkMode & 32 /* RestBindingElement */ ? getContextualType(node, 8 /* SkipBindingPatterns */) : getContextualType( - node, - /*contextFlags*/ - void 0 - )); - return contextualType && !isGenericType(contextualType); - } - function getNarrowableTypeForReference(type, reference, checkMode) { - if (isNoInferType(type)) { - type = type.baseType; - } - const substituteConstraints = !(checkMode && checkMode & 2 /* Inferential */) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode)); - return substituteConstraints ? mapType(type, getBaseConstraintOrType) : type; - } - function isExportOrExportExpression(location) { - return !!findAncestor(location, (n) => { - const parent = n.parent; - if (parent === void 0) { - return "quit"; - } - if (isExportAssignment(parent)) { - return parent.expression === n && isEntityNameExpression(n); - } - if (isExportSpecifier(parent)) { - return parent.name === n || parent.propertyName === n; - } - return false; - }); - } - function markLinkedReferences(location, hint, propSymbol, parentType) { - if (!canCollectSymbolAliasAccessabilityData) { - return; - } - if (location.flags & 33554432 /* Ambient */ && !isPropertySignature(location) && !isPropertyDeclaration(location)) { - return; - } - switch (hint) { - case 1 /* Identifier */: - return markIdentifierAliasReferenced(location); - case 2 /* Property */: - return markPropertyAliasReferenced(location, propSymbol, parentType); - case 3 /* ExportAssignment */: - return markExportAssignmentAliasReferenced(location); - case 4 /* Jsx */: - return markJsxAliasReferenced(location); - case 5 /* AsyncFunction */: - return markAsyncFunctionAliasReferenced(location); - case 6 /* ExportImportEquals */: - return markImportEqualsAliasReferenced(location); - case 7 /* ExportSpecifier */: - return markExportSpecifierAliasReferenced(location); - case 8 /* Decorator */: - return markDecoratorAliasReferenced(location); - case 0 /* Unspecified */: { - if (isIdentifier(location) && (isExpressionNode(location) || isShorthandPropertyAssignment(location.parent) || isImportEqualsDeclaration(location.parent) && location.parent.moduleReference === location) && shouldMarkIdentifierAliasReferenced(location)) { - if (isPropertyAccessOrQualifiedName(location.parent)) { - const left = isPropertyAccessExpression(location.parent) ? location.parent.expression : location.parent.left; - if (left !== location) return; - } - markIdentifierAliasReferenced(location); - return; - } - if (isPropertyAccessOrQualifiedName(location)) { - let topProp = location; - while (isPropertyAccessOrQualifiedName(topProp)) { - if (isPartOfTypeNode(topProp)) return; - topProp = topProp.parent; - } - return markPropertyAliasReferenced(location); - } - if (isExportAssignment(location)) { - return markExportAssignmentAliasReferenced(location); - } - if (isJsxOpeningLikeElement(location) || isJsxOpeningFragment(location)) { - return markJsxAliasReferenced(location); - } - if (isImportEqualsDeclaration(location)) { - if (isInternalModuleImportEqualsDeclaration(location) || checkExternalImportOrExportDeclaration(location)) { - return markImportEqualsAliasReferenced(location); - } - return; - } - if (isExportSpecifier(location)) { - return markExportSpecifierAliasReferenced(location); - } - if (isFunctionLikeDeclaration(location) || isMethodSignature(location)) { - markAsyncFunctionAliasReferenced(location); - } - if (!compilerOptions.emitDecoratorMetadata) { - return; - } - if (!canHaveDecorators(location) || !hasDecorators(location) || !location.modifiers || !nodeCanBeDecorated(legacyDecorators, location, location.parent, location.parent.parent)) { - return; - } - return markDecoratorAliasReferenced(location); - } - default: - Debug.assertNever(hint, `Unhandled reference hint: ${hint}`); - } - } - function markIdentifierAliasReferenced(location) { - const symbol = getResolvedSymbol(location); - if (symbol && symbol !== argumentsSymbol && symbol !== unknownSymbol && !isThisInTypeQuery(location)) { - markAliasReferenced(symbol, location); - } - } - function markPropertyAliasReferenced(location, propSymbol, parentType) { - const left = isPropertyAccessExpression(location) ? location.expression : location.left; - if (isThisIdentifier(left) || !isIdentifier(left)) { - return; - } - const parentSymbol = getResolvedSymbol(left); - if (!parentSymbol || parentSymbol === unknownSymbol) { - return; - } - if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location)) { - markAliasReferenced(parentSymbol, location); - return; - } - const leftType = parentType || checkExpressionCached(left); - if (isTypeAny(leftType) || leftType === silentNeverType) { - markAliasReferenced(parentSymbol, location); - return; - } - let prop = propSymbol; - if (!prop && !parentType) { - const right = isPropertyAccessExpression(location) ? location.name : location.right; - const lexicallyScopedSymbol = isPrivateIdentifier(right) && lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right); - const assignmentKind = getAssignmentTargetKind(location); - const apparentType = getApparentType(assignmentKind !== 0 /* None */ || isMethodAccessForCall(location) ? getWidenedType(leftType) : leftType); - prop = isPrivateIdentifier(right) ? lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(apparentType, lexicallyScopedSymbol) || void 0 : getPropertyOfType(apparentType, right.escapedText); - } - if (!(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && location.parent.kind === 306 /* EnumMember */))) { - markAliasReferenced(parentSymbol, location); - } - return; - } - function markExportAssignmentAliasReferenced(location) { - if (isIdentifier(location.expression)) { - const id = location.expression; - const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( - id, - -1 /* All */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - location - )); - if (sym) { - markAliasReferenced(sym, id); - } - } - } - function markJsxAliasReferenced(node) { - if (!getJsxNamespaceContainerForImplicitImport(node)) { - const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0; - const jsxFactoryNamespace = getJsxNamespace(node); - const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node; - const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */; - let jsxFactorySym; - if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) { - jsxFactorySym = resolveName( - jsxFactoryLocation, - jsxFactoryNamespace, - shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, - jsxFactoryRefErr, - /*isUse*/ - true - ); - } - if (jsxFactorySym) { - jsxFactorySym.isReferenced = -1 /* All */; - if (canCollectSymbolAliasAccessabilityData && jsxFactorySym.flags & 2097152 /* Alias */ && !getTypeOnlyAliasDeclaration(jsxFactorySym)) { - markAliasSymbolAsReferenced(jsxFactorySym); - } - } - if (isJsxOpeningFragment(node)) { - const file = getSourceFileOfNode(node); - const entity = getJsxFactoryEntity(file); - if (entity) { - const localJsxNamespace = getFirstIdentifier(entity).escapedText; - resolveName( - jsxFactoryLocation, - localJsxNamespace, - shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, - jsxFactoryRefErr, - /*isUse*/ - true - ); - } - } - } - return; - } - function markAsyncFunctionAliasReferenced(location) { - if (languageVersion < 2 /* ES2015 */) { - if (getFunctionFlags(location) & 2 /* Async */) { - const returnTypeNode = getEffectiveReturnTypeNode(location); - markTypeNodeAsReferenced(returnTypeNode); - } - } - } - function markImportEqualsAliasReferenced(location) { - if (hasSyntacticModifier(location, 32 /* Export */)) { - markExportAsReferenced(location); - } - } - function markExportSpecifierAliasReferenced(location) { - if (!location.parent.parent.moduleSpecifier && !location.isTypeOnly && !location.parent.parent.isTypeOnly) { - const exportedName = location.propertyName || location.name; - if (exportedName.kind === 11 /* StringLiteral */) { - return; - } - const symbol = resolveName( - exportedName, - exportedName.escapedText, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { - } else { - const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); - if (!target || getSymbolFlags(target) & 111551 /* Value */) { - markExportAsReferenced(location); - markIdentifierAliasReferenced(exportedName); - } - } - return; - } - } - function markDecoratorAliasReferenced(node) { - if (compilerOptions.emitDecoratorMetadata) { - const firstDecorator = find(node.modifiers, isDecorator); - if (!firstDecorator) { - return; - } - checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); - switch (node.kind) { - case 263 /* ClassDeclaration */: - const constructor = getFirstConstructorWithBody(node); - if (constructor) { - for (const parameter of constructor.parameters) { - markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); - } - } - break; - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; - const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); - markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); - break; - case 174 /* MethodDeclaration */: - for (const parameter of node.parameters) { - markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); - } - markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); - break; - case 172 /* PropertyDeclaration */: - markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); - break; - case 169 /* Parameter */: - markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); - const containingSignature = node.parent; - for (const parameter of containingSignature.parameters) { - markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); - } - markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); - break; - } - } - } - function markAliasReferenced(symbol, location) { - if (!canCollectSymbolAliasAccessabilityData) { - return; - } - if (isNonLocalAlias( - symbol, - /*excludes*/ - 111551 /* Value */ - ) && !isInTypeQuery(location)) { - const target = resolveAlias(symbol); - if (getSymbolFlags( - symbol, - /*excludeTypeOnlyMeanings*/ - true - ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { - if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { - markAliasSymbolAsReferenced(symbol); - } - } - } - } - function markAliasSymbolAsReferenced(symbol) { - Debug.assert(canCollectSymbolAliasAccessabilityData); - const links = getSymbolLinks(symbol); - if (!links.referenced) { - links.referenced = true; - const node = getDeclarationOfAliasSymbol(symbol); - if (!node) return Debug.fail(); - if (isInternalModuleImportEqualsDeclaration(node)) { - if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { - const left = getFirstIdentifier(node.moduleReference); - markIdentifierAliasReferenced(left); - } - } - } - } - function markExportAsReferenced(node) { - const symbol = getSymbolOfDeclaration(node); - const target = resolveAlias(symbol); - if (target) { - const markAlias = target === unknownSymbol || getSymbolFlags( - symbol, - /*excludeTypeOnlyMeanings*/ - true - ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); - if (markAlias) { - markAliasSymbolAsReferenced(symbol); - } - } - } - function markEntityNameOrEntityExpressionAsReference(typeName, forDecoratorMetadata) { - if (!typeName) return; - const rootName = getFirstIdentifier(typeName); - const meaning = (typeName.kind === 80 /* Identifier */ ? 788968 /* Type */ : 1920 /* Namespace */) | 2097152 /* Alias */; - const rootSymbol = resolveName( - rootName, - rootName.escapedText, - meaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) { - if (canCollectSymbolAliasAccessabilityData && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) { - markAliasSymbolAsReferenced(rootSymbol); - } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { - const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); - const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration); - if (aliasDeclaration) { - addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); - } - } - } - } - function markTypeNodeAsReferenced(node) { - markEntityNameOrEntityExpressionAsReference( - node && getEntityNameFromTypeNode(node), - /*forDecoratorMetadata*/ - false - ); - } - function markDecoratorMedataDataTypeNodeAsReferenced(node) { - const entityName = getEntityNameForDecoratorMetadata(node); - if (entityName && isEntityName(entityName)) { - markEntityNameOrEntityExpressionAsReference( - entityName, - /*forDecoratorMetadata*/ - true - ); - } - } - function getNarrowedTypeOfSymbol(symbol, location) { - var _a; - const type = getTypeOfSymbol(symbol); - const declaration = symbol.valueDeclaration; - if (declaration) { - if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { - const parent = declaration.parent.parent; - const rootDeclaration = getRootDeclaration(parent); - if (rootDeclaration.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(rootDeclaration) & 6 /* Constant */ || rootDeclaration.kind === 169 /* Parameter */) { - const links = getNodeLinks(parent); - if (!(links.flags & 4194304 /* InCheckIdentifier */)) { - links.flags |= 4194304 /* InCheckIdentifier */; - const parentType = getTypeForBindingElementParent(parent, 0 /* Normal */); - const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); - links.flags &= ~4194304 /* InCheckIdentifier */; - if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ && isSomeSymbolAssigned(rootDeclaration))) { - const pattern = declaration.parent; - const narrowedType = getFlowTypeOfReference( - pattern, - parentTypeConstraint, - parentTypeConstraint, - /*flowContainer*/ - void 0, - location.flowNode - ); - if (narrowedType.flags & 131072 /* Never */) { - return neverType; - } - return getBindingElementTypeFromParentType( - declaration, - narrowedType, - /*noTupleBoundsCheck*/ - true - ); - } - } - } - } - if (isParameter(declaration) && !declaration.type && !declaration.initializer && !declaration.dotDotDotToken) { - const func = declaration.parent; - if (func.parameters.length >= 2 && isContextSensitiveFunctionOrObjectLiteralMethod(func)) { - const contextualSignature = getContextualSignature(func); - if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) { - const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a = getInferenceContext(func)) == null ? void 0 : _a.nonFixingMapper)); - if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !some(func.parameters, isSomeSymbolAssigned)) { - const narrowedType = getFlowTypeOfReference( - func, - restType, - restType, - /*flowContainer*/ - void 0, - location.flowNode - ); - const index = func.parameters.indexOf(declaration) - (getThisParameter(func) ? 1 : 0); - return getIndexedAccessType(narrowedType, getNumberLiteralType(index)); - } - } - } - } - } - return type; - } - function checkIdentifierCalculateNodeCheckFlags(node, symbol) { - if (isThisInTypeQuery(node)) return; - if (symbol === argumentsSymbol) { - if (isInPropertyInitializerOrClassStaticBlock(node)) { - error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); - return; - } - let container = getContainingFunction(node); - if (container) { - if (languageVersion < 2 /* ES2015 */) { - if (container.kind === 219 /* ArrowFunction */) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression); - } else if (hasSyntacticModifier(container, 1024 /* Async */)) { - error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method); - } - } - getNodeLinks(container).flags |= 512 /* CaptureArguments */; - while (container && isArrowFunction(container)) { - container = getContainingFunction(container); - if (container) { - getNodeLinks(container).flags |= 512 /* CaptureArguments */; - } - } - } - return; - } - const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); - const targetSymbol = resolveAliasWithDeprecationCheck(localOrExportSymbol, node); - if (isDeprecatedSymbol(targetSymbol) && isUncalledFunctionReference(node, targetSymbol) && targetSymbol.declarations) { - addDeprecatedSuggestion(node, targetSymbol.declarations, node.escapedText); - } - const declaration = localOrExportSymbol.valueDeclaration; - if (declaration && localOrExportSymbol.flags & 32 /* Class */) { - if (isClassLike(declaration) && declaration.name !== node) { - let container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - while (container.kind !== 307 /* SourceFile */ && container.parent !== declaration) { - container = getThisContainer( - container, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - } - if (container.kind !== 307 /* SourceFile */) { - getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; - getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; - getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; - } - } - } - checkNestedBlockScopedBinding(node, symbol); - } - function checkIdentifier(node, checkMode) { - if (isThisInTypeQuery(node)) { - return checkThisExpression(node); - } - const symbol = getResolvedSymbol(node); - if (symbol === unknownSymbol) { - return errorType; - } - checkIdentifierCalculateNodeCheckFlags(node, symbol); - if (symbol === argumentsSymbol) { - if (isInPropertyInitializerOrClassStaticBlock(node)) { - return errorType; - } - return getTypeOfSymbol(symbol); - } - if (shouldMarkIdentifierAliasReferenced(node)) { - markLinkedReferences(node, 1 /* Identifier */); - } - const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); - let declaration = localOrExportSymbol.valueDeclaration; - const immediateDeclaration = declaration; - if (declaration && declaration.kind === 208 /* BindingElement */ && contains(contextualBindingPatterns, declaration.parent) && findAncestor(node, (parent) => parent === declaration.parent)) { - return nonInferrableAnyType; - } - let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node); - const assignmentKind = getAssignmentTargetKind(node); - if (assignmentKind) { - if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { - const assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 /* Class */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 /* Module */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 /* Function */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 /* Alias */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable; - error(node, assignmentError, symbolToString(symbol)); - return errorType; - } - if (isReadonlySymbol(localOrExportSymbol)) { - if (localOrExportSymbol.flags & 3 /* Variable */) { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); - } else { - error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); - } - return errorType; - } - } - const isAlias = localOrExportSymbol.flags & 2097152 /* Alias */; - if (localOrExportSymbol.flags & 3 /* Variable */) { - if (assignmentKind === 1 /* Definite */) { - return isInCompoundLikeAssignment(node) ? getBaseTypeOfLiteralType(type) : type; - } - } else if (isAlias) { - declaration = getDeclarationOfAliasSymbol(symbol); - } else { - return type; - } - if (!declaration) { - return type; - } - type = getNarrowableTypeForReference(type, node, checkMode); - const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; - const declarationContainer = getControlFlowContainer(declaration); - let flowContainer = getControlFlowContainer(node); - const isOuterVariable = flowContainer !== declarationContainer; - const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); - const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; - const typeIsAutomatic = type === autoType || type === autoArrayType; - const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; - while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameterOrMutableLocalVariable(localOrExportSymbol) && isPastLastAssignment(localOrExportSymbol, node))) { - flowContainer = getControlFlowContainer(flowContainer); - } - const isNeverInitialized = immediateDeclaration && isVariableDeclaration(immediateDeclaration) && !immediateDeclaration.initializer && !immediateDeclaration.exclamationToken && isMutableLocalVariableDeclaration(immediateDeclaration) && !isSymbolAssignedDefinitely(symbol); - const assumeInitialized = isParameter2 || isAlias || isOuterVariable && !isNeverInitialized || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; - const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); - const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); - if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { - if (flowType === autoType || flowType === autoArrayType) { - if (noImplicitAny) { - error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); - error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); - } - return convertAutoToAny(flowType); - } - } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) { - error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); - return type; - } - return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; - } - function isSameScopedBindingElement(node, declaration) { - if (isBindingElement(declaration)) { - const bindingElement = findAncestor(node, isBindingElement); - return bindingElement && getRootDeclaration(bindingElement) === getRootDeclaration(declaration); - } - } - function shouldMarkIdentifierAliasReferenced(node) { - var _a; - const parent = node.parent; - if (parent) { - if (isPropertyAccessExpression(parent) && parent.expression === node) { - return false; - } - if (isExportSpecifier(parent) && parent.isTypeOnly) { - return false; - } - const greatGrandparent = (_a = parent.parent) == null ? void 0 : _a.parent; - if (greatGrandparent && isExportDeclaration(greatGrandparent) && greatGrandparent.isTypeOnly) { - return false; - } - } - return true; - } - function isInsideFunctionOrInstancePropertyInitializer(node, threshold) { - return !!findAncestor(node, (n) => n === threshold ? "quit" : isFunctionLike(n) || n.parent && isPropertyDeclaration(n.parent) && !hasStaticModifier(n.parent) && n.parent.initializer === n); - } - function getPartOfForStatementContainingNode(node, container) { - return findAncestor(node, (n) => n === container ? "quit" : n === container.initializer || n === container.condition || n === container.incrementor || n === container.statement); - } - function getEnclosingIterationStatement(node) { - return findAncestor(node, (n) => !n || nodeStartsNewLexicalEnvironment(n) ? "quit" : isIterationStatement( - n, - /*lookInLabeledStatements*/ - false - )); - } - function checkNestedBlockScopedBinding(node, symbol) { - if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { - return; - } - const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); - const isCaptured = isInsideFunctionOrInstancePropertyInitializer(node, container); - const enclosingIterationStatement = getEnclosingIterationStatement(container); - if (enclosingIterationStatement) { - if (isCaptured) { - let capturesBlockScopeBindingInLoopBody = true; - if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); - if (varDeclList && varDeclList.parent === container) { - const part = getPartOfForStatementContainingNode(node.parent, container); - if (part) { - const links = getNodeLinks(part); - links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */; - const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []); - pushIfUnique(capturedBindings, symbol); - if (part === container.initializer) { - capturesBlockScopeBindingInLoopBody = false; - } - } - } - } - if (capturesBlockScopeBindingInLoopBody) { - getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; - } - } - if (isForStatement(container)) { - const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); - if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { - getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; - } - } - getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; - } - if (isCaptured) { - getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */; - } - } - function isBindingCapturedByNode(node, decl) { - const links = getNodeLinks(node); - return !!links && contains(links.capturedBlockScopeBindings, getSymbolOfDeclaration(decl)); - } - function isAssignedInBodyOfForStatement(node, container) { - let current = node; - while (current.parent.kind === 217 /* ParenthesizedExpression */) { - current = current.parent; - } - let isAssigned = false; - if (isAssignmentTarget(current)) { - isAssigned = true; - } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { - const expr = current.parent; - isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; - } - if (!isAssigned) { - return false; - } - return !!findAncestor(current, (n) => n === container ? "quit" : n === container.statement); - } - function captureLexicalThis(node, container) { - getNodeLinks(node).flags |= 2 /* LexicalThis */; - if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { - const classNode = container.parent; - getNodeLinks(classNode).flags |= 4 /* CaptureThis */; - } else { - getNodeLinks(container).flags |= 4 /* CaptureThis */; - } - } - function findFirstSuperCall(node) { - return isSuperCall(node) ? node : isFunctionLike(node) ? void 0 : forEachChild(node, findFirstSuperCall); - } - function classDeclarationExtendsNull(classDecl) { - const classSymbol = getSymbolOfDeclaration(classDecl); - const classInstanceType = getDeclaredTypeOfSymbol(classSymbol); - const baseConstructorType = getBaseConstructorTypeOfClass(classInstanceType); - return baseConstructorType === nullWideningType; - } - function checkThisBeforeSuper(node, container, diagnosticMessage) { - const containingClassDecl = container.parent; - const baseTypeNode = getClassExtendsHeritageElement(containingClassDecl); - if (baseTypeNode && !classDeclarationExtendsNull(containingClassDecl)) { - if (canHaveFlowNode(node) && node.flowNode && !isPostSuperFlowNode( - node.flowNode, - /*noCacheCheck*/ - false - )) { - error(node, diagnosticMessage); - } - } - } - function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) { - if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) { - error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); - } - } - function checkThisExpression(node) { - const isNodeInTypeQuery = isInTypeQuery(node); - let container = getThisContainer( - node, - /*includeArrowFunctions*/ - true, - /*includeClassComputedPropertyName*/ - true - ); - let capturedByArrowFunction = false; - let thisInComputedPropertyName = false; - if (container.kind === 176 /* Constructor */) { - checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); - } - while (true) { - if (container.kind === 219 /* ArrowFunction */) { - container = getThisContainer( - container, - /*includeArrowFunctions*/ - false, - !thisInComputedPropertyName - ); - capturedByArrowFunction = true; - } - if (container.kind === 167 /* ComputedPropertyName */) { - container = getThisContainer( - container, - !capturedByArrowFunction, - /*includeClassComputedPropertyName*/ - false - ); - thisInComputedPropertyName = true; - continue; - } - break; - } - checkThisInStaticClassFieldInitializerInDecoratedClass(node, container); - if (thisInComputedPropertyName) { - error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); - } else { - switch (container.kind) { - case 267 /* ModuleDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); - break; - case 266 /* EnumDeclaration */: - error(node, Diagnostics.this_cannot_be_referenced_in_current_location); - break; - } - } - if (!isNodeInTypeQuery && capturedByArrowFunction && languageVersion < 2 /* ES2015 */) { - captureLexicalThis(node, container); - } - const type = tryGetThisTypeAt( - node, - /*includeGlobalThis*/ - true, - container - ); - if (noImplicitThis) { - const globalThisType2 = getTypeOfSymbol(globalThisSymbol); - if (type === globalThisType2 && capturedByArrowFunction) { - error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); - } else if (!type) { - const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); - if (!isSourceFile(container)) { - const outsideThis = tryGetThisTypeAt(container); - if (outsideThis && outsideThis !== globalThisType2) { - addRelatedInfo(diag2, createDiagnosticForNode(container, Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)); - } - } - } - } - return type || anyType; - } - function tryGetThisTypeAt(node, includeGlobalThis = true, container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - )) { - const isInJS = isInJSFile(node); - if (isFunctionLike(container) && (!isInParameterInitializerBeforeContainingFunction(node) || getThisParameter(container))) { - let thisType = getThisTypeOfDeclaration(container) || isInJS && getTypeForThisExpressionFromJSDoc(container); - if (!thisType) { - const className = getClassNameFromPrototypeMethod(container); - if (isInJS && className) { - const classSymbol = checkExpression(className).symbol; - if (classSymbol && classSymbol.members && classSymbol.flags & 16 /* Function */) { - thisType = getDeclaredTypeOfSymbol(classSymbol).thisType; - } - } else if (isJSConstructor(container)) { - thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType; - } - thisType || (thisType = getContextualThisParameterType(container)); - } - if (thisType) { - return getFlowTypeOfReference(node, thisType); - } - } - if (isClassLike(container.parent)) { - const symbol = getSymbolOfDeclaration(container.parent); - const type = isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType; - return getFlowTypeOfReference(node, type); - } - if (isSourceFile(container)) { - if (container.commonJsModuleIndicator) { - const fileSymbol = getSymbolOfDeclaration(container); - return fileSymbol && getTypeOfSymbol(fileSymbol); - } else if (container.externalModuleIndicator) { - return undefinedType; - } else if (includeGlobalThis) { - return getTypeOfSymbol(globalThisSymbol); - } - } - } - function getExplicitThisType(node) { - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (isFunctionLike(container)) { - const signature = getSignatureFromDeclaration(container); - if (signature.thisParameter) { - return getExplicitTypeOfSymbol(signature.thisParameter); - } - } - if (isClassLike(container.parent)) { - const symbol = getSymbolOfDeclaration(container.parent); - return isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType; - } - } - function getClassNameFromPrototypeMethod(container) { - if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { - return container.parent.left.expression.expression; - } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { - return container.parent.parent.left.expression; - } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { - return container.parent.parent.parent.left.expression; - } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { - return container.parent.parent.parent.arguments[0].expression; - } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { - return container.parent.parent.arguments[0].expression; - } - } - function getTypeForThisExpressionFromJSDoc(node) { - const thisTag = getJSDocThisTag(node); - if (thisTag && thisTag.typeExpression) { - return getTypeFromTypeNode(thisTag.typeExpression); - } - const signature = getSignatureOfTypeTag(node); - if (signature) { - return getThisTypeOfSignature(signature); - } - } - function isInConstructorArgumentInitializer(node, constructorDecl) { - return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); - } - function checkSuperExpression(node) { - const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; - const immediateContainer = getSuperContainer( - node, - /*stopOnFunctions*/ - true - ); - let container = immediateContainer; - let needToCaptureLexicalThis = false; - let inAsyncFunction = false; - if (!isCallExpression2) { - while (container && container.kind === 219 /* ArrowFunction */) { - if (hasSyntacticModifier(container, 1024 /* Async */)) inAsyncFunction = true; - container = getSuperContainer( - container, - /*stopOnFunctions*/ - true - ); - needToCaptureLexicalThis = languageVersion < 2 /* ES2015 */; - } - if (container && hasSyntacticModifier(container, 1024 /* Async */)) inAsyncFunction = true; - } - let nodeCheckFlag = 0; - if (!container || !isLegalUsageOfSuperExpression(container)) { - const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); - if (current && current.kind === 167 /* ComputedPropertyName */) { - error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); - } else if (isCallExpression2) { - error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); - } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { - error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); - } else { - error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); - } - return errorType; - } - if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { - checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); - } - if (isStatic(container) || isCallExpression2) { - nodeCheckFlag = 32 /* SuperStatic */; - if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { - forEachEnclosingBlockScopeContainer(node.parent, (current) => { - if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { - getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; - } - }); - } - } else { - nodeCheckFlag = 16 /* SuperInstance */; - } - getNodeLinks(node).flags |= nodeCheckFlag; - if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { - if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { - getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; - } else { - getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */; - } - } - if (needToCaptureLexicalThis) { - captureLexicalThis(node.parent, container); - } - if (container.parent.kind === 210 /* ObjectLiteralExpression */) { - if (languageVersion < 2 /* ES2015 */) { - error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); - return errorType; - } else { - return anyType; - } - } - const classLikeDeclaration = container.parent; - if (!getClassExtendsHeritageElement(classLikeDeclaration)) { - error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); - return errorType; - } - if (classDeclarationExtendsNull(classLikeDeclaration)) { - return isCallExpression2 ? errorType : nullWideningType; - } - const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration)); - const baseClassType = classType && getBaseTypes(classType)[0]; - if (!baseClassType) { - return errorType; - } - if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { - error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); - return errorType; - } - return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); - function isLegalUsageOfSuperExpression(container2) { - if (isCallExpression2) { - return container2.kind === 176 /* Constructor */; - } else { - if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { - if (isStatic(container2)) { - return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; - } else { - return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; - } - } - } - return false; - } - } - function getContainingObjectLiteral(func) { - return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; - } - function getThisTypeArgument(type) { - return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; - } - function getThisTypeFromContextualType(type) { - return mapType(type, (t) => { - return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); - }); - } - function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { - let literal = containingLiteral; - let type = contextualType; - while (type) { - const thisType = getThisTypeFromContextualType(type); - if (thisType) { - return thisType; - } - if (literal.parent.kind !== 303 /* PropertyAssignment */) { - break; - } - literal = literal.parent.parent; - type = getApparentTypeOfContextualType( - literal, - /*contextFlags*/ - void 0 - ); - } - } - function getContextualThisParameterType(func) { - if (func.kind === 219 /* ArrowFunction */) { - return void 0; - } - if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { - const contextualSignature = getContextualSignature(func); - if (contextualSignature) { - const thisParameter = contextualSignature.thisParameter; - if (thisParameter) { - return getTypeOfSymbol(thisParameter); - } - } - } - const inJs = isInJSFile(func); - if (noImplicitThis || inJs) { - const containingLiteral = getContainingObjectLiteral(func); - if (containingLiteral) { - const contextualType = getApparentTypeOfContextualType( - containingLiteral, - /*contextFlags*/ - void 0 - ); - const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); - if (thisType) { - return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); - } - return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); - } - const parent = walkUpParenthesizedExpressions(func.parent); - if (isAssignmentExpression(parent)) { - const target = parent.left; - if (isAccessExpression(target)) { - const { expression } = target; - if (inJs && isIdentifier(expression)) { - const sourceFile = getSourceFileOfNode(parent); - if (sourceFile.commonJsModuleIndicator && getResolvedSymbol(expression) === sourceFile.symbol) { - return void 0; - } - } - return getWidenedType(checkExpressionCached(expression)); - } - } - } - return void 0; - } - function getContextuallyTypedParameterType(parameter) { - const func = parameter.parent; - if (!isContextSensitiveFunctionOrObjectLiteralMethod(func)) { - return void 0; - } - const iife = getImmediatelyInvokedFunctionExpression(func); - if (iife && iife.arguments) { - const args = getEffectiveCallArguments(iife); - const indexOfParameter = func.parameters.indexOf(parameter); - if (parameter.dotDotDotToken) { - return getSpreadArgumentType( - args, - indexOfParameter, - args.length, - anyType, - /*context*/ - void 0, - 0 /* Normal */ - ); - } - const links = getNodeLinks(iife); - const cached = links.resolvedSignature; - links.resolvedSignature = anySignature; - const type = indexOfParameter < args.length ? getWidenedLiteralType(checkExpression(args[indexOfParameter])) : parameter.initializer ? void 0 : undefinedWideningType; - links.resolvedSignature = cached; - return type; - } - const contextualSignature = getContextualSignature(func); - if (contextualSignature) { - const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0); - return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ? getRestTypeAtPosition(contextualSignature, index) : tryGetTypeAtPosition(contextualSignature, index); - } - } - function getContextualTypeForVariableLikeDeclaration(declaration, contextFlags) { - const typeNode = getEffectiveTypeAnnotationNode(declaration) || (isInJSFile(declaration) ? tryGetJSDocSatisfiesTypeNode(declaration) : void 0); - if (typeNode) { - return getTypeFromTypeNode(typeNode); - } - switch (declaration.kind) { - case 169 /* Parameter */: - return getContextuallyTypedParameterType(declaration); - case 208 /* BindingElement */: - return getContextualTypeForBindingElement(declaration, contextFlags); - case 172 /* PropertyDeclaration */: - if (isStatic(declaration)) { - return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); - } - } - } - function getContextualTypeForBindingElement(declaration, contextFlags) { - const parent = declaration.parent.parent; - const name = declaration.propertyName || declaration.name; - const parentType = getContextualTypeForVariableLikeDeclaration(parent, contextFlags) || parent.kind !== 208 /* BindingElement */ && parent.initializer && checkDeclarationInitializer(parent, declaration.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */); - if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; - if (parent.name.kind === 207 /* ArrayBindingPattern */) { - const index = indexOfNode(declaration.parent.elements, declaration); - if (index < 0) return void 0; - return getContextualTypeForElementExpression(parentType, index); - } - const nameType = getLiteralTypeFromPropertyName(name); - if (isTypeUsableAsPropertyName(nameType)) { - const text = getPropertyNameFromType(nameType); - return getTypeOfPropertyOfType(parentType, text); - } - } - function getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags) { - const parentType = isExpression(declaration.parent) && getContextualType(declaration.parent, contextFlags); - if (!parentType) return void 0; - return getTypeOfPropertyOfContextualType(parentType, getSymbolOfDeclaration(declaration).escapedName); - } - function getContextualTypeForInitializerExpression(node, contextFlags) { - const declaration = node.parent; - if (hasInitializer(declaration) && node === declaration.initializer) { - const result = getContextualTypeForVariableLikeDeclaration(declaration, contextFlags); - if (result) { - return result; - } - if (!(contextFlags & 8 /* SkipBindingPatterns */) && isBindingPattern(declaration.name) && declaration.name.elements.length > 0) { - return getTypeFromBindingPattern( - declaration.name, - /*includePatternInType*/ - true, - /*reportErrors*/ - false - ); - } - } - return void 0; - } - function getContextualTypeForReturnExpression(node, contextFlags) { - const func = getContainingFunction(node); - if (func) { - let contextualReturnType = getContextualReturnType(func, contextFlags); - if (contextualReturnType) { - const functionFlags = getFunctionFlags(func); - if (functionFlags & 1 /* Generator */) { - const isAsyncGenerator = (functionFlags & 2 /* Async */) !== 0; - if (contextualReturnType.flags & 1048576 /* Union */) { - contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, type, isAsyncGenerator)); - } - const iterationReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, contextualReturnType, (functionFlags & 2 /* Async */) !== 0); - if (!iterationReturnType) { - return void 0; - } - contextualReturnType = iterationReturnType; - } - if (functionFlags & 2 /* Async */) { - const contextualAwaitedType = mapType(contextualReturnType, getAwaitedTypeNoAlias); - return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]); - } - return contextualReturnType; - } - } - return void 0; - } - function getContextualTypeForAwaitOperand(node, contextFlags) { - const contextualType = getContextualType(node, contextFlags); - if (contextualType) { - const contextualAwaitedType = getAwaitedTypeNoAlias(contextualType); - return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]); - } - return void 0; - } - function getContextualTypeForYieldOperand(node, contextFlags) { - const func = getContainingFunction(node); - if (func) { - const functionFlags = getFunctionFlags(func); - let contextualReturnType = getContextualReturnType(func, contextFlags); - if (contextualReturnType) { - const isAsyncGenerator = (functionFlags & 2 /* Async */) !== 0; - if (!node.asteriskToken && contextualReturnType.flags & 1048576 /* Union */) { - contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, type, isAsyncGenerator)); - } - if (node.asteriskToken) { - const iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(contextualReturnType, isAsyncGenerator); - const yieldType = (iterationTypes == null ? void 0 : iterationTypes.yieldType) ?? silentNeverType; - const returnType = getContextualType(node, contextFlags) ?? silentNeverType; - const nextType = (iterationTypes == null ? void 0 : iterationTypes.nextType) ?? unknownType; - const generatorType = createGeneratorType( - yieldType, - returnType, - nextType, - /*isAsyncGenerator*/ - false - ); - if (isAsyncGenerator) { - const asyncGeneratorType = createGeneratorType( - yieldType, - returnType, - nextType, - /*isAsyncGenerator*/ - true - ); - return getUnionType([generatorType, asyncGeneratorType]); - } - return generatorType; - } - return getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, contextualReturnType, isAsyncGenerator); - } - } - return void 0; - } - function isInParameterInitializerBeforeContainingFunction(node) { - let inBindingInitializer = false; - while (node.parent && !isFunctionLike(node.parent)) { - if (isParameter(node.parent) && (inBindingInitializer || node.parent.initializer === node)) { - return true; - } - if (isBindingElement(node.parent) && node.parent.initializer === node) { - inBindingInitializer = true; - } - node = node.parent; - } - return false; - } - function getContextualIterationType(kind, functionDecl) { - const isAsync = !!(getFunctionFlags(functionDecl) & 2 /* Async */); - const contextualReturnType = getContextualReturnType( - functionDecl, - /*contextFlags*/ - void 0 - ); - if (contextualReturnType) { - return getIterationTypeOfGeneratorFunctionReturnType(kind, contextualReturnType, isAsync) || void 0; - } - return void 0; - } - function getContextualReturnType(functionDecl, contextFlags) { - const returnType = getReturnTypeFromAnnotation(functionDecl); - if (returnType) { - return returnType; - } - const signature = getContextualSignatureForFunctionLikeDeclaration(functionDecl); - if (signature && !isResolvingReturnTypeOfSignature(signature)) { - const returnType2 = getReturnTypeOfSignature(signature); - const functionFlags = getFunctionFlags(functionDecl); - if (functionFlags & 1 /* Generator */) { - return filterType(returnType2, (t) => { - return !!(t.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 58982400 /* InstantiableNonPrimitive */)) || checkGeneratorInstantiationAssignabilityToReturnType( - t, - functionFlags, - /*errorNode*/ - void 0 - ); - }); - } - if (functionFlags & 2 /* Async */) { - return filterType(returnType2, (t) => { - return !!(t.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 58982400 /* InstantiableNonPrimitive */)) || !!getAwaitedTypeOfPromise(t); - }); - } - return returnType2; - } - const iife = getImmediatelyInvokedFunctionExpression(functionDecl); - if (iife) { - return getContextualType(iife, contextFlags); - } - return void 0; - } - function getContextualTypeForArgument(callTarget, arg) { - const args = getEffectiveCallArguments(callTarget); - const argIndex = args.indexOf(arg); - return argIndex === -1 ? void 0 : getContextualTypeForArgumentAtIndex(callTarget, argIndex); - } - function getContextualTypeForArgumentAtIndex(callTarget, argIndex) { - if (isImportCall(callTarget)) { - return argIndex === 0 ? stringType : argIndex === 1 ? getGlobalImportCallOptionsType( - /*reportErrors*/ - false - ) : anyType; - } - const signature = getNodeLinks(callTarget).resolvedSignature === resolvingSignature ? resolvingSignature : getResolvedSignature(callTarget); - if (isJsxOpeningLikeElement(callTarget) && argIndex === 0) { - return getEffectiveFirstArgumentForJsxSignature(signature, callTarget); - } - const restIndex = signature.parameters.length - 1; - return signatureHasRestParameter(signature) && argIndex >= restIndex ? getIndexedAccessType(getTypeOfSymbol(signature.parameters[restIndex]), getNumberLiteralType(argIndex - restIndex), 256 /* Contextual */) : getTypeAtPosition(signature, argIndex); - } - function getContextualTypeForDecorator(decorator) { - const signature = getDecoratorCallSignature(decorator); - return signature ? getOrCreateTypeFromSignature(signature) : void 0; - } - function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { - if (template.parent.kind === 215 /* TaggedTemplateExpression */) { - return getContextualTypeForArgument(template.parent, substitutionExpression); - } - return void 0; - } - function getContextualTypeForBinaryOperand(node, contextFlags) { - const binaryExpression = node.parent; - const { left, operatorToken, right } = binaryExpression; - switch (operatorToken.kind) { - case 64 /* EqualsToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - case 76 /* BarBarEqualsToken */: - case 78 /* QuestionQuestionEqualsToken */: - return node === right ? getContextualTypeForAssignmentDeclaration(binaryExpression) : void 0; - case 57 /* BarBarToken */: - case 61 /* QuestionQuestionToken */: - const type = getContextualType(binaryExpression, contextFlags); - return node === right && (type && type.pattern || !type && !isDefaultedExpandoInitializer(binaryExpression)) ? getTypeOfExpression(left) : type; - case 56 /* AmpersandAmpersandToken */: - case 28 /* CommaToken */: - return node === right ? getContextualType(binaryExpression, contextFlags) : void 0; - default: - return void 0; - } - } - function getSymbolForExpression(e) { - if (canHaveSymbol(e) && e.symbol) { - return e.symbol; - } - if (isIdentifier(e)) { - return getResolvedSymbol(e); - } - if (isPropertyAccessExpression(e)) { - const lhsType = getTypeOfExpression(e.expression); - return isPrivateIdentifier(e.name) ? tryGetPrivateIdentifierPropertyOfType(lhsType, e.name) : getPropertyOfType(lhsType, e.name.escapedText); - } - if (isElementAccessExpression(e)) { - const propType = checkExpressionCached(e.argumentExpression); - if (!isTypeUsableAsPropertyName(propType)) { - return void 0; - } - const lhsType = getTypeOfExpression(e.expression); - return getPropertyOfType(lhsType, getPropertyNameFromType(propType)); - } - return void 0; - function tryGetPrivateIdentifierPropertyOfType(type, id) { - const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(id.escapedText, id); - return lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(type, lexicallyScopedSymbol); - } - } - function getContextualTypeForAssignmentDeclaration(binaryExpression) { - var _a, _b; - const kind = getAssignmentDeclarationKind(binaryExpression); - switch (kind) { - case 0 /* None */: - case 4 /* ThisProperty */: - const lhsSymbol = getSymbolForExpression(binaryExpression.left); - const decl = lhsSymbol && lhsSymbol.valueDeclaration; - if (decl && (isPropertyDeclaration(decl) || isPropertySignature(decl))) { - const overallAnnotation = getEffectiveTypeAnnotationNode(decl); - return overallAnnotation && instantiateType(getTypeFromTypeNode(overallAnnotation), getSymbolLinks(lhsSymbol).mapper) || (isPropertyDeclaration(decl) ? decl.initializer && getTypeOfExpression(binaryExpression.left) : void 0); - } - if (kind === 0 /* None */) { - return getTypeOfExpression(binaryExpression.left); - } - return getContextualTypeForThisPropertyAssignment(binaryExpression); - case 5 /* Property */: - if (isPossiblyAliasedThisProperty(binaryExpression, kind)) { - return getContextualTypeForThisPropertyAssignment(binaryExpression); - } else if (!canHaveSymbol(binaryExpression.left) || !binaryExpression.left.symbol) { - return getTypeOfExpression(binaryExpression.left); - } else { - const decl2 = binaryExpression.left.symbol.valueDeclaration; - if (!decl2) { - return void 0; - } - const lhs = cast(binaryExpression.left, isAccessExpression); - const overallAnnotation = getEffectiveTypeAnnotationNode(decl2); - if (overallAnnotation) { - return getTypeFromTypeNode(overallAnnotation); - } else if (isIdentifier(lhs.expression)) { - const id = lhs.expression; - const parentSymbol = resolveName( - id, - id.escapedText, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (parentSymbol) { - const annotated2 = parentSymbol.valueDeclaration && getEffectiveTypeAnnotationNode(parentSymbol.valueDeclaration); - if (annotated2) { - const nameStr = getElementOrPropertyAccessName(lhs); - if (nameStr !== void 0) { - return getTypeOfPropertyOfContextualType(getTypeFromTypeNode(annotated2), nameStr); - } - } - return void 0; - } - } - return isInJSFile(decl2) || decl2 === binaryExpression.left ? void 0 : getTypeOfExpression(binaryExpression.left); - } - case 1 /* ExportsProperty */: - case 6 /* Prototype */: - case 3 /* PrototypeProperty */: - case 2 /* ModuleExports */: - let valueDeclaration; - if (kind !== 2 /* ModuleExports */) { - valueDeclaration = canHaveSymbol(binaryExpression.left) ? (_a = binaryExpression.left.symbol) == null ? void 0 : _a.valueDeclaration : void 0; - } - valueDeclaration || (valueDeclaration = (_b = binaryExpression.symbol) == null ? void 0 : _b.valueDeclaration); - const annotated = valueDeclaration && getEffectiveTypeAnnotationNode(valueDeclaration); - return annotated ? getTypeFromTypeNode(annotated) : void 0; - case 7 /* ObjectDefinePropertyValue */: - case 8 /* ObjectDefinePropertyExports */: - case 9 /* ObjectDefinePrototypeProperty */: - return Debug.fail("Does not apply"); - default: - return Debug.assertNever(kind); - } - } - function isPossiblyAliasedThisProperty(declaration, kind = getAssignmentDeclarationKind(declaration)) { - if (kind === 4 /* ThisProperty */) { - return true; - } - if (!isInJSFile(declaration) || kind !== 5 /* Property */ || !isIdentifier(declaration.left.expression)) { - return false; - } - const name = declaration.left.expression.escapedText; - const symbol = resolveName( - declaration.left, - name, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true, - /*excludeGlobals*/ - true - ); - return isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration); - } - function getContextualTypeForThisPropertyAssignment(binaryExpression) { - if (!binaryExpression.symbol) return getTypeOfExpression(binaryExpression.left); - if (binaryExpression.symbol.valueDeclaration) { - const annotated = getEffectiveTypeAnnotationNode(binaryExpression.symbol.valueDeclaration); - if (annotated) { - const type = getTypeFromTypeNode(annotated); - if (type) { - return type; - } - } - } - const thisAccess = cast(binaryExpression.left, isAccessExpression); - if (!isObjectLiteralMethod(getThisContainer( - thisAccess.expression, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ))) { - return void 0; - } - const thisType = checkThisExpression(thisAccess.expression); - const nameStr = getElementOrPropertyAccessName(thisAccess); - return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0; - } - function isCircularMappedProperty(symbol) { - return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0); - } - function isExcludedMappedPropertyName(constraint, propertyNameType) { - if (constraint.flags & 16777216 /* Conditional */) { - const type = constraint; - return !!(getReducedType(getTrueTypeFromConditionalType(type)).flags & 131072 /* Never */) && getActualTypeVariable(getFalseTypeFromConditionalType(type)) === getActualTypeVariable(type.checkType) && isTypeAssignableTo(propertyNameType, type.extendsType); - } - if (constraint.flags & 2097152 /* Intersection */) { - return some(constraint.types, (t) => isExcludedMappedPropertyName(t, propertyNameType)); - } - return false; - } - function getTypeOfPropertyOfContextualType(type, name, nameType) { - return mapType( - type, - (t) => { - if (t.flags & 2097152 /* Intersection */) { - let types; - let indexInfoCandidates; - let ignoreIndexInfos = false; - for (const constituentType of t.types) { - if (!(constituentType.flags & 524288 /* Object */)) { - continue; - } - if (isGenericMappedType(constituentType) && getMappedTypeNameTypeKind(constituentType) !== 2 /* Remapping */) { - const substitutedType = getIndexedMappedTypeSubstitutedTypeOfContextualType(constituentType, name, nameType); - types = appendContextualPropertyTypeConstituent(types, substitutedType); - continue; - } - const propertyType = getTypeOfConcretePropertyOfContextualType(constituentType, name); - if (!propertyType) { - if (!ignoreIndexInfos) { - indexInfoCandidates = append(indexInfoCandidates, constituentType); - } - continue; - } - ignoreIndexInfos = true; - indexInfoCandidates = void 0; - types = appendContextualPropertyTypeConstituent(types, propertyType); - } - if (indexInfoCandidates) { - for (const candidate of indexInfoCandidates) { - const indexInfoType = getTypeFromIndexInfosOfContextualType(candidate, name, nameType); - types = appendContextualPropertyTypeConstituent(types, indexInfoType); - } - } - if (!types) { - return; - } - if (types.length === 1) { - return types[0]; - } - return getIntersectionType(types); - } - if (!(t.flags & 524288 /* Object */)) { - return; - } - return isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */ ? getIndexedMappedTypeSubstitutedTypeOfContextualType(t, name, nameType) : getTypeOfConcretePropertyOfContextualType(t, name) ?? getTypeFromIndexInfosOfContextualType(t, name, nameType); - }, - /*noReductions*/ - true - ); - } - function appendContextualPropertyTypeConstituent(types, type) { - return type ? append(types, type.flags & 1 /* Any */ ? unknownType : type) : types; - } - function getIndexedMappedTypeSubstitutedTypeOfContextualType(type, name, nameType) { - const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name)); - const constraint = getConstraintTypeFromMappedType(type); - if (type.nameType && isExcludedMappedPropertyName(type.nameType, propertyNameType) || isExcludedMappedPropertyName(constraint, propertyNameType)) { - return; - } - const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint; - if (!isTypeAssignableTo(propertyNameType, constraintOfConstraint)) { - return; - } - return substituteIndexedMappedType(type, propertyNameType); - } - function getTypeOfConcretePropertyOfContextualType(type, name) { - const prop = getPropertyOfType(type, name); - if (!prop || isCircularMappedProperty(prop)) { - return; - } - return removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */)); - } - function getTypeFromIndexInfosOfContextualType(type, name, nameType) { - var _a; - if (isTupleType(type) && isNumericLiteralName(name) && +name >= 0) { - const restType = getElementTypeOfSliceOfTupleType( - type, - type.target.fixedLength, - /*endSkipCount*/ - 0, - /*writing*/ - false, - /*noReductions*/ - true - ); - if (restType) { - return restType; - } - } - return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(type), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type; - } - function getContextualTypeForObjectLiteralMethod(node, contextFlags) { - Debug.assert(isObjectLiteralMethod(node)); - if (node.flags & 67108864 /* InWithStatement */) { - return void 0; - } - return getContextualTypeForObjectLiteralElement(node, contextFlags); - } - function getContextualTypeForObjectLiteralElement(element, contextFlags) { - const objectLiteral = element.parent; - const propertyAssignmentType = isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element, contextFlags); - if (propertyAssignmentType) { - return propertyAssignmentType; - } - const type = getApparentTypeOfContextualType(objectLiteral, contextFlags); - if (type) { - if (hasBindableName(element)) { - const symbol = getSymbolOfDeclaration(element); - return getTypeOfPropertyOfContextualType(type, symbol.escapedName, getSymbolLinks(symbol).nameType); - } - if (hasDynamicName(element)) { - const name = getNameOfDeclaration(element); - if (name && isComputedPropertyName(name)) { - const exprType = checkExpression(name.expression); - const propType = isTypeUsableAsPropertyName(exprType) && getTypeOfPropertyOfContextualType(type, getPropertyNameFromType(exprType)); - if (propType) { - return propType; - } - } - } - if (element.name) { - const nameType = getLiteralTypeFromPropertyName(element.name); - return mapType( - type, - (t) => { - var _a; - return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType)) == null ? void 0 : _a.type; - }, - /*noReductions*/ - true - ); - } - } - return void 0; - } - function getSpreadIndices(elements) { - let first2, last2; - for (let i = 0; i < elements.length; i++) { - if (isSpreadElement(elements[i])) { - first2 ?? (first2 = i); - last2 = i; - } - } - return { first: first2, last: last2 }; - } - function getContextualTypeForElementExpression(type, index, length2, firstSpreadIndex, lastSpreadIndex) { - return type && mapType( - type, - (t) => { - if (isTupleType(t)) { - if ((firstSpreadIndex === void 0 || index < firstSpreadIndex) && index < t.target.fixedLength) { - return removeMissingType(getTypeArguments(t)[index], !!(t.target.elementFlags[index] && 2 /* Optional */)); - } - const offset = length2 !== void 0 && (lastSpreadIndex === void 0 || index > lastSpreadIndex) ? length2 - index : 0; - const fixedEndLength = offset > 0 && t.target.combinedFlags & 12 /* Variable */ ? getEndElementCount(t.target, 3 /* Fixed */) : 0; - if (offset > 0 && offset <= fixedEndLength) { - return getTypeArguments(t)[getTypeReferenceArity(t) - offset]; - } - return getElementTypeOfSliceOfTupleType( - t, - firstSpreadIndex === void 0 ? t.target.fixedLength : Math.min(t.target.fixedLength, firstSpreadIndex), - length2 === void 0 || lastSpreadIndex === void 0 ? fixedEndLength : Math.min(fixedEndLength, length2 - lastSpreadIndex), - /*writing*/ - false, - /*noReductions*/ - true - ); - } - return (!firstSpreadIndex || index < firstSpreadIndex) && getTypeOfPropertyOfContextualType(t, "" + index) || getIteratedTypeOrElementType( - 1 /* Element */, - t, - undefinedType, - /*errorNode*/ - void 0, - /*checkAssignability*/ - false - ); - }, - /*noReductions*/ - true - ); - } - function getContextualTypeForConditionalOperand(node, contextFlags) { - const conditional = node.parent; - return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional, contextFlags) : void 0; - } - function getContextualTypeForChildJsxExpression(node, child, contextFlags) { - const attributesType = getApparentTypeOfContextualType(node.openingElement.attributes, contextFlags); - const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); - if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== "")) { - return void 0; - } - const realChildren = getSemanticJsxChildren(node.children); - const childIndex = realChildren.indexOf(child); - const childFieldType = getTypeOfPropertyOfContextualType(attributesType, jsxChildrenPropertyName); - return childFieldType && (realChildren.length === 1 ? childFieldType : mapType( - childFieldType, - (t) => { - if (isArrayLikeType(t)) { - return getIndexedAccessType(t, getNumberLiteralType(childIndex)); - } else { - return t; - } - }, - /*noReductions*/ - true - )); - } - function getContextualTypeForJsxExpression(node, contextFlags) { - const exprParent = node.parent; - return isJsxAttributeLike(exprParent) ? getContextualType(node, contextFlags) : isJsxElement(exprParent) ? getContextualTypeForChildJsxExpression(exprParent, node, contextFlags) : void 0; - } - function getContextualTypeForJsxAttribute(attribute, contextFlags) { - if (isJsxAttribute(attribute)) { - const attributesType = getApparentTypeOfContextualType(attribute.parent, contextFlags); - if (!attributesType || isTypeAny(attributesType)) { - return void 0; - } - return getTypeOfPropertyOfContextualType(attributesType, getEscapedTextOfJsxAttributeName(attribute.name)); - } else { - return getContextualType(attribute.parent, contextFlags); - } - } - function isPossiblyDiscriminantValue(node) { - switch (node.kind) { - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 228 /* TemplateExpression */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 106 /* NullKeyword */: - case 80 /* Identifier */: - case 157 /* UndefinedKeyword */: - return true; - case 211 /* PropertyAccessExpression */: - case 217 /* ParenthesizedExpression */: - return isPossiblyDiscriminantValue(node.expression); - case 294 /* JsxExpression */: - return !node.expression || isPossiblyDiscriminantValue(node.expression); - } - return false; - } - function discriminateContextualTypeByObjectMembers(node, contextualType) { - const key = `D${getNodeId(node)},${getTypeId(contextualType)}`; - return getCachedType(key) ?? setCachedType( - key, - getMatchingUnionConstituentForObjectLiteral(contextualType, node) ?? discriminateTypeByDiscriminableItems( - contextualType, - concatenate( - map( - filter(node.properties, (p) => { - if (!p.symbol) { - return false; - } - if (p.kind === 303 /* PropertyAssignment */) { - return isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); - } - if (p.kind === 304 /* ShorthandPropertyAssignment */) { - return isDiscriminantProperty(contextualType, p.symbol.escapedName); - } - return false; - }), - (prop) => [() => getContextFreeTypeOfExpression(prop.kind === 303 /* PropertyAssignment */ ? prop.initializer : prop.name), prop.symbol.escapedName] - ), - map( - filter(getPropertiesOfType(contextualType), (s) => { - var _a; - return !!(s.flags & 16777216 /* Optional */) && !!((_a = node == null ? void 0 : node.symbol) == null ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); - }), - (s) => [() => undefinedType, s.escapedName] - ) - ), - isTypeAssignableTo - ) - ); - } - function discriminateContextualTypeByJSXAttributes(node, contextualType) { - const key = `D${getNodeId(node)},${getTypeId(contextualType)}`; - const cached = getCachedType(key); - if (cached) return cached; - const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); - return setCachedType( - key, - discriminateTypeByDiscriminableItems( - contextualType, - concatenate( - map( - filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), - (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] - ), - map( - filter(getPropertiesOfType(contextualType), (s) => { - var _a; - if (!(s.flags & 16777216 /* Optional */) || !((_a = node == null ? void 0 : node.symbol) == null ? void 0 : _a.members)) { - return false; - } - const element = node.parent.parent; - if (s.escapedName === jsxChildrenPropertyName && isJsxElement(element) && getSemanticJsxChildren(element.children).length) { - return false; - } - return !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); - }), - (s) => [() => undefinedType, s.escapedName] - ) - ), - isTypeAssignableTo - ) - ); - } - function getApparentTypeOfContextualType(node, contextFlags) { - const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType(node, contextFlags); - const instantiatedType = instantiateContextualType(contextualType, node, contextFlags); - if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) { - const apparentType = mapType( - instantiatedType, - // When obtaining apparent type of *contextual* type we don't want to get apparent type of mapped types. - // That would evaluate mapped types with array or tuple type constraints too eagerly - // and thus it would prevent `getTypeOfPropertyOfContextualType` from obtaining per-position contextual type for elements of array literal expressions. - // Apparent type of other mapped types is already the mapped type itself so we can just avoid calling `getApparentType` here for all mapped types. - (t) => getObjectFlags(t) & 32 /* Mapped */ ? t : getApparentType(t), - /*noReductions*/ - true - ); - return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType; - } - } - function instantiateContextualType(contextualType, node, contextFlags) { - if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) { - const inferenceContext = getInferenceContext(node); - if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) { - return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper); - } - if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) { - const type = instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper); - return type.flags & 1048576 /* Union */ && containsType(type.types, regularFalseType) && containsType(type.types, regularTrueType) ? filterType(type, (t) => t !== regularFalseType && t !== regularTrueType) : type; - } - } - return contextualType; - } - function instantiateInstantiableTypes(type, mapper) { - if (type.flags & 465829888 /* Instantiable */) { - return instantiateType(type, mapper); - } - if (type.flags & 1048576 /* Union */) { - return getUnionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper)), 0 /* None */); - } - if (type.flags & 2097152 /* Intersection */) { - return getIntersectionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper))); - } - return type; - } - function getContextualType(node, contextFlags) { - var _a; - if (node.flags & 67108864 /* InWithStatement */) { - return void 0; - } - const index = findContextualNode( - node, - /*includeCaches*/ - !contextFlags - ); - if (index >= 0) { - return contextualTypes[index]; - } - const { parent } = node; - switch (parent.kind) { - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 208 /* BindingElement */: - return getContextualTypeForInitializerExpression(node, contextFlags); - case 219 /* ArrowFunction */: - case 253 /* ReturnStatement */: - return getContextualTypeForReturnExpression(node, contextFlags); - case 229 /* YieldExpression */: - return getContextualTypeForYieldOperand(parent, contextFlags); - case 223 /* AwaitExpression */: - return getContextualTypeForAwaitOperand(parent, contextFlags); - case 213 /* CallExpression */: - case 214 /* NewExpression */: - return getContextualTypeForArgument(parent, node); - case 170 /* Decorator */: - return getContextualTypeForDecorator(parent); - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - return isConstTypeReference(parent.type) ? getContextualType(parent, contextFlags) : getTypeFromTypeNode(parent.type); - case 226 /* BinaryExpression */: - return getContextualTypeForBinaryOperand(node, contextFlags); - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - return getContextualTypeForObjectLiteralElement(parent, contextFlags); - case 305 /* SpreadAssignment */: - return getContextualType(parent.parent, contextFlags); - case 209 /* ArrayLiteralExpression */: { - const arrayLiteral = parent; - const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); - const elementIndex = indexOfNode(arrayLiteral.elements, node); - const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); - return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); - } - case 227 /* ConditionalExpression */: - return getContextualTypeForConditionalOperand(node, contextFlags); - case 239 /* TemplateSpan */: - Debug.assert(parent.parent.kind === 228 /* TemplateExpression */); - return getContextualTypeForSubstitutionExpression(parent.parent, node); - case 217 /* ParenthesizedExpression */: { - if (isInJSFile(parent)) { - if (isJSDocSatisfiesExpression(parent)) { - return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent)); - } - const typeTag = getJSDocTypeTag(parent); - if (typeTag && !isConstTypeReference(typeTag.typeExpression.type)) { - return getTypeFromTypeNode(typeTag.typeExpression.type); - } - } - return getContextualType(parent, contextFlags); - } - case 235 /* NonNullExpression */: - return getContextualType(parent, contextFlags); - case 238 /* SatisfiesExpression */: - return getTypeFromTypeNode(parent.type); - case 277 /* ExportAssignment */: - return tryGetTypeFromEffectiveTypeNode(parent); - case 294 /* JsxExpression */: - return getContextualTypeForJsxExpression(parent, contextFlags); - case 291 /* JsxAttribute */: - case 293 /* JsxSpreadAttribute */: - return getContextualTypeForJsxAttribute(parent, contextFlags); - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - return getContextualJsxElementAttributesType(parent, contextFlags); - case 301 /* ImportAttribute */: - return getContextualImportAttributeType(parent); - } - return void 0; - } - function pushCachedContextualType(node) { - pushContextualType( - node, - getContextualType( - node, - /*contextFlags*/ - void 0 - ), - /*isCache*/ - true - ); - } - function pushContextualType(node, type, isCache) { - contextualTypeNodes[contextualTypeCount] = node; - contextualTypes[contextualTypeCount] = type; - contextualIsCache[contextualTypeCount] = isCache; - contextualTypeCount++; - } - function popContextualType() { - contextualTypeCount--; - } - function findContextualNode(node, includeCaches) { - for (let i = contextualTypeCount - 1; i >= 0; i--) { - if (node === contextualTypeNodes[i] && (includeCaches || !contextualIsCache[i])) { - return i; - } - } - return -1; - } - function pushInferenceContext(node, inferenceContext) { - inferenceContextNodes[inferenceContextCount] = node; - inferenceContexts[inferenceContextCount] = inferenceContext; - inferenceContextCount++; - } - function popInferenceContext() { - inferenceContextCount--; - } - function getInferenceContext(node) { - for (let i = inferenceContextCount - 1; i >= 0; i--) { - if (isNodeDescendantOf(node, inferenceContextNodes[i])) { - return inferenceContexts[i]; - } - } - } - function getContextualImportAttributeType(node) { - return getTypeOfPropertyOfContextualType(getGlobalImportAttributesType( - /*reportErrors*/ - false - ), getNameFromImportAttribute(node)); - } - function getContextualJsxElementAttributesType(node, contextFlags) { - if (isJsxOpeningElement(node) && contextFlags !== 4 /* Completions */) { - const index = findContextualNode( - node.parent, - /*includeCaches*/ - !contextFlags - ); - if (index >= 0) { - return contextualTypes[index]; - } - } - return getContextualTypeForArgumentAtIndex(node, 0); - } - function getEffectiveFirstArgumentForJsxSignature(signature, node) { - return isJsxOpeningFragment(node) || getJsxReferenceKind(node) !== 0 /* Component */ ? getJsxPropsTypeFromCallSignature(signature, node) : getJsxPropsTypeFromClassType(signature, node); - } - function getJsxPropsTypeFromCallSignature(sig, context) { - let propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType); - propsType = getJsxManagedAttributesFromLocatedAttributes(context, getJsxNamespaceAt(context), propsType); - const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context); - if (!isErrorType(intrinsicAttribs)) { - propsType = intersectTypes(intrinsicAttribs, propsType); - } - return propsType; - } - function getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation) { - if (sig.compositeSignatures) { - const results = []; - for (const signature of sig.compositeSignatures) { - const instance = getReturnTypeOfSignature(signature); - if (isTypeAny(instance)) { - return instance; - } - const propType = getTypeOfPropertyOfType(instance, forcedLookupLocation); - if (!propType) { - return; - } - results.push(propType); - } - return getIntersectionType(results); - } - const instanceType = getReturnTypeOfSignature(sig); - return isTypeAny(instanceType) ? instanceType : getTypeOfPropertyOfType(instanceType, forcedLookupLocation); - } - function getStaticTypeOfReferencedJsxConstructor(context) { - if (isJsxOpeningFragment(context)) return getJSXFragmentType(context); - if (isJsxIntrinsicTagName(context.tagName)) { - const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(context); - const fakeSignature = createSignatureForJSXIntrinsic(context, result); - return getOrCreateTypeFromSignature(fakeSignature); - } - const tagType = checkExpressionCached(context.tagName); - if (tagType.flags & 128 /* StringLiteral */) { - const result = getIntrinsicAttributesTypeFromStringLiteralType(tagType, context); - if (!result) { - return errorType; - } - const fakeSignature = createSignatureForJSXIntrinsic(context, result); - return getOrCreateTypeFromSignature(fakeSignature); - } - return tagType; - } - function getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType) { - const managedSym = getJsxLibraryManagedAttributes(ns); - if (managedSym) { - const ctorType = getStaticTypeOfReferencedJsxConstructor(context); - const result = instantiateAliasOrInterfaceWithDefaults(managedSym, isInJSFile(context), ctorType, attributesType); - if (result) { - return result; - } - } - return attributesType; - } - function getJsxPropsTypeFromClassType(sig, context) { - const ns = getJsxNamespaceAt(context); - const forcedLookupLocation = getJsxElementPropertiesName(ns); - let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === "" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation); - if (!attributesType) { - if (!!forcedLookupLocation && !!length(context.attributes.properties)) { - error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); - } - return unknownType; - } - attributesType = getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType); - if (isTypeAny(attributesType)) { - return attributesType; - } else { - let apparentAttributesType = attributesType; - const intrinsicClassAttribs = getJsxType(JsxNames.IntrinsicClassAttributes, context); - if (!isErrorType(intrinsicClassAttribs)) { - const typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol); - const hostClassType = getReturnTypeOfSignature(sig); - let libraryManagedAttributeType; - if (typeParams) { - const inferredArgs = fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), isInJSFile(context)); - libraryManagedAttributeType = instantiateType(intrinsicClassAttribs, createTypeMapper(typeParams, inferredArgs)); - } else libraryManagedAttributeType = intrinsicClassAttribs; - apparentAttributesType = intersectTypes(libraryManagedAttributeType, apparentAttributesType); - } - const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context); - if (!isErrorType(intrinsicAttribs)) { - apparentAttributesType = intersectTypes(intrinsicAttribs, apparentAttributesType); - } - return apparentAttributesType; - } - } - function getIntersectedSignatures(signatures) { - return getStrictOptionValue(compilerOptions, "noImplicitAny") ? reduceLeft( - signatures, - (left, right) => left === right || !left ? left : compareTypeParametersIdentical(left.typeParameters, right.typeParameters) ? combineSignaturesOfIntersectionMembers(left, right) : void 0 - ) : void 0; - } - function combineIntersectionThisParam(left, right, mapper) { - if (!left || !right) { - return left || right; - } - const thisType = getUnionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]); - return createSymbolWithType(left, thisType); - } - function combineIntersectionParameters(left, right, mapper) { - const leftCount = getParameterCount(left); - const rightCount = getParameterCount(right); - const longest = leftCount >= rightCount ? left : right; - const shorter = longest === left ? right : left; - const longestCount = longest === left ? leftCount : rightCount; - const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right); - const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest); - const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0)); - for (let i = 0; i < longestCount; i++) { - let longestParamType = tryGetTypeAtPosition(longest, i); - if (longest === right) { - longestParamType = instantiateType(longestParamType, mapper); - } - let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType; - if (shorter === right) { - shorterParamType = instantiateType(shorterParamType, mapper); - } - const unionParamType = getUnionType([longestParamType, shorterParamType]); - const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1; - const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter); - const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i); - const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i); - const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0; - const paramSymbol = createSymbol( - 1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), - paramName || `arg${i}`, - isRestParam ? 32768 /* RestParameter */ : isOptional ? 16384 /* OptionalParameter */ : 0 - ); - paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType; - params[i] = paramSymbol; - } - if (needsExtraRestElement) { - const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args", 32768 /* RestParameter */); - restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount)); - if (shorter === right) { - restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper); - } - params[longestCount] = restParamSymbol; - } - return params; - } - function combineSignaturesOfIntersectionMembers(left, right) { - const typeParams = left.typeParameters || right.typeParameters; - let paramMapper; - if (left.typeParameters && right.typeParameters) { - paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); - } - let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */); - const declaration = left.declaration; - const params = combineIntersectionParameters(left, right, paramMapper); - const lastParam = lastOrUndefined(params); - if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) { - flags |= 1 /* HasRestParameter */; - } - const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper); - const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); - const result = createSignature( - declaration, - typeParams, - thisParam, - params, - /*resolvedReturnType*/ - void 0, - /*resolvedTypePredicate*/ - void 0, - minArgCount, - flags - ); - result.compositeKind = 2097152 /* Intersection */; - result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); - if (paramMapper) { - result.mapper = left.compositeKind === 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper; - } - return result; - } - function getContextualCallSignature(type, node) { - const signatures = getSignaturesOfType(type, 0 /* Call */); - const applicableByArity = filter(signatures, (s) => !isAritySmaller(s, node)); - return applicableByArity.length === 1 ? applicableByArity[0] : getIntersectedSignatures(applicableByArity); - } - function isAritySmaller(signature, target) { - let targetParameterCount = 0; - for (; targetParameterCount < target.parameters.length; targetParameterCount++) { - const param = target.parameters[targetParameterCount]; - if (param.initializer || param.questionToken || param.dotDotDotToken || isJSDocOptionalParameter(param)) { - break; - } - } - if (target.parameters.length && parameterIsThisKeyword(target.parameters[0])) { - targetParameterCount--; - } - return !hasEffectiveRestParameter(signature) && getParameterCount(signature) < targetParameterCount; - } - function getContextualSignatureForFunctionLikeDeclaration(node) { - return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; - } - function getContextualSignature(node) { - Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); - const typeTagSignature = getSignatureOfTypeTag(node); - if (typeTagSignature) { - return typeTagSignature; - } - const type = getApparentTypeOfContextualType(node, 1 /* Signature */); - if (!type) { - return void 0; - } - if (!(type.flags & 1048576 /* Union */)) { - return getContextualCallSignature(type, node); - } - let signatureList; - const types = type.types; - for (const current of types) { - const signature = getContextualCallSignature(current, node); - if (signature) { - if (!signatureList) { - signatureList = [signature]; - } else if (!compareSignaturesIdentical( - signatureList[0], - signature, - /*partialMatch*/ - false, - /*ignoreThisTypes*/ - true, - /*ignoreReturnTypes*/ - true, - compareTypesIdentical - )) { - return void 0; - } else { - signatureList.push(signature); - } - } - } - if (signatureList) { - return signatureList.length === 1 ? signatureList[0] : createUnionSignature(signatureList[0], signatureList); - } - } - function checkGrammarRegularExpressionLiteral(node) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile) && !node.isUnterminated) { - let lastError; - scanner ?? (scanner = createScanner( - 99 /* ESNext */, - /*skipTrivia*/ - true - )); - scanner.setScriptTarget(sourceFile.languageVersion); - scanner.setLanguageVariant(sourceFile.languageVariant); - scanner.setOnError((message, length2, arg0) => { - const start = scanner.getTokenEnd(); - if (message.category === 3 /* Message */ && lastError && start === lastError.start && length2 === lastError.length) { - const error2 = createDetachedDiagnostic(sourceFile.fileName, sourceFile.text, start, length2, message, arg0); - addRelatedInfo(lastError, error2); - } else if (!lastError || start !== lastError.start) { - lastError = createFileDiagnostic(sourceFile, start, length2, message, arg0); - diagnostics.add(lastError); - } - }); - scanner.setText(sourceFile.text, node.pos, node.end - node.pos); - try { - scanner.scan(); - Debug.assert(scanner.reScanSlashToken( - /*reportErrors*/ - true - ) === 14 /* RegularExpressionLiteral */, "Expected scanner to rescan RegularExpressionLiteral"); - return !!lastError; - } finally { - scanner.setText(""); - scanner.setOnError( - /*onError*/ - void 0 - ); - } - } - return false; - } - function checkRegularExpressionLiteral(node) { - const nodeLinks2 = getNodeLinks(node); - if (!(nodeLinks2.flags & 1 /* TypeChecked */)) { - nodeLinks2.flags |= 1 /* TypeChecked */; - addLazyDiagnostic(() => checkGrammarRegularExpressionLiteral(node)); - } - return globalRegExpType; - } - function checkSpreadExpression(node, checkMode) { - if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) { - checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); - } - const arrayOrIterableType = checkExpression(node.expression, checkMode); - return checkIteratedTypeOrElementType(33 /* Spread */, arrayOrIterableType, undefinedType, node.expression); - } - function checkSyntheticExpression(node) { - return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; - } - function hasDefaultValue(node) { - return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 303 /* PropertyAssignment */ && hasDefaultValue(node.initializer) || node.kind === 304 /* ShorthandPropertyAssignment */ && !!node.objectAssignmentInitializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; - } - function isSpreadIntoCallOrNew(node) { - const parent = walkUpParenthesizedExpressions(node.parent); - return isSpreadElement(parent) && isCallOrNewExpression(parent.parent); - } - function checkArrayLiteral(node, checkMode, forceTuple) { - const elements = node.elements; - const elementCount = elements.length; - const elementTypes = []; - const elementFlags = []; - pushCachedContextualType(node); - const inDestructuringPattern = isAssignmentTarget(node); - const inConstContext = isConstContext(node); - const contextualType = getApparentTypeOfContextualType( - node, - /*contextFlags*/ - void 0 - ); - const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, (t) => isTupleLikeType(t) || isGenericMappedType(t) && !t.nameType && !!getHomomorphicTypeVariable(t.target || t)); - let hasOmittedExpression = false; - for (let i = 0; i < elementCount; i++) { - const e = elements[i]; - if (e.kind === 230 /* SpreadElement */) { - if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) { - checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); - } - const spreadType = checkExpression(e.expression, checkMode, forceTuple); - if (isArrayLikeType(spreadType)) { - elementTypes.push(spreadType); - elementFlags.push(8 /* Variadic */); - } else if (inDestructuringPattern) { - const restElementType = getIndexTypeOfType(spreadType, numberType) || getIteratedTypeOrElementType( - 65 /* Destructuring */, - spreadType, - undefinedType, - /*errorNode*/ - void 0, - /*checkAssignability*/ - false - ) || unknownType; - elementTypes.push(restElementType); - elementFlags.push(4 /* Rest */); - } else { - elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); - elementFlags.push(4 /* Rest */); - } - } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { - hasOmittedExpression = true; - elementTypes.push(undefinedOrMissingType); - elementFlags.push(2 /* Optional */); - } else { - const type = checkExpressionForMutableLocation(e, checkMode, forceTuple); - elementTypes.push(addOptionality( - type, - /*isProperty*/ - true, - hasOmittedExpression - )); - elementFlags.push(hasOmittedExpression ? 2 /* Optional */ : 1 /* Required */); - if (inTupleContext && checkMode && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(e)) { - const inferenceContext = getInferenceContext(node); - Debug.assert(inferenceContext); - addIntraExpressionInferenceSite(inferenceContext, e, type); - } - } - } - popContextualType(); - if (inDestructuringPattern) { - return createTupleType(elementTypes, elementFlags); - } - if (forceTuple || inConstContext || inTupleContext) { - return createArrayLiteralType(createTupleType( - elementTypes, - elementFlags, - /*readonly*/ - inConstContext && !(contextualType && someType(contextualType, isMutableArrayLikeType)) - )); - } - return createArrayLiteralType(createArrayType( - elementTypes.length ? getUnionType(sameMap(elementTypes, (t, i) => elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessTypeOrUndefined(t, numberType) || anyType : t), 2 /* Subtype */) : strictNullChecks ? implicitNeverType : undefinedWideningType, - inConstContext - )); - } - function createArrayLiteralType(type) { - if (!(getObjectFlags(type) & 4 /* Reference */)) { - return type; - } - let literalType = type.literalType; - if (!literalType) { - literalType = type.literalType = cloneTypeReference(type); - literalType.objectFlags |= 16384 /* ArrayLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - } - return literalType; - } - function isNumericName(name) { - switch (name.kind) { - case 167 /* ComputedPropertyName */: - return isNumericComputedName(name); - case 80 /* Identifier */: - return isNumericLiteralName(name.escapedText); - case 9 /* NumericLiteral */: - case 11 /* StringLiteral */: - return isNumericLiteralName(name.text); - default: - return false; - } - } - function isNumericComputedName(name) { - return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* NumberLike */); - } - function checkComputedPropertyName(node) { - const links = getNodeLinks(node.expression); - if (!links.resolvedType) { - if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { - return links.resolvedType = errorType; - } - links.resolvedType = checkExpression(node.expression); - if (isPropertyDeclaration(node.parent) && !hasStaticModifier(node.parent) && isClassExpression(node.parent.parent)) { - const container = getEnclosingBlockScopeContainer(node.parent.parent); - const enclosingIterationStatement = getEnclosingIterationStatement(container); - if (enclosingIterationStatement) { - getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; - getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */; - getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */; - } - } - if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) { - error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); - } - } - return links.resolvedType; - } - function isSymbolWithNumericName(symbol) { - var _a; - const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; - return isNumericLiteralName(symbol.escapedName) || firstDecl && isNamedDeclaration(firstDecl) && isNumericName(firstDecl.name); - } - function isSymbolWithSymbolName(symbol) { - var _a; - const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; - return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */); - } - function isSymbolWithComputedName(symbol) { - var _a; - const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; - return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name); - } - function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) { - var _a; - const propTypes = []; - let components; - for (let i = offset; i < properties.length; i++) { - const prop = properties[i]; - if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) { - propTypes.push(getTypeOfSymbol(properties[i])); - if (isSymbolWithComputedName(properties[i])) { - components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]); - } - } - } - const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType; - return createIndexInfo( - keyType, - unionType, - isReadonly, - /*declaration*/ - void 0, - components - ); - } - function getImmediateAliasedSymbol(symbol) { - Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here."); - const links = getSymbolLinks(symbol); - if (!links.immediateTarget) { - const node = getDeclarationOfAliasSymbol(symbol); - if (!node) return Debug.fail(); - links.immediateTarget = getTargetOfAliasDeclaration( - node, - /*dontRecursivelyResolve*/ - true - ); - } - return links.immediateTarget; - } - function checkObjectLiteral(node, checkMode = 0 /* Normal */) { - const inDestructuringPattern = isAssignmentTarget(node); - checkGrammarObjectLiteralExpression(node, inDestructuringPattern); - const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0; - let propertiesTable = createSymbolTable(); - let propertiesArray = []; - let spread = emptyObjectType; - pushCachedContextualType(node); - const contextualType = getApparentTypeOfContextualType( - node, - /*contextFlags*/ - void 0 - ); - const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); - const inConstContext = isConstContext(node); - const checkFlags = inConstContext ? 8 /* Readonly */ : 0; - const isInJavascript = isInJSFile(node) && !isInJsonFile(node); - const enumTag = isInJavascript ? getJSDocEnumTag(node) : void 0; - const isJSObjectLiteral = !contextualType && isInJavascript && !enumTag; - let objectFlags = 8192 /* FreshLiteral */; - let patternWithComputedProperties = false; - let hasComputedStringProperty = false; - let hasComputedNumberProperty = false; - let hasComputedSymbolProperty = false; - for (const elem of node.properties) { - if (elem.name && isComputedPropertyName(elem.name)) { - checkComputedPropertyName(elem.name); - } - } - let offset = 0; - for (const memberDecl of node.properties) { - let member = getSymbolOfDeclaration(memberDecl); - const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; - if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { - let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( - // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring - // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. - // we don't want to say "could not find 'a'". - memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) - ); - if (isInJavascript) { - const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); - if (jsDocType) { - checkTypeAssignableTo(type, jsDocType, memberDecl); - type = jsDocType; - } else if (enumTag && enumTag.typeExpression) { - checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl); - } - } - objectFlags |= getObjectFlags(type) & 458752 /* PropagatingFlags */; - const nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : void 0; - const prop = nameType ? createSymbol(4 /* Property */ | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096 /* Late */) : createSymbol(4 /* Property */ | member.flags, member.escapedName, checkFlags); - if (nameType) { - prop.links.nameType = nameType; - } - if (inDestructuringPattern && hasDefaultValue(memberDecl)) { - prop.flags |= 16777216 /* Optional */; - } else if (contextualTypeHasPattern && !(getObjectFlags(contextualType) & 512 /* ObjectLiteralPatternWithComputedProperties */)) { - const impliedProp = getPropertyOfType(contextualType, member.escapedName); - if (impliedProp) { - prop.flags |= impliedProp.flags & 16777216 /* Optional */; - } else if (!getIndexInfoOfType(contextualType, stringType)) { - error(memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), typeToString(contextualType)); - } - } - prop.declarations = member.declarations; - prop.parent = member.parent; - if (member.valueDeclaration) { - prop.valueDeclaration = member.valueDeclaration; - } - prop.links.type = type; - prop.links.target = member; - member = prop; - allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { - const inferenceContext = getInferenceContext(node); - Debug.assert(inferenceContext); - const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; - addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); - } - } else if (memberDecl.kind === 305 /* SpreadAssignment */) { - if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) { - checkExternalEmitHelpers(memberDecl, 2 /* Assign */); - } - if (propertiesArray.length > 0) { - spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext); - propertiesArray = []; - propertiesTable = createSymbolTable(); - hasComputedStringProperty = false; - hasComputedNumberProperty = false; - hasComputedSymbolProperty = false; - } - const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */)); - if (isValidSpreadType(type)) { - const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext); - if (allPropertiesTable) { - checkSpreadPropOverrides(mergedType, allPropertiesTable, memberDecl); - } - offset = propertiesArray.length; - if (isErrorType(spread)) { - continue; - } - spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext); - } else { - error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); - spread = errorType; - } - continue; - } else { - Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); - checkNodeDeferred(memberDecl); - } - if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { - if (isTypeAssignableTo(computedNameType, stringNumberSymbolType)) { - if (isTypeAssignableTo(computedNameType, numberType)) { - hasComputedNumberProperty = true; - } else if (isTypeAssignableTo(computedNameType, esSymbolType)) { - hasComputedSymbolProperty = true; - } else { - hasComputedStringProperty = true; - } - if (inDestructuringPattern) { - patternWithComputedProperties = true; - } - } - } else { - propertiesTable.set(member.escapedName, member); - } - propertiesArray.push(member); - } - popContextualType(); - if (isErrorType(spread)) { - return errorType; - } - if (spread !== emptyObjectType) { - if (propertiesArray.length > 0) { - spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext); - propertiesArray = []; - propertiesTable = createSymbolTable(); - hasComputedStringProperty = false; - hasComputedNumberProperty = false; - } - return mapType(spread, (t) => t === emptyObjectType ? createObjectLiteralType() : t); - } - return createObjectLiteralType(); - function createObjectLiteralType() { - const indexInfos = []; - const isReadonly = isConstContext(node); - if (hasComputedStringProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, stringType)); - if (hasComputedNumberProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, numberType)); - if (hasComputedSymbolProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, esSymbolType)); - const result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, indexInfos); - result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - if (isJSObjectLiteral) { - result.objectFlags |= 4096 /* JSLiteral */; - } - if (patternWithComputedProperties) { - result.objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */; - } - if (inDestructuringPattern) { - result.pattern = node; - } - return result; - } - } - function isValidSpreadType(type) { - const t = removeDefinitelyFalsyTypes(mapType(type, getBaseConstraintOrType)); - return !!(t.flags & (1 /* Any */ | 67108864 /* NonPrimitive */ | 524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) || t.flags & 3145728 /* UnionOrIntersection */ && every(t.types, isValidSpreadType)); - } - function checkJsxSelfClosingElementDeferred(node) { - checkJsxOpeningLikeElementOrOpeningFragment(node); - } - function checkJsxSelfClosingElement(node, _checkMode) { - checkNodeDeferred(node); - return getJsxElementTypeAt(node) || anyType; - } - function checkJsxElementDeferred(node) { - checkJsxOpeningLikeElementOrOpeningFragment(node.openingElement); - if (isJsxIntrinsicTagName(node.closingElement.tagName)) { - getIntrinsicTagSymbol(node.closingElement); - } else { - checkExpression(node.closingElement.tagName); - } - checkJsxChildren(node); - } - function checkJsxElement(node, _checkMode) { - checkNodeDeferred(node); - return getJsxElementTypeAt(node) || anyType; - } - function checkJsxFragment(node) { - checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment); - const nodeSourceFile = getSourceFileOfNode(node); - if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag")) { - error( - node, - compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments - ); - } - checkJsxChildren(node); - const jsxElementType = getJsxElementTypeAt(node); - return isErrorType(jsxElementType) ? anyType : jsxElementType; - } - function isHyphenatedJsxName(name) { - return name.includes("-"); - } - function isJsxIntrinsicTagName(tagName) { - return isIdentifier(tagName) && isIntrinsicJsxName(tagName.escapedText) || isJsxNamespacedName(tagName); - } - function checkJsxAttribute(node, checkMode) { - return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType; - } - function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) { - const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0; - let attributesTable = createSymbolTable(); - let spread = emptyJsxObjectType; - let hasSpreadAnyType = false; - let typeToIntersect; - let explicitlySpecifyChildrenAttribute = false; - let objectFlags = 2048 /* JsxAttributes */; - const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(openingLikeElement)); - const isJsxOpenFragment = isJsxOpeningFragment(openingLikeElement); - let attributesSymbol; - let attributeParent = openingLikeElement; - if (!isJsxOpenFragment) { - const attributes = openingLikeElement.attributes; - attributesSymbol = attributes.symbol; - attributeParent = attributes; - const contextualType = getContextualType(attributes, 0 /* None */); - for (const attributeDecl of attributes.properties) { - const member = attributeDecl.symbol; - if (isJsxAttribute(attributeDecl)) { - const exprType = checkJsxAttribute(attributeDecl, checkMode); - objectFlags |= getObjectFlags(exprType) & 458752 /* PropagatingFlags */; - const attributeSymbol = createSymbol(4 /* Property */ | member.flags, member.escapedName); - attributeSymbol.declarations = member.declarations; - attributeSymbol.parent = member.parent; - if (member.valueDeclaration) { - attributeSymbol.valueDeclaration = member.valueDeclaration; - } - attributeSymbol.links.type = exprType; - attributeSymbol.links.target = member; - attributesTable.set(attributeSymbol.escapedName, attributeSymbol); - allAttributesTable == null ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol); - if (getEscapedTextOfJsxAttributeName(attributeDecl.name) === jsxChildrenPropertyName) { - explicitlySpecifyChildrenAttribute = true; - } - if (contextualType) { - const prop = getPropertyOfType(contextualType, member.escapedName); - if (prop && prop.declarations && isDeprecatedSymbol(prop) && isIdentifier(attributeDecl.name)) { - addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText); - } - } - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) { - const inferenceContext = getInferenceContext(attributes); - Debug.assert(inferenceContext); - const inferenceNode = attributeDecl.initializer.expression; - addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); - } - } else { - Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); - if (attributesTable.size > 0) { - spread = getSpreadType( - spread, - createJsxAttributesTypeHelper(), - attributes.symbol, - objectFlags, - /*readonly*/ - false - ); - attributesTable = createSymbolTable(); - } - const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */)); - if (isTypeAny(exprType)) { - hasSpreadAnyType = true; - } - if (isValidSpreadType(exprType)) { - spread = getSpreadType( - spread, - exprType, - attributes.symbol, - objectFlags, - /*readonly*/ - false - ); - if (allAttributesTable) { - checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); - } - } else { - error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); - typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; - } - } - } - if (!hasSpreadAnyType) { - if (attributesTable.size > 0) { - spread = getSpreadType( - spread, - createJsxAttributesTypeHelper(), - attributes.symbol, - objectFlags, - /*readonly*/ - false - ); - } - } - } - const parent = openingLikeElement.parent; - if ((isJsxElement(parent) && parent.openingElement === openingLikeElement || isJsxFragment(parent) && parent.openingFragment === openingLikeElement) && getSemanticJsxChildren(parent.children).length > 0) { - const childrenTypes = checkJsxChildren(parent, checkMode); - if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { - if (explicitlySpecifyChildrenAttribute) { - error(attributeParent, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); - } - const contextualType = isJsxOpeningElement(openingLikeElement) ? getApparentTypeOfContextualType( - openingLikeElement.attributes, - /*contextFlags*/ - void 0 - ) : void 0; - const childrenContextualType = contextualType && getTypeOfPropertyOfContextualType(contextualType, jsxChildrenPropertyName); - const childrenPropSymbol = createSymbol(4 /* Property */, jsxChildrenPropertyName); - childrenPropSymbol.links.type = childrenTypes.length === 1 ? childrenTypes[0] : childrenContextualType && someType(childrenContextualType, isTupleLikeType) ? createTupleType(childrenTypes) : createArrayType(getUnionType(childrenTypes)); - childrenPropSymbol.valueDeclaration = factory.createPropertySignature( - /*modifiers*/ - void 0, - unescapeLeadingUnderscores(jsxChildrenPropertyName), - /*questionToken*/ - void 0, - /*type*/ - void 0 - ); - setParent(childrenPropSymbol.valueDeclaration, attributeParent); - childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol; - const childPropMap = createSymbolTable(); - childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol); - spread = getSpreadType( - spread, - createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray), - attributesSymbol, - objectFlags, - /*readonly*/ - false - ); - } - } - if (hasSpreadAnyType) { - return anyType; - } - if (typeToIntersect && spread !== emptyJsxObjectType) { - return getIntersectionType([typeToIntersect, spread]); - } - return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesTypeHelper() : spread); - function createJsxAttributesTypeHelper() { - objectFlags |= 8192 /* FreshLiteral */; - return createJsxAttributesType(objectFlags, attributesSymbol, attributesTable); - } - } - function createJsxAttributesType(objectFlags, attributesSymbol, attributesTable) { - const result = createAnonymousType(attributesSymbol, attributesTable, emptyArray, emptyArray, emptyArray); - result.objectFlags |= objectFlags | 8192 /* FreshLiteral */ | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - return result; - } - function checkJsxChildren(node, checkMode) { - const childrenTypes = []; - for (const child of node.children) { - if (child.kind === 12 /* JsxText */) { - if (!child.containsOnlyTriviaWhiteSpaces) { - childrenTypes.push(stringType); - } - } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { - continue; - } else { - childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); - } - } - return childrenTypes; - } - function checkSpreadPropOverrides(type, props, spread) { - for (const right of getPropertiesOfType(type)) { - if (!(right.flags & 16777216 /* Optional */)) { - const left = props.get(right.escapedName); - if (left) { - const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); - addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property)); - } - } - } - } - function checkJsxAttributes(node, checkMode) { - return createJsxAttributesTypeFromAttributesProperty(node.parent, checkMode); - } - function getJsxType(name, location) { - const namespace = getJsxNamespaceAt(location); - const exports2 = namespace && getExportsOfSymbol(namespace); - const typeSymbol = exports2 && getSymbol(exports2, name, 788968 /* Type */); - return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType; - } - function getIntrinsicTagSymbol(node) { - const links = getNodeLinks(node); - if (!links.resolvedSymbol) { - const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, node); - if (!isErrorType(intrinsicElementsType)) { - if (!isIdentifier(node.tagName) && !isJsxNamespacedName(node.tagName)) return Debug.fail(); - const propName = isJsxNamespacedName(node.tagName) ? getEscapedTextOfJsxNamespacedName(node.tagName) : node.tagName.escapedText; - const intrinsicProp = getPropertyOfType(intrinsicElementsType, propName); - if (intrinsicProp) { - links.jsxFlags |= 1 /* IntrinsicNamedElement */; - return links.resolvedSymbol = intrinsicProp; - } - const indexSymbol = getApplicableIndexSymbol(intrinsicElementsType, getStringLiteralType(unescapeLeadingUnderscores(propName))); - if (indexSymbol) { - links.jsxFlags |= 2 /* IntrinsicIndexedElement */; - return links.resolvedSymbol = indexSymbol; - } - if (getTypeOfPropertyOrIndexSignatureOfType(intrinsicElementsType, propName)) { - links.jsxFlags |= 2 /* IntrinsicIndexedElement */; - return links.resolvedSymbol = intrinsicElementsType.symbol; - } - error(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); - return links.resolvedSymbol = unknownSymbol; - } else { - if (noImplicitAny) { - error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); - } - return links.resolvedSymbol = unknownSymbol; - } - } - return links.resolvedSymbol; - } - function getJsxNamespaceContainerForImplicitImport(location) { - const file = location && getSourceFileOfNode(location); - const links = file && getNodeLinks(file); - if (links && links.jsxImplicitImportContainer === false) { - return void 0; - } - if (links && links.jsxImplicitImportContainer) { - return links.jsxImplicitImportContainer; - } - const runtimeImportSpecifier = getJSXRuntimeImport(getJSXImplicitImportBase(compilerOptions, file), compilerOptions); - if (!runtimeImportSpecifier) { - return void 0; - } - const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; - const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.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; - const specifier = getJSXRuntimeImportSpecifier(file, runtimeImportSpecifier); - const mod = resolveExternalModule(specifier || location, runtimeImportSpecifier, errorMessage, location); - const result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : void 0; - if (links) { - links.jsxImplicitImportContainer = result || false; - } - return result; - } - function getJsxNamespaceAt(location) { - const links = location && getNodeLinks(location); - if (links && links.jsxNamespace) { - return links.jsxNamespace; - } - if (!links || links.jsxNamespace !== false) { - let resolvedNamespace = getJsxNamespaceContainerForImplicitImport(location); - if (!resolvedNamespace || resolvedNamespace === unknownSymbol) { - const namespaceName = getJsxNamespace(location); - resolvedNamespace = resolveName( - location, - namespaceName, - 1920 /* Namespace */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - } - if (resolvedNamespace) { - const candidate = resolveSymbol(getSymbol(getExportsOfSymbol(resolveSymbol(resolvedNamespace)), JsxNames.JSX, 1920 /* Namespace */)); - if (candidate && candidate !== unknownSymbol) { - if (links) { - links.jsxNamespace = candidate; - } - return candidate; - } - } - if (links) { - links.jsxNamespace = false; - } - } - const s = resolveSymbol(getGlobalSymbol( - JsxNames.JSX, - 1920 /* Namespace */, - /*diagnostic*/ - void 0 - )); - if (s === unknownSymbol) { - return void 0; - } - return s; - } - function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer, jsxNamespace) { - const jsxElementAttribPropInterfaceSym = jsxNamespace && getSymbol(jsxNamespace.exports, nameOfAttribPropContainer, 788968 /* Type */); - const jsxElementAttribPropInterfaceType = jsxElementAttribPropInterfaceSym && getDeclaredTypeOfSymbol(jsxElementAttribPropInterfaceSym); - const propertiesOfJsxElementAttribPropInterface = jsxElementAttribPropInterfaceType && getPropertiesOfType(jsxElementAttribPropInterfaceType); - if (propertiesOfJsxElementAttribPropInterface) { - if (propertiesOfJsxElementAttribPropInterface.length === 0) { - return ""; - } else if (propertiesOfJsxElementAttribPropInterface.length === 1) { - return propertiesOfJsxElementAttribPropInterface[0].escapedName; - } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) { - error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); - } - } - return void 0; - } - function getJsxLibraryManagedAttributes(jsxNamespace) { - return jsxNamespace && getSymbol(jsxNamespace.exports, JsxNames.LibraryManagedAttributes, 788968 /* Type */); - } - function getJsxElementTypeSymbol(jsxNamespace) { - return jsxNamespace && getSymbol(jsxNamespace.exports, JsxNames.ElementType, 788968 /* Type */); - } - function getJsxElementPropertiesName(jsxNamespace) { - return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace); - } - function getJsxElementChildrenPropertyName(jsxNamespace) { - if (compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */) { - return "children"; - } - return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace); - } - function getUninstantiatedJsxSignaturesOfType(elementType, caller) { - if (elementType.flags & 4 /* String */) { - return [anySignature]; - } else if (elementType.flags & 128 /* StringLiteral */) { - const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller); - if (!intrinsicType) { - error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); - return emptyArray; - } else { - const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); - return [fakeSignature]; - } - } - const apparentElemType = getApparentType(elementType); - let signatures = getSignaturesOfType(apparentElemType, 1 /* Construct */); - if (signatures.length === 0) { - signatures = getSignaturesOfType(apparentElemType, 0 /* Call */); - } - if (signatures.length === 0 && apparentElemType.flags & 1048576 /* Union */) { - signatures = getUnionSignatures(map(apparentElemType.types, (t) => getUninstantiatedJsxSignaturesOfType(t, caller))); - } - return signatures; - } - function getIntrinsicAttributesTypeFromStringLiteralType(type, location) { - const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, location); - if (!isErrorType(intrinsicElementsType)) { - const stringLiteralTypeName = type.value; - const intrinsicProp = getPropertyOfType(intrinsicElementsType, escapeLeadingUnderscores(stringLiteralTypeName)); - if (intrinsicProp) { - return getTypeOfSymbol(intrinsicProp); - } - const indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType); - if (indexSignatureType) { - return indexSignatureType; - } - return void 0; - } - return anyType; - } - function checkJsxReturnAssignableToAppropriateBound(refKind, elemInstanceType, openingLikeElement) { - if (refKind === 1 /* Function */) { - const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement); - if (sfcReturnConstraint) { - checkTypeRelatedTo(elemInstanceType, sfcReturnConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); - } - } else if (refKind === 0 /* Component */) { - const classConstraint = getJsxElementClassTypeAt(openingLikeElement); - if (classConstraint) { - checkTypeRelatedTo(elemInstanceType, classConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); - } - } else { - const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement); - const classConstraint = getJsxElementClassTypeAt(openingLikeElement); - if (!sfcReturnConstraint || !classConstraint) { - return; - } - const combined = getUnionType([sfcReturnConstraint, classConstraint]); - checkTypeRelatedTo(elemInstanceType, combined, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); - } - function generateInitialErrorChain() { - const componentName = getTextOfNode(openingLikeElement.tagName); - return chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics._0_cannot_be_used_as_a_JSX_component, - componentName - ); - } - } - function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node) { - var _a; - Debug.assert(isJsxIntrinsicTagName(node.tagName)); - const links = getNodeLinks(node); - if (!links.resolvedJsxElementAttributesType) { - const symbol = getIntrinsicTagSymbol(node); - if (links.jsxFlags & 1 /* IntrinsicNamedElement */) { - return links.resolvedJsxElementAttributesType = getTypeOfSymbol(symbol) || errorType; - } else if (links.jsxFlags & 2 /* IntrinsicIndexedElement */) { - const propName = isJsxNamespacedName(node.tagName) ? getEscapedTextOfJsxNamespacedName(node.tagName) : node.tagName.escapedText; - return links.resolvedJsxElementAttributesType = ((_a = getApplicableIndexInfoForName(getJsxType(JsxNames.IntrinsicElements, node), propName)) == null ? void 0 : _a.type) || errorType; - } else { - return links.resolvedJsxElementAttributesType = errorType; - } - } - return links.resolvedJsxElementAttributesType; - } - function getJsxElementClassTypeAt(location) { - const type = getJsxType(JsxNames.ElementClass, location); - if (isErrorType(type)) return void 0; - return type; - } - function getJsxElementTypeAt(location) { - return getJsxType(JsxNames.Element, location); - } - function getJsxStatelessElementTypeAt(location) { - const jsxElementType = getJsxElementTypeAt(location); - if (jsxElementType) { - return getUnionType([jsxElementType, nullType]); - } - } - function getJsxElementTypeTypeAt(location) { - const ns = getJsxNamespaceAt(location); - if (!ns) return void 0; - const sym = getJsxElementTypeSymbol(ns); - if (!sym) return void 0; - const type = instantiateAliasOrInterfaceWithDefaults(sym, isInJSFile(location)); - if (!type || isErrorType(type)) return void 0; - return type; - } - function instantiateAliasOrInterfaceWithDefaults(managedSym, inJs, ...typeArguments) { - const declaredManagedType = getDeclaredTypeOfSymbol(managedSym); - if (managedSym.flags & 524288 /* TypeAlias */) { - const params = getSymbolLinks(managedSym).typeParameters; - if (length(params) >= typeArguments.length) { - const args = fillMissingTypeArguments(typeArguments, params, typeArguments.length, inJs); - return length(args) === 0 ? declaredManagedType : getTypeAliasInstantiation(managedSym, args); - } - } - if (length(declaredManagedType.typeParameters) >= typeArguments.length) { - const args = fillMissingTypeArguments(typeArguments, declaredManagedType.typeParameters, typeArguments.length, inJs); - return createTypeReference(declaredManagedType, args); - } - return void 0; - } - function getJsxIntrinsicTagNamesAt(location) { - const intrinsics = getJsxType(JsxNames.IntrinsicElements, location); - return intrinsics ? getPropertiesOfType(intrinsics) : emptyArray; - } - function checkJsxPreconditions(errorNode) { - if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) { - error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); - } - if (getJsxElementTypeAt(errorNode) === void 0) { - if (noImplicitAny) { - error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); - } - } - } - function checkJsxOpeningLikeElementOrOpeningFragment(node) { - const isNodeOpeningLikeElement = isJsxOpeningLikeElement(node); - if (isNodeOpeningLikeElement) { - checkGrammarJsxElement(node); - } - checkJsxPreconditions(node); - markJsxAliasReferenced(node); - const sig = getResolvedSignature(node); - checkDeprecatedSignature(sig, node); - if (isNodeOpeningLikeElement) { - const jsxOpeningLikeNode = node; - const elementTypeConstraint = getJsxElementTypeTypeAt(jsxOpeningLikeNode); - if (elementTypeConstraint !== void 0) { - const tagName = jsxOpeningLikeNode.tagName; - const tagType = isJsxIntrinsicTagName(tagName) ? getStringLiteralType(intrinsicTagNameToString(tagName)) : checkExpression(tagName); - checkTypeRelatedTo(tagType, elementTypeConstraint, assignableRelation, tagName, Diagnostics.Its_type_0_is_not_a_valid_JSX_element_type, () => { - const componentName = getTextOfNode(tagName); - return chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics._0_cannot_be_used_as_a_JSX_component, - componentName - ); - }); - } else { - checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(jsxOpeningLikeNode), getReturnTypeOfSignature(sig), jsxOpeningLikeNode); - } - } - } - function isKnownProperty(targetType, name, isComparingJsxAttributes) { - if (targetType.flags & 524288 /* Object */) { - if (getPropertyOfObjectType(targetType, name) || getApplicableIndexInfoForName(targetType, name) || isLateBoundName(name) && getIndexInfoOfType(targetType, stringType) || isComparingJsxAttributes && isHyphenatedJsxName(name)) { - return true; - } - } - if (targetType.flags & 33554432 /* Substitution */) { - return isKnownProperty(targetType.baseType, name, isComparingJsxAttributes); - } - if (targetType.flags & 3145728 /* UnionOrIntersection */ && isExcessPropertyCheckTarget(targetType)) { - for (const t of targetType.types) { - if (isKnownProperty(t, name, isComparingJsxAttributes)) { - return true; - } - } - } - return false; - } - function isExcessPropertyCheckTarget(type) { - return !!(type.flags & 524288 /* Object */ && !(getObjectFlags(type) & 512 /* ObjectLiteralPatternWithComputedProperties */) || type.flags & 67108864 /* NonPrimitive */ || type.flags & 33554432 /* Substitution */ && isExcessPropertyCheckTarget(type.baseType) || type.flags & 1048576 /* Union */ && some(type.types, isExcessPropertyCheckTarget) || type.flags & 2097152 /* Intersection */ && every(type.types, isExcessPropertyCheckTarget)); - } - function checkJsxExpression(node, checkMode) { - checkGrammarJsxExpression(node); - if (node.expression) { - const type = checkExpression(node.expression, checkMode); - if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { - error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); - } - return type; - } else { - return errorType; - } - } - function getDeclarationNodeFlagsFromSymbol(s) { - return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; - } - function isPrototypeProperty(symbol) { - if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { - return true; - } - if (isInJSFile(symbol.valueDeclaration)) { - const parent = symbol.valueDeclaration.parent; - return parent && isBinaryExpression(parent) && getAssignmentDeclarationKind(parent) === 3 /* PrototypeProperty */; - } - } - function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { - const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; - return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); - } - function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { - var _a; - const flags = getDeclarationModifierFlagsFromSymbol(prop, writing); - if (isSuper) { - if (languageVersion < 2 /* ES2015 */) { - if (symbolHasNonMethodDeclaration(prop)) { - if (errorNode) { - error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); - } - return false; - } - } - if (flags & 64 /* Abstract */) { - if (errorNode) { - error(errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), typeToString(getDeclaringClass(prop))); - } - return false; - } - if (!(flags & 256 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) { - if (errorNode) { - error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop)); - } - return false; - } - } - if (flags & 64 /* Abstract */ && symbolHasNonMethodDeclaration(prop) && (isThisProperty(location) || isThisInitializedObjectBindingExpression(location) || isObjectBindingPattern(location.parent) && isThisInitializedDeclaration(location.parent.parent))) { - const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); - if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) { - if (errorNode) { - error(errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), getTextOfIdentifierOrLiteral(declaringClassDeclaration.name)); - } - return false; - } - } - if (!(flags & 6 /* NonPublicAccessibilityModifier */)) { - return true; - } - if (flags & 2 /* Private */) { - const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); - if (!isNodeWithinClass(location, declaringClassDeclaration)) { - if (errorNode) { - error(errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(getDeclaringClass(prop))); - } - return false; - } - return true; - } - if (isSuper) { - return true; - } - let enclosingClass = forEachEnclosingClass(location, (enclosingDeclaration) => { - const enclosingClass2 = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(enclosingDeclaration)); - return isClassDerivedFromDeclaringClasses(enclosingClass2, prop, writing); - }); - if (!enclosingClass) { - enclosingClass = getEnclosingClassFromThisParameter(location); - enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing); - if (flags & 256 /* Static */ || !enclosingClass) { - if (errorNode) { - error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || containingType)); - } - return false; - } - } - if (flags & 256 /* Static */) { - return true; - } - if (containingType.flags & 262144 /* TypeParameter */) { - containingType = containingType.isThisType ? getConstraintOfTypeParameter(containingType) : getBaseConstraintOfType(containingType); - } - if (!containingType || !hasBaseType(containingType, enclosingClass)) { - if (errorNode) { - error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), typeToString(enclosingClass), typeToString(containingType)); - } - return false; - } - return true; - } - function getEnclosingClassFromThisParameter(node) { - const thisParameter = getThisParameterFromNodeContext(node); - let thisType = (thisParameter == null ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type); - if (thisType) { - if (thisType.flags & 262144 /* TypeParameter */) { - thisType = getConstraintOfTypeParameter(thisType); - } - } else { - const thisContainer = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (isFunctionLike(thisContainer)) { - thisType = getContextualThisParameterType(thisContainer); - } - } - if (thisType && getObjectFlags(thisType) & (3 /* ClassOrInterface */ | 4 /* Reference */)) { - return getTargetType(thisType); - } - return void 0; - } - function getThisParameterFromNodeContext(node) { - const thisContainer = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - return thisContainer && isFunctionLike(thisContainer) ? getThisParameter(thisContainer) : void 0; - } - function symbolHasNonMethodDeclaration(symbol) { - return !!forEachProperty(symbol, (prop) => !(prop.flags & 8192 /* Method */)); - } - function checkNonNullExpression(node) { - return checkNonNullType(checkExpression(node), node); - } - function isNullableType(type) { - return hasTypeFacts(type, 50331648 /* IsUndefinedOrNull */); - } - function getNonNullableTypeIfNeeded(type) { - return isNullableType(type) ? getNonNullableType(type) : type; - } - function reportObjectPossiblyNullOrUndefinedError(node, facts) { - const nodeText = isEntityNameExpression(node) ? entityNameToString(node) : void 0; - if (node.kind === 106 /* NullKeyword */) { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); - return; - } - if (nodeText !== void 0 && nodeText.length < 100) { - if (isIdentifier(node) && nodeText === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); - return; - } - error( - node, - facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, - nodeText - ); - } else { - error( - node, - facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null - ); - } - } - function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) { - error( - node, - facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null - ); - } - function checkNonNullTypeWithReporter(type, node, reportError) { - if (strictNullChecks && type.flags & 2 /* Unknown */) { - if (isEntityNameExpression(node)) { - const nodeText = entityNameToString(node); - if (nodeText.length < 100) { - error(node, Diagnostics._0_is_of_type_unknown, nodeText); - return errorType; - } - } - error(node, Diagnostics.Object_is_of_type_unknown); - return errorType; - } - const facts = getTypeFacts(type, 50331648 /* IsUndefinedOrNull */); - if (facts & 50331648 /* IsUndefinedOrNull */) { - reportError(node, facts); - const t = getNonNullableType(type); - return t.flags & (98304 /* Nullable */ | 131072 /* Never */) ? errorType : t; - } - return type; - } - function checkNonNullType(type, node) { - return checkNonNullTypeWithReporter(type, node, reportObjectPossiblyNullOrUndefinedError); - } - function checkNonNullNonVoidType(type, node) { - const nonNullType = checkNonNullType(type, node); - if (nonNullType.flags & 16384 /* Void */) { - if (isEntityNameExpression(node)) { - const nodeText = entityNameToString(node); - if (isIdentifier(node) && nodeText === "undefined") { - error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText); - return nonNullType; - } - if (nodeText.length < 100) { - error(node, Diagnostics._0_is_possibly_undefined, nodeText); - return nonNullType; - } - } - error(node, Diagnostics.Object_is_possibly_undefined); - } - return nonNullType; - } - function checkPropertyAccessExpression(node, checkMode, writeOnly) { - return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); - } - function checkPropertyAccessChain(node, checkMode) { - const leftType = checkExpression(node.expression); - const nonOptionalType = getOptionalExpressionType(leftType, node.expression); - return propagateOptionalTypeMarker(checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullType(nonOptionalType, node.expression), node.name, checkMode), node, nonOptionalType !== leftType); - } - function checkQualifiedName(node, checkMode) { - const leftType = isPartOfTypeQuery(node) && isThisIdentifier(node.left) ? checkNonNullType(checkThisExpression(node.left), node.left) : checkNonNullExpression(node.left); - return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); - } - function isMethodAccessForCall(node) { - while (node.parent.kind === 217 /* ParenthesizedExpression */) { - node = node.parent; - } - return isCallOrNewExpression(node.parent) && node.parent.expression === node; - } - function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { - for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { - const { symbol } = containingClass; - const name = getSymbolNameForPrivateIdentifier(symbol, propName); - const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); - if (prop) { - return prop; - } - } - } - function checkGrammarPrivateIdentifierExpression(privId) { - if (!getContainingClass(privId)) { - return grammarErrorOnNode(privId, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - } - if (!isForInStatement(privId.parent)) { - if (!isExpressionNode(privId)) { - return grammarErrorOnNode(privId, Diagnostics.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); - } - const isInOperation = isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 103 /* InKeyword */; - if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) { - return grammarErrorOnNode(privId, Diagnostics.Cannot_find_name_0, idText(privId)); - } - } - return false; - } - function checkPrivateIdentifierExpression(privId) { - checkGrammarPrivateIdentifierExpression(privId); - const symbol = getSymbolForPrivateIdentifierExpression(privId); - if (symbol) { - markPropertyAsReferenced( - symbol, - /*nodeForCheckWriteOnly*/ - void 0, - /*isSelfTypeAccess*/ - false - ); - } - return anyType; - } - function getSymbolForPrivateIdentifierExpression(privId) { - if (!isExpressionNode(privId)) { - return void 0; - } - const links = getNodeLinks(privId); - if (links.resolvedSymbol === void 0) { - links.resolvedSymbol = lookupSymbolForPrivateIdentifierDeclaration(privId.escapedText, privId); - } - return links.resolvedSymbol; - } - function getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) { - return getPropertyOfType(leftType, lexicallyScopedIdentifier.escapedName); - } - function checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedIdentifier) { - let propertyOnType; - const properties = getPropertiesOfType(leftType); - if (properties) { - forEach(properties, (symbol) => { - const decl = symbol.valueDeclaration; - if (decl && isNamedDeclaration(decl) && isPrivateIdentifier(decl.name) && decl.name.escapedText === right.escapedText) { - propertyOnType = symbol; - return true; - } - }); - } - const diagName = diagnosticName(right); - if (propertyOnType) { - const typeValueDecl = Debug.checkDefined(propertyOnType.valueDeclaration); - const typeClass = Debug.checkDefined(getContainingClass(typeValueDecl)); - if (lexicallyScopedIdentifier == null ? void 0 : lexicallyScopedIdentifier.valueDeclaration) { - const lexicalValueDecl = lexicallyScopedIdentifier.valueDeclaration; - const lexicalClass = getContainingClass(lexicalValueDecl); - Debug.assert(!!lexicalClass); - if (findAncestor(lexicalClass, (n) => typeClass === n)) { - const diagnostic = error( - right, - Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, - diagName, - typeToString(leftType) - ); - addRelatedInfo( - diagnostic, - createDiagnosticForNode( - lexicalValueDecl, - Diagnostics.The_shadowing_declaration_of_0_is_defined_here, - diagName - ), - createDiagnosticForNode( - typeValueDecl, - Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, - diagName - ) - ); - return true; - } - } - error( - right, - Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, - diagName, - diagnosticName(typeClass.name || anon) - ); - return true; - } - return false; - } - function isThisPropertyAccessInConstructor(node, prop) { - return (isConstructorDeclaredProperty(prop) || isThisProperty(node) && isAutoTypedProperty(prop)) && getThisContainer( - node, - /*includeArrowFunctions*/ - true, - /*includeClassComputedPropertyName*/ - false - ) === getDeclaringConstructor(prop); - } - function checkPropertyAccessExpressionOrQualifiedName(node, left, leftType, right, checkMode, writeOnly) { - const parentSymbol = getNodeLinks(left).resolvedSymbol; - const assignmentKind = getAssignmentTargetKind(node); - const apparentType = getApparentType(assignmentKind !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(leftType) : leftType); - const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType; - let prop; - if (isPrivateIdentifier(right)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { - if (assignmentKind !== 0 /* None */) { - checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */); - } - if (assignmentKind !== 1 /* Definite */) { - checkExternalEmitHelpers(node, 524288 /* ClassPrivateFieldGet */); - } - } - const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right); - if (assignmentKind && lexicallyScopedSymbol && lexicallyScopedSymbol.valueDeclaration && isMethodDeclaration(lexicallyScopedSymbol.valueDeclaration)) { - grammarErrorOnNode(right, Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, idText(right)); - } - if (isAnyLike) { - if (lexicallyScopedSymbol) { - return isErrorType(apparentType) ? errorType : apparentType; - } - if (getContainingClassExcludingClassDecorators(right) === void 0) { - grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - return anyType; - } - } - prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); - if (prop === void 0) { - if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { - return errorType; - } - const containingClass = getContainingClassExcludingClassDecorators(right); - if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { - grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); - } - } else { - const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); - if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { - error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); - } - } - } else { - if (isAnyLike) { - if (isIdentifier(left) && parentSymbol) { - markLinkedReferences( - node, - 2 /* Property */, - /*propSymbol*/ - void 0, - leftType - ); - } - return isErrorType(apparentType) ? errorType : apparentType; - } - prop = getPropertyOfType( - apparentType, - right.escapedText, - /*skipObjectFunctionPropertyAugment*/ - isConstEnumObjectType(apparentType), - /*includeTypeOnlyMembers*/ - node.kind === 166 /* QualifiedName */ - ); - } - markLinkedReferences(node, 2 /* Property */, prop, leftType); - let propType; - if (!prop) { - const indexInfo = !isPrivateIdentifier(right) && (assignmentKind === 0 /* None */ || !isGenericObjectType(leftType) || isThisTypeParameter(leftType)) ? getApplicableIndexInfoForName(apparentType, right.escapedText) : void 0; - if (!(indexInfo && indexInfo.type)) { - const isUncheckedJS = isUncheckedJSSuggestion( - node, - leftType.symbol, - /*excludeClasses*/ - true - ); - if (!isUncheckedJS && isJSLiteralType(leftType)) { - return anyType; - } - if (leftType.symbol === globalThisSymbol) { - if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */) { - error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); - } else if (noImplicitAny) { - error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); - } - return anyType; - } - if (right.escapedText && !checkAndReportErrorForExtendingInterface(node)) { - reportNonexistentProperty(right, isThisTypeParameter(leftType) ? apparentType : leftType, isUncheckedJS); - } - return errorType; - } - if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) { - error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); - } - propType = indexInfo.type; - if (compilerOptions.noUncheckedIndexedAccess && getAssignmentTargetKind(node) !== 1 /* Definite */) { - propType = getUnionType([propType, missingType]); - } - if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { - error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); - } - if (indexInfo.declaration && isDeprecatedDeclaration(indexInfo.declaration)) { - addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); - } - } else { - const targetPropSymbol = resolveAliasWithDeprecationCheck(prop, right); - if (isDeprecatedSymbol(targetPropSymbol) && isUncalledFunctionReference(node, targetPropSymbol) && targetPropSymbol.declarations) { - addDeprecatedSuggestion(right, targetPropSymbol.declarations, right.escapedText); - } - checkPropertyNotUsedBeforeDeclaration(prop, node, right); - markPropertyAsReferenced(prop, node, isSelfTypeAccess(left, parentSymbol)); - getNodeLinks(node).resolvedSymbol = prop; - checkPropertyAccessibility(node, left.kind === 108 /* SuperKeyword */, isWriteAccess(node), apparentType, prop); - if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) { - error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); - return errorType; - } - propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writeOnly || isWriteOnlyAccess(node) ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); - } - return getFlowTypeOfAccessExpression(node, prop, propType, right, checkMode); - } - function isUncheckedJSSuggestion(node, suggestion, excludeClasses) { - var _a; - const file = getSourceFileOfNode(node); - if (file) { - if (compilerOptions.checkJs === void 0 && file.checkJsDirective === void 0 && (file.scriptKind === 1 /* JS */ || file.scriptKind === 2 /* JSX */)) { - const declarationFile = forEach(suggestion == null ? void 0 : suggestion.declarations, getSourceFileOfNode); - const suggestionHasNoExtendsOrDecorators = !(suggestion == null ? void 0 : suggestion.valueDeclaration) || !isClassLike(suggestion.valueDeclaration) || ((_a = suggestion.valueDeclaration.heritageClauses) == null ? void 0 : _a.length) || classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - suggestion.valueDeclaration - ); - return !(file !== declarationFile && !!declarationFile && isGlobalSourceFile(declarationFile)) && !(excludeClasses && suggestion && suggestion.flags & 32 /* Class */ && suggestionHasNoExtendsOrDecorators) && !(!!node && excludeClasses && isPropertyAccessExpression(node) && node.expression.kind === 110 /* ThisKeyword */ && suggestionHasNoExtendsOrDecorators); - } - } - return false; - } - function getFlowTypeOfAccessExpression(node, prop, propType, errorNode, checkMode) { - const assignmentKind = getAssignmentTargetKind(node); - if (assignmentKind === 1 /* Definite */) { - return removeMissingType(propType, !!(prop && prop.flags & 16777216 /* Optional */)); - } - if (prop && !(prop.flags & (3 /* Variable */ | 4 /* Property */ | 98304 /* Accessor */)) && !(prop.flags & 8192 /* Method */ && propType.flags & 1048576 /* Union */) && !isDuplicatedCommonJSExport(prop.declarations)) { - return propType; - } - if (propType === autoType) { - return getFlowTypeOfProperty(node, prop); - } - propType = getNarrowableTypeForReference(propType, node, checkMode); - let assumeUninitialized = false; - if (strictNullChecks && strictPropertyInitialization && isAccessExpression(node) && node.expression.kind === 110 /* ThisKeyword */) { - const declaration = prop && prop.valueDeclaration; - if (declaration && isPropertyWithoutInitializer(declaration)) { - if (!isStatic(declaration)) { - const flowContainer = getControlFlowContainer(node); - if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { - assumeUninitialized = true; - } - } - } - } else if (strictNullChecks && prop && prop.valueDeclaration && isPropertyAccessExpression(prop.valueDeclaration) && getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) && getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration)) { - assumeUninitialized = true; - } - const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType); - if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) { - error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); - return propType; - } - return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; - } - function checkPropertyNotUsedBeforeDeclaration(prop, node, right) { - const { valueDeclaration } = prop; - if (!valueDeclaration || getSourceFileOfNode(node).isDeclarationFile) { - return; - } - let diagnosticMessage; - const declarationName = idText(right); - if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 256 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { - diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); - } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { - diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); - } - if (diagnosticMessage) { - addRelatedInfo(diagnosticMessage, createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here, declarationName)); - } - } - function isInPropertyInitializerOrClassStaticBlock(node) { - return !!findAncestor(node, (node2) => { - switch (node2.kind) { - case 172 /* PropertyDeclaration */: - return true; - case 303 /* PropertyAssignment */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 305 /* SpreadAssignment */: - case 167 /* ComputedPropertyName */: - case 239 /* TemplateSpan */: - case 294 /* JsxExpression */: - case 291 /* JsxAttribute */: - case 292 /* JsxAttributes */: - case 293 /* JsxSpreadAttribute */: - case 286 /* JsxOpeningElement */: - case 233 /* ExpressionWithTypeArguments */: - case 298 /* HeritageClause */: - return false; - case 219 /* ArrowFunction */: - case 244 /* ExpressionStatement */: - return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; - default: - return isExpressionNode(node2) ? false : "quit"; - } - }); - } - function isPropertyDeclaredInAncestorClass(prop) { - if (!(prop.parent.flags & 32 /* Class */)) { - return false; - } - let classType = getTypeOfSymbol(prop.parent); - while (true) { - classType = classType.symbol && getSuperClass(classType); - if (!classType) { - return false; - } - const superProperty = getPropertyOfType(classType, prop.escapedName); - if (superProperty && superProperty.valueDeclaration) { - return true; - } - } - } - function getSuperClass(classType) { - const x = getBaseTypes(classType); - if (x.length === 0) { - return void 0; - } - return getIntersectionType(x); - } - function reportNonexistentProperty(propNode, containingType, isUncheckedJS) { - const links = getNodeLinks(propNode); - const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set()); - const key = `${getTypeId(containingType)}|${isUncheckedJS}`; - if (cache.has(key)) { - return; - } - cache.add(key); - let errorInfo; - let relatedInfo; - if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) { - for (const subtype of containingType.types) { - if (!getPropertyOfType(subtype, propNode.escapedText) && !getApplicableIndexInfoForName(subtype, propNode.escapedText)) { - errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(subtype)); - break; - } - } - } - if (typeHasStaticProperty(propNode.escapedText, containingType)) { - const propName = declarationNameToString(propNode); - const typeName = typeToString(containingType); - errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "." + propName); - } else { - const promisedType = getPromisedTypeOfPromise(containingType); - if (promisedType && getPropertyOfType(promisedType, propNode.escapedText)) { - errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(containingType)); - relatedInfo = createDiagnosticForNode(propNode, Diagnostics.Did_you_forget_to_use_await); - } else { - const missingProperty = declarationNameToString(propNode); - const container = typeToString(containingType); - const libSuggestion = getSuggestedLibForNonExistentProperty(missingProperty, containingType); - if (libSuggestion !== void 0) { - errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.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, missingProperty, container, libSuggestion); - } else { - const suggestion = getSuggestedSymbolForNonexistentProperty(propNode, containingType); - if (suggestion !== void 0) { - const suggestedName = symbolName(suggestion); - const message = isUncheckedJS ? Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2; - errorInfo = chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName); - relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestedName); - } else { - const diagnostic = containerSeemsToBeEmptyDomElement(containingType) ? Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : Diagnostics.Property_0_does_not_exist_on_type_1; - errorInfo = chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container); - } - } - } - } - const resultDiagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(propNode), propNode, errorInfo); - if (relatedInfo) { - addRelatedInfo(resultDiagnostic, relatedInfo); - } - addErrorOrSuggestion(!isUncheckedJS || errorInfo.code !== Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, resultDiagnostic); - } - function containerSeemsToBeEmptyDomElement(containingType) { - return compilerOptions.lib && !compilerOptions.lib.includes("dom") && everyContainedType(containingType, (type) => type.symbol && /^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) && isEmptyObjectType(containingType); - } - function typeHasStaticProperty(propName, containingType) { - const prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName); - return prop !== void 0 && !!prop.valueDeclaration && isStatic(prop.valueDeclaration); - } - function getSuggestedLibForNonExistentName(name) { - const missingName = diagnosticName(name); - const allFeatures = getScriptTargetFeatures(); - const typeFeatures = allFeatures.get(missingName); - return typeFeatures && firstIterator(typeFeatures.keys()); - } - function getSuggestedLibForNonExistentProperty(missingProperty, containingType) { - const container = getApparentType(containingType).symbol; - if (!container) { - return void 0; - } - const containingTypeName = symbolName(container); - const allFeatures = getScriptTargetFeatures(); - const typeFeatures = allFeatures.get(containingTypeName); - if (typeFeatures) { - for (const [libTarget, featuresOfType] of typeFeatures) { - if (contains(featuresOfType, missingProperty)) { - return libTarget; - } - } - } - } - function getSuggestedSymbolForNonexistentClassMember(name, baseType) { - return getSpellingSuggestionForName(name, getPropertiesOfType(baseType), 106500 /* ClassMember */); - } - function getSuggestedSymbolForNonexistentProperty(name, containingType) { - let props = getPropertiesOfType(containingType); - if (typeof name !== "string") { - const parent = name.parent; - if (isPropertyAccessExpression(parent)) { - props = filter(props, (prop) => isValidPropertyAccessForCompletions(parent, containingType, prop)); - } - name = idText(name); - } - return getSpellingSuggestionForName(name, props, 111551 /* Value */); - } - function getSuggestedSymbolForNonexistentJSXAttribute(name, containingType) { - const strName = isString(name) ? name : idText(name); - const properties = getPropertiesOfType(containingType); - const jsxSpecific = strName === "for" ? find(properties, (x) => symbolName(x) === "htmlFor") : strName === "class" ? find(properties, (x) => symbolName(x) === "className") : void 0; - return jsxSpecific ?? getSpellingSuggestionForName(strName, properties, 111551 /* Value */); - } - function getSuggestionForNonexistentProperty(name, containingType) { - const suggestion = getSuggestedSymbolForNonexistentProperty(name, containingType); - return suggestion && symbolName(suggestion); - } - function getSuggestionForSymbolNameLookup(symbols, name, meaning) { - const symbol = getSymbol(symbols, name, meaning); - if (symbol) return symbol; - let candidates; - if (symbols === globals) { - const primitives = mapDefined( - ["string", "number", "boolean", "object", "bigint", "symbol"], - (s) => symbols.has(s.charAt(0).toUpperCase() + s.slice(1)) ? createSymbol(524288 /* TypeAlias */, s) : void 0 - ); - candidates = primitives.concat(arrayFrom(symbols.values())); - } else { - candidates = arrayFrom(symbols.values()); - } - return getSpellingSuggestionForName(unescapeLeadingUnderscores(name), candidates, meaning); - } - function getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning) { - Debug.assert(outerName !== void 0, "outername should always be defined"); - const result = resolveNameForSymbolSuggestion( - location, - outerName, - meaning, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false, - /*excludeGlobals*/ - false - ); - return result; - } - function getSuggestedSymbolForNonexistentModule(name, targetModule) { - return targetModule.exports && getSpellingSuggestionForName(idText(name), getExportsOfModuleAsArray(targetModule), 2623475 /* ModuleMember */); - } - function getSuggestionForNonexistentIndexSignature(objectType, expr, keyedType) { - function hasProp(name) { - const prop = getPropertyOfObjectType(objectType, name); - if (prop) { - const s = getSingleCallSignature(getTypeOfSymbol(prop)); - return !!s && getMinArgumentCount(s) >= 1 && isTypeAssignableTo(keyedType, getTypeAtPosition(s, 0)); - } - return false; - } - const suggestedMethod = isAssignmentTarget(expr) ? "set" : "get"; - if (!hasProp(suggestedMethod)) { - return void 0; - } - let suggestion = tryGetPropertyAccessOrIdentifierToString(expr.expression); - if (suggestion === void 0) { - suggestion = suggestedMethod; - } else { - suggestion += "." + suggestedMethod; - } - return suggestion; - } - function getSuggestedTypeForNonexistentStringLiteralType(source, target) { - const candidates = target.types.filter((type) => !!(type.flags & 128 /* StringLiteral */)); - return getSpellingSuggestion(source.value, candidates, (type) => type.value); - } - function getSpellingSuggestionForName(name, symbols, meaning) { - return getSpellingSuggestion(name, symbols, getCandidateName); - function getCandidateName(candidate) { - const candidateName = symbolName(candidate); - if (startsWith(candidateName, '"')) { - return void 0; - } - if (candidate.flags & meaning) { - return candidateName; - } - if (candidate.flags & 2097152 /* Alias */) { - const alias = tryResolveAlias(candidate); - if (alias && alias.flags & meaning) { - return candidateName; - } - } - return void 0; - } - } - function markPropertyAsReferenced(prop, nodeForCheckWriteOnly, isSelfTypeAccess2) { - const valueDeclaration = prop && prop.flags & 106500 /* ClassMember */ && prop.valueDeclaration; - if (!valueDeclaration) { - return; - } - const hasPrivateModifier = hasEffectiveModifier(valueDeclaration, 2 /* Private */); - const hasPrivateIdentifier = prop.valueDeclaration && isNamedDeclaration(prop.valueDeclaration) && isPrivateIdentifier(prop.valueDeclaration.name); - if (!hasPrivateModifier && !hasPrivateIdentifier) { - return; - } - if (nodeForCheckWriteOnly && isWriteOnlyAccess(nodeForCheckWriteOnly) && !(prop.flags & 65536 /* SetAccessor */)) { - return; - } - if (isSelfTypeAccess2) { - const containingMethod = findAncestor(nodeForCheckWriteOnly, isFunctionLikeDeclaration); - if (containingMethod && containingMethod.symbol === prop) { - return; - } - } - (getCheckFlags(prop) & 1 /* Instantiated */ ? getSymbolLinks(prop).target : prop).isReferenced = -1 /* All */; - } - function isSelfTypeAccess(name, parent) { - return name.kind === 110 /* ThisKeyword */ || !!parent && isEntityNameExpression(name) && parent === getResolvedSymbol(getFirstIdentifier(name)); - } - function isValidPropertyAccess(node, propertyName) { - switch (node.kind) { - case 211 /* PropertyAccessExpression */: - return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); - case 166 /* QualifiedName */: - return isValidPropertyAccessWithType( - node, - /*isSuper*/ - false, - propertyName, - getWidenedType(checkExpression(node.left)) - ); - case 205 /* ImportType */: - return isValidPropertyAccessWithType( - node, - /*isSuper*/ - false, - propertyName, - getTypeFromTypeNode(node) - ); - } - } - function isValidPropertyAccessForCompletions(node, type, property) { - return isPropertyAccessible( - node, - node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, - /*isWrite*/ - false, - type, - property - ); - } - function isValidPropertyAccessWithType(node, isSuper, propertyName, type) { - if (isTypeAny(type)) { - return true; - } - const prop = getPropertyOfType(type, propertyName); - return !!prop && isPropertyAccessible( - node, - isSuper, - /*isWrite*/ - false, - type, - prop - ); - } - function isPropertyAccessible(node, isSuper, isWrite, containingType, property) { - if (isTypeAny(containingType)) { - return true; - } - if (property.valueDeclaration && isPrivateIdentifierClassElementDeclaration(property.valueDeclaration)) { - const declClass = getContainingClass(property.valueDeclaration); - return !isOptionalChain(node) && !!findAncestor(node, (parent) => parent === declClass); - } - return checkPropertyAccessibilityAtLocation(node, isSuper, isWrite, containingType, property); - } - function getForInVariableSymbol(node) { - const initializer = node.initializer; - if (initializer.kind === 261 /* VariableDeclarationList */) { - const variable = initializer.declarations[0]; - if (variable && !isBindingPattern(variable.name)) { - return getSymbolOfDeclaration(variable); - } - } else if (initializer.kind === 80 /* Identifier */) { - return getResolvedSymbol(initializer); - } - return void 0; - } - function hasNumericPropertyNames(type) { - return getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, numberType); - } - function isForInVariableForNumericPropertyNames(expr) { - const e = skipParentheses(expr); - if (e.kind === 80 /* Identifier */) { - const symbol = getResolvedSymbol(e); - if (symbol.flags & 3 /* Variable */) { - let child = expr; - let node = expr.parent; - while (node) { - if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { - return true; - } - child = node; - node = node.parent; - } - } - } - return false; - } - function checkIndexedAccess(node, checkMode) { - return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); - } - function checkElementAccessChain(node, checkMode) { - const exprType = checkExpression(node.expression); - const nonOptionalType = getOptionalExpressionType(exprType, node.expression); - return propagateOptionalTypeMarker(checkElementAccessExpression(node, checkNonNullType(nonOptionalType, node.expression), checkMode), node, nonOptionalType !== exprType); - } - function checkElementAccessExpression(node, exprType, checkMode) { - const objectType = getAssignmentTargetKind(node) !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(exprType) : exprType; - const indexExpression = node.argumentExpression; - const indexType = checkExpression(indexExpression); - if (isErrorType(objectType) || objectType === silentNeverType) { - return objectType; - } - if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) { - error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); - return errorType; - } - const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType; - const assignmentTargetKind = getAssignmentTargetKind(node); - let accessFlags; - if (assignmentTargetKind === 0 /* None */) { - accessFlags = 32 /* ExpressionPosition */; - } else { - accessFlags = 4 /* Writing */ | (isGenericObjectType(objectType) && !isThisTypeParameter(objectType) ? 2 /* NoIndexSignatures */ : 0); - if (assignmentTargetKind === 2 /* Compound */) { - accessFlags |= 32 /* ExpressionPosition */; - } - } - const indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType; - return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node); - } - function callLikeExpressionMayHaveTypeArguments(node) { - return isCallOrNewExpression(node) || isTaggedTemplateExpression(node) || isJsxOpeningLikeElement(node); - } - function resolveUntypedCall(node) { - if (callLikeExpressionMayHaveTypeArguments(node)) { - forEach(node.typeArguments, checkSourceElement); - } - if (node.kind === 215 /* TaggedTemplateExpression */) { - checkExpression(node.template); - } else if (isJsxOpeningLikeElement(node)) { - checkExpression(node.attributes); - } else if (isBinaryExpression(node)) { - checkExpression(node.left); - } else if (isCallOrNewExpression(node)) { - forEach(node.arguments, (argument) => { - checkExpression(argument); - }); - } - return anySignature; - } - function resolveErrorCall(node) { - resolveUntypedCall(node); - return unknownSignature; - } - function reorderCandidates(signatures, result, callChainFlags) { - let lastParent; - let lastSymbol; - let cutoffIndex = 0; - let index; - let specializedIndex = -1; - let spliceIndex; - Debug.assert(!result.length); - for (const signature of signatures) { - const symbol = signature.declaration && getSymbolOfDeclaration(signature.declaration); - const parent = signature.declaration && signature.declaration.parent; - if (!lastSymbol || symbol === lastSymbol) { - if (lastParent && parent === lastParent) { - index = index + 1; - } else { - lastParent = parent; - index = cutoffIndex; - } - } else { - index = cutoffIndex = result.length; - lastParent = parent; - } - lastSymbol = symbol; - if (signatureHasLiteralTypes(signature)) { - specializedIndex++; - spliceIndex = specializedIndex; - cutoffIndex++; - } else { - spliceIndex = index; - } - result.splice(spliceIndex, 0, callChainFlags ? getOptionalCallSignature(signature, callChainFlags) : signature); - } - } - function isSpreadArgument(arg) { - return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); - } - function getSpreadArgumentIndex(args) { - return findIndex(args, isSpreadArgument); - } - function acceptsVoid(t) { - return !!(t.flags & 16384 /* Void */); - } - function acceptsVoidUndefinedUnknownOrAny(t) { - return !!(t.flags & (16384 /* Void */ | 32768 /* Undefined */ | 2 /* Unknown */ | 1 /* Any */)); - } - function hasCorrectArity(node, args, signature, signatureHelpTrailingComma = false) { - if (isJsxOpeningFragment(node)) return true; - let argCount; - let callIsIncomplete = false; - let effectiveParameterCount = getParameterCount(signature); - let effectiveMinimumArguments = getMinArgumentCount(signature); - if (node.kind === 215 /* TaggedTemplateExpression */) { - argCount = args.length; - if (node.template.kind === 228 /* TemplateExpression */) { - const lastSpan = last(node.template.templateSpans); - callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; - } else { - const templateLiteral = node.template; - Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); - callIsIncomplete = !!templateLiteral.isUnterminated; - } - } else if (node.kind === 170 /* Decorator */) { - argCount = getDecoratorArgumentCount(node, signature); - } else if (node.kind === 226 /* BinaryExpression */) { - argCount = 1; - } else if (isJsxOpeningLikeElement(node)) { - callIsIncomplete = node.attributes.end === node.end; - if (callIsIncomplete) { - return true; - } - argCount = effectiveMinimumArguments === 0 ? args.length : 1; - effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; - effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); - } else if (!node.arguments) { - Debug.assert(node.kind === 214 /* NewExpression */); - return getMinArgumentCount(signature) === 0; - } else { - argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; - callIsIncomplete = node.arguments.end === node.end; - const spreadArgIndex = getSpreadArgumentIndex(args); - if (spreadArgIndex >= 0) { - return spreadArgIndex >= getMinArgumentCount(signature) && (hasEffectiveRestParameter(signature) || spreadArgIndex < getParameterCount(signature)); - } - } - if (!hasEffectiveRestParameter(signature) && argCount > effectiveParameterCount) { - return false; - } - if (callIsIncomplete || argCount >= effectiveMinimumArguments) { - return true; - } - for (let i = argCount; i < effectiveMinimumArguments; i++) { - const type = getTypeAtPosition(signature, i); - if (filterType(type, isInJSFile(node) && !strictNullChecks ? acceptsVoidUndefinedUnknownOrAny : acceptsVoid).flags & 131072 /* Never */) { - return false; - } - } - return true; - } - function hasCorrectTypeArgumentArity(signature, typeArguments) { - const numTypeParameters = length(signature.typeParameters); - const minTypeArgumentCount = getMinTypeArgumentCount(signature.typeParameters); - return !some(typeArguments) || typeArguments.length >= minTypeArgumentCount && typeArguments.length <= numTypeParameters; - } - function isInstantiatedGenericParameter(signature, pos) { - let type; - return !!(signature.target && (type = tryGetTypeAtPosition(signature.target, pos)) && isGenericType(type)); - } - function getSingleCallSignature(type) { - return getSingleSignature( - type, - 0 /* Call */, - /*allowMembers*/ - false - ); - } - function getSingleCallOrConstructSignature(type) { - return getSingleSignature( - type, - 0 /* Call */, - /*allowMembers*/ - false - ) || getSingleSignature( - type, - 1 /* Construct */, - /*allowMembers*/ - false - ); - } - function getSingleSignature(type, kind, allowMembers) { - if (type.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type); - if (allowMembers || resolved.properties.length === 0 && resolved.indexInfos.length === 0) { - if (kind === 0 /* Call */ && resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0) { - return resolved.callSignatures[0]; - } - if (kind === 1 /* Construct */ && resolved.constructSignatures.length === 1 && resolved.callSignatures.length === 0) { - return resolved.constructSignatures[0]; - } - } - } - return void 0; - } - function instantiateSignatureInContextOf(signature, contextualSignature, inferenceContext, compareTypes) { - const context = createInferenceContext(getTypeParametersForMapper(signature), signature, 0 /* None */, compareTypes); - const restType = getEffectiveRestType(contextualSignature); - const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper); - const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature; - applyToParameterTypes(sourceSignature, signature, (source, target) => { - inferTypes(context.inferences, source, target); - }); - if (!inferenceContext) { - applyToReturnTypes(contextualSignature, signature, (source, target) => { - inferTypes(context.inferences, source, target, 128 /* ReturnType */); - }); - } - return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration)); - } - function inferJsxTypeArguments(node, signature, checkMode, context) { - const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node); - const checkAttrType = checkExpressionWithContextualType(node.attributes, paramType, context, checkMode); - inferTypes(context.inferences, checkAttrType, paramType); - return getInferredTypes(context); - } - function getThisArgumentType(thisArgumentNode) { - if (!thisArgumentNode) { - return voidType; - } - const thisArgumentType = checkExpression(thisArgumentNode); - return isRightSideOfInstanceofExpression(thisArgumentNode) ? thisArgumentType : isOptionalChainRoot(thisArgumentNode.parent) ? getNonNullableType(thisArgumentType) : isOptionalChain(thisArgumentNode.parent) ? removeOptionalTypeMarker(thisArgumentType) : thisArgumentType; - } - function inferTypeArguments(node, signature, args, checkMode, context) { - if (isJsxOpeningLikeElement(node)) { - return inferJsxTypeArguments(node, signature, checkMode, context); - } - if (node.kind !== 170 /* Decorator */ && node.kind !== 226 /* BinaryExpression */) { - const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); - const contextualType = getContextualType(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); - if (contextualType) { - const inferenceTargetType = getReturnTypeOfSignature(signature); - if (couldContainTypeVariables(inferenceTargetType)) { - const outerContext = getInferenceContext(node); - const isFromBindingPattern = !skipBindingPatterns && getContextualType(node, 8 /* SkipBindingPatterns */) !== contextualType; - if (!isFromBindingPattern) { - const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */)); - const instantiatedType = instantiateType(contextualType, outerMapper); - const contextualSignature = getSingleCallSignature(instantiatedType); - const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType; - inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */); - } - const returnContext = createInferenceContext(signature.typeParameters, signature, context.flags); - const returnSourceType = instantiateType(contextualType, outerContext && outerContext.returnMapper); - inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType); - context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : void 0; - } - } - } - const restType = getNonArrayRestType(signature); - const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; - if (restType && restType.flags & 262144 /* TypeParameter */) { - const info = find(context.inferences, (info2) => info2.typeParameter === restType); - if (info) { - info.impliedArity = findIndex(args, isSpreadArgument, argCount) < 0 ? args.length - argCount : void 0; - } - } - const thisType = getThisTypeOfSignature(signature); - if (thisType && couldContainTypeVariables(thisType)) { - const thisArgumentNode = getThisArgumentOfCall(node); - inferTypes(context.inferences, getThisArgumentType(thisArgumentNode), thisType); - } - for (let i = 0; i < argCount; i++) { - const arg = args[i]; - if (arg.kind !== 232 /* OmittedExpression */) { - const paramType = getTypeAtPosition(signature, i); - if (couldContainTypeVariables(paramType)) { - const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); - inferTypes(context.inferences, argType, paramType); - } - } - } - if (restType && couldContainTypeVariables(restType)) { - const spreadType = getSpreadArgumentType(args, argCount, args.length, restType, context, checkMode); - inferTypes(context.inferences, spreadType, restType); - } - return getInferredTypes(context); - } - function getMutableArrayOrTupleType(type) { - return type.flags & 1048576 /* Union */ ? mapType(type, getMutableArrayOrTupleType) : type.flags & 1 /* Any */ || isMutableArrayOrTuple(getBaseConstraintOfType(type) || type) ? type : isTupleType(type) ? createTupleType( - getElementTypes(type), - type.target.elementFlags, - /*readonly*/ - false, - type.target.labeledElementDeclarations - ) : createTupleType([type], [8 /* Variadic */]); - } - function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) { - const inConstContext = isConstTypeVariable(restType); - if (index >= argCount - 1) { - const arg = args[argCount - 1]; - if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); - if (isArrayLikeType(spreadType)) { - return getMutableArrayOrTupleType(spreadType); - } - return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); - } - } - const types = []; - const flags = []; - const names = []; - for (let i = index; i < argCount; i++) { - const arg = args[i]; - if (isSpreadArgument(arg)) { - const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); - if (isArrayLikeType(spreadType)) { - types.push(spreadType); - flags.push(8 /* Variadic */); - } else { - types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); - flags.push(4 /* Rest */); - } - } else { - const contextualType = isTupleType(restType) ? getContextualTypeForElementExpression(restType, i - index, argCount - index) || unknownType : getIndexedAccessType(restType, getNumberLiteralType(i - index), 256 /* Contextual */); - const argType = checkExpressionWithContextualType(arg, contextualType, context, checkMode); - const hasPrimitiveContextualType = inConstContext || maybeTypeOfKind(contextualType, 402784252 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */); - types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); - flags.push(1 /* Required */); - } - if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { - names.push(arg.tupleNameSource); - } else { - names.push(void 0); - } - } - return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names); - } - function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) { - const isJavascript = isInJSFile(signature.declaration); - const typeParameters = signature.typeParameters; - const typeArgumentTypes = fillMissingTypeArguments(map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isJavascript); - let mapper; - for (let i = 0; i < typeArgumentNodes.length; i++) { - Debug.assert(typeParameters[i] !== void 0, "Should not call checkTypeArguments with too many type arguments"); - const constraint = getConstraintOfTypeParameter(typeParameters[i]); - if (constraint) { - const errorInfo = reportErrors2 && headMessage ? () => chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Type_0_does_not_satisfy_the_constraint_1 - ) : void 0; - const typeArgumentHeadMessage = headMessage || Diagnostics.Type_0_does_not_satisfy_the_constraint_1; - if (!mapper) { - mapper = createTypeMapper(typeParameters, typeArgumentTypes); - } - const typeArgument = typeArgumentTypes[i]; - if (!checkTypeAssignableTo( - typeArgument, - getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), - reportErrors2 ? typeArgumentNodes[i] : void 0, - typeArgumentHeadMessage, - errorInfo - )) { - return void 0; - } - } - } - return typeArgumentTypes; - } - function getJsxReferenceKind(node) { - if (isJsxIntrinsicTagName(node.tagName)) { - return 2 /* Mixed */; - } - const tagType = getApparentType(checkExpression(node.tagName)); - if (length(getSignaturesOfType(tagType, 1 /* Construct */))) { - return 0 /* Component */; - } - if (length(getSignaturesOfType(tagType, 0 /* Call */))) { - return 1 /* Function */; - } - return 2 /* Mixed */; - } - function checkApplicableSignatureForJsxCallLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer) { - const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node); - const attributesType = isJsxOpeningFragment(node) ? createJsxAttributesTypeFromAttributesProperty(node) : checkExpressionWithContextualType( - node.attributes, - paramType, - /*inferenceContext*/ - void 0, - checkMode - ); - const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; - return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( - checkAttributesType, - paramType, - relation, - reportErrors2 ? isJsxOpeningFragment(node) ? node : node.tagName : void 0, - isJsxOpeningFragment(node) ? void 0 : node.attributes, - /*headMessage*/ - void 0, - containingMessageChain, - errorOutputContainer - ); - function checkTagNameDoesNotExpectTooManyArguments() { - var _a; - if (getJsxNamespaceContainerForImplicitImport(node)) { - return true; - } - const tagType = (isJsxOpeningElement(node) || isJsxSelfClosingElement(node)) && !(isJsxIntrinsicTagName(node.tagName) || isJsxNamespacedName(node.tagName)) ? checkExpression(node.tagName) : void 0; - if (!tagType) { - return true; - } - const tagCallSignatures = getSignaturesOfType(tagType, 0 /* Call */); - if (!length(tagCallSignatures)) { - return true; - } - const factory2 = getJsxFactoryEntity(node); - if (!factory2) { - return true; - } - const factorySymbol = resolveEntityName( - factory2, - 111551 /* Value */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - false, - node - ); - if (!factorySymbol) { - return true; - } - const factoryType = getTypeOfSymbol(factorySymbol); - const callSignatures = getSignaturesOfType(factoryType, 0 /* Call */); - if (!length(callSignatures)) { - return true; - } - let hasFirstParamSignatures = false; - let maxParamCount = 0; - for (const sig of callSignatures) { - const firstparam = getTypeAtPosition(sig, 0); - const signaturesOfParam = getSignaturesOfType(firstparam, 0 /* Call */); - if (!length(signaturesOfParam)) continue; - for (const paramSig of signaturesOfParam) { - hasFirstParamSignatures = true; - if (hasEffectiveRestParameter(paramSig)) { - return true; - } - const paramCount = getParameterCount(paramSig); - if (paramCount > maxParamCount) { - maxParamCount = paramCount; - } - } - } - if (!hasFirstParamSignatures) { - return true; - } - let absoluteMinArgCount = Infinity; - for (const tagSig of tagCallSignatures) { - const tagRequiredArgCount = getMinArgumentCount(tagSig); - if (tagRequiredArgCount < absoluteMinArgCount) { - absoluteMinArgCount = tagRequiredArgCount; - } - } - if (absoluteMinArgCount <= maxParamCount) { - return true; - } - if (reportErrors2) { - const tagName = node.tagName; - const diag2 = createDiagnosticForNode(tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount); - const tagNameDeclaration = (_a = getSymbolAtLocation(tagName)) == null ? void 0 : _a.valueDeclaration; - if (tagNameDeclaration) { - addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(tagName))); - } - if (errorOutputContainer && errorOutputContainer.skipLogging) { - (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); - } - if (!errorOutputContainer.skipLogging) { - diagnostics.add(diag2); - } - } - return false; - } - } - function getEffectiveCheckNode(argument) { - const flags = isInJSFile(argument) ? 1 /* Parentheses */ | 32 /* Satisfies */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */ | 32 /* Satisfies */; - return skipOuterExpressions(argument, flags); - } - function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) { - const errorOutputContainer = { errors: void 0, skipLogging: true }; - if (isJsxCallLike(node)) { - if (!checkApplicableSignatureForJsxCallLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer)) { - Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "jsx should have errors when reporting errors"); - return errorOutputContainer.errors || emptyArray; - } - return void 0; - } - const thisType = getThisTypeOfSignature(signature); - if (thisType && thisType !== voidType && !(isNewExpression(node) || isCallExpression(node) && isSuperProperty(node.expression))) { - const thisArgumentNode = getThisArgumentOfCall(node); - const thisArgumentType = getThisArgumentType(thisArgumentNode); - const errorNode = reportErrors2 ? thisArgumentNode || node : void 0; - const headMessage2 = Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1; - if (!checkTypeRelatedTo(thisArgumentType, thisType, relation, errorNode, headMessage2, containingMessageChain, errorOutputContainer)) { - Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "this parameter should have errors when reporting errors"); - return errorOutputContainer.errors || emptyArray; - } - } - const headMessage = Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1; - const restType = getNonArrayRestType(signature); - const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; - for (let i = 0; i < argCount; i++) { - const arg = args[i]; - if (arg.kind !== 232 /* OmittedExpression */) { - const paramType = getTypeAtPosition(signature, i); - const argType = checkExpressionWithContextualType( - arg, - paramType, - /*inferenceContext*/ - void 0, - checkMode - ); - const regularArgType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(argType) : argType; - const checkArgType = inferenceContext ? instantiateType(regularArgType, inferenceContext.nonFixingMapper) : regularArgType; - const effectiveCheckArgumentNode = getEffectiveCheckNode(arg); - if (!checkTypeRelatedToAndOptionallyElaborate(checkArgType, paramType, relation, reportErrors2 ? effectiveCheckArgumentNode : void 0, effectiveCheckArgumentNode, headMessage, containingMessageChain, errorOutputContainer)) { - Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "parameter should have errors when reporting errors"); - maybeAddMissingAwaitInfo(arg, checkArgType, paramType); - return errorOutputContainer.errors || emptyArray; - } - } - } - if (restType) { - const spreadType = getSpreadArgumentType( - args, - argCount, - args.length, - restType, - /*context*/ - void 0, - checkMode - ); - const restArgCount = args.length - argCount; - const errorNode = !reportErrors2 ? void 0 : restArgCount === 0 ? node : restArgCount === 1 ? getEffectiveCheckNode(args[argCount]) : setTextRangePosEnd(createSyntheticExpression(node, spreadType), args[argCount].pos, args[args.length - 1].end); - if (!checkTypeRelatedTo( - spreadType, - restType, - relation, - errorNode, - headMessage, - /*containingMessageChain*/ - void 0, - errorOutputContainer - )) { - Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "rest parameter should have errors when reporting errors"); - maybeAddMissingAwaitInfo(errorNode, spreadType, restType); - return errorOutputContainer.errors || emptyArray; - } - } - return void 0; - function maybeAddMissingAwaitInfo(errorNode, source, target) { - if (errorNode && reportErrors2 && errorOutputContainer.errors && errorOutputContainer.errors.length) { - if (getAwaitedTypeOfPromise(target)) { - return; - } - const awaitedTypeOfSource = getAwaitedTypeOfPromise(source); - if (awaitedTypeOfSource && isTypeRelatedTo(awaitedTypeOfSource, target, relation)) { - addRelatedInfo(errorOutputContainer.errors[0], createDiagnosticForNode(errorNode, Diagnostics.Did_you_forget_to_use_await)); - } - } - } - } - function getThisArgumentOfCall(node) { - if (node.kind === 226 /* BinaryExpression */) { - return node.right; - } - const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; - if (expression) { - const callee = skipOuterExpressions(expression); - if (isAccessExpression(callee)) { - return callee.expression; - } - } - } - function createSyntheticExpression(parent, type, isSpread, tupleNameSource) { - const result = parseNodeFactory.createSyntheticExpression(type, isSpread, tupleNameSource); - setTextRange(result, parent); - setParent(result, parent); - return result; - } - function getEffectiveCallArguments(node) { - if (isJsxOpeningFragment(node)) { - return [createSyntheticExpression(node, emptyFreshJsxObjectType)]; - } - if (node.kind === 215 /* TaggedTemplateExpression */) { - const template = node.template; - const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; - if (template.kind === 228 /* TemplateExpression */) { - forEach(template.templateSpans, (span) => { - args2.push(span.expression); - }); - } - return args2; - } - if (node.kind === 170 /* Decorator */) { - return getEffectiveDecoratorArguments(node); - } - if (node.kind === 226 /* BinaryExpression */) { - return [node.left]; - } - if (isJsxOpeningLikeElement(node)) { - return node.attributes.properties.length > 0 || isJsxOpeningElement(node) && node.parent.children.length > 0 ? [node.attributes] : emptyArray; - } - const args = node.arguments || emptyArray; - const spreadIndex = getSpreadArgumentIndex(args); - if (spreadIndex >= 0) { - const effectiveArgs = args.slice(0, spreadIndex); - for (let i = spreadIndex; i < args.length; i++) { - const arg = args[i]; - const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); - if (spreadType && isTupleType(spreadType)) { - forEach(getElementTypes(spreadType), (t, i2) => { - var _a; - const flags = spreadType.target.elementFlags[i2]; - const syntheticArg = createSyntheticExpression(arg, flags & 4 /* Rest */ ? createArrayType(t) : t, !!(flags & 12 /* Variable */), (_a = spreadType.target.labeledElementDeclarations) == null ? void 0 : _a[i2]); - effectiveArgs.push(syntheticArg); - }); - } else { - effectiveArgs.push(arg); - } - } - return effectiveArgs; - } - return args; - } - function getEffectiveDecoratorArguments(node) { - const expr = node.expression; - const signature = getDecoratorCallSignature(node); - if (signature) { - const args = []; - for (const param of signature.parameters) { - const type = getTypeOfSymbol(param); - args.push(createSyntheticExpression(expr, type)); - } - return args; - } - return Debug.fail(); - } - function getDecoratorArgumentCount(node, signature) { - return compilerOptions.experimentalDecorators ? getLegacyDecoratorArgumentCount(node, signature) : ( - // Allow the runtime to oversupply arguments to an ES decorator as long as there's at least one parameter. - Math.min(Math.max(getParameterCount(signature), 1), 2) - ); - } - function getLegacyDecoratorArgumentCount(node, signature) { - switch (node.parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return 1; - case 172 /* PropertyDeclaration */: - return hasAccessorModifier(node.parent) ? 3 : 2; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return signature.parameters.length <= 2 ? 2 : 3; - case 169 /* Parameter */: - return 3; - default: - return Debug.fail(); - } - } - function getDiagnosticSpanForCallNode(node) { - const sourceFile = getSourceFileOfNode(node); - const { start, length: length2 } = getErrorSpanForNode(sourceFile, isPropertyAccessExpression(node.expression) ? node.expression.name : node.expression); - return { start, length: length2, sourceFile }; - } - function getDiagnosticForCallNode(node, message, ...args) { - if (isCallExpression(node)) { - const { sourceFile, start, length: length2 } = getDiagnosticSpanForCallNode(node); - if ("message" in message) { - return createFileDiagnostic(sourceFile, start, length2, message, ...args); - } - return createDiagnosticForFileFromMessageChain(sourceFile, message); - } else { - if ("message" in message) { - return createDiagnosticForNode(node, message, ...args); - } - return createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), node, message); - } - } - function getErrorNodeForCallNode(callLike) { - if (isCallOrNewExpression(callLike)) { - return isPropertyAccessExpression(callLike.expression) ? callLike.expression.name : callLike.expression; - } - if (isTaggedTemplateExpression(callLike)) { - return isPropertyAccessExpression(callLike.tag) ? callLike.tag.name : callLike.tag; - } - if (isJsxOpeningLikeElement(callLike)) { - return callLike.tagName; - } - return callLike; - } - function isPromiseResolveArityError(node) { - if (!isCallExpression(node) || !isIdentifier(node.expression)) return false; - const symbol = resolveName( - node.expression, - node.expression.escapedText, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - const decl = symbol == null ? void 0 : symbol.valueDeclaration; - if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) { - return false; - } - const globalPromiseSymbol = getGlobalPromiseConstructorSymbol( - /*reportErrors*/ - false - ); - if (!globalPromiseSymbol) return false; - const constructorSymbol = getSymbolAtLocation( - decl.parent.parent.expression, - /*ignoreErrors*/ - true - ); - return constructorSymbol === globalPromiseSymbol; - } - function getArgumentArityError(node, signatures, args, headMessage) { - var _a; - const spreadIndex = getSpreadArgumentIndex(args); - if (spreadIndex > -1) { - return createDiagnosticForNode(args[spreadIndex], Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter); - } - let min2 = Number.POSITIVE_INFINITY; - let max = Number.NEGATIVE_INFINITY; - let maxBelow = Number.NEGATIVE_INFINITY; - let minAbove = Number.POSITIVE_INFINITY; - let closestSignature; - for (const sig of signatures) { - const minParameter = getMinArgumentCount(sig); - const maxParameter = getParameterCount(sig); - if (minParameter < min2) { - min2 = minParameter; - closestSignature = sig; - } - max = Math.max(max, maxParameter); - if (minParameter < args.length && minParameter > maxBelow) maxBelow = minParameter; - if (args.length < maxParameter && maxParameter < minAbove) minAbove = maxParameter; - } - const hasRestParameter2 = some(signatures, hasEffectiveRestParameter); - const parameterRange = hasRestParameter2 ? min2 : min2 < max ? min2 + "-" + max : min2; - const isVoidPromiseError = !hasRestParameter2 && parameterRange === 1 && args.length === 0 && isPromiseResolveArityError(node); - if (isVoidPromiseError && isInJSFile(node)) { - return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); - } - const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; - if (min2 < args.length && args.length < max) { - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, - args.length, - maxBelow, - minAbove - ); - chain = chainDiagnosticMessages(chain, headMessage); - return getDiagnosticForCallNode(node, chain); - } - return getDiagnosticForCallNode(node, Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, args.length, maxBelow, minAbove); - } else if (args.length < min2) { - let diagnostic; - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - error2, - parameterRange, - args.length - ); - chain = chainDiagnosticMessages(chain, headMessage); - diagnostic = getDiagnosticForCallNode(node, chain); - } else { - diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length); - } - const parameter = (_a = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length]; - if (parameter) { - const messageAndArgs = isBindingPattern(parameter.name) ? [Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided] : isRestParameter(parameter) ? [Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided, idText(getFirstIdentifier(parameter.name))] : [Diagnostics.An_argument_for_0_was_not_provided, !parameter.name ? args.length : idText(getFirstIdentifier(parameter.name))]; - const parameterError = createDiagnosticForNode(parameter, ...messageAndArgs); - return addRelatedInfo(diagnostic, parameterError); - } - return diagnostic; - } else { - const errorSpan = factory.createNodeArray(args.slice(max)); - const pos = first(errorSpan).pos; - let end = last(errorSpan).end; - if (end === pos) { - end++; - } - setTextRangePosEnd(errorSpan, pos, end); - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - error2, - parameterRange, - args.length - ); - chain = chainDiagnosticMessages(chain, headMessage); - return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain); - } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length); - } - } - function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) { - const argCount = typeArguments.length; - if (signatures.length === 1) { - const sig = signatures[0]; - const min2 = getMinTypeArgumentCount(sig.typeParameters); - const max = length(sig.typeParameters); - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Expected_0_type_arguments_but_got_1, - min2 < max ? min2 + "-" + max : min2, - argCount - ); - chain = chainDiagnosticMessages(chain, headMessage); - return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); - } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, min2 < max ? min2 + "-" + max : min2, argCount); - } - let belowArgCount = -Infinity; - let aboveArgCount = Infinity; - for (const sig of signatures) { - const min2 = getMinTypeArgumentCount(sig.typeParameters); - const max = length(sig.typeParameters); - if (min2 > argCount) { - aboveArgCount = Math.min(aboveArgCount, min2); - } else if (max < argCount) { - belowArgCount = Math.max(belowArgCount, max); - } - } - if (belowArgCount !== -Infinity && aboveArgCount !== Infinity) { - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, - argCount, - belowArgCount, - aboveArgCount - ); - chain = chainDiagnosticMessages(chain, headMessage); - return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); - } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, argCount, belowArgCount, aboveArgCount); - } - if (headMessage) { - let chain = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Expected_0_type_arguments_but_got_1, - belowArgCount === -Infinity ? aboveArgCount : belowArgCount, - argCount - ); - chain = chainDiagnosticMessages(chain, headMessage); - return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); - } - return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); - } - function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { - const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; - const isDecorator2 = node.kind === 170 /* Decorator */; - const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); - const isJsxOpenFragment = isJsxOpeningFragment(node); - const isInstanceof = node.kind === 226 /* BinaryExpression */; - const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; - let candidatesForArgumentError; - let candidateForArgumentArityError; - let candidateForTypeArgumentError; - let result; - let argCheckMode = 0 /* Normal */; - let candidates = []; - let typeArguments; - if (!isDecorator2 && !isInstanceof && !isSuperCall(node) && !isJsxOpenFragment) { - typeArguments = node.typeArguments; - if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 108 /* SuperKeyword */) { - forEach(typeArguments, checkSourceElement); - } - } - candidates = candidatesOutArray || []; - reorderCandidates(signatures, candidates, callChainFlags); - if (!isJsxOpenFragment) { - Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); - } - const args = getEffectiveCallArguments(node); - const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; - if (!isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive)) { - argCheckMode = 4 /* SkipContextSensitive */; - } - const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; - if (candidates.length > 1) { - result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); - } - if (!result) { - result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); - } - const links = getNodeLinks(node); - if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) { - Debug.assert(links.resolvedSignature); - return links.resolvedSignature; - } - if (result) { - return result; - } - result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode); - links.resolvedSignature = result; - if (reportErrors2) { - if (!headMessage && isInstanceof) { - headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method; - } - if (candidatesForArgumentError) { - if (candidatesForArgumentError.length === 1 || candidatesForArgumentError.length > 3) { - const last2 = candidatesForArgumentError[candidatesForArgumentError.length - 1]; - let chain; - if (candidatesForArgumentError.length > 3) { - chain = chainDiagnosticMessages(chain, Diagnostics.The_last_overload_gave_the_following_error); - chain = chainDiagnosticMessages(chain, Diagnostics.No_overload_matches_this_call); - } - if (headMessage) { - chain = chainDiagnosticMessages(chain, headMessage); - } - const diags = getSignatureApplicabilityError( - node, - args, - last2, - assignableRelation, - 0 /* Normal */, - /*reportErrors*/ - true, - () => chain, - /*inferenceContext*/ - void 0 - ); - if (diags) { - for (const d of diags) { - if (last2.declaration && candidatesForArgumentError.length > 3) { - addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here)); - } - addImplementationSuccessElaboration(last2, d); - diagnostics.add(d); - } - } else { - Debug.fail("No error for last overload signature"); - } - } else { - const allDiagnostics = []; - let max = 0; - let min2 = Number.MAX_VALUE; - let minIndex = 0; - let i = 0; - for (const c of candidatesForArgumentError) { - const chain2 = () => chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Overload_0_of_1_2_gave_the_following_error, - i + 1, - candidates.length, - signatureToString(c) - ); - const diags2 = getSignatureApplicabilityError( - node, - args, - c, - assignableRelation, - 0 /* Normal */, - /*reportErrors*/ - true, - chain2, - /*inferenceContext*/ - void 0 - ); - if (diags2) { - if (diags2.length <= min2) { - min2 = diags2.length; - minIndex = i; - } - max = Math.max(max, diags2.length); - allDiagnostics.push(diags2); - } else { - Debug.fail("No error for 3 or fewer overload signatures"); - } - i++; - } - const diags = max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics); - Debug.assert(diags.length > 0, "No errors reported for 3 or fewer overload signatures"); - let chain = chainDiagnosticMessages( - map(diags, createDiagnosticMessageChainFromDiagnostic), - Diagnostics.No_overload_matches_this_call - ); - if (headMessage) { - chain = chainDiagnosticMessages(chain, headMessage); - } - const related = [...flatMap(diags, (d) => d.relatedInformation)]; - let diag2; - if (every(diags, (d) => d.start === diags[0].start && d.length === diags[0].length && d.file === diags[0].file)) { - const { file, start, length: length2 } = diags[0]; - diag2 = { file, start, length: length2, code: chain.code, category: chain.category, messageText: chain, relatedInformation: related }; - } else { - diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), getErrorNodeForCallNode(node), chain, related); - } - addImplementationSuccessElaboration(candidatesForArgumentError[0], diag2); - diagnostics.add(diag2); - } - } else if (candidateForArgumentArityError) { - diagnostics.add(getArgumentArityError(node, [candidateForArgumentArityError], args, headMessage)); - } else if (candidateForTypeArgumentError) { - checkTypeArguments( - candidateForTypeArgumentError, - node.typeArguments, - /*reportErrors*/ - true, - headMessage - ); - } else if (!isJsxOpenFragment) { - const signaturesWithCorrectTypeArgumentArity = filter(signatures, (s) => hasCorrectTypeArgumentArity(s, typeArguments)); - if (signaturesWithCorrectTypeArgumentArity.length === 0) { - diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments, headMessage)); - } else { - diagnostics.add(getArgumentArityError(node, signaturesWithCorrectTypeArgumentArity, args, headMessage)); - } - } - } - return result; - function addImplementationSuccessElaboration(failed2, diagnostic) { - var _a, _b; - const oldCandidatesForArgumentError = candidatesForArgumentError; - const oldCandidateForArgumentArityError = candidateForArgumentArityError; - const oldCandidateForTypeArgumentError = candidateForTypeArgumentError; - const failedSignatureDeclarations = ((_b = (_a = failed2.declaration) == null ? void 0 : _a.symbol) == null ? void 0 : _b.declarations) || emptyArray; - const isOverload = failedSignatureDeclarations.length > 1; - const implDecl = isOverload ? find(failedSignatureDeclarations, (d) => isFunctionLikeDeclaration(d) && nodeIsPresent(d.body)) : void 0; - if (implDecl) { - const candidate = getSignatureFromDeclaration(implDecl); - const isSingleNonGenericCandidate2 = !candidate.typeParameters; - if (chooseOverload([candidate], assignableRelation, isSingleNonGenericCandidate2)) { - addRelatedInfo(diagnostic, createDiagnosticForNode(implDecl, Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible)); - } - } - candidatesForArgumentError = oldCandidatesForArgumentError; - candidateForArgumentArityError = oldCandidateForArgumentArityError; - candidateForTypeArgumentError = oldCandidateForTypeArgumentError; - } - function chooseOverload(candidates2, relation, isSingleNonGenericCandidate2, signatureHelpTrailingComma2 = false) { - var _a, _b; - candidatesForArgumentError = void 0; - candidateForArgumentArityError = void 0; - candidateForTypeArgumentError = void 0; - if (isSingleNonGenericCandidate2) { - const candidate = candidates2[0]; - if (some(typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) { - return void 0; - } - if (getSignatureApplicabilityError( - node, - args, - candidate, - relation, - 0 /* Normal */, - /*reportErrors*/ - false, - /*containingMessageChain*/ - void 0, - /*inferenceContext*/ - void 0 - )) { - candidatesForArgumentError = [candidate]; - return void 0; - } - return candidate; - } - for (let candidateIndex = 0; candidateIndex < candidates2.length; candidateIndex++) { - let candidate = candidates2[candidateIndex]; - if (!hasCorrectTypeArgumentArity(candidate, typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) { - continue; - } - let checkCandidate; - let inferenceContext; - if (candidate.typeParameters) { - const paramLocation = (_b = (_a = candidate.typeParameters[0].symbol.declarations) == null ? void 0 : _a[0]) == null ? void 0 : _b.parent; - const candidateParameterContext = paramLocation || (candidate.declaration && isConstructorDeclaration(candidate.declaration) ? candidate.declaration.parent : candidate.declaration); - if (candidateParameterContext && findAncestor(node, (a) => a === candidateParameterContext)) { - candidate = getImplementationSignature(candidate); - } - let typeArgumentTypes; - if (some(typeArguments)) { - typeArgumentTypes = checkTypeArguments( - candidate, - typeArguments, - /*reportErrors*/ - false - ); - if (!typeArgumentTypes) { - candidateForTypeArgumentError = candidate; - continue; - } - } else { - inferenceContext = createInferenceContext( - candidate.typeParameters, - candidate, - /*flags*/ - isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */ - ); - typeArgumentTypes = instantiateTypes(inferTypeArguments(node, candidate, args, argCheckMode | 8 /* SkipGenericFunctions */, inferenceContext), inferenceContext.nonFixingMapper); - argCheckMode |= inferenceContext.flags & 4 /* SkippedGenericFunction */ ? 8 /* SkipGenericFunctions */ : 0 /* Normal */; - } - checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters); - if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) { - candidateForArgumentArityError = checkCandidate; - continue; - } - } else { - checkCandidate = candidate; - } - if (getSignatureApplicabilityError( - node, - args, - checkCandidate, - relation, - argCheckMode, - /*reportErrors*/ - false, - /*containingMessageChain*/ - void 0, - inferenceContext - )) { - (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate); - continue; - } - if (argCheckMode) { - argCheckMode = 0 /* Normal */; - if (inferenceContext) { - const typeArgumentTypes = instantiateTypes(inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext), inferenceContext.mapper); - checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); - if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) { - candidateForArgumentArityError = checkCandidate; - continue; - } - } - if (getSignatureApplicabilityError( - node, - args, - checkCandidate, - relation, - argCheckMode, - /*reportErrors*/ - false, - /*containingMessageChain*/ - void 0, - inferenceContext - )) { - (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate); - continue; - } - } - candidates2[candidateIndex] = checkCandidate; - return checkCandidate; - } - return void 0; - } - } - function getCandidateForOverloadFailure(node, candidates, args, hasCandidatesOutArray, checkMode) { - Debug.assert(candidates.length > 0); - checkNodeDeferred(node); - return hasCandidatesOutArray || candidates.length === 1 || candidates.some((c) => !!c.typeParameters) ? pickLongestCandidateSignature(node, candidates, args, checkMode) : createUnionOfSignaturesForOverloadFailure(candidates); - } - function createUnionOfSignaturesForOverloadFailure(candidates) { - const thisParameters = mapDefined(candidates, (c) => c.thisParameter); - let thisParameter; - if (thisParameters.length) { - thisParameter = createCombinedSymbolFromTypes(thisParameters, thisParameters.map(getTypeOfParameter)); - } - const { min: minArgumentCount, max: maxNonRestParam } = minAndMax(candidates, getNumNonRestParameters); - const parameters = []; - for (let i = 0; i < maxNonRestParam; i++) { - const symbols = mapDefined(candidates, (s) => signatureHasRestParameter(s) ? i < s.parameters.length - 1 ? s.parameters[i] : last(s.parameters) : i < s.parameters.length ? s.parameters[i] : void 0); - Debug.assert(symbols.length !== 0); - parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); - } - const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); - let flags = 128 /* IsSignatureCandidateForOverloadFailure */; - if (restParameterSymbols.length !== 0) { - const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); - parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); - flags |= 1 /* HasRestParameter */; - } - if (candidates.some(signatureHasLiteralTypes)) { - flags |= 2 /* HasLiteralTypes */; - } - return createSignature( - candidates[0].declaration, - /*typeParameters*/ - void 0, - // Before calling this we tested for `!candidates.some(c => !!c.typeParameters)`. - thisParameter, - parameters, - /*resolvedReturnType*/ - getIntersectionType(candidates.map(getReturnTypeOfSignature)), - /*resolvedTypePredicate*/ - void 0, - minArgumentCount, - flags - ); - } - function getNumNonRestParameters(signature) { - const numParams = signature.parameters.length; - return signatureHasRestParameter(signature) ? numParams - 1 : numParams; - } - function createCombinedSymbolFromTypes(sources, types) { - return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2 /* Subtype */)); - } - function createCombinedSymbolForOverloadFailure(sources, type) { - return createSymbolWithType(first(sources), type); - } - function pickLongestCandidateSignature(node, candidates, args, checkMode) { - const bestIndex = getLongestCandidateIndex(candidates, apparentArgumentCount === void 0 ? args.length : apparentArgumentCount); - const candidate = candidates[bestIndex]; - const { typeParameters } = candidate; - if (!typeParameters) { - return candidate; - } - const typeArgumentNodes = callLikeExpressionMayHaveTypeArguments(node) ? node.typeArguments : void 0; - const instantiated = typeArgumentNodes ? createSignatureInstantiation(candidate, getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isInJSFile(node))) : inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode); - candidates[bestIndex] = instantiated; - return instantiated; - } - function getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isJs) { - const typeArguments = typeArgumentNodes.map(getTypeOfNode); - while (typeArguments.length > typeParameters.length) { - typeArguments.pop(); - } - while (typeArguments.length < typeParameters.length) { - typeArguments.push(getDefaultFromTypeParameter(typeParameters[typeArguments.length]) || getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs)); - } - return typeArguments; - } - function inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode) { - const inferenceContext = createInferenceContext( - typeParameters, - candidate, - /*flags*/ - isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */ - ); - const typeArgumentTypes = inferTypeArguments(node, candidate, args, checkMode | 4 /* SkipContextSensitive */ | 8 /* SkipGenericFunctions */, inferenceContext); - return createSignatureInstantiation(candidate, typeArgumentTypes); - } - function getLongestCandidateIndex(candidates, argsCount) { - let maxParamsIndex = -1; - let maxParams = -1; - for (let i = 0; i < candidates.length; i++) { - const candidate = candidates[i]; - const paramCount = getParameterCount(candidate); - if (hasEffectiveRestParameter(candidate) || paramCount >= argsCount) { - return i; - } - if (paramCount > maxParams) { - maxParams = paramCount; - maxParamsIndex = i; - } - } - return maxParamsIndex; - } - function resolveCallExpression(node, candidatesOutArray, checkMode) { - if (node.expression.kind === 108 /* SuperKeyword */) { - const superType = checkSuperExpression(node.expression); - if (isTypeAny(superType)) { - for (const arg of node.arguments) { - checkExpression(arg); - } - return anySignature; - } - if (!isErrorType(superType)) { - const baseTypeNode = getEffectiveBaseTypeNode(getContainingClass(node)); - if (baseTypeNode) { - const baseConstructors = getInstantiatedConstructorsForTypeArguments(superType, baseTypeNode.typeArguments, baseTypeNode); - return resolveCall(node, baseConstructors, candidatesOutArray, checkMode, 0 /* None */); - } - } - return resolveUntypedCall(node); - } - let callChainFlags; - let funcType = checkExpression(node.expression); - if (isCallChain(node)) { - const nonOptionalType = getOptionalExpressionType(funcType, node.expression); - callChainFlags = nonOptionalType === funcType ? 0 /* None */ : isOutermostOptionalChain(node) ? 16 /* IsOuterCallChain */ : 8 /* IsInnerCallChain */; - funcType = nonOptionalType; - } else { - callChainFlags = 0 /* None */; - } - funcType = checkNonNullTypeWithReporter( - funcType, - node.expression, - reportCannotInvokePossiblyNullOrUndefinedError - ); - if (funcType === silentNeverType) { - return silentNeverSignature; - } - const apparentType = getApparentType(funcType); - if (isErrorType(apparentType)) { - return resolveErrorCall(node); - } - const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); - const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; - if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { - if (!isErrorType(funcType) && node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); - } - return resolveUntypedCall(node); - } - if (!callSignatures.length) { - if (numConstructSignatures) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); - } else { - let relatedInformation; - if (node.arguments.length === 1) { - const text = getSourceFileOfNode(node).text; - if (isLineBreak(text.charCodeAt(skipTrivia( - text, - node.expression.end, - /*stopAfterLineBreak*/ - true - ) - 1))) { - relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon); - } - } - invocationError(node.expression, apparentType, 0 /* Call */, relatedInformation); - } - return resolveErrorCall(node); - } - if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) { - skippedGenericFunction(node, checkMode); - return resolvingSignature; - } - if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) { - error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); - return resolveErrorCall(node); - } - return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags); - } - function isGenericFunctionReturningFunction(signature) { - return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature))); - } - function isUntypedFunctionCall(funcType, apparentFuncType, numCallSignatures, numConstructSignatures) { - return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144 /* TypeParameter */) || !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576 /* Union */) && !(getReducedType(apparentFuncType).flags & 131072 /* Never */) && isTypeAssignableTo(funcType, globalFunctionType); - } - function resolveNewExpression(node, candidatesOutArray, checkMode) { - let expressionType = checkNonNullExpression(node.expression); - if (expressionType === silentNeverType) { - return silentNeverSignature; - } - expressionType = getApparentType(expressionType); - if (isErrorType(expressionType)) { - return resolveErrorCall(node); - } - if (isTypeAny(expressionType)) { - if (node.typeArguments) { - error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); - } - return resolveUntypedCall(node); - } - const constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */); - if (constructSignatures.length) { - if (!isConstructorAccessible(node, constructSignatures[0])) { - return resolveErrorCall(node); - } - if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */))) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); - return resolveErrorCall(node); - } - const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol); - if (valueDecl && hasSyntacticModifier(valueDecl, 64 /* Abstract */)) { - error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); - return resolveErrorCall(node); - } - return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */); - } - const callSignatures = getSignaturesOfType(expressionType, 0 /* Call */); - if (callSignatures.length) { - const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); - if (!noImplicitAny) { - if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) { - error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); - } - if (getThisTypeOfSignature(signature) === voidType) { - error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); - } - } - return signature; - } - invocationError(node.expression, expressionType, 1 /* Construct */); - return resolveErrorCall(node); - } - function someSignature(signatures, f) { - if (isArray(signatures)) { - return some(signatures, (signature) => someSignature(signature, f)); - } - return signatures.compositeKind === 1048576 /* Union */ ? some(signatures.compositeSignatures, f) : f(signatures); - } - function typeHasProtectedAccessibleBase(target, type) { - const baseTypes = getBaseTypes(type); - if (!length(baseTypes)) { - return false; - } - const firstBase = baseTypes[0]; - if (firstBase.flags & 2097152 /* Intersection */) { - const types = firstBase.types; - const mixinFlags = findMixins(types); - let i = 0; - for (const intersectionMember of firstBase.types) { - if (!mixinFlags[i]) { - if (getObjectFlags(intersectionMember) & (1 /* Class */ | 2 /* Interface */)) { - if (intersectionMember.symbol === target) { - return true; - } - if (typeHasProtectedAccessibleBase(target, intersectionMember)) { - return true; - } - } - } - i++; - } - return false; - } - if (firstBase.symbol === target) { - return true; - } - return typeHasProtectedAccessibleBase(target, firstBase); - } - function isConstructorAccessible(node, signature) { - if (!signature || !signature.declaration) { - return true; - } - const declaration = signature.declaration; - const modifiers = getSelectedEffectiveModifierFlags(declaration, 6 /* NonPublicAccessibilityModifier */); - if (!modifiers || declaration.kind !== 176 /* Constructor */) { - return true; - } - const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); - const declaringClass = getDeclaredTypeOfSymbol(declaration.parent.symbol); - if (!isNodeWithinClass(node, declaringClassDeclaration)) { - const containingClass = getContainingClass(node); - if (containingClass && modifiers & 4 /* Protected */) { - const containingType = getTypeOfNode(containingClass); - if (typeHasProtectedAccessibleBase(declaration.parent.symbol, containingType)) { - return true; - } - } - if (modifiers & 2 /* Private */) { - error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); - } - if (modifiers & 4 /* Protected */) { - error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); - } - return false; - } - return true; - } - function invocationErrorDetails(errorTarget, apparentType, kind) { - let errorInfo; - const isCall = kind === 0 /* Call */; - const awaitedType = getAwaitedType(apparentType); - const maybeMissingAwait = awaitedType && getSignaturesOfType(awaitedType, kind).length > 0; - if (apparentType.flags & 1048576 /* Union */) { - const types = apparentType.types; - let hasSignatures = false; - for (const constituent of types) { - const signatures = getSignaturesOfType(constituent, kind); - if (signatures.length !== 0) { - hasSignatures = true; - if (errorInfo) { - break; - } - } else { - if (!errorInfo) { - errorInfo = chainDiagnosticMessages( - errorInfo, - isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, - typeToString(constituent) - ); - errorInfo = chainDiagnosticMessages( - errorInfo, - isCall ? Diagnostics.Not_all_constituents_of_type_0_are_callable : Diagnostics.Not_all_constituents_of_type_0_are_constructable, - typeToString(apparentType) - ); - } - if (hasSignatures) { - break; - } - } - } - if (!hasSignatures) { - errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable, - typeToString(apparentType) - ); - } - if (!errorInfo) { - errorInfo = chainDiagnosticMessages( - errorInfo, - isCall ? Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other : Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, - typeToString(apparentType) - ); - } - } else { - errorInfo = chainDiagnosticMessages( - errorInfo, - isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, - typeToString(apparentType) - ); - } - let headMessage = isCall ? Diagnostics.This_expression_is_not_callable : Diagnostics.This_expression_is_not_constructable; - if (isCallExpression(errorTarget.parent) && errorTarget.parent.arguments.length === 0) { - const { resolvedSymbol } = getNodeLinks(errorTarget); - if (resolvedSymbol && resolvedSymbol.flags & 32768 /* GetAccessor */) { - headMessage = Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without; - } - } - return { - messageChain: chainDiagnosticMessages(errorInfo, headMessage), - relatedMessage: maybeMissingAwait ? Diagnostics.Did_you_forget_to_use_await : void 0 - }; - } - function invocationError(errorTarget, apparentType, kind, relatedInformation) { - const { messageChain, relatedMessage: relatedInfo } = invocationErrorDetails(errorTarget, apparentType, kind); - const diagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorTarget), errorTarget, messageChain); - if (relatedInfo) { - addRelatedInfo(diagnostic, createDiagnosticForNode(errorTarget, relatedInfo)); - } - if (isCallExpression(errorTarget.parent)) { - const { start, length: length2 } = getDiagnosticSpanForCallNode(errorTarget.parent); - diagnostic.start = start; - diagnostic.length = length2; - } - diagnostics.add(diagnostic); - invocationErrorRecovery(apparentType, kind, relatedInformation ? addRelatedInfo(diagnostic, relatedInformation) : diagnostic); - } - function invocationErrorRecovery(apparentType, kind, diagnostic) { - if (!apparentType.symbol) { - return; - } - const importNode = getSymbolLinks(apparentType.symbol).originatingImport; - if (importNode && !isImportCall(importNode)) { - const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target), kind); - if (!sigs || !sigs.length) return; - addRelatedInfo(diagnostic, createDiagnosticForNode(importNode, Diagnostics.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)); - } - } - function resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode) { - const tagType = checkExpression(node.tag); - const apparentType = getApparentType(tagType); - if (isErrorType(apparentType)) { - return resolveErrorCall(node); - } - const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); - const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; - if (isUntypedFunctionCall(tagType, apparentType, callSignatures.length, numConstructSignatures)) { - return resolveUntypedCall(node); - } - if (!callSignatures.length) { - if (isArrayLiteralExpression(node.parent)) { - const diagnostic = createDiagnosticForNode(node.tag, Diagnostics.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); - diagnostics.add(diagnostic); - return resolveErrorCall(node); - } - invocationError(node.tag, apparentType, 0 /* Call */); - return resolveErrorCall(node); - } - return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); - } - function getDiagnosticHeadMessageForDecoratorResolution(node) { - switch (node.parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; - case 169 /* Parameter */: - return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; - case 172 /* PropertyDeclaration */: - return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; - default: - return Debug.fail(); - } - } - function resolveDecorator(node, candidatesOutArray, checkMode) { - const funcType = checkExpression(node.expression); - const apparentType = getApparentType(funcType); - if (isErrorType(apparentType)) { - return resolveErrorCall(node); - } - const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); - const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; - if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { - return resolveUntypedCall(node); - } - if (isPotentiallyUncalledDecorator(node, callSignatures) && !isParenthesizedExpression(node.expression)) { - const nodeStr = getTextOfNode( - node.expression, - /*includeTrivia*/ - false - ); - error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); - return resolveErrorCall(node); - } - const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node); - if (!callSignatures.length) { - const errorDetails = invocationErrorDetails(node.expression, apparentType, 0 /* Call */); - const messageChain = chainDiagnosticMessages(errorDetails.messageChain, headMessage); - const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node.expression), node.expression, messageChain); - if (errorDetails.relatedMessage) { - addRelatedInfo(diag2, createDiagnosticForNode(node.expression, errorDetails.relatedMessage)); - } - diagnostics.add(diag2); - invocationErrorRecovery(apparentType, 0 /* Call */, diag2); - return resolveErrorCall(node); - } - return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */, headMessage); - } - function createSignatureForJSXIntrinsic(node, result) { - const namespace = getJsxNamespaceAt(node); - const exports2 = namespace && getExportsOfSymbol(namespace); - const typeSymbol = exports2 && getSymbol(exports2, JsxNames.Element, 788968 /* Type */); - const returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968 /* Type */, node); - const declaration = factory.createFunctionTypeNode( - /*typeParameters*/ - void 0, - [factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "props", - /*questionToken*/ - void 0, - nodeBuilder.typeToTypeNode(result, node) - )], - returnNode ? factory.createTypeReferenceNode( - returnNode, - /*typeArguments*/ - void 0 - ) : factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - const parameterSymbol = createSymbol(1 /* FunctionScopedVariable */, "props"); - parameterSymbol.links.type = result; - return createSignature( - declaration, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [parameterSymbol], - typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType, - /*resolvedTypePredicate*/ - void 0, - 1, - 0 /* None */ - ); - } - function getJSXFragmentType(node) { - const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node)); - if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType; - const jsxFragmentFactoryName = getJsxNamespace(node); - const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null"; - if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType; - const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */; - const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0; - const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName( - node, - jsxFragmentFactoryName, - shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, - /*nameNotFoundMessage*/ - jsxFactoryRefErr, - /*isUse*/ - true - ); - if (jsxFactorySymbol === void 0) return sourceFileLinks.jsxFragmentType = errorType; - if (jsxFactorySymbol.escapedName === ReactNames.Fragment) return sourceFileLinks.jsxFragmentType = getTypeOfSymbol(jsxFactorySymbol); - const resolvedAlias = (jsxFactorySymbol.flags & 2097152 /* Alias */) === 0 ? jsxFactorySymbol : resolveAlias(jsxFactorySymbol); - const reactExports = jsxFactorySymbol && getExportsOfSymbol(resolvedAlias); - const typeSymbol = reactExports && getSymbol(reactExports, ReactNames.Fragment, 2 /* BlockScopedVariable */); - const type = typeSymbol && getTypeOfSymbol(typeSymbol); - return sourceFileLinks.jsxFragmentType = type === void 0 ? errorType : type; - } - function resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode) { - const isJsxOpenFragment = isJsxOpeningFragment(node); - let exprTypes; - if (!isJsxOpenFragment) { - if (isJsxIntrinsicTagName(node.tagName)) { - const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node); - const fakeSignature = createSignatureForJSXIntrinsic(node, result); - checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType( - node.attributes, - getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), - /*inferenceContext*/ - void 0, - 0 /* Normal */ - ), result, node.tagName, node.attributes); - if (length(node.typeArguments)) { - forEach(node.typeArguments, checkSourceElement); - diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), node.typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, 0, length(node.typeArguments))); - } - return fakeSignature; - } - exprTypes = checkExpression(node.tagName); - } else { - exprTypes = getJSXFragmentType(node); - } - const apparentType = getApparentType(exprTypes); - if (isErrorType(apparentType)) { - return resolveErrorCall(node); - } - const signatures = getUninstantiatedJsxSignaturesOfType(exprTypes, node); - if (isUntypedFunctionCall( - exprTypes, - apparentType, - signatures.length, - /*constructSignatures*/ - 0 - )) { - return resolveUntypedCall(node); - } - if (signatures.length === 0) { - if (isJsxOpenFragment) { - error(node, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node)); - } else { - error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); - } - return resolveErrorCall(node); - } - return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); - } - function resolveInstanceofExpression(node, candidatesOutArray, checkMode) { - const rightType = checkExpression(node.right); - if (!isTypeAny(rightType)) { - const hasInstanceMethodType = getSymbolHasInstanceMethodOfObjectType(rightType); - if (hasInstanceMethodType) { - const apparentType = getApparentType(hasInstanceMethodType); - if (isErrorType(apparentType)) { - return resolveErrorCall(node); - } - const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); - const constructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */); - if (isUntypedFunctionCall(hasInstanceMethodType, apparentType, callSignatures.length, constructSignatures.length)) { - return resolveUntypedCall(node); - } - if (callSignatures.length) { - return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); - } - } else if (!(typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { - error(node.right, Diagnostics.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); - return resolveErrorCall(node); - } - } - return anySignature; - } - function isPotentiallyUncalledDecorator(decorator, signatures) { - return signatures.length && every(signatures, (signature) => signature.minArgumentCount === 0 && !signatureHasRestParameter(signature) && signature.parameters.length < getDecoratorArgumentCount(decorator, signature)); - } - function resolveSignature(node, candidatesOutArray, checkMode) { - switch (node.kind) { - case 213 /* CallExpression */: - return resolveCallExpression(node, candidatesOutArray, checkMode); - case 214 /* NewExpression */: - return resolveNewExpression(node, candidatesOutArray, checkMode); - case 215 /* TaggedTemplateExpression */: - return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); - case 170 /* Decorator */: - return resolveDecorator(node, candidatesOutArray, checkMode); - case 289 /* JsxOpeningFragment */: - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); - case 226 /* BinaryExpression */: - return resolveInstanceofExpression(node, candidatesOutArray, checkMode); - } - Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); - } - function getResolvedSignature(node, candidatesOutArray, checkMode) { - const links = getNodeLinks(node); - const cached = links.resolvedSignature; - if (cached && cached !== resolvingSignature && !candidatesOutArray) { - return cached; - } - const saveResolutionStart = resolutionStart; - if (!cached) { - resolutionStart = resolutionTargets.length; - } - links.resolvedSignature = resolvingSignature; - const result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */); - resolutionStart = saveResolutionStart; - if (result !== resolvingSignature) { - links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached; - } - return result; - } - function isJSConstructor(node) { - var _a; - if (!node || !isInJSFile(node)) { - return false; - } - const func = isFunctionDeclaration(node) || isFunctionExpression(node) ? node : (isVariableDeclaration(node) || isPropertyAssignment(node)) && node.initializer && isFunctionExpression(node.initializer) ? node.initializer : void 0; - if (func) { - if (getJSDocClassTag(node)) return true; - if (isPropertyAssignment(walkUpParenthesizedExpressions(func.parent))) return false; - const symbol = getSymbolOfDeclaration(func); - return !!((_a = symbol == null ? void 0 : symbol.members) == null ? void 0 : _a.size); - } - return false; - } - function mergeJSSymbols(target, source) { - var _a, _b; - if (source) { - const links = getSymbolLinks(source); - if (!links.inferredClassSymbol || !links.inferredClassSymbol.has(getSymbolId(target))) { - const inferred = isTransientSymbol(target) ? target : cloneSymbol(target); - inferred.exports = inferred.exports || createSymbolTable(); - inferred.members = inferred.members || createSymbolTable(); - inferred.flags |= source.flags & 32 /* Class */; - if ((_a = source.exports) == null ? void 0 : _a.size) { - mergeSymbolTable(inferred.exports, source.exports); - } - if ((_b = source.members) == null ? void 0 : _b.size) { - mergeSymbolTable(inferred.members, source.members); - } - (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred); - return inferred; - } - return links.inferredClassSymbol.get(getSymbolId(target)); - } - } - function getAssignedClassSymbol(decl) { - var _a; - const assignmentSymbol = decl && getSymbolOfExpando( - decl, - /*allowDeclaration*/ - true - ); - const prototype = (_a = assignmentSymbol == null ? void 0 : assignmentSymbol.exports) == null ? void 0 : _a.get("prototype"); - const init = (prototype == null ? void 0 : prototype.valueDeclaration) && getAssignedJSPrototype(prototype.valueDeclaration); - return init ? getSymbolOfDeclaration(init) : void 0; - } - function getSymbolOfExpando(node, allowDeclaration) { - if (!node.parent) { - return void 0; - } - let name; - let decl; - if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { - if (!isInJSFile(node) && !(isVarConstLike2(node.parent) && isFunctionLikeDeclaration(node))) { - return void 0; - } - name = node.parent.name; - decl = node.parent; - } else if (isBinaryExpression(node.parent)) { - const parentNode = node.parent; - const parentNodeOperator = node.parent.operatorToken.kind; - if (parentNodeOperator === 64 /* EqualsToken */ && (allowDeclaration || parentNode.right === node)) { - name = parentNode.left; - decl = name; - } else if (parentNodeOperator === 57 /* BarBarToken */ || parentNodeOperator === 61 /* QuestionQuestionToken */) { - if (isVariableDeclaration(parentNode.parent) && parentNode.parent.initializer === parentNode) { - name = parentNode.parent.name; - decl = parentNode.parent; - } else if (isBinaryExpression(parentNode.parent) && parentNode.parent.operatorToken.kind === 64 /* EqualsToken */ && (allowDeclaration || parentNode.parent.right === parentNode)) { - name = parentNode.parent.left; - decl = name; - } - if (!name || !isBindableStaticNameExpression(name) || !isSameEntityName(name, parentNode.left)) { - return void 0; - } - } - } else if (allowDeclaration && isFunctionDeclaration(node)) { - name = node.name; - decl = node; - } - if (!decl || !name || !allowDeclaration && !getExpandoInitializer(node, isPrototypeAccess(name))) { - return void 0; - } - return getSymbolOfNode(decl); - } - function getAssignedJSPrototype(node) { - if (!node.parent) { - return false; - } - let parent = node.parent; - while (parent && parent.kind === 211 /* PropertyAccessExpression */) { - parent = parent.parent; - } - if (parent && isBinaryExpression(parent) && isPrototypeAccess(parent.left) && parent.operatorToken.kind === 64 /* EqualsToken */) { - const right = getInitializerOfBinaryExpression(parent); - return isObjectLiteralExpression(right) && right; - } - } - function checkCallExpression(node, checkMode) { - var _a, _b, _c; - checkGrammarTypeArguments(node, node.typeArguments); - const signature = getResolvedSignature( - node, - /*candidatesOutArray*/ - void 0, - checkMode - ); - if (signature === resolvingSignature) { - return silentNeverType; - } - checkDeprecatedSignature(signature, node); - if (node.expression.kind === 108 /* SuperKeyword */) { - return voidType; - } - if (node.kind === 214 /* NewExpression */) { - const declaration = signature.declaration; - if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { - if (noImplicitAny) { - error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); - } - return anyType; - } - } - if (isInJSFile(node) && isCommonJsRequire(node)) { - return resolveExternalModuleTypeByLiteral(node.arguments[0]); - } - const returnType = getReturnTypeOfSignature(signature); - if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { - return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); - } - if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { - if (!isDottedName(node.expression)) { - error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); - } else if (!getEffectsSignature(node)) { - const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); - getTypeOfDottedName(node.expression, diagnostic); - } - } - if (isInJSFile(node)) { - const jsSymbol = getSymbolOfExpando( - node, - /*allowDeclaration*/ - false - ); - if ((_c = jsSymbol == null ? void 0 : jsSymbol.exports) == null ? void 0 : _c.size) { - const jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, emptyArray, emptyArray, emptyArray); - jsAssignmentType.objectFlags |= 4096 /* JSLiteral */; - return getIntersectionType([returnType, jsAssignmentType]); - } - } - return returnType; - } - function checkDeprecatedSignature(signature, node) { - if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) return; - if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { - const suggestionNode = getDeprecatedSuggestionNode(node); - const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); - addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); - } - } - function getDeprecatedSuggestionNode(node) { - node = skipParentheses(node); - switch (node.kind) { - case 213 /* CallExpression */: - case 170 /* Decorator */: - case 214 /* NewExpression */: - return getDeprecatedSuggestionNode(node.expression); - case 215 /* TaggedTemplateExpression */: - return getDeprecatedSuggestionNode(node.tag); - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - return getDeprecatedSuggestionNode(node.tagName); - case 212 /* ElementAccessExpression */: - return node.argumentExpression; - case 211 /* PropertyAccessExpression */: - return node.name; - case 183 /* TypeReference */: - const typeReference = node; - return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; - default: - return node; - } - } - function isSymbolOrSymbolForCall(node) { - if (!isCallExpression(node)) return false; - let left = node.expression; - if (isPropertyAccessExpression(left) && left.name.escapedText === "for") { - left = left.expression; - } - if (!isIdentifier(left) || left.escapedText !== "Symbol") { - return false; - } - const globalESSymbol = getGlobalESSymbolConstructorSymbol( - /*reportErrors*/ - false - ); - if (!globalESSymbol) { - return false; - } - return globalESSymbol === resolveName( - left, - "Symbol", - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - } - function checkImportCallExpression(node) { - checkGrammarImportCallExpression(node); - if (node.arguments.length === 0) { - return createPromiseReturnType(node, anyType); - } - const specifier = node.arguments[0]; - const specifierType = checkExpressionCached(specifier); - const optionsType = node.arguments.length > 1 ? checkExpressionCached(node.arguments[1]) : void 0; - for (let i = 2; i < node.arguments.length; ++i) { - checkExpressionCached(node.arguments[i]); - } - if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) { - error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); - } - if (optionsType) { - const importCallOptionsType = getGlobalImportCallOptionsType( - /*reportErrors*/ - true - ); - if (importCallOptionsType !== emptyObjectType) { - checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 32768 /* Undefined */), node.arguments[1]); - } - } - const moduleSymbol = resolveExternalModuleName(node, specifier); - if (moduleSymbol) { - const esModuleSymbol = resolveESModuleSymbol( - moduleSymbol, - specifier, - /*dontResolveAlias*/ - true, - /*suppressInteropError*/ - false - ); - if (esModuleSymbol) { - return createPromiseReturnType( - node, - getTypeWithSyntheticDefaultOnly(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier) || getTypeWithSyntheticDefaultImportType(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier) - ); - } - } - return createPromiseReturnType(node, anyType); - } - function createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol) { - const memberTable = createSymbolTable(); - const newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */); - newSymbol.parent = originalSymbol; - newSymbol.links.nameType = getStringLiteralType("default"); - newSymbol.links.aliasTarget = resolveSymbol(symbol); - memberTable.set("default" /* Default */, newSymbol); - return createAnonymousType(anonymousSymbol, memberTable, emptyArray, emptyArray, emptyArray); - } - function getTypeWithSyntheticDefaultOnly(type, symbol, originalSymbol, moduleSpecifier) { - const hasDefaultOnly = isOnlyImportableAsDefault(moduleSpecifier); - if (hasDefaultOnly && type && !isErrorType(type)) { - const synthType = type; - if (!synthType.defaultOnlyType) { - const type2 = createDefaultPropertyWrapperForModule(symbol, originalSymbol); - synthType.defaultOnlyType = type2; - } - return synthType.defaultOnlyType; - } - return void 0; - } - function getTypeWithSyntheticDefaultImportType(type, symbol, originalSymbol, moduleSpecifier) { - var _a; - if (allowSyntheticDefaultImports && type && !isErrorType(type)) { - const synthType = type; - if (!synthType.syntheticType) { - const file = (_a = originalSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - const hasSyntheticDefault = canHaveSyntheticDefault( - file, - originalSymbol, - /*dontResolveAlias*/ - false, - moduleSpecifier - ); - if (hasSyntheticDefault) { - const anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); - const defaultContainingObject = createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol); - anonymousSymbol.links.type = defaultContainingObject; - synthType.syntheticType = isValidSpreadType(type) ? getSpreadType( - type, - defaultContainingObject, - anonymousSymbol, - /*objectFlags*/ - 0, - /*readonly*/ - false - ) : defaultContainingObject; - } else { - synthType.syntheticType = type; - } - } - return synthType.syntheticType; - } - return type; - } - function isCommonJsRequire(node) { - if (!isRequireCall( - node, - /*requireStringLiteralLikeArgument*/ - true - )) { - return false; - } - if (!isIdentifier(node.expression)) return Debug.fail(); - const resolvedRequire = resolveName( - node.expression, - node.expression.escapedText, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (resolvedRequire === requireSymbol) { - return true; - } - if (resolvedRequire.flags & 2097152 /* Alias */) { - return false; - } - const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; - if (targetDeclarationKind !== 0 /* Unknown */) { - const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); - return !!decl && !!(decl.flags & 33554432 /* Ambient */); - } - return false; - } - function checkTaggedTemplateExpression(node) { - if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments); - if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) { - checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */); - } - const signature = getResolvedSignature(node); - checkDeprecatedSignature(signature, node); - return getReturnTypeOfSignature(signature); - } - function checkAssertion(node, checkMode) { - if (node.kind === 216 /* TypeAssertionExpression */) { - const file = getSourceFileOfNode(node); - if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { - grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); - } - if (compilerOptions.erasableSyntaxOnly) { - const start = skipTrivia(file.text, node.pos); - const end = node.expression.pos; - diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled)); - } - } - return checkAssertionWorker(node, checkMode); - } - function isValidConstAssertionArgument(node) { - switch (node.kind) { - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 209 /* ArrayLiteralExpression */: - case 210 /* ObjectLiteralExpression */: - case 228 /* TemplateExpression */: - return true; - case 217 /* ParenthesizedExpression */: - return isValidConstAssertionArgument(node.expression); - case 224 /* PrefixUnaryExpression */: - const op = node.operator; - const arg = node.operand; - return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - const expr = skipParentheses(node.expression); - const symbol = isEntityNameExpression(expr) ? resolveEntityName( - expr, - 111551 /* Value */, - /*ignoreErrors*/ - true - ) : void 0; - return !!(symbol && symbol.flags & 384 /* Enum */); - } - return false; - } - function checkAssertionWorker(node, checkMode) { - const { type, expression } = getAssertionTypeAndExpression(node); - const exprType = checkExpression(expression, checkMode); - if (isConstTypeReference(type)) { - if (!isValidConstAssertionArgument(expression)) { - error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); - } - return getRegularTypeOfLiteralType(exprType); - } - const links = getNodeLinks(node); - links.assertionExpressionType = exprType; - checkSourceElement(type); - checkNodeDeferred(node); - return getTypeFromTypeNode(type); - } - function getAssertionTypeAndExpression(node) { - let type; - let expression; - switch (node.kind) { - case 234 /* AsExpression */: - case 216 /* TypeAssertionExpression */: - type = node.type; - expression = node.expression; - break; - case 217 /* ParenthesizedExpression */: - type = getJSDocTypeAssertionType(node); - expression = node.expression; - break; - } - return { type, expression }; - } - function checkAssertionDeferred(node) { - const { type } = getAssertionTypeAndExpression(node); - const errNode = isParenthesizedExpression(node) ? type : node; - const links = getNodeLinks(node); - Debug.assertIsDefined(links.assertionExpressionType); - const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(links.assertionExpressionType)); - const targetType = getTypeFromTypeNode(type); - if (!isErrorType(targetType)) { - addLazyDiagnostic(() => { - const widenedType = getWidenedType(exprType); - if (!isTypeComparableTo(targetType, widenedType)) { - checkTypeComparableTo(exprType, targetType, errNode, Diagnostics.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); - } - }); - } - } - function checkNonNullChain(node) { - const leftType = checkExpression(node.expression); - const nonOptionalType = getOptionalExpressionType(leftType, node.expression); - return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); - } - function checkNonNullAssertion(node) { - return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); - } - function checkExpressionWithTypeArguments(node) { - checkGrammarExpressionWithTypeArguments(node); - forEach(node.typeArguments, checkSourceElement); - if (node.kind === 233 /* ExpressionWithTypeArguments */) { - const parent = walkUpParenthesizedExpressions(node.parent); - if (parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent.right)) { - error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); - } - } - const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); - return getInstantiationExpressionType(exprType, node); - } - function getInstantiationExpressionType(exprType, node) { - const typeArguments = node.typeArguments; - if (exprType === silentNeverType || isErrorType(exprType) || !some(typeArguments)) { - return exprType; - } - const links = getNodeLinks(node); - if (!links.instantiationExpressionTypes) { - links.instantiationExpressionTypes = /* @__PURE__ */ new Map(); - } - if (links.instantiationExpressionTypes.has(exprType.id)) { - return links.instantiationExpressionTypes.get(exprType.id); - } - let hasSomeApplicableSignature = false; - let nonApplicableType; - const result = getInstantiatedType(exprType); - links.instantiationExpressionTypes.set(exprType.id, result); - const errorType2 = hasSomeApplicableSignature ? nonApplicableType : exprType; - if (errorType2) { - diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, typeToString(errorType2))); - } - return result; - function getInstantiatedType(type) { - let hasSignatures = false; - let hasApplicableSignature = false; - const result2 = getInstantiatedTypePart(type); - hasSomeApplicableSignature || (hasSomeApplicableSignature = hasApplicableSignature); - if (hasSignatures && !hasApplicableSignature) { - nonApplicableType ?? (nonApplicableType = type); - } - return result2; - function getInstantiatedTypePart(type2) { - if (type2.flags & 524288 /* Object */) { - const resolved = resolveStructuredTypeMembers(type2); - const callSignatures = getInstantiatedSignatures(resolved.callSignatures); - const constructSignatures = getInstantiatedSignatures(resolved.constructSignatures); - hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0); - hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0); - if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) { - const result3 = createAnonymousType(createSymbol(0 /* None */, "__instantiationExpression" /* InstantiationExpression */), resolved.members, callSignatures, constructSignatures, resolved.indexInfos); - result3.objectFlags |= 8388608 /* InstantiationExpressionType */; - result3.node = node; - return result3; - } - } else if (type2.flags & 58982400 /* InstantiableNonPrimitive */) { - const constraint = getBaseConstraintOfType(type2); - if (constraint) { - const instantiated = getInstantiatedTypePart(constraint); - if (instantiated !== constraint) { - return instantiated; - } - } - } else if (type2.flags & 1048576 /* Union */) { - return mapType(type2, getInstantiatedType); - } else if (type2.flags & 2097152 /* Intersection */) { - return getIntersectionType(sameMap(type2.types, getInstantiatedTypePart)); - } - return type2; - } - } - function getInstantiatedSignatures(signatures) { - const applicableSignatures = filter(signatures, (sig) => !!sig.typeParameters && hasCorrectTypeArgumentArity(sig, typeArguments)); - return sameMap(applicableSignatures, (sig) => { - const typeArgumentTypes = checkTypeArguments( - sig, - typeArguments, - /*reportErrors*/ - true - ); - return typeArgumentTypes ? getSignatureInstantiation(sig, typeArgumentTypes, isInJSFile(sig.declaration)) : sig; - }); - } - } - function checkSatisfiesExpression(node) { - checkSourceElement(node.type); - return checkSatisfiesExpressionWorker(node.expression, node.type); - } - function checkSatisfiesExpressionWorker(expression, target, checkMode) { - const exprType = checkExpression(expression, checkMode); - const targetType = getTypeFromTypeNode(target); - if (isErrorType(targetType)) { - return targetType; - } - const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */); - checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); - return exprType; - } - function checkMetaProperty(node) { - checkGrammarMetaProperty(node); - if (node.keywordToken === 105 /* NewKeyword */) { - return checkNewTargetMetaProperty(node); - } - if (node.keywordToken === 102 /* ImportKeyword */) { - return checkImportMetaProperty(node); - } - return Debug.assertNever(node.keywordToken); - } - function checkMetaPropertyKeyword(node) { - switch (node.keywordToken) { - case 102 /* ImportKeyword */: - return getGlobalImportMetaExpressionType(); - case 105 /* NewKeyword */: - const type = checkNewTargetMetaProperty(node); - return isErrorType(type) ? errorType : createNewTargetExpressionType(type); - default: - Debug.assertNever(node.keywordToken); - } - } - function checkNewTargetMetaProperty(node) { - const container = getNewTargetContainer(node); - if (!container) { - error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); - return errorType; - } else if (container.kind === 176 /* Constructor */) { - const symbol = getSymbolOfDeclaration(container.parent); - return getTypeOfSymbol(symbol); - } else { - const symbol = getSymbolOfDeclaration(container); - return getTypeOfSymbol(symbol); - } - } - function checkImportMetaProperty(node) { - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { - error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); - } - } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { - error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext); - } - const file = getSourceFileOfNode(node); - Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); - return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; - } - function getTypeOfParameter(symbol) { - const declaration = symbol.valueDeclaration; - return addOptionality( - getTypeOfSymbol(symbol), - /*isProperty*/ - false, - /*isOptional*/ - !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration)) - ); - } - function getTupleElementLabelFromBindingElement(node, index, elementFlags) { - switch (node.name.kind) { - case 80 /* Identifier */: { - const name = node.name.escapedText; - if (node.dotDotDotToken) { - return elementFlags & 12 /* Variable */ ? name : `${name}_${index}`; - } else { - return elementFlags & 3 /* Fixed */ ? name : `${name}_n`; - } - } - case 207 /* ArrayBindingPattern */: { - if (node.dotDotDotToken) { - const elements = node.name.elements; - const lastElement = tryCast(lastOrUndefined(elements), isBindingElement); - const elementCount = elements.length - ((lastElement == null ? void 0 : lastElement.dotDotDotToken) ? 1 : 0); - if (index < elementCount) { - const element = elements[index]; - if (isBindingElement(element)) { - return getTupleElementLabelFromBindingElement(element, index, elementFlags); - } - } else if (lastElement == null ? void 0 : lastElement.dotDotDotToken) { - return getTupleElementLabelFromBindingElement(lastElement, index - elementCount, elementFlags); - } - } - break; - } - } - return `arg_${index}`; - } - function getTupleElementLabel(d, index = 0, elementFlags = 3 /* Fixed */, restSymbol) { - if (!d) { - const restParameter = tryCast(restSymbol == null ? void 0 : restSymbol.valueDeclaration, isParameter); - return restParameter ? getTupleElementLabelFromBindingElement(restParameter, index, elementFlags) : `${(restSymbol == null ? void 0 : restSymbol.escapedName) ?? "arg"}_${index}`; - } - Debug.assert(isIdentifier(d.name)); - return d.name.escapedText; - } - function getParameterNameAtPosition(signature, pos, overrideRestType) { - var _a; - const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - if (pos < paramCount) { - return signature.parameters[pos].escapedName; - } - const restParameter = signature.parameters[paramCount] || unknownSymbol; - const restType = overrideRestType || getTypeOfSymbol(restParameter); - if (isTupleType(restType)) { - const tupleType = restType.target; - const index = pos - paramCount; - const associatedName = (_a = tupleType.labeledElementDeclarations) == null ? void 0 : _a[index]; - const elementFlags = tupleType.elementFlags[index]; - return getTupleElementLabel(associatedName, index, elementFlags, restParameter); - } - return restParameter.escapedName; - } - function getParameterIdentifierInfoAtPosition(signature, pos) { - var _a; - if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 317 /* JSDocFunctionType */) { - return void 0; - } - const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - if (pos < paramCount) { - const param = signature.parameters[pos]; - const paramIdent = getParameterDeclarationIdentifier(param); - return paramIdent ? { - parameter: paramIdent, - parameterName: param.escapedName, - isRestParameter: false - } : void 0; - } - const restParameter = signature.parameters[paramCount] || unknownSymbol; - const restIdent = getParameterDeclarationIdentifier(restParameter); - if (!restIdent) { - return void 0; - } - const restType = getTypeOfSymbol(restParameter); - if (isTupleType(restType)) { - const associatedNames = restType.target.labeledElementDeclarations; - const index = pos - paramCount; - const associatedName = associatedNames == null ? void 0 : associatedNames[index]; - const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); - if (associatedName) { - Debug.assert(isIdentifier(associatedName.name)); - return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; - } - return void 0; - } - if (pos === paramCount) { - return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; - } - return void 0; - } - function getParameterDeclarationIdentifier(symbol) { - return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; - } - function isValidDeclarationForTupleLabel(d) { - return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); - } - function getNameableDeclarationAtPosition(signature, pos) { - const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - if (pos < paramCount) { - const decl = signature.parameters[pos].valueDeclaration; - return decl && isValidDeclarationForTupleLabel(decl) ? decl : void 0; - } - const restParameter = signature.parameters[paramCount] || unknownSymbol; - const restType = getTypeOfSymbol(restParameter); - if (isTupleType(restType)) { - const associatedNames = restType.target.labeledElementDeclarations; - const index = pos - paramCount; - return associatedNames && associatedNames[index]; - } - return restParameter.valueDeclaration && isValidDeclarationForTupleLabel(restParameter.valueDeclaration) ? restParameter.valueDeclaration : void 0; - } - function getTypeAtPosition(signature, pos) { - return tryGetTypeAtPosition(signature, pos) || anyType; - } - function tryGetTypeAtPosition(signature, pos) { - const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - if (pos < paramCount) { - return getTypeOfParameter(signature.parameters[pos]); - } - if (signatureHasRestParameter(signature)) { - const restType = getTypeOfSymbol(signature.parameters[paramCount]); - const index = pos - paramCount; - if (!isTupleType(restType) || restType.target.combinedFlags & 12 /* Variable */ || index < restType.target.fixedLength) { - return getIndexedAccessType(restType, getNumberLiteralType(index)); - } - } - return void 0; - } - function getRestTypeAtPosition(source, pos, readonly) { - const parameterCount = getParameterCount(source); - const minArgumentCount = getMinArgumentCount(source); - const restType = getEffectiveRestType(source); - if (restType && pos >= parameterCount - 1) { - return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType)); - } - const types = []; - const flags = []; - const names = []; - for (let i = pos; i < parameterCount; i++) { - if (!restType || i < parameterCount - 1) { - types.push(getTypeAtPosition(source, i)); - flags.push(i < minArgumentCount ? 1 /* Required */ : 2 /* Optional */); - } else { - types.push(restType); - flags.push(8 /* Variadic */); - } - names.push(getNameableDeclarationAtPosition(source, i)); - } - return createTupleType(types, flags, readonly, names); - } - function getRestOrAnyTypeAtPosition(source, pos) { - const restType = getRestTypeAtPosition(source, pos); - const elementType = restType && getElementTypeOfArrayType(restType); - return elementType && isTypeAny(elementType) ? anyType : restType; - } - function getParameterCount(signature) { - const length2 = signature.parameters.length; - if (signatureHasRestParameter(signature)) { - const restType = getTypeOfSymbol(signature.parameters[length2 - 1]); - if (isTupleType(restType)) { - return length2 + restType.target.fixedLength - (restType.target.combinedFlags & 12 /* Variable */ ? 0 : 1); - } - } - return length2; - } - function getMinArgumentCount(signature, flags) { - const strongArityForUntypedJS = flags & 1 /* StrongArityForUntypedJS */; - const voidIsNonOptional = flags & 2 /* VoidIsNonOptional */; - if (voidIsNonOptional || signature.resolvedMinArgumentCount === void 0) { - let minArgumentCount; - if (signatureHasRestParameter(signature)) { - const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - if (isTupleType(restType)) { - const firstOptionalIndex = findIndex(restType.target.elementFlags, (f) => !(f & 1 /* Required */)); - const requiredCount = firstOptionalIndex < 0 ? restType.target.fixedLength : firstOptionalIndex; - if (requiredCount > 0) { - minArgumentCount = signature.parameters.length - 1 + requiredCount; - } - } - } - if (minArgumentCount === void 0) { - if (!strongArityForUntypedJS && signature.flags & 32 /* IsUntypedSignatureInJSFile */) { - return 0; - } - minArgumentCount = signature.minArgumentCount; - } - if (voidIsNonOptional) { - return minArgumentCount; - } - for (let i = minArgumentCount - 1; i >= 0; i--) { - const type = getTypeAtPosition(signature, i); - if (filterType(type, acceptsVoid).flags & 131072 /* Never */) { - break; - } - minArgumentCount = i; - } - signature.resolvedMinArgumentCount = minArgumentCount; - } - return signature.resolvedMinArgumentCount; - } - function hasEffectiveRestParameter(signature) { - if (signatureHasRestParameter(signature)) { - const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - return !isTupleType(restType) || !!(restType.target.combinedFlags & 12 /* Variable */); - } - return false; - } - function getEffectiveRestType(signature) { - if (signatureHasRestParameter(signature)) { - const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - if (!isTupleType(restType)) { - return isTypeAny(restType) ? anyArrayType : restType; - } - if (restType.target.combinedFlags & 12 /* Variable */) { - return sliceTupleType(restType, restType.target.fixedLength); - } - } - return void 0; - } - function getNonArrayRestType(signature) { - const restType = getEffectiveRestType(signature); - return restType && !isArrayType(restType) && !isTypeAny(restType) ? restType : void 0; - } - function getTypeOfFirstParameterOfSignature(signature) { - return getTypeOfFirstParameterOfSignatureWithFallback(signature, neverType); - } - function getTypeOfFirstParameterOfSignatureWithFallback(signature, fallbackType) { - return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : fallbackType; - } - function inferFromAnnotatedParameters(signature, context, inferenceContext) { - const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - for (let i = 0; i < len; i++) { - const declaration = signature.parameters[i].valueDeclaration; - const typeNode = getEffectiveTypeAnnotationNode(declaration); - if (typeNode) { - const source = addOptionality( - getTypeFromTypeNode(typeNode), - /*isProperty*/ - false, - isOptionalDeclaration(declaration) - ); - const target = getTypeAtPosition(context, i); - inferTypes(inferenceContext.inferences, source, target); - } - } - } - function assignContextualParameterTypes(signature, context) { - if (context.typeParameters) { - if (!signature.typeParameters) { - signature.typeParameters = context.typeParameters; - } else { - return; - } - } - if (context.thisParameter) { - const parameter = signature.thisParameter; - if (!parameter || parameter.valueDeclaration && !parameter.valueDeclaration.type) { - if (!parameter) { - signature.thisParameter = createSymbolWithType( - context.thisParameter, - /*type*/ - void 0 - ); - } - assignParameterType(signature.thisParameter, getTypeOfSymbol(context.thisParameter)); - } - } - const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); - for (let i = 0; i < len; i++) { - const parameter = signature.parameters[i]; - const declaration = parameter.valueDeclaration; - if (!getEffectiveTypeAnnotationNode(declaration)) { - let type = tryGetTypeAtPosition(context, i); - if (type && declaration.initializer) { - let initializerType = checkDeclarationInitializer(declaration, 0 /* Normal */); - if (!isTypeAssignableTo(initializerType, type) && isTypeAssignableTo(type, initializerType = widenTypeInferredFromInitializer(declaration, initializerType))) { - type = initializerType; - } - } - assignParameterType(parameter, type); - } - } - if (signatureHasRestParameter(signature)) { - const parameter = last(signature.parameters); - if (parameter.valueDeclaration ? !getEffectiveTypeAnnotationNode(parameter.valueDeclaration) : !!(getCheckFlags(parameter) & 65536 /* DeferredType */)) { - const contextualParameterType = getRestTypeAtPosition(context, len); - assignParameterType(parameter, contextualParameterType); - } - } - } - function assignNonContextualParameterTypes(signature) { - if (signature.thisParameter) { - assignParameterType(signature.thisParameter); - } - for (const parameter of signature.parameters) { - assignParameterType(parameter); - } - } - function assignParameterType(parameter, contextualType) { - const links = getSymbolLinks(parameter); - if (!links.type) { - const declaration = parameter.valueDeclaration; - links.type = addOptionality( - contextualType || (declaration ? getWidenedTypeForVariableLikeDeclaration( - declaration, - /*reportErrors*/ - true - ) : getTypeOfSymbol(parameter)), - /*isProperty*/ - false, - /*isOptional*/ - !!declaration && !declaration.initializer && isOptionalDeclaration(declaration) - ); - if (declaration && declaration.name.kind !== 80 /* Identifier */) { - if (links.type === unknownType) { - links.type = getTypeFromBindingPattern(declaration.name); - } - assignBindingElementTypes(declaration.name, links.type); - } - } else if (contextualType) { - Debug.assertEqual(links.type, contextualType, "Parameter symbol already has a cached type which differs from newly assigned type"); - } - } - function assignBindingElementTypes(pattern, parentType) { - for (const element of pattern.elements) { - if (!isOmittedExpression(element)) { - const type = getBindingElementTypeFromParentType( - element, - parentType, - /*noTupleBoundsCheck*/ - false - ); - if (element.name.kind === 80 /* Identifier */) { - getSymbolLinks(getSymbolOfDeclaration(element)).type = type; - } else { - assignBindingElementTypes(element.name, type); - } - } - } - } - function createClassDecoratorContextType(classType) { - return tryCreateTypeReference(getGlobalClassDecoratorContextType( - /*reportErrors*/ - true - ), [classType]); - } - function createClassMethodDecoratorContextType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassMethodDecoratorContextType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassGetterDecoratorContextType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassGetterDecoratorContextType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassSetterDecoratorContextType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassSetterDecoratorContextType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassAccessorDecoratorContextType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassAccessorDecoratorContextType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassFieldDecoratorContextType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassFieldDecoratorContextType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2) { - const key = `${isPrivate ? "p" : "P"}${isStatic2 ? "s" : "S"}${nameType.id}`; - let overrideType = decoratorContextOverrideTypeCache.get(key); - if (!overrideType) { - const members = createSymbolTable(); - members.set("name", createProperty("name", nameType)); - members.set("private", createProperty("private", isPrivate ? trueType : falseType)); - members.set("static", createProperty("static", isStatic2 ? trueType : falseType)); - overrideType = createAnonymousType( - /*symbol*/ - void 0, - members, - emptyArray, - emptyArray, - emptyArray - ); - decoratorContextOverrideTypeCache.set(key, overrideType); - } - return overrideType; - } - function createClassMemberDecoratorContextTypeForNode(node, thisType, valueType) { - const isStatic2 = hasStaticModifier(node); - const isPrivate = isPrivateIdentifier(node.name); - const nameType = isPrivate ? getStringLiteralType(idText(node.name)) : getLiteralTypeFromPropertyName(node.name); - const contextType = isMethodDeclaration(node) ? createClassMethodDecoratorContextType(thisType, valueType) : isGetAccessorDeclaration(node) ? createClassGetterDecoratorContextType(thisType, valueType) : isSetAccessorDeclaration(node) ? createClassSetterDecoratorContextType(thisType, valueType) : isAutoAccessorPropertyDeclaration(node) ? createClassAccessorDecoratorContextType(thisType, valueType) : isPropertyDeclaration(node) ? createClassFieldDecoratorContextType(thisType, valueType) : Debug.failBadSyntaxKind(node); - const overrideType = getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2); - return getIntersectionType([contextType, overrideType]); - } - function createClassAccessorDecoratorTargetType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassAccessorDecoratorResultType(thisType, valueType) { - return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType( - /*reportErrors*/ - true - ), [thisType, valueType]); - } - function createClassFieldDecoratorInitializerMutatorType(thisType, valueType) { - const thisParam = createParameter("this", thisType); - const valueParam = createParameter("value", valueType); - return createFunctionType( - /*typeParameters*/ - void 0, - thisParam, - [valueParam], - valueType, - /*typePredicate*/ - void 0, - 1 - ); - } - function createESDecoratorCallSignature(targetType, contextType, nonOptionalReturnType) { - const targetParam = createParameter("target", targetType); - const contextParam = createParameter("context", contextType); - const returnType = getUnionType([nonOptionalReturnType, voidType]); - return createCallSignature( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [targetParam, contextParam], - returnType - ); - } - function getESDecoratorCallSignature(decorator) { - const { parent } = decorator; - const links = getNodeLinks(parent); - if (!links.decoratorSignature) { - links.decoratorSignature = anySignature; - switch (parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: { - const node = parent; - const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); - const contextType = createClassDecoratorContextType(targetType); - links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); - break; - } - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: { - const node = parent; - if (!isClassLike(node.parent)) break; - const valueType = isMethodDeclaration(node) ? getOrCreateTypeFromSignature(getSignatureFromDeclaration(node)) : getTypeOfNode(node); - const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent)); - const targetType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType; - const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType); - const returnType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType; - links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); - break; - } - case 172 /* PropertyDeclaration */: { - const node = parent; - if (!isClassLike(node.parent)) break; - const valueType = getTypeOfNode(node); - const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent)); - const targetType = hasAccessorModifier(node) ? createClassAccessorDecoratorTargetType(thisType, valueType) : undefinedType; - const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType); - const returnType = hasAccessorModifier(node) ? createClassAccessorDecoratorResultType(thisType, valueType) : createClassFieldDecoratorInitializerMutatorType(thisType, valueType); - links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); - break; - } - } - } - return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature; - } - function getLegacyDecoratorCallSignature(decorator) { - const { parent } = decorator; - const links = getNodeLinks(parent); - if (!links.decoratorSignature) { - links.decoratorSignature = anySignature; - switch (parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: { - const node = parent; - const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); - const targetParam = createParameter("target", targetType); - links.decoratorSignature = createCallSignature( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [targetParam], - getUnionType([targetType, voidType]) - ); - break; - } - case 169 /* Parameter */: { - const node = parent; - if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { - break; - } - if (getThisParameter(node.parent) === node) { - break; - } - const index = getThisParameter(node.parent) ? node.parent.parameters.indexOf(node) - 1 : node.parent.parameters.indexOf(node); - Debug.assert(index >= 0); - const targetType = isConstructorDeclaration(node.parent) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent.parent)) : getParentTypeOfClassElement(node.parent); - const keyType = isConstructorDeclaration(node.parent) ? undefinedType : getClassElementPropertyKeyType(node.parent); - const indexType = getNumberLiteralType(index); - const targetParam = createParameter("target", targetType); - const keyParam = createParameter("propertyKey", keyType); - const indexParam = createParameter("parameterIndex", indexType); - links.decoratorSignature = createCallSignature( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [targetParam, keyParam, indexParam], - voidType - ); - break; - } - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 172 /* PropertyDeclaration */: { - const node = parent; - if (!isClassLike(node.parent)) break; - const targetType = getParentTypeOfClassElement(node); - const targetParam = createParameter("target", targetType); - const keyType = getClassElementPropertyKeyType(node); - const keyParam = createParameter("propertyKey", keyType); - const returnType = isPropertyDeclaration(node) ? voidType : createTypedPropertyDescriptorType(getTypeOfNode(node)); - const hasPropDesc = !isPropertyDeclaration(parent) || hasAccessorModifier(parent); - if (hasPropDesc) { - const descriptorType = createTypedPropertyDescriptorType(getTypeOfNode(node)); - const descriptorParam = createParameter("descriptor", descriptorType); - links.decoratorSignature = createCallSignature( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [targetParam, keyParam, descriptorParam], - getUnionType([returnType, voidType]) - ); - } else { - links.decoratorSignature = createCallSignature( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [targetParam, keyParam], - getUnionType([returnType, voidType]) - ); - } - break; - } - } - } - return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature; - } - function getDecoratorCallSignature(decorator) { - return legacyDecorators ? getLegacyDecoratorCallSignature(decorator) : getESDecoratorCallSignature(decorator); - } - function createPromiseType(promisedType) { - const globalPromiseType = getGlobalPromiseType( - /*reportErrors*/ - true - ); - if (globalPromiseType !== emptyGenericType) { - promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType; - return createTypeReference(globalPromiseType, [promisedType]); - } - return unknownType; - } - function createPromiseLikeType(promisedType) { - const globalPromiseLikeType = getGlobalPromiseLikeType( - /*reportErrors*/ - true - ); - if (globalPromiseLikeType !== emptyGenericType) { - promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType; - return createTypeReference(globalPromiseLikeType, [promisedType]); - } - return unknownType; - } - function createPromiseReturnType(func, promisedType) { - const promiseType = createPromiseType(promisedType); - if (promiseType === unknownType) { - error( - func, - isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option - ); - return errorType; - } else if (!getGlobalPromiseConstructorSymbol( - /*reportErrors*/ - true - )) { - error( - func, - isImportCall(func) ? Diagnostics.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 : Diagnostics.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 - ); - } - return promiseType; - } - function createNewTargetExpressionType(targetType) { - const symbol = createSymbol(0 /* None */, "NewTargetExpression"); - const targetPropertySymbol = createSymbol(4 /* Property */, "target", 8 /* Readonly */); - targetPropertySymbol.parent = symbol; - targetPropertySymbol.links.type = targetType; - const members = createSymbolTable([targetPropertySymbol]); - symbol.members = members; - return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); - } - function getReturnTypeFromBody(func, checkMode) { - if (!func.body) { - return errorType; - } - const functionFlags = getFunctionFlags(func); - const isAsync = (functionFlags & 2 /* Async */) !== 0; - const isGenerator = (functionFlags & 1 /* Generator */) !== 0; - let returnType; - let yieldType; - let nextType; - let fallbackReturnType = voidType; - if (func.body.kind !== 241 /* Block */) { - returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); - if (isAsync) { - returnType = unwrapAwaitedType(checkAwaitedType( - returnType, - /*withAlias*/ - false, - /*errorNode*/ - func, - Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - )); - } - } else if (isGenerator) { - const returnTypes = checkAndAggregateReturnExpressionTypes(func, checkMode); - if (!returnTypes) { - fallbackReturnType = neverType; - } else if (returnTypes.length > 0) { - returnType = getUnionType(returnTypes, 2 /* Subtype */); - } - const { yieldTypes, nextTypes } = checkAndAggregateYieldOperandTypes(func, checkMode); - yieldType = some(yieldTypes) ? getUnionType(yieldTypes, 2 /* Subtype */) : void 0; - nextType = some(nextTypes) ? getIntersectionType(nextTypes) : void 0; - } else { - const types = checkAndAggregateReturnExpressionTypes(func, checkMode); - if (!types) { - return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, neverType) : neverType; - } - if (types.length === 0) { - const contextualReturnType = getContextualReturnType( - func, - /*contextFlags*/ - void 0 - ); - const returnType2 = contextualReturnType && (unwrapReturnType(contextualReturnType, functionFlags) || voidType).flags & 32768 /* Undefined */ ? undefinedType : voidType; - return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, returnType2) : ( - // Async function - returnType2 - ); - } - returnType = getUnionType(types, 2 /* Subtype */); - } - if (returnType || yieldType || nextType) { - if (yieldType) reportErrorsFromWidening(func, yieldType, 3 /* GeneratorYield */); - if (returnType) reportErrorsFromWidening(func, returnType, 1 /* FunctionReturn */); - if (nextType) reportErrorsFromWidening(func, nextType, 2 /* GeneratorNext */); - if (returnType && isUnitType(returnType) || yieldType && isUnitType(yieldType) || nextType && isUnitType(nextType)) { - const contextualSignature = getContextualSignatureForFunctionLikeDeclaration(func); - const contextualType = !contextualSignature ? void 0 : contextualSignature === getSignatureFromDeclaration(func) ? isGenerator ? void 0 : returnType : instantiateContextualType( - getReturnTypeOfSignature(contextualSignature), - func, - /*contextFlags*/ - void 0 - ); - if (isGenerator) { - yieldType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(yieldType, contextualType, 0 /* Yield */, isAsync); - returnType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(returnType, contextualType, 1 /* Return */, isAsync); - nextType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(nextType, contextualType, 2 /* Next */, isAsync); - } else { - returnType = getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(returnType, contextualType, isAsync); - } - } - if (yieldType) yieldType = getWidenedType(yieldType); - if (returnType) returnType = getWidenedType(returnType); - if (nextType) nextType = getWidenedType(nextType); - } - if (isGenerator) { - return createGeneratorType( - yieldType || neverType, - returnType || fallbackReturnType, - nextType || getContextualIterationType(2 /* Next */, func) || unknownType, - isAsync - ); - } else { - return isAsync ? createPromiseType(returnType || fallbackReturnType) : returnType || fallbackReturnType; - } - } - function createGeneratorType(yieldType, returnType, nextType, isAsyncGenerator) { - const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver; - const globalGeneratorType = resolver.getGlobalGeneratorType( - /*reportErrors*/ - false - ); - yieldType = resolver.resolveIterationType( - yieldType, - /*errorNode*/ - void 0 - ) || unknownType; - returnType = resolver.resolveIterationType( - returnType, - /*errorNode*/ - void 0 - ) || unknownType; - if (globalGeneratorType === emptyGenericType) { - const globalIterableIteratorType = resolver.getGlobalIterableIteratorType( - /*reportErrors*/ - false - ); - if (globalIterableIteratorType !== emptyGenericType) { - return createTypeFromGenericGlobalType(globalIterableIteratorType, [yieldType, returnType, nextType]); - } - resolver.getGlobalIterableIteratorType( - /*reportErrors*/ - true - ); - return emptyObjectType; - } - return createTypeFromGenericGlobalType(globalGeneratorType, [yieldType, returnType, nextType]); - } - function checkAndAggregateYieldOperandTypes(func, checkMode) { - const yieldTypes = []; - const nextTypes = []; - const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0; - forEachYieldExpression(func.body, (yieldExpression) => { - const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType; - pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync)); - let nextType; - if (yieldExpression.asteriskToken) { - const iterationTypes = getIterationTypesOfIterable( - yieldExpressionType, - isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, - yieldExpression.expression - ); - nextType = iterationTypes && iterationTypes.nextType; - } else { - nextType = getContextualType( - yieldExpression, - /*contextFlags*/ - void 0 - ); - } - if (nextType) pushIfUnique(nextTypes, nextType); - }); - return { yieldTypes, nextTypes }; - } - function getYieldedTypeOfYieldExpression(node, expressionType, sentType, isAsync) { - const errorNode = node.expression || node; - const yieldedType = node.asteriskToken ? checkIteratedTypeOrElementType(isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, expressionType, sentType, errorNode) : expressionType; - return !isAsync ? yieldedType : getAwaitedType( - yieldedType, - errorNode, - node.asteriskToken ? Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member : Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - ); - } - function getNotEqualFactsFromTypeofSwitch(start, end, witnesses) { - let facts = 0 /* None */; - for (let i = 0; i < witnesses.length; i++) { - const witness = i < start || i >= end ? witnesses[i] : void 0; - facts |= witness !== void 0 ? typeofNEFacts.get(witness) || 32768 /* TypeofNEHostObject */ : 0; - } - return facts; - } - function isExhaustiveSwitchStatement(node) { - const links = getNodeLinks(node); - if (links.isExhaustive === void 0) { - links.isExhaustive = 0; - const exhaustive = computeExhaustiveSwitchStatement(node); - if (links.isExhaustive === 0) { - links.isExhaustive = exhaustive; - } - } else if (links.isExhaustive === 0) { - links.isExhaustive = false; - } - return links.isExhaustive; - } - function computeExhaustiveSwitchStatement(node) { - if (node.expression.kind === 221 /* TypeOfExpression */) { - const witnesses = getSwitchClauseTypeOfWitnesses(node); - if (!witnesses) { - return false; - } - const operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression)); - const notEqualFacts = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses); - if (operandConstraint.flags & 3 /* AnyOrUnknown */) { - return (556800 /* AllTypeofNE */ & notEqualFacts) === 556800 /* AllTypeofNE */; - } - return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts); - } - const type = getBaseConstraintOrType(checkExpressionCached(node.expression)); - if (!isLiteralType(type)) { - return false; - } - const switchTypes = getSwitchClauseTypes(node); - if (!switchTypes.length || some(switchTypes, isNeitherUnitTypeNorNever)) { - return false; - } - return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes); - } - function functionHasImplicitReturn(func) { - return func.endFlowNode && isReachableFlowNode(func.endFlowNode); - } - function checkAndAggregateReturnExpressionTypes(func, checkMode) { - const functionFlags = getFunctionFlags(func); - const aggregatedTypes = []; - let hasReturnWithNoExpression = functionHasImplicitReturn(func); - let hasReturnOfTypeNever = false; - forEachReturnStatement(func.body, (returnStatement) => { - let expr = returnStatement.expression; - if (expr) { - expr = skipParentheses( - expr, - /*excludeJSDocTypeAssertions*/ - true - ); - if (functionFlags & 2 /* Async */ && expr.kind === 223 /* AwaitExpression */) { - expr = skipParentheses( - expr.expression, - /*excludeJSDocTypeAssertions*/ - true - ); - } - if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === getMergedSymbol(func.symbol) && (!isFunctionExpressionOrArrowFunction(func.symbol.valueDeclaration) || isConstantReference(expr.expression))) { - hasReturnOfTypeNever = true; - return; - } - let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */); - if (functionFlags & 2 /* Async */) { - type = unwrapAwaitedType(checkAwaitedType( - type, - /*withAlias*/ - false, - func, - Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - )); - } - if (type.flags & 131072 /* Never */) { - hasReturnOfTypeNever = true; - } - pushIfUnique(aggregatedTypes, type); - } else { - hasReturnWithNoExpression = true; - } - }); - if (aggregatedTypes.length === 0 && !hasReturnWithNoExpression && (hasReturnOfTypeNever || mayReturnNever(func))) { - return void 0; - } - if (strictNullChecks && aggregatedTypes.length && hasReturnWithNoExpression && !(isJSConstructor(func) && aggregatedTypes.some((t) => t.symbol === func.symbol))) { - pushIfUnique(aggregatedTypes, undefinedType); - } - return aggregatedTypes; - } - function mayReturnNever(func) { - switch (func.kind) { - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return true; - case 174 /* MethodDeclaration */: - return func.parent.kind === 210 /* ObjectLiteralExpression */; - default: - return false; - } - } - function getTypePredicateFromBody(func) { - switch (func.kind) { - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return void 0; - } - const functionFlags = getFunctionFlags(func); - if (functionFlags !== 0 /* Normal */) return void 0; - let singleReturn; - if (func.body && func.body.kind !== 241 /* Block */) { - singleReturn = func.body; - } else { - const bailedEarly = forEachReturnStatement(func.body, (returnStatement) => { - if (singleReturn || !returnStatement.expression) return true; - singleReturn = returnStatement.expression; - }); - if (bailedEarly || !singleReturn || functionHasImplicitReturn(func)) return void 0; - } - return checkIfExpressionRefinesAnyParameter(func, singleReturn); - } - function checkIfExpressionRefinesAnyParameter(func, expr) { - expr = skipParentheses( - expr, - /*excludeJSDocTypeAssertions*/ - true - ); - const returnType = checkExpressionCached(expr); - if (!(returnType.flags & 16 /* Boolean */)) return void 0; - return forEach(func.parameters, (param, i) => { - const initType = getTypeOfSymbol(param.symbol); - if (!initType || initType.flags & 16 /* Boolean */ || !isIdentifier(param.name) || isSymbolAssigned(param.symbol) || isRestParameter(param)) { - return; - } - const trueType2 = checkIfExpressionRefinesParameter(func, expr, param, initType); - if (trueType2) { - return createTypePredicate(1 /* Identifier */, unescapeLeadingUnderscores(param.name.escapedText), i, trueType2); - } - }); - } - function checkIfExpressionRefinesParameter(func, expr, param, initType) { - const antecedent = canHaveFlowNode(expr) && expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || createFlowNode( - 2 /* Start */, - /*node*/ - void 0, - /*antecedent*/ - void 0 - ); - const trueCondition = createFlowNode(32 /* TrueCondition */, expr, antecedent); - const trueType2 = getFlowTypeOfReference(param.name, initType, initType, func, trueCondition); - if (trueType2 === initType) return void 0; - const falseCondition = createFlowNode(64 /* FalseCondition */, expr, antecedent); - const falseSubtype = getFlowTypeOfReference(param.name, initType, trueType2, func, falseCondition); - return falseSubtype.flags & 131072 /* Never */ ? trueType2 : void 0; - } - function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) { - addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics); - return; - function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() { - const functionFlags = getFunctionFlags(func); - const type = returnType && unwrapReturnType(returnType, functionFlags); - if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { - return; - } - if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { - return; - } - const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; - const errorNode = getEffectiveReturnTypeNode(func) || func; - if (type && type.flags & 131072 /* Never */) { - error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); - } else if (type && !hasExplicitReturn) { - error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); - } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) { - error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); - } else if (compilerOptions.noImplicitReturns) { - if (!type) { - if (!hasExplicitReturn) { - return; - } - const inferredReturnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func)); - if (isUnwrappedReturnTypeUndefinedVoidOrAny(func, inferredReturnType)) { - return; - } - } - error(errorNode, Diagnostics.Not_all_code_paths_return_a_value); - } - } - } - function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); - checkNodeDeferred(node); - if (isFunctionExpression(node)) { - checkCollisionsForDeclarationName(node, node.name); - } - if (checkMode && checkMode & 4 /* SkipContextSensitive */ && isContextSensitive(node)) { - if (!getEffectiveReturnTypeNode(node) && !hasContextSensitiveParameters(node)) { - const contextualSignature = getContextualSignature(node); - if (contextualSignature && couldContainTypeVariables(getReturnTypeOfSignature(contextualSignature))) { - const links = getNodeLinks(node); - if (links.contextFreeType) { - return links.contextFreeType; - } - const returnType = getReturnTypeFromBody(node, checkMode); - const returnOnlySignature = createSignature( - /*declaration*/ - void 0, - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - returnType, - /*resolvedTypePredicate*/ - void 0, - 0, - 64 /* IsNonInferrable */ - ); - const returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], emptyArray, emptyArray); - returnOnlyType.objectFlags |= 262144 /* NonInferrableType */; - return links.contextFreeType = returnOnlyType; - } - } - return anyFunctionType; - } - const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); - if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { - checkGrammarForGenerator(node); - } - contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); - return getTypeOfSymbol(getSymbolOfDeclaration(node)); - } - function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) { - const links = getNodeLinks(node); - if (!(links.flags & 64 /* ContextChecked */)) { - const contextualSignature = getContextualSignature(node); - if (!(links.flags & 64 /* ContextChecked */)) { - links.flags |= 64 /* ContextChecked */; - const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfDeclaration(node)), 0 /* Call */)); - if (!signature) { - return; - } - if (isContextSensitive(node)) { - if (contextualSignature) { - const inferenceContext = getInferenceContext(node); - let instantiatedContextualSignature; - if (checkMode && checkMode & 2 /* Inferential */) { - inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext); - const restType = getEffectiveRestType(contextualSignature); - if (restType && restType.flags & 262144 /* TypeParameter */) { - instantiatedContextualSignature = instantiateSignature(contextualSignature, inferenceContext.nonFixingMapper); - } - } - instantiatedContextualSignature || (instantiatedContextualSignature = inferenceContext ? instantiateSignature(contextualSignature, inferenceContext.mapper) : contextualSignature); - assignContextualParameterTypes(signature, instantiatedContextualSignature); - } else { - assignNonContextualParameterTypes(signature); - } - } else if (contextualSignature && !node.typeParameters && contextualSignature.parameters.length > node.parameters.length) { - const inferenceContext = getInferenceContext(node); - if (checkMode && checkMode & 2 /* Inferential */) { - inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext); - } - } - if (contextualSignature && !getReturnTypeFromAnnotation(node) && !signature.resolvedReturnType) { - const returnType = getReturnTypeFromBody(node, checkMode); - if (!signature.resolvedReturnType) { - signature.resolvedReturnType = returnType; - } - } - checkSignatureDeclaration(node); - } - } - } - function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { - Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); - const functionFlags = getFunctionFlags(node); - const returnType = getReturnTypeFromAnnotation(node); - checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); - if (node.body) { - if (!getEffectiveReturnTypeNode(node)) { - getReturnTypeOfSignature(getSignatureFromDeclaration(node)); - } - if (node.body.kind === 241 /* Block */) { - checkSourceElement(node.body); - } else { - const exprType = checkExpression(node.body); - const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags); - if (returnOrPromisedType) { - checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType); - } - } - } - } - function checkArithmeticOperandType(operand, type, diagnostic, isAwaitValid = false) { - if (!isTypeAssignableTo(type, numberOrBigIntType)) { - const awaitedType = isAwaitValid && getAwaitedTypeOfPromise(type); - errorAndMaybeSuggestAwait( - operand, - !!awaitedType && isTypeAssignableTo(awaitedType, numberOrBigIntType), - diagnostic - ); - return false; - } - return true; - } - function isReadonlyAssignmentDeclaration(d) { - if (!isCallExpression(d)) { - return false; - } - if (!isBindableObjectDefinePropertyCall(d)) { - return false; - } - const objectLitType = checkExpressionCached(d.arguments[2]); - const valueType = getTypeOfPropertyOfType(objectLitType, "value"); - if (valueType) { - const writableProp = getPropertyOfType(objectLitType, "writable"); - const writableType = writableProp && getTypeOfSymbol(writableProp); - if (!writableType || writableType === falseType || writableType === regularFalseType) { - return true; - } - if (writableProp && writableProp.valueDeclaration && isPropertyAssignment(writableProp.valueDeclaration)) { - const initializer = writableProp.valueDeclaration.initializer; - const rawOriginalType = checkExpression(initializer); - if (rawOriginalType === falseType || rawOriginalType === regularFalseType) { - return true; - } - } - return false; - } - const setProp = getPropertyOfType(objectLitType, "set"); - return !setProp; - } - function isReadonlySymbol(symbol) { - return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 8 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); - } - function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { - var _a, _b; - if (assignmentKind === 0 /* None */) { - return false; - } - if (isReadonlySymbol(symbol)) { - if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { - const ctor = getControlFlowContainer(expr); - if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { - return true; - } - if (symbol.valueDeclaration) { - const isAssignmentDeclaration2 = isBinaryExpression(symbol.valueDeclaration); - const isLocalPropertyDeclaration = ctor.parent === symbol.valueDeclaration.parent; - const isLocalParameterProperty = ctor === symbol.valueDeclaration.parent; - const isLocalThisPropertyAssignment = isAssignmentDeclaration2 && ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) === ctor.parent; - const isLocalThisPropertyAssignmentConstructorFunction = isAssignmentDeclaration2 && ((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) === ctor; - const isWriteableSymbol = isLocalPropertyDeclaration || isLocalParameterProperty || isLocalThisPropertyAssignment || isLocalThisPropertyAssignmentConstructorFunction; - return !isWriteableSymbol; - } - } - return true; - } - if (isAccessExpression(expr)) { - const node = skipParentheses(expr.expression); - if (node.kind === 80 /* Identifier */) { - const symbol2 = getNodeLinks(node).resolvedSymbol; - if (symbol2.flags & 2097152 /* Alias */) { - const declaration = getDeclarationOfAliasSymbol(symbol2); - return !!declaration && declaration.kind === 274 /* NamespaceImport */; - } - } - } - return false; - } - function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { - const node = skipOuterExpressions(expr, 38 /* Assertions */ | 1 /* Parentheses */); - if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { - error(expr, invalidReferenceMessage); - return false; - } - if (node.flags & 64 /* OptionalChain */) { - error(expr, invalidOptionalChainMessage); - return false; - } - return true; - } - function checkDeleteExpression(node) { - checkExpression(node.expression); - const expr = skipParentheses(node.expression); - if (!isAccessExpression(expr)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); - return booleanType; - } - if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); - } - const links = getNodeLinks(expr); - const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol); - if (symbol) { - if (isReadonlySymbol(symbol)) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); - } else { - checkDeleteExpressionMustBeOptional(expr, symbol); - } - } - return booleanType; - } - function checkDeleteExpressionMustBeOptional(expr, symbol) { - const type = getTypeOfSymbol(symbol); - if (strictNullChecks && !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : hasTypeFacts(type, 16777216 /* IsUndefined */))) { - error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); - } - } - function checkTypeOfExpression(node) { - checkExpression(node.expression); - return typeofType; - } - function checkVoidExpression(node) { - checkNodeDeferred(node); - return undefinedWideningType; - } - function checkAwaitGrammar(node) { - let hasError = false; - const container = getContainingFunctionOrClassStaticBlock(node); - if (container && isClassStaticBlockDeclaration(container)) { - const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; - error(node, message); - hasError = true; - } else if (!(node.flags & 65536 /* AwaitContext */)) { - if (isInTopLevelContext(node)) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - let span; - if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { - span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const message = isAwaitExpression(node) ? Diagnostics.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 : Diagnostics.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; - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); - diagnostics.add(diagnostic); - hasError = true; - } - switch (moduleKind) { - case 100 /* Node16 */: - case 101 /* Node18 */: - case 199 /* NodeNext */: - if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { - span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - diagnostics.add( - createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) - ); - hasError = true; - break; - } - // fallthrough - case 7 /* ES2022 */: - case 99 /* ESNext */: - case 200 /* Preserve */: - case 4 /* System */: - if (languageVersion >= 4 /* ES2017 */) { - break; - } - // fallthrough - default: - span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher; - diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); - hasError = true; - break; - } - } - } else { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; - const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); - if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { - const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); - addRelatedInfo(diagnostic, relatedInfo); - } - diagnostics.add(diagnostic); - hasError = true; - } - } - } - if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); - hasError = true; - } - return hasError; - } - function checkAwaitExpression(node) { - addLazyDiagnostic(() => checkAwaitGrammar(node)); - const operandType = checkExpression(node.expression); - const awaitedType = checkAwaitedType( - operandType, - /*withAlias*/ - true, - node, - Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - ); - if (awaitedType === operandType && !isErrorType(awaitedType) && !(operandType.flags & 3 /* AnyOrUnknown */)) { - addErrorOrSuggestion( - /*isError*/ - false, - createDiagnosticForNode(node, Diagnostics.await_has_no_effect_on_the_type_of_this_expression) - ); - } - return awaitedType; - } - function checkPrefixUnaryExpression(node) { - const operandType = checkExpression(node.operand); - if (operandType === silentNeverType) { - return silentNeverType; - } - switch (node.operand.kind) { - case 9 /* NumericLiteral */: - switch (node.operator) { - case 41 /* MinusToken */: - return getFreshTypeOfLiteralType(getNumberLiteralType(-node.operand.text)); - case 40 /* PlusToken */: - return getFreshTypeOfLiteralType(getNumberLiteralType(+node.operand.text)); - } - break; - case 10 /* BigIntLiteral */: - if (node.operator === 41 /* MinusToken */) { - return getFreshTypeOfLiteralType(getBigIntLiteralType({ - negative: true, - base10Value: parsePseudoBigInt(node.operand.text) - })); - } - } - switch (node.operator) { - case 40 /* PlusToken */: - case 41 /* MinusToken */: - case 55 /* TildeToken */: - checkNonNullType(operandType, node.operand); - if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288 /* ESSymbolLike */)) { - error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); - } - if (node.operator === 40 /* PlusToken */) { - if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112 /* BigIntLike */)) { - error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); - } - return numberType; - } - return getUnaryResultType(operandType); - case 54 /* ExclamationToken */: - checkTruthinessOfType(operandType, node.operand); - const facts = getTypeFacts(operandType, 4194304 /* Truthy */ | 8388608 /* Falsy */); - return facts === 4194304 /* Truthy */ ? falseType : facts === 8388608 /* Falsy */ ? trueType : booleanType; - case 46 /* PlusPlusToken */: - case 47 /* MinusMinusToken */: - const ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type); - if (ok) { - checkReferenceExpression( - node.operand, - Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, - Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access - ); - } - return getUnaryResultType(operandType); - } - return errorType; - } - function checkPostfixUnaryExpression(node) { - const operandType = checkExpression(node.operand); - if (operandType === silentNeverType) { - return silentNeverType; - } - const ok = checkArithmeticOperandType( - node.operand, - checkNonNullType(operandType, node.operand), - Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type - ); - if (ok) { - checkReferenceExpression( - node.operand, - Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, - Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access - ); - } - return getUnaryResultType(operandType); - } - function getUnaryResultType(operandType) { - if (maybeTypeOfKind(operandType, 2112 /* BigIntLike */)) { - return isTypeAssignableToKind(operandType, 3 /* AnyOrUnknown */) || maybeTypeOfKind(operandType, 296 /* NumberLike */) ? numberOrBigIntType : bigintType; - } - return numberType; - } - function maybeTypeOfKindConsideringBaseConstraint(type, kind) { - if (maybeTypeOfKind(type, kind)) { - return true; - } - const baseConstraint = getBaseConstraintOrType(type); - return !!baseConstraint && maybeTypeOfKind(baseConstraint, kind); - } - function maybeTypeOfKind(type, kind) { - if (type.flags & kind) { - return true; - } - if (type.flags & 3145728 /* UnionOrIntersection */) { - const types = type.types; - for (const t of types) { - if (maybeTypeOfKind(t, kind)) { - return true; - } - } - } - return false; - } - function isTypeAssignableToKind(source, kind, strict) { - if (source.flags & kind) { - return true; - } - if (strict && source.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */)) { - return false; - } - return !!(kind & 296 /* NumberLike */) && isTypeAssignableTo(source, numberType) || !!(kind & 2112 /* BigIntLike */) && isTypeAssignableTo(source, bigintType) || !!(kind & 402653316 /* StringLike */) && isTypeAssignableTo(source, stringType) || !!(kind & 528 /* BooleanLike */) && isTypeAssignableTo(source, booleanType) || !!(kind & 16384 /* Void */) && isTypeAssignableTo(source, voidType) || !!(kind & 131072 /* Never */) && isTypeAssignableTo(source, neverType) || !!(kind & 65536 /* Null */) && isTypeAssignableTo(source, nullType) || !!(kind & 32768 /* Undefined */) && isTypeAssignableTo(source, undefinedType) || !!(kind & 4096 /* ESSymbol */) && isTypeAssignableTo(source, esSymbolType) || !!(kind & 67108864 /* NonPrimitive */) && isTypeAssignableTo(source, nonPrimitiveType); - } - function allTypesAssignableToKind(source, kind, strict) { - return source.flags & 1048576 /* Union */ ? every(source.types, (subType) => allTypesAssignableToKind(subType, kind, strict)) : isTypeAssignableToKind(source, kind, strict); - } - function isConstEnumObjectType(type) { - return !!(getObjectFlags(type) & 16 /* Anonymous */) && !!type.symbol && isConstEnumSymbol(type.symbol); - } - function isConstEnumSymbol(symbol) { - return (symbol.flags & 128 /* ConstEnum */) !== 0; - } - function getSymbolHasInstanceMethodOfObjectType(type) { - const hasInstancePropertyName = getPropertyNameForKnownSymbolName("hasInstance"); - if (allTypesAssignableToKind(type, 67108864 /* NonPrimitive */)) { - const hasInstanceProperty = getPropertyOfType(type, hasInstancePropertyName); - if (hasInstanceProperty) { - const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty); - if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) { - return hasInstancePropertyType; - } - } - } - } - function checkInstanceOfExpression(left, right, leftType, rightType, checkMode) { - if (leftType === silentNeverType || rightType === silentNeverType) { - return silentNeverType; - } - if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 402784252 /* Primitive */)) { - error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); - } - Debug.assert(isInstanceOfExpression(left.parent)); - const signature = getResolvedSignature( - left.parent, - /*candidatesOutArray*/ - void 0, - checkMode - ); - if (signature === resolvingSignature) { - return silentNeverType; - } - const returnType = getReturnTypeOfSignature(signature); - checkTypeAssignableTo(returnType, booleanType, right, Diagnostics.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); - return booleanType; - } - function hasEmptyObjectIntersection(type) { - return someType(type, (t) => t === unknownEmptyObjectType || !!(t.flags & 2097152 /* Intersection */) && isEmptyAnonymousObjectType(getBaseConstraintOrType(t))); - } - function checkInExpression(left, right, leftType, rightType) { - if (leftType === silentNeverType || rightType === silentNeverType) { - return silentNeverType; - } - if (isPrivateIdentifier(left)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { - checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */); - } - if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) { - const isUncheckedJS = isUncheckedJSSuggestion( - left, - rightType.symbol, - /*excludeClasses*/ - true - ); - reportNonexistentProperty(left, rightType, isUncheckedJS); - } - } else { - checkTypeAssignableTo(checkNonNullType(leftType, left), stringNumberSymbolType, left); - } - if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) { - if (hasEmptyObjectIntersection(rightType)) { - error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); - } - } - return booleanType; - } - function checkObjectLiteralAssignment(node, sourceType, rightIsThis) { - const properties = node.properties; - if (strictNullChecks && properties.length === 0) { - return checkNonNullType(sourceType, node); - } - for (let i = 0; i < properties.length; i++) { - checkObjectLiteralDestructuringPropertyAssignment(node, sourceType, i, properties, rightIsThis); - } - return sourceType; - } - function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { - const properties = node.properties; - const property = properties[propertyIndex]; - if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { - const name = property.name; - const exprType = getLiteralTypeFromPropertyName(name); - if (isTypeUsableAsPropertyName(exprType)) { - const text = getPropertyNameFromType(exprType); - const prop = getPropertyOfType(objectLiteralType, text); - if (prop) { - markPropertyAsReferenced(prop, property, rightIsThis); - checkPropertyAccessibility( - property, - /*isSuper*/ - false, - /*writing*/ - true, - objectLiteralType, - prop - ); - } - } - const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */ | (hasDefaultValue(property) ? 16 /* AllowMissing */ : 0), name); - const type = getFlowTypeOfDestructuring(property, elementType); - return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); - } else if (property.kind === 305 /* SpreadAssignment */) { - if (propertyIndex < properties.length - 1) { - error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); - } else { - if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) { - checkExternalEmitHelpers(property, 4 /* Rest */); - } - const nonRestNames = []; - if (allProperties) { - for (const otherProperty of allProperties) { - if (!isSpreadAssignment(otherProperty)) { - nonRestNames.push(otherProperty.name); - } - } - } - const type = getRestType(objectLiteralType, nonRestNames, objectLiteralType.symbol); - checkGrammarForDisallowedTrailingComma(allProperties, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); - return checkDestructuringAssignment(property.expression, type); - } - } else { - error(property, Diagnostics.Property_assignment_expected); - } - } - function checkArrayLiteralAssignment(node, sourceType, checkMode) { - const elements = node.elements; - if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) { - checkExternalEmitHelpers(node, 512 /* Read */); - } - const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType; - let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; - for (let i = 0; i < elements.length; i++) { - let type = possiblyOutOfBoundsType; - if (node.elements[i].kind === 230 /* SpreadElement */) { - type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); - } - checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); - } - return sourceType; - } - function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { - const elements = node.elements; - const element = elements[elementIndex]; - if (element.kind !== 232 /* OmittedExpression */) { - if (element.kind !== 230 /* SpreadElement */) { - const indexType = getNumberLiteralType(elementIndex); - if (isArrayLikeType(sourceType)) { - const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* AllowMissing */ : 0); - const elementType2 = getIndexedAccessTypeOrUndefined(sourceType, indexType, accessFlags, createSyntheticExpression(element, indexType)) || errorType; - const assignedType = hasDefaultValue(element) ? getTypeWithFacts(elementType2, 524288 /* NEUndefined */) : elementType2; - const type = getFlowTypeOfDestructuring(element, assignedType); - return checkDestructuringAssignment(element, type, checkMode); - } - return checkDestructuringAssignment(element, elementType, checkMode); - } - if (elementIndex < elements.length - 1) { - error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); - } else { - const restExpression = element.expression; - if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { - error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); - } else { - checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); - const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType); - return checkDestructuringAssignment(restExpression, type, checkMode); - } - } - } - return void 0; - } - function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { - let target; - if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { - const prop = exprOrAssignment; - if (prop.objectAssignmentInitializer) { - if (strictNullChecks && !hasTypeFacts(checkExpression(prop.objectAssignmentInitializer), 16777216 /* IsUndefined */)) { - sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); - } - checkBinaryLikeExpression(prop.name, prop.equalsToken, prop.objectAssignmentInitializer, checkMode); - } - target = exprOrAssignment.name; - } else { - target = exprOrAssignment; - } - if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { - checkBinaryExpression(target, checkMode); - target = target.left; - if (strictNullChecks) { - sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); - } - } - if (target.kind === 210 /* ObjectLiteralExpression */) { - return checkObjectLiteralAssignment(target, sourceType, rightIsThis); - } - if (target.kind === 209 /* ArrayLiteralExpression */) { - return checkArrayLiteralAssignment(target, sourceType, checkMode); - } - return checkReferenceAssignment(target, sourceType, checkMode); - } - function checkReferenceAssignment(target, sourceType, checkMode) { - const targetType = checkExpression(target, checkMode); - const error2 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; - const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; - if (checkReferenceExpression(target, error2, optionalError)) { - checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); - } - if (isPrivateIdentifierPropertyAccessExpression(target)) { - checkExternalEmitHelpers(target.parent, 1048576 /* ClassPrivateFieldSet */); - } - return sourceType; - } - function isSideEffectFree(node) { - node = skipParentheses(node); - switch (node.kind) { - case 80 /* Identifier */: - case 11 /* StringLiteral */: - case 14 /* RegularExpressionLiteral */: - case 215 /* TaggedTemplateExpression */: - case 228 /* TemplateExpression */: - case 15 /* NoSubstitutionTemplateLiteral */: - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - case 106 /* NullKeyword */: - case 157 /* UndefinedKeyword */: - case 218 /* FunctionExpression */: - case 231 /* ClassExpression */: - case 219 /* ArrowFunction */: - case 209 /* ArrayLiteralExpression */: - case 210 /* ObjectLiteralExpression */: - case 221 /* TypeOfExpression */: - case 235 /* NonNullExpression */: - case 285 /* JsxSelfClosingElement */: - case 284 /* JsxElement */: - return true; - case 227 /* ConditionalExpression */: - return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); - case 226 /* BinaryExpression */: - if (isAssignmentOperator(node.operatorToken.kind)) { - return false; - } - return isSideEffectFree(node.left) && isSideEffectFree(node.right); - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - switch (node.operator) { - case 54 /* ExclamationToken */: - case 40 /* PlusToken */: - case 41 /* MinusToken */: - case 55 /* TildeToken */: - return true; - } - return false; - // Some forms listed here for clarity - case 222 /* VoidExpression */: - // Explicit opt-out - case 216 /* TypeAssertionExpression */: - // Not SEF, but can produce useful type warnings - case 234 /* AsExpression */: - // Not SEF, but can produce useful type warnings - default: - return false; - } - } - function isTypeEqualityComparableTo(source, target) { - return (target.flags & 98304 /* Nullable */) !== 0 || isTypeComparableTo(source, target); - } - function createCheckBinaryExpression() { - const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState); - return (node, checkMode) => { - const result = trampoline(node, checkMode); - Debug.assertIsDefined(result); - return result; - }; - function onEnter(node, state, checkMode) { - if (state) { - state.stackIndex++; - state.skip = false; - setLeftType( - state, - /*type*/ - void 0 - ); - setLastResult( - state, - /*type*/ - void 0 - ); - } else { - state = { - checkMode, - skip: false, - stackIndex: 0, - typeStack: [void 0, void 0] - }; - } - if (isInJSFile(node) && getAssignedExpandoInitializer(node)) { - state.skip = true; - setLastResult(state, checkExpression(node.right, checkMode)); - return state; - } - checkNullishCoalesceOperands(node); - const operator = node.operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { - state.skip = true; - setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); - return state; - } - return state; - } - function onLeft(left, state, _node) { - if (!state.skip) { - return maybeCheckExpression(state, left); - } - } - function onOperator(operatorToken, state, node) { - if (!state.skip) { - const leftType = getLastResult(state); - Debug.assertIsDefined(leftType); - setLeftType(state, leftType); - setLastResult( - state, - /*type*/ - void 0 - ); - const operator = operatorToken.kind; - if (isLogicalOrCoalescingBinaryOperator(operator)) { - let parent = node.parent; - while (parent.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent)) { - parent = parent.parent; - } - if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent)) { - checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.left, leftType, isIfStatement(parent) ? parent.thenStatement : void 0); - } - if (isBinaryLogicalOperator(operator)) { - checkTruthinessOfType(leftType, node.left); - } - } - } - } - function onRight(right, state, _node) { - if (!state.skip) { - return maybeCheckExpression(state, right); - } - } - function onExit(node, state) { - let result; - if (state.skip) { - result = getLastResult(state); - } else { - const leftType = getLeftType(state); - Debug.assertIsDefined(leftType); - const rightType = getLastResult(state); - Debug.assertIsDefined(rightType); - result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); - } - state.skip = false; - setLeftType( - state, - /*type*/ - void 0 - ); - setLastResult( - state, - /*type*/ - void 0 - ); - state.stackIndex--; - return result; - } - function foldState(state, result, _side) { - setLastResult(state, result); - return state; - } - function maybeCheckExpression(state, node) { - if (isBinaryExpression(node)) { - return node; - } - setLastResult(state, checkExpression(node, state.checkMode)); - } - function getLeftType(state) { - return state.typeStack[state.stackIndex]; - } - function setLeftType(state, type) { - state.typeStack[state.stackIndex] = type; - } - function getLastResult(state) { - return state.typeStack[state.stackIndex + 1]; - } - function setLastResult(state, type) { - state.typeStack[state.stackIndex + 1] = type; - } - } - function checkNullishCoalesceOperands(node) { - const { left, operatorToken, right } = node; - if (operatorToken.kind === 61 /* QuestionQuestionToken */) { - if (isBinaryExpression(left) && (left.operatorToken.kind === 57 /* BarBarToken */ || left.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { - grammarErrorOnNode(left, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(left.operatorToken.kind), tokenToString(operatorToken.kind)); - } - if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { - grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind)); - } - const leftTarget = skipOuterExpressions(left, 63 /* All */); - const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget); - if (nullishSemantics !== 3 /* Sometimes */) { - if (node.parent.kind === 226 /* BinaryExpression */) { - error(leftTarget, Diagnostics.This_binary_expression_is_never_nullish_Are_you_missing_parentheses); - } else { - if (nullishSemantics === 1 /* Always */) { - error(leftTarget, Diagnostics.This_expression_is_always_nullish); - } else { - error(leftTarget, Diagnostics.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish); - } - } - } - } - } - function getSyntacticNullishnessSemantics(node) { - node = skipOuterExpressions(node); - switch (node.kind) { - case 223 /* AwaitExpression */: - case 213 /* CallExpression */: - case 215 /* TaggedTemplateExpression */: - case 212 /* ElementAccessExpression */: - case 236 /* MetaProperty */: - case 214 /* NewExpression */: - case 211 /* PropertyAccessExpression */: - case 229 /* YieldExpression */: - case 110 /* ThisKeyword */: - return 3 /* Sometimes */; - case 226 /* BinaryExpression */: - switch (node.operatorToken.kind) { - case 64 /* EqualsToken */: - case 61 /* QuestionQuestionToken */: - case 78 /* QuestionQuestionEqualsToken */: - case 57 /* BarBarToken */: - case 76 /* BarBarEqualsToken */: - case 56 /* AmpersandAmpersandToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - return 3 /* Sometimes */; - case 28 /* CommaToken */: - return getSyntacticNullishnessSemantics(node.right); - } - return 2 /* Never */; - case 227 /* ConditionalExpression */: - return getSyntacticNullishnessSemantics(node.whenTrue) | getSyntacticNullishnessSemantics(node.whenFalse); - case 106 /* NullKeyword */: - return 1 /* Always */; - case 80 /* Identifier */: - if (getResolvedSymbol(node) === undefinedSymbol) { - return 1 /* Always */; - } - return 3 /* Sometimes */; - } - return 2 /* Never */; - } - function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { - const operator = operatorToken.kind; - if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { - return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); - } - let leftType; - if (isBinaryLogicalOperator(operator)) { - leftType = checkTruthinessExpression(left, checkMode); - } else { - leftType = checkExpression(left, checkMode); - } - const rightType = checkExpression(right, checkMode); - return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); - } - function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { - const operator = operatorToken.kind; - switch (operator) { - case 42 /* AsteriskToken */: - case 43 /* AsteriskAsteriskToken */: - case 67 /* AsteriskEqualsToken */: - case 68 /* AsteriskAsteriskEqualsToken */: - case 44 /* SlashToken */: - case 69 /* SlashEqualsToken */: - case 45 /* PercentToken */: - case 70 /* PercentEqualsToken */: - case 41 /* MinusToken */: - case 66 /* MinusEqualsToken */: - case 48 /* LessThanLessThanToken */: - case 71 /* LessThanLessThanEqualsToken */: - case 49 /* GreaterThanGreaterThanToken */: - case 72 /* GreaterThanGreaterThanEqualsToken */: - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - case 52 /* BarToken */: - case 75 /* BarEqualsToken */: - case 53 /* CaretToken */: - case 79 /* CaretEqualsToken */: - case 51 /* AmpersandToken */: - case 74 /* AmpersandEqualsToken */: - if (leftType === silentNeverType || rightType === silentNeverType) { - return silentNeverType; - } - leftType = checkNonNullType(leftType, left); - rightType = checkNonNullType(rightType, right); - let suggestedOperator; - if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) { - error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); - return numberType; - } else { - const leftOk = checkArithmeticOperandType( - left, - leftType, - Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, - /*isAwaitValid*/ - true - ); - const rightOk = checkArithmeticOperandType( - right, - rightType, - Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, - /*isAwaitValid*/ - true - ); - let resultType2; - if (isTypeAssignableToKind(leftType, 3 /* AnyOrUnknown */) && isTypeAssignableToKind(rightType, 3 /* AnyOrUnknown */) || // Or, if neither could be bigint, implicit coercion results in a number result - !(maybeTypeOfKind(leftType, 2112 /* BigIntLike */) || maybeTypeOfKind(rightType, 2112 /* BigIntLike */))) { - resultType2 = numberType; - } else if (bothAreBigIntLike(leftType, rightType)) { - switch (operator) { - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - reportOperatorError(); - break; - case 43 /* AsteriskAsteriskToken */: - case 68 /* AsteriskAsteriskEqualsToken */: - if (languageVersion < 3 /* ES2016 */) { - error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); - } - } - resultType2 = bigintType; - } else { - reportOperatorError(bothAreBigIntLike); - resultType2 = errorType; - } - if (leftOk && rightOk) { - checkAssignmentOperator(resultType2); - switch (operator) { - case 48 /* LessThanLessThanToken */: - case 71 /* LessThanLessThanEqualsToken */: - case 49 /* GreaterThanGreaterThanToken */: - case 72 /* GreaterThanGreaterThanEqualsToken */: - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - const rhsEval = evaluate(right); - if (typeof rhsEval.value === "number" && Math.abs(rhsEval.value) >= 32) { - errorOrSuggestion( - isEnumMember(walkUpParenthesizedExpressions(right.parent.parent)), - // elevate from suggestion to error within an enum member - errorNode || operatorToken, - Diagnostics.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2, - getTextOfNode(left), - tokenToString(operator), - rhsEval.value % 32 - ); - } - break; - default: - break; - } - } - return resultType2; - } - case 40 /* PlusToken */: - case 65 /* PlusEqualsToken */: - if (leftType === silentNeverType || rightType === silentNeverType) { - return silentNeverType; - } - if (!isTypeAssignableToKind(leftType, 402653316 /* StringLike */) && !isTypeAssignableToKind(rightType, 402653316 /* StringLike */)) { - leftType = checkNonNullType(leftType, left); - rightType = checkNonNullType(rightType, right); - } - let resultType; - if (isTypeAssignableToKind( - leftType, - 296 /* NumberLike */, - /*strict*/ - true - ) && isTypeAssignableToKind( - rightType, - 296 /* NumberLike */, - /*strict*/ - true - )) { - resultType = numberType; - } else if (isTypeAssignableToKind( - leftType, - 2112 /* BigIntLike */, - /*strict*/ - true - ) && isTypeAssignableToKind( - rightType, - 2112 /* BigIntLike */, - /*strict*/ - true - )) { - resultType = bigintType; - } else if (isTypeAssignableToKind( - leftType, - 402653316 /* StringLike */, - /*strict*/ - true - ) || isTypeAssignableToKind( - rightType, - 402653316 /* StringLike */, - /*strict*/ - true - )) { - resultType = stringType; - } else if (isTypeAny(leftType) || isTypeAny(rightType)) { - resultType = isErrorType(leftType) || isErrorType(rightType) ? errorType : anyType; - } - if (resultType && !checkForDisallowedESSymbolOperand(operator)) { - return resultType; - } - if (!resultType) { - const closeEnoughKind = 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 3 /* AnyOrUnknown */; - reportOperatorError( - (left2, right2) => isTypeAssignableToKind(left2, closeEnoughKind) && isTypeAssignableToKind(right2, closeEnoughKind) - ); - return anyType; - } - if (operator === 65 /* PlusEqualsToken */) { - checkAssignmentOperator(resultType); - } - return resultType; - case 30 /* LessThanToken */: - case 32 /* GreaterThanToken */: - case 33 /* LessThanEqualsToken */: - case 34 /* GreaterThanEqualsToken */: - if (checkForDisallowedESSymbolOperand(operator)) { - leftType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(leftType, left)); - rightType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(rightType, right)); - reportOperatorErrorUnless((left2, right2) => { - if (isTypeAny(left2) || isTypeAny(right2)) { - return true; - } - const leftAssignableToNumber = isTypeAssignableTo(left2, numberOrBigIntType); - const rightAssignableToNumber = isTypeAssignableTo(right2, numberOrBigIntType); - return leftAssignableToNumber && rightAssignableToNumber || !leftAssignableToNumber && !rightAssignableToNumber && areTypesComparable(left2, right2); - }); - } - return booleanType; - case 35 /* EqualsEqualsToken */: - case 36 /* ExclamationEqualsToken */: - case 37 /* EqualsEqualsEqualsToken */: - case 38 /* ExclamationEqualsEqualsToken */: - if (!(checkMode && checkMode & 64 /* TypeOnly */)) { - if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != - (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { - const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; - error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); - } - checkNaNEquality(errorNode, operator, left, right); - reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); - } - return booleanType; - case 104 /* InstanceOfKeyword */: - return checkInstanceOfExpression(left, right, leftType, rightType, checkMode); - case 103 /* InKeyword */: - return checkInExpression(left, right, leftType, rightType); - case 56 /* AmpersandAmpersandToken */: - case 77 /* AmpersandAmpersandEqualsToken */: { - const resultType2 = hasTypeFacts(leftType, 4194304 /* Truthy */) ? getUnionType([extractDefinitelyFalsyTypes(strictNullChecks ? leftType : getBaseTypeOfLiteralType(rightType)), rightType]) : leftType; - if (operator === 77 /* AmpersandAmpersandEqualsToken */) { - checkAssignmentOperator(rightType); - } - return resultType2; - } - case 57 /* BarBarToken */: - case 76 /* BarBarEqualsToken */: { - const resultType2 = hasTypeFacts(leftType, 8388608 /* Falsy */) ? getUnionType([getNonNullableType(removeDefinitelyFalsyTypes(leftType)), rightType], 2 /* Subtype */) : leftType; - if (operator === 76 /* BarBarEqualsToken */) { - checkAssignmentOperator(rightType); - } - return resultType2; - } - case 61 /* QuestionQuestionToken */: - case 78 /* QuestionQuestionEqualsToken */: { - const resultType2 = hasTypeFacts(leftType, 262144 /* EQUndefinedOrNull */) ? getUnionType([getNonNullableType(leftType), rightType], 2 /* Subtype */) : leftType; - if (operator === 78 /* QuestionQuestionEqualsToken */) { - checkAssignmentOperator(rightType); - } - return resultType2; - } - case 64 /* EqualsToken */: - const declKind = isBinaryExpression(left.parent) ? getAssignmentDeclarationKind(left.parent) : 0 /* None */; - checkAssignmentDeclaration(declKind, rightType); - if (isAssignmentDeclaration2(declKind)) { - if (!(rightType.flags & 524288 /* Object */) || declKind !== 2 /* ModuleExports */ && declKind !== 6 /* Prototype */ && !isEmptyObjectType(rightType) && !isFunctionObjectType(rightType) && !(getObjectFlags(rightType) & 1 /* Class */)) { - checkAssignmentOperator(rightType); - } - return leftType; - } else { - checkAssignmentOperator(rightType); - return rightType; - } - case 28 /* CommaToken */: - if (!compilerOptions.allowUnreachableCode && isSideEffectFree(left) && !isIndirectCall(left.parent)) { - const sf = getSourceFileOfNode(left); - const sourceText = sf.text; - const start = skipTrivia(sourceText, left.pos); - const isInDiag2657 = sf.parseDiagnostics.some((diag2) => { - if (diag2.code !== Diagnostics.JSX_expressions_must_have_one_parent_element.code) return false; - return textSpanContainsPosition(diag2, start); - }); - if (!isInDiag2657) error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); - } - return rightType; - default: - return Debug.fail(); - } - function bothAreBigIntLike(left2, right2) { - return isTypeAssignableToKind(left2, 2112 /* BigIntLike */) && isTypeAssignableToKind(right2, 2112 /* BigIntLike */); - } - function checkAssignmentDeclaration(kind, rightType2) { - if (kind === 2 /* ModuleExports */) { - for (const prop of getPropertiesOfObjectType(rightType2)) { - const propType = getTypeOfSymbol(prop); - if (propType.symbol && propType.symbol.flags & 32 /* Class */) { - const name = prop.escapedName; - const symbol = resolveName( - prop.valueDeclaration, - name, - 788968 /* Type */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - if ((symbol == null ? void 0 : symbol.declarations) && symbol.declarations.some(isJSDocTypedefTag)) { - addDuplicateDeclarationErrorsForSymbols(symbol, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), prop); - addDuplicateDeclarationErrorsForSymbols(prop, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), symbol); - } - } - } - } - } - function isIndirectCall(node) { - return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. - (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); - } - function checkForDisallowedESSymbolOperand(operator2) { - const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288 /* ESSymbolLike */) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288 /* ESSymbolLike */) ? right : void 0; - if (offendingSymbolOperand) { - error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); - return false; - } - return true; - } - function getSuggestedBooleanOperator(operator2) { - switch (operator2) { - case 52 /* BarToken */: - case 75 /* BarEqualsToken */: - return 57 /* BarBarToken */; - case 53 /* CaretToken */: - case 79 /* CaretEqualsToken */: - return 38 /* ExclamationEqualsEqualsToken */; - case 51 /* AmpersandToken */: - case 74 /* AmpersandEqualsToken */: - return 56 /* AmpersandAmpersandToken */; - default: - return void 0; - } - } - function checkAssignmentOperator(valueType) { - if (isAssignmentOperator(operator)) { - addLazyDiagnostic(checkAssignmentOperatorWorker); - } - function checkAssignmentOperatorWorker() { - let assigneeType = leftType; - if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { - assigneeType = checkPropertyAccessExpression( - left, - /*checkMode*/ - void 0, - /*writeOnly*/ - true - ); - } - if (checkReferenceExpression(left, Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)) { - let headMessage; - if (exactOptionalPropertyTypes && isPropertyAccessExpression(left) && maybeTypeOfKind(valueType, 32768 /* Undefined */)) { - const target = getTypeOfPropertyOfType(getTypeOfExpression(left.expression), left.name.escapedText); - if (isExactOptionalPropertyMismatch(valueType, target)) { - headMessage = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target; - } - } - checkTypeAssignableToAndOptionallyElaborate(valueType, assigneeType, left, right, headMessage); - } - } - } - function isAssignmentDeclaration2(kind) { - var _a; - switch (kind) { - case 2 /* ModuleExports */: - return true; - case 1 /* ExportsProperty */: - case 5 /* Property */: - case 6 /* Prototype */: - case 3 /* PrototypeProperty */: - case 4 /* ThisProperty */: - const symbol = getSymbolOfNode(left); - const init = getAssignedExpandoInitializer(right); - return !!init && isObjectLiteralExpression(init) && !!((_a = symbol == null ? void 0 : symbol.exports) == null ? void 0 : _a.size); - default: - return false; - } - } - function reportOperatorErrorUnless(typesAreCompatible) { - if (!typesAreCompatible(leftType, rightType)) { - reportOperatorError(typesAreCompatible); - return true; - } - return false; - } - function reportOperatorError(isRelated) { - let wouldWorkWithAwait = false; - const errNode = errorNode || operatorToken; - if (isRelated) { - const awaitedLeftType = getAwaitedTypeNoAlias(leftType); - const awaitedRightType = getAwaitedTypeNoAlias(rightType); - wouldWorkWithAwait = !(awaitedLeftType === leftType && awaitedRightType === rightType) && !!(awaitedLeftType && awaitedRightType) && isRelated(awaitedLeftType, awaitedRightType); - } - let effectiveLeft = leftType; - let effectiveRight = rightType; - if (!wouldWorkWithAwait && isRelated) { - [effectiveLeft, effectiveRight] = getBaseTypesIfUnrelated(leftType, rightType, isRelated); - } - const [leftStr, rightStr] = getTypeNamesForErrorDisplay(effectiveLeft, effectiveRight); - if (!tryGiveBetterPrimaryError(errNode, wouldWorkWithAwait, leftStr, rightStr)) { - errorAndMaybeSuggestAwait( - errNode, - wouldWorkWithAwait, - Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2, - tokenToString(operatorToken.kind), - leftStr, - rightStr - ); - } - } - function tryGiveBetterPrimaryError(errNode, maybeMissingAwait, leftStr, rightStr) { - switch (operatorToken.kind) { - case 37 /* EqualsEqualsEqualsToken */: - case 35 /* EqualsEqualsToken */: - case 38 /* ExclamationEqualsEqualsToken */: - case 36 /* ExclamationEqualsToken */: - return errorAndMaybeSuggestAwait( - errNode, - maybeMissingAwait, - Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap, - leftStr, - rightStr - ); - default: - return void 0; - } - } - function checkNaNEquality(errorNode2, operator2, left2, right2) { - const isLeftNaN = isGlobalNaN(skipParentheses(left2)); - const isRightNaN = isGlobalNaN(skipParentheses(right2)); - if (isLeftNaN || isRightNaN) { - const err = error(errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 37 /* EqualsEqualsEqualsToken */ || operator2 === 35 /* EqualsEqualsToken */ ? 97 /* FalseKeyword */ : 112 /* TrueKeyword */)); - if (isLeftNaN && isRightNaN) return; - const operatorString = operator2 === 38 /* ExclamationEqualsEqualsToken */ || operator2 === 36 /* ExclamationEqualsToken */ ? tokenToString(54 /* ExclamationToken */) : ""; - const location = isLeftNaN ? right2 : left2; - const expression = skipParentheses(location); - addRelatedInfo(err, createDiagnosticForNode(location, Diagnostics.Did_you_mean_0, `${operatorString}Number.isNaN(${isEntityNameExpression(expression) ? entityNameToString(expression) : "..."})`)); - } - } - function isGlobalNaN(expr) { - if (isIdentifier(expr) && expr.escapedText === "NaN") { - const globalNaNSymbol = getGlobalNaNSymbol(); - return !!globalNaNSymbol && globalNaNSymbol === getResolvedSymbol(expr); - } - return false; - } - } - function getBaseTypesIfUnrelated(leftType, rightType, isRelated) { - let effectiveLeft = leftType; - let effectiveRight = rightType; - const leftBase = getBaseTypeOfLiteralType(leftType); - const rightBase = getBaseTypeOfLiteralType(rightType); - if (!isRelated(leftBase, rightBase)) { - effectiveLeft = leftBase; - effectiveRight = rightBase; - } - return [effectiveLeft, effectiveRight]; - } - function checkYieldExpression(node) { - addLazyDiagnostic(checkYieldExpressionGrammar); - const func = getContainingFunction(node); - if (!func) return anyType; - const functionFlags = getFunctionFlags(func); - if (!(functionFlags & 1 /* Generator */)) { - return anyType; - } - const isAsync = (functionFlags & 2 /* Async */) !== 0; - if (node.asteriskToken) { - if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) { - checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */); - } - if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) { - checkExternalEmitHelpers(node, 256 /* Values */); - } - } - let returnType = getReturnTypeFromAnnotation(func); - if (returnType && returnType.flags & 1048576 /* Union */) { - returnType = filterType(returnType, (t) => checkGeneratorInstantiationAssignabilityToReturnType( - t, - functionFlags, - /*errorNode*/ - void 0 - )); - } - const iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync); - const signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType; - const signatureNextType = iterationTypes && iterationTypes.nextType || anyType; - const yieldExpressionType = node.expression ? checkExpression(node.expression) : undefinedWideningType; - const yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, signatureNextType, isAsync); - if (returnType && yieldedType) { - checkTypeAssignableToAndOptionallyElaborate(yieldedType, signatureYieldType, node.expression || node, node.expression); - } - if (node.asteriskToken) { - const use = isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */; - return getIterationTypeOfIterable(use, 1 /* Return */, yieldExpressionType, node.expression) || anyType; - } else if (returnType) { - return getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, isAsync) || anyType; - } - let type = getContextualIterationType(2 /* Next */, func); - if (!type) { - type = anyType; - addLazyDiagnostic(() => { - if (noImplicitAny && !expressionResultIsUnused(node)) { - const contextualType = getContextualType( - node, - /*contextFlags*/ - void 0 - ); - if (!contextualType || isTypeAny(contextualType)) { - error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); - } - } - }); - } - return type; - function checkYieldExpressionGrammar() { - if (!(node.flags & 16384 /* YieldContext */)) { - grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); - } - if (isInParameterInitializerBeforeContainingFunction(node)) { - error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); - } - } - } - function checkConditionalExpression(node, checkMode) { - const type = checkTruthinessExpression(node.condition, checkMode); - checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.condition, type, node.whenTrue); - const type1 = checkExpression(node.whenTrue, checkMode); - const type2 = checkExpression(node.whenFalse, checkMode); - return getUnionType([type1, type2], 2 /* Subtype */); - } - function isTemplateLiteralContext(node) { - const parent = node.parent; - return isParenthesizedExpression(parent) && isTemplateLiteralContext(parent) || isElementAccessExpression(parent) && parent.argumentExpression === node; - } - function checkTemplateExpression(node) { - const texts = [node.head.text]; - const types = []; - for (const span of node.templateSpans) { - const type = checkExpression(span.expression); - if (maybeTypeOfKindConsideringBaseConstraint(type, 12288 /* ESSymbolLike */)) { - error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); - } - texts.push(span.literal.text); - types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); - } - const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluate(node).value; - if (evaluated) { - return getFreshTypeOfLiteralType(getStringLiteralType(evaluated)); - } - if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType( - node, - /*contextFlags*/ - void 0 - ) || unknownType, isTemplateLiteralContextualType)) { - return getTemplateLiteralType(texts, types); - } - return stringType; - } - function isTemplateLiteralContextualType(type) { - return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); - } - function getContextNode(node) { - if (isJsxAttributes(node) && !isJsxSelfClosingElement(node.parent)) { - return node.parent.parent; - } - return node; - } - function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) { - const contextNode = getContextNode(node); - pushContextualType( - contextNode, - contextualType, - /*isCache*/ - false - ); - pushInferenceContext(contextNode, inferenceContext); - const type = checkExpression(node, checkMode | 1 /* Contextual */ | (inferenceContext ? 2 /* Inferential */ : 0)); - if (inferenceContext && inferenceContext.intraExpressionInferenceSites) { - inferenceContext.intraExpressionInferenceSites = void 0; - } - const result = maybeTypeOfKind(type, 2944 /* Literal */) && isLiteralOfContextualType(type, instantiateContextualType( - contextualType, - node, - /*contextFlags*/ - void 0 - )) ? getRegularTypeOfLiteralType(type) : type; - popInferenceContext(); - popContextualType(); - return result; - } - function checkExpressionCached(node, checkMode) { - if (checkMode) { - return checkExpression(node, checkMode); - } - const links = getNodeLinks(node); - if (!links.resolvedType) { - const saveFlowLoopStart = flowLoopStart; - const saveFlowTypeCache = flowTypeCache; - flowLoopStart = flowLoopCount; - flowTypeCache = void 0; - links.resolvedType = checkExpression(node, checkMode); - flowTypeCache = saveFlowTypeCache; - flowLoopStart = saveFlowLoopStart; - } - return links.resolvedType; - } - function isTypeAssertion(node) { - node = skipParentheses( - node, - /*excludeJSDocTypeAssertions*/ - true - ); - return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); - } - function checkDeclarationInitializer(declaration, checkMode, contextualType) { - const initializer = getEffectiveInitializer(declaration); - if (isInJSFile(declaration)) { - const typeNode = tryGetJSDocSatisfiesTypeNode(declaration); - if (typeNode) { - return checkSatisfiesExpressionWorker(initializer, typeNode, checkMode); - } - } - const type = getQuickTypeOfExpression(initializer) || (contextualType ? checkExpressionWithContextualType( - initializer, - contextualType, - /*inferenceContext*/ - void 0, - checkMode || 0 /* Normal */ - ) : checkExpressionCached(initializer, checkMode)); - if (isParameter(isBindingElement(declaration) ? walkUpBindingElementsAndPatterns(declaration) : declaration)) { - if (declaration.name.kind === 206 /* ObjectBindingPattern */ && isObjectLiteralType(type)) { - return padObjectLiteralType(type, declaration.name); - } - if (declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type)) { - return padTupleType(type, declaration.name); - } - } - return type; - } - function padObjectLiteralType(type, pattern) { - let missingElements; - for (const e of pattern.elements) { - if (e.initializer) { - const name = getPropertyNameFromBindingElement(e); - if (name && !getPropertyOfType(type, name)) { - missingElements = append(missingElements, e); - } - } - } - if (!missingElements) { - return type; - } - const members = createSymbolTable(); - for (const prop of getPropertiesOfObjectType(type)) { - members.set(prop.escapedName, prop); - } - for (const e of missingElements) { - const symbol = createSymbol(4 /* Property */ | 16777216 /* Optional */, getPropertyNameFromBindingElement(e)); - symbol.links.type = getTypeFromBindingElement( - e, - /*includePatternInType*/ - false, - /*reportErrors*/ - false - ); - members.set(symbol.escapedName, symbol); - } - const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, getIndexInfosOfType(type)); - result.objectFlags = type.objectFlags; - return result; - } - function getPropertyNameFromBindingElement(e) { - const exprType = getLiteralTypeFromPropertyName(e.propertyName || e.name); - return isTypeUsableAsPropertyName(exprType) ? getPropertyNameFromType(exprType) : void 0; - } - function padTupleType(type, pattern) { - if (type.target.combinedFlags & 12 /* Variable */ || getTypeReferenceArity(type) >= pattern.elements.length) { - return type; - } - const patternElements = pattern.elements; - const elementTypes = getElementTypes(type).slice(); - const elementFlags = type.target.elementFlags.slice(); - for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { - const e = patternElements[i]; - if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { - elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( - e, - /*includePatternInType*/ - false, - /*reportErrors*/ - false - ) : anyType); - elementFlags.push(2 /* Optional */); - if (!isOmittedExpression(e) && !hasDefaultValue(e)) { - reportImplicitAny(e, anyType); - } - } - } - return createTupleType(elementTypes, elementFlags, type.target.readonly); - } - function widenTypeInferredFromInitializer(declaration, type) { - const widened = getWidenedLiteralTypeForInitializer(declaration, type); - if (isInJSFile(declaration)) { - if (isEmptyLiteralType(widened)) { - reportImplicitAny(declaration, anyType); - return anyType; - } else if (isEmptyArrayLiteralType(widened)) { - reportImplicitAny(declaration, anyArrayType); - return anyArrayType; - } - } - return widened; - } - function getWidenedLiteralTypeForInitializer(declaration, type) { - return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); - } - function isLiteralOfContextualType(candidateType, contextualType) { - if (contextualType) { - if (contextualType.flags & 3145728 /* UnionOrIntersection */) { - const types = contextualType.types; - return some(types, (t) => isLiteralOfContextualType(candidateType, t)); - } - if (contextualType.flags & 58982400 /* InstantiableNonPrimitive */) { - const constraint = getBaseConstraintOfType(contextualType) || unknownType; - return maybeTypeOfKind(constraint, 4 /* String */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) || maybeTypeOfKind(constraint, 8 /* Number */) && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) || maybeTypeOfKind(constraint, 64 /* BigInt */) && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) || maybeTypeOfKind(constraint, 4096 /* ESSymbol */) && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */) || isLiteralOfContextualType(candidateType, constraint); - } - return !!(contextualType.flags & (128 /* StringLiteral */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) || contextualType.flags & 256 /* NumberLiteral */ && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) || contextualType.flags & 2048 /* BigIntLiteral */ && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) || contextualType.flags & 512 /* BooleanLiteral */ && maybeTypeOfKind(candidateType, 512 /* BooleanLiteral */) || contextualType.flags & 8192 /* UniqueESSymbol */ && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */)); - } - return false; - } - function isConstContext(node) { - const parent = node.parent; - return isAssertionExpression(parent) && isConstTypeReference(parent.type) || isJSDocTypeAssertion(parent) && isConstTypeReference(getJSDocTypeAssertionType(parent)) || isValidConstAssertionArgument(node) && isConstTypeVariable(getContextualType(node, 0 /* None */)) || (isParenthesizedExpression(parent) || isArrayLiteralExpression(parent) || isSpreadElement(parent)) && isConstContext(parent) || (isPropertyAssignment(parent) || isShorthandPropertyAssignment(parent) || isTemplateSpan(parent)) && isConstContext(parent.parent); - } - function checkExpressionForMutableLocation(node, checkMode, forceTuple) { - const type = checkExpression(node, checkMode, forceTuple); - return isConstContext(node) || isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) : isTypeAssertion(node) ? type : getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType( - getContextualType( - node, - /*contextFlags*/ - void 0 - ), - node, - /*contextFlags*/ - void 0 - )); - } - function checkPropertyAssignment(node, checkMode) { - if (node.name.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.name); - } - return checkExpressionForMutableLocation(node.initializer, checkMode); - } - function checkObjectLiteralMethod(node, checkMode) { - checkGrammarMethod(node); - if (node.name.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.name); - } - const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - return instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); - } - function instantiateTypeWithSingleGenericCallSignature(node, type, checkMode) { - if (checkMode && checkMode & (2 /* Inferential */ | 8 /* SkipGenericFunctions */)) { - const callSignature = getSingleSignature( - type, - 0 /* Call */, - /*allowMembers*/ - true - ); - const constructSignature = getSingleSignature( - type, - 1 /* Construct */, - /*allowMembers*/ - true - ); - const signature = callSignature || constructSignature; - if (signature && signature.typeParameters) { - const contextualType = getApparentTypeOfContextualType(node, 2 /* NoConstraints */); - if (contextualType) { - const contextualSignature = getSingleSignature( - getNonNullableType(contextualType), - callSignature ? 0 /* Call */ : 1 /* Construct */, - /*allowMembers*/ - false - ); - if (contextualSignature && !contextualSignature.typeParameters) { - if (checkMode & 8 /* SkipGenericFunctions */) { - skippedGenericFunction(node, checkMode); - return anyFunctionType; - } - const context = getInferenceContext(node); - const returnType = context.signature && getReturnTypeOfSignature(context.signature); - const returnSignature = returnType && getSingleCallOrConstructSignature(returnType); - if (returnSignature && !returnSignature.typeParameters && !every(context.inferences, hasInferenceCandidates)) { - const uniqueTypeParameters = getUniqueTypeParameters(context, signature.typeParameters); - const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, uniqueTypeParameters); - const inferences = map(context.inferences, (info) => createInferenceInfo(info.typeParameter)); - applyToParameterTypes(instantiatedSignature, contextualSignature, (source, target) => { - inferTypes( - inferences, - source, - target, - /*priority*/ - 0, - /*contravariant*/ - true - ); - }); - if (some(inferences, hasInferenceCandidates)) { - applyToReturnTypes(instantiatedSignature, contextualSignature, (source, target) => { - inferTypes(inferences, source, target); - }); - if (!hasOverlappingInferences(context.inferences, inferences)) { - mergeInferences(context.inferences, inferences); - context.inferredTypeParameters = concatenate(context.inferredTypeParameters, uniqueTypeParameters); - return getOrCreateTypeFromSignature(instantiatedSignature); - } - } - } - return getOrCreateTypeFromSignature(instantiateSignatureInContextOf(signature, contextualSignature, context), flatMap(inferenceContexts, (c) => c && map(c.inferences, (i) => i.typeParameter)).slice()); - } - } - } - } - return type; - } - function skippedGenericFunction(node, checkMode) { - if (checkMode & 2 /* Inferential */) { - const context = getInferenceContext(node); - context.flags |= 4 /* SkippedGenericFunction */; - } - } - function hasInferenceCandidates(info) { - return !!(info.candidates || info.contraCandidates); - } - function hasInferenceCandidatesOrDefault(info) { - return !!(info.candidates || info.contraCandidates || hasTypeParameterDefault(info.typeParameter)); - } - function hasOverlappingInferences(a, b) { - for (let i = 0; i < a.length; i++) { - if (hasInferenceCandidates(a[i]) && hasInferenceCandidates(b[i])) { - return true; - } - } - return false; - } - function mergeInferences(target, source) { - for (let i = 0; i < target.length; i++) { - if (!hasInferenceCandidates(target[i]) && hasInferenceCandidates(source[i])) { - target[i] = source[i]; - } - } - } - function getUniqueTypeParameters(context, typeParameters) { - const result = []; - let oldTypeParameters; - let newTypeParameters; - for (const tp of typeParameters) { - const name = tp.symbol.escapedName; - if (hasTypeParameterByName(context.inferredTypeParameters, name) || hasTypeParameterByName(result, name)) { - const newName = getUniqueTypeParameterName(concatenate(context.inferredTypeParameters, result), name); - const symbol = createSymbol(262144 /* TypeParameter */, newName); - const newTypeParameter = createTypeParameter(symbol); - newTypeParameter.target = tp; - oldTypeParameters = append(oldTypeParameters, tp); - newTypeParameters = append(newTypeParameters, newTypeParameter); - result.push(newTypeParameter); - } else { - result.push(tp); - } - } - if (newTypeParameters) { - const mapper = createTypeMapper(oldTypeParameters, newTypeParameters); - for (const tp of newTypeParameters) { - tp.mapper = mapper; - } - } - return result; - } - function hasTypeParameterByName(typeParameters, name) { - return some(typeParameters, (tp) => tp.symbol.escapedName === name); - } - function getUniqueTypeParameterName(typeParameters, baseName) { - let len = baseName.length; - while (len > 1 && baseName.charCodeAt(len - 1) >= 48 /* _0 */ && baseName.charCodeAt(len - 1) <= 57 /* _9 */) len--; - const s = baseName.slice(0, len); - for (let index = 1; true; index++) { - const augmentedName = s + index; - if (!hasTypeParameterByName(typeParameters, augmentedName)) { - return augmentedName; - } - } - } - function getReturnTypeOfSingleNonGenericCallSignature(funcType) { - const signature = getSingleCallSignature(funcType); - if (signature && !signature.typeParameters) { - return getReturnTypeOfSignature(signature); - } - } - function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) { - const funcType = checkExpression(expr.expression); - const nonOptionalType = getOptionalExpressionType(funcType, expr.expression); - const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType); - return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType); - } - function getTypeOfExpression(node) { - const quickType = getQuickTypeOfExpression(node); - if (quickType) { - return quickType; - } - if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { - const cachedType = flowTypeCache[getNodeId(node)]; - if (cachedType) { - return cachedType; - } - } - const startInvocationCount = flowInvocationCount; - const type = checkExpression(node, 64 /* TypeOnly */); - if (flowInvocationCount !== startInvocationCount) { - const cache = flowTypeCache || (flowTypeCache = []); - cache[getNodeId(node)] = type; - setNodeFlags(node, node.flags | 268435456 /* TypeCached */); - } - return type; - } - function getQuickTypeOfExpression(node) { - let expr = skipParentheses( - node, - /*excludeJSDocTypeAssertions*/ - true - ); - if (isJSDocTypeAssertion(expr)) { - const type = getJSDocTypeAssertionType(expr); - if (!isConstTypeReference(type)) { - return getTypeFromTypeNode(type); - } - } - expr = skipParentheses(node); - if (isAwaitExpression(expr)) { - const type = getQuickTypeOfExpression(expr.expression); - return type ? getAwaitedType(type) : void 0; - } - if (isCallExpression(expr) && expr.expression.kind !== 108 /* SuperKeyword */ && !isRequireCall( - expr, - /*requireStringLiteralLikeArgument*/ - true - ) && !isSymbolOrSymbolForCall(expr)) { - return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression)); - } else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) { - return getTypeFromTypeNode(expr.type); - } else if (isLiteralExpression(node) || isBooleanLiteral(node)) { - return checkExpression(node); - } - return void 0; - } - function getContextFreeTypeOfExpression(node) { - const links = getNodeLinks(node); - if (links.contextFreeType) { - return links.contextFreeType; - } - pushContextualType( - node, - anyType, - /*isCache*/ - false - ); - const type = links.contextFreeType = checkExpression(node, 4 /* SkipContextSensitive */); - popContextualType(); - return type; - } - function checkExpression(node, checkMode, forceTuple) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkExpression", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); - const saveCurrentNode = currentNode; - currentNode = node; - instantiationCount = 0; - const uninstantiatedType = checkExpressionWorker(node, checkMode, forceTuple); - const type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); - if (isConstEnumObjectType(type)) { - checkConstEnumAccess(node, type); - } - currentNode = saveCurrentNode; - (_b = tracing) == null ? void 0 : _b.pop(); - return type; - } - function checkConstEnumAccess(node, type) { - const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; - if (!ok) { - error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); - } - if (compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax && ok && !resolveName( - node, - getFirstIdentifier(node), - 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false, - /*excludeGlobals*/ - true - )) { - Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); - const constEnumDeclaration = type.symbol.valueDeclaration; - const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath); - if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) { - error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); - } - } - } - function checkParenthesizedExpression(node, checkMode) { - if (hasJSDocNodes(node)) { - if (isJSDocSatisfiesExpression(node)) { - return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode); - } - if (isJSDocTypeAssertion(node)) { - return checkAssertionWorker(node, checkMode); - } - } - return checkExpression(node.expression, checkMode); - } - function checkExpressionWorker(node, checkMode, forceTuple) { - const kind = node.kind; - if (cancellationToken) { - switch (kind) { - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - cancellationToken.throwIfCancellationRequested(); - } - } - switch (kind) { - case 80 /* Identifier */: - return checkIdentifier(node, checkMode); - case 81 /* PrivateIdentifier */: - return checkPrivateIdentifierExpression(node); - case 110 /* ThisKeyword */: - return checkThisExpression(node); - case 108 /* SuperKeyword */: - return checkSuperExpression(node); - case 106 /* NullKeyword */: - return nullWideningType; - case 15 /* NoSubstitutionTemplateLiteral */: - case 11 /* StringLiteral */: - return hasSkipDirectInferenceFlag(node) ? blockedStringType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); - case 9 /* NumericLiteral */: - checkGrammarNumericLiteral(node); - return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); - case 10 /* BigIntLiteral */: - checkGrammarBigIntLiteral(node); - return getFreshTypeOfLiteralType(getBigIntLiteralType({ - negative: false, - base10Value: parsePseudoBigInt(node.text) - })); - case 112 /* TrueKeyword */: - return trueType; - case 97 /* FalseKeyword */: - return falseType; - case 228 /* TemplateExpression */: - return checkTemplateExpression(node); - case 14 /* RegularExpressionLiteral */: - return checkRegularExpressionLiteral(node); - case 209 /* ArrayLiteralExpression */: - return checkArrayLiteral(node, checkMode, forceTuple); - case 210 /* ObjectLiteralExpression */: - return checkObjectLiteral(node, checkMode); - case 211 /* PropertyAccessExpression */: - return checkPropertyAccessExpression(node, checkMode); - case 166 /* QualifiedName */: - return checkQualifiedName(node, checkMode); - case 212 /* ElementAccessExpression */: - return checkIndexedAccess(node, checkMode); - case 213 /* CallExpression */: - if (node.expression.kind === 102 /* ImportKeyword */) { - return checkImportCallExpression(node); - } - // falls through - case 214 /* NewExpression */: - return checkCallExpression(node, checkMode); - case 215 /* TaggedTemplateExpression */: - return checkTaggedTemplateExpression(node); - case 217 /* ParenthesizedExpression */: - return checkParenthesizedExpression(node, checkMode); - case 231 /* ClassExpression */: - return checkClassExpression(node); - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); - case 221 /* TypeOfExpression */: - return checkTypeOfExpression(node); - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - return checkAssertion(node, checkMode); - case 235 /* NonNullExpression */: - return checkNonNullAssertion(node); - case 233 /* ExpressionWithTypeArguments */: - return checkExpressionWithTypeArguments(node); - case 238 /* SatisfiesExpression */: - return checkSatisfiesExpression(node); - case 236 /* MetaProperty */: - return checkMetaProperty(node); - case 220 /* DeleteExpression */: - return checkDeleteExpression(node); - case 222 /* VoidExpression */: - return checkVoidExpression(node); - case 223 /* AwaitExpression */: - return checkAwaitExpression(node); - case 224 /* PrefixUnaryExpression */: - return checkPrefixUnaryExpression(node); - case 225 /* PostfixUnaryExpression */: - return checkPostfixUnaryExpression(node); - case 226 /* BinaryExpression */: - return checkBinaryExpression(node, checkMode); - case 227 /* ConditionalExpression */: - return checkConditionalExpression(node, checkMode); - case 230 /* SpreadElement */: - return checkSpreadExpression(node, checkMode); - case 232 /* OmittedExpression */: - return undefinedWideningType; - case 229 /* YieldExpression */: - return checkYieldExpression(node); - case 237 /* SyntheticExpression */: - return checkSyntheticExpression(node); - case 294 /* JsxExpression */: - return checkJsxExpression(node, checkMode); - case 284 /* JsxElement */: - return checkJsxElement(node, checkMode); - case 285 /* JsxSelfClosingElement */: - return checkJsxSelfClosingElement(node, checkMode); - case 288 /* JsxFragment */: - return checkJsxFragment(node); - case 292 /* JsxAttributes */: - return checkJsxAttributes(node, checkMode); - case 286 /* JsxOpeningElement */: - Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); - } - return errorType; - } - function checkTypeParameter(node) { - checkGrammarModifiers(node); - if (node.expression) { - grammarErrorOnFirstToken(node.expression, Diagnostics.Type_expected); - } - checkSourceElement(node.constraint); - checkSourceElement(node.default); - const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); - getBaseConstraintOfType(typeParameter); - if (!hasNonCircularTypeParameterDefault(typeParameter)) { - error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); - } - const constraintType = getConstraintOfTypeParameter(typeParameter); - const defaultType = getDefaultFromTypeParameter(typeParameter); - if (constraintType && defaultType) { - checkTypeAssignableTo(defaultType, getTypeWithThisArgument(instantiateType(constraintType, makeUnaryTypeMapper(typeParameter, defaultType)), defaultType), node.default, Diagnostics.Type_0_does_not_satisfy_the_constraint_1); - } - checkNodeDeferred(node); - addLazyDiagnostic(() => checkTypeNameIsReserved(node.name, Diagnostics.Type_parameter_name_cannot_be_0)); - } - function checkTypeParameterDeferred(node) { - var _a, _b; - if (isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent)) { - const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); - const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */); - if (modifiers) { - const symbol = getSymbolOfDeclaration(node.parent); - if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) { - error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); - } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); - const source = createMarkerType(symbol, typeParameter, modifiers === 16384 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck); - const target = createMarkerType(symbol, typeParameter, modifiers === 16384 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck); - const saveVarianceTypeParameter = typeParameter; - varianceTypeParameter = typeParameter; - checkTypeAssignableTo(source, target, node, Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation); - varianceTypeParameter = saveVarianceTypeParameter; - (_b = tracing) == null ? void 0 : _b.pop(); - } - } - } - } - function checkParameter(node) { - checkGrammarModifiers(node); - checkVariableLikeDeclaration(node); - const func = getContainingFunction(node); - if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) { - if (compilerOptions.erasableSyntaxOnly) { - error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } - if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { - error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); - } - if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { - error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); - } - } - if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) { - error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); - } - if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { - if (func.parameters.indexOf(node) !== 0) { - error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); - } - if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { - error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); - } - if (func.kind === 219 /* ArrowFunction */) { - error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); - } - if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { - error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); - } - } - if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) { - error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); - } - } - function checkTypePredicate(node) { - const parent = getTypePredicateParent(node); - if (!parent) { - error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); - return; - } - const signature = getSignatureFromDeclaration(parent); - const typePredicate = getTypePredicateOfSignature(signature); - if (!typePredicate) { - return; - } - checkSourceElement(node.type); - const { parameterName } = node; - if (typePredicate.kind !== 0 /* This */ && typePredicate.kind !== 2 /* AssertsThis */) { - if (typePredicate.parameterIndex >= 0) { - if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { - error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); - } else { - if (typePredicate.type) { - const leadingError = () => chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type - ); - checkTypeAssignableTo( - typePredicate.type, - getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), - node.type, - /*headMessage*/ - void 0, - leadingError - ); - } - } - } else if (parameterName) { - let hasReportedError = false; - for (const { name } of parent.parameters) { - if (isBindingPattern(name) && checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, parameterName, typePredicate.parameterName)) { - hasReportedError = true; - break; - } - } - if (!hasReportedError) { - error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); - } - } - } - } - function getTypePredicateParent(node) { - switch (node.parent.kind) { - case 219 /* ArrowFunction */: - case 179 /* CallSignature */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 184 /* FunctionType */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - const parent = node.parent; - if (node === parent.type) { - return parent; - } - } - } - function checkIfTypePredicateVariableIsDeclaredInBindingPattern(pattern, predicateVariableNode, predicateVariableName) { - for (const element of pattern.elements) { - if (isOmittedExpression(element)) { - continue; - } - const name = element.name; - if (name.kind === 80 /* Identifier */ && name.escapedText === predicateVariableName) { - error(predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName); - return true; - } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { - if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( - name, - predicateVariableNode, - predicateVariableName - )) { - return true; - } - } - } - } - function checkSignatureDeclaration(node) { - if (node.kind === 181 /* IndexSignature */) { - checkGrammarIndexSignature(node); - } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { - checkGrammarFunctionLikeDeclaration(node); - } - const functionFlags = getFunctionFlags(node); - if (!(functionFlags & 4 /* Invalid */)) { - if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) { - checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */); - } - if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) { - checkExternalEmitHelpers(node, 64 /* Awaiter */); - } - if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) { - checkExternalEmitHelpers(node, 128 /* Generator */); - } - } - checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); - checkUnmatchedJSDocParameters(node); - forEach(node.parameters, checkParameter); - if (node.type) { - checkSourceElement(node.type); - } - addLazyDiagnostic(checkSignatureDeclarationDiagnostics); - function checkSignatureDeclarationDiagnostics() { - checkCollisionWithArgumentsInGeneratedCode(node); - let returnTypeNode = getEffectiveReturnTypeNode(node); - let returnTypeErrorLocation = returnTypeNode; - if (isInJSFile(node)) { - const typeTag = getJSDocTypeTag(node); - if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { - const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); - if (signature && signature.declaration) { - returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); - returnTypeErrorLocation = typeTag.typeExpression.type; - } - } - } - if (noImplicitAny && !returnTypeNode) { - switch (node.kind) { - case 180 /* ConstructSignature */: - error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); - break; - case 179 /* CallSignature */: - error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); - break; - } - } - if (returnTypeNode && returnTypeErrorLocation) { - const functionFlags2 = getFunctionFlags(node); - if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { - const returnType = getTypeFromTypeNode(returnTypeNode); - if (returnType === voidType) { - error(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); - } else { - checkGeneratorInstantiationAssignabilityToReturnType(returnType, functionFlags2, returnTypeErrorLocation); - } - } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { - checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); - } - } - if (node.kind !== 181 /* IndexSignature */ && node.kind !== 317 /* JSDocFunctionType */) { - registerForUnusedIdentifiersCheck(node); - } - } - } - function checkGeneratorInstantiationAssignabilityToReturnType(returnType, functionFlags, errorNode) { - const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags & 2 /* Async */) !== 0) || anyType; - const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags & 2 /* Async */) !== 0) || generatorYieldType; - const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags & 2 /* Async */) !== 0) || unknownType; - const generatorInstantiation = createGeneratorType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags & 2 /* Async */)); - return checkTypeAssignableTo(generatorInstantiation, returnType, errorNode); - } - function checkClassForDuplicateDeclarations(node) { - const instanceNames = /* @__PURE__ */ new Map(); - const staticNames = /* @__PURE__ */ new Map(); - const privateIdentifiers = /* @__PURE__ */ new Map(); - for (const member of node.members) { - if (member.kind === 176 /* Constructor */) { - for (const param of member.parameters) { - if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { - addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); - } - } - } else { - const isStaticMember = isStatic(member); - const name = member.name; - if (!name) { - continue; - } - const isPrivate = isPrivateIdentifier(name); - const privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0; - const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames; - const memberName = name && getEffectivePropertyNameForPropertyNameNode(name); - if (memberName) { - switch (member.kind) { - case 177 /* GetAccessor */: - addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); - break; - case 178 /* SetAccessor */: - addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); - break; - case 172 /* PropertyDeclaration */: - addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); - break; - case 174 /* MethodDeclaration */: - addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); - break; - } - } - } - } - function addName(names, location, name, meaning) { - const prev = names.get(name); - if (prev) { - if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) { - error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); - } else { - const prevIsMethod = !!(prev & 8 /* Method */); - const isMethod = !!(meaning & 8 /* Method */); - if (prevIsMethod || isMethod) { - if (prevIsMethod !== isMethod) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); - } - } else if (prev & meaning & ~16 /* PrivateStatic */) { - error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); - } else { - names.set(name, prev | meaning); - } - } - } else { - names.set(name, meaning); - } - } - } - function checkClassForStaticPropertyNameConflicts(node) { - for (const member of node.members) { - const memberNameNode = member.name; - const isStaticMember = isStatic(member); - if (isStaticMember && memberNameNode) { - const memberName = getEffectivePropertyNameForPropertyNameNode(memberNameNode); - switch (memberName) { - case "name": - case "length": - case "caller": - case "arguments": - if (useDefineForClassFields) { - break; - } - // fall through - case "prototype": - const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; - const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); - error(memberNameNode, message, memberName, className); - break; - } - } - } - } - function checkObjectTypeForDuplicateDeclarations(node) { - const names = /* @__PURE__ */ new Map(); - for (const member of node.members) { - if (member.kind === 171 /* PropertySignature */) { - let memberName; - const name = member.name; - switch (name.kind) { - case 11 /* StringLiteral */: - case 9 /* NumericLiteral */: - memberName = name.text; - break; - case 80 /* Identifier */: - memberName = idText(name); - break; - default: - continue; - } - if (names.get(memberName)) { - error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); - error(member.name, Diagnostics.Duplicate_identifier_0, memberName); - } else { - names.set(memberName, true); - } - } - } - } - function checkTypeForDuplicateIndexSignatures(node) { - if (node.kind === 264 /* InterfaceDeclaration */) { - const nodeSymbol = getSymbolOfDeclaration(node); - if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { - return; - } - } - const indexSymbol = getIndexSymbol(getSymbolOfDeclaration(node)); - if (indexSymbol == null ? void 0 : indexSymbol.declarations) { - const indexSignatureMap = /* @__PURE__ */ new Map(); - for (const declaration of indexSymbol.declarations) { - if (isIndexSignatureDeclaration(declaration)) { - if (declaration.parameters.length === 1 && declaration.parameters[0].type) { - forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => { - const entry = indexSignatureMap.get(getTypeId(type)); - if (entry) { - entry.declarations.push(declaration); - } else { - indexSignatureMap.set(getTypeId(type), { type, declarations: [declaration] }); - } - }); - } - } - } - indexSignatureMap.forEach((entry) => { - if (entry.declarations.length > 1) { - for (const declaration of entry.declarations) { - error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); - } - } - }); - } - } - function checkPropertyDeclaration(node) { - if (!checkGrammarModifiers(node) && !checkGrammarProperty(node)) checkGrammarComputedPropertyName(node.name); - checkVariableLikeDeclaration(node); - setNodeLinksForPrivateIdentifierScope(node); - if (hasSyntacticModifier(node, 64 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { - error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); - } - } - function checkPropertySignature(node) { - if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - } - return checkPropertyDeclaration(node); - } - function checkMethodDeclaration(node) { - if (!checkGrammarMethod(node)) checkGrammarComputedPropertyName(node.name); - if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === "constructor") { - error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); - } - checkFunctionOrMethodDeclaration(node); - if (hasSyntacticModifier(node, 64 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { - error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); - } - if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { - error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - } - setNodeLinksForPrivateIdentifierScope(node); - } - function setNodeLinksForPrivateIdentifierScope(node) { - if (isPrivateIdentifier(node.name)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { - for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { - getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; - } - if (isClassExpression(node.parent)) { - const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); - if (enclosingIterationStatement) { - getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */; - getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; - } - } - } - } - } - function checkClassStaticBlockDeclaration(node) { - checkGrammarModifiers(node); - forEachChild(node, checkSourceElement); - } - function checkConstructorDeclaration(node) { - checkSignatureDeclaration(node); - if (!checkGrammarConstructorTypeParameters(node)) checkGrammarConstructorTypeAnnotation(node); - checkSourceElement(node.body); - const symbol = getSymbolOfDeclaration(node); - const firstDeclaration = getDeclarationOfKind(symbol, node.kind); - if (node === firstDeclaration) { - checkFunctionOrConstructorSymbol(symbol); - } - if (nodeIsMissing(node.body)) { - return; - } - addLazyDiagnostic(checkConstructorDeclarationDiagnostics); - return; - function isInstancePropertyWithInitializerOrPrivateIdentifierProperty(n) { - if (isPrivateIdentifierClassElementDeclaration(n)) { - return true; - } - return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; - } - function checkConstructorDeclarationDiagnostics() { - const containingClassDecl = node.parent; - if (getClassExtendsHeritageElement(containingClassDecl)) { - captureLexicalThis(node.parent, containingClassDecl); - const classExtendsNull = classDeclarationExtendsNull(containingClassDecl); - const superCall = findFirstSuperCall(node.body); - if (superCall) { - if (classExtendsNull) { - error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); - } - const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 31 /* ParameterPropertyModifier */))); - if (superCallShouldBeRootLevel) { - if (!superCallIsRootLevelInConstructor(superCall, node.body)) { - error(superCall, Diagnostics.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); - } else { - let superCallStatement; - for (const statement of node.body.statements) { - if (isExpressionStatement(statement) && isSuperCall(skipOuterExpressions(statement.expression))) { - superCallStatement = statement; - break; - } - if (nodeImmediatelyReferencesSuperOrThis(statement)) { - break; - } - } - if (superCallStatement === void 0) { - error(node, Diagnostics.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); - } - } - } - } else if (!classExtendsNull) { - error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); - } - } - } - } - function superCallIsRootLevelInConstructor(superCall, body) { - const superCallParent = walkUpParenthesizedExpressions(superCall.parent); - return isExpressionStatement(superCallParent) && superCallParent.parent === body; - } - function nodeImmediatelyReferencesSuperOrThis(node) { - if (node.kind === 108 /* SuperKeyword */ || node.kind === 110 /* ThisKeyword */) { - return true; - } - if (isThisContainerOrFunctionBlock(node)) { - return false; - } - return !!forEachChild(node, nodeImmediatelyReferencesSuperOrThis); - } - function checkAccessorDeclaration(node) { - if (isIdentifier(node.name) && idText(node.name) === "constructor" && isClassLike(node.parent)) { - error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); - } - addLazyDiagnostic(checkAccessorDeclarationDiagnostics); - checkSourceElement(node.body); - setNodeLinksForPrivateIdentifierScope(node); - function checkAccessorDeclarationDiagnostics() { - if (!checkGrammarFunctionLikeDeclaration(node) && !checkGrammarAccessor(node)) checkGrammarComputedPropertyName(node.name); - checkDecorators(node); - checkSignatureDeclaration(node); - if (node.kind === 177 /* GetAccessor */) { - if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { - if (!(node.flags & 1024 /* HasExplicitReturn */)) { - error(node.name, Diagnostics.A_get_accessor_must_return_a_value); - } - } - } - if (node.name.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.name); - } - if (hasBindableName(node)) { - const symbol = getSymbolOfDeclaration(node); - const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); - const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); - if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { - getNodeLinks(getter).flags |= 1 /* TypeChecked */; - const getterFlags = getEffectiveModifierFlags(getter); - const setterFlags = getEffectiveModifierFlags(setter); - if ((getterFlags & 64 /* Abstract */) !== (setterFlags & 64 /* Abstract */)) { - error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); - error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); - } - if (getterFlags & 4 /* Protected */ && !(setterFlags & (4 /* Protected */ | 2 /* Private */)) || getterFlags & 2 /* Private */ && !(setterFlags & 2 /* Private */)) { - error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); - error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); - } - } - } - const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); - if (node.kind === 177 /* GetAccessor */) { - checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); - } - } - } - function checkMissingDeclaration(node) { - checkDecorators(node); - } - function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) { - if (node.typeArguments && index < node.typeArguments.length) { - return getTypeFromTypeNode(node.typeArguments[index]); - } - return getEffectiveTypeArguments(node, typeParameters)[index]; - } - function getEffectiveTypeArguments(node, typeParameters) { - return fillMissingTypeArguments(map(node.typeArguments, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(node)); - } - function checkTypeArgumentConstraints(node, typeParameters) { - let typeArguments; - let mapper; - let result = true; - for (let i = 0; i < typeParameters.length; i++) { - const constraint = getConstraintOfTypeParameter(typeParameters[i]); - if (constraint) { - if (!typeArguments) { - typeArguments = getEffectiveTypeArguments(node, typeParameters); - mapper = createTypeMapper(typeParameters, typeArguments); - } - result = result && checkTypeAssignableTo( - typeArguments[i], - instantiateType(constraint, mapper), - node.typeArguments[i], - Diagnostics.Type_0_does_not_satisfy_the_constraint_1 - ); - } - } - return result; - } - function getTypeParametersForTypeAndSymbol(type, symbol) { - if (!isErrorType(type)) { - return symbol.flags & 524288 /* TypeAlias */ && getSymbolLinks(symbol).typeParameters || (getObjectFlags(type) & 4 /* Reference */ ? type.target.localTypeParameters : void 0); - } - return void 0; - } - function getTypeParametersForTypeReferenceOrImport(node) { - const type = getTypeFromTypeNode(node); - if (!isErrorType(type)) { - const symbol = getNodeLinks(node).resolvedSymbol; - if (symbol) { - return getTypeParametersForTypeAndSymbol(type, symbol); - } - } - return void 0; - } - function checkTypeReferenceNode(node) { - checkGrammarTypeArguments(node, node.typeArguments); - if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { - const sourceFile = getSourceFileOfNode(node); - if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { - grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); - } - } - forEach(node.typeArguments, checkSourceElement); - checkTypeReferenceOrImport(node); - } - function checkTypeReferenceOrImport(node) { - const type = getTypeFromTypeNode(node); - if (!isErrorType(type)) { - if (node.typeArguments) { - addLazyDiagnostic(() => { - const typeParameters = getTypeParametersForTypeReferenceOrImport(node); - if (typeParameters) { - checkTypeArgumentConstraints(node, typeParameters); - } - }); - } - const symbol = getNodeLinks(node).resolvedSymbol; - if (symbol) { - if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { - addDeprecatedSuggestion( - getDeprecatedSuggestionNode(node), - symbol.declarations, - symbol.escapedName - ); - } - } - } - } - function getTypeArgumentConstraint(node) { - const typeReferenceNode = tryCast(node.parent, isTypeReferenceType); - if (!typeReferenceNode) return void 0; - const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReferenceNode); - if (!typeParameters) return void 0; - const constraint = getConstraintOfTypeParameter(typeParameters[typeReferenceNode.typeArguments.indexOf(node)]); - return constraint && instantiateType(constraint, createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReferenceNode, typeParameters))); - } - function checkTypeQuery(node) { - getTypeFromTypeQueryNode(node); - } - function checkTypeLiteral(node) { - forEach(node.members, checkSourceElement); - addLazyDiagnostic(checkTypeLiteralDiagnostics); - function checkTypeLiteralDiagnostics() { - const type = getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); - checkIndexConstraints(type, type.symbol); - checkTypeForDuplicateIndexSignatures(node); - checkObjectTypeForDuplicateDeclarations(node); - } - } - function checkArrayType(node) { - checkSourceElement(node.elementType); - } - function checkTupleType(node) { - let seenOptionalElement = false; - let seenRestElement = false; - for (const e of node.elements) { - let flags = getTupleElementFlags(e); - if (flags & 8 /* Variadic */) { - const type = getTypeFromTypeNode(e.type); - if (!isArrayLikeType(type)) { - error(e, Diagnostics.A_rest_element_type_must_be_an_array_type); - break; - } - if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) { - flags |= 4 /* Rest */; - } - } - if (flags & 4 /* Rest */) { - if (seenRestElement) { - grammarErrorOnNode(e, Diagnostics.A_rest_element_cannot_follow_another_rest_element); - break; - } - seenRestElement = true; - } else if (flags & 2 /* Optional */) { - if (seenRestElement) { - grammarErrorOnNode(e, Diagnostics.An_optional_element_cannot_follow_a_rest_element); - break; - } - seenOptionalElement = true; - } else if (flags & 1 /* Required */ && seenOptionalElement) { - grammarErrorOnNode(e, Diagnostics.A_required_element_cannot_follow_an_optional_element); - break; - } - } - forEach(node.elements, checkSourceElement); - getTypeFromTypeNode(node); - } - function checkUnionOrIntersectionType(node) { - forEach(node.types, checkSourceElement); - getTypeFromTypeNode(node); - } - function checkIndexedAccessIndexType(type, accessNode) { - if (!(type.flags & 8388608 /* IndexedAccess */)) { - return type; - } - const objectType = type.objectType; - const indexType = type.indexType; - const objectIndexType = isGenericMappedType(objectType) && getMappedTypeNameTypeKind(objectType) === 2 /* Remapping */ ? getIndexTypeForMappedType(objectType, 0 /* None */) : getIndexType(objectType, 0 /* None */); - const hasNumberIndexInfo = !!getIndexInfoOfType(objectType, numberType); - if (everyType(indexType, (t) => isTypeAssignableTo(t, objectIndexType) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) { - if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { - error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); - } - return type; - } - if (isGenericObjectType(objectType)) { - const propertyName = getPropertyNameFromIndex(indexType, accessNode); - if (propertyName) { - const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName)); - if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) { - error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); - return errorType; - } - } - } - error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); - return errorType; - } - function checkIndexedAccessType(node) { - checkSourceElement(node.objectType); - checkSourceElement(node.indexType); - checkIndexedAccessIndexType(getTypeFromIndexedAccessTypeNode(node), node); - } - function checkMappedType(node) { - checkGrammarMappedType(node); - checkSourceElement(node.typeParameter); - checkSourceElement(node.nameType); - checkSourceElement(node.type); - if (!node.type) { - reportImplicitAny(node, anyType); - } - const type = getTypeFromMappedTypeNode(node); - const nameType = getNameTypeFromMappedType(type); - if (nameType) { - checkTypeAssignableTo(nameType, stringNumberSymbolType, node.nameType); - } else { - const constraintType = getConstraintTypeFromMappedType(type); - checkTypeAssignableTo(constraintType, stringNumberSymbolType, getEffectiveConstraintOfTypeParameter(node.typeParameter)); - } - } - function checkGrammarMappedType(node) { - var _a; - if ((_a = node.members) == null ? void 0 : _a.length) { - return grammarErrorOnNode(node.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); - } - } - function checkThisType(node) { - getTypeFromThisTypeNode(node); - } - function checkTypeOperator(node) { - checkGrammarTypeOperatorNode(node); - checkSourceElement(node.type); - } - function checkConditionalType(node) { - forEachChild(node, checkSourceElement); - } - function checkInferType(node) { - if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { - grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); - } - checkSourceElement(node.typeParameter); - const symbol = getSymbolOfDeclaration(node.typeParameter); - if (symbol.declarations && symbol.declarations.length > 1) { - const links = getSymbolLinks(symbol); - if (!links.typeParametersChecked) { - links.typeParametersChecked = true; - const typeParameter = getDeclaredTypeOfTypeParameter(symbol); - const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); - if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { - const name = symbolToString(symbol); - for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); - } - } - } - } - registerForUnusedIdentifiersCheck(node); - } - function checkTemplateLiteralType(node) { - for (const span of node.templateSpans) { - checkSourceElement(span.type); - const type = getTypeFromTypeNode(span.type); - checkTypeAssignableTo(type, templateConstraintType, span.type); - } - getTypeFromTypeNode(node); - } - function checkImportType(node) { - checkSourceElement(node.argument); - if (node.attributes) { - getResolutionModeOverride(node.attributes, grammarErrorOnNode); - } - checkTypeReferenceOrImport(node); - } - function checkNamedTupleMember(node) { - if (node.dotDotDotToken && node.questionToken) { - grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); - } - if (node.type.kind === 190 /* OptionalType */) { - grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); - } - if (node.type.kind === 191 /* RestType */) { - grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); - } - checkSourceElement(node.type); - getTypeFromTypeNode(node); - } - function isPrivateWithinAmbient(node) { - return (hasEffectiveModifier(node, 2 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); - } - function getEffectiveDeclarationFlags(n, flagsToCheck) { - let flags = getCombinedModifierFlagsCached(n); - if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { - const container = getEnclosingContainer(n); - if (container && container.flags & 128 /* ExportContext */ && !(flags & 128 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { - flags |= 32 /* Export */; - } - flags |= 128 /* Ambient */; - } - return flags & flagsToCheck; - } - function checkFunctionOrConstructorSymbol(symbol) { - addLazyDiagnostic(() => checkFunctionOrConstructorSymbolWorker(symbol)); - } - function checkFunctionOrConstructorSymbolWorker(symbol) { - function getCanonicalOverload(overloads, implementation) { - const implementationSharesContainerWithFirstOverload = implementation !== void 0 && implementation.parent === overloads[0].parent; - return implementationSharesContainerWithFirstOverload ? implementation : overloads[0]; - } - function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck2, someOverloadFlags, allOverloadFlags) { - const someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags; - if (someButNotAllOverloadFlags !== 0) { - const canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck2); - group(overloads, (o) => getSourceFileOfNode(o).fileName).forEach((overloadsInFile) => { - const canonicalFlagsForFile = getEffectiveDeclarationFlags(getCanonicalOverload(overloadsInFile, implementation), flagsToCheck2); - for (const o of overloadsInFile) { - const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; - const deviationInFile = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlagsForFile; - if (deviationInFile & 32 /* Export */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); - } else if (deviationInFile & 128 /* Ambient */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); - } else if (deviation & (2 /* Private */ | 4 /* Protected */)) { - error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); - } else if (deviation & 64 /* Abstract */) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); - } - } - }); - } - } - function checkQuestionTokenAgreementBetweenOverloads(overloads, implementation, someHaveQuestionToken2, allHaveQuestionToken2) { - if (someHaveQuestionToken2 !== allHaveQuestionToken2) { - const canonicalHasQuestionToken = hasQuestionToken(getCanonicalOverload(overloads, implementation)); - forEach(overloads, (o) => { - const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken; - if (deviation) { - error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); - } - }); - } - } - const flagsToCheck = 32 /* Export */ | 128 /* Ambient */ | 2 /* Private */ | 4 /* Protected */ | 64 /* Abstract */; - let someNodeFlags = 0 /* None */; - let allNodeFlags = flagsToCheck; - let someHaveQuestionToken = false; - let allHaveQuestionToken = true; - let hasOverloads = false; - let bodyDeclaration; - let lastSeenNonAmbientDeclaration; - let previousDeclaration; - const declarations = symbol.declarations; - const isConstructor = (symbol.flags & 16384 /* Constructor */) !== 0; - function reportImplementationExpectedError(node) { - if (node.name && nodeIsMissing(node.name)) { - return; - } - let seen = false; - const subsequentNode = forEachChild(node.parent, (c) => { - if (seen) { - return c; - } else { - seen = c === node; - } - }); - if (subsequentNode && subsequentNode.pos === node.end) { - if (subsequentNode.kind === node.kind) { - const errorNode2 = subsequentNode.name || subsequentNode; - const subsequentName = subsequentNode.name; - if (node.name && subsequentName && // both are private identifiers - (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names - isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. - isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { - const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); - if (reportError) { - const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; - error(errorNode2, diagnostic); - } - return; - } - if (nodeIsPresent(subsequentNode.body)) { - error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); - return; - } - } - } - const errorNode = node.name || node; - if (isConstructor) { - error(errorNode, Diagnostics.Constructor_implementation_is_missing); - } else { - if (hasSyntacticModifier(node, 64 /* Abstract */)) { - error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); - } else { - error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); - } - } - } - let duplicateFunctionDeclaration = false; - let multipleConstructorImplementation = false; - let hasNonAmbientClass = false; - const functionDeclarations = []; - if (declarations) { - for (const current of declarations) { - const node = current; - const inAmbientContext = node.flags & 33554432 /* Ambient */; - const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; - if (inAmbientContextOrInterface) { - previousDeclaration = void 0; - } - if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { - hasNonAmbientClass = true; - } - if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { - functionDeclarations.push(node); - const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); - someNodeFlags |= currentNodeFlags; - allNodeFlags &= currentNodeFlags; - someHaveQuestionToken = someHaveQuestionToken || hasQuestionToken(node); - allHaveQuestionToken = allHaveQuestionToken && hasQuestionToken(node); - const bodyIsPresent = nodeIsPresent(node.body); - if (bodyIsPresent && bodyDeclaration) { - if (isConstructor) { - multipleConstructorImplementation = true; - } else { - duplicateFunctionDeclaration = true; - } - } else if ((previousDeclaration == null ? void 0 : previousDeclaration.parent) === node.parent && previousDeclaration.end !== node.pos) { - reportImplementationExpectedError(previousDeclaration); - } - if (bodyIsPresent) { - if (!bodyDeclaration) { - bodyDeclaration = node; - } - } else { - hasOverloads = true; - } - previousDeclaration = node; - if (!inAmbientContextOrInterface) { - lastSeenNonAmbientDeclaration = node; - } - } - if (isInJSFile(current) && isFunctionLike(current) && current.jsDoc) { - hasOverloads = length(getJSDocOverloadTags(current)) > 0; - } - } - } - if (multipleConstructorImplementation) { - forEach(functionDeclarations, (declaration) => { - error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); - }); - } - if (duplicateFunctionDeclaration) { - forEach(functionDeclarations, (declaration) => { - error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); - }); - } - if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { - const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); - forEach(declarations, (declaration) => { - const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; - if (diagnostic) { - addRelatedInfo( - error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), - ...relatedDiagnostics - ); - } - }); - } - if (lastSeenNonAmbientDeclaration && !lastSeenNonAmbientDeclaration.body && !hasSyntacticModifier(lastSeenNonAmbientDeclaration, 64 /* Abstract */) && !lastSeenNonAmbientDeclaration.questionToken) { - reportImplementationExpectedError(lastSeenNonAmbientDeclaration); - } - if (hasOverloads) { - if (declarations) { - checkFlagAgreementBetweenOverloads(declarations, bodyDeclaration, flagsToCheck, someNodeFlags, allNodeFlags); - checkQuestionTokenAgreementBetweenOverloads(declarations, bodyDeclaration, someHaveQuestionToken, allHaveQuestionToken); - } - if (bodyDeclaration) { - const signatures = getSignaturesOfSymbol(symbol); - const bodySignature = getSignatureFromDeclaration(bodyDeclaration); - for (const signature of signatures) { - if (!isImplementationCompatibleWithOverload(bodySignature, signature)) { - const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration; - addRelatedInfo( - error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), - createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here) - ); - break; - } - } - } - } - } - function checkExportsOnMergedDeclarations(node) { - addLazyDiagnostic(() => checkExportsOnMergedDeclarationsWorker(node)); - } - function checkExportsOnMergedDeclarationsWorker(node) { - let symbol = node.localSymbol; - if (!symbol) { - symbol = getSymbolOfDeclaration(node); - if (!symbol.exportSymbol) { - return; - } - } - if (getDeclarationOfKind(symbol, node.kind) !== node) { - return; - } - let exportedDeclarationSpaces = 0 /* None */; - let nonExportedDeclarationSpaces = 0 /* None */; - let defaultExportedDeclarationSpaces = 0 /* None */; - for (const d of symbol.declarations) { - const declarationSpaces = getDeclarationSpaces(d); - const effectiveDeclarationFlags = getEffectiveDeclarationFlags(d, 32 /* Export */ | 2048 /* Default */); - if (effectiveDeclarationFlags & 32 /* Export */) { - if (effectiveDeclarationFlags & 2048 /* Default */) { - defaultExportedDeclarationSpaces |= declarationSpaces; - } else { - exportedDeclarationSpaces |= declarationSpaces; - } - } else { - nonExportedDeclarationSpaces |= declarationSpaces; - } - } - const nonDefaultExportedDeclarationSpaces = exportedDeclarationSpaces | nonExportedDeclarationSpaces; - const commonDeclarationSpacesForExportsAndLocals = exportedDeclarationSpaces & nonExportedDeclarationSpaces; - const commonDeclarationSpacesForDefaultAndNonDefault = defaultExportedDeclarationSpaces & nonDefaultExportedDeclarationSpaces; - if (commonDeclarationSpacesForExportsAndLocals || commonDeclarationSpacesForDefaultAndNonDefault) { - for (const d of symbol.declarations) { - const declarationSpaces = getDeclarationSpaces(d); - const name = getNameOfDeclaration(d); - if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) { - error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); - } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) { - error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); - } - } - } - function getDeclarationSpaces(decl) { - let d = decl; - switch (d.kind) { - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - // A jsdoc typedef and callback are, by definition, type aliases. - // falls through - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - return 2 /* ExportType */; - case 267 /* ModuleDeclaration */: - return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; - case 263 /* ClassDeclaration */: - case 266 /* EnumDeclaration */: - case 306 /* EnumMember */: - return 2 /* ExportType */ | 1 /* ExportValue */; - case 307 /* SourceFile */: - return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; - case 277 /* ExportAssignment */: - case 226 /* BinaryExpression */: - const node2 = d; - const expression = isExportAssignment(node2) ? node2.expression : node2.right; - if (!isEntityNameExpression(expression)) { - return 1 /* ExportValue */; - } - d = expression; - // The below options all declare an Alias, which is allowed to merge with other values within the importing module. - // falls through - case 271 /* ImportEqualsDeclaration */: - case 274 /* NamespaceImport */: - case 273 /* ImportClause */: - let result = 0 /* None */; - const target = resolveAlias(getSymbolOfDeclaration(d)); - forEach(target.declarations, (d2) => { - result |= getDeclarationSpaces(d2); - }); - return result; - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - case 262 /* FunctionDeclaration */: - case 276 /* ImportSpecifier */: - // https://github.com/Microsoft/TypeScript/pull/7591 - case 80 /* Identifier */: - return 1 /* ExportValue */; - case 173 /* MethodSignature */: - case 171 /* PropertySignature */: - return 2 /* ExportType */; - default: - return Debug.failBadSyntaxKind(d); - } - } - } - function getAwaitedTypeOfPromise(type, errorNode, diagnosticMessage, ...args) { - const promisedType = getPromisedTypeOfPromise(type, errorNode); - return promisedType && getAwaitedType(promisedType, errorNode, diagnosticMessage, ...args); - } - function getPromisedTypeOfPromise(type, errorNode, thisTypeForErrorOut) { - if (isTypeAny(type)) { - return void 0; - } - const typeAsPromise = type; - if (typeAsPromise.promisedTypeOfPromise) { - return typeAsPromise.promisedTypeOfPromise; - } - if (isReferenceToType(type, getGlobalPromiseType( - /*reportErrors*/ - false - ))) { - return typeAsPromise.promisedTypeOfPromise = getTypeArguments(type)[0]; - } - if (allTypesAssignableToKind(getBaseConstraintOrType(type), 402784252 /* Primitive */ | 131072 /* Never */)) { - return void 0; - } - const thenFunction = getTypeOfPropertyOfType(type, "then"); - if (isTypeAny(thenFunction)) { - return void 0; - } - const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : emptyArray; - if (thenSignatures.length === 0) { - if (errorNode) { - error(errorNode, Diagnostics.A_promise_must_have_a_then_method); - } - return void 0; - } - let thisTypeForError; - let candidates; - for (const thenSignature of thenSignatures) { - const thisType = getThisTypeOfSignature(thenSignature); - if (thisType && thisType !== voidType && !isTypeRelatedTo(type, thisType, subtypeRelation)) { - thisTypeForError = thisType; - } else { - candidates = append(candidates, thenSignature); - } - } - if (!candidates) { - Debug.assertIsDefined(thisTypeForError); - if (thisTypeForErrorOut) { - thisTypeForErrorOut.value = thisTypeForError; - } - if (errorNode) { - error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); - } - return void 0; - } - const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(candidates, getTypeOfFirstParameterOfSignature)), 2097152 /* NEUndefinedOrNull */); - if (isTypeAny(onfulfilledParameterType)) { - return void 0; - } - const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */); - if (onfulfilledParameterSignatures.length === 0) { - if (errorNode) { - error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); - } - return void 0; - } - return typeAsPromise.promisedTypeOfPromise = getUnionType(map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), 2 /* Subtype */); - } - function checkAwaitedType(type, withAlias, errorNode, diagnosticMessage, ...args) { - const awaitedType = withAlias ? getAwaitedType(type, errorNode, diagnosticMessage, ...args) : getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args); - return awaitedType || errorType; - } - function isThenableType(type) { - if (allTypesAssignableToKind(getBaseConstraintOrType(type), 402784252 /* Primitive */ | 131072 /* Never */)) { - return false; - } - const thenFunction = getTypeOfPropertyOfType(type, "then"); - return !!thenFunction && getSignaturesOfType(getTypeWithFacts(thenFunction, 2097152 /* NEUndefinedOrNull */), 0 /* Call */).length > 0; - } - function isAwaitedTypeInstantiation(type) { - var _a; - if (type.flags & 16777216 /* Conditional */) { - const awaitedSymbol = getGlobalAwaitedSymbol( - /*reportErrors*/ - false - ); - return !!awaitedSymbol && type.aliasSymbol === awaitedSymbol && ((_a = type.aliasTypeArguments) == null ? void 0 : _a.length) === 1; - } - return false; - } - function unwrapAwaitedType(type) { - return type.flags & 1048576 /* Union */ ? mapType(type, unwrapAwaitedType) : isAwaitedTypeInstantiation(type) ? type.aliasTypeArguments[0] : type; - } - function isAwaitedTypeNeeded(type) { - if (isTypeAny(type) || isAwaitedTypeInstantiation(type)) { - return false; - } - if (isGenericObjectType(type)) { - const baseConstraint = getBaseConstraintOfType(type); - if (baseConstraint ? baseConstraint.flags & 3 /* AnyOrUnknown */ || isEmptyObjectType(baseConstraint) || someType(baseConstraint, isThenableType) : maybeTypeOfKind(type, 8650752 /* TypeVariable */)) { - return true; - } - } - return false; - } - function tryCreateAwaitedType(type) { - const awaitedSymbol = getGlobalAwaitedSymbol( - /*reportErrors*/ - true - ); - if (awaitedSymbol) { - return getTypeAliasInstantiation(awaitedSymbol, [unwrapAwaitedType(type)]); - } - return void 0; - } - function createAwaitedTypeIfNeeded(type) { - if (isAwaitedTypeNeeded(type)) { - return tryCreateAwaitedType(type) ?? type; - } - Debug.assert(isAwaitedTypeInstantiation(type) || getPromisedTypeOfPromise(type) === void 0, "type provided should not be a non-generic 'promise'-like."); - return type; - } - function getAwaitedType(type, errorNode, diagnosticMessage, ...args) { - const awaitedType = getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args); - return awaitedType && createAwaitedTypeIfNeeded(awaitedType); - } - function getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args) { - if (isTypeAny(type)) { - return type; - } - if (isAwaitedTypeInstantiation(type)) { - return type; - } - const typeAsAwaitable = type; - if (typeAsAwaitable.awaitedTypeOfType) { - return typeAsAwaitable.awaitedTypeOfType; - } - if (type.flags & 1048576 /* Union */) { - if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { - if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); - } - return void 0; - } - const mapper = errorNode ? (constituentType) => getAwaitedTypeNoAlias(constituentType, errorNode, diagnosticMessage, ...args) : getAwaitedTypeNoAlias; - awaitedTypeStack.push(type.id); - const mapped = mapType(type, mapper); - awaitedTypeStack.pop(); - return typeAsAwaitable.awaitedTypeOfType = mapped; - } - if (isAwaitedTypeNeeded(type)) { - return typeAsAwaitable.awaitedTypeOfType = type; - } - const thisTypeForErrorOut = { value: void 0 }; - const promisedType = getPromisedTypeOfPromise( - type, - /*errorNode*/ - void 0, - thisTypeForErrorOut - ); - if (promisedType) { - if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) { - if (errorNode) { - error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); - } - return void 0; - } - awaitedTypeStack.push(type.id); - const awaitedType = getAwaitedTypeNoAlias(promisedType, errorNode, diagnosticMessage, ...args); - awaitedTypeStack.pop(); - if (!awaitedType) { - return void 0; - } - return typeAsAwaitable.awaitedTypeOfType = awaitedType; - } - if (isThenableType(type)) { - if (errorNode) { - Debug.assertIsDefined(diagnosticMessage); - let chain; - if (thisTypeForErrorOut.value) { - chain = chainDiagnosticMessages(chain, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForErrorOut.value)); - } - chain = chainDiagnosticMessages(chain, diagnosticMessage, ...args); - diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, chain)); - } - return void 0; - } - return typeAsAwaitable.awaitedTypeOfType = type; - } - function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { - const returnType = getTypeFromTypeNode(returnTypeNode); - if (languageVersion >= 2 /* ES2015 */) { - if (isErrorType(returnType)) { - return; - } - const globalPromiseType = getGlobalPromiseType( - /*reportErrors*/ - true - ); - if (globalPromiseType !== emptyGenericType && !isReferenceToType(returnType, globalPromiseType)) { - reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); - return; - } - } else { - markLinkedReferences(node, 5 /* AsyncFunction */); - if (isErrorType(returnType)) { - return; - } - const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); - if (promiseConstructorName === void 0) { - reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); - return; - } - const promiseConstructorSymbol = resolveEntityName( - promiseConstructorName, - 111551 /* Value */, - /*ignoreErrors*/ - true - ); - const promiseConstructorType = promiseConstructorSymbol ? getTypeOfSymbol(promiseConstructorSymbol) : errorType; - if (isErrorType(promiseConstructorType)) { - if (promiseConstructorName.kind === 80 /* Identifier */ && promiseConstructorName.escapedText === "Promise" && getTargetType(returnType) === getGlobalPromiseType( - /*reportErrors*/ - false - )) { - error(returnTypeErrorLocation, Diagnostics.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); - } else { - reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); - } - return; - } - const globalPromiseConstructorLikeType = getGlobalPromiseConstructorLikeType( - /*reportErrors*/ - true - ); - if (globalPromiseConstructorLikeType === emptyObjectType) { - reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); - return; - } - const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; - const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type - ); - if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { - return; - } - const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); - const collidingSymbol = getSymbol(node.locals, rootName.escapedText, 111551 /* Value */); - if (collidingSymbol) { - error(collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), entityNameToString(promiseConstructorName)); - return; - } - } - checkAwaitedType( - returnType, - /*withAlias*/ - false, - node, - Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - ); - function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { - if (returnTypeNode2 === returnTypeErrorLocation2) { - error(returnTypeErrorLocation2, message, typeName); - } else { - const diag2 = error(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); - addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); - } - } - } - function checkGrammarDecorator(decorator) { - const sourceFile = getSourceFileOfNode(decorator); - if (!hasParseDiagnostics(sourceFile)) { - let node = decorator.expression; - if (isParenthesizedExpression(node)) { - return false; - } - let canHaveCallExpression = true; - let errorNode; - while (true) { - if (isExpressionWithTypeArguments(node) || isNonNullExpression(node)) { - node = node.expression; - continue; - } - if (isCallExpression(node)) { - if (!canHaveCallExpression) { - errorNode = node; - } - if (node.questionDotToken) { - errorNode = node.questionDotToken; - } - node = node.expression; - canHaveCallExpression = false; - continue; - } - if (isPropertyAccessExpression(node)) { - if (node.questionDotToken) { - errorNode = node.questionDotToken; - } - node = node.expression; - canHaveCallExpression = false; - continue; - } - if (!isIdentifier(node)) { - errorNode = node; - } - break; - } - if (errorNode) { - addRelatedInfo( - error(decorator.expression, Diagnostics.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator), - createDiagnosticForNode(errorNode, Diagnostics.Invalid_syntax_in_decorator) - ); - return true; - } - } - return false; - } - function checkDecorator(node) { - checkGrammarDecorator(node); - const signature = getResolvedSignature(node); - checkDeprecatedSignature(signature, node); - const returnType = getReturnTypeOfSignature(signature); - if (returnType.flags & 1 /* Any */) { - return; - } - const decoratorSignature = getDecoratorCallSignature(node); - if (!(decoratorSignature == null ? void 0 : decoratorSignature.resolvedReturnType)) return; - let headMessage; - const expectedReturnType = decoratorSignature.resolvedReturnType; - switch (node.parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; - break; - case 172 /* PropertyDeclaration */: - if (!legacyDecorators) { - headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; - break; - } - // falls through - case 169 /* Parameter */: - headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; - break; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; - break; - default: - return Debug.failBadSyntaxKind(node.parent); - } - checkTypeAssignableTo(returnType, expectedReturnType, node.expression, headMessage); - } - function createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount = parameters.length, flags = 0 /* None */) { - const decl = factory.createFunctionTypeNode( - /*typeParameters*/ - void 0, - emptyArray, - factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - return createSignature(decl, typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags); - } - function createFunctionType(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags) { - const signature = createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags); - return getOrCreateTypeFromSignature(signature); - } - function createGetterFunctionType(type) { - return createFunctionType( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - emptyArray, - type - ); - } - function createSetterFunctionType(type) { - const valueParam = createParameter("value", type); - return createFunctionType( - /*typeParameters*/ - void 0, - /*thisParameter*/ - void 0, - [valueParam], - voidType - ); - } - function getEntityNameForDecoratorMetadata(node) { - if (node) { - switch (node.kind) { - case 193 /* IntersectionType */: - case 192 /* UnionType */: - return getEntityNameForDecoratorMetadataFromTypeList(node.types); - case 194 /* ConditionalType */: - return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); - case 196 /* ParenthesizedType */: - case 202 /* NamedTupleMember */: - return getEntityNameForDecoratorMetadata(node.type); - case 183 /* TypeReference */: - return node.typeName; - } - } - } - function getEntityNameForDecoratorMetadataFromTypeList(types) { - let commonEntityName; - for (let typeNode of types) { - while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { - typeNode = typeNode.type; - } - if (typeNode.kind === 146 /* NeverKeyword */) { - continue; - } - if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { - continue; - } - const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); - if (!individualEntityName) { - return void 0; - } - if (commonEntityName) { - if (!isIdentifier(commonEntityName) || !isIdentifier(individualEntityName) || commonEntityName.escapedText !== individualEntityName.escapedText) { - return void 0; - } - } else { - commonEntityName = individualEntityName; - } - } - return commonEntityName; - } - function getParameterTypeNodeForDecoratorCheck(node) { - const typeNode = getEffectiveTypeAnnotationNode(node); - return isRestParameter(node) ? getRestParameterElementType(typeNode) : typeNode; - } - function checkDecorators(node) { - if (!canHaveDecorators(node) || !hasDecorators(node) || !node.modifiers || !nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - return; - } - const firstDecorator = find(node.modifiers, isDecorator); - if (!firstDecorator) { - return; - } - if (legacyDecorators) { - checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); - if (node.kind === 169 /* Parameter */) { - checkExternalEmitHelpers(firstDecorator, 32 /* Param */); - } - } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) { - checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */); - if (isClassDeclaration(node)) { - if (!node.name) { - checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); - } else { - const member = getFirstTransformableStaticClassElement(node); - if (member) { - checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); - } - } - } else if (!isClassExpression(node)) { - if (isPrivateIdentifier(node.name) && (isMethodDeclaration(node) || isAccessor(node) || isAutoAccessorPropertyDeclaration(node))) { - checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); - } - if (isComputedPropertyName(node.name)) { - checkExternalEmitHelpers(firstDecorator, 8388608 /* PropKey */); - } - } - } - markLinkedReferences(node, 8 /* Decorator */); - for (const modifier of node.modifiers) { - if (isDecorator(modifier)) { - checkDecorator(modifier); - } - } - } - function checkFunctionDeclaration(node) { - addLazyDiagnostic(checkFunctionDeclarationDiagnostics); - function checkFunctionDeclarationDiagnostics() { - checkFunctionOrMethodDeclaration(node); - checkGrammarForGenerator(node); - checkCollisionsForDeclarationName(node, node.name); - } - } - function checkJSDocTypeAliasTag(node) { - if (!node.typeExpression) { - error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); - } - if (node.name) { - checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); - } - checkSourceElement(node.typeExpression); - checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); - } - function checkJSDocTemplateTag(node) { - checkSourceElement(node.constraint); - for (const tp of node.typeParameters) { - checkSourceElement(tp); - } - } - function checkJSDocTypeTag(node) { - checkSourceElement(node.typeExpression); - } - function checkJSDocSatisfiesTag(node) { - checkSourceElement(node.typeExpression); - const host2 = getEffectiveJSDocHost(node); - if (host2) { - const tags = getAllJSDocTags(host2, isJSDocSatisfiesTag); - if (length(tags) > 1) { - for (let i = 1; i < length(tags); i++) { - const tagName = tags[i].tagName; - error(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); - } - } - } - } - function checkJSDocLinkLikeTag(node) { - if (node.name) { - resolveJSDocMemberName( - node.name, - /*ignoreErrors*/ - true - ); - } - } - function checkJSDocParameterTag(node) { - checkSourceElement(node.typeExpression); - } - function checkJSDocPropertyTag(node) { - checkSourceElement(node.typeExpression); - } - function checkJSDocFunctionType(node) { - addLazyDiagnostic(checkJSDocFunctionTypeImplicitAny); - checkSignatureDeclaration(node); - function checkJSDocFunctionTypeImplicitAny() { - if (!node.type && !isJSDocConstructSignature(node)) { - reportImplicitAny(node, anyType); - } - } - } - function checkJSDocThisTag(node) { - const host2 = getEffectiveJSDocHost(node); - if (host2 && isArrowFunction(host2)) { - error(node.tagName, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); - } - } - function checkJSDocImportTag(node) { - checkImportAttributes(node); - } - function checkJSDocImplementsTag(node) { - const classLike = getEffectiveJSDocHost(node); - if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); - } - } - function checkJSDocAugmentsTag(node) { - const classLike = getEffectiveJSDocHost(node); - if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { - error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); - return; - } - const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag); - Debug.assert(augmentsTags.length > 0); - if (augmentsTags.length > 1) { - error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); - } - const name = getIdentifierFromEntityNameExpression(node.class.expression); - const extend2 = getClassExtendsHeritageElement(classLike); - if (extend2) { - const className = getIdentifierFromEntityNameExpression(extend2.expression); - if (className && name.escapedText !== className.escapedText) { - error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); - } - } - } - function checkJSDocAccessibilityModifiers(node) { - const host2 = getJSDocHost(node); - if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) { - error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); - } - } - function getIdentifierFromEntityNameExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return node; - case 211 /* PropertyAccessExpression */: - return node.name; - default: - return void 0; - } - } - function checkFunctionOrMethodDeclaration(node) { - var _a; - checkDecorators(node); - checkSignatureDeclaration(node); - const functionFlags = getFunctionFlags(node); - if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.name); - } - if (hasBindableName(node)) { - const symbol = getSymbolOfDeclaration(node); - const localSymbol = node.localSymbol || symbol; - const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( - // Get first non javascript function declaration - (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) - ); - if (node === firstDeclaration) { - checkFunctionOrConstructorSymbol(localSymbol); - } - if (symbol.parent) { - checkFunctionOrConstructorSymbol(symbol); - } - } - const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; - checkSourceElement(body); - checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); - addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); - if (isInJSFile(node)) { - const typeTag = getJSDocTypeTag(node); - if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) { - error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); - } - } - function checkFunctionOrMethodDeclarationDiagnostics() { - if (!getEffectiveReturnTypeNode(node)) { - if (nodeIsMissing(body) && !isPrivateWithinAmbient(node)) { - reportImplicitAny(node, anyType); - } - if (functionFlags & 1 /* Generator */ && nodeIsPresent(body)) { - getReturnTypeOfSignature(getSignatureFromDeclaration(node)); - } - } - } - } - function registerForUnusedIdentifiersCheck(node) { - addLazyDiagnostic(registerForUnusedIdentifiersCheckDiagnostics); - function registerForUnusedIdentifiersCheckDiagnostics() { - const sourceFile = getSourceFileOfNode(node); - let potentiallyUnusedIdentifiers = allPotentiallyUnusedIdentifiers.get(sourceFile.path); - if (!potentiallyUnusedIdentifiers) { - potentiallyUnusedIdentifiers = []; - allPotentiallyUnusedIdentifiers.set(sourceFile.path, potentiallyUnusedIdentifiers); - } - potentiallyUnusedIdentifiers.push(node); - } - } - function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { - for (const node of potentiallyUnusedIdentifiers) { - switch (node.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - checkUnusedClassMembers(node, addDiagnostic); - checkUnusedTypeParameters(node, addDiagnostic); - break; - case 307 /* SourceFile */: - case 267 /* ModuleDeclaration */: - case 241 /* Block */: - case 269 /* CaseBlock */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - checkUnusedLocalsAndParameters(node, addDiagnostic); - break; - case 176 /* Constructor */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - if (node.body) { - checkUnusedLocalsAndParameters(node, addDiagnostic); - } - checkUnusedTypeParameters(node, addDiagnostic); - break; - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 265 /* TypeAliasDeclaration */: - case 264 /* InterfaceDeclaration */: - checkUnusedTypeParameters(node, addDiagnostic); - break; - case 195 /* InferType */: - checkUnusedInferTypeParameter(node, addDiagnostic); - break; - default: - Debug.assertNever(node, "Node should not have been registered for unused identifiers check"); - } - } - } - function errorUnusedLocal(declaration, name, addDiagnostic) { - const node = getNameOfDeclaration(declaration) || declaration; - const message = isTypeDeclaration(declaration) ? Diagnostics._0_is_declared_but_never_used : Diagnostics._0_is_declared_but_its_value_is_never_read; - addDiagnostic(declaration, 0 /* Local */, createDiagnosticForNode(node, message, name)); - } - function isIdentifierThatStartsWithUnderscore(node) { - return isIdentifier(node) && idText(node).charCodeAt(0) === 95 /* _ */; - } - function checkUnusedClassMembers(node, addDiagnostic) { - for (const member of node.members) { - switch (member.kind) { - case 174 /* MethodDeclaration */: - case 172 /* PropertyDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { - break; - } - const symbol = getSymbolOfDeclaration(member); - if (!symbol.isReferenced && (hasEffectiveModifier(member, 2 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { - addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); - } - break; - case 176 /* Constructor */: - for (const parameter of member.parameters) { - if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 2 /* Private */)) { - addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); - } - } - break; - case 181 /* IndexSignature */: - case 240 /* SemicolonClassElement */: - case 175 /* ClassStaticBlockDeclaration */: - break; - default: - Debug.fail("Unexpected class member"); - } - } - } - function checkUnusedInferTypeParameter(node, addDiagnostic) { - const { typeParameter } = node; - if (isTypeParameterUnused(typeParameter)) { - addDiagnostic(node, 1 /* Parameter */, createDiagnosticForNode(node, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(typeParameter.name))); - } - } - function checkUnusedTypeParameters(node, addDiagnostic) { - const declarations = getSymbolOfDeclaration(node).declarations; - if (!declarations || last(declarations) !== node) return; - const typeParameters = getEffectiveTypeParameterDeclarations(node); - const seenParentsWithEveryUnused = /* @__PURE__ */ new Set(); - for (const typeParameter of typeParameters) { - if (!isTypeParameterUnused(typeParameter)) continue; - const name = idText(typeParameter.name); - const { parent } = typeParameter; - if (parent.kind !== 195 /* InferType */ && parent.typeParameters.every(isTypeParameterUnused)) { - if (tryAddToSet(seenParentsWithEveryUnused, parent)) { - const sourceFile = getSourceFileOfNode(parent); - const range = isJSDocTemplateTag(parent) ? rangeOfNode(parent) : rangeOfTypeParameters(sourceFile, parent.typeParameters); - const only = parent.typeParameters.length === 1; - const messageAndArg = only ? [Diagnostics._0_is_declared_but_its_value_is_never_read, name] : [Diagnostics.All_type_parameters_are_unused]; - addDiagnostic(typeParameter, 1 /* Parameter */, createFileDiagnostic(sourceFile, range.pos, range.end - range.pos, ...messageAndArg)); - } - } else { - addDiagnostic(typeParameter, 1 /* Parameter */, createDiagnosticForNode(typeParameter, Diagnostics._0_is_declared_but_its_value_is_never_read, name)); - } - } - } - function isTypeParameterUnused(typeParameter) { - return !(getMergedSymbol(typeParameter.symbol).isReferenced & 262144 /* TypeParameter */) && !isIdentifierThatStartsWithUnderscore(typeParameter.name); - } - function addToGroup(map2, key, value, getKey) { - const keyString = String(getKey(key)); - const group2 = map2.get(keyString); - if (group2) { - group2[1].push(value); - } else { - map2.set(keyString, [key, [value]]); - } - } - function tryGetRootParameterDeclaration(node) { - return tryCast(getRootDeclaration(node), isParameter); - } - function isValidUnusedLocalDeclaration(declaration) { - if (isBindingElement(declaration)) { - if (isObjectBindingPattern(declaration.parent)) { - return !!(declaration.propertyName && isIdentifierThatStartsWithUnderscore(declaration.name)); - } - return isIdentifierThatStartsWithUnderscore(declaration.name); - } - return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name); - } - function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) { - const unusedImports = /* @__PURE__ */ new Map(); - const unusedDestructures = /* @__PURE__ */ new Map(); - const unusedVariables = /* @__PURE__ */ new Map(); - nodeWithLocals.locals.forEach((local) => { - if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) { - return; - } - if (local.declarations) { - for (const declaration of local.declarations) { - if (isValidUnusedLocalDeclaration(declaration)) { - continue; - } - if (isImportedDeclaration(declaration)) { - addToGroup(unusedImports, importClauseFromImported(declaration), declaration, getNodeId); - } else if (isBindingElement(declaration) && isObjectBindingPattern(declaration.parent)) { - const lastElement = last(declaration.parent.elements); - if (declaration === lastElement || !last(declaration.parent.elements).dotDotDotToken) { - addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); - } - } else if (isVariableDeclaration(declaration)) { - const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; - const name = getNameOfDeclaration(declaration); - if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { - addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); - } - } else { - const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); - const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); - if (parameter && name) { - if (!isParameterPropertyDeclaration(parameter, parameter.parent) && !parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) { - if (isBindingElement(declaration) && isArrayBindingPattern(declaration.parent)) { - addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); - } else { - addDiagnostic(parameter, 1 /* Parameter */, createDiagnosticForNode(name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolName(local))); - } - } - } else { - errorUnusedLocal(declaration, symbolName(local), addDiagnostic); - } - } - } - } - }); - unusedImports.forEach(([importClause, unuseds]) => { - const importDecl = importClause.parent; - const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); - if (nDeclarations === unuseds.length) { - addDiagnostic( - importDecl, - 0 /* Local */, - unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused) - ); - } else { - for (const unused of unuseds) errorUnusedLocal(unused, idText(unused.name), addDiagnostic); - } - }); - unusedDestructures.forEach(([bindingPattern, bindingElements]) => { - const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; - if (bindingPattern.elements.length === bindingElements.length) { - if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { - addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); - } else { - addDiagnostic( - bindingPattern, - kind, - bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused) - ); - } - } else { - for (const e of bindingElements) { - addDiagnostic(e, kind, createDiagnosticForNode(e, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(e.name))); - } - } - }); - unusedVariables.forEach(([declarationList, declarations]) => { - if (declarationList.declarations.length === declarations.length) { - addDiagnostic( - declarationList, - 0 /* Local */, - declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused) - ); - } else { - for (const decl of declarations) { - addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); - } - } - }); - } - function checkPotentialUncheckedRenamedBindingElementsInTypes() { - var _a; - for (const node of potentialUnusedRenamedBindingElementsInTypes) { - if (!((_a = getSymbolOfDeclaration(node)) == null ? void 0 : _a.isReferenced)) { - const wrappingDeclaration = walkUpBindingElementsAndPatterns(node); - Debug.assert(isPartOfParameterDeclaration(wrappingDeclaration), "Only parameter declaration should be checked here"); - const diagnostic = createDiagnosticForNode(node.name, Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation, declarationNameToString(node.name), declarationNameToString(node.propertyName)); - if (!wrappingDeclaration.type) { - addRelatedInfo( - diagnostic, - createFileDiagnostic(getSourceFileOfNode(wrappingDeclaration), wrappingDeclaration.end, 0, Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, declarationNameToString(node.propertyName)) - ); - } - diagnostics.add(diagnostic); - } - } - } - function bindingNameText(name) { - switch (name.kind) { - case 80 /* Identifier */: - return idText(name); - case 207 /* ArrayBindingPattern */: - case 206 /* ObjectBindingPattern */: - return bindingNameText(cast(first(name.elements), isBindingElement).name); - default: - return Debug.assertNever(name); - } - } - function isImportedDeclaration(node) { - return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; - } - function importClauseFromImported(decl) { - return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; - } - function checkBlock(node) { - if (node.kind === 241 /* Block */) { - checkGrammarStatementInAmbientContext(node); - } - if (isFunctionOrModuleBlock(node)) { - const saveFlowAnalysisDisabled = flowAnalysisDisabled; - forEach(node.statements, checkSourceElement); - flowAnalysisDisabled = saveFlowAnalysisDisabled; - } else { - forEach(node.statements, checkSourceElement); - } - if (node.locals) { - registerForUnusedIdentifiersCheck(node); - } - } - function checkCollisionWithArgumentsInGeneratedCode(node) { - if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { - return; - } - forEach(node.parameters, (p) => { - if (p.name && !isBindingPattern(p.name) && p.name.escapedText === argumentsSymbol.escapedName) { - errorSkippedOn("noEmit", p, Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters); - } - }); - } - function needCollisionCheckForIdentifier(node, identifier, name) { - if ((identifier == null ? void 0 : identifier.escapedText) !== name) { - return false; - } - if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { - return false; - } - if (node.flags & 33554432 /* Ambient */) { - return false; - } - if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { - if (isTypeOnlyImportOrExportDeclaration(node)) { - return false; - } - } - const root = getRootDeclaration(node); - if (isParameter(root) && nodeIsMissing(root.parent.body)) { - return false; - } - return true; - } - function checkIfThisIsCapturedInEnclosingScope(node) { - findAncestor(node, (current) => { - if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { - const isDeclaration2 = node.kind !== 80 /* Identifier */; - if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); - } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); - } - return true; - } - return false; - }); - } - function checkIfNewTargetIsCapturedInEnclosingScope(node) { - findAncestor(node, (current) => { - if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) { - const isDeclaration2 = node.kind !== 80 /* Identifier */; - if (isDeclaration2) { - error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); - } else { - error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); - } - return true; - } - return false; - }); - } - function checkCollisionWithRequireExportsInGeneratedCode(node, name) { - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) >= 5 /* ES2015 */) { - return; - } - if (!name || !needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) { - return; - } - if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1 /* Instantiated */) { - return; - } - const parent = getDeclarationContainer(node); - if (parent.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(parent)) { - errorSkippedOn("noEmit", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, declarationNameToString(name), declarationNameToString(name)); - } - } - function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) { - if (!name || languageVersion >= 4 /* ES2017 */ || !needCollisionCheckForIdentifier(node, name, "Promise")) { - return; - } - if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1 /* Instantiated */) { - return; - } - const parent = getDeclarationContainer(node); - if (parent.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(parent) && parent.flags & 4096 /* HasAsyncFunctions */) { - errorSkippedOn("noEmit", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, declarationNameToString(name), declarationNameToString(name)); - } - } - function recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name) { - if (languageVersion <= 8 /* ES2021 */ && (needCollisionCheckForIdentifier(node, name, "WeakMap") || needCollisionCheckForIdentifier(node, name, "WeakSet"))) { - potentialWeakMapSetCollisions.push(node); - } - } - function checkWeakMapSetCollision(node) { - const enclosingBlockScope = getEnclosingBlockScopeContainer(node); - if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { - Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); - errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); - } - } - function recordPotentialCollisionWithReflectInGeneratedCode(node, name) { - if (name && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && needCollisionCheckForIdentifier(node, name, "Reflect")) { - potentialReflectCollisions.push(node); - } - } - function checkReflectCollision(node) { - let hasCollision = false; - if (isClassExpression(node)) { - for (const member of node.members) { - if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { - hasCollision = true; - break; - } - } - } else if (isFunctionExpression(node)) { - if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { - hasCollision = true; - } - } else { - const container = getEnclosingBlockScopeContainer(node); - if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { - hasCollision = true; - } - } - if (hasCollision) { - Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name), "The target of a Reflect collision check should be an identifier"); - errorSkippedOn("noEmit", node, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, declarationNameToString(node.name), "Reflect"); - } - } - function checkCollisionsForDeclarationName(node, name) { - if (!name) return; - checkCollisionWithRequireExportsInGeneratedCode(node, name); - checkCollisionWithGlobalPromiseInGeneratedCode(node, name); - recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name); - recordPotentialCollisionWithReflectInGeneratedCode(node, name); - if (isClassLike(node)) { - checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); - if (!(node.flags & 33554432 /* Ambient */)) { - checkClassNameCollisionWithObject(name); - } - } else if (isEnumDeclaration(node)) { - checkTypeNameIsReserved(name, Diagnostics.Enum_name_cannot_be_0); - } - } - function checkVarDeclaredNamesNotShadowed(node) { - if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isPartOfParameterDeclaration(node)) { - return; - } - const symbol = getSymbolOfDeclaration(node); - if (symbol.flags & 1 /* FunctionScopedVariable */) { - if (!isIdentifier(node.name)) return Debug.fail(); - const localDeclarationSymbol = resolveName( - node, - node.name.escapedText, - 3 /* Variable */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - ); - if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { - if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { - const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); - const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; - const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 307 /* SourceFile */); - if (!namesShareScope) { - const name = symbolToString(localDeclarationSymbol); - error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); - } - } - } - } - } - function convertAutoToAny(type) { - return type === autoType ? anyType : type === autoArrayType ? anyArrayType : type; - } - function checkVariableLikeDeclaration(node) { - var _a; - checkDecorators(node); - if (!isBindingElement(node)) { - checkSourceElement(node.type); - } - if (!node.name) { - return; - } - if (node.name.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.name); - if (hasOnlyExpressionInitializer(node) && node.initializer) { - checkExpressionCached(node.initializer); - } - } - if (isBindingElement(node)) { - if (node.propertyName && isIdentifier(node.name) && isPartOfParameterDeclaration(node) && nodeIsMissing(getContainingFunction(node).body)) { - potentialUnusedRenamedBindingElementsInTypes.push(node); - return; - } - if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) { - checkExternalEmitHelpers(node, 4 /* Rest */); - } - if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { - checkComputedPropertyName(node.propertyName); - } - const parent = node.parent.parent; - const parentCheckMode = node.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */; - const parentType = getTypeForBindingElementParent(parent, parentCheckMode); - const name = node.propertyName || node.name; - if (parentType && !isBindingPattern(name)) { - const exprType = getLiteralTypeFromPropertyName(name); - if (isTypeUsableAsPropertyName(exprType)) { - const nameText = getPropertyNameFromType(exprType); - const property = getPropertyOfType(parentType, nameText); - if (property) { - markPropertyAsReferenced( - property, - /*nodeForCheckWriteOnly*/ - void 0, - /*isSelfTypeAccess*/ - false - ); - checkPropertyAccessibility( - node, - !!parent.initializer && parent.initializer.kind === 108 /* SuperKeyword */, - /*writing*/ - false, - parentType, - property - ); - } - } - } - } - if (isBindingPattern(node.name)) { - if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) { - checkExternalEmitHelpers(node, 512 /* Read */); - } - forEach(node.name.elements, checkSourceElement); - } - if (node.initializer && isPartOfParameterDeclaration(node) && nodeIsMissing(getContainingFunction(node).body)) { - error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); - return; - } - if (isBindingPattern(node.name)) { - if (isInAmbientOrTypeNode(node)) { - return; - } - const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; - const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); - if (needCheckInitializer || needCheckWidenedType) { - const widenedType = getWidenedTypeForVariableLikeDeclaration(node); - if (needCheckInitializer) { - const initializerType = checkExpressionCached(node.initializer); - if (strictNullChecks && needCheckWidenedType) { - checkNonNullNonVoidType(initializerType, node); - } else { - checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer); - } - } - if (needCheckWidenedType) { - if (isArrayBindingPattern(node.name)) { - checkIteratedTypeOrElementType(65 /* Destructuring */, widenedType, undefinedType, node); - } else if (strictNullChecks) { - checkNonNullNonVoidType(widenedType, node); - } - } - } - return; - } - const symbol = getSymbolOfDeclaration(node); - if (symbol.flags & 2097152 /* Alias */ && (isVariableDeclarationInitializedToBareOrAccessedRequire(node) || isBindingElementOfBareOrAccessedRequire(node))) { - checkAliasSymbol(node); - return; - } - if (node.name.kind === 10 /* BigIntLiteral */) { - error(node.name, Diagnostics.A_bigint_literal_cannot_be_used_as_a_property_name); - } - const type = convertAutoToAny(getTypeOfSymbol(symbol)); - if (node === symbol.valueDeclaration) { - const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); - if (initializer) { - const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); - if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { - const initializerType = checkExpressionCached(initializer); - checkTypeAssignableToAndOptionallyElaborate( - initializerType, - type, - node, - initializer, - /*headMessage*/ - void 0 - ); - const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; - if (blockScopeKind === 6 /* AwaitUsing */) { - const globalAsyncDisposableType = getGlobalAsyncDisposableType( - /*reportErrors*/ - true - ); - const globalDisposableType = getGlobalDisposableType( - /*reportErrors*/ - true - ); - if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { - const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); - checkTypeAssignableTo(widenTypeForVariableLikeDeclaration(initializerType, node), optionalDisposableType, initializer, Diagnostics.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); - } - } else if (blockScopeKind === 4 /* Using */) { - const globalDisposableType = getGlobalDisposableType( - /*reportErrors*/ - true - ); - if (globalDisposableType !== emptyObjectType) { - const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); - checkTypeAssignableTo(widenTypeForVariableLikeDeclaration(initializerType, node), optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); - } - } - } - } - if (symbol.declarations && symbol.declarations.length > 1) { - if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); - } - } - } else { - const declarationType = convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(node)); - if (!isErrorType(type) && !isErrorType(declarationType) && !isTypeIdenticalTo(type, declarationType) && !(symbol.flags & 67108864 /* Assignment */)) { - errorNextVariableOrPropertyDeclarationMustHaveSameType(symbol.valueDeclaration, type, node, declarationType); - } - if (hasOnlyExpressionInitializer(node) && node.initializer) { - checkTypeAssignableToAndOptionallyElaborate( - checkExpressionCached(node.initializer), - declarationType, - node, - node.initializer, - /*headMessage*/ - void 0 - ); - } - if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) { - error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); - } - } - if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { - checkExportsOnMergedDeclarations(node); - if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { - checkVarDeclaredNamesNotShadowed(node); - } - checkCollisionsForDeclarationName(node, node.name); - } - } - function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { - const nextDeclarationName = getNameOfDeclaration(nextDeclaration); - const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; - const declName = declarationNameToString(nextDeclarationName); - const err = error( - nextDeclarationName, - message, - declName, - typeToString(firstType), - typeToString(nextType) - ); - if (firstDeclaration) { - addRelatedInfo(err, createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here, declName)); - } - } - function areDeclarationFlagsIdentical(left, right) { - if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { - return true; - } - if (hasQuestionToken(left) !== hasQuestionToken(right)) { - return false; - } - const interestingFlags = 2 /* Private */ | 4 /* Protected */ | 1024 /* Async */ | 64 /* Abstract */ | 8 /* Readonly */ | 256 /* Static */; - return getSelectedEffectiveModifierFlags(left, interestingFlags) === getSelectedEffectiveModifierFlags(right, interestingFlags); - } - function checkVariableDeclaration(node) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkVariableDeclaration", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); - checkGrammarVariableDeclaration(node); - checkVariableLikeDeclaration(node); - (_b = tracing) == null ? void 0 : _b.pop(); - } - function checkBindingElement(node) { - checkGrammarBindingElement(node); - return checkVariableLikeDeclaration(node); - } - function checkVariableDeclarationList(node) { - const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; - if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) { - checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */); - } - forEach(node.declarations, checkSourceElement); - } - function checkVariableStatement(node) { - if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) checkGrammarForDisallowedBlockScopedVariableStatement(node); - checkVariableDeclarationList(node.declarationList); - } - function checkExpressionStatement(node) { - checkGrammarStatementInAmbientContext(node); - checkExpression(node.expression); - } - function checkIfStatement(node) { - checkGrammarStatementInAmbientContext(node); - const type = checkTruthinessExpression(node.expression); - checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.expression, type, node.thenStatement); - checkSourceElement(node.thenStatement); - if (node.thenStatement.kind === 242 /* EmptyStatement */) { - error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); - } - checkSourceElement(node.elseStatement); - } - function checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(condExpr, condType, body) { - if (!strictNullChecks) return; - bothHelper(condExpr, body); - function bothHelper(condExpr2, body2) { - condExpr2 = skipParentheses(condExpr2); - helper(condExpr2, body2); - while (isBinaryExpression(condExpr2) && (condExpr2.operatorToken.kind === 57 /* BarBarToken */ || condExpr2.operatorToken.kind === 61 /* QuestionQuestionToken */)) { - condExpr2 = skipParentheses(condExpr2.left); - helper(condExpr2, body2); - } - } - function helper(condExpr2, body2) { - const location = isLogicalOrCoalescingBinaryExpression(condExpr2) ? skipParentheses(condExpr2.right) : condExpr2; - if (isModuleExportsAccessExpression(location)) { - return; - } - if (isLogicalOrCoalescingBinaryExpression(location)) { - bothHelper(location, body2); - return; - } - const type = location === condExpr2 ? condType : checkExpression(location); - if (type.flags & 1024 /* EnumLiteral */ && isPropertyAccessExpression(location) && (getNodeLinks(location.expression).resolvedSymbol ?? unknownSymbol).flags & 384 /* Enum */) { - error(location, Diagnostics.This_condition_will_always_return_0, !!type.value ? "true" : "false"); - return; - } - const isPropertyExpressionCast = isPropertyAccessExpression(location) && isTypeAssertion(location.expression); - if (!hasTypeFacts(type, 4194304 /* Truthy */) || isPropertyExpressionCast) return; - const callSignatures = getSignaturesOfType(type, 0 /* Call */); - const isPromise = !!getAwaitedTypeOfPromise(type); - if (callSignatures.length === 0 && !isPromise) { - return; - } - const testedNode = isIdentifier(location) ? location : isPropertyAccessExpression(location) ? location.name : void 0; - const testedSymbol = testedNode && getSymbolAtLocation(testedNode); - if (!testedSymbol && !isPromise) { - return; - } - const isUsed = testedSymbol && isBinaryExpression(condExpr2.parent) && isSymbolUsedInBinaryExpressionChain(condExpr2.parent, testedSymbol) || testedSymbol && body2 && isSymbolUsedInConditionBody(condExpr2, body2, testedNode, testedSymbol); - if (!isUsed) { - if (isPromise) { - errorAndMaybeSuggestAwait( - location, - /*maybeMissingAwait*/ - true, - Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined, - getTypeNameForErrorDisplay(type) - ); - } else { - error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); - } - } - } - } - function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) { - return !!forEachChild(body, function check(childNode) { - if (isIdentifier(childNode)) { - const childSymbol = getSymbolAtLocation(childNode); - if (childSymbol && childSymbol === testedSymbol) { - if (isIdentifier(expr) || isIdentifier(testedNode) && isBinaryExpression(testedNode.parent)) { - return true; - } - let testedExpression = testedNode.parent; - let childExpression = childNode.parent; - while (testedExpression && childExpression) { - if (isIdentifier(testedExpression) && isIdentifier(childExpression) || testedExpression.kind === 110 /* ThisKeyword */ && childExpression.kind === 110 /* ThisKeyword */) { - return getSymbolAtLocation(testedExpression) === getSymbolAtLocation(childExpression); - } else if (isPropertyAccessExpression(testedExpression) && isPropertyAccessExpression(childExpression)) { - if (getSymbolAtLocation(testedExpression.name) !== getSymbolAtLocation(childExpression.name)) { - return false; - } - childExpression = childExpression.expression; - testedExpression = testedExpression.expression; - } else if (isCallExpression(testedExpression) && isCallExpression(childExpression)) { - childExpression = childExpression.expression; - testedExpression = testedExpression.expression; - } else { - return false; - } - } - } - } - return forEachChild(childNode, check); - }); - } - function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) { - while (isBinaryExpression(node) && node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { - const isUsed = forEachChild(node.right, function visit(child) { - if (isIdentifier(child)) { - const symbol = getSymbolAtLocation(child); - if (symbol && symbol === testedSymbol) { - return true; - } - } - return forEachChild(child, visit); - }); - if (isUsed) { - return true; - } - node = node.parent; - } - return false; - } - function checkDoStatement(node) { - checkGrammarStatementInAmbientContext(node); - checkSourceElement(node.statement); - checkTruthinessExpression(node.expression); - } - function checkWhileStatement(node) { - checkGrammarStatementInAmbientContext(node); - checkTruthinessExpression(node.expression); - checkSourceElement(node.statement); - } - function checkTruthinessOfType(type, node) { - if (type.flags & 16384 /* Void */) { - error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); - } else { - const semantics = getSyntacticTruthySemantics(node); - if (semantics !== 3 /* Sometimes */) { - error( - node, - semantics === 1 /* Always */ ? Diagnostics.This_kind_of_expression_is_always_truthy : Diagnostics.This_kind_of_expression_is_always_falsy - ); - } - } - return type; - } - function getSyntacticTruthySemantics(node) { - node = skipOuterExpressions(node); - switch (node.kind) { - case 9 /* NumericLiteral */: - if (node.text === "0" || node.text === "1") { - return 3 /* Sometimes */; - } - return 1 /* Always */; - case 209 /* ArrayLiteralExpression */: - case 219 /* ArrowFunction */: - case 10 /* BigIntLiteral */: - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 210 /* ObjectLiteralExpression */: - case 14 /* RegularExpressionLiteral */: - return 1 /* Always */; - case 222 /* VoidExpression */: - case 106 /* NullKeyword */: - return 2 /* Never */; - case 15 /* NoSubstitutionTemplateLiteral */: - case 11 /* StringLiteral */: - return !!node.text ? 1 /* Always */ : 2 /* Never */; - case 227 /* ConditionalExpression */: - return getSyntacticTruthySemantics(node.whenTrue) | getSyntacticTruthySemantics(node.whenFalse); - case 80 /* Identifier */: - if (getResolvedSymbol(node) === undefinedSymbol) { - return 2 /* Never */; - } - return 3 /* Sometimes */; - } - return 3 /* Sometimes */; - } - function checkTruthinessExpression(node, checkMode) { - return checkTruthinessOfType(checkExpression(node, checkMode), node); - } - function checkForStatement(node) { - if (!checkGrammarStatementInAmbientContext(node)) { - if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { - checkGrammarVariableDeclarationList(node.initializer); - } - } - if (node.initializer) { - if (node.initializer.kind === 261 /* VariableDeclarationList */) { - checkVariableDeclarationList(node.initializer); - } else { - checkExpression(node.initializer); - } - } - if (node.condition) checkTruthinessExpression(node.condition); - if (node.incrementor) checkExpression(node.incrementor); - checkSourceElement(node.statement); - if (node.locals) { - registerForUnusedIdentifiersCheck(node); - } - } - function checkForOfStatement(node) { - checkGrammarForInOrForOfStatement(node); - const container = getContainingFunctionOrClassStaticBlock(node); - if (node.awaitModifier) { - if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); - } else { - const functionFlags = getFunctionFlags(container); - if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) { - checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */); - } - } - } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) { - checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); - } - if (node.initializer.kind === 261 /* VariableDeclarationList */) { - checkVariableDeclarationList(node.initializer); - } else { - const varExpr = node.initializer; - const iteratedType = checkRightHandSideOfForOf(node); - if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { - checkDestructuringAssignment(varExpr, iteratedType || errorType); - } else { - const leftType = checkExpression(varExpr); - checkReferenceExpression( - varExpr, - Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, - Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access - ); - if (iteratedType) { - checkTypeAssignableToAndOptionallyElaborate(iteratedType, leftType, varExpr, node.expression); - } - } - } - checkSourceElement(node.statement); - if (node.locals) { - registerForUnusedIdentifiersCheck(node); - } - } - function checkForInStatement(node) { - checkGrammarForInOrForOfStatement(node); - const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); - if (node.initializer.kind === 261 /* VariableDeclarationList */) { - const variable = node.initializer.declarations[0]; - if (variable && isBindingPattern(variable.name)) { - error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); - } - checkVariableDeclarationList(node.initializer); - } else { - const varExpr = node.initializer; - const leftType = checkExpression(varExpr); - if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); - } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { - error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); - } else { - checkReferenceExpression( - varExpr, - Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, - Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access - ); - } - } - if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) { - error(node.expression, Diagnostics.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, typeToString(rightType)); - } - checkSourceElement(node.statement); - if (node.locals) { - registerForUnusedIdentifiersCheck(node); - } - } - function checkRightHandSideOfForOf(statement) { - const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; - return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); - } - function checkIteratedTypeOrElementType(use, inputType, sentType, errorNode) { - if (isTypeAny(inputType)) { - return inputType; - } - return getIteratedTypeOrElementType( - use, - inputType, - sentType, - errorNode, - /*checkAssignability*/ - true - ) || anyType; - } - function getIteratedTypeOrElementType(use, inputType, sentType, errorNode, checkAssignability) { - const allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0; - if (inputType === neverType) { - if (errorNode) { - reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables); - } - return void 0; - } - const uplevelIteration = languageVersion >= 2 /* ES2015 */; - const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration; - const possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128 /* PossiblyOutOfBounds */); - if (uplevelIteration || downlevelIteration || allowAsyncIterables) { - const iterationTypes = getIterationTypesOfIterable(inputType, use, uplevelIteration ? errorNode : void 0); - if (checkAssignability) { - if (iterationTypes) { - const diagnostic = use & 8 /* ForOfFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 : use & 32 /* SpreadFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 : use & 64 /* DestructuringFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 : use & 16 /* YieldStarFlag */ ? Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0 : void 0; - if (diagnostic) { - checkTypeAssignableTo(sentType, iterationTypes.nextType, errorNode, diagnostic); - } - } - } - if (iterationTypes || uplevelIteration) { - return possibleOutOfBounds ? includeUndefinedInIndexSignature(iterationTypes && iterationTypes.yieldType) : iterationTypes && iterationTypes.yieldType; - } - } - let arrayType = inputType; - let hasStringConstituent = false; - if (use & 4 /* AllowsStringInputFlag */) { - if (arrayType.flags & 1048576 /* Union */) { - const arrayTypes = inputType.types; - const filteredTypes = filter(arrayTypes, (t) => !(t.flags & 402653316 /* StringLike */)); - if (filteredTypes !== arrayTypes) { - arrayType = getUnionType(filteredTypes, 2 /* Subtype */); - } - } else if (arrayType.flags & 402653316 /* StringLike */) { - arrayType = neverType; - } - hasStringConstituent = arrayType !== inputType; - if (hasStringConstituent) { - if (arrayType.flags & 131072 /* Never */) { - return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType; - } - } - } - if (!isArrayLikeType(arrayType)) { - if (errorNode) { - const allowsStrings = !!(use & 4 /* AllowsStringInputFlag */) && !hasStringConstituent; - const [defaultDiagnostic, maybeMissingAwait] = getIterationDiagnosticDetails(allowsStrings, downlevelIteration); - errorAndMaybeSuggestAwait( - errorNode, - maybeMissingAwait && !!getAwaitedTypeOfPromise(arrayType), - defaultDiagnostic, - typeToString(arrayType) - ); - } - return hasStringConstituent ? possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType : void 0; - } - const arrayElementType = getIndexTypeOfType(arrayType, numberType); - if (hasStringConstituent && arrayElementType) { - if (arrayElementType.flags & 402653316 /* StringLike */ && !compilerOptions.noUncheckedIndexedAccess) { - return stringType; - } - return getUnionType(possibleOutOfBounds ? [arrayElementType, stringType, undefinedType] : [arrayElementType, stringType], 2 /* Subtype */); - } - return use & 128 /* PossiblyOutOfBounds */ ? includeUndefinedInIndexSignature(arrayElementType) : arrayElementType; - function getIterationDiagnosticDetails(allowsStrings, downlevelIteration2) { - var _a; - if (downlevelIteration2) { - return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true] : [Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true]; - } - const yieldType = getIterationTypeOfIterable( - use, - 0 /* Yield */, - inputType, - /*errorNode*/ - void 0 - ); - if (yieldType) { - return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, false]; - } - if (isES2015OrLaterIterable((_a = inputType.symbol) == null ? void 0 : _a.escapedName)) { - return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, true]; - } - return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type, true] : [Diagnostics.Type_0_is_not_an_array_type, true]; - } - } - function isES2015OrLaterIterable(n) { - switch (n) { - case "Float32Array": - case "Float64Array": - case "Int16Array": - case "Int32Array": - case "Int8Array": - case "NodeList": - case "Uint16Array": - case "Uint32Array": - case "Uint8Array": - case "Uint8ClampedArray": - return true; - } - return false; - } - function getIterationTypeOfIterable(use, typeKind, inputType, errorNode) { - if (isTypeAny(inputType)) { - return void 0; - } - const iterationTypes = getIterationTypesOfIterable(inputType, use, errorNode); - return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(typeKind)]; - } - function createIterationTypes(yieldType = neverType, returnType = neverType, nextType = unknownType) { - if (yieldType.flags & 67359327 /* Intrinsic */ && returnType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */) && nextType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */)) { - const id = getTypeListId([yieldType, returnType, nextType]); - let iterationTypes = iterationTypesCache.get(id); - if (!iterationTypes) { - iterationTypes = { yieldType, returnType, nextType }; - iterationTypesCache.set(id, iterationTypes); - } - return iterationTypes; - } - return { yieldType, returnType, nextType }; - } - function combineIterationTypes(array) { - let yieldTypes; - let returnTypes; - let nextTypes; - for (const iterationTypes of array) { - if (iterationTypes === void 0 || iterationTypes === noIterationTypes) { - continue; - } - if (iterationTypes === anyIterationTypes) { - return anyIterationTypes; - } - yieldTypes = append(yieldTypes, iterationTypes.yieldType); - returnTypes = append(returnTypes, iterationTypes.returnType); - nextTypes = append(nextTypes, iterationTypes.nextType); - } - if (yieldTypes || returnTypes || nextTypes) { - return createIterationTypes( - yieldTypes && getUnionType(yieldTypes), - returnTypes && getUnionType(returnTypes), - nextTypes && getIntersectionType(nextTypes) - ); - } - return noIterationTypes; - } - function getCachedIterationTypes(type, cacheKey) { - return type[cacheKey]; - } - function setCachedIterationTypes(type, cacheKey, cachedTypes2) { - return type[cacheKey] = cachedTypes2; - } - function getIterationTypesOfIterable(type, use, errorNode) { - var _a, _b; - if (isTypeAny(type)) { - return anyIterationTypes; - } - if (!(type.flags & 1048576 /* Union */)) { - const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0; - const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer); - if (iterationTypes2 === noIterationTypes) { - if (errorNode) { - const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */)); - if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) { - addRelatedInfo(rootDiag, ...errorOutputContainer.errors); - } - } - return void 0; - } else if ((_a = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _a.length) { - for (const diag2 of errorOutputContainer.errors) { - diagnostics.add(diag2); - } - } - return iterationTypes2; - } - const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable"; - const cachedTypes2 = getCachedIterationTypes(type, cacheKey); - if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2; - let allIterationTypes; - for (const constituent of type.types) { - const errorOutputContainer = errorNode ? { errors: void 0 } : void 0; - const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer); - if (iterationTypes2 === noIterationTypes) { - if (errorNode) { - const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */)); - if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) { - addRelatedInfo(rootDiag, ...errorOutputContainer.errors); - } - } - setCachedIterationTypes(type, cacheKey, noIterationTypes); - return void 0; - } else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) { - for (const diag2 of errorOutputContainer.errors) { - diagnostics.add(diag2); - } - } - allIterationTypes = append(allIterationTypes, iterationTypes2); - } - const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes; - setCachedIterationTypes(type, cacheKey, iterationTypes); - return iterationTypes === noIterationTypes ? void 0 : iterationTypes; - } - function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) { - if (iterationTypes === noIterationTypes) return noIterationTypes; - if (iterationTypes === anyIterationTypes) return anyIterationTypes; - const { yieldType, returnType, nextType } = iterationTypes; - if (errorNode) { - getGlobalAwaitedSymbol( - /*reportErrors*/ - true - ); - } - return createIterationTypes( - getAwaitedType(yieldType, errorNode) || anyType, - getAwaitedType(returnType, errorNode) || anyType, - nextType - ); - } - function getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer) { - if (isTypeAny(type)) { - return anyIterationTypes; - } - let noCache = false; - if (use & 2 /* AllowsAsyncIterablesFlag */) { - const iterationTypes = getIterationTypesOfIterableCached(type, asyncIterationTypesResolver) || getIterationTypesOfIterableFast(type, asyncIterationTypesResolver); - if (iterationTypes) { - if (iterationTypes === noIterationTypes && errorNode) { - noCache = true; - } else { - return use & 8 /* ForOfFlag */ ? getAsyncFromSyncIterationTypes(iterationTypes, errorNode) : iterationTypes; - } - } - } - if (use & 1 /* AllowsSyncIterablesFlag */) { - let iterationTypes = getIterationTypesOfIterableCached(type, syncIterationTypesResolver) || getIterationTypesOfIterableFast(type, syncIterationTypesResolver); - if (iterationTypes) { - if (iterationTypes === noIterationTypes && errorNode) { - noCache = true; - } else { - if (use & 2 /* AllowsAsyncIterablesFlag */) { - if (iterationTypes !== noIterationTypes) { - iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); - return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); - } - } else { - return iterationTypes; - } - } - } - } - if (use & 2 /* AllowsAsyncIterablesFlag */) { - const iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode, errorOutputContainer, noCache); - if (iterationTypes !== noIterationTypes) { - return iterationTypes; - } - } - if (use & 1 /* AllowsSyncIterablesFlag */) { - let iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode, errorOutputContainer, noCache); - if (iterationTypes !== noIterationTypes) { - if (use & 2 /* AllowsAsyncIterablesFlag */) { - iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); - return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); - } else { - return iterationTypes; - } - } - } - return noIterationTypes; - } - function getIterationTypesOfIterableCached(type, resolver) { - return getCachedIterationTypes(type, resolver.iterableCacheKey); - } - function getIterationTypesOfIterableFast(type, resolver) { - if (isReferenceToType(type, resolver.getGlobalIterableType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalIteratorObjectType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalIterableIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalGeneratorType( - /*reportErrors*/ - false - ))) { - const [yieldType, returnType, nextType] = getTypeArguments(type); - return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( - yieldType, - /*errorNode*/ - void 0 - ) || yieldType, resolver.resolveIterationType( - returnType, - /*errorNode*/ - void 0 - ) || returnType, nextType)); - } - if (isReferenceToSomeType(type, resolver.getGlobalBuiltinIteratorTypes())) { - const [yieldType] = getTypeArguments(type); - const returnType = getBuiltinIteratorReturnType(); - const nextType = unknownType; - return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( - yieldType, - /*errorNode*/ - void 0 - ) || yieldType, resolver.resolveIterationType( - returnType, - /*errorNode*/ - void 0 - ) || returnType, nextType)); - } - } - function getPropertyNameForKnownSymbolName(symbolName2) { - const ctorType = getGlobalESSymbolConstructorSymbol( - /*reportErrors*/ - false - ); - const uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), escapeLeadingUnderscores(symbolName2)); - return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : `__@${symbolName2}`; - } - function getIterationTypesOfIterableSlow(type, resolver, errorNode, errorOutputContainer, noCache) { - const method = getPropertyOfType(type, getPropertyNameForKnownSymbolName(resolver.iteratorSymbolName)); - const methodType = method && !(method.flags & 16777216 /* Optional */) ? getTypeOfSymbol(method) : void 0; - if (isTypeAny(methodType)) { - return noCache ? anyIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes); - } - const allSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : void 0; - const validSignatures = filter(allSignatures, (sig) => getMinArgumentCount(sig) === 0); - if (!some(validSignatures)) { - if (errorNode && some(allSignatures)) { - checkTypeAssignableTo( - type, - resolver.getGlobalIterableType( - /*reportErrors*/ - true - ), - errorNode, - /*headMessage*/ - void 0, - /*containingMessageChain*/ - void 0, - errorOutputContainer - ); - } - return noCache ? noIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes); - } - const iteratorType = getIntersectionType(map(validSignatures, getReturnTypeOfSignature)); - const iterationTypes = getIterationTypesOfIteratorWorker(iteratorType, resolver, errorNode, errorOutputContainer, noCache) ?? noIterationTypes; - return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes); - } - function reportTypeNotIterableError(errorNode, type, allowAsyncIterables) { - const message = allowAsyncIterables ? Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator; - const suggestAwait = ( - // for (const x of Promise<...>) or [...Promise<...>] - !!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType( - /*reportErrors*/ - false - ) !== emptyGenericType && isTypeAssignableTo(type, createTypeFromGenericGlobalType(getGlobalAsyncIterableType( - /*reportErrors*/ - false - ), [anyType, anyType, anyType])) - ); - return errorAndMaybeSuggestAwait(errorNode, suggestAwait, message, typeToString(type)); - } - function getIterationTypesOfIterator(type, resolver, errorNode, errorOutputContainer) { - return getIterationTypesOfIteratorWorker( - type, - resolver, - errorNode, - errorOutputContainer, - /*noCache*/ - false - ); - } - function getIterationTypesOfIteratorWorker(type, resolver, errorNode, errorOutputContainer, noCache) { - if (isTypeAny(type)) { - return anyIterationTypes; - } - let iterationTypes = getIterationTypesOfIteratorCached(type, resolver) || getIterationTypesOfIteratorFast(type, resolver); - if (iterationTypes === noIterationTypes && errorNode) { - iterationTypes = void 0; - noCache = true; - } - iterationTypes ?? (iterationTypes = getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache)); - return iterationTypes === noIterationTypes ? void 0 : iterationTypes; - } - function getIterationTypesOfIteratorCached(type, resolver) { - return getCachedIterationTypes(type, resolver.iteratorCacheKey); - } - function getIterationTypesOfIteratorFast(type, resolver) { - if (isReferenceToType(type, resolver.getGlobalIterableIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalIteratorObjectType( - /*reportErrors*/ - false - )) || isReferenceToType(type, resolver.getGlobalGeneratorType( - /*reportErrors*/ - false - ))) { - const [yieldType, returnType, nextType] = getTypeArguments(type); - return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); - } - if (isReferenceToSomeType(type, resolver.getGlobalBuiltinIteratorTypes())) { - const [yieldType] = getTypeArguments(type); - const returnType = getBuiltinIteratorReturnType(); - const nextType = unknownType; - return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); - } - } - function isIteratorResult(type, kind) { - const doneType = getTypeOfPropertyOfType(type, "done") || falseType; - return isTypeAssignableTo(kind === 0 /* Yield */ ? falseType : trueType, doneType); - } - function isYieldIteratorResult(type) { - return isIteratorResult(type, 0 /* Yield */); - } - function isReturnIteratorResult(type) { - return isIteratorResult(type, 1 /* Return */); - } - function getIterationTypesOfIteratorResult(type) { - if (isTypeAny(type)) { - return anyIterationTypes; - } - const cachedTypes2 = getCachedIterationTypes(type, "iterationTypesOfIteratorResult"); - if (cachedTypes2) { - return cachedTypes2; - } - if (isReferenceToType(type, getGlobalIteratorYieldResultType( - /*reportErrors*/ - false - ))) { - const yieldType2 = getTypeArguments(type)[0]; - return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( - yieldType2, - /*returnType*/ - void 0, - /*nextType*/ - void 0 - )); - } - if (isReferenceToType(type, getGlobalIteratorReturnResultType( - /*reportErrors*/ - false - ))) { - const returnType2 = getTypeArguments(type)[0]; - return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( - /*yieldType*/ - void 0, - returnType2, - /*nextType*/ - void 0 - )); - } - const yieldIteratorResult = filterType(type, isYieldIteratorResult); - const yieldType = yieldIteratorResult !== neverType ? getTypeOfPropertyOfType(yieldIteratorResult, "value") : void 0; - const returnIteratorResult = filterType(type, isReturnIteratorResult); - const returnType = returnIteratorResult !== neverType ? getTypeOfPropertyOfType(returnIteratorResult, "value") : void 0; - if (!yieldType && !returnType) { - return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", noIterationTypes); - } - return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( - yieldType, - returnType || voidType, - /*nextType*/ - void 0 - )); - } - function getIterationTypesOfMethod(type, resolver, methodName, errorNode, errorOutputContainer) { - var _a, _b, _c, _d; - const method = getPropertyOfType(type, methodName); - if (!method && methodName !== "next") { - return void 0; - } - const methodType = method && !(methodName === "next" && method.flags & 16777216 /* Optional */) ? methodName === "next" ? getTypeOfSymbol(method) : getTypeWithFacts(getTypeOfSymbol(method), 2097152 /* NEUndefinedOrNull */) : void 0; - if (isTypeAny(methodType)) { - return anyIterationTypes; - } - const methodSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : emptyArray; - if (methodSignatures.length === 0) { - if (errorNode) { - const diagnostic = methodName === "next" ? resolver.mustHaveANextMethodDiagnostic : resolver.mustBeAMethodDiagnostic; - if (errorOutputContainer) { - errorOutputContainer.errors ?? (errorOutputContainer.errors = []); - errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); - } else { - error(errorNode, diagnostic, methodName); - } - } - return methodName === "next" ? noIterationTypes : void 0; - } - if ((methodType == null ? void 0 : methodType.symbol) && methodSignatures.length === 1) { - const globalGeneratorType = resolver.getGlobalGeneratorType( - /*reportErrors*/ - false - ); - const globalIteratorType = resolver.getGlobalIteratorType( - /*reportErrors*/ - false - ); - const isGeneratorMethod = ((_b = (_a = globalGeneratorType.symbol) == null ? void 0 : _a.members) == null ? void 0 : _b.get(methodName)) === methodType.symbol; - const isIteratorMethod = !isGeneratorMethod && ((_d = (_c = globalIteratorType.symbol) == null ? void 0 : _c.members) == null ? void 0 : _d.get(methodName)) === methodType.symbol; - if (isGeneratorMethod || isIteratorMethod) { - const globalType = isGeneratorMethod ? globalGeneratorType : globalIteratorType; - const { mapper } = methodType; - return createIterationTypes( - getMappedType(globalType.typeParameters[0], mapper), - getMappedType(globalType.typeParameters[1], mapper), - methodName === "next" ? getMappedType(globalType.typeParameters[2], mapper) : void 0 - ); - } - } - let methodParameterTypes; - let methodReturnTypes; - for (const signature of methodSignatures) { - if (methodName !== "throw" && some(signature.parameters)) { - methodParameterTypes = append(methodParameterTypes, getTypeAtPosition(signature, 0)); - } - methodReturnTypes = append(methodReturnTypes, getReturnTypeOfSignature(signature)); - } - let returnTypes; - let nextType; - if (methodName !== "throw") { - const methodParameterType = methodParameterTypes ? getUnionType(methodParameterTypes) : unknownType; - if (methodName === "next") { - nextType = methodParameterType; - } else if (methodName === "return") { - const resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType; - returnTypes = append(returnTypes, resolvedMethodParameterType); - } - } - let yieldType; - const methodReturnType = methodReturnTypes ? getIntersectionType(methodReturnTypes) : neverType; - const resolvedMethodReturnType = resolver.resolveIterationType(methodReturnType, errorNode) || anyType; - const iterationTypes = getIterationTypesOfIteratorResult(resolvedMethodReturnType); - if (iterationTypes === noIterationTypes) { - if (errorNode) { - if (errorOutputContainer) { - errorOutputContainer.errors ?? (errorOutputContainer.errors = []); - errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); - } else { - error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); - } - } - yieldType = anyType; - returnTypes = append(returnTypes, anyType); - } else { - yieldType = iterationTypes.yieldType; - returnTypes = append(returnTypes, iterationTypes.returnType); - } - return createIterationTypes(yieldType, getUnionType(returnTypes), nextType); - } - function getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache) { - const iterationTypes = combineIterationTypes([ - getIterationTypesOfMethod(type, resolver, "next", errorNode, errorOutputContainer), - getIterationTypesOfMethod(type, resolver, "return", errorNode, errorOutputContainer), - getIterationTypesOfMethod(type, resolver, "throw", errorNode, errorOutputContainer) - ]); - return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes); - } - function getIterationTypeOfGeneratorFunctionReturnType(kind, returnType, isAsyncGenerator) { - if (isTypeAny(returnType)) { - return void 0; - } - const iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsyncGenerator); - return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(kind)]; - } - function getIterationTypesOfGeneratorFunctionReturnType(type, isAsyncGenerator) { - if (isTypeAny(type)) { - return anyIterationTypes; - } - const use = isAsyncGenerator ? 2 /* AsyncGeneratorReturnType */ : 1 /* GeneratorReturnType */; - const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver; - return getIterationTypesOfIterable( - type, - use, - /*errorNode*/ - void 0 - ) || getIterationTypesOfIterator( - type, - resolver, - /*errorNode*/ - void 0, - /*errorOutputContainer*/ - void 0 - ); - } - function checkBreakOrContinueStatement(node) { - if (!checkGrammarStatementInAmbientContext(node)) checkGrammarBreakOrContinueStatement(node); - } - function unwrapReturnType(returnType, functionFlags) { - const isGenerator = !!(functionFlags & 1 /* Generator */); - const isAsync = !!(functionFlags & 2 /* Async */); - if (isGenerator) { - const returnIterationType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, isAsync); - if (!returnIterationType) { - return errorType; - } - return isAsync ? getAwaitedTypeNoAlias(unwrapAwaitedType(returnIterationType)) : returnIterationType; - } - return isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : returnType; - } - function isUnwrappedReturnTypeUndefinedVoidOrAny(func, returnType) { - const type = unwrapReturnType(returnType, getFunctionFlags(func)); - return !!(type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))); - } - function checkReturnStatement(node) { - if (checkGrammarStatementInAmbientContext(node)) { - return; - } - const container = getContainingFunctionOrClassStaticBlock(node); - if (container && isClassStaticBlockDeclaration(container)) { - grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block); - return; - } - if (!container) { - grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_can_only_be_used_within_a_function_body); - return; - } - const signature = getSignatureFromDeclaration(container); - const returnType = getReturnTypeOfSignature(signature); - if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { - const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (container.kind === 178 /* SetAccessor */) { - if (node.expression) { - error(node, Diagnostics.Setters_cannot_return_a_value); - } - } else if (container.kind === 176 /* Constructor */) { - const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) { - error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); - } - } else if (getReturnTypeFromAnnotation(container)) { - const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(container)) ?? returnType; - checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType); - } - } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { - error(node, Diagnostics.Not_all_code_paths_return_a_value); - } - } - function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) { - const excludeJSDocTypeAssertions = isInJSFile(node); - const functionFlags = getFunctionFlags(container); - if (expr) { - const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions); - if (isConditionalExpression(unwrappedExpr)) { - checkReturnExpression( - container, - unwrappedReturnType, - node, - unwrappedExpr.whenTrue, - checkExpression(unwrappedExpr.whenTrue), - /*inConditionalExpression*/ - true - ); - checkReturnExpression( - container, - unwrappedReturnType, - node, - unwrappedExpr.whenFalse, - checkExpression(unwrappedExpr.whenFalse), - /*inConditionalExpression*/ - true - ); - return; - } - } - const inReturnStatement = node.kind === 253 /* ReturnStatement */; - const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType( - exprType, - /*withAlias*/ - false, - node, - Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - ) : exprType; - const effectiveExpr = expr && getEffectiveCheckNode(expr); - const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr; - checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr); - } - function checkWithStatement(node) { - if (!checkGrammarStatementInAmbientContext(node)) { - if (node.flags & 65536 /* AwaitContext */) { - grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); - } - } - checkExpression(node.expression); - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - const start = getSpanOfTokenAtPosition(sourceFile, node.pos).start; - const end = node.statement.pos; - grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any); - } - } - function checkSwitchStatement(node) { - checkGrammarStatementInAmbientContext(node); - let firstDefaultClause; - let hasDuplicateDefaultClause = false; - const expressionType = checkExpression(node.expression); - forEach(node.caseBlock.clauses, (clause) => { - if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { - if (firstDefaultClause === void 0) { - firstDefaultClause = clause; - } else { - grammarErrorOnNode(clause, Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement); - hasDuplicateDefaultClause = true; - } - } - if (clause.kind === 296 /* CaseClause */) { - addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); - } - forEach(clause.statements, checkSourceElement); - if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) { - error(clause, Diagnostics.Fallthrough_case_in_switch); - } - function createLazyCaseClauseDiagnostics(clause2) { - return () => { - const caseType = checkExpression(clause2.expression); - if (!isTypeEqualityComparableTo(expressionType, caseType)) { - checkTypeComparableTo( - caseType, - expressionType, - clause2.expression, - /*headMessage*/ - void 0 - ); - } - }; - } - }); - if (node.caseBlock.locals) { - registerForUnusedIdentifiersCheck(node.caseBlock); - } - } - function checkLabeledStatement(node) { - if (!checkGrammarStatementInAmbientContext(node)) { - findAncestor(node.parent, (current) => { - if (isFunctionLike(current)) { - return "quit"; - } - if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { - grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); - return true; - } - return false; - }); - } - checkSourceElement(node.statement); - } - function checkThrowStatement(node) { - if (!checkGrammarStatementInAmbientContext(node)) { - if (isIdentifier(node.expression) && !node.expression.escapedText) { - grammarErrorAfterFirstToken(node, Diagnostics.Line_break_not_permitted_here); - } - } - if (node.expression) { - checkExpression(node.expression); - } - } - function checkTryStatement(node) { - checkGrammarStatementInAmbientContext(node); - checkBlock(node.tryBlock); - const catchClause = node.catchClause; - if (catchClause) { - if (catchClause.variableDeclaration) { - const declaration = catchClause.variableDeclaration; - checkVariableLikeDeclaration(declaration); - const typeNode = getEffectiveTypeAnnotationNode(declaration); - if (typeNode) { - const type = getTypeFromTypeNode(typeNode); - if (type && !(type.flags & 3 /* AnyOrUnknown */)) { - grammarErrorOnFirstToken(typeNode, Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified); - } - } else if (declaration.initializer) { - grammarErrorOnFirstToken(declaration.initializer, Diagnostics.Catch_clause_variable_cannot_have_an_initializer); - } else { - const blockLocals = catchClause.block.locals; - if (blockLocals) { - forEachKey(catchClause.locals, (caughtName) => { - const blockLocal = blockLocals.get(caughtName); - if ((blockLocal == null ? void 0 : blockLocal.valueDeclaration) && (blockLocal.flags & 2 /* BlockScopedVariable */) !== 0) { - grammarErrorOnNode(blockLocal.valueDeclaration, Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, unescapeLeadingUnderscores(caughtName)); - } - }); - } - } - } - checkBlock(catchClause.block); - } - if (node.finallyBlock) { - checkBlock(node.finallyBlock); - } - } - function checkIndexConstraints(type, symbol, isStaticIndex) { - const indexInfos = getIndexInfosOfType(type); - if (indexInfos.length === 0) { - return; - } - for (const prop of getPropertiesOfObjectType(type)) { - if (!(isStaticIndex && prop.flags & 4194304 /* Prototype */)) { - checkIndexConstraintForProperty(type, prop, getLiteralTypeFromProperty( - prop, - 8576 /* StringOrNumberLiteralOrUnique */, - /*includeNonPublic*/ - true - ), getNonMissingTypeOfSymbol(prop)); - } - } - const typeDeclaration = symbol.valueDeclaration; - if (typeDeclaration && isClassLike(typeDeclaration)) { - for (const member of typeDeclaration.members) { - if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) { - const symbol2 = getSymbolOfDeclaration(member); - checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2)); - } - } - } - if (indexInfos.length > 1) { - for (const info of indexInfos) { - checkIndexConstraintForIndexSignature(type, info); - } - } - } - function checkIndexConstraintForProperty(type, prop, propNameType, propType) { - const declaration = prop.valueDeclaration; - const name = getNameOfDeclaration(declaration); - if (name && isPrivateIdentifier(name)) { - return; - } - const indexInfos = getApplicableIndexInfos(type, propNameType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; - const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; - const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; - for (const info of indexInfos) { - const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; - const errorNode = localPropDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); - if (errorNode && !isTypeAssignableTo(propType, info.type)) { - const diagnostic = createError(errorNode, Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type)); - if (propDeclaration && errorNode !== propDeclaration) { - addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop))); - } - diagnostics.add(diagnostic); - } - } - } - function checkIndexConstraintForIndexSignature(type, checkInfo) { - const declaration = checkInfo.declaration; - const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); - const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; - const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; - for (const info of indexInfos) { - if (info === checkInfo) continue; - const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; - const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); - if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) { - error(errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), typeToString(checkInfo.type), typeToString(info.keyType), typeToString(info.type)); - } - } - } - function checkTypeNameIsReserved(name, message) { - switch (name.escapedText) { - case "any": - case "unknown": - case "never": - case "number": - case "bigint": - case "boolean": - case "string": - case "symbol": - case "void": - case "object": - case "undefined": - error(name, message, name.escapedText); - } - } - function checkClassNameCollisionWithObject(name) { - if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && host.getEmitModuleFormatOfFile(getSourceFileOfNode(name)) < 5 /* ES2015 */) { - error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); - } - } - function checkUnmatchedJSDocParameters(node) { - const jsdocParameters = filter(getJSDocTags(node), isJSDocParameterTag); - if (!length(jsdocParameters)) return; - const isJs = isInJSFile(node); - const parameters = /* @__PURE__ */ new Set(); - const excludedParameters = /* @__PURE__ */ new Set(); - forEach(node.parameters, ({ name }, index) => { - if (isIdentifier(name)) { - parameters.add(name.escapedText); - } - if (isBindingPattern(name)) { - excludedParameters.add(index); - } - }); - const containsArguments = containsArgumentsReference(node); - if (containsArguments) { - const lastJSDocParamIndex = jsdocParameters.length - 1; - const lastJSDocParam = jsdocParameters[lastJSDocParamIndex]; - if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) { - error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); - } - } else { - forEach(jsdocParameters, ({ name, isNameFirst }, index) => { - if (excludedParameters.has(index) || isIdentifier(name) && parameters.has(name.escapedText)) { - return; - } - if (isQualifiedName(name)) { - if (isJs) { - error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); - } - } else { - if (!isNameFirst) { - errorOrSuggestion(isJs, name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, idText(name)); - } - } - }); - } - } - function checkTypeParameters(typeParameterDeclarations) { - let seenDefault = false; - if (typeParameterDeclarations) { - for (let i = 0; i < typeParameterDeclarations.length; i++) { - const node = typeParameterDeclarations[i]; - checkTypeParameter(node); - addLazyDiagnostic(createCheckTypeParameterDiagnostic(node, i)); - } - } - function createCheckTypeParameterDiagnostic(node, i) { - return () => { - if (node.default) { - seenDefault = true; - checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i); - } else if (seenDefault) { - error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); - } - for (let j = 0; j < i; j++) { - if (typeParameterDeclarations[j].symbol === node.symbol) { - error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); - } - } - }; - } - } - function checkTypeParametersNotReferenced(root, typeParameters, index) { - visit(root); - function visit(node) { - if (node.kind === 183 /* TypeReference */) { - const type = getTypeFromTypeReference(node); - if (type.flags & 262144 /* TypeParameter */) { - for (let i = index; i < typeParameters.length; i++) { - if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) { - error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); - } - } - } - } - forEachChild(node, visit); - } - } - function checkTypeParameterListsIdentical(symbol) { - if (symbol.declarations && symbol.declarations.length === 1) { - return; - } - const links = getSymbolLinks(symbol); - if (!links.typeParametersChecked) { - links.typeParametersChecked = true; - const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol); - if (!declarations || declarations.length <= 1) { - return; - } - const type = getDeclaredTypeOfSymbol(symbol); - if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) { - const name = symbolToString(symbol); - for (const declaration of declarations) { - error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); - } - } - } - } - function areTypeParametersIdentical(declarations, targetParameters, getTypeParameterDeclarations) { - const maxTypeArgumentCount = length(targetParameters); - const minTypeArgumentCount = getMinTypeArgumentCount(targetParameters); - for (const declaration of declarations) { - const sourceParameters = getTypeParameterDeclarations(declaration); - const numTypeParameters = sourceParameters.length; - if (numTypeParameters < minTypeArgumentCount || numTypeParameters > maxTypeArgumentCount) { - return false; - } - for (let i = 0; i < numTypeParameters; i++) { - const source = sourceParameters[i]; - const target = targetParameters[i]; - if (source.name.escapedText !== target.symbol.escapedName) { - return false; - } - const constraint = getEffectiveConstraintOfTypeParameter(source); - const sourceConstraint = constraint && getTypeFromTypeNode(constraint); - const targetConstraint = getConstraintOfTypeParameter(target); - if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) { - return false; - } - const sourceDefault = source.default && getTypeFromTypeNode(source.default); - const targetDefault = getDefaultFromTypeParameter(target); - if (sourceDefault && targetDefault && !isTypeIdenticalTo(sourceDefault, targetDefault)) { - return false; - } - } - } - return true; - } - function getFirstTransformableStaticClassElement(node) { - const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - node - ); - const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators; - const willTransformInitializers = !emitStandardClassFields; - if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { - for (const member of node.members) { - if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( - /*useLegacyDecorators*/ - false, - member, - node - )) { - return firstOrUndefined(getDecorators(node)) ?? node; - } else if (willTransformPrivateElementsOrClassStaticBlocks) { - if (isClassStaticBlockDeclaration(member)) { - return member; - } else if (isStatic(member)) { - if (isPrivateIdentifierClassElementDeclaration(member) || willTransformInitializers && isInitializedProperty(member)) { - return member; - } - } - } - } - } - } - function checkClassExpressionExternalHelpers(node) { - if (node.name) return; - const parent = walkUpOuterExpressions(node); - if (!isNamedEvaluationSource(parent)) return; - const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators; - let location; - if (willTransformESDecorators && classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - node - )) { - location = firstOrUndefined(getDecorators(node)) ?? node; - } else { - location = getFirstTransformableStaticClassElement(node); - } - if (location) { - checkExternalEmitHelpers(location, 4194304 /* SetFunctionName */); - if ((isPropertyAssignment(parent) || isPropertyDeclaration(parent) || isBindingElement(parent)) && isComputedPropertyName(parent.name)) { - checkExternalEmitHelpers(location, 8388608 /* PropKey */); - } - } - } - function checkClassExpression(node) { - checkClassLikeDeclaration(node); - checkNodeDeferred(node); - checkClassExpressionExternalHelpers(node); - return getTypeOfSymbol(getSymbolOfDeclaration(node)); - } - function checkClassExpressionDeferred(node) { - forEach(node.members, checkSourceElement); - registerForUnusedIdentifiersCheck(node); - } - function checkClassDeclaration(node) { - const firstDecorator = find(node.modifiers, isDecorator); - if (legacyDecorators && firstDecorator && some(node.members, (p) => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) { - grammarErrorOnNode(firstDecorator, Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator); - } - if (!node.name && !hasSyntacticModifier(node, 2048 /* Default */)) { - grammarErrorOnFirstToken(node, Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); - } - checkClassLikeDeclaration(node); - forEach(node.members, checkSourceElement); - registerForUnusedIdentifiersCheck(node); - } - function checkClassLikeDeclaration(node) { - checkGrammarClassLikeDeclaration(node); - checkDecorators(node); - checkCollisionsForDeclarationName(node, node.name); - checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); - checkExportsOnMergedDeclarations(node); - const symbol = getSymbolOfDeclaration(node); - const type = getDeclaredTypeOfSymbol(symbol); - const typeWithThis = getTypeWithThisArgument(type); - const staticType = getTypeOfSymbol(symbol); - checkTypeParameterListsIdentical(symbol); - checkFunctionOrConstructorSymbol(symbol); - checkClassForDuplicateDeclarations(node); - const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); - if (!nodeInAmbientContext) { - checkClassForStaticPropertyNameConflicts(node); - } - const baseTypeNode = getEffectiveBaseTypeNode(node); - if (baseTypeNode) { - forEach(baseTypeNode.typeArguments, checkSourceElement); - if (languageVersion < LanguageFeatureMinimumTarget.Classes) { - checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */); - } - const extendsNode = getClassExtendsHeritageElement(node); - if (extendsNode && extendsNode !== baseTypeNode) { - checkExpression(extendsNode.expression); - } - const baseTypes = getBaseTypes(type); - if (baseTypes.length) { - addLazyDiagnostic(() => { - const baseType = baseTypes[0]; - const baseConstructorType = getBaseConstructorTypeOfClass(type); - const staticBaseType = getApparentType(baseConstructorType); - checkBaseTypeAccessibility(staticBaseType, baseTypeNode); - checkSourceElement(baseTypeNode.expression); - if (some(baseTypeNode.typeArguments)) { - forEach(baseTypeNode.typeArguments, checkSourceElement); - for (const constructor of getConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode)) { - if (!checkTypeArgumentConstraints(baseTypeNode, constructor.typeParameters)) { - break; - } - } - } - const baseWithThis = getTypeWithThisArgument(baseType, type.thisType); - if (!checkTypeAssignableTo( - typeWithThis, - baseWithThis, - /*errorNode*/ - void 0 - )) { - issueMemberSpecificError(node, typeWithThis, baseWithThis, Diagnostics.Class_0_incorrectly_extends_base_class_1); - } else { - checkTypeAssignableTo(staticType, getTypeWithoutSignatures(staticBaseType), node.name || node, Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1); - } - if (baseConstructorType.flags & 8650752 /* TypeVariable */) { - if (!isMixinConstructorType(staticType)) { - error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); - } else { - const constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); - if (constructSignatures.some((signature) => signature.flags & 4 /* Abstract */) && !hasSyntacticModifier(node, 64 /* Abstract */)) { - error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); - } - } - } - if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) { - const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); - if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) { - error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); - } - } - checkKindsOfPropertyMemberOverrides(type, baseType); - }); - } - } - checkMembersForOverrideModifier(node, type, typeWithThis, staticType); - const implementedTypeNodes = getEffectiveImplementsTypeNodes(node); - if (implementedTypeNodes) { - for (const typeRefNode of implementedTypeNodes) { - if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) { - error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); - } - checkTypeReferenceNode(typeRefNode); - addLazyDiagnostic(createImplementsDiagnostics(typeRefNode)); - } - } - addLazyDiagnostic(() => { - checkIndexConstraints(type, symbol); - checkIndexConstraints( - staticType, - symbol, - /*isStaticIndex*/ - true - ); - checkTypeForDuplicateIndexSignatures(node); - checkPropertyInitialization(node); - }); - function createImplementsDiagnostics(typeRefNode) { - return () => { - const t = getReducedType(getTypeFromTypeNode(typeRefNode)); - if (!isErrorType(t)) { - if (isValidBaseType(t)) { - const genericDiag = t.symbol && t.symbol.flags & 32 /* Class */ ? Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass : Diagnostics.Class_0_incorrectly_implements_interface_1; - const baseWithThis = getTypeWithThisArgument(t, type.thisType); - if (!checkTypeAssignableTo( - typeWithThis, - baseWithThis, - /*errorNode*/ - void 0 - )) { - issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag); - } - } else { - error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); - } - } - }; - } - } - function checkMembersForOverrideModifier(node, type, typeWithThis, staticType) { - const baseTypeNode = getEffectiveBaseTypeNode(node); - const baseTypes = baseTypeNode && getBaseTypes(type); - const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0; - const baseStaticType = getBaseConstructorTypeOfClass(type); - for (const member of node.members) { - if (hasAmbientModifier(member)) { - continue; - } - if (isConstructorDeclaration(member)) { - forEach(member.parameters, (param) => { - if (isParameterPropertyDeclaration(param, member)) { - checkExistingMemberForOverrideModifier( - node, - staticType, - baseStaticType, - baseWithThis, - type, - typeWithThis, - param, - /*memberIsParameterProperty*/ - true - ); - } - }); - } - checkExistingMemberForOverrideModifier( - node, - staticType, - baseStaticType, - baseWithThis, - type, - typeWithThis, - member, - /*memberIsParameterProperty*/ - false - ); - } - } - function checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, memberIsParameterProperty, reportErrors2 = true) { - const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member); - if (!declaredProp) { - return 0 /* Ok */; - } - return checkMemberForOverrideModifier( - node, - staticType, - baseStaticType, - baseWithThis, - type, - typeWithThis, - hasOverrideModifier(member), - hasAbstractModifier(member), - isStatic(member), - memberIsParameterProperty, - declaredProp, - reportErrors2 ? member : void 0 - ); - } - function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) { - const isJs = isInJSFile(node); - const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); - if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) { - error( - errorNode, - isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic - ); - return 2 /* HasInvalidOverride */; - } - if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { - const thisType = memberIsStatic ? staticType : typeWithThis; - const baseType = memberIsStatic ? baseStaticType : baseWithThis; - const prop = getPropertyOfType(thisType, member.escapedName); - const baseProp = getPropertyOfType(baseType, member.escapedName); - const baseClassName = typeToString(baseWithThis); - if (prop && !baseProp && memberHasOverrideModifier) { - if (errorNode) { - const suggestion = getSuggestedSymbolForNonexistentClassMember(symbolName(member), baseType); - suggestion ? error( - errorNode, - isJs ? Diagnostics.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 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, - baseClassName, - symbolToString(suggestion) - ) : error( - errorNode, - isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, - baseClassName - ); - } - return 2 /* HasInvalidOverride */; - } else if (prop && (baseProp == null ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) { - const baseHasAbstract = some(baseProp.declarations, hasAbstractModifier); - if (memberHasOverrideModifier) { - return 0 /* Ok */; - } - if (!baseHasAbstract) { - if (errorNode) { - const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; - error(errorNode, diag2, baseClassName); - } - return 1 /* NeedsOverride */; - } else if (memberHasAbstractModifier && baseHasAbstract) { - if (errorNode) { - error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); - } - return 1 /* NeedsOverride */; - } - } - } else if (memberHasOverrideModifier) { - if (errorNode) { - const className = typeToString(type); - error( - errorNode, - isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, - className - ); - } - return 2 /* HasInvalidOverride */; - } - return 0 /* Ok */; - } - function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) { - let issuedMemberError = false; - for (const member of node.members) { - if (isStatic(member)) { - continue; - } - const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member); - if (declaredProp) { - const prop = getPropertyOfType(typeWithThis, declaredProp.escapedName); - const baseProp = getPropertyOfType(baseWithThis, declaredProp.escapedName); - if (prop && baseProp) { - const rootChain = () => chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, - symbolToString(declaredProp), - typeToString(typeWithThis), - typeToString(baseWithThis) - ); - if (!checkTypeAssignableTo( - getTypeOfSymbol(prop), - getTypeOfSymbol(baseProp), - member.name || member, - /*headMessage*/ - void 0, - rootChain - )) { - issuedMemberError = true; - } - } - } - } - if (!issuedMemberError) { - checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag); - } - } - function checkBaseTypeAccessibility(type, node) { - const signatures = getSignaturesOfType(type, 1 /* Construct */); - if (signatures.length) { - const declaration = signatures[0].declaration; - if (declaration && hasEffectiveModifier(declaration, 2 /* Private */)) { - const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol); - if (!isNodeWithinClass(node, typeClassDeclaration)) { - error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); - } - } - } - } - function getMemberOverrideModifierStatus(node, member, memberSymbol) { - if (!member.name) { - return 0 /* Ok */; - } - const classSymbol = getSymbolOfDeclaration(node); - const type = getDeclaredTypeOfSymbol(classSymbol); - const typeWithThis = getTypeWithThisArgument(type); - const staticType = getTypeOfSymbol(classSymbol); - const baseTypeNode = getEffectiveBaseTypeNode(node); - const baseTypes = baseTypeNode && getBaseTypes(type); - const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0; - const baseStaticType = getBaseConstructorTypeOfClass(type); - const memberHasOverrideModifier = member.parent ? hasOverrideModifier(member) : hasSyntacticModifier(member, 16 /* Override */); - return checkMemberForOverrideModifier( - node, - staticType, - baseStaticType, - baseWithThis, - type, - typeWithThis, - memberHasOverrideModifier, - hasAbstractModifier(member), - isStatic(member), - /*memberIsParameterProperty*/ - false, - memberSymbol - ); - } - function getTargetSymbol(s) { - return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; - } - function getClassOrInterfaceDeclarationsOfSymbol(symbol) { - return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); - } - function checkKindsOfPropertyMemberOverrides(type, baseType) { - var _a, _b, _c, _d, _e; - const baseProperties = getPropertiesOfType(baseType); - const notImplementedInfo = /* @__PURE__ */ new Map(); - basePropertyCheck: for (const baseProperty of baseProperties) { - const base = getTargetSymbol(baseProperty); - if (base.flags & 4194304 /* Prototype */) { - continue; - } - const baseSymbol = getPropertyOfObjectType(type, base.escapedName); - if (!baseSymbol) { - continue; - } - const derived = getTargetSymbol(baseSymbol); - const baseDeclarationFlags = getDeclarationModifierFlagsFromSymbol(base); - Debug.assert(!!derived, "derived should point to something, even if it is the base class' declaration."); - if (derived === base) { - const derivedClassDecl = getClassLikeDeclarationOfSymbol(type.symbol); - if (baseDeclarationFlags & 64 /* Abstract */ && (!derivedClassDecl || !hasSyntacticModifier(derivedClassDecl, 64 /* Abstract */))) { - for (const otherBaseType of getBaseTypes(type)) { - if (otherBaseType === baseType) continue; - const baseSymbol2 = getPropertyOfObjectType(otherBaseType, base.escapedName); - const derivedElsewhere = baseSymbol2 && getTargetSymbol(baseSymbol2); - if (derivedElsewhere && derivedElsewhere !== base) { - continue basePropertyCheck; - } - } - const baseTypeName = typeToString(baseType); - const typeName = typeToString(type); - const basePropertyName = symbolToString(baseProperty); - const missedProperties = append((_a = notImplementedInfo.get(derivedClassDecl)) == null ? void 0 : _a.missedProperties, basePropertyName); - notImplementedInfo.set(derivedClassDecl, { baseTypeName, typeName, missedProperties }); - } - } else { - const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived); - if (baseDeclarationFlags & 2 /* Private */ || derivedDeclarationFlags & 2 /* Private */) { - continue; - } - let errorMessage; - const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */; - const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */; - if (basePropertyFlags && derivedPropertyFlags) { - if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_b = base.declarations) == null ? void 0 : _b.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_c = base.declarations) == null ? void 0 : _c.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) { - continue; - } - const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */; - const overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */; - if (overriddenInstanceProperty || overriddenInstanceAccessor) { - const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); - } else if (useDefineForClassFields) { - const uninitialized = (_d = derived.declarations) == null ? void 0 : _d.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); - if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_e = derived.declarations) == null ? void 0 : _e.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { - const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); - const propName = uninitialized.name; - if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { - const errorMessage2 = Diagnostics.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; - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); - } - } - } - continue; - } else if (isPrototypeProperty(base)) { - if (isPrototypeProperty(derived) || derived.flags & 4 /* Property */) { - continue; - } else { - Debug.assert(!!(derived.flags & 98304 /* Accessor */)); - errorMessage = Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor; - } - } else if (base.flags & 98304 /* Accessor */) { - errorMessage = Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function; - } else { - errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; - } - error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); - } - } - for (const [errorNode, memberInfo] of notImplementedInfo) { - if (length(memberInfo.missedProperties) === 1) { - if (isClassExpression(errorNode)) { - error(errorNode, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, first(memberInfo.missedProperties), memberInfo.baseTypeName); - } else { - error(errorNode, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, memberInfo.typeName, first(memberInfo.missedProperties), memberInfo.baseTypeName); - } - } else if (length(memberInfo.missedProperties) > 5) { - const missedProperties = map(memberInfo.missedProperties.slice(0, 4), (prop) => `'${prop}'`).join(", "); - const remainingMissedProperties = length(memberInfo.missedProperties) - 4; - if (isClassExpression(errorNode)) { - error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more, memberInfo.baseTypeName, missedProperties, remainingMissedProperties); - } else { - error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more, memberInfo.typeName, memberInfo.baseTypeName, missedProperties, remainingMissedProperties); - } - } else { - const missedProperties = map(memberInfo.missedProperties, (prop) => `'${prop}'`).join(", "); - if (isClassExpression(errorNode)) { - error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1, memberInfo.baseTypeName, missedProperties); - } else { - error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2, memberInfo.typeName, memberInfo.baseTypeName, missedProperties); - } - } - } - } - function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) { - return baseDeclarationFlags & 64 /* Abstract */ && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent); - } - function getNonInheritedProperties(type, baseTypes, properties) { - if (!length(baseTypes)) { - return properties; - } - const seen = /* @__PURE__ */ new Map(); - forEach(properties, (p) => { - seen.set(p.escapedName, p); - }); - for (const base of baseTypes) { - const properties2 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType)); - for (const prop of properties2) { - const existing = seen.get(prop.escapedName); - if (existing && prop.parent === existing.parent) { - seen.delete(prop.escapedName); - } - } - } - return arrayFrom(seen.values()); - } - function checkInheritedPropertiesAreIdentical(type, typeNode) { - const baseTypes = getBaseTypes(type); - if (baseTypes.length < 2) { - return true; - } - const seen = /* @__PURE__ */ new Map(); - forEach(resolveDeclaredMembers(type).declaredProperties, (p) => { - seen.set(p.escapedName, { prop: p, containingType: type }); - }); - let ok = true; - for (const base of baseTypes) { - const properties = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType)); - for (const prop of properties) { - const existing = seen.get(prop.escapedName); - if (!existing) { - seen.set(prop.escapedName, { prop, containingType: base }); - } else { - const isInheritedProperty = existing.containingType !== type; - if (isInheritedProperty && !isPropertyIdenticalTo(existing.prop, prop)) { - ok = false; - const typeName1 = typeToString(existing.containingType); - const typeName2 = typeToString(base); - let errorInfo = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, - symbolToString(prop), - typeName1, - typeName2 - ); - errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, typeToString(type), typeName1, typeName2); - diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(typeNode), typeNode, errorInfo)); - } - } - } - } - return ok; - } - function checkPropertyInitialization(node) { - if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { - return; - } - const constructor = findConstructorDeclaration(node); - for (const member of node.members) { - if (getEffectiveModifierFlags(member) & 128 /* Ambient */) { - continue; - } - if (!isStatic(member) && isPropertyWithoutInitializer(member)) { - const propName = member.name; - if (isIdentifier(propName) || isPrivateIdentifier(propName) || isComputedPropertyName(propName)) { - const type = getTypeOfSymbol(getSymbolOfDeclaration(member)); - if (!(type.flags & 3 /* AnyOrUnknown */ || containsUndefinedType(type))) { - if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) { - error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); - } - } - } - } - } - } - function isPropertyWithoutInitializer(node) { - return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; - } - function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { - for (const staticBlock of staticBlocks) { - if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) { - const reference = factory.createPropertyAccessExpression(factory.createThis(), propName); - setParent(reference.expression, reference); - setParent(reference, staticBlock); - reference.flowNode = staticBlock.returnFlowNode; - const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType)); - if (!containsUndefinedType(flowType)) { - return true; - } - } - } - return false; - } - function isPropertyInitializedInConstructor(propName, propType, constructor) { - const reference = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName); - setParent(reference.expression, reference); - setParent(reference, constructor); - reference.flowNode = constructor.returnFlowNode; - const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType)); - return !containsUndefinedType(flowType); - } - function checkInterfaceDeclaration(node) { - if (!checkGrammarModifiers(node)) checkGrammarInterfaceDeclaration(node); - if (!allowBlockDeclarations(node.parent)) { - grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "interface"); - } - checkTypeParameters(node.typeParameters); - addLazyDiagnostic(() => { - checkTypeNameIsReserved(node.name, Diagnostics.Interface_name_cannot_be_0); - checkExportsOnMergedDeclarations(node); - const symbol = getSymbolOfDeclaration(node); - checkTypeParameterListsIdentical(symbol); - const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); - if (node === firstInterfaceDecl) { - const type = getDeclaredTypeOfSymbol(symbol); - const typeWithThis = getTypeWithThisArgument(type); - if (checkInheritedPropertiesAreIdentical(type, node.name)) { - for (const baseType of getBaseTypes(type)) { - checkTypeAssignableTo(typeWithThis, getTypeWithThisArgument(baseType, type.thisType), node.name, Diagnostics.Interface_0_incorrectly_extends_interface_1); - } - checkIndexConstraints(type, symbol); - } - } - checkObjectTypeForDuplicateDeclarations(node); - }); - forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => { - if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) { - error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); - } - checkTypeReferenceNode(heritageElement); - }); - forEach(node.members, checkSourceElement); - addLazyDiagnostic(() => { - checkTypeForDuplicateIndexSignatures(node); - registerForUnusedIdentifiersCheck(node); - }); - } - function checkTypeAliasDeclaration(node) { - checkGrammarModifiers(node); - checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); - if (!allowBlockDeclarations(node.parent)) { - grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "type"); - } - checkExportsOnMergedDeclarations(node); - checkTypeParameters(node.typeParameters); - if (node.type.kind === 141 /* IntrinsicKeyword */) { - const typeParameterCount = length(node.typeParameters); - const valid = typeParameterCount === 0 ? node.name.escapedText === "BuiltinIteratorReturn" : typeParameterCount === 1 && intrinsicTypeKinds.has(node.name.escapedText); - if (!valid) { - error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); - } - } else { - checkSourceElement(node.type); - registerForUnusedIdentifiersCheck(node); - } - } - function computeEnumMemberValues(node) { - const nodeLinks2 = getNodeLinks(node); - if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) { - nodeLinks2.flags |= 1024 /* EnumValuesComputed */; - let autoValue = 0; - let previous; - for (const member of node.members) { - const result = computeEnumMemberValue(member, autoValue, previous); - getNodeLinks(member).enumMemberValue = result; - autoValue = typeof result.value === "number" ? result.value + 1 : void 0; - previous = member; - } - } - } - function computeEnumMemberValue(member, autoValue, previous) { - if (isComputedNonLiteralName(member.name)) { - error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); - } else { - const text = getTextOfPropertyName(member.name); - if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) { - error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); - } - } - if (member.initializer) { - return computeConstantEnumMemberValue(member); - } - if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { - return evaluatorResult( - /*value*/ - void 0 - ); - } - if (autoValue === void 0) { - error(member.name, Diagnostics.Enum_member_must_have_initializer); - return evaluatorResult( - /*value*/ - void 0 - ); - } - if (getIsolatedModules(compilerOptions) && (previous == null ? void 0 : previous.initializer)) { - const prevValue = getEnumMemberValue(previous); - if (!(typeof prevValue.value === "number" && !prevValue.resolvedOtherFiles)) { - error( - member.name, - Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled - ); - } - } - return evaluatorResult(autoValue); - } - function computeConstantEnumMemberValue(member) { - const isConstEnum = isEnumConst(member.parent); - const initializer = member.initializer; - const result = evaluate(initializer, member); - if (result.value !== void 0) { - if (isConstEnum && typeof result.value === "number" && !isFinite(result.value)) { - error( - initializer, - isNaN(result.value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value - ); - } else if (getIsolatedModules(compilerOptions) && typeof result.value === "string" && !result.isSyntacticallyString) { - error( - initializer, - Diagnostics._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled, - `${idText(member.parent.name)}.${getTextOfPropertyName(member.name)}` - ); - } - } else if (isConstEnum) { - error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); - } else if (member.parent.flags & 33554432 /* Ambient */) { - error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); - } else { - checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); - } - return result; - } - function evaluateEntityNameExpression(expr, location) { - const symbol = resolveEntityName( - expr, - 111551 /* Value */, - /*ignoreErrors*/ - true - ); - if (!symbol) return evaluatorResult( - /*value*/ - void 0 - ); - if (expr.kind === 80 /* Identifier */) { - const identifier = expr; - if (isInfinityOrNaNString(identifier.escapedText) && symbol === getGlobalSymbol( - identifier.escapedText, - 111551 /* Value */, - /*diagnostic*/ - void 0 - )) { - return evaluatorResult( - +identifier.escapedText, - /*isSyntacticallyString*/ - false - ); - } - } - if (symbol.flags & 8 /* EnumMember */) { - return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); - } - if (isConstantVariable(symbol)) { - const declaration = symbol.valueDeclaration; - if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { - const result = evaluate(declaration.initializer, declaration); - if (location && getSourceFileOfNode(location) !== getSourceFileOfNode(declaration)) { - return evaluatorResult( - result.value, - /*isSyntacticallyString*/ - false, - /*resolvedOtherFiles*/ - true, - /*hasExternalReferences*/ - true - ); - } - return evaluatorResult( - result.value, - result.isSyntacticallyString, - result.resolvedOtherFiles, - /*hasExternalReferences*/ - true - ); - } - } - return evaluatorResult( - /*value*/ - void 0 - ); - } - function evaluateElementAccessExpression(expr, location) { - const root = expr.expression; - if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { - const rootSymbol = resolveEntityName( - root, - 111551 /* Value */, - /*ignoreErrors*/ - true - ); - if (rootSymbol && rootSymbol.flags & 384 /* Enum */) { - const name = escapeLeadingUnderscores(expr.argumentExpression.text); - const member = rootSymbol.exports.get(name); - if (member) { - Debug.assert(getSourceFileOfNode(member.valueDeclaration) === getSourceFileOfNode(rootSymbol.valueDeclaration)); - return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); - } - } - } - return evaluatorResult( - /*value*/ - void 0 - ); - } - function evaluateEnumMember(expr, symbol, location) { - const declaration = symbol.valueDeclaration; - if (!declaration || declaration === location) { - error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); - return evaluatorResult( - /*value*/ - void 0 - ); - } - if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) { - error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); - return evaluatorResult( - /*value*/ - 0 - ); - } - const value = getEnumMemberValue(declaration); - if (location.parent !== declaration.parent) { - return evaluatorResult( - value.value, - value.isSyntacticallyString, - value.resolvedOtherFiles, - /*hasExternalReferences*/ - true - ); - } - return value; - } - function checkEnumDeclaration(node) { - addLazyDiagnostic(() => checkEnumDeclarationWorker(node)); - } - function checkEnumDeclarationWorker(node) { - checkGrammarModifiers(node); - checkCollisionsForDeclarationName(node, node.name); - checkExportsOnMergedDeclarations(node); - node.members.forEach(checkEnumMember); - if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) { - error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } - computeEnumMemberValues(node); - const enumSymbol = getSymbolOfDeclaration(node); - const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind); - if (node === firstDeclaration) { - if (enumSymbol.declarations && enumSymbol.declarations.length > 1) { - const enumIsConst = isEnumConst(node); - forEach(enumSymbol.declarations, (decl) => { - if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) { - error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); - } - }); - } - let seenEnumMissingInitialInitializer = false; - forEach(enumSymbol.declarations, (declaration) => { - if (declaration.kind !== 266 /* EnumDeclaration */) { - return false; - } - const enumDeclaration = declaration; - if (!enumDeclaration.members.length) { - return false; - } - const firstEnumMember = enumDeclaration.members[0]; - if (!firstEnumMember.initializer) { - if (seenEnumMissingInitialInitializer) { - error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); - } else { - seenEnumMissingInitialInitializer = true; - } - } - }); - } - } - function checkEnumMember(node) { - if (isPrivateIdentifier(node.name)) { - error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); - } - if (node.initializer) { - checkExpression(node.initializer); - } - } - function getFirstNonAmbientClassOrFunctionDeclaration(symbol) { - const declarations = symbol.declarations; - if (declarations) { - for (const declaration of declarations) { - if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { - return declaration; - } - } - } - return void 0; - } - function inSameLexicalScope(node1, node2) { - const container1 = getEnclosingBlockScopeContainer(node1); - const container2 = getEnclosingBlockScopeContainer(node2); - if (isGlobalSourceFile(container1)) { - return isGlobalSourceFile(container2); - } else if (isGlobalSourceFile(container2)) { - return false; - } else { - return container1 === container2; - } - } - function checkModuleDeclaration(node) { - if (node.body) { - checkSourceElement(node.body); - if (!isGlobalScopeAugmentation(node)) { - registerForUnusedIdentifiersCheck(node); - } - } - addLazyDiagnostic(checkModuleDeclarationDiagnostics); - function checkModuleDeclarationDiagnostics() { - var _a, _b; - const isGlobalAugmentation = isGlobalScopeAugmentation(node); - const inAmbientContext = node.flags & 33554432 /* Ambient */; - if (isGlobalAugmentation && !inAmbientContext) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); - } - const isAmbientExternalModule = isAmbientModule(node); - const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; - if (checkGrammarModuleElementContext(node, contextErrorMessage)) { - return; - } - if (!checkGrammarModifiers(node)) { - if (!inAmbientContext && node.name.kind === 11 /* StringLiteral */) { - grammarErrorOnNode(node.name, Diagnostics.Only_ambient_modules_can_use_quoted_names); - } - } - if (isIdentifier(node.name)) { - checkCollisionsForDeclarationName(node, node.name); - if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) { - const sourceFile = getSourceFileOfNode(node); - const pos = getNonModifierTokenPosOfNode(node); - const span = getSpanOfTokenAtPosition(sourceFile, pos); - suggestionDiagnostics.add( - createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead) - ); - } - } - checkExportsOnMergedDeclarations(node); - const symbol = getSymbolOfDeclaration(node); - if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { - if (compilerOptions.erasableSyntaxOnly) { - error(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } - if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { - error(node.name, Diagnostics.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, isolatedModulesLikeFlagName); - } - if (((_a = symbol.declarations) == null ? void 0 : _a.length) > 1) { - const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); - if (firstNonAmbientClassOrFunc) { - if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); - } else if (node.pos < firstNonAmbientClassOrFunc.pos) { - error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); - } - } - const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); - if (mergedClass && inSameLexicalScope(node, mergedClass)) { - getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; - } - } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 307 /* SourceFile */ && host.getEmitModuleFormatOfFile(node.parent) === 1 /* CommonJS */) { - const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); - if (exportModifier) { - error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } - } - } - if (isAmbientExternalModule) { - if (isExternalModuleAugmentation(node)) { - const checkBody = isGlobalAugmentation || getSymbolOfDeclaration(node).flags & 33554432 /* Transient */; - if (checkBody && node.body) { - for (const statement of node.body.statements) { - checkModuleAugmentationElement(statement, isGlobalAugmentation); - } - } - } else if (isGlobalSourceFile(node.parent)) { - if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); - } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) { - error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); - } - } else { - if (isGlobalAugmentation) { - error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); - } else { - error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); - } - } - } - } - } - function checkModuleAugmentationElement(node, isGlobalAugmentation) { - switch (node.kind) { - case 243 /* VariableStatement */: - for (const decl of node.declarationList.declarations) { - checkModuleAugmentationElement(decl, isGlobalAugmentation); - } - break; - case 277 /* ExportAssignment */: - case 278 /* ExportDeclaration */: - grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); - break; - case 271 /* ImportEqualsDeclaration */: - if (isInternalModuleImportEqualsDeclaration(node)) break; - // falls through - case 272 /* ImportDeclaration */: - grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); - break; - case 208 /* BindingElement */: - case 260 /* VariableDeclaration */: - const name = node.name; - if (isBindingPattern(name)) { - for (const el of name.elements) { - checkModuleAugmentationElement(el, isGlobalAugmentation); - } - break; - } - // falls through - case 263 /* ClassDeclaration */: - case 266 /* EnumDeclaration */: - case 262 /* FunctionDeclaration */: - case 264 /* InterfaceDeclaration */: - case 267 /* ModuleDeclaration */: - case 265 /* TypeAliasDeclaration */: - if (isGlobalAugmentation) { - return; - } - break; - } - } - function getFirstNonModuleExportsIdentifier(node) { - switch (node.kind) { - case 80 /* Identifier */: - return node; - case 166 /* QualifiedName */: - do { - node = node.left; - } while (node.kind !== 80 /* Identifier */); - return node; - case 211 /* PropertyAccessExpression */: - do { - if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { - return node.name; - } - node = node.expression; - } while (node.kind !== 80 /* Identifier */); - return node; - } - } - function checkExternalImportOrExportDeclaration(node) { - const moduleName = getExternalModuleName(node); - if (!moduleName || nodeIsMissing(moduleName)) { - return false; - } - if (!isStringLiteral(moduleName)) { - error(moduleName, Diagnostics.String_literal_expected); - return false; - } - const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - if (node.parent.kind !== 307 /* SourceFile */ && !inAmbientExternalModule) { - error( - moduleName, - node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module - ); - return false; - } - if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { - if (!isTopLevelInExternalModuleAugmentation(node)) { - error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); - return false; - } - } - if (!isImportEqualsDeclaration(node) && node.attributes) { - const diagnostic = node.attributes.token === 118 /* WithKeyword */ ? Diagnostics.Import_attribute_values_must_be_string_literal_expressions : Diagnostics.Import_assertion_values_must_be_string_literal_expressions; - let hasError = false; - for (const attr of node.attributes.elements) { - if (!isStringLiteral(attr.value)) { - hasError = true; - error(attr.value, diagnostic); - } - } - return !hasError; - } - return true; - } - function checkModuleExportName(name, allowStringLiteral = true) { - if (name === void 0 || name.kind !== 11 /* StringLiteral */) { - return; - } - if (!allowStringLiteral) { - grammarErrorOnNode(name, Diagnostics.Identifier_expected); - } else if (moduleKind === 5 /* ES2015 */ || moduleKind === 6 /* ES2020 */) { - grammarErrorOnNode(name, Diagnostics.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020); - } - } - function checkAliasSymbol(node) { - var _a, _b, _c, _d; - let symbol = getSymbolOfDeclaration(node); - const target = resolveAlias(symbol); - if (target !== unknownSymbol) { - symbol = getMergedSymbol(symbol.exportSymbol || symbol); - if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { - const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; - Debug.assert(node.kind !== 280 /* NamespaceExport */); - if (node.kind === 281 /* ExportSpecifier */) { - const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); - const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get(moduleExportNameTextEscaped(node.propertyName || node.name)); - if (alreadyExportedSymbol === target) { - const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); - if (exportingDeclaration) { - addRelatedInfo( - diag2, - createDiagnosticForNode( - exportingDeclaration, - Diagnostics._0_is_automatically_exported_here, - unescapeLeadingUnderscores(alreadyExportedSymbol.escapedName) - ) - ); - } - } - } else { - Debug.assert(node.kind !== 260 /* VariableDeclaration */); - const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); - const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; - const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); - error( - errorNode, - Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, - importedIdentifier, - `import("${moduleSpecifier}").${importedIdentifier}` - ); - } - return; - } - const targetFlags = getSymbolFlags(target); - const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); - if (targetFlags & excludedMeanings) { - const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; - error(node, message, symbolToString(symbol)); - } else if (node.kind !== 281 /* ExportSpecifier */) { - const appearsValueyToTranspiler = compilerOptions.isolatedModules && !findAncestor(node, isTypeOnlyImportOrExportDeclaration); - if (appearsValueyToTranspiler && symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */)) { - error( - node, - Diagnostics.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled, - symbolToString(symbol), - isolatedModulesLikeFlagName - ); - } - } - if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { - const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); - const isType = !(targetFlags & 111551 /* Value */); - if (isType || typeOnlyAlias) { - switch (node.kind) { - case 273 /* ImportClause */: - case 276 /* ImportSpecifier */: - case 271 /* ImportEqualsDeclaration */: { - if (compilerOptions.verbatimModuleSyntax) { - Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); - const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled; - const name = moduleExportNameTextUnescaped(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); - addTypeOnlyDeclarationRelatedInfo( - error(node, message, name), - isType ? void 0 : typeOnlyAlias, - name - ); - } - if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 32 /* Export */)) { - error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); - } - break; - } - case 281 /* ExportSpecifier */: { - if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { - const name = moduleExportNameTextUnescaped(node.propertyName || node.name); - const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); - addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); - break; - } - } - } - } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } else if (moduleKind === 200 /* Preserve */ && node.kind !== 271 /* ImportEqualsDeclaration */ && node.kind !== 260 /* VariableDeclaration */ && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve); - } - if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) { - const constEnumDeclaration = target.valueDeclaration; - const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath); - if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) { - error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); - } - } - } - if (isImportSpecifier(node)) { - const targetSymbol = resolveAliasWithDeprecationCheck(symbol, node); - if (isDeprecatedSymbol(targetSymbol) && targetSymbol.declarations) { - addDeprecatedSuggestion(node, targetSymbol.declarations, targetSymbol.escapedName); - } - } - } - } - function resolveAliasWithDeprecationCheck(symbol, location) { - if (!(symbol.flags & 2097152 /* Alias */) || isDeprecatedSymbol(symbol) || !getDeclarationOfAliasSymbol(symbol)) { - return symbol; - } - const targetSymbol = resolveAlias(symbol); - if (targetSymbol === unknownSymbol) return targetSymbol; - while (symbol.flags & 2097152 /* Alias */) { - const target = getImmediateAliasedSymbol(symbol); - if (target) { - if (target === targetSymbol) break; - if (target.declarations && length(target.declarations)) { - if (isDeprecatedSymbol(target)) { - addDeprecatedSuggestion(location, target.declarations, target.escapedName); - break; - } else { - if (symbol === targetSymbol) break; - symbol = target; - } - } - } else { - break; - } - } - return targetSymbol; - } - function checkImportBinding(node) { - checkCollisionsForDeclarationName(node, node.name); - checkAliasSymbol(node); - if (node.kind === 276 /* ImportSpecifier */) { - checkModuleExportName(node.propertyName); - if (moduleExportNameIsDefault(node.propertyName || node.name) && getESModuleInterop(compilerOptions) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */) { - checkExternalEmitHelpers(node, 131072 /* ImportDefault */); - } - } - } - function checkImportAttributes(declaration) { - var _a; - const node = declaration.attributes; - if (node) { - const importAttributesType = getGlobalImportAttributesType( - /*reportErrors*/ - true - ); - if (importAttributesType !== emptyObjectType) { - checkTypeAssignableTo(getTypeFromImportAttributes(node), getNullableType(importAttributesType, 32768 /* Undefined */), node); - } - const validForTypeAttributes = isExclusivelyTypeOnlyImportOrExport(declaration); - const override = getResolutionModeOverride(node, validForTypeAttributes ? grammarErrorOnNode : void 0); - const isImportAttributes2 = declaration.attributes.token === 118 /* WithKeyword */; - if (validForTypeAttributes && override) { - return; - } - if (!moduleSupportsImportAttributes(moduleKind)) { - return grammarErrorOnNode( - node, - isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve - ); - } - if (moduleKind === 199 /* NodeNext */ && !isImportAttributes2) { - return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert); - } - if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1 /* CommonJS */) { - return grammarErrorOnNode( - node, - isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls - ); - } - const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly); - if (isTypeOnly) { - return grammarErrorOnNode(node, isImportAttributes2 ? Diagnostics.Import_attributes_cannot_be_used_with_type_only_imports_or_exports : Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports); - } - if (override) { - return grammarErrorOnNode(node, Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports); - } - } - } - function checkImportAttribute(node) { - return getRegularTypeOfLiteralType(checkExpressionCached(node.value)); - } - function checkImportDeclaration(node) { - if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { - return; - } - if (!checkGrammarModifiers(node) && node.modifiers) { - grammarErrorOnFirstToken(node, Diagnostics.An_import_declaration_cannot_have_modifiers); - } - if (checkExternalImportOrExportDeclaration(node)) { - let resolvedModule; - const importClause = node.importClause; - if (importClause && !checkGrammarImportClause(importClause)) { - if (importClause.name) { - checkImportBinding(importClause); - } - if (importClause.namedBindings) { - if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { - checkImportBinding(importClause.namedBindings); - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && getESModuleInterop(compilerOptions)) { - checkExternalEmitHelpers(node, 65536 /* ImportStar */); - } - } else { - resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); - if (resolvedModule) { - forEach(importClause.namedBindings.elements, checkImportBinding); - } - } - } - if (!importClause.isTypeOnly && 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) { - error(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]); - } - } else if (noUncheckedSideEffectImports && !importClause) { - void resolveExternalModuleName(node, node.moduleSpecifier); - } - } - checkImportAttributes(node); - } - function hasTypeJsonImportAttribute(node) { - return !!node.attributes && node.attributes.elements.some((attr) => { - var _a; - return getTextOfIdentifierOrLiteral(attr.name) === "type" && ((_a = tryCast(attr.value, isStringLiteralLike)) == null ? void 0 : _a.text) === "json"; - }); - } - function checkImportEqualsDeclaration(node) { - if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { - return; - } - checkGrammarModifiers(node); - if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) { - error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } - if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { - checkImportBinding(node); - markLinkedReferences(node, 6 /* ExportImportEquals */); - if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { - const target = resolveAlias(getSymbolOfDeclaration(node)); - if (target !== unknownSymbol) { - const targetFlags = getSymbolFlags(target); - if (targetFlags & 111551 /* Value */) { - const moduleName = getFirstIdentifier(node.moduleReference); - if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { - error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); - } - } - if (targetFlags & 788968 /* Type */) { - checkTypeNameIsReserved(node.name, Diagnostics.Import_name_cannot_be_0); - } - } - if (node.isTypeOnly) { - grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); - } - } else { - if (5 /* ES2015 */ <= moduleKind && moduleKind <= 99 /* ESNext */ && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { - grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); - } - } - } - } - function checkExportDeclaration(node) { - if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { - return; - } - if (!checkGrammarModifiers(node) && hasSyntacticModifiers(node)) { - grammarErrorOnFirstToken(node, Diagnostics.An_export_declaration_cannot_have_modifiers); - } - checkGrammarExportDeclaration(node); - if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { - if (node.exportClause && !isNamespaceExport(node.exportClause)) { - forEach(node.exportClause.elements, checkExportSpecifier); - const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); - const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; - if (node.parent.kind !== 307 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { - error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); - } - } else { - const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); - if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) { - error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); - } else if (node.exportClause) { - checkAliasSymbol(node.exportClause); - checkModuleExportName(node.exportClause.name); - } - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */) { - if (node.exportClause) { - if (getESModuleInterop(compilerOptions)) { - checkExternalEmitHelpers(node, 65536 /* ImportStar */); - } - } else { - checkExternalEmitHelpers(node, 32768 /* ExportStar */); - } - } - } - } - checkImportAttributes(node); - } - function checkGrammarExportDeclaration(node) { - var _a; - if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { - return checkGrammarNamedImportsOrExports(node.exportClause); - } - return false; - } - function checkGrammarModuleElementContext(node, errorMessage) { - const isInAppropriateContext = node.parent.kind === 307 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; - if (!isInAppropriateContext) { - grammarErrorOnFirstToken(node, errorMessage); - } - return !isInAppropriateContext; - } - function checkExportSpecifier(node) { - checkAliasSymbol(node); - const hasModuleSpecifier = node.parent.parent.moduleSpecifier !== void 0; - checkModuleExportName(node.propertyName, hasModuleSpecifier); - checkModuleExportName(node.name); - if (getEmitDeclarations(compilerOptions)) { - collectLinkedAliases( - node.propertyName || node.name, - /*setVisibility*/ - true - ); - } - if (!hasModuleSpecifier) { - const exportedName = node.propertyName || node.name; - if (exportedName.kind === 11 /* StringLiteral */) { - return; - } - const symbol = resolveName( - exportedName, - exportedName.escapedText, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { - error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); - } else { - markLinkedReferences(node, 7 /* ExportSpecifier */); - } - } else { - if (getESModuleInterop(compilerOptions) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && moduleExportNameIsDefault(node.propertyName || node.name)) { - checkExternalEmitHelpers(node, 131072 /* ImportDefault */); - } - } - } - function checkExportAssignment(node) { - const illegalContextMessage = node.isExportEquals ? Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration : Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration; - if (checkGrammarModuleElementContext(node, illegalContextMessage)) { - return; - } - if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) { - error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } - const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { - if (node.isExportEquals) { - error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); - } else { - error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); - } - return; - } - if (!checkGrammarModifiers(node) && hasEffectiveModifiers(node)) { - grammarErrorOnFirstToken(node, Diagnostics.An_export_assignment_cannot_have_modifiers); - } - const typeAnnotationNode = getEffectiveTypeAnnotationNode(node); - if (typeAnnotationNode) { - checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); - } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */; - if (node.expression.kind === 80 /* Identifier */) { - const id = node.expression; - const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( - id, - -1 /* All */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - node - )); - if (sym) { - markLinkedReferences(node, 3 /* ExportAssignment */); - const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(sym, 111551 /* Value */); - if (getSymbolFlags(sym) & 111551 /* Value */) { - checkExpressionCached(id); - if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && typeOnlyDeclaration) { - error( - id, - node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, - idText(id) - ); - } - } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { - error( - id, - node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, - idText(id) - ); - } - if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) { - const nonLocalMeanings = getSymbolFlags( - sym, - /*excludeTypeOnlyMeanings*/ - false, - /*excludeLocalMeanings*/ - true - ); - if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) { - error( - id, - node.isExportEquals ? Diagnostics._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 : Diagnostics._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, - idText(id), - isolatedModulesLikeFlagName - ); - } else if (typeOnlyDeclaration && getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node)) { - addTypeOnlyDeclarationRelatedInfo( - error( - id, - node.isExportEquals ? Diagnostics._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 : Diagnostics._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, - idText(id), - isolatedModulesLikeFlagName - ), - typeOnlyDeclaration, - idText(id) - ); - } - } - } else { - checkExpressionCached(id); - } - if (getEmitDeclarations(compilerOptions)) { - collectLinkedAliases( - id, - /*setVisibility*/ - true - ); - } - } else { - checkExpressionCached(node.expression); - } - if (isIllegalExportDefaultInCJS) { - error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } - checkExternalModuleExports(container); - if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { - grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); - } - if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && (node.flags & 33554432 /* Ambient */ && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) !== 1 /* CommonJS */)) { - grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); - } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { - grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); - } - } - } - function hasExportedMembers(moduleSymbol) { - return forEachEntry(moduleSymbol.exports, (_, id) => id !== "export="); - } - function checkExternalModuleExports(node) { - const moduleSymbol = getSymbolOfDeclaration(node); - const links = getSymbolLinks(moduleSymbol); - if (!links.exportsChecked) { - const exportEqualsSymbol = moduleSymbol.exports.get("export="); - if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) { - const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; - if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) { - error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); - } - } - const exports2 = getExportsOfModule(moduleSymbol); - if (exports2) { - exports2.forEach(({ declarations, flags }, id) => { - if (id === "__export") { - return; - } - if (flags & (1920 /* Namespace */ | 384 /* Enum */)) { - return; - } - const exportedDeclarationsCount = countWhere(declarations, and(isNotOverloadAndNotAccessor, not(isInterfaceDeclaration))); - if (flags & 524288 /* TypeAlias */ && exportedDeclarationsCount <= 2) { - return; - } - if (exportedDeclarationsCount > 1) { - if (!isDuplicatedCommonJSExport(declarations)) { - for (const declaration of declarations) { - if (isNotOverload(declaration)) { - diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Cannot_redeclare_exported_variable_0, unescapeLeadingUnderscores(id))); - } - } - } - } - }); - } - links.exportsChecked = true; - } - } - function isDuplicatedCommonJSExport(declarations) { - return declarations && declarations.length > 1 && declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && (isExportsIdentifier(d.expression) || isModuleExportsAccessExpression(d.expression))); - } - function checkSourceElement(node) { - if (node) { - const saveCurrentNode = currentNode; - currentNode = node; - instantiationCount = 0; - checkSourceElementWorker(node); - currentNode = saveCurrentNode; - } - } - function checkSourceElementWorker(node) { - if (getNodeCheckFlags(node) & 8388608 /* PartiallyTypeChecked */) { - return; - } - if (canHaveJSDoc(node)) { - forEach(node.jsDoc, ({ comment, tags }) => { - checkJSDocCommentWorker(comment); - forEach(tags, (tag) => { - checkJSDocCommentWorker(tag.comment); - if (isInJSFile(node)) { - checkSourceElement(tag); - } - }); - }); - } - const kind = node.kind; - if (cancellationToken) { - switch (kind) { - case 267 /* ModuleDeclaration */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 262 /* FunctionDeclaration */: - cancellationToken.throwIfCancellationRequested(); - } - } - if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { - errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); - } - switch (kind) { - case 168 /* TypeParameter */: - return checkTypeParameter(node); - case 169 /* Parameter */: - return checkParameter(node); - case 172 /* PropertyDeclaration */: - return checkPropertyDeclaration(node); - case 171 /* PropertySignature */: - return checkPropertySignature(node); - case 185 /* ConstructorType */: - case 184 /* FunctionType */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - return checkSignatureDeclaration(node); - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - return checkMethodDeclaration(node); - case 175 /* ClassStaticBlockDeclaration */: - return checkClassStaticBlockDeclaration(node); - case 176 /* Constructor */: - return checkConstructorDeclaration(node); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return checkAccessorDeclaration(node); - case 183 /* TypeReference */: - return checkTypeReferenceNode(node); - case 182 /* TypePredicate */: - return checkTypePredicate(node); - case 186 /* TypeQuery */: - return checkTypeQuery(node); - case 187 /* TypeLiteral */: - return checkTypeLiteral(node); - case 188 /* ArrayType */: - return checkArrayType(node); - case 189 /* TupleType */: - return checkTupleType(node); - case 192 /* UnionType */: - case 193 /* IntersectionType */: - return checkUnionOrIntersectionType(node); - case 196 /* ParenthesizedType */: - case 190 /* OptionalType */: - case 191 /* RestType */: - return checkSourceElement(node.type); - case 197 /* ThisType */: - return checkThisType(node); - case 198 /* TypeOperator */: - return checkTypeOperator(node); - case 194 /* ConditionalType */: - return checkConditionalType(node); - case 195 /* InferType */: - return checkInferType(node); - case 203 /* TemplateLiteralType */: - return checkTemplateLiteralType(node); - case 205 /* ImportType */: - return checkImportType(node); - case 202 /* NamedTupleMember */: - return checkNamedTupleMember(node); - case 328 /* JSDocAugmentsTag */: - return checkJSDocAugmentsTag(node); - case 329 /* JSDocImplementsTag */: - return checkJSDocImplementsTag(node); - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - return checkJSDocTypeAliasTag(node); - case 345 /* JSDocTemplateTag */: - return checkJSDocTemplateTag(node); - case 344 /* JSDocTypeTag */: - return checkJSDocTypeTag(node); - case 324 /* JSDocLink */: - case 325 /* JSDocLinkCode */: - case 326 /* JSDocLinkPlain */: - return checkJSDocLinkLikeTag(node); - case 341 /* JSDocParameterTag */: - return checkJSDocParameterTag(node); - case 348 /* JSDocPropertyTag */: - return checkJSDocPropertyTag(node); - case 317 /* JSDocFunctionType */: - checkJSDocFunctionType(node); - // falls through - case 315 /* JSDocNonNullableType */: - case 314 /* JSDocNullableType */: - case 312 /* JSDocAllType */: - case 313 /* JSDocUnknownType */: - case 322 /* JSDocTypeLiteral */: - checkJSDocTypeIsInJsFile(node); - forEachChild(node, checkSourceElement); - return; - case 318 /* JSDocVariadicType */: - checkJSDocVariadicType(node); - return; - case 309 /* JSDocTypeExpression */: - return checkSourceElement(node.type); - case 333 /* JSDocPublicTag */: - case 335 /* JSDocProtectedTag */: - case 334 /* JSDocPrivateTag */: - return checkJSDocAccessibilityModifiers(node); - case 350 /* JSDocSatisfiesTag */: - return checkJSDocSatisfiesTag(node); - case 343 /* JSDocThisTag */: - return checkJSDocThisTag(node); - case 351 /* JSDocImportTag */: - return checkJSDocImportTag(node); - case 199 /* IndexedAccessType */: - return checkIndexedAccessType(node); - case 200 /* MappedType */: - return checkMappedType(node); - case 262 /* FunctionDeclaration */: - return checkFunctionDeclaration(node); - case 241 /* Block */: - case 268 /* ModuleBlock */: - return checkBlock(node); - case 243 /* VariableStatement */: - return checkVariableStatement(node); - case 244 /* ExpressionStatement */: - return checkExpressionStatement(node); - case 245 /* IfStatement */: - return checkIfStatement(node); - case 246 /* DoStatement */: - return checkDoStatement(node); - case 247 /* WhileStatement */: - return checkWhileStatement(node); - case 248 /* ForStatement */: - return checkForStatement(node); - case 249 /* ForInStatement */: - return checkForInStatement(node); - case 250 /* ForOfStatement */: - return checkForOfStatement(node); - case 251 /* ContinueStatement */: - case 252 /* BreakStatement */: - return checkBreakOrContinueStatement(node); - case 253 /* ReturnStatement */: - return checkReturnStatement(node); - case 254 /* WithStatement */: - return checkWithStatement(node); - case 255 /* SwitchStatement */: - return checkSwitchStatement(node); - case 256 /* LabeledStatement */: - return checkLabeledStatement(node); - case 257 /* ThrowStatement */: - return checkThrowStatement(node); - case 258 /* TryStatement */: - return checkTryStatement(node); - case 260 /* VariableDeclaration */: - return checkVariableDeclaration(node); - case 208 /* BindingElement */: - return checkBindingElement(node); - case 263 /* ClassDeclaration */: - return checkClassDeclaration(node); - case 264 /* InterfaceDeclaration */: - return checkInterfaceDeclaration(node); - case 265 /* TypeAliasDeclaration */: - return checkTypeAliasDeclaration(node); - case 266 /* EnumDeclaration */: - return checkEnumDeclaration(node); - case 267 /* ModuleDeclaration */: - return checkModuleDeclaration(node); - case 272 /* ImportDeclaration */: - return checkImportDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return checkImportEqualsDeclaration(node); - case 278 /* ExportDeclaration */: - return checkExportDeclaration(node); - case 277 /* ExportAssignment */: - return checkExportAssignment(node); - case 242 /* EmptyStatement */: - case 259 /* DebuggerStatement */: - checkGrammarStatementInAmbientContext(node); - return; - case 282 /* MissingDeclaration */: - return checkMissingDeclaration(node); - } - } - function checkJSDocCommentWorker(node) { - if (isArray(node)) { - forEach(node, (tag) => { - if (isJSDocLinkLike(tag)) { - checkSourceElement(tag); - } - }); - } - } - function checkJSDocTypeIsInJsFile(node) { - if (!isInJSFile(node)) { - if (isJSDocNonNullableType(node) || isJSDocNullableType(node)) { - const token = tokenToString(isJSDocNonNullableType(node) ? 54 /* ExclamationToken */ : 58 /* QuestionToken */); - const diagnostic = node.postfix ? Diagnostics._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1 : Diagnostics._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1; - const typeNode = node.type; - const type = getTypeFromTypeNode(typeNode); - grammarErrorOnNode( - node, - diagnostic, - token, - typeToString( - isJSDocNullableType(node) && !(type === neverType || type === voidType) ? getUnionType(append([type, undefinedType], node.postfix ? void 0 : nullType)) : type - ) - ); - } else { - grammarErrorOnNode(node, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); - } - } - } - function checkJSDocVariadicType(node) { - checkJSDocTypeIsInJsFile(node); - checkSourceElement(node.type); - const { parent } = node; - if (isParameter(parent) && isJSDocFunctionType(parent.parent)) { - if (last(parent.parent.parameters) !== parent) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); - } - return; - } - if (!isJSDocTypeExpression(parent)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); - } - const paramTag = node.parent.parent; - if (!isJSDocParameterTag(paramTag)) { - error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); - return; - } - const param = getParameterSymbolFromJSDoc(paramTag); - if (!param) { - return; - } - const host2 = getHostSignatureFromJSDoc(paramTag); - if (!host2 || last(host2.parameters).symbol !== param) { - error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); - } - } - function getTypeFromJSDocVariadicType(node) { - const type = getTypeFromTypeNode(node.type); - const { parent } = node; - const paramTag = node.parent.parent; - if (isJSDocTypeExpression(node.parent) && isJSDocParameterTag(paramTag)) { - const host2 = getHostSignatureFromJSDoc(paramTag); - const isCallbackTag = isJSDocCallbackTag(paramTag.parent.parent); - if (host2 || isCallbackTag) { - const lastParamDeclaration = isCallbackTag ? lastOrUndefined(paramTag.parent.parent.typeExpression.parameters) : lastOrUndefined(host2.parameters); - const symbol = getParameterSymbolFromJSDoc(paramTag); - if (!lastParamDeclaration || symbol && lastParamDeclaration.symbol === symbol && isRestParameter(lastParamDeclaration)) { - return createArrayType(type); - } - } - } - if (isParameter(parent) && isJSDocFunctionType(parent.parent)) { - return createArrayType(type); - } - return addOptionality(type); - } - function checkNodeDeferred(node) { - const enclosingFile = getSourceFileOfNode(node); - const links = getNodeLinks(enclosingFile); - if (!(links.flags & 1 /* TypeChecked */)) { - links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set()); - links.deferredNodes.add(node); - } else { - Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes."); - } - } - function checkDeferredNodes(context) { - const links = getNodeLinks(context); - if (links.deferredNodes) { - links.deferredNodes.forEach(checkDeferredNode); - } - links.deferredNodes = void 0; - } - function checkDeferredNode(node) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkDeferredNode", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); - const saveCurrentNode = currentNode; - currentNode = node; - instantiationCount = 0; - switch (node.kind) { - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 215 /* TaggedTemplateExpression */: - case 170 /* Decorator */: - case 286 /* JsxOpeningElement */: - resolveUntypedCall(node); - break; - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - checkFunctionExpressionOrObjectLiteralMethodDeferred(node); - break; - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - checkAccessorDeclaration(node); - break; - case 231 /* ClassExpression */: - checkClassExpressionDeferred(node); - break; - case 168 /* TypeParameter */: - checkTypeParameterDeferred(node); - break; - case 285 /* JsxSelfClosingElement */: - checkJsxSelfClosingElementDeferred(node); - break; - case 284 /* JsxElement */: - checkJsxElementDeferred(node); - break; - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - case 217 /* ParenthesizedExpression */: - checkAssertionDeferred(node); - break; - case 222 /* VoidExpression */: - checkExpression(node.expression); - break; - case 226 /* BinaryExpression */: - if (isInstanceOfExpression(node)) { - resolveUntypedCall(node); - } - break; - } - currentNode = saveCurrentNode; - (_b = tracing) == null ? void 0 : _b.pop(); - } - function checkSourceFile(node, nodesToCheck) { - var _a, _b; - (_a = tracing) == null ? void 0 : _a.push( - tracing.Phase.Check, - nodesToCheck ? "checkSourceFileNodes" : "checkSourceFile", - { path: node.path }, - /*separateBeginAndEnd*/ - true - ); - const beforeMark = nodesToCheck ? "beforeCheckNodes" : "beforeCheck"; - const afterMark = nodesToCheck ? "afterCheckNodes" : "afterCheck"; - mark(beforeMark); - nodesToCheck ? checkSourceFileNodesWorker(node, nodesToCheck) : checkSourceFileWorker(node); - mark(afterMark); - measure("Check", beforeMark, afterMark); - (_b = tracing) == null ? void 0 : _b.pop(); - } - function unusedIsError(kind, isAmbient) { - if (isAmbient) { - return false; - } - switch (kind) { - case 0 /* Local */: - return !!compilerOptions.noUnusedLocals; - case 1 /* Parameter */: - return !!compilerOptions.noUnusedParameters; - default: - return Debug.assertNever(kind); - } - } - function getPotentiallyUnusedIdentifiers(sourceFile) { - return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || emptyArray; - } - function checkSourceFileWorker(node) { - const links = getNodeLinks(node); - if (!(links.flags & 1 /* TypeChecked */)) { - if (skipTypeChecking(node, compilerOptions, host)) { - return; - } - checkGrammarSourceFile(node); - clear(potentialThisCollisions); - clear(potentialNewTargetCollisions); - clear(potentialWeakMapSetCollisions); - clear(potentialReflectCollisions); - clear(potentialUnusedRenamedBindingElementsInTypes); - if (links.flags & 8388608 /* PartiallyTypeChecked */) { - potentialThisCollisions = links.potentialThisCollisions; - potentialNewTargetCollisions = links.potentialNewTargetCollisions; - potentialWeakMapSetCollisions = links.potentialWeakMapSetCollisions; - potentialReflectCollisions = links.potentialReflectCollisions; - potentialUnusedRenamedBindingElementsInTypes = links.potentialUnusedRenamedBindingElementsInTypes; - } - forEach(node.statements, checkSourceElement); - checkSourceElement(node.endOfFileToken); - checkDeferredNodes(node); - if (isExternalOrCommonJsModule(node)) { - registerForUnusedIdentifiersCheck(node); - } - addLazyDiagnostic(() => { - if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { - checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { - if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { - diagnostics.add(diag2); - } - }); - } - if (!node.isDeclarationFile) { - checkPotentialUncheckedRenamedBindingElementsInTypes(); - } - }); - if (isExternalOrCommonJsModule(node)) { - checkExternalModuleExports(node); - } - if (potentialThisCollisions.length) { - forEach(potentialThisCollisions, checkIfThisIsCapturedInEnclosingScope); - clear(potentialThisCollisions); - } - if (potentialNewTargetCollisions.length) { - forEach(potentialNewTargetCollisions, checkIfNewTargetIsCapturedInEnclosingScope); - clear(potentialNewTargetCollisions); - } - if (potentialWeakMapSetCollisions.length) { - forEach(potentialWeakMapSetCollisions, checkWeakMapSetCollision); - clear(potentialWeakMapSetCollisions); - } - if (potentialReflectCollisions.length) { - forEach(potentialReflectCollisions, checkReflectCollision); - clear(potentialReflectCollisions); - } - links.flags |= 1 /* TypeChecked */; - } - } - function checkSourceFileNodesWorker(file, nodes) { - const links = getNodeLinks(file); - if (!(links.flags & 1 /* TypeChecked */)) { - if (skipTypeChecking(file, compilerOptions, host)) { - return; - } - checkGrammarSourceFile(file); - clear(potentialThisCollisions); - clear(potentialNewTargetCollisions); - clear(potentialWeakMapSetCollisions); - clear(potentialReflectCollisions); - clear(potentialUnusedRenamedBindingElementsInTypes); - forEach(nodes, checkSourceElement); - checkDeferredNodes(file); - (links.potentialThisCollisions || (links.potentialThisCollisions = [])).push(...potentialThisCollisions); - (links.potentialNewTargetCollisions || (links.potentialNewTargetCollisions = [])).push(...potentialNewTargetCollisions); - (links.potentialWeakMapSetCollisions || (links.potentialWeakMapSetCollisions = [])).push(...potentialWeakMapSetCollisions); - (links.potentialReflectCollisions || (links.potentialReflectCollisions = [])).push(...potentialReflectCollisions); - (links.potentialUnusedRenamedBindingElementsInTypes || (links.potentialUnusedRenamedBindingElementsInTypes = [])).push( - ...potentialUnusedRenamedBindingElementsInTypes - ); - links.flags |= 8388608 /* PartiallyTypeChecked */; - for (const node of nodes) { - const nodeLinks2 = getNodeLinks(node); - nodeLinks2.flags |= 8388608 /* PartiallyTypeChecked */; - } - } - } - function getDiagnostics(sourceFile, ct, nodesToCheck) { - try { - cancellationToken = ct; - return getDiagnosticsWorker(sourceFile, nodesToCheck); - } finally { - cancellationToken = void 0; - } - } - function ensurePendingDiagnosticWorkComplete() { - for (const cb of deferredDiagnosticsCallbacks) { - cb(); - } - deferredDiagnosticsCallbacks = []; - } - function checkSourceFileWithEagerDiagnostics(sourceFile, nodesToCheck) { - ensurePendingDiagnosticWorkComplete(); - const oldAddLazyDiagnostics = addLazyDiagnostic; - addLazyDiagnostic = (cb) => cb(); - checkSourceFile(sourceFile, nodesToCheck); - addLazyDiagnostic = oldAddLazyDiagnostics; - } - function getDiagnosticsWorker(sourceFile, nodesToCheck) { - if (sourceFile) { - ensurePendingDiagnosticWorkComplete(); - const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); - const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length; - checkSourceFileWithEagerDiagnostics(sourceFile, nodesToCheck); - const semanticDiagnostics = diagnostics.getDiagnostics(sourceFile.fileName); - if (nodesToCheck) { - return semanticDiagnostics; - } - const currentGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); - if (currentGlobalDiagnostics !== previousGlobalDiagnostics) { - const deferredGlobalDiagnostics = relativeComplement(previousGlobalDiagnostics, currentGlobalDiagnostics, compareDiagnostics); - return concatenate(deferredGlobalDiagnostics, semanticDiagnostics); - } else if (previousGlobalDiagnosticsSize === 0 && currentGlobalDiagnostics.length > 0) { - return concatenate(currentGlobalDiagnostics, semanticDiagnostics); - } - return semanticDiagnostics; - } - forEach(host.getSourceFiles(), (file) => checkSourceFileWithEagerDiagnostics(file)); - return diagnostics.getDiagnostics(); - } - function getGlobalDiagnostics() { - ensurePendingDiagnosticWorkComplete(); - return diagnostics.getGlobalDiagnostics(); - } - function getSymbolsInScope(location, meaning) { - if (location.flags & 67108864 /* InWithStatement */) { - return []; - } - const symbols = createSymbolTable(); - let isStaticSymbol = false; - populateSymbols(); - symbols.delete("this" /* This */); - return symbolsToArray(symbols); - function populateSymbols() { - while (location) { - if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { - copySymbols(location.locals, meaning); - } - switch (location.kind) { - case 307 /* SourceFile */: - if (!isExternalModule(location)) break; - // falls through - case 267 /* ModuleDeclaration */: - copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); - break; - case 266 /* EnumDeclaration */: - copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); - break; - case 231 /* ClassExpression */: - const className = location.name; - if (className) { - copySymbol(location.symbol, meaning); - } - // this fall-through is necessary because we would like to handle - // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration. - // falls through - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - if (!isStaticSymbol) { - copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); - } - break; - case 218 /* FunctionExpression */: - const funcName = location.name; - if (funcName) { - copySymbol(location.symbol, meaning); - } - break; - } - if (introducesArgumentsExoticObject(location)) { - copySymbol(argumentsSymbol, meaning); - } - isStaticSymbol = isStatic(location); - location = location.parent; - } - copySymbols(globals, meaning); - } - function copySymbol(symbol, meaning2) { - if (getCombinedLocalAndExportSymbolFlags(symbol) & meaning2) { - const id = symbol.escapedName; - if (!symbols.has(id)) { - symbols.set(id, symbol); - } - } - } - function copySymbols(source, meaning2) { - if (meaning2) { - source.forEach((symbol) => { - copySymbol(symbol, meaning2); - }); - } - } - function copyLocallyVisibleExportSymbols(source, meaning2) { - if (meaning2) { - source.forEach((symbol) => { - if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { - copySymbol(symbol, meaning2); - } - }); - } - } - } - function isTypeDeclarationName(name) { - return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; - } - function isTypeReferenceIdentifier(node) { - while (node.parent.kind === 166 /* QualifiedName */) { - node = node.parent; - } - return node.parent.kind === 183 /* TypeReference */; - } - function isInNameOfExpressionWithTypeArguments(node) { - while (node.parent.kind === 211 /* PropertyAccessExpression */) { - node = node.parent; - } - return node.parent.kind === 233 /* ExpressionWithTypeArguments */; - } - function forEachEnclosingClass(node, callback) { - let result; - let containingClass = getContainingClass(node); - while (containingClass) { - if (result = callback(containingClass)) break; - containingClass = getContainingClass(containingClass); - } - return result; - } - function isNodeUsedDuringClassInitialization(node) { - return !!findAncestor(node, (element) => { - if (isConstructorDeclaration(element) && nodeIsPresent(element.body) || isPropertyDeclaration(element)) { - return true; - } else if (isClassLike(element) || isFunctionLikeDeclaration(element)) { - return "quit"; - } - return false; - }); - } - function isNodeWithinClass(node, classDeclaration) { - return !!forEachEnclosingClass(node, (n) => n === classDeclaration); - } - function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { - while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { - nodeOnRightSide = nodeOnRightSide.parent; - } - if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { - return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; - } - if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { - return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; - } - return void 0; - } - function isInRightSideOfImportOrExportAssignment(node) { - return getLeftSideOfImportEqualsOrExportAssignment(node) !== void 0; - } - function getSpecialPropertyAssignmentSymbolFromEntityName(entityName) { - const specialPropertyAssignmentKind = getAssignmentDeclarationKind(entityName.parent.parent); - switch (specialPropertyAssignmentKind) { - case 1 /* ExportsProperty */: - case 3 /* PrototypeProperty */: - return getSymbolOfNode(entityName.parent); - case 5 /* Property */: - if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) { - return void 0; - } - // falls through - case 4 /* ThisProperty */: - case 2 /* ModuleExports */: - return getSymbolOfDeclaration(entityName.parent.parent); - } - } - function isImportTypeQualifierPart(node) { - let parent = node.parent; - while (isQualifiedName(parent)) { - node = parent; - parent = parent.parent; - } - if (parent && parent.kind === 205 /* ImportType */ && parent.qualifier === node) { - return parent; - } - return void 0; - } - function isThisPropertyAndThisTyped(node) { - if (node.expression.kind === 110 /* ThisKeyword */) { - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (isFunctionLike(container)) { - const containingLiteral = getContainingObjectLiteral(container); - if (containingLiteral) { - const contextualType = getApparentTypeOfContextualType( - containingLiteral, - /*contextFlags*/ - void 0 - ); - const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); - return type && !isTypeAny(type); - } - } - } - } - function getSymbolOfNameOrPropertyAccessExpression(name) { - if (isDeclarationName(name)) { - return getSymbolOfNode(name.parent); - } - if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { - if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { - const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); - if (specialPropertyAssignmentSymbol) { - return specialPropertyAssignmentSymbol; - } - } - } - if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { - const success = resolveEntityName( - name, - /*all meanings*/ - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); - if (success && success !== unknownSymbol) { - return success; - } - } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { - const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); - Debug.assert(importEqualsDeclaration !== void 0); - return getSymbolOfPartOfRightHandSideOfImportEquals( - name, - /*dontResolveAlias*/ - true - ); - } - if (isEntityName(name)) { - const possibleImportNode = isImportTypeQualifierPart(name); - if (possibleImportNode) { - getTypeFromTypeNode(possibleImportNode); - const sym = getNodeLinks(name).resolvedSymbol; - return sym === unknownSymbol ? void 0 : sym; - } - } - while (isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(name)) { - name = name.parent; - } - if (isInNameOfExpressionWithTypeArguments(name)) { - let meaning = 0 /* None */; - if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { - meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; - if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { - meaning |= 111551 /* Value */; - } - } else { - meaning = 1920 /* Namespace */; - } - meaning |= 2097152 /* Alias */; - const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - true - ) : void 0; - if (entityNameSymbol) { - return entityNameSymbol; - } - } - if (name.parent.kind === 341 /* JSDocParameterTag */) { - return getParameterSymbolFromJSDoc(name.parent); - } - if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 345 /* JSDocTemplateTag */) { - Debug.assert(!isInJSFile(name)); - const typeParameter = getTypeParameterFromJsDoc(name.parent); - return typeParameter && typeParameter.symbol; - } - if (isExpressionNode(name)) { - if (nodeIsMissing(name)) { - return void 0; - } - const isJSDoc2 = findAncestor(name, or(isJSDocLinkLike, isJSDocNameReference, isJSDocMemberName)); - const meaning = isJSDoc2 ? 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */ : 111551 /* Value */; - if (name.kind === 80 /* Identifier */) { - if (isJSXTagName(name) && isJsxIntrinsicTagName(name)) { - const symbol = getIntrinsicTagSymbol(name.parent); - return symbol === unknownSymbol ? void 0 : symbol; - } - const result = resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - getHostSignatureFromJSDoc(name) - ); - if (!result && isJSDoc2) { - const container = findAncestor(name, or(isClassLike, isInterfaceDeclaration)); - if (container) { - return resolveJSDocMemberName( - name, - /*ignoreErrors*/ - true, - getSymbolOfDeclaration(container) - ); - } - } - if (result && isJSDoc2) { - const container = getJSDocHost(name); - if (container && isEnumMember(container) && container === result.valueDeclaration) { - return resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - getSourceFileOfNode(container) - ) || result; - } - } - return result; - } else if (isPrivateIdentifier(name)) { - return getSymbolForPrivateIdentifierExpression(name); - } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { - const links = getNodeLinks(name); - if (links.resolvedSymbol) { - return links.resolvedSymbol; - } - if (name.kind === 211 /* PropertyAccessExpression */) { - checkPropertyAccessExpression(name, 0 /* Normal */); - if (!links.resolvedSymbol) { - links.resolvedSymbol = getApplicableIndexSymbol(checkExpressionCached(name.expression), getLiteralTypeFromPropertyName(name.name)); - } - } else { - checkQualifiedName(name, 0 /* Normal */); - } - if (!links.resolvedSymbol && isJSDoc2 && isQualifiedName(name)) { - return resolveJSDocMemberName(name); - } - return links.resolvedSymbol; - } else if (isJSDocMemberName(name)) { - return resolveJSDocMemberName(name); - } - } else if (isEntityName(name) && isTypeReferenceIdentifier(name)) { - const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; - const symbol = resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true - ); - return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); - } - if (name.parent.kind === 182 /* TypePredicate */) { - return resolveEntityName( - name, - /*meaning*/ - 1 /* FunctionScopedVariable */, - /*ignoreErrors*/ - true - ); - } - return void 0; - } - function getApplicableIndexSymbol(type, keyType) { - const infos = getApplicableIndexInfos(type, keyType); - if (infos.length && type.members) { - const symbol = getIndexSymbolFromSymbolTable(resolveStructuredTypeMembers(type).members); - if (infos === getIndexInfosOfType(type)) { - return symbol; - } else if (symbol) { - const symbolLinks2 = getSymbolLinks(symbol); - const declarationList = mapDefined(infos, (i) => i.declaration); - const nodeListId = map(declarationList, getNodeId).join(","); - if (!symbolLinks2.filteredIndexSymbolCache) { - symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map(); - } - if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) { - return symbolLinks2.filteredIndexSymbolCache.get(nodeListId); - } else { - const copy = createSymbol(131072 /* Signature */, "__index" /* Index */); - copy.declarations = mapDefined(infos, (i) => i.declaration); - copy.parent = type.aliasSymbol ? type.aliasSymbol : type.symbol ? type.symbol : getSymbolAtLocation(copy.declarations[0].parent); - symbolLinks2.filteredIndexSymbolCache.set(nodeListId, copy); - return copy; - } - } - } - } - function resolveJSDocMemberName(name, ignoreErrors, container) { - if (isEntityName(name)) { - const meaning = 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */; - let symbol = resolveEntityName( - name, - meaning, - ignoreErrors, - /*dontResolveAlias*/ - true, - getHostSignatureFromJSDoc(name) - ); - if (!symbol && isIdentifier(name) && container) { - symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(container), name.escapedText, meaning)); - } - if (symbol) { - return symbol; - } - } - const left = isIdentifier(name) ? container : resolveJSDocMemberName(name.left, ignoreErrors, container); - const right = isIdentifier(name) ? name.escapedText : name.right.escapedText; - if (left) { - const proto = left.flags & 111551 /* Value */ && getPropertyOfType(getTypeOfSymbol(left), "prototype"); - const t = proto ? getTypeOfSymbol(proto) : getDeclaredTypeOfSymbol(left); - return getPropertyOfType(t, right); - } - } - function getSymbolAtLocation(node, ignoreErrors) { - if (isSourceFile(node)) { - return isExternalModule(node) ? getMergedSymbol(node.symbol) : void 0; - } - const { parent } = node; - const grandParent = parent.parent; - if (node.flags & 67108864 /* InWithStatement */) { - return void 0; - } - if (isDeclarationNameOrImportPropertyName(node)) { - const parentSymbol = getSymbolOfDeclaration(parent); - return isImportOrExportSpecifier(node.parent) && node.parent.propertyName === node ? getImmediateAliasedSymbol(parentSymbol) : parentSymbol; - } else if (isLiteralComputedPropertyDeclarationName(node)) { - return getSymbolOfDeclaration(parent.parent); - } - if (node.kind === 80 /* Identifier */) { - if (isInRightSideOfImportOrExportAssignment(node)) { - return getSymbolOfNameOrPropertyAccessExpression(node); - } else if (parent.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent.propertyName) { - const typeOfPattern = getTypeOfNode(grandParent); - const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); - if (propertyDeclaration) { - return propertyDeclaration; - } - } else if (isMetaProperty(parent) && parent.name === node) { - if (parent.keywordToken === 105 /* NewKeyword */ && idText(node) === "target") { - return checkNewTargetMetaProperty(parent).symbol; - } - if (parent.keywordToken === 102 /* ImportKeyword */ && idText(node) === "meta") { - return getGlobalImportMetaExpressionType().members.get("meta"); - } - return void 0; - } - } - switch (node.kind) { - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - case 211 /* PropertyAccessExpression */: - case 166 /* QualifiedName */: - if (!isThisInTypeQuery(node)) { - return getSymbolOfNameOrPropertyAccessExpression(node); - } - // falls through - case 110 /* ThisKeyword */: - const container = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (isFunctionLike(container)) { - const sig = getSignatureFromDeclaration(container); - if (sig.thisParameter) { - return sig.thisParameter; - } - } - if (isInExpressionContext(node)) { - return checkExpression(node).symbol; - } - // falls through - case 197 /* ThisType */: - return getTypeFromThisTypeNode(node).symbol; - case 108 /* SuperKeyword */: - return checkExpression(node).symbol; - case 137 /* ConstructorKeyword */: - const constructorDeclaration = node.parent; - if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { - return constructorDeclaration.parent.symbol; - } - return void 0; - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || isInJSFile(node) && isJSDocImportTag(node.parent) && node.parent.moduleSpecifier === node || (isInJSFile(node) && isRequireCall( - node.parent, - /*requireStringLiteralLikeArgument*/ - false - ) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) { - return resolveExternalModuleName(node, node, ignoreErrors); - } - if (isCallExpression(parent) && isBindableObjectDefinePropertyCall(parent) && parent.arguments[1] === node) { - return getSymbolOfDeclaration(parent); - } - // falls through - case 9 /* NumericLiteral */: - const objectType = isElementAccessExpression(parent) ? parent.argumentExpression === node ? getTypeOfExpression(parent.expression) : void 0 : isLiteralTypeNode(parent) && isIndexedAccessTypeNode(grandParent) ? getTypeFromTypeNode(grandParent.objectType) : void 0; - return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores(node.text)); - case 90 /* DefaultKeyword */: - case 100 /* FunctionKeyword */: - case 39 /* EqualsGreaterThanToken */: - case 86 /* ClassKeyword */: - return getSymbolOfNode(node.parent); - case 205 /* ImportType */: - return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; - case 95 /* ExportKeyword */: - return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; - case 102 /* ImportKeyword */: - case 105 /* NewKeyword */: - return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; - case 104 /* InstanceOfKeyword */: - if (isBinaryExpression(node.parent)) { - const type = getTypeOfExpression(node.parent.right); - const hasInstanceMethodType = getSymbolHasInstanceMethodOfObjectType(type); - return (hasInstanceMethodType == null ? void 0 : hasInstanceMethodType.symbol) ?? type.symbol; - } - return void 0; - case 236 /* MetaProperty */: - return checkExpression(node).symbol; - case 295 /* JsxNamespacedName */: - if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { - const symbol = getIntrinsicTagSymbol(node.parent); - return symbol === unknownSymbol ? void 0 : symbol; - } - // falls through - default: - return void 0; - } - } - function getIndexInfosAtLocation(node) { - if (isIdentifier(node) && isPropertyAccessExpression(node.parent) && node.parent.name === node) { - const keyType = getLiteralTypeFromPropertyName(node); - const objectType = getTypeOfExpression(node.parent.expression); - const objectTypes = objectType.flags & 1048576 /* Union */ ? objectType.types : [objectType]; - return flatMap(objectTypes, (t) => filter(getIndexInfosOfType(t), (info) => isApplicableIndexType(keyType, info.keyType))); - } - return void 0; - } - function getShorthandAssignmentValueSymbol(location) { - if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { - return resolveEntityName( - location.name, - 111551 /* Value */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); - } - return void 0; - } - function getExportSpecifierLocalTargetSymbol(node) { - if (isExportSpecifier(node)) { - const name = node.propertyName || node.name; - return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : ( - // Skip for invalid syntax like this: export { "x" } - resolveEntityName( - name, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ) - ); - } else { - return resolveEntityName( - node, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); - } - } - function getTypeOfNode(node) { - if (isSourceFile(node) && !isExternalModule(node)) { - return errorType; - } - if (node.flags & 67108864 /* InWithStatement */) { - return errorType; - } - const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); - const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class)); - if (isPartOfTypeNode(node)) { - const typeFromTypeNode = getTypeFromTypeNode(node); - return classType ? getTypeWithThisArgument(typeFromTypeNode, classType.thisType) : typeFromTypeNode; - } - if (isExpressionNode(node)) { - return getRegularTypeOfExpression(node); - } - if (classType && !classDecl.isImplements) { - const baseType = firstOrUndefined(getBaseTypes(classType)); - return baseType ? getTypeWithThisArgument(baseType, classType.thisType) : errorType; - } - if (isTypeDeclaration(node)) { - const symbol = getSymbolOfDeclaration(node); - return getDeclaredTypeOfSymbol(symbol); - } - if (isTypeDeclarationName(node)) { - const symbol = getSymbolAtLocation(node); - return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; - } - if (isBindingElement(node)) { - return getTypeForVariableLikeDeclaration( - node, - /*includeOptionality*/ - true, - 0 /* Normal */ - ) || errorType; - } - if (isDeclaration(node)) { - const symbol = getSymbolOfDeclaration(node); - return symbol ? getTypeOfSymbol(symbol) : errorType; - } - if (isDeclarationNameOrImportPropertyName(node)) { - const symbol = getSymbolAtLocation(node); - if (symbol) { - return getTypeOfSymbol(symbol); - } - return errorType; - } - if (isBindingPattern(node)) { - return getTypeForVariableLikeDeclaration( - node.parent, - /*includeOptionality*/ - true, - 0 /* Normal */ - ) || errorType; - } - if (isInRightSideOfImportOrExportAssignment(node)) { - const symbol = getSymbolAtLocation(node); - if (symbol) { - const declaredType = getDeclaredTypeOfSymbol(symbol); - return !isErrorType(declaredType) ? declaredType : getTypeOfSymbol(symbol); - } - } - if (isMetaProperty(node.parent) && node.parent.keywordToken === node.kind) { - return checkMetaPropertyKeyword(node.parent); - } - if (isImportAttributes(node)) { - return getGlobalImportAttributesType( - /*reportErrors*/ - false - ); - } - return errorType; - } - function getTypeOfAssignmentPattern(expr) { - Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); - if (expr.parent.kind === 250 /* ForOfStatement */) { - const iteratedType = checkRightHandSideOfForOf(expr.parent); - return checkDestructuringAssignment(expr, iteratedType || errorType); - } - if (expr.parent.kind === 226 /* BinaryExpression */) { - const iteratedType = getTypeOfExpression(expr.parent.right); - return checkDestructuringAssignment(expr, iteratedType || errorType); - } - if (expr.parent.kind === 303 /* PropertyAssignment */) { - const node2 = cast(expr.parent.parent, isObjectLiteralExpression); - const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; - const propertyIndex = indexOfNode(node2.properties, expr.parent); - return checkObjectLiteralDestructuringPropertyAssignment(node2, typeOfParentObjectLiteral, propertyIndex); - } - const node = cast(expr.parent, isArrayLiteralExpression); - const typeOfArrayLiteral = getTypeOfAssignmentPattern(node) || errorType; - const elementType = checkIteratedTypeOrElementType(65 /* Destructuring */, typeOfArrayLiteral, undefinedType, expr.parent) || errorType; - return checkArrayLiteralDestructuringElementAssignment(node, typeOfArrayLiteral, node.elements.indexOf(expr), elementType); - } - function getPropertySymbolOfDestructuringAssignment(location) { - const typeOfObjectLiteral = getTypeOfAssignmentPattern(cast(location.parent.parent, isAssignmentPattern)); - return typeOfObjectLiteral && getPropertyOfType(typeOfObjectLiteral, location.escapedText); - } - function getRegularTypeOfExpression(expr) { - if (isRightSideOfQualifiedNameOrPropertyAccess(expr)) { - expr = expr.parent; - } - return getRegularTypeOfLiteralType(getTypeOfExpression(expr)); - } - function getParentTypeOfClassElement(node) { - const classSymbol = getSymbolOfNode(node.parent); - return isStatic(node) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol); - } - function getClassElementPropertyKeyType(element) { - const name = element.name; - switch (name.kind) { - case 80 /* Identifier */: - return getStringLiteralType(idText(name)); - case 9 /* NumericLiteral */: - case 11 /* StringLiteral */: - return getStringLiteralType(name.text); - case 167 /* ComputedPropertyName */: - const nameType = checkComputedPropertyName(name); - return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; - default: - return Debug.fail("Unsupported property name."); - } - } - function getAugmentedPropertiesOfType(type) { - type = getApparentType(type); - const propsByName = createSymbolTable(getPropertiesOfType(type)); - const functionType = getSignaturesOfType(type, 0 /* Call */).length ? globalCallableFunctionType : getSignaturesOfType(type, 1 /* Construct */).length ? globalNewableFunctionType : void 0; - if (functionType) { - forEach(getPropertiesOfType(functionType), (p) => { - if (!propsByName.has(p.escapedName)) { - propsByName.set(p.escapedName, p); - } - }); - } - return getNamedMembers(propsByName); - } - function typeHasCallOrConstructSignatures(type) { - return getSignaturesOfType(type, 0 /* Call */).length !== 0 || getSignaturesOfType(type, 1 /* Construct */).length !== 0; - } - function getRootSymbols(symbol) { - const roots = getImmediateRootSymbols(symbol); - return roots ? flatMap(roots, getRootSymbols) : [symbol]; - } - function getImmediateRootSymbols(symbol) { - if (getCheckFlags(symbol) & 6 /* Synthetic */) { - return mapDefined(getSymbolLinks(symbol).containingType.types, (type) => getPropertyOfType(type, symbol.escapedName)); - } else if (symbol.flags & 33554432 /* Transient */) { - const { links: { leftSpread, rightSpread, syntheticOrigin } } = symbol; - return leftSpread ? [leftSpread, rightSpread] : syntheticOrigin ? [syntheticOrigin] : singleElementArray(tryGetTarget(symbol)); - } - return void 0; - } - function tryGetTarget(symbol) { - let target; - let next = symbol; - while (next = getSymbolLinks(next).target) { - target = next; - } - return target; - } - function isArgumentsLocalBinding(nodeIn) { - if (isGeneratedIdentifier(nodeIn)) return false; - const node = getParseTreeNode(nodeIn, isIdentifier); - if (!node) return false; - const parent = node.parent; - if (!parent) return false; - const isPropertyName2 = (isPropertyAccessExpression(parent) || isPropertyAssignment(parent)) && parent.name === node; - return !isPropertyName2 && getReferencedValueSymbol(node) === argumentsSymbol; - } - function isNameOfModuleOrEnumDeclaration(node) { - return isModuleOrEnumDeclaration(node.parent) && node === node.parent.name; - } - function getReferencedExportContainer(nodeIn, prefixLocals) { - var _a; - const node = getParseTreeNode(nodeIn, isIdentifier); - if (node) { - let symbol = getReferencedValueSymbol( - node, - /*startInDeclarationContainer*/ - isNameOfModuleOrEnumDeclaration(node) - ); - if (symbol) { - if (symbol.flags & 1048576 /* ExportValue */) { - const exportSymbol = getMergedSymbol(symbol.exportSymbol); - if (!prefixLocals && exportSymbol.flags & 944 /* ExportHasLocal */ && !(exportSymbol.flags & 3 /* Variable */)) { - return void 0; - } - symbol = exportSymbol; - } - const parentSymbol = getParentOfSymbol(symbol); - if (parentSymbol) { - if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 307 /* SourceFile */) { - const symbolFile = parentSymbol.valueDeclaration; - const referenceFile = getSourceFileOfNode(node); - const symbolIsUmdExport = symbolFile !== referenceFile; - return symbolIsUmdExport ? void 0 : symbolFile; - } - return findAncestor(node.parent, (n) => isModuleOrEnumDeclaration(n) && getSymbolOfDeclaration(n) === parentSymbol); - } - } - } - } - function getReferencedImportDeclaration(nodeIn) { - const specifier = getIdentifierGeneratedImportReference(nodeIn); - if (specifier) { - return specifier; - } - const node = getParseTreeNode(nodeIn, isIdentifier); - if (node) { - const symbol = getReferencedValueOrAliasSymbol(node); - if (isNonLocalAlias( - symbol, - /*excludes*/ - 111551 /* Value */ - ) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { - return getDeclarationOfAliasSymbol(symbol); - } - } - return void 0; - } - function isSymbolOfDestructuredElementOfCatchBinding(symbol) { - return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; - } - function isSymbolOfDeclarationWithCollidingName(symbol) { - if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { - const links = getSymbolLinks(symbol); - if (links.isDeclarationWithCollidingName === void 0) { - const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); - if (isStatementWithLocals(container) || isSymbolOfDestructuredElementOfCatchBinding(symbol)) { - if (resolveName( - container.parent, - symbol.escapedName, - 111551 /* Value */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false - )) { - links.isDeclarationWithCollidingName = true; - } else if (hasNodeCheckFlag(symbol.valueDeclaration, 16384 /* CapturedBlockScopedBinding */)) { - const isDeclaredInLoop = hasNodeCheckFlag(symbol.valueDeclaration, 32768 /* BlockScopedBindingInLoop */); - const inLoopInitializer = isIterationStatement( - container, - /*lookInLabeledStatements*/ - false - ); - const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( - container.parent, - /*lookInLabeledStatements*/ - false - ); - links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock); - } else { - links.isDeclarationWithCollidingName = false; - } - } - } - return links.isDeclarationWithCollidingName; - } - return false; - } - function getReferencedDeclarationWithCollidingName(nodeIn) { - if (!isGeneratedIdentifier(nodeIn)) { - const node = getParseTreeNode(nodeIn, isIdentifier); - if (node) { - const symbol = getReferencedValueSymbol(node); - if (symbol && isSymbolOfDeclarationWithCollidingName(symbol)) { - return symbol.valueDeclaration; - } - } - } - return void 0; - } - function isDeclarationWithCollidingName(nodeIn) { - const node = getParseTreeNode(nodeIn, isDeclaration); - if (node) { - const symbol = getSymbolOfDeclaration(node); - if (symbol) { - return isSymbolOfDeclarationWithCollidingName(symbol); - } - } - return false; - } - function isValueAliasDeclaration(node) { - Debug.assert(canCollectSymbolAliasAccessabilityData); - switch (node.kind) { - case 271 /* ImportEqualsDeclaration */: - return isAliasResolvedToValue(getSymbolOfDeclaration(node)); - case 273 /* ImportClause */: - case 274 /* NamespaceImport */: - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - const symbol = getSymbolOfDeclaration(node); - return !!symbol && isAliasResolvedToValue( - symbol, - /*excludeTypeOnlyValues*/ - true - ); - case 278 /* ExportDeclaration */: - const exportClause = node.exportClause; - return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); - case 277 /* ExportAssignment */: - return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue( - getSymbolOfDeclaration(node), - /*excludeTypeOnlyValues*/ - true - ) : true; - } - return false; - } - function isTopLevelValueImportEqualsWithEntityName(nodeIn) { - const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); - if (node === void 0 || node.parent.kind !== 307 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { - return false; - } - const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); - return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); - } - function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { - if (!symbol) { - return false; - } - const container = getSourceFileOfNode(symbol.valueDeclaration); - const fileSymbol = container && getSymbolOfDeclaration(container); - void resolveExternalModuleSymbol(fileSymbol); - const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); - if (target === unknownSymbol) { - return !excludeTypeOnlyValues || !getTypeOnlyAliasDeclaration(symbol); - } - return !!(getSymbolFlags( - symbol, - excludeTypeOnlyValues, - /*excludeLocalMeanings*/ - true - ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); - } - function isConstEnumOrConstEnumOnlyModule(s) { - return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; - } - function isReferencedAliasDeclaration(node, checkChildren) { - Debug.assert(canCollectSymbolAliasAccessabilityData); - if (isAliasSymbolDeclaration(node)) { - const symbol = getSymbolOfDeclaration(node); - const links = symbol && getSymbolLinks(symbol); - if (links == null ? void 0 : links.referenced) { - return true; - } - const target = getSymbolLinks(symbol).aliasTarget; - if (target && getEffectiveModifierFlags(node) & 32 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { - return true; - } - } - if (checkChildren) { - return !!forEachChild(node, (node2) => isReferencedAliasDeclaration(node2, checkChildren)); - } - return false; - } - function isImplementationOfOverload(node) { - if (nodeIsPresent(node.body)) { - if (isGetAccessor(node) || isSetAccessor(node)) return false; - const symbol = getSymbolOfDeclaration(node); - const signaturesOfSymbol = getSignaturesOfSymbol(symbol); - return signaturesOfSymbol.length > 1 || // If there is single signature for the symbol, it is overload if that signature isn't coming from the node - // e.g.: function foo(a: string): string; - // function foo(a: any) { // This is implementation of the overloads - // return a; - // } - signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node; - } - return false; - } - function declaredParameterTypeContainsUndefined(parameter) { - const typeNode = getNonlocalEffectiveTypeAnnotationNode(parameter); - if (!typeNode) return false; - const type = getTypeFromTypeNode(typeNode); - return isErrorType(type) || containsUndefinedType(type); - } - function requiresAddingImplicitUndefined(parameter, enclosingDeclaration) { - return (isRequiredInitializedParameter(parameter, enclosingDeclaration) || isOptionalUninitializedParameterProperty(parameter)) && !declaredParameterTypeContainsUndefined(parameter); - } - function isRequiredInitializedParameter(parameter, enclosingDeclaration) { - if (!strictNullChecks || isOptionalParameter(parameter) || isJSDocParameterTag(parameter) || !parameter.initializer) { - return false; - } - if (hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */)) { - return !!enclosingDeclaration && isFunctionLikeDeclaration(enclosingDeclaration); - } - return true; - } - function isOptionalUninitializedParameterProperty(parameter) { - return strictNullChecks && isOptionalParameter(parameter) && (isJSDocParameterTag(parameter) || !parameter.initializer) && hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */); - } - function isExpandoFunctionDeclaration(node) { - const declaration = getParseTreeNode(node, (n) => isFunctionDeclaration(n) || isVariableDeclaration(n)); - if (!declaration) { - return false; - } - let symbol; - if (isVariableDeclaration(declaration)) { - if (declaration.type || !isInJSFile(declaration) && !isVarConstLike2(declaration)) { - return false; - } - const initializer = getDeclaredExpandoInitializer(declaration); - if (!initializer || !canHaveSymbol(initializer)) { - return false; - } - symbol = getSymbolOfDeclaration(initializer); - } else { - symbol = getSymbolOfDeclaration(declaration); - } - if (!symbol || !(symbol.flags & 16 /* Function */ | 3 /* Variable */)) { - return false; - } - return !!forEachEntry(getExportsOfSymbol(symbol), (p) => p.flags & 111551 /* Value */ && isExpandoPropertyDeclaration(p.valueDeclaration)); - } - function getPropertiesOfContainerFunction(node) { - const declaration = getParseTreeNode(node, isFunctionDeclaration); - if (!declaration) { - return emptyArray; - } - const symbol = getSymbolOfDeclaration(declaration); - return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || emptyArray; - } - function getNodeCheckFlags(node) { - var _a; - const nodeId = node.id || 0; - if (nodeId < 0 || nodeId >= nodeLinks.length) return 0; - return ((_a = nodeLinks[nodeId]) == null ? void 0 : _a.flags) || 0; - } - function hasNodeCheckFlag(node, flag) { - calculateNodeCheckFlagWorker(node, flag); - return !!(getNodeCheckFlags(node) & flag); - } - function calculateNodeCheckFlagWorker(node, flag) { - if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnostics(getSourceFileOfNode(node), compilerOptions)) { - return; - } - const links = getNodeLinks(node); - if (links.calculatedFlags & flag) { - return; - } - switch (flag) { - case 16 /* SuperInstance */: - case 32 /* SuperStatic */: - return checkSingleSuperExpression(node); - case 128 /* MethodWithSuperPropertyAccessInAsync */: - case 256 /* MethodWithSuperPropertyAssignmentInAsync */: - case 2097152 /* ContainsSuperPropertyInStaticInitializer */: - return checkChildSuperExpressions(node); - case 512 /* CaptureArguments */: - case 8192 /* ContainsCapturedBlockScopeBinding */: - case 65536 /* NeedsLoopOutParameter */: - case 262144 /* ContainsConstructorReference */: - return checkChildIdentifiers(node); - case 536870912 /* ConstructorReference */: - return checkSingleIdentifier(node); - case 4096 /* LoopWithCapturedBlockScopedBinding */: - case 32768 /* BlockScopedBindingInLoop */: - case 16384 /* CapturedBlockScopedBinding */: - return checkContainingBlockScopeBindingUses(node); - default: - return Debug.assertNever(flag, `Unhandled node check flag calculation: ${Debug.formatNodeCheckFlags(flag)}`); - } - function forEachNodeRecursively(root, cb) { - const rootResult = cb(root, root.parent); - if (rootResult === "skip") return void 0; - if (rootResult) return rootResult; - return forEachChildRecursively(root, cb); - } - function checkSuperExpressions(node2) { - const links2 = getNodeLinks(node2); - if (links2.calculatedFlags & flag) return "skip"; - links2.calculatedFlags |= 128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */ | 2097152 /* ContainsSuperPropertyInStaticInitializer */; - checkSingleSuperExpression(node2); - return void 0; - } - function checkChildSuperExpressions(node2) { - forEachNodeRecursively(node2, checkSuperExpressions); - } - function checkSingleSuperExpression(node2) { - const nodeLinks2 = getNodeLinks(node2); - nodeLinks2.calculatedFlags |= 16 /* SuperInstance */ | 32 /* SuperStatic */; - if (node2.kind === 108 /* SuperKeyword */) { - checkSuperExpression(node2); - } - } - function checkIdentifiers(node2) { - const links2 = getNodeLinks(node2); - if (links2.calculatedFlags & flag) return "skip"; - links2.calculatedFlags |= 512 /* CaptureArguments */ | 8192 /* ContainsCapturedBlockScopeBinding */ | 65536 /* NeedsLoopOutParameter */ | 262144 /* ContainsConstructorReference */; - checkSingleIdentifier(node2); - return void 0; - } - function checkChildIdentifiers(node2) { - forEachNodeRecursively(node2, checkIdentifiers); - } - function isExpressionNodeOrShorthandPropertyAssignmentName(node2) { - return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && (node2.parent.objectAssignmentInitializer ?? node2.parent.name) === node2; - } - function checkSingleIdentifier(node2) { - const nodeLinks2 = getNodeLinks(node2); - nodeLinks2.calculatedFlags |= 536870912 /* ConstructorReference */; - if (isIdentifier(node2)) { - nodeLinks2.calculatedFlags |= 32768 /* BlockScopedBindingInLoop */ | 16384 /* CapturedBlockScopedBinding */; - if (isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) { - const s = getResolvedSymbol(node2); - if (s && s !== unknownSymbol) { - checkIdentifierCalculateNodeCheckFlags(node2, s); - } - } - } - } - function checkBlockScopeBindings(node2) { - const links2 = getNodeLinks(node2); - if (links2.calculatedFlags & flag) return "skip"; - links2.calculatedFlags |= 4096 /* LoopWithCapturedBlockScopedBinding */ | 32768 /* BlockScopedBindingInLoop */ | 16384 /* CapturedBlockScopedBinding */; - checkSingleBlockScopeBinding(node2); - return void 0; - } - function checkContainingBlockScopeBindingUses(node2) { - const scope = getEnclosingBlockScopeContainer(isDeclarationName(node2) ? node2.parent : node2); - forEachNodeRecursively(scope, checkBlockScopeBindings); - } - function checkSingleBlockScopeBinding(node2) { - checkSingleIdentifier(node2); - if (isComputedPropertyName(node2)) { - checkComputedPropertyName(node2); - } - if (isPrivateIdentifier(node2) && isClassElement(node2.parent)) { - setNodeLinksForPrivateIdentifierScope(node2.parent); - } - } - } - function getEnumMemberValue(node) { - computeEnumMemberValues(node.parent); - return getNodeLinks(node).enumMemberValue ?? evaluatorResult( - /*value*/ - void 0 - ); - } - function canHaveConstantValue(node) { - switch (node.kind) { - case 306 /* EnumMember */: - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return true; - } - return false; - } - function getConstantValue2(node) { - if (node.kind === 306 /* EnumMember */) { - return getEnumMemberValue(node).value; - } - if (!getNodeLinks(node).resolvedSymbol) { - void checkExpressionCached(node); - } - const symbol = getNodeLinks(node).resolvedSymbol || (isEntityNameExpression(node) ? resolveEntityName( - node, - 111551 /* Value */, - /*ignoreErrors*/ - true - ) : void 0); - if (symbol && symbol.flags & 8 /* EnumMember */) { - const member = symbol.valueDeclaration; - if (isEnumConst(member.parent)) { - return getEnumMemberValue(member).value; - } - } - return void 0; - } - function isFunctionType(type) { - return !!(type.flags & 524288 /* Object */) && getSignaturesOfType(type, 0 /* Call */).length > 0; - } - function getTypeReferenceSerializationKind(typeNameIn, location) { - var _a; - const typeName = getParseTreeNode(typeNameIn, isEntityName); - if (!typeName) return 0 /* Unknown */; - if (location) { - location = getParseTreeNode(location); - if (!location) return 0 /* Unknown */; - } - let isTypeOnly = false; - if (isQualifiedName(typeName)) { - const rootValueSymbol = resolveEntityName( - getFirstIdentifier(typeName), - 111551 /* Value */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - location - ); - isTypeOnly = !!((_a = rootValueSymbol == null ? void 0 : rootValueSymbol.declarations) == null ? void 0 : _a.every(isTypeOnlyImportOrExportDeclaration)); - } - const valueSymbol = resolveEntityName( - typeName, - 111551 /* Value */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - location - ); - const resolvedValueSymbol = valueSymbol && valueSymbol.flags & 2097152 /* Alias */ ? resolveAlias(valueSymbol) : valueSymbol; - isTypeOnly || (isTypeOnly = !!(valueSymbol && getTypeOnlyAliasDeclaration(valueSymbol, 111551 /* Value */))); - const typeSymbol = resolveEntityName( - typeName, - 788968 /* Type */, - /*ignoreErrors*/ - true, - /*dontResolveAlias*/ - true, - location - ); - const resolvedTypeSymbol = typeSymbol && typeSymbol.flags & 2097152 /* Alias */ ? resolveAlias(typeSymbol) : typeSymbol; - if (!valueSymbol) { - isTypeOnly || (isTypeOnly = !!(typeSymbol && getTypeOnlyAliasDeclaration(typeSymbol, 788968 /* Type */))); - } - if (resolvedValueSymbol && resolvedValueSymbol === resolvedTypeSymbol) { - const globalPromiseSymbol = getGlobalPromiseConstructorSymbol( - /*reportErrors*/ - false - ); - if (globalPromiseSymbol && resolvedValueSymbol === globalPromiseSymbol) { - return 9 /* Promise */; - } - const constructorType = getTypeOfSymbol(resolvedValueSymbol); - if (constructorType && isConstructorType(constructorType)) { - return isTypeOnly ? 10 /* TypeWithCallSignature */ : 1 /* TypeWithConstructSignatureAndValue */; - } - } - if (!resolvedTypeSymbol) { - return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */; - } - const type = getDeclaredTypeOfSymbol(resolvedTypeSymbol); - if (isErrorType(type)) { - return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */; - } else if (type.flags & 3 /* AnyOrUnknown */) { - return 11 /* ObjectType */; - } else if (isTypeAssignableToKind(type, 16384 /* Void */ | 98304 /* Nullable */ | 131072 /* Never */)) { - return 2 /* VoidNullableOrNeverType */; - } else if (isTypeAssignableToKind(type, 528 /* BooleanLike */)) { - return 6 /* BooleanType */; - } else if (isTypeAssignableToKind(type, 296 /* NumberLike */)) { - return 3 /* NumberLikeType */; - } else if (isTypeAssignableToKind(type, 2112 /* BigIntLike */)) { - return 4 /* BigIntLikeType */; - } else if (isTypeAssignableToKind(type, 402653316 /* StringLike */)) { - return 5 /* StringLikeType */; - } else if (isTupleType(type)) { - return 7 /* ArrayLikeType */; - } else if (isTypeAssignableToKind(type, 12288 /* ESSymbolLike */)) { - return 8 /* ESSymbolType */; - } else if (isFunctionType(type)) { - return 10 /* TypeWithCallSignature */; - } else if (isArrayType(type)) { - return 7 /* ArrayLikeType */; - } else { - return 11 /* ObjectType */; - } - } - function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, internalFlags, tracker) { - const declaration = getParseTreeNode(declarationIn, hasInferredType); - if (!declaration) { - return factory.createToken(133 /* AnyKeyword */); - } - const symbol = getSymbolOfDeclaration(declaration); - return nodeBuilder.serializeTypeForDeclaration(declaration, symbol, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); - } - function getAllAccessorDeclarationsForDeclaration(accessor) { - accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); - const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; - const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); - const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; - const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; - const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; - const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; - return { - firstAccessor, - secondAccessor, - setAccessor, - getAccessor - }; - } - function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, internalFlags, tracker) { - const signatureDeclaration = getParseTreeNode(signatureDeclarationIn, isFunctionLike); - if (!signatureDeclaration) { - return factory.createToken(133 /* AnyKeyword */); - } - return nodeBuilder.serializeReturnTypeForSignature(signatureDeclaration, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); - } - function createTypeOfExpression(exprIn, enclosingDeclaration, flags, internalFlags, tracker) { - const expr = getParseTreeNode(exprIn, isExpression); - if (!expr) { - return factory.createToken(133 /* AnyKeyword */); - } - return nodeBuilder.serializeTypeForExpression(expr, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); - } - function hasGlobalName(name) { - return globals.has(escapeLeadingUnderscores(name)); - } - function getReferencedValueSymbol(reference, startInDeclarationContainer) { - const resolvedSymbol = getNodeLinks(reference).resolvedSymbol; - if (resolvedSymbol) { - return resolvedSymbol; - } - let location = reference; - if (startInDeclarationContainer) { - const parent = reference.parent; - if (isDeclaration(parent) && reference === parent.name) { - location = getDeclarationContainer(parent); - } - } - return resolveName( - location, - reference.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - } - function getReferencedValueOrAliasSymbol(reference) { - const resolvedSymbol = getNodeLinks(reference).resolvedSymbol; - if (resolvedSymbol && resolvedSymbol !== unknownSymbol) { - return resolvedSymbol; - } - return resolveName( - reference, - reference.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true, - /*excludeGlobals*/ - void 0 - ); - } - function getReferencedValueDeclaration(referenceIn) { - if (!isGeneratedIdentifier(referenceIn)) { - const reference = getParseTreeNode(referenceIn, isIdentifier); - if (reference) { - const symbol = getReferencedValueSymbol(reference); - if (symbol) { - return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration; - } - } - } - return void 0; - } - function getReferencedValueDeclarations(referenceIn) { - if (!isGeneratedIdentifier(referenceIn)) { - const reference = getParseTreeNode(referenceIn, isIdentifier); - if (reference) { - const symbol = getReferencedValueSymbol(reference); - if (symbol) { - return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { - switch (declaration.kind) { - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 208 /* BindingElement */: - case 172 /* PropertyDeclaration */: - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 306 /* EnumMember */: - case 210 /* ObjectLiteralExpression */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 266 /* EnumDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 267 /* ModuleDeclaration */: - return true; - } - return false; - }); - } - } - } - return void 0; - } - function isLiteralConstDeclaration(node) { - if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike2(node)) { - return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); - } - return false; - } - function literalTypeToNode(type, enclosing, tracker) { - const enumResult = type.flags & 1056 /* EnumLike */ ? nodeBuilder.symbolToExpression( - type.symbol, - 111551 /* Value */, - enclosing, - /*flags*/ - void 0, - /*internalFlags*/ - void 0, - tracker - ) : type === trueType ? factory.createTrue() : type === falseType && factory.createFalse(); - if (enumResult) return enumResult; - const literalValue = type.value; - return typeof literalValue === "object" ? factory.createBigIntLiteral(literalValue) : typeof literalValue === "string" ? factory.createStringLiteral(literalValue) : literalValue < 0 ? factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-literalValue)) : factory.createNumericLiteral(literalValue); - } - function createLiteralConstValue(node, tracker) { - const type = getTypeOfSymbol(getSymbolOfDeclaration(node)); - return literalTypeToNode(type, node, tracker); - } - function getJsxFactoryEntity(location) { - return location ? (getJsxNamespace(location), getSourceFileOfNode(location).localJsxFactory || _jsxFactoryEntity) : _jsxFactoryEntity; - } - function getJsxFragmentFactoryEntity(location) { - if (location) { - const file = getSourceFileOfNode(location); - if (file) { - if (file.localJsxFragmentFactory) { - return file.localJsxFragmentFactory; - } - const jsxFragPragmas = file.pragmas.get("jsxfrag"); - const jsxFragPragma = isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas; - if (jsxFragPragma) { - file.localJsxFragmentFactory = parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion); - return file.localJsxFragmentFactory; - } - } - } - if (compilerOptions.jsxFragmentFactory) { - return parseIsolatedEntityName(compilerOptions.jsxFragmentFactory, languageVersion); - } - } - function getNonlocalEffectiveTypeAnnotationNode(node) { - const direct = getEffectiveTypeAnnotationNode(node); - if (direct) { - return direct; - } - if (node.kind === 169 /* Parameter */ && node.parent.kind === 178 /* SetAccessor */) { - const other = getAllAccessorDeclarationsForDeclaration(node.parent).getAccessor; - if (other) { - return getEffectiveReturnTypeNode(other); - } - } - return void 0; - } - function createResolver() { - return { - getReferencedExportContainer, - getReferencedImportDeclaration, - getReferencedDeclarationWithCollidingName, - isDeclarationWithCollidingName, - isValueAliasDeclaration: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node && canCollectSymbolAliasAccessabilityData ? isValueAliasDeclaration(node) : true; - }, - hasGlobalName, - isReferencedAliasDeclaration: (nodeIn, checkChildren) => { - const node = getParseTreeNode(nodeIn); - return node && canCollectSymbolAliasAccessabilityData ? isReferencedAliasDeclaration(node, checkChildren) : true; - }, - hasNodeCheckFlag: (nodeIn, flag) => { - const node = getParseTreeNode(nodeIn); - if (!node) return false; - return hasNodeCheckFlag(node, flag); - }, - isTopLevelValueImportEqualsWithEntityName, - isDeclarationVisible, - isImplementationOfOverload, - requiresAddingImplicitUndefined, - isExpandoFunctionDeclaration, - getPropertiesOfContainerFunction, - createTypeOfDeclaration, - createReturnTypeOfSignatureDeclaration, - createTypeOfExpression, - createLiteralConstValue, - isSymbolAccessible, - isEntityNameVisible, - getConstantValue: (nodeIn) => { - const node = getParseTreeNode(nodeIn, canHaveConstantValue); - return node ? getConstantValue2(node) : void 0; - }, - getEnumMemberValue: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isEnumMember); - return node ? getEnumMemberValue(node) : void 0; - }, - collectLinkedAliases, - markLinkedReferences: (nodeIn) => { - const node = getParseTreeNode(nodeIn); - return node && markLinkedReferences(node, 0 /* Unspecified */); - }, - getReferencedValueDeclaration, - getReferencedValueDeclarations, - getTypeReferenceSerializationKind, - isOptionalParameter, - isArgumentsLocalBinding, - getExternalModuleFileFromDeclaration: (nodeIn) => { - const node = getParseTreeNode(nodeIn, hasPossibleExternalModuleReference); - return node && getExternalModuleFileFromDeclaration(node); - }, - isLiteralConstDeclaration, - isLateBound: (nodeIn) => { - const node = getParseTreeNode(nodeIn, isDeclaration); - const symbol = node && getSymbolOfDeclaration(node); - return !!(symbol && getCheckFlags(symbol) & 4096 /* Late */); - }, - getJsxFactoryEntity, - getJsxFragmentFactoryEntity, - isBindingCapturedByNode: (node, decl) => { - const parseNode = getParseTreeNode(node); - const parseDecl = getParseTreeNode(decl); - return !!parseNode && !!parseDecl && (isVariableDeclaration(parseDecl) || isBindingElement(parseDecl)) && isBindingCapturedByNode(parseNode, parseDecl); - }, - getDeclarationStatementsForSourceFile: (node, flags, internalFlags, tracker) => { - const n = getParseTreeNode(node); - Debug.assert(n && n.kind === 307 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); - const sym = getSymbolOfDeclaration(node); - if (!sym) { - return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, internalFlags, tracker); - } - resolveExternalModuleSymbol(sym); - return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, internalFlags, tracker); - }, - isImportRequiredByAugmentation, - isDefinitelyReferenceToGlobalSymbolObject, - createLateBoundIndexSignatures: (cls, enclosing, flags, internalFlags, tracker) => { - const sym = cls.symbol; - const staticInfos = getIndexInfosOfType(getTypeOfSymbol(sym)); - const instanceIndexSymbol = getIndexSymbol(sym); - const instanceInfos = instanceIndexSymbol && getIndexInfosOfIndexSymbol(instanceIndexSymbol, arrayFrom(getMembersOfSymbol(sym).values())); - let result; - for (const infoList of [staticInfos, instanceInfos]) { - if (!length(infoList)) continue; - result || (result = []); - for (const info of infoList) { - if (info.declaration) continue; - if (info === anyBaseTypeIndexInfo) continue; - if (info.components) { - const allComponentComputedNamesSerializable = every(info.components, (e) => { - var _a; - return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible( - e.name.expression, - enclosing, - /*shouldComputeAliasToMakeVisible*/ - false - )) == null ? void 0 : _a.accessibility) === 0 /* Accessible */); - }); - if (allComponentComputedNamesSerializable) { - const newComponents = filter(info.components, (e) => { - return !hasLateBindableName(e); - }); - result.push(...map(newComponents, (e) => { - trackComputedName(e.name.expression); - const mods = infoList === staticInfos ? [factory.createModifier(126 /* StaticKeyword */)] : void 0; - return factory.createPropertyDeclaration( - append(mods, info.isReadonly ? factory.createModifier(148 /* ReadonlyKeyword */) : void 0), - e.name, - (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0, - nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker), - /*initializer*/ - void 0 - ); - })); - continue; - } - } - const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker); - if (node && infoList === staticInfos) { - (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */)); - } - if (node) { - result.push(node); - } - } - } - return result; - function trackComputedName(accessExpression) { - if (!tracker.trackSymbol) return; - const firstIdentifier = getFirstIdentifier(accessExpression); - const name = resolveName( - firstIdentifier, - firstIdentifier.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (name) { - tracker.trackSymbol(name, enclosing, 111551 /* Value */); - } - } - } - }; - function isImportRequiredByAugmentation(node) { - const file = getSourceFileOfNode(node); - if (!file.symbol) return false; - const importTarget = getExternalModuleFileFromDeclaration(node); - if (!importTarget) return false; - if (importTarget === file) return false; - const exports2 = getExportsOfModule(file.symbol); - for (const s of arrayFrom(exports2.values())) { - if (s.mergeId) { - const merged = getMergedSymbol(s); - if (merged.declarations) { - for (const d of merged.declarations) { - const declFile = getSourceFileOfNode(d); - if (declFile === importTarget) { - return true; - } - } - } - } - } - return false; - } - } - function getExternalModuleFileFromDeclaration(declaration) { - const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); - const moduleSymbol = resolveExternalModuleNameWorker( - specifier, - specifier, - /*moduleNotFoundError*/ - void 0 - ); - if (!moduleSymbol) { - return void 0; - } - return getDeclarationOfKind(moduleSymbol, 307 /* SourceFile */); - } - function initializeTypeChecker() { - for (const file of host.getSourceFiles()) { - bindSourceFile(file, compilerOptions); - } - amalgamatedDuplicates = /* @__PURE__ */ new Map(); - let augmentations; - for (const file of host.getSourceFiles()) { - if (file.redirectInfo) { - continue; - } - if (!isExternalOrCommonJsModule(file)) { - const fileGlobalThisSymbol = file.locals.get("globalThis"); - if (fileGlobalThisSymbol == null ? void 0 : fileGlobalThisSymbol.declarations) { - for (const declaration of fileGlobalThisSymbol.declarations) { - diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, "globalThis")); - } - } - mergeSymbolTable(globals, file.locals); - } - if (file.jsGlobalAugmentations) { - mergeSymbolTable(globals, file.jsGlobalAugmentations); - } - if (file.patternAmbientModules && file.patternAmbientModules.length) { - patternAmbientModules = concatenate(patternAmbientModules, file.patternAmbientModules); - } - if (file.moduleAugmentations.length) { - (augmentations || (augmentations = [])).push(file.moduleAugmentations); - } - if (file.symbol && file.symbol.globalExports) { - const source = file.symbol.globalExports; - source.forEach((sourceSymbol, id) => { - if (!globals.has(id)) { - globals.set(id, sourceSymbol); - } - }); - } - } - if (augmentations) { - for (const list of augmentations) { - for (const augmentation of list) { - if (!isGlobalScopeAugmentation(augmentation.parent)) continue; - mergeModuleAugmentation(augmentation); - } - } - } - addUndefinedToGlobalsOrErrorOnRedeclaration(); - getSymbolLinks(undefinedSymbol).type = undefinedWideningType; - getSymbolLinks(argumentsSymbol).type = getGlobalType( - "IArguments", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - getSymbolLinks(unknownSymbol).type = errorType; - getSymbolLinks(globalThisSymbol).type = createObjectType(16 /* Anonymous */, globalThisSymbol); - globalArrayType = getGlobalType( - "Array", - /*arity*/ - 1, - /*reportErrors*/ - true - ); - globalObjectType = getGlobalType( - "Object", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - globalFunctionType = getGlobalType( - "Function", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - globalCallableFunctionType = strictBindCallApply && getGlobalType( - "CallableFunction", - /*arity*/ - 0, - /*reportErrors*/ - true - ) || globalFunctionType; - globalNewableFunctionType = strictBindCallApply && getGlobalType( - "NewableFunction", - /*arity*/ - 0, - /*reportErrors*/ - true - ) || globalFunctionType; - globalStringType = getGlobalType( - "String", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - globalNumberType = getGlobalType( - "Number", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - globalBooleanType = getGlobalType( - "Boolean", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - globalRegExpType = getGlobalType( - "RegExp", - /*arity*/ - 0, - /*reportErrors*/ - true - ); - anyArrayType = createArrayType(anyType); - autoArrayType = createArrayType(autoType); - if (autoArrayType === emptyObjectType) { - autoArrayType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - } - globalReadonlyArrayType = getGlobalTypeOrUndefined( - "ReadonlyArray", - /*arity*/ - 1 - ) || globalArrayType; - anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType; - globalThisType = getGlobalTypeOrUndefined( - "ThisType", - /*arity*/ - 1 - ); - if (augmentations) { - for (const list of augmentations) { - for (const augmentation of list) { - if (isGlobalScopeAugmentation(augmentation.parent)) continue; - mergeModuleAugmentation(augmentation); - } - } - } - amalgamatedDuplicates.forEach(({ firstFile, secondFile, conflictingSymbols }) => { - if (conflictingSymbols.size < 8) { - conflictingSymbols.forEach(({ isBlockScoped, firstFileLocations, secondFileLocations }, symbolName2) => { - const message = isBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; - for (const node of firstFileLocations) { - addDuplicateDeclarationError(node, message, symbolName2, secondFileLocations); - } - for (const node of secondFileLocations) { - addDuplicateDeclarationError(node, message, symbolName2, firstFileLocations); - } - }); - } else { - const list = arrayFrom(conflictingSymbols.keys()).join(", "); - diagnostics.add(addRelatedInfo( - createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), - createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file) - )); - diagnostics.add(addRelatedInfo( - createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), - createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file) - )); - } - }); - amalgamatedDuplicates = void 0; - } - function checkExternalEmitHelpers(location, helpers) { - if (compilerOptions.importHelpers) { - const sourceFile = getSourceFileOfNode(location); - if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { - const helpersModule = resolveHelpersModule(sourceFile, location); - if (helpersModule !== unknownSymbol) { - const links = getSymbolLinks(helpersModule); - links.requestedExternalEmitHelpers ?? (links.requestedExternalEmitHelpers = 0); - if ((links.requestedExternalEmitHelpers & helpers) !== helpers) { - const uncheckedHelpers = helpers & ~links.requestedExternalEmitHelpers; - for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { - if (uncheckedHelpers & helper) { - for (const name of getHelperNames(helper)) { - const symbol = resolveSymbol(getSymbol(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */)); - if (!symbol) { - error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); - } else if (helper & 524288 /* ClassPrivateFieldGet */) { - if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) { - error(location, Diagnostics.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, externalHelpersModuleNameText, name, 4); - } - } else if (helper & 1048576 /* ClassPrivateFieldSet */) { - if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) { - error(location, Diagnostics.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, externalHelpersModuleNameText, name, 5); - } - } else if (helper & 1024 /* SpreadArray */) { - if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) { - error(location, Diagnostics.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, externalHelpersModuleNameText, name, 3); - } - } - } - } - } - } - links.requestedExternalEmitHelpers |= helpers; - } - } - } - } - function getHelperNames(helper) { - switch (helper) { - case 1 /* Extends */: - return ["__extends"]; - case 2 /* Assign */: - return ["__assign"]; - case 4 /* Rest */: - return ["__rest"]; - case 8 /* Decorate */: - return legacyDecorators ? ["__decorate"] : ["__esDecorate", "__runInitializers"]; - case 16 /* Metadata */: - return ["__metadata"]; - case 32 /* Param */: - return ["__param"]; - case 64 /* Awaiter */: - return ["__awaiter"]; - case 128 /* Generator */: - return ["__generator"]; - case 256 /* Values */: - return ["__values"]; - case 512 /* Read */: - return ["__read"]; - case 1024 /* SpreadArray */: - return ["__spreadArray"]; - case 2048 /* Await */: - return ["__await"]; - case 4096 /* AsyncGenerator */: - return ["__asyncGenerator"]; - case 8192 /* AsyncDelegator */: - return ["__asyncDelegator"]; - case 16384 /* AsyncValues */: - return ["__asyncValues"]; - case 32768 /* ExportStar */: - return ["__exportStar"]; - case 65536 /* ImportStar */: - return ["__importStar"]; - case 131072 /* ImportDefault */: - return ["__importDefault"]; - case 262144 /* MakeTemplateObject */: - return ["__makeTemplateObject"]; - case 524288 /* ClassPrivateFieldGet */: - return ["__classPrivateFieldGet"]; - case 1048576 /* ClassPrivateFieldSet */: - return ["__classPrivateFieldSet"]; - case 2097152 /* ClassPrivateFieldIn */: - return ["__classPrivateFieldIn"]; - case 4194304 /* SetFunctionName */: - return ["__setFunctionName"]; - case 8388608 /* PropKey */: - return ["__propKey"]; - case 16777216 /* AddDisposableResourceAndDisposeResources */: - return ["__addDisposableResource", "__disposeResources"]; - case 33554432 /* RewriteRelativeImportExtension */: - return ["__rewriteRelativeImportExtension"]; - default: - return Debug.fail("Unrecognized helper"); - } - } - function resolveHelpersModule(file, errorNode) { - const links = getNodeLinks(file); - if (!links.externalHelpersModule) { - links.externalHelpersModule = resolveExternalModule(getImportHelpersImportSpecifier(file), externalHelpersModuleNameText, Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, errorNode) || unknownSymbol; - } - return links.externalHelpersModule; - } - function checkGrammarModifiers(node) { - var _a; - const quickResult = reportObviousDecoratorErrors(node) || reportObviousModifierErrors(node); - if (quickResult !== void 0) { - return quickResult; - } - if (isParameter(node) && parameterIsThisKeyword(node)) { - return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); - } - const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; - let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; - let flags = 0 /* None */; - let sawExportBeforeDecorators = false; - let hasLeadingDecorators = false; - for (const modifier of node.modifiers) { - if (isDecorator(modifier)) { - if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { - if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { - return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); - } else { - return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); - } - } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { - const accessors = getAllAccessorDeclarationsForDeclaration(node); - if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { - return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); - } - } - if (flags & ~(2080 /* ExportDefault */ | 32768 /* Decorator */)) { - return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here); - } - if (hasLeadingDecorators && flags & 98303 /* Modifier */) { - Debug.assertIsDefined(firstDecorator); - const sourceFile = getSourceFileOfNode(modifier); - if (!hasParseDiagnostics(sourceFile)) { - addRelatedInfo( - error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), - createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here) - ); - return true; - } - return false; - } - flags |= 32768 /* Decorator */; - if (!(flags & 98303 /* Modifier */)) { - hasLeadingDecorators = true; - } else if (flags & 32 /* Export */) { - sawExportBeforeDecorators = true; - } - firstDecorator ?? (firstDecorator = modifier); - } else { - if (modifier.kind !== 148 /* ReadonlyKeyword */) { - if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); - } - if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); - } - } - if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { - if (node.kind === 168 /* TypeParameter */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); - } - } - switch (modifier.kind) { - case 87 /* ConstKeyword */: { - if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { - return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); - } - const parent = isJSDocTemplateTag(node.parent) && getEffectiveJSDocHost(node.parent) || node.parent; - if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent) || isClassLike(parent) || isFunctionTypeNode(parent) || isConstructorTypeNode(parent) || isCallSignatureDeclaration(parent) || isConstructSignatureDeclaration(parent) || isMethodSignature(parent))) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); - } - break; - } - case 164 /* OverrideKeyword */: - if (flags & 16 /* Override */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); - } else if (flags & 128 /* Ambient */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "override", "declare"); - } else if (flags & 8 /* Readonly */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "readonly"); - } else if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "accessor"); - } else if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "async"); - } - flags |= 16 /* Override */; - lastOverride = modifier; - break; - case 125 /* PublicKeyword */: - case 124 /* ProtectedKeyword */: - case 123 /* PrivateKeyword */: - const text = visibilityToString(modifierToFlag(modifier.kind)); - if (flags & 7 /* AccessibilityModifier */) { - return grammarErrorOnNode(modifier, Diagnostics.Accessibility_modifier_already_seen); - } else if (flags & 16 /* Override */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "override"); - } else if (flags & 256 /* Static */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "static"); - } else if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "accessor"); - } else if (flags & 8 /* Readonly */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); - } else if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); - } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); - } else if (flags & 64 /* Abstract */) { - if (modifier.kind === 123 /* PrivateKeyword */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, text, "abstract"); - } else { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "abstract"); - } - } else if (isPrivateIdentifierClassElementDeclaration(node)) { - return grammarErrorOnNode(modifier, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); - } - flags |= modifierToFlag(modifier.kind); - break; - case 126 /* StaticKeyword */: - if (flags & 256 /* Static */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "static"); - } else if (flags & 8 /* Readonly */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "readonly"); - } else if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); - } else if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); - } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); - } else if (node.kind === 169 /* Parameter */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); - } else if (flags & 64 /* Abstract */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); - } else if (flags & 16 /* Override */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "override"); - } - flags |= 256 /* Static */; - lastStatic = modifier; - break; - case 129 /* AccessorKeyword */: - if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "accessor"); - } else if (flags & 8 /* Readonly */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); - } else if (flags & 128 /* Ambient */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); - } else if (node.kind !== 172 /* PropertyDeclaration */) { - return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); - } - flags |= 512 /* Accessor */; - break; - case 148 /* ReadonlyKeyword */: - if (flags & 8 /* Readonly */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); - } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { - return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); - } else if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); - } - flags |= 8 /* Readonly */; - break; - case 95 /* ExportKeyword */: - if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 307 /* SourceFile */ && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { - return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } - if (flags & 32 /* Export */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "export"); - } else if (flags & 128 /* Ambient */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "declare"); - } else if (flags & 64 /* Abstract */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "abstract"); - } else if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); - } else if (isClassLike(node.parent)) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); - } else if (node.kind === 169 /* Parameter */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); - } else if (blockScopeKind === 4 /* Using */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); - } else if (blockScopeKind === 6 /* AwaitUsing */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); - } - flags |= 32 /* Export */; - break; - case 90 /* DefaultKeyword */: - const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent; - if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { - return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); - } else if (blockScopeKind === 4 /* Using */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); - } else if (blockScopeKind === 6 /* AwaitUsing */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); - } else if (!(flags & 32 /* Export */)) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); - } else if (sawExportBeforeDecorators) { - return grammarErrorOnNode(firstDecorator, Diagnostics.Decorators_are_not_valid_here); - } - flags |= 2048 /* Default */; - break; - case 138 /* DeclareKeyword */: - if (flags & 128 /* Ambient */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "declare"); - } else if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (flags & 16 /* Override */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); - } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); - } else if (node.kind === 169 /* Parameter */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); - } else if (blockScopeKind === 4 /* Using */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); - } else if (blockScopeKind === 6 /* AwaitUsing */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); - } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { - return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); - } else if (isPrivateIdentifierClassElementDeclaration(node)) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); - } else if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "declare", "accessor"); - } - flags |= 128 /* Ambient */; - lastDeclare = modifier; - break; - case 128 /* AbstractKeyword */: - if (flags & 64 /* Abstract */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); - } - if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { - if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { - return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); - } - if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 64 /* Abstract */))) { - const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; - return grammarErrorOnNode(modifier, message); - } - if (flags & 256 /* Static */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); - } - if (flags & 2 /* Private */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "private", "abstract"); - } - if (flags & 1024 /* Async */ && lastAsync) { - return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); - } - if (flags & 16 /* Override */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "override"); - } - if (flags & 512 /* Accessor */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "accessor"); - } - } - if (isNamedDeclaration(node) && node.name.kind === 81 /* PrivateIdentifier */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "abstract"); - } - flags |= 64 /* Abstract */; - break; - case 134 /* AsyncKeyword */: - if (flags & 1024 /* Async */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); - } else if (flags & 128 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); - } else if (node.kind === 169 /* Parameter */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); - } - if (flags & 64 /* Abstract */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); - } - flags |= 1024 /* Async */; - lastAsync = modifier; - break; - case 103 /* InKeyword */: - case 147 /* OutKeyword */: { - const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 8192 /* In */ : 16384 /* Out */; - const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; - const parent = isJSDocTemplateTag(node.parent) && (getEffectiveJSDocHost(node.parent) || find((_a = getJSDocRoot(node.parent)) == null ? void 0 : _a.tags, isJSDocTypedefTag)) || node.parent; - if (node.kind !== 168 /* TypeParameter */ || parent && !(isInterfaceDeclaration(parent) || isClassLike(parent) || isTypeAliasDeclaration(parent) || isJSDocTypedefTag(parent))) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); - } - if (flags & inOutFlag) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, inOutText); - } - if (inOutFlag & 8192 /* In */ && flags & 16384 /* Out */) { - return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "in", "out"); - } - flags |= inOutFlag; - break; - } - } - } - } - if (node.kind === 176 /* Constructor */) { - if (flags & 256 /* Static */) { - return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); - } - if (flags & 16 /* Override */) { - return grammarErrorOnNode(lastOverride, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); - } - if (flags & 1024 /* Async */) { - return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); - } - return false; - } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 128 /* Ambient */) { - return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); - } else if (node.kind === 169 /* Parameter */ && flags & 31 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { - return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); - } else if (node.kind === 169 /* Parameter */ && flags & 31 /* ParameterPropertyModifier */ && node.dotDotDotToken) { - return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); - } - if (flags & 1024 /* Async */) { - return checkGrammarAsyncModifier(node, lastAsync); - } - return false; - } - function reportObviousModifierErrors(node) { - if (!node.modifiers) return false; - const modifier = findFirstIllegalModifier(node); - return modifier && grammarErrorOnFirstToken(modifier, Diagnostics.Modifiers_cannot_appear_here); - } - function findFirstModifierExcept(node, allowedModifier) { - const modifier = find(node.modifiers, isModifier); - return modifier && modifier.kind !== allowedModifier ? modifier : void 0; - } - function findFirstIllegalModifier(node) { - switch (node.kind) { - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 176 /* Constructor */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 181 /* IndexSignature */: - case 267 /* ModuleDeclaration */: - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 278 /* ExportDeclaration */: - case 277 /* ExportAssignment */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 169 /* Parameter */: - case 168 /* TypeParameter */: - return void 0; - case 175 /* ClassStaticBlockDeclaration */: - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 270 /* NamespaceExportDeclaration */: - case 282 /* MissingDeclaration */: - return find(node.modifiers, isModifier); - default: - if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { - return void 0; - } - switch (node.kind) { - case 262 /* FunctionDeclaration */: - return findFirstModifierExcept(node, 134 /* AsyncKeyword */); - case 263 /* ClassDeclaration */: - case 185 /* ConstructorType */: - return findFirstModifierExcept(node, 128 /* AbstractKeyword */); - case 231 /* ClassExpression */: - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - return find(node.modifiers, isModifier); - case 243 /* VariableStatement */: - return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); - case 266 /* EnumDeclaration */: - return findFirstModifierExcept(node, 87 /* ConstKeyword */); - default: - Debug.assertNever(node); - } - } - } - function reportObviousDecoratorErrors(node) { - const decorator = findFirstIllegalDecorator(node); - return decorator && grammarErrorOnFirstToken(decorator, Diagnostics.Decorators_are_not_valid_here); - } - function findFirstIllegalDecorator(node) { - return canHaveIllegalDecorators(node) ? find(node.modifiers, isDecorator) : void 0; - } - function checkGrammarAsyncModifier(node, asyncModifier) { - switch (node.kind) { - case 174 /* MethodDeclaration */: - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - return false; - } - return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); - } - function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) { - if (list && list.hasTrailingComma) { - return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag2); - } - return false; - } - function checkGrammarTypeParameterList(typeParameters, file) { - if (typeParameters && typeParameters.length === 0) { - const start = typeParameters.pos - "<".length; - const end = skipTrivia(file.text, typeParameters.end) + ">".length; - return grammarErrorAtPos(file, start, end - start, Diagnostics.Type_parameter_list_cannot_be_empty); - } - return false; - } - function checkGrammarParameterList(parameters) { - let seenOptionalParameter = false; - const parameterCount = parameters.length; - for (let i = 0; i < parameterCount; i++) { - const parameter = parameters[i]; - if (parameter.dotDotDotToken) { - if (i !== parameterCount - 1) { - return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); - } - if (!(parameter.flags & 33554432 /* Ambient */)) { - checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); - } - if (parameter.questionToken) { - return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_rest_parameter_cannot_be_optional); - } - if (parameter.initializer) { - return grammarErrorOnNode(parameter.name, Diagnostics.A_rest_parameter_cannot_have_an_initializer); - } - } else if (hasEffectiveQuestionToken(parameter)) { - seenOptionalParameter = true; - if (parameter.questionToken && parameter.initializer) { - return grammarErrorOnNode(parameter.name, Diagnostics.Parameter_cannot_have_question_mark_and_initializer); - } - } else if (seenOptionalParameter && !parameter.initializer) { - return grammarErrorOnNode(parameter.name, Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter); - } - } - } - function getNonSimpleParameters(parameters) { - return filter(parameters, (parameter) => !!parameter.initializer || isBindingPattern(parameter.name) || isRestParameter(parameter)); - } - function checkGrammarForUseStrictSimpleParameterList(node) { - if (languageVersion >= 3 /* ES2016 */) { - const useStrictDirective = node.body && isBlock(node.body) && findUseStrictPrologue(node.body.statements); - if (useStrictDirective) { - const nonSimpleParameters = getNonSimpleParameters(node.parameters); - if (length(nonSimpleParameters)) { - forEach(nonSimpleParameters, (parameter) => { - addRelatedInfo( - error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), - createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here) - ); - }); - const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here)); - addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); - return true; - } - } - } - return false; - } - function checkGrammarFunctionLikeDeclaration(node) { - const file = getSourceFileOfNode(node); - return checkGrammarModifiers(node) || checkGrammarTypeParameterList(node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file) || isFunctionLikeDeclaration(node) && checkGrammarForUseStrictSimpleParameterList(node); - } - function checkGrammarClassLikeDeclaration(node) { - const file = getSourceFileOfNode(node); - return checkGrammarClassDeclarationHeritageClauses(node) || checkGrammarTypeParameterList(node.typeParameters, file); - } - function checkGrammarArrowFunction(node, file) { - if (!isArrowFunction(node)) { - return false; - } - if (node.typeParameters && !(length(node.typeParameters) > 1 || node.typeParameters.hasTrailingComma || node.typeParameters[0].constraint)) { - if (file && fileExtensionIsOneOf(file.fileName, [".mts" /* Mts */, ".cts" /* Cts */])) { - grammarErrorOnNode(node.typeParameters[0], Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint); - } - } - const { equalsGreaterThanToken } = node; - const startLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.pos).line; - const endLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.end).line; - return startLine !== endLine && grammarErrorOnNode(equalsGreaterThanToken, Diagnostics.Line_terminator_not_permitted_before_arrow); - } - function checkGrammarIndexSignatureParameters(node) { - const parameter = node.parameters[0]; - if (node.parameters.length !== 1) { - if (parameter) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_must_have_exactly_one_parameter); - } else { - return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_exactly_one_parameter); - } - } - checkGrammarForDisallowedTrailingComma(node.parameters, Diagnostics.An_index_signature_cannot_have_a_trailing_comma); - if (parameter.dotDotDotToken) { - return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.An_index_signature_cannot_have_a_rest_parameter); - } - if (hasEffectiveModifiers(parameter)) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier); - } - if (parameter.questionToken) { - return grammarErrorOnNode(parameter.questionToken, Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark); - } - if (parameter.initializer) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_initializer); - } - if (!parameter.type) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_must_have_a_type_annotation); - } - const type = getTypeFromTypeNode(parameter.type); - if (someType(type, (t) => !!(t.flags & 8576 /* StringOrNumberLiteralOrUnique */)) || isGenericType(type)) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead); - } - if (!everyType(type, isValidIndexKeyType)) { - return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type); - } - if (!node.type) { - return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_a_type_annotation); - } - return false; - } - function checkGrammarIndexSignature(node) { - return checkGrammarModifiers(node) || checkGrammarIndexSignatureParameters(node); - } - function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) { - if (typeArguments && typeArguments.length === 0) { - const sourceFile = getSourceFileOfNode(node); - const start = typeArguments.pos - "<".length; - const end = skipTrivia(sourceFile.text, typeArguments.end) + ">".length; - return grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.Type_argument_list_cannot_be_empty); - } - return false; - } - function checkGrammarTypeArguments(node, typeArguments) { - return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); - } - function checkGrammarTaggedTemplateChain(node) { - if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { - return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); - } - return false; - } - function checkGrammarHeritageClause(node) { - const types = node.types; - if (checkGrammarForDisallowedTrailingComma(types)) { - return true; - } - if (types && types.length === 0) { - const listType = tokenToString(node.token); - return grammarErrorAtPos(node, types.pos, 0, Diagnostics._0_list_cannot_be_empty, listType); - } - return some(types, checkGrammarExpressionWithTypeArguments); - } - function checkGrammarExpressionWithTypeArguments(node) { - if (isExpressionWithTypeArguments(node) && isImportKeyword(node.expression) && node.typeArguments) { - return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); - } - return checkGrammarTypeArguments(node, node.typeArguments); - } - function checkGrammarClassDeclarationHeritageClauses(node) { - let seenExtendsClause = false; - let seenImplementsClause = false; - if (!checkGrammarModifiers(node) && node.heritageClauses) { - for (const heritageClause of node.heritageClauses) { - if (heritageClause.token === 96 /* ExtendsKeyword */) { - if (seenExtendsClause) { - return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen); - } - if (seenImplementsClause) { - return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_must_precede_implements_clause); - } - if (heritageClause.types.length > 1) { - return grammarErrorOnFirstToken(heritageClause.types[1], Diagnostics.Classes_can_only_extend_a_single_class); - } - seenExtendsClause = true; - } else { - Debug.assert(heritageClause.token === 119 /* ImplementsKeyword */); - if (seenImplementsClause) { - return grammarErrorOnFirstToken(heritageClause, Diagnostics.implements_clause_already_seen); - } - seenImplementsClause = true; - } - checkGrammarHeritageClause(heritageClause); - } - } - } - function checkGrammarInterfaceDeclaration(node) { - let seenExtendsClause = false; - if (node.heritageClauses) { - for (const heritageClause of node.heritageClauses) { - if (heritageClause.token === 96 /* ExtendsKeyword */) { - if (seenExtendsClause) { - return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen); - } - seenExtendsClause = true; - } else { - Debug.assert(heritageClause.token === 119 /* ImplementsKeyword */); - return grammarErrorOnFirstToken(heritageClause, Diagnostics.Interface_declaration_cannot_have_implements_clause); - } - checkGrammarHeritageClause(heritageClause); - } - } - return false; - } - function checkGrammarComputedPropertyName(node) { - if (node.kind !== 167 /* ComputedPropertyName */) { - return false; - } - const computedPropertyName = node; - if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { - return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); - } - return false; - } - function checkGrammarForGenerator(node) { - if (node.asteriskToken) { - Debug.assert( - node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ - ); - if (node.flags & 33554432 /* Ambient */) { - return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); - } - if (!node.body) { - return grammarErrorOnNode(node.asteriskToken, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator); - } - } - } - function checkGrammarForInvalidQuestionMark(questionToken, message) { - return !!questionToken && grammarErrorOnNode(questionToken, message); - } - function checkGrammarForInvalidExclamationToken(exclamationToken, message) { - return !!exclamationToken && grammarErrorOnNode(exclamationToken, message); - } - function checkGrammarObjectLiteralExpression(node, inDestructuring) { - const seen = /* @__PURE__ */ new Map(); - for (const prop of node.properties) { - if (prop.kind === 305 /* SpreadAssignment */) { - if (inDestructuring) { - const expression = skipParentheses(prop.expression); - if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { - return grammarErrorOnNode(prop.expression, Diagnostics.A_rest_element_cannot_contain_a_binding_pattern); - } - } - continue; - } - const name = prop.name; - if (name.kind === 167 /* ComputedPropertyName */) { - checkGrammarComputedPropertyName(name); - } - if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { - grammarErrorOnNode(prop.equalsToken, Diagnostics.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); - } - if (name.kind === 81 /* PrivateIdentifier */) { - grammarErrorOnNode(name, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); - } - if (canHaveModifiers(prop) && prop.modifiers) { - for (const mod of prop.modifiers) { - if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { - grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); - } - } - } else if (canHaveIllegalModifiers(prop) && prop.modifiers) { - for (const mod of prop.modifiers) { - if (isModifier(mod)) { - grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); - } - } - } - let currentKind; - switch (prop.kind) { - case 304 /* ShorthandPropertyAssignment */: - case 303 /* PropertyAssignment */: - checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); - checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); - if (name.kind === 9 /* NumericLiteral */) { - checkGrammarNumericLiteral(name); - } - if (name.kind === 10 /* BigIntLiteral */) { - addErrorOrSuggestion( - /*isError*/ - true, - createDiagnosticForNode(name, Diagnostics.A_bigint_literal_cannot_be_used_as_a_property_name) - ); - } - currentKind = 4 /* PropertyAssignment */; - break; - case 174 /* MethodDeclaration */: - currentKind = 8 /* Method */; - break; - case 177 /* GetAccessor */: - currentKind = 1 /* GetAccessor */; - break; - case 178 /* SetAccessor */: - currentKind = 2 /* SetAccessor */; - break; - default: - Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind); - } - if (!inDestructuring) { - const effectiveName = getEffectivePropertyNameForPropertyNameNode(name); - if (effectiveName === void 0) { - continue; - } - const existingKind = seen.get(effectiveName); - if (!existingKind) { - seen.set(effectiveName, currentKind); - } else { - if (currentKind & 8 /* Method */ && existingKind & 8 /* Method */) { - grammarErrorOnNode(name, Diagnostics.Duplicate_identifier_0, getTextOfNode(name)); - } else if (currentKind & 4 /* PropertyAssignment */ && existingKind & 4 /* PropertyAssignment */) { - grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name, getTextOfNode(name)); - } else if (currentKind & 3 /* GetOrSetAccessor */ && existingKind & 3 /* GetOrSetAccessor */) { - if (existingKind !== 3 /* GetOrSetAccessor */ && currentKind !== existingKind) { - seen.set(effectiveName, currentKind | existingKind); - } else { - return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name); - } - } else { - return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name); - } - } - } - } - } - function checkGrammarJsxElement(node) { - checkGrammarJsxName(node.tagName); - checkGrammarTypeArguments(node, node.typeArguments); - const seen = /* @__PURE__ */ new Map(); - for (const attr of node.attributes.properties) { - if (attr.kind === 293 /* JsxSpreadAttribute */) { - continue; - } - const { name, initializer } = attr; - const escapedText = getEscapedTextOfJsxAttributeName(name); - if (!seen.get(escapedText)) { - seen.set(escapedText, true); - } else { - return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); - } - if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { - return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); - } - } - } - function checkGrammarJsxName(node) { - if (isPropertyAccessExpression(node) && isJsxNamespacedName(node.expression)) { - return grammarErrorOnNode(node.expression, Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names); - } - if (isJsxNamespacedName(node) && getJSXTransformEnabled(compilerOptions) && !isIntrinsicJsxName(node.namespace.escapedText)) { - return grammarErrorOnNode(node, Diagnostics.React_components_cannot_include_JSX_namespace_names); - } - } - function checkGrammarJsxExpression(node) { - if (node.expression && isCommaSequence(node.expression)) { - return grammarErrorOnNode(node.expression, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array); - } - } - function checkGrammarForInOrForOfStatement(forInOrOfStatement) { - if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { - return true; - } - if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { - if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { - const sourceFile = getSourceFileOfNode(forInOrOfStatement); - if (isInTopLevelContext(forInOrOfStatement)) { - if (!hasParseDiagnostics(sourceFile)) { - if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { - diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.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)); - } - switch (moduleKind) { - case 100 /* Node16 */: - case 101 /* Node18 */: - case 199 /* NodeNext */: - if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { - diagnostics.add( - createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) - ); - break; - } - // fallthrough - case 7 /* ES2022 */: - case 99 /* ESNext */: - case 200 /* Preserve */: - case 4 /* System */: - if (languageVersion >= 4 /* ES2017 */) { - break; - } - // fallthrough - default: - diagnostics.add( - createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher) - ); - break; - } - } - } else { - if (!hasParseDiagnostics(sourceFile)) { - const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); - const func = getContainingFunction(forInOrOfStatement); - if (func && func.kind !== 176 /* Constructor */) { - Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); - const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); - addRelatedInfo(diagnostic, relatedInfo); - } - diagnostics.add(diagnostic); - return true; - } - } - } - } - if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { - grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); - return false; - } - if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { - const variableList = forInOrOfStatement.initializer; - if (!checkGrammarVariableDeclarationList(variableList)) { - const declarations = variableList.declarations; - if (!declarations.length) { - return false; - } - if (declarations.length > 1) { - const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; - return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); - } - const firstDeclaration = declarations[0]; - if (firstDeclaration.initializer) { - const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; - return grammarErrorOnNode(firstDeclaration.name, diagnostic); - } - if (firstDeclaration.type) { - const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; - return grammarErrorOnNode(firstDeclaration, diagnostic); - } - } - } - return false; - } - function checkGrammarAccessor(accessor) { - if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { - if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(accessor.name)) { - return grammarErrorOnNode(accessor.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); - } - if (accessor.body === void 0 && !hasSyntacticModifier(accessor, 64 /* Abstract */)) { - return grammarErrorAtPos(accessor, accessor.end - 1, ";".length, Diagnostics._0_expected, "{"); - } - } - if (accessor.body) { - if (hasSyntacticModifier(accessor, 64 /* Abstract */)) { - return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); - } - if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { - return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); - } - } - if (accessor.typeParameters) { - return grammarErrorOnNode(accessor.name, Diagnostics.An_accessor_cannot_have_type_parameters); - } - if (!doesAccessorHaveCorrectParameterCount(accessor)) { - return grammarErrorOnNode( - accessor.name, - accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter - ); - } - if (accessor.kind === 178 /* SetAccessor */) { - if (accessor.type) { - return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); - } - const parameter = Debug.checkDefined(getSetAccessorValueParameter(accessor), "Return value does not match parameter count assertion."); - if (parameter.dotDotDotToken) { - return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_set_accessor_cannot_have_rest_parameter); - } - if (parameter.questionToken) { - return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_set_accessor_cannot_have_an_optional_parameter); - } - if (parameter.initializer) { - return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer); - } - } - return false; - } - function doesAccessorHaveCorrectParameterCount(accessor) { - return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); - } - function getAccessorThisParameter(accessor) { - if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { - return getThisParameter(accessor); - } - } - function checkGrammarTypeOperatorNode(node) { - if (node.operator === 158 /* UniqueKeyword */) { - if (node.type.kind !== 155 /* SymbolKeyword */) { - return grammarErrorOnNode(node.type, Diagnostics._0_expected, tokenToString(155 /* SymbolKeyword */)); - } - let parent = walkUpParenthesizedTypes(node.parent); - if (isInJSFile(parent) && isJSDocTypeExpression(parent)) { - const host2 = getJSDocHost(parent); - if (host2) { - parent = getSingleVariableOfVariableStatement(host2) || host2; - } - } - switch (parent.kind) { - case 260 /* VariableDeclaration */: - const decl = parent; - if (decl.name.kind !== 80 /* Identifier */) { - return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); - } - if (!isVariableDeclarationInVariableStatement(decl)) { - return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement); - } - if (!(decl.parent.flags & 2 /* Const */)) { - return grammarErrorOnNode(parent.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); - } - break; - case 172 /* PropertyDeclaration */: - if (!isStatic(parent) || !hasEffectiveReadonlyModifier(parent)) { - return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); - } - break; - case 171 /* PropertySignature */: - if (!hasSyntacticModifier(parent, 8 /* Readonly */)) { - return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); - } - break; - default: - return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); - } - } else if (node.operator === 148 /* ReadonlyKeyword */) { - if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { - return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); - } - } - } - function checkGrammarForInvalidDynamicName(node, message) { - if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) { - return grammarErrorOnNode(node, message); - } - } - function checkGrammarMethod(node) { - if (checkGrammarFunctionLikeDeclaration(node)) { - return true; - } - if (node.kind === 174 /* MethodDeclaration */) { - if (node.parent.kind === 210 /* ObjectLiteralExpression */) { - if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { - return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); - } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { - return true; - } else if (checkGrammarForInvalidExclamationToken(node.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)) { - return true; - } else if (node.body === void 0) { - return grammarErrorAtPos(node, node.end - 1, ";".length, Diagnostics._0_expected, "{"); - } - } - if (checkGrammarForGenerator(node)) { - return true; - } - } - if (isClassLike(node.parent)) { - if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { - return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); - } - if (node.flags & 33554432 /* Ambient */) { - return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { - return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } - } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { - return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } else if (node.parent.kind === 187 /* TypeLiteral */) { - return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); - } - } - function checkGrammarBreakOrContinueStatement(node) { - let current = node; - while (current) { - if (isFunctionLikeOrClassStaticBlockDeclaration(current)) { - return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); - } - switch (current.kind) { - case 256 /* LabeledStatement */: - if (node.label && current.label.escapedText === node.label.escapedText) { - const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( - current.statement, - /*lookInLabeledStatements*/ - true - ); - if (isMisplacedContinueLabel) { - return grammarErrorOnNode(node, Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement); - } - return false; - } - break; - case 255 /* SwitchStatement */: - if (node.kind === 252 /* BreakStatement */ && !node.label) { - return false; - } - break; - default: - if (isIterationStatement( - current, - /*lookInLabeledStatements*/ - false - ) && !node.label) { - return false; - } - break; - } - current = current.parent; - } - if (node.label) { - const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; - return grammarErrorOnNode(node, message); - } else { - const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; - return grammarErrorOnNode(node, message); - } - } - function checkGrammarBindingElement(node) { - if (node.dotDotDotToken) { - const elements = node.parent.elements; - if (node !== last(elements)) { - return grammarErrorOnNode(node, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); - } - checkGrammarForDisallowedTrailingComma(elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); - if (node.propertyName) { - return grammarErrorOnNode(node.name, Diagnostics.A_rest_element_cannot_have_a_property_name); - } - } - if (node.dotDotDotToken && node.initializer) { - return grammarErrorAtPos(node, node.initializer.pos - 1, 1, Diagnostics.A_rest_element_cannot_have_an_initializer); - } - } - function isStringOrNumberLiteralExpression(expr) { - return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; - } - function isBigIntLiteralExpression(expr) { - return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; - } - function isSimpleLiteralEnumReference(expr) { - if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { - return !!(checkExpressionCached(expr).flags & 1056 /* EnumLike */); - } - } - function checkAmbientInitializer(node) { - const initializer = node.initializer; - if (initializer) { - const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); - const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike2(node); - if (isConstOrReadonly && !node.type) { - if (isInvalidInitializer) { - return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); - } - } else { - return grammarErrorOnNode(initializer, Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); - } - } - } - function checkGrammarVariableDeclaration(node) { - const nodeFlags = getCombinedNodeFlagsCached(node); - const blockScopeKind = nodeFlags & 7 /* BlockScoped */; - if (isBindingPattern(node.name)) { - switch (blockScopeKind) { - case 6 /* AwaitUsing */: - return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); - case 4 /* Using */: - return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); - } - } - if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { - if (nodeFlags & 33554432 /* Ambient */) { - checkAmbientInitializer(node); - } else if (!node.initializer) { - if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { - return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); - } - switch (blockScopeKind) { - case 6 /* AwaitUsing */: - return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); - case 4 /* Using */: - return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); - case 2 /* Const */: - return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); - } - } - } - if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { - const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; - return grammarErrorOnNode(node.exclamationToken, message); - } - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 32 /* Export */)) { - checkESModuleMarker(node.name); - } - return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); - } - function checkESModuleMarker(name) { - if (name.kind === 80 /* Identifier */) { - if (idText(name) === "__esModule") { - return grammarErrorOnNodeSkippedOn("noEmit", name, Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules); - } - } else { - const elements = name.elements; - for (const element of elements) { - if (!isOmittedExpression(element)) { - return checkESModuleMarker(element.name); - } - } - } - return false; - } - function checkGrammarNameInLetOrConstDeclarations(name) { - if (name.kind === 80 /* Identifier */) { - if (name.escapedText === "let") { - return grammarErrorOnNode(name, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); - } - } else { - const elements = name.elements; - for (const element of elements) { - if (!isOmittedExpression(element)) { - checkGrammarNameInLetOrConstDeclarations(element.name); - } - } - } - return false; - } - function checkGrammarVariableDeclarationList(declarationList) { - const declarations = declarationList.declarations; - if (checkGrammarForDisallowedTrailingComma(declarationList.declarations)) { - return true; - } - if (!declarationList.declarations.length) { - return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); - } - const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; - if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { - return grammarErrorOnNode( - declarationList, - blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration - ); - } - if (blockScopeFlags === 6 /* AwaitUsing */) { - return checkAwaitGrammar(declarationList); - } - return false; - } - function allowBlockDeclarations(parent) { - switch (parent.kind) { - case 245 /* IfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 254 /* WithStatement */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - return false; - case 256 /* LabeledStatement */: - return allowBlockDeclarations(parent.parent); - } - return true; - } - function checkGrammarForDisallowedBlockScopedVariableStatement(node) { - if (!allowBlockDeclarations(node.parent)) { - const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; - if (blockScopeKind) { - const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); - return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); - } - } - } - function checkGrammarMetaProperty(node) { - const escapedText = node.name.escapedText; - switch (node.keywordToken) { - case 105 /* NewKeyword */: - if (escapedText !== "target") { - return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "target"); - } - break; - case 102 /* ImportKeyword */: - if (escapedText !== "meta") { - return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "meta"); - } - break; - } - } - function hasParseDiagnostics(sourceFile) { - return sourceFile.parseDiagnostics.length > 0; - } - function grammarErrorOnFirstToken(node, message, ...args) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message, ...args)); - return true; - } - return false; - } - function grammarErrorAtPos(nodeForSourceFile, start, length2, message, ...args) { - const sourceFile = getSourceFileOfNode(nodeForSourceFile); - if (!hasParseDiagnostics(sourceFile)) { - diagnostics.add(createFileDiagnostic(sourceFile, start, length2, message, ...args)); - return true; - } - return false; - } - function grammarErrorOnNodeSkippedOn(key, node, message, ...args) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - errorSkippedOn(key, node, message, ...args); - return true; - } - return false; - } - function grammarErrorOnNode(node, message, ...args) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - diagnostics.add(createDiagnosticForNode(node, message, ...args)); - return true; - } - return false; - } - function checkGrammarConstructorTypeParameters(node) { - const jsdocTypeParameters = isInJSFile(node) ? getJSDocTypeParameterDeclarations(node) : void 0; - const range = node.typeParameters || jsdocTypeParameters && firstOrUndefined(jsdocTypeParameters); - if (range) { - const pos = range.pos === range.end ? range.pos : skipTrivia(getSourceFileOfNode(node).text, range.pos); - return grammarErrorAtPos(node, pos, range.end - pos, Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration); - } - } - function checkGrammarConstructorTypeAnnotation(node) { - const type = node.type || getEffectiveReturnTypeNode(node); - if (type) { - return grammarErrorOnNode(type, Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration); - } - } - function checkGrammarProperty(node) { - if (isComputedPropertyName(node.name) && isBinaryExpression(node.name.expression) && node.name.expression.operatorToken.kind === 103 /* InKeyword */) { - return grammarErrorOnNode(node.parent.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); - } - if (isClassLike(node.parent)) { - if (isStringLiteral(node.name) && node.name.text === "constructor") { - return grammarErrorOnNode(node.name, Diagnostics.Classes_may_not_have_a_field_named_constructor); - } - if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) { - return true; - } - if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { - return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); - } - if (languageVersion < 2 /* ES2015 */ && isAutoAccessorPropertyDeclaration(node)) { - return grammarErrorOnNode(node.name, Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher); - } - if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { - return true; - } - } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { - if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { - return true; - } - Debug.assertNode(node, isPropertySignature); - if (node.initializer) { - return grammarErrorOnNode(node.initializer, Diagnostics.An_interface_property_cannot_have_an_initializer); - } - } else if (isTypeLiteralNode(node.parent)) { - if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { - return true; - } - Debug.assertNode(node, isPropertySignature); - if (node.initializer) { - return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); - } - } - if (node.flags & 33554432 /* Ambient */) { - checkAmbientInitializer(node); - } - if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { - const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; - return grammarErrorOnNode(node.exclamationToken, message); - } - } - function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { - if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 128 /* Ambient */ | 32 /* Export */ | 2048 /* Default */)) { - return false; - } - return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); - } - function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { - for (const decl of file.statements) { - if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { - if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { - return true; - } - } - } - return false; - } - function checkGrammarSourceFile(node) { - return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); - } - function checkGrammarStatementInAmbientContext(node) { - if (node.flags & 33554432 /* Ambient */) { - const links = getNodeLinks(node); - if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { - return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); - } - if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { - const links2 = getNodeLinks(node.parent); - if (!links2.hasReportedStatementInAmbientContext) { - return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); - } - } else { - } - } - return false; - } - function checkGrammarNumericLiteral(node) { - const isFractional = getTextOfNode(node).includes("."); - const isScientific = node.numericLiteralFlags & 16 /* Scientific */; - if (isFractional || isScientific) { - return; - } - const value = +node.text; - if (value <= 2 ** 53 - 1) { - return; - } - addErrorOrSuggestion( - /*isError*/ - false, - createDiagnosticForNode(node, Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers) - ); - } - function checkGrammarBigIntLiteral(node) { - const literalType = isLiteralTypeNode(node.parent) || isPrefixUnaryExpression(node.parent) && isLiteralTypeNode(node.parent.parent); - if (!literalType) { - if (languageVersion < 7 /* ES2020 */) { - if (grammarErrorOnNode(node, Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) { - return true; - } - } - } - return false; - } - function grammarErrorAfterFirstToken(node, message, ...args) { - const sourceFile = getSourceFileOfNode(node); - if (!hasParseDiagnostics(sourceFile)) { - const span = getSpanOfTokenAtPosition(sourceFile, node.pos); - diagnostics.add(createFileDiagnostic( - sourceFile, - textSpanEnd(span), - /*length*/ - 0, - message, - ...args - )); - return true; - } - return false; - } - function getAmbientModules() { - if (!ambientModulesCache) { - ambientModulesCache = []; - globals.forEach((global2, sym) => { - if (ambientModuleSymbolRegex.test(sym)) { - ambientModulesCache.push(global2); - } - }); - } - return ambientModulesCache; - } - function checkGrammarImportClause(node) { - var _a; - if (node.isTypeOnly && node.name && node.namedBindings) { - return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); - } - if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { - return checkGrammarNamedImportsOrExports(node.namedBindings); - } - return false; - } - function checkGrammarNamedImportsOrExports(namedBindings) { - return !!forEach(namedBindings.elements, (specifier) => { - if (specifier.isTypeOnly) { - return grammarErrorOnFirstToken( - specifier, - specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement - ); - } - }); - } - function checkGrammarImportCallExpression(node) { - if (compilerOptions.verbatimModuleSyntax && moduleKind === 1 /* CommonJS */) { - return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } - if (moduleKind === 5 /* ES2015 */) { - return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext); - } - if (node.typeArguments) { - return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); - } - const nodeArguments = node.arguments; - if (!(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) { - checkGrammarForDisallowedTrailingComma(nodeArguments); - if (nodeArguments.length > 1) { - const importAttributesArgument = nodeArguments[1]; - return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve); - } - } - if (nodeArguments.length === 0 || nodeArguments.length > 2) { - return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments); - } - const spreadElement = find(nodeArguments, isSpreadElement); - if (spreadElement) { - return grammarErrorOnNode(spreadElement, Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element); - } - return false; - } - function findMatchingTypeReferenceOrTypeAliasReference(source, unionTarget) { - const sourceObjectFlags = getObjectFlags(source); - if (sourceObjectFlags & (4 /* Reference */ | 16 /* Anonymous */) && unionTarget.flags & 1048576 /* Union */) { - return find(unionTarget.types, (target) => { - if (target.flags & 524288 /* Object */) { - const overlapObjFlags = sourceObjectFlags & getObjectFlags(target); - if (overlapObjFlags & 4 /* Reference */) { - return source.target === target.target; - } - if (overlapObjFlags & 16 /* Anonymous */) { - return !!source.aliasSymbol && source.aliasSymbol === target.aliasSymbol; - } - } - return false; - }); - } - } - function findBestTypeForObjectLiteral(source, unionTarget) { - if (getObjectFlags(source) & 128 /* ObjectLiteral */ && someType(unionTarget, isArrayLikeType)) { - return find(unionTarget.types, (t) => !isArrayLikeType(t)); - } - } - function findBestTypeForInvokable(source, unionTarget) { - let signatureKind = 0 /* Call */; - const hasSignatures = getSignaturesOfType(source, signatureKind).length > 0 || (signatureKind = 1 /* Construct */, getSignaturesOfType(source, signatureKind).length > 0); - if (hasSignatures) { - return find(unionTarget.types, (t) => getSignaturesOfType(t, signatureKind).length > 0); - } - } - function findMostOverlappyType(source, unionTarget) { - let bestMatch; - if (!(source.flags & (402784252 /* Primitive */ | 406847488 /* InstantiablePrimitive */))) { - let matchingCount = 0; - for (const target of unionTarget.types) { - if (!(target.flags & (402784252 /* Primitive */ | 406847488 /* InstantiablePrimitive */))) { - const overlap = getIntersectionType([getIndexType(source), getIndexType(target)]); - if (overlap.flags & 4194304 /* Index */) { - return target; - } else if (isUnitType(overlap) || overlap.flags & 1048576 /* Union */) { - const len = overlap.flags & 1048576 /* Union */ ? countWhere(overlap.types, isUnitType) : 1; - if (len >= matchingCount) { - bestMatch = target; - matchingCount = len; - } - } - } - } - } - return bestMatch; - } - function filterPrimitivesIfContainsNonPrimitive(type) { - if (maybeTypeOfKind(type, 67108864 /* NonPrimitive */)) { - const result = filterType(type, (t) => !(t.flags & 402784252 /* Primitive */)); - if (!(result.flags & 131072 /* Never */)) { - return result; - } - } - return type; - } - function findMatchingDiscriminantType(source, target, isRelatedTo) { - if (target.flags & 1048576 /* Union */ && source.flags & (2097152 /* Intersection */ | 524288 /* Object */)) { - const match = getMatchingUnionConstituentForType(target, source); - if (match) { - return match; - } - const sourceProperties = getPropertiesOfType(source); - if (sourceProperties) { - const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target); - if (sourcePropertiesFiltered) { - const discriminated = discriminateTypeByDiscriminableItems(target, map(sourcePropertiesFiltered, (p) => [() => getTypeOfSymbol(p), p.escapedName]), isRelatedTo); - if (discriminated !== target) { - return discriminated; - } - } - } - } - return void 0; - } - function getEffectivePropertyNameForPropertyNameNode(node) { - const name = getPropertyNameForPropertyNameNode(node); - return name ? name : isComputedPropertyName(node) ? tryGetNameFromType(getTypeOfExpression(node.expression)) : void 0; - } - function getCombinedModifierFlagsCached(node) { - if (lastGetCombinedModifierFlagsNode === node) { - return lastGetCombinedModifierFlagsResult; - } - lastGetCombinedModifierFlagsNode = node; - lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); - return lastGetCombinedModifierFlagsResult; - } - function getCombinedNodeFlagsCached(node) { - if (lastGetCombinedNodeFlagsNode === node) { - return lastGetCombinedNodeFlagsResult; - } - lastGetCombinedNodeFlagsNode = node; - lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); - return lastGetCombinedNodeFlagsResult; - } - function isVarConstLike2(node) { - const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; - return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; - } - function getJSXRuntimeImportSpecifier(file, specifierText) { - const jsxImportIndex = compilerOptions.importHelpers ? 1 : 0; - const specifier = file == null ? void 0 : file.imports[jsxImportIndex]; - if (specifier) { - Debug.assert(nodeIsSynthesized(specifier) && specifier.text === specifierText, `Expected sourceFile.imports[${jsxImportIndex}] to be the synthesized JSX runtime import`); - } - return specifier; - } - function getImportHelpersImportSpecifier(file) { - Debug.assert(compilerOptions.importHelpers, "Expected importHelpers to be enabled"); - const specifier = file.imports[0]; - Debug.assert(specifier && nodeIsSynthesized(specifier) && specifier.text === "tslib", `Expected sourceFile.imports[0] to be the synthesized tslib import`); - return specifier; - } -} -function isNotAccessor(declaration) { - return !isAccessor(declaration); -} -function isNotOverload(declaration) { - return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; -} -function isDeclarationNameOrImportPropertyName(name) { - switch (name.parent.kind) { - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - return isIdentifier(name) || name.kind === 11 /* StringLiteral */; - default: - return isDeclarationName(name); - } -} -var JsxNames; -((JsxNames2) => { - JsxNames2.JSX = "JSX"; - JsxNames2.IntrinsicElements = "IntrinsicElements"; - JsxNames2.ElementClass = "ElementClass"; - JsxNames2.ElementAttributesPropertyNameContainer = "ElementAttributesProperty"; - JsxNames2.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute"; - JsxNames2.Element = "Element"; - JsxNames2.ElementType = "ElementType"; - JsxNames2.IntrinsicAttributes = "IntrinsicAttributes"; - JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes"; - JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes"; -})(JsxNames || (JsxNames = {})); -var ReactNames; -((ReactNames2) => { - ReactNames2.Fragment = "Fragment"; -})(ReactNames || (ReactNames = {})); -function getIterationTypesKeyFromIterationTypeKind(typeKind) { - switch (typeKind) { - case 0 /* Yield */: - return "yieldType"; - case 1 /* Return */: - return "returnType"; - case 2 /* Next */: - return "nextType"; - } -} -function signatureHasRestParameter(s) { - return !!(s.flags & 1 /* HasRestParameter */); -} -function signatureHasLiteralTypes(s) { - return !!(s.flags & 2 /* HasLiteralTypes */); -} -function createBasicNodeBuilderModuleSpecifierResolutionHost(host) { - return { - getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "", - getCurrentDirectory: () => host.getCurrentDirectory(), - getSymlinkCache: maybeBind(host, host.getSymlinkCache), - getPackageJsonInfoCache: () => { - var _a; - return (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host); - }, - useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), - redirectTargetsMap: host.redirectTargetsMap, - getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName), - isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName), - fileExists: (fileName) => host.fileExists(fileName), - getFileIncludeReasons: () => host.getFileIncludeReasons(), - readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0, - getDefaultResolutionModeForFile: (file) => host.getDefaultResolutionModeForFile(file), - getModeForResolutionAtIndex: (file, index) => host.getModeForResolutionAtIndex(file, index), - getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation) - }; -} -var SymbolTrackerImpl = class _SymbolTrackerImpl { - constructor(context, tracker, moduleResolverHost) { - this.moduleResolverHost = void 0; - this.inner = void 0; - this.disableTrackSymbol = false; - var _a; - while (tracker instanceof _SymbolTrackerImpl) { - tracker = tracker.inner; - } - this.inner = tracker; - this.moduleResolverHost = moduleResolverHost; - this.context = context; - this.canTrackSymbol = !!((_a = this.inner) == null ? void 0 : _a.trackSymbol); - } - trackSymbol(symbol, enclosingDeclaration, meaning) { - var _a, _b; - if (((_a = this.inner) == null ? void 0 : _a.trackSymbol) && !this.disableTrackSymbol) { - if (this.inner.trackSymbol(symbol, enclosingDeclaration, meaning)) { - this.onDiagnosticReported(); - return true; - } - if (!(symbol.flags & 262144 /* TypeParameter */)) ((_b = this.context).trackedSymbols ?? (_b.trackedSymbols = [])).push([symbol, enclosingDeclaration, meaning]); - } - return false; - } - reportInaccessibleThisError() { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportInaccessibleThisError) { - this.onDiagnosticReported(); - this.inner.reportInaccessibleThisError(); - } - } - reportPrivateInBaseOfClassExpression(propertyName) { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportPrivateInBaseOfClassExpression) { - this.onDiagnosticReported(); - this.inner.reportPrivateInBaseOfClassExpression(propertyName); - } - } - reportInaccessibleUniqueSymbolError() { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportInaccessibleUniqueSymbolError) { - this.onDiagnosticReported(); - this.inner.reportInaccessibleUniqueSymbolError(); - } - } - reportCyclicStructureError() { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportCyclicStructureError) { - this.onDiagnosticReported(); - this.inner.reportCyclicStructureError(); - } - } - reportLikelyUnsafeImportRequiredError(specifier) { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportLikelyUnsafeImportRequiredError) { - this.onDiagnosticReported(); - this.inner.reportLikelyUnsafeImportRequiredError(specifier); - } - } - reportTruncationError() { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportTruncationError) { - this.onDiagnosticReported(); - this.inner.reportTruncationError(); - } - } - reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol) { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportNonlocalAugmentation) { - this.onDiagnosticReported(); - this.inner.reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol); - } - } - reportNonSerializableProperty(propertyName) { - var _a; - if ((_a = this.inner) == null ? void 0 : _a.reportNonSerializableProperty) { - this.onDiagnosticReported(); - this.inner.reportNonSerializableProperty(propertyName); - } - } - onDiagnosticReported() { - this.context.reportedDiagnostic = true; - } - reportInferenceFallback(node) { - var _a; - if (((_a = this.inner) == null ? void 0 : _a.reportInferenceFallback) && !this.context.suppressReportInferenceFallback) { - this.onDiagnosticReported(); - this.inner.reportInferenceFallback(node); - } - } - pushErrorFallbackNode(node) { - var _a, _b; - return (_b = (_a = this.inner) == null ? void 0 : _a.pushErrorFallbackNode) == null ? void 0 : _b.call(_a, node); - } - popErrorFallbackNode() { - var _a, _b; - return (_b = (_a = this.inner) == null ? void 0 : _a.popErrorFallbackNode) == null ? void 0 : _b.call(_a); - } -}; - -// src/compiler/visitorPublic.ts -function visitNode(node, visitor, test, lift) { - if (node === void 0) { - return node; - } - const visited = visitor(node); - let visitedNode; - if (visited === void 0) { - return void 0; - } else if (isArray(visited)) { - visitedNode = (lift || extractSingleNode)(visited); - } else { - visitedNode = visited; - } - Debug.assertNode(visitedNode, test); - return visitedNode; -} -function visitNodes2(nodes, visitor, test, start, count) { - if (nodes === void 0) { - return nodes; - } - const length2 = nodes.length; - if (start === void 0 || start < 0) { - start = 0; - } - if (count === void 0 || count > length2 - start) { - count = length2 - start; - } - let hasTrailingComma; - let pos = -1; - let end = -1; - if (start > 0 || count < length2) { - hasTrailingComma = nodes.hasTrailingComma && start + count === length2; - } else { - pos = nodes.pos; - end = nodes.end; - hasTrailingComma = nodes.hasTrailingComma; - } - const updated = visitArrayWorker(nodes, visitor, test, start, count); - if (updated !== nodes) { - const updatedArray = factory.createNodeArray(updated, hasTrailingComma); - setTextRangePosEnd(updatedArray, pos, end); - return updatedArray; - } - return nodes; -} -function visitArray(nodes, visitor, test, start, count) { - if (nodes === void 0) { - return nodes; - } - const length2 = nodes.length; - if (start === void 0 || start < 0) { - start = 0; - } - if (count === void 0 || count > length2 - start) { - count = length2 - start; - } - return visitArrayWorker(nodes, visitor, test, start, count); -} -function visitArrayWorker(nodes, visitor, test, start, count) { - let updated; - const length2 = nodes.length; - if (start > 0 || count < length2) { - updated = []; - } - for (let i = 0; i < count; i++) { - const node = nodes[i + start]; - const visited = node !== void 0 ? visitor ? visitor(node) : node : void 0; - if (updated !== void 0 || visited === void 0 || visited !== node) { - if (updated === void 0) { - updated = nodes.slice(0, i); - Debug.assertEachNode(updated, test); - } - if (visited) { - if (isArray(visited)) { - for (const visitedNode of visited) { - Debug.assertNode(visitedNode, test); - updated.push(visitedNode); - } - } else { - Debug.assertNode(visited, test); - updated.push(visited); - } - } - } - } - if (updated) { - return updated; - } - Debug.assertEachNode(nodes, test); - return nodes; -} -function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor = visitNodes2) { - context.startLexicalEnvironment(); - statements = nodesVisitor(statements, visitor, isStatement, start); - if (ensureUseStrict) statements = context.factory.ensureUseStrict(statements); - return factory.mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); -} -function visitParameterList(nodes, visitor, context, nodesVisitor = visitNodes2) { - let updated; - context.startLexicalEnvironment(); - if (nodes) { - context.setLexicalEnvironmentFlags(1 /* InParameters */, true); - updated = nodesVisitor(nodes, visitor, isParameter); - if (context.getLexicalEnvironmentFlags() & 2 /* VariablesHoistedInParameters */ && getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) { - updated = addDefaultValueAssignmentsIfNeeded(updated, context); - } - context.setLexicalEnvironmentFlags(1 /* InParameters */, false); - } - context.suspendLexicalEnvironment(); - return updated; -} -function addDefaultValueAssignmentsIfNeeded(parameters, context) { - let result; - for (let i = 0; i < parameters.length; i++) { - const parameter = parameters[i]; - const updated = addDefaultValueAssignmentIfNeeded(parameter, context); - if (result || updated !== parameter) { - if (!result) result = parameters.slice(0, i); - result[i] = updated; - } - } - if (result) { - return setTextRange(context.factory.createNodeArray(result, parameters.hasTrailingComma), parameters); - } - return parameters; -} -function addDefaultValueAssignmentIfNeeded(parameter, context) { - return parameter.dotDotDotToken ? parameter : isBindingPattern(parameter.name) ? addDefaultValueAssignmentForBindingPattern(parameter, context) : parameter.initializer ? addDefaultValueAssignmentForInitializer(parameter, parameter.name, parameter.initializer, context) : parameter; -} -function addDefaultValueAssignmentForBindingPattern(parameter, context) { - const { factory: factory2 } = context; - context.addInitializationStatement( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - parameter.name, - /*exclamationToken*/ - void 0, - parameter.type, - parameter.initializer ? factory2.createConditionalExpression( - factory2.createStrictEquality( - factory2.getGeneratedNameForNode(parameter), - factory2.createVoidZero() - ), - /*questionToken*/ - void 0, - parameter.initializer, - /*colonToken*/ - void 0, - factory2.getGeneratedNameForNode(parameter) - ) : factory2.getGeneratedNameForNode(parameter) - ) - ]) - ) - ); - return factory2.updateParameterDeclaration( - parameter, - parameter.modifiers, - parameter.dotDotDotToken, - factory2.getGeneratedNameForNode(parameter), - parameter.questionToken, - parameter.type, - /*initializer*/ - void 0 - ); -} -function addDefaultValueAssignmentForInitializer(parameter, name, initializer, context) { - const factory2 = context.factory; - context.addInitializationStatement( - factory2.createIfStatement( - factory2.createTypeCheck(factory2.cloneNode(name), "undefined"), - setEmitFlags( - setTextRange( - factory2.createBlock([ - factory2.createExpressionStatement( - setEmitFlags( - setTextRange( - factory2.createAssignment( - setEmitFlags(factory2.cloneNode(name), 96 /* NoSourceMap */), - setEmitFlags(initializer, 96 /* NoSourceMap */ | getEmitFlags(initializer) | 3072 /* NoComments */) - ), - parameter - ), - 3072 /* NoComments */ - ) - ) - ]), - parameter - ), - 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */ - ) - ) - ); - return factory2.updateParameterDeclaration( - parameter, - parameter.modifiers, - parameter.dotDotDotToken, - parameter.name, - parameter.questionToken, - parameter.type, - /*initializer*/ - void 0 - ); -} -function visitFunctionBody(node, visitor, context, nodeVisitor = visitNode) { - context.resumeLexicalEnvironment(); - const updated = nodeVisitor(node, visitor, isConciseBody); - const declarations = context.endLexicalEnvironment(); - if (some(declarations)) { - if (!updated) { - return context.factory.createBlock(declarations); - } - const block = context.factory.converters.convertToFunctionBlock(updated); - const statements = factory.mergeLexicalEnvironment(block.statements, declarations); - return context.factory.updateBlock(block, statements); - } - return updated; -} -function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) { - context.startBlockScope(); - const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock); - Debug.assert(updated); - const declarations = context.endBlockScope(); - if (some(declarations)) { - if (isBlock(updated)) { - declarations.push(...updated.statements); - return context.factory.updateBlock(updated, declarations); - } - declarations.push(updated); - return context.factory.createBlock(declarations); - } - return updated; -} -function visitCommaListElements(elements, visitor, discardVisitor = visitor) { - if (discardVisitor === visitor || elements.length <= 1) { - return visitNodes2(elements, visitor, isExpression); - } - let i = 0; - const length2 = elements.length; - return visitNodes2(elements, (node) => { - const discarded = i < length2 - 1; - i++; - return discarded ? discardVisitor(node) : visitor(node); - }, isExpression); -} -function visitEachChild(node, visitor, context = nullTransformationContext, nodesVisitor = visitNodes2, tokenVisitor, nodeVisitor = visitNode) { - if (node === void 0) { - return void 0; - } - const fn = visitEachChildTable[node.kind]; - return fn === void 0 ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor); -} -var visitEachChildTable = { - [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateQualifiedName( - node, - Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), - Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) - ); - }, - [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateComputedPropertyName( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - // Signature elements - [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeParameterDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - nodeVisitor(node.constraint, visitor, isTypeNode), - nodeVisitor(node.default, visitor, isTypeNode) - ); - }, - [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateParameterDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, - Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression) - ); - }, - [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateDecorator( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - // Type elements - [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updatePropertySignature( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, - nodeVisitor(node.type, visitor, isTypeNode) - ); - }, - [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updatePropertyDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - // QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration - tokenVisitor ? nodeVisitor(node.questionToken ?? node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : node.questionToken ?? node.exclamationToken, - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression) - ); - }, - [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateMethodSignature( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameter), - nodeVisitor(node.type, visitor, isTypeNode) - ); - }, - [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateMethodDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateConstructorDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateGetAccessorDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateSetAccessorDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - context.startLexicalEnvironment(); - context.suspendLexicalEnvironment(); - return context.factory.updateClassStaticBlockDeclaration( - node, - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateCallSignature( - node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameter), - nodeVisitor(node.type, visitor, isTypeNode) - ); - }, - [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateConstructSignature( - node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameter), - nodeVisitor(node.type, visitor, isTypeNode) - ); - }, - [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateIndexSignature( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodesVisitor(node.parameters, visitor, isParameter), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - // Types - [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypePredicateNode( - node, - nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), - Debug.checkDefined(nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode)), - nodeVisitor(node.type, visitor, isTypeNode) - ); - }, - [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeReferenceNode( - node, - Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), - nodesVisitor(node.typeArguments, visitor, isTypeNode) - ); - }, - [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateFunctionTypeNode( - node, - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameter), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateConstructorTypeNode( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.parameters, visitor, isParameter), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeQueryNode( - node, - Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), - nodesVisitor(node.typeArguments, visitor, isTypeNode) - ); - }, - [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeLiteralNode( - node, - nodesVisitor(node.members, visitor, isTypeElement) - ); - }, - [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateArrayTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) - ); - }, - [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateTupleTypeNode( - node, - nodesVisitor(node.elements, visitor, isTypeNode) - ); - }, - [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateOptionalTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateRestTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateUnionTypeNode( - node, - nodesVisitor(node.types, visitor, isTypeNode) - ); - }, - [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateIntersectionTypeNode( - node, - nodesVisitor(node.types, visitor, isTypeNode) - ); - }, - [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateConditionalTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.extendsType, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.trueType, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) - ); - }, - [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateInferTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) - ); - }, - [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), - nodeVisitor(node.attributes, visitor, isImportAttributes), - nodeVisitor(node.qualifier, visitor, isEntityName), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - node.isTypeOf - ); - }, - [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportTypeAssertionContainer( - node, - Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), - node.multiLine - ); - }, - [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateNamedTupleMember( - node, - tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateParenthesizedType( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeOperatorNode( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateIndexedAccessTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) - ); - }, - [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateMappedTypeNode( - node, - tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, - Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)), - nodeVisitor(node.nameType, visitor, isTypeNode), - tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken) : node.questionToken, - nodeVisitor(node.type, visitor, isTypeNode), - nodesVisitor(node.members, visitor, isTypeElement) - ); - }, - [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateLiteralTypeNode( - node, - Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) - ); - }, - [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTemplateLiteralType( - node, - Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), - nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) - ); - }, - [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTemplateLiteralTypeSpan( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)) - ); - }, - // Binding patterns - [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateObjectBindingPattern( - node, - nodesVisitor(node.elements, visitor, isBindingElement) - ); - }, - [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateArrayBindingPattern( - node, - nodesVisitor(node.elements, visitor, isArrayBindingElement) - ); - }, - [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateBindingElement( - node, - tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, - nodeVisitor(node.propertyName, visitor, isPropertyName), - Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), - nodeVisitor(node.initializer, visitor, isExpression) - ); - }, - // Expression - [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateArrayLiteralExpression( - node, - nodesVisitor(node.elements, visitor, isExpression) - ); - }, - [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateObjectLiteralExpression( - node, - nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) - ); - }, - [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, - Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) - ) : context.factory.updatePropertyAccessExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) - ); - }, - [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return isElementAccessChain(node) ? context.factory.updateElementAccessChain( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, - Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) - ) : context.factory.updateElementAccessExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) - ); - }, - [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return isCallChain(node) ? context.factory.updateCallChain( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodesVisitor(node.arguments, visitor, isExpression) - ) : context.factory.updateCallExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodesVisitor(node.arguments, visitor, isExpression) - ); - }, - [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateNewExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - nodesVisitor(node.arguments, visitor, isExpression) - ); - }, - [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTaggedTemplateExpression( - node, - Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) - ); - }, - [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeAssertion( - node, - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateParenthesizedExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateFunctionExpression( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateArrowFunction( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - tokenVisitor ? Debug.checkDefined(nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken)) : node.equalsGreaterThanToken, - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateDeleteExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeOfExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateVoidExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateAwaitExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updatePrefixUnaryExpression( - node, - Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) - ); - }, - [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updatePostfixUnaryExpression( - node, - Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) - ); - }, - [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateBinaryExpression( - node, - Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), - tokenVisitor ? Debug.checkDefined(nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken)) : node.operatorToken, - Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) - ); - }, - [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateConditionalExpression( - node, - Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), - tokenVisitor ? Debug.checkDefined(nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken)) : node.questionToken, - Debug.checkDefined(nodeVisitor(node.whenTrue, visitor, isExpression)), - tokenVisitor ? Debug.checkDefined(nodeVisitor(node.colonToken, tokenVisitor, isColonToken)) : node.colonToken, - Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) - ); - }, - [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTemplateExpression( - node, - Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), - nodesVisitor(node.templateSpans, visitor, isTemplateSpan) - ); - }, - [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateYieldExpression( - node, - tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, - nodeVisitor(node.expression, visitor, isExpression) - ); - }, - [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateSpreadElement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateClassExpression( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isClassElement) - ); - }, - [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExpressionWithTypeArguments( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode) - ); - }, - [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateAsExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateSatisfiesExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return isOptionalChain(node) ? context.factory.updateNonNullChain( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ) : context.factory.updateNonNullExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateMetaProperty( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - // Misc - [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTemplateSpan( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)) - ); - }, - // Element - [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateBlock( - node, - nodesVisitor(node.statements, visitor, isStatement) - ); - }, - [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateVariableStatement( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) - ); - }, - [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExpressionStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateIfStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock)), - nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) - ); - }, - [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateDoStatement( - node, - visitIterationBody(node.statement, visitor, context, nodeVisitor), - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateWhileStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - visitIterationBody(node.statement, visitor, context, nodeVisitor) - ); - }, - [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateForStatement( - node, - nodeVisitor(node.initializer, visitor, isForInitializer), - nodeVisitor(node.condition, visitor, isExpression), - nodeVisitor(node.incrementor, visitor, isExpression), - visitIterationBody(node.statement, visitor, context, nodeVisitor) - ); - }, - [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateForInStatement( - node, - Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - visitIterationBody(node.statement, visitor, context, nodeVisitor) - ); - }, - [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateForOfStatement( - node, - tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, - Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - visitIterationBody(node.statement, visitor, context, nodeVisitor) - ); - }, - [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateContinueStatement( - node, - nodeVisitor(node.label, visitor, isIdentifier) - ); - }, - [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateBreakStatement( - node, - nodeVisitor(node.label, visitor, isIdentifier) - ); - }, - [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateReturnStatement( - node, - nodeVisitor(node.expression, visitor, isExpression) - ); - }, - [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateWithStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) - ); - }, - [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateSwitchStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) - ); - }, - [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateLabeledStatement( - node, - Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), - Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) - ); - }, - [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateThrowStatement( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTryStatement( - node, - Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), - nodeVisitor(node.catchClause, visitor, isCatchClause), - nodeVisitor(node.finallyBlock, visitor, isBlock) - ); - }, - [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateVariableDeclaration( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), - tokenVisitor ? nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken) : node.exclamationToken, - nodeVisitor(node.type, visitor, isTypeNode), - nodeVisitor(node.initializer, visitor, isExpression) - ); - }, - [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateVariableDeclarationList( - node, - nodesVisitor(node.declarations, visitor, isVariableDeclaration) - ); - }, - [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { - return context.factory.updateFunctionDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifier), - tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - visitParameterList(node.parameters, visitor, context, nodesVisitor), - nodeVisitor(node.type, visitor, isTypeNode), - visitFunctionBody(node.body, visitor, context, nodeVisitor) - ); - }, - [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateClassDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.name, visitor, isIdentifier), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isClassElement) - ); - }, - [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateInterfaceDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - nodesVisitor(node.heritageClauses, visitor, isHeritageClause), - nodesVisitor(node.members, visitor, isTypeElement) - ); - }, - [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateTypeAliasDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), - Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) - ); - }, - [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateEnumDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - nodesVisitor(node.members, visitor, isEnumMember) - ); - }, - [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateModuleDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleName)), - nodeVisitor(node.body, visitor, isModuleBody) - ); - }, - [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateModuleBlock( - node, - nodesVisitor(node.statements, visitor, isStatement) - ); - }, - [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateCaseBlock( - node, - nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) - ); - }, - [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateNamespaceExportDeclaration( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportEqualsDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - node.isTypeOnly, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) - ); - }, - [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - nodeVisitor(node.importClause, visitor, isImportClause), - Debug.checkDefined(nodeVisitor(node.moduleSpecifier, visitor, isExpression)), - nodeVisitor(node.attributes, visitor, isImportAttributes) - ); - }, - [300 /* ImportAttributes */]: function visitEachChildOfImportAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateImportAttributes( - node, - nodesVisitor(node.elements, visitor, isImportAttribute), - node.multiLine - ); - }, - [301 /* ImportAttribute */]: function visitEachChildOfImportAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportAttribute( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isImportAttributeName)), - Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) - ); - }, - [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportClause( - node, - node.isTypeOnly, - nodeVisitor(node.name, visitor, isIdentifier), - nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) - ); - }, - [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateNamespaceImport( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateNamespaceExport( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateNamedImports( - node, - nodesVisitor(node.elements, visitor, isImportSpecifier) - ); - }, - [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateImportSpecifier( - node, - node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isModuleExportName), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExportAssignment( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExportDeclaration( - node, - nodesVisitor(node.modifiers, visitor, isModifierLike), - node.isTypeOnly, - nodeVisitor(node.exportClause, visitor, isNamedExportBindings), - nodeVisitor(node.moduleSpecifier, visitor, isExpression), - nodeVisitor(node.attributes, visitor, isImportAttributes) - ); - }, - [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateNamedExports( - node, - nodesVisitor(node.elements, visitor, isExportSpecifier) - ); - }, - [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExportSpecifier( - node, - node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isModuleExportName), - Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleExportName)) - ); - }, - // Module references - [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateExternalModuleReference( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - // JSX - [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxElement( - node, - Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), - nodesVisitor(node.children, visitor, isJsxChild), - Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) - ); - }, - [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxSelfClosingElement( - node, - Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) - ); - }, - [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxOpeningElement( - node, - Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), - nodesVisitor(node.typeArguments, visitor, isTypeNode), - Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) - ); - }, - [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxClosingElement( - node, - Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) - ); - }, - [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxNamespacedName( - node, - Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) - ); - }, - [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxFragment( - node, - Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), - nodesVisitor(node.children, visitor, isJsxChild), - Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) - ); - }, - [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxAttribute( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), - nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) - ); - }, - [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxAttributes( - node, - nodesVisitor(node.properties, visitor, isJsxAttributeLike) - ); - }, - [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxSpreadAttribute( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateJsxExpression( - node, - nodeVisitor(node.expression, visitor, isExpression) - ); - }, - // Clauses - [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateCaseClause( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), - nodesVisitor(node.statements, visitor, isStatement) - ); - }, - [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateDefaultClause( - node, - nodesVisitor(node.statements, visitor, isStatement) - ); - }, - [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateHeritageClause( - node, - nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) - ); - }, - [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateCatchClause( - node, - nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), - Debug.checkDefined(nodeVisitor(node.block, visitor, isBlock)) - ); - }, - // Property assignments - [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updatePropertyAssignment( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) - ); - }, - [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateShorthandPropertyAssignment( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), - nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) - ); - }, - [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateSpreadAssignment( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - // Enum - [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updateEnumMember( - node, - Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), - nodeVisitor(node.initializer, visitor, isExpression) - ); - }, - // Top-level nodes - [307 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateSourceFile( - node, - visitLexicalEnvironment(node.statements, visitor, context) - ); - }, - // Transformation nodes - [355 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { - return context.factory.updatePartiallyEmittedExpression( - node, - Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) - ); - }, - [356 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { - return context.factory.updateCommaListExpression( - node, - nodesVisitor(node.elements, visitor, isExpression) - ); - } -}; -function extractSingleNode(nodes) { - Debug.assert(nodes.length <= 1, "Too many nodes written to output."); - return singleOrUndefined(nodes); -} - -// src/compiler/sourcemap.ts -function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath, generatorOptions) { - var { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer; - var rawSources = []; - var sources = []; - var sourceToSourceIndexMap = /* @__PURE__ */ new Map(); - var sourcesContent; - var names = []; - var nameToNameIndexMap; - var mappingCharCodes = []; - var mappings = ""; - var lastGeneratedLine = 0; - var lastGeneratedCharacter = 0; - var lastSourceIndex = 0; - var lastSourceLine = 0; - var lastSourceCharacter = 0; - var lastNameIndex = 0; - var hasLast = false; - var pendingGeneratedLine = 0; - var pendingGeneratedCharacter = 0; - var pendingSourceIndex = 0; - var pendingSourceLine = 0; - var pendingSourceCharacter = 0; - var pendingNameIndex = 0; - var hasPending = false; - var hasPendingSource = false; - var hasPendingName = false; - return { - getSources: () => rawSources, - addSource, - setSourceContent, - addName, - addMapping, - appendSourceMap, - toJSON, - toString: () => JSON.stringify(toJSON()) - }; - function addSource(fileName) { - enter(); - const source = getRelativePathToDirectoryOrUrl( - sourcesDirectoryPath, - fileName, - host.getCurrentDirectory(), - host.getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - true - ); - let sourceIndex = sourceToSourceIndexMap.get(source); - if (sourceIndex === void 0) { - sourceIndex = sources.length; - sources.push(source); - rawSources.push(fileName); - sourceToSourceIndexMap.set(source, sourceIndex); - } - exit(); - return sourceIndex; - } - function setSourceContent(sourceIndex, content) { - enter(); - if (content !== null) { - if (!sourcesContent) sourcesContent = []; - while (sourcesContent.length < sourceIndex) { - sourcesContent.push(null); - } - sourcesContent[sourceIndex] = content; - } - exit(); - } - function addName(name) { - enter(); - if (!nameToNameIndexMap) nameToNameIndexMap = /* @__PURE__ */ new Map(); - let nameIndex = nameToNameIndexMap.get(name); - if (nameIndex === void 0) { - nameIndex = names.length; - names.push(name); - nameToNameIndexMap.set(name, nameIndex); - } - exit(); - return nameIndex; - } - function isNewGeneratedPosition(generatedLine, generatedCharacter) { - return !hasPending || pendingGeneratedLine !== generatedLine || pendingGeneratedCharacter !== generatedCharacter; - } - function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) { - return sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0 && pendingSourceIndex === sourceIndex && (pendingSourceLine > sourceLine || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter); - } - function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) { - Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack"); - Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative"); - Debug.assert(sourceIndex === void 0 || sourceIndex >= 0, "sourceIndex cannot be negative"); - Debug.assert(sourceLine === void 0 || sourceLine >= 0, "sourceLine cannot be negative"); - Debug.assert(sourceCharacter === void 0 || sourceCharacter >= 0, "sourceCharacter cannot be negative"); - enter(); - if (isNewGeneratedPosition(generatedLine, generatedCharacter) || isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter)) { - commitPendingMapping(); - pendingGeneratedLine = generatedLine; - pendingGeneratedCharacter = generatedCharacter; - hasPendingSource = false; - hasPendingName = false; - hasPending = true; - } - if (sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0) { - pendingSourceIndex = sourceIndex; - pendingSourceLine = sourceLine; - pendingSourceCharacter = sourceCharacter; - hasPendingSource = true; - if (nameIndex !== void 0) { - pendingNameIndex = nameIndex; - hasPendingName = true; - } - } - exit(); - } - function appendSourceMap(generatedLine, generatedCharacter, map2, sourceMapPath, start, end) { - Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack"); - Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative"); - enter(); - const sourceIndexToNewSourceIndexMap = []; - let nameIndexToNewNameIndexMap; - const mappingIterator = decodeMappings(map2.mappings); - for (const raw of mappingIterator) { - if (end && (raw.generatedLine > end.line || raw.generatedLine === end.line && raw.generatedCharacter > end.character)) { - break; - } - if (start && (raw.generatedLine < start.line || start.line === raw.generatedLine && raw.generatedCharacter < start.character)) { - continue; - } - let newSourceIndex; - let newSourceLine; - let newSourceCharacter; - let newNameIndex; - if (raw.sourceIndex !== void 0) { - newSourceIndex = sourceIndexToNewSourceIndexMap[raw.sourceIndex]; - if (newSourceIndex === void 0) { - const rawPath = map2.sources[raw.sourceIndex]; - const relativePath = map2.sourceRoot ? combinePaths(map2.sourceRoot, rawPath) : rawPath; - const combinedPath = combinePaths(getDirectoryPath(sourceMapPath), relativePath); - sourceIndexToNewSourceIndexMap[raw.sourceIndex] = newSourceIndex = addSource(combinedPath); - if (map2.sourcesContent && typeof map2.sourcesContent[raw.sourceIndex] === "string") { - setSourceContent(newSourceIndex, map2.sourcesContent[raw.sourceIndex]); - } - } - newSourceLine = raw.sourceLine; - newSourceCharacter = raw.sourceCharacter; - if (map2.names && raw.nameIndex !== void 0) { - if (!nameIndexToNewNameIndexMap) nameIndexToNewNameIndexMap = []; - newNameIndex = nameIndexToNewNameIndexMap[raw.nameIndex]; - if (newNameIndex === void 0) { - nameIndexToNewNameIndexMap[raw.nameIndex] = newNameIndex = addName(map2.names[raw.nameIndex]); - } - } - } - const rawGeneratedLine = raw.generatedLine - (start ? start.line : 0); - const newGeneratedLine = rawGeneratedLine + generatedLine; - const rawGeneratedCharacter = start && start.line === raw.generatedLine ? raw.generatedCharacter - start.character : raw.generatedCharacter; - const newGeneratedCharacter = rawGeneratedLine === 0 ? rawGeneratedCharacter + generatedCharacter : rawGeneratedCharacter; - addMapping(newGeneratedLine, newGeneratedCharacter, newSourceIndex, newSourceLine, newSourceCharacter, newNameIndex); - } - exit(); - } - function shouldCommitMapping() { - return !hasLast || lastGeneratedLine !== pendingGeneratedLine || lastGeneratedCharacter !== pendingGeneratedCharacter || lastSourceIndex !== pendingSourceIndex || lastSourceLine !== pendingSourceLine || lastSourceCharacter !== pendingSourceCharacter || lastNameIndex !== pendingNameIndex; - } - function appendMappingCharCode(charCode) { - mappingCharCodes.push(charCode); - if (mappingCharCodes.length >= 1024) { - flushMappingBuffer(); - } - } - function commitPendingMapping() { - if (!hasPending || !shouldCommitMapping()) { - return; - } - enter(); - if (lastGeneratedLine < pendingGeneratedLine) { - do { - appendMappingCharCode(59 /* semicolon */); - lastGeneratedLine++; - } while (lastGeneratedLine < pendingGeneratedLine); - lastGeneratedCharacter = 0; - } else { - Debug.assertEqual(lastGeneratedLine, pendingGeneratedLine, "generatedLine cannot backtrack"); - if (hasLast) { - appendMappingCharCode(44 /* comma */); - } - } - appendBase64VLQ(pendingGeneratedCharacter - lastGeneratedCharacter); - lastGeneratedCharacter = pendingGeneratedCharacter; - if (hasPendingSource) { - appendBase64VLQ(pendingSourceIndex - lastSourceIndex); - lastSourceIndex = pendingSourceIndex; - appendBase64VLQ(pendingSourceLine - lastSourceLine); - lastSourceLine = pendingSourceLine; - appendBase64VLQ(pendingSourceCharacter - lastSourceCharacter); - lastSourceCharacter = pendingSourceCharacter; - if (hasPendingName) { - appendBase64VLQ(pendingNameIndex - lastNameIndex); - lastNameIndex = pendingNameIndex; - } - } - hasLast = true; - exit(); - } - function flushMappingBuffer() { - if (mappingCharCodes.length > 0) { - mappings += String.fromCharCode.apply(void 0, mappingCharCodes); - mappingCharCodes.length = 0; - } - } - function toJSON() { - commitPendingMapping(); - flushMappingBuffer(); - return { - version: 3, - file, - sourceRoot, - sources, - names, - mappings, - sourcesContent - }; - } - function appendBase64VLQ(inValue) { - if (inValue < 0) { - inValue = (-inValue << 1) + 1; - } else { - inValue = inValue << 1; - } - do { - let currentDigit = inValue & 31; - inValue = inValue >> 5; - if (inValue > 0) { - currentDigit = currentDigit | 32; - } - appendMappingCharCode(base64FormatEncode(currentDigit)); - } while (inValue > 0); - } -} -var sourceMapCommentRegExpDontCareLineStart = /\/\/[@#] source[M]appingURL=(.+)\r?\n?$/; -var sourceMapCommentRegExp = /^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/; -var whitespaceOrMapCommentRegExp = /^\s*(\/\/[@#] .*)?$/; -function decodeMappings(mappings) { - let done = false; - let pos = 0; - let generatedLine = 0; - let generatedCharacter = 0; - let sourceIndex = 0; - let sourceLine = 0; - let sourceCharacter = 0; - let nameIndex = 0; - let error; - return { - get pos() { - return pos; - }, - get error() { - return error; - }, - get state() { - return captureMapping( - /*hasSource*/ - true, - /*hasName*/ - true - ); - }, - next() { - while (!done && pos < mappings.length) { - const ch = mappings.charCodeAt(pos); - if (ch === 59 /* semicolon */) { - generatedLine++; - generatedCharacter = 0; - pos++; - continue; - } - if (ch === 44 /* comma */) { - pos++; - continue; - } - let hasSource = false; - let hasName = false; - generatedCharacter += base64VLQFormatDecode(); - if (hasReportedError()) return stopIterating(); - if (generatedCharacter < 0) return setErrorAndStopIterating("Invalid generatedCharacter found"); - if (!isSourceMappingSegmentEnd()) { - hasSource = true; - sourceIndex += base64VLQFormatDecode(); - if (hasReportedError()) return stopIterating(); - if (sourceIndex < 0) return setErrorAndStopIterating("Invalid sourceIndex found"); - if (isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Format: No entries after sourceIndex"); - sourceLine += base64VLQFormatDecode(); - if (hasReportedError()) return stopIterating(); - if (sourceLine < 0) return setErrorAndStopIterating("Invalid sourceLine found"); - if (isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Format: No entries after sourceLine"); - sourceCharacter += base64VLQFormatDecode(); - if (hasReportedError()) return stopIterating(); - if (sourceCharacter < 0) return setErrorAndStopIterating("Invalid sourceCharacter found"); - if (!isSourceMappingSegmentEnd()) { - hasName = true; - nameIndex += base64VLQFormatDecode(); - if (hasReportedError()) return stopIterating(); - if (nameIndex < 0) return setErrorAndStopIterating("Invalid nameIndex found"); - if (!isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Error Format: Entries after nameIndex"); - } - } - return { value: captureMapping(hasSource, hasName), done }; - } - return stopIterating(); - }, - [Symbol.iterator]() { - return this; - } - }; - function captureMapping(hasSource, hasName) { - return { - generatedLine, - generatedCharacter, - sourceIndex: hasSource ? sourceIndex : void 0, - sourceLine: hasSource ? sourceLine : void 0, - sourceCharacter: hasSource ? sourceCharacter : void 0, - nameIndex: hasName ? nameIndex : void 0 - }; - } - function stopIterating() { - done = true; - return { value: void 0, done: true }; - } - function setError(message) { - if (error === void 0) { - error = message; - } - } - function setErrorAndStopIterating(message) { - setError(message); - return stopIterating(); - } - function hasReportedError() { - return error !== void 0; - } - function isSourceMappingSegmentEnd() { - return pos === mappings.length || mappings.charCodeAt(pos) === 44 /* comma */ || mappings.charCodeAt(pos) === 59 /* semicolon */; - } - function base64VLQFormatDecode() { - let moreDigits = true; - let shiftCount = 0; - let value = 0; - for (; moreDigits; pos++) { - if (pos >= mappings.length) return setError("Error in decoding base64VLQFormatDecode, past the mapping string"), -1; - const currentByte = base64FormatDecode(mappings.charCodeAt(pos)); - if (currentByte === -1) return setError("Invalid character in VLQ"), -1; - moreDigits = (currentByte & 32) !== 0; - value = value | (currentByte & 31) << shiftCount; - shiftCount += 5; - } - if ((value & 1) === 0) { - value = value >> 1; - } else { - value = value >> 1; - value = -value; - } - return value; - } -} -function base64FormatEncode(value) { - return value >= 0 && value < 26 ? 65 /* A */ + value : value >= 26 && value < 52 ? 97 /* a */ + value - 26 : value >= 52 && value < 62 ? 48 /* _0 */ + value - 52 : value === 62 ? 43 /* plus */ : value === 63 ? 47 /* slash */ : Debug.fail(`${value}: not a base64 value`); -} -function base64FormatDecode(ch) { - return ch >= 65 /* A */ && ch <= 90 /* Z */ ? ch - 65 /* A */ : ch >= 97 /* a */ && ch <= 122 /* z */ ? ch - 97 /* a */ + 26 : ch >= 48 /* _0 */ && ch <= 57 /* _9 */ ? ch - 48 /* _0 */ + 52 : ch === 43 /* plus */ ? 62 : ch === 47 /* slash */ ? 63 : -1; -} - -// src/compiler/transformers/utilities.ts -function getOriginalNodeId(node) { - node = getOriginalNode(node); - return node ? getNodeId(node) : 0; -} -function containsDefaultReference(node) { - if (!node) return false; - if (!isNamedImports(node) && !isNamedExports(node)) return false; - return some(node.elements, isNamedDefaultReference); -} -function isNamedDefaultReference(e) { - return moduleExportNameIsDefault(e.propertyName || e.name); -} -function chainBundle(context, transformSourceFile) { - return transformSourceFileOrBundle; - function transformSourceFileOrBundle(node) { - return node.kind === 307 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); - } - function transformBundle(node) { - return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); - } -} -function getExportNeedsImportStarHelper(node) { - return !!getNamespaceDeclarationNode(node); -} -function getImportNeedsImportStarHelper(node) { - if (!!getNamespaceDeclarationNode(node)) { - return true; - } - const bindings = node.importClause && node.importClause.namedBindings; - if (!bindings) { - return false; - } - if (!isNamedImports(bindings)) return false; - let defaultRefCount = 0; - for (const binding of bindings.elements) { - if (isNamedDefaultReference(binding)) { - defaultRefCount++; - } - } - return defaultRefCount > 0 && defaultRefCount !== bindings.elements.length || !!(bindings.elements.length - defaultRefCount) && isDefaultImport(node); -} -function getImportNeedsImportDefaultHelper(node) { - return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); -} -function collectExternalModuleInfo(context, sourceFile) { - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const externalImports = []; - const exportSpecifiers = new IdentifierNameMultiMap(); - const exportedBindings = []; - const uniqueExports = /* @__PURE__ */ new Map(); - const exportedFunctions = /* @__PURE__ */ new Set(); - let exportedNames; - let hasExportDefault = false; - let exportEquals; - let hasExportStarsToExportValues = false; - let hasImportStar = false; - let hasImportDefault = false; - for (const node of sourceFile.statements) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - externalImports.push(node); - if (!hasImportStar && getImportNeedsImportStarHelper(node)) { - hasImportStar = true; - } - if (!hasImportDefault && getImportNeedsImportDefaultHelper(node)) { - hasImportDefault = true; - } - break; - case 271 /* ImportEqualsDeclaration */: - if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { - externalImports.push(node); - } - break; - case 278 /* ExportDeclaration */: - if (node.moduleSpecifier) { - if (!node.exportClause) { - externalImports.push(node); - hasExportStarsToExportValues = true; - } else { - externalImports.push(node); - if (isNamedExports(node.exportClause)) { - addExportedNamesForExportDeclaration(node); - hasImportDefault || (hasImportDefault = containsDefaultReference(node.exportClause)); - } else { - const name = node.exportClause.name; - const nameText = moduleExportNameTextUnescaped(name); - if (!uniqueExports.get(nameText)) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports.set(nameText, true); - exportedNames = append(exportedNames, name); - } - hasImportStar = true; - } - } - } else { - addExportedNamesForExportDeclaration(node); - } - break; - case 277 /* ExportAssignment */: - if (node.isExportEquals && !exportEquals) { - exportEquals = node; - } - break; - case 243 /* VariableStatement */: - if (hasSyntacticModifier(node, 32 /* Export */)) { - for (const decl of node.declarationList.declarations) { - exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); - } - } - break; - case 262 /* FunctionDeclaration */: - if (hasSyntacticModifier(node, 32 /* Export */)) { - addExportedFunctionDeclaration( - node, - /*name*/ - void 0, - hasSyntacticModifier(node, 2048 /* Default */) - ); - } - break; - case 263 /* ClassDeclaration */: - if (hasSyntacticModifier(node, 32 /* Export */)) { - if (hasSyntacticModifier(node, 2048 /* Default */)) { - if (!hasExportDefault) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node)); - hasExportDefault = true; - } - } else { - const name = node.name; - if (name && !uniqueExports.get(idText(name))) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports.set(idText(name), true); - exportedNames = append(exportedNames, name); - } - } - } - break; - } - } - const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(context.factory, context.getEmitHelperFactory(), sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault); - if (externalHelpersImportDeclaration) { - externalImports.unshift(externalHelpersImportDeclaration); - } - return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration }; - function addExportedNamesForExportDeclaration(node) { - for (const specifier of cast(node.exportClause, isNamedExports).elements) { - const specifierNameText = moduleExportNameTextUnescaped(specifier.name); - if (!uniqueExports.get(specifierNameText)) { - const name = specifier.propertyName || specifier.name; - if (name.kind !== 11 /* StringLiteral */) { - if (!node.moduleSpecifier) { - exportSpecifiers.add(name, specifier); - } - const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); - if (decl) { - if (decl.kind === 262 /* FunctionDeclaration */) { - addExportedFunctionDeclaration(decl, specifier.name, moduleExportNameIsDefault(specifier.name)); - continue; - } - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); - } - } - uniqueExports.set(specifierNameText, true); - exportedNames = append(exportedNames, specifier.name); - } - } - } - function addExportedFunctionDeclaration(node, name, isDefault) { - exportedFunctions.add(getOriginalNode(node, isFunctionDeclaration)); - if (isDefault) { - if (!hasExportDefault) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name ?? context.factory.getDeclarationName(node)); - hasExportDefault = true; - } - } else { - name ?? (name = node.name); - const nameText = moduleExportNameTextUnescaped(name); - if (!uniqueExports.get(nameText)) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports.set(nameText, true); - } - } - } -} -function collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings) { - if (isBindingPattern(decl.name)) { - for (const element of decl.name.elements) { - if (!isOmittedExpression(element)) { - exportedNames = collectExportedVariableInfo(element, uniqueExports, exportedNames, exportedBindings); - } - } - } else if (!isGeneratedIdentifier(decl.name)) { - const text = idText(decl.name); - if (!uniqueExports.get(text)) { - uniqueExports.set(text, true); - exportedNames = append(exportedNames, decl.name); - if (isLocalName(decl.name)) { - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), decl.name); - } - } - } - return exportedNames; -} -function multiMapSparseArrayAdd(map2, key, value) { - let values = map2[key]; - if (values) { - values.push(value); - } else { - map2[key] = values = [value]; - } - return values; -} -var IdentifierNameMap = class _IdentifierNameMap { - constructor() { - this._map = /* @__PURE__ */ new Map(); - } - get size() { - return this._map.size; - } - has(key) { - return this._map.has(_IdentifierNameMap.toKey(key)); - } - get(key) { - return this._map.get(_IdentifierNameMap.toKey(key)); - } - set(key, value) { - this._map.set(_IdentifierNameMap.toKey(key), value); - return this; - } - delete(key) { - var _a; - return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; - } - clear() { - this._map.clear(); - } - values() { - return this._map.values(); - } - static toKey(name) { - if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { - const autoGenerate = name.emitNode.autoGenerate; - if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { - const node = getNodeForGeneratedName(name); - const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; - return formatGeneratedName( - /*privateName*/ - false, - autoGenerate.prefix, - baseName, - autoGenerate.suffix, - _IdentifierNameMap.toKey - ); - } else { - const baseName = `(auto@${autoGenerate.id})`; - return formatGeneratedName( - /*privateName*/ - false, - autoGenerate.prefix, - baseName, - autoGenerate.suffix, - _IdentifierNameMap.toKey - ); - } - } - if (isPrivateIdentifier(name)) { - return idText(name).slice(1); - } - return idText(name); - } -}; -var IdentifierNameMultiMap = class extends IdentifierNameMap { - add(key, value) { - let values = this.get(key); - if (values) { - values.push(value); - } else { - this.set(key, values = [value]); - } - return values; - } - remove(key, value) { - const values = this.get(key); - if (values) { - unorderedRemoveItem(values, value); - if (!values.length) { - this.delete(key); - } - } - } -}; -function isSimpleCopiableExpression(expression) { - return isStringLiteralLike(expression) || expression.kind === 9 /* NumericLiteral */ || isKeyword(expression.kind) || isIdentifier(expression); -} -function isSimpleInlineableExpression(expression) { - return !isIdentifier(expression) && isSimpleCopiableExpression(expression); -} -function isCompoundAssignment(kind) { - return kind >= 65 /* FirstCompoundAssignment */ && kind <= 79 /* LastCompoundAssignment */; -} -function getNonAssignmentOperatorForCompoundAssignment(kind) { - switch (kind) { - case 65 /* PlusEqualsToken */: - return 40 /* PlusToken */; - case 66 /* MinusEqualsToken */: - return 41 /* MinusToken */; - case 67 /* AsteriskEqualsToken */: - return 42 /* AsteriskToken */; - case 68 /* AsteriskAsteriskEqualsToken */: - return 43 /* AsteriskAsteriskToken */; - case 69 /* SlashEqualsToken */: - return 44 /* SlashToken */; - case 70 /* PercentEqualsToken */: - return 45 /* PercentToken */; - case 71 /* LessThanLessThanEqualsToken */: - return 48 /* LessThanLessThanToken */; - case 72 /* GreaterThanGreaterThanEqualsToken */: - return 49 /* GreaterThanGreaterThanToken */; - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - return 50 /* GreaterThanGreaterThanGreaterThanToken */; - case 74 /* AmpersandEqualsToken */: - return 51 /* AmpersandToken */; - case 75 /* BarEqualsToken */: - return 52 /* BarToken */; - case 79 /* CaretEqualsToken */: - return 53 /* CaretToken */; - case 76 /* BarBarEqualsToken */: - return 57 /* BarBarToken */; - case 77 /* AmpersandAmpersandEqualsToken */: - return 56 /* AmpersandAmpersandToken */; - case 78 /* QuestionQuestionEqualsToken */: - return 61 /* QuestionQuestionToken */; - } -} -function getSuperCallFromStatement(statement) { - if (!isExpressionStatement(statement)) { - return void 0; - } - const expression = skipParentheses(statement.expression); - return isSuperCall(expression) ? expression : void 0; -} -function findSuperStatementIndexPathWorker(statements, start, indices) { - for (let i = start; i < statements.length; i += 1) { - const statement = statements[i]; - if (getSuperCallFromStatement(statement)) { - indices.unshift(i); - return true; - } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { - indices.unshift(i); - return true; - } - } - return false; -} -function findSuperStatementIndexPath(statements, start) { - const indices = []; - findSuperStatementIndexPathWorker(statements, start, indices); - return indices; -} -function getProperties(node, requireInitializer, isStatic2) { - return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); -} -function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(element) { - return isStaticPropertyDeclaration(element) || isClassStaticBlockDeclaration(element); -} -function getStaticPropertiesAndClassStaticBlock(node) { - return filter(node.members, isStaticPropertyDeclarationOrClassStaticBlockDeclaration); -} -function isInitializedOrStaticProperty(member, requireInitializer, isStatic2) { - return isPropertyDeclaration(member) && (!!member.initializer || !requireInitializer) && hasStaticModifier(member) === isStatic2; -} -function isStaticPropertyDeclaration(member) { - return isPropertyDeclaration(member) && hasStaticModifier(member); -} -function isInitializedProperty(member) { - return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; -} -function isNonStaticMethodOrAccessorWithPrivateName(member) { - return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); -} -function getDecoratorsOfParameters(node) { - let decorators; - if (node) { - const parameters = node.parameters; - const firstParameterIsThis = parameters.length > 0 && parameterIsThisKeyword(parameters[0]); - const firstParameterOffset = firstParameterIsThis ? 1 : 0; - const numParameters = firstParameterIsThis ? parameters.length - 1 : parameters.length; - for (let i = 0; i < numParameters; i++) { - const parameter = parameters[i + firstParameterOffset]; - if (decorators || hasDecorators(parameter)) { - if (!decorators) { - decorators = new Array(numParameters); - } - decorators[i] = getDecorators(parameter); - } - } - } - return decorators; -} -function getAllDecoratorsOfClass(node, useLegacyDecorators) { - const decorators = getDecorators(node); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(getFirstConstructorWithBody(node)) : void 0; - if (!some(decorators) && !some(parameters)) { - return void 0; - } - return { - decorators, - parameters - }; -} -function getAllDecoratorsOfClassElement(member, parent, useLegacyDecorators) { - switch (member.kind) { - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - if (!useLegacyDecorators) { - return getAllDecoratorsOfMethod( - member, - /*useLegacyDecorators*/ - false - ); - } - return getAllDecoratorsOfAccessors( - member, - parent, - /*useLegacyDecorators*/ - true - ); - case 174 /* MethodDeclaration */: - return getAllDecoratorsOfMethod(member, useLegacyDecorators); - case 172 /* PropertyDeclaration */: - return getAllDecoratorsOfProperty(member); - default: - return void 0; - } -} -function getAllDecoratorsOfAccessors(accessor, parent, useLegacyDecorators) { - if (!accessor.body) { - return void 0; - } - const { firstAccessor, secondAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(parent.members, accessor); - const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0; - if (!firstAccessorWithDecorators || accessor !== firstAccessorWithDecorators) { - return void 0; - } - const decorators = getDecorators(firstAccessorWithDecorators); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(setAccessor) : void 0; - if (!some(decorators) && !some(parameters)) { - return void 0; - } - return { - decorators, - parameters, - getDecorators: getAccessor && getDecorators(getAccessor), - setDecorators: setAccessor && getDecorators(setAccessor) - }; -} -function getAllDecoratorsOfMethod(method, useLegacyDecorators) { - if (!method.body) { - return void 0; - } - const decorators = getDecorators(method); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(method) : void 0; - if (!some(decorators) && !some(parameters)) { - return void 0; - } - return { decorators, parameters }; -} -function getAllDecoratorsOfProperty(property) { - const decorators = getDecorators(property); - if (!some(decorators)) { - return void 0; - } - return { decorators }; -} -function walkUpLexicalEnvironments(env, cb) { - while (env) { - const result = cb(env); - if (result !== void 0) return result; - env = env.previous; - } -} -function newPrivateEnvironment(data) { - return { data }; -} -function getPrivateIdentifier(privateEnv, name) { - var _a, _b; - return isGeneratedPrivateIdentifier(name) ? (_a = privateEnv == null ? void 0 : privateEnv.generatedIdentifiers) == null ? void 0 : _a.get(getNodeForGeneratedName(name)) : (_b = privateEnv == null ? void 0 : privateEnv.identifiers) == null ? void 0 : _b.get(name.escapedText); -} -function setPrivateIdentifier(privateEnv, name, entry) { - if (isGeneratedPrivateIdentifier(name)) { - privateEnv.generatedIdentifiers ?? (privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map()); - privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), entry); - } else { - privateEnv.identifiers ?? (privateEnv.identifiers = /* @__PURE__ */ new Map()); - privateEnv.identifiers.set(name.escapedText, entry); - } -} -function accessPrivateIdentifier(env, name) { - return walkUpLexicalEnvironments(env, (env2) => getPrivateIdentifier(env2.privateEnv, name)); -} -function isSimpleParameter(node) { - return !node.initializer && isIdentifier(node.name); -} -function isSimpleParameterList(nodes) { - return every(nodes, isSimpleParameter); -} -function rewriteModuleSpecifier(node, compilerOptions) { - if (!node || !isStringLiteral(node) || !shouldRewriteModuleSpecifier(node.text, compilerOptions)) { - return node; - } - const updatedText = changeExtension(node.text, getOutputExtension(node.text, compilerOptions)); - return updatedText !== node.text ? setOriginalNode(setTextRange(factory.createStringLiteral(updatedText, node.singleQuote), node), node) : node; -} - -// src/compiler/transformers/destructuring.ts -function flattenDestructuringAssignment(node, visitor, context, level, needsValue, createAssignmentCallback) { - let location = node; - let value; - if (isDestructuringAssignment(node)) { - value = node.right; - while (isEmptyArrayLiteral(node.left) || isEmptyObjectLiteral(node.left)) { - if (isDestructuringAssignment(value)) { - location = node = value; - value = node.right; - } else { - return Debug.checkDefined(visitNode(value, visitor, isExpression)); - } - } - } - let expressions; - const flattenContext = { - context, - level, - downlevelIteration: !!context.getCompilerOptions().downlevelIteration, - hoistTempVariables: true, - emitExpression, - emitBindingOrAssignment, - createArrayBindingOrAssignmentPattern: (elements) => makeArrayAssignmentPattern(context.factory, elements), - createObjectBindingOrAssignmentPattern: (elements) => makeObjectAssignmentPattern(context.factory, elements), - createArrayBindingOrAssignmentElement: makeAssignmentElement, - visitor - }; - if (value) { - value = visitNode(value, visitor, isExpression); - Debug.assert(value); - if (isIdentifier(value) && bindingOrAssignmentElementAssignsToName(node, value.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node)) { - value = ensureIdentifier( - flattenContext, - value, - /*reuseIdentifierExpressions*/ - false, - location - ); - } else if (needsValue) { - value = ensureIdentifier( - flattenContext, - value, - /*reuseIdentifierExpressions*/ - true, - location - ); - } else if (nodeIsSynthesized(node)) { - location = value; - } - } - flattenBindingOrAssignmentElement( - flattenContext, - node, - value, - location, - /*skipInitializer*/ - isDestructuringAssignment(node) - ); - if (value && needsValue) { - if (!some(expressions)) { - return value; - } - expressions.push(value); - } - return context.factory.inlineExpressions(expressions) || context.factory.createOmittedExpression(); - function emitExpression(expression) { - expressions = append(expressions, expression); - } - function emitBindingOrAssignment(target, value2, location2, original) { - Debug.assertNode(target, createAssignmentCallback ? isIdentifier : isExpression); - const expression = createAssignmentCallback ? createAssignmentCallback(target, value2, location2) : setTextRange( - context.factory.createAssignment(Debug.checkDefined(visitNode(target, visitor, isExpression)), value2), - location2 - ); - expression.original = original; - emitExpression(expression); - } -} -function bindingOrAssignmentElementAssignsToName(element, escapedName) { - const target = getTargetOfBindingOrAssignmentElement(element); - if (isBindingOrAssignmentPattern(target)) { - return bindingOrAssignmentPatternAssignsToName(target, escapedName); - } else if (isIdentifier(target)) { - return target.escapedText === escapedName; - } - return false; -} -function bindingOrAssignmentPatternAssignsToName(pattern, escapedName) { - const elements = getElementsOfBindingOrAssignmentPattern(pattern); - for (const element of elements) { - if (bindingOrAssignmentElementAssignsToName(element, escapedName)) { - return true; - } - } - return false; -} -function bindingOrAssignmentElementContainsNonLiteralComputedName(element) { - const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element); - if (propertyName && isComputedPropertyName(propertyName) && !isLiteralExpression(propertyName.expression)) { - return true; - } - const target = getTargetOfBindingOrAssignmentElement(element); - return !!target && isBindingOrAssignmentPattern(target) && bindingOrAssignmentPatternContainsNonLiteralComputedName(target); -} -function bindingOrAssignmentPatternContainsNonLiteralComputedName(pattern) { - return !!forEach(getElementsOfBindingOrAssignmentPattern(pattern), bindingOrAssignmentElementContainsNonLiteralComputedName); -} -function flattenDestructuringBinding(node, visitor, context, level, rval, hoistTempVariables = false, skipInitializer) { - let pendingExpressions; - const pendingDeclarations = []; - const declarations = []; - const flattenContext = { - context, - level, - downlevelIteration: !!context.getCompilerOptions().downlevelIteration, - hoistTempVariables, - emitExpression, - emitBindingOrAssignment, - createArrayBindingOrAssignmentPattern: (elements) => makeArrayBindingPattern(context.factory, elements), - createObjectBindingOrAssignmentPattern: (elements) => makeObjectBindingPattern(context.factory, elements), - createArrayBindingOrAssignmentElement: (name) => makeBindingElement(context.factory, name), - visitor - }; - if (isVariableDeclaration(node)) { - let initializer = getInitializerOfBindingOrAssignmentElement(node); - if (initializer && (isIdentifier(initializer) && bindingOrAssignmentElementAssignsToName(node, initializer.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node))) { - initializer = ensureIdentifier( - flattenContext, - Debug.checkDefined(visitNode(initializer, flattenContext.visitor, isExpression)), - /*reuseIdentifierExpressions*/ - false, - initializer - ); - node = context.factory.updateVariableDeclaration( - node, - node.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ); - } - } - flattenBindingOrAssignmentElement(flattenContext, node, rval, node, skipInitializer); - if (pendingExpressions) { - const temp = context.factory.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - if (hoistTempVariables) { - const value = context.factory.inlineExpressions(pendingExpressions); - pendingExpressions = void 0; - emitBindingOrAssignment( - temp, - value, - /*location*/ - void 0, - /*original*/ - void 0 - ); - } else { - context.hoistVariableDeclaration(temp); - const pendingDeclaration = last(pendingDeclarations); - pendingDeclaration.pendingExpressions = append( - pendingDeclaration.pendingExpressions, - context.factory.createAssignment(temp, pendingDeclaration.value) - ); - addRange(pendingDeclaration.pendingExpressions, pendingExpressions); - pendingDeclaration.value = temp; - } - } - for (const { pendingExpressions: pendingExpressions2, name, value, location, original } of pendingDeclarations) { - const variable = context.factory.createVariableDeclaration( - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - pendingExpressions2 ? context.factory.inlineExpressions(append(pendingExpressions2, value)) : value - ); - variable.original = original; - setTextRange(variable, location); - declarations.push(variable); - } - return declarations; - function emitExpression(value) { - pendingExpressions = append(pendingExpressions, value); - } - function emitBindingOrAssignment(target, value, location, original) { - Debug.assertNode(target, isBindingName); - if (pendingExpressions) { - value = context.factory.inlineExpressions(append(pendingExpressions, value)); - pendingExpressions = void 0; - } - pendingDeclarations.push({ pendingExpressions, name: target, value, location, original }); - } -} -function flattenBindingOrAssignmentElement(flattenContext, element, value, location, skipInitializer) { - const bindingTarget = getTargetOfBindingOrAssignmentElement(element); - if (!skipInitializer) { - const initializer = visitNode(getInitializerOfBindingOrAssignmentElement(element), flattenContext.visitor, isExpression); - if (initializer) { - if (value) { - value = createDefaultValueCheck(flattenContext, value, initializer, location); - if (!isSimpleInlineableExpression(initializer) && isBindingOrAssignmentPattern(bindingTarget)) { - value = ensureIdentifier( - flattenContext, - value, - /*reuseIdentifierExpressions*/ - true, - location - ); - } - } else { - value = initializer; - } - } else if (!value) { - value = flattenContext.context.factory.createVoidZero(); - } - } - if (isObjectBindingOrAssignmentPattern(bindingTarget)) { - flattenObjectBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location); - } else if (isArrayBindingOrAssignmentPattern(bindingTarget)) { - flattenArrayBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location); - } else { - flattenContext.emitBindingOrAssignment( - bindingTarget, - value, - location, - /*original*/ - element - ); - } -} -function flattenObjectBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) { - const elements = getElementsOfBindingOrAssignmentPattern(pattern); - const numElements = elements.length; - if (numElements !== 1) { - const reuseIdentifierExpressions = !isDeclarationBindingElement(parent) || numElements !== 0; - value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location); - } - let bindingElements; - let computedTempVariables; - for (let i = 0; i < numElements; i++) { - const element = elements[i]; - if (!getRestIndicatorOfBindingOrAssignmentElement(element)) { - const propertyName = getPropertyNameOfBindingOrAssignmentElement(element); - if (flattenContext.level >= 1 /* ObjectRest */ && !(element.transformFlags & (32768 /* ContainsRestOrSpread */ | 65536 /* ContainsObjectRestOrSpread */)) && !(getTargetOfBindingOrAssignmentElement(element).transformFlags & (32768 /* ContainsRestOrSpread */ | 65536 /* ContainsObjectRestOrSpread */)) && !isComputedPropertyName(propertyName)) { - bindingElements = append(bindingElements, visitNode(element, flattenContext.visitor, isBindingOrAssignmentElement)); - } else { - if (bindingElements) { - flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); - bindingElements = void 0; - } - const rhsValue = createDestructuringPropertyAccess(flattenContext, value, propertyName); - if (isComputedPropertyName(propertyName)) { - computedTempVariables = append(computedTempVariables, rhsValue.argumentExpression); - } - flattenBindingOrAssignmentElement( - flattenContext, - element, - rhsValue, - /*location*/ - element - ); - } - } else if (i === numElements - 1) { - if (bindingElements) { - flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); - bindingElements = void 0; - } - const rhsValue = flattenContext.context.getEmitHelperFactory().createRestHelper(value, elements, computedTempVariables, pattern); - flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element); - } - } - if (bindingElements) { - flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); - } -} -function flattenArrayBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) { - const elements = getElementsOfBindingOrAssignmentPattern(pattern); - const numElements = elements.length; - if (flattenContext.level < 1 /* ObjectRest */ && flattenContext.downlevelIteration) { - value = ensureIdentifier( - flattenContext, - setTextRange( - flattenContext.context.getEmitHelperFactory().createReadHelper( - value, - numElements > 0 && getRestIndicatorOfBindingOrAssignmentElement(elements[numElements - 1]) ? void 0 : numElements - ), - location - ), - /*reuseIdentifierExpressions*/ - false, - location - ); - } else if (numElements !== 1 && (flattenContext.level < 1 /* ObjectRest */ || numElements === 0) || every(elements, isOmittedExpression)) { - const reuseIdentifierExpressions = !isDeclarationBindingElement(parent) || numElements !== 0; - value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location); - } - let bindingElements; - let restContainingElements; - for (let i = 0; i < numElements; i++) { - const element = elements[i]; - if (flattenContext.level >= 1 /* ObjectRest */) { - if (element.transformFlags & 65536 /* ContainsObjectRestOrSpread */ || flattenContext.hasTransformedPriorElement && !isSimpleBindingOrAssignmentElement(element)) { - flattenContext.hasTransformedPriorElement = true; - const temp = flattenContext.context.factory.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - if (flattenContext.hoistTempVariables) { - flattenContext.context.hoistVariableDeclaration(temp); - } - restContainingElements = append(restContainingElements, [temp, element]); - bindingElements = append(bindingElements, flattenContext.createArrayBindingOrAssignmentElement(temp)); - } else { - bindingElements = append(bindingElements, element); - } - } else if (isOmittedExpression(element)) { - continue; - } else if (!getRestIndicatorOfBindingOrAssignmentElement(element)) { - const rhsValue = flattenContext.context.factory.createElementAccessExpression(value, i); - flattenBindingOrAssignmentElement( - flattenContext, - element, - rhsValue, - /*location*/ - element - ); - } else if (i === numElements - 1) { - const rhsValue = flattenContext.context.factory.createArraySliceCall(value, i); - flattenBindingOrAssignmentElement( - flattenContext, - element, - rhsValue, - /*location*/ - element - ); - } - } - if (bindingElements) { - flattenContext.emitBindingOrAssignment(flattenContext.createArrayBindingOrAssignmentPattern(bindingElements), value, location, pattern); - } - if (restContainingElements) { - for (const [id, element] of restContainingElements) { - flattenBindingOrAssignmentElement(flattenContext, element, id, element); - } - } -} -function isSimpleBindingOrAssignmentElement(element) { - const target = getTargetOfBindingOrAssignmentElement(element); - if (!target || isOmittedExpression(target)) return true; - const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element); - if (propertyName && !isPropertyNameLiteral(propertyName)) return false; - const initializer = getInitializerOfBindingOrAssignmentElement(element); - if (initializer && !isSimpleInlineableExpression(initializer)) return false; - if (isBindingOrAssignmentPattern(target)) return every(getElementsOfBindingOrAssignmentPattern(target), isSimpleBindingOrAssignmentElement); - return isIdentifier(target); -} -function createDefaultValueCheck(flattenContext, value, defaultValue, location) { - value = ensureIdentifier( - flattenContext, - value, - /*reuseIdentifierExpressions*/ - true, - location - ); - return flattenContext.context.factory.createConditionalExpression( - flattenContext.context.factory.createTypeCheck(value, "undefined"), - /*questionToken*/ - void 0, - defaultValue, - /*colonToken*/ - void 0, - value - ); -} -function createDestructuringPropertyAccess(flattenContext, value, propertyName) { - const { factory: factory2 } = flattenContext.context; - if (isComputedPropertyName(propertyName)) { - const argumentExpression = ensureIdentifier( - flattenContext, - Debug.checkDefined(visitNode(propertyName.expression, flattenContext.visitor, isExpression)), - /*reuseIdentifierExpressions*/ - false, - /*location*/ - propertyName - ); - return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); - } else if (isStringOrNumericLiteralLike(propertyName) || isBigIntLiteral(propertyName)) { - const argumentExpression = factory2.cloneNode(propertyName); - return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); - } else { - const name = flattenContext.context.factory.createIdentifier(idText(propertyName)); - return flattenContext.context.factory.createPropertyAccessExpression(value, name); - } -} -function ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location) { - if (isIdentifier(value) && reuseIdentifierExpressions) { - return value; - } else { - const temp = flattenContext.context.factory.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - if (flattenContext.hoistTempVariables) { - flattenContext.context.hoistVariableDeclaration(temp); - flattenContext.emitExpression(setTextRange(flattenContext.context.factory.createAssignment(temp, value), location)); - } else { - flattenContext.emitBindingOrAssignment( - temp, - value, - location, - /*original*/ - void 0 - ); - } - return temp; - } -} -function makeArrayBindingPattern(factory2, elements) { - Debug.assertEachNode(elements, isArrayBindingElement); - return factory2.createArrayBindingPattern(elements); -} -function makeArrayAssignmentPattern(factory2, elements) { - Debug.assertEachNode(elements, isArrayBindingOrAssignmentElement); - return factory2.createArrayLiteralExpression(map(elements, factory2.converters.convertToArrayAssignmentElement)); -} -function makeObjectBindingPattern(factory2, elements) { - Debug.assertEachNode(elements, isBindingElement); - return factory2.createObjectBindingPattern(elements); -} -function makeObjectAssignmentPattern(factory2, elements) { - Debug.assertEachNode(elements, isObjectBindingOrAssignmentElement); - return factory2.createObjectLiteralExpression(map(elements, factory2.converters.convertToObjectAssignmentElement)); -} -function makeBindingElement(factory2, name) { - return factory2.createBindingElement( - /*dotDotDotToken*/ - void 0, - /*propertyName*/ - void 0, - name - ); -} -function makeAssignmentElement(name) { - return name; -} - -// src/compiler/transformers/classThis.ts -function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { - const expression = factory2.createAssignment(classThis, thisExpression); - const statement = factory2.createExpressionStatement(expression); - const body = factory2.createBlock( - [statement], - /*multiLine*/ - false - ); - const block = factory2.createClassStaticBlockDeclaration(body); - getOrCreateEmitNode(block).classThis = classThis; - return block; -} -function isClassThisAssignmentBlock(node) { - var _a; - if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { - return false; - } - const statement = node.body.statements[0]; - return isExpressionStatement(statement) && isAssignmentExpression( - statement.expression, - /*excludeCompoundAssignment*/ - true - ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; -} -function classHasClassThisAssignment(node) { - var _a; - return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); -} -function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { - if (classHasClassThisAssignment(node)) { - return node; - } - const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); - if (node.name) { - setSourceMapRange(staticBlock.body.statements[0], node.name); - } - const members = factory2.createNodeArray([staticBlock, ...node.members]); - setTextRange(members, node.members); - const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( - node, - node.modifiers, - node.name, - node.typeParameters, - node.heritageClauses, - members - ) : factory2.updateClassExpression( - node, - node.modifiers, - node.name, - node.typeParameters, - node.heritageClauses, - members - ); - getOrCreateEmitNode(updatedNode).classThis = classThis; - return updatedNode; -} - -// src/compiler/transformers/namedEvaluation.ts -function getAssignedNameOfIdentifier(factory2, name, expression) { - const original = getOriginalNode(skipOuterExpressions(expression)); - if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 2048 /* Default */)) { - return factory2.createStringLiteral("default"); - } - return factory2.createStringLiteralFromNode(name); -} -function getAssignedNameOfPropertyName(context, name, assignedNameText) { - const { factory: factory2 } = context; - if (assignedNameText !== void 0) { - const assignedName2 = factory2.createStringLiteral(assignedNameText); - return { assignedName: assignedName2, name }; - } - if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { - const assignedName2 = factory2.createStringLiteralFromNode(name); - return { assignedName: assignedName2, name }; - } - if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { - const assignedName2 = factory2.createStringLiteralFromNode(name.expression); - return { assignedName: assignedName2, name }; - } - const assignedName = factory2.getGeneratedNameForNode(name); - context.hoistVariableDeclaration(assignedName); - const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); - const assignment = factory2.createAssignment(assignedName, key); - const updatedName = factory2.updateComputedPropertyName(name, assignment); - return { assignedName, name: updatedName }; -} -function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { - const { factory: factory2 } = context; - const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); - const statement = factory2.createExpressionStatement(expression); - const body = factory2.createBlock( - [statement], - /*multiLine*/ - false - ); - const block = factory2.createClassStaticBlockDeclaration(body); - getOrCreateEmitNode(block).assignedName = assignedName; - return block; -} -function isClassNamedEvaluationHelperBlock(node) { - var _a; - if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { - return false; - } - const statement = node.body.statements[0]; - return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); -} -function classHasExplicitlyAssignedName(node) { - var _a; - return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); -} -function classHasDeclaredOrExplicitlyAssignedName(node) { - return !!node.name || classHasExplicitlyAssignedName(node); -} -function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { - if (classHasExplicitlyAssignedName(node)) { - return node; - } - const { factory: factory2 } = context; - const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); - if (node.name) { - setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); - } - const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; - const leading = node.members.slice(0, insertionIndex); - const trailing = node.members.slice(insertionIndex); - const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); - setTextRange(members, node.members); - node = isClassDeclaration(node) ? factory2.updateClassDeclaration( - node, - node.modifiers, - node.name, - node.typeParameters, - node.heritageClauses, - members - ) : factory2.updateClassExpression( - node, - node.modifiers, - node.name, - node.typeParameters, - node.heritageClauses, - members - ); - getOrCreateEmitNode(node).assignedName = assignedName; - return node; -} -function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { - if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { - return expression; - } - const { factory: factory2 } = context; - const innerExpression = skipOuterExpressions(expression); - const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); - return factory2.restoreOuterExpressions(expression, updatedExpression); -} -function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); - const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updatePropertyAssignment( - node, - name, - initializer - ); -} -function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); - const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updateShorthandPropertyAssignment( - node, - node.name, - objectAssignmentInitializer - ); -} -function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); - const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updateVariableDeclaration( - node, - node.name, - node.exclamationToken, - node.type, - initializer - ); -} -function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); - const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updateParameterDeclaration( - node, - node.modifiers, - node.dotDotDotToken, - node.name, - node.questionToken, - node.type, - initializer - ); -} -function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); - const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updateBindingElement( - node, - node.dotDotDotToken, - node.propertyName, - node.name, - initializer - ); -} -function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); - const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); - return factory2.updatePropertyDeclaration( - node, - node.modifiers, - name, - node.questionToken ?? node.exclamationToken, - node.type, - initializer - ); -} -function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); - const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); - return factory2.updateBinaryExpression( - node, - node.left, - node.operatorToken, - right - ); -} -function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { - const { factory: factory2 } = context; - const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); - const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); - return factory2.updateExportAssignment( - node, - node.modifiers, - expression - ); -} -function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { - switch (node.kind) { - case 303 /* PropertyAssignment */: - return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); - case 304 /* ShorthandPropertyAssignment */: - return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); - case 260 /* VariableDeclaration */: - return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); - case 169 /* Parameter */: - return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); - case 208 /* BindingElement */: - return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); - case 172 /* PropertyDeclaration */: - return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); - case 226 /* BinaryExpression */: - return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); - case 277 /* ExportAssignment */: - return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); - } -} - -// src/compiler/transformers/taggedTemplate.ts -function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) { - const tag = visitNode(node.tag, visitor, isExpression); - Debug.assert(tag); - const templateArguments = [void 0]; - const cookedStrings = []; - const rawStrings = []; - const template = node.template; - if (level === 0 /* LiftRestriction */ && !hasInvalidEscape(template)) { - return visitEachChild(node, visitor, context); - } - const { factory: factory2 } = context; - if (isNoSubstitutionTemplateLiteral(template)) { - cookedStrings.push(createTemplateCooked(factory2, template)); - rawStrings.push(getRawLiteral(factory2, template, currentSourceFile)); - } else { - cookedStrings.push(createTemplateCooked(factory2, template.head)); - rawStrings.push(getRawLiteral(factory2, template.head, currentSourceFile)); - for (const templateSpan of template.templateSpans) { - cookedStrings.push(createTemplateCooked(factory2, templateSpan.literal)); - rawStrings.push(getRawLiteral(factory2, templateSpan.literal, currentSourceFile)); - templateArguments.push(Debug.checkDefined(visitNode(templateSpan.expression, visitor, isExpression))); - } - } - const helperCall = context.getEmitHelperFactory().createTemplateObjectHelper( - factory2.createArrayLiteralExpression(cookedStrings), - factory2.createArrayLiteralExpression(rawStrings) - ); - if (isExternalModule(currentSourceFile)) { - const tempVar = factory2.createUniqueName("templateObject"); - recordTaggedTemplateString(tempVar); - templateArguments[0] = factory2.createLogicalOr( - tempVar, - factory2.createAssignment( - tempVar, - helperCall - ) - ); - } else { - templateArguments[0] = helperCall; - } - return factory2.createCallExpression( - tag, - /*typeArguments*/ - void 0, - templateArguments - ); -} -function createTemplateCooked(factory2, template) { - return template.templateFlags & 26656 /* IsInvalid */ ? factory2.createVoidZero() : factory2.createStringLiteral(template.text); -} -function getRawLiteral(factory2, node, currentSourceFile) { - let text = node.rawText; - if (text === void 0) { - Debug.assertIsDefined(currentSourceFile, "Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."); - text = getSourceTextOfNodeFromSourceFile(currentSourceFile, node); - const isLast = node.kind === 15 /* NoSubstitutionTemplateLiteral */ || node.kind === 18 /* TemplateTail */; - text = text.substring(1, text.length - (isLast ? 1 : 2)); - } - text = text.replace(/\r\n?/g, "\n"); - return setTextRange(factory2.createStringLiteral(text), node); -} - -// src/compiler/transformers/ts.ts -var USE_NEW_TYPE_METADATA_FORMAT = false; -function transformTypeScript(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - startLexicalEnvironment, - resumeLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const moduleKind = getEmitModuleKind(compilerOptions); - const legacyDecorators = !!compilerOptions.experimentalDecorators; - const typeSerializer = compilerOptions.emitDecoratorMetadata ? createRuntimeTypeSerializer(context) : void 0; - const previousOnEmitNode = context.onEmitNode; - const previousOnSubstituteNode = context.onSubstituteNode; - context.onEmitNode = onEmitNode; - context.onSubstituteNode = onSubstituteNode; - context.enableSubstitution(211 /* PropertyAccessExpression */); - context.enableSubstitution(212 /* ElementAccessExpression */); - let currentSourceFile; - let currentNamespace; - let currentNamespaceContainerName; - let currentLexicalScope; - let currentScopeFirstDeclarationsOfName; - let enabledSubstitutions = 0 /* None */; - let applicableSubstitutions; - return transformSourceFileOrBundle; - function transformSourceFileOrBundle(node) { - if (node.kind === 308 /* Bundle */) { - return transformBundle(node); - } - return transformSourceFile(node); - } - function transformBundle(node) { - return factory2.createBundle( - node.sourceFiles.map(transformSourceFile) - ); - } - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - currentSourceFile = node; - const visited = saveStateAndInvoke(node, visitSourceFile); - addEmitHelpers(visited, context.readEmitHelpers()); - currentSourceFile = void 0; - return visited; - } - function saveStateAndInvoke(node, f) { - const savedCurrentScope = currentLexicalScope; - const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; - onBeforeVisitNode(node); - const visited = f(node); - if (currentLexicalScope !== savedCurrentScope) { - currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; - } - currentLexicalScope = savedCurrentScope; - return visited; - } - function onBeforeVisitNode(node) { - switch (node.kind) { - case 307 /* SourceFile */: - case 269 /* CaseBlock */: - case 268 /* ModuleBlock */: - case 241 /* Block */: - currentLexicalScope = node; - currentScopeFirstDeclarationsOfName = void 0; - break; - case 263 /* ClassDeclaration */: - case 262 /* FunctionDeclaration */: - if (hasSyntacticModifier(node, 128 /* Ambient */)) { - break; - } - if (node.name) { - recordEmittedDeclarationInScope(node); - } else { - Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 2048 /* Default */)); - } - break; - } - } - function visitor(node) { - return saveStateAndInvoke(node, visitorWorker); - } - function visitorWorker(node) { - if (node.transformFlags & 1 /* ContainsTypeScript */) { - return visitTypeScript(node); - } - return node; - } - function sourceElementVisitor(node) { - return saveStateAndInvoke(node, sourceElementVisitorWorker); - } - function sourceElementVisitorWorker(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 277 /* ExportAssignment */: - case 278 /* ExportDeclaration */: - return visitElidableStatement(node); - default: - return visitorWorker(node); - } - } - function isElisionBlocked(node) { - const parsed = getParseTreeNode(node); - if (parsed === node || isExportAssignment(node)) { - return false; - } - if (!parsed || parsed.kind !== node.kind) { - return true; - } - switch (node.kind) { - case 272 /* ImportDeclaration */: - Debug.assertNode(parsed, isImportDeclaration); - if (node.importClause !== parsed.importClause) { - return true; - } - if (node.attributes !== parsed.attributes) { - return true; - } - break; - case 271 /* ImportEqualsDeclaration */: - Debug.assertNode(parsed, isImportEqualsDeclaration); - if (node.name !== parsed.name) { - return true; - } - if (node.isTypeOnly !== parsed.isTypeOnly) { - return true; - } - if (node.moduleReference !== parsed.moduleReference && (isEntityName(node.moduleReference) || isEntityName(parsed.moduleReference))) { - return true; - } - break; - case 278 /* ExportDeclaration */: - Debug.assertNode(parsed, isExportDeclaration); - if (node.exportClause !== parsed.exportClause) { - return true; - } - if (node.attributes !== parsed.attributes) { - return true; - } - break; - } - return false; - } - function visitElidableStatement(node) { - if (isElisionBlocked(node)) { - if (node.transformFlags & 1 /* ContainsTypeScript */) { - return visitEachChild(node, visitor, context); - } - return node; - } - switch (node.kind) { - case 272 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 277 /* ExportAssignment */: - return visitExportAssignment(node); - case 278 /* ExportDeclaration */: - return visitExportDeclaration(node); - default: - Debug.fail("Unhandled ellided statement"); - } - } - function namespaceElementVisitor(node) { - return saveStateAndInvoke(node, namespaceElementVisitorWorker); - } - function namespaceElementVisitorWorker(node) { - if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { - return void 0; - } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 32 /* Export */)) { - return visitTypeScript(node); - } - return node; - } - function getClassElementVisitor(parent) { - return (node) => saveStateAndInvoke(node, (n) => classElementVisitorWorker(n, parent)); - } - function classElementVisitorWorker(node, parent) { - switch (node.kind) { - case 176 /* Constructor */: - return visitConstructor(node); - case 172 /* PropertyDeclaration */: - return visitPropertyDeclaration(node, parent); - case 177 /* GetAccessor */: - return visitGetAccessor(node, parent); - case 178 /* SetAccessor */: - return visitSetAccessor(node, parent); - case 174 /* MethodDeclaration */: - return visitMethodDeclaration(node, parent); - case 175 /* ClassStaticBlockDeclaration */: - return visitEachChild(node, visitor, context); - case 240 /* SemicolonClassElement */: - return node; - case 181 /* IndexSignature */: - return; - default: - return Debug.failBadSyntaxKind(node); - } - } - function getObjectLiteralElementVisitor(parent) { - return (node) => saveStateAndInvoke(node, (n) => objectLiteralElementVisitorWorker(n, parent)); - } - function objectLiteralElementVisitorWorker(node, parent) { - switch (node.kind) { - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 305 /* SpreadAssignment */: - return visitor(node); - case 177 /* GetAccessor */: - return visitGetAccessor(node, parent); - case 178 /* SetAccessor */: - return visitSetAccessor(node, parent); - case 174 /* MethodDeclaration */: - return visitMethodDeclaration(node, parent); - default: - return Debug.failBadSyntaxKind(node); - } - } - function decoratorElidingVisitor(node) { - return isDecorator(node) ? void 0 : visitor(node); - } - function modifierElidingVisitor(node) { - return isModifier(node) ? void 0 : visitor(node); - } - function modifierVisitor(node) { - if (isDecorator(node)) return void 0; - if (modifierToFlag(node.kind) & 28895 /* TypeScriptModifier */) { - return void 0; - } else if (currentNamespace && node.kind === 95 /* ExportKeyword */) { - return void 0; - } - return node; - } - function visitTypeScript(node) { - if (isStatement(node) && hasSyntacticModifier(node, 128 /* Ambient */)) { - return factory2.createNotEmittedStatement(node); - } - switch (node.kind) { - case 95 /* ExportKeyword */: - case 90 /* DefaultKeyword */: - return currentNamespace ? void 0 : node; - case 125 /* PublicKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 128 /* AbstractKeyword */: - case 164 /* OverrideKeyword */: - case 87 /* ConstKeyword */: - case 138 /* DeclareKeyword */: - case 148 /* ReadonlyKeyword */: - case 103 /* InKeyword */: - case 147 /* OutKeyword */: - // TypeScript accessibility and readonly modifiers are elided - // falls through - case 188 /* ArrayType */: - case 189 /* TupleType */: - case 190 /* OptionalType */: - case 191 /* RestType */: - case 187 /* TypeLiteral */: - case 182 /* TypePredicate */: - case 168 /* TypeParameter */: - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 136 /* BooleanKeyword */: - case 154 /* StringKeyword */: - case 150 /* NumberKeyword */: - case 146 /* NeverKeyword */: - case 116 /* VoidKeyword */: - case 155 /* SymbolKeyword */: - case 185 /* ConstructorType */: - case 184 /* FunctionType */: - case 186 /* TypeQuery */: - case 183 /* TypeReference */: - case 192 /* UnionType */: - case 193 /* IntersectionType */: - case 194 /* ConditionalType */: - case 196 /* ParenthesizedType */: - case 197 /* ThisType */: - case 198 /* TypeOperator */: - case 199 /* IndexedAccessType */: - case 200 /* MappedType */: - case 201 /* LiteralType */: - // TypeScript type nodes are elided. - // falls through - case 181 /* IndexSignature */: - return void 0; - case 265 /* TypeAliasDeclaration */: - return factory2.createNotEmittedStatement(node); - case 270 /* NamespaceExportDeclaration */: - return void 0; - case 264 /* InterfaceDeclaration */: - return factory2.createNotEmittedStatement(node); - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 231 /* ClassExpression */: - return visitClassExpression(node); - case 298 /* HeritageClause */: - return visitHeritageClause(node); - case 233 /* ExpressionWithTypeArguments */: - return visitExpressionWithTypeArguments(node); - case 210 /* ObjectLiteralExpression */: - return visitObjectLiteralExpression(node); - case 176 /* Constructor */: - case 172 /* PropertyDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 175 /* ClassStaticBlockDeclaration */: - return Debug.fail("Class and object literal elements must be visited with their respective visitors"); - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 218 /* FunctionExpression */: - return visitFunctionExpression(node); - case 219 /* ArrowFunction */: - return visitArrowFunction(node); - case 169 /* Parameter */: - return visitParameter(node); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression(node); - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - return visitAssertionExpression(node); - case 238 /* SatisfiesExpression */: - return visitSatisfiesExpression(node); - case 213 /* CallExpression */: - return visitCallExpression(node); - case 214 /* NewExpression */: - return visitNewExpression(node); - case 215 /* TaggedTemplateExpression */: - return visitTaggedTemplateExpression(node); - case 235 /* NonNullExpression */: - return visitNonNullExpression(node); - case 266 /* EnumDeclaration */: - return visitEnumDeclaration(node); - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 260 /* VariableDeclaration */: - return visitVariableDeclaration(node); - case 267 /* ModuleDeclaration */: - return visitModuleDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 285 /* JsxSelfClosingElement */: - return visitJsxSelfClosingElement(node); - case 286 /* JsxOpeningElement */: - return visitJsxJsxOpeningElement(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitSourceFile(node) { - const alwaysStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") && !(isExternalModule(node) && moduleKind >= 5 /* ES2015 */) && !isJsonSourceFile(node); - return factory2.updateSourceFile( - node, - visitLexicalEnvironment( - node.statements, - sourceElementVisitor, - context, - /*start*/ - 0, - alwaysStrict - ) - ); - } - function visitObjectLiteralExpression(node) { - return factory2.updateObjectLiteralExpression( - node, - visitNodes2(node.properties, getObjectLiteralElementVisitor(node), isObjectLiteralElementLike) - ); - } - function getClassFacts(node) { - let facts = 0 /* None */; - if (some(getProperties( - node, - /*requireInitializer*/ - true, - /*isStatic*/ - true - ))) facts |= 1 /* HasStaticInitializedProperties */; - const extendsClauseElement = getEffectiveBaseTypeNode(node); - if (extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */) facts |= 64 /* IsDerivedClass */; - if (classOrConstructorParameterIsDecorated(legacyDecorators, node)) facts |= 2 /* HasClassOrConstructorParameterDecorators */; - if (childIsDecorated(legacyDecorators, node)) facts |= 4 /* HasMemberDecorators */; - if (isExportOfNamespace(node)) facts |= 8 /* IsExportOfNamespace */; - else if (isDefaultExternalModuleExport(node)) facts |= 32 /* IsDefaultExternalExport */; - else if (isNamedExternalModuleExport(node)) facts |= 16 /* IsNamedExternalExport */; - return facts; - } - function hasTypeScriptClassSyntax(node) { - return !!(node.transformFlags & 8192 /* ContainsTypeScriptClassSyntax */); - } - function isClassLikeDeclarationWithTypeScriptSyntax(node) { - return hasDecorators(node) || some(node.typeParameters) || some(node.heritageClauses, hasTypeScriptClassSyntax) || some(node.members, hasTypeScriptClassSyntax); - } - function visitClassDeclaration(node) { - const facts = getClassFacts(node); - const promoteToIIFE = languageVersion <= 1 /* ES5 */ && !!(facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */); - if (!isClassLikeDeclarationWithTypeScriptSyntax(node) && !classOrConstructorParameterIsDecorated(legacyDecorators, node) && !isExportOfNamespace(node)) { - return factory2.updateClassDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.name, - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - visitNodes2(node.members, getClassElementVisitor(node), isClassElement) - ); - } - if (promoteToIIFE) { - context.startLexicalEnvironment(); - } - const moveModifiers = promoteToIIFE || facts & 8 /* IsExportOfNamespace */; - let modifiers = moveModifiers ? visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, visitor, isModifierLike); - if (facts & 2 /* HasClassOrConstructorParameterDecorators */) { - modifiers = injectClassTypeMetadata(modifiers, node); - } - const needsName = moveModifiers && !node.name || facts & 4 /* HasMemberDecorators */ || facts & 1 /* HasStaticInitializedProperties */; - const name = needsName ? node.name ?? factory2.getGeneratedNameForNode(node) : node.name; - const classDeclaration = factory2.updateClassDeclaration( - node, - modifiers, - name, - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - transformClassMembers(node) - ); - let emitFlags = getEmitFlags(node); - if (facts & 1 /* HasStaticInitializedProperties */) { - emitFlags |= 64 /* NoTrailingSourceMap */; - } - setEmitFlags(classDeclaration, emitFlags); - let statement; - if (promoteToIIFE) { - const statements = [classDeclaration]; - const closingBraceLocation = createTokenRange(skipTrivia(currentSourceFile.text, node.members.end), 20 /* CloseBraceToken */); - const localName = factory2.getInternalName(node); - const outer = factory2.createPartiallyEmittedExpression(localName); - setTextRangeEnd(outer, closingBraceLocation.end); - setEmitFlags(outer, 3072 /* NoComments */); - const returnStatement = factory2.createReturnStatement(outer); - setTextRangePos(returnStatement, closingBraceLocation.pos); - setEmitFlags(returnStatement, 3072 /* NoComments */ | 768 /* NoTokenSourceMaps */); - statements.push(returnStatement); - insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); - const iife = factory2.createImmediatelyInvokedArrowFunction(statements); - setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); - const varDecl = factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ); - setOriginalNode(varDecl, node); - const varStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([varDecl], 1 /* Let */) - ); - setOriginalNode(varStatement, node); - setCommentRange(varStatement, node); - setSourceMapRange(varStatement, moveRangePastDecorators(node)); - startOnNewLine(varStatement); - statement = varStatement; - } else { - statement = classDeclaration; - } - if (moveModifiers) { - if (facts & 8 /* IsExportOfNamespace */) { - return [ - statement, - createExportMemberAssignmentStatement(node) - ]; - } - if (facts & 32 /* IsDefaultExternalExport */) { - return [ - statement, - factory2.createExportDefault(factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - )) - ]; - } - if (facts & 16 /* IsNamedExternalExport */) { - return [ - statement, - factory2.createExternalModuleExport(factory2.getDeclarationName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - )) - ]; - } - } - return statement; - } - function visitClassExpression(node) { - let modifiers = visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike); - if (classOrConstructorParameterIsDecorated(legacyDecorators, node)) { - modifiers = injectClassTypeMetadata(modifiers, node); - } - return factory2.updateClassExpression( - node, - modifiers, - node.name, - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - transformClassMembers(node) - ); - } - function transformClassMembers(node) { - const members = visitNodes2(node.members, getClassElementVisitor(node), isClassElement); - let newMembers; - const constructor = getFirstConstructorWithBody(node); - const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); - if (parametersWithPropertyAssignments) { - for (const parameter of parametersWithPropertyAssignments) { - const parameterProperty = factory2.createPropertyDeclaration( - /*modifiers*/ - void 0, - parameter.name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - setOriginalNode(parameterProperty, parameter); - newMembers = append(newMembers, parameterProperty); - } - } - if (newMembers) { - newMembers = addRange(newMembers, members); - return setTextRange( - factory2.createNodeArray(newMembers), - /*location*/ - node.members - ); - } - return members; - } - function injectClassTypeMetadata(modifiers, node) { - const metadata = getTypeMetadata(node, node); - if (some(metadata)) { - const modifiersArray = []; - addRange(modifiersArray, takeWhile(modifiers, isExportOrDefaultModifier)); - addRange(modifiersArray, filter(modifiers, isDecorator)); - addRange(modifiersArray, metadata); - addRange(modifiersArray, filter(skipWhile(modifiers, isExportOrDefaultModifier), isModifier)); - modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers); - } - return modifiers; - } - function injectClassElementTypeMetadata(modifiers, node, container) { - if (isClassLike(container) && classElementOrClassElementParameterIsDecorated(legacyDecorators, node, container)) { - const metadata = getTypeMetadata(node, container); - if (some(metadata)) { - const modifiersArray = []; - addRange(modifiersArray, filter(modifiers, isDecorator)); - addRange(modifiersArray, metadata); - addRange(modifiersArray, filter(modifiers, isModifier)); - modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers); - } - } - return modifiers; - } - function getTypeMetadata(node, container) { - if (!legacyDecorators) return void 0; - return USE_NEW_TYPE_METADATA_FORMAT ? getNewTypeMetadata(node, container) : getOldTypeMetadata(node, container); - } - function getOldTypeMetadata(node, container) { - if (typeSerializer) { - let decorators; - if (shouldAddTypeMetadata(node)) { - const typeMetadata = emitHelpers().createMetadataHelper("design:type", typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node, container)); - decorators = append(decorators, factory2.createDecorator(typeMetadata)); - } - if (shouldAddParamTypesMetadata(node)) { - const paramTypesMetadata = emitHelpers().createMetadataHelper("design:paramtypes", typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container)); - decorators = append(decorators, factory2.createDecorator(paramTypesMetadata)); - } - if (shouldAddReturnTypeMetadata(node)) { - const returnTypeMetadata = emitHelpers().createMetadataHelper("design:returntype", typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node)); - decorators = append(decorators, factory2.createDecorator(returnTypeMetadata)); - } - return decorators; - } - } - function getNewTypeMetadata(node, container) { - if (typeSerializer) { - let properties; - if (shouldAddTypeMetadata(node)) { - const typeProperty = factory2.createPropertyAssignment("type", factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [], - /*type*/ - void 0, - factory2.createToken(39 /* EqualsGreaterThanToken */), - typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node, container) - )); - properties = append(properties, typeProperty); - } - if (shouldAddParamTypesMetadata(node)) { - const paramTypeProperty = factory2.createPropertyAssignment("paramTypes", factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [], - /*type*/ - void 0, - factory2.createToken(39 /* EqualsGreaterThanToken */), - typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container) - )); - properties = append(properties, paramTypeProperty); - } - if (shouldAddReturnTypeMetadata(node)) { - const returnTypeProperty = factory2.createPropertyAssignment("returnType", factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - [], - /*type*/ - void 0, - factory2.createToken(39 /* EqualsGreaterThanToken */), - typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node) - )); - properties = append(properties, returnTypeProperty); - } - if (properties) { - const typeInfoMetadata = emitHelpers().createMetadataHelper("design:typeinfo", factory2.createObjectLiteralExpression( - properties, - /*multiLine*/ - true - )); - return [factory2.createDecorator(typeInfoMetadata)]; - } - } - } - function shouldAddTypeMetadata(node) { - const kind = node.kind; - return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; - } - function shouldAddReturnTypeMetadata(node) { - return node.kind === 174 /* MethodDeclaration */; - } - function shouldAddParamTypesMetadata(node) { - switch (node.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return getFirstConstructorWithBody(node) !== void 0; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return true; - } - return false; - } - function getExpressionForPropertyName(member, generateNameForComputedPropertyName) { - const name = member.name; - if (isPrivateIdentifier(name)) { - return factory2.createIdentifier(""); - } else if (isComputedPropertyName(name)) { - return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression; - } else if (isIdentifier(name)) { - return factory2.createStringLiteral(idText(name)); - } else { - return factory2.cloneNode(name); - } - } - function visitPropertyNameOfClassElement(member) { - const name = member.name; - if (legacyDecorators && isComputedPropertyName(name) && hasDecorators(member)) { - const expression = visitNode(name.expression, visitor, isExpression); - Debug.assert(expression); - const innerExpression = skipPartiallyEmittedExpressions(expression); - if (!isSimpleInlineableExpression(innerExpression)) { - const generatedName = factory2.getGeneratedNameForNode(name); - hoistVariableDeclaration(generatedName); - return factory2.updateComputedPropertyName(name, factory2.createAssignment(generatedName, expression)); - } - } - return Debug.checkDefined(visitNode(name, visitor, isPropertyName)); - } - function visitHeritageClause(node) { - if (node.token === 119 /* ImplementsKeyword */) { - return void 0; - } - return visitEachChild(node, visitor, context); - } - function visitExpressionWithTypeArguments(node) { - return factory2.updateExpressionWithTypeArguments( - node, - Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression)), - /*typeArguments*/ - void 0 - ); - } - function shouldEmitFunctionLikeDeclaration(node) { - return !nodeIsMissing(node.body); - } - function visitPropertyDeclaration(node, parent) { - const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 64 /* Abstract */); - if (isAmbient && !(legacyDecorators && hasDecorators(node))) { - return void 0; - } - let modifiers = isClassLike(parent) ? !isAmbient ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); - modifiers = injectClassElementTypeMetadata(modifiers, node, parent); - if (isAmbient) { - return factory2.updatePropertyDeclaration( - node, - concatenate(modifiers, factory2.createModifiersFromModifierFlags(128 /* Ambient */)), - Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - } - return factory2.updatePropertyDeclaration( - node, - modifiers, - visitPropertyNameOfClassElement(node), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - } - function visitConstructor(node) { - if (!shouldEmitFunctionLikeDeclaration(node)) { - return void 0; - } - return factory2.updateConstructorDeclaration( - node, - /*modifiers*/ - void 0, - visitParameterList(node.parameters, visitor, context), - transformConstructorBody(node.body, node) - ); - } - function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { - const superStatementIndex = superPath[superPathDepth]; - const superStatement = statementsIn[superStatementIndex]; - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); - if (isTryStatement(superStatement)) { - const tryBlockStatements = []; - transformConstructorBodyWorker( - tryBlockStatements, - superStatement.tryBlock.statements, - /*statementOffset*/ - 0, - superPath, - superPathDepth + 1, - initializerStatements - ); - const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); - setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); - statementsOut.push(factory2.updateTryStatement( - superStatement, - factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), - visitNode(superStatement.catchClause, visitor, isCatchClause), - visitNode(superStatement.finallyBlock, visitor, isBlock) - )); - } else { - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); - addRange(statementsOut, initializerStatements); - } - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); - } - function transformConstructorBody(body, constructor) { - const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); - if (!some(parametersWithPropertyAssignments)) { - return visitFunctionBody(body, visitor, context); - } - let statements = []; - resumeLexicalEnvironment(); - const prologueStatementCount = factory2.copyPrologue( - body.statements, - statements, - /*ensureUseStrict*/ - false, - visitor - ); - const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); - const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); - if (superPath.length) { - transformConstructorBodyWorker( - statements, - body.statements, - prologueStatementCount, - superPath, - /*superPathDepth*/ - 0, - parameterPropertyAssignments - ); - } else { - addRange(statements, parameterPropertyAssignments); - addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); - } - statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); - const block = factory2.createBlock( - setTextRange(factory2.createNodeArray(statements), body.statements), - /*multiLine*/ - true - ); - setTextRange( - block, - /*location*/ - body - ); - setOriginalNode(block, body); - return block; - } - function transformParameterWithPropertyAssignment(node) { - const name = node.name; - if (!isIdentifier(name)) { - return void 0; - } - const propertyName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); - setEmitFlags(propertyName, 3072 /* NoComments */ | 96 /* NoSourceMap */); - const localName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); - setEmitFlags(localName, 3072 /* NoComments */); - return startOnNewLine( - removeAllComments( - setTextRange( - setOriginalNode( - factory2.createExpressionStatement( - factory2.createAssignment( - setTextRange( - factory2.createPropertyAccessExpression( - factory2.createThis(), - propertyName - ), - node.name - ), - localName - ) - ), - node - ), - moveRangePos(node, -1) - ) - ) - ); - } - function visitMethodDeclaration(node, parent) { - if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { - return node; - } - if (!shouldEmitFunctionLikeDeclaration(node)) { - return void 0; - } - let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); - modifiers = injectClassElementTypeMetadata(modifiers, node, parent); - return factory2.updateMethodDeclaration( - node, - modifiers, - node.asteriskToken, - visitPropertyNameOfClassElement(node), - /*questionToken*/ - void 0, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - visitFunctionBody(node.body, visitor, context) - ); - } - function shouldEmitAccessorDeclaration(node) { - return !(nodeIsMissing(node.body) && hasSyntacticModifier(node, 64 /* Abstract */)); - } - function visitGetAccessor(node, parent) { - if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { - return node; - } - if (!shouldEmitAccessorDeclaration(node)) { - return void 0; - } - let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); - modifiers = injectClassElementTypeMetadata(modifiers, node, parent); - return factory2.updateGetAccessorDeclaration( - node, - modifiers, - visitPropertyNameOfClassElement(node), - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) - ); - } - function visitSetAccessor(node, parent) { - if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { - return node; - } - if (!shouldEmitAccessorDeclaration(node)) { - return void 0; - } - let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); - modifiers = injectClassElementTypeMetadata(modifiers, node, parent); - return factory2.updateSetAccessorDeclaration( - node, - modifiers, - visitPropertyNameOfClassElement(node), - visitParameterList(node.parameters, visitor, context), - visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) - ); - } - function visitFunctionDeclaration(node) { - if (!shouldEmitFunctionLikeDeclaration(node)) { - return factory2.createNotEmittedStatement(node); - } - const updated = factory2.updateFunctionDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) - ); - if (isExportOfNamespace(node)) { - const statements = [updated]; - addExportMemberAssignment(statements, node); - return statements; - } - return updated; - } - function visitFunctionExpression(node) { - if (!shouldEmitFunctionLikeDeclaration(node)) { - return factory2.createOmittedExpression(); - } - const updated = factory2.updateFunctionExpression( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) - ); - return updated; - } - function visitArrowFunction(node) { - const updated = factory2.updateArrowFunction( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - node.equalsGreaterThanToken, - visitFunctionBody(node.body, visitor, context) - ); - return updated; - } - function visitParameter(node) { - if (parameterIsThisKeyword(node)) { - return void 0; - } - const updated = factory2.updateParameterDeclaration( - node, - visitNodes2(node.modifiers, (node2) => isDecorator(node2) ? visitor(node2) : void 0, isModifierLike), - node.dotDotDotToken, - Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - if (updated !== node) { - setCommentRange(updated, node); - setTextRange(updated, moveRangePastModifiers(node)); - setSourceMapRange(updated, moveRangePastModifiers(node)); - setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); - } - return updated; - } - function visitVariableStatement(node) { - if (isExportOfNamespace(node)) { - const variables = getInitializedVariables(node.declarationList); - if (variables.length === 0) { - return void 0; - } - return setTextRange( - factory2.createExpressionStatement( - factory2.inlineExpressions( - map(variables, transformInitializedVariable) - ) - ), - node - ); - } else { - return visitEachChild(node, visitor, context); - } - } - function transformInitializedVariable(node) { - const name = node.name; - if (isBindingPattern(name)) { - return flattenDestructuringAssignment( - node, - visitor, - context, - 0 /* All */, - /*needsValue*/ - false, - createNamespaceExportExpression - ); - } else { - return setTextRange( - factory2.createAssignment( - getNamespaceMemberNameWithSourceMapsAndWithoutComments(name), - Debug.checkDefined(visitNode(node.initializer, visitor, isExpression)) - ), - /*location*/ - node - ); - } - } - function visitVariableDeclaration(node) { - const updated = factory2.updateVariableDeclaration( - node, - Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - if (node.type) { - setTypeNode(updated.name, node.type); - } - return updated; - } - function visitParenthesizedExpression(node) { - const innerExpression = skipOuterExpressions(node.expression, ~(38 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */)); - if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) { - const expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - return factory2.createPartiallyEmittedExpression(expression, node); - } - return visitEachChild(node, visitor, context); - } - function visitAssertionExpression(node) { - const expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - return factory2.createPartiallyEmittedExpression(expression, node); - } - function visitNonNullExpression(node) { - const expression = visitNode(node.expression, visitor, isLeftHandSideExpression); - Debug.assert(expression); - return factory2.createPartiallyEmittedExpression(expression, node); - } - function visitSatisfiesExpression(node) { - const expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - return factory2.createPartiallyEmittedExpression(expression, node); - } - function visitCallExpression(node) { - return factory2.updateCallExpression( - node, - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - /*typeArguments*/ - void 0, - visitNodes2(node.arguments, visitor, isExpression) - ); - } - function visitNewExpression(node) { - return factory2.updateNewExpression( - node, - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - /*typeArguments*/ - void 0, - visitNodes2(node.arguments, visitor, isExpression) - ); - } - function visitTaggedTemplateExpression(node) { - return factory2.updateTaggedTemplateExpression( - node, - Debug.checkDefined(visitNode(node.tag, visitor, isExpression)), - /*typeArguments*/ - void 0, - Debug.checkDefined(visitNode(node.template, visitor, isTemplateLiteral)) - ); - } - function visitJsxSelfClosingElement(node) { - return factory2.updateJsxSelfClosingElement( - node, - Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), - /*typeArguments*/ - void 0, - Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)) - ); - } - function visitJsxJsxOpeningElement(node) { - return factory2.updateJsxOpeningElement( - node, - Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), - /*typeArguments*/ - void 0, - Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)) - ); - } - function shouldEmitEnumDeclaration(node) { - return !isEnumConst(node) || shouldPreserveConstEnums(compilerOptions); - } - function visitEnumDeclaration(node) { - if (!shouldEmitEnumDeclaration(node)) { - return factory2.createNotEmittedStatement(node); - } - const statements = []; - let emitFlags = 4 /* AdviseOnEmitNode */; - const varAdded = addVarForEnumOrModuleDeclaration(statements, node); - if (varAdded) { - if (moduleKind !== 4 /* System */ || currentLexicalScope !== currentSourceFile) { - emitFlags |= 1024 /* NoLeadingComments */; - } - } - const parameterName = getNamespaceParameterName(node); - const containerName = getNamespaceContainerName(node); - const exportName = isExportOfNamespace(node) ? factory2.getExternalModuleOrNamespaceExportName( - currentNamespaceContainerName, - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getDeclarationName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - let moduleArg = factory2.createLogicalOr( - exportName, - factory2.createAssignment( - exportName, - factory2.createObjectLiteralExpression() - ) - ); - if (isExportOfNamespace(node)) { - const localName = factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - moduleArg = factory2.createAssignment(localName, moduleArg); - } - const enumStatement = factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - parameterName - )], - /*type*/ - void 0, - transformEnumBody(node, containerName) - ), - /*typeArguments*/ - void 0, - [moduleArg] - ) - ); - setOriginalNode(enumStatement, node); - if (varAdded) { - setSyntheticLeadingComments(enumStatement, void 0); - setSyntheticTrailingComments(enumStatement, void 0); - } - setTextRange(enumStatement, node); - addEmitFlags(enumStatement, emitFlags); - statements.push(enumStatement); - return statements; - } - function transformEnumBody(node, localName) { - const savedCurrentNamespaceLocalName = currentNamespaceContainerName; - currentNamespaceContainerName = localName; - const statements = []; - startLexicalEnvironment(); - const members = map(node.members, transformEnumMember); - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - addRange(statements, members); - currentNamespaceContainerName = savedCurrentNamespaceLocalName; - return factory2.createBlock( - setTextRange( - factory2.createNodeArray(statements), - /*location*/ - node.members - ), - /*multiLine*/ - true - ); - } - function transformEnumMember(member) { - const name = getExpressionForPropertyName( - member, - /*generateNameForComputedPropertyName*/ - false - ); - const evaluated = resolver.getEnumMemberValue(member); - const valueExpression = transformEnumMemberDeclarationValue(member, evaluated == null ? void 0 : evaluated.value); - const innerAssignment = factory2.createAssignment( - factory2.createElementAccessExpression( - currentNamespaceContainerName, - name - ), - valueExpression - ); - const outerAssignment = typeof (evaluated == null ? void 0 : evaluated.value) === "string" || (evaluated == null ? void 0 : evaluated.isSyntacticallyString) ? innerAssignment : factory2.createAssignment( - factory2.createElementAccessExpression( - currentNamespaceContainerName, - innerAssignment - ), - name - ); - return setTextRange( - factory2.createExpressionStatement( - setTextRange( - outerAssignment, - member - ) - ), - member - ); - } - function transformEnumMemberDeclarationValue(member, constantValue) { - if (constantValue !== void 0) { - return typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constantValue)) : factory2.createNumericLiteral(constantValue); - } else { - enableSubstitutionForNonQualifiedEnumMembers(); - if (member.initializer) { - return Debug.checkDefined(visitNode(member.initializer, visitor, isExpression)); - } else { - return factory2.createVoidZero(); - } - } - } - function shouldEmitModuleDeclaration(nodeIn) { - const node = getParseTreeNode(nodeIn, isModuleDeclaration); - if (!node) { - return true; - } - return isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions)); - } - function recordEmittedDeclarationInScope(node) { - if (!currentScopeFirstDeclarationsOfName) { - currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map(); - } - const name = declaredNameInScope(node); - if (!currentScopeFirstDeclarationsOfName.has(name)) { - currentScopeFirstDeclarationsOfName.set(name, node); - } - } - function isFirstEmittedDeclarationInScope(node) { - if (currentScopeFirstDeclarationsOfName) { - const name = declaredNameInScope(node); - return currentScopeFirstDeclarationsOfName.get(name) === node; - } - return true; - } - function declaredNameInScope(node) { - Debug.assertNode(node.name, isIdentifier); - return node.name.escapedText; - } - function addVarForEnumOrModuleDeclaration(statements, node) { - const varDecl = factory2.createVariableDeclaration(factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - )); - const varFlags = currentLexicalScope.kind === 307 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; - const statement = factory2.createVariableStatement( - visitNodes2(node.modifiers, modifierVisitor, isModifier), - factory2.createVariableDeclarationList([varDecl], varFlags) - ); - setOriginalNode(varDecl, node); - setSyntheticLeadingComments(varDecl, void 0); - setSyntheticTrailingComments(varDecl, void 0); - setOriginalNode(statement, node); - recordEmittedDeclarationInScope(node); - if (isFirstEmittedDeclarationInScope(node)) { - if (node.kind === 266 /* EnumDeclaration */) { - setSourceMapRange(statement.declarationList, node); - } else { - setSourceMapRange(statement, node); - } - setCommentRange(statement, node); - addEmitFlags(statement, 2048 /* NoTrailingComments */); - statements.push(statement); - return true; - } - return false; - } - function visitModuleDeclaration(node) { - if (!shouldEmitModuleDeclaration(node)) { - return factory2.createNotEmittedStatement(node); - } - Debug.assertNode(node.name, isIdentifier, "A TypeScript namespace should have an Identifier name."); - enableSubstitutionForNamespaceExports(); - const statements = []; - let emitFlags = 4 /* AdviseOnEmitNode */; - const varAdded = addVarForEnumOrModuleDeclaration(statements, node); - if (varAdded) { - if (moduleKind !== 4 /* System */ || currentLexicalScope !== currentSourceFile) { - emitFlags |= 1024 /* NoLeadingComments */; - } - } - const parameterName = getNamespaceParameterName(node); - const containerName = getNamespaceContainerName(node); - const exportName = isExportOfNamespace(node) ? factory2.getExternalModuleOrNamespaceExportName( - currentNamespaceContainerName, - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getDeclarationName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - let moduleArg = factory2.createLogicalOr( - exportName, - factory2.createAssignment( - exportName, - factory2.createObjectLiteralExpression() - ) - ); - if (isExportOfNamespace(node)) { - const localName = factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - moduleArg = factory2.createAssignment(localName, moduleArg); - } - const moduleStatement = factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - parameterName - )], - /*type*/ - void 0, - transformModuleBody(node, containerName) - ), - /*typeArguments*/ - void 0, - [moduleArg] - ) - ); - setOriginalNode(moduleStatement, node); - if (varAdded) { - setSyntheticLeadingComments(moduleStatement, void 0); - setSyntheticTrailingComments(moduleStatement, void 0); - } - setTextRange(moduleStatement, node); - addEmitFlags(moduleStatement, emitFlags); - statements.push(moduleStatement); - return statements; - } - function transformModuleBody(node, namespaceLocalName) { - const savedCurrentNamespaceContainerName = currentNamespaceContainerName; - const savedCurrentNamespace = currentNamespace; - const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; - currentNamespaceContainerName = namespaceLocalName; - currentNamespace = node; - currentScopeFirstDeclarationsOfName = void 0; - const statements = []; - startLexicalEnvironment(); - let statementsLocation; - let blockLocation; - if (node.body) { - if (node.body.kind === 268 /* ModuleBlock */) { - saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); - statementsLocation = node.body.statements; - blockLocation = node.body; - } else { - const result = visitModuleDeclaration(node.body); - if (result) { - if (isArray(result)) { - addRange(statements, result); - } else { - statements.push(result); - } - } - const moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body; - statementsLocation = moveRangePos(moduleBlock.statements, -1); - } - } - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - currentNamespaceContainerName = savedCurrentNamespaceContainerName; - currentNamespace = savedCurrentNamespace; - currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; - const block = factory2.createBlock( - setTextRange( - factory2.createNodeArray(statements), - /*location*/ - statementsLocation - ), - /*multiLine*/ - true - ); - setTextRange(block, blockLocation); - if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { - setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); - } - return block; - } - function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { - if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { - const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); - return recursiveInnerModule || moduleDeclaration.body; - } - } - function visitImportDeclaration(node) { - if (!node.importClause) { - return node; - } - if (node.importClause.isTypeOnly) { - return void 0; - } - const importClause = visitNode(node.importClause, visitImportClause, isImportClause); - return importClause ? factory2.updateImportDeclaration( - node, - /*modifiers*/ - void 0, - importClause, - node.moduleSpecifier, - node.attributes - ) : void 0; - } - function visitImportClause(node) { - Debug.assert(!node.isTypeOnly); - const name = shouldEmitAliasDeclaration(node) ? node.name : void 0; - const namedBindings = visitNode(node.namedBindings, visitNamedImportBindings, isNamedImportBindings); - return name || namedBindings ? factory2.updateImportClause( - node, - /*isTypeOnly*/ - false, - name, - namedBindings - ) : void 0; - } - function visitNamedImportBindings(node) { - if (node.kind === 274 /* NamespaceImport */) { - return shouldEmitAliasDeclaration(node) ? node : void 0; - } else { - const allowEmpty = compilerOptions.verbatimModuleSyntax; - const elements = visitNodes2(node.elements, visitImportSpecifier, isImportSpecifier); - return allowEmpty || some(elements) ? factory2.updateNamedImports(node, elements) : void 0; - } - } - function visitImportSpecifier(node) { - return !node.isTypeOnly && shouldEmitAliasDeclaration(node) ? node : void 0; - } - function visitExportAssignment(node) { - return compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node) ? visitEachChild(node, visitor, context) : void 0; - } - function visitExportDeclaration(node) { - if (node.isTypeOnly) { - return void 0; - } - if (!node.exportClause || isNamespaceExport(node.exportClause)) { - return factory2.updateExportDeclaration( - node, - node.modifiers, - node.isTypeOnly, - node.exportClause, - node.moduleSpecifier, - node.attributes - ); - } - const allowEmpty = !!compilerOptions.verbatimModuleSyntax; - const exportClause = visitNode( - node.exportClause, - (bindings) => visitNamedExportBindings(bindings, allowEmpty), - isNamedExportBindings - ); - return exportClause ? factory2.updateExportDeclaration( - node, - /*modifiers*/ - void 0, - node.isTypeOnly, - exportClause, - node.moduleSpecifier, - node.attributes - ) : void 0; - } - function visitNamedExports(node, allowEmpty) { - const elements = visitNodes2(node.elements, visitExportSpecifier, isExportSpecifier); - return allowEmpty || some(elements) ? factory2.updateNamedExports(node, elements) : void 0; - } - function visitNamespaceExports(node) { - return factory2.updateNamespaceExport(node, Debug.checkDefined(visitNode(node.name, visitor, isIdentifier))); - } - function visitNamedExportBindings(node, allowEmpty) { - return isNamespaceExport(node) ? visitNamespaceExports(node) : visitNamedExports(node, allowEmpty); - } - function visitExportSpecifier(node) { - return !node.isTypeOnly && (compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node)) ? node : void 0; - } - function shouldEmitImportEqualsDeclaration(node) { - return shouldEmitAliasDeclaration(node) || !isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node); - } - function visitImportEqualsDeclaration(node) { - if (node.isTypeOnly) { - return void 0; - } - if (isExternalModuleImportEqualsDeclaration(node)) { - if (!shouldEmitAliasDeclaration(node)) { - return void 0; - } - return visitEachChild(node, visitor, context); - } - if (!shouldEmitImportEqualsDeclaration(node)) { - return void 0; - } - const moduleReference = createExpressionFromEntityName(factory2, node.moduleReference); - setEmitFlags(moduleReference, 3072 /* NoComments */ | 4096 /* NoNestedComments */); - if (isNamedExternalModuleExport(node) || !isExportOfNamespace(node)) { - return setOriginalNode( - setTextRange( - factory2.createVariableStatement( - visitNodes2(node.modifiers, modifierVisitor, isModifier), - factory2.createVariableDeclarationList([ - setOriginalNode( - factory2.createVariableDeclaration( - node.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - moduleReference - ), - node - ) - ]) - ), - node - ), - node - ); - } else { - return setOriginalNode( - createNamespaceExport( - node.name, - moduleReference, - node - ), - node - ); - } - } - function isExportOfNamespace(node) { - return currentNamespace !== void 0 && hasSyntacticModifier(node, 32 /* Export */); - } - function isExternalModuleExport(node) { - return currentNamespace === void 0 && hasSyntacticModifier(node, 32 /* Export */); - } - function isNamedExternalModuleExport(node) { - return isExternalModuleExport(node) && !hasSyntacticModifier(node, 2048 /* Default */); - } - function isDefaultExternalModuleExport(node) { - return isExternalModuleExport(node) && hasSyntacticModifier(node, 2048 /* Default */); - } - function createExportMemberAssignmentStatement(node) { - const expression = factory2.createAssignment( - factory2.getExternalModuleOrNamespaceExportName( - currentNamespaceContainerName, - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ), - factory2.getLocalName(node) - ); - setSourceMapRange(expression, createRange(node.name ? node.name.pos : node.pos, node.end)); - const statement = factory2.createExpressionStatement(expression); - setSourceMapRange(statement, createRange(-1, node.end)); - return statement; - } - function addExportMemberAssignment(statements, node) { - statements.push(createExportMemberAssignmentStatement(node)); - } - function createNamespaceExport(exportName, exportValue, location) { - return setTextRange( - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.getNamespaceMemberName( - currentNamespaceContainerName, - exportName, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ), - exportValue - ) - ), - location - ); - } - function createNamespaceExportExpression(exportName, exportValue, location) { - return setTextRange(factory2.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(exportName), exportValue), location); - } - function getNamespaceMemberNameWithSourceMapsAndWithoutComments(name) { - return factory2.getNamespaceMemberName( - currentNamespaceContainerName, - name, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - } - function getNamespaceParameterName(node) { - const name = factory2.getGeneratedNameForNode(node); - setSourceMapRange(name, node.name); - return name; - } - function getNamespaceContainerName(node) { - return factory2.getGeneratedNameForNode(node); - } - function enableSubstitutionForNonQualifiedEnumMembers() { - if ((enabledSubstitutions & 8 /* NonQualifiedEnumMembers */) === 0) { - enabledSubstitutions |= 8 /* NonQualifiedEnumMembers */; - context.enableSubstitution(80 /* Identifier */); - } - } - function enableSubstitutionForNamespaceExports() { - if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { - enabledSubstitutions |= 2 /* NamespaceExports */; - context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(304 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(267 /* ModuleDeclaration */); - } - } - function isTransformedModuleDeclaration(node) { - return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; - } - function isTransformedEnumDeclaration(node) { - return getOriginalNode(node).kind === 266 /* EnumDeclaration */; - } - function onEmitNode(hint, node, emitCallback) { - const savedApplicableSubstitutions = applicableSubstitutions; - const savedCurrentSourceFile = currentSourceFile; - if (isSourceFile(node)) { - currentSourceFile = node; - } - if (enabledSubstitutions & 2 /* NamespaceExports */ && isTransformedModuleDeclaration(node)) { - applicableSubstitutions |= 2 /* NamespaceExports */; - } - if (enabledSubstitutions & 8 /* NonQualifiedEnumMembers */ && isTransformedEnumDeclaration(node)) { - applicableSubstitutions |= 8 /* NonQualifiedEnumMembers */; - } - previousOnEmitNode(hint, node, emitCallback); - applicableSubstitutions = savedApplicableSubstitutions; - currentSourceFile = savedCurrentSourceFile; - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } else if (isShorthandPropertyAssignment(node)) { - return substituteShorthandPropertyAssignment(node); - } - return node; - } - function substituteShorthandPropertyAssignment(node) { - if (enabledSubstitutions & 2 /* NamespaceExports */) { - const name = node.name; - const exportedName = trySubstituteNamespaceExportedName(name); - if (exportedName) { - if (node.objectAssignmentInitializer) { - const initializer = factory2.createAssignment(exportedName, node.objectAssignmentInitializer); - return setTextRange(factory2.createPropertyAssignment(name, initializer), node); - } - return setTextRange(factory2.createPropertyAssignment(name, exportedName), node); - } - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - case 211 /* PropertyAccessExpression */: - return substitutePropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return substituteElementAccessExpression(node); - } - return node; - } - function substituteExpressionIdentifier(node) { - return trySubstituteNamespaceExportedName(node) || node; - } - function trySubstituteNamespaceExportedName(node) { - if (enabledSubstitutions & applicableSubstitutions && !isGeneratedIdentifier(node) && !isLocalName(node)) { - const container = resolver.getReferencedExportContainer( - node, - /*prefixLocals*/ - false - ); - if (container && container.kind !== 307 /* SourceFile */) { - const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; - if (substitute) { - return setTextRange( - factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), - /*location*/ - node - ); - } - } - } - return void 0; - } - function substitutePropertyAccessExpression(node) { - return substituteConstantValue(node); - } - function substituteElementAccessExpression(node) { - return substituteConstantValue(node); - } - function safeMultiLineComment(value) { - return value.replace(/\*\//g, "*_/"); - } - function substituteConstantValue(node) { - const constantValue = tryGetConstEnumValue(node); - if (constantValue !== void 0) { - setConstantValue(node, constantValue); - const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constantValue)) : factory2.createNumericLiteral(constantValue); - if (!compilerOptions.removeComments) { - const originalNode = getOriginalNode(node, isAccessExpression); - addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); - } - return substitute; - } - return node; - } - function tryGetConstEnumValue(node) { - if (getIsolatedModules(compilerOptions)) { - return void 0; - } - return isPropertyAccessExpression(node) || isElementAccessExpression(node) ? resolver.getConstantValue(node) : void 0; - } - function shouldEmitAliasDeclaration(node) { - return compilerOptions.verbatimModuleSyntax || isInJSFile(node) || resolver.isReferencedAliasDeclaration(node); - } -} - -// src/compiler/transformers/classFields.ts -function transformClassFields(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - hoistVariableDeclaration, - endLexicalEnvironment, - startLexicalEnvironment, - resumeLexicalEnvironment, - addBlockScopedVariable - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const useDefineForClassFields = getUseDefineForClassFields(compilerOptions); - const legacyDecorators = !!compilerOptions.experimentalDecorators; - const shouldTransformInitializersUsingSet = !useDefineForClassFields; - const shouldTransformInitializersUsingDefine = useDefineForClassFields && languageVersion < 9 /* ES2022 */; - const shouldTransformInitializers = shouldTransformInitializersUsingSet || shouldTransformInitializersUsingDefine; - const shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */; - const shouldTransformAutoAccessors = languageVersion < 99 /* ESNext */ ? -1 /* True */ : !useDefineForClassFields ? 3 /* Maybe */ : 0 /* False */; - const shouldTransformThisInStaticInitializers = languageVersion < 9 /* ES2022 */; - const shouldTransformSuperInStaticInitializers = shouldTransformThisInStaticInitializers && languageVersion >= 2 /* ES2015 */; - const shouldTransformAnything = shouldTransformInitializers || shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformAutoAccessors === -1 /* True */; - const previousOnSubstituteNode = context.onSubstituteNode; - context.onSubstituteNode = onSubstituteNode; - const previousOnEmitNode = context.onEmitNode; - context.onEmitNode = onEmitNode; - let shouldTransformPrivateStaticElementsInFile = false; - let enabledSubstitutions = 0 /* None */; - let classAliases; - let pendingExpressions; - let pendingStatements; - let lexicalEnvironment; - const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); - const noSubstitution = /* @__PURE__ */ new Set(); - let currentClassContainer; - let currentClassElement; - let shouldSubstituteThisWithClassThis = false; - let previousShouldSubstituteThisWithClassThis = false; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - lexicalEnvironment = void 0; - shouldTransformPrivateStaticElementsInFile = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); - if (!shouldTransformAnything && !shouldTransformPrivateStaticElementsInFile) { - return node; - } - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - return visited; - } - function modifierVisitor(node) { - switch (node.kind) { - case 129 /* AccessorKeyword */: - return shouldTransformAutoAccessorsInCurrentClass() ? void 0 : node; - default: - return tryCast(node, isModifier); - } - } - function visitor(node) { - if (!(node.transformFlags & 16777216 /* ContainsClassFields */) && !(node.transformFlags & 134234112 /* ContainsLexicalThisOrSuper */)) { - return node; - } - switch (node.kind) { - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 231 /* ClassExpression */: - return visitClassExpression(node); - case 175 /* ClassStaticBlockDeclaration */: - case 172 /* PropertyDeclaration */: - return Debug.fail("Use `classElementVisitor` instead."); - case 303 /* PropertyAssignment */: - return visitPropertyAssignment(node); - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 260 /* VariableDeclaration */: - return visitVariableDeclaration(node); - case 169 /* Parameter */: - return visitParameterDeclaration(node); - case 208 /* BindingElement */: - return visitBindingElement(node); - case 277 /* ExportAssignment */: - return visitExportAssignment(node); - case 81 /* PrivateIdentifier */: - return visitPrivateIdentifier(node); - case 211 /* PropertyAccessExpression */: - return visitPropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return visitElementAccessExpression(node); - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPreOrPostfixUnaryExpression( - node, - /*discarded*/ - false - ); - case 226 /* BinaryExpression */: - return visitBinaryExpression( - node, - /*discarded*/ - false - ); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false - ); - case 213 /* CallExpression */: - return visitCallExpression(node); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 215 /* TaggedTemplateExpression */: - return visitTaggedTemplateExpression(node); - case 248 /* ForStatement */: - return visitForStatement(node); - case 110 /* ThisKeyword */: - return visitThisExpression(node); - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - return setCurrentClassElementAnd( - /*classElement*/ - void 0, - fallbackVisitor, - node - ); - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: { - return setCurrentClassElementAnd( - node, - fallbackVisitor, - node - ); - } - default: - return fallbackVisitor(node); - } - } - function fallbackVisitor(node) { - return visitEachChild(node, visitor, context); - } - function discardedValueVisitor(node) { - switch (node.kind) { - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPreOrPostfixUnaryExpression( - node, - /*discarded*/ - true - ); - case 226 /* BinaryExpression */: - return visitBinaryExpression( - node, - /*discarded*/ - true - ); - case 356 /* CommaListExpression */: - return visitCommaListExpression( - node, - /*discarded*/ - true - ); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - true - ); - default: - return visitor(node); - } - } - function heritageClauseVisitor(node) { - switch (node.kind) { - case 298 /* HeritageClause */: - return visitEachChild(node, heritageClauseVisitor, context); - case 233 /* ExpressionWithTypeArguments */: - return visitExpressionWithTypeArgumentsInHeritageClause(node); - default: - return visitor(node); - } - } - function assignmentTargetVisitor(node) { - switch (node.kind) { - case 210 /* ObjectLiteralExpression */: - case 209 /* ArrayLiteralExpression */: - return visitAssignmentPattern(node); - default: - return visitor(node); - } - } - function classElementVisitor(node) { - switch (node.kind) { - case 176 /* Constructor */: - return setCurrentClassElementAnd( - node, - visitConstructorDeclaration, - node - ); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - return setCurrentClassElementAnd( - node, - visitMethodOrAccessorDeclaration, - node - ); - case 172 /* PropertyDeclaration */: - return setCurrentClassElementAnd( - node, - visitPropertyDeclaration, - node - ); - case 175 /* ClassStaticBlockDeclaration */: - return setCurrentClassElementAnd( - node, - visitClassStaticBlockDeclaration, - node - ); - case 167 /* ComputedPropertyName */: - return visitComputedPropertyName(node); - case 240 /* SemicolonClassElement */: - return node; - default: - return isModifierLike(node) ? modifierVisitor(node) : visitor(node); - } - } - function propertyNameVisitor(node) { - switch (node.kind) { - case 167 /* ComputedPropertyName */: - return visitComputedPropertyName(node); - default: - return visitor(node); - } - } - function accessorFieldResultVisitor(node) { - switch (node.kind) { - case 172 /* PropertyDeclaration */: - return transformFieldInitializer(node); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return classElementVisitor(node); - default: - Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); - break; - } - } - function visitPrivateIdentifier(node) { - if (!shouldTransformPrivateElementsOrClassStaticBlocks) { - return node; - } - if (isStatement(node.parent)) { - return node; - } - return setOriginalNode(factory2.createIdentifier(""), node); - } - function transformPrivateIdentifierInInExpression(node) { - const info = accessPrivateIdentifier2(node.left); - if (info) { - const receiver = visitNode(node.right, visitor, isExpression); - return setOriginalNode( - emitHelpers().createClassPrivateFieldInHelper(info.brandCheckIdentifier, receiver), - node - ); - } - return visitEachChild(node, visitor, context); - } - function visitPropertyAssignment(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return visitEachChild(node, visitor, context); - } - function visitVariableStatement(node) { - const savedPendingStatements = pendingStatements; - pendingStatements = []; - const visitedNode = visitEachChild(node, visitor, context); - const statement = some(pendingStatements) ? [visitedNode, ...pendingStatements] : visitedNode; - pendingStatements = savedPendingStatements; - return statement; - } - function visitVariableDeclaration(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return visitEachChild(node, visitor, context); - } - function visitParameterDeclaration(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return visitEachChild(node, visitor, context); - } - function visitBindingElement(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return visitEachChild(node, visitor, context); - } - function visitExportAssignment(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation( - context, - node, - /*ignoreEmptyStringLiteral*/ - true, - node.isExportEquals ? "" : "default" - ); - } - return visitEachChild(node, visitor, context); - } - function injectPendingExpressions(expression) { - if (some(pendingExpressions)) { - if (isParenthesizedExpression(expression)) { - pendingExpressions.push(expression.expression); - expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions)); - } else { - pendingExpressions.push(expression); - expression = factory2.inlineExpressions(pendingExpressions); - } - pendingExpressions = void 0; - } - return expression; - } - function visitComputedPropertyName(node) { - const expression = visitNode(node.expression, visitor, isExpression); - return factory2.updateComputedPropertyName(node, injectPendingExpressions(expression)); - } - function visitConstructorDeclaration(node) { - if (currentClassContainer) { - return transformConstructor(node, currentClassContainer); - } - return fallbackVisitor(node); - } - function shouldTransformClassElementToWeakMap(node) { - if (shouldTransformPrivateElementsOrClassStaticBlocks) return true; - if (hasStaticModifier(node) && getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) return true; - return false; - } - function visitMethodOrAccessorDeclaration(node) { - Debug.assert(!hasDecorators(node)); - if (!isPrivateIdentifierClassElementDeclaration(node) || !shouldTransformClassElementToWeakMap(node)) { - return visitEachChild(node, classElementVisitor, context); - } - const info = accessPrivateIdentifier2(node.name); - Debug.assert(info, "Undeclared private name for property declaration."); - if (!info.isValid) { - return node; - } - const functionName = getHoistedFunctionName(node); - if (functionName) { - getPendingExpressions().push( - factory2.createAssignment( - functionName, - factory2.createFunctionExpression( - filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)), - node.asteriskToken, - functionName, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - visitFunctionBody(node.body, visitor, context) - ) - ) - ); - } - return void 0; - } - function setCurrentClassElementAnd(classElement, visitor2, arg) { - if (classElement !== currentClassElement) { - const savedCurrentClassElement = currentClassElement; - currentClassElement = classElement; - const result = visitor2(arg); - currentClassElement = savedCurrentClassElement; - return result; - } - return visitor2(arg); - } - function getHoistedFunctionName(node) { - Debug.assert(isPrivateIdentifier(node.name)); - const info = accessPrivateIdentifier2(node.name); - Debug.assert(info, "Undeclared private name for property declaration."); - if (info.kind === "m" /* Method */) { - return info.methodName; - } - if (info.kind === "a" /* Accessor */) { - if (isGetAccessor(node)) { - return info.getterName; - } - if (isSetAccessor(node)) { - return info.setterName; - } - } - } - function tryGetClassThis() { - const lex = getClassLexicalEnvironment(); - return lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); - } - function transformAutoAccessor(node) { - const commentRange = getCommentRange(node); - const sourceMapRange = getSourceMapRange(node); - const name = node.name; - let getterName = name; - let setterName = name; - if (isComputedPropertyName(name) && !isSimpleInlineableExpression(name.expression)) { - const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - if (cacheAssignment) { - getterName = factory2.updateComputedPropertyName(name, visitNode(name.expression, visitor, isExpression)); - setterName = factory2.updateComputedPropertyName(name, cacheAssignment.left); - } else { - const temp = factory2.createTempVariable(hoistVariableDeclaration); - setSourceMapRange(temp, name.expression); - const expression = visitNode(name.expression, visitor, isExpression); - const assignment = factory2.createAssignment(temp, expression); - setSourceMapRange(assignment, name.expression); - getterName = factory2.updateComputedPropertyName(name, assignment); - setterName = factory2.updateComputedPropertyName(name, temp); - } - } - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const backingField = createAccessorPropertyBackingField(factory2, node, modifiers, node.initializer); - setOriginalNode(backingField, node); - setEmitFlags(backingField, 3072 /* NoComments */); - setSourceMapRange(backingField, sourceMapRange); - const receiver = isStatic(node) ? tryGetClassThis() ?? factory2.createThis() : factory2.createThis(); - const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); - setOriginalNode(getter, node); - setCommentRange(getter, commentRange); - setSourceMapRange(getter, sourceMapRange); - const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); - const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); - setOriginalNode(setter, node); - setEmitFlags(setter, 3072 /* NoComments */); - setSourceMapRange(setter, sourceMapRange); - return visitArray([backingField, getter, setter], accessorFieldResultVisitor, isClassElement); - } - function transformPrivateFieldInitializer(node) { - if (shouldTransformClassElementToWeakMap(node)) { - const info = accessPrivateIdentifier2(node.name); - Debug.assert(info, "Undeclared private name for property declaration."); - if (!info.isValid) { - return node; - } - if (info.isStatic && !shouldTransformPrivateElementsOrClassStaticBlocks) { - const statement = transformPropertyOrClassStaticBlock(node, factory2.createThis()); - if (statement) { - return factory2.createClassStaticBlockDeclaration(factory2.createBlock( - [statement], - /*multiLine*/ - true - )); - } - } - return void 0; - } - if (shouldTransformInitializersUsingSet && !isStatic(node) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */) { - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifierLike), - node.name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - } - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - visitNode(node.name, propertyNameVisitor, isPropertyName), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - } - function transformPublicFieldInitializer(node) { - if (shouldTransformInitializers && !isAutoAccessorPropertyDeclaration(node)) { - const expr = getPropertyNameExpressionIfNeeded( - node.name, - /*shouldHoist*/ - !!node.initializer || useDefineForClassFields - ); - if (expr) { - getPendingExpressions().push(...flattenCommaList(expr)); - } - if (isStatic(node) && !shouldTransformPrivateElementsOrClassStaticBlocks) { - const initializerStatement = transformPropertyOrClassStaticBlock(node, factory2.createThis()); - if (initializerStatement) { - const staticBlock = factory2.createClassStaticBlockDeclaration( - factory2.createBlock([initializerStatement]) - ); - setOriginalNode(staticBlock, node); - setCommentRange(staticBlock, node); - setCommentRange(initializerStatement, { pos: -1, end: -1 }); - setSyntheticLeadingComments(initializerStatement, void 0); - setSyntheticTrailingComments(initializerStatement, void 0); - return staticBlock; - } - } - return void 0; - } - return factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - visitNode(node.name, propertyNameVisitor, isPropertyName), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - } - function transformFieldInitializer(node) { - Debug.assert(!hasDecorators(node), "Decorators should already have been transformed and elided."); - return isPrivateIdentifierClassElementDeclaration(node) ? transformPrivateFieldInitializer(node) : transformPublicFieldInitializer(node); - } - function shouldTransformAutoAccessorsInCurrentClass() { - return shouldTransformAutoAccessors === -1 /* True */ || shouldTransformAutoAccessors === 3 /* Maybe */ && !!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !!(lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */); - } - function visitPropertyDeclaration(node) { - if (isAutoAccessorPropertyDeclaration(node) && (shouldTransformAutoAccessorsInCurrentClass() || hasStaticModifier(node) && getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */)) { - return transformAutoAccessor(node); - } - return transformFieldInitializer(node); - } - function shouldForceDynamicThis() { - return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); - } - function ensureDynamicThisIfNeeded(node) { - if (shouldForceDynamicThis()) { - const innerExpression = skipOuterExpressions(node); - if (innerExpression.kind === 110 /* ThisKeyword */) { - noSubstitution.add(innerExpression); - } - } - } - function createPrivateIdentifierAccess(info, receiver) { - receiver = visitNode(receiver, visitor, isExpression); - ensureDynamicThisIfNeeded(receiver); - return createPrivateIdentifierAccessHelper(info, receiver); - } - function createPrivateIdentifierAccessHelper(info, receiver) { - setCommentRange(receiver, moveRangePos(receiver, -1)); - switch (info.kind) { - case "a" /* Accessor */: - return emitHelpers().createClassPrivateFieldGetHelper( - receiver, - info.brandCheckIdentifier, - info.kind, - info.getterName - ); - case "m" /* Method */: - return emitHelpers().createClassPrivateFieldGetHelper( - receiver, - info.brandCheckIdentifier, - info.kind, - info.methodName - ); - case "f" /* Field */: - return emitHelpers().createClassPrivateFieldGetHelper( - receiver, - info.brandCheckIdentifier, - info.kind, - info.isStatic ? info.variableName : void 0 - ); - case "untransformed": - return Debug.fail("Access helpers should not be created for untransformed private elements"); - default: - Debug.assertNever(info, "Unknown private element type"); - } - } - function visitPropertyAccessExpression(node) { - if (isPrivateIdentifier(node.name)) { - const privateIdentifierInfo = accessPrivateIdentifier2(node.name); - if (privateIdentifierInfo) { - return setTextRange( - setOriginalNode( - createPrivateIdentifierAccess(privateIdentifierInfo, node.expression), - node - ), - node - ); - } - } - if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */) { - return visitInvalidSuperProperty(node); - } - if (classConstructor && superClassReference) { - const superProperty = factory2.createReflectGetCall( - superClassReference, - factory2.createStringLiteralFromNode(node.name), - classConstructor - ); - setOriginalNode(superProperty, node.expression); - setTextRange(superProperty, node.expression); - return superProperty; - } - } - return visitEachChild(node, visitor, context); - } - function visitElementAccessExpression(node) { - if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */) { - return visitInvalidSuperProperty(node); - } - if (classConstructor && superClassReference) { - const superProperty = factory2.createReflectGetCall( - superClassReference, - visitNode(node.argumentExpression, visitor, isExpression), - classConstructor - ); - setOriginalNode(superProperty, node.expression); - setTextRange(superProperty, node.expression); - return superProperty; - } - } - return visitEachChild(node, visitor, context); - } - function visitPreOrPostfixUnaryExpression(node, discarded) { - if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { - const operand = skipParentheses(node.operand); - if (isPrivateIdentifierPropertyAccessExpression(operand)) { - let info; - if (info = accessPrivateIdentifier2(operand.name)) { - const receiver = visitNode(operand.expression, visitor, isExpression); - ensureDynamicThisIfNeeded(receiver); - const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); - let expression = createPrivateIdentifierAccess(info, readExpression); - const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); - expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); - expression = createPrivateIdentifierAssignment( - info, - initializeExpression || readExpression, - expression, - 64 /* EqualsToken */ - ); - setOriginalNode(expression, node); - setTextRange(expression, node); - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */) { - const expression = visitInvalidSuperProperty(operand); - return isPrefixUnaryExpression(node) ? factory2.updatePrefixUnaryExpression(node, expression) : factory2.updatePostfixUnaryExpression(node, expression); - } - if (classConstructor && superClassReference) { - let setterName; - let getterName; - if (isPropertyAccessExpression(operand)) { - if (isIdentifier(operand.name)) { - getterName = setterName = factory2.createStringLiteralFromNode(operand.name); - } - } else { - if (isSimpleInlineableExpression(operand.argumentExpression)) { - getterName = setterName = operand.argumentExpression; - } else { - getterName = factory2.createTempVariable(hoistVariableDeclaration); - setterName = factory2.createAssignment(getterName, visitNode(operand.argumentExpression, visitor, isExpression)); - } - } - if (setterName && getterName) { - let expression = factory2.createReflectGetCall(superClassReference, getterName, classConstructor); - setTextRange(expression, operand); - const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); - expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); - expression = factory2.createReflectSetCall(superClassReference, setterName, expression, classConstructor); - setOriginalNode(expression, node); - setTextRange(expression, node); - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - } - } - return visitEachChild(node, visitor, context); - } - function visitForStatement(node) { - return factory2.updateForStatement( - node, - visitNode(node.initializer, discardedValueVisitor, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, discardedValueVisitor, isExpression), - visitIterationBody(node.statement, visitor, context) - ); - } - function visitExpressionStatement(node) { - return factory2.updateExpressionStatement( - node, - visitNode(node.expression, discardedValueVisitor, isExpression) - ); - } - function createCopiableReceiverExpr(receiver) { - const clone = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); - if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { - noSubstitution.add(clone); - } - if (isSimpleInlineableExpression(receiver)) { - return { readExpression: clone, initializeExpression: void 0 }; - } - const readExpression = factory2.createTempVariable(hoistVariableDeclaration); - const initializeExpression = factory2.createAssignment(readExpression, clone); - return { readExpression, initializeExpression }; - } - function visitCallExpression(node) { - var _a; - if (isPrivateIdentifierPropertyAccessExpression(node.expression) && accessPrivateIdentifier2(node.expression.name)) { - const { thisArg, target } = factory2.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion); - if (isCallChain(node)) { - return factory2.updateCallChain( - node, - factory2.createPropertyAccessChain(visitNode(target, visitor, isExpression), node.questionDotToken, "call"), - /*questionDotToken*/ - void 0, - /*typeArguments*/ - void 0, - [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] - ); - } - return factory2.updateCallExpression( - node, - factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), "call"), - /*typeArguments*/ - void 0, - [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] - ); - } - if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { - const invocation = factory2.createFunctionCallCall( - visitNode(node.expression, visitor, isExpression), - lexicalEnvironment.data.classConstructor, - visitNodes2(node.arguments, visitor, isExpression) - ); - setOriginalNode(invocation, node); - setTextRange(invocation, node); - return invocation; - } - return visitEachChild(node, visitor, context); - } - function visitTaggedTemplateExpression(node) { - var _a; - if (isPrivateIdentifierPropertyAccessExpression(node.tag) && accessPrivateIdentifier2(node.tag.name)) { - const { thisArg, target } = factory2.createCallBinding(node.tag, hoistVariableDeclaration, languageVersion); - return factory2.updateTaggedTemplateExpression( - node, - factory2.createCallExpression( - factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), "bind"), - /*typeArguments*/ - void 0, - [visitNode(thisArg, visitor, isExpression)] - ), - /*typeArguments*/ - void 0, - visitNode(node.template, visitor, isTemplateLiteral) - ); - } - if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { - const invocation = factory2.createFunctionBindCall( - visitNode(node.tag, visitor, isExpression), - lexicalEnvironment.data.classConstructor, - [] - ); - setOriginalNode(invocation, node); - setTextRange(invocation, node); - return factory2.updateTaggedTemplateExpression( - node, - invocation, - /*typeArguments*/ - void 0, - visitNode(node.template, visitor, isTemplateLiteral) - ); - } - return visitEachChild(node, visitor, context); - } - function transformClassStaticBlockDeclaration(node) { - if (lexicalEnvironment) { - lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); - } - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - if (isClassThisAssignmentBlock(node)) { - const result = visitNode(node.body.statements[0].expression, visitor, isExpression); - if (isAssignmentExpression( - result, - /*excludeCompoundAssignment*/ - true - ) && result.left === result.right) { - return void 0; - } - return result; - } - if (isClassNamedEvaluationHelperBlock(node)) { - return visitNode(node.body.statements[0].expression, visitor, isExpression); - } - startLexicalEnvironment(); - let statements = setCurrentClassElementAnd( - node, - (statements2) => visitNodes2(statements2, visitor, isStatement), - node.body.statements - ); - statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); - const iife = factory2.createImmediatelyInvokedArrowFunction(statements); - setOriginalNode(skipParentheses(iife.expression), node); - addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); - setOriginalNode(iife, node); - setTextRange(iife, node); - return iife; - } - } - function isAnonymousClassNeedingAssignedName(node) { - if (isClassExpression(node) && !node.name) { - const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { - return false; - } - const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - return hasTransformableStatics; - } - return false; - } - function visitBinaryExpression(node, discarded) { - if (isDestructuringAssignment(node)) { - const savedPendingExpressions = pendingExpressions; - pendingExpressions = void 0; - node = factory2.updateBinaryExpression( - node, - visitNode(node.left, assignmentTargetVisitor, isExpression), - node.operatorToken, - visitNode(node.right, visitor, isExpression) - ); - const expr = some(pendingExpressions) ? factory2.inlineExpressions(compact([...pendingExpressions, node])) : node; - pendingExpressions = savedPendingExpressions; - return expr; - } - if (isAssignmentExpression(node)) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - Debug.assertNode(node, isAssignmentExpression); - } - const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); - if (isPrivateIdentifierPropertyAccessExpression(left)) { - const info = accessPrivateIdentifier2(left.name); - if (info) { - return setTextRange( - setOriginalNode( - createPrivateIdentifierAssignment(info, left.expression, node.right, node.operatorToken.kind), - node - ), - node - ); - } - } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */) { - return factory2.updateBinaryExpression( - node, - visitInvalidSuperProperty(node.left), - node.operatorToken, - visitNode(node.right, visitor, isExpression) - ); - } - if (classConstructor && superClassReference) { - let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; - if (setterName) { - let expression = visitNode(node.right, visitor, isExpression); - if (isCompoundAssignment(node.operatorToken.kind)) { - let getterName = setterName; - if (!isSimpleInlineableExpression(setterName)) { - getterName = factory2.createTempVariable(hoistVariableDeclaration); - setterName = factory2.createAssignment(getterName, setterName); - } - const superPropertyGet = factory2.createReflectGetCall( - superClassReference, - getterName, - classConstructor - ); - setOriginalNode(superPropertyGet, node.left); - setTextRange(superPropertyGet, node.left); - expression = factory2.createBinaryExpression( - superPropertyGet, - getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), - expression - ); - setTextRange(expression, node); - } - const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); - if (temp) { - expression = factory2.createAssignment(temp, expression); - setTextRange(temp, node); - } - expression = factory2.createReflectSetCall( - superClassReference, - setterName, - expression, - classConstructor - ); - setOriginalNode(expression, node); - setTextRange(expression, node); - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - } - } - if (isPrivateIdentifierInExpression(node)) { - return transformPrivateIdentifierInInExpression(node); - } - return visitEachChild(node, visitor, context); - } - function visitCommaListExpression(node, discarded) { - const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); - return factory2.updateCommaListExpression(node, elements); - } - function visitParenthesizedExpression(node, discarded) { - const visitorFunc = discarded ? discardedValueVisitor : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updateParenthesizedExpression(node, expression); - } - function createPrivateIdentifierAssignment(info, receiver, right, operator) { - receiver = visitNode(receiver, visitor, isExpression); - right = visitNode(right, visitor, isExpression); - ensureDynamicThisIfNeeded(receiver); - if (isCompoundAssignment(operator)) { - const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); - receiver = initializeExpression || readExpression; - right = factory2.createBinaryExpression( - createPrivateIdentifierAccessHelper(info, readExpression), - getNonAssignmentOperatorForCompoundAssignment(operator), - right - ); - } - setCommentRange(receiver, moveRangePos(receiver, -1)); - switch (info.kind) { - case "a" /* Accessor */: - return emitHelpers().createClassPrivateFieldSetHelper( - receiver, - info.brandCheckIdentifier, - right, - info.kind, - info.setterName - ); - case "m" /* Method */: - return emitHelpers().createClassPrivateFieldSetHelper( - receiver, - info.brandCheckIdentifier, - right, - info.kind, - /*f*/ - void 0 - ); - case "f" /* Field */: - return emitHelpers().createClassPrivateFieldSetHelper( - receiver, - info.brandCheckIdentifier, - right, - info.kind, - info.isStatic ? info.variableName : void 0 - ); - case "untransformed": - return Debug.fail("Access helpers should not be created for untransformed private elements"); - default: - Debug.assertNever(info, "Unknown private element type"); - } - } - function getPrivateInstanceMethodsAndAccessors(node) { - return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); - } - function getClassFacts(node) { - var _a; - let facts = 0 /* None */; - const original = getOriginalNode(node); - if (isClassLike(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { - facts |= 1 /* ClassWasDecorated */; - } - if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { - facts |= 2 /* NeedsClassConstructorReference */; - } - let containsPublicInstanceFields = false; - let containsInitializedPublicInstanceFields = false; - let containsInstancePrivateElements = false; - let containsInstanceAutoAccessors = false; - for (const member of node.members) { - if (isStatic(member)) { - if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { - facts |= 2 /* NeedsClassConstructorReference */; - } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { - facts |= 2 /* NeedsClassConstructorReference */; - } - if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { - if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { - facts |= 8 /* NeedsSubstitutionForThisInClassStaticField */; - if (!(facts & 1 /* ClassWasDecorated */)) { - facts |= 2 /* NeedsClassConstructorReference */; - } - } - if (shouldTransformSuperInStaticInitializers && member.transformFlags & 134217728 /* ContainsLexicalSuper */) { - if (!(facts & 1 /* ClassWasDecorated */)) { - facts |= 2 /* NeedsClassConstructorReference */ | 4 /* NeedsClassSuperReference */; - } - } - } - } else if (!hasAbstractModifier(getOriginalNode(member))) { - if (isAutoAccessorPropertyDeclaration(member)) { - containsInstanceAutoAccessors = true; - containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); - } else if (isPrivateIdentifierClassElementDeclaration(member)) { - containsInstancePrivateElements = true; - if (resolver.hasNodeCheckFlag(member, 262144 /* ContainsConstructorReference */)) { - facts |= 2 /* NeedsClassConstructorReference */; - } - } else if (isPropertyDeclaration(member)) { - containsPublicInstanceFields = true; - containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); - } - } - } - const willHoistInitializersToConstructor = shouldTransformInitializersUsingDefine && containsPublicInstanceFields || shouldTransformInitializersUsingSet && containsInitializedPublicInstanceFields || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstancePrivateElements || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstanceAutoAccessors && shouldTransformAutoAccessors === -1 /* True */; - if (willHoistInitializersToConstructor) { - facts |= 16 /* WillHoistInitializersToConstructor */; - } - return facts; - } - function visitExpressionWithTypeArgumentsInHeritageClause(node) { - var _a; - const facts = ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts) || 0 /* None */; - if (facts & 4 /* NeedsClassSuperReference */) { - const temp = factory2.createTempVariable( - hoistVariableDeclaration, - /*reservedInNestedScopes*/ - true - ); - getClassLexicalEnvironment().superClassReference = temp; - return factory2.updateExpressionWithTypeArguments( - node, - factory2.createAssignment( - temp, - visitNode(node.expression, visitor, isExpression) - ), - /*typeArguments*/ - void 0 - ); - } - return visitEachChild(node, visitor, context); - } - function visitInNewClassLexicalEnvironment(node, visitor2) { - var _a; - const savedCurrentClassContainer = currentClassContainer; - const savedPendingExpressions = pendingExpressions; - const savedLexicalEnvironment = lexicalEnvironment; - currentClassContainer = node; - pendingExpressions = void 0; - startClassLexicalEnvironment(); - const shouldAlwaysTransformPrivateStaticElements = getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */; - if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldAlwaysTransformPrivateStaticElements) { - const name = getNameOfDeclaration(node); - if (name && isIdentifier(name)) { - getPrivateIdentifierEnvironment().data.className = name; - } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { - if (isStringLiteral(node.emitNode.assignedName)) { - if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { - getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; - } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { - const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); - getPrivateIdentifierEnvironment().data.className = prefixName; - } - } - } - } - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - const privateInstanceMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node); - if (some(privateInstanceMethodsAndAccessors)) { - getPrivateIdentifierEnvironment().data.weakSetName = createHoistedVariableForClass( - "instances", - privateInstanceMethodsAndAccessors[0].name - ); - } - } - const facts = getClassFacts(node); - if (facts) { - getClassLexicalEnvironment().facts = facts; - } - if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { - enableSubstitutionForClassStaticThisOrSuperReference(); - } - const result = visitor2(node, facts); - endClassLexicalEnvironment(); - Debug.assert(lexicalEnvironment === savedLexicalEnvironment); - currentClassContainer = savedCurrentClassContainer; - pendingExpressions = savedPendingExpressions; - return result; - } - function visitClassDeclaration(node) { - return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); - } - function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { - var _a, _b; - let pendingClassReferenceAssignment; - if (facts & 2 /* NeedsClassConstructorReference */) { - if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a = node.emitNode) == null ? void 0 : _a.classThis)) { - getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; - pendingClassReferenceAssignment = factory2.createAssignment(node.emitNode.classThis, factory2.getInternalName(node)); - } else { - const temp = factory2.createTempVariable( - hoistVariableDeclaration, - /*reservedInNestedScopes*/ - true - ); - getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); - pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); - } - } - if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } - const isClassWithConstructorReference = resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */); - const isExport = hasSyntacticModifier(node, 32 /* Export */); - const isDefault = hasSyntacticModifier(node, 2048 /* Default */); - let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); - const { members, prologue } = transformClassMembers(node); - const statements = []; - if (pendingClassReferenceAssignment) { - getPendingExpressions().unshift(pendingClassReferenceAssignment); - } - if (some(pendingExpressions)) { - statements.push(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))); - } - if (shouldTransformInitializersUsingSet || shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) { - const staticProperties = getStaticPropertiesAndClassStaticBlock(node); - if (some(staticProperties)) { - addPropertyOrClassStaticBlockStatements(statements, staticProperties, factory2.getInternalName(node)); - } - } - if (statements.length > 0 && isExport && isDefault) { - modifiers = visitNodes2(modifiers, (node2) => isExportOrDefaultModifier(node2) ? void 0 : node2, isModifier); - statements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) - )); - } - const alias = getClassLexicalEnvironment().classConstructor; - if (isClassWithConstructorReference && alias) { - enableSubstitutionForClassAliases(); - classAliases[getOriginalNodeId(node)] = alias; - } - const classDecl = factory2.updateClassDeclaration( - node, - modifiers, - node.name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - statements.unshift(classDecl); - if (prologue) { - statements.unshift(factory2.createExpressionStatement(prologue)); - } - return statements; - } - function visitClassExpression(node) { - return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); - } - function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { - var _a, _b, _c; - const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); - const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); - const isClassWithConstructorReference = resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */); - const requiresBlockScopedVar = resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */); - let temp; - function createClassTempVar() { - var _a2; - if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { - return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; - } - const temp2 = factory2.createTempVariable( - requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, - /*reservedInNestedScopes*/ - true - ); - getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); - return temp2; - } - if ((_a = node.emitNode) == null ? void 0 : _a.classThis) { - getClassLexicalEnvironment().classThis = node.emitNode.classThis; - } - if (facts & 2 /* NeedsClassConstructorReference */) { - temp ?? (temp = createClassTempVar()); - } - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); - const { members, prologue } = transformClassMembers(node); - const classExpression = factory2.updateClassExpression( - node, - modifiers, - node.name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - const expressions = []; - if (prologue) { - expressions.push(prologue); - } - const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); - if (hasTransformableStatics || some(pendingExpressions)) { - if (isDecoratedClassDeclaration) { - Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); - if (some(pendingExpressions)) { - addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); - } - if (some(staticPropertiesOrClassStaticBlocks)) { - addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); - } - if (temp) { - expressions.push(factory2.createAssignment(temp, classExpression)); - } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { - expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); - } else { - expressions.push(classExpression); - } - } else { - temp ?? (temp = createClassTempVar()); - if (isClassWithConstructorReference) { - enableSubstitutionForClassAliases(); - const alias = factory2.cloneNode(temp); - alias.emitNode.autoGenerate.flags &= ~8 /* ReservedInNestedScopes */; - classAliases[getOriginalNodeId(node)] = alias; - } - expressions.push(factory2.createAssignment(temp, classExpression)); - addRange(expressions, pendingExpressions); - addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); - expressions.push(factory2.cloneNode(temp)); - } - } else { - expressions.push(classExpression); - } - if (expressions.length > 1) { - addEmitFlags(classExpression, 131072 /* Indented */); - expressions.forEach(startOnNewLine); - } - return factory2.inlineExpressions(expressions); - } - function visitClassStaticBlockDeclaration(node) { - if (!shouldTransformPrivateElementsOrClassStaticBlocks) { - return visitEachChild(node, visitor, context); - } - return void 0; - } - function visitThisExpression(node) { - if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classThis, classConstructor } = lexicalEnvironment.data; - return classThis ?? classConstructor ?? node; - } - return node; - } - function transformClassMembers(node) { - const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); - if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { - for (const member of node.members) { - if (isPrivateIdentifierClassElementDeclaration(member)) { - if (shouldTransformClassElementToWeakMap(member)) { - addPrivateIdentifierToEnvironment(member, member.name, addPrivateIdentifierClassElementToEnvironment); - } else { - const privateEnv = getPrivateIdentifierEnvironment(); - setPrivateIdentifier(privateEnv, member.name, { kind: "untransformed" }); - } - } - } - if (shouldTransformPrivateElementsOrClassStaticBlocks) { - if (some(getPrivateInstanceMethodsAndAccessors(node))) { - createBrandCheckWeakSetForPrivateMethods(); - } - } - if (shouldTransformAutoAccessorsInCurrentClass()) { - for (const member of node.members) { - if (isAutoAccessorPropertyDeclaration(member)) { - const storageName = factory2.getGeneratedPrivateNameForNode( - member.name, - /*prefix*/ - void 0, - "_accessor_storage" - ); - if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInClass && hasStaticModifier(member)) { - addPrivateIdentifierToEnvironment(member, storageName, addPrivateIdentifierPropertyDeclarationToEnvironment); - } else { - const privateEnv = getPrivateIdentifierEnvironment(); - setPrivateIdentifier(privateEnv, storageName, { kind: "untransformed" }); - } - } - } - } - } - let members = visitNodes2(node.members, classElementVisitor, isClassElement); - let syntheticConstructor; - if (!some(members, isConstructorDeclaration)) { - syntheticConstructor = transformConstructor( - /*constructor*/ - void 0, - node - ); - } - let prologue; - let syntheticStaticBlock; - if (!shouldTransformPrivateElementsOrClassStaticBlocks && some(pendingExpressions)) { - let statement = factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions)); - if (statement.transformFlags & 134234112 /* ContainsLexicalThisOrSuper */) { - const temp = factory2.createTempVariable(hoistVariableDeclaration); - const arrow = factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - [], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - factory2.createBlock([statement]) - ); - prologue = factory2.createAssignment(temp, arrow); - statement = factory2.createExpressionStatement(factory2.createCallExpression( - temp, - /*typeArguments*/ - void 0, - [] - )); - } - const block = factory2.createBlock([statement]); - syntheticStaticBlock = factory2.createClassStaticBlockDeclaration(block); - pendingExpressions = void 0; - } - if (syntheticConstructor || syntheticStaticBlock) { - let membersArray; - const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); - const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); - membersArray = append(membersArray, classThisAssignmentBlock); - membersArray = append(membersArray, classNamedEvaluationHelperBlock); - membersArray = append(membersArray, syntheticConstructor); - membersArray = append(membersArray, syntheticStaticBlock); - const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; - membersArray = addRange(membersArray, remainingMembers); - members = setTextRange( - factory2.createNodeArray(membersArray), - /*location*/ - node.members - ); - } - return { members, prologue }; - } - function createBrandCheckWeakSetForPrivateMethods() { - const { weakSetName } = getPrivateIdentifierEnvironment().data; - Debug.assert(weakSetName, "weakSetName should be set in private identifier environment"); - getPendingExpressions().push( - factory2.createAssignment( - weakSetName, - factory2.createNewExpression( - factory2.createIdentifier("WeakSet"), - /*typeArguments*/ - void 0, - [] - ) - ) - ); - } - function transformConstructor(constructor, container) { - constructor = visitNode(constructor, visitor, isConstructorDeclaration); - if (!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) || !(lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */)) { - return constructor; - } - const extendsClauseElement = getEffectiveBaseTypeNode(container); - const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */); - const parameters = visitParameterList(constructor ? constructor.parameters : void 0, visitor, context); - const body = transformConstructorBody(container, constructor, isDerivedClass); - if (!body) { - return constructor; - } - if (constructor) { - Debug.assert(parameters); - return factory2.updateConstructorDeclaration( - constructor, - /*modifiers*/ - void 0, - parameters, - body - ); - } - return startOnNewLine( - setOriginalNode( - setTextRange( - factory2.createConstructorDeclaration( - /*modifiers*/ - void 0, - parameters ?? [], - body - ), - constructor || container - ), - constructor - ) - ); - } - function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { - const superStatementIndex = superPath[superPathDepth]; - const superStatement = statementsIn[superStatementIndex]; - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); - statementOffset = superStatementIndex + 1; - if (isTryStatement(superStatement)) { - const tryBlockStatements = []; - transformConstructorBodyWorker( - tryBlockStatements, - superStatement.tryBlock.statements, - /*statementOffset*/ - 0, - superPath, - superPathDepth + 1, - initializerStatements, - constructor - ); - const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); - setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); - statementsOut.push(factory2.updateTryStatement( - superStatement, - factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), - visitNode(superStatement.catchClause, visitor, isCatchClause), - visitNode(superStatement.finallyBlock, visitor, isBlock) - )); - } else { - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); - while (statementOffset < statementsIn.length) { - const statement = statementsIn[statementOffset]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - statementOffset++; - } else { - break; - } - } - addRange(statementsOut, initializerStatements); - } - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); - } - function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; - const instanceProperties = getProperties( - node, - /*requireInitializer*/ - false, - /*isStatic*/ - false - ); - let properties = instanceProperties; - if (!useDefineForClassFields) { - properties = filter(properties, (property) => !!property.initializer || isPrivateIdentifier(property.name) || hasAccessorModifier(property)); - } - const privateMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node); - const needsConstructorBody = some(properties) || some(privateMethodsAndAccessors); - if (!constructor && !needsConstructorBody) { - return visitFunctionBody( - /*node*/ - void 0, - visitor, - context - ); - } - resumeLexicalEnvironment(); - const needsSyntheticConstructor = !constructor && isDerivedClass; - let statementOffset = 0; - let statements = []; - const initializerStatements = []; - const receiver = factory2.createThis(); - addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); - if (constructor) { - const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); - addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); - addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); - } else { - addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); - } - if (constructor == null ? void 0 : constructor.body) { - statementOffset = factory2.copyPrologue( - constructor.body.statements, - statements, - /*ensureUseStrict*/ - false, - visitor - ); - const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); - if (superStatementIndices.length) { - transformConstructorBodyWorker( - statements, - constructor.body.statements, - statementOffset, - superStatementIndices, - /*superPathDepth*/ - 0, - initializerStatements, - constructor - ); - } else { - while (statementOffset < constructor.body.statements.length) { - const statement = constructor.body.statements[statementOffset]; - if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { - statementOffset++; - } else { - break; - } - } - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); - } - } else { - if (needsSyntheticConstructor) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] - ) - ) - ); - } - addRange(statements, initializerStatements); - } - statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); - if (statements.length === 0 && !constructor) { - return void 0; - } - const multiLine = (constructor == null ? void 0 : constructor.body) && constructor.body.statements.length >= statements.length ? constructor.body.multiLine ?? statements.length > 0 : statements.length > 0; - return setTextRange( - factory2.createBlock( - setTextRange( - factory2.createNodeArray(statements), - /*location*/ - ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) ?? node.members - ), - multiLine - ), - /*location*/ - constructor == null ? void 0 : constructor.body - ); - } - function addPropertyOrClassStaticBlockStatements(statements, properties, receiver) { - for (const property of properties) { - if (isStatic(property) && !shouldTransformPrivateElementsOrClassStaticBlocks) { - continue; - } - const statement = transformPropertyOrClassStaticBlock(property, receiver); - if (!statement) { - continue; - } - statements.push(statement); - } - } - function transformPropertyOrClassStaticBlock(property, receiver) { - const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); - if (!expression) { - return void 0; - } - const statement = factory2.createExpressionStatement(expression); - setOriginalNode(statement, property); - addEmitFlags(statement, getEmitFlags(property) & 3072 /* NoComments */); - setCommentRange(statement, property); - const propertyOriginalNode = getOriginalNode(property); - if (isParameter(propertyOriginalNode)) { - setSourceMapRange(statement, propertyOriginalNode); - removeAllComments(statement); - } else { - setSourceMapRange(statement, moveRangePastModifiers(property)); - } - setSyntheticLeadingComments(expression, void 0); - setSyntheticTrailingComments(expression, void 0); - if (hasAccessorModifier(propertyOriginalNode)) { - addEmitFlags(statement, 3072 /* NoComments */); - } - return statement; - } - function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { - const expressions = []; - for (const property of propertiesOrClassStaticBlocks) { - const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( - property, - () => transformProperty(property, receiver), - /*arg*/ - void 0 - ); - if (!expression) { - continue; - } - startOnNewLine(expression); - setOriginalNode(expression, property); - addEmitFlags(expression, getEmitFlags(property) & 3072 /* NoComments */); - setSourceMapRange(expression, moveRangePastModifiers(property)); - setCommentRange(expression, property); - expressions.push(expression); - } - return expressions; - } - function transformProperty(property, receiver) { - var _a; - const savedCurrentClassElement = currentClassElement; - const transformed = transformPropertyWorker(property, receiver); - if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { - setOriginalNode(transformed, property); - addEmitFlags(transformed, 4 /* AdviseOnEmitNode */); - setSourceMapRange(transformed, getSourceMapRange(property.name)); - lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); - } - currentClassElement = savedCurrentClassElement; - return transformed; - } - function transformPropertyWorker(property, receiver) { - const emitAssignment = !useDefineForClassFields; - if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { - property = transformNamedEvaluation(context, property); - } - const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; - if (hasStaticModifier(property)) { - currentClassElement = property; - } - if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { - const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); - if (privateIdentifierInfo) { - if (privateIdentifierInfo.kind === "f" /* Field */) { - if (!privateIdentifierInfo.isStatic) { - return createPrivateInstanceFieldInitializer( - factory2, - receiver, - visitNode(property.initializer, visitor, isExpression), - privateIdentifierInfo.brandCheckIdentifier - ); - } else { - return createPrivateStaticFieldInitializer( - factory2, - privateIdentifierInfo.variableName, - visitNode(property.initializer, visitor, isExpression) - ); - } - } else { - return void 0; - } - } else { - Debug.fail("Undeclared private name for property declaration."); - } - } - if ((isPrivateIdentifier(propertyName) || hasStaticModifier(property)) && !property.initializer) { - return void 0; - } - const propertyOriginalNode = getOriginalNode(property); - if (hasSyntacticModifier(propertyOriginalNode, 64 /* Abstract */)) { - return void 0; - } - let initializer = visitNode(property.initializer, visitor, isExpression); - if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { - const localName = factory2.cloneNode(propertyName); - if (initializer) { - if (isParenthesizedExpression(initializer) && isCommaExpression(initializer.expression) && isCallToHelper(initializer.expression.left, "___runInitializers") && isVoidExpression(initializer.expression.right) && isNumericLiteral(initializer.expression.right.expression)) { - initializer = initializer.expression.left; - } - initializer = factory2.inlineExpressions([initializer, localName]); - } else { - initializer = localName; - } - setEmitFlags(propertyName, 3072 /* NoComments */ | 96 /* NoSourceMap */); - setSourceMapRange(localName, propertyOriginalNode.name); - setEmitFlags(localName, 3072 /* NoComments */); - } else { - initializer ?? (initializer = factory2.createVoidZero()); - } - if (emitAssignment || isPrivateIdentifier(propertyName)) { - const memberAccess = createMemberAccessForPropertyName( - factory2, - receiver, - propertyName, - /*location*/ - propertyName - ); - addEmitFlags(memberAccess, 1024 /* NoLeadingComments */); - const expression = factory2.createAssignment(memberAccess, initializer); - return expression; - } else { - const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName; - const descriptor = factory2.createPropertyDescriptor({ value: initializer, configurable: true, writable: true, enumerable: true }); - return factory2.createObjectDefinePropertyCall(receiver, name, descriptor); - } - } - function enableSubstitutionForClassAliases() { - if ((enabledSubstitutions & 1 /* ClassAliases */) === 0) { - enabledSubstitutions |= 1 /* ClassAliases */; - context.enableSubstitution(80 /* Identifier */); - classAliases = []; - } - } - function enableSubstitutionForClassStaticThisOrSuperReference() { - if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { - enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; - context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(262 /* FunctionDeclaration */); - context.enableEmitNotification(218 /* FunctionExpression */); - context.enableEmitNotification(176 /* Constructor */); - context.enableEmitNotification(177 /* GetAccessor */); - context.enableEmitNotification(178 /* SetAccessor */); - context.enableEmitNotification(174 /* MethodDeclaration */); - context.enableEmitNotification(172 /* PropertyDeclaration */); - context.enableEmitNotification(167 /* ComputedPropertyName */); - } - } - function addInstanceMethodStatements(statements, methods, receiver) { - if (!shouldTransformPrivateElementsOrClassStaticBlocks || !some(methods)) { - return; - } - const { weakSetName } = getPrivateIdentifierEnvironment().data; - Debug.assert(weakSetName, "weakSetName should be set in private identifier environment"); - statements.push( - factory2.createExpressionStatement( - createPrivateInstanceMethodInitializer(factory2, receiver, weakSetName) - ) - ); - } - function visitInvalidSuperProperty(node) { - return isPropertyAccessExpression(node) ? factory2.updatePropertyAccessExpression( - node, - factory2.createVoidZero(), - node.name - ) : factory2.updateElementAccessExpression( - node, - factory2.createVoidZero(), - visitNode(node.argumentExpression, visitor, isExpression) - ); - } - function getPropertyNameExpressionIfNeeded(name, shouldHoist) { - if (isComputedPropertyName(name)) { - const cacheAssignment = findComputedPropertyNameCacheAssignment(name); - const expression = visitNode(name.expression, visitor, isExpression); - const innerExpression = skipPartiallyEmittedExpressions(expression); - const inlinable = isSimpleInlineableExpression(innerExpression); - const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); - if (!alreadyTransformed && !inlinable && shouldHoist) { - const generatedName = factory2.getGeneratedNameForNode(name); - if (resolver.hasNodeCheckFlag(name, 32768 /* BlockScopedBindingInLoop */)) { - addBlockScopedVariable(generatedName); - } else { - hoistVariableDeclaration(generatedName); - } - return factory2.createAssignment(generatedName, expression); - } - return inlinable || isIdentifier(innerExpression) ? void 0 : expression; - } - } - function startClassLexicalEnvironment() { - lexicalEnvironment = { previous: lexicalEnvironment, data: void 0 }; - } - function endClassLexicalEnvironment() { - lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; - } - function getClassLexicalEnvironment() { - Debug.assert(lexicalEnvironment); - return lexicalEnvironment.data ?? (lexicalEnvironment.data = { - facts: 0 /* None */, - classConstructor: void 0, - classThis: void 0, - superClassReference: void 0 - // privateIdentifierEnvironment: undefined, - }); - } - function getPrivateIdentifierEnvironment() { - Debug.assert(lexicalEnvironment); - return lexicalEnvironment.privateEnv ?? (lexicalEnvironment.privateEnv = newPrivateEnvironment({ - className: void 0, - weakSetName: void 0 - })); - } - function getPendingExpressions() { - return pendingExpressions ?? (pendingExpressions = []); - } - function addPrivateIdentifierClassElementToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { - if (isAutoAccessorPropertyDeclaration(node)) { - addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } else if (isPropertyDeclaration(node)) { - addPrivateIdentifierPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } else if (isMethodDeclaration(node)) { - addPrivateIdentifierMethodDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } else if (isGetAccessorDeclaration(node)) { - addPrivateIdentifierGetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } else if (isSetAccessorDeclaration(node)) { - addPrivateIdentifierSetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } - } - function addPrivateIdentifierPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { - if (isStatic2) { - const brandCheckIdentifier = Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment"); - const variableName = createHoistedVariableForPrivateName(name); - setPrivateIdentifier(privateEnv, name, { - kind: "f" /* Field */, - isStatic: true, - brandCheckIdentifier, - variableName, - isValid - }); - } else { - const weakMapName = createHoistedVariableForPrivateName(name); - setPrivateIdentifier(privateEnv, name, { - kind: "f" /* Field */, - isStatic: false, - brandCheckIdentifier: weakMapName, - isValid - }); - getPendingExpressions().push(factory2.createAssignment( - weakMapName, - factory2.createNewExpression( - factory2.createIdentifier("WeakMap"), - /*typeArguments*/ - void 0, - [] - ) - )); - } - } - function addPrivateIdentifierMethodDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { - const methodName = createHoistedVariableForPrivateName(name); - const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); - setPrivateIdentifier(privateEnv, name, { - kind: "m" /* Method */, - methodName, - brandCheckIdentifier, - isStatic: isStatic2, - isValid - }); - } - function addPrivateIdentifierGetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { - const getterName = createHoistedVariableForPrivateName(name, "_get"); - const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); - if ((previousInfo == null ? void 0 : previousInfo.kind) === "a" /* Accessor */ && previousInfo.isStatic === isStatic2 && !previousInfo.getterName) { - previousInfo.getterName = getterName; - } else { - setPrivateIdentifier(privateEnv, name, { - kind: "a" /* Accessor */, - getterName, - setterName: void 0, - brandCheckIdentifier, - isStatic: isStatic2, - isValid - }); - } - } - function addPrivateIdentifierSetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { - const setterName = createHoistedVariableForPrivateName(name, "_set"); - const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); - if ((previousInfo == null ? void 0 : previousInfo.kind) === "a" /* Accessor */ && previousInfo.isStatic === isStatic2 && !previousInfo.setterName) { - previousInfo.setterName = setterName; - } else { - setPrivateIdentifier(privateEnv, name, { - kind: "a" /* Accessor */, - getterName: void 0, - setterName, - brandCheckIdentifier, - isStatic: isStatic2, - isValid - }); - } - } - function addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { - const getterName = createHoistedVariableForPrivateName(name, "_get"); - const setterName = createHoistedVariableForPrivateName(name, "_set"); - const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); - setPrivateIdentifier(privateEnv, name, { - kind: "a" /* Accessor */, - getterName, - setterName, - brandCheckIdentifier, - isStatic: isStatic2, - isValid - }); - } - function addPrivateIdentifierToEnvironment(node, name, addDeclaration) { - const lex = getClassLexicalEnvironment(); - const privateEnv = getPrivateIdentifierEnvironment(); - const previousInfo = getPrivateIdentifier(privateEnv, name); - const isStatic2 = hasStaticModifier(node); - const isValid = !isReservedPrivateName(name) && previousInfo === void 0; - addDeclaration(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); - } - function createHoistedVariableForClass(name, node, suffix) { - const { className } = getPrivateIdentifierEnvironment().data; - const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_"; - const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0, - /*reservedInNestedScopes*/ - true, - prefix, - suffix - ); - if (resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */)) { - addBlockScopedVariable(identifier); - } else { - hoistVariableDeclaration(identifier); - } - return identifier; - } - function createHoistedVariableForPrivateName(name, suffix) { - const text = tryGetTextOfPropertyName(name); - return createHoistedVariableForClass((text == null ? void 0 : text.substring(1)) ?? name, name, suffix); - } - function accessPrivateIdentifier2(name) { - const info = accessPrivateIdentifier(lexicalEnvironment, name); - return (info == null ? void 0 : info.kind) === "untransformed" ? void 0 : info; - } - function wrapPrivateIdentifierForDestructuringTarget(node) { - const parameter = factory2.getGeneratedNameForNode(node); - const info = accessPrivateIdentifier2(node.name); - if (!info) { - return visitEachChild(node, visitor, context); - } - let receiver = node.expression; - if (isThisProperty(node) || isSuperProperty(node) || !isSimpleCopiableExpression(node.expression)) { - receiver = factory2.createTempVariable( - hoistVariableDeclaration, - /*reservedInNestedScopes*/ - true - ); - getPendingExpressions().push(factory2.createBinaryExpression(receiver, 64 /* EqualsToken */, visitNode(node.expression, visitor, isExpression))); - } - return factory2.createAssignmentTargetWrapper( - parameter, - createPrivateIdentifierAssignment( - info, - receiver, - parameter, - 64 /* EqualsToken */ - ) - ); - } - function visitDestructuringAssignmentTarget(node) { - if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) { - return visitAssignmentPattern(node); - } - if (isPrivateIdentifierPropertyAccessExpression(node)) { - return wrapPrivateIdentifierForDestructuringTarget(node); - } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { - const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; - if (facts & 1 /* ClassWasDecorated */) { - return visitInvalidSuperProperty(node); - } else if (classConstructor && superClassReference) { - const name = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0; - if (name) { - const temp = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - return factory2.createAssignmentTargetWrapper( - temp, - factory2.createReflectSetCall( - superClassReference, - name, - temp, - classConstructor - ) - ); - } - } - } - return visitEachChild(node, visitor, context); - } - function visitAssignmentElement(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - if (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - )) { - const left = visitDestructuringAssignmentTarget(node.left); - const right = visitNode(node.right, visitor, isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); - } - return visitDestructuringAssignmentTarget(node); - } - function visitAssignmentRestElement(node) { - if (isLeftHandSideExpression(node.expression)) { - const expression = visitDestructuringAssignmentTarget(node.expression); - return factory2.updateSpreadElement(node, expression); - } - return visitEachChild(node, visitor, context); - } - function visitArrayAssignmentElement(node) { - if (isArrayBindingOrAssignmentElement(node)) { - if (isSpreadElement(node)) return visitAssignmentRestElement(node); - if (!isOmittedExpression(node)) return visitAssignmentElement(node); - } - return visitEachChild(node, visitor, context); - } - function visitAssignmentProperty(node) { - const name = visitNode(node.name, visitor, isPropertyName); - if (isAssignmentExpression( - node.initializer, - /*excludeCompoundAssignment*/ - true - )) { - const assignmentElement = visitAssignmentElement(node.initializer); - return factory2.updatePropertyAssignment(node, name, assignmentElement); - } - if (isLeftHandSideExpression(node.initializer)) { - const assignmentElement = visitDestructuringAssignmentTarget(node.initializer); - return factory2.updatePropertyAssignment(node, name, assignmentElement); - } - return visitEachChild(node, visitor, context); - } - function visitShorthandAssignmentProperty(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node); - } - return visitEachChild(node, visitor, context); - } - function visitAssignmentRestProperty(node) { - if (isLeftHandSideExpression(node.expression)) { - const expression = visitDestructuringAssignmentTarget(node.expression); - return factory2.updateSpreadAssignment(node, expression); - } - return visitEachChild(node, visitor, context); - } - function visitObjectAssignmentElement(node) { - Debug.assertNode(node, isObjectBindingOrAssignmentElement); - if (isSpreadAssignment(node)) return visitAssignmentRestProperty(node); - if (isShorthandPropertyAssignment(node)) return visitShorthandAssignmentProperty(node); - if (isPropertyAssignment(node)) return visitAssignmentProperty(node); - return visitEachChild(node, visitor, context); - } - function visitAssignmentPattern(node) { - if (isArrayLiteralExpression(node)) { - return factory2.updateArrayLiteralExpression( - node, - visitNodes2(node.elements, visitArrayAssignmentElement, isExpression) - ); - } else { - return factory2.updateObjectLiteralExpression( - node, - visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike) - ); - } - } - function onEmitNode(hint, node, emitCallback) { - const original = getOriginalNode(node); - const lex = lexicalEnvironmentMap.get(original); - if (lex) { - const savedLexicalEnvironment = lexicalEnvironment; - const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; - lexicalEnvironment = lex; - previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; - shouldSubstituteThisWithClassThis = !isClassStaticBlockDeclaration(original) || !(getInternalEmitFlags(original) & 32 /* TransformPrivateStaticElements */); - previousOnEmitNode(hint, node, emitCallback); - shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; - previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis; - lexicalEnvironment = savedLexicalEnvironment; - return; - } - switch (node.kind) { - case 218 /* FunctionExpression */: - if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { - break; - } - // falls through - case 262 /* FunctionDeclaration */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - case 172 /* PropertyDeclaration */: { - const savedLexicalEnvironment = lexicalEnvironment; - const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; - lexicalEnvironment = void 0; - previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; - shouldSubstituteThisWithClassThis = false; - previousOnEmitNode(hint, node, emitCallback); - shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; - previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis; - lexicalEnvironment = savedLexicalEnvironment; - return; - } - case 167 /* ComputedPropertyName */: { - const savedLexicalEnvironment = lexicalEnvironment; - const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; - lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; - shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; - previousOnEmitNode(hint, node, emitCallback); - shouldSubstituteThisWithClassThis = savedShouldSubstituteThisWithClassThis; - lexicalEnvironment = savedLexicalEnvironment; - return; - } - } - previousOnEmitNode(hint, node, emitCallback); - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - case 110 /* ThisKeyword */: - return substituteThisExpression(node); - } - return node; - } - function substituteThisExpression(node) { - if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { - const { facts, classConstructor, classThis } = lexicalEnvironment.data; - const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; - if (substituteThis) { - return setTextRange( - setOriginalNode( - factory2.cloneNode(substituteThis), - node - ), - node - ); - } - if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { - return factory2.createParenthesizedExpression(factory2.createVoidZero()); - } - } - return node; - } - function substituteExpressionIdentifier(node) { - return trySubstituteClassAlias(node) || node; - } - function trySubstituteClassAlias(node) { - if (enabledSubstitutions & 1 /* ClassAliases */) { - if (resolver.hasNodeCheckFlag(node, 536870912 /* ConstructorReference */)) { - const declaration = resolver.getReferencedValueDeclaration(node); - if (declaration) { - const classAlias = classAliases[declaration.id]; - if (classAlias) { - const clone = factory2.cloneNode(classAlias); - setSourceMapRange(clone, node); - setCommentRange(clone, node); - return clone; - } - } - } - } - return void 0; - } -} -function createPrivateStaticFieldInitializer(factory2, variableName, initializer) { - return factory2.createAssignment( - variableName, - factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("value", initializer || factory2.createVoidZero()) - ]) - ); -} -function createPrivateInstanceFieldInitializer(factory2, receiver, initializer, weakMapName) { - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(weakMapName, "set"), - /*typeArguments*/ - void 0, - [receiver, initializer || factory2.createVoidZero()] - ); -} -function createPrivateInstanceMethodInitializer(factory2, receiver, weakSetName) { - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(weakSetName, "add"), - /*typeArguments*/ - void 0, - [receiver] - ); -} -function isReservedPrivateName(node) { - return !isGeneratedPrivateIdentifier(node) && node.escapedText === "#constructor"; -} -function isPrivateIdentifierInExpression(node) { - return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; -} -function isStaticPropertyDeclaration2(node) { - return isPropertyDeclaration(node) && hasStaticModifier(node); -} -function isStaticPropertyDeclarationOrClassStaticBlock(node) { - return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); -} - -// src/compiler/transformers/typeSerializer.ts -function createRuntimeTypeSerializer(context) { - const { - factory: factory2, - hoistVariableDeclaration - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); - let currentLexicalScope; - let currentNameScope; - return { - serializeTypeNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeTypeNode, node), - serializeTypeOfNode: (serializerContext, node, container) => setSerializerContextAnd(serializerContext, serializeTypeOfNode, node, container), - serializeParameterTypesOfNode: (serializerContext, node, container) => setSerializerContextAnd(serializerContext, serializeParameterTypesOfNode, node, container), - serializeReturnTypeOfNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeReturnTypeOfNode, node) - }; - function setSerializerContextAnd(serializerContext, cb, node, arg) { - const savedCurrentLexicalScope = currentLexicalScope; - const savedCurrentNameScope = currentNameScope; - currentLexicalScope = serializerContext.currentLexicalScope; - currentNameScope = serializerContext.currentNameScope; - const result = arg === void 0 ? cb(node) : cb(node, arg); - currentLexicalScope = savedCurrentLexicalScope; - currentNameScope = savedCurrentNameScope; - return result; - } - function getAccessorTypeNode(node, container) { - const accessors = getAllAccessorDeclarations(container.members, node); - return accessors.setAccessor && getSetAccessorTypeAnnotationNode(accessors.setAccessor) || accessors.getAccessor && getEffectiveReturnTypeNode(accessors.getAccessor); - } - function serializeTypeOfNode(node, container) { - switch (node.kind) { - case 172 /* PropertyDeclaration */: - case 169 /* Parameter */: - return serializeTypeNode(node.type); - case 178 /* SetAccessor */: - case 177 /* GetAccessor */: - return serializeTypeNode(getAccessorTypeNode(node, container)); - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 174 /* MethodDeclaration */: - return factory2.createIdentifier("Function"); - default: - return factory2.createVoidZero(); - } - } - function serializeParameterTypesOfNode(node, container) { - const valueDeclaration = isClassLike(node) ? getFirstConstructorWithBody(node) : isFunctionLike(node) && nodeIsPresent(node.body) ? node : void 0; - const expressions = []; - if (valueDeclaration) { - const parameters = getParametersOfDecoratedDeclaration(valueDeclaration, container); - const numParameters = parameters.length; - for (let i = 0; i < numParameters; i++) { - const parameter = parameters[i]; - if (i === 0 && isIdentifier(parameter.name) && parameter.name.escapedText === "this") { - continue; - } - if (parameter.dotDotDotToken) { - expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type))); - } else { - expressions.push(serializeTypeOfNode(parameter, container)); - } - } - } - return factory2.createArrayLiteralExpression(expressions); - } - function getParametersOfDecoratedDeclaration(node, container) { - if (container && node.kind === 177 /* GetAccessor */) { - const { setAccessor } = getAllAccessorDeclarations(container.members, node); - if (setAccessor) { - return setAccessor.parameters; - } - } - return node.parameters; - } - function serializeReturnTypeOfNode(node) { - if (isFunctionLike(node) && node.type) { - return serializeTypeNode(node.type); - } else if (isAsyncFunction(node)) { - return factory2.createIdentifier("Promise"); - } - return factory2.createVoidZero(); - } - function serializeTypeNode(node) { - if (node === void 0) { - return factory2.createIdentifier("Object"); - } - node = skipTypeParentheses(node); - switch (node.kind) { - case 116 /* VoidKeyword */: - case 157 /* UndefinedKeyword */: - case 146 /* NeverKeyword */: - return factory2.createVoidZero(); - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - return factory2.createIdentifier("Function"); - case 188 /* ArrayType */: - case 189 /* TupleType */: - return factory2.createIdentifier("Array"); - case 182 /* TypePredicate */: - return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); - case 136 /* BooleanKeyword */: - return factory2.createIdentifier("Boolean"); - case 203 /* TemplateLiteralType */: - case 154 /* StringKeyword */: - return factory2.createIdentifier("String"); - case 151 /* ObjectKeyword */: - return factory2.createIdentifier("Object"); - case 201 /* LiteralType */: - return serializeLiteralOfLiteralTypeNode(node.literal); - case 150 /* NumberKeyword */: - return factory2.createIdentifier("Number"); - case 163 /* BigIntKeyword */: - return getGlobalConstructor("BigInt", 7 /* ES2020 */); - case 155 /* SymbolKeyword */: - return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 183 /* TypeReference */: - return serializeTypeReferenceNode(node); - case 193 /* IntersectionType */: - return serializeUnionOrIntersectionConstituents( - node.types, - /*isIntersection*/ - true - ); - case 192 /* UnionType */: - return serializeUnionOrIntersectionConstituents( - node.types, - /*isIntersection*/ - false - ); - case 194 /* ConditionalType */: - return serializeUnionOrIntersectionConstituents( - [node.trueType, node.falseType], - /*isIntersection*/ - false - ); - case 198 /* TypeOperator */: - if (node.operator === 148 /* ReadonlyKeyword */) { - return serializeTypeNode(node.type); - } - break; - case 186 /* TypeQuery */: - case 199 /* IndexedAccessType */: - case 200 /* MappedType */: - case 187 /* TypeLiteral */: - case 133 /* AnyKeyword */: - case 159 /* UnknownKeyword */: - case 197 /* ThisType */: - case 205 /* ImportType */: - break; - // handle JSDoc types from an invalid parse - case 312 /* JSDocAllType */: - case 313 /* JSDocUnknownType */: - case 317 /* JSDocFunctionType */: - case 318 /* JSDocVariadicType */: - case 319 /* JSDocNamepathType */: - break; - case 314 /* JSDocNullableType */: - case 315 /* JSDocNonNullableType */: - case 316 /* JSDocOptionalType */: - return serializeTypeNode(node.type); - default: - return Debug.failBadSyntaxKind(node); - } - return factory2.createIdentifier("Object"); - } - function serializeLiteralOfLiteralTypeNode(node) { - switch (node.kind) { - case 11 /* StringLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - return factory2.createIdentifier("String"); - case 224 /* PrefixUnaryExpression */: { - const operand = node.operand; - switch (operand.kind) { - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - return serializeLiteralOfLiteralTypeNode(operand); - default: - return Debug.failBadSyntaxKind(operand); - } - } - case 9 /* NumericLiteral */: - return factory2.createIdentifier("Number"); - case 10 /* BigIntLiteral */: - return getGlobalConstructor("BigInt", 7 /* ES2020 */); - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - return factory2.createIdentifier("Boolean"); - case 106 /* NullKeyword */: - return factory2.createVoidZero(); - default: - return Debug.failBadSyntaxKind(node); - } - } - function serializeUnionOrIntersectionConstituents(types, isIntersection) { - let serializedType; - for (let typeNode of types) { - typeNode = skipTypeParentheses(typeNode); - if (typeNode.kind === 146 /* NeverKeyword */) { - if (isIntersection) return factory2.createVoidZero(); - continue; - } - if (typeNode.kind === 159 /* UnknownKeyword */) { - if (!isIntersection) return factory2.createIdentifier("Object"); - continue; - } - if (typeNode.kind === 133 /* AnyKeyword */) { - return factory2.createIdentifier("Object"); - } - if (!strictNullChecks && (isLiteralTypeNode(typeNode) && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { - continue; - } - const serializedConstituent = serializeTypeNode(typeNode); - if (isIdentifier(serializedConstituent) && serializedConstituent.escapedText === "Object") { - return serializedConstituent; - } - if (serializedType) { - if (!equateSerializedTypeNodes(serializedType, serializedConstituent)) { - return factory2.createIdentifier("Object"); - } - } else { - serializedType = serializedConstituent; - } - } - return serializedType ?? factory2.createVoidZero(); - } - function equateSerializedTypeNodes(left, right) { - return ( - // temp vars used in fallback - isGeneratedIdentifier(left) ? isGeneratedIdentifier(right) : ( - // entity names - isIdentifier(left) ? isIdentifier(right) && left.escapedText === right.escapedText : isPropertyAccessExpression(left) ? isPropertyAccessExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) && equateSerializedTypeNodes(left.name, right.name) : ( - // `void 0` - isVoidExpression(left) ? isVoidExpression(right) && isNumericLiteral(left.expression) && left.expression.text === "0" && isNumericLiteral(right.expression) && right.expression.text === "0" : ( - // `"undefined"` or `"function"` in `typeof` checks - isStringLiteral(left) ? isStringLiteral(right) && left.text === right.text : ( - // used in `typeof` checks for fallback - isTypeOfExpression(left) ? isTypeOfExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : ( - // parens in `typeof` checks with temps - isParenthesizedExpression(left) ? isParenthesizedExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : ( - // conditionals used in fallback - isConditionalExpression(left) ? isConditionalExpression(right) && equateSerializedTypeNodes(left.condition, right.condition) && equateSerializedTypeNodes(left.whenTrue, right.whenTrue) && equateSerializedTypeNodes(left.whenFalse, right.whenFalse) : ( - // logical binary and assignments used in fallback - isBinaryExpression(left) ? isBinaryExpression(right) && left.operatorToken.kind === right.operatorToken.kind && equateSerializedTypeNodes(left.left, right.left) && equateSerializedTypeNodes(left.right, right.right) : false - ) - ) - ) - ) - ) - ) - ) - ); - } - function serializeTypeReferenceNode(node) { - const kind = resolver.getTypeReferenceSerializationKind(node.typeName, currentNameScope ?? currentLexicalScope); - switch (kind) { - case 0 /* Unknown */: - if (findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && (n.parent.trueType === n || n.parent.falseType === n))) { - return factory2.createIdentifier("Object"); - } - const serialized = serializeEntityNameAsExpressionFallback(node.typeName); - const temp = factory2.createTempVariable(hoistVariableDeclaration); - return factory2.createConditionalExpression( - factory2.createTypeCheck(factory2.createAssignment(temp, serialized), "function"), - /*questionToken*/ - void 0, - temp, - /*colonToken*/ - void 0, - factory2.createIdentifier("Object") - ); - case 1 /* TypeWithConstructSignatureAndValue */: - return serializeEntityNameAsExpression(node.typeName); - case 2 /* VoidNullableOrNeverType */: - return factory2.createVoidZero(); - case 4 /* BigIntLikeType */: - return getGlobalConstructor("BigInt", 7 /* ES2020 */); - case 6 /* BooleanType */: - return factory2.createIdentifier("Boolean"); - case 3 /* NumberLikeType */: - return factory2.createIdentifier("Number"); - case 5 /* StringLikeType */: - return factory2.createIdentifier("String"); - case 7 /* ArrayLikeType */: - return factory2.createIdentifier("Array"); - case 8 /* ESSymbolType */: - return getGlobalConstructor("Symbol", 2 /* ES2015 */); - case 10 /* TypeWithCallSignature */: - return factory2.createIdentifier("Function"); - case 9 /* Promise */: - return factory2.createIdentifier("Promise"); - case 11 /* ObjectType */: - return factory2.createIdentifier("Object"); - default: - return Debug.assertNever(kind); - } - } - function createCheckedValue(left, right) { - return factory2.createLogicalAnd( - factory2.createStrictInequality(factory2.createTypeOfExpression(left), factory2.createStringLiteral("undefined")), - right - ); - } - function serializeEntityNameAsExpressionFallback(node) { - if (node.kind === 80 /* Identifier */) { - const copied = serializeEntityNameAsExpression(node); - return createCheckedValue(copied, copied); - } - if (node.left.kind === 80 /* Identifier */) { - return createCheckedValue(serializeEntityNameAsExpression(node.left), serializeEntityNameAsExpression(node)); - } - const left = serializeEntityNameAsExpressionFallback(node.left); - const temp = factory2.createTempVariable(hoistVariableDeclaration); - return factory2.createLogicalAnd( - factory2.createLogicalAnd( - left.left, - factory2.createStrictInequality(factory2.createAssignment(temp, left.right), factory2.createVoidZero()) - ), - factory2.createPropertyAccessExpression(temp, node.right) - ); - } - function serializeEntityNameAsExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - const name = setParent(setTextRange(parseNodeFactory.cloneNode(node), node), node.parent); - name.original = void 0; - setParent(name, getParseTreeNode(currentLexicalScope)); - return name; - case 166 /* QualifiedName */: - return serializeQualifiedNameAsExpression(node); - } - } - function serializeQualifiedNameAsExpression(node) { - return factory2.createPropertyAccessExpression(serializeEntityNameAsExpression(node.left), node.right); - } - function getGlobalConstructorWithFallback(name) { - return factory2.createConditionalExpression( - factory2.createTypeCheck(factory2.createIdentifier(name), "function"), - /*questionToken*/ - void 0, - factory2.createIdentifier(name), - /*colonToken*/ - void 0, - factory2.createIdentifier("Object") - ); - } - function getGlobalConstructor(name, minLanguageVersion) { - return languageVersion < minLanguageVersion ? getGlobalConstructorWithFallback(name) : factory2.createIdentifier(name); - } -} - -// src/compiler/transformers/legacyDecorators.ts -function transformLegacyDecorators(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - hoistVariableDeclaration - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const previousOnSubstituteNode = context.onSubstituteNode; - context.onSubstituteNode = onSubstituteNode; - let classAliases; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - return visited; - } - function modifierVisitor(node) { - return isDecorator(node) ? void 0 : node; - } - function visitor(node) { - if (!(node.transformFlags & 33554432 /* ContainsDecorators */)) { - return node; - } - switch (node.kind) { - case 170 /* Decorator */: - return void 0; - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 231 /* ClassExpression */: - return visitClassExpression(node); - case 176 /* Constructor */: - return visitConstructorDeclaration(node); - case 174 /* MethodDeclaration */: - return visitMethodDeclaration(node); - case 178 /* SetAccessor */: - return visitSetAccessorDeclaration(node); - case 177 /* GetAccessor */: - return visitGetAccessorDeclaration(node); - case 172 /* PropertyDeclaration */: - return visitPropertyDeclaration(node); - case 169 /* Parameter */: - return visitParameterDeclaration(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitClassDeclaration(node) { - if (!(classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - true, - node - ) || childIsDecorated( - /*useLegacyDecorators*/ - true, - node - ))) { - return visitEachChild(node, visitor, context); - } - const statements = classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - true, - node - ) ? transformClassDeclarationWithClassDecorators(node, node.name) : transformClassDeclarationWithoutClassDecorators(node, node.name); - return singleOrMany(statements); - } - function decoratorContainsPrivateIdentifierInExpression(decorator) { - return !!(decorator.transformFlags & 536870912 /* ContainsPrivateIdentifierInExpression */); - } - function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) { - return some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression); - } - function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) { - for (const member of node.members) { - if (!canHaveDecorators(member)) continue; - const allDecorators = getAllDecoratorsOfClassElement( - member, - node, - /*useLegacyDecorators*/ - true - ); - if (some(allDecorators == null ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression)) return true; - if (some(allDecorators == null ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression)) return true; - } - return false; - } - function transformDecoratorsOfClassElements(node, members) { - let decorationStatements = []; - addClassElementDecorationStatements( - decorationStatements, - node, - /*isStatic*/ - false - ); - addClassElementDecorationStatements( - decorationStatements, - node, - /*isStatic*/ - true - ); - if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) { - members = setTextRange( - factory2.createNodeArray([ - ...members, - factory2.createClassStaticBlockDeclaration( - factory2.createBlock( - decorationStatements, - /*multiLine*/ - true - ) - ) - ]), - members - ); - decorationStatements = void 0; - } - return { decorationStatements, members }; - } - function transformClassDeclarationWithoutClassDecorators(node, name) { - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); - let members = visitNodes2(node.members, visitor, isClassElement); - let decorationStatements = []; - ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); - const updated = factory2.updateClassDeclaration( - node, - modifiers, - name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - return addRange([updated], decorationStatements); - } - function transformClassDeclarationWithClassDecorators(node, name) { - const isExport = hasSyntacticModifier(node, 32 /* Export */); - const isDefault = hasSyntacticModifier(node, 2048 /* Default */); - const modifiers = visitNodes2(node.modifiers, (node2) => isExportOrDefaultModifier(node2) || isDecorator(node2) ? void 0 : node2, isModifierLike); - const location = moveRangePastModifiers(node); - const classAlias = getClassAliasIfNeeded(node); - const declName = languageVersion < 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); - let members = visitNodes2(node.members, visitor, isClassElement); - let decorationStatements = []; - ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); - const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 256 /* Static */) || isClassStaticBlockDeclaration(member)); - if (assignClassAliasInStaticBlock) { - members = setTextRange( - factory2.createNodeArray([ - factory2.createClassStaticBlockDeclaration( - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment(classAlias, factory2.createThis()) - ) - ]) - ), - ...members - ]), - members - ); - } - const classExpression = factory2.createClassExpression( - modifiers, - name && isGeneratedIdentifier(name) ? void 0 : name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - setOriginalNode(classExpression, node); - setTextRange(classExpression, location); - const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; - const varDecl = factory2.createVariableDeclaration( - declName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - varInitializer - ); - setOriginalNode(varDecl, node); - const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const varStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - varDeclList - ); - setOriginalNode(varStatement, node); - setTextRange(varStatement, location); - setCommentRange(varStatement, node); - const statements = [varStatement]; - addRange(statements, decorationStatements); - addConstructorDecorationStatement(statements, node); - if (isExport) { - if (isDefault) { - const exportStatement = factory2.createExportDefault(declName); - statements.push(exportStatement); - } else { - const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); - statements.push(exportStatement); - } - } - return statements; - } - function visitClassExpression(node) { - return factory2.updateClassExpression( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.name, - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - visitNodes2(node.members, visitor, isClassElement) - ); - } - function visitConstructorDeclaration(node) { - return factory2.updateConstructorDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - visitNodes2(node.parameters, visitor, isParameter), - visitNode(node.body, visitor, isBlock) - ); - } - function finishClassElement(updated, original) { - if (updated !== original) { - setCommentRange(updated, original); - setSourceMapRange(updated, moveRangePastModifiers(original)); - } - return updated; - } - function visitMethodDeclaration(node) { - return finishClassElement( - factory2.updateMethodDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, - Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), - /*questionToken*/ - void 0, - /*typeParameters*/ - void 0, - visitNodes2(node.parameters, visitor, isParameter), - /*type*/ - void 0, - visitNode(node.body, visitor, isBlock) - ), - node - ); - } - function visitGetAccessorDeclaration(node) { - return finishClassElement( - factory2.updateGetAccessorDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), - visitNodes2(node.parameters, visitor, isParameter), - /*type*/ - void 0, - visitNode(node.body, visitor, isBlock) - ), - node - ); - } - function visitSetAccessorDeclaration(node) { - return finishClassElement( - factory2.updateSetAccessorDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), - visitNodes2(node.parameters, visitor, isParameter), - visitNode(node.body, visitor, isBlock) - ), - node - ); - } - function visitPropertyDeclaration(node) { - if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 128 /* Ambient */)) { - return void 0; - } - return finishClassElement( - factory2.updatePropertyDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifier), - Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ), - node - ); - } - function visitParameterDeclaration(node) { - const updated = factory2.updateParameterDeclaration( - node, - elideNodes(factory2, node.modifiers), - node.dotDotDotToken, - Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - if (updated !== node) { - setCommentRange(updated, node); - setTextRange(updated, moveRangePastModifiers(node)); - setSourceMapRange(updated, moveRangePastModifiers(node)); - setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); - } - return updated; - } - function isSyntheticMetadataDecorator(node) { - return isCallToHelper(node.expression, "___metadata"); - } - function transformAllDecoratorsOfDeclaration(allDecorators) { - if (!allDecorators) { - return void 0; - } - const { false: decorators, true: metadata } = groupBy(allDecorators.decorators, isSyntheticMetadataDecorator); - const decoratorExpressions = []; - addRange(decoratorExpressions, map(decorators, transformDecorator)); - addRange(decoratorExpressions, flatMap(allDecorators.parameters, transformDecoratorsOfParameter)); - addRange(decoratorExpressions, map(metadata, transformDecorator)); - return decoratorExpressions; - } - function addClassElementDecorationStatements(statements, node, isStatic2) { - addRange(statements, map(generateClassElementDecorationExpressions(node, isStatic2), (expr) => factory2.createExpressionStatement(expr))); - } - function isDecoratedClassElement(member, isStaticElement, parent) { - return nodeOrChildIsDecorated( - /*useLegacyDecorators*/ - true, - member, - parent - ) && isStaticElement === isStatic(member); - } - function getDecoratedClassElements(node, isStatic2) { - return filter(node.members, (m) => isDecoratedClassElement(m, isStatic2, node)); - } - function generateClassElementDecorationExpressions(node, isStatic2) { - const members = getDecoratedClassElements(node, isStatic2); - let expressions; - for (const member of members) { - expressions = append(expressions, generateClassElementDecorationExpression(node, member)); - } - return expressions; - } - function generateClassElementDecorationExpression(node, member) { - const allDecorators = getAllDecoratorsOfClassElement( - member, - node, - /*useLegacyDecorators*/ - true - ); - const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators); - if (!decoratorExpressions) { - return void 0; - } - const prefix = getClassMemberPrefix(node, member); - const memberName = getExpressionForPropertyName( - member, - /*generateNameForComputedPropertyName*/ - !hasSyntacticModifier(member, 128 /* Ambient */) - ); - const descriptor = isPropertyDeclaration(member) && !hasAccessorModifier(member) ? factory2.createVoidZero() : factory2.createNull(); - const helper = emitHelpers().createDecorateHelper( - decoratorExpressions, - prefix, - memberName, - descriptor - ); - setEmitFlags(helper, 3072 /* NoComments */); - setSourceMapRange(helper, moveRangePastModifiers(member)); - return helper; - } - function addConstructorDecorationStatement(statements, node) { - const expression = generateConstructorDecorationExpression(node); - if (expression) { - statements.push(setOriginalNode(factory2.createExpressionStatement(expression), node)); - } - } - function generateConstructorDecorationExpression(node) { - const allDecorators = getAllDecoratorsOfClass( - node, - /*useLegacyDecorators*/ - true - ); - const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators); - if (!decoratorExpressions) { - return void 0; - } - const classAlias = classAliases && classAliases[getOriginalNodeId(node)]; - const localName = languageVersion < 2 /* ES2015 */ ? factory2.getInternalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ) : factory2.getDeclarationName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - const decorate = emitHelpers().createDecorateHelper(decoratorExpressions, localName); - const expression = factory2.createAssignment(localName, classAlias ? factory2.createAssignment(classAlias, decorate) : decorate); - setEmitFlags(expression, 3072 /* NoComments */); - setSourceMapRange(expression, moveRangePastModifiers(node)); - return expression; - } - function transformDecorator(decorator) { - return Debug.checkDefined(visitNode(decorator.expression, visitor, isExpression)); - } - function transformDecoratorsOfParameter(decorators, parameterOffset) { - let expressions; - if (decorators) { - expressions = []; - for (const decorator of decorators) { - const helper = emitHelpers().createParamHelper( - transformDecorator(decorator), - parameterOffset - ); - setTextRange(helper, decorator.expression); - setEmitFlags(helper, 3072 /* NoComments */); - expressions.push(helper); - } - } - return expressions; - } - function getExpressionForPropertyName(member, generateNameForComputedPropertyName) { - const name = member.name; - if (isPrivateIdentifier(name)) { - return factory2.createIdentifier(""); - } else if (isComputedPropertyName(name)) { - return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression; - } else if (isIdentifier(name)) { - return factory2.createStringLiteral(idText(name)); - } else { - return factory2.cloneNode(name); - } - } - function enableSubstitutionForClassAliases() { - if (!classAliases) { - context.enableSubstitution(80 /* Identifier */); - classAliases = []; - } - } - function getClassAliasIfNeeded(node) { - if (resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */)) { - enableSubstitutionForClassAliases(); - const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); - classAliases[getOriginalNodeId(node)] = classAlias; - hoistVariableDeclaration(classAlias); - return classAlias; - } - } - function getClassPrototype(node) { - return factory2.createPropertyAccessExpression(factory2.getDeclarationName(node), "prototype"); - } - function getClassMemberPrefix(node, member) { - return isStatic(member) ? factory2.getDeclarationName(node) : getClassPrototype(node); - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - } - return node; - } - function substituteExpressionIdentifier(node) { - return trySubstituteClassAlias(node) ?? node; - } - function trySubstituteClassAlias(node) { - if (classAliases) { - if (resolver.hasNodeCheckFlag(node, 536870912 /* ConstructorReference */)) { - const declaration = resolver.getReferencedValueDeclaration(node); - if (declaration) { - const classAlias = classAliases[declaration.id]; - if (classAlias) { - const clone = factory2.cloneNode(classAlias); - setSourceMapRange(clone, node); - setCommentRange(clone, node); - return clone; - } - } - } - } - return void 0; - } -} - -// src/compiler/transformers/esDecorators.ts -function transformESDecorators(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - startLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); - let top; - let classInfo; - let classThis; - let classSuper; - let pendingExpressions; - let shouldTransformPrivateStaticElementsInFile; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - top = void 0; - shouldTransformPrivateStaticElementsInFile = false; - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - if (shouldTransformPrivateStaticElementsInFile) { - addInternalEmitFlags(visited, 32 /* TransformPrivateStaticElements */); - shouldTransformPrivateStaticElementsInFile = false; - } - return visited; - } - function updateState() { - classInfo = void 0; - classThis = void 0; - classSuper = void 0; - switch (top == null ? void 0 : top.kind) { - case "class": - classInfo = top.classInfo; - break; - case "class-element": - classInfo = top.next.classInfo; - classThis = top.classThis; - classSuper = top.classSuper; - break; - case "name": - const grandparent = top.next.next.next; - if ((grandparent == null ? void 0 : grandparent.kind) === "class-element") { - classInfo = grandparent.next.classInfo; - classThis = grandparent.classThis; - classSuper = grandparent.classSuper; - } - break; - } - } - function enterClass(classInfo2) { - top = { kind: "class", next: top, classInfo: classInfo2, savedPendingExpressions: pendingExpressions }; - pendingExpressions = void 0; - updateState(); - } - function exitClass() { - Debug.assert((top == null ? void 0 : top.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`); - pendingExpressions = top.savedPendingExpressions; - top = top.next; - updateState(); - } - function enterClassElement(node) { - var _a, _b; - Debug.assert((top == null ? void 0 : top.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`); - top = { kind: "class-element", next: top }; - if (isClassStaticBlockDeclaration(node) || isPropertyDeclaration(node) && hasStaticModifier(node)) { - top.classThis = (_a = top.next.classInfo) == null ? void 0 : _a.classThis; - top.classSuper = (_b = top.next.classInfo) == null ? void 0 : _b.classSuper; - } - updateState(); - } - function exitClassElement() { - var _a; - Debug.assert((top == null ? void 0 : top.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`); - Debug.assert(((_a = top.next) == null ? void 0 : _a.kind) === "class", "Incorrect value for top.next.kind.", () => { - var _a2; - return `Expected top.next.kind to be 'class' but got '${(_a2 = top.next) == null ? void 0 : _a2.kind}' instead.`; - }); - top = top.next; - updateState(); - } - function enterName() { - Debug.assert((top == null ? void 0 : top.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`); - top = { kind: "name", next: top }; - updateState(); - } - function exitName() { - Debug.assert((top == null ? void 0 : top.kind) === "name", "Incorrect value for top.kind.", () => `Expected top.kind to be 'name' but got '${top == null ? void 0 : top.kind}' instead.`); - top = top.next; - updateState(); - } - function enterOther() { - if ((top == null ? void 0 : top.kind) === "other") { - Debug.assert(!pendingExpressions); - top.depth++; - } else { - top = { kind: "other", next: top, depth: 0, savedPendingExpressions: pendingExpressions }; - pendingExpressions = void 0; - updateState(); - } - } - function exitOther() { - Debug.assert((top == null ? void 0 : top.kind) === "other", "Incorrect value for top.kind.", () => `Expected top.kind to be 'other' but got '${top == null ? void 0 : top.kind}' instead.`); - if (top.depth > 0) { - Debug.assert(!pendingExpressions); - top.depth--; - } else { - pendingExpressions = top.savedPendingExpressions; - top = top.next; - updateState(); - } - } - function shouldVisitNode(node) { - return !!(node.transformFlags & 33554432 /* ContainsDecorators */) || !!classThis && !!(node.transformFlags & 16384 /* ContainsLexicalThis */) || !!classThis && !!classSuper && !!(node.transformFlags & 134217728 /* ContainsLexicalSuper */); - } - function visitor(node) { - if (!shouldVisitNode(node)) { - return node; - } - switch (node.kind) { - case 170 /* Decorator */: - return Debug.fail("Use `modifierVisitor` instead."); - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 231 /* ClassExpression */: - return visitClassExpression(node); - case 176 /* Constructor */: - case 172 /* PropertyDeclaration */: - case 175 /* ClassStaticBlockDeclaration */: - return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); - case 169 /* Parameter */: - return visitParameterDeclaration(node); - // Support NamedEvaluation to ensure the correct class name for class expressions. - case 226 /* BinaryExpression */: - return visitBinaryExpression( - node, - /*discarded*/ - false - ); - case 303 /* PropertyAssignment */: - return visitPropertyAssignment(node); - case 260 /* VariableDeclaration */: - return visitVariableDeclaration(node); - case 208 /* BindingElement */: - return visitBindingElement(node); - case 277 /* ExportAssignment */: - return visitExportAssignment(node); - case 110 /* ThisKeyword */: - return visitThisExpression(node); - case 248 /* ForStatement */: - return visitForStatement(node); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 356 /* CommaListExpression */: - return visitCommaListExpression( - node, - /*discarded*/ - false - ); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - false - ); - case 355 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression( - node, - /*discarded*/ - false - ); - case 213 /* CallExpression */: - return visitCallExpression(node); - case 215 /* TaggedTemplateExpression */: - return visitTaggedTemplateExpression(node); - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPreOrPostfixUnaryExpression( - node, - /*discarded*/ - false - ); - case 211 /* PropertyAccessExpression */: - return visitPropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return visitElementAccessExpression(node); - case 167 /* ComputedPropertyName */: - return visitComputedPropertyName(node); - case 174 /* MethodDeclaration */: - // object literal methods and accessors - case 178 /* SetAccessor */: - case 177 /* GetAccessor */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: { - enterOther(); - const result = visitEachChild(node, fallbackVisitor, context); - exitOther(); - return result; - } - default: - return visitEachChild(node, fallbackVisitor, context); - } - } - function fallbackVisitor(node) { - switch (node.kind) { - case 170 /* Decorator */: - return void 0; - default: - return visitor(node); - } - } - function modifierVisitor(node) { - switch (node.kind) { - case 170 /* Decorator */: - return void 0; - default: - return node; - } - } - function classElementVisitor(node) { - switch (node.kind) { - case 176 /* Constructor */: - return visitConstructorDeclaration(node); - case 174 /* MethodDeclaration */: - return visitMethodDeclaration(node); - case 177 /* GetAccessor */: - return visitGetAccessorDeclaration(node); - case 178 /* SetAccessor */: - return visitSetAccessorDeclaration(node); - case 172 /* PropertyDeclaration */: - return visitPropertyDeclaration(node); - case 175 /* ClassStaticBlockDeclaration */: - return visitClassStaticBlockDeclaration(node); - default: - return visitor(node); - } - } - function discardedValueVisitor(node) { - switch (node.kind) { - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPreOrPostfixUnaryExpression( - node, - /*discarded*/ - true - ); - case 226 /* BinaryExpression */: - return visitBinaryExpression( - node, - /*discarded*/ - true - ); - case 356 /* CommaListExpression */: - return visitCommaListExpression( - node, - /*discarded*/ - true - ); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression( - node, - /*discarded*/ - true - ); - default: - return visitor(node); - } - } - function getHelperVariableName(node) { - let declarationName = node.name && isIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name) : node.name && isPrivateIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name).slice(1) : node.name && isStringLiteral(node.name) && isIdentifierText(node.name.text, 99 /* ESNext */) ? node.name.text : isClassLike(node) ? "class" : "member"; - if (isGetAccessor(node)) declarationName = `get_${declarationName}`; - if (isSetAccessor(node)) declarationName = `set_${declarationName}`; - if (node.name && isPrivateIdentifier(node.name)) declarationName = `private_${declarationName}`; - if (isStatic(node)) declarationName = `static_${declarationName}`; - return "_" + declarationName; - } - function createHelperVariable(node, suffix) { - return factory2.createUniqueName(`${getHelperVariableName(node)}_${suffix}`, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */); - } - function createLet(name, initializer) { - return factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ) - ], 1 /* Let */) - ); - } - function createClassInfo(node) { - const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); - let instanceMethodExtraInitializersName; - let staticMethodExtraInitializersName; - let hasStaticInitializers = false; - let hasNonAmbientInstanceFields = false; - let hasStaticPrivateClassElements = false; - let classThis2; - let pendingStaticInitializers; - let pendingInstanceInitializers; - if (nodeIsDecorated( - /*useLegacyDecorators*/ - false, - node - )) { - const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); - classThis2 = factory2.createUniqueName( - "_classThis", - needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */ - ); - } - for (const member of node.members) { - if (isMethodOrAccessor(member) && nodeOrChildIsDecorated( - /*useLegacyDecorators*/ - false, - member, - node - )) { - if (hasStaticModifier(member)) { - if (!staticMethodExtraInitializersName) { - staticMethodExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); - const initializer = emitHelpers().createRunInitializersHelper(classThis2 ?? factory2.createThis(), staticMethodExtraInitializersName); - setSourceMapRange(initializer, node.name ?? moveRangePastDecorators(node)); - pendingStaticInitializers ?? (pendingStaticInitializers = []); - pendingStaticInitializers.push(initializer); - } - } else { - if (!instanceMethodExtraInitializersName) { - instanceMethodExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); - const initializer = emitHelpers().createRunInitializersHelper(factory2.createThis(), instanceMethodExtraInitializersName); - setSourceMapRange(initializer, node.name ?? moveRangePastDecorators(node)); - pendingInstanceInitializers ?? (pendingInstanceInitializers = []); - pendingInstanceInitializers.push(initializer); - } - instanceMethodExtraInitializersName ?? (instanceMethodExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); - } - } - if (isClassStaticBlockDeclaration(member)) { - if (!isClassNamedEvaluationHelperBlock(member)) { - hasStaticInitializers = true; - } - } else if (isPropertyDeclaration(member)) { - if (hasStaticModifier(member)) { - hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); - } else { - hasNonAmbientInstanceFields || (hasNonAmbientInstanceFields = !isAmbientPropertyDeclaration(member)); - } - } - if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) { - hasStaticPrivateClassElements = true; - } - if (staticMethodExtraInitializersName && instanceMethodExtraInitializersName && hasStaticInitializers && hasNonAmbientInstanceFields && hasStaticPrivateClassElements) { - break; - } - } - return { - class: node, - classThis: classThis2, - metadataReference, - instanceMethodExtraInitializersName, - staticMethodExtraInitializersName, - hasStaticInitializers, - hasNonAmbientInstanceFields, - hasStaticPrivateClassElements, - pendingStaticInitializers, - pendingInstanceInitializers - }; - } - function transformClassLike(node) { - startLexicalEnvironment(); - if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - node - )) { - node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); - } - const classReference = factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - false, - /*ignoreAssignedName*/ - true - ); - const classInfo2 = createClassInfo(node); - const classDefinitionStatements = []; - let leadingBlockStatements; - let trailingBlockStatements; - let syntheticConstructor; - let heritageClauses; - let shouldTransformPrivateStaticElementsInClass = false; - const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass( - node, - /*useLegacyDecorators*/ - false - )); - if (classDecorators) { - classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); - classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); - classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); - Debug.assertIsDefined(classInfo2.classThis); - classDefinitionStatements.push( - createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), - createLet(classInfo2.classDescriptorName), - createLet(classInfo2.classExtraInitializersName, factory2.createArrayLiteralExpression()), - createLet(classInfo2.classThis) - ); - if (classInfo2.hasStaticPrivateClassElements) { - shouldTransformPrivateStaticElementsInClass = true; - shouldTransformPrivateStaticElementsInFile = true; - } - } - const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); - const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); - const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); - if (extendsExpression) { - classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); - const unwrapped = skipOuterExpressions(extendsExpression); - const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; - classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); - const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( - extendsElement, - classInfo2.classSuper, - /*typeArguments*/ - void 0 - ); - const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); - heritageClauses = factory2.createNodeArray([updatedExtendsClause]); - } - const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); - enterClass(classInfo2); - leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); - let members = node.members; - members = visitNodes2(members, (node2) => isConstructorDeclaration(node2) ? node2 : classElementVisitor(node2), isClassElement); - members = visitNodes2(members, (node2) => isConstructorDeclaration(node2) ? classElementVisitor(node2) : node2, isClassElement); - if (pendingExpressions) { - let outerThis; - for (let expression of pendingExpressions) { - expression = visitNode(expression, function thisVisitor(node2) { - if (!(node2.transformFlags & 16384 /* ContainsLexicalThis */)) { - return node2; - } - switch (node2.kind) { - case 110 /* ThisKeyword */: - if (!outerThis) { - outerThis = factory2.createUniqueName("_outerThis", 16 /* Optimistic */); - classDefinitionStatements.unshift(createLet(outerThis, factory2.createThis())); - } - return outerThis; - default: - return visitEachChild(node2, thisVisitor, context); - } - }, isExpression); - const statement = factory2.createExpressionStatement(expression); - leadingBlockStatements = append(leadingBlockStatements, statement); - } - pendingExpressions = void 0; - } - exitClass(); - if (some(classInfo2.pendingInstanceInitializers) && !getFirstConstructorWithBody(node)) { - const initializerStatements = prepareConstructor(node, classInfo2); - if (initializerStatements) { - const extendsClauseElement = getEffectiveBaseTypeNode(node); - const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */); - const constructorStatements = []; - if (isDerivedClass) { - const spreadArguments = factory2.createSpreadElement(factory2.createIdentifier("arguments")); - const superCall = factory2.createCallExpression( - factory2.createSuper(), - /*typeArguments*/ - void 0, - [spreadArguments] - ); - constructorStatements.push(factory2.createExpressionStatement(superCall)); - } - addRange(constructorStatements, initializerStatements); - const constructorBody = factory2.createBlock( - constructorStatements, - /*multiLine*/ - true - ); - syntheticConstructor = factory2.createConstructorDeclaration( - /*modifiers*/ - void 0, - [], - constructorBody - ); - } - } - if (classInfo2.staticMethodExtraInitializersName) { - classDefinitionStatements.push( - createLet(classInfo2.staticMethodExtraInitializersName, factory2.createArrayLiteralExpression()) - ); - } - if (classInfo2.instanceMethodExtraInitializersName) { - classDefinitionStatements.push( - createLet(classInfo2.instanceMethodExtraInitializersName, factory2.createArrayLiteralExpression()) - ); - } - if (classInfo2.memberInfos) { - forEachEntry(classInfo2.memberInfos, (memberInfo, member) => { - if (isStatic(member)) { - classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName)); - if (memberInfo.memberInitializersName) { - classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression())); - } - if (memberInfo.memberExtraInitializersName) { - classDefinitionStatements.push(createLet(memberInfo.memberExtraInitializersName, factory2.createArrayLiteralExpression())); - } - if (memberInfo.memberDescriptorName) { - classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName)); - } - } - }); - } - if (classInfo2.memberInfos) { - forEachEntry(classInfo2.memberInfos, (memberInfo, member) => { - if (!isStatic(member)) { - classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName)); - if (memberInfo.memberInitializersName) { - classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression())); - } - if (memberInfo.memberExtraInitializersName) { - classDefinitionStatements.push(createLet(memberInfo.memberExtraInitializersName, factory2.createArrayLiteralExpression())); - } - if (memberInfo.memberDescriptorName) { - classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName)); - } - } - }); - } - leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticNonFieldDecorationStatements); - leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticNonFieldDecorationStatements); - leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticFieldDecorationStatements); - leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); - if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { - leadingBlockStatements ?? (leadingBlockStatements = []); - const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); - const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); - const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); - const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); - const esDecorateHelper2 = emitHelpers().createESDecorateHelper( - factory2.createNull(), - classDescriptorAssignment, - classInfo2.classDecoratorsName, - { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, - factory2.createNull(), - classInfo2.classExtraInitializersName - ); - const esDecorateStatement = factory2.createExpressionStatement(esDecorateHelper2); - setSourceMapRange(esDecorateStatement, moveRangePastDecorators(node)); - leadingBlockStatements.push(esDecorateStatement); - const classDescriptorValueReference = factory2.createPropertyAccessExpression(classInfo2.classDescriptorName, "value"); - const classThisAssignment = factory2.createAssignment(classInfo2.classThis, classDescriptorValueReference); - const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); - leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); - } - leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); - if (some(classInfo2.pendingStaticInitializers)) { - for (const initializer of classInfo2.pendingStaticInitializers) { - const initializerStatement = factory2.createExpressionStatement(initializer); - setSourceMapRange(initializerStatement, getSourceMapRange(initializer)); - trailingBlockStatements = append(trailingBlockStatements, initializerStatement); - } - classInfo2.pendingStaticInitializers = void 0; - } - if (classInfo2.classExtraInitializersName) { - const runClassInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.classExtraInitializersName); - const runClassInitializersStatement = factory2.createExpressionStatement(runClassInitializersHelper); - setSourceMapRange(runClassInitializersStatement, node.name ?? moveRangePastDecorators(node)); - trailingBlockStatements = append(trailingBlockStatements, runClassInitializersStatement); - } - if (leadingBlockStatements && trailingBlockStatements && !classInfo2.hasStaticInitializers) { - addRange(leadingBlockStatements, trailingBlockStatements); - trailingBlockStatements = void 0; - } - const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( - leadingBlockStatements, - /*multiLine*/ - true - )); - if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { - setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); - } - const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( - trailingBlockStatements, - /*multiLine*/ - true - )); - if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { - const newMembers = []; - const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); - if (leadingStaticBlock) { - addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); - newMembers.push(leadingStaticBlock); - addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); - } else { - addRange(newMembers, members); - } - if (syntheticConstructor) { - newMembers.push(syntheticConstructor); - } - if (trailingStaticBlock) { - newMembers.push(trailingStaticBlock); - } - members = setTextRange(factory2.createNodeArray(newMembers), members); - } - const lexicalEnvironment = endLexicalEnvironment(); - let classExpression; - if (classDecorators) { - classExpression = factory2.createClassExpression( - /*modifiers*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - if (classInfo2.classThis) { - classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); - } - const classReferenceDeclaration = factory2.createVariableDeclaration( - classReference, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - classExpression - ); - const classReferenceVarDeclList = factory2.createVariableDeclarationList([classReferenceDeclaration]); - const returnExpr = classInfo2.classThis ? factory2.createAssignment(classReference, classInfo2.classThis) : classReference; - classDefinitionStatements.push( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - classReferenceVarDeclList - ), - factory2.createReturnStatement(returnExpr) - ); - } else { - classExpression = factory2.createClassExpression( - /*modifiers*/ - void 0, - node.name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - classDefinitionStatements.push(factory2.createReturnStatement(classExpression)); - } - if (shouldTransformPrivateStaticElementsInClass) { - addInternalEmitFlags(classExpression, 32 /* TransformPrivateStaticElements */); - for (const member of classExpression.members) { - if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) { - addInternalEmitFlags(member, 32 /* TransformPrivateStaticElements */); - } - } - } - setOriginalNode(classExpression, node); - return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); - } - function isDecoratedClassLike(node) { - return classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - node - ) || childIsDecorated( - /*useLegacyDecorators*/ - false, - node - ); - } - function visitClassDeclaration(node) { - if (isDecoratedClassLike(node)) { - const statements = []; - const originalClass = getOriginalNode(node, isClassLike) ?? node; - const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); - const isExport = hasSyntacticModifier(node, 32 /* Export */); - const isDefault = hasSyntacticModifier(node, 2048 /* Default */); - if (!node.name) { - node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); - } - if (isExport && isDefault) { - const iife = transformClassLike(node); - if (node.name) { - const varDecl = factory2.createVariableDeclaration( - factory2.getLocalName(node), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ); - setOriginalNode(varDecl, node); - const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const varStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - varDecls - ); - statements.push(varStatement); - const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); - setOriginalNode(exportStatement, node); - setCommentRange(exportStatement, getCommentRange(node)); - setSourceMapRange(exportStatement, moveRangePastDecorators(node)); - statements.push(exportStatement); - } else { - const exportStatement = factory2.createExportDefault(iife); - setOriginalNode(exportStatement, node); - setCommentRange(exportStatement, getCommentRange(node)); - setSourceMapRange(exportStatement, moveRangePastDecorators(node)); - statements.push(exportStatement); - } - } else { - Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); - const iife = transformClassLike(node); - const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; - const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); - const declName = factory2.getLocalName( - node, - /*allowComments*/ - false, - /*allowSourceMaps*/ - true - ); - const varDecl = factory2.createVariableDeclaration( - declName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - iife - ); - setOriginalNode(varDecl, node); - const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); - const varStatement = factory2.createVariableStatement(modifiers, varDecls); - setOriginalNode(varStatement, node); - setCommentRange(varStatement, getCommentRange(node)); - statements.push(varStatement); - if (isExport) { - const exportStatement = factory2.createExternalModuleExport(declName); - setOriginalNode(exportStatement, node); - statements.push(exportStatement); - } - } - return singleOrMany(statements); - } else { - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); - enterClass( - /*classInfo*/ - void 0 - ); - const members = visitNodes2(node.members, classElementVisitor, isClassElement); - exitClass(); - return factory2.updateClassDeclaration( - node, - modifiers, - node.name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - } - } - function visitClassExpression(node) { - if (isDecoratedClassLike(node)) { - const iife = transformClassLike(node); - setOriginalNode(iife, node); - return iife; - } else { - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); - enterClass( - /*classInfo*/ - void 0 - ); - const members = visitNodes2(node.members, classElementVisitor, isClassElement); - exitClass(); - return factory2.updateClassExpression( - node, - modifiers, - node.name, - /*typeParameters*/ - void 0, - heritageClauses, - members - ); - } - } - function prepareConstructor(_parent, classInfo2) { - if (some(classInfo2.pendingInstanceInitializers)) { - const statements = []; - statements.push( - factory2.createExpressionStatement( - factory2.inlineExpressions(classInfo2.pendingInstanceInitializers) - ) - ); - classInfo2.pendingInstanceInitializers = void 0; - return statements; - } - } - function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { - const superStatementIndex = superPath[superPathDepth]; - const superStatement = statementsIn[superStatementIndex]; - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); - if (isTryStatement(superStatement)) { - const tryBlockStatements = []; - transformConstructorBodyWorker( - tryBlockStatements, - superStatement.tryBlock.statements, - /*statementOffset*/ - 0, - superPath, - superPathDepth + 1, - initializerStatements - ); - const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); - setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); - statementsOut.push(factory2.updateTryStatement( - superStatement, - factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), - visitNode(superStatement.catchClause, visitor, isCatchClause), - visitNode(superStatement.finallyBlock, visitor, isBlock) - )); - } else { - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); - addRange(statementsOut, initializerStatements); - } - addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); - } - function visitConstructorDeclaration(node) { - enterClassElement(node); - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - const parameters = visitNodes2(node.parameters, visitor, isParameter); - let body; - if (node.body && classInfo) { - const initializerStatements = prepareConstructor(classInfo.class, classInfo); - if (initializerStatements) { - const statements = []; - const nonPrologueStart = factory2.copyPrologue( - node.body.statements, - statements, - /*ensureUseStrict*/ - false, - visitor - ); - const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); - if (superStatementIndices.length > 0) { - transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); - } else { - addRange(statements, initializerStatements); - addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); - } - body = factory2.createBlock( - statements, - /*multiLine*/ - true - ); - setOriginalNode(body, node.body); - setTextRange(body, node.body); - } - } - body ?? (body = visitNode(node.body, visitor, isBlock)); - exitClassElement(); - return factory2.updateConstructorDeclaration(node, modifiers, parameters, body); - } - function finishClassElement(updated, original) { - if (updated !== original) { - setCommentRange(updated, original); - setSourceMapRange(updated, moveRangePastDecorators(original)); - } - return updated; - } - function partialTransformClassElement(member, classInfo2, createDescriptor) { - let referencedName; - let name; - let initializersName; - let extraInitializersName; - let thisArg; - let descriptorName; - if (!classInfo2) { - const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); - enterName(); - name = visitPropertyName(member.name); - exitName(); - return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; - } - const memberDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClassElement( - member, - classInfo2.class, - /*useLegacyDecorators*/ - false - )); - const modifiers = visitNodes2(member.modifiers, modifierVisitor, isModifier); - if (memberDecorators) { - const memberDecoratorsName = createHelperVariable(member, "decorators"); - const memberDecoratorsArray = factory2.createArrayLiteralExpression(memberDecorators); - const memberDecoratorsAssignment = factory2.createAssignment(memberDecoratorsName, memberDecoratorsArray); - const memberInfo = { memberDecoratorsName }; - classInfo2.memberInfos ?? (classInfo2.memberInfos = /* @__PURE__ */ new Map()); - classInfo2.memberInfos.set(member, memberInfo); - pendingExpressions ?? (pendingExpressions = []); - pendingExpressions.push(memberDecoratorsAssignment); - const statements = isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? classInfo2.staticNonFieldDecorationStatements ?? (classInfo2.staticNonFieldDecorationStatements = []) : classInfo2.nonStaticNonFieldDecorationStatements ?? (classInfo2.nonStaticNonFieldDecorationStatements = []) : isPropertyDeclaration(member) && !isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? classInfo2.staticFieldDecorationStatements ?? (classInfo2.staticFieldDecorationStatements = []) : classInfo2.nonStaticFieldDecorationStatements ?? (classInfo2.nonStaticFieldDecorationStatements = []) : Debug.fail(); - const kind = isGetAccessorDeclaration(member) ? "getter" : isSetAccessorDeclaration(member) ? "setter" : isMethodDeclaration(member) ? "method" : isAutoAccessorPropertyDeclaration(member) ? "accessor" : isPropertyDeclaration(member) ? "field" : Debug.fail(); - let propertyName; - if (isIdentifier(member.name) || isPrivateIdentifier(member.name)) { - propertyName = { computed: false, name: member.name }; - } else if (isPropertyNameLiteral(member.name)) { - propertyName = { computed: true, name: factory2.createStringLiteralFromNode(member.name) }; - } else { - const expression = member.name.expression; - if (isPropertyNameLiteral(expression) && !isIdentifier(expression)) { - propertyName = { computed: true, name: factory2.createStringLiteralFromNode(expression) }; - } else { - enterName(); - ({ referencedName, name } = visitReferencedPropertyName(member.name)); - propertyName = { computed: true, name: referencedName }; - exitName(); - } - } - const context2 = { - kind, - name: propertyName, - static: isStatic(member), - private: isPrivateIdentifier(member.name), - access: { - // 15.7.3 CreateDecoratorAccessObject (kind, name) - // 2. If _kind_ is ~field~, ~method~, ~accessor~, or ~getter~, then ... - get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), - // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... - set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) - }, - metadata: classInfo2.metadataReference - }; - if (isMethodOrAccessor(member)) { - const methodExtraInitializersName = isStatic(member) ? classInfo2.staticMethodExtraInitializersName : classInfo2.instanceMethodExtraInitializersName; - Debug.assertIsDefined(methodExtraInitializersName); - let descriptor; - if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { - descriptor = createDescriptor(member, visitNodes2(modifiers, (node) => tryCast(node, isAsyncModifier), isModifier)); - memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, "descriptor"); - descriptor = factory2.createAssignment(descriptorName, descriptor); - } - const esDecorateExpression = emitHelpers().createESDecorateHelper(factory2.createThis(), descriptor ?? factory2.createNull(), memberDecoratorsName, context2, factory2.createNull(), methodExtraInitializersName); - const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression); - setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member)); - statements.push(esDecorateStatement); - } else if (isPropertyDeclaration(member)) { - initializersName = memberInfo.memberInitializersName ?? (memberInfo.memberInitializersName = createHelperVariable(member, "initializers")); - extraInitializersName = memberInfo.memberExtraInitializersName ?? (memberInfo.memberExtraInitializersName = createHelperVariable(member, "extraInitializers")); - if (isStatic(member)) { - thisArg = classInfo2.classThis; - } - let descriptor; - if (isPrivateIdentifierClassElementDeclaration(member) && hasAccessorModifier(member) && createDescriptor) { - descriptor = createDescriptor( - member, - /*modifiers*/ - void 0 - ); - memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, "descriptor"); - descriptor = factory2.createAssignment(descriptorName, descriptor); - } - const esDecorateExpression = emitHelpers().createESDecorateHelper( - isAutoAccessorPropertyDeclaration(member) ? factory2.createThis() : factory2.createNull(), - descriptor ?? factory2.createNull(), - memberDecoratorsName, - context2, - initializersName, - extraInitializersName - ); - const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression); - setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member)); - statements.push(esDecorateStatement); - } - } - if (name === void 0) { - enterName(); - name = visitPropertyName(member.name); - exitName(); - } - if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { - setEmitFlags(name, 1024 /* NoLeadingComments */); - } - return { modifiers, referencedName, name, initializersName, extraInitializersName, descriptorName, thisArg }; - } - function visitMethodDeclaration(node) { - enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); - if (descriptorName) { - exitClassElement(); - return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); - } else { - const parameters = visitNodes2(node.parameters, visitor, isParameter); - const body = visitNode(node.body, visitor, isBlock); - exitClassElement(); - return finishClassElement(factory2.updateMethodDeclaration( - node, - modifiers, - node.asteriskToken, - name, - /*questionToken*/ - void 0, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body - ), node); - } - } - function visitGetAccessorDeclaration(node) { - enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); - if (descriptorName) { - exitClassElement(); - return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); - } else { - const parameters = visitNodes2(node.parameters, visitor, isParameter); - const body = visitNode(node.body, visitor, isBlock); - exitClassElement(); - return finishClassElement(factory2.updateGetAccessorDeclaration( - node, - modifiers, - name, - parameters, - /*type*/ - void 0, - body - ), node); - } - } - function visitSetAccessorDeclaration(node) { - enterClassElement(node); - const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); - if (descriptorName) { - exitClassElement(); - return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); - } else { - const parameters = visitNodes2(node.parameters, visitor, isParameter); - const body = visitNode(node.body, visitor, isBlock); - exitClassElement(); - return finishClassElement(factory2.updateSetAccessorDeclaration(node, modifiers, name, parameters, body), node); - } - } - function visitClassStaticBlockDeclaration(node) { - enterClassElement(node); - let result; - if (isClassNamedEvaluationHelperBlock(node)) { - result = visitEachChild(node, visitor, context); - } else if (isClassThisAssignmentBlock(node)) { - const savedClassThis = classThis; - classThis = void 0; - result = visitEachChild(node, visitor, context); - classThis = savedClassThis; - } else { - node = visitEachChild(node, visitor, context); - result = node; - if (classInfo) { - classInfo.hasStaticInitializers = true; - if (some(classInfo.pendingStaticInitializers)) { - const statements = []; - for (const initializer of classInfo.pendingStaticInitializers) { - const initializerStatement = factory2.createExpressionStatement(initializer); - setSourceMapRange(initializerStatement, getSourceMapRange(initializer)); - statements.push(initializerStatement); - } - const body = factory2.createBlock( - statements, - /*multiLine*/ - true - ); - const staticBlock = factory2.createClassStaticBlockDeclaration(body); - result = [staticBlock, result]; - classInfo.pendingStaticInitializers = void 0; - } - } - } - exitClassElement(); - return result; - } - function visitPropertyDeclaration(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); - } - enterClassElement(node); - Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); - const { modifiers, name, initializersName, extraInitializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); - startLexicalEnvironment(); - let initializer = visitNode(node.initializer, visitor, isExpression); - if (initializersName) { - initializer = emitHelpers().createRunInitializersHelper( - thisArg ?? factory2.createThis(), - initializersName, - initializer ?? factory2.createVoidZero() - ); - } - if (isStatic(node) && classInfo && initializer) { - classInfo.hasStaticInitializers = true; - } - const declarations = endLexicalEnvironment(); - if (some(declarations)) { - initializer = factory2.createImmediatelyInvokedArrowFunction([ - ...declarations, - factory2.createReturnStatement(initializer) - ]); - } - if (classInfo) { - if (isStatic(node)) { - initializer = injectPendingInitializers( - classInfo, - /*isStatic*/ - true, - initializer - ); - if (extraInitializersName) { - classInfo.pendingStaticInitializers ?? (classInfo.pendingStaticInitializers = []); - classInfo.pendingStaticInitializers.push( - emitHelpers().createRunInitializersHelper( - classInfo.classThis ?? factory2.createThis(), - extraInitializersName - ) - ); - } - } else { - initializer = injectPendingInitializers( - classInfo, - /*isStatic*/ - false, - initializer - ); - if (extraInitializersName) { - classInfo.pendingInstanceInitializers ?? (classInfo.pendingInstanceInitializers = []); - classInfo.pendingInstanceInitializers.push( - emitHelpers().createRunInitializersHelper( - factory2.createThis(), - extraInitializersName - ) - ); - } - } - } - exitClassElement(); - if (hasAccessorModifier(node) && descriptorName) { - const commentRange = getCommentRange(node); - const sourceMapRange = getSourceMapRange(node); - const name2 = node.name; - let getterName = name2; - let setterName = name2; - if (isComputedPropertyName(name2) && !isSimpleInlineableExpression(name2.expression)) { - const cacheAssignment = findComputedPropertyNameCacheAssignment(name2); - if (cacheAssignment) { - getterName = factory2.updateComputedPropertyName(name2, visitNode(name2.expression, visitor, isExpression)); - setterName = factory2.updateComputedPropertyName(name2, cacheAssignment.left); - } else { - const temp = factory2.createTempVariable(hoistVariableDeclaration); - setSourceMapRange(temp, name2.expression); - const expression = visitNode(name2.expression, visitor, isExpression); - const assignment = factory2.createAssignment(temp, expression); - setSourceMapRange(assignment, name2.expression); - getterName = factory2.updateComputedPropertyName(name2, assignment); - setterName = factory2.updateComputedPropertyName(name2, temp); - } - } - const modifiersWithoutAccessor = visitNodes2(modifiers, (node2) => node2.kind !== 129 /* AccessorKeyword */ ? node2 : void 0, isModifier); - const backingField = createAccessorPropertyBackingField(factory2, node, modifiersWithoutAccessor, initializer); - setOriginalNode(backingField, node); - setEmitFlags(backingField, 3072 /* NoComments */); - setSourceMapRange(backingField, sourceMapRange); - setSourceMapRange(backingField.name, node.name); - const getter = createGetAccessorDescriptorForwarder(modifiersWithoutAccessor, getterName, descriptorName); - setOriginalNode(getter, node); - setCommentRange(getter, commentRange); - setSourceMapRange(getter, sourceMapRange); - const setter = createSetAccessorDescriptorForwarder(modifiersWithoutAccessor, setterName, descriptorName); - setOriginalNode(setter, node); - setEmitFlags(setter, 3072 /* NoComments */); - setSourceMapRange(setter, sourceMapRange); - return [backingField, getter, setter]; - } - return finishClassElement(factory2.updatePropertyDeclaration( - node, - modifiers, - name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ), node); - } - function visitThisExpression(node) { - return classThis ?? node; - } - function visitCallExpression(node) { - if (isSuperProperty(node.expression) && classThis) { - const expression = visitNode(node.expression, visitor, isExpression); - const argumentsList = visitNodes2(node.arguments, visitor, isExpression); - const invocation = factory2.createFunctionCallCall(expression, classThis, argumentsList); - setOriginalNode(invocation, node); - setTextRange(invocation, node); - return invocation; - } - return visitEachChild(node, visitor, context); - } - function visitTaggedTemplateExpression(node) { - if (isSuperProperty(node.tag) && classThis) { - const tag = visitNode(node.tag, visitor, isExpression); - const boundTag = factory2.createFunctionBindCall(tag, classThis, []); - setOriginalNode(boundTag, node); - setTextRange(boundTag, node); - const template = visitNode(node.template, visitor, isTemplateLiteral); - return factory2.updateTaggedTemplateExpression( - node, - boundTag, - /*typeArguments*/ - void 0, - template - ); - } - return visitEachChild(node, visitor, context); - } - function visitPropertyAccessExpression(node) { - if (isSuperProperty(node) && isIdentifier(node.name) && classThis && classSuper) { - const propertyName = factory2.createStringLiteralFromNode(node.name); - const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis); - setOriginalNode(superProperty, node.expression); - setTextRange(superProperty, node.expression); - return superProperty; - } - return visitEachChild(node, visitor, context); - } - function visitElementAccessExpression(node) { - if (isSuperProperty(node) && classThis && classSuper) { - const propertyName = visitNode(node.argumentExpression, visitor, isExpression); - const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis); - setOriginalNode(superProperty, node.expression); - setTextRange(superProperty, node.expression); - return superProperty; - } - return visitEachChild(node, visitor, context); - } - function visitParameterDeclaration(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); - } - const updated = factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - visitNode(node.name, visitor, isBindingName), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - if (updated !== node) { - setCommentRange(updated, node); - setTextRange(updated, moveRangePastModifiers(node)); - setSourceMapRange(updated, moveRangePastModifiers(node)); - setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); - } - return updated; - } - function isAnonymousClassNeedingAssignedName(node) { - return isClassExpression(node) && !node.name && isDecoratedClassLike(node); - } - function canIgnoreEmptyStringLiteralInAssignedName(node) { - const innerExpression = skipOuterExpressions(node); - return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( - /*useLegacyDecorators*/ - false, - innerExpression - ); - } - function visitForStatement(node) { - return factory2.updateForStatement( - node, - visitNode(node.initializer, discardedValueVisitor, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, discardedValueVisitor, isExpression), - visitIterationBody(node.statement, visitor, context) - ); - } - function visitExpressionStatement(node) { - return visitEachChild(node, discardedValueVisitor, context); - } - function visitBinaryExpression(node, discarded) { - if (isDestructuringAssignment(node)) { - const left = visitAssignmentPattern(node.left); - const right = visitNode(node.right, visitor, isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); - } - if (isAssignmentExpression(node)) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); - return visitEachChild(node, visitor, context); - } - if (isSuperProperty(node.left) && classThis && classSuper) { - let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; - if (setterName) { - let expression = visitNode(node.right, visitor, isExpression); - if (isCompoundAssignment(node.operatorToken.kind)) { - let getterName = setterName; - if (!isSimpleInlineableExpression(setterName)) { - getterName = factory2.createTempVariable(hoistVariableDeclaration); - setterName = factory2.createAssignment(getterName, setterName); - } - const superPropertyGet = factory2.createReflectGetCall( - classSuper, - getterName, - classThis - ); - setOriginalNode(superPropertyGet, node.left); - setTextRange(superPropertyGet, node.left); - expression = factory2.createBinaryExpression( - superPropertyGet, - getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), - expression - ); - setTextRange(expression, node); - } - const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); - if (temp) { - expression = factory2.createAssignment(temp, expression); - setTextRange(temp, node); - } - expression = factory2.createReflectSetCall( - classSuper, - setterName, - expression, - classThis - ); - setOriginalNode(expression, node); - setTextRange(expression, node); - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - } - if (node.operatorToken.kind === 28 /* CommaToken */) { - const left = visitNode(node.left, discardedValueVisitor, isExpression); - const right = visitNode(node.right, discarded ? discardedValueVisitor : visitor, isExpression); - return factory2.updateBinaryExpression(node, left, node.operatorToken, right); - } - return visitEachChild(node, visitor, context); - } - function visitPreOrPostfixUnaryExpression(node, discarded) { - if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { - const operand = skipParentheses(node.operand); - if (isSuperProperty(operand) && classThis && classSuper) { - let setterName = isElementAccessExpression(operand) ? visitNode(operand.argumentExpression, visitor, isExpression) : isIdentifier(operand.name) ? factory2.createStringLiteralFromNode(operand.name) : void 0; - if (setterName) { - let getterName = setterName; - if (!isSimpleInlineableExpression(setterName)) { - getterName = factory2.createTempVariable(hoistVariableDeclaration); - setterName = factory2.createAssignment(getterName, setterName); - } - let expression = factory2.createReflectGetCall(classSuper, getterName, classThis); - setOriginalNode(expression, node); - setTextRange(expression, node); - const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); - expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); - expression = factory2.createReflectSetCall(classSuper, setterName, expression, classThis); - setOriginalNode(expression, node); - setTextRange(expression, node); - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - } - return visitEachChild(node, visitor, context); - } - function visitCommaListExpression(node, discarded) { - const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); - return factory2.updateCommaListExpression(node, elements); - } - function visitReferencedPropertyName(node) { - if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { - const referencedName2 = factory2.createStringLiteralFromNode(node); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { - const referencedName2 = factory2.createStringLiteralFromNode(node.expression); - const name2 = visitNode(node, visitor, isPropertyName); - return { referencedName: referencedName2, name: name2 }; - } - const referencedName = factory2.getGeneratedNameForNode(node); - hoistVariableDeclaration(referencedName); - const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); - const assignment = factory2.createAssignment(referencedName, key); - const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); - return { referencedName, name }; - } - function visitPropertyName(node) { - if (isComputedPropertyName(node)) { - return visitComputedPropertyName(node); - } - return visitNode(node, visitor, isPropertyName); - } - function visitComputedPropertyName(node) { - let expression = visitNode(node.expression, visitor, isExpression); - if (!isSimpleInlineableExpression(expression)) { - expression = injectPendingExpressions(expression); - } - return factory2.updateComputedPropertyName(node, expression); - } - function visitPropertyAssignment(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); - } - return visitEachChild(node, visitor, context); - } - function visitVariableDeclaration(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); - } - return visitEachChild(node, visitor, context); - } - function visitBindingElement(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); - } - return visitEachChild(node, visitor, context); - } - function visitDestructuringAssignmentTarget(node) { - if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) { - return visitAssignmentPattern(node); - } - if (isSuperProperty(node) && classThis && classSuper) { - const propertyName = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0; - if (propertyName) { - const paramName = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const expression = factory2.createAssignmentTargetWrapper( - paramName, - factory2.createReflectSetCall( - classSuper, - propertyName, - paramName, - classThis - ) - ); - setOriginalNode(expression, node); - setTextRange(expression, node); - return expression; - } - } - return visitEachChild(node, visitor, context); - } - function visitAssignmentElement(node) { - if (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - )) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); - } - const assignmentTarget = visitDestructuringAssignmentTarget(node.left); - const initializer = visitNode(node.right, visitor, isExpression); - return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); - } else { - return visitDestructuringAssignmentTarget(node); - } - } - function visitAssignmentRestElement(node) { - if (isLeftHandSideExpression(node.expression)) { - const expression = visitDestructuringAssignmentTarget(node.expression); - return factory2.updateSpreadElement(node, expression); - } - return visitEachChild(node, visitor, context); - } - function visitArrayAssignmentElement(node) { - Debug.assertNode(node, isArrayBindingOrAssignmentElement); - if (isSpreadElement(node)) return visitAssignmentRestElement(node); - if (!isOmittedExpression(node)) return visitAssignmentElement(node); - return visitEachChild(node, visitor, context); - } - function visitAssignmentProperty(node) { - const name = visitNode(node.name, visitor, isPropertyName); - if (isAssignmentExpression( - node.initializer, - /*excludeCompoundAssignment*/ - true - )) { - const assignmentElement = visitAssignmentElement(node.initializer); - return factory2.updatePropertyAssignment(node, name, assignmentElement); - } - if (isLeftHandSideExpression(node.initializer)) { - const assignmentElement = visitDestructuringAssignmentTarget(node.initializer); - return factory2.updatePropertyAssignment(node, name, assignmentElement); - } - return visitEachChild(node, visitor, context); - } - function visitShorthandAssignmentProperty(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); - } - return visitEachChild(node, visitor, context); - } - function visitAssignmentRestProperty(node) { - if (isLeftHandSideExpression(node.expression)) { - const expression = visitDestructuringAssignmentTarget(node.expression); - return factory2.updateSpreadAssignment(node, expression); - } - return visitEachChild(node, visitor, context); - } - function visitObjectAssignmentElement(node) { - Debug.assertNode(node, isObjectBindingOrAssignmentElement); - if (isSpreadAssignment(node)) return visitAssignmentRestProperty(node); - if (isShorthandPropertyAssignment(node)) return visitShorthandAssignmentProperty(node); - if (isPropertyAssignment(node)) return visitAssignmentProperty(node); - return visitEachChild(node, visitor, context); - } - function visitAssignmentPattern(node) { - if (isArrayLiteralExpression(node)) { - const elements = visitNodes2(node.elements, visitArrayAssignmentElement, isExpression); - return factory2.updateArrayLiteralExpression(node, elements); - } else { - const properties = visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike); - return factory2.updateObjectLiteralExpression(node, properties); - } - } - function visitExportAssignment(node) { - if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { - node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); - } - return visitEachChild(node, visitor, context); - } - function visitParenthesizedExpression(node, discarded) { - const visitorFunc = discarded ? discardedValueVisitor : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updateParenthesizedExpression(node, expression); - } - function visitPartiallyEmittedExpression(node, discarded) { - const visitorFunc = discarded ? discardedValueVisitor : visitor; - const expression = visitNode(node.expression, visitorFunc, isExpression); - return factory2.updatePartiallyEmittedExpression(node, expression); - } - function injectPendingExpressionsCommon(pendingExpressions2, expression) { - if (some(pendingExpressions2)) { - if (expression) { - if (isParenthesizedExpression(expression)) { - pendingExpressions2.push(expression.expression); - expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions2)); - } else { - pendingExpressions2.push(expression); - expression = factory2.inlineExpressions(pendingExpressions2); - } - } else { - expression = factory2.inlineExpressions(pendingExpressions2); - } - } - return expression; - } - function injectPendingExpressions(expression) { - const result = injectPendingExpressionsCommon(pendingExpressions, expression); - Debug.assertIsDefined(result); - if (result !== expression) { - pendingExpressions = void 0; - } - return result; - } - function injectPendingInitializers(classInfo2, isStatic2, expression) { - const result = injectPendingExpressionsCommon(isStatic2 ? classInfo2.pendingStaticInitializers : classInfo2.pendingInstanceInitializers, expression); - if (result !== expression) { - if (isStatic2) { - classInfo2.pendingStaticInitializers = void 0; - } else { - classInfo2.pendingInstanceInitializers = void 0; - } - } - return result; - } - function transformAllDecoratorsOfDeclaration(allDecorators) { - if (!allDecorators) { - return void 0; - } - const decoratorExpressions = []; - addRange(decoratorExpressions, map(allDecorators.decorators, transformDecorator)); - return decoratorExpressions; - } - function transformDecorator(decorator) { - const expression = visitNode(decorator.expression, visitor, isExpression); - setEmitFlags(expression, 3072 /* NoComments */); - const innerExpression = skipOuterExpressions(expression); - if (isAccessExpression(innerExpression)) { - const { target, thisArg } = factory2.createCallBinding( - expression, - hoistVariableDeclaration, - languageVersion, - /*cacheIdentifiers*/ - true - ); - return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); - } - return expression; - } - function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { - const func = factory2.createFunctionExpression( - modifiers, - asteriskToken, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body ?? factory2.createBlock([]) - ); - setOriginalNode(func, original); - setSourceMapRange(func, moveRangePastDecorators(original)); - setEmitFlags(func, 3072 /* NoComments */); - const prefix = kind === "get" || kind === "set" ? kind : void 0; - const functionName = factory2.createStringLiteralFromNode( - name, - /*isSingleQuote*/ - void 0 - ); - const namedFunction = emitHelpers().createSetFunctionNameHelper(func, functionName, prefix); - const method = factory2.createPropertyAssignment(factory2.createIdentifier(kind), namedFunction); - setOriginalNode(method, original); - setSourceMapRange(method, moveRangePastDecorators(original)); - setEmitFlags(method, 3072 /* NoComments */); - return method; - } - function createMethodDescriptorObject(node, modifiers) { - return factory2.createObjectLiteralExpression([ - createDescriptorMethod( - node, - node.name, - modifiers, - node.asteriskToken, - "value", - visitNodes2(node.parameters, visitor, isParameter), - visitNode(node.body, visitor, isBlock) - ) - ]); - } - function createGetAccessorDescriptorObject(node, modifiers) { - return factory2.createObjectLiteralExpression([ - createDescriptorMethod( - node, - node.name, - modifiers, - /*asteriskToken*/ - void 0, - "get", - [], - visitNode(node.body, visitor, isBlock) - ) - ]); - } - function createSetAccessorDescriptorObject(node, modifiers) { - return factory2.createObjectLiteralExpression([ - createDescriptorMethod( - node, - node.name, - modifiers, - /*asteriskToken*/ - void 0, - "set", - visitNodes2(node.parameters, visitor, isParameter), - visitNode(node.body, visitor, isBlock) - ) - ]); - } - function createAccessorPropertyDescriptorObject(node, modifiers) { - return factory2.createObjectLiteralExpression([ - createDescriptorMethod( - node, - node.name, - modifiers, - /*asteriskToken*/ - void 0, - "get", - [], - factory2.createBlock([ - factory2.createReturnStatement( - factory2.createPropertyAccessExpression( - factory2.createThis(), - factory2.getGeneratedPrivateNameForNode(node.name) - ) - ) - ]) - ), - createDescriptorMethod( - node, - node.name, - modifiers, - /*asteriskToken*/ - void 0, - "set", - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "value" - )], - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression( - factory2.createThis(), - factory2.getGeneratedPrivateNameForNode(node.name) - ), - factory2.createIdentifier("value") - ) - ) - ]) - ) - ]); - } - function createMethodDescriptorForwarder(modifiers, name, descriptorName) { - modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); - return factory2.createGetAccessorDeclaration( - modifiers, - name, - [], - /*type*/ - void 0, - factory2.createBlock([ - factory2.createReturnStatement( - factory2.createPropertyAccessExpression( - descriptorName, - factory2.createIdentifier("value") - ) - ) - ]) - ); - } - function createGetAccessorDescriptorForwarder(modifiers, name, descriptorName) { - modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); - return factory2.createGetAccessorDeclaration( - modifiers, - name, - [], - /*type*/ - void 0, - factory2.createBlock([ - factory2.createReturnStatement( - factory2.createFunctionCallCall( - factory2.createPropertyAccessExpression( - descriptorName, - factory2.createIdentifier("get") - ), - factory2.createThis(), - [] - ) - ) - ]) - ); - } - function createSetAccessorDescriptorForwarder(modifiers, name, descriptorName) { - modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); - return factory2.createSetAccessorDeclaration( - modifiers, - name, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "value" - )], - factory2.createBlock([ - factory2.createReturnStatement( - factory2.createFunctionCallCall( - factory2.createPropertyAccessExpression( - descriptorName, - factory2.createIdentifier("set") - ), - factory2.createThis(), - [factory2.createIdentifier("value")] - ) - ) - ]) - ); - } - function createMetadata(name, classSuper2) { - const varDecl = factory2.createVariableDeclaration( - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createConditionalExpression( - factory2.createLogicalAnd( - factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), - factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") - ), - factory2.createToken(58 /* QuestionToken */), - factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), - /*typeArguments*/ - void 0, - [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] - ), - factory2.createToken(59 /* ColonToken */), - factory2.createVoidZero() - ) - ); - return factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([varDecl], 2 /* Const */) - ); - } - function createSymbolMetadata(target, value) { - const defineProperty = factory2.createObjectDefinePropertyCall( - target, - factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), - factory2.createPropertyDescriptor( - { configurable: true, writable: true, enumerable: true, value }, - /*singleLine*/ - true - ) - ); - return setEmitFlags( - factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), - 1 /* SingleLine */ - ); - } - function createSymbolMetadataReference(classSuper2) { - return factory2.createBinaryExpression( - factory2.createElementAccessExpression( - classSuper2, - factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") - ), - 61 /* QuestionQuestionToken */, - factory2.createNull() - ); - } -} - -// src/compiler/transformers/es2017.ts -function transformES2017(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - resumeLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - let enabledSubstitutions = 0 /* None */; - let enclosingSuperContainerFlags = 0; - let enclosingFunctionParameterNames; - let capturedSuperProperties; - let hasSuperElementAccess; - let lexicalArgumentsBinding; - const substitutedSuperAccessors = []; - let contextFlags = 0 /* None */; - const previousOnEmitNode = context.onEmitNode; - const previousOnSubstituteNode = context.onSubstituteNode; - context.onEmitNode = onEmitNode; - context.onSubstituteNode = onSubstituteNode; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - setContextFlag(1 /* NonTopLevel */, false); - setContextFlag(2 /* HasLexicalThis */, !isEffectiveStrictModeSourceFile(node, compilerOptions)); - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - return visited; - } - function setContextFlag(flag, val) { - contextFlags = val ? contextFlags | flag : contextFlags & ~flag; - } - function inContext(flags) { - return (contextFlags & flags) !== 0; - } - function inTopLevelContext() { - return !inContext(1 /* NonTopLevel */); - } - function inHasLexicalThisContext() { - return inContext(2 /* HasLexicalThis */); - } - function doWithContext(flags, cb, value) { - const contextFlagsToSet = flags & ~contextFlags; - if (contextFlagsToSet) { - setContextFlag( - contextFlagsToSet, - /*val*/ - true - ); - const result = cb(value); - setContextFlag( - contextFlagsToSet, - /*val*/ - false - ); - return result; - } - return cb(value); - } - function visitDefault(node) { - return visitEachChild(node, visitor, context); - } - function argumentsVisitor(node) { - switch (node.kind) { - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 176 /* Constructor */: - return node; - case 169 /* Parameter */: - case 208 /* BindingElement */: - case 260 /* VariableDeclaration */: - break; - case 80 /* Identifier */: - if (lexicalArgumentsBinding && resolver.isArgumentsLocalBinding(node)) { - return lexicalArgumentsBinding; - } - break; - } - return visitEachChild(node, argumentsVisitor, context); - } - function visitor(node) { - if ((node.transformFlags & 256 /* ContainsES2017 */) === 0) { - return lexicalArgumentsBinding ? argumentsVisitor(node) : node; - } - switch (node.kind) { - case 134 /* AsyncKeyword */: - return void 0; - case 223 /* AwaitExpression */: - return visitAwaitExpression(node); - case 174 /* MethodDeclaration */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); - case 262 /* FunctionDeclaration */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); - case 218 /* FunctionExpression */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); - case 219 /* ArrowFunction */: - return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); - case 211 /* PropertyAccessExpression */: - if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { - capturedSuperProperties.add(node.name.escapedText); - } - return visitEachChild(node, visitor, context); - case 212 /* ElementAccessExpression */: - if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { - hasSuperElementAccess = true; - } - return visitEachChild(node, visitor, context); - case 177 /* GetAccessor */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); - case 178 /* SetAccessor */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); - case 176 /* Constructor */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); - default: - return visitEachChild(node, visitor, context); - } - } - function asyncBodyVisitor(node) { - if (isNodeWithPossibleHoistedDeclaration(node)) { - switch (node.kind) { - case 243 /* VariableStatement */: - return visitVariableStatementInAsyncBody(node); - case 248 /* ForStatement */: - return visitForStatementInAsyncBody(node); - case 249 /* ForInStatement */: - return visitForInStatementInAsyncBody(node); - case 250 /* ForOfStatement */: - return visitForOfStatementInAsyncBody(node); - case 299 /* CatchClause */: - return visitCatchClauseInAsyncBody(node); - case 241 /* Block */: - case 255 /* SwitchStatement */: - case 269 /* CaseBlock */: - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - case 258 /* TryStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 245 /* IfStatement */: - case 254 /* WithStatement */: - case 256 /* LabeledStatement */: - return visitEachChild(node, asyncBodyVisitor, context); - default: - return Debug.assertNever(node, "Unhandled node."); - } - } - return visitor(node); - } - function visitCatchClauseInAsyncBody(node) { - const catchClauseNames = /* @__PURE__ */ new Set(); - recordDeclarationName(node.variableDeclaration, catchClauseNames); - let catchClauseUnshadowedNames; - catchClauseNames.forEach((_, escapedName) => { - if (enclosingFunctionParameterNames.has(escapedName)) { - if (!catchClauseUnshadowedNames) { - catchClauseUnshadowedNames = new Set(enclosingFunctionParameterNames); - } - catchClauseUnshadowedNames.delete(escapedName); - } - }); - if (catchClauseUnshadowedNames) { - const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; - enclosingFunctionParameterNames = catchClauseUnshadowedNames; - const result = visitEachChild(node, asyncBodyVisitor, context); - enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames; - return result; - } else { - return visitEachChild(node, asyncBodyVisitor, context); - } - } - function visitVariableStatementInAsyncBody(node) { - if (isVariableDeclarationListWithCollidingName(node.declarationList)) { - const expression = visitVariableDeclarationListWithCollidingNames( - node.declarationList, - /*hasReceiver*/ - false - ); - return expression ? factory2.createExpressionStatement(expression) : void 0; - } - return visitEachChild(node, visitor, context); - } - function visitForInStatementInAsyncBody(node) { - return factory2.updateForInStatement( - node, - isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames( - node.initializer, - /*hasReceiver*/ - true - ) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - visitIterationBody(node.statement, asyncBodyVisitor, context) - ); - } - function visitForOfStatementInAsyncBody(node) { - return factory2.updateForOfStatement( - node, - visitNode(node.awaitModifier, visitor, isAwaitKeyword), - isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames( - node.initializer, - /*hasReceiver*/ - true - ) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - visitIterationBody(node.statement, asyncBodyVisitor, context) - ); - } - function visitForStatementInAsyncBody(node) { - const initializer = node.initializer; - return factory2.updateForStatement( - node, - isVariableDeclarationListWithCollidingName(initializer) ? visitVariableDeclarationListWithCollidingNames( - initializer, - /*hasReceiver*/ - false - ) : visitNode(node.initializer, visitor, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, visitor, isExpression), - visitIterationBody(node.statement, asyncBodyVisitor, context) - ); - } - function visitAwaitExpression(node) { - if (inTopLevelContext()) { - return visitEachChild(node, visitor, context); - } - return setOriginalNode( - setTextRange( - factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - visitNode(node.expression, visitor, isExpression) - ), - node - ), - node - ); - } - function visitConstructorDeclaration(node) { - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const updated = factory2.updateConstructorDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifier), - visitParameterList(node.parameters, visitor, context), - transformMethodBody(node) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitMethodDeclaration(node) { - let parameters; - const functionFlags = getFunctionFlags(node); - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const updated = factory2.updateMethodDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifierLike), - node.asteriskToken, - node.name, - /*questionToken*/ - void 0, - /*typeParameters*/ - void 0, - parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : transformMethodBody(node) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitGetAccessorDeclaration(node) { - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const updated = factory2.updateGetAccessorDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifierLike), - node.name, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - transformMethodBody(node) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitSetAccessorDeclaration(node) { - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const updated = factory2.updateSetAccessorDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifierLike), - node.name, - visitParameterList(node.parameters, visitor, context), - transformMethodBody(node) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitFunctionDeclaration(node) { - let parameters; - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const functionFlags = getFunctionFlags(node); - const updated = factory2.updateFunctionDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifierLike), - node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitFunctionExpression(node) { - let parameters; - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - lexicalArgumentsBinding = void 0; - const functionFlags = getFunctionFlags(node); - const updated = factory2.updateFunctionExpression( - node, - visitNodes2(node.modifiers, visitor, isModifier), - node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) - ); - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - return updated; - } - function visitArrowFunction(node) { - let parameters; - const functionFlags = getFunctionFlags(node); - return factory2.updateArrowFunction( - node, - visitNodes2(node.modifiers, visitor, isModifier), - /*typeParameters*/ - void 0, - parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - node.equalsGreaterThanToken, - functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) - ); - } - function recordDeclarationName({ name }, names) { - if (isIdentifier(name)) { - names.add(name.escapedText); - } else { - for (const element of name.elements) { - if (!isOmittedExpression(element)) { - recordDeclarationName(element, names); - } - } - } - } - function isVariableDeclarationListWithCollidingName(node) { - return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); - } - function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { - hoistVariableDeclarationList(node); - const variables = getInitializedVariables(node); - if (variables.length === 0) { - if (hasReceiver) { - return visitNode(factory2.converters.convertToAssignmentElementTarget(node.declarations[0].name), visitor, isExpression); - } - return void 0; - } - return factory2.inlineExpressions(map(variables, transformInitializedVariable)); - } - function hoistVariableDeclarationList(node) { - forEach(node.declarations, hoistVariable); - } - function hoistVariable({ name }) { - if (isIdentifier(name)) { - hoistVariableDeclaration(name); - } else { - for (const element of name.elements) { - if (!isOmittedExpression(element)) { - hoistVariable(element); - } - } - } - } - function transformInitializedVariable(node) { - const converted = setSourceMapRange( - factory2.createAssignment( - factory2.converters.convertToAssignmentElementTarget(node.name), - node.initializer - ), - node - ); - return Debug.checkDefined(visitNode(converted, visitor, isExpression)); - } - function collidesWithParameterName({ name }) { - if (isIdentifier(name)) { - return enclosingFunctionParameterNames.has(name.escapedText); - } else { - for (const element of name.elements) { - if (!isOmittedExpression(element) && collidesWithParameterName(element)) { - return true; - } - } - } - return false; - } - function transformMethodBody(node) { - Debug.assertIsDefined(node.body); - const savedCapturedSuperProperties = capturedSuperProperties; - const savedHasSuperElementAccess = hasSuperElementAccess; - capturedSuperProperties = /* @__PURE__ */ new Set(); - hasSuperElementAccess = false; - let updated = visitFunctionBody(node.body, visitor, context); - const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration); - const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */; - if (emitSuperHelpers) { - enableSubstitutionForAsyncMethodsWithSuper(); - if (capturedSuperProperties.size) { - const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); - substitutedSuperAccessors[getNodeId(variableStatement)] = true; - const statements = updated.statements.slice(); - insertStatementsAfterStandardPrologue(statements, [variableStatement]); - updated = factory2.updateBlock(updated, statements); - } - if (hasSuperElementAccess) { - if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { - addEmitHelper(updated, advancedAsyncSuperHelper); - } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { - addEmitHelper(updated, asyncSuperHelper); - } - } - } - capturedSuperProperties = savedCapturedSuperProperties; - hasSuperElementAccess = savedHasSuperElementAccess; - return updated; - } - function createCaptureArgumentsStatement() { - Debug.assert(lexicalArgumentsBinding); - const variable = factory2.createVariableDeclaration( - lexicalArgumentsBinding, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createIdentifier("arguments") - ); - const statement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - [variable] - ); - startOnNewLine(statement); - addEmitFlags(statement, 2097152 /* CustomPrologue */); - return statement; - } - function transformAsyncFunctionParameterList(node) { - if (isSimpleParameterList(node.parameters)) { - return visitParameterList(node.parameters, visitor, context); - } - const newParameters = []; - for (const parameter of node.parameters) { - if (parameter.initializer || parameter.dotDotDotToken) { - if (node.kind === 219 /* ArrowFunction */) { - const restParameter = factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - factory2.createToken(26 /* DotDotDotToken */), - factory2.createUniqueName("args", 8 /* ReservedInNestedScopes */) - ); - newParameters.push(restParameter); - } - break; - } - const newParameter = factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.getGeneratedNameForNode(parameter.name, 8 /* ReservedInNestedScopes */) - ); - newParameters.push(newParameter); - } - const newParametersArray = factory2.createNodeArray(newParameters); - setTextRange(newParametersArray, node.parameters); - return newParametersArray; - } - function transformAsyncFunctionBody(node, outerParameters) { - const innerParameters = !isSimpleParameterList(node.parameters) ? visitParameterList(node.parameters, visitor, context) : void 0; - resumeLexicalEnvironment(); - const original = getOriginalNode(node, isFunctionLike); - const nodeType = original.type; - const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; - const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; - const savedLexicalArgumentsBinding = lexicalArgumentsBinding; - const hasLexicalArguments = resolver.hasNodeCheckFlag(node, 512 /* CaptureArguments */); - const captureLexicalArguments = hasLexicalArguments && !lexicalArgumentsBinding; - if (captureLexicalArguments) { - lexicalArgumentsBinding = factory2.createUniqueName("arguments"); - } - let argumentsExpression; - if (innerParameters) { - if (isArrowFunction2) { - const parameterBindings = []; - Debug.assert(outerParameters.length <= node.parameters.length); - for (let i = 0; i < node.parameters.length; i++) { - Debug.assert(i < outerParameters.length); - const originalParameter = node.parameters[i]; - const outerParameter = outerParameters[i]; - Debug.assertNode(outerParameter.name, isIdentifier); - if (originalParameter.initializer || originalParameter.dotDotDotToken) { - Debug.assert(i === outerParameters.length - 1); - parameterBindings.push(factory2.createSpreadElement(outerParameter.name)); - break; - } - parameterBindings.push(outerParameter.name); - } - argumentsExpression = factory2.createArrayLiteralExpression(parameterBindings); - } else { - argumentsExpression = factory2.createIdentifier("arguments"); - } - } - const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; - enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); - for (const parameter of node.parameters) { - recordDeclarationName(parameter, enclosingFunctionParameterNames); - } - const savedCapturedSuperProperties = capturedSuperProperties; - const savedHasSuperElementAccess = hasSuperElementAccess; - if (!isArrowFunction2) { - capturedSuperProperties = /* @__PURE__ */ new Set(); - hasSuperElementAccess = false; - } - const hasLexicalThis = inHasLexicalThisContext(); - let asyncBody = transformAsyncFunctionBodyWorker(node.body); - asyncBody = factory2.updateBlock(asyncBody, factory2.mergeLexicalEnvironment(asyncBody.statements, endLexicalEnvironment())); - let result; - if (!isArrowFunction2) { - const statements = []; - statements.push( - factory2.createReturnStatement( - emitHelpers().createAwaiterHelper( - hasLexicalThis, - argumentsExpression, - promiseConstructor, - innerParameters, - asyncBody - ) - ) - ); - const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)); - if (emitSuperHelpers) { - enableSubstitutionForAsyncMethodsWithSuper(); - if (capturedSuperProperties.size) { - const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); - substitutedSuperAccessors[getNodeId(variableStatement)] = true; - insertStatementsAfterStandardPrologue(statements, [variableStatement]); - } - } - if (captureLexicalArguments) { - insertStatementsAfterStandardPrologue(statements, [createCaptureArgumentsStatement()]); - } - const block = factory2.createBlock( - statements, - /*multiLine*/ - true - ); - setTextRange(block, node.body); - if (emitSuperHelpers && hasSuperElementAccess) { - if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { - addEmitHelper(block, advancedAsyncSuperHelper); - } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { - addEmitHelper(block, asyncSuperHelper); - } - } - result = block; - } else { - result = emitHelpers().createAwaiterHelper( - hasLexicalThis, - argumentsExpression, - promiseConstructor, - innerParameters, - asyncBody - ); - if (captureLexicalArguments) { - const block = factory2.converters.convertToFunctionBlock(result); - result = factory2.updateBlock(block, factory2.mergeLexicalEnvironment(block.statements, [createCaptureArgumentsStatement()])); - } - } - enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames; - if (!isArrowFunction2) { - capturedSuperProperties = savedCapturedSuperProperties; - hasSuperElementAccess = savedHasSuperElementAccess; - lexicalArgumentsBinding = savedLexicalArgumentsBinding; - } - return result; - } - function transformAsyncFunctionBodyWorker(body, start) { - if (isBlock(body)) { - return factory2.updateBlock(body, visitNodes2(body.statements, asyncBodyVisitor, isStatement, start)); - } else { - return factory2.converters.convertToFunctionBlock(Debug.checkDefined(visitNode(body, asyncBodyVisitor, isConciseBody))); - } - } - function getPromiseConstructor(type) { - const typeName = type && getEntityNameFromTypeNode(type); - if (typeName && isEntityName(typeName)) { - const serializationKind = resolver.getTypeReferenceSerializationKind(typeName); - if (serializationKind === 1 /* TypeWithConstructSignatureAndValue */ || serializationKind === 0 /* Unknown */) { - return typeName; - } - } - return void 0; - } - function enableSubstitutionForAsyncMethodsWithSuper() { - if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { - enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(213 /* CallExpression */); - context.enableSubstitution(211 /* PropertyAccessExpression */); - context.enableSubstitution(212 /* ElementAccessExpression */); - context.enableEmitNotification(263 /* ClassDeclaration */); - context.enableEmitNotification(174 /* MethodDeclaration */); - context.enableEmitNotification(177 /* GetAccessor */); - context.enableEmitNotification(178 /* SetAccessor */); - context.enableEmitNotification(176 /* Constructor */); - context.enableEmitNotification(243 /* VariableStatement */); - } - } - function onEmitNode(hint, node, emitCallback) { - if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) { - const superContainerFlags = (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */) ? 128 /* MethodWithSuperPropertyAccessInAsync */ : 0) | (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) ? 256 /* MethodWithSuperPropertyAssignmentInAsync */ : 0); - if (superContainerFlags !== enclosingSuperContainerFlags) { - const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; - enclosingSuperContainerFlags = superContainerFlags; - previousOnEmitNode(hint, node, emitCallback); - enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; - return; - } - } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) { - const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; - enclosingSuperContainerFlags = 0; - previousOnEmitNode(hint, node, emitCallback); - enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; - return; - } - previousOnEmitNode(hint, node, emitCallback); - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) { - return substituteExpression(node); - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 211 /* PropertyAccessExpression */: - return substitutePropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return substituteElementAccessExpression(node); - case 213 /* CallExpression */: - return substituteCallExpression(node); - } - return node; - } - function substitutePropertyAccessExpression(node) { - if (node.expression.kind === 108 /* SuperKeyword */) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), - node.name - ), - node - ); - } - return node; - } - function substituteElementAccessExpression(node) { - if (node.expression.kind === 108 /* SuperKeyword */) { - return createSuperElementAccessInAsyncMethod( - node.argumentExpression, - node - ); - } - return node; - } - function substituteCallExpression(node) { - const expression = node.expression; - if (isSuperProperty(expression)) { - const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression); - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(argumentExpression, "call"), - /*typeArguments*/ - void 0, - [ - factory2.createThis(), - ...node.arguments - ] - ); - } - return node; - } - function isSuperContainer(node) { - const kind = node.kind; - return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; - } - function createSuperElementAccessInAsyncMethod(argumentExpression, location) { - if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.createCallExpression( - factory2.createUniqueName("_superIndex", 16 /* Optimistic */ | 32 /* FileLevel */), - /*typeArguments*/ - void 0, - [argumentExpression] - ), - "value" - ), - location - ); - } else { - return setTextRange( - factory2.createCallExpression( - factory2.createUniqueName("_superIndex", 16 /* Optimistic */ | 32 /* FileLevel */), - /*typeArguments*/ - void 0, - [argumentExpression] - ), - location - ); - } - } -} -function createSuperAccessVariableStatement(factory2, resolver, node, names) { - const hasBinding = resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */); - const accessors = []; - names.forEach((_, key) => { - const name = unescapeLeadingUnderscores(key); - const getterAndSetter = []; - getterAndSetter.push(factory2.createPropertyAssignment( - "get", - factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - /* parameters */ - [], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - setEmitFlags( - factory2.createPropertyAccessExpression( - setEmitFlags( - factory2.createSuper(), - 8 /* NoSubstitution */ - ), - name - ), - 8 /* NoSubstitution */ - ) - ) - )); - if (hasBinding) { - getterAndSetter.push( - factory2.createPropertyAssignment( - "set", - factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - /* parameters */ - [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "v", - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ) - ], - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - factory2.createAssignment( - setEmitFlags( - factory2.createPropertyAccessExpression( - setEmitFlags( - factory2.createSuper(), - 8 /* NoSubstitution */ - ), - name - ), - 8 /* NoSubstitution */ - ), - factory2.createIdentifier("v") - ) - ) - ) - ); - } - accessors.push( - factory2.createPropertyAssignment( - name, - factory2.createObjectLiteralExpression(getterAndSetter) - ) - ); - }); - return factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [ - factory2.createVariableDeclaration( - factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createCallExpression( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("Object"), - "create" - ), - /*typeArguments*/ - void 0, - [ - factory2.createNull(), - factory2.createObjectLiteralExpression( - accessors, - /*multiLine*/ - true - ) - ] - ) - ) - ], - 2 /* Const */ - ) - ); -} - -// src/compiler/transformers/es2018.ts -function transformES2018(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - resumeLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const previousOnEmitNode = context.onEmitNode; - context.onEmitNode = onEmitNode; - const previousOnSubstituteNode = context.onSubstituteNode; - context.onSubstituteNode = onSubstituteNode; - let exportedVariableStatement = false; - let enabledSubstitutions = 0 /* None */; - let enclosingFunctionFlags; - let parametersWithPrecedingObjectRestOrSpread; - let enclosingSuperContainerFlags = 0; - let hierarchyFacts = 0; - let currentSourceFile; - let taggedTemplateStringDeclarations; - let capturedSuperProperties; - let hasSuperElementAccess; - const substitutedSuperAccessors = []; - return chainBundle(context, transformSourceFile); - function affectsSubtree(excludeFacts, includeFacts) { - return hierarchyFacts !== (hierarchyFacts & ~excludeFacts | includeFacts); - } - function enterSubtree(excludeFacts, includeFacts) { - const ancestorFacts = hierarchyFacts; - hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 3 /* AncestorFactsMask */; - return ancestorFacts; - } - function exitSubtree(ancestorFacts) { - hierarchyFacts = ancestorFacts; - } - function recordTaggedTemplateString(temp) { - taggedTemplateStringDeclarations = append( - taggedTemplateStringDeclarations, - factory2.createVariableDeclaration(temp) - ); - } - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - currentSourceFile = node; - const visited = visitSourceFile(node); - addEmitHelpers(visited, context.readEmitHelpers()); - currentSourceFile = void 0; - taggedTemplateStringDeclarations = void 0; - return visited; - } - function visitor(node) { - return visitorWorker( - node, - /*expressionResultIsUnused*/ - false - ); - } - function visitorWithUnusedExpressionResult(node) { - return visitorWorker( - node, - /*expressionResultIsUnused*/ - true - ); - } - function visitorNoAsyncModifier(node) { - if (node.kind === 134 /* AsyncKeyword */) { - return void 0; - } - return node; - } - function doWithHierarchyFacts(cb, value, excludeFacts, includeFacts) { - if (affectsSubtree(excludeFacts, includeFacts)) { - const ancestorFacts = enterSubtree(excludeFacts, includeFacts); - const result = cb(value); - exitSubtree(ancestorFacts); - return result; - } - return cb(value); - } - function visitDefault(node) { - return visitEachChild(node, visitor, context); - } - function visitorWorker(node, expressionResultIsUnused2) { - if ((node.transformFlags & 128 /* ContainsES2018 */) === 0) { - return node; - } - switch (node.kind) { - case 223 /* AwaitExpression */: - return visitAwaitExpression(node); - case 229 /* YieldExpression */: - return visitYieldExpression(node); - case 253 /* ReturnStatement */: - return visitReturnStatement(node); - case 256 /* LabeledStatement */: - return visitLabeledStatement(node); - case 210 /* ObjectLiteralExpression */: - return visitObjectLiteralExpression(node); - case 226 /* BinaryExpression */: - return visitBinaryExpression(node, expressionResultIsUnused2); - case 356 /* CommaListExpression */: - return visitCommaListExpression(node, expressionResultIsUnused2); - case 299 /* CatchClause */: - return visitCatchClause(node); - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 260 /* VariableDeclaration */: - return visitVariableDeclaration(node); - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 249 /* ForInStatement */: - return doWithHierarchyFacts( - visitDefault, - node, - 0 /* IterationStatementExcludes */, - 2 /* IterationStatementIncludes */ - ); - case 250 /* ForOfStatement */: - return visitForOfStatement( - node, - /*outermostLabeledStatement*/ - void 0 - ); - case 248 /* ForStatement */: - return doWithHierarchyFacts( - visitForStatement, - node, - 0 /* IterationStatementExcludes */, - 2 /* IterationStatementIncludes */ - ); - case 222 /* VoidExpression */: - return visitVoidExpression(node); - case 176 /* Constructor */: - return doWithHierarchyFacts( - visitConstructorDeclaration, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 174 /* MethodDeclaration */: - return doWithHierarchyFacts( - visitMethodDeclaration, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 177 /* GetAccessor */: - return doWithHierarchyFacts( - visitGetAccessorDeclaration, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 178 /* SetAccessor */: - return doWithHierarchyFacts( - visitSetAccessorDeclaration, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 262 /* FunctionDeclaration */: - return doWithHierarchyFacts( - visitFunctionDeclaration, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 218 /* FunctionExpression */: - return doWithHierarchyFacts( - visitFunctionExpression, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - case 219 /* ArrowFunction */: - return doWithHierarchyFacts( - visitArrowFunction, - node, - 2 /* ArrowFunctionExcludes */, - 0 /* ArrowFunctionIncludes */ - ); - case 169 /* Parameter */: - return visitParameter(node); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 215 /* TaggedTemplateExpression */: - return visitTaggedTemplateExpression(node); - case 211 /* PropertyAccessExpression */: - if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { - capturedSuperProperties.add(node.name.escapedText); - } - return visitEachChild(node, visitor, context); - case 212 /* ElementAccessExpression */: - if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { - hasSuperElementAccess = true; - } - return visitEachChild(node, visitor, context); - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - return doWithHierarchyFacts( - visitDefault, - node, - 2 /* ClassOrFunctionExcludes */, - 1 /* ClassOrFunctionIncludes */ - ); - default: - return visitEachChild(node, visitor, context); - } - } - function visitAwaitExpression(node) { - if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { - return setOriginalNode( - setTextRange( - factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - emitHelpers().createAwaitHelper(visitNode(node.expression, visitor, isExpression)) - ), - /*location*/ - node - ), - node - ); - } - return visitEachChild(node, visitor, context); - } - function visitYieldExpression(node) { - if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { - if (node.asteriskToken) { - const expression = visitNode(Debug.checkDefined(node.expression), visitor, isExpression); - return setOriginalNode( - setTextRange( - factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - emitHelpers().createAwaitHelper( - factory2.updateYieldExpression( - node, - node.asteriskToken, - setTextRange( - emitHelpers().createAsyncDelegatorHelper( - setTextRange( - emitHelpers().createAsyncValuesHelper(expression), - expression - ) - ), - expression - ) - ) - ) - ), - node - ), - node - ); - } - return setOriginalNode( - setTextRange( - factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - createDownlevelAwait( - node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero() - ) - ), - node - ), - node - ); - } - return visitEachChild(node, visitor, context); - } - function visitReturnStatement(node) { - if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { - return factory2.updateReturnStatement( - node, - createDownlevelAwait( - node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero() - ) - ); - } - return visitEachChild(node, visitor, context); - } - function visitLabeledStatement(node) { - if (enclosingFunctionFlags & 2 /* Async */) { - const statement = unwrapInnermostStatementOfLabel(node); - if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { - return visitForOfStatement(statement, node); - } - return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); - } - return visitEachChild(node, visitor, context); - } - function chunkObjectLiteralElements(elements) { - let chunkObject; - const objects = []; - for (const e of elements) { - if (e.kind === 305 /* SpreadAssignment */) { - if (chunkObject) { - objects.push(factory2.createObjectLiteralExpression(chunkObject)); - chunkObject = void 0; - } - const target = e.expression; - objects.push(visitNode(target, visitor, isExpression)); - } else { - chunkObject = append( - chunkObject, - e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike) - ); - } - } - if (chunkObject) { - objects.push(factory2.createObjectLiteralExpression(chunkObject)); - } - return objects; - } - function visitObjectLiteralExpression(node) { - if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - const objects = chunkObjectLiteralElements(node.properties); - if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { - objects.unshift(factory2.createObjectLiteralExpression()); - } - let expression = objects[0]; - if (objects.length > 1) { - for (let i = 1; i < objects.length; i++) { - expression = emitHelpers().createAssignHelper([expression, objects[i]]); - } - return expression; - } else { - return emitHelpers().createAssignHelper(objects); - } - } - return visitEachChild(node, visitor, context); - } - function visitExpressionStatement(node) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - function visitParenthesizedExpression(node, expressionResultIsUnused2) { - return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context); - } - function visitSourceFile(node) { - const ancestorFacts = enterSubtree( - 2 /* SourceFileExcludes */, - isEffectiveStrictModeSourceFile(node, compilerOptions) ? 0 /* StrictModeSourceFileIncludes */ : 1 /* SourceFileIncludes */ - ); - exportedVariableStatement = false; - const visited = visitEachChild(node, visitor, context); - const statement = concatenate( - visited.statements, - taggedTemplateStringDeclarations && [ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList(taggedTemplateStringDeclarations) - ) - ] - ); - const result = factory2.updateSourceFile(visited, setTextRange(factory2.createNodeArray(statement), node.statements)); - exitSubtree(ancestorFacts); - return result; - } - function visitTaggedTemplateExpression(node) { - return processTaggedTemplateExpression( - context, - node, - visitor, - currentSourceFile, - recordTaggedTemplateString, - 0 /* LiftRestriction */ - ); - } - function visitBinaryExpression(node, expressionResultIsUnused2) { - if (isDestructuringAssignment(node) && containsObjectRestOrSpread(node.left)) { - return flattenDestructuringAssignment( - node, - visitor, - context, - 1 /* ObjectRest */, - !expressionResultIsUnused2 - ); - } - if (node.operatorToken.kind === 28 /* CommaToken */) { - return factory2.updateBinaryExpression( - node, - visitNode(node.left, visitorWithUnusedExpressionResult, isExpression), - node.operatorToken, - visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression) - ); - } - return visitEachChild(node, visitor, context); - } - function visitCommaListExpression(node, expressionResultIsUnused2) { - if (expressionResultIsUnused2) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - let result; - for (let i = 0; i < node.elements.length; i++) { - const element = node.elements[i]; - const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression); - if (result || visited !== element) { - result || (result = node.elements.slice(0, i)); - result.push(visited); - } - } - const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements; - return factory2.updateCommaListExpression(node, elements); - } - function visitCatchClause(node) { - if (node.variableDeclaration && isBindingPattern(node.variableDeclaration.name) && node.variableDeclaration.name.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - const name = factory2.getGeneratedNameForNode(node.variableDeclaration.name); - const updatedDecl = factory2.updateVariableDeclaration( - node.variableDeclaration, - node.variableDeclaration.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - name - ); - const visitedBindings = flattenDestructuringBinding(updatedDecl, visitor, context, 1 /* ObjectRest */); - let block = visitNode(node.block, visitor, isBlock); - if (some(visitedBindings)) { - block = factory2.updateBlock(block, [ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - visitedBindings - ), - ...block.statements - ]); - } - return factory2.updateCatchClause( - node, - factory2.updateVariableDeclaration( - node.variableDeclaration, - name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ), - block - ); - } - return visitEachChild(node, visitor, context); - } - function visitVariableStatement(node) { - if (hasSyntacticModifier(node, 32 /* Export */)) { - const savedExportedVariableStatement = exportedVariableStatement; - exportedVariableStatement = true; - const visited = visitEachChild(node, visitor, context); - exportedVariableStatement = savedExportedVariableStatement; - return visited; - } - return visitEachChild(node, visitor, context); - } - function visitVariableDeclaration(node) { - if (exportedVariableStatement) { - const savedExportedVariableStatement = exportedVariableStatement; - exportedVariableStatement = false; - const visited = visitVariableDeclarationWorker( - node, - /*exportedVariableStatement*/ - true - ); - exportedVariableStatement = savedExportedVariableStatement; - return visited; - } - return visitVariableDeclarationWorker( - node, - /*exportedVariableStatement*/ - false - ); - } - function visitVariableDeclarationWorker(node, exportedVariableStatement2) { - if (isBindingPattern(node.name) && node.name.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - return flattenDestructuringBinding( - node, - visitor, - context, - 1 /* ObjectRest */, - /*rval*/ - void 0, - exportedVariableStatement2 - ); - } - return visitEachChild(node, visitor, context); - } - function visitForStatement(node) { - return factory2.updateForStatement( - node, - visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), - visitIterationBody(node.statement, visitor, context) - ); - } - function visitVoidExpression(node) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - function visitForOfStatement(node, outermostLabeledStatement) { - const ancestorFacts = enterSubtree(0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */); - if (node.initializer.transformFlags & 65536 /* ContainsObjectRestOrSpread */ || isAssignmentPattern(node.initializer) && containsObjectRestOrSpread(node.initializer)) { - node = transformForOfStatementWithObjectRest(node); - } - const result = node.awaitModifier ? transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) : factory2.restoreEnclosingLabel(visitEachChild(node, visitor, context), outermostLabeledStatement); - exitSubtree(ancestorFacts); - return result; - } - function transformForOfStatementWithObjectRest(node) { - const initializerWithoutParens = skipParentheses(node.initializer); - if (isVariableDeclarationList(initializerWithoutParens) || isAssignmentPattern(initializerWithoutParens)) { - let bodyLocation; - let statementsLocation; - const temp = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const statements = [createForOfBindingStatement(factory2, initializerWithoutParens, temp)]; - if (isBlock(node.statement)) { - addRange(statements, node.statement.statements); - bodyLocation = node.statement; - statementsLocation = node.statement.statements; - } else if (node.statement) { - append(statements, node.statement); - bodyLocation = node.statement; - statementsLocation = node.statement; - } - return factory2.updateForOfStatement( - node, - node.awaitModifier, - setTextRange( - factory2.createVariableDeclarationList( - [ - setTextRange(factory2.createVariableDeclaration(temp), node.initializer) - ], - 1 /* Let */ - ), - node.initializer - ), - node.expression, - setTextRange( - factory2.createBlock( - setTextRange(factory2.createNodeArray(statements), statementsLocation), - /*multiLine*/ - true - ), - bodyLocation - ) - ); - } - return node; - } - function convertForOfStatementHead(node, boundValue, nonUserCode) { - const value = factory2.createTempVariable(hoistVariableDeclaration); - const iteratorValueExpression = factory2.createAssignment(value, boundValue); - const iteratorValueStatement = factory2.createExpressionStatement(iteratorValueExpression); - setSourceMapRange(iteratorValueStatement, node.expression); - const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse()); - const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression); - setSourceMapRange(exitNonUserCodeStatement, node.expression); - const statements = [iteratorValueStatement, exitNonUserCodeStatement]; - const binding = createForOfBindingStatement(factory2, node.initializer, value); - statements.push(visitNode(binding, visitor, isStatement)); - let bodyLocation; - let statementsLocation; - const statement = visitIterationBody(node.statement, visitor, context); - if (isBlock(statement)) { - addRange(statements, statement.statements); - bodyLocation = statement; - statementsLocation = statement.statements; - } else { - statements.push(statement); - } - return setTextRange( - factory2.createBlock( - setTextRange(factory2.createNodeArray(statements), statementsLocation), - /*multiLine*/ - true - ), - bodyLocation - ); - } - function createDownlevelAwait(expression) { - return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression( - /*asteriskToken*/ - void 0, - emitHelpers().createAwaitHelper(expression) - ) : factory2.createAwaitExpression(expression); - } - function transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) { - const expression = visitNode(node.expression, visitor, isExpression); - const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const nonUserCode = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const done = factory2.createTempVariable(hoistVariableDeclaration); - const errorRecord = factory2.createUniqueName("e"); - const catchVariable = factory2.getGeneratedNameForNode(errorRecord); - const returnMethod = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const callValues = setTextRange(emitHelpers().createAsyncValuesHelper(expression), node.expression); - const callNext = factory2.createCallExpression( - factory2.createPropertyAccessExpression(iterator, "next"), - /*typeArguments*/ - void 0, - [] - ); - const getDone = factory2.createPropertyAccessExpression(result, "done"); - const getValue = factory2.createPropertyAccessExpression(result, "value"); - const callReturn = factory2.createFunctionCallCall(returnMethod, iterator, []); - hoistVariableDeclaration(errorRecord); - hoistVariableDeclaration(returnMethod); - const initializer = ancestorFacts & 2 /* IterationContainer */ ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), callValues]) : callValues; - const forStatement = setEmitFlags( - setTextRange( - factory2.createForStatement( - /*initializer*/ - setEmitFlags( - setTextRange( - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - nonUserCode, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createTrue() - ), - setTextRange(factory2.createVariableDeclaration( - iterator, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ), node.expression), - factory2.createVariableDeclaration(result) - ]), - node.expression - ), - 4194304 /* NoHoisting */ - ), - /*condition*/ - factory2.inlineExpressions([ - factory2.createAssignment(result, createDownlevelAwait(callNext)), - factory2.createAssignment(done, getDone), - factory2.createLogicalNot(done) - ]), - /*incrementor*/ - factory2.createAssignment(nonUserCode, factory2.createTrue()), - /*statement*/ - convertForOfStatementHead(node, getValue, nonUserCode) - ), - /*location*/ - node - ), - 512 /* NoTokenTrailingSourceMaps */ - ); - setOriginalNode(forStatement, node); - return factory2.createTryStatement( - factory2.createBlock([ - factory2.restoreEnclosingLabel( - forStatement, - outermostLabeledStatement - ) - ]), - factory2.createCatchClause( - factory2.createVariableDeclaration(catchVariable), - setEmitFlags( - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment( - errorRecord, - factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("error", catchVariable) - ]) - ) - ) - ]), - 1 /* SingleLine */ - ) - ), - factory2.createBlock([ - factory2.createTryStatement( - /*tryBlock*/ - factory2.createBlock([ - setEmitFlags( - factory2.createIfStatement( - factory2.createLogicalAnd( - factory2.createLogicalAnd( - factory2.createLogicalNot(nonUserCode), - factory2.createLogicalNot(done) - ), - factory2.createAssignment( - returnMethod, - factory2.createPropertyAccessExpression(iterator, "return") - ) - ), - factory2.createExpressionStatement(createDownlevelAwait(callReturn)) - ), - 1 /* SingleLine */ - ) - ]), - /*catchClause*/ - void 0, - /*finallyBlock*/ - setEmitFlags( - factory2.createBlock([ - setEmitFlags( - factory2.createIfStatement( - errorRecord, - factory2.createThrowStatement( - factory2.createPropertyAccessExpression(errorRecord, "error") - ) - ), - 1 /* SingleLine */ - ) - ]), - 1 /* SingleLine */ - ) - ) - ]) - ); - } - function parameterVisitor(node) { - Debug.assertNode(node, isParameter); - return visitParameter(node); - } - function visitParameter(node) { - if (parametersWithPrecedingObjectRestOrSpread == null ? void 0 : parametersWithPrecedingObjectRestOrSpread.has(node)) { - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - isBindingPattern(node.name) ? factory2.getGeneratedNameForNode(node) : node.name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ); - } - if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - return factory2.updateParameterDeclaration( - node, - /*modifiers*/ - void 0, - node.dotDotDotToken, - factory2.getGeneratedNameForNode(node), - /*questionToken*/ - void 0, - /*type*/ - void 0, - visitNode(node.initializer, visitor, isExpression) - ); - } - return visitEachChild(node, visitor, context); - } - function collectParametersWithPrecedingObjectRestOrSpread(node) { - let parameters; - for (const parameter of node.parameters) { - if (parameters) { - parameters.add(parameter); - } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - parameters = /* @__PURE__ */ new Set(); - } - } - return parameters; - } - function visitConstructorDeclaration(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateConstructorDeclaration( - node, - node.modifiers, - visitParameterList(node.parameters, parameterVisitor, context), - transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitGetAccessorDeclaration(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateGetAccessorDeclaration( - node, - node.modifiers, - visitNode(node.name, visitor, isPropertyName), - visitParameterList(node.parameters, parameterVisitor, context), - /*type*/ - void 0, - transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitSetAccessorDeclaration(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateSetAccessorDeclaration( - node, - node.modifiers, - visitNode(node.name, visitor, isPropertyName), - visitParameterList(node.parameters, parameterVisitor, context), - transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitMethodDeclaration(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateMethodDeclaration( - node, - enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifierLike) : node.modifiers, - enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, - visitNode(node.name, visitor, isPropertyName), - visitNode( - /*node*/ - void 0, - visitor, - isQuestionToken - ), - /*typeParameters*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), - /*type*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitFunctionDeclaration(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateFunctionDeclaration( - node, - enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, - enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), - /*type*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitArrowFunction(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateArrowFunction( - node, - node.modifiers, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, parameterVisitor, context), - /*type*/ - void 0, - node.equalsGreaterThanToken, - transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function visitFunctionExpression(node) { - const savedEnclosingFunctionFlags = enclosingFunctionFlags; - const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; - enclosingFunctionFlags = getFunctionFlags(node); - parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); - const updated = factory2.updateFunctionExpression( - node, - enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, - enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, - node.name, - /*typeParameters*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), - /*type*/ - void 0, - enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) - ); - enclosingFunctionFlags = savedEnclosingFunctionFlags; - parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; - return updated; - } - function transformAsyncGeneratorFunctionParameterList(node) { - if (isSimpleParameterList(node.parameters)) { - return visitParameterList(node.parameters, visitor, context); - } - const newParameters = []; - for (const parameter of node.parameters) { - if (parameter.initializer || parameter.dotDotDotToken) { - break; - } - const newParameter = factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.getGeneratedNameForNode(parameter.name, 8 /* ReservedInNestedScopes */) - ); - newParameters.push(newParameter); - } - const newParametersArray = factory2.createNodeArray(newParameters); - setTextRange(newParametersArray, node.parameters); - return newParametersArray; - } - function transformAsyncGeneratorFunctionBody(node) { - const innerParameters = !isSimpleParameterList(node.parameters) ? visitParameterList(node.parameters, visitor, context) : void 0; - resumeLexicalEnvironment(); - const savedCapturedSuperProperties = capturedSuperProperties; - const savedHasSuperElementAccess = hasSuperElementAccess; - capturedSuperProperties = /* @__PURE__ */ new Set(); - hasSuperElementAccess = false; - const outerStatements = []; - let asyncBody = factory2.updateBlock(node.body, visitNodes2(node.body.statements, visitor, isStatement)); - asyncBody = factory2.updateBlock(asyncBody, factory2.mergeLexicalEnvironment(asyncBody.statements, appendObjectRestAssignmentsIfNeeded(endLexicalEnvironment(), node))); - const returnStatement = factory2.createReturnStatement( - emitHelpers().createAsyncGeneratorHelper( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - factory2.createToken(42 /* AsteriskToken */), - node.name && factory2.getGeneratedNameForNode(node.name), - /*typeParameters*/ - void 0, - innerParameters ?? [], - /*type*/ - void 0, - asyncBody - ), - !!(hierarchyFacts & 1 /* HasLexicalThis */) - ) - ); - const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)); - if (emitSuperHelpers) { - enableSubstitutionForAsyncMethodsWithSuper(); - const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); - substitutedSuperAccessors[getNodeId(variableStatement)] = true; - insertStatementsAfterStandardPrologue(outerStatements, [variableStatement]); - } - outerStatements.push(returnStatement); - const block = factory2.updateBlock(node.body, outerStatements); - if (emitSuperHelpers && hasSuperElementAccess) { - if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { - addEmitHelper(block, advancedAsyncSuperHelper); - } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { - addEmitHelper(block, asyncSuperHelper); - } - } - capturedSuperProperties = savedCapturedSuperProperties; - hasSuperElementAccess = savedHasSuperElementAccess; - return block; - } - function transformFunctionBody(node) { - resumeLexicalEnvironment(); - let statementOffset = 0; - const statements = []; - const body = visitNode(node.body, visitor, isConciseBody) ?? factory2.createBlock([]); - if (isBlock(body)) { - statementOffset = factory2.copyPrologue( - body.statements, - statements, - /*ensureUseStrict*/ - false, - visitor - ); - } - addRange(statements, appendObjectRestAssignmentsIfNeeded( - /*statements*/ - void 0, - node - )); - const leadingStatements = endLexicalEnvironment(); - if (statementOffset > 0 || some(statements) || some(leadingStatements)) { - const block = factory2.converters.convertToFunctionBlock( - body, - /*multiLine*/ - true - ); - insertStatementsAfterStandardPrologue(statements, leadingStatements); - addRange(statements, block.statements.slice(statementOffset)); - return factory2.updateBlock(block, setTextRange(factory2.createNodeArray(statements), block.statements)); - } - return body; - } - function appendObjectRestAssignmentsIfNeeded(statements, node) { - let containsPrecedingObjectRestOrSpread = false; - for (const parameter of node.parameters) { - if (containsPrecedingObjectRestOrSpread) { - if (isBindingPattern(parameter.name)) { - if (parameter.name.elements.length > 0) { - const declarations = flattenDestructuringBinding( - parameter, - visitor, - context, - 0 /* All */, - factory2.getGeneratedNameForNode(parameter) - ); - if (some(declarations)) { - const declarationList = factory2.createVariableDeclarationList(declarations); - const statement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - declarationList - ); - setEmitFlags(statement, 2097152 /* CustomPrologue */); - statements = append(statements, statement); - } - } else if (parameter.initializer) { - const name = factory2.getGeneratedNameForNode(parameter); - const initializer = visitNode(parameter.initializer, visitor, isExpression); - const assignment = factory2.createAssignment(name, initializer); - const statement = factory2.createExpressionStatement(assignment); - setEmitFlags(statement, 2097152 /* CustomPrologue */); - statements = append(statements, statement); - } - } else if (parameter.initializer) { - const name = factory2.cloneNode(parameter.name); - setTextRange(name, parameter.name); - setEmitFlags(name, 96 /* NoSourceMap */); - const initializer = visitNode(parameter.initializer, visitor, isExpression); - addEmitFlags(initializer, 96 /* NoSourceMap */ | 3072 /* NoComments */); - const assignment = factory2.createAssignment(name, initializer); - setTextRange(assignment, parameter); - setEmitFlags(assignment, 3072 /* NoComments */); - const block = factory2.createBlock([factory2.createExpressionStatement(assignment)]); - setTextRange(block, parameter); - setEmitFlags(block, 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */); - const typeCheck = factory2.createTypeCheck(factory2.cloneNode(parameter.name), "undefined"); - const statement = factory2.createIfStatement(typeCheck, block); - startOnNewLine(statement); - setTextRange(statement, parameter); - setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2097152 /* CustomPrologue */ | 3072 /* NoComments */); - statements = append(statements, statement); - } - } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { - containsPrecedingObjectRestOrSpread = true; - const declarations = flattenDestructuringBinding( - parameter, - visitor, - context, - 1 /* ObjectRest */, - factory2.getGeneratedNameForNode(parameter), - /*hoistTempVariables*/ - false, - /*skipInitializer*/ - true - ); - if (some(declarations)) { - const declarationList = factory2.createVariableDeclarationList(declarations); - const statement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - declarationList - ); - setEmitFlags(statement, 2097152 /* CustomPrologue */); - statements = append(statements, statement); - } - } - } - return statements; - } - function enableSubstitutionForAsyncMethodsWithSuper() { - if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { - enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; - context.enableSubstitution(213 /* CallExpression */); - context.enableSubstitution(211 /* PropertyAccessExpression */); - context.enableSubstitution(212 /* ElementAccessExpression */); - context.enableEmitNotification(263 /* ClassDeclaration */); - context.enableEmitNotification(174 /* MethodDeclaration */); - context.enableEmitNotification(177 /* GetAccessor */); - context.enableEmitNotification(178 /* SetAccessor */); - context.enableEmitNotification(176 /* Constructor */); - context.enableEmitNotification(243 /* VariableStatement */); - } - } - function onEmitNode(hint, node, emitCallback) { - if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) { - const superContainerFlags = (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */) ? 128 /* MethodWithSuperPropertyAccessInAsync */ : 0) | (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) ? 256 /* MethodWithSuperPropertyAssignmentInAsync */ : 0); - if (superContainerFlags !== enclosingSuperContainerFlags) { - const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; - enclosingSuperContainerFlags = superContainerFlags; - previousOnEmitNode(hint, node, emitCallback); - enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; - return; - } - } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) { - const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; - enclosingSuperContainerFlags = 0; - previousOnEmitNode(hint, node, emitCallback); - enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; - return; - } - previousOnEmitNode(hint, node, emitCallback); - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) { - return substituteExpression(node); - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 211 /* PropertyAccessExpression */: - return substitutePropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return substituteElementAccessExpression(node); - case 213 /* CallExpression */: - return substituteCallExpression(node); - } - return node; - } - function substitutePropertyAccessExpression(node) { - if (node.expression.kind === 108 /* SuperKeyword */) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), - node.name - ), - node - ); - } - return node; - } - function substituteElementAccessExpression(node) { - if (node.expression.kind === 108 /* SuperKeyword */) { - return createSuperElementAccessInAsyncMethod( - node.argumentExpression, - node - ); - } - return node; - } - function substituteCallExpression(node) { - const expression = node.expression; - if (isSuperProperty(expression)) { - const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression); - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(argumentExpression, "call"), - /*typeArguments*/ - void 0, - [ - factory2.createThis(), - ...node.arguments - ] - ); - } - return node; - } - function isSuperContainer(node) { - const kind = node.kind; - return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; - } - function createSuperElementAccessInAsyncMethod(argumentExpression, location) { - if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.createCallExpression( - factory2.createIdentifier("_superIndex"), - /*typeArguments*/ - void 0, - [argumentExpression] - ), - "value" - ), - location - ); - } else { - return setTextRange( - factory2.createCallExpression( - factory2.createIdentifier("_superIndex"), - /*typeArguments*/ - void 0, - [argumentExpression] - ), - location - ); - } - } -} - -// src/compiler/transformers/es2019.ts -function transformES2019(context) { - const factory2 = context.factory; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - if ((node.transformFlags & 64 /* ContainsES2019 */) === 0) { - return node; - } - switch (node.kind) { - case 299 /* CatchClause */: - return visitCatchClause(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitCatchClause(node) { - if (!node.variableDeclaration) { - return factory2.updateCatchClause( - node, - factory2.createVariableDeclaration(factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - )), - visitNode(node.block, visitor, isBlock) - ); - } - return visitEachChild(node, visitor, context); - } -} - -// src/compiler/transformers/es2020.ts -function transformES2020(context) { - const { - factory: factory2, - hoistVariableDeclaration - } = context; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - if ((node.transformFlags & 32 /* ContainsES2020 */) === 0) { - return node; - } - switch (node.kind) { - case 213 /* CallExpression */: { - const updated = visitNonOptionalCallExpression( - node, - /*captureThisArg*/ - false - ); - Debug.assertNotNode(updated, isSyntheticReference); - return updated; - } - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - if (isOptionalChain(node)) { - const updated = visitOptionalExpression( - node, - /*captureThisArg*/ - false, - /*isDelete*/ - false - ); - Debug.assertNotNode(updated, isSyntheticReference); - return updated; - } - return visitEachChild(node, visitor, context); - case 226 /* BinaryExpression */: - if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { - return transformNullishCoalescingExpression(node); - } - return visitEachChild(node, visitor, context); - case 220 /* DeleteExpression */: - return visitDeleteExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function flattenChain(chain) { - Debug.assertNotNode(chain, isNonNullChain); - const links = [chain]; - while (!chain.questionDotToken && !isTaggedTemplateExpression(chain)) { - chain = cast(skipPartiallyEmittedExpressions(chain.expression), isOptionalChain); - Debug.assertNotNode(chain, isNonNullChain); - links.unshift(chain); - } - return { expression: chain.expression, chain: links }; - } - function visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete) { - const expression = visitNonOptionalExpression(node.expression, captureThisArg, isDelete); - if (isSyntheticReference(expression)) { - return factory2.createSyntheticReferenceExpression(factory2.updateParenthesizedExpression(node, expression.expression), expression.thisArg); - } - return factory2.updateParenthesizedExpression(node, expression); - } - function visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete) { - if (isOptionalChain(node)) { - return visitOptionalExpression(node, captureThisArg, isDelete); - } - let expression = visitNode(node.expression, visitor, isExpression); - Debug.assertNotNode(expression, isSyntheticReference); - let thisArg; - if (captureThisArg) { - if (!isSimpleCopiableExpression(expression)) { - thisArg = factory2.createTempVariable(hoistVariableDeclaration); - expression = factory2.createAssignment(thisArg, expression); - } else { - thisArg = expression; - } - } - expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); - return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; - } - function visitNonOptionalCallExpression(node, captureThisArg) { - if (isOptionalChain(node)) { - return visitOptionalExpression( - node, - captureThisArg, - /*isDelete*/ - false - ); - } - if (isParenthesizedExpression(node.expression) && isOptionalChain(skipParentheses(node.expression))) { - const expression = visitNonOptionalParenthesizedExpression( - node.expression, - /*captureThisArg*/ - true, - /*isDelete*/ - false - ); - const args = visitNodes2(node.arguments, visitor, isExpression); - if (isSyntheticReference(expression)) { - return setTextRange(factory2.createFunctionCallCall(expression.expression, expression.thisArg, args), node); - } - return factory2.updateCallExpression( - node, - expression, - /*typeArguments*/ - void 0, - args - ); - } - return visitEachChild(node, visitor, context); - } - function visitNonOptionalExpression(node, captureThisArg, isDelete) { - switch (node.kind) { - case 217 /* ParenthesizedExpression */: - return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); - case 213 /* CallExpression */: - return visitNonOptionalCallExpression(node, captureThisArg); - default: - return visitNode(node, visitor, isExpression); - } - } - function visitOptionalExpression(node, captureThisArg, isDelete) { - const { expression, chain } = flattenChain(node); - const left = visitNonOptionalExpression( - skipPartiallyEmittedExpressions(expression), - isCallChain(chain[0]), - /*isDelete*/ - false - ); - let leftThisArg = isSyntheticReference(left) ? left.thisArg : void 0; - let capturedLeft = isSyntheticReference(left) ? left.expression : left; - let leftExpression = factory2.restoreOuterExpressions(expression, capturedLeft, 8 /* PartiallyEmittedExpressions */); - if (!isSimpleCopiableExpression(capturedLeft)) { - capturedLeft = factory2.createTempVariable(hoistVariableDeclaration); - leftExpression = factory2.createAssignment(capturedLeft, leftExpression); - } - let rightExpression = capturedLeft; - let thisArg; - for (let i = 0; i < chain.length; i++) { - const segment = chain[i]; - switch (segment.kind) { - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - if (i === chain.length - 1 && captureThisArg) { - if (!isSimpleCopiableExpression(rightExpression)) { - thisArg = factory2.createTempVariable(hoistVariableDeclaration); - rightExpression = factory2.createAssignment(thisArg, rightExpression); - } else { - thisArg = rightExpression; - } - } - rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); - break; - case 213 /* CallExpression */: - if (i === 0 && leftThisArg) { - if (!isGeneratedIdentifier(leftThisArg)) { - leftThisArg = factory2.cloneNode(leftThisArg); - addEmitFlags(leftThisArg, 3072 /* NoComments */); - } - rightExpression = factory2.createFunctionCallCall( - rightExpression, - leftThisArg.kind === 108 /* SuperKeyword */ ? factory2.createThis() : leftThisArg, - visitNodes2(segment.arguments, visitor, isExpression) - ); - } else { - rightExpression = factory2.createCallExpression( - rightExpression, - /*typeArguments*/ - void 0, - visitNodes2(segment.arguments, visitor, isExpression) - ); - } - break; - } - setOriginalNode(rightExpression, segment); - } - const target = isDelete ? factory2.createConditionalExpression( - createNotNullCondition( - leftExpression, - capturedLeft, - /*invert*/ - true - ), - /*questionToken*/ - void 0, - factory2.createTrue(), - /*colonToken*/ - void 0, - factory2.createDeleteExpression(rightExpression) - ) : factory2.createConditionalExpression( - createNotNullCondition( - leftExpression, - capturedLeft, - /*invert*/ - true - ), - /*questionToken*/ - void 0, - factory2.createVoidZero(), - /*colonToken*/ - void 0, - rightExpression - ); - setTextRange(target, node); - return thisArg ? factory2.createSyntheticReferenceExpression(target, thisArg) : target; - } - function createNotNullCondition(left, right, invert) { - return factory2.createBinaryExpression( - factory2.createBinaryExpression( - left, - factory2.createToken(invert ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */), - factory2.createNull() - ), - factory2.createToken(invert ? 57 /* BarBarToken */ : 56 /* AmpersandAmpersandToken */), - factory2.createBinaryExpression( - right, - factory2.createToken(invert ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */), - factory2.createVoidZero() - ) - ); - } - function transformNullishCoalescingExpression(node) { - let left = visitNode(node.left, visitor, isExpression); - let right = left; - if (!isSimpleCopiableExpression(left)) { - right = factory2.createTempVariable(hoistVariableDeclaration); - left = factory2.createAssignment(right, left); - } - return setTextRange( - factory2.createConditionalExpression( - createNotNullCondition(left, right), - /*questionToken*/ - void 0, - right, - /*colonToken*/ - void 0, - visitNode(node.right, visitor, isExpression) - ), - node - ); - } - function visitDeleteExpression(node) { - return isOptionalChain(skipParentheses(node.expression)) ? setOriginalNode(visitNonOptionalExpression( - node.expression, - /*captureThisArg*/ - false, - /*isDelete*/ - true - ), node) : factory2.updateDeleteExpression(node, visitNode(node.expression, visitor, isExpression)); - } -} - -// src/compiler/transformers/es2021.ts -function transformES2021(context) { - const { - hoistVariableDeclaration, - factory: factory2 - } = context; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - if ((node.transformFlags & 16 /* ContainsES2021 */) === 0) { - return node; - } - if (isLogicalOrCoalescingAssignmentExpression(node)) { - return transformLogicalAssignment(node); - } - return visitEachChild(node, visitor, context); - } - function transformLogicalAssignment(binaryExpression) { - const operator = binaryExpression.operatorToken; - const nonAssignmentOperator = getNonAssignmentOperatorForCompoundAssignment(operator.kind); - let left = skipParentheses(visitNode(binaryExpression.left, visitor, isLeftHandSideExpression)); - let assignmentTarget = left; - const right = skipParentheses(visitNode(binaryExpression.right, visitor, isExpression)); - if (isAccessExpression(left)) { - const propertyAccessTargetSimpleCopiable = isSimpleCopiableExpression(left.expression); - const propertyAccessTarget = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createTempVariable(hoistVariableDeclaration); - const propertyAccessTargetAssignment = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createAssignment( - propertyAccessTarget, - left.expression - ); - if (isPropertyAccessExpression(left)) { - assignmentTarget = factory2.createPropertyAccessExpression( - propertyAccessTarget, - left.name - ); - left = factory2.createPropertyAccessExpression( - propertyAccessTargetAssignment, - left.name - ); - } else { - const elementAccessArgumentSimpleCopiable = isSimpleCopiableExpression(left.argumentExpression); - const elementAccessArgument = elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createTempVariable(hoistVariableDeclaration); - assignmentTarget = factory2.createElementAccessExpression( - propertyAccessTarget, - elementAccessArgument - ); - left = factory2.createElementAccessExpression( - propertyAccessTargetAssignment, - elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createAssignment( - elementAccessArgument, - left.argumentExpression - ) - ); - } - } - return factory2.createBinaryExpression( - left, - nonAssignmentOperator, - factory2.createParenthesizedExpression( - factory2.createAssignment( - assignmentTarget, - right - ) - ) - ); - } -} - -// src/compiler/transformers/esnext.ts -function transformESNext(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - hoistVariableDeclaration, - startLexicalEnvironment, - endLexicalEnvironment - } = context; - let exportBindings; - let exportVars; - let defaultExportBinding; - let exportEqualsBinding; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - const visited = visitNode(node, visitor, isSourceFile); - addEmitHelpers(visited, context.readEmitHelpers()); - exportVars = void 0; - exportBindings = void 0; - defaultExportBinding = void 0; - return visited; - } - function visitor(node) { - if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { - return node; - } - switch (node.kind) { - case 307 /* SourceFile */: - return visitSourceFile(node); - case 241 /* Block */: - return visitBlock(node); - case 248 /* ForStatement */: - return visitForStatement(node); - case 250 /* ForOfStatement */: - return visitForOfStatement(node); - case 255 /* SwitchStatement */: - return visitSwitchStatement(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitSourceFile(node) { - const usingKind = getUsingKindOfStatements(node.statements); - if (usingKind) { - startLexicalEnvironment(); - exportBindings = new IdentifierNameMap(); - exportVars = []; - const prologueCount = countPrologueStatements(node.statements); - const topLevelStatements = []; - addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); - let pos = prologueCount; - while (pos < node.statements.length) { - const statement = node.statements[pos]; - if (getUsingKind(statement) !== 0 /* None */) { - if (pos > prologueCount) { - addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); - } - break; - } - pos++; - } - Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); - const envBinding = createEnvBinding(); - const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); - if (exportBindings.size) { - append( - topLevelStatements, - factory2.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory2.createNamedExports(arrayFrom(exportBindings.values())) - ) - ); - } - addRange(topLevelStatements, endLexicalEnvironment()); - if (exportVars.length) { - topLevelStatements.push(factory2.createVariableStatement( - factory2.createModifiersFromModifierFlags(32 /* Export */), - factory2.createVariableDeclarationList( - exportVars, - 1 /* Let */ - ) - )); - } - addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); - if (exportEqualsBinding) { - topLevelStatements.push(factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - true, - exportEqualsBinding - )); - } - return factory2.updateSourceFile(node, topLevelStatements); - } - return visitEachChild(node, visitor, context); - } - function visitBlock(node) { - const usingKind = getUsingKindOfStatements(node.statements); - if (usingKind) { - const prologueCount = countPrologueStatements(node.statements); - const envBinding = createEnvBinding(); - return factory2.updateBlock( - node, - [ - ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), - ...createDownlevelUsingStatements( - transformUsingDeclarations( - node.statements, - prologueCount, - node.statements.length, - envBinding, - /*topLevelStatements*/ - void 0 - ), - envBinding, - usingKind === 2 /* Async */ - ) - ] - ); - } - return visitEachChild(node, visitor, context); - } - function visitForStatement(node) { - if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { - return visitNode( - factory2.createBlock([ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - node.initializer - ), - factory2.updateForStatement( - node, - /*initializer*/ - void 0, - node.condition, - node.incrementor, - node.statement - ) - ]), - visitor, - isStatement - ); - } - return visitEachChild(node, visitor, context); - } - function visitForOfStatement(node) { - if (isUsingVariableDeclarationList(node.initializer)) { - const forInitializer = node.initializer; - const forDecl = firstOrUndefined(forInitializer.declarations) || factory2.createVariableDeclaration(factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - )); - const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; - const temp = factory2.getGeneratedNameForNode(forDecl.name); - const usingVar = factory2.updateVariableDeclaration( - forDecl, - forDecl.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - temp - ); - const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); - const usingVarStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - usingVarList - ); - return visitNode( - factory2.updateForOfStatement( - node, - node.awaitModifier, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration(temp) - ], 2 /* Const */), - node.expression, - isBlock(node.statement) ? factory2.updateBlock(node.statement, [ - usingVarStatement, - ...node.statement.statements - ]) : factory2.createBlock( - [ - usingVarStatement, - node.statement - ], - /*multiLine*/ - true - ) - ), - visitor, - isStatement - ); - } - return visitEachChild(node, visitor, context); - } - function visitCaseOrDefaultClause(node, envBinding) { - if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { - if (isCaseClause(node)) { - return factory2.updateCaseClause( - node, - visitNode(node.expression, visitor, isExpression), - transformUsingDeclarations( - node.statements, - /*start*/ - 0, - node.statements.length, - envBinding, - /*topLevelStatements*/ - void 0 - ) - ); - } else { - return factory2.updateDefaultClause( - node, - transformUsingDeclarations( - node.statements, - /*start*/ - 0, - node.statements.length, - envBinding, - /*topLevelStatements*/ - void 0 - ) - ); - } - } - return visitEachChild(node, visitor, context); - } - function visitSwitchStatement(node) { - const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); - if (usingKind) { - const envBinding = createEnvBinding(); - return createDownlevelUsingStatements( - [ - factory2.updateSwitchStatement( - node, - visitNode(node.expression, visitor, isExpression), - factory2.updateCaseBlock( - node.caseBlock, - node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) - ) - ) - ], - envBinding, - usingKind === 2 /* Async */ - ); - } - return visitEachChild(node, visitor, context); - } - function transformUsingDeclarations(statementsIn, start, end, envBinding, topLevelStatements) { - const statements = []; - for (let i = start; i < end; i++) { - const statement = statementsIn[i]; - const usingKind = getUsingKind(statement); - if (usingKind) { - Debug.assertNode(statement, isVariableStatement); - const declarations = []; - for (let declaration of statement.declarationList.declarations) { - if (!isIdentifier(declaration.name)) { - declarations.length = 0; - break; - } - if (isNamedEvaluation(declaration)) { - declaration = transformNamedEvaluation(context, declaration); - } - const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); - declarations.push(factory2.updateVariableDeclaration( - declaration, - declaration.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - emitHelpers().createAddDisposableResourceHelper( - envBinding, - initializer, - usingKind === 2 /* Async */ - ) - )); - } - if (declarations.length) { - const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); - setOriginalNode(varList, statement.declarationList); - setTextRange(varList, statement.declarationList); - hoistOrAppendNode(factory2.updateVariableStatement( - statement, - /*modifiers*/ - void 0, - varList - )); - continue; - } - } - const result = visitor(statement); - if (isArray(result)) { - result.forEach(hoistOrAppendNode); - } else if (result) { - hoistOrAppendNode(result); - } - } - return statements; - function hoistOrAppendNode(node) { - Debug.assertNode(node, isStatement); - append(statements, hoist(node)); - } - function hoist(node) { - if (!topLevelStatements) return node; - switch (node.kind) { - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 278 /* ExportDeclaration */: - case 262 /* FunctionDeclaration */: - return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); - case 277 /* ExportAssignment */: - return hoistExportAssignment(node); - case 263 /* ClassDeclaration */: - return hoistClassDeclaration(node); - case 243 /* VariableStatement */: - return hoistVariableStatement(node); - } - return node; - } - } - function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { - topLevelStatements.push(node); - return void 0; - } - function hoistExportAssignment(node) { - return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); - } - function hoistExportDefault(node) { - if (defaultExportBinding) { - return node; - } - defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); - hoistBindingIdentifier( - defaultExportBinding, - /*isExport*/ - true, - "default", - node - ); - let expression = node.expression; - let innerExpression = skipOuterExpressions(expression); - if (isNamedEvaluation(innerExpression)) { - innerExpression = transformNamedEvaluation( - context, - innerExpression, - /*ignoreEmptyStringLiteral*/ - false, - "default" - ); - expression = factory2.restoreOuterExpressions(expression, innerExpression); - } - const assignment = factory2.createAssignment(defaultExportBinding, expression); - return factory2.createExpressionStatement(assignment); - } - function hoistExportEquals(node) { - if (exportEqualsBinding) { - return node; - } - exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); - hoistVariableDeclaration(exportEqualsBinding); - const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); - return factory2.createExpressionStatement(assignment); - } - function hoistClassDeclaration(node) { - if (!node.name && defaultExportBinding) { - return node; - } - const isExported = hasSyntacticModifier(node, 32 /* Export */); - const isDefault = hasSyntacticModifier(node, 2048 /* Default */); - let expression = factory2.converters.convertToClassExpression(node); - if (node.name) { - hoistBindingIdentifier( - factory2.getLocalName(node), - isExported && !isDefault, - /*exportAlias*/ - void 0, - node - ); - expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); - if (isNamedEvaluation(expression)) { - expression = transformNamedEvaluation( - context, - expression, - /*ignoreEmptyStringLiteral*/ - false - ); - } - setOriginalNode(expression, node); - setSourceMapRange(expression, node); - setCommentRange(expression, node); - } - if (isDefault && !defaultExportBinding) { - defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); - hoistBindingIdentifier( - defaultExportBinding, - /*isExport*/ - true, - "default", - node - ); - expression = factory2.createAssignment(defaultExportBinding, expression); - if (isNamedEvaluation(expression)) { - expression = transformNamedEvaluation( - context, - expression, - /*ignoreEmptyStringLiteral*/ - false, - "default" - ); - } - setOriginalNode(expression, node); - } - return factory2.createExpressionStatement(expression); - } - function hoistVariableStatement(node) { - let expressions; - const isExported = hasSyntacticModifier(node, 32 /* Export */); - for (const variable of node.declarationList.declarations) { - hoistBindingElement(variable, isExported, variable); - if (variable.initializer) { - expressions = append(expressions, hoistInitializedVariable(variable)); - } - } - if (expressions) { - const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); - setOriginalNode(statement, node); - setCommentRange(statement, node); - setSourceMapRange(statement, node); - return statement; - } - return void 0; - } - function hoistInitializedVariable(node) { - Debug.assertIsDefined(node.initializer); - let target; - if (isIdentifier(node.name)) { - target = factory2.cloneNode(node.name); - setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); - } else { - target = factory2.converters.convertToAssignmentPattern(node.name); - } - const assignment = factory2.createAssignment(target, node.initializer); - setOriginalNode(assignment, node); - setCommentRange(assignment, node); - setSourceMapRange(assignment, node); - return assignment; - } - function hoistBindingElement(node, isExportedDeclaration, original) { - if (isBindingPattern(node.name)) { - for (const element of node.name.elements) { - if (!isOmittedExpression(element)) { - hoistBindingElement(element, isExportedDeclaration, original); - } - } - } else { - hoistBindingIdentifier( - node.name, - isExportedDeclaration, - /*exportAlias*/ - void 0, - original - ); - } - } - function hoistBindingIdentifier(node, isExport, exportAlias, original) { - const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); - if (isExport) { - if (exportAlias === void 0 && !isLocalName(name)) { - const varDecl = factory2.createVariableDeclaration(name); - if (original) { - setOriginalNode(varDecl, original); - } - exportVars.push(varDecl); - return; - } - const localName = exportAlias !== void 0 ? name : void 0; - const exportName = exportAlias !== void 0 ? exportAlias : name; - const specifier = factory2.createExportSpecifier( - /*isTypeOnly*/ - false, - localName, - exportName - ); - if (original) { - setOriginalNode(specifier, original); - } - exportBindings.set(name, specifier); - } - hoistVariableDeclaration(name); - } - function createEnvBinding() { - return factory2.createUniqueName("env"); - } - function createDownlevelUsingStatements(bodyStatements, envBinding, async) { - const statements = []; - const envObject = factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), - factory2.createPropertyAssignment("error", factory2.createVoidZero()), - factory2.createPropertyAssignment("hasError", factory2.createFalse()) - ]); - const envVar = factory2.createVariableDeclaration( - envBinding, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - envObject - ); - const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); - const envVarStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - envVarList - ); - statements.push(envVarStatement); - const tryBlock = factory2.createBlock( - bodyStatements, - /*multiLine*/ - true - ); - const bodyCatchBinding = factory2.createUniqueName("e"); - const catchClause = factory2.createCatchClause( - bodyCatchBinding, - factory2.createBlock( - [ - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression(envBinding, "error"), - bodyCatchBinding - ) - ), - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression(envBinding, "hasError"), - factory2.createTrue() - ) - ) - ], - /*multiLine*/ - true - ) - ); - let finallyBlock; - if (async) { - const result = factory2.createUniqueName("result"); - finallyBlock = factory2.createBlock( - [ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - result, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - emitHelpers().createDisposeResourcesHelper(envBinding) - ) - ], 2 /* Const */) - ), - factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) - ], - /*multiLine*/ - true - ); - } else { - finallyBlock = factory2.createBlock( - [ - factory2.createExpressionStatement( - emitHelpers().createDisposeResourcesHelper(envBinding) - ) - ], - /*multiLine*/ - true - ); - } - const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); - statements.push(tryStatement); - return statements; - } -} -function countPrologueStatements(statements) { - for (let i = 0; i < statements.length; i++) { - if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { - return i; - } - } - return 0; -} -function isUsingVariableDeclarationList(node) { - return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; -} -function getUsingKindOfVariableDeclarationList(node) { - return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; -} -function getUsingKindOfVariableStatement(node) { - return getUsingKindOfVariableDeclarationList(node.declarationList); -} -function getUsingKind(statement) { - return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; -} -function getUsingKindOfStatements(statements) { - let result = 0 /* None */; - for (const statement of statements) { - const usingKind = getUsingKind(statement); - if (usingKind === 2 /* Async */) return 2 /* Async */; - if (usingKind > result) result = usingKind; - } - return result; -} -function getUsingKindOfCaseOrDefaultClauses(clauses) { - let result = 0 /* None */; - for (const clause of clauses) { - const usingKind = getUsingKindOfStatements(clause.statements); - if (usingKind === 2 /* Async */) return 2 /* Async */; - if (usingKind > result) result = usingKind; - } - return result; -} - -// src/compiler/transformers/jsx.ts -function transformJsx(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers - } = context; - const compilerOptions = context.getCompilerOptions(); - let currentSourceFile; - let currentFileState; - return chainBundle(context, transformSourceFile); - function getCurrentFileNameExpression() { - if (currentFileState.filenameDeclaration) { - return currentFileState.filenameDeclaration.name; - } - const declaration = factory2.createVariableDeclaration( - factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createStringLiteral(currentSourceFile.fileName) - ); - currentFileState.filenameDeclaration = declaration; - return currentFileState.filenameDeclaration.name; - } - function getJsxFactoryCalleePrimitive(isStaticChildren) { - return compilerOptions.jsx === 5 /* ReactJSXDev */ ? "jsxDEV" : isStaticChildren ? "jsxs" : "jsx"; - } - function getJsxFactoryCallee(isStaticChildren) { - const type = getJsxFactoryCalleePrimitive(isStaticChildren); - return getImplicitImportForName(type); - } - function getImplicitJsxFragmentReference() { - return getImplicitImportForName("Fragment"); - } - function getImplicitImportForName(name) { - var _a, _b; - const importSource = name === "createElement" ? currentFileState.importSpecifier : getJSXRuntimeImport(currentFileState.importSpecifier, compilerOptions); - const existing = (_b = (_a = currentFileState.utilizedImplicitRuntimeImports) == null ? void 0 : _a.get(importSource)) == null ? void 0 : _b.get(name); - if (existing) { - return existing.name; - } - if (!currentFileState.utilizedImplicitRuntimeImports) { - currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map(); - } - let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource); - if (!specifierSourceImports) { - specifierSourceImports = /* @__PURE__ */ new Map(); - currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports); - } - const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */); - const specifier = factory2.createImportSpecifier( - /*isTypeOnly*/ - false, - factory2.createIdentifier(name), - generatedName - ); - setIdentifierGeneratedImportReference(generatedName, specifier); - specifierSourceImports.set(name, specifier); - return generatedName; - } - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - currentSourceFile = node; - currentFileState = {}; - currentFileState.importSpecifier = getJSXImplicitImportBase(compilerOptions, node); - let visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - let statements = visited.statements; - if (currentFileState.filenameDeclaration) { - statements = insertStatementAfterCustomPrologue(statements.slice(), factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([currentFileState.filenameDeclaration], 2 /* Const */) - )); - } - if (currentFileState.utilizedImplicitRuntimeImports) { - for (const [importSource, importSpecifiersMap] of arrayFrom(currentFileState.utilizedImplicitRuntimeImports.entries())) { - if (isExternalModule(node)) { - const importStatement = factory2.createImportDeclaration( - /*modifiers*/ - void 0, - factory2.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - factory2.createNamedImports(arrayFrom(importSpecifiersMap.values())) - ), - factory2.createStringLiteral(importSource), - /*attributes*/ - void 0 - ); - setParentRecursive( - importStatement, - /*incremental*/ - false - ); - statements = insertStatementAfterCustomPrologue(statements.slice(), importStatement); - } else if (isExternalOrCommonJsModule(node)) { - const requireStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement( - /*dotDotDotToken*/ - void 0, - s.propertyName, - s.name - ))), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createCallExpression( - factory2.createIdentifier("require"), - /*typeArguments*/ - void 0, - [factory2.createStringLiteral(importSource)] - ) - ) - ], 2 /* Const */) - ); - setParentRecursive( - requireStatement, - /*incremental*/ - false - ); - statements = insertStatementAfterCustomPrologue(statements.slice(), requireStatement); - } else { - } - } - } - if (statements !== visited.statements) { - visited = factory2.updateSourceFile(visited, statements); - } - currentFileState = void 0; - return visited; - } - function visitor(node) { - if (node.transformFlags & 2 /* ContainsJsx */) { - return visitorWorker(node); - } else { - return node; - } - } - function visitorWorker(node) { - switch (node.kind) { - case 284 /* JsxElement */: - return visitJsxElement( - node, - /*isChild*/ - false - ); - case 285 /* JsxSelfClosingElement */: - return visitJsxSelfClosingElement( - node, - /*isChild*/ - false - ); - case 288 /* JsxFragment */: - return visitJsxFragment( - node, - /*isChild*/ - false - ); - case 294 /* JsxExpression */: - return visitJsxExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function transformJsxChildToExpression(node) { - switch (node.kind) { - case 12 /* JsxText */: - return visitJsxText(node); - case 294 /* JsxExpression */: - return visitJsxExpression(node); - case 284 /* JsxElement */: - return visitJsxElement( - node, - /*isChild*/ - true - ); - case 285 /* JsxSelfClosingElement */: - return visitJsxSelfClosingElement( - node, - /*isChild*/ - true - ); - case 288 /* JsxFragment */: - return visitJsxFragment( - node, - /*isChild*/ - true - ); - default: - return Debug.failBadSyntaxKind(node); - } - } - function hasProto(obj) { - return obj.properties.some( - (p) => isPropertyAssignment(p) && (isIdentifier(p.name) && idText(p.name) === "__proto__" || isStringLiteral(p.name) && p.name.text === "__proto__") - ); - } - function hasKeyAfterPropsSpread(node) { - let spread = false; - for (const elem of node.attributes.properties) { - if (isJsxSpreadAttribute(elem) && (!isObjectLiteralExpression(elem.expression) || elem.expression.properties.some(isSpreadAssignment))) { - spread = true; - } else if (spread && isJsxAttribute(elem) && isIdentifier(elem.name) && elem.name.escapedText === "key") { - return true; - } - } - return false; - } - function shouldUseCreateElement(node) { - return currentFileState.importSpecifier === void 0 || hasKeyAfterPropsSpread(node); - } - function visitJsxElement(node, isChild) { - const tagTransform = shouldUseCreateElement(node.openingElement) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX; - return tagTransform( - node.openingElement, - node.children, - isChild, - /*location*/ - node - ); - } - function visitJsxSelfClosingElement(node, isChild) { - const tagTransform = shouldUseCreateElement(node) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX; - return tagTransform( - node, - /*children*/ - void 0, - isChild, - /*location*/ - node - ); - } - function visitJsxFragment(node, isChild) { - const tagTransform = currentFileState.importSpecifier === void 0 ? visitJsxOpeningFragmentCreateElement : visitJsxOpeningFragmentJSX; - return tagTransform( - node.openingFragment, - node.children, - isChild, - /*location*/ - node - ); - } - function convertJsxChildrenToChildrenPropObject(children) { - const prop = convertJsxChildrenToChildrenPropAssignment(children); - return prop && factory2.createObjectLiteralExpression([prop]); - } - function convertJsxChildrenToChildrenPropAssignment(children) { - const nonWhitespaceChildren = getSemanticJsxChildren(children); - if (length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) { - const result2 = transformJsxChildToExpression(nonWhitespaceChildren[0]); - return result2 && factory2.createPropertyAssignment("children", result2); - } - const result = mapDefined(children, transformJsxChildToExpression); - return length(result) ? factory2.createPropertyAssignment("children", factory2.createArrayLiteralExpression(result)) : void 0; - } - function visitJsxOpeningLikeElementJSX(node, children, isChild, location) { - const tagName = getTagName(node); - const childrenProp = children && children.length ? convertJsxChildrenToChildrenPropAssignment(children) : void 0; - const keyAttr = find(node.attributes.properties, (p) => !!p.name && isIdentifier(p.name) && p.name.escapedText === "key"); - const attrs = keyAttr ? filter(node.attributes.properties, (p) => p !== keyAttr) : node.attributes.properties; - const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs, childrenProp) : factory2.createObjectLiteralExpression(childrenProp ? [childrenProp] : emptyArray); - return visitJsxOpeningLikeElementOrFragmentJSX( - tagName, - objectProperties, - keyAttr, - children || emptyArray, - isChild, - location - ); - } - function visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, children, isChild, location) { - var _a; - const nonWhitespaceChildren = getSemanticJsxChildren(children); - const isStaticChildren = length(nonWhitespaceChildren) > 1 || !!((_a = nonWhitespaceChildren[0]) == null ? void 0 : _a.dotDotDotToken); - const args = [tagName, objectProperties]; - if (keyAttr) { - args.push(transformJsxAttributeInitializer(keyAttr.initializer)); - } - if (compilerOptions.jsx === 5 /* ReactJSXDev */) { - const originalFile = getOriginalNode(currentSourceFile); - if (originalFile && isSourceFile(originalFile)) { - if (keyAttr === void 0) { - args.push(factory2.createVoidZero()); - } - args.push(isStaticChildren ? factory2.createTrue() : factory2.createFalse()); - const lineCol = getLineAndCharacterOfPosition(originalFile, location.pos); - args.push(factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("fileName", getCurrentFileNameExpression()), - factory2.createPropertyAssignment("lineNumber", factory2.createNumericLiteral(lineCol.line + 1)), - factory2.createPropertyAssignment("columnNumber", factory2.createNumericLiteral(lineCol.character + 1)) - ])); - args.push(factory2.createThis()); - } - } - const element = setTextRange( - factory2.createCallExpression( - getJsxFactoryCallee(isStaticChildren), - /*typeArguments*/ - void 0, - args - ), - location - ); - if (isChild) { - startOnNewLine(element); - } - return element; - } - function visitJsxOpeningLikeElementCreateElement(node, children, isChild, location) { - const tagName = getTagName(node); - const attrs = node.attributes.properties; - const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs) : factory2.createNull(); - const callee = currentFileState.importSpecifier === void 0 ? createJsxFactoryExpression( - factory2, - context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), - compilerOptions.reactNamespace, - // TODO: GH#18217 - node - ) : getImplicitImportForName("createElement"); - const element = createExpressionForJsxElement( - factory2, - callee, - tagName, - objectProperties, - mapDefined(children, transformJsxChildToExpression), - location - ); - if (isChild) { - startOnNewLine(element); - } - return element; - } - function visitJsxOpeningFragmentJSX(_node, children, isChild, location) { - let childrenProps; - if (children && children.length) { - const result = convertJsxChildrenToChildrenPropObject(children); - if (result) { - childrenProps = result; - } - } - return visitJsxOpeningLikeElementOrFragmentJSX( - getImplicitJsxFragmentReference(), - childrenProps || factory2.createObjectLiteralExpression([]), - /*keyAttr*/ - void 0, - children, - isChild, - location - ); - } - function visitJsxOpeningFragmentCreateElement(node, children, isChild, location) { - const element = createExpressionForJsxFragment( - factory2, - context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), - context.getEmitResolver().getJsxFragmentFactoryEntity(currentSourceFile), - compilerOptions.reactNamespace, - // TODO: GH#18217 - mapDefined(children, transformJsxChildToExpression), - node, - location - ); - if (isChild) { - startOnNewLine(element); - } - return element; - } - function transformJsxSpreadAttributeToProps(node) { - if (isObjectLiteralExpression(node.expression) && !hasProto(node.expression)) { - return sameMap(node.expression.properties, (p) => Debug.checkDefined(visitNode(p, visitor, isObjectLiteralElementLike))); - } - return factory2.createSpreadAssignment(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); - } - function transformJsxAttributesToObjectProps(attrs, children) { - const target = getEmitScriptTarget(compilerOptions); - return target && target >= 5 /* ES2018 */ ? factory2.createObjectLiteralExpression(transformJsxAttributesToProps(attrs, children)) : transformJsxAttributesToExpression(attrs, children); - } - function transformJsxAttributesToProps(attrs, children) { - const props = flatten(spanMap(attrs, isJsxSpreadAttribute, (attrs2, isSpread) => flatten(map(attrs2, (attr) => isSpread ? transformJsxSpreadAttributeToProps(attr) : transformJsxAttributeToObjectLiteralElement(attr))))); - if (children) { - props.push(children); - } - return props; - } - function transformJsxAttributesToExpression(attrs, children) { - const expressions = []; - let properties = []; - for (const attr of attrs) { - if (isJsxSpreadAttribute(attr)) { - if (isObjectLiteralExpression(attr.expression) && !hasProto(attr.expression)) { - for (const prop of attr.expression.properties) { - if (isSpreadAssignment(prop)) { - finishObjectLiteralIfNeeded(); - expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); - continue; - } - properties.push(Debug.checkDefined(visitNode(prop, visitor))); - } - continue; - } - finishObjectLiteralIfNeeded(); - expressions.push(Debug.checkDefined(visitNode(attr.expression, visitor, isExpression))); - continue; - } - properties.push(transformJsxAttributeToObjectLiteralElement(attr)); - } - if (children) { - properties.push(children); - } - finishObjectLiteralIfNeeded(); - if (expressions.length && !isObjectLiteralExpression(expressions[0])) { - expressions.unshift(factory2.createObjectLiteralExpression()); - } - return singleOrUndefined(expressions) || emitHelpers().createAssignHelper(expressions); - function finishObjectLiteralIfNeeded() { - if (properties.length) { - expressions.push(factory2.createObjectLiteralExpression(properties)); - properties = []; - } - } - } - function transformJsxAttributeToObjectLiteralElement(node) { - const name = getAttributeName(node); - const expression = transformJsxAttributeInitializer(node.initializer); - return factory2.createPropertyAssignment(name, expression); - } - function transformJsxAttributeInitializer(node) { - if (node === void 0) { - return factory2.createTrue(); - } - if (node.kind === 11 /* StringLiteral */) { - const singleQuote = node.singleQuote !== void 0 ? node.singleQuote : !isStringDoubleQuoted(node, currentSourceFile); - const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); - return setTextRange(literal, node); - } - if (node.kind === 294 /* JsxExpression */) { - if (node.expression === void 0) { - return factory2.createTrue(); - } - return Debug.checkDefined(visitNode(node.expression, visitor, isExpression)); - } - if (isJsxElement(node)) { - return visitJsxElement( - node, - /*isChild*/ - false - ); - } - if (isJsxSelfClosingElement(node)) { - return visitJsxSelfClosingElement( - node, - /*isChild*/ - false - ); - } - if (isJsxFragment(node)) { - return visitJsxFragment( - node, - /*isChild*/ - false - ); - } - return Debug.failBadSyntaxKind(node); - } - function visitJsxText(node) { - const fixed = fixupWhitespaceAndDecodeEntities(node.text); - return fixed === void 0 ? void 0 : factory2.createStringLiteral(fixed); - } - function fixupWhitespaceAndDecodeEntities(text) { - let acc; - let firstNonWhitespace = 0; - let lastNonWhitespace = -1; - for (let i = 0; i < text.length; i++) { - const c = text.charCodeAt(i); - if (isLineBreak(c)) { - if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) { - acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace + 1)); - } - firstNonWhitespace = -1; - } else if (!isWhiteSpaceSingleLine(c)) { - lastNonWhitespace = i; - if (firstNonWhitespace === -1) { - firstNonWhitespace = i; - } - } - } - return firstNonWhitespace !== -1 ? addLineOfJsxText(acc, text.substr(firstNonWhitespace)) : acc; - } - function addLineOfJsxText(acc, trimmedLine) { - const decoded = decodeEntities(trimmedLine); - return acc === void 0 ? decoded : acc + " " + decoded; - } - function decodeEntities(text) { - return text.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, (match, _all, _number, _digits, decimal, hex, word) => { - if (decimal) { - return utf16EncodeAsString(parseInt(decimal, 10)); - } else if (hex) { - return utf16EncodeAsString(parseInt(hex, 16)); - } else { - const ch = entities.get(word); - return ch ? utf16EncodeAsString(ch) : match; - } - }); - } - function tryDecodeEntities(text) { - const decoded = decodeEntities(text); - return decoded === text ? void 0 : decoded; - } - function getTagName(node) { - if (node.kind === 284 /* JsxElement */) { - return getTagName(node.openingElement); - } else { - const tagName = node.tagName; - if (isIdentifier(tagName) && isIntrinsicJsxName(tagName.escapedText)) { - return factory2.createStringLiteral(idText(tagName)); - } else if (isJsxNamespacedName(tagName)) { - return factory2.createStringLiteral(idText(tagName.namespace) + ":" + idText(tagName.name)); - } else { - return createExpressionFromEntityName(factory2, tagName); - } - } - } - function getAttributeName(node) { - const name = node.name; - if (isIdentifier(name)) { - const text = idText(name); - return /^[A-Z_]\w*$/i.test(text) ? name : factory2.createStringLiteral(text); - } - return factory2.createStringLiteral(idText(name.namespace) + ":" + idText(name.name)); - } - function visitJsxExpression(node) { - const expression = visitNode(node.expression, visitor, isExpression); - return node.dotDotDotToken ? factory2.createSpreadElement(expression) : expression; - } -} -var entities = new Map(Object.entries({ - quot: 34, - amp: 38, - apos: 39, - lt: 60, - gt: 62, - nbsp: 160, - iexcl: 161, - cent: 162, - pound: 163, - curren: 164, - yen: 165, - brvbar: 166, - sect: 167, - uml: 168, - copy: 169, - ordf: 170, - laquo: 171, - not: 172, - shy: 173, - reg: 174, - macr: 175, - deg: 176, - plusmn: 177, - sup2: 178, - sup3: 179, - acute: 180, - micro: 181, - para: 182, - middot: 183, - cedil: 184, - sup1: 185, - ordm: 186, - raquo: 187, - frac14: 188, - frac12: 189, - frac34: 190, - iquest: 191, - Agrave: 192, - Aacute: 193, - Acirc: 194, - Atilde: 195, - Auml: 196, - Aring: 197, - AElig: 198, - Ccedil: 199, - Egrave: 200, - Eacute: 201, - Ecirc: 202, - Euml: 203, - Igrave: 204, - Iacute: 205, - Icirc: 206, - Iuml: 207, - ETH: 208, - Ntilde: 209, - Ograve: 210, - Oacute: 211, - Ocirc: 212, - Otilde: 213, - Ouml: 214, - times: 215, - Oslash: 216, - Ugrave: 217, - Uacute: 218, - Ucirc: 219, - Uuml: 220, - Yacute: 221, - THORN: 222, - szlig: 223, - agrave: 224, - aacute: 225, - acirc: 226, - atilde: 227, - auml: 228, - aring: 229, - aelig: 230, - ccedil: 231, - egrave: 232, - eacute: 233, - ecirc: 234, - euml: 235, - igrave: 236, - iacute: 237, - icirc: 238, - iuml: 239, - eth: 240, - ntilde: 241, - ograve: 242, - oacute: 243, - ocirc: 244, - otilde: 245, - ouml: 246, - divide: 247, - oslash: 248, - ugrave: 249, - uacute: 250, - ucirc: 251, - uuml: 252, - yacute: 253, - thorn: 254, - yuml: 255, - OElig: 338, - oelig: 339, - Scaron: 352, - scaron: 353, - Yuml: 376, - fnof: 402, - circ: 710, - tilde: 732, - Alpha: 913, - Beta: 914, - Gamma: 915, - Delta: 916, - Epsilon: 917, - Zeta: 918, - Eta: 919, - Theta: 920, - Iota: 921, - Kappa: 922, - Lambda: 923, - Mu: 924, - Nu: 925, - Xi: 926, - Omicron: 927, - Pi: 928, - Rho: 929, - Sigma: 931, - Tau: 932, - Upsilon: 933, - Phi: 934, - Chi: 935, - Psi: 936, - Omega: 937, - alpha: 945, - beta: 946, - gamma: 947, - delta: 948, - epsilon: 949, - zeta: 950, - eta: 951, - theta: 952, - iota: 953, - kappa: 954, - lambda: 955, - mu: 956, - nu: 957, - xi: 958, - omicron: 959, - pi: 960, - rho: 961, - sigmaf: 962, - sigma: 963, - tau: 964, - upsilon: 965, - phi: 966, - chi: 967, - psi: 968, - omega: 969, - thetasym: 977, - upsih: 978, - piv: 982, - ensp: 8194, - emsp: 8195, - thinsp: 8201, - zwnj: 8204, - zwj: 8205, - lrm: 8206, - rlm: 8207, - ndash: 8211, - mdash: 8212, - lsquo: 8216, - rsquo: 8217, - sbquo: 8218, - ldquo: 8220, - rdquo: 8221, - bdquo: 8222, - dagger: 8224, - Dagger: 8225, - bull: 8226, - hellip: 8230, - permil: 8240, - prime: 8242, - Prime: 8243, - lsaquo: 8249, - rsaquo: 8250, - oline: 8254, - frasl: 8260, - euro: 8364, - image: 8465, - weierp: 8472, - real: 8476, - trade: 8482, - alefsym: 8501, - larr: 8592, - uarr: 8593, - rarr: 8594, - darr: 8595, - harr: 8596, - crarr: 8629, - lArr: 8656, - uArr: 8657, - rArr: 8658, - dArr: 8659, - hArr: 8660, - forall: 8704, - part: 8706, - exist: 8707, - empty: 8709, - nabla: 8711, - isin: 8712, - notin: 8713, - ni: 8715, - prod: 8719, - sum: 8721, - minus: 8722, - lowast: 8727, - radic: 8730, - prop: 8733, - infin: 8734, - ang: 8736, - and: 8743, - or: 8744, - cap: 8745, - cup: 8746, - int: 8747, - there4: 8756, - sim: 8764, - cong: 8773, - asymp: 8776, - ne: 8800, - equiv: 8801, - le: 8804, - ge: 8805, - sub: 8834, - sup: 8835, - nsub: 8836, - sube: 8838, - supe: 8839, - oplus: 8853, - otimes: 8855, - perp: 8869, - sdot: 8901, - lceil: 8968, - rceil: 8969, - lfloor: 8970, - rfloor: 8971, - lang: 9001, - rang: 9002, - loz: 9674, - spades: 9824, - clubs: 9827, - hearts: 9829, - diams: 9830 -})); - -// src/compiler/transformers/es2016.ts -function transformES2016(context) { - const { - factory: factory2, - hoistVariableDeclaration - } = context; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - if ((node.transformFlags & 512 /* ContainsES2016 */) === 0) { - return node; - } - switch (node.kind) { - case 226 /* BinaryExpression */: - return visitBinaryExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitBinaryExpression(node) { - switch (node.operatorToken.kind) { - case 68 /* AsteriskAsteriskEqualsToken */: - return visitExponentiationAssignmentExpression(node); - case 43 /* AsteriskAsteriskToken */: - return visitExponentiationExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitExponentiationAssignmentExpression(node) { - let target; - let value; - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, visitor, isExpression); - if (isElementAccessExpression(left)) { - const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration); - const argumentExpressionTemp = factory2.createTempVariable(hoistVariableDeclaration); - target = setTextRange( - factory2.createElementAccessExpression( - setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), - setTextRange(factory2.createAssignment(argumentExpressionTemp, left.argumentExpression), left.argumentExpression) - ), - left - ); - value = setTextRange( - factory2.createElementAccessExpression( - expressionTemp, - argumentExpressionTemp - ), - left - ); - } else if (isPropertyAccessExpression(left)) { - const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration); - target = setTextRange( - factory2.createPropertyAccessExpression( - setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), - left.name - ), - left - ); - value = setTextRange( - factory2.createPropertyAccessExpression( - expressionTemp, - left.name - ), - left - ); - } else { - target = left; - value = left; - } - return setTextRange( - factory2.createAssignment( - target, - setTextRange(factory2.createGlobalMethodCall("Math", "pow", [value, right]), node) - ), - node - ); - } - function visitExponentiationExpression(node) { - const left = visitNode(node.left, visitor, isExpression); - const right = visitNode(node.right, visitor, isExpression); - return setTextRange(factory2.createGlobalMethodCall("Math", "pow", [left, right]), node); - } -} - -// src/compiler/transformers/es2015.ts -function createSpreadSegment(kind, expression) { - return { kind, expression }; -} -function transformES2015(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - startLexicalEnvironment, - resumeLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const compilerOptions = context.getCompilerOptions(); - const resolver = context.getEmitResolver(); - const previousOnSubstituteNode = context.onSubstituteNode; - const previousOnEmitNode = context.onEmitNode; - context.onEmitNode = onEmitNode; - context.onSubstituteNode = onSubstituteNode; - let currentSourceFile; - let currentText; - let hierarchyFacts; - let taggedTemplateStringDeclarations; - function recordTaggedTemplateString(temp) { - taggedTemplateStringDeclarations = append( - taggedTemplateStringDeclarations, - factory2.createVariableDeclaration(temp) - ); - } - let convertedLoopState; - let enabledSubstitutions = 0 /* None */; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - currentSourceFile = node; - currentText = node.text; - const visited = visitSourceFile(node); - addEmitHelpers(visited, context.readEmitHelpers()); - currentSourceFile = void 0; - currentText = void 0; - taggedTemplateStringDeclarations = void 0; - hierarchyFacts = 0 /* None */; - return visited; - } - function enterSubtree(excludeFacts, includeFacts) { - const ancestorFacts = hierarchyFacts; - hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 32767 /* AncestorFactsMask */; - return ancestorFacts; - } - function exitSubtree(ancestorFacts, excludeFacts, includeFacts) { - hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; - } - function isReturnVoidStatementInConstructorWithCapturedSuper(node) { - return (hierarchyFacts & 8192 /* ConstructorWithSuperCall */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; - } - function isOrMayContainReturnCompletion(node) { - return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( - node, - /*lookInLabeledStatements*/ - false - ) || isBlock(node)); - } - function shouldVisitNode(node) { - return (node.transformFlags & 1024 /* ContainsES2015 */) !== 0 || convertedLoopState !== void 0 || hierarchyFacts & 8192 /* ConstructorWithSuperCall */ && isOrMayContainReturnCompletion(node) || isIterationStatement( - node, - /*lookInLabeledStatements*/ - false - ) && shouldConvertIterationStatement(node) || (getInternalEmitFlags(node) & 1 /* TypeScriptClassWrapper */) !== 0; - } - function visitor(node) { - return shouldVisitNode(node) ? visitorWorker( - node, - /*expressionResultIsUnused*/ - false - ) : node; - } - function visitorWithUnusedExpressionResult(node) { - return shouldVisitNode(node) ? visitorWorker( - node, - /*expressionResultIsUnused*/ - true - ) : node; - } - function classWrapperStatementVisitor(node) { - if (shouldVisitNode(node)) { - const original = getOriginalNode(node); - if (isPropertyDeclaration(original) && hasStaticModifier(original)) { - const ancestorFacts = enterSubtree( - 32670 /* StaticInitializerExcludes */, - 16449 /* StaticInitializerIncludes */ - ); - const result = visitorWorker( - node, - /*expressionResultIsUnused*/ - false - ); - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - return result; - } - return visitorWorker( - node, - /*expressionResultIsUnused*/ - false - ); - } - return node; - } - function callExpressionVisitor(node) { - if (node.kind === 108 /* SuperKeyword */) { - return visitSuperKeyword( - node, - /*isExpressionOfCall*/ - true - ); - } - return visitor(node); - } - function visitorWorker(node, expressionResultIsUnused2) { - switch (node.kind) { - case 126 /* StaticKeyword */: - return void 0; - // elide static keyword - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 231 /* ClassExpression */: - return visitClassExpression(node); - case 169 /* Parameter */: - return visitParameter(node); - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 219 /* ArrowFunction */: - return visitArrowFunction(node); - case 218 /* FunctionExpression */: - return visitFunctionExpression(node); - case 260 /* VariableDeclaration */: - return visitVariableDeclaration(node); - case 80 /* Identifier */: - return visitIdentifier(node); - case 261 /* VariableDeclarationList */: - return visitVariableDeclarationList(node); - case 255 /* SwitchStatement */: - return visitSwitchStatement(node); - case 269 /* CaseBlock */: - return visitCaseBlock(node); - case 241 /* Block */: - return visitBlock( - node, - /*isFunctionBody*/ - false - ); - case 252 /* BreakStatement */: - case 251 /* ContinueStatement */: - return visitBreakOrContinueStatement(node); - case 256 /* LabeledStatement */: - return visitLabeledStatement(node); - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - return visitDoOrWhileStatement( - node, - /*outermostLabeledStatement*/ - void 0 - ); - case 248 /* ForStatement */: - return visitForStatement( - node, - /*outermostLabeledStatement*/ - void 0 - ); - case 249 /* ForInStatement */: - return visitForInStatement( - node, - /*outermostLabeledStatement*/ - void 0 - ); - case 250 /* ForOfStatement */: - return visitForOfStatement( - node, - /*outermostLabeledStatement*/ - void 0 - ); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 210 /* ObjectLiteralExpression */: - return visitObjectLiteralExpression(node); - case 299 /* CatchClause */: - return visitCatchClause(node); - case 304 /* ShorthandPropertyAssignment */: - return visitShorthandPropertyAssignment(node); - case 167 /* ComputedPropertyName */: - return visitComputedPropertyName(node); - case 209 /* ArrayLiteralExpression */: - return visitArrayLiteralExpression(node); - case 213 /* CallExpression */: - return visitCallExpression(node); - case 214 /* NewExpression */: - return visitNewExpression(node); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression(node, expressionResultIsUnused2); - case 226 /* BinaryExpression */: - return visitBinaryExpression(node, expressionResultIsUnused2); - case 356 /* CommaListExpression */: - return visitCommaListExpression(node, expressionResultIsUnused2); - case 15 /* NoSubstitutionTemplateLiteral */: - case 16 /* TemplateHead */: - case 17 /* TemplateMiddle */: - case 18 /* TemplateTail */: - return visitTemplateLiteral(node); - case 11 /* StringLiteral */: - return visitStringLiteral(node); - case 9 /* NumericLiteral */: - return visitNumericLiteral(node); - case 215 /* TaggedTemplateExpression */: - return visitTaggedTemplateExpression(node); - case 228 /* TemplateExpression */: - return visitTemplateExpression(node); - case 229 /* YieldExpression */: - return visitYieldExpression(node); - case 230 /* SpreadElement */: - return visitSpreadElement(node); - case 108 /* SuperKeyword */: - return visitSuperKeyword( - node, - /*isExpressionOfCall*/ - false - ); - case 110 /* ThisKeyword */: - return visitThisKeyword(node); - case 236 /* MetaProperty */: - return visitMetaProperty(node); - case 174 /* MethodDeclaration */: - return visitMethodDeclaration(node); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return visitAccessorDeclaration(node); - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 253 /* ReturnStatement */: - return visitReturnStatement(node); - case 222 /* VoidExpression */: - return visitVoidExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitSourceFile(node) { - const ancestorFacts = enterSubtree(8064 /* SourceFileExcludes */, 64 /* SourceFileIncludes */); - const prologue = []; - const statements = []; - startLexicalEnvironment(); - const statementOffset = factory2.copyPrologue( - node.statements, - prologue, - /*ensureUseStrict*/ - false, - visitor - ); - addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset)); - if (taggedTemplateStringDeclarations) { - statements.push( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList(taggedTemplateStringDeclarations) - ) - ); - } - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureThisForNodeIfNeeded(prologue, node); - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return factory2.updateSourceFile( - node, - setTextRange(factory2.createNodeArray(concatenate(prologue, statements)), node.statements) - ); - } - function visitSwitchStatement(node) { - if (convertedLoopState !== void 0) { - const savedAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps; - convertedLoopState.allowedNonLabeledJumps |= 2 /* Break */; - const result = visitEachChild(node, visitor, context); - convertedLoopState.allowedNonLabeledJumps = savedAllowedNonLabeledJumps; - return result; - } - return visitEachChild(node, visitor, context); - } - function visitCaseBlock(node) { - const ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */); - const updated = visitEachChild(node, visitor, context); - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function returnCapturedThis(node) { - return setOriginalNode(factory2.createReturnStatement(createCapturedThis()), node); - } - function createCapturedThis() { - return factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */); - } - function visitReturnStatement(node) { - if (convertedLoopState) { - convertedLoopState.nonLocalJumps |= 8 /* Return */; - if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) { - node = returnCapturedThis(node); - } - return factory2.createReturnStatement( - factory2.createObjectLiteralExpression( - [ - factory2.createPropertyAssignment( - factory2.createIdentifier("value"), - node.expression ? Debug.checkDefined(visitNode(node.expression, visitor, isExpression)) : factory2.createVoidZero() - ) - ] - ) - ); - } else if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) { - return returnCapturedThis(node); - } - return visitEachChild(node, visitor, context); - } - function visitThisKeyword(node) { - hierarchyFacts |= 65536 /* LexicalThis */; - if (hierarchyFacts & 2 /* ArrowFunction */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) { - hierarchyFacts |= 131072 /* CapturedLexicalThis */; - } - if (convertedLoopState) { - if (hierarchyFacts & 2 /* ArrowFunction */) { - convertedLoopState.containsLexicalThis = true; - return node; - } - return convertedLoopState.thisName || (convertedLoopState.thisName = factory2.createUniqueName("this")); - } - return node; - } - function visitVoidExpression(node) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - function visitIdentifier(node) { - if (convertedLoopState) { - if (resolver.isArgumentsLocalBinding(node)) { - return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); - } - } - if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { - return setOriginalNode( - setTextRange( - factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), - node - ), - node - ); - } - return node; - } - function visitBreakOrContinueStatement(node) { - if (convertedLoopState) { - const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; - const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; - if (!canUseBreakOrContinue) { - let labelMarker; - const label = node.label; - if (!label) { - if (node.kind === 252 /* BreakStatement */) { - convertedLoopState.nonLocalJumps |= 2 /* Break */; - labelMarker = "break"; - } else { - convertedLoopState.nonLocalJumps |= 4 /* Continue */; - labelMarker = "continue"; - } - } else { - if (node.kind === 252 /* BreakStatement */) { - labelMarker = `break-${label.escapedText}`; - setLabeledJump( - convertedLoopState, - /*isBreak*/ - true, - idText(label), - labelMarker - ); - } else { - labelMarker = `continue-${label.escapedText}`; - setLabeledJump( - convertedLoopState, - /*isBreak*/ - false, - idText(label), - labelMarker - ); - } - } - let returnExpression = factory2.createStringLiteral(labelMarker); - if (convertedLoopState.loopOutParameters.length) { - const outParams = convertedLoopState.loopOutParameters; - let expr; - for (let i = 0; i < outParams.length; i++) { - const copyExpr = copyOutParameter(outParams[i], 1 /* ToOutParameter */); - if (i === 0) { - expr = copyExpr; - } else { - expr = factory2.createBinaryExpression(expr, 28 /* CommaToken */, copyExpr); - } - } - returnExpression = factory2.createBinaryExpression(expr, 28 /* CommaToken */, returnExpression); - } - return factory2.createReturnStatement(returnExpression); - } - } - return visitEachChild(node, visitor, context); - } - function visitClassDeclaration(node) { - const variable = factory2.createVariableDeclaration( - factory2.getLocalName( - node, - /*allowComments*/ - true - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - transformClassLikeDeclarationToExpression(node) - ); - setOriginalNode(variable, node); - const statements = []; - const statement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([variable]) - ); - setOriginalNode(statement, node); - setTextRange(statement, node); - startOnNewLine(statement); - statements.push(statement); - if (hasSyntacticModifier(node, 32 /* Export */)) { - const exportStatement = hasSyntacticModifier(node, 2048 /* Default */) ? factory2.createExportDefault(factory2.getLocalName(node)) : factory2.createExternalModuleExport(factory2.getLocalName(node)); - setOriginalNode(exportStatement, statement); - statements.push(exportStatement); - } - return singleOrMany(statements); - } - function visitClassExpression(node) { - return transformClassLikeDeclarationToExpression(node); - } - function transformClassLikeDeclarationToExpression(node) { - if (node.name) { - enableSubstitutionsForBlockScopedBindings(); - } - const extendsClauseElement = getClassExtendsHeritageElement(node); - const classFunction = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - extendsClauseElement ? [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - createSyntheticSuper() - )] : [], - /*type*/ - void 0, - transformClassBody(node, extendsClauseElement) - ); - setEmitFlags(classFunction, getEmitFlags(node) & 131072 /* Indented */ | 1048576 /* ReuseTempVariableScope */); - const inner = factory2.createPartiallyEmittedExpression(classFunction); - setTextRangeEnd(inner, node.end); - setEmitFlags(inner, 3072 /* NoComments */); - const outer = factory2.createPartiallyEmittedExpression(inner); - setTextRangeEnd(outer, skipTrivia(currentText, node.pos)); - setEmitFlags(outer, 3072 /* NoComments */); - const result = factory2.createParenthesizedExpression( - factory2.createCallExpression( - outer, - /*typeArguments*/ - void 0, - extendsClauseElement ? [Debug.checkDefined(visitNode(extendsClauseElement.expression, visitor, isExpression))] : [] - ) - ); - addSyntheticLeadingComment(result, 3 /* MultiLineCommentTrivia */, "* @class "); - return result; - } - function transformClassBody(node, extendsClauseElement) { - const statements = []; - const name = factory2.getInternalName(node); - const constructorLikeName = isIdentifierANonContextualKeyword(name) ? factory2.getGeneratedNameForNode(name) : name; - startLexicalEnvironment(); - addExtendsHelperIfNeeded(statements, node, extendsClauseElement); - addConstructor(statements, node, constructorLikeName, extendsClauseElement); - addClassMembers(statements, node); - const closingBraceLocation = createTokenRange(skipTrivia(currentText, node.members.end), 20 /* CloseBraceToken */); - const outer = factory2.createPartiallyEmittedExpression(constructorLikeName); - setTextRangeEnd(outer, closingBraceLocation.end); - setEmitFlags(outer, 3072 /* NoComments */); - const statement = factory2.createReturnStatement(outer); - setTextRangePos(statement, closingBraceLocation.pos); - setEmitFlags(statement, 3072 /* NoComments */ | 768 /* NoTokenSourceMaps */); - statements.push(statement); - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - const block = factory2.createBlock( - setTextRange( - factory2.createNodeArray(statements), - /*location*/ - node.members - ), - /*multiLine*/ - true - ); - setEmitFlags(block, 3072 /* NoComments */); - return block; - } - function addExtendsHelperIfNeeded(statements, node, extendsClauseElement) { - if (extendsClauseElement) { - statements.push( - setTextRange( - factory2.createExpressionStatement( - emitHelpers().createExtendsHelper(factory2.getInternalName(node)) - ), - /*location*/ - extendsClauseElement - ) - ); - } - } - function addConstructor(statements, node, name, extendsClauseElement) { - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const ancestorFacts = enterSubtree(32662 /* ConstructorExcludes */, 73 /* ConstructorIncludes */); - const constructor = getFirstConstructorWithBody(node); - const hasSynthesizedSuper = hasSynthesizedDefaultSuperCall(constructor, extendsClauseElement !== void 0); - const constructorFunction = factory2.createFunctionDeclaration( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - name, - /*typeParameters*/ - void 0, - transformConstructorParameters(constructor, hasSynthesizedSuper), - /*type*/ - void 0, - transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) - ); - setTextRange(constructorFunction, constructor || node); - if (extendsClauseElement) { - setEmitFlags(constructorFunction, 16 /* CapturesThis */); - } - statements.push(constructorFunction); - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - } - function transformConstructorParameters(constructor, hasSynthesizedSuper) { - return visitParameterList(constructor && !hasSynthesizedSuper ? constructor.parameters : void 0, visitor, context) || []; - } - function createDefaultConstructorBody(node, isDerivedClass) { - const statements = []; - resumeLexicalEnvironment(); - factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); - if (isDerivedClass) { - statements.push(factory2.createReturnStatement(createDefaultSuperCallOrThis())); - } - const statementsArray = factory2.createNodeArray(statements); - setTextRange(statementsArray, node.members); - const block = factory2.createBlock( - statementsArray, - /*multiLine*/ - true - ); - setTextRange(block, node); - setEmitFlags(block, 3072 /* NoComments */); - return block; - } - function isUninitializedVariableStatement(node) { - return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); - } - function containsSuperCall(node) { - if (isSuperCall(node)) { - return true; - } - if (!(node.transformFlags & 134217728 /* ContainsLexicalSuper */)) { - return false; - } - switch (node.kind) { - // stop at function boundaries - case 219 /* ArrowFunction */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 176 /* Constructor */: - case 175 /* ClassStaticBlockDeclaration */: - return false; - // only step into computed property names for class and object literal elements - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - case 172 /* PropertyDeclaration */: { - const named = node; - if (isComputedPropertyName(named.name)) { - return !!forEachChild(named.name, containsSuperCall); - } - return false; - } - } - return !!forEachChild(node, containsSuperCall); - } - function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { - const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; - if (!constructor) return createDefaultConstructorBody(node, isDerivedClass); - const prologue = []; - const statements = []; - resumeLexicalEnvironment(); - const standardPrologueEnd = factory2.copyStandardPrologue( - constructor.body.statements, - prologue, - /*statementOffset*/ - 0 - ); - if (hasSynthesizedSuper || containsSuperCall(constructor.body)) { - hierarchyFacts |= 8192 /* ConstructorWithSuperCall */; - } - addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, standardPrologueEnd)); - const mayReplaceThis = isDerivedClass || hierarchyFacts & 8192 /* ConstructorWithSuperCall */; - addDefaultValueAssignmentsIfNeeded2(prologue, constructor); - addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); - insertCaptureNewTargetIfNeeded(prologue, constructor); - if (mayReplaceThis) { - insertCaptureThisForNode(prologue, constructor, createActualThis()); - } else { - insertCaptureThisForNodeIfNeeded(prologue, constructor); - } - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { - statements.push(factory2.createReturnStatement(createCapturedThis())); - } - const body = factory2.createBlock( - setTextRange( - factory2.createNodeArray( - [ - ...prologue, - ...statements - ] - ), - /*location*/ - constructor.body.statements - ), - /*multiLine*/ - true - ); - setTextRange(body, constructor.body); - return simplifyConstructor(body, constructor.body, hasSynthesizedSuper); - } - function isCapturedThis(node) { - return isGeneratedIdentifier(node) && idText(node) === "_this"; - } - function isSyntheticSuper(node) { - return isGeneratedIdentifier(node) && idText(node) === "_super"; - } - function isThisCapturingVariableStatement(node) { - return isVariableStatement(node) && node.declarationList.declarations.length === 1 && isThisCapturingVariableDeclaration(node.declarationList.declarations[0]); - } - function isThisCapturingVariableDeclaration(node) { - return isVariableDeclaration(node) && isCapturedThis(node.name) && !!node.initializer; - } - function isThisCapturingAssignment(node) { - return isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - ) && isCapturedThis(node.left); - } - function isTransformedSuperCall(node) { - return isCallExpression(node) && isPropertyAccessExpression(node.expression) && isSyntheticSuper(node.expression.expression) && isIdentifier(node.expression.name) && (idText(node.expression.name) === "call" || idText(node.expression.name) === "apply") && node.arguments.length >= 1 && node.arguments[0].kind === 110 /* ThisKeyword */; - } - function isTransformedSuperCallWithFallback(node) { - return isBinaryExpression(node) && node.operatorToken.kind === 57 /* BarBarToken */ && node.right.kind === 110 /* ThisKeyword */ && isTransformedSuperCall(node.left); - } - function isImplicitSuperCall(node) { - return isBinaryExpression(node) && node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && isBinaryExpression(node.left) && node.left.operatorToken.kind === 38 /* ExclamationEqualsEqualsToken */ && isSyntheticSuper(node.left.left) && node.left.right.kind === 106 /* NullKeyword */ && isTransformedSuperCall(node.right) && idText(node.right.expression.name) === "apply"; - } - function isImplicitSuperCallWithFallback(node) { - return isBinaryExpression(node) && node.operatorToken.kind === 57 /* BarBarToken */ && node.right.kind === 110 /* ThisKeyword */ && isImplicitSuperCall(node.left); - } - function isThisCapturingTransformedSuperCallWithFallback(node) { - return isThisCapturingAssignment(node) && isTransformedSuperCallWithFallback(node.right); - } - function isThisCapturingImplicitSuperCallWithFallback(node) { - return isThisCapturingAssignment(node) && isImplicitSuperCallWithFallback(node.right); - } - function isTransformedSuperCallLike(node) { - return isTransformedSuperCall(node) || isTransformedSuperCallWithFallback(node) || isThisCapturingTransformedSuperCallWithFallback(node) || isImplicitSuperCall(node) || isImplicitSuperCallWithFallback(node) || isThisCapturingImplicitSuperCallWithFallback(node); - } - function simplifyConstructorInlineSuperInThisCaptureVariable(body) { - for (let i = 0; i < body.statements.length - 1; i++) { - const statement = body.statements[i]; - if (!isThisCapturingVariableStatement(statement)) { - continue; - } - const varDecl = statement.declarationList.declarations[0]; - if (varDecl.initializer.kind !== 110 /* ThisKeyword */) { - continue; - } - const thisCaptureStatementIndex = i; - let superCallIndex = i + 1; - while (superCallIndex < body.statements.length) { - const statement2 = body.statements[superCallIndex]; - if (isExpressionStatement(statement2)) { - if (isTransformedSuperCallLike(skipOuterExpressions(statement2.expression))) { - break; - } - } - if (isUninitializedVariableStatement(statement2)) { - superCallIndex++; - continue; - } - return body; - } - const following = body.statements[superCallIndex]; - let expression = following.expression; - if (isThisCapturingAssignment(expression)) { - expression = expression.right; - } - const newVarDecl = factory2.updateVariableDeclaration( - varDecl, - varDecl.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - expression - ); - const newDeclList = factory2.updateVariableDeclarationList(statement.declarationList, [newVarDecl]); - const newVarStatement = factory2.createVariableStatement(statement.modifiers, newDeclList); - setOriginalNode(newVarStatement, following); - setTextRange(newVarStatement, following); - const newStatements = factory2.createNodeArray([ - ...body.statements.slice(0, thisCaptureStatementIndex), - // copy statements preceding to `var _this` - ...body.statements.slice(thisCaptureStatementIndex + 1, superCallIndex), - // copy intervening temp variables - newVarStatement, - ...body.statements.slice(superCallIndex + 1) - // copy statements following `super.call(this, ...)` - ]); - setTextRange(newStatements, body.statements); - return factory2.updateBlock(body, newStatements); - } - return body; - } - function simplifyConstructorInlineSuperReturn(body, original) { - for (const statement of original.statements) { - if (statement.transformFlags & 134217728 /* ContainsLexicalSuper */ && !getSuperCallFromStatement(statement)) { - return body; - } - } - const canElideThisCapturingVariable = !(original.transformFlags & 16384 /* ContainsLexicalThis */) && !(hierarchyFacts & 65536 /* LexicalThis */) && !(hierarchyFacts & 131072 /* CapturedLexicalThis */); - for (let i = body.statements.length - 1; i > 0; i--) { - const statement = body.statements[i]; - if (isReturnStatement(statement) && statement.expression && isCapturedThis(statement.expression)) { - const preceding = body.statements[i - 1]; - let expression; - if (isExpressionStatement(preceding) && isThisCapturingTransformedSuperCallWithFallback(skipOuterExpressions(preceding.expression))) { - expression = preceding.expression; - } else if (canElideThisCapturingVariable && isThisCapturingVariableStatement(preceding)) { - const varDecl = preceding.declarationList.declarations[0]; - if (isTransformedSuperCallLike(skipOuterExpressions(varDecl.initializer))) { - expression = factory2.createAssignment( - createCapturedThis(), - varDecl.initializer - ); - } - } - if (!expression) { - break; - } - const newReturnStatement = factory2.createReturnStatement(expression); - setOriginalNode(newReturnStatement, preceding); - setTextRange(newReturnStatement, preceding); - const newStatements = factory2.createNodeArray([ - ...body.statements.slice(0, i - 1), - // copy all statements preceding `_super.call(this, ...)` - newReturnStatement, - ...body.statements.slice(i + 1) - // copy all statements following `return _this;` - ]); - setTextRange(newStatements, body.statements); - return factory2.updateBlock(body, newStatements); - } - } - return body; - } - function elideUnusedThisCaptureWorker(node) { - if (isThisCapturingVariableStatement(node)) { - const varDecl = node.declarationList.declarations[0]; - if (varDecl.initializer.kind === 110 /* ThisKeyword */) { - return void 0; - } - } else if (isThisCapturingAssignment(node)) { - return factory2.createPartiallyEmittedExpression(node.right, node); - } - switch (node.kind) { - // stop at function boundaries - case 219 /* ArrowFunction */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 176 /* Constructor */: - case 175 /* ClassStaticBlockDeclaration */: - return node; - // only step into computed property names for class and object literal elements - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - case 172 /* PropertyDeclaration */: { - const named = node; - if (isComputedPropertyName(named.name)) { - return factory2.replacePropertyName(named, visitEachChild( - named.name, - elideUnusedThisCaptureWorker, - /*context*/ - void 0 - )); - } - return node; - } - } - return visitEachChild( - node, - elideUnusedThisCaptureWorker, - /*context*/ - void 0 - ); - } - function simplifyConstructorElideUnusedThisCapture(body, original) { - if (original.transformFlags & 16384 /* ContainsLexicalThis */ || hierarchyFacts & 65536 /* LexicalThis */ || hierarchyFacts & 131072 /* CapturedLexicalThis */) { - return body; - } - for (const statement of original.statements) { - if (statement.transformFlags & 134217728 /* ContainsLexicalSuper */ && !getSuperCallFromStatement(statement)) { - return body; - } - } - return factory2.updateBlock(body, visitNodes2(body.statements, elideUnusedThisCaptureWorker, isStatement)); - } - function injectSuperPresenceCheckWorker(node) { - if (isTransformedSuperCall(node) && node.arguments.length === 2 && isIdentifier(node.arguments[1]) && idText(node.arguments[1]) === "arguments") { - return factory2.createLogicalAnd( - factory2.createStrictInequality( - createSyntheticSuper(), - factory2.createNull() - ), - node - ); - } - switch (node.kind) { - // stop at function boundaries - case 219 /* ArrowFunction */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 176 /* Constructor */: - case 175 /* ClassStaticBlockDeclaration */: - return node; - // only step into computed property names for class and object literal elements - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 174 /* MethodDeclaration */: - case 172 /* PropertyDeclaration */: { - const named = node; - if (isComputedPropertyName(named.name)) { - return factory2.replacePropertyName(named, visitEachChild( - named.name, - injectSuperPresenceCheckWorker, - /*context*/ - void 0 - )); - } - return node; - } - } - return visitEachChild( - node, - injectSuperPresenceCheckWorker, - /*context*/ - void 0 - ); - } - function complicateConstructorInjectSuperPresenceCheck(body) { - return factory2.updateBlock(body, visitNodes2(body.statements, injectSuperPresenceCheckWorker, isStatement)); - } - function simplifyConstructor(body, original, hasSynthesizedSuper) { - const inputBody = body; - body = simplifyConstructorInlineSuperInThisCaptureVariable(body); - body = simplifyConstructorInlineSuperReturn(body, original); - if (body !== inputBody) { - body = simplifyConstructorElideUnusedThisCapture(body, original); - } - if (hasSynthesizedSuper) { - body = complicateConstructorInjectSuperPresenceCheck(body); - } - return body; - } - function isSufficientlyCoveredByReturnStatements(statement) { - if (statement.kind === 253 /* ReturnStatement */) { - return true; - } else if (statement.kind === 245 /* IfStatement */) { - const ifStatement = statement; - if (ifStatement.elseStatement) { - return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); - } - } else if (statement.kind === 241 /* Block */) { - const lastStatement = lastOrUndefined(statement.statements); - if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { - return true; - } - } - return false; - } - function createActualThis() { - return setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */); - } - function createDefaultSuperCallOrThis() { - return factory2.createLogicalOr( - factory2.createLogicalAnd( - factory2.createStrictInequality( - createSyntheticSuper(), - factory2.createNull() - ), - factory2.createFunctionApplyCall( - createSyntheticSuper(), - createActualThis(), - factory2.createIdentifier("arguments") - ) - ), - createActualThis() - ); - } - function visitParameter(node) { - if (node.dotDotDotToken) { - return void 0; - } else if (isBindingPattern(node.name)) { - return setOriginalNode( - setTextRange( - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - factory2.getGeneratedNameForNode(node), - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ), - /*location*/ - node - ), - /*original*/ - node - ); - } else if (node.initializer) { - return setOriginalNode( - setTextRange( - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - node.name, - /*questionToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ), - /*location*/ - node - ), - /*original*/ - node - ); - } else { - return node; - } - } - function hasDefaultValueOrBindingPattern(node) { - return node.initializer !== void 0 || isBindingPattern(node.name); - } - function addDefaultValueAssignmentsIfNeeded2(statements, node) { - if (!some(node.parameters, hasDefaultValueOrBindingPattern)) { - return false; - } - let added = false; - for (const parameter of node.parameters) { - const { name, initializer, dotDotDotToken } = parameter; - if (dotDotDotToken) { - continue; - } - if (isBindingPattern(name)) { - added = insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) || added; - } else if (initializer) { - insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer); - added = true; - } - } - return added; - } - function insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) { - if (name.elements.length > 0) { - insertStatementAfterCustomPrologue( - statements, - setEmitFlags( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - flattenDestructuringBinding( - parameter, - visitor, - context, - 0 /* All */, - factory2.getGeneratedNameForNode(parameter) - ) - ) - ), - 2097152 /* CustomPrologue */ - ) - ); - return true; - } else if (initializer) { - insertStatementAfterCustomPrologue( - statements, - setEmitFlags( - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.getGeneratedNameForNode(parameter), - Debug.checkDefined(visitNode(initializer, visitor, isExpression)) - ) - ), - 2097152 /* CustomPrologue */ - ) - ); - return true; - } - return false; - } - function insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer) { - initializer = Debug.checkDefined(visitNode(initializer, visitor, isExpression)); - const statement = factory2.createIfStatement( - factory2.createTypeCheck(factory2.cloneNode(name), "undefined"), - setEmitFlags( - setTextRange( - factory2.createBlock([ - factory2.createExpressionStatement( - setEmitFlags( - setTextRange( - factory2.createAssignment( - // TODO(rbuckton): Does this need to be parented? - setEmitFlags(setParent(setTextRange(factory2.cloneNode(name), name), name.parent), 96 /* NoSourceMap */), - setEmitFlags(initializer, 96 /* NoSourceMap */ | getEmitFlags(initializer) | 3072 /* NoComments */) - ), - parameter - ), - 3072 /* NoComments */ - ) - ) - ]), - parameter - ), - 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */ - ) - ); - startOnNewLine(statement); - setTextRange(statement, parameter); - setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2097152 /* CustomPrologue */ | 3072 /* NoComments */); - insertStatementAfterCustomPrologue(statements, statement); - } - function shouldAddRestParameter(node, inConstructorWithSynthesizedSuper) { - return !!(node && node.dotDotDotToken && !inConstructorWithSynthesizedSuper); - } - function addRestParameterIfNeeded(statements, node, inConstructorWithSynthesizedSuper) { - const prologueStatements = []; - const parameter = lastOrUndefined(node.parameters); - if (!shouldAddRestParameter(parameter, inConstructorWithSynthesizedSuper)) { - return false; - } - const declarationName = parameter.name.kind === 80 /* Identifier */ ? setParent(setTextRange(factory2.cloneNode(parameter.name), parameter.name), parameter.name.parent) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - setEmitFlags(declarationName, 96 /* NoSourceMap */); - const expressionName = parameter.name.kind === 80 /* Identifier */ ? factory2.cloneNode(parameter.name) : declarationName; - const restIndex = node.parameters.length - 1; - const temp = factory2.createLoopVariable(); - prologueStatements.push( - setEmitFlags( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - declarationName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createArrayLiteralExpression([]) - ) - ]) - ), - /*location*/ - parameter - ), - 2097152 /* CustomPrologue */ - ) - ); - const forStatement = factory2.createForStatement( - setTextRange( - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - temp, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createNumericLiteral(restIndex) - ) - ]), - parameter - ), - setTextRange( - factory2.createLessThan( - temp, - factory2.createPropertyAccessExpression(factory2.createIdentifier("arguments"), "length") - ), - parameter - ), - setTextRange(factory2.createPostfixIncrement(temp), parameter), - factory2.createBlock([ - startOnNewLine( - setTextRange( - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createElementAccessExpression( - expressionName, - restIndex === 0 ? temp : factory2.createSubtract(temp, factory2.createNumericLiteral(restIndex)) - ), - factory2.createElementAccessExpression(factory2.createIdentifier("arguments"), temp) - ) - ), - /*location*/ - parameter - ) - ) - ]) - ); - setEmitFlags(forStatement, 2097152 /* CustomPrologue */); - startOnNewLine(forStatement); - prologueStatements.push(forStatement); - if (parameter.name.kind !== 80 /* Identifier */) { - prologueStatements.push( - setEmitFlags( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - flattenDestructuringBinding(parameter, visitor, context, 0 /* All */, expressionName) - ) - ), - parameter - ), - 2097152 /* CustomPrologue */ - ) - ); - } - insertStatementsAfterCustomPrologue(statements, prologueStatements); - return true; - } - function insertCaptureThisForNodeIfNeeded(statements, node) { - if (hierarchyFacts & 131072 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { - insertCaptureThisForNode(statements, node, factory2.createThis()); - return true; - } - return false; - } - function insertCaptureThisForNode(statements, node, initializer) { - enableSubstitutionsForCapturedThis(); - const captureThisStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - createCapturedThis(), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ) - ]) - ); - setEmitFlags(captureThisStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - setSourceMapRange(captureThisStatement, node); - insertStatementAfterCustomPrologue(statements, captureThisStatement); - } - function insertCaptureNewTargetIfNeeded(statements, node) { - if (hierarchyFacts & 32768 /* NewTarget */) { - let newTarget; - switch (node.kind) { - case 219 /* ArrowFunction */: - return statements; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - newTarget = factory2.createVoidZero(); - break; - case 176 /* Constructor */: - newTarget = factory2.createPropertyAccessExpression( - setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), - "constructor" - ); - break; - case 262 /* FunctionDeclaration */: - case 218 /* FunctionExpression */: - newTarget = factory2.createConditionalExpression( - factory2.createLogicalAnd( - setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), - factory2.createBinaryExpression( - setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), - 104 /* InstanceOfKeyword */, - factory2.getLocalName(node) - ) - ), - /*questionToken*/ - void 0, - factory2.createPropertyAccessExpression( - setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), - "constructor" - ), - /*colonToken*/ - void 0, - factory2.createVoidZero() - ); - break; - default: - return Debug.failBadSyntaxKind(node); - } - const captureNewTargetStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - factory2.createUniqueName("_newTarget", 16 /* Optimistic */ | 32 /* FileLevel */), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - newTarget - ) - ]) - ); - setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); - insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); - } - return statements; - } - function addClassMembers(statements, node) { - for (const member of node.members) { - switch (member.kind) { - case 240 /* SemicolonClassElement */: - statements.push(transformSemicolonClassElementToStatement(member)); - break; - case 174 /* MethodDeclaration */: - statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); - break; - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - const accessors = getAllAccessorDeclarations(node.members, member); - if (member === accessors.firstAccessor) { - statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); - } - break; - case 176 /* Constructor */: - case 175 /* ClassStaticBlockDeclaration */: - break; - default: - Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); - break; - } - } - } - function transformSemicolonClassElementToStatement(member) { - return setTextRange(factory2.createEmptyStatement(), member); - } - function transformClassMethodDeclarationToStatement(receiver, member, container) { - const commentRange = getCommentRange(member); - const sourceMapRange = getSourceMapRange(member); - const memberFunction = transformFunctionLikeToExpression( - member, - /*location*/ - member, - /*name*/ - void 0, - container - ); - const propertyName = visitNode(member.name, visitor, isPropertyName); - Debug.assert(propertyName); - let e; - if (!isPrivateIdentifier(propertyName) && getUseDefineForClassFields(context.getCompilerOptions())) { - const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName; - e = factory2.createObjectDefinePropertyCall(receiver, name, factory2.createPropertyDescriptor({ value: memberFunction, enumerable: false, writable: true, configurable: true })); - } else { - const memberName = createMemberAccessForPropertyName( - factory2, - receiver, - propertyName, - /*location*/ - member.name - ); - e = factory2.createAssignment(memberName, memberFunction); - } - setEmitFlags(memberFunction, 3072 /* NoComments */); - setSourceMapRange(memberFunction, sourceMapRange); - const statement = setTextRange( - factory2.createExpressionStatement(e), - /*location*/ - member - ); - setOriginalNode(statement, member); - setCommentRange(statement, commentRange); - setEmitFlags(statement, 96 /* NoSourceMap */); - return statement; - } - function transformAccessorsToStatement(receiver, accessors, container) { - const statement = factory2.createExpressionStatement(transformAccessorsToExpression( - receiver, - accessors, - container, - /*startsOnNewLine*/ - false - )); - setEmitFlags(statement, 3072 /* NoComments */); - setSourceMapRange(statement, getSourceMapRange(accessors.firstAccessor)); - return statement; - } - function transformAccessorsToExpression(receiver, { firstAccessor, getAccessor, setAccessor }, container, startsOnNewLine) { - const target = setParent(setTextRange(factory2.cloneNode(receiver), receiver), receiver.parent); - setEmitFlags(target, 3072 /* NoComments */ | 64 /* NoTrailingSourceMap */); - setSourceMapRange(target, firstAccessor.name); - const visitedAccessorName = visitNode(firstAccessor.name, visitor, isPropertyName); - Debug.assert(visitedAccessorName); - if (isPrivateIdentifier(visitedAccessorName)) { - return Debug.failBadSyntaxKind(visitedAccessorName, "Encountered unhandled private identifier while transforming ES2015."); - } - const propertyName = createExpressionForPropertyName(factory2, visitedAccessorName); - setEmitFlags(propertyName, 3072 /* NoComments */ | 32 /* NoLeadingSourceMap */); - setSourceMapRange(propertyName, firstAccessor.name); - const properties = []; - if (getAccessor) { - const getterFunction = transformFunctionLikeToExpression( - getAccessor, - /*location*/ - void 0, - /*name*/ - void 0, - container - ); - setSourceMapRange(getterFunction, getSourceMapRange(getAccessor)); - setEmitFlags(getterFunction, 1024 /* NoLeadingComments */); - const getter = factory2.createPropertyAssignment("get", getterFunction); - setCommentRange(getter, getCommentRange(getAccessor)); - properties.push(getter); - } - if (setAccessor) { - const setterFunction = transformFunctionLikeToExpression( - setAccessor, - /*location*/ - void 0, - /*name*/ - void 0, - container - ); - setSourceMapRange(setterFunction, getSourceMapRange(setAccessor)); - setEmitFlags(setterFunction, 1024 /* NoLeadingComments */); - const setter = factory2.createPropertyAssignment("set", setterFunction); - setCommentRange(setter, getCommentRange(setAccessor)); - properties.push(setter); - } - properties.push( - factory2.createPropertyAssignment("enumerable", getAccessor || setAccessor ? factory2.createFalse() : factory2.createTrue()), - factory2.createPropertyAssignment("configurable", factory2.createTrue()) - ); - const call = factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"), - /*typeArguments*/ - void 0, - [ - target, - propertyName, - factory2.createObjectLiteralExpression( - properties, - /*multiLine*/ - true - ) - ] - ); - if (startsOnNewLine) { - startOnNewLine(call); - } - return call; - } - function visitArrowFunction(node) { - if (node.transformFlags & 16384 /* ContainsLexicalThis */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) { - hierarchyFacts |= 131072 /* CapturedLexicalThis */; - } - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const ancestorFacts = enterSubtree(15232 /* ArrowFunctionExcludes */, 66 /* ArrowFunctionIncludes */); - const func = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - transformFunctionBody(node) - ); - setTextRange(func, node); - setOriginalNode(func, node); - setEmitFlags(func, 16 /* CapturesThis */); - exitSubtree(ancestorFacts, 0 /* ArrowFunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - return func; - } - function visitFunctionExpression(node) { - const ancestorFacts = getEmitFlags(node) & 524288 /* AsyncFunctionBody */ ? enterSubtree(32662 /* AsyncFunctionBodyExcludes */, 69 /* AsyncFunctionBodyIncludes */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const parameters = visitParameterList(node.parameters, visitor, context); - const body = transformFunctionBody(node); - const name = hierarchyFacts & 32768 /* NewTarget */ ? factory2.getLocalName(node) : node.name; - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - return factory2.updateFunctionExpression( - node, - /*modifiers*/ - void 0, - node.asteriskToken, - name, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body - ); - } - function visitFunctionDeclaration(node) { - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); - const parameters = visitParameterList(node.parameters, visitor, context); - const body = transformFunctionBody(node); - const name = hierarchyFacts & 32768 /* NewTarget */ ? factory2.getLocalName(node) : node.name; - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - return factory2.updateFunctionDeclaration( - node, - visitNodes2(node.modifiers, visitor, isModifier), - node.asteriskToken, - name, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body - ); - } - function transformFunctionLikeToExpression(node, location, name, container) { - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); - const parameters = visitParameterList(node.parameters, visitor, context); - const body = transformFunctionBody(node); - if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { - name = factory2.getGeneratedNameForNode(node); - } - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - return setOriginalNode( - setTextRange( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - node.asteriskToken, - name, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body - ), - location - ), - /*original*/ - node - ); - } - function transformFunctionBody(node) { - let multiLine = false; - let singleLine = false; - let statementsLocation; - let closeBraceLocation; - const prologue = []; - const statements = []; - const body = node.body; - let statementOffset; - resumeLexicalEnvironment(); - if (isBlock(body)) { - statementOffset = factory2.copyStandardPrologue( - body.statements, - prologue, - 0, - /*ensureUseStrict*/ - false - ); - statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedFunction); - statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedVariableStatement); - } - multiLine = addDefaultValueAssignmentsIfNeeded2(statements, node) || multiLine; - multiLine = addRestParameterIfNeeded( - statements, - node, - /*inConstructorWithSynthesizedSuper*/ - false - ) || multiLine; - if (isBlock(body)) { - statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor); - statementsLocation = body.statements; - addRange(statements, visitNodes2(body.statements, visitor, isStatement, statementOffset)); - if (!multiLine && body.multiLine) { - multiLine = true; - } - } else { - Debug.assert(node.kind === 219 /* ArrowFunction */); - statementsLocation = moveRangeEnd(body, -1); - const equalsGreaterThanToken = node.equalsGreaterThanToken; - if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { - if (rangeEndIsOnSameLineAsRangeStart(equalsGreaterThanToken, body, currentSourceFile)) { - singleLine = true; - } else { - multiLine = true; - } - } - const expression = visitNode(body, visitor, isExpression); - const returnStatement = factory2.createReturnStatement(expression); - setTextRange(returnStatement, body); - moveSyntheticComments(returnStatement, body); - setEmitFlags(returnStatement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2048 /* NoTrailingComments */); - statements.push(returnStatement); - closeBraceLocation = body; - } - factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); - insertCaptureNewTargetIfNeeded(prologue, node); - insertCaptureThisForNodeIfNeeded(prologue, node); - if (some(prologue)) { - multiLine = true; - } - statements.unshift(...prologue); - if (isBlock(body) && arrayIsEqualTo(statements, body.statements)) { - return body; - } - const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), multiLine); - setTextRange(block, node.body); - if (!multiLine && singleLine) { - setEmitFlags(block, 1 /* SingleLine */); - } - if (closeBraceLocation) { - setTokenSourceMapRange(block, 20 /* CloseBraceToken */, closeBraceLocation); - } - setOriginalNode(block, node.body); - return block; - } - function visitBlock(node, isFunctionBody) { - if (isFunctionBody) { - return visitEachChild(node, visitor, context); - } - const ancestorFacts = hierarchyFacts & 256 /* IterationStatement */ ? enterSubtree(7104 /* IterationStatementBlockExcludes */, 512 /* IterationStatementBlockIncludes */) : enterSubtree(6976 /* BlockExcludes */, 128 /* BlockIncludes */); - const updated = visitEachChild(node, visitor, context); - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function visitExpressionStatement(node) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - function visitParenthesizedExpression(node, expressionResultIsUnused2) { - return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context); - } - function visitBinaryExpression(node, expressionResultIsUnused2) { - if (isDestructuringAssignment(node)) { - return flattenDestructuringAssignment( - node, - visitor, - context, - 0 /* All */, - !expressionResultIsUnused2 - ); - } - if (node.operatorToken.kind === 28 /* CommaToken */) { - return factory2.updateBinaryExpression( - node, - Debug.checkDefined(visitNode(node.left, visitorWithUnusedExpressionResult, isExpression)), - node.operatorToken, - Debug.checkDefined(visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression)) - ); - } - return visitEachChild(node, visitor, context); - } - function visitCommaListExpression(node, expressionResultIsUnused2) { - if (expressionResultIsUnused2) { - return visitEachChild(node, visitorWithUnusedExpressionResult, context); - } - let result; - for (let i = 0; i < node.elements.length; i++) { - const element = node.elements[i]; - const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression); - if (result || visited !== element) { - result || (result = node.elements.slice(0, i)); - Debug.assert(visited); - result.push(visited); - } - } - const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements; - return factory2.updateCommaListExpression(node, elements); - } - function isVariableStatementOfTypeScriptClassWrapper(node) { - return node.declarationList.declarations.length === 1 && !!node.declarationList.declarations[0].initializer && !!(getInternalEmitFlags(node.declarationList.declarations[0].initializer) & 1 /* TypeScriptClassWrapper */); - } - function visitVariableStatement(node) { - const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 32 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); - let updated; - if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { - let assignments; - for (const decl of node.declarationList.declarations) { - hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); - if (decl.initializer) { - let assignment; - if (isBindingPattern(decl.name)) { - assignment = flattenDestructuringAssignment( - decl, - visitor, - context, - 0 /* All */ - ); - } else { - assignment = factory2.createBinaryExpression(decl.name, 64 /* EqualsToken */, Debug.checkDefined(visitNode(decl.initializer, visitor, isExpression))); - setTextRange(assignment, decl); - } - assignments = append(assignments, assignment); - } - } - if (assignments) { - updated = setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(assignments)), node); - } else { - updated = void 0; - } - } else { - updated = visitEachChild(node, visitor, context); - } - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function visitVariableDeclarationList(node) { - if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { - if (node.flags & 7 /* BlockScoped */) { - enableSubstitutionsForBlockScopedBindings(); - } - const declarations = visitNodes2( - node.declarations, - node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, - isVariableDeclaration - ); - const declarationList = factory2.createVariableDeclarationList(declarations); - setOriginalNode(declarationList, node); - setTextRange(declarationList, node); - setCommentRange(declarationList, node); - if (node.transformFlags & 524288 /* ContainsBindingPattern */ && (isBindingPattern(node.declarations[0].name) || isBindingPattern(last(node.declarations).name))) { - setSourceMapRange(declarationList, getRangeUnion(declarations)); - } - return declarationList; - } - return visitEachChild(node, visitor, context); - } - function getRangeUnion(declarations) { - let pos = -1, end = -1; - for (const node of declarations) { - pos = pos === -1 ? node.pos : node.pos === -1 ? pos : Math.min(pos, node.pos); - end = Math.max(end, node.end); - } - return createRange(pos, end); - } - function shouldEmitExplicitInitializerForLetDeclaration(node) { - const isCapturedInFunction = resolver.hasNodeCheckFlag(node, 16384 /* CapturedBlockScopedBinding */); - const isDeclaredInLoop = resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */); - const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0; - const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0); - return emitExplicitInitializer; - } - function visitVariableDeclarationInLetDeclarationList(node) { - const name = node.name; - if (isBindingPattern(name)) { - return visitVariableDeclaration(node); - } - if (!node.initializer && shouldEmitExplicitInitializerForLetDeclaration(node)) { - return factory2.updateVariableDeclaration( - node, - node.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createVoidZero() - ); - } - return visitEachChild(node, visitor, context); - } - function visitVariableDeclaration(node) { - const ancestorFacts = enterSubtree(32 /* ExportedVariableStatement */, 0 /* None */); - let updated; - if (isBindingPattern(node.name)) { - updated = flattenDestructuringBinding( - node, - visitor, - context, - 0 /* All */, - /*rval*/ - void 0, - (ancestorFacts & 32 /* ExportedVariableStatement */) !== 0 - ); - } else { - updated = visitEachChild(node, visitor, context); - } - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function recordLabel(node) { - convertedLoopState.labels.set(idText(node.label), true); - } - function resetLabel(node) { - convertedLoopState.labels.set(idText(node.label), false); - } - function visitLabeledStatement(node) { - if (convertedLoopState && !convertedLoopState.labels) { - convertedLoopState.labels = /* @__PURE__ */ new Map(); - } - const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel); - return isIterationStatement( - statement, - /*lookInLabeledStatements*/ - false - ) ? visitIterationStatement( - statement, - /*outermostLabeledStatement*/ - node - ) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock) ?? setTextRange(factory2.createEmptyStatement(), statement), node, convertedLoopState && resetLabel); - } - function visitIterationStatement(node, outermostLabeledStatement) { - switch (node.kind) { - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - return visitDoOrWhileStatement(node, outermostLabeledStatement); - case 248 /* ForStatement */: - return visitForStatement(node, outermostLabeledStatement); - case 249 /* ForInStatement */: - return visitForInStatement(node, outermostLabeledStatement); - case 250 /* ForOfStatement */: - return visitForOfStatement(node, outermostLabeledStatement); - } - } - function visitIterationStatementWithFacts(excludeFacts, includeFacts, node, outermostLabeledStatement, convert) { - const ancestorFacts = enterSubtree(excludeFacts, includeFacts); - const updated = convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert); - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function visitDoOrWhileStatement(node, outermostLabeledStatement) { - return visitIterationStatementWithFacts( - 0 /* DoOrWhileStatementExcludes */, - 1280 /* DoOrWhileStatementIncludes */, - node, - outermostLabeledStatement - ); - } - function visitForStatement(node, outermostLabeledStatement) { - return visitIterationStatementWithFacts( - 5056 /* ForStatementExcludes */, - 3328 /* ForStatementIncludes */, - node, - outermostLabeledStatement - ); - } - function visitEachChildOfForStatement2(node) { - return factory2.updateForStatement( - node, - visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), - Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock)) - ); - } - function visitForInStatement(node, outermostLabeledStatement) { - return visitIterationStatementWithFacts( - 3008 /* ForInOrForOfStatementExcludes */, - 5376 /* ForInOrForOfStatementIncludes */, - node, - outermostLabeledStatement - ); - } - function visitForOfStatement(node, outermostLabeledStatement) { - return visitIterationStatementWithFacts( - 3008 /* ForInOrForOfStatementExcludes */, - 5376 /* ForInOrForOfStatementIncludes */, - node, - outermostLabeledStatement, - compilerOptions.downlevelIteration ? convertForOfStatementForIterable : convertForOfStatementForArray - ); - } - function convertForOfStatementHead(node, boundValue, convertedLoopBodyStatements) { - const statements = []; - const initializer = node.initializer; - if (isVariableDeclarationList(initializer)) { - if (node.initializer.flags & 7 /* BlockScoped */) { - enableSubstitutionsForBlockScopedBindings(); - } - const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); - if (firstOriginalDeclaration && isBindingPattern(firstOriginalDeclaration.name)) { - const declarations = flattenDestructuringBinding( - firstOriginalDeclaration, - visitor, - context, - 0 /* All */, - boundValue - ); - const declarationList = setTextRange(factory2.createVariableDeclarationList(declarations), node.initializer); - setOriginalNode(declarationList, node.initializer); - setSourceMapRange(declarationList, createRange(declarations[0].pos, last(declarations).end)); - statements.push( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - declarationList - ) - ); - } else { - statements.push( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - setOriginalNode( - setTextRange( - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - firstOriginalDeclaration ? firstOriginalDeclaration.name : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - boundValue - ) - ]), - moveRangePos(initializer, -1) - ), - initializer - ) - ), - moveRangeEnd(initializer, -1) - ) - ); - } - } else { - const assignment = factory2.createAssignment(initializer, boundValue); - if (isDestructuringAssignment(assignment)) { - statements.push(factory2.createExpressionStatement(visitBinaryExpression( - assignment, - /*expressionResultIsUnused*/ - true - ))); - } else { - setTextRangeEnd(assignment, initializer.end); - statements.push(setTextRange(factory2.createExpressionStatement(Debug.checkDefined(visitNode(assignment, visitor, isExpression))), moveRangeEnd(initializer, -1))); - } - } - if (convertedLoopBodyStatements) { - return createSyntheticBlockForConvertedStatements(addRange(statements, convertedLoopBodyStatements)); - } else { - const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock); - Debug.assert(statement); - if (isBlock(statement)) { - return factory2.updateBlock(statement, setTextRange(factory2.createNodeArray(concatenate(statements, statement.statements)), statement.statements)); - } else { - statements.push(statement); - return createSyntheticBlockForConvertedStatements(statements); - } - } - } - function createSyntheticBlockForConvertedStatements(statements) { - return setEmitFlags( - factory2.createBlock( - factory2.createNodeArray(statements), - /*multiLine*/ - true - ), - 96 /* NoSourceMap */ | 768 /* NoTokenSourceMaps */ - ); - } - function convertForOfStatementForArray(node, outermostLabeledStatement, convertedLoopBodyStatements) { - const expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - const counter = factory2.createLoopVariable(); - const rhsReference = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - setEmitFlags(expression, 96 /* NoSourceMap */ | getEmitFlags(expression)); - const forStatement = setTextRange( - factory2.createForStatement( - /*initializer*/ - setEmitFlags( - setTextRange( - factory2.createVariableDeclarationList([ - setTextRange(factory2.createVariableDeclaration( - counter, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createNumericLiteral(0) - ), moveRangePos(node.expression, -1)), - setTextRange(factory2.createVariableDeclaration( - rhsReference, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - expression - ), node.expression) - ]), - node.expression - ), - 4194304 /* NoHoisting */ - ), - /*condition*/ - setTextRange( - factory2.createLessThan( - counter, - factory2.createPropertyAccessExpression(rhsReference, "length") - ), - node.expression - ), - /*incrementor*/ - setTextRange(factory2.createPostfixIncrement(counter), node.expression), - /*statement*/ - convertForOfStatementHead( - node, - factory2.createElementAccessExpression(rhsReference, counter), - convertedLoopBodyStatements - ) - ), - /*location*/ - node - ); - setEmitFlags(forStatement, 512 /* NoTokenTrailingSourceMaps */); - setTextRange(forStatement, node); - return factory2.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel); - } - function convertForOfStatementForIterable(node, outermostLabeledStatement, convertedLoopBodyStatements, ancestorFacts) { - const expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const errorRecord = factory2.createUniqueName("e"); - const catchVariable = factory2.getGeneratedNameForNode(errorRecord); - const returnMethod = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const values = setTextRange(emitHelpers().createValuesHelper(expression), node.expression); - const next = factory2.createCallExpression( - factory2.createPropertyAccessExpression(iterator, "next"), - /*typeArguments*/ - void 0, - [] - ); - hoistVariableDeclaration(errorRecord); - hoistVariableDeclaration(returnMethod); - const initializer = ancestorFacts & 1024 /* IterationContainer */ ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), values]) : values; - const forStatement = setEmitFlags( - setTextRange( - factory2.createForStatement( - /*initializer*/ - setEmitFlags( - setTextRange( - factory2.createVariableDeclarationList([ - setTextRange(factory2.createVariableDeclaration( - iterator, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - initializer - ), node.expression), - factory2.createVariableDeclaration( - result, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - next - ) - ]), - node.expression - ), - 4194304 /* NoHoisting */ - ), - /*condition*/ - factory2.createLogicalNot(factory2.createPropertyAccessExpression(result, "done")), - /*incrementor*/ - factory2.createAssignment(result, next), - /*statement*/ - convertForOfStatementHead( - node, - factory2.createPropertyAccessExpression(result, "value"), - convertedLoopBodyStatements - ) - ), - /*location*/ - node - ), - 512 /* NoTokenTrailingSourceMaps */ - ); - return factory2.createTryStatement( - factory2.createBlock([ - factory2.restoreEnclosingLabel( - forStatement, - outermostLabeledStatement, - convertedLoopState && resetLabel - ) - ]), - factory2.createCatchClause( - factory2.createVariableDeclaration(catchVariable), - setEmitFlags( - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createAssignment( - errorRecord, - factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("error", catchVariable) - ]) - ) - ) - ]), - 1 /* SingleLine */ - ) - ), - factory2.createBlock([ - factory2.createTryStatement( - /*tryBlock*/ - factory2.createBlock([ - setEmitFlags( - factory2.createIfStatement( - factory2.createLogicalAnd( - factory2.createLogicalAnd( - result, - factory2.createLogicalNot( - factory2.createPropertyAccessExpression(result, "done") - ) - ), - factory2.createAssignment( - returnMethod, - factory2.createPropertyAccessExpression(iterator, "return") - ) - ), - factory2.createExpressionStatement( - factory2.createFunctionCallCall(returnMethod, iterator, []) - ) - ), - 1 /* SingleLine */ - ) - ]), - /*catchClause*/ - void 0, - /*finallyBlock*/ - setEmitFlags( - factory2.createBlock([ - setEmitFlags( - factory2.createIfStatement( - errorRecord, - factory2.createThrowStatement( - factory2.createPropertyAccessExpression(errorRecord, "error") - ) - ), - 1 /* SingleLine */ - ) - ]), - 1 /* SingleLine */ - ) - ) - ]) - ); - } - function visitObjectLiteralExpression(node) { - const properties = node.properties; - let numInitialProperties = -1, hasComputed = false; - for (let i = 0; i < properties.length; i++) { - const property = properties[i]; - if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { - numInitialProperties = i; - break; - } - } - if (numInitialProperties < 0) { - return visitEachChild(node, visitor, context); - } - const temp = factory2.createTempVariable(hoistVariableDeclaration); - const expressions = []; - const assignment = factory2.createAssignment( - temp, - setEmitFlags( - factory2.createObjectLiteralExpression( - visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), - node.multiLine - ), - hasComputed ? 131072 /* Indented */ : 0 - ) - ); - if (node.multiLine) { - startOnNewLine(assignment); - } - expressions.push(assignment); - addObjectLiteralMembers(expressions, node, temp, numInitialProperties); - expressions.push(node.multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp); - return factory2.inlineExpressions(expressions); - } - function shouldConvertPartOfIterationStatement(node) { - return resolver.hasNodeCheckFlag(node, 8192 /* ContainsCapturedBlockScopeBinding */); - } - function shouldConvertInitializerOfForStatement(node) { - return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer); - } - function shouldConvertConditionOfForStatement(node) { - return isForStatement(node) && !!node.condition && shouldConvertPartOfIterationStatement(node.condition); - } - function shouldConvertIncrementorOfForStatement(node) { - return isForStatement(node) && !!node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor); - } - function shouldConvertIterationStatement(node) { - return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node); - } - function shouldConvertBodyOfIterationStatement(node) { - return resolver.hasNodeCheckFlag(node, 4096 /* LoopWithCapturedBlockScopedBinding */); - } - function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) { - if (!state.hoistedLocalVariables) { - state.hoistedLocalVariables = []; - } - visit(node.name); - function visit(node2) { - if (node2.kind === 80 /* Identifier */) { - state.hoistedLocalVariables.push(node2); - } else { - for (const element of node2.elements) { - if (!isOmittedExpression(element)) { - visit(element.name); - } - } - } - } - } - function convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert) { - if (!shouldConvertIterationStatement(node)) { - let saveAllowedNonLabeledJumps; - if (convertedLoopState) { - saveAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps; - convertedLoopState.allowedNonLabeledJumps = 2 /* Break */ | 4 /* Continue */; - } - const result = convert ? convert( - node, - outermostLabeledStatement, - /*convertedLoopBodyStatements*/ - void 0, - ancestorFacts - ) : factory2.restoreEnclosingLabel( - isForStatement(node) ? visitEachChildOfForStatement2(node) : visitEachChild(node, visitor, context), - outermostLabeledStatement, - convertedLoopState && resetLabel - ); - if (convertedLoopState) { - convertedLoopState.allowedNonLabeledJumps = saveAllowedNonLabeledJumps; - } - return result; - } - const currentState = createConvertedLoopState(node); - const statements = []; - const outerConvertedLoopState = convertedLoopState; - convertedLoopState = currentState; - const initializerFunction = shouldConvertInitializerOfForStatement(node) ? createFunctionForInitializerOfForStatement(node, currentState) : void 0; - const bodyFunction = shouldConvertBodyOfIterationStatement(node) ? createFunctionForBodyOfIterationStatement(node, currentState, outerConvertedLoopState) : void 0; - convertedLoopState = outerConvertedLoopState; - if (initializerFunction) statements.push(initializerFunction.functionDeclaration); - if (bodyFunction) statements.push(bodyFunction.functionDeclaration); - addExtraDeclarationsForConvertedLoop(statements, currentState, outerConvertedLoopState); - if (initializerFunction) { - statements.push(generateCallToConvertedLoopInitializer(initializerFunction.functionName, initializerFunction.containsYield)); - } - let loop; - if (bodyFunction) { - if (convert) { - loop = convert(node, outermostLabeledStatement, bodyFunction.part, ancestorFacts); - } else { - const clone = convertIterationStatementCore(node, initializerFunction, factory2.createBlock( - bodyFunction.part, - /*multiLine*/ - true - )); - loop = factory2.restoreEnclosingLabel(clone, outermostLabeledStatement, convertedLoopState && resetLabel); - } - } else { - const clone = convertIterationStatementCore(node, initializerFunction, Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock))); - loop = factory2.restoreEnclosingLabel(clone, outermostLabeledStatement, convertedLoopState && resetLabel); - } - statements.push(loop); - return statements; - } - function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { - switch (node.kind) { - case 248 /* ForStatement */: - return convertForStatement(node, initializerFunction, convertedLoopBody); - case 249 /* ForInStatement */: - return convertForInStatement(node, convertedLoopBody); - case 250 /* ForOfStatement */: - return convertForOfStatement(node, convertedLoopBody); - case 246 /* DoStatement */: - return convertDoStatement(node, convertedLoopBody); - case 247 /* WhileStatement */: - return convertWhileStatement(node, convertedLoopBody); - default: - return Debug.failBadSyntaxKind(node, "IterationStatement expected"); - } - } - function convertForStatement(node, initializerFunction, convertedLoopBody) { - const shouldConvertCondition = node.condition && shouldConvertPartOfIterationStatement(node.condition); - const shouldConvertIncrementor = shouldConvertCondition || node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor); - return factory2.updateForStatement( - node, - visitNode(initializerFunction ? initializerFunction.part : node.initializer, visitorWithUnusedExpressionResult, isForInitializer), - visitNode(shouldConvertCondition ? void 0 : node.condition, visitor, isExpression), - visitNode(shouldConvertIncrementor ? void 0 : node.incrementor, visitorWithUnusedExpressionResult, isExpression), - convertedLoopBody - ); - } - function convertForOfStatement(node, convertedLoopBody) { - return factory2.updateForOfStatement( - node, - /*awaitModifier*/ - void 0, - Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - convertedLoopBody - ); - } - function convertForInStatement(node, convertedLoopBody) { - return factory2.updateForInStatement( - node, - Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - convertedLoopBody - ); - } - function convertDoStatement(node, convertedLoopBody) { - return factory2.updateDoStatement( - node, - convertedLoopBody, - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)) - ); - } - function convertWhileStatement(node, convertedLoopBody) { - return factory2.updateWhileStatement( - node, - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - convertedLoopBody - ); - } - function createConvertedLoopState(node) { - let loopInitializer; - switch (node.kind) { - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - const initializer = node.initializer; - if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { - loopInitializer = initializer; - } - break; - } - const loopParameters = []; - const loopOutParameters = []; - if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { - const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); - for (const decl of loopInitializer.declarations) { - processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); - } - } - const currentState = { loopParameters, loopOutParameters }; - if (convertedLoopState) { - if (convertedLoopState.argumentsName) { - currentState.argumentsName = convertedLoopState.argumentsName; - } - if (convertedLoopState.thisName) { - currentState.thisName = convertedLoopState.thisName; - } - if (convertedLoopState.hoistedLocalVariables) { - currentState.hoistedLocalVariables = convertedLoopState.hoistedLocalVariables; - } - } - return currentState; - } - function addExtraDeclarationsForConvertedLoop(statements, state, outerState) { - let extraVariableDeclarations; - if (state.argumentsName) { - if (outerState) { - outerState.argumentsName = state.argumentsName; - } else { - (extraVariableDeclarations || (extraVariableDeclarations = [])).push( - factory2.createVariableDeclaration( - state.argumentsName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createIdentifier("arguments") - ) - ); - } - } - if (state.thisName) { - if (outerState) { - outerState.thisName = state.thisName; - } else { - (extraVariableDeclarations || (extraVariableDeclarations = [])).push( - factory2.createVariableDeclaration( - state.thisName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createIdentifier("this") - ) - ); - } - } - if (state.hoistedLocalVariables) { - if (outerState) { - outerState.hoistedLocalVariables = state.hoistedLocalVariables; - } else { - if (!extraVariableDeclarations) { - extraVariableDeclarations = []; - } - for (const identifier of state.hoistedLocalVariables) { - extraVariableDeclarations.push(factory2.createVariableDeclaration(identifier)); - } - } - } - if (state.loopOutParameters.length) { - if (!extraVariableDeclarations) { - extraVariableDeclarations = []; - } - for (const outParam of state.loopOutParameters) { - extraVariableDeclarations.push(factory2.createVariableDeclaration(outParam.outParamName)); - } - } - if (state.conditionVariable) { - if (!extraVariableDeclarations) { - extraVariableDeclarations = []; - } - extraVariableDeclarations.push(factory2.createVariableDeclaration( - state.conditionVariable, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createFalse() - )); - } - if (extraVariableDeclarations) { - statements.push(factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList(extraVariableDeclarations) - )); - } - } - function createOutVariable(p) { - return factory2.createVariableDeclaration( - p.originalName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - p.outParamName - ); - } - function createFunctionForInitializerOfForStatement(node, currentState) { - const functionName = factory2.createUniqueName("_loop_init"); - const containsYield = (node.initializer.transformFlags & 1048576 /* ContainsYield */) !== 0; - let emitFlags = 0 /* None */; - if (currentState.containsLexicalThis) emitFlags |= 16 /* CapturesThis */; - if (containsYield && hierarchyFacts & 4 /* AsyncFunctionBody */) emitFlags |= 524288 /* AsyncFunctionBody */; - const statements = []; - statements.push(factory2.createVariableStatement( - /*modifiers*/ - void 0, - node.initializer - )); - copyOutParameters(currentState.loopOutParameters, 2 /* Initializer */, 1 /* ToOutParameter */, statements); - const functionDeclaration = factory2.createVariableStatement( - /*modifiers*/ - void 0, - setEmitFlags( - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - functionName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - setEmitFlags( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - containsYield ? factory2.createToken(42 /* AsteriskToken */) : void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - void 0, - /*type*/ - void 0, - Debug.checkDefined(visitNode( - factory2.createBlock( - statements, - /*multiLine*/ - true - ), - visitor, - isBlock - )) - ), - emitFlags - ) - ) - ]), - 4194304 /* NoHoisting */ - ) - ); - const part = factory2.createVariableDeclarationList(map(currentState.loopOutParameters, createOutVariable)); - return { functionName, containsYield, functionDeclaration, part }; - } - function createFunctionForBodyOfIterationStatement(node, currentState, outerState) { - const functionName = factory2.createUniqueName("_loop"); - startLexicalEnvironment(); - const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock); - const lexicalEnvironment = endLexicalEnvironment(); - const statements = []; - if (shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node)) { - currentState.conditionVariable = factory2.createUniqueName("inc"); - if (node.incrementor) { - statements.push(factory2.createIfStatement( - currentState.conditionVariable, - factory2.createExpressionStatement(Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression))), - factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue())) - )); - } else { - statements.push(factory2.createIfStatement( - factory2.createLogicalNot(currentState.conditionVariable), - factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue())) - )); - } - if (shouldConvertConditionOfForStatement(node)) { - statements.push(factory2.createIfStatement( - factory2.createPrefixUnaryExpression(54 /* ExclamationToken */, Debug.checkDefined(visitNode(node.condition, visitor, isExpression))), - Debug.checkDefined(visitNode(factory2.createBreakStatement(), visitor, isStatement)) - )); - } - } - Debug.assert(statement); - if (isBlock(statement)) { - addRange(statements, statement.statements); - } else { - statements.push(statement); - } - copyOutParameters(currentState.loopOutParameters, 1 /* Body */, 1 /* ToOutParameter */, statements); - insertStatementsAfterStandardPrologue(statements, lexicalEnvironment); - const loopBody = factory2.createBlock( - statements, - /*multiLine*/ - true - ); - if (isBlock(statement)) setOriginalNode(loopBody, statement); - const containsYield = (node.statement.transformFlags & 1048576 /* ContainsYield */) !== 0; - let emitFlags = 1048576 /* ReuseTempVariableScope */; - if (currentState.containsLexicalThis) emitFlags |= 16 /* CapturesThis */; - if (containsYield && (hierarchyFacts & 4 /* AsyncFunctionBody */) !== 0) emitFlags |= 524288 /* AsyncFunctionBody */; - const functionDeclaration = factory2.createVariableStatement( - /*modifiers*/ - void 0, - setEmitFlags( - factory2.createVariableDeclarationList( - [ - factory2.createVariableDeclaration( - functionName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - setEmitFlags( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - containsYield ? factory2.createToken(42 /* AsteriskToken */) : void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - currentState.loopParameters, - /*type*/ - void 0, - loopBody - ), - emitFlags - ) - ) - ] - ), - 4194304 /* NoHoisting */ - ) - ); - const part = generateCallToConvertedLoop(functionName, currentState, outerState, containsYield); - return { functionName, containsYield, functionDeclaration, part }; - } - function copyOutParameter(outParam, copyDirection) { - const source = copyDirection === 0 /* ToOriginal */ ? outParam.outParamName : outParam.originalName; - const target = copyDirection === 0 /* ToOriginal */ ? outParam.originalName : outParam.outParamName; - return factory2.createBinaryExpression(target, 64 /* EqualsToken */, source); - } - function copyOutParameters(outParams, partFlags, copyDirection, statements) { - for (const outParam of outParams) { - if (outParam.flags & partFlags) { - statements.push(factory2.createExpressionStatement(copyOutParameter(outParam, copyDirection))); - } - } - } - function generateCallToConvertedLoopInitializer(initFunctionExpressionName, containsYield) { - const call = factory2.createCallExpression( - initFunctionExpressionName, - /*typeArguments*/ - void 0, - [] - ); - const callResult = containsYield ? factory2.createYieldExpression( - factory2.createToken(42 /* AsteriskToken */), - setEmitFlags(call, 8388608 /* Iterator */) - ) : call; - return factory2.createExpressionStatement(callResult); - } - function generateCallToConvertedLoop(loopFunctionExpressionName, state, outerState, containsYield) { - const statements = []; - const isSimpleLoop = !(state.nonLocalJumps & ~4 /* Continue */) && !state.labeledNonLocalBreaks && !state.labeledNonLocalContinues; - const call = factory2.createCallExpression( - loopFunctionExpressionName, - /*typeArguments*/ - void 0, - map(state.loopParameters, (p) => p.name) - ); - const callResult = containsYield ? factory2.createYieldExpression( - factory2.createToken(42 /* AsteriskToken */), - setEmitFlags(call, 8388608 /* Iterator */) - ) : call; - if (isSimpleLoop) { - statements.push(factory2.createExpressionStatement(callResult)); - copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements); - } else { - const loopResultName = factory2.createUniqueName("state"); - const stateVariable = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [factory2.createVariableDeclaration( - loopResultName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - callResult - )] - ) - ); - statements.push(stateVariable); - copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements); - if (state.nonLocalJumps & 8 /* Return */) { - let returnStatement; - if (outerState) { - outerState.nonLocalJumps |= 8 /* Return */; - returnStatement = factory2.createReturnStatement(loopResultName); - } else { - returnStatement = factory2.createReturnStatement(factory2.createPropertyAccessExpression(loopResultName, "value")); - } - statements.push( - factory2.createIfStatement( - factory2.createTypeCheck(loopResultName, "object"), - returnStatement - ) - ); - } - if (state.nonLocalJumps & 2 /* Break */) { - statements.push( - factory2.createIfStatement( - factory2.createStrictEquality( - loopResultName, - factory2.createStringLiteral("break") - ), - factory2.createBreakStatement() - ) - ); - } - if (state.labeledNonLocalBreaks || state.labeledNonLocalContinues) { - const caseClauses = []; - processLabeledJumps( - state.labeledNonLocalBreaks, - /*isBreak*/ - true, - loopResultName, - outerState, - caseClauses - ); - processLabeledJumps( - state.labeledNonLocalContinues, - /*isBreak*/ - false, - loopResultName, - outerState, - caseClauses - ); - statements.push( - factory2.createSwitchStatement( - loopResultName, - factory2.createCaseBlock(caseClauses) - ) - ); - } - } - return statements; - } - function setLabeledJump(state, isBreak, labelText, labelMarker) { - if (isBreak) { - if (!state.labeledNonLocalBreaks) { - state.labeledNonLocalBreaks = /* @__PURE__ */ new Map(); - } - state.labeledNonLocalBreaks.set(labelText, labelMarker); - } else { - if (!state.labeledNonLocalContinues) { - state.labeledNonLocalContinues = /* @__PURE__ */ new Map(); - } - state.labeledNonLocalContinues.set(labelText, labelMarker); - } - } - function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) { - if (!table) { - return; - } - table.forEach((labelMarker, labelText) => { - const statements = []; - if (!outerLoop || outerLoop.labels && outerLoop.labels.get(labelText)) { - const label = factory2.createIdentifier(labelText); - statements.push(isBreak ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label)); - } else { - setLabeledJump(outerLoop, isBreak, labelText, labelMarker); - statements.push(factory2.createReturnStatement(loopResultName)); - } - caseClauses.push(factory2.createCaseClause(factory2.createStringLiteral(labelMarker), statements)); - }); - } - function processLoopVariableDeclaration(container, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead) { - const name = decl.name; - if (isBindingPattern(name)) { - for (const element of name.elements) { - if (!isOmittedExpression(element)) { - processLoopVariableDeclaration(container, element, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); - } - } - } else { - loopParameters.push(factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - name - )); - const needsOutParam = resolver.hasNodeCheckFlag(decl, 65536 /* NeedsLoopOutParameter */); - if (needsOutParam || hasCapturedBindingsInForHead) { - const outParamName = factory2.createUniqueName("out_" + idText(name)); - let flags = 0 /* None */; - if (needsOutParam) { - flags |= 1 /* Body */; - } - if (isForStatement(container)) { - if (container.initializer && resolver.isBindingCapturedByNode(container.initializer, decl)) { - flags |= 2 /* Initializer */; - } - if (container.condition && resolver.isBindingCapturedByNode(container.condition, decl) || container.incrementor && resolver.isBindingCapturedByNode(container.incrementor, decl)) { - flags |= 1 /* Body */; - } - } - loopOutParameters.push({ flags, originalName: name, outParamName }); - } - } - } - function addObjectLiteralMembers(expressions, node, receiver, start) { - const properties = node.properties; - const numProperties = properties.length; - for (let i = start; i < numProperties; i++) { - const property = properties[i]; - switch (property.kind) { - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - const accessors = getAllAccessorDeclarations(node.properties, property); - if (property === accessors.firstAccessor) { - expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); - } - break; - case 174 /* MethodDeclaration */: - expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); - break; - case 303 /* PropertyAssignment */: - expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); - break; - case 304 /* ShorthandPropertyAssignment */: - expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); - break; - default: - Debug.failBadSyntaxKind(node); - break; - } - } - } - function transformPropertyAssignmentToExpression(property, receiver, startsOnNewLine) { - const expression = factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - Debug.checkDefined(visitNode(property.name, visitor, isPropertyName)) - ), - Debug.checkDefined(visitNode(property.initializer, visitor, isExpression)) - ); - setTextRange(expression, property); - if (startsOnNewLine) { - startOnNewLine(expression); - } - return expression; - } - function transformShorthandPropertyAssignmentToExpression(property, receiver, startsOnNewLine) { - const expression = factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - Debug.checkDefined(visitNode(property.name, visitor, isPropertyName)) - ), - factory2.cloneNode(property.name) - ); - setTextRange(expression, property); - if (startsOnNewLine) { - startOnNewLine(expression); - } - return expression; - } - function transformObjectLiteralMethodDeclarationToExpression(method, receiver, container, startsOnNewLine) { - const expression = factory2.createAssignment( - createMemberAccessForPropertyName( - factory2, - receiver, - Debug.checkDefined(visitNode(method.name, visitor, isPropertyName)) - ), - transformFunctionLikeToExpression( - method, - /*location*/ - method, - /*name*/ - void 0, - container - ) - ); - setTextRange(expression, method); - if (startsOnNewLine) { - startOnNewLine(expression); - } - return expression; - } - function visitCatchClause(node) { - const ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */); - let updated; - Debug.assert(!!node.variableDeclaration, "Catch clause variable should always be present when downleveling ES2015."); - if (isBindingPattern(node.variableDeclaration.name)) { - const temp = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - const newVariableDeclaration = factory2.createVariableDeclaration(temp); - setTextRange(newVariableDeclaration, node.variableDeclaration); - const vars = flattenDestructuringBinding( - node.variableDeclaration, - visitor, - context, - 0 /* All */, - temp - ); - const list = factory2.createVariableDeclarationList(vars); - setTextRange(list, node.variableDeclaration); - const destructure = factory2.createVariableStatement( - /*modifiers*/ - void 0, - list - ); - updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure)); - } else { - updated = visitEachChild(node, visitor, context); - } - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return updated; - } - function addStatementToStartOfBlock(block, statement) { - const transformedStatements = visitNodes2(block.statements, visitor, isStatement); - return factory2.updateBlock(block, [statement, ...transformedStatements]); - } - function visitMethodDeclaration(node) { - Debug.assert(!isComputedPropertyName(node.name)); - const functionExpression = transformFunctionLikeToExpression( - node, - /*location*/ - moveRangePos(node, -1), - /*name*/ - void 0, - /*container*/ - void 0 - ); - setEmitFlags(functionExpression, 1024 /* NoLeadingComments */ | getEmitFlags(functionExpression)); - return setTextRange( - factory2.createPropertyAssignment( - node.name, - functionExpression - ), - /*location*/ - node - ); - } - function visitAccessorDeclaration(node) { - Debug.assert(!isComputedPropertyName(node.name)); - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); - let updated; - const parameters = visitParameterList(node.parameters, visitor, context); - const body = transformFunctionBody(node); - if (node.kind === 177 /* GetAccessor */) { - updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); - } else { - updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); - } - exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); - convertedLoopState = savedConvertedLoopState; - return updated; - } - function visitShorthandPropertyAssignment(node) { - return setTextRange( - factory2.createPropertyAssignment( - node.name, - visitIdentifier(factory2.cloneNode(node.name)) - ), - /*location*/ - node - ); - } - function visitComputedPropertyName(node) { - return visitEachChild(node, visitor, context); - } - function visitYieldExpression(node) { - return visitEachChild(node, visitor, context); - } - function visitArrayLiteralExpression(node) { - if (some(node.elements, isSpreadElement)) { - return transformAndSpreadElements( - node.elements, - /*isArgumentList*/ - false, - !!node.multiLine, - /*hasTrailingComma*/ - !!node.elements.hasTrailingComma - ); - } - return visitEachChild(node, visitor, context); - } - function visitCallExpression(node) { - if (getInternalEmitFlags(node) & 1 /* TypeScriptClassWrapper */) { - return visitTypeScriptClassWrapper(node); - } - const expression = skipOuterExpressions(node.expression); - if (expression.kind === 108 /* SuperKeyword */ || isSuperProperty(expression) || some(node.arguments, isSpreadElement)) { - return visitCallExpressionWithPotentialCapturedThisAssignment( - node, - /*assignToCapturedThis*/ - true - ); - } - return factory2.updateCallExpression( - node, - Debug.checkDefined(visitNode(node.expression, callExpressionVisitor, isExpression)), - /*typeArguments*/ - void 0, - visitNodes2(node.arguments, visitor, isExpression) - ); - } - function visitTypeScriptClassWrapper(node) { - const body = cast(cast(skipOuterExpressions(node.expression), isArrowFunction).body, isBlock); - const isVariableStatementWithInitializer = (stmt) => isVariableStatement(stmt) && !!first(stmt.declarationList.declarations).initializer; - const savedConvertedLoopState = convertedLoopState; - convertedLoopState = void 0; - const bodyStatements = visitNodes2(body.statements, classWrapperStatementVisitor, isStatement); - convertedLoopState = savedConvertedLoopState; - const classStatements = filter(bodyStatements, isVariableStatementWithInitializer); - const remainingStatements = filter(bodyStatements, (stmt) => !isVariableStatementWithInitializer(stmt)); - const varStatement = cast(first(classStatements), isVariableStatement); - const variable = varStatement.declarationList.declarations[0]; - const initializer = skipOuterExpressions(variable.initializer); - let aliasAssignment = tryCast(initializer, isAssignmentExpression); - if (!aliasAssignment && isBinaryExpression(initializer) && initializer.operatorToken.kind === 28 /* CommaToken */) { - aliasAssignment = tryCast(initializer.left, isAssignmentExpression); - } - const call = cast(aliasAssignment ? skipOuterExpressions(aliasAssignment.right) : initializer, isCallExpression); - const func = cast(skipOuterExpressions(call.expression), isFunctionExpression); - const funcStatements = func.body.statements; - let classBodyStart = 0; - let classBodyEnd = -1; - const statements = []; - if (aliasAssignment) { - const extendsCall = tryCast(funcStatements[classBodyStart], isExpressionStatement); - if (extendsCall) { - statements.push(extendsCall); - classBodyStart++; - } - statements.push(funcStatements[classBodyStart]); - classBodyStart++; - statements.push( - factory2.createExpressionStatement( - factory2.createAssignment( - aliasAssignment.left, - cast(variable.name, isIdentifier) - ) - ) - ); - } - while (!isReturnStatement(elementAt(funcStatements, classBodyEnd))) { - classBodyEnd--; - } - addRange(statements, funcStatements, classBodyStart, classBodyEnd); - if (classBodyEnd < -1) { - addRange(statements, funcStatements, classBodyEnd + 1); - } - const returnStatement = tryCast(elementAt(funcStatements, classBodyEnd), isReturnStatement); - for (const statement of remainingStatements) { - if (isReturnStatement(statement) && (returnStatement == null ? void 0 : returnStatement.expression) && !isIdentifier(returnStatement.expression)) { - statements.push(returnStatement); - } else { - statements.push(statement); - } - } - addRange( - statements, - classStatements, - /*start*/ - 1 - ); - return factory2.restoreOuterExpressions( - node.expression, - factory2.restoreOuterExpressions( - variable.initializer, - factory2.restoreOuterExpressions( - aliasAssignment && aliasAssignment.right, - factory2.updateCallExpression( - call, - factory2.restoreOuterExpressions( - call.expression, - factory2.updateFunctionExpression( - func, - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - func.parameters, - /*type*/ - void 0, - factory2.updateBlock( - func.body, - statements - ) - ) - ), - /*typeArguments*/ - void 0, - call.arguments - ) - ) - ) - ); - } - function visitCallExpressionWithPotentialCapturedThisAssignment(node, assignToCapturedThis) { - if (node.transformFlags & 32768 /* ContainsRestOrSpread */ || node.expression.kind === 108 /* SuperKeyword */ || isSuperProperty(skipOuterExpressions(node.expression))) { - const { target, thisArg } = factory2.createCallBinding(node.expression, hoistVariableDeclaration); - if (node.expression.kind === 108 /* SuperKeyword */) { - setEmitFlags(thisArg, 8 /* NoSubstitution */); - } - let resultingCall; - if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { - resultingCall = factory2.createFunctionApplyCall( - Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), - node.expression.kind === 108 /* SuperKeyword */ ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), - transformAndSpreadElements( - node.arguments, - /*isArgumentList*/ - true, - /*multiLine*/ - false, - /*hasTrailingComma*/ - false - ) - ); - } else { - resultingCall = setTextRange( - factory2.createFunctionCallCall( - Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), - node.expression.kind === 108 /* SuperKeyword */ ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), - visitNodes2(node.arguments, visitor, isExpression) - ), - node - ); - } - if (node.expression.kind === 108 /* SuperKeyword */) { - const initializer = factory2.createLogicalOr( - resultingCall, - createActualThis() - ); - resultingCall = assignToCapturedThis ? factory2.createAssignment(createCapturedThis(), initializer) : initializer; - } - return setOriginalNode(resultingCall, node); - } - if (isSuperCall(node)) { - hierarchyFacts |= 131072 /* CapturedLexicalThis */; - } - return visitEachChild(node, visitor, context); - } - function visitNewExpression(node) { - if (some(node.arguments, isSpreadElement)) { - const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, "bind"), hoistVariableDeclaration); - return factory2.createNewExpression( - factory2.createFunctionApplyCall( - Debug.checkDefined(visitNode(target, visitor, isExpression)), - thisArg, - transformAndSpreadElements( - factory2.createNodeArray([factory2.createVoidZero(), ...node.arguments]), - /*isArgumentList*/ - true, - /*multiLine*/ - false, - /*hasTrailingComma*/ - false - ) - ), - /*typeArguments*/ - void 0, - [] - ); - } - return visitEachChild(node, visitor, context); - } - function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) { - const numElements = elements.length; - const segments = flatten( - // As we visit each element, we return one of two functions to use as the "key": - // - `visitSpanOfSpreads` for one or more contiguous `...` spread expressions, i.e. `...a, ...b` in `[1, 2, ...a, ...b]` - // - `visitSpanOfNonSpreads` for one or more contiguous non-spread elements, i.e. `1, 2`, in `[1, 2, ...a, ...b]` - spanMap(elements, partitionSpread, (partition, visitPartition, _start, end) => visitPartition(partition, multiLine, hasTrailingComma && end === numElements)) - ); - if (segments.length === 1) { - const firstSegment = segments[0]; - if (isArgumentList && !compilerOptions.downlevelIteration || isPackedArrayLiteral(firstSegment.expression) || isCallToHelper(firstSegment.expression, "___spreadArray")) { - return firstSegment.expression; - } - } - const helpers = emitHelpers(); - const startsWithSpread = segments[0].kind !== 0 /* None */; - let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments[0].expression; - for (let i = startsWithSpread ? 0 : 1; i < segments.length; i++) { - const segment = segments[i]; - expression = helpers.createSpreadArrayHelper( - expression, - segment.expression, - segment.kind === 1 /* UnpackedSpread */ && !isArgumentList - ); - } - return expression; - } - function partitionSpread(node) { - return isSpreadElement(node) ? visitSpanOfSpreads : visitSpanOfNonSpreads; - } - function visitSpanOfSpreads(chunk) { - return map(chunk, visitExpressionOfSpread); - } - function visitExpressionOfSpread(node) { - Debug.assertNode(node, isSpreadElement); - let expression = visitNode(node.expression, visitor, isExpression); - Debug.assert(expression); - const isCallToReadHelper = isCallToHelper(expression, "___read"); - let kind = isCallToReadHelper || isPackedArrayLiteral(expression) ? 2 /* PackedSpread */ : 1 /* UnpackedSpread */; - if (compilerOptions.downlevelIteration && kind === 1 /* UnpackedSpread */ && !isArrayLiteralExpression(expression) && !isCallToReadHelper) { - expression = emitHelpers().createReadHelper( - expression, - /*count*/ - void 0 - ); - kind = 2 /* PackedSpread */; - } - return createSpreadSegment(kind, expression); - } - function visitSpanOfNonSpreads(chunk, multiLine, hasTrailingComma) { - const expression = factory2.createArrayLiteralExpression( - visitNodes2(factory2.createNodeArray(chunk, hasTrailingComma), visitor, isExpression), - multiLine - ); - return createSpreadSegment(0 /* None */, expression); - } - function visitSpreadElement(node) { - return visitNode(node.expression, visitor, isExpression); - } - function visitTemplateLiteral(node) { - return setTextRange(factory2.createStringLiteral(node.text), node); - } - function visitStringLiteral(node) { - if (node.hasExtendedUnicodeEscape) { - return setTextRange(factory2.createStringLiteral(node.text), node); - } - return node; - } - function visitNumericLiteral(node) { - if (node.numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */) { - return setTextRange(factory2.createNumericLiteral(node.text), node); - } - return node; - } - function visitTaggedTemplateExpression(node) { - return processTaggedTemplateExpression( - context, - node, - visitor, - currentSourceFile, - recordTaggedTemplateString, - 1 /* All */ - ); - } - function visitTemplateExpression(node) { - let expression = factory2.createStringLiteral(node.head.text); - for (const span of node.templateSpans) { - const args = [Debug.checkDefined(visitNode(span.expression, visitor, isExpression))]; - if (span.literal.text.length > 0) { - args.push(factory2.createStringLiteral(span.literal.text)); - } - expression = factory2.createCallExpression( - factory2.createPropertyAccessExpression(expression, "concat"), - /*typeArguments*/ - void 0, - args - ); - } - return setTextRange(expression, node); - } - function createSyntheticSuper() { - return factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */); - } - function visitSuperKeyword(node, isExpressionOfCall) { - const expression = hierarchyFacts & 8 /* NonStaticClassElement */ && !isExpressionOfCall ? factory2.createPropertyAccessExpression(setOriginalNode(createSyntheticSuper(), node), "prototype") : createSyntheticSuper(); - setOriginalNode(expression, node); - setCommentRange(expression, node); - setSourceMapRange(expression, node); - return expression; - } - function visitMetaProperty(node) { - if (node.keywordToken === 105 /* NewKeyword */ && node.name.escapedText === "target") { - hierarchyFacts |= 32768 /* NewTarget */; - return factory2.createUniqueName("_newTarget", 16 /* Optimistic */ | 32 /* FileLevel */); - } - return node; - } - function onEmitNode(hint, node, emitCallback) { - if (enabledSubstitutions & 1 /* CapturedThis */ && isFunctionLike(node)) { - const ancestorFacts = enterSubtree( - 32670 /* FunctionExcludes */, - getEmitFlags(node) & 16 /* CapturesThis */ ? 65 /* FunctionIncludes */ | 16 /* CapturesThis */ : 65 /* FunctionIncludes */ - ); - previousOnEmitNode(hint, node, emitCallback); - exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); - return; - } - previousOnEmitNode(hint, node, emitCallback); - } - function enableSubstitutionsForBlockScopedBindings() { - if ((enabledSubstitutions & 2 /* BlockScopedBindings */) === 0) { - enabledSubstitutions |= 2 /* BlockScopedBindings */; - context.enableSubstitution(80 /* Identifier */); - } - } - function enableSubstitutionsForCapturedThis() { - if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { - enabledSubstitutions |= 1 /* CapturedThis */; - context.enableSubstitution(110 /* ThisKeyword */); - context.enableEmitNotification(176 /* Constructor */); - context.enableEmitNotification(174 /* MethodDeclaration */); - context.enableEmitNotification(177 /* GetAccessor */); - context.enableEmitNotification(178 /* SetAccessor */); - context.enableEmitNotification(219 /* ArrowFunction */); - context.enableEmitNotification(218 /* FunctionExpression */); - context.enableEmitNotification(262 /* FunctionDeclaration */); - } - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } - if (isIdentifier(node)) { - return substituteIdentifier(node); - } - return node; - } - function substituteIdentifier(node) { - if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !isInternalName(node)) { - const original = getParseTreeNode(node, isIdentifier); - if (original && isNameOfDeclarationWithCollidingName(original)) { - return setTextRange(factory2.getGeneratedNameForNode(original), node); - } - } - return node; - } - function isNameOfDeclarationWithCollidingName(node) { - switch (node.parent.kind) { - case 208 /* BindingElement */: - case 263 /* ClassDeclaration */: - case 266 /* EnumDeclaration */: - case 260 /* VariableDeclaration */: - return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); - } - return false; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - case 110 /* ThisKeyword */: - return substituteThisKeyword(node); - } - return node; - } - function substituteExpressionIdentifier(node) { - if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !isInternalName(node)) { - const declaration = resolver.getReferencedDeclarationWithCollidingName(node); - if (declaration && !(isClassLike(declaration) && isPartOfClassBody(declaration, node))) { - return setTextRange(factory2.getGeneratedNameForNode(getNameOfDeclaration(declaration)), node); - } - } - return node; - } - function isPartOfClassBody(declaration, node) { - let currentNode = getParseTreeNode(node); - if (!currentNode || currentNode === declaration || currentNode.end <= declaration.pos || currentNode.pos >= declaration.end) { - return false; - } - const blockScope = getEnclosingBlockScopeContainer(declaration); - while (currentNode) { - if (currentNode === blockScope || currentNode === declaration) { - return false; - } - if (isClassElement(currentNode) && currentNode.parent === declaration) { - return true; - } - currentNode = currentNode.parent; - } - return false; - } - function substituteThisKeyword(node) { - if (enabledSubstitutions & 1 /* CapturedThis */ && hierarchyFacts & 16 /* CapturesThis */) { - return setTextRange(createCapturedThis(), node); - } - return node; - } - function getClassMemberPrefix(node, member) { - return isStatic(member) ? factory2.getInternalName(node) : factory2.createPropertyAccessExpression(factory2.getInternalName(node), "prototype"); - } - function hasSynthesizedDefaultSuperCall(constructor, hasExtendsClause) { - if (!constructor || !hasExtendsClause) { - return false; - } - if (some(constructor.parameters)) { - return false; - } - const statement = firstOrUndefined(constructor.body.statements); - if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { - return false; - } - const statementExpression = statement.expression; - if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { - return false; - } - const callTarget = statementExpression.expression; - if (!nodeIsSynthesized(callTarget) || callTarget.kind !== 108 /* SuperKeyword */) { - return false; - } - const callArgument = singleOrUndefined(statementExpression.arguments); - if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { - return false; - } - const expression = callArgument.expression; - return isIdentifier(expression) && expression.escapedText === "arguments"; - } -} - -// src/compiler/transformers/generators.ts -function getInstructionName(instruction) { - switch (instruction) { - case 2 /* Return */: - return "return"; - case 3 /* Break */: - return "break"; - case 4 /* Yield */: - return "yield"; - case 5 /* YieldStar */: - return "yield*"; - case 7 /* Endfinally */: - return "endfinally"; - default: - return void 0; - } -} -function transformGenerators(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - resumeLexicalEnvironment, - endLexicalEnvironment, - hoistFunctionDeclaration, - hoistVariableDeclaration - } = context; - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const resolver = context.getEmitResolver(); - const previousOnSubstituteNode = context.onSubstituteNode; - context.onSubstituteNode = onSubstituteNode; - let renamedCatchVariables; - let renamedCatchVariableDeclarations; - let inGeneratorFunctionBody; - let inStatementContainingYield; - let blocks; - let blockOffsets; - let blockActions; - let blockStack; - let labelOffsets; - let labelExpressions; - let nextLabelId = 1; - let operations; - let operationArguments; - let operationLocations; - let state; - let blockIndex = 0; - let labelNumber = 0; - let labelNumbers; - let lastOperationWasAbrupt; - let lastOperationWasCompletion; - let clauses; - let statements; - let exceptionBlockStack; - let currentExceptionBlock; - let withBlockStack; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile || (node.transformFlags & 2048 /* ContainsGenerator */) === 0) { - return node; - } - const visited = visitEachChild(node, visitor, context); - addEmitHelpers(visited, context.readEmitHelpers()); - return visited; - } - function visitor(node) { - const transformFlags = node.transformFlags; - if (inStatementContainingYield) { - return visitJavaScriptInStatementContainingYield(node); - } else if (inGeneratorFunctionBody) { - return visitJavaScriptInGeneratorFunctionBody(node); - } else if (isFunctionLikeDeclaration(node) && node.asteriskToken) { - return visitGenerator(node); - } else if (transformFlags & 2048 /* ContainsGenerator */) { - return visitEachChild(node, visitor, context); - } else { - return node; - } - } - function visitJavaScriptInStatementContainingYield(node) { - switch (node.kind) { - case 246 /* DoStatement */: - return visitDoStatement(node); - case 247 /* WhileStatement */: - return visitWhileStatement(node); - case 255 /* SwitchStatement */: - return visitSwitchStatement(node); - case 256 /* LabeledStatement */: - return visitLabeledStatement(node); - default: - return visitJavaScriptInGeneratorFunctionBody(node); - } - } - function visitJavaScriptInGeneratorFunctionBody(node) { - switch (node.kind) { - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 218 /* FunctionExpression */: - return visitFunctionExpression(node); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return visitAccessorDeclaration(node); - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 248 /* ForStatement */: - return visitForStatement(node); - case 249 /* ForInStatement */: - return visitForInStatement(node); - case 252 /* BreakStatement */: - return visitBreakStatement(node); - case 251 /* ContinueStatement */: - return visitContinueStatement(node); - case 253 /* ReturnStatement */: - return visitReturnStatement(node); - default: - if (node.transformFlags & 1048576 /* ContainsYield */) { - return visitJavaScriptContainingYield(node); - } else if (node.transformFlags & (2048 /* ContainsGenerator */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */)) { - return visitEachChild(node, visitor, context); - } else { - return node; - } - } - } - function visitJavaScriptContainingYield(node) { - switch (node.kind) { - case 226 /* BinaryExpression */: - return visitBinaryExpression(node); - case 356 /* CommaListExpression */: - return visitCommaListExpression(node); - case 227 /* ConditionalExpression */: - return visitConditionalExpression(node); - case 229 /* YieldExpression */: - return visitYieldExpression(node); - case 209 /* ArrayLiteralExpression */: - return visitArrayLiteralExpression(node); - case 210 /* ObjectLiteralExpression */: - return visitObjectLiteralExpression(node); - case 212 /* ElementAccessExpression */: - return visitElementAccessExpression(node); - case 213 /* CallExpression */: - return visitCallExpression(node); - case 214 /* NewExpression */: - return visitNewExpression(node); - default: - return visitEachChild(node, visitor, context); - } - } - function visitGenerator(node) { - switch (node.kind) { - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 218 /* FunctionExpression */: - return visitFunctionExpression(node); - default: - return Debug.failBadSyntaxKind(node); - } - } - function visitFunctionDeclaration(node) { - if (node.asteriskToken) { - node = setOriginalNode( - setTextRange( - factory2.createFunctionDeclaration( - node.modifiers, - /*asteriskToken*/ - void 0, - node.name, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - transformGeneratorFunctionBody(node.body) - ), - /*location*/ - node - ), - node - ); - } else { - const savedInGeneratorFunctionBody = inGeneratorFunctionBody; - const savedInStatementContainingYield = inStatementContainingYield; - inGeneratorFunctionBody = false; - inStatementContainingYield = false; - node = visitEachChild(node, visitor, context); - inGeneratorFunctionBody = savedInGeneratorFunctionBody; - inStatementContainingYield = savedInStatementContainingYield; - } - if (inGeneratorFunctionBody) { - hoistFunctionDeclaration(node); - return void 0; - } else { - return node; - } - } - function visitFunctionExpression(node) { - if (node.asteriskToken) { - node = setOriginalNode( - setTextRange( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - node.name, - /*typeParameters*/ - void 0, - visitParameterList(node.parameters, visitor, context), - /*type*/ - void 0, - transformGeneratorFunctionBody(node.body) - ), - /*location*/ - node - ), - node - ); - } else { - const savedInGeneratorFunctionBody = inGeneratorFunctionBody; - const savedInStatementContainingYield = inStatementContainingYield; - inGeneratorFunctionBody = false; - inStatementContainingYield = false; - node = visitEachChild(node, visitor, context); - inGeneratorFunctionBody = savedInGeneratorFunctionBody; - inStatementContainingYield = savedInStatementContainingYield; - } - return node; - } - function visitAccessorDeclaration(node) { - const savedInGeneratorFunctionBody = inGeneratorFunctionBody; - const savedInStatementContainingYield = inStatementContainingYield; - inGeneratorFunctionBody = false; - inStatementContainingYield = false; - node = visitEachChild(node, visitor, context); - inGeneratorFunctionBody = savedInGeneratorFunctionBody; - inStatementContainingYield = savedInStatementContainingYield; - return node; - } - function transformGeneratorFunctionBody(body) { - const statements2 = []; - const savedInGeneratorFunctionBody = inGeneratorFunctionBody; - const savedInStatementContainingYield = inStatementContainingYield; - const savedBlocks = blocks; - const savedBlockOffsets = blockOffsets; - const savedBlockActions = blockActions; - const savedBlockStack = blockStack; - const savedLabelOffsets = labelOffsets; - const savedLabelExpressions = labelExpressions; - const savedNextLabelId = nextLabelId; - const savedOperations = operations; - const savedOperationArguments = operationArguments; - const savedOperationLocations = operationLocations; - const savedState = state; - inGeneratorFunctionBody = true; - inStatementContainingYield = false; - blocks = void 0; - blockOffsets = void 0; - blockActions = void 0; - blockStack = void 0; - labelOffsets = void 0; - labelExpressions = void 0; - nextLabelId = 1; - operations = void 0; - operationArguments = void 0; - operationLocations = void 0; - state = factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - resumeLexicalEnvironment(); - const statementOffset = factory2.copyPrologue( - body.statements, - statements2, - /*ensureUseStrict*/ - false, - visitor - ); - transformAndEmitStatements(body.statements, statementOffset); - const buildResult = build2(); - insertStatementsAfterStandardPrologue(statements2, endLexicalEnvironment()); - statements2.push(factory2.createReturnStatement(buildResult)); - inGeneratorFunctionBody = savedInGeneratorFunctionBody; - inStatementContainingYield = savedInStatementContainingYield; - blocks = savedBlocks; - blockOffsets = savedBlockOffsets; - blockActions = savedBlockActions; - blockStack = savedBlockStack; - labelOffsets = savedLabelOffsets; - labelExpressions = savedLabelExpressions; - nextLabelId = savedNextLabelId; - operations = savedOperations; - operationArguments = savedOperationArguments; - operationLocations = savedOperationLocations; - state = savedState; - return setTextRange(factory2.createBlock(statements2, body.multiLine), body); - } - function visitVariableStatement(node) { - if (node.transformFlags & 1048576 /* ContainsYield */) { - transformAndEmitVariableDeclarationList(node.declarationList); - return void 0; - } else { - if (getEmitFlags(node) & 2097152 /* CustomPrologue */) { - return node; - } - for (const variable of node.declarationList.declarations) { - hoistVariableDeclaration(variable.name); - } - const variables = getInitializedVariables(node.declarationList); - if (variables.length === 0) { - return void 0; - } - return setSourceMapRange( - factory2.createExpressionStatement( - factory2.inlineExpressions( - map(variables, transformInitializedVariable) - ) - ), - node - ); - } - } - function visitBinaryExpression(node) { - const assoc = getExpressionAssociativity(node); - switch (assoc) { - case 0 /* Left */: - return visitLeftAssociativeBinaryExpression(node); - case 1 /* Right */: - return visitRightAssociativeBinaryExpression(node); - default: - return Debug.assertNever(assoc); - } - } - function visitRightAssociativeBinaryExpression(node) { - const { left, right } = node; - if (containsYield(right)) { - let target; - switch (left.kind) { - case 211 /* PropertyAccessExpression */: - target = factory2.updatePropertyAccessExpression( - left, - cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), - left.name - ); - break; - case 212 /* ElementAccessExpression */: - target = factory2.updateElementAccessExpression(left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), cacheExpression(Debug.checkDefined(visitNode(left.argumentExpression, visitor, isExpression)))); - break; - default: - target = Debug.checkDefined(visitNode(left, visitor, isExpression)); - break; - } - const operator = node.operatorToken.kind; - if (isCompoundAssignment(operator)) { - return setTextRange( - factory2.createAssignment( - target, - setTextRange( - factory2.createBinaryExpression( - cacheExpression(target), - getNonAssignmentOperatorForCompoundAssignment(operator), - Debug.checkDefined(visitNode(right, visitor, isExpression)) - ), - node - ) - ), - node - ); - } else { - return factory2.updateBinaryExpression(node, target, node.operatorToken, Debug.checkDefined(visitNode(right, visitor, isExpression))); - } - } - return visitEachChild(node, visitor, context); - } - function visitLeftAssociativeBinaryExpression(node) { - if (containsYield(node.right)) { - if (isLogicalOperator(node.operatorToken.kind)) { - return visitLogicalBinaryExpression(node); - } else if (node.operatorToken.kind === 28 /* CommaToken */) { - return visitCommaExpression(node); - } - return factory2.updateBinaryExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.left, visitor, isExpression))), node.operatorToken, Debug.checkDefined(visitNode(node.right, visitor, isExpression))); - } - return visitEachChild(node, visitor, context); - } - function visitCommaExpression(node) { - let pendingExpressions = []; - visit(node.left); - visit(node.right); - return factory2.inlineExpressions(pendingExpressions); - function visit(node2) { - if (isBinaryExpression(node2) && node2.operatorToken.kind === 28 /* CommaToken */) { - visit(node2.left); - visit(node2.right); - } else { - if (containsYield(node2) && pendingExpressions.length > 0) { - emitWorker(1 /* Statement */, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]); - pendingExpressions = []; - } - pendingExpressions.push(Debug.checkDefined(visitNode(node2, visitor, isExpression))); - } - } - } - function visitCommaListExpression(node) { - let pendingExpressions = []; - for (const elem of node.elements) { - if (isBinaryExpression(elem) && elem.operatorToken.kind === 28 /* CommaToken */) { - pendingExpressions.push(visitCommaExpression(elem)); - } else { - if (containsYield(elem) && pendingExpressions.length > 0) { - emitWorker(1 /* Statement */, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]); - pendingExpressions = []; - } - pendingExpressions.push(Debug.checkDefined(visitNode(elem, visitor, isExpression))); - } - } - return factory2.inlineExpressions(pendingExpressions); - } - function visitLogicalBinaryExpression(node) { - const resultLabel = defineLabel(); - const resultLocal = declareLocal(); - emitAssignment( - resultLocal, - Debug.checkDefined(visitNode(node.left, visitor, isExpression)), - /*location*/ - node.left - ); - if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { - emitBreakWhenFalse( - resultLabel, - resultLocal, - /*location*/ - node.left - ); - } else { - emitBreakWhenTrue( - resultLabel, - resultLocal, - /*location*/ - node.left - ); - } - emitAssignment( - resultLocal, - Debug.checkDefined(visitNode(node.right, visitor, isExpression)), - /*location*/ - node.right - ); - markLabel(resultLabel); - return resultLocal; - } - function visitConditionalExpression(node) { - if (containsYield(node.whenTrue) || containsYield(node.whenFalse)) { - const whenFalseLabel = defineLabel(); - const resultLabel = defineLabel(); - const resultLocal = declareLocal(); - emitBreakWhenFalse( - whenFalseLabel, - Debug.checkDefined(visitNode(node.condition, visitor, isExpression)), - /*location*/ - node.condition - ); - emitAssignment( - resultLocal, - Debug.checkDefined(visitNode(node.whenTrue, visitor, isExpression)), - /*location*/ - node.whenTrue - ); - emitBreak(resultLabel); - markLabel(whenFalseLabel); - emitAssignment( - resultLocal, - Debug.checkDefined(visitNode(node.whenFalse, visitor, isExpression)), - /*location*/ - node.whenFalse - ); - markLabel(resultLabel); - return resultLocal; - } - return visitEachChild(node, visitor, context); - } - function visitYieldExpression(node) { - const resumeLabel = defineLabel(); - const expression = visitNode(node.expression, visitor, isExpression); - if (node.asteriskToken) { - const iterator = (getEmitFlags(node.expression) & 8388608 /* Iterator */) === 0 ? setTextRange(emitHelpers().createValuesHelper(expression), node) : expression; - emitYieldStar( - iterator, - /*location*/ - node - ); - } else { - emitYield( - expression, - /*location*/ - node - ); - } - markLabel(resumeLabel); - return createGeneratorResume( - /*location*/ - node - ); - } - function visitArrayLiteralExpression(node) { - return visitElements( - node.elements, - /*leadingElement*/ - void 0, - /*location*/ - void 0, - node.multiLine - ); - } - function visitElements(elements, leadingElement, location, multiLine) { - const numInitialElements = countInitialNodesWithoutYield(elements); - let temp; - if (numInitialElements > 0) { - temp = declareLocal(); - const initialElements = visitNodes2(elements, visitor, isExpression, 0, numInitialElements); - emitAssignment( - temp, - factory2.createArrayLiteralExpression( - leadingElement ? [leadingElement, ...initialElements] : initialElements - ) - ); - leadingElement = void 0; - } - const expressions = reduceLeft(elements, reduceElement, [], numInitialElements); - return temp ? factory2.createArrayConcatCall(temp, [factory2.createArrayLiteralExpression(expressions, multiLine)]) : setTextRange( - factory2.createArrayLiteralExpression(leadingElement ? [leadingElement, ...expressions] : expressions, multiLine), - location - ); - function reduceElement(expressions2, element) { - if (containsYield(element) && expressions2.length > 0) { - const hasAssignedTemp = temp !== void 0; - if (!temp) { - temp = declareLocal(); - } - emitAssignment( - temp, - hasAssignedTemp ? factory2.createArrayConcatCall( - temp, - [factory2.createArrayLiteralExpression(expressions2, multiLine)] - ) : factory2.createArrayLiteralExpression( - leadingElement ? [leadingElement, ...expressions2] : expressions2, - multiLine - ) - ); - leadingElement = void 0; - expressions2 = []; - } - expressions2.push(Debug.checkDefined(visitNode(element, visitor, isExpression))); - return expressions2; - } - } - function visitObjectLiteralExpression(node) { - const properties = node.properties; - const multiLine = node.multiLine; - const numInitialProperties = countInitialNodesWithoutYield(properties); - const temp = declareLocal(); - emitAssignment( - temp, - factory2.createObjectLiteralExpression( - visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), - multiLine - ) - ); - const expressions = reduceLeft(properties, reduceProperty, [], numInitialProperties); - expressions.push(multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp); - return factory2.inlineExpressions(expressions); - function reduceProperty(expressions2, property) { - if (containsYield(property) && expressions2.length > 0) { - emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(expressions2))); - expressions2 = []; - } - const expression = createExpressionForObjectLiteralElementLike(factory2, node, property, temp); - const visited = visitNode(expression, visitor, isExpression); - if (visited) { - if (multiLine) { - startOnNewLine(visited); - } - expressions2.push(visited); - } - return expressions2; - } - } - function visitElementAccessExpression(node) { - if (containsYield(node.argumentExpression)) { - return factory2.updateElementAccessExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression))), Debug.checkDefined(visitNode(node.argumentExpression, visitor, isExpression))); - } - return visitEachChild(node, visitor, context); - } - function visitCallExpression(node) { - if (!isImportCall(node) && forEach(node.arguments, containsYield)) { - const { target, thisArg } = factory2.createCallBinding( - node.expression, - hoistVariableDeclaration, - languageVersion, - /*cacheIdentifiers*/ - true - ); - return setOriginalNode( - setTextRange( - factory2.createFunctionApplyCall( - cacheExpression(Debug.checkDefined(visitNode(target, visitor, isLeftHandSideExpression))), - thisArg, - visitElements(node.arguments) - ), - node - ), - node - ); - } - return visitEachChild(node, visitor, context); - } - function visitNewExpression(node) { - if (forEach(node.arguments, containsYield)) { - const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, "bind"), hoistVariableDeclaration); - return setOriginalNode( - setTextRange( - factory2.createNewExpression( - factory2.createFunctionApplyCall( - cacheExpression(Debug.checkDefined(visitNode(target, visitor, isExpression))), - thisArg, - visitElements( - node.arguments, - /*leadingElement*/ - factory2.createVoidZero() - ) - ), - /*typeArguments*/ - void 0, - [] - ), - node - ), - node - ); - } - return visitEachChild(node, visitor, context); - } - function transformAndEmitStatements(statements2, start = 0) { - const numStatements = statements2.length; - for (let i = start; i < numStatements; i++) { - transformAndEmitStatement(statements2[i]); - } - } - function transformAndEmitEmbeddedStatement(node) { - if (isBlock(node)) { - transformAndEmitStatements(node.statements); - } else { - transformAndEmitStatement(node); - } - } - function transformAndEmitStatement(node) { - const savedInStatementContainingYield = inStatementContainingYield; - if (!inStatementContainingYield) { - inStatementContainingYield = containsYield(node); - } - transformAndEmitStatementWorker(node); - inStatementContainingYield = savedInStatementContainingYield; - } - function transformAndEmitStatementWorker(node) { - switch (node.kind) { - case 241 /* Block */: - return transformAndEmitBlock(node); - case 244 /* ExpressionStatement */: - return transformAndEmitExpressionStatement(node); - case 245 /* IfStatement */: - return transformAndEmitIfStatement(node); - case 246 /* DoStatement */: - return transformAndEmitDoStatement(node); - case 247 /* WhileStatement */: - return transformAndEmitWhileStatement(node); - case 248 /* ForStatement */: - return transformAndEmitForStatement(node); - case 249 /* ForInStatement */: - return transformAndEmitForInStatement(node); - case 251 /* ContinueStatement */: - return transformAndEmitContinueStatement(node); - case 252 /* BreakStatement */: - return transformAndEmitBreakStatement(node); - case 253 /* ReturnStatement */: - return transformAndEmitReturnStatement(node); - case 254 /* WithStatement */: - return transformAndEmitWithStatement(node); - case 255 /* SwitchStatement */: - return transformAndEmitSwitchStatement(node); - case 256 /* LabeledStatement */: - return transformAndEmitLabeledStatement(node); - case 257 /* ThrowStatement */: - return transformAndEmitThrowStatement(node); - case 258 /* TryStatement */: - return transformAndEmitTryStatement(node); - default: - return emitStatement(visitNode(node, visitor, isStatement)); - } - } - function transformAndEmitBlock(node) { - if (containsYield(node)) { - transformAndEmitStatements(node.statements); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function transformAndEmitExpressionStatement(node) { - emitStatement(visitNode(node, visitor, isStatement)); - } - function transformAndEmitVariableDeclarationList(node) { - for (const variable of node.declarations) { - const name = factory2.cloneNode(variable.name); - setCommentRange(name, variable.name); - hoistVariableDeclaration(name); - } - const variables = getInitializedVariables(node); - const numVariables = variables.length; - let variablesWritten = 0; - let pendingExpressions = []; - while (variablesWritten < numVariables) { - for (let i = variablesWritten; i < numVariables; i++) { - const variable = variables[i]; - if (containsYield(variable.initializer) && pendingExpressions.length > 0) { - break; - } - pendingExpressions.push(transformInitializedVariable(variable)); - } - if (pendingExpressions.length) { - emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))); - variablesWritten += pendingExpressions.length; - pendingExpressions = []; - } - } - return void 0; - } - function transformInitializedVariable(node) { - return setSourceMapRange( - factory2.createAssignment( - setSourceMapRange(factory2.cloneNode(node.name), node.name), - Debug.checkDefined(visitNode(node.initializer, visitor, isExpression)) - ), - node - ); - } - function transformAndEmitIfStatement(node) { - if (containsYield(node)) { - if (containsYield(node.thenStatement) || containsYield(node.elseStatement)) { - const endLabel = defineLabel(); - const elseLabel = node.elseStatement ? defineLabel() : void 0; - emitBreakWhenFalse( - node.elseStatement ? elseLabel : endLabel, - Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), - /*location*/ - node.expression - ); - transformAndEmitEmbeddedStatement(node.thenStatement); - if (node.elseStatement) { - emitBreak(endLabel); - markLabel(elseLabel); - transformAndEmitEmbeddedStatement(node.elseStatement); - } - markLabel(endLabel); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function transformAndEmitDoStatement(node) { - if (containsYield(node)) { - const conditionLabel = defineLabel(); - const loopLabel = defineLabel(); - beginLoopBlock( - /*continueLabel*/ - conditionLabel - ); - markLabel(loopLabel); - transformAndEmitEmbeddedStatement(node.statement); - markLabel(conditionLabel); - emitBreakWhenTrue(loopLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); - endLoopBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitDoStatement(node) { - if (inStatementContainingYield) { - beginScriptLoopBlock(); - node = visitEachChild(node, visitor, context); - endLoopBlock(); - return node; - } else { - return visitEachChild(node, visitor, context); - } - } - function transformAndEmitWhileStatement(node) { - if (containsYield(node)) { - const loopLabel = defineLabel(); - const endLabel = beginLoopBlock(loopLabel); - markLabel(loopLabel); - emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); - transformAndEmitEmbeddedStatement(node.statement); - emitBreak(loopLabel); - endLoopBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitWhileStatement(node) { - if (inStatementContainingYield) { - beginScriptLoopBlock(); - node = visitEachChild(node, visitor, context); - endLoopBlock(); - return node; - } else { - return visitEachChild(node, visitor, context); - } - } - function transformAndEmitForStatement(node) { - if (containsYield(node)) { - const conditionLabel = defineLabel(); - const incrementLabel = defineLabel(); - const endLabel = beginLoopBlock(incrementLabel); - if (node.initializer) { - const initializer = node.initializer; - if (isVariableDeclarationList(initializer)) { - transformAndEmitVariableDeclarationList(initializer); - } else { - emitStatement( - setTextRange( - factory2.createExpressionStatement( - Debug.checkDefined(visitNode(initializer, visitor, isExpression)) - ), - initializer - ) - ); - } - } - markLabel(conditionLabel); - if (node.condition) { - emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.condition, visitor, isExpression))); - } - transformAndEmitEmbeddedStatement(node.statement); - markLabel(incrementLabel); - if (node.incrementor) { - emitStatement( - setTextRange( - factory2.createExpressionStatement( - Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression)) - ), - node.incrementor - ) - ); - } - emitBreak(conditionLabel); - endLoopBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitForStatement(node) { - if (inStatementContainingYield) { - beginScriptLoopBlock(); - } - const initializer = node.initializer; - if (initializer && isVariableDeclarationList(initializer)) { - for (const variable of initializer.declarations) { - hoistVariableDeclaration(variable.name); - } - const variables = getInitializedVariables(initializer); - node = factory2.updateForStatement( - node, - variables.length > 0 ? factory2.inlineExpressions(map(variables, transformInitializedVariable)) : void 0, - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, visitor, isExpression), - visitIterationBody(node.statement, visitor, context) - ); - } else { - node = visitEachChild(node, visitor, context); - } - if (inStatementContainingYield) { - endLoopBlock(); - } - return node; - } - function transformAndEmitForInStatement(node) { - if (containsYield(node)) { - const obj = declareLocal(); - const keysArray = declareLocal(); - const key = declareLocal(); - const keysIndex = factory2.createLoopVariable(); - const initializer = node.initializer; - hoistVariableDeclaration(keysIndex); - emitAssignment(obj, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); - emitAssignment(keysArray, factory2.createArrayLiteralExpression()); - emitStatement( - factory2.createForInStatement( - key, - obj, - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(keysArray, "push"), - /*typeArguments*/ - void 0, - [key] - ) - ) - ) - ); - emitAssignment(keysIndex, factory2.createNumericLiteral(0)); - const conditionLabel = defineLabel(); - const incrementLabel = defineLabel(); - const endLoopLabel = beginLoopBlock(incrementLabel); - markLabel(conditionLabel); - emitBreakWhenFalse(endLoopLabel, factory2.createLessThan(keysIndex, factory2.createPropertyAccessExpression(keysArray, "length"))); - emitAssignment(key, factory2.createElementAccessExpression(keysArray, keysIndex)); - emitBreakWhenFalse(incrementLabel, factory2.createBinaryExpression(key, 103 /* InKeyword */, obj)); - let variable; - if (isVariableDeclarationList(initializer)) { - for (const variable2 of initializer.declarations) { - hoistVariableDeclaration(variable2.name); - } - variable = factory2.cloneNode(initializer.declarations[0].name); - } else { - variable = Debug.checkDefined(visitNode(initializer, visitor, isExpression)); - Debug.assert(isLeftHandSideExpression(variable)); - } - emitAssignment(variable, key); - transformAndEmitEmbeddedStatement(node.statement); - markLabel(incrementLabel); - emitStatement(factory2.createExpressionStatement(factory2.createPostfixIncrement(keysIndex))); - emitBreak(conditionLabel); - endLoopBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitForInStatement(node) { - if (inStatementContainingYield) { - beginScriptLoopBlock(); - } - const initializer = node.initializer; - if (isVariableDeclarationList(initializer)) { - for (const variable of initializer.declarations) { - hoistVariableDeclaration(variable.name); - } - node = factory2.updateForInStatement(node, initializer.declarations[0].name, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock))); - } else { - node = visitEachChild(node, visitor, context); - } - if (inStatementContainingYield) { - endLoopBlock(); - } - return node; - } - function transformAndEmitContinueStatement(node) { - const label = findContinueTarget(node.label ? idText(node.label) : void 0); - if (label > 0) { - emitBreak( - label, - /*location*/ - node - ); - } else { - emitStatement(node); - } - } - function visitContinueStatement(node) { - if (inStatementContainingYield) { - const label = findContinueTarget(node.label && idText(node.label)); - if (label > 0) { - return createInlineBreak( - label, - /*location*/ - node - ); - } - } - return visitEachChild(node, visitor, context); - } - function transformAndEmitBreakStatement(node) { - const label = findBreakTarget(node.label ? idText(node.label) : void 0); - if (label > 0) { - emitBreak( - label, - /*location*/ - node - ); - } else { - emitStatement(node); - } - } - function visitBreakStatement(node) { - if (inStatementContainingYield) { - const label = findBreakTarget(node.label && idText(node.label)); - if (label > 0) { - return createInlineBreak( - label, - /*location*/ - node - ); - } - } - return visitEachChild(node, visitor, context); - } - function transformAndEmitReturnStatement(node) { - emitReturn( - visitNode(node.expression, visitor, isExpression), - /*location*/ - node - ); - } - function visitReturnStatement(node) { - return createInlineReturn( - visitNode(node.expression, visitor, isExpression), - /*location*/ - node - ); - } - function transformAndEmitWithStatement(node) { - if (containsYield(node)) { - beginWithBlock(cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression)))); - transformAndEmitEmbeddedStatement(node.statement); - endWithBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function transformAndEmitSwitchStatement(node) { - if (containsYield(node.caseBlock)) { - const caseBlock = node.caseBlock; - const numClauses = caseBlock.clauses.length; - const endLabel = beginSwitchBlock(); - const expression = cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); - const clauseLabels = []; - let defaultClauseIndex = -1; - for (let i = 0; i < numClauses; i++) { - const clause = caseBlock.clauses[i]; - clauseLabels.push(defineLabel()); - if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { - defaultClauseIndex = i; - } - } - let clausesWritten = 0; - let pendingClauses = []; - while (clausesWritten < numClauses) { - let defaultClausesSkipped = 0; - for (let i = clausesWritten; i < numClauses; i++) { - const clause = caseBlock.clauses[i]; - if (clause.kind === 296 /* CaseClause */) { - if (containsYield(clause.expression) && pendingClauses.length > 0) { - break; - } - pendingClauses.push( - factory2.createCaseClause( - Debug.checkDefined(visitNode(clause.expression, visitor, isExpression)), - [ - createInlineBreak( - clauseLabels[i], - /*location*/ - clause.expression - ) - ] - ) - ); - } else { - defaultClausesSkipped++; - } - } - if (pendingClauses.length) { - emitStatement(factory2.createSwitchStatement(expression, factory2.createCaseBlock(pendingClauses))); - clausesWritten += pendingClauses.length; - pendingClauses = []; - } - if (defaultClausesSkipped > 0) { - clausesWritten += defaultClausesSkipped; - defaultClausesSkipped = 0; - } - } - if (defaultClauseIndex >= 0) { - emitBreak(clauseLabels[defaultClauseIndex]); - } else { - emitBreak(endLabel); - } - for (let i = 0; i < numClauses; i++) { - markLabel(clauseLabels[i]); - transformAndEmitStatements(caseBlock.clauses[i].statements); - } - endSwitchBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitSwitchStatement(node) { - if (inStatementContainingYield) { - beginScriptSwitchBlock(); - } - node = visitEachChild(node, visitor, context); - if (inStatementContainingYield) { - endSwitchBlock(); - } - return node; - } - function transformAndEmitLabeledStatement(node) { - if (containsYield(node)) { - beginLabeledBlock(idText(node.label)); - transformAndEmitEmbeddedStatement(node.statement); - endLabeledBlock(); - } else { - emitStatement(visitNode(node, visitor, isStatement)); - } - } - function visitLabeledStatement(node) { - if (inStatementContainingYield) { - beginScriptLabeledBlock(idText(node.label)); - } - node = visitEachChild(node, visitor, context); - if (inStatementContainingYield) { - endLabeledBlock(); - } - return node; - } - function transformAndEmitThrowStatement(node) { - emitThrow( - Debug.checkDefined(visitNode(node.expression ?? factory2.createVoidZero(), visitor, isExpression)), - /*location*/ - node - ); - } - function transformAndEmitTryStatement(node) { - if (containsYield(node)) { - beginExceptionBlock(); - transformAndEmitEmbeddedStatement(node.tryBlock); - if (node.catchClause) { - beginCatchBlock(node.catchClause.variableDeclaration); - transformAndEmitEmbeddedStatement(node.catchClause.block); - } - if (node.finallyBlock) { - beginFinallyBlock(); - transformAndEmitEmbeddedStatement(node.finallyBlock); - } - endExceptionBlock(); - } else { - emitStatement(visitEachChild(node, visitor, context)); - } - } - function containsYield(node) { - return !!node && (node.transformFlags & 1048576 /* ContainsYield */) !== 0; - } - function countInitialNodesWithoutYield(nodes) { - const numNodes = nodes.length; - for (let i = 0; i < numNodes; i++) { - if (containsYield(nodes[i])) { - return i; - } - } - return -1; - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } - return node; - } - function substituteExpression(node) { - if (isIdentifier(node)) { - return substituteExpressionIdentifier(node); - } - return node; - } - function substituteExpressionIdentifier(node) { - if (!isGeneratedIdentifier(node) && renamedCatchVariables && renamedCatchVariables.has(idText(node))) { - const original = getOriginalNode(node); - if (isIdentifier(original) && original.parent) { - const declaration = resolver.getReferencedValueDeclaration(original); - if (declaration) { - const name = renamedCatchVariableDeclarations[getOriginalNodeId(declaration)]; - if (name) { - const clone = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); - setSourceMapRange(clone, node); - setCommentRange(clone, node); - return clone; - } - } - } - } - return node; - } - function cacheExpression(node) { - if (isGeneratedIdentifier(node) || getEmitFlags(node) & 8192 /* HelperName */) { - return node; - } - const temp = factory2.createTempVariable(hoistVariableDeclaration); - emitAssignment( - temp, - node, - /*location*/ - node - ); - return temp; - } - function declareLocal(name) { - const temp = name ? factory2.createUniqueName(name) : factory2.createTempVariable( - /*recordTempVariable*/ - void 0 - ); - hoistVariableDeclaration(temp); - return temp; - } - function defineLabel() { - if (!labelOffsets) { - labelOffsets = []; - } - const label = nextLabelId; - nextLabelId++; - labelOffsets[label] = -1; - return label; - } - function markLabel(label) { - Debug.assert(labelOffsets !== void 0, "No labels were defined."); - labelOffsets[label] = operations ? operations.length : 0; - } - function beginBlock(block) { - if (!blocks) { - blocks = []; - blockActions = []; - blockOffsets = []; - blockStack = []; - } - const index = blockActions.length; - blockActions[index] = 0 /* Open */; - blockOffsets[index] = operations ? operations.length : 0; - blocks[index] = block; - blockStack.push(block); - return index; - } - function endBlock() { - const block = peekBlock(); - if (block === void 0) return Debug.fail("beginBlock was never called."); - const index = blockActions.length; - blockActions[index] = 1 /* Close */; - blockOffsets[index] = operations ? operations.length : 0; - blocks[index] = block; - blockStack.pop(); - return block; - } - function peekBlock() { - return lastOrUndefined(blockStack); - } - function peekBlockKind() { - const block = peekBlock(); - return block && block.kind; - } - function beginWithBlock(expression) { - const startLabel = defineLabel(); - const endLabel = defineLabel(); - markLabel(startLabel); - beginBlock({ - kind: 1 /* With */, - expression, - startLabel, - endLabel - }); - } - function endWithBlock() { - Debug.assert(peekBlockKind() === 1 /* With */); - const block = endBlock(); - markLabel(block.endLabel); - } - function beginExceptionBlock() { - const startLabel = defineLabel(); - const endLabel = defineLabel(); - markLabel(startLabel); - beginBlock({ - kind: 0 /* Exception */, - state: 0 /* Try */, - startLabel, - endLabel - }); - emitNop(); - return endLabel; - } - function beginCatchBlock(variable) { - Debug.assert(peekBlockKind() === 0 /* Exception */); - let name; - if (isGeneratedIdentifier(variable.name)) { - name = variable.name; - hoistVariableDeclaration(variable.name); - } else { - const text = idText(variable.name); - name = declareLocal(text); - if (!renamedCatchVariables) { - renamedCatchVariables = /* @__PURE__ */ new Map(); - renamedCatchVariableDeclarations = []; - context.enableSubstitution(80 /* Identifier */); - } - renamedCatchVariables.set(text, true); - renamedCatchVariableDeclarations[getOriginalNodeId(variable)] = name; - } - const exception = peekBlock(); - Debug.assert(exception.state < 1 /* Catch */); - const endLabel = exception.endLabel; - emitBreak(endLabel); - const catchLabel = defineLabel(); - markLabel(catchLabel); - exception.state = 1 /* Catch */; - exception.catchVariable = name; - exception.catchLabel = catchLabel; - emitAssignment(name, factory2.createCallExpression( - factory2.createPropertyAccessExpression(state, "sent"), - /*typeArguments*/ - void 0, - [] - )); - emitNop(); - } - function beginFinallyBlock() { - Debug.assert(peekBlockKind() === 0 /* Exception */); - const exception = peekBlock(); - Debug.assert(exception.state < 2 /* Finally */); - const endLabel = exception.endLabel; - emitBreak(endLabel); - const finallyLabel = defineLabel(); - markLabel(finallyLabel); - exception.state = 2 /* Finally */; - exception.finallyLabel = finallyLabel; - } - function endExceptionBlock() { - Debug.assert(peekBlockKind() === 0 /* Exception */); - const exception = endBlock(); - const state2 = exception.state; - if (state2 < 2 /* Finally */) { - emitBreak(exception.endLabel); - } else { - emitEndfinally(); - } - markLabel(exception.endLabel); - emitNop(); - exception.state = 3 /* Done */; - } - function beginScriptLoopBlock() { - beginBlock({ - kind: 3 /* Loop */, - isScript: true, - breakLabel: -1, - continueLabel: -1 - }); - } - function beginLoopBlock(continueLabel) { - const breakLabel = defineLabel(); - beginBlock({ - kind: 3 /* Loop */, - isScript: false, - breakLabel, - continueLabel - }); - return breakLabel; - } - function endLoopBlock() { - Debug.assert(peekBlockKind() === 3 /* Loop */); - const block = endBlock(); - const breakLabel = block.breakLabel; - if (!block.isScript) { - markLabel(breakLabel); - } - } - function beginScriptSwitchBlock() { - beginBlock({ - kind: 2 /* Switch */, - isScript: true, - breakLabel: -1 - }); - } - function beginSwitchBlock() { - const breakLabel = defineLabel(); - beginBlock({ - kind: 2 /* Switch */, - isScript: false, - breakLabel - }); - return breakLabel; - } - function endSwitchBlock() { - Debug.assert(peekBlockKind() === 2 /* Switch */); - const block = endBlock(); - const breakLabel = block.breakLabel; - if (!block.isScript) { - markLabel(breakLabel); - } - } - function beginScriptLabeledBlock(labelText) { - beginBlock({ - kind: 4 /* Labeled */, - isScript: true, - labelText, - breakLabel: -1 - }); - } - function beginLabeledBlock(labelText) { - const breakLabel = defineLabel(); - beginBlock({ - kind: 4 /* Labeled */, - isScript: false, - labelText, - breakLabel - }); - } - function endLabeledBlock() { - Debug.assert(peekBlockKind() === 4 /* Labeled */); - const block = endBlock(); - if (!block.isScript) { - markLabel(block.breakLabel); - } - } - function supportsUnlabeledBreak(block) { - return block.kind === 2 /* Switch */ || block.kind === 3 /* Loop */; - } - function supportsLabeledBreakOrContinue(block) { - return block.kind === 4 /* Labeled */; - } - function supportsUnlabeledContinue(block) { - return block.kind === 3 /* Loop */; - } - function hasImmediateContainingLabeledBlock(labelText, start) { - for (let j = start; j >= 0; j--) { - const containingBlock = blockStack[j]; - if (supportsLabeledBreakOrContinue(containingBlock)) { - if (containingBlock.labelText === labelText) { - return true; - } - } else { - break; - } - } - return false; - } - function findBreakTarget(labelText) { - if (blockStack) { - if (labelText) { - for (let i = blockStack.length - 1; i >= 0; i--) { - const block = blockStack[i]; - if (supportsLabeledBreakOrContinue(block) && block.labelText === labelText) { - return block.breakLabel; - } else if (supportsUnlabeledBreak(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) { - return block.breakLabel; - } - } - } else { - for (let i = blockStack.length - 1; i >= 0; i--) { - const block = blockStack[i]; - if (supportsUnlabeledBreak(block)) { - return block.breakLabel; - } - } - } - } - return 0; - } - function findContinueTarget(labelText) { - if (blockStack) { - if (labelText) { - for (let i = blockStack.length - 1; i >= 0; i--) { - const block = blockStack[i]; - if (supportsUnlabeledContinue(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) { - return block.continueLabel; - } - } - } else { - for (let i = blockStack.length - 1; i >= 0; i--) { - const block = blockStack[i]; - if (supportsUnlabeledContinue(block)) { - return block.continueLabel; - } - } - } - } - return 0; - } - function createLabel(label) { - if (label !== void 0 && label > 0) { - if (labelExpressions === void 0) { - labelExpressions = []; - } - const expression = factory2.createNumericLiteral(Number.MAX_SAFE_INTEGER); - if (labelExpressions[label] === void 0) { - labelExpressions[label] = [expression]; - } else { - labelExpressions[label].push(expression); - } - return expression; - } - return factory2.createOmittedExpression(); - } - function createInstruction(instruction) { - const literal = factory2.createNumericLiteral(instruction); - addSyntheticTrailingComment(literal, 3 /* MultiLineCommentTrivia */, getInstructionName(instruction)); - return literal; - } - function createInlineBreak(label, location) { - Debug.assertLessThan(0, label, "Invalid label"); - return setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(3 /* Break */), - createLabel(label) - ]) - ), - location - ); - } - function createInlineReturn(expression, location) { - return setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression( - expression ? [createInstruction(2 /* Return */), expression] : [createInstruction(2 /* Return */)] - ) - ), - location - ); - } - function createGeneratorResume(location) { - return setTextRange( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(state, "sent"), - /*typeArguments*/ - void 0, - [] - ), - location - ); - } - function emitNop() { - emitWorker(0 /* Nop */); - } - function emitStatement(node) { - if (node) { - emitWorker(1 /* Statement */, [node]); - } else { - emitNop(); - } - } - function emitAssignment(left, right, location) { - emitWorker(2 /* Assign */, [left, right], location); - } - function emitBreak(label, location) { - emitWorker(3 /* Break */, [label], location); - } - function emitBreakWhenTrue(label, condition, location) { - emitWorker(4 /* BreakWhenTrue */, [label, condition], location); - } - function emitBreakWhenFalse(label, condition, location) { - emitWorker(5 /* BreakWhenFalse */, [label, condition], location); - } - function emitYieldStar(expression, location) { - emitWorker(7 /* YieldStar */, [expression], location); - } - function emitYield(expression, location) { - emitWorker(6 /* Yield */, [expression], location); - } - function emitReturn(expression, location) { - emitWorker(8 /* Return */, [expression], location); - } - function emitThrow(expression, location) { - emitWorker(9 /* Throw */, [expression], location); - } - function emitEndfinally() { - emitWorker(10 /* Endfinally */); - } - function emitWorker(code, args, location) { - if (operations === void 0) { - operations = []; - operationArguments = []; - operationLocations = []; - } - if (labelOffsets === void 0) { - markLabel(defineLabel()); - } - const operationIndex = operations.length; - operations[operationIndex] = code; - operationArguments[operationIndex] = args; - operationLocations[operationIndex] = location; - } - function build2() { - blockIndex = 0; - labelNumber = 0; - labelNumbers = void 0; - lastOperationWasAbrupt = false; - lastOperationWasCompletion = false; - clauses = void 0; - statements = void 0; - exceptionBlockStack = void 0; - currentExceptionBlock = void 0; - withBlockStack = void 0; - const buildResult = buildStatements(); - return emitHelpers().createGeneratorHelper( - setEmitFlags( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - state - )], - /*type*/ - void 0, - factory2.createBlock( - buildResult, - /*multiLine*/ - buildResult.length > 0 - ) - ), - 1048576 /* ReuseTempVariableScope */ - ) - ); - } - function buildStatements() { - if (operations) { - for (let operationIndex = 0; operationIndex < operations.length; operationIndex++) { - writeOperation(operationIndex); - } - flushFinalLabel(operations.length); - } else { - flushFinalLabel(0); - } - if (clauses) { - const labelExpression = factory2.createPropertyAccessExpression(state, "label"); - const switchStatement = factory2.createSwitchStatement(labelExpression, factory2.createCaseBlock(clauses)); - return [startOnNewLine(switchStatement)]; - } - if (statements) { - return statements; - } - return []; - } - function flushLabel() { - if (!statements) { - return; - } - appendLabel( - /*markLabelEnd*/ - !lastOperationWasAbrupt - ); - lastOperationWasAbrupt = false; - lastOperationWasCompletion = false; - labelNumber++; - } - function flushFinalLabel(operationIndex) { - if (isFinalLabelReachable(operationIndex)) { - tryEnterLabel(operationIndex); - withBlockStack = void 0; - writeReturn( - /*expression*/ - void 0, - /*operationLocation*/ - void 0 - ); - } - if (statements && clauses) { - appendLabel( - /*markLabelEnd*/ - false - ); - } - updateLabelExpressions(); - } - function isFinalLabelReachable(operationIndex) { - if (!lastOperationWasCompletion) { - return true; - } - if (!labelOffsets || !labelExpressions) { - return false; - } - for (let label = 0; label < labelOffsets.length; label++) { - if (labelOffsets[label] === operationIndex && labelExpressions[label]) { - return true; - } - } - return false; - } - function appendLabel(markLabelEnd) { - if (!clauses) { - clauses = []; - } - if (statements) { - if (withBlockStack) { - for (let i = withBlockStack.length - 1; i >= 0; i--) { - const withBlock = withBlockStack[i]; - statements = [factory2.createWithStatement(withBlock.expression, factory2.createBlock(statements))]; - } - } - if (currentExceptionBlock) { - const { startLabel, catchLabel, finallyLabel, endLabel } = currentExceptionBlock; - statements.unshift( - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createPropertyAccessExpression(state, "trys"), "push"), - /*typeArguments*/ - void 0, - [ - factory2.createArrayLiteralExpression([ - createLabel(startLabel), - createLabel(catchLabel), - createLabel(finallyLabel), - createLabel(endLabel) - ]) - ] - ) - ) - ); - currentExceptionBlock = void 0; - } - if (markLabelEnd) { - statements.push( - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression(state, "label"), - factory2.createNumericLiteral(labelNumber + 1) - ) - ) - ); - } - } - clauses.push( - factory2.createCaseClause( - factory2.createNumericLiteral(labelNumber), - statements || [] - ) - ); - statements = void 0; - } - function tryEnterLabel(operationIndex) { - if (!labelOffsets) { - return; - } - for (let label = 0; label < labelOffsets.length; label++) { - if (labelOffsets[label] === operationIndex) { - flushLabel(); - if (labelNumbers === void 0) { - labelNumbers = []; - } - if (labelNumbers[labelNumber] === void 0) { - labelNumbers[labelNumber] = [label]; - } else { - labelNumbers[labelNumber].push(label); - } - } - } - } - function updateLabelExpressions() { - if (labelExpressions !== void 0 && labelNumbers !== void 0) { - for (let labelNumber2 = 0; labelNumber2 < labelNumbers.length; labelNumber2++) { - const labels = labelNumbers[labelNumber2]; - if (labels !== void 0) { - for (const label of labels) { - const expressions = labelExpressions[label]; - if (expressions !== void 0) { - for (const expression of expressions) { - expression.text = String(labelNumber2); - } - } - } - } - } - } - } - function tryEnterOrLeaveBlock(operationIndex) { - if (blocks) { - for (; blockIndex < blockActions.length && blockOffsets[blockIndex] <= operationIndex; blockIndex++) { - const block = blocks[blockIndex]; - const blockAction = blockActions[blockIndex]; - switch (block.kind) { - case 0 /* Exception */: - if (blockAction === 0 /* Open */) { - if (!exceptionBlockStack) { - exceptionBlockStack = []; - } - if (!statements) { - statements = []; - } - exceptionBlockStack.push(currentExceptionBlock); - currentExceptionBlock = block; - } else if (blockAction === 1 /* Close */) { - currentExceptionBlock = exceptionBlockStack.pop(); - } - break; - case 1 /* With */: - if (blockAction === 0 /* Open */) { - if (!withBlockStack) { - withBlockStack = []; - } - withBlockStack.push(block); - } else if (blockAction === 1 /* Close */) { - withBlockStack.pop(); - } - break; - } - } - } - } - function writeOperation(operationIndex) { - tryEnterLabel(operationIndex); - tryEnterOrLeaveBlock(operationIndex); - if (lastOperationWasAbrupt) { - return; - } - lastOperationWasAbrupt = false; - lastOperationWasCompletion = false; - const opcode = operations[operationIndex]; - if (opcode === 0 /* Nop */) { - return; - } else if (opcode === 10 /* Endfinally */) { - return writeEndfinally(); - } - const args = operationArguments[operationIndex]; - if (opcode === 1 /* Statement */) { - return writeStatement(args[0]); - } - const location = operationLocations[operationIndex]; - switch (opcode) { - case 2 /* Assign */: - return writeAssign(args[0], args[1], location); - case 3 /* Break */: - return writeBreak(args[0], location); - case 4 /* BreakWhenTrue */: - return writeBreakWhenTrue(args[0], args[1], location); - case 5 /* BreakWhenFalse */: - return writeBreakWhenFalse(args[0], args[1], location); - case 6 /* Yield */: - return writeYield(args[0], location); - case 7 /* YieldStar */: - return writeYieldStar(args[0], location); - case 8 /* Return */: - return writeReturn(args[0], location); - case 9 /* Throw */: - return writeThrow(args[0], location); - } - } - function writeStatement(statement) { - if (statement) { - if (!statements) { - statements = [statement]; - } else { - statements.push(statement); - } - } - } - function writeAssign(left, right, operationLocation) { - writeStatement(setTextRange(factory2.createExpressionStatement(factory2.createAssignment(left, right)), operationLocation)); - } - function writeThrow(expression, operationLocation) { - lastOperationWasAbrupt = true; - lastOperationWasCompletion = true; - writeStatement(setTextRange(factory2.createThrowStatement(expression), operationLocation)); - } - function writeReturn(expression, operationLocation) { - lastOperationWasAbrupt = true; - lastOperationWasCompletion = true; - writeStatement( - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression( - expression ? [createInstruction(2 /* Return */), expression] : [createInstruction(2 /* Return */)] - ) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ); - } - function writeBreak(label, operationLocation) { - lastOperationWasAbrupt = true; - writeStatement( - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(3 /* Break */), - createLabel(label) - ]) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ); - } - function writeBreakWhenTrue(label, condition, operationLocation) { - writeStatement( - setEmitFlags( - factory2.createIfStatement( - condition, - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(3 /* Break */), - createLabel(label) - ]) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ), - 1 /* SingleLine */ - ) - ); - } - function writeBreakWhenFalse(label, condition, operationLocation) { - writeStatement( - setEmitFlags( - factory2.createIfStatement( - factory2.createLogicalNot(condition), - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(3 /* Break */), - createLabel(label) - ]) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ), - 1 /* SingleLine */ - ) - ); - } - function writeYield(expression, operationLocation) { - lastOperationWasAbrupt = true; - writeStatement( - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression( - expression ? [createInstruction(4 /* Yield */), expression] : [createInstruction(4 /* Yield */)] - ) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ); - } - function writeYieldStar(expression, operationLocation) { - lastOperationWasAbrupt = true; - writeStatement( - setEmitFlags( - setTextRange( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(5 /* YieldStar */), - expression - ]) - ), - operationLocation - ), - 768 /* NoTokenSourceMaps */ - ) - ); - } - function writeEndfinally() { - lastOperationWasAbrupt = true; - writeStatement( - factory2.createReturnStatement( - factory2.createArrayLiteralExpression([ - createInstruction(7 /* Endfinally */) - ]) - ) - ); - } -} - -// src/compiler/transformers/module/module.ts -function transformModule(context) { - function getTransformModuleDelegate(moduleKind2) { - switch (moduleKind2) { - case 2 /* AMD */: - return transformAMDModule; - case 3 /* UMD */: - return transformUMDModule; - default: - return transformCommonJSModule; - } - } - const { - factory: factory2, - getEmitHelperFactory: emitHelpers, - startLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const compilerOptions = context.getCompilerOptions(); - const resolver = context.getEmitResolver(); - const host = context.getEmitHost(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const moduleKind = getEmitModuleKind(compilerOptions); - const previousOnSubstituteNode = context.onSubstituteNode; - const previousOnEmitNode = context.onEmitNode; - context.onSubstituteNode = onSubstituteNode; - context.onEmitNode = onEmitNode; - context.enableSubstitution(213 /* CallExpression */); - context.enableSubstitution(215 /* TaggedTemplateExpression */); - context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(226 /* BinaryExpression */); - context.enableSubstitution(304 /* ShorthandPropertyAssignment */); - context.enableEmitNotification(307 /* SourceFile */); - const moduleInfoMap = []; - let currentSourceFile; - let currentModuleInfo; - let importsAndRequiresToRewriteOrShim; - const noSubstitution = []; - let needUMDDynamicImportHelper; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608 /* ContainsDynamicImport */ || isJsonSourceFile(node) && hasJsonModuleEmitEnabled(compilerOptions) && compilerOptions.outFile)) { - return node; - } - currentSourceFile = node; - currentModuleInfo = collectExternalModuleInfo(context, node); - moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; - if (compilerOptions.rewriteRelativeImportExtensions) { - forEachDynamicImportOrRequireCall( - node, - /*includeTypeSpaceImports*/ - false, - /*requireStringLiteralLikeArgument*/ - false, - (node2) => { - if (!isStringLiteralLike(node2.arguments[0]) || shouldRewriteModuleSpecifier(node2.arguments[0].text, compilerOptions)) { - importsAndRequiresToRewriteOrShim = append(importsAndRequiresToRewriteOrShim, node2); - } - } - ); - } - const transformModule2 = getTransformModuleDelegate(moduleKind); - const updated = transformModule2(node); - currentSourceFile = void 0; - currentModuleInfo = void 0; - needUMDDynamicImportHelper = false; - return updated; - } - function shouldEmitUnderscoreUnderscoreESModule() { - if (hasJSFileExtension(currentSourceFile.fileName) && currentSourceFile.commonJsModuleIndicator && (!currentSourceFile.externalModuleIndicator || currentSourceFile.externalModuleIndicator === true)) { - return false; - } - if (!currentModuleInfo.exportEquals && isExternalModule(currentSourceFile)) { - return true; - } - return false; - } - function transformCommonJSModule(node) { - startLexicalEnvironment(); - const statements = []; - const ensureUseStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") || isExternalModule(currentSourceFile); - const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict && !isJsonSourceFile(node), topLevelVisitor); - if (shouldEmitUnderscoreUnderscoreESModule()) { - append(statements, createUnderscoreUnderscoreESModule()); - } - if (some(currentModuleInfo.exportedNames)) { - const chunkSize = 50; - for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) { - append( - statements, - factory2.createExpressionStatement( - reduceLeft( - currentModuleInfo.exportedNames.slice(i, i + chunkSize), - (prev, nextId) => nextId.kind === 11 /* StringLiteral */ ? factory2.createAssignment(factory2.createElementAccessExpression(factory2.createIdentifier("exports"), factory2.createStringLiteral(nextId.text)), prev) : factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), - factory2.createVoidZero() - ) - ) - ); - } - } - for (const f of currentModuleInfo.exportedFunctions) { - appendExportsOfHoistedDeclaration(statements, f); - } - append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement)); - addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset)); - addExportEqualsIfNeeded( - statements, - /*emitAsReturn*/ - false - ); - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - const updated = factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray(statements), node.statements)); - addEmitHelpers(updated, context.readEmitHelpers()); - return updated; - } - function transformAMDModule(node) { - const define = factory2.createIdentifier("define"); - const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); - const jsonSourceFile = isJsonSourceFile(node) && node; - const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies( - node, - /*includeNonAmdDependencies*/ - true - ); - const updated = factory2.updateSourceFile( - node, - setTextRange( - factory2.createNodeArray([ - factory2.createExpressionStatement( - factory2.createCallExpression( - define, - /*typeArguments*/ - void 0, - [ - // Add the module name (if provided). - ...moduleName ? [moduleName] : [], - // Add the dependency array argument: - // - // ["require", "exports", module1", "module2", ...] - factory2.createArrayLiteralExpression( - jsonSourceFile ? emptyArray : [ - factory2.createStringLiteral("require"), - factory2.createStringLiteral("exports"), - ...aliasedModuleNames, - ...unaliasedModuleNames - ] - ), - // Add the module body function argument: - // - // function (require, exports, module1, module2) ... - jsonSourceFile ? jsonSourceFile.statements.length ? jsonSourceFile.statements[0].expression : factory2.createObjectLiteralExpression() : factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "require" - ), - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "exports" - ), - ...importAliasNames - ], - /*type*/ - void 0, - transformAsynchronousModuleBody(node) - ) - ] - ) - ) - ]), - /*location*/ - node.statements - ) - ); - addEmitHelpers(updated, context.readEmitHelpers()); - return updated; - } - function transformUMDModule(node) { - const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies( - node, - /*includeNonAmdDependencies*/ - false - ); - const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); - const umdHeader = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "factory" - )], - /*type*/ - void 0, - setTextRange( - factory2.createBlock( - [ - factory2.createIfStatement( - factory2.createLogicalAnd( - factory2.createTypeCheck(factory2.createIdentifier("module"), "object"), - factory2.createTypeCheck(factory2.createPropertyAccessExpression(factory2.createIdentifier("module"), "exports"), "object") - ), - factory2.createBlock([ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - [ - factory2.createVariableDeclaration( - "v", - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createCallExpression( - factory2.createIdentifier("factory"), - /*typeArguments*/ - void 0, - [ - factory2.createIdentifier("require"), - factory2.createIdentifier("exports") - ] - ) - ) - ] - ), - setEmitFlags( - factory2.createIfStatement( - factory2.createStrictInequality( - factory2.createIdentifier("v"), - factory2.createIdentifier("undefined") - ), - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression(factory2.createIdentifier("module"), "exports"), - factory2.createIdentifier("v") - ) - ) - ), - 1 /* SingleLine */ - ) - ]), - factory2.createIfStatement( - factory2.createLogicalAnd( - factory2.createTypeCheck(factory2.createIdentifier("define"), "function"), - factory2.createPropertyAccessExpression(factory2.createIdentifier("define"), "amd") - ), - factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createIdentifier("define"), - /*typeArguments*/ - void 0, - [ - // Add the module name (if provided). - ...moduleName ? [moduleName] : [], - factory2.createArrayLiteralExpression([ - factory2.createStringLiteral("require"), - factory2.createStringLiteral("exports"), - ...aliasedModuleNames, - ...unaliasedModuleNames - ]), - factory2.createIdentifier("factory") - ] - ) - ) - ]) - ) - ) - ], - /*multiLine*/ - true - ), - /*location*/ - void 0 - ) - ); - const updated = factory2.updateSourceFile( - node, - setTextRange( - factory2.createNodeArray([ - factory2.createExpressionStatement( - factory2.createCallExpression( - umdHeader, - /*typeArguments*/ - void 0, - [ - // Add the module body function argument: - // - // function (require, exports) ... - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "require" - ), - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "exports" - ), - ...importAliasNames - ], - /*type*/ - void 0, - transformAsynchronousModuleBody(node) - ) - ] - ) - ) - ]), - /*location*/ - node.statements - ) - ); - addEmitHelpers(updated, context.readEmitHelpers()); - return updated; - } - function collectAsynchronousDependencies(node, includeNonAmdDependencies) { - const aliasedModuleNames = []; - const unaliasedModuleNames = []; - const importAliasNames = []; - for (const amdDependency of node.amdDependencies) { - if (amdDependency.name) { - aliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path)); - importAliasNames.push(factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - amdDependency.name - )); - } else { - unaliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path)); - } - } - for (const importNode of currentModuleInfo.externalImports) { - const externalModuleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions); - const importAliasName = getLocalNameForExternalImport(factory2, importNode, currentSourceFile); - if (externalModuleName) { - if (includeNonAmdDependencies && importAliasName) { - setEmitFlags(importAliasName, 8 /* NoSubstitution */); - aliasedModuleNames.push(externalModuleName); - importAliasNames.push(factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - importAliasName - )); - } else { - unaliasedModuleNames.push(externalModuleName); - } - } - } - return { aliasedModuleNames, unaliasedModuleNames, importAliasNames }; - } - function getAMDImportExpressionForImport(node) { - if (isImportEqualsDeclaration(node) || isExportDeclaration(node) || !getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions)) { - return void 0; - } - const name = getLocalNameForExternalImport(factory2, node, currentSourceFile); - const expr = getHelperExpressionForImport(node, name); - if (expr === name) { - return void 0; - } - return factory2.createExpressionStatement(factory2.createAssignment(name, expr)); - } - function transformAsynchronousModuleBody(node) { - startLexicalEnvironment(); - const statements = []; - const statementOffset = factory2.copyPrologue( - node.statements, - statements, - /*ensureUseStrict*/ - true, - topLevelVisitor - ); - if (shouldEmitUnderscoreUnderscoreESModule()) { - append(statements, createUnderscoreUnderscoreESModule()); - } - if (some(currentModuleInfo.exportedNames)) { - append( - statements, - factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => nextId.kind === 11 /* StringLiteral */ ? factory2.createAssignment(factory2.createElementAccessExpression(factory2.createIdentifier("exports"), factory2.createStringLiteral(nextId.text)), prev) : factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())) - ); - } - for (const f of currentModuleInfo.exportedFunctions) { - appendExportsOfHoistedDeclaration(statements, f); - } - append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement)); - if (moduleKind === 2 /* AMD */) { - addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport)); - } - addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset)); - addExportEqualsIfNeeded( - statements, - /*emitAsReturn*/ - true - ); - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - const body = factory2.createBlock( - statements, - /*multiLine*/ - true - ); - if (needUMDDynamicImportHelper) { - addEmitHelper(body, dynamicImportUMDHelper); - } - return body; - } - function addExportEqualsIfNeeded(statements, emitAsReturn) { - if (currentModuleInfo.exportEquals) { - const expressionResult = visitNode(currentModuleInfo.exportEquals.expression, visitor, isExpression); - if (expressionResult) { - if (emitAsReturn) { - const statement = factory2.createReturnStatement(expressionResult); - setTextRange(statement, currentModuleInfo.exportEquals); - setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */); - statements.push(statement); - } else { - const statement = factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("module"), - "exports" - ), - expressionResult - ) - ); - setTextRange(statement, currentModuleInfo.exportEquals); - setEmitFlags(statement, 3072 /* NoComments */); - statements.push(statement); - } - } - } - } - function topLevelVisitor(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - return visitTopLevelImportDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return visitTopLevelImportEqualsDeclaration(node); - case 278 /* ExportDeclaration */: - return visitTopLevelExportDeclaration(node); - case 277 /* ExportAssignment */: - return visitTopLevelExportAssignment(node); - default: - return topLevelNestedVisitor(node); - } - } - function topLevelNestedVisitor(node) { - switch (node.kind) { - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 248 /* ForStatement */: - return visitForStatement( - node, - /*isTopLevel*/ - true - ); - case 249 /* ForInStatement */: - return visitForInStatement(node); - case 250 /* ForOfStatement */: - return visitForOfStatement(node); - case 246 /* DoStatement */: - return visitDoStatement(node); - case 247 /* WhileStatement */: - return visitWhileStatement(node); - case 256 /* LabeledStatement */: - return visitLabeledStatement(node); - case 254 /* WithStatement */: - return visitWithStatement(node); - case 245 /* IfStatement */: - return visitIfStatement(node); - case 255 /* SwitchStatement */: - return visitSwitchStatement(node); - case 269 /* CaseBlock */: - return visitCaseBlock(node); - case 296 /* CaseClause */: - return visitCaseClause(node); - case 297 /* DefaultClause */: - return visitDefaultClause(node); - case 258 /* TryStatement */: - return visitTryStatement(node); - case 299 /* CatchClause */: - return visitCatchClause(node); - case 241 /* Block */: - return visitBlock(node); - default: - return visitor(node); - } - } - function visitorWorker(node, valueIsDiscarded) { - if (!(node.transformFlags & (8388608 /* ContainsDynamicImport */ | 4096 /* ContainsDestructuringAssignment */ | 268435456 /* ContainsUpdateExpressionForIdentifier */)) && !(importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length)) { - return node; - } - switch (node.kind) { - case 248 /* ForStatement */: - return visitForStatement( - node, - /*isTopLevel*/ - false - ); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression(node, valueIsDiscarded); - case 355 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 213 /* CallExpression */: - const needsRewrite = node === firstOrUndefined(importsAndRequiresToRewriteOrShim); - if (needsRewrite) { - importsAndRequiresToRewriteOrShim.shift(); - } - if (isImportCall(node) && host.shouldTransformImportCall(currentSourceFile)) { - return visitImportCallExpression(node, needsRewrite); - } else if (needsRewrite) { - return shimOrRewriteImportOrRequireCall(node); - } - break; - case 226 /* BinaryExpression */: - if (isDestructuringAssignment(node)) { - return visitDestructuringAssignment(node, valueIsDiscarded); - } - break; - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - return visitorWorker( - node, - /*valueIsDiscarded*/ - false - ); - } - function discardedValueVisitor(node) { - return visitorWorker( - node, - /*valueIsDiscarded*/ - true - ); - } - function destructuringNeedsFlattening(node) { - if (isObjectLiteralExpression(node)) { - for (const elem of node.properties) { - switch (elem.kind) { - case 303 /* PropertyAssignment */: - if (destructuringNeedsFlattening(elem.initializer)) { - return true; - } - break; - case 304 /* ShorthandPropertyAssignment */: - if (destructuringNeedsFlattening(elem.name)) { - return true; - } - break; - case 305 /* SpreadAssignment */: - if (destructuringNeedsFlattening(elem.expression)) { - return true; - } - break; - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return false; - default: - Debug.assertNever(elem, "Unhandled object member kind"); - } - } - } else if (isArrayLiteralExpression(node)) { - for (const elem of node.elements) { - if (isSpreadElement(elem)) { - if (destructuringNeedsFlattening(elem.expression)) { - return true; - } - } else if (destructuringNeedsFlattening(elem)) { - return true; - } - } - } else if (isIdentifier(node)) { - return length(getExports(node)) > (isExportName(node) ? 1 : 0); - } - return false; - } - function visitDestructuringAssignment(node, valueIsDiscarded) { - if (destructuringNeedsFlattening(node.left)) { - return flattenDestructuringAssignment(node, visitor, context, 0 /* All */, !valueIsDiscarded, createAllExportExpressions); - } - return visitEachChild(node, visitor, context); - } - function visitForStatement(node, isTopLevel) { - if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { - const exportStatements = appendExportsOfVariableDeclarationList( - /*statements*/ - void 0, - node.initializer, - /*isForInOrOfInitializer*/ - false - ); - if (exportStatements) { - const statements = []; - const varDeclList = visitNode(node.initializer, discardedValueVisitor, isVariableDeclarationList); - const varStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - varDeclList - ); - statements.push(varStatement); - addRange(statements, exportStatements); - const condition = visitNode(node.condition, visitor, isExpression); - const incrementor = visitNode(node.incrementor, discardedValueVisitor, isExpression); - const body = visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context); - statements.push(factory2.updateForStatement( - node, - /*initializer*/ - void 0, - condition, - incrementor, - body - )); - return statements; - } - } - return factory2.updateForStatement( - node, - visitNode(node.initializer, discardedValueVisitor, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, discardedValueVisitor, isExpression), - visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context) - ); - } - function visitForInStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { - const exportStatements = appendExportsOfVariableDeclarationList( - /*statements*/ - void 0, - node.initializer, - /*isForInOrOfInitializer*/ - true - ); - if (some(exportStatements)) { - const initializer = visitNode(node.initializer, discardedValueVisitor, isForInitializer); - const expression = visitNode(node.expression, visitor, isExpression); - const body = visitIterationBody(node.statement, topLevelNestedVisitor, context); - const mergedBody = isBlock(body) ? factory2.updateBlock(body, [...exportStatements, ...body.statements]) : factory2.createBlock( - [...exportStatements, body], - /*multiLine*/ - true - ); - return factory2.updateForInStatement(node, initializer, expression, mergedBody); - } - } - return factory2.updateForInStatement( - node, - visitNode(node.initializer, discardedValueVisitor, isForInitializer), - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - } - function visitForOfStatement(node) { - if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { - const exportStatements = appendExportsOfVariableDeclarationList( - /*statements*/ - void 0, - node.initializer, - /*isForInOrOfInitializer*/ - true - ); - const initializer = visitNode(node.initializer, discardedValueVisitor, isForInitializer); - const expression = visitNode(node.expression, visitor, isExpression); - let body = visitIterationBody(node.statement, topLevelNestedVisitor, context); - if (some(exportStatements)) { - body = isBlock(body) ? factory2.updateBlock(body, [...exportStatements, ...body.statements]) : factory2.createBlock( - [...exportStatements, body], - /*multiLine*/ - true - ); - } - return factory2.updateForOfStatement(node, node.awaitModifier, initializer, expression, body); - } - return factory2.updateForOfStatement( - node, - node.awaitModifier, - visitNode(node.initializer, discardedValueVisitor, isForInitializer), - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - } - function visitDoStatement(node) { - return factory2.updateDoStatement( - node, - visitIterationBody(node.statement, topLevelNestedVisitor, context), - visitNode(node.expression, visitor, isExpression) - ); - } - function visitWhileStatement(node) { - return factory2.updateWhileStatement( - node, - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - } - function visitLabeledStatement(node) { - return factory2.updateLabeledStatement( - node, - node.label, - visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? setTextRange(factory2.createEmptyStatement(), node.statement) - ); - } - function visitWithStatement(node) { - return factory2.updateWithStatement( - node, - visitNode(node.expression, visitor, isExpression), - Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) - ); - } - function visitIfStatement(node) { - return factory2.updateIfStatement( - node, - visitNode(node.expression, visitor, isExpression), - visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createBlock([]), - visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) - ); - } - function visitSwitchStatement(node) { - return factory2.updateSwitchStatement( - node, - visitNode(node.expression, visitor, isExpression), - Debug.checkDefined(visitNode(node.caseBlock, topLevelNestedVisitor, isCaseBlock)) - ); - } - function visitCaseBlock(node) { - return factory2.updateCaseBlock( - node, - visitNodes2(node.clauses, topLevelNestedVisitor, isCaseOrDefaultClause) - ); - } - function visitCaseClause(node) { - return factory2.updateCaseClause( - node, - visitNode(node.expression, visitor, isExpression), - visitNodes2(node.statements, topLevelNestedVisitor, isStatement) - ); - } - function visitDefaultClause(node) { - return visitEachChild(node, topLevelNestedVisitor, context); - } - function visitTryStatement(node) { - return visitEachChild(node, topLevelNestedVisitor, context); - } - function visitCatchClause(node) { - return factory2.updateCatchClause( - node, - node.variableDeclaration, - Debug.checkDefined(visitNode(node.block, topLevelNestedVisitor, isBlock)) - ); - } - function visitBlock(node) { - node = visitEachChild(node, topLevelNestedVisitor, context); - return node; - } - function visitExpressionStatement(node) { - return factory2.updateExpressionStatement( - node, - visitNode(node.expression, discardedValueVisitor, isExpression) - ); - } - function visitParenthesizedExpression(node, valueIsDiscarded) { - return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); - } - function visitPartiallyEmittedExpression(node, valueIsDiscarded) { - return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); - } - function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) { - if ((node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) { - const exportedNames = getExports(node.operand); - if (exportedNames) { - let temp; - let expression = visitNode(node.operand, visitor, isExpression); - if (isPrefixUnaryExpression(node)) { - expression = factory2.updatePrefixUnaryExpression(node, expression); - } else { - expression = factory2.updatePostfixUnaryExpression(node, expression); - if (!valueIsDiscarded) { - temp = factory2.createTempVariable(hoistVariableDeclaration); - expression = factory2.createAssignment(temp, expression); - setTextRange(expression, node); - } - expression = factory2.createComma(expression, factory2.cloneNode(node.operand)); - setTextRange(expression, node); - } - for (const exportName of exportedNames) { - noSubstitution[getNodeId(expression)] = true; - expression = createExportExpression(exportName, expression); - setTextRange(expression, node); - } - if (temp) { - noSubstitution[getNodeId(expression)] = true; - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - return visitEachChild(node, visitor, context); - } - function shimOrRewriteImportOrRequireCall(node) { - return factory2.updateCallExpression( - node, - node.expression, - /*typeArguments*/ - void 0, - visitNodes2(node.arguments, (arg) => { - if (arg === node.arguments[0]) { - return isStringLiteralLike(arg) ? rewriteModuleSpecifier(arg, compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(arg); - } - return visitor(arg); - }, isExpression) - ); - } - function visitImportCallExpression(node, rewriteOrShim) { - if (moduleKind === 0 /* None */ && languageVersion >= 7 /* ES2020 */) { - return visitEachChild(node, visitor, context); - } - const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions); - const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression); - const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument && rewriteOrShim ? isStringLiteral(firstArgument) ? rewriteModuleSpecifier(firstArgument, compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(firstArgument) : firstArgument; - const containsLexicalThis = !!(node.transformFlags & 16384 /* ContainsLexicalThis */); - switch (compilerOptions.module) { - case 2 /* AMD */: - return createImportCallExpressionAMD(argument, containsLexicalThis); - case 3 /* UMD */: - return createImportCallExpressionUMD(argument ?? factory2.createVoidZero(), containsLexicalThis); - case 1 /* CommonJS */: - default: - return createImportCallExpressionCommonJS(argument); - } - } - function createImportCallExpressionUMD(arg, containsLexicalThis) { - needUMDDynamicImportHelper = true; - if (isSimpleCopiableExpression(arg)) { - const argClone = isGeneratedIdentifier(arg) ? arg : isStringLiteral(arg) ? factory2.createStringLiteralFromNode(arg) : setEmitFlags(setTextRange(factory2.cloneNode(arg), arg), 3072 /* NoComments */); - return factory2.createConditionalExpression( - /*condition*/ - factory2.createIdentifier("__syncRequire"), - /*questionToken*/ - void 0, - /*whenTrue*/ - createImportCallExpressionCommonJS(arg), - /*colonToken*/ - void 0, - /*whenFalse*/ - createImportCallExpressionAMD(argClone, containsLexicalThis) - ); - } else { - const temp = factory2.createTempVariable(hoistVariableDeclaration); - return factory2.createComma( - factory2.createAssignment(temp, arg), - factory2.createConditionalExpression( - /*condition*/ - factory2.createIdentifier("__syncRequire"), - /*questionToken*/ - void 0, - /*whenTrue*/ - createImportCallExpressionCommonJS( - temp, - /*isInlineable*/ - true - ), - /*colonToken*/ - void 0, - /*whenFalse*/ - createImportCallExpressionAMD(temp, containsLexicalThis) - ) - ); - } - } - function createImportCallExpressionAMD(arg, containsLexicalThis) { - const resolve = factory2.createUniqueName("resolve"); - const reject = factory2.createUniqueName("reject"); - const parameters = [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - /*name*/ - resolve - ), - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - /*name*/ - reject - ) - ]; - const body = factory2.createBlock([ - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createIdentifier("require"), - /*typeArguments*/ - void 0, - [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve, reject] - ) - ) - ]); - let func; - if (languageVersion >= 2 /* ES2015 */) { - func = factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - body - ); - } else { - func = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - parameters, - /*type*/ - void 0, - body - ); - if (containsLexicalThis) { - setEmitFlags(func, 16 /* CapturesThis */); - } - } - const promise = factory2.createNewExpression( - factory2.createIdentifier("Promise"), - /*typeArguments*/ - void 0, - [func] - ); - if (getESModuleInterop(compilerOptions)) { - return factory2.createCallExpression( - factory2.createPropertyAccessExpression(promise, factory2.createIdentifier("then")), - /*typeArguments*/ - void 0, - [emitHelpers().createImportStarCallbackHelper()] - ); - } - return promise; - } - function createImportCallExpressionCommonJS(arg, isInlineable) { - const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable; - const promiseResolveCall = factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"), - /*typeArguments*/ - void 0, - /*argumentsArray*/ - needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [ - factory2.createTemplateExpression(factory2.createTemplateHead(""), [ - factory2.createTemplateSpan(arg, factory2.createTemplateTail("")) - ]) - ] : [ - factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"), - /*typeArguments*/ - void 0, - [arg] - ) - ] : [] - ); - let requireCall = factory2.createCallExpression( - factory2.createIdentifier("require"), - /*typeArguments*/ - void 0, - needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : [] - ); - if (getESModuleInterop(compilerOptions)) { - requireCall = emitHelpers().createImportStarHelper(requireCall); - } - const parameters = needSyncEval ? [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - /*name*/ - "s" - ) - ] : []; - let func; - if (languageVersion >= 2 /* ES2015 */) { - func = factory2.createArrowFunction( - /*modifiers*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - parameters, - /*type*/ - void 0, - /*equalsGreaterThanToken*/ - void 0, - requireCall - ); - } else { - func = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - parameters, - /*type*/ - void 0, - factory2.createBlock([factory2.createReturnStatement(requireCall)]) - ); - } - const downleveledImport = factory2.createCallExpression( - factory2.createPropertyAccessExpression(promiseResolveCall, "then"), - /*typeArguments*/ - void 0, - [func] - ); - return downleveledImport; - } - function getHelperExpressionForExport(node, innerExpr) { - if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) { - return innerExpr; - } - if (getExportNeedsImportStarHelper(node)) { - return emitHelpers().createImportStarHelper(innerExpr); - } - return innerExpr; - } - function getHelperExpressionForImport(node, innerExpr) { - if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) { - return innerExpr; - } - if (getImportNeedsImportStarHelper(node)) { - return emitHelpers().createImportStarHelper(innerExpr); - } - if (getImportNeedsImportDefaultHelper(node)) { - return emitHelpers().createImportDefaultHelper(innerExpr); - } - return innerExpr; - } - function visitTopLevelImportDeclaration(node) { - let statements; - const namespaceDeclaration = getNamespaceDeclarationNode(node); - if (moduleKind !== 2 /* AMD */) { - if (!node.importClause) { - return setOriginalNode(setTextRange(factory2.createExpressionStatement(createRequireCall(node)), node), node); - } else { - const variables = []; - if (namespaceDeclaration && !isDefaultImport(node)) { - variables.push( - factory2.createVariableDeclaration( - factory2.cloneNode(namespaceDeclaration.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - getHelperExpressionForImport(node, createRequireCall(node)) - ) - ); - } else { - variables.push( - factory2.createVariableDeclaration( - factory2.getGeneratedNameForNode(node), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - getHelperExpressionForImport(node, createRequireCall(node)) - ) - ); - if (namespaceDeclaration && isDefaultImport(node)) { - variables.push( - factory2.createVariableDeclaration( - factory2.cloneNode(namespaceDeclaration.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.getGeneratedNameForNode(node) - ) - ); - } - } - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - variables, - languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ - ) - ), - /*location*/ - node - ), - /*original*/ - node - ) - ); - } - } else if (namespaceDeclaration && isDefaultImport(node)) { - statements = append( - statements, - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [ - setOriginalNode( - setTextRange( - factory2.createVariableDeclaration( - factory2.cloneNode(namespaceDeclaration.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.getGeneratedNameForNode(node) - ), - /*location*/ - node - ), - /*original*/ - node - ) - ], - languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ - ) - ) - ); - } - statements = appendExportsOfImportDeclaration(statements, node); - return singleOrMany(statements); - } - function createRequireCall(importNode) { - const moduleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions); - const args = []; - if (moduleName) { - args.push(rewriteModuleSpecifier(moduleName, compilerOptions)); - } - return factory2.createCallExpression( - factory2.createIdentifier("require"), - /*typeArguments*/ - void 0, - args - ); - } - function visitTopLevelImportEqualsDeclaration(node) { - Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); - let statements; - if (moduleKind !== 2 /* AMD */) { - if (hasSyntacticModifier(node, 32 /* Export */)) { - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createExpressionStatement( - createExportExpression( - node.name, - createRequireCall(node) - ) - ), - node - ), - node - ) - ); - } else { - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [ - factory2.createVariableDeclaration( - factory2.cloneNode(node.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - createRequireCall(node) - ) - ], - /*flags*/ - languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ - ) - ), - node - ), - node - ) - ); - } - } else { - if (hasSyntacticModifier(node, 32 /* Export */)) { - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createExpressionStatement( - createExportExpression(factory2.getExportName(node), factory2.getLocalName(node)) - ), - node - ), - node - ) - ); - } - } - statements = appendExportsOfImportEqualsDeclaration(statements, node); - return singleOrMany(statements); - } - function visitTopLevelExportDeclaration(node) { - if (!node.moduleSpecifier) { - return void 0; - } - const generatedName = factory2.getGeneratedNameForNode(node); - if (node.exportClause && isNamedExports(node.exportClause)) { - const statements = []; - if (moduleKind !== 2 /* AMD */) { - statements.push( - setOriginalNode( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - generatedName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - createRequireCall(node) - ) - ]) - ), - /*location*/ - node - ), - /* original */ - node - ) - ); - } - for (const specifier of node.exportClause.elements) { - const specifierName = specifier.propertyName || specifier.name; - const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && moduleExportNameIsDefault(specifierName); - const target = exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName; - const exportedValue = specifierName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, specifierName) : factory2.createPropertyAccessExpression(target, specifierName); - statements.push( - setOriginalNode( - setTextRange( - factory2.createExpressionStatement( - createExportExpression( - specifier.name.kind === 11 /* StringLiteral */ ? factory2.cloneNode(specifier.name) : factory2.getExportName(specifier), - exportedValue, - /*location*/ - void 0, - /*liveBinding*/ - true - ) - ), - specifier - ), - specifier - ) - ); - } - return singleOrMany(statements); - } else if (node.exportClause) { - const statements = []; - statements.push( - setOriginalNode( - setTextRange( - factory2.createExpressionStatement( - createExportExpression( - factory2.cloneNode(node.exportClause.name), - getHelperExpressionForExport( - node, - moduleKind !== 2 /* AMD */ ? createRequireCall(node) : isExportNamespaceAsDefaultDeclaration(node) ? generatedName : node.exportClause.name.kind === 11 /* StringLiteral */ ? generatedName : factory2.createIdentifier(idText(node.exportClause.name)) - ) - ) - ), - node - ), - node - ) - ); - return singleOrMany(statements); - } else { - return setOriginalNode( - setTextRange( - factory2.createExpressionStatement( - emitHelpers().createExportStarHelper(moduleKind !== 2 /* AMD */ ? createRequireCall(node) : generatedName) - ), - node - ), - node - ); - } - } - function visitTopLevelExportAssignment(node) { - if (node.isExportEquals) { - return void 0; - } - return createExportStatement( - factory2.createIdentifier("default"), - visitNode(node.expression, visitor, isExpression), - /*location*/ - node, - /*allowComments*/ - true - ); - } - function visitFunctionDeclaration(node) { - let statements; - if (hasSyntacticModifier(node, 32 /* Export */)) { - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createFunctionDeclaration( - visitNodes2(node.modifiers, modifierVisitor, isModifier), - node.asteriskToken, - factory2.getDeclarationName( - node, - /*allowComments*/ - true, - /*allowSourceMaps*/ - true - ), - /*typeParameters*/ - void 0, - visitNodes2(node.parameters, visitor, isParameter), - /*type*/ - void 0, - visitEachChild(node.body, visitor, context) - ), - /*location*/ - node - ), - /*original*/ - node - ) - ); - } else { - statements = append(statements, visitEachChild(node, visitor, context)); - } - return singleOrMany(statements); - } - function visitClassDeclaration(node) { - let statements; - if (hasSyntacticModifier(node, 32 /* Export */)) { - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createClassDeclaration( - visitNodes2(node.modifiers, modifierVisitor, isModifierLike), - factory2.getDeclarationName( - node, - /*allowComments*/ - true, - /*allowSourceMaps*/ - true - ), - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - visitNodes2(node.members, visitor, isClassElement) - ), - node - ), - node - ) - ); - } else { - statements = append(statements, visitEachChild(node, visitor, context)); - } - statements = appendExportsOfHoistedDeclaration(statements, node); - return singleOrMany(statements); - } - function visitVariableStatement(node) { - let statements; - let variables; - let expressions; - if (hasSyntacticModifier(node, 32 /* Export */)) { - let modifiers; - let removeCommentsOnExpressions = false; - for (const variable of node.declarationList.declarations) { - if (isIdentifier(variable.name) && isLocalName(variable.name)) { - if (!modifiers) { - modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); - } - if (variable.initializer) { - const updatedVariable = factory2.updateVariableDeclaration( - variable, - variable.name, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - createExportExpression( - variable.name, - visitNode(variable.initializer, visitor, isExpression) - ) - ); - variables = append(variables, updatedVariable); - } else { - variables = append(variables, variable); - } - } else if (variable.initializer) { - if (!isBindingPattern(variable.name) && (isArrowFunction(variable.initializer) || isFunctionExpression(variable.initializer) || isClassExpression(variable.initializer))) { - const expression = factory2.createAssignment( - setTextRange( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("exports"), - variable.name - ), - /*location*/ - variable.name - ), - factory2.createIdentifier(getTextOfIdentifierOrLiteral(variable.name)) - ); - const updatedVariable = factory2.createVariableDeclaration( - variable.name, - variable.exclamationToken, - variable.type, - visitNode(variable.initializer, visitor, isExpression) - ); - variables = append(variables, updatedVariable); - expressions = append(expressions, expression); - removeCommentsOnExpressions = true; - } else { - expressions = append(expressions, transformInitializedVariable(variable)); - } - } - } - if (variables) { - statements = append(statements, factory2.updateVariableStatement(node, modifiers, factory2.updateVariableDeclarationList(node.declarationList, variables))); - } - if (expressions) { - const statement = setOriginalNode(setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node), node); - if (removeCommentsOnExpressions) { - removeAllComments(statement); - } - statements = append(statements, statement); - } - } else { - statements = append(statements, visitEachChild(node, visitor, context)); - } - statements = appendExportsOfVariableStatement(statements, node); - return singleOrMany(statements); - } - function createAllExportExpressions(name, value, location) { - const exportedNames = getExports(name); - if (exportedNames) { - let expression = isExportName(name) ? value : factory2.createAssignment(name, value); - for (const exportName of exportedNames) { - setEmitFlags(expression, 8 /* NoSubstitution */); - expression = createExportExpression( - exportName, - expression, - /*location*/ - location - ); - } - return expression; - } - return factory2.createAssignment(name, value); - } - function transformInitializedVariable(node) { - if (isBindingPattern(node.name)) { - return flattenDestructuringAssignment( - visitNode(node, visitor, isInitializedVariable), - visitor, - context, - 0 /* All */, - /*needsValue*/ - false, - createAllExportExpressions - ); - } else { - return factory2.createAssignment( - setTextRange( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("exports"), - node.name - ), - /*location*/ - node.name - ), - node.initializer ? visitNode(node.initializer, visitor, isExpression) : factory2.createVoidZero() - ); - } - } - function appendExportsOfImportDeclaration(statements, decl) { - if (currentModuleInfo.exportEquals) { - return statements; - } - const importClause = decl.importClause; - if (!importClause) { - return statements; - } - const seen = new IdentifierNameMap(); - if (importClause.name) { - statements = appendExportsOfDeclaration(statements, seen, importClause); - } - const namedBindings = importClause.namedBindings; - if (namedBindings) { - switch (namedBindings.kind) { - case 274 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, seen, namedBindings); - break; - case 275 /* NamedImports */: - for (const importBinding of namedBindings.elements) { - statements = appendExportsOfDeclaration( - statements, - seen, - importBinding, - /*liveBinding*/ - true - ); - } - break; - } - } - return statements; - } - function appendExportsOfImportEqualsDeclaration(statements, decl) { - if (currentModuleInfo.exportEquals) { - return statements; - } - return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); - } - function appendExportsOfVariableStatement(statements, node) { - return appendExportsOfVariableDeclarationList( - statements, - node.declarationList, - /*isForInOrOfInitializer*/ - false - ); - } - function appendExportsOfVariableDeclarationList(statements, node, isForInOrOfInitializer) { - if (currentModuleInfo.exportEquals) { - return statements; - } - for (const decl of node.declarations) { - statements = appendExportsOfBindingElement(statements, decl, isForInOrOfInitializer); - } - return statements; - } - function appendExportsOfBindingElement(statements, decl, isForInOrOfInitializer) { - if (currentModuleInfo.exportEquals) { - return statements; - } - if (isBindingPattern(decl.name)) { - for (const element of decl.name.elements) { - if (!isOmittedExpression(element)) { - statements = appendExportsOfBindingElement(statements, element, isForInOrOfInitializer); - } - } - } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { - statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); - } - return statements; - } - function appendExportsOfHoistedDeclaration(statements, decl) { - if (currentModuleInfo.exportEquals) { - return statements; - } - const seen = new IdentifierNameMap(); - if (hasSyntacticModifier(decl, 32 /* Export */)) { - const exportName = hasSyntacticModifier(decl, 2048 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); - statements = appendExportStatement( - statements, - seen, - exportName, - factory2.getLocalName(decl), - /*location*/ - decl - ); - } - if (decl.name) { - statements = appendExportsOfDeclaration(statements, seen, decl); - } - return statements; - } - function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { - const name = factory2.getDeclarationName(decl); - const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); - if (exportSpecifiers) { - for (const exportSpecifier of exportSpecifiers) { - statements = appendExportStatement( - statements, - seen, - exportSpecifier.name, - name, - /*location*/ - exportSpecifier.name, - /*allowComments*/ - void 0, - liveBinding - ); - } - } - return statements; - } - function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { - if (exportName.kind !== 11 /* StringLiteral */) { - if (seen.has(exportName)) { - return statements; - } - seen.set(exportName, true); - } - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); - return statements; - } - function createUnderscoreUnderscoreESModule() { - const statement = factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"), - /*typeArguments*/ - void 0, - [ - factory2.createIdentifier("exports"), - factory2.createStringLiteral("__esModule"), - factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("value", factory2.createTrue()) - ]) - ] - ) - ); - setEmitFlags(statement, 2097152 /* CustomPrologue */); - return statement; - } - function createExportStatement(name, value, location, allowComments, liveBinding) { - const statement = setTextRange(factory2.createExpressionStatement(createExportExpression( - name, - value, - /*location*/ - void 0, - liveBinding - )), location); - startOnNewLine(statement); - if (!allowComments) { - setEmitFlags(statement, 3072 /* NoComments */); - } - return statement; - } - function createExportExpression(name, value, location, liveBinding) { - return setTextRange( - liveBinding ? factory2.createCallExpression( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("Object"), - "defineProperty" - ), - /*typeArguments*/ - void 0, - [ - factory2.createIdentifier("exports"), - factory2.createStringLiteralFromNode(name), - factory2.createObjectLiteralExpression([ - factory2.createPropertyAssignment("enumerable", factory2.createTrue()), - factory2.createPropertyAssignment( - "get", - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - [], - /*type*/ - void 0, - factory2.createBlock([factory2.createReturnStatement(value)]) - ) - ) - ]) - ] - ) : factory2.createAssignment( - name.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression( - factory2.createIdentifier("exports"), - factory2.cloneNode(name) - ) : factory2.createPropertyAccessExpression( - factory2.createIdentifier("exports"), - factory2.cloneNode(name) - ), - value - ), - location - ); - } - function modifierVisitor(node) { - switch (node.kind) { - case 95 /* ExportKeyword */: - case 90 /* DefaultKeyword */: - return void 0; - } - return node; - } - function onEmitNode(hint, node, emitCallback) { - if (node.kind === 307 /* SourceFile */) { - currentSourceFile = node; - currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; - previousOnEmitNode(hint, node, emitCallback); - currentSourceFile = void 0; - currentModuleInfo = void 0; - } else { - previousOnEmitNode(hint, node, emitCallback); - } - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (node.id && noSubstitution[node.id]) { - return node; - } - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } else if (isShorthandPropertyAssignment(node)) { - return substituteShorthandPropertyAssignment(node); - } - return node; - } - function substituteShorthandPropertyAssignment(node) { - const name = node.name; - const exportedOrImportedName = substituteExpressionIdentifier(name); - if (exportedOrImportedName !== name) { - if (node.objectAssignmentInitializer) { - const initializer = factory2.createAssignment(exportedOrImportedName, node.objectAssignmentInitializer); - return setTextRange(factory2.createPropertyAssignment(name, initializer), node); - } - return setTextRange(factory2.createPropertyAssignment(name, exportedOrImportedName), node); - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - case 213 /* CallExpression */: - return substituteCallExpression(node); - case 215 /* TaggedTemplateExpression */: - return substituteTaggedTemplateExpression(node); - case 226 /* BinaryExpression */: - return substituteBinaryExpression(node); - } - return node; - } - function substituteCallExpression(node) { - if (isIdentifier(node.expression)) { - const expression = substituteExpressionIdentifier(node.expression); - noSubstitution[getNodeId(expression)] = true; - if (!isIdentifier(expression) && !(getEmitFlags(node.expression) & 8192 /* HelperName */)) { - return addInternalEmitFlags( - factory2.updateCallExpression( - node, - expression, - /*typeArguments*/ - void 0, - node.arguments - ), - 16 /* IndirectCall */ - ); - } - } - return node; - } - function substituteTaggedTemplateExpression(node) { - if (isIdentifier(node.tag)) { - const tag = substituteExpressionIdentifier(node.tag); - noSubstitution[getNodeId(tag)] = true; - if (!isIdentifier(tag) && !(getEmitFlags(node.tag) & 8192 /* HelperName */)) { - return addInternalEmitFlags( - factory2.updateTaggedTemplateExpression( - node, - tag, - /*typeArguments*/ - void 0, - node.template - ), - 16 /* IndirectCall */ - ); - } - } - return node; - } - function substituteExpressionIdentifier(node) { - var _a, _b; - if (getEmitFlags(node) & 8192 /* HelperName */) { - const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile); - if (externalHelpersModuleName) { - return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); - } - return node; - } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { - const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); - if (exportContainer && exportContainer.kind === 307 /* SourceFile */) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("exports"), - factory2.cloneNode(node) - ), - /*location*/ - node - ); - } - const importDeclaration = resolver.getReferencedImportDeclaration(node); - if (importDeclaration) { - if (isImportClause(importDeclaration)) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.getGeneratedNameForNode(importDeclaration.parent), - factory2.createIdentifier("default") - ), - /*location*/ - node - ); - } else if (isImportSpecifier(importDeclaration)) { - const name = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); - return setTextRange( - name.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(name)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(name)), - /*location*/ - node - ); - } - } - } - return node; - } - function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { - const exportedNames = getExports(node.left); - if (exportedNames) { - let expression = node; - for (const exportName of exportedNames) { - noSubstitution[getNodeId(expression)] = true; - expression = createExportExpression( - exportName, - expression, - /*location*/ - node - ); - } - return expression; - } - } - return node; - } - function getExports(name) { - if (!isGeneratedIdentifier(name)) { - const importDeclaration = resolver.getReferencedImportDeclaration(name); - if (importDeclaration) { - return currentModuleInfo == null ? void 0 : currentModuleInfo.exportedBindings[getOriginalNodeId(importDeclaration)]; - } - const bindingsSet = /* @__PURE__ */ new Set(); - const declarations = resolver.getReferencedValueDeclarations(name); - if (declarations) { - for (const declaration of declarations) { - const bindings = currentModuleInfo == null ? void 0 : currentModuleInfo.exportedBindings[getOriginalNodeId(declaration)]; - if (bindings) { - for (const binding of bindings) { - bindingsSet.add(binding); - } - } - } - if (bindingsSet.size) { - return arrayFrom(bindingsSet); - } - } - } else if (isFileLevelReservedGeneratedIdentifier(name)) { - const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); - if (exportSpecifiers) { - const exportedNames = []; - for (const exportSpecifier of exportSpecifiers) { - exportedNames.push(exportSpecifier.name); - } - return exportedNames; - } - } - } -} -var dynamicImportUMDHelper = { - name: "typescript:dynamicimport-sync-require", - scoped: true, - text: ` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";` -}; - -// src/compiler/transformers/module/system.ts -function transformSystemModule(context) { - const { - factory: factory2, - startLexicalEnvironment, - endLexicalEnvironment, - hoistVariableDeclaration - } = context; - const compilerOptions = context.getCompilerOptions(); - const resolver = context.getEmitResolver(); - const host = context.getEmitHost(); - const previousOnSubstituteNode = context.onSubstituteNode; - const previousOnEmitNode = context.onEmitNode; - context.onSubstituteNode = onSubstituteNode; - context.onEmitNode = onEmitNode; - context.enableSubstitution(80 /* Identifier */); - context.enableSubstitution(304 /* ShorthandPropertyAssignment */); - context.enableSubstitution(226 /* BinaryExpression */); - context.enableSubstitution(236 /* MetaProperty */); - context.enableEmitNotification(307 /* SourceFile */); - const moduleInfoMap = []; - const exportFunctionsMap = []; - const noSubstitutionMap = []; - const contextObjectMap = []; - let currentSourceFile; - let moduleInfo; - let exportFunction; - let contextObject; - let hoistedStatements; - let enclosingBlockScopedContainer; - let noSubstitution; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608 /* ContainsDynamicImport */)) { - return node; - } - const id = getOriginalNodeId(node); - currentSourceFile = node; - enclosingBlockScopedContainer = node; - moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); - exportFunction = factory2.createUniqueName("exports"); - exportFunctionsMap[id] = exportFunction; - contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); - const dependencyGroups = collectDependencyGroups(moduleInfo.externalImports); - const moduleBodyBlock = createSystemModuleBody(node, dependencyGroups); - const moduleBodyFunction = factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [ - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - exportFunction - ), - factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - contextObject - ) - ], - /*type*/ - void 0, - moduleBodyBlock - ); - const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); - const dependencies = factory2.createArrayLiteralExpression(map(dependencyGroups, (dependencyGroup) => dependencyGroup.name)); - const updated = setEmitFlags( - factory2.updateSourceFile( - node, - setTextRange( - factory2.createNodeArray([ - factory2.createExpressionStatement( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(factory2.createIdentifier("System"), "register"), - /*typeArguments*/ - void 0, - moduleName ? [moduleName, dependencies, moduleBodyFunction] : [dependencies, moduleBodyFunction] - ) - ) - ]), - node.statements - ) - ), - 2048 /* NoTrailingComments */ - ); - if (!compilerOptions.outFile) { - moveEmitHelpers(updated, moduleBodyBlock, (helper) => !helper.scoped); - } - if (noSubstitution) { - noSubstitutionMap[id] = noSubstitution; - noSubstitution = void 0; - } - currentSourceFile = void 0; - moduleInfo = void 0; - exportFunction = void 0; - contextObject = void 0; - hoistedStatements = void 0; - enclosingBlockScopedContainer = void 0; - return updated; - } - function collectDependencyGroups(externalImports) { - const groupIndices = /* @__PURE__ */ new Map(); - const dependencyGroups = []; - for (const externalImport of externalImports) { - const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions); - if (externalModuleName) { - const text = externalModuleName.text; - const groupIndex = groupIndices.get(text); - if (groupIndex !== void 0) { - dependencyGroups[groupIndex].externalImports.push(externalImport); - } else { - groupIndices.set(text, dependencyGroups.length); - dependencyGroups.push({ - name: externalModuleName, - externalImports: [externalImport] - }); - } - } - } - return dependencyGroups; - } - function createSystemModuleBody(node, dependencyGroups) { - const statements = []; - startLexicalEnvironment(); - const ensureUseStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") || isExternalModule(currentSourceFile); - const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict, topLevelVisitor); - statements.push( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - "__moduleName", - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createLogicalAnd( - contextObject, - factory2.createPropertyAccessExpression(contextObject, "id") - ) - ) - ]) - ) - ); - visitNode(moduleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement); - const executeStatements = visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset); - addRange(statements, hoistedStatements); - insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); - const exportStarFunction = addExportStarIfNeeded(statements); - const modifiers = node.transformFlags & 2097152 /* ContainsAwait */ ? factory2.createModifiersFromModifierFlags(1024 /* Async */) : void 0; - const moduleObject = factory2.createObjectLiteralExpression( - [ - factory2.createPropertyAssignment("setters", createSettersArray(exportStarFunction, dependencyGroups)), - factory2.createPropertyAssignment( - "execute", - factory2.createFunctionExpression( - modifiers, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - /*parameters*/ - [], - /*type*/ - void 0, - factory2.createBlock( - executeStatements, - /*multiLine*/ - true - ) - ) - ) - ], - /*multiLine*/ - true - ); - statements.push(factory2.createReturnStatement(moduleObject)); - return factory2.createBlock( - statements, - /*multiLine*/ - true - ); - } - function addExportStarIfNeeded(statements) { - if (!moduleInfo.hasExportStarsToExportValues) { - return; - } - if (!some(moduleInfo.exportedNames) && moduleInfo.exportedFunctions.size === 0 && moduleInfo.exportSpecifiers.size === 0) { - let hasExportDeclarationWithExportClause = false; - for (const externalImport of moduleInfo.externalImports) { - if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { - hasExportDeclarationWithExportClause = true; - break; - } - } - if (!hasExportDeclarationWithExportClause) { - const exportStarFunction2 = createExportStarFunction( - /*localNames*/ - void 0 - ); - statements.push(exportStarFunction2); - return exportStarFunction2.name; - } - } - const exportedNames = []; - if (moduleInfo.exportedNames) { - for (const exportedLocalName of moduleInfo.exportedNames) { - if (moduleExportNameIsDefault(exportedLocalName)) { - continue; - } - exportedNames.push( - factory2.createPropertyAssignment( - factory2.createStringLiteralFromNode(exportedLocalName), - factory2.createTrue() - ) - ); - } - } - for (const f of moduleInfo.exportedFunctions) { - if (hasSyntacticModifier(f, 2048 /* Default */)) { - continue; - } - Debug.assert(!!f.name); - exportedNames.push( - factory2.createPropertyAssignment( - factory2.createStringLiteralFromNode(f.name), - factory2.createTrue() - ) - ); - } - const exportedNamesStorageRef = factory2.createUniqueName("exportedNames"); - statements.push( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - exportedNamesStorageRef, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createObjectLiteralExpression( - exportedNames, - /*multiLine*/ - true - ) - ) - ]) - ) - ); - const exportStarFunction = createExportStarFunction(exportedNamesStorageRef); - statements.push(exportStarFunction); - return exportStarFunction.name; - } - function createExportStarFunction(localNames) { - const exportStarFunction = factory2.createUniqueName("exportStar"); - const m = factory2.createIdentifier("m"); - const n = factory2.createIdentifier("n"); - const exports2 = factory2.createIdentifier("exports"); - let condition = factory2.createStrictInequality(n, factory2.createStringLiteral("default")); - if (localNames) { - condition = factory2.createLogicalAnd( - condition, - factory2.createLogicalNot( - factory2.createCallExpression( - factory2.createPropertyAccessExpression(localNames, "hasOwnProperty"), - /*typeArguments*/ - void 0, - [n] - ) - ) - ); - } - return factory2.createFunctionDeclaration( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - exportStarFunction, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - m - )], - /*type*/ - void 0, - factory2.createBlock( - [ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration( - exports2, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createObjectLiteralExpression([]) - ) - ]) - ), - factory2.createForInStatement( - factory2.createVariableDeclarationList([ - factory2.createVariableDeclaration(n) - ]), - m, - factory2.createBlock([ - setEmitFlags( - factory2.createIfStatement( - condition, - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createElementAccessExpression(exports2, n), - factory2.createElementAccessExpression(m, n) - ) - ) - ), - 1 /* SingleLine */ - ) - ]) - ), - factory2.createExpressionStatement( - factory2.createCallExpression( - exportFunction, - /*typeArguments*/ - void 0, - [exports2] - ) - ) - ], - /*multiLine*/ - true - ) - ); - } - function createSettersArray(exportStarFunction, dependencyGroups) { - const setters = []; - for (const group2 of dependencyGroups) { - const localName = forEach(group2.externalImports, (i) => getLocalNameForExternalImport(factory2, i, currentSourceFile)); - const parameterName = localName ? factory2.getGeneratedNameForNode(localName) : factory2.createUniqueName(""); - const statements = []; - for (const entry of group2.externalImports) { - const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); - switch (entry.kind) { - case 272 /* ImportDeclaration */: - if (!entry.importClause) { - break; - } - // falls through - case 271 /* ImportEqualsDeclaration */: - Debug.assert(importVariableName !== void 0); - statements.push( - factory2.createExpressionStatement( - factory2.createAssignment(importVariableName, parameterName) - ) - ); - if (hasSyntacticModifier(entry, 32 /* Export */)) { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - exportFunction, - /*typeArguments*/ - void 0, - [ - factory2.createStringLiteral(idText(importVariableName)), - parameterName - ] - ) - ) - ); - } - break; - case 278 /* ExportDeclaration */: - Debug.assert(importVariableName !== void 0); - if (entry.exportClause) { - if (isNamedExports(entry.exportClause)) { - const properties = []; - for (const e of entry.exportClause.elements) { - properties.push( - factory2.createPropertyAssignment( - factory2.createStringLiteral(moduleExportNameTextUnescaped(e.name)), - factory2.createElementAccessExpression( - parameterName, - factory2.createStringLiteral(moduleExportNameTextUnescaped(e.propertyName || e.name)) - ) - ) - ); - } - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - exportFunction, - /*typeArguments*/ - void 0, - [factory2.createObjectLiteralExpression( - properties, - /*multiLine*/ - true - )] - ) - ) - ); - } else { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - exportFunction, - /*typeArguments*/ - void 0, - [ - factory2.createStringLiteral(moduleExportNameTextUnescaped(entry.exportClause.name)), - parameterName - ] - ) - ) - ); - } - } else { - statements.push( - factory2.createExpressionStatement( - factory2.createCallExpression( - exportStarFunction, - /*typeArguments*/ - void 0, - [parameterName] - ) - ) - ); - } - break; - } - } - setters.push( - factory2.createFunctionExpression( - /*modifiers*/ - void 0, - /*asteriskToken*/ - void 0, - /*name*/ - void 0, - /*typeParameters*/ - void 0, - [factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - parameterName - )], - /*type*/ - void 0, - factory2.createBlock( - statements, - /*multiLine*/ - true - ) - ) - ); - } - return factory2.createArrayLiteralExpression( - setters, - /*multiLine*/ - true - ); - } - function topLevelVisitor(node) { - switch (node.kind) { - case 272 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return visitImportEqualsDeclaration(node); - case 278 /* ExportDeclaration */: - return visitExportDeclaration(node); - case 277 /* ExportAssignment */: - return visitExportAssignment(node); - default: - return topLevelNestedVisitor(node); - } - } - function visitImportDeclaration(node) { - let statements; - if (node.importClause) { - hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile)); - } - return singleOrMany(appendExportsOfImportDeclaration(statements, node)); - } - function visitExportDeclaration(node) { - Debug.assertIsDefined(node); - return void 0; - } - function visitImportEqualsDeclaration(node) { - Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); - let statements; - hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile)); - return singleOrMany(appendExportsOfImportEqualsDeclaration(statements, node)); - } - function visitExportAssignment(node) { - if (node.isExportEquals) { - return void 0; - } - const expression = visitNode(node.expression, visitor, isExpression); - return createExportStatement( - factory2.createIdentifier("default"), - expression, - /*allowComments*/ - true - ); - } - function visitFunctionDeclaration(node) { - if (hasSyntacticModifier(node, 32 /* Export */)) { - hoistedStatements = append( - hoistedStatements, - factory2.updateFunctionDeclaration( - node, - visitNodes2(node.modifiers, modifierVisitor, isModifierLike), - node.asteriskToken, - factory2.getDeclarationName( - node, - /*allowComments*/ - true, - /*allowSourceMaps*/ - true - ), - /*typeParameters*/ - void 0, - visitNodes2(node.parameters, visitor, isParameter), - /*type*/ - void 0, - visitNode(node.body, visitor, isBlock) - ) - ); - } else { - hoistedStatements = append(hoistedStatements, visitEachChild(node, visitor, context)); - } - hoistedStatements = appendExportsOfHoistedDeclaration(hoistedStatements, node); - return void 0; - } - function visitClassDeclaration(node) { - let statements; - const name = factory2.getLocalName(node); - hoistVariableDeclaration(name); - statements = append( - statements, - setTextRange( - factory2.createExpressionStatement( - factory2.createAssignment( - name, - setTextRange( - factory2.createClassExpression( - visitNodes2(node.modifiers, modifierVisitor, isModifierLike), - node.name, - /*typeParameters*/ - void 0, - visitNodes2(node.heritageClauses, visitor, isHeritageClause), - visitNodes2(node.members, visitor, isClassElement) - ), - node - ) - ) - ), - node - ) - ); - statements = appendExportsOfHoistedDeclaration(statements, node); - return singleOrMany(statements); - } - function visitVariableStatement(node) { - if (!shouldHoistVariableDeclarationList(node.declarationList)) { - return visitNode(node, visitor, isStatement); - } - let statements; - if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { - const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); - const declarations = []; - for (const variable of node.declarationList.declarations) { - declarations.push(factory2.updateVariableDeclaration( - variable, - factory2.getGeneratedNameForNode(variable.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - transformInitializedVariable( - variable, - /*isExportedDeclaration*/ - false - ) - )); - } - const declarationList = factory2.updateVariableDeclarationList( - node.declarationList, - declarations - ); - statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); - } else { - let expressions; - const isExportedDeclaration = hasSyntacticModifier(node, 32 /* Export */); - for (const variable of node.declarationList.declarations) { - if (variable.initializer) { - expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); - } else { - hoistBindingElement(variable); - } - } - if (expressions) { - statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); - } - } - statements = appendExportsOfVariableStatement( - statements, - node, - /*exportSelf*/ - false - ); - return singleOrMany(statements); - } - function hoistBindingElement(node) { - if (isBindingPattern(node.name)) { - for (const element of node.name.elements) { - if (!isOmittedExpression(element)) { - hoistBindingElement(element); - } - } - } else { - hoistVariableDeclaration(factory2.cloneNode(node.name)); - } - } - function shouldHoistVariableDeclarationList(node) { - return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 307 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); - } - function transformInitializedVariable(node, isExportedDeclaration) { - const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; - return isBindingPattern(node.name) ? flattenDestructuringAssignment( - node, - visitor, - context, - 0 /* All */, - /*needsValue*/ - false, - createAssignment - ) : node.initializer ? createAssignment(node.name, visitNode(node.initializer, visitor, isExpression)) : node.name; - } - function createExportedVariableAssignment(name, value, location) { - return createVariableAssignment( - name, - value, - location, - /*isExportedDeclaration*/ - true - ); - } - function createNonExportedVariableAssignment(name, value, location) { - return createVariableAssignment( - name, - value, - location, - /*isExportedDeclaration*/ - false - ); - } - function createVariableAssignment(name, value, location, isExportedDeclaration) { - hoistVariableDeclaration(factory2.cloneNode(name)); - return isExportedDeclaration ? createExportExpression(name, preventSubstitution(setTextRange(factory2.createAssignment(name, value), location))) : preventSubstitution(setTextRange(factory2.createAssignment(name, value), location)); - } - function appendExportsOfImportDeclaration(statements, decl) { - if (moduleInfo.exportEquals) { - return statements; - } - const importClause = decl.importClause; - if (!importClause) { - return statements; - } - if (importClause.name) { - statements = appendExportsOfDeclaration(statements, importClause); - } - const namedBindings = importClause.namedBindings; - if (namedBindings) { - switch (namedBindings.kind) { - case 274 /* NamespaceImport */: - statements = appendExportsOfDeclaration(statements, namedBindings); - break; - case 275 /* NamedImports */: - for (const importBinding of namedBindings.elements) { - statements = appendExportsOfDeclaration(statements, importBinding); - } - break; - } - } - return statements; - } - function appendExportsOfImportEqualsDeclaration(statements, decl) { - if (moduleInfo.exportEquals) { - return statements; - } - return appendExportsOfDeclaration(statements, decl); - } - function appendExportsOfVariableStatement(statements, node, exportSelf) { - if (moduleInfo.exportEquals) { - return statements; - } - for (const decl of node.declarationList.declarations) { - if (decl.initializer || exportSelf) { - statements = appendExportsOfBindingElement(statements, decl, exportSelf); - } - } - return statements; - } - function appendExportsOfBindingElement(statements, decl, exportSelf) { - if (moduleInfo.exportEquals) { - return statements; - } - if (isBindingPattern(decl.name)) { - for (const element of decl.name.elements) { - if (!isOmittedExpression(element)) { - statements = appendExportsOfBindingElement(statements, element, exportSelf); - } - } - } else if (!isGeneratedIdentifier(decl.name)) { - let excludeName; - if (exportSelf) { - statements = appendExportStatement(statements, decl.name, factory2.getLocalName(decl)); - excludeName = idText(decl.name); - } - statements = appendExportsOfDeclaration(statements, decl, excludeName); - } - return statements; - } - function appendExportsOfHoistedDeclaration(statements, decl) { - if (moduleInfo.exportEquals) { - return statements; - } - let excludeName; - if (hasSyntacticModifier(decl, 32 /* Export */)) { - const exportName = hasSyntacticModifier(decl, 2048 /* Default */) ? factory2.createStringLiteral("default") : decl.name; - statements = appendExportStatement(statements, exportName, factory2.getLocalName(decl)); - excludeName = getTextOfIdentifierOrLiteral(exportName); - } - if (decl.name) { - statements = appendExportsOfDeclaration(statements, decl, excludeName); - } - return statements; - } - function appendExportsOfDeclaration(statements, decl, excludeName) { - if (moduleInfo.exportEquals) { - return statements; - } - const name = factory2.getDeclarationName(decl); - const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); - if (exportSpecifiers) { - for (const exportSpecifier of exportSpecifiers) { - if (moduleExportNameTextUnescaped(exportSpecifier.name) !== excludeName) { - statements = appendExportStatement(statements, exportSpecifier.name, name); - } - } - } - return statements; - } - function appendExportStatement(statements, exportName, expression, allowComments) { - statements = append(statements, createExportStatement(exportName, expression, allowComments)); - return statements; - } - function createExportStatement(name, value, allowComments) { - const statement = factory2.createExpressionStatement(createExportExpression(name, value)); - startOnNewLine(statement); - if (!allowComments) { - setEmitFlags(statement, 3072 /* NoComments */); - } - return statement; - } - function createExportExpression(name, value) { - const exportName = isIdentifier(name) ? factory2.createStringLiteralFromNode(name) : name; - setEmitFlags(value, getEmitFlags(value) | 3072 /* NoComments */); - return setCommentRange(factory2.createCallExpression( - exportFunction, - /*typeArguments*/ - void 0, - [exportName, value] - ), value); - } - function topLevelNestedVisitor(node) { - switch (node.kind) { - case 243 /* VariableStatement */: - return visitVariableStatement(node); - case 262 /* FunctionDeclaration */: - return visitFunctionDeclaration(node); - case 263 /* ClassDeclaration */: - return visitClassDeclaration(node); - case 248 /* ForStatement */: - return visitForStatement( - node, - /*isTopLevel*/ - true - ); - case 249 /* ForInStatement */: - return visitForInStatement(node); - case 250 /* ForOfStatement */: - return visitForOfStatement(node); - case 246 /* DoStatement */: - return visitDoStatement(node); - case 247 /* WhileStatement */: - return visitWhileStatement(node); - case 256 /* LabeledStatement */: - return visitLabeledStatement(node); - case 254 /* WithStatement */: - return visitWithStatement(node); - case 245 /* IfStatement */: - return visitIfStatement(node); - case 255 /* SwitchStatement */: - return visitSwitchStatement(node); - case 269 /* CaseBlock */: - return visitCaseBlock(node); - case 296 /* CaseClause */: - return visitCaseClause(node); - case 297 /* DefaultClause */: - return visitDefaultClause(node); - case 258 /* TryStatement */: - return visitTryStatement(node); - case 299 /* CatchClause */: - return visitCatchClause(node); - case 241 /* Block */: - return visitBlock(node); - default: - return visitor(node); - } - } - function visitForStatement(node, isTopLevel) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = factory2.updateForStatement( - node, - visitNode(node.initializer, isTopLevel ? visitForInitializer : discardedValueVisitor, isForInitializer), - visitNode(node.condition, visitor, isExpression), - visitNode(node.incrementor, discardedValueVisitor, isExpression), - visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context) - ); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function visitForInStatement(node) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = factory2.updateForInStatement( - node, - visitForInitializer(node.initializer), - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function visitForOfStatement(node) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = factory2.updateForOfStatement( - node, - node.awaitModifier, - visitForInitializer(node.initializer), - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function shouldHoistForInitializer(node) { - return isVariableDeclarationList(node) && shouldHoistVariableDeclarationList(node); - } - function visitForInitializer(node) { - if (shouldHoistForInitializer(node)) { - let expressions; - for (const variable of node.declarations) { - expressions = append(expressions, transformInitializedVariable( - variable, - /*isExportedDeclaration*/ - false - )); - if (!variable.initializer) { - hoistBindingElement(variable); - } - } - return expressions ? factory2.inlineExpressions(expressions) : factory2.createOmittedExpression(); - } else { - return visitNode(node, discardedValueVisitor, isForInitializer); - } - } - function visitDoStatement(node) { - return factory2.updateDoStatement( - node, - visitIterationBody(node.statement, topLevelNestedVisitor, context), - visitNode(node.expression, visitor, isExpression) - ); - } - function visitWhileStatement(node) { - return factory2.updateWhileStatement( - node, - visitNode(node.expression, visitor, isExpression), - visitIterationBody(node.statement, topLevelNestedVisitor, context) - ); - } - function visitLabeledStatement(node) { - return factory2.updateLabeledStatement( - node, - node.label, - visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createExpressionStatement(factory2.createIdentifier("")) - ); - } - function visitWithStatement(node) { - return factory2.updateWithStatement( - node, - visitNode(node.expression, visitor, isExpression), - Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) - ); - } - function visitIfStatement(node) { - return factory2.updateIfStatement( - node, - visitNode(node.expression, visitor, isExpression), - visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createBlock([]), - visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) - ); - } - function visitSwitchStatement(node) { - return factory2.updateSwitchStatement( - node, - visitNode(node.expression, visitor, isExpression), - Debug.checkDefined(visitNode(node.caseBlock, topLevelNestedVisitor, isCaseBlock)) - ); - } - function visitCaseBlock(node) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = factory2.updateCaseBlock( - node, - visitNodes2(node.clauses, topLevelNestedVisitor, isCaseOrDefaultClause) - ); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function visitCaseClause(node) { - return factory2.updateCaseClause( - node, - visitNode(node.expression, visitor, isExpression), - visitNodes2(node.statements, topLevelNestedVisitor, isStatement) - ); - } - function visitDefaultClause(node) { - return visitEachChild(node, topLevelNestedVisitor, context); - } - function visitTryStatement(node) { - return visitEachChild(node, topLevelNestedVisitor, context); - } - function visitCatchClause(node) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = factory2.updateCatchClause( - node, - node.variableDeclaration, - Debug.checkDefined(visitNode(node.block, topLevelNestedVisitor, isBlock)) - ); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function visitBlock(node) { - const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; - enclosingBlockScopedContainer = node; - node = visitEachChild(node, topLevelNestedVisitor, context); - enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; - return node; - } - function visitorWorker(node, valueIsDiscarded) { - if (!(node.transformFlags & (4096 /* ContainsDestructuringAssignment */ | 8388608 /* ContainsDynamicImport */ | 268435456 /* ContainsUpdateExpressionForIdentifier */))) { - return node; - } - switch (node.kind) { - case 248 /* ForStatement */: - return visitForStatement( - node, - /*isTopLevel*/ - false - ); - case 244 /* ExpressionStatement */: - return visitExpressionStatement(node); - case 217 /* ParenthesizedExpression */: - return visitParenthesizedExpression(node, valueIsDiscarded); - case 355 /* PartiallyEmittedExpression */: - return visitPartiallyEmittedExpression(node, valueIsDiscarded); - case 226 /* BinaryExpression */: - if (isDestructuringAssignment(node)) { - return visitDestructuringAssignment(node, valueIsDiscarded); - } - break; - case 213 /* CallExpression */: - if (isImportCall(node)) { - return visitImportCallExpression(node); - } - break; - case 224 /* PrefixUnaryExpression */: - case 225 /* PostfixUnaryExpression */: - return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); - } - return visitEachChild(node, visitor, context); - } - function visitor(node) { - return visitorWorker( - node, - /*valueIsDiscarded*/ - false - ); - } - function discardedValueVisitor(node) { - return visitorWorker( - node, - /*valueIsDiscarded*/ - true - ); - } - function visitExpressionStatement(node) { - return factory2.updateExpressionStatement(node, visitNode(node.expression, discardedValueVisitor, isExpression)); - } - function visitParenthesizedExpression(node, valueIsDiscarded) { - return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); - } - function visitPartiallyEmittedExpression(node, valueIsDiscarded) { - return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); - } - function visitImportCallExpression(node) { - const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions); - const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression); - const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument; - return factory2.createCallExpression( - factory2.createPropertyAccessExpression( - contextObject, - factory2.createIdentifier("import") - ), - /*typeArguments*/ - void 0, - argument ? [argument] : [] - ); - } - function visitDestructuringAssignment(node, valueIsDiscarded) { - if (hasExportedReferenceInDestructuringTarget(node.left)) { - return flattenDestructuringAssignment( - node, - visitor, - context, - 0 /* All */, - !valueIsDiscarded - ); - } - return visitEachChild(node, visitor, context); - } - function hasExportedReferenceInDestructuringTarget(node) { - if (isAssignmentExpression( - node, - /*excludeCompoundAssignment*/ - true - )) { - return hasExportedReferenceInDestructuringTarget(node.left); - } else if (isSpreadElement(node)) { - return hasExportedReferenceInDestructuringTarget(node.expression); - } else if (isObjectLiteralExpression(node)) { - return some(node.properties, hasExportedReferenceInDestructuringTarget); - } else if (isArrayLiteralExpression(node)) { - return some(node.elements, hasExportedReferenceInDestructuringTarget); - } else if (isShorthandPropertyAssignment(node)) { - return hasExportedReferenceInDestructuringTarget(node.name); - } else if (isPropertyAssignment(node)) { - return hasExportedReferenceInDestructuringTarget(node.initializer); - } else if (isIdentifier(node)) { - const container = resolver.getReferencedExportContainer(node); - return container !== void 0 && container.kind === 307 /* SourceFile */; - } else { - return false; - } - } - function visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded) { - if ((node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) { - const exportedNames = getExports(node.operand); - if (exportedNames) { - let temp; - let expression = visitNode(node.operand, visitor, isExpression); - if (isPrefixUnaryExpression(node)) { - expression = factory2.updatePrefixUnaryExpression(node, expression); - } else { - expression = factory2.updatePostfixUnaryExpression(node, expression); - if (!valueIsDiscarded) { - temp = factory2.createTempVariable(hoistVariableDeclaration); - expression = factory2.createAssignment(temp, expression); - setTextRange(expression, node); - } - expression = factory2.createComma(expression, factory2.cloneNode(node.operand)); - setTextRange(expression, node); - } - for (const exportName of exportedNames) { - expression = createExportExpression(exportName, preventSubstitution(expression)); - } - if (temp) { - expression = factory2.createComma(expression, temp); - setTextRange(expression, node); - } - return expression; - } - } - return visitEachChild(node, visitor, context); - } - function modifierVisitor(node) { - switch (node.kind) { - case 95 /* ExportKeyword */: - case 90 /* DefaultKeyword */: - return void 0; - } - return node; - } - function onEmitNode(hint, node, emitCallback) { - if (node.kind === 307 /* SourceFile */) { - const id = getOriginalNodeId(node); - currentSourceFile = node; - moduleInfo = moduleInfoMap[id]; - exportFunction = exportFunctionsMap[id]; - noSubstitution = noSubstitutionMap[id]; - contextObject = contextObjectMap[id]; - if (noSubstitution) { - delete noSubstitutionMap[id]; - } - previousOnEmitNode(hint, node, emitCallback); - currentSourceFile = void 0; - moduleInfo = void 0; - exportFunction = void 0; - contextObject = void 0; - noSubstitution = void 0; - } else { - previousOnEmitNode(hint, node, emitCallback); - } - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (isSubstitutionPrevented(node)) { - return node; - } - if (hint === 1 /* Expression */) { - return substituteExpression(node); - } else if (hint === 4 /* Unspecified */) { - return substituteUnspecified(node); - } - return node; - } - function substituteUnspecified(node) { - switch (node.kind) { - case 304 /* ShorthandPropertyAssignment */: - return substituteShorthandPropertyAssignment(node); - } - return node; - } - function substituteShorthandPropertyAssignment(node) { - var _a, _b; - const name = node.name; - if (!isGeneratedIdentifier(name) && !isLocalName(name)) { - const importDeclaration = resolver.getReferencedImportDeclaration(name); - if (importDeclaration) { - if (isImportClause(importDeclaration)) { - return setTextRange( - factory2.createPropertyAssignment( - factory2.cloneNode(name), - factory2.createPropertyAccessExpression( - factory2.getGeneratedNameForNode(importDeclaration.parent), - factory2.createIdentifier("default") - ) - ), - /*location*/ - node - ); - } else if (isImportSpecifier(importDeclaration)) { - const importedName = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); - return setTextRange( - factory2.createPropertyAssignment( - factory2.cloneNode(name), - importedName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(importedName)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(importedName)) - ), - /*location*/ - node - ); - } - } - } - return node; - } - function substituteExpression(node) { - switch (node.kind) { - case 80 /* Identifier */: - return substituteExpressionIdentifier(node); - case 226 /* BinaryExpression */: - return substituteBinaryExpression(node); - case 236 /* MetaProperty */: - return substituteMetaProperty(node); - } - return node; - } - function substituteExpressionIdentifier(node) { - var _a, _b; - if (getEmitFlags(node) & 8192 /* HelperName */) { - const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile); - if (externalHelpersModuleName) { - return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); - } - return node; - } - if (!isGeneratedIdentifier(node) && !isLocalName(node)) { - const importDeclaration = resolver.getReferencedImportDeclaration(node); - if (importDeclaration) { - if (isImportClause(importDeclaration)) { - return setTextRange( - factory2.createPropertyAccessExpression( - factory2.getGeneratedNameForNode(importDeclaration.parent), - factory2.createIdentifier("default") - ), - /*location*/ - node - ); - } else if (isImportSpecifier(importDeclaration)) { - const importedName = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); - return setTextRange( - importedName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(importedName)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(importedName)), - /*location*/ - node - ); - } - } - } - return node; - } - function substituteBinaryExpression(node) { - if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { - const exportedNames = getExports(node.left); - if (exportedNames) { - let expression = node; - for (const exportName of exportedNames) { - expression = createExportExpression(exportName, preventSubstitution(expression)); - } - return expression; - } - } - return node; - } - function substituteMetaProperty(node) { - if (isImportMeta(node)) { - return factory2.createPropertyAccessExpression(contextObject, factory2.createIdentifier("meta")); - } - return node; - } - function getExports(name) { - let exportedNames; - const valueDeclaration = getReferencedDeclaration(name); - if (valueDeclaration) { - const exportContainer = resolver.getReferencedExportContainer( - name, - /*prefixLocals*/ - false - ); - if (exportContainer && exportContainer.kind === 307 /* SourceFile */) { - exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); - } - exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); - } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { - const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); - if (exportSpecifiers) { - const exportedNames2 = []; - for (const exportSpecifier of exportSpecifiers) { - exportedNames2.push(exportSpecifier.name); - } - return exportedNames2; - } - } - return exportedNames; - } - function getReferencedDeclaration(name) { - if (!isGeneratedIdentifier(name)) { - const importDeclaration = resolver.getReferencedImportDeclaration(name); - if (importDeclaration) return importDeclaration; - const valueDeclaration = resolver.getReferencedValueDeclaration(name); - if (valueDeclaration && (moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)])) return valueDeclaration; - const declarations = resolver.getReferencedValueDeclarations(name); - if (declarations) { - for (const declaration of declarations) { - if (declaration !== valueDeclaration && (moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(declaration)])) return declaration; - } - } - return valueDeclaration; - } - } - function preventSubstitution(node) { - if (noSubstitution === void 0) noSubstitution = []; - noSubstitution[getNodeId(node)] = true; - return node; - } - function isSubstitutionPrevented(node) { - return noSubstitution && node.id && noSubstitution[node.id]; - } -} - -// src/compiler/transformers/module/esnextAnd2015.ts -function transformECMAScriptModule(context) { - const { - factory: factory2, - getEmitHelperFactory: emitHelpers - } = context; - const host = context.getEmitHost(); - const resolver = context.getEmitResolver(); - const compilerOptions = context.getCompilerOptions(); - const languageVersion = getEmitScriptTarget(compilerOptions); - const previousOnEmitNode = context.onEmitNode; - const previousOnSubstituteNode = context.onSubstituteNode; - context.onEmitNode = onEmitNode; - context.onSubstituteNode = onSubstituteNode; - context.enableEmitNotification(307 /* SourceFile */); - context.enableSubstitution(80 /* Identifier */); - const noSubstitution = /* @__PURE__ */ new Set(); - let importsAndRequiresToRewriteOrShim; - let helperNameSubstitutions; - let currentSourceFile; - let importRequireStatements; - return chainBundle(context, transformSourceFile); - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - if (isExternalModule(node) || getIsolatedModules(compilerOptions)) { - currentSourceFile = node; - importRequireStatements = void 0; - if (compilerOptions.rewriteRelativeImportExtensions && (currentSourceFile.flags & 4194304 /* PossiblyContainsDynamicImport */ || isInJSFile(node))) { - forEachDynamicImportOrRequireCall( - node, - /*includeTypeSpaceImports*/ - false, - /*requireStringLiteralLikeArgument*/ - false, - (node2) => { - if (!isStringLiteralLike(node2.arguments[0]) || shouldRewriteModuleSpecifier(node2.arguments[0].text, compilerOptions)) { - importsAndRequiresToRewriteOrShim = append(importsAndRequiresToRewriteOrShim, node2); - } - } - ); - } - let result = updateExternalModule(node); - addEmitHelpers(result, context.readEmitHelpers()); - currentSourceFile = void 0; - if (importRequireStatements) { - result = factory2.updateSourceFile( - result, - setTextRange(factory2.createNodeArray(insertStatementsAfterCustomPrologue(result.statements.slice(), importRequireStatements)), result.statements) - ); - } - if (!isExternalModule(node) || getEmitModuleKind(compilerOptions) === 200 /* Preserve */ || some(result.statements, isExternalModuleIndicator)) { - return result; - } - return factory2.updateSourceFile( - result, - setTextRange(factory2.createNodeArray([...result.statements, createEmptyExports(factory2)]), result.statements) - ); - } - return node; - } - function updateExternalModule(node) { - const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(factory2, emitHelpers(), node, compilerOptions); - if (externalHelpersImportDeclaration) { - const statements = []; - const statementOffset = factory2.copyPrologue(node.statements, statements); - addRange(statements, visitArray([externalHelpersImportDeclaration], visitor, isStatement)); - addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset)); - return factory2.updateSourceFile( - node, - setTextRange(factory2.createNodeArray(statements), node.statements) - ); - } else { - return visitEachChild(node, visitor, context); - } - } - function visitor(node) { - switch (node.kind) { - case 271 /* ImportEqualsDeclaration */: - return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; - case 277 /* ExportAssignment */: - return visitExportAssignment(node); - case 278 /* ExportDeclaration */: - const exportDecl = node; - return visitExportDeclaration(exportDecl); - case 272 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 213 /* CallExpression */: - if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) { - return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift()); - } - // fallthrough - default: - if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) { - return visitEachChild(node, visitor, context); - } - } - return node; - } - function visitImportDeclaration(node) { - if (!compilerOptions.rewriteRelativeImportExtensions) { - return node; - } - const updatedModuleSpecifier = rewriteModuleSpecifier(node.moduleSpecifier, compilerOptions); - if (updatedModuleSpecifier === node.moduleSpecifier) { - return node; - } - return factory2.updateImportDeclaration( - node, - node.modifiers, - node.importClause, - updatedModuleSpecifier, - node.attributes - ); - } - function visitImportOrRequireCall(node) { - return factory2.updateCallExpression( - node, - node.expression, - node.typeArguments, - [ - isStringLiteralLike(node.arguments[0]) ? rewriteModuleSpecifier(node.arguments[0], compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(node.arguments[0]), - ...node.arguments.slice(1) - ] - ); - } - function createRequireCall(importNode) { - const moduleName = getExternalModuleNameLiteral(factory2, importNode, Debug.checkDefined(currentSourceFile), host, resolver, compilerOptions); - const args = []; - if (moduleName) { - args.push(rewriteModuleSpecifier(moduleName, compilerOptions)); - } - if (getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { - return factory2.createCallExpression( - factory2.createIdentifier("require"), - /*typeArguments*/ - void 0, - args - ); - } - if (!importRequireStatements) { - const createRequireName = factory2.createUniqueName("_createRequire", 16 /* Optimistic */ | 32 /* FileLevel */); - const importStatement = factory2.createImportDeclaration( - /*modifiers*/ - void 0, - factory2.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - factory2.createNamedImports([ - factory2.createImportSpecifier( - /*isTypeOnly*/ - false, - factory2.createIdentifier("createRequire"), - createRequireName - ) - ]) - ), - factory2.createStringLiteral("module"), - /*attributes*/ - void 0 - ); - const requireHelperName = factory2.createUniqueName("__require", 16 /* Optimistic */ | 32 /* FileLevel */); - const requireStatement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [ - factory2.createVariableDeclaration( - requireHelperName, - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - factory2.createCallExpression( - factory2.cloneNode(createRequireName), - /*typeArguments*/ - void 0, - [ - factory2.createPropertyAccessExpression(factory2.createMetaProperty(102 /* ImportKeyword */, factory2.createIdentifier("meta")), factory2.createIdentifier("url")) - ] - ) - ) - ], - /*flags*/ - languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ - ) - ); - importRequireStatements = [importStatement, requireStatement]; - } - const name = importRequireStatements[1].declarationList.declarations[0].name; - Debug.assertNode(name, isIdentifier); - return factory2.createCallExpression( - factory2.cloneNode(name), - /*typeArguments*/ - void 0, - args - ); - } - function visitImportEqualsDeclaration(node) { - Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); - let statements; - statements = append( - statements, - setOriginalNode( - setTextRange( - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - [ - factory2.createVariableDeclaration( - factory2.cloneNode(node.name), - /*exclamationToken*/ - void 0, - /*type*/ - void 0, - createRequireCall(node) - ) - ], - /*flags*/ - languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ - ) - ), - node - ), - node - ) - ); - statements = appendExportsOfImportEqualsDeclaration(statements, node); - return singleOrMany(statements); - } - function appendExportsOfImportEqualsDeclaration(statements, node) { - if (hasSyntacticModifier(node, 32 /* Export */)) { - statements = append( - statements, - factory2.createExportDeclaration( - /*modifiers*/ - void 0, - node.isTypeOnly, - factory2.createNamedExports([factory2.createExportSpecifier( - /*isTypeOnly*/ - false, - /*propertyName*/ - void 0, - idText(node.name) - )]) - ) - ); - } - return statements; - } - function visitExportAssignment(node) { - if (node.isExportEquals) { - if (getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { - const statement = setOriginalNode( - factory2.createExpressionStatement( - factory2.createAssignment( - factory2.createPropertyAccessExpression( - factory2.createIdentifier("module"), - "exports" - ), - node.expression - ) - ), - node - ); - return statement; - } - return void 0; - } - return node; - } - function visitExportDeclaration(node) { - const updatedModuleSpecifier = rewriteModuleSpecifier(node.moduleSpecifier, compilerOptions); - if (compilerOptions.module !== void 0 && compilerOptions.module > 5 /* ES2015 */ || !node.exportClause || !isNamespaceExport(node.exportClause) || !node.moduleSpecifier) { - return !node.moduleSpecifier || updatedModuleSpecifier === node.moduleSpecifier ? node : factory2.updateExportDeclaration( - node, - node.modifiers, - node.isTypeOnly, - node.exportClause, - updatedModuleSpecifier, - node.attributes - ); - } - const oldIdentifier = node.exportClause.name; - const synthName = factory2.getGeneratedNameForNode(oldIdentifier); - const importDecl = factory2.createImportDeclaration( - /*modifiers*/ - void 0, - factory2.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - factory2.createNamespaceImport( - synthName - ) - ), - updatedModuleSpecifier, - node.attributes - ); - setOriginalNode(importDecl, node.exportClause); - const exportDecl = isExportNamespaceAsDefaultDeclaration(node) ? factory2.createExportDefault(synthName) : factory2.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory2.createNamedExports([factory2.createExportSpecifier( - /*isTypeOnly*/ - false, - synthName, - oldIdentifier - )]) - ); - setOriginalNode(exportDecl, node); - return [importDecl, exportDecl]; - } - function onEmitNode(hint, node, emitCallback) { - if (isSourceFile(node)) { - if ((isExternalModule(node) || getIsolatedModules(compilerOptions)) && compilerOptions.importHelpers) { - helperNameSubstitutions = /* @__PURE__ */ new Map(); - } - currentSourceFile = node; - previousOnEmitNode(hint, node, emitCallback); - currentSourceFile = void 0; - helperNameSubstitutions = void 0; - } else { - previousOnEmitNode(hint, node, emitCallback); - } - } - function onSubstituteNode(hint, node) { - node = previousOnSubstituteNode(hint, node); - if (node.id && noSubstitution.has(node.id)) { - return node; - } - if (isIdentifier(node) && getEmitFlags(node) & 8192 /* HelperName */) { - return substituteHelperName(node); - } - return node; - } - function substituteHelperName(node) { - const externalHelpersModuleName = currentSourceFile && getExternalHelpersModuleName(currentSourceFile); - if (externalHelpersModuleName) { - noSubstitution.add(getNodeId(node)); - return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); - } - if (helperNameSubstitutions) { - const name = idText(node); - let substitution = helperNameSubstitutions.get(name); - if (!substitution) { - helperNameSubstitutions.set(name, substitution = factory2.createUniqueName(name, 16 /* Optimistic */ | 32 /* FileLevel */)); - } - return substitution; - } - return node; - } -} - -// src/compiler/transformers/module/impliedNodeFormatDependent.ts -function transformImpliedNodeFormatDependentModule(context) { - const previousOnSubstituteNode = context.onSubstituteNode; - const previousOnEmitNode = context.onEmitNode; - const esmTransform = transformECMAScriptModule(context); - const esmOnSubstituteNode = context.onSubstituteNode; - const esmOnEmitNode = context.onEmitNode; - context.onSubstituteNode = previousOnSubstituteNode; - context.onEmitNode = previousOnEmitNode; - const cjsTransform = transformModule(context); - const cjsOnSubstituteNode = context.onSubstituteNode; - const cjsOnEmitNode = context.onEmitNode; - const getEmitModuleFormatOfFile = (file) => context.getEmitHost().getEmitModuleFormatOfFile(file); - context.onSubstituteNode = onSubstituteNode; - context.onEmitNode = onEmitNode; - context.enableSubstitution(307 /* SourceFile */); - context.enableEmitNotification(307 /* SourceFile */); - let currentSourceFile; - return transformSourceFileOrBundle; - function onSubstituteNode(hint, node) { - if (isSourceFile(node)) { - currentSourceFile = node; - return previousOnSubstituteNode(hint, node); - } else { - if (!currentSourceFile) { - return previousOnSubstituteNode(hint, node); - } - if (getEmitModuleFormatOfFile(currentSourceFile) >= 5 /* ES2015 */) { - return esmOnSubstituteNode(hint, node); - } - return cjsOnSubstituteNode(hint, node); - } - } - function onEmitNode(hint, node, emitCallback) { - if (isSourceFile(node)) { - currentSourceFile = node; - } - if (!currentSourceFile) { - return previousOnEmitNode(hint, node, emitCallback); - } - if (getEmitModuleFormatOfFile(currentSourceFile) >= 5 /* ES2015 */) { - return esmOnEmitNode(hint, node, emitCallback); - } - return cjsOnEmitNode(hint, node, emitCallback); - } - function getModuleTransformForFile(file) { - return getEmitModuleFormatOfFile(file) >= 5 /* ES2015 */ ? esmTransform : cjsTransform; - } - function transformSourceFile(node) { - if (node.isDeclarationFile) { - return node; - } - currentSourceFile = node; - const result = getModuleTransformForFile(node)(node); - currentSourceFile = void 0; - Debug.assert(isSourceFile(result)); - return result; - } - function transformSourceFileOrBundle(node) { - return node.kind === 307 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); - } - function transformBundle(node) { - return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); - } -} - -// src/compiler/transformers/declarations/diagnostics.ts -function canProduceDiagnostics(node) { - return isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isBindingElement(node) || isSetAccessor(node) || isGetAccessor(node) || isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isParameter(node) || isTypeParameterDeclaration(node) || isExpressionWithTypeArguments(node) || isImportEqualsDeclaration(node) || isTypeAliasDeclaration(node) || isConstructorDeclaration(node) || isIndexSignatureDeclaration(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node) || isBinaryExpression(node) || isJSDocTypeAlias(node); -} -function createGetSymbolAccessibilityDiagnosticForNodeName(node) { - if (isSetAccessor(node) || isGetAccessor(node)) { - return getAccessorNameVisibilityError; - } else if (isMethodSignature(node) || isMethodDeclaration(node)) { - return getMethodNameVisibilityError; - } else { - return createGetSymbolAccessibilityDiagnosticForNode(node); - } - function getAccessorNameVisibilityError(symbolAccessibilityResult) { - const diagnosticMessage = getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult); - return diagnosticMessage !== void 0 ? { - diagnosticMessage, - errorNode: node, - typeName: node.name - } : void 0; - } - function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (isStatic(node)) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 263 /* ClassDeclaration */) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; - } else { - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; - } - } - function getMethodNameVisibilityError(symbolAccessibilityResult) { - const diagnosticMessage = getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult); - return diagnosticMessage !== void 0 ? { - diagnosticMessage, - errorNode: node, - typeName: node.name - } : void 0; - } - function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (isStatic(node)) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 263 /* ClassDeclaration */) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; - } else { - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; - } - } -} -function createGetSymbolAccessibilityDiagnosticForNode(node) { - if (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node) || isBinaryExpression(node) || isBindingElement(node) || isConstructorDeclaration(node)) { - return getVariableDeclarationTypeVisibilityError; - } else if (isSetAccessor(node) || isGetAccessor(node)) { - return getAccessorDeclarationTypeVisibilityError; - } else if (isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isIndexSignatureDeclaration(node)) { - return getReturnTypeVisibilityError; - } else if (isParameter(node)) { - if (isParameterPropertyDeclaration(node, node.parent) && hasSyntacticModifier(node.parent, 2 /* Private */)) { - return getVariableDeclarationTypeVisibilityError; - } - return getParameterDeclarationTypeVisibilityError; - } else if (isTypeParameterDeclaration(node)) { - return getTypeParameterConstraintVisibilityError; - } else if (isExpressionWithTypeArguments(node)) { - return getHeritageClauseVisibilityError; - } else if (isImportEqualsDeclaration(node)) { - return getImportEntityNameVisibilityError; - } else if (isTypeAliasDeclaration(node) || isJSDocTypeAlias(node)) { - return getTypeAliasDeclarationVisibilityError; - } else { - return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); - } - function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; - } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 2 /* Private */)) { - if (isStatic(node)) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; - } else { - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; - } - } - } - function getVariableDeclarationTypeVisibilityError(symbolAccessibilityResult) { - const diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult); - return diagnosticMessage !== void 0 ? { - diagnosticMessage, - errorNode: node, - typeName: node.name - } : void 0; - } - function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { - let diagnosticMessage; - if (node.kind === 178 /* SetAccessor */) { - if (isStatic(node)) { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; - } else { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1; - } - } else { - if (isStatic(node)) { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1; - } else { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1; - } - } - return { - diagnosticMessage, - errorNode: node.name, - typeName: node.name - }; - } - function getReturnTypeVisibilityError(symbolAccessibilityResult) { - let diagnosticMessage; - switch (node.kind) { - case 180 /* ConstructSignature */: - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; - break; - case 179 /* CallSignature */: - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; - break; - case 181 /* IndexSignature */: - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; - break; - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - if (isStatic(node)) { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; - } else if (node.parent.kind === 263 /* ClassDeclaration */) { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; - } else { - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; - } - break; - case 262 /* FunctionDeclaration */: - diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; - break; - default: - return Debug.fail("This is unknown kind for signature: " + node.kind); - } - return { - diagnosticMessage, - errorNode: node.name || node - }; - } - function getParameterDeclarationTypeVisibilityError(symbolAccessibilityResult) { - const diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult); - return diagnosticMessage !== void 0 ? { - diagnosticMessage, - errorNode: node, - typeName: node.name - } : void 0; - } - function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { - switch (node.parent.kind) { - case 176 /* Constructor */: - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; - case 180 /* ConstructSignature */: - case 185 /* ConstructorType */: - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - case 179 /* CallSignature */: - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - case 181 /* IndexSignature */: - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - if (isStatic(node.parent)) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; - } else { - return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; - } - case 262 /* FunctionDeclaration */: - case 184 /* FunctionType */: - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; - case 178 /* SetAccessor */: - case 177 /* GetAccessor */: - return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; - default: - return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); - } - } - function getTypeParameterConstraintVisibilityError() { - let diagnosticMessage; - switch (node.parent.kind) { - case 263 /* ClassDeclaration */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; - break; - case 264 /* InterfaceDeclaration */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; - break; - case 200 /* MappedType */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; - break; - case 185 /* ConstructorType */: - case 180 /* ConstructSignature */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; - break; - case 179 /* CallSignature */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; - break; - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - if (isStatic(node.parent)) { - diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; - } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { - diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; - } else { - diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; - } - break; - case 184 /* FunctionType */: - case 262 /* FunctionDeclaration */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; - break; - case 195 /* InferType */: - diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; - break; - case 265 /* TypeAliasDeclaration */: - diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; - break; - default: - return Debug.fail("This is unknown parent for type parameter: " + node.parent.kind); - } - return { - diagnosticMessage, - errorNode: node, - typeName: node.name - }; - } - function getHeritageClauseVisibilityError() { - let diagnosticMessage; - if (isClassDeclaration(node.parent.parent)) { - diagnosticMessage = isHeritageClause(node.parent) && node.parent.token === 119 /* ImplementsKeyword */ ? Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : node.parent.parent.name ? Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1 : Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0; - } else { - diagnosticMessage = Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; - } - return { - diagnosticMessage, - errorNode: node, - typeName: getNameOfDeclaration(node.parent.parent) - }; - } - function getImportEntityNameVisibilityError() { - return { - diagnosticMessage: Diagnostics.Import_declaration_0_is_using_private_name_1, - errorNode: node, - typeName: node.name - }; - } - function getTypeAliasDeclarationVisibilityError(symbolAccessibilityResult) { - return { - diagnosticMessage: symbolAccessibilityResult.errorModuleName ? Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2 : Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1, - errorNode: isJSDocTypeAlias(node) ? Debug.checkDefined(node.typeExpression) : node.type, - typeName: isJSDocTypeAlias(node) ? getNameOfDeclaration(node) : node.name - }; - } -} -function createGetIsolatedDeclarationErrors(resolver) { - const relatedSuggestionByDeclarationKind = { - [219 /* ArrowFunction */]: Diagnostics.Add_a_return_type_to_the_function_expression, - [218 /* FunctionExpression */]: Diagnostics.Add_a_return_type_to_the_function_expression, - [174 /* MethodDeclaration */]: Diagnostics.Add_a_return_type_to_the_method, - [177 /* GetAccessor */]: Diagnostics.Add_a_return_type_to_the_get_accessor_declaration, - [178 /* SetAccessor */]: Diagnostics.Add_a_type_to_parameter_of_the_set_accessor_declaration, - [262 /* FunctionDeclaration */]: Diagnostics.Add_a_return_type_to_the_function_declaration, - [180 /* ConstructSignature */]: Diagnostics.Add_a_return_type_to_the_function_declaration, - [169 /* Parameter */]: Diagnostics.Add_a_type_annotation_to_the_parameter_0, - [260 /* VariableDeclaration */]: Diagnostics.Add_a_type_annotation_to_the_variable_0, - [172 /* PropertyDeclaration */]: Diagnostics.Add_a_type_annotation_to_the_property_0, - [171 /* PropertySignature */]: Diagnostics.Add_a_type_annotation_to_the_property_0, - [277 /* ExportAssignment */]: Diagnostics.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it - }; - const errorByDeclarationKind = { - [218 /* FunctionExpression */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [262 /* FunctionDeclaration */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [219 /* ArrowFunction */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [174 /* MethodDeclaration */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [180 /* ConstructSignature */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [177 /* GetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [178 /* SetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [169 /* Parameter */]: Diagnostics.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [260 /* VariableDeclaration */]: Diagnostics.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [172 /* PropertyDeclaration */]: Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [171 /* PropertySignature */]: Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [167 /* ComputedPropertyName */]: Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations, - [305 /* SpreadAssignment */]: Diagnostics.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations, - [304 /* ShorthandPropertyAssignment */]: Diagnostics.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations, - [209 /* ArrayLiteralExpression */]: Diagnostics.Only_const_arrays_can_be_inferred_with_isolatedDeclarations, - [277 /* ExportAssignment */]: Diagnostics.Default_exports_can_t_be_inferred_with_isolatedDeclarations, - [230 /* SpreadElement */]: Diagnostics.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations - }; - return getDiagnostic; - function getDiagnostic(node) { - const heritageClause = findAncestor(node, isHeritageClause); - if (heritageClause) { - return createDiagnosticForNode(node, Diagnostics.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations); - } - if ((isPartOfTypeNode(node) || isTypeQueryNode(node.parent)) && (isEntityName(node) || isEntityNameExpression(node))) { - return createEntityInTypeNodeError(node); - } - Debug.type(node); - switch (node.kind) { - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return createAccessorTypeError(node); - case 167 /* ComputedPropertyName */: - case 304 /* ShorthandPropertyAssignment */: - case 305 /* SpreadAssignment */: - return createObjectLiteralError(node); - case 209 /* ArrayLiteralExpression */: - case 230 /* SpreadElement */: - return createArrayLiteralError(node); - case 174 /* MethodDeclaration */: - case 180 /* ConstructSignature */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 262 /* FunctionDeclaration */: - return createReturnTypeError(node); - case 208 /* BindingElement */: - return createBindingElementError(node); - case 172 /* PropertyDeclaration */: - case 260 /* VariableDeclaration */: - return createVariableOrPropertyError(node); - case 169 /* Parameter */: - return createParameterError(node); - case 303 /* PropertyAssignment */: - return createExpressionError(node.initializer); - case 231 /* ClassExpression */: - return createClassExpressionError(node); - default: - assertType(node); - return createExpressionError(node); - } - } - function findNearestDeclaration(node) { - const result = findAncestor(node, (n) => isExportAssignment(n) || isStatement(n) || isVariableDeclaration(n) || isPropertyDeclaration(n) || isParameter(n)); - if (!result) return void 0; - if (isExportAssignment(result)) return result; - if (isReturnStatement(result)) { - return findAncestor(result, (n) => isFunctionLikeDeclaration(n) && !isConstructorDeclaration(n)); - } - return isStatement(result) ? void 0 : result; - } - function createAccessorTypeError(node) { - const { getAccessor, setAccessor } = getAllAccessorDeclarations(node.symbol.declarations, node); - const targetNode = (isSetAccessor(node) ? node.parameters[0] : node) ?? node; - const diag2 = createDiagnosticForNode(targetNode, errorByDeclarationKind[node.kind]); - if (setAccessor) { - addRelatedInfo(diag2, createDiagnosticForNode(setAccessor, relatedSuggestionByDeclarationKind[setAccessor.kind])); - } - if (getAccessor) { - addRelatedInfo(diag2, createDiagnosticForNode(getAccessor, relatedSuggestionByDeclarationKind[getAccessor.kind])); - } - return diag2; - } - function addParentDeclarationRelatedInfo(node, diag2) { - const parentDeclaration = findNearestDeclaration(node); - if (parentDeclaration) { - const targetStr = isExportAssignment(parentDeclaration) || !parentDeclaration.name ? "" : getTextOfNode( - parentDeclaration.name, - /*includeTrivia*/ - false - ); - addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); - } - return diag2; - } - function createObjectLiteralError(node) { - const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); - addParentDeclarationRelatedInfo(node, diag2); - return diag2; - } - function createArrayLiteralError(node) { - const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); - addParentDeclarationRelatedInfo(node, diag2); - return diag2; - } - function createReturnTypeError(node) { - const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); - addParentDeclarationRelatedInfo(node, diag2); - addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind])); - return diag2; - } - function createBindingElementError(node) { - return createDiagnosticForNode(node, Diagnostics.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations); - } - function createVariableOrPropertyError(node) { - const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); - const targetStr = getTextOfNode( - node.name, - /*includeTrivia*/ - false - ); - addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind], targetStr)); - return diag2; - } - function createParameterError(node) { - if (isSetAccessor(node.parent)) { - return createAccessorTypeError(node.parent); - } - const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent); - if (!addUndefined && node.initializer) { - return createExpressionError(node.initializer); - } - const message = addUndefined ? Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations : errorByDeclarationKind[node.kind]; - const diag2 = createDiagnosticForNode(node, message); - const targetStr = getTextOfNode( - node.name, - /*includeTrivia*/ - false - ); - addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind], targetStr)); - return diag2; - } - function createClassExpressionError(node) { - return createExpressionError(node, Diagnostics.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations); - } - function createEntityInTypeNodeError(node) { - const diag2 = createDiagnosticForNode(node, Diagnostics.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations, getTextOfNode( - node, - /*includeTrivia*/ - false - )); - addParentDeclarationRelatedInfo(node, diag2); - return diag2; - } - function createExpressionError(node, diagnosticMessage) { - const parentDeclaration = findNearestDeclaration(node); - let diag2; - if (parentDeclaration) { - const targetStr = isExportAssignment(parentDeclaration) || !parentDeclaration.name ? "" : getTextOfNode( - parentDeclaration.name, - /*includeTrivia*/ - false - ); - const parent = findAncestor(node.parent, (n) => isExportAssignment(n) || (isStatement(n) ? "quit" : !isParenthesizedExpression(n) && !isTypeAssertionExpression(n) && !isAsExpression(n))); - if (parentDeclaration === parent) { - diag2 = createDiagnosticForNode(node, diagnosticMessage ?? errorByDeclarationKind[parentDeclaration.kind]); - addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); - } else { - diag2 = createDiagnosticForNode(node, diagnosticMessage ?? Diagnostics.Expression_type_can_t_be_inferred_with_isolatedDeclarations); - addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); - addRelatedInfo(diag2, createDiagnosticForNode(node, Diagnostics.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)); - } - } else { - diag2 = createDiagnosticForNode(node, diagnosticMessage ?? Diagnostics.Expression_type_can_t_be_inferred_with_isolatedDeclarations); - } - return diag2; - } -} - -// src/compiler/transformers/declarations.ts -function getDeclarationDiagnostics(host, resolver, file) { - const compilerOptions = host.getCompilerOptions(); - const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson); - return contains(files, file) ? transformNodes( - resolver, - host, - factory, - compilerOptions, - [file], - [transformDeclarations], - /*allowDtsFiles*/ - false - ).diagnostics : void 0; -} -var declarationEmitNodeBuilderFlags = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */; -var declarationEmitInternalNodeBuilderFlags = 8 /* AllowUnresolvedNames */; -function transformDeclarations(context) { - const throwDiagnostic = () => Debug.fail("Diagnostic emitted without context"); - let getSymbolAccessibilityDiagnostic = throwDiagnostic; - let needsDeclare = true; - let isBundledEmit = false; - let resultHasExternalModuleIndicator = false; - let needsScopeFixMarker = false; - let resultHasScopeMarker = false; - let enclosingDeclaration; - let lateMarkedStatements; - let lateStatementReplacementMap; - let suppressNewDiagnosticContexts; - const { factory: factory2 } = context; - const host = context.getEmitHost(); - let restoreFallbackNode = () => void 0; - const symbolTracker = { - trackSymbol, - reportInaccessibleThisError, - reportInaccessibleUniqueSymbolError, - reportCyclicStructureError, - reportPrivateInBaseOfClassExpression, - reportLikelyUnsafeImportRequiredError, - reportTruncationError, - moduleResolverHost: host, - reportNonlocalAugmentation, - reportNonSerializableProperty, - reportInferenceFallback, - pushErrorFallbackNode(node) { - const currentFallback = errorFallbackNode; - const currentRestore = restoreFallbackNode; - restoreFallbackNode = () => { - restoreFallbackNode = currentRestore; - errorFallbackNode = currentFallback; - }; - errorFallbackNode = node; - }, - popErrorFallbackNode() { - restoreFallbackNode(); - } - }; - let errorNameNode; - let errorFallbackNode; - let currentSourceFile; - let rawReferencedFiles; - let rawTypeReferenceDirectives; - let rawLibReferenceDirectives; - const resolver = context.getEmitResolver(); - const options = context.getCompilerOptions(); - const getIsolatedDeclarationError = createGetIsolatedDeclarationErrors(resolver); - const { stripInternal, isolatedDeclarations } = options; - return transformRoot; - function reportExpandoFunctionErrors(node) { - resolver.getPropertiesOfContainerFunction(node).forEach((p) => { - if (isExpandoPropertyDeclaration(p.valueDeclaration)) { - const errorTarget = isBinaryExpression(p.valueDeclaration) ? p.valueDeclaration.left : p.valueDeclaration; - context.addDiagnostic(createDiagnosticForNode( - errorTarget, - Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function - )); - } - }); - } - function reportInferenceFallback(node) { - if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return; - if (getSourceFileOfNode(node) !== currentSourceFile) return; - if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) { - reportExpandoFunctionErrors(node); - } else { - context.addDiagnostic(getIsolatedDeclarationError(node)); - } - } - function handleSymbolAccessibilityError(symbolAccessibilityResult) { - if (symbolAccessibilityResult.accessibility === 0 /* Accessible */) { - if (symbolAccessibilityResult.aliasesToMakeVisible) { - if (!lateMarkedStatements) { - lateMarkedStatements = symbolAccessibilityResult.aliasesToMakeVisible; - } else { - for (const ref of symbolAccessibilityResult.aliasesToMakeVisible) { - pushIfUnique(lateMarkedStatements, ref); - } - } - } - } else if (symbolAccessibilityResult.accessibility !== 3 /* NotResolved */) { - const errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult); - if (errorInfo) { - if (errorInfo.typeName) { - context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, getTextOfNode(errorInfo.typeName), symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); - } else { - context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); - } - return true; - } - } - return false; - } - function trackSymbol(symbol, enclosingDeclaration2, meaning) { - if (symbol.flags & 262144 /* TypeParameter */) return false; - const issuedDiagnostic = handleSymbolAccessibilityError(resolver.isSymbolAccessible( - symbol, - enclosingDeclaration2, - meaning, - /*shouldComputeAliasToMarkVisible*/ - true - )); - return issuedDiagnostic; - } - function reportPrivateInBaseOfClassExpression(propertyName) { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic( - addRelatedInfo( - createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected, propertyName), - ...isVariableDeclaration((errorNameNode || errorFallbackNode).parent) ? [createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Add_a_type_annotation_to_the_variable_0, errorDeclarationNameWithFallback())] : [] - ) - ); - } - } - function errorDeclarationNameWithFallback() { - return errorNameNode ? declarationNameToString(errorNameNode) : errorFallbackNode && getNameOfDeclaration(errorFallbackNode) ? declarationNameToString(getNameOfDeclaration(errorFallbackNode)) : errorFallbackNode && isExportAssignment(errorFallbackNode) ? errorFallbackNode.isExportEquals ? "export=" : "default" : "(Missing)"; - } - function reportInaccessibleUniqueSymbolError() { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "unique symbol")); - } - } - function reportCyclicStructureError() { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, errorDeclarationNameWithFallback())); - } - } - function reportInaccessibleThisError() { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "this")); - } - } - function reportLikelyUnsafeImportRequiredError(specifier) { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier)); - } - } - function reportTruncationError() { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed)); - } - } - function reportNonlocalAugmentation(containingFile, parentSymbol, symbol) { - var _a; - const primaryDeclaration = (_a = parentSymbol.declarations) == null ? void 0 : _a.find((d) => getSourceFileOfNode(d) === containingFile); - const augmentingDeclarations = filter(symbol.declarations, (d) => getSourceFileOfNode(d) !== containingFile); - if (primaryDeclaration && augmentingDeclarations) { - for (const augmentations of augmentingDeclarations) { - context.addDiagnostic(addRelatedInfo( - createDiagnosticForNode(augmentations, Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), - createDiagnosticForNode(primaryDeclaration, Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file) - )); - } - } - } - function reportNonSerializableProperty(propertyName) { - if (errorNameNode || errorFallbackNode) { - context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, propertyName)); - } - } - function transformDeclarationsForJS(sourceFile) { - const oldDiag = getSymbolAccessibilityDiagnostic; - getSymbolAccessibilityDiagnostic = (s) => s.errorNode && canProduceDiagnostics(s.errorNode) ? createGetSymbolAccessibilityDiagnosticForNode(s.errorNode)(s) : { - diagnosticMessage: s.errorModuleName ? Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit, - errorNode: s.errorNode || sourceFile - }; - const result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - getSymbolAccessibilityDiagnostic = oldDiag; - return result; - } - function transformRoot(node) { - if (node.kind === 307 /* SourceFile */ && node.isDeclarationFile) { - return node; - } - if (node.kind === 308 /* Bundle */) { - isBundledEmit = true; - rawReferencedFiles = []; - rawTypeReferenceDirectives = []; - rawLibReferenceDirectives = []; - let hasNoDefaultLib = false; - const bundle = factory2.createBundle( - map(node.sourceFiles, (sourceFile) => { - if (sourceFile.isDeclarationFile) return void 0; - hasNoDefaultLib = hasNoDefaultLib || sourceFile.hasNoDefaultLib; - currentSourceFile = sourceFile; - enclosingDeclaration = sourceFile; - lateMarkedStatements = void 0; - suppressNewDiagnosticContexts = false; - lateStatementReplacementMap = /* @__PURE__ */ new Map(); - getSymbolAccessibilityDiagnostic = throwDiagnostic; - needsScopeFixMarker = false; - resultHasScopeMarker = false; - collectFileReferences(sourceFile); - if (isExternalOrCommonJsModule(sourceFile) || isJsonSourceFile(sourceFile)) { - resultHasExternalModuleIndicator = false; - needsDeclare = false; - const statements = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement); - const newFile = factory2.updateSourceFile( - sourceFile, - [factory2.createModuleDeclaration( - [factory2.createModifier(138 /* DeclareKeyword */)], - factory2.createStringLiteral(getResolvedExternalModuleName(context.getEmitHost(), sourceFile)), - factory2.createModuleBlock(setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), sourceFile.statements)) - )], - /*isDeclarationFile*/ - true, - /*referencedFiles*/ - [], - /*typeReferences*/ - [], - /*hasNoDefaultLib*/ - false, - /*libReferences*/ - [] - ); - return newFile; - } - needsDeclare = true; - const updated = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement); - return factory2.updateSourceFile( - sourceFile, - transformAndReplaceLatePaintedStatements(updated), - /*isDeclarationFile*/ - true, - /*referencedFiles*/ - [], - /*typeReferences*/ - [], - /*hasNoDefaultLib*/ - false, - /*libReferences*/ - [] - ); - }) - ); - const outputFilePath2 = getDirectoryPath(normalizeSlashes(getOutputPathsFor( - node, - host, - /*forceDtsPaths*/ - true - ).declarationFilePath)); - bundle.syntheticFileReferences = getReferencedFiles(outputFilePath2); - bundle.syntheticTypeReferences = getTypeReferences(); - bundle.syntheticLibReferences = getLibReferences(); - bundle.hasNoDefaultLib = hasNoDefaultLib; - return bundle; - } - needsDeclare = true; - needsScopeFixMarker = false; - resultHasScopeMarker = false; - enclosingDeclaration = node; - currentSourceFile = node; - getSymbolAccessibilityDiagnostic = throwDiagnostic; - isBundledEmit = false; - resultHasExternalModuleIndicator = false; - suppressNewDiagnosticContexts = false; - lateMarkedStatements = void 0; - lateStatementReplacementMap = /* @__PURE__ */ new Map(); - rawReferencedFiles = []; - rawTypeReferenceDirectives = []; - rawLibReferenceDirectives = []; - collectFileReferences(currentSourceFile); - let combinedStatements; - if (isSourceFileJS(currentSourceFile)) { - combinedStatements = factory2.createNodeArray(transformDeclarationsForJS(node)); - } else { - const statements = visitNodes2(node.statements, visitDeclarationStatements, isStatement); - combinedStatements = setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), node.statements); - if (isExternalModule(node) && (!resultHasExternalModuleIndicator || needsScopeFixMarker && !resultHasScopeMarker)) { - combinedStatements = setTextRange(factory2.createNodeArray([...combinedStatements, createEmptyExports(factory2)]), combinedStatements); - } - } - const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor( - node, - host, - /*forceDtsPaths*/ - true - ).declarationFilePath)); - return factory2.updateSourceFile( - node, - combinedStatements, - /*isDeclarationFile*/ - true, - getReferencedFiles(outputFilePath), - getTypeReferences(), - node.hasNoDefaultLib, - getLibReferences() - ); - function collectFileReferences(sourceFile) { - rawReferencedFiles = concatenate(rawReferencedFiles, map(sourceFile.referencedFiles, (f) => [sourceFile, f])); - rawTypeReferenceDirectives = concatenate(rawTypeReferenceDirectives, sourceFile.typeReferenceDirectives); - rawLibReferenceDirectives = concatenate(rawLibReferenceDirectives, sourceFile.libReferenceDirectives); - } - function copyFileReferenceAsSynthetic(ref) { - const newRef = { ...ref }; - newRef.pos = -1; - newRef.end = -1; - return newRef; - } - function getTypeReferences() { - return mapDefined(rawTypeReferenceDirectives, (ref) => { - if (!ref.preserve) return void 0; - return copyFileReferenceAsSynthetic(ref); - }); - } - function getLibReferences() { - return mapDefined(rawLibReferenceDirectives, (ref) => { - if (!ref.preserve) return void 0; - return copyFileReferenceAsSynthetic(ref); - }); - } - function getReferencedFiles(outputFilePath2) { - return mapDefined(rawReferencedFiles, ([sourceFile, ref]) => { - if (!ref.preserve) return void 0; - const file = host.getSourceFileFromReference(sourceFile, ref); - if (!file) { - return void 0; - } - let declFileName; - if (file.isDeclarationFile) { - declFileName = file.fileName; - } else { - if (isBundledEmit && contains(node.sourceFiles, file)) return; - const paths = getOutputPathsFor( - file, - host, - /*forceDtsPaths*/ - true - ); - declFileName = paths.declarationFilePath || paths.jsFilePath || file.fileName; - } - if (!declFileName) return void 0; - const fileName = getRelativePathToDirectoryOrUrl( - outputFilePath2, - declFileName, - host.getCurrentDirectory(), - host.getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - false - ); - const newRef = copyFileReferenceAsSynthetic(ref); - newRef.fileName = fileName; - return newRef; - }); - } - } - function filterBindingPatternInitializers(name) { - if (name.kind === 80 /* Identifier */) { - return name; - } else { - if (name.kind === 207 /* ArrayBindingPattern */) { - return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); - } else { - return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); - } - } - function visitBindingElement(elem) { - if (elem.kind === 232 /* OmittedExpression */) { - return elem; - } - if (elem.propertyName && isComputedPropertyName(elem.propertyName) && isEntityNameExpression(elem.propertyName.expression)) { - checkEntityNameVisibility(elem.propertyName.expression, enclosingDeclaration); - } - return factory2.updateBindingElement( - elem, - elem.dotDotDotToken, - elem.propertyName, - filterBindingPatternInitializers(elem.name), - /*initializer*/ - void 0 - ); - } - } - function ensureParameter(p, modifierMask) { - let oldDiag; - if (!suppressNewDiagnosticContexts) { - oldDiag = getSymbolAccessibilityDiagnostic; - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p); - } - const newParam = factory2.updateParameterDeclaration( - p, - maskModifiers(factory2, p, modifierMask), - p.dotDotDotToken, - filterBindingPatternInitializers(p.name), - resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(58 /* QuestionToken */) : void 0, - ensureType( - p, - /*ignorePrivate*/ - true - ), - // Ignore private param props, since this type is going straight back into a param - ensureNoInitializer(p) - ); - if (!suppressNewDiagnosticContexts) { - getSymbolAccessibilityDiagnostic = oldDiag; - } - return newParam; - } - function shouldPrintWithInitializer(node) { - return canHaveLiteralInitializer(node) && !!node.initializer && resolver.isLiteralConstDeclaration(getParseTreeNode(node)); - } - function ensureNoInitializer(node) { - if (shouldPrintWithInitializer(node)) { - const unwrappedInitializer = unwrapParenthesizedExpression(node.initializer); - if (!isPrimitiveLiteralValue(unwrappedInitializer)) { - reportInferenceFallback(node); - } - return resolver.createLiteralConstValue(getParseTreeNode(node, canHaveLiteralInitializer), symbolTracker); - } - return void 0; - } - function ensureType(node, ignorePrivate) { - if (!ignorePrivate && hasEffectiveModifier(node, 2 /* Private */)) { - return; - } - if (shouldPrintWithInitializer(node)) { - return; - } - if (!isExportAssignment(node) && !isBindingElement(node) && node.type && (!isParameter(node) || !resolver.requiresAddingImplicitUndefined(node, enclosingDeclaration))) { - return visitNode(node.type, visitDeclarationSubtree, isTypeNode); - } - const oldErrorNameNode = errorNameNode; - errorNameNode = node.name; - let oldDiag; - if (!suppressNewDiagnosticContexts) { - oldDiag = getSymbolAccessibilityDiagnostic; - if (canProduceDiagnostics(node)) { - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); - } - } - let typeNode; - if (hasInferredType(node)) { - typeNode = resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - } else if (isFunctionLike(node)) { - typeNode = resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - } else { - Debug.assertNever(node); - } - errorNameNode = oldErrorNameNode; - if (!suppressNewDiagnosticContexts) { - getSymbolAccessibilityDiagnostic = oldDiag; - } - return typeNode ?? factory2.createKeywordTypeNode(133 /* AnyKeyword */); - } - function isDeclarationAndNotVisible(node) { - node = getParseTreeNode(node); - switch (node.kind) { - case 262 /* FunctionDeclaration */: - case 267 /* ModuleDeclaration */: - case 264 /* InterfaceDeclaration */: - case 263 /* ClassDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 266 /* EnumDeclaration */: - return !resolver.isDeclarationVisible(node); - // The following should be doing their own visibility checks based on filtering their members - case 260 /* VariableDeclaration */: - return !getBindingNameVisible(node); - case 271 /* ImportEqualsDeclaration */: - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 277 /* ExportAssignment */: - return false; - case 175 /* ClassStaticBlockDeclaration */: - return true; - } - return false; - } - function shouldEmitFunctionProperties(input) { - var _a; - if (input.body) { - return true; - } - const overloadSignatures = (_a = input.symbol.declarations) == null ? void 0 : _a.filter((decl) => isFunctionDeclaration(decl) && !decl.body); - return !overloadSignatures || overloadSignatures.indexOf(input) === overloadSignatures.length - 1; - } - function getBindingNameVisible(elem) { - if (isOmittedExpression(elem)) { - return false; - } - if (isBindingPattern(elem.name)) { - return some(elem.name.elements, getBindingNameVisible); - } else { - return resolver.isDeclarationVisible(elem); - } - } - function updateParamsList(node, params, modifierMask) { - if (hasEffectiveModifier(node, 2 /* Private */)) { - return factory2.createNodeArray(); - } - const newParams = map(params, (p) => ensureParameter(p, modifierMask)); - if (!newParams) { - return factory2.createNodeArray(); - } - return factory2.createNodeArray(newParams, params.hasTrailingComma); - } - function updateAccessorParamsList(input, isPrivate) { - let newParams; - if (!isPrivate) { - const thisParameter = getThisParameter(input); - if (thisParameter) { - newParams = [ensureParameter(thisParameter)]; - } - } - if (isSetAccessorDeclaration(input)) { - let newValueParameter; - if (!isPrivate) { - const valueParameter = getSetAccessorValueParameter(input); - if (valueParameter) { - newValueParameter = ensureParameter(valueParameter); - } - } - if (!newValueParameter) { - newValueParameter = factory2.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "value" - ); - } - newParams = append(newParams, newValueParameter); - } - return factory2.createNodeArray(newParams || emptyArray); - } - function ensureTypeParams(node, params) { - return hasEffectiveModifier(node, 2 /* Private */) ? void 0 : visitNodes2(params, visitDeclarationSubtree, isTypeParameterDeclaration); - } - function isEnclosingDeclaration(node) { - return isSourceFile(node) || isTypeAliasDeclaration(node) || isModuleDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionLike(node) || isIndexSignatureDeclaration(node) || isMappedTypeNode(node); - } - function checkEntityNameVisibility(entityName, enclosingDeclaration2) { - const visibilityResult = resolver.isEntityNameVisible(entityName, enclosingDeclaration2); - handleSymbolAccessibilityError(visibilityResult); - } - function preserveJsDoc(updated, original) { - if (hasJSDocNodes(updated) && hasJSDocNodes(original)) { - updated.jsDoc = original.jsDoc; - } - return setCommentRange(updated, getCommentRange(original)); - } - function rewriteModuleSpecifier2(parent, input) { - if (!input) return void 0; - resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent.kind !== 267 /* ModuleDeclaration */ && parent.kind !== 205 /* ImportType */; - if (isStringLiteralLike(input)) { - if (isBundledEmit) { - const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent); - if (newName) { - return factory2.createStringLiteral(newName); - } - } - } - return input; - } - function transformImportEqualsDeclaration(decl) { - if (!resolver.isDeclarationVisible(decl)) return; - if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { - const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); - return factory2.updateImportEqualsDeclaration( - decl, - decl.modifiers, - decl.isTypeOnly, - decl.name, - factory2.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier2(decl, specifier)) - ); - } else { - const oldDiag = getSymbolAccessibilityDiagnostic; - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(decl); - checkEntityNameVisibility(decl.moduleReference, enclosingDeclaration); - getSymbolAccessibilityDiagnostic = oldDiag; - return decl; - } - } - function transformImportDeclaration(decl) { - if (!decl.importClause) { - return factory2.updateImportDeclaration( - decl, - decl.modifiers, - decl.importClause, - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), - tryGetResolutionModeOverride(decl.attributes) - ); - } - const visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : void 0; - if (!decl.importClause.namedBindings) { - return visibleDefaultBinding && factory2.updateImportDeclaration( - decl, - decl.modifiers, - factory2.updateImportClause( - decl.importClause, - decl.importClause.isTypeOnly, - visibleDefaultBinding, - /*namedBindings*/ - void 0 - ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), - tryGetResolutionModeOverride(decl.attributes) - ); - } - if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { - const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( - /*namedBindings*/ - void 0 - ); - return visibleDefaultBinding || namedBindings ? factory2.updateImportDeclaration( - decl, - decl.modifiers, - factory2.updateImportClause( - decl.importClause, - decl.importClause.isTypeOnly, - visibleDefaultBinding, - namedBindings - ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), - tryGetResolutionModeOverride(decl.attributes) - ) : void 0; - } - const bindingList = mapDefined(decl.importClause.namedBindings.elements, (b) => resolver.isDeclarationVisible(b) ? b : void 0); - if (bindingList && bindingList.length || visibleDefaultBinding) { - return factory2.updateImportDeclaration( - decl, - decl.modifiers, - factory2.updateImportClause( - decl.importClause, - decl.importClause.isTypeOnly, - visibleDefaultBinding, - bindingList && bindingList.length ? factory2.updateNamedImports(decl.importClause.namedBindings, bindingList) : void 0 - ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), - tryGetResolutionModeOverride(decl.attributes) - ); - } - if (resolver.isImportRequiredByAugmentation(decl)) { - if (isolatedDeclarations) { - context.addDiagnostic(createDiagnosticForNode(decl, Diagnostics.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)); - } - return factory2.updateImportDeclaration( - decl, - decl.modifiers, - /*importClause*/ - void 0, - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), - tryGetResolutionModeOverride(decl.attributes) - ); - } - } - function tryGetResolutionModeOverride(node) { - const mode = getResolutionModeOverride(node); - return node && mode !== void 0 ? node : void 0; - } - function transformAndReplaceLatePaintedStatements(statements) { - while (length(lateMarkedStatements)) { - const i = lateMarkedStatements.shift(); - if (!isLateVisibilityPaintedStatement(i)) { - return Debug.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Debug.formatSyntaxKind(i.kind)}`); - } - const priorNeedsDeclare = needsDeclare; - needsDeclare = i.parent && isSourceFile(i.parent) && !(isExternalModule(i.parent) && isBundledEmit); - const result = transformTopLevelDeclaration(i); - needsDeclare = priorNeedsDeclare; - lateStatementReplacementMap.set(getOriginalNodeId(i), result); - } - return visitNodes2(statements, visitLateVisibilityMarkedStatements, isStatement); - function visitLateVisibilityMarkedStatements(statement) { - if (isLateVisibilityPaintedStatement(statement)) { - const key = getOriginalNodeId(statement); - if (lateStatementReplacementMap.has(key)) { - const result = lateStatementReplacementMap.get(key); - lateStatementReplacementMap.delete(key); - if (result) { - if (isArray(result) ? some(result, needsScopeMarker) : needsScopeMarker(result)) { - needsScopeFixMarker = true; - } - if (isSourceFile(statement.parent) && (isArray(result) ? some(result, isExternalModuleIndicator) : isExternalModuleIndicator(result))) { - resultHasExternalModuleIndicator = true; - } - } - return result; - } - } - return statement; - } - } - function visitDeclarationSubtree(input) { - if (shouldStripInternal(input)) return; - if (isDeclaration(input)) { - if (isDeclarationAndNotVisible(input)) return; - if (hasDynamicName(input)) { - if (isolatedDeclarations) { - if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) { - if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) { - context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations)); - return; - } else if ( - // Type declarations just need to double-check that the input computed name is an entity name expression - (isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression) - ) { - context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations)); - return; - } - } - } else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) { - return; - } - } - } - if (isFunctionLike(input) && resolver.isImplementationOfOverload(input)) return; - if (isSemicolonClassElement(input)) return; - let previousEnclosingDeclaration; - if (isEnclosingDeclaration(input)) { - previousEnclosingDeclaration = enclosingDeclaration; - enclosingDeclaration = input; - } - const oldDiag = getSymbolAccessibilityDiagnostic; - const canProduceDiagnostic = canProduceDiagnostics(input); - const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; - let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; - if (isMethodDeclaration(input) || isMethodSignature(input)) { - if (hasEffectiveModifier(input, 2 /* Private */)) { - if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) return; - return cleanup(factory2.createPropertyDeclaration( - ensureModifiers(input), - input.name, - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - )); - } - } - if (canProduceDiagnostic && !suppressNewDiagnosticContexts) { - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input); - } - if (isTypeQueryNode(input)) { - checkEntityNameVisibility(input.exprName, enclosingDeclaration); - } - if (shouldEnterSuppressNewDiagnosticsContextContext) { - suppressNewDiagnosticContexts = true; - } - if (isProcessedComponent(input)) { - switch (input.kind) { - case 233 /* ExpressionWithTypeArguments */: { - if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { - checkEntityNameVisibility(input.expression, enclosingDeclaration); - } - const node = visitEachChild(input, visitDeclarationSubtree, context); - return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); - } - case 183 /* TypeReference */: { - checkEntityNameVisibility(input.typeName, enclosingDeclaration); - const node = visitEachChild(input, visitDeclarationSubtree, context); - return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); - } - case 180 /* ConstructSignature */: - return cleanup(factory2.updateConstructSignature( - input, - ensureTypeParams(input, input.typeParameters), - updateParamsList(input, input.parameters), - ensureType(input) - )); - case 176 /* Constructor */: { - const ctor = factory2.createConstructorDeclaration( - /*modifiers*/ - ensureModifiers(input), - updateParamsList(input, input.parameters, 0 /* None */), - /*body*/ - void 0 - ); - return cleanup(ctor); - } - case 174 /* MethodDeclaration */: { - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - const sig = factory2.createMethodDeclaration( - ensureModifiers(input), - /*asteriskToken*/ - void 0, - input.name, - input.questionToken, - ensureTypeParams(input, input.typeParameters), - updateParamsList(input, input.parameters), - ensureType(input), - /*body*/ - void 0 - ); - return cleanup(sig); - } - case 177 /* GetAccessor */: { - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - return cleanup(factory2.updateGetAccessorDeclaration( - input, - ensureModifiers(input), - input.name, - updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)), - ensureType(input), - /*body*/ - void 0 - )); - } - case 178 /* SetAccessor */: { - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - return cleanup(factory2.updateSetAccessorDeclaration( - input, - ensureModifiers(input), - input.name, - updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)), - /*body*/ - void 0 - )); - } - case 172 /* PropertyDeclaration */: - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - return cleanup(factory2.updatePropertyDeclaration( - input, - ensureModifiers(input), - input.name, - input.questionToken, - ensureType(input), - ensureNoInitializer(input) - )); - case 171 /* PropertySignature */: - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - return cleanup(factory2.updatePropertySignature( - input, - ensureModifiers(input), - input.name, - input.questionToken, - ensureType(input) - )); - case 173 /* MethodSignature */: { - if (isPrivateIdentifier(input.name)) { - return cleanup( - /*returnValue*/ - void 0 - ); - } - return cleanup(factory2.updateMethodSignature( - input, - ensureModifiers(input), - input.name, - input.questionToken, - ensureTypeParams(input, input.typeParameters), - updateParamsList(input, input.parameters), - ensureType(input) - )); - } - case 179 /* CallSignature */: { - return cleanup( - factory2.updateCallSignature( - input, - ensureTypeParams(input, input.typeParameters), - updateParamsList(input, input.parameters), - ensureType(input) - ) - ); - } - case 181 /* IndexSignature */: { - return cleanup(factory2.updateIndexSignature( - input, - ensureModifiers(input), - updateParamsList(input, input.parameters), - visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) - )); - } - case 260 /* VariableDeclaration */: { - if (isBindingPattern(input.name)) { - return recreateBindingPattern(input.name); - } - shouldEnterSuppressNewDiagnosticsContextContext = true; - suppressNewDiagnosticContexts = true; - return cleanup(factory2.updateVariableDeclaration( - input, - input.name, - /*exclamationToken*/ - void 0, - ensureType(input), - ensureNoInitializer(input) - )); - } - case 168 /* TypeParameter */: { - if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { - return cleanup(factory2.updateTypeParameterDeclaration( - input, - input.modifiers, - input.name, - /*constraint*/ - void 0, - /*defaultType*/ - void 0 - )); - } - return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); - } - case 194 /* ConditionalType */: { - const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); - const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); - const oldEnclosingDecl = enclosingDeclaration; - enclosingDeclaration = input.trueType; - const trueType = visitNode(input.trueType, visitDeclarationSubtree, isTypeNode); - enclosingDeclaration = oldEnclosingDecl; - const falseType = visitNode(input.falseType, visitDeclarationSubtree, isTypeNode); - Debug.assert(checkType); - Debug.assert(extendsType); - Debug.assert(trueType); - Debug.assert(falseType); - return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); - } - case 184 /* FunctionType */: { - return cleanup(factory2.updateFunctionTypeNode( - input, - visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), - updateParamsList(input, input.parameters), - Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) - )); - } - case 185 /* ConstructorType */: { - return cleanup(factory2.updateConstructorTypeNode( - input, - ensureModifiers(input), - visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), - updateParamsList(input, input.parameters), - Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) - )); - } - case 205 /* ImportType */: { - if (!isLiteralImportTypeNode(input)) return cleanup(input); - return cleanup(factory2.updateImportTypeNode( - input, - factory2.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier2(input, input.argument.literal)), - input.attributes, - input.qualifier, - visitNodes2(input.typeArguments, visitDeclarationSubtree, isTypeNode), - input.isTypeOf - )); - } - default: - Debug.assertNever(input, `Attempted to process unhandled node kind: ${Debug.formatSyntaxKind(input.kind)}`); - } - } - if (isTupleTypeNode(input) && getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === getLineAndCharacterOfPosition(currentSourceFile, input.end).line) { - setEmitFlags(input, 1 /* SingleLine */); - } - return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); - function cleanup(returnValue) { - if (returnValue && canProduceDiagnostic && hasDynamicName(input)) { - checkName(input); - } - if (isEnclosingDeclaration(input)) { - enclosingDeclaration = previousEnclosingDeclaration; - } - if (canProduceDiagnostic && !suppressNewDiagnosticContexts) { - getSymbolAccessibilityDiagnostic = oldDiag; - } - if (shouldEnterSuppressNewDiagnosticsContextContext) { - suppressNewDiagnosticContexts = oldWithinObjectLiteralType; - } - if (returnValue === input) { - return returnValue; - } - return returnValue && setOriginalNode(preserveJsDoc(returnValue, input), input); - } - } - function isPrivateMethodTypeParameter(node) { - return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 2 /* Private */); - } - function visitDeclarationStatements(input) { - if (!isPreservedDeclarationStatement(input)) { - return; - } - if (shouldStripInternal(input)) return; - switch (input.kind) { - case 278 /* ExportDeclaration */: { - if (isSourceFile(input.parent)) { - resultHasExternalModuleIndicator = true; - } - resultHasScopeMarker = true; - return factory2.updateExportDeclaration( - input, - input.modifiers, - input.isTypeOnly, - input.exportClause, - rewriteModuleSpecifier2(input, input.moduleSpecifier), - tryGetResolutionModeOverride(input.attributes) - ); - } - case 277 /* ExportAssignment */: { - if (isSourceFile(input.parent)) { - resultHasExternalModuleIndicator = true; - } - resultHasScopeMarker = true; - if (input.expression.kind === 80 /* Identifier */) { - return input; - } else { - const newId = factory2.createUniqueName("_default", 16 /* Optimistic */); - getSymbolAccessibilityDiagnostic = () => ({ - diagnosticMessage: Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0, - errorNode: input - }); - errorFallbackNode = input; - const type = ensureType(input); - const varDecl = factory2.createVariableDeclaration( - newId, - /*exclamationToken*/ - void 0, - type, - /*initializer*/ - void 0 - ); - errorFallbackNode = void 0; - const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(138 /* DeclareKeyword */)] : [], factory2.createVariableDeclarationList([varDecl], 2 /* Const */)); - preserveJsDoc(statement, input); - removeAllComments(input); - return [statement, factory2.updateExportAssignment(input, input.modifiers, newId)]; - } - } - } - const result = transformTopLevelDeclaration(input); - lateStatementReplacementMap.set(getOriginalNodeId(input), result); - return input; - } - function stripExportModifiers(statement) { - if (isImportEqualsDeclaration(statement) || hasEffectiveModifier(statement, 2048 /* Default */) || !canHaveModifiers(statement)) { - return statement; - } - const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (131071 /* All */ ^ 32 /* Export */)); - return factory2.replaceModifiers(statement, modifiers); - } - function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { - const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); - if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { - return updated; - } - const fixed = factory2.createModuleDeclaration( - updated.modifiers, - updated.name, - updated.body, - updated.flags | 32 /* Namespace */ - ); - setOriginalNode(fixed, updated); - setTextRange(fixed, updated); - return fixed; - } - function transformTopLevelDeclaration(input) { - if (lateMarkedStatements) { - while (orderedRemoveItem(lateMarkedStatements, input)) ; - } - if (shouldStripInternal(input)) return; - switch (input.kind) { - case 271 /* ImportEqualsDeclaration */: { - return transformImportEqualsDeclaration(input); - } - case 272 /* ImportDeclaration */: { - return transformImportDeclaration(input); - } - } - if (isDeclaration(input) && isDeclarationAndNotVisible(input)) return; - if (isJSDocImportTag(input)) return; - if (isFunctionLike(input) && resolver.isImplementationOfOverload(input)) return; - let previousEnclosingDeclaration; - if (isEnclosingDeclaration(input)) { - previousEnclosingDeclaration = enclosingDeclaration; - enclosingDeclaration = input; - } - const canProdiceDiagnostic = canProduceDiagnostics(input); - const oldDiag = getSymbolAccessibilityDiagnostic; - if (canProdiceDiagnostic) { - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input); - } - const previousNeedsDeclare = needsDeclare; - switch (input.kind) { - case 265 /* TypeAliasDeclaration */: { - needsDeclare = false; - const clean2 = cleanup(factory2.updateTypeAliasDeclaration( - input, - ensureModifiers(input), - input.name, - visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), - Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) - )); - needsDeclare = previousNeedsDeclare; - return clean2; - } - case 264 /* InterfaceDeclaration */: { - return cleanup(factory2.updateInterfaceDeclaration( - input, - ensureModifiers(input), - input.name, - ensureTypeParams(input, input.typeParameters), - transformHeritageClauses(input.heritageClauses), - visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) - )); - } - case 262 /* FunctionDeclaration */: { - const clean2 = cleanup(factory2.updateFunctionDeclaration( - input, - ensureModifiers(input), - /*asteriskToken*/ - void 0, - input.name, - ensureTypeParams(input, input.typeParameters), - updateParamsList(input, input.parameters), - ensureType(input), - /*body*/ - void 0 - )); - if (clean2 && resolver.isExpandoFunctionDeclaration(input) && shouldEmitFunctionProperties(input)) { - const props = resolver.getPropertiesOfContainerFunction(input); - if (isolatedDeclarations) { - reportExpandoFunctionErrors(input); - } - const fakespace = parseNodeFactory.createModuleDeclaration( - /*modifiers*/ - void 0, - clean2.name || factory2.createIdentifier("_default"), - factory2.createModuleBlock([]), - 32 /* Namespace */ - ); - setParent(fakespace, enclosingDeclaration); - fakespace.locals = createSymbolTable(props); - fakespace.symbol = props[0].parent; - const exportMappings = []; - let declarations = mapDefined(props, (p) => { - if (!isExpandoPropertyDeclaration(p.valueDeclaration)) { - return void 0; - } - const nameStr = unescapeLeadingUnderscores(p.escapedName); - if (!isIdentifierText(nameStr, 99 /* ESNext */)) { - return void 0; - } - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration); - const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags | 2 /* NoSyntacticPrinter */, symbolTracker); - getSymbolAccessibilityDiagnostic = oldDiag; - const isNonContextualKeywordName = isStringANonContextualKeyword(nameStr); - const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p.valueDeclaration) : factory2.createIdentifier(nameStr); - if (isNonContextualKeywordName) { - exportMappings.push([name, nameStr]); - } - const varDecl = factory2.createVariableDeclaration( - name, - /*exclamationToken*/ - void 0, - type, - /*initializer*/ - void 0 - ); - return factory2.createVariableStatement(isNonContextualKeywordName ? void 0 : [factory2.createToken(95 /* ExportKeyword */)], factory2.createVariableDeclarationList([varDecl])); - }); - if (!exportMappings.length) { - declarations = mapDefined(declarations, (declaration) => factory2.replaceModifiers(declaration, 0 /* None */)); - } else { - declarations.push(factory2.createExportDeclaration( - /*modifiers*/ - void 0, - /*isTypeOnly*/ - false, - factory2.createNamedExports(map(exportMappings, ([gen, exp]) => { - return factory2.createExportSpecifier( - /*isTypeOnly*/ - false, - gen, - exp - ); - })) - )); - } - const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); - if (!hasEffectiveModifier(clean2, 2048 /* Default */)) { - return [clean2, namespaceDecl]; - } - const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(clean2) & ~2080 /* ExportDefault */ | 128 /* Ambient */); - const cleanDeclaration = factory2.updateFunctionDeclaration( - clean2, - modifiers, - /*asteriskToken*/ - void 0, - clean2.name, - clean2.typeParameters, - clean2.parameters, - clean2.type, - /*body*/ - void 0 - ); - const namespaceDeclaration = factory2.updateModuleDeclaration( - namespaceDecl, - modifiers, - namespaceDecl.name, - namespaceDecl.body - ); - const exportDefaultDeclaration = factory2.createExportAssignment( - /*modifiers*/ - void 0, - /*isExportEquals*/ - false, - namespaceDecl.name - ); - if (isSourceFile(input.parent)) { - resultHasExternalModuleIndicator = true; - } - resultHasScopeMarker = true; - return [cleanDeclaration, namespaceDeclaration, exportDefaultDeclaration]; - } else { - return clean2; - } - } - case 267 /* ModuleDeclaration */: { - needsDeclare = false; - const inner = input.body; - if (inner && inner.kind === 268 /* ModuleBlock */) { - const oldNeedsScopeFix = needsScopeFixMarker; - const oldHasScopeFix = resultHasScopeMarker; - resultHasScopeMarker = false; - needsScopeFixMarker = false; - const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); - let lateStatements = transformAndReplaceLatePaintedStatements(statements); - if (input.flags & 33554432 /* Ambient */) { - needsScopeFixMarker = false; - } - if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { - if (needsScopeFixMarker) { - lateStatements = factory2.createNodeArray([...lateStatements, createEmptyExports(factory2)]); - } else { - lateStatements = visitNodes2(lateStatements, stripExportModifiers, isStatement); - } - } - const body = factory2.updateModuleBlock(inner, lateStatements); - needsDeclare = previousNeedsDeclare; - needsScopeFixMarker = oldNeedsScopeFix; - resultHasScopeMarker = oldHasScopeFix; - const mods = ensureModifiers(input); - return cleanup(updateModuleDeclarationAndKeyword( - input, - mods, - isExternalModuleAugmentation(input) ? rewriteModuleSpecifier2(input, input.name) : input.name, - body - )); - } else { - needsDeclare = previousNeedsDeclare; - const mods = ensureModifiers(input); - needsDeclare = false; - visitNode(inner, visitDeclarationStatements); - const id = getOriginalNodeId(inner); - const body = lateStatementReplacementMap.get(id); - lateStatementReplacementMap.delete(id); - return cleanup(updateModuleDeclarationAndKeyword( - input, - mods, - input.name, - body - )); - } - } - case 263 /* ClassDeclaration */: { - errorNameNode = input.name; - errorFallbackNode = input; - const modifiers = factory2.createNodeArray(ensureModifiers(input)); - const typeParameters = ensureTypeParams(input, input.typeParameters); - const ctor = getFirstConstructorWithBody(input); - let parameterProperties; - if (ctor) { - const oldDiag2 = getSymbolAccessibilityDiagnostic; - parameterProperties = compact(flatMap(ctor.parameters, (param) => { - if (!hasSyntacticModifier(param, 31 /* ParameterPropertyModifier */) || shouldStripInternal(param)) return; - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(param); - if (param.name.kind === 80 /* Identifier */) { - return preserveJsDoc( - factory2.createPropertyDeclaration( - ensureModifiers(param), - param.name, - param.questionToken, - ensureType(param), - ensureNoInitializer(param) - ), - param - ); - } else { - return walkBindingPattern(param.name); - } - function walkBindingPattern(pattern) { - let elems; - for (const elem of pattern.elements) { - if (isOmittedExpression(elem)) continue; - if (isBindingPattern(elem.name)) { - elems = concatenate(elems, walkBindingPattern(elem.name)); - } - elems = elems || []; - elems.push(factory2.createPropertyDeclaration( - ensureModifiers(param), - elem.name, - /*questionOrExclamationToken*/ - void 0, - ensureType(elem), - /*initializer*/ - void 0 - )); - } - return elems; - } - })); - getSymbolAccessibilityDiagnostic = oldDiag2; - } - const hasPrivateIdentifier = some(input.members, (member) => !!member.name && isPrivateIdentifier(member.name)); - const privateIdentifier = hasPrivateIdentifier ? [ - factory2.createPropertyDeclaration( - /*modifiers*/ - void 0, - factory2.createPrivateIdentifier("#private"), - /*questionOrExclamationToken*/ - void 0, - /*type*/ - void 0, - /*initializer*/ - void 0 - ) - ] : void 0; - const lateIndexes = resolver.createLateBoundIndexSignatures(input, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - const memberNodes = concatenate(concatenate(concatenate(privateIdentifier, lateIndexes), parameterProperties), visitNodes2(input.members, visitDeclarationSubtree, isClassElement)); - const members = factory2.createNodeArray(memberNodes); - const extendsClause = getEffectiveBaseTypeNode(input); - if (extendsClause && !isEntityNameExpression(extendsClause.expression) && extendsClause.expression.kind !== 106 /* NullKeyword */) { - const oldId = input.name ? unescapeLeadingUnderscores(input.name.escapedText) : "default"; - const newId = factory2.createUniqueName(`${oldId}_base`, 16 /* Optimistic */); - getSymbolAccessibilityDiagnostic = () => ({ - diagnosticMessage: Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1, - errorNode: extendsClause, - typeName: input.name - }); - const varDecl = factory2.createVariableDeclaration( - newId, - /*exclamationToken*/ - void 0, - resolver.createTypeOfExpression(extendsClause.expression, input, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker), - /*initializer*/ - void 0 - ); - const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(138 /* DeclareKeyword */)] : [], factory2.createVariableDeclarationList([varDecl], 2 /* Const */)); - const heritageClauses = factory2.createNodeArray(map(input.heritageClauses, (clause) => { - if (clause.token === 96 /* ExtendsKeyword */) { - const oldDiag2 = getSymbolAccessibilityDiagnostic; - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(clause.types[0]); - const newClause = factory2.updateHeritageClause(clause, map(clause.types, (t) => factory2.updateExpressionWithTypeArguments(t, newId, visitNodes2(t.typeArguments, visitDeclarationSubtree, isTypeNode)))); - getSymbolAccessibilityDiagnostic = oldDiag2; - return newClause; - } - return factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(filter(clause.types, (t) => isEntityNameExpression(t.expression) || t.expression.kind === 106 /* NullKeyword */)), visitDeclarationSubtree, isExpressionWithTypeArguments)); - })); - return [ - statement, - cleanup(factory2.updateClassDeclaration( - input, - modifiers, - input.name, - typeParameters, - heritageClauses, - members - )) - ]; - } else { - const heritageClauses = transformHeritageClauses(input.heritageClauses); - return cleanup(factory2.updateClassDeclaration( - input, - modifiers, - input.name, - typeParameters, - heritageClauses, - members - )); - } - } - case 243 /* VariableStatement */: { - return cleanup(transformVariableStatement(input)); - } - case 266 /* EnumDeclaration */: { - return cleanup(factory2.updateEnumDeclaration( - input, - factory2.createNodeArray(ensureModifiers(input)), - input.name, - factory2.createNodeArray(mapDefined(input.members, (m) => { - if (shouldStripInternal(m)) return; - const enumValue = resolver.getEnumMemberValue(m); - const constValue = enumValue == null ? void 0 : enumValue.value; - if (isolatedDeclarations && m.initializer && (enumValue == null ? void 0 : enumValue.hasExternalReferences) && // This will be its own compiler error instead, so don't report. - !isComputedPropertyName(m.name)) { - context.addDiagnostic(createDiagnosticForNode(m, Diagnostics.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations)); - } - const newInitializer = constValue === void 0 ? void 0 : typeof constValue === "string" ? factory2.createStringLiteral(constValue) : constValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constValue)) : factory2.createNumericLiteral(constValue); - return preserveJsDoc(factory2.updateEnumMember(m, m.name, newInitializer), m); - })) - )); - } - } - return Debug.assertNever(input, `Unhandled top-level node in declaration emit: ${Debug.formatSyntaxKind(input.kind)}`); - function cleanup(node) { - if (isEnclosingDeclaration(input)) { - enclosingDeclaration = previousEnclosingDeclaration; - } - if (canProdiceDiagnostic) { - getSymbolAccessibilityDiagnostic = oldDiag; - } - if (input.kind === 267 /* ModuleDeclaration */) { - needsDeclare = previousNeedsDeclare; - } - if (node === input) { - return node; - } - errorFallbackNode = void 0; - errorNameNode = void 0; - return node && setOriginalNode(preserveJsDoc(node, input), input); - } - } - function transformVariableStatement(input) { - if (!forEach(input.declarationList.declarations, getBindingNameVisible)) return; - const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); - if (!length(nodes)) return; - const modifiers = factory2.createNodeArray(ensureModifiers(input)); - let declList; - if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { - declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); - setOriginalNode(declList, input.declarationList); - setTextRange(declList, input.declarationList); - setCommentRange(declList, input.declarationList); - } else { - declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); - } - return factory2.updateVariableStatement(input, modifiers, declList); - } - function recreateBindingPattern(d) { - return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); - } - function recreateBindingElement(e) { - if (e.kind === 232 /* OmittedExpression */) { - return; - } - if (e.name) { - if (!getBindingNameVisible(e)) return; - if (isBindingPattern(e.name)) { - return recreateBindingPattern(e.name); - } else { - return factory2.createVariableDeclaration( - e.name, - /*exclamationToken*/ - void 0, - ensureType(e), - /*initializer*/ - void 0 - ); - } - } - } - function checkName(node) { - let oldDiag; - if (!suppressNewDiagnosticContexts) { - oldDiag = getSymbolAccessibilityDiagnostic; - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNodeName(node); - } - errorNameNode = node.name; - Debug.assert(hasDynamicName(node)); - const decl = node; - const entityName = decl.name.expression; - checkEntityNameVisibility(entityName, enclosingDeclaration); - if (!suppressNewDiagnosticContexts) { - getSymbolAccessibilityDiagnostic = oldDiag; - } - errorNameNode = void 0; - } - function shouldStripInternal(node) { - return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile); - } - function isScopeMarker2(node) { - return isExportAssignment(node) || isExportDeclaration(node); - } - function hasScopeMarker2(statements) { - return some(statements, isScopeMarker2); - } - function ensureModifiers(node) { - const currentFlags = getEffectiveModifierFlags(node); - const newFlags = ensureModifierFlags(node); - if (currentFlags === newFlags) { - return visitArray(node.modifiers, (n) => tryCast(n, isModifier), isModifier); - } - return factory2.createModifiersFromModifierFlags(newFlags); - } - function ensureModifierFlags(node) { - let mask = 131071 /* All */ ^ (1 /* Public */ | 1024 /* Async */ | 16 /* Override */); - let additions = needsDeclare && !isAlwaysType(node) ? 128 /* Ambient */ : 0 /* None */; - const parentIsFile = node.parent.kind === 307 /* SourceFile */; - if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { - mask ^= 128 /* Ambient */; - additions = 0 /* None */; - } - return maskModifierFlags(node, mask, additions); - } - function transformHeritageClauses(nodes) { - return factory2.createNodeArray(filter( - map(nodes, (clause) => factory2.updateHeritageClause( - clause, - visitNodes2( - factory2.createNodeArray(filter(clause.types, (t) => { - return isEntityNameExpression(t.expression) || clause.token === 96 /* ExtendsKeyword */ && t.expression.kind === 106 /* NullKeyword */; - })), - visitDeclarationSubtree, - isExpressionWithTypeArguments - ) - )), - (clause) => clause.types && !!clause.types.length - )); - } -} -function isAlwaysType(node) { - if (node.kind === 264 /* InterfaceDeclaration */) { - return true; - } - return false; -} -function maskModifiers(factory2, node, modifierMask, modifierAdditions) { - return factory2.createModifiersFromModifierFlags(maskModifierFlags(node, modifierMask, modifierAdditions)); -} -function maskModifierFlags(node, modifierMask = 131071 /* All */ ^ 1 /* Public */, modifierAdditions = 0 /* None */) { - let flags = getEffectiveModifierFlags(node) & modifierMask | modifierAdditions; - if (flags & 2048 /* Default */ && !(flags & 32 /* Export */)) { - flags ^= 32 /* Export */; - } - if (flags & 2048 /* Default */ && flags & 128 /* Ambient */) { - flags ^= 128 /* Ambient */; - } - return flags; -} -function canHaveLiteralInitializer(node) { - switch (node.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return !hasEffectiveModifier(node, 2 /* Private */); - case 169 /* Parameter */: - case 260 /* VariableDeclaration */: - return true; - } - return false; -} -function isPreservedDeclarationStatement(node) { - switch (node.kind) { - case 262 /* FunctionDeclaration */: - case 267 /* ModuleDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 264 /* InterfaceDeclaration */: - case 263 /* ClassDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 266 /* EnumDeclaration */: - case 243 /* VariableStatement */: - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 277 /* ExportAssignment */: - return true; - } - return false; -} -function isProcessedComponent(node) { - switch (node.kind) { - case 180 /* ConstructSignature */: - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 181 /* IndexSignature */: - case 260 /* VariableDeclaration */: - case 168 /* TypeParameter */: - case 233 /* ExpressionWithTypeArguments */: - case 183 /* TypeReference */: - case 194 /* ConditionalType */: - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 205 /* ImportType */: - return true; - } - return false; -} - -// src/compiler/transformer.ts -function getModuleTransformer(moduleKind) { - switch (moduleKind) { - case 200 /* Preserve */: - return transformECMAScriptModule; - case 99 /* ESNext */: - case 7 /* ES2022 */: - case 6 /* ES2020 */: - case 5 /* ES2015 */: - case 100 /* Node16 */: - case 101 /* Node18 */: - case 199 /* NodeNext */: - case 1 /* CommonJS */: - return transformImpliedNodeFormatDependentModule; - case 4 /* System */: - return transformSystemModule; - default: - return transformModule; - } -} -var noTransformers = { scriptTransformers: emptyArray, declarationTransformers: emptyArray }; -function getTransformers(compilerOptions, customTransformers, emitOnly) { - return { - scriptTransformers: getScriptTransformers(compilerOptions, customTransformers, emitOnly), - declarationTransformers: getDeclarationTransformers(customTransformers) - }; -} -function getScriptTransformers(compilerOptions, customTransformers, emitOnly) { - if (emitOnly) return emptyArray; - const languageVersion = getEmitScriptTarget(compilerOptions); - const moduleKind = getEmitModuleKind(compilerOptions); - const useDefineForClassFields = getUseDefineForClassFields(compilerOptions); - const transformers = []; - addRange(transformers, customTransformers && map(customTransformers.before, wrapScriptTransformerFactory)); - transformers.push(transformTypeScript); - if (compilerOptions.experimentalDecorators) { - transformers.push(transformLegacyDecorators); - } - if (getJSXTransformEnabled(compilerOptions)) { - transformers.push(transformJsx); - } - if (languageVersion < 99 /* ESNext */) { - transformers.push(transformESNext); - } - if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { - transformers.push(transformESDecorators); - } - transformers.push(transformClassFields); - if (languageVersion < 8 /* ES2021 */) { - transformers.push(transformES2021); - } - if (languageVersion < 7 /* ES2020 */) { - transformers.push(transformES2020); - } - if (languageVersion < 6 /* ES2019 */) { - transformers.push(transformES2019); - } - if (languageVersion < 5 /* ES2018 */) { - transformers.push(transformES2018); - } - if (languageVersion < 4 /* ES2017 */) { - transformers.push(transformES2017); - } - if (languageVersion < 3 /* ES2016 */) { - transformers.push(transformES2016); - } - if (languageVersion < 2 /* ES2015 */) { - transformers.push(transformES2015); - transformers.push(transformGenerators); - } - transformers.push(getModuleTransformer(moduleKind)); - addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory)); - return transformers; -} -function getDeclarationTransformers(customTransformers) { - const transformers = []; - transformers.push(transformDeclarations); - addRange(transformers, customTransformers && map(customTransformers.afterDeclarations, wrapDeclarationTransformerFactory)); - return transformers; -} -function wrapCustomTransformer(transformer) { - return (node) => isBundle(node) ? transformer.transformBundle(node) : transformer.transformSourceFile(node); -} -function wrapCustomTransformerFactory(transformer, handleDefault) { - return (context) => { - const customTransformer = transformer(context); - return typeof customTransformer === "function" ? handleDefault(context, customTransformer) : wrapCustomTransformer(customTransformer); - }; -} -function wrapScriptTransformerFactory(transformer) { - return wrapCustomTransformerFactory(transformer, chainBundle); -} -function wrapDeclarationTransformerFactory(transformer) { - return wrapCustomTransformerFactory(transformer, (_, node) => node); -} -function noEmitSubstitution(_hint, node) { - return node; -} -function noEmitNotification(hint, node, callback) { - callback(hint, node); -} -function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { - var _a, _b; - const enabledSyntaxKindFeatures = new Array(358 /* Count */); - let lexicalEnvironmentVariableDeclarations; - let lexicalEnvironmentFunctionDeclarations; - let lexicalEnvironmentStatements; - let lexicalEnvironmentFlags = 0 /* None */; - let lexicalEnvironmentVariableDeclarationsStack = []; - let lexicalEnvironmentFunctionDeclarationsStack = []; - let lexicalEnvironmentStatementsStack = []; - let lexicalEnvironmentFlagsStack = []; - let lexicalEnvironmentStackOffset = 0; - let lexicalEnvironmentSuspended = false; - let blockScopedVariableDeclarationsStack = []; - let blockScopeStackOffset = 0; - let blockScopedVariableDeclarations; - let emitHelpers; - let onSubstituteNode = noEmitSubstitution; - let onEmitNode = noEmitNotification; - let state = 0 /* Uninitialized */; - const diagnostics = []; - const context = { - factory: factory2, - getCompilerOptions: () => options, - getEmitResolver: () => resolver, - // TODO: GH#18217 - getEmitHost: () => host, - // TODO: GH#18217 - getEmitHelperFactory: memoize(() => createEmitHelperFactory(context)), - startLexicalEnvironment, - suspendLexicalEnvironment, - resumeLexicalEnvironment, - endLexicalEnvironment, - setLexicalEnvironmentFlags, - getLexicalEnvironmentFlags, - hoistVariableDeclaration, - hoistFunctionDeclaration, - addInitializationStatement, - startBlockScope, - endBlockScope, - addBlockScopedVariable, - requestEmitHelper, - readEmitHelpers, - enableSubstitution, - enableEmitNotification, - isSubstitutionEnabled, - isEmitNotificationEnabled, - get onSubstituteNode() { - return onSubstituteNode; - }, - set onSubstituteNode(value) { - Debug.assert(state < 1 /* Initialized */, "Cannot modify transformation hooks after initialization has completed."); - Debug.assert(value !== void 0, "Value must not be 'undefined'"); - onSubstituteNode = value; - }, - get onEmitNode() { - return onEmitNode; - }, - set onEmitNode(value) { - Debug.assert(state < 1 /* Initialized */, "Cannot modify transformation hooks after initialization has completed."); - Debug.assert(value !== void 0, "Value must not be 'undefined'"); - onEmitNode = value; - }, - addDiagnostic(diag2) { - diagnostics.push(diag2); - } - }; - for (const node of nodes) { - disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node))); - } - mark("beforeTransform"); - const transformersWithContext = transformers.map((t) => t(context)); - const transformation = (node) => { - for (const transform of transformersWithContext) { - node = transform(node); - } - return node; - }; - state = 1 /* Initialized */; - const transformed = []; - for (const node of nodes) { - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 307 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); - transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); - (_b = tracing) == null ? void 0 : _b.pop(); - } - state = 2 /* Completed */; - mark("afterTransform"); - measure("transformTime", "beforeTransform", "afterTransform"); - return { - transformed, - substituteNode, - emitNodeWithNotification, - isEmitNotificationEnabled, - dispose, - diagnostics - }; - function transformRoot(node) { - return node && (!isSourceFile(node) || !node.isDeclarationFile) ? transformation(node) : node; - } - function enableSubstitution(kind) { - Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); - enabledSyntaxKindFeatures[kind] |= 1 /* Substitution */; - } - function isSubstitutionEnabled(node) { - return (enabledSyntaxKindFeatures[node.kind] & 1 /* Substitution */) !== 0 && (getEmitFlags(node) & 8 /* NoSubstitution */) === 0; - } - function substituteNode(hint, node) { - Debug.assert(state < 3 /* Disposed */, "Cannot substitute a node after the result is disposed."); - return node && isSubstitutionEnabled(node) && onSubstituteNode(hint, node) || node; - } - function enableEmitNotification(kind) { - Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); - enabledSyntaxKindFeatures[kind] |= 2 /* EmitNotifications */; - } - function isEmitNotificationEnabled(node) { - return (enabledSyntaxKindFeatures[node.kind] & 2 /* EmitNotifications */) !== 0 || (getEmitFlags(node) & 4 /* AdviseOnEmitNode */) !== 0; - } - function emitNodeWithNotification(hint, node, emitCallback) { - Debug.assert(state < 3 /* Disposed */, "Cannot invoke TransformationResult callbacks after the result is disposed."); - if (node) { - if (isEmitNotificationEnabled(node)) { - onEmitNode(hint, node, emitCallback); - } else { - emitCallback(hint, node); - } - } - } - function hoistVariableDeclaration(name) { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - const decl = setEmitFlags(factory2.createVariableDeclaration(name), 128 /* NoNestedSourceMaps */); - if (!lexicalEnvironmentVariableDeclarations) { - lexicalEnvironmentVariableDeclarations = [decl]; - } else { - lexicalEnvironmentVariableDeclarations.push(decl); - } - if (lexicalEnvironmentFlags & 1 /* InParameters */) { - lexicalEnvironmentFlags |= 2 /* VariablesHoistedInParameters */; - } - } - function hoistFunctionDeclaration(func) { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - setEmitFlags(func, 2097152 /* CustomPrologue */); - if (!lexicalEnvironmentFunctionDeclarations) { - lexicalEnvironmentFunctionDeclarations = [func]; - } else { - lexicalEnvironmentFunctionDeclarations.push(func); - } - } - function addInitializationStatement(node) { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - setEmitFlags(node, 2097152 /* CustomPrologue */); - if (!lexicalEnvironmentStatements) { - lexicalEnvironmentStatements = [node]; - } else { - lexicalEnvironmentStatements.push(node); - } - } - function startLexicalEnvironment() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); - lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentVariableDeclarations; - lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFunctionDeclarations; - lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentStatements; - lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFlags; - lexicalEnvironmentStackOffset++; - lexicalEnvironmentVariableDeclarations = void 0; - lexicalEnvironmentFunctionDeclarations = void 0; - lexicalEnvironmentStatements = void 0; - lexicalEnvironmentFlags = 0 /* None */; - } - function suspendLexicalEnvironment() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is already suspended."); - lexicalEnvironmentSuspended = true; - } - function resumeLexicalEnvironment() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - Debug.assert(lexicalEnvironmentSuspended, "Lexical environment is not suspended."); - lexicalEnvironmentSuspended = false; - } - function endLexicalEnvironment() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); - Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); - let statements; - if (lexicalEnvironmentVariableDeclarations || lexicalEnvironmentFunctionDeclarations || lexicalEnvironmentStatements) { - if (lexicalEnvironmentFunctionDeclarations) { - statements = [...lexicalEnvironmentFunctionDeclarations]; - } - if (lexicalEnvironmentVariableDeclarations) { - const statement = factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList(lexicalEnvironmentVariableDeclarations) - ); - setEmitFlags(statement, 2097152 /* CustomPrologue */); - if (!statements) { - statements = [statement]; - } else { - statements.push(statement); - } - } - if (lexicalEnvironmentStatements) { - if (!statements) { - statements = [...lexicalEnvironmentStatements]; - } else { - statements = [...statements, ...lexicalEnvironmentStatements]; - } - } - } - lexicalEnvironmentStackOffset--; - lexicalEnvironmentVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset]; - lexicalEnvironmentFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset]; - lexicalEnvironmentStatements = lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset]; - lexicalEnvironmentFlags = lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset]; - if (lexicalEnvironmentStackOffset === 0) { - lexicalEnvironmentVariableDeclarationsStack = []; - lexicalEnvironmentFunctionDeclarationsStack = []; - lexicalEnvironmentStatementsStack = []; - lexicalEnvironmentFlagsStack = []; - } - return statements; - } - function setLexicalEnvironmentFlags(flags, value) { - lexicalEnvironmentFlags = value ? lexicalEnvironmentFlags | flags : lexicalEnvironmentFlags & ~flags; - } - function getLexicalEnvironmentFlags() { - return lexicalEnvironmentFlags; - } - function startBlockScope() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot start a block scope during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot start a block scope after transformation has completed."); - blockScopedVariableDeclarationsStack[blockScopeStackOffset] = blockScopedVariableDeclarations; - blockScopeStackOffset++; - blockScopedVariableDeclarations = void 0; - } - function endBlockScope() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot end a block scope during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot end a block scope after transformation has completed."); - const statements = some(blockScopedVariableDeclarations) ? [ - factory2.createVariableStatement( - /*modifiers*/ - void 0, - factory2.createVariableDeclarationList( - blockScopedVariableDeclarations.map((identifier) => factory2.createVariableDeclaration(identifier)), - 1 /* Let */ - ) - ) - ] : void 0; - blockScopeStackOffset--; - blockScopedVariableDeclarations = blockScopedVariableDeclarationsStack[blockScopeStackOffset]; - if (blockScopeStackOffset === 0) { - blockScopedVariableDeclarationsStack = []; - } - return statements; - } - function addBlockScopedVariable(name) { - Debug.assert(blockScopeStackOffset > 0, "Cannot add a block scoped variable outside of an iteration body."); - (blockScopedVariableDeclarations || (blockScopedVariableDeclarations = [])).push(name); - } - function requestEmitHelper(helper) { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the transformation context during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); - Debug.assert(!helper.scoped, "Cannot request a scoped emit helper."); - if (helper.dependencies) { - for (const h of helper.dependencies) { - requestEmitHelper(h); - } - } - emitHelpers = append(emitHelpers, helper); - } - function readEmitHelpers() { - Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the transformation context during initialization."); - Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); - const helpers = emitHelpers; - emitHelpers = void 0; - return helpers; - } - function dispose() { - if (state < 3 /* Disposed */) { - for (const node of nodes) { - disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node))); - } - lexicalEnvironmentVariableDeclarations = void 0; - lexicalEnvironmentVariableDeclarationsStack = void 0; - lexicalEnvironmentFunctionDeclarations = void 0; - lexicalEnvironmentFunctionDeclarationsStack = void 0; - onSubstituteNode = void 0; - onEmitNode = void 0; - emitHelpers = void 0; - state = 3 /* Disposed */; - } - } -} -var nullTransformationContext = { - factory, - // eslint-disable-line object-shorthand - getCompilerOptions: () => ({}), - getEmitResolver: notImplemented, - getEmitHost: notImplemented, - getEmitHelperFactory: notImplemented, - startLexicalEnvironment: noop, - resumeLexicalEnvironment: noop, - suspendLexicalEnvironment: noop, - endLexicalEnvironment: returnUndefined, - setLexicalEnvironmentFlags: noop, - getLexicalEnvironmentFlags: () => 0, - hoistVariableDeclaration: noop, - hoistFunctionDeclaration: noop, - addInitializationStatement: noop, - startBlockScope: noop, - endBlockScope: returnUndefined, - addBlockScopedVariable: noop, - requestEmitHelper: noop, - readEmitHelpers: notImplemented, - enableSubstitution: noop, - enableEmitNotification: noop, - isSubstitutionEnabled: notImplemented, - isEmitNotificationEnabled: notImplemented, - onSubstituteNode: noEmitSubstitution, - onEmitNode: noEmitNotification, - addDiagnostic: noop -}; - -// src/compiler/emitter.ts -var brackets = createBracketsMap(); -function isBuildInfoFile(file) { - return fileExtensionIs(file, ".tsbuildinfo" /* TsBuildInfo */); -} -function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDtsEmit = false, onlyBuildInfo, includeBuildInfo) { - const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit); - const options = host.getCompilerOptions(); - if (!onlyBuildInfo) { - if (options.outFile) { - if (sourceFiles.length) { - const bundle = factory.createBundle(sourceFiles); - const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); - if (result) { - return result; - } - } - } else { - for (const sourceFile of sourceFiles) { - const result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile); - if (result) { - return result; - } - } - } - } - if (includeBuildInfo) { - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); - if (buildInfoPath) return action( - { buildInfoPath }, - /*sourceFileOrBundle*/ - void 0 - ); - } -} -function getTsBuildInfoEmitOutputFilePath(options) { - const configFile = options.configFilePath; - if (!canEmitTsBuildInfo(options)) return void 0; - if (options.tsBuildInfoFile) return options.tsBuildInfoFile; - const outPath = options.outFile; - let buildInfoExtensionLess; - if (outPath) { - buildInfoExtensionLess = removeFileExtension(outPath); - } else { - if (!configFile) return void 0; - const configFileExtensionLess = removeFileExtension(configFile); - buildInfoExtensionLess = options.outDir ? options.rootDir ? resolvePath(options.outDir, getRelativePathFromDirectory( - options.rootDir, - configFileExtensionLess, - /*ignoreCase*/ - true - )) : combinePaths(options.outDir, getBaseFileName(configFileExtensionLess)) : configFileExtensionLess; - } - return buildInfoExtensionLess + ".tsbuildinfo" /* TsBuildInfo */; -} -function canEmitTsBuildInfo(options) { - return isIncrementalCompilation(options) || !!options.tscBuild; -} -function getOutputPathsForBundle(options, forceDtsPaths) { - const outPath = options.outFile; - const jsFilePath = options.emitDeclarationOnly ? void 0 : outPath; - const sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options); - const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) ? removeFileExtension(outPath) + ".d.ts" /* Dts */ : void 0; - const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; - return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath }; -} -function getOutputPathsFor(sourceFile, host, forceDtsPaths) { - const options = host.getCompilerOptions(); - if (sourceFile.kind === 308 /* Bundle */) { - return getOutputPathsForBundle(options, forceDtsPaths); - } else { - const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); - const isJsonFile = isJsonSourceFile(sourceFile); - const isJsonEmittedToSameLocation = isJsonFile && comparePaths(sourceFile.fileName, ownOutputFilePath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */; - const jsFilePath = options.emitDeclarationOnly || isJsonEmittedToSameLocation ? void 0 : ownOutputFilePath; - const sourceMapFilePath = !jsFilePath || isJsonSourceFile(sourceFile) ? void 0 : getSourceMapFilePath(jsFilePath, options); - const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) && !isJsonFile ? getDeclarationEmitOutputFilePath(sourceFile.fileName, host) : void 0; - const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; - return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath }; - } -} -function getSourceMapFilePath(jsFilePath, options) { - return options.sourceMap && !options.inlineSourceMap ? jsFilePath + ".map" : void 0; -} -function getOutputExtension(fileName, options) { - return fileExtensionIs(fileName, ".json" /* Json */) ? ".json" /* Json */ : options.jsx === 1 /* Preserve */ && fileExtensionIsOneOf(fileName, [".jsx" /* Jsx */, ".tsx" /* Tsx */]) ? ".jsx" /* Jsx */ : fileExtensionIsOneOf(fileName, [".mts" /* Mts */, ".mjs" /* Mjs */]) ? ".mjs" /* Mjs */ : fileExtensionIsOneOf(fileName, [".cts" /* Cts */, ".cjs" /* Cjs */]) ? ".cjs" /* Cjs */ : ".js" /* Js */; -} -function getOutputPathWithoutChangingExt(inputFileName, ignoreCase, outputDir, getCommonSourceDirectory2) { - return outputDir ? resolvePath( - outputDir, - getRelativePathFromDirectory(getCommonSourceDirectory2(), inputFileName, ignoreCase) - ) : inputFileName; -} -function getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2 = () => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)) { - return getOutputDeclarationFileNameWorker(inputFileName, configFile.options, ignoreCase, getCommonSourceDirectory2); -} -function getOutputDeclarationFileNameWorker(inputFileName, options, ignoreCase, getCommonSourceDirectory2) { - return changeExtension( - getOutputPathWithoutChangingExt(inputFileName, ignoreCase, options.declarationDir || options.outDir, getCommonSourceDirectory2), - getDeclarationEmitExtensionForPath(inputFileName) - ); -} -function getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2 = () => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)) { - if (configFile.options.emitDeclarationOnly) return void 0; - const isJsonFile = fileExtensionIs(inputFileName, ".json" /* Json */); - const outputFileName = getOutputJSFileNameWorker(inputFileName, configFile.options, ignoreCase, getCommonSourceDirectory2); - return !isJsonFile || comparePaths(inputFileName, outputFileName, Debug.checkDefined(configFile.options.configFilePath), ignoreCase) !== 0 /* EqualTo */ ? outputFileName : void 0; -} -function getOutputJSFileNameWorker(inputFileName, options, ignoreCase, getCommonSourceDirectory2) { - return changeExtension( - getOutputPathWithoutChangingExt(inputFileName, ignoreCase, options.outDir, getCommonSourceDirectory2), - getOutputExtension(inputFileName, options) - ); -} -function createAddOutput() { - let outputs; - return { addOutput, getOutputs }; - function addOutput(path) { - if (path) { - (outputs || (outputs = [])).push(path); - } - } - function getOutputs() { - return outputs || emptyArray; - } -} -function getSingleOutputFileNames(configFile, addOutput) { - const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle( - configFile.options, - /*forceDtsPaths*/ - false - ); - addOutput(jsFilePath); - addOutput(sourceMapFilePath); - addOutput(declarationFilePath); - addOutput(declarationMapPath); -} -function getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2) { - if (isDeclarationFileName(inputFileName)) return; - const js = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); - addOutput(js); - if (fileExtensionIs(inputFileName, ".json" /* Json */)) return; - if (js && configFile.options.sourceMap) { - addOutput(`${js}.map`); - } - if (getEmitDeclarations(configFile.options)) { - const dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); - addOutput(dts); - if (configFile.options.declarationMap) { - addOutput(`${dts}.map`); - } - } -} -function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCanonicalFileName, checkSourceFilesBelongToPath) { - let commonSourceDirectory; - if (options.rootDir) { - commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory); - checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir); - } else if (options.composite && options.configFilePath) { - commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath)); - checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory); - } else { - commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles(), currentDirectory, getCanonicalFileName); - } - if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) { - commonSourceDirectory += directorySeparator; - } - return commonSourceDirectory; -} -function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) { - return getCommonSourceDirectory( - options, - () => filter(fileNames, (file) => !(options.noEmitForJsFiles && fileExtensionIsOneOf(file, supportedJSExtensionsFlat)) && !isDeclarationFileName(file)), - getDirectoryPath(normalizeSlashes(Debug.checkDefined(options.configFilePath))), - createGetCanonicalFileName(!ignoreCase) - ); -} -function getAllProjectOutputs(configFile, ignoreCase) { - const { addOutput, getOutputs } = createAddOutput(); - if (configFile.options.outFile) { - getSingleOutputFileNames(configFile, addOutput); - } else { - const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)); - for (const inputFileName of configFile.fileNames) { - getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2); - } - } - addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options)); - return getOutputs(); -} -function getFirstProjectOutput(configFile, ignoreCase) { - if (configFile.options.outFile) { - const { jsFilePath, declarationFilePath } = getOutputPathsForBundle( - configFile.options, - /*forceDtsPaths*/ - false - ); - return Debug.checkDefined(jsFilePath || declarationFilePath, `project ${configFile.options.configFilePath} expected to have at least one output`); - } - const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)); - for (const inputFileName of configFile.fileNames) { - if (isDeclarationFileName(inputFileName)) continue; - const jsFilePath = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); - if (jsFilePath) return jsFilePath; - if (fileExtensionIs(inputFileName, ".json" /* Json */)) continue; - if (getEmitDeclarations(configFile.options)) { - return getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); - } - } - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options); - if (buildInfoPath) return buildInfoPath; - return Debug.fail(`project ${configFile.options.configFilePath} expected to have at least one output`); -} -function emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) { - return !!forceDtsEmit && !!emitOnly; -} -function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, declarationTransformers }, emitOnly, onlyBuildInfo, forceDtsEmit, skipBuildInfo) { - var compilerOptions = host.getCompilerOptions(); - var sourceMapDataList = compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions) ? [] : void 0; - var emittedFilesList = compilerOptions.listEmittedFiles ? [] : void 0; - var emitterDiagnostics = createDiagnosticCollection(); - var newLine = getNewLineCharacter(compilerOptions); - var writer = createTextWriter(newLine); - var { enter, exit } = createTimer("printTime", "beforePrint", "afterPrint"); - var emitSkipped = false; - enter(); - forEachEmittedFile( - host, - emitSourceFileOrBundle, - getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit), - forceDtsEmit, - onlyBuildInfo, - !targetSourceFile && !skipBuildInfo - ); - exit(); - return { - emitSkipped, - diagnostics: emitterDiagnostics.getDiagnostics(), - emittedFiles: emittedFilesList, - sourceMaps: sourceMapDataList - }; - function emitSourceFileOrBundle({ jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }, sourceFileOrBundle) { - var _a, _b, _c, _d, _e, _f; - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "emitJsFileOrBundle", { jsFilePath }); - emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath); - (_b = tracing) == null ? void 0 : _b.pop(); - (_c = tracing) == null ? void 0 : _c.push(tracing.Phase.Emit, "emitDeclarationFileOrBundle", { declarationFilePath }); - emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath); - (_d = tracing) == null ? void 0 : _d.pop(); - (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Emit, "emitBuildInfo", { buildInfoPath }); - emitBuildInfo(buildInfoPath); - (_f = tracing) == null ? void 0 : _f.pop(); - } - function emitBuildInfo(buildInfoPath) { - if (!buildInfoPath || targetSourceFile) return; - if (host.isEmitBlocked(buildInfoPath)) { - emitSkipped = true; - return; - } - const buildInfo = host.getBuildInfo() || { version }; - writeFile( - host, - emitterDiagnostics, - buildInfoPath, - getBuildInfoText(buildInfo), - /*writeByteOrderMark*/ - false, - /*sourceFiles*/ - void 0, - { buildInfo } - ); - emittedFilesList == null ? void 0 : emittedFilesList.push(buildInfoPath); - } - function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath) { - if (!sourceFileOrBundle || emitOnly || !jsFilePath) { - return; - } - if (host.isEmitBlocked(jsFilePath) || compilerOptions.noEmit) { - emitSkipped = true; - return; - } - (isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach( - (sourceFile) => { - if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile); - } - ); - const transform = transformNodes( - resolver, - host, - factory, - compilerOptions, - [sourceFileOrBundle], - scriptTransformers, - /*allowDtsFiles*/ - false - ); - const printerOptions = { - removeComments: compilerOptions.removeComments, - newLine: compilerOptions.newLine, - noEmitHelpers: compilerOptions.noEmitHelpers, - module: getEmitModuleKind(compilerOptions), - moduleResolution: getEmitModuleResolutionKind(compilerOptions), - target: getEmitScriptTarget(compilerOptions), - sourceMap: compilerOptions.sourceMap, - inlineSourceMap: compilerOptions.inlineSourceMap, - inlineSources: compilerOptions.inlineSources, - extendedDiagnostics: compilerOptions.extendedDiagnostics - }; - const printer = createPrinter(printerOptions, { - // resolver hooks - hasGlobalName: resolver.hasGlobalName, - // transform hooks - onEmitNode: transform.emitNodeWithNotification, - isEmitNotificationEnabled: transform.isEmitNotificationEnabled, - substituteNode: transform.substituteNode - }); - Debug.assert(transform.transformed.length === 1, "Should only see one output from the transform"); - printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform, printer, compilerOptions); - transform.dispose(); - if (emittedFilesList) { - emittedFilesList.push(jsFilePath); - if (sourceMapFilePath) { - emittedFilesList.push(sourceMapFilePath); - } - } - } - function emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath) { - if (!sourceFileOrBundle || emitOnly === 0 /* Js */) return; - if (!declarationFilePath) { - if (emitOnly || compilerOptions.emitDeclarationOnly) emitSkipped = true; - return; - } - const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles; - const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson); - const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit; - filesForEmit.forEach((sourceFile) => { - if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) { - collectLinkedAliases(sourceFile); - } - }); - const declarationTransform = transformNodes( - resolver, - host, - factory, - compilerOptions, - inputListOrBundle, - declarationTransformers, - /*allowDtsFiles*/ - false - ); - if (length(declarationTransform.diagnostics)) { - for (const diagnostic of declarationTransform.diagnostics) { - emitterDiagnostics.add(diagnostic); - } - } - const declBlocked = !!declarationTransform.diagnostics && !!declarationTransform.diagnostics.length || !!host.isEmitBlocked(declarationFilePath) || !!compilerOptions.noEmit; - emitSkipped = emitSkipped || declBlocked; - if (!declBlocked || forceDtsEmit) { - Debug.assert(declarationTransform.transformed.length === 1, "Should only see one output from the decl transform"); - const printerOptions = { - removeComments: compilerOptions.removeComments, - newLine: compilerOptions.newLine, - noEmitHelpers: true, - module: compilerOptions.module, - moduleResolution: compilerOptions.moduleResolution, - target: compilerOptions.target, - sourceMap: emitOnly !== 2 /* BuilderSignature */ && compilerOptions.declarationMap, - inlineSourceMap: compilerOptions.inlineSourceMap, - extendedDiagnostics: compilerOptions.extendedDiagnostics, - onlyPrintJsDocStyle: true, - omitBraceSourceMapPositions: true - }; - const declarationPrinter = createPrinter(printerOptions, { - // resolver hooks - hasGlobalName: resolver.hasGlobalName, - // transform hooks - onEmitNode: declarationTransform.emitNodeWithNotification, - isEmitNotificationEnabled: declarationTransform.isEmitNotificationEnabled, - substituteNode: declarationTransform.substituteNode - }); - const dtsWritten = printSourceFileOrBundle( - declarationFilePath, - declarationMapPath, - declarationTransform, - declarationPrinter, - { - sourceMap: printerOptions.sourceMap, - sourceRoot: compilerOptions.sourceRoot, - mapRoot: compilerOptions.mapRoot, - extendedDiagnostics: compilerOptions.extendedDiagnostics - // Explicitly do not passthru either `inline` option - } - ); - if (emittedFilesList) { - if (dtsWritten) emittedFilesList.push(declarationFilePath); - if (declarationMapPath) { - emittedFilesList.push(declarationMapPath); - } - } - } - declarationTransform.dispose(); - } - function collectLinkedAliases(node) { - if (isExportAssignment(node)) { - if (node.expression.kind === 80 /* Identifier */) { - resolver.collectLinkedAliases( - node.expression, - /*setVisibility*/ - true - ); - } - return; - } else if (isExportSpecifier(node)) { - resolver.collectLinkedAliases( - node.propertyName || node.name, - /*setVisibility*/ - true - ); - return; - } - forEachChild(node, collectLinkedAliases); - } - function markLinkedReferences(file) { - if (isSourceFileJS(file)) return; - forEachChildRecursively(file, (n) => { - if (isImportEqualsDeclaration(n) && !(getSyntacticModifierFlags(n) & 32 /* Export */)) return "skip"; - if (isImportDeclaration(n)) return "skip"; - resolver.markLinkedReferences(n); - }); - } - function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform, printer, mapOptions) { - const sourceFileOrBundle = transform.transformed[0]; - const bundle = sourceFileOrBundle.kind === 308 /* Bundle */ ? sourceFileOrBundle : void 0; - const sourceFile = sourceFileOrBundle.kind === 307 /* SourceFile */ ? sourceFileOrBundle : void 0; - const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; - let sourceMapGenerator; - if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { - sourceMapGenerator = createSourceMapGenerator( - host, - getBaseFileName(normalizeSlashes(jsFilePath)), - getSourceRoot(mapOptions), - getSourceMapDirectory(mapOptions, jsFilePath, sourceFile), - mapOptions - ); - } - if (bundle) { - printer.writeBundle(bundle, writer, sourceMapGenerator); - } else { - printer.writeFile(sourceFile, writer, sourceMapGenerator); - } - let sourceMapUrlPos; - if (sourceMapGenerator) { - if (sourceMapDataList) { - sourceMapDataList.push({ - inputSourceFileNames: sourceMapGenerator.getSources(), - sourceMap: sourceMapGenerator.toJSON() - }); - } - const sourceMappingURL = getSourceMappingURL( - mapOptions, - sourceMapGenerator, - jsFilePath, - sourceMapFilePath, - sourceFile - ); - if (sourceMappingURL) { - if (!writer.isAtStartOfLine()) writer.rawWrite(newLine); - sourceMapUrlPos = writer.getTextPos(); - writer.writeComment(`//# ${"sourceMappingURL"}=${sourceMappingURL}`); - } - if (sourceMapFilePath) { - const sourceMap = sourceMapGenerator.toString(); - writeFile( - host, - emitterDiagnostics, - sourceMapFilePath, - sourceMap, - /*writeByteOrderMark*/ - false, - sourceFiles - ); - } - } else { - writer.writeLine(); - } - const text = writer.getText(); - const data = { sourceMapUrlPos, diagnostics: transform.diagnostics }; - writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data); - writer.clear(); - return !data.skippedDtsWrite; - } - function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { - return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 307 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); - } - function getSourceRoot(mapOptions) { - const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); - return sourceRoot ? ensureTrailingDirectorySeparator(sourceRoot) : sourceRoot; - } - function getSourceMapDirectory(mapOptions, filePath, sourceFile) { - if (mapOptions.sourceRoot) return host.getCommonSourceDirectory(); - if (mapOptions.mapRoot) { - let sourceMapDir = normalizeSlashes(mapOptions.mapRoot); - if (sourceFile) { - sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir)); - } - if (getRootLength(sourceMapDir) === 0) { - sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); - } - return sourceMapDir; - } - return getDirectoryPath(normalizePath(filePath)); - } - function getSourceMappingURL(mapOptions, sourceMapGenerator, filePath, sourceMapFilePath, sourceFile) { - if (mapOptions.inlineSourceMap) { - const sourceMapText = sourceMapGenerator.toString(); - const base64SourceMapText = base64encode(sys, sourceMapText); - return `data:application/json;base64,${base64SourceMapText}`; - } - const sourceMapFile = getBaseFileName(normalizeSlashes(Debug.checkDefined(sourceMapFilePath))); - if (mapOptions.mapRoot) { - let sourceMapDir = normalizeSlashes(mapOptions.mapRoot); - if (sourceFile) { - sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir)); - } - if (getRootLength(sourceMapDir) === 0) { - sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); - return encodeURI( - getRelativePathToDirectoryOrUrl( - getDirectoryPath(normalizePath(filePath)), - // get the relative sourceMapDir path based on jsFilePath - combinePaths(sourceMapDir, sourceMapFile), - // this is where user expects to see sourceMap - host.getCurrentDirectory(), - host.getCanonicalFileName, - /*isAbsolutePathAnUrl*/ - true - ) - ); - } else { - return encodeURI(combinePaths(sourceMapDir, sourceMapFile)); - } - } - return encodeURI(sourceMapFile); - } -} -function getBuildInfoText(buildInfo) { - return JSON.stringify(buildInfo); -} -function getBuildInfo(buildInfoFile, buildInfoText) { - return readJsonOrUndefined(buildInfoFile, buildInfoText); -} -var notImplementedResolver = { - hasGlobalName: notImplemented, - getReferencedExportContainer: notImplemented, - getReferencedImportDeclaration: notImplemented, - getReferencedDeclarationWithCollidingName: notImplemented, - isDeclarationWithCollidingName: notImplemented, - isValueAliasDeclaration: notImplemented, - isReferencedAliasDeclaration: notImplemented, - isTopLevelValueImportEqualsWithEntityName: notImplemented, - hasNodeCheckFlag: notImplemented, - isDeclarationVisible: notImplemented, - isLateBound: (_node) => false, - collectLinkedAliases: notImplemented, - markLinkedReferences: notImplemented, - isImplementationOfOverload: notImplemented, - requiresAddingImplicitUndefined: notImplemented, - isExpandoFunctionDeclaration: notImplemented, - getPropertiesOfContainerFunction: notImplemented, - createTypeOfDeclaration: notImplemented, - createReturnTypeOfSignatureDeclaration: notImplemented, - createTypeOfExpression: notImplemented, - createLiteralConstValue: notImplemented, - isSymbolAccessible: notImplemented, - isEntityNameVisible: notImplemented, - // Returns the constant value this property access resolves to: notImplemented, or 'undefined' for a non-constant - getConstantValue: notImplemented, - getEnumMemberValue: notImplemented, - getReferencedValueDeclaration: notImplemented, - getReferencedValueDeclarations: notImplemented, - getTypeReferenceSerializationKind: notImplemented, - isOptionalParameter: notImplemented, - isArgumentsLocalBinding: notImplemented, - getExternalModuleFileFromDeclaration: notImplemented, - isLiteralConstDeclaration: notImplemented, - getJsxFactoryEntity: notImplemented, - getJsxFragmentFactoryEntity: notImplemented, - isBindingCapturedByNode: notImplemented, - getDeclarationStatementsForSourceFile: notImplemented, - isImportRequiredByAugmentation: notImplemented, - isDefinitelyReferenceToGlobalSymbolObject: notImplemented, - createLateBoundIndexSignatures: notImplemented -}; -var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({})); -var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true })); -var createPrinterWithRemoveCommentsNeverAsciiEscape = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true })); -var createPrinterWithRemoveCommentsOmitTrailingSemicolon = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true })); -function createPrinter(printerOptions = {}, handlers = {}) { - var { - hasGlobalName, - onEmitNode = noEmitNotification, - isEmitNotificationEnabled, - substituteNode = noEmitSubstitution, - onBeforeEmitNode, - onAfterEmitNode, - onBeforeEmitNodeArray, - onAfterEmitNodeArray, - onBeforeEmitToken, - onAfterEmitToken - } = handlers; - var extendedDiagnostics = !!printerOptions.extendedDiagnostics; - var omitBraceSourcePositions = !!printerOptions.omitBraceSourceMapPositions; - var newLine = getNewLineCharacter(printerOptions); - var moduleKind = getEmitModuleKind(printerOptions); - var bundledHelpers = /* @__PURE__ */ new Map(); - var currentSourceFile; - var nodeIdToGeneratedName; - var nodeIdToGeneratedPrivateName; - var autoGeneratedIdToGeneratedName; - var generatedNames; - var formattedNameTempFlagsStack; - var formattedNameTempFlags; - var privateNameTempFlagsStack; - var privateNameTempFlags; - var tempFlagsStack; - var tempFlags; - var reservedNamesStack; - var reservedNames; - var reservedPrivateNamesStack; - var reservedPrivateNames; - var preserveSourceNewlines = printerOptions.preserveSourceNewlines; - var nextListElementPos; - var writer; - var ownWriter; - var write = writeBase; - var isOwnFileEmit; - var sourceMapsDisabled = true; - var sourceMapGenerator; - var sourceMapSource; - var sourceMapSourceIndex = -1; - var mostRecentlyAddedSourceMapSource; - var mostRecentlyAddedSourceMapSourceIndex = -1; - var containerPos = -1; - var containerEnd = -1; - var declarationListContainerEnd = -1; - var currentLineMap; - var detachedCommentsInfo; - var hasWrittenComment = false; - var commentsDisabled = !!printerOptions.removeComments; - var lastSubstitution; - var currentParenthesizerRule; - var { enter: enterComment, exit: exitComment } = createTimerIf(extendedDiagnostics, "commentTime", "beforeComment", "afterComment"); - var parenthesizer = factory.parenthesizer; - var typeArgumentParenthesizerRuleSelector = { - select: (index) => index === 0 ? parenthesizer.parenthesizeLeadingTypeArgument : void 0 - }; - var emitBinaryExpression = createEmitBinaryExpression(); - reset(); - return { - // public API - printNode, - printList, - printFile, - printBundle, - // internal API - writeNode, - writeList, - writeFile: writeFile2, - writeBundle - }; - function printNode(hint, node, sourceFile) { - switch (hint) { - case 0 /* SourceFile */: - Debug.assert(isSourceFile(node), "Expected a SourceFile node."); - break; - case 2 /* IdentifierName */: - Debug.assert(isIdentifier(node), "Expected an Identifier node."); - break; - case 1 /* Expression */: - Debug.assert(isExpression(node), "Expected an Expression node."); - break; - } - switch (node.kind) { - case 307 /* SourceFile */: - return printFile(node); - case 308 /* Bundle */: - return printBundle(node); - } - writeNode(hint, node, sourceFile, beginPrint()); - return endPrint(); - } - function printList(format, nodes, sourceFile) { - writeList(format, nodes, sourceFile, beginPrint()); - return endPrint(); - } - function printBundle(bundle) { - writeBundle( - bundle, - beginPrint(), - /*sourceMapGenerator*/ - void 0 - ); - return endPrint(); - } - function printFile(sourceFile) { - writeFile2( - sourceFile, - beginPrint(), - /*sourceMapGenerator*/ - void 0 - ); - return endPrint(); - } - function writeNode(hint, node, sourceFile, output) { - const previousWriter = writer; - setWriter( - output, - /*_sourceMapGenerator*/ - void 0 - ); - print(hint, node, sourceFile); - reset(); - writer = previousWriter; - } - function writeList(format, nodes, sourceFile, output) { - const previousWriter = writer; - setWriter( - output, - /*_sourceMapGenerator*/ - void 0 - ); - if (sourceFile) { - setSourceFile(sourceFile); - } - emitList( - /*parentNode*/ - void 0, - nodes, - format - ); - reset(); - writer = previousWriter; - } - function writeBundle(bundle, output, sourceMapGenerator2) { - isOwnFileEmit = false; - const previousWriter = writer; - setWriter(output, sourceMapGenerator2); - emitShebangIfNeeded(bundle); - emitPrologueDirectivesIfNeeded(bundle); - emitHelpers(bundle); - emitSyntheticTripleSlashReferencesIfNeeded(bundle); - for (const sourceFile of bundle.sourceFiles) { - print(0 /* SourceFile */, sourceFile, sourceFile); - } - reset(); - writer = previousWriter; - } - function writeFile2(sourceFile, output, sourceMapGenerator2) { - isOwnFileEmit = true; - const previousWriter = writer; - setWriter(output, sourceMapGenerator2); - emitShebangIfNeeded(sourceFile); - emitPrologueDirectivesIfNeeded(sourceFile); - print(0 /* SourceFile */, sourceFile, sourceFile); - reset(); - writer = previousWriter; - } - function beginPrint() { - return ownWriter || (ownWriter = createTextWriter(newLine)); - } - function endPrint() { - const text = ownWriter.getText(); - ownWriter.clear(); - return text; - } - function print(hint, node, sourceFile) { - if (sourceFile) { - setSourceFile(sourceFile); - } - pipelineEmit( - hint, - node, - /*parenthesizerRule*/ - void 0 - ); - } - function setSourceFile(sourceFile) { - currentSourceFile = sourceFile; - currentLineMap = void 0; - detachedCommentsInfo = void 0; - if (sourceFile) { - setSourceMapSource(sourceFile); - } - } - function setWriter(_writer, _sourceMapGenerator) { - if (_writer && printerOptions.omitTrailingSemicolon) { - _writer = getTrailingSemicolonDeferringWriter(_writer); - } - writer = _writer; - sourceMapGenerator = _sourceMapGenerator; - sourceMapsDisabled = !writer || !sourceMapGenerator; - } - function reset() { - nodeIdToGeneratedName = []; - nodeIdToGeneratedPrivateName = []; - autoGeneratedIdToGeneratedName = []; - generatedNames = /* @__PURE__ */ new Set(); - formattedNameTempFlagsStack = []; - formattedNameTempFlags = /* @__PURE__ */ new Map(); - privateNameTempFlagsStack = []; - privateNameTempFlags = 0 /* Auto */; - tempFlagsStack = []; - tempFlags = 0 /* Auto */; - reservedNamesStack = []; - reservedNames = void 0; - reservedPrivateNamesStack = []; - reservedPrivateNames = void 0; - currentSourceFile = void 0; - currentLineMap = void 0; - detachedCommentsInfo = void 0; - setWriter( - /*output*/ - void 0, - /*_sourceMapGenerator*/ - void 0 - ); - } - function getCurrentLineMap() { - return currentLineMap || (currentLineMap = getLineStarts(Debug.checkDefined(currentSourceFile))); - } - function emit(node, parenthesizerRule) { - if (node === void 0) return; - pipelineEmit(4 /* Unspecified */, node, parenthesizerRule); - } - function emitIdentifierName(node) { - if (node === void 0) return; - pipelineEmit( - 2 /* IdentifierName */, - node, - /*parenthesizerRule*/ - void 0 - ); - } - function emitExpression(node, parenthesizerRule) { - if (node === void 0) return; - pipelineEmit(1 /* Expression */, node, parenthesizerRule); - } - function emitJsxAttributeValue(node) { - pipelineEmit(isStringLiteral(node) ? 6 /* JsxAttributeValue */ : 4 /* Unspecified */, node); - } - function beforeEmitNode(node) { - if (preserveSourceNewlines && getInternalEmitFlags(node) & 4 /* IgnoreSourceNewlines */) { - preserveSourceNewlines = false; - } - } - function afterEmitNode(savedPreserveSourceNewlines) { - preserveSourceNewlines = savedPreserveSourceNewlines; - } - function pipelineEmit(emitHint, node, parenthesizerRule) { - currentParenthesizerRule = parenthesizerRule; - const pipelinePhase = getPipelinePhase(0 /* Notification */, emitHint, node); - pipelinePhase(emitHint, node); - currentParenthesizerRule = void 0; - } - function shouldEmitComments(node) { - return !commentsDisabled && !isSourceFile(node); - } - function shouldEmitSourceMaps(node) { - return !sourceMapsDisabled && !isSourceFile(node) && !isInJsonFile(node); - } - function getPipelinePhase(phase, emitHint, node) { - switch (phase) { - case 0 /* Notification */: - if (onEmitNode !== noEmitNotification && (!isEmitNotificationEnabled || isEmitNotificationEnabled(node))) { - return pipelineEmitWithNotification; - } - // falls through - case 1 /* Substitution */: - if (substituteNode !== noEmitSubstitution && (lastSubstitution = substituteNode(emitHint, node) || node) !== node) { - if (currentParenthesizerRule) { - lastSubstitution = currentParenthesizerRule(lastSubstitution); - } - return pipelineEmitWithSubstitution; - } - // falls through - case 2 /* Comments */: - if (shouldEmitComments(node)) { - return pipelineEmitWithComments; - } - // falls through - case 3 /* SourceMaps */: - if (shouldEmitSourceMaps(node)) { - return pipelineEmitWithSourceMaps; - } - // falls through - case 4 /* Emit */: - return pipelineEmitWithHint; - default: - return Debug.assertNever(phase); - } - } - function getNextPipelinePhase(currentPhase, emitHint, node) { - return getPipelinePhase(currentPhase + 1, emitHint, node); - } - function pipelineEmitWithNotification(hint, node) { - const pipelinePhase = getNextPipelinePhase(0 /* Notification */, hint, node); - onEmitNode(hint, node, pipelinePhase); - } - function pipelineEmitWithHint(hint, node) { - onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node); - if (preserveSourceNewlines) { - const savedPreserveSourceNewlines = preserveSourceNewlines; - beforeEmitNode(node); - pipelineEmitWithHintWorker(hint, node); - afterEmitNode(savedPreserveSourceNewlines); - } else { - pipelineEmitWithHintWorker(hint, node); - } - onAfterEmitNode == null ? void 0 : onAfterEmitNode(node); - currentParenthesizerRule = void 0; - } - function pipelineEmitWithHintWorker(hint, node, allowSnippets = true) { - if (allowSnippets) { - const snippet = getSnippetElement(node); - if (snippet) { - return emitSnippetNode(hint, node, snippet); - } - } - if (hint === 0 /* SourceFile */) return emitSourceFile(cast(node, isSourceFile)); - if (hint === 2 /* IdentifierName */) return emitIdentifier(cast(node, isIdentifier)); - if (hint === 6 /* JsxAttributeValue */) return emitLiteral( - cast(node, isStringLiteral), - /*jsxAttributeEscape*/ - true - ); - if (hint === 3 /* MappedTypeParameter */) return emitMappedTypeParameter(cast(node, isTypeParameterDeclaration)); - if (hint === 7 /* ImportTypeNodeAttributes */) return emitImportTypeNodeAttributes(cast(node, isImportAttributes)); - if (hint === 5 /* EmbeddedStatement */) { - Debug.assertNode(node, isEmptyStatement); - return emitEmptyStatement( - /*isEmbeddedStatement*/ - true - ); - } - if (hint === 4 /* Unspecified */) { - switch (node.kind) { - // Pseudo-literals - case 16 /* TemplateHead */: - case 17 /* TemplateMiddle */: - case 18 /* TemplateTail */: - return emitLiteral( - node, - /*jsxAttributeEscape*/ - false - ); - // Identifiers - case 80 /* Identifier */: - return emitIdentifier(node); - // PrivateIdentifiers - case 81 /* PrivateIdentifier */: - return emitPrivateIdentifier(node); - // Parse tree nodes - // Names - case 166 /* QualifiedName */: - return emitQualifiedName(node); - case 167 /* ComputedPropertyName */: - return emitComputedPropertyName(node); - // Signature elements - case 168 /* TypeParameter */: - return emitTypeParameter(node); - case 169 /* Parameter */: - return emitParameter(node); - case 170 /* Decorator */: - return emitDecorator(node); - // Type members - case 171 /* PropertySignature */: - return emitPropertySignature(node); - case 172 /* PropertyDeclaration */: - return emitPropertyDeclaration(node); - case 173 /* MethodSignature */: - return emitMethodSignature(node); - case 174 /* MethodDeclaration */: - return emitMethodDeclaration(node); - case 175 /* ClassStaticBlockDeclaration */: - return emitClassStaticBlockDeclaration(node); - case 176 /* Constructor */: - return emitConstructor(node); - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return emitAccessorDeclaration(node); - case 179 /* CallSignature */: - return emitCallSignature(node); - case 180 /* ConstructSignature */: - return emitConstructSignature(node); - case 181 /* IndexSignature */: - return emitIndexSignature(node); - // Types - case 182 /* TypePredicate */: - return emitTypePredicate(node); - case 183 /* TypeReference */: - return emitTypeReference(node); - case 184 /* FunctionType */: - return emitFunctionType(node); - case 185 /* ConstructorType */: - return emitConstructorType(node); - case 186 /* TypeQuery */: - return emitTypeQuery(node); - case 187 /* TypeLiteral */: - return emitTypeLiteral(node); - case 188 /* ArrayType */: - return emitArrayType(node); - case 189 /* TupleType */: - return emitTupleType(node); - case 190 /* OptionalType */: - return emitOptionalType(node); - // SyntaxKind.RestType is handled below - case 192 /* UnionType */: - return emitUnionType(node); - case 193 /* IntersectionType */: - return emitIntersectionType(node); - case 194 /* ConditionalType */: - return emitConditionalType(node); - case 195 /* InferType */: - return emitInferType(node); - case 196 /* ParenthesizedType */: - return emitParenthesizedType(node); - case 233 /* ExpressionWithTypeArguments */: - return emitExpressionWithTypeArguments(node); - case 197 /* ThisType */: - return emitThisType(); - case 198 /* TypeOperator */: - return emitTypeOperator(node); - case 199 /* IndexedAccessType */: - return emitIndexedAccessType(node); - case 200 /* MappedType */: - return emitMappedType(node); - case 201 /* LiteralType */: - return emitLiteralType(node); - case 202 /* NamedTupleMember */: - return emitNamedTupleMember(node); - case 203 /* TemplateLiteralType */: - return emitTemplateType(node); - case 204 /* TemplateLiteralTypeSpan */: - return emitTemplateTypeSpan(node); - case 205 /* ImportType */: - return emitImportTypeNode(node); - // Binding patterns - case 206 /* ObjectBindingPattern */: - return emitObjectBindingPattern(node); - case 207 /* ArrayBindingPattern */: - return emitArrayBindingPattern(node); - case 208 /* BindingElement */: - return emitBindingElement(node); - // Misc - case 239 /* TemplateSpan */: - return emitTemplateSpan(node); - case 240 /* SemicolonClassElement */: - return emitSemicolonClassElement(); - // Statements - case 241 /* Block */: - return emitBlock(node); - case 243 /* VariableStatement */: - return emitVariableStatement(node); - case 242 /* EmptyStatement */: - return emitEmptyStatement( - /*isEmbeddedStatement*/ - false - ); - case 244 /* ExpressionStatement */: - return emitExpressionStatement(node); - case 245 /* IfStatement */: - return emitIfStatement(node); - case 246 /* DoStatement */: - return emitDoStatement(node); - case 247 /* WhileStatement */: - return emitWhileStatement(node); - case 248 /* ForStatement */: - return emitForStatement(node); - case 249 /* ForInStatement */: - return emitForInStatement(node); - case 250 /* ForOfStatement */: - return emitForOfStatement(node); - case 251 /* ContinueStatement */: - return emitContinueStatement(node); - case 252 /* BreakStatement */: - return emitBreakStatement(node); - case 253 /* ReturnStatement */: - return emitReturnStatement(node); - case 254 /* WithStatement */: - return emitWithStatement(node); - case 255 /* SwitchStatement */: - return emitSwitchStatement(node); - case 256 /* LabeledStatement */: - return emitLabeledStatement(node); - case 257 /* ThrowStatement */: - return emitThrowStatement(node); - case 258 /* TryStatement */: - return emitTryStatement(node); - case 259 /* DebuggerStatement */: - return emitDebuggerStatement(node); - // Declarations - case 260 /* VariableDeclaration */: - return emitVariableDeclaration(node); - case 261 /* VariableDeclarationList */: - return emitVariableDeclarationList(node); - case 262 /* FunctionDeclaration */: - return emitFunctionDeclaration(node); - case 263 /* ClassDeclaration */: - return emitClassDeclaration(node); - case 264 /* InterfaceDeclaration */: - return emitInterfaceDeclaration(node); - case 265 /* TypeAliasDeclaration */: - return emitTypeAliasDeclaration(node); - case 266 /* EnumDeclaration */: - return emitEnumDeclaration(node); - case 267 /* ModuleDeclaration */: - return emitModuleDeclaration(node); - case 268 /* ModuleBlock */: - return emitModuleBlock(node); - case 269 /* CaseBlock */: - return emitCaseBlock(node); - case 270 /* NamespaceExportDeclaration */: - return emitNamespaceExportDeclaration(node); - case 271 /* ImportEqualsDeclaration */: - return emitImportEqualsDeclaration(node); - case 272 /* ImportDeclaration */: - return emitImportDeclaration(node); - case 273 /* ImportClause */: - return emitImportClause(node); - case 274 /* NamespaceImport */: - return emitNamespaceImport(node); - case 280 /* NamespaceExport */: - return emitNamespaceExport(node); - case 275 /* NamedImports */: - return emitNamedImports(node); - case 276 /* ImportSpecifier */: - return emitImportSpecifier(node); - case 277 /* ExportAssignment */: - return emitExportAssignment(node); - case 278 /* ExportDeclaration */: - return emitExportDeclaration(node); - case 279 /* NamedExports */: - return emitNamedExports(node); - case 281 /* ExportSpecifier */: - return emitExportSpecifier(node); - case 300 /* ImportAttributes */: - return emitImportAttributes(node); - case 301 /* ImportAttribute */: - return emitImportAttribute(node); - case 282 /* MissingDeclaration */: - return; - // Module references - case 283 /* ExternalModuleReference */: - return emitExternalModuleReference(node); - // JSX (non-expression) - case 12 /* JsxText */: - return emitJsxText(node); - case 286 /* JsxOpeningElement */: - case 289 /* JsxOpeningFragment */: - return emitJsxOpeningElementOrFragment(node); - case 287 /* JsxClosingElement */: - case 290 /* JsxClosingFragment */: - return emitJsxClosingElementOrFragment(node); - case 291 /* JsxAttribute */: - return emitJsxAttribute(node); - case 292 /* JsxAttributes */: - return emitJsxAttributes(node); - case 293 /* JsxSpreadAttribute */: - return emitJsxSpreadAttribute(node); - case 294 /* JsxExpression */: - return emitJsxExpression(node); - case 295 /* JsxNamespacedName */: - return emitJsxNamespacedName(node); - // Clauses - case 296 /* CaseClause */: - return emitCaseClause(node); - case 297 /* DefaultClause */: - return emitDefaultClause(node); - case 298 /* HeritageClause */: - return emitHeritageClause(node); - case 299 /* CatchClause */: - return emitCatchClause(node); - // Property assignments - case 303 /* PropertyAssignment */: - return emitPropertyAssignment(node); - case 304 /* ShorthandPropertyAssignment */: - return emitShorthandPropertyAssignment(node); - case 305 /* SpreadAssignment */: - return emitSpreadAssignment(node); - // Enum - case 306 /* EnumMember */: - return emitEnumMember(node); - // Top-level nodes - case 307 /* SourceFile */: - return emitSourceFile(node); - case 308 /* Bundle */: - return Debug.fail("Bundles should be printed using printBundle"); - // JSDoc nodes (only used in codefixes currently) - case 309 /* JSDocTypeExpression */: - return emitJSDocTypeExpression(node); - case 310 /* JSDocNameReference */: - return emitJSDocNameReference(node); - case 312 /* JSDocAllType */: - return writePunctuation("*"); - case 313 /* JSDocUnknownType */: - return writePunctuation("?"); - case 314 /* JSDocNullableType */: - return emitJSDocNullableType(node); - case 315 /* JSDocNonNullableType */: - return emitJSDocNonNullableType(node); - case 316 /* JSDocOptionalType */: - return emitJSDocOptionalType(node); - case 317 /* JSDocFunctionType */: - return emitJSDocFunctionType(node); - case 191 /* RestType */: - case 318 /* JSDocVariadicType */: - return emitRestOrJSDocVariadicType(node); - case 319 /* JSDocNamepathType */: - return; - case 320 /* JSDoc */: - return emitJSDoc(node); - case 322 /* JSDocTypeLiteral */: - return emitJSDocTypeLiteral(node); - case 323 /* JSDocSignature */: - return emitJSDocSignature(node); - case 327 /* JSDocTag */: - case 332 /* JSDocClassTag */: - case 337 /* JSDocOverrideTag */: - return emitJSDocSimpleTag(node); - case 328 /* JSDocAugmentsTag */: - case 329 /* JSDocImplementsTag */: - return emitJSDocHeritageTag(node); - case 330 /* JSDocAuthorTag */: - case 331 /* JSDocDeprecatedTag */: - return; - // SyntaxKind.JSDocClassTag (see JSDocTag, above) - case 333 /* JSDocPublicTag */: - case 334 /* JSDocPrivateTag */: - case 335 /* JSDocProtectedTag */: - case 336 /* JSDocReadonlyTag */: - return; - case 338 /* JSDocCallbackTag */: - return emitJSDocCallbackTag(node); - case 339 /* JSDocOverloadTag */: - return emitJSDocOverloadTag(node); - // SyntaxKind.JSDocEnumTag (see below) - case 341 /* JSDocParameterTag */: - case 348 /* JSDocPropertyTag */: - return emitJSDocPropertyLikeTag(node); - case 340 /* JSDocEnumTag */: - case 342 /* JSDocReturnTag */: - case 343 /* JSDocThisTag */: - case 344 /* JSDocTypeTag */: - case 349 /* JSDocThrowsTag */: - case 350 /* JSDocSatisfiesTag */: - return emitJSDocSimpleTypedTag(node); - case 345 /* JSDocTemplateTag */: - return emitJSDocTemplateTag(node); - case 346 /* JSDocTypedefTag */: - return emitJSDocTypedefTag(node); - case 347 /* JSDocSeeTag */: - return emitJSDocSeeTag(node); - case 351 /* JSDocImportTag */: - return emitJSDocImportTag(node); - // SyntaxKind.JSDocPropertyTag (see JSDocParameterTag, above) - // Transformation nodes - case 353 /* NotEmittedStatement */: - case 354 /* NotEmittedTypeElement */: - return; - } - if (isExpression(node)) { - hint = 1 /* Expression */; - if (substituteNode !== noEmitSubstitution) { - const substitute = substituteNode(hint, node) || node; - if (substitute !== node) { - node = substitute; - if (currentParenthesizerRule) { - node = currentParenthesizerRule(node); - } - } - } - } - } - if (hint === 1 /* Expression */) { - switch (node.kind) { - // Literals - case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: - return emitNumericOrBigIntLiteral(node); - case 11 /* StringLiteral */: - case 14 /* RegularExpressionLiteral */: - case 15 /* NoSubstitutionTemplateLiteral */: - return emitLiteral( - node, - /*jsxAttributeEscape*/ - false - ); - // Identifiers - case 80 /* Identifier */: - return emitIdentifier(node); - case 81 /* PrivateIdentifier */: - return emitPrivateIdentifier(node); - // Expressions - case 209 /* ArrayLiteralExpression */: - return emitArrayLiteralExpression(node); - case 210 /* ObjectLiteralExpression */: - return emitObjectLiteralExpression(node); - case 211 /* PropertyAccessExpression */: - return emitPropertyAccessExpression(node); - case 212 /* ElementAccessExpression */: - return emitElementAccessExpression(node); - case 213 /* CallExpression */: - return emitCallExpression(node); - case 214 /* NewExpression */: - return emitNewExpression(node); - case 215 /* TaggedTemplateExpression */: - return emitTaggedTemplateExpression(node); - case 216 /* TypeAssertionExpression */: - return emitTypeAssertionExpression(node); - case 217 /* ParenthesizedExpression */: - return emitParenthesizedExpression(node); - case 218 /* FunctionExpression */: - return emitFunctionExpression(node); - case 219 /* ArrowFunction */: - return emitArrowFunction(node); - case 220 /* DeleteExpression */: - return emitDeleteExpression(node); - case 221 /* TypeOfExpression */: - return emitTypeOfExpression(node); - case 222 /* VoidExpression */: - return emitVoidExpression(node); - case 223 /* AwaitExpression */: - return emitAwaitExpression(node); - case 224 /* PrefixUnaryExpression */: - return emitPrefixUnaryExpression(node); - case 225 /* PostfixUnaryExpression */: - return emitPostfixUnaryExpression(node); - case 226 /* BinaryExpression */: - return emitBinaryExpression(node); - case 227 /* ConditionalExpression */: - return emitConditionalExpression(node); - case 228 /* TemplateExpression */: - return emitTemplateExpression(node); - case 229 /* YieldExpression */: - return emitYieldExpression(node); - case 230 /* SpreadElement */: - return emitSpreadElement(node); - case 231 /* ClassExpression */: - return emitClassExpression(node); - case 232 /* OmittedExpression */: - return; - case 234 /* AsExpression */: - return emitAsExpression(node); - case 235 /* NonNullExpression */: - return emitNonNullExpression(node); - case 233 /* ExpressionWithTypeArguments */: - return emitExpressionWithTypeArguments(node); - case 238 /* SatisfiesExpression */: - return emitSatisfiesExpression(node); - case 236 /* MetaProperty */: - return emitMetaProperty(node); - case 237 /* SyntheticExpression */: - return Debug.fail("SyntheticExpression should never be printed."); - case 282 /* MissingDeclaration */: - return; - // JSX - case 284 /* JsxElement */: - return emitJsxElement(node); - case 285 /* JsxSelfClosingElement */: - return emitJsxSelfClosingElement(node); - case 288 /* JsxFragment */: - return emitJsxFragment(node); - // Synthesized list - case 352 /* SyntaxList */: - return Debug.fail("SyntaxList should not be printed"); - // Transformation nodes - case 353 /* NotEmittedStatement */: - return; - case 355 /* PartiallyEmittedExpression */: - return emitPartiallyEmittedExpression(node); - case 356 /* CommaListExpression */: - return emitCommaList(node); - case 357 /* SyntheticReferenceExpression */: - return Debug.fail("SyntheticReferenceExpression should not be printed"); - } - } - if (isKeyword(node.kind)) return writeTokenNode(node, writeKeyword); - if (isTokenKind(node.kind)) return writeTokenNode(node, writePunctuation); - Debug.fail(`Unhandled SyntaxKind: ${Debug.formatSyntaxKind(node.kind)}.`); - } - function emitMappedTypeParameter(node) { - emit(node.name); - writeSpace(); - writeKeyword("in"); - writeSpace(); - emit(node.constraint); - } - function pipelineEmitWithSubstitution(hint, node) { - const pipelinePhase = getNextPipelinePhase(1 /* Substitution */, hint, node); - Debug.assertIsDefined(lastSubstitution); - node = lastSubstitution; - lastSubstitution = void 0; - pipelinePhase(hint, node); - } - function emitHelpers(node) { - let helpersEmitted = false; - const bundle = node.kind === 308 /* Bundle */ ? node : void 0; - if (bundle && moduleKind === 0 /* None */) { - return; - } - const numNodes = bundle ? bundle.sourceFiles.length : 1; - for (let i = 0; i < numNodes; i++) { - const currentNode = bundle ? bundle.sourceFiles[i] : node; - const sourceFile = isSourceFile(currentNode) ? currentNode : currentSourceFile; - const shouldSkip = printerOptions.noEmitHelpers || !!sourceFile && hasRecordedExternalHelpers(sourceFile); - const shouldBundle = isSourceFile(currentNode) && !isOwnFileEmit; - const helpers = getSortedEmitHelpers(currentNode); - if (helpers) { - for (const helper of helpers) { - if (!helper.scoped) { - if (shouldSkip) continue; - if (shouldBundle) { - if (bundledHelpers.get(helper.name)) { - continue; - } - bundledHelpers.set(helper.name, true); - } - } else if (bundle) { - continue; - } - if (typeof helper.text === "string") { - writeLines(helper.text); - } else { - writeLines(helper.text(makeFileLevelOptimisticUniqueName)); - } - helpersEmitted = true; - } - } - } - return helpersEmitted; - } - function getSortedEmitHelpers(node) { - const helpers = getEmitHelpers(node); - return helpers && toSorted(helpers, compareEmitHelpers); - } - function emitNumericOrBigIntLiteral(node) { - emitLiteral( - node, - /*jsxAttributeEscape*/ - false - ); - } - function emitLiteral(node, jsxAttributeEscape) { - const text = getLiteralTextOfNode( - node, - /*sourceFile*/ - void 0, - printerOptions.neverAsciiEscape, - jsxAttributeEscape - ); - if ((printerOptions.sourceMap || printerOptions.inlineSourceMap) && (node.kind === 11 /* StringLiteral */ || isTemplateLiteralKind(node.kind))) { - writeLiteral(text); - } else { - writeStringLiteral(text); - } - } - function emitSnippetNode(hint, node, snippet) { - switch (snippet.kind) { - case 1 /* Placeholder */: - emitPlaceholder(hint, node, snippet); - break; - case 0 /* TabStop */: - emitTabStop(hint, node, snippet); - break; - } - } - function emitPlaceholder(hint, node, snippet) { - nonEscapingWrite(`\${${snippet.order}:`); - pipelineEmitWithHintWorker( - hint, - node, - /*allowSnippets*/ - false - ); - nonEscapingWrite(`}`); - } - function emitTabStop(hint, node, snippet) { - Debug.assert(node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.`); - Debug.assert(hint !== 5 /* EmbeddedStatement */, `A tab stop cannot be attached to an embedded statement.`); - nonEscapingWrite(`$${snippet.order}`); - } - function emitIdentifier(node) { - const writeText = node.symbol ? writeSymbol : write; - writeText(getTextOfNode2( - node, - /*includeTrivia*/ - false - ), node.symbol); - emitList(node, getIdentifierTypeArguments(node), 53776 /* TypeParameters */); - } - function emitPrivateIdentifier(node) { - write(getTextOfNode2( - node, - /*includeTrivia*/ - false - )); - } - function emitQualifiedName(node) { - emitEntityName(node.left); - writePunctuation("."); - emit(node.right); - } - function emitEntityName(node) { - if (node.kind === 80 /* Identifier */) { - emitExpression(node); - } else { - emit(node); - } - } - function emitComputedPropertyName(node) { - writePunctuation("["); - emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfComputedPropertyName); - writePunctuation("]"); - } - function emitTypeParameter(node) { - emitModifierList(node, node.modifiers); - emit(node.name); - if (node.constraint) { - writeSpace(); - writeKeyword("extends"); - writeSpace(); - emit(node.constraint); - } - if (node.default) { - writeSpace(); - writeOperator("="); - writeSpace(); - emit(node.default); - } - } - function emitParameter(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - true - ); - emit(node.dotDotDotToken); - emitNodeWithWriter(node.name, writeParameter); - emit(node.questionToken); - if (node.parent && node.parent.kind === 317 /* JSDocFunctionType */ && !node.name) { - emit(node.type); - } else { - emitTypeAnnotation(node.type); - } - emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name ? node.name.end : node.modifiers ? node.modifiers.end : node.pos, node, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitDecorator(decorator) { - writePunctuation("@"); - emitExpression(decorator.expression, parenthesizer.parenthesizeLeftSideOfAccess); - } - function emitPropertySignature(node) { - emitModifierList(node, node.modifiers); - emitNodeWithWriter(node.name, writeProperty); - emit(node.questionToken); - emitTypeAnnotation(node.type); - writeTrailingSemicolon(); - } - function emitPropertyDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - true - ); - emit(node.name); - emit(node.questionToken); - emit(node.exclamationToken); - emitTypeAnnotation(node.type); - emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name.end, node); - writeTrailingSemicolon(); - } - function emitMethodSignature(node) { - emitModifierList(node, node.modifiers); - emit(node.name); - emit(node.questionToken); - emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); - } - function emitMethodDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - true - ); - emit(node.asteriskToken); - emit(node.name); - emit(node.questionToken); - emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); - } - function emitClassStaticBlockDeclaration(node) { - writeKeyword("static"); - pushNameGenerationScope(node); - emitBlockFunctionBody(node.body); - popNameGenerationScope(node); - } - function emitConstructor(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - writeKeyword("constructor"); - emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); - } - function emitAccessorDeclaration(node) { - const pos = emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - true - ); - const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; - emitTokenWithComment(token, pos, writeKeyword, node); - writeSpace(); - emit(node.name); - emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); - } - function emitCallSignature(node) { - emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); - } - function emitConstructSignature(node) { - writeKeyword("new"); - writeSpace(); - emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); - } - function emitIndexSignature(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - emitParametersForIndexSignature(node, node.parameters); - emitTypeAnnotation(node.type); - writeTrailingSemicolon(); - } - function emitTemplateTypeSpan(node) { - emit(node.type); - emit(node.literal); - } - function emitSemicolonClassElement() { - writeTrailingSemicolon(); - } - function emitTypePredicate(node) { - if (node.assertsModifier) { - emit(node.assertsModifier); - writeSpace(); - } - emit(node.parameterName); - if (node.type) { - writeSpace(); - writeKeyword("is"); - writeSpace(); - emit(node.type); - } - } - function emitTypeReference(node) { - emit(node.typeName); - emitTypeArguments(node, node.typeArguments); - } - function emitFunctionType(node) { - emitSignatureAndBody(node, emitFunctionTypeHead, emitFunctionTypeBody); - } - function emitFunctionTypeHead(node) { - emitTypeParameters(node, node.typeParameters); - emitParametersForArrow(node, node.parameters); - writeSpace(); - writePunctuation("=>"); - } - function emitFunctionTypeBody(node) { - writeSpace(); - emit(node.type); - } - function emitJSDocFunctionType(node) { - writeKeyword("function"); - emitParameters(node, node.parameters); - writePunctuation(":"); - emit(node.type); - } - function emitJSDocNullableType(node) { - writePunctuation("?"); - emit(node.type); - } - function emitJSDocNonNullableType(node) { - writePunctuation("!"); - emit(node.type); - } - function emitJSDocOptionalType(node) { - emit(node.type); - writePunctuation("="); - } - function emitConstructorType(node) { - emitModifierList(node, node.modifiers); - writeKeyword("new"); - writeSpace(); - emitSignatureAndBody(node, emitFunctionTypeHead, emitFunctionTypeBody); - } - function emitTypeQuery(node) { - writeKeyword("typeof"); - writeSpace(); - emit(node.exprName); - emitTypeArguments(node, node.typeArguments); - } - function emitTypeLiteral(node) { - pushNameGenerationScope(node); - forEach(node.members, generateMemberNames); - writePunctuation("{"); - const flags = getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineTypeLiteralMembers */ : 32897 /* MultiLineTypeLiteralMembers */; - emitList(node, node.members, flags | 524288 /* NoSpaceIfEmpty */); - writePunctuation("}"); - popNameGenerationScope(node); - } - function emitArrayType(node) { - emit(node.elementType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType); - writePunctuation("["); - writePunctuation("]"); - } - function emitRestOrJSDocVariadicType(node) { - writePunctuation("..."); - emit(node.type); - } - function emitTupleType(node) { - emitTokenWithComment(23 /* OpenBracketToken */, node.pos, writePunctuation, node); - const flags = getEmitFlags(node) & 1 /* SingleLine */ ? 528 /* SingleLineTupleTypeElements */ : 657 /* MultiLineTupleTypeElements */; - emitList(node, node.elements, flags | 524288 /* NoSpaceIfEmpty */, parenthesizer.parenthesizeElementTypeOfTupleType); - emitTokenWithComment(24 /* CloseBracketToken */, node.elements.end, writePunctuation, node); - } - function emitNamedTupleMember(node) { - emit(node.dotDotDotToken); - emit(node.name); - emit(node.questionToken); - emitTokenWithComment(59 /* ColonToken */, node.name.end, writePunctuation, node); - writeSpace(); - emit(node.type); - } - function emitOptionalType(node) { - emit(node.type, parenthesizer.parenthesizeTypeOfOptionalType); - writePunctuation("?"); - } - function emitUnionType(node) { - emitList(node, node.types, 516 /* UnionTypeConstituents */, parenthesizer.parenthesizeConstituentTypeOfUnionType); - } - function emitIntersectionType(node) { - emitList(node, node.types, 520 /* IntersectionTypeConstituents */, parenthesizer.parenthesizeConstituentTypeOfIntersectionType); - } - function emitConditionalType(node) { - emit(node.checkType, parenthesizer.parenthesizeCheckTypeOfConditionalType); - writeSpace(); - writeKeyword("extends"); - writeSpace(); - emit(node.extendsType, parenthesizer.parenthesizeExtendsTypeOfConditionalType); - writeSpace(); - writePunctuation("?"); - writeSpace(); - emit(node.trueType); - writeSpace(); - writePunctuation(":"); - writeSpace(); - emit(node.falseType); - } - function emitInferType(node) { - writeKeyword("infer"); - writeSpace(); - emit(node.typeParameter); - } - function emitParenthesizedType(node) { - writePunctuation("("); - emit(node.type); - writePunctuation(")"); - } - function emitThisType() { - writeKeyword("this"); - } - function emitTypeOperator(node) { - writeTokenText(node.operator, writeKeyword); - writeSpace(); - const parenthesizerRule = node.operator === 148 /* ReadonlyKeyword */ ? parenthesizer.parenthesizeOperandOfReadonlyTypeOperator : parenthesizer.parenthesizeOperandOfTypeOperator; - emit(node.type, parenthesizerRule); - } - function emitIndexedAccessType(node) { - emit(node.objectType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType); - writePunctuation("["); - emit(node.indexType); - writePunctuation("]"); - } - function emitMappedType(node) { - const emitFlags = getEmitFlags(node); - writePunctuation("{"); - if (emitFlags & 1 /* SingleLine */) { - writeSpace(); - } else { - writeLine(); - increaseIndent(); - } - if (node.readonlyToken) { - emit(node.readonlyToken); - if (node.readonlyToken.kind !== 148 /* ReadonlyKeyword */) { - writeKeyword("readonly"); - } - writeSpace(); - } - writePunctuation("["); - pipelineEmit(3 /* MappedTypeParameter */, node.typeParameter); - if (node.nameType) { - writeSpace(); - writeKeyword("as"); - writeSpace(); - emit(node.nameType); - } - writePunctuation("]"); - if (node.questionToken) { - emit(node.questionToken); - if (node.questionToken.kind !== 58 /* QuestionToken */) { - writePunctuation("?"); - } - } - writePunctuation(":"); - writeSpace(); - emit(node.type); - writeTrailingSemicolon(); - if (emitFlags & 1 /* SingleLine */) { - writeSpace(); - } else { - writeLine(); - decreaseIndent(); - } - emitList(node, node.members, 2 /* PreserveLines */); - writePunctuation("}"); - } - function emitLiteralType(node) { - emitExpression(node.literal); - } - function emitTemplateType(node) { - emit(node.head); - emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */); - } - function emitImportTypeNode(node) { - if (node.isTypeOf) { - writeKeyword("typeof"); - writeSpace(); - } - writeKeyword("import"); - writePunctuation("("); - emit(node.argument); - if (node.attributes) { - writePunctuation(","); - writeSpace(); - pipelineEmit(7 /* ImportTypeNodeAttributes */, node.attributes); - } - writePunctuation(")"); - if (node.qualifier) { - writePunctuation("."); - emit(node.qualifier); - } - emitTypeArguments(node, node.typeArguments); - } - function emitObjectBindingPattern(node) { - writePunctuation("{"); - emitList(node, node.elements, 525136 /* ObjectBindingPatternElements */); - writePunctuation("}"); - } - function emitArrayBindingPattern(node) { - writePunctuation("["); - emitList(node, node.elements, 524880 /* ArrayBindingPatternElements */); - writePunctuation("]"); - } - function emitBindingElement(node) { - emit(node.dotDotDotToken); - if (node.propertyName) { - emit(node.propertyName); - writePunctuation(":"); - writeSpace(); - } - emit(node.name); - emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitArrayLiteralExpression(node) { - const elements = node.elements; - const preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */; - emitExpressionList(node, elements, 8914 /* ArrayLiteralExpressionElements */ | preferNewLine, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitObjectLiteralExpression(node) { - pushNameGenerationScope(node); - forEach(node.properties, generateMemberNames); - const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; - if (indentedFlag) { - increaseIndent(); - } - const preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */; - const allowTrailingComma = currentSourceFile && currentSourceFile.languageVersion >= 1 /* ES5 */ && !isJsonSourceFile(currentSourceFile) ? 64 /* AllowTrailingComma */ : 0 /* None */; - emitList(node, node.properties, 526226 /* ObjectLiteralExpressionProperties */ | allowTrailingComma | preferNewLine); - if (indentedFlag) { - decreaseIndent(); - } - popNameGenerationScope(node); - } - function emitPropertyAccessExpression(node) { - emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); - const token = node.questionDotToken || setTextRangePosEnd(factory.createToken(25 /* DotToken */), node.expression.end, node.name.pos); - const linesBeforeDot = getLinesBetweenNodes(node, node.expression, token); - const linesAfterDot = getLinesBetweenNodes(node, token, node.name); - writeLinesAndIndent( - linesBeforeDot, - /*writeSpaceIfNotIndenting*/ - false - ); - const shouldEmitDotDot = token.kind !== 29 /* QuestionDotToken */ && mayNeedDotDotForPropertyAccess(node.expression) && !writer.hasTrailingComment() && !writer.hasTrailingWhitespace(); - if (shouldEmitDotDot) { - writePunctuation("."); - } - if (node.questionDotToken) { - emit(token); - } else { - emitTokenWithComment(token.kind, node.expression.end, writePunctuation, node); - } - writeLinesAndIndent( - linesAfterDot, - /*writeSpaceIfNotIndenting*/ - false - ); - emit(node.name); - decreaseIndentIf(linesBeforeDot, linesAfterDot); - } - function mayNeedDotDotForPropertyAccess(expression) { - expression = skipPartiallyEmittedExpressions(expression); - if (isNumericLiteral(expression)) { - const text = getLiteralTextOfNode( - expression, - /*sourceFile*/ - void 0, - /*neverAsciiEscape*/ - true, - /*jsxAttributeEscape*/ - false - ); - return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !text.includes(tokenToString(25 /* DotToken */)) && !text.includes(String.fromCharCode(69 /* E */)) && !text.includes(String.fromCharCode(101 /* e */)); - } else if (isAccessExpression(expression)) { - const constantValue = getConstantValue(expression); - return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; - } - } - function emitElementAccessExpression(node) { - emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); - emit(node.questionDotToken); - emitTokenWithComment(23 /* OpenBracketToken */, node.expression.end, writePunctuation, node); - emitExpression(node.argumentExpression); - emitTokenWithComment(24 /* CloseBracketToken */, node.argumentExpression.end, writePunctuation, node); - } - function emitCallExpression(node) { - const indirectCall = getInternalEmitFlags(node) & 16 /* IndirectCall */; - if (indirectCall) { - writePunctuation("("); - writeLiteral("0"); - writePunctuation(","); - writeSpace(); - } - emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); - if (indirectCall) { - writePunctuation(")"); - } - emit(node.questionDotToken); - emitTypeArguments(node, node.typeArguments); - emitExpressionList(node, node.arguments, 2576 /* CallExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitNewExpression(node) { - emitTokenWithComment(105 /* NewKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfNew); - emitTypeArguments(node, node.typeArguments); - emitExpressionList(node, node.arguments, 18960 /* NewExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitTaggedTemplateExpression(node) { - const indirectCall = getInternalEmitFlags(node) & 16 /* IndirectCall */; - if (indirectCall) { - writePunctuation("("); - writeLiteral("0"); - writePunctuation(","); - writeSpace(); - } - emitExpression(node.tag, parenthesizer.parenthesizeLeftSideOfAccess); - if (indirectCall) { - writePunctuation(")"); - } - emitTypeArguments(node, node.typeArguments); - writeSpace(); - emitExpression(node.template); - } - function emitTypeAssertionExpression(node) { - writePunctuation("<"); - emit(node.type); - writePunctuation(">"); - emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function emitParenthesizedExpression(node) { - const openParenPos = emitTokenWithComment(21 /* OpenParenToken */, node.pos, writePunctuation, node); - const indented = writeLineSeparatorsAndIndentBefore(node.expression, node); - emitExpression( - node.expression, - /*parenthesizerRule*/ - void 0 - ); - writeLineSeparatorsAfter(node.expression, node); - decreaseIndentIf(indented); - emitTokenWithComment(22 /* CloseParenToken */, node.expression ? node.expression.end : openParenPos, writePunctuation, node); - } - function emitFunctionExpression(node) { - generateNameIfNeeded(node.name); - emitFunctionDeclarationOrExpression(node); - } - function emitArrowFunction(node) { - emitModifierList(node, node.modifiers); - emitSignatureAndBody(node, emitArrowFunctionHead, emitArrowFunctionBody); - } - function emitArrowFunctionHead(node) { - emitTypeParameters(node, node.typeParameters); - emitParametersForArrow(node, node.parameters); - emitTypeAnnotation(node.type); - writeSpace(); - emit(node.equalsGreaterThanToken); - } - function emitArrowFunctionBody(node) { - if (isBlock(node.body)) { - emitBlockFunctionBody(node.body); - } else { - writeSpace(); - emitExpression(node.body, parenthesizer.parenthesizeConciseBodyOfArrowFunction); - } - } - function emitDeleteExpression(node) { - emitTokenWithComment(91 /* DeleteKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function emitTypeOfExpression(node) { - emitTokenWithComment(114 /* TypeOfKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function emitVoidExpression(node) { - emitTokenWithComment(116 /* VoidKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function emitAwaitExpression(node) { - emitTokenWithComment(135 /* AwaitKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function emitPrefixUnaryExpression(node) { - writeTokenText(node.operator, writeOperator); - if (shouldEmitWhitespaceBeforeOperand(node)) { - writeSpace(); - } - emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPrefixUnary); - } - function shouldEmitWhitespaceBeforeOperand(node) { - const operand = node.operand; - return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); - } - function emitPostfixUnaryExpression(node) { - emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); - writeTokenText(node.operator, writeOperator); - } - function createEmitBinaryExpression() { - return createBinaryExpressionTrampoline( - onEnter, - onLeft, - onOperator, - onRight, - onExit, - /*foldState*/ - void 0 - ); - function onEnter(node, state) { - if (state) { - state.stackIndex++; - state.preserveSourceNewlinesStack[state.stackIndex] = preserveSourceNewlines; - state.containerPosStack[state.stackIndex] = containerPos; - state.containerEndStack[state.stackIndex] = containerEnd; - state.declarationListContainerEndStack[state.stackIndex] = declarationListContainerEnd; - const emitComments2 = state.shouldEmitCommentsStack[state.stackIndex] = shouldEmitComments(node); - const emitSourceMaps = state.shouldEmitSourceMapsStack[state.stackIndex] = shouldEmitSourceMaps(node); - onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node); - if (emitComments2) emitCommentsBeforeNode(node); - if (emitSourceMaps) emitSourceMapsBeforeNode(node); - beforeEmitNode(node); - } else { - state = { - stackIndex: 0, - preserveSourceNewlinesStack: [void 0], - containerPosStack: [-1], - containerEndStack: [-1], - declarationListContainerEndStack: [-1], - shouldEmitCommentsStack: [false], - shouldEmitSourceMapsStack: [false] - }; - } - return state; - } - function onLeft(next, _workArea, parent) { - return maybeEmitExpression(next, parent, "left"); - } - function onOperator(operatorToken, _state, node) { - const isCommaOperator = operatorToken.kind !== 28 /* CommaToken */; - const linesBeforeOperator = getLinesBetweenNodes(node, node.left, operatorToken); - const linesAfterOperator = getLinesBetweenNodes(node, operatorToken, node.right); - writeLinesAndIndent(linesBeforeOperator, isCommaOperator); - emitLeadingCommentsOfPosition(operatorToken.pos); - writeTokenNode(operatorToken, operatorToken.kind === 103 /* InKeyword */ ? writeKeyword : writeOperator); - emitTrailingCommentsOfPosition( - operatorToken.end, - /*prefixSpace*/ - true - ); - writeLinesAndIndent( - linesAfterOperator, - /*writeSpaceIfNotIndenting*/ - true - ); - } - function onRight(next, _workArea, parent) { - return maybeEmitExpression(next, parent, "right"); - } - function onExit(node, state) { - const linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken); - const linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right); - decreaseIndentIf(linesBeforeOperator, linesAfterOperator); - if (state.stackIndex > 0) { - const savedPreserveSourceNewlines = state.preserveSourceNewlinesStack[state.stackIndex]; - const savedContainerPos = state.containerPosStack[state.stackIndex]; - const savedContainerEnd = state.containerEndStack[state.stackIndex]; - const savedDeclarationListContainerEnd = state.declarationListContainerEndStack[state.stackIndex]; - const shouldEmitComments2 = state.shouldEmitCommentsStack[state.stackIndex]; - const shouldEmitSourceMaps2 = state.shouldEmitSourceMapsStack[state.stackIndex]; - afterEmitNode(savedPreserveSourceNewlines); - if (shouldEmitSourceMaps2) emitSourceMapsAfterNode(node); - if (shouldEmitComments2) emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); - onAfterEmitNode == null ? void 0 : onAfterEmitNode(node); - state.stackIndex--; - } - } - function maybeEmitExpression(next, parent, side) { - const parenthesizerRule = side === "left" ? parenthesizer.getParenthesizeLeftSideOfBinaryForOperator(parent.operatorToken.kind) : parenthesizer.getParenthesizeRightSideOfBinaryForOperator(parent.operatorToken.kind); - let pipelinePhase = getPipelinePhase(0 /* Notification */, 1 /* Expression */, next); - if (pipelinePhase === pipelineEmitWithSubstitution) { - Debug.assertIsDefined(lastSubstitution); - next = parenthesizerRule(cast(lastSubstitution, isExpression)); - pipelinePhase = getNextPipelinePhase(1 /* Substitution */, 1 /* Expression */, next); - lastSubstitution = void 0; - } - if (pipelinePhase === pipelineEmitWithComments || pipelinePhase === pipelineEmitWithSourceMaps || pipelinePhase === pipelineEmitWithHint) { - if (isBinaryExpression(next)) { - return next; - } - } - currentParenthesizerRule = parenthesizerRule; - pipelinePhase(1 /* Expression */, next); - } - } - function emitConditionalExpression(node) { - const linesBeforeQuestion = getLinesBetweenNodes(node, node.condition, node.questionToken); - const linesAfterQuestion = getLinesBetweenNodes(node, node.questionToken, node.whenTrue); - const linesBeforeColon = getLinesBetweenNodes(node, node.whenTrue, node.colonToken); - const linesAfterColon = getLinesBetweenNodes(node, node.colonToken, node.whenFalse); - emitExpression(node.condition, parenthesizer.parenthesizeConditionOfConditionalExpression); - writeLinesAndIndent( - linesBeforeQuestion, - /*writeSpaceIfNotIndenting*/ - true - ); - emit(node.questionToken); - writeLinesAndIndent( - linesAfterQuestion, - /*writeSpaceIfNotIndenting*/ - true - ); - emitExpression(node.whenTrue, parenthesizer.parenthesizeBranchOfConditionalExpression); - decreaseIndentIf(linesBeforeQuestion, linesAfterQuestion); - writeLinesAndIndent( - linesBeforeColon, - /*writeSpaceIfNotIndenting*/ - true - ); - emit(node.colonToken); - writeLinesAndIndent( - linesAfterColon, - /*writeSpaceIfNotIndenting*/ - true - ); - emitExpression(node.whenFalse, parenthesizer.parenthesizeBranchOfConditionalExpression); - decreaseIndentIf(linesBeforeColon, linesAfterColon); - } - function emitTemplateExpression(node) { - emit(node.head); - emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */); - } - function emitYieldExpression(node) { - emitTokenWithComment(127 /* YieldKeyword */, node.pos, writeKeyword, node); - emit(node.asteriskToken); - emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsiAndDisallowedComma); - } - function emitSpreadElement(node) { - emitTokenWithComment(26 /* DotDotDotToken */, node.pos, writePunctuation, node); - emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitClassExpression(node) { - generateNameIfNeeded(node.name); - emitClassDeclarationOrExpression(node); - } - function emitExpressionWithTypeArguments(node) { - emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); - emitTypeArguments(node, node.typeArguments); - } - function emitAsExpression(node) { - emitExpression( - node.expression, - /*parenthesizerRule*/ - void 0 - ); - if (node.type) { - writeSpace(); - writeKeyword("as"); - writeSpace(); - emit(node.type); - } - } - function emitNonNullExpression(node) { - emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); - writeOperator("!"); - } - function emitSatisfiesExpression(node) { - emitExpression( - node.expression, - /*parenthesizerRule*/ - void 0 - ); - if (node.type) { - writeSpace(); - writeKeyword("satisfies"); - writeSpace(); - emit(node.type); - } - } - function emitMetaProperty(node) { - writeToken(node.keywordToken, node.pos, writePunctuation); - writePunctuation("."); - emit(node.name); - } - function emitTemplateSpan(node) { - emitExpression(node.expression); - emit(node.literal); - } - function emitBlock(node) { - emitBlockStatements( - node, - /*forceSingleLine*/ - !node.multiLine && isEmptyBlock(node) - ); - } - function emitBlockStatements(node, forceSingleLine) { - emitTokenWithComment( - 19 /* OpenBraceToken */, - node.pos, - writePunctuation, - /*contextNode*/ - node - ); - const format = forceSingleLine || getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineBlockStatements */ : 129 /* MultiLineBlockStatements */; - emitList(node, node.statements, format); - emitTokenWithComment( - 20 /* CloseBraceToken */, - node.statements.end, - writePunctuation, - /*contextNode*/ - node, - /*indentLeading*/ - !!(format & 1 /* MultiLine */) - ); - } - function emitVariableStatement(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - emit(node.declarationList); - writeTrailingSemicolon(); - } - function emitEmptyStatement(isEmbeddedStatement) { - if (isEmbeddedStatement) { - writePunctuation(";"); - } else { - writeTrailingSemicolon(); - } - } - function emitExpressionStatement(node) { - emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfExpressionStatement); - if (!currentSourceFile || !isJsonSourceFile(currentSourceFile) || nodeIsSynthesized(node.expression)) { - writeTrailingSemicolon(); - } - } - function emitIfStatement(node) { - const openParenPos = emitTokenWithComment(101 /* IfKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - emitEmbeddedStatement(node, node.thenStatement); - if (node.elseStatement) { - writeLineOrSpace(node, node.thenStatement, node.elseStatement); - emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); - if (node.elseStatement.kind === 245 /* IfStatement */) { - writeSpace(); - emit(node.elseStatement); - } else { - emitEmbeddedStatement(node, node.elseStatement); - } - } - } - function emitWhileClause(node, startPos) { - const openParenPos = emitTokenWithComment(117 /* WhileKeyword */, startPos, writeKeyword, node); - writeSpace(); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - } - function emitDoStatement(node) { - emitTokenWithComment(92 /* DoKeyword */, node.pos, writeKeyword, node); - emitEmbeddedStatement(node, node.statement); - if (isBlock(node.statement) && !preserveSourceNewlines) { - writeSpace(); - } else { - writeLineOrSpace(node, node.statement, node.expression); - } - emitWhileClause(node, node.statement.end); - writeTrailingSemicolon(); - } - function emitWhileStatement(node) { - emitWhileClause(node, node.pos); - emitEmbeddedStatement(node, node.statement); - } - function emitForStatement(node) { - const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); - writeSpace(); - let pos = emitTokenWithComment( - 21 /* OpenParenToken */, - openParenPos, - writePunctuation, - /*contextNode*/ - node - ); - emitForBinding(node.initializer); - pos = emitTokenWithComment(27 /* SemicolonToken */, node.initializer ? node.initializer.end : pos, writePunctuation, node); - emitExpressionWithLeadingSpace(node.condition); - pos = emitTokenWithComment(27 /* SemicolonToken */, node.condition ? node.condition.end : pos, writePunctuation, node); - emitExpressionWithLeadingSpace(node.incrementor); - emitTokenWithComment(22 /* CloseParenToken */, node.incrementor ? node.incrementor.end : pos, writePunctuation, node); - emitEmbeddedStatement(node, node.statement); - } - function emitForInStatement(node) { - const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitForBinding(node.initializer); - writeSpace(); - emitTokenWithComment(103 /* InKeyword */, node.initializer.end, writeKeyword, node); - writeSpace(); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - emitEmbeddedStatement(node, node.statement); - } - function emitForOfStatement(node) { - const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitWithTrailingSpace(node.awaitModifier); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitForBinding(node.initializer); - writeSpace(); - emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); - writeSpace(); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - emitEmbeddedStatement(node, node.statement); - } - function emitForBinding(node) { - if (node !== void 0) { - if (node.kind === 261 /* VariableDeclarationList */) { - emit(node); - } else { - emitExpression(node); - } - } - } - function emitContinueStatement(node) { - emitTokenWithComment(88 /* ContinueKeyword */, node.pos, writeKeyword, node); - emitWithLeadingSpace(node.label); - writeTrailingSemicolon(); - } - function emitBreakStatement(node) { - emitTokenWithComment(83 /* BreakKeyword */, node.pos, writeKeyword, node); - emitWithLeadingSpace(node.label); - writeTrailingSemicolon(); - } - function emitTokenWithComment(token, pos, writer2, contextNode, indentLeading) { - const node = getParseTreeNode(contextNode); - const isSimilarNode = node && node.kind === contextNode.kind; - const startPos = pos; - if (isSimilarNode && currentSourceFile) { - pos = skipTrivia(currentSourceFile.text, pos); - } - if (isSimilarNode && contextNode.pos !== startPos) { - const needsIndent = indentLeading && currentSourceFile && !positionsAreOnSameLine(startPos, pos, currentSourceFile); - if (needsIndent) { - increaseIndent(); - } - emitLeadingCommentsOfPosition(startPos); - if (needsIndent) { - decreaseIndent(); - } - } - if (!omitBraceSourcePositions && (token === 19 /* OpenBraceToken */ || token === 20 /* CloseBraceToken */)) { - pos = writeToken(token, pos, writer2, contextNode); - } else { - pos = writeTokenText(token, writer2, pos); - } - if (isSimilarNode && contextNode.end !== pos) { - const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; - emitTrailingCommentsOfPosition( - pos, - /*prefixSpace*/ - !isJsxExprContext, - /*forceNoNewline*/ - isJsxExprContext - ); - } - return pos; - } - function commentWillEmitNewLine(node) { - return node.kind === 2 /* SingleLineCommentTrivia */ || !!node.hasTrailingNewLine; - } - function willEmitLeadingNewLine(node) { - if (!currentSourceFile) return false; - const leadingCommentRanges = getLeadingCommentRanges(currentSourceFile.text, node.pos); - if (leadingCommentRanges) { - const parseNode = getParseTreeNode(node); - if (parseNode && isParenthesizedExpression(parseNode.parent)) { - return true; - } - } - if (some(leadingCommentRanges, commentWillEmitNewLine)) return true; - if (some(getSyntheticLeadingComments(node), commentWillEmitNewLine)) return true; - if (isPartiallyEmittedExpression(node)) { - if (node.pos !== node.expression.pos) { - if (some(getTrailingCommentRanges(currentSourceFile.text, node.expression.pos), commentWillEmitNewLine)) return true; - } - return willEmitLeadingNewLine(node.expression); - } - return false; - } - function parenthesizeExpressionForNoAsi(node) { - if (!commentsDisabled) { - switch (node.kind) { - case 355 /* PartiallyEmittedExpression */: - if (willEmitLeadingNewLine(node)) { - const parseNode = getParseTreeNode(node); - if (parseNode && isParenthesizedExpression(parseNode)) { - const parens = factory.createParenthesizedExpression(node.expression); - setOriginalNode(parens, node); - setTextRange(parens, parseNode); - return parens; - } - return factory.createParenthesizedExpression(node); - } - return factory.updatePartiallyEmittedExpression( - node, - parenthesizeExpressionForNoAsi(node.expression) - ); - case 211 /* PropertyAccessExpression */: - return factory.updatePropertyAccessExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.name - ); - case 212 /* ElementAccessExpression */: - return factory.updateElementAccessExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.argumentExpression - ); - case 213 /* CallExpression */: - return factory.updateCallExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.typeArguments, - node.arguments - ); - case 215 /* TaggedTemplateExpression */: - return factory.updateTaggedTemplateExpression( - node, - parenthesizeExpressionForNoAsi(node.tag), - node.typeArguments, - node.template - ); - case 225 /* PostfixUnaryExpression */: - return factory.updatePostfixUnaryExpression( - node, - parenthesizeExpressionForNoAsi(node.operand) - ); - case 226 /* BinaryExpression */: - return factory.updateBinaryExpression( - node, - parenthesizeExpressionForNoAsi(node.left), - node.operatorToken, - node.right - ); - case 227 /* ConditionalExpression */: - return factory.updateConditionalExpression( - node, - parenthesizeExpressionForNoAsi(node.condition), - node.questionToken, - node.whenTrue, - node.colonToken, - node.whenFalse - ); - case 234 /* AsExpression */: - return factory.updateAsExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.type - ); - case 238 /* SatisfiesExpression */: - return factory.updateSatisfiesExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.type - ); - case 235 /* NonNullExpression */: - return factory.updateNonNullExpression( - node, - parenthesizeExpressionForNoAsi(node.expression) - ); - } - } - return node; - } - function parenthesizeExpressionForNoAsiAndDisallowedComma(node) { - return parenthesizeExpressionForNoAsi(parenthesizer.parenthesizeExpressionForDisallowedComma(node)); - } - function emitReturnStatement(node) { - emitTokenWithComment( - 107 /* ReturnKeyword */, - node.pos, - writeKeyword, - /*contextNode*/ - node - ); - emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi); - writeTrailingSemicolon(); - } - function emitWithStatement(node) { - const openParenPos = emitTokenWithComment(118 /* WithKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - emitEmbeddedStatement(node, node.statement); - } - function emitSwitchStatement(node) { - const openParenPos = emitTokenWithComment(109 /* SwitchKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emitExpression(node.expression); - emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); - writeSpace(); - emit(node.caseBlock); - } - function emitLabeledStatement(node) { - emit(node.label); - emitTokenWithComment(59 /* ColonToken */, node.label.end, writePunctuation, node); - writeSpace(); - emit(node.statement); - } - function emitThrowStatement(node) { - emitTokenWithComment(111 /* ThrowKeyword */, node.pos, writeKeyword, node); - emitExpressionWithLeadingSpace(parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi); - writeTrailingSemicolon(); - } - function emitTryStatement(node) { - emitTokenWithComment(113 /* TryKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emit(node.tryBlock); - if (node.catchClause) { - writeLineOrSpace(node, node.tryBlock, node.catchClause); - emit(node.catchClause); - } - if (node.finallyBlock) { - writeLineOrSpace(node, node.catchClause || node.tryBlock, node.finallyBlock); - emitTokenWithComment(98 /* FinallyKeyword */, (node.catchClause || node.tryBlock).end, writeKeyword, node); - writeSpace(); - emit(node.finallyBlock); - } - } - function emitDebuggerStatement(node) { - writeToken(89 /* DebuggerKeyword */, node.pos, writeKeyword); - writeTrailingSemicolon(); - } - function emitVariableDeclaration(node) { - var _a, _b, _c; - emit(node.name); - emit(node.exclamationToken); - emitTypeAnnotation(node.type); - emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitVariableDeclarationList(node) { - if (isVarAwaitUsing(node)) { - writeKeyword("await"); - writeSpace(); - writeKeyword("using"); - } else { - const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; - writeKeyword(head); - } - writeSpace(); - emitList(node, node.declarations, 528 /* VariableDeclarationList */); - } - function emitFunctionDeclaration(node) { - emitFunctionDeclarationOrExpression(node); - } - function emitFunctionDeclarationOrExpression(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - writeKeyword("function"); - emit(node.asteriskToken); - writeSpace(); - emitIdentifierName(node.name); - emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); - } - function emitSignatureAndBody(node, emitSignatureHead2, emitBody) { - const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; - if (indentedFlag) { - increaseIndent(); - } - pushNameGenerationScope(node); - forEach(node.parameters, generateNames); - emitSignatureHead2(node); - emitBody(node); - popNameGenerationScope(node); - if (indentedFlag) { - decreaseIndent(); - } - } - function emitFunctionBody(node) { - const body = node.body; - if (body) { - emitBlockFunctionBody(body); - } else { - writeTrailingSemicolon(); - } - } - function emitEmptyFunctionBody(_node) { - writeTrailingSemicolon(); - } - function emitSignatureHead(node) { - emitTypeParameters(node, node.typeParameters); - emitParameters(node, node.parameters); - emitTypeAnnotation(node.type); - } - function shouldEmitBlockFunctionBodyOnSingleLine(body) { - if (getEmitFlags(body) & 1 /* SingleLine */) { - return true; - } - if (body.multiLine) { - return false; - } - if (!nodeIsSynthesized(body) && currentSourceFile && !rangeIsOnSingleLine(body, currentSourceFile)) { - return false; - } - if (getLeadingLineTerminatorCount(body, firstOrUndefined(body.statements), 2 /* PreserveLines */) || getClosingLineTerminatorCount(body, lastOrUndefined(body.statements), 2 /* PreserveLines */, body.statements)) { - return false; - } - let previousStatement; - for (const statement of body.statements) { - if (getSeparatingLineTerminatorCount(previousStatement, statement, 2 /* PreserveLines */) > 0) { - return false; - } - previousStatement = statement; - } - return true; - } - function emitBlockFunctionBody(body) { - generateNames(body); - onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(body); - writeSpace(); - writePunctuation("{"); - increaseIndent(); - const emitBlockFunctionBody2 = shouldEmitBlockFunctionBodyOnSingleLine(body) ? emitBlockFunctionBodyOnSingleLine : emitBlockFunctionBodyWorker; - emitBodyWithDetachedComments(body, body.statements, emitBlockFunctionBody2); - decreaseIndent(); - writeToken(20 /* CloseBraceToken */, body.statements.end, writePunctuation, body); - onAfterEmitNode == null ? void 0 : onAfterEmitNode(body); - } - function emitBlockFunctionBodyOnSingleLine(body) { - emitBlockFunctionBodyWorker( - body, - /*emitBlockFunctionBodyOnSingleLine*/ - true - ); - } - function emitBlockFunctionBodyWorker(body, emitBlockFunctionBodyOnSingleLine2) { - const statementOffset = emitPrologueDirectives(body.statements); - const pos = writer.getTextPos(); - emitHelpers(body); - if (statementOffset === 0 && pos === writer.getTextPos() && emitBlockFunctionBodyOnSingleLine2) { - decreaseIndent(); - emitList(body, body.statements, 768 /* SingleLineFunctionBodyStatements */); - increaseIndent(); - } else { - emitList( - body, - body.statements, - 1 /* MultiLineFunctionBodyStatements */, - /*parenthesizerRule*/ - void 0, - statementOffset - ); - } - } - function emitClassDeclaration(node) { - emitClassDeclarationOrExpression(node); - } - function emitClassDeclarationOrExpression(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - true - ); - emitTokenWithComment(86 /* ClassKeyword */, moveRangePastModifiers(node).pos, writeKeyword, node); - if (node.name) { - writeSpace(); - emitIdentifierName(node.name); - } - const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; - if (indentedFlag) { - increaseIndent(); - } - emitTypeParameters(node, node.typeParameters); - emitList(node, node.heritageClauses, 0 /* ClassHeritageClauses */); - writeSpace(); - writePunctuation("{"); - pushNameGenerationScope(node); - forEach(node.members, generateMemberNames); - emitList(node, node.members, 129 /* ClassMembers */); - popNameGenerationScope(node); - writePunctuation("}"); - if (indentedFlag) { - decreaseIndent(); - } - } - function emitInterfaceDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - writeKeyword("interface"); - writeSpace(); - emit(node.name); - emitTypeParameters(node, node.typeParameters); - emitList(node, node.heritageClauses, 512 /* HeritageClauses */); - writeSpace(); - writePunctuation("{"); - pushNameGenerationScope(node); - forEach(node.members, generateMemberNames); - emitList(node, node.members, 129 /* InterfaceMembers */); - popNameGenerationScope(node); - writePunctuation("}"); - } - function emitTypeAliasDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - writeKeyword("type"); - writeSpace(); - emit(node.name); - emitTypeParameters(node, node.typeParameters); - writeSpace(); - writePunctuation("="); - writeSpace(); - emit(node.type); - writeTrailingSemicolon(); - } - function emitEnumDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - writeKeyword("enum"); - writeSpace(); - emit(node.name); - writeSpace(); - writePunctuation("{"); - emitList(node, node.members, 145 /* EnumMembers */); - writePunctuation("}"); - } - function emitModuleDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - if (~node.flags & 2048 /* GlobalAugmentation */) { - writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); - writeSpace(); - } - emit(node.name); - let body = node.body; - if (!body) return writeTrailingSemicolon(); - while (body && isModuleDeclaration(body)) { - writePunctuation("."); - emit(body.name); - body = body.body; - } - writeSpace(); - emit(body); - } - function emitModuleBlock(node) { - pushNameGenerationScope(node); - forEach(node.statements, generateNames); - emitBlockStatements( - node, - /*forceSingleLine*/ - isEmptyBlock(node) - ); - popNameGenerationScope(node); - } - function emitCaseBlock(node) { - emitTokenWithComment(19 /* OpenBraceToken */, node.pos, writePunctuation, node); - emitList(node, node.clauses, 129 /* CaseBlockClauses */); - emitTokenWithComment( - 20 /* CloseBraceToken */, - node.clauses.end, - writePunctuation, - node, - /*indentLeading*/ - true - ); - } - function emitImportEqualsDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - emitTokenWithComment(102 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node); - writeSpace(); - if (node.isTypeOnly) { - emitTokenWithComment(156 /* TypeKeyword */, node.pos, writeKeyword, node); - writeSpace(); - } - emit(node.name); - writeSpace(); - emitTokenWithComment(64 /* EqualsToken */, node.name.end, writePunctuation, node); - writeSpace(); - emitModuleReference(node.moduleReference); - writeTrailingSemicolon(); - } - function emitModuleReference(node) { - if (node.kind === 80 /* Identifier */) { - emitExpression(node); - } else { - emit(node); - } - } - function emitImportDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - emitTokenWithComment(102 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node); - writeSpace(); - if (node.importClause) { - emit(node.importClause); - writeSpace(); - emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); - writeSpace(); - } - emitExpression(node.moduleSpecifier); - if (node.attributes) { - emitWithLeadingSpace(node.attributes); - } - writeTrailingSemicolon(); - } - function emitImportClause(node) { - if (node.isTypeOnly) { - emitTokenWithComment(156 /* TypeKeyword */, node.pos, writeKeyword, node); - writeSpace(); - } - emit(node.name); - if (node.name && node.namedBindings) { - emitTokenWithComment(28 /* CommaToken */, node.name.end, writePunctuation, node); - writeSpace(); - } - emit(node.namedBindings); - } - function emitNamespaceImport(node) { - const asPos = emitTokenWithComment(42 /* AsteriskToken */, node.pos, writePunctuation, node); - writeSpace(); - emitTokenWithComment(130 /* AsKeyword */, asPos, writeKeyword, node); - writeSpace(); - emit(node.name); - } - function emitNamedImports(node) { - emitNamedImportsOrExports(node); - } - function emitImportSpecifier(node) { - emitImportOrExportSpecifier(node); - } - function emitExportAssignment(node) { - const nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); - writeSpace(); - if (node.isExportEquals) { - emitTokenWithComment(64 /* EqualsToken */, nextPos, writeOperator, node); - } else { - emitTokenWithComment(90 /* DefaultKeyword */, nextPos, writeKeyword, node); - } - writeSpace(); - emitExpression( - node.expression, - node.isExportEquals ? parenthesizer.getParenthesizeRightSideOfBinaryForOperator(64 /* EqualsToken */) : parenthesizer.parenthesizeExpressionOfExportDefault - ); - writeTrailingSemicolon(); - } - function emitExportDeclaration(node) { - emitDecoratorsAndModifiers( - node, - node.modifiers, - /*allowDecorators*/ - false - ); - let nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); - writeSpace(); - if (node.isTypeOnly) { - nextPos = emitTokenWithComment(156 /* TypeKeyword */, nextPos, writeKeyword, node); - writeSpace(); - } - if (node.exportClause) { - emit(node.exportClause); - } else { - nextPos = emitTokenWithComment(42 /* AsteriskToken */, nextPos, writePunctuation, node); - } - if (node.moduleSpecifier) { - writeSpace(); - const fromPos = node.exportClause ? node.exportClause.end : nextPos; - emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); - writeSpace(); - emitExpression(node.moduleSpecifier); - } - if (node.attributes) { - emitWithLeadingSpace(node.attributes); - } - writeTrailingSemicolon(); - } - function emitImportTypeNodeAttributes(node) { - writePunctuation("{"); - writeSpace(); - writeKeyword(node.token === 132 /* AssertKeyword */ ? "assert" : "with"); - writePunctuation(":"); - writeSpace(); - const elements = node.elements; - emitList(node, elements, 526226 /* ImportAttributes */); - writeSpace(); - writePunctuation("}"); - } - function emitImportAttributes(node) { - emitTokenWithComment(node.token, node.pos, writeKeyword, node); - writeSpace(); - const elements = node.elements; - emitList(node, elements, 526226 /* ImportAttributes */); - } - function emitImportAttribute(node) { - emit(node.name); - writePunctuation(":"); - writeSpace(); - const value = node.value; - if ((getEmitFlags(value) & 1024 /* NoLeadingComments */) === 0) { - const commentRange = getCommentRange(value); - emitTrailingCommentsOfPosition(commentRange.pos); - } - emit(value); - } - function emitNamespaceExportDeclaration(node) { - let nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); - writeSpace(); - nextPos = emitTokenWithComment(130 /* AsKeyword */, nextPos, writeKeyword, node); - writeSpace(); - nextPos = emitTokenWithComment(145 /* NamespaceKeyword */, nextPos, writeKeyword, node); - writeSpace(); - emit(node.name); - writeTrailingSemicolon(); - } - function emitNamespaceExport(node) { - const asPos = emitTokenWithComment(42 /* AsteriskToken */, node.pos, writePunctuation, node); - writeSpace(); - emitTokenWithComment(130 /* AsKeyword */, asPos, writeKeyword, node); - writeSpace(); - emit(node.name); - } - function emitNamedExports(node) { - emitNamedImportsOrExports(node); - } - function emitExportSpecifier(node) { - emitImportOrExportSpecifier(node); - } - function emitNamedImportsOrExports(node) { - writePunctuation("{"); - emitList(node, node.elements, 525136 /* NamedImportsOrExportsElements */); - writePunctuation("}"); - } - function emitImportOrExportSpecifier(node) { - if (node.isTypeOnly) { - writeKeyword("type"); - writeSpace(); - } - if (node.propertyName) { - emit(node.propertyName); - writeSpace(); - emitTokenWithComment(130 /* AsKeyword */, node.propertyName.end, writeKeyword, node); - writeSpace(); - } - emit(node.name); - } - function emitExternalModuleReference(node) { - writeKeyword("require"); - writePunctuation("("); - emitExpression(node.expression); - writePunctuation(")"); - } - function emitJsxElement(node) { - emit(node.openingElement); - emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */); - emit(node.closingElement); - } - function emitJsxSelfClosingElement(node) { - writePunctuation("<"); - emitJsxTagName(node.tagName); - emitTypeArguments(node, node.typeArguments); - writeSpace(); - emit(node.attributes); - writePunctuation("/>"); - } - function emitJsxFragment(node) { - emit(node.openingFragment); - emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */); - emit(node.closingFragment); - } - function emitJsxOpeningElementOrFragment(node) { - writePunctuation("<"); - if (isJsxOpeningElement(node)) { - const indented = writeLineSeparatorsAndIndentBefore(node.tagName, node); - emitJsxTagName(node.tagName); - emitTypeArguments(node, node.typeArguments); - if (node.attributes.properties && node.attributes.properties.length > 0) { - writeSpace(); - } - emit(node.attributes); - writeLineSeparatorsAfter(node.attributes, node); - decreaseIndentIf(indented); - } - writePunctuation(">"); - } - function emitJsxText(node) { - writer.writeLiteral(node.text); - } - function emitJsxClosingElementOrFragment(node) { - writePunctuation(""); - } - function emitJsxAttributes(node) { - emitList(node, node.properties, 262656 /* JsxElementAttributes */); - } - function emitJsxAttribute(node) { - emit(node.name); - emitNodeWithPrefix("=", writePunctuation, node.initializer, emitJsxAttributeValue); - } - function emitJsxSpreadAttribute(node) { - writePunctuation("{..."); - emitExpression(node.expression); - writePunctuation("}"); - } - function hasTrailingCommentsAtPosition(pos) { - let result = false; - forEachTrailingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || "", pos + 1, () => result = true); - return result; - } - function hasLeadingCommentsAtPosition(pos) { - let result = false; - forEachLeadingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || "", pos + 1, () => result = true); - return result; - } - function hasCommentsAtPosition(pos) { - return hasTrailingCommentsAtPosition(pos) || hasLeadingCommentsAtPosition(pos); - } - function emitJsxExpression(node) { - var _a; - if (node.expression || !commentsDisabled && !nodeIsSynthesized(node) && hasCommentsAtPosition(node.pos)) { - const isMultiline = currentSourceFile && !nodeIsSynthesized(node) && getLineAndCharacterOfPosition(currentSourceFile, node.pos).line !== getLineAndCharacterOfPosition(currentSourceFile, node.end).line; - if (isMultiline) { - writer.increaseIndent(); - } - const end = emitTokenWithComment(19 /* OpenBraceToken */, node.pos, writePunctuation, node); - emit(node.dotDotDotToken); - emitExpression(node.expression); - emitTokenWithComment(20 /* CloseBraceToken */, ((_a = node.expression) == null ? void 0 : _a.end) || end, writePunctuation, node); - if (isMultiline) { - writer.decreaseIndent(); - } - } - } - function emitJsxNamespacedName(node) { - emitIdentifierName(node.namespace); - writePunctuation(":"); - emitIdentifierName(node.name); - } - function emitJsxTagName(node) { - if (node.kind === 80 /* Identifier */) { - emitExpression(node); - } else { - emit(node); - } - } - function emitCaseClause(node) { - emitTokenWithComment(84 /* CaseKeyword */, node.pos, writeKeyword, node); - writeSpace(); - emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); - emitCaseOrDefaultClauseRest(node, node.statements, node.expression.end); - } - function emitDefaultClause(node) { - const pos = emitTokenWithComment(90 /* DefaultKeyword */, node.pos, writeKeyword, node); - emitCaseOrDefaultClauseRest(node, node.statements, pos); - } - function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) { - const emitAsSingleStatement = statements.length === 1 && // treat synthesized nodes as located on the same line for emit purposes - (!currentSourceFile || nodeIsSynthesized(parentNode) || nodeIsSynthesized(statements[0]) || rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile)); - let format = 163969 /* CaseOrDefaultClauseStatements */; - if (emitAsSingleStatement) { - writeToken(59 /* ColonToken */, colonPos, writePunctuation, parentNode); - writeSpace(); - format &= ~(1 /* MultiLine */ | 128 /* Indented */); - } else { - emitTokenWithComment(59 /* ColonToken */, colonPos, writePunctuation, parentNode); - } - emitList(parentNode, statements, format); - } - function emitHeritageClause(node) { - writeSpace(); - writeTokenText(node.token, writeKeyword); - writeSpace(); - emitList(node, node.types, 528 /* HeritageClauseTypes */); - } - function emitCatchClause(node) { - const openParenPos = emitTokenWithComment(85 /* CatchKeyword */, node.pos, writeKeyword, node); - writeSpace(); - if (node.variableDeclaration) { - emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); - emit(node.variableDeclaration); - emitTokenWithComment(22 /* CloseParenToken */, node.variableDeclaration.end, writePunctuation, node); - writeSpace(); - } - emit(node.block); - } - function emitPropertyAssignment(node) { - emit(node.name); - writePunctuation(":"); - writeSpace(); - const initializer = node.initializer; - if ((getEmitFlags(initializer) & 1024 /* NoLeadingComments */) === 0) { - const commentRange = getCommentRange(initializer); - emitTrailingCommentsOfPosition(commentRange.pos); - } - emitExpression(initializer, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitShorthandPropertyAssignment(node) { - emit(node.name); - if (node.objectAssignmentInitializer) { - writeSpace(); - writePunctuation("="); - writeSpace(); - emitExpression(node.objectAssignmentInitializer, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - } - function emitSpreadAssignment(node) { - if (node.expression) { - emitTokenWithComment(26 /* DotDotDotToken */, node.pos, writePunctuation, node); - emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - } - function emitEnumMember(node) { - emit(node.name); - emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); - } - function emitJSDoc(node) { - write("/**"); - if (node.comment) { - const text = getTextOfJSDocComment(node.comment); - if (text) { - const lines = text.split(/\r\n?|\n/); - for (const line of lines) { - writeLine(); - writeSpace(); - writePunctuation("*"); - writeSpace(); - write(line); - } - } - } - if (node.tags) { - if (node.tags.length === 1 && node.tags[0].kind === 344 /* JSDocTypeTag */ && !node.comment) { - writeSpace(); - emit(node.tags[0]); - } else { - emitList(node, node.tags, 33 /* JSDocComment */); - } - } - writeSpace(); - write("*/"); - } - function emitJSDocSimpleTypedTag(tag) { - emitJSDocTagName(tag.tagName); - emitJSDocTypeExpression(tag.typeExpression); - emitJSDocComment(tag.comment); - } - function emitJSDocSeeTag(tag) { - emitJSDocTagName(tag.tagName); - emit(tag.name); - emitJSDocComment(tag.comment); - } - function emitJSDocImportTag(tag) { - emitJSDocTagName(tag.tagName); - writeSpace(); - if (tag.importClause) { - emit(tag.importClause); - writeSpace(); - emitTokenWithComment(161 /* FromKeyword */, tag.importClause.end, writeKeyword, tag); - writeSpace(); - } - emitExpression(tag.moduleSpecifier); - if (tag.attributes) { - emitWithLeadingSpace(tag.attributes); - } - emitJSDocComment(tag.comment); - } - function emitJSDocNameReference(node) { - writeSpace(); - writePunctuation("{"); - emit(node.name); - writePunctuation("}"); - } - function emitJSDocHeritageTag(tag) { - emitJSDocTagName(tag.tagName); - writeSpace(); - writePunctuation("{"); - emit(tag.class); - writePunctuation("}"); - emitJSDocComment(tag.comment); - } - function emitJSDocTemplateTag(tag) { - emitJSDocTagName(tag.tagName); - emitJSDocTypeExpression(tag.constraint); - writeSpace(); - emitList(tag, tag.typeParameters, 528 /* CommaListElements */); - emitJSDocComment(tag.comment); - } - function emitJSDocTypedefTag(tag) { - emitJSDocTagName(tag.tagName); - if (tag.typeExpression) { - if (tag.typeExpression.kind === 309 /* JSDocTypeExpression */) { - emitJSDocTypeExpression(tag.typeExpression); - } else { - writeSpace(); - writePunctuation("{"); - write("Object"); - if (tag.typeExpression.isArrayType) { - writePunctuation("["); - writePunctuation("]"); - } - writePunctuation("}"); - } - } - if (tag.fullName) { - writeSpace(); - emit(tag.fullName); - } - emitJSDocComment(tag.comment); - if (tag.typeExpression && tag.typeExpression.kind === 322 /* JSDocTypeLiteral */) { - emitJSDocTypeLiteral(tag.typeExpression); - } - } - function emitJSDocCallbackTag(tag) { - emitJSDocTagName(tag.tagName); - if (tag.name) { - writeSpace(); - emit(tag.name); - } - emitJSDocComment(tag.comment); - emitJSDocSignature(tag.typeExpression); - } - function emitJSDocOverloadTag(tag) { - emitJSDocComment(tag.comment); - emitJSDocSignature(tag.typeExpression); - } - function emitJSDocSimpleTag(tag) { - emitJSDocTagName(tag.tagName); - emitJSDocComment(tag.comment); - } - function emitJSDocTypeLiteral(lit) { - emitList(lit, factory.createNodeArray(lit.jsDocPropertyTags), 33 /* JSDocComment */); - } - function emitJSDocSignature(sig) { - if (sig.typeParameters) { - emitList(sig, factory.createNodeArray(sig.typeParameters), 33 /* JSDocComment */); - } - if (sig.parameters) { - emitList(sig, factory.createNodeArray(sig.parameters), 33 /* JSDocComment */); - } - if (sig.type) { - writeLine(); - writeSpace(); - writePunctuation("*"); - writeSpace(); - emit(sig.type); - } - } - function emitJSDocPropertyLikeTag(param) { - emitJSDocTagName(param.tagName); - emitJSDocTypeExpression(param.typeExpression); - writeSpace(); - if (param.isBracketed) { - writePunctuation("["); - } - emit(param.name); - if (param.isBracketed) { - writePunctuation("]"); - } - emitJSDocComment(param.comment); - } - function emitJSDocTagName(tagName) { - writePunctuation("@"); - emit(tagName); - } - function emitJSDocComment(comment) { - const text = getTextOfJSDocComment(comment); - if (text) { - writeSpace(); - write(text); - } - } - function emitJSDocTypeExpression(typeExpression) { - if (typeExpression) { - writeSpace(); - writePunctuation("{"); - emit(typeExpression.type); - writePunctuation("}"); - } - } - function emitSourceFile(node) { - writeLine(); - const statements = node.statements; - const shouldEmitDetachedComment = statements.length === 0 || !isPrologueDirective(statements[0]) || nodeIsSynthesized(statements[0]); - if (shouldEmitDetachedComment) { - emitBodyWithDetachedComments(node, statements, emitSourceFileWorker); - return; - } - emitSourceFileWorker(node); - } - function emitSyntheticTripleSlashReferencesIfNeeded(node) { - emitTripleSlashDirectives(!!node.hasNoDefaultLib, node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []); - } - function emitTripleSlashDirectivesIfNeeded(node) { - if (node.isDeclarationFile) emitTripleSlashDirectives(node.hasNoDefaultLib, node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives); - } - function emitTripleSlashDirectives(hasNoDefaultLib, files, types, libs2) { - if (hasNoDefaultLib) { - writeComment(`/// `); - writeLine(); - } - if (currentSourceFile && currentSourceFile.moduleName) { - writeComment(`/// `); - writeLine(); - } - if (currentSourceFile && currentSourceFile.amdDependencies) { - for (const dep of currentSourceFile.amdDependencies) { - if (dep.name) { - writeComment(`/// `); - } else { - writeComment(`/// `); - } - writeLine(); - } - } - function writeDirectives(kind, directives) { - for (const directive of directives) { - const resolutionMode = directive.resolutionMode ? `resolution-mode="${directive.resolutionMode === 99 /* ESNext */ ? "import" : "require"}" ` : ""; - const preserve = directive.preserve ? `preserve="true" ` : ""; - writeComment(`/// `); - writeLine(); - } - } - writeDirectives("path", files); - writeDirectives("types", types); - writeDirectives("lib", libs2); - } - function emitSourceFileWorker(node) { - const statements = node.statements; - pushNameGenerationScope(node); - forEach(node.statements, generateNames); - emitHelpers(node); - const index = findIndex(statements, (statement) => !isPrologueDirective(statement)); - emitTripleSlashDirectivesIfNeeded(node); - emitList( - node, - statements, - 1 /* MultiLine */, - /*parenthesizerRule*/ - void 0, - index === -1 ? statements.length : index - ); - popNameGenerationScope(node); - } - function emitPartiallyEmittedExpression(node) { - const emitFlags = getEmitFlags(node); - if (!(emitFlags & 1024 /* NoLeadingComments */) && node.pos !== node.expression.pos) { - emitTrailingCommentsOfPosition(node.expression.pos); - } - emitExpression(node.expression); - if (!(emitFlags & 2048 /* NoTrailingComments */) && node.end !== node.expression.end) { - emitLeadingCommentsOfPosition(node.expression.end); - } - } - function emitCommaList(node) { - emitExpressionList( - node, - node.elements, - 528 /* CommaListElements */, - /*parenthesizerRule*/ - void 0 - ); - } - function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives) { - let needsToSetSourceFile = !!sourceFile; - for (let i = 0; i < statements.length; i++) { - const statement = statements[i]; - if (isPrologueDirective(statement)) { - const shouldEmitPrologueDirective = seenPrologueDirectives ? !seenPrologueDirectives.has(statement.expression.text) : true; - if (shouldEmitPrologueDirective) { - if (needsToSetSourceFile) { - needsToSetSourceFile = false; - setSourceFile(sourceFile); - } - writeLine(); - emit(statement); - if (seenPrologueDirectives) { - seenPrologueDirectives.add(statement.expression.text); - } - } - } else { - return i; - } - } - return statements.length; - } - function emitPrologueDirectivesIfNeeded(sourceFileOrBundle) { - if (isSourceFile(sourceFileOrBundle)) { - emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle); - } else { - const seenPrologueDirectives = /* @__PURE__ */ new Set(); - for (const sourceFile of sourceFileOrBundle.sourceFiles) { - emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives); - } - setSourceFile(void 0); - } - } - function emitShebangIfNeeded(sourceFileOrBundle) { - if (isSourceFile(sourceFileOrBundle)) { - const shebang = getShebang(sourceFileOrBundle.text); - if (shebang) { - writeComment(shebang); - writeLine(); - return true; - } - } else { - for (const sourceFile of sourceFileOrBundle.sourceFiles) { - if (emitShebangIfNeeded(sourceFile)) { - return true; - } - } - } - } - function emitNodeWithWriter(node, writer2) { - if (!node) return; - const savedWrite = write; - write = writer2; - emit(node); - write = savedWrite; - } - function emitDecoratorsAndModifiers(node, modifiers, allowDecorators) { - if (modifiers == null ? void 0 : modifiers.length) { - if (every(modifiers, isModifier)) { - return emitModifierList(node, modifiers); - } - if (every(modifiers, isDecorator)) { - if (allowDecorators) { - return emitDecoratorList(node, modifiers); - } - return node.pos; - } - onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(modifiers); - let lastMode; - let mode; - let start = 0; - let pos = 0; - let lastModifier; - while (start < modifiers.length) { - while (pos < modifiers.length) { - lastModifier = modifiers[pos]; - mode = isDecorator(lastModifier) ? "decorators" : "modifiers"; - if (lastMode === void 0) { - lastMode = mode; - } else if (mode !== lastMode) { - break; - } - pos++; - } - const textRange = { pos: -1, end: -1 }; - if (start === 0) textRange.pos = modifiers.pos; - if (pos === modifiers.length - 1) textRange.end = modifiers.end; - if (lastMode === "modifiers" || allowDecorators) { - emitNodeListItems( - emit, - node, - modifiers, - lastMode === "modifiers" ? 2359808 /* Modifiers */ : 2146305 /* Decorators */, - /*parenthesizerRule*/ - void 0, - start, - pos - start, - /*hasTrailingComma*/ - false, - textRange - ); - } - start = pos; - lastMode = mode; - pos++; - } - onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(modifiers); - if (lastModifier && !positionIsSynthesized(lastModifier.end)) { - return lastModifier.end; - } - } - return node.pos; - } - function emitModifierList(node, modifiers) { - emitList(node, modifiers, 2359808 /* Modifiers */); - const lastModifier = lastOrUndefined(modifiers); - return lastModifier && !positionIsSynthesized(lastModifier.end) ? lastModifier.end : node.pos; - } - function emitTypeAnnotation(node) { - if (node) { - writePunctuation(":"); - writeSpace(); - emit(node); - } - } - function emitInitializer(node, equalCommentStartPos, container, parenthesizerRule) { - if (node) { - writeSpace(); - emitTokenWithComment(64 /* EqualsToken */, equalCommentStartPos, writeOperator, container); - writeSpace(); - emitExpression(node, parenthesizerRule); - } - } - function emitNodeWithPrefix(prefix, prefixWriter, node, emit2) { - if (node) { - prefixWriter(prefix); - emit2(node); - } - } - function emitWithLeadingSpace(node) { - if (node) { - writeSpace(); - emit(node); - } - } - function emitExpressionWithLeadingSpace(node, parenthesizerRule) { - if (node) { - writeSpace(); - emitExpression(node, parenthesizerRule); - } - } - function emitWithTrailingSpace(node) { - if (node) { - emit(node); - writeSpace(); - } - } - function emitEmbeddedStatement(parent, node) { - if (isBlock(node) || getEmitFlags(parent) & 1 /* SingleLine */ || preserveSourceNewlines && !getLeadingLineTerminatorCount(parent, node, 0 /* None */)) { - writeSpace(); - emit(node); - } else { - writeLine(); - increaseIndent(); - if (isEmptyStatement(node)) { - pipelineEmit(5 /* EmbeddedStatement */, node); - } else { - emit(node); - } - decreaseIndent(); - } - } - function emitDecoratorList(parentNode, decorators) { - emitList(parentNode, decorators, 2146305 /* Decorators */); - const lastDecorator = lastOrUndefined(decorators); - return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? lastDecorator.end : parentNode.pos; - } - function emitTypeArguments(parentNode, typeArguments) { - emitList(parentNode, typeArguments, 53776 /* TypeArguments */, typeArgumentParenthesizerRuleSelector); - } - function emitTypeParameters(parentNode, typeParameters) { - if (isFunctionLike(parentNode) && parentNode.typeArguments) { - return emitTypeArguments(parentNode, parentNode.typeArguments); - } - emitList(parentNode, typeParameters, 53776 /* TypeParameters */ | (isArrowFunction(parentNode) ? 64 /* AllowTrailingComma */ : 0 /* None */)); - } - function emitParameters(parentNode, parameters) { - emitList(parentNode, parameters, 2576 /* Parameters */); - } - function canEmitSimpleArrowHead(parentNode, parameters) { - const parameter = singleOrUndefined(parameters); - return parameter && parameter.pos === parentNode.pos && isArrowFunction(parentNode) && !parentNode.type && !some(parentNode.modifiers) && !some(parentNode.typeParameters) && !some(parameter.modifiers) && !parameter.dotDotDotToken && !parameter.questionToken && !parameter.type && !parameter.initializer && isIdentifier(parameter.name); - } - function emitParametersForArrow(parentNode, parameters) { - if (canEmitSimpleArrowHead(parentNode, parameters)) { - emitList(parentNode, parameters, 2576 /* Parameters */ & ~2048 /* Parenthesis */); - } else { - emitParameters(parentNode, parameters); - } - } - function emitParametersForIndexSignature(parentNode, parameters) { - emitList(parentNode, parameters, 8848 /* IndexSignatureParameters */); - } - function writeDelimiter(format) { - switch (format & 60 /* DelimitersMask */) { - case 0 /* None */: - break; - case 16 /* CommaDelimited */: - writePunctuation(","); - break; - case 4 /* BarDelimited */: - writeSpace(); - writePunctuation("|"); - break; - case 32 /* AsteriskDelimited */: - writeSpace(); - writePunctuation("*"); - writeSpace(); - break; - case 8 /* AmpersandDelimited */: - writeSpace(); - writePunctuation("&"); - break; - } - } - function emitList(parentNode, children, format, parenthesizerRule, start, count) { - emitNodeList( - emit, - parentNode, - children, - format | (parentNode && getEmitFlags(parentNode) & 2 /* MultiLine */ ? 65536 /* PreferNewLine */ : 0), - parenthesizerRule, - start, - count - ); - } - function emitExpressionList(parentNode, children, format, parenthesizerRule, start, count) { - emitNodeList(emitExpression, parentNode, children, format, parenthesizerRule, start, count); - } - function emitNodeList(emit2, parentNode, children, format, parenthesizerRule, start = 0, count = children ? children.length - start : 0) { - const isUndefined = children === void 0; - if (isUndefined && format & 16384 /* OptionalIfUndefined */) { - return; - } - const isEmpty = children === void 0 || start >= children.length || count === 0; - if (isEmpty && format & 32768 /* OptionalIfEmpty */) { - onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children); - onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children); - return; - } - if (format & 15360 /* BracketsMask */) { - writePunctuation(getOpeningBracket(format)); - if (isEmpty && children) { - emitTrailingCommentsOfPosition( - children.pos, - /*prefixSpace*/ - true - ); - } - } - onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children); - if (isEmpty) { - if (format & 1 /* MultiLine */ && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) { - writeLine(); - } else if (format & 256 /* SpaceBetweenBraces */ && !(format & 524288 /* NoSpaceIfEmpty */)) { - writeSpace(); - } - } else { - emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, children.hasTrailingComma, children); - } - onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children); - if (format & 15360 /* BracketsMask */) { - if (isEmpty && children) { - emitLeadingCommentsOfPosition(children.end); - } - writePunctuation(getClosingBracket(format)); - } - } - function emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) { - const mayEmitInterveningComments = (format & 262144 /* NoInterveningComments */) === 0; - let shouldEmitInterveningComments = mayEmitInterveningComments; - const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format); - if (leadingLineTerminatorCount) { - writeLine(leadingLineTerminatorCount); - shouldEmitInterveningComments = false; - } else if (format & 256 /* SpaceBetweenBraces */) { - writeSpace(); - } - if (format & 128 /* Indented */) { - increaseIndent(); - } - const emitListItem = getEmitListItem(emit2, parenthesizerRule); - let previousSibling; - let shouldDecreaseIndentAfterEmit = false; - for (let i = 0; i < count; i++) { - const child = children[start + i]; - if (format & 32 /* AsteriskDelimited */) { - writeLine(); - writeDelimiter(format); - } else if (previousSibling) { - if (format & 60 /* DelimitersMask */ && previousSibling.end !== (parentNode ? parentNode.end : -1)) { - const previousSiblingEmitFlags = getEmitFlags(previousSibling); - if (!(previousSiblingEmitFlags & 2048 /* NoTrailingComments */)) { - emitLeadingCommentsOfPosition(previousSibling.end); - } - } - writeDelimiter(format); - const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format); - if (separatingLineTerminatorCount > 0) { - if ((format & (3 /* LinesMask */ | 128 /* Indented */)) === 0 /* SingleLine */) { - increaseIndent(); - shouldDecreaseIndentAfterEmit = true; - } - if (shouldEmitInterveningComments && format & 60 /* DelimitersMask */ && !positionIsSynthesized(child.pos)) { - const commentRange = getCommentRange(child); - emitTrailingCommentsOfPosition( - commentRange.pos, - /*prefixSpace*/ - !!(format & 512 /* SpaceBetweenSiblings */), - /*forceNoNewline*/ - true - ); - } - writeLine(separatingLineTerminatorCount); - shouldEmitInterveningComments = false; - } else if (previousSibling && format & 512 /* SpaceBetweenSiblings */) { - writeSpace(); - } - } - if (shouldEmitInterveningComments) { - const commentRange = getCommentRange(child); - emitTrailingCommentsOfPosition(commentRange.pos); - } else { - shouldEmitInterveningComments = mayEmitInterveningComments; - } - nextListElementPos = child.pos; - emitListItem(child, emit2, parenthesizerRule, i); - if (shouldDecreaseIndentAfterEmit) { - decreaseIndent(); - shouldDecreaseIndentAfterEmit = false; - } - previousSibling = child; - } - const emitFlags = previousSibling ? getEmitFlags(previousSibling) : 0; - const skipTrailingComments = commentsDisabled || !!(emitFlags & 2048 /* NoTrailingComments */); - const emitTrailingComma = hasTrailingComma && format & 64 /* AllowTrailingComma */ && format & 16 /* CommaDelimited */; - if (emitTrailingComma) { - if (previousSibling && !skipTrailingComments) { - emitTokenWithComment(28 /* CommaToken */, previousSibling.end, writePunctuation, previousSibling); - } else { - writePunctuation(","); - } - } - if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format & 60 /* DelimitersMask */ && !skipTrailingComments) { - emitLeadingCommentsOfPosition(emitTrailingComma && (childrenTextRange == null ? void 0 : childrenTextRange.end) ? childrenTextRange.end : previousSibling.end); - } - if (format & 128 /* Indented */) { - decreaseIndent(); - } - const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format, childrenTextRange); - if (closingLineTerminatorCount) { - writeLine(closingLineTerminatorCount); - } else if (format & (2097152 /* SpaceAfterList */ | 256 /* SpaceBetweenBraces */)) { - writeSpace(); - } - } - function writeLiteral(s) { - writer.writeLiteral(s); - } - function writeStringLiteral(s) { - writer.writeStringLiteral(s); - } - function writeBase(s) { - writer.write(s); - } - function writeSymbol(s, sym) { - writer.writeSymbol(s, sym); - } - function writePunctuation(s) { - writer.writePunctuation(s); - } - function writeTrailingSemicolon() { - writer.writeTrailingSemicolon(";"); - } - function writeKeyword(s) { - writer.writeKeyword(s); - } - function writeOperator(s) { - writer.writeOperator(s); - } - function writeParameter(s) { - writer.writeParameter(s); - } - function writeComment(s) { - writer.writeComment(s); - } - function writeSpace() { - writer.writeSpace(" "); - } - function writeProperty(s) { - writer.writeProperty(s); - } - function nonEscapingWrite(s) { - if (writer.nonEscapingWrite) { - writer.nonEscapingWrite(s); - } else { - writer.write(s); - } - } - function writeLine(count = 1) { - for (let i = 0; i < count; i++) { - writer.writeLine(i > 0); - } - } - function increaseIndent() { - writer.increaseIndent(); - } - function decreaseIndent() { - writer.decreaseIndent(); - } - function writeToken(token, pos, writer2, contextNode) { - return !sourceMapsDisabled ? emitTokenWithSourceMap(contextNode, token, writer2, pos, writeTokenText) : writeTokenText(token, writer2, pos); - } - function writeTokenNode(node, writer2) { - if (onBeforeEmitToken) { - onBeforeEmitToken(node); - } - writer2(tokenToString(node.kind)); - if (onAfterEmitToken) { - onAfterEmitToken(node); - } - } - function writeTokenText(token, writer2, pos) { - const tokenString = tokenToString(token); - writer2(tokenString); - return pos < 0 ? pos : pos + tokenString.length; - } - function writeLineOrSpace(parentNode, prevChildNode, nextChildNode) { - if (getEmitFlags(parentNode) & 1 /* SingleLine */) { - writeSpace(); - } else if (preserveSourceNewlines) { - const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode); - if (lines) { - writeLine(lines); - } else { - writeSpace(); - } - } else { - writeLine(); - } - } - function writeLines(text) { - const lines = text.split(/\r\n?|\n/); - const indentation = guessIndentation(lines); - for (const lineText of lines) { - const line = indentation ? lineText.slice(indentation) : lineText; - if (line.length) { - writeLine(); - write(line); - } - } - } - function writeLinesAndIndent(lineCount, writeSpaceIfNotIndenting) { - if (lineCount) { - increaseIndent(); - writeLine(lineCount); - } else if (writeSpaceIfNotIndenting) { - writeSpace(); - } - } - function decreaseIndentIf(value1, value2) { - if (value1) { - decreaseIndent(); - } - if (value2) { - decreaseIndent(); - } - } - function getLeadingLineTerminatorCount(parentNode, firstChild, format) { - if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { - if (format & 65536 /* PreferNewLine */) { - return 1; - } - if (firstChild === void 0) { - return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1; - } - if (firstChild.pos === nextListElementPos) { - return 0; - } - if (firstChild.kind === 12 /* JsxText */) { - return 0; - } - if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(firstChild) && (!firstChild.parent || getOriginalNode(firstChild.parent) === getOriginalNode(parentNode))) { - if (preserveSourceNewlines) { - return getEffectiveLines( - (includeComments) => getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter( - firstChild.pos, - parentNode.pos, - currentSourceFile, - includeComments - ) - ); - } - return rangeStartPositionsAreOnSameLine(parentNode, firstChild, currentSourceFile) ? 0 : 1; - } - if (synthesizedNodeStartsOnNewLine(firstChild, format)) { - return 1; - } - } - return format & 1 /* MultiLine */ ? 1 : 0; - } - function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { - if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { - if (previousNode === void 0 || nextNode === void 0) { - return 0; - } - if (nextNode.kind === 12 /* JsxText */) { - return 0; - } else if (currentSourceFile && !nodeIsSynthesized(previousNode) && !nodeIsSynthesized(nextNode)) { - if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) { - return getEffectiveLines( - (includeComments) => getLinesBetweenRangeEndAndRangeStart( - previousNode, - nextNode, - currentSourceFile, - includeComments - ) - ); - } else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) { - return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1; - } - return format & 65536 /* PreferNewLine */ ? 1 : 0; - } else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(nextNode, format)) { - return 1; - } - } else if (getStartsOnNewLine(nextNode)) { - return 1; - } - return format & 1 /* MultiLine */ ? 1 : 0; - } - function getClosingLineTerminatorCount(parentNode, lastChild, format, childrenTextRange) { - if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { - if (format & 65536 /* PreferNewLine */) { - return 1; - } - if (lastChild === void 0) { - return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1; - } - if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(lastChild) && (!lastChild.parent || lastChild.parent === parentNode)) { - if (preserveSourceNewlines) { - const end = childrenTextRange && !positionIsSynthesized(childrenTextRange.end) ? childrenTextRange.end : lastChild.end; - return getEffectiveLines( - (includeComments) => getLinesBetweenPositionAndNextNonWhitespaceCharacter( - end, - parentNode.end, - currentSourceFile, - includeComments - ) - ); - } - return rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1; - } - if (synthesizedNodeStartsOnNewLine(lastChild, format)) { - return 1; - } - } - if (format & 1 /* MultiLine */ && !(format & 131072 /* NoTrailingNewLine */)) { - return 1; - } - return 0; - } - function getEffectiveLines(getLineDifference) { - Debug.assert(!!preserveSourceNewlines); - const lines = getLineDifference( - /*includeComments*/ - true - ); - if (lines === 0) { - return getLineDifference( - /*includeComments*/ - false - ); - } - return lines; - } - function writeLineSeparatorsAndIndentBefore(node, parent) { - const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent, node, 0 /* None */); - if (leadingNewlines) { - writeLinesAndIndent( - leadingNewlines, - /*writeSpaceIfNotIndenting*/ - false - ); - } - return !!leadingNewlines; - } - function writeLineSeparatorsAfter(node, parent) { - const trailingNewlines = preserveSourceNewlines && getClosingLineTerminatorCount( - parent, - node, - 0 /* None */, - /*childrenTextRange*/ - void 0 - ); - if (trailingNewlines) { - writeLine(trailingNewlines); - } - } - function synthesizedNodeStartsOnNewLine(node, format) { - if (nodeIsSynthesized(node)) { - const startsOnNewLine = getStartsOnNewLine(node); - if (startsOnNewLine === void 0) { - return (format & 65536 /* PreferNewLine */) !== 0; - } - return startsOnNewLine; - } - return (format & 65536 /* PreferNewLine */) !== 0; - } - function getLinesBetweenNodes(parent, node1, node2) { - if (getEmitFlags(parent) & 262144 /* NoIndentation */) { - return 0; - } - parent = skipSynthesizedParentheses(parent); - node1 = skipSynthesizedParentheses(node1); - node2 = skipSynthesizedParentheses(node2); - if (getStartsOnNewLine(node2)) { - return 1; - } - if (currentSourceFile && !nodeIsSynthesized(parent) && !nodeIsSynthesized(node1) && !nodeIsSynthesized(node2)) { - if (preserveSourceNewlines) { - return getEffectiveLines( - (includeComments) => getLinesBetweenRangeEndAndRangeStart( - node1, - node2, - currentSourceFile, - includeComments - ) - ); - } - return rangeEndIsOnSameLineAsRangeStart(node1, node2, currentSourceFile) ? 0 : 1; - } - return 0; - } - function isEmptyBlock(block) { - return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); - } - function skipSynthesizedParentheses(node) { - while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { - node = node.expression; - } - return node; - } - function getTextOfNode2(node, includeTrivia) { - if (isGeneratedIdentifier(node) || isGeneratedPrivateIdentifier(node)) { - return generateName(node); - } - if (isStringLiteral(node) && node.textSourceNode) { - return getTextOfNode2(node.textSourceNode, includeTrivia); - } - const sourceFile = currentSourceFile; - const canUseSourceFile = !!sourceFile && !!node.parent && !nodeIsSynthesized(node); - if (isMemberName(node)) { - if (!canUseSourceFile || getSourceFileOfNode(node) !== getOriginalNode(sourceFile)) { - return idText(node); - } - } else if (isJsxNamespacedName(node)) { - if (!canUseSourceFile || getSourceFileOfNode(node) !== getOriginalNode(sourceFile)) { - return getTextOfJsxNamespacedName(node); - } - } else { - Debug.assertNode(node, isLiteralExpression); - if (!canUseSourceFile) { - return node.text; - } - } - return getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia); - } - function getLiteralTextOfNode(node, sourceFile = currentSourceFile, neverAsciiEscape, jsxAttributeEscape) { - if (node.kind === 11 /* StringLiteral */ && node.textSourceNode) { - const textSourceNode = node.textSourceNode; - if (isIdentifier(textSourceNode) || isPrivateIdentifier(textSourceNode) || isNumericLiteral(textSourceNode) || isJsxNamespacedName(textSourceNode)) { - const text = isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode2(textSourceNode); - return jsxAttributeEscape ? `"${escapeJsxAttributeString(text)}"` : neverAsciiEscape || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? `"${escapeString(text)}"` : `"${escapeNonAsciiString(text)}"`; - } else { - return getLiteralTextOfNode(textSourceNode, getSourceFileOfNode(textSourceNode), neverAsciiEscape, jsxAttributeEscape); - } - } - const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0); - return getLiteralText(node, sourceFile, flags); - } - function pushNameGenerationScope(node) { - privateNameTempFlagsStack.push(privateNameTempFlags); - privateNameTempFlags = 0 /* Auto */; - reservedPrivateNamesStack.push(reservedPrivateNames); - if (node && getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { - return; - } - tempFlagsStack.push(tempFlags); - tempFlags = 0 /* Auto */; - formattedNameTempFlagsStack.push(formattedNameTempFlags); - formattedNameTempFlags = void 0; - reservedNamesStack.push(reservedNames); - } - function popNameGenerationScope(node) { - privateNameTempFlags = privateNameTempFlagsStack.pop(); - reservedPrivateNames = reservedPrivateNamesStack.pop(); - if (node && getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { - return; - } - tempFlags = tempFlagsStack.pop(); - formattedNameTempFlags = formattedNameTempFlagsStack.pop(); - reservedNames = reservedNamesStack.pop(); - } - function reserveNameInNestedScopes(name) { - if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) { - reservedNames = /* @__PURE__ */ new Set(); - } - reservedNames.add(name); - } - function reservePrivateNameInNestedScopes(name) { - if (!reservedPrivateNames || reservedPrivateNames === lastOrUndefined(reservedPrivateNamesStack)) { - reservedPrivateNames = /* @__PURE__ */ new Set(); - } - reservedPrivateNames.add(name); - } - function generateNames(node) { - if (!node) return; - switch (node.kind) { - case 241 /* Block */: - forEach(node.statements, generateNames); - break; - case 256 /* LabeledStatement */: - case 254 /* WithStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - generateNames(node.statement); - break; - case 245 /* IfStatement */: - generateNames(node.thenStatement); - generateNames(node.elseStatement); - break; - case 248 /* ForStatement */: - case 250 /* ForOfStatement */: - case 249 /* ForInStatement */: - generateNames(node.initializer); - generateNames(node.statement); - break; - case 255 /* SwitchStatement */: - generateNames(node.caseBlock); - break; - case 269 /* CaseBlock */: - forEach(node.clauses, generateNames); - break; - case 296 /* CaseClause */: - case 297 /* DefaultClause */: - forEach(node.statements, generateNames); - break; - case 258 /* TryStatement */: - generateNames(node.tryBlock); - generateNames(node.catchClause); - generateNames(node.finallyBlock); - break; - case 299 /* CatchClause */: - generateNames(node.variableDeclaration); - generateNames(node.block); - break; - case 243 /* VariableStatement */: - generateNames(node.declarationList); - break; - case 261 /* VariableDeclarationList */: - forEach(node.declarations, generateNames); - break; - case 260 /* VariableDeclaration */: - case 169 /* Parameter */: - case 208 /* BindingElement */: - case 263 /* ClassDeclaration */: - generateNameIfNeeded(node.name); - break; - case 262 /* FunctionDeclaration */: - generateNameIfNeeded(node.name); - if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { - forEach(node.parameters, generateNames); - generateNames(node.body); - } - break; - case 206 /* ObjectBindingPattern */: - case 207 /* ArrayBindingPattern */: - forEach(node.elements, generateNames); - break; - case 272 /* ImportDeclaration */: - generateNames(node.importClause); - break; - case 273 /* ImportClause */: - generateNameIfNeeded(node.name); - generateNames(node.namedBindings); - break; - case 274 /* NamespaceImport */: - generateNameIfNeeded(node.name); - break; - case 280 /* NamespaceExport */: - generateNameIfNeeded(node.name); - break; - case 275 /* NamedImports */: - forEach(node.elements, generateNames); - break; - case 276 /* ImportSpecifier */: - generateNameIfNeeded(node.propertyName || node.name); - break; - } - } - function generateMemberNames(node) { - if (!node) return; - switch (node.kind) { - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - generateNameIfNeeded(node.name); - break; - } - } - function generateNameIfNeeded(name) { - if (name) { - if (isGeneratedIdentifier(name) || isGeneratedPrivateIdentifier(name)) { - generateName(name); - } else if (isBindingPattern(name)) { - generateNames(name); - } - } - } - function generateName(name) { - const autoGenerate = name.emitNode.autoGenerate; - if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { - return generateNameCached(getNodeForGeneratedName(name), isPrivateIdentifier(name), autoGenerate.flags, autoGenerate.prefix, autoGenerate.suffix); - } else { - const autoGenerateId = autoGenerate.id; - return autoGeneratedIdToGeneratedName[autoGenerateId] || (autoGeneratedIdToGeneratedName[autoGenerateId] = makeName(name)); - } - } - function generateNameCached(node, privateName, flags, prefix, suffix) { - const nodeId = getNodeId(node); - const cache = privateName ? nodeIdToGeneratedPrivateName : nodeIdToGeneratedName; - return cache[nodeId] || (cache[nodeId] = generateNameForNode(node, privateName, flags ?? 0 /* None */, formatGeneratedNamePart(prefix, generateName), formatGeneratedNamePart(suffix))); - } - function isUniqueName(name, privateName) { - return isFileLevelUniqueNameInCurrentFile(name, privateName) && !isReservedName(name, privateName) && !generatedNames.has(name); - } - function isReservedName(name, privateName) { - let set; - let stack; - if (privateName) { - set = reservedPrivateNames; - stack = reservedPrivateNamesStack; - } else { - set = reservedNames; - stack = reservedNamesStack; - } - if (set == null ? void 0 : set.has(name)) { - return true; - } - for (let i = stack.length - 1; i >= 0; i--) { - if (set === stack[i]) { - continue; - } - set = stack[i]; - if (set == null ? void 0 : set.has(name)) { - return true; - } - } - return false; - } - function isFileLevelUniqueNameInCurrentFile(name, _isPrivate) { - return currentSourceFile ? isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true; - } - function isUniqueLocalName(name, container) { - for (let node = container; node && isNodeDescendantOf(node, container); node = node.nextContainer) { - if (canHaveLocals(node) && node.locals) { - const local = node.locals.get(escapeLeadingUnderscores(name)); - if (local && local.flags & (111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */)) { - return false; - } - } - } - return true; - } - function getTempFlags(formattedNameKey) { - switch (formattedNameKey) { - case "": - return tempFlags; - case "#": - return privateNameTempFlags; - default: - return (formattedNameTempFlags == null ? void 0 : formattedNameTempFlags.get(formattedNameKey)) ?? 0 /* Auto */; - } - } - function setTempFlags(formattedNameKey, flags) { - switch (formattedNameKey) { - case "": - tempFlags = flags; - break; - case "#": - privateNameTempFlags = flags; - break; - default: - formattedNameTempFlags ?? (formattedNameTempFlags = /* @__PURE__ */ new Map()); - formattedNameTempFlags.set(formattedNameKey, flags); - break; - } - } - function makeTempVariableName(flags, reservedInNestedScopes, privateName, prefix, suffix) { - if (prefix.length > 0 && prefix.charCodeAt(0) === 35 /* hash */) { - prefix = prefix.slice(1); - } - const key = formatGeneratedName(privateName, prefix, "", suffix); - let tempFlags2 = getTempFlags(key); - if (flags && !(tempFlags2 & flags)) { - const name = flags === 268435456 /* _i */ ? "_i" : "_n"; - const fullName = formatGeneratedName(privateName, prefix, name, suffix); - if (isUniqueName(fullName, privateName)) { - tempFlags2 |= flags; - if (privateName) { - reservePrivateNameInNestedScopes(fullName); - } else if (reservedInNestedScopes) { - reserveNameInNestedScopes(fullName); - } - setTempFlags(key, tempFlags2); - return fullName; - } - } - while (true) { - const count = tempFlags2 & 268435455 /* CountMask */; - tempFlags2++; - if (count !== 8 && count !== 13) { - const name = count < 26 ? "_" + String.fromCharCode(97 /* a */ + count) : "_" + (count - 26); - const fullName = formatGeneratedName(privateName, prefix, name, suffix); - if (isUniqueName(fullName, privateName)) { - if (privateName) { - reservePrivateNameInNestedScopes(fullName); - } else if (reservedInNestedScopes) { - reserveNameInNestedScopes(fullName); - } - setTempFlags(key, tempFlags2); - return fullName; - } - } - } - } - function makeUniqueName(baseName, checkFn = isUniqueName, optimistic, scoped, privateName, prefix, suffix) { - if (baseName.length > 0 && baseName.charCodeAt(0) === 35 /* hash */) { - baseName = baseName.slice(1); - } - if (prefix.length > 0 && prefix.charCodeAt(0) === 35 /* hash */) { - prefix = prefix.slice(1); - } - if (optimistic) { - const fullName = formatGeneratedName(privateName, prefix, baseName, suffix); - if (checkFn(fullName, privateName)) { - if (privateName) { - reservePrivateNameInNestedScopes(fullName); - } else if (scoped) { - reserveNameInNestedScopes(fullName); - } else { - generatedNames.add(fullName); - } - return fullName; - } - } - if (baseName.charCodeAt(baseName.length - 1) !== 95 /* _ */) { - baseName += "_"; - } - let i = 1; - while (true) { - const fullName = formatGeneratedName(privateName, prefix, baseName + i, suffix); - if (checkFn(fullName, privateName)) { - if (privateName) { - reservePrivateNameInNestedScopes(fullName); - } else if (scoped) { - reserveNameInNestedScopes(fullName); - } else { - generatedNames.add(fullName); - } - return fullName; - } - i++; - } - } - function makeFileLevelOptimisticUniqueName(name) { - return makeUniqueName( - name, - isFileLevelUniqueNameInCurrentFile, - /*optimistic*/ - true, - /*scoped*/ - false, - /*privateName*/ - false, - /*prefix*/ - "", - /*suffix*/ - "" - ); - } - function generateNameForModuleOrEnum(node) { - const name = getTextOfNode2(node.name); - return isUniqueLocalName(name, tryCast(node, canHaveLocals)) ? name : makeUniqueName( - name, - isUniqueName, - /*optimistic*/ - false, - /*scoped*/ - false, - /*privateName*/ - false, - /*prefix*/ - "", - /*suffix*/ - "" - ); - } - function generateNameForImportOrExportDeclaration(node) { - const expr = getExternalModuleName(node); - const baseName = isStringLiteral(expr) ? makeIdentifierFromModuleName(expr.text) : "module"; - return makeUniqueName( - baseName, - isUniqueName, - /*optimistic*/ - false, - /*scoped*/ - false, - /*privateName*/ - false, - /*prefix*/ - "", - /*suffix*/ - "" - ); - } - function generateNameForExportDefault() { - return makeUniqueName( - "default", - isUniqueName, - /*optimistic*/ - false, - /*scoped*/ - false, - /*privateName*/ - false, - /*prefix*/ - "", - /*suffix*/ - "" - ); - } - function generateNameForClassExpression() { - return makeUniqueName( - "class", - isUniqueName, - /*optimistic*/ - false, - /*scoped*/ - false, - /*privateName*/ - false, - /*prefix*/ - "", - /*suffix*/ - "" - ); - } - function generateNameForMethodOrAccessor(node, privateName, prefix, suffix) { - if (isIdentifier(node.name)) { - return generateNameCached(node.name, privateName); - } - return makeTempVariableName( - 0 /* Auto */, - /*reservedInNestedScopes*/ - false, - privateName, - prefix, - suffix - ); - } - function generateNameForNode(node, privateName, flags, prefix, suffix) { - switch (node.kind) { - case 80 /* Identifier */: - case 81 /* PrivateIdentifier */: - return makeUniqueName( - getTextOfNode2(node), - isUniqueName, - !!(flags & 16 /* Optimistic */), - !!(flags & 8 /* ReservedInNestedScopes */), - privateName, - prefix, - suffix - ); - case 267 /* ModuleDeclaration */: - case 266 /* EnumDeclaration */: - Debug.assert(!prefix && !suffix && !privateName); - return generateNameForModuleOrEnum(node); - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - Debug.assert(!prefix && !suffix && !privateName); - return generateNameForImportOrExportDeclaration(node); - case 262 /* FunctionDeclaration */: - case 263 /* ClassDeclaration */: { - Debug.assert(!prefix && !suffix && !privateName); - const name = node.name; - if (name && !isGeneratedIdentifier(name)) { - return generateNameForNode( - name, - /*privateName*/ - false, - flags, - prefix, - suffix - ); - } - return generateNameForExportDefault(); - } - case 277 /* ExportAssignment */: - Debug.assert(!prefix && !suffix && !privateName); - return generateNameForExportDefault(); - case 231 /* ClassExpression */: - Debug.assert(!prefix && !suffix && !privateName); - return generateNameForClassExpression(); - case 174 /* MethodDeclaration */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); - case 167 /* ComputedPropertyName */: - return makeTempVariableName( - 0 /* Auto */, - /*reservedInNestedScopes*/ - true, - privateName, - prefix, - suffix - ); - default: - return makeTempVariableName( - 0 /* Auto */, - /*reservedInNestedScopes*/ - false, - privateName, - prefix, - suffix - ); - } - } - function makeName(name) { - const autoGenerate = name.emitNode.autoGenerate; - const prefix = formatGeneratedNamePart(autoGenerate.prefix, generateName); - const suffix = formatGeneratedNamePart(autoGenerate.suffix); - switch (autoGenerate.flags & 7 /* KindMask */) { - case 1 /* Auto */: - return makeTempVariableName(0 /* Auto */, !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), isPrivateIdentifier(name), prefix, suffix); - case 2 /* Loop */: - Debug.assertNode(name, isIdentifier); - return makeTempVariableName( - 268435456 /* _i */, - !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), - /*privateName*/ - false, - prefix, - suffix - ); - case 3 /* Unique */: - return makeUniqueName( - idText(name), - autoGenerate.flags & 32 /* FileLevel */ ? isFileLevelUniqueNameInCurrentFile : isUniqueName, - !!(autoGenerate.flags & 16 /* Optimistic */), - !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), - isPrivateIdentifier(name), - prefix, - suffix - ); - } - return Debug.fail(`Unsupported GeneratedIdentifierKind: ${Debug.formatEnum( - autoGenerate.flags & 7 /* KindMask */, - GeneratedIdentifierFlags, - /*isFlags*/ - true - )}.`); - } - function pipelineEmitWithComments(hint, node) { - const pipelinePhase = getNextPipelinePhase(2 /* Comments */, hint, node); - const savedContainerPos = containerPos; - const savedContainerEnd = containerEnd; - const savedDeclarationListContainerEnd = declarationListContainerEnd; - emitCommentsBeforeNode(node); - pipelinePhase(hint, node); - emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); - } - function emitCommentsBeforeNode(node) { - const emitFlags = getEmitFlags(node); - const commentRange = getCommentRange(node); - emitLeadingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end); - if (emitFlags & 4096 /* NoNestedComments */) { - commentsDisabled = true; - } - } - function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) { - const emitFlags = getEmitFlags(node); - const commentRange = getCommentRange(node); - if (emitFlags & 4096 /* NoNestedComments */) { - commentsDisabled = false; - } - emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); - const typeNode = getTypeNode(node); - if (typeNode) { - emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); - } - } - function emitLeadingCommentsOfNode(node, emitFlags, pos, end) { - enterComment(); - hasWrittenComment = false; - const skipLeadingComments = pos < 0 || (emitFlags & 1024 /* NoLeadingComments */) !== 0 || node.kind === 12 /* JsxText */; - const skipTrailingComments = end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0 || node.kind === 12 /* JsxText */; - if ((pos > 0 || end > 0) && pos !== end) { - if (!skipLeadingComments) { - emitLeadingComments( - pos, - /*isEmittedNode*/ - node.kind !== 353 /* NotEmittedStatement */ - ); - } - if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { - containerPos = pos; - } - if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { - containerEnd = end; - if (node.kind === 261 /* VariableDeclarationList */) { - declarationListContainerEnd = end; - } - } - } - forEach(getSyntheticLeadingComments(node), emitLeadingSynthesizedComment); - exitComment(); - } - function emitTrailingCommentsOfNode(node, emitFlags, pos, end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) { - enterComment(); - const skipTrailingComments = end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0 || node.kind === 12 /* JsxText */; - forEach(getSyntheticTrailingComments(node), emitTrailingSynthesizedComment); - if ((pos > 0 || end > 0) && pos !== end) { - containerPos = savedContainerPos; - containerEnd = savedContainerEnd; - declarationListContainerEnd = savedDeclarationListContainerEnd; - if (!skipTrailingComments && node.kind !== 353 /* NotEmittedStatement */) { - emitTrailingComments(end); - } - } - exitComment(); - } - function emitLeadingSynthesizedComment(comment) { - if (comment.hasLeadingNewline || comment.kind === 2 /* SingleLineCommentTrivia */) { - writer.writeLine(); - } - writeSynthesizedComment(comment); - if (comment.hasTrailingNewLine || comment.kind === 2 /* SingleLineCommentTrivia */) { - writer.writeLine(); - } else { - writer.writeSpace(" "); - } - } - function emitTrailingSynthesizedComment(comment) { - if (!writer.isAtStartOfLine()) { - writer.writeSpace(" "); - } - writeSynthesizedComment(comment); - if (comment.hasTrailingNewLine) { - writer.writeLine(); - } - } - function writeSynthesizedComment(comment) { - const text = formatSynthesizedComment(comment); - const lineMap = comment.kind === 3 /* MultiLineCommentTrivia */ ? computeLineStarts(text) : void 0; - writeCommentRange(text, lineMap, writer, 0, text.length, newLine); - } - function formatSynthesizedComment(comment) { - return comment.kind === 3 /* MultiLineCommentTrivia */ ? `/*${comment.text}*/` : `//${comment.text}`; - } - function emitBodyWithDetachedComments(node, detachedRange, emitCallback) { - enterComment(); - const { pos, end } = detachedRange; - const emitFlags = getEmitFlags(node); - const skipLeadingComments = pos < 0 || (emitFlags & 1024 /* NoLeadingComments */) !== 0; - const skipTrailingComments = commentsDisabled || end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0; - if (!skipLeadingComments) { - emitDetachedCommentsAndUpdateCommentsInfo(detachedRange); - } - exitComment(); - if (emitFlags & 4096 /* NoNestedComments */ && !commentsDisabled) { - commentsDisabled = true; - emitCallback(node); - commentsDisabled = false; - } else { - emitCallback(node); - } - enterComment(); - if (!skipTrailingComments) { - emitLeadingComments( - detachedRange.end, - /*isEmittedNode*/ - true - ); - if (hasWrittenComment && !writer.isAtStartOfLine()) { - writer.writeLine(); - } - } - exitComment(); - } - function originalNodesHaveSameParent(nodeA, nodeB) { - nodeA = getOriginalNode(nodeA); - return nodeA.parent && nodeA.parent === getOriginalNode(nodeB).parent; - } - function siblingNodePositionsAreComparable(previousNode, nextNode) { - if (nextNode.pos < previousNode.end) { - return false; - } - previousNode = getOriginalNode(previousNode); - nextNode = getOriginalNode(nextNode); - const parent = previousNode.parent; - if (!parent || parent !== nextNode.parent) { - return false; - } - const parentNodeArray = getContainingNodeArray(previousNode); - const prevNodeIndex = parentNodeArray == null ? void 0 : parentNodeArray.indexOf(previousNode); - return prevNodeIndex !== void 0 && prevNodeIndex > -1 && parentNodeArray.indexOf(nextNode) === prevNodeIndex + 1; - } - function emitLeadingComments(pos, isEmittedNode) { - hasWrittenComment = false; - if (isEmittedNode) { - if (pos === 0 && (currentSourceFile == null ? void 0 : currentSourceFile.isDeclarationFile)) { - forEachLeadingCommentToEmit(pos, emitNonTripleSlashLeadingComment); - } else { - forEachLeadingCommentToEmit(pos, emitLeadingComment); - } - } else if (pos === 0) { - forEachLeadingCommentToEmit(pos, emitTripleSlashLeadingComment); - } - } - function emitTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { - if (isTripleSlashComment(commentPos, commentEnd)) { - emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos); - } - } - function emitNonTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { - if (!isTripleSlashComment(commentPos, commentEnd)) { - emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos); - } - } - function shouldWriteComment(text, pos) { - if (printerOptions.onlyPrintJsDocStyle) { - return isJSDocLikeText(text, pos) || isPinnedComment(text, pos); - } - return true; - } - function emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { - if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; - if (!hasWrittenComment) { - emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(), writer, rangePos, commentPos); - hasWrittenComment = true; - } - emitPos(commentPos); - writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); - emitPos(commentEnd); - if (hasTrailingNewLine) { - writer.writeLine(); - } else if (kind === 3 /* MultiLineCommentTrivia */) { - writer.writeSpace(" "); - } - } - function emitLeadingCommentsOfPosition(pos) { - if (commentsDisabled || pos === -1) { - return; - } - emitLeadingComments( - pos, - /*isEmittedNode*/ - true - ); - } - function emitTrailingComments(pos) { - forEachTrailingCommentToEmit(pos, emitTrailingComment); - } - function emitTrailingComment(commentPos, commentEnd, _kind, hasTrailingNewLine) { - if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; - if (!writer.isAtStartOfLine()) { - writer.writeSpace(" "); - } - emitPos(commentPos); - writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); - emitPos(commentEnd); - if (hasTrailingNewLine) { - writer.writeLine(); - } - } - function emitTrailingCommentsOfPosition(pos, prefixSpace, forceNoNewline) { - if (commentsDisabled) { - return; - } - enterComment(); - forEachTrailingCommentToEmit(pos, prefixSpace ? emitTrailingComment : forceNoNewline ? emitTrailingCommentOfPositionNoNewline : emitTrailingCommentOfPosition); - exitComment(); - } - function emitTrailingCommentOfPositionNoNewline(commentPos, commentEnd, kind) { - if (!currentSourceFile) return; - emitPos(commentPos); - writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); - emitPos(commentEnd); - if (kind === 2 /* SingleLineCommentTrivia */) { - writer.writeLine(); - } - } - function emitTrailingCommentOfPosition(commentPos, commentEnd, _kind, hasTrailingNewLine) { - if (!currentSourceFile) return; - emitPos(commentPos); - writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); - emitPos(commentEnd); - if (hasTrailingNewLine) { - writer.writeLine(); - } else { - writer.writeSpace(" "); - } - } - function forEachLeadingCommentToEmit(pos, cb) { - if (currentSourceFile && (containerPos === -1 || pos !== containerPos)) { - if (hasDetachedComments(pos)) { - forEachLeadingCommentWithoutDetachedComments(cb); - } else { - forEachLeadingCommentRange( - currentSourceFile.text, - pos, - cb, - /*state*/ - pos - ); - } - } - } - function forEachTrailingCommentToEmit(end, cb) { - if (currentSourceFile && (containerEnd === -1 || end !== containerEnd && end !== declarationListContainerEnd)) { - forEachTrailingCommentRange(currentSourceFile.text, end, cb); - } - } - function hasDetachedComments(pos) { - return detachedCommentsInfo !== void 0 && last(detachedCommentsInfo).nodePos === pos; - } - function forEachLeadingCommentWithoutDetachedComments(cb) { - if (!currentSourceFile) return; - const pos = last(detachedCommentsInfo).detachedCommentEndPos; - if (detachedCommentsInfo.length - 1) { - detachedCommentsInfo.pop(); - } else { - detachedCommentsInfo = void 0; - } - forEachLeadingCommentRange( - currentSourceFile.text, - pos, - cb, - /*state*/ - pos - ); - } - function emitDetachedCommentsAndUpdateCommentsInfo(range) { - const currentDetachedCommentInfo = currentSourceFile && emitDetachedComments(currentSourceFile.text, getCurrentLineMap(), writer, emitComment, range, newLine, commentsDisabled); - if (currentDetachedCommentInfo) { - if (detachedCommentsInfo) { - detachedCommentsInfo.push(currentDetachedCommentInfo); - } else { - detachedCommentsInfo = [currentDetachedCommentInfo]; - } - } - } - function emitComment(text, lineMap, writer2, commentPos, commentEnd, newLine2) { - if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; - emitPos(commentPos); - writeCommentRange(text, lineMap, writer2, commentPos, commentEnd, newLine2); - emitPos(commentEnd); - } - function isTripleSlashComment(commentPos, commentEnd) { - return !!currentSourceFile && isRecognizedTripleSlashComment(currentSourceFile.text, commentPos, commentEnd); - } - function pipelineEmitWithSourceMaps(hint, node) { - const pipelinePhase = getNextPipelinePhase(3 /* SourceMaps */, hint, node); - emitSourceMapsBeforeNode(node); - pipelinePhase(hint, node); - emitSourceMapsAfterNode(node); - } - function emitSourceMapsBeforeNode(node) { - const emitFlags = getEmitFlags(node); - const sourceMapRange = getSourceMapRange(node); - const source = sourceMapRange.source || sourceMapSource; - if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { - emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); - } - if (emitFlags & 128 /* NoNestedSourceMaps */) { - sourceMapsDisabled = true; - } - } - function emitSourceMapsAfterNode(node) { - const emitFlags = getEmitFlags(node); - const sourceMapRange = getSourceMapRange(node); - if (emitFlags & 128 /* NoNestedSourceMaps */) { - sourceMapsDisabled = false; - } - if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { - emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); - } - } - function skipSourceTrivia(source, pos) { - return source.skipTrivia ? source.skipTrivia(pos) : skipTrivia(source.text, pos); - } - function emitPos(pos) { - if (sourceMapsDisabled || positionIsSynthesized(pos) || isJsonSourceMapSource(sourceMapSource)) { - return; - } - const { line: sourceLine, character: sourceCharacter } = getLineAndCharacterOfPosition(sourceMapSource, pos); - sourceMapGenerator.addMapping( - writer.getLine(), - writer.getColumn(), - sourceMapSourceIndex, - sourceLine, - sourceCharacter, - /*nameIndex*/ - void 0 - ); - } - function emitSourcePos(source, pos) { - if (source !== sourceMapSource) { - const savedSourceMapSource = sourceMapSource; - const savedSourceMapSourceIndex = sourceMapSourceIndex; - setSourceMapSource(source); - emitPos(pos); - resetSourceMapSource(savedSourceMapSource, savedSourceMapSourceIndex); - } else { - emitPos(pos); - } - } - function emitTokenWithSourceMap(node, token, writer2, tokenPos, emitCallback) { - if (sourceMapsDisabled || node && isInJsonFile(node)) { - return emitCallback(token, writer2, tokenPos); - } - const emitNode = node && node.emitNode; - const emitFlags = emitNode && emitNode.flags || 0 /* None */; - const range = emitNode && emitNode.tokenSourceMapRanges && emitNode.tokenSourceMapRanges[token]; - const source = range && range.source || sourceMapSource; - tokenPos = skipSourceTrivia(source, range ? range.pos : tokenPos); - if ((emitFlags & 256 /* NoTokenLeadingSourceMaps */) === 0 && tokenPos >= 0) { - emitSourcePos(source, tokenPos); - } - tokenPos = emitCallback(token, writer2, tokenPos); - if (range) tokenPos = range.end; - if ((emitFlags & 512 /* NoTokenTrailingSourceMaps */) === 0 && tokenPos >= 0) { - emitSourcePos(source, tokenPos); - } - return tokenPos; - } - function setSourceMapSource(source) { - if (sourceMapsDisabled) { - return; - } - sourceMapSource = source; - if (source === mostRecentlyAddedSourceMapSource) { - sourceMapSourceIndex = mostRecentlyAddedSourceMapSourceIndex; - return; - } - if (isJsonSourceMapSource(source)) { - return; - } - sourceMapSourceIndex = sourceMapGenerator.addSource(source.fileName); - if (printerOptions.inlineSources) { - sourceMapGenerator.setSourceContent(sourceMapSourceIndex, source.text); - } - mostRecentlyAddedSourceMapSource = source; - mostRecentlyAddedSourceMapSourceIndex = sourceMapSourceIndex; - } - function resetSourceMapSource(source, sourceIndex) { - sourceMapSource = source; - sourceMapSourceIndex = sourceIndex; - } - function isJsonSourceMapSource(sourceFile) { - return fileExtensionIs(sourceFile.fileName, ".json" /* Json */); - } -} -function createBracketsMap() { - const brackets2 = []; - brackets2[1024 /* Braces */] = ["{", "}"]; - brackets2[2048 /* Parenthesis */] = ["(", ")"]; - brackets2[4096 /* AngleBrackets */] = ["<", ">"]; - brackets2[8192 /* SquareBrackets */] = ["[", "]"]; - return brackets2; -} -function getOpeningBracket(format) { - return brackets[format & 15360 /* BracketsMask */][0]; -} -function getClosingBracket(format) { - return brackets[format & 15360 /* BracketsMask */][1]; -} -function emitListItemNoParenthesizer(node, emit, _parenthesizerRule, _index) { - emit(node); -} -function emitListItemWithParenthesizerRuleSelector(node, emit, parenthesizerRuleSelector, index) { - emit(node, parenthesizerRuleSelector.select(index)); -} -function emitListItemWithParenthesizerRule(node, emit, parenthesizerRule, _index) { - emit(node, parenthesizerRule); -} -function getEmitListItem(emit, parenthesizerRule) { - return emit.length === 1 ? emitListItemNoParenthesizer : typeof parenthesizerRule === "object" ? emitListItemWithParenthesizerRuleSelector : emitListItemWithParenthesizerRule; -} - -// src/compiler/watchUtilities.ts -function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { - if (!host.getDirectories || !host.readDirectory) { - return void 0; - } - const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); - return { - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - fileExists, - readFile: (path, encoding) => host.readFile(path, encoding), - directoryExists: host.directoryExists && directoryExists, - getDirectories, - readDirectory, - createDirectory: host.createDirectory && createDirectory, - writeFile: host.writeFile && writeFile2, - addOrDeleteFileOrDirectory, - addOrDeleteFile, - clearCache, - realpath: host.realpath && realpath - }; - function toPath3(fileName) { - return toPath(fileName, currentDirectory, getCanonicalFileName); - } - function getCachedFileSystemEntries(rootDirPath) { - return cachedReadDirectoryResult.get(ensureTrailingDirectorySeparator(rootDirPath)); - } - function getCachedFileSystemEntriesForBaseDir(path) { - const entries = getCachedFileSystemEntries(getDirectoryPath(path)); - if (!entries) { - return entries; - } - if (!entries.sortedAndCanonicalizedFiles) { - entries.sortedAndCanonicalizedFiles = entries.files.map(getCanonicalFileName).sort(); - entries.sortedAndCanonicalizedDirectories = entries.directories.map(getCanonicalFileName).sort(); - } - return entries; - } - function getBaseNameOfFileName(fileName) { - return getBaseFileName(normalizePath(fileName)); - } - function createCachedFileSystemEntries(rootDir, rootDirPath) { - var _a; - if (!host.realpath || ensureTrailingDirectorySeparator(toPath3(host.realpath(rootDir))) === rootDirPath) { - const resultFromHost = { - files: map(host.readDirectory( - rootDir, - /*extensions*/ - void 0, - /*exclude*/ - void 0, - /*include*/ - ["*.*"] - ), getBaseNameOfFileName) || [], - directories: host.getDirectories(rootDir) || [] - }; - cachedReadDirectoryResult.set(ensureTrailingDirectorySeparator(rootDirPath), resultFromHost); - return resultFromHost; - } - if ((_a = host.directoryExists) == null ? void 0 : _a.call(host, rootDir)) { - cachedReadDirectoryResult.set(rootDirPath, false); - return false; - } - return void 0; - } - function tryReadDirectory(rootDir, rootDirPath) { - rootDirPath = ensureTrailingDirectorySeparator(rootDirPath); - const cachedResult = getCachedFileSystemEntries(rootDirPath); - if (cachedResult) { - return cachedResult; - } - try { - return createCachedFileSystemEntries(rootDir, rootDirPath); - } catch { - Debug.assert(!cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(rootDirPath))); - return void 0; - } - } - function hasEntry(entries, name) { - const index = binarySearch(entries, name, identity, compareStringsCaseSensitive); - return index >= 0; - } - function writeFile2(fileName, data, writeByteOrderMark) { - const path = toPath3(fileName); - const result = getCachedFileSystemEntriesForBaseDir(path); - if (result) { - updateFilesOfFileSystemEntry( - result, - getBaseNameOfFileName(fileName), - /*fileExists*/ - true - ); - } - return host.writeFile(fileName, data, writeByteOrderMark); - } - function fileExists(fileName) { - const path = toPath3(fileName); - const result = getCachedFileSystemEntriesForBaseDir(path); - return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName); - } - function directoryExists(dirPath) { - const path = toPath3(dirPath); - return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path)) || host.directoryExists(dirPath); - } - function createDirectory(dirPath) { - const path = toPath3(dirPath); - const result = getCachedFileSystemEntriesForBaseDir(path); - if (result) { - const baseName = getBaseNameOfFileName(dirPath); - const canonicalizedBaseName = getCanonicalFileName(baseName); - const canonicalizedDirectories = result.sortedAndCanonicalizedDirectories; - if (insertSorted(canonicalizedDirectories, canonicalizedBaseName, compareStringsCaseSensitive)) { - result.directories.push(baseName); - } - } - host.createDirectory(dirPath); - } - function getDirectories(rootDir) { - const rootDirPath = toPath3(rootDir); - const result = tryReadDirectory(rootDir, rootDirPath); - if (result) { - return result.directories.slice(); - } - return host.getDirectories(rootDir); - } - function readDirectory(rootDir, extensions, excludes, includes, depth) { - const rootDirPath = toPath3(rootDir); - const rootResult = tryReadDirectory(rootDir, rootDirPath); - let rootSymLinkResult; - if (rootResult !== void 0) { - return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); - } - return host.readDirectory(rootDir, extensions, excludes, includes, depth); - function getFileSystemEntries(dir) { - const path = toPath3(dir); - if (path === rootDirPath) { - return rootResult || getFileSystemEntriesFromHost(dir, path); - } - const result = tryReadDirectory(dir, path); - return result !== void 0 ? result || getFileSystemEntriesFromHost(dir, path) : emptyFileSystemEntries; - } - function getFileSystemEntriesFromHost(dir, path) { - if (rootSymLinkResult && path === rootDirPath) return rootSymLinkResult; - const result = { - files: map(host.readDirectory( - dir, - /*extensions*/ - void 0, - /*exclude*/ - void 0, - /*include*/ - ["*.*"] - ), getBaseNameOfFileName) || emptyArray, - directories: host.getDirectories(dir) || emptyArray - }; - if (path === rootDirPath) rootSymLinkResult = result; - return result; - } - } - function realpath(s) { - return host.realpath ? host.realpath(s) : s; - } - function clearFirstAncestorEntry(fileOrDirectoryPath) { - forEachAncestorDirectory( - getDirectoryPath(fileOrDirectoryPath), - (ancestor) => cachedReadDirectoryResult.delete(ensureTrailingDirectorySeparator(ancestor)) ? true : void 0 - ); - } - function addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath) { - const existingResult = getCachedFileSystemEntries(fileOrDirectoryPath); - if (existingResult !== void 0) { - clearCache(); - return void 0; - } - const parentResult = getCachedFileSystemEntriesForBaseDir(fileOrDirectoryPath); - if (!parentResult) { - clearFirstAncestorEntry(fileOrDirectoryPath); - return void 0; - } - if (!host.directoryExists) { - clearCache(); - return void 0; - } - const baseName = getBaseNameOfFileName(fileOrDirectory); - const fsQueryResult = { - fileExists: host.fileExists(fileOrDirectory), - directoryExists: host.directoryExists(fileOrDirectory) - }; - if (fsQueryResult.directoryExists || hasEntry(parentResult.sortedAndCanonicalizedDirectories, getCanonicalFileName(baseName))) { - clearCache(); - } else { - updateFilesOfFileSystemEntry(parentResult, baseName, fsQueryResult.fileExists); - } - return fsQueryResult; - } - function addOrDeleteFile(fileName, filePath, eventKind) { - if (eventKind === 1 /* Changed */) { - return; - } - const parentResult = getCachedFileSystemEntriesForBaseDir(filePath); - if (parentResult) { - updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === 0 /* Created */); - } else { - clearFirstAncestorEntry(filePath); - } - } - function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists2) { - const canonicalizedFiles = parentResult.sortedAndCanonicalizedFiles; - const canonicalizedBaseName = getCanonicalFileName(baseName); - if (fileExists2) { - if (insertSorted(canonicalizedFiles, canonicalizedBaseName, compareStringsCaseSensitive)) { - parentResult.files.push(baseName); - } - } else { - const sortedIndex = binarySearch(canonicalizedFiles, canonicalizedBaseName, identity, compareStringsCaseSensitive); - if (sortedIndex >= 0) { - canonicalizedFiles.splice(sortedIndex, 1); - const unsortedIndex = parentResult.files.findIndex((entry) => getCanonicalFileName(entry) === canonicalizedBaseName); - parentResult.files.splice(unsortedIndex, 1); - } - } - } - function clearCache() { - cachedReadDirectoryResult.clear(); - } -} -function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedConfigFilesMap, createExtendedConfigFileWatch, toPath3) { - var _a; - const extendedConfigs = arrayToMap(((_a = options == null ? void 0 : options.configFile) == null ? void 0 : _a.extendedSourceFiles) || emptyArray, toPath3); - extendedConfigFilesMap.forEach((watcher, extendedConfigFilePath) => { - if (!extendedConfigs.has(extendedConfigFilePath)) { - watcher.projects.delete(projectPath); - watcher.close(); - } - }); - extendedConfigs.forEach((extendedConfigFileName, extendedConfigFilePath) => { - const existing = extendedConfigFilesMap.get(extendedConfigFilePath); - if (existing) { - existing.projects.add(projectPath); - } else { - extendedConfigFilesMap.set(extendedConfigFilePath, { - projects: /* @__PURE__ */ new Set([projectPath]), - watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath), - close: () => { - const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath); - if (!existing2 || existing2.projects.size !== 0) return; - existing2.watcher.close(); - extendedConfigFilesMap.delete(extendedConfigFilePath); - } - }); - } - }); -} -function clearSharedExtendedConfigFileWatcher(projectPath, extendedConfigFilesMap) { - extendedConfigFilesMap.forEach((watcher) => { - if (watcher.projects.delete(projectPath)) watcher.close(); - }); -} -function cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3) { - if (!extendedConfigCache.delete(extendedConfigFilePath)) return; - extendedConfigCache.forEach(({ extendedResult }, key) => { - var _a; - if ((_a = extendedResult.extendedSourceFiles) == null ? void 0 : _a.some((extendedFile) => toPath3(extendedFile) === extendedConfigFilePath)) { - cleanExtendedConfigCache(extendedConfigCache, key, toPath3); - } - }); -} -function updateMissingFilePathsWatch(program, missingFileWatches, createMissingFileWatch) { - mutateMap( - missingFileWatches, - program.getMissingFilePaths(), - { - // Watch the missing files - createNewValue: createMissingFileWatch, - // Files that are no longer missing (e.g. because they are no longer required) - // should no longer be watched. - onDeleteValue: closeFileWatcher - } - ); -} -function updateWatchingWildcardDirectories(existingWatchedForWildcards, wildcardDirectories, watchDirectory) { - if (wildcardDirectories) { - mutateMap( - existingWatchedForWildcards, - new Map(Object.entries(wildcardDirectories)), - { - // Create new watch and recursive info - createNewValue: createWildcardDirectoryWatcher, - // Close existing watch thats not needed any more - onDeleteValue: closeFileWatcherOf, - // Close existing watch that doesnt match in the flags - onExistingValue: updateWildcardDirectoryWatcher - } - ); - } else { - clearMap(existingWatchedForWildcards, closeFileWatcherOf); - } - function createWildcardDirectoryWatcher(directory, flags) { - return { - watcher: watchDirectory(directory, flags), - flags - }; - } - function updateWildcardDirectoryWatcher(existingWatcher, flags, directory) { - if (existingWatcher.flags === flags) { - return; - } - existingWatcher.watcher.close(); - existingWatchedForWildcards.set(directory, createWildcardDirectoryWatcher(directory, flags)); - } -} -function isIgnoredFileFromWildCardWatching({ - watchedDirPath, - fileOrDirectory, - fileOrDirectoryPath, - configFileName, - options, - program, - extraFileExtensions, - currentDirectory, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - writeLog, - toPath: toPath3, - getScriptKind -}) { - const newPath = removeIgnoredPath(fileOrDirectoryPath); - if (!newPath) { - writeLog(`Project: ${configFileName} Detected ignored path: ${fileOrDirectory}`); - return true; - } - fileOrDirectoryPath = newPath; - if (fileOrDirectoryPath === watchedDirPath) return false; - if (hasExtension(fileOrDirectoryPath) && !(isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions) || isSupportedScriptKind())) { - writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); - return true; - } - if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { - writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); - return true; - } - if (!program) return false; - if (options.outFile || options.outDir) return false; - if (isDeclarationFileName(fileOrDirectoryPath)) { - if (options.declarationDir) return false; - } else if (!fileExtensionIsOneOf(fileOrDirectoryPath, supportedJSExtensionsFlat)) { - return false; - } - const filePathWithoutExtension = removeFileExtension(fileOrDirectoryPath); - const realProgram = isArray(program) ? void 0 : isBuilderProgram(program) ? program.getProgramOrUndefined() : program; - const builderProgram = !realProgram && !isArray(program) ? program : void 0; - if (hasSourceFile(filePathWithoutExtension + ".ts" /* Ts */) || hasSourceFile(filePathWithoutExtension + ".tsx" /* Tsx */)) { - writeLog(`Project: ${configFileName} Detected output file: ${fileOrDirectory}`); - return true; - } - return false; - function hasSourceFile(file) { - return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.state.fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file); - } - function isSupportedScriptKind() { - if (!getScriptKind) return false; - const scriptKind = getScriptKind(fileOrDirectory); - switch (scriptKind) { - case 3 /* TS */: - case 4 /* TSX */: - case 7 /* Deferred */: - case 5 /* External */: - return true; - case 1 /* JS */: - case 2 /* JSX */: - return getAllowJSCompilerOption(options); - case 6 /* JSON */: - return getResolveJsonModule(options); - case 0 /* Unknown */: - return false; - } - } -} -function isEmittedFileOfProgram(program, file) { - if (!program) { - return false; - } - return program.isEmittedFile(file); -} -function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) { - setSysLog(watchLogLevel === 2 /* Verbose */ ? log : noop); - const plainInvokeFactory = { - watchFile: (file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options), - watchDirectory: (directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1 /* Recursive */) !== 0, options) - }; - const triggerInvokingFactory = watchLogLevel !== 0 /* None */ ? { - watchFile: createTriggerLoggingAddWatch("watchFile"), - watchDirectory: createTriggerLoggingAddWatch("watchDirectory") - } : void 0; - const factory2 = watchLogLevel === 2 /* Verbose */ ? { - watchFile: createFileWatcherWithLogging, - watchDirectory: createDirectoryWatcherWithLogging - } : triggerInvokingFactory || plainInvokeFactory; - const excludeWatcherFactory = watchLogLevel === 2 /* Verbose */ ? createExcludeWatcherWithLogging : returnNoopFileWatcher; - return { - watchFile: createExcludeHandlingAddWatch("watchFile"), - watchDirectory: createExcludeHandlingAddWatch("watchDirectory") - }; - function createExcludeHandlingAddWatch(key) { - return (file, cb, flags, options, detailInfo1, detailInfo2) => { - var _a; - return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( - /*thisArgs*/ - void 0, - file, - cb, - flags, - options, - detailInfo1, - detailInfo2 - ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); - }; - } - function useCaseSensitiveFileNames2() { - return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); - } - function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { - log(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); - return { - close: () => log(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`) - }; - } - function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) { - log(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); - const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2); - return { - close: () => { - log(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); - watcher.close(); - } - }; - } - function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) { - const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; - log(watchInfo); - const start = timestamp(); - const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2); - const elapsed = timestamp() - start; - log(`Elapsed:: ${elapsed}ms ${watchInfo}`); - return { - close: () => { - const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; - log(watchInfo2); - const start2 = timestamp(); - watcher.close(); - const elapsed2 = timestamp() - start2; - log(`Elapsed:: ${elapsed2}ms ${watchInfo2}`); - } - }; - } - function createTriggerLoggingAddWatch(key) { - return (file, cb, flags, options, detailInfo1, detailInfo2) => plainInvokeFactory[key].call( - /*thisArgs*/ - void 0, - file, - (...args) => { - const triggerredInfo = `${key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${args[0]} ${args[1] !== void 0 ? args[1] : ""}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; - log(triggerredInfo); - const start = timestamp(); - cb.call( - /*thisArg*/ - void 0, - ...args - ); - const elapsed = timestamp() - start; - log(`Elapsed:: ${elapsed}ms ${triggerredInfo}`); - }, - flags, - options, - detailInfo1, - detailInfo2 - ); - } - function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2) { - return `WatchInfo: ${file} ${flags} ${JSON.stringify(options)} ${getDetailWatchInfo2 ? getDetailWatchInfo2(detailInfo1, detailInfo2) : detailInfo2 === void 0 ? detailInfo1 : `${detailInfo1} ${detailInfo2}`}`; - } -} -function getFallbackOptions(options) { - const fallbackPolling = options == null ? void 0 : options.fallbackPolling; - return { - watchFile: fallbackPolling !== void 0 ? fallbackPolling : 1 /* PriorityPollingInterval */ - }; -} -function closeFileWatcherOf(objWithWatcher) { - objWithWatcher.watcher.close(); -} - -// src/compiler/program.ts -function findConfigFile(searchPath, fileExists, configName = "tsconfig.json") { - return forEachAncestorDirectory(searchPath, (ancestor) => { - const fileName = combinePaths(ancestor, configName); - return fileExists(fileName) ? fileName : void 0; - }); -} -function resolveTripleslashReference(moduleName, containingFile) { - const basePath = getDirectoryPath(containingFile); - const referencedFileName = isRootedDiskPath(moduleName) ? moduleName : combinePaths(basePath, moduleName); - return normalizePath(referencedFileName); -} -function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, getCanonicalFileName) { - let commonPathComponents; - const failed2 = forEach(fileNames, (sourceFile) => { - const sourcePathComponents = getNormalizedPathComponents(sourceFile, currentDirectory); - sourcePathComponents.pop(); - if (!commonPathComponents) { - commonPathComponents = sourcePathComponents; - return; - } - const n = Math.min(commonPathComponents.length, sourcePathComponents.length); - for (let i = 0; i < n; i++) { - if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) { - if (i === 0) { - return true; - } - commonPathComponents.length = i; - break; - } - } - if (sourcePathComponents.length < commonPathComponents.length) { - commonPathComponents.length = sourcePathComponents.length; - } - }); - if (failed2) { - return ""; - } - if (!commonPathComponents) { - return currentDirectory; - } - return getPathFromPathComponents(commonPathComponents); -} -function createCompilerHost(options, setParentNodes) { - return createCompilerHostWorker(options, setParentNodes); -} -function createGetSourceFile(readFile, setParentNodes) { - return (fileName, languageVersionOrOptions, onError) => { - let text; - try { - mark("beforeIORead"); - text = readFile(fileName); - mark("afterIORead"); - measure("I/O Read", "beforeIORead", "afterIORead"); - } catch (e) { - if (onError) { - onError(e.message); - } - text = ""; - } - return text !== void 0 ? createSourceFile(fileName, text, languageVersionOrOptions, setParentNodes) : void 0; - }; -} -function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryExists) { - return (fileName, data, writeByteOrderMark, onError) => { - try { - mark("beforeIOWrite"); - writeFileEnsuringDirectories( - fileName, - data, - writeByteOrderMark, - actualWriteFile, - createDirectory, - directoryExists - ); - mark("afterIOWrite"); - measure("I/O Write", "beforeIOWrite", "afterIOWrite"); - } catch (e) { - if (onError) { - onError(e.message); - } - } - }; -} -function createCompilerHostWorker(options, setParentNodes, system = sys) { - const existingDirectories = /* @__PURE__ */ new Map(); - const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames); - function directoryExists(directoryPath) { - if (existingDirectories.has(directoryPath)) { - return true; - } - if ((compilerHost.directoryExists || system.directoryExists)(directoryPath)) { - existingDirectories.set(directoryPath, true); - return true; - } - return false; - } - function getDefaultLibLocation() { - return getDirectoryPath(normalizePath(system.getExecutingFilePath())); - } - const newLine = getNewLineCharacter(options); - const realpath = system.realpath && ((path) => system.realpath(path)); - const compilerHost = { - getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), setParentNodes), - getDefaultLibLocation, - getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)), - writeFile: createWriteFileMeasuringIO( - (path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark), - (path) => (compilerHost.createDirectory || system.createDirectory)(path), - (path) => directoryExists(path) - ), - getCurrentDirectory: memoize(() => system.getCurrentDirectory()), - useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames, - getCanonicalFileName, - getNewLine: () => newLine, - fileExists: (fileName) => system.fileExists(fileName), - readFile: (fileName) => system.readFile(fileName), - trace: (s) => system.write(s + newLine), - directoryExists: (directoryName) => system.directoryExists(directoryName), - getEnvironmentVariable: (name) => system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : "", - getDirectories: (path) => system.getDirectories(path), - realpath, - readDirectory: (path, extensions, include, exclude, depth) => system.readDirectory(path, extensions, include, exclude, depth), - createDirectory: (d) => system.createDirectory(d), - createHash: maybeBind(system, system.createHash) - }; - return compilerHost; -} -function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) { - const originalReadFile = host.readFile; - const originalFileExists = host.fileExists; - const originalDirectoryExists = host.directoryExists; - const originalCreateDirectory = host.createDirectory; - const originalWriteFile = host.writeFile; - const readFileCache = /* @__PURE__ */ new Map(); - const fileExistsCache = /* @__PURE__ */ new Map(); - const directoryExistsCache = /* @__PURE__ */ new Map(); - const sourceFileCache = /* @__PURE__ */ new Map(); - const readFileWithCache = (fileName) => { - const key = toPath3(fileName); - const value = readFileCache.get(key); - if (value !== void 0) return value !== false ? value : void 0; - return setReadFileCache(key, fileName); - }; - const setReadFileCache = (key, fileName) => { - const newValue = originalReadFile.call(host, fileName); - readFileCache.set(key, newValue !== void 0 ? newValue : false); - return newValue; - }; - host.readFile = (fileName) => { - const key = toPath3(fileName); - const value = readFileCache.get(key); - if (value !== void 0) return value !== false ? value : void 0; - if (!fileExtensionIs(fileName, ".json" /* Json */) && !isBuildInfoFile(fileName)) { - return originalReadFile.call(host, fileName); - } - return setReadFileCache(key, fileName); - }; - const getSourceFileWithCache = getSourceFile ? (fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) => { - const key = toPath3(fileName); - const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; - const forImpliedNodeFormat = sourceFileCache.get(impliedNodeFormat); - const value = forImpliedNodeFormat == null ? void 0 : forImpliedNodeFormat.get(key); - if (value) return value; - const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile); - if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) { - sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile)); - } - return sourceFile; - } : void 0; - host.fileExists = (fileName) => { - const key = toPath3(fileName); - const value = fileExistsCache.get(key); - if (value !== void 0) return value; - const newValue = originalFileExists.call(host, fileName); - fileExistsCache.set(key, !!newValue); - return newValue; - }; - if (originalWriteFile) { - host.writeFile = (fileName, data, ...rest) => { - const key = toPath3(fileName); - fileExistsCache.delete(key); - const value = readFileCache.get(key); - if (value !== void 0 && value !== data) { - readFileCache.delete(key); - sourceFileCache.forEach((map2) => map2.delete(key)); - } else if (getSourceFileWithCache) { - sourceFileCache.forEach((map2) => { - const sourceFile = map2.get(key); - if (sourceFile && sourceFile.text !== data) { - map2.delete(key); - } - }); - } - originalWriteFile.call(host, fileName, data, ...rest); - }; - } - if (originalDirectoryExists) { - host.directoryExists = (directory) => { - const key = toPath3(directory); - const value = directoryExistsCache.get(key); - if (value !== void 0) return value; - const newValue = originalDirectoryExists.call(host, directory); - directoryExistsCache.set(key, !!newValue); - return newValue; - }; - if (originalCreateDirectory) { - host.createDirectory = (directory) => { - const key = toPath3(directory); - directoryExistsCache.delete(key); - originalCreateDirectory.call(host, directory); - }; - } - } - return { - originalReadFile, - originalFileExists, - originalDirectoryExists, - originalCreateDirectory, - originalWriteFile, - getSourceFileWithCache, - readFileWithCache - }; -} -function formatDiagnostic(diagnostic, host) { - const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())}${host.getNewLine()}`; - if (diagnostic.file) { - const { line, character } = getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start); - const fileName = diagnostic.file.fileName; - const relativeFileName = convertToRelativePath(fileName, host.getCurrentDirectory(), (fileName2) => host.getCanonicalFileName(fileName2)); - return `${relativeFileName}(${line + 1},${character + 1}): ` + errorMessage; - } - return errorMessage; -} -var gutterStyleSequence = "\x1B[7m"; -var gutterSeparator = " "; -var resetEscapeSequence = "\x1B[0m"; -var ellipsis = "..."; -var halfIndent = " "; -var indent = " "; -function getCategoryFormat(category) { - switch (category) { - case 1 /* Error */: - return "\x1B[91m" /* Red */; - case 0 /* Warning */: - return "\x1B[93m" /* Yellow */; - case 2 /* Suggestion */: - return Debug.fail("Should never get an Info diagnostic on the command line."); - case 3 /* Message */: - return "\x1B[94m" /* Blue */; - } -} -function formatColorAndReset(text, formatStyle) { - return formatStyle + text + resetEscapeSequence; -} -function formatCodeSpan(file, start, length2, indent2, squiggleColor, host) { - const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start); - const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file, start + length2); - const lastLineInFile = getLineAndCharacterOfPosition(file, file.text.length).line; - const hasMoreThanFiveLines = lastLine - firstLine >= 4; - let gutterWidth = (lastLine + 1 + "").length; - if (hasMoreThanFiveLines) { - gutterWidth = Math.max(ellipsis.length, gutterWidth); - } - let context = ""; - for (let i = firstLine; i <= lastLine; i++) { - context += host.getNewLine(); - if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) { - context += indent2 + formatColorAndReset(ellipsis.padStart(gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine(); - i = lastLine - 1; - } - const lineStart = getPositionOfLineAndCharacter(file, i, 0); - const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length; - let lineContent = file.text.slice(lineStart, lineEnd); - lineContent = lineContent.trimEnd(); - lineContent = lineContent.replace(/\t/g, " "); - context += indent2 + formatColorAndReset((i + 1 + "").padStart(gutterWidth), gutterStyleSequence) + gutterSeparator; - context += lineContent + host.getNewLine(); - context += indent2 + formatColorAndReset("".padStart(gutterWidth), gutterStyleSequence) + gutterSeparator; - context += squiggleColor; - if (i === firstLine) { - const lastCharForLine = i === lastLine ? lastLineChar : void 0; - context += lineContent.slice(0, firstLineChar).replace(/\S/g, " "); - context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~"); - } else if (i === lastLine) { - context += lineContent.slice(0, lastLineChar).replace(/./g, "~"); - } else { - context += lineContent.replace(/./g, "~"); - } - context += resetEscapeSequence; - } - return context; -} -function formatLocation(file, start, host, color = formatColorAndReset) { - const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start); - const relativeFileName = host ? convertToRelativePath(file.fileName, host.getCurrentDirectory(), (fileName) => host.getCanonicalFileName(fileName)) : file.fileName; - let output = ""; - output += color(relativeFileName, "\x1B[96m" /* Cyan */); - output += ":"; - output += color(`${firstLine + 1}`, "\x1B[93m" /* Yellow */); - output += ":"; - output += color(`${firstLineChar + 1}`, "\x1B[93m" /* Yellow */); - return output; -} -function formatDiagnosticsWithColorAndContext(diagnostics, host) { - let output = ""; - for (const diagnostic of diagnostics) { - if (diagnostic.file) { - const { file, start } = diagnostic; - output += formatLocation(file, start, host); - output += " - "; - } - output += formatColorAndReset(diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category)); - output += formatColorAndReset(` TS${diagnostic.code}: `, "\x1B[90m" /* Grey */); - output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()); - if (diagnostic.file && diagnostic.code !== Diagnostics.File_appears_to_be_binary.code) { - output += host.getNewLine(); - output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, "", getCategoryFormat(diagnostic.category), host); - } - if (diagnostic.relatedInformation) { - output += host.getNewLine(); - for (const { file, start, length: length2, messageText } of diagnostic.relatedInformation) { - if (file) { - output += host.getNewLine(); - output += halfIndent + formatLocation(file, start, host); - output += formatCodeSpan(file, start, length2, indent, "\x1B[96m" /* Cyan */, host); - } - output += host.getNewLine(); - output += indent + flattenDiagnosticMessageText(messageText, host.getNewLine()); - } - } - output += host.getNewLine(); - } - return output; -} -function flattenDiagnosticMessageText(diag2, newLine, indent2 = 0) { - if (isString(diag2)) { - return diag2; - } else if (diag2 === void 0) { - return ""; - } - let result = ""; - if (indent2) { - result += newLine; - for (let i = 0; i < indent2; i++) { - result += " "; - } - } - result += diag2.messageText; - indent2++; - if (diag2.next) { - for (const kid of diag2.next) { - result += flattenDiagnosticMessageText(kid, newLine, indent2); - } - } - return result; -} -function getModeForFileReference(ref, containingFileMode) { - return (isString(ref) ? containingFileMode : ref.resolutionMode) || containingFileMode; -} -function isExclusivelyTypeOnlyImportOrExport(decl) { - var _a; - if (isExportDeclaration(decl)) { - return decl.isTypeOnly; - } - if ((_a = decl.importClause) == null ? void 0 : _a.isTypeOnly) { - return true; - } - return false; -} -function getModeForUsageLocation(file, usage, compilerOptions) { - return getModeForUsageLocationWorker(file, usage, compilerOptions); -} -function getModeForUsageLocationWorker(file, usage, compilerOptions) { - if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent)) { - const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent); - if (isTypeOnly) { - const override = getResolutionModeOverride(usage.parent.attributes); - if (override) { - return override; - } - } - } - if (usage.parent.parent && isImportTypeNode(usage.parent.parent)) { - const override = getResolutionModeOverride(usage.parent.parent.attributes); - if (override) { - return override; - } - } - if (compilerOptions && importSyntaxAffectsModuleResolution(compilerOptions)) { - return getEmitSyntaxForUsageLocationWorker(file, usage, compilerOptions); - } -} -function getEmitSyntaxForUsageLocationWorker(file, usage, compilerOptions) { - var _a; - if (!compilerOptions) { - return void 0; - } - const exprParentParent = (_a = walkUpParenthesizedExpressions(usage.parent)) == null ? void 0 : _a.parent; - if (exprParentParent && isImportEqualsDeclaration(exprParentParent) || isRequireCall( - usage.parent, - /*requireStringLiteralLikeArgument*/ - false - )) { - return 1 /* CommonJS */; - } - if (isImportCall(walkUpParenthesizedExpressions(usage.parent))) { - return shouldTransformImportCallWorker(file, compilerOptions) ? 1 /* CommonJS */ : 99 /* ESNext */; - } - const fileEmitMode = getEmitModuleFormatOfFileWorker(file, compilerOptions); - return fileEmitMode === 1 /* CommonJS */ ? 1 /* CommonJS */ : emitModuleKindIsNonNodeESM(fileEmitMode) || fileEmitMode === 200 /* Preserve */ ? 99 /* ESNext */ : void 0; -} -function getResolutionModeOverride(node, grammarErrorOnNode) { - if (!node) return void 0; - if (length(node.elements) !== 1) { - grammarErrorOnNode == null ? void 0 : grammarErrorOnNode( - node, - node.token === 118 /* WithKeyword */ ? Diagnostics.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require : Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require - ); - return void 0; - } - const elem = node.elements[0]; - if (!isStringLiteralLike(elem.name)) return void 0; - if (elem.name.text !== "resolution-mode") { - grammarErrorOnNode == null ? void 0 : grammarErrorOnNode( - elem.name, - node.token === 118 /* WithKeyword */ ? Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_attributes : Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions - ); - return void 0; - } - if (!isStringLiteralLike(elem.value)) return void 0; - if (elem.value.text !== "import" && elem.value.text !== "require") { - grammarErrorOnNode == null ? void 0 : grammarErrorOnNode(elem.value, Diagnostics.resolution_mode_should_be_either_require_or_import); - return void 0; - } - return elem.value.text === "import" ? 99 /* ESNext */ : 1 /* CommonJS */; -} -var emptyResolution = { - resolvedModule: void 0, - resolvedTypeReferenceDirective: void 0 -}; -function getModuleResolutionName(literal) { - return literal.text; -} -var moduleResolutionNameAndModeGetter = { - getName: getModuleResolutionName, - getMode: (entry, file, compilerOptions) => getModeForUsageLocation(file, entry, compilerOptions) -}; -function createModuleResolutionLoader(containingFile, redirectedReference, options, host, cache) { - return { - nameAndMode: moduleResolutionNameAndModeGetter, - resolve: (moduleName, resolutionMode) => resolveModuleName( - moduleName, - containingFile, - options, - host, - cache, - redirectedReference, - resolutionMode - ) - }; -} -function getTypeReferenceResolutionName(entry) { - return !isString(entry) ? entry.fileName : entry; -} -var typeReferenceResolutionNameAndModeGetter = { - getName: getTypeReferenceResolutionName, - getMode: (entry, file, compilerOptions) => getModeForFileReference(entry, file && getDefaultResolutionModeForFileWorker(file, compilerOptions)) -}; -function createTypeReferenceResolutionLoader(containingFile, redirectedReference, options, host, cache) { - return { - nameAndMode: typeReferenceResolutionNameAndModeGetter, - resolve: (typeRef, resoluionMode) => resolveTypeReferenceDirective( - typeRef, - containingFile, - options, - host, - redirectedReference, - cache, - resoluionMode - ) - }; -} -function loadWithModeAwareCache(entries, containingFile, redirectedReference, options, containingSourceFile, host, resolutionCache, createLoader) { - if (entries.length === 0) return emptyArray; - const resolutions = []; - const cache = /* @__PURE__ */ new Map(); - const loader = createLoader(containingFile, redirectedReference, options, host, resolutionCache); - for (const entry of entries) { - const name = loader.nameAndMode.getName(entry); - const mode = loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options); - const key = createModeAwareCacheKey(name, mode); - let result = cache.get(key); - if (!result) { - cache.set(key, result = loader.resolve(name, mode)); - } - resolutions.push(result); - } - return resolutions; -} -var inferredTypesContainingFile = "__inferred type names__.ts"; -function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) { - const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; - return combinePaths(containingDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); -} -function getLibraryNameFromLibFileName(libFileName) { - const components = libFileName.split("."); - let path = components[1]; - let i = 2; - while (components[i] && components[i] !== "d") { - path += (i === 2 ? "/" : "-") + components[i]; - i++; - } - return "@typescript/lib-" + path; -} -function isReferencedFile(reason) { - switch (reason == null ? void 0 : reason.kind) { - case 3 /* Import */: - case 4 /* ReferenceFile */: - case 5 /* TypeReferenceDirective */: - case 7 /* LibReferenceDirective */: - return true; - default: - return false; - } -} -function isReferenceFileLocation(location) { - return location.pos !== void 0; -} -function getReferencedFileLocation(program, ref) { - var _a, _b, _c, _d; - const file = Debug.checkDefined(program.getSourceFileByPath(ref.file)); - const { kind, index } = ref; - let pos, end, packageId; - switch (kind) { - case 3 /* Import */: - const importLiteral = getModuleNameStringLiteralAt(file, index); - packageId = (_b = (_a = program.getResolvedModuleFromModuleSpecifier(importLiteral, file)) == null ? void 0 : _a.resolvedModule) == null ? void 0 : _b.packageId; - if (importLiteral.pos === -1) return { file, packageId, text: importLiteral.text }; - pos = skipTrivia(file.text, importLiteral.pos); - end = importLiteral.end; - break; - case 4 /* ReferenceFile */: - ({ pos, end } = file.referencedFiles[index]); - break; - case 5 /* TypeReferenceDirective */: - ({ pos, end } = file.typeReferenceDirectives[index]); - packageId = (_d = (_c = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(file.typeReferenceDirectives[index], file)) == null ? void 0 : _c.resolvedTypeReferenceDirective) == null ? void 0 : _d.packageId; - break; - case 7 /* LibReferenceDirective */: - ({ pos, end } = file.libReferenceDirectives[index]); - break; - default: - return Debug.assertNever(kind); - } - return { file, pos, end, packageId }; -} -function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) { - if (!program || (hasChangedAutomaticTypeDirectiveNames == null ? void 0 : hasChangedAutomaticTypeDirectiveNames())) return false; - if (!arrayIsEqualTo(program.getRootFileNames(), rootFileNames)) return false; - let seenResolvedRefs; - if (!arrayIsEqualTo(program.getProjectReferences(), projectReferences, projectReferenceUptoDate)) return false; - if (program.getSourceFiles().some(sourceFileNotUptoDate)) return false; - const missingPaths = program.getMissingFilePaths(); - if (missingPaths && forEachEntry(missingPaths, fileExists)) return false; - const currentOptions = program.getCompilerOptions(); - if (!compareDataObjects(currentOptions, newOptions)) return false; - if (program.resolvedLibReferences && forEachEntry(program.resolvedLibReferences, (_value, libFileName) => hasInvalidatedLibResolutions(libFileName))) return false; - if (currentOptions.configFile && newOptions.configFile) return currentOptions.configFile.text === newOptions.configFile.text; - return true; - function sourceFileNotUptoDate(sourceFile) { - return !sourceFileVersionUptoDate(sourceFile) || hasInvalidatedResolutions(sourceFile.path); - } - function sourceFileVersionUptoDate(sourceFile) { - return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName); - } - function projectReferenceUptoDate(oldRef, newRef, index) { - return projectReferenceIsEqualTo(oldRef, newRef) && resolvedProjectReferenceUptoDate(program.getResolvedProjectReferences()[index], oldRef); - } - function resolvedProjectReferenceUptoDate(oldResolvedRef, oldRef) { - if (oldResolvedRef) { - if (contains(seenResolvedRefs, oldResolvedRef)) return true; - const refPath2 = resolveProjectReferencePath(oldRef); - const newParsedCommandLine = getParsedCommandLine(refPath2); - if (!newParsedCommandLine) return false; - if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile) return false; - if (!arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames)) return false; - (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef); - return !forEach( - oldResolvedRef.references, - (childResolvedRef, index) => !resolvedProjectReferenceUptoDate( - childResolvedRef, - oldResolvedRef.commandLine.projectReferences[index] - ) - ); - } - const refPath = resolveProjectReferencePath(oldRef); - return !getParsedCommandLine(refPath); - } -} -function getConfigFileParsingDiagnostics(configFileParseResult) { - return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors; -} -function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) { - const moduleResolution = getEmitModuleResolutionKind(options); - const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName); - return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0; - function lookupFromPackageJson() { - const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options); - const packageJsonLocations = []; - state.failedLookupLocations = packageJsonLocations; - state.affectingLocations = packageJsonLocations; - const packageJsonScope = getPackageScopeForPath(getDirectoryPath(fileName), state); - const impliedNodeFormat = (packageJsonScope == null ? void 0 : packageJsonScope.contents.packageJsonContent.type) === "module" ? 99 /* ESNext */ : 1 /* CommonJS */; - return { impliedNodeFormat, packageJsonLocations, packageJsonScope }; - } -} -var plainJSErrors = /* @__PURE__ */ new Set([ - // binder errors - Diagnostics.Cannot_redeclare_block_scoped_variable_0.code, - Diagnostics.A_module_cannot_have_multiple_default_exports.code, - Diagnostics.Another_export_default_is_here.code, - Diagnostics.The_first_export_default_is_here.code, - Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code, - Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code, - Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code, - Diagnostics.constructor_is_a_reserved_word.code, - Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code, - Diagnostics.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.code, - Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code, - Diagnostics.Invalid_use_of_0_in_strict_mode.code, - Diagnostics.A_label_is_not_allowed_here.code, - Diagnostics.with_statements_are_not_allowed_in_strict_mode.code, - // grammar errors - Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code, - Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code, - Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code, - Diagnostics.A_class_member_cannot_have_the_0_keyword.code, - Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code, - Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code, - Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, - Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, - Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code, - Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code, - Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code, - Diagnostics.A_destructuring_declaration_must_have_an_initializer.code, - Diagnostics.A_get_accessor_cannot_have_parameters.code, - Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code, - Diagnostics.A_rest_element_cannot_have_a_property_name.code, - Diagnostics.A_rest_element_cannot_have_an_initializer.code, - Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code, - Diagnostics.A_rest_parameter_cannot_have_an_initializer.code, - Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code, - Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code, - Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code, - Diagnostics.A_set_accessor_cannot_have_rest_parameter.code, - Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code, - Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code, - Diagnostics.An_export_declaration_cannot_have_modifiers.code, - Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code, - Diagnostics.An_import_declaration_cannot_have_modifiers.code, - Diagnostics.An_object_member_cannot_be_declared_optional.code, - Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code, - Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code, - Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code, - Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code, - Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code, - Diagnostics.Classes_can_only_extend_a_single_class.code, - Diagnostics.Classes_may_not_have_a_field_named_constructor.code, - Diagnostics.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.code, - Diagnostics.Duplicate_label_0.code, - Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code, - Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, - Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, - Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, - Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, - Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code, - Diagnostics.Jump_target_cannot_cross_function_boundary.code, - Diagnostics.Line_terminator_not_permitted_before_arrow.code, - Diagnostics.Modifiers_cannot_appear_here.code, - Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code, - Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code, - Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code, - Diagnostics.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.code, - Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code, - Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code, - Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code, - Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code, - Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code, - Diagnostics.Trailing_comma_not_allowed.code, - Diagnostics.Variable_declaration_list_cannot_be_empty.code, - Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code, - Diagnostics._0_expected.code, - Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code, - Diagnostics._0_list_cannot_be_empty.code, - Diagnostics._0_modifier_already_seen.code, - Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code, - Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code, - Diagnostics._0_modifier_cannot_appear_on_a_parameter.code, - Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, - Diagnostics._0_modifier_cannot_be_used_here.code, - Diagnostics._0_modifier_must_precede_1_modifier.code, - Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, - Diagnostics._0_declarations_must_be_initialized.code, - Diagnostics.extends_clause_already_seen.code, - Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, - Diagnostics.Class_constructor_may_not_be_a_generator.code, - Diagnostics.Class_constructor_may_not_be_an_accessor.code, - Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, - Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, - Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, - // Type errors - Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code -]); -function shouldProgramCreateNewSourceFiles(program, newOptions) { - if (!program) return false; - return optionsHaveChanges(program.getCompilerOptions(), newOptions, sourceFileAffectingCompilerOptions); -} -function createCreateProgramOptions(rootNames, options, host, oldProgram, configFileParsingDiagnostics, typeScriptVersion2) { - return { - rootNames, - options, - host, - oldProgram, - configFileParsingDiagnostics, - typeScriptVersion: typeScriptVersion2 - }; -} -function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; - let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions; - const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2, host: createProgramOptionsHost } = _createProgramOptions; - let { oldProgram } = _createProgramOptions; - _createProgramOptions = void 0; - _rootNamesOrOptions = void 0; - for (const option of commandLineOptionOfCustomType) { - if (hasProperty(options, option.name)) { - if (typeof options[option.name] === "string") { - throw new Error(`${option.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`); - } - } - } - const reportInvalidIgnoreDeprecations = memoize(() => createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations)); - let processingDefaultLibFiles; - let processingOtherFiles; - let files; - let symlinks; - let typeChecker; - let classifiableNames; - let filesWithReferencesProcessed; - let cachedBindAndCheckDiagnosticsForFile; - let cachedDeclarationDiagnosticsForFile; - const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax); - let automaticTypeDirectiveNames; - let automaticTypeDirectiveResolutions; - let resolvedLibReferences; - let resolvedLibProcessing; - let resolvedModules; - let resolvedModulesProcessing; - let resolvedTypeReferenceDirectiveNames; - let resolvedTypeReferenceDirectiveNamesProcessing; - let packageMap; - const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0; - let currentNodeModulesDepth = 0; - const modulesWithElidedImports = /* @__PURE__ */ new Map(); - const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map(); - (_a = tracing) == null ? void 0 : _a.push( - tracing.Phase.Program, - "createProgram", - { configFilePath: options.configFilePath, rootDir: options.rootDir }, - /*separateBeginAndEnd*/ - true - ); - mark("beforeProgram"); - const host = createProgramOptionsHost || createCompilerHost(options); - const configParsingHost = parseConfigHostFromCompilerHostLike(host); - let skipDefaultLib = options.noLib; - const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options)); - const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName()); - let skipVerifyCompilerOptions = false; - const currentDirectory = host.getCurrentDirectory(); - const supportedExtensions = getSupportedExtensions(options); - const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions); - const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map(); - let _compilerOptionsObjectLiteralSyntax; - let _compilerOptionsPropertySyntax; - let moduleResolutionCache; - let actualResolveModuleNamesWorker; - const hasInvalidatedResolutions = host.hasInvalidatedResolutions || returnFalse; - if (host.resolveModuleNameLiterals) { - actualResolveModuleNamesWorker = host.resolveModuleNameLiterals.bind(host); - moduleResolutionCache = (_b = host.getModuleResolutionCache) == null ? void 0 : _b.call(host); - } else if (host.resolveModuleNames) { - actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile, reusedNames) => host.resolveModuleNames( - moduleNames.map(getModuleResolutionName), - containingFile, - reusedNames == null ? void 0 : reusedNames.map(getModuleResolutionName), - redirectedReference, - options2, - containingSourceFile - ).map( - (resolved) => resolved ? resolved.extension !== void 0 ? { resolvedModule: resolved } : ( - // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName. - { resolvedModule: { ...resolved, extension: extensionFromPath(resolved.resolvedFileName) } } - ) : emptyResolution - ); - moduleResolutionCache = (_c = host.getModuleResolutionCache) == null ? void 0 : _c.call(host); - } else { - moduleResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options); - actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( - moduleNames, - containingFile, - redirectedReference, - options2, - containingSourceFile, - host, - moduleResolutionCache, - createModuleResolutionLoader - ); - } - let actualResolveTypeReferenceDirectiveNamesWorker; - if (host.resolveTypeReferenceDirectiveReferences) { - actualResolveTypeReferenceDirectiveNamesWorker = host.resolveTypeReferenceDirectiveReferences.bind(host); - } else if (host.resolveTypeReferenceDirectives) { - actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => host.resolveTypeReferenceDirectives( - typeDirectiveNames.map(getTypeReferenceResolutionName), - containingFile, - redirectedReference, - options2, - containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat - ).map((resolvedTypeReferenceDirective) => ({ resolvedTypeReferenceDirective })); - } else { - const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( - currentDirectory, - getCanonicalFileName, - /*options*/ - void 0, - moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), - moduleResolutionCache == null ? void 0 : moduleResolutionCache.optionsToRedirectsKey - ); - actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( - typeDirectiveNames, - containingFile, - redirectedReference, - options2, - containingSourceFile, - host, - typeReferenceDirectiveResolutionCache, - createTypeReferenceResolutionLoader - ); - } - const hasInvalidatedLibResolutions = host.hasInvalidatedLibResolutions || returnFalse; - let actualResolveLibrary; - if (host.resolveLibrary) { - actualResolveLibrary = host.resolveLibrary.bind(host); - } else { - const libraryResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache()); - actualResolveLibrary = (libraryName, resolveFrom, options2) => resolveLibrary(libraryName, resolveFrom, options2, host, libraryResolutionCache); - } - const packageIdToSourceFile = /* @__PURE__ */ new Map(); - let sourceFileToPackageName = /* @__PURE__ */ new Map(); - let redirectTargetsMap = createMultiMap(); - let usesUriStyleNodeCoreModules; - const filesByName = /* @__PURE__ */ new Map(); - let missingFileNames = /* @__PURE__ */ new Map(); - const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0; - let resolvedProjectReferences; - let projectReferenceRedirects; - let mapFromFileToProjectReferenceRedirects; - let mapFromToProjectReferenceRedirectSource; - const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect; - const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({ - compilerHost: host, - getSymlinkCache, - useSourceOfProjectReferenceRedirect, - toPath: toPath3, - getResolvedProjectReferences, - getSourceOfProjectReferenceRedirect, - forEachResolvedProjectReference: forEachResolvedProjectReference2 - }); - const readFile = host.readFile.bind(host); - (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram }); - const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); - (_f = tracing) == null ? void 0 : _f.pop(); - let structureIsReused; - (_g = tracing) == null ? void 0 : _g.push(tracing.Phase.Program, "tryReuseStructureFromOldProgram", {}); - structureIsReused = tryReuseStructureFromOldProgram(); - (_h = tracing) == null ? void 0 : _h.pop(); - if (structureIsReused !== 2 /* Completely */) { - processingDefaultLibFiles = []; - processingOtherFiles = []; - if (projectReferences) { - if (!resolvedProjectReferences) { - resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); - } - if (rootNames.length) { - resolvedProjectReferences == null ? void 0 : resolvedProjectReferences.forEach((parsedRef, index) => { - if (!parsedRef) return; - const out = parsedRef.commandLine.options.outFile; - if (useSourceOfProjectReferenceRedirect) { - if (out || getEmitModuleKind(parsedRef.commandLine.options) === 0 /* None */) { - for (const fileName of parsedRef.commandLine.fileNames) { - processProjectReferenceFile(fileName, { kind: 1 /* SourceFromProjectReference */, index }); - } - } - } else { - if (out) { - processProjectReferenceFile(changeExtension(out, ".d.ts"), { kind: 2 /* OutputFromProjectReference */, index }); - } else if (getEmitModuleKind(parsedRef.commandLine.options) === 0 /* None */) { - const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(parsedRef.commandLine, !host.useCaseSensitiveFileNames())); - for (const fileName of parsedRef.commandLine.fileNames) { - if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) { - processProjectReferenceFile(getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3), { kind: 2 /* OutputFromProjectReference */, index }); - } - } - } - } - }); - } - } - (_i = tracing) == null ? void 0 : _i.push(tracing.Phase.Program, "processRootFiles", { count: rootNames.length }); - forEach(rootNames, (name, index) => processRootFile( - name, - /*isDefaultLib*/ - false, - /*ignoreNoDefaultLib*/ - false, - { kind: 0 /* RootFile */, index } - )); - (_j = tracing) == null ? void 0 : _j.pop(); - automaticTypeDirectiveNames ?? (automaticTypeDirectiveNames = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray); - automaticTypeDirectiveResolutions = createModeAwareCache(); - if (automaticTypeDirectiveNames.length) { - (_k = tracing) == null ? void 0 : _k.push(tracing.Phase.Program, "processTypeReferences", { count: automaticTypeDirectiveNames.length }); - const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; - const containingFilename = combinePaths(containingDirectory, inferredTypesContainingFile); - const resolutions = resolveTypeReferenceDirectiveNamesReusingOldState(automaticTypeDirectiveNames, containingFilename); - for (let i = 0; i < automaticTypeDirectiveNames.length; i++) { - automaticTypeDirectiveResolutions.set( - automaticTypeDirectiveNames[i], - /*mode*/ - void 0, - resolutions[i] - ); - processTypeReferenceDirective( - automaticTypeDirectiveNames[i], - /*mode*/ - void 0, - resolutions[i], - { - kind: 8 /* AutomaticTypeDirectiveFile */, - typeReference: automaticTypeDirectiveNames[i], - packageId: (_m = (_l = resolutions[i]) == null ? void 0 : _l.resolvedTypeReferenceDirective) == null ? void 0 : _m.packageId - } - ); - } - (_n = tracing) == null ? void 0 : _n.pop(); - } - if (rootNames.length && !skipDefaultLib) { - const defaultLibraryFileName = getDefaultLibraryFileName(); - if (!options.lib && defaultLibraryFileName) { - processRootFile( - defaultLibraryFileName, - /*isDefaultLib*/ - true, - /*ignoreNoDefaultLib*/ - false, - { kind: 6 /* LibFile */ } - ); - } else { - forEach(options.lib, (libFileName, index) => { - processRootFile( - pathForLibFile(libFileName), - /*isDefaultLib*/ - true, - /*ignoreNoDefaultLib*/ - false, - { kind: 6 /* LibFile */, index } - ); - }); - } - } - files = toSorted(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); - processingDefaultLibFiles = void 0; - processingOtherFiles = void 0; - filesWithReferencesProcessed = void 0; - } - if (oldProgram && host.onReleaseOldSourceFile) { - const oldSourceFiles = oldProgram.getSourceFiles(); - for (const oldSourceFile of oldSourceFiles) { - const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); - if (shouldCreateNewSourceFile || !newFile || newFile.impliedNodeFormat !== oldSourceFile.impliedNodeFormat || // old file wasn't redirect but new file is - oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path) { - host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path), newFile); - } - } - if (!host.getParsedCommandLine) { - oldProgram.forEachResolvedProjectReference((resolvedProjectReference) => { - if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { - host.onReleaseOldSourceFile( - resolvedProjectReference.sourceFile, - oldProgram.getCompilerOptions(), - /*hasSourceFileByPath*/ - false, - /*newSourceFileByResolvedPath*/ - void 0 - ); - } - }); - } - } - if (oldProgram && host.onReleaseParsedCommandLine) { - forEachProjectReference( - oldProgram.getProjectReferences(), - oldProgram.getResolvedProjectReferences(), - (oldResolvedRef, parent, index) => { - const oldReference = (parent == null ? void 0 : parent.commandLine.projectReferences[index]) || oldProgram.getProjectReferences()[index]; - const oldRefPath = resolveProjectReferencePath(oldReference); - if (!(projectReferenceRedirects == null ? void 0 : projectReferenceRedirects.has(toPath3(oldRefPath)))) { - host.onReleaseParsedCommandLine(oldRefPath, oldResolvedRef, oldProgram.getCompilerOptions()); - } - } - ); - } - oldProgram = void 0; - resolvedLibProcessing = void 0; - resolvedModulesProcessing = void 0; - resolvedTypeReferenceDirectiveNamesProcessing = void 0; - const program = { - getRootFileNames: () => rootNames, - getSourceFile, - getSourceFileByPath, - getSourceFiles: () => files, - getMissingFilePaths: () => missingFileNames, - getModuleResolutionCache: () => moduleResolutionCache, - getFilesByNameMap: () => filesByName, - getCompilerOptions: () => options, - getSyntacticDiagnostics, - getOptionsDiagnostics, - getGlobalDiagnostics, - getSemanticDiagnostics, - getCachedSemanticDiagnostics, - getSuggestionDiagnostics, - getDeclarationDiagnostics: getDeclarationDiagnostics2, - getBindAndCheckDiagnostics, - getProgramDiagnostics, - getTypeChecker, - getClassifiableNames, - getCommonSourceDirectory: getCommonSourceDirectory2, - emit, - getCurrentDirectory: () => currentDirectory, - getNodeCount: () => getTypeChecker().getNodeCount(), - getIdentifierCount: () => getTypeChecker().getIdentifierCount(), - getSymbolCount: () => getTypeChecker().getSymbolCount(), - getTypeCount: () => getTypeChecker().getTypeCount(), - getInstantiationCount: () => getTypeChecker().getInstantiationCount(), - getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(), - getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(), - getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames, - getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions, - isSourceFileFromExternalLibrary, - isSourceFileDefaultLibrary, - getModeForUsageLocation: getModeForUsageLocation2, - getEmitSyntaxForUsageLocation, - getModeForResolutionAtIndex, - getSourceFileFromReference, - getLibFileFromReference, - sourceFileToPackageName, - redirectTargetsMap, - usesUriStyleNodeCoreModules, - resolvedModules, - resolvedTypeReferenceDirectiveNames, - resolvedLibReferences, - getProgramDiagnosticsContainer: () => programDiagnostics, - getResolvedModule, - getResolvedModuleFromModuleSpecifier, - getResolvedTypeReferenceDirective, - getResolvedTypeReferenceDirectiveFromTypeReferenceDirective, - forEachResolvedModule, - forEachResolvedTypeReferenceDirective, - getCurrentPackagesMap: () => packageMap, - typesPackageExists, - packageBundlesTypes, - isEmittedFile, - getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics2, - getProjectReferences, - getResolvedProjectReferences, - getProjectReferenceRedirect, - getResolvedProjectReferenceToRedirect, - getResolvedProjectReferenceByPath, - forEachResolvedProjectReference: forEachResolvedProjectReference2, - isSourceOfProjectReferenceRedirect, - getRedirectReferenceForResolutionFromSourceOfProject, - getCompilerOptionsForFile, - getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2, - getEmitModuleFormatOfFile, - getImpliedNodeFormatForEmit, - shouldTransformImportCall, - emitBuildInfo, - fileExists, - readFile, - directoryExists, - getSymlinkCache, - realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host), - useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), - getCanonicalFileName, - getFileIncludeReasons: () => programDiagnostics.getFileReasons(), - structureIsReused, - writeFile: writeFile2, - getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation) - }; - onProgramCreateComplete(); - if (!skipVerifyCompilerOptions) { - verifyCompilerOptions(); - } - mark("afterProgram"); - measure("Program", "beforeProgram", "afterProgram"); - (_p = tracing) == null ? void 0 : _p.pop(); - return program; - function getResolvedModule(file, moduleName, mode) { - var _a2; - return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode); - } - function getResolvedModuleFromModuleSpecifier(moduleSpecifier, sourceFile) { - sourceFile ?? (sourceFile = getSourceFileOfNode(moduleSpecifier)); - Debug.assertIsDefined(sourceFile, "`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."); - return getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation2(sourceFile, moduleSpecifier)); - } - function getResolvedTypeReferenceDirective(file, typeDirectiveName, mode) { - var _a2; - return (_a2 = resolvedTypeReferenceDirectiveNames == null ? void 0 : resolvedTypeReferenceDirectiveNames.get(file.path)) == null ? void 0 : _a2.get(typeDirectiveName, mode); - } - function getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeRef, sourceFile) { - return getResolvedTypeReferenceDirective( - sourceFile, - typeRef.fileName, - getModeForTypeReferenceDirectiveInFile(typeRef, sourceFile) - ); - } - function forEachResolvedModule(callback, file) { - forEachResolution(resolvedModules, callback, file); - } - function forEachResolvedTypeReferenceDirective(callback, file) { - forEachResolution(resolvedTypeReferenceDirectiveNames, callback, file); - } - function forEachResolution(resolutionCache, callback, file) { - var _a2; - if (file) (_a2 = resolutionCache == null ? void 0 : resolutionCache.get(file.path)) == null ? void 0 : _a2.forEach((resolution, name, mode) => callback(resolution, name, mode, file.path)); - else resolutionCache == null ? void 0 : resolutionCache.forEach((resolutions, filePath) => resolutions.forEach((resolution, name, mode) => callback(resolution, name, mode, filePath))); - } - function getPackagesMap() { - if (packageMap) return packageMap; - packageMap = /* @__PURE__ */ new Map(); - forEachResolvedModule(({ resolvedModule }) => { - if (resolvedModule == null ? void 0 : resolvedModule.packageId) packageMap.set(resolvedModule.packageId.name, resolvedModule.extension === ".d.ts" /* Dts */ || !!packageMap.get(resolvedModule.packageId.name)); - }); - return packageMap; - } - function typesPackageExists(packageName) { - return getPackagesMap().has(getTypesPackageName(packageName)); - } - function packageBundlesTypes(packageName) { - return !!getPackagesMap().get(packageName); - } - function addResolutionDiagnostics(resolution) { - var _a2; - if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return; - programDiagnostics.addFileProcessingDiagnostic({ - kind: 2 /* ResolutionDiagnostics */, - diagnostics: resolution.resolutionDiagnostics - }); - } - function addResolutionDiagnosticsFromResolutionOrCache(containingFile, name, resolution, mode) { - if (host.resolveModuleNameLiterals || !host.resolveModuleNames) return addResolutionDiagnostics(resolution); - if (!moduleResolutionCache || isExternalModuleNameRelative(name)) return; - const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); - const containingDir = getDirectoryPath(containingFileName); - const redirectedReference = getRedirectReferenceForResolution(containingFile); - const fromCache = moduleResolutionCache.getFromNonRelativeNameCache(name, mode, containingDir, redirectedReference); - if (fromCache) addResolutionDiagnostics(fromCache); - } - function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) { - var _a2, _b2; - const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); - const redirectedReference = getRedirectReferenceForResolution(containingFile); - (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveModuleNamesWorker", { containingFileName }); - mark("beforeResolveModule"); - const result = actualResolveModuleNamesWorker( - moduleNames, - containingFileName, - redirectedReference, - options, - containingFile, - reusedNames - ); - mark("afterResolveModule"); - measure("ResolveModule", "beforeResolveModule", "afterResolveModule"); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - return result; - } - function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile, reusedNames) { - var _a2, _b2; - const containingSourceFile = !isString(containingFile) ? containingFile : void 0; - const containingFileName = !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile; - const redirectedReference = containingSourceFile && getRedirectReferenceForResolution(containingSourceFile); - (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveTypeReferenceDirectiveNamesWorker", { containingFileName }); - mark("beforeResolveTypeReference"); - const result = actualResolveTypeReferenceDirectiveNamesWorker( - typeDirectiveNames, - containingFileName, - redirectedReference, - options, - containingSourceFile, - reusedNames - ); - mark("afterResolveTypeReference"); - measure("ResolveTypeReference", "beforeResolveTypeReference", "afterResolveTypeReference"); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - return result; - } - function getRedirectReferenceForResolution(file) { - const redirect = getResolvedProjectReferenceToRedirect(file.originalFileName); - if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect; - const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path); - if (resultFromDts) return resultFromDts; - if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0; - const realDeclarationPath = toPath3(host.realpath(file.originalFileName)); - return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath); - } - function getRedirectReferenceForResolutionFromSourceOfProject(filePath) { - const source = getSourceOfProjectReferenceRedirect(filePath); - if (isString(source)) return getResolvedProjectReferenceToRedirect(source); - if (!source) return void 0; - return forEachResolvedProjectReference2((resolvedRef) => { - const out = resolvedRef.commandLine.options.outFile; - if (!out) return void 0; - return toPath3(out) === filePath ? resolvedRef : void 0; - }); - } - function compareDefaultLibFiles(a, b) { - return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b)); - } - function getDefaultLibFilePriority(a) { - if (containsPath( - defaultLibraryPath, - a.fileName, - /*ignoreCase*/ - false - )) { - const basename = getBaseFileName(a.fileName); - if (basename === "lib.d.ts" || basename === "lib.es6.d.ts") return 0; - const name = removeSuffix(removePrefix(basename, "lib."), ".d.ts"); - const index = libs.indexOf(name); - if (index !== -1) return index + 1; - } - return libs.length + 2; - } - function toPath3(fileName) { - return toPath(fileName, currentDirectory, getCanonicalFileName); - } - function getCommonSourceDirectory2() { - let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory(); - if (commonSourceDirectory !== void 0) { - return commonSourceDirectory; - } - const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program)); - commonSourceDirectory = getCommonSourceDirectory( - options, - () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName), - currentDirectory, - getCanonicalFileName, - (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2) - ); - programDiagnostics.setCommonSourceDirectory(commonSourceDirectory); - return commonSourceDirectory; - } - function getClassifiableNames() { - var _a2; - if (!classifiableNames) { - getTypeChecker(); - classifiableNames = /* @__PURE__ */ new Set(); - for (const sourceFile of files) { - (_a2 = sourceFile.classifiableNames) == null ? void 0 : _a2.forEach((value) => classifiableNames.add(value)); - } - } - return classifiableNames; - } - function resolveModuleNamesReusingOldState(moduleNames, containingFile) { - return resolveNamesReusingOldState({ - entries: moduleNames, - containingFile, - containingSourceFile: containingFile, - redirectedReference: getRedirectReferenceForResolution(containingFile), - nameAndModeGetter: moduleResolutionNameAndModeGetter, - resolutionWorker: resolveModuleNamesWorker, - getResolutionFromOldProgram: (name, mode) => oldProgram == null ? void 0 : oldProgram.getResolvedModule(containingFile, name, mode), - getResolved: getResolvedModuleFromResolution, - canReuseResolutionsInFile: () => containingFile === (oldProgram == null ? void 0 : oldProgram.getSourceFile(containingFile.fileName)) && !hasInvalidatedResolutions(containingFile.path), - resolveToOwnAmbientModule: true - }); - } - function resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectiveNames, containingFile) { - const containingSourceFile = !isString(containingFile) ? containingFile : void 0; - return resolveNamesReusingOldState({ - entries: typeDirectiveNames, - containingFile, - containingSourceFile, - redirectedReference: containingSourceFile && getRedirectReferenceForResolution(containingSourceFile), - nameAndModeGetter: typeReferenceResolutionNameAndModeGetter, - resolutionWorker: resolveTypeReferenceDirectiveNamesWorker, - getResolutionFromOldProgram: (name, mode) => { - var _a2; - return containingSourceFile ? oldProgram == null ? void 0 : oldProgram.getResolvedTypeReferenceDirective(containingSourceFile, name, mode) : (_a2 = oldProgram == null ? void 0 : oldProgram.getAutomaticTypeDirectiveResolutions()) == null ? void 0 : _a2.get(name, mode); - }, - getResolved: getResolvedTypeReferenceDirectiveFromResolution, - canReuseResolutionsInFile: () => containingSourceFile ? containingSourceFile === (oldProgram == null ? void 0 : oldProgram.getSourceFile(containingSourceFile.fileName)) && !hasInvalidatedResolutions(containingSourceFile.path) : !hasInvalidatedResolutions(toPath3(containingFile)) - }); - } - function resolveNamesReusingOldState({ - entries, - containingFile, - containingSourceFile, - redirectedReference, - nameAndModeGetter, - resolutionWorker, - getResolutionFromOldProgram, - getResolved, - canReuseResolutionsInFile, - resolveToOwnAmbientModule - }) { - if (!entries.length) return emptyArray; - if (structureIsReused === 0 /* Not */ && (!resolveToOwnAmbientModule || !containingSourceFile.ambientModuleNames.length)) { - return resolutionWorker( - entries, - containingFile, - /*reusedNames*/ - void 0 - ); - } - let unknownEntries; - let unknownEntryIndices; - let result; - let reusedNames; - const reuseResolutions = canReuseResolutionsInFile(); - for (let i = 0; i < entries.length; i++) { - const entry = entries[i]; - if (reuseResolutions) { - const name = nameAndModeGetter.getName(entry); - const mode = nameAndModeGetter.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) ?? options); - const oldResolution = getResolutionFromOldProgram(name, mode); - const oldResolved = oldResolution && getResolved(oldResolution); - if (oldResolved) { - if (isTraceEnabled(options, host)) { - trace( - host, - resolutionWorker === resolveModuleNamesWorker ? oldResolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : oldResolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2, - name, - containingSourceFile ? getNormalizedAbsolutePath(containingSourceFile.originalFileName, currentDirectory) : containingFile, - oldResolved.resolvedFileName, - oldResolved.packageId && packageIdToString(oldResolved.packageId) - ); - } - (result ?? (result = new Array(entries.length)))[i] = oldResolution; - (reusedNames ?? (reusedNames = [])).push(entry); - continue; - } - } - if (resolveToOwnAmbientModule) { - const name = nameAndModeGetter.getName(entry); - if (contains(containingSourceFile.ambientModuleNames, name)) { - if (isTraceEnabled(options, host)) { - trace( - host, - Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, - name, - getNormalizedAbsolutePath(containingSourceFile.originalFileName, currentDirectory) - ); - } - (result ?? (result = new Array(entries.length)))[i] = emptyResolution; - continue; - } - } - (unknownEntries ?? (unknownEntries = [])).push(entry); - (unknownEntryIndices ?? (unknownEntryIndices = [])).push(i); - } - if (!unknownEntries) return result; - const resolutions = resolutionWorker(unknownEntries, containingFile, reusedNames); - if (!result) return resolutions; - resolutions.forEach((resolution, index) => result[unknownEntryIndices[index]] = resolution); - return result; - } - function canReuseProjectReferences() { - return !forEachProjectReference( - oldProgram.getProjectReferences(), - oldProgram.getResolvedProjectReferences(), - (oldResolvedRef, parent, index) => { - const newRef = (parent ? parent.commandLine.projectReferences : projectReferences)[index]; - const newResolvedRef = parseProjectReferenceConfigFile(newRef); - if (oldResolvedRef) { - return !newResolvedRef || newResolvedRef.sourceFile !== oldResolvedRef.sourceFile || !arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames); - } else { - return newResolvedRef !== void 0; - } - }, - (oldProjectReferences, parent) => { - const newReferences = parent ? getResolvedProjectReferenceByPath(parent.sourceFile.path).commandLine.projectReferences : projectReferences; - return !arrayIsEqualTo(oldProjectReferences, newReferences, projectReferenceIsEqualTo); - } - ); - } - function tryReuseStructureFromOldProgram() { - var _a2; - if (!oldProgram) { - return 0 /* Not */; - } - const oldOptions = oldProgram.getCompilerOptions(); - if (changesAffectModuleResolution(oldOptions, options)) { - return 0 /* Not */; - } - const oldRootNames = oldProgram.getRootFileNames(); - if (!arrayIsEqualTo(oldRootNames, rootNames)) { - return 0 /* Not */; - } - if (!canReuseProjectReferences()) { - return 0 /* Not */; - } - if (projectReferences) { - resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); - } - const newSourceFiles = []; - const modifiedSourceFiles = []; - structureIsReused = 2 /* Completely */; - if (forEachEntry(oldProgram.getMissingFilePaths(), (missingFileName) => host.fileExists(missingFileName))) { - return 0 /* Not */; - } - const oldSourceFiles = oldProgram.getSourceFiles(); - let SeenPackageName; - ((SeenPackageName2) => { - SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists"; - SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified"; - })(SeenPackageName || (SeenPackageName = {})); - const seenPackageNames = /* @__PURE__ */ new Map(); - for (const oldSourceFile of oldSourceFiles) { - const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options); - let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath( - oldSourceFile.fileName, - oldSourceFile.resolvedPath, - sourceFileOptions, - /*onError*/ - void 0, - shouldCreateNewSourceFile - ) : host.getSourceFile( - oldSourceFile.fileName, - sourceFileOptions, - /*onError*/ - void 0, - shouldCreateNewSourceFile - ); - if (!newSourceFile) { - return 0 /* Not */; - } - newSourceFile.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; - newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope; - Debug.assert(!newSourceFile.redirectInfo, "Host should not return a redirect source file from `getSourceFile`"); - let fileChanged; - if (oldSourceFile.redirectInfo) { - if (newSourceFile !== oldSourceFile.redirectInfo.unredirected) { - return 0 /* Not */; - } - fileChanged = false; - newSourceFile = oldSourceFile; - } else if (oldProgram.redirectTargetsMap.has(oldSourceFile.path)) { - if (newSourceFile !== oldSourceFile) { - return 0 /* Not */; - } - fileChanged = false; - } else { - fileChanged = newSourceFile !== oldSourceFile; - } - newSourceFile.path = oldSourceFile.path; - newSourceFile.originalFileName = oldSourceFile.originalFileName; - newSourceFile.resolvedPath = oldSourceFile.resolvedPath; - newSourceFile.fileName = oldSourceFile.fileName; - const packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path); - if (packageName !== void 0) { - const prevKind = seenPackageNames.get(packageName); - const newKind = fileChanged ? 1 /* Modified */ : 0 /* Exists */; - if (prevKind !== void 0 && newKind === 1 /* Modified */ || prevKind === 1 /* Modified */) { - return 0 /* Not */; - } - seenPackageNames.set(packageName, newKind); - } - if (fileChanged) { - if (oldSourceFile.impliedNodeFormat !== newSourceFile.impliedNodeFormat) { - structureIsReused = 1 /* SafeModules */; - } else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) { - structureIsReused = 1 /* SafeModules */; - } else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) { - structureIsReused = 1 /* SafeModules */; - } else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) { - structureIsReused = 1 /* SafeModules */; - } else { - collectExternalModuleReferences(newSourceFile); - if (!arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) { - structureIsReused = 1 /* SafeModules */; - } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { - structureIsReused = 1 /* SafeModules */; - } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { - structureIsReused = 1 /* SafeModules */; - } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { - structureIsReused = 1 /* SafeModules */; - } - } - modifiedSourceFiles.push(newSourceFile); - } else if (hasInvalidatedResolutions(oldSourceFile.path)) { - structureIsReused = 1 /* SafeModules */; - modifiedSourceFiles.push(newSourceFile); - } - newSourceFiles.push(newSourceFile); - } - if (structureIsReused !== 2 /* Completely */) { - return structureIsReused; - } - for (const newSourceFile of modifiedSourceFiles) { - const moduleNames = getModuleNames(newSourceFile); - const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile); - (resolvedModulesProcessing ?? (resolvedModulesProcessing = /* @__PURE__ */ new Map())).set(newSourceFile.path, resolutions); - const optionsForFile = getCompilerOptionsForFile(newSourceFile); - const resolutionsChanged = hasChangesInResolutions( - moduleNames, - resolutions, - (name) => oldProgram.getResolvedModule(newSourceFile, name.text, getModeForUsageLocationWorker(newSourceFile, name, optionsForFile)), - moduleResolutionIsEqualTo - ); - if (resolutionsChanged) structureIsReused = 1 /* SafeModules */; - const typesReferenceDirectives = newSourceFile.typeReferenceDirectives; - const typeReferenceResolutions = resolveTypeReferenceDirectiveNamesReusingOldState(typesReferenceDirectives, newSourceFile); - (resolvedTypeReferenceDirectiveNamesProcessing ?? (resolvedTypeReferenceDirectiveNamesProcessing = /* @__PURE__ */ new Map())).set(newSourceFile.path, typeReferenceResolutions); - const typeReferenceResolutionsChanged = hasChangesInResolutions( - typesReferenceDirectives, - typeReferenceResolutions, - (name) => oldProgram.getResolvedTypeReferenceDirective( - newSourceFile, - getTypeReferenceResolutionName(name), - getModeForTypeReferenceDirectiveInFile(name, newSourceFile) - ), - typeDirectiveIsEqualTo - ); - if (typeReferenceResolutionsChanged) structureIsReused = 1 /* SafeModules */; - } - if (structureIsReused !== 2 /* Completely */) { - return structureIsReused; - } - if (changesAffectingProgramStructure(oldOptions, options)) { - return 1 /* SafeModules */; - } - if (oldProgram.resolvedLibReferences && forEachEntry(oldProgram.resolvedLibReferences, (resolution, libFileName) => pathForLibFileWorker(libFileName).actual !== resolution.actual)) { - return 1 /* SafeModules */; - } - if (host.hasChangedAutomaticTypeDirectiveNames) { - if (host.hasChangedAutomaticTypeDirectiveNames()) return 1 /* SafeModules */; - } else { - automaticTypeDirectiveNames = getAutomaticTypeDirectiveNames(options, host); - if (!arrayIsEqualTo(oldProgram.getAutomaticTypeDirectiveNames(), automaticTypeDirectiveNames)) return 1 /* SafeModules */; - } - missingFileNames = oldProgram.getMissingFilePaths(); - Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length); - for (const newSourceFile of newSourceFiles) { - filesByName.set(newSourceFile.path, newSourceFile); - } - const oldFilesByNameMap = oldProgram.getFilesByNameMap(); - oldFilesByNameMap.forEach((oldFile, path) => { - if (!oldFile) { - filesByName.set(path, oldFile); - return; - } - if (oldFile.path === path) { - if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) { - sourceFilesFoundSearchingNodeModules.set(oldFile.path, true); - } - return; - } - filesByName.set(path, filesByName.get(oldFile.path)); - }); - const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations); - programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical); - skipVerifyCompilerOptions = isConfigIdentical; - files = newSourceFiles; - automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames(); - automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions(); - sourceFileToPackageName = oldProgram.sourceFileToPackageName; - redirectTargetsMap = oldProgram.redirectTargetsMap; - usesUriStyleNodeCoreModules = oldProgram.usesUriStyleNodeCoreModules; - resolvedModules = oldProgram.resolvedModules; - resolvedTypeReferenceDirectiveNames = oldProgram.resolvedTypeReferenceDirectiveNames; - resolvedLibReferences = oldProgram.resolvedLibReferences; - packageMap = oldProgram.getCurrentPackagesMap(); - return 2 /* Completely */; - } - function getEmitHost(writeFileCallback) { - return { - getCanonicalFileName, - getCommonSourceDirectory: program.getCommonSourceDirectory, - getCompilerOptions: program.getCompilerOptions, - getCurrentDirectory: () => currentDirectory, - getSourceFile: program.getSourceFile, - getSourceFileByPath: program.getSourceFileByPath, - getSourceFiles: program.getSourceFiles, - isSourceFileFromExternalLibrary, - getResolvedProjectReferenceToRedirect, - getProjectReferenceRedirect, - isSourceOfProjectReferenceRedirect, - getSymlinkCache, - writeFile: writeFileCallback || writeFile2, - isEmitBlocked, - shouldTransformImportCall, - getEmitModuleFormatOfFile, - getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2, - getModeForResolutionAtIndex, - readFile: (f) => host.readFile(f), - fileExists: (f) => { - const path = toPath3(f); - if (getSourceFileByPath(path)) return true; - if (missingFileNames.has(path)) return false; - return host.fileExists(f); - }, - realpath: maybeBind(host, host.realpath), - useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), - getBuildInfo: () => { - var _a2; - return (_a2 = program.getBuildInfo) == null ? void 0 : _a2.call(program); - }, - getSourceFileFromReference: (file, ref) => program.getSourceFileFromReference(file, ref), - redirectTargetsMap, - getFileIncludeReasons: program.getFileIncludeReasons, - createHash: maybeBind(host, host.createHash), - getModuleResolutionCache: () => program.getModuleResolutionCache(), - trace: maybeBind(host, host.trace), - getGlobalTypingsCacheLocation: program.getGlobalTypingsCacheLocation - }; - } - function writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data) { - host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); - } - function emitBuildInfo(writeFileCallback) { - var _a2, _b2; - (_a2 = tracing) == null ? void 0 : _a2.push( - tracing.Phase.Emit, - "emitBuildInfo", - {}, - /*separateBeginAndEnd*/ - true - ); - mark("beforeEmit"); - const emitResult = emitFiles( - notImplementedResolver, - getEmitHost(writeFileCallback), - /*targetSourceFile*/ - void 0, - /*transformers*/ - noTransformers, - /*emitOnly*/ - false, - /*onlyBuildInfo*/ - true - ); - mark("afterEmit"); - measure("Emit", "beforeEmit", "afterEmit"); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - return emitResult; - } - function getResolvedProjectReferences() { - return resolvedProjectReferences; - } - function getProjectReferences() { - return projectReferences; - } - function isSourceFileFromExternalLibrary(file) { - return !!sourceFilesFoundSearchingNodeModules.get(file.path); - } - function isSourceFileDefaultLibrary(file) { - if (!file.isDeclarationFile) { - return false; - } - if (file.hasNoDefaultLib) { - return true; - } - if (options.noLib) { - return false; - } - const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive; - if (!options.lib) { - return equalityComparer(file.fileName, getDefaultLibraryFileName()); - } else { - return some(options.lib, (libFileName) => { - const resolvedLib = resolvedLibReferences.get(libFileName); - return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual); - }); - } - } - function getTypeChecker() { - return typeChecker || (typeChecker = createTypeChecker(program)); - } - function emit(sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit, skipBuildInfo) { - var _a2, _b2; - (_a2 = tracing) == null ? void 0 : _a2.push( - tracing.Phase.Emit, - "emit", - { path: sourceFile == null ? void 0 : sourceFile.path }, - /*separateBeginAndEnd*/ - true - ); - const result = runWithCancellationToken( - () => emitWorker( - program, - sourceFile, - writeFileCallback, - cancellationToken, - emitOnly, - transformers, - forceDtsEmit, - skipBuildInfo - ) - ); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - return result; - } - function isEmitBlocked(emitFileName) { - return hasEmitBlockingDiagnostics.has(toPath3(emitFileName)); - } - function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit, skipBuildInfo) { - if (!forceDtsEmit) { - const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken); - if (result) return result; - } - const typeChecker2 = getTypeChecker(); - const emitResolver = typeChecker2.getEmitResolver( - options.outFile ? void 0 : sourceFile, - cancellationToken, - emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) - ); - mark("beforeEmit"); - const emitResult = typeChecker2.runWithCancellationToken( - cancellationToken, - () => emitFiles( - emitResolver, - getEmitHost(writeFileCallback), - sourceFile, - getTransformers(options, customTransformers, emitOnly), - emitOnly, - /*onlyBuildInfo*/ - false, - forceDtsEmit, - skipBuildInfo - ) - ); - mark("afterEmit"); - measure("Emit", "beforeEmit", "afterEmit"); - return emitResult; - } - function getSourceFile(fileName) { - return getSourceFileByPath(toPath3(fileName)); - } - function getSourceFileByPath(path) { - return filesByName.get(path) || void 0; - } - function getDiagnosticsHelper(sourceFile, getDiagnostics, cancellationToken) { - if (sourceFile) { - return sortAndDeduplicateDiagnostics(getDiagnostics(sourceFile, cancellationToken)); - } - return sortAndDeduplicateDiagnostics(flatMap(program.getSourceFiles(), (sourceFile2) => { - if (cancellationToken) { - cancellationToken.throwIfCancellationRequested(); - } - return getDiagnostics(sourceFile2, cancellationToken); - })); - } - function getSyntacticDiagnostics(sourceFile, cancellationToken) { - return getDiagnosticsHelper(sourceFile, getSyntacticDiagnosticsForFile, cancellationToken); - } - function getSemanticDiagnostics(sourceFile, cancellationToken, nodesToCheck) { - return getDiagnosticsHelper( - sourceFile, - (sourceFile2, cancellationToken2) => getSemanticDiagnosticsForFile(sourceFile2, cancellationToken2, nodesToCheck), - cancellationToken - ); - } - function getCachedSemanticDiagnostics(sourceFile) { - return cachedBindAndCheckDiagnosticsForFile == null ? void 0 : cachedBindAndCheckDiagnosticsForFile.get(sourceFile.path); - } - function getBindAndCheckDiagnostics(sourceFile, cancellationToken) { - return getBindAndCheckDiagnosticsForFile( - sourceFile, - cancellationToken, - /*nodesToCheck*/ - void 0 - ); - } - function getProgramDiagnostics(sourceFile) { - var _a2; - if (skipTypeChecking(sourceFile, options, program)) { - return emptyArray; - } - const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName); - if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { - return programDiagnosticsInFile; - } - return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, programDiagnosticsInFile).diagnostics; - } - function getDeclarationDiagnostics2(sourceFile, cancellationToken) { - return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken); - } - function getSyntacticDiagnosticsForFile(sourceFile) { - if (isSourceFileJS(sourceFile)) { - if (!sourceFile.additionalSyntacticDiagnostics) { - sourceFile.additionalSyntacticDiagnostics = getJSSyntacticDiagnosticsForFile(sourceFile); - } - return concatenate(sourceFile.additionalSyntacticDiagnostics, sourceFile.parseDiagnostics); - } - return sourceFile.parseDiagnostics; - } - function runWithCancellationToken(func) { - try { - return func(); - } catch (e) { - if (e instanceof OperationCanceledException) { - typeChecker = void 0; - } - throw e; - } - } - function getSemanticDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck) { - return concatenate( - filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck), options), - getProgramDiagnostics(sourceFile) - ); - } - function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck) { - if (nodesToCheck) { - return getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken, nodesToCheck); - } - let result = cachedBindAndCheckDiagnosticsForFile == null ? void 0 : cachedBindAndCheckDiagnosticsForFile.get(sourceFile.path); - if (!result) { - (cachedBindAndCheckDiagnosticsForFile ?? (cachedBindAndCheckDiagnosticsForFile = /* @__PURE__ */ new Map())).set( - sourceFile.path, - result = getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) - ); - } - return result; - } - function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken, nodesToCheck) { - return runWithCancellationToken(() => { - if (skipTypeChecking(sourceFile, options, program)) { - return emptyArray; - } - const typeChecker2 = getTypeChecker(); - Debug.assert(!!sourceFile.bindDiagnostics); - const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; - const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); - const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options); - let bindDiagnostics = sourceFile.bindDiagnostics; - let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken, nodesToCheck); - if (isPlainJs) { - bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code)); - checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code)); - } - return getMergedBindAndCheckDiagnostics( - sourceFile, - !isPlainJs, - !!nodesToCheck, - bindDiagnostics, - checkDiagnostics, - isCheckJs ? sourceFile.jsDocDiagnostics : void 0 - ); - }); - } - function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, partialCheck, ...allDiagnostics) { - var _a2; - const flatDiagnostics = flatten(allDiagnostics); - if (!includeBindAndCheckDiagnostics || !((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { - return flatDiagnostics; - } - const { diagnostics, directives } = getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics); - if (partialCheck) { - return diagnostics; - } - for (const errorExpectation of directives.getUnusedExpectations()) { - diagnostics.push(createDiagnosticForRange(sourceFile, errorExpectation.range, Diagnostics.Unused_ts_expect_error_directive)); - } - return diagnostics; - } - function getDiagnosticsWithPrecedingDirectives(sourceFile, commentDirectives, flatDiagnostics) { - const directives = createCommentDirectivesMap(sourceFile, commentDirectives); - const diagnostics = flatDiagnostics.filter((diagnostic) => markPrecedingCommentDirectiveLine(diagnostic, directives) === -1); - return { diagnostics, directives }; - } - function getSuggestionDiagnostics(sourceFile, cancellationToken) { - return runWithCancellationToken(() => { - return getTypeChecker().getSuggestionDiagnostics(sourceFile, cancellationToken); - }); - } - function markPrecedingCommentDirectiveLine(diagnostic, directives) { - const { file, start } = diagnostic; - if (!file) { - return -1; - } - const lineStarts = getLineStarts(file); - let line = computeLineAndCharacterOfPosition(lineStarts, start).line - 1; - while (line >= 0) { - if (directives.markUsed(line)) { - return line; - } - const lineText = file.text.slice(lineStarts[line], lineStarts[line + 1]).trim(); - if (lineText !== "" && !/^\s*\/\/.*$/.test(lineText)) { - return -1; - } - line--; - } - return -1; - } - function getJSSyntacticDiagnosticsForFile(sourceFile) { - return runWithCancellationToken(() => { - const diagnostics = []; - walk(sourceFile, sourceFile); - forEachChildRecursively(sourceFile, walk, walkArray); - return diagnostics; - function walk(node, parent) { - switch (parent.kind) { - case 169 /* Parameter */: - case 172 /* PropertyDeclaration */: - case 174 /* MethodDeclaration */: - if (parent.questionToken === node) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); - return "skip"; - } - // falls through - case 173 /* MethodSignature */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 219 /* ArrowFunction */: - case 260 /* VariableDeclaration */: - if (parent.type === node) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - } - switch (node.kind) { - case 273 /* ImportClause */: - if (node.isTypeOnly) { - diagnostics.push(createDiagnosticForNode2(parent, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); - return "skip"; - } - break; - case 278 /* ExportDeclaration */: - if (node.isTypeOnly) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); - return "skip"; - } - break; - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - if (node.isTypeOnly) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); - return "skip"; - } - break; - case 271 /* ImportEqualsDeclaration */: - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); - return "skip"; - case 277 /* ExportAssignment */: - if (node.isExportEquals) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - break; - case 298 /* HeritageClause */: - const heritageClause = node; - if (heritageClause.token === 119 /* ImplementsKeyword */) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - break; - case 264 /* InterfaceDeclaration */: - const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); - Debug.assertIsDefined(interfaceKeyword); - diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); - return "skip"; - case 267 /* ModuleDeclaration */: - const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); - Debug.assertIsDefined(moduleKeyword); - diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); - return "skip"; - case 265 /* TypeAliasDeclaration */: - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); - return "skip"; - case 176 /* Constructor */: - case 174 /* MethodDeclaration */: - case 262 /* FunctionDeclaration */: - if (!node.body) { - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - return; - case 266 /* EnumDeclaration */: - const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); - diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); - return "skip"; - case 235 /* NonNullExpression */: - diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); - return "skip"; - case 234 /* AsExpression */: - diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); - return "skip"; - case 238 /* SatisfiesExpression */: - diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); - return "skip"; - case 216 /* TypeAssertionExpression */: - Debug.fail(); - } - } - function walkArray(nodes, parent) { - if (canHaveIllegalDecorators(parent)) { - const decorator = find(parent.modifiers, isDecorator); - if (decorator) { - diagnostics.push(createDiagnosticForNode2(decorator, Diagnostics.Decorators_are_not_valid_here)); - } - } else if (canHaveDecorators(parent) && parent.modifiers) { - const decoratorIndex = findIndex(parent.modifiers, isDecorator); - if (decoratorIndex >= 0) { - if (isParameter(parent) && !options.experimentalDecorators) { - diagnostics.push(createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here)); - } else if (isClassDeclaration(parent)) { - const exportIndex = findIndex(parent.modifiers, isExportModifier); - if (exportIndex >= 0) { - const defaultIndex = findIndex(parent.modifiers, isDefaultModifier); - if (decoratorIndex > exportIndex && defaultIndex >= 0 && decoratorIndex < defaultIndex) { - diagnostics.push(createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here)); - } else if (exportIndex >= 0 && decoratorIndex < exportIndex) { - const trailingDecoratorIndex = findIndex(parent.modifiers, isDecorator, exportIndex); - if (trailingDecoratorIndex >= 0) { - diagnostics.push(addRelatedInfo( - createDiagnosticForNode2(parent.modifiers[trailingDecoratorIndex], Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), - createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorator_used_before_export_here) - )); - } - } - } - } - } - } - switch (parent.kind) { - case 263 /* ClassDeclaration */: - case 231 /* ClassExpression */: - case 174 /* MethodDeclaration */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 218 /* FunctionExpression */: - case 262 /* FunctionDeclaration */: - case 219 /* ArrowFunction */: - if (nodes === parent.typeParameters) { - diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - // falls through - case 243 /* VariableStatement */: - if (nodes === parent.modifiers) { - checkModifiers(parent.modifiers, parent.kind === 243 /* VariableStatement */); - return "skip"; - } - break; - case 172 /* PropertyDeclaration */: - if (nodes === parent.modifiers) { - for (const modifier of nodes) { - if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { - diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); - } - } - return "skip"; - } - break; - case 169 /* Parameter */: - if (nodes === parent.modifiers && some(nodes, isModifier)) { - diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - break; - case 213 /* CallExpression */: - case 214 /* NewExpression */: - case 233 /* ExpressionWithTypeArguments */: - case 285 /* JsxSelfClosingElement */: - case 286 /* JsxOpeningElement */: - case 215 /* TaggedTemplateExpression */: - if (nodes === parent.typeArguments) { - diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); - return "skip"; - } - break; - } - } - function checkModifiers(modifiers, isConstValid) { - for (const modifier of modifiers) { - switch (modifier.kind) { - case 87 /* ConstKeyword */: - if (isConstValid) { - continue; - } - // to report error, - // falls through - case 125 /* PublicKeyword */: - case 123 /* PrivateKeyword */: - case 124 /* ProtectedKeyword */: - case 148 /* ReadonlyKeyword */: - case 138 /* DeclareKeyword */: - case 128 /* AbstractKeyword */: - case 164 /* OverrideKeyword */: - case 103 /* InKeyword */: - case 147 /* OutKeyword */: - diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); - break; - // These are all legal modifiers. - case 126 /* StaticKeyword */: - case 95 /* ExportKeyword */: - case 90 /* DefaultKeyword */: - case 129 /* AccessorKeyword */: - } - } - } - function createDiagnosticForNodeArray2(nodes, message, ...args) { - const start = nodes.pos; - return createFileDiagnostic(sourceFile, start, nodes.end - start, message, ...args); - } - function createDiagnosticForNode2(node, message, ...args) { - return createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args); - } - }); - } - function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) { - let result = cachedDeclarationDiagnosticsForFile == null ? void 0 : cachedDeclarationDiagnosticsForFile.get(sourceFile.path); - if (!result) { - (cachedDeclarationDiagnosticsForFile ?? (cachedDeclarationDiagnosticsForFile = /* @__PURE__ */ new Map())).set( - sourceFile.path, - result = getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) - ); - } - return result; - } - function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) { - return runWithCancellationToken(() => { - const resolver = getTypeChecker().getEmitResolver(sourceFile, cancellationToken); - return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray; - }); - } - function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) { - return sourceFile.isDeclarationFile ? emptyArray : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); - } - function getOptionsDiagnostics() { - return sortAndDeduplicateDiagnostics(concatenate( - programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(), - getOptionsDiagnosticsOfConfigFile() - )); - } - function getOptionsDiagnosticsOfConfigFile() { - if (!options.configFile) return emptyArray; - let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options.configFile.fileName); - forEachResolvedProjectReference2((resolvedRef) => { - diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName)); - }); - return diagnostics; - } - function getGlobalDiagnostics() { - return rootNames.length ? sortAndDeduplicateDiagnostics(getTypeChecker().getGlobalDiagnostics().slice()) : emptyArray; - } - function getConfigFileParsingDiagnostics2() { - return configFileParsingDiagnostics || emptyArray; - } - function processRootFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason) { - processSourceFile( - normalizePath(fileName), - isDefaultLib, - ignoreNoDefaultLib, - /*packageId*/ - void 0, - reason - ); - } - function fileReferenceIsEqualTo(a, b) { - return a.fileName === b.fileName; - } - function moduleNameIsEqualTo(a, b) { - return a.kind === 80 /* Identifier */ ? b.kind === 80 /* Identifier */ && a.escapedText === b.escapedText : b.kind === 11 /* StringLiteral */ && a.text === b.text; - } - function createSyntheticImport(text, file) { - const externalHelpersModuleReference = factory.createStringLiteral(text); - const importDecl = factory.createImportDeclaration( - /*modifiers*/ - void 0, - /*importClause*/ - void 0, - externalHelpersModuleReference - ); - addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); - setParent(externalHelpersModuleReference, importDecl); - setParent(importDecl, file); - externalHelpersModuleReference.flags &= ~16 /* Synthesized */; - importDecl.flags &= ~16 /* Synthesized */; - return externalHelpersModuleReference; - } - function collectExternalModuleReferences(file) { - if (file.imports) { - return; - } - const isJavaScriptFile = isSourceFileJS(file); - const isExternalModuleFile = isExternalModule(file); - let imports; - let moduleAugmentations; - let ambientModules; - if (isJavaScriptFile || !file.isDeclarationFile && (getIsolatedModules(options) || isExternalModule(file))) { - if (options.importHelpers) { - imports = [createSyntheticImport(externalHelpersModuleNameText, file)]; - } - const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options); - if (jsxImport) { - (imports || (imports = [])).push(createSyntheticImport(jsxImport, file)); - } - } - for (const node of file.statements) { - collectModuleReferences( - node, - /*inAmbientModule*/ - false - ); - } - if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || isJavaScriptFile) { - forEachDynamicImportOrRequireCall( - file, - /*includeTypeSpaceImports*/ - true, - /*requireStringLiteralLikeArgument*/ - true, - (node, moduleSpecifier) => { - setParentRecursive( - node, - /*incremental*/ - false - ); - imports = append(imports, moduleSpecifier); - } - ); - } - file.imports = imports || emptyArray; - file.moduleAugmentations = moduleAugmentations || emptyArray; - file.ambientModuleNames = ambientModules || emptyArray; - return; - function collectModuleReferences(node, inAmbientModule) { - if (isAnyImportOrReExport(node)) { - const moduleNameExpr = getExternalModuleName(node); - if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text && (!inAmbientModule || !isExternalModuleNameRelative(moduleNameExpr.text))) { - setParentRecursive( - node, - /*incremental*/ - false - ); - imports = append(imports, moduleNameExpr); - if (!usesUriStyleNodeCoreModules && currentNodeModulesDepth === 0 && !file.isDeclarationFile) { - if (startsWith(moduleNameExpr.text, "node:") && !exclusivelyPrefixedNodeCoreModules.has(moduleNameExpr.text)) { - usesUriStyleNodeCoreModules = true; - } else if (usesUriStyleNodeCoreModules === void 0 && unprefixedNodeCoreModules.has(moduleNameExpr.text)) { - usesUriStyleNodeCoreModules = false; - } - } - } - } else if (isModuleDeclaration(node)) { - if (isAmbientModule(node) && (inAmbientModule || hasSyntacticModifier(node, 128 /* Ambient */) || file.isDeclarationFile)) { - node.name.parent = node; - const nameText = getTextOfIdentifierOrLiteral(node.name); - if (isExternalModuleFile || inAmbientModule && !isExternalModuleNameRelative(nameText)) { - (moduleAugmentations || (moduleAugmentations = [])).push(node.name); - } else if (!inAmbientModule) { - if (file.isDeclarationFile) { - (ambientModules || (ambientModules = [])).push(nameText); - } - const body = node.body; - if (body) { - for (const statement of body.statements) { - collectModuleReferences( - statement, - /*inAmbientModule*/ - true - ); - } - } - } - } - } - } - } - function getLibFileFromReference(ref) { - var _a2; - const libFileName = getLibFileNameFromLibReference(ref); - const actualFileName = libFileName && ((_a2 = resolvedLibReferences == null ? void 0 : resolvedLibReferences.get(libFileName)) == null ? void 0 : _a2.actual); - return actualFileName !== void 0 ? getSourceFile(actualFileName) : void 0; - } - function getSourceFileFromReference(referencingFile, ref) { - return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile); - } - function getSourceFileFromReferenceWorker(fileName, getSourceFile2, fail, reason) { - if (hasExtension(fileName)) { - const canonicalFileName = host.getCanonicalFileName(fileName); - if (!options.allowNonTsExtensions && !forEach(flatten(supportedExtensionsWithJsonIfResolveJsonModule), (extension) => fileExtensionIs(canonicalFileName, extension))) { - if (fail) { - if (hasJSFileExtension(canonicalFileName)) { - fail(Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, fileName); - } else { - fail(Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, fileName, "'" + flatten(supportedExtensions).join("', '") + "'"); - } - } - return void 0; - } - const sourceFile = getSourceFile2(fileName); - if (fail) { - if (!sourceFile) { - const redirect = getProjectReferenceRedirect(fileName); - if (redirect) { - fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName); - } else { - fail(Diagnostics.File_0_not_found, fileName); - } - } else if (isReferencedFile(reason) && canonicalFileName === host.getCanonicalFileName(getSourceFileByPath(reason.file).fileName)) { - fail(Diagnostics.A_file_cannot_have_a_reference_to_itself); - } - } - return sourceFile; - } else { - const sourceFileNoExtension = options.allowNonTsExtensions && getSourceFile2(fileName); - if (sourceFileNoExtension) return sourceFileNoExtension; - if (fail && options.allowNonTsExtensions) { - fail(Diagnostics.File_0_not_found, fileName); - return void 0; - } - const sourceFileWithAddedExtension = forEach(supportedExtensions[0], (extension) => getSourceFile2(fileName + extension)); - if (fail && !sourceFileWithAddedExtension) fail(Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, fileName, "'" + flatten(supportedExtensions).join("', '") + "'"); - return sourceFileWithAddedExtension; - } - } - function processSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason) { - getSourceFileFromReferenceWorker( - fileName, - (fileName2) => findSourceFile(fileName2, isDefaultLib, ignoreNoDefaultLib, reason, packageId), - // TODO: GH#18217 - (diagnostic, ...args) => addFilePreprocessingFileExplainingDiagnostic( - /*file*/ - void 0, - reason, - diagnostic, - args - ), - reason - ); - } - function processProjectReferenceFile(fileName, reason) { - return processSourceFile( - fileName, - /*isDefaultLib*/ - false, - /*ignoreNoDefaultLib*/ - false, - /*packageId*/ - void 0, - reason - ); - } - function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) { - const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile); - if (hasExistingReasonToReportErrorOn) { - addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]); - } else { - addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]); - } - } - function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path, resolvedPath, originalFileName, sourceFileOptions) { - var _a2; - const redirect = parseNodeFactory.createRedirectedSourceFile({ redirectTarget, unredirected }); - redirect.fileName = fileName; - redirect.path = path; - redirect.resolvedPath = resolvedPath; - redirect.originalFileName = originalFileName; - redirect.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; - redirect.packageJsonScope = sourceFileOptions.packageJsonScope; - sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); - return redirect; - } - function findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2, _b2; - (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "findSourceFile", { - fileName, - isDefaultLib: isDefaultLib || void 0, - fileIncludeKind: FileIncludeKind[reason.kind] - }); - const result = findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - return result; - } - function getCreateSourceFileOptions(fileName, moduleResolutionCache2, host2, options2) { - const result = getImpliedNodeFormatForFileWorker(getNormalizedAbsolutePath(fileName, currentDirectory), moduleResolutionCache2 == null ? void 0 : moduleResolutionCache2.getPackageJsonInfoCache(), host2, options2); - const languageVersion = getEmitScriptTarget(options2); - const setExternalModuleIndicator2 = getSetExternalModuleIndicator(options2); - return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode }; - } - function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { - var _a2; - const path = toPath3(fileName); - if (useSourceOfProjectReferenceRedirect) { - let source = getSourceOfProjectReferenceRedirect(path); - if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) { - const realPath2 = toPath3(host.realpath(fileName)); - if (realPath2 !== path) source = getSourceOfProjectReferenceRedirect(realPath2); - } - if (source) { - const file2 = isString(source) ? findSourceFile(source, isDefaultLib, ignoreNoDefaultLib, reason, packageId) : void 0; - if (file2) addFileToFilesByName( - file2, - path, - fileName, - /*redirectedPath*/ - void 0 - ); - return file2; - } - } - const originalFileName = fileName; - if (filesByName.has(path)) { - const file2 = filesByName.get(path); - const addedReason = addFileIncludeReason( - file2 || void 0, - reason, - /*checkExisting*/ - true - ); - if (file2 && addedReason && !(options.forceConsistentCasingInFileNames === false)) { - const checkedName = file2.fileName; - const isRedirect = toPath3(checkedName) !== toPath3(fileName); - if (isRedirect) { - fileName = getProjectReferenceRedirect(fileName) || fileName; - } - const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory); - const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory); - if (checkedAbsolutePath !== inputAbsolutePath) { - reportFileNamesDifferOnlyInCasingError(fileName, file2, reason); - } - } - if (file2 && sourceFilesFoundSearchingNodeModules.get(file2.path) && currentNodeModulesDepth === 0) { - sourceFilesFoundSearchingNodeModules.set(file2.path, false); - if (!options.noResolve) { - processReferencedFiles(file2, isDefaultLib); - processTypeReferenceDirectives(file2); - } - if (!options.noLib) { - processLibReferenceDirectives(file2); - } - modulesWithElidedImports.set(file2.path, false); - processImportedModules(file2); - } else if (file2 && modulesWithElidedImports.get(file2.path)) { - if (currentNodeModulesDepth < maxNodeModuleJsDepth) { - modulesWithElidedImports.set(file2.path, false); - processImportedModules(file2); - } - } - return file2 || void 0; - } - let redirectedPath; - if (!useSourceOfProjectReferenceRedirect) { - const redirectProject = getProjectReferenceRedirectProject(fileName); - if (redirectProject) { - if (redirectProject.commandLine.options.outFile) { - return void 0; - } - const redirect = getProjectReferenceOutputName(redirectProject, fileName); - fileName = redirect; - redirectedPath = toPath3(redirect); - } - } - const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options); - const file = host.getSourceFile( - fileName, - sourceFileOptions, - (hostErrorMessage) => addFilePreprocessingFileExplainingDiagnostic( - /*file*/ - void 0, - reason, - Diagnostics.Cannot_read_file_0_Colon_1, - [fileName, hostErrorMessage] - ), - shouldCreateNewSourceFile - ); - if (packageId) { - const packageIdKey = packageIdToString(packageId); - const fileFromPackageId = packageIdToSourceFile.get(packageIdKey); - if (fileFromPackageId) { - const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path, toPath3(fileName), originalFileName, sourceFileOptions); - redirectTargetsMap.add(fileFromPackageId.path, fileName); - addFileToFilesByName(dupFile, path, fileName, redirectedPath); - addFileIncludeReason( - dupFile, - reason, - /*checkExisting*/ - false - ); - sourceFileToPackageName.set(path, packageIdToPackageName(packageId)); - processingOtherFiles.push(dupFile); - return dupFile; - } else if (file) { - packageIdToSourceFile.set(packageIdKey, file); - sourceFileToPackageName.set(path, packageIdToPackageName(packageId)); - } - } - addFileToFilesByName(file, path, fileName, redirectedPath); - if (file) { - sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); - file.fileName = fileName; - file.path = path; - file.resolvedPath = toPath3(fileName); - file.originalFileName = originalFileName; - file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; - file.packageJsonScope = sourceFileOptions.packageJsonScope; - addFileIncludeReason( - file, - reason, - /*checkExisting*/ - false - ); - if (host.useCaseSensitiveFileNames()) { - const pathLowerCase = toFileNameLowerCase(path); - const existingFile = filesByNameIgnoreCase.get(pathLowerCase); - if (existingFile) { - reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason); - } else { - filesByNameIgnoreCase.set(pathLowerCase, file); - } - } - skipDefaultLib = skipDefaultLib || file.hasNoDefaultLib && !ignoreNoDefaultLib; - if (!options.noResolve) { - processReferencedFiles(file, isDefaultLib); - processTypeReferenceDirectives(file); - } - if (!options.noLib) { - processLibReferenceDirectives(file); - } - processImportedModules(file); - if (isDefaultLib) { - processingDefaultLibFiles.push(file); - } else { - processingOtherFiles.push(file); - } - (filesWithReferencesProcessed ?? (filesWithReferencesProcessed = /* @__PURE__ */ new Set())).add(file.path); - } - return file; - } - function addFileIncludeReason(file, reason, checkExisting) { - if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) { - programDiagnostics.getFileReasons().add(file.path, reason); - return true; - } - return false; - } - function addFileToFilesByName(file, path, fileName, redirectedPath) { - if (redirectedPath) { - updateFilesByNameMap(fileName, redirectedPath, file); - updateFilesByNameMap(fileName, path, file || false); - } else { - updateFilesByNameMap(fileName, path, file); - } - } - function updateFilesByNameMap(fileName, path, file) { - filesByName.set(path, file); - if (file !== void 0) missingFileNames.delete(path); - else missingFileNames.set(path, fileName); - } - function getProjectReferenceRedirect(fileName) { - const referencedProject = getProjectReferenceRedirectProject(fileName); - return referencedProject && getProjectReferenceOutputName(referencedProject, fileName); - } - function getProjectReferenceRedirectProject(fileName) { - if (!resolvedProjectReferences || !resolvedProjectReferences.length || isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */)) { - return void 0; - } - return getResolvedProjectReferenceToRedirect(fileName); - } - function getProjectReferenceOutputName(referencedProject, fileName) { - const out = referencedProject.commandLine.options.outFile; - return out ? changeExtension(out, ".d.ts" /* Dts */) : getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames()); - } - function getResolvedProjectReferenceToRedirect(fileName) { - if (mapFromFileToProjectReferenceRedirects === void 0) { - mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map(); - forEachResolvedProjectReference2((referencedProject) => { - if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) { - referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path)); - } - }); - } - const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath3(fileName)); - return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath); - } - function forEachResolvedProjectReference2(cb) { - return forEachResolvedProjectReference(resolvedProjectReferences, cb); - } - function getSourceOfProjectReferenceRedirect(path) { - if (!isDeclarationFileName(path)) return void 0; - if (mapFromToProjectReferenceRedirectSource === void 0) { - mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map(); - forEachResolvedProjectReference2((resolvedRef) => { - const out = resolvedRef.commandLine.options.outFile; - if (out) { - const outputDts = changeExtension(out, ".d.ts" /* Dts */); - mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), true); - } else { - const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames())); - forEach(resolvedRef.commandLine.fileNames, (fileName) => { - if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) { - const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3); - mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), fileName); - } - }); - } - }); - } - return mapFromToProjectReferenceRedirectSource.get(path); - } - function isSourceOfProjectReferenceRedirect(fileName) { - return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName); - } - function getResolvedProjectReferenceByPath(projectReferencePath) { - if (!projectReferenceRedirects) { - return void 0; - } - return projectReferenceRedirects.get(projectReferencePath) || void 0; - } - function processReferencedFiles(file, isDefaultLib) { - forEach(file.referencedFiles, (ref, index) => { - processSourceFile( - resolveTripleslashReference(ref.fileName, file.fileName), - isDefaultLib, - /*ignoreNoDefaultLib*/ - false, - /*packageId*/ - void 0, - { kind: 4 /* ReferenceFile */, file: file.path, index } - ); - }); - } - function processTypeReferenceDirectives(file) { - const typeDirectives = file.typeReferenceDirectives; - if (!typeDirectives.length) return; - const resolutions = (resolvedTypeReferenceDirectiveNamesProcessing == null ? void 0 : resolvedTypeReferenceDirectiveNamesProcessing.get(file.path)) || resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file); - const resolutionsInFile = createModeAwareCache(); - (resolvedTypeReferenceDirectiveNames ?? (resolvedTypeReferenceDirectiveNames = /* @__PURE__ */ new Map())).set(file.path, resolutionsInFile); - for (let index = 0; index < typeDirectives.length; index++) { - const ref = file.typeReferenceDirectives[index]; - const resolvedTypeReferenceDirective = resolutions[index]; - const fileName = ref.fileName; - const mode = getModeForTypeReferenceDirectiveInFile(ref, file); - resolutionsInFile.set(fileName, mode, resolvedTypeReferenceDirective); - processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: 5 /* TypeReferenceDirective */, file: file.path, index }); - } - } - function getCompilerOptionsForFile(file) { - var _a2; - return ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; - } - function processTypeReferenceDirective(typeReferenceDirective, mode, resolution, reason) { - var _a2, _b2; - (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolution.resolvedTypeReferenceDirective, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : void 0 }); - processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason); - (_b2 = tracing) == null ? void 0 : _b2.pop(); - } - function processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason) { - addResolutionDiagnostics(resolution); - const { resolvedTypeReferenceDirective } = resolution; - if (resolvedTypeReferenceDirective) { - if (resolvedTypeReferenceDirective.isExternalLibraryImport) currentNodeModulesDepth++; - processSourceFile( - resolvedTypeReferenceDirective.resolvedFileName, - /*isDefaultLib*/ - false, - /*ignoreNoDefaultLib*/ - false, - resolvedTypeReferenceDirective.packageId, - reason - ); - if (resolvedTypeReferenceDirective.isExternalLibraryImport) currentNodeModulesDepth--; - } else { - addFilePreprocessingFileExplainingDiagnostic( - /*file*/ - void 0, - reason, - Diagnostics.Cannot_find_type_definition_file_for_0, - [typeReferenceDirective] - ); - } - } - function pathForLibFile(libFileName) { - const existing = resolvedLibReferences == null ? void 0 : resolvedLibReferences.get(libFileName); - if (existing) return existing.actual; - const result = pathForLibFileWorker(libFileName); - (resolvedLibReferences ?? (resolvedLibReferences = /* @__PURE__ */ new Map())).set(libFileName, result); - return result.actual; - } - function pathForLibFileWorker(libFileName) { - var _a2, _b2, _c2, _d2, _e2; - const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName); - if (existing) return existing; - if (options.libReplacement === false) { - const result2 = { - resolution: { - resolvedModule: void 0 - }, - actual: combinePaths(defaultLibraryPath, libFileName) - }; - (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2); - return result2; - } - if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) { - const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName); - if (oldResolution) { - if (oldResolution.resolution && isTraceEnabled(options, host)) { - const libraryName2 = getLibraryNameFromLibFileName(libFileName); - const resolveFrom2 = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); - trace( - host, - oldResolution.resolution.resolvedModule ? oldResolution.resolution.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, - libraryName2, - getNormalizedAbsolutePath(resolveFrom2, currentDirectory), - (_b2 = oldResolution.resolution.resolvedModule) == null ? void 0 : _b2.resolvedFileName, - ((_c2 = oldResolution.resolution.resolvedModule) == null ? void 0 : _c2.packageId) && packageIdToString(oldResolution.resolution.resolvedModule.packageId) - ); - } - (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, oldResolution); - return oldResolution; - } - } - const libraryName = getLibraryNameFromLibFileName(libFileName); - const resolveFrom = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); - (_d2 = tracing) == null ? void 0 : _d2.push(tracing.Phase.Program, "resolveLibrary", { resolveFrom }); - mark("beforeResolveLibrary"); - const resolution = actualResolveLibrary(libraryName, resolveFrom, options, libFileName); - mark("afterResolveLibrary"); - measure("ResolveLibrary", "beforeResolveLibrary", "afterResolveLibrary"); - (_e2 = tracing) == null ? void 0 : _e2.pop(); - const result = { - resolution, - actual: resolution.resolvedModule ? resolution.resolvedModule.resolvedFileName : combinePaths(defaultLibraryPath, libFileName) - }; - (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result); - return result; - } - function processLibReferenceDirectives(file) { - forEach(file.libReferenceDirectives, (libReference, index) => { - const libFileName = getLibFileNameFromLibReference(libReference); - if (libFileName) { - processRootFile( - pathForLibFile(libFileName), - /*isDefaultLib*/ - true, - /*ignoreNoDefaultLib*/ - true, - { kind: 7 /* LibReferenceDirective */, file: file.path, index } - ); - } else { - programDiagnostics.addFileProcessingDiagnostic({ - kind: 0 /* FilePreprocessingLibReferenceDiagnostic */, - reason: { kind: 7 /* LibReferenceDirective */, file: file.path, index } - }); - } - }); - } - function getCanonicalFileName(fileName) { - return host.getCanonicalFileName(fileName); - } - function processImportedModules(file) { - collectExternalModuleReferences(file); - if (file.imports.length || file.moduleAugmentations.length) { - const moduleNames = getModuleNames(file); - const resolutions = (resolvedModulesProcessing == null ? void 0 : resolvedModulesProcessing.get(file.path)) || resolveModuleNamesReusingOldState(moduleNames, file); - Debug.assert(resolutions.length === moduleNames.length); - const optionsForFile = getCompilerOptionsForFile(file); - const resolutionsInFile = createModeAwareCache(); - (resolvedModules ?? (resolvedModules = /* @__PURE__ */ new Map())).set(file.path, resolutionsInFile); - for (let index = 0; index < moduleNames.length; index++) { - const resolution = resolutions[index].resolvedModule; - const moduleName = moduleNames[index].text; - const mode = getModeForUsageLocationWorker(file, moduleNames[index], optionsForFile); - resolutionsInFile.set(moduleName, mode, resolutions[index]); - addResolutionDiagnosticsFromResolutionOrCache(file, moduleName, resolutions[index], mode); - if (!resolution) { - continue; - } - const isFromNodeModulesSearch = resolution.isExternalLibraryImport; - const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName); - const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName)); - const resolvedFileName = resolution.resolvedFileName; - if (isFromNodeModulesSearch) { - currentNodeModulesDepth++; - } - const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; - const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); - if (elideImport) { - modulesWithElidedImports.set(file.path, true); - } else if (shouldAddFile) { - findSourceFile( - resolvedFileName, - /*isDefaultLib*/ - false, - /*ignoreNoDefaultLib*/ - false, - { kind: 3 /* Import */, file: file.path, index }, - resolution.packageId - ); - } - if (isFromNodeModulesSearch) { - currentNodeModulesDepth--; - } - } - } - } - function checkSourceFilesBelongToPath(sourceFiles, rootDirectory) { - let allFilesBelongToPath = true; - const absoluteRootDirectoryPath = host.getCanonicalFileName(getNormalizedAbsolutePath(rootDirectory, currentDirectory)); - for (const sourceFile of sourceFiles) { - if (!sourceFile.isDeclarationFile) { - const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory)); - if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) { - programDiagnostics.addLazyConfigDiagnostic( - sourceFile, - Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, - sourceFile.fileName, - rootDirectory - ); - allFilesBelongToPath = false; - } - } - } - return allFilesBelongToPath; - } - function parseProjectReferenceConfigFile(ref) { - if (!projectReferenceRedirects) { - projectReferenceRedirects = /* @__PURE__ */ new Map(); - } - const refPath = resolveProjectReferencePath(ref); - const sourceFilePath = toPath3(refPath); - const fromCache = projectReferenceRedirects.get(sourceFilePath); - if (fromCache !== void 0) { - return fromCache || void 0; - } - let commandLine; - let sourceFile; - if (host.getParsedCommandLine) { - commandLine = host.getParsedCommandLine(refPath); - if (!commandLine) { - addFileToFilesByName( - /*file*/ - void 0, - sourceFilePath, - refPath, - /*redirectedPath*/ - void 0 - ); - projectReferenceRedirects.set(sourceFilePath, false); - return void 0; - } - sourceFile = Debug.checkDefined(commandLine.options.configFile); - Debug.assert(!sourceFile.path || sourceFile.path === sourceFilePath); - addFileToFilesByName( - sourceFile, - sourceFilePath, - refPath, - /*redirectedPath*/ - void 0 - ); - } else { - const basePath = getNormalizedAbsolutePath(getDirectoryPath(refPath), currentDirectory); - sourceFile = host.getSourceFile(refPath, 100 /* JSON */); - addFileToFilesByName( - sourceFile, - sourceFilePath, - refPath, - /*redirectedPath*/ - void 0 - ); - if (sourceFile === void 0) { - projectReferenceRedirects.set(sourceFilePath, false); - return void 0; - } - commandLine = parseJsonSourceFileConfigFileContent( - sourceFile, - configParsingHost, - basePath, - /*existingOptions*/ - void 0, - refPath - ); - } - sourceFile.fileName = refPath; - sourceFile.path = sourceFilePath; - sourceFile.resolvedPath = sourceFilePath; - sourceFile.originalFileName = refPath; - const resolvedRef = { commandLine, sourceFile }; - projectReferenceRedirects.set(sourceFilePath, resolvedRef); - if (commandLine.projectReferences) { - resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile); - } - return resolvedRef; - } - function verifyCompilerOptions() { - if (options.strictPropertyInitialization && !getStrictOptionValue(options, "strictNullChecks")) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "strictPropertyInitialization", "strictNullChecks"); - } - if (options.exactOptionalPropertyTypes && !getStrictOptionValue(options, "strictNullChecks")) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "exactOptionalPropertyTypes", "strictNullChecks"); - } - if (options.isolatedModules || options.verbatimModuleSyntax) { - if (options.outFile) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "outFile", options.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"); - } - } - if (options.isolatedDeclarations) { - if (getAllowJSCompilerOption(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", "isolatedDeclarations"); - } - if (!getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "isolatedDeclarations", "declaration", "composite"); - } - } - if (options.inlineSourceMap) { - if (options.sourceMap) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "sourceMap", "inlineSourceMap"); - } - if (options.mapRoot) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "mapRoot", "inlineSourceMap"); - } - } - if (options.composite) { - if (options.declaration === false) { - createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_declaration_emit, "declaration"); - } - if (options.incremental === false) { - createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_incremental_compilation, "declaration"); - } - } - const outputFile = options.outFile; - if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); - } - verifyDeprecatedCompilerOptions(); - verifyProjectReferences(); - if (options.composite) { - const rootPaths = new Set(rootNames.map(toPath3)); - for (const file of files) { - if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) { - programDiagnostics.addLazyConfigDiagnostic( - file, - Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, - file.fileName, - options.configFilePath || "" - ); - } - } - } - if (options.paths) { - for (const key in options.paths) { - if (!hasProperty(options.paths, key)) { - continue; - } - if (!hasZeroOrOneAsteriskCharacter(key)) { - createDiagnosticForOptionPaths( - /*onKey*/ - true, - key, - Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, - key - ); - } - if (isArray(options.paths[key])) { - const len = options.paths[key].length; - if (len === 0) { - createDiagnosticForOptionPaths( - /*onKey*/ - false, - key, - Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, - key - ); - } - for (let i = 0; i < len; i++) { - const subst = options.paths[key][i]; - const typeOfSubst = typeof subst; - if (typeOfSubst === "string") { - if (!hasZeroOrOneAsteriskCharacter(subst)) { - createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key); - } - if (!options.baseUrl && !pathIsRelative(subst) && !pathIsAbsolute(subst)) { - createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash); - } - } else { - createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, subst, key, typeOfSubst); - } - } - } else { - createDiagnosticForOptionPaths( - /*onKey*/ - false, - key, - Diagnostics.Substitutions_for_pattern_0_should_be_an_array, - key - ); - } - } - } - if (!options.sourceMap && !options.inlineSourceMap) { - if (options.inlineSources) { - createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "inlineSources"); - } - if (options.sourceRoot) { - createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "sourceRoot"); - } - } - if (options.mapRoot && !(options.sourceMap || options.declarationMap)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "mapRoot", "sourceMap", "declarationMap"); - } - if (options.declarationDir) { - if (!getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationDir", "declaration", "composite"); - } - if (outputFile) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "declarationDir", "outFile"); - } - } - if (options.declarationMap && !getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationMap", "declaration", "composite"); - } - if (options.lib && options.noLib) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "lib", "noLib"); - } - const languageVersion = getEmitScriptTarget(options); - const firstNonAmbientExternalModuleSourceFile = find(files, (f) => isExternalModule(f) && !f.isDeclarationFile); - if (options.isolatedModules || options.verbatimModuleSyntax) { - if (options.module === 0 /* None */ && languageVersion < 2 /* ES2015 */ && options.isolatedModules) { - createDiagnosticForOptionName(Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, "isolatedModules", "target"); - } - if (options.preserveConstEnums === false) { - createDiagnosticForOptionName(Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled, options.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules", "preserveConstEnums"); - } - } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) { - const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); - programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)); - } - if (outputFile && !options.emitDeclarationOnly) { - if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) { - createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module"); - } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) { - const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); - programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile")); - } - } - if (getResolveJsonModule(options)) { - if (getEmitModuleResolutionKind(options) === 1 /* Classic */) { - createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic, "resolveJsonModule"); - } else if (!hasJsonModuleEmitEnabled(options)) { - createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd, "resolveJsonModule", "module"); - } - } - if (options.outDir || // there is --outDir specified - options.rootDir || // there is --rootDir specified - options.sourceRoot || // there is --sourceRoot specified - options.mapRoot || // there is --mapRoot specified - getEmitDeclarations(options) && options.declarationDir) { - const dir = getCommonSourceDirectory2(); - if (options.outDir && dir === "" && files.some((file) => getRootLength(file.fileName) > 1)) { - createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir"); - } - } - if (options.checkJs && !getAllowJSCompilerOption(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"); - } - if (options.emitDeclarationOnly) { - if (!getEmitDeclarations(options)) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "emitDeclarationOnly", "declaration", "composite"); - } - } - if (options.emitDecoratorMetadata && !options.experimentalDecorators) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"); - } - if (options.jsxFactory) { - if (options.reactNamespace) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "reactNamespace", "jsxFactory"); - } - if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFactory", inverseJsxOptionMap.get("" + options.jsx)); - } - if (!parseIsolatedEntityName(options.jsxFactory, languageVersion)) { - createOptionValueDiagnostic("jsxFactory", Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFactory); - } - } else if (options.reactNamespace && !isIdentifierText(options.reactNamespace, languageVersion)) { - createOptionValueDiagnostic("reactNamespace", Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, options.reactNamespace); - } - if (options.jsxFragmentFactory) { - if (!options.jsxFactory) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "jsxFragmentFactory", "jsxFactory"); - } - if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFragmentFactory", inverseJsxOptionMap.get("" + options.jsx)); - } - if (!parseIsolatedEntityName(options.jsxFragmentFactory, languageVersion)) { - createOptionValueDiagnostic("jsxFragmentFactory", Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFragmentFactory); - } - } - if (options.reactNamespace) { - if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "reactNamespace", inverseJsxOptionMap.get("" + options.jsx)); - } - } - if (options.jsxImportSource) { - if (options.jsx === 2 /* React */) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxImportSource", inverseJsxOptionMap.get("" + options.jsx)); - } - } - const moduleKind = getEmitModuleKind(options); - if (options.verbatimModuleSyntax) { - if (moduleKind === 2 /* AMD */ || moduleKind === 3 /* UMD */ || moduleKind === 4 /* System */) { - createDiagnosticForOptionName(Diagnostics.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System, "verbatimModuleSyntax"); - } - } - if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly || options.rewriteRelativeImportExtensions)) { - createOptionValueDiagnostic("allowImportingTsExtensions", Diagnostics.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set); - } - const moduleResolution = getEmitModuleResolutionKind(options); - if (options.resolvePackageJsonExports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonExports"); - } - if (options.resolvePackageJsonImports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonImports"); - } - if (options.customConditions && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { - createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "customConditions"); - } - if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind) && moduleKind !== 200 /* Preserve */) { - createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later, "bundler"); - } - if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { - const moduleKindName = ModuleKind[moduleKind]; - const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16"; - createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName); - } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { - const moduleResolutionName = ModuleResolutionKind[moduleResolution]; - createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); - } - if (!options.noEmit && !options.suppressOutputPathCheck) { - const emitHost = getEmitHost(); - const emitFilesSeen = /* @__PURE__ */ new Set(); - forEachEmittedFile(emitHost, (emitFileNames) => { - if (!options.emitDeclarationOnly) { - verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen); - } - verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen); - }); - } - function verifyEmitFilePath(emitFileName, emitFilesSeen) { - if (emitFileName) { - const emitFilePath = toPath3(emitFileName); - if (filesByName.has(emitFilePath)) { - let chain; - if (!options.configFilePath) { - chain = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig - ); - } - chain = chainDiagnosticMessages(chain, Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file, emitFileName); - blockEmittingOfFile(emitFileName, createCompilerDiagnosticFromMessageChain(chain)); - } - const emitFileKey = !host.useCaseSensitiveFileNames() ? toFileNameLowerCase(emitFilePath) : emitFilePath; - if (emitFilesSeen.has(emitFileKey)) { - blockEmittingOfFile(emitFileName, createCompilerDiagnostic(Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, emitFileName)); - } else { - emitFilesSeen.add(emitFileKey); - } - } - } - } - function getIgnoreDeprecationsVersion() { - const ignoreDeprecations = options.ignoreDeprecations; - if (ignoreDeprecations) { - if (ignoreDeprecations === "5.0") { - return new Version(ignoreDeprecations); - } - reportInvalidIgnoreDeprecations(); - } - return Version.zero; - } - function checkDeprecations(deprecatedIn, removedIn, createDiagnostic, fn) { - const deprecatedInVersion = new Version(deprecatedIn); - const removedInVersion = new Version(removedIn); - const typescriptVersion = new Version(typeScriptVersion2 || versionMajorMinor); - const ignoreDeprecationsVersion = getIgnoreDeprecationsVersion(); - const mustBeRemoved = !(removedInVersion.compareTo(typescriptVersion) === 1 /* GreaterThan */); - const canBeSilenced = !mustBeRemoved && ignoreDeprecationsVersion.compareTo(deprecatedInVersion) === -1 /* LessThan */; - if (mustBeRemoved || canBeSilenced) { - fn((name, value, useInstead) => { - if (mustBeRemoved) { - if (value === void 0) { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name); - } else { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value); - } - } else { - if (value === void 0) { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn); - } else { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn); - } - } - }); - } - } - function verifyDeprecatedCompilerOptions() { - function createDiagnostic(name, value, useInstead, message, ...args) { - if (useInstead) { - const details = chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Use_0_instead, - useInstead - ); - const chain = chainDiagnosticMessages(details, message, ...args); - createDiagnosticForOption( - /*onKey*/ - !value, - name, - /*option2*/ - void 0, - chain - ); - } else { - createDiagnosticForOption( - /*onKey*/ - !value, - name, - /*option2*/ - void 0, - message, - ...args - ); - } - } - checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => { - if (options.target === 0 /* ES3 */) { - createDeprecatedDiagnostic("target", "ES3"); - } - if (options.noImplicitUseStrict) { - createDeprecatedDiagnostic("noImplicitUseStrict"); - } - if (options.keyofStringsOnly) { - createDeprecatedDiagnostic("keyofStringsOnly"); - } - if (options.suppressExcessPropertyErrors) { - createDeprecatedDiagnostic("suppressExcessPropertyErrors"); - } - if (options.suppressImplicitAnyIndexErrors) { - createDeprecatedDiagnostic("suppressImplicitAnyIndexErrors"); - } - if (options.noStrictGenericChecks) { - createDeprecatedDiagnostic("noStrictGenericChecks"); - } - if (options.charset) { - createDeprecatedDiagnostic("charset"); - } - if (options.out) { - createDeprecatedDiagnostic( - "out", - /*value*/ - void 0, - "outFile" - ); - } - if (options.importsNotUsedAsValues) { - createDeprecatedDiagnostic( - "importsNotUsedAsValues", - /*value*/ - void 0, - "verbatimModuleSyntax" - ); - } - if (options.preserveValueImports) { - createDeprecatedDiagnostic( - "preserveValueImports", - /*value*/ - void 0, - "verbatimModuleSyntax" - ); - } - }); - } - function verifyDeprecatedProjectReference(ref, parentFile, index) { - function createDiagnostic(_name, _value, _useInstead, message, ...args) { - createDiagnosticForReference(parentFile, index, message, ...args); - } - checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => { - if (ref.prepend) { - createDeprecatedDiagnostic("prepend"); - } - }); - } - function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) { - programDiagnostics.addFileProcessingDiagnostic({ - kind: 1 /* FilePreprocessingFileExplainingDiagnostic */, - file: file && file.path, - fileProcessingReason, - diagnostic, - args - }); - } - function verifyProjectReferences() { - const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0; - forEachProjectReference( - projectReferences, - resolvedProjectReferences, - (resolvedRef, parent, index) => { - const ref = (parent ? parent.commandLine.projectReferences : projectReferences)[index]; - const parentFile = parent && parent.sourceFile; - verifyDeprecatedProjectReference(ref, parentFile, index); - if (!resolvedRef) { - createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path); - return; - } - const options2 = resolvedRef.commandLine.options; - if (!options2.composite || options2.noEmit) { - const inputs = parent ? parent.commandLine.fileNames : rootNames; - if (inputs.length) { - if (!options2.composite) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path); - if (options2.noEmit) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path); - } - } - if (!parent && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options2)) { - createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); - hasEmitBlockingDiagnostics.set(toPath3(buildInfoPath), true); - } - } - ); - } - function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, ...args) { - let needCompilerDiagnostic = true; - forEachOptionPathsSyntax((pathProp) => { - if (isObjectLiteralExpression(pathProp.initializer)) { - forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => { - const initializer = keyProps.initializer; - if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args)); - needCompilerDiagnostic = false; - } - }); - } - }); - if (needCompilerDiagnostic) { - createCompilerOptionsDiagnostic(message, ...args); - } - } - function createDiagnosticForOptionPaths(onKey, key, message, ...args) { - let needCompilerDiagnostic = true; - forEachOptionPathsSyntax((pathProp) => { - if (isObjectLiteralExpression(pathProp.initializer) && createOptionDiagnosticInObjectLiteralSyntax( - pathProp.initializer, - onKey, - key, - /*key2*/ - void 0, - message, - ...args - )) { - needCompilerDiagnostic = false; - } - }); - if (needCompilerDiagnostic) { - createCompilerOptionsDiagnostic(message, ...args); - } - } - function forEachOptionPathsSyntax(callback) { - return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback); - } - function createDiagnosticForOptionName(message, option1, option2, option3) { - createDiagnosticForOption( - /*onKey*/ - true, - option1, - option2, - message, - option1, - option2, - option3 - ); - } - function createOptionValueDiagnostic(option1, message, ...args) { - createDiagnosticForOption( - /*onKey*/ - false, - option1, - /*option2*/ - void 0, - message, - ...args - ); - } - function createDiagnosticForReference(sourceFile, index, message, ...args) { - const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); - if (referencesSyntax && referencesSyntax.elements.length > index) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args)); - } else { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args)); - } - } - function createDiagnosticForOption(onKey, option1, option2, message, ...args) { - const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax(); - const needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax || !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, ...args); - if (needCompilerDiagnostic) { - createCompilerOptionsDiagnostic(message, ...args); - } - } - function createCompilerOptionsDiagnostic(message, ...args) { - const compilerOptionsProperty = getCompilerOptionsPropertySyntax(); - if (compilerOptionsProperty) { - if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message)); - } else { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args)); - } - } else if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message)); - } else { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args)); - } - } - function getCompilerOptionsObjectLiteralSyntax() { - if (_compilerOptionsObjectLiteralSyntax === void 0) { - const compilerOptionsProperty = getCompilerOptionsPropertySyntax(); - _compilerOptionsObjectLiteralSyntax = compilerOptionsProperty ? tryCast(compilerOptionsProperty.initializer, isObjectLiteralExpression) || false : false; - } - return _compilerOptionsObjectLiteralSyntax || void 0; - } - function getCompilerOptionsPropertySyntax() { - if (_compilerOptionsPropertySyntax === void 0) { - _compilerOptionsPropertySyntax = forEachPropertyAssignment( - getTsConfigObjectLiteralExpression(options.configFile), - "compilerOptions", - identity - ) || false; - } - return _compilerOptionsPropertySyntax || void 0; - } - function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, ...args) { - let needsCompilerDiagnostic = false; - forEachPropertyAssignment(objectLiteral, key1, (prop) => { - if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message)); - } else { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args)); - } - needsCompilerDiagnostic = true; - }, key2); - return needsCompilerDiagnostic; - } - function blockEmittingOfFile(emitFileName, diag2) { - hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true); - programDiagnostics.addConfigDiagnostic(diag2); - } - function isEmittedFile(file) { - if (options.noEmit) { - return false; - } - const filePath = toPath3(file); - if (getSourceFileByPath(filePath)) { - return false; - } - const out = options.outFile; - if (out) { - return isSameFile(filePath, out) || isSameFile(filePath, removeFileExtension(out) + ".d.ts" /* Dts */); - } - if (options.declarationDir && containsPath(options.declarationDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames())) { - return true; - } - if (options.outDir) { - return containsPath(options.outDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames()); - } - if (fileExtensionIsOneOf(filePath, supportedJSExtensionsFlat) || isDeclarationFileName(filePath)) { - const filePathWithoutExtension = removeFileExtension(filePath); - return !!getSourceFileByPath(filePathWithoutExtension + ".ts" /* Ts */) || !!getSourceFileByPath(filePathWithoutExtension + ".tsx" /* Tsx */); - } - return false; - } - function isSameFile(file1, file2) { - return comparePaths(file1, file2, currentDirectory, !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */; - } - function getSymlinkCache() { - if (host.getSymlinkCache) { - return host.getSymlinkCache(); - } - if (!symlinks) { - symlinks = createSymlinkCache(currentDirectory, getCanonicalFileName); - } - if (files && !symlinks.hasProcessedResolutions()) { - symlinks.setSymlinksFromResolutions(forEachResolvedModule, forEachResolvedTypeReferenceDirective, automaticTypeDirectiveResolutions); - } - return symlinks; - } - function getModeForUsageLocation2(file, usage) { - return getModeForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); - } - function getEmitSyntaxForUsageLocation(file, usage) { - return getEmitSyntaxForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); - } - function getModeForResolutionAtIndex(file, index) { - return getModeForUsageLocation2(file, getModuleNameStringLiteralAt(file, index)); - } - function getDefaultResolutionModeForFile2(sourceFile) { - return getDefaultResolutionModeForFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getImpliedNodeFormatForEmit(sourceFile) { - return getImpliedNodeFormatForEmitWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getEmitModuleFormatOfFile(sourceFile) { - return getEmitModuleFormatOfFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function shouldTransformImportCall(sourceFile) { - return shouldTransformImportCallWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getModeForTypeReferenceDirectiveInFile(ref, sourceFile) { - return ref.resolutionMode || getDefaultResolutionModeForFile2(sourceFile); - } -} -function shouldTransformImportCallWorker(sourceFile, options) { - const moduleKind = getEmitModuleKind(options); - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */) { - return false; - } - return getEmitModuleFormatOfFileWorker(sourceFile, options) < 5 /* ES2015 */; -} -function getEmitModuleFormatOfFileWorker(sourceFile, options) { - return getImpliedNodeFormatForEmitWorker(sourceFile, options) ?? getEmitModuleKind(options); -} -function getImpliedNodeFormatForEmitWorker(sourceFile, options) { - var _a, _b; - const moduleKind = getEmitModuleKind(options); - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - return sourceFile.impliedNodeFormat; - } - if (sourceFile.impliedNodeFormat === 1 /* CommonJS */ && (((_a = sourceFile.packageJsonScope) == null ? void 0 : _a.contents.packageJsonContent.type) === "commonjs" || fileExtensionIsOneOf(sourceFile.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */]))) { - return 1 /* CommonJS */; - } - if (sourceFile.impliedNodeFormat === 99 /* ESNext */ && (((_b = sourceFile.packageJsonScope) == null ? void 0 : _b.contents.packageJsonContent.type) === "module" || fileExtensionIsOneOf(sourceFile.fileName, [".mjs" /* Mjs */, ".mts" /* Mts */]))) { - return 99 /* ESNext */; - } - return void 0; -} -function getDefaultResolutionModeForFileWorker(sourceFile, options) { - return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmitWorker(sourceFile, options) : void 0; -} -function updateHostForUseSourceOfProjectReferenceRedirect(host) { - let setOfDeclarationDirectories; - const originalFileExists = host.compilerHost.fileExists; - const originalDirectoryExists = host.compilerHost.directoryExists; - const originalGetDirectories = host.compilerHost.getDirectories; - const originalRealpath = host.compilerHost.realpath; - if (!host.useSourceOfProjectReferenceRedirect) return { onProgramCreateComplete: noop, fileExists }; - host.compilerHost.fileExists = fileExists; - let directoryExists; - if (originalDirectoryExists) { - directoryExists = host.compilerHost.directoryExists = (path) => { - if (originalDirectoryExists.call(host.compilerHost, path)) { - handleDirectoryCouldBeSymlink(path); - return true; - } - if (!host.getResolvedProjectReferences()) return false; - if (!setOfDeclarationDirectories) { - setOfDeclarationDirectories = /* @__PURE__ */ new Set(); - host.forEachResolvedProjectReference((ref) => { - const out = ref.commandLine.options.outFile; - if (out) { - setOfDeclarationDirectories.add(getDirectoryPath(host.toPath(out))); - } else { - const declarationDir = ref.commandLine.options.declarationDir || ref.commandLine.options.outDir; - if (declarationDir) { - setOfDeclarationDirectories.add(host.toPath(declarationDir)); - } - } - }); - } - return fileOrDirectoryExistsUsingSource( - path, - /*isFile*/ - false - ); - }; - } - if (originalGetDirectories) { - host.compilerHost.getDirectories = (path) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path) ? originalGetDirectories.call(host.compilerHost, path) : []; - } - if (originalRealpath) { - host.compilerHost.realpath = (s) => { - var _a; - return ((_a = host.getSymlinkCache().getSymlinkedFiles()) == null ? void 0 : _a.get(host.toPath(s))) || originalRealpath.call(host.compilerHost, s); - }; - } - return { onProgramCreateComplete, fileExists, directoryExists }; - function onProgramCreateComplete() { - host.compilerHost.fileExists = originalFileExists; - host.compilerHost.directoryExists = originalDirectoryExists; - host.compilerHost.getDirectories = originalGetDirectories; - } - function fileExists(file) { - if (originalFileExists.call(host.compilerHost, file)) return true; - if (!host.getResolvedProjectReferences()) return false; - if (!isDeclarationFileName(file)) return false; - return fileOrDirectoryExistsUsingSource( - file, - /*isFile*/ - true - ); - } - function fileExistsIfProjectReferenceDts(file) { - const source = host.getSourceOfProjectReferenceRedirect(host.toPath(file)); - return source !== void 0 ? isString(source) ? originalFileExists.call(host.compilerHost, source) : true : void 0; - } - function directoryExistsIfProjectReferenceDeclDir(dir) { - const dirPath = host.toPath(dir); - const dirPathWithTrailingDirectorySeparator = `${dirPath}${directorySeparator}`; - return forEachKey( - setOfDeclarationDirectories, - (declDirPath) => dirPath === declDirPath || // Any parent directory of declaration dir - startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) || // Any directory inside declaration dir - startsWith(dirPath, `${declDirPath}/`) - ); - } - function handleDirectoryCouldBeSymlink(directory) { - var _a; - if (!host.getResolvedProjectReferences() || containsIgnoredPath(directory)) return; - if (!originalRealpath || !directory.includes(nodeModulesPathPart)) return; - const symlinkCache = host.getSymlinkCache(); - const directoryPath = ensureTrailingDirectorySeparator(host.toPath(directory)); - if ((_a = symlinkCache.getSymlinkedDirectories()) == null ? void 0 : _a.has(directoryPath)) return; - const real = normalizePath(originalRealpath.call(host.compilerHost, directory)); - let realPath2; - if (real === directory || (realPath2 = ensureTrailingDirectorySeparator(host.toPath(real))) === directoryPath) { - symlinkCache.setSymlinkedDirectory(directoryPath, false); - return; - } - symlinkCache.setSymlinkedDirectory(directory, { - real: ensureTrailingDirectorySeparator(real), - realPath: realPath2 - }); - } - function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { - var _a; - const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); - const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); - if (result !== void 0) return result; - const symlinkCache = host.getSymlinkCache(); - const symlinkedDirectories = symlinkCache.getSymlinkedDirectories(); - if (!symlinkedDirectories) return false; - const fileOrDirectoryPath = host.toPath(fileOrDirectory); - if (!fileOrDirectoryPath.includes(nodeModulesPathPart)) return false; - if (isFile && ((_a = symlinkCache.getSymlinkedFiles()) == null ? void 0 : _a.has(fileOrDirectoryPath))) return true; - return firstDefinedIterator( - symlinkedDirectories.entries(), - ([directoryPath, symlinkedDirectory]) => { - if (!symlinkedDirectory || !startsWith(fileOrDirectoryPath, directoryPath)) return void 0; - const result2 = fileOrDirectoryExistsUsingSource2(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath)); - if (isFile && result2) { - const absolutePath = getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory()); - symlinkCache.setSymlinkedFile( - fileOrDirectoryPath, - `${symlinkedDirectory.real}${absolutePath.replace(new RegExp(directoryPath, "i"), "")}` - ); - } - return result2; - } - ) || false; - } -} -var emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true }; -function handleNoEmitOptions(program, sourceFile, writeFile2, cancellationToken) { - const options = program.getCompilerOptions(); - if (options.noEmit) { - return sourceFile ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile2, cancellationToken); - } - if (!options.noEmitOnError) return void 0; - let diagnostics = [ - ...program.getOptionsDiagnostics(cancellationToken), - ...program.getSyntacticDiagnostics(sourceFile, cancellationToken), - ...program.getGlobalDiagnostics(cancellationToken), - ...program.getSemanticDiagnostics(sourceFile, cancellationToken) - ]; - if (diagnostics.length === 0 && getEmitDeclarations(program.getCompilerOptions())) { - diagnostics = program.getDeclarationDiagnostics( - /*sourceFile*/ - void 0, - cancellationToken - ); - } - if (!diagnostics.length) return void 0; - let emittedFiles; - if (!sourceFile) { - const emitResult = program.emitBuildInfo(writeFile2, cancellationToken); - if (emitResult.diagnostics) diagnostics = [...diagnostics, ...emitResult.diagnostics]; - emittedFiles = emitResult.emittedFiles; - } - return { diagnostics, sourceMaps: void 0, emittedFiles, emitSkipped: true }; -} -function filterSemanticDiagnostics(diagnostic, option) { - return filter(diagnostic, (d) => !d.skippedOn || !option[d.skippedOn]); -} -function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host) { - return { - fileExists: (f) => directoryStructureHost.fileExists(f), - readDirectory(root, extensions, excludes, includes, depth) { - Debug.assertIsDefined(directoryStructureHost.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"); - return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); - }, - readFile: (f) => directoryStructureHost.readFile(f), - directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), - getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), - realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), - useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), - getCurrentDirectory: () => host.getCurrentDirectory(), - onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, - trace: host.trace ? (s) => host.trace(s) : void 0 - }; -} -function resolveProjectReferencePath(ref) { - return resolveConfigFileProjectName(ref.path); -} -function getResolutionDiagnostic(options, { extension }, { isDeclarationFile }) { - switch (extension) { - case ".ts" /* Ts */: - case ".d.ts" /* Dts */: - case ".mts" /* Mts */: - case ".d.mts" /* Dmts */: - case ".cts" /* Cts */: - case ".d.cts" /* Dcts */: - return void 0; - case ".tsx" /* Tsx */: - return needJsx(); - case ".jsx" /* Jsx */: - return needJsx() || needAllowJs(); - case ".js" /* Js */: - case ".mjs" /* Mjs */: - case ".cjs" /* Cjs */: - return needAllowJs(); - case ".json" /* Json */: - return needResolveJsonModule(); - default: - return needAllowArbitraryExtensions(); - } - function needJsx() { - return options.jsx ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set; - } - function needAllowJs() { - return getAllowJSCompilerOption(options) || !getStrictOptionValue(options, "noImplicitAny") ? void 0 : Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type; - } - function needResolveJsonModule() { - return getResolveJsonModule(options) ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used; - } - function needAllowArbitraryExtensions() { - return isDeclarationFile || options.allowArbitraryExtensions ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set; - } -} -function getModuleNames({ imports, moduleAugmentations }) { - const res = imports.map((i) => i); - for (const aug of moduleAugmentations) { - if (aug.kind === 11 /* StringLiteral */) { - res.push(aug); - } - } - return res; -} -function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) { - if (index < imports.length) return imports[index]; - let augIndex = imports.length; - for (const aug of moduleAugmentations) { - if (aug.kind === 11 /* StringLiteral */) { - if (index === augIndex) return aug; - augIndex++; - } - } - Debug.fail("should never ask for module name at index higher than possible module name"); -} - -// src/compiler/programDiagnostics.ts -function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) { - let computedDiagnostics; - let fileReasons = createMultiMap(); - let fileProcessingDiagnostics; - let commonSourceDirectory; - let configDiagnostics; - let lazyConfigDiagnostics; - let fileReasonsToChain; - let reasonToRelatedInfo; - return { - addConfigDiagnostic(diag2) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2); - }, - addLazyConfigDiagnostic(file, message, ...args) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (lazyConfigDiagnostics ?? (lazyConfigDiagnostics = [])).push({ file, diagnostic: message, args }); - }, - addFileProcessingDiagnostic(diag2) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push(diag2); - }, - setCommonSourceDirectory(directory) { - commonSourceDirectory = directory; - }, - reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) { - fileReasons = oldProgramDiagnostics.getFileReasons(); - fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics(); - if (isConfigIdentical) { - commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory(); - configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics(); - lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics(); - } - }, - getFileProcessingDiagnostics() { - return fileProcessingDiagnostics; - }, - getFileReasons() { - return fileReasons; - }, - getCommonSourceDirectory() { - return commonSourceDirectory; - }, - getConfigDiagnostics() { - return configDiagnostics; - }, - getLazyConfigDiagnostics() { - return lazyConfigDiagnostics; - }, - getCombinedDiagnostics(program) { - if (computedDiagnostics) { - return computedDiagnostics; - } - computedDiagnostics = createDiagnosticCollection(); - configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d)); - fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => { - switch (diagnostic.kind) { - case 1 /* FilePreprocessingFileExplainingDiagnostic */: - return computedDiagnostics.add( - createDiagnosticExplainingFile( - program, - diagnostic.file && program.getSourceFileByPath(diagnostic.file), - diagnostic.fileProcessingReason, - diagnostic.diagnostic, - diagnostic.args || emptyArray - ) - ); - case 0 /* FilePreprocessingLibReferenceDiagnostic */: - return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic)); - case 2 /* ResolutionDiagnostics */: - return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d)); - default: - Debug.assertNever(diagnostic); - } - }); - lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach( - ({ file, diagnostic, args }) => computedDiagnostics.add( - createDiagnosticExplainingFile( - program, - file, - /*fileProcessingReason*/ - void 0, - diagnostic, - args - ) - ) - ); - fileReasonsToChain = void 0; - reasonToRelatedInfo = void 0; - return computedDiagnostics; - } - }; - function filePreprocessingLibreferenceDiagnostic(program, { reason }) { - const { file, pos, end } = getReferencedFileLocation(program, reason); - const libReference = file.libReferenceDirectives[reason.index]; - const libName = getLibNameFromLibReference(libReference); - const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts"); - const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity); - return createFileDiagnostic( - file, - Debug.checkDefined(pos), - Debug.checkDefined(end) - pos, - suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0, - libName, - suggestion - ); - } - function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) { - let seenReasons; - let fileIncludeReasons; - let relatedInfo; - let fileIncludeReasonDetails; - let redirectInfo; - let chain; - const reasons = file && fileReasons.get(file.path); - let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0; - let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path)); - if (cachedChain) { - if (cachedChain.fileIncludeReasonDetails) { - seenReasons = new Set(reasons); - reasons == null ? void 0 : reasons.forEach(populateRelatedInfo); - } else { - reasons == null ? void 0 : reasons.forEach(processReason); - } - redirectInfo = cachedChain.redirectInfo; - } else { - reasons == null ? void 0 : reasons.forEach(processReason); - redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file)); - } - if (fileProcessingReason) processReason(fileProcessingReason); - const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length); - if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0; - if (seenReasons && cachedChain) { - if (cachedChain.details && !processedExtraReason) { - chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args ?? emptyArray); - } else if (cachedChain.fileIncludeReasonDetails) { - if (!processedExtraReason) { - if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { - fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails; - } else { - fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length); - } - } else { - if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { - fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]]; - } else { - fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]); - } - } - } - } - if (!chain) { - if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); - chain = chainDiagnosticMessages( - redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, - diagnostic, - ...args || emptyArray - ); - } - if (file) { - if (cachedChain) { - if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) { - cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails; - } - } else { - (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo }); - } - if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next; - } - const location = locationReason && getReferencedFileLocation(program, locationReason); - return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo); - function processReason(reason) { - if (seenReasons == null ? void 0 : seenReasons.has(reason)) return; - (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason); - (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason)); - populateRelatedInfo(reason); - } - function populateRelatedInfo(reason) { - if (!locationReason && isReferencedFile(reason)) { - locationReason = reason; - } else if (locationReason !== reason) { - relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason)); - } - } - function cachedFileIncludeDetailsHasProcessedExtraReason() { - var _a; - return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length); - } - } - function getFileIncludeReasonToRelatedInformation(program, reason) { - let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason); - if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(program, reason) ?? false); - return relatedInfo || void 0; - } - function fileIncludeReasonToRelatedInformation(program, reason) { - if (isReferencedFile(reason)) { - const referenceLocation = getReferencedFileLocation(program, reason); - let message2; - switch (reason.kind) { - case 3 /* Import */: - message2 = Diagnostics.File_is_included_via_import_here; - break; - case 4 /* ReferenceFile */: - message2 = Diagnostics.File_is_included_via_reference_here; - break; - case 5 /* TypeReferenceDirective */: - message2 = Diagnostics.File_is_included_via_type_library_reference_here; - break; - case 7 /* LibReferenceDirective */: - message2 = Diagnostics.File_is_included_via_library_reference_here; - break; - default: - Debug.assertNever(reason); - } - return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic( - referenceLocation.file, - referenceLocation.pos, - referenceLocation.end - referenceLocation.pos, - message2 - ) : void 0; - } - const currentDirectory = program.getCurrentDirectory(); - const rootNames = program.getRootFileNames(); - const options = program.getCompilerOptions(); - if (!options.configFile) return void 0; - let configFileNode; - let message; - switch (reason.kind) { - case 0 /* RootFile */: - if (!options.configFile.configFileSpecs) return void 0; - const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory); - const matchedByFiles = getMatchedFileSpec(program, fileName); - if (matchedByFiles) { - configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles); - message = Diagnostics.File_is_matched_by_files_list_specified_here; - break; - } - const matchedByInclude = getMatchedIncludeSpec(program, fileName); - if (!matchedByInclude || !isString(matchedByInclude)) return void 0; - configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude); - message = Diagnostics.File_is_matched_by_include_pattern_specified_here; - break; - case 1 /* SourceFromProjectReference */: - case 2 /* OutputFromProjectReference */: - const resolvedProjectReferences = program.getResolvedProjectReferences(); - const projectReferences = program.getProjectReferences(); - const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]); - const referenceInfo = forEachProjectReference( - projectReferences, - resolvedProjectReferences, - (resolvedRef, parent, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent == null ? void 0 : parent.sourceFile) || options.configFile, index: index2 } : void 0 - ); - if (!referenceInfo) return void 0; - const { sourceFile, index } = referenceInfo; - const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); - return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile( - sourceFile, - referencesSyntax.elements[index], - reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here - ) : void 0; - case 8 /* AutomaticTypeDirectiveFile */: - if (!options.types) return void 0; - configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference); - message = Diagnostics.File_is_entry_point_of_type_library_specified_here; - break; - case 6 /* LibFile */: - if (reason.index !== void 0) { - configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options.lib[reason.index]); - message = Diagnostics.File_is_library_specified_here; - break; - } - const target = getNameOfScriptTarget(getEmitScriptTarget(options)); - configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0; - message = Diagnostics.File_is_default_library_for_target_specified_here; - break; - default: - Debug.assertNever(reason); - } - return configFileNode && createDiagnosticForNodeInSourceFile( - options.configFile, - configFileNode, - message - ); - } -} - -// src/compiler/builderState.ts -var BuilderState; -((BuilderState2) => { - function createManyToManyPathMap() { - function create2(forward, reverse, deleted) { - const map2 = { - getKeys: (v) => reverse.get(v), - getValues: (k) => forward.get(k), - keys: () => forward.keys(), - size: () => forward.size, - deleteKey: (k) => { - (deleted || (deleted = /* @__PURE__ */ new Set())).add(k); - const set = forward.get(k); - if (!set) { - return false; - } - set.forEach((v) => deleteFromMultimap(reverse, v, k)); - forward.delete(k); - return true; - }, - set: (k, vSet) => { - deleted == null ? void 0 : deleted.delete(k); - const existingVSet = forward.get(k); - forward.set(k, vSet); - existingVSet == null ? void 0 : existingVSet.forEach((v) => { - if (!vSet.has(v)) { - deleteFromMultimap(reverse, v, k); - } - }); - vSet.forEach((v) => { - if (!(existingVSet == null ? void 0 : existingVSet.has(v))) { - addToMultimap(reverse, v, k); - } - }); - return map2; - } - }; - return map2; - } - return create2( - /* @__PURE__ */ new Map(), - /* @__PURE__ */ new Map(), - /*deleted*/ - void 0 - ); - } - BuilderState2.createManyToManyPathMap = createManyToManyPathMap; - function addToMultimap(map2, k, v) { - let set = map2.get(k); - if (!set) { - set = /* @__PURE__ */ new Set(); - map2.set(k, set); - } - set.add(v); - } - function deleteFromMultimap(map2, k, v) { - const set = map2.get(k); - if (set == null ? void 0 : set.delete(v)) { - if (!set.size) { - map2.delete(k); - } - return true; - } - return false; - } - function getReferencedFilesFromImportedModuleSymbol(symbol) { - return mapDefined(symbol.declarations, (declaration) => { - var _a; - return (_a = getSourceFileOfNode(declaration)) == null ? void 0 : _a.resolvedPath; - }); - } - function getReferencedFilesFromImportLiteral(checker, importName) { - const symbol = checker.getSymbolAtLocation(importName); - return symbol && getReferencedFilesFromImportedModuleSymbol(symbol); - } - function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) { - return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName); - } - function getReferencedFiles(program, sourceFile, getCanonicalFileName) { - let referencedFiles; - if (sourceFile.imports && sourceFile.imports.length > 0) { - const checker = program.getTypeChecker(); - for (const importName of sourceFile.imports) { - const declarationSourceFilePaths = getReferencedFilesFromImportLiteral(checker, importName); - declarationSourceFilePaths == null ? void 0 : declarationSourceFilePaths.forEach(addReferencedFile); - } - } - const sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath); - if (sourceFile.referencedFiles && sourceFile.referencedFiles.length > 0) { - for (const referencedFile of sourceFile.referencedFiles) { - const referencedPath = getReferencedFileFromFileName(program, referencedFile.fileName, sourceFileDirectory, getCanonicalFileName); - addReferencedFile(referencedPath); - } - } - program.forEachResolvedTypeReferenceDirective(({ resolvedTypeReferenceDirective }) => { - if (!resolvedTypeReferenceDirective) { - return; - } - const fileName = resolvedTypeReferenceDirective.resolvedFileName; - const typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName); - addReferencedFile(typeFilePath); - }, sourceFile); - if (sourceFile.moduleAugmentations.length) { - const checker = program.getTypeChecker(); - for (const moduleName of sourceFile.moduleAugmentations) { - if (!isStringLiteral(moduleName)) continue; - const symbol = checker.getSymbolAtLocation(moduleName); - if (!symbol) continue; - addReferenceFromAmbientModule(symbol); - } - } - for (const ambientModule of program.getTypeChecker().getAmbientModules()) { - if (ambientModule.declarations && ambientModule.declarations.length > 1) { - addReferenceFromAmbientModule(ambientModule); - } - } - return referencedFiles; - function addReferenceFromAmbientModule(symbol) { - if (!symbol.declarations) { - return; - } - for (const declaration of symbol.declarations) { - const declarationSourceFile = getSourceFileOfNode(declaration); - if (declarationSourceFile && declarationSourceFile !== sourceFile) { - addReferencedFile(declarationSourceFile.resolvedPath); - } - } - } - function addReferencedFile(referencedPath) { - (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath); - } - } - function canReuseOldState(newReferencedMap, oldState) { - return oldState && !oldState.referencedMap === !newReferencedMap; - } - BuilderState2.canReuseOldState = canReuseOldState; - function createReferencedMap(options) { - return options.module !== 0 /* None */ && !options.outFile ? createManyToManyPathMap() : void 0; - } - BuilderState2.createReferencedMap = createReferencedMap; - function create(newProgram, oldState, disableUseFileVersionAsSignature) { - var _a, _b; - const fileInfos = /* @__PURE__ */ new Map(); - const options = newProgram.getCompilerOptions(); - const referencedMap = createReferencedMap(options); - const useOldState = canReuseOldState(referencedMap, oldState); - newProgram.getTypeChecker(); - for (const sourceFile of newProgram.getSourceFiles()) { - const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set"); - const oldUncommittedSignature = useOldState ? (_a = oldState.oldSignatures) == null ? void 0 : _a.get(sourceFile.resolvedPath) : void 0; - const signature = oldUncommittedSignature === void 0 ? useOldState ? (_b = oldState.fileInfos.get(sourceFile.resolvedPath)) == null ? void 0 : _b.signature : void 0 : oldUncommittedSignature || void 0; - if (referencedMap) { - const newReferences = getReferencedFiles(newProgram, sourceFile, newProgram.getCanonicalFileName); - if (newReferences) { - referencedMap.set(sourceFile.resolvedPath, newReferences); - } - } - fileInfos.set(sourceFile.resolvedPath, { - version: version2, - signature, - // No need to calculate affectsGlobalScope with --out since its not used at all - affectsGlobalScope: !options.outFile ? isFileAffectingGlobalScope(sourceFile) || void 0 : void 0, - impliedFormat: sourceFile.impliedNodeFormat - }); - } - return { - fileInfos, - referencedMap, - useFileVersionAsSignature: !disableUseFileVersionAsSignature && !useOldState - }; - } - BuilderState2.create = create; - function releaseCache2(state) { - state.allFilesExcludingDefaultLibraryFile = void 0; - state.allFileNames = void 0; - } - BuilderState2.releaseCache = releaseCache2; - function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) { - var _a; - const result = getFilesAffectedByWithOldState( - state, - programOfThisState, - path, - cancellationToken, - host - ); - (_a = state.oldSignatures) == null ? void 0 : _a.clear(); - return result; - } - BuilderState2.getFilesAffectedBy = getFilesAffectedBy; - function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) { - const sourceFile = programOfThisState.getSourceFileByPath(path); - if (!sourceFile) { - return emptyArray; - } - if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) { - return [sourceFile]; - } - return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host); - } - BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState; - function updateSignatureOfFile(state, signature, path) { - state.fileInfos.get(path).signature = signature; - (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path); - } - BuilderState2.updateSignatureOfFile = updateSignatureOfFile; - function computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, onNewSignature) { - programOfThisState.emit( - sourceFile, - (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => { - Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`); - onNewSignature( - computeSignatureWithDiagnostics( - programOfThisState, - sourceFile, - text, - host, - data - ), - sourceFiles - ); - }, - cancellationToken, - 2 /* BuilderSignature */, - /*customTransformers*/ - void 0, - /*forceDtsEmit*/ - true - ); - } - BuilderState2.computeDtsSignature = computeDtsSignature; - function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) { - var _a; - if ((_a = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a.has(sourceFile.resolvedPath)) return false; - const info = state.fileInfos.get(sourceFile.resolvedPath); - const prevSignature = info.signature; - let latestSignature; - if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) { - computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, (signature) => { - latestSignature = signature; - if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, 0 /* ComputedDts */); - }); - } - if (latestSignature === void 0) { - latestSignature = sourceFile.version; - if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, 2 /* UsedVersion */); - } - (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false); - (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath); - info.signature = latestSignature; - return latestSignature !== prevSignature; - } - BuilderState2.updateShapeSignature = updateShapeSignature; - function getAllDependencies(state, programOfThisState, sourceFile) { - const compilerOptions = programOfThisState.getCompilerOptions(); - if (compilerOptions.outFile) { - return getAllFileNames(state, programOfThisState); - } - if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) { - return getAllFileNames(state, programOfThisState); - } - const seenMap = /* @__PURE__ */ new Set(); - const queue = [sourceFile.resolvedPath]; - while (queue.length) { - const path = queue.pop(); - if (!seenMap.has(path)) { - seenMap.add(path); - const references = state.referencedMap.getValues(path); - if (references) { - for (const key of references.keys()) { - queue.push(key); - } - } - } - } - return arrayFrom(mapDefinedIterator(seenMap.keys(), (path) => { - var _a; - return ((_a = programOfThisState.getSourceFileByPath(path)) == null ? void 0 : _a.fileName) ?? path; - })); - } - BuilderState2.getAllDependencies = getAllDependencies; - function getAllFileNames(state, programOfThisState) { - if (!state.allFileNames) { - const sourceFiles = programOfThisState.getSourceFiles(); - state.allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles.map((file) => file.fileName); - } - return state.allFileNames; - } - function getReferencedByPaths(state, referencedFilePath) { - const keys = state.referencedMap.getKeys(referencedFilePath); - return keys ? arrayFrom(keys.keys()) : []; - } - BuilderState2.getReferencedByPaths = getReferencedByPaths; - function containsOnlyAmbientModules(sourceFile) { - for (const statement of sourceFile.statements) { - if (!isModuleWithStringLiteralName(statement)) { - return false; - } - } - return true; - } - function containsGlobalScopeAugmentation(sourceFile) { - return some(sourceFile.moduleAugmentations, (augmentation) => isGlobalScopeAugmentation(augmentation.parent)); - } - function isFileAffectingGlobalScope(sourceFile) { - return containsGlobalScopeAugmentation(sourceFile) || !isExternalOrCommonJsModule(sourceFile) && !isJsonSourceFile(sourceFile) && !containsOnlyAmbientModules(sourceFile); - } - function getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, firstSourceFile) { - if (state.allFilesExcludingDefaultLibraryFile) { - return state.allFilesExcludingDefaultLibraryFile; - } - let result; - if (firstSourceFile) addSourceFile(firstSourceFile); - for (const sourceFile of programOfThisState.getSourceFiles()) { - if (sourceFile !== firstSourceFile) { - addSourceFile(sourceFile); - } - } - state.allFilesExcludingDefaultLibraryFile = result || emptyArray; - return state.allFilesExcludingDefaultLibraryFile; - function addSourceFile(sourceFile) { - if (!programOfThisState.isSourceFileDefaultLibrary(sourceFile)) { - (result || (result = [])).push(sourceFile); - } - } - } - BuilderState2.getAllFilesExcludingDefaultLibraryFile = getAllFilesExcludingDefaultLibraryFile; - function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape) { - const compilerOptions = programOfThisState.getCompilerOptions(); - if (compilerOptions && compilerOptions.outFile) { - return [sourceFileWithUpdatedShape]; - } - return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape); - } - function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) { - if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) { - return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape); - } - const compilerOptions = programOfThisState.getCompilerOptions(); - if (compilerOptions && (getIsolatedModules(compilerOptions) || compilerOptions.outFile)) { - return [sourceFileWithUpdatedShape]; - } - const seenFileNamesMap = /* @__PURE__ */ new Map(); - seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape); - const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath); - while (queue.length > 0) { - const currentPath = queue.pop(); - if (!seenFileNamesMap.has(currentPath)) { - const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath); - seenFileNamesMap.set(currentPath, currentSourceFile); - if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) { - queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath)); - } - } - } - return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), (value) => value)); - } -})(BuilderState || (BuilderState = {})); - -// src/compiler/builder.ts -function isBuilderProgramStateWithDefinedProgram(state) { - return state.program !== void 0; -} -function toBuilderProgramStateWithDefinedProgram(state) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - return state; -} -function getBuilderFileEmit(options) { - let result = 1 /* Js */; - if (options.sourceMap) result = result | 2 /* JsMap */; - if (options.inlineSourceMap) result = result | 4 /* JsInlineMap */; - if (getEmitDeclarations(options)) result = result | 24 /* Dts */; - if (options.declarationMap) result = result | 32 /* DtsMap */; - if (options.emitDeclarationOnly) result = result & 56 /* AllDts */; - return result; -} -function getPendingEmitKind(optionsOrEmitKind, oldOptionsOrEmitKind) { - const oldEmitKind = oldOptionsOrEmitKind && (isNumber(oldOptionsOrEmitKind) ? oldOptionsOrEmitKind : getBuilderFileEmit(oldOptionsOrEmitKind)); - const emitKind = isNumber(optionsOrEmitKind) ? optionsOrEmitKind : getBuilderFileEmit(optionsOrEmitKind); - if (oldEmitKind === emitKind) return 0 /* None */; - if (!oldEmitKind || !emitKind) return emitKind; - const diff = oldEmitKind ^ emitKind; - let result = 0 /* None */; - if (diff & 7 /* AllJs */) result = emitKind & 7 /* AllJs */; - if (diff & 8 /* DtsErrors */) result = result | emitKind & 8 /* DtsErrors */; - if (diff & 48 /* AllDtsEmit */) result = result | emitKind & 48 /* AllDtsEmit */; - return result; -} -function hasSameKeys(map1, map2) { - return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key)); -} -function createBuilderProgramState(newProgram, oldState) { - var _a, _b; - const state = BuilderState.create( - newProgram, - oldState, - /*disableUseFileVersionAsSignature*/ - false - ); - state.program = newProgram; - const compilerOptions = newProgram.getCompilerOptions(); - state.compilerOptions = compilerOptions; - const outFilePath = compilerOptions.outFile; - state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); - if (outFilePath && compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === oldState.compilerOptions.outFile) { - state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature); - } - state.changedFilesSet = /* @__PURE__ */ new Set(); - state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0; - state.checkPending = state.compilerOptions.noCheck ? true : void 0; - const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState); - const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0; - let canCopySemanticDiagnostics = useOldState && !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions); - const canCopyEmitSignatures = compilerOptions.composite && (oldState == null ? void 0 : oldState.emitSignatures) && !outFilePath && !compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions); - let canCopyEmitDiagnostics = true; - if (useOldState) { - (_a = oldState.changedFilesSet) == null ? void 0 : _a.forEach((value) => state.changedFilesSet.add(value)); - if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) { - state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit); - state.seenAffectedFiles = /* @__PURE__ */ new Set(); - } - state.programEmitPending = oldState.programEmitPending; - if (outFilePath && state.changedFilesSet.size) { - canCopySemanticDiagnostics = false; - canCopyEmitDiagnostics = false; - } - state.hasErrorsFromOldState = oldState.hasErrors; - } else { - state.buildInfoEmitPending = isIncrementalCompilation(compilerOptions); - } - const referencedMap = state.referencedMap; - const oldReferencedMap = useOldState ? oldState.referencedMap : void 0; - const copyDeclarationFileDiagnostics = canCopySemanticDiagnostics && !compilerOptions.skipLibCheck === !oldCompilerOptions.skipLibCheck; - const copyLibFileDiagnostics = copyDeclarationFileDiagnostics && !compilerOptions.skipDefaultLibCheck === !oldCompilerOptions.skipDefaultLibCheck; - state.fileInfos.forEach((info, sourceFilePath) => { - var _a2; - let oldInfo; - let newReferences; - if (!useOldState || // File wasn't present in old state - !(oldInfo = oldState.fileInfos.get(sourceFilePath)) || // versions dont match - oldInfo.version !== info.version || // Implied formats dont match - oldInfo.impliedFormat !== info.impliedFormat || // Referenced files changed - !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || // Referenced file was deleted in the new program - newReferences && forEachKey(newReferences, (path) => !state.fileInfos.has(path) && oldState.fileInfos.has(path))) { - addFileToChangeSet(sourceFilePath); - } else { - const sourceFile = newProgram.getSourceFileByPath(sourceFilePath); - const emitDiagnostics = canCopyEmitDiagnostics ? (_a2 = oldState.emitDiagnosticsPerFile) == null ? void 0 : _a2.get(sourceFilePath) : void 0; - if (emitDiagnostics) { - (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set( - sourceFilePath, - oldState.hasReusableDiagnostic ? convertToDiagnostics(emitDiagnostics, sourceFilePath, newProgram) : repopulateDiagnostics(emitDiagnostics, newProgram) - ); - } - if (canCopySemanticDiagnostics) { - if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics) return; - if (sourceFile.hasNoDefaultLib && !copyLibFileDiagnostics) return; - const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath); - if (diagnostics) { - state.semanticDiagnosticsPerFile.set( - sourceFilePath, - oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, sourceFilePath, newProgram) : repopulateDiagnostics(diagnostics, newProgram) - ); - (state.semanticDiagnosticsFromOldState ?? (state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set())).add(sourceFilePath); - } - } - } - if (canCopyEmitSignatures) { - const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath); - if (oldEmitSignature) { - (state.emitSignatures ?? (state.emitSignatures = /* @__PURE__ */ new Map())).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature)); - } - } - }); - if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => { - if (state.fileInfos.has(sourceFilePath)) return false; - if (info.affectsGlobalScope) return true; - state.buildInfoEmitPending = true; - return !!outFilePath; - })) { - BuilderState.getAllFilesExcludingDefaultLibraryFile( - state, - newProgram, - /*firstSourceFile*/ - void 0 - ).forEach((file) => addFileToChangeSet(file.resolvedPath)); - } else if (oldCompilerOptions) { - const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions); - if (pendingEmitKind !== 0 /* None */) { - if (!outFilePath) { - newProgram.getSourceFiles().forEach((f) => { - if (!state.changedFilesSet.has(f.resolvedPath)) { - addToAffectedFilesPendingEmit( - state, - f.resolvedPath, - pendingEmitKind - ); - } - }); - Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size); - state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set(); - } else if (!state.changedFilesSet.size) { - state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind; - } - state.buildInfoEmitPending = true; - } - } - if (useOldState && state.semanticDiagnosticsPerFile.size !== state.fileInfos.size && oldState.checkPending !== state.checkPending) state.buildInfoEmitPending = true; - return state; - function addFileToChangeSet(path) { - state.changedFilesSet.add(path); - if (outFilePath) { - canCopySemanticDiagnostics = false; - canCopyEmitDiagnostics = false; - state.semanticDiagnosticsFromOldState = void 0; - state.semanticDiagnosticsPerFile.clear(); - state.emitDiagnosticsPerFile = void 0; - } - state.buildInfoEmitPending = true; - state.programEmitPending = void 0; - } -} -function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) { - return !!options.declarationMap === !!oldOptions.declarationMap ? ( - // Use same format of signature - oldEmitSignature - ) : ( - // Convert to different format - isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0] - ); -} -function repopulateDiagnostics(diagnostics, newProgram) { - if (!diagnostics.length) return diagnostics; - return sameMap(diagnostics, (diag2) => { - if (isString(diag2.messageText)) return diag2; - const repopulatedChain = convertOrRepopulateDiagnosticMessageChain(diag2.messageText, diag2.file, newProgram, (chain) => { - var _a; - return (_a = chain.repopulateInfo) == null ? void 0 : _a.call(chain); - }); - return repopulatedChain === diag2.messageText ? diag2 : { ...diag2, messageText: repopulatedChain }; - }); -} -function convertOrRepopulateDiagnosticMessageChain(chain, sourceFile, newProgram, repopulateInfo) { - const info = repopulateInfo(chain); - if (info === true) { - return { - ...createModeMismatchDetails(sourceFile), - next: convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo) - }; - } else if (info) { - return { - ...createModuleNotFoundChain(sourceFile, newProgram, info.moduleReference, info.mode, info.packageName || info.moduleReference), - next: convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo) - }; - } - const next = convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo); - return next === chain.next ? chain : { ...chain, next }; -} -function convertOrRepopulateDiagnosticMessageChainArray(array, sourceFile, newProgram, repopulateInfo) { - return sameMap(array, (chain) => convertOrRepopulateDiagnosticMessageChain(chain, sourceFile, newProgram, repopulateInfo)); -} -function convertToDiagnostics(diagnostics, diagnosticFilePath, newProgram) { - if (!diagnostics.length) return emptyArray; - let buildInfoDirectory; - return diagnostics.map((diagnostic) => { - const result = convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory); - result.reportsUnnecessary = diagnostic.reportsUnnecessary; - result.reportsDeprecated = diagnostic.reportDeprecated; - result.source = diagnostic.source; - result.skippedOn = diagnostic.skippedOn; - const { relatedInformation } = diagnostic; - result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToDiagnosticRelatedInformation(r, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory)) : [] : void 0; - return result; - }); - function toPathInBuildInfoDirectory(path) { - buildInfoDirectory ?? (buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()))); - return toPath(path, buildInfoDirectory, newProgram.getCanonicalFileName); - } -} -function convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPath3) { - const { file } = diagnostic; - const sourceFile = file !== false ? newProgram.getSourceFileByPath(file ? toPath3(file) : diagnosticFilePath) : void 0; - return { - ...diagnostic, - file: sourceFile, - messageText: isString(diagnostic.messageText) ? diagnostic.messageText : convertOrRepopulateDiagnosticMessageChain(diagnostic.messageText, sourceFile, newProgram, (chain) => chain.info) - }; -} -function releaseCache(state) { - BuilderState.releaseCache(state); - state.program = void 0; -} -function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) { - Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath)); -} -function getNextAffectedFile(state, cancellationToken, host) { - var _a; - while (true) { - const { affectedFiles } = state; - if (affectedFiles) { - const seenAffectedFiles = state.seenAffectedFiles; - let affectedFilesIndex = state.affectedFilesIndex; - while (affectedFilesIndex < affectedFiles.length) { - const affectedFile = affectedFiles[affectedFilesIndex]; - if (!seenAffectedFiles.has(affectedFile.resolvedPath)) { - state.affectedFilesIndex = affectedFilesIndex; - addToAffectedFilesPendingEmit( - state, - affectedFile.resolvedPath, - getBuilderFileEmit(state.compilerOptions) - ); - handleDtsMayChangeOfAffectedFile( - state, - affectedFile, - cancellationToken, - host - ); - return affectedFile; - } - affectedFilesIndex++; - } - state.changedFilesSet.delete(state.currentChangedFilePath); - state.currentChangedFilePath = void 0; - (_a = state.oldSignatures) == null ? void 0 : _a.clear(); - state.affectedFiles = void 0; - } - const nextKey = state.changedFilesSet.keys().next(); - if (nextKey.done) { - return void 0; - } - const compilerOptions = state.program.getCompilerOptions(); - if (compilerOptions.outFile) return state.program; - state.affectedFiles = BuilderState.getFilesAffectedByWithOldState( - state, - state.program, - nextKey.value, - cancellationToken, - host - ); - state.currentChangedFilePath = nextKey.value; - state.affectedFilesIndex = 0; - if (!state.seenAffectedFiles) state.seenAffectedFiles = /* @__PURE__ */ new Set(); - } -} -function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) { - var _a, _b; - if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size) && !state.programEmitPending) return; - if (!emitOnlyDtsFiles && !isForDtsErrors) { - state.affectedFilesPendingEmit = void 0; - state.programEmitPending = void 0; - } - (_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.forEach((emitKind, path) => { - const pending = !isForDtsErrors ? emitKind & 7 /* AllJs */ : emitKind & (7 /* AllJs */ | 48 /* AllDtsEmit */); - if (!pending) state.affectedFilesPendingEmit.delete(path); - else state.affectedFilesPendingEmit.set(path, pending); - }); - if (state.programEmitPending) { - const pending = !isForDtsErrors ? state.programEmitPending & 7 /* AllJs */ : state.programEmitPending & (7 /* AllJs */ | 48 /* AllDtsEmit */); - if (!pending) state.programEmitPending = void 0; - else state.programEmitPending = pending; - } -} -function getPendingEmitKindWithSeen(optionsOrEmitKind, seenOldOptionsOrEmitKind, emitOnlyDtsFiles, isForDtsErrors) { - let pendingKind = getPendingEmitKind(optionsOrEmitKind, seenOldOptionsOrEmitKind); - if (emitOnlyDtsFiles) pendingKind = pendingKind & 56 /* AllDts */; - if (isForDtsErrors) pendingKind = pendingKind & 8 /* DtsErrors */; - return pendingKind; -} -function getBuilderFileEmitAllDts(isForDtsErrors) { - return !isForDtsErrors ? 56 /* AllDts */ : 8 /* DtsErrors */; -} -function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) { - var _a; - if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return void 0; - return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path) => { - var _a2; - const affectedFile = state.program.getSourceFileByPath(path); - if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) { - state.affectedFilesPendingEmit.delete(path); - return void 0; - } - const seenKind = (_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath); - const pendingKind = getPendingEmitKindWithSeen( - emitKind, - seenKind, - emitOnlyDtsFiles, - isForDtsErrors - ); - if (pendingKind) return { affectedFile, emitKind: pendingKind }; - }); -} -function getNextPendingEmitDiagnosticsFile(state, isForDtsErrors) { - var _a; - if (!((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) return void 0; - return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path) => { - var _a2; - const affectedFile = state.program.getSourceFileByPath(path); - if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) { - state.emitDiagnosticsPerFile.delete(path); - return void 0; - } - const seenKind = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath)) || 0 /* None */; - if (!(seenKind & getBuilderFileEmitAllDts(isForDtsErrors))) return { affectedFile, diagnostics, seenKind }; - }); -} -function removeDiagnosticsOfLibraryFiles(state) { - if (!state.cleanedDiagnosticsOfLibFiles) { - state.cleanedDiagnosticsOfLibFiles = true; - const options = state.program.getCompilerOptions(); - forEach(state.program.getSourceFiles(), (f) => state.program.isSourceFileDefaultLibrary(f) && !skipTypeCheckingIgnoringNoCheck(f, options, state.program) && removeSemanticDiagnosticsOf(state, f.resolvedPath)); - } -} -function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) { - removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath); - if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) { - removeDiagnosticsOfLibraryFiles(state); - BuilderState.updateShapeSignature( - state, - state.program, - affectedFile, - cancellationToken, - host - ); - return; - } - if (state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) return; - handleDtsMayChangeOfReferencingExportOfAffectedFile( - state, - affectedFile, - cancellationToken, - host - ); -} -function handleDtsMayChangeOf(state, path, invalidateJsFiles, cancellationToken, host) { - removeSemanticDiagnosticsOf(state, path); - if (!state.changedFilesSet.has(path)) { - const sourceFile = state.program.getSourceFileByPath(path); - if (sourceFile) { - BuilderState.updateShapeSignature( - state, - state.program, - sourceFile, - cancellationToken, - host, - /*useFileVersionAsSignature*/ - true - ); - if (invalidateJsFiles) { - addToAffectedFilesPendingEmit( - state, - path, - getBuilderFileEmit(state.compilerOptions) - ); - } else if (getEmitDeclarations(state.compilerOptions)) { - addToAffectedFilesPendingEmit( - state, - path, - state.compilerOptions.declarationMap ? 56 /* AllDts */ : 24 /* Dts */ - ); - } - } - } -} -function removeSemanticDiagnosticsOf(state, path) { - if (!state.semanticDiagnosticsFromOldState) { - return true; - } - state.semanticDiagnosticsFromOldState.delete(path); - state.semanticDiagnosticsPerFile.delete(path); - return !state.semanticDiagnosticsFromOldState.size; -} -function isChangedSignature(state, path) { - const oldSignature = Debug.checkDefined(state.oldSignatures).get(path) || void 0; - const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature; - return newSignature !== oldSignature; -} -function handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host) { - var _a; - if (!((_a = state.fileInfos.get(filePath)) == null ? void 0 : _a.affectsGlobalScope)) return false; - BuilderState.getAllFilesExcludingDefaultLibraryFile( - state, - state.program, - /*firstSourceFile*/ - void 0 - ).forEach( - (file) => handleDtsMayChangeOf( - state, - file.resolvedPath, - invalidateJsFiles, - cancellationToken, - host - ) - ); - removeDiagnosticsOfLibraryFiles(state); - return true; -} -function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) { - var _a, _b; - if (!state.referencedMap || !state.changedFilesSet.has(affectedFile.resolvedPath)) return; - if (!isChangedSignature(state, affectedFile.resolvedPath)) return; - if (getIsolatedModules(state.compilerOptions)) { - const seenFileNamesMap = /* @__PURE__ */ new Map(); - seenFileNamesMap.set(affectedFile.resolvedPath, true); - const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath); - while (queue.length > 0) { - const currentPath = queue.pop(); - if (!seenFileNamesMap.has(currentPath)) { - seenFileNamesMap.set(currentPath, true); - if (handleDtsMayChangeOfGlobalScope( - state, - currentPath, - /*invalidateJsFiles*/ - false, - cancellationToken, - host - )) return; - handleDtsMayChangeOf( - state, - currentPath, - /*invalidateJsFiles*/ - false, - cancellationToken, - host - ); - if (isChangedSignature(state, currentPath)) { - const currentSourceFile = state.program.getSourceFileByPath(currentPath); - queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath)); - } - } - } - } - const seenFileAndExportsOfFile = /* @__PURE__ */ new Set(); - const invalidateJsFiles = !!((_a = affectedFile.symbol) == null ? void 0 : _a.exports) && !!forEachEntry( - affectedFile.symbol.exports, - (exported) => { - if ((exported.flags & 128 /* ConstEnum */) !== 0) return true; - const aliased = skipAlias(exported, state.program.getTypeChecker()); - if (aliased === exported) return false; - return (aliased.flags & 128 /* ConstEnum */) !== 0 && some(aliased.declarations, (d) => getSourceFileOfNode(d) === affectedFile); - } - ); - (_b = state.referencedMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _b.forEach((exportedFromPath) => { - if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, invalidateJsFiles, cancellationToken, host)) return true; - const references = state.referencedMap.getKeys(exportedFromPath); - return references && forEachKey(references, (filePath) => handleDtsMayChangeOfFileAndExportsOfFile( - state, - filePath, - invalidateJsFiles, - seenFileAndExportsOfFile, - cancellationToken, - host - )); - }); -} -function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, invalidateJsFiles, seenFileAndExportsOfFile, cancellationToken, host) { - var _a; - if (!tryAddToSet(seenFileAndExportsOfFile, filePath)) return void 0; - if (handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host)) return true; - handleDtsMayChangeOf(state, filePath, invalidateJsFiles, cancellationToken, host); - (_a = state.referencedMap.getKeys(filePath)) == null ? void 0 : _a.forEach( - (referencingFilePath) => handleDtsMayChangeOfFileAndExportsOfFile( - state, - referencingFilePath, - invalidateJsFiles, - seenFileAndExportsOfFile, - cancellationToken, - host - ) - ); - return void 0; -} -function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) { - if (state.compilerOptions.noCheck) return emptyArray; - return concatenate( - getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile), - state.program.getProgramDiagnostics(sourceFile) - ); -} -function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) { - semanticDiagnosticsPerFile ?? (semanticDiagnosticsPerFile = state.semanticDiagnosticsPerFile); - const path = sourceFile.resolvedPath; - const cachedDiagnostics = semanticDiagnosticsPerFile.get(path); - if (cachedDiagnostics) { - return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions); - } - const diagnostics = state.program.getBindAndCheckDiagnostics(sourceFile, cancellationToken); - semanticDiagnosticsPerFile.set(path, diagnostics); - state.buildInfoEmitPending = true; - return filterSemanticDiagnostics(diagnostics, state.compilerOptions); -} -function isIncrementalBundleEmitBuildInfo(info) { - var _a; - return !!((_a = info.options) == null ? void 0 : _a.outFile); -} -function isIncrementalBuildInfo(info) { - return !!info.fileNames; -} -function isNonIncrementalBuildInfo(info) { - return !isIncrementalBuildInfo(info) && !!info.root; -} -function ensureHasErrorsForState(state) { - if (state.hasErrors !== void 0) return; - if (isIncrementalCompilation(state.compilerOptions)) { - state.hasErrors = !some(state.program.getSourceFiles(), (f) => { - var _a, _b; - const bindAndCheckDiagnostics = state.semanticDiagnosticsPerFile.get(f.resolvedPath); - return bindAndCheckDiagnostics === void 0 || // Missing semantic diagnostics in cache will be encoded in buildInfo - !!bindAndCheckDiagnostics.length || // cached semantic diagnostics will be encoded in buildInfo - !!((_b = (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(f.resolvedPath)) == null ? void 0 : _b.length); - }) && (hasSyntaxOrGlobalErrors(state) || some(state.program.getSourceFiles(), (f) => !!state.program.getProgramDiagnostics(f).length)); - } else { - state.hasErrors = some(state.program.getSourceFiles(), (f) => { - var _a, _b; - const bindAndCheckDiagnostics = state.semanticDiagnosticsPerFile.get(f.resolvedPath); - return !!(bindAndCheckDiagnostics == null ? void 0 : bindAndCheckDiagnostics.length) || // If has semantic diagnostics - !!((_b = (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(f.resolvedPath)) == null ? void 0 : _b.length); - }) || hasSyntaxOrGlobalErrors(state); - } -} -function hasSyntaxOrGlobalErrors(state) { - return !!state.program.getConfigFileParsingDiagnostics().length || !!state.program.getSyntacticDiagnostics().length || !!state.program.getOptionsDiagnostics().length || !!state.program.getGlobalDiagnostics().length; -} -function getBuildInfoEmitPending(state) { - ensureHasErrorsForState(state); - return state.buildInfoEmitPending ?? (state.buildInfoEmitPending = !!state.hasErrorsFromOldState !== !!state.hasErrors); -} -function getBuildInfo2(state) { - var _a, _b; - const currentDirectory = state.program.getCurrentDirectory(); - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory)); - const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0; - const fileNames = []; - const fileNameToFileId = /* @__PURE__ */ new Map(); - const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath(f, currentDirectory, state.program.getCanonicalFileName))); - ensureHasErrorsForState(state); - if (!isIncrementalCompilation(state.compilerOptions)) { - const buildInfo2 = { - root: arrayFrom(rootFileNames, (r) => relativeToBuildInfo(r)), - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version - }; - return buildInfo2; - } - const root = []; - if (state.compilerOptions.outFile) { - const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => { - const fileId = toFileId(key); - tryAddRoot(key, fileId); - return value.impliedFormat ? { version: value.version, impliedFormat: value.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : value.version; - }); - const buildInfo2 = { - fileNames, - fileInfos: fileInfos2, - root, - resolvedRoot: toResolvedRoot(), - options: toIncrementalBuildInfoCompilerOptions(state.compilerOptions), - semanticDiagnosticsPerFile: !state.changedFilesSet.size ? toIncrementalBuildInfoDiagnostics() : void 0, - emitDiagnosticsPerFile: toIncrementalBuildInfoEmitDiagnostics(), - changeFileSet: toChangeFileSet(), - outSignature: state.outSignature, - latestChangedDtsFile, - pendingEmit: !state.programEmitPending ? void 0 : ( - // Pending is undefined or None is encoded as undefined - state.programEmitPending === getBuilderFileEmit(state.compilerOptions) ? false : ( - // Pending emit is same as deteremined by compilerOptions - state.programEmitPending - ) - ), - // Actual value - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version - }; - return buildInfo2; - } - let fileIdsList; - let fileNamesToFileIdListId; - let emitSignatures; - const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]) => { - var _a2, _b2; - const fileId = toFileId(key); - tryAddRoot(key, fileId); - Debug.assert(fileNames[fileId - 1] === relativeToBuildInfo(key)); - const oldSignature = (_a2 = state.oldSignatures) == null ? void 0 : _a2.get(key); - const actualSignature = oldSignature !== void 0 ? oldSignature || void 0 : value.signature; - if (state.compilerOptions.composite) { - const file = state.program.getSourceFileByPath(key); - if (!isJsonSourceFile(file) && sourceFileMayBeEmitted(file, state.program)) { - const emitSignature = (_b2 = state.emitSignatures) == null ? void 0 : _b2.get(key); - if (emitSignature !== actualSignature) { - emitSignatures = append( - emitSignatures, - emitSignature === void 0 ? fileId : ( - // There is no emit, encode as false - // fileId, signature: emptyArray if signature only differs in dtsMap option than our own compilerOptions otherwise EmitSignature - [fileId, !isString(emitSignature) && emitSignature[0] === actualSignature ? emptyArray : emitSignature] - ) - ); - } - } - } - return value.version === actualSignature ? value.affectsGlobalScope || value.impliedFormat ? ( - // If file version is same as signature, dont serialize signature - { version: value.version, signature: void 0, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } - ) : ( - // If file info only contains version and signature and both are same we can just write string - value.version - ) : actualSignature !== void 0 ? ( - // If signature is not same as version, encode signature in the fileInfo - oldSignature === void 0 ? ( - // If we havent computed signature, use fileInfo as is - value - ) : ( - // Serialize fileInfo with new updated signature - { version: value.version, signature: actualSignature, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } - ) - ) : ( - // Signature of the FileInfo is undefined, serialize it as false - { version: value.version, signature: false, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } - ); - }); - let referencedMap; - if ((_a = state.referencedMap) == null ? void 0 : _a.size()) { - referencedMap = arrayFrom(state.referencedMap.keys()).sort(compareStringsCaseSensitive).map((key) => [ - toFileId(key), - toFileIdListId(state.referencedMap.getValues(key)) - ]); - } - const semanticDiagnosticsPerFile = toIncrementalBuildInfoDiagnostics(); - let affectedFilesPendingEmit; - if ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.size) { - const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions); - const seenFiles = /* @__PURE__ */ new Set(); - for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) { - if (tryAddToSet(seenFiles, path)) { - const file = state.program.getSourceFileByPath(path); - if (!file || !sourceFileMayBeEmitted(file, state.program)) continue; - const fileId = toFileId(path), pendingEmit = state.affectedFilesPendingEmit.get(path); - affectedFilesPendingEmit = append( - affectedFilesPendingEmit, - pendingEmit === fullEmitForOptions ? fileId : ( - // Pending full emit per options - pendingEmit === 24 /* Dts */ ? [fileId] : ( - // Pending on Dts only - [fileId, pendingEmit] - ) - ) - // Anything else - ); - } - } - } - const buildInfo = { - fileNames, - fileIdsList, - fileInfos, - root, - resolvedRoot: toResolvedRoot(), - options: toIncrementalBuildInfoCompilerOptions(state.compilerOptions), - referencedMap, - semanticDiagnosticsPerFile, - emitDiagnosticsPerFile: toIncrementalBuildInfoEmitDiagnostics(), - changeFileSet: toChangeFileSet(), - affectedFilesPendingEmit, - emitSignatures, - latestChangedDtsFile, - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version - }; - return buildInfo; - function relativeToBuildInfoEnsuringAbsolutePath(path) { - return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory)); - } - function relativeToBuildInfo(path) { - return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, state.program.getCanonicalFileName)); - } - function toFileId(path) { - let fileId = fileNameToFileId.get(path); - if (fileId === void 0) { - fileNames.push(relativeToBuildInfo(path)); - fileNameToFileId.set(path, fileId = fileNames.length); - } - return fileId; - } - function toFileIdListId(set) { - const fileIds = arrayFrom(set.keys(), toFileId).sort(compareValues); - const key = fileIds.join(); - let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key); - if (fileIdListId === void 0) { - fileIdsList = append(fileIdsList, fileIds); - (fileNamesToFileIdListId ?? (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length); - } - return fileIdListId; - } - function tryAddRoot(path, fileId) { - const file = state.program.getSourceFile(path); - if (!state.program.getFileIncludeReasons().get(file.path).some((r) => r.kind === 0 /* RootFile */)) return; - if (!root.length) return root.push(fileId); - const last2 = root[root.length - 1]; - const isLastStartEnd = isArray(last2); - if (isLastStartEnd && last2[1] === fileId - 1) return last2[1] = fileId; - if (isLastStartEnd || root.length === 1 || last2 !== fileId - 1) return root.push(fileId); - const lastButOne = root[root.length - 2]; - if (!isNumber(lastButOne) || lastButOne !== last2 - 1) return root.push(fileId); - root[root.length - 2] = [lastButOne, fileId]; - return root.length = root.length - 1; - } - function toResolvedRoot() { - let result; - rootFileNames.forEach((path) => { - const file = state.program.getSourceFileByPath(path); - if (file && path !== file.resolvedPath) { - result = append(result, [toFileId(file.resolvedPath), toFileId(path)]); - } - }); - return result; - } - function toIncrementalBuildInfoCompilerOptions(options) { - let result; - const { optionsNameMap } = getOptionsNameMap(); - for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) { - const optionInfo = optionsNameMap.get(name.toLowerCase()); - if (optionInfo == null ? void 0 : optionInfo.affectsBuildInfo) { - (result || (result = {}))[name] = toReusableCompilerOptionValue( - optionInfo, - options[name] - ); - } - } - return result; - } - function toReusableCompilerOptionValue(option, value) { - if (option) { - Debug.assert(option.type !== "listOrElement"); - if (option.type === "list") { - const values = value; - if (option.element.isFilePath && values.length) { - return values.map(relativeToBuildInfoEnsuringAbsolutePath); - } - } else if (option.isFilePath) { - return relativeToBuildInfoEnsuringAbsolutePath(value); - } - } - return value; - } - function toIncrementalBuildInfoDiagnostics() { - let result; - state.fileInfos.forEach((_value, key) => { - const value = state.semanticDiagnosticsPerFile.get(key); - if (!value) { - if (!state.changedFilesSet.has(key)) result = append(result, toFileId(key)); - } else if (value.length) { - result = append(result, [ - toFileId(key), - toReusableDiagnostic(value, key) - ]); - } - }); - return result; - } - function toIncrementalBuildInfoEmitDiagnostics() { - var _a2; - let result; - if (!((_a2 = state.emitDiagnosticsPerFile) == null ? void 0 : _a2.size)) return result; - for (const key of arrayFrom(state.emitDiagnosticsPerFile.keys()).sort(compareStringsCaseSensitive)) { - const value = state.emitDiagnosticsPerFile.get(key); - result = append(result, [ - toFileId(key), - toReusableDiagnostic(value, key) - ]); - } - return result; - } - function toReusableDiagnostic(diagnostics, diagnosticFilePath) { - Debug.assert(!!diagnostics.length); - return diagnostics.map((diagnostic) => { - const result = toReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath); - result.reportsUnnecessary = diagnostic.reportsUnnecessary; - result.reportDeprecated = diagnostic.reportsDeprecated; - result.source = diagnostic.source; - result.skippedOn = diagnostic.skippedOn; - const { relatedInformation } = diagnostic; - result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => toReusableDiagnosticRelatedInformation(r, diagnosticFilePath)) : [] : void 0; - return result; - }); - } - function toReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath) { - const { file } = diagnostic; - return { - ...diagnostic, - file: file ? file.resolvedPath === diagnosticFilePath ? void 0 : relativeToBuildInfo(file.resolvedPath) : false, - messageText: isString(diagnostic.messageText) ? diagnostic.messageText : toReusableDiagnosticMessageChain(diagnostic.messageText) - }; - } - function toReusableDiagnosticMessageChain(chain) { - if (chain.repopulateInfo) { - return { - info: chain.repopulateInfo(), - next: toReusableDiagnosticMessageChainArray(chain.next) - }; - } - const next = toReusableDiagnosticMessageChainArray(chain.next); - return next === chain.next ? chain : { ...chain, next }; - } - function toReusableDiagnosticMessageChainArray(array) { - if (!array) return array; - return forEach(array, (chain, index) => { - const reusable = toReusableDiagnosticMessageChain(chain); - if (chain === reusable) return void 0; - const result = index > 0 ? array.slice(0, index - 1) : []; - result.push(reusable); - for (let i = index + 1; i < array.length; i++) { - result.push(toReusableDiagnosticMessageChain(array[i])); - } - return result; - }) || array; - } - function toChangeFileSet() { - let changeFileSet; - if (state.changedFilesSet.size) { - for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) { - changeFileSet = append(changeFileSet, toFileId(path)); - } - } - return changeFileSet; - } -} -function getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { - let host; - let newProgram; - let oldProgram; - if (newProgramOrRootNames === void 0) { - Debug.assert(hostOrOptions === void 0); - host = oldProgramOrHost; - oldProgram = configFileParsingDiagnosticsOrOldProgram; - Debug.assert(!!oldProgram); - newProgram = oldProgram.getProgram(); - } else if (isArray(newProgramOrRootNames)) { - oldProgram = configFileParsingDiagnosticsOrOldProgram; - newProgram = createProgram({ - rootNames: newProgramOrRootNames, - options: hostOrOptions, - host: oldProgramOrHost, - oldProgram: oldProgram && oldProgram.getProgramOrUndefined(), - configFileParsingDiagnostics, - projectReferences - }); - host = oldProgramOrHost; - } else { - newProgram = newProgramOrRootNames; - host = hostOrOptions; - oldProgram = oldProgramOrHost; - configFileParsingDiagnostics = configFileParsingDiagnosticsOrOldProgram; - } - return { host, newProgram, oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || emptyArray }; -} -function getTextHandlingSourceMapForSignature(text, data) { - return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text; -} -function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) { - var _a; - text = getTextHandlingSourceMapForSignature(text, data); - let sourceFileDirectory; - if ((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length) { - text += data.diagnostics.map((diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`).join("\n"); - } - return (host.createHash ?? generateDjb2Hash)(text); - function flattenDiagnosticMessageText2(diagnostic) { - return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n"); - } - function locationInfo(diagnostic) { - if (diagnostic.file.resolvedPath === sourceFile.resolvedPath) return `(${diagnostic.start},${diagnostic.length})`; - if (sourceFileDirectory === void 0) sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath); - return `${ensurePathIsNonModuleName(getRelativePathFromDirectory( - sourceFileDirectory, - diagnostic.file.resolvedPath, - program.getCanonicalFileName - ))}(${diagnostic.start},${diagnostic.length})`; - } -} -function computeSignature(text, host, data) { - return (host.createHash ?? generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data)); -} -function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) { - let oldState = oldProgram && oldProgram.state; - if (oldState && newProgram === oldState.program && configFileParsingDiagnostics === newProgram.getConfigFileParsingDiagnostics()) { - newProgram = void 0; - oldState = void 0; - return oldProgram; - } - const state = createBuilderProgramState(newProgram, oldState); - newProgram.getBuildInfo = () => getBuildInfo2(toBuilderProgramStateWithDefinedProgram(state)); - newProgram = void 0; - oldProgram = void 0; - oldState = void 0; - const builderProgram = createRedirectedBuilderProgram(state, configFileParsingDiagnostics); - builderProgram.state = state; - builderProgram.hasChangedEmitSignature = () => !!state.hasChangedEmitSignature; - builderProgram.getAllDependencies = (sourceFile) => BuilderState.getAllDependencies( - state, - Debug.checkDefined(state.program), - sourceFile - ); - builderProgram.getSemanticDiagnostics = getSemanticDiagnostics; - builderProgram.getDeclarationDiagnostics = getDeclarationDiagnostics2; - builderProgram.emit = emit; - builderProgram.releaseProgram = () => releaseCache(state); - if (kind === 0 /* SemanticDiagnosticsBuilderProgram */) { - builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile; - } else if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile; - builderProgram.emitNextAffectedFile = emitNextAffectedFile; - builderProgram.emitBuildInfo = emitBuildInfo; - } else { - notImplemented(); - } - return builderProgram; - function emitBuildInfo(writeFile2, cancellationToken) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (getBuildInfoEmitPending(state)) { - const result = state.program.emitBuildInfo( - writeFile2 || maybeBind(host, host.writeFile), - cancellationToken - ); - state.buildInfoEmitPending = false; - return result; - } - return emitSkippedWithNoDiagnostics; - } - function emitNextAffectedFileOrDtsErrors(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, isForDtsErrors) { - var _a, _b, _c, _d; - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - let affected = getNextAffectedFile(state, cancellationToken, host); - const programEmitKind = getBuilderFileEmit(state.compilerOptions); - let emitKind = !isForDtsErrors ? emitOnlyDtsFiles ? programEmitKind & 56 /* AllDts */ : programEmitKind : 8 /* DtsErrors */; - if (!affected) { - if (!state.compilerOptions.outFile) { - const pendingAffectedFile = getNextAffectedFilePendingEmit( - state, - emitOnlyDtsFiles, - isForDtsErrors - ); - if (pendingAffectedFile) { - ({ affectedFile: affected, emitKind } = pendingAffectedFile); - } else { - const pendingForDiagnostics = getNextPendingEmitDiagnosticsFile( - state, - isForDtsErrors - ); - if (pendingForDiagnostics) { - (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set( - pendingForDiagnostics.affectedFile.resolvedPath, - pendingForDiagnostics.seenKind | getBuilderFileEmitAllDts(isForDtsErrors) - ); - return { - result: { emitSkipped: true, diagnostics: pendingForDiagnostics.diagnostics }, - affected: pendingForDiagnostics.affectedFile - }; - } - } - } else { - if (state.programEmitPending) { - emitKind = getPendingEmitKindWithSeen( - state.programEmitPending, - state.seenProgramEmit, - emitOnlyDtsFiles, - isForDtsErrors - ); - if (emitKind) affected = state.program; - } - if (!affected && ((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) { - const seenKind = state.seenProgramEmit || 0 /* None */; - if (!(seenKind & getBuilderFileEmitAllDts(isForDtsErrors))) { - state.seenProgramEmit = getBuilderFileEmitAllDts(isForDtsErrors) | seenKind; - const diagnostics = []; - state.emitDiagnosticsPerFile.forEach((d) => addRange(diagnostics, d)); - return { - result: { emitSkipped: true, diagnostics }, - affected: state.program - }; - } - } - } - if (!affected) { - if (isForDtsErrors || !getBuildInfoEmitPending(state)) return void 0; - const affected2 = state.program; - const result2 = affected2.emitBuildInfo( - writeFile2 || maybeBind(host, host.writeFile), - cancellationToken - ); - state.buildInfoEmitPending = false; - return { result: result2, affected: affected2 }; - } - } - let emitOnly; - if (emitKind & 7 /* AllJs */) emitOnly = 0 /* Js */; - if (emitKind & 56 /* AllDts */) emitOnly = emitOnly === void 0 ? 1 /* Dts */ : void 0; - const result = !isForDtsErrors ? state.program.emit( - affected === state.program ? void 0 : affected, - getWriteFileCallback(writeFile2, customTransformers), - cancellationToken, - emitOnly, - customTransformers, - /*forceDtsEmit*/ - void 0, - /*skipBuildInfo*/ - true - ) : { - emitSkipped: true, - diagnostics: state.program.getDeclarationDiagnostics( - affected === state.program ? void 0 : affected, - cancellationToken - ) - }; - if (affected !== state.program) { - const affectedSourceFile = affected; - state.seenAffectedFiles.add(affectedSourceFile.resolvedPath); - if (state.affectedFilesIndex !== void 0) state.affectedFilesIndex++; - state.buildInfoEmitPending = true; - const existing = ((_b = state.seenEmittedFiles) == null ? void 0 : _b.get(affectedSourceFile.resolvedPath)) || 0 /* None */; - (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, emitKind | existing); - const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind; - const pendingKind = getPendingEmitKind(existingPending, emitKind | existing); - if (pendingKind) (state.affectedFilesPendingEmit ?? (state.affectedFilesPendingEmit = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, pendingKind); - else (_d = state.affectedFilesPendingEmit) == null ? void 0 : _d.delete(affectedSourceFile.resolvedPath); - if (result.diagnostics.length) (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, result.diagnostics); - } else { - state.changedFilesSet.clear(); - state.programEmitPending = state.changedFilesSet.size ? getPendingEmitKind(programEmitKind, emitKind) : state.programEmitPending ? getPendingEmitKind(state.programEmitPending, emitKind) : void 0; - state.seenProgramEmit = emitKind | (state.seenProgramEmit || 0 /* None */); - setEmitDiagnosticsPerFile(result.diagnostics); - state.buildInfoEmitPending = true; - } - return { result, affected }; - } - function setEmitDiagnosticsPerFile(diagnostics) { - let emitDiagnosticsPerFile; - diagnostics.forEach((d) => { - if (!d.file) return; - let diagnostics2 = emitDiagnosticsPerFile == null ? void 0 : emitDiagnosticsPerFile.get(d.file.resolvedPath); - if (!diagnostics2) (emitDiagnosticsPerFile ?? (emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set(d.file.resolvedPath, diagnostics2 = []); - diagnostics2.push(d); - }); - if (emitDiagnosticsPerFile) state.emitDiagnosticsPerFile = emitDiagnosticsPerFile; - } - function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - return emitNextAffectedFileOrDtsErrors( - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers, - /*isForDtsErrors*/ - false - ); - } - function getWriteFileCallback(writeFile2, customTransformers) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (!getEmitDeclarations(state.compilerOptions)) return writeFile2 || maybeBind(host, host.writeFile); - return (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => { - var _a, _b, _c; - if (isDeclarationFileName(fileName)) { - if (!state.compilerOptions.outFile) { - Debug.assert((sourceFiles == null ? void 0 : sourceFiles.length) === 1); - let emitSignature; - if (!customTransformers) { - const file = sourceFiles[0]; - const info = state.fileInfos.get(file.resolvedPath); - if (info.signature === file.version) { - const signature = computeSignatureWithDiagnostics( - state.program, - file, - text, - host, - data - ); - if (!((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length)) emitSignature = signature; - if (signature !== file.version) { - if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(file.resolvedPath, 1 /* StoredSignatureAtEmit */); - if (state.affectedFiles) { - const existing = (_b = state.oldSignatures) == null ? void 0 : _b.get(file.resolvedPath); - if (existing === void 0) (state.oldSignatures ?? (state.oldSignatures = /* @__PURE__ */ new Map())).set(file.resolvedPath, info.signature || false); - info.signature = signature; - } else { - info.signature = signature; - } - } - } - } - if (state.compilerOptions.composite) { - const filePath = sourceFiles[0].resolvedPath; - emitSignature = handleNewSignature((_c = state.emitSignatures) == null ? void 0 : _c.get(filePath), emitSignature); - if (!emitSignature) return data.skippedDtsWrite = true; - (state.emitSignatures ?? (state.emitSignatures = /* @__PURE__ */ new Map())).set(filePath, emitSignature); - } - } else if (state.compilerOptions.composite) { - const newSignature = handleNewSignature( - state.outSignature, - /*newSignature*/ - void 0 - ); - if (!newSignature) return data.skippedDtsWrite = true; - state.outSignature = newSignature; - } - } - if (writeFile2) writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data); - else if (host.writeFile) host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); - else state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); - function handleNewSignature(oldSignatureFormat, newSignature) { - const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0]; - newSignature ?? (newSignature = computeSignature(text, host, data)); - if (newSignature === oldSignature) { - if (oldSignatureFormat === oldSignature) return void 0; - else if (data) data.differsOnlyInMap = true; - else data = { differsOnlyInMap: true }; - } else { - state.hasChangedEmitSignature = true; - state.latestChangedDtsFile = fileName; - } - return newSignature; - } - }; - } - function emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile); - } - const result = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile2, cancellationToken); - if (result) return result; - if (!targetSourceFile) { - if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - let sourceMaps = []; - let emitSkipped = false; - let diagnostics; - let emittedFiles = []; - let affectedEmitResult; - while (affectedEmitResult = emitNextAffectedFile( - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers - )) { - emitSkipped = emitSkipped || affectedEmitResult.result.emitSkipped; - diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics); - emittedFiles = addRange(emittedFiles, affectedEmitResult.result.emittedFiles); - sourceMaps = addRange(sourceMaps, affectedEmitResult.result.sourceMaps); - } - return { - emitSkipped, - diagnostics: diagnostics || emptyArray, - emittedFiles, - sourceMaps - }; - } else { - clearAffectedFilesPendingEmit( - state, - emitOnlyDtsFiles, - /*isForDtsErrors*/ - false - ); - } - } - const emitResult = state.program.emit( - targetSourceFile, - getWriteFileCallback(writeFile2, customTransformers), - cancellationToken, - emitOnlyDtsFiles, - customTransformers - ); - handleNonEmitBuilderWithEmitOrDtsErrors( - targetSourceFile, - emitOnlyDtsFiles, - /*isForDtsErrors*/ - false, - emitResult.diagnostics - ); - return emitResult; - } - function handleNonEmitBuilderWithEmitOrDtsErrors(targetSourceFile, emitOnlyDtsFiles, isForDtsErrors, diagnostics) { - if (!targetSourceFile && kind !== 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles, isForDtsErrors); - setEmitDiagnosticsPerFile(diagnostics); - } - } - function getDeclarationDiagnostics2(sourceFile, cancellationToken) { - var _a; - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - assertSourceFileOkWithoutNextAffectedCall(state, sourceFile); - let affectedEmitResult; - let diagnostics; - while (affectedEmitResult = emitNextAffectedFileOrDtsErrors( - /*writeFile*/ - void 0, - cancellationToken, - /*emitOnlyDtsFiles*/ - void 0, - /*customTransformers*/ - void 0, - /*isForDtsErrors*/ - true - )) { - if (!sourceFile) diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics); - } - return (!sourceFile ? diagnostics : (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(sourceFile.resolvedPath)) || emptyArray; - } else { - const result = state.program.getDeclarationDiagnostics(sourceFile, cancellationToken); - handleNonEmitBuilderWithEmitOrDtsErrors( - sourceFile, - /*emitOnlyDtsFiles*/ - void 0, - /*isForDtsErrors*/ - true, - result - ); - return result; - } - } - function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - while (true) { - const affected = getNextAffectedFile(state, cancellationToken, host); - let result; - if (!affected) { - if (state.checkPending && !state.compilerOptions.noCheck) { - state.checkPending = void 0; - state.buildInfoEmitPending = true; - } - return void 0; - } else if (affected !== state.program) { - const affectedSourceFile = affected; - if (!ignoreSourceFile || !ignoreSourceFile(affectedSourceFile)) { - result = getSemanticDiagnosticsOfFile(state, affectedSourceFile, cancellationToken); - } - state.seenAffectedFiles.add(affectedSourceFile.resolvedPath); - state.affectedFilesIndex++; - state.buildInfoEmitPending = true; - if (!result) continue; - } else { - let diagnostics; - const semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); - state.program.getSourceFiles().forEach( - (sourceFile) => diagnostics = addRange( - diagnostics, - getSemanticDiagnosticsOfFile( - state, - sourceFile, - cancellationToken, - semanticDiagnosticsPerFile - ) - ) - ); - state.semanticDiagnosticsPerFile = semanticDiagnosticsPerFile; - result = diagnostics || emptyArray; - state.changedFilesSet.clear(); - state.programEmitPending = getBuilderFileEmit(state.compilerOptions); - if (!state.compilerOptions.noCheck) state.checkPending = void 0; - state.buildInfoEmitPending = true; - } - return { result, affected }; - } - } - function getSemanticDiagnostics(sourceFile, cancellationToken) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - assertSourceFileOkWithoutNextAffectedCall(state, sourceFile); - if (sourceFile) { - return getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken); - } - while (true) { - const affectedResult = getSemanticDiagnosticsOfNextAffectedFile(cancellationToken); - if (!affectedResult) break; - if (affectedResult.affected === state.program) return affectedResult.result; - } - let diagnostics; - for (const sourceFile2 of state.program.getSourceFiles()) { - diagnostics = addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile2, cancellationToken)); - } - if (state.checkPending && !state.compilerOptions.noCheck) { - state.checkPending = void 0; - state.buildInfoEmitPending = true; - } - return diagnostics || emptyArray; - } -} -function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) { - var _a, _b; - const existingKind = ((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.get(affectedFilePendingEmit)) || 0 /* None */; - (state.affectedFilesPendingEmit ?? (state.affectedFilesPendingEmit = /* @__PURE__ */ new Map())).set(affectedFilePendingEmit, existingKind | kind); - (_b = state.emitDiagnosticsPerFile) == null ? void 0 : _b.delete(affectedFilePendingEmit); -} -function toBuilderStateFileInfoForMultiEmit(fileInfo) { - return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat }; -} -function toBuilderFileEmit(value, fullEmitForOptions) { - return isNumber(value) ? fullEmitForOptions : value[1] || 24 /* Dts */; -} -function toProgramEmitPending(value, options) { - return !value ? getBuilderFileEmit(options || {}) : value; -} -function createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host) { - var _a, _b, _c, _d; - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - let state; - const filePaths = (_a = buildInfo.fileNames) == null ? void 0 : _a.map(toPathInBuildInfoDirectory); - let filePathsSetList; - const latestChangedDtsFile = buildInfo.latestChangedDtsFile ? toAbsolutePath(buildInfo.latestChangedDtsFile) : void 0; - const fileInfos = /* @__PURE__ */ new Map(); - const changedFilesSet = new Set(map(buildInfo.changeFileSet, toFilePath)); - if (isIncrementalBundleEmitBuildInfo(buildInfo)) { - buildInfo.fileInfos.forEach((fileInfo, index) => { - const path = toFilePath(index + 1); - fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo); - }); - state = { - fileInfos, - compilerOptions: buildInfo.options ? convertToOptionsWithAbsolutePaths(buildInfo.options, toAbsolutePath) : {}, - semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(buildInfo.semanticDiagnosticsPerFile), - emitDiagnosticsPerFile: toPerFileEmitDiagnostics(buildInfo.emitDiagnosticsPerFile), - hasReusableDiagnostic: true, - changedFilesSet, - latestChangedDtsFile, - outSignature: buildInfo.outSignature, - programEmitPending: buildInfo.pendingEmit === void 0 ? void 0 : toProgramEmitPending(buildInfo.pendingEmit, buildInfo.options), - hasErrors: buildInfo.errors, - checkPending: buildInfo.checkPending - }; - } else { - filePathsSetList = (_b = buildInfo.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath))); - const emitSignatures = ((_c = buildInfo.options) == null ? void 0 : _c.composite) && !buildInfo.options.outFile ? /* @__PURE__ */ new Map() : void 0; - buildInfo.fileInfos.forEach((fileInfo, index) => { - const path = toFilePath(index + 1); - const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo); - fileInfos.set(path, stateFileInfo); - if (emitSignatures && stateFileInfo.signature) emitSignatures.set(path, stateFileInfo.signature); - }); - (_d = buildInfo.emitSignatures) == null ? void 0 : _d.forEach((value) => { - if (isNumber(value)) emitSignatures.delete(toFilePath(value)); - else { - const key = toFilePath(value[0]); - emitSignatures.set( - key, - !isString(value[1]) && !value[1].length ? ( - // File signature is emit signature but differs in map - [emitSignatures.get(key)] - ) : value[1] - ); - } - }); - const fullEmitForOptions = buildInfo.affectedFilesPendingEmit ? getBuilderFileEmit(buildInfo.options || {}) : void 0; - state = { - fileInfos, - compilerOptions: buildInfo.options ? convertToOptionsWithAbsolutePaths(buildInfo.options, toAbsolutePath) : {}, - referencedMap: toManyToManyPathMap(buildInfo.referencedMap, buildInfo.options ?? {}), - semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(buildInfo.semanticDiagnosticsPerFile), - emitDiagnosticsPerFile: toPerFileEmitDiagnostics(buildInfo.emitDiagnosticsPerFile), - hasReusableDiagnostic: true, - changedFilesSet, - affectedFilesPendingEmit: buildInfo.affectedFilesPendingEmit && arrayToMap(buildInfo.affectedFilesPendingEmit, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => toBuilderFileEmit(value, fullEmitForOptions)), - latestChangedDtsFile, - emitSignatures: (emitSignatures == null ? void 0 : emitSignatures.size) ? emitSignatures : void 0, - hasErrors: buildInfo.errors, - checkPending: buildInfo.checkPending - }; - } - return { - state, - getProgram: notImplemented, - getProgramOrUndefined: returnUndefined, - releaseProgram: noop, - getCompilerOptions: () => state.compilerOptions, - getSourceFile: notImplemented, - getSourceFiles: notImplemented, - getOptionsDiagnostics: notImplemented, - getGlobalDiagnostics: notImplemented, - getConfigFileParsingDiagnostics: notImplemented, - getSyntacticDiagnostics: notImplemented, - getDeclarationDiagnostics: notImplemented, - getSemanticDiagnostics: notImplemented, - emit: notImplemented, - getAllDependencies: notImplemented, - getCurrentDirectory: notImplemented, - emitNextAffectedFile: notImplemented, - getSemanticDiagnosticsOfNextAffectedFile: notImplemented, - emitBuildInfo: notImplemented, - close: noop, - hasChangedEmitSignature: returnFalse - }; - function toPathInBuildInfoDirectory(path) { - return toPath(path, buildInfoDirectory, getCanonicalFileName); - } - function toAbsolutePath(path) { - return getNormalizedAbsolutePath(path, buildInfoDirectory); - } - function toFilePath(fileId) { - return filePaths[fileId - 1]; - } - function toFilePathsSet(fileIdsListId) { - return filePathsSetList[fileIdsListId - 1]; - } - function toManyToManyPathMap(referenceMap, options) { - const map2 = BuilderState.createReferencedMap(options); - if (!map2 || !referenceMap) return map2; - referenceMap.forEach(([fileId, fileIdListId]) => map2.set(toFilePath(fileId), toFilePathsSet(fileIdListId))); - return map2; - } - function toPerFileSemanticDiagnostics(diagnostics) { - const semanticDiagnostics = new Map( - mapDefinedIterator( - fileInfos.keys(), - (key) => !changedFilesSet.has(key) ? [key, emptyArray] : void 0 - ) - ); - diagnostics == null ? void 0 : diagnostics.forEach((value) => { - if (isNumber(value)) semanticDiagnostics.delete(toFilePath(value)); - else semanticDiagnostics.set(toFilePath(value[0]), value[1]); - }); - return semanticDiagnostics; - } - function toPerFileEmitDiagnostics(diagnostics) { - return diagnostics && arrayToMap(diagnostics, (value) => toFilePath(value[0]), (value) => value[1]); - } -} -function getBuildInfoFileVersionMap(program, buildInfoPath, host) { - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - const fileInfos = /* @__PURE__ */ new Map(); - let rootIndex = 0; - const roots = /* @__PURE__ */ new Map(); - const resolvedRoots = new Map(program.resolvedRoot); - program.fileInfos.forEach((fileInfo, index) => { - const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName); - const version2 = isString(fileInfo) ? fileInfo : fileInfo.version; - fileInfos.set(path, version2); - if (rootIndex < program.root.length) { - const current = program.root[rootIndex]; - const fileId = index + 1; - if (isArray(current)) { - if (current[0] <= fileId && fileId <= current[1]) { - addRoot(fileId, path); - if (current[1] === fileId) rootIndex++; - } - } else if (current === fileId) { - addRoot(fileId, path); - rootIndex++; - } - } - }); - return { fileInfos, roots }; - function addRoot(fileId, path) { - const root = resolvedRoots.get(fileId); - if (root) { - roots.set(toPath(program.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path); - } else { - roots.set(path, void 0); - } - } -} -function getNonIncrementalBuildInfoRoots(buildInfo, buildInfoPath, host) { - if (!isNonIncrementalBuildInfo(buildInfo)) return void 0; - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - return buildInfo.root.map((r) => toPath(r, buildInfoDirectory, getCanonicalFileName)); -} -function createRedirectedBuilderProgram(state, configFileParsingDiagnostics) { - return { - state: void 0, - getProgram, - getProgramOrUndefined: () => state.program, - releaseProgram: () => state.program = void 0, - getCompilerOptions: () => state.compilerOptions, - getSourceFile: (fileName) => getProgram().getSourceFile(fileName), - getSourceFiles: () => getProgram().getSourceFiles(), - getOptionsDiagnostics: (cancellationToken) => getProgram().getOptionsDiagnostics(cancellationToken), - getGlobalDiagnostics: (cancellationToken) => getProgram().getGlobalDiagnostics(cancellationToken), - getConfigFileParsingDiagnostics: () => configFileParsingDiagnostics, - getSyntacticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSyntacticDiagnostics(sourceFile, cancellationToken), - getDeclarationDiagnostics: (sourceFile, cancellationToken) => getProgram().getDeclarationDiagnostics(sourceFile, cancellationToken), - getSemanticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSemanticDiagnostics(sourceFile, cancellationToken), - emit: (sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers), - emitBuildInfo: (writeFile2, cancellationToken) => getProgram().emitBuildInfo(writeFile2, cancellationToken), - getAllDependencies: notImplemented, - getCurrentDirectory: () => getProgram().getCurrentDirectory(), - close: noop - }; - function getProgram() { - return Debug.checkDefined(state.program); - } -} - -// src/compiler/builderPublic.ts -function createEmitAndSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { - return createBuilderProgram( - 1 /* EmitAndSemanticDiagnosticsBuilderProgram */, - getBuilderCreationParameters( - newProgramOrRootNames, - hostOrOptions, - oldProgramOrHost, - configFileParsingDiagnosticsOrOldProgram, - configFileParsingDiagnostics, - projectReferences - ) - ); -} - -// src/compiler/resolutionCache.ts -function removeIgnoredPath(path) { - if (endsWith(path, "/node_modules/.staging")) { - return removeSuffix(path, "/.staging"); - } - return some(ignoredPaths, (searchPath) => path.includes(searchPath)) ? void 0 : path; -} -function perceivedOsRootLengthForWatching(pathComponents2, length2) { - if (length2 <= 1) return 1; - let indexAfterOsRoot = 1; - let isDosStyle = pathComponents2[0].search(/[a-z]:/i) === 0; - if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths - pathComponents2[1].search(/[a-z]\$$/i) === 0) { - if (length2 === 2) return 2; - indexAfterOsRoot = 2; - isDosStyle = true; - } - if (isDosStyle && !pathComponents2[indexAfterOsRoot].match(/^users$/i)) { - return indexAfterOsRoot; - } - if (pathComponents2[indexAfterOsRoot].match(/^workspaces$/i)) { - return indexAfterOsRoot + 1; - } - return indexAfterOsRoot + 2; -} -function canWatchDirectoryOrFile(pathComponents2, length2) { - if (length2 === void 0) length2 = pathComponents2.length; - if (length2 <= 2) return false; - const perceivedOsRootLength = perceivedOsRootLengthForWatching(pathComponents2, length2); - return length2 > perceivedOsRootLength + 1; -} -function canWatchDirectoryOrFilePath(path) { - return canWatchDirectoryOrFile(getPathComponents(path)); -} -function canWatchAtTypes(atTypes) { - return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(getDirectoryPath(atTypes)); -} -function isInDirectoryPath(dirComponents, fileOrDirComponents) { - if (fileOrDirComponents.length < fileOrDirComponents.length) return false; - for (let i = 0; i < dirComponents.length; i++) { - if (fileOrDirComponents[i] !== dirComponents[i]) return false; - } - return true; -} -function canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(fileOrDirPath) { - return canWatchDirectoryOrFilePath(fileOrDirPath); -} -function canWatchAffectingLocation(filePath) { - return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(filePath); -} -function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath, rootDir, rootPath, rootPathComponents, isRootWatchable, getCurrentDirectory, preferNonRecursiveWatch) { - const failedLookupPathComponents = getPathComponents(failedLookupLocationPath); - failedLookupLocation = isRootedDiskPath(failedLookupLocation) ? normalizePath(failedLookupLocation) : getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory()); - const failedLookupComponents = getPathComponents(failedLookupLocation); - const perceivedOsRootLength = perceivedOsRootLengthForWatching(failedLookupPathComponents, failedLookupPathComponents.length); - if (failedLookupPathComponents.length <= perceivedOsRootLength + 1) return void 0; - const nodeModulesIndex = failedLookupPathComponents.indexOf("node_modules"); - if (nodeModulesIndex !== -1 && nodeModulesIndex + 1 <= perceivedOsRootLength + 1) return void 0; - const lastNodeModulesIndex = failedLookupPathComponents.lastIndexOf("node_modules"); - if (isRootWatchable && isInDirectoryPath(rootPathComponents, failedLookupPathComponents)) { - if (failedLookupPathComponents.length > rootPathComponents.length + 1) { - return getDirectoryOfFailedLookupWatch( - failedLookupComponents, - failedLookupPathComponents, - Math.max(rootPathComponents.length + 1, perceivedOsRootLength + 1), - lastNodeModulesIndex - ); - } else { - return { - dir: rootDir, - dirPath: rootPath, - nonRecursive: true - }; - } - } - return getDirectoryToWatchFromFailedLookupLocationDirectory( - failedLookupComponents, - failedLookupPathComponents, - failedLookupPathComponents.length - 1, - perceivedOsRootLength, - nodeModulesIndex, - rootPathComponents, - lastNodeModulesIndex, - preferNonRecursiveWatch - ); -} -function getDirectoryToWatchFromFailedLookupLocationDirectory(dirComponents, dirPathComponents, dirPathComponentsLength, perceivedOsRootLength, nodeModulesIndex, rootPathComponents, lastNodeModulesIndex, preferNonRecursiveWatch) { - if (nodeModulesIndex !== -1) { - return getDirectoryOfFailedLookupWatch( - dirComponents, - dirPathComponents, - nodeModulesIndex + 1, - lastNodeModulesIndex - ); - } - let nonRecursive = true; - let length2 = dirPathComponentsLength; - if (!preferNonRecursiveWatch) { - for (let i = 0; i < dirPathComponentsLength; i++) { - if (dirPathComponents[i] !== rootPathComponents[i]) { - nonRecursive = false; - length2 = Math.max(i + 1, perceivedOsRootLength + 1); - break; - } - } - } - return getDirectoryOfFailedLookupWatch( - dirComponents, - dirPathComponents, - length2, - lastNodeModulesIndex, - nonRecursive - ); -} -function getDirectoryOfFailedLookupWatch(dirComponents, dirPathComponents, length2, lastNodeModulesIndex, nonRecursive) { - let packageDirLength; - if (lastNodeModulesIndex !== -1 && lastNodeModulesIndex + 1 >= length2 && lastNodeModulesIndex + 2 < dirPathComponents.length) { - if (!startsWith(dirPathComponents[lastNodeModulesIndex + 1], "@")) { - packageDirLength = lastNodeModulesIndex + 2; - } else if (lastNodeModulesIndex + 3 < dirPathComponents.length) { - packageDirLength = lastNodeModulesIndex + 3; - } - } - return { - dir: getPathFromPathComponents(dirComponents, length2), - dirPath: getPathFromPathComponents(dirPathComponents, length2), - nonRecursive, - packageDir: packageDirLength !== void 0 ? getPathFromPathComponents(dirComponents, packageDirLength) : void 0, - packageDirPath: packageDirLength !== void 0 ? getPathFromPathComponents(dirPathComponents, packageDirLength) : void 0 - }; -} -function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath, rootPath, rootPathComponents, isRootWatchable, getCurrentDirectory, preferNonRecursiveWatch, filterCustomPath) { - const typeRootPathComponents = getPathComponents(typeRootPath); - if (isRootWatchable && isInDirectoryPath(rootPathComponents, typeRootPathComponents)) { - return rootPath; - } - typeRoot = isRootedDiskPath(typeRoot) ? normalizePath(typeRoot) : getNormalizedAbsolutePath(typeRoot, getCurrentDirectory()); - const toWatch = getDirectoryToWatchFromFailedLookupLocationDirectory( - getPathComponents(typeRoot), - typeRootPathComponents, - typeRootPathComponents.length, - perceivedOsRootLengthForWatching(typeRootPathComponents, typeRootPathComponents.length), - typeRootPathComponents.indexOf("node_modules"), - rootPathComponents, - typeRootPathComponents.lastIndexOf("node_modules"), - preferNonRecursiveWatch - ); - return toWatch && filterCustomPath(toWatch.dirPath) ? toWatch.dirPath : void 0; -} -function getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory) { - const normalized = getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()); - return !isDiskPathRoot(normalized) ? removeTrailingDirectorySeparator(normalized) : normalized; -} -function getModuleResolutionHost(resolutionHost) { - var _a; - return ((_a = resolutionHost.getCompilerHost) == null ? void 0 : _a.call(resolutionHost)) || resolutionHost; -} -function createModuleResolutionLoaderUsingGlobalCache(containingFile, redirectedReference, options, resolutionHost, moduleResolutionCache) { - return { - nameAndMode: moduleResolutionNameAndModeGetter, - resolve: (moduleName, resoluionMode) => resolveModuleNameUsingGlobalCache( - resolutionHost, - moduleResolutionCache, - moduleName, - containingFile, - options, - redirectedReference, - resoluionMode - ) - }; -} -function resolveModuleNameUsingGlobalCache(resolutionHost, moduleResolutionCache, moduleName, containingFile, compilerOptions, redirectedReference, mode) { - const host = getModuleResolutionHost(resolutionHost); - const primaryResult = resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode); - if (!resolutionHost.getGlobalTypingsCacheLocation) { - return primaryResult; - } - const globalCache = resolutionHost.getGlobalTypingsCacheLocation(); - if (globalCache !== void 0 && !isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && extensionIsTS(primaryResult.resolvedModule.extension))) { - const { resolvedModule, failedLookupLocations, affectingLocations, resolutionDiagnostics } = loadModuleFromGlobalCache( - Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), - resolutionHost.projectName, - compilerOptions, - host, - globalCache, - moduleResolutionCache - ); - if (resolvedModule) { - primaryResult.resolvedModule = resolvedModule; - primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, failedLookupLocations); - primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, affectingLocations); - primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, resolutionDiagnostics); - return primaryResult; - } - } - return primaryResult; -} -function createResolutionCache(resolutionHost, rootDirForResolution, logChangesWhenResolvingModule) { - let filesWithChangedSetOfUnresolvedImports; - let filesWithInvalidatedResolutions; - let filesWithInvalidatedNonRelativeUnresolvedImports; - const nonRelativeExternalModuleResolutions = /* @__PURE__ */ new Set(); - const resolutionsWithFailedLookups = /* @__PURE__ */ new Set(); - const resolutionsWithOnlyAffectingLocations = /* @__PURE__ */ new Set(); - const resolvedFileToResolution = /* @__PURE__ */ new Map(); - const impliedFormatPackageJsons = /* @__PURE__ */ new Map(); - let hasChangedAutomaticTypeDirectiveNames = false; - let affectingPathChecksForFile; - let affectingPathChecks; - let failedLookupChecks; - let startsWithPathChecks; - let isInDirectoryChecks; - let allModuleAndTypeResolutionsAreInvalidated = false; - const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory()); - const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost(); - const resolvedModuleNames = /* @__PURE__ */ new Map(); - const moduleResolutionCache = createModuleResolutionCache( - getCurrentDirectory(), - resolutionHost.getCanonicalFileName, - resolutionHost.getCompilationSettings() - ); - const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map(); - const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( - getCurrentDirectory(), - resolutionHost.getCanonicalFileName, - resolutionHost.getCompilationSettings(), - moduleResolutionCache.getPackageJsonInfoCache(), - moduleResolutionCache.optionsToRedirectsKey - ); - const resolvedLibraries = /* @__PURE__ */ new Map(); - const libraryResolutionCache = createModuleResolutionCache( - getCurrentDirectory(), - resolutionHost.getCanonicalFileName, - getOptionsForLibraryResolution(resolutionHost.getCompilationSettings()), - moduleResolutionCache.getPackageJsonInfoCache() - ); - const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map(); - const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map(); - const rootDir = getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory); - const rootPath = resolutionHost.toPath(rootDir); - const rootPathComponents = getPathComponents(rootPath); - const isRootWatchable = canWatchDirectoryOrFile(rootPathComponents); - const isSymlinkCache = /* @__PURE__ */ new Map(); - const packageDirWatchers = /* @__PURE__ */ new Map(); - const dirPathToSymlinkPackageRefCount = /* @__PURE__ */ new Map(); - const typeRootsWatches = /* @__PURE__ */ new Map(); - return { - rootDirForResolution, - resolvedModuleNames, - resolvedTypeReferenceDirectives, - resolvedLibraries, - resolvedFileToResolution, - resolutionsWithFailedLookups, - resolutionsWithOnlyAffectingLocations, - directoryWatchesOfFailedLookups, - fileWatchesOfAffectingLocations, - packageDirWatchers, - dirPathToSymlinkPackageRefCount, - watchFailedLookupLocationsOfExternalModuleResolutions, - getModuleResolutionCache: () => moduleResolutionCache, - startRecordingFilesWithChangedResolutions, - finishRecordingFilesWithChangedResolutions, - // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update - // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) - startCachingPerDirectoryResolution, - finishCachingPerDirectoryResolution, - resolveModuleNameLiterals, - resolveTypeReferenceDirectiveReferences, - resolveLibrary: resolveLibrary2, - resolveSingleModuleNameWithoutWatching, - removeResolutionsFromProjectReferenceRedirects, - removeResolutionsOfFile, - hasChangedAutomaticTypeDirectiveNames: () => hasChangedAutomaticTypeDirectiveNames, - invalidateResolutionOfFile, - invalidateResolutionsOfFailedLookupLocations, - setFilesWithInvalidatedNonRelativeUnresolvedImports, - createHasInvalidatedResolutions, - isFileWithInvalidatedNonRelativeUnresolvedImports, - updateTypeRootsWatch, - closeTypeRootsWatch, - clear: clear2, - onChangesAffectModuleResolution - }; - function clear2() { - clearMap(directoryWatchesOfFailedLookups, closeFileWatcherOf); - clearMap(fileWatchesOfAffectingLocations, closeFileWatcherOf); - isSymlinkCache.clear(); - packageDirWatchers.clear(); - dirPathToSymlinkPackageRefCount.clear(); - nonRelativeExternalModuleResolutions.clear(); - closeTypeRootsWatch(); - resolvedModuleNames.clear(); - resolvedTypeReferenceDirectives.clear(); - resolvedFileToResolution.clear(); - resolutionsWithFailedLookups.clear(); - resolutionsWithOnlyAffectingLocations.clear(); - failedLookupChecks = void 0; - startsWithPathChecks = void 0; - isInDirectoryChecks = void 0; - affectingPathChecks = void 0; - affectingPathChecksForFile = void 0; - allModuleAndTypeResolutionsAreInvalidated = false; - moduleResolutionCache.clear(); - typeReferenceDirectiveResolutionCache.clear(); - moduleResolutionCache.update(resolutionHost.getCompilationSettings()); - typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); - libraryResolutionCache.clear(); - impliedFormatPackageJsons.clear(); - resolvedLibraries.clear(); - hasChangedAutomaticTypeDirectiveNames = false; - } - function onChangesAffectModuleResolution() { - allModuleAndTypeResolutionsAreInvalidated = true; - moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); - typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); - moduleResolutionCache.update(resolutionHost.getCompilationSettings()); - typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); - } - function startRecordingFilesWithChangedResolutions() { - filesWithChangedSetOfUnresolvedImports = []; - } - function finishRecordingFilesWithChangedResolutions() { - const collected = filesWithChangedSetOfUnresolvedImports; - filesWithChangedSetOfUnresolvedImports = void 0; - return collected; - } - function isFileWithInvalidatedNonRelativeUnresolvedImports(path) { - if (!filesWithInvalidatedNonRelativeUnresolvedImports) { - return false; - } - const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path); - return !!value && !!value.length; - } - function createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidatedLibResolutions) { - invalidateResolutionsOfFailedLookupLocations(); - const collected = filesWithInvalidatedResolutions; - filesWithInvalidatedResolutions = void 0; - return { - hasInvalidatedResolutions: (path) => customHasInvalidatedResolutions(path) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? void 0 : collected.has(path)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path), - hasInvalidatedLibResolutions: (libFileName) => { - var _a; - return customHasInvalidatedLibResolutions(libFileName) || !!((_a = resolvedLibraries == null ? void 0 : resolvedLibraries.get(libFileName)) == null ? void 0 : _a.isInvalidated); - } - }; - } - function startCachingPerDirectoryResolution() { - moduleResolutionCache.isReadonly = void 0; - typeReferenceDirectiveResolutionCache.isReadonly = void 0; - libraryResolutionCache.isReadonly = void 0; - moduleResolutionCache.getPackageJsonInfoCache().isReadonly = void 0; - moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); - typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); - libraryResolutionCache.clearAllExceptPackageJsonInfoCache(); - watchFailedLookupLocationOfNonRelativeModuleResolutions(); - isSymlinkCache.clear(); - } - function cleanupLibResolutionWatching(newProgram) { - resolvedLibraries.forEach((resolution, libFileName) => { - var _a; - if (!((_a = newProgram == null ? void 0 : newProgram.resolvedLibReferences) == null ? void 0 : _a.has(libFileName))) { - stopWatchFailedLookupLocationOfResolution( - resolution, - resolutionHost.toPath(getInferredLibraryNameResolveFrom(resolutionHost.getCompilationSettings(), getCurrentDirectory(), libFileName)), - getResolvedModuleFromResolution - ); - resolvedLibraries.delete(libFileName); - } - }); - } - function finishCachingPerDirectoryResolution(newProgram, oldProgram) { - filesWithInvalidatedNonRelativeUnresolvedImports = void 0; - allModuleAndTypeResolutionsAreInvalidated = false; - watchFailedLookupLocationOfNonRelativeModuleResolutions(); - if (newProgram !== oldProgram) { - cleanupLibResolutionWatching(newProgram); - newProgram == null ? void 0 : newProgram.getSourceFiles().forEach((newFile) => { - var _a; - const expected = ((_a = newFile.packageJsonLocations) == null ? void 0 : _a.length) ?? 0; - const existing = impliedFormatPackageJsons.get(newFile.resolvedPath) ?? emptyArray; - for (let i = existing.length; i < expected; i++) { - createFileWatcherOfAffectingLocation( - newFile.packageJsonLocations[i], - /*forResolution*/ - false - ); - } - if (existing.length > expected) { - for (let i = expected; i < existing.length; i++) { - fileWatchesOfAffectingLocations.get(existing[i]).files--; - } - } - if (expected) impliedFormatPackageJsons.set(newFile.resolvedPath, newFile.packageJsonLocations); - else impliedFormatPackageJsons.delete(newFile.resolvedPath); - }); - impliedFormatPackageJsons.forEach((existing, path) => { - const newFile = newProgram == null ? void 0 : newProgram.getSourceFileByPath(path); - if (!newFile || newFile.resolvedPath !== path) { - existing.forEach((location) => fileWatchesOfAffectingLocations.get(location).files--); - impliedFormatPackageJsons.delete(path); - } - }); - } - directoryWatchesOfFailedLookups.forEach(closeDirectoryWatchesOfFailedLookup); - fileWatchesOfAffectingLocations.forEach(closeFileWatcherOfAffectingLocation); - packageDirWatchers.forEach(closePackageDirWatcher); - hasChangedAutomaticTypeDirectiveNames = false; - moduleResolutionCache.isReadonly = true; - typeReferenceDirectiveResolutionCache.isReadonly = true; - libraryResolutionCache.isReadonly = true; - moduleResolutionCache.getPackageJsonInfoCache().isReadonly = true; - isSymlinkCache.clear(); - } - function closePackageDirWatcher(watcher, packageDirPath) { - if (watcher.dirPathToWatcher.size === 0) { - packageDirWatchers.delete(packageDirPath); - } - } - function closeDirectoryWatchesOfFailedLookup(watcher, path) { - if (watcher.refCount === 0) { - directoryWatchesOfFailedLookups.delete(path); - watcher.watcher.close(); - } - } - function closeFileWatcherOfAffectingLocation(watcher, path) { - var _a; - if (watcher.files === 0 && watcher.resolutions === 0 && !((_a = watcher.symlinks) == null ? void 0 : _a.size)) { - fileWatchesOfAffectingLocations.delete(path); - watcher.watcher.close(); - } - } - function resolveNamesWithLocalCache({ - entries, - containingFile, - containingSourceFile, - redirectedReference, - options, - perFileCache, - reusedNames, - loader, - getResolutionWithResolvedFileName, - deferWatchingNonRelativeResolution, - shouldRetryResolution, - logChanges - }) { - const path = resolutionHost.toPath(containingFile); - const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path); - const resolvedModules = []; - const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); - const program = resolutionHost.getCurrentProgram(); - const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile); - const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference; - const seenNamesInFile = createModeAwareCache(); - for (const entry of entries) { - const name = loader.nameAndMode.getName(entry); - const mode = loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options); - let resolution = resolutionsInFile.get(name, mode); - if (!seenNamesInFile.has(name, mode) && (allModuleAndTypeResolutionsAreInvalidated || unmatchedRedirects || !resolution || resolution.isInvalidated || // If the name is unresolved import that was invalidated, recalculate - hasInvalidatedNonRelativeUnresolvedImport && !isExternalModuleNameRelative(name) && shouldRetryResolution(resolution))) { - const existingResolution = resolution; - resolution = loader.resolve(name, mode); - if (resolutionHost.onDiscoveredSymlink && resolutionIsSymlink(resolution)) { - resolutionHost.onDiscoveredSymlink(); - } - resolutionsInFile.set(name, mode, resolution); - if (resolution !== existingResolution) { - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution); - if (existingResolution) { - stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); - } - } - if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) { - filesWithChangedSetOfUnresolvedImports.push(path); - logChanges = false; - } - } else { - const host = getModuleResolutionHost(resolutionHost); - if (isTraceEnabled(options, host) && !seenNamesInFile.has(name, mode)) { - const resolved = getResolutionWithResolvedFileName(resolution); - trace( - host, - perFileCache === resolvedModuleNames ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, - name, - containingFile, - resolved == null ? void 0 : resolved.resolvedFileName, - (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId) - ); - } - } - Debug.assert(resolution !== void 0 && !resolution.isInvalidated); - seenNamesInFile.set(name, mode, true); - resolvedModules.push(resolution); - } - reusedNames == null ? void 0 : reusedNames.forEach( - (entry) => seenNamesInFile.set( - loader.nameAndMode.getName(entry), - loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options), - true - ) - ); - if (resolutionsInFile.size() !== seenNamesInFile.size()) { - resolutionsInFile.forEach((resolution, name, mode) => { - if (!seenNamesInFile.has(name, mode)) { - stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName); - resolutionsInFile.delete(name, mode); - } - }); - } - return resolvedModules; - function resolutionIsEqualTo(oldResolution, newResolution) { - if (oldResolution === newResolution) { - return true; - } - if (!oldResolution || !newResolution) { - return false; - } - const oldResult = getResolutionWithResolvedFileName(oldResolution); - const newResult = getResolutionWithResolvedFileName(newResolution); - if (oldResult === newResult) { - return true; - } - if (!oldResult || !newResult) { - return false; - } - return oldResult.resolvedFileName === newResult.resolvedFileName; - } - } - function resolveTypeReferenceDirectiveReferences(typeDirectiveReferences, containingFile, redirectedReference, options, containingSourceFile, reusedNames) { - return resolveNamesWithLocalCache({ - entries: typeDirectiveReferences, - containingFile, - containingSourceFile, - redirectedReference, - options, - reusedNames, - perFileCache: resolvedTypeReferenceDirectives, - loader: createTypeReferenceResolutionLoader( - containingFile, - redirectedReference, - options, - getModuleResolutionHost(resolutionHost), - typeReferenceDirectiveResolutionCache - ), - getResolutionWithResolvedFileName: getResolvedTypeReferenceDirectiveFromResolution, - shouldRetryResolution: (resolution) => resolution.resolvedTypeReferenceDirective === void 0, - deferWatchingNonRelativeResolution: false - }); - } - function resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) { - return resolveNamesWithLocalCache({ - entries: moduleLiterals, - containingFile, - containingSourceFile, - redirectedReference, - options, - reusedNames, - perFileCache: resolvedModuleNames, - loader: createModuleResolutionLoaderUsingGlobalCache( - containingFile, - redirectedReference, - options, - resolutionHost, - moduleResolutionCache - ), - getResolutionWithResolvedFileName: getResolvedModuleFromResolution, - shouldRetryResolution: (resolution) => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension), - logChanges: logChangesWhenResolvingModule, - deferWatchingNonRelativeResolution: true - // Defer non relative resolution watch because we could be using ambient modules - }); - } - function resolveLibrary2(libraryName, resolveFrom, options, libFileName) { - const host = getModuleResolutionHost(resolutionHost); - let resolution = resolvedLibraries == null ? void 0 : resolvedLibraries.get(libFileName); - if (!resolution || resolution.isInvalidated) { - const existingResolution = resolution; - resolution = resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache); - const path = resolutionHost.toPath(resolveFrom); - watchFailedLookupLocationsOfExternalModuleResolutions( - libraryName, - resolution, - path, - getResolvedModuleFromResolution, - /*deferWatchingNonRelativeResolution*/ - false - ); - resolvedLibraries.set(libFileName, resolution); - if (existingResolution) { - stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolvedModuleFromResolution); - } - } else { - if (isTraceEnabled(options, host)) { - const resolved = getResolvedModuleFromResolution(resolution); - trace( - host, - (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, - libraryName, - resolveFrom, - resolved == null ? void 0 : resolved.resolvedFileName, - (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId) - ); - } - } - return resolution; - } - function resolveSingleModuleNameWithoutWatching(moduleName, containingFile) { - var _a, _b; - const path = resolutionHost.toPath(containingFile); - const resolutionsInFile = resolvedModuleNames.get(path); - const resolution = resolutionsInFile == null ? void 0 : resolutionsInFile.get( - moduleName, - /*mode*/ - void 0 - ); - if (resolution && !resolution.isInvalidated) return resolution; - const data = (_a = resolutionHost.beforeResolveSingleModuleNameWithoutWatching) == null ? void 0 : _a.call(resolutionHost, moduleResolutionCache); - const host = getModuleResolutionHost(resolutionHost); - const result = resolveModuleName( - moduleName, - containingFile, - resolutionHost.getCompilationSettings(), - host, - moduleResolutionCache - ); - (_b = resolutionHost.afterResolveSingleModuleNameWithoutWatching) == null ? void 0 : _b.call(resolutionHost, moduleResolutionCache, moduleName, containingFile, result, data); - return result; - } - function isNodeModulesAtTypesDirectory(dirPath) { - return endsWith(dirPath, "/node_modules/@types"); - } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution) { - (resolution.files ?? (resolution.files = /* @__PURE__ */ new Set())).add(filePath); - if (resolution.files.size !== 1) return; - if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) { - watchFailedLookupLocationOfResolution(resolution); - } else { - nonRelativeExternalModuleResolutions.add(resolution); - } - const resolved = getResolutionWithResolvedFileName(resolution); - if (resolved && resolved.resolvedFileName) { - const key = resolutionHost.toPath(resolved.resolvedFileName); - let resolutions = resolvedFileToResolution.get(key); - if (!resolutions) resolvedFileToResolution.set(key, resolutions = /* @__PURE__ */ new Set()); - resolutions.add(resolution); - } - } - function watchFailedLookupLocation(failedLookupLocation, setAtRoot) { - const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); - const toWatch = getDirectoryToWatchFailedLookupLocation( - failedLookupLocation, - failedLookupLocationPath, - rootDir, - rootPath, - rootPathComponents, - isRootWatchable, - getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch - ); - if (toWatch) { - const { dir, dirPath, nonRecursive, packageDir, packageDirPath } = toWatch; - if (dirPath === rootPath) { - Debug.assert(nonRecursive); - Debug.assert(!packageDir); - setAtRoot = true; - } else { - setDirectoryWatcher(dir, dirPath, packageDir, packageDirPath, nonRecursive); - } - } - return setAtRoot; - } - function watchFailedLookupLocationOfResolution(resolution) { - var _a; - Debug.assert(!!((_a = resolution.files) == null ? void 0 : _a.size)); - const { failedLookupLocations, affectingLocations, alternateResult } = resolution; - if (!(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !(affectingLocations == null ? void 0 : affectingLocations.length) && !alternateResult) return; - if ((failedLookupLocations == null ? void 0 : failedLookupLocations.length) || alternateResult) resolutionsWithFailedLookups.add(resolution); - let setAtRoot = false; - if (failedLookupLocations) { - for (const failedLookupLocation of failedLookupLocations) { - setAtRoot = watchFailedLookupLocation(failedLookupLocation, setAtRoot); - } - } - if (alternateResult) setAtRoot = watchFailedLookupLocation(alternateResult, setAtRoot); - if (setAtRoot) { - setDirectoryWatcher( - rootDir, - rootPath, - /*packageDir*/ - void 0, - /*packageDirPath*/ - void 0, - /*nonRecursive*/ - true - ); - } - watchAffectingLocationsOfResolution(resolution, !(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !alternateResult); - } - function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) { - var _a; - Debug.assert(!!((_a = resolution.files) == null ? void 0 : _a.size)); - const { affectingLocations } = resolution; - if (!(affectingLocations == null ? void 0 : affectingLocations.length)) return; - if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.add(resolution); - for (const affectingLocation of affectingLocations) { - createFileWatcherOfAffectingLocation( - affectingLocation, - /*forResolution*/ - true - ); - } - } - function createFileWatcherOfAffectingLocation(affectingLocation, forResolution) { - const fileWatcher = fileWatchesOfAffectingLocations.get(affectingLocation); - if (fileWatcher) { - if (forResolution) fileWatcher.resolutions++; - else fileWatcher.files++; - return; - } - let locationToWatch = affectingLocation; - let isSymlink = false; - let symlinkWatcher; - if (resolutionHost.realpath) { - locationToWatch = resolutionHost.realpath(affectingLocation); - if (affectingLocation !== locationToWatch) { - isSymlink = true; - symlinkWatcher = fileWatchesOfAffectingLocations.get(locationToWatch); - } - } - const resolutions = forResolution ? 1 : 0; - const files = forResolution ? 0 : 1; - if (!isSymlink || !symlinkWatcher) { - const watcher = { - watcher: canWatchAffectingLocation(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => { - cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind); - invalidateAffectingFileWatcher(locationToWatch, moduleResolutionCache.getPackageJsonInfoCache().getInternalMap()); - resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations(); - }) : noopFileWatcher, - resolutions: isSymlink ? 0 : resolutions, - files: isSymlink ? 0 : files, - symlinks: void 0 - }; - fileWatchesOfAffectingLocations.set(locationToWatch, watcher); - if (isSymlink) symlinkWatcher = watcher; - } - if (isSymlink) { - Debug.assert(!!symlinkWatcher); - const watcher = { - watcher: { - close: () => { - var _a; - const symlinkWatcher2 = fileWatchesOfAffectingLocations.get(locationToWatch); - if (((_a = symlinkWatcher2 == null ? void 0 : symlinkWatcher2.symlinks) == null ? void 0 : _a.delete(affectingLocation)) && !symlinkWatcher2.symlinks.size && !symlinkWatcher2.resolutions && !symlinkWatcher2.files) { - fileWatchesOfAffectingLocations.delete(locationToWatch); - symlinkWatcher2.watcher.close(); - } - } - }, - resolutions, - files, - symlinks: void 0 - }; - fileWatchesOfAffectingLocations.set(affectingLocation, watcher); - (symlinkWatcher.symlinks ?? (symlinkWatcher.symlinks = /* @__PURE__ */ new Set())).add(affectingLocation); - } - } - function invalidateAffectingFileWatcher(path, packageJsonMap) { - var _a; - const watcher = fileWatchesOfAffectingLocations.get(path); - if (watcher == null ? void 0 : watcher.resolutions) (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set())).add(path); - if (watcher == null ? void 0 : watcher.files) (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set())).add(path); - (_a = watcher == null ? void 0 : watcher.symlinks) == null ? void 0 : _a.forEach((path2) => invalidateAffectingFileWatcher(path2, packageJsonMap)); - packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path)); - } - function watchFailedLookupLocationOfNonRelativeModuleResolutions() { - nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfResolution); - nonRelativeExternalModuleResolutions.clear(); - } - function createDirectoryWatcherForPackageDir(dir, dirPath, packageDir, packageDirPath, nonRecursive) { - Debug.assert(!nonRecursive); - let isSymlink = isSymlinkCache.get(packageDirPath); - let packageDirWatcher = packageDirWatchers.get(packageDirPath); - if (isSymlink === void 0) { - const realPath2 = resolutionHost.realpath(packageDir); - isSymlink = realPath2 !== packageDir && resolutionHost.toPath(realPath2) !== packageDirPath; - isSymlinkCache.set(packageDirPath, isSymlink); - if (!packageDirWatcher) { - packageDirWatchers.set( - packageDirPath, - packageDirWatcher = { - dirPathToWatcher: /* @__PURE__ */ new Map(), - isSymlink - } - ); - } else if (packageDirWatcher.isSymlink !== isSymlink) { - packageDirWatcher.dirPathToWatcher.forEach((watcher) => { - removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath); - watcher.watcher = createDirPathToWatcher(); - }); - packageDirWatcher.isSymlink = isSymlink; - } - } else { - Debug.assertIsDefined(packageDirWatcher); - Debug.assert(isSymlink === packageDirWatcher.isSymlink); - } - const forDirPath = packageDirWatcher.dirPathToWatcher.get(dirPath); - if (forDirPath) { - forDirPath.refCount++; - } else { - packageDirWatcher.dirPathToWatcher.set(dirPath, { - watcher: createDirPathToWatcher(), - refCount: 1 - }); - if (isSymlink) dirPathToSymlinkPackageRefCount.set(dirPath, (dirPathToSymlinkPackageRefCount.get(dirPath) ?? 0) + 1); - } - function createDirPathToWatcher() { - return isSymlink ? createOrAddRefToDirectoryWatchOfFailedLookups(packageDir, packageDirPath, nonRecursive) : createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive); - } - } - function setDirectoryWatcher(dir, dirPath, packageDir, packageDirPath, nonRecursive) { - if (!packageDirPath || !resolutionHost.realpath) { - createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive); - } else { - createDirectoryWatcherForPackageDir(dir, dirPath, packageDir, packageDirPath, nonRecursive); - } - } - function createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive) { - let dirWatcher = directoryWatchesOfFailedLookups.get(dirPath); - if (dirWatcher) { - Debug.assert(!!nonRecursive === !!dirWatcher.nonRecursive); - dirWatcher.refCount++; - } else { - directoryWatchesOfFailedLookups.set(dirPath, dirWatcher = { watcher: createDirectoryWatcher(dir, dirPath, nonRecursive), refCount: 1, nonRecursive }); - } - return dirWatcher; - } - function stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot) { - const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); - const toWatch = getDirectoryToWatchFailedLookupLocation( - failedLookupLocation, - failedLookupLocationPath, - rootDir, - rootPath, - rootPathComponents, - isRootWatchable, - getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch - ); - if (toWatch) { - const { dirPath, packageDirPath } = toWatch; - if (dirPath === rootPath) { - removeAtRoot = true; - } else if (packageDirPath && resolutionHost.realpath) { - const packageDirWatcher = packageDirWatchers.get(packageDirPath); - const forDirPath = packageDirWatcher.dirPathToWatcher.get(dirPath); - forDirPath.refCount--; - if (forDirPath.refCount === 0) { - removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath); - packageDirWatcher.dirPathToWatcher.delete(dirPath); - if (packageDirWatcher.isSymlink) { - const refCount = dirPathToSymlinkPackageRefCount.get(dirPath) - 1; - if (refCount === 0) { - dirPathToSymlinkPackageRefCount.delete(dirPath); - } else { - dirPathToSymlinkPackageRefCount.set(dirPath, refCount); - } - } - } - } else { - removeDirectoryWatcher(dirPath); - } - } - return removeAtRoot; - } - function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) { - Debug.checkDefined(resolution.files).delete(filePath); - if (resolution.files.size) return; - resolution.files = void 0; - const resolved = getResolutionWithResolvedFileName(resolution); - if (resolved && resolved.resolvedFileName) { - const key = resolutionHost.toPath(resolved.resolvedFileName); - const resolutions = resolvedFileToResolution.get(key); - if ((resolutions == null ? void 0 : resolutions.delete(resolution)) && !resolutions.size) resolvedFileToResolution.delete(key); - } - const { failedLookupLocations, affectingLocations, alternateResult } = resolution; - if (resolutionsWithFailedLookups.delete(resolution)) { - let removeAtRoot = false; - if (failedLookupLocations) { - for (const failedLookupLocation of failedLookupLocations) { - removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot); - } - } - if (alternateResult) removeAtRoot = stopWatchFailedLookupLocation(alternateResult, removeAtRoot); - if (removeAtRoot) removeDirectoryWatcher(rootPath); - } else if (affectingLocations == null ? void 0 : affectingLocations.length) { - resolutionsWithOnlyAffectingLocations.delete(resolution); - } - if (affectingLocations) { - for (const affectingLocation of affectingLocations) { - const watcher = fileWatchesOfAffectingLocations.get(affectingLocation); - watcher.resolutions--; - } - } - } - function removeDirectoryWatcher(dirPath) { - const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath); - dirWatcher.refCount--; - } - function createDirectoryWatcher(directory, dirPath, nonRecursive) { - return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, (fileOrDirectory) => { - const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory); - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); - } - scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath); - }, nonRecursive ? 0 /* None */ : 1 /* Recursive */); - } - function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) { - const resolutions = cache.get(filePath); - if (resolutions) { - resolutions.forEach( - (resolution) => stopWatchFailedLookupLocationOfResolution( - resolution, - filePath, - getResolutionWithResolvedFileName - ) - ); - cache.delete(filePath); - } - } - function removeResolutionsFromProjectReferenceRedirects(filePath) { - if (!fileExtensionIs(filePath, ".json" /* Json */)) return; - const program = resolutionHost.getCurrentProgram(); - if (!program) return; - const resolvedProjectReference = program.getResolvedProjectReferenceByPath(filePath); - if (!resolvedProjectReference) return; - resolvedProjectReference.commandLine.fileNames.forEach((f) => removeResolutionsOfFile(resolutionHost.toPath(f))); - } - function removeResolutionsOfFile(filePath) { - removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModuleFromResolution); - removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirectiveFromResolution); - } - function invalidateResolutions(resolutions, canInvalidate) { - if (!resolutions) return false; - let invalidated = false; - resolutions.forEach((resolution) => { - if (resolution.isInvalidated || !canInvalidate(resolution)) return; - resolution.isInvalidated = invalidated = true; - for (const containingFilePath of Debug.checkDefined(resolution.files)) { - (filesWithInvalidatedResolutions ?? (filesWithInvalidatedResolutions = /* @__PURE__ */ new Set())).add(containingFilePath); - hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile); - } - }); - return invalidated; - } - function invalidateResolutionOfFile(filePath) { - removeResolutionsOfFile(filePath); - const prevHasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; - if (invalidateResolutions(resolvedFileToResolution.get(filePath), returnTrue) && hasChangedAutomaticTypeDirectiveNames && !prevHasChangedAutomaticTypeDirectiveNames) { - resolutionHost.onChangedAutomaticTypeDirectiveNames(); - } - } - function setFilesWithInvalidatedNonRelativeUnresolvedImports(filesMap) { - Debug.assert(filesWithInvalidatedNonRelativeUnresolvedImports === filesMap || filesWithInvalidatedNonRelativeUnresolvedImports === void 0); - filesWithInvalidatedNonRelativeUnresolvedImports = filesMap; - } - function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) { - if (isCreatingWatchedDirectory) { - (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - } else { - const updatedPath = removeIgnoredPath(fileOrDirectoryPath); - if (!updatedPath) return false; - fileOrDirectoryPath = updatedPath; - if (resolutionHost.fileIsOpen(fileOrDirectoryPath)) { - return false; - } - const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath); - if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) { - (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - } else { - if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) { - return false; - } - if (fileExtensionIs(fileOrDirectoryPath, ".map")) { - return false; - } - (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - const packagePath = parseNodeModuleFromPath( - fileOrDirectoryPath, - /*isFolder*/ - true - ); - if (packagePath) (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath); - } - } - resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations(); - } - function invalidatePackageJsonMap() { - const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(); - if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) { - packageJsonMap.forEach((_value, path) => isInvalidatedFailedLookup(path) ? packageJsonMap.delete(path) : void 0); - } - } - function invalidateResolutionsOfFailedLookupLocations() { - var _a; - if (allModuleAndTypeResolutionsAreInvalidated) { - affectingPathChecksForFile = void 0; - invalidatePackageJsonMap(); - if (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks || affectingPathChecks) { - invalidateResolutions(resolvedLibraries, canInvalidateFailedLookupResolution); - } - failedLookupChecks = void 0; - startsWithPathChecks = void 0; - isInDirectoryChecks = void 0; - affectingPathChecks = void 0; - return true; - } - let invalidated = false; - if (affectingPathChecksForFile) { - (_a = resolutionHost.getCurrentProgram()) == null ? void 0 : _a.getSourceFiles().forEach((f) => { - if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) { - (filesWithInvalidatedResolutions ?? (filesWithInvalidatedResolutions = /* @__PURE__ */ new Set())).add(f.path); - invalidated = true; - } - }); - affectingPathChecksForFile = void 0; - } - if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks && !affectingPathChecks) { - return invalidated; - } - invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution) || invalidated; - invalidatePackageJsonMap(); - failedLookupChecks = void 0; - startsWithPathChecks = void 0; - isInDirectoryChecks = void 0; - invalidated = invalidateResolutions(resolutionsWithOnlyAffectingLocations, canInvalidatedFailedLookupResolutionWithAffectingLocation) || invalidated; - affectingPathChecks = void 0; - return invalidated; - } - function canInvalidateFailedLookupResolution(resolution) { - var _a; - if (canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution)) return true; - if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks) return false; - return ((_a = resolution.failedLookupLocations) == null ? void 0 : _a.some((location) => isInvalidatedFailedLookup(resolutionHost.toPath(location)))) || !!resolution.alternateResult && isInvalidatedFailedLookup(resolutionHost.toPath(resolution.alternateResult)); - } - function isInvalidatedFailedLookup(locationPath) { - return (failedLookupChecks == null ? void 0 : failedLookupChecks.has(locationPath)) || firstDefinedIterator((startsWithPathChecks == null ? void 0 : startsWithPathChecks.keys()) || [], (fileOrDirectoryPath) => startsWith(locationPath, fileOrDirectoryPath) ? true : void 0) || firstDefinedIterator((isInDirectoryChecks == null ? void 0 : isInDirectoryChecks.keys()) || [], (dirPath) => locationPath.length > dirPath.length && startsWith(locationPath, dirPath) && (isDiskPathRoot(dirPath) || locationPath[dirPath.length] === directorySeparator) ? true : void 0); - } - function canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution) { - var _a; - return !!affectingPathChecks && ((_a = resolution.affectingLocations) == null ? void 0 : _a.some((location) => affectingPathChecks.has(location))); - } - function closeTypeRootsWatch() { - clearMap(typeRootsWatches, closeFileWatcher); - } - function createTypeRootsWatch(typeRoot) { - return canWatchTypeRootPath(typeRoot) ? resolutionHost.watchTypeRootsDirectory(typeRoot, (fileOrDirectory) => { - const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory); - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); - } - hasChangedAutomaticTypeDirectiveNames = true; - resolutionHost.onChangedAutomaticTypeDirectiveNames(); - const dirPath = getDirectoryToWatchFailedLookupLocationFromTypeRoot( - typeRoot, - resolutionHost.toPath(typeRoot), - rootPath, - rootPathComponents, - isRootWatchable, - getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch, - (dirPath2) => directoryWatchesOfFailedLookups.has(dirPath2) || dirPathToSymlinkPackageRefCount.has(dirPath2) - ); - if (dirPath) { - scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath); - } - }, 1 /* Recursive */) : noopFileWatcher; - } - function updateTypeRootsWatch() { - const options = resolutionHost.getCompilationSettings(); - if (options.types) { - closeTypeRootsWatch(); - return; - } - const typeRoots = getEffectiveTypeRoots(options, { getCurrentDirectory }); - if (typeRoots) { - mutateMap( - typeRootsWatches, - new Set(typeRoots), - { - createNewValue: createTypeRootsWatch, - onDeleteValue: closeFileWatcher - } - ); - } else { - closeTypeRootsWatch(); - } - } - function canWatchTypeRootPath(typeRoot) { - if (resolutionHost.getCompilationSettings().typeRoots) return true; - return canWatchAtTypes(resolutionHost.toPath(typeRoot)); - } -} -function resolutionIsSymlink(resolution) { - var _a, _b; - return !!(((_a = resolution.resolvedModule) == null ? void 0 : _a.originalPath) || ((_b = resolution.resolvedTypeReferenceDirective) == null ? void 0 : _b.originalPath)); -} - -// src/compiler/watch.ts -var sysFormatDiagnosticsHost = sys ? { - getCurrentDirectory: () => sys.getCurrentDirectory(), - getNewLine: () => sys.newLine, - getCanonicalFileName: createGetCanonicalFileName(sys.useCaseSensitiveFileNames) -} : void 0; -function createDiagnosticReporter(system, pretty) { - const host = system === sys && sysFormatDiagnosticsHost ? sysFormatDiagnosticsHost : { - getCurrentDirectory: () => system.getCurrentDirectory(), - getNewLine: () => system.newLine, - getCanonicalFileName: createGetCanonicalFileName(system.useCaseSensitiveFileNames) - }; - if (!pretty) { - return (diagnostic) => system.write(formatDiagnostic(diagnostic, host)); - } - const diagnostics = new Array(1); - return (diagnostic) => { - diagnostics[0] = diagnostic; - system.write(formatDiagnosticsWithColorAndContext(diagnostics, host) + host.getNewLine()); - diagnostics[0] = void 0; - }; -} -function clearScreenIfNotWatchingForFileChanges(system, diagnostic, options) { - if (system.clearScreen && !options.preserveWatchOutput && !options.extendedDiagnostics && !options.diagnostics && contains(screenStartingMessageCodes, diagnostic.code)) { - system.clearScreen(); - return true; - } - return false; -} -var screenStartingMessageCodes = [ - Diagnostics.Starting_compilation_in_watch_mode.code, - Diagnostics.File_change_detected_Starting_incremental_compilation.code -]; -function getPlainDiagnosticFollowingNewLines(diagnostic, newLine) { - return contains(screenStartingMessageCodes, diagnostic.code) ? newLine + newLine : newLine; -} -function getLocaleTimeString(system) { - return !system.now ? (/* @__PURE__ */ new Date()).toLocaleTimeString() : ( - // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. - // This branch is solely for testing, so just switch it to a normal space for baseline stability. - // See: - // - https://github.com/nodejs/node/issues/45171 - // - https://github.com/nodejs/node/issues/45753 - system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202F", " ") - ); -} -function createWatchStatusReporter(system, pretty) { - return pretty ? (diagnostic, newLine, options) => { - clearScreenIfNotWatchingForFileChanges(system, diagnostic, options); - let output = `[${formatColorAndReset(getLocaleTimeString(system), "\x1B[90m" /* Grey */)}] `; - output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${newLine + newLine}`; - system.write(output); - } : (diagnostic, newLine, options) => { - let output = ""; - if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) { - output += newLine; - } - output += `${getLocaleTimeString(system)} - `; - output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${getPlainDiagnosticFollowingNewLines(diagnostic, newLine)}`; - system.write(output); - }; -} -function parseConfigFileWithSystem(configFileName, optionsToExtend, extendedConfigCache, watchOptionsToExtend, system, reportDiagnostic) { - const host = system; - host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic); - const result = getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend); - host.onUnRecoverableConfigFileDiagnostic = void 0; - return result; -} -function getErrorCountForSummary(diagnostics) { - return countWhere(diagnostics, (diagnostic) => diagnostic.category === 1 /* Error */); -} -function getFilesInErrorForSummary(diagnostics) { - const filesInError = filter(diagnostics, (diagnostic) => diagnostic.category === 1 /* Error */).map( - (errorDiagnostic) => { - if (errorDiagnostic.file === void 0) return; - return `${errorDiagnostic.file.fileName}`; - } - ); - return filesInError.map((fileName) => { - if (fileName === void 0) { - return void 0; - } - const diagnosticForFileName = find(diagnostics, (diagnostic) => diagnostic.file !== void 0 && diagnostic.file.fileName === fileName); - if (diagnosticForFileName !== void 0) { - const { line } = getLineAndCharacterOfPosition(diagnosticForFileName.file, diagnosticForFileName.start); - return { - fileName, - line: line + 1 - }; - } - }); -} -function getWatchErrorSummaryDiagnosticMessage(errorCount) { - return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes; -} -function prettyPathForFileError(error, cwd) { - const line = formatColorAndReset(":" + error.line, "\x1B[90m" /* Grey */); - if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) { - return getRelativePathFromDirectory( - cwd, - error.fileName, - /*ignoreCase*/ - false - ) + line; - } - return error.fileName + line; -} -function getErrorSummaryText(errorCount, filesInError, newLine, host) { - if (errorCount === 0) return ""; - const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0); - const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index); - const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory()); - let messageAndArgs; - if (errorCount === 1) { - messageAndArgs = filesInError[0] !== void 0 ? [Diagnostics.Found_1_error_in_0, firstFileReference] : [Diagnostics.Found_1_error]; - } else { - messageAndArgs = distinctFileNamesWithLines.length === 0 ? [Diagnostics.Found_0_errors, errorCount] : distinctFileNamesWithLines.length === 1 ? [Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1, errorCount, firstFileReference] : [Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length]; - } - const d = createCompilerDiagnostic(...messageAndArgs); - const suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : ""; - return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`; -} -function createTabularErrorsDisplay(filesInError, host) { - const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName))); - if (distinctFiles.length === 0) return ""; - const numberLength = (num) => Math.log(num) * Math.LOG10E + 1; - const fileToErrorCount = distinctFiles.map((file) => [file, countWhere(filesInError, (fileInError) => fileInError.fileName === file.fileName)]); - const maxErrors = maxBy(fileToErrorCount, 0, (value) => value[1]); - const headerRow = Diagnostics.Errors_Files.message; - const leftColumnHeadingLength = headerRow.split(" ")[0].length; - const leftPaddingGoal = Math.max(leftColumnHeadingLength, numberLength(maxErrors)); - const headerPadding = Math.max(numberLength(maxErrors) - leftColumnHeadingLength, 0); - let tabularData = ""; - tabularData += " ".repeat(headerPadding) + headerRow + "\n"; - fileToErrorCount.forEach((row) => { - const [file, errorCount] = row; - const errorCountDigitsLength = Math.log(errorCount) * Math.LOG10E + 1 | 0; - const leftPadding = errorCountDigitsLength < leftPaddingGoal ? " ".repeat(leftPaddingGoal - errorCountDigitsLength) : ""; - const fileRef = prettyPathForFileError(file, host.getCurrentDirectory()); - tabularData += `${leftPadding}${errorCount} ${fileRef} -`; - }); - return tabularData; -} -function isBuilderProgram(program) { - return !!program.state; -} -function listFiles(program, write) { - const options = program.getCompilerOptions(); - if (options.explainFiles) { - explainFiles(isBuilderProgram(program) ? program.getProgram() : program, write); - } else if (options.listFiles || options.listFilesOnly) { - forEach(program.getSourceFiles(), (file) => { - write(file.fileName); - }); - } -} -function explainFiles(program, write) { - var _a, _b; - const reasons = program.getFileIncludeReasons(); - const relativeFileName = (fileName) => convertToRelativePath(fileName, program.getCurrentDirectory(), program.getCanonicalFileName); - for (const file of program.getSourceFiles()) { - write(`${toFileName(file, relativeFileName)}`); - (_a = reasons.get(file.path)) == null ? void 0 : _a.forEach((reason) => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); - (_b = explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file), relativeFileName)) == null ? void 0 : _b.forEach((d) => write(` ${d.messageText}`)); - } -} -function explainIfFileIsRedirectAndImpliedFormat(file, options, fileNameConvertor) { - var _a; - let result; - if (file.path !== file.resolvedPath) { - (result ?? (result = [])).push(chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.File_is_output_of_project_reference_source_0, - toFileName(file.originalFileName, fileNameConvertor) - )); - } - if (file.redirectInfo) { - (result ?? (result = [])).push(chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.File_redirects_to_file_0, - toFileName(file.redirectInfo.redirectTarget, fileNameConvertor) - )); - } - if (isExternalOrCommonJsModule(file)) { - switch (getImpliedNodeFormatForEmitWorker(file, options)) { - case 99 /* ESNext */: - if (file.packageJsonScope) { - (result ?? (result = [])).push(chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, - toFileName(last(file.packageJsonLocations), fileNameConvertor) - )); - } - break; - case 1 /* CommonJS */: - if (file.packageJsonScope) { - (result ?? (result = [])).push(chainDiagnosticMessages( - /*details*/ - void 0, - file.packageJsonScope.contents.packageJsonContent.type ? Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, - toFileName(last(file.packageJsonLocations), fileNameConvertor) - )); - } else if ((_a = file.packageJsonLocations) == null ? void 0 : _a.length) { - (result ?? (result = [])).push(chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found - )); - } - break; - } - } - return result; -} -function getMatchedFileSpec(program, fileName) { - var _a; - const configFile = program.getCompilerOptions().configFile; - if (!((_a = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a.validatedFilesSpec)) return void 0; - const filePath = program.getCanonicalFileName(fileName); - const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const index = findIndex(configFile.configFileSpecs.validatedFilesSpec, (fileSpec) => program.getCanonicalFileName(getNormalizedAbsolutePath(fileSpec, basePath)) === filePath); - return index !== -1 ? configFile.configFileSpecs.validatedFilesSpecBeforeSubstitution[index] : void 0; -} -function getMatchedIncludeSpec(program, fileName) { - var _a, _b; - const configFile = program.getCompilerOptions().configFile; - if (!((_a = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a.validatedIncludeSpecs)) return void 0; - if (configFile.configFileSpecs.isDefaultIncludeSpec) return true; - const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); - const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); - const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); - const index = findIndex((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { - if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; - const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); - }); - return index !== -1 ? configFile.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[index] : void 0; -} -function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { - var _a, _b; - const options = program.getCompilerOptions(); - if (isReferencedFile(reason)) { - const referenceLocation = getReferencedFileLocation(program, reason); - const referenceText = isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : `"${referenceLocation.text}"`; - let message; - Debug.assert(isReferenceFileLocation(referenceLocation) || reason.kind === 3 /* Import */, "Only synthetic references are imports"); - switch (reason.kind) { - case 3 /* Import */: - if (isReferenceFileLocation(referenceLocation)) { - message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2 : Diagnostics.Imported_via_0_from_file_1; - } else if (referenceLocation.text === externalHelpersModuleNameText) { - message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions : Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions; - } else { - message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions : Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions; - } - break; - case 4 /* ReferenceFile */: - Debug.assert(!referenceLocation.packageId); - message = Diagnostics.Referenced_via_0_from_file_1; - break; - case 5 /* TypeReferenceDirective */: - message = referenceLocation.packageId ? Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2 : Diagnostics.Type_library_referenced_via_0_from_file_1; - break; - case 7 /* LibReferenceDirective */: - Debug.assert(!referenceLocation.packageId); - message = Diagnostics.Library_referenced_via_0_from_file_1; - break; - default: - Debug.assertNever(reason); - } - return chainDiagnosticMessages( - /*details*/ - void 0, - message, - referenceText, - toFileName(referenceLocation.file, fileNameConvertor), - referenceLocation.packageId && packageIdToString(referenceLocation.packageId) - ); - } - switch (reason.kind) { - case 0 /* RootFile */: - if (!((_a = options.configFile) == null ? void 0 : _a.configFileSpecs)) return chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Root_file_specified_for_compilation - ); - const fileName = getNormalizedAbsolutePath(program.getRootFileNames()[reason.index], program.getCurrentDirectory()); - const matchedByFiles = getMatchedFileSpec(program, fileName); - if (matchedByFiles) return chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Part_of_files_list_in_tsconfig_json - ); - const matchedByInclude = getMatchedIncludeSpec(program, fileName); - return isString(matchedByInclude) ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Matched_by_include_pattern_0_in_1, - matchedByInclude, - toFileName(options.configFile, fileNameConvertor) - ) : ( - // Could be additional files specified as roots or matched by default include - chainDiagnosticMessages( - /*details*/ - void 0, - matchedByInclude ? Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk : Diagnostics.Root_file_specified_for_compilation - ) - ); - case 1 /* SourceFromProjectReference */: - case 2 /* OutputFromProjectReference */: - const isOutput = reason.kind === 2 /* OutputFromProjectReference */; - const referencedResolvedRef = Debug.checkDefined((_b = program.getResolvedProjectReferences()) == null ? void 0 : _b[reason.index]); - return chainDiagnosticMessages( - /*details*/ - void 0, - options.outFile ? isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_1_specified : Diagnostics.Source_from_referenced_project_0_included_because_1_specified : isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none : Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none, - toFileName(referencedResolvedRef.sourceFile.fileName, fileNameConvertor), - options.outFile ? "--outFile" : "--out" - ); - case 8 /* AutomaticTypeDirectiveFile */: { - const messageAndArgs = options.types ? reason.packageId ? [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions, reason.typeReference] : reason.packageId ? [Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference]; - return chainDiagnosticMessages( - /*details*/ - void 0, - ...messageAndArgs - ); - } - case 6 /* LibFile */: { - if (reason.index !== void 0) return chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.Library_0_specified_in_compilerOptions, - options.lib[reason.index] - ); - const target = getNameOfScriptTarget(getEmitScriptTarget(options)); - const messageAndArgs = target ? [Diagnostics.Default_library_for_target_0, target] : [Diagnostics.Default_library]; - return chainDiagnosticMessages( - /*details*/ - void 0, - ...messageAndArgs - ); - } - default: - Debug.assertNever(reason); - } -} -function toFileName(file, fileNameConvertor) { - const fileName = isString(file) ? file : file.fileName; - return fileNameConvertor ? fileNameConvertor(fileName) : fileName; -} -function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - const options = program.getCompilerOptions(); - const allDiagnostics = program.getConfigFileParsingDiagnostics().slice(); - const configFileParsingDiagnosticsLength = allDiagnostics.length; - addRange(allDiagnostics, program.getSyntacticDiagnostics( - /*sourceFile*/ - void 0, - cancellationToken - )); - if (allDiagnostics.length === configFileParsingDiagnosticsLength) { - addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken)); - if (!options.listFilesOnly) { - addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken)); - if (allDiagnostics.length === configFileParsingDiagnosticsLength) { - addRange(allDiagnostics, program.getSemanticDiagnostics( - /*sourceFile*/ - void 0, - cancellationToken - )); - } - if (options.noEmit && getEmitDeclarations(options) && allDiagnostics.length === configFileParsingDiagnosticsLength) { - addRange(allDiagnostics, program.getDeclarationDiagnostics( - /*sourceFile*/ - void 0, - cancellationToken - )); - } - } - } - const emitResult = options.listFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program.emit( - /*targetSourceFile*/ - void 0, - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers - ); - addRange(allDiagnostics, emitResult.diagnostics); - const diagnostics = sortAndDeduplicateDiagnostics(allDiagnostics); - diagnostics.forEach(reportDiagnostic); - if (write) { - const currentDir = program.getCurrentDirectory(); - forEach(emitResult.emittedFiles, (file) => { - const filepath = getNormalizedAbsolutePath(file, currentDir); - write(`TSFILE: ${filepath}`); - }); - listFiles(program, write); - } - if (reportSummary) { - reportSummary(getErrorCountForSummary(diagnostics), getFilesInErrorForSummary(diagnostics)); - } - return { - emitResult, - diagnostics - }; -} -function emitFilesAndReportErrorsAndGetExitStatus(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - const { emitResult, diagnostics } = emitFilesAndReportErrors( - program, - reportDiagnostic, - write, - reportSummary, - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers - ); - if (emitResult.emitSkipped && diagnostics.length > 0) { - return 1 /* DiagnosticsPresent_OutputsSkipped */; - } else if (diagnostics.length > 0) { - return 2 /* DiagnosticsPresent_OutputsGenerated */; - } - return 0 /* Success */; -} -var noopFileWatcher = { close: noop }; -var returnNoopFileWatcher = () => noopFileWatcher; -function createWatchHost(system = sys, reportWatchStatus2) { - const onWatchStatusChange = reportWatchStatus2 || createWatchStatusReporter(system); - return { - onWatchStatusChange, - watchFile: maybeBind(system, system.watchFile) || returnNoopFileWatcher, - watchDirectory: maybeBind(system, system.watchDirectory) || returnNoopFileWatcher, - setTimeout: maybeBind(system, system.setTimeout) || noop, - clearTimeout: maybeBind(system, system.clearTimeout) || noop, - preferNonRecursiveWatch: system.preferNonRecursiveWatch - }; -} -var WatchType = { - ConfigFile: "Config file", - ExtendedConfigFile: "Extended config file", - SourceFile: "Source file", - MissingFile: "Missing file", - WildcardDirectory: "Wild card directory", - FailedLookupLocations: "Failed Lookup Locations", - AffectingFileLocation: "File location affecting resolution", - TypeRoots: "Type roots", - ConfigFileOfReferencedProject: "Config file of referened project", - ExtendedConfigOfReferencedProject: "Extended config file of referenced project", - WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project", - PackageJson: "package.json file", - ClosedScriptInfo: "Closed Script info", - ConfigFileForInferredRoot: "Config file for the inferred project root", - NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache", - MissingSourceMapFile: "Missing source map file", - NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root", - MissingGeneratedFile: "Missing generated file", - NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation", - TypingInstallerLocationFile: "File location for typing installer", - TypingInstallerLocationDirectory: "Directory location for typing installer" -}; -function createWatchFactory(host, options) { - const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 /* Verbose */ : options.diagnostics ? 1 /* TriggerOnly */ : 0 /* None */ : 0 /* None */; - const writeLog = watchLogLevel !== 0 /* None */ ? (s) => host.trace(s) : noop; - const result = getWatchFactory(host, watchLogLevel, writeLog); - result.writeLog = writeLog; - return result; -} -function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { - const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); - const compilerHost = { - getSourceFile: createGetSourceFile( - (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), - /*setParentNodes*/ - void 0 - ), - getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation), - getDefaultLibFileName: (options) => host.getDefaultLibFileName(options), - writeFile: createWriteFileMeasuringIO( - (path, data, writeByteOrderMark) => host.writeFile(path, data, writeByteOrderMark), - (path) => host.createDirectory(path), - (path) => host.directoryExists(path) - ), - getCurrentDirectory: memoize(() => host.getCurrentDirectory()), - useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, - getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), - getNewLine: () => getNewLineCharacter(getCompilerOptions()), - fileExists: (f) => host.fileExists(f), - readFile: (f) => host.readFile(f), - trace: maybeBind(host, host.trace), - directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), - getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), - realpath: maybeBind(host, host.realpath), - getEnvironmentVariable: maybeBind(host, host.getEnvironmentVariable) || (() => ""), - createHash: maybeBind(host, host.createHash), - readDirectory: maybeBind(host, host.readDirectory), - storeSignatureInfo: host.storeSignatureInfo, - jsDocParsingMode: host.jsDocParsingMode - }; - return compilerHost; -} -function getSourceFileVersionAsHashFromText(host, text) { - if (text.match(sourceMapCommentRegExpDontCareLineStart)) { - let lineEnd = text.length; - let lineStart = lineEnd; - for (let pos = lineEnd - 1; pos >= 0; pos--) { - const ch = text.charCodeAt(pos); - switch (ch) { - case 10 /* lineFeed */: - if (pos && text.charCodeAt(pos - 1) === 13 /* carriageReturn */) { - pos--; - } - // falls through - case 13 /* carriageReturn */: - break; - default: - if (ch < 127 /* maxAsciiCharacter */ || !isLineBreak(ch)) { - lineStart = pos; - continue; - } - break; - } - const line = text.substring(lineStart, lineEnd); - if (line.match(sourceMapCommentRegExp)) { - text = text.substring(0, lineStart); - break; - } else if (!line.match(whitespaceOrMapCommentRegExp)) { - break; - } - lineEnd = lineStart; - } - } - return (host.createHash || generateDjb2Hash)(text); -} -function setGetSourceFileAsHashVersioned(compilerHost) { - const originalGetSourceFile = compilerHost.getSourceFile; - compilerHost.getSourceFile = (...args) => { - const result = originalGetSourceFile.call(compilerHost, ...args); - if (result) { - result.version = getSourceFileVersionAsHashFromText(compilerHost, result.text); - } - return result; - }; -} -function createProgramHost(system, createProgram2) { - const getDefaultLibLocation = memoize(() => getDirectoryPath(normalizePath(system.getExecutingFilePath()))); - return { - useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames, - getNewLine: () => system.newLine, - getCurrentDirectory: memoize(() => system.getCurrentDirectory()), - getDefaultLibLocation, - getDefaultLibFileName: (options) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options)), - fileExists: (path) => system.fileExists(path), - readFile: (path, encoding) => system.readFile(path, encoding), - directoryExists: (path) => system.directoryExists(path), - getDirectories: (path) => system.getDirectories(path), - readDirectory: (path, extensions, exclude, include, depth) => system.readDirectory(path, extensions, exclude, include, depth), - realpath: maybeBind(system, system.realpath), - getEnvironmentVariable: maybeBind(system, system.getEnvironmentVariable), - trace: (s) => system.write(s + system.newLine), - createDirectory: (path) => system.createDirectory(path), - writeFile: (path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark), - createHash: maybeBind(system, system.createHash), - createProgram: createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram, - storeSignatureInfo: system.storeSignatureInfo, - now: maybeBind(system, system.now) - }; -} -function createWatchCompilerHost(system = sys, createProgram2, reportDiagnostic, reportWatchStatus2) { - const write = (s) => system.write(s + system.newLine); - const result = createProgramHost(system, createProgram2); - copyProperties(result, createWatchHost(system, reportWatchStatus2)); - result.afterProgramCreate = (builderProgram) => { - const compilerOptions = builderProgram.getCompilerOptions(); - const newLine = getNewLineCharacter(compilerOptions); - emitFilesAndReportErrors( - builderProgram, - reportDiagnostic, - write, - (errorCount) => result.onWatchStatusChange( - createCompilerDiagnostic(getWatchErrorSummaryDiagnosticMessage(errorCount), errorCount), - newLine, - compilerOptions, - errorCount - ) - ); - }; - return result; -} -function reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic) { - reportDiagnostic(diagnostic); - system.exit(1 /* DiagnosticsPresent_OutputsSkipped */); -} -function createWatchCompilerHostOfConfigFile({ - configFileName, - optionsToExtend, - watchOptionsToExtend, - extraFileExtensions, - system, - createProgram: createProgram2, - reportDiagnostic, - reportWatchStatus: reportWatchStatus2 -}) { - const diagnosticReporter = reportDiagnostic || createDiagnosticReporter(system); - const host = createWatchCompilerHost(system, createProgram2, diagnosticReporter, reportWatchStatus2); - host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, diagnosticReporter, diagnostic); - host.configFileName = configFileName; - host.optionsToExtend = optionsToExtend; - host.watchOptionsToExtend = watchOptionsToExtend; - host.extraFileExtensions = extraFileExtensions; - return host; -} -function createWatchCompilerHostOfFilesAndCompilerOptions({ - rootFiles, - options, - watchOptions, - projectReferences, - system, - createProgram: createProgram2, - reportDiagnostic, - reportWatchStatus: reportWatchStatus2 -}) { - const host = createWatchCompilerHost(system, createProgram2, reportDiagnostic || createDiagnosticReporter(system), reportWatchStatus2); - host.rootFiles = rootFiles; - host.options = options; - host.watchOptions = watchOptions; - host.projectReferences = projectReferences; - return host; -} -function performIncrementalCompilation(input) { - const system = input.system || sys; - const host = input.host || (input.host = createIncrementalCompilerHost(input.options, system)); - const builderProgram = createIncrementalProgram(input); - const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( - builderProgram, - input.reportDiagnostic || createDiagnosticReporter(system), - (s) => host.trace && host.trace(s), - input.reportErrorSummary || input.options.pretty ? (errorCount, filesInError) => system.write(getErrorSummaryText(errorCount, filesInError, system.newLine, host)) : void 0 - ); - if (input.afterProgramEmitAndDiagnostics) input.afterProgramEmitAndDiagnostics(builderProgram); - return exitStatus; -} - -// src/compiler/watchPublic.ts -function readBuilderProgram(compilerOptions, host) { - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); - if (!buildInfoPath) return void 0; - let buildInfo; - if (host.getBuildInfo) { - buildInfo = host.getBuildInfo(buildInfoPath, compilerOptions.configFilePath); - } else { - const content = host.readFile(buildInfoPath); - if (!content) return void 0; - buildInfo = getBuildInfo(buildInfoPath, content); - } - if (!buildInfo || buildInfo.version !== version || !isIncrementalBuildInfo(buildInfo)) return void 0; - return createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host); -} -function createIncrementalCompilerHost(options, system = sys) { - const host = createCompilerHostWorker( - options, - /*setParentNodes*/ - void 0, - system - ); - host.createHash = maybeBind(system, system.createHash); - host.storeSignatureInfo = system.storeSignatureInfo; - setGetSourceFileAsHashVersioned(host); - changeCompilerHostLikeToUseCache(host, (fileName) => toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName)); - return host; -} -function createIncrementalProgram({ - rootNames, - options, - configFileParsingDiagnostics, - projectReferences, - host, - createProgram: createProgram2 -}) { - host = host || createIncrementalCompilerHost(options); - createProgram2 = createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram; - const oldProgram = readBuilderProgram(options, host); - return createProgram2(rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences); -} -function createWatchProgram(host) { - let builderProgram; - let updateLevel; - let missingFilesMap; - let watchedWildcardDirectories; - let staleWatches = /* @__PURE__ */ new Map([[void 0, void 0]]); - let timerToUpdateProgram; - let timerToInvalidateFailedLookupResolutions; - let parsedConfigs; - let sharedExtendedConfigFileWatchers; - let extendedConfigCache = host.extendedConfigCache; - let reportFileChangeDetectedOnCreateProgram = false; - const sourceFilesCache = /* @__PURE__ */ new Map(); - let missingFilePathsRequestedForRelease; - let hasChangedCompilerOptions = false; - const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); - const currentDirectory = host.getCurrentDirectory(); - const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; - let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; - let wildcardDirectories; - let configFileParsingDiagnostics; - let canConfigFileJsonReportNoInputFiles = false; - let hasChangedConfigFileParsingErrors = false; - const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); - const directoryStructureHost = cachedDirectoryStructureHost || host; - const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); - let newLine = updateNewLine(); - if (configFileName && host.configFileParsingResult) { - setConfigFileParsingResult(host.configFileParsingResult); - newLine = updateNewLine(); - } - reportWatchDiagnostic(Diagnostics.Starting_compilation_in_watch_mode); - if (configFileName && !host.configFileParsingResult) { - newLine = getNewLineCharacter(optionsToExtendForConfigFile); - Debug.assert(!rootFileNames); - parseConfigFile2(); - newLine = updateNewLine(); - } - Debug.assert(compilerOptions); - Debug.assert(rootFileNames); - const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); - const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); - writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); - let configFileWatcher; - if (configFileName) { - configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); - } - const compilerHost = createCompilerHostFromProgramHost(host, () => compilerOptions, directoryStructureHost); - setGetSourceFileAsHashVersioned(compilerHost); - const getNewSourceFile = compilerHost.getSourceFile; - compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath3(fileName), ...args); - compilerHost.getSourceFileByPath = getVersionedSourceFileByPath; - compilerHost.getNewLine = () => newLine; - compilerHost.fileExists = fileExists; - compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile; - compilerHost.onReleaseParsedCommandLine = onReleaseParsedCommandLine; - compilerHost.toPath = toPath3; - compilerHost.getCompilationSettings = () => compilerOptions; - compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect); - compilerHost.preferNonRecursiveWatch = host.preferNonRecursiveWatch; - compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.FailedLookupLocations); - compilerHost.watchAffectingFileLocation = (file, cb) => watchFile2(file, cb, 2e3 /* High */, watchOptions, WatchType.AffectingFileLocation); - compilerHost.watchTypeRootsDirectory = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.TypeRoots); - compilerHost.getCachedDirectoryStructureHost = () => cachedDirectoryStructureHost; - compilerHost.scheduleInvalidateResolutionsOfFailedLookupLocations = scheduleInvalidateResolutionsOfFailedLookupLocations; - compilerHost.onInvalidatedResolution = scheduleProgramUpdate; - compilerHost.onChangedAutomaticTypeDirectiveNames = scheduleProgramUpdate; - compilerHost.fileIsOpen = returnFalse; - compilerHost.getCurrentProgram = getCurrentProgram; - compilerHost.writeLog = writeLog; - compilerHost.getParsedCommandLine = getParsedCommandLine; - const resolutionCache = createResolutionCache( - compilerHost, - configFileName ? getDirectoryPath(getNormalizedAbsolutePath(configFileName, currentDirectory)) : currentDirectory, - /*logChangesWhenResolvingModule*/ - false - ); - compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); - compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); - if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) { - compilerHost.resolveModuleNameLiterals = resolutionCache.resolveModuleNameLiterals.bind(resolutionCache); - } - compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences); - compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); - if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) { - compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache); - } - compilerHost.resolveLibrary = !host.resolveLibrary ? resolutionCache.resolveLibrary.bind(resolutionCache) : host.resolveLibrary.bind(host); - compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : () => resolutionCache.getModuleResolutionCache(); - const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives; - const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse; - const customHasInvalidLibResolutions = host.resolveLibrary ? maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : returnFalse; - builderProgram = readBuilderProgram(compilerOptions, compilerHost); - synchronizeProgram(); - return configFileName ? { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, close, getResolutionCache } : { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, updateRootFileNames, close, getResolutionCache }; - function close() { - clearInvalidateResolutionsOfFailedLookupLocations(); - resolutionCache.clear(); - clearMap(sourceFilesCache, (value) => { - if (value && value.fileWatcher) { - value.fileWatcher.close(); - value.fileWatcher = void 0; - } - }); - if (configFileWatcher) { - configFileWatcher.close(); - configFileWatcher = void 0; - } - extendedConfigCache == null ? void 0 : extendedConfigCache.clear(); - extendedConfigCache = void 0; - if (sharedExtendedConfigFileWatchers) { - clearMap(sharedExtendedConfigFileWatchers, closeFileWatcherOf); - sharedExtendedConfigFileWatchers = void 0; - } - if (watchedWildcardDirectories) { - clearMap(watchedWildcardDirectories, closeFileWatcherOf); - watchedWildcardDirectories = void 0; - } - if (missingFilesMap) { - clearMap(missingFilesMap, closeFileWatcher); - missingFilesMap = void 0; - } - if (parsedConfigs) { - clearMap(parsedConfigs, (config) => { - var _a; - (_a = config.watcher) == null ? void 0 : _a.close(); - config.watcher = void 0; - if (config.watchedDirectories) clearMap(config.watchedDirectories, closeFileWatcherOf); - config.watchedDirectories = void 0; - }); - parsedConfigs = void 0; - } - builderProgram = void 0; - } - function getResolutionCache() { - return resolutionCache; - } - function getCurrentBuilderProgram() { - return builderProgram; - } - function getCurrentProgram() { - return builderProgram && builderProgram.getProgramOrUndefined(); - } - function synchronizeProgram() { - writeLog(`Synchronizing program`); - Debug.assert(compilerOptions); - Debug.assert(rootFileNames); - clearInvalidateResolutionsOfFailedLookupLocations(); - const program = getCurrentBuilderProgram(); - if (hasChangedCompilerOptions) { - newLine = updateNewLine(); - if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { - resolutionCache.onChangesAffectModuleResolution(); - } - } - const { hasInvalidatedResolutions, hasInvalidatedLibResolutions } = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidLibResolutions); - const { - originalReadFile, - originalFileExists, - originalDirectoryExists, - originalCreateDirectory, - originalWriteFile, - readFileWithCache - } = changeCompilerHostLikeToUseCache(compilerHost, toPath3); - if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path) => getSourceVersion(path, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { - if (hasChangedConfigFileParsingErrors) { - if (reportFileChangeDetectedOnCreateProgram) { - reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); - } - builderProgram = createProgram2( - /*rootNames*/ - void 0, - /*options*/ - void 0, - compilerHost, - builderProgram, - configFileParsingDiagnostics, - projectReferences - ); - hasChangedConfigFileParsingErrors = false; - } - } else { - if (reportFileChangeDetectedOnCreateProgram) { - reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); - } - createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions); - } - reportFileChangeDetectedOnCreateProgram = false; - if (host.afterProgramCreate && program !== builderProgram) { - host.afterProgramCreate(builderProgram); - } - compilerHost.readFile = originalReadFile; - compilerHost.fileExists = originalFileExists; - compilerHost.directoryExists = originalDirectoryExists; - compilerHost.createDirectory = originalCreateDirectory; - compilerHost.writeFile = originalWriteFile; - staleWatches == null ? void 0 : staleWatches.forEach((configFile, configPath) => { - if (!configPath) { - watchConfigFileWildCardDirectories(); - if (configFileName) updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); - } else { - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); - if (config) watchReferencedProject(configFile, configPath, config); - } - }); - staleWatches = void 0; - return builderProgram; - } - function createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions) { - writeLog("CreatingProgramWith::"); - writeLog(` roots: ${JSON.stringify(rootFileNames)}`); - writeLog(` options: ${JSON.stringify(compilerOptions)}`); - if (projectReferences) writeLog(` projectReferences: ${JSON.stringify(projectReferences)}`); - const needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram(); - hasChangedCompilerOptions = false; - hasChangedConfigFileParsingErrors = false; - resolutionCache.startCachingPerDirectoryResolution(); - compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions; - compilerHost.hasInvalidatedLibResolutions = hasInvalidatedLibResolutions; - compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; - const oldProgram = getCurrentProgram(); - builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences); - resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram); - updateMissingFilePathsWatch( - builderProgram.getProgram(), - missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), - watchMissingFilePath - ); - if (needsUpdateInTypeRootWatch) { - resolutionCache.updateTypeRootsWatch(); - } - if (missingFilePathsRequestedForRelease) { - for (const missingFilePath of missingFilePathsRequestedForRelease) { - if (!missingFilesMap.has(missingFilePath)) { - sourceFilesCache.delete(missingFilePath); - } - } - missingFilePathsRequestedForRelease = void 0; - } - } - function updateRootFileNames(files) { - Debug.assert(!configFileName, "Cannot update root file names with config file watch mode"); - rootFileNames = files; - scheduleProgramUpdate(); - } - function updateNewLine() { - return getNewLineCharacter(compilerOptions || optionsToExtendForConfigFile); - } - function toPath3(fileName) { - return toPath(fileName, currentDirectory, getCanonicalFileName); - } - function isFileMissingOnHost(hostSourceFile) { - return typeof hostSourceFile === "boolean"; - } - function isFilePresenceUnknownOnHost(hostSourceFile) { - return typeof hostSourceFile.version === "boolean"; - } - function fileExists(fileName) { - const path = toPath3(fileName); - if (isFileMissingOnHost(sourceFilesCache.get(path))) { - return false; - } - return directoryStructureHost.fileExists(fileName); - } - function getVersionedSourceFileByPath(fileName, path, languageVersionOrOptions, onError, shouldCreateNewSourceFile) { - const hostSourceFile = sourceFilesCache.get(path); - if (isFileMissingOnHost(hostSourceFile)) { - return void 0; - } - const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; - if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { - const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); - if (hostSourceFile) { - if (sourceFile) { - hostSourceFile.sourceFile = sourceFile; - hostSourceFile.version = sourceFile.version; - if (!hostSourceFile.fileWatcher) { - hostSourceFile.fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250 /* Low */, watchOptions, WatchType.SourceFile); - } - } else { - if (hostSourceFile.fileWatcher) { - hostSourceFile.fileWatcher.close(); - } - sourceFilesCache.set(path, false); - } - } else { - if (sourceFile) { - const fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250 /* Low */, watchOptions, WatchType.SourceFile); - sourceFilesCache.set(path, { sourceFile, version: sourceFile.version, fileWatcher }); - } else { - sourceFilesCache.set(path, false); - } - } - return sourceFile; - } - return hostSourceFile.sourceFile; - } - function nextSourceFileVersion(path) { - const hostSourceFile = sourceFilesCache.get(path); - if (hostSourceFile !== void 0) { - if (isFileMissingOnHost(hostSourceFile)) { - sourceFilesCache.set(path, { version: false }); - } else { - hostSourceFile.version = false; - } - } - } - function getSourceVersion(path, readFileWithCache) { - const hostSourceFile = sourceFilesCache.get(path); - if (!hostSourceFile) return void 0; - if (hostSourceFile.version) return hostSourceFile.version; - const text = readFileWithCache(path); - return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0; - } - function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) { - const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath); - if (hostSourceFileInfo !== void 0) { - if (isFileMissingOnHost(hostSourceFileInfo)) { - (missingFilePathsRequestedForRelease || (missingFilePathsRequestedForRelease = [])).push(oldSourceFile.path); - } else if (hostSourceFileInfo.sourceFile === oldSourceFile) { - if (hostSourceFileInfo.fileWatcher) { - hostSourceFileInfo.fileWatcher.close(); - } - sourceFilesCache.delete(oldSourceFile.resolvedPath); - if (!hasSourceFileByPath) { - resolutionCache.removeResolutionsOfFile(oldSourceFile.path); - } - } - } - } - function reportWatchDiagnostic(message) { - if (host.onWatchStatusChange) { - host.onWatchStatusChange(createCompilerDiagnostic(message), newLine, compilerOptions || optionsToExtendForConfigFile); - } - } - function hasChangedAutomaticTypeDirectiveNames() { - return resolutionCache.hasChangedAutomaticTypeDirectiveNames(); - } - function clearInvalidateResolutionsOfFailedLookupLocations() { - if (!timerToInvalidateFailedLookupResolutions) return false; - host.clearTimeout(timerToInvalidateFailedLookupResolutions); - timerToInvalidateFailedLookupResolutions = void 0; - return true; - } - function scheduleInvalidateResolutionsOfFailedLookupLocations() { - if (!host.setTimeout || !host.clearTimeout) { - return resolutionCache.invalidateResolutionsOfFailedLookupLocations(); - } - const pending = clearInvalidateResolutionsOfFailedLookupLocations(); - writeLog(`Scheduling invalidateFailedLookup${pending ? ", Cancelled earlier one" : ""}`); - timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250, "timerToInvalidateFailedLookupResolutions"); - } - function invalidateResolutionsOfFailedLookup() { - timerToInvalidateFailedLookupResolutions = void 0; - if (resolutionCache.invalidateResolutionsOfFailedLookupLocations()) { - scheduleProgramUpdate(); - } - } - function scheduleProgramUpdate() { - if (!host.setTimeout || !host.clearTimeout) { - return; - } - if (timerToUpdateProgram) { - host.clearTimeout(timerToUpdateProgram); - } - writeLog("Scheduling update"); - timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250, "timerToUpdateProgram"); - } - function scheduleProgramReload() { - Debug.assert(!!configFileName); - updateLevel = 2 /* Full */; - scheduleProgramUpdate(); - } - function updateProgramWithWatchStatus() { - timerToUpdateProgram = void 0; - reportFileChangeDetectedOnCreateProgram = true; - updateProgram(); - } - function updateProgram() { - switch (updateLevel) { - case 1 /* RootNamesAndUpdate */: - reloadFileNamesFromConfigFile(); - break; - case 2 /* Full */: - reloadConfigFile(); - break; - default: - synchronizeProgram(); - break; - } - return getCurrentBuilderProgram(); - } - function reloadFileNamesFromConfigFile() { - writeLog("Reloading new file names and options"); - Debug.assert(compilerOptions); - Debug.assert(configFileName); - updateLevel = 0 /* Update */; - rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions); - if (updateErrorForNoInputFiles( - rootFileNames, - getNormalizedAbsolutePath(configFileName, currentDirectory), - compilerOptions.configFile.configFileSpecs, - configFileParsingDiagnostics, - canConfigFileJsonReportNoInputFiles - )) { - hasChangedConfigFileParsingErrors = true; - } - synchronizeProgram(); - } - function reloadConfigFile() { - Debug.assert(configFileName); - writeLog(`Reloading config file: ${configFileName}`); - updateLevel = 0 /* Update */; - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.clearCache(); - } - parseConfigFile2(); - hasChangedCompilerOptions = true; - (staleWatches ?? (staleWatches = /* @__PURE__ */ new Map())).set(void 0, void 0); - synchronizeProgram(); - } - function parseConfigFile2() { - Debug.assert(configFileName); - setConfigFileParsingResult( - getParsedCommandLineOfConfigFile( - configFileName, - optionsToExtendForConfigFile, - parseConfigFileHost, - extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), - watchOptionsToExtend, - extraFileExtensions - ) - ); - } - function setConfigFileParsingResult(configFileParseResult) { - rootFileNames = configFileParseResult.fileNames; - compilerOptions = configFileParseResult.options; - watchOptions = configFileParseResult.watchOptions; - projectReferences = configFileParseResult.projectReferences; - wildcardDirectories = configFileParseResult.wildcardDirectories; - configFileParsingDiagnostics = getConfigFileParsingDiagnostics(configFileParseResult).slice(); - canConfigFileJsonReportNoInputFiles = canJsonReportNoInputFiles(configFileParseResult.raw); - hasChangedConfigFileParsingErrors = true; - } - function getParsedCommandLine(configFileName2) { - const configPath = toPath3(configFileName2); - let config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); - if (config) { - if (!config.updateLevel) return config.parsedCommandLine; - if (config.parsedCommandLine && config.updateLevel === 1 /* RootNamesAndUpdate */ && !host.getParsedCommandLine) { - writeLog("Reloading new file names and options"); - Debug.assert(compilerOptions); - const fileNames = getFileNamesFromConfigSpecs( - config.parsedCommandLine.options.configFile.configFileSpecs, - getNormalizedAbsolutePath(getDirectoryPath(configFileName2), currentDirectory), - compilerOptions, - parseConfigFileHost - ); - config.parsedCommandLine = { ...config.parsedCommandLine, fileNames }; - config.updateLevel = void 0; - return config.parsedCommandLine; - } - } - writeLog(`Loading config file: ${configFileName2}`); - const parsedCommandLine = host.getParsedCommandLine ? host.getParsedCommandLine(configFileName2) : getParsedCommandLineFromConfigFileHost(configFileName2); - if (config) { - config.parsedCommandLine = parsedCommandLine; - config.updateLevel = void 0; - } else { - (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine }); - } - (staleWatches ?? (staleWatches = /* @__PURE__ */ new Map())).set(configPath, configFileName2); - return parsedCommandLine; - } - function getParsedCommandLineFromConfigFileHost(configFileName2) { - const onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic; - parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop; - const parsedCommandLine = getParsedCommandLineOfConfigFile( - configFileName2, - /*optionsToExtend*/ - void 0, - parseConfigFileHost, - extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), - watchOptionsToExtend - ); - parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic; - return parsedCommandLine; - } - function onReleaseParsedCommandLine(fileName) { - var _a; - const path = toPath3(fileName); - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(path); - if (!config) return; - parsedConfigs.delete(path); - if (config.watchedDirectories) clearMap(config.watchedDirectories, closeFileWatcherOf); - (_a = config.watcher) == null ? void 0 : _a.close(); - clearSharedExtendedConfigFileWatcher(path, sharedExtendedConfigFileWatchers); - } - function watchFilePath(path, file, callback, pollingInterval, options, watchType) { - return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path), pollingInterval, options, watchType); - } - function onSourceFileChange(fileName, eventKind, path) { - updateCachedSystemWithFile(fileName, path, eventKind); - if (eventKind === 2 /* Deleted */ && sourceFilesCache.has(path)) { - resolutionCache.invalidateResolutionOfFile(path); - } - nextSourceFileVersion(path); - scheduleProgramUpdate(); - } - function updateCachedSystemWithFile(fileName, path, eventKind) { - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.addOrDeleteFile(fileName, path, eventKind); - } - } - function watchMissingFilePath(missingFilePath, missingFileName) { - return (parsedConfigs == null ? void 0 : parsedConfigs.has(missingFilePath)) ? noopFileWatcher : watchFilePath( - missingFilePath, - missingFileName, - onMissingFileChange, - 500 /* Medium */, - watchOptions, - WatchType.MissingFile - ); - } - function onMissingFileChange(fileName, eventKind, missingFilePath) { - updateCachedSystemWithFile(fileName, missingFilePath, eventKind); - if (eventKind === 0 /* Created */ && missingFilesMap.has(missingFilePath)) { - missingFilesMap.get(missingFilePath).close(); - missingFilesMap.delete(missingFilePath); - nextSourceFileVersion(missingFilePath); - scheduleProgramUpdate(); - } - } - function watchConfigFileWildCardDirectories() { - updateWatchingWildcardDirectories( - watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()), - wildcardDirectories, - watchWildcardDirectory - ); - } - function watchWildcardDirectory(directory, flags) { - return watchDirectory( - directory, - (fileOrDirectory) => { - Debug.assert(configFileName); - Debug.assert(compilerOptions); - const fileOrDirectoryPath = toPath3(fileOrDirectory); - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); - } - nextSourceFileVersion(fileOrDirectoryPath); - if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: toPath3(directory), - fileOrDirectory, - fileOrDirectoryPath, - configFileName, - extraFileExtensions, - options: compilerOptions, - program: getCurrentBuilderProgram() || rootFileNames, - currentDirectory, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - writeLog, - toPath: toPath3 - })) return; - if (updateLevel !== 2 /* Full */) { - updateLevel = 1 /* RootNamesAndUpdate */; - scheduleProgramUpdate(); - } - }, - flags, - watchOptions, - WatchType.WildcardDirectory - ); - } - function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) { - updateSharedExtendedConfigFileWatcher( - forProjectPath, - options, - sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()), - (extendedConfigFileName, extendedConfigFilePath) => watchFile2( - extendedConfigFileName, - (_fileName, eventKind) => { - var _a; - updateCachedSystemWithFile(extendedConfigFileName, extendedConfigFilePath, eventKind); - if (extendedConfigCache) cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3); - const projects = (_a = sharedExtendedConfigFileWatchers.get(extendedConfigFilePath)) == null ? void 0 : _a.projects; - if (!(projects == null ? void 0 : projects.size)) return; - projects.forEach((projectPath) => { - if (configFileName && toPath3(configFileName) === projectPath) { - updateLevel = 2 /* Full */; - } else { - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath); - if (config) config.updateLevel = 2 /* Full */; - resolutionCache.removeResolutionsFromProjectReferenceRedirects(projectPath); - } - scheduleProgramUpdate(); - }); - }, - 2e3 /* High */, - watchOptions2, - watchType - ), - toPath3 - ); - } - function watchReferencedProject(configFileName2, configPath, commandLine) { - var _a, _b, _c, _d; - commandLine.watcher || (commandLine.watcher = watchFile2( - configFileName2, - (_fileName, eventKind) => { - updateCachedSystemWithFile(configFileName2, configPath, eventKind); - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); - if (config) config.updateLevel = 2 /* Full */; - resolutionCache.removeResolutionsFromProjectReferenceRedirects(configPath); - scheduleProgramUpdate(); - }, - 2e3 /* High */, - ((_a = commandLine.parsedCommandLine) == null ? void 0 : _a.watchOptions) || watchOptions, - WatchType.ConfigFileOfReferencedProject - )); - updateWatchingWildcardDirectories( - commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()), - (_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories, - (directory, flags) => { - var _a2; - return watchDirectory( - directory, - (fileOrDirectory) => { - const fileOrDirectoryPath = toPath3(fileOrDirectory); - if (cachedDirectoryStructureHost) { - cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); - } - nextSourceFileVersion(fileOrDirectoryPath); - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); - if (!(config == null ? void 0 : config.parsedCommandLine)) return; - if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: toPath3(directory), - fileOrDirectory, - fileOrDirectoryPath, - configFileName: configFileName2, - options: config.parsedCommandLine.options, - program: config.parsedCommandLine.fileNames, - currentDirectory, - useCaseSensitiveFileNames: useCaseSensitiveFileNames2, - writeLog, - toPath: toPath3 - })) return; - if (config.updateLevel !== 2 /* Full */) { - config.updateLevel = 1 /* RootNamesAndUpdate */; - scheduleProgramUpdate(); - } - }, - flags, - ((_a2 = commandLine.parsedCommandLine) == null ? void 0 : _a2.watchOptions) || watchOptions, - WatchType.WildcardDirectoryOfReferencedProject - ); - } - ); - updateExtendedConfigFilesWatches( - configPath, - (_c = commandLine.parsedCommandLine) == null ? void 0 : _c.options, - ((_d = commandLine.parsedCommandLine) == null ? void 0 : _d.watchOptions) || watchOptions, - WatchType.ExtendedConfigOfReferencedProject - ); - } -} - -// src/compiler/tsbuild.ts -function resolveConfigFileProjectName(project) { - if (fileExtensionIs(project, ".json" /* Json */)) { - return project; - } - return combinePaths(project, "tsconfig.json"); -} - -// src/compiler/tsbuildPublic.ts -var minimumDate = /* @__PURE__ */ new Date(-864e13); -function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) { - const existingValue = configFileMap.get(resolved); - let newValue; - if (!existingValue) { - newValue = createT(); - configFileMap.set(resolved, newValue); - } - return existingValue || newValue; -} -function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) { - return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map()); -} -function getCurrentTime(host) { - return host.now ? host.now() : /* @__PURE__ */ new Date(); -} -function isCircularBuildOrder(buildOrder) { - return !!buildOrder && !!buildOrder.buildOrder; -} -function getBuildOrderFromAnyBuildOrder(anyBuildOrder) { - return isCircularBuildOrder(anyBuildOrder) ? anyBuildOrder.buildOrder : anyBuildOrder; -} -function createBuilderStatusReporter(system, pretty) { - return (diagnostic) => { - let output = pretty ? `[${formatColorAndReset(getLocaleTimeString(system), "\x1B[90m" /* Grey */)}] ` : `${getLocaleTimeString(system)} - `; - output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${system.newLine + system.newLine}`; - system.write(output); - }; -} -function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) { - const host = createProgramHost(system, createProgram2); - host.getModifiedTime = system.getModifiedTime ? (path) => system.getModifiedTime(path) : returnUndefined; - host.setModifiedTime = system.setModifiedTime ? (path, date) => system.setModifiedTime(path, date) : noop; - host.deleteFile = system.deleteFile ? (path) => system.deleteFile(path) : noop; - host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system); - host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system); - host.now = maybeBind(system, system.now); - return host; -} -function createSolutionBuilderHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportErrorSummary2) { - const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus); - host.reportErrorSummary = reportErrorSummary2; - return host; -} -function createSolutionBuilderWithWatchHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportWatchStatus2) { - const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus); - const watchHost = createWatchHost(system, reportWatchStatus2); - copyProperties(host, watchHost); - return host; -} -function getCompilerOptionsOfBuildOptions(buildOptions) { - const result = {}; - commonOptionsWithBuild.forEach((option) => { - if (hasProperty(buildOptions, option.name)) result[option.name] = buildOptions[option.name]; - }); - result.tscBuild = true; - return result; -} -function createSolutionBuilder(host, rootNames, defaultOptions) { - return createSolutionBuilderWorker( - /*watch*/ - false, - host, - rootNames, - defaultOptions - ); -} -function createSolutionBuilderWithWatch(host, rootNames, defaultOptions, baseWatchOptions) { - return createSolutionBuilderWorker( - /*watch*/ - true, - host, - rootNames, - defaultOptions, - baseWatchOptions - ); -} -function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) { - const host = hostOrHostWithWatch; - const hostWithWatch = hostOrHostWithWatch; - const baseCompilerOptions = getCompilerOptionsOfBuildOptions(options); - const compilerHost = createCompilerHostFromProgramHost(host, () => state.projectCompilerOptions); - setGetSourceFileAsHashVersioned(compilerHost); - compilerHost.getParsedCommandLine = (fileName) => parseConfigFile(state, fileName, toResolvedConfigFilePath(state, fileName)); - compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); - compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences); - compilerHost.resolveLibrary = maybeBind(host, host.resolveLibrary); - compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); - compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); - compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache); - let moduleResolutionCache, typeReferenceDirectiveResolutionCache; - if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) { - moduleResolutionCache = createModuleResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName); - compilerHost.resolveModuleNameLiterals = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( - moduleNames, - containingFile, - redirectedReference, - options2, - containingSourceFile, - host, - moduleResolutionCache, - createModuleResolutionLoader - ); - compilerHost.getModuleResolutionCache = () => moduleResolutionCache; - } - if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) { - typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( - compilerHost.getCurrentDirectory(), - compilerHost.getCanonicalFileName, - /*options*/ - void 0, - moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), - moduleResolutionCache == null ? void 0 : moduleResolutionCache.optionsToRedirectsKey - ); - compilerHost.resolveTypeReferenceDirectiveReferences = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( - typeDirectiveNames, - containingFile, - redirectedReference, - options2, - containingSourceFile, - host, - typeReferenceDirectiveResolutionCache, - createTypeReferenceResolutionLoader - ); - } - let libraryResolutionCache; - if (!compilerHost.resolveLibrary) { - libraryResolutionCache = createModuleResolutionCache( - compilerHost.getCurrentDirectory(), - compilerHost.getCanonicalFileName, - /*options*/ - void 0, - moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache() - ); - compilerHost.resolveLibrary = (libraryName, resolveFrom, options2) => resolveLibrary( - libraryName, - resolveFrom, - options2, - host, - libraryResolutionCache - ); - } - compilerHost.getBuildInfo = (fileName, configFilePath) => getBuildInfo3( - state, - fileName, - toResolvedConfigFilePath(state, configFilePath), - /*modifiedTime*/ - void 0 - ); - const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(hostWithWatch, options); - const state = { - host, - hostWithWatch, - parseConfigFileHost: parseConfigHostFromCompilerHostLike(host), - write: maybeBind(host, host.trace), - // State of solution - options, - baseCompilerOptions, - rootNames, - baseWatchOptions, - resolvedConfigFilePaths: /* @__PURE__ */ new Map(), - configFileCache: /* @__PURE__ */ new Map(), - projectStatus: /* @__PURE__ */ new Map(), - extendedConfigCache: /* @__PURE__ */ new Map(), - buildInfoCache: /* @__PURE__ */ new Map(), - outputTimeStamps: /* @__PURE__ */ new Map(), - builderPrograms: /* @__PURE__ */ new Map(), - diagnostics: /* @__PURE__ */ new Map(), - projectPendingBuild: /* @__PURE__ */ new Map(), - projectErrorsReported: /* @__PURE__ */ new Map(), - compilerHost, - moduleResolutionCache, - typeReferenceDirectiveResolutionCache, - libraryResolutionCache, - // Mutable state - buildOrder: void 0, - readFileWithCache: (f) => host.readFile(f), - projectCompilerOptions: baseCompilerOptions, - cache: void 0, - allProjectBuildPending: true, - needsSummary: true, - watchAllProjectsPending: watch, - // Watch state - watch, - allWatchedWildcardDirectories: /* @__PURE__ */ new Map(), - allWatchedInputFiles: /* @__PURE__ */ new Map(), - allWatchedConfigFiles: /* @__PURE__ */ new Map(), - allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(), - allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(), - filesWatched: /* @__PURE__ */ new Map(), - lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(), - timerToBuildInvalidatedProject: void 0, - reportFileChangeDetected: false, - watchFile: watchFile2, - watchDirectory, - writeLog - }; - return state; -} -function toPath2(state, fileName) { - return toPath(fileName, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName); -} -function toResolvedConfigFilePath(state, fileName) { - const { resolvedConfigFilePaths } = state; - const path = resolvedConfigFilePaths.get(fileName); - if (path !== void 0) return path; - const resolvedPath = toPath2(state, fileName); - resolvedConfigFilePaths.set(fileName, resolvedPath); - return resolvedPath; -} -function isParsedCommandLine(entry) { - return !!entry.options; -} -function getCachedParsedConfigFile(state, configFilePath) { - const value = state.configFileCache.get(configFilePath); - return value && isParsedCommandLine(value) ? value : void 0; -} -function parseConfigFile(state, configFileName, configFilePath) { - const { configFileCache } = state; - const value = configFileCache.get(configFilePath); - if (value) { - return isParsedCommandLine(value) ? value : void 0; - } - mark("SolutionBuilder::beforeConfigFileParsing"); - let diagnostic; - const { parseConfigFileHost, baseCompilerOptions, baseWatchOptions, extendedConfigCache, host } = state; - let parsed; - if (host.getParsedCommandLine) { - parsed = host.getParsedCommandLine(configFileName); - if (!parsed) diagnostic = createCompilerDiagnostic(Diagnostics.File_0_not_found, configFileName); - } else { - parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = (d) => diagnostic = d; - parsed = getParsedCommandLineOfConfigFile(configFileName, baseCompilerOptions, parseConfigFileHost, extendedConfigCache, baseWatchOptions); - parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop; - } - configFileCache.set(configFilePath, parsed || diagnostic); - mark("SolutionBuilder::afterConfigFileParsing"); - measure("SolutionBuilder::Config file parsing", "SolutionBuilder::beforeConfigFileParsing", "SolutionBuilder::afterConfigFileParsing"); - return parsed; -} -function resolveProjectName(state, name) { - return resolveConfigFileProjectName(resolvePath(state.compilerHost.getCurrentDirectory(), name)); -} -function createBuildOrder(state, roots) { - const temporaryMarks = /* @__PURE__ */ new Map(); - const permanentMarks = /* @__PURE__ */ new Map(); - const circularityReportStack = []; - let buildOrder; - let circularDiagnostics; - for (const root of roots) { - visit(root); - } - return circularDiagnostics ? { buildOrder: buildOrder || emptyArray, circularDiagnostics } : buildOrder || emptyArray; - function visit(configFileName, inCircularContext) { - const projPath = toResolvedConfigFilePath(state, configFileName); - if (permanentMarks.has(projPath)) return; - if (temporaryMarks.has(projPath)) { - if (!inCircularContext) { - (circularDiagnostics || (circularDiagnostics = [])).push( - createCompilerDiagnostic( - Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, - circularityReportStack.join("\r\n") - ) - ); - } - return; - } - temporaryMarks.set(projPath, true); - circularityReportStack.push(configFileName); - const parsed = parseConfigFile(state, configFileName, projPath); - if (parsed && parsed.projectReferences) { - for (const ref of parsed.projectReferences) { - const resolvedRefPath = resolveProjectName(state, ref.path); - visit(resolvedRefPath, inCircularContext || ref.circular); - } - } - circularityReportStack.pop(); - permanentMarks.set(projPath, true); - (buildOrder || (buildOrder = [])).push(configFileName); - } -} -function getBuildOrder(state) { - return state.buildOrder || createStateBuildOrder(state); -} -function createStateBuildOrder(state) { - const buildOrder = createBuildOrder(state, state.rootNames.map((f) => resolveProjectName(state, f))); - state.resolvedConfigFilePaths.clear(); - const currentProjects = new Set( - getBuildOrderFromAnyBuildOrder(buildOrder).map( - (resolved) => toResolvedConfigFilePath(state, resolved) - ) - ); - const noopOnDelete = { onDeleteValue: noop }; - mutateMapSkippingNewValues(state.configFileCache, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.projectStatus, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.builderPrograms, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.diagnostics, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.projectPendingBuild, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.projectErrorsReported, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.buildInfoCache, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.outputTimeStamps, currentProjects, noopOnDelete); - mutateMapSkippingNewValues(state.lastCachedPackageJsonLookups, currentProjects, noopOnDelete); - if (state.watch) { - mutateMapSkippingNewValues( - state.allWatchedConfigFiles, - currentProjects, - { onDeleteValue: closeFileWatcher } - ); - state.allWatchedExtendedConfigFiles.forEach((watcher) => { - watcher.projects.forEach((project) => { - if (!currentProjects.has(project)) { - watcher.projects.delete(project); - } - }); - watcher.close(); - }); - mutateMapSkippingNewValues( - state.allWatchedWildcardDirectories, - currentProjects, - { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcherOf) } - ); - mutateMapSkippingNewValues( - state.allWatchedInputFiles, - currentProjects, - { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) } - ); - mutateMapSkippingNewValues( - state.allWatchedPackageJsonFiles, - currentProjects, - { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) } - ); - } - return state.buildOrder = buildOrder; -} -function getBuildOrderFor(state, project, onlyReferences) { - const resolvedProject = project && resolveProjectName(state, project); - const buildOrderFromState = getBuildOrder(state); - if (isCircularBuildOrder(buildOrderFromState)) return buildOrderFromState; - if (resolvedProject) { - const projectPath = toResolvedConfigFilePath(state, resolvedProject); - const projectIndex = findIndex( - buildOrderFromState, - (configFileName) => toResolvedConfigFilePath(state, configFileName) === projectPath - ); - if (projectIndex === -1) return void 0; - } - const buildOrder = resolvedProject ? createBuildOrder(state, [resolvedProject]) : buildOrderFromState; - Debug.assert(!isCircularBuildOrder(buildOrder)); - Debug.assert(!onlyReferences || resolvedProject !== void 0); - Debug.assert(!onlyReferences || buildOrder[buildOrder.length - 1] === resolvedProject); - return onlyReferences ? buildOrder.slice(0, buildOrder.length - 1) : buildOrder; -} -function enableCache(state) { - if (state.cache) { - disableCache(state); - } - const { compilerHost, host } = state; - const originalReadFileWithCache = state.readFileWithCache; - const originalGetSourceFile = compilerHost.getSourceFile; - const { - originalReadFile, - originalFileExists, - originalDirectoryExists, - originalCreateDirectory, - originalWriteFile, - getSourceFileWithCache, - readFileWithCache - } = changeCompilerHostLikeToUseCache( - host, - (fileName) => toPath2(state, fileName), - (...args) => originalGetSourceFile.call(compilerHost, ...args) - ); - state.readFileWithCache = readFileWithCache; - compilerHost.getSourceFile = getSourceFileWithCache; - state.cache = { - originalReadFile, - originalFileExists, - originalDirectoryExists, - originalCreateDirectory, - originalWriteFile, - originalReadFileWithCache, - originalGetSourceFile - }; -} -function disableCache(state) { - if (!state.cache) return; - const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache, libraryResolutionCache } = state; - host.readFile = cache.originalReadFile; - host.fileExists = cache.originalFileExists; - host.directoryExists = cache.originalDirectoryExists; - host.createDirectory = cache.originalCreateDirectory; - host.writeFile = cache.originalWriteFile; - compilerHost.getSourceFile = cache.originalGetSourceFile; - state.readFileWithCache = cache.originalReadFileWithCache; - extendedConfigCache.clear(); - moduleResolutionCache == null ? void 0 : moduleResolutionCache.clear(); - typeReferenceDirectiveResolutionCache == null ? void 0 : typeReferenceDirectiveResolutionCache.clear(); - libraryResolutionCache == null ? void 0 : libraryResolutionCache.clear(); - state.cache = void 0; -} -function clearProjectStatus(state, resolved) { - state.projectStatus.delete(resolved); - state.diagnostics.delete(resolved); -} -function addProjToQueue({ projectPendingBuild }, proj, updateLevel) { - const value = projectPendingBuild.get(proj); - if (value === void 0) { - projectPendingBuild.set(proj, updateLevel); - } else if (value < updateLevel) { - projectPendingBuild.set(proj, updateLevel); - } -} -function setupInitialBuild(state, cancellationToken) { - if (!state.allProjectBuildPending) return; - state.allProjectBuildPending = false; - if (state.options.watch) reportWatchStatus(state, Diagnostics.Starting_compilation_in_watch_mode); - enableCache(state); - const buildOrder = getBuildOrderFromAnyBuildOrder(getBuildOrder(state)); - buildOrder.forEach( - (configFileName) => state.projectPendingBuild.set( - toResolvedConfigFilePath(state, configFileName), - 0 /* Update */ - ) - ); - if (cancellationToken) { - cancellationToken.throwIfCancellationRequested(); - } -} -function doneInvalidatedProject(state, projectPath) { - state.projectPendingBuild.delete(projectPath); - return state.diagnostics.has(projectPath) ? 1 /* DiagnosticsPresent_OutputsSkipped */ : 0 /* Success */; -} -function createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder) { - let updateOutputFileStampsPending = true; - return { - kind: 1 /* UpdateOutputFileStamps */, - project, - projectPath, - buildOrder, - getCompilerOptions: () => config.options, - getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), - updateOutputFileStatmps: () => { - updateOutputTimestamps(state, config, projectPath); - updateOutputFileStampsPending = false; - }, - done: () => { - if (updateOutputFileStampsPending) { - updateOutputTimestamps(state, config, projectPath); - } - mark("SolutionBuilder::Timestamps only updates"); - return doneInvalidatedProject(state, projectPath); - } - }; -} -function createBuildOrUpdateInvalidedProject(state, project, projectPath, projectIndex, config, status, buildOrder) { - let step = 0 /* CreateProgram */; - let program; - let buildResult; - return { - kind: 0 /* Build */, - project, - projectPath, - buildOrder, - getCompilerOptions: () => config.options, - getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), - getBuilderProgram: () => withProgramOrUndefined(identity), - getProgram: () => withProgramOrUndefined( - (program2) => program2.getProgramOrUndefined() - ), - getSourceFile: (fileName) => withProgramOrUndefined( - (program2) => program2.getSourceFile(fileName) - ), - getSourceFiles: () => withProgramOrEmptyArray( - (program2) => program2.getSourceFiles() - ), - getOptionsDiagnostics: (cancellationToken) => withProgramOrEmptyArray( - (program2) => program2.getOptionsDiagnostics(cancellationToken) - ), - getGlobalDiagnostics: (cancellationToken) => withProgramOrEmptyArray( - (program2) => program2.getGlobalDiagnostics(cancellationToken) - ), - getConfigFileParsingDiagnostics: () => withProgramOrEmptyArray( - (program2) => program2.getConfigFileParsingDiagnostics() - ), - getSyntacticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray( - (program2) => program2.getSyntacticDiagnostics(sourceFile, cancellationToken) - ), - getAllDependencies: (sourceFile) => withProgramOrEmptyArray( - (program2) => program2.getAllDependencies(sourceFile) - ), - getSemanticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray( - (program2) => program2.getSemanticDiagnostics(sourceFile, cancellationToken) - ), - getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => withProgramOrUndefined( - (program2) => program2.getSemanticDiagnosticsOfNextAffectedFile && program2.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) - ), - emit: (targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) => { - if (targetSourceFile || emitOnlyDtsFiles) { - return withProgramOrUndefined( - (program2) => { - var _a, _b; - return program2.emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a, project))); - } - ); - } - executeSteps(0 /* CreateProgram */, cancellationToken); - return emit(writeFile2, cancellationToken, customTransformers); - }, - done - }; - function done(cancellationToken, writeFile2, customTransformers) { - executeSteps(3 /* Done */, cancellationToken, writeFile2, customTransformers); - mark("SolutionBuilder::Projects built"); - return doneInvalidatedProject(state, projectPath); - } - function withProgramOrUndefined(action) { - executeSteps(0 /* CreateProgram */); - return program && action(program); - } - function withProgramOrEmptyArray(action) { - return withProgramOrUndefined(action) || emptyArray; - } - function createProgram2() { - var _a, _b, _c; - Debug.assert(program === void 0); - if (state.options.dry) { - reportStatus(state, Diagnostics.A_non_dry_build_would_build_project_0, project); - buildResult = 1 /* Success */; - step = 2 /* QueueReferencingProjects */; - return; - } - if (state.options.verbose) reportStatus(state, Diagnostics.Building_project_0, project); - if (config.fileNames.length === 0) { - reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); - buildResult = 0 /* None */; - step = 2 /* QueueReferencingProjects */; - return; - } - const { host, compilerHost } = state; - state.projectCompilerOptions = config.options; - (_a = state.moduleResolutionCache) == null ? void 0 : _a.update(config.options); - (_b = state.typeReferenceDirectiveResolutionCache) == null ? void 0 : _b.update(config.options); - program = host.createProgram( - config.fileNames, - config.options, - compilerHost, - getOldProgram(state, projectPath, config), - getConfigFileParsingDiagnostics(config), - config.projectReferences - ); - if (state.watch) { - const internalMap = (_c = state.moduleResolutionCache) == null ? void 0 : _c.getPackageJsonInfoCache().getInternalMap(); - state.lastCachedPackageJsonLookups.set( - projectPath, - internalMap && new Set(arrayFrom( - internalMap.values(), - (data) => state.host.realpath && (isPackageJsonInfo(data) || data.directoryExists) ? state.host.realpath(combinePaths(data.packageDirectory, "package.json")) : combinePaths(data.packageDirectory, "package.json") - )) - ); - state.builderPrograms.set(projectPath, program); - } - step++; - } - function emit(writeFileCallback, cancellationToken, customTransformers) { - var _a, _b, _c; - Debug.assertIsDefined(program); - Debug.assert(step === 1 /* Emit */); - const { host, compilerHost } = state; - const emittedOutputs = /* @__PURE__ */ new Map(); - const options = program.getCompilerOptions(); - const isIncremental = isIncrementalCompilation(options); - let outputTimeStampMap; - let now; - const { emitResult, diagnostics } = emitFilesAndReportErrors( - program, - (d) => host.reportDiagnostic(d), - state.write, - /*reportSummary*/ - void 0, - (name, text, writeByteOrderMark, onError, sourceFiles, data) => { - var _a2; - const path = toPath2(state, name); - emittedOutputs.set(toPath2(state, name), name); - if (data == null ? void 0 : data.buildInfo) { - now || (now = getCurrentTime(state.host)); - const isChangedSignature2 = (_a2 = program.hasChangedEmitSignature) == null ? void 0 : _a2.call(program); - const existing = getBuildInfoCacheEntry(state, name, projectPath); - if (existing) { - existing.buildInfo = data.buildInfo; - existing.modifiedTime = now; - if (isChangedSignature2) existing.latestChangedDtsTime = now; - } else { - state.buildInfoCache.set(projectPath, { - path: toPath2(state, name), - buildInfo: data.buildInfo, - modifiedTime: now, - latestChangedDtsTime: isChangedSignature2 ? now : void 0 - }); - } - } - const modifiedTime = (data == null ? void 0 : data.differsOnlyInMap) ? getModifiedTime(state.host, name) : void 0; - (writeFileCallback || compilerHost.writeFile)( - name, - text, - writeByteOrderMark, - onError, - sourceFiles, - data - ); - if (data == null ? void 0 : data.differsOnlyInMap) state.host.setModifiedTime(name, modifiedTime); - else if (!isIncremental && state.watch) { - (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path, now || (now = getCurrentTime(state.host))); - } - }, - cancellationToken, - /*emitOnlyDtsFiles*/ - void 0, - customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a, project)) - ); - if ((!options.noEmitOnError || !diagnostics.length) && (emittedOutputs.size || status.type !== 8 /* OutOfDateBuildInfoWithErrors */)) { - updateOutputTimestampsWorker(state, config, projectPath, Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs); - } - state.projectErrorsReported.set(projectPath, true); - buildResult = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */; - if (!diagnostics.length) { - state.diagnostics.delete(projectPath); - state.projectStatus.set(projectPath, { - type: 1 /* UpToDate */, - oldestOutputFileName: firstOrUndefinedIterator(emittedOutputs.values()) ?? getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()) - }); - } else { - state.diagnostics.set(projectPath, diagnostics); - state.projectStatus.set(projectPath, { type: 0 /* Unbuildable */, reason: `it had errors` }); - buildResult |= 4 /* AnyErrors */; - } - afterProgramDone(state, program); - step = 2 /* QueueReferencingProjects */; - return emitResult; - } - function executeSteps(till, cancellationToken, writeFile2, customTransformers) { - while (step <= till && step < 3 /* Done */) { - const currentStep = step; - switch (step) { - case 0 /* CreateProgram */: - createProgram2(); - break; - case 1 /* Emit */: - emit(writeFile2, cancellationToken, customTransformers); - break; - case 2 /* QueueReferencingProjects */: - queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult)); - step++; - break; - // Should never be done - case 3 /* Done */: - default: - assertType(step); - } - Debug.assert(step > currentStep); - } - } -} -function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { - if (!state.projectPendingBuild.size) return void 0; - if (isCircularBuildOrder(buildOrder)) return void 0; - const { options, projectPendingBuild } = state; - for (let projectIndex = 0; projectIndex < buildOrder.length; projectIndex++) { - const project = buildOrder[projectIndex]; - const projectPath = toResolvedConfigFilePath(state, project); - const updateLevel = state.projectPendingBuild.get(projectPath); - if (updateLevel === void 0) continue; - if (reportQueue) { - reportQueue = false; - reportBuildQueue(state, buildOrder); - } - const config = parseConfigFile(state, project, projectPath); - if (!config) { - reportParseConfigFileDiagnostic(state, projectPath); - projectPendingBuild.delete(projectPath); - continue; - } - if (updateLevel === 2 /* Full */) { - watchConfigFile(state, project, projectPath, config); - watchExtendedConfigFiles(state, projectPath, config); - watchWildCardDirectories(state, project, projectPath, config); - watchInputFiles(state, project, projectPath, config); - watchPackageJsonFiles(state, project, projectPath, config); - } else if (updateLevel === 1 /* RootNamesAndUpdate */) { - config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile.configFileSpecs, getDirectoryPath(project), config.options, state.parseConfigFileHost); - updateErrorForNoInputFiles( - config.fileNames, - project, - config.options.configFile.configFileSpecs, - config.errors, - canJsonReportNoInputFiles(config.raw) - ); - watchInputFiles(state, project, projectPath, config); - watchPackageJsonFiles(state, project, projectPath, config); - } - const status = getUpToDateStatus(state, config, projectPath); - if (!options.force) { - if (status.type === 1 /* UpToDate */) { - verboseReportProjectStatus(state, project, status); - reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); - projectPendingBuild.delete(projectPath); - if (options.dry) { - reportStatus(state, Diagnostics.Project_0_is_up_to_date, project); - } - continue; - } - if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 15 /* UpToDateWithInputFileText */) { - reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); - return { - kind: 1 /* UpdateOutputFileStamps */, - status, - project, - projectPath, - projectIndex, - config - }; - } - } - if (status.type === 12 /* UpstreamBlocked */) { - verboseReportProjectStatus(state, project, status); - reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); - projectPendingBuild.delete(projectPath); - if (options.verbose) { - reportStatus( - state, - status.upstreamProjectBlocked ? Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors, - project, - status.upstreamProjectName - ); - } - continue; - } - if (status.type === 16 /* ContainerOnly */) { - verboseReportProjectStatus(state, project, status); - reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); - projectPendingBuild.delete(projectPath); - continue; - } - return { - kind: 0 /* Build */, - status, - project, - projectPath, - projectIndex, - config - }; - } - return void 0; -} -function createInvalidatedProjectWithInfo(state, info, buildOrder) { - verboseReportProjectStatus(state, info.project, info.status); - return info.kind !== 1 /* UpdateOutputFileStamps */ ? createBuildOrUpdateInvalidedProject( - state, - info.project, - info.projectPath, - info.projectIndex, - info.config, - info.status, - buildOrder - ) : createUpdateOutputFileStampsProject( - state, - info.project, - info.projectPath, - info.config, - buildOrder - ); -} -function getNextInvalidatedProject(state, buildOrder, reportQueue) { - const info = getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue); - if (!info) return info; - return createInvalidatedProjectWithInfo(state, info, buildOrder); -} -function getOldProgram({ options, builderPrograms, compilerHost }, proj, parsed) { - if (options.force) return void 0; - const value = builderPrograms.get(proj); - if (value) return value; - return readBuilderProgram(parsed.options, compilerHost); -} -function afterProgramDone(state, program) { - if (program) { - if (state.host.afterProgramEmitAndDiagnostics) { - state.host.afterProgramEmitAndDiagnostics(program); - } - program.releaseProgram(); - } - state.projectCompilerOptions = state.baseCompilerOptions; -} -function isFileWatcherWithModifiedTime(value) { - return !!value.watcher; -} -function getModifiedTime2(state, fileName) { - const path = toPath2(state, fileName); - const existing = state.filesWatched.get(path); - if (state.watch && !!existing) { - if (!isFileWatcherWithModifiedTime(existing)) return existing; - if (existing.modifiedTime) return existing.modifiedTime; - } - const result = getModifiedTime(state.host, fileName); - if (state.watch) { - if (existing) existing.modifiedTime = result; - else state.filesWatched.set(path, result); - } - return result; -} -function watchFile(state, file, callback, pollingInterval, options, watchType, project) { - const path = toPath2(state, file); - const existing = state.filesWatched.get(path); - if (existing && isFileWatcherWithModifiedTime(existing)) { - existing.callbacks.push(callback); - } else { - const watcher = state.watchFile( - file, - (fileName, eventKind, modifiedTime) => { - const existing2 = Debug.checkDefined(state.filesWatched.get(path)); - Debug.assert(isFileWatcherWithModifiedTime(existing2)); - existing2.modifiedTime = modifiedTime; - existing2.callbacks.forEach((cb) => cb(fileName, eventKind, modifiedTime)); - }, - pollingInterval, - options, - watchType, - project - ); - state.filesWatched.set(path, { callbacks: [callback], watcher, modifiedTime: existing }); - } - return { - close: () => { - const existing2 = Debug.checkDefined(state.filesWatched.get(path)); - Debug.assert(isFileWatcherWithModifiedTime(existing2)); - if (existing2.callbacks.length === 1) { - state.filesWatched.delete(path); - closeFileWatcherOf(existing2); - } else { - unorderedRemoveItem(existing2.callbacks, callback); - } - } - }; -} -function getOutputTimeStampMap(state, resolvedConfigFilePath) { - if (!state.watch) return void 0; - let result = state.outputTimeStamps.get(resolvedConfigFilePath); - if (!result) state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map()); - return result; -} -function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) { - const path = toPath2(state, buildInfoPath); - const existing = state.buildInfoCache.get(resolvedConfigPath); - return (existing == null ? void 0 : existing.path) === path ? existing : void 0; -} -function getBuildInfo3(state, buildInfoPath, resolvedConfigPath, modifiedTime) { - const path = toPath2(state, buildInfoPath); - const existing = state.buildInfoCache.get(resolvedConfigPath); - if (existing !== void 0 && existing.path === path) { - return existing.buildInfo || void 0; - } - const value = state.readFileWithCache(buildInfoPath); - const buildInfo = value ? getBuildInfo(buildInfoPath, value) : void 0; - state.buildInfoCache.set(resolvedConfigPath, { path, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime }); - return buildInfo; -} -function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) { - const tsconfigTime = getModifiedTime2(state, configFile); - if (oldestOutputFileTime < tsconfigTime) { - return { - type: 5 /* OutOfDateWithSelf */, - outOfDateOutputFileName: oldestOutputFileName, - newerInputFileName: configFile - }; - } -} -function getUpToDateStatusWorker(state, project, resolvedPath) { - var _a, _b, _c, _d, _e; - if (isSolutionConfig(project)) return { type: 16 /* ContainerOnly */ }; - let referenceStatuses; - const force = !!state.options.force; - if (project.projectReferences) { - state.projectStatus.set(resolvedPath, { type: 13 /* ComputingUpstream */ }); - for (const ref of project.projectReferences) { - const resolvedRef = resolveProjectReferencePath(ref); - const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef); - const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath); - const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath); - if (refStatus.type === 13 /* ComputingUpstream */ || refStatus.type === 16 /* ContainerOnly */) { - continue; - } - if (state.options.stopBuildOnErrors && (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 12 /* UpstreamBlocked */)) { - return { - type: 12 /* UpstreamBlocked */, - upstreamProjectName: ref.path, - upstreamProjectBlocked: refStatus.type === 12 /* UpstreamBlocked */ - }; - } - if (!force) (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig }); - } - } - if (force) return { type: 17 /* ForceBuild */ }; - const { host } = state; - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options); - const isIncremental = isIncrementalCompilation(project.options); - let buildInfoCacheEntry = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath); - const buildInfoTime = (buildInfoCacheEntry == null ? void 0 : buildInfoCacheEntry.modifiedTime) || getModifiedTime(host, buildInfoPath); - if (buildInfoTime === missingFileModifiedTime) { - if (!buildInfoCacheEntry) { - state.buildInfoCache.set(resolvedPath, { - path: toPath2(state, buildInfoPath), - buildInfo: false, - modifiedTime: buildInfoTime - }); - } - return { - type: 3 /* OutputMissing */, - missingOutputFileName: buildInfoPath - }; - } - const buildInfo = getBuildInfo3(state, buildInfoPath, resolvedPath, buildInfoTime); - if (!buildInfo) { - return { - type: 4 /* ErrorReadingFile */, - fileName: buildInfoPath - }; - } - const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0; - if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version) { - return { - type: 14 /* TsVersionOutputOfDate */, - version: buildInfo.version - }; - } - if (!project.options.noCheck && (buildInfo.errors || // TODO: syntax errors???? - buildInfo.checkPending)) { - return { - type: 8 /* OutOfDateBuildInfoWithErrors */, - buildInfoFile: buildInfoPath - }; - } - if (incrementalBuildInfo) { - if (!project.options.noCheck && (((_a = incrementalBuildInfo.changeFileSet) == null ? void 0 : _a.length) || ((_b = incrementalBuildInfo.semanticDiagnosticsPerFile) == null ? void 0 : _b.length) || getEmitDeclarations(project.options) && ((_c = incrementalBuildInfo.emitDiagnosticsPerFile) == null ? void 0 : _c.length))) { - return { - type: 8 /* OutOfDateBuildInfoWithErrors */, - buildInfoFile: buildInfoPath - }; - } - if (!project.options.noEmit && (((_d = incrementalBuildInfo.changeFileSet) == null ? void 0 : _d.length) || ((_e = incrementalBuildInfo.affectedFilesPendingEmit) == null ? void 0 : _e.length) || incrementalBuildInfo.pendingEmit !== void 0)) { - return { - type: 7 /* OutOfDateBuildInfoWithPendingEmit */, - buildInfoFile: buildInfoPath - }; - } - if ((!project.options.noEmit || project.options.noEmit && getEmitDeclarations(project.options)) && getPendingEmitKindWithSeen( - project.options, - incrementalBuildInfo.options || {}, - /*emitOnlyDtsFiles*/ - void 0, - !!project.options.noEmit - )) { - return { - type: 9 /* OutOfDateOptions */, - buildInfoFile: buildInfoPath - }; - } - } - let oldestOutputFileTime = buildInfoTime; - let oldestOutputFileName = buildInfoPath; - let newestInputFileName = void 0; - let newestInputFileTime = minimumDate; - let pseudoInputUpToDate = false; - const seenRoots = /* @__PURE__ */ new Set(); - let buildInfoVersionMap; - for (const inputFile of project.fileNames) { - const inputTime = getModifiedTime2(state, inputFile); - if (inputTime === missingFileModifiedTime) { - return { - type: 0 /* Unbuildable */, - reason: `${inputFile} does not exist` - }; - } - const inputPath = toPath2(state, inputFile); - if (buildInfoTime < inputTime) { - let version2; - let currentVersion; - if (incrementalBuildInfo) { - if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(incrementalBuildInfo, buildInfoPath, host); - const resolvedInputPath = buildInfoVersionMap.roots.get(inputPath); - version2 = buildInfoVersionMap.fileInfos.get(resolvedInputPath ?? inputPath); - const text = version2 ? state.readFileWithCache(resolvedInputPath ?? inputFile) : void 0; - currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0; - if (version2 && version2 === currentVersion) pseudoInputUpToDate = true; - } - if (!version2 || version2 !== currentVersion) { - return { - type: 5 /* OutOfDateWithSelf */, - outOfDateOutputFileName: buildInfoPath, - newerInputFileName: inputFile - }; - } - } - if (inputTime > newestInputFileTime) { - newestInputFileName = inputFile; - newestInputFileTime = inputTime; - } - seenRoots.add(inputPath); - } - let existingRoot; - if (incrementalBuildInfo) { - if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(incrementalBuildInfo, buildInfoPath, host); - existingRoot = forEachEntry( - buildInfoVersionMap.roots, - // File was root file when project was built but its not any more - (_resolved, existingRoot2) => !seenRoots.has(existingRoot2) ? existingRoot2 : void 0 - ); - } else { - existingRoot = forEach( - getNonIncrementalBuildInfoRoots(buildInfo, buildInfoPath, host), - (root) => !seenRoots.has(root) ? root : void 0 - ); - } - if (existingRoot) { - return { - type: 10 /* OutOfDateRoots */, - buildInfoFile: buildInfoPath, - inputFile: existingRoot - }; - } - if (!isIncremental) { - const outputs = getAllProjectOutputs(project, !host.useCaseSensitiveFileNames()); - const outputTimeStampMap = getOutputTimeStampMap(state, resolvedPath); - for (const output of outputs) { - if (output === buildInfoPath) continue; - const path = toPath2(state, output); - let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path); - if (!outputTime) { - outputTime = getModifiedTime(state.host, output); - outputTimeStampMap == null ? void 0 : outputTimeStampMap.set(path, outputTime); - } - if (outputTime === missingFileModifiedTime) { - return { - type: 3 /* OutputMissing */, - missingOutputFileName: output - }; - } - if (outputTime < newestInputFileTime) { - return { - type: 5 /* OutOfDateWithSelf */, - outOfDateOutputFileName: output, - newerInputFileName: newestInputFileName - }; - } - if (outputTime < oldestOutputFileTime) { - oldestOutputFileTime = outputTime; - oldestOutputFileName = output; - } - } - } - let pseudoUpToDate = false; - if (referenceStatuses) { - for (const { ref, refStatus, resolvedConfig, resolvedRefPath } of referenceStatuses) { - if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) { - continue; - } - if (hasSameBuildInfo(state, buildInfoCacheEntry ?? (buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath)), resolvedRefPath)) { - return { - type: 6 /* OutOfDateWithUpstream */, - outOfDateOutputFileName: buildInfoPath, - newerProjectName: ref.path - }; - } - const newestDeclarationFileContentChangedTime = getLatestChangedDtsTime(state, resolvedConfig.options, resolvedRefPath); - if (newestDeclarationFileContentChangedTime && newestDeclarationFileContentChangedTime <= oldestOutputFileTime) { - pseudoUpToDate = true; - continue; - } - Debug.assert(oldestOutputFileName !== void 0, "Should have an oldest output filename here"); - return { - type: 6 /* OutOfDateWithUpstream */, - outOfDateOutputFileName: oldestOutputFileName, - newerProjectName: ref.path - }; - } - } - const configStatus = checkConfigFileUpToDateStatus(state, project.options.configFilePath, oldestOutputFileTime, oldestOutputFileName); - if (configStatus) return configStatus; - const extendedConfigStatus = forEach(project.options.configFile.extendedSourceFiles || emptyArray, (configFile) => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName)); - if (extendedConfigStatus) return extendedConfigStatus; - const packageJsonLookups = state.lastCachedPackageJsonLookups.get(resolvedPath); - const dependentPackageFileStatus = packageJsonLookups && forEachKey( - packageJsonLookups, - (path) => checkConfigFileUpToDateStatus(state, path, oldestOutputFileTime, oldestOutputFileName) - ); - if (dependentPackageFileStatus) return dependentPackageFileStatus; - return { - type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 15 /* UpToDateWithInputFileText */ : 1 /* UpToDate */, - newestInputFileTime, - newestInputFileName, - oldestOutputFileName - }; -} -function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) { - const refBuildInfo = state.buildInfoCache.get(resolvedRefPath); - return refBuildInfo.path === buildInfoCacheEntry.path; -} -function getUpToDateStatus(state, project, resolvedPath) { - if (project === void 0) { - return { type: 0 /* Unbuildable */, reason: "config file deleted mid-build" }; - } - const prior = state.projectStatus.get(resolvedPath); - if (prior !== void 0) { - return prior; - } - mark("SolutionBuilder::beforeUpToDateCheck"); - const actual = getUpToDateStatusWorker(state, project, resolvedPath); - mark("SolutionBuilder::afterUpToDateCheck"); - measure("SolutionBuilder::Up-to-date check", "SolutionBuilder::beforeUpToDateCheck", "SolutionBuilder::afterUpToDateCheck"); - state.projectStatus.set(resolvedPath, actual); - return actual; -} -function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage, skipOutputs) { - if (proj.options.noEmit) return; - let now; - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(proj.options); - const isIncremental = isIncrementalCompilation(proj.options); - if (buildInfoPath && isIncremental) { - if (!(skipOutputs == null ? void 0 : skipOutputs.has(toPath2(state, buildInfoPath)))) { - if (!!state.options.verbose) reportStatus(state, verboseMessage, proj.options.configFilePath); - state.host.setModifiedTime(buildInfoPath, now = getCurrentTime(state.host)); - getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now; - } - state.outputTimeStamps.delete(projectPath); - return; - } - const { host } = state; - const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames()); - const outputTimeStampMap = getOutputTimeStampMap(state, projectPath); - const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0; - if (!skipOutputs || outputs.length !== skipOutputs.size) { - let reportVerbose = !!state.options.verbose; - for (const file of outputs) { - const path = toPath2(state, file); - if (skipOutputs == null ? void 0 : skipOutputs.has(path)) continue; - if (reportVerbose) { - reportVerbose = false; - reportStatus(state, verboseMessage, proj.options.configFilePath); - } - host.setModifiedTime(file, now || (now = getCurrentTime(state.host))); - if (file === buildInfoPath) getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now; - else if (outputTimeStampMap) { - outputTimeStampMap.set(path, now); - modifiedOutputs.add(path); - } - } - } - outputTimeStampMap == null ? void 0 : outputTimeStampMap.forEach((_value, key) => { - if (!(skipOutputs == null ? void 0 : skipOutputs.has(key)) && !modifiedOutputs.has(key)) outputTimeStampMap.delete(key); - }); -} -function getLatestChangedDtsTime(state, options, resolvedConfigPath) { - if (!options.composite) return void 0; - const entry = Debug.checkDefined(state.buildInfoCache.get(resolvedConfigPath)); - if (entry.latestChangedDtsTime !== void 0) return entry.latestChangedDtsTime || void 0; - const latestChangedDtsTime = entry.buildInfo && isIncrementalBuildInfo(entry.buildInfo) && entry.buildInfo.latestChangedDtsFile ? state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.latestChangedDtsFile, getDirectoryPath(entry.path))) : void 0; - entry.latestChangedDtsTime = latestChangedDtsTime || false; - return latestChangedDtsTime; -} -function updateOutputTimestamps(state, proj, resolvedPath) { - if (state.options.dry) { - return reportStatus(state, Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, proj.options.configFilePath); - } - updateOutputTimestampsWorker(state, proj, resolvedPath, Diagnostics.Updating_output_timestamps_of_project_0); - state.projectStatus.set(resolvedPath, { - type: 1 /* UpToDate */, - oldestOutputFileName: getFirstProjectOutput(proj, !state.host.useCaseSensitiveFileNames()) - }); -} -function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) { - if (state.options.stopBuildOnErrors && buildResult & 4 /* AnyErrors */) return; - if (!config.options.composite) return; - for (let index = projectIndex + 1; index < buildOrder.length; index++) { - const nextProject = buildOrder[index]; - const nextProjectPath = toResolvedConfigFilePath(state, nextProject); - if (state.projectPendingBuild.has(nextProjectPath)) continue; - const nextProjectConfig = parseConfigFile(state, nextProject, nextProjectPath); - if (!nextProjectConfig || !nextProjectConfig.projectReferences) continue; - for (const ref of nextProjectConfig.projectReferences) { - const resolvedRefPath = resolveProjectName(state, ref.path); - if (toResolvedConfigFilePath(state, resolvedRefPath) !== projectPath) continue; - const status = state.projectStatus.get(nextProjectPath); - if (status) { - switch (status.type) { - case 1 /* UpToDate */: - if (buildResult & 2 /* DeclarationOutputUnchanged */) { - status.type = 2 /* UpToDateWithUpstreamTypes */; - break; - } - // falls through - case 15 /* UpToDateWithInputFileText */: - case 2 /* UpToDateWithUpstreamTypes */: - if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) { - state.projectStatus.set(nextProjectPath, { - type: 6 /* OutOfDateWithUpstream */, - outOfDateOutputFileName: status.oldestOutputFileName, - newerProjectName: project - }); - } - break; - case 12 /* UpstreamBlocked */: - if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) { - clearProjectStatus(state, nextProjectPath); - } - break; - } - } - addProjToQueue(state, nextProjectPath, 0 /* Update */); - break; - } - } -} -function build(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) { - mark("SolutionBuilder::beforeBuild"); - const result = buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences); - mark("SolutionBuilder::afterBuild"); - measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); - return result; -} -function buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) { - const buildOrder = getBuildOrderFor(state, project, onlyReferences); - if (!buildOrder) return 3 /* InvalidProject_OutputsSkipped */; - setupInitialBuild(state, cancellationToken); - let reportQueue = true; - let successfulProjects = 0; - while (true) { - const invalidatedProject = getNextInvalidatedProject(state, buildOrder, reportQueue); - if (!invalidatedProject) break; - reportQueue = false; - invalidatedProject.done(cancellationToken, writeFile2, getCustomTransformers == null ? void 0 : getCustomTransformers(invalidatedProject.project)); - if (!state.diagnostics.has(invalidatedProject.projectPath)) successfulProjects++; - } - disableCache(state); - reportErrorSummary(state, buildOrder); - startWatching(state, buildOrder); - return isCircularBuildOrder(buildOrder) ? 4 /* ProjectReferenceCycle_OutputsSkipped */ : !buildOrder.some((p) => state.diagnostics.has(toResolvedConfigFilePath(state, p))) ? 0 /* Success */ : successfulProjects ? 2 /* DiagnosticsPresent_OutputsGenerated */ : 1 /* DiagnosticsPresent_OutputsSkipped */; -} -function clean(state, project, onlyReferences) { - mark("SolutionBuilder::beforeClean"); - const result = cleanWorker(state, project, onlyReferences); - mark("SolutionBuilder::afterClean"); - measure("SolutionBuilder::Clean", "SolutionBuilder::beforeClean", "SolutionBuilder::afterClean"); - return result; -} -function cleanWorker(state, project, onlyReferences) { - const buildOrder = getBuildOrderFor(state, project, onlyReferences); - if (!buildOrder) return 3 /* InvalidProject_OutputsSkipped */; - if (isCircularBuildOrder(buildOrder)) { - reportErrors(state, buildOrder.circularDiagnostics); - return 4 /* ProjectReferenceCycle_OutputsSkipped */; - } - const { options, host } = state; - const filesToDelete = options.dry ? [] : void 0; - for (const proj of buildOrder) { - const resolvedPath = toResolvedConfigFilePath(state, proj); - const parsed = parseConfigFile(state, proj, resolvedPath); - if (parsed === void 0) { - reportParseConfigFileDiagnostic(state, resolvedPath); - continue; - } - const outputs = getAllProjectOutputs(parsed, !host.useCaseSensitiveFileNames()); - if (!outputs.length) continue; - const inputFileNames = new Set(parsed.fileNames.map((f) => toPath2(state, f))); - for (const output of outputs) { - if (inputFileNames.has(toPath2(state, output))) continue; - if (host.fileExists(output)) { - if (filesToDelete) { - filesToDelete.push(output); - } else { - host.deleteFile(output); - invalidateProject(state, resolvedPath, 0 /* Update */); - } - } - } - } - if (filesToDelete) { - reportStatus(state, Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map((f) => `\r - * ${f}`).join("")); - } - return 0 /* Success */; -} -function invalidateProject(state, resolved, updateLevel) { - if (state.host.getParsedCommandLine && updateLevel === 1 /* RootNamesAndUpdate */) { - updateLevel = 2 /* Full */; - } - if (updateLevel === 2 /* Full */) { - state.configFileCache.delete(resolved); - state.buildOrder = void 0; - } - state.needsSummary = true; - clearProjectStatus(state, resolved); - addProjToQueue(state, resolved, updateLevel); - enableCache(state); -} -function invalidateProjectAndScheduleBuilds(state, resolvedPath, updateLevel) { - state.reportFileChangeDetected = true; - invalidateProject(state, resolvedPath, updateLevel); - scheduleBuildInvalidatedProject( - state, - 250, - /*changeDetected*/ - true - ); -} -function scheduleBuildInvalidatedProject(state, time, changeDetected) { - const { hostWithWatch } = state; - if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) { - return; - } - if (state.timerToBuildInvalidatedProject) { - hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject); - } - state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, time, "timerToBuildInvalidatedProject", state, changeDetected); -} -function buildNextInvalidatedProject(_timeoutType, state, changeDetected) { - mark("SolutionBuilder::beforeBuild"); - const buildOrder = buildNextInvalidatedProjectWorker(state, changeDetected); - mark("SolutionBuilder::afterBuild"); - measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); - if (buildOrder) reportErrorSummary(state, buildOrder); -} -function buildNextInvalidatedProjectWorker(state, changeDetected) { - state.timerToBuildInvalidatedProject = void 0; - if (state.reportFileChangeDetected) { - state.reportFileChangeDetected = false; - state.projectErrorsReported.clear(); - reportWatchStatus(state, Diagnostics.File_change_detected_Starting_incremental_compilation); - } - let projectsBuilt = 0; - const buildOrder = getBuildOrder(state); - const invalidatedProject = getNextInvalidatedProject( - state, - buildOrder, - /*reportQueue*/ - false - ); - if (invalidatedProject) { - invalidatedProject.done(); - projectsBuilt++; - while (state.projectPendingBuild.size) { - if (state.timerToBuildInvalidatedProject) return; - const info = getNextInvalidatedProjectCreateInfo( - state, - buildOrder, - /*reportQueue*/ - false - ); - if (!info) break; - if (info.kind !== 1 /* UpdateOutputFileStamps */ && (changeDetected || projectsBuilt === 5)) { - scheduleBuildInvalidatedProject( - state, - 100, - /*changeDetected*/ - false - ); - return; - } - const project = createInvalidatedProjectWithInfo(state, info, buildOrder); - project.done(); - if (info.kind !== 1 /* UpdateOutputFileStamps */) projectsBuilt++; - } - } - disableCache(state); - return buildOrder; -} -function watchConfigFile(state, resolved, resolvedPath, parsed) { - if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath)) return; - state.allWatchedConfigFiles.set( - resolvedPath, - watchFile( - state, - resolved, - () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 2 /* Full */), - 2e3 /* High */, - parsed == null ? void 0 : parsed.watchOptions, - WatchType.ConfigFile, - resolved - ) - ); -} -function watchExtendedConfigFiles(state, resolvedPath, parsed) { - updateSharedExtendedConfigFileWatcher( - resolvedPath, - parsed == null ? void 0 : parsed.options, - state.allWatchedExtendedConfigFiles, - (extendedConfigFileName, extendedConfigFilePath) => watchFile( - state, - extendedConfigFileName, - () => { - var _a; - return (_a = state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)) == null ? void 0 : _a.projects.forEach((projectConfigFilePath) => invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, 2 /* Full */)); - }, - 2e3 /* High */, - parsed == null ? void 0 : parsed.watchOptions, - WatchType.ExtendedConfigFile - ), - (fileName) => toPath2(state, fileName) - ); -} -function watchWildCardDirectories(state, resolved, resolvedPath, parsed) { - if (!state.watch) return; - updateWatchingWildcardDirectories( - getOrCreateValueMapFromConfigFileMap(state.allWatchedWildcardDirectories, resolvedPath), - parsed.wildcardDirectories, - (dir, flags) => state.watchDirectory( - dir, - (fileOrDirectory) => { - var _a; - if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: toPath2(state, dir), - fileOrDirectory, - fileOrDirectoryPath: toPath2(state, fileOrDirectory), - configFileName: resolved, - currentDirectory: state.compilerHost.getCurrentDirectory(), - options: parsed.options, - program: state.builderPrograms.get(resolvedPath) || ((_a = getCachedParsedConfigFile(state, resolvedPath)) == null ? void 0 : _a.fileNames), - useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames, - writeLog: (s) => state.writeLog(s), - toPath: (fileName) => toPath2(state, fileName) - })) return; - invalidateProjectAndScheduleBuilds(state, resolvedPath, 1 /* RootNamesAndUpdate */); - }, - flags, - parsed == null ? void 0 : parsed.watchOptions, - WatchType.WildcardDirectory, - resolved - ) - ); -} -function watchInputFiles(state, resolved, resolvedPath, parsed) { - if (!state.watch) return; - mutateMap( - getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), - new Set(parsed.fileNames), - { - createNewValue: (input) => watchFile( - state, - input, - () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0 /* Update */), - 250 /* Low */, - parsed == null ? void 0 : parsed.watchOptions, - WatchType.SourceFile, - resolved - ), - onDeleteValue: closeFileWatcher - } - ); -} -function watchPackageJsonFiles(state, resolved, resolvedPath, parsed) { - if (!state.watch || !state.lastCachedPackageJsonLookups) return; - mutateMap( - getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), - state.lastCachedPackageJsonLookups.get(resolvedPath), - { - createNewValue: (input) => watchFile( - state, - input, - () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0 /* Update */), - 2e3 /* High */, - parsed == null ? void 0 : parsed.watchOptions, - WatchType.PackageJson, - resolved - ), - onDeleteValue: closeFileWatcher - } - ); -} -function startWatching(state, buildOrder) { - if (!state.watchAllProjectsPending) return; - mark("SolutionBuilder::beforeWatcherCreation"); - state.watchAllProjectsPending = false; - for (const resolved of getBuildOrderFromAnyBuildOrder(buildOrder)) { - const resolvedPath = toResolvedConfigFilePath(state, resolved); - const cfg = parseConfigFile(state, resolved, resolvedPath); - watchConfigFile(state, resolved, resolvedPath, cfg); - watchExtendedConfigFiles(state, resolvedPath, cfg); - if (cfg) { - watchWildCardDirectories(state, resolved, resolvedPath, cfg); - watchInputFiles(state, resolved, resolvedPath, cfg); - watchPackageJsonFiles(state, resolved, resolvedPath, cfg); - } - } - mark("SolutionBuilder::afterWatcherCreation"); - measure("SolutionBuilder::Watcher creation", "SolutionBuilder::beforeWatcherCreation", "SolutionBuilder::afterWatcherCreation"); -} -function stopWatching(state) { - clearMap(state.allWatchedConfigFiles, closeFileWatcher); - clearMap(state.allWatchedExtendedConfigFiles, closeFileWatcherOf); - clearMap(state.allWatchedWildcardDirectories, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcherOf)); - clearMap(state.allWatchedInputFiles, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcher)); - clearMap(state.allWatchedPackageJsonFiles, (watchedPacageJsonFiles) => clearMap(watchedPacageJsonFiles, closeFileWatcher)); -} -function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) { - const state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions); - return { - build: (project, cancellationToken, writeFile2, getCustomTransformers) => build(state, project, cancellationToken, writeFile2, getCustomTransformers), - clean: (project) => clean(state, project), - buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) => build( - state, - project, - cancellationToken, - writeFile2, - getCustomTransformers, - /*onlyReferences*/ - true - ), - cleanReferences: (project) => clean( - state, - project, - /*onlyReferences*/ - true - ), - getNextInvalidatedProject: (cancellationToken) => { - setupInitialBuild(state, cancellationToken); - return getNextInvalidatedProject( - state, - getBuildOrder(state), - /*reportQueue*/ - false - ); - }, - getBuildOrder: () => getBuildOrder(state), - getUpToDateStatusOfProject: (project) => { - const configFileName = resolveProjectName(state, project); - const configFilePath = toResolvedConfigFilePath(state, configFileName); - return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath); - }, - invalidateProject: (configFilePath, updateLevel) => invalidateProject(state, configFilePath, updateLevel || 0 /* Update */), - close: () => stopWatching(state) - }; -} -function relName(state, path) { - return convertToRelativePath(path, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName); -} -function reportStatus(state, message, ...args) { - state.host.reportSolutionBuilderStatus(createCompilerDiagnostic(message, ...args)); -} -function reportWatchStatus(state, message, ...args) { - var _a, _b; - (_b = (_a = state.hostWithWatch).onWatchStatusChange) == null ? void 0 : _b.call(_a, createCompilerDiagnostic(message, ...args), state.host.getNewLine(), state.baseCompilerOptions); -} -function reportErrors({ host }, errors) { - errors.forEach((err) => host.reportDiagnostic(err)); -} -function reportAndStoreErrors(state, proj, errors) { - reportErrors(state, errors); - state.projectErrorsReported.set(proj, true); - if (errors.length) { - state.diagnostics.set(proj, errors); - } -} -function reportParseConfigFileDiagnostic(state, proj) { - reportAndStoreErrors(state, proj, [state.configFileCache.get(proj)]); -} -function reportErrorSummary(state, buildOrder) { - if (!state.needsSummary) return; - state.needsSummary = false; - const canReportSummary = state.watch || !!state.host.reportErrorSummary; - const { diagnostics } = state; - let totalErrors = 0; - let filesInError = []; - if (isCircularBuildOrder(buildOrder)) { - reportBuildQueue(state, buildOrder.buildOrder); - reportErrors(state, buildOrder.circularDiagnostics); - if (canReportSummary) totalErrors += getErrorCountForSummary(buildOrder.circularDiagnostics); - if (canReportSummary) filesInError = [...filesInError, ...getFilesInErrorForSummary(buildOrder.circularDiagnostics)]; - } else { - buildOrder.forEach((project) => { - const projectPath = toResolvedConfigFilePath(state, project); - if (!state.projectErrorsReported.has(projectPath)) { - reportErrors(state, diagnostics.get(projectPath) || emptyArray); - } - }); - if (canReportSummary) diagnostics.forEach((singleProjectErrors) => totalErrors += getErrorCountForSummary(singleProjectErrors)); - if (canReportSummary) diagnostics.forEach((singleProjectErrors) => [...filesInError, ...getFilesInErrorForSummary(singleProjectErrors)]); - } - if (state.watch) { - reportWatchStatus(state, getWatchErrorSummaryDiagnosticMessage(totalErrors), totalErrors); - } else if (state.host.reportErrorSummary) { - state.host.reportErrorSummary(totalErrors, filesInError); - } -} -function reportBuildQueue(state, buildQueue) { - if (state.options.verbose) { - reportStatus(state, Diagnostics.Projects_in_this_build_Colon_0, buildQueue.map((s) => "\r\n * " + relName(state, s)).join("")); - } -} -function reportUpToDateStatus(state, configFileName, status) { - switch (status.type) { - case 5 /* OutOfDateWithSelf */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, - relName(state, configFileName), - relName(state, status.outOfDateOutputFileName), - relName(state, status.newerInputFileName) - ); - case 6 /* OutOfDateWithUpstream */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, - relName(state, configFileName), - relName(state, status.outOfDateOutputFileName), - relName(state, status.newerProjectName) - ); - case 3 /* OutputMissing */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, - relName(state, configFileName), - relName(state, status.missingOutputFileName) - ); - case 4 /* ErrorReadingFile */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1, - relName(state, configFileName), - relName(state, status.fileName) - ); - case 7 /* OutOfDateBuildInfoWithPendingEmit */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, - relName(state, configFileName), - relName(state, status.buildInfoFile) - ); - case 8 /* OutOfDateBuildInfoWithErrors */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors, - relName(state, configFileName), - relName(state, status.buildInfoFile) - ); - case 9 /* OutOfDateOptions */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions, - relName(state, configFileName), - relName(state, status.buildInfoFile) - ); - case 10 /* OutOfDateRoots */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more, - relName(state, configFileName), - relName(state, status.buildInfoFile), - relName(state, status.inputFile) - ); - case 1 /* UpToDate */: - if (status.newestInputFileTime !== void 0) { - return reportStatus( - state, - Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2, - relName(state, configFileName), - relName(state, status.newestInputFileName || ""), - relName(state, status.oldestOutputFileName || "") - ); - } - break; - case 2 /* UpToDateWithUpstreamTypes */: - return reportStatus( - state, - Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, - relName(state, configFileName) - ); - case 15 /* UpToDateWithInputFileText */: - return reportStatus( - state, - Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, - relName(state, configFileName) - ); - case 11 /* UpstreamOutOfDate */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, - relName(state, configFileName), - relName(state, status.upstreamProjectName) - ); - case 12 /* UpstreamBlocked */: - return reportStatus( - state, - status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, - relName(state, configFileName), - relName(state, status.upstreamProjectName) - ); - case 0 /* Unbuildable */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_1, - relName(state, configFileName), - status.reason - ); - case 14 /* TsVersionOutputOfDate */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, - relName(state, configFileName), - status.version, - version - ); - case 17 /* ForceBuild */: - return reportStatus( - state, - Diagnostics.Project_0_is_being_forcibly_rebuilt, - relName(state, configFileName) - ); - case 16 /* ContainerOnly */: - // Don't report status on "solution" projects - // falls through - case 13 /* ComputingUpstream */: - break; - default: - assertType(status); - } -} -function verboseReportProjectStatus(state, configFileName, status) { - if (state.options.verbose) { - reportUpToDateStatus(state, configFileName, status); - } -} - -// src/compiler/executeCommandLine.ts -function countLines(program) { - const counts2 = getCountsMap(); - forEach(program.getSourceFiles(), (file) => { - const key = getCountKey(program, file); - const lineCount = getLineStarts(file).length; - counts2.set(key, counts2.get(key) + lineCount); - }); - return counts2; -} -function getCountsMap() { - const counts2 = /* @__PURE__ */ new Map(); - counts2.set("Library", 0); - counts2.set("Definitions", 0); - counts2.set("TypeScript", 0); - counts2.set("JavaScript", 0); - counts2.set("JSON", 0); - counts2.set("Other", 0); - return counts2; -} -function getCountKey(program, file) { - if (program.isSourceFileDefaultLibrary(file)) { - return "Library"; - } else if (file.isDeclarationFile) { - return "Definitions"; - } - const path = file.path; - if (fileExtensionIsOneOf(path, supportedTSExtensionsFlat)) { - return "TypeScript"; - } else if (fileExtensionIsOneOf(path, supportedJSExtensionsFlat)) { - return "JavaScript"; - } else if (fileExtensionIs(path, ".json" /* Json */)) { - return "JSON"; - } else { - return "Other"; - } -} -function updateReportDiagnostic(sys2, existing, options) { - return shouldBePretty(sys2, options) ? createDiagnosticReporter( - sys2, - /*pretty*/ - true - ) : existing; -} -function defaultIsPretty(sys2) { - return !!sys2.writeOutputIsTTY && sys2.writeOutputIsTTY() && !sys2.getEnvironmentVariable("NO_COLOR"); -} -function shouldBePretty(sys2, options) { - if (!options || typeof options.pretty === "undefined") { - return defaultIsPretty(sys2); - } - return options.pretty; -} -function getOptionsForHelp(commandLine) { - return !!commandLine.options.all ? toSorted(optionDeclarations.concat(tscBuildOption), (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter(optionDeclarations.concat(tscBuildOption), (v) => !!v.showInSimplifiedHelpView); -} -function printVersion(sys2) { - sys2.write(getDiagnosticText(Diagnostics.Version_0, version) + sys2.newLine); -} -function createColors(sys2) { - const showColors = defaultIsPretty(sys2); - if (!showColors) { - return { - bold: (str) => str, - blue: (str) => str, - blueBackground: (str) => str, - brightWhite: (str) => str - }; - } - function bold(str) { - return `\x1B[1m${str}\x1B[22m`; - } - const isWindows = sys2.getEnvironmentVariable("OS") && sys2.getEnvironmentVariable("OS").toLowerCase().includes("windows"); - const isWindowsTerminal = sys2.getEnvironmentVariable("WT_SESSION"); - const isVSCode = sys2.getEnvironmentVariable("TERM_PROGRAM") && sys2.getEnvironmentVariable("TERM_PROGRAM") === "vscode"; - function blue(str) { - if (isWindows && !isWindowsTerminal && !isVSCode) { - return brightWhite(str); - } - return `\x1B[94m${str}\x1B[39m`; - } - const supportsRicherColors = sys2.getEnvironmentVariable("COLORTERM") === "truecolor" || sys2.getEnvironmentVariable("TERM") === "xterm-256color"; - function blueBackground(str) { - if (supportsRicherColors) { - return `\x1B[48;5;68m${str}\x1B[39;49m`; - } else { - return `\x1B[44m${str}\x1B[39;49m`; - } - } - function brightWhite(str) { - return `\x1B[97m${str}\x1B[39m`; - } - return { - bold, - blue, - brightWhite, - blueBackground - }; -} -function getDisplayNameTextOfOption(option) { - return `--${option.name}${option.shortName ? `, -${option.shortName}` : ""}`; -} -function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) { - var _a; - const text = []; - const colors = createColors(sys2); - const name = getDisplayNameTextOfOption(option); - const valueCandidates = getValueCandidate(option); - const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue( - option.defaultValueDescription, - option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type - ); - const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? void 0 : _a.call(sys2)) ?? 0; - if (terminalWidth >= 80) { - let description = ""; - if (option.description) { - description = getDiagnosticText(option.description); - } - text.push(...getPrettyOutput( - name, - description, - rightAlignOfLeft, - leftAlignOfRight, - terminalWidth, - /*colorLeft*/ - true - ), sys2.newLine); - if (showAdditionalInfoOutput(valueCandidates, option)) { - if (valueCandidates) { - text.push(...getPrettyOutput( - valueCandidates.valueType, - valueCandidates.possibleValues, - rightAlignOfLeft, - leftAlignOfRight, - terminalWidth, - /*colorLeft*/ - false - ), sys2.newLine); - } - if (defaultValueDescription) { - text.push(...getPrettyOutput( - getDiagnosticText(Diagnostics.default_Colon), - defaultValueDescription, - rightAlignOfLeft, - leftAlignOfRight, - terminalWidth, - /*colorLeft*/ - false - ), sys2.newLine); - } - } - text.push(sys2.newLine); - } else { - text.push(colors.blue(name), sys2.newLine); - if (option.description) { - const description = getDiagnosticText(option.description); - text.push(description); - } - text.push(sys2.newLine); - if (showAdditionalInfoOutput(valueCandidates, option)) { - if (valueCandidates) { - text.push(`${valueCandidates.valueType} ${valueCandidates.possibleValues}`); - } - if (defaultValueDescription) { - if (valueCandidates) text.push(sys2.newLine); - const diagType = getDiagnosticText(Diagnostics.default_Colon); - text.push(`${diagType} ${defaultValueDescription}`); - } - text.push(sys2.newLine); - } - text.push(sys2.newLine); - } - return text; - function formatDefaultValue(defaultValue, type) { - return defaultValue !== void 0 && typeof type === "object" ? arrayFrom(type.entries()).filter(([, value]) => value === defaultValue).map(([name2]) => name2).join("/") : String(defaultValue); - } - function showAdditionalInfoOutput(valueCandidates2, option2) { - const ignoreValues = ["string"]; - const ignoredDescriptions = [void 0, "false", "n/a"]; - const defaultValueDescription2 = option2.defaultValueDescription; - if (option2.category === Diagnostics.Command_line_Options) return false; - if (contains(ignoreValues, valueCandidates2 == null ? void 0 : valueCandidates2.possibleValues) && contains(ignoredDescriptions, defaultValueDescription2)) { - return false; - } - return true; - } - function getPrettyOutput(left, right, rightAlignOfLeft2, leftAlignOfRight2, terminalWidth2, colorLeft) { - const res = []; - let isFirstLine = true; - let remainRight = right; - const rightCharacterNumber = terminalWidth2 - leftAlignOfRight2; - while (remainRight.length > 0) { - let curLeft = ""; - if (isFirstLine) { - curLeft = left.padStart(rightAlignOfLeft2); - curLeft = curLeft.padEnd(leftAlignOfRight2); - curLeft = colorLeft ? colors.blue(curLeft) : curLeft; - } else { - curLeft = "".padStart(leftAlignOfRight2); - } - const curRight = remainRight.substr(0, rightCharacterNumber); - remainRight = remainRight.slice(rightCharacterNumber); - res.push(`${curLeft}${curRight}`); - isFirstLine = false; - } - return res; - } - function getValueCandidate(option2) { - if (option2.type === "object") { - return void 0; - } - return { - valueType: getValueType(option2), - possibleValues: getPossibleValues(option2) - }; - function getValueType(option3) { - Debug.assert(option3.type !== "listOrElement"); - switch (option3.type) { - case "string": - case "number": - case "boolean": - return getDiagnosticText(Diagnostics.type_Colon); - case "list": - return getDiagnosticText(Diagnostics.one_or_more_Colon); - default: - return getDiagnosticText(Diagnostics.one_of_Colon); - } - } - function getPossibleValues(option3) { - let possibleValues; - switch (option3.type) { - case "string": - case "number": - case "boolean": - possibleValues = option3.type; - break; - case "list": - case "listOrElement": - possibleValues = getPossibleValues(option3.element); - break; - case "object": - possibleValues = ""; - break; - default: - const inverted = {}; - option3.type.forEach((value, name2) => { - var _a2; - if (!((_a2 = option3.deprecatedKeys) == null ? void 0 : _a2.has(name2))) { - (inverted[value] || (inverted[value] = [])).push(name2); - } - }); - return Object.entries(inverted).map(([, synonyms]) => synonyms.join("/")).join(", "); - } - return possibleValues; - } - } -} -function generateGroupOptionOutput(sys2, optionsList) { - let maxLength = 0; - for (const option of optionsList) { - const curLength = getDisplayNameTextOfOption(option).length; - maxLength = maxLength > curLength ? maxLength : curLength; - } - const rightAlignOfLeftPart = maxLength + 2; - const leftAlignOfRightPart = rightAlignOfLeftPart + 2; - let lines = []; - for (const option of optionsList) { - const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart); - lines = [...lines, ...tmp]; - } - if (lines[lines.length - 2] !== sys2.newLine) { - lines.push(sys2.newLine); - } - return lines; -} -function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) { - let res = []; - res.push(createColors(sys2).bold(sectionName) + sys2.newLine + sys2.newLine); - if (beforeOptionsDescription) { - res.push(beforeOptionsDescription + sys2.newLine + sys2.newLine); - } - if (!subCategory) { - res = [...res, ...generateGroupOptionOutput(sys2, options)]; - if (afterOptionsDescription) { - res.push(afterOptionsDescription + sys2.newLine + sys2.newLine); - } - return res; - } - const categoryMap = /* @__PURE__ */ new Map(); - for (const option of options) { - if (!option.category) { - continue; - } - const curCategory = getDiagnosticText(option.category); - const optionsOfCurCategory = categoryMap.get(curCategory) ?? []; - optionsOfCurCategory.push(option); - categoryMap.set(curCategory, optionsOfCurCategory); - } - categoryMap.forEach((value, key) => { - res.push(`### ${key}${sys2.newLine}${sys2.newLine}`); - res = [...res, ...generateGroupOptionOutput(sys2, value)]; - }); - if (afterOptionsDescription) { - res.push(afterOptionsDescription + sys2.newLine + sys2.newLine); - } - return res; -} -function printEasyHelp(sys2, simpleOptions) { - const colors = createColors(sys2); - let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; - output.push(colors.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine); - example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory); - example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options); - example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory); - example("tsc --init", Diagnostics.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory); - example("tsc -p ./path/to/tsconfig.json", Diagnostics.Compiles_the_TypeScript_project_located_at_the_specified_path); - example("tsc --help --all", Diagnostics.An_expanded_version_of_this_information_showing_all_possible_compiler_options); - example(["tsc --noEmit", "tsc --target esnext"], Diagnostics.Compiles_the_current_project_with_additional_settings); - const cliCommands = simpleOptions.filter((opt) => opt.isCommandLineOnly || opt.category === Diagnostics.Command_line_Options); - const configOpts = simpleOptions.filter((opt) => !contains(cliCommands, opt)); - output = [ - ...output, - ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.COMMAND_LINE_FLAGS), - cliCommands, - /*subCategory*/ - false, - /*beforeOptionsDescription*/ - void 0, - /*afterOptionsDescription*/ - void 0 - ), - ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.COMMON_COMPILER_OPTIONS), - configOpts, - /*subCategory*/ - false, - /*beforeOptionsDescription*/ - void 0, - formatMessage(Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc") - ) - ]; - for (const line of output) { - sys2.write(line); - } - function example(ex, desc) { - const examples = typeof ex === "string" ? [ex] : ex; - for (const example2 of examples) { - output.push(" " + colors.blue(example2) + sys2.newLine); - } - output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine); - } -} -function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) { - let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; - output = [...output, ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS), - compilerOptions, - /*subCategory*/ - true, - /*beforeOptionsDescription*/ - void 0, - formatMessage(Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc") - )]; - output = [...output, ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.WATCH_OPTIONS), - watchOptions, - /*subCategory*/ - false, - getDiagnosticText(Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon) - )]; - output = [...output, ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.BUILD_OPTIONS), - filter(buildOptions, (option) => option !== tscBuildOption), - /*subCategory*/ - false, - formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") - )]; - for (const line of output) { - sys2.write(line); - } -} -function printBuildHelp(sys2, buildOptions) { - let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; - output = [...output, ...generateSectionOptionsOutput( - sys2, - getDiagnosticText(Diagnostics.BUILD_OPTIONS), - filter(buildOptions, (option) => option !== tscBuildOption), - /*subCategory*/ - false, - formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") - )]; - for (const line of output) { - sys2.write(line); - } -} -function getHeader(sys2, message) { - var _a; - const colors = createColors(sys2); - const header = []; - const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? void 0 : _a.call(sys2)) ?? 0; - const tsIconLength = 5; - const tsIconFirstLine = colors.blueBackground("".padStart(tsIconLength)); - const tsIconSecondLine = colors.blueBackground(colors.brightWhite("TS ".padStart(tsIconLength))); - if (terminalWidth >= message.length + tsIconLength) { - const rightAlign = terminalWidth > 120 ? 120 : terminalWidth; - const leftAlign = rightAlign - tsIconLength; - header.push(message.padEnd(leftAlign) + tsIconFirstLine + sys2.newLine); - header.push("".padStart(leftAlign) + tsIconSecondLine + sys2.newLine); - } else { - header.push(message + sys2.newLine); - header.push(sys2.newLine); - } - return header; -} -function printHelp(sys2, commandLine) { - if (!commandLine.options.all) { - printEasyHelp(sys2, getOptionsForHelp(commandLine)); - } else { - printAllHelp(sys2, getOptionsForHelp(commandLine), optionsForBuild, optionsForWatch); - } -} -function executeCommandLineWorker(sys2, cb, commandLine) { - let reportDiagnostic = createDiagnosticReporter(sys2); - let configFileName; - if (commandLine.options.locale) { - validateLocaleAndSetLanguage(commandLine.options.locale, sys2, commandLine.errors); - } - if (commandLine.errors.length > 0) { - commandLine.errors.forEach(reportDiagnostic); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - if (commandLine.options.init) { - writeConfigFile(sys2, reportDiagnostic, commandLine.options, commandLine.fileNames); - return sys2.exit(0 /* Success */); - } - if (commandLine.options.version) { - printVersion(sys2); - return sys2.exit(0 /* Success */); - } - if (commandLine.options.help || commandLine.options.all) { - printHelp(sys2, commandLine); - return sys2.exit(0 /* Success */); - } - if (commandLine.options.watch && commandLine.options.listFilesOnly) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "listFilesOnly")); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - if (commandLine.options.project) { - if (commandLine.fileNames.length !== 0) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - const fileOrDirectory = normalizePath(commandLine.options.project); - if (!fileOrDirectory || sys2.directoryExists(fileOrDirectory)) { - configFileName = combinePaths(fileOrDirectory, "tsconfig.json"); - if (!sys2.fileExists(configFileName)) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0, commandLine.options.project)); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - } else { - configFileName = fileOrDirectory; - if (!sys2.fileExists(configFileName)) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_specified_path_does_not_exist_Colon_0, commandLine.options.project)); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - } - } else if (commandLine.fileNames.length === 0) { - const searchPath = normalizePath(sys2.getCurrentDirectory()); - configFileName = findConfigFile(searchPath, (fileName) => sys2.fileExists(fileName)); - } - if (commandLine.fileNames.length === 0 && !configFileName) { - if (commandLine.options.showConfig) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory()))); - } else { - printVersion(sys2); - printHelp(sys2, commandLine); - } - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - const currentDirectory = sys2.getCurrentDirectory(); - const commandLineOptions = convertToOptionsWithAbsolutePaths( - commandLine.options, - (fileName) => getNormalizedAbsolutePath(fileName, currentDirectory) - ); - if (configFileName) { - const extendedConfigCache = /* @__PURE__ */ new Map(); - const configParseResult = parseConfigFileWithSystem(configFileName, commandLineOptions, extendedConfigCache, commandLine.watchOptions, sys2, reportDiagnostic); - if (commandLineOptions.showConfig) { - if (configParseResult.errors.length !== 0) { - reportDiagnostic = updateReportDiagnostic( - sys2, - reportDiagnostic, - configParseResult.options - ); - configParseResult.errors.forEach(reportDiagnostic); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - sys2.write(JSON.stringify(convertToTSConfig(configParseResult, configFileName, sys2), null, 4) + sys2.newLine); - return sys2.exit(0 /* Success */); - } - reportDiagnostic = updateReportDiagnostic( - sys2, - reportDiagnostic, - configParseResult.options - ); - if (isWatchSet(configParseResult.options)) { - if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; - return createWatchOfConfigFile( - sys2, - cb, - reportDiagnostic, - configParseResult, - commandLineOptions, - commandLine.watchOptions, - extendedConfigCache - ); - } else if (isIncrementalCompilation(configParseResult.options)) { - performIncrementalCompilation2( - sys2, - cb, - reportDiagnostic, - configParseResult - ); - } else { - performCompilation( - sys2, - cb, - reportDiagnostic, - configParseResult - ); - } - } else { - if (commandLineOptions.showConfig) { - sys2.write(JSON.stringify(convertToTSConfig(commandLine, combinePaths(currentDirectory, "tsconfig.json"), sys2), null, 4) + sys2.newLine); - return sys2.exit(0 /* Success */); - } - reportDiagnostic = updateReportDiagnostic( - sys2, - reportDiagnostic, - commandLineOptions - ); - if (isWatchSet(commandLineOptions)) { - if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; - return createWatchOfFilesAndCompilerOptions( - sys2, - cb, - reportDiagnostic, - commandLine.fileNames, - commandLineOptions, - commandLine.watchOptions - ); - } else if (isIncrementalCompilation(commandLineOptions)) { - performIncrementalCompilation2( - sys2, - cb, - reportDiagnostic, - { ...commandLine, options: commandLineOptions } - ); - } else { - performCompilation( - sys2, - cb, - reportDiagnostic, - { ...commandLine, options: commandLineOptions } - ); - } - } -} -function isBuildCommand(commandLineArgs) { - if (commandLineArgs.length > 0 && commandLineArgs[0].charCodeAt(0) === 45 /* minus */) { - const firstOption = commandLineArgs[0].slice(commandLineArgs[0].charCodeAt(1) === 45 /* minus */ ? 2 : 1).toLowerCase(); - return firstOption === tscBuildOption.name || firstOption === tscBuildOption.shortName; - } - return false; -} -function executeCommandLine(system, cb, commandLineArgs) { - if (isBuildCommand(commandLineArgs)) { - const { buildOptions, watchOptions, projects, errors } = parseBuildCommand(commandLineArgs); - if (buildOptions.generateCpuProfile && system.enableCPUProfiler) { - system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild( - system, - cb, - buildOptions, - watchOptions, - projects, - errors - )); - } else { - return performBuild( - system, - cb, - buildOptions, - watchOptions, - projects, - errors - ); - } - } - const commandLine = parseCommandLine(commandLineArgs, (path) => system.readFile(path)); - if (commandLine.options.generateCpuProfile && system.enableCPUProfiler) { - system.enableCPUProfiler(commandLine.options.generateCpuProfile, () => executeCommandLineWorker( - system, - cb, - commandLine - )); - } else { - return executeCommandLineWorker(system, cb, commandLine); - } -} -function reportWatchModeWithoutSysSupport(sys2, reportDiagnostic) { - if (!sys2.watchFile || !sys2.watchDirectory) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--watch")); - sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - return true; - } - return false; -} -var defaultJSDocParsingMode = 2 /* ParseForTypeErrors */; -function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors) { - const reportDiagnostic = updateReportDiagnostic( - sys2, - createDiagnosticReporter(sys2), - buildOptions - ); - if (buildOptions.locale) { - validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors); - } - if (errors.length > 0) { - errors.forEach(reportDiagnostic); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - if (buildOptions.help) { - printVersion(sys2); - printBuildHelp(sys2, buildOpts); - return sys2.exit(0 /* Success */); - } - if (projects.length === 0) { - printVersion(sys2); - printBuildHelp(sys2, buildOpts); - return sys2.exit(0 /* Success */); - } - if (!sys2.getModifiedTime || !sys2.setModifiedTime || buildOptions.clean && !sys2.deleteFile) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--build")); - return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); - } - if (buildOptions.watch) { - if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; - const buildHost2 = createSolutionBuilderWithWatchHost( - sys2, - /*createProgram*/ - void 0, - reportDiagnostic, - createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)), - createWatchStatusReporter2(sys2, buildOptions) - ); - buildHost2.jsDocParsingMode = defaultJSDocParsingMode; - const solutionPerformance2 = enableSolutionPerformance(sys2, buildOptions); - updateSolutionBuilderHost(sys2, cb, buildHost2, solutionPerformance2); - const onWatchStatusChange = buildHost2.onWatchStatusChange; - let reportBuildStatistics = false; - buildHost2.onWatchStatusChange = (d, newLine, options, errorCount) => { - onWatchStatusChange == null ? void 0 : onWatchStatusChange(d, newLine, options, errorCount); - if (reportBuildStatistics && (d.code === Diagnostics.Found_0_errors_Watching_for_file_changes.code || d.code === Diagnostics.Found_1_error_Watching_for_file_changes.code)) { - reportSolutionBuilderTimes(builder2, solutionPerformance2); - } - }; - const builder2 = createSolutionBuilderWithWatch(buildHost2, projects, buildOptions, watchOptions); - builder2.build(); - reportSolutionBuilderTimes(builder2, solutionPerformance2); - reportBuildStatistics = true; - return builder2; - } - const buildHost = createSolutionBuilderHost( - sys2, - /*createProgram*/ - void 0, - reportDiagnostic, - createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)), - createReportErrorSummary(sys2, buildOptions) - ); - buildHost.jsDocParsingMode = defaultJSDocParsingMode; - const solutionPerformance = enableSolutionPerformance(sys2, buildOptions); - updateSolutionBuilderHost(sys2, cb, buildHost, solutionPerformance); - const builder = createSolutionBuilder(buildHost, projects, buildOptions); - const exitStatus = buildOptions.clean ? builder.clean() : builder.build(); - reportSolutionBuilderTimes(builder, solutionPerformance); - dumpTracingLegend(); - return sys2.exit(exitStatus); -} -function createReportErrorSummary(sys2, options) { - return shouldBePretty(sys2, options) ? (errorCount, filesInError) => sys2.write(getErrorSummaryText(errorCount, filesInError, sys2.newLine, sys2)) : void 0; -} -function performCompilation(sys2, cb, reportDiagnostic, config) { - const { fileNames, options, projectReferences } = config; - const host = createCompilerHostWorker( - options, - /*setParentNodes*/ - void 0, - sys2 - ); - host.jsDocParsingMode = defaultJSDocParsingMode; - const currentDirectory = host.getCurrentDirectory(); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - changeCompilerHostLikeToUseCache(host, (fileName) => toPath(fileName, currentDirectory, getCanonicalFileName)); - enableStatisticsAndTracing( - sys2, - options, - /*isBuildMode*/ - false - ); - const programOptions = { - rootNames: fileNames, - options, - projectReferences, - host, - configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config) - }; - const program = createProgram(programOptions); - const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( - program, - reportDiagnostic, - (s) => sys2.write(s + sys2.newLine), - createReportErrorSummary(sys2, options) - ); - reportStatistics( - sys2, - program, - /*solutionPerformance*/ - void 0 - ); - cb(program); - return sys2.exit(exitStatus); -} -function performIncrementalCompilation2(sys2, cb, reportDiagnostic, config) { - const { options, fileNames, projectReferences } = config; - enableStatisticsAndTracing( - sys2, - options, - /*isBuildMode*/ - false - ); - const host = createIncrementalCompilerHost(options, sys2); - host.jsDocParsingMode = defaultJSDocParsingMode; - const exitStatus = performIncrementalCompilation({ - host, - system: sys2, - rootNames: fileNames, - options, - configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config), - projectReferences, - reportDiagnostic, - reportErrorSummary: createReportErrorSummary(sys2, options), - afterProgramEmitAndDiagnostics: (builderProgram) => { - reportStatistics( - sys2, - builderProgram.getProgram(), - /*solutionPerformance*/ - void 0 - ); - cb(builderProgram); - } - }); - return sys2.exit(exitStatus); -} -function updateSolutionBuilderHost(sys2, cb, buildHost, solutionPerformance) { - updateCreateProgram( - sys2, - buildHost, - /*isBuildMode*/ - true - ); - buildHost.afterProgramEmitAndDiagnostics = (program) => { - reportStatistics(sys2, program.getProgram(), solutionPerformance); - cb(program); - }; -} -function updateCreateProgram(sys2, host, isBuildMode) { - const compileUsingBuilder = host.createProgram; - host.createProgram = (rootNames, options, host2, oldProgram, configFileParsingDiagnostics, projectReferences) => { - Debug.assert(rootNames !== void 0 || options === void 0 && !!oldProgram); - if (options !== void 0) { - enableStatisticsAndTracing(sys2, options, isBuildMode); - } - return compileUsingBuilder(rootNames, options, host2, oldProgram, configFileParsingDiagnostics, projectReferences); - }; -} -function updateWatchCompilationHost(sys2, cb, watchCompilerHost) { - watchCompilerHost.jsDocParsingMode = defaultJSDocParsingMode; - updateCreateProgram( - sys2, - watchCompilerHost, - /*isBuildMode*/ - false - ); - const emitFilesUsingBuilder = watchCompilerHost.afterProgramCreate; - watchCompilerHost.afterProgramCreate = (builderProgram) => { - emitFilesUsingBuilder(builderProgram); - reportStatistics( - sys2, - builderProgram.getProgram(), - /*solutionPerformance*/ - void 0 - ); - cb(builderProgram); - }; -} -function createWatchStatusReporter2(sys2, options) { - return createWatchStatusReporter(sys2, shouldBePretty(sys2, options)); -} -function createWatchOfConfigFile(system, cb, reportDiagnostic, configParseResult, optionsToExtend, watchOptionsToExtend, extendedConfigCache) { - const watchCompilerHost = createWatchCompilerHostOfConfigFile({ - configFileName: configParseResult.options.configFilePath, - optionsToExtend, - watchOptionsToExtend, - system, - reportDiagnostic, - reportWatchStatus: createWatchStatusReporter2(system, configParseResult.options) - }); - updateWatchCompilationHost(system, cb, watchCompilerHost); - watchCompilerHost.configFileParsingResult = configParseResult; - watchCompilerHost.extendedConfigCache = extendedConfigCache; - return createWatchProgram(watchCompilerHost); -} -function createWatchOfFilesAndCompilerOptions(system, cb, reportDiagnostic, rootFiles, options, watchOptions) { - const watchCompilerHost = createWatchCompilerHostOfFilesAndCompilerOptions({ - rootFiles, - options, - watchOptions, - system, - reportDiagnostic, - reportWatchStatus: createWatchStatusReporter2(system, options) - }); - updateWatchCompilationHost(system, cb, watchCompilerHost); - return createWatchProgram(watchCompilerHost); -} -function enableSolutionPerformance(system, options) { - if (system === sys && options.extendedDiagnostics) { - enable(); - return createSolutionPerfomrance(); - } -} -function createSolutionPerfomrance() { - let statistics; - return { - addAggregateStatistic, - forEachAggregateStatistics: forEachAggreateStatistics, - clear: clear2 - }; - function addAggregateStatistic(s) { - const existing = statistics == null ? void 0 : statistics.get(s.name); - if (existing) { - if (existing.type === 2 /* memory */) existing.value = Math.max(existing.value, s.value); - else existing.value += s.value; - } else { - (statistics ?? (statistics = /* @__PURE__ */ new Map())).set(s.name, s); - } - } - function forEachAggreateStatistics(cb) { - statistics == null ? void 0 : statistics.forEach(cb); - } - function clear2() { - statistics = void 0; - } -} -function reportSolutionBuilderTimes(builder, solutionPerformance) { - if (!solutionPerformance) return; - if (!isEnabled()) { - sys.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); - return; - } - const statistics = []; - statistics.push( - { name: "Projects in scope", value: getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: 1 /* count */ } - ); - reportSolutionBuilderCountStatistic("SolutionBuilder::Projects built"); - reportSolutionBuilderCountStatistic("SolutionBuilder::Timestamps only updates"); - reportSolutionBuilderCountStatistic("SolutionBuilder::Bundles updated"); - solutionPerformance.forEachAggregateStatistics((s) => { - s.name = `Aggregate ${s.name}`; - statistics.push(s); - }); - forEachMeasure((name, duration) => { - if (isSolutionMarkOrMeasure(name)) statistics.push({ name: `${getNameFromSolutionBuilderMarkOrMeasure(name)} time`, value: duration, type: 0 /* time */ }); - }); - disable(); - enable(); - solutionPerformance.clear(); - reportAllStatistics(sys, statistics); - function reportSolutionBuilderCountStatistic(name) { - const value = getCount(name); - if (value) { - statistics.push({ name: getNameFromSolutionBuilderMarkOrMeasure(name), value, type: 1 /* count */ }); - } - } - function getNameFromSolutionBuilderMarkOrMeasure(name) { - return name.replace("SolutionBuilder::", ""); - } -} -function canReportDiagnostics(system, compilerOptions) { - return system === sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics); -} -function canTrace(system, compilerOptions) { - return system === sys && compilerOptions.generateTrace; -} -function enableStatisticsAndTracing(system, compilerOptions, isBuildMode) { - if (canReportDiagnostics(system, compilerOptions)) { - enable(system); - } - if (canTrace(system, compilerOptions)) { - startTracing(isBuildMode ? "build" : "project", compilerOptions.generateTrace, compilerOptions.configFilePath); - } -} -function isSolutionMarkOrMeasure(name) { - return startsWith(name, "SolutionBuilder::"); -} -function reportStatistics(sys2, program, solutionPerformance) { - var _a; - const compilerOptions = program.getCompilerOptions(); - if (canTrace(sys2, compilerOptions)) { - (_a = tracing) == null ? void 0 : _a.stopTracing(); - } - let statistics; - if (canReportDiagnostics(sys2, compilerOptions)) { - statistics = []; - const memoryUsed = sys2.getMemoryUsage ? sys2.getMemoryUsage() : -1; - reportCountStatistic("Files", program.getSourceFiles().length); - const lineCounts = countLines(program); - if (compilerOptions.extendedDiagnostics) { - for (const [key, value] of lineCounts.entries()) { - reportCountStatistic("Lines of " + key, value); - } - } else { - reportCountStatistic("Lines", reduceLeftIterator(lineCounts.values(), (sum, count) => sum + count, 0)); - } - reportCountStatistic("Identifiers", program.getIdentifierCount()); - reportCountStatistic("Symbols", program.getSymbolCount()); - reportCountStatistic("Types", program.getTypeCount()); - reportCountStatistic("Instantiations", program.getInstantiationCount()); - if (memoryUsed >= 0) { - reportStatisticalValue( - { name: "Memory used", value: memoryUsed, type: 2 /* memory */ }, - /*aggregate*/ - true - ); - } - const isPerformanceEnabled = isEnabled(); - const programTime = isPerformanceEnabled ? getDuration("Program") : 0; - const bindTime = isPerformanceEnabled ? getDuration("Bind") : 0; - const checkTime = isPerformanceEnabled ? getDuration("Check") : 0; - const emitTime = isPerformanceEnabled ? getDuration("Emit") : 0; - if (compilerOptions.extendedDiagnostics) { - const caches = program.getRelationCacheSizes(); - reportCountStatistic("Assignability cache size", caches.assignable); - reportCountStatistic("Identity cache size", caches.identity); - reportCountStatistic("Subtype cache size", caches.subtype); - reportCountStatistic("Strict subtype cache size", caches.strictSubtype); - if (isPerformanceEnabled) { - forEachMeasure((name, duration) => { - if (!isSolutionMarkOrMeasure(name)) reportTimeStatistic( - `${name} time`, - duration, - /*aggregate*/ - true - ); - }); - } - } else if (isPerformanceEnabled) { - reportTimeStatistic( - "I/O read", - getDuration("I/O Read"), - /*aggregate*/ - true - ); - reportTimeStatistic( - "I/O write", - getDuration("I/O Write"), - /*aggregate*/ - true - ); - reportTimeStatistic( - "Parse time", - programTime, - /*aggregate*/ - true - ); - reportTimeStatistic( - "Bind time", - bindTime, - /*aggregate*/ - true - ); - reportTimeStatistic( - "Check time", - checkTime, - /*aggregate*/ - true - ); - reportTimeStatistic( - "Emit time", - emitTime, - /*aggregate*/ - true - ); - } - if (isPerformanceEnabled) { - reportTimeStatistic( - "Total time", - programTime + bindTime + checkTime + emitTime, - /*aggregate*/ - false - ); - } - reportAllStatistics(sys2, statistics); - if (!isPerformanceEnabled) { - sys2.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); - } else { - if (solutionPerformance) { - forEachMeasure((name) => { - if (!isSolutionMarkOrMeasure(name)) clearMeasures(name); - }); - forEachMark((name) => { - if (!isSolutionMarkOrMeasure(name)) clearMarks(name); - }); - } else { - disable(); - } - } - } - function reportStatisticalValue(s, aggregate) { - statistics.push(s); - if (aggregate) solutionPerformance == null ? void 0 : solutionPerformance.addAggregateStatistic(s); - } - function reportCountStatistic(name, count) { - reportStatisticalValue( - { name, value: count, type: 1 /* count */ }, - /*aggregate*/ - true - ); - } - function reportTimeStatistic(name, time, aggregate) { - reportStatisticalValue({ name, value: time, type: 0 /* time */ }, aggregate); - } -} -function reportAllStatistics(sys2, statistics) { - let nameSize = 0; - let valueSize = 0; - for (const s of statistics) { - if (s.name.length > nameSize) { - nameSize = s.name.length; - } - const value = statisticValue(s); - if (value.length > valueSize) { - valueSize = value.length; - } - } - for (const s of statistics) { - sys2.write(`${s.name}:`.padEnd(nameSize + 2) + statisticValue(s).toString().padStart(valueSize) + sys2.newLine); - } -} -function statisticValue(s) { - switch (s.type) { - case 1 /* count */: - return "" + s.value; - case 0 /* time */: - return (s.value / 1e3).toFixed(2) + "s"; - case 2 /* memory */: - return Math.round(s.value / 1e3) + "K"; - default: - Debug.assertNever(s.type); - } -} -function writeConfigFile(sys2, reportDiagnostic, options, fileNames) { - const currentDirectory = sys2.getCurrentDirectory(); - const file = normalizePath(combinePaths(currentDirectory, "tsconfig.json")); - if (sys2.fileExists(file)) { - reportDiagnostic(createCompilerDiagnostic(Diagnostics.A_tsconfig_json_file_is_already_defined_at_Colon_0, file)); - } else { - sys2.writeFile(file, generateTSConfig(options, fileNames, sys2.newLine)); - const output = [sys2.newLine, ...getHeader(sys2, "Created a new tsconfig.json with:")]; - output.push(getCompilerOptionsDiffValue(options, sys2.newLine) + sys2.newLine + sys2.newLine); - output.push(`You can learn more at https://aka.ms/tsconfig` + sys2.newLine); - for (const line of output) { - sys2.write(line); - } - } - return; -} - -// src/compiler/expressionToTypeNode.ts -function syntacticResult(type, reportFallback = true) { - return { type, reportFallback }; -} -var notImplemented2 = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - false -); -var alreadyReported = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - false -); -var failed = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - true -); -function createSyntacticTypeNodeBuilder(options, resolver) { - const strictNullChecks = getStrictOptionValue(options, "strictNullChecks"); - return { - serializeTypeOfDeclaration, - serializeReturnTypeForSignature, - serializeTypeOfExpression, - serializeTypeOfAccessor, - tryReuseExistingTypeNode(context, existing) { - if (!resolver.canReuseTypeNode(context, existing)) { - return void 0; - } - return tryReuseExistingTypeNode(context, existing); - } - }; - function reuseNode(context, node, range = node) { - return node === void 0 ? void 0 : resolver.markNodeReuse(context, node.flags & 16 /* Synthesized */ ? node : factory.cloneNode(node), range ?? node); - } - function tryReuseExistingTypeNode(context, existing) { - const { finalizeBoundary, startRecoveryScope, hadError, markError } = resolver.createRecoveryBoundary(context); - const transformed = visitNode(existing, visitExistingNodeTreeSymbols, isTypeNode); - if (!finalizeBoundary()) { - return void 0; - } - context.approximateLength += existing.end - existing.pos; - return transformed; - function visitExistingNodeTreeSymbols(node) { - if (hadError()) return node; - const recover = startRecoveryScope(); - const onExitNewScope = isNewScopeNode(node) ? resolver.enterNewScope(context, node) : void 0; - const result = visitExistingNodeTreeSymbolsWorker(node); - onExitNewScope == null ? void 0 : onExitNewScope(); - if (hadError()) { - if (isTypeNode(node) && !isTypePredicateNode(node)) { - recover(); - return resolver.serializeExistingTypeNode(context, node); - } - return node; - } - return result ? resolver.markNodeReuse(context, result, node) : void 0; - } - function tryVisitSimpleTypeNode(node) { - const innerNode = skipTypeParentheses(node); - switch (innerNode.kind) { - case 183 /* TypeReference */: - return tryVisitTypeReference(innerNode); - case 186 /* TypeQuery */: - return tryVisitTypeQuery(innerNode); - case 199 /* IndexedAccessType */: - return tryVisitIndexedAccess(innerNode); - case 198 /* TypeOperator */: - const typeOperatorNode = innerNode; - if (typeOperatorNode.operator === 143 /* KeyOfKeyword */) { - return tryVisitKeyOf(typeOperatorNode); - } - } - return visitNode(node, visitExistingNodeTreeSymbols, isTypeNode); - } - function tryVisitIndexedAccess(node) { - const resultObjectType = tryVisitSimpleTypeNode(node.objectType); - if (resultObjectType === void 0) { - return void 0; - } - return factory.updateIndexedAccessTypeNode(node, resultObjectType, visitNode(node.indexType, visitExistingNodeTreeSymbols, isTypeNode)); - } - function tryVisitKeyOf(node) { - Debug.assertEqual(node.operator, 143 /* KeyOfKeyword */); - const type = tryVisitSimpleTypeNode(node.type); - if (type === void 0) { - return void 0; - } - return factory.updateTypeOperatorNode(node, type); - } - function tryVisitTypeQuery(node) { - const { introducesError, node: exprName } = resolver.trackExistingEntityName(context, node.exprName); - if (!introducesError) { - return factory.updateTypeQueryNode( - node, - exprName, - visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode) - ); - } - const serializedName = resolver.serializeTypeName( - context, - node.exprName, - /*isTypeOf*/ - true - ); - if (serializedName) { - return resolver.markNodeReuse(context, serializedName, node.exprName); - } - } - function tryVisitTypeReference(node) { - if (resolver.canReuseTypeNode(context, node)) { - const { introducesError, node: newName } = resolver.trackExistingEntityName(context, node.typeName); - const typeArguments = visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode); - if (!introducesError) { - const updated = factory.updateTypeReferenceNode( - node, - newName, - typeArguments - ); - return resolver.markNodeReuse(context, updated, node); - } else { - const serializedName = resolver.serializeTypeName( - context, - node.typeName, - /*isTypeOf*/ - false, - typeArguments - ); - if (serializedName) { - return resolver.markNodeReuse(context, serializedName, node.typeName); - } - } - } - } - function visitExistingNodeTreeSymbolsWorker(node) { - var _a; - if (isJSDocTypeExpression(node)) { - return visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode); - } - if (isJSDocAllType(node) || node.kind === 319 /* JSDocNamepathType */) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - if (isJSDocUnknownType(node)) { - return factory.createKeywordTypeNode(159 /* UnknownKeyword */); - } - if (isJSDocNullableType(node)) { - return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createLiteralTypeNode(factory.createNull())]); - } - if (isJSDocOptionalType(node)) { - return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - if (isJSDocNonNullableType(node)) { - return visitNode(node.type, visitExistingNodeTreeSymbols); - } - if (isJSDocVariadicType(node)) { - return factory.createArrayTypeNode(visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); - } - if (isJSDocTypeLiteral(node)) { - return factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (t) => { - const name = visitNode(isIdentifier(t.name) ? t.name : t.name.right, visitExistingNodeTreeSymbols, isIdentifier); - const overrideTypeNode = resolver.getJsDocPropertyOverride(context, node, t); - return factory.createPropertySignature( - /*modifiers*/ - void 0, - name, - t.isBracketed || t.typeExpression && isJSDocOptionalType(t.typeExpression.type) ? factory.createToken(58 /* QuestionToken */) : void 0, - overrideTypeNode || t.typeExpression && visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - })); - } - if (isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "") { - return setOriginalNode(factory.createKeywordTypeNode(133 /* AnyKeyword */), node); - } - if ((isExpressionWithTypeArguments(node) || isTypeReferenceNode(node)) && isJSDocIndexSignature(node)) { - return factory.createTypeLiteralNode([factory.createIndexSignature( - /*modifiers*/ - void 0, - [factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "x", - /*questionToken*/ - void 0, - visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols, isTypeNode) - )], - visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols, isTypeNode) - )]); - } - if (isJSDocFunctionType(node)) { - if (isJSDocConstructSignature(node)) { - let newTypeNode; - return factory.createConstructorTypeNode( - /*modifiers*/ - void 0, - visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), - mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === "new" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration( - /*modifiers*/ - void 0, - getEffectiveDotDotDotForParameter(p), - resolver.markNodeReuse(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), - factory.cloneNode(p.questionToken), - visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), - /*initializer*/ - void 0 - )), - visitNode(newTypeNode || node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - } else { - return factory.createFunctionTypeNode( - visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), - map(node.parameters, (p, i) => factory.createParameterDeclaration( - /*modifiers*/ - void 0, - getEffectiveDotDotDotForParameter(p), - resolver.markNodeReuse(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), - factory.cloneNode(p.questionToken), - visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), - /*initializer*/ - void 0 - )), - visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - } - } - if (isThisTypeNode(node)) { - if (resolver.canReuseTypeNode(context, node)) { - return node; - } - markError(); - return node; - } - if (isTypeParameterDeclaration(node)) { - const { node: newName } = resolver.trackExistingEntityName(context, node.name); - return factory.updateTypeParameterDeclaration( - node, - visitNodes2(node.modifiers, visitExistingNodeTreeSymbols, isModifier), - // resolver.markNodeReuse(context, typeParameterToName(getDeclaredTypeOfSymbol(getSymbolOfDeclaration(node)), context), node), - newName, - visitNode(node.constraint, visitExistingNodeTreeSymbols, isTypeNode), - visitNode(node.default, visitExistingNodeTreeSymbols, isTypeNode) - ); - } - if (isIndexedAccessTypeNode(node)) { - const result = tryVisitIndexedAccess(node); - if (!result) { - markError(); - return node; - } - return result; - } - if (isTypeReferenceNode(node)) { - const result = tryVisitTypeReference(node); - if (result) { - return result; - } - markError(); - return node; - } - if (isLiteralImportTypeNode(node)) { - if (((_a = node.attributes) == null ? void 0 : _a.token) === 132 /* AssertKeyword */) { - markError(); - return node; - } - if (!resolver.canReuseTypeNode(context, node)) { - return resolver.serializeExistingTypeNode(context, node); - } - const specifier = rewriteModuleSpecifier2(node, node.argument.literal); - const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier; - return factory.updateImportTypeNode( - node, - literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal), - visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes), - visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName), - visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode), - node.isTypeOf - ); - } - if (isNamedDeclaration(node) && node.name.kind === 167 /* ComputedPropertyName */ && !resolver.hasLateBindableName(node)) { - if (!hasDynamicName(node)) { - return visitEachChild2(node, visitExistingNodeTreeSymbols); - } - if (resolver.shouldRemoveDeclaration(context, node)) { - return void 0; - } - } - if (isFunctionLike(node) && !node.type || isPropertyDeclaration(node) && !node.type && !node.initializer || isPropertySignature(node) && !node.type && !node.initializer || isParameter(node) && !node.type && !node.initializer) { - let visited = visitEachChild2(node, visitExistingNodeTreeSymbols); - if (visited === node) { - visited = resolver.markNodeReuse(context, factory.cloneNode(node), node); - } - visited.type = factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (isParameter(node)) { - visited.modifiers = void 0; - } - return visited; - } - if (isTypeQueryNode(node)) { - const result = tryVisitTypeQuery(node); - if (!result) { - markError(); - return node; - } - return result; - } - if (isComputedPropertyName(node) && isEntityNameExpression(node.expression)) { - const { node: result, introducesError } = resolver.trackExistingEntityName(context, node.expression); - if (!introducesError) { - return factory.updateComputedPropertyName(node, result); - } else { - const computedPropertyNameType = resolver.serializeTypeOfExpression(context, node.expression); - let literal; - if (isLiteralTypeNode(computedPropertyNameType)) { - literal = computedPropertyNameType.literal; - } else { - const evaluated = resolver.evaluateEntityNameExpression(node.expression); - const literalNode = typeof evaluated.value === "string" ? factory.createStringLiteral( - evaluated.value, - /*isSingleQuote*/ - void 0 - ) : typeof evaluated.value === "number" ? factory.createNumericLiteral( - evaluated.value, - /*numericLiteralFlags*/ - 0 - ) : void 0; - if (!literalNode) { - if (isImportTypeNode(computedPropertyNameType)) { - resolver.trackComputedName(context, node.expression); - } - return node; - } - literal = literalNode; - } - if (literal.kind === 11 /* StringLiteral */ && isIdentifierText(literal.text, getEmitScriptTarget(options))) { - return factory.createIdentifier(literal.text); - } - if (literal.kind === 9 /* NumericLiteral */ && !literal.text.startsWith("-")) { - return literal; - } - return factory.updateComputedPropertyName(node, literal); - } - } - if (isTypePredicateNode(node)) { - let parameterName; - if (isIdentifier(node.parameterName)) { - const { node: result, introducesError } = resolver.trackExistingEntityName(context, node.parameterName); - if (introducesError) markError(); - parameterName = result; - } else { - parameterName = factory.cloneNode(node.parameterName); - } - return factory.updateTypePredicateNode(node, factory.cloneNode(node.assertsModifier), parameterName, visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); - } - if (isTupleTypeNode(node) || isTypeLiteralNode(node) || isMappedTypeNode(node)) { - const visited = visitEachChild2(node, visitExistingNodeTreeSymbols); - const clone = resolver.markNodeReuse(context, visited === node ? factory.cloneNode(node) : visited, node); - const flags = getEmitFlags(clone); - setEmitFlags(clone, flags | (context.flags & 1024 /* MultilineObjectLiterals */ && isTypeLiteralNode(node) ? 0 : 1 /* SingleLine */)); - return clone; - } - if (isStringLiteral(node) && !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */) && !node.singleQuote) { - const clone = factory.cloneNode(node); - clone.singleQuote = true; - return clone; - } - if (isConditionalTypeNode(node)) { - const checkType = visitNode(node.checkType, visitExistingNodeTreeSymbols, isTypeNode); - const disposeScope = resolver.enterNewScope(context, node); - const extendType = visitNode(node.extendsType, visitExistingNodeTreeSymbols, isTypeNode); - const trueType = visitNode(node.trueType, visitExistingNodeTreeSymbols, isTypeNode); - disposeScope(); - const falseType = visitNode(node.falseType, visitExistingNodeTreeSymbols, isTypeNode); - return factory.updateConditionalTypeNode( - node, - checkType, - extendType, - trueType, - falseType - ); - } - if (isTypeOperatorNode(node)) { - if (node.operator === 158 /* UniqueKeyword */ && node.type.kind === 155 /* SymbolKeyword */) { - if (!resolver.canReuseTypeNode(context, node)) { - markError(); - return node; - } - } else if (node.operator === 143 /* KeyOfKeyword */) { - const result = tryVisitKeyOf(node); - if (!result) { - markError(); - return node; - } - return result; - } - } - return visitEachChild2(node, visitExistingNodeTreeSymbols); - function visitEachChild2(node2, visitor) { - const nonlocalNode = !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(node2); - return visitEachChild( - node2, - visitor, - /*context*/ - void 0, - nonlocalNode ? visitNodesWithoutCopyingPositions : void 0 - ); - } - function visitNodesWithoutCopyingPositions(nodes, visitor, test, start, count) { - let result = visitNodes2(nodes, visitor, test, start, count); - if (result) { - if (result.pos !== -1 || result.end !== -1) { - if (result === nodes) { - result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma); - } - setTextRangePosEnd(result, -1, -1); - } - } - return result; - } - function getEffectiveDotDotDotForParameter(p) { - return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(26 /* DotDotDotToken */) : void 0); - } - function getNameForJSDocFunctionParameter(p, index) { - return p.name && isIdentifier(p.name) && p.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`; - } - function rewriteModuleSpecifier2(parent, lit) { - const newName = resolver.getModuleSpecifierOverride(context, parent, lit); - return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit; - } - } - } - function serializeExistingTypeNode(typeNode, context, addUndefined) { - if (!typeNode) return void 0; - let result; - if ((!addUndefined || canAddUndefined(typeNode)) && resolver.canReuseTypeNode(context, typeNode)) { - result = tryReuseExistingTypeNode(context, typeNode); - if (result !== void 0) { - result = addUndefinedIfNeeded( - result, - addUndefined, - /*owner*/ - void 0, - context - ); - } - } - return result; - } - function serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, requiresAddingUndefined, useFallback = requiresAddingUndefined !== void 0) { - if (!declaredType) return void 0; - if (!resolver.canReuseTypeNodeAnnotation(context, node, declaredType, symbol, requiresAddingUndefined)) { - if (!requiresAddingUndefined || !resolver.canReuseTypeNodeAnnotation( - context, - node, - declaredType, - symbol, - /*requiresAddingUndefined*/ - false - )) { - return void 0; - } - } - let result; - if (!requiresAddingUndefined || canAddUndefined(declaredType)) { - result = serializeExistingTypeNode(declaredType, context, requiresAddingUndefined); - } - if (result !== void 0 || !useFallback) { - return result; - } - context.tracker.reportInferenceFallback(node); - return resolver.serializeExistingTypeNode(context, declaredType, requiresAddingUndefined) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function serializeExistingTypeNodeWithFallback(typeNode, context, addUndefined, targetNode) { - if (!typeNode) return void 0; - const result = serializeExistingTypeNode(typeNode, context, addUndefined); - if (result !== void 0) { - return result; - } - context.tracker.reportInferenceFallback(targetNode ?? typeNode); - return resolver.serializeExistingTypeNode(context, typeNode, addUndefined) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function serializeTypeOfAccessor(accessor, symbol, context) { - return typeFromAccessor(accessor, symbol, context) ?? inferAccessorType(accessor, resolver.getAllAccessorDeclarations(accessor), context, symbol); - } - function serializeTypeOfExpression(expr, context, addUndefined, preserveLiterals) { - const result = typeFromExpression( - expr, - context, - /*isConstContext*/ - false, - addUndefined, - preserveLiterals - ); - return result.type !== void 0 ? result.type : inferExpressionType(expr, context, result.reportFallback); - } - function serializeTypeOfDeclaration(node, symbol, context) { - switch (node.kind) { - case 169 /* Parameter */: - case 341 /* JSDocParameterTag */: - return typeFromParameter(node, symbol, context); - case 260 /* VariableDeclaration */: - return typeFromVariable(node, symbol, context); - case 171 /* PropertySignature */: - case 348 /* JSDocPropertyTag */: - case 172 /* PropertyDeclaration */: - return typeFromProperty(node, symbol, context); - case 208 /* BindingElement */: - return inferTypeOfDeclaration(node, symbol, context); - case 277 /* ExportAssignment */: - return serializeTypeOfExpression( - node.expression, - context, - /*addUndefined*/ - void 0, - /*preserveLiterals*/ - true - ); - case 211 /* PropertyAccessExpression */: - case 212 /* ElementAccessExpression */: - case 226 /* BinaryExpression */: - return typeFromExpandoProperty(node, symbol, context); - case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - return typeFromPropertyAssignment(node, symbol, context); - default: - Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); - } - } - function typeFromPropertyAssignment(node, symbol, context) { - const typeAnnotation = getEffectiveTypeAnnotationNode(node); - let result; - if (typeAnnotation && resolver.canReuseTypeNodeAnnotation(context, node, typeAnnotation, symbol)) { - result = serializeExistingTypeNode(typeAnnotation, context); - } - if (!result && node.kind === 303 /* PropertyAssignment */) { - const initializer = node.initializer; - const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 /* AsExpression */ || initializer.kind === 216 /* TypeAssertionExpression */ ? initializer.type : void 0; - if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) { - result = serializeExistingTypeNode(assertionNode, context); - } - } - return result ?? inferTypeOfDeclaration( - node, - symbol, - context, - /*reportFallback*/ - false - ); - } - function serializeReturnTypeForSignature(node, symbol, context) { - switch (node.kind) { - case 177 /* GetAccessor */: - return serializeTypeOfAccessor(node, symbol, context); - case 174 /* MethodDeclaration */: - case 262 /* FunctionDeclaration */: - case 180 /* ConstructSignature */: - case 173 /* MethodSignature */: - case 179 /* CallSignature */: - case 176 /* Constructor */: - case 178 /* SetAccessor */: - case 181 /* IndexSignature */: - case 184 /* FunctionType */: - case 185 /* ConstructorType */: - case 218 /* FunctionExpression */: - case 219 /* ArrowFunction */: - case 317 /* JSDocFunctionType */: - case 323 /* JSDocSignature */: - return createReturnFromSignature(node, symbol, context); - default: - Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); - } - } - function getTypeAnnotationFromAccessor(accessor) { - if (accessor) { - return accessor.kind === 177 /* GetAccessor */ ? isInJSFile(accessor) && getJSDocType(accessor) || getEffectiveReturnTypeNode(accessor) : getEffectiveSetAccessorTypeAnnotationNode(accessor); - } - } - function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) { - let accessorType = getTypeAnnotationFromAccessor(node); - if (!accessorType && node !== accessors.firstAccessor) { - accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor); - } - if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) { - accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor); - } - return accessorType; - } - function typeFromAccessor(node, symbol, context) { - const accessorDeclarations = resolver.getAllAccessorDeclarations(node); - const accessorType = getTypeAnnotationFromAllAccessorDeclarations(node, accessorDeclarations); - if (accessorType && !isTypePredicateNode(accessorType)) { - return withNewScope(context, node, () => serializeTypeAnnotationOfDeclaration(accessorType, context, node, symbol) ?? inferTypeOfDeclaration(node, symbol, context)); - } - if (accessorDeclarations.getAccessor) { - return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(accessorDeclarations.getAccessor, symbol, context)); - } - return void 0; - } - function typeFromVariable(node, symbol, context) { - var _a; - const declaredType = getEffectiveTypeAnnotationNode(node); - let resultType = failed; - if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol)); - } else if (node.initializer && (((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 || countWhere(symbol.declarations, isVariableDeclaration) === 1)) { - if (!resolver.isExpandoFunctionDeclaration(node) && !isContextuallyTyped(node)) { - resultType = typeFromExpression( - node.initializer, - context, - /*isConstContext*/ - void 0, - /*requiresAddingUndefined*/ - void 0, - isVarConstLike(node) - ); - } - } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); - } - function typeFromParameter(node, symbol, context) { - const parent = node.parent; - if (parent.kind === 178 /* SetAccessor */) { - return serializeTypeOfAccessor( - parent, - /*symbol*/ - void 0, - context - ); - } - const declaredType = getEffectiveTypeAnnotationNode(node); - const addUndefined = resolver.requiresAddingImplicitUndefined(node, symbol, context.enclosingDeclaration); - let resultType = failed; - if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, addUndefined)); - } else if (isParameter(node) && node.initializer && isIdentifier(node.name) && !isContextuallyTyped(node)) { - resultType = typeFromExpression( - node.initializer, - context, - /*isConstContext*/ - void 0, - addUndefined - ); - } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); - } - function typeFromExpandoProperty(node, symbol, context) { - const declaredType = getEffectiveTypeAnnotationNode(node); - let result; - if (declaredType) { - result = serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol); - } - const oldSuppressReportInferenceFallback = context.suppressReportInferenceFallback; - context.suppressReportInferenceFallback = true; - const resultType = result ?? inferTypeOfDeclaration( - node, - symbol, - context, - /*reportFallback*/ - false - ); - context.suppressReportInferenceFallback = oldSuppressReportInferenceFallback; - return resultType; - } - function typeFromProperty(node, symbol, context) { - const declaredType = getEffectiveTypeAnnotationNode(node); - const requiresAddingUndefined = resolver.requiresAddingImplicitUndefined(node, symbol, context.enclosingDeclaration); - let resultType = failed; - if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, requiresAddingUndefined)); - } else { - const initializer = isPropertyDeclaration(node) ? node.initializer : void 0; - if (initializer && !isContextuallyTyped(node)) { - const isReadonly = isDeclarationReadonly(node); - resultType = typeFromExpression( - initializer, - context, - /*isConstContext*/ - void 0, - requiresAddingUndefined, - isReadonly - ); - } - } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); - } - function inferTypeOfDeclaration(node, symbol, context, reportFallback = true) { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - return resolver.serializeTypeOfDeclaration(context, node, symbol); - } - function inferExpressionType(node, context, reportFallback = true, requiresAddingUndefined) { - Debug.assert(!requiresAddingUndefined); - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - return resolver.serializeTypeOfExpression(context, node) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function inferReturnTypeOfSignatureSignature(node, context, symbol, reportFallback) { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - return resolver.serializeReturnTypeForSignature(context, node, symbol) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function inferAccessorType(node, allAccessors, context, symbol, reportFallback = true) { - if (node.kind === 177 /* GetAccessor */) { - return createReturnFromSignature(node, symbol, context, reportFallback); - } else { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - const result = allAccessors.getAccessor && createReturnFromSignature(allAccessors.getAccessor, symbol, context, reportFallback); - return result ?? resolver.serializeTypeOfDeclaration(context, node, symbol) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - } - function withNewScope(context, node, fn) { - const cleanup = resolver.enterNewScope(context, node); - const result = fn(); - cleanup(); - return result; - } - function typeFromTypeAssertion(expression, type, context, requiresAddingUndefined) { - if (isConstTypeReference(type)) { - return typeFromExpression( - expression, - context, - /*isConstContext*/ - true, - requiresAddingUndefined - ); - } - return syntacticResult(serializeExistingTypeNodeWithFallback(type, context, requiresAddingUndefined)); - } - function typeFromExpression(node, context, isConstContext = false, requiresAddingUndefined = false, preserveLiterals = false) { - switch (node.kind) { - case 217 /* ParenthesizedExpression */: - if (isJSDocTypeAssertion(node)) { - return typeFromTypeAssertion(node.expression, getJSDocTypeAssertionType(node), context, requiresAddingUndefined); - } - return typeFromExpression(node.expression, context, isConstContext, requiresAddingUndefined); - case 80 /* Identifier */: - if (resolver.isUndefinedIdentifierExpression(node)) { - return syntacticResult(createUndefinedTypeNode()); - } - break; - case 106 /* NullKeyword */: - if (strictNullChecks) { - return syntacticResult(addUndefinedIfNeeded(factory.createLiteralTypeNode(factory.createNull()), requiresAddingUndefined, node, context)); - } else { - return syntacticResult(factory.createKeywordTypeNode(133 /* AnyKeyword */)); - } - case 219 /* ArrowFunction */: - case 218 /* FunctionExpression */: - Debug.type(node); - return withNewScope(context, node, () => typeFromFunctionLikeExpression(node, context)); - case 216 /* TypeAssertionExpression */: - case 234 /* AsExpression */: - const asExpression = node; - return typeFromTypeAssertion(asExpression.expression, asExpression.type, context, requiresAddingUndefined); - case 224 /* PrefixUnaryExpression */: - const unaryExpression = node; - if (isPrimitiveLiteralValue(unaryExpression)) { - return typeFromPrimitiveLiteral( - unaryExpression.operator === 40 /* PlusToken */ ? unaryExpression.operand : unaryExpression, - unaryExpression.operand.kind === 10 /* BigIntLiteral */ ? 163 /* BigIntKeyword */ : 150 /* NumberKeyword */, - context, - isConstContext || preserveLiterals, - requiresAddingUndefined - ); - } - break; - case 209 /* ArrayLiteralExpression */: - return typeFromArrayLiteral(node, context, isConstContext, requiresAddingUndefined); - case 210 /* ObjectLiteralExpression */: - return typeFromObjectLiteral(node, context, isConstContext, requiresAddingUndefined); - case 231 /* ClassExpression */: - return syntacticResult(inferExpressionType( - node, - context, - /*reportFallback*/ - true, - requiresAddingUndefined - )); - case 228 /* TemplateExpression */: - if (!isConstContext && !preserveLiterals) { - return syntacticResult(factory.createKeywordTypeNode(154 /* StringKeyword */)); - } - break; - default: - let typeKind; - let primitiveNode = node; - switch (node.kind) { - case 9 /* NumericLiteral */: - typeKind = 150 /* NumberKeyword */; - break; - case 15 /* NoSubstitutionTemplateLiteral */: - primitiveNode = factory.createStringLiteral(node.text); - typeKind = 154 /* StringKeyword */; - break; - case 11 /* StringLiteral */: - typeKind = 154 /* StringKeyword */; - break; - case 10 /* BigIntLiteral */: - typeKind = 163 /* BigIntKeyword */; - break; - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - typeKind = 136 /* BooleanKeyword */; - break; - } - if (typeKind) { - return typeFromPrimitiveLiteral(primitiveNode, typeKind, context, isConstContext || preserveLiterals, requiresAddingUndefined); - } - } - return failed; - } - function typeFromFunctionLikeExpression(fnNode, context) { - const returnType = createReturnFromSignature( - fnNode, - /*symbol*/ - void 0, - context - ); - const typeParameters = reuseTypeParameters(fnNode.typeParameters, context); - const parameters = fnNode.parameters.map((p) => ensureParameter(p, context)); - return syntacticResult( - factory.createFunctionTypeNode( - typeParameters, - parameters, - returnType - ) - ); - } - function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) { - if (!isConstContext) { - context.tracker.reportInferenceFallback(arrayLiteral); - return false; - } - for (const element of arrayLiteral.elements) { - if (element.kind === 230 /* SpreadElement */) { - context.tracker.reportInferenceFallback(element); - return false; - } - } - return true; - } - function typeFromArrayLiteral(arrayLiteral, context, isConstContext, requiresAddingUndefined) { - if (!canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext)) { - if (requiresAddingUndefined || isDeclaration(walkUpParenthesizedExpressions(arrayLiteral).parent)) { - return alreadyReported; - } - return syntacticResult(inferExpressionType( - arrayLiteral, - context, - /*reportFallback*/ - false, - requiresAddingUndefined - )); - } - const oldNoInferenceFallback = context.noInferenceFallback; - context.noInferenceFallback = true; - const elementTypesInfo = []; - for (const element of arrayLiteral.elements) { - Debug.assert(element.kind !== 230 /* SpreadElement */); - if (element.kind === 232 /* OmittedExpression */) { - elementTypesInfo.push( - createUndefinedTypeNode() - ); - } else { - const expressionType = typeFromExpression(element, context, isConstContext); - const elementType = expressionType.type !== void 0 ? expressionType.type : inferExpressionType(element, context, expressionType.reportFallback); - elementTypesInfo.push(elementType); - } - } - const tupleType = factory.createTupleTypeNode(elementTypesInfo); - tupleType.emitNode = { flags: 1, autoGenerate: void 0, internalFlags: 0 }; - context.noInferenceFallback = oldNoInferenceFallback; - return notImplemented2; - } - function canGetTypeFromObjectLiteral(objectLiteral, context) { - let result = true; - for (const prop of objectLiteral.properties) { - if (prop.flags & 262144 /* ThisNodeHasError */) { - result = false; - break; - } - if (prop.kind === 304 /* ShorthandPropertyAssignment */ || prop.kind === 305 /* SpreadAssignment */) { - context.tracker.reportInferenceFallback(prop); - result = false; - } else if (prop.name.flags & 262144 /* ThisNodeHasError */) { - result = false; - break; - } else if (prop.name.kind === 81 /* PrivateIdentifier */) { - result = false; - } else if (prop.name.kind === 167 /* ComputedPropertyName */) { - const expression = prop.name.expression; - if (!isPrimitiveLiteralValue( - expression, - /*includeBigInt*/ - false - ) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) { - context.tracker.reportInferenceFallback(prop.name); - result = false; - } - } - } - return result; - } - function typeFromObjectLiteral(objectLiteral, context, isConstContext, requiresAddingUndefined) { - if (!canGetTypeFromObjectLiteral(objectLiteral, context)) { - if (requiresAddingUndefined || isDeclaration(walkUpParenthesizedExpressions(objectLiteral).parent)) { - return alreadyReported; - } - return syntacticResult(inferExpressionType( - objectLiteral, - context, - /*reportFallback*/ - false, - requiresAddingUndefined - )); - } - const oldNoInferenceFallback = context.noInferenceFallback; - context.noInferenceFallback = true; - const properties = []; - const oldFlags = context.flags; - context.flags |= 4194304 /* InObjectTypeLiteral */; - for (const prop of objectLiteral.properties) { - Debug.assert(!isShorthandPropertyAssignment(prop) && !isSpreadAssignment(prop)); - const name = prop.name; - let newProp; - switch (prop.kind) { - case 174 /* MethodDeclaration */: - newProp = withNewScope(context, prop, () => typeFromObjectLiteralMethod(prop, name, context, isConstContext)); - break; - case 303 /* PropertyAssignment */: - newProp = typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext); - break; - case 178 /* SetAccessor */: - case 177 /* GetAccessor */: - newProp = typeFromObjectLiteralAccessor(prop, name, context); - break; - } - if (newProp) { - setCommentRange(newProp, prop); - properties.push(newProp); - } - } - context.flags = oldFlags; - const typeNode = factory.createTypeLiteralNode(properties); - if (!(context.flags & 1024 /* MultilineObjectLiterals */)) { - setEmitFlags(typeNode, 1 /* SingleLine */); - } - context.noInferenceFallback = oldNoInferenceFallback; - return notImplemented2; - } - function typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext) { - const modifiers = isConstContext ? [factory.createModifier(148 /* ReadonlyKeyword */)] : []; - const expressionResult = typeFromExpression(prop.initializer, context, isConstContext); - const typeNode = expressionResult.type !== void 0 ? expressionResult.type : inferTypeOfDeclaration( - prop, - /*symbol*/ - void 0, - context, - expressionResult.reportFallback - ); - return factory.createPropertySignature( - modifiers, - reuseNode(context, name), - /*questionToken*/ - void 0, - typeNode - ); - } - function ensureParameter(p, context) { - return factory.updateParameterDeclaration( - p, - [], - reuseNode(context, p.dotDotDotToken), - resolver.serializeNameOfParameter(context, p), - resolver.isOptionalParameter(p) ? factory.createToken(58 /* QuestionToken */) : void 0, - typeFromParameter( - p, - /*symbol*/ - void 0, - context - ), - // Ignore private param props, since this type is going straight back into a param - /*initializer*/ - void 0 - ); - } - function reuseTypeParameters(typeParameters, context) { - return typeParameters == null ? void 0 : typeParameters.map((tp) => { - var _a; - const { node: tpName } = resolver.trackExistingEntityName(context, tp.name); - return factory.updateTypeParameterDeclaration( - tp, - (_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)), - tpName, - serializeExistingTypeNodeWithFallback(tp.constraint, context), - serializeExistingTypeNodeWithFallback(tp.default, context) - ); - }); - } - function typeFromObjectLiteralMethod(method, name, context, isConstContext) { - const returnType = createReturnFromSignature( - method, - /*symbol*/ - void 0, - context - ); - const typeParameters = reuseTypeParameters(method.typeParameters, context); - const parameters = method.parameters.map((p) => ensureParameter(p, context)); - if (isConstContext) { - return factory.createPropertySignature( - [factory.createModifier(148 /* ReadonlyKeyword */)], - reuseNode(context, name), - reuseNode(context, method.questionToken), - factory.createFunctionTypeNode( - typeParameters, - parameters, - returnType - ) - ); - } else { - if (isIdentifier(name) && name.escapedText === "new") { - name = factory.createStringLiteral("new"); - } - return factory.createMethodSignature( - [], - reuseNode(context, name), - reuseNode(context, method.questionToken), - typeParameters, - parameters, - returnType - ); - } - } - function typeFromObjectLiteralAccessor(accessor, name, context) { - const allAccessors = resolver.getAllAccessorDeclarations(accessor); - const getAccessorType = allAccessors.getAccessor && getTypeAnnotationFromAccessor(allAccessors.getAccessor); - const setAccessorType = allAccessors.setAccessor && getTypeAnnotationFromAccessor(allAccessors.setAccessor); - if (getAccessorType !== void 0 && setAccessorType !== void 0) { - return withNewScope(context, accessor, () => { - const parameters = accessor.parameters.map((p) => ensureParameter(p, context)); - if (isGetAccessor(accessor)) { - return factory.updateGetAccessorDeclaration( - accessor, - [], - reuseNode(context, name), - parameters, - serializeExistingTypeNodeWithFallback(getAccessorType, context), - /*body*/ - void 0 - ); - } else { - return factory.updateSetAccessorDeclaration( - accessor, - [], - reuseNode(context, name), - parameters, - /*body*/ - void 0 - ); - } - }); - } else if (allAccessors.firstAccessor === accessor) { - const foundType = getAccessorType ? withNewScope(context, allAccessors.getAccessor, () => serializeExistingTypeNodeWithFallback(getAccessorType, context)) : setAccessorType ? withNewScope(context, allAccessors.setAccessor, () => serializeExistingTypeNodeWithFallback(setAccessorType, context)) : void 0; - const propertyType = foundType ?? inferAccessorType( - accessor, - allAccessors, - context, - /*symbol*/ - void 0 - ); - const propertySignature = factory.createPropertySignature( - allAccessors.setAccessor === void 0 ? [factory.createModifier(148 /* ReadonlyKeyword */)] : [], - reuseNode(context, name), - /*questionToken*/ - void 0, - propertyType - ); - return propertySignature; - } - } - function createUndefinedTypeNode() { - if (strictNullChecks) { - return factory.createKeywordTypeNode(157 /* UndefinedKeyword */); - } else { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - } - function typeFromPrimitiveLiteral(node, baseType, context, preserveLiterals, requiresAddingUndefined) { - let result; - if (preserveLiterals) { - if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 40 /* PlusToken */) { - result = factory.createLiteralTypeNode(reuseNode(context, node.operand)); - } - result = factory.createLiteralTypeNode(reuseNode(context, node)); - } else { - result = factory.createKeywordTypeNode(baseType); - } - return syntacticResult(addUndefinedIfNeeded(result, requiresAddingUndefined, node, context)); - } - function addUndefinedIfNeeded(node, addUndefined, owner, context) { - const parentDeclaration = owner && walkUpParenthesizedExpressions(owner).parent; - const optionalDeclaration = parentDeclaration && isDeclaration(parentDeclaration) && isOptionalDeclaration(parentDeclaration); - if (!strictNullChecks || !(addUndefined || optionalDeclaration)) return node; - if (!canAddUndefined(node)) { - context.tracker.reportInferenceFallback(node); - } - if (isUnionTypeNode(node)) { - return factory.createUnionTypeNode([...node.types, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - return factory.createUnionTypeNode([node, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - function canAddUndefined(node) { - if (!strictNullChecks) return true; - if (isKeyword(node.kind) || node.kind === 201 /* LiteralType */ || node.kind === 184 /* FunctionType */ || node.kind === 185 /* ConstructorType */ || node.kind === 188 /* ArrayType */ || node.kind === 189 /* TupleType */ || node.kind === 187 /* TypeLiteral */ || node.kind === 203 /* TemplateLiteralType */ || node.kind === 197 /* ThisType */) { - return true; - } - if (node.kind === 196 /* ParenthesizedType */) { - return canAddUndefined(node.type); - } - if (node.kind === 192 /* UnionType */ || node.kind === 193 /* IntersectionType */) { - return node.types.every(canAddUndefined); - } - return false; - } - function createReturnFromSignature(fn, symbol, context, reportFallback = true) { - let returnType = failed; - const returnTypeNode = isJSDocConstructSignature(fn) ? getEffectiveTypeAnnotationNode(fn.parameters[0]) : getEffectiveReturnTypeNode(fn); - if (returnTypeNode) { - returnType = syntacticResult(serializeTypeAnnotationOfDeclaration(returnTypeNode, context, fn, symbol)); - } else if (isValueSignatureDeclaration(fn)) { - returnType = typeFromSingleReturnExpression(fn, context); - } - return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, symbol, reportFallback && returnType.reportFallback && !returnTypeNode); - } - function typeFromSingleReturnExpression(declaration, context) { - let candidateExpr; - if (declaration && !nodeIsMissing(declaration.body)) { - const flags = getFunctionFlags(declaration); - if (flags & 3 /* AsyncGenerator */) return failed; - const body = declaration.body; - if (body && isBlock(body)) { - forEachReturnStatement(body, (s) => { - if (s.parent !== body) { - candidateExpr = void 0; - return true; - } - if (!candidateExpr) { - candidateExpr = s.expression; - } else { - candidateExpr = void 0; - return true; - } - }); - } else { - candidateExpr = body; - } - } - if (candidateExpr) { - if (isContextuallyTyped(candidateExpr)) { - const type = isJSDocTypeAssertion(candidateExpr) ? getJSDocTypeAssertionType(candidateExpr) : isAsExpression(candidateExpr) || isTypeAssertionExpression(candidateExpr) ? candidateExpr.type : void 0; - if (type && !isConstTypeReference(type)) { - return syntacticResult(serializeExistingTypeNode(type, context)); - } - } else { - return typeFromExpression(candidateExpr, context); - } - } - return failed; - } - function isContextuallyTyped(node) { - return findAncestor(node.parent, (n) => { - return isCallExpression(n) || !isFunctionLikeDeclaration(n) && !!getEffectiveTypeAnnotationNode(n) || isJsxElement(n) || isJsxExpression(n); - }); - } -} - -// src/tsc/tsc.ts -Debug.loggingHost = { - log(_level, s) { - sys.write(`${s || ""}${sys.newLine}`); - } -}; -if (Debug.isDebugging) { - Debug.enableDebugInfo(); -} -if (sys.tryEnableSourceMapsForHost && /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV"))) { - sys.tryEnableSourceMapsForHost(); -} -if (sys.setBlocking) { - sys.setBlocking(); -} -executeCommandLine(sys, noop, sys.args); -//# sourceMappingURL=_tsc.js.map diff --git a/node_modules/typescript/lib/_tsserver.js b/node_modules/typescript/lib/_tsserver.js deleted file mode 100644 index 39115c7fd..000000000 --- a/node_modules/typescript/lib/_tsserver.js +++ /dev/null @@ -1,659 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/tsserver/server.ts -var import_os2 = __toESM(require("os")); - -// src/typescript/typescript.ts -var typescript_exports = {}; -__reExport(typescript_exports, require("./typescript.js")); - -// src/tsserver/nodeServer.ts -var import_child_process = __toESM(require("child_process")); -var import_fs = __toESM(require("fs")); -var import_net = __toESM(require("net")); -var import_os = __toESM(require("os")); -var import_readline = __toESM(require("readline")); - -// src/tsserver/common.ts -function getLogLevel(level) { - if (level) { - const l = level.toLowerCase(); - for (const name in typescript_exports.server.LogLevel) { - if (isNaN(+name) && l === name.toLowerCase()) { - return typescript_exports.server.LogLevel[name]; - } - } - } - return void 0; -} - -// src/tsserver/nodeServer.ts -function parseLoggingEnvironmentString(logEnvStr) { - if (!logEnvStr) { - return {}; - } - const logEnv = { logToFile: true }; - const args = logEnvStr.split(" "); - const len = args.length - 1; - for (let i = 0; i < len; i += 2) { - const option = args[i]; - const { value, extraPartCounter } = getEntireValue(i + 1); - i += extraPartCounter; - if (option && value) { - switch (option) { - case "-file": - logEnv.file = value; - break; - case "-level": - const level = getLogLevel(value); - logEnv.detailLevel = level !== void 0 ? level : typescript_exports.server.LogLevel.normal; - break; - case "-traceToConsole": - logEnv.traceToConsole = value.toLowerCase() === "true"; - break; - case "-logToFile": - logEnv.logToFile = value.toLowerCase() === "true"; - break; - } - } - } - return logEnv; - function getEntireValue(initialIndex) { - let pathStart = args[initialIndex]; - let extraPartCounter = 0; - if (pathStart.charCodeAt(0) === typescript_exports.CharacterCodes.doubleQuote && pathStart.charCodeAt(pathStart.length - 1) !== typescript_exports.CharacterCodes.doubleQuote) { - for (let i = initialIndex + 1; i < args.length; i++) { - pathStart += " "; - pathStart += args[i]; - extraPartCounter++; - if (pathStart.charCodeAt(pathStart.length - 1) === typescript_exports.CharacterCodes.doubleQuote) break; - } - } - return { value: (0, typescript_exports.stripQuotes)(pathStart), extraPartCounter }; - } -} -function parseServerMode() { - const mode = typescript_exports.server.findArgument("--serverMode"); - if (!mode) return void 0; - switch (mode.toLowerCase()) { - case "semantic": - return typescript_exports.LanguageServiceMode.Semantic; - case "partialsemantic": - return typescript_exports.LanguageServiceMode.PartialSemantic; - case "syntactic": - return typescript_exports.LanguageServiceMode.Syntactic; - default: - return mode; - } -} -function initializeNodeSystem() { - const sys4 = typescript_exports.Debug.checkDefined(typescript_exports.sys); - class Logger { - constructor(logFilename, traceToConsole, level) { - this.logFilename = logFilename; - this.traceToConsole = traceToConsole; - this.level = level; - this.seq = 0; - this.inGroup = false; - this.firstInGroup = true; - this.fd = -1; - if (this.logFilename) { - try { - this.fd = import_fs.default.openSync(this.logFilename, "w"); - } catch { - } - } - } - static padStringRight(str, padding) { - return (str + padding).slice(0, padding.length); - } - close() { - if (this.fd >= 0) { - import_fs.default.close(this.fd, typescript_exports.noop); - } - } - getLogFileName() { - return this.logFilename; - } - perftrc(s) { - this.msg(s, typescript_exports.server.Msg.Perf); - } - info(s) { - this.msg(s, typescript_exports.server.Msg.Info); - } - err(s) { - this.msg(s, typescript_exports.server.Msg.Err); - } - startGroup() { - this.inGroup = true; - this.firstInGroup = true; - } - endGroup() { - this.inGroup = false; - } - loggingEnabled() { - return !!this.logFilename || this.traceToConsole; - } - hasLevel(level) { - return this.loggingEnabled() && this.level >= level; - } - msg(s, type = typescript_exports.server.Msg.Err) { - if (!this.canWrite()) return; - s = `[${typescript_exports.server.nowString()}] ${s} -`; - if (!this.inGroup || this.firstInGroup) { - const prefix = Logger.padStringRight(type + " " + this.seq.toString(), " "); - s = prefix + s; - } - this.write(s, type); - if (!this.inGroup) { - this.seq++; - } - } - canWrite() { - return this.fd >= 0 || this.traceToConsole; - } - write(s, _type) { - if (this.fd >= 0) { - const buf = Buffer.from(s); - import_fs.default.writeSync( - this.fd, - buf, - 0, - buf.length, - /*position*/ - null - ); - } - if (this.traceToConsole) { - console.warn(s); - } - } - } - const libDirectory = (0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizePath)(sys4.getExecutingFilePath())); - const useWatchGuard = process.platform === "win32"; - const originalWatchDirectory = sys4.watchDirectory.bind(sys4); - const logger = createLogger(); - typescript_exports.Debug.loggingHost = { - log(level, s) { - switch (level) { - case typescript_exports.LogLevel.Error: - case typescript_exports.LogLevel.Warning: - return logger.msg(s, typescript_exports.server.Msg.Err); - case typescript_exports.LogLevel.Info: - case typescript_exports.LogLevel.Verbose: - return logger.msg(s, typescript_exports.server.Msg.Info); - } - } - }; - const pending = (0, typescript_exports.createQueue)(); - let canWrite = true; - if (useWatchGuard) { - const currentDrive = extractWatchDirectoryCacheKey( - sys4.resolvePath(sys4.getCurrentDirectory()), - /*currentDriveKey*/ - void 0 - ); - const statusCache = /* @__PURE__ */ new Map(); - sys4.watchDirectory = (path, callback, recursive, options) => { - const cacheKey = extractWatchDirectoryCacheKey(path, currentDrive); - let status = cacheKey && statusCache.get(cacheKey); - if (status === void 0) { - if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - logger.info(`${cacheKey} for path ${path} not found in cache...`); - } - try { - const args = [(0, typescript_exports.combinePaths)(libDirectory, "watchGuard.js"), path]; - if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - logger.info(`Starting ${process.execPath} with args:${typescript_exports.server.stringifyIndented(args)}`); - } - import_child_process.default.execFileSync(process.execPath, args, { stdio: "ignore", env: { ELECTRON_RUN_AS_NODE: "1" } }); - status = true; - if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - logger.info(`WatchGuard for path ${path} returned: OK`); - } - } catch (e) { - status = false; - if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - logger.info(`WatchGuard for path ${path} returned: ${e.message}`); - } - } - if (cacheKey) { - statusCache.set(cacheKey, status); - } - } else if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - logger.info(`watchDirectory for ${path} uses cached drive information.`); - } - if (status) { - return watchDirectorySwallowingException(path, callback, recursive, options); - } else { - return typescript_exports.noopFileWatcher; - } - }; - } else { - sys4.watchDirectory = watchDirectorySwallowingException; - } - sys4.write = (s) => writeMessage(Buffer.from(s, "utf8")); - sys4.setTimeout = setTimeout; - sys4.clearTimeout = clearTimeout; - sys4.setImmediate = setImmediate; - sys4.clearImmediate = clearImmediate; - if (typeof global !== "undefined" && global.gc) { - sys4.gc = () => { - var _a; - return (_a = global.gc) == null ? void 0 : _a.call(global); - }; - } - const cancellationToken = createCancellationToken(sys4.args); - const localeStr = typescript_exports.server.findArgument("--locale"); - if (localeStr) { - (0, typescript_exports.validateLocaleAndSetLanguage)(localeStr, sys4); - } - const modeOrUnknown = parseServerMode(); - let serverMode; - let unknownServerMode; - if (modeOrUnknown !== void 0) { - if (typeof modeOrUnknown === "number") serverMode = modeOrUnknown; - else unknownServerMode = modeOrUnknown; - } - return { - args: process.argv, - logger, - cancellationToken, - serverMode, - unknownServerMode, - startSession: startNodeSession - }; - function createLogger() { - const cmdLineLogFileName = typescript_exports.server.findArgument("--logFile"); - const cmdLineVerbosity = getLogLevel(typescript_exports.server.findArgument("--logVerbosity")); - const envLogOptions = parseLoggingEnvironmentString(process.env.TSS_LOG); - const unsubstitutedLogFileName = cmdLineLogFileName ? (0, typescript_exports.stripQuotes)(cmdLineLogFileName) : envLogOptions.logToFile ? envLogOptions.file || libDirectory + "/.log" + process.pid.toString() : void 0; - const substitutedLogFileName = unsubstitutedLogFileName ? unsubstitutedLogFileName.replace("PID", process.pid.toString()) : void 0; - const logVerbosity = cmdLineVerbosity || envLogOptions.detailLevel; - return new Logger(substitutedLogFileName, envLogOptions.traceToConsole, logVerbosity); - } - function writeMessage(buf) { - if (!canWrite) { - pending.enqueue(buf); - } else { - canWrite = false; - process.stdout.write(buf, setCanWriteFlagAndWriteMessageIfNecessary); - } - } - function setCanWriteFlagAndWriteMessageIfNecessary() { - canWrite = true; - if (!pending.isEmpty()) { - writeMessage(pending.dequeue()); - } - } - function extractWatchDirectoryCacheKey(path, currentDriveKey) { - path = (0, typescript_exports.normalizeSlashes)(path); - if (isUNCPath(path)) { - const firstSlash = path.indexOf(typescript_exports.directorySeparator, 2); - return firstSlash !== -1 ? (0, typescript_exports.toFileNameLowerCase)(path.substring(0, firstSlash)) : path; - } - const rootLength = (0, typescript_exports.getRootLength)(path); - if (rootLength === 0) { - return currentDriveKey; - } - if (path.charCodeAt(1) === typescript_exports.CharacterCodes.colon && path.charCodeAt(2) === typescript_exports.CharacterCodes.slash) { - return (0, typescript_exports.toFileNameLowerCase)(path.charAt(0)); - } - if (path.charCodeAt(0) === typescript_exports.CharacterCodes.slash && path.charCodeAt(1) !== typescript_exports.CharacterCodes.slash) { - return currentDriveKey; - } - return void 0; - } - function isUNCPath(s) { - return s.length > 2 && s.charCodeAt(0) === typescript_exports.CharacterCodes.slash && s.charCodeAt(1) === typescript_exports.CharacterCodes.slash; - } - function watchDirectorySwallowingException(path, callback, recursive, options) { - try { - return originalWatchDirectory(path, callback, recursive, options); - } catch (e) { - logger.info(`Exception when creating directory watcher: ${e.message}`); - return typescript_exports.noopFileWatcher; - } - } -} -function parseEventPort(eventPortStr) { - const eventPort = eventPortStr === void 0 ? void 0 : parseInt(eventPortStr); - return eventPort !== void 0 && !isNaN(eventPort) ? eventPort : void 0; -} -function startNodeSession(options, logger, cancellationToken) { - const rl = import_readline.default.createInterface({ - input: process.stdin, - output: process.stdout, - terminal: false - }); - const _NodeTypingsInstallerAdapter = class _NodeTypingsInstallerAdapter extends typescript_exports.server.TypingsInstallerAdapter { - constructor(telemetryEnabled2, logger2, host, globalTypingsCacheLocation, typingSafeListLocation2, typesMapLocation2, npmLocation2, validateDefaultNpmLocation2, event) { - super( - telemetryEnabled2, - logger2, - host, - globalTypingsCacheLocation, - event, - _NodeTypingsInstallerAdapter.maxActiveRequestCount - ); - this.typingSafeListLocation = typingSafeListLocation2; - this.typesMapLocation = typesMapLocation2; - this.npmLocation = npmLocation2; - this.validateDefaultNpmLocation = validateDefaultNpmLocation2; - } - createInstallerProcess() { - if (this.logger.hasLevel(typescript_exports.server.LogLevel.requestTime)) { - this.logger.info("Binding..."); - } - const args = [typescript_exports.server.Arguments.GlobalCacheLocation, this.globalTypingsCacheLocation]; - if (this.telemetryEnabled) { - args.push(typescript_exports.server.Arguments.EnableTelemetry); - } - if (this.logger.loggingEnabled() && this.logger.getLogFileName()) { - args.push(typescript_exports.server.Arguments.LogFile, (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizeSlashes)(this.logger.getLogFileName())), `ti-${process.pid}.log`)); - } - if (this.typingSafeListLocation) { - args.push(typescript_exports.server.Arguments.TypingSafeListLocation, this.typingSafeListLocation); - } - if (this.typesMapLocation) { - args.push(typescript_exports.server.Arguments.TypesMapLocation, this.typesMapLocation); - } - if (this.npmLocation) { - args.push(typescript_exports.server.Arguments.NpmLocation, this.npmLocation); - } - if (this.validateDefaultNpmLocation) { - args.push(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); - } - const execArgv = []; - for (const arg of process.execArgv) { - const match = /^--((?:debug|inspect)(?:-brk)?)(?:=(\d+))?$/.exec(arg); - if (match) { - const currentPort = match[2] !== void 0 ? +match[2] : match[1].charAt(0) === "d" ? 5858 : 9229; - execArgv.push(`--${match[1]}=${currentPort + 1}`); - break; - } - } - const typingsInstaller = (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)(typescript_exports.sys.getExecutingFilePath()), "typingsInstaller.js"); - this.installer = import_child_process.default.fork(typingsInstaller, args, { execArgv }); - this.installer.on("message", (m) => this.handleMessage(m)); - this.host.setImmediate(() => this.event({ pid: this.installer.pid }, "typingsInstallerPid")); - process.on("exit", () => { - this.installer.kill(); - }); - return this.installer; - } - }; - // This number is essentially arbitrary. Processing more than one typings request - // at a time makes sense, but having too many in the pipe results in a hang - // (see https://github.com/nodejs/node/issues/7657). - // It would be preferable to base our limit on the amount of space left in the - // buffer, but we have yet to find a way to retrieve that value. - _NodeTypingsInstallerAdapter.maxActiveRequestCount = 10; - let NodeTypingsInstallerAdapter = _NodeTypingsInstallerAdapter; - class IOSession extends typescript_exports.server.Session { - constructor() { - const event = (body, eventName) => { - this.event(body, eventName); - }; - const host = typescript_exports.sys; - const typingsInstaller = disableAutomaticTypingAcquisition ? void 0 : new NodeTypingsInstallerAdapter(telemetryEnabled, logger, host, getGlobalTypingsCacheLocation(), typingSafeListLocation, typesMapLocation, npmLocation, validateDefaultNpmLocation, event); - super({ - host, - cancellationToken, - ...options, - typingsInstaller, - byteLength: Buffer.byteLength, - hrtime: process.hrtime, - logger, - canUseEvents: true, - typesMapLocation - }); - this.eventPort = eventPort; - if (this.canUseEvents && this.eventPort) { - const s = import_net.default.connect({ port: this.eventPort }, () => { - this.eventSocket = s; - if (this.socketEventQueue) { - for (const event2 of this.socketEventQueue) { - this.writeToEventSocket(event2.body, event2.eventName); - } - this.socketEventQueue = void 0; - } - }); - } - this.constructed = true; - } - event(body, eventName) { - typescript_exports.Debug.assert(!!this.constructed, "Should only call `IOSession.prototype.event` on an initialized IOSession"); - if (this.canUseEvents && this.eventPort) { - if (!this.eventSocket) { - if (this.logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { - this.logger.info(`eventPort: event "${eventName}" queued, but socket not yet initialized`); - } - (this.socketEventQueue || (this.socketEventQueue = [])).push({ body, eventName }); - return; - } else { - typescript_exports.Debug.assert(this.socketEventQueue === void 0); - this.writeToEventSocket(body, eventName); - } - } else { - super.event(body, eventName); - } - } - writeToEventSocket(body, eventName) { - this.eventSocket.write(typescript_exports.server.formatMessage(typescript_exports.server.toEvent(eventName, body), this.logger, this.byteLength, this.host.newLine), "utf8"); - } - exit() { - var _a; - this.logger.info("Exiting..."); - this.projectService.closeLog(); - (_a = typescript_exports.tracing) == null ? void 0 : _a.stopTracing(); - process.exit(0); - } - listen() { - rl.on("line", (input) => { - const message = input.trim(); - this.onMessage(message); - }); - rl.on("close", () => { - this.exit(); - }); - } - } - class IpcIOSession extends IOSession { - writeMessage(msg) { - const verboseLogging = logger.hasLevel(typescript_exports.server.LogLevel.verbose); - if (verboseLogging) { - const json = JSON.stringify(msg); - logger.info(`${msg.type}:${typescript_exports.server.indent(json)}`); - } - process.send(msg); - } - parseMessage(message) { - return message; - } - toStringMessage(message) { - return JSON.stringify(message, void 0, 2); - } - listen() { - process.on("message", (e) => { - this.onMessage(e); - }); - process.on("disconnect", () => { - this.exit(); - }); - } - } - const eventPort = parseEventPort(typescript_exports.server.findArgument("--eventPort")); - const typingSafeListLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypingSafeListLocation); - const typesMapLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypesMapLocation) || (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)(typescript_exports.sys.getExecutingFilePath()), "typesMap.json"); - const npmLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.NpmLocation); - const validateDefaultNpmLocation = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); - const disableAutomaticTypingAcquisition = typescript_exports.server.hasArgument("--disableAutomaticTypingAcquisition"); - const useNodeIpc = typescript_exports.server.hasArgument("--useNodeIpc"); - const telemetryEnabled = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.EnableTelemetry); - const commandLineTraceDir = typescript_exports.server.findArgument("--traceDirectory"); - const traceDir = commandLineTraceDir ? (0, typescript_exports.stripQuotes)(commandLineTraceDir) : process.env.TSS_TRACE; - if (traceDir) { - (0, typescript_exports.startTracing)("server", traceDir); - } - const ioSession = useNodeIpc ? new IpcIOSession() : new IOSession(); - process.on("uncaughtException", (err) => { - ioSession.logError(err, "unknown"); - }); - process.noAsar = true; - ioSession.listen(); - function getGlobalTypingsCacheLocation() { - switch (process.platform) { - case "win32": { - const basePath = process.env.LOCALAPPDATA || process.env.APPDATA || import_os.default.homedir && import_os.default.homedir() || process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && (0, typescript_exports.normalizeSlashes)(process.env.HOMEDRIVE + process.env.HOMEPATH) || import_os.default.tmpdir(); - return (0, typescript_exports.combinePaths)((0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(basePath), "Microsoft/TypeScript"), typescript_exports.versionMajorMinor); - } - case "openbsd": - case "freebsd": - case "netbsd": - case "darwin": - case "linux": - case "android": { - const cacheLocation = getNonWindowsCacheLocation(process.platform === "darwin"); - return (0, typescript_exports.combinePaths)((0, typescript_exports.combinePaths)(cacheLocation, "typescript"), typescript_exports.versionMajorMinor); - } - default: - return typescript_exports.Debug.fail(`unsupported platform '${process.platform}'`); - } - } - function getNonWindowsCacheLocation(platformIsDarwin) { - if (process.env.XDG_CACHE_HOME) { - return process.env.XDG_CACHE_HOME; - } - const usersDir = platformIsDarwin ? "Users" : "home"; - const homePath = import_os.default.homedir && import_os.default.homedir() || process.env.HOME || (process.env.LOGNAME || process.env.USER) && `/${usersDir}/${process.env.LOGNAME || process.env.USER}` || import_os.default.tmpdir(); - const cacheFolder = platformIsDarwin ? "Library/Caches" : ".cache"; - return (0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(homePath), cacheFolder); - } -} -function pipeExists(name) { - return import_fs.default.existsSync(name); -} -function createCancellationToken(args) { - let cancellationPipeName; - for (let i = 0; i < args.length - 1; i++) { - if (args[i] === "--cancellationPipeName") { - cancellationPipeName = args[i + 1]; - break; - } - } - if (!cancellationPipeName) { - return typescript_exports.server.nullCancellationToken; - } - if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { - const namePrefix = cancellationPipeName.slice(0, -1); - if (namePrefix.length === 0 || namePrefix.includes("*")) { - throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); - } - let perRequestPipeName; - let currentRequestId; - return { - isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName), - setRequest(requestId) { - currentRequestId = requestId; - perRequestPipeName = namePrefix + requestId; - }, - resetRequest(requestId) { - if (currentRequestId !== requestId) { - throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`); - } - perRequestPipeName = void 0; - } - }; - } else { - return { - isCancellationRequested: () => pipeExists(cancellationPipeName), - setRequest: (_requestId) => void 0, - resetRequest: (_requestId) => void 0 - }; - } -} - -// src/tsserver/server.ts -function findArgumentStringArray(argName) { - const arg = typescript_exports.server.findArgument(argName); - if (arg === void 0) { - return typescript_exports.emptyArray; - } - return arg.split(",").filter((name) => name !== ""); -} -function start({ args, logger, cancellationToken, serverMode, unknownServerMode, startSession: startServer }, platform) { - logger.info(`Starting TS Server`); - logger.info(`Version: ${typescript_exports.version}`); - logger.info(`Arguments: ${args.join(" ")}`); - logger.info(`Platform: ${platform} NodeVersion: ${process.version} CaseSensitive: ${typescript_exports.sys.useCaseSensitiveFileNames}`); - logger.info(`ServerMode: ${serverMode} hasUnknownServerMode: ${unknownServerMode}`); - typescript_exports.setStackTraceLimit(); - if (typescript_exports.Debug.isDebugging) { - typescript_exports.Debug.enableDebugInfo(); - } - if (typescript_exports.sys.tryEnableSourceMapsForHost && /^development$/i.test(typescript_exports.sys.getEnvironmentVariable("NODE_ENV"))) { - typescript_exports.sys.tryEnableSourceMapsForHost(); - } - console.log = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Info); - console.warn = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Err); - console.error = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Err); - startServer( - { - globalPlugins: findArgumentStringArray("--globalPlugins"), - pluginProbeLocations: findArgumentStringArray("--pluginProbeLocations"), - allowLocalPluginLoads: typescript_exports.server.hasArgument("--allowLocalPluginLoads"), - useSingleInferredProject: typescript_exports.server.hasArgument("--useSingleInferredProject"), - useInferredProjectPerProjectRoot: typescript_exports.server.hasArgument("--useInferredProjectPerProjectRoot"), - suppressDiagnosticEvents: typescript_exports.server.hasArgument("--suppressDiagnosticEvents"), - noGetErrOnBackgroundUpdate: typescript_exports.server.hasArgument("--noGetErrOnBackgroundUpdate"), - canUseWatchEvents: typescript_exports.server.hasArgument("--canUseWatchEvents"), - serverMode - }, - logger, - cancellationToken - ); -} -typescript_exports.setStackTraceLimit(); -start(initializeNodeSystem(), import_os2.default.platform()); -//# sourceMappingURL=_tsserver.js.map diff --git a/node_modules/typescript/lib/_typingsInstaller.js b/node_modules/typescript/lib/_typingsInstaller.js deleted file mode 100644 index 75f0e6978..000000000 --- a/node_modules/typescript/lib/_typingsInstaller.js +++ /dev/null @@ -1,222 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/typingsInstaller/nodeTypingsInstaller.ts -var import_child_process = require("child_process"); -var fs = __toESM(require("fs")); -var path = __toESM(require("path")); - -// src/typescript/typescript.ts -var typescript_exports = {}; -__reExport(typescript_exports, require("./typescript.js")); - -// src/typingsInstaller/nodeTypingsInstaller.ts -var FileLog = class { - constructor(logFile) { - this.logFile = logFile; - this.isEnabled = () => { - return typeof this.logFile === "string"; - }; - this.writeLine = (text) => { - if (typeof this.logFile !== "string") return; - try { - fs.appendFileSync(this.logFile, `[${typescript_exports.server.nowString()}] ${text}${typescript_exports.sys.newLine}`); - } catch { - this.logFile = void 0; - } - }; - } -}; -function getDefaultNPMLocation(processName, validateDefaultNpmLocation2, host) { - if (path.basename(processName).indexOf("node") === 0) { - const npmPath = path.join(path.dirname(process.argv[0]), "npm"); - if (!validateDefaultNpmLocation2) { - return npmPath; - } - if (host.fileExists(npmPath)) { - return `"${npmPath}"`; - } - } - return "npm"; -} -function loadTypesRegistryFile(typesRegistryFilePath, host, log2) { - if (!host.fileExists(typesRegistryFilePath)) { - if (log2.isEnabled()) { - log2.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); - } - return /* @__PURE__ */ new Map(); - } - try { - const content = JSON.parse(host.readFile(typesRegistryFilePath)); - return new Map(Object.entries(content.entries)); - } catch (e) { - if (log2.isEnabled()) { - log2.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${e.message}, ${e.stack}`); - } - return /* @__PURE__ */ new Map(); - } -} -var typesRegistryPackageName = "types-registry"; -function getTypesRegistryFileLocation(globalTypingsCacheLocation2) { - return (0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(globalTypingsCacheLocation2), `node_modules/${typesRegistryPackageName}/index.json`); -} -var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstaller.TypingsInstaller { - constructor(globalTypingsCacheLocation2, typingSafeListLocation2, typesMapLocation2, npmLocation2, validateDefaultNpmLocation2, throttleLimit, log2) { - const libDirectory = (0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizePath)(typescript_exports.sys.getExecutingFilePath())); - super( - typescript_exports.sys, - globalTypingsCacheLocation2, - typingSafeListLocation2 ? (0, typescript_exports.toPath)(typingSafeListLocation2, "", (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)) : (0, typescript_exports.toPath)("typingSafeList.json", libDirectory, (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)), - typesMapLocation2 ? (0, typescript_exports.toPath)(typesMapLocation2, "", (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)) : (0, typescript_exports.toPath)("typesMap.json", libDirectory, (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)), - throttleLimit, - log2 - ); - this.npmPath = npmLocation2 !== void 0 ? npmLocation2 : getDefaultNPMLocation(process.argv[0], validateDefaultNpmLocation2, this.installTypingHost); - if (this.npmPath.includes(" ") && this.npmPath[0] !== `"`) { - this.npmPath = `"${this.npmPath}"`; - } - if (this.log.isEnabled()) { - this.log.writeLine(`Process id: ${process.pid}`); - this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${typescript_exports.server.Arguments.NpmLocation}' ${npmLocation2 === void 0 ? "not " : ""} provided)`); - this.log.writeLine(`validateDefaultNpmLocation: ${validateDefaultNpmLocation2}`); - } - this.ensurePackageDirectoryExists(globalTypingsCacheLocation2); - try { - if (this.log.isEnabled()) { - this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); - } - this.execSyncAndLog(`${this.npmPath} install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`, { cwd: globalTypingsCacheLocation2 }); - if (this.log.isEnabled()) { - this.log.writeLine(`Updated ${typesRegistryPackageName} npm package`); - } - } catch (e) { - if (this.log.isEnabled()) { - this.log.writeLine(`Error updating ${typesRegistryPackageName} package: ${e.message}`); - } - this.delayedInitializationError = { - kind: "event::initializationFailed", - message: e.message, - stack: e.stack - }; - } - this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation2), this.installTypingHost, this.log); - } - handleRequest(req) { - if (this.delayedInitializationError) { - this.sendResponse(this.delayedInitializationError); - this.delayedInitializationError = void 0; - } - super.handleRequest(req); - } - sendResponse(response) { - if (this.log.isEnabled()) { - this.log.writeLine(`Sending response:${typescript_exports.server.stringifyIndented(response)}`); - } - process.send(response); - if (this.log.isEnabled()) { - this.log.writeLine(`Response has been sent.`); - } - } - installWorker(requestId, packageNames, cwd, onRequestCompleted) { - if (this.log.isEnabled()) { - this.log.writeLine(`#${requestId} with cwd: ${cwd} arguments: ${JSON.stringify(packageNames)}`); - } - const start = Date.now(); - const hasError = typescript_exports.server.typingsInstaller.installNpmPackages(this.npmPath, typescript_exports.version, packageNames, (command) => this.execSyncAndLog(command, { cwd })); - if (this.log.isEnabled()) { - this.log.writeLine(`npm install #${requestId} took: ${Date.now() - start} ms`); - } - onRequestCompleted(!hasError); - } - /** Returns 'true' in case of error. */ - execSyncAndLog(command, options) { - if (this.log.isEnabled()) { - this.log.writeLine(`Exec: ${command}`); - } - try { - const stdout = (0, import_child_process.execSync)(command, { ...options, encoding: "utf-8" }); - if (this.log.isEnabled()) { - this.log.writeLine(` Succeeded. stdout:${indent(typescript_exports.sys.newLine, stdout)}`); - } - return false; - } catch (error) { - const { stdout, stderr } = error; - this.log.writeLine(` Failed. stdout:${indent(typescript_exports.sys.newLine, stdout)}${typescript_exports.sys.newLine} stderr:${indent(typescript_exports.sys.newLine, stderr)}`); - return true; - } - } -}; -var logFilePath = typescript_exports.server.findArgument(typescript_exports.server.Arguments.LogFile); -var globalTypingsCacheLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.GlobalCacheLocation); -var typingSafeListLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypingSafeListLocation); -var typesMapLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypesMapLocation); -var npmLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.NpmLocation); -var validateDefaultNpmLocation = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); -var log = new FileLog(logFilePath); -if (log.isEnabled()) { - process.on("uncaughtException", (e) => { - log.writeLine(`Unhandled exception: ${e} at ${e.stack}`); - }); -} -process.on("disconnect", () => { - if (log.isEnabled()) { - log.writeLine(`Parent process has exited, shutting down...`); - } - process.exit(0); -}); -var installer; -process.on("message", (req) => { - installer ?? (installer = new NodeTypingsInstaller( - globalTypingsCacheLocation, - typingSafeListLocation, - typesMapLocation, - npmLocation, - validateDefaultNpmLocation, - /*throttleLimit*/ - 5, - log - )); - installer.handleRequest(req); -}); -function indent(newline, str) { - return str && str.length ? `${newline} ` + str.replace(/\r?\n/, `${newline} `) : ""; -} -//# sourceMappingURL=_typingsInstaller.js.map diff --git a/node_modules/typescript/lib/cancellationToken.js b/node_modules/typescript/lib/cancellationToken.js new file mode 100644 index 000000000..cf2c258ea --- /dev/null +++ b/node_modules/typescript/lib/cancellationToken.js @@ -0,0 +1,90 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); + +// src/cancellationToken/cancellationToken.ts +var fs = __toESM(require("fs")); +function pipeExists(name) { + return fs.existsSync(name); +} +function createCancellationToken(args) { + let cancellationPipeName; + for (let i = 0; i < args.length - 1; i++) { + if (args[i] === "--cancellationPipeName") { + cancellationPipeName = args[i + 1]; + break; + } + } + if (!cancellationPipeName) { + return { + isCancellationRequested: () => false, + setRequest: (_requestId) => void 0, + resetRequest: (_requestId) => void 0 + }; + } + if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { + const namePrefix = cancellationPipeName.slice(0, -1); + if (namePrefix.length === 0 || namePrefix.includes("*")) { + throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); + } + let perRequestPipeName; + let currentRequestId; + return { + isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName), + setRequest(requestId) { + currentRequestId = requestId; + perRequestPipeName = namePrefix + requestId; + }, + resetRequest(requestId) { + if (currentRequestId !== requestId) { + throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`); + } + perRequestPipeName = void 0; + } + }; + } else { + return { + isCancellationRequested: () => pipeExists(cancellationPipeName), + setRequest: (_requestId) => void 0, + resetRequest: (_requestId) => void 0 + }; + } +} +module.exports = createCancellationToken; +//# sourceMappingURL=cancellationToken.js.map diff --git a/node_modules/typescript/lib/cs/diagnosticMessages.generated.json b/node_modules/typescript/lib/cs/diagnosticMessages.generated.json index 8d72fccac..1df80098b 100644 --- a/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/cs/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "VŠECHNY MOŽNOSTI KOMPILÁTORU", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Modifikátor {0} nejde použít s deklarací import.", "A_0_parameter_must_be_the_first_parameter_2680": "Parametr {0} musí být prvním parametrem.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Značka „@template“ jazyka JSDoc nemůže následovat po značce „@typedef“, „@callback“ nebo „@overload“.", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Komentář JSDoc @typedef nemůže obsahovat více než jednu značku @type.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Literál „bigint“ nelze použít jako název vlastnosti.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Literál typu bigint nemůže používat exponenciální notaci.", "A_bigint_literal_must_be_an_integer_1353": "Literál typu bigint musí být celé číslo.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Parametr vzoru vazby nemůže být u podpisu implementace nepovinný.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Příkaz break se dá použít jenom uvnitř nadřazené iterace nebo příkazu switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Příkaz break může skočit jenom na popisek nadřazeného příkazu.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Třída znaků nesmí obsahovat vyhrazené dvojité interpunkční znaménko. Nechtěli jste ho uvést zpětným lomítkem?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Rozsah třídy znaků nesmí být ohraničen jinou třídou znaků.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Třída může implementovat jenom identifikátor nebo kvalifikovaný název s volitelnými argumenty typu.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Třída může implementovat jen typ objektu nebo průsečík typů objektů se staticky známými členy.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Třída nemůže rozšiřovat primitivní typ, jako je například „{0}“. Třídy můžou rozšiřovat pouze konstruovatelné hodnoty.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Třída nemůže implementovat primitivní typ, jako je například „{0}“. Může implementovat pouze jiné typy pojmenovaných objektů.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Deklarace třídy bez modifikátoru default musí mít název.", "A_class_member_cannot_have_the_0_keyword_1248": "Člen třídy nemůže mít klíčové slovo {0}.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Výraz s čárkou není v názvu počítané vlastnosti povolený.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Konstruktor nemůže mít parametr this.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Příkaz continue se dá použít jenom uvnitř příkazu nadřazené iterace.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Příkaz continue může přejít jenom na popisek příkazu nadřazené iterace.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Soubor deklarace nelze importovat bez hodnoty „import type“. Nechtěli jste místo toho importovat soubor implementace „{0}“?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Modifikátor declare se nedá použít v kontextu, který už je ambientní.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Dekorátor může dekorovat jenom implementaci metody, ne přetížení.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Klauzule default nemůže být v příkazu switch víc než jednou.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Výchozí export musí být na nejvyšší úrovni deklarace souboru nebo modulu.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Určitý kontrolní výraz přiřazení '!' není v tomto kontextu povolený.", "A_destructuring_declaration_must_have_an_initializer_1182": "Destrukturační deklarace musí obsahovat inicializátor.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Volání dynamického importu v ES5 vyžaduje konstruktor „Promise“. Ujistěte se, že máte deklaraci konstruktoru „Promise“, nebo do možnosti „--lib“ přidejte „ES2015“.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Volání dynamického importu v ES5/ES3 vyžaduje konstruktor ‚Promise‘. Ujistěte se, že máte deklaraci konstruktoru ‚Promise‘, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Volání dynamického importu vrací hodnotu ‚Promise‘. Ujistěte se, že pro ni máte deklaraci, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", "A_file_cannot_have_a_reference_to_itself_1006": "Soubor nemůže odkazovat sám na sebe.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Funkce, která vrací hodnotu never, nemůže mít dosažitelný koncový bod.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Funkce volaná klíčovým slovem new nemůže mít typ this, který je void.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Funkce, jejíž deklarovaný typ není „undefined“, „void“ ani „any“, musí vracet hodnotu.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Funkce, jejíž deklarovaný typ není void ani any, musí vracet hodnotu.", "A_generator_cannot_have_a_void_type_annotation_2505": "Generátor nemůže mít anotaci typu void.", "A_get_accessor_cannot_have_parameters_1054": "Přístupový objekt get nemůže obsahovat parametry.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Přístupový objekt get musí být alespoň tak přístupný jako metoda setter.", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Deklarace oboru názvů nemůže být v jiném souboru než třída nebo funkce, se kterou se slučuje.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklarace oboru názvů nemůže být umístěná před třídou nebo funkcí, se kterou se slučuje.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Deklarace oboru názvů je povolená pouze na nejvyšší úrovni oboru názvů nebo v modulu.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Deklarace namespace by se neměla deklarovat pomocí klíčového slova module. Místo toho prosím použijte klíčové slovo namespace.", "A_non_dry_build_would_build_project_0_6357": "Build bez příznaku -dry by vytvořil projekt {0}.", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Build bez příznaku -dry by odstranil následující soubory: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Build bez příznaku -dry by aktualizoval výstup projektu {0}.", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Build bez příznaku -dry by aktualizoval časová razítka pro výstup projektu {0}.", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Inicializátor parametru je povolený jenom v implementaci funkce nebo konstruktoru.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Vlastnost parametru se nedá deklarovat pomocí parametru rest.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Volání super musí být prvním příkazem v konstruktoru, který odkazuje na super nebo toto, když odvozená třída obsahuje inicializované vlastnosti, vlastnosti parametrů nebo soukromé identifikátory.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Ochrana typu this není kompatibilní s ochranou typu založeného na parametru.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Typ this je k dispozici jenom v nestatických členech třídy nebo rozhraní.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Modifikátor „export“ nejvyšší úrovně nelze použít pro deklarace hodnot v modulu CommonJS, když je povolený modifikátor „verbatimModuleSyntax“.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Soubor tsconfig.json je už v {0} definovaný.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Člen řazené kolekce členů nemůže být volitelný a zbytek.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Typ řazené kolekce členů není možné indexovat zápornou hodnotou.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Výraz yield je povolený jenom v těle generátoru.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "K abstraktní metodě {0} ve třídě {1} nejde získat přístup prostřednictvím výrazu super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Abstraktní metody se můžou vyskytovat jenom v abstraktní třídě.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Abstraktní vlastnosti se můžou vyskytovat jenom v abstraktní třídě.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "K abstraktní vlastnosti {0} ve třídě {1} nelze získat přístup v konstruktoru.", "Accessibility_modifier_already_seen_1028": "Modifikátor dostupnosti se už jednou vyskytl.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Přístupové objekty jsou dostupné, jenom když je cílem ECMAScript 5 a vyšší verze.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Přistupující objekty musí být abstraktní nebo neabstraktní.", "Add_0_to_unresolved_variable_90008": "Přidat {0}. k nerozpoznané proměnné", "Add_a_return_statement_95111": "Přidat příkaz return", - "Add_a_return_type_to_the_function_declaration_9031": "Přidejte návratový typ do deklarace funkce.", - "Add_a_return_type_to_the_function_expression_9030": "Přidejte návratový typ do výrazu funkce.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Přidejte návratový typ do deklarace přistupujícího objektu get.", - "Add_a_return_type_to_the_method_9034": "Přidejte do metody návratový typ.", - "Add_a_type_annotation_to_the_parameter_0_9028": "Přidejte anotaci typu k parametru „{0}“.", - "Add_a_type_annotation_to_the_property_0_9029": "Přidejte anotaci typu k vlastnosti „{0}“.", - "Add_a_type_annotation_to_the_variable_0_9027": "Přidejte anotaci typu k proměnné „{0}“.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Přidejte typ k parametru deklarace přistupujícího objektu set.", "Add_all_missing_async_modifiers_95041": "Přidat všechny chybějící modifikátory async", "Add_all_missing_attributes_95168": "Přidat všechny chybějící atributy", "Add_all_missing_call_parentheses_95068": "Přidat všechny chybějící závorky volání", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Přidat všechny chybějící importy", "Add_all_missing_members_95022": "Přidat všechny chybějící členy", "Add_all_missing_override_modifiers_95162": "Přidat všechny chybějící modifikátory override", - "Add_all_missing_parameters_95190": "Přidejte všechny chybějící parametry.", "Add_all_missing_properties_95166": "Přidat všechny chybějící importy", "Add_all_missing_return_statement_95114": "Přidat všechny chybějící příkazy return", "Add_all_missing_super_calls_95039": "Přidat všechna chybějící volání pomocí super", - "Add_all_missing_type_annotations_90067": "Přidejte všechny chybějící anotace typů.", - "Add_all_optional_parameters_95193": "Přidejte všechny volitelné parametry.", - "Add_annotation_of_type_0_90062": "Přidejte anotaci typu „{0}“.", "Add_async_modifier_to_containing_function_90029": "Přidat modifikátor async do obsahující funkce", "Add_await_95083": "Přidat await", "Add_await_to_initializer_for_0_95084": "Přidat await do inicializátoru pro {0}", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Přidat inicializátory do všech neinicializovaných vlastností", "Add_missing_attributes_95167": "Přidat chybějící atributy", "Add_missing_call_parentheses_95067": "Přidat chybějící závorky volání", - "Add_missing_comma_for_object_member_completion_0_95187": "Přidejte chybějící čárku pro dokončování členů objektu „{0}“.", "Add_missing_enum_member_0_95063": "Přidat chybějící člen výčtu {0}", "Add_missing_function_declaration_0_95156": "Přidat chybějící deklaraci funkce {0}", "Add_missing_new_operator_to_all_calls_95072": "Přidat chybějící operátor new ke všem voláním", "Add_missing_new_operator_to_call_95071": "Přidat chybějící operátor new k volání", - "Add_missing_parameter_to_0_95188": "Přidejte chybějící parametr do „{0}“.", - "Add_missing_parameters_to_0_95189": "Přidejte chybějící parametry do „{0}“.", "Add_missing_properties_95165": "Přidat chybějící vlastnosti", "Add_missing_super_call_90001": "Přidat chybějící volání metody super()", "Add_missing_typeof_95052": "Přidat chybějící typeof", "Add_names_to_all_parameters_without_names_95073": "Přidat názvy do všech parametrů bez názvů", - "Add_optional_parameter_to_0_95191": "Přidejte volitelný parametr do „{0}“", - "Add_optional_parameters_to_0_95192": "Přidat volitelné parametry do {0}", "Add_or_remove_braces_in_an_arrow_function_95058": "Přidat nebo odebrat složené závorky ve funkci šipky", "Add_override_modifier_95160": "Přidat modifikátor override", "Add_parameter_name_90034": "Přidat název parametru", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Přidat kvalifikátor do všech nerozpoznaných proměnných odpovídajících názvu členu", - "Add_resolution_mode_import_attribute_95196": "Přidat atribut importu resolution-mode", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Přidat atribut importu resolution-mode do všech importů, při kterých se importuje pouze typ, které ho potřebují", - "Add_return_type_0_90063": "Přidejte návratový typ „{0}“", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Chcete-li typ nastavit jako explicitní, přidejte do tohoto výrazu operátor „satisfies“ a kontrolní výraz typu („satisfies T as T“).", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Přidejte operátor „satisfies“ a kontrolní výraz vloženého typu s „{0}“.", "Add_to_all_uncalled_decorators_95044": "Přidat () do všech nevolaných dekorátorů", "Add_ts_ignore_to_all_error_messages_95042": "Přidat @ts-ignore do všech chybových zpráv", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Pokud k přístupu používáte index, přidejte k typu řetězec undefined.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Povolte výchozí importy z modulů bez výchozího exportu. Nebude to mít vliv na generování kódu, jenom na kontrolu typů.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Pokud modul nemá výchozí export, povolte import X z Y.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Povolte import pomocných funkcí z knihovny tslib jednou za celý projekt místo jejich zahrnutí do každého souboru.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Povolte, aby importy zahrnovaly přípony souborů TypeScriptu. Vyžaduje nastavení možnosti „--moduleResolution bundler“ a buď „--noEmit“, nebo „--emitDeclarationOnly“.", "Allow_javascript_files_to_be_compiled_6102": "Povolí kompilaci souborů javascript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Při řešení modulů povolit, aby se s více složkami zacházelo jako s jednou.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Název souboru {0}, který se už zahrnul, se od názvu souboru {1} liší jen ve velkých a malých písmenech.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Neposkytl se argument, který by odpovídal tomuto vzoru vazby.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Aritmetický operand musí být typu any, number, bigint nebo typu výčtu.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Funkce šipky nemůže mít parametr this.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Asynchronní funkce nebo metoda v ES5 vyžaduje konstruktor „Promise“. Ujistěte se, že máte deklaraci konstruktoru „Promise“, nebo do možnosti „--lib“ přidejte „ES2015“.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Asynchronní funkce nebo metoda v ES5/ES3 vyžaduje konstruktor ‚Promise‘. Ujistěte se, že máte deklaraci konstruktoru ‚Promise‘, nebo do možnosti ‚--lib‘ přidejte ‚ES2015‘.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Asynchronní funkce nebo metoda musí vracet hodnotu ‚Promise‘. Přesvědčte se, že pro ni máte deklaraci, nebo zahrňte ‚ES2015‘ do možnosti ‚--lib‘.", "An_async_iterator_must_have_a_next_method_2519": "Asynchronní iterátor musí mít metodu next().", "An_element_access_expression_should_take_an_argument_1011": "Výraz přístupu k elementu by měl přijímat argument.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Deklarace exportu se dá použít pouze na nejvyšší úrovni modulu.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Deklarace exportu se dá použít pouze na nejvyšší úrovni oboru názvů nebo modulu.", "An_export_declaration_cannot_have_modifiers_1193": "Deklarace exportu nemůže mít modifikátory.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Když je povolená možnost verbatimModuleSyntax, musí deklarace „export =“ odkazovat na skutečnou hodnotu, ale „{0}“ se překládá na deklaraci „pouze typ“.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Deklarace „export =“ musí odkazovat na hodnotu, když je povolená možnost „verbatimModuleSyntax“, ale „{0}“ odkazuje jenom na typ.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Když je povolená možnost verbatimModuleSyntax, musí „export default“ odkazovat na skutečnou hodnotu, ale „{0}“ se překládá na deklaraci „pouze typ“.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Pokud je povolená možnost „verbatimModuleSyntax“, musí „export default“ odkazovat na hodnotu, ale „{0}“ odkazuje jenom na typ.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Není možné testovat pravdivost výrazu typu void.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Rozšířená řídicí hodnota Unicode musí být mezi 0x0 a 0x10FFFF (včetně).", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Identifikátor nebo klíčové slovo nemůže následovat hned po číselném literálu.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Implementace se nedá deklarovat v ambientních kontextech.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Alias importu se nemůže odkazovat na deklaraci, která se exportovala pomocí export type.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Alias importu se nemůže odkazovat na deklaraci, která se importovala pomocí import type.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Pokud je povolená možnost „verbatimModuleSyntax“, alias importu nelze přeložit na deklaraci typu nebo deklaraci „pouze typ“.", "An_import_alias_cannot_use_import_type_1392": "Alias importu nemůže používat import type.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Deklarace importu se dá použít pouze na nejvyšší úrovni modulu.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Deklarace importu se dá použít pouze na nejvyšší úrovni oboru názvů nebo modulu.", "An_import_declaration_cannot_have_modifiers_1191": "Deklarace importu nemůže mít modifikátory.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Když je povolená možnost „allowImportingTsExtensions“, může cesta importu končit pouze příponou „{0}“.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Cesta pro import nemůže končit příponou {0}. Zvažte možnost importovat místo toho {1}.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Signatura indexu indexu nemůže obsahovat parametr rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Signatura indexu nemůže mít na konci čárku.", "An_index_signature_must_have_a_type_annotation_1021": "Signatura indexu musí mít anotaci typu.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Po výrazu vytvoření instance nemůže následovat přístup k vlastnosti.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Rozhraní může rozšířit jenom identifikátor nebo kvalifikovaný název s volitelnými argumenty typu.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Rozhraní může rozšiřovat jen typ objektu nebo průsečík typů objektů se staticky známými členy.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Rozhraní nemůže rozšiřovat primitivní typ, jako je například „{0}“. Může rozšiřovat pouze jiné typy pojmenovaných objektů.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Rozhraní nemůže rozšířit primitivní typ, jako je {0}; rozhraní může rozšířit jenom pojmenované typy a třídy.", "An_interface_property_cannot_have_an_initializer_1246": "Vlastnost rozhraní nemůže mít inicializátor.", "An_iterator_must_have_a_next_method_2489": "Iterátor musí mít metodu next().", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Při použití direktivy pragma @jsx s fragmenty JSX se vyžaduje direktiva pragma @jsxFrag.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Literál objektu nemůže mít víc vlastností se stejným názvem.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Literál objektu nemůže obsahovat vlastnost a přístupový objekt se stejným názvem.", "An_object_member_cannot_be_declared_optional_1162": "Člen objektu nemůže být deklarovaný jako nepovinný.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Metoda „[Symbol.hasInstance]“ objektu musí vracet logickou hodnotu, aby ji bylo možné použít na pravé straně výrazu „instanceof“.", "An_optional_chain_cannot_contain_private_identifiers_18030": "Nepovinný řetěz nemůže obsahovat privátní identifikátory.", "An_optional_element_cannot_follow_a_rest_element_1266": "Element optional nemůže následovat za elementem rest.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Tento kontejner zakrývá vnější hodnotu this.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Signatura přetížení nemůže být deklarovaný jako generátor.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Unární výraz s operátorem {0} se na levé straně výrazu umocnění nepovoluje. Zvažte možnost uzavření výrazu do závorek.", "Annotate_everything_with_types_from_JSDoc_95043": "Vše s typy z JSDoc opatřit poznámkami", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Přidejte anotace typů funkce expando ve vlastnostech v oboru názvů.", "Annotate_with_type_from_JSDoc_95009": "Přidat poznámku s typem z JSDoc", "Another_export_default_is_here_2753": "Další výchozí hodnota exportu je tady.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Jakákoli vlastnost Unicode, která by mohla odpovídat více než jednomu znaku, je k dispozici pouze v případě, že je nastaven příznak Unicode Sets (v).", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Cokoli, co by mohlo odpovídat více než jednomu znaku, je v negované třídě znaků neplatné.", "Are_you_missing_a_semicolon_2734": "Nechybí středník?", "Argument_expression_expected_1135": "Očekává se výraz argumentu.", "Argument_for_0_option_must_be_Colon_1_6046": "Argument možnosti {0} musí být {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Argument typu {0} se nedá přiřadit k parametru typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typů vlastností cíle.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Nezadaly se argumenty pro parametr rest {0}.", "Array_element_destructuring_pattern_expected_1181": "Očekával se destrukturační vzor elementu pole.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Pole s elementy spread nelze odvodit pomocí možnosti --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Kontrolní výrazy vyžadují, aby se všechny názvy v cíli volání deklarovaly s explicitní anotací typu.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Kontrolní výrazy vyžadují, aby cíl volání byl identifikátor, nebo kvalifikovaný název.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Přiřazování vlastností funkcím bez jejich deklarování není u s možností --isolatedDeclarations podporováno. Přidejte explicitní deklaraci pro vlastnosti přiřazené k této funkci.", "Asterisk_Slash_expected_1010": "Očekával se znak */.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Minimálně jeden přistupující objekt musí mít explicitní anotaci typu s možností --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Rozšíření pro globální rozsah může být jenom přímo vnořené v externích modulech nebo deklaracích ambientního modulu.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Rozšíření pro globální rozsah by měla mít modifikátor declare, pokud se neobjeví v kontextu, který je už ambientní.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Automatické zjišťování pro psaní je povolené v projektu {0}. Spouští se speciální průchod řešení pro modul {1} prostřednictvím umístění mezipaměti {2}.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Výraz Await nejde použít uvnitř statického bloku třídy.", "BUILD_OPTIONS_6919": "MOŽNOSTI SESTAVENÍ", "Backwards_Compatibility_6253": "Zpětná kompatibilita", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Výrazy základní třídy nemůžou odkazovat na parametry typu třídy.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Když je cíl nastavený níže než ES2020, literály typu BigInt nejsou k dispozici.", "Binary_digit_expected_1177": "Očekává se binární číslice.", "Binding_element_0_implicitly_has_an_1_type_7031": "Element vazby {0} má implicitně typ {1}.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Elementy vazeb nelze exportovat přímo s možností --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Proměnná bloku {0} se používá před vlastní deklarací.", "Build_a_composite_project_in_the_working_directory_6925": "Sestavte složený projekt v pracovním adresáři.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Sestavujte všechny projekty včetně těch, které se zdají aktuální.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Sestavit jeden nebo více projektů a jejich závislosti, pokud jsou zastaralé", "Build_option_0_requires_a_value_of_type_1_5073": "Možnost buildu {0} vyžaduje hodnotu typu {1}.", "Building_project_0_6358": "Sestavuje se projekt {0}...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Instance integrovaných iterátorů jsou vytvářeny s typem „TReturn“ s hodnotou „undefined“ místo hodnoty „any“.", "COMMAND_LINE_FLAGS_6921": "PŘÍZNAKY PŘÍKAZOVÉHO ŘÁDKU", "COMMON_COMMANDS_6916": "BĚŽNÉ PŘÍKAZY", "COMMON_COMPILER_OPTIONS_6920": "BĚŽNÉ PARAMETRY KOMPILÁTORU", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Návratové typy signatury volání {0} a {1} nejsou kompatibilní.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Signatura volání s chybějící anotací návratového typu má implicitně návratový typ any.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Signatury volání bez argumentů mají nekompatibilní návratové typy {0} a {1}.", + "Call_target_does_not_contain_any_signatures_2346": "Cíl volání neobsahuje žádné signatury.", "Can_only_convert_logical_AND_access_chains_95142": "Převést se dají jen logické řetězy přístupu AND.", "Can_only_convert_named_export_95164": "Lze převést pouze pojmenovaný export ", "Can_only_convert_property_with_modifier_95137": "Převést se dá jenom vlastnost s modifikátorem.", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Převést lze pouze zřetězení řetězců a řetězcové literály.", + "Can_only_convert_string_concatenation_95154": "Lze převést pouze zřetězení řetězců.", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "K {0}.{1} nelze získat přístup, protože {0} je typ, nikoli názvový prostor. Chtěli jste načíst typ vlastnosti {1} v {0} pomocí {0}[{1}]?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Když je povolena možnost „{0}“, nelze získat přístup k „{1}“ z jiného souboru bez kvalifikace. Místo toho použijte možnost „{2}“.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Když je povolená možnost „{0}“, nelze přistupovat k výčtům prostředí „const enum“.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Když se zadá příznak --isolatedModules, nedá se získat přístup k ambientnímu konstantnímu výčtu.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Typ konstruktoru {0} se nedá přiřadit k typu konstruktoru {1}.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Abstraktní typ konstruktoru nejde přiřadit neabstraktnímu typu konstruktoru.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Do {0} se nedá přiřazovat, protože je to třída.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Nepovedlo se najít definici knihovny pro {0}.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Nepovedlo se najít definici knihovny pro {0}. Neměli jste na mysli spíš {1}?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Nepovedlo se najít modul {0}. Zvažte možnost importovat modul s příponou .json pomocí --resolveJsonModule.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Nepovedlo se najít modul „{0}“. Nechtěli jste nastavit možnost „moduleResolution“ na „nodenext“ nebo přidat do možnosti „paths“ aliasy?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Nepovedlo se najít modul {0}. Nechtěli jste nastavit možnost moduleResolution na node nebo přidat do možnosti paths aliasy?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Nepovedlo se najít modul {0} nebo jeho odpovídající deklarace typů.", "Cannot_find_name_0_2304": "Název {0} se nenašel.", "Cannot_find_name_0_Did_you_mean_1_2552": "Nepovedlo se najít název {0}. Měli jste na mysli {1}?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Nelze najít název {0}. Nechtěli jste to napsat v asynchronní funkci?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Nepovedlo se najít název ‚{0}‘. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na ‚{1}‘ nebo novější.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Nepovedlo se najít název ‚{0}‘. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ tak, aby obsahovala ‚dom‘.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Nepodařilo se najít název „{0}“. Potřebujete nainstalovat definice typů pro Bun? Zkuste použít „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_2868": "Nepodařilo se najít název „{0}“. Potřebujete nainstalovat definice typů pro Bun? Zkuste použít „npm i --save-dev @types/bun“ a pak do pole typů v tsconfig přidejte „bun“.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Nepovedlo se najít název {0}. Potřebujete nainstalovat definice typů pro spouštěč testů? Zkuste npm i --save-dev @types/jest nebo npm i --save-dev @types/mocha.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Nepovedlo se najít název ‚{0}‘. Potřebujete nainstalovat definice typů pro spouštěč testů? Zkuste ‚npm i --save-dev@ types/jest‘ nebo ‚npm i --save-dev @types/mocha‘ a pak do polí typů v tsconfig přidejte ‚jest‘ nebo ‚mocha‘.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Nepovedlo se najít název {0}. Potřebujete nainstalovat definice typů pro jQuery? Zkuste npm i --save-dev @types/jquery.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale při destrukci pole se vždy pošle {0}.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale rozsah pole bude vždy posílat {0}.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Hodnota se nedá iterovat, protože metoda next jejího iterátoru očekává typ {1}, ale for-of bude vždy posílat {0}.", - "Cannot_move_statements_to_the_selected_file_95183": "Příkazy nelze přesunout do vybraného souboru.", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Nelze přesunout do souboru, vybraný soubor je neplatný.", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Projekt {0} se nedá předřadit, protože nemá nastavenou hodnotu outFile.", "Cannot_read_file_0_5083": "Nejde přečíst soubor {0}.", "Cannot_read_file_0_Colon_1_5012": "Nejde číst soubor {0}: {1}", "Cannot_redeclare_block_scoped_variable_0_2451": "Nejde předeklarovat proměnnou bloku {0}.", "Cannot_redeclare_exported_variable_0_2323": "Exportovanou proměnnou {0} není možné znovu deklarovat.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Nejde předeklarovat identifikátor {0} v klauzuli catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Nejde spustit volání funkce v poznámce typu.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Výstup projektu {0} se nedá aktualizovat, protože při čtení souboru {1} došlo k chybě.", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Pokud se nezadá příznak -jsx, nepůjde JSX použít.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Když se povolená možnost „{0}“, nelze pro obor názvů typů nebo obor názvů „pouze typ“ použít „export import“.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Když se zadá příznak --isolatedModules, nejde pro obor názvů typu nebo obor názvů jen pro typ použít export import.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Nejde používat importy, exporty nebo rozšíření modulu, pokud má příznak --module hodnotu none.", "Cannot_use_namespace_0_as_a_type_2709": "Obor názvů {0} nejde použít jako typ.", "Cannot_use_namespace_0_as_a_value_2708": "Obor názvů {0} nejde použít jako hodnotu.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Změnit extends na implements", "Change_spelling_to_0_90022": "Změnit pravopis na {0}", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Zkontrolujte vlastnosti třídy, které sice jsou deklarované, ale nejsou nastavené v konstruktoru.", - "Check_side_effect_imports_6806": "Zkontrolujte importy typu „side effect“.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Zkontrolujte, jestli argumenty metod bind, call a apply odpovídají původní funkci.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Kontroluje se, jestli je {0} nejdelší odpovídající předpona pro {1}–{2}.", "Circular_definition_of_import_alias_0_2303": "Cyklická definice aliasu importu {0}", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "Deklarace třídy nemůže implementovat seznam přetížení pro {0}.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Deklarace tříd nemůžou mít více než jednu značku ‚@augments‘ nebo ‚@extends‘.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Dekorátory tříd se nedají použít se statickým privátním identifikátorem. Zvažte možnost odebrat experimentální dekorátor.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Pole třídy „{0}“ definované nadřazenou třídou není v podřízené třídě přístupné přes třídu typu super.", "Class_name_cannot_be_0_2414": "Třída nemůže mít název {0}.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Když se cílí na ES5 s modulem {0}, název třídy nemůže být Object.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Statická strana třídy {0} nesprávně rozšiřuje statickou stranu základní třídy {1}.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Možnosti příkazového řádku", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Zkompilujte projekt podle cesty k jeho konfiguračnímu souboru nebo do složky se souborem tsconfig.json.", "Compiler_Diagnostics_6251": "Diagnostika kompilátoru", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "Možnost kompilátoru „{0}“ nemůže mít prázdný řetězec.", "Compiler_option_0_expects_an_argument_6044": "Parametr kompilátoru {0} očekává argument.", "Compiler_option_0_may_not_be_used_with_build_5094": "Možnost kompilátoru „--{0}“ se nesmí používat s „--build“.", "Compiler_option_0_may_only_be_used_with_build_5093": "Možnost kompilátoru „--{0}“ se smí používat jenom s „--build“.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Složené projekty nemůžou zakázat generování deklarací.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Složené projekty nemůžou zakázat přírůstkovou kompilaci.", "Computed_from_the_list_of_input_files_6911": "Vypočítáno ze seznamu vstupních souborů", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Počítané vlastnosti musí být číselné nebo řetězcové literály, proměnné nebo výrazy s tečkami s možností --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "Názvy počítaných vlastností se ve výčtech nepovolují.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Názvy počítaných vlastností v literálech třídy nebo objektu nelze odvodit pomocí možnosti --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Ve výčtu, jehož členy mají hodnoty typu string, se nepovolují vypočítané hodnoty.", "Concatenate_and_emit_output_to_single_file_6001": "Zřetězit a generovat výstup do jednoho souboru", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Podmínky, které se mají nastavit kromě výchozích hodnot specifických pro překladač při překladu importů.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Našly se konfliktní definice pro: {0} v {1} a {2}. Zvažte možnost nainstalovat specifickou verzi této knihovny, aby se konflikt vyřešil.", "Conflicts_are_in_this_file_6201": "V tomto souboru se nacházejí konflikty.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Zvažte přidání modifikátoru „declare“ do této třídy.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Návratové typy signatury konstruktu {0} a {1} nejsou kompatibilní.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Převést {0} na typ mapovaného objektu", "Convert_all_const_to_let_95102": "Převést všechny const na let", "Convert_all_constructor_functions_to_classes_95045": "Převést všechny funkce konstruktoru na třídy", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Převést všechny importy, které se nepoužívají jako hodnota, na importy, při kterých se importují jen typy.", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Převést všechny neplatné znaky na kód entity HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Převést všechny opětovně exportované typy na exporty, při kterých se exportují jen typy", "Convert_all_require_to_import_95048": "Převést všechna volání require na import", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Převést vše na číselné literály bigint", "Convert_all_to_default_imports_95035": "Převést vše na výchozí importy", "Convert_all_type_literals_to_mapped_type_95021": "Převést všechny literály typů na namapovaný typ", - "Convert_all_typedef_to_TypeScript_types_95177": "Převeďte všechny typy typedef na typy TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Převést funkci šipky nebo výraz funkce", "Convert_const_to_let_95093": "Převést const na let", "Convert_default_export_to_named_export_95061": "Převést výchozí export na pojmenovaný export", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Převést na nepovinný výraz řetězu.", "Convert_to_template_string_95096": "Převést na řetězec šablony", "Convert_to_type_only_export_1364": "Převést na export, při kterém se exportují jen typy", - "Convert_typedef_to_TypeScript_type_95176": "Převeďte typedef na typ TypeScript.", + "Convert_to_type_only_import_1373": "Převést na import, při kterém se importují jen typy", "Corrupted_locale_file_0_6051": "Soubor národního prostředí {0} je poškozený.", "Could_not_convert_to_anonymous_function_95153": "Nepovedlo se převést na anonymní funkci.", "Could_not_convert_to_arrow_function_95151": "Nepovedlo se převést na funkci šipky.", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Nepodařilo se najít název {0}. Měli jste na mysli {1}?", "Could_not_find_namespace_import_or_named_imports_95132": "Nepovedlo se najít import oboru názvů nebo pojmenované importy.", "Could_not_find_property_for_which_to_generate_accessor_95135": "Nepovedlo se najít vlastnost, pro kterou se má vygenerovat přístupový objekt.", - "Could_not_find_variable_to_inline_95185": "Nepodařilo se najít proměnnou, která se má vložit.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Nepovedlo se přeložit cestu {0} s příponami {1}.", "Could_not_write_file_0_Colon_1_5033": "Nedá se zapisovat do souboru {0}: {1}", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Vytvořte pro generované soubory JavaScriptu soubory sourcemap.", "Create_sourcemaps_for_d_ts_files_6614": "Pro soubory d.ts vytvořte soubory sourcemap.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Vytvoří tsconfig.json doporučenými nastaveními v pracovním adresáři.", "DIRECTORY_6038": "ADRESÁŘ", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Desítkové řídicí sekvence a zpětné odkazy nejsou ve třídě znaků povoleny.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Desetinná čísla s úvodními nulami nejsou povolena.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Deklarace rozšiřuje deklaraci v jiném souboru. Toto není možné serializovat.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Generování deklarace pro tento soubor vyžaduje zachování tohoto importu pro rozšíření. Toto není podporováno s možností --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0}. Explicitní anotace typu může generování deklarací odblokovat.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Generování deklarací pro tento soubor vyžaduje, aby se použil privátní název {0} z modulu {1}. Explicitní anotace typu může generování deklarací odblokovat.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Generování deklarace pro tento parametr vyžaduje implicitní přidání možnosti „undefined“ do jeho typu. Není podporováno s možností „--isolatedDeclarations“.", "Declaration_expected_1146": "Očekává se deklarace.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Název deklarace je v konfliktu s integrovaným globálním identifikátorem {0}.", "Declaration_or_statement_expected_1128": "Očekává se deklarace nebo příkaz.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Očekávala se deklarace nebo příkaz. Tento znak = následuje blok příkazů, takže pokud jste chtěli napsat destrukturační přiřazení, možná bude nutné uzavřít celé přiřazení do závorek.", + "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Očekávala se deklarace nebo příkaz. Tento znak = následuje blok příkazů, takže pokud jste chtěli napsat destrukturující přiřazení, možná bude nutné uzavřít celé přiřazení do závorek.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Deklarace s kontrolními výrazy jednoznačného přiřazení musí mít také anotace typu.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Deklarace s inicializátory nemůžou mít také kontrolní výrazy jednoznačného přiřazení.", "Declare_a_private_field_named_0_90053": "Deklarovat privátní pole s názvem {0}", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Deklarovat statickou vlastnost {0}", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Návratový typ funkce dekoratéru {0} se nedá přiřadit k typu {1}.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Návratový typ funkce dekoratéru je {0}, ale očekává se, že bude void nebo any.", - "Decorator_used_before_export_here_1486": "Dekoratér je tu použit před možností „export“.", "Decorators_are_not_valid_here_1206": "Dekorátory tady nejsou platné.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Dekorátory nejde použít na víc přístupových objektů get/set se stejným názvem.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Dekoratéry se nemůžou vyskytovat po „export“ nebo „export default“, pokud se taky vyskytují před možností „export“.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Pro „tyto“ parametry asi nejdou použít dekoratéry.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Dekoratéry musí předcházet název a všechna klíčová slova deklarace vlastností.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Výchozí proměnné klauzule catch jako unknown namísto any.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Výchozí export modulu má nebo používá privátní název {0}.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Výchozí exporty nelze odvodit pomocí --isolatedDeclarations.", "Default_library_1424": "Výchozí knihovna", "Default_library_for_target_0_1425": "Výchozí knihovna pro cíl {0}", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definice následujících identifikátorů je v konfliktu s definicemi v jiném souboru: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Zakažte v generovaném kódu mazání deklarací const enum.", "Disable_error_reporting_for_unreachable_code_6603": "Zakažte hlášení chyb, pokud je kód nedosažitelný.", "Disable_error_reporting_for_unused_labels_6604": "Zakažte hlášení chyb u nepoužitých popisků.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Zakažte úplnou kontrolu typů (budou hlášeny pouze kritické chyby analýzy a generování).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Zakázat v kompilovaném výstupu generování vlastních pomocných funkcí, jako je __extends.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Zakažte zahrnutí všech souborů knihoven, včetně výchozí lib.d.ts.", "Disable_loading_referenced_projects_6235": "Zakažte načítání odkazovaných projektů.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Zakázat import, require nebo zvětšování počtu souborů, které by typeScript měl přidat do projektu.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Zakažte odkazy na stejný soubor s nekonzistentně použitými malými a velkými písmeny.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Nepřidávat odkazy se třemi lomítky nebo importované moduly do seznamu kompilovaných souborů", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Nepovolit konstruktory modulu runtime, které nejsou součástí ECMAScriptu", "Do_not_emit_comments_to_output_6009": "Negenerovat komentáře pro výstup", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Negenerovat deklarace pro kód s anotací @internal", "Do_not_emit_outputs_6010": "Negenerovat výstupy", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Neoznamují se chyby v nedosažitelném kódu.", "Do_not_report_errors_on_unused_labels_6074": "Neoznamují se chyby v nepoužívaných popiscích.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Nepřekládat skutečnou cestu symbolických odkazů", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Netransformujte ani nevynechávejte žádné importy nebo exporty, které nejsou označeny jako „pouze typ“, a zajistěte, aby byly zapsány ve formátu výstupního souboru podle nastavení „module“.", "Do_not_truncate_error_messages_6165": "Nezkracovat chybové zprávy", "Duplicate_function_implementation_2393": "Duplicitní implementace funkce", "Duplicate_identifier_0_2300": "Duplicitní identifikátor {0}", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Duplicitní signatura indexu pro typ {0}.", "Duplicate_label_0_1114": "Duplicitní popisek {0}", "Duplicate_property_0_2718": "Duplicitní vlastnost {0}.", - "Duplicate_regular_expression_flag_1500": "Duplikovaný příznak regulárního výrazu", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Specifikátor dynamického importu musí být typu string, ale tady má typ {0}.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamické importy se podporují jen v případě, že příznak --module je nastavený na es2020, es2022, esnext, commonjs, amd, system, umd, node16, node18 nebo nodenext.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Dynamické importy můžou jako argumenty přijímat jenom specifikátor modulu a volitelnou sadu atributů.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Dynamické importy podporují druhý argument, pouze pokud je možnost --module nastavena na esnext, node16, node18, nodenext nebo preserve.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "Když je možnost „module“ nastavená na „preserve“, v modulu CommonJS se nepovoluje syntaxe ESM.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "Když je povolená syntaxe „verbatimModuleSyntax“, není v modulu CommonJS povolená syntaxe ESM.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Každá deklarace „{0}.{1}“ se liší ve své hodnotě. Bylo očekáváno „{2}“, ale zadáno bylo „{3}“.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamické importy se podporují jen v případě, že příznak --module je nastavený na es2020, es2022, esnext, commonjs, amd, system, umd, node16 nebo nodenext.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dynamické importy můžou jako argumenty přijímat jenom specifikátor modulu a volitelný kontrolní výraz.", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Dynamické importy podporují druhý argument pouze, pokud je možnost --module nastavena na hodnotu esnext, node16 nebo nodenext.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Každý člen typu sjednocení {0} má signatury konstruktu, ale žádná z těchto signatur není kompatibilní s jinou signaturou.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Každý člen typu sjednocení {0} má signatury, ale žádná z těchto signatur není kompatibilní s jinou signaturou.", "Editor_Support_6249": "Podpora editoru", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Povolit hlášení chyb v javascriptových souborech se zkontrolovanými typy.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Povolte hlášení chyb, když se místní proměnná nepřečte.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Povolte hlášení chyb, když má „this“ určený typ „any“.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Povolte experimentální podporu pro starší experimentální dekoratéry.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Povolte import souborů s libovolnou příponou za předpokladu, že je k dispozici soubor deklarace.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Povolte zkušební podporu pracovních verzí dekoratérů TC39 fáze 2.", "Enable_importing_json_files_6689": "Povolte importování souborů .json.", - "Enable_lib_replacement_6808": "Povolit nahrazení knihovny", "Enable_project_compilation_6302": "Povolit kompilování projektu", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Povolte ve funkcích metody bind, call a apply.", "Enable_strict_checking_of_function_types_6186": "Povolí striktní kontrolu typů funkcí.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Při importu ověřovat správnost používání malých a velkých písmen.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Zajistit bezpečnou transpilaci všech souborů bez spoléhání na jiné importy.", "Ensure_use_strict_is_always_emitted_6605": "Vždy zajistěte generování direktivy „use strict“.", - "Entering_conditional_exports_6413": "Vstup do podmíněných exportů", "Entry_point_for_implicit_type_library_0_1420": "Vstupní bod pro knihovnu implicitních typů {0}", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Vstupní bod pro knihovnu implicitních typů {0} s packageId {1}", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Vstupní bod pro knihovnu typů {0} zadanou v compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Deklarace výčtu jdou sloučit jenom s oborem názvů nebo jinými deklaracemi výčtu.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Všechny deklarace výčtu musí být konstantní nebo nekonstantní.", "Enum_member_expected_1132": "Očekává se člen výčtu.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Když je povolená možnost „isolatedModules“, musí mít člen výčtu následující po neliterálovém číselném členu inicializátor.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Inicializátory členů výčtu musí být počítatelné bez odkazů na externí symboly s možností „--isolatedDeclarations“.", "Enum_member_must_have_initializer_1061": "Člen výčtu musí mít inicializátor.", "Enum_name_cannot_be_0_2431": "Název výčtu nemůže být {0}.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Typ výčtu {0} má členy s inicializátory, které nejsou literály.", "Errors_Files_6041": "Soubory chyb", - "Escape_sequence_0_is_not_allowed_1488": "Řídicí sekvence „{0}“ není povolená.", "Examples_Colon_0_6026": "Příklady: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Nadměrná složitost při porovnávání typů „{0}“ a „{1}“.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Nadměrná hloubka zásobníku při porovnávání typů {0} a {1}", - "Exiting_conditional_exports_6416": "Opuštění podmíněných exportů.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Očekávané argumenty typu {0}–{1}; zadejte je se značkou @extends.", "Expected_0_arguments_but_got_1_2554": "Očekával se tento počet argumentů: {0}. Počet předaných argumentů: {1}", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Očekával se tento počet argumentů: {0}, ale byl přijat tento počet: {1}. Nezapomněli jste zahrnout void do argumentu typu pro objekt Promise?", "Expected_0_type_arguments_but_got_1_2558": "Očekávaly se argumenty typu {0}, ale předaly se argumenty typu {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Očekávané argumenty typu {0}; zadejte je se značkou @extends.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Očekával se 1 argument, ale bylo jich 0. New Promise() potřebuje pomocný parametr JSDoc k vytvoření resolve, který se dá volat bez argumentů.", - "Expected_a_Unicode_property_name_1523": "Byl očekáván název vlastnosti Unicode.", - "Expected_a_Unicode_property_name_or_value_1527": "Byl očekáván název nebo hodnota vlastnosti Unicode.", - "Expected_a_Unicode_property_value_1525": "Byla očekávána hodnota vlastnosti Unicode.", - "Expected_a_capturing_group_name_1514": "Byl očekáván název zachycující skupiny.", - "Expected_a_class_set_operand_1520": "Byl očekáván operand nastavení třídy.", "Expected_at_least_0_arguments_but_got_1_2555": "Očekával se aspoň tento počet argumentů: {0}. Počet předaných argumentů: {1}", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Očekávala se odpovídající ukončující značka JSX pro {0}.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Pro fragment JSX se očekávala odpovídající uzavírací značka.", "Expected_for_property_initializer_1442": "Pro inicializátor vlastnosti se očekával znak =.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Očekávaný typ pole {0} v souboru package.json byl {1}, získal se typ {2}.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Experimentální podpora dekorátorů je funkce, která se v budoucí verzi může změnit. Toto upozornění odstraníte nastavením možnosti experimentalDecorators v tsconfig nebo jsconfig.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Explicitně zadaný druh překladu modulu: {0}.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Pokud není možnost target nastavená na es2016 nebo novější, nedají se hodnoty bigint umocnit.", "Export_0_from_module_1_90059": "Exportovat {0} z modulu {1}", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "Exportovaná proměnná {0} má nebo používá privátní název {1}.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Exporty a přiřazení exportů nejsou povolené v rozšířeních modulů.", "Expression_expected_1109": "Očekával se výraz.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "Výraz musí být uzavřen v závorkách, aby se mohl používat jako dekoratér.", "Expression_or_comma_expected_1137": "Očekával se výraz nebo čárka.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Výraz vytvoří typ řazené kolekce členů, který se nedá reprezentovat, protože je příliš velký.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Výraz vytvoří typ sjednocení, který se nedá reprezentovat, protože je příliš složitý.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Výraz se přeloží na identifikátor _super, pomocí kterého kompilátor zaznamenává odkaz na základní třídu.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Výraz se vyhodnocuje na deklaraci proměnné _newTarget, kterou kompilátor používá k zachycení odkazu na metavlastnost new.target.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Výraz se přeloží na deklaraci proměnné _this, pomocí které kompilátor zaznamenává odkazy na příkaz this.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Typ výrazu nejde odvodit pomocí --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Klauzule Extends nemůže obsahovat výraz s možností „--isolatedDeclarations“.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Klauzule extends pro odvozený typ „{0}“ má nebo používá privátní název „{1}“.", - "Extract_base_class_to_variable_90064": "Extrahovat základní třídu do proměnné", - "Extract_binding_expressions_to_variable_90066": "Extrahujte výrazy s vazbami do proměnné", "Extract_constant_95006": "Extrahovat konstantu", - "Extract_default_export_to_variable_90065": "Extrahovat výchozí export do proměnné", "Extract_function_95005": "Extrahovat funkci", "Extract_to_0_in_1_95004": "Extrahovat do {0} v {1}", "Extract_to_0_in_1_scope_95008": "Extrahovat do {0} v oboru {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Extrahovat do rozhraní", "Extract_to_type_alias_95078": "Extrahovat do aliasu typu", "Extract_to_typedef_95079": "Extrahovat do typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Extrahovat do proměnné a nahradit pomocí „{0} as typeof {0}“", "Extract_type_95077": "Typ extrahování", "FILE_6035": "SOUBOR", "FILE_OR_DIRECTORY_6040": "SOUBOR NEBO ADRESÁŘ", - "Failed_to_find_peerDependency_0_6283": "Nepodařilo se najít peerDependency „{0}“.", - "Failed_to_resolve_under_condition_0_6415": "Nepodařilo se přeložit za podmínky „{0}“.", + "Failed_to_parse_file_0_Colon_1_5014": "Nepovedlo se parsovat soubor {0}: {1}.", "Fallthrough_case_in_switch_7029": "Případ Fallthrough v příkazu switch", "File_0_does_not_exist_6096": "Soubor {0} neexistuje.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Podle dřívějších vyhledávání v mezipaměti soubor {0} neexistuje.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Soubor {0} existuje – použijte ho jako výsledek překladu IP adres.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Podle dřívějších vyhledávání v mezipaměti soubor {0} existuje.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Soubor „{0}“ existuje – použijte ho jako výsledek překladu IP adres.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Soubor {0} má nepodporovanou příponu. Jediné podporované přípony jsou {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Soubor {0} má nepodporovanou příponu, a proto se přeskočí.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Soubor {0} je javascriptový soubor. Nechtěli jste povolit možnost allowJs?", "File_0_is_not_a_module_2306": "Soubor {0} není modul.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Soubor {0} není uvedený na seznamu souborů projektu {1}. Projekty musí uvádět všechny soubory nebo používat vzor include.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Soubor {0} není pod kořenovým adresářem rootDir {1}. Očekává se, že rootDir bude obsahovat všechny zdrojové soubory.", "File_0_not_found_6053": "Soubor {0} se nenašel.", "File_Management_6245": "Správa souborů", - "File_appears_to_be_binary_1490": "Zdá se, že soubor je binární.", "File_change_detected_Starting_incremental_compilation_6032": "Zjistila se změna souboru. Spouští se přírůstková kompilace...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Soubor je modul CommonJS, protože {0} nemá pole type", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Soubor je modul CommonJS, protože {0} má pole type, jehož hodnota není module", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Soubor je výstup zdroje odkazů na projekt {0}.", "File_is_source_from_referenced_project_specified_here_1416": "Soubor je zdroj z odkazovaného projektu zadaného na tomto místě.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Název souboru {0} se od už zahrnutého názvu souboru {1} liší jenom velikostí písmen.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Název souboru „{0}“ má příponu „{1}“ – místo toho se hledá: „{2}“.", "File_name_0_has_a_1_extension_stripping_it_6132": "Název souboru {0} má příponu {1} – odstraňuje se", "File_redirects_to_file_0_1429": "Soubor se přesměrovává na soubor {0}.", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Specifikace souboru nemůže obsahovat nadřazený adresář (..), který se vyskytuje za rekurzivním zástupným znakem adresáře (**): {0}.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Opravit všechny výrazy, kde je možné, že chybí await", "Fix_all_implicit_this_errors_95107": "Opravit všechny chyby implicit-'this'", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Opravit všechny nesprávné návratové typy asynchronních funkcí", - "Fix_all_with_type_only_imports_95182": "Opravit vše s importy „type-only“", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Smyčky „For await“ nejde použít uvnitř statického bloku třídy.", "Found_0_errors_6217": "Našel se tento počet chyb: {0}.", "Found_0_errors_Watching_for_file_changes_6194": "Byl nalezen tento počet chyb: {0}. Sledují se změny souborů.", "Found_0_errors_in_1_files_6261": "V {1} souborech byly nalezeny chyby ({0}).", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Ve stejném souboru byly nalezeny chyby ({0}). Začínají na: {1}", "Found_1_error_6216": "Našla se 1 chyba.", "Found_1_error_Watching_for_file_changes_6193": "Byla nalezena 1 chyba. Sledují se změny souborů.", - "Found_1_error_in_0_6259": "Našla se 1 chyba v {0}.", + "Found_1_error_in_1_6259": "Našla se 1 chyba v {1}.", "Found_package_json_at_0_6099": "Soubor package.json se našel v {0}.", - "Found_peerDependency_0_with_1_version_6282": "Nalezeno: peerDependency – „{0}“ s verzí „{1}“", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl „ES5“.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl „ES5“. Definice tříd jsou automaticky ve striktním režimu.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl „ES5“. Moduly jsou automaticky ve striktním režimu.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5. Definice tříd jsou automaticky ve striktním režimu.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Deklarace funkcí nejsou povolené uvnitř bloků ve striktním režimu, pokud je cíl ES3 nebo ES5. Moduly jsou automaticky ve striktním režimu.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Výraz funkce s chybějící anotací návratového typu má implicitně návratový typ {0}.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Implementace funkce chybí nebo nenásleduje hned po deklaraci.", "Function_implementation_name_must_be_0_2389": "Název implementace funkce musí být {0}.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Funkce implicitně obsahuje návratový typ any, protože neobsahuje anotaci návratového typu a odkazuje se na ni přímo nebo nepřímo v jednom z jejích návratových výrazů.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Ve funkci chybí koncový příkaz return a návratový typ neobsahuje undefined.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "Funkce musí mít explicitní anotaci návratového typu s možností „--isolatedDeclarations“.", "Function_not_implemented_95159": "Funkce není implementovaná.", "Function_overload_must_be_static_2387": "Přetížení funkce musí být statické.", "Function_overload_must_not_be_static_2388": "Přetížení funkce nesmí být statické.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Generuje trasování události a seznam typů.", "Generates_corresponding_d_ts_file_6002": "Generuje odpovídající soubor .d.ts.", "Generates_corresponding_map_file_6043": "Generuje odpovídající soubor .map.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Generátor má implicitně typ yield {0}. Zvažte možnost přidat anotaci návratového typu.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Generátor má implicitně typ yield {0}, protože nevydává žádné hodnoty. Zvažte možnost přidat anotaci návratového typu.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Generátory nejsou v ambientním kontextu povolené.", "Generic_type_0_requires_1_type_argument_s_2314": "Obecný typ {0} vyžaduje argumenty typu {1}.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Obecný typ {0} vyžaduje konkrétní počet argumentů ({1} až {2}).", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Očekával se identifikátor.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Očekává se identifikátor. __esModule je při transformaci modulů ECMAScript rezervované jako označení exportu.", "Identifier_or_string_literal_expected_1478": "Očekává se identifikátor nebo řetězcový literál.", - "Identifier_string_literal_or_number_literal_expected_1496": "Očekával se identifikátor, řetězcový literál nebo číselný literál.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Pokud balíček ‚{0}‘ ve skutečnosti zveřejňuje tento modul, zvažte možnost poslat žádost o přijetí změn, aby se připojila adresa ‚https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}‘", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Pokud balíček {0} skutečně zpřístupňuje tento modul, zkuste přidat nový soubor deklarace (.d.ts), který obsahuje declare module {1};", "Ignore_this_error_message_90019": "Ignorovat tuto chybovou zprávu", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implementovat rozhraní {0}", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Klauzule implements exportované třídy {0} má nebo používá privátní název {1}.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Implicitní převod symbol na string za běhu neproběhne úspěšně. Zvažte možnost zabalit tento výraz do String(...).", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "Import „{0}“ je v konfliktu s globální hodnotou použitou v tomto souboru, proto se musí deklarovat s importem „type-only“, pokud je povolena možnost „isolatedModules“.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "Import „{0}“ je v konfliktu s lokální hodnotou, proto se musí deklarovat s importem „type-only“, pokud je povolena možnost „isolatedModules“.", "Import_0_from_1_90013": "Importovat {0} z: {1}", "Import_assertion_values_must_be_string_literal_expressions_2837": "Hodnoty kontrolních výrazů importu musí být výrazy formou řetězcových literálů.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "V příkazech, které se kompilují na volání CommonJS „require“, se nepovolují kontrolní výrazy importu.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Kontrolní výrazy importu jsou podporovány pouze v případě, že je možnost --module nastavena na esnext, node18, nodenext nebo preserve.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "V příkazech, které se překládají na volání require commonjs, se kontrolní výrazy importu nepovolují.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Kontrolní výrazy importu jsou podporovány pouze v případě, že je možnost --module nastavena na hodnotu esnext nebo nodenext.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Kontrolní výrazy importu se nedají použít s importy nebo exporty, které jsou jenom typ.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Kontrolní výrazy importu byly nahrazeny atributy importu. Místo assert použijte with.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Přiřazení importu nelze použít, pokud jsou cílem moduly ECMAScript. Zkuste místo toho použít import * as ns from \"mod\", import {a} from \"mod\", import d from \"mod\" nebo jiný formát modulu.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Hodnoty atributů importu musí být výrazy formou řetězcových literálů.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "V příkazech, které se kompilují na volání CommonJS „require“, se nepovolují atributy importu.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Atributy importu jsou podporovány pouze v případě, že je možnost --module nastavena na esnext, node18, nodenext nebo preserve.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Atributy importu se nedají použít s importy nebo exporty „type-only“.", "Import_declaration_0_is_using_private_name_1_4000": "Deklarace importu {0} používá privátní název {1}.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Deklarace importu je v konfliktu s místní deklarací {0}.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Deklarace importu v oboru názvů nemůžou odkazovat na modul.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Importováno přes {0} ze souboru {1} s packageId {2}", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importováno přes {0} ze souboru {1} s packageId {2}, aby se provedl import importHelpers tak, jak je to zadáno v compilerOptions", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importováno přes {0} ze souboru {1} s packageId {2}, aby se provedl import výrobních funkcí jsx a jsxs", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "Import souboru JSON do modulu ECMAScript vyžaduje atribut importu type: \"json\", pokud je možnost module nastavená na {0}.", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importy nejsou povolené v rozšířeních modulů. Zvažte jejich přesunutí do uzavírajícího externího modulu.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Inicializátor členu v deklaracích ambientního výčtu musí být konstantní výraz.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Ve výčtu s víc deklaracemi může být jenom u jedné deklarace vynechaný inicializátor u prvního elementu výčtu.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Zahrňte do generovaného JavaScriptu soubory sourcemap.", "Includes_imports_of_types_referenced_by_0_90054": "Zahrnuje importy typů, na které odkazuje {0}", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Včetně --watch, -w začne sledovat aktuální projekt ohledně změn souboru. Po nastavení můžete konfigurovat režim sledování pomocí:", - "Incomplete_quantifier_Digit_expected_1505": "Neúplný kvantifikátor Očekává se číslice.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "Signatura indexu pro typ {0} chybí v typu {1}.", "Index_signature_in_type_0_only_permits_reading_2542": "Signatura indexu v typu {0} povoluje jen čtení.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Jednotlivé deklarace ve sloučené deklaraci {0} musí být všechny exportované nebo všechny místní.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Odvodit typy parametrů z využití", "Infer_this_type_of_0_from_usage_95080": "Vyvodit typ this pro {0} z použití", "Infer_type_of_0_from_usage_95011": "Odvodit typ {0} z využití", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Odvozování z výrazů tříd není podporováno s možností „--isolatedDeclarations“.", "Initialize_property_0_in_the_constructor_90020": "Inicializovat vlastnost {0} v konstruktoru", "Initialize_static_property_0_90021": "Inicializovat statickou vlastnost {0}", "Initializer_for_property_0_2811": "Inicializátor vlastnosti „{0}“", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Inicializátor instance členské proměnné {0} nemůže odkazovat na identifikátor {1} deklarovaný v konstruktoru.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Inicializátor tomuto elementu vazby neposkytuje žádnou hodnotu. Element vazby nemá žádnou výchozí hodnotu.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Inicializátory nejsou povolené v ambientních kontextech.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicializuje projekt TypeScript a vytvoří soubor tsconfig.json.", - "Inline_variable_95184": "Vložená proměnná", "Insert_command_line_options_and_files_from_a_file_6030": "Vložte parametry příkazového řádku a soubory ze souboru.", "Install_0_95014": "Nainstalovat {0}", "Install_all_missing_types_packages_95033": "Nainstalovat všechny chybějící balíčky typů", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "V rozšíření je neplatný název modulu, modul {0} se nedá najít.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Neplatný volitelný řetěz z nového výrazu. Chtěli jste volat {0}()?", "Invalid_reference_directive_syntax_1084": "Neplatná syntaxe direktivy reference", - "Invalid_syntax_in_decorator_1498": "Neplatná syntaxe v dekoratéru", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Neplatné použití „{0}“. Nelze jej použít uvnitř statického bloku třídy.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Neplatné použití {0}. Moduly jsou automaticky ve striktním režimu.", "Invalid_use_of_0_in_strict_mode_1100": "Neplatné použití {0} ve striktním režimu", - "Invalid_value_for_ignoreDeprecations_5103": "Neplatná hodnota pro možnost „--ignoreDeprecations“", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Neplatná hodnota pro jsxFactory. {0} není platný identifikátor nebo kvalifikovaný název.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Neplatná hodnota pro jsxFragmentFactory. {0} není platný identifikátor nebo kvalifikovaný název.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Neplatná hodnota --reactNamespace. {0} není platný identifikátor.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Typ prvku {0} není platný prvek JSX.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Typ instance {0} není platný prvek JSX.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Návratový typ {0} není platný prvek JSX.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Typ „{0}“ není platný typ elementu JSX.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Značka JSDoc @{0} {1} neodpovídá klauzuli extends {2}.", "JSDoc_0_is_not_attached_to_a_class_8022": "Značka JSDoc @{0} není připojená k třídě.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc ... se může nacházet jen v posledním parametru signatury.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Značka JSDoc @param má název {0}, ale neexistuje žádný parametr s tímto názvem.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Značka JSDoc @param má název {0}, ale žádný parametr s tímto názvem neexistuje. Musí odpovídat hodnotě arguments, pokud má typ pole.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef se dá převést na typ TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Značka JSDoc @typedef by měla mít poznámku k typu nebo by za ní měly následovat značky @property nebo @member.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedef lze převádět na typy TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Typy JSDoc se můžou používat jenom v dokumentačních komentářích.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Typy JSDoc se můžou přesunout na typy TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Atributy JSX musí mít přiřazený neprázdný výraz.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Seznam složek, ze kterých se zahrnou definice typů", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Seznam kořenových složek, jejichž kombinovaný obsah představuje strukturu projektu za běhu", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Načítá se {0} z kořenového adresáře {1}, umístění kandidáta {2}.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Načítá se modul „{0}“ ze složky node_modules. Cílové typy souborů: {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Načítá se modul jako soubor/složka, umístění kandidátského modulu: „{0}“, cílové typy souborů: {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Načítá se modul {0} ze složky node_modules. Cílový typ souboru je {1}.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Načítá se modul jako soubor/složka, umístění kandidátského modulu: {0}, cílový typ souboru: {1}.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Národní prostředí musí mít tvar nebo . Třeba {0} nebo {1}.", "Log_paths_used_during_the_moduleResolution_process_6706": "Cesty protokolu používané v procesu moduleResolution.", "Longest_matching_prefix_for_0_is_1_6108": "Nejdelší odpovídající předpona pro {0} je {1}.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Vytvořte klíč jenom ze zpětných řetězců místo z řetězců, čísel nebo symbolů (možnost ze starší verze).", "Make_super_call_the_first_statement_in_the_constructor_90002": "Nastavit volání metody super() jako první příkaz v konstruktoru", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Typu mapovaného objektu má implicitně typ šablony any.", - "Mark_array_literal_as_const_90070": "Označit literál pole jako const", "Matched_0_condition_1_6403": "Odpovídá {0} podmínce {1}", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Porovnává se ve výchozím nastavení se vzorem zahrnutí **/*.", "Matched_by_include_pattern_0_in_1_1407": "Porovnáváno podle vzoru zahrnutí {0} v {1}", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Metoda {0} nemůže mít implementaci, protože je označená jako abstraktní.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Metoda {0} z exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Metoda {0} z exportovaného rozhraní má nebo používá privátní název {1}.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Metoda musí mít explicitní anotaci návratového typu s možností „--isolatedDeclarations“.", "Method_not_implemented_95158": "Metoda není implementovaná.", "Modifiers_cannot_appear_here_1184": "Tady nejde použít modifikátory.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Modul {0} se dá importovat podle výchozího nastavení jen pomocí příznaku {1}.", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Modul {0} nemá žádný exportovaný člen {1}. Nechtěli jste místo toho použít import { {1} } from {0}?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Modul {0} je skrytý místní deklarací se stejným názvem.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Modul {0} používá export = a nedá se použít s možností export *.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Modul {0} se převedl jako ambientní modul deklarovaný v {1}, protože tento soubor nebyl upraven.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Modul {0} se převedl jako lokálně deklarovaný ambientní modul v souboru {1}.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Modul „{0}“ byl přeložen na „{1}“, ale není nastavena možnost „--allowArbitraryExtensions“.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Modul {0} se přeložil na {1}, není ale nastavená možnost --jsx.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Modul {0} se přeložil na {1}, ale nepoužívá se --resolveJsonModule.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Názvy deklarací modulů můžou používat jenom řetězce v jednoduchých nebo dvojitých uvozovkách.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Překlad modulu pomocí rootDirs se nepovedl.", "Modules_6244": "Moduly", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Přesunout modifikátory elementu popsané řazené kolekce členů na popisky", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Přesuňte výraz ve výchozím exportu do proměnné a přidejte k němu anotaci typu.", "Move_to_a_new_file_95049": "Přesunout do nového souboru", - "Move_to_file_95178": "Přesunout do souboru", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Více po sobě jdoucích číselných oddělovačů se nepovoluje.", "Multiple_constructor_implementations_are_not_allowed_2392": "Víc implementací konstruktoru se nepovoluje.", "NEWLINE_6061": "NOVÝ ŘÁDEK", "Name_is_not_valid_95136": "Název není platný.", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Pojmenované zachytávací skupiny jsou k dispozici jen při cílení na „ES2018“ nebo novější.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Pojmenované zachytávací skupiny se stejným názvem se musí navzájem vylučovat.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Pojmenované importy ze souboru JSON do modulu ECMAScript nejsou povolené, když je možnost module nastavená na {0}.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Pojmenovaná vlastnost {0} není u typu {1} stejná jako u typu {2}.", "Namespace_0_has_no_exported_member_1_2694": "Obor názvů {0} nemá žádný exportovaný člen {1}.", "Namespace_must_be_given_a_name_1437": "Obor názvů musí mít název.", "Namespace_name_cannot_be_0_2819": "Název oboru názvů nemůže být „{0}“.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Pokud je povolena možnost „{0}“, nejsou v souborech globálních skriptů povoleny obory názvů. Pokud tento soubor nemá být globálním skriptem, nastavte možnost „moduleDetection“ na hodnotu „force“ nebo přidejte prázdný příkaz „export {}“.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "U parametrů „this“ nelze použít dekoratéry ani modifikátory.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Žádný základní konstruktor nemá zadaný počet argumentů typu.", "No_constituent_of_type_0_is_callable_2755": "Žádný konstituent typu {0} se nedá zavolat.", "No_constituent_of_type_0_is_constructable_2759": "Žádný konstituent typu {0} se nedá vytvořit.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Žádné přetížení neodpovídá tomuto volání.", "No_type_could_be_extracted_from_this_type_node_95134": "Z tohoto uzlu typů nešlo extrahovat žádný typ.", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "V oboru pro sdruženou vlastnost {0} neexistuje žádná hodnota. Buď nějakou deklarujte, nebo poskytněte inicializátor.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Neabstraktní třída „{0}“ neimplementuje zděděného abstraktního člena {1} ze třídy „{2}“.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "V neabstraktní třídě „{0}“ chybí implementace pro následující členy „{1}“: {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "V neabstraktní třídě {0} chybí implementace pro následující členy „{1}“: {2} a {3} další(ch).", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Neabstraktní třída {0} neimplementuje zděděného abstraktního člena {1} ze třídy {2}.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Výraz neabstraktní třídy neimplementuje zděděný abstraktní člen {0} z třídy {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Ve výrazu neabstraktní třídy chybí implementace pro následující členy „{0}“: {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Ve výrazu neabstraktní třídy chybí implementace pro následující členy „{0}“: {1} a {2} další(ch).", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Kontrolní výrazy jiné než null se dají používat jen v typescriptových souborech.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Nerelativní cesty nejsou povolené, pokud není nastavená hodnota baseUrl. Nezapomněli jste na úvodní znak „./“?", "Non_simple_parameter_declared_here_1348": "Deklaroval se tady parametr, který není jednoduchý.", "Not_all_code_paths_return_a_value_7030": "Ne všechny cesty kódu vracejí hodnotu.", "Not_all_constituents_of_type_0_are_callable_2756": "Ne všichni konstituenti typu {0} se dají zavolat.", "Not_all_constituents_of_type_0_are_constructable_2760": "Ne všichni konstituenti typu {0} se dají vytvořit.", - "Numbers_out_of_order_in_quantifier_1506": "Čísla ve kvantifikátoru jsou mimo pořadí.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Číselné literály s absolutními hodnotami, které se rovnají hodnotě 2^53 nebo větší, se nedají reprezentovat přesně jako celá čísla, protože jsou příliš velké.", "Numeric_separators_are_not_allowed_here_6188": "Číselné oddělovače tady nejsou povolené.", "Object_is_of_type_unknown_2571": "Objekt je typu Neznámý.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Literál objektu může specifikovat jenom známé vlastnosti a {0} v typu {1} neexistuje.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Literál objektu může určovat jenom známé vlastnosti, ale {0} v typu {1} neexistuje. Chtěli jste zapsat {2}?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Vlastnost {0} literálu objektu má implicitně typ {1}.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Objekty, které obsahují sdružené vlastnosti, nelze odvodit pomocí možnosti „--isolatedDeclarations“.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Objekty, které obsahují přiřazení rozprostření, se nedají odvodit pomocí možnosti „--isolatedDeclarations“.", "Octal_digit_expected_1178": "Očekává se osmičková číslice.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Osmičkové řídicí sekvence a zpětné odkazy nejsou ve třídě znaků povoleny. Pokud to bylo zamýšleno jako řídicí sekvence, použijte místo toho syntaxi „{0}“.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Osmičkové řídicí sekvence nejsou povoleny. Použijte syntaxi „{0}“.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Osmičkové literály nejsou povoleny. Použijte syntaxi „{0}“.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Jedna hodnota z „{0}.{1}“ je řetězec „{2}“ a druhá hodnota se považuje za neznámou číselnou hodnotu.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Osmičkové literální typy musí používat syntaxi ES2015. Použijte syntaxi {0}.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Osmičkové literály nejsou povolené v inicializátoru členů výčtů. Použijte syntaxi {0}.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Osmičkové literály nejsou ve striktním režimu povolené.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Osmičkové literály nejsou dostupné při cílení na ECMAScript 5 a vyšší. Použijte syntaxi {0}.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "V příkazu for...in se povoluje deklarovat jenom jednu proměnnou.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "V příkazu for...of se povoluje deklarovat jenom jednu proměnnou.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Klíčovým slovem new se dá volat jenom funkce void.", "Only_ambient_modules_can_use_quoted_names_1035": "Názvy v uvozovkách můžou mít jenom ambientní moduly.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Spolu s --{0} se podporují jenom moduly amd a system.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Pomocí možnosti „--isolatedDeclarations“ lze odvodit pouze pole const.", "Only_emit_d_ts_declaration_files_6014": "Bude vydávat jen soubory deklarací .d.ts.", + "Only_named_exports_may_use_export_type_1383": "Jen pojmenované exporty můžou používat export type.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Počítané členy můžou obsahovat jen číselné výčty, ale tento výraz je typu {0}. Pokud nepotřebujete kontroly úplnosti, zvažte místo něho použít objekt literálu.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Zahrňte do výstupu jenom soubory d.ts, nikoli soubory JavaScriptu.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Prostřednictvím klíčového slova super jsou přístupné jenom veřejné a chráněné metody základní třídy.", "Operator_0_cannot_be_applied_to_type_1_2736": "Operátor {0} se nedá použít na typ {1}.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Operátor {0} nejde použít u typů {1} a {2}.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "V rámci třídy znaků nelze kombinovat operátory. Místo toho je zabalte do vnořené třídy.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Při úpravách vyloučit projekt z kontroly odkazů ve více projektech.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "Možnost „{0}={1}“ byla odebrána. Odeberte ji prosím z konfigurace.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "Možnost „{0}={1}“ je zastaralá a v jazyce TypeScript {2} přestane fungovat. Tuto chybu můžete potlačit zadáním compilerOption '\"ignoreDeprecations\": \"{3}\"'.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Možnost {0} jde zadat jenom v souboru tsconfig.json nebo nastavit na příkazovém řádku na hodnotu false nebo null.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Možnost {0} jde zadat jenom v souboru tsconfig.json nebo nastavit na příkazovém řádku na hodnotu null.", - "Option_0_can_only_be_specified_on_command_line_6266": "Možnost „{0}“ lze zadat pouze na příkazovém řádku.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Možnost {0} jde použít jenom při zadání možnosti --inlineSourceMap nebo možnosti --sourceMap.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "Možnost „{0}“ se dá použít jenom v případě, že je možnost „moduleResolution“ nastavená na „node16“, „nodenext“ nebo „bundler“.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "Možnost „{0}“ se dá použít jenom v případě, že je možnost „modul“ nastavená na „preserve“ nebo na „es2015“ a novější.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Když je možnost jsx nastavená na {1}, možnost {0} se nedá zadat.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Když je možnost target nastavená na ES3, možnost {0} se nedá zadat.", "Option_0_cannot_be_specified_with_option_1_5053": "Možnosti {0} a {1} nejde zadat zároveň.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Možnost {0} nejde zadat bez možnosti {1}.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Možnost {0} nejde zadat bez možnosti {1} nebo {2}.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "Možnost „{0}“ byla odebrána. Odeberte ji prosím z konfigurace.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "Možnost „{0}“ je zastaralá a v jazyce TypeScript {1} přestane fungovat. Tuto chybu můžete potlačit zadáním compilerOption '\"ignoreDeprecations\": \"{2}\"'.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "Možnost „{0}“ je redundantní a nelze ji zadat s možností „{1}“.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "Možnost „allowImportingTsExtensions“ se dá použít jenom v případě, že je nastavená možnost „noEmit“ nebo „emitDeclarationOnly“.", "Option_build_must_be_the_first_command_line_argument_6369": "Možnost --build musí být prvním argumentem příkazového řádku.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Možnost ‚--incremental‘ se dá zadat jen pomocí tsconfig, při generování do jednoho souboru nebo když se zadá možnost ‚--tsBuildInfoFile‘.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Možnost isolatedModules jde použít jenom v případě, že je poskytnutá možnost --module nebo že možnost target je ES2015 nebo vyšší verze.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "Když je možnost „module“ nastavená na „{0}“, možnost „moduleResolution“ musí být nastavená na „{1}“ (nebo musí zůstat nezadaná).", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "Když je možnost „moduleResolution“ nastavená na „{1}“, možnost „module“ musí být nastavená na „{0}“.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "Když je povolená možnost „{0}“, možnost „preserveConstEnums“ se nedá zakázat.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Když je povolená možnost isolatedModules, možnost preserveConstEnums se nedá zakázat.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Možnost preserveValueImports se dá použít jenom v případě, že je modul nastavený na hodnotu es2015 nebo novější.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Možnost project se na příkazovém řádku nedá kombinovat se zdrojovým souborem.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Možnost „--resolveJsonModule“ se nedá zadat, pokud je možnost „moduleResolution“ nastavená na hodnotu „classic“.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Možnost „--resolveJsonModule“ se nedá zadat, pokud je možnost „module“ nastavená na „none“, „system“ nebo „umd“.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "Možnost „verbatimModuleSyntax“ nejde použít, pokud je možnost „module“ nastavená na „UMD“, „AMD“ nebo „System“.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Možnost --resolveJsonModule se dá zadat jen v případě, že generování kódu modulu je commonjs, amd, es2015 nebo esNext.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Možnost --resolveJsonModule se nedá zadat bez strategie překladu modulu node.", "Options_0_and_1_cannot_be_combined_6370": "Možnosti {0} a {1} nejde kombinovat.", "Options_Colon_6027": "Možnosti:", "Output_Formatting_6256": "Formátování výstupu", "Output_compiler_performance_information_after_building_6615": "Po sestavení generovat informace o výkonu kompilátoru.", "Output_directory_for_generated_declaration_files_6166": "Výstupní adresář pro vygenerované soubory deklarace", + "Output_file_0_from_project_1_does_not_exist_6309": "Výstupní soubor {0} z projektu {1} neexistuje.", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Výstupní soubor {0} se nesestavil ze zdrojového souboru {1}.", "Output_from_referenced_project_0_included_because_1_specified_1411": "Výstup z odkazovaného projektu {0}, který se zahrnul, protože je zadané {1}", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Výstup z odkazovaného projektu {0}, který se zahrnul, protože možnost --module se nastavila na none", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Očekává se deklarace parametru.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Parametr má název, ale žádný typ. Měli jste na mysli {0}: {1}?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Modifikátory parametrů se dají používat jen v typescriptových souborech.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Parametr musí mít explicitní anotaci typu s možností „--isolatedDeclarations“.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Typ parametru veřejné metody setter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Typ parametru veřejné metody setter {0} z exportované třídy má nebo používá privátní název {1}.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Typ parametru veřejné statické metody setter {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Po kompilaci vytiskněte názvy generovaných souborů.", "Print_this_message_6017": "Vytisknout tuto zprávu", "Private_accessor_was_defined_without_a_getter_2806": "Privátní přístupový objekt se definoval bez metody getter.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Privátní pole „{0}“ musí být deklarované v nadřazené třídě.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Privátní identifikátory se v deklaracích proměnných nepovolují.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Privátní identifikátory se mimo těla tříd nepovolují.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Privátní identifikátory jsou povolené jenom v tělech třídy a smí se používat jenom jako součást deklarace člena třídy nebo přístupu k vlastnosti, případně na levé straně výrazu in.", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Privátní identifikátory jsou dostupné jen při cílení na ECMAScript 2015 a novější.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Privátní identifikátory se nedají použít jako parametry.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "K privátnímu nebo chráněnému členu {0} se nedá přistupovat v parametru typu.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Projekt {0} nejde sestavit, protože jeho závislost {1} obsahuje chyby.", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Projekt {0} nejde sestavit, protože se nesestavila jeho závislost {1}.", "Project_0_is_being_forcibly_rebuilt_6388": "Projekt {0} se nuceně vytváří znovu.", - "Project_0_is_out_of_date_because_1_6420": "Projekt „{0}“ je zastaralý, protože {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Projekt „{0}“ je zastaralý, protože soubor buildinfo „{1}“ označuje, že soubor „{2}“ byl kořenovým souborem kompilace, ale už není.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Projekt {0} je zastaralý, protože soubor buildinfo „{1}“ označuje, že program musí hlásit chyby.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "{0} projektu je zastaralý, protože soubor buildinfo {1} indikuje, že se některé změny nevygenerovaly.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Projekt „{0}“ je zastaralý, protože soubor buildinfo „{1}“ označuje, že došlo ke změně v možnosti „compilerOptions“.", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt {0} je zastaralý, protože jeho závislost {1} je zastaralá.", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Projekt {0} je zastaralý, protože výstup {1} je starší než vstup {2}.", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt {0} je zastaralý, protože výstupní soubor {1} neexistuje.", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Projekt {0} je zastaralý, protože jeho výstup se vygeneroval pomocí verze {1}, která se liší od aktuální verze {2}.", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Projekt {0} je zastaralý, protože se změnil výstup jeho závislosti {1}.", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Projekt {0} je zastaralý, protože při čtení souboru {1} došlo k chybě.", "Project_0_is_up_to_date_6361": "Projekt {0} je aktuální.", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt {0} je aktuální, protože nejnovější vstup {1} je starší než výstup {2}.", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "Vlastnost {0} se používá dříve, než se inicializuje.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Zdá se, že vlastnost {0} v typu {1} neexistuje. Měli jste na mysli {2}?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Vlastnost {0} rozšířeného atributu JSX nejde přiřadit cílové vlastnosti.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "Vlastnost „{0}“ exportovaného anonymního typu třídy nesmí být privátní ani chráněná.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Vlastnost {0} exportovaného výrazu třídy nesmí být privátní nebo chráněná.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Vlastnost {0} exportovaného rozhraní má nebo používá název {1} z privátního modulu {2}.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Vlastnost {0} exportovaného rozhraní má nebo používá privátní název {1}.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Vlastnost {0} typu {1} se nedá přiřadit k {2} typu indexu {3}.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Vlastnost {0} přepíše základní vlastnost v {1}. Pokud je to záměr, přidejte inicializátor. Jinak přidejte modifikátor declare nebo odeberte redundantní deklaraci.", "Property_assignment_expected_1136": "Očekává se přiřazení vlastnosti.", "Property_destructuring_pattern_expected_1180": "Očekává se vzor destruktoru vlastnosti.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "Vlastnost musí mít explicitní anotaci typu s možností „--isolatedDeclarations“.", "Property_or_signature_expected_1131": "Očekává se vlastnost nebo podpis.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Hodnota vlastnosti může být jenom řetězcový literál, číselný literál, true, false, null, literál objektu nebo literál pole.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Při cílení na „ES5“ poskytněte plnou podporu iterovatelných proměnných v příkazu „for-of“, rozšíření a destrukturování.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Při cílení na ES5 nebo ES3 poskytněte plnou podporu iterovatelných proměnných ve for-of, rozšíření a destrukturování.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Veřejná metoda {0} z exportované třídy má nebo používá název {1} z externího modulu {2}, ale nedá se pojmenovat.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Veřejná metoda {0} z exportované třídy má nebo používá název {1} z privátního modulu {2}.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Veřejná metoda {0} z exportované třídy má nebo používá privátní název {1}.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Když se parametr funkce nepřečte, nahlaste chybu.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Vyvolat chybu u výrazů a deklarací s implikovaným typem any", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Vyvolá chybu u výrazů this s implikovaným typem any.", - "Range_out_of_order_in_character_class_1517": "Rozsah ve třídě znaků je mimo pořadí.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Při opětovném exportu typu s povolenou možností „{0}“ je nutné použít možnost „export type“.", - "React_components_cannot_include_JSX_namespace_names_2639": "Komponenty React nemůžou obsahovat názvy oborů názvů JSX.", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Opětovný export typu ve chvíli, kdy se poskytl příznak --isolatedModules, vyžaduje, aby se použilo export type.", "Redirect_output_structure_to_the_directory_6006": "Přesměrování výstupní struktury do adresáře", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Snižte počet projektů, které TypeScript načítá automaticky.", "Referenced_project_0_may_not_disable_emit_6310": "Odkazovaný projekt {0} nemůže zakazovat generování.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Odkazovaný projekt {0} musí mít nastavení \"composite\": true.", "Referenced_via_0_from_file_1_1400": "Odkazováno přes {0} ze souboru {1}", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Relativní cesty importu vyžadují explicitní přípony souborů v importech ECMAScriptu, když „--moduleResolution“ je „node16“ nebo „nodenext“. Zvažte přidání přípony do cesty importu.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Relativní cesty importu vyžadují explicitní přípony souborů v importech ECMAScriptu, když „--moduleResolution“ je „node16“ nebo „nodenext“. Měli jste na mysli „{0}“?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relativní cesty importu vyžadují explicitní přípony souborů v importech EcmaScriptu, když --moduleResolution je node16 nebo nodenext. Zvažte přidání přípony do cesty importu.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relativní cesty importu vyžadují explicitní přípony souborů v importech EcmaScriptu, když --moduleResolution je node16 nebo nodenext. Měli jste na mysli {0}?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Odeberte z procesu sledování seznam adresářů.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Ze zpracování režimu sledování odeberte seznam souborů.", "Remove_all_unnecessary_override_modifiers_95163": "Odebrat všechny nepotřebné modifikátory override", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Ohlásit chyby v souborech .js", "Report_errors_on_unused_locals_6134": "Umožňuje nahlásit chyby u nevyužitých místních hodnot.", "Report_errors_on_unused_parameters_6135": "Umožňuje nahlásit chyby u nevyužitých parametrů.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Vyžadujte u exportů dostatečnou anotaci, aby ostatní nástroje mohly triviálně generovat soubory deklarací.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Vyžadovat, aby nedeklarované vlastnosti ze signatur indexů používaly přístupy k elementům", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Požadované parametry typu nemůžou být až za volitelnými parametry typu.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Překlad pro modul {0} se našel v mezipaměti umístění {1}.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Překlad pro direktivu odkazu na typ {0} se našel v mezipaměti umístění {1}.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Překlad nerelativního názvu selhal; zkoušíme to se zakázanými moderními funkcemi překladu Node, abychom zjistili, jestli není potřeba aktualizovat konfiguraci knihovny npm.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Překlad nerelativního názvu selhal. Zkoušíme to s možností „--moduleResolution bundler“, abychom zjistili, jestli projekt nepotřebuje aktualizaci konfigurace.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "keyof překládejte jen na názvy vlastností s hodnotami typu string (ne čísla ani symboly).", - "Resolved_under_condition_0_6414": "Vyřešeno za podmínky „{0}“.", "Resolving_in_0_mode_with_conditions_1_6402": "Řešení v režimu {0} s podmínkami {1}.", "Resolving_module_0_from_1_6086": "======== Překládá se modul {0} z {1}. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Překládá se název modulu {0} relativní k základní adrese URL {1}–{2}.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Překládá se direktiva reference typu {0}, obsažený soubor {1}, kořenový adresář není nastavený. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Překládá se direktiva reference typu {0}, obsažený soubor není nastavený, kořenový adresář {1}. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Překládá se direktiva reference typu {0}, obsažený soubor není nastavený, kořenový adresář není nastavený. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Překlad direktivy odkazu na typ pro program, který zadává vlastní hodnoty typeRoot, s přeskočením vyhledávání ve složce „node_modules“.", "Resolving_with_primary_search_path_0_6121": "Probíhá překlad pomocí primární cesty hledání {0}.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Parametr rest {0} implicitně obsahuje typ any[].", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Parametr rest {0} má implicitně typ any[], ale je možné, že lepší typ by se vyvodil z použití.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Opětovné použití překladu direktivy typu reference {0} z {1} starého programu bylo úspěšně vyřešeno na {2} s ID balíčku {3}.", "Rewrite_all_as_indexed_access_types_95034": "Přepsat vše jako indexované typy přístupu", "Rewrite_as_the_indexed_access_type_0_90026": "Přepsat jako indexovaný typ přístupu {0}", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Přepište přípony souborů .ts, .tsx, .mts a .cts v relativních cestách importu na jejich javascriptový ekvivalent ve výstupních souborech.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Pravý operand ?? je nedostupný, protože levý operand nemá nikdy hodnotu null.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Nedá se určit kořenový adresář, přeskakují se primární cesty hledání.", "Root_file_specified_for_compilation_1427": "Kořenový soubor, který se zadal pro kompilaci", "STRATEGY_6039": "STRATEGIE", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Uložte soubory .tsbuildinfo, aby byla možná přírůstková kompilace projektů.", "Saw_non_matching_condition_0_6405": "Byla zjištěna neshodná podmínka {0}.", "Scoped_package_detected_looking_in_0_6182": "Zjištěn balíček v oboru, hledání v: {0}", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Vyhledávají se záložní rozšíření ve všech nadřazených adresářích „node_modules“: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Vyhledávají se upřednostňovaná rozšíření ve všech nadřazených adresářích „node_modules“: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "Výběr nepředstavuje platný příkaz (platné příkazy).", "Selection_is_not_a_valid_type_node_95133": "Výběr není platným uzlem typů.", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Nastavte verzi jazyka JavaScript pro generovaný JavaScript a zahrňte deklarace kompatibilních knihoven.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Zobrazí podrobné diagnostické informace.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Zobrazit, co by se sestavilo (nebo odstranilo, pokud je zadaná možnost --clean)", "Signature_0_must_be_a_type_predicate_1224": "Signatura {0} musí být predikát typu.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Deklarace signatur se dají používat jen v typescriptových souborech.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Přeskočí vytváření podřízených projektů při chybě v nadřazeném projektu.", "Skip_type_checking_all_d_ts_files_6693": "Přeskočte kontrolu typů ve všech souborech .d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Při kontrole typů vynechte soubory .d.ts zahrnuté do TypeScriptu.", "Skip_type_checking_of_declaration_files_6012": "Přeskočit kontrolu typu souborů deklarace", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Přeskakuje se modul „{0}“, který vypadá jako absolutní identifikátor URI. Cílové typy souborů: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Sestavení projektu {0} se přeskakuje, protože jeho závislost {1} obsahuje chyby.", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Sestavení projektu {0} se přeskakuje, protože se nesestavila jeho závislost {1}.", "Source_from_referenced_project_0_included_because_1_specified_1414": "Zdroj z odkazovaného projektu {0}, který se zahrnul, protože je zadané {1}.", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Zdroj z odkazovaného projektu {0}, který se zahrnul, protože možnost --module se nastavila na none.", "Source_has_0_element_s_but_target_allows_only_1_2619": "Zdroj má následující počet elementů, ale cíl jich povoluje jen {1}: {0}", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Zadejte, jak má fungovat režim sledování TypeScriptu.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Zadejte soubory knihovny, které se mají zahrnout do kompilace.", "Specify_module_code_generation_6016": "Určete generování kódu modulu.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Zadejte strategii překladu modulu: node (Node.js) nebo classic (TypeScript verze nižší než 1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Zadejte specifikátor modulu, který se použije k naimportování továrních funkcí JSX při použití „jsx: react-jsx“.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Zadejte více složek, které budou figurovat jako „node_modules/@types“.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Zadejte jednu nebo více cest nebo jeden či více odkazů na moduly uzlů se základními konfiguračními soubory, ze kterých se dědí nastavení.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Statické členy nemůžou odkazovat na parametry typu třídy.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Statická vlastnost {0} je v konfliktu s předdefinovanou vlastností Function.{0} funkce konstruktoru {1}.", "String_literal_expected_1141": "Očekává se řetězcový literál.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Názvy importu a exportu řetězcového literálu se nepodporují, pokud je příznak „--module“ nastavený na „es2015“ nebo „es2020“.", "String_literal_with_double_quotes_expected_1327": "Očekával se řetězcový literál s dvojitými uvozovkami.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Stylizujte chyby a zprávy pomocí barev a kontextu (experimentální).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "V případě znaménka minus musí být uvedeny příznaky dílčích vzorů.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Deklarace následných vlastností musí obsahovat stejný typ. Vlastnost {0} musí být typu {1}, ale tady je typu {2}.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Deklarace následných proměnných musí obsahovat stejný typ. Proměnná {0} musí být typu {1}, ale tady je typu {2}.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Nahrazení {0} za vzor {1} má nesprávný typ, očekával se typ string, obdržený je {2}.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Označené výrazy šablony se v nepovinném řetězu nepovolují.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Cíl povoluje jen určitý počet elementů ({0}), ale zdroj jich může mít více.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Cíl vyžaduje určitý počet elementů ({0}), ale zdroj jich může mít méně.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "Cílový podpis poskytuje příliš málo argumentů. Očekávalo se {0} nebo více, ale bylo obdrženo {1}.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Modifikátor {0} se dá používat jen v typescriptových souborech.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Operátor {0} nejde použít u typu symbol.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Operátor {0} není u logických typů povolený. Můžete ale použít {1}.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Vlastnost {0} asynchronního iterátoru musí být metoda.", "The_0_property_of_an_iterator_must_be_a_method_2767": "Vlastnost {0} iterátoru musí být metoda.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Typ Object se dá přiřadit jen k malému počtu dalších typů. Nechtěli jste místo toho použít typ any?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Příznaky Unicode (u) a Unicode Sets (v) nelze nastavit současně.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "Funkce s šipkou v ES5 nemůže odkazovat na objekt „arguments“. Zvažte použití standardního výrazu funkce.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "V ES5 se na objekt „arguments“ nedá odkazovat v asynchronní funkci nebo metodě. Zvažte možnost použít standardní funkci nebo metodu.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Funkce šipky v ES3 a ES5 nemůže odkazovat na objekt arguments. Zvažte použití standardního výrazu funkce.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "V ES3 a ES5 se na objekt arguments nedá odkazovat v asynchronní funkci nebo metodě. Zvažte možnost použít standardní funkci nebo metodu.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Tělo příkazu if nemůže být prázdný příkaz.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Volání by pro tuto implementaci proběhlo úspěšně, ale signatury implementace pro přetížení nejsou externě k dispozici.", "The_character_set_of_the_input_files_6163": "Znaková sada vstupních souborů", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Globální typ JSX.{0} by neměl mít více než jednu vlastnost.", "The_implementation_signature_is_declared_here_2750": "Signatura implementace se deklarovala tady.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Meta-vlastnost import.meta není povolena v souborech, které se sestaví do výstupu CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Metavlastnost import.meta se povoluje jen v případě, že možnost --module je nastavená na es2020, es2022, esnext, system, node16, node18 nebo nodenext.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Metavlastnost import.meta se povoluje jen v případě, že možnost --module je nastavená na es2020, es2022, esnext, system, node16 nebo nodenext.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Odvozený typ {0} se nedá pojmenovat bez odkazu na {1}. Pravděpodobně to nebude přenosné. Vyžaduje se anotace typu.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Odvozený typ {0} se odkazuje na typ s cyklickou strukturou, která se nedá triviálně serializovat. Musí se použít anotace typu.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Odvozený typ {0} odkazuje na nepřístupný typ {1}. Musí se použít anotace typu.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Odvozený typ tohoto uzlu přesahuje maximální délku, kterou kompilátor může serializovat. Je potřeba zadat explicitní anotaci typu.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "Inicializátor deklarace „using“ musí být buď objekt s metodou „[Symbol.dispose]()“, nebo musí mít hodnotu „null“ nebo „undefined“.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "Inicializátor deklarace „await using“ musí být buď objekt s metodou „[Symbol.asyncDispose]()“ nebo „[Symbol.dispose]5D;()“, nebo musí mít hodnotu „null“ nebo „undefined“.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Průnik {0} se omezil na never, protože vlastnost {1} existuje v několika konstituentech a v některých z nich je privátní.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Průnik {0} se omezil na never, protože vlastnost {1} má v některých konstituentech konfliktní typy.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Klíčové slovo intrinsic se dá použít jenom k deklaraci vnitřních typů poskytovaných kompilátorem.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "Poslední přetížení vrátilo následující chybu.", "The_last_overload_is_declared_here_2771": "Poslední přetížení je deklarované tady.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Levá strana příkazu for...in nemůže být destrukturačním vzorem.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "Levá strana příkazu „for...in“ nemůže být deklarace „using“.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "Levá strana příkazu „for...in“ nemůže být deklarace „await using“.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Levá strana příkazu for...in nemůže používat anotaci typu.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Levá strana příkazu for...in nemůže představovat přístup k nepovinné vlastnosti.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "Levá strana příkazu for..n musí být proměnná nebo přístup k vlastnosti.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Levá strana aritmetické operace musí mít typ any, number, bigint nebo být typu výčtu.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Levá strana výrazu přiřazení nemůže představovat přístup k nepovinné vlastnosti.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Levá strana výrazu přiřazení musí být proměnná nebo přístup k vlastnosti.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "Levá strana výrazu „instanceof“ musí být přiřaditelná k prvnímu argumentu metody „[Symbol.hasInstance]“ na pravé straně.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Levá strana výrazu instanceof musí být typu any, typem objektu nebo parametrem typu.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Národní prostředí, které se používá při zobrazování zpráv uživateli (třeba cs-CZ)", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Maximální hloubka závislostí pro vyhledávání pod node_modules a načítání javascriptových souborů", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Kořen projektu je nejednoznačný, ale je vyžadován pro vyřešení položky {0} mapování exportu v souboru {1}. Pokud chcete zrušit dvojznačnost, zadejte možnost kompilátoru rootDir.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Kořen projektu je nejednoznačný, ale je vyžadován pro vyřešení položky {0} mapování importu v souboru {1}. Pokud chcete zrušit dvojznačnost, zadejte možnost kompilátoru rootDir.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "K vlastnosti {0} se nedá přistupovat v typu {1} v této třídě, protože ho překrývá jiný privátní identifikátor se stejným zápisem.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Návratový typ přístupového objektu get musí být přiřaditelný k jeho typu přístupového objektu set.", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Návratový typ funkce dekorátoru parametru funkce musí být void nebo any.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Návratový typ funkce dekorátoru vlastnosti musí být void nebo any.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Návratový typ asynchronní funkce musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Návratový typ asynchronní funkce nebo metody musí být globální typ Promise.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Návratový typ asynchronní funkce nebo metody musí být globální typ Promise. Zamýšleli jste napsat Promise<{0}>?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Pravá strana příkazu for...in musí být typu any, typem objektu nebo parametrem typu, ale tady má typ {0}.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Pravá strana aritmetické operace musí mít typ any, number, bigint nebo být typu výčtu.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "Pravá strana výrazu „instanceof“ musí být typ „any“, třída, funkce nebo jiný typ, který se dá přiřadit k typu rozhraní „Function“, nebo typu objektu s metodou „Symbol.hasInstance“.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "Pravá strana výrazu „instanceof“ nesmí být výrazem vytvoření instance.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Pravá strana výrazu instanceof musí mít typ any nebo typ, který se dá přiřadit k typu rozhraní Function.", "The_root_value_of_a_0_file_must_be_an_object_5092": "Kořenová hodnota souboru {0} musí být objekt.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Modul runtime vyvolá dekoratér s {1} argumenty, ale dekoratér očekává {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Modul runtime vyvolá dekoratér s {1} argumenty, ale dekoratér očekává alespoň {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "Překrývající deklarace {0} je definovaná tady.", "The_signature_0_of_1_is_deprecated_6387": "Signatura {0} pro {1} je zastaralá.", "The_specified_path_does_not_exist_Colon_0_5058": "Zadaná cesta neexistuje: {0}", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Pokud se v příkazu k exportu používá „export type“, nemůžete v pojmenovaném exportu použít modifikátor „type“.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Pokud se v příkazu k importu používá „import type“, nemůžete v pojmenovaném importu použít modifikátor „type“.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Typ deklarace funkce musí odpovídat její signatuře.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Tento typ výrazu se nedá pojmenovat bez kontrolního výrazu resolution-mode, což je nestabilní funkce. K potlačení této chyby použijte noční vydání TypeScript. Pokuste se o update pomocí „npm install -D typescript@next'.“.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Uzel tohoto typu nejde serializovat, protože nejde serializovat jeho vlastnost {0}.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Typ vrácený metodou {0}() asynchronního iterátoru musí být příslib pro typ s vlastností value.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Typ vrácený metodou {0}() iterátoru musí obsahovat vlastnost value.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Deklarace proměnné příkazu for...in nemůže obsahovat inicializátor.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Deklarace proměnné příkazu for...of nemůže obsahovat inicializátor.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Příkaz with není podporovaný. Všechny symboly s blokem with budou typu any.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "V „{0}“ jsou typy, ale tento výsledek se v aktuálním nastavení „moduleResolution“ nepovedlo vyřešit. Zvažte aktualizaci na „node16“, „nodenext“ nebo „bundler“.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "V „{0}“ jsou typy, ale tento výsledek se při respektování pole „exports“ souboru package.json nepodařilo vyřešit. Knihovna „{1}“ bude pravděpodobně muset aktualizovat svůj soubor package.json nebo typings.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "V tomto regulárním výrazu není žádná zachycující skupina s názvem „{0}“.", - "There_is_nothing_available_for_repetition_1507": "Není k dispozici nic pro opakování.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Tato značka JSX vyžaduje, aby objekt pro vytváření fragmentů {0} byl v oboru, ale nepovedlo se ho najít.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Tato značka JSX vyžaduje, aby existovala cesta k modulu {0}, ale žádná nebyla nalezena. Ujistěte se, že máte nainstalované typy pro příslušný balíček.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Vlastnost {0} této značky JSX očekává jeden podřízený objekt typu {1}, ale poskytlo se jich více.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Vlastnost {0} této značky JSX očekává typ {1}, který vyžaduje více podřízených objektů, ale zadal se jen jeden.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Tento zpětný odkaz odkazuje na skupinu, která neexistuje. V tomto regulárním výrazu nejsou žádné zachytávací skupiny.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Tento zpětný odkaz odkazuje na skupinu, která neexistuje. V tomto regulárním výrazu jsou pouze {0} zachytávací skupiny.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Tento binární výraz nikdy nemá hodnotu null. Nechybí vám závorky?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Tento znak nelze uvozovat v regulárním výrazu.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Toto porovnání se zdá být neúmyslné, protože typy {0} a {1} se nijak nepřekrývají.", "This_condition_will_always_return_0_2845": "Tato podmínka vždy vrátí {0}.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Tato podmínka vždy vrátí „{0}“, protože JavaScript porovnává objekty pomocí odkazu, nikoli hodnoty.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Tato podmínka vždy vrátí hodnotu True, protože tato {0} je vždy definovaná.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Tato podmínka vždy vrátí hodnotu True, protože tato funkce je vždy definována. Chtěli jste ji místo toho nazvat?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Tato funkce konstruktoru se může převést na deklaraci třídy.", - "This_expression_is_always_nullish_2871": "Tento výraz má vždy hodnotu null.", "This_expression_is_not_callable_2349": "Tento výraz se nedá zavolat.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tento výraz se nedá volat, protože je to přístupový objekt get. Nechtěli jste ho použít bez ()?", "This_expression_is_not_constructable_2351": "Tento výraz se nedá vytvořit.", "This_file_already_has_a_default_export_95130": "Tento soubor už má výchozí export.", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Přepsání této cesty importu není bezpečné, protože cesta se překládá na jiný projekt a relativní cesta mezi výstupními soubory projektů není stejná jako relativní cesta mezi příslušnými vstupními soubory.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Tento import používá k překladu na vstupní soubor TypeScript rozšíření {0}, ale během generování se nepřepíše, protože se nejedná o relativní cestu.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Tento import se nikdy nepoužívá jako hodnota a musí používat import type, protože importsNotUsedAsValues je nastavené na error.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Toto je deklarace, která se rozšiřuje. Zvažte možnost přesunout rozšiřující deklaraci do stejného souboru.", - "This_kind_of_expression_is_always_falsy_2873": "Tento druh výrazu je vždy nepravdivý.", - "This_kind_of_expression_is_always_truthy_2872": "Tento druh výrazu je vždy pravdivý.", "This_may_be_converted_to_an_async_function_80006": "Toto je možné převést na asynchronní funkci.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože není deklarovaný v základní třídě {0}.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože není deklarovaný v základní třídě {0}. Měli jste na mysli {1}?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože třída {0}, která ho obsahuje, nerozšiřuje jinou třídu.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Tento člen nemůže mít komentář JSDoc se značkou @override, protože jeho název je dynamický.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Tento člen nemůže mít modifikátor override, protože není deklarovaný v základní třídě {0}.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Tento člen nemůže mít modifikátor override, protože není deklarovaný v základní třídě {0}. Měli jste na mysli {1}?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Tento člen nemůže mít modifikátor override, protože třída {0}, která ho obsahuje, nerozšiřuje jinou třídu.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Tento člen nemůže mít modifikátor override, protože jeho název je dynamický.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Tento člen musí mít komentář JSDoc se značkou @override, protože přepisuje člen v základní třídě {0}.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Tento člen musí mít modifikátor override, protože přepisuje člen v základní třídě {0}.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Tento člen musí mít modifikátor override, protože přepisuje abstraktní metodu, která je deklarovaná v základní třídě {0}.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Na tento modul je možné se pomocí importů nebo exportů ECMAScript odkazovat jen tak, že se zapne příznak {0} a odkáže se na výchozí export.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Tento modul se deklaroval pomocí export =, a dá se použít jenom s výchozím importem při použití příznaku {0}.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Tato operace se dá zjednodušit. Tento posun je totožný s {0} {1} {2}.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Toto přetížení implicitně vrací typ „{0}“, protože postrádá anotaci návratového typu.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Tato signatura přetížení není kompatibilní se signaturou implementace.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Tento parametr se nepodporuje s direktivou use strict.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Tato vlastnost parametru musí mít komentář JSDoc se značkou @override, protože přepisuje člen v základní třídě {0}.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Tato vlastnost parametru musí mít modifikátor override, protože přepisuje člen v základní třídě {0}.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Tento příznak regulárního výrazu nelze přepnout v rámci dílčího vzoru.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Tento příznak regulárního výrazu je k dispozici pouze při cílení na „{0}“ nebo novější.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Přepsání této relativní cesty importu není bezpečné, protože cesta vypadá jako název souboru, ale ve skutečnosti se překládá na {0}.", "This_spread_always_overwrites_this_property_2785": "Tento rozsah vždy přepíše tuto vlastnost.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Tato syntaxe není povolená, pokud je povolená možnost erasableSyntaxOnly.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Přidejte koncovou čárku nebo explicitní omezení.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Místo toho použijte výraz „as“.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Tato syntaxe vyžaduje importovanou podpůrnou aplikaci, ale modul {0} se nenašel.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Pokud chcete tento soubor převést na modul ECMAScript, změňte jeho příponu na {0}\" nebo přidejte pole \"type\": \"module\" do {1}.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Pokud chcete tento soubor převést na modul ECMAScript, změňte jeho příponu na {0} nebo vytvořte místní soubor package.json s {\"type\": \"module\"}.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Pokud chcete tento soubor převést na modul ECMAScript, vytvořte místní soubor package.json s { \"type\": \"module\" }.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Výrazy await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16, node18 nodenext nebo preserve a možnost target je nastavená na es2017 nebo vyšší.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Výrazy await using nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16, node18, nodenext nebo preserve a možnost target je nastavená na es2017 nebo vyšší.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Výrazy await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16 nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarace nejvyšší úrovně v souborech .d.ts musí začínat modifikátorem declare, nebo export.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Smyčky for await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16, node18, nodenext nebo preserve a možnost target je nastavená na es2017 nebo vyšší.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Smyčky for await nejvyšší úrovně se povolují jen v případě, že možnost module je nastavená na es2022, esnext, system, node16 nebo nodenext a možnost target je nastavená na es2017 nebo vyšší.", "Trailing_comma_not_allowed_1009": "Čárka na konci není povolená.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpiluje každý soubor jako samostatný modul (podobné jako ts.transpileModule).", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Vyzkoušejte deklaraci npm i --save-dev @types/{1}, pokud existuje, nebo přidejte nový soubor deklarací (.d.ts) s deklarací declare module '{0}';.", "Trying_other_entries_in_rootDirs_6110": "Zkoušejí se další položky v rootDirs.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Zkouší se nahrazení {0}, umístění modulu kandidáta: {1}.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Název musí mít buď všechny členy řazené kolekce členů, nebo ho nesmí mít žádný člen.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Typ řazené kolekce členů {0} délky {1} nemá na indexu {2} žádný prvek.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Argumenty typů řazené kolekce členů cyklicky odkazují samy na sebe.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Typem {0} se dá iterovat, pouze když se použije příznak --downlevelIteration nebo s možností --target nastavenou na es2015 nebo vyšší.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Typ {0} nemá odpovídající signaturu indexu pro typ {1}.", "Type_0_has_no_properties_in_common_with_type_1_2559": "Typ {0} nemá žádné vlastnosti společné s typem {1}.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "U typu {0} nejsou žádné podpisy, pro které platí seznam argumentů obecného typu.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Typ „{0}“ je obecný a lze ho indexovat pouze pro čtení.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "V typu {0} chybí následující vlastnosti z typu {1}: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "V typu {0} chybí následující vlastnosti z typu {1}: {2} a ještě {3}", "Type_0_is_not_a_constructor_function_type_2507": "Typ {0} není typ funkce konstruktoru.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Typ „{0}“ nepředstavuje platný návratový typ asynchronní funkce v ES5, protože neodkazuje na hodnotu konstruktoru kompatibilní s konstruktorem Promise.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Typ {0} nepředstavuje platný návratový typ asynchronní funkce v ES5/ES3, protože neodkazuje na hodnotu konstruktoru kompatibilní s příslibem.", "Type_0_is_not_an_array_type_2461": "Typ {0} není typ pole.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Typ {0} není typem pole nebo řetězce.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ {0} není typem pole nebo řetězce, nebo nemá metodu [Symbol.iterator](), která vrací iterátor.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Typ {0} se nedá přiřadit k typu {1}. Měli jste na mysli {2}?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Typ {0} se nedá přiřadit typu {1}. Existují dva různé typy s tímto názvem, ale nesouvisí spolu.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Typ {0} nelze přiřadit k typu {1}, jak je implikováno anotací odchylky.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Typ „{0}“ nelze přiřadit k typu „{1}“, jak je vyžadováno pro vypočítané hodnoty členů výčtu.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typů vlastností cíle.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Typ {0} se nedá přiřadit k typu {1} s hodnotou exactOptionalPropertyTypes: true. Zvažte možnost přidat hodnotu undefined do typu cíle.", "Type_0_is_not_comparable_to_type_1_2678": "Typ {0} se nedá porovnat s typem {1}.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Očekává se argument typu.", "Type_argument_list_cannot_be_empty_1099": "Seznam argumentů typu nemůže být prázdný.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Argumenty typů se dají používat jen v typescriptových souborech.", + "Type_arguments_cannot_be_used_here_1342": "Argumenty typu tady nejde použít.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Argumenty typů pro {0} se cyklicky odkazují samy na sebe.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Kontrolní výrazy typů se dají používat jen v typescriptových souborech.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Typ na pozici {0} ve zdroji není kompatibilní s typem na pozici {1} v cíli.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Typ na pozicích {0} až {1} ve zdroji není kompatibilní s typem na pozici {2} v cíli.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Typ obsahující privátní název „{0}“ nejde použít s možností --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Soubory deklarace typu, které se mají zahrnout do kompilace", "Type_expected_1110": "Očekával se typ.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Kontrolní výrazy importu typů by měly mít přesně jeden klíč – resolution-mode – s hodnotou import nebo require.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Atributy importu typů by měly mít přesně jeden klíč – „resolution-mode“ – s hodnotou „import“ nebo „require“.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "Import typu modulu ECMAScript z modulu CommonJS musí mít atribut resolution-mode.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Vytvoření instance typu je příliš hluboké a může být nekonečné.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Typ se přímo nebo nepřímo odkazuje ve zpětném volání jeho vlastní metody then při splnění.", "Type_library_referenced_via_0_from_file_1_1402": "Knihovna typů, na kterou se odkazuje přes {0} ze souboru {1}", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Typ iterovaných elementů yield* musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Typ vlastnosti {0} cyklicky odkazuje sám na sebe v mapovaném typu {1}.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Typ operandu yield v asynchronním generátoru musí být buď platný příslib, nebo nesmí obsahovat člen then, který se dá volat.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "Import, při kterém se importuje pouze typ modulu ECMAScript z modulu CommonJS, musí mít atribut resolution-mode.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Typ pochází z tohoto importu. Import stylu oboru názvů není možné zavolat ani vytvořit a při běhu způsobí chybu. Zvažte možnost použít tady místo toho výchozí import nebo importovat require.", "Type_parameter_0_has_a_circular_constraint_2313": "Parametr typu {0} má cyklické omezení.", "Type_parameter_0_has_a_circular_default_2716": "Parametr typu {0} má cyklickou výchozí hodnotu.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Když se podpis dekorátoru metody volá jako výraz, nejde přeložit.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Když se podpis dekorátoru parametru volá jako výraz, nejde přeložit.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Když se podpis dekorátoru vlastnosti volá jako výraz, nejde přeložit.", - "Undetermined_character_escape_1513": "Neurčený řídicí znak.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "Neočekáváno: „{0}“. Nechtěli jste ho uvést zpětným lomítkem?", "Unexpected_end_of_text_1126": "Neočekávaný konec textu", "Unexpected_keyword_or_identifier_1434": "Neočekávané klíčové slovo nebo identifikátor.", "Unexpected_token_1012": "Neočekávaný token", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Neočekávaný token. Měli jste na mysli {'}'} nebo }?", "Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.", - "Unicode_escape_sequence_cannot_appear_here_17021": "Řídicí sekvence Unicode se tady nemůže vyskytovat.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Řídicí sekvence Unicode jsou k dispozici pouze v případě, že je nastaven příznak Unicode (u) nebo Unicode Sets (v).", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Výrazy hodnoty vlastnosti Unicode jsou k dispozici pouze v případě, že je nastaven příznak Unicode (u) nebo Unicode Sets (v).", - "Unknown_Unicode_property_name_1524": "Neznámý název vlastnosti Unicode.", - "Unknown_Unicode_property_name_or_value_1529": "Neznámý název nebo hodnota vlastnosti Unicode.", - "Unknown_Unicode_property_value_1526": "Neznámá hodnota vlastnosti Unicode.", "Unknown_build_option_0_5072": "Neznámá možnost sestavení {0}", "Unknown_build_option_0_Did_you_mean_1_5077": "Neznámá možnost sestavení {0}. Měli jste na mysli {1}?", "Unknown_compiler_option_0_5023": "Neznámá možnost kompilátoru {0}", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Neznámá možnost kompilátoru {0}. Měli jste na mysli {1}?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Neznámé klíčové slovo nebo identifikátor. Neměli jste na mysli „{0}“?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Neznámá možnost excludes. Měli jste na mysli exclude?", - "Unknown_regular_expression_flag_1499": "Neznámý příznak regulárního výrazu.", "Unknown_type_acquisition_option_0_17010": "Neznámá možnost získání typu {0}", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Neznámá možnost získání typu {0}. Měli jste na mysli {1}?", "Unknown_watch_option_0_5078": "Neznámá možnost sledování {0}", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Nepoužívaný popisek", "Unused_ts_expect_error_directive_2578": "Nepoužitá direktiva @ts-expect-error", "Update_import_from_0_90058": "Aktualizovat import z: {0}", - "Update_modifiers_of_0_90061": "Aktualizujte modifikátory „{0}“", + "Updating_output_of_project_0_6373": "Aktualizuje se výstup projektu {0}...", "Updating_output_timestamps_of_project_0_6359": "Aktualizují se výstupní časová razítka projektu {0}...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Aktualizují se nezměněná výstupní časová razítka projektu {0}...", "Use_0_95174": "Použít {0}", - "Use_0_instead_5106": "Místo toho použijte možnost „{0}“.", "Use_Number_isNaN_in_all_conditions_95175": "Ve všech podmínkách použijte Number.isNaN.", "Use_element_access_for_0_95145": "Použít přístup k elementům pro {0}", "Use_element_access_for_all_undeclared_properties_95146": "Použít přístup k elementům pro všechny nedeklarované vlastnosti", - "Use_import_type_95180": "Použijte „import type“.", "Use_synthetic_default_member_95016": "Použije syntetického výchozího člena.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Při překladu importů balíčků použijte pole „exports“ souboru package.json.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Při řešení importů použijte pole „imports“ v souboru package.json.", - "Use_type_0_95181": "Použijte „type {0}„.", "Using_0_subpath_1_with_target_2_6404": "Používá se {0} dílčí cesta {1} s cílem {2}.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "Použití fragmentů JSX vyžaduje, aby objekt pro vytváření fragmentů {0} byl v oboru, ale nepovedlo se ho najít.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Použití řetězce v příkazu for...of se podporuje jenom v ECMAScript 5 nebo vyšší verzi.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Použití --build, -b způsobí, že se tsc bude chovat spíše jako orchestrátor sestavení než kompilátor. Pomocí této možnosti můžete aktivovat vytváření složených projektů, o kterých se můžete dozvědět více {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Očekává se deklarace proměnné.", "Variable_declaration_list_cannot_be_empty_1123": "Seznam deklarací proměnných nemůže být prázdný.", "Variable_declaration_not_allowed_at_this_location_1440": "Deklarace proměnné není v tomto umístění povolená.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "Proměnná musí mít explicitní anotaci typu s možností --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Proměnné s více deklaracemi nemohou být vložené.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element variadic na pozici {0} ve zdroji neodpovídá elementu na pozici {1} v cíli.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Poznámky Variance se podporují pouze u aliasů typů pro typy objektů, funkcí, konstruktorů a mapování.", "Version_0_6029": "Verze {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Při kontrole typů berte v potaz i hodnoty „null“ a „undefined“.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Určuje, jestli se místo vymazání obrazovky má zachovat zastaralý výstup konzoly v režimu sledování.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Zabalit všechny neplatné znaky do kontejneru výrazu", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Uzavřít všechny neplatné výrazy dekoratéru do závorek", "Wrap_all_object_literal_with_parentheses_95116": "Uzavřít všechny literály objektů do závorek", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Zabalit všechny JSX bez nadřazených položek ve fragmentu JSX", "Wrap_in_JSX_fragment_95120": "Zabalit ve fragmentu JSX", - "Wrap_in_parentheses_95194": "Uzavřít do závorek", "Wrap_invalid_character_in_an_expression_container_95108": "Zabalit neplatný znak do kontejneru výrazu", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Uzavřít následující kód, který by měl být literál objektu, do závorek", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Informace o všech možnostech kompilátoru najdete na {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Signatury indexu {0} a {1} jsou nekompatibilní.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Operace {0} a {1} se nedají kombinovat bez závorek.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "Položka {0} je zadána dvakrát. Atribut s názvem {0} se přepíše.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "„{0}“ na konci typu není platná syntaxe TypeScriptu. Nechtěli jste napsat „{1}“?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "„{0}“ na začátku typu není platná syntaxe TypeScriptu. Nechtěli jste napsat „{1}“?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "{0} se dá importovat jen zapnutím příznaku esModuleInterop a pomocí výchozího importu.", "_0_can_only_be_imported_by_using_a_default_import_2595": "{0} se dá importovat jen pomocí výchozího importu.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "{0} se dá importovat jen pomocí volání require nebo zapnutím příznaku esModuleInterop a pomocí výchozího importu.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "{0} se dá importovat jen pomocí volání require nebo pomocí výchozího importu.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "{0} se dá importovat jen pomocí import {1} = require({2}) nebo výchozího importu.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "{0} se dá importovat jen pomocí import {1} = require({2}) nebo zapnutím příznaku esModuleInterop a pomocí výchozího importu.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "{0} není možné zkompilovat v režimu --isolatedModules, protože se považuje za globální soubor skriptu. Pokud ho chcete převést na modul, přidejte import, export nebo prázdný příkaz export {}.", "_0_cannot_be_used_as_a_JSX_component_2786": "{0} se nedá použít jako součást JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "{0} se nedá používat jako hodnota, protože se exportovalo pomocí export type.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "{0} se nedá používat jako hodnota, protože se importovalo pomocí import type.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Komponenty {0} nepřijímají text jako podřízené prvky. Text v JSX má typ string, ale očekávaný typ {1} je {2}.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Instanci {0} by bylo možné vytvořit s libovolným typem, který by nemusel souviset s {1}.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Deklarace „{0}“ je možné deklarovat jenom uvnitř bloku.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Deklarace {0} se dají používat jen v typescriptových souborech.", - "_0_declarations_may_not_have_binding_patterns_1492": "Deklarace „{0}“ nesmí mít vzory s vazbami.", - "_0_declarations_must_be_initialized_1155": "Deklarace „{0}“ se musejí inicializovat.", "_0_expected_1005": "Očekával se: {0}.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "„{0}“ má typ řetězce, ale pokud je povolená možnost isolatedModules, musí mít syntakticky rozpoznatelnou syntaxi řetězce.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "{0} nemá žádný exportovaný člen s názvem {1}. Neměli jste na mysli {2}?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "{0} má implicitně návratový typ {1}, ale je možné, že lepší typ by se vyvodil z využití.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "{0} obsahuje implicitně návratový typ any, protože neobsahuje anotaci návratového typu a přímo nebo nepřímo se odkazuje v jednom ze svých návratových výrazů.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "{0} Typ indexu {1} se nedá přiřadit k {2} typu indexu {3}.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0} je primitivum, ale {1} je obálkový objekt. Pokud je to možné, použijte raději {0}.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "{0} je typ a nedá se importovat do javascriptových souborů. V poznámce typu JSDoc použijte {1}.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "„{0}“ je typ a musí se importovat pomocí importu „pouze typ“, pokud je povolená možnost verbatimModuleSyntax.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Hodnota {0} je typ a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "{0} je nepoužívané přejmenování {1}. Chtěli jste ji použít jako poznámku typu?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "{0} se dá přiřadit k omezení typu {1}, ale pro {1} se dala vytvořit instance s jiným podtypem omezení {2}.", "_0_is_automatically_exported_here_18044": "{0} se sem automaticky exportuje.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "Seznam {0} nemůže být prázdný.", "_0_modifier_already_seen_1030": "Modifikátor {0} se už jednou vyskytl.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Modifikátor {0} se může vyskytovat jenom u parametru typu aliasu třídy, rozhraní nebo typu.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "Modifikátor „{0}“ se může vyskytovat jenom u parametru typu funkce, metody nebo třídy.", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Modifikátor {0} se nemůže objevit v deklaraci konstruktoru.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Modifikátor {0} se nemůže objevit v elementu modulu nebo oboru názvů.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Modifikátor {0} se nemůže objevit v parametru.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Modifikátor {0} se nemůže objevit u člena typu.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Modifikátor {0} se nemůže objevit u parametru typu.", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "Modifikátor „{0}“ se nemůže vyskytovat v deklaraci „using“.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "Modifikátor {0} se nemůže vyskytovat v deklaraci „await using“.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Modifikátor {0} se nemůže objevit v signatuře indexu.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Modifikátor {0} se nemůže objevit u elementů třídy tohoto typu.", "_0_modifier_cannot_be_used_here_1042": "Modifikátor {0} tady nejde použít.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Modifikátor {0} nejde použít s modifikátorem {1}.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Modifikátor {0} se nedá použít s privátním identifikátorem.", "_0_modifier_must_precede_1_modifier_1029": "Modifikátor {0} se musí vyskytovat před modifikátorem {1}.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "Po „\\{0}“ musí následovat výraz s hodnotou vlastnosti Unicode uzavřený do složených závorek.", "_0_needs_an_explicit_type_annotation_2782": "{0} vyžaduje explicitní anotaci typu.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "{0} jenom odkazuje na typ, ale tady se používá jako obor názvů.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "{0} odkazuje jenom na typ, ale používá se tady jako hodnota.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "‚{0}‘ odkazuje jen na typ, ale tady se používá jako hodnota. Potřebujete změnit cílovou knihovnu? Zkuste změnit možnost kompilátoru ‚lib‘ na es2015 nebo novější.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "{0} odkazuje na globální UMD, ale aktuální soubor je modul. Zvažte raději přidání importu.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "{0} odkazuje na hodnotu, ale tady se používá jako typ. Měli jste na mysli typeof {0}?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "„{0}“ se překládá na typ a musí být v tomto souboru označen jako „pouze typ“, než se znovu exportuje, když je povolená možnost „{1}“. Zvažte možnost použít „import type“, kde se importuje „{0}“.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "„{0}“ se překládá na typ a musí být v tomto souboru označen jako „pouze typ“, než se znovu exportuje, když je povolená možnost „{1}“. Zvažte možnost použít „export type { {0} as default }“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "„{0}“ se překládá na deklaraci „pouze typ“ a musí se exportovat pomocí importu „pouze typ“, když je povolena možnost „verbatimModuleSyntax“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "„{0}“ se překládá na deklaraci „pouze typ“ a musí být v tomto souboru označen jako „pouze typ“, než se znovu exportuje, když je povolená možnost „{1}“. Zvažte možnost použít „import type“, kde se importuje „{0}“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "„{0}“ se překládá na deklaraci „pouze typ“ a musí být v tomto souboru označen jako „pouze typ“, než se znovu exportuje, když je povolená možnost „{1}“. Zvažte možnost použít „export type { {0} as default }“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "Hodnota „{0}“ se překládá na deklaraci „pouze typ“ a musí se znovu exportovat pomocí zpětného exportu „pouze typ“, když je povoleno {1}.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "Hodnota {0} se překládá na deklaraci jenom typu a musí být importována pomocí importu, který se bude zadávat jenom v případě, že jsou povolené parametry preserveValueImports a isolatedModules.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "Hodnota {0} se překládá na deklaraci jenom typu a musí se znovu exportovat pomocí zpětného exportu jenom typu, když je povolená vlastnost isolatedModules.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "Klíčové slovo {0} by mělo být nastaveno uvnitř objektu compilerOptions konfiguračního souboru JSON.", "_0_tag_already_specified_1223": "Značka {0} se už specifikovala.", "_0_was_also_declared_here_6203": "{0} se deklarovalo i tady.", @@ -1999,22 +1780,19 @@ "and_here_6204": "a tady.", "arguments_cannot_be_referenced_in_property_initializers_2815": "Na argumenty nejde odkazovat v inicializátorech vlastností.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "auto: Považovat soubory s importy, exporty, import.meta, jsx (s jsx: react-jsx) nebo formátem esm (s modulem node16+) za moduly.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Výraz „await“ nelze použít uvnitř statického bloku třídy.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Výrazy await se tady povolují jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat export {}, aby se tento soubor převedl na modul.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Výrazy await se povolují jen v asynchronních funkcích na nejvyšší úrovni modulů.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Výrazy await nejdou použít v inicializátoru parametru.", "await_has_no_effect_on_the_type_of_this_expression_80007": "Výraz await nemá žádný vliv na typ tohoto výrazu.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Příkazy „await using“ jsou povoleny jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat „export {}“, aby se tento soubor převedl na modul.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Výrazy „await“ se povolují jen v asynchronních funkcích na nejvyšší úrovni modulů.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Příkazy „await using“ nelze použít uvnitř statického bloku třídy.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Možnost baseUrl je nastavená na {0}, pomocí této hodnoty se přeloží název modulu {1}, který není relativní.", - "c_must_be_followed_by_an_ASCII_letter_1512": "Po „\\c“ musí následovat písmeno v ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "#! se dá použít jen na začátku souboru.", "case_or_default_expected_1130": "Očekává se case nebo default.", "catch_or_finally_expected_1472": "Očekávalo se catch nebo finally.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Deklarace const se dají deklarovat jenom uvnitř bloku.", + "const_declarations_must_be_initialized_1155": "Deklarace const se musejí inicializovat.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Inicializátor člena výčtu const se vyhodnotil na nekonečnou hodnotu.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Inicializátor člena výčtu const se vyhodnotil na nepovolenou hodnotu NaN.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Inicializátory členů konstantního výčtu musí být konstantní výrazy.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Inicializátory členů konstantního výčtu můžou obsahovat jen hodnoty literálů a další vypočítané hodnoty výčtu.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Výčty const se dají použít jenom ve výrazech přístupu k vlastnosti nebo indexu nebo na pravé straně deklarace importu, přiřazení exportu nebo dotazu na typ.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "constructor se nedá použít jako název vlastnosti parametru.", "constructor_is_a_reserved_word_18012": "#constructor je rezervované slovo.", @@ -2033,14 +1811,13 @@ "file_6025": "soubor", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Smyčky for await se tady povolují jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat export {}, aby se tento soubor převedl na modul.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Smyčky for await se povolují jen v asynchronních funkcích na nejvyšší úrovni modulů.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Smyčky „for await“ nelze použít uvnitř statického bloku třídy.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Přístupové objekty get a set nemůžou deklarovat parametry this.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "[], pokud je zadáno „soubory“, jinak [\"**/*\"]5D;", "implements_clause_already_seen_1175": "Klauzule implements se už jednou vyskytla.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Klauzule implements se dají používat jen v typescriptových souborech.", "import_can_only_be_used_in_TypeScript_files_8002": "import = se dá používat jen v typescriptových souborech.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Deklarace infer jsou povolené jenom v klauzuli extends podmíněného typu.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "Po „\\k“ musí následovat název zachycující skupiny uzavřený do ostrých závorek.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Deklarace let je možné deklarovat jenom uvnitř bloku.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Nepovoluje se používat let jako název v deklaracích let nebo const.", "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`", "module_system_or_esModuleInterop_6904": "module === \"system\" or esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "package.json nemá položku typesVersions, která by odpovídala verzi {0}.", "package_json_had_a_falsy_0_field_6220": "Soubor package.json obsahoval neplatné pole {0}.", "package_json_has_0_field_1_that_references_2_6101": "Soubor package.json má pole {0} {1}, které odkazuje na {2}.", - "package_json_has_a_peerDependencies_field_6281": "Soubor package.json má pole „peerDependencies“.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "package.json má položku typesVersions {0}, která není platný rozsah semver.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "package.json má položku typesVersions {0}, která odpovídá verzi kompilátoru {1}. Hledá se vzor, který bude odpovídat názvu modulu {2}.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "package.json má pole typesVersions s mapováními cesty specifickými pro verzi.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json scope {0} má neplatný typ pro cíl specifikátoru {1}.", "package_json_scope_0_has_no_imports_defined_6273": "package.json scope {0} nemá definovány žádné importy.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Je zadaná možnost paths, hledá se vzor, který odpovídá názvu modulu {0}.", - "q_is_only_available_inside_character_class_1511": "„\\q“ je k dispozici pouze uvnitř třídy znaků.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "Po „\\q“ musí následovat řetězcové alternativy uzavřené ve složených závorkách.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modifikátor readonly se může objevit jenom v deklaraci vlastnosti nebo signatuře indexu.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modifikátor typu readonly se povoluje jen pro typy literálů pole a řazené kolekce členů.", "require_call_may_be_converted_to_an_import_80005": "Volání require se dá převést na import.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Kontrolní výrazy resolution-mode se podporují jenom tehdy, kdy je moduleResolution node16 nebo nodenext", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Kontrolní výrazy resolution-mode jsou nestabilní. K potlačení této chyby použijte noční vydání TypeScript. Pokuste se o update pomocí „npm install -D typescript@next'.“.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "resolution-mode se dá nastavit pouze pro importy type-only.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "resolution-mode je jediný platný klíč pro kontrolní výrazy importu typů.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "„resolution-mode“ je jediný platný klíč pro atributy importu typů.", "resolution_mode_should_be_either_require_or_import_1453": "resolution-mode by měl být buď require, nebo import.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Je nastavená možnost rootDirs, použije se k překladu relativního názvu modulu {0}.", "super_can_only_be_referenced_in_a_derived_class_2335": "Na vlastnost super se dá odkazovat jenom v odvozené třídě.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "Na vlastnost this se nedá odkazovat v názvu počítaného prostředku.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Na vlastnost this se nedá odkazovat v modulu nebo těle oboru názvů.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Na vlastnost this se nedá odkazovat v inicializátoru statické vlastnosti.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "Na vlastnost this se nedá odkazovat v argumentech konstruktoru.", "this_cannot_be_referenced_in_current_location_2332": "Na vlastnost this se nedá odkazovat v aktuálním umístění.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "Možnost this má implicitně typ any, protože nemá anotaci typu.", "true_for_ES2022_and_above_including_ESNext_6930": "„true“ pro ES2022 a vyšší, včetně ESNext.", "true_if_composite_false_otherwise_6909": "„true“, pokud „composite“, „false“ jinak", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "Má hodnotu True, když „moduleResolution“ je „node16“, „nodenext“ nebo „bundler“; v opačném případě má hodnotu False.", "tsc_Colon_The_TypeScript_Compiler_6922": "TSC: kompilátor TypeScriptu", "type_Colon_6902": "typ:", "unique_symbol_types_are_not_allowed_here_1335": "Typy unique symbol tady nejsou povolené.", diff --git a/node_modules/typescript/lib/de/diagnosticMessages.generated.json b/node_modules/typescript/lib/de/diagnosticMessages.generated.json index 76da00c76..8aa99fe93 100644 --- a/node_modules/typescript/lib/de/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/de/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "ALLE COMPILEROPTIONEN", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Ein Modifizierer \"{0}\" darf nicht mit einer Importdeklaration verwendet werden.", "A_0_parameter_must_be_the_first_parameter_2680": "Ein \"{0}\"-Parameter muss der erste Parameter sein.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Ein JSDoc-Tag \"@template\" darf nicht auf ein \"@typedef\", \"@callback\" oder \"@overload\" folgen.", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Ein JSDoc-Kommentar \"@typedef\" darf nicht mehrere @type-Tags enthalten.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Ein \"bigint\"-Literal kann nicht als Eigenschaftenname verwendet werden.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Ein bigint-Literal kann keine exponentielle Notation verwenden.", "A_bigint_literal_must_be_an_integer_1353": "Ein bigint-Literal muss eine ganze Zahl sein.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Ein Bindungsmusterparameter darf in einer Implementierungssignatur nicht optional sein.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Eine break-Anweisung darf nur in einer einschließenden iteration- oder switch-Anweisung verwendet werden.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Eine break-Anweisung kann nur zu einer Bezeichnung einer einschließenden Anweisung springen.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Eine Zeichenklasse darf kein reserviertes doppeltes Interpunktionszeichen enthalten. Wollten Sie mit einem umgekehrten Schrägstrich escapen?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Ein Zeichenklassenbereich darf nicht durch eine andere Zeichenklasse gebunden werden.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Eine Klasse kann nur einen Bezeichner/\"qualified-name\" mit optionalen Typargumenten implementieren.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Eine Klasse kann nur einen Objekttyp oder eine Schnittmenge von Objekttypen mit statisch bekannten Membern implementieren.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Eine Klasse kann einen primitiven Typ wie \"{0}\" nicht erweitern. Klassen können nur konstruierbare Werte erweitern.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Eine Klasse kann keinen primitiven Typ wie \"{0}\" implementieren. Es können nur andere benannte Objekttypen implementiert werden.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Eine Klassendeklaration ohne den default-Modifizierer muss einen Namen besitzen.", "A_class_member_cannot_have_the_0_keyword_1248": "Ein Klassenmember darf nicht das Schlüsselwort \"{0}\" aufweisen.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Ein Kommaausdruck ist in einem berechneten Eigenschaftennamen unzulässig.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Ein Konstruktor darf keinen \"this\"-Parameter aufweisen.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Eine continue-Anweisung darf nur in einer einschließenden iteration-Anweisung verwendet werden.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Eine continue-Anweisung kann nur zu einer Bezeichnung einer einschließenden Iterationsanweisung springen.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Eine Deklarationsdatei kann nicht ohne \"import type\" importiert werden. Wollten Sie stattdessen eine Implementierungsdatei \"{0}\" importieren?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Ein declare-Modifizierer darf nicht in einem Kontext verwendet werden, der bereits ein Umgebungskontext ist.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Ein Decorator-Element kann nur für eine Methodenimplementierung und nicht für eine Überladung verwendet werden.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Eine default-Klausel darf nicht mehrmals in einer switch-Anweisung auftreten.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Ein Standardexport muss sich auf der obersten Ebene einer Datei- oder Moduldeklaration befinden.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Eine definitive Zuweisungsassertion \"!\" ist in diesem Kontext nicht zulässig.", "A_destructuring_declaration_must_have_an_initializer_1182": "Eine destrukturierende Deklaration muss einen Initialisierer besitzen.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Ein dynamischer Importaufruf in ES5 erfordert den Konstruktor \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Ein dynamischer Importaufruf in ES5/ES3 erfordert den Konstruktor \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Ein dynamischer Importaufruf gibt \"Promise\" zurück. Stellen Sie sicher, dass Sie über eine Deklaration für \"Promise\" verfügen, oder schließen Sie ES2015 in Ihre Option \"--lib\" ein.", "A_file_cannot_have_a_reference_to_itself_1006": "Eine Datei darf keinen Verweis auf sich selbst enthalten.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Eine Funktion, die \"never\" zurückgibt, kann keinen erreichbaren Endpunkt besitzen.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Eine Funktion, die mit dem Schlüsselwort \"new\" aufgerufen wird, darf keinen \"this\"-Typ aufweisen, der \"void\" ist.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Eine Funktion, deren Typ weder als \"void\" noch als \"any\" deklariert ist, muss einen Wert zurückgeben.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Eine Funktion, deren Typ weder als \"void\" noch als \"any\" deklariert ist, muss einen Wert zurückgeben.", "A_generator_cannot_have_a_void_type_annotation_2505": "Ein Generator darf keine void-Typanmerkung aufweisen.", "A_get_accessor_cannot_have_parameters_1054": "Eine get-Zugriffsmethode darf keine Parameter haben.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Eine Get-Zugriffsmethode muss mindestens so zugänglich sein wie der Setter.", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Eine Namespacedeklaration darf sich nicht in einer anderen Datei als die Klasse oder Funktion befinden, mit der sie zusammengeführt wird.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Eine Namespacedeklaration darf nicht vor der Klasse oder Funktion positioniert werden, mit der sie zusammengeführt wird.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Eine Namespacedeklaration ist nur auf der obersten Ebene eines Namespaces oder Moduls zulässig.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Eine Namespace-Deklaration darf nicht mit dem Schlüsselwort \"module\" deklariert werden. Verwenden Sie stattdessen das Schlüsselwort \"namespace\".", "A_non_dry_build_would_build_project_0_6357": "Bei einem Build ohne das Flag \"-dry\" würde das Projekt \"{0}\" erstellt.", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Bei einem Build ohne das Flag \"-dry\" würden die folgenden Dateien gelöscht: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Ein Build ohne das Flag \"-dry\" würde die Ausgabe des Projekts \"{0}\" aktualisieren.", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Ein Build ohne das Flag \"-dry\" würde die Zeitstempel der Ausgabe von Projekt \"{0}\" aktualisieren.", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Ein Parameterinitialisierer ist nur in einer Funktions- oder Konstruktorimplementierung zulässig.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Eine Parametereigenschaft darf nicht mithilfe eines rest-Parameters deklariert werden.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Ein „super“ Aufruf muss die erste Anweisung im Konstruktor sein, um auf „super“ oder „this“ zu verweisen, wenn eine abgeleitete Klasse initialisierte Eigenschaften, Parametereigenschaften oder private Bezeichner enthält.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Ein auf \"this\" basierender Typwächter ist nicht mit einem parameterbasierten Typwächter kompatibel.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Ein this-Typ ist nur in einem nicht statischen Member einer Klasse oder Schnittstelle verfügbar.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Ein \"export\"-Modifizierer der obersten Ebene kann nicht für Wertdeklarationen in einem CommonJS-Modul verwendet werden, wenn \"verbatimModuleSyntax\" aktiviert ist.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Eine Datei \"tsconfig.json\" ist bereits definiert unter: \"{0}\".", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Ein Tupelelement kann nicht gleichzeitig als \"optional\" und als \"rest\" festgelegt werden.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Ein Tupeltyp kann nicht mit einem negativen Wert indiziert werden.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Ein yield-Ausdruck ist nur in einem Generatortext zulässig.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Auf die abstrakte Methode \"{0}\" in der Klasse \"{1}\" kann nicht über den super-Ausdruck zugegriffen werden.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Abstrakte Methoden können nur in einer abstrakten Klasse verwendet werden.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Abstrakte Methoden können nur in einer abstrakten Klasse verwendet werden.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Auf die abstrakte Eigenschaft \"{0}\" in der Klasse \"{1}\" kann im Konstruktor nicht zugegriffen werden.", "Accessibility_modifier_already_seen_1028": "Der Zugriffsmodifizierer ist bereits vorhanden.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Zugriffsmethoden sind nur verfügbar, wenn das Ziel ECMAScript 5 oder höher ist.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Beide Accessoren müssen abstrakt oder nicht abstrakt sein.", "Add_0_to_unresolved_variable_90008": "Der nicht aufgelösten Variablen \"{0}.\" hinzufügen", "Add_a_return_statement_95111": "return-Anweisung hinzufügen", - "Add_a_return_type_to_the_function_declaration_9031": "Fügen Sie der Funktionsdeklaration einen Rückgabetyp hinzu.", - "Add_a_return_type_to_the_function_expression_9030": "Fügen Sie dem Funktionsausdruck einen Rückgabetyp hinzu.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Fügen Sie der get-Accessordeklaration einen Rückgabetyp hinzu.", - "Add_a_return_type_to_the_method_9034": "Der Methode einen Rückgabetyp hinzufügen", - "Add_a_type_annotation_to_the_parameter_0_9028": "Fügen Sie dem Parameter {0} eine Typanmerkung hinzu.", - "Add_a_type_annotation_to_the_property_0_9029": "Fügen Sie der Eigenschaft {0} eine Typanmerkung hinzu.", - "Add_a_type_annotation_to_the_variable_0_9027": "Fügen Sie der Variable {0} eine Typanmerkung hinzu.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Fügen Sie dem Parameter der set-Accessordeklaration einen Typ hinzu.", "Add_all_missing_async_modifiers_95041": "Alle fehlenden async-Modifizierer hinzufügen", "Add_all_missing_attributes_95168": "Alle fehlenden Attribute hinzufügen", "Add_all_missing_call_parentheses_95068": "Alle fehlenden Klammern in Aufrufen hinzufügen", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Alle fehlenden Importe hinzufügen", "Add_all_missing_members_95022": "Alle fehlenden Member hinzufügen", "Add_all_missing_override_modifiers_95162": "Alle fehlenden override-Modifizierer hinzufügen", - "Add_all_missing_parameters_95190": "Alle fehlenden Parameter hinzufügen", "Add_all_missing_properties_95166": "Alle fehlenden Eigenschaften hinzufügen", "Add_all_missing_return_statement_95114": "Alle fehlenden return-Anweisungen hinzufügen", "Add_all_missing_super_calls_95039": "Alle fehlenden super-Aufrufe hinzufügen", - "Add_all_missing_type_annotations_90067": "Alle fehlenden Typanmerkungen hinzufügen", - "Add_all_optional_parameters_95193": "Alle optionalen Parameter hinzufügen", - "Add_annotation_of_type_0_90062": "Anmerkung vom Typ \"{0}\" hinzufügen", "Add_async_modifier_to_containing_function_90029": "Async-Modifizierer zur enthaltenden Funktion hinzufügen", "Add_await_95083": "\"await\" hinzufügen", "Add_await_to_initializer_for_0_95084": "\"await\" zum Initialisierer für \"{0}\" hinzufügen", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Allen nicht initialisierten Eigenschaften Initialisierer hinzufügen", "Add_missing_attributes_95167": "Fehlende Attribute hinzufügen", "Add_missing_call_parentheses_95067": "Fehlende Klammern in Aufrufen hinzufügen", - "Add_missing_comma_for_object_member_completion_0_95187": "Fügen Sie ein fehlendes Komma für die Vervollständigung von Objektmembern \"{0}\" hinzu.", "Add_missing_enum_member_0_95063": "Fehlenden Enumerationsmember \"{0}\" hinzufügen", "Add_missing_function_declaration_0_95156": "Fehlende Funktionsdeklaration \"{0}\" hinzufügen", "Add_missing_new_operator_to_all_calls_95072": "Fehlenden new-Operator zu allen Aufrufen hinzufügen", "Add_missing_new_operator_to_call_95071": "Fehlender new-Operator zum Aufruf hinzufügen", - "Add_missing_parameter_to_0_95188": "Fehlenden Parameter zu \"{0}\" hinzufügen", - "Add_missing_parameters_to_0_95189": "Fehlende Parameter zu \"{0}\" hinzufügen", "Add_missing_properties_95165": "Fehlende Eigenschaften hinzufügen", "Add_missing_super_call_90001": "Fehlenden super()-Aufruf hinzufügen", "Add_missing_typeof_95052": "Fehlenden \"typeof\" hinzufügen", "Add_names_to_all_parameters_without_names_95073": "Namen zu allen Parametern ohne Namen hinzufügen", - "Add_optional_parameter_to_0_95191": "Optionale Parameter zu \"{0}\" hinzufügen", - "Add_optional_parameters_to_0_95192": "Optionale Parameter zu \"{0}\" hinzufügen", "Add_or_remove_braces_in_an_arrow_function_95058": "Geschweifte Klammern zu einer Pfeilfunktion hinzufügen oder daraus entfernen", "Add_override_modifier_95160": "override-Modifizierer hinzufügen", "Add_parameter_name_90034": "Parameternamen hinzufügen", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Allen nicht aufgelösten Variablen, die einem Membernamen entsprechen, Qualifizierer hinzufügen", - "Add_resolution_mode_import_attribute_95196": "Hinzufügen des Importattributs für den Auflösungsmodus (resolution-mode)", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Hinzufügen des Importattributs für den Auflösungsmodus (resolution-mode) für alle reinen Typimporte, die dieses Attribut benötigen", - "Add_return_type_0_90063": "Rückgabetyp \"{0}\" hinzufügen", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Fügen Sie diesem Ausdruck Erfüllungen und eine Typassertion hinzu (entspricht T als T), um den Typ explizit zu machen.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Erfüllungen und eine Inlinetypassertion mit \"{0}\" hinzufügen", "Add_to_all_uncalled_decorators_95044": "Allen nicht aufgerufenen Decorators \"()\" hinzufügen", "Add_ts_ignore_to_all_error_messages_95042": "Allen Fehlermeldungen \"@ts-ignore\" hinzufügen", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Fügen Sie einem Typ „undefined“ hinzu, wenn über einen Index darauf zugegriffen wird.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Standardimporte von Modulen ohne Standardexport zulassen. Dies wirkt sich nicht auf die Codeausgabe aus, lediglich auf die Typprüfung.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "\"Import x from y\" zulassen, wenn ein Modul keinen Standardexport hat.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Das Importieren von Hilfsfunktionen aus tslib einmal pro Projekt zulassen, anstatt sie pro Datei einzubeziehen.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Importe dürfen TypeScript-Dateierweiterungen enthalten. Erfordert die Festlegung von \"--moduleResolution bundler\" und \"--noEmit\" oder \"--emitDeclarationOnly\".", "Allow_javascript_files_to_be_compiled_6102": "Kompilierung von JavaScript-Dateien zulassen.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Lassen Sie zu, dass mehrere Ordner beim Auflösen von Modulen als ein Ordner behandelt werden.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Der bereits enthaltene Dateiname \"{0}\" unterscheidet sich vom Dateinamen \"{1}\" nur hinsichtlich der Groß-/Kleinschreibung.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Es wurde kein Argument angegeben, das diesem Bindungsmuster entspricht.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Ein arithmetischer Operand muss vom Typ \"any\", \"number\" oder \"bigint\" oder ein Enumerationstyp sein.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Eine Pfeilfunktion darf keinen this-Parameter aufweisen.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Eine Async-Funktion oder -Methode in ES5 erfordert den Konstruktor \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Eine Async-Funktion oder -Methode in ES5/ES3 erfordert den Konstruktur \"Promise\". Stellen Sie sicher, dass Sie über eine Deklaration für den Konstruktor \"Promise\" verfügen, oder schließen Sie \"ES2015\" in Ihre Option \"--lib\" ein.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Eine asynchrone Funktion oder Methode muss \"Promise\" zurückgeben. Stellen Sie sicher, dass Sie über eine Deklaration für \"Promise\" verfügen, oder schließen Sie ES2015 in Ihrer Option \"--lib\" ein.", "An_async_iterator_must_have_a_next_method_2519": "Ein Async-Iterator muss eine \"next()\"-Async-Methode aufweisen.", "An_element_access_expression_should_take_an_argument_1011": "Ein Ausdruck für einen Elementzugriff muss ein Argument verwenden.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Eine Exportdeklaration kann nur auf der obersten Ebene eines Moduls verwendet werden.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Eine Exportdeklaration kann nur auf der obersten Ebene eines Namespace oder Moduls verwendet werden.", "An_export_declaration_cannot_have_modifiers_1193": "Eine Exportdeklaration darf keine Modifizierer besitzen.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Eine \"export =\"-Deklaration muss auf einen reellen Wert verweisen, wenn \"verbatimModuleSyntax\" aktiviert ist, \"{0}\" wird jedoch in eine rein typbasierte Deklaration aufgelöst.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Eine \"export =\"-Deklaration muss auf einen Wert verweisen, wenn \"verbatimModuleSyntax\" aktiviert ist, \"{0}\" verweist jedoch auf einen Typ.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "\"export default\" muss auf einen reellen Wert verweisen, wenn \"verbatimModuleSyntax\" aktiviert ist, \"{0}\" wird jedoch in eine rein typbasierte Deklaration aufgelöst.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Ein \"export default\" muss auf einen Wert verweisen, wenn \"verbatimModuleSyntax\" aktiviert ist, \"{0}\" verweist jedoch auf einen Typ.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Für einen Ausdruck vom Typ \"void\" kann nicht getestet werden, ob er wahr oder falsch ist.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Ein erweiterter Unicode-Escapewert muss zwischen 0x0 und 0x10FFFF (einschließlich) liegen.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Ein Bezeichner oder ein Schlüsselwort kann nicht direkt auf ein numerisches Literal folgen.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Eine Implementierung darf nicht in Umgebungskontexten deklariert werden.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Ein Importalias kann nicht auf eine Deklaration verweisen, die mithilfe von \"export type\" exportiert wurde.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Ein Importalias kann nicht auf eine Deklaration verweisen, die mithilfe von \"import type\" importiert wurde.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Ein Importalias kann nicht in eine Typ- oder nur Typdeklaration aufgelöst werden, wenn \"verbatimModuleSyntax\" aktiviert ist.", "An_import_alias_cannot_use_import_type_1392": "Ein Importalias kann \"import type\" nicht verwenden.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Eine Importdeklaration kann nur auf der obersten Ebene eines Moduls verwendet werden.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Eine Importdeklaration kann nur auf der obersten Ebene eines Namespace oder Moduls verwendet werden.", "An_import_declaration_cannot_have_modifiers_1191": "Eine Importdeklaration darf keine Modifizierer besitzen.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Ein Importpfad kann nur mit einer \"{0}\"-Erweiterung enden, wenn \"allowImportingTsExtensions\" aktiviert ist.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Ein Importpfad darf nicht mit einer Erweiterung \"{0}\" enden. Importieren Sie ggf. stattdessen \"{1}\".", "An_index_signature_cannot_have_a_rest_parameter_1017": "Eine Indexsignatur darf keinen rest-Parameter besitzen.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Eine Indexsignatur darf kein nachstehendes Komma aufweisen.", "An_index_signature_must_have_a_type_annotation_1021": "Eine Indexsignatur muss eine Typanmerkung besitzen.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Auf einen Instanziierungsausdruck kann kein Eigenschaftenzugriff folgen.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Eine Schnittstelle kann nur einen Bezeichner/\"qualified-name\" mit optionalen Typargumenten erweitern.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Eine Schnittstelle kann nur einen Objekttyp oder eine Schnittmenge von Objekttypen mit statisch bekannten Membern erweitern.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Eine Schnittstelle kann einen primitiven Typ wie \"{0}\" nicht erweitern. Es können nur andere benannte Objekttypen erweitert werden.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Eine Schnittstelle kann einen primitiven Typ wie „{0}“ nicht erweitern; eine Schnittstelle kann nur benannte Typen und Klassen erweitern", "An_interface_property_cannot_have_an_initializer_1246": "Schnittstelleneigenschaften können keinen Initialisierer aufweisen.", "An_iterator_must_have_a_next_method_2489": "Ein Iterator muss eine Methode \"next()\" besitzen.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Bei Verwendung eines @jsx-Pragmas mit JSX-Fragmenten wird ein @jsxFrag-Pragma benötigt.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Ein Objektliteral darf nicht über mehrere Eigenschaften mit demselben Namen verfügen.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Ein Objektliteral darf nicht eine Eigenschaft und eine Zugriffsmethode mit demselben Namen besitzen.", "An_object_member_cannot_be_declared_optional_1162": "Ein Objektmember darf nicht als optional deklariert werden.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Die Methode \"[Symbol.hasInstance]\" eines Objekts muss einen booleschen Wert zurückgeben, damit es auf der rechten Seite eines instanceof-Ausdrucks verwendet werden kann.", "An_optional_chain_cannot_contain_private_identifiers_18030": "Eine optionale Kette kann keine privaten Bezeichner enthalten.", "An_optional_element_cannot_follow_a_rest_element_1266": "Ein optionales Element darf nicht auf ein rest-Element folgen.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Ein äußerer Wert von \"this\" wird durch diesen Container verborgen.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Eine Überladungssignatur darf nicht als ein Generator deklariert werden.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Unäre Ausdrücke mit dem Operator \"{0}\" sind auf der linken Seite von Potenzierungsausdrücken nicht zulässig. Erwägen Sie, den Ausdruck in Klammern zu setzen.", "Annotate_everything_with_types_from_JSDoc_95043": "Alle Funktionen mit Typen aus JSDoc kommentieren", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Erweiterungsfunktionstypen von Eigenschaften in einem Namespace mit Anmerkungen versehen", "Annotate_with_type_from_JSDoc_95009": "Mit Typ aus JSDoc kommentieren", "Another_export_default_is_here_2753": "Ein weiterer Exportstandardwert befindet sich hier.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Jede Unicode-Eigenschaft, die möglicherweise mehr als ein einzelnes Zeichen enthalten würde, ist nur verfügbar, wenn das Flag \"Unicode Sets (v)\" festgelegt ist.", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Alle Elemente, die möglicherweise mehr als einem einzelnen Zeichen entsprechen, sind innerhalb einer negierten Zeichenklasse ungültig.", "Are_you_missing_a_semicolon_2734": "Fehlt ein Semikolon?", "Argument_expression_expected_1135": "Es wurde ein Argumentausdruck erwartet.", "Argument_for_0_option_must_be_Colon_1_6046": "Das Argument für die Option \"{0}\" muss \"{1}\" sein.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Das Argument vom Typ „{0}“ kann dem Parameter vom Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zu den Typen der Zieleigenschaften.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Es wurden keine Argumente für den rest-Parameter \"{0}\" angegeben.", "Array_element_destructuring_pattern_expected_1181": "Ein Arrayelement-Destrukturierungsmuster wurde erwartet.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Arrays mit Verteilungselementen können nicht mit \"--isolatedDeclarations\" abgeleitet werden.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Assertionen erfordern, dass jeder Name im Aufrufziel mit einer expliziten Typanmerkung deklariert wird.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Assertionen erfordern, dass das Aufrufziel ein Bezeichner oder ein qualifizierter Name ist.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Das Zuweisen von Eigenschaften zu Funktionen ohne Deklaration wird mit \"--isolatedDeclarations\" nicht unterstützt. Fügen Sie eine explizite Deklaration für die Eigenschaften hinzu, die dieser Funktion zugewiesen sind.", "Asterisk_Slash_expected_1010": "\"*/\" wurde erwartet.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Mindestens ein Accessor muss über eine explizite Typanmerkung mit „--isolatedDeclarations“ verfügen.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Erweiterungen für den globalen Bereich können nur in externen Modulen oder Umgebungsmoduldeklarationen direkt geschachtelt werden.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Erweiterungen für den globalen Bereich sollten den Modifizierer \"declare\" aufweisen, wenn sie nicht bereits in einem Umgebungskontext auftreten.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "In Projekt \"{0}\" ist die automatische Erkennung von Eingaben aktiviert. Es wird ein zusätzlicher Auflösungsdurchlauf für das Modul \"{1}\" unter Verwendung von Cachespeicherort \"{2}\" ausgeführt.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Der \"Await\"-Ausdruck kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", "BUILD_OPTIONS_6919": "BUILDOPTIONEN", "Backwards_Compatibility_6253": "Abwärtskompatibilität", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Basisklassenausdrücke können nicht auf Klassentypparameter verweisen.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "bigint-Literale sind nicht verfügbar, wenn die Zielversion niedriger ist als ES2020.", "Binary_digit_expected_1177": "Es wurde eine Binärzahl erwartet.", "Binding_element_0_implicitly_has_an_1_type_7031": "Das Bindungselement \"{0}\" weist implizit einen Typ \"{1}\" auf.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Bindungselemente können nicht direkt mit \"--isolatedDeclarations\" exportiert werden.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Die blockbezogene Variable \"{0}\" wurde vor ihrer Deklaration verwendet.", "Build_a_composite_project_in_the_working_directory_6925": "Erstellen Sie ein zusammengesetztes Projekt im Arbeitsverzeichnis.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Erstellen Sie alle Projekte, einschließlich der Projekte, die aktuell zu sein scheinen.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Mindestens ein Projekt und die zugehörigen Abhängigkeiten erstellen, wenn veraltet", "Build_option_0_requires_a_value_of_type_1_5073": "Die Buildoption \"{0}\" erfordert einen Wert vom Typ \"{1}\".", "Building_project_0_6358": "Projekt \"{0}\" wird erstellt...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Integrierte Iteratoren werden mit dem Typ \"TReturn\" vom Typ \"undefined\" anstelle von \"any\" instanziiert.", "COMMAND_LINE_FLAGS_6921": "BEFEHLSZEILENFLAGS", "COMMON_COMMANDS_6916": "ALLGEMEINE BEFEHLE", "COMMON_COMPILER_OPTIONS_6920": "ALLGEMEINE COMPILEROPTIONEN", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Die Rückgabetypen \"{0}\" und \"{1}\" der Aufrufsignatur sind nicht kompatibel.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Eine Aufrufsignatur ohne Rückgabetypanmerkung weist implizit einen any-Rückgabetyp auf.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Aufrufsignaturen ohne Argumente weisen inkompatible Rückgabetypen \"{0}\" und \"{1}\" auf.", + "Call_target_does_not_contain_any_signatures_2346": "Das Aufrufziel enthält keine Signaturen.", "Can_only_convert_logical_AND_access_chains_95142": "Es können nur Zugriffsketten mit logischem \"Und\" konvertiert werden.", "Can_only_convert_named_export_95164": "Nur ein benannter Export kann konvertiert werden.", "Can_only_convert_property_with_modifier_95137": "Die Eigenschaft kann nur mit einem Modifizierer konvertiert werden.", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Nur Zeichenfolgenverkettungen und Zeichenfolgenliterale können konvertiert werden.", + "Can_only_convert_string_concatenation_95154": "Es ist nur die Konvertierung einer Zeichenfolgenverkettung möglich.", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Der Zugriff auf \"{0}.{1}\" ist nicht möglich, da \"{0}\" ein Typ ist, aber kein Namespace. Wollten Sie den Typ der Eigenschaft \"{1}\" in \"{0}\" mit \"{0}[\"{1}\"]\" abrufen?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Auf \"{0}\" aus einer anderen Datei kann nicht ohne Qualifizierung zugegriffen werden, wenn \"{1}\" aktiviert ist. Verwenden Sie stattdessen \"{2}\".", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Auf Umgebungskonstantenenumerationen kann nicht zugegriffen werden, wenn \"{0}\" aktiviert ist.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Auf umgebende const-Enumerationen kann nicht zugegriffen werden, wenn das Flag \"--isolatedModules\" angegeben wird.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Ein Konstruktortyp \"{0}\" kann nicht einem Konstruktortyp \"{1}\" zugewiesen werden.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Ein abstrakter Konstruktortyp kann nicht einem nicht abstrakten Konstruktortyp zugewiesen werden.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Eine Zuweisung zu \"{0}\" ist nicht möglich, weil es sich um eine Klasse handelt.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Die Bibliotheksdefinition für \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Das Modul \"{0}\" wurde nicht gefunden. Erwägen Sie die Verwendung von \"--resolveJsonModule\" zum Importieren eines Moduls mit der Erweiterung \".json\".", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Das Modul \"{0}\" wurde nicht gefunden. Möchten Sie die Option \"moduleResolution\" auf \"nodenext\" festlegen oder Aliase zur Option \"paths\" hinzufügen?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Das Modul \"{0}\" wurde nicht gefunden. Möchten Sie die Option \"moduleResolution\" auf \"node\" festlegen oder Aliase zur Option \"paths\" hinzufügen?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Das Modul \"{0}\" oder die zugehörigen Typdeklarationen wurden nicht gefunden.", "Cannot_find_name_0_2304": "Der Name \"{0}\" wurde nicht gefunden.", "Cannot_find_name_0_Did_you_mean_1_2552": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Der Name „{0}“ wurde nicht gefunden. Wollten Sie dies in eine asynchrone Funktion schreiben?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"{1}\" oder höher.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" so ab, dass sie \"dom\" enthält.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für Bun installieren? Versuchen Sie es mit \"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_2868": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für Bun installieren? Versuchen Sie es mit \"npm i --save-dev @types/bun\", und fügen Sie dann dem Typenfeld in Ihrer tsconfig-Datei \"bun\" hinzu.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für einen Test Runner installieren? Versuchen Sie es mit \"npm i --save-dev @types/jest\" oder \"npm i --save-dev @types/mocha\".", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für einen Test Runner installieren? Versuchen Sie es mit \"npm i --save-dev @types/jest\" oder \"npm i --save-dev @types/mocha\", und fügen Sie dann dem Typenfeld in Ihrer tsconfig-Datei \"jest\" oder \"mocha\" hinzu.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Der Name \"{0}\" wurde nicht gefunden. Müssen Sie Typdefinitionen für jQuery installieren? Versuchen Sie es mit \"npm i --save-dev @types/jquery\".", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, die Arraydestrukturierung aber immer \"{0}\" sendet.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, die Arrayverteilung aber immer \"{0}\" sendet.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Der Wert kann nicht durchlaufen werden, weil die next-Methode des zugehörigen Iterators den Typ \"{1}\" erwartet, \"for-of\" aber immer \"{0}\" sendet.", - "Cannot_move_statements_to_the_selected_file_95183": "Anweisungen können nicht in die ausgewählte Datei verschoben werden.", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Verschieben in Datei nicht möglich, die ausgewählte Datei ist ungültig", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Das Projekt \"{0}\" kann nicht vorgestellt werden, weil \"outFile\" nicht festgelegt wurde.", "Cannot_read_file_0_5083": "Die Datei \"{0}\" kann nicht gelesen werden.", "Cannot_read_file_0_Colon_1_5012": "Die Datei \"{0}\" kann nicht gelesen werden: {1}", "Cannot_redeclare_block_scoped_variable_0_2451": "Die blockbezogene Variable \"{0}\" Blockbereich kann nicht erneut deklariert werden.", "Cannot_redeclare_exported_variable_0_2323": "Die exportierte Variable \"{0}\" kann nicht erneut deklariert werden.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Der Bezeichner \"{0}\" in der Catch-Klausel kann nicht erneut deklariert werden.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Kann in einer Typanmerkung keinen Funktionsaufruf starten.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Die Ausgabe des Projekts \"{0}\" kann nicht aktualisiert werden, weil es beim Lesen der Datei \"{1}\" zu einem Fehler gekommen ist.", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "JSX kann nur verwendet werden, wenn das Flag \"-jsx\" angegeben wird.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "\"export import\" kann nicht für einen Typ oder einen reinen Typnamespace verwendet werden, wenn {0} aktiviert ist.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "„export import“ kann nicht für einen Typ oder einen reinen Typnamespace verwendet werden, wenn das Flag „--isolatedModules“ angegeben wird.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Es können keine imports-, exports- oder module-Erweiterungen verwendet werden, wenn \"-module\" den Wert \"none\" aufweist.", "Cannot_use_namespace_0_as_a_type_2709": "Der Namespace \"{0}\" kann nicht als Typ verwendet werden.", "Cannot_use_namespace_0_as_a_value_2708": "Der Namespace \"{0}\" kann nicht als Wert verwendet werden.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "\"extends\" in \"implements\" ändern", "Change_spelling_to_0_90022": "Schreibweise in \"{0}\" ändern", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Suchen Sie nach Klasseneigenschaften, die im Konstruktor deklariert, aber nicht festgelegt sind.", - "Check_side_effect_imports_6806": "Überprüfen Sie die Nebeneffektimporte.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Überprüfen Sie, ob die Argumente für die Methoden „bind“, „call“ und „apply“ mit der ursprünglichen Funktion übereinstimmen.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Es wird überprüft, ob \"{0}\" das längste übereinstimmende Präfix für \"{1}\"–\"{2}\" ist.", "Circular_definition_of_import_alias_0_2303": "Zirkuläre Definition des Importalias \"{0}\".", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "Die Klassendeklaration kann die Überladungsliste für \"{0}\" nicht implementieren.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Klassendeklarationen dürfen maximal ein \"@augments\"- oder \"@extends\"-Tag aufweisen.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Decorator-Elemente von Klassen können nicht mit einem statischen privaten Bezeichner verwendet werden. Erwägen Sie, das experimentelle Decorator-Element zu entfernen.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Auf das von der übergeordneten Klasse definierte Klassenfeld \"{0}\" kann in der untergeordneten Klasse nicht über \"super\" zugegriffen werden.", "Class_name_cannot_be_0_2414": "Der Klassenname darf nicht \"{0}\" sein.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Der Klassenname darf nicht \"Object\" lauten, wenn ES5 mit Modul \"{0}\" als Ziel verwendet wird.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Die statische Seite der Klasse \"{0}\" erweitert fälschlicherweise die statische Seite der Basisklasse \"{1}\".", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Befehlszeilenoptionen", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Kompilieren Sie das dem Pfad zugewiesene Projekt zu dessen Konfigurationsdatei oder zu einem Ordner mit der Datei \"tsconfig.json\".", "Compiler_Diagnostics_6251": "Compilerdiagnose", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "Die Compileroption \"{0}\" darf keine leere Zeichenfolge erhalten.", "Compiler_option_0_expects_an_argument_6044": "Die Compileroption \"{0}\" erwartet ein Argument.", "Compiler_option_0_may_not_be_used_with_build_5094": "Die Compileroption \"--{0}\" darf nicht mit \"--build\" verwendet werden.", "Compiler_option_0_may_only_be_used_with_build_5093": "Die Compileroption \"--{0}\" darf nur mit \"--build\" verwendet werden.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "In zusammengesetzten Projekten kann die Deklarationsausgabe nicht deaktiviert werden.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Zusammengesetzte Projekte dürfen die inkrementelle Kompilierung nicht deaktivieren.", "Computed_from_the_list_of_input_files_6911": "Aus der Liste der Eingabedateien berechnet", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Berechnete Eigenschaften müssen Zahlen- oder Zeichenfolgenliterale, Variablen oder gepunktete Ausdrücke mit \"--isolatedDeclarations\" sein.", "Computed_property_names_are_not_allowed_in_enums_1164": "Berechnete Eigenschaftennamen sind in Enumerationen unzulässig.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Berechnete Eigenschaftsnamen für Klassen- oder Objektliterale können nicht mit \"--isolatedDeclarations\" abgeleitet werden.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Berechnete Werte sind in einer Enumeration mit Membern mit Zeichenfolgenwerten nicht zulässig.", "Concatenate_and_emit_output_to_single_file_6001": "Verketten und Ausgabe in einer Datei speichern.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Bedingungen, die zusätzlich zu den konfliktlöserspezifischen Standardwerten beim Auflösen von Importen festgelegt werden sollen.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "In Konflikt stehende Definitionen für \"{0}\" wurden unter \"{1}\" und \"{2}\" gefunden. Installieren Sie ggf. eine bestimmte Version dieser Bibliothek, um den Konflikt aufzulösen.", "Conflicts_are_in_this_file_6201": "In dieser Datei liegen Konflikte vor.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Erwägen Sie, dieser Klasse einen declare-Modifizierer hinzuzufügen.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Die Rückgabetypen \"{0}\" und \"{1}\" der Konstruktsignatur sind nicht kompatibel.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "\"{0}\" in zugeordneten Objekttyp konvertieren", "Convert_all_const_to_let_95102": "Alle \"const\" in \"let\" konvertieren", "Convert_all_constructor_functions_to_classes_95045": "Alle Konstruktorfunktionen in Klassen konvertieren", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Alle nicht als Wert verwendeten Importe in reine Typenimporte konvertieren", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Alle ungültigen Zeichen in HTML-Entitätscode konvertieren", "Convert_all_re_exported_types_to_type_only_exports_1365": "Alle erneut exportierten Typen in reine Typenexporte konvertieren", "Convert_all_require_to_import_95048": "Alle Aufrufe von \"require\" in \"import\" konvertieren", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Alle in numerische bigint-Literale konvertieren", "Convert_all_to_default_imports_95035": "Alle in Standardimporte konvertieren", "Convert_all_type_literals_to_mapped_type_95021": "Alle Typliterale in einen zugeordneten Typ konvertieren", - "Convert_all_typedef_to_TypeScript_types_95177": "Konvertieren Sie alle typedef in TypeScript-Typen.", "Convert_arrow_function_or_function_expression_95122": "Pfeilfunktion oder Funktionsausdruck konvertieren", "Convert_const_to_let_95093": "\"const\" in \"let\" konvertieren", "Convert_default_export_to_named_export_95061": "Standardexport in benannten Export konvertieren", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "In optionalen Kettenausdruck konvertieren", "Convert_to_template_string_95096": "In Vorlagenzeichenfolge konvertieren", "Convert_to_type_only_export_1364": "In reinen Typenexport konvertieren", - "Convert_typedef_to_TypeScript_type_95176": "Konvertieren Sie typedef in den TypeScript-Typ.", + "Convert_to_type_only_import_1373": "In reinen Typenimport konvertieren", "Corrupted_locale_file_0_6051": "Die Gebietsschemadatei \"{0}\" ist beschädigt.", "Could_not_convert_to_anonymous_function_95153": "Die Konvertierung in eine anonyme Funktion ist nicht möglich.", "Could_not_convert_to_arrow_function_95151": "Die Konvertierung in eine Pfeilfunktion ist nicht möglich.", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Der Name \"{0}\" wurde nicht gefunden. Meinten Sie \"{1}\"?", "Could_not_find_namespace_import_or_named_imports_95132": "Der Namespaceimport oder benannte Importe wurden nicht gefunden.", "Could_not_find_property_for_which_to_generate_accessor_95135": "Die Eigenschaft, für die die Zugriffsmethode generiert werden soll, wurde nicht gefunden.", - "Could_not_find_variable_to_inline_95185": "Die Variable zum Inlinevorgang wurde nicht gefunden.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Der Pfad \"{0}\" mit den Erweiterungen konnte nicht aufgelöst werden: {1}.", "Could_not_write_file_0_Colon_1_5033": "Die Datei \"{0}\" konnte nicht geschrieben werden. {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Erstellen Sie Quellzuordnungsdateien für ausgegebene JavaScript-Dateien.", "Create_sourcemaps_for_d_ts_files_6614": "Erstellen Sie Quellzuordnungen für d.ts-Dateien.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Erstellt eine tsconfig.json mit den empfohlenen Einstellungen im Arbeitsverzeichnis.", "DIRECTORY_6038": "VERZEICHNIS", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Dezimale Escapesequenzen und Rückvektoren sind in einer Zeichenklasse nicht zulässig.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Dezimalstellen mit führenden Nullen sind nicht zulässig.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Die Deklaration erweitert die Deklaration in einer anderen Datei. Dieser Vorgang kann nicht serialisiert werden.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Die Deklarationsausgabe für diese Datei erfordert, dass dieser Import für Augmentationen beibehalten wird. Dies wird mit \"--isolatedDeclarations\" nicht unterstützt.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Zur Deklarationsausgabe für diese Datei muss der private Name \"{0}\" aus dem Modul \"{1}\" verwendet werden. Eine explizite Typanmerkung kann die Deklarationsausgabe freigeben.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Die Deklarationsausgabe für diesen Parameter erfordert das implizit undefinierte Hinzufügen zum Typ. Dies wird mit „--isolatedDeclarations“ nicht unterstützt.", "Declaration_expected_1146": "Es wurde eine Deklaration erwartet.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Der Deklarationsname steht in Konflikt mit dem integrierten globalen Bezeichner \"{0}\".", "Declaration_or_statement_expected_1128": "Es wurde eine Deklaration oder Anweisung erwartet.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Es wurde eine Deklaration oder Anweisung erwartet. Dieses Gleichheitszeichen (=) folgt auf einen Anweisungsblock. Wenn Sie daher eine Destrukturierungszuweisung schreiben möchten, müssen Sie möglicherweise die gesamte Zuweisung in runde Klammern einschließen.", + "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Deklaration oder Anweisung erwartet. Dieses Gleichheitszeichen (=) folgt auf einen Anweisungsblock. Wenn Sie daher eine Destrukturierungszuweisung schreiben möchten, müssen Sie möglicherweise die gesamte Zuweisung in runde Klammern einschließen.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Deklarationen mit definitiven Zuweisungsassertionen müssen auch Typanmerkungen aufweisen.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Deklarationen mit Initialisierern dürfen keine definitiven Zuweisungsassertionen aufweisen.", "Declare_a_private_field_named_0_90053": "Deklarieren Sie ein privates Feld mit dem Namen \"{0}\".", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Statische Eigenschaft \"{0}\" deklarieren", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Der Rückgabetyp der Decorator-Funktion „{0}“ kann dem Typ „{1}“ nicht zugewiesen werden.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Der Rückgabetyp der Decorator-Funktion ist „{0}“, es wird jedoch erwartet, dass er „void“ oder „any“ ist.", - "Decorator_used_before_export_here_1486": "Decorator, der hier vor \"export\" verwendet wird.", "Decorators_are_not_valid_here_1206": "Decorators sind hier ungültig.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Decorators dürfen nicht auf mehrere get-/set-Zugriffsmethoden mit dem gleichen Namen angewendet werden.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Decorators dürfen nicht nach \"export\" oder \"export default\" angezeigt werden, wenn sie auch vor \"export\" angezeigt werden.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Decorators dürfen nicht auf this-Parameter angewendet werden.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Vor dem Namen und allen Schlüsselwörtern von Eigenschaftendeklarationen müssen Decorator-Elemente stehen.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Stellen Sie die Variablen der Catch-Klauseln standardmäßig als „unknown“ anstelle von „any“ ein.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Der Standardexport des Moduls besitzt oder verwendet den privaten Namen \"{0}\".", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Standardexporte können nicht mit \"--isolatedDeclarations\" abgeleitet werden.", "Default_library_1424": "Standardbibliothek", "Default_library_for_target_0_1425": "Standardbibliothek für Ziel \"{0}\"", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definitionen der folgenden Bezeichner stehen in Konflikt mit denen in einer anderen Datei: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Deaktivieren Sie das Löschen von „const enum“-Deklarationen in generiertem Code.", "Disable_error_reporting_for_unreachable_code_6603": "Deaktivieren Sie die Fehlerberichterstattung für nicht erreichbaren Code.", "Disable_error_reporting_for_unused_labels_6604": "Deaktivieren Sie die Fehlerberichterstattung für nicht verwendete Bezeichnungen.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Deaktivieren Sie die vollständige Typüberprüfung (nur kritische Analyse- und Ausgabefehler werden gemeldet).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Deaktivieren Sie das Generieren von benutzerdefinierten Hilfsfunktionen wie „__extends“ in der kompilierten Ausgabe.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Deaktivieren Sie das Einschließen von Bibliotheksdateien, einschließlich der Standarddatei \"lib.d.ts\".", "Disable_loading_referenced_projects_6235": "Deaktivieren Sie das Laden referenzierter Projekte.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Hiermit wird verhindert, dass „import“, „require“ oder „“ die Anzahl der Dateien erweitern, die TypeScript einem Projekt hinzufügen soll.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Verweise mit uneinheitlicher Groß-/Kleinschreibung auf die gleiche Datei nicht zulassen.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Fügen Sie keine Verweise mit dreifachen Schrägstrichen oder importierte Module zur Liste kompilierter Dateien hinzu.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Laufzeitkonstrukte, die nicht Teil von ECMAScript sind, nicht zulassen", "Do_not_emit_comments_to_output_6009": "Kommentare nicht an die Ausgabe ausgeben.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Deklarationen für Code mit einer Anmerkung \"@internal\" nicht ausgeben.", "Do_not_emit_outputs_6010": "Keine Ausgaben ausgeben.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Fehler zu nicht erreichbarem Code nicht melden.", "Do_not_report_errors_on_unused_labels_6074": "Fehler zu nicht verwendeten Bezeichnungen nicht melden.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Tatsächlichen Pfad von symbolischen Verknüpfungen nicht auflösen.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Sie sollten keine Importe oder Exporte transformieren oder ausblenden, die nicht als typgeschützt markiert sind. Stellen Sie sicher, dass sie basierend auf der Einstellung \"module\" im Format der Ausgabedatei geschrieben werden.", "Do_not_truncate_error_messages_6165": "Kürzen Sie keine Fehlermeldungen.", "Duplicate_function_implementation_2393": "Doppelte Funktionsimplementierung.", "Duplicate_identifier_0_2300": "Doppelter Bezeichner \"{0}\".", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Doppelte Indexsignatur für Typ \"{0}\".", "Duplicate_label_0_1114": "Doppelte Bezeichnung \"{0}\".", "Duplicate_property_0_2718": "Doppelte Eigenschaft: {0}", - "Duplicate_regular_expression_flag_1500": "Doppeltes Flag für reguläre Ausdrücke.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Der Spezifizierer des dynamischen Imports muss den Typ \"string\" aufweisen, hier ist er jedoch vom Typ \"{0}\".", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamische Importe werden nur unterstützt, wenn das Flag „--module“ auf „es2020“, „es2022“, „esnext“, „commonjs“, „amd“, „system“, „umd“, „node16“, „node18“ oder „nodenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Dynamische Importe können nur einen Modulspezifizierer und ein optionales Set mit Attributen als Argumente akzeptieren.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Dynamische Importe unterstützen nur ein zweites Argument, wenn die Option „--module“ auf „esnext“, „node16“, „node18“, nodenext“ oder „preserve“ gesetzt ist.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "Die ESM-Syntax ist in einem CommonJS-Modul nicht zulässig, wenn \"module\" auf \"preserve\" festgelegt ist.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "Die ESM-Syntax ist in einem CommonJS-Modul nicht zulässig, wenn \"verbatimModuleSyntax\" aktiviert ist.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Jede Deklaration von \"{0}.{1}\" unterscheidet sich in ihrem Wert, wobei \"{2}\" erwartet, aber \"{3}\" angegeben wurde.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamische Importe werden nur unterstützt, wenn das Flag „--module“ auf „es2020“, „es2022“, „esnext“, „commonjs“, „amd“, „system“, „umd“, „node16“ oder „ Knotenext'.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dynamische Importe können nur einen Modulspezifizierer und eine optionale Assertion als Argumente akzeptieren.", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Dynamische Importe unterstützen nur ein zweites Argument, wenn die Option „--module“ auf „esnext“, „node16“ oder „nodenext“ gesetzt ist.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Jeder Member des union-Typs \"{0}\" weist Konstruktsignaturen auf, aber keine dieser Signaturen ist miteinander kompatibel.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Jeder Member des union-Typs \"{0}\" weist Signaturen auf, aber keine dieser Signaturen ist miteinander kompatibel.", "Editor_Support_6249": "Editor-Unterstützung", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Aktivieren Sie die Fehlerberichterstattung in typgeprüften JavaScript-Dateien.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Aktivieren Sie die Fehlerberichterstattung, wenn lokale Variablen nicht gelesen werden.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Aktivieren Sie die Fehlerberichterstattung, wenn „this“ den Typ „any“ erhält.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Aktivieren Sie experimentelle Unterstützung für experimentelle Legacy-Decorators.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Hiermit wird das Importieren von Dateien mit beliebiger Erweiterung aktiviert, sofern eine Deklarationsdatei vorhanden ist.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Aktivieren Sie experimentelle Unterstützung für Entwurf-Decorator der TC39-Phase 2.", "Enable_importing_json_files_6689": "Aktivieren Sie das Importieren von JSON-Dateien.", - "Enable_lib_replacement_6808": "Libersetzung aktivieren.", "Enable_project_compilation_6302": "Projektkompilierung aktivieren", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Aktivieren Sie die strict-Methoden \"bind\", \"call\" und \"apply\" für Funktionen.", "Enable_strict_checking_of_function_types_6186": "Aktivieren Sie die strenge Überprüfung für Funktionstypen.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Stellen Sie sicher, dass die Groß-/Kleinschreibung beim Import korrekt ist.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Stellen Sie sicher, dass jede Datei sicher transpiliert werden kann, ohne dass andere Importe erforderlich sind.", "Ensure_use_strict_is_always_emitted_6605": "Stellen Sie sicher, dass \"Use Strict\" immer ausgegeben wird.", - "Entering_conditional_exports_6413": "Bedingte Exporte werden eingegeben.", "Entry_point_for_implicit_type_library_0_1420": "Einstiegspunkt für implizite Typbibliothek \"{0}\"", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Einstiegspunkt für die implizite Typbibliothek \"{0}\" mit packageId \"{1}\"", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Der in \"compilerOptions\" angegebene Einstiegspunkt der Typbibliothek \"{0}\"", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Enumerationsdeklarationen können nur mit Namespace- oder anderen Enumerationsdeklarationen zusammengeführt werden.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Enumerationsdeklarationen müssen alle konstant oder nicht konstant sein.", "Enum_member_expected_1132": "Ein Enumerationsmember wurde erwartet.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Der Enumerationsmember, der auf ein nicht literales numerisches Element folgt, muss über einen Initialisierer verfügen, wenn \"isolatedModules\" aktiviert ist.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Enumerationsmemberinitialisierer müssen ohne Verweise auf externe Symbole mit \"--isolatedDeclarations\" berechenbar sein.", "Enum_member_must_have_initializer_1061": "Ein Enumerationsmember muss einen Initialisierer aufweisen.", "Enum_name_cannot_be_0_2431": "Der Enumerationsname darf nicht \"{0}\" sein.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Der Enumerationstyp \"{0}\" weist Member mit Initialisierern auf, die keine Literale sind.", "Errors_Files_6041": "Fehlerdateien", - "Escape_sequence_0_is_not_allowed_1488": "Escapesequenz \"{0}\" ist nicht zulässig.", "Examples_Colon_0_6026": "Beispiele: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Übermäßige Komplexität beim Vergleichen der Typen \"{0}\" und \"{1}\".", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Übermäßige Stapeltiefe beim Vergleichen der Typen \"{0}\" und \"{1}\".", - "Exiting_conditional_exports_6416": "Bedingte Exporte werden beendet.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "{0}-{1} Typargumente erwartet; geben Sie diese mit einem @extends-Tag an.", "Expected_0_arguments_but_got_1_2554": "{0} Argumente wurden erwartet, empfangen wurden aber {1}.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Es wurden {0} Argumente erwartet, aber {1} erhalten. Sollte \"void\" in Ihr Typargument in \"Promise\" eingeschlossen werden?", "Expected_0_type_arguments_but_got_1_2558": "{0} Typenargumente wurden erwartet, empfangen wurden aber {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "{0} Typargumente erwartet; geben Sie diese mit einem @extends-Tag an.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 Argument erwartet, aber 0 erhalten. „new Promise()“ benötigt einen JSDoc-Hinweis, um einen „resolve“ zu erzeugen, der ohne Argumente aufgerufen werden kann.", - "Expected_a_Unicode_property_name_1523": "Es wurde ein Unicode-Eigenschaftsname erwartet.", - "Expected_a_Unicode_property_name_or_value_1527": "Es wurde ein Unicode-Eigenschaftsname oder -wert erwartet.", - "Expected_a_Unicode_property_value_1525": "Es wurde ein Unicode-Eigenschaftswert erwartet.", - "Expected_a_capturing_group_name_1514": "Es wurde ein Name für die Erfassungsgruppe erwartet.", - "Expected_a_class_set_operand_1520": "Es wurde ein Klassensatzoperand erwartet.", "Expected_at_least_0_arguments_but_got_1_2555": "Mindestens {0} Argumente wurden erwartet, empfangen wurden aber {1}.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Das entsprechende schließende JSX-Tag wurde für \"{0}\" erwartet.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Für das JSX-Fragment wurde das entsprechende schließende Tag erwartet.", "Expected_for_property_initializer_1442": "Für den Eigenschafteninitialisierer wurde \"=\" erwartet.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Der erwartete Typ des Felds \"{0}\" in der Datei \"package.json\" lautet \"{1}\", empfangen wurde \"{2}\".", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Die experimentelle Unterstützung für decorator-Elemente ist ein Feature, das in zukünftigen Versionen Änderungen unterliegt. Legen Sie die Option \"-experimentalDecorators\" in Ihrer \"tsconfig\" oder \"jsconfig\" fest, um diese Warnung zu entfernen.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Explizit angegebene Art der Modulauflösung: \"{0}\".", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Die Potenzierung kann für bigint-Werte nur durchgeführt werden, wenn die Option \"target\" auf \"es2016\" oder höher festgelegt ist.", "Export_0_from_module_1_90059": "Exportieren von \"{0}\" aus Modul \"{1}\"", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "Die exportierte Variable \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Exporte und Exportzuweisungen sind in Modulerweiterungen unzulässig.", "Expression_expected_1109": "Es wurde ein Ausdruck erwartet.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "Der Ausdruck muss in Klammern eingeschlossen werden, damit er als Decorator verwendet werden kann.", "Expression_or_comma_expected_1137": "Es wurde ein Ausdruck oder Komma erwartet.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Der Ausdruck erzeugt einen Tupeltyp, der für die Darstellung zu groß ist.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Der Ausdruck erzeugt einen union-Typ, der für die Darstellung zu komplex ist.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Der Ausdruck wird in \"_super\" aufgelöst. Damit erfasst der Compiler den Basisklassenverweis.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Der Ausdruck wird in die Variablendeklaration \"_newTarget\" aufgelöst, die der Compiler zum Erfassen der Metaeigenschaftenreferenz \"new.target\" verwendet.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Der Ausdruck wird in die Variablendeklaration \"_this\" aufgelöst, die der Compiler verwendet, um den this-Verweis zu erfassen.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Der Ausdruckstyp kann nicht mit \"--isolatedDeclarations\" abgeleitet werden.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Die Extends-Klausel darf keinen Ausdruck mit \"--isolatedDeclarations\" enthalten.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Die extends-Klausel für den abgeleiteten Typ \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", - "Extract_base_class_to_variable_90064": "Basisklasse in Variable extrahieren", - "Extract_binding_expressions_to_variable_90066": "Extrahieren von Bindungsausdrücken in eine Variable", "Extract_constant_95006": "Konstante extrahieren", - "Extract_default_export_to_variable_90065": "Standardexport in Variable extrahieren", "Extract_function_95005": "Funktion extrahieren", "Extract_to_0_in_1_95004": "Als {0} nach {1} extrahieren", "Extract_to_0_in_1_scope_95008": "Als {0} in {1}-Bereich extrahieren", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "In Schnittstelle extrahieren", "Extract_to_type_alias_95078": "In Typalias extrahieren", "Extract_to_typedef_95079": "In TypeDef extrahieren", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "In Variable extrahieren und durch \"{0} as typeof {0}\" ersetzen", "Extract_type_95077": "Typ extrahieren", "FILE_6035": "DATEI", "FILE_OR_DIRECTORY_6040": "DATEI ODER VERZEICHNIS", - "Failed_to_find_peerDependency_0_6283": "Fehler beim Suchen der peerDependency \"{0}\".", - "Failed_to_resolve_under_condition_0_6415": "Fehler beim Auflösen unter der Bedingung \"{0}\".", + "Failed_to_parse_file_0_Colon_1_5014": "Fehler beim Analysieren der Datei \"{0}\": {1}.", "Fallthrough_case_in_switch_7029": "FallThrough-Fall in switch-Anweisung.", "File_0_does_not_exist_6096": "Die Datei \"{0}\" ist nicht vorhanden.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Die Datei \"{0}\" ist gemäß früheren zwischengespeicherten Lookups nicht vorhanden.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Die Datei \"{0}\" ist vorhanden – sie wird als Ergebnis der Namensauflösung verwendet.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Die Datei \"{0}\" ist gemäß früheren zwischengespeicherten Lookups vorhanden.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Die Datei \"{0}\" ist vorhanden – sie wird als Ergebnis der Namensauflösung verwendet.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Die Datei \"{0}\" weist eine nicht unterstützte Erweiterung auf. Es werden nur die folgenden Erweiterungen unterstützt: {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Die Datei \"{0}\" hat eine nicht unterstützte Erweiterung und wird übersprungen.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Die Datei \"{0}\" ist eine JavaScript-Datei. Wollten Sie die Option \"allowJs\" aktivieren?", "File_0_is_not_a_module_2306": "Die Datei \"{0}\" ist kein Modul.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Die Datei \"{0}\" befindet sich nicht in der Dateiliste von Projekt \"{1}\". Projekte müssen alle Dateien auflisten oder ein include-Muster verwenden.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Datei \"{0}\" befindet sich nicht unter \"rootDir\" \"{1}\". \"rootDir\" muss alle Quelldateien enthalten.", "File_0_not_found_6053": "Die Datei \"{0}\" wurde nicht gefunden.", "File_Management_6245": "Dateiverwaltung", - "File_appears_to_be_binary_1490": "Die Datei scheint binär zu sein.", "File_change_detected_Starting_incremental_compilation_6032": "Es wurde eine Dateiänderung erkannt. Die inkrementelle Kompilierung wird gestartet...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Die Datei ist ein CommonJS-Modul, da '{0}' nicht das Feld „Typ“ aufweist", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Die Datei ist ein CommonJS-Modul, da '{0}' das Feld „Typ“ aufweist, dessen Wert nicht „Modul“ ist", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Die Datei ist die Ausgabe der Projektverweisquelle \"{0}\".", "File_is_source_from_referenced_project_specified_here_1416": "Die Datei ist die Quelle des hier angegebenen referenzierten Projekts.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Der Dateiname \"{0}\" unterscheidet sich vom bereits enthaltenen Dateinamen \"{1}\" nur hinsichtlich der Groß-/Kleinschreibung.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Der Dateiname \"{0}\" hat eine \"{1}\"-Erweiterung. Stattdessen wird nach \"{2}\" gesucht.", "File_name_0_has_a_1_extension_stripping_it_6132": "Der Dateiname \"{0}\" weist eine Erweiterung \"{1}\" auf. Diese wird entfernt.", "File_redirects_to_file_0_1429": "Die Datei leitet an die Datei \"{0}\" um.", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Die Dateispezifikation darf kein übergeordnetes Verzeichnis (\"..\") enthalten, das nach einem rekursiven Verzeichnisplatzhalter (\"**\") angegeben wird: \"{0}\".", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Korrigieren Sie alle Ausdrücke, in denen \"await\" möglicherweise fehlt.", "Fix_all_implicit_this_errors_95107": "Alle impliziten this-Fehler beheben", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Alle falschen Rückgabetypen einer asynchronen Funktionen korrigieren", - "Fix_all_with_type_only_imports_95182": "Alle mit rein typbasierten Importen korrigieren", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "\"For await\"-Schleifen können nicht innerhalb eines statischen Klassenblocks verwendet werden.", "Found_0_errors_6217": "{0} Fehler gefunden.", "Found_0_errors_Watching_for_file_changes_6194": "{0} Fehler gefunden. Es wird auf Dateiänderungen überwacht.", "Found_0_errors_in_1_files_6261": "In {1} Dateien wurden {0} Fehler gefunden.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Es wurden {0} Fehler in derselben Datei gefunden, beginnend bei: {1}", "Found_1_error_6216": "1 Fehler gefunden.", "Found_1_error_Watching_for_file_changes_6193": "1 Fehler gefunden. Es wird auf Dateiänderungen überwacht.", - "Found_1_error_in_0_6259": "1 Fehler in {0} gefunden", + "Found_1_error_in_1_6259": "1 Fehler in {1} gefunden", "Found_package_json_at_0_6099": "\"package.json\" wurde unter \"{0}\" gefunden.", - "Found_peerDependency_0_with_1_version_6282": "Es wurde eine peerDependency \"{0}\" mit Version \"{1}\" gefunden.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES5\" ist.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES5\" ist. Klassendefinitionen befinden sich automatisch im Strict-Modus.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES5\" ist. Module befinden sich automatisch im Strict-Modus.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist. Klassendefinitionen befinden sich automatisch im Strict-Modus.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Funktionsdeklarationen sind in Blöcken im Strict-Modus unzulässig, wenn das Ziel \"ES3\" oder \"ES5\" ist. Module befinden sich automatisch im Strict-Modus.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Ein Funktionsausdruck ohne Rückgabetypanmerkung weist implizit einen {0}-Rückgabetyp auf.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Die Funktionsimplementierung fehlt oder folgt nicht unmittelbar auf die Deklaration.", "Function_implementation_name_must_be_0_2389": "Der Name der Funktionsimplementierung muss \"{0}\" lauten.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Die Funktion weist implizit den Typ \"any\" auf, weil keine Rückgabetypanmerkung vorhanden ist und darauf direkt oder indirekt in einem ihrer Rückgabeausdrücke verwiesen wird.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Der Funktion fehlt die abschließende return-Anweisung, und der Rückgabetyp enthält nicht \"undefined\".", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "Die Funktion muss eine explizite Rückgabetypanmerkung mit \"--isolatedDeclarations\" aufweisen.", "Function_not_implemented_95159": "Die Funktion ist nicht implementiert.", "Function_overload_must_be_static_2387": "Die Funktionsüberladung muss statisch sein.", "Function_overload_must_not_be_static_2388": "Die Funktionsüberladung darf nicht statisch sein.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Generiert eine Ereignisablaufverfolgung und eine Liste von Typen.", "Generates_corresponding_d_ts_file_6002": "Generiert die entsprechende .d.ts-Datei.", "Generates_corresponding_map_file_6043": "Generiert die entsprechende MAP-Datei.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Der Generator hat implizit den Yield-Typ '{0}'. Erwägen Sie die Angabe eines Rückgabetyps.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Der Generator weist implizit den yield-Typ \"{0}\" auf, weil er keine Werte ausgibt. Erwägen Sie die Angabe einer Rückgabetypanmerkung.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Generatoren sind in einem Umgebungskontext unzulässig.", "Generic_type_0_requires_1_type_argument_s_2314": "Der generische Typ \"{0}\" erfordert {1} Typargument(e).", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Der generische Typ \"{0}\" benötigt zwischen {1} und {2} Typargumente.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Es wurde ein Bezeichner erwartet.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Bezeichner erwartet. \"__esModule\" ist als exportierter Marker für die Umwandlung von ECMAScript-Modulen reserviert.", "Identifier_or_string_literal_expected_1478": "Bezeichner oder Zeichenfolgenliteral erwartet.", - "Identifier_string_literal_or_number_literal_expected_1496": "Bezeichner, Zeichenfolgenliteral oder Zahlenliteral erwartet.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, erwägen Sie, einen Pull Request zum Ändern von https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1} zu senden.", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, versuchen Sie, eine neue Deklarationsdatei (.d.ts) hinzuzufügen, die Declare-Modul \"{1}\" enthält.", "Ignore_this_error_message_90019": "Diese Fehlermeldung ignorieren", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Schnittstelle \"{0}\" implementieren", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Die implements-Klausel der exportierten Klasse \"{0}\" besitzt oder verwendet den privaten Namen \"{1}\".", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Die implizite Konvertierung von \"symbol\" in \"string\" führt zur Laufzeit zu einem Fehler. Erwägen Sie, diesen Ausdruck in \"String(...)\" einzuschließen.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "Import \"{0}\" steht in Konflikt mit dem in dieser Datei verwendeten globalen Wert. Er muss mit einem reinen Typimport deklariert werden, wenn \"isolatedModules\" aktiviert ist.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "Import \"{0}\" steht in Konflikt mit dem lokalen Wert. Er muss mit einem reinen Typimport deklariert werden, wenn \"isolatedModules\" aktiviert ist.", "Import_0_from_1_90013": "\"{0}\" aus \"{1}\" importieren", "Import_assertion_values_must_be_string_literal_expressions_2837": "Importassertionswerte müssen Zeichenfolgenliteralausdrücke sein.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Importassertionen sind für Anweisungen, die in \"require\"-Aufrufe von \"CommonJS\" kompilieren, nicht zulässig.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Importassertionen werden nur unterstützt, wenn die Option „--module“ auf „esnext“, „node18“, „nodenext“ oder „preserve“ festgelegt ist.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Importassertionen sind für Anweisungen, die in „require“-Aufrufe von CommonJs transpilieren, nicht zulässig.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Importassertionen werden nur unterstützt, wenn die Option „--module“ auf „esnext“ oder „nodenext“ festgelegt ist.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Importassertionen können nicht mit rein typbasierten Importen oder Exporten verwendet werden.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Importassertionen wurden durch Importattribute ersetzt. Verwenden Sie \"with\" anstelle von \"assert\".", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Die Importzuweisung kann nicht verwendet werden, wenn das Ziel ECMAScript-Module sind. Verwenden Sie stattdessen ggf. \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" oder ein anderes Modulformat.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Importattributwerte müssen Zeichenfolgenliteralausdrücke sein.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Importattribute sind für Anweisungen, die in \"require\"-Aufrufe von \"CommonJS\" kompiliert werden, nicht zulässig.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Importattribute werden nur unterstützt, wenn die Option „--module“ auf „esnext“, „node18“, „nodenext“ oder „preserve“ festgelegt ist.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Importattribute können nicht mit rein typbasierten Importen oder Exporten verwendet werden.", "Import_declaration_0_is_using_private_name_1_4000": "Die Importdeklaration \"{0}\" verwendet den privaten Namen \"{1}\".", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Die Importdeklaration verursacht einen Konflikt mit der lokalen Deklaration von \"{0}\".", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Importdeklarationen in einem Namespace dürfen nicht auf ein Modul verweisen.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\"", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\" zum Importieren von \"importHelpers\", wie in \"compilerOptions\" angegeben", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importiert über \"{0}\" aus der Datei \"{1}\" mit packageId \"{2}\" zum Importieren der Factoryfunktionen \"jsx\" und \"jsxs\"", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "\"Das Importieren einer JSON-Datei in ein ECMAScript-Modul erfordert ein Importattribut 'type: \"json\"', wenn 'module' auf '{0}' gesetzt ist.", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importe sind in Modulerweiterungen unzulässig. Verschieben Sie diese ggf. in das einschließende externe Modul.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "In Umgebungsenumerationsdeklarationen muss der Memberinitialisierer ein konstanter Ausdruck sein.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "In einer Enumeration mit mehreren Deklarationen kann nur eine Deklaration einen Initialisierer für das erste Enumerationselement ausgeben.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Schließen Sie Quellzuordnungsdateien in das ausgegebene JavaScript ein.", "Includes_imports_of_types_referenced_by_0_90054": "Schließt Importe von Typen ein, auf die von „{0}“ verwiesen wird", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Bei Einschließung von --watch beginnt -w, das aktuelle Projekt auf Dateiänderungen zu überwachen. Einmal eingestellt, können Sie den Überwachungsmodus konfigurieren, und zwar mit:", - "Incomplete_quantifier_Digit_expected_1505": "Unvollständiger Quantifizierer. Eine Ziffer wurde erwartet.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "Die Indexsignatur für den Typ \"{0}\" fehlt im Typ \"{1}\".", "Index_signature_in_type_0_only_permits_reading_2542": "Die Indexsignatur in Typ \"{0}\" lässt nur Lesevorgänge zu.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Einzelne Deklarationen in der gemergten Deklaration \"{0}\" müssen alle exportiert oder alle lokal sein.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Parametertypen aus der Nutzung ableiten", "Infer_this_type_of_0_from_usage_95080": "Typ \"this\" von \"{0}\" aus Syntax ableiten", "Infer_type_of_0_from_usage_95011": "Typ von \"{0}\" aus der Nutzung ableiten", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Der Rückschluss von Klassenausdrücken wird mit \"--isolatedDeclarations\" nicht unterstützt.", "Initialize_property_0_in_the_constructor_90020": "Eigenschaft \"{0}\" im Konstruktor initialisieren", "Initialize_static_property_0_90021": "Statische Eigenschaft \"{0}\" initialisieren", "Initializer_for_property_0_2811": "Initialisierer für Eigenschaft \"{0}\"", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Der Initialisierer der Instanzmembervariablen \"{0}\" darf nicht auf den im Konstruktor deklarierten Bezeichner \"{1}\" verweisen.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Der Initialisierer stellt keinen Wert für dieses Bindungselement bereit, und das Bindungselement besitzt keinen Standardwert.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Initialisierer sind in Umgebungskontexten unzulässig.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Initialisiert ein TypeScript-Projekt und erstellt eine Datei \"tsconfig.json\".", - "Inline_variable_95184": "Inlinevariable", "Insert_command_line_options_and_files_from_a_file_6030": "Fügt Befehlszeilenoptionen und Dateien aus einer Datei ein.", "Install_0_95014": "\"{0}\" installieren", "Install_all_missing_types_packages_95033": "Alle fehlenden Typenpakete installieren", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Ungültiger Modulname in der Erweiterung. Das Modul \"{0}\" wurde nicht gefunden.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Ungültige optionale Kette aus neuem Ausdruck. Wollten Sie '{0}()' anrufen?", "Invalid_reference_directive_syntax_1084": "Ungültige Syntax der reference-Direktive.", - "Invalid_syntax_in_decorator_1498": "Ungültige Syntax im Decorator.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Ungültige Verwendung von \"{0}\". Es kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Ungültige Verwendung von \"{0}\". Module befinden sich automatisch im Strict-Modus.", "Invalid_use_of_0_in_strict_mode_1100": "Ungültige Verwendung von \"{0}\" im Strict-Modus.", - "Invalid_value_for_ignoreDeprecations_5103": "Ungültiger Wert für \"--ignoreDeprecations\".", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Ungültiger Wert für \"jsxFactory\". \"{0}\" ist kein gültiger Bezeichner oder qualifizierter Name.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Ungültiger Wert für \"jsxFragmentFactory\". \"{0}\" ist kein gültiger Bezeichner oder qualifizierter Name.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Ungültiger Wert für \"-reactNamespace\". \"{0}\" ist kein gültiger Bezeichner.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Der zugehörige Elementtyp \"{0}\" ist kein gültiges JSX-Element.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Der zugehörige Instanztyp \"{0}\" ist kein gültiges JSX-Element.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Der Rückgabetyp \"{0}\" ist kein gültiges JSX-Element.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Der zugehörige Typ \"{0}\" ist kein gültiger JSX-Elementtyp.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc \"@{0} {1}\" entspricht nicht der Klausel \"extends {2}\".", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc \"@{0}\" ist keiner Klassendeklaration zugeordnet.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "Das JSDoc-Tag \"...\" wird möglicherweise nur im letzten Parameter einer Signatur angezeigt.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Das JSDoc-Tag \"@param\" weist den Namen \"{0}\" auf, es gibt jedoch keinen Parameter dieses Namens.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Das JSDoc-Tag \"@param\" weist den Namen \"{0}\" auf, es ist jedoch kein Parameter dieses Namens vorhanden. Es läge eine Übereinstimmung mit \"arguments\" vor, wenn ein Arraytyp vorläge.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef kann in TypeScript-Typ konvertiert werden.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Das JSDoc-Tag \"@typedef\" muss entweder eine Typanmerkung aufweisen, oder die Tags \"@property\" oder \"@member\" müssen darauf folgen.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedefs können in TypeScript-Typen konvertiert werden.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc-Typen können nur innerhalb von Dokumentationskommentaren verwendet werden.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc-Typen können in TypeScript-Typen verschoben werden.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX-Attributen darf nur ein nicht leeres expression-Objekt zugewiesen werden.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Liste der Ordner, aus denen Typendefinitionen einbezogen werden sollen.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Liste der Stammordner, deren kombinierter Inhalt die Struktur des Projekts zur Laufzeit darstellt.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "\"{0}\" wird aus dem Stammverzeichnis \"{1}\" geladen. Speicherort des Kandidaten \"{2}\".", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Modul \"{0}\" wird aus dem Ordner \"node_modules\" geladen, Zieldateitypen: {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Modul wird als Datei/Ordner geladen, der Speicherort des Kandidatenmoduls ist \"{0}\", Zieldateitypen: {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Modul \"{0}\" wird aus dem Ordner \"node_modules\" geladen, die Zieldatei ist vom Typ \"{1}\".", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Modul wird als Datei/Ordner geladen, der Speicherort des Kandidatenmoduls ist \"{0}\", die Zieldatei ist vom Typ \"{1}\".", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Für das Gebietsschema ist das Format oder - erforderlich, z. B. \"{0}\" oder \"{1}\".", "Log_paths_used_during_the_moduleResolution_process_6706": "Protokollpfade, die während des „moduleResolution“-Prozesses verwendet werden.", "Longest_matching_prefix_for_0_is_1_6108": "Das längste übereinstimmende Präfix für \"{0}\" ist \"{1}\".", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Stellen Sie ein, dass keyof nur Zeichenfolgen, anstelle von Zeichenfolgen, Zahlen oder Symbolen zurückgibt. Legacy-Option.", "Make_super_call_the_first_statement_in_the_constructor_90002": "super()-Aufruf als erste Anweisung im Konstruktor festlegen", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Der zugeordnete Objekttyp weist implizit einen any-Vorlagentyp auf.", - "Mark_array_literal_as_const_90070": "Arrayliteral als \"const\" markieren", "Matched_0_condition_1_6403": "Übereinstimmung mit \"{0}\" Bedingung \"{1}\".", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Standardmäßig zugeordnetes Includemuster „**/*“", "Matched_by_include_pattern_0_in_1_1407": "Abgeglichen mit dem include-Muster \"{0}\" in \"{1}\"", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Die Methode \"{0}\" darf keine Implementierung besitzen, weil sie als abstrakt markiert ist.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Die Methode \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Die Methode \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Die Methode muss eine explizite Rückgabetypanmerkung mit \"--isolatedDeclarations\" aufweisen.", "Method_not_implemented_95158": "Die Methode ist nicht implementiert.", "Modifiers_cannot_appear_here_1184": "Modifizierer dürfen hier nicht enthalten sein.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Das Modul \"{0}\" kann nur mit dem Flag \"{1}\" als Standard importiert werden.", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Das Modul \"{0}\" umfasst keinen exportierten Member \"{1}\". Wollten Sie stattdessen \"import {1} from {0}\" verwenden?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Das Modul \"{0}\" wird durch eine lokale Deklaration mit dem gleichen Namen ausgeblendet.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Das Modul \"{0}\" verwendet \"export =\" und darf nicht mit \"export *\" verwendet werden.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Das Modul \"{0}\" wurde als in \"{1}\" deklariertes Umgebungsmodul aufgelöst, weil diese Datei nicht geändert wurde.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Das Modul \"{0}\" wurde als lokal deklariertes Umgebungsmodul in der Datei \"{1}\" aufgelöst.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Das Modul \"{0}\" wurde in \"{1}\" aufgelöst, aber \"--allowArbitraryExtensions\" ist nicht festgelegt.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Das Modul \"{0}\" wurde zu \"{1}\" aufgelöst, aber \"--jsx\" wurde nicht festgelegt.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Das Modul \"{0}\" wurde in \"{1}\" aufgelöst, aber \"--resolveJsonModule\" wird nicht verwendet.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Namen der Moduldeklaration dürfen nur Zeichenfolgen enthalten, die von ' oder \" eingeschlossen werden.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Fehler bei der Modulauflösung mithilfe von \"rootDirs\".", "Modules_6244": "Module", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Modifizierer für bezeichnete Tupelelemente in Bezeichnungen verschieben", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Verschieben Sie den Ausdruck im Standardexport in eine Variable, und fügen Sie ihm eine Typanmerkung hinzu.", "Move_to_a_new_file_95049": "In neue Datei verschieben", - "Move_to_file_95178": "In Datei verschieben", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Mehrere aufeinander folgende numerische Trennzeichen sind nicht zulässig.", "Multiple_constructor_implementations_are_not_allowed_2392": "Mehrere Konstruktorimplementierungen sind unzulässig.", "NEWLINE_6061": "NEUE ZEILE", "Name_is_not_valid_95136": "Der Name ist ungültig.", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Benannte Erfassungsgruppen sind nur verfügbar, wenn das Ziel \"ES2018\" oder höher ist.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Benannte Erfassungsgruppen mit demselben Namen müssen sich gegenseitig ausschließen.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Benannte Importe aus einer JSON-Datei in ein ECMAScript-Modul sind nicht erlaubt, wenn 'module' auf '{0}'.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Die benannte Eigenschaft \"{0}\" der Typen \"{1}\" und \"{2}\" ist nicht identisch.", "Namespace_0_has_no_exported_member_1_2694": "Der Namespace \"{0}\" besitzt keinen exportierten Member \"{1}\".", "Namespace_must_be_given_a_name_1437": "Namespace muss einen Namen erhalten.", "Namespace_name_cannot_be_0_2819": "Namespacename darf nicht \"{0}\" sein.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Namespaces sind in globalen Skriptdateien nicht zulässig, wenn \"{0}\" aktiviert ist. Wenn diese Datei kein globales Skript sein soll, legen Sie \"moduleDetection\" auf \"force\" fest, oder fügen Sie eine leere \"export {}\"-Anweisung hinzu.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "Weder Decorators noch Modifizierer können auf \"this\"-Parameter angewendet werden.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Kein Basiskonstruktor weist die angegebene Anzahl von Typargumenten auf.", "No_constituent_of_type_0_is_callable_2755": "Es ist kein Bestandteil vom Typ \"{0}\" aufrufbar.", "No_constituent_of_type_0_is_constructable_2759": "Es kann kein Bestandteil vom Typ \"{0}\" erstellt werden.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Keine Überladung stimmt mit diesem Aufruf überein.", "No_type_could_be_extracted_from_this_type_node_95134": "Aus diesem Typknoten konnte kein Typ extrahiert werden.", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Im Bereich für die Kompakteigenschaft \"{0}\" ist kein Wert vorhanden. Deklarieren Sie entweder einen Wert, oder geben Sie einen Initialisierer an.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Die nicht abstrakte Klasse \"{0}\" implementiert nicht den geerbten abstrakten Member {1} aus der Klasse \"{2}\".", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "In der nicht abstrakten Klasse \"{0}\" fehlen Implementierungen für die folgenden Member von \"{1}\": {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "In der nicht abstrakten Klasse \"{0}\" fehlen Implementierungen für die folgenden Member von \"{1}\": {2} und {3} weitere.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Die nicht abstrakte Klasse \"{0}\" implementiert nicht den geerbten abstrakten Member \"{1}\" aus der Klasse \"{2}\".", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Der nicht abstrakte Ausdruck implementiert nicht den geerbten abstrakten Member \"{0}\" aus der Klasse \"{1}\".", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Im nicht abstrakten Klassenausdruck fehlen Implementierungen für die folgenden Member von \"{0}\": {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Im nicht abstrakten Klassenausdruck fehlen Implementierungen für die folgenden Member von \"{0}\": {1} und {2} weitere.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Assertionen ungleich NULL können nur in TypeScript-Dateien verwendet werden.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Nicht relative Pfade sind nur zulässig, wenn \"baseUrl\" festgelegt wurde. Fehlt am Anfang die Zeichenfolge \"./\"?", "Non_simple_parameter_declared_here_1348": "Hier wurde ein nicht einfacher Parameter deklariert.", "Not_all_code_paths_return_a_value_7030": "Nicht alle Codepfade geben einen Wert zurück.", "Not_all_constituents_of_type_0_are_callable_2756": "Nicht alle Bestandteile vom Typ \"{0}\" können aufgerufen werden.", "Not_all_constituents_of_type_0_are_constructable_2760": "Nicht alle Bestandteile vom Typ \"{0}\" können erstellt werden.", - "Numbers_out_of_order_in_quantifier_1506": "Zahlen im Quantifizierer nicht in der richtigen Reihenfolge.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Numerische Literale mit absoluten Werten von 2^53 oder höher sind zu groß, um als ganze Zahlen genau dargestellt werden zu können.", "Numeric_separators_are_not_allowed_here_6188": "Numerische Trennzeichen sind hier nicht zulässig.", "Object_is_of_type_unknown_2571": "Das Objekt ist vom Typ \"Unbekannt\".", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Das Objektliteral kann nur bekannte Eigenschaften angeben, und \"{0}\" ist im Typ \"{1}\" nicht vorhanden.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Das Objektliteral gibt möglicherweise nur bekannte Eigenschaften an, \"{0}\" ist jedoch im Typ \"{1}\" nicht vorhanden. Wollten Sie \"{2}\" schreiben?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Die Eigenschaft \"{0}\" des Objektliterals weist implizit den Typ \"{1}\" auf.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Objekte, die Kurzformeigenschaften enthalten, können nicht mit \"--isolatedDeclarations\" abgeleitet werden.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Objekte, die Verteilungszuweisungen enthalten, können nicht mit \"--isolatedDeclarations\" abgeleitet werden.", "Octal_digit_expected_1178": "Es wurde eine Oktalzahl erwartet.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Oktale Escapesequenzen und Rückvektoren sind in einer Zeichenklasse nicht zulässig. Wenn dies als Escapesequenz vorgesehen war, verwenden Sie stattdessen die Syntax \"{0}\".", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Oktale Escapesequenzen sind nicht zulässig. Verwenden Sie die Syntax \"{0}\".", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Oktale Literale sind nicht zulässig. Verwenden Sie die Syntax \"{0}\".", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Ein Wert von \"{0}.{1}\" ist die Zeichenfolge \"{2}\", und der andere Wert wird als unbekannter numerischer Wert angenommen.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Oktalliteraltypen müssen die Syntax \"ES2015\" verwenden. Verwenden Sie die Syntax \"{0}\".", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Oktalliterale sind in einem Mitgliederenumerationsinitialisierer nicht zulässig. Verwenden Sie die Syntax \"{0}\".", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Oktalliterale sind im Strict-Modus unzulässig.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Oktalliterale sind bei der Zielgruppenadressierung von ECMAScript 5 und höher nicht verfügbar. Verwenden Sie die Syntax \"{0}\".", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "In einer for...in-Anweisung ist nur eine einzige Variablendeklaration zulässig.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "In einer for...of-Anweisung ist nur eine einzige Variablendeklaration zulässig.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Nur eine void-Funktion kann mit dem Schlüsselwort \"new\" aufgerufen werden.", "Only_ambient_modules_can_use_quoted_names_1035": "Nur Umgebungsmodule dürfen Namen in Anführungszeichen verwenden.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Nur die Module \"amd\" und \"system\" werden in Verbindung mit --{0} unterstützt.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Nur const-Arrays können mit \"--isolatedDeclarations\" abgeleitet werden.", "Only_emit_d_ts_declaration_files_6014": "Geben Sie nur .d.ts-Deklarationsdateien aus.", + "Only_named_exports_may_use_export_type_1383": "\"export type\" kann nur von benannten Exporten verwendet werden.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Nur numerische Enumerationen können berechnete Member umfassen, aber dieser Ausdruck weist den Typ \"{0}\" auf. Wenn Sie keine Vollständigkeitsprüfung benötigen, erwägen Sie stattdessen die Verwendung eines Objektliterals.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Nur d.ts-Dateien und keine JavaScript-Dateien ausgeben.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Nur auf öffentliche und geschützte Methoden der Basisklasse kann über das Schlüsselwort \"super\" zugegriffen werden.", "Operator_0_cannot_be_applied_to_type_1_2736": "Der Operator \"{0}\" kann nicht auf den Typ \"{1}\" angewendet werden.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Der Operator \"{0}\" darf nicht auf die Typen \"{1}\" und \"{2}\" angewendet werden.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Operatoren dürfen innerhalb einer Zeichenklasse nicht gemischt werden. Verpacken Sie ihn stattdessen in eine geschachtelte Klasse.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Deaktivieren Sie bei der Bearbeitung ein Projekt von der Überprüfung mehrerer Projektverweise.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "Die Option \"{0}={1}\" wurde entfernt. Entfernen Sie sie aus Ihrer Konfiguration.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "Die Option \"{0}={1}\" ist veraltet und funktioniert in TypeScript {2} nicht mehr. Geben Sie die compilerOption \"ignoreDeprecations\": \"{3}\" an, um diesen Fehler stumm zu schalten.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Die Option \"{0}\" kann nur in der Datei \"tsconfig.json\" angegeben oder in der Befehlszeile auf FALSE oder NULL festgelegt werden.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Die Option \"{0}\" kann nur in der Datei \"tsconfig.json\" angegeben oder in der Befehlszeile auf NULL festgelegt werden.", - "Option_0_can_only_be_specified_on_command_line_6266": "Die Option \"{0}\" kann nur in der Befehlszeile angegeben werden.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Die Option \"{0}\" kann nur verwendet werden, wenn die Option \"-inlineSourceMap\" oder \"-sourceMap\" angegeben wird.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "Die Option \"{0}\" kann nur verwendet werden, wenn \"moduleResolution\" auf \"node16\", \"nodenext\" oder \"bundler\" festgelegt ist.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "Die Option \"{0}\" kann nur verwendet werden, wenn \"module\" auf \"preserve\" oder auf \"es2015\" oder höher festgelegt ist.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Die Option \"{0}\" kann nicht angegeben werden, wenn die Option \"jsx\" den Wert \"{1}\" aufweist.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Die Option \"{0}\" kann nicht angegeben werden, wenn die Option \"target\" den Wert \"ES3\" aufweist.", "Option_0_cannot_be_specified_with_option_1_5053": "Die Option \"{0}\" darf nicht zusammen mit der Option \"{1}\" angegeben werden.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Die Option \"{0}\" darf nicht ohne die Option \"{1}\" angegeben werden.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Die Option \"{0}\" kann nicht ohne die Option \"{1}\" oder \"{2}\" angegeben werden.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "Die Option \"{0}\" wurde entfernt. Entfernen Sie sie aus Ihrer Konfiguration.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "Die Option \"{0}\" ist veraltet und funktioniert in TypeScript {1} nicht mehr. Geben Sie die compilerOption \"ignoreDeprecations\": \"{2}\" an, um diesen Fehler stumm zu schalten.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "Die Option \"{0}\" ist redundant und darf nicht zusammen mit der Option \"{1}\" angegeben werden.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "Die Option \"allowImportingTsExtensions\" kann nur verwendet werden, wenn entweder \"noEmit\" oder \"emitDeclarationOnly\" festgelegt ist.", "Option_build_must_be_the_first_command_line_argument_6369": "Die Option \"--build\" muss das erste Befehlszeilenargument sein.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Die Option \"--incremental\" kann nur mit \"tsconfig\" und bei Ausgabe in eine einzelne Datei oder bei Festlegung der Option \"--tsBuildInfoFile\" angegeben werden.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Die Option \"isolatedModules\" kann nur verwendet werden, wenn entweder die Option \"--module\" angegeben ist oder die Option \"target\" den Wert \"ES2015\" oder höher aufweist.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "Die Option \"moduleResolution\" muss auf \"{0}\" festgelegt werden (oder nicht angegeben werden), wenn die Option \"module\" auf \"{1}\" festgelegt ist.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "Die Option \"module\" muss auf \"{0}\" festgelegt werden, wenn die Option \"moduleResolution\" auf \"{1}\" festgelegt ist.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "Die Option \"preserveConstEnums\" kann nicht deaktiviert werden, wenn \"{0}\" aktiviert ist.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Die Option \"preserveConstEnums\" kann nicht deaktiviert werden, wenn \"isolatedModules\" aktiviert ist.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Die Option „preserveValueImports“ kann nur verwendet werden, wenn „module“ auf „es2015“ oder höher festgelegt ist.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Die Option \"project\" darf nicht mit Quelldateien in einer Befehlszeile kombiniert werden.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Die Option \"--resolveJsonModule\" kann nicht angegeben werden, wenn \"moduleResolution\" auf \"classic\" festgelegt ist.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Die Option \"--resolveJsonModule\" kann nicht angegeben werden, wenn \"module\" auf \"none\", \"system\" oder \"umd\" festgelegt ist.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "Die Option \"verbatimModuleSyntax\" kann nicht verwendet werden, wenn \"module\" auf \"UMD\", \"AMD\" oder \"System\" festgelegt ist.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Die Option \"--resolveJsonModule\" kann nur angegeben werden, wenn die Modulcodegenerierung \"commonjs\", \"amd\", \"es2015\" oder \"esNext\" lautet.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Die Option \"--resolveJsonModule\" kann nicht ohne die Modulauflösungsstrategie \"node\" angegeben werden.", "Options_0_and_1_cannot_be_combined_6370": "Die Optionen \"{0}\" und \"{1}\" können nicht kombiniert werden.", "Options_Colon_6027": "Optionen:", "Output_Formatting_6256": "Ausgabeformatierung", "Output_compiler_performance_information_after_building_6615": "Ausgabe Compiler-Leistungsinformationen nach dem Erstellen.", "Output_directory_for_generated_declaration_files_6166": "Ausgabeverzeichnis für erstellte Deklarationsdateien.", + "Output_file_0_from_project_1_does_not_exist_6309": "Die Ausgabedatei \"{0}\" aus dem Projekt \"{1}\" ist nicht vorhanden.", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Die Ausgabedatei \"{0}\" wurde nicht aus der Quelldatei \"{1}\" erstellt.", "Output_from_referenced_project_0_included_because_1_specified_1411": "Ausgabe aus referenziertem Projekt \"{0}\" eingeschlossen, da \"{1}\" angegeben wurde", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Ausgabe aus referenziertem Projekt \"{0}\" eingeschlossen, da \"--module\" als \"none\" angegeben wurde", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Eine Parameterdeklaration wurde erwartet.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Der Parameter weist einen Namen, aber keinen Typ auf. Meinten Sie \"{0}: {1}\"?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Parametermodifizierer können nur in TypeScript-Dateien verwendet werden.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Der Parameter muss eine explizite Typanmerkung mit \"--isolatedDeclarations\" aufweisen.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Der Parametertyp des öffentlichen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Der Parametertyp des öffentlichen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Der Parametertyp des öffentlichen statischen Setters \"{0}\" aus der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Drucken Sie die Namen der ausgegebenen Dateien nach einer Kompilierung.", "Print_this_message_6017": "Diese Nachricht ausgeben.", "Private_accessor_was_defined_without_a_getter_2806": "Die private Zugriffsmethode wurde ohne Getter definiert.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Das private Feld \"{0}\" muss in einer einschließenden Klasse deklariert werden.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Private Bezeichner sind in Variablendeklarationen nicht zulässig.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Private Bezeichner sind außerhalb des Textes von Klassen nicht zulässig.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Private Bezeichner sind nur in Klassentexten zulässig und dürfen nur als Teil einer Klassenmitgliedsdeklaration, eines Eigenschaftszugriffs oder auf der linken Seite eines in-Ausdrucks verwendet werden.", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Private Bezeichner sind nur verfügbar, wenn als Ziel ECMAScript 2015 oder höher verwendet wird.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Private Bezeichner können nicht als Parameter verwendet werden.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Für einen Typparameter kann nicht auf den privaten oder geschützten Member \"{0}\" zugegriffen werden.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Projekt \"{0}\" kann nicht erstellt werden, weil die Abhängigkeit \"{1}\" Fehler enthält.", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Das Projekt \"{0}\" kann nicht erstellt werden, weil die zugehörige Abhängigkeit \"{1}\" nicht erstellt wurde.", "Project_0_is_being_forcibly_rebuilt_6388": "Die Neuerstellung des Projekts \"{0}\" wird erzwungen.", - "Project_0_is_out_of_date_because_1_6420": "Das Projekt \"{0}\" ist veraltet, da {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Das Projekt \"{0}\" ist veraltet, da die buildinfo-Datei \"{1}\" darauf hinweist, dass die Datei \"{2}\" die Stammdatei der Kompilierung war, es jetzt jedoch nicht mehr ist.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Das Projekt \"{0}\" ist veraltet, da die Buildinfodatei \"{1}\" darauf hinweist, dass das Programm Fehler melden muss.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Das Projekt \"{0}\" ist veraltet, da die Buildinfodatei \"{1}\" angibt, dass einige der Änderungen nicht ausgegeben wurden.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Das Projekt \"{0}\" ist veraltet, da die Buildinfodatei \"{1}\" auf eine Änderung in compilerOptions hinweist.", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt \"{0}\" ist veraltet, weil die Abhängigkeit \"{1}\" veraltet ist.", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Das Projekt \"{0}\" ist veraltet, weil die Ausgabe \"{1}\" älter ist als die Eingabe \"{2}\"", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt \"{0}\" ist veraltet, weil die Ausgabedatei \"{1}\" nicht vorhanden ist.", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Das Projekt \"{0}\" ist veraltet, weil die Ausgabe für das Projekt mit Version {1} generiert wurde, die sich von der aktuellen Version {2} unterscheidet.", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Das Projekt \"{0}\" ist veraltet, weil sich die zugehörige Abhängigkeit \"{1}\" geändert hat.", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Das Projekt \"{0}\" ist veraltet, weil beim Lesen der Datei \"{1}\" ein Fehler aufgetreten ist.", "Project_0_is_up_to_date_6361": "Projekt \"{0}\" ist auf dem neuesten Stand.", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt \"{0}\" ist auf dem neuesten Stand, weil die neueste Eingabe \"{1}\" älter ist als die Ausgabe \"{2}\".", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "Die Eigenschaft \"{0}\" wird vor ihrer Initialisierung verwendet.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" möglicherweise nicht vorhanden. Meinten Sie \"{2}\"?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Die Eigenschaft \"{0}\" des JSX-Verteilungsattributs kann nicht der Zieleigenschaft zugewiesen werden.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "Die Eigenschaft \"{0}\" des exportierten anonymen Klassentyps ist unter Umständen nicht privat oder geschützt.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Die Eigenschaft \"{0}\" des exportierten Klassenausdrucks ist unter Umständen nicht privat oder geschützt.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Die Eigenschaft \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Die Eigenschaft \"{0}\" der exportierten Schnittstelle besitzt oder verwendet den privaten Namen \"{1}\".", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Die Eigenschaft \"{0}\" von Typ \"{1}\" kann nicht \"{2}\" Indextyp \"{3}\" zugewiesen werden.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Die Eigenschaft \"{0}\" überschreibt die Basiseigenschaft in \"{1}\". Wenn dies beabsichtigt ist, fügen Sie einen Initialisierer hinzu. Andernfalls fügen Sie einen declare-Modifizierer hinzu, oder entfernen Sie die redundante Deklaration.", "Property_assignment_expected_1136": "Die Zuweisung einer Eigenschaft wurde erwartet.", "Property_destructuring_pattern_expected_1180": "Ein Eigenschaftendestrukturierungsmuster wurde erwartet.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "Die Eigenschaft muss eine explizite Typanmerkung mit \"--isolatedDeclarations\" aufweisen.", "Property_or_signature_expected_1131": "Eine Eigenschaft oder Signatur wurde erwartet.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Der Eigenschaftswert kann nur ein Zeichenfolgenliteral, ein numerisches Literal, \"true\", \"false\", \"NULL\", ein Objektliteral oder ein Arrayliteral sein.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Bieten Sie vollständige Unterstützung für Iterablen in \"for-of\", Verteilung und Destrukturierung mit dem Ziel \"ES5\".", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Bieten Sie vollständige Unterstützung für Iterablen in \"for-of\", Verteilung und Destrukturierung mit dem Ziel \"ES5\" oder \"ES3\".", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem externen Modul \"{2}\", kann aber nicht benannt werden.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den Namen \"{1}\" aus dem privaten Modul \"{2}\".", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Die öffentliche Methode \"{0}\" der exportierten Klasse besitzt oder verwendet den privaten Namen \"{1}\".", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Löst einen Fehler aus, wenn ein Funktionsparameter nicht gelesen wird.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Fehler für Ausdrücke und Deklarationen mit einem impliziten any-Typ auslösen.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Fehler für \"this\"-Ausdrücke mit einem impliziten any-Typ auslösen.", - "Range_out_of_order_in_character_class_1517": "Der Bereich in der Zeichenklasse liegt außerhalb der Reihenfolge.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Wenn \"{0}\" aktiviert ist, erfordert das erneute Exportieren eines Typs die Verwendung von \"export type\".", - "React_components_cannot_include_JSX_namespace_names_2639": "React-Komponenten dürfen keine JSX-Namespacenamen enthalten.", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Das erneute Exportieren eines Typs erfordert bei Festlegung des Flags \"--isolatedModules\" die Verwendung von \"export type\".", "Redirect_output_structure_to_the_directory_6006": "Die Ausgabestruktur in das Verzeichnis umleiten.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Verringern Sie die Anzahl der Projekte, die von TypeScript automatisch geladen werden.", "Referenced_project_0_may_not_disable_emit_6310": "Beim referenzierten Projekt \"{0}\" darf nicht die Ausgabe deaktiviert werden.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Das referenzierte Projekt \"{0}\" muss für die Einstellung \"composite\" den Wert TRUE aufweisen.", "Referenced_via_0_from_file_1_1400": "Referenziert über \"{0}\" aus der Datei \"{1}\"", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Relative Importpfade erfordern explizite Dateierweiterungen in ECMAScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Erwägen Sie, dem Importpfad eine Erweiterung hinzuzufügen.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Relative Importpfade erfordern explizite Dateierweiterungen in ECMAScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Meinten Sie \"{0}\"?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Relative Importpfade erfordern explizite Dateierweiterungen in EcmaScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Erwägen Sie, dem Importpfad eine Erweiterung hinzuzufügen.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Relative Importpfade erfordern explizite Dateierweiterungen in EcmaScript-Importen, wenn „--moduleResolution“ „node16“ oder „nodenext“ ist. Hast du gemeint '{0}'?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Entfernen Sie eine Liste von Verzeichnissen aus dem Überwachungsvorgang.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Entfernen Sie eine Liste von Dateien aus der Verarbeitung des Überwachungsmodus.", "Remove_all_unnecessary_override_modifiers_95163": "Alle nicht benötigten override-Modifizierer entfernen", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Fehler in .js-Dateien melden.", "Report_errors_on_unused_locals_6134": "Fehler für nicht verwendete lokale Variablen melden.", "Report_errors_on_unused_parameters_6135": "Fehler für nicht verwendete Parameter melden.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Fordern Sie eine ausreichende Anmerkung zu Exporten an, damit andere Tools Deklarationsdateien trivial generieren können.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Nicht deklarierte Eigenschaften aus Indexsignaturen müssen Elementzugriffe verwenden.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Erforderliche Typparameter dürfen nicht auf optionale Typparameter folgen.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Die Auflösung für das Modul \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Die Auflösung für die Typreferenzanweisung \"{0}\" wurde im Cache des Standorts \"{1}\" gefunden.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Fehler beim Auflösen des nicht relativen Namens. Es wird versucht, moderne Funktionen zur Knotenauflösung zu deaktivieren, um festzustellen, ob die npm-Bibliothek eine Konfigurationsaktualisierung erfordert.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Fehler beim Auflösen des nicht relativen Namens. Mit \"--moduleResolution bundler\" wird versucht festzustellen, ob das Projekt möglicherweise aktualisiert werden muss.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "\"keyof\" darf nur in Eigenschaftennamen mit Zeichenfolgenwert aufgelöst werden (keine Ziffern oder Symbole).", - "Resolved_under_condition_0_6414": "Aufgelöst unter Bedingung \"{0}\".", "Resolving_in_0_mode_with_conditions_1_6402": "Wird im {0}-Modus mit Bedingungen \"{1}\" aufgelöst.", "Resolving_module_0_from_1_6086": "======== Das Modul \"{0}\" aus \"{1}\" wird aufgelöst. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Der Modulname \"{0}\" relativ zur Basis-URL \"{1}\"–\"{2}\" wird aufgelöst.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die Datei \"{1}\" enthält. Das Stammverzeichnis ist nicht festgelegt. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die nicht festgelegte Datei enthält. Das Stammverzeichnis ist \"{1}\". ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Die Typverweisdirektive \"{0}\" wird aufgelöst, die die nicht festgelegte Datei enthält. Das Stammverzeichnis ist nicht festgelegt. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Die Typverweisdirektive für das Programm, das benutzerdefinierte typeRoots angibt, wird aufgelöst. Lookup im Ordner \"node_modules\" wird übersprungen.", "Resolving_with_primary_search_path_0_6121": "Die Auflösung erfolgt mit dem primären Suchpfad \"{0}\".", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Der rest-parameter \"{0}\" weist implizit einen Typ \"any[]\" auf.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Der rest-Parameter \"{0}\" weist implizit einen Typ \"any[]\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Die Auflösung der Typverweisdirektive „{0}“ aus „{1}“ des alten Programms wird wiederverwendet, sie wurde erfolgreich in „{2}“ mit der Paket-ID „{3}“ aufgelöst.", "Rewrite_all_as_indexed_access_types_95034": "Alle als indizierte Zugriffstypen neu schreiben", "Rewrite_as_the_indexed_access_type_0_90026": "Als indizierten Zugriffstyp \"{0}\" neu schreiben", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Schreiben Sie die Dateiendungen '.ts', '.tsx', '.mts' und '.cts' in relativen Importpfaden in ihren JavaScript-Äquivalenten in den Ausgabedateien um.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Rechter Operand von ?? ist nicht erreichbar, weil der linke Operand nie \"NULLISH\" ist.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Das Stammverzeichnis kann nicht ermittelt werden. Die primären Suchpfade werden übersprungen.", "Root_file_specified_for_compilation_1427": "Für die Kompilierung angegebene Stammdatei", "STRATEGY_6039": "STRATEGIE", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Speichern Sie die .tsbuildinfo-Dateien, um eine inkrementelle Kompilierung von Projekten zuzulassen.", "Saw_non_matching_condition_0_6405": "Die nicht übereinstimmende Bedingung \"{0}\" wurde angezeigt.", "Scoped_package_detected_looking_in_0_6182": "Bereichsbezogenes Paket erkannt. In \"{0}\" wird gesucht", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Alle node_modules-Vorgängerverzeichnisse werden nach Fallbackerweiterungen durchsucht: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Alle node_modules-Vorgängerverzeichnisse werden nach bevorzugten Erweiterungen durchsucht: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "Die Auswahl umfasst keine gültigen Anweisungen.", "Selection_is_not_a_valid_type_node_95133": "Die Auswahl ist kein gültiger Typknoten.", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Legen Sie die JavaScript-Sprachversion für das ausgegebene JavaScript fest, und schließen Sie kompatible Bibliotheksdeklarationen ein.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Ausführliche Diagnoseinformationen anzeigen.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Anzeigen, was erstellt würde (oder gelöscht würde, wenn mit \"--clean\" angegeben)", "Signature_0_must_be_a_type_predicate_1224": "Die Signatur \"{0}\" muss ein Typprädikat sein.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Signaturdeklarationen können nur in TypeScript-Dateien verwendet werden.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Überspringen Sie die Erstellung von Downstreamprojekten bei einem Fehler im Upstreamprojekt.", "Skip_type_checking_all_d_ts_files_6693": "Überspringen Sie die Typüberprüfung aller .d.ts-Dateien.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Überspringen Sie die Typüberprüfung von .d.ts-Dateien, die in TypeScript enthalten sind.", "Skip_type_checking_of_declaration_files_6012": "Überspringen Sie die Typüberprüfung von Deklarationsdateien.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Modul \"{0}\", das wie ein absoluter URI aussieht, wird übersprungen, Zieldateitypen: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Das Erstellen von Projekt \"{0}\" wird übersprungen, weil die Abhängigkeit \"{1}\" einen Fehler aufweist.", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Das Kompilieren von Projekt \"{0}\" wird übersprungen, weil die Abhängigkeit \"{1}\" nicht erstellt wurde.", "Source_from_referenced_project_0_included_because_1_specified_1414": "Quelle aus referenziertem Projekt \"{0}\", da \"{1}\" angegeben wurde", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Quelle aus referenziertem Projekt \"{0}\", da \"--module\" als \"none\" angegeben wurde", "Source_has_0_element_s_but_target_allows_only_1_2619": "Die Quelle weist {0} Element(e) auf, aber das Ziel lässt nur {1} zu.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Geben Sie an, wie der TypeScript-Überwachungsmodus funktioniert.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Geben Sie Bibliotheksdateien an, die in die Kompilierung eingeschlossen werden sollen.", "Specify_module_code_generation_6016": "Geben Sie die Modulcodegenerierung an.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Geben Sie die Modulauflösungsstrategie an: \"node\" (Node.js) oder \"classic\" (TypeScript vor Version 1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Geben Sie den Modulspezifizierer an, der zum Importieren der JSX-Factoryfunktionen verwendet wird, wenn Sie „jsx: react-jsx*“ verwenden.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Geben Sie mehrere Ordner an, die als „./node_modules/@types“ fungieren.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Geben Sie einen oder mehrere Pfad- oder Knotenmodulverweise auf Basiskonfigurationsdateien an, von denen Einstellungen geerbt werden.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Statische Member dürfen nicht auf Klassentypparameter verweisen.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Die statische Eigenschaft \"{0}\" steht in Konflikt mit der integrierten Eigenschaft \"Function.{0}\" der Konstruktorfunktion \"{1}\".", "String_literal_expected_1141": "Ein Zeichenfolgenliteral wurde erwartet.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Import- und Exportnamen von Zeichenfolgenliteralen werden nicht unterstützt, wenn das Flag \"--module\" auf \"es2015\" oder \"es2020\" festgelegt ist.", "String_literal_with_double_quotes_expected_1327": "Ein Zeichenfolgenliteral mit doppelten Anführungszeichen wird erwartet.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Fehler und Nachrichten farbig und mit Kontext formatieren (experimentell).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Subpatternkennzeichen müssen vorhanden sein, wenn ein Minuszeichen vorhanden ist.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Nachfolgende Eigenschaftendeklarationen müssen den gleichen Typ aufweisen. Die Eigenschaft \"{0}\" muss den Typ \"{1}\" aufweisen, ist hier aber vom Typ \"{2}\".", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Nachfolgende Variablendeklarationen müssen den gleichen Typ aufweisen. Die Variable \"{0}\" muss den Typ \"{1}\" aufweisen, ist hier aber vom Typ \"{2}\".", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Die Ersetzung \"{0}\" für das Muster \"{1}\" weist einen falschen Typ auf. Erwartet wurde \"string\", abgerufen wurde \"{2}\".", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Mit Tags versehene Vorlagenausdrücke sind in einer optionalen Kette nicht zulässig.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Das Ziel erlaubt nur {0} Element(e), aber die Quelle kann mehr aufweisen.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Das Ziel erfordert {0} Element(e), aber die Quelle kann weniger aufweisen.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "Die Zielsignatur stellt zu wenige Argumente bereit. Erwartete {0} oder mehr, erhielt aber {1}.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Der Modifizierer \"{0}\" kann nur in TypeScript-Dateien verwendet werden.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Der Operator \"{0}\" darf nicht den Typ \"symbol\" angewendet werden.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Der Operator \"{0}\" ist für boolesche Typen unzulässig. Verwenden Sie stattdessen ggf. \"{1}\".", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Die Eigenschaft \"{0}\" eines asynchronen Iterators muss eine Methode sein.", "The_0_property_of_an_iterator_must_be_a_method_2767": "Die Eigenschaft \"{0}\" eines Iterators muss eine Methode sein.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Der Typ \"Object\" kann nur wenigen anderen Typen zugewiesen werden. Wollten Sie stattdessen den Typ \"any\" verwenden?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Das Unicode-Flag (u) und das Unicode Sets-Flag (v) können nicht gleichzeitig festgelegt werden.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "Auf das Objekt „arguments“ darf in einer Pfeilfunktion in ES5 nicht verwiesen werden. Verwenden Sie ggf. einen Standardfunktionsausdruck.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "Auf das Objekt „arguments“ darf in einer asynchronen Funktion oder Methode in ES5 nicht verwiesen werden. Verwenden Sie ggf. eine Standardfunktion oder -methode.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Auf das Objekt \"arguments\" darf in einer Pfeilfunktion in ES3 und ES5 nicht verwiesen werden. Verwenden Sie ggf. einen Standardfunktionsausdruck.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Auf das Objekt \"arguments\" darf in einer asynchronen Funktion oder Methode in ES3 und ES5 nicht verwiesen werden. Verwenden Sie ggf. eine Standardfunktion oder -methode.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Der Text einer \"if\"-Anweisung kann keine leere Anweisung sein.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Der Aufruf wäre für diese Implementierung erfolgreich, aber die Implementierungssignaturen von Überladungen sind nicht extern sichtbar.", "The_character_set_of_the_input_files_6163": "Der Zeichensatz der Eingabedateien.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Der globale Typ \"JSX.{0}\" darf nur eine Eigenschaft aufweisen.", "The_implementation_signature_is_declared_here_2750": "Die Implementierungssignatur wird hier deklariert.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Die Meta-Eigenschaft „import.meta“ ist in Dateien, die in der CommonJS-Ausgabe erstellt werden, nicht zulässig.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Die Meta-Eigenschaft „import.meta“ ist nur zulässig, wenn die Option „--module“ „es2020“, „es2022“, „esnext“, „system“, „node16“, „node18“ oder „nodenext“ ist.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Die Meta-Eigenschaft „import.meta“ ist nur zulässig, wenn die Option „--module“ „es2020“, „es2022“, „esnext“, „system“, „node16“ oder „nodenext“ ist.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Der abgeleitete Typ von \"{0}\" kann nicht ohne einen Verweis auf \"{1}\" benannt werden. Eine Portierung ist wahrscheinlich nicht möglich. Eine Typanmerkung ist erforderlich.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Der abgeleitete Typ von \"{0}\" verweist auf einen Typ mit zyklischer Struktur, die nicht trivial serialisiert werden kann. Es ist eine Typanmerkung erforderlich.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Der abgeleitete Typ von \"{0}\" verweist auf einen Typ \"{1}\", auf den nicht zugegriffen werden kann. Eine Typanmerkung ist erforderlich.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Der abgeleitete Typ dieses Knotens überschreitet die maximale Länge, die vom Compiler serialisiert wird. Eine explizite Typanmerkung ist erforderlich.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "Der Initialisierer einer „using“-Deklaration muss entweder ein Objekt mit der Methode „[Symbol.dispose]()“ sein oder „null“ oder „undefined“ sein.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "Der Initialisierer einer „await using“-Deklaration muss entweder ein Objekt mit der Methode „[Symbol.asyncDispose]()“ oder „[Symbol.dispose]5D;()“ sein oder „null“ oder „undefined“ sein.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Die Schnittmenge \"{0}\" wurde auf \"niemals\" reduziert, weil die Eigenschaft \"{1}\" in mehreren Bestandteilen vorhanden und in einigen davon privat ist.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Die Schnittmenge \"{0}\" wurde auf \"niemals\" reduziert, weil die Eigenschaft \"{1}\" in einigen Bestandteilen widersprüchliche Typen aufweist.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Das Schlüsselwort \"intrinsic\" darf nur zum Deklarieren von vom Compiler bereitgestellten intrinsischen Typen verwendet werden.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "Die letzte Überladung hat den folgenden Fehler verursacht.", "The_last_overload_is_declared_here_2771": "Die letzte Überladung wird hier deklariert.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Die linke Seite einer for...in-Anweisung darf kein Destrukturierungsmuster sein.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "Die linke Seite einer „for... in“-Anweisung darf keine „using“-Deklaration sein.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "Die linke Seite eines „for...in“-Anweisung darf keine „await using“-Deklaration sein.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Die linke Seite einer for...in-Anweisung darf keine Typanmerkung verwenden.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Die linke Seite einer for...in-Anweisung darf kein optionaler Eigenschaftenzugriff sein.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "Die linke Seite einer for...in-Anweisung muss eine Variable oder ein Eigenschaftenzugriff sein.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Die linke Seite einer arithmetischen Operation muss den Typ \"any\", \"number\" oder \"bigint\" aufweisen oder ein Enumerationstyp sein.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Die linke Seite eines Zuweisungsausdrucks darf kein optionaler Eigenschaftenzugriff sein.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Die linke Seite eines Zuweisungsausdrucks muss eine Variable oder ein Eigenschaftenzugriff sein.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "Die linke Seite eines „instanceof“-Ausdrucks muss dem ersten Argument der „[Symbol.hasInstance]“-Methode der rechten Seite zugewiesen werden können.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Die linke Seite eines instanceof-Ausdrucks muss den Typ \"any\" aufweisen oder ein Objekttyp bzw. ein Typparameter sein.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Das beim Anzeigen von Meldungen für den Benutzer verwendete Gebietsschema (z. B. \"de-de\").", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Die maximale Abhängigkeitstiefe, die unter \"node_modules\" durchsucht und für die JavaScript-Dateien geladen werden sollen.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Der Projektstamm ist mehrdeutig, wird aber benötigt, um den Exportzuordnungseintrag „{0}“ in der Datei „{1}“ aufzulösen. Geben Sie die Compiler-Option „rootDir“ an, um die Mehrdeutigkeit aufzuheben.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Der Projektstamm ist mehrdeutig, wird aber benötigt, um den Importzuordnungseintrag „{0}“ in der Datei „{1}“ aufzulösen. Geben Sie die Compiler-Option „rootDir“ an, um die Mehrdeutigkeit aufzuheben.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Auf die Eigenschaft \"{0}\" kann für den Typ \"{1}\" nicht innerhalb dieser Klasse zugegriffen werden, weil sie von einem anderen privaten Bezeichner mit der gleichen Schreibweise verborgen wird.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Der Rückgabetyp einer get-Zugriffsmethode muss dem zugehörigen set-Accessortyp zugewiesen werden können.", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Der Rückgabetyp einer Parameter-Decorator-Funktion muss \"void\" oder \"any\" sein.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Der Rückgabetyp einer Eigenschaften-Decorator-Funktion muss \"void\" oder \"any\" sein.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Der Rückgabetyp einer asynchronen Funktion muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Der Rückgabetyp einer asynchronen Funktion oder Methode muss der globale Typ \"Promise\" sein.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Der Rückgabetyp einer asynchronen Funktion oder Methode muss der globale Typ \"Promise\" sein. Wollten Sie eigentlich \"Promise<{0}>\" verwenden?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Die rechte Seite einer for...in-Anweisung muss den Typ \"any\" aufweisen oder ein Objekttyp bzw. ein Typparameter sein. Sie weist hier jedoch den Typ \"{0}\" auf.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Die rechte Seite einer arithmetischen Operation muss den Typ \"any\", \"number\" oder \"bigint\" aufweisen oder ein Enumerationstyp sein.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "Die rechte Seite eines „instanceof“-Ausdrucks muss entweder vom Typ „any“, eine Klasse, eine Funktion oder ein anderer Typ, der dem Schnittstellentyp „Function“ zugewiesen werden kann, oder ein Objekttyp mit einer Symbol.hasInstance-Methode sein.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "Die rechte Seite eines „instanceof“-Ausdrucks darf kein Instanziierungsausdruck sein.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Die rechte Seite eines instanceof-Ausdrucks muss den Typ \"any\" oder einen Typ aufweisen, der dem Schnittstellentyp \"Function\" zugewiesen werden kann.", "The_root_value_of_a_0_file_must_be_an_object_5092": "Der Stammwert einer {0}-Datei muss ein Objekt sein.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Die Runtime ruft das Decorator-Element mit {1} Argumenten auf, aber das Decorator-Element erwartet {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Die Runtime ruft das Decorator-Element mit {1}-Argumenten auf, aber das Decorator-Element erwartet mindestens {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "Die verbergende Deklaration von \"{0}\" ist hier definiert.", "The_signature_0_of_1_is_deprecated_6387": "Die Signatur \"{0}\" von \"{1}\" ist veraltet.", "The_specified_path_does_not_exist_Colon_0_5058": "Der angegebene Pfad \"{0}\" ist nicht vorhanden.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Der \"Type\"-Modifizierer kann nicht für einen benannten Export verwendet werden, wenn \"Export-Typ\" auf seiner Export-Anweisung verwendet wird.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Der \"Type\"-Modifizierer kann nicht für einen benannten Import verwendet werden, wenn der \"Import-Typ\" auf seiner Import-Anweisung verwendet wird.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Der Typ einer Funktionsdeklaration muss mit der Signatur der Funktion übereinstimmen.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Der Typ dieses Ausdrucks kann nicht ohne eine „resolution-mode“-Assertion benannt werden, was eine instabile Funktion ist. Verwenden Sie nächtliches TypeScript, um diesen Fehler zu unterdrücken. Versuchen Sie, mit „npm install -D typescript@next“ zu aktualisieren.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Der Typ dieses Knotens kann nicht serialisiert werden, da seine Eigenschaft \"{0}\" nicht serialisiert werden kann.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Der von der {0}()-Methode eines Async-Iterators zurückgegebene Typ muss eine Zusage für einen Typ mit einer value-Eigenschaft sein.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Der von der {0}()-Methode eines Iterators zurückgegebene Typ muss eine value-Eigenschaft aufweisen.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Die Variablendeklaration einer for...in-Anweisung darf keinen Initialisierer aufweisen.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Die Variablendeklaration einer for...of-Anweisung darf keinen Initialisierer aufweisen.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Die with-Anweisung wird nicht unterstützt. Alle Symbole in einem with-Block weisen den Typ \"any\" auf.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Es gibt Typen unter „{0}“, aber dieses Ergebnis konnte unter Ihrer aktuellen „moduleResolution“-Einstellung nicht aufgelöst werden. Erwägen Sie ein Update auf „node16“, „nodenext“ oder „bundler“.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Es gibt Typen unter „{0}“, aber dieses Ergebnis konnte nicht aufgelöst werden, wenn package.json „Exporte“ beachtet wird. Die Bibliothek „{1}“ muss möglicherweise ihre package.json oder Eingaben aktualisieren.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "In diesem regulären Ausdruck ist keine Erfassungsgruppe namens „{0}“ vorhanden.", - "There_is_nothing_available_for_repetition_1507": "Es ist nichts für Wiederholungen verfügbar.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Dieses JSX-Tag erfordert, dass '{0}' im Geltungsbereich ist, konnte jedoch nicht gefunden werden.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Für dieses JSX-Tag muss der Modulpfad '{0}' vorhanden sein, aber es wurde keiner gefunden. Stellen Sie sicher, dass die Typen für das entsprechende Paket installiert sind.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Die Eigenschaft \"{0}\" für dieses JSX-Tag erwartet ein einzelnes untergeordnetes Element vom Typ \"{1}\", aber es wurden mehrere untergeordnete Elemente angegeben.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Die Eigenschaft \"{0}\" für dieses JSX-Tag erwartet den Typ \"{1}\", der mehrere untergeordnete Elemente erfordert, aber es wurde nur ein untergeordnetes Elemente angegeben.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Dieser Rückverweis bezieht sich auf eine Gruppe, die nicht vorhanden ist. Dieser reguläre Ausdruck enthält keine Erfassungsgruppen.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Dieser Rückverweis bezieht sich auf eine Gruppe, die nicht vorhanden ist. In diesem regulären Ausdruck sind nur {0} Erfassungsgruppen vorhanden.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Dieser binäre Ausdruck ist nie „NULLISH“. Fehlen Klammern?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Dieses Zeichen kann in einem regulären Ausdruck nicht mit Escapezeichen versehen werden.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Dieser Vergleich scheint unbeabsichtigt zu sein, da die Typen \"{0}\" und \"{1}\" keine Überlappung aufweisen.", "This_condition_will_always_return_0_2845": "Diese Bedingung gibt immer „{0}“ zurück.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Diese Bedingung gibt immer „{0}“ zurück, da JavaScript Objekte nach Verweis und nicht nach Wert vergleicht.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Diese Bedingung gibt immer TRUE zurück, weil diese '{0}' immer definiert ist.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Diese Bedingung gibt immer TRUE zurück, weil diese Funktion immer definiert ist. Möchten Sie sie stattdessen aufrufen?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Diese Konstruktorfunktion kann in eine Klassendeklaration konvertiert werden.", - "This_expression_is_always_nullish_2871": "Dieser Ausdruck ist immer „NULLISH“.", "This_expression_is_not_callable_2349": "Dieser Ausdruck kann nicht aufgerufen werden.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Dieser Ausdruck kann nicht aufgerufen werden, weil es sich um eine get-Zugriffsmethode handelt. Möchten Sie den Wert ohne \"()\" verwenden?", "This_expression_is_not_constructable_2351": "Dieser Ausdruck kann nicht erstellt werden.", "This_file_already_has_a_default_export_95130": "Diese Datei weist bereits einen Standardexport auf.", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Dieser Importpfad ist unsicher umzuschreiben, da er auf ein anderes Projekt verweist und der relative Pfad zwischen den Ausgabedateien der Projekte nicht derselbe ist wie der relative Pfad zwischen den Eingabedateien.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Dieser Import verwendet eine '{0}' Erweiterung, um auf eine TypeScript-Eingabedatei zu verweisen, wird jedoch beim Ausgeben nicht umgeschrieben, da es sich nicht um einen relativen Pfad handelt.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Dieser Import wird nie als Wert verwendet und muss \"import type\" verwenden, weil \"importsNotUsedAsValues\" auf \"error\" festgelegt ist.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Dies ist die erweiterte Deklaration. Die erweiternde Deklaration sollte in dieselbe Datei verschoben werden.", - "This_kind_of_expression_is_always_falsy_2873": "Diese Art von Ausdruck ist immer „FALSY“.", - "This_kind_of_expression_is_always_truthy_2872": "Diese Art von Ausdruck ist immer „TRUTHY“.", "This_may_be_converted_to_an_async_function_80006": "Es kann eine Konvertierung in ein asynchrone Funktion durchgeführt werden.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Dieser Member kann keinen JSDoc-Kommentar mit einem \"@override\"-Tag haben, da er nicht in der Basisklasse \"{0}\" deklariert ist.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Dieses Mitglied kann keinen JSDoc-Kommentar mit einem Override-Tag haben, da er nicht in der Basisklasse \"{0}\" deklariert ist. Meinten Sie \"{1}\"?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Dieses Mitglied kann keinen JSDoc-Kommentar mit einem Tag \"@override\" haben, da dessen enthaltende Klasse \"{0}\" keine andere Klasse erweitert.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Dieses Mitglied kann keinen JSDoc-Kommentar mit einem „@override“-Tag haben, da der Name dynamisch ist.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Dieser Member kann keinen override-Modifizierer aufweisen, weil er nicht in der Basisklasse \"{0}\" deklariert ist.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Dieser Member kann keinen override-Modifizierer aufweisen, weil er nicht in der Basisklasse \"{0}\" deklariert ist. Meinten Sie \"{1}\"?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Dieser Member kann keinen override-Modifizierer aufweisen, weil die Klasse \"{0}\", die diesen Member enthält, keine andere Klasse erweitert.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Dieser Member kann keinen override-Modifizierer aufweisen, da sein Name dynamisch ist.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Dieses Mitglied muss über einen JSDoc-Kommentar mit dem Tag \"@override\" verfügen, da er einen Member in der Basisklasse \"{0}\" überschreibt.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Dieser Member muss einen override-Modifizierer aufweisen, weil er einen Member in der Basisklasse \"{0}\" überschreibt.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Dieser Member muss einen override-Modifizierer aufweisen, weil er eine abstrakte Methode überschreibt, die in der Basisklasse \"{0}\" deklariert ist.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Auf dieses Modul kann nur mit ECMAScript-Importen/-Exporten verwiesen werden, indem das Flag \"{0}\" aktiviert und auf den Standardexport verwiesen wird.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Dieses Modul wird mit „export =“ deklariert und kann nur bei Verwendung des Kennzeichnens „{0}“ mit einem Standardimport verwendet werden.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Dieser Vorgang kann vereinfacht werden. Diese Schicht ist identisch mit „{0} {1} {2}“.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Diese Überladung gibt implizit den Typ „{0}“ zurück, da keine Rückgabetypanmerkung vorhanden ist.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Diese Überladungssignatur ist nicht mit der zugehörigen Implementierungssignatur kompatibel.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Dieser Parameter ist mit der Direktive \"use strict\" nicht zugelassen.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Diese Parametereigenschaft muss über einen JSDoc-Kommentar mit einem \"@override\"-Tag verfügen, da sie ein Mitglied in der Basisklasse \"{0}\" überschreibt.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Diese Parametereigenschaft muss einen „override“-Modifizierer aufweisen, weil er einen Member in der Basisklasse \"{0}\" überschreibt.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Dieses Flag für reguläre Ausdrücke kann nicht innerhalb eines Untermusters umgeschaltet werden.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Dieses Flag für reguläre Ausdrücke ist nur verfügbar, wenn es auf „{0}“ oder höher ausgerichtet ist.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Dieser relative Importpfad ist unsicher umzuschreiben, da er wie ein Dateiname aussieht, aber tatsächlich auf \"{0}\" verweist.", "This_spread_always_overwrites_this_property_2785": "Diese Eigenschaft wird immer durch diesen Spread-Operator überschrieben.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Diese Syntax ist nicht zulässig, wenn \"erasableSyntaxOnly\" aktiviert ist.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Diese Syntax ist in Dateien mit der Erweiterung .mts oder .cts reserviert. Fügen Sie ein nachfolgendes Komma oder eine explizite Einschränkung hinzu.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Diese Syntax ist in Dateien mit der Erweiterung \".mts\" oder \".cts\" reserviert. Verwenden Sie stattdessen einen „as“-Ausdruck.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Diese Syntax erfordert ein importiertes Hilfsprogramm, aber das Modul \"{0}\" wurde nicht gefunden.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, ändern Sie die Dateierweiterung in \"{0}\", oder fügen Sie das Feld ''type': 'module'' zu \"{1}\" hinzu.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, ändern Sie ihre Dateierweiterung in '{0}', oder erstellen Sie eine lokale package.json-Datei mit `{ \"type\": \"module\" }`.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Um diese Datei in ein ECMAScript-Modul zu konvertieren, erstellen Sie eine lokale package.json-Datei mit `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "„await“-Ausdrücke der obersten Ebene sind nur erlaubt, wenn die „module“-Option auf „es2022“, „esnext“, „system“, „node16“, „node18“, „nodenext“ oder „preserve“ gesetzt ist und die „target“-Option auf „es2017“ gesetzt ist oder höher.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "„await using“-Deklarationen der obersten Ebene sind nur erlaubt, wenn die „module“-Option auf „es2022“, „esnext“, „system“, „node16“, „node18“, „nodenext“ oder „preserve“ und die „target“-Option auf „es2017“ oder höher gesetzt ist.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "'await'-Ausdrücke der obersten Ebene sind nur zulässig, wenn die 'module'-Option auf 'es2022', 'esnext', 'system', 'node16' oder 'nodenext' und die 'target'-Option auf ' es2017' oder höher.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklarationen der obersten Ebene in .d.ts-Dateien müssen entweder mit einem declare- oder einem export-Modifizierer beginnen.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "„for await“-Schleifen der obersten Ebene sind nur erlaubt, wenn die „module“-Option auf „es2022“, „esnext“, „system“, „node16“, „node18“, „nodenext“ oder „preserve“ gesetzt ist und die „target“-Option auf „es2017“ gesetzt ist oder höher.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "'for await'-Schleifen der obersten Ebene sind nur erlaubt, wenn die 'module'-Option auf 'es2022', 'esnext', 'system', 'node16' oder 'nodenext' gesetzt ist und die 'target'-Option auf gesetzt ist 'es2017' oder höher.", "Trailing_comma_not_allowed_1009": "Ein nachgestelltes Komma ist unzulässig.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Jede Datei als separates Modul transpilieren (ähnlich wie bei \"ts.transpileModule\").", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Versuchen Sie es mit \"npm i --save-dev @types/{1}\", sofern vorhanden, oder fügen Sie eine neue Deklarationsdatei (.d.ts) hinzu, die \"declare module '{0}';\" enthält.", "Trying_other_entries_in_rootDirs_6110": "Andere Einträge in \"rootDirs\" werden versucht.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Die Ersetzung \"{0}\" wird versucht. Speicherort des Kandidatenmoduls: \"{1}\".", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Von den Tupelelementen müssen entweder alle oder keines einen Namen aufweisen.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Der Tupeltyp \"{0}\" der Länge {1} weist am Index \"{2}\" kein Element auf.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Tupeltypargumente verweisen zirkulär auf sich selbst.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Der Typ \"{0}\" kann nur durchlaufen werden, wenn das Flag \"--downlevelIteration\" verwendet wird oder \"--target\" den Wert \"es2015\" oder höher aufweist.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Der Typ \"{0}\" weist keine übereinstimmende Indexsignatur für den Typ \"{1}\" auf.", "Type_0_has_no_properties_in_common_with_type_1_2559": "Der Typ \"{0}\" verfügt über keine gemeinsamen Eigenschaften mit Typ \"{1}\".", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Der Typ „{0}“ weist keine Signaturen auf, für die die Liste „Typargument“ gilt.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Der Typ „{0}“ ist generisch und kann nur zum Lesen indiziert werden.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Im Typ \"{0}\" fehlen die folgenden Eigenschaften von Typ \"{1}\": \"{2}\".", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Im Typ \"{0}\" fehlen die folgenden Eigenschaften von Typ \"{1}\": \"{2}\" und {3} weitere.", "Type_0_is_not_a_constructor_function_type_2507": "Der Typ \"{0}\" ist kein Konstruktorfunktionstyp.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Der Typ „{0}“ ist in ES5 kein gültiger Rückgabetyp einer asynchronen Funktion, weil er nicht auf einen Promise-kompatiblen Konstruktorwert verweist.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Der Typ \"{0}\" ist in ES5/ES3 kein gültiger Rückgabetyp einer asynchronen Funktion, weil er nicht auf einen Promise-kompatiblen Konstruktorwert verweist.", "Type_0_is_not_an_array_type_2461": "Der Typ \"{0}\" ist kein Arraytyp.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Der Typ \"{0}\" ist kein Array- oder Zeichenfolgentyp.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ \"{0}\" ist kein Array-Typ oder Zeichenfolgentyp oder weist keine \"[Symbol.iterator]()\"-Methode auf, die einen Iterator zurückgibt.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Typ \"{0}\" kann dem Typ \"{1}\" nicht zugewiesen werden. Meinten Sie \"{2}\"?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Der Typ \"{0}\" kann dem Typ \"{1}\" nicht zugewiesen werden. Es sind zwei verschiedene Typen mit diesem Namen vorhanden, diese sind jedoch nicht verwandt.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Der Typ „{0}“ kann dem Typ „{1}“ nicht zugewiesen werden, wie in der Abweichungsanmerkung impliziert.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Der Typ „{0}“ kann nicht dem Typ „{1}“ zugewiesen werden, wie für berechnete Enumerationselementwerte erforderlich.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Der Typ „{0}“ kann dem Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zu den Typen der Zieleigenschaften.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Der Typ „{0}“ kann dem Typ „{1}“ mit „exactOptionalPropertyTypes: true“ nicht zugewiesen werden. Erwägen Sie das Hinzufügen von „undefined“ zum Typ des Ziels.", "Type_0_is_not_comparable_to_type_1_2678": "Der Typ \"{0}\" kann nicht mit dem Typ \"{1}\" verglichen werden.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Ein Typargument wurde erwartet.", "Type_argument_list_cannot_be_empty_1099": "Die Typargumentliste darf nicht leer sein.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Typargumente können nur in TypeScript-Dateien verwendet werden.", + "Type_arguments_cannot_be_used_here_1342": "Typargumente können an dieser Stelle nicht verwendet werden.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Typargumente für \"{0}\" verweisen zirkulär auf sich selbst.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Typassertionsausdrücke können nur in TypeScript-Dateien verwendet werden.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Der Typ an Position {0} in der Quelle ist nicht mit dem Typ an Position {1} im Ziel kompatibel.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Der Typ an den Positionen {0} bis {1} in der Quelle ist nicht mit dem Typ an Position {2} im Ziel kompatibel.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Der Typ, der den privaten Namen „{0}“ enthält, kann nicht mit „--isolatedDeclarations“ verwendet werden.", "Type_declaration_files_to_be_included_in_compilation_6124": "Typdeklarationsdateien, die in die Kompilierung eingeschlossen werden sollen.", "Type_expected_1110": "Es wurde ein Typ erwartet.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Typimportassertionen sollten über genau einen Schlüssel verfügen – „resolution-mode“ – mit dem Wert „import“ oder „require“.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Typimportattribute sollten über genau einen Schlüssel verfügen – „resolution-mode“ – mit dem Wert „import“ oder „require“.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "Der Typimport eines ECMAScript-Moduls aus einem CommonJS-Modul muss ein Attribut für den Auflösungsmodus (resolution-mode) aufweisen.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Die Typinstanziierung ist übermäßig tief und möglicherweise unendlich.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Auf den Typ wird direkt oder indirekt im Erfüllungsrückruf der eigenen \"then\"-Methode verwiesen.", "Type_library_referenced_via_0_from_file_1_1402": "Typbibliothek, die über \"{0}\" aus der Datei \"{1}\" referenziert wird", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Der Typ iterierter Elemente eines \"yield*\"-Operanden muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Der Typ der Eigenschaft \"{0}\" verweist im zugeordneten Typ \"{1}\" auf sich selbst.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Der Typ eines \"yield\"-Operanden in einem asynchronen Generator muss entweder eine gültige Zusage sein oder darf keinen aufrufbaren \"then\"-Member enthalten.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "Der reine Typimport eines ECMAScript-Moduls aus einem CommonJS-Modul muss ein Attribut für den Auflösungsmodus (resolution-mode) aufweisen.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Der Typ stammt aus diesem Import. Ein Import im Namespacestil kann nicht aufgerufen oder erstellt werden und verursacht zur Laufzeit einen Fehler. Erwägen Sie hier stattdessen die Verwendung eines Standardimports oder die den Import über \"require\".", "Type_parameter_0_has_a_circular_constraint_2313": "Der Typparameter \"{0}\" weist eine zirkuläre Einschränkung auf.", "Type_parameter_0_has_a_circular_default_2716": "Der Typparameter \"{0}\" besitzt einen zirkulären Standardwert.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Die Signatur des Methoden-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Die Signatur des Parameter-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Die Signatur des Eigenschaften-Decorator-Elements kann nicht aufgelöst werden, wenn der Aufruf als Ausdruck erfolgt.", - "Undetermined_character_escape_1513": "Nicht definiertes ESC-zeichen.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "Unerwartete(s/r) „{0}“. Wollten Sie mit einem umgekehrten Schrägstrich escapen?", "Unexpected_end_of_text_1126": "Unerwartetes Textende.", "Unexpected_keyword_or_identifier_1434": "Unerwartetes Schlüsselwort oder Bezeichner.", "Unexpected_token_1012": "Unerwartetes Token.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Unerwartetes Token. Meinten Sie \"{'}'}\" oder \"}\"?", "Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.", - "Unicode_escape_sequence_cannot_appear_here_17021": "Die Unicode-Escapesequenz kann hier nicht angezeigt werden.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Unicode-Escapesequenzen sind nur verfügbar, wenn das Unicode-Flag (u) oder das Unicode Sets-Flag (v) festgelegt ist.", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Unicode-Eigenschaftswertausdrücke sind nur verfügbar, wenn das Unicode-Flag (u) oder das Unicode Sets-Flag (v) festgelegt ist.", - "Unknown_Unicode_property_name_1524": "Unbekannter Unicode-Eigenschaftsname.", - "Unknown_Unicode_property_name_or_value_1529": "Unbekannter Unicode-Eigenschaftsname oder -Wert.", - "Unknown_Unicode_property_value_1526": "Unbekannter Unicode-Eigenschaftswert.", "Unknown_build_option_0_5072": "Unbekannte Buildoption \"{0}\".", "Unknown_build_option_0_Did_you_mean_1_5077": "Unbekannte Buildoption \"{0}\". Meinten Sie \"{1}\"?", "Unknown_compiler_option_0_5023": "Unbekannte Compileroption \"{0}\".", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Unbekannte Compileroption \"{0}\". Meinten Sie \"{1}\"?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Unbekanntes Schlüsselwort oder Bezeichner. Meinten Sie \"{0}\"?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Unbekannte Option \"exclude\". Meinten Sie \"exclude\"?", - "Unknown_regular_expression_flag_1499": "Unbekanntes Flag für reguläre Ausdrücke.", "Unknown_type_acquisition_option_0_17010": "Unbekannte Option zur Typerfassung: {0}.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Unbekannte Typerfassungsoption \"{0}\". Meinten Sie \"{1}\"?", "Unknown_watch_option_0_5078": "Unbekannte Überwachungsoption \"{0}\".", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Nicht verwendete Bezeichnung.", "Unused_ts_expect_error_directive_2578": "Nicht verwendete @ts-expect-error-Direktive.", "Update_import_from_0_90058": "Import von \"{0}\" aktualisieren", - "Update_modifiers_of_0_90061": "Modifizierer von „{0}“ aktualisieren", + "Updating_output_of_project_0_6373": "Ausgabe von Projekt \"{0}\" wird aktualisiert...", "Updating_output_timestamps_of_project_0_6359": "Ausgabezeitstempel von Projekt \"{0}\" werden aktualisiert...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Unveränderte Ausgabezeitstempel von Projekt \"{0}\" werden aktualisiert...", "Use_0_95174": "Verwenden Sie „{0}“.", - "Use_0_instead_5106": "Verwenden Sie stattdessen „{0}“.", "Use_Number_isNaN_in_all_conditions_95175": "Verwenden Sie „Number.isNaN“ unter allen Bedingungen.", "Use_element_access_for_0_95145": "Elementzugriff für \"{0}\" verwenden", "Use_element_access_for_all_undeclared_properties_95146": "Elementzugriff für alle nicht deklarierten Eigenschaften verwenden", - "Use_import_type_95180": "„Importtyp“ verwenden", "Use_synthetic_default_member_95016": "Verwenden Sie den synthetischen Member \"default\".", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Verwenden Sie das package.json-Feld „exports“, wenn Sie Paketimporte auflösen.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Verwenden Sie das package.json-Feld „imports“, wenn Sie Importe auflösen.", - "Use_type_0_95181": "„Typ {0}“ verwenden", "Using_0_subpath_1_with_target_2_6404": "Verwenden von \"{0}\" Unterpfad \"{1}\" mit Ziel \"{2}\".", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "Die Verwendung von JSX-Fragmenten erfordert, dass die Fragmentfabrik '{0}' im Geltungsbereich ist, aber sie konnte nicht gefunden werden.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Das Verwenden einer Zeichenfolge in einer for...of-Anweisung wird nur in ECMAScript 5 oder höher unterstützt.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Bei Verwendung von --build wird tsc durch -b dazu veranlasst, sich eher wie ein Build-Orchestrator als ein Compiler zu verhalten. Damit wird der Aufbau von zusammengesetzten Projekten ausgelöst. Weitere Informationen dazu finden Sie unter {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Compileroptionen der Projektverweisumleitung \"{0}\" werden verwendet.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Eine Variablendeklaration wurde erwartet.", "Variable_declaration_list_cannot_be_empty_1123": "Die Variablendeklarationsliste darf nicht leer sein.", "Variable_declaration_not_allowed_at_this_location_1440": "Variablendeklaration ist an dieser Stelle nicht zulässig.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "Die Variable muss eine explizite Typanmerkung mit --isolatedDeclarations aufweisen.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Variablen mit mehreren Deklarationen können nicht inline verwendet werden.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Das variadic-Element an Position {0} in der Quelle stimmt nicht mit dem Element an Position {1} im Ziel überein.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Abweichungsanmerkungen werden nur in Typaliasnamen für Objekt-, Funktions-, Konstruktor- und zugeordnete Typen unterstützt.", "Version_0_6029": "Version {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Berücksichtigen Sie bei der Typüberprüfung „null“ und „undefined“.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Gibt an, ob eine veraltete Konsolenausgabe im Überwachungsmodus beibehalten wird, statt den Bildschirm zu löschen.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Alle ungültigen Zeichen mit einem Ausdruckscontainer umschließen", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Umschließen aller ungültigen Decoratorausdrücke in Klammern", "Wrap_all_object_literal_with_parentheses_95116": "Gesamtes Objektliteral in Klammern einschließen", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Alle JSX ohne übergeordnetes Element mit JSX -Fragment umschließen", "Wrap_in_JSX_fragment_95120": "Mit JSX-Fragment umschließen", - "Wrap_in_parentheses_95194": "Umschließen in Klammern", "Wrap_invalid_character_in_an_expression_container_95108": "Ungültiges Zeichen mit Ausdruckscontainer umschließen", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Schließen Sie den folgenden Text, der ein Objektliteral darstellt, in Klammern ein.", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Informationen zu allen Compileroptionen finden Sie unter {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Indexsignaturen \"{0}\" und \"{1}\" sind nicht kompatibel.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Die Vorgänge \"{0}\" und \"{1}\" dürfen nicht ohne Klammern kombiniert werden.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "\"{0}\" ist zweimal angegeben. Das Attribut mit dem Namen \"{0}\" wird überschrieben.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "„{0}“ am Ende eines Typs ist keine gültige TypeScript-Syntax. Wollten Sie „{1}“ schreiben?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "„{0}“ am Anfang eines Typs ist keine gültige TypeScript-Syntax. Wollten Sie „{1}“ schreiben?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "\"{0}\" kann nur importiert werden, indem das Flag \"esModuleInterop\" aktiviert und ein Standardimport verwendet wird.", "_0_can_only_be_imported_by_using_a_default_import_2595": "\"{0}\" kann nur mithilfe eines Standardimports importiert werden.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "\"{0}\" kann nur mit einem Aufruf von \"require\" oder durch Aktivieren des Flags \"esModuleInterop\" und Verwendung eines Standardimports importiert werden.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "\"{0}\" kann nur mit einem Aufruf von \"require\" oder durch Verwendung eines Standardimports importiert werden.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "\"{0}\" kann nur mit \"import {1} = require({2})\" oder über einen Standardimport importiert werden.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "\"{0}\" kann nur mit \"import {1} = require({2})\" oder durch Aktivieren des Flags \"esModuleInterop\" und Verwendung eines Standardimports importiert werden.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "\"{0}\" wird als globale Skriptdatei betrachtet und kann daher nicht unter \"--isolatedModules\" kompiliert werden. Fügen Sie zum Festlegen als Modul eine Import-, Export- oder eine leere \"export {}\"-Anweisung hinzu.", "_0_cannot_be_used_as_a_JSX_component_2786": "\"{0}\" kann nicht als JSX-Komponente verwendet werden.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "\"{0}\" kann nicht als Wert verwendet werden, weil der Export mit \"export type\" durchgeführt wurde.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "\"{0}\" kann nicht als Wert verwendet werden, weil der Import mit \"import type\" durchgeführt wurde.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "{0}-Komponenten akzeptieren Text nicht als untergeordnete Elemente. Der Text in der JSX weist den Typ \"string\" auf, aber für \"{1}\" wird der Typ \"{2}\" erwartet.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "\"{0}\" konnte mit einem arbiträren Typ instanziiert werden, der mit \"{1}\" möglicherweise in keinem Zusammenhang steht.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "„{0}“-Deklarationen können nur innerhalb eines Blocks deklariert werden.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "{0}-Deklarationen können nur in TypeScript-Dateien verwendet werden.", - "_0_declarations_may_not_have_binding_patterns_1492": "„{0}“-Deklarationen dürfen keine Bindungsmuster aufweisen.", - "_0_declarations_must_be_initialized_1155": "„{0}“-Deklarationen müssen initialisiert werden.", "_0_expected_1005": "\"{0}\" wurde erwartet.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "„{0}“ hat einen Zeichenfolgentyp, muss aber syntaktisch erkennbare Zeichenfolgensyntax aufweisen, wenn „isolatedModules“ aktiviert ist.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "\"{0}\" umfasst keinen exportierten Member namens \"{1}\". Meinten Sie \"{2}\"?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" weist implizit einen Rückgabetyp \"{1}\" auf, möglicherweise kann jedoch ein besserer Typ aus der Syntax abgeleitet werden.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "\"{0}\" weist implizit den Typ \"any\" auf, weil keine Rückgabetypanmerkung vorhanden ist und darauf direkt oder indirekt in einem der Rückgabeausdrücke des Objekts verwiesen wird.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "\"{0}\" Indextyp \"{1}\" kann nicht \"{2}\" Indextyp \"{3}\" zugewiesen werden.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "\"{0}\" ist ein primitiver Typ, aber \"{1}\" ist ein Wrapperobjekt. Verwenden Sie vorzugsweise \"{0}\", wenn möglich.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "\"{0}\" ist ein Typ und kann nicht in JavaScript-Dateien importiert werden. Verwenden Sie \"{1}\" in einer JSDoc-Typanmerkung.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "„{0}“ ist ein Typ und muss mit einem reinen Typimport importiert werden, wenn „verbatimModuleSyntax“ aktiviert ist.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "„{0}“ ist ein Typ und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}“ ist eine nicht verwendete Umbenennung von „{1}“. Wollten Sie sie als Typanmerkung verwenden?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" kann der Einschränkung vom Typ \"{1}\" zugewiesen werden, aber \"{1}\" könnte mit einem anderen Untertyp der Einschränkung \"{2}\" instanziiert werden.", "_0_is_automatically_exported_here_18044": "\"{0}\" wird hier automatisch exportiert.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "Die {0}-Liste darf nicht leer sein.", "_0_modifier_already_seen_1030": "Der {0}-Modifizierer ist bereits vorhanden.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Der Modifizierer „{0}“ kann nur für einen Typparameter einer Klasse, einer Schnittstelle oder eines Typalias verwendet werden.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "Der Modifizierer „{0}“ kann nur für einen Typparameter einer Funktion, Methode oder Klasse angezeigt werden.", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Der Modifizierer \"{0}\" darf nicht für eine Konstruktordeklaration verwendet werden.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Der Modifizierer \"{0}\" darf nicht für ein Modul- oder Namespaceelement verwendet werden.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Der Modifizierer \"{0}\" darf nicht für einen Parameter verwendet werden.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Der Modifizierer \"{0}\" darf nicht für einen Typmember verwendet werden.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Der Modifizierer „{0}“ kann nicht für einen Typparameter verwendet werden", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "Der Modifizierer „{0}“ kann nicht in einer „using“-Deklaration angezeigt werden.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "Der Modifizierer „{0}“ kann nicht in einer „await using“-Deklaration angezeigt werden.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Der Modifizierer \"{0}\" darf nicht für eine Indexsignatur verwendet werden.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Der Modifizierer \"{0}\" kann nicht für Klassenelemente dieser Art verwendet werden.", "_0_modifier_cannot_be_used_here_1042": "Der Modifizierer \"{0}\" kann hier nicht verwendet werden.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Der Modifizierer \"{0}\" darf nicht mit dem Modifizierer \"{1}\" verwendet werden.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Der Modifizierer \"{0}\" kann nicht mit einem privaten Bezeichner verwendet werden.", "_0_modifier_must_precede_1_modifier_1029": "Der Modifizierer \"{0}\" muss dem Modifizierer \"{1}\" vorangestellt sein.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "Auf „\\{0}“ muss ein Unicode-Eigenschaftswertausdruck folgen, der in geschweifte Klammern eingeschlossen ist.", "_0_needs_an_explicit_type_annotation_2782": "\"{0}\" erfordert eine explizite Typanmerkung.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Namespace verwendet.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "\"{0}\" bezieht sich nur auf einen Typ, wird aber hier als Wert verwendet.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" bezieht sich nur auf einen Typ, wird hier jedoch als Wert verwendet. Müssen Sie Ihre Zielbibliothek ändern? Ändern Sie die Compileroption \"lib\" in \"es2015\" oder höher.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "\"{0}\" bezieht sich auf eine globale UMD, die aktuelle Datei ist jedoch ein Modul. Ziehen Sie in Betracht, stattdessen einen Import hinzuzufügen.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" bezieht sich auf einen Wert, wird hier jedoch als Typ verwendet. Meinten Sie \"typeof {0}\"?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "„{0}“ wird in einen Typ aufgelöst und muss in dieser Datei als schreibgeschützt gekennzeichnet werden, bevor der Export erneut ausgeführt wird, wenn „{1}“ aktiviert ist. Verwenden Sie ggf. „import type“, wobei „{0}“ importiert wird.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "„{0}“ wird in einen Typ aufgelöst und muss in dieser Datei als schreibgeschützt gekennzeichnet werden, bevor der Export erneut ausgeführt wird, wenn „{1}“ aktiviert ist. Erwägen Sie die Verwendung von „export type { {0} as default }“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "„{0}“ wird in eine schreibgeschützte Deklaration aufgelöst und muss mithilfe eines reinen Typimports importiert werden, wenn „verbatimModuleSyntax“ aktiviert ist.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "„{0}“ wird in eine schreibgeschützte Deklaration aufgelöst und muss in dieser Datei als schreibgeschützt gekennzeichnet werden, bevor erneut exportiert wird, wenn „{1}“ aktiviert ist. Verwenden Sie ggf. „import type“, wobei „{0}“ importiert wird.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "„{0}“ wird in eine schreibgeschützte Deklaration aufgelöst und muss in dieser Datei als schreibgeschützt gekennzeichnet werden, bevor erneut exportiert wird, wenn „{1}“ aktiviert ist. Erwägen Sie die Verwendung von „export type { {0} as default }“.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typreexports erneut exportiert werden, wenn „{1}“ aktiviert ist.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typimports importiert werden, wenn „preserveValueImports“ und isolatedModules“ beide aktiviert sind.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "„{0}“ wird in eine reine Typdeklaration aufgelöst und muss mithilfe eines reinen Typreexports erneut exportiert werden, wenn „isolatedModules“ aktiviert ist.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" sollte im CompilerOptions-Objekt der JSON-Konfigurationsdatei festgelegt werden.", "_0_tag_already_specified_1223": "Das Tag \"{0}\" wurde bereits angegeben.", "_0_was_also_declared_here_6203": "\"{0}\" wurde hier ebenfalls deklariert.", @@ -1999,22 +1780,19 @@ "and_here_6204": "und hier.", "arguments_cannot_be_referenced_in_property_initializers_2815": "Auf \"arguments\" kann in Eigenschaftsinitialisierern nicht verwiesen werden.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto“: Dateien mit imports, exports, import.meta, jsx (mit jsx: respond-jsx) oder esm-Format (mit module: node16+) als Module behandeln.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Der „await“-Ausdruck kann nicht innerhalb eines statischen Klassenblocks verwendet werden.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "await-Ausdrücke sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "await-Ausdrücke sind nur innerhalb von asynchronen Funktionen und auf den obersten Modulebenen zulässig.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "await-Ausdrücke dürfen nicht in einem Parameterinitialisierer verwendet werden.", "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" hat keine Auswirkungen auf den Typ dieses Ausdrucks.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "„await usuing“-Deklarationen sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "„await using“-Deklarationen sind nur innerhalb von asynchronen Funktionen und auf den obersten Modulebenen zulässig.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "„await using“-Anweisungen können nicht innerhalb eines statischen Klassenblocks verwendet werden.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Die Option \"baseUrl\" ist auf \"{0}\" festgelegt. Dieser Wert wird verwendet, um den nicht relativen Modulnamen \"{1}\" aufzulösen.", - "c_must_be_followed_by_an_ASCII_letter_1512": "Auf „\\c“ muss ein ASCII-Buchstabe folgen.", "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" kann nur am Anfang einer Datei verwendet werden.", "case_or_default_expected_1130": "\"case\" oder \"default\" wurde erwartet.", "catch_or_finally_expected_1472": "„catch“ oder „finally“ erwartet.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "const-Deklarationen können nur innerhalb eines Blocks deklariert werden.", + "const_declarations_must_be_initialized_1155": "const-Deklarationen müssen initialisiert werden.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Der const-Enumerationsmemberinitialisierer wurde in einen unendlichen Wert ausgewertet.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Der const-Enumerationsmemberinitialisierer wurde in den unzulässigen Wert \"NaN\" ausgewertet.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Elementitialisierer für Konstantenenummeration müssen konstante Ausdrücke sein.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Initialisierer von const-Enumerationsmembern dürfen nur Literalwerte und andere berechnete Enumerationswerte enthalten.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "const-Enumerationen können nur in Eigenschaften- bzw. Indexzugriffsausdrücken oder auf der rechten Seite einer Importdeklaration oder Exportzuweisung verwendet werden.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "\"constructor\" kann nicht als Parametereigenschaftsname verwendet werden.", "constructor_is_a_reserved_word_18012": "\"#constructor\" ist ein reserviertes Wort.", @@ -2033,14 +1811,13 @@ "file_6025": "Datei", "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\"-Schleifen sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "\"for await\"-Schleifen sind nur innerhalb von asynchronen Funktionen und auf den obersten Modulebenen zulässig.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "„For await“-Schleifen können nicht innerhalb eines statischen Klassenblocks verwendet werden.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "get- und set-Zugriffsmethoden können keine this-Parameter deklarieren.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'[]', wenn 'files' angegeben ist, andernfalls '[\"**/*\"]5D;'", "implements_clause_already_seen_1175": "Die implements-Klausel ist bereits vorhanden.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "implements-Klauseln können nur in TypeScript-Dateien verwendet werden.", "import_can_only_be_used_in_TypeScript_files_8002": "\"import... =\" kann nur in TypeScript-Dateien verwendet werden.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "infer-Deklarationen sind nur in der extends-Klausel eines bedingten Typs zulässig.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "Auf „\\k“ muss ein Erfassungsgruppenname folgen, der in spitzen Klammern eingeschlossen ist.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "let-Deklarationen können nur innerhalb eines Blocks deklariert werden.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "\"let\" darf nicht als Name in let- oder const-Deklarationen verwendet werden.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "Modul === 'AMD' oder 'UMD' oder 'System' oder 'ES6', dann 'Klassisch', andernfalls 'Knoten'", "module_system_or_esModuleInterop_6904": "Modul === \"System\" oder esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package.json\" weist keinen Eintrag \"typesVersions\" auf, der mit der Version {0} übereinstimmt.", "package_json_had_a_falsy_0_field_6220": "\"package.json\" enthielt ein \"falsy\" Feld \"{0}\".", "package_json_has_0_field_1_that_references_2_6101": "\"package.json\" weist das {0}-Feld \"{1}\" auf, das auf \"{2}\" verweist.", - "package_json_has_a_peerDependencies_field_6281": "„package.json“ weist das Feld „peerDependencies“ auf.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "\"package.json\" weist einen typesversion-Eintrag \"{0}\" auf, der kein gültiger semver-Bereich ist.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "\"package.json\" weist einen typesVersions-Eintrag \"{0}\" auf, der der Compilerversion \"{1}\" entspricht. Es wird nach einem Muster gesucht, das dem Modulnamen \"{2}\" entspricht.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "\"package.json\" weist ein Feld \"typesVersions\" mit versionsspezifischen Pfadzuordnungen auf.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "Der package.json-Bereich \"{0}\" weist einen ungültigen Typ für das Ziel des Spezifizierers \"{1}\" auf.", "package_json_scope_0_has_no_imports_defined_6273": "Für package.jsim, Bereich \"{0}\" wurden keine Importe definiert.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Die Option \"paths\" wurde angegeben. Es wird nach einem Muster gesucht, das mit dem Modulnamen \"{0}\" übereinstimmt.", - "q_is_only_available_inside_character_class_1511": "„\\q“ ist nur innerhalb der Zeichenklasse verfügbar.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "Auf „\\q“ müssen Zeichenfolgenalternativen folgen, die in geschweifte Klammern eingeschlossen sind.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Der Modifizierer \"readonly\" darf nur für eine Eigenschaftendeklaration oder Indexsignatur verwendet werden.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Der Typmodifizierer \"readonly\" ist nur für Array- und Tupelliteraltypen zulässig.", "require_call_may_be_converted_to_an_import_80005": "Der Aufruf von \"require\" kann in einen Aufruf von \"import\" konvertiert werden.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "„resolution-mode“-Zusicherungen werden nur unterstützt, wenn „moduleResolution“ „node16“ oder „nodenext“ ist.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' Behauptungen sind instabil. Verwenden Sie nächtliches TypeScript, um diesen Fehler zu unterdrücken. Versuchen Sie, mit „npm install -D typescript@next“ zu aktualisieren.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "„resolution-mode“ kann nur für reine Typenimporte festgelegt werden.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "„resolution-mode“ ist für Typimportassertionen der einzige gültige Schlüssel.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "„resolution-mode“ ist für Typimportattribute der einzige gültige Schlüssel.", "resolution_mode_should_be_either_require_or_import_1453": "„resolution-mode“ muss entweder auf „require“ oder „import“ festgelegt sein.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Die Option \"rootDirs\" wurde festgelegt. Sie wird zum Auflösen des relativen Modulnamens \"{0}\" verwendet.", "super_can_only_be_referenced_in_a_derived_class_2335": "Auf \"super\" kann nur in einer abgeleiteten Klasse verwiesen werden.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "Auf \"this\" kann nicht in einem berechneten Eigenschaftennamen verwiesen werden.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Auf \"this\" kann nicht in einem Modul- oder Namespacetext verwiesen werden.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Auf \"this\" kann nicht in einem statischen Eigenschafteninitialisierer verwiesen werden.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "Auf \"this\" kann nicht in Konstruktorargumenten verwiesen werden.", "this_cannot_be_referenced_in_current_location_2332": "Auf \"this\" kann am aktuellen Speicherort nicht verwiesen werden.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "\"this\" weist implizit den Typ \"any\" auf, weil keine Typanmerkung vorhanden ist.", "true_for_ES2022_and_above_including_ESNext_6930": "\"true\" für ES2022 und höher, einschließlich ESNext.", "true_if_composite_false_otherwise_6909": "'true', wenn 'composite', andernfalls 'false'", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "„true“, wenn „moduleResolution“ „node16“, „nodenext“ oder „bundler“ ist; andernfalls „false“.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: Der TypeScript-Compiler", "type_Colon_6902": "Typ:", "unique_symbol_types_are_not_allowed_here_1335": "\"unique symbol\"-Typen sind hier nicht zulässig.", diff --git a/node_modules/typescript/lib/es/diagnosticMessages.generated.json b/node_modules/typescript/lib/es/diagnosticMessages.generated.json index 767c49772..242b20b06 100644 --- a/node_modules/typescript/lib/es/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/es/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "TODAS LAS OPCIONES DEL COMPILADOR", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Un modificador '{0}' no se puede usar con una declaración de importación.", "A_0_parameter_must_be_the_first_parameter_2680": "El parámetro \"{0}\" debe ser el primer parámetro.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Una etiqueta \"@template\" de JSDoc no puede seguir a una etiqueta \"@typedef\", \"@callback\" u \"@overload\"", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un comentario \"@typedef\" de JSDoc no puede contener varias etiquetas \"@type\".", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "No se puede usar un literal 'bigint' como nombre de propiedad.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Un literal bigint no puede usar la notación exponencial.", "A_bigint_literal_must_be_an_integer_1353": "Un literal bigint debe ser un entero.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un parámetro de patrón de enlace no puede ser opcional en una signatura de implementación.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Una instrucción \"break\" solo se puede usar dentro de una iteración envolvente o en una instrucción switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Una instrucción \"break\" solo puede saltar a una etiqueta de una instrucción envolvente.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Una clase de caracteres no debe contener un signo de puntuación doble reservado. ¿Querías escaparlo con barra diagonal inversa?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Un rango de clases de caracteres no debe estar limitado por otra clase de caracteres.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Una clase solo puede implementar un identificador o nombre completo con argumentos de tipo opcional.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Una clase solo puede implementar un tipo de objeto o una intersección de tipos de objeto con miembros conocidos estáticamente.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Una clase no puede extender un tipo primitivo como '{0}'. Las clases solo pueden extender valores que se puedan construir.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Una clase no puede implementar un tipo primitivo como '{0}'. Solo puede implementar otros tipos de objeto con nombre.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Una declaración de clase sin el modificador \"default\" debe tener un nombre.", "A_class_member_cannot_have_the_0_keyword_1248": "Un miembro de clase no puede tener la palabra clave '{0}'.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "No se admite una expresión de coma en un nombre de propiedad calculada.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Un constructor no puede tener un parámetro 'this'.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Una instrucción \"continue\" solo se puede usar en una instrucción de iteración envolvente.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Una instrucción \"continue\" solo puede saltar a una etiqueta de una instrucción de iteración envolvente.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "No se puede importar un archivo de declaración sin 'import type'. ¿Quería importar un archivo de implementación '{0}' en su lugar?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Un modificador \"declare\" no se puede usar en un contexto de ambiente.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un decorador solo puede modificar la implementación de un método, no una sobrecarga.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Una cláusula \"default\" no puede aparecer más de una vez en una instrucción \"switch\".", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Una exportación predeterminada debe estar en el nivel superior de una declaración de módulo o archivo.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "En este contexto no se permite una aserción de asignación definitiva \"!\".", "A_destructuring_declaration_must_have_an_initializer_1182": "Una declaración de desestructuración debe tener un inicializador.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Una llamada de importación dinámica en ES5 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Una llamada de importación dinámica en ES5/ES3 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Una llamada de importación dinámica devuelve un valor \"Promise\". Asegúrese de que tiene una declaración para \"Promise\" o incluya \"ES2015\" en la opción \"--lib\".", "A_file_cannot_have_a_reference_to_itself_1006": "Un archivo no puede tener una referencia a sí mismo.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Una función que devuelve 'never' no puede tener un punto de conexión alcanzable.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Una función a la que se llama con la palabra clave 'new' no puede tener un tipo 'this' que sea 'void'.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Una función cuyo tipo declarado no es \"undefined\", \"void\" o \"any\" debe devolver un valor.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Una función cuyo tipo declarado no es \"void\" o \"any\" debe devolver un valor.", "A_generator_cannot_have_a_void_type_annotation_2505": "Un generador no puede tener una anotación de tipo \"void\".", "A_get_accessor_cannot_have_parameters_1054": "Un descriptor de acceso \"get\" no puede tener parámetros.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Un descriptor de acceso get debe ser al menos tan accesible como el establecedor", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Una declaración de espacio de nombres no puede estar en un archivo distinto de una clase o función con la que se combina.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Una declaración de espacio de nombres no se puede situar antes que una clase o función con la que se combina.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Una declaración de espacio de nombres solo se permite en el nivel superior de un espacio de nombres o módulo.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Una declaración \"namespace\" no debe declararse con la palabra clave \"module\". Use la palabra clave \"namespace\" en su lugar.", "A_non_dry_build_would_build_project_0_6357": "Una compilación no -dry compilaría el proyecto \"{0}\"", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Una compilación no -dry eliminaría los archivos siguientes: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Una compilación no -dry actualizaría la salida del proyecto \"{0}\".", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Una compilación no -dry actualizaría las marcas de tiempo para la salida del proyecto \"{0}\".", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un inicializador de parámetros solo se permite en una implementación de función o de constructor.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Una propiedad de parámetro no se puede declarar mediante un parámetro rest.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Una llamada \"super\" debe ser la primera instrucción del constructor para hacer referencia a \"super\" o \"this\" cuando una clase derivada contiene propiedades inicializadas, propiedades de parámetro o identificadores privados.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Una restricción de tipo basada en 'this' no es compatible con una restricción de tipo basada en un parámetro.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "El tipo \"this\" solo está disponible en un miembro no estático de una clase o interfaz.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "No se puede usar un modificador \"export\" de nivel superior en declaraciones de valor en un módulo CommonJS cuando \"verbatimModuleSyntax\" está habilitado.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Ya hay un archivo \"tsconfig.json\" definido en: '{0}'.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un miembro de tupla no puede ser tanto opcional como REST.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo de tupla no se puede indizar con un valor negativo.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Una expresión \"yield\" solo se permite en un cuerpo de generador.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "No se puede acceder al método abstracto '{0}' de la clase '{1}' mediante una expresión super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Los métodos abstractos solo pueden aparecer en una clase abstracta.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Las propiedades abstractas solo pueden aparecer en una clase abstracta.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "No se puede acceder a la propiedad abstracta \"{0}\" de la clase \"{1}\" en el constructor.", "Accessibility_modifier_already_seen_1028": "El modificador de accesibilidad ya se ha visto.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Los descriptores de acceso solo están disponibles cuando el destino es ECMAScript 5 y versiones posteriores.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Los descriptores de acceso deben ser los dos abstractos o los dos no abstractos.", "Add_0_to_unresolved_variable_90008": "Agregar \"{0}.\" a una variable no resuelta", "Add_a_return_statement_95111": "Agregar una instrucción \"return\"", - "Add_a_return_type_to_the_function_declaration_9031": "Agrega un tipo de valor devuelto a la declaración de función.", - "Add_a_return_type_to_the_function_expression_9030": "Agrega un tipo de valor devuelto a la expresión de función.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Agregue un tipo de valor devuelto a la declaración de get accessor.", - "Add_a_return_type_to_the_method_9034": "Agregar un tipo de valor devuelto al método", - "Add_a_type_annotation_to_the_parameter_0_9028": "Agregue una anotación de tipo al parámetro {0}.", - "Add_a_type_annotation_to_the_property_0_9029": "Agregue una anotación de tipo a la propiedad {0}.", - "Add_a_type_annotation_to_the_variable_0_9027": "Agregue una anotación de tipo a la variable {0}.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Agregue un tipo al parámetro de la declaración del set accessor.", "Add_all_missing_async_modifiers_95041": "Agregar todos los modificadores \"async\" que faltan", "Add_all_missing_attributes_95168": "Agregar todos los atributos que faltan", "Add_all_missing_call_parentheses_95068": "Agregar todos los paréntesis de llamada que faltan", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Agregar todas las importaciones que faltan", "Add_all_missing_members_95022": "Agregar todos los miembros que faltan", "Add_all_missing_override_modifiers_95162": "Agregar todos los modificadores \"override\" que faltan", - "Add_all_missing_parameters_95190": "Agregar todos los parámetros que faltan", "Add_all_missing_properties_95166": "Agregar todas las propiedades que faltan", "Add_all_missing_return_statement_95114": "Agregar todas las instrucciones \"return\" que faltan", "Add_all_missing_super_calls_95039": "Agregar todas las llamadas a super que faltan", - "Add_all_missing_type_annotations_90067": "Agregar todas las anotaciones de tipo que faltan", - "Add_all_optional_parameters_95193": "Agregar todos los parámetros opcionales", - "Add_annotation_of_type_0_90062": "Agregar anotación de tipo '{0}'", "Add_async_modifier_to_containing_function_90029": "Agregar el modificador async a la función contenedora", "Add_await_95083": "Agregar \"await\"", "Add_await_to_initializer_for_0_95084": "Agregar \"await\" al inicializador de \"{0}\"", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Agregar inicializadores a todas las propiedades sin inicializar", "Add_missing_attributes_95167": "Agregar los atributos que faltan", "Add_missing_call_parentheses_95067": "Agregar los paréntesis de llamada que faltan", - "Add_missing_comma_for_object_member_completion_0_95187": "Agregue la coma que falta para el '{0}' de finalización del miembro del objeto.", "Add_missing_enum_member_0_95063": "Agregar el miembro de enumeración \"{0}\" que falta", "Add_missing_function_declaration_0_95156": "Agregar la declaración de función \"{0}\" que falta", "Add_missing_new_operator_to_all_calls_95072": "Agregar el operador \"new\" que falta a todas las llamadas", "Add_missing_new_operator_to_call_95071": "Agregar el operador \"new\" que falta a la llamada", - "Add_missing_parameter_to_0_95188": "Agregar parámetro que falta a '{0}'", - "Add_missing_parameters_to_0_95189": "Agregar parámetros que faltan a '{0}'", "Add_missing_properties_95165": "Agregar propiedades que faltan", "Add_missing_super_call_90001": "Agregar la llamada a \"super()\" que falta", "Add_missing_typeof_95052": "Agregar el elemento \"typeof\" que falta", "Add_names_to_all_parameters_without_names_95073": "Agregar nombres a todos los parámetros sin nombres", - "Add_optional_parameter_to_0_95191": "Agregar parámetro opcional a \"{0}\"", - "Add_optional_parameters_to_0_95192": "Agregar parámetros opcionales a \"{0}\"", "Add_or_remove_braces_in_an_arrow_function_95058": "Agregar o quitar llaves en una función de flecha", "Add_override_modifier_95160": "Agregar el modificador \"override\"", "Add_parameter_name_90034": "Agregar un nombre de parámetro", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Agregar un calificador a todas las variables no resueltas que coincidan con un nombre de miembro", - "Add_resolution_mode_import_attribute_95196": "Agregar atributo de importación \"resolution-mode\"", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Agregar el atributo de importación \"resolution-mode\" a todas las importaciones de solo tipo que lo necesiten", - "Add_return_type_0_90063": "Agregar tipo de valor devuelto '{0}'", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Agregue satisfacciones y una aserción de tipo a esta expresión (satisfacciones T como T) para que el tipo sea explícito.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Agregar satisfacciones y una aserción de tipo insertado con '{0}'", "Add_to_all_uncalled_decorators_95044": "Agregar \"()\" a todos los elementos Decorator a los que no se llama", "Add_ts_ignore_to_all_error_messages_95042": "Agregar \"@ts-ignore\" a todos los mensajes de error", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Agregue \"indefinido\" a un tipo cuando se acceda mediante un índice.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Permitir las importaciones predeterminadas de los módulos sin exportación predeterminada. Esto no afecta a la emisión de código, solo a la comprobación de tipos.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Permita \"importar x desde y\" cuando un módulo no tiene una exportación predeterminada.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Permita la importación de funciones de ayuda desde tslib una vez por proyecto, en lugar de incluirlas por archivo.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Permitir que las importaciones incluyan extensiones de archivo TypeScript. Requiere que se establezca \"--moduleResolution bundler\" y \"--noEmit\" o \"--emitDeclarationOnly\".", "Allow_javascript_files_to_be_compiled_6102": "Permitir que se compilen los archivos de JavaScript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Permita que varias carpetas se consideren como una al resolver módulos.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "El nombre de archivo \"{0}\" ya incluido es diferente del nombre de archivo \"{1}\" solo en el uso de mayúsculas y minúsculas.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "No se proporcionó ningún argumento que coincida con este patrón de enlace.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un operando aritmético debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Una función de flecha no puede tener un parámetro \"this\".", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Una función o un método de asincronía en ES5 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Una función o un método de asincronía en ES5/ES3 requiere el constructor \"Promise\". Asegúrese de que tiene una declaración para el constructor \"Promise\" o incluya \"ES2015\" en su opción \"--lib\".", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Una función o un método asincrónico debe devolver un \"Promise\". Asegúrese de que tiene una declaración \"Promise\" o incluya \"ES2015\" en la opción \"--lib\".", "An_async_iterator_must_have_a_next_method_2519": "Un iterador de asincronía debe tener un método \"next()\".", "An_element_access_expression_should_take_an_argument_1011": "Una expresión de acceso de elemento debe admitir un argumento.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Una declaración de exportación solo se puede usar en el nivel superior de un módulo.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Una declaración de exportación solo se puede usar en el nivel superior de un espacio de nombres o módulo.", "An_export_declaration_cannot_have_modifiers_1193": "Una declaración de exportación no puede tener modificadores.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Una declaración \"export =\" debe hacer referencia a un valor real cuando \"verbatimModuleSyntax\" está habilitado, pero '{0}' se resuelve en una declaración de solo tipo.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Una declaración 'export =' debe hacer referencia a un valor cuando 'verbatimModuleSyntax' está habilitado, pero '{0}' solo hace referencia a un tipo.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Una declaración \"export default\" debe hacer referencia a un valor real cuando \"verbatimModuleSyntax\" está habilitado, pero '{0}' se resuelve en una declaración de solo tipo.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Una declaración 'export default' debe hacer referencia a un valor cuando 'verbatimModuleSyntax' está habilitado, pero '{0}' solo hace referencia a un tipo.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "No se puede probar la veracidad de una expresión de tipo \"void\".", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Un valor de escape Unicode extendido debe estar entre 0x0 y 0x10FFFF, incluidos.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Un identificador o una palabra clave no puede seguir inmediatamente a un literal numérico.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Una implementación no se puede declarar en contextos de ambiente.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias de importación no puede hacer referencia a una declaración que se exportó mediante \"export type\".", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias de importación no puede hacer referencia a una declaración que se importó mediante \"import type\".", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Un alias de importación no se puede resolver en una declaración de tipo o solo tipo cuando \"verbatimModuleSyntax\" está habilitado.", "An_import_alias_cannot_use_import_type_1392": "Un alias de importación no puede usar \"import type\"", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Una declaración de importación solo se puede usar en el nivel superior de un módulo.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Una declaración de importación solo se puede usar en el nivel superior de un espacio de nombres o módulo.", "An_import_declaration_cannot_have_modifiers_1191": "Una declaración de importación no puede tener modificadores.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Una ruta de acceso de importación solo puede terminar con una extensión '{0}' cuando \"allowImportingTsExtensions\" está habilitado.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Una ruta de acceso de importación no puede terminar con una extensión '{0}'. Puede importar '{1}' en su lugar.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Una signatura de índice no puede tener un parámetro rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Una signatura de índice no puede finalizar con una coma.", "An_index_signature_must_have_a_type_annotation_1021": "Una signatura de índice debe tener una anotación de tipo.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Una expresión de creación de una instancia no puede ir seguida de un acceso a una propiedad.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Una interfaz solo puede extender un identificador o nombre completo con argumentos de tipo opcional.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Una interfaz solo puede extender un tipo de objeto o una intersección de tipos de objeto con miembros conocidos estáticamente.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Una interfaz no puede extender un tipo primitivo como '{0}'. Solo puede extender otros tipos de objeto con nombre.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Una interfaz no puede extender un tipo primitivo como \"{0}\"; una interfaz solo puede extender tipos y clases con nombre", "An_interface_property_cannot_have_an_initializer_1246": "Una propiedad de interfaz no puede tener un inicializador.", "An_iterator_must_have_a_next_method_2489": "Un iterador debe tener un método \"next()\".", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Se necesita una pragma @jsxFrag cuando se usa una pragma @jsx con fragmentos de JSX.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un literal de objeto no puede tener varias propiedades con el mismo nombre.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un literal de objeto no puede tener una propiedad y un descriptor de acceso con el mismo nombre.", "An_object_member_cannot_be_declared_optional_1162": "Un miembro de objeto no se puede declarar como opcional.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "El método '[Symbol.hasInstance]' de un objeto debe devolver un valor booleano para que se use en el lado derecho de una expresión \"instanceof\".", "An_optional_chain_cannot_contain_private_identifiers_18030": "Una cadena opcional no puede contener identificadores privados.", "An_optional_element_cannot_follow_a_rest_element_1266": "Un elemento opcional no puede seguir a un elemento rest.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Este contenedor reemplaza un valor externo de \"this\".", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Una signatura de sobrecarga no se puede declarar como generador.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "No se admite una expresión unaria con el operador '{0}' en el lado izquierdo de una expresión de exponenciación. Considere la posibilidad de incluir la expresión entre paréntesis.", "Annotate_everything_with_types_from_JSDoc_95043": "Anotar todo con tipos de JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Anotar tipos de propiedades de función expando en un espacio de nombres", "Annotate_with_type_from_JSDoc_95009": "Anotar con tipo de JSDoc", "Another_export_default_is_here_2753": "Aquí hay otro valor export default.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Cualquier propiedad Unicode que posiblemente coincida con más de un carácter solo está disponible cuando se establece la marca Unicode Sets (v).", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Todo lo que posiblemente coincida con más de un carácter no es válido dentro de una clase de caracteres negada.", "Are_you_missing_a_semicolon_2734": "¿Falta un punto y coma?", "Argument_expression_expected_1135": "Se esperaba una expresión de argumento.", "Argument_for_0_option_must_be_Colon_1_6046": "El argumento para la opción \"{0}\" debe ser {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "El argumento de tipo '{0}' no se puede asignar al parámetro de tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" a los tipos de propiedades del destino.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "No se proporcionaron argumentos para el parámetro rest \"{0}\".", "Array_element_destructuring_pattern_expected_1181": "Se esperaba un patrón de desestructuración de elementos de matriz.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Las matrices con elementos spread no se pueden inferir con --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Las aserciones requieren que todos los nombres del destino de llamada se declaren con una anotación de tipo explícito.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Las aserciones requieren que el destino de llamada sea un identificador o un nombre calificado.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "No se admite la asignación de propiedades a funciones sin declararlas con --isolatedDeclarations. Agregue una declaración explícita para las propiedades asignadas a esta función.", "Asterisk_Slash_expected_1010": "Se esperaba \"*/\".", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Al menos un descriptor de acceso debe tener una anotación de tipo explícita con --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Los aumentos del ámbito global solo pueden anidarse directamente en módulos externos o en declaraciones de módulos de ambiente.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Los aumentos del ámbito global deben tener el modificador 'declare', a menos que aparezcan en un contexto de ambiente.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La detección automática de escritura está habilitada en el proyecto '{0}'. Se va a ejecutar un paso de resolución extra para el módulo '{1}' usando la ubicación de caché '{2}'.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "La expresión Await no se puede usar dentro de un bloque estático de clase.", "BUILD_OPTIONS_6919": "OPCIONES DE COMPILACIÓN", "Backwards_Compatibility_6253": "Compatibilidad con versiones anteriores", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Las expresiones de clase base no pueden hacer referencia a parámetros de tipo de clase.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Los literales BigInt no están disponibles cuando el destino es anterior a ES2020.", "Binary_digit_expected_1177": "Se esperaba un dígito binario.", "Binding_element_0_implicitly_has_an_1_type_7031": "El elemento de enlace '{0}' tiene un tipo '{1}' implícito.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Los elementos de enlace no se pueden exportar directamente con --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Variable con ámbito de bloque '{0}' usada antes de su declaración.", "Build_a_composite_project_in_the_working_directory_6925": "Compile un proyecto compuesto en el directorio de trabajo.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Compilar todos los proyectos, incluidos los que aparecen actualizados.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Generar uno o varios proyectos y sus dependencias, si no están actualizados", "Build_option_0_requires_a_value_of_type_1_5073": "La opción de compilación \"{0}\" requiere un valor de tipo {1}.", "Building_project_0_6358": "Compilando el proyecto \"{0}\"...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Se crea una instancia de los iteradores integrados con un tipo 'TReturn' de 'undefined' en lugar de 'any'.", "COMMAND_LINE_FLAGS_6921": "MARCAS DE LÍNEA DE COMANDOS", "COMMON_COMMANDS_6916": "COMANDOS COMUNES", "COMMON_COMPILER_OPTIONS_6920": "OPCIONES COMUNES DEL COMPILADOR", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Los tipos de valor devuelto de la signatura de llamada \"{0}\" y \"{1}\" son incompatibles.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signatura de llamada, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto \"any\".", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Las signaturas de llamada sin argumentos tienen los tipos de valor devuelto \"{0}\" y \"{1}\" no compatibles.", + "Call_target_does_not_contain_any_signatures_2346": "El destino de llamada no contiene signaturas.", "Can_only_convert_logical_AND_access_chains_95142": "Solo pueden convertirse las cadenas lógicas Y de acceso", "Can_only_convert_named_export_95164": "Solo se pueden convertir exportaciones con nombre.", "Can_only_convert_property_with_modifier_95137": "Solo se puede convertir la propiedad con el modificador", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Solo se pueden convertir concatenaciones de cadenas y literales de cadena", + "Can_only_convert_string_concatenation_95154": "Solo puede convertirse la concatenación de cadenas", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "No se puede acceder a \"{0}.{1}\" porque \"{0}\" es un tipo, no un espacio de nombres. ¿Su intención era recuperar el tipo de la propiedad \"{1}\" en \"{0}\" con \"{0}[\"{1}\"]\"?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "No se puede obtener acceso a '{0}' desde otro archivo sin calificación cuando '{1}' está habilitado. Use \"{2}\" en su lugar.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "No se puede tener acceso a las enumeraciones const de ambiente cuando '{0}' está habilitado.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "No se puede acceder a las enumeraciones const de ambiente cuando se proporciona la marca \"--isolatedModules\".", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "No se puede asignar un tipo de constructor '{0}' a un tipo de constructor '{1}'.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "No se puede asignar un tipo de constructor abstracto a uno no abstracto.", "Cannot_assign_to_0_because_it_is_a_class_2629": "No se puede asignar a \"{0}\" porque es una clase.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "No se encuentra la definición lib para \"{0}\".", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "No se encuentra la definición lib para \"{0}\". ¿Quiso decir \"{1}\"?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "No se encuentra el módulo \"{0}\". Considere la posibilidad de usar \"--resolveJsonModule\" para importar el módulo con la extensión \".json\".", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "No se encuentra el módulo “{0}”. ¿Pretendía establecer la opción “moduleResolution” en “nodenext” o agregar alias a la opción “paths”?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "No se encuentra el módulo \"{0}\". ¿Pretendía establecer la opción \"moduleResolution\" en \"node\" o agregar alias a la opción \"paths\"?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "No se encuentra el módulo \"{0}\" ni sus declaraciones de tipos correspondientes.", "Cannot_find_name_0_2304": "No se encuentra el nombre '{0}'.", "Cannot_find_name_0_Did_you_mean_1_2552": "No se encuentra el nombre \"{0}\". ¿Quería decir \"{1}\"?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "No se puede encontrar el nombre \"{0}\". ¿Ha querido escribir esto en una función asincrónica?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "No se encuentra el nombre \"{0}\". ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a \"{1}\" o posterior.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "No se encuentra el nombre \"{0}\". ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" para incluir \"dom\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "No se encuentra el nombre '{0}'. ¿Necesita instalar definiciones de tipo para Bun? Pruebe `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_2868": "No se encuentra el nombre '{0}'. ¿Necesita instalar definiciones de tipo para Bun? Pruebe \"npm i --save-dev @types/bun\" y agregue \"bun\" al campo de tipos de tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para un ejecutor de pruebas? Pruebe \"npm i --save-dev @types/jest\" o \"npm i --save-dev @types/mocha\".", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para un test runner? Pruebe \"npm i --save-dev @types/jest\" o \"npm i --save-dev @types/mocha\" y, a continuación, agregue \"jest\" o \"mocha\" al campo de tipos del archivo tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "No se encuentra el nombre \"{0}\". ¿Necesita instalar definiciones de tipo para jQuery? Pruebe \"npm i --save-dev @types/jquery\".", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero la desestructuración de matriz siempre enviará \"{0}\".", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero la propagación de matriz siempre enviará \"{0}\".", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "No se puede iterar el valor porque el método \"next\" de su iterador espera el tipo \"{1}\", pero for-of siempre enviará \"{0}\".", - "Cannot_move_statements_to_the_selected_file_95183": "No se pueden mover instrucciones al archivo seleccionado", - "Cannot_move_to_file_selected_file_is_invalid_95179": "No se puede mover al archivo, el archivo seleccionado no es válido", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "No se puede anteponer el proyecto \"{0}\" porque no se ha establecido \"outFile\".", "Cannot_read_file_0_5083": "No se puede leer el archivo \"{0}\".", "Cannot_read_file_0_Colon_1_5012": "No se puede leer el archivo \"{0}\": {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "No se puede volver a declarar la variable con ámbito de bloque '{0}'.", "Cannot_redeclare_exported_variable_0_2323": "No se puede volver a declarar la variable '{0}' exportada.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "No se puede volver a declarar el identificador \"{0}\" en la cláusula catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "No se puede iniciar una llamada de función en una anotación de tipo.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "No se puede actualizar la salida del proyecto \"{0}\" porque se produjo un error al leer el archivo \"{1}\".", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "JSX no se puede usar si no se proporciona la marca \"--jsx\".", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "No se puede usar 'export import' en un tipo o espacio de nombres de solo tipo cuando '{0}' está habilitado.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "No se puede utilizar “exportar importar” en un espacio de nombres de tipo o solo de tipo cuando se proporciona la marca \"--isolatedModules\".", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "No se pueden usar importaciones, exportaciones o aumentos de módulos si el valor de \"--module\" es \"none\".", "Cannot_use_namespace_0_as_a_type_2709": "No se puede utilizar el espacio de nombres '{0}' como un tipo.", "Cannot_use_namespace_0_as_a_value_2708": "No se puede utilizar el espacio de nombres '{0}' como un valor.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Cambiar \"extends\" a \"implements\"", "Change_spelling_to_0_90022": "Cambiar la ortografía a \"{0}\"", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Compruebe las propiedades de clase declaradas pero no establecidas en el constructor.", - "Check_side_effect_imports_6806": "Compruebe las importaciones de efectos secundarios.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Compruebe que los argumentos de los métodos 'bind', 'call' y 'apply' coinciden con la función original.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Comprobando si '{0}' es el prefijo coincidente más largo para '{1}' - '{2}'.", "Circular_definition_of_import_alias_0_2303": "Definición circular del alias de importación '{0}'.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "La declaración de clase no puede implementar la lista de sobrecarga para '{0}'.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Las declaraciones de clase no pueden tener más de una etiqueta \"@augments\" o \"@extends\".", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Los elementos Decorator de una clase no se pueden usar con un identificador privado estático. Pruebe a quitar el elemento Decorator experimental.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "El campo de clase '{0}' definido por la clase primaria no es accesible en la clase secundaria a través de super.", "Class_name_cannot_be_0_2414": "El nombre de la clase no puede ser \"{0}\".", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "El nombre de clase no puede ser \"Object\" cuando el destino es ES5 con un módulo {0}.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "El lado estático de la clase '{0}' extiende el lado estático de la clase base '{1}' de forma incorrecta.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Opciones de la línea de comandos", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compila el proyecto teniendo en cuenta la ruta de acceso a su archivo de configuración o a una carpeta con un archivo \"tsconfig.json\".", "Compiler_Diagnostics_6251": "Diagnóstico del compilador", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "No se puede proporcionar una cadena vacía a la opción del compilador '{0}'.", "Compiler_option_0_expects_an_argument_6044": "La opción '{0}' del compilador espera un argumento.", "Compiler_option_0_may_not_be_used_with_build_5094": "La opción \"--{0}\" del compilador no se puede usar con \"--build\".", "Compiler_option_0_may_only_be_used_with_build_5093": "La opción \"--{0}\" del compilador solo se puede usar con \"--build\".", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Los proyectos compuestos no pueden deshabilitar la emisión de declaración.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Los proyectos compuestos no pueden deshabilitar la compilación incremental.", "Computed_from_the_list_of_input_files_6911": "Calculado a partir de la lista de archivos de entrada", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Las propiedades calculadas deben ser literales de número o cadena, variables o expresiones de puntos con --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "No se permiten nombres de propiedad calculada en las enumeraciones.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Los nombres de propiedad calculada en literales de clase u objeto no se pueden inferir con --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "No se permiten valores calculados en una enumeración que tiene miembros con valores de cadena.", "Concatenate_and_emit_output_to_single_file_6001": "Concatenar y emitir la salida en un único archivo.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Condiciones que se establecerán además de los valores predeterminados específicos de la resolución al resolver las importaciones.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Se encontraron definiciones de '{0}' en conflicto en '{1}' y '{2}'. Puede instalar una versión específica de esta biblioteca para resolver el conflicto.", "Conflicts_are_in_this_file_6201": "Hay conflictos en este archivo.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Considere agregar un modificador 'declare' a esta clase.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Los tipos de valor devuelto de la signatura de construcción \"{0}\" y \"{1}\" son incompatibles.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Convertir \"{0}\" en el tipo de objeto asignado", "Convert_all_const_to_let_95102": "Convertir todo \"const\" en \"let\"", "Convert_all_constructor_functions_to_classes_95045": "Convertir todas las funciones de constructor en clases", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertir todas las importaciones no usadas como valor para las importaciones solo de tipo", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertir todos los caracteres no válidos al código de entidad HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertir todos los tipos reexportados en exportaciones solo de tipo", "Convert_all_require_to_import_95048": "Convertir todas las repeticiones de \"require\" en \"import\"", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Convertir todo en literales numéricos bigint", "Convert_all_to_default_imports_95035": "Convertir todo en importaciones predeterminadas", "Convert_all_type_literals_to_mapped_type_95021": "Convertir todos los literales de tipo en un tipo asignado", - "Convert_all_typedef_to_TypeScript_types_95177": "Convertir typedef en todos los tipos TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Convertir una función de flecha o una expresión de función", "Convert_const_to_let_95093": "Convertir \"const\" en \"let\"", "Convert_default_export_to_named_export_95061": "Convertir una exportación predeterminada en exportación con nombre", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Convertir en expresión de cadena opcional", "Convert_to_template_string_95096": "Convertir en cadena de plantilla", "Convert_to_type_only_export_1364": "Convertir en exportación solo de tipo", - "Convert_typedef_to_TypeScript_type_95176": "Convertir typedef en tipo TypeScript.", + "Convert_to_type_only_import_1373": "Convertir en importación solo de tipo", "Corrupted_locale_file_0_6051": "Archivo de configuración regional {0} dañado.", "Could_not_convert_to_anonymous_function_95153": "No se puede convertir a una función anónima", "Could_not_convert_to_arrow_function_95151": "No se puede convertir a una función de flecha", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "No se ha encontrado el nombre \"{0}\". ¿Quiso decir \"{1}\"?", "Could_not_find_namespace_import_or_named_imports_95132": "No se pudo encontrar la importación del espacio de nombres ni las importaciones con nombre", "Could_not_find_property_for_which_to_generate_accessor_95135": "No se pudo encontrar la propiedad para la que se debe generar el descriptor de acceso", - "Could_not_find_variable_to_inline_95185": "No se pudo encontrar la variable para insertar.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "No se pudo resolver la ruta de acceso \"{0}\" con las extensiones: {1}.", "Could_not_write_file_0_Colon_1_5033": "No se puede escribir en el archivo \"{0}\": \"{1}\".", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Cree archivos de mapa de origen para los archivos JavaScript emitidos.", "Create_sourcemaps_for_d_ts_files_6614": "Cree mapas de origen para archivos d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crea un archivo tsconfig.json con la configuración recomendada en el directorio de trabajo.", "DIRECTORY_6038": "DIRECTORIO", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "No se permiten secuencias de escape decimales ni referencias inversas en una clase de caracteres.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "No se permiten decimales con ceros iniciales.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "La declaración aumenta una declaración en otro archivo. Esta operación no se puede serializar.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "La emisión de declaración para este archivo requiere conservar esta importación para aumentos. Esto no se admite con --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "La emisión de declaración para este archivo requiere el uso del nombre privado \"{0}\" del módulo \"{1}\". Una anotación de tipo explícito puede desbloquear la emisión de declaración.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "La emisión de declaración para este parámetro requiere agregar implícitamente un elemento no definido a su tipo. Esto no se admite con --isolatedDeclarations.", "Declaration_expected_1146": "Se esperaba una declaración.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Conflictos entre nombres de declaración con el identificador global '{0}' integrado.", "Declaration_or_statement_expected_1128": "Se esperaba una declaración o una instrucción.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Declarar la propiedad estática \"{0}\"", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "El tipo de valor devuelto de la función Decorator \"{0}\" no se puede asignar al tipo \"{1}\".", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "El tipo de valor devuelto de la función Decorator es \"{0}\" pero se espera que sea \"void\" o \"any\".", - "Decorator_used_before_export_here_1486": "El elemento Decorator se usa antes de \"exportar\" aquí.", "Decorators_are_not_valid_here_1206": "Los elementos Decorator no son válidos aquí.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "No se pueden aplicar elementos Decorator a varios descriptores de acceso get o set con el mismo nombre.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Los elementos Decorator no pueden aparecer después de \"export\" o \"export default\" si también aparecen antes de \"export\".", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Los elementos Decorator no se pueden aplicar a los parámetros \"this\".", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Los decoradores deben preceder al nombre y a todas las palabras clave de las declaraciones de propiedad.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Variables de cláusula catch predeterminadas como \"unknown\" en lugar de \"any\".", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "La exportación predeterminada del módulo tiene o usa el nombre privado '{0}'.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Las exportaciones predeterminadas no se pueden inferir con --isolatedDeclarations.", "Default_library_1424": "Biblioteca predeterminada", "Default_library_for_target_0_1425": "Biblioteca predeterminada para el destino \"{0}\"", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Las definiciones de los identificadores siguientes entran en conflicto con las de otro archivo: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Deshabilite el borrado de declaraciones \"enumeración const\" en el código generado.", "Disable_error_reporting_for_unreachable_code_6603": "Deshabilite los informes de errores para los códigos inaccesibles.", "Disable_error_reporting_for_unused_labels_6604": "Deshabilite los informes de errores para etiquetas sin usar.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Deshabilitar la comprobación completa de tipos (solo se notificarán los errores críticos de análisis y emisión).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Deshabilite la generación de funciones auxiliares personalizadas como \"__extends\" en la salida compilada.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Deshabilite la inclusión de cualquier archivo de biblioteca, incluido el archivo predeterminado lib.d.ts.", "Disable_loading_referenced_projects_6235": "Deshabilite la carga de proyectos a los que se hace referencia.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "No permita que ningún \"import\", \"require\" o \"\" amplíe el número de archivos que TypeScript debe agregar a un proyecto.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "No permitir referencias al mismo archivo con un uso incoherente de mayúsculas y minúsculas.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "No agregar módulos importados ni referencias con triple barra diagonal a la lista de archivos compilados.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "No permitir construcciones en tiempo de ejecución que no formen parte de ECMAScript.", "Do_not_emit_comments_to_output_6009": "No emitir comentarios en la salida.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "No emitir declaraciones para el código que tiene una anotación \"@internal\".", "Do_not_emit_outputs_6010": "No emitir salidas.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "No notificar los errores del código inaccesible.", "Do_not_report_errors_on_unused_labels_6074": "No notificar los errores de las etiquetas no usadas.", "Do_not_resolve_the_real_path_of_symlinks_6013": "No resolver la ruta de acceso real de los vínculos simbólicos.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "No transforme ni evite ninguna importación o exportación no marcada como solo de tipo, asegurándose de que se escriben en el formato del archivo de salida en función de la configuración \"module\".", "Do_not_truncate_error_messages_6165": "No truncar los mensajes de error.", "Duplicate_function_implementation_2393": "Implementación de función duplicada.", "Duplicate_identifier_0_2300": "Identificador '{0}' duplicado.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Signatura de índice duplicada para el tipo \"{0}\".", "Duplicate_label_0_1114": "Etiqueta \"{0}\" duplicada.", "Duplicate_property_0_2718": "Propiedad \"{0}\" duplicada.", - "Duplicate_regular_expression_flag_1500": "Marca de expresión regular duplicada.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "El especificador de la importación dinámica debe ser de tipo \"string\", pero aquí tiene el tipo \"{0}\".", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Las importaciones dinámicas solo se admiten cuando la marca \"--módulo\" está establecida en \"es2020\", \"es2022\", \"esnext\", \"commonjs\", \"amd\", \"system\", \"umd\", \"node16\", \"node18\" o \"nodenext\".", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Las importaciones dinámicas solo pueden aceptar un especificador de módulo y un set de atributos opcional como argumentos", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Las importaciones dinámicas solo admiten un segundo argumento cuando la opción \"--module\" está establecida en \"esnext\", \"node16\", \"node18\", \"nodenext\" o \"preserve\".", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "No se permite la sintaxis ESM en un módulo CommonJS cuando \"module\" está establecido en \"preserve\".", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "No se permite la sintaxis ESM en un módulo CommonJS cuando \"verbatimModuleSyntax\" está habilitado.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Cada declaración de \"{0}.{1}\" difiere en su valor, donde se esperaba '{2}' pero se proporcionó '{3}'.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Las importaciones dinámicas solo se admiten cuando la marca \"--módulo\" está establecida en \"es2020\", \"es2022\", \"esnext\", \"commonjs\", \"amd\", \"system\", \"umd\", \"node16\" o \"nodenext\".", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Las importaciones dinámicas solo pueden aceptar un especificador de módulo y una aserción opcional como argumentos", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Las importaciones dinámicas solo admiten un segundo argumento cuando la opción \"--module\" está establecida en \"esnext\", \"node16\" o \"nodenext\".", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Cada miembro del tipo de unión \"{0}\" tiene signaturas de construcción, pero ninguna de ellas es compatible entre sí.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Cada miembro del tipo de unión \"{0}\" tiene signaturas, pero ninguna de ellas es compatible entre sí.", "Editor_Support_6249": "Compatibilidad con el editor", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Habilite el informe de errores en los archivos JavaScript de comprobación de tipos.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Habilite el informe de errores cuando una variable local no se lea.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Habilite el informe de errores cuando a 'this' se le asigna el tipo 'any'.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Habilite la compatibilidad experimental con decoradores experimentales heredados.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Habilite la importación de archivos con cualquier extensión, siempre que haya un archivo de declaración presente.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Habilite un soporte experimental para los elementos Decorator borradores de la fase 2 de TC39.", "Enable_importing_json_files_6689": "Habilite la importación de archivos .json.", - "Enable_lib_replacement_6808": "Habilite el reemplazo de bibliotecas.", "Enable_project_compilation_6302": "Habilitar la compilación de proyecto", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Habilite los métodos estrictos \"bind\", \"call\" y \"apply\" en las funciones.", "Enable_strict_checking_of_function_types_6186": "Habilite la comprobación estricta de los tipos de función.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Verifique el uso correcto de mayúsculas y minúsculas en las importaciones.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Asegúrese de que cada archivo pueda transpilarse con seguridad sin depender de otras importaciones.", "Ensure_use_strict_is_always_emitted_6605": "Asegúrese de que siempre se emite \"use strict\".", - "Entering_conditional_exports_6413": "Entrando en exportaciones condicionales.", "Entry_point_for_implicit_type_library_0_1420": "Punto de entrada para la biblioteca de tipos implícitos \"{0}\"", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Punto de entrada para la biblioteca de tipos implícitos \"{0}\" con el valor packageId \"{1}\"", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Punto de entrada de la biblioteca de tipos \"{0}\" que se especifica en compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Las declaraciones de enumeración solo se pueden combinar con otras declaraciones de enumeración o de espacio de nombres.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Todas las declaraciones de enumeración deben ser de tipo const o no const.", "Enum_member_expected_1132": "Se esperaba un miembro de enumeración.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "El miembro de enumeración que sigue a un miembro numérico que no sea literal debe tener un inicializador cuando \"isolatedModules\" está habilitado.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Los inicializadores de miembros de enumeración deben poder calcularse sin referencias a símbolos externos con --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "El miembro de enumeración debe tener un inicializador.", "Enum_name_cannot_be_0_2431": "El nombre de la enumeración no puede ser \"{0}\".", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "El tipo de enumeración \"{0}\" tiene miembros con inicializadores que no son literales.", "Errors_Files_6041": "Archivos de errores", - "Escape_sequence_0_is_not_allowed_1488": "No se permite la secuencia de escape \"{0}\".", "Examples_Colon_0_6026": "Ejemplos: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Complejidad excesiva al comparar los tipos '{0}' y '{1}'.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Profundidad excesiva de la pila al comparar los tipos '{0}' y '{1}'.", - "Exiting_conditional_exports_6416": "Saliendo de las exportaciones condicionales.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Se esperaban argumentos de tipo {0}-{1}; proporciónelos con una etiqueta \"@extends\".", "Expected_0_arguments_but_got_1_2554": "Se esperaban {0} argumentos, pero se obtuvieron {1}.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Se esperaban {0} argumentos, pero se obtuvo un total de {1}. ¿Olvidó incluir \"void\" en el argumento de tipo para \"Promise\"?", "Expected_0_type_arguments_but_got_1_2558": "Se esperaban {0} argumentos de tipo, pero se obtuvieron {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Se esperaban argumentos de tipo {0}; proporciónelos con una etiqueta \"@extends\".", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Se esperaba 1 argumento, pero se obtuvo 0. \"new Promise()\" necesita una pista de JSDoc para producir un \"resolve\" que pueda llamarse sin argumentos.", - "Expected_a_Unicode_property_name_1523": "Se esperaba un nombre de propiedad Unicode.", - "Expected_a_Unicode_property_name_or_value_1527": "Se esperaba un valor o un nombre de propiedad Unicode.", - "Expected_a_Unicode_property_value_1525": "Se esperaba un valor de propiedad Unicode.", - "Expected_a_capturing_group_name_1514": "Se esperaba un nombre de grupo de captura.", - "Expected_a_class_set_operand_1520": "Se esperaba un operando de conjunto de clases.", "Expected_at_least_0_arguments_but_got_1_2555": "Se esperaban al menos {0} argumentos, pero se obtuvieron {1}.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Se esperaba la etiqueta de cierre JSX correspondiente de '{0}'.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Se esperaba la etiqueta de cierre correspondiente para el fragmento de JSX.", "Expected_for_property_initializer_1442": "Se esperaba '=' para el inicializador de propiedades.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Se esperaba que el tipo del campo \"{0}\" en \"package.json\" fuese \"{1}\", pero se obtuvo \"{2}\".", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "La compatibilidad experimental con los decoradores es una característica que está sujeta a cambios en una próxima versión. Establezca la opción \"experimentalDecorators\" en \"tsconfig\" o \"jsconfig\" para quitar esta advertencia.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Tipo de resolución de módulo especificado de forma explícita: '{0}'.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "No se puede realizar la exponenciación en los valores \"bigint\", a menos que la opción \"target\" esté establecida en \"es2016\" o posterior.", "Export_0_from_module_1_90059": "Exportar '{0}' desde el módulo '{1}'", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variable exportada '{0}' tiene o usa el nombre privado '{1}'.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "En aumentos de módulos, no se admiten exportaciones ni asignaciones de exportación.", "Expression_expected_1109": "Se esperaba una expresión.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "La expresión debe ir entre paréntesis para usarse como un decorador.", "Expression_or_comma_expected_1137": "Se esperaba una expresión o una coma.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "La expresión genera un tipo de tupla demasiado grande para representarlo.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "La expresión genera un tipo de unión demasiado complejo para representarlo.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "La expresión se resuelve en el valor \"_super\" que el compilador usa para capturar una referencia a la clase base.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "La expresión se resuelve en una declaración de variable \"_newTarget\" que el compilador usa para capturar la referencia de la propiedad Meta \"new.target\".", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "La expresión se resuelve en la declaración de variable \"_this\" que el compilador usa para capturar una referencia \"this\".", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "No se puede inferir el tipo de expresión con --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "La cláusula Extends no puede contener una expresión con --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Extiende la cláusula para el tipo deducido '{0}', tiene o usa el nombre privado '{1}'.", - "Extract_base_class_to_variable_90064": "Extraer clase base en variable", - "Extract_binding_expressions_to_variable_90066": "Extraer expresiones de enlace en variable", "Extract_constant_95006": "Extraer la constante", - "Extract_default_export_to_variable_90065": "Extraer exportación predeterminada a la variable", "Extract_function_95005": "Extraer la función", "Extract_to_0_in_1_95004": "Extraer a {0} en {1}", "Extract_to_0_in_1_scope_95008": "Extraer a {0} en el ámbito {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Extraer a la interfaz", "Extract_to_type_alias_95078": "Extraer al alias de tipo", "Extract_to_typedef_95079": "Extraer a typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Extraer en variable y reemplazar por “{0} as typeof {0}”", "Extract_type_95077": "Extraer el tipo", "FILE_6035": "ARCHIVO", "FILE_OR_DIRECTORY_6040": "ARCHIVO O DIRECTORIO", - "Failed_to_find_peerDependency_0_6283": "No se ha podido encontrar peerDependency “{0}”.", - "Failed_to_resolve_under_condition_0_6415": "No se pudo resolver en la condición “{0}”.", + "Failed_to_parse_file_0_Colon_1_5014": "Error al analizar el archivo '{0}': {1}.", "Fallthrough_case_in_switch_7029": "Caso de Fallthrough en instrucción switch.", "File_0_does_not_exist_6096": "El archivo '{0}' no existe.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "El archivo \"{0}\" no existe de acuerdo con las búsquedas en caché anteriores.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "El archivo '{0}' existe. Utilícelo como resultado de resolución de nombres.", "File_0_exists_according_to_earlier_cached_lookups_6239": "El archivo \"{0}\" existe de acuerdo con las búsquedas en caché anteriores.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "El archivo “{0}” existe. Utilícelo como resultado de resolución de nombres.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "El archivo \"{0}\" tiene una extensión no compatible. Las únicas extensiones compatibles son {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "El archivo \"{0}\" tiene una extensión no admitida, así que se omitirá.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "\"{0}\" es un archivo JavaScript. ¿Pretendía habilitar la opción \"allowJs\"?", "File_0_is_not_a_module_2306": "El archivo '{0}' no es un módulo.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "El archivo \"{0}\" no está en la lista de archivos del proyecto \"{1}\". Los proyectos deben enumerar todos los archivos o usar un patrón \"include\".", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "El archivo '{0}' no está en \"rootDir\" '{1}'. Se espera que \"rootDir\" contenga todos los archivos de origen.", "File_0_not_found_6053": "Archivo '{0}' no encontrado.", "File_Management_6245": "Administración de archivos", - "File_appears_to_be_binary_1490": "Parece que el archivo es binario.", "File_change_detected_Starting_incremental_compilation_6032": "Se detectó un cambio de archivo. Iniciando la compilación incremental...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "El archivo es un módulo CommonJS porque “{0}” no tiene el campo “type”", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "El archivo es el módulo CommonJS porque “{0}” tiene el campo “type” cuyo valor no es “module”.", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "El archivo es la salida del origen de referencia del proyecto \"{0}\".", "File_is_source_from_referenced_project_specified_here_1416": "El archivo es el origen del proyecto al que se hace referencia especificado aquí.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "El nombre de archivo \"{0}\" es diferente del nombre de archivo \"{1}\" ya incluido solo en el uso de mayúsculas y minúsculas.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "El nombre de archivo “{0}” tiene una extensión de “{1}”. Buscando “{2}” en su lugar.", "File_name_0_has_a_1_extension_stripping_it_6132": "El nombre de archivo \"{0}\" tiene una extensión \"{1}\" y se va a quitar.", "File_redirects_to_file_0_1429": "El archivo redirecciona al archivo \"{0}\".", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La especificación del archivo no puede contener un directorio primario ('..') que aparezca después de un comodín de directorios recursivo ('**'): '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Corregir todas las expresiones en las que posiblemente falte \"await\"", "Fix_all_implicit_this_errors_95107": "Corregir todos los errores de \"this\" implícitos", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Corregir todos los tipos de valor devuelto incorrectos de las funciones asincrónicas", - "Fix_all_with_type_only_imports_95182": "Corregir todo con importaciones de solo tipo", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Los bucles 'For await' no se pueden usar dentro de un bloque estático de clase.", "Found_0_errors_6217": "Se encontró {0} errores.", "Found_0_errors_Watching_for_file_changes_6194": "Se encontraron {0} errores. Supervisando los cambios del archivo.", "Found_0_errors_in_1_files_6261": "Se han encontrado {0} errores en {1} archivos.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Se han encontrado {0} errores en el mismo archivo, empezando por: {1}", "Found_1_error_6216": "Se encontró 1 error.", "Found_1_error_Watching_for_file_changes_6193": "Se encontró un error. Supervisando los cambios del archivo.", - "Found_1_error_in_0_6259": "Se ha encontrado 1 error en {0}", + "Found_1_error_in_1_6259": "Se ha encontrado 1 error en {1}", "Found_package_json_at_0_6099": "Se encontró 'package.json' en '{0}'.", - "Found_peerDependency_0_with_1_version_6282": "Se encontró el “{0}” peerDependency con versión “{1}”.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es “ES5”.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es “ES5”. Las definiciones de clase están en modo strict de forma automática.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es “ES5”. Los módulos están en modo strict de forma automática.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'. Las definiciones de clase están en modo strict de forma automática.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "No se permiten declaraciones de función en bloques en modo strict cuando el destino es 'ES3' o 'ES5'. Los módulos están en modo strict de forma automática.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "La expresión de función, que carece de una anotación de tipo de valor devuelto, tiene implícitamente un tipo de valor devuelto '{0}'.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Falta la implementación de función o no sigue inmediatamente a la declaración.", "Function_implementation_name_must_be_0_2389": "El nombre de la implementación de función debe ser '{0}'.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La función tiene el tipo de valor devuelto \"any\" implícitamente porque no tiene una anotación de tipo de valor devuelto y se hace referencia a ella directa o indirectamente en una de sus expresiones return.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Falta la instrucción \"return\" final en la función y el tipo de valor devuelto no incluye 'undefined'.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "La función debe tener una anotación de tipo de valor devuelto explícita con --isolatedDeclarations.", "Function_not_implemented_95159": "La función no está implementada.", "Function_overload_must_be_static_2387": "La sobrecarga de función debe ser estática.", "Function_overload_must_not_be_static_2388": "La sobrecarga de función no debe ser estática.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Genera un seguimiento de eventos y una lista de tipos.", "Generates_corresponding_d_ts_file_6002": "Genera el archivo \".d.ts\" correspondiente.", "Generates_corresponding_map_file_6043": "Genera el archivo \".map\" correspondiente.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "El generador tiene implícitamente el tipo de retorno \"{0}\". Considere la posibilidad de proporcionar una anotación de tipo de valor devuelto.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "El generador tiene el tipo yield \"{0}\" implícitamente porque no produce ningún valor. Considere la posibilidad de proporcionar una anotación de tipo de valor devuelto.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Los generadores no se permiten en un contexto de ambiente.", "Generic_type_0_requires_1_type_argument_s_2314": "El tipo genérico '{0}' requiere los siguientes argumentos de tipo: {1}.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "El tipo genérico \"{0}\" requiere entre {1} y {2} argumentos de tipo.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Se esperaba un identificador.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. \"__esModule\" está reservado como marcador exportado al transformar módulos ECMAScript.", "Identifier_or_string_literal_expected_1478": "Se esperaba un literal de cadena o identificador", - "Identifier_string_literal_or_number_literal_expected_1496": "Se esperaba un identificador, un literal de cadena o un literal de número.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si el paquete \"{0}\" expone realmente este módulo, considere la posibilidad de enviar una solicitud de incorporación de cambios para corregir \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\".", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si el paquete '{0}' realmente expone este módulo, intente agregar un nuevo archivo de declaración (.d.ts) que contenga 'declarar módulo '{1}';`", "Ignore_this_error_message_90019": "Ignorar este mensaje de error", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implementar la interfaz \"{0}\"", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La cláusula implements de la clase '{0}' exportada tiene o usa el nombre privado '{1}'.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversión implícita de un elemento \"symbol\" en \"string\" dará un error en tiempo de ejecución. Considere la posibilidad de encapsular esta expresión en \"String (...)\".", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "La importación “{0}” entra en conflicto con el valor global usado en este archivo, por lo que debe declararse con una importación de solo tipo cuando “isolatedModules” está habilitado.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "Importe los conflictos “{0}” con el valor local, por lo que deben declararse con una importación de solo tipo cuando “isolatedModules” está habilitado.", "Import_0_from_1_90013": "Importar “{0}” desde “{1}”", "Import_assertion_values_must_be_string_literal_expressions_2837": "Los valores de aserción de importación deben ser expresiones literales de cadena.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "No se permiten aserciones de importación en instrucciones que se compilan en llamadas “require” de CommonJS.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Las aserciones de importación solo se admiten cuando la opción \"--module\" está establecida en \"esnext\", \"node18\", \"nodenext\" o \"preserve\".", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Las aserciones de importación no están permitidas en instrucciones que se transpilan a llamadas \"requeridas\" de commonjs.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Las aserciones de importación solo se admiten cuando la opción \"--module\" está establecida en \"esnext\" o \"nodenext\".", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Las aserciones de importación no se pueden usar con importaciones o exportaciones de solo tipo.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Las aserciones de importación se han reemplazado por atributos de importación. Use 'with' en lugar de 'assert'.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "No se puede usar una asignación de importación cuando se eligen módulos de ECMAScript como destino. Considere la posibilidad de usar \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" u otro formato de módulo en su lugar.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Los valores de atributo de importación deben ser expresiones literales de cadena.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "No se permiten atributos de importación en instrucciones que se compilan en llamadas “require” de CommonJS.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Los atributos de importación solo se admiten cuando la opción \"--module\" está establecida en \"esnext\", \"node18\", \"nodenext\" o \"preserve\".", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Los atributos de importación no se pueden usar con importaciones o exportaciones de solo tipo.", "Import_declaration_0_is_using_private_name_1_4000": "La declaración de importación '{0}' usa el nombre privado '{1}'.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La declaración de importación está en conflicto con la declaración local de \"{0}\".", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Las declaraciones de importación de un espacio de nombres no pueden hacer referencia a un módulo.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\".", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\" para importar \"importHelpers\" tal y como se especifica en compilerOptions.", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Se importó mediante {0} desde el archivo \"{1}\" con el valor packageId \"{2}\" para importar las funciones de fábrica \"jsx\" y \"jsxs\".", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "La importación de un archivo JSON en un módulo ECMAScript requiere un atributo de importación \"type: \"json\"\" cuando \"module\" se establece en \"{0}\".", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "No se permiten importaciones en aumentos de módulos. Considere la posibilidad de moverlas al módulo externo envolvente.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "En las declaraciones de enumeración de ambiente, el inicializador de miembro debe ser una expresión constante.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "En una enumeración con varias declaraciones, solo una declaración puede omitir un inicializador para el primer elemento de la enumeración.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Incluir archivos de mapas de origen dentro del JavaScript emitido.", "Includes_imports_of_types_referenced_by_0_90054": "Incluye importaciones de tipos a los que hace referencia \"{0}\"", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Al incluir --watch, -w empezará a ver el proyecto actual por los cambios de archivo. Una vez establecido, puede configurar el modo de inspección con:", - "Incomplete_quantifier_Digit_expected_1505": "Cuantificador incompleto. Se esperaba un dígito.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "Falta la signatura de índice para el tipo \"{0}\" en el tipo \"{1}\".", "Index_signature_in_type_0_only_permits_reading_2542": "La signatura de índice del tipo '{0}' solo permite lectura.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Las declaraciones individuales de la declaración '{0}' combinada deben ser todas exportadas o todas locales.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Deducir los tipos de parámetro del uso", "Infer_this_type_of_0_from_usage_95080": "Inferir el tipo \"this\" de \"{0}\" a partir del uso", "Infer_type_of_0_from_usage_95011": "Deducir el tipo de \"{0}\" del uso", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "La inferencia de expresiones de clase no se admite con --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Inicializar la propiedad \"{0}\" en el constructor", "Initialize_static_property_0_90021": "Inicializar la propiedad estática \"{0}\"", "Initializer_for_property_0_2811": "Inicializador para la propiedad \"{0}\"", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "El inicializador de la variable miembro de instancia '{0}' no puede hacer referencia al identificador '{1}' declarado en el constructor.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "El inicializador no proporciona ningún valor para este elemento de enlace que, a su vez, no tiene un valor predeterminado.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "No se permiten inicializadores en los contextos de ambiente.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicializa un proyecto de TypeScript y crea un archivo tsconfig.json.", - "Inline_variable_95184": "Variable insertada", "Insert_command_line_options_and_files_from_a_file_6030": "Inserte opciones de la línea de comandos y archivos desde un archivo.", "Install_0_95014": "Instalar \"{0}\"", "Install_all_missing_types_packages_95033": "Instalar todos los paquetes de tipos que faltan", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nombre de módulo no válido en un aumento, no se encuentra el módulo '{0}'.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Cadena opcional no válida de la nueva expresión. ¿Quería llamar a \"{0}()\"?", "Invalid_reference_directive_syntax_1084": "Sintaxis de la directiva \"reference\" no válida.", - "Invalid_syntax_in_decorator_1498": "Sintaxis no válida en Decorator.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Uso no válido de '{0}'. No se puede usar dentro de un bloque estático de clase.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Uso de '{0}' no válido. Los módulos están en modo strict automáticamente.", "Invalid_use_of_0_in_strict_mode_1100": "Uso no válido de '{0}' en modo strict.", - "Invalid_value_for_ignoreDeprecations_5103": "Valor no válido para “--ignoreDeprecations”.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Valor no válido para \"jsxFactory\". \"{0}\" no es un nombre calificado o un identificador válido.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Valor no válido para \"jsxFactory\". \"{0}\" no es un nombre cualificado o un identificador válidos.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Valor no válido para '--reactNamespace'. '{0}' no es un identificador válido.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "El tipo de elemento \"{0}\" no es un elemento JSX válido.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "El tipo de instancia \"{0}\" no es un elemento JSX válido.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "El tipo de valor devuelto \"{0}\" no es un elemento JSX válido.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "El tipo “{0}” no es un tipo de elemento JSX válido.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "La etiqueta \"@{0} {1}\" de JSDoc no coincide con la cláusula \"extends {2}\".", "JSDoc_0_is_not_attached_to_a_class_8022": "La etiqueta \"@{0}\" de JSDoc no está asociada a una clase.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "\"...\" de JSDoc solo puede aparecer en el último parámetro de una signatura.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "La etiqueta \"@param\" de JSDoc tiene el nombre \"{0}\", pero no hay ningún parámetro con ese nombre.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "La etiqueta de JSDoc \"@param\" tiene el nombre \"{0}\", pero no hay ningún parámetro con ese nombre. Coincidiría con \"arguments\" si tuviera un tipo de matriz.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "El typedef de JSDoc se puede convertir al tipo TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "La etiqueta \"@typedef\" de JSDoc debe tener una anotación de tipo o ir seguida de las etiquetas \"@property\" o \"@member\".", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "Las definiciones de tipos JSDoc se pueden convertir en tipos TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Los tipos JSDoc solo se pueden usar en los comentarios de la documentación.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Los tipos de JSDoc pueden moverse a tipos de TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "A los atributos JSX se les debe asignar únicamente un elemento \"expression\" que no esté vacío.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Lista de carpetas de donde se deben incluir las definiciones de tipos.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Lista de carpetas raíz cuyo contenido combinado representa la estructura del proyecto en tiempo de ejecución.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Cargando \"{0}\" del directorio raíz \"{1}\", ubicación candidata: \"{2}\"", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Se cargará el módulo “{0}” de la carpeta “node_modules”, tipos de archivo de destino “{1}”.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Se cargará el módulo como archivo/carpeta, ubicación del módulo candidato “{0}”, tipos de archivo de destino “{1}”.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Se cargará el módulo \"{0}\" de la carpeta \"node_modules\", tipo de archivo de destino \"{1}\".", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Se cargará el módulo como archivo/carpeta, ubicación del módulo candidato \"{0}\", tipo de archivo de destino \"{1}\".", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "La configuración regional debe tener el formato o -. Por ejemplo, '{0}' o '{1}'.", "Log_paths_used_during_the_moduleResolution_process_6706": "Rutas de acceso de registro usadas durante el proceso \"moduleResolution\".", "Longest_matching_prefix_for_0_is_1_6108": "El prefijo coincidente más largo para \"{0}\" es \"{1}\".", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Haga que keyof solo devuelva cadenas en lugar de cadenas, números o símbolos. Opción heredada.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Hacer que la llamada a \"super()\" sea la primera instrucción del constructor", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "El tipo de objeto asignado tiene implícitamente un tipo de plantilla \"any\".", - "Mark_array_literal_as_const_90070": "Marcar literal de matriz como const", "Matched_0_condition_1_6403": "Coincidente con '{0}' condición '{1}'.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "La coincidencia de forma predeterminada incluye el patrón '**/*'", "Matched_by_include_pattern_0_in_1_1407": "Coincidencia con el patrón de inclusión \"{0}\" en \"{1}\"", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "El método '{0}' no puede tener ninguna implementación porque está marcado como abstracto.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "El método \"{0}\" de la interfaz exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "El método \"{0}\" de la interfaz exportada tiene o usa el nombre privado \"{1}\".", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "El método debe tener una anotación de tipo de valor devuelto explícita con --isolatedDeclarations.", "Method_not_implemented_95158": "El método no está implementado.", "Modifiers_cannot_appear_here_1184": "Los modificadores no pueden aparecer aquí.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "El módulo \"{0}\" solo puede importarse de forma predeterminada con la marca \"{1}\".", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "El módulo \"{0}\" no tiene ningún miembro \"{1}\" exportado. ¿Pretendía usar \"import {1} from {0}\" en su lugar?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "El módulo \"{0}\" está oculto por una declaración local con el mismo nombre.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "El módulo '{0}' usa \"export =\" y no se puede usar con \"export *\".", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "El módulo '{0}' se resolvió como un módulo de ambiente declarado en '{1}', porque este archivo no se había modificado.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "El módulo '{0}' se resolvió como un módulo de ambiente declarado localmente en el archivo '{1}'.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "El módulo “{0}” se ha resuelto en “{1}”, pero “--allowArbitraryExtensions” no está establecido.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "El módulo '{0}' se resolvió en '{1}', pero \"--jsx\" no está establecido.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "El módulo \"{0}\" se resolvió en \"{1}\", pero no se usa \"--resolveJsonModule\".", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Los nombres de declaración de módulo solo pueden usar cadenas con las comillas \" o '.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "No se pudo resolver el módulo con \"rootDirs\".", "Modules_6244": "Módulos", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Mover modificadores de elemento de tupla etiquetados a etiquetas", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Mueva la expresión de exportación predeterminada a una variable y agréguele una anotación de tipo.", "Move_to_a_new_file_95049": "Mover a un nuevo archivo", - "Move_to_file_95178": "Mover a archivo", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "No se permiten varios separadores numéricos consecutivos.", "Multiple_constructor_implementations_are_not_allowed_2392": "No se permiten varias implementaciones del constructor.", "NEWLINE_6061": "NUEVA LÍNEA", "Name_is_not_valid_95136": "El nombre no es válido", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Los grupos de captura con nombre solo están disponibles cuando el destino es “ES2018” o posterior.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Los grupos de captura con nombre que tengan el mismo nombre deben ser mutuamente excluyentes entre sí.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "No se permiten las importaciones con nombre de un archivo JSON en un módulo ECMAScript cuando \"module\" está establecido en \"{0}\".", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "La propiedad '{0}' con nombre de los tipos '{1}' y '{2}' no es idéntica en ambos.", "Namespace_0_has_no_exported_member_1_2694": "El espacio de nombres '{0}' no tiene ningún miembro '{1}' exportado.", "Namespace_must_be_given_a_name_1437": "Se debe asignar un nombre al espacio de nombres.", "Namespace_name_cannot_be_0_2819": "El nombre de espacio no puede ser \"{0}\".", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "No se permiten espacios de nombres en archivos de script globales cuando “{0}” está habilitado. Si este archivo no está pensado para ser un script global, establezca “moduleDetection” en “force” o agregue una instrucción “export {}” vacía.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "No se pueden aplicar modificadores ni decoradores a los parámetros “this”.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "No hay ningún constructor base con el número especificado de argumentos de tipo.", "No_constituent_of_type_0_is_callable_2755": "No se puede llamar a ningún constituyente del tipo \"{0}\".", "No_constituent_of_type_0_is_constructable_2759": "No se puede construir ningún constituyente del tipo \"{0}\".", @@ -1084,18 +970,13 @@ "No_type_could_be_extracted_from_this_type_node_95134": "No se pudo extraer ningún tipo de este nodo de tipo", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "No existe ningún valor en el ámbito para la propiedad abreviada \"{0}\". Declare uno o proporcione un inicializador.", "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La clase '{0}' no abstracta no implementa el miembro abstracto heredado '{1}' de la clase '{2}'.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "Faltan implementaciones para los siguientes miembros de “{0}” en la clase no abstracta: “{1}”: {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "Faltan implementaciones para los siguientes miembros de “{0}” en la clase no abstracta: “{1}”: {2} y {3} más.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Una expresión de clase no abstracta no implementa el miembro abstracto heredado '{0}' de la clase '{1}'.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Faltan implementaciones para los siguientes miembros de “{0}” en la expresión de clase no abstracta: {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Faltan implementaciones para los siguientes miembros de “{0}” en la expresión de clase no abstracta: {1} y {2} más.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Las aserciones no nulas solo se pueden usar en los archivos TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "No se permiten rutas de acceso no relativas si no se ha establecido \"baseUrl\". ¿Ha olvidado poner \"./\" al inicio?", "Non_simple_parameter_declared_here_1348": "Se ha declarado un parámetro no simple aquí.", "Not_all_code_paths_return_a_value_7030": "No todas las rutas de acceso de código devuelven un valor.", "Not_all_constituents_of_type_0_are_callable_2756": "No se puede llamar a todos los constituyentes del tipo \"{0}\".", "Not_all_constituents_of_type_0_are_constructable_2760": "No se pueden construir todos los constituyentes del tipo \"{0}\".", - "Numbers_out_of_order_in_quantifier_1506": "Números desordenado en el cuantificador.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Los literales numéricos con valores absolutos iguales a 2^53 o superiores son demasiado grandes para representarlos de forma precisa como enteros.", "Numeric_separators_are_not_allowed_here_6188": "Aquí no se permiten separadores numéricos.", "Object_is_of_type_unknown_2571": "El objeto es de tipo \"desconocido\".", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "El literal de objeto solo puede especificar propiedades conocidas y '{0}' no existe en el tipo '{1}'.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "El literal de objeto solo puede especificar propiedades conocidas, pero \"{0}\" no existe en el tipo \"{1}\". ¿Quería escribir \"{2}\"?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La propiedad '{0}' del literal de objeto tiene un tipo '{1}' implícitamente.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Los objetos que contienen propiedades abreviadas no se pueden inferir con --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Los objetos que contienen asignaciones de propagación no se pueden inferir con --isolatedDeclarations.", "Octal_digit_expected_1178": "Se esperaba un dígito octal.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "No se permiten secuencias de escape decimales ni referencias inversas en una clase de caracteres. Si la intención era una secuencia de escape, use la sintaxis “{0}” en su lugar.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "No se permiten secuencias de escape octal. Use la sintaxis “{0}”.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "No se permiten literales octal. Use la sintaxis “{0}”.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Un valor de “{0}.{1}” es la cadena “{2}” y se supone que el otro es un valor numérico desconocido.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Los tipos de literales octales deben usar la sintaxis ES2015. Use la sintaxis \"{0}\".", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "No se permiten literales octales en el inicializador de miembros de enumeraciones. Use la sintaxis \"{0}\".", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Los literales octales no se permiten en modo strict.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Los literales octales no están disponibles cuando el destino es ECMAScript 5 y superior. Use la sintaxis \"{0}\".", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "Solo se permite una declaración de variable en una instrucción \"for...in\".", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "Solo se permite una declaración de variable en una instrucción \"for...of\".", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Solo se puede llamar a una función void con la palabra clave \"new\".", "Only_ambient_modules_can_use_quoted_names_1035": "Solo los módulos de ambiente pueden usar nombres entrecomillados.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Solo los módulos \"amd\" y \"system\" se admiten con --{0}.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Solo se pueden inferir matrices const con --isolatedDeclarations.", "Only_emit_d_ts_declaration_files_6014": "Solo deben emitirse archivos de declaración \".d.ts\".", + "Only_named_exports_may_use_export_type_1383": "Solo las exportaciones con nombre pueden usar \"export type\".", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Solo las enumeraciones numéricas pueden tener miembros calculados, pero esta expresión tiene el tipo \"{0}\". Si no requiere comprobaciones de exhaustividad, considere la posibilidad de usar un literal de objeto en su lugar.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Genere solo archivos d.ts y no archivos JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Solo es posible tener acceso a los métodos públicos y protegidos de la clase base mediante la palabra clave \"super\".", "Operator_0_cannot_be_applied_to_type_1_2736": "El operador \"{0}\" no se puede aplicar al tipo \"{1}\".", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "El operador '{0}' no se puede aplicar a los tipos '{1}' y '{2}'.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Los operadores no deben mezclarse dentro de una clase de caracteres. Envuelve en una clase anidada en su lugar.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Opte por excluir un proyecto de la comprobación de referencias de varios proyectos al editar.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "Se ha quitado la opción “{0}={1}”. Elimínela de la configuración.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "La opción “{0}={1}” está en desuso y dejará de funcionar en TypeScript {2}. Especifique compilerOption “'ignoreDeprecations': '{3}'” para silenciar este error.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "La opción \"{0}\" solo puede especificarse en el archivo \"tsconfig.json\" o establecerse en \"false\" o \"null\" en la línea de comandos.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "La opción \"{0}\" solo puede especificarse en el archivo \"tsconfig.json\" o establecerse en \"null\" en la línea de comandos.", - "Option_0_can_only_be_specified_on_command_line_6266": "La opción “{0}” solo se puede especificar en la línea de comandos.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "La opción '{0}' solo se puede usar cuando se proporciona '--inlineSourceMap' o '--sourceMap'.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "La opción “{0}” solo se puede usar cuando “moduleResolution” está establecido en “node16”, “nodenext” o “bundler”.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "La opción “{0}” solo se puede usar cuando “module” está establecido en “preserve” o en “es2015” o posterior.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "No se puede especificar la opción \"{0}\" cuando la opción \"jsx\" es \"{1}\".", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "No se puede especificar la opción \"{0}\" cuando la opción \"target\" es \"ES3\".", "Option_0_cannot_be_specified_with_option_1_5053": "La opción '{0}' no se puede especificar con la opción '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "La opción '{0}' no se puede especificar sin la opción '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "La opción \"{0}\" no se puede especificar sin la opción \"{1}\" o la opción \"{2}\".", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "Se ha quitado la opción “{0}”. Elimínela de la configuración.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "La opción “{0}” está en desuso y dejará de funcionar en TypeScript {1}. Especifique compilerOption “'ignoreDeprecations': '{2}'” para silenciar este error.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "La opción “{0}” es redundante y no se puede especificar con la opción “{1}”.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "La opción “allowImportingTsExtensions” solo se puede usar cuando se establece “noEmit” o “emitDeclarationOnly”.", "Option_build_must_be_the_first_command_line_argument_6369": "La opción \"--build\" debe ser el primer argumento de la línea de comandos.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "La opción \"--incremental\" solo puede especificarse si se usa tsconfig, se emite en un solo archivo o se especifica la opción \"--tsBuildInfoFile\".", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "La opción \"isolatedModules\" solo se puede usar cuando se proporciona la opción \"--module\" o si la opción \"target\" es \"ES2015\" o una versión posterior.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "La opción “moduleResolution” debe establecerse en “{0}” (o no se especificó) cuando la opción “module” está establecida en “{1}”.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "La opción “module” debe establecerse en “{0}” cuando la opción “moduleResolution” esté establecida en “{1}”.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "La opción “preserveConstEnums” no se puede deshabilitar cuando “{0}” está habilitado.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "La opción \"preserveConstEnums\" no se puede deshabilitar cuando \"isolatedModules\" está habilitado.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "La opción \"preserveValueImports\" solo se puede usar cuando \"module\" esté establecido en \"es2015\" o posteriores.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "La opción \"project\" no se puede combinar con archivos de origen en una línea de comandos.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "No se puede especificar la opción “--resolveJsonModule” cuando “moduleResolution” está establecido en “classic”.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "No se puede especificar la opción “--resolveJsonModule” cuando “module” esté establecido en “none”, “system” o “umd”.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "La opción “verbatimModuleSyntax” no se puede usar cuando “module” está establecido en “UMD”, “AMD” o “System”.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "La opción \"--resolveJsonModule\" solo puede especificarse cuando la generación de código del módulo es \"commonjs\", \"amd\", \"es2015\" o \"esNext\".", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "No se puede especificar la opción \"--resolveJsonModule\" sin la estrategia de resolución de módulos \"node\".", "Options_0_and_1_cannot_be_combined_6370": "\"{0}\" y \"{1}\" no se pueden combinar.", "Options_Colon_6027": "Opciones:", "Output_Formatting_6256": "Formato de salida", "Output_compiler_performance_information_after_building_6615": "Información de rendimiento resultante del compilador después de la compilación.", "Output_directory_for_generated_declaration_files_6166": "Directorio de salida para los archivos de declaración generados.", + "Output_file_0_from_project_1_does_not_exist_6309": "El archivo de salida \"{0}\" del proyecto \"{1}\" no existe.", "Output_file_0_has_not_been_built_from_source_file_1_6305": "El archivo de salida \"{0}\" no se compiló desde el archivo de origen \"{1}\".", "Output_from_referenced_project_0_included_because_1_specified_1411": "La salida del proyecto \"{0}\" al que se hace referencia se ha incluido porque se ha especificado \"{1}\".", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "La salida del proyecto \"{0}\" al que se hace referencia se ha incluido porque \"--module\" se ha especificado como \"none\".", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Se espera una declaración de parámetros.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "El parámetro tiene un nombre, pero no un tipo. ¿Pretendía usar \"{0}: {1}\"?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Los modificadores de parámetro solo se pueden usar en los archivos TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "El parámetro debe tener una anotación de tipo explícita con --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "El tipo de parámetro del establecedor público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "El tipo de parámetro del establecedor público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "El tipo de parámetro del establecedor estático público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo \"{2}\" privado.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Imprima los nombres de los archivos emitidos después de una compilación.", "Print_this_message_6017": "Imprima este mensaje.", "Private_accessor_was_defined_without_a_getter_2806": "El descriptor de acceso privado se ha definido sin un captador.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "El campo privado “{0}” debe declararse en una clase envolvente.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "No se permiten identificadores privados en las declaraciones de variables.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "No se permiten identificadores privados fuera de los cuerpos de clase.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Los identificadores privados solo están permitidos en cuerpos de clase y solo se pueden utilizan como parte de una declaración de un miembro de clase, acceso de propiedad o en la parte izquierda de una expresión \"in\".", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Los identificadores privados solo están disponibles cuando el destino es ECMAScript 2015 y versiones posteriores.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Los identificadores privados no se pueden usar como parámetros.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "No se puede acceder al miembro \"{0}\" privado o protegido en un parámetro de tipo.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "El proyecto \"{0}\" no puede generarse porque su dependencia \"{1}\" tiene errores", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "El proyecto \"{0}\" no puede compilarse porque su dependencia \"{1}\" no se ha compilado.", "Project_0_is_being_forcibly_rebuilt_6388": "El proyecto \"{0}\" se está recompilando de manera forzada.", - "Project_0_is_out_of_date_because_1_6420": "El proyecto “{0}” no está actualizado porque {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "El proyecto “{0}” no está actualizado porque el archivo buildinfo “{1}” indica que el archivo “{2}” era el archivo raíz de la compilación, pero ya no.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "El “{0}” del proyecto no está actualizado porque el archivo buildinfo “{1}” indica que el programa debe informar de errores.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "El proyecto \"{0}\" no está actualizado porque el archivo buildinfo \"{1}\" indica que algunos de los cambios no se emitieron", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "El proyecto “{0}” no está actualizado porque el archivo buildinfo “{1}” indica que hay cambios en compilerOptions", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "El proyecto \"{0}\" está obsoleto porque su dependencia \"{1}\" no está actualizada", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "El proyecto \"{0}\" está obsoleto porque la salida \"{1}\" es anterior a la entrada \"{2}\"", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "El proyecto \"{0}\" está obsoleto porque el archivo de salida \"{1}\" no existe", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "El proyecto \"{0}\" está obsoleto porque su salida se generó con la versión \"{1}\", que es distinta a la versión actual \"{2}\".", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "El proyecto \"{0}\" está obsoleto porque la salida de su dependencia \"{1}\" ha cambiado.", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "El proyecto \"{0}\" no está actualizado porque se produjo un error al leer el archivo \"{1}\"", "Project_0_is_up_to_date_6361": "El proyecto \"{0}\" está actualizado", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "El proyecto \"{0}\" está actualizado porque la entrada más reciente \"{1}\" es anterior a la salida \"{2}\"", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "La propiedad \"{0}\" se usa antes de su inicialización.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La propiedad \"{0}\" no existe en el tipo \"{1}\". ¿Quería decir \"{2}\"?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "La propiedad '{0}' del atributo spread de JSX no se puede asignar a la propiedad de destino.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "La propiedad “{0}” del tipo de clase anónima exportada no puede ser privada ni estar protegida.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La propiedad \"{0}\" de la expresión de clase exportada no puede ser privada ni estar protegida.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La propiedad '{0}' de la interfaz exportada tiene o usa el nombre '{1}' del módulo '{2}' privado.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La propiedad '{0}' de la interfaz exportada tiene o usa el nombre privado '{1}'.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La propiedad \"{0}\" de tipo \"{1}\" no se puede asignar al tipo de índice \"{2}\" \"{3}\".", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La propiedad \"{0}\" sobrescribirá la propiedad base en \"{1}\" Si esto es intencionado, agregue un inicializador. De lo contrario, agregue un modificador \"declare\" o quite la declaración redundante.", "Property_assignment_expected_1136": "Se esperaba una asignación de propiedad.", "Property_destructuring_pattern_expected_1180": "Se esperaba un patrón de desestructuración de propiedad.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "La propiedad debe tener una anotación de tipo explícita con --isolatedDeclarations.", "Property_or_signature_expected_1131": "Se esperaba una propiedad o una signatura.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "El valor de la propiedad puede ser solo un literal de cadena, literal numérico, 'true', 'false', 'null', literal de objeto o literal de matriz.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Proporcionar compatibilidad total con objetos iterables en “for-of”, propagaciones y desestructuraciones cuando el destino es “ES5”.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Proporcionar compatibilidad total con objetos iterables en \"for-of\", propagaciones y desestructuraciones cuando el destino es \"ES5\" o \"ES3\".", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "El método público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo externo {2}, pero no puede tener nombre.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "El método público \"{0}\" de la clase exportada tiene o usa el nombre \"{1}\" del módulo privado \"{2}\".", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "El método público \"{0}\" de la clase exportada tiene o usa el nombre privado \"{1}\".", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Genera un error cuando no se lee un parámetro de función.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Generar un error en las expresiones y las declaraciones con un tipo \"any\" implícito.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Generar un error en expresiones 'this' con un tipo 'any' implícito.", - "Range_out_of_order_in_character_class_1517": "Rango desordenado en la clase de caracteres.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Volver a exportar un tipo cuando “{0}” está habilitado requiere el uso de “export type”.", - "React_components_cannot_include_JSX_namespace_names_2639": "Los componentes de React no pueden incluir nombres de espacio de nombres JSX", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Para volver a exportar un tipo cuando se proporciona la marca \"--isolatedModules\", se requiere el uso de \"export type\".", "Redirect_output_structure_to_the_directory_6006": "Redirija la estructura de salida al directorio.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Reduzca el número de proyectos cargados automáticamente por TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "El proyecto \"{0}\" al que se hace referencia no puede deshabilitar la emisión.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "El proyecto \"{0}\" al que se hace referencia debe tener el valor \"composite\": true.", "Referenced_via_0_from_file_1_1400": "Se hace referencia mediante \"{0}\" desde el archivo \"{1}\".", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones ECMAScript cuando “--moduleResolution” es “node16” o “nodenext”. Considere la posibilidad de agregar una extensión a la ruta de acceso de importación.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones ECMAScript cuando “--moduleResolution” es “node16” o “nodenext”. ¿Quiso decir “{0}”?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones EcmaScript cuando \"--moduleResolution\" es \"node16\" o \"nodenext\". Considere la posibilidad de agregar una extensión a la ruta de acceso de importación.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Las rutas de acceso de importación relativas necesitan extensiones de archivo explícitas en las importaciones EcmaScript cuando \"--moduleResolution\" es \"node16\" o \"nodenext\". ¿Quería decir \"{0}\"?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Quite una lista de directorios del proceso de inspección.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Quite una lista de archivos del procesamiento del modo de inspección.", "Remove_all_unnecessary_override_modifiers_95163": "Quitar todos los modificadores \"override\" innecesarios", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Notifique los errores de los archivos .js.", "Report_errors_on_unused_locals_6134": "Informe de errores sobre variables locales no usadas.", "Report_errors_on_unused_parameters_6135": "Informe de errores sobre parámetros no usados.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Requiere una anotación suficiente en las exportaciones para que otras herramientas puedan generar archivos de declaración de forma trivial.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Se requieren propiedades no declaradas de las signaturas de índice para usar los accesos de elemento.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Los parámetros de tipo requeridos pueden no seguir parámetros de tipo opcionales.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La resolución del módulo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La resolución de la directiva de referencia de tipo \"{0}\" se encontró en la memoria caché de la ubicación \"{1}\".", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Error en la resolución del nombre no relativo; probando con las características modernas de resolución de nodos deshabilitadas para ver si la biblioteca npm necesita una actualización de la configuración.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Error en la resolución del nombre no relativo; intentando con “--moduleResolution bundler” para ver si el proyecto puede necesitar una actualización de la configuración.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolver \"keyof\" exclusivamente como nombres de propiedad con valores de cadena (sin números ni símbolos).", - "Resolved_under_condition_0_6414": "Resuelto bajo condición “{0}”.", "Resolving_in_0_mode_with_conditions_1_6402": "Resolviendo en modo {0} con condiciones {1}.", "Resolving_module_0_from_1_6086": "======== Resolviendo el módulo '{0}' de '{1}'. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Resolviendo el nombre de módulo '{0}' relativo a la dirección URL base '{1}' - '{2}'.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor: '{1}', directorio raíz no establecido. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor no establecido, directorio raíz: '{1}'. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Resolviendo la directiva de referencia de tipo '{0}', archivo contenedor no establecido, directorio raíz no establecido. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Resolviendo la directiva de referencia de tipo para el programa que especifica typeRoots personalizado, omitiendo la búsqueda en la carpeta “node_modules”.", "Resolving_with_primary_search_path_0_6121": "Resolviendo con la ruta de búsqueda principal \"{0}\".", "Rest_parameter_0_implicitly_has_an_any_type_7019": "El parámetro rest '{0}' tiene un tipo \"any[]\" implícitamente.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "El parámetro rest \"{0}\" tiene un tipo \"any[]\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "La reutilización de la resolución de la directiva de referencia de tipo \"{0}\" de \"{1}\" del programa anterior se resolvió correctamente en \"{2}\" con el identificador de paquete \"{3}\".", "Rewrite_all_as_indexed_access_types_95034": "Reescribir todo como tipos de acceso indexados", "Rewrite_as_the_indexed_access_type_0_90026": "Reescribir como tipo de acceso indexado \"{0}\"", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Vuelva a escribir las extensiones de archivo \".ts\", \".tsx\", \".mts\" y \".cts\" en rutas de acceso de importación relativas a su equivalente de JavaScript en los archivos de salida.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "El operando derecho de ?? es inaccesible porque el operando izquierdo nunca es nulo.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "No se puede determinar el directorio raíz, se omitirán las rutas de búsqueda principales.", "Root_file_specified_for_compilation_1427": "Archivo raíz especificado para la compilación", "STRATEGY_6039": "ESTRATEGIA", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Guarde archivos .tsbuildinfo para permitir la compilación incremental de proyectos.", "Saw_non_matching_condition_0_6405": "Se vio una condición no coincidente '{0}'.", "Scoped_package_detected_looking_in_0_6182": "Se detectó un paquete con ámbito al buscar en \"{0}\"", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Buscando extensiones de reserva en todos los directorios de node_modules antecesores: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Buscando extensiones preferidas en todos los directorios de node_modules antecesores: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "La selección no es una instrucción ni instrucciones válidas", "Selection_is_not_a_valid_type_node_95133": "La selección no es un nodo de tipo válido", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Establezca la versión del lenguaje de JavaScript para las JavaScript emitidas e incluya las declaraciones de bibliotecas compatibles.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Mostrar información de diagnóstico detallada.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Mostrar lo que podría compilarse (o eliminarse, si se especifica con \"--clean\")", "Signature_0_must_be_a_type_predicate_1224": "La signatura '{0}' debe tener un predicado de tipo.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Las declaraciones de signatura solo se pueden usar en los archivos TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Omitir la compilación de proyectos que siguen en la cadena debido a un error en el proyecto ascendente.", "Skip_type_checking_all_d_ts_files_6693": "Omita la comprobación de tipos de todos los archivos .d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Omita la comprobación de tipos de archivo .d.ts que se incluyen con TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Omita la comprobación de tipos de los archivos de declaración.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Omitiendo el módulo “{0}” que parece un URI absoluto, tipos de archivo de destino: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Omitiendo la compilación del proyecto \"{0}\" porque su dependencia \"{1}\" tiene errores", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Omitiendo la compilación del proyecto \"{0}\" porque su dependencia \"{1}\" no se ha compilado", "Source_from_referenced_project_0_included_because_1_specified_1414": "El origen del proyecto \"{0}\" al que se hace referencia se ha incluido porque se ha especificado \"{1}\".", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "El origen del proyecto \"{0}\" al que se hace referencia se ha incluido porque \"--module\" se ha especificado como \"none\".", "Source_has_0_element_s_but_target_allows_only_1_2619": "El origen tiene {0} elemento(s), pero el destino solo permite {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Especifique cómo funciona el modo de inspección de TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Especifique los archivos de biblioteca que se van a incluir en la compilación.", "Specify_module_code_generation_6016": "Especifique la generación de código del módulo.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Especifique la estrategia de resolución de módulos: 'node' (Node.js) o 'classic' (TypeScript pre-1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Especifique el especificador de módulo que se usa para importar las funciones de fábrica de JSX cuando se usa \"jsx: react-jsx*\".", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Especifique varias carpetas que actúen como \"./node_modules/@types\".", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Especifique una o varias referencias de ruta o de módulo de nodo a los archivos de configuración base desde los que se herede la configuración.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Los miembros estáticos no pueden hacer referencia a parámetros de tipo de clase.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La propiedad estática \"{0}\" está en conflicto con la propiedad integrada \"Function.{0}\" de la función de constructor \"{1}\".", "String_literal_expected_1141": "Se esperaba un literal de cadena.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "No se admiten los nombres de importación y exportación de literales de cadena cuando la marca “--module” está establecida en “es2015” o “es2020”.", "String_literal_with_double_quotes_expected_1327": "Se esperaba un literal de cadena entre comillas dobles.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Use color y contexto para estilizar los errores y los mensajes (experimental).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Las marcas de subpatrones deben estar presentes cuando hay un signo menos.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Las declaraciones de propiedad subsiguientes deben tener el mismo tipo. La propiedad \"{0}\" debe ser de tipo \"{1}\", pero aquí tiene el tipo \"{2}\".", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Las declaraciones de variable subsiguientes deben tener el mismo tipo. La variable '{0}' debe ser de tipo '{1}', pero aquí tiene el tipo '{2}'.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "La sustitución '{0}' para el patrón '{1}' tiene un tipo incorrecto. Se esperaba 'string', pero se obtuvo '{2}'.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "No se permiten expresiones de plantilla con etiquetas en una cadena opcional.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "El destino solo permite {0} elemento(s), pero el origen puede tener más.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "El destino requiere {0} elemento(s), pero el origen puede tener menos.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "La firma de destino proporciona muy pocos argumentos. Se esperaba {0} o más, pero se obtuvo {1}.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "El modificador \"{0}\" solo se puede usar en los archivos TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "El operador '{0}' no se puede aplicar al tipo \"symbol\".", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "No se permite usar el operador '{0}' para los tipos booleanos. Como alternativa, puede usar '{1}'.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La propiedad \"{0}\" de un iterador de asincronía debe ser un método.", "The_0_property_of_an_iterator_must_be_a_method_2767": "La propiedad \"{0}\" de un iterador debe ser un método.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "El tipo 'Object' se puede asignar a muy pocos tipos. ¿Se refería a usar el tipo 'any' en realidad?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Las marcas Unicode (u) y Unicode Sets (v) no se pueden establecer simultáneamente.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "No se puede hacer referencia al objeto “arguments” en una función de flecha en ES5 ni ES5. Considere la posibilidad de usar una expresión de función estándar.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "No se puede hacer referencia al objeto “arguments” en una función o método asincrónico en ES5. Considere la posibilidad de usar un método o función estándar.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "No se puede hacer referencia al objeto \"arguments\" en una función de flecha en ES3 ni ES5. Considere la posibilidad de usar una expresión de función estándar.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "No se puede hacer referencia al objeto \"arguments\" en una función o método asincrónico en ES3 ni ES5. Considere la posibilidad de usar un método o función estándar.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "El cuerpo de una instrucción \"if\" no puede ser la instrucción vacía.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "La llamada se llevaría a cabo sin problemas en esta implementación, pero las signaturas de implementación de las sobrecargas no están visibles externamente.", "The_character_set_of_the_input_files_6163": "Conjunto de caracteres de los archivos de entrada.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "El tipo \"JSX.{0}\" global no puede tener más de una propiedad.", "The_implementation_signature_is_declared_here_2750": "La signatura de implementación se declara aquí.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "No se permite la metapropiedad \"import.meta\" en archivos que se compilarán en la salida de CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metapropiedad \"import.meta\" solo se permite cuando la opción \"--módulo\" es \"es2020\", \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\" o \"nodenext\".", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metapropiedad \"import.meta\" solo se permite cuando la opción \"--módulo\" es \"es2020\", \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\".", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "No se puede asignar un nombre al tipo inferido de \"{0}\" sin una referencia a \"{1}\". Es probable que no sea portable. Se requiere una anotación de tipo.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "El tipo deducido de \"{0}\" hace referencia a un tipo con una estructura cíclica que no se puede serializar trivialmente. Es necesaria una anotación de tipo.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "El tipo inferido de \"{0}\" hace referencia a un tipo \"{1}\" no accesible. Se requiere una anotación de tipo.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "El tipo inferido de este nodo supera la longitud máxima que el compilador podrá serializar. Se necesita una anotación de tipo explícito.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "El inicializador de una declaración “using” debe ser un objeto con un método “[Symbol.dispose]()”, o ser “null” o “undefined”.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "El inicializador de una declaración “await using” debe ser un objeto con un método “[Symbol.asyncDispose]()” o “[Symbol.dispose]5D;()”, o ser “null” o “undefined”.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "La intersección \"{0}\" se redujo a \"never\" porque la propiedad \"{1}\" existe en varios constituyentes y es privada en algunos de ellos.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "La intersección \"{0}\" se redujo a \"never\" porque la propiedad \"{1}\" tiene tipos en conflicto en algunos constituyentes.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "La palabra clave \"intrinsic\" solo se puede usar para declarar tipos intrínsecos proporcionados por el compilador.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "La última sobrecarga dio el error siguiente.", "The_last_overload_is_declared_here_2771": "La última sobrecarga se declara aquí.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La parte izquierda de una instrucción \"for...in\" no puede ser un patrón de desestructuración.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "El lado izquierdo de un “for...in” no puede ser una declaración “using”.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "El lado izquierdo de una instrucción “for...in” no puede ser una declaración “await using”.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "La parte izquierda de una instrucción \"for...in\" no puede usar una anotación de tipo.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La parte izquierda de una instrucción \"for...in\" no puede ser un acceso de propiedad opcional.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La parte izquierda de una instrucción 'for...in' debe ser una variable o el acceso a una propiedad.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La parte izquierda de una operación aritmética debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La parte izquierda de una expresión de asignación no puede ser un acceso de propiedad opcional.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La parte izquierda de una expresión de asignación debe ser una variable o el acceso a una propiedad.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "El lado izquierdo de una expresión “instanceof” debe poder asignarse al primer argumento del método “[Symbol.hasInstance]” del lado derecho.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La parte izquierda de una expresión \"instanceof\" debe ser de tipo \"any\", un tipo de objeto o un parámetro de tipo.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Configuración regional utilizada para mostrar los mensajes al usuario (por ejemplo, \"es-es\")", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "La profundidad máxima de dependencia para buscar en node_modules y cargar los archivos de JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La raíz del proyecto es ambigua, pero es necesaria para resolver la entrada de asignación de exportación \"{0}\" en el archivo \"{1}\". Proporcione la opción del compilador \"rootDir\" para eliminar la ambigüedad.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La raíz del proyecto es ambigua, pero es necesaria para resolver la entrada de asignación de importación \"{0}\" en el archivo \"{1}\". Proporcione la opción del compilador \"rootDir\" para eliminar la ambigüedad.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "No se puede acceder a la propiedad \"{0}\" en el tipo \"{1}\" de esta clase porque se ha reemplazado por otro identificador privado con la misma ortografía.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "El tipo de valor devuelto de un descriptor de acceso \"get\" debe poder asignarse a su tipo de descriptor de acceso \"set\".", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "El tipo de valor devuelto de una función Decorator de parámetro debe ser \"void\" o \"any\".", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "El tipo de valor devuelto de una función Decorator de propiedad debe ser \"void\" o \"any\".", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "El tipo de valor devuelto de una función asincrónica debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "El tipo de valor devuelto de una función o un método asincrónicos debe ser el tipo Promise global.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "El tipo de valor devuelto de una función o un método asincrónicos debe ser el tipo Promise global. ¿Pretendía escribir \"Promise<{0}>\"?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La parte derecha de una instrucción \"for...in\" debe ser de tipo \"any\", un tipo de objeto o un parámetro de tipo, pero aquí tiene el tipo \"{0}\".", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La parte derecha de una operación aritmética debe ser de tipo \"any\", \"number\", \"bigint\" o un tipo de enumeración.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "El lado derecho de una expresión “instanceof” debe ser de tipo “any”, una clase, función u otro tipo asignable al tipo de interfaz “Function”, o un tipo de objeto con un método “Symbol.hasInstance”.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "El lado derecho de una expresión “instanceof” no debe ser una expresión de creación de instancias.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La parte derecha de una expresión \"instanceof\" debe ser de tipo \"any\" o un tipo que pueda asignarse al tipo de interfaz \"Function\".", "The_root_value_of_a_0_file_must_be_an_object_5092": "El valor raíz de un archivo \"{0}\" debe ser un objeto.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "El runtime invocará el decorador con argumentos {1}, pero el decorador espera {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "El runtime invocará el decorador con argumentos {1}, pero el decorador espera al menos {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "La declaración que ensombrece a \"{0}\" se define aquí.", "The_signature_0_of_1_is_deprecated_6387": "La signatura \"{0}\" de \"{1}\" está en desuso.", "The_specified_path_does_not_exist_Colon_0_5058": "La ruta de acceso especificada no existe: \"{0}\".", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "El modificador 'tipo' no se puede usar en una exportación con nombre cuando se usa 'exportar tipo' en su instrucción exportar.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "El modificador 'tipo' no se puede usar en una importación con nombre cuando se usa 'exportar tipo' en su instrucción importar.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "El tipo de una declaración de función debe coincidir con la signatura de la función.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "No se puede nombrar el tipo de esta expresión sin una aserción \"modo de resolución\", que es una característica inestable. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "No se ha podido serializar el tipo de este nodo porque su propiedad '{0}' no se puede serializar.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "El tipo devuelto por el método \"{0}()\" de un iterador de asincronía debe ser una promesa para un tipo con una propiedad \"value\".", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "El tipo devuelto por el método \"{0}()\" de un iterador debe tener una propiedad \"value\".", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La declaración de variable de una instrucción \"for...in\" no puede tener un inicializador.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La declaración de variable de una instrucción \"for...of\" no puede tener un inicializador.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "No se admite la instrucción 'with'. Todos los símbolos de un bloque 'with' tendrán el tipo 'any'.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Hay tipos en “{0}”, pero este resultado no se pudo resolver en la configuración actual de “moduleResolution”. Considere la posibilidad de actualizar a “node16”, “nodenext” o “bundler”.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Hay tipos en “{0}”, pero este resultado no se pudo resolver al respetar \"exports\" de package.json. Es posible que la biblioteca “{1}” necesite actualizar sus package.json o tipos.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "No hay ningún grupo de captura denominado “{0}” en esta expresión regular.", - "There_is_nothing_available_for_repetition_1507": "No hay nada disponible para la repetición.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Esta etiqueta JSX requiere que \"{0}\" esté en el ámbito, pero no se encontró.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Esta etiqueta JSX requiere que exista la ruta de acceso del módulo \"{0}\", pero no se encontró ninguna. Asegúrese de que tiene instalados los tipos para el paquete adecuado.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "La propiedad \"{0}\" de esta etiqueta de JSX espera un solo elemento secundario de tipo \"{1}\", pero se han proporcionado varios elementos secundarios.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "La propiedad \"{0}\" de esta etiqueta de JSX espera el tipo \"{1}\", que requiere varios elementos secundarios, pero solo se ha proporcionado un elemento secundario.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Esta referencia inversa hace referencia a un grupo que no existe. No hay grupos de captura en esta expresión regular.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Esta referencia inversa hace referencia a un grupo que no existe. Solo hay {0} grupos de captura en esta expresión regular.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Esta expresión binaria nunca acepta valores NULL. ¿Faltan paréntesis?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Este carácter no se puede escapar en una expresión regular.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Esta comparación parece no intencionada porque los tipos \"{0}\" y \"{1}\" no tienen superposición.", "This_condition_will_always_return_0_2845": "Esta condición siempre devolverá \"{0}\".", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Esta condición siempre devolverá \"{0}\", ya que JavaScript compara objetos por referencia, no por valor.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Esta condición devolverá siempre true porque siempre se define '{0}'.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Esta condición siempre devolverá true, porque esta función se define siempre. ¿Pretendía llamarla en su lugar?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta función de constructor puede convertirse en una declaración de clase.", - "This_expression_is_always_nullish_2871": "Esta expresión siempre acepta valores NULL.", "This_expression_is_not_callable_2349": "No se puede llamar a esta expresión.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "No se puede llamar a esta expresión porque es un descriptor de acceso \"get\". ¿Pretendía usarlo sin \"()\"?", "This_expression_is_not_constructable_2351": "No se puede construir esta expresión.", "This_file_already_has_a_default_export_95130": "Este archivo ya tiene una exportación predeterminada", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Esta ruta de acceso de importación no es segura de reescribir porque se resuelve en otro proyecto y la ruta de acceso relativa entre los archivos de salida de los proyectos no es la misma que la ruta de acceso relativa entre sus archivos de entrada.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Esta importación usa una extensión \"{0}\" para resolver en un archivo TypeScript de entrada, pero no se reescribe durante la emisión porque no es una ruta de acceso relativa.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Esta importación nunca se usa como valor y debe utilizar \"import type\" porque \"importsNotUsedAsValues\" está establecido en \"error\".", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Esta es la declaración que se está aumentando. Considere la posibilidad de mover la declaración en aumento al mismo archivo.", - "This_kind_of_expression_is_always_falsy_2873": "Este tipo de expresión siempre es falso.", - "This_kind_of_expression_is_always_truthy_2872": "Este tipo de expresión siempre es cierto.", "This_may_be_converted_to_an_async_function_80006": "Puede convertirse en una función asincrónica.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Este miembro no puede tener un comentario JSDoc con una etiqueta '@override' porque no se declara en la clase base '{0}'.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Este miembro no puede tener un comentario JSDoc con una etiqueta 'override' porque no se declara en la clase base '{0}'. ¿Quería decir '{1}'?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Este miembro no puede tener un comentario JSDoc con una etiqueta '@override' porque su clase contenedora '{0}' no extiende otra clase.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Este miembro no puede tener un comentario JSDoc con una etiqueta '@override' porque su nombre es dinámico.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Este miembro no puede tener un modificador \"override\" porque no está declarado en la clase base \"{0}\".", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Este miembro no puede tener un modificador \"override\" porque no está declarado en la clase base \"{0}\". ¿Quizá quiso decir \"{1}\"?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Este miembro no puede tener un modificador \"override\" porque su clase contenedora \"{0}\" no extiende otra clase.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Este miembro no puede tener un modificador 'override' porque su nombre es dinámico.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Este miembro debe tener un comentario JSDoc con una etiqueta '@override' porque invalida un miembro de la clase base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Este miembro debe tener un modificador \"override\" porque reemplaza a un miembro en la clase base \"{0}\".", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Este miembro debe tener un modificador \"override\" porque reemplaza a un método abstracto que se declara en la clase base \"{0}\".", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Solo se puede hacer referencia a este módulo con las importaciones o exportaciones de ECMAScript mediante la activación de la marca \"{0}\" y la referencia a su exportación predeterminada.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Este módulo se declara con \"export =\" y solo se puede usar con una importación predeterminada cuando se usa la marca \"{0}\".", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Esta operación se puede simplificar. Este turno es idéntico a \"{0} {1} {2}\".", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Esta sobrecarga devuelve implícitamente el tipo “{0}” porque carece de una anotación de tipo de valor devuelto.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Esta signatura de sobrecarga no es compatible con su signatura de implementación.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Este parámetro no se permite con la directiva \"use strict\".", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Esta propiedad de parámetro debe tener un comentario JSDoc con una etiqueta '@override' porque invalida un miembro de la clase base '{0}'.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Esta propiedad de parámetro debe tener un modificador \"override\" porque reemplaza a un miembro en la clase base \"{0}\".", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Esta marca de expresión regular no se puede alternar dentro de un subpatrón.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Esta marca de expresión regular solo está disponible cuando el destino es “{0}” o posterior.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Esta ruta de acceso de importación relativa no es segura de reescribir porque parece un nombre de archivo, pero realmente se resuelve en \"{0}\".", "This_spread_always_overwrites_this_property_2785": "Este elemento de propagación siempre sobrescribe esta propiedad.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Esta sintaxis no se permite cuando \"erasableSyntaxOnly\" está habilitado.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Esta sintaxis está reservada en archivos con la extensión .mts o .CTS. Agregue una coma o una restricción explícita al final.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Esta sintaxis se reserva a archivos con la extensión .mts o .cts. En su lugar, use una expresión \"as\".", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere un asistente importado, pero no se puede encontrar el módulo \"{0}\".", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Para convertir este archivo en un módulo ECMAScript, cambie su extensión de archivo a \"{0}\" o agregue el campo `\"type\": \"module\"` a \"{1}\".", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Para convertir este archivo en un módulo ECMAScript, cambie su extensión de archivo a \"{0}\" o cree un archivo package.json local con '{ \"type\": \"module\" }'.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Para convertir este archivo en un módulo ECMAScript, cree un archivo package.json local con `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Las expresiones \"await\" de nivel superior solo se permiten cuando la opción \"module\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\" \"nodenext\" o \"preserve\", y la opción \"target\" está establecida en \"es2017\" o superior.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Las declaraciones \"await using\" de nivel superior solo se permiten cuando la opción \"module\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\", \"nodenext\" o \"preserve\", y la opción \"target\" está establecida en \"es2017\" o superior.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Las expresiones \"await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Las declaraciones de nivel superior de los archivos .d.ts deben comenzar con un modificador \"declare\" o \"export\".", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Los bucles \"for await\" de nivel superior solo se permiten cuando la opción \"module\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\", \"nodenext\" o \"preserve\", y la opción \"target\" está establecida en \"es2017\" o superior.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Los bucles \"for await\" de nivel superior solo se permiten cuando la opción \"módulo\" está establecida en \"es2022\", \"esnext\", \"system\", \"node16\" o \"nodenext\", y la opción \"destino\" está establecida en \"es2017\" o superior.", "Trailing_comma_not_allowed_1009": "No se permite la coma final.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpilar cada archivo como un módulo aparte (parecido a \"ts.transpileModule\").", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Pruebe \"npm i --save-dev @types/{1}\" si existe o agregue un nuevo archivo de declaración (.d.ts) que incluya \"declare module '{0}';\".", "Trying_other_entries_in_rootDirs_6110": "Se probarán otras entradas de \"rootDirs\".", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Probando la sustitución '{0}', ubicación candidata para el módulo: '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Todos los miembros de tupla deben tener nombres o no debe tenerlo ninguno de ellos.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "El tipo de tupla \"{0}\" de longitud \"{1}\" no tiene ningún elemento en el índice \"{2}\".", "Tuple_type_arguments_circularly_reference_themselves_4110": "Los argumentos de tipo de tupla se hacen referencia a sí mismos de forma circular.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "El tipo \"{0}\" solo puede iterarse cuando se usa la marca \"--downlevelIteration\" o con un valor \"--target\" de \"es2015\" o superior.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "El tipo '{0}' no tiene una signatura de índice correspondiente al tipo '{1}'.", "Type_0_has_no_properties_in_common_with_type_1_2559": "El tipo \"{0}\" no tiene propiedades en común con el tipo \"{1}\".", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "El tipo \"{0}\" no tiene firmas para las que sea aplicable la lista de argumentos de tipo.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "El tipo “{0}” es genérico y solo se puede indizar para lectura.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Al tipo \"{0}\" le faltan las propiedades siguientes del tipo \"{1}\": {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Al tipo \"{0}\" le faltan las propiedades siguientes del tipo \"{1}\": {2} y {3} más.", "Type_0_is_not_a_constructor_function_type_2507": "El tipo '{0}' no es un tipo de función de constructor.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "El tipo “{0}” no es un tipo de valor devuelto válido para una función asincrónica en ES5, porque no hace referencia a un valor de constructor compatible con promesas.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "El tipo '{0}' no es un tipo de valor devuelto válido para una función asincrónica en ES5/ES3, porque no hace referencia a un valor de constructor compatible con promesas.", "Type_0_is_not_an_array_type_2461": "'{0}' no es un tipo de matriz.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "'{0}' no es un tipo de matriz o un tipo de cadena.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "El tipo \"{0}\" no es un tipo de matriz o un tipo de cadena o no tiene un método \"[Symbol.iterator]()\" que devuelve un iterador.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "El tipo '{0}' no se puede asignar al tipo '{1}'. ¿Quería decir \"{2}\"?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "El tipo \"{0}\" no se puede asignar al tipo \"{1}\". Existen dos tipos distintos con este nombre, pero no están relacionados.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "El tipo “{0}” no se puede asignar al tipo “{1}”, tal y como implica la anotación de desviación.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "El tipo “{0}” no se puede asignar al tipo “{1}” según sea necesario para los valores de miembro de enumeración calculados.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "El tipo '{0}' no se puede asignar al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" a los tipos de propiedades del destino.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "El tipo '{0}' no se puede asignar al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Considere la posibilidad de agregar \"undefined\" al tipo del destino.", "Type_0_is_not_comparable_to_type_1_2678": "El tipo '{0}' no se puede comparar con el tipo '{1}'.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Se esperaba un argumento de tipo.", "Type_argument_list_cannot_be_empty_1099": "La lista de argumentos de tipo no puede estar vacía.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Los argumentos de tipo solo se pueden usar en los archivos TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "No se pueden usar argumentos de tipo aquí.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Los argumentos de tipo de \"{0}\" se hacen referencia a sí mismos de forma circular.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Las expresiones de aserción de tipo solo se pueden usar en los archivos TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "El tipo en la posición {0} del origen no es compatible con el tipo en la posición {1} del destino.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "El tipo en las posiciones {0} a {1} del origen no es compatible con el tipo en la posición {2} del destino.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "El tipo que contiene el nombre privado “{0}” no se puede usar con --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Archivos de declaración de tipos que se incluirán en la compilación.", "Type_expected_1110": "Se esperaba un tipo.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Las aserciones de importación de tipos deben tener exactamente una clave - \"resolution-mode\" - con el valor \"import\" o \"require\".", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Los atributos de importación de tipos deben tener exactamente una clave, “resolution-mode”, con el valor “import” o “require”.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "La importación de tipos de un módulo ECMAScript desde un módulo CommonJS debe tener un atributo \"resolution-mode\".", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creación de una instancia de tipo es excesivamente profunda y posiblemente infinita.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Se hace referencia al tipo directa o indirectamente en la devolución de llamada de entrega de su propio método \"then\".", "Type_library_referenced_via_0_from_file_1_1402": "Biblioteca de tipos a la que se hace referencia mediante \"{0}\" desde el archivo \"{1}\"", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "El tipo de elementos iterados de un operando \"yield*\" debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "El tipo de propiedad \"{0}\" hace referencia circular a sí misma en el tipo asignado \"{1}\".", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "El tipo de operando \"yield\" en un generador asincrónico debe ser una promesa válida o no debe contener un miembro \"then\" invocable.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "La importación de solo tipo de un módulo ECMAScript desde un módulo CommonJS debe tener un atributo \"resolution-mode\".", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "El tipo se origina en esta importación. No se puede construir ni llamar a una importación de estilo de espacio de nombres y provocará un error en tiempo de ejecución. Considere la posibilidad de usar una importación predeterminada o require aquí en su lugar.", "Type_parameter_0_has_a_circular_constraint_2313": "El parámetro de tipo '{0}' tiene una restricción circular.", "Type_parameter_0_has_a_circular_default_2716": "El parámetro de tipo \"{0}\" tiene un valor circular predeterminado.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "No se puede resolver la signatura de elemento Decorator de un método cuando se llama como expresión.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "No se puede resolver la signatura de elemento Decorator de un parámetro cuando se llama como expresión.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "No se puede resolver la signatura de elemento Decorator de una propiedad cuando se llama como expresión.", - "Undetermined_character_escape_1513": "Escape de caracteres no determinado.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "“{0}” inesperado. ¿Desea escaparlo con barra diagonal inversa?", "Unexpected_end_of_text_1126": "Final de texto inesperado.", "Unexpected_keyword_or_identifier_1434": "Identificador o palabra clave inesperados.", "Unexpected_token_1012": "Token inesperado.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. ¿Pretendía usar \"{'}'}\" o \"}\"?", "Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".", - "Unicode_escape_sequence_cannot_appear_here_17021": "La secuencia de escape Unicode no puede aparecer aquí.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Las secuencias de escape Unicode solo están disponibles cuando se establecen las marcas Unicode (u) o Unicode Sets (v).", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Las expresiones de valor de propiedad Unicode solo están disponibles cuando se establecen las marcas Unicode (u) o Unicode Sets (v).", - "Unknown_Unicode_property_name_1524": "Nombre de propiedad Unicode desconocido.", - "Unknown_Unicode_property_name_or_value_1529": "Nombre o valor de propiedad Unicode desconocido.", - "Unknown_Unicode_property_value_1526": "Valor de propiedad Unicode desconocido.", "Unknown_build_option_0_5072": "Opción de compilación \"{0}\" desconocida.", "Unknown_build_option_0_Did_you_mean_1_5077": "Opción de compilación \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", "Unknown_compiler_option_0_5023": "Opción '{0}' del compilador desconocida.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Opción del compilador \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Identificador o palabra clave desconocidos. ¿Quiso decir \"{0}\"?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Opción 'excludes' desconocida. ¿Quería decir 'exclude'?", - "Unknown_regular_expression_flag_1499": "Marca de expresión regular desconocida.", "Unknown_type_acquisition_option_0_17010": "Opción '{0}' de adquisición de tipos desconocida.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Opción de adquisición de tipos \"{0}\" desconocida. ¿Pretendía usar \"{1}\"?", "Unknown_watch_option_0_5078": "Opción de inspección \"{0}\" desconocida.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Etiqueta no usada.", "Unused_ts_expect_error_directive_2578": "Directiva \"@ts-expect-error\" no usada.", "Update_import_from_0_90058": "Actualizar importación desde “{0}”", - "Update_modifiers_of_0_90061": "Actualizar modificadores de “{0}”", + "Updating_output_of_project_0_6373": "Actualizando la salida del proyecto \"{0}\"...", "Updating_output_timestamps_of_project_0_6359": "Actualizando las marcas de hora de salida del proyecto \"{0}\"...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Actualizando las marcas de hora de salida no modificadas del proyecto \"{0}\"...", "Use_0_95174": "Usar `{0}`.", - "Use_0_instead_5106": "Use “{0}” en su lugar.", "Use_Number_isNaN_in_all_conditions_95175": "Use \"Number.isNaN\" en todas las condiciones.", "Use_element_access_for_0_95145": "Usar acceso de elemento para \"{0}\"", "Use_element_access_for_all_undeclared_properties_95146": "Use el acceso de elemento para todas las propiedades no declaradas.", - "Use_import_type_95180": "Usar “import type”", "Use_synthetic_default_member_95016": "Use el miembro sintético \"default\".", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Use el campo “exports” de package.json al resolver las importaciones de paquetes.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Use el campo “imports” de package.json al resolver importaciones.", - "Use_type_0_95181": "Usar “type {0}”", "Using_0_subpath_1_with_target_2_6404": "Usando '{0}' subruta '{1}' con destino '{2}'.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "El uso de fragmentos JSX requiere que el generador de fragmentos \"{0}\" esté en el ámbito, pero no se encontró.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "El uso de una cadena en una instrucción \"for...of\" solo se admite en ECMAScript 5 y versiones posteriores.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Con --build, -b hará que tsc se comporte más como un orquestador de compilación que como un compilador. Se usa para desencadenar la compilación de proyectos compuestos, sobre los que puede obtener más información en {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Uso de las opciones del compilador de redireccionamiento de la referencia del proyecto \"{0}\".", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Se esperaba una declaración de variable.", "Variable_declaration_list_cannot_be_empty_1123": "La lista de declaraciones de variable no puede estar vacía.", "Variable_declaration_not_allowed_at_this_location_1440": "No se permite una declaración de variable en esta ubicación.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "La variable debe tener una anotación de tipo explícita con --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Las variables con varias declaraciones no se pueden insertar.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "El elemento variádico en la posición {0} del origen no coincide con el elemento en la posición {1} del destino.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Las anotaciones de varianza solo se admiten en alias de tipo para los tipos objeto, función, constructor y asignado.", "Version_0_6029": "Versión {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Al comprobar tipos, tenga en cuenta \"null\" y \"undefined\".", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Si se debe mantener la salida de la consola no actualizada en el modo de inspección en lugar de borrar la pantalla.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Encapsular todos los caracteres no válidos en un contenedor de expresiones", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Incluir todas las expresiones de decorador no válidas entre paréntesis", "Wrap_all_object_literal_with_parentheses_95116": "Encapsular todos los literales de objeto entre paréntesis", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Encapsular todos los JSX no primarios en el fragmento de JSX", "Wrap_in_JSX_fragment_95120": "Ajustar en fragmento de JSX", - "Wrap_in_parentheses_95194": "Incluir entre paréntesis", "Wrap_invalid_character_in_an_expression_container_95108": "Encapsular el carácter no válido en un contenedor de expresiones", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Encapsular el cuerpo siguiente entre paréntesis, lo cual debe ser un literal de objeto", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Puede obtener información sobre todas las opciones del compilador en {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Las signaturas de índice \"{0}\" y \"{1}\" no son compatibles.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Las operaciones \"{0}\" y \"{1}\" no se pueden mezclar sin paréntesis.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "\"{0}\" se especifica dos veces. El atributo denominado \"{0}\" se sobrescribirá.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "“{0}” al final de un tipo no es una sintaxis de TypeScript válida. ¿Pretendía escribir “{1}”?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "“{0}” al principio de un tipo no es una sintaxis de TypeScript válida. ¿Pretendía escribir “{1}”?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "\"{0}\" solo se puede importar si se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", "_0_can_only_be_imported_by_using_a_default_import_2595": "\"{0}\" solo se puede importar si se usa una importación predeterminada.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "\"{0}\" solo se puede importar si se usa una llamada a \"require\" o bien se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "\"{0}\" solo se puede importar si se usa una llamada a \"require\" o una importación predeterminada.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "\"{0}\" solo se puede importar si se usa \"import {1} = require({2})\" o una importación predeterminada.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "\"{0}\" solo se puede importar si se usa \"import {1} = require({2})\" o bien se activa la marca \"esModuleInterop\" y se usa una importación predeterminada.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "\"{0}\" no se puede compilar bajo \"--isolatedModules\" porque se considera un archivo de script global. Agregue una instrucción import o export, o una instrucción \"export {}\" vacía para convertirla en un módulo.", "_0_cannot_be_used_as_a_JSX_component_2786": "No se puede usar \"{0}\" como componente JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "No se puede usar \"{0}\" como valor porque se exportó mediante \"export type\".", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "No se puede usar \"{0}\" como valor porque se importó mediante \"import type\".", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Los componentes \"{0}\" no aceptan el texto como elemento secundario. El texto de JSX tiene el tipo \"string\", pero el tipo que se esperaba de \"{1}\" es \"{2}\".", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Puede crearse una instancia de \"{0}\" con un tipo arbitrario que podría no estar relacionado con \"{1}\".", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Las declaraciones “{0}” solo se pueden declarar dentro de un bloque.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Las declaraciones \"{0}\" solo se pueden usar en los archivos TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "Las declaraciones “{0}” no pueden tener patrones de enlace.", - "_0_declarations_must_be_initialized_1155": "Las declaraciones “{0}” deben inicializarse.", "_0_expected_1005": "Se esperaba '{0}'.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "“{0}” tiene un tipo de cadena, pero debe tener sintaxis de cadena reconocible sintácticamente cuando “isolatedModules” está habilitado.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "\"{0}\" no tiene ningún miembro exportado con el nombre \"{1}\". ¿Pretendía usar \"{2}\"?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" tiene un tipo de valor devuelto \"{1}\" de forma implícita, pero se puede inferir un tipo más adecuado a partir del uso.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' tiene el tipo de valor devuelto \"any\" implícitamente porque no tiene una anotación de tipo de valor devuelto y se hace referencia a este directa o indirectamente en una de sus expresiones return.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "El tipo de índice \"{0}\"' \"{1}\" no se puede asignar al tipo de índice \"{2}\" \"{3}\".", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' es un elemento primitivo, pero '{1}' es un objeto contenedor. Use '{0}' preferentemente cuando sea posible.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' es un tipo y no se puede importar en archivos JavaScript. Use '{1}' en una anotación de tipo JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "“{0}” es un tipo y debe importarse mediante una importación de solo tipo cuando “verbatimModuleSyntax” está habilitado.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" es un tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' es un cambio de nombre de '{1}' sin usar. ¿Quería usarlo como una anotación de tipo?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" puede asignarse a la restricción de tipo \"{1}\", pero no se pudo crear una instancia de \"{1}\" con un subtipo distinto de la restricción \"{2}\".", "_0_is_automatically_exported_here_18044": "'{0}' se exporta automáticamente aquí.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "La lista '{0}' no puede estar vacía.", "_0_modifier_already_seen_1030": "El modificador '{0}' ya se ha visto.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "El modificador “{0}” solo puede aparecer en un parámetro de tipo de una clase, interfaz o alias de tipo", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "El modificador “{0}” solo puede aparecer en un parámetro de tipo de una función, método o clase", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "El modificador '{0}' no puede aparecer en una declaración de constructor.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "El modificador '{0}' no puede aparecer en un módulo o un elemento de espacio de nombres.", "_0_modifier_cannot_appear_on_a_parameter_1090": "El modificador '{0}' no puede aparecer en un parámetro.", "_0_modifier_cannot_appear_on_a_type_member_1070": "El modificador '{0}' no puede aparecer en un miembro de tipo.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "El modificador “{0}” no puede aparecer en un parámetro de tipo", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "El modificador “{0}” no puede aparecer en una declaración “using”.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "El modificador “{0}” no puede aparecer en una declaración “await using”.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "El modificador '{0}' no puede aparecer en una signatura de índice.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "El modificador \"{0}\" no puede aparecer en elementos de clase de este tipo.", "_0_modifier_cannot_be_used_here_1042": "El modificador '{0}' no se puede usar aquí.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "El modificador '{0}' no se puede usar con el modificador '{1}'.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "El modificador \"{0}\" no se puede usar con un identificador privado.", "_0_modifier_must_precede_1_modifier_1029": "El modificador \"{0}\" debe preceder al modificador \"{1}\".", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "“\\{0}” debe ir seguido de una expresión de valor de propiedad Unicode entre llaves.", "_0_needs_an_explicit_type_annotation_2782": "\"{0}\" necesita una anotación de tipo explícito.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' solo hace referencia a un tipo, pero aquí se usa como espacio de nombres.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' solo hace referencia a un tipo, pero aquí se usa como valor.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" solo hace referencia a un tipo, pero aquí se usa como valor. ¿Necesita cambiar la biblioteca de destino? Pruebe a cambiar la opción del compilador \"lib\" a es2015 o posterior.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' hace referencia a un elemento UMD global, pero el archivo actual es un módulo. Puede agregar una importación en su lugar.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" hace referencia a un valor, pero aquí se usa como tipo. ¿Quiso decir \"typeof {0}\"?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "“{0}” se resuelve en un tipo y debe marcarse como de solo tipo en este archivo antes de volver a exportar cuando “{1}” está habilitado. Considere la posibilidad de usar “import type” donde se importa “{0}”.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "“{0}” se resuelve en un tipo y debe marcarse como de solo tipo en este archivo antes de volver a exportar cuando “{1}” está habilitado. Considere la posibilidad de usar “export type { {0} as default }”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "“{0}” se resuelve en una declaración de solo tipo y debe importarse mediante una importación de solo tipo cuando “verbatimModuleSyntax” está habilitado.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "“{0}” se resuelve en una declaración de solo tipo y debe marcarse como de solo tipo en este archivo antes de volver a exportar cuando “{1}” está habilitado. Considere la posibilidad de usar “import type” donde se importa “{0}”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "“{0}” se resuelve en una declaración de solo tipo y debe marcarse como de solo tipo en este archivo antes de volver a exportar cuando “{1}” está habilitado. Considere la posibilidad de usar “export type { {0} as default }”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "“{0}” se resuelve como una declaración de solo tipo y debe volverse a exportar con un tipo de reexportación solo cuando esté habilitada la opción “{1}”.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" se resuelve como una declaración de solo tipo y debe importarse mediante una importación de solo tipo cuando \"preserveValueImports\" y \"isolatedModules\" estén habilitados.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" se resuelve como una declaración de solo tipo y debe volverse a exportar con un tipo de reexportación solo cuando esté habilitada la opción \"isolatedModules\".", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "\"{0}\" debe establecerse dentro del objeto \"compilerOptions\" del archivo .json de configuración", "_0_tag_already_specified_1223": "La etiqueta '{0}' ya se ha especificado.", "_0_was_also_declared_here_6203": "\"{0}\" también se ha declarado aquí.", @@ -1999,22 +1780,19 @@ "and_here_6204": "y aquí.", "arguments_cannot_be_referenced_in_property_initializers_2815": "no se puede hacer referencia a «arguments» en los inicializadores de propiedad.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trate los archivos con importaciones, exportaciones, import.meta, jsx (con jsx: react-jsx) o formato esm (con el módulo: node16+) como módulos.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "La expresión “await” no se puede usar dentro de un bloque estático de clase.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Las expresiones \"await\" solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Las expresiones \"await\" solo se permiten en las funciones asincrónicas y en los niveles superiores de los módulos.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Las expresiones \"await\" no se pueden usar en un inicializador de parámetros.", "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" no tiene efecto en el tipo de esta expresión.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Las declaraciones “await using” solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Las declaraciones “await using” solo se permiten en las funciones asincrónicas y en los niveles superiores de los módulos.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Las instrucciones “await using” no se pueden usar dentro de un bloque estático de clase.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "La opción \"baseUrl\" está establecida en \"{0}\", se usará este valor para resolver el nombre de módulo no relativo \"{1}\".", - "c_must_be_followed_by_an_ASCII_letter_1512": "“\\c” debe ir seguido de una letra ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" solo se puede usar al principio de un archivo.", "case_or_default_expected_1130": "Se esperaba \"case\" o \"default\".", "catch_or_finally_expected_1472": "se esperaba \"catch\" o \"finally\".", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Las declaraciones \"const\" solo se pueden declarar dentro de un bloque.", + "const_declarations_must_be_initialized_1155": "Las declaraciones \"const\" deben inicializarse.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "El inicializador de miembros de enumeración \"const\" se evaluó con un valor no finito.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "El inicializador de miembros de enumeración \"const\" se evaluó con un valor \"NaN\" no permitido.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Los inicializadores de miembro de enumeración const deben ser expresiones constantes.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Los inicializadores de miembros de enumeración const solo pueden contener valores literales y otros valores de enumeración calculados.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Las enumeraciones \"const\" solo se pueden usar en expresiones de acceso de propiedad o índice, o en la parte derecha de una declaración de importación, una asignación de exportación o una consulta de tipo.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "El elemento \"constructor\" no se puede usar como nombre de propiedad de parámetro.", "constructor_is_a_reserved_word_18012": "\"#constructor\" es una palabra reservada.", @@ -2033,14 +1811,13 @@ "file_6025": "archivo", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Los bucles \"for await\" solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Los bucles \"for await\" solo se permiten en las funciones asincrónicas y en los niveles superiores de los módulos.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Los bucles “for await” no se pueden usar dentro de un bloque estático de clase.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Los descriptores de acceso \"get\" y \"set\" no pueden declarar parámetros \"this\".", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "\"[]\", si se especifica \"archivos\"; de lo contrario, \"[\"**/*\"]5D;\"", "implements_clause_already_seen_1175": "La cláusula \"implements\" ya se ha visto.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Las cláusulas \"implements\" solo se pueden usar en los archivos TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "\"import ... =\" solo se puede usar en los archivos TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Las declaraciones \"infer\" solo se permiten en la cláusula \"extends\" de un tipo condicional.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "“\\k” debe ir seguido de un nombre de grupo de captura entre corchetes angulares.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Las declaraciones \"let\" solo se pueden declarar dentro de un bloque.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "No se permite usar \"let\" como nombre en las declaraciones \"let\" o \"const\".", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "módulo === \"AMD\" o \"UMD\" o \"System\" o \"ES6\", después, \"Classic\", de lo contrario \"Node\"", "module_system_or_esModuleInterop_6904": "módulo === \"system\" o esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "El archivo \"package.json\" no tiene ninguna entrada \"typesVersions\" que coincida con la versión \"{0}\".", "package_json_had_a_falsy_0_field_6220": "El archivo \"package.json\" tenía un campo \"{0}\" false.", "package_json_has_0_field_1_that_references_2_6101": "'package.json' tiene el campo '{1}' de '{0}' que hace referencia a '{2}'.", - "package_json_has_a_peerDependencies_field_6281": "“package.json” tiene un campo “peerDependencies”.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "El archivo \"package.json\" tiene una entrada \"typesVersions\" \"{0}\" que no es un intervalo de SemVer válido.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "El archivo \"package.json\" tiene una entrada \"typesVersions\" \"{0}\" que coincide con la versión del compilador \"{1}\"; se busca un patrón que coincida con el nombre de módulo \"{2}\".", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "El archivo \"package.json\" tiene un campo \"typesVersions\" con asignaciones de ruta de acceso específicas de la versión.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "El ámbito package.json \"{0}\" tiene un tipo no válido para el destino del especificador \"{1}\"", "package_json_scope_0_has_no_imports_defined_6273": "El ámbito de package.json \"{0}\" no tiene importaciones definidas.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Se ha especificado la opción 'paths'. Se buscará un patrón que coincida con el nombre de módulo '{0}'.", - "q_is_only_available_inside_character_class_1511": "“\\q” solo está disponible dentro de la clase de caracteres.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "“\\q” debe ir seguido de alternativas de cadena entre llaves.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "El modificador 'readonly' solo puede aparecer en una declaración de propiedad o una signatura de índice.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "El modificador de tipo \"readonly\" solo se permite en los tipos literales de matriz y de tupla.", "require_call_may_be_converted_to_an_import_80005": "La llamada a \"require\" puede convertirse en una importación.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Las aserciones \"modo de resolución\" solo se admiten cuando \"moduleResolution\" es \"node16\" o \"nodenext\".", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Las aserciones \"modo de resolución\" son inestables. Use TypeScript nocturno para silenciar este error. Intente actualizar con \"npm install -D typescript@next\".", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "\"resolution-mode\" solo se puede establecer para importaciones solamente de tipo.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" es la única clave válida para las aserciones de importación de tipos.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "“resolution-mode” es la única clave válida para los atributos de importación de tipos.", "resolution_mode_should_be_either_require_or_import_1453": "\"modo de resolución\" debe ser \"requerir\" o \"importar\".", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Se ha establecido la opción \"rootDirs\". Se usará para resolver el nombre de módulo relativo \"{0}\".", "super_can_only_be_referenced_in_a_derived_class_2335": "Solo se puede hacer referencia a \"super\" en una clase derivada.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "No se puede hacer referencia a \"this\" en un nombre de propiedad calculada.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "No se puede hace referencia a \"this\" en el cuerpo de un módulo o de un espacio de nombres.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "No se puede hacer referencia a \"this\" en un inicializador de propiedad estática.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "No se puede hacer referencia a \"this\" en argumentos de constructor.", "this_cannot_be_referenced_in_current_location_2332": "No se puede hacer referencia a \"this\" en la ubicación actual.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' tiene el tipo implícito 'any' porque no tiene una anotación de tipo.", "true_for_ES2022_and_above_including_ESNext_6930": "\"true\" para ES2022 y versiones posteriores, incluido ESNext.", "true_if_composite_false_otherwise_6909": "\"true\", si \"composite\"; \"false\", en caso contrario", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "“true” cuando “moduleResolution” es “node16”, “nodenext” o “bundler”; en caso contrario, “false”.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: el compilador de TypeScript", "type_Colon_6902": "tipo:", "unique_symbol_types_are_not_allowed_here_1335": "Aquí no se permiten tipos \"unique symbol\".", diff --git a/node_modules/typescript/lib/fr/diagnosticMessages.generated.json b/node_modules/typescript/lib/fr/diagnosticMessages.generated.json index 4a35005c0..b962857b7 100644 --- a/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/fr/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "TOUTES LES OPTIONS DU COMPILATEUR", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Impossible d'utiliser un modificateur '{0}' avec une déclaration d'importation.", "A_0_parameter_must_be_the_first_parameter_2680": "Un paramètre '{0}' doit être le premier paramètre.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Une balise JSDoc « @template » ne peut pas suivre une balise « @typedef », « @callback » ou « @overload »", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un commentaire JSDoc '@typedef' ne peut pas contenir plusieurs balises '@type'.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Un littéral « bigint » ne peut pas être utilisé comme nom de propriété.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Un littéral bigint ne peut pas utiliser la notation exponentielle.", "A_bigint_literal_must_be_an_integer_1353": "Un littéral bigint doit être un entier.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un paramètre de modèle de liaison ne peut pas être facultatif dans une signature d'implémentation.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Une instruction 'break' peut être utilisée uniquement dans une itération englobante ou une instruction switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Une instruction 'break' peut accéder uniquement à une étiquette d'une instruction englobante.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Une classe de caractères ne doit pas contenir de ponctuation double réservée. Vouliez-vous procéder à son échappement avec une barre oblique inverse ?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Une plage de classes de caractères ne doit pas être liée par une autre classe de caractères.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Une classe peut uniquement implémenter un identificateur/nom qualifié avec des arguments de type facultatifs.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Une classe peut implémenter uniquement un type d'objet ou une intersection de types d'objet avec des membres connus de manière statique.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Une classe ne peut pas étendre un type primitif comme « {0} ». Les classes peuvent uniquement étendre des valeurs pouvant être construites.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Une classe ne peut pas implémenter un type primitif tel que « {0} ». Elle ne peut implémenter que d’autres types d’objets nommés.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Une déclaration de classe sans modificateur 'default' doit porter un nom.", "A_class_member_cannot_have_the_0_keyword_1248": "Un membre de classe ne peut pas avoir le mot clé '{0}'.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Une expression avec virgule n'est pas autorisée dans un nom de propriété calculée.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Un constructeur ne peut pas avoir un paramètre 'this'.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Une instruction 'continue' peut uniquement être utilisée dans une instruction d'itération englobante.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Une instruction 'continue' peut accéder uniquement à une étiquette d'une instruction d'itération englobante.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Nous ne pouvons pas importer un fichier de déclaration sans « import type ». Vouliez-vous importer un fichier d’implémentation « {0} » à la place ?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Impossible d'utiliser un modificateur 'declare' dans un contexte ambiant déjà défini.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un élément décoratif peut uniquement décorer une implémentation de méthode, pas une surcharge.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Une clause 'default' ne peut pas figurer plusieurs fois dans une instruction 'switch'.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Une exportation par défaut doit se trouver au niveau supérieur d’une déclaration de fichier ou de module.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Une assertion d'affectation définie ' !' n'est pas autorisée dans ce contexte.", "A_destructuring_declaration_must_have_an_initializer_1182": "Une déclaration de déstructuration doit avoir un initialiseur.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Un appel d’importation dynamique dans ES5 nécessite le constructeur « Promise ». Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Un appel d'importation dynamique en ES5/ES3 nécessite le constructeur 'Promise'. Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Un appel d'importation dynamique retourne 'Promise'. Vérifiez que vous avez une déclaration pour 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", "A_file_cannot_have_a_reference_to_itself_1006": "Un fichier ne peut pas contenir une référence à lui-même.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Une fonction qui retourne 'never' ne peut pas avoir de point de terminaison accessible.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Une fonction appelée avec le mot clé 'new' ne peut pas avoir un type 'this' dont la valeur est 'void'.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Une fonction dont le type déclaré n'est ni « undefined », « void » ni « any » doit renvoyer une valeur.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Une fonction dont le type déclaré n'est ni 'void', ni 'any', doit retourner une valeur.", "A_generator_cannot_have_a_void_type_annotation_2505": "Un générateur ne peut pas avoir d'annotation de type 'void'.", "A_get_accessor_cannot_have_parameters_1054": "Un accesseur 'get' ne peut pas avoir de paramètres.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Un accesseur get doit être au moins aussi accessible que la méthode setter", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Une déclaration d'espace de noms ne peut pas se trouver dans un autre fichier que celui d'une classe ou d'une fonction avec laquelle elle est fusionnée.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Une déclaration d'espace de noms ne peut pas se trouver avant une classe ou une fonction avec laquelle elle est fusionnée.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Une déclaration d’espace de noms n’est autorisée qu’au niveau supérieur d’un espace de noms ou d’un module.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Une déclaration d’« espace de noms » ne doit pas être déclarée à l’aide du mot clé « module ». Utilisez plutôt le mot clé « espace de noms ».", "A_non_dry_build_would_build_project_0_6357": "Une build non-dry va générer le projet '{0}'", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Une build non-dry va supprimer les fichiers suivants : {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Une build non-dry va mettre à jour la sortie du projet '{0}'", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Une build non-dry va mettre à jour les horodatages de la sortie du projet '{0}'", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un initialiseur de paramètre est uniquement autorisé dans une implémentation de fonction ou de constructeur.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Impossible de déclarer une propriété de paramètre à l'aide d'un paramètre rest.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Un appel 'super' doit être la première instruction du constructeur à faire référence à « super » ou « this » lorsqu’une classe dérivée contient des propriétés initialisées, des propriétés de paramètre ou des identificateurs privés.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Une protection de type basée sur 'this' n'est pas compatible avec une protection de type basée sur des paramètres.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un type 'this' est disponible uniquement dans un membre non statique d'une classe ou d'une interface.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Un modificateur « export » de niveau supérieur ne peut pas être utilisé sur des déclarations de valeur dans un module CommonJS quand « verbatimModuleSyntax » est activé.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un fichier 'tsconfig.json' est déjà défini à l'emplacement '{0}'.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membre de tuple ne peut pas être à la fois facultatif et rest.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un type tuple ne peut pas être indexé avec une valeur négative.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Une expression 'yield' est autorisée uniquement dans le corps d'un générateur.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "La méthode abstraite '{0}' de la classe '{1}' n'est pas accessible au moyen de l'expression super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Les méthodes abstraites peuvent uniquement apparaître dans une classe abstraite.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Les propriétés abstraites peuvent uniquement apparaître dans une classe abstraite.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "La propriété abstraite '{0}' de la classe '{1}' n'est pas accessible dans le constructeur.", "Accessibility_modifier_already_seen_1028": "Modificateur d'accessibilité déjà rencontré.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Les accesseurs sont uniquement disponibles quand EcmaScript 5 ou version supérieure est ciblé.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Les accesseurs doivent être abstraits ou non abstraits.", "Add_0_to_unresolved_variable_90008": "Ajouter '{0}.' à la variable non résolue", "Add_a_return_statement_95111": "Ajouter une instruction return", - "Add_a_return_type_to_the_function_declaration_9031": "Ajoutez un type de retour à la déclaration de fonction.", - "Add_a_return_type_to_the_function_expression_9030": "Ajoutez un type de retour à l’expression de fonction.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Ajoutez un type de retour à la déclaration d’accesseur get.", - "Add_a_return_type_to_the_method_9034": "Ajouter un type de retour à la méthode", - "Add_a_type_annotation_to_the_parameter_0_9028": "Ajoutez une annotation de type au paramètre {0}.", - "Add_a_type_annotation_to_the_property_0_9029": "Ajoutez une annotation de type à la propriété {0}.", - "Add_a_type_annotation_to_the_variable_0_9027": "Ajoutez une annotation de type à la variable {0}.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Ajoutez un type au paramètre de la déclaration d’accesseur set.", "Add_all_missing_async_modifiers_95041": "Ajouter tous les modificateurs 'async' manquants", "Add_all_missing_attributes_95168": "Ajouter tous les attributs manquants", "Add_all_missing_call_parentheses_95068": "Ajouter toutes les parenthèses d'appel manquantes", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Ajouter toutes les importations manquantes", "Add_all_missing_members_95022": "Ajouter tous les membres manquants", "Add_all_missing_override_modifiers_95162": "Ajouter tous les modificateurs 'override' manquants", - "Add_all_missing_parameters_95190": "Ajouter tous les paramètres manquants", "Add_all_missing_properties_95166": "Ajouter toutes les propriétés manquantes", "Add_all_missing_return_statement_95114": "Ajouter toutes les instructions return manquantes", "Add_all_missing_super_calls_95039": "Ajouter tous les appels super manquants", - "Add_all_missing_type_annotations_90067": "Ajouter toutes les annotations de type manquantes", - "Add_all_optional_parameters_95193": "Ajouter tous les paramètres optionnels", - "Add_annotation_of_type_0_90062": "Ajouter une annotation de type « {0} »", "Add_async_modifier_to_containing_function_90029": "Ajouter le modificateur async dans la fonction conteneur", "Add_await_95083": "Ajouter 'await'", "Add_await_to_initializer_for_0_95084": "Ajouter 'await' à l'initialiseur pour '{0}'", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Ajouter des initialiseurs à toutes les propriétés non initialisées", "Add_missing_attributes_95167": "Ajouter les attributs manquants", "Add_missing_call_parentheses_95067": "Ajouter les parenthèses d'appel manquantes", - "Add_missing_comma_for_object_member_completion_0_95187": "Ajoutez une virgule manquante pour l’achèvement de membre d’objet « {0} ».", "Add_missing_enum_member_0_95063": "Ajouter le membre enum manquant '{0}'", "Add_missing_function_declaration_0_95156": "Ajouter la déclaration de fonction manquante '{0}'", "Add_missing_new_operator_to_all_calls_95072": "Ajouter l'opérateur 'new' manquant à tous les appels", "Add_missing_new_operator_to_call_95071": "Ajouter l'opérateur 'new' manquant à l'appel", - "Add_missing_parameter_to_0_95188": "Ajouter le paramètre manquant dans « {0} »", - "Add_missing_parameters_to_0_95189": "Ajouter les paramètres manquants dans « {0} »", "Add_missing_properties_95165": "Ajouter des propriétés manquantes", "Add_missing_super_call_90001": "Ajouter l'appel manquant à 'super()'", "Add_missing_typeof_95052": "Ajouter un 'typeof' manquant", "Add_names_to_all_parameters_without_names_95073": "Ajouter des noms à tous les paramètres sans noms", - "Add_optional_parameter_to_0_95191": "Ajouter un paramètre optionnel à « {0} »", - "Add_optional_parameters_to_0_95192": "Ajouter des paramètres optionnels à '{0}'", "Add_or_remove_braces_in_an_arrow_function_95058": "Ajouter ou supprimer les accolades dans une fonction arrow", "Add_override_modifier_95160": "Ajouter un modificateur 'override'", "Add_parameter_name_90034": "Ajouter un nom de paramètre", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Ajouter un qualificateur à toutes les variables non résolues correspondant à un nom de membre", - "Add_resolution_mode_import_attribute_95196": "Ajouter l'attribut d'importation « mode de résolution »", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Ajoutez l'attribut d'importation « mode de résolution » à toutes les importations de type uniquement qui en ont besoin", - "Add_return_type_0_90063": "Ajouter le type de retour « {0} »", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Ajoutez des satisfactions et une assertion de type à cette expression (satisfait T en tant que T) pour rendre le type explicite.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Ajouter des satisfactions et une assertion de type inlined avec « {0} »", "Add_to_all_uncalled_decorators_95044": "Ajouter '()' à tous les décorateurs non appelés", "Add_ts_ignore_to_all_error_messages_95042": "Ajouter '@ts-ignore' à tous les messages d'erreur", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Ajoutez « undefined » à un type lorsque vous y accédez à l’aide d’un index.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Autorisez les importations par défaut à partir des modules sans exportation par défaut. Cela n'affecte pas l'émission du code, juste le contrôle de type.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Autoriser « importation de x à partir de y » quand un module n’a pas d’exportation par défaut.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Autorisez l’importation de fonctions d’assistance à partir de tslib une fois par projet, au lieu de les inclure par fichier.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Autorisez les importations pour inclure des extensions de fichier TypeScript. Nécessite la définition de « --moduleResolution bundler » et de « --noEmit » ou « --emitDeclarationOnly ».", "Allow_javascript_files_to_be_compiled_6102": "Autorisez la compilation des fichiers JavaScript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Autorisez plusieurs dossiers à être considérés comme un seul lors de la résolution des modules.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Le nom de fichier déjà inclus '{0}' diffère du nom de fichier '{1}' uniquement par la casse.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Aucun argument correspondant à ce modèle de liaison n'a été fourni.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un opérande arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Une fonction arrow ne peut pas avoir un paramètre 'this'.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Une fonction ou méthode asynchrone dan ES5 nécessite le constructeur « Promise ». Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Une fonction ou méthode asynchrone en ES5/ES3 nécessite le constructeur 'Promise'. Vérifiez que vous avez une déclaration pour le constructeur 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Une fonction ou une méthode async doit retourner 'Promise'. Vérifiez que vous avez une déclaration pour 'Promise', ou incluez 'ES2015' dans votre option '--lib'.", "An_async_iterator_must_have_a_next_method_2519": "Un itérateur asynchrone doit comporter une méthode 'next()'.", "An_element_access_expression_should_take_an_argument_1011": "Une expression d'accès à un élément doit accepter un argument.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Une déclaration d’exportation ne peut être utilisée qu’au niveau supérieur d’un module.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Une déclaration d’exportation ne peut être utilisée qu’au niveau supérieur d’un espace de noms ou d’un module.", "An_export_declaration_cannot_have_modifiers_1193": "Une déclaration d'exportation ne peut pas avoir de modificateurs.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Une déclaration « export = » doit faire référence à une valeur réelle quand « verbatimModuleSyntax » est activé, mais « {0} » se résout en déclaration de type uniquement.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Une déclaration « export = » doit faire référence à une valeur quand « verbatimModuleSyntax » est activé, mais « {0} » fait uniquement référence à un type.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Une « export default » doit faire référence à une valeur réelle quand « verbatimModuleSyntax » est activé, mais « {0} » se résout en déclaration de type uniquement.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Une « export default » doit référencer une valeur quand « verbatimModuleSyntax » est activé, mais « {0} » fait uniquement référence à un type.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Impossible de tester une expression de type 'void' pour déterminer si elle a la valeur true.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Une valeur d'échappement Unicode étendue doit être comprise entre 0x0 et 0x10FFFF inclus.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Un identificateur ou un mot clé ne peut pas suivre immédiatement un littéral numérique.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Impossible de déclarer une implémentation dans des contextes ambiants.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias d'importation ne peut pas référencer une déclaration exportée à l'aide de 'export type'.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias d'importation ne peut pas référencer une déclaration importée à l'aide de 'import type'.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Un alias d'importation ne peut pas être résolu en une déclaration de type ou de type uniquement lorsque « verbatimModuleSyntax » est activé.", "An_import_alias_cannot_use_import_type_1392": "Un alias d'importation ne peut pas utiliser 'import type'", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Une déclaration d’importation ne peut être utilisée qu’au niveau supérieur d’un module.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Une déclaration d’importation ne peut être utilisée qu’au niveau supérieur d’un espace de noms ou d’un module.", "An_import_declaration_cannot_have_modifiers_1191": "Une déclaration d'importation ne peut pas avoir de modificateurs.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Un chemin d’importation ne peut se terminer que par une extension « {0} » lorsque « allowImportingTsExtensions » est activé.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Un chemin d'importation ne peut pas finir par une extension '{0}'. Importez '{1}' à la place.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Une signature d'index ne peut pas avoir de paramètre rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Une signature d'index ne peut pas avoir de virgule de fin.", "An_index_signature_must_have_a_type_annotation_1021": "Une signature d'index doit avoir une annotation de type.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Une expression d’instanciation ne peut pas être suivie d’un accès à la propriété.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Une interface peut uniquement étendre un identificateur/nom qualifié avec des arguments de type facultatifs.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Une interface peut étendre uniquement un type d'objet ou une intersection de types d'objet avec des membres connus de manière statique.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Une interface ne peut pas étendre un type primitif comme « {0} ». Elle peut uniquement étendre d’autres types d’objets nommés.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Une interface ne peut pas étendre un type primitif comme « {0} » ; une interface peut uniquement étendre des types nommés et des classes.", "An_interface_property_cannot_have_an_initializer_1246": "Une propriété d'interface ne peut pas avoir d'initialiseur.", "An_iterator_must_have_a_next_method_2489": "Un itérateur doit comporter une méthode 'next()'.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Un pragma @jsxFrag est nécessaire quand un pragma @jsx est utilisé avec des fragments JSX.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un littéral d’objet ne peut pas avoir plusieurs propriétés portant le même nom.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un littéral d'objet ne peut pas avoir une propriété et un accesseur portant le même nom.", "An_object_member_cannot_be_declared_optional_1162": "Impossible de déclarer un membre d'objet comme étant facultatif.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "La méthode « [Symbol.hasInstance] » d’un objet doit retourner une valeur booléenne pour qu’elle soit utilisée à droite d’une expression « instanceof ».", "An_optional_chain_cannot_contain_private_identifiers_18030": "Une chaîne facultative ne peut pas contenir d'identificateurs privés.", "An_optional_element_cannot_follow_a_rest_element_1266": "Un élément optional ne peut pas suivre un élément rest.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Une valeur externe de 'this' est mise en mémoire fantôme par ce conteneur.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Une signature de surcharge ne peut pas être déclarée en tant que générateur.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Une expression unaire avec l'opérateur '{0}' n'est pas autorisée dans la partie gauche d'une expression d'élévation à une puissance. Mettez l'expression entre parenthèses.", "Annotate_everything_with_types_from_JSDoc_95043": "Annoter tout avec des types de JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Annoter les types de fonction expando de propriétés dans un espace de noms", "Annotate_with_type_from_JSDoc_95009": "Annoter avec le type de JSDoc", "Another_export_default_is_here_2753": "Une autre valeur par défaut d'exportation se trouve ici.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Les propriétés Unicode susceptibles de correspondre à plus d’un caractère unique ne sont disponibles que lorsque l’indicateur Unicode Sets (v) est défini.", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Tout ce qui peut correspondre à plus d’un seul caractère n’est pas valide dans une classe de caractères négatif.", "Are_you_missing_a_semicolon_2734": "Il vous manque un point-virgule ?", "Argument_expression_expected_1135": "Expression d'argument attendue.", "Argument_for_0_option_must_be_Colon_1_6046": "L'argument de l'option '{0}' doit être {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "L'argument de type '{0}' n'est pas assignable au paramètre de type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' aux types des propriétés de la cible.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Les arguments du paramètre de reste '{0}' n'ont pas été fournis.", "Array_element_destructuring_pattern_expected_1181": "Modèle de déstructuration d'élément de tableau attendu.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Les tableaux avec des éléments de diffusion ne peuvent pas être déduits avec --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Quand vous utilisez des assertions, chaque nom de la cible d'appel doit être déclaré à l'aide d'une annotation de type explicite.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Quand vous utilisez des assertions, la cible d'appel doit être un identificateur ou un nom qualifié.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "L’affectation de propriétés à des fonctions sans les déclarer n’est pas prise en charge avec --isolatedDeclarations. Ajoutez une déclaration explicite pour les propriétés affectées à cette fonction.", "Asterisk_Slash_expected_1010": "'.' attendu.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Au moins un accesseur doit avoir une annotation de type explicite avec --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Les augmentations de la portée globale ne peuvent être directement imbriquées que dans les modules externes ou les déclarations de modules ambiants.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Les augmentations de la portée globale doivent comporter un modificateur 'declare', sauf si elles apparaissent déjà dans un contexte ambiant.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "La détection automatique des typages est activée dans le projet '{0}'. Exécution de la passe de résolution supplémentaire pour le module '{1}' à l'aide de l'emplacement du cache '{2}'.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Impossible d’utiliser l’expression Await à l’intérieur d’un bloc statique de classe.", "BUILD_OPTIONS_6919": "OPTIONS DE BUILD", "Backwards_Compatibility_6253": "Rétrocompatibilité", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Les expressions de classe de base ne peuvent pas référencer les paramètres de type de classe.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Les littéraux BigInt ne sont pas disponibles quand la version ciblée est antérieure à ES2020.", "Binary_digit_expected_1177": "Chiffre binaire attendu.", "Binding_element_0_implicitly_has_an_1_type_7031": "L'élément de liaison '{0}' possède implicitement un type '{1}'.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Les éléments de liaison ne peuvent pas être exportés directement avec --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Variable de portée de bloc '{0}' utilisée avant sa déclaration.", "Build_a_composite_project_in_the_working_directory_6925": "Générer un projet composite dans le répertoire de travail.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Générer tous les projets, même ceux qui semblent être à jour.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Générer un ou plusieurs projets et leurs dépendances (s'ils sont obsolètes)", "Build_option_0_requires_a_value_of_type_1_5073": "L'option de build '{0}' nécessite une valeur de type {1}.", "Building_project_0_6358": "Génération du projet '{0}'...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Les itérateurs intégrés sont instanciés avec un type « TReturn » « undefined » au lieu de « any ».", "COMMAND_LINE_FLAGS_6921": "INDICATEURS DE LIGNE DE COMMANDE", "COMMON_COMMANDS_6916": "COMMANDES COURANTES", "COMMON_COMPILER_OPTIONS_6920": "OPTIONS COURANTES DU COMPILATEUR", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Les types de retour de signature d'appel '{0}' et '{1}' sont incompatibles.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La signature d'appel, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour 'any'.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Les signatures d'appel sans arguments ont des types de retour incompatibles : '{0}' et '{1}'.", + "Call_target_does_not_contain_any_signatures_2346": "La cible de l'appel ne contient aucune signature.", "Can_only_convert_logical_AND_access_chains_95142": "Conversion uniquement de chaînes logiques ET de chaînes d'accès", "Can_only_convert_named_export_95164": "Peut uniquement convertir l’exportation nommée", "Can_only_convert_property_with_modifier_95137": "La propriété peut uniquement être convertie avec un modificateur", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Peut uniquement convertir des concaténations de chaînes et des littéraux de chaîne", + "Can_only_convert_string_concatenation_95154": "Peut uniquement convertir une concaténation de chaîne", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Impossible d'accéder à '{0}.{1}', car '{0}' est un type, mais pas un espace de noms. Voulez-vous plutôt récupérer le type de la propriété '{1}' dans '{0}' avec '{0}[\"{1}\"]' ?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Désolé... Nous ne pouvons pas accéder à « {0} » à partir d’un autre fichier sans qualification lorsque « {1} » est activé. Utilisez « {2} » à la place.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Impossible d’accéder aux enums const ambiants quand '{0}' est activé.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Impossible d'accéder aux enums const ambiants quand l'indicateur '--isolatedModules' est fourni.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Impossible d'assigner un type de constructeur '{0}' à un type de constructeur '{1}'.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Impossible d'attribuer un type de constructeur abstrait à un type de constructeur non abstrait.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Impossible d'effectuer l'assignation à '{0}', car il s'agit d'une classe.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Définition de bibliothèque introuvable pour '{0}'.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Définition de bibliothèque introuvable pour '{0}'. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Le module '{0}' est introuvable. Utilisez '--resolveJsonModule' pour importer le module avec l'extension '.json'.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Le module « {0} » est introuvable. Vouliez-vous définir l’option « moduleResolution » sur la valeur « node » ou ajouter des alias à l’option « paths » ?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Le module '{0}' est introuvable. Vouliez-vous affecter à l'option 'moduleResolution' la valeur 'node' ou ajouter des alias à l'option 'paths' ?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Impossible de localiser le module '{0}' ou les déclarations de type correspondantes.", "Cannot_find_name_0_2304": "Le nom '{0}' est introuvable.", "Cannot_find_name_0_Did_you_mean_1_2552": "Le nom '{0}' est introuvable. Est-ce qu'il ne s'agit pas plutôt de '{1}' ?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Le nom « {0} » est introuvable. Voulez-vous écrire ceci dans une fonction asynchrone ?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Le nom '{0}' est introuvable. Devez-vous changer votre bibliothèque cible ? Essayez de changer l'option de compilateur 'lib' en '{1}' ou une version ultérieure.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Le nom '{0}' est introuvable. Devez-vous changer votre bibliothèque cible ? Essayez de remplacer l'option de compilateur 'lib' pour inclure 'dom'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour Bun ? Essayez `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_2868": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour Bun ? Essayez `npm i --save-dev @types/bun`, puis ajoutez « bun » au champ types de votre fichier tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour un exécuteur de tests ? Essayez 'npm i --save-dev @types/jest' ou 'npm i --save-dev @types/mocha'.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour un exécuteur de tests ? Essayez 'npm i --save-dev @types/jest' ou 'npm i --save-dev @types/mocha', puis ajoutez 'jest' ou 'mocha' au champ types de votre fichier tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Le nom '{0}' est introuvable. Devez-vous installer des définitions de type pour jQuery ? Essayez 'npm i --save-dev @types/jquery'.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la déstructuration de tableau envoie toujours '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la diffusion de tableau envoie toujours '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Impossible d'itérer la valeur, car la méthode 'next' de son itérateur attend le type '{1}', mais la boucle for-of envoie toujours '{0}'.", - "Cannot_move_statements_to_the_selected_file_95183": "Désolé... Nous ne pouvons pas déplacer les instructions vers le fichier sélectionné", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Désolé... Nous ne pouvons pas déplacer vers le fichier. Le fichier sélectionné n’est pas valide", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Impossible de préfixer le projet '{0}', car 'outFile' n'est pas défini", "Cannot_read_file_0_5083": "Impossible de lire le fichier '{0}'.", "Cannot_read_file_0_Colon_1_5012": "Impossible de lire le fichier '{0}' : {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Impossible de redéclarer la variable de portée de bloc '{0}'.", "Cannot_redeclare_exported_variable_0_2323": "Impossible de redéclarer la variable exportée '{0}'.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Impossible de redéclarer l'identificateur '{0}' dans la clause catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Impossible de démarrer un appel de fonction dans une annotation de type.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Impossible de mettre à jour la sortie du projet '{0}', car une erreur s'est produite durant la lecture du fichier '{1}'", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Impossible d'utiliser JSX, sauf si l'indicateur '--jsx' est fourni.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Désolé... Nous ne pouvons pas utiliser « export import » sur un type ou espace de noms de type uniquement lorsque l’indicateur « {0} » est activé.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Impossible d’utiliser « export import » sur un espace de noms de type ou de type uniquement lorsque l’indicateur « --isolatedModules » est fourni.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Impossible d'utiliser des importations, des exportations ou des augmentations de module quand '--module' a la valeur 'none'.", "Cannot_use_namespace_0_as_a_type_2709": "Impossible d'utiliser l'espace de noms '{0}' en tant que type.", "Cannot_use_namespace_0_as_a_value_2708": "Impossible d'utiliser l'espace de noms '{0}' en tant que valeur.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Changer 'extends' en 'implements'", "Change_spelling_to_0_90022": "Changer l'orthographe en '{0}'", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Recherchez les propriétés de classe déclarées mais non définies dans le constructeur.", - "Check_side_effect_imports_6806": "Vérifiez les importations d’effet secondaire.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Vérifiez que les arguments des méthodes « bind », « call » et « apply » correspondent à la fonction d’origine.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Vérification en cours pour déterminer si '{0}' est le préfixe correspondant le plus long pour '{1}' - '{2}'.", "Circular_definition_of_import_alias_0_2303": "Définition circulaire de l'alias d'importation '{0}'.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "La déclaration de classe ne peut pas implémenter la liste de surcharge pour «{0}».", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Les déclarations de classes ne peuvent pas avoir plusieurs balises '@augments' ou '@extends'.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Impossible d'utiliser des éléments décoratifs de classe avec un identificateur privé static. Supprimez l'élément décoratif expérimental.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Le champ de classe « {0} » défini par la classe parente n’est pas accessible dans la classe enfant via super.", "Class_name_cannot_be_0_2414": "Le nom de la classe ne peut pas être '{0}'.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Le nom de la classe ne peut pas être 'Object' quand ES5 est ciblé avec le module {0}.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Le côté statique de la classe '{0}' étend de manière incorrecte le côté statique de la classe de base '{1}'.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Options de ligne de commande", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compilez le projet en fonction du chemin de son fichier config ou d'un dossier contenant 'tsconfig.json'.", "Compiler_Diagnostics_6251": "Diagnostics du compilateur", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "L’option du compilateur « {0} » ne peut pas recevoir une chaîne vide.", "Compiler_option_0_expects_an_argument_6044": "L'option de compilateur '{0}' attend an argument.", "Compiler_option_0_may_not_be_used_with_build_5094": "L’option '--{0}' du compilateur ne peut pas être utilisée avec '--build'.", "Compiler_option_0_may_only_be_used_with_build_5093": "Option du compilateur '--{0}' ne peut être utilisée qu’avec '--build'.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Les projets composites ne doivent pas désactiver l'émission de déclaration.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Les projets composites ne doivent pas désactiver la compilation incrémentielle.", "Computed_from_the_list_of_input_files_6911": "Calculé à partir de la liste des fichiers d’entrée", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Les propriétés calculées doivent être des littéraux de chaîne ou de nombre, des variables ou des expressions en pointillé avec --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "Les noms de propriétés calculées ne sont pas autorisés dans les enums.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Les noms de propriétés calculées sur des littéraux de classe ou d’objet ne peuvent pas être déduits avec --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Les valeurs calculées ne sont pas autorisées dans un enum avec des membres ayant une valeur de chaîne.", "Concatenate_and_emit_output_to_single_file_6001": "Concaténer la sortie et l'émettre vers un seul fichier.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Conditions à définir en plus des valeurs par défaut spécifiques au résolveur lors de la résolution des importations.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Définitions en conflit pour '{0}' sur '{1}' et '{2}'. Installez une version spécifique de cette bibliothèque pour résoudre le conflit.", "Conflicts_are_in_this_file_6201": "Il existe des conflits dans ce fichier.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Envisagez d’ajouter un modificateur « declare » à cette classe.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Les types de retour de signature de construction '{0}' et '{1}' sont incompatibles.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Convertir '{0}' en type d'objet mappé", "Convert_all_const_to_let_95102": "Convertir tous les 'const' en 'let'", "Convert_all_constructor_functions_to_classes_95045": "Convertir toutes les fonctions de constructeur en classes", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertir toutes les importations non utilisées en tant que valeur en importations de types uniquement", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertir tous les caractères non valides en code d'entité HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertir tous les types réexportés en exportations de types uniquement", "Convert_all_require_to_import_95048": "Convertir tous les 'require' en 'import'", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Tout convertir en littéraux numériques bigint", "Convert_all_to_default_imports_95035": "Convertir tout en importations par défaut", "Convert_all_type_literals_to_mapped_type_95021": "Convertir tous les littéraux de type en type mappé", - "Convert_all_typedef_to_TypeScript_types_95177": "Convertissez tous les typedef en types TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Convertir une fonction arrow ou une expression de fonction", "Convert_const_to_let_95093": "Convertir 'const' en 'let'", "Convert_default_export_to_named_export_95061": "Convertir l'exportation par défaut en exportation nommée", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Convertir en expression de chaîne facultative", "Convert_to_template_string_95096": "Convertir en chaîne de modèle", "Convert_to_type_only_export_1364": "Convertir en exportation de type uniquement", - "Convert_typedef_to_TypeScript_type_95176": "Convertissez typedef en type TypeScript.", + "Convert_to_type_only_import_1373": "Convertir en importation de type uniquement", "Corrupted_locale_file_0_6051": "Fichier de paramètres régionaux endommagé : {0}.", "Could_not_convert_to_anonymous_function_95153": "Impossible de convertir en fonction anonyme", "Could_not_convert_to_arrow_function_95151": "Impossible de convertir en fonction arrow", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Le nom «{0}» est introuvable. Voulez-vous dire «{1}» ?", "Could_not_find_namespace_import_or_named_imports_95132": "Impossible de localiser l'importation d'espace de noms ou les importations nommées", "Could_not_find_property_for_which_to_generate_accessor_95135": "Impossible de localiser la propriété dont l'accesseur doit être généré", - "Could_not_find_variable_to_inline_95185": "Désolé... Nous n’avons pas pu trouver de variable à intégrer.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Impossible de résoudre le chemin '{0}' avec les extensions {1}.", "Could_not_write_file_0_Colon_1_5033": "Impossible d'écrire le fichier '{0}' : {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Créez des fichiers de mappage source pour les fichiers JavaScript émis.", "Create_sourcemaps_for_d_ts_files_6614": "Créez des mappage de source pour les fichiers d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crée un tsconfig.json avec les paramètres recommandés dans le répertoire de travail.", "DIRECTORY_6038": "RÉPERTOIRE", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Les séquences d’échappement décimales et les références arrière ne sont pas autorisées dans une classe de caractères.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Les décimales avec des zéros de début ne sont pas autorisées.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Cette déclaration augmente la déclaration dans un autre fichier. Cette opération ne peut pas être sérialisée.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "L’émission de déclaration pour ce fichier nécessite la conservation de cette importation pour des augmentations. Cette opération n’est pas pris en charge avec --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}'. Une annotation de type explicite peut débloquer l'émission de déclaration.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "L'émission de déclaration pour ce fichier nécessite l'utilisation du nom privé '{0}' à partir du module '{1}'. Une annotation de type explicite peut débloquer l'émission de déclaration.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "L’émission de déclaration pour ce paramètre nécessite l’ajout implicite de « non défini » à son type. Cette opération n’est pas pris en charge avec --isolatedDeclarations.", "Declaration_expected_1146": "Déclaration attendue.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Le nom de la déclaration est en conflit avec l'identificateur global intégré '{0}'.", "Declaration_or_statement_expected_1128": "Déclaration ou instruction attendue.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Une déclaration ou instruction est attendue. Ce '=' suit un bloc d’instructions. Si vous avez l’intention d'écrire une affectation de déstructuration, il est possible que vous deviez mettre l’ensemble de l’affectation entre parenthèses.", + "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Déclaration ou instruction attendue. Ce '=' suit un bloc d'instructions, donc si vous avez l'intention d'écrire une affectation de déstructuration, vous devrez peut-être mettre l'ensemble de l'affectation entre parenthèses.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Les déclarations avec des assertions d'affectation définies doivent également avoir des annotations de type.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Les déclarations avec des initialiseurs ne peuvent pas avoir également des assertions d'affectation définies.", "Declare_a_private_field_named_0_90053": "Déclarez un champ privé nommé '{0}'.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Déclarer la propriété statique '{0}'", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Le type de retour de la fonction de décorateur '{0}' n’est pas attribuable au type '{1}'.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Le type de retour de la fonction de décorateur est '{0}' mais doit être 'void' ou 'any'.", - "Decorator_used_before_export_here_1486": "Élément décoratif utilisé ci avant « export ».", "Decorators_are_not_valid_here_1206": "Les éléments décoratifs ne sont pas valides ici.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Impossible d'appliquer des éléments décoratifs à plusieurs accesseurs get/set du même nom.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Les éléments décoratifs ne peuvent pas apparaître après « export » ou « export default » s’ils apparaissent également avant « export ».", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Il est possible que les éléments décoratifs ne soient pas appliqués aux paramètres 'this'.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Les éléments décoratifs doivent précéder le nom et tous les mots clés des déclarations de propriété.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Les variables de clause catch par défaut sont « unknown » au lieu de « any ».", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "L'exportation par défaut du module a utilisé ou utilise le nom privé '{0}'.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Les exportations par défaut ne peuvent peut pas être déduites avec --isolatedDeclarations.", "Default_library_1424": "Bibliothèque par défaut", "Default_library_for_target_0_1425": "Bibliothèque par défaut pour la cible '{0}'", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Les définitions des identificateurs suivants sont en conflit avec celles d'un autre fichier : {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Désactivez l’effacement des déclarations « const enum » dans le code généré.", "Disable_error_reporting_for_unreachable_code_6603": "Désactivez le rapport d’erreurs pour le code inaccessible.", "Disable_error_reporting_for_unused_labels_6604": "Désactivez le rapport d’erreurs pour les étiquettes inutilisées.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Désactivez la vérification complète des types (seules les erreurs critiques d’analyse et d’émission sont signalées).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Désactiver la création de fonctions d'assistance personnalisées comme «__extends» dans la sortie compilée.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Désactivez l’inclusion des fichiers de bibliothèque, y compris la valeur par défaut de lib.d.ts.", "Disable_loading_referenced_projects_6235": "Désactivez le chargement des projets référencés.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Interdire à « import », « require » ou « » d’étendre le nombre de fichiers que TypeScript doit ajouter à un projet.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Interdisez les références dont la casse est incohérente dans le même fichier.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "N'ajoutez pas de références avec trois barres obliques, ni de modules importés à la liste des fichiers compilés.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "N’autorisez pas les constructions d’exécution qui ne font pas partie d’ECMAScript.", "Do_not_emit_comments_to_output_6009": "Ne pas émettre de commentaires dans la sortie.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "N'émettez pas de déclarations pour du code ayant une annotation '@internal'.", "Do_not_emit_outputs_6010": "N'émettez pas de sorties.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Ne signalez pas les erreurs pour le code inaccessible.", "Do_not_report_errors_on_unused_labels_6074": "Ne signalez pas les erreurs pour les étiquettes inutilisées.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Ne pas résoudre le chemin réel des liens symboliques.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Ne transformez ou n’elidez pas les importations ou exportations non marquées en tant que type uniquement, en veillant à ce qu’elles soient écrites dans le format du fichier de sortie en fonction du paramètre « module ».", "Do_not_truncate_error_messages_6165": "Ne tronquez pas les messages d'erreur.", "Duplicate_function_implementation_2393": "Implémentation de fonction en double.", "Duplicate_identifier_0_2300": "Identificateur '{0}' en double.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Doublon de signature d’index pour le type « {0} ».", "Duplicate_label_0_1114": "Étiquette '{0}' en double.", "Duplicate_property_0_2718": "Propriété dupliquée '{0}'.", - "Duplicate_regular_expression_flag_1500": "L’indicateur d’expression régulière est dupliqué.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Le spécificateur de l'importation dynamique doit être de type 'string', mais ici il est de type '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Les importations dynamiques sont prises en charge uniquement lorsque l’indicateur « --module » est défini sur « es2020 », « es2022 », « esnext », « commonjs », « amd », « system », « umd », « node16 », « node18 » ou « nodenext ».", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Les importations dynamiques peuvent accepter uniquement un spécificateur de module et un ensemble facultatif d’attributs en tant qu’arguments", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Les importations dynamiques prennent uniquement en charge un deuxième argument lorsque l’option « --module » est définie sur « esnext », « node16 », « node18 », « nodenext » ou « preserve ».", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "La syntaxe ESM n’est pas autorisée dans un module CommonJS quand « module » a la valeur « preserve ».", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "La syntaxe ESM n'est pas autorisée dans un module CommonJS lorsque « verbatimModuleSyntax » est activé.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Chaque déclaration de '{0}.{1}' diffère dans sa valeur, où '{2}' était attendu, mais '{3}' a été donné.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Les importations dynamiques sont prises en charge uniquement lorsque l’indicateur '--module' a la valeur 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', ou 'nodenext'.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Les importations dynamiques peuvent accepter uniquement un spécificateur de module et une assertion facultative en tant qu’arguments.", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Les importations dynamiques prennent uniquement en charge un deuxième argument lorsque l’option « --module » est définie sur « esnext », « node16 » ou « nodenext ».", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Chaque membre du type union '{0}' a des signatures de construction, mais aucune de ces signatures n'est compatible avec les autres.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Chaque membre du type union '{0}' a des signatures, mais aucune de ces signatures n'est compatible avec les autres.", "Editor_Support_6249": "Prise en charge de l’Éditeur", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Activez le rapport d’erreurs dans les fichiers JavaScript vérifiés par type.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Activez le rapport d’erreurs lorsque les variables locales ne sont pas lues.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Activez le rapport d’erreurs lorsque « this » reçoit le type « any ».", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Activez la prise en charge expérimentale des éléments décoratifs expérimentaux hérités.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Activez l’importation de fichiers avec n’importe quelle extension, à condition qu’un fichier de déclaration soit présent.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Activez la prise en charge expérimentale des éléments décoratifs de l’étape 2 de TC39.", "Enable_importing_json_files_6689": "Activer l’importation des fichiers .json.", - "Enable_lib_replacement_6808": "Activez le remplacement de la bibliothèque.", "Enable_project_compilation_6302": "Activer la compilation du projet", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Activez des méthodes 'bind', 'call' et 'apply' strictes sur les fonctions.", "Enable_strict_checking_of_function_types_6186": "Activez la vérification stricte des types de fonction.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Assurez-vous que la casse est correcte dans les importations.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Assurez-vous que chaque fichier peut être recompilé en toute sécurité sans s’appuyer sur d’autres importations.", "Ensure_use_strict_is_always_emitted_6605": "Assurez-vous que « use strict » est toujours émis.", - "Entering_conditional_exports_6413": "Entrée dans des exportations conditionnelles.", "Entry_point_for_implicit_type_library_0_1420": "Point d'entrée pour la bibliothèque de types implicites '{0}'", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Point d'entrée pour la bibliothèque de types implicites '{0}' ayant le packageId '{1}'", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Point d'entrée de la bibliothèque de types '{0}' spécifiée dans compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Les déclarations enum ne peuvent fusionner qu'avec des espaces de noms ou d'autres déclarations enum.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Les déclarations d'enum doivent toutes être const ou non const.", "Enum_member_expected_1132": "Membre enum attendu.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Le membre Enum suivant un membre numérique non littéral doit avoir un initialiseur lorsque « isolatedModules » est activé.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Les initialiseurs de membre enum doivent être calculables sans référence à des symboles externes avec --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "Un membre enum doit posséder un initialiseur.", "Enum_name_cannot_be_0_2431": "Le nom d'enum ne peut pas être '{0}'.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Le type enum '{0}' a des membres dont les initialiseurs ne sont pas des littéraux.", "Errors_Files_6041": "Fichiers d’erreurs", - "Escape_sequence_0_is_not_allowed_1488": "La séquence d’échappement « {0} » n’est pas autorisée.", "Examples_Colon_0_6026": "Exemples : {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Complexité excessive comparant les types « {0} » et « {1} ».", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Profondeur excessive de la pile pour la comparaison des types '{0}' et '{1}'.", - "Exiting_conditional_exports_6416": "Sortie des exportations conditionnelles.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Arguments de type {0}-{1} attendus ; indiquez-les avec la balise '@extends'.", "Expected_0_arguments_but_got_1_2554": "{0} arguments attendus, mais {1} reçus.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} arguments attendus, mais {1} reçus. Avez-vous oublié d'inclure 'void' dans votre argument de type pour 'Promise' ?", "Expected_0_type_arguments_but_got_1_2558": "{0} arguments de type attendus, mais {1} reçus.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Arguments de type {0} attendus ; indiquez-les avec la balise '@extends'.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 argument attendu, mais 0 obtenu. 'new Promise()' a besoin d’un indicateur JSDoc pour produire un 'resolve' qui peut être appelé sans arguments.", - "Expected_a_Unicode_property_name_1523": "Le nom de propriété Unicode est attendu.", - "Expected_a_Unicode_property_name_or_value_1527": "Une valeur ou un nom de propriété Unicode est attendu.", - "Expected_a_Unicode_property_value_1525": "La valeur de propriété Unicode est attendue.", - "Expected_a_capturing_group_name_1514": "Le nom de groupe de capture est attendu.", - "Expected_a_class_set_operand_1520": "Une opérande de jeu de classes est attendue.", "Expected_at_least_0_arguments_but_got_1_2555": "Au moins {0} arguments attendus, mais {1} reçus.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Balise de fermeture JSX correspondante attendue pour '{0}'.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Balise de fermeture correspondante attendue pour le fragment JSX.", "Expected_for_property_initializer_1442": "« = » attendu pour l’initialiseur de propriété.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Le type attendu du champ '{0}' dans 'package.json' est censé être '{1}'. Obtention de '{2}'.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "La prise en charge expérimentale des éléments décoratifs est une fonctionnalité susceptible de changer dans une prochaine version. Définissez l'option 'experimentalDecorators' dans votre fichier 'tsconfig' ou 'jsconfig' pour supprimer cet avertissement.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Spécification explicite du genre de résolution de module : '{0}'.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Impossible d'effectuer l'élévation à une puissance sur des valeurs 'bigint' sauf si l'option 'target' a la valeur 'es2016' ou une valeur qui correspond à une version ultérieure.", "Export_0_from_module_1_90059": "Exporter '{0}' à partir du module '{1}'", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variable exportée '{0}' possède ou utilise le nom privé '{1}'.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Les exportations et les assignations d'exportation ne sont pas autorisées dans les augmentations de module.", "Expression_expected_1109": "Expression attendue.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "L’expression doit être entre parenthèses pour être utilisée comme élément décoratif.", "Expression_or_comma_expected_1137": "Expression ou virgule attendue.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "L'expression produit un type de tuple trop grand pour être représenté.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "L'expression produit un type union trop complexe à représenter.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Expression résolue en '_super' et utilisée par le compilateur pour capturer la référence de classe de base.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "L'expression génère une déclaration de variable '_newTarget' que le compilateur utilise pour capturer la référence de méta-propriété 'new.target'.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Expression résolue en déclaration de variable '_this' et utilisée par le compilateur pour capturer la référence 'this'.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Le type d'expression ne peut pas être déduit avec --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "La clause Extends ne peut pas contenir d’expression avec --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "La clause Extends pour le type déduit « {0} » a ou utilise le nom privé « {1} ».", - "Extract_base_class_to_variable_90064": "Extraire la classe de base dans la variable", - "Extract_binding_expressions_to_variable_90066": "Extraire des expressions de liaison dans une variable", "Extract_constant_95006": "Extraire la constante", - "Extract_default_export_to_variable_90065": "Extraire l’exportation par défaut vers la variable", "Extract_function_95005": "Extraire la fonction", "Extract_to_0_in_1_95004": "Extraire vers {0} dans {1}", "Extract_to_0_in_1_scope_95008": "Extraire vers {0} dans la portée {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Extraire vers l'interface", "Extract_to_type_alias_95078": "Extraire vers l'alias de type", "Extract_to_typedef_95079": "Extraire vers typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Extraire dans la variable et remplacer par '{0} en tant que typeof {0}'", "Extract_type_95077": "Type d'extraction", "FILE_6035": "FICHIER", "FILE_OR_DIRECTORY_6040": "FICHIER OU RÉPERTOIRE", - "Failed_to_find_peerDependency_0_6283": "Échec de la recherche de peerDependency '{0}'.", - "Failed_to_resolve_under_condition_0_6415": "Échec de la résolution sous la condition «{0}».", + "Failed_to_parse_file_0_Colon_1_5014": "Échec de l'analyse du fichier '{0}' : {1}.", "Fallthrough_case_in_switch_7029": "Case avec fallthrough dans une instruction switch.", "File_0_does_not_exist_6096": "Le fichier '{0}' n'existe pas.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Selon des recherches mises en cache antérieures, le fichier '{0}' n’existe pas.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Le fichier '{0}' existe. Utilisez-le comme résultat pour la résolution de noms.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Selon des recherches mises en cache antérieures, le fichier '{0}' existe.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Le fichier '{0}' existe - utilisez-le comme résultat de résolution de nom.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Le fichier '{0}' a une extension non prise en charge. Les seules extensions prises en charge sont {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Le fichier '{0}' a une extension non prise en charge. Il est ignoré.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Le fichier '{0}' est un fichier JavaScript. Est-ce que vous avez voulu activer l'option 'allowJs' ?", "File_0_is_not_a_module_2306": "Le fichier '{0}' n'est pas un module.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Le fichier '{0}' ne figure pas dans la liste de fichiers du projet '{1}'. Les projets doivent lister tous les fichiers ou utiliser un modèle 'include'.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Le fichier '{0}' ne se trouve pas sous 'rootDir' '{1}'. 'rootDir' est supposé contenir tous les fichiers sources.", "File_0_not_found_6053": "Fichier '{0}' introuvable.", "File_Management_6245": "Gestion de fichiers", - "File_appears_to_be_binary_1490": "Le fichier semble être binaire.", "File_change_detected_Starting_incremental_compilation_6032": "Modification de fichier détectée. Démarrage de la compilation incrémentielle...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Le fichier est un module CommonJS, car « {0} » n’a pas de champ « type »", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Le fichier est un module CommonJS, car « {0} » a un champ « type » dont la valeur n’est pas « module »", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Le fichier représente la sortie de la source de référence de projet '{0}'", "File_is_source_from_referenced_project_specified_here_1416": "Le fichier représente la source du projet référencé spécifié ici.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Le nom de fichier '{0}' diffère du nom de fichier '{1}' déjà inclus uniquement par la casse.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Le nom de fichier '{0}' a une extension '{1}' - recherche '{2}' à la place.", "File_name_0_has_a_1_extension_stripping_it_6132": "Le nom de fichier '{0}' a une extension '{1}'. Suppression de l'extension.", "File_redirects_to_file_0_1429": "Le fichier est redirigé vers le fichier '{0}'", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La spécification de fichier ne peut pas contenir un répertoire parent ('..') après un caractère générique de répertoire récursif ('**') : '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Corriger toutes les expressions où il manque éventuellement 'await'", "Fix_all_implicit_this_errors_95107": "Corriger toutes les erreurs implicites liées à 'this'", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Corriger tous les types de retour incorrects des fonctions asynchrone", - "Fix_all_with_type_only_imports_95182": "Corriger tout avec des importations de type uniquement", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Les boucles « for await » ne peuvent pas être utilisées à l’intérieur d’un bloc statique de classe.", "Found_0_errors_6217": "{0} erreurs trouvées.", "Found_0_errors_Watching_for_file_changes_6194": "{0} erreurs trouvées. Changements de fichier sous surveillance.", "Found_0_errors_in_1_files_6261": "Erreurs {0} trouvées dans les fichiers {1} .", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Erreurs {0} trouvées dans le même fichier, à partir de : {1}", "Found_1_error_6216": "1 erreur trouvée.", "Found_1_error_Watching_for_file_changes_6193": "1 erreur trouvée. Changements de fichier sous surveillance.", - "Found_1_error_in_0_6259": "1 erreur trouvée dans {0}", + "Found_1_error_in_1_6259": "1 erreur trouvée dans {1}", "Found_package_json_at_0_6099": "'package.json' trouvé sur '{0}'.", - "Found_peerDependency_0_with_1_version_6282": "PeerDependency '{0}' trouvé avec '{1}' version.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Les déclarations de fonction ne sont pas autorisées à l’intérieur des blocs en mode strict lors du ciblage de « ES5 ».", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Les déclarations de fonction ne sont pas autorisées à l’intérieur des blocs en mode strict lors du ciblage de « ES5 ». Les définitions de classe sont automatiquement en mode strict.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Les déclarations de fonction ne sont pas autorisées à l’intérieur des blocs en mode strict lors du ciblage de « ES5 ». Les modules sont automatiquement en mode strict.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'. Les définitions de classe sont automatiquement en mode strict.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Les déclarations de fonction ne sont pas autorisées dans les blocs en mode strict durant le ciblage de la version 'ES3' ou 'ES5'. Les modules sont automatiquement en mode strict.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "L'expression de fonction, qui ne dispose pas d'annotation de type de retour, possède implicitement un type de retour '{0}'.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "L'implémentation de fonction est manquante ou ne suit pas immédiatement la déclaration.", "Function_implementation_name_must_be_0_2389": "Le nom de l'implémentation de fonction doit être '{0}'.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La fonction possède implicitement le type de retour 'any', car elle n'a pas d'annotation de type de retour, et est référencée directement ou indirectement dans l'une de ses expressions de retour.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "La fonction n'a pas d'instruction return de fin, et le type de retour n'inclut pas 'undefined'.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "La fonction doit avoir une annotation de type de retour explicite avec --isolatedDeclarations.", "Function_not_implemented_95159": "Fonction non implémentée.", "Function_overload_must_be_static_2387": "La surcharge de fonction doit être statique.", "Function_overload_must_not_be_static_2388": "La surcharge de fonction ne doit pas être statique.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Génère une trace d'événement et une liste de types.", "Generates_corresponding_d_ts_file_6002": "Génère le fichier '.d.ts' correspondant.", "Generates_corresponding_map_file_6043": "Génère le fichier '.map' correspondant.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Le générateur a implicitement un type de rendement « {0} ». Envisagez de fournir une annotation de type de retour.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Le générateur a implicitement le type '{0}', car il ne génère aucune valeur. Indiquez une annotation de type de retour.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Les générateurs ne sont pas autorisés dans un contexte ambiant.", "Generic_type_0_requires_1_type_argument_s_2314": "Le type générique '{0}' exige {1} argument(s) de type.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Le type générique '{0}' nécessite entre {1} et {2} arguments de type.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Identificateur attendu.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificateur attendu. '__esModule' est réservé en tant que marqueur exporté durant la transformation des modules ECMAScript.", "Identifier_or_string_literal_expected_1478": "Identificateur ou littéral de chaîne attendu", - "Identifier_string_literal_or_number_literal_expected_1496": "Identificateur, littéral de chaîne ou littéral de nombre attendu.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si le package '{0}' expose réellement ce module, envoyez une demande de tirage (pull request) pour modifier 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si le package' {0} 'expose effectivement ce module, essayez d’ajouter un nouveau fichier de déclaration (. d. TS) contenant’declare module' {1} '; '", "Ignore_this_error_message_90019": "Ignorer ce message d'erreur", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implémenter l'interface '{0}'", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La clause implements de la classe exportée '{0}' possède ou utilise le nom privé '{1}'.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversion implicite de 'symbol' en 'string' va échouer au moment de l'exécution. Incluez dans un wrapper cette expression en 'String(...)'.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "L’importation «{0}» est en conflit avec la valeur globale utilisée dans ce fichier. Elle doit donc être déclarée avec une importation de type uniquement lorsque ' isolatedModules ' est activé.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "L’importation '{0}' est en conflit avec la valeur locale. Elle doit donc être déclarée avec une importation de type uniquement lorsque 'isolatedModules' est activé.", "Import_0_from_1_90013": "Importez '{0}' à partir de \"{1}\".", "Import_assertion_values_must_be_string_literal_expressions_2837": "Les valeurs d’assertion d’importation doivent être des expressions littérales de chaîne.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Les assertions d’importation ne sont pas autorisées sur les instructions qui se compilent en appels CommonJS ' require'.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Les assertions d’importation sont prises en charge uniquement lorsque l’option « --module » est définie sur « esnext », « node18 », « nodenext » ou « preserve ».", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Les assertions d’importation ne sont pas autorisées sur les instructions qui transpilent en appels commonjs « require ».", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Les assertions d’importation ne sont prises en charge que lorsque l’option « --module » a la valeur « esnext » ou « nodenext ».", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Les assertions d’importation ne peuvent pas être utilisées avec les importations ou exportations de type uniquement.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Les assertions d’importation ont été remplacées par des attributs d’importation. Utilisez 'with' à la place de 'assert'.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Vous ne pouvez pas utiliser l'assignation d'importation pour cibler des modules ECMAScript. Utilisez plutôt 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' ou un autre format de module.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Les valeurs d’attribut d’importation doivent être des expressions littérales de chaîne.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Les attributs d’importation ne sont pas autorisés sur les instructions qui se compilent en appels CommonJS ' require'.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Les attributs d’importation sont pris en charge uniquement lorsque l’option « --module » a la valeur « esnext », « node18 », « nodenext » ou « preserve ».", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Les attributs d’importation ne peuvent pas être utilisés avec des importations ou des exportations de type uniquement.", "Import_declaration_0_is_using_private_name_1_4000": "La déclaration d'importation '{0}' utilise le nom privé '{1}'.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La déclaration d'importation est en conflit avec la déclaration locale de '{0}'.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Les déclarations d'importation dans un espace de noms ne peuvent pas référencer un module.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}'", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}' pour importer 'importHelpers' comme indiqué dans compilerOptions", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importé(e) via {0} à partir du fichier '{1}' ayant le packageId '{2}' pour importer les fonctions de fabrique 'jsx' et 'jsxs'", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "L'importation d'un fichier JSON dans un module ECMAScript nécessite un attribut d'importation « type : « json » » lorsque « module » est défini sur « {0} ».", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Les importations ne sont pas autorisées dans les augmentations de module. Déplacez-les vers le module externe englobant.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Dans les déclarations d'enums ambiants, l'initialiseur de membre doit être une expression constante.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Dans un enum avec plusieurs déclarations, seule une déclaration peut omettre un initialiseur pour son premier élément d'enum.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Incluez les fichiers sourcemap à l’intérieur du Code JavaScript émis.", "Includes_imports_of_types_referenced_by_0_90054": "Inclut les importations de types référencés par « {0} »", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "En incluant --watch, -w commence à regarder le projet actuel pour les modifications apportées au fichier. Une fois défini, vous pouvez configurer le mode espion avec :", - "Incomplete_quantifier_Digit_expected_1505": "Quantificateur incomplet. Chiffre attendu.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "La signature d’index pour le type « {0} » est manquante dans le type « {1} ».", "Index_signature_in_type_0_only_permits_reading_2542": "La signature d'index du type '{0}' autorise uniquement la lecture.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Les déclarations individuelles de la déclaration fusionnée '{0}' doivent toutes être exportées ou locales.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Déduire les types des paramètres à partir de l'utilisation", "Infer_this_type_of_0_from_usage_95080": "Déduire le type 'this' de '{0}' à partir de l'utilisation", "Infer_type_of_0_from_usage_95011": "Déduire le type de '{0}' à partir de l'utilisation", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "L’inférence des expressions de classe n’est pas prise en charge avec --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Initialiser la propriété '{0}' dans le constructeur", "Initialize_static_property_0_90021": "Initialiser la propriété statique '{0}'", "Initializer_for_property_0_2811": "Initialiseur de la propriété '{0}'", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "L'initialiseur de la variable membre d'instance '{0}' ne peut pas référencer l'identificateur '{1}' déclaré dans le constructeur.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "L'initialiseur ne fournit aucune valeur pour cet élément de liaison, et ce dernier n'a pas de valeur par défaut.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Les initialiseurs ne sont pas autorisés dans les contextes ambiants.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Initialise un projet TypeScript et crée un fichier tsconfig.json.", - "Inline_variable_95184": "Variable inline", "Insert_command_line_options_and_files_from_a_file_6030": "Insérer les options de ligne de commande et les fichiers à partir d'un fichier texte.", "Install_0_95014": "Installer '{0}'", "Install_all_missing_types_packages_95033": "Installer tous les packages de types manquants", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nom de module non valide dans l'augmentation. Le module '{0}' est introuvable.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Chaîne facultative non valide à partir de la nouvelle expression. Voulez-vous appeler '{0}()' ?", "Invalid_reference_directive_syntax_1084": "Syntaxe de directive 'reference' non valide.", - "Invalid_syntax_in_decorator_1498": "Syntaxe non valide dans l’élément décoratif.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Utilisation non valide de « {0} ». Il ne peut pas être utilisé à l’intérieur d’un bloc statique de classe.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Utilisation non valide de '{0}'. Les modules sont automatiquement en mode strict.", "Invalid_use_of_0_in_strict_mode_1100": "Utilisation non valide de '{0}' en mode strict.", - "Invalid_value_for_ignoreDeprecations_5103": "Valeur non valide pour '--ignoreDeprecations'.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Valeur non valide pour 'jsxFactory'. '{0}' n'est pas un identificateur valide ou un nom qualifié.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Valeur non valide pour 'jsxFragmentFactory'. '{0}' n'est pas un identificateur valide ou un nom qualifié.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Valeur non valide pour '--reactNamespace'. '{0}' n'est pas un identificateur valide.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Son type d'élément '{0}' n'est pas un élément JSX valide.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Son type d'instance '{0}' n'est pas un élément JSX valide.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Son type de retour '{0}' n'est pas un élément JSX valide.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Son type '{0}' n’est pas un type d’élément JSX valide.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "La balise JSDoc '@{0} {1}' ne correspond pas à la clause 'extends {2}'.", "JSDoc_0_is_not_attached_to_a_class_8022": "La balise JSDoc '@{0}' n'est pas attachée à une classe.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' peut apparaître uniquement dans le dernier paramètre d'une signature.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "La balise JSDoc '@param' se nomme '{0}', mais il n'existe aucun paramètre portant ce nom.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "La balise JSDoc '@param' se nomme '{0}', mais il n'existe aucun paramètre portant ce nom. Elle doit correspondre à 'arguments', si elle est de type tableau.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "Le typedef JSDoc peut être converti en type TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "La balise JSDoc '@typedef' doit avoir une annotation de type ou être suivie des balises '@property' ou '@member'.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "Les typedefs JSDoc peuvent être convertis en types TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Les types JSDoc peuvent uniquement être utilisés dans les commentaires de la documentation.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Les types JSDoc peuvent être déplacés vers les types TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Les attributs JSX doivent uniquement être attribués à une 'expression' non vide.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Liste des dossiers à partir desquels inclure les définitions de type.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Liste des dossiers racines dont le contenu combiné représente la structure du projet au moment de l'exécution.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Chargement de '{0}' à partir du répertoire racine '{1}', emplacement candidat '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Chargement du module «{0}» à partir du dossier « node_modules », types de fichiers cibles : {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Chargement du module en tant que fichier/dossier, emplacement du module candidat '{0}', types de fichiers cibles : {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Chargement du module '{0}' à partir du dossier 'node_modules'. Type du fichier cible '{1}'.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Chargement du module en tant que fichier/dossier. Emplacement du module candidat '{0}'. Type de fichier cible '{1}'.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Les paramètres régionaux doivent être sous la forme ou -. Par exemple, '{0}' ou '{1}'.", "Log_paths_used_during_the_moduleResolution_process_6706": "Chemins d’accès de journal utilisés pendant le processus « moduleResolution ».", "Longest_matching_prefix_for_0_is_1_6108": "Le préfixe correspondant le plus long pour '{0}' est '{1}'.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Faites en sorte que keyof retourne uniquement des chaînes au lieu de chaînes, de nombres ou de symboles. Option héritée.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Faire de l'appel à 'super()' la première instruction du constructeur", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Le type d'objet mappé a implicitement un type de modèle 'any'.", - "Mark_array_literal_as_const_90070": "Marquer le littéral du tableau comme const", "Matched_0_condition_1_6403": "Condition '{0}' correspondant à '{1}'.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Mise en correspondance par défaut du modèle include '**/*'", "Matched_by_include_pattern_0_in_1_1407": "Correspond au modèle include '{0}' dans '{1}'", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "La méthode '{0}' ne peut pas avoir d'implémentation, car elle est marquée comme étant abstraite.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "La méthode '{0}' de l'interface exportée comporte ou utilise le nom '{1}' du module privé '{2}'.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "La méthode '{0}' de l'interface exportée comporte ou utilise le nom privé '{1}'.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "La méthode doit avoir une annotation de type de retour explicite avec --isolatedDeclarations.", "Method_not_implemented_95158": "Méthode non implémentée.", "Modifiers_cannot_appear_here_1184": "Les modificateurs ne peuvent pas apparaître ici.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Le module '{0}' peut uniquement être importé par défaut à l'aide de l'indicateur '{1}'", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Le module '{0}' n'a aucun membre exporté '{1}'. Est-ce que vous avez voulu utiliser 'import {1} from {0}' à la place ?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Le module '{0}' est masqué par une déclaration locale portant le même nom.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Le module '{0}' utilise 'export =' et ne peut pas être utilisé avec 'export *'.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Le module '{0}' a été résolu en tant que module ambiant déclaré dans '{1}', car ce fichier n'a pas été modifié.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Le module '{0}' a été résolu en tant que module ambiant déclaré localement dans le fichier '{1}'.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Le module «{0}» a été résolu en «{1}», mais « --allowArbitraryExtensions » n’est pas défini.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Le module '{0}' a été résolu en '{1}' mais '--jsx' n'est pas défini.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Le module '{0}' a été résolu en '{1}' mais '--resolveJsonModule' n'est pas utilisé.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Les noms de déclaration de module ne peuvent utiliser que des chaînes entre guillemets.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Échec de la résolution de module à l'aide de 'rootDirs'.", "Modules_6244": "Modules", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Déplacer les modificateurs d'élément de tuple étiqueté vers les étiquettes", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Déplacez l’expression dans l’exportation par défaut vers une variable et ajoutez-y une annotation de type.", "Move_to_a_new_file_95049": "Déplacer vers un nouveau fichier", - "Move_to_file_95178": "Déplacer vers le fichier", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Les séparateurs numériques consécutifs multiples ne sont pas autorisés.", "Multiple_constructor_implementations_are_not_allowed_2392": "Les implémentations de plusieurs constructeurs ne sont pas autorisées.", "NEWLINE_6061": "NOUVELLE LIGNE", "Name_is_not_valid_95136": "Le nom n'est pas valide", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Les groupes de capture nommés sont disponibles uniquement lorsque vous ciblez « ES2018 » ou une version ultérieure.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Les groupes de capture nommés portant le même nom doivent s’excluent mutuellement les uns des autres.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Les importations nommées d'un fichier JSON dans un module ECMAScript ne sont pas autorisées lorsque « module » est défini sur '{0}'.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "La propriété nommée '{0}' des types '{1}' et '{2}' n'est pas identique.", "Namespace_0_has_no_exported_member_1_2694": "L'espace de noms '{0}' n'a aucun membre exporté '{1}'.", "Namespace_must_be_given_a_name_1437": "Un nom doit être attribué à l’espace de noms.", "Namespace_name_cannot_be_0_2819": "L’espace de noms ne peut pas être «{0}».", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Les espaces de noms ne sont pas autorisés dans les fichiers de script globaux lorsque «{0}» est activé. Si ce fichier n’est pas destiné à être un script global, définissez 'moduleDetection' sur 'force' ou ajoutez une instruction 'export {}' vide.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "Ni les décorateurs ni les modificateurs ne peuvent être appliqués aux paramètres « this ».", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Aucun constructeur de base n'a le nombre spécifié d'arguments de type.", "No_constituent_of_type_0_is_callable_2755": "Aucun constituant de type '{0}' ne peut être appelé.", "No_constituent_of_type_0_is_constructable_2759": "Aucun constituant de type '{0}' ne peut être construit.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Aucune surcharge ne correspond à cet appel.", "No_type_could_be_extracted_from_this_type_node_95134": "Aucun type n'a pu être extrait de ce nœud de type", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Il n'existe aucune valeur dans l'étendue de la propriété raccourcie '{0}'. Vous devez en déclarez une, ou fournir un initialiseur.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non abstraite « {0} » n'implémente pas le membre abstrait « {1} » hérité de la classe « {2} ».", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "Les implémentations de la classe non abstraite '{0}' sont manquantes pour les membres suivants de '{1}' : {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "Les implémentations de la classe non abstraite '{0}' sont manquantes pour les membres suivants de '{1}' : {2} et {3} plus encore.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non abstraite '{0}' n'implémente pas le membre abstrait '{1}' hérité de la classe '{2}'.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "L'expression de classe non abstraite '{0}' n'implémente pas le membre abstrait hérité '{0}' de la classe '{1}'.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Les implémentations de l’expression de classe non abstraite sont manquantes pour les membres suivants de '{0}' : {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Il manque des implémentations d’expression de classe non abstraite pour les membres suivants de '{0}' : {1} et {2} plus.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Les assertions non null peuvent uniquement être utilisées dans les fichiers TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Les chemins non relatifs ne sont pas autorisés quand 'baseUrl' n'est pas défini. Avez-vous oublié './' au début ?", "Non_simple_parameter_declared_here_1348": "Paramètre non simple déclaré ici.", "Not_all_code_paths_return_a_value_7030": "Les chemins du code ne retournent pas tous une valeur.", "Not_all_constituents_of_type_0_are_callable_2756": "Tous les constituants de type '{0}' ne peuvent pas être appelés.", "Not_all_constituents_of_type_0_are_constructable_2760": "Tous les constituants de type '{0}' ne peuvent pas être construits.", - "Numbers_out_of_order_in_quantifier_1506": "Nombres incommandants dans le quantificateur.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Les littéraux numériques ayant des valeurs absolues égales ou supérieures à 2^53 sont trop grands pour être représentés avec précision sous forme d'entiers.", "Numeric_separators_are_not_allowed_here_6188": "Les séparateurs numériques ne sont pas autorisés ici.", "Object_is_of_type_unknown_2571": "L'objet est de type 'unknown'.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Un littéral d'objet peut uniquement spécifier des propriétés connues, et '{0}' n'existe pas dans le type '{1}'.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Un littéral d'objet peut uniquement spécifier des propriétés connues, mais '{0}' n'existe pas dans le type '{1}'. Est-ce que vous avez voulu écrire '{2}' ?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La propriété '{0}' du littéral d'objet possède implicitement un type '{1}'.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Les objets qui contiennent des propriétés raccourcies ne peuvent pas être déduits avec --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Les objets qui contiennent des affectations de propagation ne peuvent pas être déduits avec --isolatedDeclarations.", "Octal_digit_expected_1178": "Chiffre octal attendu.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Les séquences d’échappement octales et les références arrière ne sont pas autorisées dans une classe de caractères. S’il s’agissait d’une séquence d’échappement, utilisez la syntaxe '{0}' à la place.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Les séquences d’échappement octales ne sont pas autorisées. Utilisez la syntaxe '{0}'.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Les littéraux octaux ne sont pas autorisés. Utilisez la syntaxe '{0}'.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Une valeur de '{0}.{1}' est la chaîne '{2}', et l’autre est supposé être une valeur numérique inconnue.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Les types de littéral octal doivent utiliser la syntaxe ES2015. Utilisez la syntaxe '{0}'.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Les littéraux octaux ne sont pas autorisés dans l'initialiseur des membres d'enums. Utilisez la syntaxe '{0}'.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Les littéraux octaux ne sont pas autorisés en mode strict.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Les littéraux octaux ne sont pas disponibles lorsque vous ciblez ECMAScript 5 et ultérieur. Utilisez la syntaxe '{0}'.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "Une seule déclaration de variable est autorisée dans une instruction 'for...in'.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "Seule une déclaration de variable unique est autorisée dans une instruction 'for...of'.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Seule une fonction void peut être appelée avec le mot clé 'new'.", "Only_ambient_modules_can_use_quoted_names_1035": "Seuls les modules ambiants peuvent utiliser des noms entre guillemets.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Seuls les modules 'amd' et 'system' sont pris en charge avec --{0}.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Seuls les tableaux const peuvent être déduits avec --isolatedDeclarations.", "Only_emit_d_ts_declaration_files_6014": "Émettez uniquement les fichiers de déclaration '.d.ts'.", + "Only_named_exports_may_use_export_type_1383": "Seules les exportations nommées peuvent utiliser 'export type'.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Seules les enums numériques peuvent avoir des membres calculés, mais cette expression a le type '{0}'. Si vous n'avez pas besoin de contrôles d'exhaustivité, utilisez un littéral d'objet à la place.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Sortie uniquement des fichiers d.ts et non des fichiers JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Seules les méthodes publiques et protégées de la classe de base sont accessibles par le biais du mot clé 'super'.", "Operator_0_cannot_be_applied_to_type_1_2736": "Impossible d'appliquer l'opérateur '{0}' au type '{1}'.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Impossible d'appliquer l'opérateur '{0}' aux types '{1}' et '{2}'.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Les opérateurs ne doivent pas être mixtes dans une classe de caractères. Encapsulez-le dans une classe imbriqué à la place.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Choisir un projet en dehors de la vérification des références multiprojets lors de l’édition.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "L’option '{0}={1}' a été supprimée. Supprimez-le de votre configuration.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "L’option '{0}={1}' est déconseillée et cessera de fonctionner dans TypeScript {2}. Spécifiez compilerOption « ignoreDeprecations » : «{3}« » pour désactiver cette erreur.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Vous pouvez spécifier l'option '{0}' uniquement dans le fichier 'tsconfig.json', ou lui affecter la valeur 'false' ou 'null' sur la ligne de commande.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Vous pouvez spécifier l'option '{0}' uniquement dans le fichier 'tsconfig.json', ou lui affecter la valeur 'null' sur la ligne de commande.", - "Option_0_can_only_be_specified_on_command_line_6266": "L’option '{0}' ne peut être spécifiée que sur la ligne de commande.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "L'option '{0}' peut être utilisée uniquement quand l'option '--inlineSourceMap' ou l'option '--sourceMap' est spécifiée.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "L’option '{0}' ne peut être utilisée que lorsque 'moduleResolution' a la valeur 'node16', 'nodenext' ou 'bundler'.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "L’option '{0}' ne peut être utilisée que lorsque 'module' a la valeur 'preserve' ou 'es2015' ou version ultérieure.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Impossible de spécifier l'option '{0}' quand l'option 'jsx' a la valeur '{1}'.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Impossible de spécifier l'option '{0}' quand l'option 'target' est 'ES3'.", "Option_0_cannot_be_specified_with_option_1_5053": "Impossible de spécifier l'option '{0}' avec l'option '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Impossible de spécifier l'option '{0}' sans spécifier l'option '{1}' ou l'option '{2}'.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "L’option «{0}» a été supprimée. Supprimez-le de votre configuration.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "L’option '{0}' est déconseillée et cessera de fonctionner dans TypeScript {1}. Spécifiez compilerOption « ignoreDeprecations » : «{2}« » pour désactiver cette erreur.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "L’option '{0}' est redondante et ne peut pas être spécifiée avec l’option '{1}'.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "L’option 'allowImportingTsExtensions' ne peut être utilisée que lorsque 'noEmit' ou 'emitDeclarationOnly' est défini.", "Option_build_must_be_the_first_command_line_argument_6369": "L'option '--build' doit être le premier argument de ligne de commande.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "L'option '--incremental' peut uniquement être spécifiée à l'aide de tsconfig, en cas d'émission vers un seul fichier ou quand l'option '--tsBuildInfoFile' est spécifiée.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'option 'isolatedModules' peut être utilisée seulement quand l'option '--module' est spécifiée, ou quand l'option 'target' a la valeur 'ES2015' ou une version supérieure.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "L’option 'moduleResolution' doit avoir la valeur '{0}' (ou laisser non spécifiée) lorsque l’option 'module' a la valeur '{1}'.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "L’option 'module' doit être définie sur '{0}' quand l’option 'moduleResolution' a la valeur '{1}'.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "L’option 'preserveConstEnums' ne peut pas être désactivée quand '{0}' est activé.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "L'option 'preserveConstEnums' ne peut pas être désactivée quand 'isolatedModules' est activé.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L’option « preserveValueImports » peut uniquement être utilisée quand « module » a la valeur « es2015 » ou une version ultérieure.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Impossible d'associer l'option 'project' à des fichiers sources sur une ligne de commande.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Impossible de spécifier l’option '--resolveJsonModule' quand 'moduleResolution' a la valeur 'classic'.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Impossible de spécifier l’option '--resolveJsonModule' quand 'module' a la valeur 'none', 'system' ou 'umd'.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "L’option 'verbatimModuleSyntax' ne peut pas être utilisée quand 'module' a la valeur 'UMD', 'AMD' ou 'System'.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "L'option '--resolveJsonModule' peut uniquement être spécifiée quand la génération du code de module est 'commonjs', 'amd', 'es2015' ou 'esNext'.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Impossible de spécifier l'option '--resolveJsonModule' sans la stratégie de résolution de module 'node'.", "Options_0_and_1_cannot_be_combined_6370": "Impossible de combiner les options '{0}' et '{1}'.", "Options_Colon_6027": "Options :", "Output_Formatting_6256": "Mise en forme de sortie", "Output_compiler_performance_information_after_building_6615": "Informations de performances du compilateur de sortie après la génération.", "Output_directory_for_generated_declaration_files_6166": "Répertoire de sortie pour les fichiers de déclaration générés.", + "Output_file_0_from_project_1_does_not_exist_6309": "Le fichier de sortie '{0}' du projet '{1}' n'existe pas", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Le fichier de sortie '{0}' n'a pas été créé à partir du fichier source '{1}'.", "Output_from_referenced_project_0_included_because_1_specified_1411": "Sortie du projet référencé '{0}' incluse, car '{1}' est spécifié", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Sortie du projet référencé '{0}' incluse, car '--module' est spécifié en tant que 'none'", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Déclaration de paramètre attendue.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Le paramètre a un nom mais aucun type. Est-ce que vous avez voulu utiliser '{0} : {1}' ?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Les modificateurs de paramètres peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Le paramètre doit avoir une annotation de type explicite avec --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom privé '{1}'.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Le type de paramètre du setter public '{0}' de la classe exportée porte ou utilise le nom '{1}' du module privé '{2}'.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Imprimez les noms des fichiers émis après une compilation.", "Print_this_message_6017": "Imprimez ce message.", "Private_accessor_was_defined_without_a_getter_2806": "L'accesseur privé a été défini sans getter.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Le champ privé '{0}' doit être déclaré dans une classe englobante.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Les identificateurs privés ne sont pas autorisés dans les déclarations de variable.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Les identificateurs privés ne sont pas autorisés en dehors des corps de classe.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Les identificateurs privés ne sont autorisés que dans les corps de classe et ne peuvent être utilisés que dans le cadre d’une déclaration de membre de classe, d’accès à une propriété ou de la partie gauche d’une expression ’in'", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Les identificateurs privés sont disponibles uniquement durant le ciblage d'ECMAScript 2015 et version ultérieure.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Les identificateurs privés ne peuvent pas être utilisés en tant que paramètres.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Le membre privé ou protégé '{0}' n'est pas accessible sur un paramètre de type.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Impossible de générer le projet '{0}' car sa dépendance '{1}' comporte des erreurs", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Impossible de générer le projet '{0}', car sa dépendance '{1}' n'a pas été générée", "Project_0_is_being_forcibly_rebuilt_6388": "Le projet « {0} » est en cours de régénération forcée", - "Project_0_is_out_of_date_because_1_6420": "Le projet '{0}' est obsolète car {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Le projet «{0}» est obsolète, car le fichier buildinfo «{1}» indique que le fichier «{2}» était un fichier racine de compilation, mais pas plus.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Le projet «{0}» est obsolète, car le fichier buildinfo «{1}» indique que le programme doit signaler des erreurs.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Le projet « {0} » est obsolète, car le fichier buildinfo « {1} » indique que certaines modifications n’ont pas été émises", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Le projet '{0}' est obsolète, car le fichier buildinfo '{1}' indique qu’il y a un changement dans compilerOptions", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Le projet '{0}' est obsolète car sa dépendance '{1}' est obsolète", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Le projet '{0}' est obsolète car la sortie (« {1} ») est antérieure à l'entrée « {2} »", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Le projet '{0}' est obsolète car le fichier de sortie '{1}' n'existe pas", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Le projet '{0}' est obsolète, car sa sortie a été générée avec la version '{1}', qui diffère de la version actuelle '{2}'", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Le projet '{0}' est obsolète, car la sortie de sa dépendance '{1}' a changé", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Le projet « {0} » est obsolète car une erreur s'est produite lors de la lecture du fichier « {1} »", "Project_0_is_up_to_date_6361": "Le projet '{0}' est à jour", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Le projet « {0} » est à jour car l'entrée la plus récente (« {1} ») est antérieure à la sortie (« {2} »)", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "La propriété '{0}' est utilisée avant son initialisation.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La propriété «{0}» n'existe pas sur le type «{1}». Est-ce qu'il ne s'agit pas plutôt de «{2}»?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Impossible d'assigner la propriété '{0}' de l'attribut spread JSX à la propriété cible.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "La propriété '{0}' du type de classe anonyme exporté ne peut pas être privée ou protégée.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La propriété '{0}' de l'expression de classe exportée ne peut pas être privée ou protégée.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La propriété '{0}' de l'interface exportée possède ou utilise le nom '{1}' du module privé '{2}'.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La propriété '{0}' de l'interface exportée possède ou utilise le nom privé '{1}'.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La propriété « {0} » de type « {1} » ne peut pas être attribuée au type d’index « {2} », « {3} ».", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La propriété '{0}' va remplacer la propriété de base dans '{1}'. Si cela est intentionnel, ajoutez un initialiseur. Sinon, ajoutez un modificateur 'declare', ou supprimez la déclaration redondante.", "Property_assignment_expected_1136": "Assignation de propriété attendue.", "Property_destructuring_pattern_expected_1180": "Modèle de déstructuration de propriété attendu.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "La propriété doit avoir une annotation de type explicite avec --isolatedDeclarations.", "Property_or_signature_expected_1131": "Propriété ou signature attendue.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "La valeur de la propriété peut être uniquement un littéral de chaîne, un littéral numérique, 'true', 'false', 'null', un littéral d'objet ou un littéral de tableau.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Fournissez une prise en charge complète des itérables dans 'for-of', la propagation et la destruction lors du ciblage de 'ES5'.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Fournissez une prise en charge complète des éléments pouvant faire l'objet d'une itération dans 'for-of', de l'opérateur spread et de la déstructuration durant le ciblage d''ES5' ou 'ES3'.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module externe {2} mais ne peut pas être nommée.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom '{1}' du module privé '{2}'.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "La méthode publique '{0}' de la classe exportée comporte ou utilise le nom privé '{1}'.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Déclencher une erreur quand un paramètre de fonction n’est pas lu.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Lever une erreur sur les expressions et les déclarations ayant un type 'any' implicite.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Déclenche une erreur sur les expressions 'this' avec un type 'any' implicite.", - "Range_out_of_order_in_character_class_1517": "Plage dans l’ordre dans la classe de caractères.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "La réexportation d’un type lorsque «{0}» est activé nécessite l’utilisation de « type d’exportation ».", - "React_components_cannot_include_JSX_namespace_names_2639": "Les composants React ne peuvent pas inclure de noms d’espace de noms JSX", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "La réexportation d'un type quand l'indicateur '--isolatedModules' est spécifié nécessite l'utilisation de 'export type'.", "Redirect_output_structure_to_the_directory_6006": "Rediriger la structure de sortie vers le répertoire.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Réduisez le nombre de projets chargés automatiquement par TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "Le projet référencé '{0}' ne doit pas désactiver l'émission.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Le projet référencé '{0}' doit avoir le paramètre \"composite\" avec la valeur true.", "Referenced_via_0_from_file_1_1400": "Référencé(e) via '{0}' à partir du fichier '{1}'", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Les chemins d’importation relatifs ont besoin d’extensions de fichier explicites dans les importations ECMAScript lorsque '--moduleResolution' est 'node16' ou 'nodenext'. Envisagez d’ajouter une extension au chemin d’importation.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Les chemins d’importation relatifs ont besoin d’extensions de fichier explicites dans les importations ECMAScript lorsque '--moduleResolution' est 'node16' ou 'nodenext'. Est-ce que vous avez voulu utiliser '{0}' ?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Les chemins d’importation relatifs nécessitent des extensions de fichier explicites dans les importations EcmaScript quand '--moduleResolution' est 'node16' ou 'nodenext'. Envisagez d’ajouter une extension au chemin d’importation.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Les chemins d’importation relatifs ont besoin d’extensions de fichier explicites dans les importations EcmaScript quand '--moduleResolution' est 'node16' ou 'nodenext'. Voulez-vous dire «{0}» ?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Supprimez une liste de répertoires du processus d’observation.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Supprimez une liste de fichiers du traitement du mode espion.", "Remove_all_unnecessary_override_modifiers_95163": "Supprimer tous les modificateurs 'override' inutiles", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Signalez les erreurs dans les fichiers .js.", "Report_errors_on_unused_locals_6134": "Signaler les erreurs sur les variables locales inutilisées.", "Report_errors_on_unused_parameters_6135": "Signaler les erreurs sur les paramètres inutilisés.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Exiger une annotation suffisante sur les exportations afin que d’autres outils puissent générer de manière triviale des fichiers de déclaration.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Les propriétés non déclarées sont imposées à partir des signatures d'index pour permettre l'utilisation des accès aux éléments.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Les paramètres de type obligatoires ne peuvent pas être placés à la suite des paramètres de type optionnels.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La résolution du module '{0}' a été trouvée dans le cache à l'emplacement '{1}'.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La résolution de la directive de référence de type '{0}' a été trouvée dans le cache à l'emplacement '{1}'.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Échec de la résolution du nom non relatif ; tentative avec les fonctionnalités de résolution de nœud modernes désactivées pour voir si la bibliothèque npm a besoin d’une mise à jour de configuration.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Échec de la résolution du nom non relatif ; en essayant avec '--moduleResolution bundler' pour voir si le projet peut avoir besoin d’une mise à jour de configuration.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Résoudre 'keyof' en noms de propriétés de valeur chaîne uniquement (aucun nombre ou symbole).", - "Resolved_under_condition_0_6414": "Résolu sous la condition '{0}'.", "Resolving_in_0_mode_with_conditions_1_6402": "Résolution en mode {0} avec des conditions {1}.", "Resolving_module_0_from_1_6086": "======== Résolution du module '{0}' à partir de '{1}'. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Résolution du nom de module '{0}' par rapport à l'URL de base '{1}' - '{2}'.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Résolution de la directive de référence de type '{0}', fichier conteneur '{1}', répertoire racine non défini. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Résolution de la directive de référence de type '{0}', fichier conteneur non défini, répertoire racine '{1}'. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Résolution de la directive de référence de type '{0}', fichier conteneur non défini, répertoire racine non défini. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Résolution de la directive de référence de type pour le programme qui spécifie des typesRoots personnalisés, en ignorant la recherche dans le dossier « node_modules ».", "Resolving_with_primary_search_path_0_6121": "Résolution à l'aide du chemin de recherche primaire '{0}'.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Le paramètre rest '{0}' possède implicitement un type 'any[]'.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Le paramètre Rest '{0}' a implicitement un type 'any[]', mais il est possible de déduire un meilleur type à partir de l'utilisation.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "En réutilisant la résolution de la directive de référence de type « {0} » à partir de « {1} » de l’ancien programme, l’erreur a été résolue dans « {2} » avec l’ID de package « {3} ».", "Rewrite_all_as_indexed_access_types_95034": "Réécrire tout comme types d'accès indexés", "Rewrite_as_the_indexed_access_type_0_90026": "Réécrire en tant que type d'accès indexé '{0}'", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Réécrivez les extensions de fichier « .ts », « .tsx », « .mts » et « .cts » dans les chemins d'importation relatifs vers leur équivalent JavaScript dans les fichiers de sortie.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Opérande droit de ?? est inaccessible, car l’opérande de gauche n’est jamais nullish.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Impossible de déterminer le répertoire racine, chemins de recherche primaires ignorés.", "Root_file_specified_for_compilation_1427": "Fichier racine spécifié pour la compilation", "STRATEGY_6039": "STRATÉGIE", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Enregistrez les fichiers .tsbuildinfo pour permettre la compilation incrémentielle des projets.", "Saw_non_matching_condition_0_6405": "Condition non correspondante '{0}' visible.", "Scoped_package_detected_looking_in_0_6182": "Package de portée détecté. Recherche dans '{0}'", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Recherche d’extensions de secours dans tous les répertoires node_modules ancêtres : {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Recherche d’extensions préférées dans tous les répertoires node_modules ancêtres : {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "La sélection ne correspond pas à une ou des instructions valides", "Selection_is_not_a_valid_type_node_95133": "La sélection n'est pas un nœud de type valide", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Définissez la version du langage JavaScript pour JavaScript émis et incluez des déclarations de bibliothèque compatibles.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Affichez les informations de diagnostic détaillées.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Montrer ce qui serait généré (ou supprimé si '--clean' est spécifié)", "Signature_0_must_be_a_type_predicate_1224": "La signature '{0}' doit être un prédicat de type.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Les déclarations de signature peuvent uniquement être utilisées dans les fichiers TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Ignorer la génération de projets en aval en cas d’erreur dans le projet en amont.", "Skip_type_checking_all_d_ts_files_6693": "Ignorer la vérification de type dans tous les fichiers .d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Ignorer la vérification de type des fichiers .d.ts inclus dans TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Ignorer le contrôle de type des fichiers de déclaration.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Le module '{0}' qui ressemble à un URI absolu, types de fichiers cibles : {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Ignorer la génération du projet '{0}' car sa dépendance '{1}' comporte des erreurs", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Ignorer la build du projet '{0}', car sa dépendance '{1}' n'a pas été générée", "Source_from_referenced_project_0_included_because_1_specified_1414": "Source du projet référencé '{0}' incluse, car '{1}' est spécifié", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Source du projet référencé '{0}' incluse, car '--module' est spécifié en tant que 'none'", "Source_has_0_element_s_but_target_allows_only_1_2619": "La source a {0} élément(s) mais la cible n'en autorise que {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Spécifiez le fonctionnement du mode espion TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Spécifiez les fichiers bibliothèques à inclure dans la compilation.", "Specify_module_code_generation_6016": "Spécifier la génération de code de module.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Spécifiez la stratégie de résolution de module : 'node' (Node.js) ou 'classic' (version de TypeScript antérieure à 1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Spécifiez le spécificateur de module utilisé pour importer les fonctions de fabrique JSX lors de l’utilisation de « jsx: react-jsx* ».", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Spécifiez plusieurs dossiers qui agissent comme « ./node_modules/@types ».", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Spécifiez une ou plusieurs références de module de chemin d’accès ou de nœud aux fichiers de configuration de base dont les paramètres sont hérités.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Les membres statiques ne peuvent pas référencer des paramètres de type de classe.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La propriété statique '{0}' est en conflit avec la propriété intégrée 'Function.{0}' de la fonction constructeur '{1}'.", "String_literal_expected_1141": "Littéral de chaîne attendu.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Les noms d’importation et d’exportation de littéral de chaîne ne sont pas pris en charge lorsque l’indicateur « --module » a la valeur « es2015 » ou « es2020 ».", "String_literal_with_double_quotes_expected_1327": "Littéral de chaîne avec guillemets doubles attendu.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Stylisez les erreurs et les messages avec de la couleur et du contexte (expérimental).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Les indicateurs de sous-modèle doivent être présents lorsqu’il existe un signe moins.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Les prochaines déclarations de propriétés doivent avoir le même type. La propriété '{0}' doit avoir le type '{1}', mais elle a ici le type '{2}'.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Les déclarations de variable ultérieures doivent avoir le même type. La variable '{0}' doit être de type '{1}', mais elle a ici le type '{2}'.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Le type de la substitution '{0}' du modèle '{1}' est incorrect. Attente de 'string'. Obtention de '{2}'.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Les expressions de modèle étiquetées ne sont pas autorisées dans une chaîne facultative.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "La cible autorise uniquement {0} élément(s) mais la source peut en avoir plus.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "La cible nécessite {0} élément(s) mais la source peut en avoir moins.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "La signature cible offre trop peu d’arguments. {0} ou plus sont attendus, mais {1} ont été reçus.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Le modificateur '{0}' peut uniquement être utilisé dans les fichiers TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Impossible d'appliquer l'opérateur '{0}' au type 'symbol'.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "L'opérateur '{0}' n'est pas autorisé pour les types booléens. Utilisez '{1}' à la place.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La propriété '{0}' d'un itérateur asynchrone doit être une méthode.", "The_0_property_of_an_iterator_must_be_a_method_2767": "La propriété '{0}' d'un itérateur doit être une méthode.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Le type 'Object' peut être assigné à très peu d'autres types. Souhaitez-vous utiliser le type 'any' à la place ?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "L’indicateur Unicode (u) et l’indicateur Unicode Sets (v) ne peuvent pas être définis simultanément.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "Désolé... Nous ne pouvons pas référencer l’objet « arguments » dans une fonction arrow d’ES5. Utilisez plutôt une expression de fonction standard.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "L’objet « arguments » ne peut pas être référencé dans une fonction ou méthode asynchrone dans ES5. Utilisez une fonction ou méthode standard.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Impossible de référencer l'objet 'arguments' dans une fonction arrow dans ES3 et ES5. Utilisez plutôt une expression de fonction standard.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Les objets 'arguments' ne peuvent pas être référencés dans une fonction ou méthode async en ES3 et ES5. Utilisez une fonction ou méthode standard.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Le corps d'une instruction 'if' ne peut pas être l'instruction vide.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "L'appel aurait pu réussir sur cette implémentation, mais les signatures de surcharges de l'implémentation ne sont pas visibles en externe.", "The_character_set_of_the_input_files_6163": "Jeu de caractères des fichiers d'entrée.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Le type global 'JSX.{0}' ne peut pas avoir plusieurs propriétés.", "The_implementation_signature_is_declared_here_2750": "La signature d'implémentation est déclarée ici.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "La métapropriété « import.meta » n’est pas autorisée dans les fichiers qui seront intégrés dans la sortie CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La méta-propriété « import.meta » est autorisée uniquement lorsque l’option « --module » est « es2020 », « es2022 », « esnext », « system », « node16 », « node18 » ou « nodenext ».", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La méta-propriété 'import.meta' est autorisée uniquement lorsque l’option '--module' est 'es2020', 'es2022', 'esnext', 'system', 'node16' ou 'nodenext'.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Le type déduit de '{0}' ne peut pas être nommé sans référence à '{1}'. Cela n'est probablement pas portable. Une annotation de type est nécessaire.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Le type déduit de '{0}' référence un type avec une structure cyclique qui ne peut pas être sérialisée de manière triviale. Une annotation de type est nécessaire.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Le type déduit de '{0}' référence un type '{1}' inaccessible. Une annotation de type est nécessaire.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Le type déduit de ce nœud dépasse la longueur maximale que le compilateur va sérialiser. Une annotation de type explicite est nécessaire.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "L’initialiseur d’une déclaration « using » doit être un objet avec une méthode « [Symbol.dispose]() », ou avoir la valeur « null » ou « undefined ».", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "L’initialiseur d’une déclaration « await using » doit être un objet avec une méthode « [Symbol.asyncDispose]() » ou « [Symbol.dispose]5D;() », ou avoir la valeur « null » ou « undefined ».", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "L'intersection '{0}' a été réduite à 'never', car la propriété '{1}' existe dans plusieurs constituants et est privée dans certains d'entre eux.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "L'intersection '{0}' a été réduite à 'never', car la propriété '{1}' a des types en conflit dans certains constituants.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Le mot clé 'intrinsic' peut uniquement être utilisé pour déclarer les types intrinsèques fournis par le compilateur.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "La dernière surcharge a généré l'erreur suivante.", "The_last_overload_is_declared_here_2771": "La dernière surcharge est déclarée ici.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La partie gauche d'une instruction 'for...in' ne peut pas être un modèle de déstructuration.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "La partie gauche d’une instruction « for...in » ne peut pas être une déclaration « using ».", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "La partie gauche d’une instruction « for...in » ne peut pas être une déclaration « await using ».", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "La partie gauche d'une instruction 'for...in' ne peut pas utiliser d'annotation de type.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La partie gauche d'une instruction 'for...in' ne doit pas être un accès à une propriété facultative.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La partie gauche d'une instruction 'for...in' doit être un accès à une variable ou une propriété.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La partie gauche d'une opération arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La partie gauche d'une expression d'assignation ne doit pas être un accès à une propriété facultative.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La partie gauche d'une expression d'assignation doit être un accès à une variable ou une propriété.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "La partie gauche d’une expression « instanceof » doit pouvoir être assignée au premier argument de la méthode « [Symbol.hasInstance] » du côté droit.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La partie gauche d'une expression 'instanceof' doit être de type 'any', un type d'objet ou un paramètre de type.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Paramètres régionaux utilisés pour afficher les messages à l'utilisateur (exemple : 'fr-fr')", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Profondeur de dépendance maximale pour la recherche sous node_modules et le chargement de fichiers JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La racine du projet est ambiguë, mais elle est nécessaire pour résoudre l’entrée de carte d’exportation '{0}' dans le fichier '{1}'. Fournissez l’option de compilateur « rootDir » pour lever l’ambiguïté.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La racine du projet est ambiguë, mais elle est nécessaire pour résoudre l’entrée de carte d’importation «{0}» dans le fichier «{1}». Fournissez l’option de compilateur « rootDir » pour lever l’ambiguïté.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "La propriété '{0}' n'est pas accessible sur le type '{1}' dans cette classe, car elle est mise en mémoire fantôme par un autre identificateur privé ayant la même orthographe.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Le type de retour d'un accesseur 'get' doit être assignable à son type d'accesseur 'set'", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Le type de retour d'une fonction d'élément décoratif de paramètre doit être 'void' ou 'any'.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Le type de retour d'une fonction d'élément décoratif de propriété doit être 'void' ou 'any'.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Le type de retour d'une fonction asynchrone doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Le type de retour d'une fonction ou d'une méthode async doit être le type Promise global.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Le type de retour d'une fonction ou d'une méthode asynchrone doit être le type global Promise. Vouliez-vous vraiment écrire 'Promise<{0}>' ?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La partie droite d'une instruction 'for...in' doit être de type 'any', un type d'objet ou un paramètre de type, mais elle a le type '{0}' ici.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La partie droite d'une opération arithmétique doit être de type 'any', 'number', 'bigint' ou un type enum.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "La partie droite d’une expression « instanceof » doit être de type « any », une classe, une fonction ou un autre type pouvant être affecté au type d’interface « Function », ou un type d’objet avec une méthode « Symbol.hasInstance ».", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "La partie droite d’une expression « instanceof » ne doit pas être une expression d’instanciation.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La partie droite d'une expression 'instanceof' doit être de type 'any' ou d'un type pouvant être assigné au type d'interface 'Function'.", "The_root_value_of_a_0_file_must_be_an_object_5092": "La valeur racine d'un fichier '{0}' doit être un objet.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Le runtime appellera l’élément décoratif avec des arguments {1}, mais l’élément décoratif attend {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Le runtime appellera l’élément décoratif avec des arguments {1}, mais l’élément décoratif attend au moins {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "La déclaration avec mise en mémoire fantôme de '{0}' est définie ici", "The_signature_0_of_1_is_deprecated_6387": "La signature '{0}' de '{1}' est dépréciée.", "The_specified_path_does_not_exist_Colon_0_5058": "Le chemin spécifié n'existe pas : '{0}'.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Le ’type’ de modificateur ne peut pas être utilisé sur une importation nommée quand le ’type’ d’exportation est utilisé dans son instruction import.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Le ’type’ de modificateur ne peut pas être utilisé sur une importation nommée quand le ’type’ d’importation est utilisé dans son instruction import.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Le type d'une déclaration de fonction doit correspondre à la signature de la fonction.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Le type de cette expression ne peut pas être nommé sans une assertion de « mode résolution », qui est une fonctionnalité instable. Utilisez TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour avec « npm install -D typescript@next ».", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Impossible de sérialiser le type de ce nœud, car sa propriété «{0}» ne peut pas être sérialisée.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Le type retourné par la méthode '{0}()' d'un itérateur asynchrone doit être une promesse pour un type ayant une propriété 'value'.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Le type retourné par la méthode '{0}()' d'un itérateur doit avoir une propriété 'value'.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La déclaration de variable d'une instruction 'for...in' ne peut pas avoir d'initialiseur.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La déclaration de variable d'une instruction 'for...of' ne peut pas avoir d'initialiseur.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'instruction 'with' n'est pas prise en charge. Tous les symboles d'un bloc 'with' ont le type 'any'.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Il existe des types sur « {0} », mais ce résultat n’a pas pu être résolu sous votre paramètre « moduleResolution » actuel. Envisagez la mise à jour vers « node16 », « nodenext » ou « bundler ».", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Il existe des types sur « {0} », mais ce résultat n’a pas pu être résolu lors du respect des « exports » package.json. La bibliothèque « {1} » devra peut-être mettre à jour son package.json ou ses typages.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "Il n’existe aucun groupe de capture nommé « {0} » dans cette expression régulière.", - "There_is_nothing_available_for_repetition_1507": "Aucun élément n’est disponible pour la répétition.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Cette balise JSX nécessite que « {0} » soit dans la portée, mais elle n'a pas pu être trouvée.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Cette balise JSX nécessite que le chemin du module '{0}' existe, mais aucun n'a pu être trouvé. Assurez-vous que les types pour le package approprié sont installés.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "La propriété '{0}' de cette balise JSX attend un seul enfant de type '{1}', mais plusieurs enfants ont été fournis.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "La propriété '{0}' de cette balise JSX attend le type '{1}', qui nécessite plusieurs enfants, mais un seul enfant a été fourni.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Cette référence arrière fait référence à un groupe qui n’existe pas. Il n’y a aucun groupe de capture dans cette expression régulière.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Cette référence arrière fait référence à un groupe qui n’existe pas. Il n’y a que {0} groupes de capture dans cette expression régulière.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Cette expression binaire n’est jamais nulle. Avez-vous des parenthèses manquantes ?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Ce caractère ne peut pas être placé dans une séquence d’échappement d’expression régulière.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Cette comparaison semble involontaire, car les types '{0}' et '{1}' n’ont pas de chevauchement.", "This_condition_will_always_return_0_2845": "Cette condition retourne toujours '{0}'.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Cette condition retourne toujours '{0}', car JavaScript compare les objets par référence, et non par valeur.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Cette condition retourne toujours true, car cette « {0} » est toujours définie.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Cette condition retourne toujours true, car cette fonction est toujours définie. Est-ce que vous avez voulu l'appeler à la place ?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Cette fonction constructeur peut être convertie en déclaration de classe.", - "This_expression_is_always_nullish_2871": "Cette expression est toujours nulle.", "This_expression_is_not_callable_2349": "Impossible d'appeler cette expression.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Impossible d'appeler cette expression, car il s'agit d'un accesseur 'get'. Voulez-vous vraiment l'utiliser sans '()' ?", "This_expression_is_not_constructable_2351": "Impossible de construire cette expression.", "This_file_already_has_a_default_export_95130": "Ce fichier a déjà une exportation par défaut", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Ce chemin d'importation n'est pas sûr à réécrire car il renvoie à un autre projet et le chemin relatif entre les fichiers de sortie des projets n'est pas le même que le chemin relatif entre ses fichiers d'entrée.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Cette importation utilise une extension '{0}' pour résoudre un fichier TypeScript d'entrée, mais ne sera pas réécrite pendant l'émission car il ne s'agit pas d'un chemin relatif.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Cette importation n'est jamais utilisée en tant que valeur. Elle doit utiliser 'import type', car 'importsNotUsedAsValues' a la valeur 'error'.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Ceci est la déclaration augmentée. Pensez à déplacer la déclaration d'augmentation dans le même fichier.", - "This_kind_of_expression_is_always_falsy_2873": "Ce genre d’expression est toujours fausse.", - "This_kind_of_expression_is_always_truthy_2872": "Ce genre d’expression est toujours vrai.", "This_may_be_converted_to_an_async_function_80006": "Ceci peut être converti en fonction asynchrone.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise '@override' car il n'est pas déclaré dans la classe de base '{0}'.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise 'override' car il n'est pas déclaré dans la classe de base '{0}'. Vouliez-vous dire '{1}' ?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise '@override' car sa classe conteneur '{0}' n'étend pas une autre classe.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Ce membre ne peut pas avoir de commentaire JSDoc avec une balise « @override », car son nom est dynamique.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Ce membre ne peut pas avoir de modificateur 'override', car il n'est pas déclaré dans la classe de base '{0}'.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Ce membre ne peut pas avoir de modificateur 'override', car il n'est pas déclaré dans la classe de base '{0}'. Vouliez-vous dire '{1}'?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Ce membre ne peut pas avoir de modificateur 'override', car sa classe conteneur '{0}' n'étend pas une autre classe.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Ce membre ne peut pas avoir de modificateur 'override', car son nom est dynamique.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Ce membre doit avoir un commentaire JSDoc avec une balise '@override' car il remplace un membre de la classe de base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Ce membre doit avoir un modificateur 'override', car il se substitue à un membre de la classe de base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Ce membre doit avoir un modificateur 'override', car il se substitue à une méthode abstraite déclarée dans la classe de base '{0}'.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Vous pouvez référencer ce module uniquement avec les importations/exportations ECMAScript en activant l'indicateur '{0}' et en référençant son exportation par défaut.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Ce module est déclaré avec 'export =', et ne peut être utilisé qu’avec une importation par défaut lors de l’utilisation de l’indicateur '{0}'.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Cette opération peut être simplifiée. Ce shift est identique à '{0} {1} {2}'.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Cette surcharge retourne implicitement le type « {0} », car elle n’a pas d’annotation de type de retour.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Cette signature de surcharge n'est pas compatible avec sa signature d'implémentation.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Ce paramètre n'est pas autorisé avec la directive 'use strict'.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Cette propriété de paramètre doit avoir un commentaire JSDoc avec une balise '@override' car elle remplace un membre dans la classe de base '{0}'.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Cette propriété de paramètre doit avoir un modificateur 'override', car il se substitue à un membre de la classe de base '{0}'.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Cet indicateur d’expression régulière ne peut pas être activé/désactivé dans un sous-modèle.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Cet indicateur d’expression régulière n’est disponible que lors du ciblage de « {0} » ou d’une version ultérieure.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Ce chemin d'importation relatif n'est pas sûr à réécrire car il ressemble à un nom de fichier, mais se résout en réalité en « {0} ».", "This_spread_always_overwrites_this_property_2785": "Cette diffusion écrase toujours cette propriété.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Cette syntaxe n’est pas autorisée quand 'erasableSyntaxOnly' est activé.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Veuillez ajouter une virgule de fin ou une contrainte explicite.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Utilisez une expression « as »à la place.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Cette syntaxe nécessite une application d'assistance importée, mais le module '{0}' est introuvable.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Pour convertir ce fichier en module ECMAScript, changez son extension de fichier en '{0}', ou ajoutez le champ `\"type\" : \"module\"` à '{1}'.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Pour convertir ce fichier en module ECMAScript, changez son extension de fichier en '{0}' ou créez un fichier package.json local avec `{ \"type\": \"module\" }`.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Pour convertir ce fichier en module ECMAScript, créez un fichier package.json local avec `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Les expressions « await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » est définie sur « es2022 », « esnext », « system », « node16 », « node18 », « nodenext » ou « preserve », et que l’option « target » a la valeur « es2017 » ou une valeur supérieure.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Les instructions « await using » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system », « node16 », « node18 », « nodenext » ou « preserve », et que l’option « target » a la valeur « es2017 » ou une valeur supérieure.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Les expressions 'await' de niveau supérieur sont autorisées uniquement lorsque l’option 'module' a la valeur 'es2022', 'esnext', 'system', 'node16' ou 'nodenext' et que l’option 'target' a la valeur 'es2017' ou une valeur supérieure.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Les déclarations de niveau supérieur dans les fichiers .d.ts doivent commencer par un modificateur 'declare' ou 'export'.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Les boucles « for await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system », « node16 », « node18 », « nodenext » ou « preserve », et que l’option « target » a la valeur « es2017 » ou une valeur supérieure.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Les boucles « for await » de niveau supérieur sont autorisées uniquement lorsque l’option « module » a la valeur « es2022 », « esnext », « system », « node16 » ou « nodenext », et que l’option « target » a la valeur « es2017 » ou une version ultérieure.", "Trailing_comma_not_allowed_1009": "Virgule de fin non autorisée.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpilez chaque fichier sous forme de module distinct (semblable à 'ts.transpileModule').", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Essayez 'npm i --save-dev @types/{1}' s'il existe, ou ajoutez un nouveau fichier de déclaration (.d.ts) contenant 'declare module '{0}';'", "Trying_other_entries_in_rootDirs_6110": "Essai avec d'autres entrées dans 'rootDirs'.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Essai avec la substitution '{0}', emplacement de module candidat : '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Les membres de tuples doivent tous avoir des noms ou ne pas en avoir.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Le type tuple '{0}' de longueur '{1}' n'a aucun élément à l'index '{2}'.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Les arguments de type tuple se référencent de manière circulaire.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Le type '{0}' peut être itéré uniquement à l'aide de l'indicateur '--downlevelIteration' ou avec un '--target' dont la valeur est 'es2015' ou une version ultérieure.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Le type '{0}' n'a aucune signature d'index correspondant au type '{1}'.", "Type_0_has_no_properties_in_common_with_type_1_2559": "Le type '{0}' n'a aucune propriété en commun avec le type '{1}'.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Le type '{0}' n’a aucune signature pour laquelle la liste d’arguments de type est applicable.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Le type « {0} » est générique et ne peut être indexé que pour la lecture.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Le type '{0}' n'a pas les propriétés suivantes du type '{1}': {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Le type '{0}' n'a pas les propriétés suivantes du type '{1}': {2} et de {3} autres.", "Type_0_is_not_a_constructor_function_type_2507": "Le type '{0}' n'est pas un type de fonction constructeur.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Le type « {0} » n’est pas un type de retour de fonction asynchrone valide dans ES5, car il ne fait pas référence à une valeur de constructeur compatible avec une promesse.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Le type '{0}' n'est pas un type de retour de fonction async valide en ES5/ES3, car il ne référence pas une valeur de constructeur compatible avec une promesse.", "Type_0_is_not_an_array_type_2461": "Le type '{0}' n'est pas un type de tableau.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Le type '{0}' n'est pas un type de tableau ou un type de chaîne.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Le type '{0}' n'est pas un type tableau ou un type chaîne, ou n'a pas de méthode '[Symbol.iterator]()' qui retourne un itérateur.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Le type '{0}' ne peut pas être attribué au type '{1}'. Voulez-vous dire '{2}'?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Impossible d'assigner le type '{0}' au type '{1}'. Il existe deux types distincts portant ce nom, mais ils ne sont pas liés.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Le type «{0}» n’est pas assignable au type «{1}» comme implicite par l’annotation de variance.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Le type « {0} » n’est pas attribuable au type « {1} » comme requis pour les valeurs de membre enum calculées.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Le type '{0}' n'est pas assignable au type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' aux types des propriétés de la cible.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Le type '{0}' n'est pas assignable au type '{1}' avec 'exactOptionalPropertyTypes : true'. Pensez à ajouter 'undefined' au type de la cible.", "Type_0_is_not_comparable_to_type_1_2678": "Le type '{0}' n'est pas comparable au type '{1}'.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Argument de type attendu.", "Type_argument_list_cannot_be_empty_1099": "La liste des arguments de type ne peut pas être vide.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Les arguments de type peuvent uniquement être utilisés dans les fichiers TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "Impossible d'utiliser des arguments de type ici.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Les arguments de type pour '{0}' se référencent de manière circulaire.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Les expressions d'assertion de type peuvent uniquement être utilisées dans les fichiers TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Le type situé à la position {0} dans la source n'est pas compatible avec le type situé à la position {1} dans la cible.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Le type situé aux positions allant de {0} à {1} dans la source n'est pas compatible avec le type situé à la position {2} dans la cible.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Le type contenant le nom privé « {0} » ne peut pas être utilisé avec --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Fichiers de déclaration de type à inclure dans la compilation.", "Type_expected_1110": "Type attendu.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Les assertions d’importation de type doivent avoir exactement une clé ( « mode résolution » ) avec la valeur « import » ou « require ».", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Les attributs d’importation de type doivent avoir exactement une clé ( « resolution-mode » ) avec une valeur « import » ou « require ».", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "L'importation de type d'un module ECMAScript à partir d'un module CommonJS doit avoir un attribut « resolution-mode ».", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "L'instanciation de type est trop profonde et éventuellement infinie.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Le type est directement ou indirectement référencé dans le rappel d'exécution de sa propre méthode 'then'.", "Type_library_referenced_via_0_from_file_1_1402": "Bibliothèque de types référencée via '{0}' à partir du fichier '{1}'", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Le type des éléments itérés d'un opérande 'yield*' doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Le type de la propriété '{0}' se référence de façon circulaire dans le type mappé '{1}'.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Le type d'un opérande 'yield' dans un générateur asynchrone doit être une promesse valide ou ne doit contenir aucun membre 'then' pouvant être appelé.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "L'importation de type uniquement d'un module ECMAScript à partir d'un module CommonJS doit avoir un attribut « mode de résolution ».", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Le type provient de cette importation. Impossible d'appeler ou de construire une importation de style d'espace de noms, ce qui va entraîner un échec au moment de l'exécution. À la place, utilisez ici une importation par défaut ou une importation avec require.", "Type_parameter_0_has_a_circular_constraint_2313": "Le paramètre de type '{0}' possède une contrainte circulaire.", "Type_parameter_0_has_a_circular_default_2716": "Le paramètre de type '{0}' a une valeur par défaut circulaire.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Impossible de résoudre la signature d'un élément décoratif de méthode quand il est appelé en tant qu'expression.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Impossible de résoudre la signature d'un élément décoratif de paramètre quand il est appelé en tant qu'expression.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Impossible de résoudre la signature d'un élément décoratif de propriété quand il est appelé en tant qu'expression.", - "Undetermined_character_escape_1513": "L’échappement de caractère n’est pas déterminé.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "« {0} » est inattendu. Vouliez-vous procéder à son échappement avec une barre oblique inverse ?", "Unexpected_end_of_text_1126": "Fin de texte inattendue.", "Unexpected_keyword_or_identifier_1434": "Mot clé ou identificateur inattendu.", "Unexpected_token_1012": "Jeton inattendu.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'}'}' ou '}' ?", "Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.", - "Unicode_escape_sequence_cannot_appear_here_17021": "La séquence d’échappement Unicode ne peut pas apparaître ici.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Les séquences d’échappement Unicode ne sont disponibles que lorsque l’indicateur Unicode (u) ou l’indicateur Unicode Sets (v) est défini.", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Les expressions de valeur de propriété Unicode ne sont disponibles que lorsque l’indicateur Unicode (u) ou l’indicateur Unicode Sets (v) est défini.", - "Unknown_Unicode_property_name_1524": "Le nom de propriété Unicode est inconnu.", - "Unknown_Unicode_property_name_or_value_1529": "Une valeur ou un nom de propriété Unicode est inconnu.", - "Unknown_Unicode_property_value_1526": "La valeur de propriété Unicode est inconnue.", "Unknown_build_option_0_5072": "Option de build inconnue : '{0}'.", "Unknown_build_option_0_Did_you_mean_1_5077": "Option de build inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", "Unknown_compiler_option_0_5023": "Option de compilateur '{0}' inconnue.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Option de compilateur inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Mot clé ou identificateur inconnu. Souhaitiez-vous utiliser «{0}» ?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Option 'excludes' inconnue. Voulez-vous utiliser 'exclude' ?", - "Unknown_regular_expression_flag_1499": "L’indicateur d’expression régulière est inconnu.", "Unknown_type_acquisition_option_0_17010": "Option d'acquisition de type inconnue '{0}'.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Option d'acquisition de type inconnue : '{0}'. Est-ce que vous avez voulu utiliser '{1}' ?", "Unknown_watch_option_0_5078": "Option de surveillance inconnue : '{0}'.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Étiquette inutilisée.", "Unused_ts_expect_error_directive_2578": "Directive '@ts-expect-error' inutilisée.", "Update_import_from_0_90058": "Mettre à jour l’importation à partir de \"{0}\"", - "Update_modifiers_of_0_90061": "Mettre à jour les modificateurs de « {0} »", + "Updating_output_of_project_0_6373": "Mise à jour de la sortie du projet '{0}'...", "Updating_output_timestamps_of_project_0_6359": "Mise à jour des horodatages de sortie du projet '{0}'...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Mise à jour des horodatages de sortie inchangés du projet '{0}'...", "Use_0_95174": "Utilisez `{0}`.", - "Use_0_instead_5106": "Utilisez « {0} » à la place.", "Use_Number_isNaN_in_all_conditions_95175": "Utilisez 'Number.isNaN' dans toutes les conditions.", "Use_element_access_for_0_95145": "Utiliser l'accès à l'élément pour '{0}'", "Use_element_access_for_all_undeclared_properties_95146": "L'accès à l'élément est utilisé pour toutes les propriétés non déclarées.", - "Use_import_type_95180": "Utiliser « import type »", "Use_synthetic_default_member_95016": "Utilisez un membre 'default' synthétique.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Utilisez le champ « exports » package.json lors de la résolution des importations de package.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Utilisez le champ « imports » package.json lors de la résolution des importations.", - "Use_type_0_95181": "Utiliser « type {0} »", "Using_0_subpath_1_with_target_2_6404": "Utilisation de '{0}' de sous-chemin '{1}' avec la cible '{2}'.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "L'utilisation de fragments JSX nécessite que la fabrique de fragments '{0}' soit dans la portée, mais elle n'a pas pu être trouvée.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "L'utilisation d'une chaîne dans une instruction 'for...of' est prise en charge uniquement dans ECMAScript 5 et version supérieure.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "L’utilisation de--build,-b fera en sorte que tsc se comporte plus comme une build orchestrateur qu’un compilateur. Utilisé pour déclencher la génération de projets composites sur lesquels vous pouvez obtenir des informations supplémentaires sur {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Utilisation des options de compilateur de la redirection de référence de projet : '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Déclaration de variable attendue.", "Variable_declaration_list_cannot_be_empty_1123": "La liste des déclarations de variable ne peut pas être vide.", "Variable_declaration_not_allowed_at_this_location_1440": "Déclaration de variable non autorisée à cet emplacement.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "La variable doit avoir une annotation de type explicite avec --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Les variables avec plusieurs déclarations ne peuvent pas être inlined.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'élément variadique situé à la position {0} dans la source ne correspond pas à l'élément situé à la position {1} dans la cible.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Les annotations de variance sont uniquement prises en charge dans les alias de type pour les types objet, fonction, constructeur et mappé.", "Version_0_6029": "Version {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Lors de la vérification de type, prenez en compte « null » et « undefined ».", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Garder la sortie de console obsolète en mode espion au lieu d'effacer l'écran.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Inclure dans un wrapper tous les caractères non valides au sein d'un conteneur d'expressions", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Mettre toutes les expressions de décorateurs non valides entre parenthèses", "Wrap_all_object_literal_with_parentheses_95116": "Placer tous les littéraux d'objet entre parenthèses", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Inclure dans un wrapper tous les JSX non apparentés au sein d'un fragment JSX", "Wrap_in_JSX_fragment_95120": "Inclure dans un wrapper au sein d'un fragment JSX", - "Wrap_in_parentheses_95194": "Mettre entre parenthèses", "Wrap_invalid_character_in_an_expression_container_95108": "Inclure dans un wrapper un caractère non valide au sein d'un conteneur d'expressions", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Placer le corps suivant entre parenthèses pour indiquer qu'il s'agit d'un littéral d'objet", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Vous pouvez en savoir plus sur toutes les options du compilateur sur {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Les signatures d'index « {0} » et « {1} » sont incompatibles.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Les opérations '{0}' et '{1}' ne peuvent pas être mélangées sans parenthèses.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' spécifié deux fois. L'attribut nommé '{0}' va être remplacé.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "« {0} » à la fin d’un type n’est pas une syntaxe TypeScript valide. Vouliez-vous écrire « {1} » ?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "« {0} » au début d’un type n’est pas une syntaxe TypeScript valide. Vouliez-vous écrire « {1} » ?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' peut uniquement être importé via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' peut uniquement être importé via l'utilisation d'une importation par défaut.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' peut uniquement être importé à l'aide d'un appel 'require' ou via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' peut uniquement être importé à l'aide d'un appel 'require' ou via l'utilisation d'une importation par défaut.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' peut uniquement être importé à l'aide de 'import {1} = require({2})' ou via l'utilisation d'une importation par défaut.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' peut uniquement être importé à l'aide de 'import {1} = require({2})' ou via l'activation de l'indicateur 'esModuleInterop' et l'utilisation d'une importation par défaut.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "Impossible de compiler '{0}' sous '--isolatedModules', car il est considéré comme un fichier de script global. Ajoutez une importation, une exportation ou une instruction 'export {}' vide pour en faire un module.", "_0_cannot_be_used_as_a_JSX_component_2786": "Impossible d'utiliser '{0}' comme composant JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}' ne peut pas être utilisé en tant que valeur, car il a été exporté à l'aide de 'export type'.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}' ne peut pas être utilisé en tant que valeur, car il a été importé à l'aide de 'import type'.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Les composants '{0}' n'acceptent pas du texte en tant qu'éléments enfants. Le texte dans JSX a le type 'string', mais le type attendu de '{1}' est '{2}'.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}' a pu être instancié avec un type arbitraire qui n'est peut-être pas lié à '{1}'.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Les déclarations « {0} » ne peuvent être déclarées que dans un bloc.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Les déclarations '{0}' peuvent uniquement être utilisées dans les fichiers TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "Les déclarations « {0} » ne peuvent pas avoir de modèles de liaison.", - "_0_declarations_must_be_initialized_1155": "Les déclarations « {0} » doivent être initialisées.", "_0_expected_1005": "'{0}' attendu.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "« {0} » a un type de chaîne, mais doit avoir une syntaxe de chaîne syntaxiquement reconnaissable quand « isolatedModules » est activé.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}' n'a aucun membre exporté nommé '{1}'. Est-ce que vous pensiez à '{2}' ?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' a implicitement un type de retour '{1}', mais il est possible de déduire un meilleur type à partir de l'utilisation.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' possède implicitement le type de retour 'any', car il n'a pas d'annotation de type de retour, et est référencé directement ou indirectement dans l'une de ses expressions de retour.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Le type d’index « {0} », « {1} », ne peut pas être attribué au type d’index « {2} », « {3} ».", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' est une primitive, mais '{1}' est un objet wrapper. Si possible, utilisez '{0}' de préférence.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' est un type qui ne peut pas être importé dans des fichiers JavaScript. Utilisez '{1}' dans une annotation de type JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "« {0} » est un type et doit être importé en utilisant une importation de type uniquement quand « verbatimModuleSyntax » est activé.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "« {0} » est un type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "« {0} » est un changement de nom inutilisé de « {1} ». Souhaitiez-vous l’utiliser comme annotation de type?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' peut être assigné à la contrainte de type '{1}', mais '{1}' a pu être instancié avec un autre sous-type de contrainte '{2}'.", "_0_is_automatically_exported_here_18044": "'{0}' est automatiquement exporté ici.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "La liste '{0}' ne peut pas être vide.", "_0_modifier_already_seen_1030": "Modificateur '{0}' déjà rencontré.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Le modificateur «{0}» ne peut apparaître que sur un paramètre de type d’une classe, d’une interface ou d’un alias de type", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "Le modificateur « {0} » ne peut apparaître que sur un paramètre de type d’une fonction, d’une méthode ou d’une classe", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Le modificateur '{0}' ne peut pas apparaître sur une déclaration de constructeur.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Le modificateur '{0}' ne peut pas apparaître dans un élément de module ou d'espace de noms.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Le modificateur '{0}' ne peut pas apparaître dans un paramètre.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Le modificateur '{0}' ne peut pas apparaître dans un membre de type.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Le modificateur «{0}» ne peut pas apparaître sur un paramètre de type", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "Le modificateur « {0} » ne peut pas apparaître dans une déclaration « using ».", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "Le modificateur « {0} » ne peut pas apparaître dans une déclaration « await using ».", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Le modificateur '{0}' ne peut pas apparaître dans une signature d'index.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Le modificateur '{0}' ne peut pas apparaître sur les éléments de classe de ce genre.", "_0_modifier_cannot_be_used_here_1042": "Impossible d'utiliser le modificateur '{0}' ici.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Impossible d'utiliser les modificateurs '{0}' et '{1}' ensemble.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Le modificateur '{0}' ne peut pas être utilisé avec un identificateur privé.", "_0_modifier_must_precede_1_modifier_1029": "Le modificateur '{0}' doit précéder le modificateur '{1}'.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "« \\{0} » doit être suivi d’une expression de valeur de propriété Unicode entre accolades.", "_0_needs_an_explicit_type_annotation_2782": "'{0}' a besoin d'une annotation de type explicite.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' référence uniquement un type mais s'utilise en tant qu'espace de noms ici.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' fait uniquement référence à un type mais s'utilise en tant que valeur ici.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' fait uniquement référence à un type, mais il est utilisé ici en tant que valeur. Devez-vous changer votre bibliothèque cible ? Essayez de remplacer l'option de compilateur 'lib' par es2015 ou une version ultérieure.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fait référence à une variable globale UMD, mais le fichier actuel est un module. Ajoutez une importation à la place.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fait référence à une valeur, mais il est utilisé ici en tant que type. Est-ce que vous avez voulu utiliser 'typeof {0}' ?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "« {0} » se résout en type et doit être marquée en tant que type uniquement dans ce fichier avant la réexportation lorsque « {1} » est activé. Envisagez d’utiliser « import type » où « {0} » est importé.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "« {0} » se résout en type et doit être marquée en tant que type uniquement dans ce fichier avant la réexportation lorsque « {1} » est activé. Envisagez d’utiliser « export type {{0} as default } ».", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "« {0} » se résout en une déclaration de type uniquement et doit être importé en utilisant une importation de type uniquement quand « verbatimModuleSyntax » est activé.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "« {0} » se résout en déclaration de type uniquement et doit être marquée en tant que type uniquement dans ce fichier avant la réexportation lorsque « {1} » est activé. Envisagez d’utiliser « import type » où « {0} » est importé.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "« {0} » se résout en déclaration de type uniquement et doit être marquée en tant que type uniquement dans ce fichier avant la réexportation lorsque « {1} » est activé. Envisagez d’utiliser « export type {{0} as default } ».", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "« {0} » doit être résolu en déclaration de type unique et doit être réexporté en utilisant une réexportation de type unique lorsque l’option {1} est activée.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "« {0} » se résout en une déclaration de type seul et doit être importé à l'aide d'une importation de type seul lorsque « preserveValueImports » et « isolatedModules » sont tous deux activés.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "« {0} » se résout une déclaration de type unique et doit être réexporté à l'aide d'une réexportation de type unique lorsque l'option « isolatedModules » est activée.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' doit être défini dans l'objet 'compilerOptions' du fichier de configuration json", "_0_tag_already_specified_1223": "La balise '{0}' est déjà spécifiée.", "_0_was_also_declared_here_6203": "'{0}' a également été déclaré ici.", @@ -1999,22 +1780,19 @@ "and_here_6204": "et ici.", "arguments_cannot_be_referenced_in_property_initializers_2815": "Les « arguments » ne peuvent pas être référencés dans les initialiseurs de propriété.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "« auto » : traitez les fichiers avec des importations, des exportations, import.meta, jsx (avec jsx: react-jsx) ou un format esm (avec module : node16+) en tant que modules.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "L’expression « await » à l’intérieur d’un bloc statique de classe.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Les expressions 'await' sont uniquement autorisées au niveau supérieur d'un fichier quand celui-ci est un module, mais le fichier actuel n'a pas d'importations ou d'exportations. Ajoutez un 'export {}' vide pour faire de ce fichier un module.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Les expressions 'await' sont autorisées uniquement dans les fonctions asynchrones et aux niveaux supérieurs des modules.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Impossible d'utiliser des expressions 'await' dans un initialiseur de paramètre.", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' n'a aucun effet sur le type de cette expression.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Les instructions « await using » sont uniquement autorisées au niveau supérieur d’un fichier quand celui-ci est un module, mais le fichier actuel n’a aucune importation ou exportation. Envisagez d’ajouter un « export {} » vide pour faire de ce fichier un module.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Les expressions « await using » sont autorisées uniquement dans les fonctions asynchrones et aux niveaux supérieurs des modules.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Des instructions « await using » ne peuvent pas être utilisées à l’intérieur d’un bloc statique de classe.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "L'option 'baseUrl' a la valeur '{0}'. Utilisation de cette valeur pour la résolution du nom de module non relatif '{1}'.", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' doit être suivi d’une lettre ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' peut uniquement être utilisé au début d'un fichier.", "case_or_default_expected_1130": "'case' ou 'default' attendu.", "catch_or_finally_expected_1472": "« Catch » ou « finally » attendu.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Les déclarations 'const' ne peuvent être déclarées que dans un bloc.", + "const_declarations_must_be_initialized_1155": "Les déclarations 'const' doivent être initialisées.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "L'initialiseur de membre enum 'const' donne une valeur non finie.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "L'initialiseur de membre enum 'const' donne une valeur non autorisée 'NaN'.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Les initialiseurs de membre enum const doivent être des expressions constantes.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Les initialiseurs de membres const enum peuvent uniquement contenir des valeurs littérales et autres valeurs enum calculées.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Les enums 'const' ne peuvent être utilisés que dans les expressions d'accès à une propriété ou un index, ou dans la partie droite d'une déclaration d'importation, d'une assignation d'exportation ou d'une requête de type.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor' ne peut pas être utilisé en tant que nom de propriété de paramètre.", "constructor_is_a_reserved_word_18012": "'#constructor' est un mot réservé.", @@ -2033,14 +1811,13 @@ "file_6025": "fichier", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Les boucles 'for await' sont uniquement autorisées au niveau supérieur d'un fichier quand celui-ci est un module, mais le fichier actuel n'a aucune importation ou exportation. Ajoutez un 'export {}' vide pour faire de ce fichier un module.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Les boucles 'for await' sont autorisées uniquement dans les fonctions asynchrones et aux niveaux supérieurs des modules.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Les boucles « for await » ne peuvent pas être utilisées à l’intérieur d’un bloc statique de classe.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Les accesseurs 'get' et 'set' ne peuvent pas déclarer les paramètres 'this'.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "«[]» si « files » est spécifié, sinon « [\"**/*\"]5D; »", "implements_clause_already_seen_1175": "Clause 'implements' déjà rencontrée.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Les clauses 'implements' peuvent uniquement être utilisées dans les fichiers TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' peut uniquement être utilisé dans les fichiers TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Les déclarations 'infer' sont uniquement autorisées dans la clause 'extends' d’un type conditionnel.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "« \\k » doit être suivi d’un nom de groupe de capture placé entre crochets angulaires.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Les déclarations 'let' ne peuvent être déclarées que dans un bloc.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' ne peut pas être utilisé comme nom dans les déclarations 'let' ou 'const'.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === « AMD » ou « UMD » ou « System » ou « ES6 », puis « Classic », sinon « Node »", "module_system_or_esModuleInterop_6904": "module === « system » ou esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' n'a aucune entrée 'typesVersions' qui correspond à la version '{0}'.", "package_json_had_a_falsy_0_field_6220": "'package.json' a un champ '{0}' erroné.", "package_json_has_0_field_1_that_references_2_6101": "'package.json' a un champ '{0}' '{1}' qui fait référence à '{2}'.", - "package_json_has_a_peerDependencies_field_6281": "« package.json » a un champ « peerDependencies ».", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' a une entrée 'typesVersions' '{0}' qui n'est pas une plage SemVer valide.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' a une entrée 'typesVersions' '{0}' qui correspond à la version de compilateur '{1}'. Recherche d'un modèle correspondant au nom de module '{2}'.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' a un champ 'typesVersions' avec des mappages de chemins spécifiques à la version.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "L’étendue package.json « {0} » a un type non valide pour la cible du spécificateur « {1} »", "package_json_scope_0_has_no_imports_defined_6273": "L’étendue package.json « {0} » ne comporte aucune importation définie.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "L'option 'paths' est spécifiée. Recherche d'un modèle correspondant au nom de module '{0}'.", - "q_is_only_available_inside_character_class_1511": "« \\q » n’est disponible que dans la classe de caractères.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "« \\q » doit être suivi d’alternatives de chaîne entre accolades.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Le modificateur 'readonly' peut apparaître uniquement dans une déclaration de propriété ou une signature d'index.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Le modificateur de type 'readonly' est uniquement autorisé sur les types littéraux de tableau et de tuple.", "require_call_may_be_converted_to_an_import_80005": "L'appel de 'require' peut être converti en import.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Les assertions 'resolution-mode' sont prises en charge uniquement quand 'moduleResolution' est 'node16' ou 'nodenext'.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Les assertions 'resolution-mode' sont instables. Utilisez TypeScript nocturne pour désactiver cette erreur. Essayez de mettre à jour avec « npm install -D typescript@next ».", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "« mode résolution » ne peut être défini que pour les importations de type uniquement.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "« mode résolution » est la seule clé valide pour les assertions d’importation de type.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "« resolution-mode » est la seule clé valide pour les attributs d’importation de type.", "resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' doit être 'require' ou 'import'.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'option 'rootDirs' est définie. Utilisation de celle-ci pour la résolution du nom de module relatif '{0}'.", "super_can_only_be_referenced_in_a_derived_class_2335": "'super' ne peut être référencé que dans une classe dérivée.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "Impossible de référencer 'this' dans un nom de propriété calculée.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Impossible de référencer 'this' dans le corps d'un module ou d'un espace de noms.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Impossible de référencer 'this' dans un initialiseur de propriété statique.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "Impossible de référencer 'this' dans des arguments de constructeur.", "this_cannot_be_referenced_in_current_location_2332": "Impossible de référencer 'this' dans l'emplacement actuel.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' possède implicitement le type 'any', car il n'a pas d'annotation de type.", "true_for_ES2022_and_above_including_ESNext_6930": "'true’ pour ES2022 et versions ultérieures, y compris ESNext.", "true_if_composite_false_otherwise_6909": "« true » si « composite », « false » sinon", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "« true » quand « moduleResolution » a la valeur « node16 », « nodenext » ou « bundler » ; sinon « false ».", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc : compilateur TypeScript", "type_Colon_6902": "type :", "unique_symbol_types_are_not_allowed_here_1335": "Les types 'unique symbol' ne sont pas autorisés ici.", diff --git a/node_modules/typescript/lib/it/diagnosticMessages.generated.json b/node_modules/typescript/lib/it/diagnosticMessages.generated.json index 8c2621aa6..2acc6530a 100644 --- a/node_modules/typescript/lib/it/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/it/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "TUTTE LE OPZIONI DEL COMPILATORE", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Non è possibile usare un modificatore '{0}' con una dichiarazione di importazione.", "A_0_parameter_must_be_the_first_parameter_2680": "Il primo parametro deve essere '{0}'.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Un tag '@template' di JSDoc non può seguire un tag '@typedef', '@callback' o '@overload'", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Un commento '@typedef' di JSDoc non può contenere più tag '@type'.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Non è possibile usare un valore letterale 'bigint' come nome per la proprietà.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Un valore letterale bigint non può usare la notazione esponenziale.", "A_bigint_literal_must_be_an_integer_1353": "Un valore letterale bigint deve essere un numero intero.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Un parametro del criterio di binding non può essere facoltativo in una firma di implementazione.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Un'istruzione 'break' può essere usata solo all'interno di un'iterazione di inclusione o di un'istruzione switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Un'istruzione 'break' può solo passare a un'etichetta di un'istruzione di inclusione.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Una classe di caratteri non deve contenere un segno di punteggiatura doppio riservato. La barra rovesciata stava per un carattere escape?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Un intervallo di classi di caratteri non deve essere delimitato da un'altra classe di caratteri.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Una classe può implementare solo un identificatore/nome qualificato con argomenti tipo facoltativi.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Una classe può implementare solo un tipo di oggetto o un'intersezione di tipi di oggetto con membri noti in modo statico.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Una classe non può estendere un elemento di tipo primitivo come '{0}'. Le classi possono estendere solo valori costruibili.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Una classe non può implementare un tipo primitivo come '{0}'. Può implementare solo altri tipi di oggetto denominati.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "È necessario assegnare un nome a una dichiarazione di classe senza modificatore 'default'.", "A_class_member_cannot_have_the_0_keyword_1248": "Un membro di classe non può contenere la parola chiave '{0}'.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Non sono consentite espressioni con virgole in un nome di proprietà calcolato.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Un costruttore non può contenere un parametro 'this'.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Un'istruzione 'continue' può essere usata solo all'interno di un'istruzione di iterazione di inclusione.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Un'istruzione 'continue' può solo passare a un'etichetta di un'istruzione di iterazione di inclusione.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Non è possibile importare un file di dichiarazione senza 'import type'. Si intendeva importare un file di implementazione '{0}'?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Non è possibile usare un modificatore 'declare' in un contesto già di ambiente.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Un elemento Decorator può solo decorare un'implementazione del metodo e non un overload.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Una clausola 'default' non può essere specificata più volte in un'istruzione 'switch'.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Un'esportazione predefinita deve essere al livello principale di una dichiarazione di file o di modulo.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "In questo contesto non sono consentite asserzioni di assegnazione definite '!'.", "A_destructuring_declaration_must_have_an_initializer_1182": "Una dichiarazione di destrutturazione deve includere un inizializzatore.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Con una chiamata di importazione dinamica in ES5 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Con una chiamata di importazione dinamica in ES5/ES3 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Una chiamata di importazione dinamica restituisce un costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", "A_file_cannot_have_a_reference_to_itself_1006": "Un file non può contenere un riferimento a se stesso.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Una funzione che restituisce 'never' non può includere un punto finale raggiungibile.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Una funzione chiamata con la parola chiave 'new' non può contenere un tipo 'this' con valore 'void'.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Una funzione il cui tipo dichiarato non è 'undefined', 'void' o 'any' deve restituire un valore.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Una funzione il cui tipo dichiarato non è 'void' né 'any' deve restituire un valore.", "A_generator_cannot_have_a_void_type_annotation_2505": "Un generatore non può contenere un'annotazione di tipo 'void'.", "A_get_accessor_cannot_have_parameters_1054": "Una funzione di accesso 'get' non può contenere parametri.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Una funzione di accesso get deve essere accessibile almeno come setter", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Una dichiarazione di spazio dei nomi non può essere presente in un file diverso rispetto a una classe o funzione con cui è stato eseguito il merge.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Una dichiarazione di spazio dei nomi non può essere specificata prima di una classe o funzione con cui è stato eseguito il merge.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Una dichiarazione di spazio dei nomi è consentita solo al livello superiore di uno spazio dei nomi o di un modulo.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Una dichiarazione 'namespace' non deve essere dichiarata usando la parola chiave 'module'. Usare invece la parola chiave 'namespace'.", "A_non_dry_build_would_build_project_0_6357": "Se si esegue una compilazione senza flag -dry, verrà compilato il progetto '{0}'", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Se si esegue una compilazione senza flag -dry, i file seguenti verranno eliminati: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Se si esegue una compilazione non di prova, l'output del progetto '{0}' verrà aggiornato", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Se si esegue una compilazione non di prova, i timestamp dell'output del progetto '{0}' verranno aggiornati", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Un inizializzatore di parametro è consentito solo in un'implementazione di funzione o costruttore.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Non è possibile dichiarare una proprietà di parametro usando un parametro REST.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Una chiamata 'super' deve essere la prima istruzione del costruttore a fare riferimento a 'super' o 'this' quando una classe derivata contiene proprietà inizializzate, proprietà di parametri o identificatori privati.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Un guard di tipo basato su 'this' non è compatibile con uno basato su parametri.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Un tipo 'this' è disponibile solo in un membro non statico di una classe o di interfaccia.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Non è possibile usare un modificatore 'export' di primo livello nelle dichiarazioni di valori in un modulo CommonJS quando è abilitato 'verbatimModuleSyntax'.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Un file 'tsconfig.json' è già definito in: '{0}'.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Un membro di tupla non può essere sia facoltativo che inattivo.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Un tipo di tupla non può essere indicizzato con un valore negativo.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Un'espressione 'yield' è consentita solo nel corpo di un generatore.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Non è possibile accedere al metodo astratto '{0}' nella classe '{1}' tramite l'espressione super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "I metodi astratti possono essere inclusi solo in una classe astratta.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Le proprietà astratte possono essere incluse solo in una classe astratta.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Non è possibile accedere alla proprietà astratta '{0}' nella classe '{1}' nel costruttore.", "Accessibility_modifier_already_seen_1028": "Il modificatore di accessibilità è già presente.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Le funzioni di accesso sono disponibili solo se destinate a ECMAScript 5 e versioni successive.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Le funzioni di accesso devono essere tutte astratte o tutte non astratte.", "Add_0_to_unresolved_variable_90008": "Aggiungere '{0}.' alla variabile non risolta", "Add_a_return_statement_95111": "Aggiungere un'istruzione return", - "Add_a_return_type_to_the_function_declaration_9031": "Aggiungere un elemento di tipo restituito alla dichiarazione di funzione.", - "Add_a_return_type_to_the_function_expression_9030": "Aggiungere un elemento di tipo restituito all'espressione della funzione.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Aggiungere un tipo restituito alla dichiarazione della funzione di accesso get.", - "Add_a_return_type_to_the_method_9034": "Aggiungere un tipo restituito al metodo", - "Add_a_type_annotation_to_the_parameter_0_9028": "Aggiungere un'annotazione di tipo al parametro {0}.", - "Add_a_type_annotation_to_the_property_0_9029": "Aggiungere un'annotazione di tipo alla proprietà {0}.", - "Add_a_type_annotation_to_the_variable_0_9027": "Aggiungere un'annotazione di tipo alla variabile {0}.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Aggiunge un tipo al parametro della dichiarazione della funzione di accesso set.", "Add_all_missing_async_modifiers_95041": "Aggiungere tutti i modificatori 'async' mancanti", "Add_all_missing_attributes_95168": "Aggiungi tutti gli attributi mancanti", "Add_all_missing_call_parentheses_95068": "Aggiungere tutte le parentesi mancanti nelle chiamate", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Aggiungere tutte le importazioni mancanti", "Add_all_missing_members_95022": "Aggiungere tutti i membri mancanti", "Add_all_missing_override_modifiers_95162": "Aggiungere tutti i modificatori 'override' mancanti", - "Add_all_missing_parameters_95190": "Aggiungere tutti i parametri mancanti", "Add_all_missing_properties_95166": "Aggiunge tutte le proprietà mancanti", "Add_all_missing_return_statement_95114": "Aggiungere tutte le istruzioni return mancanti", "Add_all_missing_super_calls_95039": "Aggiungere tutte le chiamate a super mancanti", - "Add_all_missing_type_annotations_90067": "Aggiungere tutte le annotazioni di tipo mancante", - "Add_all_optional_parameters_95193": "Aggiungere tutti i parametri facoltativi", - "Add_annotation_of_type_0_90062": "Aggiungere annotazione di tipo '{0}'", "Add_async_modifier_to_containing_function_90029": "Aggiungere il modificatore async alla funzione contenitore", "Add_await_95083": "Aggiungere 'await'", "Add_await_to_initializer_for_0_95084": "Aggiungere 'await' all'inizializzatore per '{0}'", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Aggiungere gli inizializzatori a tutte le proprietà non inizializzate", "Add_missing_attributes_95167": "Aggiungi attributi mancanti", "Add_missing_call_parentheses_95067": "Aggiungere le parentesi mancanti nelle chiamate", - "Add_missing_comma_for_object_member_completion_0_95187": "Aggiungere la virgola mancante per il completamento dei membri dell'oggetto '{0}'.", "Add_missing_enum_member_0_95063": "Aggiungere il membro di enumerazione mancante '{0}'", "Add_missing_function_declaration_0_95156": "Aggiungere la dichiarazione di funzione mancante '{0}'", "Add_missing_new_operator_to_all_calls_95072": "Aggiungere l'operatore mancante 'new' a tutte le chiamate", "Add_missing_new_operator_to_call_95071": "Aggiungere l'operatore mancante 'new' alla chiamata", - "Add_missing_parameter_to_0_95188": "Aggiungere il parametro mancante a '{0}'", - "Add_missing_parameters_to_0_95189": "Aggiungere i parametri mancanti a '{0}'", "Add_missing_properties_95165": "Aggiunge le proprietà mancanti", "Add_missing_super_call_90001": "Aggiungere la chiamata mancante a 'super()'", "Add_missing_typeof_95052": "Aggiungere l'elemento 'typeof' mancante", "Add_names_to_all_parameters_without_names_95073": "Aggiungere i nomi a tutti i parametri senza nomi", - "Add_optional_parameter_to_0_95191": "Aggiungere i parametri facoltativi a '{0}'", - "Add_optional_parameters_to_0_95192": "Aggiungi i parametri facoltativi a '{0}'", "Add_or_remove_braces_in_an_arrow_function_95058": "Aggiungere o rimuovere le parentesi graffe in una funzione arrow", "Add_override_modifier_95160": "Aggiungere il modificatore 'override'", "Add_parameter_name_90034": "Aggiungere il nome del parametro", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Aggiungere il qualificatore a tutte le variabili non risolte corrispondenti a un nome di membro", - "Add_resolution_mode_import_attribute_95196": "Aggiungi attributo di importazione 'resolution-mode'", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Aggiungi l'attributo di importazione 'resolution-mode' a tutte le importazioni solo tipo che lo richiedono", - "Add_return_type_0_90063": "Aggiungere '{0}' del tipo restituito", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Aggiungere soddisfa e un'asserzione di tipo a questa espressione (soddisfa T come T) per rendere il tipo esplicito.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Aggiungere soddisfa e un'asserzione di tipo inline con '{0}'", "Add_to_all_uncalled_decorators_95044": "Aggiungere '()' a tutti gli elementi Decorator non chiamati", "Add_ts_ignore_to_all_error_messages_95042": "Aggiungere '@ts-ignore' a tutti i messaggi di errore", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Aggiunge 'undefined' a un tipo quando l'accesso viene eseguito tramite un indice.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Consente di eseguire importazioni predefinite da moduli senza esportazione predefinita. Non influisce sulla creazione del codice ma solo sul controllo dei tipi.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Consente 'import x from y' quando un modulo non contiene un'esportazione predefinita.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Consente di eseguire una volta per progetto l'importazione di funzioni helper da tslib, invece di includerle per ogni file.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Consentire alle importazioni di includere le estensioni di file TypeScript. Richiede l'impostazione di '--moduleResolution bundler' e '--noEmit' o '--emitDeclarationOnly'.", "Allow_javascript_files_to_be_compiled_6102": "Consente la compilazione di file JavaScript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Consente che più cartelle vengano considerate come una sola durante la risoluzione dei moduli.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Il nome file già incluso '{0}' differisce da quello '{1}' solo per l'uso di maiuscole/minuscole.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Non è stato specificato alcun argomento corrispondente a questo modello di associazione.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Un operando aritmetico deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Una funzione arrow non può contenere un parametro 'this'.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Con una funzione o un metodo asincrono in ES5 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Con una funzione o un metodo asincrono in ES5/ES3 è necessario il costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per il costruttore 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Un metodo o una funzione asincrona deve restituire un costruttore 'Promise'. Assicurarsi che sia presente una dichiarazione per 'Promise' oppure includere 'ES2015' nell'opzione '--lib'.", "An_async_iterator_must_have_a_next_method_2519": "Un iteratore asincrono deve contenere un metodo 'next()'.", "An_element_access_expression_should_take_an_argument_1011": "Un'espressione di accesso a elementi deve accettare un argomento.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Una dichiarazione di esportazione può essere usata solo al livello superiore di un modulo.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Una dichiarazione di esportazione può essere usata solo al livello superiore di uno spazio dei nomi o di un modulo.", "An_export_declaration_cannot_have_modifiers_1193": "Una dichiarazione di esportazione non può contenere modificatori.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Quando 'verbatimModuleSyntax' è abilitato, la dichiarazione 'export =' deve fare riferimento a un valore reale, ma '{0}' viene risolto in una dichiarazione type-only.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Quando 'verbatimModuleSyntax' è abilitato, la dichiarazione 'export =' deve fare riferimento a un valore, ma '{0}' fa riferimento solo a un tipo.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Quando 'verbatimModuleSyntax' è abilitato, 'export default' deve fare riferimento a un valore reale, ma '{0}' viene risolto in una dichiarazione type-only.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Quando 'verbatimModuleSyntax' è abilitato, 'export default' deve fare riferimento a un valore, ma '{0}' fa riferimento solo a un tipo.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Non è possibile testare la veridicità di un'espressione di tipo 'void'.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Un valore di escape Unicode avanzato deve essere compreso tra 0x0 e 0x10FFFF inclusi.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Non è possibile specificare un identificatore o una parola chiave subito dopo un valore letterale numerico.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Non è possibile dichiarare un'implementazione in contesti di ambiente.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Un alias di importazione non può fare riferimento a una dichiarazione esportata con 'export type'.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Un alias di importazione non può fare riferimento a una dichiarazione importata con 'import type'.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Un alias di importazione non può essere risolto in una dichiarazione type o type-only quando è abilitato 'verbatimModuleSyntax'.", "An_import_alias_cannot_use_import_type_1392": "Un alias di importazione non può usare 'import type'", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Una dichiarazione di importazione può essere usata solo al livello superiore di un modulo.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Una dichiarazione di importazione può essere usata solo al livello superiore di uno spazio dei nomi o di un modulo.", "An_import_declaration_cannot_have_modifiers_1191": "Una dichiarazione di importazione non può contenere modificatori.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Un percorso di importazione può terminare con un'estensione '{0}' solo quando 'allowImportingTsExtensions' è abilitato.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Un percorso di importazione non può terminare con l'estensione '{0}'. In alternativa, provare a importare '{1}'.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Una firma dell'indice non può contenere un parametro rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Una firma dell'indice non può contenere una virgola finale.", "An_index_signature_must_have_a_type_annotation_1021": "Una firma dell'indice deve contenere un'annotazione di tipo.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Un'espressione di creazione di un'istanza non può essere seguita da un accesso a proprietà.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Un'interfaccia può estendere solo un identificatore/nome qualificato con argomenti tipo facoltativi.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Un'interfaccia può estendere solo un tipo di oggetto o un'intersezione di tipi di oggetto con membri noti in modo statico.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Un'interfaccia non può estendere un elemento di tipo primitivo come '{0}'. Può estendere solo altri tipi di oggetto denominati.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Un'interfaccia non può estendere un tipo primitivo come '{0}'; un'interfaccia può estendere solo tipi e classi denominati", "An_interface_property_cannot_have_an_initializer_1246": "Una proprietà di interfaccia non può contenere un inizializzatore.", "An_iterator_must_have_a_next_method_2489": "Un iteratore deve contenere un metodo 'next()'.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Quando si usa un'istruzione @jsx con frammenti JSX, è necessaria un'istruzione pragma @jsxFrag.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Un valore letterale di oggetto non può contenere più proprietà con lo stesso nome.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Un valore letterale di oggetto non può contenere proprietà e funzioni di accesso con lo stesso nome.", "An_object_member_cannot_be_declared_optional_1162": "Un membro di oggetto non può essere dichiarato come facoltativo.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Il metodo '[Symbol.hasInstance]' di un oggetto deve restituire un valore booleano da utilizzare a destra di un'espressione 'instanceof'.", "An_optional_chain_cannot_contain_private_identifiers_18030": "Una catena facoltativa non può contenere identificatori privati.", "An_optional_element_cannot_follow_a_rest_element_1266": "Non è possibile specificare un elemento facoltativo dopo un elemento REST.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Un valore esterno di 'this' è nascosto da questo contenitore.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Non è possibile dichiarare come generatore una firma di overload.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Nella parte sinistra di un'espressione di elevamento a potenza non è consentita un'espressione unaria con l'operatore '{0}'. Provare a racchiudere l'espressione tra parentesi.", "Annotate_everything_with_types_from_JSDoc_95043": "Annotare tutto con tipi di JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Annotare tipi di proprietà funzione expando in uno spazio dei nomi", "Annotate_with_type_from_JSDoc_95009": "Annotare con tipo di JSDoc", "Another_export_default_is_here_2753": "In questo punto è presente un'altra impostazione predefinita per l'esportazione.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Qualsiasi proprietà Unicode che potrebbe corrispondere a più di un singolo carattere è disponibile solo quando è impostato il flag Unicode Sets (v).", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Qualsiasi elemento che potrebbe corrispondere a più di un singolo carattere non è valido all'interno di una classe di caratteri negati.", "Are_you_missing_a_semicolon_2734": "Manca un punto e virgola?", "Argument_expression_expected_1135": "È prevista l'espressione di argomento.", "Argument_for_0_option_must_be_Colon_1_6046": "L'argomento per l'opzione '{0}' deve essere {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "L'argomento di tipo '{0}' non può essere assegnato al parametro di tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' ai tipi di proprietà di destinazione.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Gli argomenti per il parametro REST '{0}' non sono stati specificati.", "Array_element_destructuring_pattern_expected_1181": "È previsto il criterio di destrutturazione dell'elemento della matrice.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Non è possibile dedurre matrici con elementi estesi con --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Con le asserzioni ogni nome nella destinazione di chiamata deve essere dichiarato con un'annotazione di tipo esplicita.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Con le asserzioni la destinazione di chiamata deve essere un identificatore o un nome completo.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "L'assegnazione di proprietà a funzioni senza dichiararle non è supportata con --isolatedDeclarations. Aggiungere una dichiarazione esplicita per le proprietà assegnate a questa funzione.", "Asterisk_Slash_expected_1010": "È previsto '*/'.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Almeno una funzione di accesso deve avere un'annotazione di tipo esplicita con --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Gli aumenti per l'ambito globale possono solo essere direttamente annidati in dichiarazioni di modulo di ambiente o moduli esterni.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Gli aumenti per l'ambito globale devono contenere il modificatore 'declare', a meno che non siano già presenti in un contesto di ambiente.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Il rilevamento automatico per le defizioni di tipi è abilitato nel progetto '{0}'. Verrà eseguito il passaggio di risoluzione aggiuntivo per il modulo '{1}' usando il percorso della cache '{2}'.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Non è possibile usare l'espressione await all'interno di un blocco statico di classe.", "BUILD_OPTIONS_6919": "OPZIONI DI COMPILAZIONE", "Backwards_Compatibility_6253": "Compatibilità con le versioni precedenti", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Le espressioni di classi di base non possono fare riferimento a parametri di tipo classe.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "I valori letterali bigint non sono disponibili quando la destinazione è precedente a ES2020.", "Binary_digit_expected_1177": "È prevista una cifra binaria.", "Binding_element_0_implicitly_has_an_1_type_7031": "L'elemento di binding '{0}' contiene implicitamente un tipo '{1}'.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Non è possibile esportare direttamente gli elementi di binding con --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "La variabile con ambito blocco '{0}' è stata usata prima di essere stata dichiarata.", "Build_a_composite_project_in_the_working_directory_6925": "Compila un progetto composito nella directory di lavoro.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Compilare tutti i progetti, anche quelli che sembrano aggiornati.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Compilare uno o più progetti e le relative dipendenze, se non aggiornate", "Build_option_0_requires_a_value_of_type_1_5073": "Con l'opzione di compilazione '{0}' è richiesto un valore di tipo {1}.", "Building_project_0_6358": "Compilazione del progetto '{0}'...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Per gli enumeratori predefiniti viene creata un'istanza con un tipo 'TReturn' di tipo 'undefined' invece di 'any'.", "COMMAND_LINE_FLAGS_6921": "FLAG DELLA RIGA DI COMANDO", "COMMON_COMMANDS_6916": "COMANDI COMUNI", "COMMON_COMPILER_OPTIONS_6920": "OPZIONI COMUNI DEL COMPILATORE", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "I tipi restituiti delle firme di chiamata '{0}' e '{1}' sono incompatibili.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "La firma di chiamata, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito 'any'.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Le firme di chiamata senza argomenti contengono i tipi restituiti incompatibili '{0}' e '{1}'.", + "Call_target_does_not_contain_any_signatures_2346": "La destinazione della chiamata non contiene alcuna firma.", "Can_only_convert_logical_AND_access_chains_95142": "È possibile convertire solo catene di accesso AND logiche", "Can_only_convert_named_export_95164": "È possibile solo convertire l'esportazione denominata", "Can_only_convert_property_with_modifier_95137": "È possibile convertire solo la proprietà con il modificatore", - "Can_only_convert_string_concatenations_and_string_literals_95154": "È possibile convertire solo concatenazioni di stringhe e valori letterali stringa", + "Can_only_convert_string_concatenation_95154": "È possibile convertire solo la concatenazione di stringhe", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Non è possibile accedere a '{0}.{1}' perché '{0}' è un tipo ma non uno spazio dei nomi. Si intendeva recuperare il tipo della proprietà '{1}' in '{0}' con '{0}[\"{1}\"]'?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Non è possibile accedere '{0}' da un altro file senza qualifica quando '{1}' è abilitato. In alternativa, usare '{2}'.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Non è possibile accedere alle enumerazioni const di Ambient quando '{0}' è abilitato.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Quando si specifica il flag '--isolatedModules', non è possibile accedere a enumerazioni const di ambiente.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Non è possibile assegnare un tipo di costruttore '{0}' a un tipo di costruttore '{1}'.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Non è possibile assegnare un tipo di costruttore astratto a un tipo di costruttore non astratto.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Non è possibile assegnare a '{0}' perché è una classe.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "La definizione della libreria per '{0}' non è stata trovata.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "La definizione della libreria per '{0}' non è stata trovata. Si intendeva '{1}'?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Non è possibile trovare il modulo '{0}'. Provare a usare '--resolveJsonModule' per importare il modulo con estensione '.json'.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Non è possibile trovare il modulo '{0}'. Si intendeva impostare l'opzione 'moduleResolution' su 'nodenext' o aggiungere alias all'opzione 'paths'?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Non è possibile trovare il modulo '{0}'. Si intendeva impostare l'opzione 'moduleResolution' su 'node' o aggiungere alias all'opzione 'paths'?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Non è possibile trovare il modulo '{0}' o le relative dichiarazioni di tipo corrispondenti.", "Cannot_find_name_0_2304": "Il nome '{0}' non è stato trovato.", "Cannot_find_name_0_Did_you_mean_1_2552": "Il nome '{0}' non è stato trovato. Si intendeva '{1}'?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Impossibile trovare il nome '{0}'. Si intendeva scrivere questo elemento in una funzione asincrona?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su '{1}' o versioni successive.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Non è possibile trovare il nome '{0}'. È necessario modificare la libreria di destinazione? Provare a modificare l'opzione 'lib' del compilatore in modo che includa 'dom'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Il nome '{0}' non è stato trovato. È necessario installare le definizioni per il tipo di installazione per l'elemento Bun? Provare con `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_2868": "Il nome '{0}' non è stato trovato. È necessario installare le definizioni per il tipo di installazione per l'elemento Bun? Provare con `npm i --save-dev @types/bun` quindi aggiungere 'bun' al campo Tipi in tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per un test runner? Provare con `npm i --save-dev @types/jest` o `npm i --save-dev @types/mocha`.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per un test runner? Provare con `npm i --save-dev @types/jest` o `npm i --save-dev @types/mocha` e quindi aggiungere 'jest' o 'mocha' al campo types in tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Non è possibile trovare il nome '{0}'. È necessario installare le definizioni di tipo per jQuery? Provare con `npm i --save-dev @types/jquery`.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma la destrutturazione della matrice invierà sempre '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma l'estensione della matrice invierà sempre '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Non è possibile eseguire l'iterazione del valore perché il metodo 'next' del relativo iteratore prevede il tipo '{1}', ma for-of invierà sempre '{0}'.", - "Cannot_move_statements_to_the_selected_file_95183": "Non è possibile spostare istruzioni nel file selezionato", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Non è possibile passare al file. Il file selezionato non è valido", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Non è possibile anteporre il progetto '{0}' perché 'outFile' non è impostato", "Cannot_read_file_0_5083": "Non è possibile leggere il file '{0}'.", "Cannot_read_file_0_Colon_1_5012": "Non è possibile leggere il file '{0}': {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Non è possibile dichiarare di nuovo la variabile con ambito blocco '{0}'.", "Cannot_redeclare_exported_variable_0_2323": "Non è possibile dichiarare di nuovo la variabile esportata '{0}'.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Non è possibile dichiarare di nuovo l'identificatore '{0}' nella clausola catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Non è possibile avviare una chiamata di funzione in un'annotazione di tipo.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Non è possibile aggiornare l'output del progetto '{0}' perché si è verificato un errore durante la lettura del file '{1}'", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Non è possibile usare JSX a meno che non sia specificato il flag '--jsx'.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Non è possibile usare 'export import' in uno spazio dei nomi type o type-only quando '{0}' è abilitato.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Non è possibile usare 'export import' in un tipo o in uno spazio dei nomi solo di tipo quando si specifica il flag '--isolatedModules'.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Non è possibile usare importazioni, esportazioni o aumenti del modulo quando il valore di '--module' è 'none'.", "Cannot_use_namespace_0_as_a_type_2709": "Non è possibile usare lo spazio dei nomi '{0}' come tipo.", "Cannot_use_namespace_0_as_a_value_2708": "Non è possibile usare lo spazio dei nomi '{0}' come valore.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Cambiare 'extends' in 'implements'", "Change_spelling_to_0_90022": "Modificare l'ortografia in '{0}'", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Verifica la presenza di proprietà di classe dichiarate ma non impostate nel costruttore.", - "Check_side_effect_imports_6806": "Controllare le importazioni di effetti collaterali.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Verifica che gli argomenti per i metodi 'bind', 'call', and 'apply' corrispondano alla funzione originale.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Verrà verificato se '{0}' è il prefisso di corrispondenza più lungo per '{1}' - '{2}'.", "Circular_definition_of_import_alias_0_2303": "Definizione circolare dell'alias di importazione '{0}'.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "La dichiarazione classe non può implementare l'elenco di overload per '{0}'.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Le dichiarazioni di classe non possono contenere più di un tag '@augments' o '@extends'.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Non è possibile elementi Decorator di classe con l'identificatore privato statico. Provare a rimuovere l'elemento Decorator sperimentale.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Il campo della classe '{0}' definito dalla classe padre non è accessibile nella classe figlio tramite super.", "Class_name_cannot_be_0_2414": "Il nome della classe non può essere '{0}'.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Il nome della classe non può essere 'Object' quando la destinazione è ES5 con il modulo {0}.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Il lato statico '{0}' della classe estende in modo errato il lato statico '{1}' della classe di base.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Opzioni della riga di comando", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compila il progetto in base al percorso del file di configurazione o della cartella contenente un file 'tsconfig.json'.", "Compiler_Diagnostics_6251": "Diagnostica compilatore", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "Non è possibile specificare una stringa vuota per l'opzione del compilatore '{0}'.", "Compiler_option_0_expects_an_argument_6044": "Con l'opzione '{0}' del compilatore è previsto un argomento.", "Compiler_option_0_may_not_be_used_with_build_5094": "L'opzione del compilatore '--{0}' potrebbe non essere usata con '--build'.", "Compiler_option_0_may_only_be_used_with_build_5093": "L'opzione del compilatore '--{0}' potrebbe essere usata solo con '--build'.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "I progetti compositi non possono disabilitare la creazione di dichiarazioni.", "Composite_projects_may_not_disable_incremental_compilation_6379": "I progetti compositi non possono disabilitare la compilazione incrementale.", "Computed_from_the_list_of_input_files_6911": "Calcolato dall'elenco dei file di input", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Le proprietà calcolate devono essere valori letterali numerici o stringa, variabili o espressioni con punti con --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "I nomi di proprietà calcolati non sono consentiti nelle enumerazioni.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Non è possibile dedurre i nomi di proprietà calcolati nei valori letterali di classe o oggetto con --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "In un'enumerazione con membri con valore stringa non sono consentiti valori calcolati.", "Concatenate_and_emit_output_to_single_file_6001": "Concatena e crea l'output in un singolo file.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Condizioni da impostare in aggiunta alle impostazioni predefinite specifiche del resolver durante la risoluzione delle importazioni.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "In '{1}' e '{2}' sono state trovate definizioni in conflitto per '{0}'. Per risolvere il conflitto, provare a installare una versione specifica di questa libreria.", "Conflicts_are_in_this_file_6201": "I conflitti si trovano in questo file.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Provare ad aggiungere un modificatore \"declare\" a questa classe.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "I tipi restituiti delle firme del costrutto '{0}' e '{1}' sono incompatibili.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Convertire '{0}' nel tipo di oggetto con mapping", "Convert_all_const_to_let_95102": "Convertire ogni 'const' in 'let'", "Convert_all_constructor_functions_to_classes_95045": "Convertire tutte le funzioni di costruttore in classi", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Convertire tutte le importazioni non usate come valore in importazioni solo di tipi", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Convertire tutti i caratteri non validi nel codice entità HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Convertire tutti i tipi riesportati in esportazioni solo di tipi", "Convert_all_require_to_import_95048": "Convertire tutte le occorrenze di 'require' in 'import'", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Convertire tutto in valori letterali numerici bigint", "Convert_all_to_default_imports_95035": "Convertire tutte le impostazioni predefinite", "Convert_all_type_literals_to_mapped_type_95021": "Convertire tutti i valori letterali di tipo nel tipo di cui è stato eseguito il mapping", - "Convert_all_typedef_to_TypeScript_types_95177": "Convertire tutti gli elementi typedef in tipi TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Convertire la funzione arrow o l'espressione di funzione", "Convert_const_to_let_95093": "Convertire 'const' in 'let'", "Convert_default_export_to_named_export_95061": "Convertire l'esportazione predefinita nell'esportazione denominata", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Convertire nell'espressione di catena facoltativa", "Convert_to_template_string_95096": "Convertire nella stringa di modello", "Convert_to_type_only_export_1364": "Convertire nell'esportazione solo di tipi", - "Convert_typedef_to_TypeScript_type_95176": "Convertire typedef in tipo TypeScript.", + "Convert_to_type_only_import_1373": "Convertire nell'importazione solo di tipi", "Corrupted_locale_file_0_6051": "Il file delle impostazioni locali {0} è danneggiato.", "Could_not_convert_to_anonymous_function_95153": "Non è stato possibile convertire nella funzione anonima", "Could_not_convert_to_arrow_function_95151": "Non è stato possibile convertire nella funzione arrow", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Non è stato possibile trovare il nome '{0}'. Si intendeva '{1}'?", "Could_not_find_namespace_import_or_named_imports_95132": "Non è stato possibile trovare l'importazione spazi dei nomi o importazioni denominate", "Could_not_find_property_for_which_to_generate_accessor_95135": "Non è stato possibile trovare la proprietà per cui generare la funzione di accesso", - "Could_not_find_variable_to_inline_95185": "Non è possibile trovare la variabile per inline.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Non è stato possibile risolvere il percorso '{0}' con le estensioni: {1}.", "Could_not_write_file_0_Colon_1_5033": "Non è stato possibile scrivere il file '{0}': {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Crea file di mapping di origine per i file JavaScript creati.", "Create_sourcemaps_for_d_ts_files_6614": "Crea mapping di origine per i file d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Crea un file tsconfig.jscon le impostazioni consigliate nella directory di lavoro.", "DIRECTORY_6038": "DIRECTORY", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Le sequenze di escape e i backreference decimali non sono consentiti in una classe di caratteri.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "I decimali con zeri iniziali non sono consentiti.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "La dichiarazione causa un aumento di una dichiarazione in un altro file. Questa operazione non è serializzabile.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "La creazione della dichiarazione per questo file richiede il mantenimento dell'importazione per gli aumenti. Funzionalità non supportata con --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Per la creazione della dichiarazione per questo file è necessario usare il nome privato '{0}' dal modulo '{1}'. Un'annotazione di tipo esplicita può sbloccare la creazione della dichiarazione.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "La creazione di dichiarazioni per questo parametro richiede l'aggiunta implicita di elementi non definiti al relativo tipo. Funzionalità non supportata con --isolatedDeclarations.", "Declaration_expected_1146": "È prevista la dichiarazione.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Il nome della dichiarazione è in conflitto con l'identificatore globale predefinito '{0}'.", "Declaration_or_statement_expected_1128": "È prevista la dichiarazione o l'istruzione.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Dichiarare la proprietà statica '{0}'", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Il tipo restituito della funzione Decorator '{0}' non è assegnabile al tipo '{1}'.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Il tipo restituito della funzione Decorator è '{0}' ma è previsto 'void' o 'any'.", - "Decorator_used_before_export_here_1486": "Elemento Decorator usato prima di 'export'.", "Decorators_are_not_valid_here_1206": "In questo punto le espressioni Decorator non sono valide.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Non è possibile applicare le espressioni Decorator a più funzioni di accesso get/set con lo stesso nome.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Gli elementi Decorator non possono essere visualizzati dopo 'export' o 'export default' se vengono visualizzati anche prima di 'export'.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Gli elementi Decorator potrebbero non essere applicati ai parametri 'this'.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Gli elementi Decorator devono precedere il nome e tutte le parole chiave delle dichiarazioni di proprietà.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Le variabili della clausola catch predefinite sono 'unknown' anziché 'any'.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "L'esportazione predefinita del modulo contiene o usa il nome privato '{0}'.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Non è possibile dedurre le esportazioni predefinite con --isolatedDeclarations.", "Default_library_1424": "Libreria predefinita", "Default_library_for_target_0_1425": "Libreria predefinita per la destinazione '{0}'", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Le definizioni degli identificatori seguenti sono in conflitto con quelle di un altro file: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Disabilita la cancellazione delle dichiarazioni 'const enum' nel codice generato.", "Disable_error_reporting_for_unreachable_code_6603": "Disabilita la segnalazione errori per il codice non raggiungibile.", "Disable_error_reporting_for_unused_labels_6604": "Disabilita la segnalazione errori per le etichette non usate.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Disabilitare il controllo completo dei tipi (verranno segnalati solo errori critici di creazione e analisi).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Disabilita la generazione di funzioni helper personalizzate come '__extends' nell'output compilato.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Disabilita l'inclusione di tutti i file di libreria, incluso il file lib.d.ts predefinito.", "Disable_loading_referenced_projects_6235": "Disabilitare il caricamento dei progetti cui viene fatto riferimento.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Non consente a direttive 'import's, 'require's o '' di espandere il numero di file che TypeScript deve aggiungere a un progetto.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Non consente riferimenti allo stesso file in cui le maiuscole/minuscole vengono usate in modo incoerente.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Non aggiunge riferimenti con tripla barra (////) o moduli importati all'elenco di file compilati.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Non consentire costrutti di runtime che non fanno parte di ECMAScript.", "Do_not_emit_comments_to_output_6009": "Non crea commenti nell'output.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Non crea dichiarazioni per codice che contiene un'annotazione '@internal'.", "Do_not_emit_outputs_6010": "Non crea output.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Non segnala gli errori in caso di codice non raggiungibile.", "Do_not_report_errors_on_unused_labels_6074": "Non segnala gli errori in caso di etichette non usate.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Non risolvere il percorso reale di collegamenti simbolici.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Non trasformare o eliminare importazioni o esportazioni non contrassegnate come type-only, in modo che vengano scritte nel formato del file di output in base all'impostazione 'module'.", "Do_not_truncate_error_messages_6165": "Non tronca i messaggi di errore.", "Duplicate_function_implementation_2393": "Implementazione di funzione duplicata.", "Duplicate_identifier_0_2300": "Identificatore '{0}' duplicato.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Firma dell'indice duplicata per il tipo '{0}'.", "Duplicate_label_0_1114": "Etichetta '{0}' duplicata.", "Duplicate_property_0_2718": "La proprietà '{0}' è duplicata.", - "Duplicate_regular_expression_flag_1500": "Flag di espressione regolare duplicato.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "L'identificatore dell'importazione dinamica deve essere di tipo 'string', ma il tipo specificato qui è '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Le importazioni dinamiche sono supportate solo quando il flag '--module' è impostato su 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18' o 'nodenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Le importazioni dinamiche possono accettare come argomenti solo un identificatore di modulo e un set di attributi facoltativi", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Le importazioni dinamiche supportano un secondo argomento solo quando l'opzione '--module' è impostata su 'esnext', 'node16', 'node18', 'nodenext' o 'preserve'.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "Sintassi ESM non consentita in un modulo CommonJS quando 'module' è impostato su 'preserve'.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "Sintassi ESM non consentita in un modulo CommonJS quando 'verbatimModuleSyntax' è abilitato.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Il valore di ogni dichiarazione di '{0}.{1}' è diverso, dove '{2}' è previsto mentre '{3}' è specificato.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Le importazioni dinamiche sono supportate solo quando il flag '--module' è impostato su 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' o 'nodenext'.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Le importazioni dinamiche possono accettare come argomenti solo un identificatore di modulo e un'asserzione facoltativa", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Le importazioni dinamiche supportano un secondo argomento solo quando l'opzione '--module' è impostata su ''esnext', 'node16', o 'nodenext'.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Ogni membro del tipo di unione '{0}' contiene firme di costrutto, ma nessuna di tali firme è compatibile con le altre.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Ogni membro del tipo di unione '{0}' contiene firme, ma nessuna di tali firme è compatibile con le altre.", "Editor_Support_6249": "Supporto Editor", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Abilita la segnalazione errori nei file JavaScript con controllo del tipo.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Abilita la segnalazione errori quando variabili locali non vengono lette.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Abilita la segnalazione errori quando a 'this' viene assegnato il tipo 'any'.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Abilitare il supporto sperimentale per gli elementi Decorator sperimentali legacy.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Abilitare l'importazione di file con qualsiasi estensione, purché sia presente un file di dichiarazione.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Abilita il supporto sperimentale per gli elementi Decorator della bozza fase 2 di TC39.", "Enable_importing_json_files_6689": "Abilita l'importazione di file .json.", - "Enable_lib_replacement_6808": "Abilita sostituzione librerie.", "Enable_project_compilation_6302": "Abilitare la compilazione dei progetti", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Abilitare i metodi strict 'bind', 'call' e 'apply' nelle funzioni.", "Enable_strict_checking_of_function_types_6186": "Abilita il controllo tassativo dei tipi funzione.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Si assicura che l'uso di maiuscole e minuscole sia corretto nelle direttive import.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Si assicura che sia possibile eseguire il transpile di ogni file in modo sicuro senza basarsi su altre direttive import.", "Ensure_use_strict_is_always_emitted_6605": "Si assicura che la direttiva 'use strict' venga sempre creata.", - "Entering_conditional_exports_6413": "Immissione di esportazioni condizionali.", "Entry_point_for_implicit_type_library_0_1420": "Punto di ingresso per la libreria dei tipi impliciti '{0}'", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Punto di ingresso per la libreria dei tipi impliciti '{0}' con packageId '{1}'", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Punto di ingresso della libreria dei tipi '{0}' specificata in compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "È possibile unire dichiarazioni di enumerazione solo con lo spazio dei nomi o altre dichiarazioni di enumerazione.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Le dichiarazioni di enumerazione devono essere tutte const o tutte non const.", "Enum_member_expected_1132": "È previsto il membro di enumerazione.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Il membro di enumerazione che segue un membro numerico non letterale deve avere un inizializzatore quando 'isolatedModules' è abilitato.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Gli inizializzatori di membri di enumerazione devono essere calcolabili senza riferimenti a simboli esterni con --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "Il membro di enumerazione deve contenere l'inizializzatore.", "Enum_name_cannot_be_0_2431": "Il nome dell'enumerazione non può essere '{0}'.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Il tipo di enumerazione '{0}' contiene membri i cui inizializzatori non sono valori letterali.", "Errors_Files_6041": "File di errori", - "Escape_sequence_0_is_not_allowed_1488": "Sequenza di escape '{0}' non consentita.", "Examples_Colon_0_6026": "Esempi: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Complessità eccessiva rispetto ai tipi '{0}' e '{1}'.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "La profondità dello stack per il confronto dei tipi '{0}' e '{1}' è eccessiva.", - "Exiting_conditional_exports_6416": "Chiusura di esportazioni condizionali.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Sono previsti argomento tipo {0}-{1}. Per specificarli, usare un tag '@extends'.", "Expected_0_arguments_but_got_1_2554": "Sono previsti {0} argomenti, ma ne sono stati ottenuti {1}.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Sono previsti {0} argomenti, ma ne sono stati ottenuti {1}. Si è dimenticato di includere 'void' nell'argomento di tipo per 'Promise'?", "Expected_0_type_arguments_but_got_1_2558": "Sono previsti {0} argomenti tipo, ma ne sono stati ottenuti {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Sono previsti {0} argomenti tipo. Per specificarli, usare un tag '@extends'.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Previsto 1 argomento, ma ottenuto 0. 'new Promise()' richiede un hint JSDoc per produrre un elemento 'resolve' che possa essere chiamato senza argomenti.", - "Expected_a_Unicode_property_name_1523": "È previsto un nome per la proprietà Unicode.", - "Expected_a_Unicode_property_name_or_value_1527": "È previsto un nome o un valore per la proprietà Unicode.", - "Expected_a_Unicode_property_value_1525": "È previsto un valore per la proprietà Unicode.", - "Expected_a_capturing_group_name_1514": "È previsto un nome per il gruppo di acquisizione.", - "Expected_a_class_set_operand_1520": "È previsto un operando del set di classi.", "Expected_at_least_0_arguments_but_got_1_2555": "Sono previsti almeno {0} argomenti, ma ne sono stati ottenuti {1}.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "È previsto il tag di chiusura JSX corrispondente per '{0}'.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "È previsto il tag di chiusura corrispondente per il frammento JSX.", "Expected_for_property_initializer_1442": "È previsto '=' per l'inizializzatore di proprietà.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Il tipo previsto del campo '{0}' in 'package.json' è '{1}', ma è stato ottenuto '{2}'.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Il supporto sperimentale per gli elementi Decorator è una funzionalità soggetta a modifica nelle prossime versioni. Per rimuovere questo avviso, impostare l'opzione 'experimentalDecorators' nel file 'tsconfig' o 'jsconfig'.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Il tipo di risoluzione del modulo '{0}' è stato specificato in modo esplicito.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Non è possibile usare l'elevamento a potenza su valori 'bigint' a meno che l'opzione 'target' non sia impostata su 'es2016' o versioni successive.", "Export_0_from_module_1_90059": "Esporta '{0}' dal modulo '{1}'", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "La variabile esportata '{0}' contiene o usa il nome privato '{1}'.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Le esportazioni e le assegnazioni di esportazioni non sono consentite negli aumenti del modulo.", "Expression_expected_1109": "È prevista l'espressione.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "L'espressione deve essere racchiusa tra parentesi per poter essere usata come elemento Decorator.", "Expression_or_comma_expected_1137": "È prevista l'espressione o la virgola.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "L'espressione produce un tipo di tupla troppo grande da rappresentare.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "L'espressione produce un tipo di unione troppo complesso da rappresentare.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "L'espressione viene risolta in '_super', che è usato dal compilatore per acquisire il riferimento della classe di base.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "L'espressione viene risolta nella dichiarazione di variabile '_newTarget', che è usata dal compilatore per acquisire il riferimento alla metaproprietà 'new.target'.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "L'espressione viene risolta nella dichiarazione di variabile '_this', che è usata dal compilatore per acquisire il riferimento 'this'.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Non è possibile dedurre il tipo di espressione con --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "La clausola Extends non può contenere un'espressione con --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "La clausola Extends del tipo dedotto '{0}' contiene o usa il nome privato '{1}'.", - "Extract_base_class_to_variable_90064": "Estrarre la classe di base nella variabile", - "Extract_binding_expressions_to_variable_90066": "Estrarre le espressioni di associazione nella variabile", "Extract_constant_95006": "Estrarre la costante", - "Extract_default_export_to_variable_90065": "Estrarre l'esportazione predefinita nella variabile", "Extract_function_95005": "Estrarre la funzione", "Extract_to_0_in_1_95004": "Estrarre in {0} in {1}", "Extract_to_0_in_1_scope_95008": "Estrarre in {0} nell'ambito {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Estrarre nell'interfaccia", "Extract_to_type_alias_95078": "Estrarre nell'alias di tipo", "Extract_to_typedef_95079": "Estrarre in typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Estrarre nella variabile e sostituire con '{0} come typeof {0}'", "Extract_type_95077": "Estrarre il tipo", "FILE_6035": "FILE", "FILE_OR_DIRECTORY_6040": "FILE O DIRECTORY", - "Failed_to_find_peerDependency_0_6283": "Impossibile trovare peerDependency '{0}'.", - "Failed_to_resolve_under_condition_0_6415": "Impossibile risolvere in base alla condizione '{0}'.", + "Failed_to_parse_file_0_Colon_1_5014": "Non è stato possibile analizzare il file '{0}': {1}.", "Fallthrough_case_in_switch_7029": "Caso di fallthrough in switch.", "File_0_does_not_exist_6096": "Il file '{0}' non esiste.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Il file '{0}' non esiste in base alle ricerche precedenti memorizzate nella cache.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Il file '{0}' esiste. Usarlo come risultato per la risoluzione dei nomi.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Il file '{0}' esiste già in base alle ricerche precedenti memorizzate nella cache.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Il file '{0}' esiste. Usarlo come risultato per la risoluzione dei nomi.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "L'estensione del file '{0}' non è supportata. Le uniche estensioni supportate sono {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "L'estensione del file '{0}' non è supportata. Il file verrà ignorato.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Il file '{0}' è un file JavaScript. Si intendeva abilitare l'opzione 'allowJs'?", "File_0_is_not_a_module_2306": "Il file '{0}' non è un modulo.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Il file '{0}' non è incluso nell'elenco file del progetto '{1}'. I progetti devono elencare tutti i file o usare un criterio 'include'.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Il file '{0}' non si trova in 'rootDir' '{1}'. 'rootDir' deve contenere tutti i file di origine.", "File_0_not_found_6053": "Il file '{0}' non è stato trovato.", "File_Management_6245": "Gestione dei file", - "File_appears_to_be_binary_1490": "Il file sembra essere binario.", "File_change_detected_Starting_incremental_compilation_6032": "È stata rilevata una modifica ai file. Verrà avviata la compilazione incrementale...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Il file è un modulo CommonJS perché '{0}' non contiene il campo \"type\"", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Il file è un modulo CommonJS perché '{0}' contiene il campo \"type\" il cui valore non è \"module\"", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Il file corrisponde all'origine '{0}' del riferimento al progetto", "File_is_source_from_referenced_project_specified_here_1416": "Il file è l'origine del progetto di riferimento specificato in questo punto.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Il nome file '{0}' differisce da quello già incluso '{1}' solo per l'uso di maiuscole/minuscole.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Il nome file '{0}' ha un'estensione '{1}' - eseguire invece la ricerca di '{2}'.", "File_name_0_has_a_1_extension_stripping_it_6132": "L'estensione del nome file '{0}' è '{1}' e verrà rimossa.", "File_redirects_to_file_0_1429": "Il file viene reindirizzato al file '{0}'", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "La specifica del file non può contenere una directory padre ('..') inserita dopo un carattere jolly ('**') di directory ricorsiva: '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Correggere tutte le espressioni in cui potrebbe mancare 'await'", "Fix_all_implicit_this_errors_95107": "Correggere tutti gli errori relativi a 'this' implicito", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Correggere tutti i tipi restituiti non corretti di una funzione asincrona", - "Fix_all_with_type_only_imports_95182": "Correggere tutto con importazioni type-only", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Non è possibile usare i cicli 'for await' all'interno di un blocco statico di classe.", "Found_0_errors_6217": "Sono stati trovati {0} errori.", "Found_0_errors_Watching_for_file_changes_6194": "Sono stati trovati {0} errori. Verranno individuate le modifiche ai file.", "Found_0_errors_in_1_files_6261": "Sono stati trovati {0} errori nei file {1}.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Sono stati trovati {0} errori nello stesso file, a partire da: {1}", "Found_1_error_6216": "È stato trovato 1 errore.", "Found_1_error_Watching_for_file_changes_6193": "È stato trovato 1 errore. Verranno individuate le modifiche ai file.", - "Found_1_error_in_0_6259": "È stato trovato 1 errore in {0}", + "Found_1_error_in_1_6259": "È stato trovato 1 errore in {1}", "Found_package_json_at_0_6099": "Il file 'package.json' è stato trovato in '{0}'.", - "Found_peerDependency_0_with_1_version_6282": "Trovato l'elemento peerDependency '{0}' con versione '{1}'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES5'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES5'. Le definizioni di classe sono impostate automaticamente nella modalità strict.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES5'. I moduli sono impostati automaticamente nella modalità strict.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'. Le definizioni di classe sono impostate automaticamente nella modalità strict.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Le dichiarazioni di funzione non sono consentite all'interno di blocchi in modalità strict quando la destinazione è 'ES3' o 'ES5'. I moduli sono impostati automaticamente nella modalità strict.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "L'espressione di funzione, in cui manca l'annotazione di tipo restituito, contiene implicitamente un tipo restituito '{0}'.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "L'implementazione di funzione manca o non segue immediatamente la dichiarazione.", "Function_implementation_name_must_be_0_2389": "Il nome dell'implementazione di funzione deve essere '{0}'.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "La funzione contiene implicitamente il tipo restituito 'any', perché non contiene un'annotazione di tipo restituito e viene usata come riferimento diretto o indiretto in una delle relative espressioni restituite.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Nella funzione manca l'istruzione return finale e il tipo restituito non include 'undefined'.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "La funzione deve avere un'annotazione di tipo restituito esplicita con --isolatedDeclarations.", "Function_not_implemented_95159": "Funzione non implementata.", "Function_overload_must_be_static_2387": "L'overload della funzione deve essere statico.", "Function_overload_must_not_be_static_2388": "L'overload della funzione non deve essere statico.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Genera una traccia eventi e un elenco di tipi.", "Generates_corresponding_d_ts_file_6002": "Genera il file '.d.ts' corrispondente.", "Generates_corresponding_map_file_6043": "Genera il file '.map' corrispondente.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Il generatore ha implicitamente il tipo yield \"{0}\". Provare a specificare un'annotazione di tipo restituito.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Al generatore è assegnato in modo implicito il tipo yield '{0}' perché non contiene alcun valore. Provare a specificare un'annotazione di tipo restituito.", "Generators_are_not_allowed_in_an_ambient_context_1221": "I generatori non sono consentiti in un contesto di ambiente.", "Generic_type_0_requires_1_type_argument_s_2314": "Il tipo generico '{0}' richiede {1} argomento/i di tipo.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Il tipo generico '{0}' richiede tra {1} e {2} argomenti tipo.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "È previsto l'identificatore.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "È previsto un identificatore. '__esModule' è riservato come marcatore esportato durante la trasformazione di moduli ECMAScript.", "Identifier_or_string_literal_expected_1478": "Previsto identificatore o valore letterale stringa.", - "Identifier_string_literal_or_number_literal_expected_1496": "Identificatore, valore letterale stringa o valore letterale numerico previsti.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se il pacchetto '{0}' espone effettivamente questo modulo, provare a inviare una richiesta pull per modificare 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se il pacchetto ' {0}' espone effettivamente il modulo, provare ad aggiungere un nuovo file di dichiarazione (.d.ts) contenente ' Dichiara modulo' {1}';'", "Ignore_this_error_message_90019": "Ignorare questo messaggio di errore", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implementare l'interfaccia '{0}'", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "La clausola implements della classe esportata '{0}' contiene o usa il nome privato '{1}'.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "La conversione implicita di un valore 'symbol' in 'string' non riuscirà in fase di esecuzione. Provare a eseguire il wrapping di questa espressione in 'String(...)'.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "L'importazione '{0}' è in conflitto con il valore globale usato in questo file, quindi deve essere dichiarata con un'importazione type-only quando 'isolatedModules' è abilitato.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "L'importazione '{0}' è in conflitto con il valore locale, quindi deve essere dichiarata con un'importazione type-only quando 'isolatedModules' è abilitato.", "Import_0_from_1_90013": "Importare '{0}' da \"{1}\".", "Import_assertion_values_must_be_string_literal_expressions_2837": "I valori di asserzione di importazione devono essere espressioni letterali delle stringhe.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Le asserzioni di importazione non sono consentite nelle istruzioni che compilano nelle chiamate 'require' di CommonJS.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione '--module' è impostata su 'esnext', 'node18', 'nodenext' o 'preserve'.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Le asserzioni di importazione non sono consentite nelle istruzioni che eseguono il transpile nelle chiamate 'require' di commonjs.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione “--module” è impostata su “esnext” o “nodenext”.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Non è possibile usare asserzioni di importazione con importazioni o esportazioni di solo tipo.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Le asserzioni di importazione sono state sostituite dagli attributi di importazione. Usare 'with' invece di 'assert'.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Non è possibile usare l'assegnazione di importazione se destinata a moduli ECMAScript. Provare a usare 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' o un altro formato di modulo.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "I valori degli attributi di importazione devono essere espressioni letterali delle stringhe.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Gli attributi di importazione non sono consentiti nelle istruzioni che compilano nelle chiamate 'require' di CommonJS.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Gli attributi di importazione sono supportati solo quando l'opzione '--module' è impostata su 'esnext', 'node18', 'nodenext' o 'preserve'.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Non è possibile usare attributi di importazione con importazioni o esportazioni type-only.", "Import_declaration_0_is_using_private_name_1_4000": "La dichiarazione di importazione '{0}' usa il nome privato '{1}'.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "La dichiarazione di importazione è in conflitto con la dichiarazione locale di '{0}'.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Le dichiarazioni di importazione in uno spazio dei nomi non possono far riferimento a un modulo.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Importato tramite {0} dal file '{1}' con packageId '{2}'", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importato tramite {0} dal file '{1}' con packageId '{2}' per importare 'importHelpers' come specificato in compilerOptions", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importato tramite {0} dal file '{1}' con packageId '{2}' per importare le funzioni di factory 'jsx' e 'jsxs'", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "L'importazione di un file JSON in un modulo ECMAScript richiede un attributo di importazione \"type: \"json\"\" quando \"module\" è impostato su \"{0}\".", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Le importazioni non sono consentite negli aumenti di modulo. Provare a spostarle nel modulo esterno di inclusione.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Nelle dichiarazioni di enumerazione dell'ambiente l'inizializzatore di membro deve essere un'espressione costante.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "In un'enumerazione con più dichiarazioni solo una di queste può omettere un inizializzatore per il primo elemento dell'enumerazione.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Include i file dei mapping di origine all'interno del codice JavaScript creato.", "Includes_imports_of_types_referenced_by_0_90054": "Include importazioni di tipi a cui fa riferimento '{0}'", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Se si include --watch, l'opzione -w consentirà di iniziare a controllare il progetto corrente per individuare modifiche ai file. Dopo l'impostazione, è possibile configurare la modalità espressione di controllo con:", - "Incomplete_quantifier_Digit_expected_1505": "Quantificatore incompleto. Numero previsto.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "La firma dell'indice per il tipo '{0}' manca nel tipo '{1}'.", "Index_signature_in_type_0_only_permits_reading_2542": "La firma dell'indice nel tipo '{0}' consente solo la lettura.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Le singole dichiarazioni della dichiarazione sottoposta a merge '{0}' devono essere tutte esportate o tutte locali.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Derivare i tipi di parametro dall'utilizzo", "Infer_this_type_of_0_from_usage_95080": "Derivare il tipo 'this' di '{0}' dall'utilizzo", "Infer_type_of_0_from_usage_95011": "Derivare il tipo di '{0}' dall'utilizzo", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "L'inferenza dalle espressioni di classe non è supportata con --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Inizializzare la proprietà '{0}' nel costruttore", "Initialize_static_property_0_90021": "Inizializzare la proprietà statica '{0}'", "Initializer_for_property_0_2811": "Inizializzatore per la proprietà '{0}'", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "L'inizializzatore della variabile del membro di istanza '{0}' non può fare riferimento all'identificatore '{1}' dichiarato nel costruttore.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "L'inizializzatore non fornisce alcun valore per questo elemento di binding e per quest'ultimo non è disponibile un valore predefinito.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Gli inizializzatori non sono consentiti in contesti di ambiente.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inizializza un progetto TypeScript e crea un file tsconfig.json.", - "Inline_variable_95184": "Variabile inline", "Insert_command_line_options_and_files_from_a_file_6030": "Inserisce i file e le opzioni della riga di comando da un file.", "Install_0_95014": "Installare '{0}'", "Install_all_missing_types_packages_95033": "Installare tutti i pacchetti di tipi mancanti", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Il nome di modulo nell'aumento non è valido. Il modulo '{0}' non è stato trovato.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Catena facoltativa non valida dalla nuova espressione. Si intendeva chiamare '{0}()'?", "Invalid_reference_directive_syntax_1084": "La sintassi della direttiva 'reference' non è valida.", - "Invalid_syntax_in_decorator_1498": "Sintassi non valida nell'elemento Decorator.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Uso non valido di '{0}'. Non può essere usato all'interno di un blocco statico di classe.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Uso non valido di '{0}'. I moduli vengono impostati automaticamente in modalità strict.", "Invalid_use_of_0_in_strict_mode_1100": "Uso non valido di '{0}' in modalità strict.", - "Invalid_value_for_ignoreDeprecations_5103": "Valore non valido per '--ignoreDeprecations'.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Il valore non è valido per 'jsxFactory'. '{0}' non è un identificatore o un nome qualificato valido.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Il valore non è valido per 'jsxFragmentFactory'. '{0}' non è un identificatore o un nome qualificato valido.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Il valore di '--reactNamespace' non è valido. '{0}' non è un identificatore valido", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Il relativo tipo di elemento '{0}' non è un elemento JSX valido.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Il relativo tipo di istanza '{0}' non è un elemento JSX valido.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Il relativo tipo restituito '{0}' non è un elemento JSX valido.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Il relativo tipo '{0}' non è un tipo di elemento JSX valido.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Il tag '@{0} {1}' di JSDoc non corrisponde alla clausola 'extends {2}'.", "JSDoc_0_is_not_attached_to_a_class_8022": "Il tag '@{0}' di JSDoc non è collegato a una classe.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' può essere presente solo nell'ultimo parametro di una firma.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Il nome del tag '@param' di JSDoc è '{0}', ma non esiste alcun parametro con questo nome.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Il nome del tag '@param' di JSDoc è '{0}', ma non esiste alcun parametro con questo nome. Se contenesse un tipo matrice, corrisponderebbe ad 'arguments'.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "Il typedef di JSDoc può essere convertito nel tipo TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Il tag '@typedef' di JSDoc deve contenere un'annotazione di tipo o essere seguito dal tag '@property' o '@member'.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "I typedef di JSDoc possono essere convertiti nel tipo TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "I tipi JSDoc possono essere usati solo nei commenti della documentazione.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "I tipi JSDoc possono essere convertiti in tipi TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Agli attributi JSX deve essere assegnato solo un elemento 'expression' non vuoto.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Elenco di cartelle da cui includere le definizioni di tipo.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Elenco delle cartelle radice il cui contenuto combinato rappresenta la struttura del progetto in fase di esecuzione.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Verrà eseguito il caricamento di '{0}' dalla directory radice '{1}'. Percorso candidato: '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Verrà eseguito il caricamento del modulo '{0}' dalla cartella 'node_modules'. Tipi di file di destinazione: {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Verrà eseguito il caricamento del modulo come file/cartella. Percorso candidato del modulo: '{0}'. Tipi di file di destinazione: {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Verrà eseguito il caricamento del modulo '{0}' dalla cartella 'node_modules'. Tipo di file di destinazione: '{1}'.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Verrà eseguito il caricamento del modulo come file/cartella. Percorso candidato del modulo: '{0}'. Tipo di file di destinazione: '{1}'.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Le impostazioni locali devono essere nel formato o -, ad esempio, '{0}' o '{1}'.", "Log_paths_used_during_the_moduleResolution_process_6706": "Registra i percorsi usati durante il processo 'moduleResolution'.", "Longest_matching_prefix_for_0_is_1_6108": "Il prefisso di corrispondenza più lungo per '{0}' è '{1}'.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Imposta keyof in modo che restituisca solo stringhe invece di stringhe, numeri o simboli. Opzione legacy.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Impostare la chiamata a 'super()' come prima istruzione nel costruttore", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Il tipo di oggetto con mapping contiene implicitamente un tipo di modello 'any'.", - "Mark_array_literal_as_const_90070": "Contrassegnare il valore letterale della matrice come const", "Matched_0_condition_1_6403": "Corrispondenza tra '{0}' condizione '{1}'.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Corrispondente per impostazione predefinita al criterio di inclusione '**/*'", "Matched_by_include_pattern_0_in_1_1407": "Corrispondenza tramite criterio di inclusione '{0}' in '{1}'", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Il metodo '{0}' non può includere un'implementazione perché è contrassegnato come astratto.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Il metodo '{0}' dell'interfaccia esportata ha o usa il nome '{1}' del modulo privato '{2}'.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Il metodo '{0}' dell'interfaccia esportata ha o usa il nome privato '{1}'.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Il metodo deve avere un'annotazione di tipo restituito esplicita con --isolatedDeclarations.", "Method_not_implemented_95158": "Metodo non implementato.", "Modifiers_cannot_appear_here_1184": "In questo punto non è possibile usare modificatori.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Il modulo '{0}' può essere importato come predefinito solo con il flag '{1}'", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Non esiste alcun membro esportato '{1}' per il modulo '{0}'. Si intendeva usare 'import {1} from {0}'?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Il modulo '{0}' è nascosto da una dichiarazione locale con lo stesso nome.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Il modulo '{0}' usa 'export =' e non può essere usato con 'export *'.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Il modulo '{0}' è stato risolto come modulo di ambiente dichiarato in '{1}' dal momento che questo file non è stato modificato.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Il modulo '{0}' è stato risolto come modulo di ambiente dichiarato in locale nel file '{1}'.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Il modulo '{0}' è stato risolto in '{1}', ma '--allowArbitraryExtensions' non è impostato.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Il modulo '{0}' è stato risolto in '{1}', ma '--jsx' non è impostato.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Il modulo '{0}' è stato risolto in '{1}', ma '--resolveJsonModule' non viene usato.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "I nomi delle dichiarazioni di modulo possono usare solo stringhe racchiuse tra virgolette.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "La risoluzione del modulo con 'rootDirs' non è riuscita.", "Modules_6244": "Moduli", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Spostare i modificatori di elemento tupla con etichetta nelle etichette", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Spostare l'espressione nell'esportazione predefinita in una variabile e aggiungervi un'annotazione di tipo.", "Move_to_a_new_file_95049": "Passare a un nuovo file", - "Move_to_file_95178": "Spostare nel file", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Non sono consentiti più separatori numerici consecutivi.", "Multiple_constructor_implementations_are_not_allowed_2392": "Non è possibile usare più implementazioni di costruttore.", "NEWLINE_6061": "NUOVA RIGA", "Name_is_not_valid_95136": "Nome non valido.", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "I gruppi di acquisizione denominati sono disponibili solo se destinati a 'ES2018' o versioni successive.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "I gruppi di acquisizione denominati con lo stesso nome devono escludersi a vicenda.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Le importazioni denominate da un file JSON in un modulo ECMAScript non sono consentite quando \"module\" è impostato su \"{0}\".", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Le proprietà denominate '{0}' dei tipi '{1}' e '{2}' non sono identiche.", "Namespace_0_has_no_exported_member_1_2694": "Lo spazio dei nomi '{0}' non contiene un membro esportato '{1}'.", "Namespace_must_be_given_a_name_1437": "È necessario assegnare un nome allo spazio dei nomi.", "Namespace_name_cannot_be_0_2819": "Lo spazio dei nomi non può essere '{0}'.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Gli spazi dei nomi non sono consentiti nei file di script globali quando '{0}' è abilitato. Se questo file non deve essere uno script globale, impostare 'moduleDetection' su 'force' o aggiungere un'istruzione 'export {}' vuota.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "Non è possibile applicare né elementi Decorator né modificatori ai parametri 'this'.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Nessun costruttore di base contiene il numero specificato di argomenti tipo.", "No_constituent_of_type_0_is_callable_2755": "Non è possibile chiamare nessun costituente di tipo '{0}'.", "No_constituent_of_type_0_is_constructable_2759": "Non è possibile costruire nessun costituente di tipo '{0}'.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Nessun overload corrisponde a questa chiamata.", "No_type_could_be_extracted_from_this_type_node_95134": "Non è stato possibile estrarre il tipo da questo nodo di tipo", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Non esiste alcun valore nell'ambito per la proprietà a sintassi abbreviata '{0}'. Dichiararne uno o specificare un inizializzatore.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non astratta '{0}' non implementa il membro astratto ereditato {1} della classe '{2}'.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "Nella classe non astratta '{0}' mancano implementazioni per i seguenti membri di '{1}': {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "Nella classe non astratta '{0}' mancano implementazioni per i seguenti membri di '{1}': {2} e altri {3}.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "La classe non astratta '{0}' non implementa il membro astratto ereditato '{1}' della classe '{2}'.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "L'espressione di classe non astratta non implementa il membro astratto ereditato '{0}' dalla classe '{1}'.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Nell'espressione di classe non astratta mancano implementazioni per i seguenti membri di '{0}': {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Nell'espressione di classe non astratta mancano implementazioni per i seguenti membri di '{0}': {1} e altri {2}.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Le asserzioni non Null possono essere usate solo in file TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "I percorsi non relativi non sono consentiti quando 'baseUrl' non è impostato. Si è dimenticato di aggiungere './' all'inizio?", "Non_simple_parameter_declared_here_1348": "In questo punto è dichiarato un parametro non semplice.", "Not_all_code_paths_return_a_value_7030": "Non tutti i percorsi del codice restituiscono un valore.", "Not_all_constituents_of_type_0_are_callable_2756": "Non tutti i costituenti di tipo '{0}' possono essere chiamati.", "Not_all_constituents_of_type_0_are_constructable_2760": "Non tutti i costituenti di tipo '{0}' possono essere costruiti.", - "Numbers_out_of_order_in_quantifier_1506": "Numeri non in ordine nel quantificatore.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "I valori letterali numerici con valori assoluti uguali o maggiori di 2^53 sono troppo grandi per essere rappresentati in modo corretto come numeri interi.", "Numeric_separators_are_not_allowed_here_6188": "I separatori numerici non sono consentiti in questa posizione.", "Object_is_of_type_unknown_2571": "L'oggetto è di tipo 'unknown'.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Il valore letterale di oggetto può specificare solo proprietà note e '{0}' non esiste nel tipo '{1}'.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Il valore letterale dell'oggetto può specificare solo proprietà note, ma '{0}' non esiste nel tipo '{1}'. Si intendeva scrivere '{2}'?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "La proprietà '{0}' del valore letterale di oggetto contiene implicitamente un tipo '{1}'.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Gli oggetti che contengono proprietà a sintassi abbreviata non possono essere dedotti con --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Gli oggetti che contengono assegnazioni di estensione non possono essere dedotti con --isolatedDeclarations.", "Octal_digit_expected_1178": "È prevista la cifra ottale.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Le sequenze di escape e i backreference ottali non sono consentiti in una classe di caratteri. Se è stata utilizzata come sequenza di escape, usare la sintassi '{0}'.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Le sequenze di escape ottali non sono consentite. Usare la sintassi '{0}'.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "I valori letterali ottali non sono consentiti. Usare la sintassi '{0}'.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Un valore di '{0}.{1}' è la stringa '{2}' e si presuppone che l'altro sia un valore numerico sconosciuto.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "I tipi di valori letterali ottali devono usare la sintassi ES2015. Usare la sintassi '{0}'.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "I valori letterali ottali non sono consentiti nell'inizializzatore di membri di enumerazioni. Usare la sintassi '{0}'.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "I valori letterali ottali non sono consentiti in modalità strict.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "I valori letterali ottali non sono disponibili quando la destinazione è ECMAScript 5 e versioni successive. Usare la sintassi '{0}'.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "In un'istruzione 'for...in' è consentita solo una singola dichiarazione di variabile.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "In un'istruzione 'for...of' è consentita solo una singola dichiarazione di variabile.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Con la parola chiave 'new' può essere chiamata solo una funzione void.", "Only_ambient_modules_can_use_quoted_names_1035": "I nomi delimitati si possono usare solo nei moduli di ambiente.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Unitamente a --{0} sono supportati solo i moduli 'amd' e 'system'.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "È possibile dedurre solo matrici const con --isolatedDeclarations.", "Only_emit_d_ts_declaration_files_6014": "Creare solo i file di dichiarazione '.d.ts'.", + "Only_named_exports_may_use_export_type_1383": "Solo le esportazioni denominate possono usare 'export type'.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Solo le enumerazioni numeriche possono includere membri calcolati, ma il tipo di questa espressione è '{0}'. Se non sono necessari controlli di esaustività, provare a usare un valore letterale di oggetto.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Restituisce solo file d.ts e non file JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Con la parola chiave 'super' è possibile accedere solo ai metodi pubblico e protetto della classe di base.", "Operator_0_cannot_be_applied_to_type_1_2736": "Non è possibile applicare l'operatore '{0}' al tipo '{1}'.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Non è possibile applicare l'operatore '{0}' ai tipi '{1}' e '{2}'.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Gli operatori non devono essere misti all'interno di una classe di caratteri. Eseguire il wrapping in una classe annidata.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Esclude un progetto dal controllo dei riferimenti a più progetti durante la modifica.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "L'opzione '{0}={1}' è stata rimossa. Rimuovere l'elemento dalla configurazione.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "L'opzione '{0}={1}' è deprecata e non funzionerà più in TypeScript {2}. Per disattivare l'errore, specificare compilerOption '\"ignoreDeprecations\": \"{3}\"'.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "L'opzione '{0}' può essere specificata solo nel file 'tsconfig.json' oppure impostata su 'false' o 'null' sulla riga di comando.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "L'opzione '{0}' può essere specificata solo nel file 'tsconfig.json' oppure impostata su 'null' sulla riga di comando.", - "Option_0_can_only_be_specified_on_command_line_6266": "L'opzione '{0}' può essere specificata solo nella riga di comando.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "L'opzione '{0}' può essere usata solo quando si specifica l'opzione '--inlineSourceMap' o '--sourceMap'.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "L'opzione '{0}' può essere usata solo quando 'moduleResolution' è impostato su 'node16', 'nodenext' o 'bundler'.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "L'opzione '{0}' può essere usata solo quando 'module' è impostato su 'preserve' o 'es2015' o versione successiva.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Non è possibile specificare l'opzione '{0}' quando l'opzione 'jsx' è '{1}'.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Non è possibile specificare l'opzione '{0}' quando l'opzione 'target' è 'ES3'.", "Option_0_cannot_be_specified_with_option_1_5053": "Non è possibile specificare l'opzione '{0}' insieme all'opzione '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Non è possibile specificare l'opzione '{0}' senza l'opzione '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Non è possibile specificare l'opzione '{0}' senza l'opzione'{1}' o '{2}'.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "L'opzione '{0}' è stata rimossa. Rimuovere l'elemento dalla configurazione.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "L'opzione '{0}' è deprecata e non funzionerà più in TypeScript {1}. Per disattivare l'errore, specificare compilerOption '\"ignoreDeprecations\": \"{2}\"'.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "L'opzione '{0}' è ridondante e non può essere specificata con l'opzione'{1}'.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "L'opzione 'allowImportingTsExtensions' può essere usata solo quando è impostato 'noEmit' o 'emitDeclarationOnly'.", "Option_build_must_be_the_first_command_line_argument_6369": "L'opzione '--build' deve essere il primo argomento della riga di comando.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "È possibile specificare l'opzione '--incremental' solo se si usa tsconfig, si crea un singolo file o si specifica l'opzione '--tsBuildInfoFile'.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "L'opzione 'isolatedModules' può essere usata solo quando si specifica l'opzione '--module' oppure il valore dell'opzione 'target' è 'ES2015' o maggiore.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "L'opzione 'moduleResolution' deve essere impostata su '{0}' (o rimanere non specificata) quando l'opzione 'module' è impostata su '{1}'.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "L'opzione 'module' deve essere impostata su '{0}' quando l'opzione 'moduleResolution' è impostata su '{1}'.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "Non è possibile disabilitare l'opzione 'preserveConstEnums' quando '{0}' è abilitato.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Non è possibile disabilitare l'opzione 'preserveConstEnums' quando l'opzione 'isolatedModules' è abilitata.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "L'opzione 'preserveValueImports' può essere usata solo quando 'module' è impostato su 'es2015' o versione successiva.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Non è possibile combinare l'opzione 'project' con file di origine in una riga di comando.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Non è possibile specificare l'opzione '--resolveJsonModule' quando 'moduleResolution' è impostato su 'classic'.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Non è possibile specificare l'opzione '--resolveJsonModule' quando 'module' è impostato su 'none', 'system' o 'umd'.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "Non è possibile usare l'opzione 'verbatimModuleSyntax' quando 'module' è impostato su 'UMD', 'AMD' o 'System'.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "È possibile specificare l'opzione '--resolveJsonModule' solo quando la generazione del codice del modulo è impostata su 'commonjs', 'amd', 'es2015' o 'esNext'.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Non è possibile specificare l'opzione '--resolveJsonModule' senza la strategia di risoluzione del modulo 'node'.", "Options_0_and_1_cannot_be_combined_6370": "Non è possibile combinare le opzioni '{0}' e '{1}'.", "Options_Colon_6027": "Opzioni:", "Output_Formatting_6256": "Formattazione dell'output", "Output_compiler_performance_information_after_building_6615": "Restituisce informazioni sulle prestazioni del compilatore dopo la compilazione.", "Output_directory_for_generated_declaration_files_6166": "Directory di output per i file di dichiarazione generati.", + "Output_file_0_from_project_1_does_not_exist_6309": "Il file di output '{0}' del progetto '{1}' non esiste", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Il file di output '{0}' non è stato compilato dal file di origine '{1}'.", "Output_from_referenced_project_0_included_because_1_specified_1411": "L'output del progetto di riferimento '{0}' è incluso perché è stato specificato '{1}'", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "L'output del progetto di riferimento '{0}' è incluso perché il valore specificato per '--module' è 'none'", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "È prevista la dichiarazione di parametro.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Il parametro include un nome ma non un tipo. Si intendeva '{0}: {1}'?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "I modificatori di parametro possono esere usati solo in file TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Il parametro deve avere un'annotazione di tipo esplicito con --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Il tipo di parametro del setter pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Il tipo di parametro del setter pubblico '{0}' della classe esportata contiene o usa il nome privato '{1}'.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Il tipo di parametro del setter statico pubblico '{0}' della classe esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Stampa i nomi dei file creati al termine di una compilazione.", "Print_this_message_6017": "Stampa questo messaggio.", "Private_accessor_was_defined_without_a_getter_2806": "La funzione di accesso privata è stata definita senza un getter.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Il campo privato '{0}' deve essere dichiarato in una classe di inclusione.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Gli identificatori privati non sono consentiti nelle dichiarazioni di variabili.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Gli identificatori privati non sono consentiti all'esterno del corpo della classe.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Gli identificatori privati sono consentiti solo nei corpi di classe e possono essere usati solo come parte di una dichiarazione di un membro della classe, dell'accesso alle proprietà o sulla parte sinistra di un'espressione 'in'.", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Gli identificatori privati sono disponibili solo se destinati a ECMAScript 2015 e versioni successive.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Non è possibile usare gli identificatori privati come parametri.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Non è possibile accedere al membro privato o protetto '{0}' in un parametro di tipo.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Non è possibile compilare il progetto '{0}' perché la dipendenza '{1}' contiene errori", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Non è possibile compilare il progetto '{0}' perché la relativa dipendenza '{1}' non è stata compilata", "Project_0_is_being_forcibly_rebuilt_6388": "Il progetto '{0}' è stato ricompilato forzatamente", - "Project_0_is_out_of_date_because_1_6420": "Il progetto '{0}' non è aggiornato perché {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Il progetto '{0}' non è aggiornato perché il file buildinfo '{1}' indica che il file '{2}' era un file radice di compilazione ma non più aggiornato.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Il progetto '{0}' non è aggiornato perché il file buildinfo '{1}' indica che il programma deve segnalare errori.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Il '{0}' del progetto non è aggiornato perché il file buildinfo '{1}' indica che alcune modifiche non sono state generate", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Il progetto '{0}' non è aggiornato perché il file buildinfo '{1}' indica che è presente una modifica in compilerOptions", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Il progetto '{0}' non è aggiornato perché la dipendenza '{1}' non è aggiornata", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Il progetto '{0}' non è aggiornato perché l'output '{1}' è meno recente dell'input '{2}'", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Il progetto '{0}' non è aggiornato perché il file di output '{1}' non esiste", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Il progetto '{0}' non è aggiornato perché l'output per il progetto è stato generato con la versione '{1}' che non corrisponde alla versione corrente '{2}'", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Il progetto '{0}' non è aggiornato perché l'output della relativa dipendenza '{1}' è cambiato", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Il progetto '{0}' non è aggiornato perché si è verificato un errore durante la lettura del file '{1}'", "Project_0_is_up_to_date_6361": "Il progetto '{0}' è aggiornato", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Il progetto '{0}' è aggiornato perché l'input più recente '{1}' è meno recente dell'output '{2}'", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "La proprietà '{0}' viene usata prima della relativa inizializzazione.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "La proprietà '{0}' potrebbe non esistere nel tipo '{1}'. Si intendeva '{2}'?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "La proprietà '{0}' dell'attributo spread JSX non è assegnabile alla proprietà di destinazione.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "La proprietà '{0}' del tipo di classe anonima esportata potrebbe essere non privata o protetta.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "La proprietà '{0}' dell'espressione di classe esportata potrebbe essere non privata o protetta.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "La proprietà '{0}' dell'interfaccia esportata contiene o usa il nome '{1}' del modulo privato '{2}'.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "La proprietà '{0}' dell'interfaccia esportata contiene o usa il nome privato '{1}'.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "La proprietà '{0}' del tipo '{1}' non è assegnabile al tipo di indice '{2}' '{3}'.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "La proprietà '{0}' sovrascriverà la proprietà di base in '{1}'. Se questo comportamento è intenzionale, aggiungere un inizializzatore; in caso contrario, aggiungere un modificatore 'declare' o rimuovere la dichiarazione ridondante.", "Property_assignment_expected_1136": "È prevista l'assegnazione di proprietà.", "Property_destructuring_pattern_expected_1180": "È previsto il criterio di destrutturazione della proprietà.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "La proprietà deve avere un'annotazione di tipo esplicito con --isolatedDeclarations.", "Property_or_signature_expected_1131": "È prevista la proprietà o la firma.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Il valore della proprietà può essere solo un valore letterale stringa, un valore letterale numerico, 'true', 'false', 'null', un valore letterale di oggetto o un valore letterale di matrice.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Fornisce supporto completo per elementi iterabili in 'for-of', estensione e destrutturazione quando la destinazione è 'ES5'.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Fornisce supporto completo per elementi iterabili in 'for-of', spread e destrutturazione quando la destinazione è 'ES5' o 'ES3'.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome '{1}' del modulo esterno {2} ma non può essere rinominato.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome '{1}' del modulo privato '{2}'.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Il metodo pubblico '{0}' della classe esportata ha o usa il nome privato '{1}'.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Genera un errore quando un parametro di funzione non viene letto.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Genera un errore in caso di espressioni o dichiarazioni con tipo 'any' implicito.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Genera un errore in caso di espressioni 'this con un tipo 'any' implicito.", - "Range_out_of_order_in_character_class_1517": "Intervallo non in ordine nella classe di caratteri.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Riesportare un tipo quando '{0}' è abilitato richiede l'uso di 'export type'.", - "React_components_cannot_include_JSX_namespace_names_2639": "I componenti React non possono includere nomi di spazio dei nomi JSX", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Per riesportare un tipo quando è specificato il flag '--isolatedModules', è necessario usare 'export type'.", "Redirect_output_structure_to_the_directory_6006": "Reindirizza la struttura di output alla directory.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Riduce il numero di progetti caricati automaticamente da TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "Il progetto di riferimento '{0}' non può disabilitare la creazione.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Il progetto di riferimento '{0}' deve includere l'impostazione \"composite\": true.", "Referenced_via_0_from_file_1_1400": "Riferimento tramite '{0}' dal file '{1}'", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni ECMAScript quando '--moduleResolution' è 'node16' o 'nodenext'. Provare ad aggiungere un'estensione al percorso di importazione.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni ECMAScript quando '--moduleResolution' è 'node16' o 'nodenext'. Si intendeva '{0}'?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node16' o 'nodenext'. Provare ad aggiungere un'estensione al percorso di importazione.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "I percorsi di importazione relativi necessitano di estensioni di file esplicite nelle importazioni EcmaScript quando '--moduleResolution' è 'node16' o 'nodenext'. Si intendeva \"{0}\"?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Rimuove un elenco di directory dal processo dell'espressione di controllo.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Rimuove un elenco di file dall'elaborazione della modalità espressione di controllo.", "Remove_all_unnecessary_override_modifiers_95163": "Rimuovere tutti i modificatori 'override' non necessari", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Segnala gli errori presenti nei file con estensione js.", "Report_errors_on_unused_locals_6134": "Segnala errori relativi a variabili locali non usate.", "Report_errors_on_unused_parameters_6135": "Segnala errori relativi a parametri non usati.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Richiede un'annotazione sufficiente sulle esportazioni in modo che altri strumenti possano generare in modo semplice i file di dichiarazione.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Richiedere alle proprietà non dichiarate da firme dell'indice di usare gli accessi agli elementi.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "I parametri di tipo obbligatori potrebbero non seguire i parametri di tipo facoltativi.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "La risoluzione per il modulo '{0}' è stata trovata nella cache dal percorso '{1}'.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "La risoluzione per la direttiva '{0}' del riferimento al tipo è stata trovata nella cache dal percorso '{1}'.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Risoluzione del nome non relativo non riuscita; il tentativo di utilizzare le funzionalità moderne di risoluzione dei nodi è disabilitato per verificare se è necessario aggiornare la configurazione della libreria npm.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Risoluzione del nome non relativo non riuscita; è in corso un tentativo con '--moduleResolution bundler' per verificare se il progetto potrebbe richiedere l'aggiornamento della configurazione.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Risolvere 'keyof' solo in nomi di proprietà con valori stringa (senza numeri o simboli).", - "Resolved_under_condition_0_6414": "Risolto nella condizione '{0}'.", "Resolving_in_0_mode_with_conditions_1_6402": "Risoluzione in modalità {0} con condizioni {1}.", "Resolving_module_0_from_1_6086": "======== Risoluzione del modulo '{0}' da '{1}'. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Verrà eseguita la risoluzione del nome del modulo '{0}' relativo all'URL di base '{1}' - '{2}'.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file '{1}' e directory radice non impostata. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file non impostato con directory radice '{1}'. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Risoluzione della direttiva '{0}' del riferimento al tipo contenente il file non impostato con directory radice non impostata. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Risoluzione della direttiva di riferimento al tipo per il programma che specifica typeRoot personalizzati. La ricerca nella cartella 'node_modules' verrà ignorata.", "Resolving_with_primary_search_path_0_6121": "La risoluzione verrà eseguita con il percorso di ricerca primaria '{0}'.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Il parametro rest '{0}' contiene implicitamente un tipo 'any[]'.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Il parametro rest '{0}' contiene implicitamente un tipo 'any[]', ma è possibile dedurre un tipo migliore dall'utilizzo.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Il riutilizzo della risoluzione della direttiva per il tipo di riferimento '{0}' da '{1}' del programma precedente è stato risolto in '{2}' con l'ID pacchetto '{3}'.", "Rewrite_all_as_indexed_access_types_95034": "Riscrivere tutti come tipi di accesso indicizzati", "Rewrite_as_the_indexed_access_type_0_90026": "Riscrivere come tipo di accesso indicizzato '{0}'", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Riscrivere le estensioni di file \".ts\", \".tsx\", \".mts\" e \".cts\" nei percorsi di importazione relativi dell'equivalente JavaScript nei file di output.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "L'operando destro di ?? non è raggiungibile perché l'operando sinistro non è mai nullish.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Non è possibile determinare la directory radice. I percorsi di ricerca primaria verranno ignorati.", "Root_file_specified_for_compilation_1427": "File radice specificato per la compilazione", "STRATEGY_6039": "STRATEGIA", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Salva i file .tsbuildinfo per consentire la compilazione incrementale dei progetti.", "Saw_non_matching_condition_0_6405": "Visualizzata la condizione di corrispondenza '{0}'.", "Scoped_package_detected_looking_in_0_6182": "Il pacchetto con ambito è stato rilevato. Verrà eseguita una ricerca in '{0}'", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Ricerca di estensioni di fallback in tutte le directory node_modules predecessori: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Ricerca di estensioni preferite in tutte le directory node_modules predecessori: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "La selezione non corrisponde a una o più istruzioni valide", "Selection_is_not_a_valid_type_node_95133": "La selezione non corrisponde a un nodo di tipo valido", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Imposta la versione del linguaggio JavaScript per il codice JavaScript creato e include le dichiarazioni di libreria compatibili.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Mostra le informazioni di diagnostica dettagliate.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Mostra gli elementi che vengono compilati (o eliminati, se specificati con l'opzione '--clean')", "Signature_0_must_be_a_type_predicate_1224": "La firma '{0}' deve essere un predicato di tipo.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Le dichiarazioni firma possono essere usate solo in file TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Ignorare la compilazione di progetti downstream in base a un errore nel progetto upstream.", "Skip_type_checking_all_d_ts_files_6693": "Ignora il controllo del tipo di tutti i file .d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Ignora il controllo dei tipi dei file .d.ts inclusi con TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Ignora il controllo del tipo dei file di dichiarazione.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Vine ignorato il modulo '{0}' che sembra un URI assoluto, tipi di file di destinazione: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "La compilazione del progetto '{0}' verrà ignorata perché la dipendenza '{1}' contiene errori", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "La compilazione del progetto '{0}' verrà ignorata perché la dipendenza '{1}' non è stata compilata", "Source_from_referenced_project_0_included_because_1_specified_1414": "L'origine del progetto di riferimento '{0}' è inclusa perché è stato specificato '{1}'", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "L'origine del progetto di riferimento '{0}' è inclusa perché il valore specificato per '--module' è 'none'", "Source_has_0_element_s_but_target_allows_only_1_2619": "L'origine contiene {0} elemento/i ma la destinazione ne consente solo {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Consente di specificare il funzionamento della modalità espressione di controllo TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Specificare i file di libreria da includere nella compilazione.", "Specify_module_code_generation_6016": "Specifica la generazione del codice del modulo.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Specifica la strategia di risoluzione del modulo: 'node' (Node.js) o 'classic' (TypeScript prima della versione 1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Specifica l'identificatore di modulo usato per importare funzioni factory JSX quando si usa 'jsx: react-jsx*'.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Consente di specificare più cartelle che fungono da './node_modules/@types'.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Consente di specificare uno o più percorsi o riferimenti al modulo del nodo ai file di configurazione di base da cui vengono ereditate le impostazioni.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "I membri statici non possono fare riferimento a parametri di tipo classe.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "La proprietà statica '{0}' è in conflitto con la proprietà predefinita 'Function.{0}' della funzione del costruttore '{1}'.", "String_literal_expected_1141": "È previsto un valore letterale stringa.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "I nomi di importazione ed esportazione di valori letterali stringa non sono supportati quando il flag '--module' è impostato su 'es2015' o 'es2020'.", "String_literal_with_double_quotes_expected_1327": "È previsto un valore letterale stringa con virgolette doppie.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Applica stili a errori e messaggi usando colore e contesto (sperimentale).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Quando è presente un segno meno, devono essere presenti flag di criteri secondari.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Le dichiarazioni di proprietà successive devono essere dello stesso tipo. La proprietà '{0}' deve essere di tipo '{1}', ma qui è di tipo '{2}'.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Le dichiarazioni di variabili successive devono essere dello stesso tipo. La variabile '{0}' deve essere di tipo '{1}', mentre è di tipo '{2}'.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Il tipo della sostituzione '{0}' per il criterio '{1}' non è corretto. È previsto 'string', ma è stato ottenuto '{2}'.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Le espressioni di modello con tag non sono consentite in una catena facoltativa.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "La destinazione consente solo {0} elemento/i ma l'origine potrebbe contenerne di più.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "La destinazione richiede {0} elemento/i ma l'origine potrebbe contenerne di meno.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "La firma di destinazione fornisce un numero insufficiente di argomenti. {0} o più elementi previsti, ma {1} effettivi.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Il modificatore '{0}' può essere usato solo in file TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Non è possibile applicare l'operatore '{0}' al tipo 'symbol'.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "L'operatore '{0}' non è consentito per i tipi booleani. Provare a usare '{1}'.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "La proprietà '{0}' di un iteratore asincrono deve essere un metodo.", "The_0_property_of_an_iterator_must_be_a_method_2767": "La proprietà '{0}' di un iteratore deve essere un metodo.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Il tipo 'Object' può essere assegnato a un numero molto limitato di altri tipi. Si intendeva usare il tipo 'any'?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Non è possibile impostare contemporaneamente i flag Unicode (u) e Unicode Sets (v).", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "Non è possibile fare riferimento all'oggetto 'arguments' in una funzione arrow in ES5. Provare a usare un'espressione di funzione standard.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "Non è possibile fare riferimento all'oggetto 'arguments' in un metodo o una funzione asincrona in ES5. Provare a usare un metodo o una funzione standard.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Non è possibile fare riferimento all'oggetto 'arguments' in una funzione arrow in ES3 e ES5. Provare a usare un'espressione di funzione standard.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Non è possibile fare riferimento all'oggetto 'arguments' in un metodo o una funzione asincrona in ES3 e ES5. Provare a usare un metodo o una funzione standard.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Il corpo di un'istruzione 'if' non può essere l'istruzione vuota.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "La chiamata sarebbe riuscita rispetto a questa implementazione, ma le firme di implementazione degli overload non sono visibili esternamente.", "The_character_set_of_the_input_files_6163": "Set di caratteri dei file di input.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Il tipo globale 'JSX.{0}' non può contenere più di una proprietà.", "The_implementation_signature_is_declared_here_2750": "In questo punto viene dichiarata la firma di implementazione.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "La metaproprietà' Import. meta ' non è consentita per i file che vengono compilati nell'output di CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metaproprietà 'import.meta' è consentita solo quando l'opzione '--module' è 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18' o 'nodenext'.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "La metaproprietà 'import.meta' è consentita solo se l'opzione '--module' è impostata su 'es2020', 'es2022', 'esnext', 'system', 'node16' o 'nodenext'.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Non è possibile assegnare un nome al tipo derivato di '{0}' senza un riferimento a '{1}'. È probabile che non sia portabile. È necessaria un'annotazione di tipo.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Il tipo dedotto di '{0}' fa riferimento a un tipo con una struttura ciclica che non può essere facilmente serializzata. È necessaria un'annotazione di tipo.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Il tipo dedotto di '{0}' fa riferimento a un tipo '{1}' non accessibile. È necessaria un'annotazione di tipo.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Il tipo dedotto di questo nodo supera la lunghezza massima serializzata dal compilatore. È necessaria un'annotazione di tipo esplicita.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "L'inizializzatore di una dichiarazione 'using' deve essere un oggetto con un metodo '[Symbol.dispose]()' oppure essere 'null' o 'undefined'.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "L'inizializzatore di una dichiarazione 'await using' deve essere un oggetto con un metodo '[Symbol.asyncDispose]()' o '[Symbol.dispose]5D;()' oppure essere 'null' o 'undefined'.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "L'intersezione '{0}' è stata ridotta a 'never' perché la proprietà '{1}' esiste in più costituenti ed è privata in alcuni.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "L'intersezione '{0}' è stata ridotta a 'never' perché in alcuni costituenti della proprietà '{1}' sono presenti tipi in conflitto.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "La parola chiave 'intrinsic' può essere usata solo per dichiarare tipi intrinseci forniti dal compilatore.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "L'ultimo overload ha restituito l'errore seguente.", "The_last_overload_is_declared_here_2771": "In questo punto viene dichiarato l'ultimo overload.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "La parte sinistra di un'espressione 'for...in' non può essere un criterio di destrutturazione.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "La parte sinistra di un'istruzione 'for...in' non può essere una dichiarazione 'using'.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "La parte sinistra di un'istruzione 'for...in' non può essere una dichiarazione 'await using'.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Nella parte sinistra di un'espressione 'for...in' non è possibile usare un'annotazione di tipo.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "La parte sinistra di un'istruzione 'for...in' non può essere un accesso a proprietà facoltativo.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "La parte sinistra di un'istruzione 'for...in' deve essere una variabile o un accesso a proprietà.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "La parte sinistra di un'operazione aritmetica deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "La parte sinistra di un'espressione di assegnazione non può essere un accesso a proprietà facoltativo.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "La parte sinistra di un'espressione di assegnazione deve essere una variabile o un accesso a proprietà.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "La parte sinistra di un'espressione 'instanceof' deve essere assegnabile al primo argomento del metodo '[Symbol.hasInstance]' della parte destra.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "La parte sinistra di un'espressione 'instanceof' deve essere di tipo 'any' oppure essere un tipo di oggetto o un parametro di tipo.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Impostazioni locali usate per la visualizzazione di messaggi all'utente, ad esempio 'it-it'", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Profondità massima delle dipendenze per la ricerca in node_modules e il caricamento dei file JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "La radice del progetto è ambigua, ma è necessaria per risolvere i '{0}' delle voci della mappa di esportazione nel file '{1}'. Specificare l'opzione del compilatore 'rootDir' per disambiguare.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "La radice del progetto è ambigua, ma è necessaria per risolvere i '{0}' delle voci della mappa di importazione nel file '{1}'. Specificare l'opzione del compilatore 'rootDir' per disambiguare.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Non è possibile accedere alla proprietà '{0}' nel tipo '{1}' all'interno di questa classe perché è nascosta da un altro identificatore privato con la stessa ortografia.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Il tipo restituito di una funzione di accesso 'get' deve essere assegnabile al relativo tipo di funzione di accesso 'set'", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Il tipo restituito di una funzione di espressione Decorator del parametro deve essere 'void' o 'any'.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Il tipo restituito di una funzione di espressione Decorator della proprietà deve essere 'void' o 'any'.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Il tipo restituito di una funzione asincrona deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Il tipo restituito di un metodo o una funzione asincrona deve essere il tipo globale Promise.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Il tipo restituito di un metodo o una funzione asincrona deve essere il tipo globale Promise. Si intendeva scrivere 'Promise<{0}>'?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "La parte destra di un'istruzione 'for...in' deve essere di tipo 'any' oppure essere un tipo di oggetto o un parametro di tipo, ma in questo caso il tipo è '{0}'.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "La parte destra di un'operazione aritmetica deve essere di tipo 'any', 'number', 'bigint' o un tipo enumerazione.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "La parte destra di un'espressione 'instanceof' deve essere di tipo 'any', una classe, una funzione o un altro tipo assegnabile al tipo di interfaccia 'Function' oppure un tipo di oggetto con un metodo 'Symbol.hasInstance'.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "La parte destra di un'espressione 'instanceof' non deve essere un'espressione di creazione di un'istanza.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "La parte destra di un'espressione 'instanceof' deve essere di tipo 'any' o di un tipo assegnabile al tipo di interfaccia 'Function'.", "The_root_value_of_a_0_file_must_be_an_object_5092": "Il valore radice di un file '{0}' deve essere un oggetto.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Il runtime richiamerà l'elemento Decorator con {1} argomenti, ma l'elemento Decorator ne prevede {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Il runtime richiamerà l'elemento Decorator con {1} argomenti, ma l'elemento Decorator ne prevede almeno {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "La dichiarazione di oscuramento di '{0}' viene definita in questo punto", "The_signature_0_of_1_is_deprecated_6387": "La firma '{0}' di '{1}' è deprecata.", "The_specified_path_does_not_exist_Colon_0_5058": "Il percorso specificato non esiste: '{0}'.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Impossibile utilizzare il modificatore 'tipo' in un'esportazione denominata quando 'tipo di esportazione' viene usato nell'istruzione di esportazione.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Impossibile utilizzare il modificatore 'tipo' in un'importazione denominata quando 'tipo di importazione' viene usato nella relativa istruzione di importazione.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Il tipo di una dichiarazione di funzione deve corrispondere alla firma della funzione.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Impossibile assegnare un nome al tipo di questa espressione senza un'asserzione 'resolution-mode', che è una funzionalità instabile. Usare TypeScript notturno per disattivare l'errore. Provare ad aggiornare con 'npm install -D typescript@next'.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Impossibile serializzare questo tipo di nodo perché la sua proprietà '{0}' non può essere serializzata.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Il tipo restituito dal metodo '{0}()' di un iteratore asincrono deve essere una promessa per un tipo con una proprietà 'value'.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Il tipo restituito dal metodo '{0}()' di un iteratore deve contenere una proprietà 'value'.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "La dichiarazione di variabile di un'istruzione 'for...in' non può contenere un inizializzatore.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "La dichiarazione di variabile di un'istruzione 'for...of' non può contenere un inizializzatore.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "L'istruzione 'with' non è supportata. Il tipo di tutti i simboli in un blocco 'with' è 'any'.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Sono presenti tipi in '{0}', ma non è stato possibile risolvere questo risultato con l'impostazione 'moduleResolution' corrente. Provare a eseguire l'aggiornamento a 'node16', 'nodenext' o 'bundler'.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Esistono tipi in '{0}', ma non è stato possibile risolvere questo risultato quando si rispettano le \"esportazioni\" del file package.json. Potrebbe essere necessario aggiornare i file package.json o typings della libreria '{1}'.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "Non è presente alcun gruppo di acquisizione denominato '{0}' in questa espressione regolare.", - "There_is_nothing_available_for_repetition_1507": "Nessun elemento disponibile per la ripetizione.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Questo tag JSX richiede che \"{0}\" sia incluso nell'ambito, ma non è stato trovato.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Questo tag JSX richiede che il percorso del modulo \"{0}\" esista, ma non è stato trovato alcun tag. Assicurarsi di avere i tipi per il pacchetto appropriato installati.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Con la proprietà '{0}' del tag JSX è previsto un singolo elemento figlio di tipo '{1}', ma sono stati specificati più elementi figlio.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Con la proprietà '{0}' del tag JSX è previsto il tipo '{1}' che richiede più elementi figlio, ma è stato specificato un singolo elemento figlio.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Questo backreference fa riferimento a un gruppo che non esiste. Non sono presenti gruppi di acquisizione in questa espressione regolare.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Questo backreference fa riferimento a un gruppo che non esiste. Sono presenti solo {0} gruppi di acquisizione in questa espressione regolare.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Questa espressione binaria non è mai nullish. Mancano le parentesi?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Il carattere non può essere preceduto da un carattere di escape in un'espressione regolare.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Questo confronto sembra non intenzionale perché i tipi '{0}' e '{1}' non presentano alcuna sovrapposizione.", "This_condition_will_always_return_0_2845": "Questa condizione restituirà sempre '{0}'.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Questa condizione restituirà sempre '{0}' perché JavaScript confronta gli oggetti per riferimento, non per valore.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Questa condizione restituirà sempre true perché questo elemento '{0}' è sempre definito.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Questa condizione restituirà sempre true perché questa funzione è sempre definita. Si intendeva chiamarla?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Questa funzione del costruttore può essere convertita in una dichiarazione di classe.", - "This_expression_is_always_nullish_2871": "Questa espressione è sempre nullish.", "This_expression_is_not_callable_2349": "Questa espressione non può essere chiamata.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Non è possibile chiamare questa espressione perché è una funzione di accesso 'get'. Si intendeva usarla senza '()'?", "This_expression_is_not_constructable_2351": "Questa espressione non può essere costruita.", "This_file_already_has_a_default_export_95130": "Per questo file esiste già un'esportazione predefinita", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Questo percorso di importazione non è sicuro da riscrivere, perché viene risolto in un altro progetto e il percorso relativo tra i file di output dei progetti non corrisponde al percorso relativo tra i file di input.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Questa importazione usa un'estensione \"{0}\" per la risoluzione in un file TypeScript di input, ma non verrà riscritta durante la creazione perché non è un percorso relativo.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Questa importazione non viene mai usata come valore e deve usare 'import type' perché 'importsNotUsedAsValues' è impostato su 'error'.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Questa è la dichiarazione che verrà aumentata. Provare a spostare la dichiarazione che causa l'aumento nello stesso file.", - "This_kind_of_expression_is_always_falsy_2873": "Questo tipo di espressione è sempre falso.", - "This_kind_of_expression_is_always_truthy_2872": "Questo tipo di espressione è sempre veritiero.", "This_may_be_converted_to_an_async_function_80006": "Può essere convertita in una funzione asincrona.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Questo membro non può avere un commento JSDoc con un tag '@override' perché non è dichiarato nella classe di base '{0}'.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Questo membro non può avere un commento JSDoc con un tag 'override' perché non è dichiarato nella classe di base '{0}'. Intendevi '{1}'?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Questo membro non può avere un commento JSDoc con un tag '@override' perché la classe che lo contiene '{0}' non estende un'altra classe.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Questo membro non può avere un commento JSDoc con un tag '@override' perché il suo nome è dinamico.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Questo membro non può includere un modificatore 'override' perché non è dichiarato nella classe di base '{0}'.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Questo membro non può includere un modificatore 'override' perché non è dichiarato nella classe di base '{0}'. Forse intendevi '{1}'?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Questo membro non può includere un modificatore 'override' perché la classe '{0}', che lo contiene, non estende un'altra classe.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Questo membro non può avere un modificatore 'override' perché il nome è dinamico.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Questo membro deve avere un commento JSDoc con un tag '@override' perché sostituisce un membro nella classe di base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Questo membro deve includere un modificatore 'override' perché sovrascrive un membro nella classe di base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Questo membro deve includere un modificatore 'override' perché esegue l'override di un metodo astratto dichiarato nella classe di base '{0}'.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "È possibile fare riferimento a questo modulo solo con importazioni/esportazioni ECMAScript attivando il flag '{0}' e facendo riferimento alla relativa esportazione predefinita.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Il modulo viene dichiarato con 'export =' e può essere usato solo con un'importazione predefinita quando si usa il flag '{0}'.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Questa operazione può essere semplificata. Questo turno è identico a '{0} {1} {2}'.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Questo overload restituisce implicitamente il tipo '{0}' perché manca un'annotazione di tipo restituito.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Questa firma di overload non è compatibile con la relativa firma di implementazione.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Questo parametro non è consentito con la direttiva 'use strict'.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Questa proprietà di parametro deve avere un commento JSDoc con un tag '@override' perché sostituisce un membro nella classe di base '{0}'.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Questa proprietà parametro deve includere un modificatore 'override' perché sovrascrive un membro nella classe di base '{0}'.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Non è possibile attivare/disattivare questo flag di espressione regolare all'interno di un criterio secondario.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Questo flag di espressione regolare è disponibile solo quando la destinazione è '{0}' o versioni successive.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Questo percorso di importazione relativo non è sicuro da riscrivere perché sembra un nome di file, ma in realtà si risolve in \"{0}\".", "This_spread_always_overwrites_this_property_2785": "Questo spread sovrascrive sempre questa proprietà.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Questa sintassi non è consentita quando 'erasableSyntaxOnly' è abilitato.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Questa sintassi è riservata ai file con estensione MTS o CTS. Aggiungere una virgola finale o un vincolo esplicito.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Questa sintassi è riservata ai file con estensione mts o cts. Utilizzare un'espressione 'as'.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Con questa sintassi è richiesto un helper importato, ma il modulo '{0}' non è stato trovato.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Per convertire il file in un modulo ECMAScript, modificarne l'estensione in '{0}' oppure aggiungere il campo '\"type\": \"module\"' a '{1}'.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Per convertire questo file in un modulo ECMAScript, modificarne l'estensione in '{0}' o creare un file package.json locale con '{ \"type\": \"module\" }'.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Per convertire questo file in un modulo ECMAScript, creare un file package.json locale con '{ \"type\": \"module\" }'.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Le espressioni 'await' di primo livello sono consentite solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', o 'preserve' e l'opzione 'target' è impostata su 'es2017' o versione successiva.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Le istruzioni 'await using' di primo livello sono consentite solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' o 'preserve' e l'opzione 'target' è impostata su 'es2017' o versione successiva.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Le espressioni 'await' di primo livello sono consentite solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system', 'node16', or 'nodenext', e l'opzione 'target' è impostata su 'es2017' o versione successiva.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Le dichiarazioni di primo livello nei file con estensione d.ts devono iniziare con un modificatore 'declare' o 'export'.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "I cicli 'for await' di primo livello sono consentiti solo quando l'opzione 'module' è impostata su 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' o 'preserve' e l'opzione 'target' è impostata su 'es2017' o versione successiva.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "I cicli 'for await' di primo livello sono consentiti solo quando l'opzione 'module' è impostata su'es2022', 'esnext', 'system', 'node16', o 'nodenext' e l'opzione 'target' è impostata su 'es2017' o versione successiva.", "Trailing_comma_not_allowed_1009": "La virgola finale non è consentita.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Esegue il transpile di ogni file in un modulo separato (simile a 'ts.transpileModule').", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Provare con `npm i --save-dev @types/{1}` se esiste oppure aggiungere un nuovo file di dichiarazione con estensione d.ts contenente `declare module '{0}';`", "Trying_other_entries_in_rootDirs_6110": "Verrà effettuato un tentativo con altre voci in 'rootDirs'.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Verrà effettuato un tentativo con la sostituzione '{0}'. Percorso candidato del modulo: '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "I membri di tupla devono tutti avere o non avere nomi.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Il tipo di tupla '{0}' con lunghezza '{1}' non contiene elementi alla posizione di indice '{2}'.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Gli argomenti tipo di tupla contengono un riferimento circolare a se stessi.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Il tipo '{0}' può essere iterato solo quando si usa il flag '--downlevelIteration' o quando '--target' è impostato su 'es2015' o un valore superiore.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Nel tipo '{0}' non esiste alcuna firma dell'indice corrispondente per il tipo '{1}'.", "Type_0_has_no_properties_in_common_with_type_1_2559": "Il tipo '{0}' non ha proprietà in comune con il tipo '{1}'.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Il tipo '{0}' non ha firme per cui è applicabile l'elenco degli argomenti tipo.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Il tipo '{0}' è generico e può essere indicizzato solo per la lettura.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "Nel tipo '{0}' mancano le proprietà seguenti del tipo '{1}': {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "Nel tipo '{0}' mancano le proprietà seguenti del tipo '{1}': {2} e altre {3}.", "Type_0_is_not_a_constructor_function_type_2507": "Il tipo '{0}' non è un tipo di funzione del costruttore.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Il tipo '{0}' non è un tipo restituito di funzione asincrona valido in ES5 perché non fa riferimento a un valore di costruttore compatibile con Promise.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Il tipo '{0}' non è un tipo restituito di funzione asincrona valido in ES5/ES3 perché non fa riferimento a un valore di costruttore compatibile con Promise.", "Type_0_is_not_an_array_type_2461": "Il tipo '{0}' non è un tipo matrice.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Il tipo '{0}' non è un tipo matrice o stringa.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Il tipo '{0}' non è un tipo matrice o stringa oppure non contiene un metodo '[Symbol.iterator]()' che restituisce un iteratore.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Si intendeva '{2}'?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Il tipo '{0}' non è assegnabile al tipo '{1}'. Sono presenti due tipi diversi con questo nome, che però non sono correlati.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Il tipo '{0}' non può essere assegnato al tipo '{1}' come indicato dall'annotazione di varianza.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Il tipo '{0}' non è assegnabile al tipo '{1}' come richiesto per i valori dei membri di enumerazione calcolati.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' ai tipi di proprietà di destinazione.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "L'argomento di tipo '{0}' non può essere assegnato al tipo '{1}' con 'exactOptionalPropertyTypes: true'. Provare ad aggiungere 'undefined' al tipo di destinazione.", "Type_0_is_not_comparable_to_type_1_2678": "Il tipo '{0}' non è confrontabile con il tipo '{1}'.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "È previsto l'argomento tipo.", "Type_argument_list_cannot_be_empty_1099": "L'elenco degli argomenti tipo non può essere vuoto.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Gli argomenti tipo possono essere usati solo in file TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "Non è possibile usare argomenti tipo in questa posizione.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Gli argomenti tipo per '{0}' contengono un riferimento circolare a se stessi.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Le espressioni di asserzione di tipo possono essere usate solo in file TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Il tipo alla posizione {0} nell'origine non è compatibile con il tipo alla posizione {1} nella destinazione.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Il tipo alle posizioni dalla {0} alla {1} nell'origine non è compatibile con il tipo alla posizione {2} nella destinazione.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Non è possibile usare il tipo contenente il nome privato '{0}' con --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "File della dichiarazione di tipo da includere nella compilazione.", "Type_expected_1110": "È previsto il tipo.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "L’importazione dei tipi di asserzione deve contenere esattamente una chiave, 'resolution-mode', con valore 'import' o 'require'.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Gli attributi di importazione di tipi devono contenere esattamente una chiave 'resolution-mode', con valore 'import' o 'require'.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "L'importazione del tipo di un modulo ECMAScript da un modulo CommonJS deve avere un attributo 'resolution-mode'.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "La creazione di un'istanza di tipo presenta troppi livelli ed è probabilmente infinita.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Il tipo viene usato come riferimento diretto o indiretto nel callback di fulfillment del relativo metodo 'then'.", "Type_library_referenced_via_0_from_file_1_1402": "Libreria dei tipi a cui viene fatto riferimento tramite '{0}' dal file '{1}'", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Il tipo di elementi iterati di un operando 'yield*' deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Il tipo di proprietà '{0}' contiene un riferimento circolare a se stesso nel tipo con mapping '{1}'.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Il tipo dell'operando 'yield' in un generatore asincrono deve essere una promessa valida oppure non deve contenere un membro 'then' chiamabile.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "L'importazione solo tipo di un modulo ECMAScript da un modulo CommonJS deve avere un attributo 'resolution-mode'.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Il tipo è originato in corrispondenza di questa importazione. Non è possibile chiamare o costruire un'importazione di tipo spazio dei nomi e verrà restituito un errore in fase di esecuzione. Provare a usare un'importazione predefinita o un'importazione di require in questo punto.", "Type_parameter_0_has_a_circular_constraint_2313": "Il parametro di tipo '{0}' contiene un vincolo circolare.", "Type_parameter_0_has_a_circular_default_2716": "Il parametro di tipo '{0}' contiene un'impostazione predefinita circolare.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Non è possibile risolvere la firma dell'espressione Decorator del metodo quando è chiamata come espressione.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Non è possibile risolvere la firma dell'espressione Decorator del parametro quando è chiamata come espressione.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Non è possibile risolvere la firma dell'espressione Decorator della proprietà quando è chiamata come espressione.", - "Undetermined_character_escape_1513": "Carattere di escape indeterminato.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "'{0}' imprevisto. La barra rovesciata stava per un carattere escape?", "Unexpected_end_of_text_1126": "Fine del testo imprevista.", "Unexpected_keyword_or_identifier_1434": "Parola chiave o identificatore imprevisti.", "Unexpected_token_1012": "Token imprevisto.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token imprevisto. Si intendeva `{'}'}` o `}`?", "Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.", - "Unicode_escape_sequence_cannot_appear_here_17021": "La sequenza di escape Unicode non può essere visualizzata qui.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Le sequenze di escape Unicode sono disponibili solo quando è impostato il flag Unicode (u) o Unicode Sets (v).", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Le espressioni valore della proprietà sono disponibili solo quando è impostato il flag Unicode (u) o Unicode Sets (v).", - "Unknown_Unicode_property_name_1524": "Nome della proprietà Unicode sconosciuto.", - "Unknown_Unicode_property_name_or_value_1529": "Nome o valore della proprietà Unicode sconosciuto.", - "Unknown_Unicode_property_value_1526": "Valore della proprietà Unicode sconosciuto.", "Unknown_build_option_0_5072": "L'opzione di compilazione '{0}' è sconosciuta.", "Unknown_build_option_0_Did_you_mean_1_5077": "L'opzione di compilazione '{0}' è sconosciuta. Si intendeva '{1}'?", "Unknown_compiler_option_0_5023": "Opzione del compilatore sconosciuta: '{0}'.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "L'opzione '{0}' del compilatore è sconosciuta. Si intendeva '{1}'?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Parola chiave o identificatore sconosciuti. Intendevi '{0}'?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "L'opzione 'excludes' è sconosciuta. Si intendeva 'exclude'?", - "Unknown_regular_expression_flag_1499": "Flag di espressione regolare sconosciuto.", "Unknown_type_acquisition_option_0_17010": "L'opzione '{0}' relativa all'acquisizione del tipo è sconosciuta.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "L'opzione di acquisizione del tipo '{0}' è sconosciuta. Si intendeva '{1}'?", "Unknown_watch_option_0_5078": "L'opzione '{0}' dell'espressione di controllo è sconosciuta.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Etichetta non usata.", "Unused_ts_expect_error_directive_2578": "Direttiva '@ts-expect-error' non usata.", "Update_import_from_0_90058": "Aggiornare l'importazione da \"{0}\"", - "Update_modifiers_of_0_90061": "Aggiornare i modificatori di '{0}'", + "Updating_output_of_project_0_6373": "Aggiornamento dell'output del progetto '{0}'...", "Updating_output_timestamps_of_project_0_6359": "Aggiornamento dei timestamp di output del progetto '{0}'...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Aggiornamento dei timestamp di output non modificati del progetto '{0}'...", "Use_0_95174": "Usa `{0}`.", - "Use_0_instead_5106": "Usare '{0}'.", "Use_Number_isNaN_in_all_conditions_95175": "Usare 'Number.isNaN' in tutte le condizioni.", "Use_element_access_for_0_95145": "Usare l'accesso agli elementi per '{0}'", "Use_element_access_for_all_undeclared_properties_95146": "Usare l'accesso agli elementi per tutte le proprietà non dichiarate.", - "Use_import_type_95180": "Usare 'import type'", "Use_synthetic_default_member_95016": "Usare il membro 'default' sintetico.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Usare il campo 'exports' del file package.json per risolvere le importazioni.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Usare il campo 'imports' del file package.json per risolvere le importazioni.", - "Use_type_0_95181": "Usare 'type {0}'", "Using_0_subpath_1_with_target_2_6404": "Utilizzo di '{0}' sottotracciato '{1}' con destinazione '{2}'.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "L'uso di frammenti JSX richiede che la factory di frammenti \"{0}\" sia nell'ambito, ma non è stata trovata.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "L'uso di una stringa in un'istruzione 'for...of' è supportato solo in ECMAScript 5 e versioni successive.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Se si usa --build, l'opzione -b modificherà il comportamento di tsc in modo che sia più simile a un agente di orchestrazione di compilazione che a un compilatore. Viene usata per attivare la compilazione di progetti compositi. Per altre informazioni, vedere {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "È prevista la dichiarazione di variabile.", "Variable_declaration_list_cannot_be_empty_1123": "L'elenco delle dichiarazioni di variabile non può essere vuoto.", "Variable_declaration_not_allowed_at_this_location_1440": "Dichiarazione di variabile non consentita in questa posizione.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "La variabile deve avere un'annotazione di tipo esplicito con --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Le variabili con più dichiarazioni non possono essere impostate come inline.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "L'elemento variadic alla posizione {0} nell'origine non corrisponde all'elemento alla posizione {1} nella destinazione.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Le annotazioni di varianza sono supportate solo negli alias di tipo per oggetti, funzioni, costruttori e tipi mappati.", "Version_0_6029": "Versione {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Durante il controllo del tipo prende in considerazione 'null' e 'undefined'.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Indica se mantenere l'output della console obsoleto in modalità espressione di controllo invece di pulire lo schermo.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Eseguire il wrapping di tutti i caratteri non validi in un contenitore di espressioni", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Eseguire il wrapping di tutte le espressioni Decorator non valide tra parentesi", "Wrap_all_object_literal_with_parentheses_95116": "Racchiudere tra parentesi tutti i valori letterali di oggetto", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Esegue il wrapping di JSX senza parentesi nel frammento JSX", "Wrap_in_JSX_fragment_95120": "Esegui il wrapping nel frammento JSX", - "Wrap_in_parentheses_95194": "Eseguire il wrapping tra parentesi", "Wrap_invalid_character_in_an_expression_container_95108": "Eseguire il wrapping del carattere non valido in un contenitore di espressioni", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Racchiudere tra parentesi il corpo seguente che deve essere un valore letterale di oggetto", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Per informazioni su tutte le opzioni del compilatore, vedere {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Le firme dell'indice '{0}' e '{1}' non sono compatibili.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Non è possibile combinare le operazioni '{0}' e '{1}' senza parentesi.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "Gli attributi '{0}' sono stati specificati due volte. L'attributo denominato '{0}' verrà sovrascritto.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "'{0}' alla fine di un tipo non è una sintassi TypeScript valida. Si intendeva scrivere '{1}'?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "'{0}' all'inizio di un tipo non è una sintassi TypeScript valida. Si intendeva scrivere '{1}'?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' può essere importato solo attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' può essere importato solo usando un'importazione predefinita.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' può essere importato solo usando una chiamata 'require' o attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' può essere importato solo usando una chiamata 'require' o usando un'importazione predefinita.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' può essere importato solo usando 'import {1} = require({2})' o un'importazione predefinita.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' può essere importato solo usando 'import {1} = require({2})' o attivando il flag 'esModuleInterop' e usando un'importazione predefinita.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "Non è possibile compilare '{0}' in '--isolatedModules' perché viene considerato un file di script globale. Aggiungere un'istruzione import, export o un'istruzione 'export {}' vuota per trasformarlo in un modulo.", "_0_cannot_be_used_as_a_JSX_component_2786": "Non è possibile usare '{0}' come componente JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "Non è possibile usare '{0}' come valore perché è stato esportato con 'export type'.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "Non è possibile usare '{0}' come valore perché è stato importato con 'import type'.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "I componenti di '{0}' non accettano testo come elementi figlio. Il tipo di testo in JSX è 'string ', ma il tipo previsto di '{1}' è '{2}'.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Non è stato possibile creare un'istanza di '{0}' con un tipo arbitrario che potrebbe non essere correlato a '{1}'.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Le dichiarazioni '{0}' possono essere dichiarate solo all'interno di un blocco.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Le dichiarazioni '{0}' possono essere usate solo in file TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "'{0}' dichiarazioni non possono avere criteri di associazione.", - "_0_declarations_must_be_initialized_1155": "Le dichiarazioni '{0}' devono essere inizializzate.", "_0_expected_1005": "È previsto '{0}'.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}' ha un tipo stringa, ma deve avere una sintassi di stringa riconoscibile sintatticamente quando è abilitato 'isolatedModules'.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "In '{0}' non è presente alcun membro esportato denominato '{1}'. Si intendeva '{2}'?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' include implicitamente un tipo restituito '{1}', ma è possibile dedurre un tipo migliore dall'utilizzo.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' contiene implicitamente il tipo restituito 'any', perché non contiene un'annotazione di tipo restituito e viene usato come riferimento diretto o indiretto in una delle relative espressioni restituite.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Il tipo di indice '{0}' '{1}' non è assegnabile al tipo di indice '{2}' '{3}'.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' è una primitiva, ma '{1}' è un oggetto wrapper. Quando possibile, preferire '{0}'.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' è un tipo e non può essere importato nei file JavaScript. Usare '{1}' in un'annotazione di tipo JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}' è un tipo e deve essere importato usando un'importazione solo di tipi quando 'verbatimModuleSyntax' è abilitato.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' è un tipo e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' è una ridenominazione inutilizzata di '{1}'. Si intendeva utilizzarla come annotazione di tipo?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' è assegnabile al vincolo di tipo '{1}', ma è possibile creare un'istanza di '{1}' con un sottotipo diverso del vincolo '{2}'.", "_0_is_automatically_exported_here_18044": "'{0}' viene esportato automaticamente qui.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "L'elenco '{0}' non può essere vuoto.", "_0_modifier_already_seen_1030": "Il modificatore '{0}' è già presente.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Il modificatore '{0}' può essere presente solo in un parametro di tipo di una classe, un'interfaccia o un alias di tipo", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "Il modificatore '{0}' può essere presente solo in un parametro di tipo di una funzione, un metodo o una classe", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Il modificatore '{0}' non può essere incluso in una dichiarazione di costruttore.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Il modificatore '{0}' non può essere incluso in un elemento modulo o spazio dei nomi.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Il modificatore '{0}' non può essere incluso in un parametro.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Il modificatore '{0}' non può essere incluso in un membro di tipo.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Il modificatore '{0}' non può essere incluso in un parametro di tipo.", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "Il modificatore '{0}' non può essere incluso in una dichiarazione 'using'.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "Il modificatore '{0}' non può essere incluso in una dichiarazione 'await using'.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Il modificatore '{0}' non può essere incluso in una firma dell'indice.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Il modificatore '{0}' non può essere incluso in elementi di classe di questo tipo.", "_0_modifier_cannot_be_used_here_1042": "Non è possibile usare il modificatore '{0}' in questo punto.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Non è possibile usare il modificatore '{0}' con il modificatore '{1}'.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Non è possibile usare il modificatore '{0}' con un identificatore privato.", "_0_modifier_must_precede_1_modifier_1029": "Il modificatore '{0}' deve precedere il modificatore '{1}'.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' deve essere seguito da un'espressione del valore di proprietà Unicode racchiusa tra parentesi graffe.", "_0_needs_an_explicit_type_annotation_2782": "'{0}' richiede un'annotazione di tipo esplicita.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' fa riferimento solo a un tipo, ma qui viene usato come spazio dei nomi.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' fa riferimento solo a un tipo, ma qui viene usato come valore.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' si riferisce solo a un tipo, ma in questo punto viene usato come valore. È necessario modificare la libreria di destinazione? Provare a impostare l'opzione 'lib' del compilatore su es2015 o versioni successive.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' fa riferimento a un istruzione globale UMD, ma il file corrente è un modulo. Provare ad aggiungere un'importazione.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' fa riferimento a un valore, ma qui viene usato come tipo. Si intendeva 'typeof {0}'?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}' si risolve in un tipo e deve essere contrassegnato come solo di tipi in questo file prima di eseguire nuovamente l'esportazione quando '{1}' è abilitato. Provare a usare 'import type' in cui viene importato '{0}'.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}' si risolve in un tipo e deve essere contrassegnato come solo di tipi in questo file prima di eseguire nuovamente l'esportazione quando '{1}' è abilitato. Provare a usare 'export type {{0} as default }'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere importato usando un'importazione solo di tipi quando 'verbatimModuleSyntax' è abilitato.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere contrassegnato come solo di tipi in questo file prima di eseguire nuovamente l'esportazione quando '{1}' è abilitato. Provare a usare 'import type' in cui viene importato '{0}'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere contrassegnato come solo di tipi in questo file prima di eseguire nuovamente l'esportazione quando '{1}' è abilitato. Provare a usare 'export type {{0} as default }'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere riesportato usando una riesportazione solo di tipi quando '{1}' è abilitato.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere importato usando un'importazione solo di tipi quando 'preserveValueImports' e 'isolatedModules' sono entrambi abilitati.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' si risolve in una dichiarazione solo di tipi e deve essere riesportato usando una riesportazione solo di tipi quando 'isolatedModules' è abilitato.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "' {0}' deve essere impostato all'interno dell'oggetto 'compilerOptions' del file JSON di configurazione", "_0_tag_already_specified_1223": "Il tag '{0}' è già specificato.", "_0_was_also_declared_here_6203": "In questo punto viene dichiarato anche '{0}'.", @@ -1999,22 +1780,19 @@ "and_here_6204": "e in questo punto.", "arguments_cannot_be_referenced_in_property_initializers_2815": "impossibile fare riferimento agli 'argomenti' negli inizializzatori di proprietà.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": considera i file con importazioni, esportazioni, import.meta, jsx (con jsx: react-jsx) o il formato esm (con modulo: node16+) come moduli.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Non è possibile usare l'espressione 'await' all'interno di un blocco statico di classe.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Le espressioni 'await' sono consentite solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Le espressioni 'await' sono consentite solo all'interno di funzioni asincrone e al primo livello di moduli.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Non è possibile usare le espressioni 'await' in un inizializzatore di parametri.", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' non ha alcun effetto sul tipo di questa espressione.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Le istruzioni 'await using' sono consentite solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Le istruzioni 'await using' sono consentite solo all'interno di funzioni asincrone e al primo livello di moduli.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Non è possibile usare le istruzioni 'await using' all'interno di un blocco statico di classe.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "L'opzione 'baseUrl' è impostata su '{0}'. Verrà usato questo valore per risolvere il nome del modulo non relativo '{1}'.", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' deve essere seguito da una lettera ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' può essere usato solo all'inizio di un file.", "case_or_default_expected_1130": "È previsto 'case' o 'default'.", "catch_or_finally_expected_1472": "È previsto 'catch' o 'finally'.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Le dichiarazioni 'const' possono essere dichiarate solo all'interno di un blocco.", + "const_declarations_must_be_initialized_1155": "Le dichiarazioni 'const' devono essere inizializzate.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "L'inizializzatore del membro di enumerazione 'const' è stato valutato come valore non finito.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "L'inizializzatore del membro di enumerazione 'const' è stato valutato come valore non consentito 'NaN'.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "gli inizializzatori di membro di enumerazione const devono essere espressioni costanti.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "gli inizializzatori di membri di enumerazione const possono contenere solo valori letterali e altri valori di enumerazione calcolati.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Le enumerazioni 'const' possono essere usate solo in espressioni di accesso a proprietà o indice oppure nella parte destra di un'assegnazione di esportazione, di una dichiarazione di importazione o di una query su tipo.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "Non è possibile usare 'constructor' come nome di proprietà di un parametro.", "constructor_is_a_reserved_word_18012": "'#constructor' è una parola riservata.", @@ -2033,14 +1811,13 @@ "file_6025": "file", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "I cicli 'for await' sono consentiti solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "I cicli 'for await' sono consentiti solo all'interno di funzioni asincrone e al primo livello di moduli.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Non è possibile usare i cicli 'for await' all'interno di un blocco statico di classe.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Le funzioni di accesso 'get' e 'set' non possono dichiarare parametri 'this'.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "`[]` se è specificato `files`; in caso contrario, `[\"**/*\"]5D;`", "implements_clause_already_seen_1175": "La clausola 'implements' è già presente.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Le clausole 'implements' possono essere usate solo in file TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' può essere usato solo in file TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Le dichiarazioni 'infer' sono consentite solo nella clausola 'extends' di un tipo condizionale.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' deve essere seguito da un nome di gruppo di acquisizione racchiuso tra parentesi acute.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Le dichiarazioni 'let' possono essere dichiarate solo all'interno di un blocco.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Non è consentito usare 'let' come nome in dichiarazioni 'let' o 'const'.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === `AMD` o `UMD` o `System` o `ES6`, quindi `Classic`; in caso contrario `Node`", "module_system_or_esModuleInterop_6904": "module === \"system\" o esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' non contiene alcuna voce di 'typesVersions' corrispondente alla versione '{0}'.", "package_json_had_a_falsy_0_field_6220": "'package.json' contiene un campo '{0}' falso.", "package_json_has_0_field_1_that_references_2_6101": "Il file 'package.json' contiene il campo '{1}' di '{0}' che fa riferimento a '{2}'.", - "package_json_has_a_peerDependencies_field_6281": "'package.json' contiene un campo 'peerDependencies'.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' contiene una voce '{0}' di 'typesVersions' che non corrisponde a un intervallo semver valido.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' contiene una voce '{0}' di 'typesVersions' che corrisponde alla versione '{1}' del compilatore. Verrà cercato un criterio per la corrispondenza con il nome di modulo '{2}'.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' contiene un campo 'typesVersions' con mapping tra percorsi specifici della versione.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "L'ambito package.json '{0}' contiene un tipo non valido per la destinazione dell'identificatore '{1}'", "package_json_scope_0_has_no_imports_defined_6273": "L'ambito package.json '{0}' non ha importazioni definite.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "È specificata l'opzione 'paths'. Verrà cercato un criterio per la corrispondenza con il nome del modulo '{0}'.", - "q_is_only_available_inside_character_class_1511": "'\\q' è disponibile solo all'interno della classe di caratteri.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' deve essere seguito da stringhe alternative racchiuse tra parentesi graffe.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Il modificatore 'readonly' può essere incluso solo in una dichiarazione di proprietà o una firma dell'indice.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Il modificatore di tipo 'readonly' è consentito solo in tipi di valore letterale matrice e tupla.", "require_call_may_be_converted_to_an_import_80005": "La chiamata a 'require' può essere convertita in un'importazione.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Le asserzioni 'resolution-mode' sono supportate solo quando 'moduleResolution' è 'node16' o 'nodenext'.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Le asserzioni 'resolution-mode' sono instabili. Usare TypeScript notturno per disattivare questo errore. Provare ad eseguire l'aggiornamento con 'npm install -D typescript@next'.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode' può essere impostata solo per le importazioni di tipo.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode' è l'unica chiave valida per l’importazione dei tipi di asserzioni.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "'resolution-mode' è l'unica chiave valida per gli attributi di importazione di tipi.", "resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' deve essere 'require' o 'import'.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "L'opzione 'rootDirs' è impostata e verrà usata per risolvere il nome del modulo relativo '{0}'.", "super_can_only_be_referenced_in_a_derived_class_2335": "È possibile fare riferimento a 'super' solo in una classe derivata.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "Non è possibile fare riferimento a 'this' in un nome di proprietà calcolato.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Non è possibile fare riferimento a 'this' nel corpo di un modulo o di uno spazio dei nomi.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Non è possibile fare riferimento a 'this' in un inizializzatore di proprietà statica.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "Non è possibile fare riferimento a 'this' in argomenti del costruttore.", "this_cannot_be_referenced_in_current_location_2332": "Non è possibile fare riferimento a 'this' nella posizione corrente.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' contiene implicitamente il tipo 'any' perché non include un'annotazione di tipo.", "true_for_ES2022_and_above_including_ESNext_6930": "'true' per ES2022 e versioni successive, incluso ESNext.", "true_if_composite_false_otherwise_6909": "`true` se è `composite`; in caso contrario, `false`", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "'true' quando 'moduleResolution' è 'node16', 'nodenext' o 'bundler'; in caso contrario, 'false'.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: il compilatore TypeScript", "type_Colon_6902": "tipo:", "unique_symbol_types_are_not_allowed_here_1335": "I tipi 'unique symbol' non sono consentiti in questo punto.", diff --git a/node_modules/typescript/lib/ja/diagnosticMessages.generated.json b/node_modules/typescript/lib/ja/diagnosticMessages.generated.json index 80b3172cf..5bc780d7a 100644 --- a/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/ja/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "すべてのコンパイラ オプション", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 修飾子とインポート宣言は同時に使用できません。", "A_0_parameter_must_be_the_first_parameter_2680": "'{0}' パラメーターは最初のパラメーターである必要があります。", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "JSDoc '@template' タグが '@typedef'、'@callback'、または '@overload' タグの後にない可能性があります", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' コメントに複数の '@type' タグを含めることはできません。", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "'bigint' リテラルをプロパティ名として使用することはできません。", "A_bigint_literal_cannot_use_exponential_notation_1352": "bigint リテラルでは指数表記を使用できません。", "A_bigint_literal_must_be_an_integer_1353": "bigint リテラルは整数である必要があります。", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "実装シグネチャでバインド パターン パラメーターを省略可能にすることはできません。", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' ステートメントは外側のイテレーションまたは switch ステートメント内でのみ使用できます。", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' ステートメントは、外側のステートメントのラベルにのみ移動できます。", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "予約された二重句読点を文字クラスに含めることはできません。バックスラッシュを使用してエスケープするつもりでしたか?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "文字クラスの範囲を別の文字クラスでバインドすることはできません。", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "クラスで実装できるのは、オプションの型引数を指定した識別子/完全修飾名のみです。", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "クラスで実装できるのは、オブジェクト型または静的な既知のメンバーを持つオブジェクト型の積集合のみです。", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "クラスが '{0}' のようなプリミティブ型を拡張することはできません。クラスは、コンストラクト可能な値のみを拡張できます。", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "クラスが '{0}' のようなプリミティブ型を実装することはできません。実装できるのは、その他の名前付きオブジェクト型のみです。", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' の修飾子がないクラス宣言には名前が必要です。", "A_class_member_cannot_have_the_0_keyword_1248": "クラス メンバーに '{0}' キーワードを指定することはできません。", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "コンマ式は計算されたプロパティ名では使用できません。", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "コンストラクターに 'this' パラメーターを指定することはできません。", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' ステートメントは外側のイテレーション内でのみ使用できます。", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' ステートメントは、外側のイテレーション ステートメントのラベルにのみ移動できます。", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "宣言ファイルを 'import type' なしでインポートすることはできません。代わりに実装ファイルト '{0}' をインポートするつもりでしたか?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "'declare' 修飾子は、環境コンテキストでは使用できません。", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "デコレーターが装飾できるのは、オーバーロードではなく、メソッドの実装のみです。", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' 句を 'switch' ステートメントで複数回使用することはできません。", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "既定のエクスポートは、ファイルまたはモジュールの宣言のトップレベルにある必要があります。", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "限定代入アサーション '!' は、このコンテキストで許可されていません。", "A_destructuring_declaration_must_have_an_initializer_1182": "非構造化宣言には初期化子が必要です。", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "ES5 の動的インポート呼び出しには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3 の動的インポート呼び出しには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "動的インポート呼び出しは 'Promise' を返します。'Promise' の宣言があること、または '--lib' オプションに 'ES2015' を含めていることをご確認ください。", "A_file_cannot_have_a_reference_to_itself_1006": "ファイルにそれ自体への参照を含めることはできません。", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "'never' を返す関数には、到達可能なエンド ポイントがありません。", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "'new' キーワードで呼び出される関数に、'void' である 'this' 型を使用することはできません。", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "宣言された型が 'undefined'、'void'、または 'any' でない関数は、値を返す必要があります。", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "宣言された型が 'void' でも 'any' でもない関数は値を返す必要があります。", "A_generator_cannot_have_a_void_type_annotation_2505": "ジェネレーターに 'void' 型の注釈を指定することはできません。", "A_get_accessor_cannot_have_parameters_1054": "'get' アクセサーにパラメーターを指定することはできません。", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "get アクセサーは、少なくともセッターと同程度にアクセス可能である必要があります", @@ -62,9 +55,9 @@ "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_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "名前空間宣言は、それとマージするクラスや関数より前に配置できません。", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "名前空間宣言は、名前空間またはモジュールの最上位レベルでのみ許可されます。", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "'namespace' 宣言を 'module' キーワードを使用して宣言することはできません。代わりに 'namespace' キーワードを使用してください。", "A_non_dry_build_would_build_project_0_6357": "非 -dry ビルドを実行した場合、プロジェクト '{0}' がビルドされます", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry ビルドを実行した場合、次のファイルが削除されます: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "non-dry build では、プロジェクト '{0}' の出力が更新されます", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "non-dry build では、プロジェクト '{0}' の出力のタイムスタンプが更新されます", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "パラメーター初期化子は、関数またはコンストラクターの実装でのみ指定できます。", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "パラメーター プロパティは、rest パラメーターを使用して宣言することはできません。", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "'super' の呼び出しは、初期化されたプロパティ、パラメーターのプロパティ、private 識別子が派生クラスに含まれている場合は、'super' や 'this' を参照するコンストラクターの最初のステートメントである必要があります。", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "'this' ベース型のガードはパラメーター ベース型のガードとは互換性がありません。", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 型はクラスまたはインターフェイスの静的でないメンバーでのみ使用できます。", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "'verbatimModuleSyntax' が有効である場合、CommonJS モジュール内の値宣言でトップレベルの 'export' 修飾子を使用することはできません。", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' ファイルは既に '{0}' で定義されています。", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "タプル メンバーを optional と rest の両方に指定することはできません。", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "タプル型に負の値のインデックスを指定することはできません。", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "'yield' 式は、ジェネレーター本文でのみ使用できます。", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "クラス '{1}' の抽象メソッド '{0}' には super 式を介してアクセスできません。", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "抽象メソッドは抽象クラス内でのみ使用できます。", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "抽象プロパティは抽象クラス内でのみ使用できます。", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "コンストラクター内でクラス '{1}' の抽象プロパティ '{0}' にアクセスできません。", "Accessibility_modifier_already_seen_1028": "アクセシビリティ修飾子は既に存在します。", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "アクセサーは ECMAScript 5 以上をターゲットにする場合にのみ使用できます。", "Accessors_must_both_be_abstract_or_non_abstract_2676": "アクセサーはどちらも抽象または非抽象である必要があります。", "Add_0_to_unresolved_variable_90008": "'{0}' を未解決の変数に追加します", "Add_a_return_statement_95111": "return ステートメントを追加する", - "Add_a_return_type_to_the_function_declaration_9031": "関数宣言に戻り値の型を追加してください。", - "Add_a_return_type_to_the_function_expression_9030": "関数式に戻り値の型を追加してください。", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "get アクセサー宣言に戻り値の型を追加してください。", - "Add_a_return_type_to_the_method_9034": "メソッドに戻り値の型を追加してください", - "Add_a_type_annotation_to_the_parameter_0_9028": "パラメーター {0} に型注釈を追加してください。", - "Add_a_type_annotation_to_the_property_0_9029": "プロパティ {0} に型注釈を追加してください。", - "Add_a_type_annotation_to_the_variable_0_9027": "変数 {0} に型注釈を追加してください。", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "set アクセサー宣言のパラメーターに型を追加してください。", "Add_all_missing_async_modifiers_95041": "不足しているすべての 'async' 修飾子を追加します", "Add_all_missing_attributes_95168": "不足しているすべての属性を追加する", "Add_all_missing_call_parentheses_95068": "見つからない呼び出しのかっこをすべて追加します", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "不足しているすべてのインポートを追加する", "Add_all_missing_members_95022": "不足しているすべてのメンバーを追加します", "Add_all_missing_override_modifiers_95162": "不足しているすべての 'override' 修飾子を追加する", - "Add_all_missing_parameters_95190": "不足しているすべてのプロパティを追加してください", "Add_all_missing_properties_95166": "不足しているすべてのプロパティを追加する", "Add_all_missing_return_statement_95114": "不足しているすべての return ステートメントを追加する", "Add_all_missing_super_calls_95039": "不足しているすべての super の呼び出しを追加します", - "Add_all_missing_type_annotations_90067": "不足しているすべての型注釈を追加してください", - "Add_all_optional_parameters_95193": "すべてのオプション パラメーターを追加してください", - "Add_annotation_of_type_0_90062": "型 '{0}' の注釈を追加してください", "Add_async_modifier_to_containing_function_90029": "含まれている関数に async 修飾子を追加します", "Add_await_95083": "'await' を追加する", "Add_await_to_initializer_for_0_95084": "'{0}' の初期化子に 'await' を追加する", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "初期化されていないすべてのプロパティに初期化子を追加します", "Add_missing_attributes_95167": "不足している属性の追加", "Add_missing_call_parentheses_95067": "見つからない呼び出しのかっこを追加します", - "Add_missing_comma_for_object_member_completion_0_95187": "オブジェクト メンバー補完 '{0}' に不足しているコンマを追加してください。", "Add_missing_enum_member_0_95063": "不足している列挙型メンバー '{0}' を追加する", "Add_missing_function_declaration_0_95156": "不足している関数宣言 '{0}' を追加します", "Add_missing_new_operator_to_all_calls_95072": "不足している 'new' 演算子をすべての呼び出しに追加する", "Add_missing_new_operator_to_call_95071": "不足している 'new' 演算子を呼び出しに追加する", - "Add_missing_parameter_to_0_95188": "'{0}' に不足しているパラメーターを追加してください", - "Add_missing_parameters_to_0_95189": "'{0}' に不足しているパラメーターを追加してください", "Add_missing_properties_95165": "不足しているすべてのプロパティの追加", "Add_missing_super_call_90001": "欠落している 'super()' 呼び出しを追加する", "Add_missing_typeof_95052": "不足している 'typeof' を追加します", "Add_names_to_all_parameters_without_names_95073": "名前のないすべてのパラメーターに名前を追加する", - "Add_optional_parameter_to_0_95191": "オプション パラメーターを '{0}' に追加してください", - "Add_optional_parameters_to_0_95192": "省略可能なパラメーターを '{0}' に追加する", "Add_or_remove_braces_in_an_arrow_function_95058": "アロー関数内の中かっこを追加または削除します", "Add_override_modifier_95160": "'override' 修飾子を追加する", "Add_parameter_name_90034": "パラメーター名を追加する", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "メンバー名と一致するすべての未解決の変数に修飾子を追加します", - "Add_resolution_mode_import_attribute_95196": "'resolution-mode' インポート属性を追加する", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "'resolution-mode' インポート属性を、必要とするすべての型のみのインポートに追加する", - "Add_return_type_0_90063": "戻り値の型 '{0}' を追加してください", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "型を明示的にするには、この式に satisfies と型アサーションを追加してください (satisfies T as T)。", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "'{0}' を使用して satisfies とインライン型のアサーションを追加してください", "Add_to_all_uncalled_decorators_95044": "呼び出されていないすべてのデコレーターに '()' を追加します", "Add_ts_ignore_to_all_error_messages_95042": "すべてのエラー メッセージに '@ts-ignore' を追加します", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "インデックスを使用してアクセスした場合は、'undefined' を型に追加します。", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "既定のエクスポートがないモジュールからの既定のインポートを許可します。これは、型チェックのみのため、コード生成には影響を与えません。", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "モジュールに既定のエクスポートがない場合は、'import x from y' を許可します。", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "tslib からヘルパー関数をファイルごとに含めるのではなく、プロジェクトごとに 1 回インポートすることを許可します。", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "TypeScript ファイル拡張子を含めるインポートを許可してください。'--moduleResolution bundler' と '--noEmit' または '--emitDeclarationOnly' のいずれかを設定する必要があります。", "Allow_javascript_files_to_be_compiled_6102": "javascript ファイルのコンパイルを許可します。", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "モジュールを解決するときに複数のフォルダーを 1 つのフォルダーとして処理することを許可します。", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "既に含まれているファイル名 '{0}' は、ファイル名 '{1}' と大文字と小文字の指定だけが異なります。", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "このバインド パターンに一致する引数が指定されていません。", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "算術オペランドは 'any' 型、'number' 型、’bigint' 型、列挙型のいずれかである必要があります。", "An_arrow_function_cannot_have_a_this_parameter_2730": "アロー関数に 'this' パラメーターを指定することはできません。", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "ES5 の非同期の関数またはメソッドには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 の非同期の関数またはメソッドには、'Promise' コンストラクターが必要です。'Promise' コンストラクターの宣言があることを確認するか、'--lib' オプションに 'ES2015' を組み込んでください。", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "非同期関数またはメソッドは 'Promise' を返す必要があります。'Promise' の宣言があること、または '--lib' オプションに 'ES2015' を含めていることを確認してください。", "An_async_iterator_must_have_a_next_method_2519": "非同期反復子には 'next()' メソッドが必要です。", "An_element_access_expression_should_take_an_argument_1011": "要素アクセス式では、引数を取る必要があります。", @@ -239,22 +207,17 @@ "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_namespace_or_module_1233": "エクスポート宣言は、名前空間またはモジュールの最上位レベルでのみ使用できます。", "An_export_declaration_cannot_have_modifiers_1193": "エクスポート宣言に修飾子を指定することはできません。", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "'verbatimModuleSyntax' が有効である場合、 'export =' 宣言は実際の値を参照する必要がありますが、'{0}' は型のみの宣言に解決されます。", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "'verbatimModuleSyntax' が有効である場合、'export =' 宣言は値を参照する必要がありますが、'{0}' は型のみを参照しています。", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "'verbatimModuleSyntax' が有効である場合、'export default' は実際の値を参照する必要がありますが、'{0}' は型のみの宣言に解決されます。", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "'verbatimModuleSyntax' が有効である場合、'export default' は値を参照する必要がありますが、'{0}' は型のみを参照しています。", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "'void' 型の式は、真実性をテストできません。", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "拡張された Unicode エスケープ値は 0x0 と 0x10FFFF の間 (両端を含む) でなければなりません。", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "識別子またはキーワードを数値リテラルのすぐ後に指定することはできません。", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "実装は環境コンテキストでは宣言できません。", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "インポート エイリアスは、'export type' を使用してエクスポートされた宣言を参照できません。", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "インポート エイリアスは、'import type' を使用してインポートされた宣言を参照できません。", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "'verbatimModuleSyntax' が有効である場合、インポート エイリアスを型または型のみの宣言に解決することはできません。", "An_import_alias_cannot_use_import_type_1392": "インポート エイリアスで 'import type' を使用することはできません", "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_namespace_or_module_1232": "インポート宣言は、名前空間またはモジュールの最上位レベルでのみ使用できます。", "An_import_declaration_cannot_have_modifiers_1191": "インポート宣言に修飾子を指定することはできません。", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "'allowImportingTsExtensions' が有効である場合、インポート パスの末尾には '{0}' 拡張子のみを指定できます。", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "インポート パスの末尾を拡張子 '{0}' にすることはできません。代わりに '{1}' のインポートをご検討ください。", "An_index_signature_cannot_have_a_rest_parameter_1017": "インデックス シグネチャに rest パラメーターを指定することはできません。", "An_index_signature_cannot_have_a_trailing_comma_1025": "インデックス シグネチャの末尾にコンマを指定することはできません。", "An_index_signature_must_have_a_type_annotation_1021": "インデックス シグネチャには型の注釈が必要です。", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "インスタンス化式の後にプロパティ アクセスを続けることはできません。", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "インターフェイスが拡張するのは、オプションの型引数が指定された識別子/完全修飾名のみです。", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "インターフェイスが拡張できるのは、オブジェクト型または静的な既知のメンバーを持つオブジェクト型の積集合のみです。", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "インターフェイスが '{0}' のようなプリミティブ型を拡張することはできません。拡張できるのは、その他の名前付きオブジェクト型のみです。", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "インターフェイスは、'{0}' のようなプリミティブ型を拡張できません。インターフェイスは名前付きの型とクラスのみを拡張できます", "An_interface_property_cannot_have_an_initializer_1246": "インターフェイス プロパティに初期化子を使用することはできません。", "An_iterator_must_have_a_next_method_2489": "反復子には 'next()' メソッドが必要です。", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "@jsx pragma を JSX フラグメントで使用する場合は、@jsxFrag pragma が必要です。", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "オブジェクト リテラルに同じ名前の複数のプロパティを指定することはできません。", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "オブジェクト リテラルには、同じ名前のプロパティおよびアクセサーを指定することはできません。", "An_object_member_cannot_be_declared_optional_1162": "オブジェクト メンバーを省略可能として宣言することはできません。", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "オブジェクトの '[Symbol.hasInstance]' メソッドを 'instanceof' 式の右側で使用するには、このメソッドがブール値を返す必要があります。", "An_optional_chain_cannot_contain_private_identifiers_18030": "省略可能なチェーンには、pirvate 識別子を含めることはできません。", "An_optional_element_cannot_follow_a_rest_element_1266": "省略可能な要素を rest 要素の後に指定することはできません。", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "'this' の外部値がこのコンテナーによってシャドウされています。", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "オーバーロード シグネチャをジェネレーターとして宣言することはできません。", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "累乗式の左辺で '{0}' 演算子を含む単項式を使用することはできません。式を括弧で囲むことを検討してください。", "Annotate_everything_with_types_from_JSDoc_95043": "すべてに JSDoc の型で注釈を付けます", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "名前空間内のプロパティ expando 関数の型に注釈を付けてください", "Annotate_with_type_from_JSDoc_95009": "JSDoc の型で注釈を付けます", "Another_export_default_is_here_2753": "別のエクスポートの既定値がここにあります。", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "複数の文字と一致する可能性のある Unicode プロパティは、Unicode Sets (v) フラグが設定されている場合にのみ使用できます。", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "複数の文字と一致する可能性のあるものはすべて、負数化された文字クラス内では無効です。", "Are_you_missing_a_semicolon_2734": "セミコロンを忘れていませんか?", "Argument_expression_expected_1135": "引数式が必要です。", "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' オプションの引数は {1} である必要があります。", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "型 '{0}' の引数を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' のパラメーターに割り当てることはできません。ターゲットのプロパティの型に 'undefined' を追加することを検討してください。", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "rest パラメーター '{0}' の引数が指定されませんでした。", "Array_element_destructuring_pattern_expected_1181": "配列要素の非構造化パターンが必要です。", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "spread 要素を含む配列を --isolatedDeclarations と共に推論することはできません。", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "アサーションでは、呼び出し先のすべての名前が明示的な型の注釈で宣言されている必要があります。", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "アサーションでは、呼び出し先が識別子または修飾名である必要があります。", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "宣言せずに関数にプロパティを割り当てることは、--isolatedDeclarations ではサポートされていません。この関数に割り当てられたプロパティに明示的な宣言を追加してください。", "Asterisk_Slash_expected_1010": "'*/' が必要です。", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "少なくとも 1 つのアクセサーに、--isolatedDeclarations を含む明示的な型の注釈が必要です。", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "グローバル スコープの拡張を直接入れ子にできるのは、外部モジュールまたは環境モジュールの宣言内のみです。", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "グローバル スコープの拡張は、環境コンテキストに既にある場合を除いて、'declare' 修飾子を使用する必要があります。", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "プロジェクト '{0}' で型指定の自動検出が有効になっています。キャッシュの場所 '{2}' を使用して、モジュール '{1}' に対して追加の解決パスを実行しています。", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "await 式はクラスの静的ブロック内では使用できません。", "BUILD_OPTIONS_6919": "ビルド オプション", "Backwards_Compatibility_6253": "下位互換性", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "基底クラスの式ではクラスの型パラメーターを参照することはできません。", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "ターゲットが ES2020 未満の場合、bigint リテラルは使用できません。", "Binary_digit_expected_1177": "2 進の数字が必要です。", "Binding_element_0_implicitly_has_an_1_type_7031": "バインド要素 '{0}' には暗黙的に '{1}' 型が含まれます。", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "バインド要素を --isolatedDeclarations と共に直接エクスポートすることはできません。", "Block_scoped_variable_0_used_before_its_declaration_2448": "ブロック スコープの変数 '{0}' が、宣言の前に使用されています。", "Build_a_composite_project_in_the_working_directory_6925": "作業ディレクトリに複合プロジェクトを作成します。", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "最新の状態であると思われるものを含むすべてのプロジェクトをビルドします。", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "最新でない場合は、1 つ以上のプロジェクトとその依存関係をビルドします", "Build_option_0_requires_a_value_of_type_1_5073": "ビルド オプション '{0}' には型 {1} の値が必要です。", "Building_project_0_6358": "プロジェクト \"{0}\" をビルドしています...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "組み込みの反復子は、'any' の代わりに 'undefined' の 'TReturn' 型を使用してインスタンス化されます。", "COMMAND_LINE_FLAGS_6921": "コマンドライン フラグ", "COMMON_COMMANDS_6916": "一般的なコマンド", "COMMON_COMPILER_OPTIONS_6920": "一般的なコンパイラ オプション", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "呼び出しシグネチャの戻り値の型 '{0}' と '{1}' には互換性がありません。", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "戻り値の型の注釈がない呼び出しシグネチャの戻り値の型は、暗黙的に 'any' になります。", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "引数なしの呼び出しシグネチャに、互換性のない戻り値の型 '{0}' と '{1}' が含まれています。", + "Call_target_does_not_contain_any_signatures_2346": "呼び出しターゲットにシグネチャが含まれていません。", "Can_only_convert_logical_AND_access_chains_95142": "論理 AND のアクセス チェーンのみを変換できます", "Can_only_convert_named_export_95164": "名前付きエクスポートのみを変換できます", "Can_only_convert_property_with_modifier_95137": "修飾子を伴うプロパティの変換のみ可能です", - "Can_only_convert_string_concatenations_and_string_literals_95154": "文字列の連結と文字列リテラルのみを変換できます", + "Can_only_convert_string_concatenation_95154": "変換できるのは文字列の連結のみです", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "'{0}.{1}' にアクセスできません。'{0}' は型で、名前空間ではありません。'{0}[\"{1}\"]' で '{0}' のプロパティ '{1}' の型を取得するつもりでしたか?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "'{1}' が有効である場合、修飾しないで別のファイルから '{0}' にアクセスすることはできません。代わりに '{2}' を使用してください。", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "'{0}' が有効である場合、アンビエント const 列挙型にアクセスすることはできません。", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "'--isolatedModules' フラグが指定されている場合、アンビエント const 列挙型にはアクセスできません。", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "'{0}' コンストラクター型を '{1}' コンストラクター型に割り当てることができません。", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "抽象コンストラクター型を非抽象コンストラクター型に割り当てることはできません。", "Cannot_assign_to_0_because_it_is_a_class_2629": "クラスであるため、'{0}' に割り当てることはできません。", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "'{0}' のライブラリ定義が見つかりません。", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}' のライブラリ定義が見つかりません。'{1}' ですか?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "モジュール '{0}' が見つかりません。'--resolveJsonModule' を使用して '.json' 拡張子を持つモジュールをインポートすることをご検討ください。", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "モジュール '{0}' が見つかりません。'moduleResolution' オプションを 'nodenext' に設定するか、'paths' オプションにエイリアスを追加するつもりでしたか?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "モジュール '{0}' が見つかりません。'moduleResolution' オプションを 'node' に設定することか、'paths' オプションにエイリアスを追加することを意図していましたか?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "モジュール '{0}' またはそれに対応する型宣言が見つかりません。", "Cannot_find_name_0_2304": "名前 '{0}' が見つかりません。", "Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' という名前は見つかりません。'{1}' ですか?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "名前 '{0}' が見つかりません。これを非同期関数に書き込むということですか?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "名前 '{0}' が見つかりません。ターゲット ライブラリを変更する必要がありますか? 'lib' コンパイラ オプションを '{1}' 以降に変更してみてください。", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "名前 '{0}' が見つかりません。ターゲット ライブラリを変更しますか? 'lib' コンパイラ オプションが 'dom' を含むように変更してみてください。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "名前 '{0}' が見つかりません。Bun の型定義をインストールする必要がありますか?'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_2868": "名前 '{0}' が見つかりません。Bun の型定義をインストールする必要がありますか?'npm i --save-dev @types/bun' を試してから、tsconfig 内の型フィールドに 'bun' を追加してください。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "名前 '{0}' が見つかりません。テスト ランナーの型定義をインストールする必要がありますか? `npm i --save-dev @types/jest` または `npm i --save-dev @types/mocha` をお試しください。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "名前 '{0}' が見つかりません。テスト ランナーの型定義をインストールする必要がありますか? `npm i --save-dev @types/jest` または `npm i --save-dev @types/mocha` を試してから、tsconfig の型フィールドに 'jest' または 'mocha' を追加してください。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "名前 '{0}' が見つかりません。jQuery の型定義をインストールする必要がありますか? `npm i --save-dev @types/jquery` をお試しください。", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、配列の非構造化は常に '{0}' を送信します。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、配列展開は常に '{0}' を送信します。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "反復子の 'next' メソッドは型 '{1}' を予期するため、値を反復処理できませんが、for-of は常に '{0}' を送信します。", - "Cannot_move_statements_to_the_selected_file_95183": "選択したファイルにステートメントを移動できません", - "Cannot_move_to_file_selected_file_is_invalid_95179": "ファイルに移動できません。選択したファイルは無効です", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'outFile' が設定されていないため、プロジェクト '{0}' を先頭に追加することはできません", "Cannot_read_file_0_5083": "ファイル '{0}' を読み取れません。", "Cannot_read_file_0_Colon_1_5012": "ファイル '{0}' を読み取れません: {1}。", "Cannot_redeclare_block_scoped_variable_0_2451": "ブロック スコープの変数 '{0}' を再宣言することはできません。", "Cannot_redeclare_exported_variable_0_2323": "エクスポートされた変数 '{0}' を再び宣言できません。", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "catch 句で識別子 '{0}' を再宣言することはできません。", "Cannot_start_a_function_call_in_a_type_annotation_1441": "型の注釈で関数呼び出しを開始することはできません。", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "ファイル '{1}' の読み取りでエラーが発生したため、プロジェクト '{0}' の出力を更新できません", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "'--jsx' フラグが指定されていないと、JSX を使用できません。", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "'{0}' が有効である場合、型または型のみの名前空間で 'export import' を使用することはできません。", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "'--isolatedModules' フラグが指定されている場合、型または型専用の名前空間で 'export import' を使用することはできません。", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "'--module' が 'none' である場合、インポート、エクスポート、モジュール拡張は使用できません。", "Cannot_use_namespace_0_as_a_type_2709": "名前空間 '{0}' を型として使用することはできません。", "Cannot_use_namespace_0_as_a_value_2708": "名前空間 '{0}' を値として使用することはできません。", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "'extends' を 'implements' に変更する", "Change_spelling_to_0_90022": "スペルを '{0}' に変更する", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "宣言されているものの、コンストラクターで設定されていないクラス プロパティを確認します。", - "Check_side_effect_imports_6806": "副作用のインポートを確認してください。", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "'bind'、'call'、'apply' のメソッドの引数が元の関数と一致することを確認します。", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "'{0}' が '{1}' - '{2}' の最長一致のプレフィックスであるかを確認しています。", "Circular_definition_of_import_alias_0_2303": "インポート エイリアス '{0}' の循環定義です。", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "クラスの宣言では '{0}' のオーバーロード リストを実装できません。", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "クラスの宣言で複数の '@augments' または '@extends' タグを含めることはできません。", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "クラス デコレーターは、静的プライベート識別子と共に使用することはできません。試験段階のデコレーターを削除することをご検討ください。", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "親クラスによって定義されたクラス フィールド '{0}' は、super を介して子クラスでアクセスすることはできません。", "Class_name_cannot_be_0_2414": "クラス名を '{0}' にすることはできません。", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "モジュール {0} を使用して ES5 をターゲットとするときに、クラス名を 'オブジェクト' にすることはできません。", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "クラス側の静的な '{0}' が基底クラス側の静的な '{1}' を正しく拡張していません。", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "コマンド ライン オプション", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "構成ファイルか、'tsconfig.json' を含むフォルダーにパスが指定されたプロジェクトをコンパイルします。", "Compiler_Diagnostics_6251": "コンパイラの診断", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "コンパイラ オプション '{0}' に空の文字列を指定することはできません。", "Compiler_option_0_expects_an_argument_6044": "コンパイラ オプション '{0}' には引数が必要です。", "Compiler_option_0_may_not_be_used_with_build_5094": "コンパイラオプション '--{0} ' は '--build ' と共に使用できない場合があります。", "Compiler_option_0_may_only_be_used_with_build_5093": "コンパイラ オプション '--{0} ' は '--build ' とのみ使用できる場合があります。", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "複合プロジェクトで宣言の生成を無効にすることはできません。", "Composite_projects_may_not_disable_incremental_compilation_6379": "複合プロジェクトではインクリメンタル コンパイルを無効にできません。", "Computed_from_the_list_of_input_files_6911": "入力ファイルのリストから計算されます。", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "計算されるプロパティは、数値または文字列リテラル、変数、または --isolatedDeclarations を含むドット付き式である必要があります。", "Computed_property_names_are_not_allowed_in_enums_1164": "計算されたプロパティ名は列挙型では使用できません。", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "クラスまたはオブジェクト リテラル上の計算されたプロパティ名を --isolatedDeclarations と共に推論することはできません。", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "文字列値のメンバーを持つ列挙型では、計算値は許可されません。", "Concatenate_and_emit_output_to_single_file_6001": "出力を連結して 1 つのファイルを生成します。", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "インポートを解決するときに、リゾルバー固有の既定値に加えて設定する条件です。", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "'{0}' の定義が '{1}' および '{2}' で競合しています。競合を解決するには、このライブラリの特定バージョンのインストールをご検討ください。", "Conflicts_are_in_this_file_6201": "このファイル内に競合があります。", "Consider_adding_a_declare_modifier_to_this_class_6506": "このクラスに 'declare' 修飾子を追加することを検討してください。", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "コンストラクト シグネチャの戻り値の型 '{0}' と '{1}' には互換性がありません。", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "'{0}' をマップされたオブジェクト型に変換する", "Convert_all_const_to_let_95102": "すべての 'const' を 'let' に変換する", "Convert_all_constructor_functions_to_classes_95045": "すべてのコンストラクター関数をクラスに変換します", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "値として使用されていないすべてのインポートを型のみのインポートに変換する", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "すべての無効な文字を HTML エンティティ コードに変換する", "Convert_all_re_exported_types_to_type_only_exports_1365": "すべての再エクスポートされた型を、型のみのエクスポートに変換する", "Convert_all_require_to_import_95048": "'require' をすべて 'import' に変換", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "すべてを bigint 数値リテラルに変換する", "Convert_all_to_default_imports_95035": "すべてを既定のインポートに変換します", "Convert_all_type_literals_to_mapped_type_95021": "すべての型リテラルをマップされた型に変換します", - "Convert_all_typedef_to_TypeScript_types_95177": "すべての typedef を TypeScript 型に変換してください。", "Convert_arrow_function_or_function_expression_95122": "アロー関数または関数式を変換する", "Convert_const_to_let_95093": "'const' を 'let' に変換する", "Convert_default_export_to_named_export_95061": "既定のエクスポートを名前付きエクスポートに変換する", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "オプションのチェーン式に変換します", "Convert_to_template_string_95096": "テンプレート文字列に変換する", "Convert_to_type_only_export_1364": "型のみのエクスポートに変換する", - "Convert_typedef_to_TypeScript_type_95176": "typedef を TypeScript 型に変換してください。", + "Convert_to_type_only_import_1373": "型のみのインポートに変換する", "Corrupted_locale_file_0_6051": "ロケール ファイル {0} は破損しています。", "Could_not_convert_to_anonymous_function_95153": "匿名関数に変換できませんでした", "Could_not_convert_to_arrow_function_95151": "アロー関数に変換できませんでした", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "名前 '{0}' が見つかりませんでした。'{1}' ですか?", "Could_not_find_namespace_import_or_named_imports_95132": "名前空間のインポートまたは名前付きインポートが見つかりませんでした", "Could_not_find_property_for_which_to_generate_accessor_95135": "アクセサーを生成するプロパティが見つかりませんでした", - "Could_not_find_variable_to_inline_95185": "インライン化する変数が見つかりませんでした。", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "次の拡張子を持つパス '{0}' を解決できませんでした: {1}。", "Could_not_write_file_0_Colon_1_5033": "ファイル '{0}' を書き込めませんでした: '{1}'。", "Create_source_map_files_for_emitted_JavaScript_files_6694": "生成された JavaScript ファイルのソース マップ ファイルを作成します。", "Create_sourcemaps_for_d_ts_files_6614": "d.ts ファイルのソースマップを作成します。", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "作業ディレクトリの推奨設定を使用して tsconfig.json を作成します。", "DIRECTORY_6038": "ディレクトリ", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "文字クラスでは、10 進数のエスケープ シーケンスと前方参照を使用することはできません。", - "Decimals_with_leading_zeros_are_not_allowed_1489": "先頭が 0 の 10 進数を使用することはできません。", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "この宣言は別のファイル内の宣言を拡張します。この操作はシリアル化できません。", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "このファイルの宣言を生成するには、拡張のためにこのインポートを保持する必要があります。これは --isolatedDeclarations ではサポートされていません。", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "このファイルの宣言の生成では、プライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "このファイルの宣言の生成では、モジュール '{1}' からのプライベート名 '{0}' を使用する必要があります。明示的な型の注釈では、宣言の生成のブロックを解除できます。", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "このパラメーターの宣言を生成するには、その型に未定義の値を暗黙的に追加する必要があります。これは --isolatedDeclarations ではサポートされていません。", "Declaration_expected_1146": "宣言が必要です。", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣言名が組み込みのグローバル識別子 '{0}' と競合しています。", "Declaration_or_statement_expected_1128": "宣言またはステートメントが必要です。", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "静的プロパティ '{0}' を宣言する", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "デコレーター関数の戻り値の型 '{0}' は、型 '{1}' に割り当てられません。", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "デコレーター関数の戻り値の型は '{0}' ですが、\"void\" または \"any\" である必要があります。", - "Decorator_used_before_export_here_1486": "ここで 'export' の前にデコレーターが使用されています。", "Decorators_are_not_valid_here_1206": "デコレーターはここでは無効です。", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "デコレーターを同じ名前の複数の get/set アクセサーに適用することはできません。", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "デコレーターが 'export' の前に使用されている場合は、'export' または 'export default' の後にデコレーターを使用することはできません。", + "Decorators_may_not_be_applied_to_this_parameters_1433": "デコレーターを ' this ' パラメーターに適用することができない場合があります。", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "デコレーターは、プロパティ宣言の名前とすべてのキーワードの前に置く必要があります。", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "既定の catch 句の変数は '任意' ではなく '不明' です。", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "モジュールの既定エクスポートがプライベート名 '{0}' を持っているか、使用しています。", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "既定のエクスポートを --isolatedDeclarations と共に推論することはできません。", "Default_library_1424": "既定のライブラリ", "Default_library_for_target_0_1425": "ターゲット '{0}' の既定のライブラリ", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "次の識別子の定義が、別のファイル内の定義と競合しています: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "生成されたコード内で 'const 列挙型' 宣言の消去を無効にします。", "Disable_error_reporting_for_unreachable_code_6603": "到達できないコードのエラー報告を無効にします。", "Disable_error_reporting_for_unused_labels_6604": "未使用のラベルのエラー報告を無効にします。", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "完全な型チェックを無効にしてください (重大な解析エラーと生成エラーのみが報告されます)。", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "コンパイルされた出力での '__extends' などのカスタム ヘルパー関数の生成を無効にします。", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "既定の lib.d.ts を含むすべてのライブラリ ファイルを含めることを無効にします。", "Disable_loading_referenced_projects_6235": "参照されているプロジェクトの読み込みを無効にします。", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "'import'、'require'、'' を使用して TypeScript がプロジェクトに追加するファイルの数を増やすことを無効にします。", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "同じファイルへの大文字小文字の異なる参照を許可しない。", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "トリプルスラッシュの参照やインポートしたモジュールをコンパイルされたファイルのリストに追加しないでください。", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "ECMAScript の一部ではないランタイム コンストラクトを許可しません。", "Do_not_emit_comments_to_output_6009": "コメントを出力しないでください。", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "'@internal' の注釈を含むコードの宣言を生成しないでください。", "Do_not_emit_outputs_6010": "出力しないでください。", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "到達できないコードに関するエラーを報告しない。", "Do_not_report_errors_on_unused_labels_6074": "未使用のラベルに関するエラーを報告しない。", "Do_not_resolve_the_real_path_of_symlinks_6013": "symlink の実際のパスを解決しません。", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "型のみとしてマークされていないインポートまたはエクスポートを変換または削除せずに、'module' 設定に基づいて出力ファイルの形式で書き込まれていることを確認してください。", "Do_not_truncate_error_messages_6165": "エラー メッセージを切り捨てないでください。", "Duplicate_function_implementation_2393": "関数の実装が重複しています。", "Duplicate_identifier_0_2300": "識別子 '{0}' が重複しています。", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "型 '{0}' のインデックス シグネチャが重複しています。", "Duplicate_label_0_1114": "ラベル '{0}' が重複しています。", "Duplicate_property_0_2718": "プロパティ '{0}' が重複しています。", - "Duplicate_regular_expression_flag_1500": "正規表現フラグが重複しています。", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動的インポートの指定子の型は 'string' である必要がありますが、ここでは型 '{0}' が指定されています。", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "動的インポートは、'--module' フラグが 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'node18'、または 'nodenext' に設定されている場合にのみサポートされます。", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "動的インポートでは、引数として、モジュール指定子とオプションの属性セットのみを受け取ることができます", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "動的インポートは、'--module' オプションが 'esnext'、'node16'、'node18'、'nodenext'、または 'preserve' に設定されている場合にのみ、2 番目の引数をサポートします。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "'module' が 'preserve' に設定されている場合、CommonJS モジュールでは ESM 構文を使用できません。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "'verbatimModuleSyntax' が有効である場合、CommonJS モジュールで ESM 構文は許可されません。", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "'{0}.{1}' の各宣言の値が異なります。'{2}' が必要ですが、'{3}' が指定されました。", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "動的インポートは、'--module' フラグが 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'nodenext' に設定されている場合にのみサポートされます。", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動的インポートでは、引数として、モジュール指定子とオプションのアサーションのみを受け取ることができます", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "'--module' オプションが 'esnext'、'node16'、または 'nodenext' に設定されている場合、動的インポートは 2 番目の引数のみをサポートします。", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "共用体型 '{0}' の各メンバーにはコンストラクト シグネチャがありますが、これらのシグネチャはいずれも相互に互換性がありません。", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "共用体型 '{0}' の各メンバーにはシグネチャがありますが、これらのシグネチャはいずれも相互に互換性がありません。", "Editor_Support_6249": "エディター サポート", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "型チェックされた JavaScript ファイルでのエラー報告を有効にします。", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "ローカル変数が読み取られていない場合にエラー報告を有効にします。", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "'this' に 'any' 型が指定されている場合は、エラー報告を有効にします。", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "従来の実験的なデコレーターの実験的なサポートを有効にしてください。", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "宣言ファイルが存在する場合、拡張子を持つファイルのインポートを有効にしてください。", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "TC39 ステージ 2 ドラフト デコレーター用の実験的なサポートを有効にします。", "Enable_importing_json_files_6689": ".json ファイルのインポートを有効にします。", - "Enable_lib_replacement_6808": "lib 置換を有効にします。", "Enable_project_compilation_6302": "プロジェクトのコンパイルを有効にします", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "厳格な 'bind'、'call'、'apply' メソッドを関数で有効にします。", "Enable_strict_checking_of_function_types_6186": "関数の型の厳密なチェックを有効にします。", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "インポートの大文字と小文字の指定が正しいことを確認します。", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "各ファイルが他のインポートに依存しないで安全にトランスパイルできることを確認します。", "Ensure_use_strict_is_always_emitted_6605": "'use strict' が常に生成されることを確認します。", - "Entering_conditional_exports_6413": "条件付きエクスポートを入力しています。", "Entry_point_for_implicit_type_library_0_1420": "暗黙的なタイプ ライブラリ '{0}' のエントリ ポイント", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "packageId が '{1}' の暗黙的なタイプ ライブラリ '{0}' のエントリ ポイント", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "compilerOptions で指定されたタイプ ライブラリ '{0}' のエントリ ポイント", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "列挙型の宣言は、名前空間または他の列挙型の宣言とのみマージできます。", "Enum_declarations_must_all_be_const_or_non_const_2473": "列挙型宣言は、すべてが定数、またはすべてが非定数でなければなりません。", "Enum_member_expected_1132": "列挙型メンバーが必要です。", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "'isolatedModules' が有効である場合、非リテラル数値メンバーの後に続く列挙型メンバーには初期化子が必要です。", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "列挙型メンバー初期化子は、--isolatedDeclarations を含む外部シンボルへの参照なしで計算可能である必要があります。", "Enum_member_must_have_initializer_1061": "列挙型メンバーには初期化子が必要です。", "Enum_name_cannot_be_0_2431": "列挙型の名前を '{0}' にすることはできません。", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "列挙型 '{0}' に、リテラルではない初期化子を持つメンバーがあります。", "Errors_Files_6041": "エラーの発生したファイル", - "Escape_sequence_0_is_not_allowed_1488": "エスケープ シーケンス '{0}' は許可されていません。", "Examples_Colon_0_6026": "例: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "型 '{0}' と '{1}' の比較が複雑すぎます。", "Excessive_stack_depth_comparing_types_0_and_1_2321": "型 '{0}' と '{1}' を比較するスタックが深すぎます。", - "Exiting_conditional_exports_6416": "条件付きエクスポートを終了しています。", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "{0}-{1} 型の引数が必要です。'@extends' タグで指定してください。", "Expected_0_arguments_but_got_1_2554": "{0} 個の引数が必要ですが、{1} 個指定されました。", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} 引数が必要ですが、{1} が指定されました。'Promise' の型引数に 'void' を含めましたか?", "Expected_0_type_arguments_but_got_1_2558": "{0} 個の型引数が必要ですが、{1} 個が指定されました。", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "{0} 型の引数が必要です。'@extends' タグで指定してください。", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 個の引数が必要ですが、0 個しかありませんでした。'new Promise()' では、引数なしで呼び出すことができる 'resolve' を生成するための JSDoc ヒントが必要です。", - "Expected_a_Unicode_property_name_1523": "Unicode プロパティ名が必要です。", - "Expected_a_Unicode_property_name_or_value_1527": "Unicode プロパティ名または値が必要です。", - "Expected_a_Unicode_property_value_1525": "Unicode プロパティ値が必要です。", - "Expected_a_capturing_group_name_1514": "キャプチャ グループ名が必要です。", - "Expected_a_class_set_operand_1520": "クラス セット オペランドが必要でした。", "Expected_at_least_0_arguments_but_got_1_2555": "最低でも {0} 個の引数が必要ですが、{1} 個指定されました。", "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}' の対応する JSX 終了タグが必要です。", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX フラグメントの対応する終了タグが必要です。", "Expected_for_property_initializer_1442": "プロパティ初期化子には '=' を期待しています。", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "'package.json' の '{0}' フィールドの型は '{1}' であるべきですが、'{2}' を取得しました。", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "デコレーターの実験的なサポートは将来のリリースで変更になる可能性がある機能です。'tsconfig' または 'jsconfig' に 'experimentalDecorators' オプションを設定してこの警告を削除します。", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "明示的に指定されたモジュール解決の種類 '{0}'。", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' オプションが 'es2016' 以降に設定されている場合を除き、'bigint' 値に対して累乗を実行することはできません。", "Export_0_from_module_1_90059": "'{0}' をモジュール '{1}' からエクスポートする", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "エクスポートされた変数 '{0}' がプライベート名 '{1}' を持っているか、使用しています。", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "エクスポートとエクスポートの代入はモジュールの拡張では許可されていません。", "Expression_expected_1109": "式が必要です。", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "式をデコレーターとして使用するには、かっこで囲む必要があります。", "Expression_or_comma_expected_1137": "式またはコンマが必要です。", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "式では大きすぎて表すことができないタプル型を生成します。", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "式は、複雑すぎて表現できない共用体型を生成します。", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "式は、コンパイラが基底クラスの参照をキャプチャするために使用する '_super' に解決されます。", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "式は、コンパイラが 'new.target' メタプロパティの参照をキャプチャするために使用する変数宣言 '_newTarget' に解決されます。", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "式は、コンパイラが 'this' の参照をキャプチャするために使用する変数宣言 '_this' に解決されます。", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "式の型を --isolatedDeclarations と共に推論することはできません。", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "extends 句に --isolatedDeclarations を含む式を含めることはできません。", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "推論された型 '{0}' の extends 句がプライベート名 '{1}' を持っているか、使用しています。", - "Extract_base_class_to_variable_90064": "基底クラスを変数に抽出する", - "Extract_binding_expressions_to_variable_90066": "バインド式を変数に抽出してください", "Extract_constant_95006": "定数の抽出", - "Extract_default_export_to_variable_90065": "変数への既定のエクスポートを抽出する", "Extract_function_95005": "関数の抽出", "Extract_to_0_in_1_95004": "{1} 内の {0} に抽出する", "Extract_to_0_in_1_scope_95008": "{1} スコープ内の {0} に抽出する", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "インターフェイスに抽出する", "Extract_to_type_alias_95078": "型のエイリアスに抽出する", "Extract_to_typedef_95079": "typedef に抽出する", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "変数に抽出し、'{0} as typeof {0}' で置き換えます", "Extract_type_95077": "Extract 型", "FILE_6035": "ファイル", "FILE_OR_DIRECTORY_6040": "ファイルまたはディレクトリ", - "Failed_to_find_peerDependency_0_6283": "peerDependency '{0}' が見つかりませんでした。", - "Failed_to_resolve_under_condition_0_6415": "条件 '{0}' で解決できませんでした。", + "Failed_to_parse_file_0_Colon_1_5014": "ファイル '{0}' を解析できませんでした。{1}。", "Fallthrough_case_in_switch_7029": "switch に case のフォールスルーがあります。", "File_0_does_not_exist_6096": "ファイル '{0}' が存在しません。", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "以前にキャッシュされた検索によるとファイル '{0}' は存在しません。", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "ファイル '{0}' が存在します。名前解決の結果として使用します。", "File_0_exists_according_to_earlier_cached_lookups_6239": "以前にキャッシュされた参照によるとファイル ' {0} ' は、存在します。", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "ファイル '{0}' が存在します。名前解決の結果として使用します。", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "ファイル '{0}' はサポートされていない拡張子を含んでいます。サポートされている拡張子は {1} のみです。", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "ファイル '{0}' にはサポートされていない拡張機能があるため、スキップしています。", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "ファイル '{0}' は JavaScript ファイルです。'allowJs' オプションを有効にするつもりでしたか?", "File_0_is_not_a_module_2306": "ファイル '{0}' はモジュールではありません。", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "ファイル '{0}' がプロジェクト '{1}' のファイル リストに含まれていません。プロジェクトではすべてのファイルをリストするか、'include' パターンを使用する必要があります。", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "ファイル '{0}' が 'rootDir' '{1}' の下にありません。'rootDir' にすべてにソース ファイルが含まれている必要があります。", "File_0_not_found_6053": "ファイル '{0}' が見つかりません。", "File_Management_6245": "ファイルの管理", - "File_appears_to_be_binary_1490": "ファイルはバイナリのようです。", "File_change_detected_Starting_incremental_compilation_6032": "ファイルの変更が検出されました。インクリメンタル コンパイルを開始しています...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "'{0}' にはフィールド \"type\" がないため、ファイルは CommonJS モジュールです", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "'{0}' にフィールド \"type\" があり、値が \"module\" ではないため、ファイルは CommonJS モジュールです。", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "ファイルはプロジェクト参照ソース '{0}' の出力です", "File_is_source_from_referenced_project_specified_here_1416": "ファイルはこちらで指定された参照先プロジェクトのソースです。", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "ファイル名 '{0}' は、既に含まれているファイル名 '{1}' と大文字と小文字の指定だけが異なります。", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "ファイル名 '{0}' の拡張子は '{1}' です。代わりに '{2}' を検索しています。", "File_name_0_has_a_1_extension_stripping_it_6132": "ファイル名 '{0}' に '{1}' 拡張子が使われています - 削除しています。", "File_redirects_to_file_0_1429": "ファイルはファイル '{0}' にリダイレクトされます", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "ファイルの指定で再帰ディレクトリのワイルドカード ('**') の後に親ディレクトリ ('..') を指定することはできません: '{0}'。", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "'await' が不足している可能性があるすべての式を修正する", "Fix_all_implicit_this_errors_95107": "すべての暗黙的な 'this' エラーを修正する", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "非同期関数の無効な戻り値の型をすべて修正します", - "Fix_all_with_type_only_imports_95182": "型のみのインポートを使用してすべてを修正する", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'For await' ループは、クラスの静的ブロック内では使用できません。", "Found_0_errors_6217": "{0} 件のエラーが見つかりました。", "Found_0_errors_Watching_for_file_changes_6194": "{0} 件のエラーが見つかりました。ファイルの変更をモニタリングしています。", "Found_0_errors_in_1_files_6261": "{1} ファイルに {0} 件のエラーが見つかりました。", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "同じファイル内に {0} 件のエラーが見つかりました。{1} から開始します", "Found_1_error_6216": "1 件のエラーが見つかりました。", "Found_1_error_Watching_for_file_changes_6193": "1 件のエラーが見つかりました。ファイルの変更をモニタリングしています。", - "Found_1_error_in_0_6259": "{0} で 1 件のエラーが見つかりました", + "Found_1_error_in_1_6259": "{1} で 1 件のエラーが見つかりました", "Found_package_json_at_0_6099": "'{0}' で 'package.json' が見つかりました。", - "Found_peerDependency_0_with_1_version_6282": "'{1}' バージョンの peerDependency '{0}' が見つかりました。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。クラス定義は自動的に厳格モードになります。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。モジュールは自動的に厳格モードになります。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。クラス定義は自動的に厳格モードになります。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "'ES3' または 'ES5' を対象としている場合、関数宣言は厳格モードのブロック内では許可されていません。モジュールは自動的に厳格モードになります。", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "戻り値の型の注釈がない関数式の戻り値の型は、暗黙的に '{0}' になります。", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "関数の実装がないか、宣言の直後に指定されていません。", "Function_implementation_name_must_be_0_2389": "関数の実装名は '{0}' でなければなりません。", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "関数は、戻り値の型の注釈がなく、いずれかの return 式で直接的にまたは間接的に参照されているため、戻り値の型は暗黙的に 'any' になります。", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "関数に終了の return ステートメントがないため、戻り値の型には 'undefined' が含まれません。", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "関数には、--isolatedDeclarations を含む明示的な戻り値の型の注釈が必要です。", "Function_not_implemented_95159": "関数が実装されていません。", "Function_overload_must_be_static_2387": "関数のオーバーロードは静的でなければなりません。", "Function_overload_must_not_be_static_2388": "関数のオーバーロードは静的にはできせん。", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "イベント トレースと型のリストを生成します。", "Generates_corresponding_d_ts_file_6002": "対応する '.d.ts' ファイルを生成します。", "Generates_corresponding_map_file_6043": "対応する '.map' ファイルを生成します。", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "ジェネレーターは暗黙的に yield 型 '{0}' を持っています。戻り値の型の注釈を指定することを検討してください。", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "ジェネレーターは値を生成しないため、暗黙的に yield 型 '{0}' になります。戻り値の型の注釈を指定することを検討してください。", "Generators_are_not_allowed_in_an_ambient_context_1221": "ジェネレーターは環境コンテキストでは使用できません。", "Generic_type_0_requires_1_type_argument_s_2314": "ジェネリック型 '{0}' には {1} 個の型引数が必要です。", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "ジェネリック型 '{0}' には、{1} 個から {2} 個までの型引数が必要です。", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "識別子が必要です。", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "識別子が必要です。'__esModule' は、ECMAScript モジュールを変換するときのエクスポート済みマーカーとして予約されています。", "Identifier_or_string_literal_expected_1478": "識別子または文字列リテラルが必要です。", - "Identifier_string_literal_or_number_literal_expected_1496": "識別子、文字列リテラル、または数値リテラルが必要です。", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' パッケージが実際にこのモジュールを公開する場合は、pull request を送信して 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' を修正することを検討してください", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' パッケージが実際にこのモジュールを公開する場合は、'declare module '{1}';' を含む新しい宣言 (d.ts) ファイルを追加してみてください。", "Ignore_this_error_message_90019": "このエラー メッセージを無視する", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "インターフェイス '{0}' を実装する", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "エクスポートされたクラス '{0}' の Implements 句がプライベート名 '{1}' を持っているか、使用しています。", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "'symbol ' から 'string' への暗黙の変換は、実行時に失敗します。この式を 'String(...)' でラップすることを検討してください。", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "インポート '{0}' は、このファイルで使用されているグローバル値と競合するため、'isolatedModules' が有効な場合は、型のみのインポートで宣言する必要があります。", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "インポート '{0}' は、グローバル値と競合するため、'isolatedModules' が有効な場合は、型のみのインポートで宣言する必要があります。", "Import_0_from_1_90013": "\"{1}\" から `{0}` をインポートします。", "Import_assertion_values_must_be_string_literal_expressions_2837": "インポート アサーションの値は、文字列リテラル式である必要があります。", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "インポート アサーションは、commonjs 'require' 呼び出しにコンパイルするステートメントでは許可されません。", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "インポート アサーションは、'--module' オプションが 'esnext'、'node18'、'nodenext' または 'preserve' に設定されている場合にのみサポートされます。", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "インポート アサーションは、commonjs 'require' 呼び出しに変換するステートメントでは許可されません。", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "インポート アサーションは、'--module' オプションが 'esnext' または 'nodenext' に設定されている場合にのみサポートされます。", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "インポート アサーションは、型のみのインポートまたはエクスポートでは使用できません。", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "インポート アサーションはインポート属性に置き換えられました。'assert' ではなく 'with' を使用してください。", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "ECMAScript モジュールを対象にする場合は、インポート代入を使用できません。代わりに 'import * as ns from \"mod\"'、'import {a} from \"mod\"'、'import d from \"mod\"' などのモジュール書式の使用をご検討ください。", - "Import_attribute_values_must_be_string_literal_expressions_2858": "インポート 属性の値は、文字列リテラル式である必要があります。", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "インポート属性は、commonjs 'require' 呼び出しにコンパイルするステートメントでは許可されません。", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "インポート属性は、'--module' オプションが 'esnext'、'node18'、'nodenext' または 'preserve' に設定されている場合にのみサポートされます。", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "インポート属性は、型のみのインポートまたはエクスポートでは使用できません。", "Import_declaration_0_is_using_private_name_1_4000": "インポート宣言 '{0}' がプライベート名 '{1}' を使用しています。", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "インポート宣言が、'{0}' のローカル宣言と競合しています。", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "名前空間内のインポート宣言は、モジュールを参照できません。", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "compilerOptions で指定されているように 'importHelpers' をインポートするため、packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "'jsx' および 'jsxs' ファクトリ関数をインポートするため、packageId が '{2}' のファイル '{1}' から {0} を介してインポートされました", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "ECMAScript モジュールに JSON ファイルをインポートするには、'module' が '{0}' に設定されている場合、'type: \"json\"' インポート属性が必要です。", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "インポートはモジュールの拡張では許可されていません。外側の外部モジュールに移動することを検討してください。", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "アンビエント列挙型の宣言では、メンバー初期化子は定数式である必要があります。", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "複数の宣言がある列挙型で、最初の列挙要素の初期化子を省略できる宣言は 1 つのみです。", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "出力された JavaScript 内にソースマップ ファイルを含めます。", "Includes_imports_of_types_referenced_by_0_90054": "'{0}' によって参照される型のインポートを含む", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "--watch を含めると、ファイルの変更について現在のプロジェクトの監視が開始されます。設定が完了すると、次の操作を使用してウォッチ モードを構成できます。", - "Incomplete_quantifier_Digit_expected_1505": "不完全な量指定子です。数値が必要です。", "Index_signature_for_type_0_is_missing_in_type_1_2329": "型 '{0}' is missing in type '{1}' のインデックス シグネチャがありません。", "Index_signature_in_type_0_only_permits_reading_2542": "型 '{0}' のインデックス シグネチャは、読み取りのみを許可します。", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "マージされた宣言 '{0}' の個々の宣言はすべてエクスポートされるか、すべてローカルであるかのどちらかである必要があります。", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "使用状況からパラメーターの型を推論する", "Infer_this_type_of_0_from_usage_95080": "使い方から '{0}' の 'this' 型を推論する", "Infer_type_of_0_from_usage_95011": "使用状況から '{0}' の型を推論する", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "クラス式からの推論は、--isolatedDeclarations ではサポートされていません。", "Initialize_property_0_in_the_constructor_90020": "コンストラクターのプロパティ '{0}' を初期化する", "Initialize_static_property_0_90021": "静的プロパティ '{0}' を初期化する", "Initializer_for_property_0_2811": "プロパティ ' {0} ' の初期化子。", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "インスタンス メンバー変数 '{0}' の初期化子はコンストラクターで宣言された識別子 '{1}' を参照できません。", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "初期化子にこのバインド要素の値が提示されていません。またバインド要素に既定値がありません。", "Initializers_are_not_allowed_in_ambient_contexts_1039": "初期化子は環境コンテキストでは使用できません。", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "TypeScript プロジェクトを初期化して、tsconfig.json ファイルを作成します。", - "Inline_variable_95184": "インライン変数", "Insert_command_line_options_and_files_from_a_file_6030": "コマンド ライン オプションとファイルをファイルから挿入します。", "Install_0_95014": "'{0}' のインストール", "Install_all_missing_types_packages_95033": "不足しているすべての型のパッケージをインストールします", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "拡張のモジュール名が無効です。モジュール '{0}' が見つかりません。", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "新しい式の省略可能なチェーンが無効です。'{0}()' の呼び出しを意図していましたか?", "Invalid_reference_directive_syntax_1084": "無効な 'reference' ディレクティブ構文です。", - "Invalid_syntax_in_decorator_1498": "デコレーターの構文が無効です。", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}' の使用が無効です。クラスの静的ブロック内では使用できません。", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}' の使用方法が無効です。モジュールは自動的に厳格モードになります。", "Invalid_use_of_0_in_strict_mode_1100": "厳格モードでは '{0}' の使用は無効です。", - "Invalid_value_for_ignoreDeprecations_5103": "'--ignoreDeprecations' の値が無効です。", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory' の値が無効です。'{0}' が有効な識別子または修飾名ではありません。", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory' の値が無効です。'{0}' は有効な識別子でも修飾名でもありません。", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace' の値が無効です。'{0}' は有効な識別子ではありません。", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "その要素の型 '{0}' は有効な JSX 要素ではありません。", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "そのインスタンスの型 '{0}' は、有効な JSX 要素ではありません。", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "その戻り値の型 '{0}' は、有効な JSX 要素ではありません。", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "その型 '{0}' は有効な JSX 要素ではありません。", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}' が 'extends {2}' 句と一致しません。", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc '@{0}' はクラスにアタッチされていません。", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' は、シグネチャの最後のパラメーターにのみ使用できます。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' タグの名前は '{0}' ですが、その名前のパラメーターはありません。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' タグに名前 '{0}' が指定されていますが、その名前のパラメーターはありません。配列型があった場合は、'arguments' と一致したはずです。", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef は TypeScript 型に変換できます。", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' タグには、型の注釈を指定するか、後に '@property' タグや '@member' タグを付ける必要があります。", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedef は TypeScript 型に変換できます。", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc の種類は、ドキュメント コメント内でのみ使用できます。", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc の種類は TypeScript の種類に移行される可能性があります。", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX 属性は、空ではない '式' にのみ割り当てる必要があります。", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "含める型定義の元のフォルダーの一覧。", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "結合されたコンテンツがランタイムでのプロジェクトの構成を表すルート フォルダーの一覧。", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "ルート ディレクトリ '{1}' から '{0}' を読み込んでいます。候補の場所は '{2}' です。", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "'node_modules' フォルダーからモジュール '{0}' を読み込んでいます。対象のファイルの種類は {1} です。", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "ファイル / フォルダーとしてモジュールを読み込んでいます。候補のモジュールの場所は '{0}'、対象のファイルの種類は {1} です。", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "'node_modules' フォルダーからモジュール '{0}' を読み込んでいます。対象のファイルの種類は '{1}' です。", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "ファイル / フォルダーとしてモジュールを読み込んでいます。候補のモジュールの場所は '{0}'、対象のファイルの種類は '{1}' です。", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "ロケールは または - の形式で指定する必要があります (例: '{0}'、'{1}')。", "Log_paths_used_during_the_moduleResolution_process_6706": "'moduleResolution' の処理中に使用されたログ パス。", "Longest_matching_prefix_for_0_is_1_6108": "'{0}' の一致する最長プレフィックスは '{1}' です。", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof により、文字列、数字、記号の代わりに、文字列のみが返されるようにします。レガシ オプションです。", "Make_super_call_the_first_statement_in_the_constructor_90002": "'super()' 呼び出しをコンストラクター内の最初のステートメントにする", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "マップされたオブジェクト型のテンプレートの型は暗黙的に 'any' になります。", - "Mark_array_literal_as_const_90070": "配列リテラルを const としてマークする", "Matched_0_condition_1_6403": "'{0}' 条件 '{1}' と一致しました。", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "既定で一致するインクルード パターン '**/*'", "Matched_by_include_pattern_0_in_1_1407": "'{1}' のインクルード パターン '{0}' に一致しています", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "メソッド '{0}' は abstract に指定されているため、実装を含めることができません。", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "エクスポートされたインターフェイスのメソッド '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "エクスポートされたインターフェイスのメソッド '{0}' がプライベート名 '{1}' を持っているか、使用しています。", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "メソッドには、--isolatedDeclarations を含む明示的な戻り値の型の注釈が必要です。", "Method_not_implemented_95158": "メソッドが実装されていません。", "Modifiers_cannot_appear_here_1184": "ここで修飾子を使用することはできません。", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "モジュール '{0}' は、'{1}' フラグを使用して既定でのみインポートできます", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "モジュール '{0}' にはエクスポートされたメンバー '{1}' がありません。'import {1} from {0}' を使用するつもりでしたか?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "モジュール '{0}' は同じ名前のローカル宣言によって非表示になっています。", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "モジュール '{0}' には 'export =' が使用されているため、'export *' は併用できません。", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "このファイルが変更されなかったため、モジュール '{0}' は '{1}' で宣言されたアンビエント モジュールとして解決されました。", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "モジュール '{0}' は、ファイル '{1}' のローカルで宣言されたアンビエント モジュールとして解決されました。", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "モジュール '{0}' は '{1}' に解決されましたが、'--allowArbitraryExtensions' が設定されていません。", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "モジュール '{0}' は '{1}' に解決されましたが、'--jsx' が設定されていません。", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "モジュール '{0}' は '{1}' に解決されましたが、'--resolveJsonModule' が使用されていません。", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "モジュール宣言名で使用できるのは、' または \"引用符で囲まれた文字列のみです。", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "'rootDirs' を使用したモジュール解決が失敗しました。", "Modules_6244": "モジュール", "Move_labeled_tuple_element_modifiers_to_labels_95117": "ラベル付きのタプル要素の修飾子をラベルに移動する", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "既定のエクスポートで式を変数に移動し、それに型注釈を追加します。", "Move_to_a_new_file_95049": "新しいファイルへ移動します", - "Move_to_file_95178": "ファイルに移動", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "複数の連続した数値区切り記号を指定することはできません。", "Multiple_constructor_implementations_are_not_allowed_2392": "コンストラクターを複数実装することはできません。", "NEWLINE_6061": "改行", "Name_is_not_valid_95136": "名前が無効です", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "名前付きキャプチャ グループは、'ES2018' 以降をターゲットにする場合にのみ使用できます。", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "同じ名前の名前の名前付きキャプチャ グループは、相互に排他的である必要があります。", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "'module' が '{0}' に設定されている場合、JSON ファイルから ECMAScript モジュールへの名前付きインポートは許可されません。", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "'{1}' 型および '{2}' 型の名前付きプロパティ '{0}' が一致しません。", "Namespace_0_has_no_exported_member_1_2694": "名前空間 '{0}' にエクスポートされたメンバー '{1}' がありません。", "Namespace_must_be_given_a_name_1437": "名前空間に名前を指定する必要があります。", "Namespace_name_cannot_be_0_2819": "名前空間名を '{0}' にすることはできません。", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "'{0}' が有効になっている場合、グローバル スクリプト ファイルでは名前空間を使用できません。このファイルがグローバル スクリプトを意図していない場合は、'moduleDetection' を 'force' に設定するか、空の 'export {}' ステートメントを追加してください。", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "デコレーターも修飾子も 'this' パラメーターに適用できません。", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "指定した数の型引数を持つ基底コンストラクターは存在しません。", "No_constituent_of_type_0_is_callable_2755": "型 '{0}' の構成要素は呼び出し可能ではありません。", "No_constituent_of_type_0_is_constructable_2759": "型 '{0}' の構成要素はコンストラクト可能ではありません。", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "この呼び出しに一致するオーバーロードはありません。", "No_type_could_be_extracted_from_this_type_node_95134": "この型ノードからは型を抽出できませんでした", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "短縮形のプロパティ '{0}' のスコープには値がありません。値を宣言するか、または初期化子を指定してください。", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象クラス '{0}' は、クラス '{2}' からの継承抽象メンバー '{1}' を実装しません。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "非抽象クラス '{0}' には、'{1}' の次のメンバーの実装がありません: {2}。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "非抽象クラス '{0}' には、'{1}' の次のメンバーの実装がありません: {2} およびその他 {3}。", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象クラス '{0}' はクラス '{2}' からの継承抽象メンバー '{1}' を実装しません。", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "非抽象クラスの式はクラス '{1}' からの継承抽象メンバー '{0}' を実装しません。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "非抽象クラス式に、'{0}' の次のメンバーの実装がありません: {1}。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "非抽象クラス式に、'{0}' の次のメンバーの実装がありません: {1} およびその他 {2}。", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "non-null アサーションは、TypeScript ファイルでのみ使用できます。", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "'baseUrl' が設定されていない場合、非相対パスは許可されません。先頭に './' が使用されていることをご確認ください。", "Non_simple_parameter_declared_here_1348": "ここでは複雑なパラメーターが宣言されています。", "Not_all_code_paths_return_a_value_7030": "一部のコード パスは値を返しません。", "Not_all_constituents_of_type_0_are_callable_2756": "型 '{0}' のすべての構成要素が呼び出し可能なわけではありません。", "Not_all_constituents_of_type_0_are_constructable_2760": "型 '{0}' のすべての構成要素がコンストラクト可能なわけではありません。", - "Numbers_out_of_order_in_quantifier_1506": "量指定子の数値が順不同です。", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "絶対値が 2^53 以上の数値リテラルは大きすぎるため、整数として正確に表現できません。", "Numeric_separators_are_not_allowed_here_6188": "数値の区切り記号は、ここでは使用できません。", "Object_is_of_type_unknown_2571": "オブジェクト型は 'unknown' です。", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "オブジェクト リテラルは既知のプロパティのみ指定できます。'{0}' は型 '{1}' に存在しません。", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "オブジェクト リテラルで指定できるのは既知のプロパティのみですが、'{0}' は型 '{1}' に存在しません。書こうとしたのは '{2}' ですか?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "オブジェクト リテラルのプロパティ '{0}' の型は暗黙的に '{1}' になります。", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "短縮形プロパティを含むオブジェクトは、--isolatedDeclarations では推論できません。", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "スプレッド割り当てを含むオブジェクトを --isolatedDeclarations と共に推論することはできません。", "Octal_digit_expected_1178": "8 進の数字が必要です。", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "文字クラスでは、8 進数のエスケープ シーケンスと前方参照を使用することはできません。これがエスケープ シーケンスとして意図されていた場合は、代わりに構文 '{0}' を使用してください。", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "8 進数のエスケープ シーケンスは使用できません。構文 '{0}' を使用してください。", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "8 進数リテラルは使用できません。構文 '{0}' を使用してください。", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "'{0}.{1}' の 1 つの値は文字列 '{2}' で、もう一方の値は不明な数値であると見なされます。", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "8 進数のリテラル型には、ES2015 構文を使用する必要があります。構文 '{0}' を使用してください。", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "8 進数のリテラルは、列挙型メンバーの初期化子では許可されていません。構文 '{0}' を使用してください。", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "厳格モードでは Octal リテラルは使用できません。", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "ECMAScript 5 以降を対象にする場合、8 進数のリテラルは使用できません。構文 '{0}' を使用してください。", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' ステートメントで使用できる変数宣言は 1 つのみです。", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' ステートメントで使用できる変数宣言は 1 つのみです。", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "'new' キーワードを指定して呼び出せるのは void 関数のみです。", "Only_ambient_modules_can_use_quoted_names_1035": "引用符付きの名前を使用できるのはアンビエント モジュールのみです。", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "--{0} と共にサポートされるのは 'amd' モジュールと 'system' モジュールのみです。", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "--isolatedDeclarations を使用して推論できるのは const 配列のみです。", "Only_emit_d_ts_declaration_files_6014": "'.d.ts' 宣言ファイルのみを生成します。", + "Only_named_exports_may_use_export_type_1383": "名前付きエクスポートでのみ、'export type' を使用できます。", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "計算されたメンバーを使用できるのは数値列挙型のみですが、この式には '{0}' 型があります。網羅性チェックが不要な場合は、代わりにオブジェクト リテラルを使用することをご検討ください。", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "出力の d.ts ファイルのみで、JavaScript ファイルは対象ではありません。", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "'super' キーワードを使用してアクセスできるのは、基底クラスのパブリック メソッドと保護されたメソッドのみです。", "Operator_0_cannot_be_applied_to_type_1_2736": "演算子 '{0}' は型 '{1}' に適用できません。", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "演算子 '{0}' を型 '{1}' および '{2}' に適用することはできません。", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "演算子は文字クラス内で混在してはなりません。入れ子になったクラスでラップしてください。", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "編集時に複数プロジェクト参照のチェックからプロジェクトをオプトアウトします。", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "オプション '{0}={1}' が削除されました。構成から削除してください。", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "オプション '{0}={1}' は非推奨であり、TypeScript {2} で機能しなくなります。compilerOption '\"ignoreDeprecations\": \"{3}\"' を指定して、このエラーを無音にします。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "オプション '{0}' は、'tsconfig.json' ファイルで指定することか、コマンド ラインで 'false' または 'null' に設定することしかできません。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "オプション '{0}' は、'tsconfig.json' ファイルで指定することか、コマンド ラインで 'null' に設定することしかできません。", - "Option_0_can_only_be_specified_on_command_line_6266": "オプション '{0}' はコマンド ラインでのみ指定できます。", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "オプション '{0} を使用できるのは、オプション '--inlineSourceMap' またはオプション '--sourceMap' のいずれかを指定した場合のみです。", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "オプション '{0}' は、'moduleResolution' が 'node16'、'nodenext'、または 'bundler' に設定されている場合にのみ使用できます。", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "オプション '{0}' は、'module' が 'preserve' または 'es2015' 以降に設定されている場合にのみ使用できます。", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "オプション 'jsx' が '{1}' の場合、オプション '{0}' を指定することはできません。", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "オプション 'target' が 'ES3' の場合、オプション '{0}' を指定することはできません。", "Option_0_cannot_be_specified_with_option_1_5053": "オプション '{0}' をオプション '{1}' とともに指定することはできません。", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "オプション '{1}' を指定せずに、オプション '{0}' を指定することはできません。", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "オプション '{1}' またはオプション '{2}' を指定せずに、オプション '{0}' を指定することはできません。", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "オプション '{0}' が削除されました。構成から削除してください。", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "オプション '{0}' は非推奨であり、TypeScript {1} で機能しなくなります。compilerOption '\"ignoreDeprecations\": \"{2}\"' を指定して、このエラーを無音にします。", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "オプション '{0}' は冗長であり、オプション '{1}' とともに指定することができません。", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "オプション 'allowImportingTsExtensions' は、'noEmit' または 'emitDeclarationOnly' が設定されている場合にのみ使用できます。", "Option_build_must_be_the_first_command_line_argument_6369": "オプション '--build' は最初のコマンド ライン引数である必要があります。", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "オプション '--incremental' は、tsconfig を使用して指定して単一ファイルに出力するか、オプション '--tsBuildInfoFile' が指定された場合にのみ指定することができます。", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "オプション 'isolatedModules' は、オプション '--module' が指定されているか、オプション 'target' が 'ES2015' 以上であるかのいずれかの場合でのみ使用できます。", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "オプション 'module' が '{1}' に設定されている場合は、オプション 'moduleResolution' を '{0}' (または未指定のままに) に設定する必要があります。", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "オプション 'moduleResolution' が '{1}' に設定されている場合は、オプション 'module' を '{0}' に設定する必要があります。", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "'{0}' が有効になっている場合、オプション 'preserveConstEnums' を無効にすることはできません。", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules' が有効になっているときは、オプション 'preserveConstEnums' を無効にできません。", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "オプションの \"preserveValueImports\" は \"module\" が \"es2015\" か、またはそれ以降に設定されている時のみ、使用することができます。", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "オプション 'project' をコマンド ライン上でソース ファイルと一緒に指定することはできません。", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "'moduleResolution' が 'classic' に設定されている場合、オプション '--resolveJsonModule' を指定できません。", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "'module' が 'none'、'system'、または 'umd' に設定されている場合、オプション '--resolveJsonModule' を指定することはできません。", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "'module' が 'UMD'、'AMD'、または 'System' に設定されている場合、オプション 'verbatimModuleSyntax' は使用できません。", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "オプション '--resolveJsonModule' は、モジュール コードの生成が 'commonjs'、'amd'、'es2015'、'esNext' である場合にのみ指定できます。", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' モジュールの解決方法を使用せずにオプション '--resolveJsonModule' を指定することはできません。", "Options_0_and_1_cannot_be_combined_6370": "オプション '{0}' と '{1}' を組み合わせることはできません。", "Options_Colon_6027": "オプション:", "Output_Formatting_6256": "出力データ形式", "Output_compiler_performance_information_after_building_6615": "ビルド後にコンパイラのパフォーマンス情報を出力します。", "Output_directory_for_generated_declaration_files_6166": "生成された宣言ファイルの出力ディレクトリ。", + "Output_file_0_from_project_1_does_not_exist_6309": "プロジェクト '{1}' からの出力ファイル '{0}' がありません", "Output_file_0_has_not_been_built_from_source_file_1_6305": "出力ファイル '{0}' はソース ファイル '{1}' からビルドされていません。", "Output_from_referenced_project_0_included_because_1_specified_1411": "'{1}' が指定されたため、参照先プロジェクト '{0}' から出力がインクルードされました", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "'--module' が 'none' として指定されたため、参照先プロジェクト '{0}' から出力がインクルードされました", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "パラメーター宣言が必要です。", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "パラメーターに名前はありますが、型がありません。'{0}: {1}' を意図していましたか?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "パラメーター修飾子は TypeScript ファイルでのみ使用できます。", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "パラメーターには、--isolatedDeclarations を含む明示的な型注釈が必要です。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "エクスポートされたクラスのパブリック セッター '{0}' のパラメーター型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "エクスポートされたクラスのパブリック セッター '{0}' のパラメーター型が、プライベート名 '{1}' を持っているか、使用しています。", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "エクスポートされたクラスのパブリック静的セッター '{0}' のパラメーター型が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "コンパイル後に生成されたファイルの名前を出力します。", "Print_this_message_6017": "このメッセージを表示します。", "Private_accessor_was_defined_without_a_getter_2806": "ゲッターなしでプライベート アクセサーが定義されました。", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "プライベート フィールド '{0}' は、エンクロージング クラスで宣言する必要があります。", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "変数宣言では、private 識別子は許可されていません。", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "private 識別子は、クラス本体の外では許可されていません。", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "プライベート識別子はクラス本体でのみ許可され、クラス メンバー宣言、プロパティ アクセス、または 'in' 式の左側でのみ使用できます", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "private 識別子は ECMAScript 2015 以上をターゲットにする場合にのみ使用できます。", "Private_identifiers_cannot_be_used_as_parameters_18009": "private 識別子はパラメーターとして使用できません。", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "private または protected メンバー '{0}' には、型パラメーターではアクセスできません。", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "プロジェクト '{0}' はその依存関係 '{1}' にエラーがあるためビルドできません", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "依存関係 '{1}' がビルドされていないため、プロジェクト '{0}' はビルドできません", "Project_0_is_being_forcibly_rebuilt_6388": "プロジェクト '{0}' が強制的にリビルドされています", - "Project_0_is_out_of_date_because_1_6420": "{1}のため、プロジェクト '{0}' は古くなっています。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "buildinfo ファイル '{1}' は、ファイル '{2}' がコンパイルのルート ファイルでしたが、それ以上はないことを示しているため、プロジェクト '{0}' は最新ではありません。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "buildinfo ファイル '{1}' はプログラムがエラーを報告する必要があることを示しているため、プロジェクト '{0}' は最新ではありません。", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "buildinfo ファイルの '{1}' により、一部の変更が生成されなかったことが示されているため、プロジェクトの '{0}' は最新ではありません", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "buildinfo ファイル '{1}' は compilerOptions に変更があることを示しているため、プロジェクト '{0}' は最新ではありません", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "プロジェクト '{0}' はその依存関係 '{1}' が古いため最新の状態ではありません", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "プロジェクト '{0}' は出力 '{1}' が入力 '{2}' より古いため最新の状態ではありません", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "プロジェクト '{0}' は出力ファイル '{1}' が存在しないため最新の状態ではありません", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "プロジェクト '{0}' の出力が現在のバージョン '{2}' と異なるバージョン '{1}' で生成されているため、このプロジェクトは最新の状態ではありません", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "依存関係 '{1}' の出力が変更されているため、プロジェクト '{0}' は最新の状態ではありません", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "ファイル '{1}' の読み取り中にエラーが発生したため、プロジェクト '{0}' は最新ではありません", "Project_0_is_up_to_date_6361": "プロジェクト '{0}' は最新の状態です", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "プロジェクト '{0}' は最新の入力 '{1}' が出力 '{2}' より古いため最新の状態です", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "プロパティ '{0}' が初期化前に使用されています。", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "プロパティ '{0}' は型 '{1}' に存在していない可能性があります。'{2}' ですか?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX のスプレッド属性のプロパティ '{0}' をターゲット プロパティに割り当てることはできません。", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "エクスポートされた匿名クラス型のプロパティ '{0}' は、プライベートでないか保護されていない可能性があります。", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "エクスポートされたクラスの式のプロパティ '{0}' が private または protected でない可能性があります。", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "エクスポートされたインターフェイスのプロパティ '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "エクスポートされたインターフェイスのプロパティ '{0}' が、プライベート名 '{1}' を持っているか、使用しています。", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "型 '{1}' のプロパティ '{0}' は'{2}' インデックス型 '{3}' に割り当てることはできません。", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "プロパティ '{0}' は、'{1}' の基底プロパティを上書きします。これが意図的である場合は初期化子を追加してください。そうでなければ、'declare' 修飾子を追加するか、冗長な宣言を削除してください。", "Property_assignment_expected_1136": "プロパティの代入が必要です。", "Property_destructuring_pattern_expected_1180": "プロパティの非構造化パターンが必要です。", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "プロパティには、--isolatedDeclarations を含む明示的な型注釈が必要です。", "Property_or_signature_expected_1131": "プロパティまたはシグネチャが必要です。", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "プロパティ値には、文字列リテラル、数値リテラル、'true'、'false'、'null'、オブジェクト リテラルまたは配列リテラルのみ使用できます。", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "'for-of'、spread、destructuring で 'ES5' を対象とする場合は、iterables を完全にサポートします。", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "'for-of' の iterable、spread、'ES5' や 'ES3' をターゲットとする場合は destructuring に対してフル サポートを提供します。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "エクスポートされたクラスのパブリック メソッド '{0}' が外部モジュール {2} の名前 '{1}' を持っているか使用していますが、名前を指定することはできません。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "エクスポートされたクラスのパブリック メソッド '{0}' が、プライベート モジュール '{2}' の名前 '{1}' を持っているか、使用しています。", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "エクスポートされたクラスのパブリック メソッド '{0}' がプライベート名 '{1}' を持っているか、使用しています。", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "関数パラメーターが読み取られていないときに、エラーを発生させます。", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "暗黙的な 'any' 型を含む式と宣言に関するエラーを発生させます。", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "暗黙的な 'any' 型を持つ 'this' 式でエラーが発生します。", - "Range_out_of_order_in_character_class_1517": "文字クラスの順序が正しくありません。", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "'{0}' が有効な場合に型を再エクスポートするには、'export type' を使用する必要があります。", - "React_components_cannot_include_JSX_namespace_names_2639": "React コンポーネントに JSX 名前空間名を含めることはできません", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "'--IsolatedModules' フラグが指定されている場合に型を再エクスポートするには、 'export type' を使用する必要があります。", "Redirect_output_structure_to_the_directory_6006": "ディレクトリへ出力構造をリダイレクトします。", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "TypeScript によって自動的に読み込まれるプロジェクトの数を減らします。", "Referenced_project_0_may_not_disable_emit_6310": "参照されたプロジェクト '{0}' は、生成を無効にできません。", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "参照されているプロジェクト '{0}' には、設定 \"composite\": true が必要です。", "Referenced_via_0_from_file_1_1400": "ファイル '{1}' から '{0}' を介して参照されています", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' である場合、ECMAScript インポートに明示的なファイル拡張子が必要です。インポート パスに拡張機能を追加することを検討してください。", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' である場合、ECMAScript インポートに明示的なファイル拡張子が必要です。'{0}' を意図していましたか?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' の場合、EcmaScript インポートに明示的なファイル拡張子が必要です。インポート パスに拡張機能を追加することを検討してください。", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "相対インポート パスでは、'--moduleResolution' が 'node16' または 'nodenext' の場合、EcmaScript インポートに明示的なファイル拡張子が必要です。'{0}' ということですか?", "Remove_a_list_of_directories_from_the_watch_process_6628": "ウォッチ プロセスからディレクトリの一覧を削除します。", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "ウォッチ モードの処理からファイルの一覧を削除します。", "Remove_all_unnecessary_override_modifiers_95163": "不要な 'override' 修飾子をすべて削除", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": ".js ファイルのエラーを報告します。", "Report_errors_on_unused_locals_6134": "使用されていないローカルに関するエラーを報告します。", "Report_errors_on_unused_parameters_6135": "使用されていないパラメーターに関するエラーを報告します。", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "他のツールが宣言ファイルを簡単に生成できるように、エクスポートに十分な注釈を必要とします。", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "要素アクセスを使用するには、インデックス シグネチャからの宣言されていないプロパティが必要です。", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必須の型パラメーターの後に、オプションの型パラメーターを続けることはできません。", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "モジュール '{0}' の解決が場所 '{1}' のキャッシュに見つかりました。", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "種類参照指令 '{0}' の解決策は、場所 '{1}' のキャッシュには見つかりませんでした。", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "非相対名の解決に失敗しました。npm ライブラリで構成の更新が必要かどうかを確認するために、最新のノード解決機能を無効にしています。", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "非相対名の解決に失敗しました。'--moduleResolution bundler' を使用して、プロジェクトで構成の更新が必要かどうかを確認しています。", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'keyof' を文字列値のプロパティ名のみに解決します (数字または記号なし)。", - "Resolved_under_condition_0_6414": "条件 '{0}' で解決されました。", "Resolving_in_0_mode_with_conditions_1_6402": "条件 {1} を使用して {0} モードで解決しています。", "Resolving_module_0_from_1_6086": "======== '{1}' からモジュール '{0}' を解決しています。========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "ベース URL '{1}' - '{2}' に相対するモジュール名 '{0}' を解決しています。", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイル '{1}'、ルート ディレクトリは未設定。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイルは未設定、ルート ディレクトリ '{1}'。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 型参照ディレクティブ '{0}' を解決しています。それを含むファイルは未設定、ルート ディレクトリは未設定。========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "カスタム typeRoots を指定するプログラムの型参照ディレクティブを解決しています。'node_modules' フォルダーでの参照をスキップします。", "Resolving_with_primary_search_path_0_6121": "プライマリ検索パス '{0}' で解決しています。", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Rest パラメーター '{0}' の型は暗黙的に 'any[]' になります。", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "rest パラメーター '{0}' の型は暗黙的に 'any[]' 型ですが、使い方からより良い型を推論する場合があります。", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "古いプログラムの '{1}' からタイプ リファレンス ディレクティブ '{0}' の解決策を再利用すると、パッケージ ID '{3}' の '{2}' に正常に解決されました。", "Rewrite_all_as_indexed_access_types_95034": "すべてをインデックス付きアクセス型として書き換えます", "Rewrite_as_the_indexed_access_type_0_90026": "インデックス付きのアクセスの種類 '{0}' として書き換える", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "相対インポート パスの '.ts'、'.tsx'、'.mts'、および '.cts' ファイル拡張子を、出力ファイルの JavaScript と同等の拡張子に書き換えます。", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "?? の右オペランド左オペランドが NULL 値になることがないため、到達できません。", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "ルート ディレクトリを決定できません。プライマリ検索パスをスキップします。", "Root_file_specified_for_compilation_1427": "コンパイル用に指定されたルート ファイル", "STRATEGY_6039": "戦略", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "プロジェクトのインクリメンタル コンパイルを可能にするには、.tsbuildinfo ファイルを保存します。", "Saw_non_matching_condition_0_6405": "一致しない条件 '{0}' がありました。", "Scoped_package_detected_looking_in_0_6182": "'{0}' 内を検索して、スコープ パッケージが検出されました", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "すべての先祖 node_modules ディレクトリでフォールバック拡張子を検索しています: {0}。", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "すべての先祖 node_modules ディレクトリで優先する拡張子を検索しています: {0}。", "Selection_is_not_a_valid_statement_or_statements_95155": "選択内容は有効なステートメントではありません", "Selection_is_not_a_valid_type_node_95133": "選択は有効な型ノードではありません", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "生成された JavaScript の JavaScript 言語バージョンを設定し、互換性のあるライブラリ宣言を含めます。", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "詳細な診断情報を表示します。", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "ビルドされる (または '--clean' で指定される場合は、削除される) 内容を表示する", "Signature_0_must_be_a_type_predicate_1224": "シグネチャ '{0}' は型の述語である必要があります。", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "署名宣言は TypeScript ファイルでのみ使用できます。", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "アップストリーム プロジェクトのエラー時にダウンストリーム プロジェクトのビルドをスキップします。", "Skip_type_checking_all_d_ts_files_6693": "すべての .d.ts ファイルについて型チェックをスキップします。", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "TypeScript に含まれている .d.ts ファイルの型チェックをスキップします。", "Skip_type_checking_of_declaration_files_6012": "宣言ファイルの型チェックをスキップします。", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "絶対 URI のように見えるモジュール '{0}' をスキップしています。ターゲット ファイルの種類: {1}。", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "プロジェクト '{0}' のビルドは、その依存関係 '{1}' にエラーがあるため、スキップしています", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "依存関係 '{1}' がビルドされていないため、プロジェクト '{0}' のビルドをスキップしています", "Source_from_referenced_project_0_included_because_1_specified_1414": "'{1}' が指定されたため、参照先プロジェクト '{0}' からソースがインクルードされました", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "'--module' が 'none' として指定されたため、参照先プロジェクト '{0}' からソースがインクルードされました", "Source_has_0_element_s_but_target_allows_only_1_2619": "ソースには {0} 個の要素がありますが、ターゲットで使用できるのは {1} 個のみです。", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "TypeScript ウォッチ モードの動作方法を指定します。", "Specify_library_files_to_be_included_in_the_compilation_6079": "コンパイルに含めるライブラリ ファイルを指定します。", "Specify_module_code_generation_6016": "モジュール コードの生成を指定します。", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "モジュールの解決方法を指定します: 'node' (Node.js) または 'classic' (TypeScript pre-1.6)。", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "'jsx: react-jsx*' を使用するときに JSX ファクトリ関数のインポートに使用するモジュール指定子を指定します。", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "'./node_modules/@types' のように動作する複数のフォルダーを指定します。", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "設定の継承元となる基本構成ファイルへのパスまたはノード モジュール参照を 1 つまたは複数指定します。", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "静的メンバーはクラスの型パラメーターを参照できません。", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "静的プロパティ '{0}' がコンストラクター関数 '{1}' のビルトイン プロパティ 'Function.{0}' と競合しています。", "String_literal_expected_1141": "文字列リテラルが必要です。", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "'--module' フラグが 'es2015' または 'es2020' に設定されている場合、文字列リテラルのインポートおよびエクスポート名はサポートされません。", "String_literal_with_double_quotes_expected_1327": "二重引用符を含む文字列リテラルが必要です。", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "色とコンテキストを使用してエラーとメッセージにスタイルを適用します (試験的)。", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "マイナス記号がある場合は、サブパターン フラグが存在する必要があります。", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "後続のプロパティ宣言は同じ型でなければなりません。プロパティ '{0}' の型は '{1}' である必要がありますが、ここでは型が '{2}' になっています。", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "後続の変数宣言は同じ型でなければなりません。変数 '{0}' の型は '{1}' である必要がありますが、'{2}' になっています。", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "パターン '{1}' の代入 '{0}' の型が正しくありません。必要な型は 'string' ですが、'{2}' を取得しました。", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "タグ付きテンプレート式は、省略可能なチェーンでは許可されていません。", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "ターゲットには {0} 個の要素のみを使用できますが、ソースにはそれより多くを指定できます。", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "ターゲットには {0} 個の要素が必要ですが、ソースに指定する数はそれより少なくても構いません。", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "ターゲット署名の引数が少なすぎます。{0} 以上が必要ですが、{1} でした。", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' 修飾子は TypeScript ファイルでのみ使用できます。", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "'{0}' 演算子を 'symbol' 型に適用することはできません。", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "'{0}' 演算子はブール型には使用できません。代わりに '{1}' を使用してください。", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "非同期反復子の '{0}' プロパティはメソッドである必要があります。", "The_0_property_of_an_iterator_must_be_a_method_2767": "反復子の '{0}' プロパティはメソッドである必要があります。", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' 型を割り当てることができるその他の型はごく少数です。代わりの候補には 'any' 型があります。", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Unicode (u) フラグと Unicode Sets (v) フラグを同時に設定することはできません。", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "'arguments' オブジェクトは、ES5 のアロー関数で参照することはできません。標準の関数式の使用を考慮してください。", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "'arguments' オブジェクトは、ES5 の非同期関数またはメソッドで参照することはできません。標準の関数またはメソッドを使用することを検討してください。", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "'arguments' オブジェクトは、ES3 および ES5 のアロー関数で参照することはできません。標準の関数式の使用を考慮してください。", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "'arguments' オブジェクトは、ES3 および ES5 の非同期関数またはメソッドで参照することはできません。標準の関数またはメソッドを使用することを検討してください。", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' ステートメントの本文を空のステートメントにすることはできません。", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "呼び出しはこの実装に対して成功した可能性がありますが、オーバーロードの実装シグネチャは外部からは参照できません。", "The_character_set_of_the_input_files_6163": "入力ファイルの文字セット。", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "グローバル型 'JSX.{0}' には複数のプロパティが含まれていない可能性があります。", "The_implementation_signature_is_declared_here_2750": "実装シグネチャはここで宣言されています。", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "'import.meta' メタプロパティは、CommonJS 出力にビルドするファイルでは許可されていません。", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' メタプロパティは、'--module' オプションが 'es2020'、'es2022'、'esnext'、'system'、'node16'、'node18'、または 'nodenext' である場合にのみ許可されます。", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' メタプロパティは、'--module' オプションが 'es2020'、'es2022'、'esnext'、'system'、'node16'、または 'nodenext' の場合にのみ許可されます。", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' の推論された型には、'{1}' への参照なしで名前を付けることはできません。これは、移植性がない可能性があります。型の注釈が必要です。", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' の推論された型は、循環構造を持つ型を参照しています。この型のシリアル化は自明ではありません。型の注釈が必要です。", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' の推定型はアクセス不可能な '{1}' 型を参照します。型の注釈が必要です。", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "このノードの推定型は、コンパイラがシリアル化する最大長を超えています。明示的な型の注釈が必要です。", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "'using' 宣言の初期化子は、'[Symbol.dispose]()' メソッドを持つオブジェクトであるか、'null' または 'undefined' である必要があります。", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "'await using' 宣言の初期化子は、'[Symbol.asyncDispose]()' または '[Symbol.dispose]5D;()' メソッドを持つオブジェクトであるか、'null' または 'undefined' である必要があります。", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "交差 '{0}' は 'なし' に縮小されました。プロパティ '{1}' が複数の構成要素に存在し、一部ではプライベートであるためです。", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "交差 '{0}' は 'なし' に縮小されました。一部の構成要素でプロパティ '{1}' の型が競合しているためです。", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'組み込み' キーワードは、コンパイラが提供する組み込み型を宣言する場合にのみ使用できます。", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "前回のオーバーロードにより、次のエラーが発生しました。", "The_last_overload_is_declared_here_2771": "前回のオーバーロードはここで宣言されています。", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' ステートメントの左側を非構造化パターンにすることはできません。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "'for...in' ステートメントの左側を 'using' 宣言にすることはできません。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "'for...in' ステートメントの左側を 'await using' 宣言にすることはできません。", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' ステートメントの左側で型の注釈を使用することはできません。", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' ステートメントの左辺には、省略可能なプロパティ アクセスを指定できません。", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' ステートメントの左側は、変数またはプロパティ アクセスである必要があります。", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術演算の左辺には、'any' 型、'number' 型、'bigint' 型、または列挙型を指定する必要があります。", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "代入式の左辺には、省略可能なプロパティ アクセスを指定できません。", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "代入式の左側は、変数またはプロパティ アクセスである必要があります。", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "'instanceof' 式の左側は、右側の '[Symbol.hasInstance]' メソッドの最初の引数に割り当て可能である必要があります。", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 式の左辺には、'any' 型、オブジェクト型、または型パラメーターを指定してください。", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "ユーザーにメッセージを表示するときに使用するロケール (例: 'en-us')", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules の下を検索して JavaScript ファイルを読み込む依存関係の最大深度です。", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "プロジェクト ルートはあいまいですが、ファイル '{1}' のエクスポート マップ エントリ '{0}' を解決するために必要です。あいまいさを解消するには、'rootDir' コンパイラ オプションを指定します。", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "プロジェクト ルートはあいまいですが、ファイル '{1}' のインポート マップ エントリ '{0}' を解決するために必要です。あいまいさを解消するには、'rootDir' コンパイラ オプションを指定します。", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "同じスペルの別の private 識別子によってシャドウされているため、このクラス内の型 '{1}' ではプロパティ '{0}' にアクセスできません。", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' アクセサーの戻り値の型は、その 'set' アクセサーの型に割り当て可能である必要があります", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "パラメーター デコレーター関数の戻り値の型は、'void' か 'any' である必要があります。", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "プロパティ デコレーター関数の戻り値の型は、'void' か 'any' である必要があります。", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "非同期関数の戻り値の型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "非同期関数または非同期メソッドの戻り値の型は、グローバル Promise 型である必要があります。", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "非同期関数または非同期メソッドの戻り値の型は、グローバル Promise 型である必要があります。'Promise<{0}>' と書き込むつもりでしたか?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' ステートメントの右側には、'any' 型、オブジェクト型、型パラメーターを指定する必要がありますが、ここでは型 '{0}' が指定されています。", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算術演算の右辺には、'any' 型、'number' 型、'bigint' 型、または列挙型を指定する必要があります。", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "'instanceof' 式の右側には、型 'any'、クラス、関数、または 'Function' インターフェイス型に割り当て可能なその他の型、または 'Symbol.hasInstance' メソッドを持つオブジェクト型のいずれかを指定する必要があります。", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "'instanceof' 式の右側をインスタンス化式にすることはできません。", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "instanceof' 式の右辺には、'any' 型、または 'Function' インターフェイス型に割り当てることができる型を指定してください。", "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' ファイルのルート値はオブジェクトである必要があります。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "このランタイムは {1} 引数を指定してデコレーターを呼び出しますが、デコレーターには {0} が必要です。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "このランタイムは {1} 引数を指定してデコレーターを呼び出しますが、デコレーターには少なくとも {0} が必要です。", "The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' のシャドウ宣言はここで定義されています", "The_signature_0_of_1_is_deprecated_6387": "'{1}' のシグネチャ '{0}' は非推奨です。", "The_specified_path_does_not_exist_Colon_0_5058": "指定されたパスがありません: '{0}'。", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "名前付きエクスポートで、export ステートメントに 'export type' が使用されている場合、'type' 修飾子は使用できません。", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "名前付きインポートで、import ステートメントに 'import type' が使用されている場合、'type' 修飾子は使用できません。", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "関数の宣言の型は、関数のシグネチャと一致する必要があります。", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "この式の型には、不安定な機能である 'resolution-mode' アサーションなしで名前を付けることはできません。ナイトリー TypeScript を使用して、このエラーをサイレントにします。'npm install -D typescript@next' を使用して更新してみてください。", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "このノードの種類は、そのプロパティ '{0}' をシリアル化できないため、シリアル化できません。", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "非同期反復子の '{0}()' メソッドによって返される型は、'value' プロパティを持つ型に対する promise である必要があります。", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "反復子の '{0}()' メソッドによって返される型には 'value' プロパティが必要です。", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' ステートメントの変数宣言に初期化子を指定することはできません。", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' ステートメントの変数宣言に初期化子を指定することはできません。", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' ステートメントはサポートされていません。'with' ブロック内のすべてのシンボルの型は 'any' になります。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "'{0}' に型がありますが、現在の 'moduleResolution' 設定ではこの結果を解決できませんでした。'node16'、'nodenext'、または 'bundler' への更新を検討してください。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "'{0}' に型がありますが、package.json \"exports\" を尊重しながらこの結果を解決できませんでした。'{1}' ライブラリの package.json または入力を更新する必要がある場合があります。", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "この正規表現には '{0}' という名前のキャプチャ グループはありません。", - "There_is_nothing_available_for_repetition_1507": "繰り返しに使用できるものがありません。", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "この JSX タグでは '{0}' がスコープ内に存在する必要がありますが、見つかりませんでした。", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "この JSX タグにはモジュール パス '{0}' が存在する必要がありますが、見つかりませんでした。適切なパッケージの種類がインストールされていることを確認してください。", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "この JSX タグの '{0}' prop は型 '{1}' の単一の子を予期しますが、複数の子が指定されました。", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "この JSX タグの '{0}' prop は複数の子を必要とする型 '{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_only_0_capturing_groups_in_this_r_1533": "この前方参照は、存在しないグループを参照しています。この正規表現には {0} キャプチャ グループのみがあります。", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "このバイナリ式が NULL 値になることはありません。かっこを忘れていませんか?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "この文字を正規表現内でエスケープすることはできません。", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}' 型と '{1}' 型が重複していないため、この比較は意図したとおりに表示されない可能性があります。", "This_condition_will_always_return_0_2845": "この条件は常に '{0}' を返します。", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript が値ではなく参照でオブジェクトを比較するため、この条件は常に '{0}' を返します。", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "'{0}' が常に定義されているため、この条件は常に true を返します。", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "この関数は常に定義されているため、この条件は常に true を返します。代わりにこれを呼び出すことを意図していましたか?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "このコンストラクター関数はクラス宣言に変換される可能性があります。", - "This_expression_is_always_nullish_2871": "この式は常に null です。", "This_expression_is_not_callable_2349": "この式は呼び出し可能ではありません。", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "この式は 'get' アクセサーであるため、呼び出すことができません。'()' なしで使用しますか?", "This_expression_is_not_constructable_2351": "この式はコンストラクト可能ではありません。", "This_file_already_has_a_default_export_95130": "このファイルには、既に既定のエクスポートがあります", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "このインポート パスは別のプロジェクトに解決され、プロジェクトの出力ファイル間の相対パスが入力ファイル間の相対パスと同じではないため、書き換えは安全ではありません。", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "このインポートでは、'{0}' 拡張子を使用して入力 TypeScript ファイルに解決されますが、生成中に書き換えられるのは相対パスではないためです。", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "このインポートは値として使用されることはありません。'importsNotUsedAsValues' が 'error' に設定されているため、'import type' を使用する必要があります。", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "これは拡張される宣言です。拡張する側の宣言を同じファイルに移動することを検討してください。", - "This_kind_of_expression_is_always_falsy_2873": "この種の式は常に false です。", - "This_kind_of_expression_is_always_truthy_2872": "この種の式は常に true です。", "This_may_be_converted_to_an_async_function_80006": "これは非同期関数に変換できます。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "このメンバーは、基底クラス '{0}' で宣言されていないため、このメンバーに '@override' タグを含む JSDoc コメントを指定することはできません。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "このメンバーは、基底クラス '{0}' で宣言されていないため、このメンバーに 'override' タグを含む JSDoc コメントを指定することはできません。'{1}' ということですか?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "このメンバーを含んでいるクラス '{0}' が別のクラスを拡張していないため、このメンバーに '@override' タグを含む JSDoc コメントを指定することはできません。", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "このメンバーの名前は動的であるため、'@override' タグが含まれた JSDoc コメントを保持することはできません。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "このメンバーは、基底クラス '{0}' で宣言されていないため、'override' 修飾子を指定することはできません。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "このメンバーは、基底クラス '{0}' で宣言されていないため、'override' 修飾子を指定することはできません。'{1}' ということですか?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "このメンバーを含んでいるクラス '{0}' が別のクラスを拡張していないため、このメンバーに 'override' 修飾子を指定することはできません。", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "名前が動的であるため、このメンバーに 'override' 修飾子を指定することはできません。", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "このメンバーには、基底クラス '{0}' のメンバーをオーバーライドするため、'@override' タグを含む JSDoc コメントが必要です。", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "このメンバーは、基底クラス '{0}' のメンバーをオーバーライドするため、'override' 修飾子を指定する必要があります。", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "このメンバーは、基底クラス '{0}' で宣言された抽象メソッドをオーバーライドするため、'override' 修飾子を指定する必要があります。", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "このモジュールは、'{0}' フラグをオンにして既定のエクスポートを参照することにより、ECMAScript のインポートまたはエクスポートのみを使用して参照できます。", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "このモジュールは、'export =' を使用して宣言されており、'{0}' フラグを使用する場合は既定のインポートでのみ使用できます。", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "この操作は簡略化できます。このシフトは '{0} {1} {2}' と同じです。", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "このオーバーロードは、戻り値の型の注釈がないため、型 '{0}' を暗黙的に返します。", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "このオーバーロード シグネチャには、実装シグネチャとの互換性はありません。", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "このパラメーターは、'use strict' ディレクティブと共に使用することはできません。", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "このパラメーター プロパティには、基底クラス '{0}' のメンバーをオーバーライドするため、'@override' タグを含む JSDoc コメントが必要です。", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "このメンバーは、基底クラス '{0}' のメンバーをオーバーライドするため、パラメーター プロパティに 'override' 修飾子がある必要があります。", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "この正規表現フラグをサブパターン内で切り替えることはできません。", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "この正規表現フラグは、'{0}' 以降をターゲットにする場合にのみ使用できます。", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "この相対インポート パスは、ファイル名のようですが、実際には \"{0}\" に解決されるため、書き換えは安全ではありません。", "This_spread_always_overwrites_this_property_2785": "このスプレッドは、常にこのプロパティを上書きします。", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "'erasableSyntaxOnly' が有効な場合、この構文は使用できません。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "この構文は、拡張子が .mts または .cts のファイルで予約されています。末尾のコンマまたは明示的な制約を追加します。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "この構文は、拡張子が .mts または .cts のファイルで予約されています。代わりに `as` 式を使用してください。", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "この構文にはインポートされたヘルパーが必要ですが、モジュール '{0}' が見つかりません。", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "このファイルを ECMAScript モジュールに変換するには、ファイル拡張子を '{0}' に変更するか、フィールド '\"type\": \"module\"' を '{1}' に追加します。", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "このファイルを ECMAScript モジュールに変換するには、ファイル拡張子を '{0}' に変更するか、'{ \"type\": \"module\" }' を含むローカルの package.json ファイルを作成します。", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "このファイルを ECMAScript モジュールに変換するには、'{ \"type\": \"module\" }' を含むローカルの package.json ファイルを作成します。", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "トップレベルの 'await' 式は、'module' オプションが 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext'、または 'preserve' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ許可されています。", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "トップレベルの 'await using' ステートメントは、'module' オプションが 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext'、または 'preserve' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ許可されています。", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "トップレベルの 'await' 式は、'module' オプションが 'es2022'、'esnext'、'system'、'node16' または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts ファイルのトップレベルの宣言は、'declare' または 'export' 修飾子で始める必要があります。", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "トップレベルの 'for await' ループは、'module' オプションが 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext'、または 'preserve' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ許可されています。", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "トップレベルの 'for await' ループは、'module' オプションが 'es2022'、'esnext'、'system'、'node16'、または 'nodenext' に設定されていて、'target' オプションが 'es2017' 以上に設定されている場合にのみ使用できます。", "Trailing_comma_not_allowed_1009": "末尾にコンマは使用できません。", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "個々のモジュールとして各ファイルをトランスパイルします ('ts.transpileModule' に類似)。", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "存在する場合は `npm i --save-dev @types/{1}` を試すか、`declare module '{0}';` を含む新しい宣言 (.d.ts) ファイルを追加します", "Trying_other_entries_in_rootDirs_6110": "'rootDirs' の他のエントリを試しています。", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "代入 '{0}' を試しています。候補のモジュールの場所: '{1}'。", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "タプル メンバーのすべての名前が指定されているか、すべての名前が指定されていないかのどちらかでなければなりません。", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "長さ '{1}' のタプル型 '{0}' にインデックス '{2}' の要素がありません。", "Tuple_type_arguments_circularly_reference_themselves_4110": "タプル型の引数は、それ自体を循環参照します。", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "'{0}' の種類は、'--downlevelIteration' フラグを使用している場合、または 'es2015' 以降の '--target' を使用している場合にのみ反復処理できます。", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "型 '{0}' には型 '{1}' と一致するインデックス シグネチャがありません。", "Type_0_has_no_properties_in_common_with_type_1_2559": "型 '{0}' には型 '{1}' と共通のプロパティがありません。", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "型 '{0}' には、型引数リストを適用できるシグネチャがありません。", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "型 '{0}' は汎用であり、読み取り専用にしかインデックスを作成できません。", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "型 '{0}' には 型 '{1}' からの次のプロパティがありません: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "型 '{0}' には 型 '{1}' からの次のプロパティがありません: {2}、{3} など。", "Type_0_is_not_a_constructor_function_type_2507": "型 '{0}' はコンストラクター関数型ではありません。", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "型 '{0}' は Promise と互換性のあるコンストラクター値を参照しないため、ES5 において有効な非同期関数の戻り値の型ではありません。", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "型 '{0}' は Promise と互換性のあるコンストラクター値を参照しないため、ES5/ES3 において有効な非同期関数の戻り値の型ではありません。", "Type_0_is_not_an_array_type_2461": "型 '{0}' は配列型ではありません。", "Type_0_is_not_an_array_type_or_a_string_type_2495": "型 '{0}' は配列型でも文字列型でもありません。", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "型 '{0}' は、配列型でも文字列型でもないか、反復子を返す '[Symbol.iterator]()' メソッドを持っていません。", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "型 '{0}' を型 '{1}' に割り当てることはできません。'{2}' でよろしいですか?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "型 '{0}' は型 '{1}' に割り当てられません。同じ名前で 2 つの異なる型が存在しますが、これは関連していません。", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "型 '{0}' は、差異注釈によって暗黙的に示されているように、型 '{1}' に割り当てできません。", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "型 '{0}' は、計算された列挙型メンバーの要求どおりに型 '{1}' に割り当てることはできません。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットのプロパティの型に 'undefined' を追加することを検討してください。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "型 '{0}' を、'exactOptionalPropertyTypes: true' が指定されている型 '{1}' に割り当てることはできません。ターゲットの型に 'undefined' を追加することを検討してください。", "Type_0_is_not_comparable_to_type_1_2678": "型 '{0}' は型 '{1}' と比較できません。", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "型引数が必要です。", "Type_argument_list_cannot_be_empty_1099": "型引数リストを空にすることはできません。", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "型引数は TypeScript ファイルでのみ使用できます。", + "Type_arguments_cannot_be_used_here_1342": "ここで型引数は使用できません。", "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}' の型引数はそれ自体を循環参照します。", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "型アサーション式は TypeScript ファイルでのみ使用できます。", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "ソースの位置 {0} にある型は、ターゲットの位置 {1} にある型と互換性がありません。", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "ソースの位置 {0} から {1} にある型は、ターゲットの位置 {2} にある型と互換性がありません。", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "プライベート名 '{0}' を含む型は、--isolatedDeclarations と一緒には使用できません。", "Type_declaration_files_to_be_included_in_compilation_6124": "コンパイルに含む型宣言ファイル。", "Type_expected_1110": "型が必要です。", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "型インポート アサーションには、キー `resolution-mode` が 1 つだけ必要です。値は `import` または `require` です。", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "型インポート属性には、キー 'resolution-mode' が 1 つだけ必要です。値は 'import' または 'require' です。", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "CommonJS モジュールからの ECMAScript モジュールの型のインポートには、'resolution-mode' 属性が必要です。", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "型のインスタンス化は非常に深く、無限である可能性があります。", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "型は、それ自身の 'then' メソッドのフルフィルメント コールバック内で直接または間接的に参照されます。", "Type_library_referenced_via_0_from_file_1_1402": "ファイル '{1}' から '{0}' を介して参照されたタイプ ライブラリ", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*' オペランドの反復要素の型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "マップされた型 '{1}' で、プロパティ '{0}' の型によってそれ自体が循環参照されています。", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "非同期ジェネレーター内の 'yield' オペランドの型は、有効な Promise であるか、呼び出し可能な 'then' メンバーを含んでいないかのどちらかであることが必要です。", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "CommonJS モジュールからの ECMAScript モジュールの型のみのインポートには、'resolution-mode' 属性が必要です。", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "型はこのインポートで生成されます。名前空間スタイルのインポートは、呼び出すこともコンストラクトすることもできず、実行時にエラーが発生します。代わりに、ここで既定のインポートまたはインポートの require を使用することを検討してください。", "Type_parameter_0_has_a_circular_constraint_2313": "型パラメーター '{0}' に循環制約があります。", "Type_parameter_0_has_a_circular_default_2716": "型パラメーター '{0}' に循環既定値があります。", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "式として呼び出される場合、メソッド デコレーターのシグネチャを解決できません。", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "式として呼び出される場合、パラメーター デコレーターのシグネチャを解決できません。", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "式として呼び出される場合、プロパティ デコレーターのシグネチャを解決できません。", - "Undetermined_character_escape_1513": "文字エスケープが不明です。", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "予期しない '{0}' です。バックスラッシュを使用してエスケープするつもりでしたか?", "Unexpected_end_of_text_1126": "予期しないテキストの末尾です。", "Unexpected_keyword_or_identifier_1434": "予期しないキーワードまたは識別子です。", "Unexpected_token_1012": "予期しないトークンです。", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "予期しないトークンです。`{'}'}` または `}` を意図していましたか?", "Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。", - "Unicode_escape_sequence_cannot_appear_here_17021": "Unicode エスケープ シーケンスはここでは使用できません。", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Unicode エスケープ シーケンスは、Unicode (u) フラグまたは Unicode Sets (v) フラグが設定されている場合にのみ使用できます。", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Unicode プロパティ値式は、Unicode (u) フラグまたは Unicode Sets (v) フラグが設定されている場合にのみ使用できます。", - "Unknown_Unicode_property_name_1524": "Unicode プロパティ名が不明です。", - "Unknown_Unicode_property_name_or_value_1529": "Unicode プロパティ名または値が不明です。", - "Unknown_Unicode_property_value_1526": "Unicode プロパティ値が不明です。", "Unknown_build_option_0_5072": "'{0}' は不明なビルド オプションです。", "Unknown_build_option_0_Did_you_mean_1_5077": "'{0}' は不明なビルド オプションです。'{1}' を意図していましたか?", "Unknown_compiler_option_0_5023": "コンパイラ オプション '{0}' が不明です。", "Unknown_compiler_option_0_Did_you_mean_1_5025": "'{0}' は不明なコンパイラ オプションです。'{1}' を意図していましたか?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "不明なキーワードまたは識別子。'{0}' を意味していましたか?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "不明なオプション 'excludes' です。'exclude' ですか?", - "Unknown_regular_expression_flag_1499": "正規表現フラグが不明です。", "Unknown_type_acquisition_option_0_17010": "不明な型の取得オプション '{0}'。", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "'{0}' は不明な型の取得オプションです。'{1}' を意図していましたか?", "Unknown_watch_option_0_5078": "'{0}' は不明な監視オプションです。", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "未使用のラベル。", "Unused_ts_expect_error_directive_2578": "'@ts-expect-error' ディレクティブが使用されていません。", "Update_import_from_0_90058": "\"{0}\" からのインポートの更新", - "Update_modifiers_of_0_90061": "'{0}' の修飾子を更新してください", + "Updating_output_of_project_0_6373": "プロジェクト '{0}' の出力を更新しています...", "Updating_output_timestamps_of_project_0_6359": "プロジェクト '{0}' の出力タイムスタンプを更新しています...", "Updating_unchanged_output_timestamps_of_project_0_6371": "プロジェクト '{0}' の変更されていない出力タイムスタンプを更新しています...", "Use_0_95174": "\"{0}\" を使用します。", - "Use_0_instead_5106": "代わりに '{0}' を使用してください。", "Use_Number_isNaN_in_all_conditions_95175": "すべての条件で 'Number.isNaN' を使用します。", "Use_element_access_for_0_95145": "'{0}' に要素アクセスを使用する", "Use_element_access_for_all_undeclared_properties_95146": "宣言されていないすべてのプロパティに対して要素アクセスを使用します。", - "Use_import_type_95180": "'import type' を使用してください", "Use_synthetic_default_member_95016": "合成 'default' メンバーを使用します。", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "パッケージのインポートを解決する場合、package.json の 'exports' フィールドを使用してください。", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "インポートを解決するときに、package.json の 'imports' フィールドを使用してください。", - "Use_type_0_95181": "'type {0}' を使用してください", "Using_0_subpath_1_with_target_2_6404": "'{0}' サブパス '{1}' をターゲット '{2}' と共に使用しています。", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "JSX フラグメントを使用するには、フラグメント ファクトリ '{0}' がスコープ内に存在する必要がありますが、見つかりませんでした。", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "'for...of' ステートメントでの文字列の使用は ECMAScript 5 以上でのみサポートされています。", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "--build を使用すると、-b は tsc をコンパイラというよりビルド オーケストレーターのように動作させます。これは、複合プロジェクトのビルドをトリガーするために使用されます。詳細については、{0} を参照してください。", "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "変数の宣言が必要です。", "Variable_declaration_list_cannot_be_empty_1123": "変数宣言リストを空にすることはできません。", "Variable_declaration_not_allowed_at_this_location_1440": "変数の宣言はこの場所では許可されていません。", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "変数には、--isolatedDeclarations を含む明示的な型注釈が必要です。", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "複数の宣言を含む変数をインライン化することはできません。", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "ソースの位置 {0} にある可変個引数要素は、ターゲットの位置 {1} にある要素と一致しません。", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "分散注釈は、オブジェクト、関数、コンストラクター、およびマップされた型の型エイリアスでのみサポートされています。", "Version_0_6029": "バージョン {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "型チェックを行うときは、'null' と 'undefined' が考慮されます。", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "画面をクリアする代わりに、古くなったコンソール出力をウォッチ モードで保持するかどうか。", "Wrap_all_invalid_characters_in_an_expression_container_95109": "式のコンテナー内のすべての無効な文字をラップする", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "無効なデコレーター式をすべてかっこで囲む", "Wrap_all_object_literal_with_parentheses_95116": "すべてのオブジェクト リテラルをかっこで囲みます", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "親の設定が解除されたすべての JSX を JSX フラグメントでラップする", "Wrap_in_JSX_fragment_95120": "JSX フラグメントでラップする", - "Wrap_in_parentheses_95194": "かっこで囲む", "Wrap_invalid_character_in_an_expression_container_95108": "式のコンテナー内の無効な文字をラップする", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "次の本体をかっこで囲みます。これはオブジェクト リテラルです", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "コンパイラ オプションの詳細については、{0} をご覧ください。", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' および '{1}' インデックス シグネチャに互換性がありません。", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' および '{1}' 演算をかっこなしで混在させることはできません。", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' は 2 回指定されています。'{0}' という名前の属性は上書きされます。", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "型の末尾にある '{0}' は、有効な TypeScript 構文ではありません。'{1}' を書き込むつもりでしたか?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "型の先頭にある '{0}' は、有効な TypeScript 構文ではありません。'{1}' を書き込むつもりでしたか?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' をインポートするには、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' をインポートするには、既定のインポートを使用する必要があります。", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' をインポートするには、'require' 呼び出しを使用するか、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' をインポートするには、'require' 呼び出しを使用するか、既定のインポートを使用する必要があります。", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' をインポートするには、'import {1} = require({2})' または既定のインポートを使用する必要があります。", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' をインポートするには、'import {1} = require ({2})' を使用するか、'esModuleInterop' フラグをオンにして既定のインポートを使用する必要があります。", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'{0}' は、グローバル スクリプト ファイルと見なされるため、'--isolatedModules' でコンパイルすることはできません。import、export、または空の 'export {}' ステートメントを追加して、これをモジュールにしてください。", "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}' を JSX コンポーネントとして使用することはできません。", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'export type' を使用してエクスポートされたため、'{0}' は値として使用できません。", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'import type' を使用してインポートされたため、'{0}' は値として使用できません。", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' コンポーネントには、テキストを子要素として指定できません。JSX のテキストには 'string' 型が含まれていますが、'{1}' の予期された型は '{2}' です。", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{1}' に関連しない可能性のある任意の型で '{0}' をインスタンス化できます。", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "'{0}' 宣言は、ブロック内でのみ宣言できます。", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' 宣言は TypeScript ファイルでのみ使用できます。", - "_0_declarations_may_not_have_binding_patterns_1492": "'{0}' 宣言はバインド パターンを持っていない可能性があります。", - "_0_declarations_must_be_initialized_1155": "'{0}' 宣言は初期化する必要があります。", "_0_expected_1005": "'{0}' が必要です。", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}' には文字列型がありますが、'isolatedModules' が有効である場合、構文的に認識可能な文字列構文が必要です。", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{1}' という名前のエクスポートされたメンバーが '{0}' に含まれていません。候補: '{2}'", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' の戻り値の型は暗黙的に '{1}' になっていますが、使い方からより良い型を推論できます。", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' は、戻り値の型の注釈がなく、いずれかの return 式で直接的にまたは間接的に参照されているため、戻り値の型は暗黙的に 'any' になります。", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}'インデックス型'{1}' を '{2}'インデックス型'{3}' に割り当てることはできません。", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' はプリミティブですが、'{1}' はラッパー オブジェクトです。できれば '{0}' をご使用ください。", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' は型であるため、JavaScript ファイルにインポートできません。JSDoc 型の注釈で '{1}' を使用します。", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}' は型であり、'verbatimModuleSyntax' が有効であるときは、型のみのインポートを使用してインポートされる必要があります。", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" は型であり、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートされる必要があります。", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' は、'{1}' の未使用の名前変更です。型の注釈として使用するつもりでしたか?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' は型 '{1}' の制約に代入できますが、'{1}' は制約 '{2}' の別のサブタイプでインスタンス化できることがあります。", "_0_is_automatically_exported_here_18044": "`{0}` は自動的にここにエクスポートされます。", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "'{0}' のリストを空にすることはできません。", "_0_modifier_already_seen_1030": "'{0}' 修飾子は既に存在します。", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾子は、クラス、インターフェイス、または型エイリアスの型パラメーターでのみ使用できます", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "'{0}' 修飾子は、関数、メソッド、またはクラスの型パラメーターでのみ使用できます", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 修飾子はコンストラクター宣言では使用できません。", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 修飾子は、モジュールまたは名前空間の要素では使用できません。", "_0_modifier_cannot_appear_on_a_parameter_1090": "'{0}' 修飾子はパラメーターでは使用できません。", "_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 修飾子は型メンバーでは使用できません。", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 修飾子は型パラメーターでは表示できません。", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "'{0}' 修飾子を 'using' 宣言で使用することはできません。", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "'{0}' 修飾子を 'await using' 宣言で使用することはできません。", "_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 修飾子はインデックス シグネチャでは使用できません。", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "'{0}' 修飾子はこの種類のクラス要素では使用できません。", "_0_modifier_cannot_be_used_here_1042": "'{0}' 修飾子はここでは使用できません。", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 修飾子と '{1}' 修飾子は同時に使用できません。", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 修飾子を private 識別子とともに使用することはできません。", "_0_modifier_must_precede_1_modifier_1029": "'{0}' 修飾子は '{1}' 修飾子の前に指定する必要があります。", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' の後には、中かっこで囲まれた Unicode プロパティ値式を指定する必要があります。", "_0_needs_an_explicit_type_annotation_2782": "'{0}' には、明示的な型の注釈が必要です。", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' は型のみを参照しますが、ここで名前空間として使用されています。", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' は型のみを参照しますが、ここで値として使用されています。", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' は型のみを参照しますが、ここでは値として使用されています。ターゲット ライブラリを変更しますか? 'lib' コンパイラ オプションを es2015 以降に変更してみてください。", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' は UMD グローバルを参照していますが、現在のファイルはモジュールです。代わりにインポートを追加することを考慮してください。", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' は値を参照していますが、ここでは型として使用されています。'typeof {0}' を意図していましたか?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}' は型に解決され、'{1}' が有効であるときに再エクスポートする前に、このファイル内で型のみとしてマークする必要があります。'{0}' がインポートされる場所で 'import type' を使用することを検討してください。", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}' は型に解決され、'{1}' が有効であるときに再エクスポートする前に、このファイル内で型のみとしてマークする必要があります。'export type { {0} as default }' を使用することを検討してください。", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}' は型のみの宣言に解決されるため、'verbatimModuleSyntax' が有効であるときは、型のみのインポートを使用してインポートされる必要があります。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}' は型のみの宣言に解決され、'{1}' が有効であるときに再エクスポートする前に、このファイル内で型のみとしてマークする必要があります。'{0}' がインポートされる場所で 'import type' を使用することを検討してください。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}' は型のみの宣言に解決され、'{1}' が有効であるときに再エクスポートする前に、このファイル内で型のみとしてマークする必要があります。'export type { {0} as default }' を使用することを検討してください。", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "\"{0}\" は型のみの宣言に解決されるため、'{1}' が有効であるときは、型のみの再エクスポートを使用して再エクスポートされる必要があります。", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" は型に限定した宣言を解決するため、\"preserveValueImports\" と \"isolatedModules\" の両方が有効な場合、型に限定したインポートを使用してインポートする必要があります。", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" は型に限定した宣言を解決するため、\" isolatedModules\" が有効になっているときは、型に限定した再エクスポートを使用して再エクスポートされる必要があります。", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "config json ファイル の 'compilerOptions' オブジェクト内に '{0}' を設定する必要があります。", "_0_tag_already_specified_1223": "'{0}' タグは既に指定されています。", "_0_was_also_declared_here_6203": "ここでは '{0}' も宣言されました。", @@ -1999,22 +1780,19 @@ "and_here_6204": "およびここで。", "arguments_cannot_be_referenced_in_property_initializers_2815": "プロパティ初期化子で 'arguments' を参照することはできません。", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": インポート、エクスポート、import.meta、jsx (jsx: react-jsx を使用)、または esm 形式 (モジュール: node16+) でファイルをモジュールとして扱います。", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 式はクラスの静的ブロック内では使用できません。", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "ファイルがモジュールの場合、'await' 式はそのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "'await' 式は、非同期関数内と、モジュールのトップ レベルでのみ許可されます。", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 式は、パラメーター初期化子では使用できません。", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' は、この式の型に対しては効果がありません。", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "'await using' ステートメントは、ファイルがモジュールである場合、そのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' ステートメントは、非同期関数内と、モジュールのトップ レベルでのみ許可されます。", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' ステートメントをクラスの静的ブロック内で使用することはできません。", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' オプションは '{0}' に設定され、この値を使用して非相対モジュール名 '{1}' を解決します。", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' の後には ASCII 文字が続く必要があります。", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' は、ファイルの先頭でのみ使用できます。", "case_or_default_expected_1130": "'case' または 'default' が必要です。", "catch_or_finally_expected_1472": "'catch' または 'finally' が必要です。", + "const_declarations_can_only_be_declared_inside_a_block_1156": "'const' 宣言は、ブロック内でのみ宣言できます。", + "const_declarations_must_be_initialized_1155": "'const' 宣言は初期化する必要があります。", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 列挙型メンバーの初期化子が、無限値に評価されました。", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 列挙型メンバーの初期化子が、許可されない値 'NaN' に評価されました。", - "const_enum_member_initializers_must_be_constant_expressions_2474": "const 列挙型メンバー初期化子は定数式である必要があります。", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "const 列挙型メンバーの初期化子には、リテラル値および他の計算された列挙型の値のみを含めることができます。", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 列挙型は、プロパティまたはインデックスのアクセス式、インポート宣言またはエクスポートの代入の右辺、型のクエリにのみ使用できます。", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor' をパラメーターのプロパティ名として使用することはできません。", "constructor_is_a_reserved_word_18012": "'#constructor' は予約語です。", @@ -2033,14 +1811,13 @@ "file_6025": "ファイル", "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' ループはそのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "'for await' ループは、非同期関数内と、モジュールのトップ レベルでのみ許可されます。", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' ループは、クラスの静的ブロック内では使用できません。", "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' および 'set' アクセサーでは 'this' パラメーターを宣言できません。", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'files' が指定されている場合は '[]'、それ以外の場合は '[\"**/*\"]5D;'", "implements_clause_already_seen_1175": "'implements' 句は既に存在します。", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' 句は、TypeScript ファイルでのみ使用できます。", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' は、TypeScript ファイルでのみ使用できます。", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "'infer' 宣言は、条件付き型の 'extends' 句でのみ許可されます。", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' の後には、山かっこで囲まれたキャプチャ グループ名を指定する必要があります。", + "let_declarations_can_only_be_declared_inside_a_block_1157": "'let' 宣言は、ブロック内でのみ宣言できます。", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' は、'let' 宣言または 'const' 宣言で名前として使用することはできません。", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "モジュール === 'AMD'、'UMD'、'System'、'ES6'、'Classic'、それ以外の場合は 'Node'", "module_system_or_esModuleInterop_6904": "module === \"system\" or esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' には、バージョン '{0}' と一致する 'typesVersions' エントリがありません。", "package_json_had_a_falsy_0_field_6220": "'package.json' には、false に評価される '{0}' フィールドが含まれています。", "package_json_has_0_field_1_that_references_2_6101": "'package.json' に '{2}' を参照する '{0}' フィールド '{1}' があります。", - "package_json_has_a_peerDependencies_field_6281": "'package.json' に 'peerDependencies' フィールドがあります。", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' には、有効な semver の範囲ではない 'typesVersions' エントリ '{0}' が含まれています。", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' には、コンパイラ バージョン '{1}' に一致する 'typesVersions' エントリ '{0}' が含まれていて、モジュール名 '{2}' に一致するパターンを探しています。", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' には、バージョン固有のパス マッピングを含む 'typesVersions' フィールドが含まれています。", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json のスコープ '{0}' は、指定子 '{1}' のターゲットに無効な型です。", "package_json_scope_0_has_no_imports_defined_6273": "package.json のスコープ '{0}' にはインポートが定義されていません。", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' オプションが指定され、モジュール名 '{0}' と一致するパターンを検索します。", - "q_is_only_available_inside_character_class_1511": "'\\q' は文字クラス内でのみ使用できます。", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' の後には、中かっこで囲まれた代替文字列を指定する必要があります。", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾子はプロパティ宣言またはインデックス シグネチャのみに使用できます。", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 型の修飾子は、配列およびタプル リテラル型でのみ使用できます。", "require_call_may_be_converted_to_an_import_80005": "'require' の呼び出しはインポートに変換される可能性があります。", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "'resolution-mode' アサーションは、`moduleResolution` が `node16` または `nodenext` の場合にのみサポートされます。", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' アサーションが不安定です。ナイトリー TypeScript を使用して、このエラーをサイレントにします。npm install -D typescript@next' で更新してみてください。", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` は、型のみのインポートに対してのみ設定できます。", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode` は、型インポート アサーションの唯一の有効なキーです。", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "'resolution-mode' が、型インポート属性の唯一の有効なキーです。", "resolution_mode_should_be_either_require_or_import_1453": "\"resolution-mode\" は \"require\" または \"import\" のいずれかにする必要があります。", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' オプションが設定され、このオプションを使用して相対モジュール名 '{0}' を解決します。", "super_can_only_be_referenced_in_a_derived_class_2335": "'super' は、派生クラスでのみ参照できます。", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this' は、計算されたプロパティ名では参照できません。", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this' はモジュール本体内または名前空間本体内では参照できません。", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "'this' は、静的プロパティ初期化子では参照できません。", + "this_cannot_be_referenced_in_constructor_arguments_2333": "'this' はコンストラクター引数では参照できません。", "this_cannot_be_referenced_in_current_location_2332": "'this' は現在の場所では参照できません。", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' は型として注釈を持たないため、暗黙的に型 'any' になります。", "true_for_ES2022_and_above_including_ESNext_6930": "ESNext を含む ES2022 以降の場合は 'true' です。", "true_if_composite_false_otherwise_6909": "'composite' の場合は 'true'、それ以外の場合は 'false'", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "'moduleResolution' が 'node16'、'nodenext'、または 'bundler' である場合は 'true'、それ以外の場合は 'false' です。", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript コンパイラ", "type_Colon_6902": "種類:", "unique_symbol_types_are_not_allowed_here_1335": "'unique symbol' 型はここでは許可されていません。", diff --git a/node_modules/typescript/lib/ko/diagnosticMessages.generated.json b/node_modules/typescript/lib/ko/diagnosticMessages.generated.json index f443e044d..3fba8e28e 100644 --- a/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/ko/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "모든 컴파일러 옵션", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 한정자는 가져오기 선언에서 사용할 수 없습니다.", "A_0_parameter_must_be_the_first_parameter_2680": "'{0}' 매개 변수는 첫 번째 매개 변수여야 합니다.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "JSDoc '@template' 태그는 '@typedef', '@callback' 또는 '@overload' 태그 다음에 올 수 없습니다.", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' 주석에 여러 '@type' 태그를 포함하지 못할 수 있습니다.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "'bigint' 리터럴은 속성 이름으로 사용할 수 없습니다.", "A_bigint_literal_cannot_use_exponential_notation_1352": "bigint 리터럴에는 지수 표기법을 사용할 수 없습니다.", "A_bigint_literal_must_be_an_integer_1353": "bigint 리터럴은 정수여야 합니다.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "바인딩 패턴 매개 변수는 구현 서명에서 선택 사항이 될 수 없습니다.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' 문은 이 문을 둘러싼 반복문 또는 switch 문 내에서만 사용할 수 있습니다.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' 문은 이 문을 둘러싼 문의 레이블로만 이동할 수 있습니다.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "문자 클래스는 예약된 이중 문장 부호를 포함해서는 안됩니다. 백슬래시로 이스케이프하려고 하셨나요?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "문자 클래스 범위는 다른 문자 클래스에 의해 바인딩되어서는 안 됩니다.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "클래스는 선택적 형식 인수가 포함된 식별자/정규화된 이름만 구현할 수 있습니다.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "클래스는 개체 형식 또는 정적으로 알려진 멤버가 포함된 개체 형식의 교집합만 구현할 수 있습니다.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "클래스는 '{0}' 같은 기본 형식을 확장할 수 없습니다. 클래스는 생성 가능한 값만 확장할 수 있습니다.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "클래스는 '{0}' 같은 기본 형식을 구현할 수 없습니다. 다른 명명된 개체 형식만 구현할 수 있습니다.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' 한정자를 사용하지 않는 클래스 선언에는 이름이 있어야 합니다.", "A_class_member_cannot_have_the_0_keyword_1248": "클래스 멤버에는 '{0}' 키워드를 사용할 수 없습니다.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "쉼표 식은 컴퓨팅된 속성 이름에 사용할 수 없습니다.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "생성자에는 'this' 매개 변수를 사용할 수 없습니다.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' 문은 이 문을 둘러싼 반복문 내에서만 사용할 수 있습니다.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' 문은 이 문을 둘러싼 반복문의 레이블로만 이동할 수 있습니다.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "'import type'이 없으면 선언 파일을 가져올 수 없습니다. 대신 '{0}' 구현 파일을 가져오시겠습니까?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "'declare' 한정자는 이미 존재하는 앰비언트 컨텍스트에서 사용할 수 없습니다.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "데코레이터는 오버로드가 아니라 메서드 구현만 데코레이팅할 수 있습니다.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' 절은 'switch' 문에 두 번 이상 나올 수 없습니다.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "기본 내보내기 수준은 파일 또는 모듈 선언의 최상위 수준에 있어야 합니다.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "이 컨텍스트에서는 한정된 할당 어설션 '!'가 허용되지 않습니다.", "A_destructuring_declaration_must_have_an_initializer_1182": "구조 파괴 선언에 이니셜라이저가 있어야 합니다.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "ES5의 동적 가져오기 호출에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3의 동적 가져오기 호출에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "동적 가져오기 호출은 'Promise'를 반환합니다. 'Promise'에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", "A_file_cannot_have_a_reference_to_itself_1006": "파일은 자신에 대한 참조를 포함할 수 없습니다.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "'never'를 반환하는 함수에는 연결 가능한 끝점이 있을 수 없습니다.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "'new' 키워드로 호출한 함수에는 'void'인 'this' 형식을 사용할 수 없습니다.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "선언된 형식이 'undefined', 'void' 또는 'any'가 아닌 함수는 값을 반환해야 합니다.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "선언된 형식이 'void'도 'any'도 아닌 함수는 값을 반환해야 합니다.", "A_generator_cannot_have_a_void_type_annotation_2505": "생성기에는 'void' 형식 주석을 사용할 수 없습니다.", "A_get_accessor_cannot_have_parameters_1054": "'get' 접근자에는 매개 변수를 사용할 수 없습니다.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "get 접근자는 최소한 setter의 액세스 가능 수준과 같아야 합니다.", @@ -62,9 +55,9 @@ "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_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "네임스페이스 선언은 해당 선언이 병합된 클래스나 함수 앞에 있을 수 없습니다.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "네임스페이스 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 허용됩니다.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "'module' 키워드를 사용하여 'namespace' 선언을 선언하면 안 됩니다. 대신 'namespace' 키워드를 사용하세요.", "A_non_dry_build_would_build_project_0_6357": "-dry가 아닌 빌드는 프로젝트 '{0}'을(를) 빌드합니다.", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "-dry가 아닌 빌드는 다음 파일을 삭제합니다. {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "DRY가 아닌 빌드는 '{0}' 프로젝트의 출력을 업데이트합니다.", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "DRY가 아닌 빌드는 '{0}' 프로젝트의 출력 타임스탬프를 업데이트합니다.", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "매개 변수 이니셜라이저는 함수 또는 생성자 구현에서만 허용됩니다.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "rest 매개 변수를 사용하여 매개 변수 속성을 선언할 수 없습니다.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "파생 클래스에 초기화된 속성, 매개 변수 속성 또는 개인 식별자가 포함된 경우 'super' 호출은 '수퍼' 또는 'this'를 참조하는 생성자의 첫 번째 명령문이어야 합니다.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "'this' 기반 형식 가드는 매개 변수 기반 형식 가드와 호환되지 않습니다.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 형식은 클래스 또는 인터페이스의 비정적 멤버에서만 사용할 수 있습니다.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "'verbatimModuleSyntax'를 사용하도록 설정한 경우 CommonJS 모듈의 값 선언에 최상위 'export' 한정자를 사용할 수 없습니다.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 파일이 이미 '{0}'에 정의되어 있습니다.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "튜플 멤버는 optional이면서 rest일 수 없습니다.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "튜플 형식은 음수 값으로 인덱싱할 수 없습니다.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "'yield' 식은 생성기 본문에서만 사용할 수 있습니다.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "super 식을 통해 '{1}' 클래스의 추상 메서드 '{0}'에 액세스할 수 없습니다.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "추상 메서드는 추상 클래스 내에서만 사용할 수 있습니다.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "추상 속성은 추상 클래스 내에만 나타날 수 있습니다.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "생성자에서 '{1}' 클래스의 추상 속성 '{0}'에 액세스할 수 없습니다.", "Accessibility_modifier_already_seen_1028": "액세스 가능성 한정자가 이미 있습니다.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "접근자는 ECMAScript 5 이상을 대상으로 지정할 때만 사용할 수 있습니다.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "접근자는 모두 추상이거나 비추상이어야 합니다.", "Add_0_to_unresolved_variable_90008": "확인되지 않은 변수에 '{0}.' 추가", "Add_a_return_statement_95111": "return 문 추가", - "Add_a_return_type_to_the_function_declaration_9031": "함수 선언에 반환 형식을 추가합니다.", - "Add_a_return_type_to_the_function_expression_9030": "함수 식에 반환 형식을 추가합니다.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "get 접근자 선언에 반환 형식을 추가합니다.", - "Add_a_return_type_to_the_method_9034": "메서드에 반환 형식 추가", - "Add_a_type_annotation_to_the_parameter_0_9028": "{0} 매개 변수에 형식 주석을 추가합니다.", - "Add_a_type_annotation_to_the_property_0_9029": "{0} 속성에 형식 주석을 추가합니다.", - "Add_a_type_annotation_to_the_variable_0_9027": "{0} 변수에 형식 주석을 추가합니다.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "set 접근자 선언의 매개 변수에 형식을 추가합니다.", "Add_all_missing_async_modifiers_95041": "누락된 모든 'async' 한정자 추가", "Add_all_missing_attributes_95168": "누락된 특성 모두 추가", "Add_all_missing_call_parentheses_95068": "누락된 호출 괄호 모두 추가", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "누락된 모든 가져오기 추가", "Add_all_missing_members_95022": "누락된 모든 멤버 추가", "Add_all_missing_override_modifiers_95162": "누락된 모든 'override' 한정자 추가", - "Add_all_missing_parameters_95190": "누락된 매개 변수 모두 추가", "Add_all_missing_properties_95166": "누락된 모든 속성 추가", "Add_all_missing_return_statement_95114": "누락된 모든 return 문 추가", "Add_all_missing_super_calls_95039": "누락된 모든 super 호출 추가", - "Add_all_missing_type_annotations_90067": "누락된 모든 형식 주석 추가", - "Add_all_optional_parameters_95193": "모든 선택적 매개 변수 추가", - "Add_annotation_of_type_0_90062": "'{0}' 형식의 주석 추가", "Add_async_modifier_to_containing_function_90029": "포함된 함수에 async 한정자 추가", "Add_await_95083": "'await' 추가", "Add_await_to_initializer_for_0_95084": "'{0}'의 이니셜라이저에 'await' 추가", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "초기화되지 않은 모든 속성에 이니셜라이저 추가", "Add_missing_attributes_95167": "누락된 특성 추가", "Add_missing_call_parentheses_95067": "누락된 호출 괄호 추가", - "Add_missing_comma_for_object_member_completion_0_95187": "개체 멤버 완료 '{0}'에 대한 누락된 쉼표 추가", "Add_missing_enum_member_0_95063": "누락된 열거형 멤버 '{0}' 추가", "Add_missing_function_declaration_0_95156": "누락된 함수 선언 '{0}' 추가", "Add_missing_new_operator_to_all_calls_95072": "모든 호출에 누락된 'new' 연산자 추가", "Add_missing_new_operator_to_call_95071": "호출에 누락된 'new' 연산자 추가", - "Add_missing_parameter_to_0_95188": "'{0}'에 누락된 매개 변수 추가", - "Add_missing_parameters_to_0_95189": "'{0}'에 누락된 매개 변수 추가", "Add_missing_properties_95165": "누락된 속성 추가", "Add_missing_super_call_90001": "누락된 'super()' 호출 추가", "Add_missing_typeof_95052": "누락된 'typeof' 추가", "Add_names_to_all_parameters_without_names_95073": "이름이 없는 모든 매개 변수에 이름 추가", - "Add_optional_parameter_to_0_95191": "'{0}'에 선택적 매개 변수 추가", - "Add_optional_parameters_to_0_95192": "'{0}'에 선택적 매개 변수 추가", "Add_or_remove_braces_in_an_arrow_function_95058": "화살표 함수에 중괄호 추가 또는 제거", "Add_override_modifier_95160": "'override' 한정자 추가", "Add_parameter_name_90034": "매개 변수 이름 추가", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "멤버 이름과 일치하는 모든 확인되지 않은 변수에 한정자 추가", - "Add_resolution_mode_import_attribute_95196": "'resolution-mode' 가져오기 특성 추가", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "필요한 모든 형식 전용 가져오기에 'resolution-mode' 가져오기 특성을 추가합니다.", - "Add_return_type_0_90063": "반환 형식 '{0}' 추가", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "이 식에 충족 및 형식 어설션을 추가하여(T를 T로 충족) 형식을 명시적으로 만듭니다.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "'{0}'을(를) 사용하여 충족 및 인라인 형식 어설션 추가", "Add_to_all_uncalled_decorators_95044": "호출되지 않는 모든 데코레이터에 '()' 추가", "Add_ts_ignore_to_all_error_messages_95042": "모든 오류 메시지에 '@ts-ignore' 추가", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "인덱스를 사용하여 액세스할 때 유형에 'undefined'를 추가합니다.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "기본 내보내기가 없는 모듈에서 기본 가져오기를 허용합니다. 여기서는 코드 내보내기에는 영향을 주지 않고 형식 검사만 합니다.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "모듈에 기본 내보내기가 없을 때 'y에서 x 가져오기'를 허용합니다.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "tslib에서 도우미 함수를 파일별로 포함하는 대신 프로젝트당 한 번씩 가져오도록 허용합니다.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "가져오기에서 TypeScript 파일 확장자를 포함하도록 허용합니다. '--moduleResolution bundler'와 '--noEmit' 또는 '--emitDeclarationOnly'를 설정해야 합니다.", "Allow_javascript_files_to_be_compiled_6102": "Javascript 파일을 컴파일하도록 허용합니다.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "모듈을 확인할 때 여러 폴더가 하나로 처리되도록 허용합니다.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "이미 포함된 '{0}' 파일 이름은 '{1}' 파일 이름과 대/소문자만 다릅니다.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "이 바인딩 패턴과 일치하는 인수가 제공되지 않았습니다.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "산술 피연산자는 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", "An_arrow_function_cannot_have_a_this_parameter_2730": "화살표 함수에는 'this' 매개 변수를 사용할 수 없습니다.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "ES5의 비동기 함수 또는 메서드에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3의 비동기 함수 또는 메서드에 'Promise' 생성자가 필요합니다. 'Promise' 생성자에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "비동기 함수 또는 메서드는 'Promise'를 반환해야 합니다. 'Promise'에 대한 선언이 있거나 '--lib' 옵션에 'ES2015'가 포함되었는지 확인하세요.", "An_async_iterator_must_have_a_next_method_2519": "비동기 반복기에는 'next()' 메서드가 있어야 합니다.", "An_element_access_expression_should_take_an_argument_1011": "요소 액세스 식은 인수를 사용해야 합니다.", @@ -239,22 +207,17 @@ "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_namespace_or_module_1233": "내보내기 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 사용할 수 있습니다.", "An_export_declaration_cannot_have_modifiers_1193": "내보내기 선언에는 한정자를 사용할 수 없습니다.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "'verbatimModuleSyntax'를 사용하는 경우 'export =' 선언은 실제 값을 참조해야 하지만 '{0}'은(는) 형식 전용 선언으로 확인됩니다.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "'verbatimModuleSyntax'를 사용하는 경우 'export =' 선언은 값을 참조해야 하지만 '{0}'은(는) 형식만 참조합니다.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "'verbatimModuleSyntax'가 사용하도록 설정되어 있지만 '{0}'이(가) 형식 전용 선언으로 확인되는 경우 'export default'는 실제 값을 참조해야 합니다.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "'verbatimModuleSyntax'가 사용하도록 설정된 경우 'export default'는 값을 참조해야 하지만 '{0}'은(는) 형식만 참조합니다.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "'void' 형식 식의 truthiness를 테스트할 수 없습니다.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "확장된 유니코드 이스케이프 값은 0x0과 0x10FFFF(포함) 사이여야 합니다.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "식별자 또는 키워드는 숫자 리터럴 바로 뒤에 올 수 없습니다.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "앰비언트 컨텍스트에서는 구현을 선언할 수 없습니다.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "가져오기 별칭은 '내보내기 형식'을 사용하여 내보낸 선언을 참조할 수 없습니다.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "가져오기 별칭은 '가져오기 형식'을 사용하여 가져온 선언을 참조할 수 없습니다.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "'verbatimModuleSyntax'를 사용하도록 설정한 경우 가져오기 별칭을 형식 또는 형식 전용 선언으로 확인할 수 없습니다.", "An_import_alias_cannot_use_import_type_1392": "가져오기 별칭은 'import type'을 사용할 수 없습니다.", "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_namespace_or_module_1232": "가져오기 선언은 네임스페이스 또는 모듈의 최상위 수준에서만 사용할 수 있습니다.", "An_import_declaration_cannot_have_modifiers_1191": "가져오기 선언에는 한정자를 사용할 수 없습니다.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "가져오기 경로는 'allowImportingTsExtensions'가 사용하도록 설정된 경우에만 '{0}' 확장으로 끝날 수 있습니다.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "가져오기 경로는 '{0}' 확장으로 끝날 수 없습니다. 대신 '{1}' 가져오기를 고려하세요.", "An_index_signature_cannot_have_a_rest_parameter_1017": "인덱스 시그니처에는 rest 매개 변수를 사용할 수 없습니다.", "An_index_signature_cannot_have_a_trailing_comma_1025": "인덱스 시그니처에는 후행 쉼표를 사용할 수 없습니다.", "An_index_signature_must_have_a_type_annotation_1021": "인덱스 시그니처에는 형식 주석을 사용할 수 없습니다.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "인스턴스화 식 뒤에 속성 액세스가 있을 수 없습니다.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "인터페이스는 선택적 형식 인수가 포함된 식별자/정규화된 이름만 확장할 수 있습니다.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "인터페이스는 개체 형식 또는 정적으로 알려진 멤버가 포함된 개체 형식의 교집합만 확장할 수 있습니다.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "인터페이스는 '{0}' 같은 기본 형식을 확장할 수 없습니다. 다른 명명된 개체 형식만 확장할 수 있습니다.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "인터페이스는 '{0}' 같은 기본 형식을 확장할 수 없습니다. 인터페이스는 명명된 형식 및 클래스만 확장할 수 있습니다.", "An_interface_property_cannot_have_an_initializer_1246": "인터페이스 속성에는 이니셜라이저를 사용할 수 없습니다.", "An_iterator_must_have_a_next_method_2489": "반복기에는 'next()' 메서드가 있어야 합니다.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "@jsx pragma를 JSX 조각과 함께 사용하는 경우에는 @jsxFrag pragma가 필요합니다.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "개체 리터럴은 이름이 같은 여러 속성을 가질 수 없습니다.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "개체 리터럴에 이름이 같은 속성과 접근자를 사용할 수 없습니다.", "An_object_member_cannot_be_declared_optional_1162": "개체 멤버는 선택적으로 선언될 수 없습니다.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "개체의 '[Symbol.hasInstance]' 메서드는 'instanceof' 식의 오른쪽에서 사용할 부울 값을 반환해야 합니다.", "An_optional_chain_cannot_contain_private_identifiers_18030": "선택적 체인에는 프라이빗 식별자를 사용할 수 없습니다.", "An_optional_element_cannot_follow_a_rest_element_1266": "선택적 요소는 rest 요소 뒤에 올 수 없습니다.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "'this'의 외부 값은 이 컨테이너에서 섀도 처리됩니다.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "오버로드 시그니처는 생성기로 선언할 수 없습니다.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "지수 식의 왼쪽에는 '{0}' 연산자가 있는 단항 식을 사용할 수 없습니다. 식을 괄호로 묶는 것이 좋습니다.", "Annotate_everything_with_types_from_JSDoc_95043": "JSDoc의 형식을 사용하여 모든 항목에 주석 달기", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "네임스페이스의 속성 expando 함수 형식에 주석 달기", "Annotate_with_type_from_JSDoc_95009": "JSDoc의 형식을 사용하여 주석 추가", "Another_export_default_is_here_2753": "다른 내보내기 기본값은 여기에 있습니다.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "단일 문자 이상과 일치할 수 있는 유니코드 속성은 유니코드 집합(v) 플래그가 설정된 경우에만 사용할 수 있습니다.", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "단일 문자보다 더 일치할 수 있는 모든 항목은 부정된 문자 클래스 내에서 유효하지 않습니다.", "Are_you_missing_a_semicolon_2734": "세미콜론이 없습니까?", "Argument_expression_expected_1135": "인수 식이 필요합니다.", "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' 옵션의 인수는 {1}이어야(여야) 합니다.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "'{0}' 유형의 인수는 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형의 매개 변수에 할당할 수 없습니다. 대상 속성의 유형에 'undefined'를 추가하는 것을 고려하세요.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "REST 매개 변수 '{0}'에 대한 인수가 제공되지 않았습니다.", "Array_element_destructuring_pattern_expected_1181": "배열 요소 구조 파괴 패턴이 필요합니다.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "분산 요소가 있는 배열은 --isolatedDeclarations로 유추할 수 없습니다.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "어설션에서 호출 대상의 모든 이름은 명시적 형식 주석을 사용하여 선언해야 합니다.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "어설션에서 호출 대상은 식별자 또는 정규화된 이름이어야 합니다.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "함수를 선언하지 않고 함수에 속성을 할당하는 것은 --isolatedDeclarations에서 지원되지 않습니다. 이 함수에 할당된 속성에 대한 명시적 선언을 추가합니다.", "Asterisk_Slash_expected_1010": "'*/'가 필요합니다.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "하나 이상의 접근자에 --isolatedDeclarations를 사용하는 명시적 형식 주석이 있어야 합니다.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "전역 범위에 대한 확대는 외부 모듈 또는 앰비언트 모듈 선언에만 직접 중첩될 수 있습니다.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "전역 범위에 대한 확대는 이미 존재하는 앰비언트 컨텍스트에 표시되지 않는 한 'declare' 한정자를 포함해야 합니다.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "프로젝트 '{0}'에서 입력에 대한 자동 검색을 사용하도록 설정되었습니다. '{2}' 캐시 위치를 사용하여 모듈 '{1}'에 대해 추가 해결 패스를 실행합니다.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Await 식은 클래스 정적 블록 내에서 사용할 수 없습니다.", "BUILD_OPTIONS_6919": "빌드 옵션", "Backwards_Compatibility_6253": "이전 버전과의 호환성", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "기본 클래스 식에서 클래스 형식 매개 변수를 참조할 수 없습니다.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "ES2020 미만을 대상으로 할 경우 bigint 리터럴을 사용할 수 없습니다.", "Binary_digit_expected_1177": "이진수가 있어야 합니다.", "Binding_element_0_implicitly_has_an_1_type_7031": "바인딩 요소 '{0}'에 암시적으로 '{1}' 형식이 있습니다.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "바인딩 요소는 --isolatedDeclarations를 사용하여 직접 내보낼 수 없습니다.", "Block_scoped_variable_0_used_before_its_declaration_2448": "선언 전에 사용된 블록 범위 변수 '{0}'입니다.", "Build_a_composite_project_in_the_working_directory_6925": "작업 디렉터리에서 복합 프로젝트를 빌드합니다.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "최신으로 보이는 프로젝트를 포함하여 모든 프로젝트를 빌드합니다.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "최신 상태가 아닌 경우, 하나 이상의 프로젝트 및 해당 종속성 빌드", "Build_option_0_requires_a_value_of_type_1_5073": "빌드 옵션 '{0}'에 {1} 형식의 값이 필요합니다.", "Building_project_0_6358": "'{0}' 프로젝트를 빌드하는 중...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "기본 제공 반복기는 'any' 대신 'undefined'의 'TReturn' 형식으로 인스턴스화됩니다.", "COMMAND_LINE_FLAGS_6921": "명령줄 플래그", "COMMON_COMMANDS_6916": "일반 명령", "COMMON_COMPILER_OPTIONS_6920": "일반 컴파일러 옵션", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "호출 시그니처 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "반환 형식 주석이 없는 호출 시그니처에는 암시적으로 'any' 반환 형식이 포함됩니다.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "인수가 없는 호출 시그니처의 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", + "Call_target_does_not_contain_any_signatures_2346": "호출 대상에 시그니처가 포함되어 있지 않습니다.", "Can_only_convert_logical_AND_access_chains_95142": "논리적 AND 액세스 체인만 변환할 수 있습니다.", "Can_only_convert_named_export_95164": "명명된 내보내기만 변환할 수 있습니다.", "Can_only_convert_property_with_modifier_95137": "한정자만 사용하여 속성을 변환할 수 있습니다.", - "Can_only_convert_string_concatenations_and_string_literals_95154": "문자열 연결 및 문자열 리터럴만 변환할 수 있습니다.", + "Can_only_convert_string_concatenation_95154": "문자열 연결만 변환할 수 있습니다.", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "'{0}'이(가) 네임스페이스가 아니라 형식이므로 '{0}.{1}'에 액세스할 수 없습니다. '{0}'에서 '{0}[\"{1}\"]'과(와) 함께 '{1}' 속성의 형식을 검색하려고 했나요?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "'{1}'을(를) 사용하도록 설정한 경우 한정 없이 다른 파일에서 '{0}'에 액세스할 수 없습니다. 대신 '{2}'을(를) 사용하세요.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "'{0}'이(가) 사용하도록 설정된 경우 앰비언트 const 열거형에 액세스할 수 없습니다.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "'--isolatedModules' 플래그가 제공된 경우 앰비언트 const 열거형에 액세스할 수 없습니다.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "'{0}' 생성자 형식을 '{1}' 생성자 형식에 할당할 수 없습니다.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "추상 생성자 형식을 비추상 생성자 형식에 할당할 수 없습니다.", "Cannot_assign_to_0_because_it_is_a_class_2629": "클래스이므로 '{0}'에 할당할 수 없습니다.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "'{0}'에 대한 라이브러리 정의를 찾을 수 없습니다.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}'에 대한 라이브러리 정의를 찾을 수 없습니다. '{1}'이(가) 아닌지 확인하세요.", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "'{0}' 모듈을 찾을 수 없습니다. '--resolveJsonModule'을 사용하여 '. json' 확장명이 포함된 모듈을 가져오는 것이 좋습니다.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "'{0}' 모듈을 찾을 수 없습니다. 'moduleResolution' 옵션을 'nodenext'로 설정하거나 'paths' 옵션에 별칭을 추가하려고 하셨나요?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "'{0}' 모듈을 찾을 수 없습니다. 'moduleResolution' 옵션을 'node'로 설정하거나 'paths' 옵션에 별칭을 추가하려고 하셨습니까?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "'{0}' 모듈 또는 해당 형식 선언을 찾을 수 없습니다.", "Cannot_find_name_0_2304": "'{0}' 이름을 찾을 수 없습니다.", "Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "이름 '{0}' 찾을 수 없습니다. 비동기 함수에 쓰려고 했나요?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "'{0}' 이름을 찾을 수 없습니다. 대상 라이브러리를 변경하려는 경우 'lib' 컴파일러 옵션을 '{1}' 이상으로 변경해 보세요.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "'{0}' 이름을 찾을 수 없습니다. 대상 라이브러리를 변경하려는 경우 'dom'을 포함하도록 'lib' 컴파일러 옵션을 변경해 보세요.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "'{0}' 이름을 찾을 수 없습니다. Bun에 대한 형식 정의를 설치해야 하나요? '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_2868": "'{0}' 이름을 찾을 수 없습니다. Bun에 대한 형식 정의를 설치해야 하나요? 'npm i --save-dev @types/bun'을 시도한 다음 tsconfig의 형식 필드에 'bun'을 추가합니다.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "'{0}' 이름을 찾을 수 없습니다. 테스트 실행기의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jest' 또는 'npm i --save-dev @types/mocha'를 시도합니다.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "'{0}' 이름을 찾을 수 없습니다. 테스트 실행기의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jest' 또는 'npm i --save-dev @types/mocha'를 시도한 다음, tsconfig의 형식 필드에 'jest' 또는 'mocha'를 추가하세요.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "'{0}' 이름을 찾을 수 없습니다. jQuery의 형식 정의를 설치하려는 경우 'npm i --save-dev @types/jquery'를 시도합니다.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 배열 구조 파괴는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 배열 spread는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "반복기의 'next' 메서드에 '{1}' 형식이 필요하지만 for-of는 항상 '{0}'을(를) 전송하므로 값을 반복할 수 없습니다.", - "Cannot_move_statements_to_the_selected_file_95183": "문을 선택한 파일로 이동할 수 없습니다.", - "Cannot_move_to_file_selected_file_is_invalid_95179": "파일로 이동할 수 없습니다. 선택한 파일이 유효하지 않습니다.", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "'{0}' 프로젝트는 'outFile'이 설정되어 있지 않기 때문에 앞에 추가할 수 없습니다.", "Cannot_read_file_0_5083": "'{0}' 파일을 읽을 수 없습니다.", "Cannot_read_file_0_Colon_1_5012": "파일 '{0}'을(를) 읽을 수 없습니다. {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "블록 범위 변수 '{0}'을(를) 다시 선언할 수 없습니다.", "Cannot_redeclare_exported_variable_0_2323": "내보낸 변수 '{0}'을(를) 다시 선언할 수 없습니다.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "catch 절에서 식별자 '{0}'을(를) 다시 선언할 수 없습니다.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "형식 주석에서 함수 호출을 시작할 수 없습니다.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "'{1}' 파일을 읽는 동안 오류가 발생하여 '{0}' 프로젝트의 출력을 업데이트할 수 없습니다.", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "'--jsx' 플래그를 제공하지 않으면 JSX를 사용할 수 없습니다.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "'{0}'을(를) 사용하도록 설정한 경우 형식 또는 형식 전용 네임스페이스에서 'export import'를 사용할 수 없습니다.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "'--isolatedModules' 플래그가 제공된 경우 형식 또는 형식 전용 네임스페이스에 '가져오기 내보내기'를 사용할 수 없습니다.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "'--module'이 'none'인 경우 가져오기, 내보내기 또는 모듈 확대를 사용할 수 없습니다.", "Cannot_use_namespace_0_as_a_type_2709": "'{0}' 네임스페이스를 형식으로 사용할 수 없습니다.", "Cannot_use_namespace_0_as_a_value_2708": "'{0}' 네임스페이스를 값으로 사용할 수 없습니다.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "'extends'를 'implements'로 변경", "Change_spelling_to_0_90022": "맞춤법을 '{0}'(으)로 변경", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "선언되었지만 생성자에 설정되지 않은 클래스 속성을 확인합니다.", - "Check_side_effect_imports_6806": "부작용 가져오기를 확인합니다.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "'bind', 'call' 및 'apply' 메서드에 대한 인수가 원래 함수와 일치하는지 확인하세요.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "'{0}'이(가) '{1}' - '{2}'에 대해 일치하는 가장 긴 접두사인지 확인하는 중입니다.", "Circular_definition_of_import_alias_0_2303": "가져오기 별칭 '{0}'의 순환 정의입니다.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "클래스 선언에서 '{0}'에 대한 오버로드 목록을 구현할 수 없습니다.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "클래스 선언은 '@augments' 또는 '@extends' 태그를 둘 이상 가질 수 없습니다.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "클래스 데코레이터는 정적 프라이빗 식별자와 함께 사용할 수 없습니다. 실험적 데코레이터를 제거하는 것이 좋습니다.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "부모 클래스에서 정의한 '{0}' 클래스 필드는 super를 통해 자식 클래스에서 액세스할 수 없습니다.", "Class_name_cannot_be_0_2414": "클래스 이름은 '{0}'일 수 없습니다.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "{0} 모듈을 사용하는 ES5를 대상으로 하는 경우 클래스 이름은 'Object'일 수 없습니다.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "클래스 정적 측면 '{0}'이(가) 기본 클래스 정적 측면 '{1}'을(를) 잘못 확장합니다.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "명령줄 옵션", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "구성 파일에 대한 경로 또는 'tsconfig.json'이 포함된 폴더에 대한 경로를 고려하여 프로젝트를 컴파일합니다.", "Compiler_Diagnostics_6251": "컴파일러 진단", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "'{0}' 컴파일러 옵션에는 빈 문자열을 지정할 수 없습니다.", "Compiler_option_0_expects_an_argument_6044": "컴파일러 옵션 '{0}'에는 인수가 필요합니다.", "Compiler_option_0_may_not_be_used_with_build_5094": "컴파일러 옵션 '--{0}'은(는) '-빌드'에서 사용되지 않을 수 있습니다.", "Compiler_option_0_may_only_be_used_with_build_5093": "컴파일러 옵션 '--{0}'은(는) '-빌드'에서만 사용할 수 있습니다.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "복합 프로젝트는 선언 내보내기를 비활성화할 수 없습니다.", "Composite_projects_may_not_disable_incremental_compilation_6379": "복합 프로젝트는 증분 컴파일을 비활성화할 수 없습니다.", "Computed_from_the_list_of_input_files_6911": "입력 파일 목록에서 컴퓨팅됨", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "계산된 속성은 --isolatedDeclarations가 있는 숫자 또는 문자열 리터럴, 변수 또는 점선 식이어야 합니다.", "Computed_property_names_are_not_allowed_in_enums_1164": "컴퓨팅된 속성 이름은 열거형에 사용할 수 없습니다.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "클래스 또는 개체 리터럴의 계산된 속성 이름은 --isolatedDeclarations로 유추할 수 없습니다.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "계산된 값은 문자열 값 멤버가 포함된 열거형에서 허용되지 않습니다.", "Concatenate_and_emit_output_to_single_file_6001": "출력을 연결하고 단일 파일로 내보냅니다.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "가져오기를 확인할 때 확인자별 기본값 외에 설정할 조건입니다.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "'{1}' 및 '{2}'에서 '{0}'에 대한 정의가 충돌하고 있습니다. 이 라이브러리의 특정 버전을 설치하여 충돌을 해결하세요.", "Conflicts_are_in_this_file_6201": "이 파일에 충돌이 있습니다.", "Consider_adding_a_declare_modifier_to_this_class_6506": "이 클래스에 'declare' 한정자를 추가하는 것이 좋습니다.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "구문 시그니처 반환 형식 '{0}' 및 '{1}'이(가) 호환되지 않습니다.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "'{0}'을(를) 매핑된 개체 형식으로 변환", "Convert_all_const_to_let_95102": "모든 'const'를 'let'으로 변환", "Convert_all_constructor_functions_to_classes_95045": "모든 생성자 함수를 클래스로 변환", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "값으로 사용되지 않는 모든 가져오기를 형식 전용 가져오기로 변환", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "모든 잘못된 문자를 HTML 엔터티 코드로 변환", "Convert_all_re_exported_types_to_type_only_exports_1365": "다시 내보낸 모든 형식을 형식 전용 내보내기로 변환", "Convert_all_require_to_import_95048": "모든 'require'를 'import'로 변환", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "모두 bigint 숫자 리터럴로 변환", "Convert_all_to_default_imports_95035": "모든 항목을 기본 가져오기로 변환", "Convert_all_type_literals_to_mapped_type_95021": "모든 형식 리터럴을 매핑된 형식으로 변환", - "Convert_all_typedef_to_TypeScript_types_95177": "모든 typedef를 TypeScript 형식으로 변환합니다.", "Convert_arrow_function_or_function_expression_95122": "화살표 함수 또는 함수 식 변환", "Convert_const_to_let_95093": "'const'를 'let'으로 변환", "Convert_default_export_to_named_export_95061": "기본 내보내기를 명명된 내보내기로 변환", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "선택적 체인 식으로 변환합니다.", "Convert_to_template_string_95096": "템플릿 문자열로 변환", "Convert_to_type_only_export_1364": "형식 전용 내보내기로 변환", - "Convert_typedef_to_TypeScript_type_95176": "typedef를 TypeScript 형식으로 변환합니다.", + "Convert_to_type_only_import_1373": "형식 전용 가져오기로 변환", "Corrupted_locale_file_0_6051": "로캘 파일 {0}이(가) 손상되었습니다.", "Could_not_convert_to_anonymous_function_95153": "익명 함수로 변환할 수 없습니다.", "Could_not_convert_to_arrow_function_95151": "화살표 함수로 변환할 수 없습니다.", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?", "Could_not_find_namespace_import_or_named_imports_95132": "네임스페이스 가져오기 또는 명명된 가져오기를 찾을 수 없습니다.", "Could_not_find_property_for_which_to_generate_accessor_95135": "접근자를 생성할 속성을 찾을 수 없습니다.", - "Could_not_find_variable_to_inline_95185": "인라인할 변수를 찾을 수 없습니다.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "{1} 확장이 포함된 '{0}' 경로를 확인할 수 없습니다.", "Could_not_write_file_0_Colon_1_5033": "'{0}' 파일을 쓸 수 없습니다. '{1}'.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "내보낸 JavaScript 파일의 소스 맵 파일을 만듭니다.", "Create_sourcemaps_for_d_ts_files_6614": "d.ts 파일의 sourcemap을 만듭니다.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "작업 디렉터리에 권장되는 설정을 사용하여 tsconfig.json을 만듭니다.", "DIRECTORY_6038": "디렉터리", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "문자 클래스에서는 10진수 이스케이프 시퀀스 및 역참조를 사용할 수 없습니다.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "앞에 0이 있는 10진수는 허용되지 않습니다.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "선언이 다른 파일의 선언을 확대합니다. 이 작업은 직렬화할 수 없습니다.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "이 파일에 대한 선언 내보내기에서는 확대를 위해 이 가져오기를 유지해야 합니다. 이는 --isolatedDeclarations에서는 지원되지 않습니다.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "이 파일의 선언 내보내기에는 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "이 파일의 선언 내보내기에는 '{1}' 모듈의 프라이빗 이름 '{0}'을(를) 사용해야 합니다. 명시적 형식 주석은 선언 내보내기를 차단 해제할 수 있습니다.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "이 매개 변수에 대한 선언 내보내기를 사용하려면 정의되지 않은 형식을 암시적으로 추가해야 합니다. 이는 --isolatedDeclarations에서는 지원되지 않습니다.", "Declaration_expected_1146": "선언이 필요합니다.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "선언 이름이 기본 제공 전역 ID '{0}'과(와) 충돌합니다.", "Declaration_or_statement_expected_1128": "선언 또는 문이 필요합니다.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "'{0}' 정적 속성 선언", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "데코레이터 함수 반환 유형 '{0}'은(는) '{1}' 유형에 할당할 수 없습니다.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "데코레이터 함수 반환 유형은 '{0}'이지만 'void' 또는 'any'여야 합니다.", - "Decorator_used_before_export_here_1486": "여기에서 'export' 앞에 데코레이터를 사용했습니다.", "Decorators_are_not_valid_here_1206": "데코레이터는 여기에 사용할 수 없습니다.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "동일한 이름의 여러 get/set 접근자에 데코레이터를 적용할 수 없습니다.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "'export' 앞에도 데코레이터가 나타나면 'export' 또는 'export default' 뒤에 나타나지 않을 수 있습니다.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "데코레이터는 '이' 매개 변수에 적용되지 않을 수 있습니다.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "데코레이터는 속성 선언의 이름 및 모든 키워드 앞에 와야 합니다.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "기본 catch 절 변수는 'any' 대신 'unknown'입니다.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "모듈의 기본 내보내기에서 프라이빗 이름 '{0}'을(를) 가지고 있거나 사용 중입니다.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "기본 내보내기는 --isolatedDeclarations로 유추할 수 없습니다.", "Default_library_1424": "기본 라이브러리", "Default_library_for_target_0_1425": "대상 '{0}'의 기본 라이브러리", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "{0} 식별자의 정의가 다른 파일의 정의와 충돌합니다.", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "생성된 코드에서 'const enum' 선언 지우기를 비활성화합니다.", "Disable_error_reporting_for_unreachable_code_6603": "연결할 수 없는 코드에 대한 오류 보고를 사용하지 않습니다.", "Disable_error_reporting_for_unused_labels_6604": "사용하지 않은 레이블에 대한 오류 보고를 사용하지 않습니다.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "전체 형식 검사를 사용하지 않도록 설정합니다(중요한 구문 분석 및 내보내기 오류만 보고됨).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "컴파일된 출력에서 ​​'__extents'와 같은 사용자 지정 도우미 함수 생성을 비활성화합니다.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "기본 lib.d.ts를 비롯하여 모든 라이브러리 파일을 포함하지 않도록 설정합니다.", "Disable_loading_referenced_projects_6235": "참조된 프로젝트 로드를 사용하지 않습니다.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "TypeScript가 프로젝트에 추가해야 하는 파일 수를 확장하는 '가져오기', '요구' 또는 ''를 허용하지 않습니다.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "동일한 파일에 대해 대/소문자를 일관되지 않게 사용한 참조를 허용하지 않습니다.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "컴파일된 파일 목록에 삼중 슬래시 참조 또는 가져온 모듈을 추가하지 않습니다.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "ECMAScript의 일부가 아닌 런타임 구문을 허용하지 않습니다.", "Do_not_emit_comments_to_output_6009": "주석을 출력에 내보내지 마세요.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "'@internal' 주석이 있는 코드에 대한 선언을 내보내지 마세요.", "Do_not_emit_outputs_6010": "출력을 내보내지 않습니다.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "접근할 수 없는 코드에 대한 오류를 보고하지 않습니다.", "Do_not_report_errors_on_unused_labels_6074": "사용되지 않는 레이블에 대한 오류를 보고하지 않습니다.", "Do_not_resolve_the_real_path_of_symlinks_6013": "symlink의 실제 경로를 확인하지 마세요.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "'module' 설정에 따라 출력 파일의 형식으로 작성되도록 형식 전용으로 표시되지 않은 가져오기 또는 내보내기를 변환하거나 생략하지 마세요.", "Do_not_truncate_error_messages_6165": "오류 메시지를 자르지 않습니다.", "Duplicate_function_implementation_2393": "중복된 함수 구현입니다.", "Duplicate_identifier_0_2300": "'{0}' 식별자가 중복되었습니다.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "'{0}' 형식에 대한 인덱스 시그니처가 중복되었습니다.", "Duplicate_label_0_1114": "중복된 레이블 '{0}'입니다.", "Duplicate_property_0_2718": "중복 속성 '{0}'입니다.", - "Duplicate_regular_expression_flag_1500": "중복된 정규식 플래그입니다.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "동적 가져오기의 지정자는 'string' 형식이어야 하지만 여기에서 형식은 '{0}'입니다.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "동적 가져오기는 '--module' 플래그가 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18' 또는 'nodenext'로 설정된 경우에만 지원됩니다.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "동적 가져오기는 모듈 지정자와 선택적 특성 집합만 인수로 허용할 수 있습니다.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "동적 가져오기는 '--module' 옵션이 'esnext', 'node16', 'node18', 'nodenext' 또는 'preserve'로 설정된 경우에만 두 번째 인수를 지원합니다.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "'module'이 'preserve'로 설정된 경우 CommonJS 모듈에서는 ESM 구문을 사용할 수 없습니다.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "'verbatimModuleSyntax'를 사용하도록 설정한 경우 CommonJS 모듈에서는 ESM 구문을 사용할 수 없습니다.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "'{0}.{1}'의 각 선언 값이 다릅니다. 여기서 '{2}'이(가) 필요한데 '{3}'이(가) 제공되었습니다.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "동적 가져오기는 '--module' 플래그가 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' 또는 'nodenext'로 설정된 경우에만 지원됩니다.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "동적 가져오기는 모듈 지정자와 선택적 어설션만 인수로 수락합니다.", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "동적 가져오기는 '--module' 옵션이 'esnext', 'node16' 또는 'nodenext'로 설정된 경우에만 두 번째 인수를 지원합니다.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "공용 구조체 형식 '{0}'의 각 멤버에 구문 시그니처가 있지만, 해당 시그니처는 서로 호환되지 않습니다.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "공용 구조체 형식 '{0}'의 각 멤버에 시그니처가 있지만, 해당 시그니처는 서로 호환되지 않습니다.", "Editor_Support_6249": "편집기 지원", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "형식이 확인된 JavaScript 파일에서 오류 보고를 사용하도록 설정합니다.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "지역 변수를 읽지 않을 때 오류 보고를 활성화합니다.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "'this'에 'any' 유형이 지정되면 오류 보고를 활성화합니다.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "레거시 실험적 데코레이터에 대해 실험적 지원을 사용하도록 설정합니다.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "선언 파일이 있는 경우 확장자가 있는 파일 가져오기를 사용하도록 설정합니다.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "TC39 2단계 초안 데코레이터에 대한 실험적 지원을 사용합니다.", "Enable_importing_json_files_6689": ".json 파일 가져오기를 활성화합니다.", - "Enable_lib_replacement_6808": "라이브러리 바꾸기를 사용하도록 설정합니다.", "Enable_project_compilation_6302": "프로젝트 컴파일을 사용하도록 설정", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "함수에서 strict 'bind', 'call' 및 'apply' 메서드를 사용하도록 설정합니다.", "Enable_strict_checking_of_function_types_6186": "함수 형식에 대한 엄격한 검사를 사용하도록 설정합니다.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "가져오기에서 대/소문자가 올바른지 확인합니다.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "다른 가져오기를 사용하지 않고 각 파일을 안전하게 변환할 수 있는지 확인합니다.", "Ensure_use_strict_is_always_emitted_6605": "'use strict'를 항상 내보내고 있는지 확인합니다.", - "Entering_conditional_exports_6413": "조건부 내보내기가 시작됩니다.", "Entry_point_for_implicit_type_library_0_1420": "암시적 형식 라이브러리 '{0}'의 진입점", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "packageId가 '{1}'인 암시적 형식 라이브러리 '{0}'의 진입점", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "compilerOptions에 지정된 형식 라이브러리 '{0}'의 진입점", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "열거형 선언은 네임스페이스 또는 다른 열거형 선언과만 병합할 수 있습니다.", "Enum_declarations_must_all_be_const_or_non_const_2473": "열거형 선언은 모두 const 또는 비const여야 합니다.", "Enum_member_expected_1132": "열거형 멤버가 필요합니다.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "'isolatedModules'를 사용하도록 설정한 경우 리터럴이 아닌 숫자 멤버 다음에 오는 열거형 멤버에는 이니셜라이저가 있어야 합니다.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "열거형 멤버 이니셜라이저는 --isolatedDeclarations를 사용하여 외부 기호에 대한 참조 없이 계산할 수 있어야 합니다.", "Enum_member_must_have_initializer_1061": "열거형 멤버에는 이니셜라이저가 있어야 합니다.", "Enum_name_cannot_be_0_2431": "열거형 이름은 '{0}'일 수 없습니다.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "열거형 형식 '{0}'에 리터럴이 아닌 이니셜라이저를 사용하는 멤버가 있습니다.", "Errors_Files_6041": "오류 파일", - "Escape_sequence_0_is_not_allowed_1488": "이스케이프 시퀀스 '{0}'은(는) 허용되지 않습니다.", "Examples_Colon_0_6026": "예: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "'{0}' 및 '{1}' 형식을 비교하는 데 과도한 복잡성이 있습니다.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "'{0}' 및 '{1}' 형식을 비교하는 스택 깊이가 과도합니다.", - "Exiting_conditional_exports_6416": "조건부 내보내기가 종료됩니다.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "'@extends' 태그로 제공하는 예상되는 {0}-{1} 형식 인수입니다.", "Expected_0_arguments_but_got_1_2554": "{0}개의 인수가 필요한데 {1}개를 가져왔습니다.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0}개 인수가 필요한데 {1}개를 가져왔습니다. 'void'를 'Promise'의 형식 인수에 포함하는 것을 잊으셨습니까?", "Expected_0_type_arguments_but_got_1_2558": "{0}개의 형식 인수가 필요한데 {1}개를 가져왔습니다.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "'@extends' 태그로 제공하는 예상되는 {0} 형식 인수입니다.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1개의 인수가 필요하지만 0이 있습니다. 'new Promise()'는 인수 없이 호출할 수 있는 'resolve'를 생성하기 위해 JSDoc 힌트가 필요합니다.", - "Expected_a_Unicode_property_name_1523": "유니코드 속성 이름이 필요합니다.", - "Expected_a_Unicode_property_name_or_value_1527": "유니코드 속성 이름 또는 값이 필요합니다.", - "Expected_a_Unicode_property_value_1525": "유니코드 속성 값이 필요합니다.", - "Expected_a_capturing_group_name_1514": "캡처 그룹 이름이 필요합니다.", - "Expected_a_class_set_operand_1520": "클래스 집합 피연산자가 필요합니다.", "Expected_at_least_0_arguments_but_got_1_2555": "최소 {0}개의 인수가 필요한데 {1}개를 가져왔습니다.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}'에 해당하는 JSX 닫는 태그가 필요합니다.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX 조각에 닫는 태그가 필요합니다.", "Expected_for_property_initializer_1442": "속성 이니셜라이저에는 '='가 필요합니다.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "'package.json'의 '{0}' 필드에 '{1}' 형식이 필요한데 '{2}'을(를) 얻었습니다.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "데코레이터에 대한 실험적 지원 기능은 이후 릴리스에서 변경될 수 있습니다. 이 경고를 제거하려면 'tsconfig' 또는 'jsconfig'에서 'experimentalDecorators' 옵션을 설정합니다.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "명시적으로 지정된 모듈 확인 종류 '{0}'입니다.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' 옵션이 'es2016' 이상으로 설정되어 있지 않으면 'bigint' 값에 지수화를 수행할 수 없습니다.", "Export_0_from_module_1_90059": "'{0}'을(를) '{1}' 모듈에서 내보냅니다.", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "내보낸 변수 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "내보내기 및 내보내기 할당는 모듈 확대에서 허용되지 않습니다.", "Expression_expected_1109": "식이 필요합니다.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "식을 데코레이터로 사용하려면 괄호로 묶어야 합니다.", "Expression_or_comma_expected_1137": "식 또는 쉼표가 필요합니다.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "식이 너무 커서 표시할 수 없는 튜플 형식을 생성합니다.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "식에서는 너무 복잡해서 표시할 수 없는 공용 구조체 형식을 생성합니다.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "컴파일러가 기본 클래스 참조를 캡처하기 위해 사용하는 '_super'로 식이 확인됩니다.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "컴파일러가 'new.target' 메타 속성 참조를 캡처하기 위해 사용하는 변수 선언 '_newTarget'으로 식이 확인됩니다.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "컴파일러가 'this' 참조를 캡처하기 위해 사용하는 변수 선언 '_this'로 식이 확인됩니다.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "식 형식은 --isolatedDeclarations로 유추할 수 없습니다.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Extends 절에는 --isolatedDeclarations가 있는 식을 포함할 수 없습니다.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "유추된 형식 '{0}'에 대한 extends 절이 '{1}' 비공개 이름을 가지고 있거나 사용 중입니다.", - "Extract_base_class_to_variable_90064": "변수에 기본 클래스 추출", - "Extract_binding_expressions_to_variable_90066": "변수에 바인딩 식 추출", "Extract_constant_95006": "상수 추출", - "Extract_default_export_to_variable_90065": "변수로 기본 내보내기 추출", "Extract_function_95005": "함수 추출", "Extract_to_0_in_1_95004": "{1}의 {0}(으)로 추출", "Extract_to_0_in_1_scope_95008": "{1} 범위의 {0}(으)로 추출", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "인터페이스로 추출", "Extract_to_type_alias_95078": "형식 별칭으로 추출", "Extract_to_typedef_95079": "Typedef로 추출", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "변수로 추출하고 '{0} as typeof {0}'(으)로 바꾸기", "Extract_type_95077": "형식 추출", "FILE_6035": "파일", "FILE_OR_DIRECTORY_6040": "파일 또는 디렉터리", - "Failed_to_find_peerDependency_0_6283": "peerDependency '{0}'을(를) 찾지 못했습니다.", - "Failed_to_resolve_under_condition_0_6415": "조건 '{0}'에서 확인하지 못했습니다.", + "Failed_to_parse_file_0_Colon_1_5014": "'{0}' 파일 구문 분석 실패: {1}.", "Fallthrough_case_in_switch_7029": "switch에 Fallthrough case가 있습니다.", "File_0_does_not_exist_6096": "'{0}' 파일이 없습니다.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "이전 캐시된 검색에 따라 '{0}' 파일이 존재하지 않습니다.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "'{0}' 파일이 있습니다. 이 파일을 이름 확인 결과로 사용하세요.", "File_0_exists_according_to_earlier_cached_lookups_6239": "파일 '{0}'은(는) 이전 캐시된 검색에 따라 존재합니다.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "'{0}' 파일이 있습니다. 이 파일을 이름 확인 결과로 사용하세요.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "'{0}' 파일의 확장명이 지원되지 않습니다. 지원되는 확장명은 {1}뿐입니다.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "'{0}' 파일은 확장명이 지원되지 않으므로 건너뜁니다.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "'{0}' 파일은 JavaScript 파일입니다. 'allowJs' 옵션을 사용하도록 설정하시겠습니까?", "File_0_is_not_a_module_2306": "'{0}' 파일은 모듈이 아닙니다.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "'{0}' 파일이 '{1}' 프로젝트의 파일 목록에 나열되지 않습니다. 프로젝트는 모든 파일을 나열하거나 'include' 패턴을 사용해야 합니다.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "'{0}' 파일이 'rootDir' '{1}' 아래에 있지 않습니다. 'rootDir'에는 모든 소스 파일이 포함되어 있어야 합니다.", "File_0_not_found_6053": "파일 '{0}'을(를) 찾을 수 없습니다.", "File_Management_6245": "파일 관리", - "File_appears_to_be_binary_1490": "파일이 이진 파일인 것 같습니다.", "File_change_detected_Starting_incremental_compilation_6032": "파일 변경이 검색되었습니다. 증분 컴파일을 시작하는 중...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "'{0}'에 \"type\" 필드가 없으므로 파일이 CommonJS 모듈입니다.", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "'{0}'에 값이 \"module\"이 아닌 \"type\" 필드가 있으므로 파일이 CommonJS 모듈입니다.", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "파일은 프로젝트 참조 소스 '{0}'의 출력입니다.", "File_is_source_from_referenced_project_specified_here_1416": "파일은 여기에 지정된 참조된 프로젝트의 소스입니다.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "'{0}' 파일 이름은 이미 포함된 '{1}' 파일 이름과 대/소문자만 다릅니다.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "파일 이름 '{0}'에는 '{1}' 확장명이 있습니다. 대신 '{2}'을(를) 조회합니다.", "File_name_0_has_a_1_extension_stripping_it_6132": "파일 이름 '{0}'에 '{1}' 확장명이 있어 제거하는 중입니다.", "File_redirects_to_file_0_1429": "파일은 '{0}' 파일로 리디렉션됩니다.", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "파일 사양은 재귀 디렉터리 와일드카드('**') 뒤에 나타나는 부모 디렉터리('..')를 포함할 수 없습니다. '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "'await'가 누락되었을 수 있는 모든 식 수정", "Fix_all_implicit_this_errors_95107": "모든 암시적 'this' 오류 수정", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "비동기 함수의 모든 잘못된 반환 형식 수정", - "Fix_all_with_type_only_imports_95182": "형식 전용 가져오기를 사용하여 모두 수정", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'For await' 루프는 클래스 정적 블록 내에서 사용할 수 없습니다.", "Found_0_errors_6217": "{0}개 오류가 발견되었습니다.", "Found_0_errors_Watching_for_file_changes_6194": "{0}개 오류가 발견되었습니다. 파일이 변경되었는지 확인하는 중입니다.", "Found_0_errors_in_1_files_6261": "{1} 파일에서 {0} 오류를 찾았습니다.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "{1}에서 시작하는 동일한 파일에서 {0}개의 오류를 찾았습니다.", "Found_1_error_6216": "1개 오류가 발견되었습니다.", "Found_1_error_Watching_for_file_changes_6193": "1개 오류가 발견되었습니다. 파일이 변경되었는지 확인하는 중입니다.", - "Found_1_error_in_0_6259": "{0}에서 1개의 오류를 찾았습니다.", + "Found_1_error_in_1_6259": "{1}에서 1개의 오류를 찾았습니다.", "Found_package_json_at_0_6099": "'{0}'에서 'package.json'을 찾았습니다.", - "Found_peerDependency_0_with_1_version_6282": "'{1}' 버전이 있는 peerDependency '{0}'을(를) 찾았습니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "'ES5'를 대상으로 하는 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "'ES5'를 대상으로 하는 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 클래스 정의는 자동으로 strict 모드가 됩니다.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "'ES5'를 대상으로 하는 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 모듈은 자동으로 strict 모드가 됩니다.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 클래스 정의는 자동으로 strict 모드가 됩니다.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "'ES3' 또는 'ES5'를 대상으로 할 경우 strict 모드의 블록 내에서 함수 선언을 사용할 수 없습니다. 모듈은 자동으로 strict 모드가 됩니다.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "반환 형식 주석이 없는 함수 식에는 암시적으로 '{0}' 반환 형식이 포함됩니다.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "함수 구현이 없거나 선언 바로 다음에 나오지 않습니다.", "Function_implementation_name_must_be_0_2389": "함수 구현 이름이 '{0}'이어야 합니다.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "반환 형식 주석이 없고 반환 식 중 하나에서 직간접적으로 참조되므로 함수에는 암시적으로 반환 형식 'any'가 포함됩니다.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "함수에 끝 return 문이 없으며 반환 형식에 'undefined'가 포함되지 않습니다.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "함수에는 --isolatedDeclarations가 있는 명시적 반환 형식 주석이 있어야 합니다.", "Function_not_implemented_95159": "함수가 구현되지 않았습니다.", "Function_overload_must_be_static_2387": "함수 오버로드는 정적이어야 합니다.", "Function_overload_must_not_be_static_2388": "함수 오버로드는 정적이 아니어야 합니다.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "이벤트 추적 및 형식 목록을 생성합니다.", "Generates_corresponding_d_ts_file_6002": "해당 '.d.ts' 파일을 생성합니다.", "Generates_corresponding_map_file_6043": "해당 '.map' 파일을 생성합니다.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "생성기에 암시적으로 '{0}' yield 형식이 있습니다. 반환 형식 주석을 제공하는 것이 좋습니다.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "생성기는 값을 생성하지 않으므로 암시적으로 yield 형식 '{0}'입니다. 반환 형식 주석을 제공하는 것이 좋습니다.", "Generators_are_not_allowed_in_an_ambient_context_1221": "생성기는 앰비언트 컨텍스트에서 사용할 수 없습니다.", "Generic_type_0_requires_1_type_argument_s_2314": "'{0}' 제네릭 형식에 {1} 형식 인수가 필요합니다.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "제네릭 형식 '{0}'에 {1} 및 {2} 사이의 형식 인수가 필요합니다.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "식별자가 필요합니다.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "식별자가 필요합니다. '__esModule'은 ECMAScript 모듈을 변환할 때 내보낸 표식으로 예약되어 있습니다.", "Identifier_or_string_literal_expected_1478": "식별자 또는 문자열 리터럴이 필요합니다.", - "Identifier_string_literal_or_number_literal_expected_1496": "식별자, 문자열 리터럴 또는 숫자 리터럴이 필요합니다.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' 패키지가 이 모듈을 실제로 공개하는 경우 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' 수정을 위한 끌어오기 요청을 보내는 것이 좋습니다.", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' 패키지가 실제로 이 모듈을 노출하는 경우 'declare module {1}';'이(가) 포함된 새 선언(.d.ts) 파일을 추가해 보세요.", "Ignore_this_error_message_90019": "이 오류 메시지 무시", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "'{0}' 인터페이스 구현", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "내보낸 클래스 '{0}'의 Implements 절이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "런타임에는 'symbol'을 'string'으로 암시적으로 변환할 수 없습니다. 이 식을 'String(...)'으로 래핑하는 것이 좋습니다.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "'{0}' 가져오기는 이 파일에 사용된 전역 값과 충돌하므로 'isolatedModules'를 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 선언해야 합니다.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "'{0}' 가져오기는 로컬 값과 충돌하므로 'isolatedModules'를 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 선언해야 합니다.", "Import_0_from_1_90013": "\"{1}\"에서 '{0}'을(를) 가져옵니다.", "Import_assertion_values_must_be_string_literal_expressions_2837": "가져오기 어설션 값은 문자열 리터럴 ㅁ이이어야 합니다.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "CommonJS 'require' 호출로 컴파일되는 문에서는 가져오기 어설션을 사용할 수 없습니다.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "가져오기 어설션은 '--module' 옵션이 'esnext', 'node18', 'nodenext' 또는 'preserve'로 설정된 경우에만 지원됩니다.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "commonjs 'require' 호출로 변환되는 명령문에는 가져오기 어설션이 허용되지 않습니다.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "가져오기 어설션은 '--module' 옵션이 'esnext' 또는 'nodenext'로 설정된 경우에만 지원됩니다.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "가져오기 어설션은 형식 전용 가져오기 또는 내보내기에서 사용할 수 없습니다.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "가져오기 어설션이 가져오기 특성으로 바뀌었습니다. 'assert' 대신 'with'를 사용합니다.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "ECMAScript 모듈을 대상으로 하는 경우 할당 가져오기를 사용할 수 없습니다. 대신 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' 또는 다른 모듈 형식 사용을 고려하세요.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "가져오기 특성 값은 문자열 리터럴 식이어야 합니다.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "CommonJS 'require' 호출로 컴파일되는 문에서는 가져오기 특성을 사용할 수 없습니다.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "가져오기 특성은 '--module' 옵션이 'esnext', 'node18', 'nodenext' 또는 'preserve'로 설정된 경우에만 지원됩니다.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "가져오기 특성은 형식 전용 가져오기 또는 내보내기에서 사용할 수 없습니다.", "Import_declaration_0_is_using_private_name_1_4000": "가져오기 선언 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 사용하고 있습니다.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "가져오기 선언이 '{0}'의 로컬 선언과 충돌합니다.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "네임스페이스의 가져오기 선언은 모듈을 참조할 수 없습니다.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "compilerOptions에 지정된 대로 'importHelpers'를 가져오기 위해 packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "'jsx' 및 'jsxs' 팩터리 함수를 가져오기 위해 packageId가 '{2}'인 '{1}' 파일에서 {0}을(를) 통해 가져왔습니다.", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "'module'이 '{0}'(으)로 설정된 경우 JSON 파일을 ECMAScript 모듈로 가져오려면 'type: \"json\"' 가져오기 특성이 필요합니다.", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "가져오기는 모듈 확대에서 허용되지 않습니다. 내보내기를 바깥쪽 외부 모듈로 이동하세요.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "앰비언트 열거형 선언에서 멤버 이니셜라이저는 상수 식이어야 합니다.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "다중 선언이 포함된 열거형에서는 하나의 선언만 첫 번째 열거형 요소에 대한 이니셜라이저를 생략할 수 있습니다.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "내보낸 JavaScript 내에 sourcemap 파일을 포함합니다.", "Includes_imports_of_types_referenced_by_0_90054": "'{0}'에서 참조하는 유형의 가져오기를 포함합니다.", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "--watch를 포함하면 -w는 파일 변경 내용에 대한 현재 프로젝트 감시를 시작합니다. 설정되면 다음을 사용하여 조사식 모드를 구성할 수 있습니다.", - "Incomplete_quantifier_Digit_expected_1505": "불완전한 수량자입니다. 숫자가 필요합니다.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "'{1}' 형식에 인덱스 시그니처 유형 '{0}'이(가) 없습니다.", "Index_signature_in_type_0_only_permits_reading_2542": "'{0}' 형식의 인덱스 시그니처는 읽기만 허용됩니다.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "병합된 선언 '{0}'의 개별 선언은 모두 내보내 졌거나 모두 로컬이어야 합니다.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "사용량에서 매개 변수 형식 유추", "Infer_this_type_of_0_from_usage_95080": "사용량에서 '{0}'의 'this' 형식 유추", "Infer_type_of_0_from_usage_95011": "사용량에서 '{0}'의 형식 유추", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "--isolatedDeclarations에서는 클래스 식의 유추가 지원되지 않습니다.", "Initialize_property_0_in_the_constructor_90020": "생성자에서 속성 '{0}' 초기화", "Initialize_static_property_0_90021": "정적 속성 '{0}' 초기화", "Initializer_for_property_0_2811": "'{0}' 속성에 대한 이니셜라이저", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "인스턴스 멤버 변수 '{0}'의 이니셜라이저는 생성자에 선언된 식별자 '{1}'을(를) 참조할 수 없습니다.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "이니셜라이저는 이 바인딩 요소에 대한 값을 제공하지 않으며 바인딩 요소에는 기본값이 없습니다.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "앰비언트 컨텍스트에서는 이니셜라이저가 허용되지 않습니다.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "TypeScript 프로젝트를 초기화하고 tsconfig.json 파일을 만듭니다.", - "Inline_variable_95184": "인라인 변수", "Insert_command_line_options_and_files_from_a_file_6030": "파일에서 명령줄 옵션 및 파일을 삽입합니다.", "Install_0_95014": "'{0}' 설치", "Install_all_missing_types_packages_95033": "누락된 형식 패키지 모두 설치", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "확대의 모듈 이름이 잘못되었습니다. '{0}' 모듈을 찾을 수 없습니다.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "새 식의 선택적 체인이 잘못되었습니다. '{0}()'을 호출하시겠습니까?", "Invalid_reference_directive_syntax_1084": "'reference' 지시문 구문이 잘못되었습니다.", - "Invalid_syntax_in_decorator_1498": "데코레이터의 구문이 잘못되었습니다.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}'을(를) 잘못 사용했습니다. 해당 항목은 클래스 정적 블록 내에서 사용할 수 없습니다.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}'을(를) 잘못 사용했습니다. 모듈은 자동으로 strict 모드가 됩니다.", "Invalid_use_of_0_in_strict_mode_1100": "strict 모드에서 '{0}'을(를) 잘못 사용했습니다.", - "Invalid_value_for_ignoreDeprecations_5103": "'--ignoreDeprecations'의 값이 잘못되었습니다.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory'에 대한 값이 잘못되었습니다. '{0}'이(가) 올바른 식별자 또는 정규화된 이름이 아닙니다.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory'의 값이 잘못되었습니다. '{0}'은(는) 올바른 식별자 또는 정규화된 이름이 아닙니다.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace'의 값이 잘못되었습니다. '{0}'은(는) 올바른 식별자가 아닙니다.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "해당 요소 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "해당 인스턴스 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "해당 반환 형식 '{0}'은(는) 유효한 JSX 요소가 아닙니다.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "해당 '{0}' 형식은 올바른 JSX 요소 형식이 아닙니다.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}'이(가) 'extends {2}' 절과 일치하지 않습니다.", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc '@{0}'이(가) 클래스에 연결되어 있지 않습니다.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...'은 시그니처의 마지막 매개 변수에만 나타날 수 있습니다.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' 태그의 이름이 '{0}'인데 해당 이름의 매개 변수가 없습니다.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' 태그에 '{0}' 이름이 있지만, 해당 이름의 매개 변수가 없습니다. 배열 형식이 있는 경우 '인수'를 일치시킵니다.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef를 TypeScript 형식으로 변환할 수 있습니다.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' 태그는 형식 주석을 포함하거나, '@property' 또는 '@member' 태그 앞에 와야 합니다.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedef를 TypeScript 형식으로 변환할 수 있습니다.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc 유형은 문서 주석 내에서만 사용될 수 있습니다.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc 형식이 TypeScript 형식으로 이동될 수 있습니다.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX 특성에는 비어 있지 않은 '식'만 할당할 수 있습니다.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "포함할 형식 정의가 있는 폴더의 목록입니다.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "런타임에 프로젝트의 구조를 나타내는 결합된 콘텐츠가 있는 루트 폴더의 목록입니다.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "루트 디렉터리 '{1}'에서 '{0}'을(를) 로드하고 있습니다. 후보 위치: '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "'node_modules' 폴더에서 '{0}' 모듈을 로드하고 있습니다. 대상 파일 형식은 '{1}'입니다.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "모듈을 파일/폴더로 로드하고 있습니다. 후보 모듈 위치는 '{0}', 대상 파일 형식은 '{1}'입니다.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "'node_modules' 폴더에서 '{0}' 모듈을 로드하고 있습니다. 대상 파일 형식은 '{1}'입니다.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "모듈을 파일/폴더로 로드하고 있습니다. 후보 모듈 위치는 '{0}', 대상 파일 형식은 '{1}'입니다.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "로캘이 또는 - 형식이어야 합니다. 예를 들어 '{0}' 또는 '{1}'입니다.", "Log_paths_used_during_the_moduleResolution_process_6706": "'moduleResolution' 프로세스 동안 사용된 로그 경로입니다.", "Longest_matching_prefix_for_0_is_1_6108": "'{0}'에 대해 일치하는 가장 긴 접두사는 '{1}'입니다.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "keyof가 문자열, 숫자 또는 기호 대신 문자열만 반환하도록 합니다. 레거시 옵션입니다.", "Make_super_call_the_first_statement_in_the_constructor_90002": "생성자의 첫 번째 문을 'super()'로 호출", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "매핑된 개체 형식에는 'any' 템플릿 형식이 암시적으로 포함됩니다.", - "Mark_array_literal_as_const_90070": "배열 리터럴을 const로 표시", "Matched_0_condition_1_6403": "'{0}' 조건 '{1}'과(와) 일치합니다.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "기본적으로 일치되는 포함 패턴 '**/*'", "Matched_by_include_pattern_0_in_1_1407": "'{1}'의 포함 패턴 '{0}'(으)로 일치되었습니다.", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "'{0}' 메서드는 abstract로 표시되어 있으므로 구현이 있을 수 없습니다.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "내보낸 인터페이스의 '{0}' 메서드가 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "내보낸 인터페이스의 '{0}' 메서드가 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "메서드에는 --isolatedDeclarations가 있는 명시적 반환 형식 주석이 있어야 합니다.", "Method_not_implemented_95158": "메서드가 구현되지 않았습니다.", "Modifiers_cannot_appear_here_1184": "한정자를 여기에 표시할 수 없습니다.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "'{0}' 모듈은 '{1}' 플래그를 사용하는 가져온 기본값이어야만 합니다.", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "'{0}' 모듈에 내보낸 멤버 '{1}'이(가) 없습니다. 대신 '{0}에서 {1} 가져오기'를 사용하시겠습니까?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "'{0}' 모듈은 이름이 같은 로컬 선언으로 숨겨집니다.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "모듈 '{0}'은(는) 'export ='을 사용하며 'export *'와 함께 사용할 수 없습니다.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "이 파일은 수정되지 않았으므로 '{0}' 모듈은 '{1}'에서 선언된 앰비언트 모듈로 확인되었습니다.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "'{0}' 모듈은 '{1}'에서 지역으로 선언된 앰비언트 모듈로 확인되었습니다.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "'{0}' 모듈이 '{1}'(으)로 확인되었지만 '--allowArbitraryExtensions'가 설정되지 않았습니다.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "모듈 '{0}'이(가) '{1}'(으)로 확인되었지만 '--jsx'가 설정되지 않았습니다.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "'{0}' 모듈이 '{1}'(으)로 확인되었지만 '--resolveJsonModule'이 사용되지 않았습니다.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "모듈 선언 이름에는 ' 또는 \" 인용 문자열만 사용할 수 있습니다.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "'rootDirs'를 사용한 모듈 확인에 실패했습니다.", "Modules_6244": "모듈", "Move_labeled_tuple_element_modifiers_to_labels_95117": "레이블이 지정된 튜플 요소 한정자를 레이블로 이동", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "기본 내보내기에서 식을 변수로 이동하고 형식 주석을 추가합니다.", "Move_to_a_new_file_95049": "새 파일로 이동", - "Move_to_file_95178": "파일로 이동", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "여러 개의 연속된 숫자 구분 기호는 허용되지 않습니다.", "Multiple_constructor_implementations_are_not_allowed_2392": "여러 생성자 구현은 허용되지 않습니다.", "NEWLINE_6061": "줄 바꿈", "Name_is_not_valid_95136": "이름이 잘못되었습니다.", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "명명된 캡처 그룹은 'ES2018' 이상을 대상으로 하는 경우에만 사용할 수 있습니다.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "이름이 같은 명명된 캡처 그룹은 상호 배타적이어야 합니다.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "'module'이 '{0}'(으)로 설정된 경우 JSON 파일에서 ECMAScript 모듈로 명명된 가져오기를 사용할 수 없습니다.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "명명된 속성 '{0}'의 형식 '{1}' 및 '{2}'이(가) 동일하지 않습니다.", "Namespace_0_has_no_exported_member_1_2694": "'{0}' 네임스페이스에 내보낸 멤버 '{1}'이(가) 없습니다.", "Namespace_must_be_given_a_name_1437": "네임스페이스에 이름을 지정해야 합니다.", "Namespace_name_cannot_be_0_2819": "네임스페이스 이름은 '{0}'일 수 없습니다.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "'{0}'이(가) 사용하도록 설정된 경우 전역 스크립트 파일에서는 네임스페이스를 사용할 수 없습니다. 이 파일이 전역 스크립트가 아닌 경우 'moduleDetection'을 'force'로 설정하거나 빈 'export {}' 문을 추가합니다.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "데코레이터와 한정자를 'this' 매개 변수에 적용할 수 없습니다.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "기본 생성자에 지정된 수의 형식 인수가 없습니다.", "No_constituent_of_type_0_is_callable_2755": "'{0}' 형식의 구성원을 호출할 수 없습니다.", "No_constituent_of_type_0_is_constructable_2759": "'{0}' 형식의 구성원을 생성할 수 없습니다.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "이 호출과 일치하는 오버로드가 없습니다.", "No_type_could_be_extracted_from_this_type_node_95134": "이 형식 노드에서 형식을 추출할 수 없습니다.", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "줄임 속성 '{0}'의 범위에 값이 없습니다. 값을 선언하거나 이니셜라이저를 제공합니다.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "'{0}' 비추상 클래스는 '{2}' 클래스에서 상속된 추상 멤버 '{1}'을(를) 구현하지 않습니다.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "비추상 클래스 '{0}'에 '{1}'의 다음 멤버에 대한 구현이 없습니다. {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "비추상 클래스 '{0}'에 '{1}'의 다음 멤버에 대한 구현이 없습니다. {2} 및 {3} 등.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "비추상 클래스 '{0}'은(는) '{2}' 클래스에서 상속된 추상 멤버 '{1}'을(를) 구현하지 않습니다.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "비추상 클래스 식은 '{1}' 클래스에서 상속된 추상 멤버 '{0}'을(를) 구현하지 않습니다.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "비추상 클래스 식에 '{0}'의 다음 멤버에 대한 구현이 없습니다. {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "비추상 클래스 식에 '{0}'의 다음 멤버에 대한 구현이 없습니다. {1} 및 {2} 등.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "null이 아닌 어설션은 TypeScript 파일에서만 사용할 수 있습니다.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "'baseUrl'이 설정되지 않은 경우 상대 경로가 아닌 경로는 허용되지 않습니다. 선행 './'를 잊으셨습니까?", "Non_simple_parameter_declared_here_1348": "여기서 단순하지 않은 매개 변수가 선언되었습니다.", "Not_all_code_paths_return_a_value_7030": "일부 코드 경로가 값을 반환하지 않습니다.", "Not_all_constituents_of_type_0_are_callable_2756": "'{0}' 형식의 일부 구성원을 호출할 수 없습니다.", "Not_all_constituents_of_type_0_are_constructable_2760": "'{0}' 형식의 일부 구성원을 생성할 수 없습니다.", - "Numbers_out_of_order_in_quantifier_1506": "수량자의 숫자가 순서를 벗어났습니다.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "절대값이 2^53보다 크거나 같은 숫자 리터럴은 너무 커서 정수로 정확하게 표시할 수 없습니다.", "Numeric_separators_are_not_allowed_here_6188": "숫자 구분 기호는 여기에서 허용되지 않습니다.", "Object_is_of_type_unknown_2571": "개체가 '알 수 없는' 형식입니다.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "개체 리터럴은 알려진 속성만 지정할 수 있으며 '{1}' 형식에 '{0}'이(가) 없습니다.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "개체 리터럴은 알려진 속성만 지정할 수 있지만 '{1}' 형식에 '{0}'이(가) 없습니다. '{2}'을(를) 쓰려고 했습니까?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "개체 리터럴의 '{0}' 속성에는 암시적으로 '{1}' 형식이 포함됩니다.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "약식 속성이 포함된 개체는 --isolatedDeclarations를 사용하여 유추할 수 없습니다.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "분산 할당이 포함된 개체는 --isolatedDeclarations를 사용하여 유추할 수 없습니다.", "Octal_digit_expected_1178": "8진수가 있어야 합니다.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "문자 클래스에서는 8진수 이스케이프 시퀀스 및 역참조를 사용할 수 없습니다. 이 시퀀스가 이스케이프 시퀀스로 의도된 경우 대신 '{0}' 구문을 사용합니다.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "8진수 이스케이프 시퀀스는 허용되지 않습니다. '{0}' 구문을 사용합니다.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "8진수 리터럴은 허용되지 않습니다. '{0}' 구문을 사용합니다.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "'{0}.{1}'의 한 값은 '{2}' 문자열이며, 다른 값은 알 수 없는 숫자 값으로 간주됩니다.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "8진수 리터럴 형식은 ES2015 구문을 사용해야 합니다. '{0}' 구문을 사용하세요.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "8진수 리터럴은 열거형 멤버 이니셜라이저에서 사용할 수 없습니다. '{0}' 구문을 사용하세요.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "strict 모드에서는 8진수 리터럴이 허용되지 않습니다.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "ECMAScript 5 이상을 대상으로 하는 경우 8진수 리터럴을 사용할 수 없습니다. '{0}' 구문을 사용하세요.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' 문에는 단일 변수 선언만 허용됩니다.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' 문에는 단일 변수 선언만 허용됩니다.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "void 함수만 'new' 키워드로 호출할 수 있습니다.", "Only_ambient_modules_can_use_quoted_names_1035": "앰비언트 모듈만 따옴표가 붙은 이름을 사용할 수 있습니다.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "'amd' 및 'system' 모듈만 --{0}과(와) 함께 사용할 수 있습니다.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "const 배열만 --isolatedDeclarations를 사용하여 유추할 수 있습니다.", "Only_emit_d_ts_declaration_files_6014": "'.d.ts' 선언 파일만 내보냅니다.", + "Only_named_exports_may_use_export_type_1383": "명명된 내보내기에서만 'export type'을 사용할 수 있습니다.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "숫자 열거형에는 컴퓨팅된 구성원만 사용할 수 있는데 이 식에는 '{0}' 형식이 있습니다. 전체 검사가 필요하지 않은 경우에는 개체 리터럴을 대신 사용해 보세요.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "JavaScript 파일은 출력하지 않고 d.ts 파일만 출력합니다.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "기본 클래스의 공용 및 보호된 메서드만 'super' 키워드를 통해 액세스할 수 있습니다.", "Operator_0_cannot_be_applied_to_type_1_2736": "'{0}' 연산자는 '{1}' 형식에 적용할 수 없습니다.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "'{0}' 연산자를 '{1}' 및 '{2}' 형식에 적용할 수 없습니다.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "연산자는 문자 클래스 내에서 혼합될 수 없습니다. 대신 중첩 클래스에서 래핑합니다.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "편집할 때 다중 프로젝트 참조 검사에서 프로젝트를 옵트아웃합니다.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "'{0}={1}' 옵션이 제거되었습니다. 구성에서 제거하세요.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "'{0}={1}' 옵션은 더 이상 사용되지 않으며 TypeScript {2}에서 작동하지 않습니다. 이 오류를 무시하려면 compilerOption '\"ignoreDeprecations\": \"{3}\"'을(를) 지정합니다.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "'{0}' 옵션은 'tsconfig. json' 파일에만 지정하거나 명령줄에서 'false' 또는 'null'로 설정할 수 있습니다.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "'{0}' 옵션은 'tsconfig. json' 파일에만 지정하거나 명령줄에서 'null'로 설정할 수 있습니다.", - "Option_0_can_only_be_specified_on_command_line_6266": "'{0}' 옵션은 명령줄에서만 지정할 수 있습니다.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "'{0}' 옵션은 '--inlineSourceMap' 옵션 또는 '--sourceMap' 옵션이 제공되는 경우에만 사용할 수 있습니다.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "'moduleResolution'이 'node16', 'nodenext' 또는 'bundler'로 설정된 경우에만 '{0}' 옵션을 사용할 수 있습니다.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "'{0}' 옵션은 'module'이 'preserve' 또는 'es2015' 이상으로 설정된 경우에만 사용할 수 있습니다.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "'jsx' 옵션이 '{1}'인 경우 '{0}' 옵션을 지정할 수 없습니다.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "'target' 옵션이 'ES3'인 경우 '{0}' 옵션을 지정할 수 없습니다.", "Option_0_cannot_be_specified_with_option_1_5053": "'{0}' 옵션은 '{1}' 옵션과 함께 지정할 수 없습니다.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "'{1}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "'{1}' 또는 '{2}' 옵션을 지정하지 않고 '{0}' 옵션을 지정할 수 없습니다.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "‘{0}’ 옵션이 제거되었습니다. 구성에서 제거하세요.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "'{0}’ 옵션은 더 이상 사용되지 않으며 TypeScript {1}에서 작동하지 않습니다. 이 오류를 무시하려면 compilerOption '\"ignoreDeprecations\": \"{2}\"'을(를) 지정합니다.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "'{0}' 옵션은 중복되므로 '{1}' 옵션으로 지정할 수 없습니다.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "'allowImportingTsExtensions' 옵션은 'noEmit' 또는 'emitDeclarationOnly'가 설정된 경우에만 사용할 수 있습니다.", "Option_build_must_be_the_first_command_line_argument_6369": "'--build' 옵션은 첫 번째 명령줄 인수여야 합니다.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "'--incremental' 옵션은 tsconfig를 사용하거나 단일 파일로 내보내서 지정하거나 '--tsBuildInfoFile' 옵션을 지정할 때만 지정할 수 있습니다.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "'isolatedModules' 옵션은 '--module' 옵션을 지정하거나 'target' 옵션이 'ES2015' 이상인 경우에만 사용할 수 있습니다.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "'module' 옵션이 ‘{1}'(으)로 설정된 경우 'moduleResolution' 옵션을 '{0}'(또는 지정되지 않은 상태로 두어야 함)(으)로 설정해야 합니다.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "'moduleResolution' 옵션이 '{1}'으(로) 설정된 경우 'module' 옵션을 '{0}'(으)로 설정해야 합니다.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "'{0}'이(가) 사용하도록 설정된 경우 'preserveConstEnums' 옵션을 사용하지 않도록 설정할 수 없습니다.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules'가 사용하도록 설정된 경우 'preserveConstEnums' 옵션을 사용하지 않도록 설정할 수 없습니다.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "'preserveValueImports' 옵션은 'module'이 'es2015' 이상으로 설정된 경우에만 사용할 수 있습니다.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "명령줄에서 'project' 옵션을 원본 파일과 혼합하여 사용할 수 없습니다.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "'moduleResolution'이 'classic'으로 설정된 경우 '--resolveJsonModule' 옵션을 지정할 수 없습니다.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "'module'이 'none', 'system' 또는 'umd'로 설정된 경우 '--resolveJsonModule' 옵션을 지정할 수 없습니다.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "'module'이 'UMD', 'AMD' 또는 'System'으로 설정된 경우 'verbatimModuleSyntax' 옵션을 사용할 수 없습니다.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "'--resolveJsonModule' 옵션은 모듈 코드 생성이 'commonjs', 'amd', 'es2015' 또는 'esNext'일 경우에만 지정할 수 있습니다.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' 모듈 확인 전략 없이 '--resolveJsonModule' 옵션을 지정할 수 없습니다.", "Options_0_and_1_cannot_be_combined_6370": "'{0}' 및 '{1}' 옵션은 조합할 수 없습니다.", "Options_Colon_6027": "옵션:", "Output_Formatting_6256": "출력 서식 지정", "Output_compiler_performance_information_after_building_6615": "빌드 후 컴파일러 성능 정보를 출력합니다.", "Output_directory_for_generated_declaration_files_6166": "생성된 선언 파일의 출력 디렉터리입니다.", + "Output_file_0_from_project_1_does_not_exist_6309": "프로젝트 '{1}'의 출력 파일 '{0}'이(가) 존재하지 않습니다.", "Output_file_0_has_not_been_built_from_source_file_1_6305": "출력 파일 '{0}'이(가) 소스 파일 '{1}'에서 빌드되지 않았습니다.", "Output_from_referenced_project_0_included_because_1_specified_1411": "'{1}'이(가) 지정되었기 때문에 참조된 프로젝트 '{0}'의 출력이 포함됩니다.", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "'--module'이 'none'으로 지정되었기 때문에 참조된 프로젝트 '{0}'의 출력이 포함됩니다.", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "매개 변수 선언이 필요합니다.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "매개 변수에 이름이 있지만 형식이 없습니다. '{0}: {1}'을(를) 사용하시겠습니까?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "매개 변수 한정자는 TypeScript 파일에서만 사용할 수 있습니다.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "매개 변수에는 --isolatedDeclarations가 있는 명시적 형식 주석이 있어야 합니다.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "내보낸 클래스에 있는 공용 setter '{0}'의 매개 변수 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "내보낸 클래스에 있는 공용 setter '{0}'의 매개 변수 형식이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "내보낸 클래스에 있는 공용 정적 setter '{0}'의 매개 변수 형식이 프라이빗 모듈 '{2}'의 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "컴파일 후 내보낸 파일의 이름을 출력합니다.", "Print_this_message_6017": "이 메시지를 출력합니다.", "Private_accessor_was_defined_without_a_getter_2806": "프라이빗 접근자가 getter 없이 정의되었습니다.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "'{0}' 프라이빗 필드는 외부 클래스에서 선언되어야 합니다.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "변수 선언에서 프라이빗 식별자를 사용할 수 없습니다.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "클래스 본문 외부에서 프라이빗 식별자를 사용할 수 없습니다.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "비공개 식별자는 클래스 본문에서만 허용되며 클래스 멤버 선언의 일부, 속성 액세스 또는 'in' 식의 왼쪽에서만 사용할 수 있습니다.", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "프라이빗 식별자는 ECMAScript 2015 이상을 대상으로 지정할 때만 사용할 수 있습니다.", "Private_identifiers_cannot_be_used_as_parameters_18009": "프라이빗 식별자는 매개 변수로 사용할 수 없습니다.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "형식 매개 변수에서 프라이빗 또는 보호된 멤버 '{0}'에 액세스할 수 없습니다.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "'{0}' 프로젝트는 '{1}' 종속성에 오류가 있기 때문에 빌드할 수 없습니다.", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "'{1}' 종속성이 빌드되지 않았기 때문에 '{0}' 프로젝트를 빌드할 수 없습니다.", "Project_0_is_being_forcibly_rebuilt_6388": "'{0}' 프로젝트가 강제로 재구축되고 있습니다.", - "Project_0_is_out_of_date_because_1_6420": "{1} 때문에 ' {0}' 프로젝트가 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "'{1}' buildinfo 파일이 '{2}' 파일이 컴파일의 루트 파일이었지만 더 이상 아님을 나타내므로 '{0}' 프로젝트는 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "'{1}' buildinfo 파일은 프로그램에서 오류를 보고해야 함을 나타내기 때문에 '{0}' 프로젝트는 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "buildinfo 파일 '{1}'이(가) 일부 변경 내용이 내보내지지 않았음을 나타내므로 프로젝트 '{0}'은(는) 최신 상태가 아닙니다.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "'{1}' buildinfo 파일이 compilerOptions에 변경이 있음을 나타내므로 '{0}' 프로젝트는 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "'{1}' 종속성이 최신 상태가 아니기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "출력 '{1}'이(가) 최신 입력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "'{1}' 출력 파일이 존재하지 않기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "'{0}' 프로젝트의 출력이 현재 버전 '{2}'과(와) 다른 '{1}' 버전으로 생성되었기 때문에 이 프로젝트가 최신 상태가 아닙니다.", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "'{1}' 종속성의 출력이 변경되었기 때문에 '{0}' 프로젝트가 최신 상태가 아닙니다.", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "'{1}' 파일을 읽는 동안 오류가 발생하여 프로젝트 '{0}'이(가) 만료되었습니다.", "Project_0_is_up_to_date_6361": "'{0}' 프로젝트가 최신 상태입니다.", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "최신 입력 '{1}'이(가) 출력 '{2}'보다 오래되었기 때문에 '{0}' 프로젝트가 최신 상태입니다.", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "초기화하기 전에 '{0}' 속성이 사용됩니다.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "'{0}' 속성이 '{1}' 형식에 없을 수 있습니다. '{2}'을(를) 사용하시겠습니까?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX 분배 특성의 '{0}' 속성을 대상 속성에 할당할 수 없습니다.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "내보낸 익명 클래스 형식의 '{0}' 속성은 비공개이거나 보호됨이 아닐 수 있습니다.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "내보낸 클래스 식의 속성 '{0}'이(가) 프라이빗이 아니거나 보호되지 않을 수 있습니다.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "내보낸 인터페이스의 '{0}' 속성이 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "내보낸 인터페이스의 '{0}' 속성이 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "'{0}' 형식의 '{1}' 속성을 '{2}' 인덱스 유형 '{3}'에 할당할 수 없습니다.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "'{0}' 속성은 '{1}'의 기본 속성을 덮어씁니다. 의도적인 경우 이니셜라이저를 추가합니다. 그렇지 않으면 'declare' 한정자를 추가하거나 중복 선언을 제거합니다.", "Property_assignment_expected_1136": "속성 할당이 필요합니다.", "Property_destructuring_pattern_expected_1180": "속성 구조 파괴 패턴이 필요합니다.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "속성에는 --isolatedDeclarations가 있는 명시적 형식 주석이 있어야 합니다.", "Property_or_signature_expected_1131": "속성 또는 서명이 필요합니다.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "속성 값은 문자열 리터럴, 숫자 리터럴, 'true', 'false', 'null', 개체 리터럴 또는 배열 리터럴이어야 합니다.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "'ES5'를 대상으로 할 경우 'for-of', 분산 및 파괴의 반복 가능한 개체를 완벽히 지원합니다.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "'ES5' 또는 'ES3'을 대상으로 할 경우 'for-of', spread 및 소멸의 반복 가능한 개체를 완벽히 지원합니다.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "내보낸 클래스의 공용 메서드 '{0}'이(가) 외부 모듈 {2}의 '{1}' 이름을 가지고 있거나 사용 중이지만 명명할 수 없습니다.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "내보낸 클래스의 공용 메서드 '{0}'이(가) 프라이빗 모듈 '{2}'의 '{1}' 이름을 가지고 있거나 사용 중입니다.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "내보낸 클래스의 공용 메서드의 '{0}'이(가) 프라이빗 이름 '{1}'을(를) 가지고 있거나 사용 중입니다.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "함수 매개 변수를 읽지 않으면 오류가 발생합니다.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "암시된 'any' 형식이 있는 식 및 선언에서 오류를 발생합니다.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "암시된 'any' 형식이 있는 'this' 식에서 오류를 발생합니다.", - "Range_out_of_order_in_character_class_1517": "문자 클래스의 범위가 순서를 벗어났습니다.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "'{0}'을 사용하도록 설정한 경우 형식을 다시 내보내려면 'export type'을 사용해야 합니다.", - "React_components_cannot_include_JSX_namespace_names_2639": "React 구성 요소에는 JSX 네임스페이스 이름을 포함할 수 없습니다.", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "'--isolatedModules' 플래그가 제공될 때 형식을 다시 내보내려면 'export type'을 사용해야 합니다.", "Redirect_output_structure_to_the_directory_6006": "출력 구조를 디렉터리로 리디렉션합니다.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "TypeScript에서 자동으로 로드되는 프로젝트 수를 줄입니다.", "Referenced_project_0_may_not_disable_emit_6310": "참조된 프로젝트 '{0}'은(는) 내보내기를 사용하지 않도록 설정할 수 없습니다.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "참조되는 프로젝트 '{0}'에는 \"composite\": true 설정이 있어야 합니다.", "Referenced_via_0_from_file_1_1400": "'{1}' 파일에서 '{0}'을(를) 통해 참조되었습니다.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "'--moduleResolution'이 'node16' 또는 'nodenext'인 경우 상대 가져오기 경로에는 ECMAScript 가져오기의 명시적 파일 확장자가 필요합니다. 가져오기 경로에 확장자를 추가하는 것을 고려하세요.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "'--moduleResolution'이 'node16' 또는 'nodenext'인 경우 상대 가져오기 경로에는 ECMAScript 가져오기의 명시적 파일 확장자가 필요합니다. '{0}'을(를) 사용하시겠습니까?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "상대 가져오기 경로는 '--moduleResolution'이 'node16' 또는 'nodenext'인 경우 EcmaScript 가져오기의 명시적 파일 확장자가 필요합니다. 가져오기 경로에 확장자를 추가하는 것을 고려하세요.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "상대 가져오기 경로는 '--moduleResolution'이 'node16' 또는 'nodenext'인 경우 EcmaScript 가져오기의 명시적 파일 확장자가 필요합니다. '{0}'을(를) 의미했나요?", "Remove_a_list_of_directories_from_the_watch_process_6628": "감시 프로세스에서 디렉터리 목록을 제거합니다.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "감시 모드의 처리에서 파일 목록을 제거합니다.", "Remove_all_unnecessary_override_modifiers_95163": "불필요한 'override' 한정자 모두 제거", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": ".js 파일의 오류를 보고합니다.", "Report_errors_on_unused_locals_6134": "사용되지 않은 로컬 항목에 대한 오류를 보고합니다.", "Report_errors_on_unused_parameters_6135": "사용되지 않은 매개 변수에 대한 오류를 보고합니다.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "다른 도구가 선언 파일을 간단하게 생성할 수 있도록 내보내기에서 충분한 주석이 필요합니다.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "요소 액세스를 사용하려면 인덱스 시그니처의 선언되지 않은 속성이 필요합니다.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "필수 형식 매개 변수는 선택적 형식 매개 변수 다음에 올 수 없습니다.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' 모듈에 대한 해결을 '{1}' 위치의 캐시에서 찾았습니다.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{1}' 위치의 캐시에서 형식 참조 지시어 '{0}'에 대한 해상도가 발견되었습니다.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "상대 이름이 아닌 이름을 확인하지 못했습니다. 최신 노드 확인 기능을 사용하지 않도록 설정하여 npm 라이브러리에 구성 업데이트가 필요한지 확인합니다.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "상대 이름이 아닌 이름을 확인하지 못했습니다. '--moduleResolution bundler'를 사용하여 프로젝트에 구성 업데이트가 필요한지 확인하려고 합니다.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "문자열 값 속성 이름에 대해서만 'keyof'를 확인합니다(숫자나 기호 아님).", - "Resolved_under_condition_0_6414": "조건 '{0}'에서 확인되었습니다.", "Resolving_in_0_mode_with_conditions_1_6402": "조건이 {1}인 {0} 모드에서 확인하는 중입니다.", "Resolving_module_0_from_1_6086": "======== '{1}'에서 '{0}' 모듈을 확인하는 중입니다. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "기본 URL '{1}' - '{2}'을(를) 기준으로 모듈 이름 '{0}'을(를) 확인하는 중입니다.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: '{1}', 루트 디렉터리: 설정되지 않음 ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: 설정되지 않음, 루트 디렉터리: '{1}' ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 형식 참조 지시문 '{0}'을(를) 확인하는 중입니다. 포함 파일: 설정되지 않음, 루트 디렉터리: 설정되지 않음 ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "사용자 지정 typeRoots를 지정하는 프로그램에 대한 형식 참조 지시문을 확인합니다. 'node_modules' 폴더에서 조회를 건너뜁니다.", "Resolving_with_primary_search_path_0_6121": "기본 검색 경로 '{0}'을(를) 사용하여 확인하는 중입니다.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Rest 매개 변수 '{0}'에는 암시적으로 'any[]' 형식이 포함됩니다.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Rest 매개 변수 '{0}'은(는) 암시적으로 'any[]' 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "이전 프로그램의 '{1}'에서 형식 참조 지시문 '{0}'의 해결 방법을 다시 사용 중이며 패키지 ID가 '{3}'인 '{2}'(으)로 해결되었습니다.", "Rewrite_all_as_indexed_access_types_95034": "인덱싱된 액세스 형식으로 모두 다시 작성", "Rewrite_as_the_indexed_access_type_0_90026": "인덱싱된 액세스 형식 '{0}'(으)로 다시 작성", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "출력 파일의 해당 JavaScript에 해당하는 상대 가져오기 경로에서 '.ts', '.tsx', '.mts' 및 '.cts' 파일 확장자를 다시 작성합니다.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "??의 오른쪽 피연산자는 왼쪽 피연산자가 nullish가 되지 않으므로 연결할 수 없습니다.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "루트 디렉터리를 확인할 수 없어 기본 검색 경로를 건너뜁니다.", "Root_file_specified_for_compilation_1427": "컴파일을 위해 지정된 루트 파일", "STRATEGY_6039": "전략", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "프로젝트의 증분 컴파일을 허용하도록 .tsbuildinfo 파일을 저장합니다.", "Saw_non_matching_condition_0_6405": "비일치 조건 '{0}'을(를) 확인했습니다.", "Scoped_package_detected_looking_in_0_6182": "범위가 지정된 패키지가 검색되었습니다. '{0}'에서 찾습니다.", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "대체 확장에 대한 모든 상위 node_modules 디렉터리 검색: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "기본 설정 확장에 대한 모든 상위 node_modules 디렉터리 검색: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "선택 항목이 유효한 하나의 문 또는 여러 문이 아닙니다.", "Selection_is_not_a_valid_type_node_95133": "선택 영역이 유효한 형식 노드가 아닙니다.", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "내보낸 JavaScript의 JavaScript 언어 버전을 설정하고 호환되는 라이브러리 선언을 포함합니다.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "자세한 진단 정보를 표시합니다.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "빌드될 항목 표시(또는 '--clean'으로 지정된 경우 삭제될 항목 표시)", "Signature_0_must_be_a_type_predicate_1224": "'{0}' 시그니처는 형식 조건자여야 합니다.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "서명 선언은 TypeScript 파일에서만 사용할 수 있습니다.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "업스트림 프로젝트에서 오류 발생 시 다운스트림 프로젝트 빌드를 건너뜁니다.", "Skip_type_checking_all_d_ts_files_6693": "모든 .d.ts 파일의 형식 검사를 건너뜁니다.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "TypeScript에 포함된 .d.ts 파일의 형식 검사를 건너뜁니다.", "Skip_type_checking_of_declaration_files_6012": "선언 파일 형식 검사를 건너뜁니다.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "절대 URI처럼 보이는 '{0}' 모듈을 건너뛰는 중입니다. 대상 파일 형식은 {1}입니다.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "'{0}' 프로젝트의 빌드는 '{1}' 종속성에 오류가 있기 때문에 건너뜁니다.", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "'{1}' 종속성이 빌드되지 않았기 때문에 '{0}' 프로젝트의 빌드를 건너뛰는 중", "Source_from_referenced_project_0_included_because_1_specified_1414": "'{1}'이(가) 지정되었기 때문에 참조된 프로젝트 '{0}'의 소스가 포함됩니다.", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "'--module'이 'none'으로 지정되었기 때문에 참조된 프로젝트 '{0}'의 소스가 포함됩니다.", "Source_has_0_element_s_but_target_allows_only_1_2619": "소스에 {0}개 요소가 있지만, 대상에서 {1}개만 허용합니다.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "TypeScript 감시 모드의 작동 방식을 지정합니다.", "Specify_library_files_to_be_included_in_the_compilation_6079": "컴파일에 포함할 라이브러리 파일을 지정합니다.", "Specify_module_code_generation_6016": "모듈 코드 생성을 지정합니다.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "모듈 확인 전략 지정: 'node'(Node.js) 또는 'classic'(TypeScript 1.6 이전).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "'jsx: react-jsx*'를 사용할 때 JSX 팩토리 함수를 가져오기 위해 사용되는 모듈 지정자를 지정합니다.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "'./node_modules/@types'와 같은 역할을 하는 여러 폴더를 지정합니다.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "설정이 상속되는 기본 구성 파일에 대한 하나 이상의 경로 또는 노드 모듈 참조를 지정합니다.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "정적 멤버는 클래스 형식 매개 변수를 참조할 수 없습니다.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "정적 속성 '{0}'이(가) 생성자 함수 '{1}'의 기본 제공 속성 'Function.{0}'과(와) 충돌합니다.", "String_literal_expected_1141": "문자열 리터럴이 필요합니다.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "'--module' 플래그가 'es2015' 또는 'es2020'으로 설정된 경우 문자열 리터럴 가져오기 및 내보내기 이름은 지원되지 않습니다.", "String_literal_with_double_quotes_expected_1327": "큰따옴표로 묶은 문자열 리터럴이 필요합니다.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "색과 컨텍스트를 사용하여 오류 및 메시지를 스타일화합니다(실험적).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "en 대시가 있는 경우 하위 패턴 플래그가 있어야 합니다.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "후속 속성 선언에 같은 형식이 있어야 합니다. '{0}' 속성이 '{1}' 형식이어야 하는데 여기에는 '{2}' 형식이 있습니다.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "후속 변수 선언에 같은 형식이 있어야 합니다. '{0}' 변수가 '{1}' 형식이어야 하는데 여기에는 '{2}' 형식이 있습니다.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "'{1}' 패턴에 대한 '{0}' 대체의 형식이 잘못되었습니다. 'string'이 필요한데 '{2}'을(를) 얻었습니다.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "태그가 지정된 템플릿 식은 선택적 체인에서 사용할 수 없습니다.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "대상에서 {0}개 요소만 허용하지만, 소스에 더 많이 있을 수 있습니다.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "대상에 {0}개 요소가 필요하지만, 소스에 더 적게 있을 수 있습니다.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "대상 서명이 너무 적은 인수를 제공합니다. {0} 이상이 필요하지만 {1}을(를) 받았습니다.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' 한정자는 TypeScript 파일에서만 사용할 수 있습니다.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "'{0}' 연산자는 'symbol' 유형에 적용될 수 없습니다.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "'{0}' 연산자는 부울 형식에 사용할 수 없습니다. 대신 '{1}'을(를) 사용하세요.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "비동기 반복기의 '{0}' 속성은 메서드여야 합니다.", "The_0_property_of_an_iterator_must_be_a_method_2767": "반복기의 '{0}' 속성은 메서드여야 합니다.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' 형식은 할당할 수 있는 다른 형식이 거의 없습니다. 대신 'any' 형식을 사용할까요?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "유니코드(u) 플래그와 유니코드 집합(v) 플래그를 동시에 설정할 수 없습니다.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "'arguments' 개체는 ES5의 화살표 함수에서 참조할 수 없습니다. 표준 함수 식을 사용해 보세요.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "'arguments' 개체는 ES5의 비동기 함수 또는 메서드에서 참조할 수 없습니다. 표준 함수 또는 메서드를 사용해 보세요.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "'arguments' 개체는 ES3 및 ES5의 화살표 함수에서 참조할 수 없습니다. 표준 함수 식을 사용해 보세요.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "'arguments' 개체는 ES3 및 ES5의 비동기 함수 또는 메서드에서 참조할 수 없습니다. 표준 함수 또는 메서드를 사용해 보세요.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' 문의 본문이 빈 문이면 안 됩니다.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "이 구현에 대한 호출이 성공하겠지만, 오버로드의 구현 시그니처는 외부에 표시되지 않습니다.", "The_character_set_of_the_input_files_6163": "입력 파일의 문자 집합입니다.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "전역 형식 'JSX.{0}'에 속성이 둘 이상 있을 수 없습니다.", "The_implementation_signature_is_declared_here_2750": "여기에서는 구현 시그니처가 선언됩니다.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "'import.meta' 메타 속성은 CommonJS 출력으로 빌드될 파일에서 허용되지 않습니다.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' 메타 속성은 '--module' 옵션이 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18' 또는 'nodenext'인 경우에만 허용됩니다.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' 메타 속성은 '--module' 옵션이 'es2020', 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'인 경우에만 허용됩니다.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}'의 유추된 형식 이름을 지정하려면 '{1}'에 대한 참조가 있어야 합니다. 이식하지 못할 수 있습니다. 형식 주석이 필요합니다.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}'의 유추된 형식이 일반적으로 직렬화될 수 없는 순환 구조가 있는 형식을 참조합니다. 형식 주석이 필요합니다.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}'의 유추 형식이 액세스할 수 없는 '{1}' 형식을 참조합니다. 형식 주석이 필요합니다.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "이 노드의 유추된 형식이 컴파일러가 직렬화할 최대 길이를 초과합니다. 명시적 형식 주석이 필요합니다.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "'using' 선언의 이니셜라이저는 '[Symbol.dispose]()' 메서드가 있는 개체이거나 'null' 또는 'undefined'여야 합니다.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "'await using' 선언의 이니셜라이저는 '[Symbol.asyncDispose]()' 또는 '[Symbol.dispose]5D;()' 메서드가 있는 개체이거나 'null' 또는 'undefined'여야 합니다.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "속성 '{1}'이(가) 여러 구성원에 있고 일부 구성원에서는 프라이빗 상태이므로 교집합 '{0}'이(가) 'never'로 감소했습니다.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "일부 구성원에 속성 '{1}'에 충돌하는 형식이 있으므로 교집합 '{0}'이(가) 'never'로 감소했습니다.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'내장' 키워드는 컴파일러에서 제공하는 내장 형식을 선언하는 데에만 사용할 수 있습니다.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "마지막 오버로드에서 다음 오류가 발생했습니다.", "The_last_overload_is_declared_here_2771": "여기서 마지막 오버로드가 선언됩니다.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' 문의 왼쪽에는 구조 파괴 패턴을 사용할 수 없습니다.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "'for... in' 문의 왼쪽은 'using' 선언일 수 없습니다.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "'for... in' 문의 왼쪽은 'await using' 선언일 수 없습니다.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' 문의 왼쪽에는 형식 주석을 사용할 수 없습니다.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' 문의 왼쪽은 선택적 속성 액세스일 수 없습니다.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' 문의 왼쪽은 변수 또는 속성 액세스여야 합니다.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "산술 연산의 왼쪽은 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "할당 식의 왼쪽은 선택적 속성 액세스일 수 없습니다.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "할당 식의 왼쪽은 변수 또는 속성 액세스여야 합니다.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "'instanceof' 식의 왼쪽은 오른쪽 '[Symbol.hasInstance]' 메서드의 첫 번째 인수에 할당할 수 있어야 합니다.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 식 왼쪽은 'any' 형식, 개체 형식 또는 형식 매개 변수여야 합니다.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "사용자에게 메시지를 표시할 때 사용되는 로캘입니다(예: 'en-us').", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules에서 검색하고 JavaScript 파일을 로드할 최대 종속성 깊이입니다.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "프로젝트 루트가 모호하지만 '{1}' 파일에서 '{0}' 내보내기 맵 항목을 확인하는 데 필요합니다. 명확하게 하려면 `rootDir` 컴파일러 옵션을 제공하세요.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "프로젝트 루트가 모호하지만 '{1}' 파일에서 '{0}' 가져오기 맵 항목을 확인하는 데 필요합니다. 명확하게 하려면 `rootDir` 컴파일러 옵션을 제공하세요.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "철자가 동일한 다른 프라이빗 식별자에서 섀도 처리되기 때문에 이 클래스 내의 '{1}' 형식에서 '{0}' 속성에 액세스할 수 없습니다.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' 접근자의 반환 형식은 'set' 접근자 형식에 할당할 수 있어야 합니다.", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "매개 변수 데코레이터 함수의 반환 형식은 'void' 또는 'any'여야 합니다.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "속성 데코레이터 함수의 반환 형식은 'void' 또는 'any'여야 합니다.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "비동기 함수의 반환 형식은 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "비동기 함수 또는 메서드의 반환 형식은 전역 Promise 형식이어야 합니다.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "비동기 함수 또는 메서드의 반환 형식은 전역 Promise 형식이어야 합니다. 'Promise<{0}>'을(를) 쓰려고 했습니까?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' 문 오른쪽은 'any' 형식, 개체 형식 또는 형식 매개 변수여야 하는데, 여기에 '{0}' 형식이 있습니다.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "산술 연산 오른쪽은 'any', 'number', 'bigint' 또는 열거형 형식이어야 합니다.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "'instanceof' 식의 오른쪽은 'any' 형식, 클래스, 함수 또는 'Function' 인터페이스 형식에 할당할 수 있는 다른 형식이거나 'Symbol.hasInstance' 메서드가 있는 개체 형식이어야 합니다.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "'instanceof' 식의 오른쪽은 인스턴스화 식이 아니어야 합니다.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' 식 오른쪽은 'any' 형식이거나 'Function' 인터페이스 형식에 할당할 수 있는 형식이어야 합니다.", "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' 파일의 루트 값은 개체여야 합니다.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "런타임에서는 {1} 인수를 사용하여 데코레이터를 호출하지만 데코레이터에는 {0}이(가) 필요합니다.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "런타임에서는 {1} 인수를 사용하여 데코레이터를 호출하지만 데코레이터에는 {0} 이상이 필요합니다.", "The_shadowing_declaration_of_0_is_defined_here_18017": "여기서는 '{0}'의 섀도 선언이 정의됩니다.", "The_signature_0_of_1_is_deprecated_6387": "'{1}'의 시그니처 '{0}'은(는) 사용되지 않습니다.", "The_specified_path_does_not_exist_Colon_0_5058": "지정된 경로가 없습니다. '{0}'.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "export 문에 'export type'이 사용될 때 명명된 내보내기에서 'type' 한정자를 사용할 수 없습니다.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "import 문에 'import type'이 사용되는 경우 'type' 수정자는 명명된 가져오기에 사용할 수 없습니다.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "함수 선언의 형식은 함수의 시그니처와 일치해야 합니다.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "이 식의 형식은 불안정한 기능인 'resolution-mode' 어설션 없이 이름을 지정할 수 없습니다. 야간 TypeScript를 사용하여 이 오류를 무음으로 처리합니다. 'npm install -D typescript@next'로 업데이트해 보세요.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "속성 '{0}'을(를) 직렬화할 수 없기 때문에 이 노드의 유형을 직렬화할 수 없습니다.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "비동기 반복기의 '{0}()' 메서드에서 반환하는 형식은 'value' 속성이 있는 형식에 대한 프라미스여야 합니다.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "반복기의 '{0}()' 메서드에 의해 반환되는 형식에는 'value' 속성이 있어야 합니다.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' 문의 변수 선언에 이니셜라이저가 포함될 수 없습니다.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' 문은 지원되지 않습니다. 'with' 블록의 모든 기호가 'any' 형식이 됩니다.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "'{0}'에 형식이 있지만 현재 'moduleResolution' 설정에서 이 결과를 확인할 수 없습니다. 'node16', 'nodenext' 또는 'bundler'로 업데이트하는 것이 좋습니다.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "'{0}'에 형식이 있지만 package.json \"내보내기\"를 준수할 때 이 결과를 확인할 수 없습니다. '{1}' 라이브러리는 package.json 또는 입력을 업데이트해야 할 수 있습니다.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "이 정규식에는 이름이 '{0}'인 캡처 그룹이 없습니다.", - "There_is_nothing_available_for_repetition_1507": "반복에 사용할 수 있는 항목이 없습니다.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "이 JSX 태그를 사용하려면 '{0}'이(가) 범위에 있어야 하지만 찾을 수 없습니다.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "이 JSX 태그를 사용하려면 모듈 경로 '{0}'이(가) 있어야 하지만 찾을 수 없습니다. 적절한 패키지에 대해 형식이 설치되어 있는지 확인합니다.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "이 JSX 태그의 '{0}' 속성에는 '{1}' 형식의 자식 하나가 필요하지만, 여러 자식이 제공되었습니다.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "이 JSX 태그의 '{0}' 속성에는 여러 자식이 있어야 하는 '{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_only_0_capturing_groups_in_this_r_1533": "이 역참조는 존재하지 않는 그룹을 참조합니다. 이 정규식에는 {0} 캡처 그룹만 있습니다.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "이 이진 식은 nullish가 되지 않습니다. 괄호가 누락되었나요?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "이 문자는 정규식에서 이스케이프할 수 없습니다.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}'이(가) '{1}'과(와) 겹치지 않으므로 이 비교는 의도하지 않은 것 같습니다.", "This_condition_will_always_return_0_2845": "이 조건은 항상 '{0}'을(를) 반환합니다.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript는 값이 아닌 참조로 개체를 비교하므로 이 조건은 항상 '{0}'을(를) 반환합니다.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "이 '{0}'(은)는 항상 정의되어 있으므로 이 조건은 항상 true를 반환합니다.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "함수가 항상 정의되므로 이 조건은 항상 true를 반환합니다. 대신 호출하시겠어요?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "이 생성자 함수는 클래스 선언으로 변환될 수 있습니다.", - "This_expression_is_always_nullish_2871": "이 식은 항상 nullish입니다.", "This_expression_is_not_callable_2349": "이 식은 호출할 수 없습니다.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "이 식은 'get' 접근자이므로 호출할 수 없습니다. '()' 없이 사용하시겠습니까?", "This_expression_is_not_constructable_2351": "이 식은 생성할 수 없습니다.", "This_file_already_has_a_default_export_95130": "이 파일에 이미 기본 내보내기가 있습니다.", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "이 가져오기 경로는 다른 프로젝트로 확인되고 프로젝트의 출력 파일 간의 상대 경로가 입력 파일 간의 상대 경로와 동일하지 않으므로 다시 쓰기에는 안전하지 않습니다.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "이 가져오기는 '{0}' 확장을 사용하여 입력 TypeScript 파일로 확인하지만 상대 경로가 아니므로 내보내는 동안 다시 작성되지 않습니다.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "이 가져오기는 값으로 사용되지 않으며 'importsNotUsedAsValues'가 'error'로 설정되어 있기 때문에 'import type'을 사용해야 합니다.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "확대되는 선언입니다. 확대하는 선언을 같은 파일로 이동하는 것이 좋습니다.", - "This_kind_of_expression_is_always_falsy_2873": "이러한 종류의 식은 항상 거짓입니다.", - "This_kind_of_expression_is_always_truthy_2872": "이러한 종류의 식은 항상 사실입니다.", "This_may_be_converted_to_an_async_function_80006": "비동기 함수로 변환될 수 있습니다.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다. ‘{1}’을(를) 의미했나요?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않기 때문에 '@override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "이 멤버는 이름이 동적이기 때문에 '@override' 태그가 포함된 JSDoc 주석을 가질 수 없습니다.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다. '{1}'였습니까?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않으므로 'override' 한정자를 포함할 수 없습니다.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "이름이 동적이므로 이 멤버에는 'override' 한정자를 사용할 수 없습니다.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "이 멤버는 기본 클래스 '{0}'의 멤버를 재정의하므로 '@override' 태그가 있는 JSDoc 주석이 있어야 합니다.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "이 멤버는 기본 클래스 '{0}'의 멤버를 재정의하므로 'override' 한정자를 포함해야 합니다.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "이 멤버는 기본 클래스 '{0}'에 선언된 추상 메서드를 재정의하므로 'override' 한정자를 포함해야 합니다.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "이 모듈은 '{0}' 플래그를 켜고 기본 내보내기를 참조하여 ECMAScript 가져오기/내보내기를 통해서만 참조할 수 있습니다.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "이 모듈은 'export ='를 사용하여 선언되었으며 '{0}' 플래그를 사용하는 경우에만 기본 가져오기와 함께 사용할 수 있습니다.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "이 작업은 간소화할 수 있습니다. 이 교대 근무는 '{0} {1} {2}'(와)과 동일합니다.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "이 오버로드는 반환 형식 주석이 없으므로 '{0}' 형식을 암시적으로 반환합니다.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "이 오버로드 시그니처는 해당 구현 시그니처와 호환되지 않습니다.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "이 매개 변수는 'use strict' 지시문에서 사용할 수 없습니다.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "이 매개변수 속성은 기본 클래스 '{0}'의 멤버를 재정의하므로 '@override' 태그가 있는 JSDoc 주석이 있어야 합니다.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "이 매개 변수 속성은 기본 클래스 '{0}'의 멤버를 재정의하므로 'override' 한정자를 포함해야 합니다.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "이 정규식 플래그는 하위 패턴 내에서 토글할 수 없습니다.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "이 정규식 플래그는 '{0}' 이상을 대상으로 하는 경우에만 사용할 수 있습니다.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "이 상대 가져오기 경로는 파일 이름처럼 보이지만 실제로는 \"{0}\"(으)로 확인되므로 다시 작성하는 것이 안전하지 않습니다.", "This_spread_always_overwrites_this_property_2785": "이 스프레드는 항상 이 속성을 덮어씁니다.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "'erasableSyntaxOnly'를 사용하도록 설정한 경우에는 이 구문을 사용할 수 없습니다.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "이 구문은 확장자가 .mts 또는 .cts인 파일에 예약되어 있습니다. 후행 쉼표 또는 명시적 제약 조건을 추가합니다.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "이 구문은 확장자가 .mts 또는 .cts인 파일에 예약되어 있습니다. 대신 'as' 식을 사용하세요.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "이 구문에는 가져온 도우미가 필요하지만 '{0}' 모듈을 찾을 수 없습니다.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "이 파일을 ECMAScript 모듈로 변환하려면 파일 확장명을 '{0}'(으)로 변경하거나 `\"type\": \"module\"` 필드를 '{1}'에 추가하세요.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "이 파일을 ECMAScript 모듈로 변환하려면 파일 확장명을 '{0}'(으)로 변경하거나 `{ \"type\": \"module\" }`을 사용하여 로컬 package.json 파일을 만드세요.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "이 파일을 ECMAScript 모듈로 변환하려면 `{ \"type\": \"module\" }`을 사용하여 로컬 package.json 파일을 만드세요.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "최상위 'await' 식은 'module' 옵션이 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' 또는 'preserve'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "최상위 'await using' 문은 'module' 옵션이 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' 또는 'preserve'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "최상위 'await' 식은 'module' 옵션이 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 파일의 최상위 수준 선언은 'declare' 또는 'export' 한정자로 시작해야 합니다.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "최상위 'for await' 루프는 'module' 옵션이 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' 또는 'preserve'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "최상위 'for await' 루프는 'module' 옵션이 'es2022', 'esnext', 'system', 'node16' 또는 'nodenext'로 설정되고 'target' 옵션이 'es2017' 이상으로 설정된 경우에만 허용됩니다.", "Trailing_comma_not_allowed_1009": "후행 쉼표는 허용되지 않습니다.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "각 파일을 별도 모듈로 변환 컴파일합니다('ts.transpileModule'과 유사).", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "해당 항목이 있는 경우 'npm i --save-dev @types/{1}'을(를) 시도하거나, 'declare module '{0}';'을(를) 포함하는 새 선언(.d.ts) 파일 추가", "Trying_other_entries_in_rootDirs_6110": "'rootDirs'의 다른 항목을 시도하는 중입니다.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "'{0}' 대체를 시도하는 중입니다. 후보 모듈 위치: '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "튜플 멤버는 모두 이름이 있거나 모두 이름이 없어야 합니다.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "길이가 '{1}'인 튜플 형식 '{0}'의 인덱스 '{2}'에 요소가 없습니다.", "Tuple_type_arguments_circularly_reference_themselves_4110": "튜플 형식 인수가 자신을 순환 참조합니다.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "'{0}' 형식은 '--downlevelIteration' 플래그 또는 'es2015' 이상의 '--target'을 사용하는 경우에만 반복할 수 있습니다.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "'{0}' 형식에 '{1}' 형식에 대한 일치하는 인덱스 시그니처가 없습니다.", "Type_0_has_no_properties_in_common_with_type_1_2559": "'{0}' 유형에 '{1}' 유형과 공통적인 속성이 없습니다.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "유형 '{0}'에는 유형 인수 목록을 적용할 수 있는 서명이 없습니다.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "'{0}' 형식은 제네릭이며 읽기용으로만 인덱싱할 수 있습니다.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "'{0}' 형식에 '{1}' 형식의 {2} 속성이 없습니다.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "'{0}' 형식에 '{1}' 형식의 {2} 외 {3}개 속성이 없습니다.", "Type_0_is_not_a_constructor_function_type_2507": "'{0}' 형식은 생성자 함수 형식이 아닙니다.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "'{0}' 형식은 Promise 호환 생성자 값을 참조하지 않으므로 ES5에서 유효한 비동기 함수 반환 형식이 아닙니다.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "'{0}' 형식은 Promise 호환 생성자 값을 참조하지 않으므로 ES5/ES3에서 유효한 비동기 함수 반환 형식이 아닙니다.", "Type_0_is_not_an_array_type_2461": "'{0}' 형식은 배열 형식이 아닙니다.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "'{0}' 형식은 배열 형식 또는 문자열 형식이 아닙니다.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "'{0}' 형식은 배열 형식 또는 문자열 형식이 아니거나, 반복기를 반환하는 '[Symbol.iterator]()' 메서드가 없습니다.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "'{0}' 형식은 '{1}' 형식에 할당할 수 없습니다. '{2}'을(를) 의미했나요?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "'{0}' 형식을 '{1}' 형식에 할당할 수 없습니다. 이름이 같은 2개의 서로 다른 형식이 있지만 서로 관련은 없습니다.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "'{0}' 형식은 가변성 주석에 암시된 대로 '{1}' 형식에 할당할 수 없습니다.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "'{0}' 형식은 계산 열거형 멤버 값에 필요하므로 '{1}' 형식에 할당할 수 없습니다.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 속성의 유형에 'undefined'를 추가하는 것을 고려하세요.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' 유형은 'exactOptionalPropertyTypes: true'가 있는 '{1}' 유형에 할당할 수 없습니다. 대상 유형에 'undefined'를 추가하는 것을 고려하세요.", "Type_0_is_not_comparable_to_type_1_2678": "'{0}' 형식을 '{1}' 형식과 비교할 수 없습니다.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "형식 인수가 필요합니다.", "Type_argument_list_cannot_be_empty_1099": "형식 인수 목록은 비워 둘 수 없습니다.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "형식 인수는 TypeScript 파일에서만 사용할 수 있습니다.", + "Type_arguments_cannot_be_used_here_1342": "형식 인수를 여기에 사용할 수 없습니다.", "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}'의 형식 인수가 자신을 순환 참조합니다.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "형식 어설션 식은 TypeScript 파일에서만 사용할 수 있습니다.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "소스의 {0} 위치에 있는 형식이 대상의 {1} 위치에 있는 형식과 호환되지 않습니다.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "소스의 {0}~{1} 위치에 있는 형식이 대상의 {2} 위치에 있는 형식과 호환되지 않습니다.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "'{0}' 프라이빗 이름이 포함된 형식은 --isolatedDeclarations와 함께 사용할 수 없습니다.", "Type_declaration_files_to_be_included_in_compilation_6124": "컴파일에 포함할 선언 파일을 입력하세요.", "Type_expected_1110": "형식이 필요합니다.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "유형 가져오기 어설션에는 값이 '가져오기' 또는 '요구'인 정확히 하나의 키('resolution-mode')가 있어야 합니다.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "형식 가져오기 특성에는 값이 'import' 또는 'require'인 키 'resolution-mode'가 정확히 하나 있어야 합니다.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "CommonJS 모듈에서 ECMAScript 모듈의 형식 가져오기에는 'resolution-mode' 특성이 있어야 합니다.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "형식 인스턴스화는 깊이가 매우 깊으며 무한할 수도 있습니다.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "형식은 자체 'then' 메서드의 처리 콜백에서 직간접적으로 참조됩니다.", "Type_library_referenced_via_0_from_file_1_1402": "'{1}' 파일에서 '{0}'을(를) 통해 형식 라이브러리가 참조되었습니다.", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*'의 반복되는 요소 형식의 피연산자는 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "'{0}' 속성의 형식은 매핑된 형식 '{1}'에서 순환적으로 자신을 참조합니다.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "비동기 생성기에 있는 'yield' 형식의 피연산자는 유효한 프라미스여야 하거나 호출 가능 'then' 멤버를 포함하지 않아야 합니다.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "CommonJS 모듈에서 ECMAScript 모듈의 형식 전용 가져오기에는 'resolution-mode' 특성이 있어야 합니다.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "형식이 이 가져오기에서 시작됩니다. 네임스페이스 스타일 가져오기는 호출하거나 생성할 수 없으며, 런타임에 오류를 초래합니다. 여기서는 대신 기본 가져오기 또는 가져오기 require를 사용하는 것이 좋습니다.", "Type_parameter_0_has_a_circular_constraint_2313": "형식 매개 변수 '{0}'에 순환 제약 조건이 있습니다.", "Type_parameter_0_has_a_circular_default_2716": "형식 매개 변수 '{0}'에 순환 기본값이 있습니다.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "식으로 호출된 경우 메서드 데코레이터의 서명을 확인할 수 없습니다.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "식으로 호출된 경우 매개 변수 데코레이터의 서명을 확인할 수 없습니다.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "식으로 호출된 경우 속성 데코레이터의 서명을 확인할 수 없습니다.", - "Undetermined_character_escape_1513": "결정되지 않은 문자 이스케이프입니다.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "예기치 않은 '{0}'입니다. 백슬래시로 이스케이프하려고 하셨나요?", "Unexpected_end_of_text_1126": "예기치 않은 텍스트 끝입니다.", "Unexpected_keyword_or_identifier_1434": "예기치 않은 키워드 또는 식별자입니다.", "Unexpected_token_1012": "예기치 않은 토큰입니다.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "예기치 않은 토큰입니다. '{'}'}' 또는 '}'를 사용하시겠습니까?", "Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.", - "Unicode_escape_sequence_cannot_appear_here_17021": "유니코드 이스케이프 시퀀스는 여기에 나타날 수 없습니다.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "유니코드 이스케이프 시퀀스는 유니코드(u) 플래그 또는 유니코드 집합(v) 플래그가 설정된 경우에만 사용할 수 있습니다.", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "유니코드 속성 값 식은 유니코드(u) 플래그 또는 유니코드 집합(v) 플래그가 설정된 경우에만 사용할 수 있습니다.", - "Unknown_Unicode_property_name_1524": "알 수 없는 유니코드 속성 이름입니다.", - "Unknown_Unicode_property_name_or_value_1529": "알 수 없는 유니코드 속성 이름 또는 값입니다.", - "Unknown_Unicode_property_value_1526": "알 수 없는 유니코드 속성 값입니다.", "Unknown_build_option_0_5072": "알 수 없는 빌드 옵션 '{0}'입니다.", "Unknown_build_option_0_Did_you_mean_1_5077": "알 수 없는 빌드 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", "Unknown_compiler_option_0_5023": "알 수 없는 컴파일러 옵션 '{0}'입니다.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "알 수 없는 컴파일러 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "알 수 없는 키워드 또는 식별자입니다. '{0}'을(를) 의미했나요?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "알 수 없는 옵션 'excludes'입니다. 'exclude'를 사용하시겠습니까?", - "Unknown_regular_expression_flag_1499": "알 수 없는 정규식 플래그입니다.", "Unknown_type_acquisition_option_0_17010": "알 수 없는 형식 인식 옵션 '{0}'입니다.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "알 수 없는 형식 인식 옵션 '{0}'입니다. '{1}'을(를) 사용하시겠습니까?", "Unknown_watch_option_0_5078": "알 수 없는 조사식 옵션 '{0}'입니다.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "사용되지 않는 레이블입니다.", "Unused_ts_expect_error_directive_2578": "사용되지 않는 '@ts-expect-error' 지시문입니다.", "Update_import_from_0_90058": "\"{0}\"에서 가져오기 업데이트", - "Update_modifiers_of_0_90061": "'{0}'의 한정자 업데이트", + "Updating_output_of_project_0_6373": "'{0}' 프로젝트의 출력을 업데이트하는 중...", "Updating_output_timestamps_of_project_0_6359": "'{0}' 프로젝트의 출력 타임스탬프를 업데이트하는 중...", "Updating_unchanged_output_timestamps_of_project_0_6371": "'{0}' 프로젝트의 변경되지 않은 출력 타임스탬프를 업데이트하는 중...", "Use_0_95174": "`{0}`을(를) 사용합니다.", - "Use_0_instead_5106": "대신 '{0}'을(를) 사용하세요.", "Use_Number_isNaN_in_all_conditions_95175": "모든 조건에서 'Number.isNaN'을 사용합니다.", "Use_element_access_for_0_95145": "'{0}'에 요소 액세스 사용", "Use_element_access_for_all_undeclared_properties_95146": "선언되지 않은 모든 속성에 요소 액세스를 사용합니다.", - "Use_import_type_95180": "'import type' 사용", "Use_synthetic_default_member_95016": "가상 '기본' 멤버를 사용합니다.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "패키지 가져오기를 확인할 때 package.json 'exports' 필드를 사용합니다.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "가져오기를 확인할 때 package.json 'imports' 필드를 사용합니다.", - "Use_type_0_95181": "'형식 {0}' 사용", "Using_0_subpath_1_with_target_2_6404": "'{0}' 하위 경로 '{1}'과(와) 대상 '{2}'을(를) 사용하는 중입니다.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "JSX 조각을 사용하려면 조각 팩터리 '{0}'이(가) 범위에 있어야 하지만 찾을 수 없습니다.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "ECMAScript 5 이상에서만 'for...of' 문에서 문자열을 사용할 수 있습니다.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "--build를 사용하면 -b가 tsc로 하여금 컴파일러보다 빌드 오케스트레이터처럼 작동하도록 합니다. 이 항목은 {0}에서 더 자세히 알아볼 수 있는 복합 프로젝트를 구축하는 데 사용됩니다.", "Using_compiler_options_of_project_reference_redirect_0_6215": "프로젝트 참조 리디렉션 '{0}'의 컴파일러 옵션을 사용 중입니다.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "변수 선언이 필요합니다.", "Variable_declaration_list_cannot_be_empty_1123": "변수 선언 목록은 비워 둘 수 없습니다.", "Variable_declaration_not_allowed_at_this_location_1440": "이 위치에서는 변수 선언을 사용할 수 없습니다.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "변수에는 --isolatedDeclarations가 있는 명시적 형식 주석이 있어야 합니다.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "선언이 여러 개 있는 변수는 인라인 처리할 수 없습니다.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "소스의 {0} 위치에 있는 가변 인자 요소가 대상의 {1} 위치에 있는 요소와 일치하지 않습니다.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "차이 주석은 개체, 함수, 생성자 및 매핑된 형식의 형식 별칭에서만 지원됩니다.", "Version_0_6029": "버전 {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "유형 검사 시 'null' 및 'undefined'를 고려하세요.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "화면을 지우지 않고, 감시 모드의 오래된 콘솔 출력을 유지할지 여부입니다.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "식 컨테이너에서 모든 잘못된 문자 래핑", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "잘못된 데코레이터 식을 모두 괄호로 래핑합니다.", "Wrap_all_object_literal_with_parentheses_95116": "괄호를 사용하여 모든 개체 리터럴 래핑", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "JSX 조각에서 부모가 지정되지 않은 모든 JSX 래핑", "Wrap_in_JSX_fragment_95120": "JSX 조각에서 래핑", - "Wrap_in_parentheses_95194": "괄호로 래핑", "Wrap_invalid_character_in_an_expression_container_95108": "식 컨테이너에서 잘못된 문자 래핑", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "괄호를 사용하여 개체 리터럴이어야 하는 다음 본문 래핑", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "{0}에서 모든 컴파일러 옵션에 대해 알아볼 수 있습니다.", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' 및 '{1}' 인덱스 시그니처가 호환되지 않습니다.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' 및 '{1}' 작업은 괄호 없이 혼합해서 사용할 수 없습니다.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}'이(가) 두 번 지정되었습니다. 이름이 '{0}'인 특성을 덮어씁니다.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "형식의 끝에 있는 '{0}'은(는) 올바른 TypeScript 구문이 아닙니다. '{1}'을(를) 쓰려고 하셨나요?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "형식의 시작 부분에 있는 '{0}'은(는) 올바른 TypeScript 구문이 아닙니다. '{1}'을(를) 쓰려고 하셨나요?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}'은(는) 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}'은(는) 기본 가져오기를 사용해서만 가져올 수 있습니다.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}'은(는) 'require' 호출을 사용하거나 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}'은(는) 'require' 호출을 사용하거나 기본 가져오기를 사용해서만 가져올 수 있습니다.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}'은(는) 'import {1} = require({2})' 또는 기본 가져오기를 사용해서만 가져올 수 있습니다.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}'은(는) 'import {1} = require({2})'를 사용하거나 'esModuleInterop' 플래그를 설정하고 기본 가져오기를 사용해서만 가져올 수 있습니다.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'--isolatedModules'에서는 '{0}'을(를) 컴파일할 수 없는데 전역 스크립트 파일로 간주되기 때문입니다. 모듈로 만들려면 가져오기, 내보내기 또는 빈 'export {}' 문을 추가하세요.", "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}'은(는) JSX 구성 요소로 사용할 수 없습니다.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}'은(는) 'export type'을 사용하여 내보냈으므로 값으로 사용할 수 없습니다.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}'은(는) 'import type'을 사용하여 가져왔으므로 값으로 사용할 수 없습니다.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' 구성 요소는 텍스트를 자식 요소로 수락하지 않습니다. JSX의 텍스트는 'string' 형식이지만, '{1}'의 필요한 형식은 '{2}'입니다.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}'은(는) '{1}'과(와) 관련되지 않은 임의의 형식으로 인스턴스화할 수 있습니다.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "'{0}' 선언은 블록 내에서만 선언할 수 있습니다.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' 선언은 TypeScript 파일에서만 사용할 수 있습니다.", - "_0_declarations_may_not_have_binding_patterns_1492": "'{0}' 선언에는 바인딩 패턴이 없을 수 있습니다.", - "_0_declarations_must_be_initialized_1155": "'{0}' 선언을 초기화해야 합니다.", "_0_expected_1005": "'{0}'이(가) 필요합니다.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}'에는 문자열 형식이 있지만 'isolatedModules'를 사용하도록 설정한 경우 구문으로 인식할 수 있는 문자열 구문이 있어야 합니다.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}'에 내보낸 멤버 '{1}'이(가) 없습니다. '{2}'이(가) 아닌지 확인하세요.", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}'은(는) 암시적으로 '{1}' 반환 형식이지만, 사용량에서 더 나은 형식을 유추할 수 있습니다.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "반환 형식 주석이 없고 반환 식 중 하나에서 직간접적으로 참조되므로 '{0}'에는 암시적으로 'any' 반환 형식이 포함됩니다.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 인덱스 유형 '{1}'을(를) '{2}' 인텍스 유형 '{3}'에 할당할 수 없습니다.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "{0}'은(는) 기본 개체이지만 '{1}'은(는) 래퍼 개체입니다. 가능한 경우 '{0}'을(를) 사용하세요.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}'은(는) 유형이며 JavaScript 파일로 가져올 수 없습니다. JSDoc 유형 주석에서 '{1}'을(를) 사용하세요.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}'은(는) 형식이며 'verbatimModuleSyntax'를 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}'은(는) 형식이며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}'은(는) '{1}'의 사용되지 않는 이름 변경입니다. 형식 주석으로 사용하려고 했습니까?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}'은(는) '{1}' 형식의 제약 조건에 할당할 수 있지만, '{1}'은(는) '{2}' 제약 조건의 다른 하위 형식으로 인스턴스화할 수 있습니다.", "_0_is_automatically_exported_here_18044": "'{0}'은(는) 여기에서 자동으로 내보내집니다.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "'{0}' 목록은 비워 둘 수 없습니다.", "_0_modifier_already_seen_1030": "'{0}' 한정자가 이미 있습니다.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 한정자는 클래스, 인터페이스 또는 형식 별칭의 형식 매개 변수에만 나타날 수 있습니다.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "'{0}' 한정자는 함수, 메서드 또는 클래스의 형식 매개 변수에만 나타날 수 있습니다.", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' 한정자는 생성자 선언에 나타날 수 없습니다.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' 한정자는 모듈 또는 네임스페이스 요소에 나타날 수 없습니다.", "_0_modifier_cannot_appear_on_a_parameter_1090": "{0}' 한정자는 매개 변수에 표시될 수 없습니다.", "_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' 한정자는 형식 멤버에 나타날 수 없습니다.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' 한정자는 형식 매개 변수에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "'{0}' 한정자는 'using' 선언에 나타날 수 없습니다.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "'{0}' 한정자는 'await using' 선언에 나타날 수 없습니다.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' 한정자는 인덱스 시니그처에 나타날 수 없습니다.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "이 종류의 클래스 요소에는 '{0}' 한정자를 표시할 수 없습니다.", "_0_modifier_cannot_be_used_here_1042": "'{0}' 한정자는 여기에 사용할 수 없습니다.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 한정자는 '{1}' 한정자와 함께 사용할 수 없습니다.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 한정자는 프라이빗 식별자와 함께 사용할 수 없습니다.", "_0_modifier_must_precede_1_modifier_1029": "'{0}' 한정자는 '{1}' 한정자 앞에 와야 합니다.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' 뒤에는 중괄호로 묶인 유니코드 속성 값 식이 와야 합니다.", "_0_needs_an_explicit_type_annotation_2782": "'{0}'에는 명시적 형식 주석이 필요합니다.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}'은(는) 형식만 참조하지만, 여기서는 네임스페이스로 사용되고 있습니다.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}'은(는) 형식만 참조하지만, 여기서는 값으로 사용되고 있습니다.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}'은(는) 형식만 참조하지만, 여기서는 값으로 사용되고 있습니다. 대상 라이브러리를 변경하려는 경우 'lib' 컴파일러 옵션을 es2015 이상으로 변경해 보세요.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}'은(는) UMD 전역을 참조하지만 현재 파일은 모듈입니다. 대신 가져오기를 추가해 보세요.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}'은(는) 값을 참조하지만, 여기서는 형식으로 사용되고 있습니다. 'typeof {0}'을(를) 사용하시겠습니까?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}'은(는) 형식으로 확인되며 '{1}'이(가) 사용하도록 설정된 경우 다시 내보내기 전에 이 파일에서 형식 전용으로 표시되어야 합니다. '{0}'을(를) 가져오는 'import type'을 사용해 보세요.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}'은(는) 형식으로 확인되며 '{1}'이(가) 사용하도록 설정된 경우 다시 내보내기 전에 이 파일에서 형식 전용으로 표시되어야 합니다. 'export type {기본값 {0}}'을(를) 사용해 보세요.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}'은(는) 형식 전용 선언으로 확인되며 'verbatimModuleSyntax'를 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}'은(는) 형식 전용 선언으로 확인되며 '{1}'이(가) 사용하도록 설정된 경우 다시 내보내기 전에 이 파일에서 형식 전용으로 표시되어야 합니다. '{0}'을(를) 가져오는 'import type'을 사용해 보세요.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}'은(는) 형식 전용 선언으로 확인되며 '{1}'이(가) 사용하도록 설정된 경우 다시 내보내기 전에 이 파일에서 형식 전용으로 표시되어야 합니다. 'export type {기본값 {0}}'을(를) 사용해 보세요.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "'{0}'은(는) 형식 전용 선언으로 확인되며, '{1}'을(를) 사용하도록 설정한 경우 형식 전용 다시 내보내기를 사용하여 다시 내보내야 합니다.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'preserveValueImports'와 'isolatedModules'를 모두 사용하도록 설정한 경우 형식 전용 가져오기를 사용하여 가져와야 합니다.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}'은(는) 형식 전용 선언으로 확인되며, 'isolatedModules'를 사용하도록 설정한 경우 형식 전용 다시 내보내기를 사용하여 다시 내보내야 합니다.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}'은(는) 구성 json 파일의 'compilerOptions' 개체 내에 설정해야 합니다.", "_0_tag_already_specified_1223": "'{0}' 태그가 이미 지정되었습니다.", "_0_was_also_declared_here_6203": "여기서도 '{0}'이(가) 선언되었습니다.", @@ -1999,22 +1780,19 @@ "and_here_6204": "및 여기.", "arguments_cannot_be_referenced_in_property_initializers_2815": "'arguments'는 속성 이니셜라이저에서 참조할 수 없습니다.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 가져오기, 내보내기, import.meta, jsx(jsx: react-jsx 포함) 또는 esm 형식(모듈: node16+ 포함)이 있는 파일을 모듈로 처리합니다.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 식은 클래스 정적 블록 내에서 사용할 수 없습니다.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "'await' 식은 파일이 모듈일 경우 해당 파일의 최상위 수준에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "'await' 식은 비동기 함수 내부 및 모듈의 최상위 수준에서만 사용할 수 있습니다.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 식은 매개 변수 이니셜라이저에서 사용할 수 없습니다.", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await'는 이 식의 형식에 영향을 주지 않습니다.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "'await using' 문은 파일이 모듈일 경우 해당 파일의 최상위에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' 문은 비동기 함수 내부 및 모듈의 최상위 수준에서만 사용할 수 있습니다.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' 문은 클래스 정적 블록 내에서 사용할 수 없습니다.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' 옵션이 '{0}'(으)로 설정되어 있습니다. 상대적이지 않은 모듈 이름 '{1}'을(를) 확인하려면 이 값을 사용합니다.", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' 뒤에는 ASCII 문자가 와야 합니다.", "can_only_be_used_at_the_start_of_a_file_18026": "'#!'는 파일의 시작 부분에서만 사용할 수 있습니다.", "case_or_default_expected_1130": "'case' 또는 'default'가 필요합니다.", "catch_or_finally_expected_1472": "'catch' 또는 'finally'가 필요합니다.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "'const' 선언은 블록 내부에서만 선언할 수 있습니다.", + "const_declarations_must_be_initialized_1155": "'const' 선언은 초기화해야 합니다.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 열거형 멤버 이니셜라이저가 무한 값에 대해 평가되었습니다.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 열거형 멤버 이니셜라이저가 허용되지 않은 'NaN' 값에 대해 평가되었습니다.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "const 열거형 멤버 이니셜라이저는 상수 식이어야 합니다.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "const 열거형 멤버 이니셜라이저에는 리터럴 값과 다른 계산된 열거형 값만 사용할 수 있습니다.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 열거형은 속성이나 인덱스 액세스 식, 또는 내보내기 할당이나 가져오기 선언의 오른쪽, 또는 형식 쿼리에서만 사용할 수 있습니다.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor'는 매개 변수 속성 이름으로 사용할 수 없습니다.", "constructor_is_a_reserved_word_18012": "'#constructor'는 예약어입니다.", @@ -2033,14 +1811,13 @@ "file_6025": "파일", "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' 루프는 파일이 모듈일 경우 해당 파일의 최상위에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "'for await' 루프는 비동기 함수 내부 및 모듈의 최상위에서만 사용할 수 있습니다.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' 루프는 클래스 정적 블록 내에서 사용할 수 없습니다.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' 및 'set' 접근자는 'this' 매개 변수를 선언할 수 없습니다.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'files'를 지정하면 '[]'이고, 그렇지 않으면 '[\"**/*\"]5D;'", "implements_clause_already_seen_1175": "'implements' 절이 이미 있습니다.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' 절은 TypeScript 파일에서만 사용할 수 있습니다.", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... ='는 TypeScript 파일에서만 사용할 수 있습니다.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "'infer' 선언은 조건 형식의 'extends' 절에서만 사용할 수 있습니다.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' 뒤에는 꺾쇠 괄호로 묶인 캡처 그룹 이름이 와야 합니다.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "'let' 선언은 블록 내부에서만 선언될 수 있습니다.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let'은 'let' 또는 'const' 선언에서 이름으로 사용할 수 없습니다.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "모듈 === 'AMD' 또는 'UMD' 또는 'System' 또는 'ES6', 'Classic', 그렇지 않으면 'Node'", "module_system_or_esModuleInterop_6904": "모듈 === \"system\" 또는 esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json'에 '{0}' 버전과 일치하는 'typesVersions' 항목이 없습니다.", "package_json_had_a_falsy_0_field_6220": "'package.json'에 false로 평가되는 '{0}' 필드가 있습니다.", "package_json_has_0_field_1_that_references_2_6101": "'package.json'에 '{2}'을(를) 참조하는 '{0}' 필드 '{1}'이(가) 있습니다.", - "package_json_has_a_peerDependencies_field_6281": "'package.json'에 'peerDependencies' 필드가 있습니다.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json'에 유효한 semver 범위가 아닌 'typesVersions' 항목 '{0}'이(가) 있습니다.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "모듈 이름 '{2}'과(와) 일치하는 패턴을 검색하는 컴파일러 버전 '{1}'과(와) 일치하는 'typesVersions' 항목 '{0}'이(가) 'package.json'에 있습니다.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json'에 버전별 경로 매핑이 포함된 'typesVersions' 필드가 있습니다.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json 범위 '{0}'에 '{1}' 지정자의 대상 유형이 잘못되었습니다.", "package_json_scope_0_has_no_imports_defined_6273": "package.json 범위 '{0}'에 정의된 가져오기가 없습니다.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' 옵션이 지정되었습니다. 모듈 이름 '{0}'과(와) 일치하는 패턴을 찾는 중입니다.", - "q_is_only_available_inside_character_class_1511": "'\\q'는 문자 클래스 내에서만 사용할 수 있습니다.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' 뒤에는 중괄호로 묶인 문자열 대체가 와야 합니다.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 한정자는 속성 선언 또는 인덱스 시그니처에만 나타날 수 있습니다.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 형식 한정자는 배열 및 튜플 리터럴 형식에서만 사용할 수 있습니다.", "require_call_may_be_converted_to_an_import_80005": "'require' 호출이 가져오기로 변환될 수 있습니다.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "'resolution-mode' 어설션은 'moduleResolution'이 'node16' 또는 'nodenext'인 경우에만 지원됩니다.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "‘resolution-mode’ 어설션이 불안정합니다. 야간 TypeScript를 사용하여 이 오류를 차단하십시오. 'npm install -D typescript@next'로 업데이트해 보세요.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "'resolution-mode'는 유형 전용 가져오기에만 설정할 수 있습니다.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode'는 유형 가져오기 어설션에 유효한 유일한 키입니다.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "'resolution-mode'는 형식 가져오기 특성에 사용할 수 있는 유일한 키입니다.", "resolution_mode_should_be_either_require_or_import_1453": "'해상도 모드'는 '요구' 또는 '가져오기'여야 합니다.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 옵션이 설정되어 있습니다. 상대 모듈 이름 '{0}'을(를) 확인하려면 이 옵션을 사용합니다.", "super_can_only_be_referenced_in_a_derived_class_2335": "파생 클래스에서만 'super'를 참조할 수 있습니다.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this'는 계산된 속성 이름에서 참조할 수 없습니다.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this'는 모듈 또는 네임스페이스 본문에서 참조될 수 없습니다.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "정적 속성 이니셜라이저에서 'this'를 참조할 수 없습니다.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "생성자 인수에서 'this'를 참조할 수 없습니다.", "this_cannot_be_referenced_in_current_location_2332": "현재 위치에서 'this'를 참조할 수 없습니다.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this'에는 형식 주석이 없으므로 암시적으로 'any' 형식이 포함됩니다.", "true_for_ES2022_and_above_including_ESNext_6930": "ESNext를 포함하여 ES2022 이상의 경우 'true'입니다.", "true_if_composite_false_otherwise_6909": "'composite'이면 'true'이고, 그렇지 않으면 'false'입니다.", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "'moduleResolution'이 'node16', 'nodenext' 또는 'bundler'인 경우 'true'입니다. 그렇지 않으면 'false'입니다.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript 컴파일러", "type_Colon_6902": "형식:", "unique_symbol_types_are_not_allowed_here_1335": "여기에서 'unique symbol' 형식은 허용되지 않습니다.", diff --git a/node_modules/typescript/lib/lib.decorators.d.ts b/node_modules/typescript/lib/lib.decorators.d.ts index 5ad7216a1..5ac09b825 100644 --- a/node_modules/typescript/lib/lib.decorators.d.ts +++ b/node_modules/typescript/lib/lib.decorators.d.ts @@ -110,9 +110,9 @@ interface ClassMethodDecoratorContext< }; /** - * Adds a callback to be invoked either after static methods are defined but before - * static initializers are run (when decorating a `static` element), or before instance - * initializers are run (when decorating a non-`static` element). + * Adds a callback to be invoked either before static initializers are run (when + * decorating a `static` element), or before instance initializers are run (when + * decorating a non-`static` element). * * @example * ```ts @@ -176,9 +176,9 @@ interface ClassGetterDecoratorContext< }; /** - * Adds a callback to be invoked either after static methods are defined but before - * static initializers are run (when decorating a `static` element), or before instance - * initializers are run (when decorating a non-`static` element). + * Adds a callback to be invoked either before static initializers are run (when + * decorating a `static` element), or before instance initializers are run (when + * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; @@ -223,9 +223,9 @@ interface ClassSetterDecoratorContext< }; /** - * Adds a callback to be invoked either after static methods are defined but before - * static initializers are run (when decorating a `static` element), or before instance - * initializers are run (when decorating a non-`static` element). + * Adds a callback to be invoked either before static initializers are run (when + * decorating a `static` element), or before instance initializers are run (when + * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; @@ -279,8 +279,9 @@ interface ClassAccessorDecoratorContext< }; /** - * Adds a callback to be invoked immediately after the auto `accessor` being - * decorated is initialized (regardless if the `accessor` is `static` or not). + * Adds a callback to be invoked either before static initializers are run (when + * decorating a `static` element), or before instance initializers are run (when + * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; @@ -375,8 +376,9 @@ interface ClassFieldDecoratorContext< }; /** - * Adds a callback to be invoked immediately after the field being decorated - * is initialized (regardless if the field is `static` or not). + * Adds a callback to be invoked either before static initializers are run (when + * decorating a `static` element), or before instance initializers are run (when + * decorating a non-`static` element). */ addInitializer(initializer: (this: This) => void): void; diff --git a/node_modules/typescript/lib/lib.dom.asynciterable.d.ts b/node_modules/typescript/lib/lib.dom.asynciterable.d.ts index 98b96b816..28e1bfd80 100644 --- a/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +++ b/node_modules/typescript/lib/lib.dom.asynciterable.d.ts @@ -20,22 +20,14 @@ and limitations under the License. /// Window Async Iterable APIs ///////////////////////////// -interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; -} - interface FileSystemDirectoryHandle { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; - entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; - keys(): FileSystemDirectoryHandleAsyncIterator; - values(): FileSystemDirectoryHandleAsyncIterator; -} - -interface ReadableStreamAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; } interface ReadableStream { - [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; - values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; + [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator; + values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; } diff --git a/node_modules/typescript/lib/lib.dom.d.ts b/node_modules/typescript/lib/lib.dom.d.ts index edf900a5d..079a86157 100644 --- a/node_modules/typescript/lib/lib.dom.d.ts +++ b/node_modules/typescript/lib/lib.dom.d.ts @@ -26,19 +26,6 @@ interface AddEventListenerOptions extends EventListenerOptions { signal?: AbortSignal; } -interface AddressErrors { - addressLine?: string; - city?: string; - country?: string; - dependentLocality?: string; - organization?: string; - phone?: string; - postalCode?: string; - recipient?: string; - region?: string; - sortingCode?: string; -} - interface AesCbcParams extends Algorithm { iv: BufferSource; } @@ -120,59 +107,6 @@ interface AudioContextOptions { sampleRate?: number; } -interface AudioDataCopyToOptions { - format?: AudioSampleFormat; - frameCount?: number; - frameOffset?: number; - planeIndex: number; -} - -interface AudioDataInit { - data: BufferSource; - format: AudioSampleFormat; - numberOfChannels: number; - numberOfFrames: number; - sampleRate: number; - timestamp: number; - transfer?: ArrayBuffer[]; -} - -interface AudioDecoderConfig { - codec: string; - description?: BufferSource; - numberOfChannels: number; - sampleRate: number; -} - -interface AudioDecoderInit { - error: WebCodecsErrorCallback; - output: AudioDataOutputCallback; -} - -interface AudioDecoderSupport { - config?: AudioDecoderConfig; - supported?: boolean; -} - -interface AudioEncoderConfig { - bitrate?: number; - bitrateMode?: BitrateMode; - codec: string; - numberOfChannels: number; - opus?: OpusEncoderConfig; - sampleRate: number; -} - -interface AudioEncoderInit { - error: WebCodecsErrorCallback; - output: EncodedAudioChunkOutputCallback; -} - -interface AudioEncoderSupport { - config?: AudioEncoderConfig; - supported?: boolean; -} - interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; @@ -203,32 +137,12 @@ interface AuthenticationExtensionsClientInputs { credProps?: boolean; hmacCreateSecret?: boolean; minPinLength?: boolean; - prf?: AuthenticationExtensionsPRFInputs; -} - -interface AuthenticationExtensionsClientInputsJSON { } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; - prf?: AuthenticationExtensionsPRFOutputs; -} - -interface AuthenticationExtensionsPRFInputs { - eval?: AuthenticationExtensionsPRFValues; - evalByCredential?: Record; -} - -interface AuthenticationExtensionsPRFOutputs { - enabled?: boolean; - results?: AuthenticationExtensionsPRFValues; -} - -interface AuthenticationExtensionsPRFValues { - first: BufferSource; - second?: BufferSource; } interface AuthenticatorSelectionCriteria { @@ -294,10 +208,6 @@ interface CanvasRenderingContext2DSettings { willReadFrequently?: boolean; } -interface CaretPositionFromPointOptions { - shadowRoots?: ShadowRoot[]; -} - interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } @@ -558,18 +468,6 @@ interface ElementDefinitionOptions { extends?: string; } -interface EncodedAudioChunkInit { - data: AllowSharedBufferSource; - duration?: number; - timestamp: number; - transfer?: ArrayBuffer[]; - type: EncodedAudioChunkType; -} - -interface EncodedAudioChunkMetadata { - decoderConfig?: AudioDecoderConfig; -} - interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; @@ -698,11 +596,6 @@ interface GetAnimationsOptions { subtree?: boolean; } -interface GetHTMLOptions { - serializableShadowRoots?: boolean; - shadowRoots?: ShadowRoot[]; -} - interface GetNotificationOptions { tag?: string; } @@ -787,31 +680,15 @@ interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } -interface ImageDecodeOptions { - completeFramesOnly?: boolean; - frameIndex?: number; -} - -interface ImageDecodeResult { - complete: boolean; - image: VideoFrame; -} - -interface ImageDecoderInit { - colorSpaceConversion?: ColorSpaceConversion; - data: ImageBufferSource; - desiredHeight?: number; - desiredWidth?: number; - preferAnimation?: boolean; - transfer?: ArrayBuffer[]; - type: string; -} - interface ImageEncodeOptions { quality?: number; type?: string; } +interface ImportMeta { + url: string; +} + interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; @@ -820,6 +697,16 @@ interface InputEventInit extends UIEventInit { targetRanges?: StaticRange[]; } +interface IntersectionObserverEntryInit { + boundingClientRect: DOMRectInit; + intersectionRatio: number; + intersectionRect: DOMRectInit; + isIntersecting: boolean; + rootBounds: DOMRectInit | null; + target: Element; + time: DOMHighResTimeStamp; +} + interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; @@ -975,10 +862,6 @@ interface MediaKeySystemMediaCapability { robustness?: string; } -interface MediaKeysPolicy { - minHdcpVersion?: string; -} - interface MediaMetadataInit { album?: string; artist?: string; @@ -1029,7 +912,6 @@ interface MediaStreamTrackEventInit extends EventInit { interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; - backgroundBlur?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; @@ -1047,7 +929,6 @@ interface MediaTrackCapabilities { interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; - backgroundBlur?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; @@ -1069,7 +950,6 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet { interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; - backgroundBlur?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; @@ -1087,7 +967,6 @@ interface MediaTrackSettings { interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; - backgroundBlur?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; @@ -1182,15 +1061,6 @@ interface OptionalEffectTiming { playbackRate?: number; } -interface OpusEncoderConfig { - complexity?: number; - format?: OpusBitstreamFormat; - frameDuration?: number; - packetlossperc?: number; - usedtx?: boolean; - useinbandfec?: boolean; -} - interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; @@ -1198,15 +1068,6 @@ interface OscillatorOptions extends AudioNodeOptions { type?: OscillatorType; } -interface PageRevealEventInit extends EventInit { - viewTransition?: ViewTransition | null; -} - -interface PageSwapEventInit extends EventInit { - activation?: NavigationActivation | null; - viewTransition?: ViewTransition | null; -} - interface PageTransitionEventInit extends EventInit { persisted?: boolean; } @@ -1228,12 +1089,6 @@ interface PannerOptions extends AudioNodeOptions { rolloffFactor?: number; } -interface PayerErrors { - email?: string; - name?: string; - phone?: string; -} - interface PaymentCurrencyAmount { currency: string; value: string; @@ -1242,7 +1097,6 @@ interface PaymentCurrencyAmount { interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; - shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { @@ -1258,9 +1112,7 @@ interface PaymentDetailsModifier { } interface PaymentDetailsUpdate extends PaymentDetailsBase { - error?: string; paymentMethodErrors?: any; - shippingAddressErrors?: AddressErrors; total?: PaymentItem; } @@ -1280,28 +1132,12 @@ interface PaymentMethodData { supportedMethods: string; } -interface PaymentOptions { - requestPayerEmail?: boolean; - requestPayerName?: boolean; - requestPayerPhone?: boolean; - requestShipping?: boolean; - shippingType?: PaymentShippingType; -} - interface PaymentRequestUpdateEventInit extends EventInit { } -interface PaymentShippingOption { - amount: PaymentCurrencyAmount; - id: string; - label: string; - selected?: boolean; -} - interface PaymentValidationErrors { error?: string; - payer?: PayerErrors; - shippingAddress?: AddressErrors; + paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { @@ -1351,8 +1187,6 @@ interface PlaneLayout { } interface PointerEventInit extends MouseEventInit { - altitudeAngle?: number; - azimuthAngle?: number; coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; @@ -1367,10 +1201,6 @@ interface PointerEventInit extends MouseEventInit { width?: number; } -interface PointerLockOptions { - unadjustedMovement?: boolean; -} - interface PopStateEventInit extends EventInit { state?: any; } @@ -1418,31 +1248,12 @@ interface PublicKeyCredentialCreationOptions { user: PublicKeyCredentialUserEntity; } -interface PublicKeyCredentialCreationOptionsJSON { - attestation?: string; - authenticatorSelection?: AuthenticatorSelectionCriteria; - challenge: Base64URLString; - excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; - extensions?: AuthenticationExtensionsClientInputsJSON; - hints?: string[]; - pubKeyCredParams: PublicKeyCredentialParameters[]; - rp: PublicKeyCredentialRpEntity; - timeout?: number; - user: PublicKeyCredentialUserEntityJSON; -} - interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } -interface PublicKeyCredentialDescriptorJSON { - id: Base64URLString; - transports?: string[]; - type: string; -} - interface PublicKeyCredentialEntity { name: string; } @@ -1461,16 +1272,6 @@ interface PublicKeyCredentialRequestOptions { userVerification?: UserVerificationRequirement; } -interface PublicKeyCredentialRequestOptionsJSON { - allowCredentials?: PublicKeyCredentialDescriptorJSON[]; - challenge: Base64URLString; - extensions?: AuthenticationExtensionsClientInputsJSON; - hints?: string[]; - rpId?: string; - timeout?: number; - userVerification?: string; -} - interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } @@ -1480,12 +1281,6 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { id: BufferSource; } -interface PublicKeyCredentialUserEntityJSON { - displayName: string; - id: Base64URLString; - name: string; -} - interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; @@ -1589,21 +1384,21 @@ interface RTCIceCandidateInit { usernameFragment?: string | null; } +interface RTCIceCandidatePair { + local: RTCIceCandidate; + remote: RTCIceCandidate; +} + interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; - bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; - consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; - packetsDiscardedOnSend?: number; - packetsReceived?: number; - packetsSent?: number; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; @@ -1627,47 +1422,32 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; - fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; - fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; - framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; - framesRendered?: number; - freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; - jitterBufferMinimumDelay?: number; - jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; - pauseCount?: number; - playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; - retransmittedBytesReceived?: number; - retransmittedPacketsReceived?: number; - rtxSsrc?: number; silentConcealedSamples?: number; - totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; - totalFreezesDuration?: number; totalInterFrameDelay?: number; - totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; @@ -1690,7 +1470,6 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions { } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { - active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; @@ -1701,19 +1480,15 @@ interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; - mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; - qualityLimitationDurations?: Record; - qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; - scalabilityMode?: string; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; @@ -1745,7 +1520,7 @@ interface RTCRtcpParameters { } interface RTCRtpCapabilities { - codecs: RTCRtpCodec[]; + codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } @@ -1756,6 +1531,9 @@ interface RTCRtpCodec { sdpFmtpLine?: string; } +interface RTCRtpCodecCapability extends RTCRtpCodec { +} + interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } @@ -1851,16 +1629,9 @@ interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; - dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; - iceLocalUsernameFragment?: string; - iceRole?: RTCIceRole; - iceState?: RTCIceTransportState; localCertificateId?: string; - packetsReceived?: number; - packetsSent?: number; remoteCertificateId?: string; - selectedCandidatePairChanges?: number; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; @@ -2240,7 +2011,6 @@ interface VideoConfiguration { colorGamut?: ColorGamut; contentType: string; framerate: number; - hasAlphaChannel?: boolean; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; @@ -2276,7 +2046,6 @@ interface VideoEncoderConfig { bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; - contentHint?: string; displayHeight?: number; displayWidth?: number; framerate?: number; @@ -2288,14 +2057,9 @@ interface VideoEncoderConfig { } interface VideoEncoderEncodeOptions { - avc?: VideoEncoderEncodeOptionsForAvc; keyFrame?: boolean; } -interface VideoEncoderEncodeOptionsForAvc { - quantizer?: number | null; -} - interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; @@ -2333,8 +2097,6 @@ interface VideoFrameCallbackMetadata { } interface VideoFrameCopyToOptions { - colorSpace?: PredefinedColorSpace; - format?: VideoPixelFormat; layout?: PlaneLayout[]; rect?: DOMRectInit; } @@ -2466,9 +2228,7 @@ interface ARIAMixin { ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */ ariaBrailleLabel: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ ariaBrailleRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; @@ -2478,8 +2238,6 @@ interface ARIAMixin { ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */ - ariaColIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ @@ -2519,8 +2277,6 @@ interface ARIAMixin { ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */ - ariaRelevant: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ @@ -2529,8 +2285,6 @@ interface ARIAMixin { ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */ - ariaRowIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ @@ -2707,7 +2461,7 @@ interface Animatable { interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; - "remove": AnimationPlaybackEvent; + "remove": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ @@ -2725,7 +2479,7 @@ interface Animation extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ - onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; + onremove: ((this: Animation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ @@ -2957,74 +2711,6 @@ declare var AudioContext: { new(contextOptions?: AudioContextOptions): AudioContext; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ -interface AudioData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ - readonly duration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ - readonly format: AudioSampleFormat | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ - readonly numberOfChannels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ - readonly numberOfFrames: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ - allocationSize(options: AudioDataCopyToOptions): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ - clone(): AudioData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ - copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; -} - -declare var AudioData: { - prototype: AudioData; - new(init: AudioDataInit): AudioData; -}; - -interface AudioDecoderEventMap { - "dequeue": Event; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) - */ -interface AudioDecoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ - readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ - ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ - configure(config: AudioDecoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ - decode(chunk: EncodedAudioChunk): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioDecoder: { - prototype: AudioDecoder; - new(init: AudioDecoderInit): AudioDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ - isConfigSupported(config: AudioDecoderConfig): Promise; -}; - /** * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. * @@ -3040,45 +2726,6 @@ declare var AudioDestinationNode: { new(): AudioDestinationNode; }; -interface AudioEncoderEventMap { - "dequeue": Event; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) - */ -interface AudioEncoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ - readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ - ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ - configure(config: AudioEncoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ - encode(data: AudioData): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioEncoder: { - prototype: AudioEncoder; - new(init: AudioEncoderInit): AudioEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ - isConfigSupported(config: AudioEncoderConfig): Promise; -}; - /** * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. * @@ -3164,6 +2811,7 @@ declare var AudioNode: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ automationRate: AutomationRate; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; @@ -3274,7 +2922,7 @@ declare var AudioWorklet: { }; interface AudioWorkletNodeEventMap { - "processorerror": ErrorEvent; + "processorerror": Event; } /** @@ -3284,7 +2932,7 @@ interface AudioWorkletNodeEventMap { */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ - onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null; + onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ @@ -3451,11 +3099,7 @@ declare var BaseAudioContext: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) - */ + /** @deprecated */ returnValue: any; } @@ -3501,8 +3145,6 @@ interface Blob { readonly type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ - bytes(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ @@ -3538,8 +3180,6 @@ interface Body { arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ - bytes(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ @@ -3695,8 +3335,7 @@ declare var CSSCounterStyleRule: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); + readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { @@ -3767,8 +3406,7 @@ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ - get media(): MediaList; - set media(mediaText: string); + readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ @@ -3789,8 +3427,7 @@ interface CSSKeyframeRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); + readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { @@ -3806,7 +3443,6 @@ declare var CSSKeyframeRule: { interface CSSKeyframesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; @@ -3963,8 +3599,7 @@ declare var CSSMatrixComponent: { */ interface CSSMediaRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ - get media(): MediaList; - set media(mediaText: string); + readonly media: MediaList; } declare var CSSMediaRule: { @@ -3989,18 +3624,6 @@ declare var CSSNamespaceRule: { new(): CSSNamespaceRule; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */ -interface CSSNestedDeclarations extends CSSRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); -} - -declare var CSSNestedDeclarations: { - prototype: CSSNestedDeclarations; - new(): CSSNestedDeclarations; -}; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ @@ -4054,8 +3677,7 @@ interface CSSPageRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); + readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { @@ -4191,11 +3813,8 @@ declare var CSSScale: { new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */ interface CSSScopeRule extends CSSGroupingRule { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ readonly end: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ readonly start: string | null; } @@ -4262,7 +3881,6 @@ interface CSSStyleDeclaration { alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */ alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; @@ -4319,6 +3937,7 @@ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; @@ -4446,8 +4065,6 @@ interface CSSStyleDeclaration { borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ - boxDecorationBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ @@ -4472,13 +4089,11 @@ interface CSSStyleDeclaration { clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ colorInterpolation: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; @@ -4504,11 +4119,11 @@ interface CSSStyleDeclaration { columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; @@ -4536,25 +4151,18 @@ interface CSSStyleDeclaration { cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ cx: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ cy: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ fill: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ fillOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; @@ -4574,9 +4182,7 @@ interface CSSStyleDeclaration { flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */ floodColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */ floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; @@ -4708,7 +4314,6 @@ interface CSSStyleDeclaration { readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */ lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; @@ -4744,13 +4349,9 @@ interface CSSStyleDeclaration { marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ marker: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ markerEnd: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ markerMid: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; @@ -4872,23 +4473,11 @@ interface CSSStyleDeclaration { paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; @@ -4912,7 +4501,6 @@ interface CSSStyleDeclaration { printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; @@ -4922,13 +4510,9 @@ interface CSSStyleDeclaration { rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */ - rubyAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ rx: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; @@ -4996,27 +4580,16 @@ interface CSSStyleDeclaration { shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ shapeRendering: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ stopColor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ stopOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ stroke: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ strokeDasharray: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ strokeDashoffset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ strokeLinecap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ strokeLinejoin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ strokeMiterlimit: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ strokeOpacity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; @@ -5026,11 +4599,7 @@ interface CSSStyleDeclaration { textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ textAnchor: string; - textBox: string; - textBoxEdge: string; - textBoxTrim: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ @@ -5071,9 +4640,7 @@ interface CSSStyleDeclaration { textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */ textWrapMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ textWrapStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; @@ -5105,13 +4672,9 @@ interface CSSStyleDeclaration { unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; - viewTransitionClass: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ - viewTransitionName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** @@ -5528,17 +5091,11 @@ interface CSSStyleDeclaration { wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) - */ + /** @deprecated */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ x: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; @@ -5571,8 +5128,7 @@ interface CSSStyleRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); + readonly style: CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } @@ -5752,16 +5308,6 @@ declare var CSSVariableReferenceValue: { new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; -interface CSSViewTransitionRule extends CSSRule { - readonly navigation: string; - readonly types: ReadonlyArray; -} - -declare var CSSViewTransitionRule: { - prototype: CSSViewTransitionRule; - new(): CSSViewTransitionRule; -}; - /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. @@ -5997,9 +5543,11 @@ interface CanvasRect { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ -interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { +interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ + getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { @@ -6007,11 +5555,6 @@ declare var CanvasRenderingContext2D: { new(): CanvasRenderingContext2D; }; -interface CanvasSettings { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ - getContextAttributes(): CanvasRenderingContext2DSettings; -} - interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; @@ -6024,8 +5567,6 @@ interface CanvasShadowStyles { } interface CanvasState { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ - isContextLost(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ @@ -6090,18 +5631,6 @@ interface CanvasUserInterface { drawFocusIfNeeded(path: Path2D, element: Element): void; } -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition) */ -interface CaretPosition { - readonly offset: number; - readonly offsetNode: Node; - getClientRect(): DOMRect | null; -} - -declare var CaretPosition: { - prototype: CaretPosition; - new(): CaretPosition; -}; - /** * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * @@ -6235,8 +5764,6 @@ declare var ClipboardEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ - readonly presentationStyle: PresentationStyle; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ @@ -6246,8 +5773,6 @@ interface ClipboardItem { declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ - supports(type: string): boolean; }; /** @@ -6317,8 +5842,6 @@ declare var CompositionEvent: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; } declare var CompressionStream: { @@ -6623,69 +6146,41 @@ declare var DOMImplementation: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ f: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) */ setMatrixValue(transformList: string): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } @@ -6705,53 +6200,53 @@ declare var WebKitCSSMatrix: typeof DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ readonly a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ readonly b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ readonly c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ readonly d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ readonly e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ readonly f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ readonly m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ readonly m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ readonly m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ readonly m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ readonly m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ readonly m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ readonly m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ readonly m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ readonly m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ readonly m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ readonly m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ readonly m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ readonly m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ readonly m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ readonly m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; @@ -6761,21 +6256,30 @@ interface DOMMatrixReadOnly { inverse(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) + */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; @@ -6874,7 +6378,6 @@ interface DOMQuad { readonly p4: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ toJSON(): any; } @@ -6887,31 +6390,23 @@ declare var DOMQuad: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */ interface DOMRectList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */ item(index: number): DOMRect | null; [index: number]: DOMRect; } @@ -6939,7 +6434,6 @@ interface DOMRectReadOnly { readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } @@ -7245,8 +6739,6 @@ declare var DataTransferItemList: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; } declare var DecompressionStream: { @@ -7509,8 +7001,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ - readonly fragmentDirective: FragmentDirective; /** * @deprecated * @@ -7575,7 +7065,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; - set location(href: string); + set location(href: string | Location); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ @@ -7653,10 +7143,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) + */ captureEvents(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ - caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** @@ -7733,11 +7225,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; @@ -7771,9 +7259,9 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; + createEvent(eventInterface: "MutationEvent"): MutationEvent; + createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; - createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent; - createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; @@ -7793,7 +7281,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; - createEvent(eventInterface: "TextEvent"): TextEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; @@ -7926,7 +7413,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ - importNode(node: T, subtree?: boolean): T; + importNode(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. @@ -7950,6 +7437,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) */ queryCommandIndeterm(commandId: string): boolean; /** @@ -7972,18 +7461,21 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) */ queryCommandValue(commandId: string): string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) + */ releaseEvents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ - startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. - * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ @@ -8004,7 +7496,6 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve declare var Document: { prototype: Document; new(): Document; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ parseHTMLUnsafe(html: string): Document; }; @@ -8226,7 +7717,7 @@ interface ElementEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ -interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { +interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** @@ -8234,8 +7725,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ - get classList(): DOMTokenList; - set classList(value: string); + readonly classList: DOMTokenList; /** * Returns the value of element's class content attribute. Can be set to change it. * @@ -8250,16 +7740,12 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp readonly clientTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ - readonly currentCSSZoom: number; /** * Returns the value of element's id content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ - innerHTML: string; /** * Returns the local name. * @@ -8280,8 +7766,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp outerHTML: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ - get part(): DOMTokenList; - set part(value: string); + readonly part: DOMTokenList; /** * Returns the namespace prefix. * @@ -8377,8 +7862,6 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ - getHTML(options?: GetHTMLOptions): string; /** * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. * @@ -8402,7 +7885,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ - insertAdjacentHTML(position: InsertPosition, string: string): void; + insertAdjacentHTML(position: InsertPosition, text: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** @@ -8436,7 +7919,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp */ requestFullscreen(options?: FullscreenOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ - requestPointerLock(options?: PointerLockOptions): Promise; + requestPointerLock(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; @@ -8464,7 +7947,6 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp setAttributeNode(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ setHTMLUnsafe(html: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; @@ -8494,11 +7976,9 @@ declare var Element: { }; interface ElementCSSInlineStyle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ - get style(): CSSStyleDeclaration; - set style(cssText: string); + readonly style: CSSStyleDeclaration; } interface ElementContentEditable { @@ -8585,25 +8065,6 @@ declare var ElementInternals: { new(): ElementInternals; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ -interface EncodedAudioChunk { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ - readonly byteLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ - readonly type: EncodedAudioChunkType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ - copyTo(destination: AllowSharedBufferSource): void; -} - -declare var EncodedAudioChunk: { - prototype: EncodedAudioChunk; - new(init: EncodedAudioChunkInit): EncodedAudioChunk; -}; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ @@ -8893,11 +8354,23 @@ declare var EventTarget: { new(): EventTarget; }; -/** @deprecated */ +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) + */ interface External { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) + */ AddSearchProvider(): void; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) + */ IsSearchProviderInstalled(): void; } @@ -9204,23 +8677,23 @@ interface FontFace { declare var FontFace: { prototype: FontFace; - new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; + new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { - "loading": FontFaceSetLoadEvent; - "loadingdone": FontFaceSetLoadEvent; - "loadingerror": FontFaceSetLoadEvent; + "loading": Event; + "loadingdone": Event; + "loadingerror": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ - onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloading: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ - onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ - onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ @@ -9238,7 +8711,7 @@ interface FontFaceSet extends EventTarget { declare var FontFaceSet: { prototype: FontFaceSet; - new(): FontFaceSet; + new(initialFaces: FontFace[]): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ @@ -9302,25 +8775,6 @@ declare var FormDataEvent: { new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */ -interface FragmentDirective { -} - -declare var FragmentDirective: { - prototype: FragmentDirective; - new(): FragmentDirective; -}; - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) - */ -interface GPUError { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ - readonly message: string; -} - /** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * @@ -9356,7 +8810,6 @@ interface Gamepad { readonly mapping: GamepadMappingType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ readonly vibrationActuator: GamepadHapticActuator; } @@ -9405,9 +8858,7 @@ declare var GamepadEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ reset(): Promise; } @@ -9462,8 +8913,6 @@ interface GeolocationCoordinates { readonly longitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; } declare var GeolocationCoordinates: { @@ -9481,8 +8930,6 @@ interface GeolocationPosition { readonly coords: GeolocationCoordinates; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; } declare var GeolocationPosition: { @@ -9528,9 +8975,7 @@ interface GlobalEventHandlersEventMap { "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; - "contextlost": Event; "contextmenu": MouseEvent; - "contextrestored": Event; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; @@ -9671,8 +9116,6 @@ interface GlobalEventHandlers { onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ - oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. @@ -9680,8 +9123,6 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ - oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ @@ -9832,7 +9273,7 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. @@ -9996,7 +9437,7 @@ interface GlobalEventHandlers { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; @@ -10101,11 +9542,15 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ @@ -10119,6 +9564,8 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the shape of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ @@ -10132,16 +9579,19 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ - get relList(): DOMTokenList; - set relList(value: string); + readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) */ shape: string; /** @@ -10192,6 +9642,8 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or gets whether clicks in this region cause action. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) */ noHref: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ @@ -10201,8 +9653,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ - get relList(): DOMTokenList; - set relList(value: string); + readonly relList: DOMTokenList; /** * Sets or retrieves the shape of the object. * @@ -10252,6 +9703,8 @@ interface HTMLBRElement extends HTMLElement { /** * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear) */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -10303,17 +9756,41 @@ interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandle * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink) + */ aLink: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background) + */ background: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor) + */ bgColor: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link) + */ link: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text) + */ text: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink) + */ vLink: string; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -10408,19 +9885,13 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate) */ readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity) - */ + /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */ reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity) */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -10466,14 +9937,14 @@ interface HTMLCanvasElement extends HTMLElement { getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null; getContext(contextId: string, options?: any): RenderingContext | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */ - toBlob(callback: BlobCallback, type?: string, quality?: number): void; + toBlob(callback: BlobCallback, type?: string, quality?: any): void; /** * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL) */ - toDataURL(type?: string, quality?: number): string; + toDataURL(type?: string, quality?: any): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */ transferControlToOffscreen(): OffscreenCanvas; addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -10534,7 +10005,11 @@ interface HTMLCollectionOf extends HTMLCollectionBase { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement) */ interface HTMLDListElement extends HTMLElement { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact) + */ compact: boolean; addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -10591,7 +10066,6 @@ declare var HTMLDataListElement: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */ interface HTMLDetailsElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */ open: boolean; @@ -10664,6 +10138,8 @@ interface HTMLDivElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align) */ align: string; addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -10704,7 +10180,6 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit accessKey: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */ readonly accessKeyLabel: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize) */ autocapitalize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */ dir: string; @@ -10738,8 +10213,6 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit title: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */ translate: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions) */ - writingSuggestions: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */ attachInternals(): ElementInternals; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */ @@ -10749,7 +10222,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */ showPopover(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */ - togglePopover(options?: boolean): boolean; + togglePopover(force?: boolean): boolean; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -10780,13 +10253,8 @@ interface HTMLEmbedElement extends HTMLElement { * @deprecated */ name: string; - /** - * Sets or retrieves a URL to be loaded by the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src) - */ + /** Sets or retrieves a URL to be loaded by the object. */ src: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/type) */ type: string; /** * Sets or retrieves the width of the object. @@ -10794,7 +10262,6 @@ interface HTMLEmbedElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width) */ width: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/getSVGDocument) */ getSVGDocument(): Document | null; addEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -10853,19 +10320,13 @@ interface HTMLFieldSetElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate) */ readonly willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity) - */ + /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */ reportValidity(): boolean; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity) */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -11005,8 +10466,7 @@ interface HTMLFormElement extends HTMLElement { */ noValidate: boolean; rel: string; - get relList(): DOMTokenList; - set relList(value: string); + readonly relList: DOMTokenList; /** * Sets or retrieves the window or frame at which to target content. * @@ -11048,56 +10508,80 @@ declare var HTMLFormElement: { new(): HTMLFormElement; }; -/** @deprecated */ +/** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement) + */ interface HTMLFrameElement extends HTMLElement { /** * Retrieves the document object of the page or frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument) */ readonly contentDocument: Document | null; /** * Retrieves the object of the specified. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow) */ readonly contentWindow: WindowProxy | null; /** * Sets or retrieves whether to display a border for the frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder) */ frameBorder: string; /** * Sets or retrieves a URI to a long description of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc) */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight) */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth) */ marginWidth: string; /** * Sets or retrieves the frame name. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name) */ name: string; /** * Sets or retrieves whether the user can resize the frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize) */ noResize: boolean; /** * Sets or retrieves whether the frame can be scrolled. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling) */ scrolling: string; /** * Sets or retrieves a URL to be loaded by the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src) */ src: string; addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -11206,6 +10690,8 @@ interface HTMLHeadingElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align) */ align: string; addEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -11342,9 +10828,10 @@ interface HTMLIFrameElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align) */ align: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow) */ allow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */ allowFullscreen: boolean; @@ -11363,6 +10850,8 @@ interface HTMLIFrameElement extends HTMLElement { /** * Sets or retrieves whether to display a border for the frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder) */ frameBorder: string; /** @@ -11376,16 +10865,22 @@ interface HTMLIFrameElement extends HTMLElement { /** * Sets or retrieves a URI to a long description of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc) */ longDesc: string; /** * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight) */ marginHeight: string; /** * Sets or retrieves the left and right margin widths before displaying the text in a frame. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth) */ marginWidth: string; /** @@ -11396,12 +10891,12 @@ interface HTMLIFrameElement extends HTMLElement { name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */ referrerPolicy: ReferrerPolicy; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */ - get sandbox(): DOMTokenList; - set sandbox(value: string); + readonly sandbox: DOMTokenList; /** * Sets or retrieves whether the frame can be scrolled. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling) */ scrolling: string; /** @@ -11422,7 +10917,6 @@ interface HTMLIFrameElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width) */ width: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIframeElement/getSVGDocument) */ getSVGDocument(): Document | null; addEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -11474,7 +10968,7 @@ interface HTMLImageElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */ decoding: "async" | "sync" | "auto"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */ - fetchPriority: "high" | "low" | "auto"; + fetchPriority: string; /** * Sets or retrieves the height of the object. * @@ -11507,7 +11001,11 @@ interface HTMLImageElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc) */ longDesc: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc) + */ lowsrc: string; /** * Sets or retrieves the name of the object. @@ -11582,22 +11080,14 @@ declare var HTMLImageElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement) */ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { - /** - * Sets or retrieves a comma-separated list of content types. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept) - */ + /** Sets or retrieves a comma-separated list of content types. */ accept: string; /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated */ align: string; - /** - * Sets or retrieves a text alternative to the graphic. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt) - */ + /** Sets or retrieves a text alternative to the graphic. */ alt: string; /** * Specifies whether autocomplete is applied to an editable text field. @@ -11605,19 +11095,10 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete) */ autocomplete: AutoFill; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture) */ capture: string; - /** - * Sets or retrieves the state of the check box or radio button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked) - */ + /** Sets or retrieves the state of the check box or radio button. */ checked: boolean; - /** - * Sets or retrieves the state of the check box or radio button. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked) - */ + /** Sets or retrieves the state of the check box or radio button. */ defaultChecked: boolean; /** * Sets or retrieves the initial contents of the object. @@ -11634,11 +11115,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files) */ files: FileList | null; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form) - */ + /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** * Overrides the action attribute (where the data on a form is sent) on the parent form element. @@ -11676,11 +11153,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height) */ height: number; - /** - * When set, overrides the rendering of checkbox controls so that the current value is not visible. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate) - */ + /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */ indeterminate: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */ readonly labels: NodeListOf | null; @@ -11716,11 +11189,7 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple) */ multiple: boolean; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name) - */ + /** Sets or retrieves the name of the object. */ name: string; /** * Gets or sets a string containing a regular expression that the user's input must match. @@ -11734,7 +11203,6 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder) */ placeholder: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly) */ readOnly: boolean; /** * When present, marks an element that can't be submitted without a value. @@ -11756,19 +11224,10 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart) */ selectionStart: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size) */ size: number; - /** - * The address or URL of the a media resource that is to be considered. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src) - */ + /** The address or URL of the a media resource that is to be considered. */ src: string; - /** - * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step) - */ + /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */ step: string; /** * Returns the content type of the object. @@ -11799,17 +11258,9 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value) */ value: string; - /** - * Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate) - */ + /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */ valueAsDate: Date | null; - /** - * Returns the input field value as a number. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber) - */ + /** Returns the input field value as a number. */ valueAsNumber: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */ readonly webkitEntries: ReadonlyArray; @@ -11895,11 +11346,7 @@ declare var HTMLInputElement: { interface HTMLLIElement extends HTMLElement { /** @deprecated */ type: string; - /** - * Sets or retrieves the value of a list item. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value) - */ + /** Sets or retrieves the value of a list item. */ value: number; addEventListener(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -11955,11 +11402,7 @@ declare var HTMLLabelElement: { interface HTMLLegendElement extends HTMLElement { /** @deprecated */ align: string; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form) - */ + /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; addEventListener(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -11980,9 +11423,6 @@ declare var HTMLLegendElement: { interface HTMLLinkElement extends HTMLElement, LinkStyle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */ as: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking) */ - get blocking(): DOMTokenList; - set blocking(value: string); /** * Sets or retrieves the character set used to encode the object. * @deprecated @@ -11990,10 +11430,9 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { charset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */ crossOrigin: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled) */ disabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */ - fetchPriority: "high" | "low" | "auto"; + fetchPriority: string; /** * Sets or retrieves a destination URL or an anchor point. * @@ -12008,13 +11447,8 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { hreflang: string; imageSizes: string; imageSrcset: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */ integrity: string; - /** - * Sets or retrieves the media type. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media) - */ + /** Sets or retrieves the media type. */ media: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */ referrerPolicy: string; @@ -12025,26 +11459,20 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */ - get relList(): DOMTokenList; - set relList(value: string); + readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated */ rev: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */ - get sizes(): DOMTokenList; - set sizes(value: string); + readonly sizes: DOMTokenList; /** * Sets or retrieves the window or frame at which to target content. * @deprecated */ target: string; - /** - * Sets or retrieves the MIME type of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type) - */ + /** Sets or retrieves the MIME type of the object. */ type: string; addEventListener(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -12365,7 +11793,11 @@ declare var HTMLMediaElement: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */ interface HTMLMenuElement extends HTMLElement { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact) + */ compact: boolean; addEventListener(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -12488,7 +11920,11 @@ declare var HTMLModElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement) */ interface HTMLOListElement extends HTMLElement { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact) + */ compact: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */ reversed: boolean; @@ -12517,28 +11953,44 @@ declare var HTMLOListElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement) */ interface HTMLObjectElement extends HTMLElement { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align) + */ align: string; /** * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive) */ archive: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border) + */ border: string; /** * Sets or retrieves the URL of the file containing the compiled Java class. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code) */ code: string; /** * Sets or retrieves the URL of the component. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase) */ codeBase: string; /** * Sets or retrieves the Internet media type for the code associated with the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType) */ codeType: string; /** @@ -12555,7 +12007,11 @@ interface HTMLObjectElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data) */ data: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare) + */ declare: boolean; /** * Retrieves a reference to the form that the object is embedded in. @@ -12569,7 +12025,11 @@ interface HTMLObjectElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height) */ height: string; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace) + */ hspace: number; /** * Sets or retrieves the name of the object. @@ -12580,6 +12040,8 @@ interface HTMLObjectElement extends HTMLElement { /** * Sets or retrieves a message to be displayed while an object is loading. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby) */ standby: string; /** @@ -12607,7 +12069,11 @@ interface HTMLObjectElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity) */ readonly validity: ValidityState; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace) + */ vspace: number; /** * Sets or retrieves the width of the object. @@ -12810,8 +12276,7 @@ interface HTMLOutputElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */ readonly form: HTMLFormElement | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */ - get htmlFor(): DOMTokenList; - set htmlFor(value: string); + readonly htmlFor: DOMTokenList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */ readonly labels: NodeListOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */ @@ -12862,6 +12327,8 @@ interface HTMLParagraphElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align) */ align: string; addEventListener(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -12885,21 +12352,29 @@ interface HTMLParamElement extends HTMLElement { /** * Sets or retrieves the name of an input parameter for an element. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name) */ name: string; /** * Sets or retrieves the content type of the resource designated by the value attribute. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type) */ type: string; /** * Sets or retrieves the value of an input parameter for an element. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value) */ value: string; /** * Sets or retrieves the data type of the value attribute. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType) */ valueType: string; addEventListener(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -12940,6 +12415,8 @@ interface HTMLPreElement extends HTMLElement { /** * Sets or gets a value that you can use to implement your own width functionality for the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width) */ width: number; addEventListener(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -13019,11 +12496,7 @@ declare var HTMLQuoteElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement) */ interface HTMLScriptElement extends HTMLElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */ async: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking) */ - get blocking(): DOMTokenList; - set blocking(value: string); /** * Sets or retrieves the character set used to encode the object. * @deprecated @@ -13031,47 +12504,28 @@ interface HTMLScriptElement extends HTMLElement { charset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */ crossOrigin: string | null; - /** - * Sets or retrieves the status of the script. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer) - */ + /** Sets or retrieves the status of the script. */ defer: boolean; /** * Sets or retrieves the event for which the script is written. * @deprecated */ event: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */ - fetchPriority: "high" | "low" | "auto"; + fetchPriority: string; /** * Sets or retrieves the object that is bound to the event script. * @deprecated */ htmlFor: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */ integrity: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */ noModule: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */ referrerPolicy: string; - /** - * Retrieves the URL to an external file that contains the source code or data. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src) - */ + /** Retrieves the URL to an external file that contains the source code or data. */ src: string; - /** - * Retrieves or sets the text of the object as a string. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text) - */ + /** Retrieves or sets the text of the object as a string. */ text: string; - /** - * Sets or retrieves the MIME type for the associated scripting engine. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type) - */ + /** Sets or retrieves the MIME type for the associated scripting engine. */ type: string; addEventListener(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -13325,9 +12779,6 @@ declare var HTMLSpanElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement) */ interface HTMLStyleElement extends HTMLElement, LinkStyle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking) */ - get blocking(): DOMTokenList; - set blocking(value: string); /** * Enables or disables the style sheet. * @@ -13404,6 +12855,8 @@ interface HTMLTableCellElement extends HTMLElement { /** * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis) */ axis: string; /** @@ -13445,6 +12898,8 @@ interface HTMLTableCellElement extends HTMLElement { /** * Sets or retrieves the height of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height) */ height: string; /** @@ -13475,6 +12930,8 @@ interface HTMLTableCellElement extends HTMLElement { /** * Sets or retrieves the width of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width) */ width: string; addEventListener(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -13528,6 +12985,8 @@ interface HTMLTableColElement extends HTMLElement { /** * Sets or retrieves the width of the object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width) */ width: string; addEventListener(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -13876,14 +13335,7 @@ interface HTMLTemplateElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content) */ readonly content: DocumentFragment; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */ - shadowRootClonable: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */ - shadowRootDelegatesFocus: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */ shadowRootMode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable) */ - shadowRootSerializable: boolean; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -13903,80 +13355,33 @@ declare var HTMLTemplateElement: { interface HTMLTextAreaElement extends HTMLElement { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */ autocomplete: AutoFill; - /** - * Sets or retrieves the width of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols) - */ + /** Sets or retrieves the width of the object. */ cols: number; - /** - * Sets or retrieves the initial contents of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue) - */ + /** Sets or retrieves the initial contents of the object. */ defaultValue: string; dirName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled) */ disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form) - */ + /** Retrieves a reference to the form that the object is embedded in. */ readonly form: HTMLFormElement | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */ readonly labels: NodeListOf; - /** - * Sets or retrieves the maximum number of characters that the user can enter in a text control. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength) - */ + /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */ maxLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */ minLength: number; - /** - * Sets or retrieves the name of the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name) - */ + /** Sets or retrieves the name of the object. */ name: string; - /** - * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder) - */ + /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */ placeholder: string; - /** - * Sets or retrieves the value indicated whether the content of the object is read-only. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly) - */ + /** Sets or retrieves the value indicated whether the content of the object is read-only. */ readOnly: boolean; - /** - * When present, marks an element that can't be submitted without a value. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required) - */ + /** When present, marks an element that can't be submitted without a value. */ required: boolean; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows) - */ + /** Sets or retrieves the number of horizontal rows contained in the object. */ rows: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection) */ selectionDirection: "forward" | "backward" | "none"; - /** - * Gets or sets the end position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd) - */ + /** Gets or sets the end position or offset of a text selection. */ selectionEnd: number; - /** - * Gets or sets the starting position or offset of a text selection. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart) - */ + /** Gets or sets the starting position or offset of a text selection. */ selectionStart: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */ readonly textLength: number; @@ -13986,58 +13391,27 @@ interface HTMLTextAreaElement extends HTMLElement { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type) */ readonly type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage) - */ + /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */ readonly validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity) - */ + /** Returns a ValidityState object that represents the validity states of an element. */ readonly validity: ValidityState; - /** - * Retrieves or sets the text in the entry field of the textArea element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value) - */ + /** Retrieves or sets the text in the entry field of the textArea element. */ value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate) - */ + /** Returns whether an element will successfully validate based on forms validation rules and constraints. */ readonly willValidate: boolean; - /** - * Sets or retrieves how to handle wordwrapping in the object. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap) - */ + /** Sets or retrieves how to handle wordwrapping in the object. */ wrap: string; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity) - */ + /** Returns whether a form will validate when it is submitted, without having to submit it. */ checkValidity(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */ reportValidity(): boolean; - /** - * Highlights the input area of a form element. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select) - */ + /** Highlights the input area of a form element. */ select(): void; /** * Sets a custom error message that is displayed when a form is submitted. * @param error Sets a custom error message that is displayed when a form is submitted. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity) */ setCustomValidity(error: string): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */ setRangeText(replacement: string): void; setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void; /** @@ -14045,8 +13419,6 @@ interface HTMLTextAreaElement extends HTMLElement { * @param start The offset into the text field for the start of the selection. * @param end The offset into the text field for the end of the selection. * @param direction The direction in which the selection is performed. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange) */ setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void; addEventListener(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -14151,9 +13523,17 @@ declare var HTMLTrackElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement) */ interface HTMLUListElement extends HTMLElement { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact) + */ compact: boolean; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type) + */ type: string; addEventListener(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -14184,8 +13564,8 @@ declare var HTMLUnknownElement: { }; interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { - "enterpictureinpicture": PictureInPictureEvent; - "leavepictureinpicture": PictureInPictureEvent; + "enterpictureinpicture": Event; + "leavepictureinpicture": Event; } /** @@ -14203,9 +13583,9 @@ interface HTMLVideoElement extends HTMLMediaElement { */ height: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */ - onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null; + onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */ - onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null; + onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null; /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */ playsInline: boolean; /** @@ -15092,11 +14472,7 @@ declare var ImageBitmap: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */ interface ImageBitmapRenderingContext { - /** - * Returns the canvas element that the context is bound to. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas) - */ + /** Returns the canvas element that the context is bound to. */ readonly canvas: HTMLCanvasElement | OffscreenCanvas; /** * Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. @@ -15145,73 +14521,9 @@ declare var ImageData: { new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder) - */ -interface ImageDecoder { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */ - readonly complete: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */ - readonly completed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */ - readonly tracks: ImageTrackList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */ - decode(options?: ImageDecodeOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */ - reset(): void; -} - -declare var ImageDecoder: { - prototype: ImageDecoder; - new(init: ImageDecoderInit): ImageDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */ - isTypeSupported(type: string): Promise; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */ -interface ImageTrack { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */ - readonly animated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */ - readonly frameCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */ - readonly repetitionCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */ - selected: boolean; -} - -declare var ImageTrack: { - prototype: ImageTrack; - new(): ImageTrack; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */ -interface ImageTrackList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */ - readonly selectedIndex: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */ - readonly selectedTrack: ImageTrack | null; - [index: number]: ImageTrack; -} - -declare var ImageTrackList: { - prototype: ImageTrackList; - new(): ImageTrackList; -}; - -interface ImportMeta { - url: string; - resolve(specifier: string): string; +interface InnerHTML { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ + innerHTML: string; } /** @@ -15299,7 +14611,7 @@ interface IntersectionObserverEntry { declare var IntersectionObserverEntry: { prototype: IntersectionObserverEntry; - new(): IntersectionObserverEntry; + new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */ @@ -15560,7 +14872,7 @@ declare var LockManager: { }; interface MIDIAccessEventMap { - "statechange": MIDIConnectionEvent; + "statechange": Event; } /** @@ -15572,7 +14884,7 @@ interface MIDIAccess extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */ readonly inputs: MIDIInputMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */ - onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null; + onstatechange: ((this: MIDIAccess, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */ readonly outputs: MIDIOutputMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */ @@ -15980,8 +15292,6 @@ declare var MediaKeySystemAccess: { interface MediaKeys { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */ createSession(sessionType?: MediaKeySessionType): MediaKeySession; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy) */ - getStatusForPolicy(policy?: MediaKeysPolicy): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */ setServerCertificate(serverCertificate: BufferSource): Promise; } @@ -16083,7 +15393,7 @@ declare var MediaQueryListEvent: { interface MediaRecorderEventMap { "dataavailable": BlobEvent; - "error": ErrorEvent; + "error": Event; "pause": Event; "resume": Event; "start": Event; @@ -16099,7 +15409,7 @@ interface MediaRecorder extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */ ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */ - onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null; + onerror: ((this: MediaRecorder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */ onpause: ((this: MediaRecorder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */ @@ -16170,8 +15480,11 @@ interface MediaSource extends EventTarget { readonly activeSourceBuffers: SourceBufferList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */ duration: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */ onsourceclose: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */ onsourceended: ((this: MediaSource, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */ onsourceopen: ((this: MediaSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */ readonly readyState: ReadyState; @@ -16196,21 +15509,10 @@ interface MediaSource extends EventTarget { declare var MediaSource: { prototype: MediaSource; new(): MediaSource; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static) */ - readonly canConstructInDedicatedWorker: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */ isTypeSupported(type: string): boolean; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */ -interface MediaSourceHandle { -} - -declare var MediaSourceHandle: { - prototype: MediaSourceHandle; - new(): MediaSourceHandle; -}; - interface MediaStreamEventMap { "addtrack": MediaStreamTrackEvent; "removetrack": MediaStreamTrackEvent; @@ -16414,7 +15716,11 @@ interface MessageEvent extends Event { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) */ readonly source: MessageEventSource | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; } @@ -16423,23 +15729,7 @@ declare var MessageEvent: { new(type: string, eventInitDict?: MessageEventInit): MessageEvent; }; -interface MessageEventTargetEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; -} - -interface MessageEventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ - onmessage: ((this: T, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ - onmessageerror: ((this: T, ev: MessageEvent) => any) | null; - addEventListener(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -interface MessagePortEventMap extends MessageEventTargetEventMap { +interface MessagePortEventMap { "message": MessageEvent; "messageerror": MessageEvent; } @@ -16449,7 +15739,11 @@ interface MessagePortEventMap extends MessageEventTargetEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) */ -interface MessagePort extends EventTarget, MessageEventTarget { +interface MessagePort extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; /** * Disconnects the port, so that it is no longer active. * @@ -16492,21 +15786,29 @@ interface MimeType { /** * Returns the MIME type's description. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description) */ readonly description: string; /** * Returns the Plugin object that implements this MIME type. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin) */ readonly enabledPlugin: Plugin; /** * Returns the MIME type's typical file extensions, in a comma-separated list. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes) */ readonly suffixes: string; /** * Returns the MIME type. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type) */ readonly type: string; } @@ -16524,11 +15826,23 @@ declare var MimeType: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray) */ interface MimeTypeArray { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length) + */ readonly length: number; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item) + */ item(index: number): MimeType | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem) + */ namedItem(name: string): MimeType | null; [index: number]: MimeType; } @@ -16602,6 +15916,63 @@ declare var MouseEvent: { new(type: string, eventInitDict?: MouseEventInit): MouseEvent; }; +/** + * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. + * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent) + */ +interface MutationEvent extends Event { + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange) + */ + readonly attrChange: number; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName) + */ + readonly attrName: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue) + */ + readonly newValue: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue) + */ + readonly prevValue: string; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode) + */ + readonly relatedNode: Node | null; + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent) + */ + initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void; + readonly MODIFICATION: 1; + readonly ADDITION: 2; + readonly REMOVAL: 3; +} + +/** @deprecated */ +declare var MutationEvent: { + prototype: MutationEvent; + new(): MutationEvent; + readonly MODIFICATION: 1; + readonly ADDITION: 2; + readonly REMOVAL: 3; +}; + /** * Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. * @@ -16732,52 +16103,6 @@ declare var NamedNodeMap: { new(): NamedNodeMap; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation) */ -interface NavigationActivation { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry) */ - readonly entry: NavigationHistoryEntry; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from) */ - readonly from: NavigationHistoryEntry | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType) */ - readonly navigationType: NavigationType; -} - -declare var NavigationActivation: { - prototype: NavigationActivation; - new(): NavigationActivation; -}; - -interface NavigationHistoryEntryEventMap { - "dispose": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry) */ -interface NavigationHistoryEntry extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id) */ - readonly id: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index) */ - readonly index: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key) */ - readonly key: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */ - ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument) */ - readonly sameDocument: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url) */ - readonly url: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState) */ - getState(): any; - addEventListener(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var NavigationHistoryEntry: { - prototype: NavigationHistoryEntry; - new(): NavigationHistoryEntry; -}; - /** * Available only in secure contexts. * @@ -16988,7 +16313,7 @@ interface NavigatorPlugins { /** * @deprecated * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes) */ readonly mimeTypes: MimeTypeArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */ @@ -17102,7 +16427,7 @@ interface Node extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode) */ - cloneNode(subtree?: boolean): Node; + cloneNode(deep?: boolean): Node; /** * Returns a bitmask indicating the position of other relative to node. * @@ -17457,7 +16782,7 @@ interface OES_vertex_array_object { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ - createVertexArrayOES(): WebGLVertexArrayObjectOES; + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ @@ -17537,9 +16862,7 @@ interface OffscreenCanvas extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) */ height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */ oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */ oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. @@ -17590,8 +16913,9 @@ declare var OffscreenCanvas: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */ interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: OffscreenCanvas; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */ + commit(): void; } declare var OffscreenCanvasRenderingContext2D: { @@ -17635,30 +16959,6 @@ declare var OverconstrainedError: { new(constraint: string, message?: string): OverconstrainedError; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent) */ -interface PageRevealEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition) */ - readonly viewTransition: ViewTransition | null; -} - -declare var PageRevealEvent: { - prototype: PageRevealEvent; - new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent) */ -interface PageSwapEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation) */ - readonly activation: NavigationActivation | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition) */ - readonly viewTransition: ViewTransition | null; -} - -declare var PageSwapEvent: { - prototype: PageSwapEvent; - new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent; -}; - /** * The PageTransitionEvent is fired when a document is being loaded or unloaded. * @@ -17828,37 +17128,6 @@ declare var Path2D: { new(path?: Path2D | string): Path2D; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress) */ -interface PaymentAddress { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine) */ - readonly addressLine: ReadonlyArray; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city) */ - readonly city: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country) */ - readonly country: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality) */ - readonly dependentLocality: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization) */ - readonly organization: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone) */ - readonly phone: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode) */ - readonly postalCode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient) */ - readonly recipient: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region) */ - readonly region: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode) */ - readonly sortingCode: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; -} - -declare var PaymentAddress: { - prototype: PaymentAddress; - new(): PaymentAddress; -}; - /** * Available only in secure contexts. * @@ -17877,9 +17146,7 @@ declare var PaymentMethodChangeEvent: { }; interface PaymentRequestEventMap { - "paymentmethodchange": PaymentMethodChangeEvent; - "shippingaddresschange": PaymentRequestUpdateEvent; - "shippingoptionchange": PaymentRequestUpdateEvent; + "paymentmethodchange": Event; } /** @@ -17892,37 +17159,7 @@ interface PaymentRequest extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */ - onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event) - */ - onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event) - */ - onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress) - */ - readonly shippingAddress: PaymentAddress | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption) - */ - readonly shippingOption: string | null; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType) - */ - readonly shippingType: PaymentShippingType | null; + onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */ abort(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */ @@ -17937,7 +17174,7 @@ interface PaymentRequest extends EventTarget { declare var PaymentRequest: { prototype: PaymentRequest; - new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest; + new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest; }; /** @@ -17956,10 +17193,6 @@ declare var PaymentRequestUpdateEvent: { new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; }; -interface PaymentResponseEventMap { - "payerdetailchange": PaymentRequestUpdateEvent; -} - /** * This Payment Request API interface is returned after a user selects a payment method and approves a payment request. * Available only in secure contexts. @@ -17971,30 +17204,14 @@ interface PaymentResponse extends EventTarget { readonly details: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */ readonly methodName: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */ - onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail) */ - readonly payerEmail: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName) */ - readonly payerName: string | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone) */ - readonly payerPhone: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */ readonly requestId: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress) */ - readonly shippingAddress: PaymentAddress | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption) */ - readonly shippingOption: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */ complete(result?: PaymentComplete): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */ retry(errorFields?: PaymentValidationErrors): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ toJSON(): any; - addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var PaymentResponse: { @@ -18286,8 +17503,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { readonly responseEnd: DOMHighResTimeStamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ readonly responseStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */ - readonly responseStatus: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ readonly secureConnectionStart: DOMHighResTimeStamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ @@ -18560,11 +17775,15 @@ interface Plugin { /** * Returns the plugin's description. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description) */ readonly description: string; /** * Returns the plugin library's filename, if applicable on the current platform. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename) */ readonly filename: string; /** @@ -18575,14 +17794,22 @@ interface Plugin { /** * Returns the plugin's name. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name) */ readonly name: string; /** * Returns the specified MimeType object. * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item) */ item(index: number): MimeType | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem) + */ namedItem(name: string): MimeType | null; [index: number]: MimeType; } @@ -18600,13 +17827,29 @@ declare var Plugin: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray) */ interface PluginArray { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length) + */ readonly length: number; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item) + */ item(index: number): Plugin | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem) + */ namedItem(name: string): Plugin | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh) + */ refresh(): void; [index: number]: Plugin; } @@ -18623,10 +17866,6 @@ declare var PluginArray: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent) */ interface PointerEvent extends MouseEvent { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle) */ - readonly altitudeAngle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle) */ - readonly azimuthAngle: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */ readonly height: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */ @@ -18668,8 +17907,6 @@ declare var PointerEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent) */ interface PopStateEvent extends Event { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/hasUAVisualTransition) */ - readonly hasUAVisualTransition: boolean; /** * Returns a copy of the information that was provided to pushState() or replaceState(). * @@ -18745,7 +17982,6 @@ declare var PromiseRejectionEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential) */ interface PublicKeyCredential extends Credential { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */ readonly authenticatorAttachment: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */ readonly rawId: ArrayBuffer; @@ -18753,22 +17989,15 @@ interface PublicKeyCredential extends Credential { readonly response: AuthenticatorResponse; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */ getClientExtensionResults(): AuthenticationExtensionsClientOutputs; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */ - toJSON(): PublicKeyCredentialJSON; } declare var PublicKeyCredential: { prototype: PublicKeyCredential; new(): PublicKeyCredential; - getClientCapabilities(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */ isConditionalMediationAvailable(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */ isUserVerifyingPlatformAuthenticatorAvailable(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */ - parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */ - parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions; }; /** @@ -18893,7 +18122,7 @@ interface RTCDataChannelEventMap { "bufferedamountlow": Event; "close": Event; "closing": Event; - "error": RTCErrorEvent; + "error": Event; "message": MessageEvent; "open": Event; } @@ -18923,7 +18152,7 @@ interface RTCDataChannel extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ - onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null; + onerror: ((this: RTCDataChannel, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ @@ -18964,7 +18193,7 @@ declare var RTCDataChannelEvent: { }; interface RTCDtlsTransportEventMap { - "error": RTCErrorEvent; + "error": Event; "statechange": Event; } @@ -18972,11 +18201,12 @@ interface RTCDtlsTransportEventMap { interface RTCDtlsTransport extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */ readonly iceTransport: RTCIceTransport; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */ - onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null; + onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */ onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */ readonly state: RTCDtlsTransportState; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */ getRemoteCertificates(): ArrayBuffer[]; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -19094,11 +18324,6 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; }; -interface RTCIceCandidatePair { - local: RTCIceCandidate; - remote: RTCIceCandidate; -} - interface RTCIceTransportEventMap { "gatheringstatechange": Event; "selectedcandidatepairchange": Event; @@ -19195,9 +18420,9 @@ interface RTCPeerConnection extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */ readonly signalingState: RTCSignalingState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */ - addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise; + addIceCandidate(candidate?: RTCIceCandidateInit): Promise; /** @deprecated */ - addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise; + addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */ addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */ @@ -19255,9 +18480,12 @@ declare var RTCPeerConnection: { interface RTCPeerConnectionIceErrorEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */ readonly address: string | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */ readonly errorCode: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */ readonly errorText: string; readonly port: number | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */ readonly url: string; } @@ -19287,8 +18515,6 @@ declare var RTCPeerConnectionIceEvent: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver) */ interface RTCRtpReceiver { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget) */ - jitterBufferTarget: DOMHighResTimeStamp | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */ readonly track: MediaStreamTrack; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */ @@ -19367,7 +18593,7 @@ interface RTCRtpTransceiver { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */ readonly sender: RTCRtpSender; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ - setCodecPreferences(codecs: RTCRtpCodec[]): void; + setCodecPreferences(codecs: RTCRtpCodecCapability[]): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */ stop(): void; } @@ -19387,7 +18613,6 @@ interface RTCSctpTransport extends EventTarget { readonly maxChannels: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */ readonly maxMessageSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */ onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */ readonly state: RTCSctpTransportState; @@ -19415,7 +18640,7 @@ interface RTCSessionDescription { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */ readonly type: RTCSdpType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */ - toJSON(): RTCSessionDescriptionInit; + toJSON(): any; } declare var RTCSessionDescription: { @@ -19488,7 +18713,7 @@ interface Range extends AbstractRange { */ comparePoint(node: Node, offset: number): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */ - createContextualFragment(string: string): DocumentFragment; + createContextualFragment(fragment: string): DocumentFragment; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */ deleteContents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */ @@ -19601,7 +18826,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { declare var ReadableStreamBYOBReader: { prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; + new(stream: ReadableStream): ReadableStreamBYOBReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ @@ -19651,7 +18876,7 @@ declare var ReadableStreamDefaultReader: { interface ReadableStreamGenericReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ cancel(reason?: any): Promise; } @@ -19707,7 +18932,6 @@ declare var Report: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */ interface ReportBody { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */ toJSON(): any; } @@ -19847,7 +19071,6 @@ interface ResizeObserverEntry { readonly contentBoxSize: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */ readonly contentRect: DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize) */ readonly devicePixelContentBoxSize: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */ readonly target: Element; @@ -19913,8 +19136,7 @@ declare var Response: { */ interface SVGAElement extends SVGGraphicsElement, SVGURIReference { rel: string; - get relList(): DOMTokenList; - set relList(value: string); + readonly relList: DOMTokenList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */ readonly target: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -19934,17 +19156,11 @@ declare var SVGAElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle) */ interface SVGAngle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/unitType) */ readonly unitType: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/value) */ value: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueAsString) */ valueAsString: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueInSpecifiedUnits) */ valueInSpecifiedUnits: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/convertToSpecifiedUnits) */ convertToSpecifiedUnits(unitType: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/newValueSpecifiedUnits) */ newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; readonly SVG_ANGLETYPE_UNKNOWN: 0; readonly SVG_ANGLETYPE_UNSPECIFIED: 1; @@ -20008,9 +19224,7 @@ declare var SVGAnimateTransformElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle) */ interface SVGAnimatedAngle { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal) */ readonly animVal: SVGAngle; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal) */ readonly baseVal: SVGAngle; } @@ -20025,9 +19239,7 @@ declare var SVGAnimatedAngle: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean) */ interface SVGAnimatedBoolean { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal) */ readonly animVal: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal) */ baseVal: boolean; } @@ -20042,9 +19254,7 @@ declare var SVGAnimatedBoolean: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration) */ interface SVGAnimatedEnumeration { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal) */ readonly animVal: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal) */ baseVal: number; } @@ -20059,9 +19269,7 @@ declare var SVGAnimatedEnumeration: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger) */ interface SVGAnimatedInteger { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/animVal) */ readonly animVal: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/baseVal) */ baseVal: number; } @@ -20076,9 +19284,7 @@ declare var SVGAnimatedInteger: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength) */ interface SVGAnimatedLength { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal) */ readonly animVal: SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal) */ readonly baseVal: SVGLength; } @@ -20093,9 +19299,7 @@ declare var SVGAnimatedLength: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList) */ interface SVGAnimatedLengthList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal) */ readonly animVal: SVGLengthList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal) */ readonly baseVal: SVGLengthList; } @@ -20110,9 +19314,7 @@ declare var SVGAnimatedLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber) */ interface SVGAnimatedNumber { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal) */ readonly animVal: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal) */ baseVal: number; } @@ -20127,9 +19329,7 @@ declare var SVGAnimatedNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList) */ interface SVGAnimatedNumberList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal) */ readonly animVal: SVGNumberList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal) */ readonly baseVal: SVGNumberList; } @@ -20139,9 +19339,7 @@ declare var SVGAnimatedNumberList: { }; interface SVGAnimatedPoints { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints) */ readonly animatedPoints: SVGPointList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points) */ readonly points: SVGPointList; } @@ -20151,9 +19349,7 @@ interface SVGAnimatedPoints { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio) */ interface SVGAnimatedPreserveAspectRatio { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal) */ readonly animVal: SVGPreserveAspectRatio; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal) */ readonly baseVal: SVGPreserveAspectRatio; } @@ -20168,9 +19364,7 @@ declare var SVGAnimatedPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect) */ interface SVGAnimatedRect { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal) */ readonly animVal: DOMRectReadOnly; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal) */ readonly baseVal: DOMRect; } @@ -20202,9 +19396,7 @@ declare var SVGAnimatedString: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList) */ interface SVGAnimatedTransformList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal) */ readonly animVal: SVGTransformList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal) */ readonly baseVal: SVGTransformList; } @@ -20217,19 +19409,12 @@ declare var SVGAnimatedTransformList: { interface SVGAnimationElement extends SVGElement, SVGTests { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */ readonly targetElement: SVGElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement) */ beginElement(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt) */ beginElementAt(offset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement) */ endElement(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt) */ endElementAt(offset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getCurrentTime) */ getCurrentTime(): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getSimpleDuration) */ getSimpleDuration(): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getStartTime) */ getStartTime(): number; addEventListener(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20292,19 +19477,12 @@ declare var SVGClipPathElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement) */ interface SVGComponentTransferFunctionElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude) */ readonly amplitude: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent) */ readonly exponent: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept) */ readonly intercept: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset) */ readonly offset: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope) */ readonly slope: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues) */ readonly tableValues: SVGAnimatedNumberList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type) */ readonly type: SVGAnimatedEnumeration; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0; readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1; @@ -20374,9 +19552,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement { /** @deprecated */ readonly className: any; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/ownerSVGElement) */ readonly ownerSVGElement: SVGSVGElement | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/viewportElement) */ readonly viewportElement: SVGElement | null; addEventListener(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20596,15 +19772,10 @@ declare var SVGFEConvolveMatrixElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement) */ interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant) */ readonly diffuseConstant: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/in1) */ readonly in1: SVGAnimatedString; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX) */ readonly kernelUnitLengthX: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY) */ readonly kernelUnitLengthY: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale) */ readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20655,9 +19826,7 @@ declare var SVGFEDisplacementMapElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement) */ interface SVGFEDistantLightElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth) */ readonly azimuth: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation) */ readonly elevation: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20780,13 +19949,9 @@ declare var SVGFEFuncRElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement) */ interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1) */ readonly in1: SVGAnimatedString; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX) */ readonly stdDeviationX: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY) */ readonly stdDeviationY: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation) */ setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20840,7 +20005,6 @@ declare var SVGFEMergeElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement) */ interface SVGFEMergeNodeElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement/in1) */ readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20859,13 +20023,9 @@ declare var SVGFEMergeNodeElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement) */ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/in1) */ readonly in1: SVGAnimatedString; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/operator) */ readonly operator: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusX) */ readonly radiusX: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusY) */ readonly radiusY: SVGAnimatedNumber; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0; readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1; @@ -20910,11 +20070,8 @@ declare var SVGFEOffsetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement) */ interface SVGFEPointLightElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/x) */ readonly x: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/y) */ readonly y: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/z) */ readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20933,15 +20090,11 @@ declare var SVGFEPointLightElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement) */ interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1) */ readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; readonly kernelUnitLengthY: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularConstant) */ readonly specularConstant: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularExponent) */ readonly specularExponent: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale) */ readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -20965,11 +20118,8 @@ interface SVGFESpotLightElement extends SVGElement { readonly pointsAtY: SVGAnimatedNumber; readonly pointsAtZ: SVGAnimatedNumber; readonly specularExponent: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/x) */ readonly x: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/y) */ readonly y: SVGAnimatedNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/z) */ readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21041,17 +20191,11 @@ declare var SVGFETurbulenceElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement) */ interface SVGFilterElement extends SVGElement, SVGURIReference { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits) */ readonly filterUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/height) */ readonly height: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits) */ readonly primitiveUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/width) */ readonly width: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/x) */ readonly x: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y) */ readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21146,11 +20290,8 @@ declare var SVGGeometryElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement) */ interface SVGGradientElement extends SVGElement, SVGURIReference { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform) */ readonly gradientTransform: SVGAnimatedTransformList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits) */ readonly gradientUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod) */ readonly spreadMethod: SVGAnimatedEnumeration; readonly SVG_SPREADMETHOD_UNKNOWN: 0; readonly SVG_SPREADMETHOD_PAD: 1; @@ -21199,6 +20340,7 @@ declare var SVGGraphicsElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement) */ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */ crossOrigin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */ readonly height: SVGAnimatedLength; @@ -21268,23 +20410,14 @@ declare var SVGLength: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList) */ interface SVGLengthList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems) */ readonly numberOfItems: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem) */ appendItem(newItem: SVGLength): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear) */ clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem) */ getItem(index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize) */ initialize(newItem: SVGLength): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore) */ insertItemBefore(newItem: SVGLength, index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem) */ removeItem(index: number): SVGLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem) */ replaceItem(newItem: SVGLength, index: number): SVGLength; [index: number]: SVGLength; } @@ -21300,13 +20433,9 @@ declare var SVGLengthList: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement) */ interface SVGLineElement extends SVGGeometryElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x1) */ readonly x1: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x2) */ readonly x2: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y1) */ readonly y1: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y2) */ readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21325,13 +20454,9 @@ declare var SVGLineElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement) */ interface SVGLinearGradientElement extends SVGGradientElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x1) */ readonly x1: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x2) */ readonly x2: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y1) */ readonly y1: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y2) */ readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21466,23 +20591,14 @@ declare var SVGNumber: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList) */ interface SVGNumberList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems) */ readonly numberOfItems: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem) */ appendItem(newItem: SVGNumber): SVGNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear) */ clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem) */ getItem(index: number): SVGNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize) */ initialize(newItem: SVGNumber): SVGNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore) */ insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem) */ removeItem(index: number): SVGNumber; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem) */ replaceItem(newItem: SVGNumber, index: number): SVGNumber; [index: number]: SVGNumber; } @@ -21516,11 +20632,8 @@ declare var SVGPathElement: { */ interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference { readonly height: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternContentUnits) */ readonly patternContentUnits: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternTransform) */ readonly patternTransform: SVGAnimatedTransformList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternUnits) */ readonly patternUnits: SVGAnimatedEnumeration; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; @@ -21647,16 +20760,11 @@ declare var SVGPreserveAspectRatio: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement) */ interface SVGRadialGradientElement extends SVGGradientElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cx) */ readonly cx: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cy) */ readonly cy: SVGAnimatedLength; readonly fr: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fx) */ readonly fx: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fy) */ readonly fy: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/r) */ readonly r: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21675,17 +20783,11 @@ declare var SVGRadialGradientElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement) */ interface SVGRectElement extends SVGGeometryElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height) */ readonly height: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx) */ readonly rx: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry) */ readonly ry: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width) */ readonly width: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x) */ readonly x: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y) */ readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21788,7 +20890,6 @@ declare var SVGSetElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement) */ interface SVGStopElement extends SVGElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset) */ readonly offset: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -21904,9 +21005,7 @@ declare var SVGTSpanElement: { }; interface SVGTests { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) */ readonly requiredExtensions: SVGStringList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) */ readonly systemLanguage: SVGStringList; } @@ -21916,25 +21015,15 @@ interface SVGTests { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement) */ interface SVGTextContentElement extends SVGGraphicsElement { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust) */ readonly lengthAdjust: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/textLength) */ readonly textLength: SVGAnimatedLength; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition) */ getCharNumAtPosition(point?: DOMPointInit): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength) */ getComputedTextLength(): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar) */ getEndPositionOfChar(charnum: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar) */ getExtentOfChar(charnum: number): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars) */ getNumberOfChars(): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar) */ getRotationOfChar(charnum: number): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar) */ getStartPositionOfChar(charnum: number): DOMPoint; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength) */ getSubStringLength(charnum: number, nchars: number): number; /** @deprecated */ selectSubString(charnum: number, nchars: number): void; @@ -21978,11 +21067,8 @@ declare var SVGTextElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement) */ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method) */ readonly method: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing) */ readonly spacing: SVGAnimatedEnumeration; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset) */ readonly startOffset: SVGAnimatedLength; readonly TEXTPATH_METHODTYPE_UNKNOWN: 0; readonly TEXTPATH_METHODTYPE_ALIGN: 1; @@ -22052,23 +21138,14 @@ declare var SVGTitleElement: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform) */ interface SVGTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/angle) */ readonly angle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix) */ readonly matrix: DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/type) */ readonly type: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setMatrix) */ setMatrix(matrix?: DOMMatrix2DInit): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setRotate) */ setRotate(angle: number, cx: number, cy: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setScale) */ setScale(sx: number, sy: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewX) */ setSkewX(angle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewY) */ setSkewY(angle: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setTranslate) */ setTranslate(tx: number, ty: number): void; readonly SVG_TRANSFORM_UNKNOWN: 0; readonly SVG_TRANSFORM_MATRIX: 1; @@ -22097,27 +21174,16 @@ declare var SVGTransform: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList) */ interface SVGTransformList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length) */ readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems) */ readonly numberOfItems: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem) */ appendItem(newItem: SVGTransform): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear) */ clear(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate) */ consolidate(): SVGTransform | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix) */ createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem) */ getItem(index: number): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize) */ initialize(newItem: SVGTransform): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore) */ insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem) */ removeItem(index: number): SVGTransform; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem) */ replaceItem(newItem: SVGTransform, index: number): SVGTransform; [index: number]: SVGTransform; } @@ -22128,7 +21194,6 @@ declare var SVGTransformList: { }; interface SVGURIReference { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/href) */ readonly href: SVGAnimatedString; } @@ -22224,7 +21289,6 @@ interface ScreenOrientationEventMap { interface ScreenOrientation extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */ readonly angle: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */ onchange: ((this: ScreenOrientation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */ readonly type: OrientationType; @@ -22323,8 +21387,6 @@ interface Selection { readonly anchorNode: Node | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */ readonly anchorOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction) */ - readonly direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */ readonly focusNode: Node | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */ @@ -22347,7 +21409,7 @@ interface Selection { containsNode(node: Node, allowPartialContainment?: boolean): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */ deleteFromDocument(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/empty) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */ empty(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */ extend(node: Node, offset?: number): void; @@ -22363,7 +21425,7 @@ interface Selection { selectAllChildren(node: Node): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */ setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setPosition) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */ setPosition(node: Node | null, offset?: number): void; toString(): string; } @@ -22497,25 +21559,18 @@ interface ShadowRootEventMap { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */ -interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot { +interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */ readonly clonable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */ readonly delegatesFocus: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */ readonly host: Element; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */ - innerHTML: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */ readonly mode: ShadowRootMode; onslotchange: ((this: ShadowRoot, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable) */ - readonly serializable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */ readonly slotAssignment: SlotAssignmentMode; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML) */ - getHTML(options?: GetHTMLOptions): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe) */ setHTMLUnsafe(html: string): void; /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */ addEventListener(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; @@ -22575,10 +21630,15 @@ interface SourceBuffer extends EventTarget { readonly buffered: TimeRanges; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */ mode: AppendMode; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */ onabort: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */ onerror: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */ onupdate: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */ onupdateend: ((this: SourceBuffer, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */ onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */ timestampOffset: number; @@ -22616,7 +21676,9 @@ interface SourceBufferListEventMap { interface SourceBufferList extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */ readonly length: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */ onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */ onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null; addEventListener(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; @@ -23026,8 +22088,7 @@ interface StyleSheet { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */ readonly href: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */ - get media(): MediaList; - set media(mediaText: string); + readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */ readonly ownerNode: Element | ProcessingInstruction | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */ @@ -23086,7 +22147,7 @@ interface SubtleCrypto { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ - deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise; + deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ @@ -23098,7 +22159,7 @@ interface SubtleCrypto { exportKey(format: Exclude, key: CryptoKey): Promise; exportKey(format: KeyFormat, key: CryptoKey): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise; @@ -23251,32 +22312,6 @@ declare var TextEncoderStream: { new(): TextEncoderStream; }; -/** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent) - */ -interface TextEvent extends UIEvent { - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data) - */ - readonly data: string; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent) - */ - initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void; -} - -/** @deprecated */ -declare var TextEvent: { - prototype: TextEvent; - new(): TextEvent; -}; - /** * The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. * @@ -23870,11 +22905,9 @@ declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ - canParse(url: string | URL, base?: string | URL): boolean; + canParse(url: string | URL, base?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ createObjectURL(obj: Blob | MediaSource): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */ - parse(url: string | URL, base?: string | URL): URL | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ revokeObjectURL(url: string): void; }; @@ -23938,7 +22971,7 @@ declare var URLSearchParams: { interface UserActivation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ readonly hasBeenActive: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */ readonly isActive: boolean; } @@ -23984,13 +23017,21 @@ declare var VTTCue: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */ interface VTTRegion { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */ id: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */ lines: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */ regionAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */ regionAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */ scroll: ScrollSetting; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */ viewportAnchorX: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */ viewportAnchorY: number; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */ width: number; } @@ -24065,7 +23106,6 @@ interface VideoDecoderEventMap { interface VideoDecoder extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */ ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ readonly state: CodecState; @@ -24088,7 +23128,6 @@ interface VideoDecoder extends EventTarget { declare var VideoDecoder: { prototype: VideoDecoder; new(init: VideoDecoderInit): VideoDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */ isConfigSupported(config: VideoDecoderConfig): Promise; }; @@ -24104,7 +23143,6 @@ interface VideoEncoderEventMap { interface VideoEncoder extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */ ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ readonly state: CodecState; @@ -24114,7 +23152,6 @@ interface VideoEncoder extends EventTarget { configure(config: VideoEncoderConfig): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */ flush(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ reset(): void; @@ -24127,7 +23164,6 @@ interface VideoEncoder extends EventTarget { declare var VideoEncoder: { prototype: VideoEncoder; new(init: VideoEncoderInit): VideoEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */ isConfigSupported(config: VideoEncoderConfig): Promise; }; @@ -24159,7 +23195,6 @@ interface VideoFrame { clone(): VideoFrame; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */ copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise; } @@ -24194,33 +23229,6 @@ declare var VideoPlaybackQuality: { new(): VideoPlaybackQuality; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition) */ -interface ViewTransition { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished) */ - readonly finished: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready) */ - readonly ready: Promise; - types: ViewTransitionTypeSet; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone) */ - readonly updateCallbackDone: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition) */ - skipTransition(): void; -} - -declare var ViewTransition: { - prototype: ViewTransition; - new(): ViewTransition; -}; - -interface ViewTransitionTypeSet { - forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void; -} - -declare var ViewTransitionTypeSet: { - prototype: ViewTransitionTypeSet; - new(): ViewTransitionTypeSet; -}; - interface VisualViewportEventMap { "resize": Event; "scroll": Event; @@ -25097,13 +24105,13 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ - createQuery(): WebGLQuery; + createQuery(): WebGLQuery | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ - createSampler(): WebGLSampler; + createSampler(): WebGLSampler | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ - createTransformFeedback(): WebGLTransformFeedback; + createTransformFeedback(): WebGLTransformFeedback | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ - createVertexArray(): WebGLVertexArrayObject; + createVertexArray(): WebGLVertexArrayObject | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ deleteQuery(query: WebGLQuery | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ @@ -25508,11 +24516,11 @@ interface WebGL2RenderingContextBase { } interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void; bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ @@ -25553,7 +24561,7 @@ interface WebGL2RenderingContextOverloads { uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; @@ -25969,14 +24977,11 @@ declare var WebGLRenderingContext: { interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */ readonly canvas: HTMLCanvasElement | OffscreenCanvas; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */ drawingBufferColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ readonly drawingBufferHeight: GLsizei; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ readonly drawingBufferWidth: GLsizei; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ - unpackColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ activeTexture(texture: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ @@ -26020,17 +25025,17 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ - createBuffer(): WebGLBuffer; + createBuffer(): WebGLBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ - createFramebuffer(): WebGLFramebuffer; + createFramebuffer(): WebGLFramebuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ - createProgram(): WebGLProgram; + createProgram(): WebGLProgram | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ - createRenderbuffer(): WebGLRenderbuffer; + createRenderbuffer(): WebGLRenderbuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ createShader(type: GLenum): WebGLShader | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ - createTexture(): WebGLTexture; + createTexture(): WebGLTexture | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ cullFace(mode: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ @@ -26175,7 +25180,6 @@ interface WebGLRenderingContextBase { isShader(shader: WebGLShader | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ isTexture(texture: WebGLTexture | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */ lineWidth(width: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ linkProgram(program: WebGLProgram): void; @@ -26682,7 +25686,7 @@ declare var WebGLVertexArrayObject: { new(): WebGLVertexArrayObject; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */ interface WebGLVertexArrayObjectOES { } @@ -26793,7 +25797,7 @@ interface WebTransport { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ close(closeInfo?: WebTransportCloseInfo): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ @@ -26959,7 +25963,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */ get location(): Location; - set location(href: string); + set location(href: string | Location); /** * Returns true if the location bar is visible; otherwise, returns false. * @@ -27012,9 +26016,17 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler readonly outerHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ readonly outerWidth: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ + /** + * @deprecated This is a legacy alias of `scrollX`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) + */ readonly pageXOffset: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ + /** + * @deprecated This is a legacy alias of `scrollY`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) + */ readonly pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. @@ -27191,9 +26203,7 @@ interface WindowEventHandlersEventMap { "offline": Event; "online": Event; "pagehide": PageTransitionEvent; - "pagereveal": Event; "pageshow": PageTransitionEvent; - "pageswap": Event; "popstate": PopStateEvent; "rejectionhandled": PromiseRejectionEvent; "storage": StorageEvent; @@ -27226,12 +26236,8 @@ interface WindowEventHandlers { ononline: ((this: WindowEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */ - onpagereveal: ((this: WindowEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */ - onpageswap: ((this: WindowEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ @@ -27261,43 +26267,43 @@ interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) */ readonly caches: CacheStorage; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ readonly crossOriginIsolated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ readonly crypto: Crypto; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ readonly indexedDB: IDBFactory; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ readonly isSecureContext: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ readonly origin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ readonly performance: Performance; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ atob(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ btoa(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ clearInterval(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ clearTimeout(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ fetch(input: RequestInfo | URL, init?: RequestInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ queueMicrotask(callback: VoidFunction): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ reportError(e: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ structuredClone(value: T, options?: StructuredSerializeOptions): T; } @@ -27306,7 +26312,9 @@ interface WindowSessionStorage { readonly sessionStorage: Storage; } -interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap { +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; } /** @@ -27314,7 +26322,11 @@ interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) */ -interface Worker extends EventTarget, AbstractWorker, MessageEventTarget { +interface Worker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ + onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; /** * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. * @@ -27407,11 +26419,11 @@ declare var WritableStreamDefaultController: { */ interface WritableStreamDefaultWriter { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ readonly desiredSize: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ abort(reason?: any): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ @@ -27670,11 +26682,7 @@ declare var XPathEvaluator: { interface XPathEvaluatorBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */ createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression; - /** - * @deprecated - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) - */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */ createNSResolver(nodeResolver: Node): Node; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */ evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult; @@ -27961,7 +26969,9 @@ declare namespace WebAssembly { /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ interface Global { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ value: ValueTypeMap[T]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ valueOf(): ValueTypeMap[T]; } @@ -28108,10 +27118,6 @@ declare namespace WebAssembly { function validate(bytes: BufferSource): boolean; } -interface AudioDataOutputCallback { - (output: AudioData): void; -} - interface BlobCallback { (blob: Blob | null): void; } @@ -28128,10 +27134,6 @@ interface DecodeSuccessCallback { (decodedData: AudioBuffer): void; } -interface EncodedAudioChunkOutputCallback { - (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void; -} - interface EncodedVideoChunkOutputCallback { (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; } @@ -28276,10 +27278,6 @@ interface VideoFrameRequestCallback { (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void; } -interface ViewTransitionUpdateCallback { - (): any; -} - interface VoidFunction { (): void; } @@ -28647,9 +27645,17 @@ declare var orientation: number; declare var outerHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */ declare var outerWidth: number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */ +/** + * @deprecated This is a legacy alias of `scrollX`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) + */ declare var pageXOffset: number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */ +/** + * @deprecated This is a legacy alias of `scrollY`. + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) + */ declare var pageYOffset: number; /** * Refers to either the parent WindowProxy, or itself. @@ -28867,8 +27873,6 @@ declare var onchange: ((this: Window, ev: Event) => any) | null; declare var onclick: ((this: Window, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ declare var onclose: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ -declare var oncontextlost: ((this: Window, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. @@ -28876,8 +27880,6 @@ declare var oncontextlost: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ -declare var oncontextrestored: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ @@ -29028,7 +28030,7 @@ declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ declare var onloadstart: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. @@ -29192,7 +28194,7 @@ declare var onsuspend: ((this: Window, ev: Event) => any) | null; * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ declare var ontimeupdate: ((this: Window, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ declare var ontoggle: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined; @@ -29274,12 +28276,8 @@ declare var onoffline: ((this: Window, ev: Event) => any) | null; declare var ononline: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */ declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */ -declare var onpagereveal: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */ declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */ -declare var onpageswap: ((this: Window, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */ declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */ @@ -29299,43 +28297,43 @@ declare var localStorage: Storage; /** * Available only in secure contexts. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) */ declare var caches: CacheStorage; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ declare var crossOriginIsolated: boolean; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ declare var crypto: Crypto; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ declare var indexedDB: IDBFactory; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ declare var isSecureContext: boolean; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ declare var origin: string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ declare var performance: Performance; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ declare function atob(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ declare function btoa(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ declare function clearInterval(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ declare function clearTimeout(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ declare function queueMicrotask(callback: VoidFunction): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ declare function reportError(e: any): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ declare function structuredClone(value: T, options?: StructuredSerializeOptions): T; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */ declare var sessionStorage: Storage; @@ -29348,8 +28346,8 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; type AutoFill = AutoFillBase | `${OptionalPrefixToken}${OptionalPrefixToken}${AutoFillField}${OptionalPostfixToken}`; type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken}${AutoFillContactField}`; type AutoFillSection = `section-${string}`; -type Base64URLString = string; type BigInteger = Uint8Array; +type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; type BufferSource = ArrayBufferView | ArrayBuffer; @@ -29389,7 +28387,6 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; -type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type Int32List = Int32Array | GLint[]; type LineAndPositionSetting = number | AutoKeyword; type MediaProvider = MediaStream | MediaSource | Blob; @@ -29402,8 +28399,6 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null; type OptionalPostfixToken = ` ${T}` | ""; type OptionalPrefixToken = `${T} ` | ""; type PerformanceEntryList = PerformanceEntry[]; -type PublicKeyCredentialClientCapabilities = Record; -type PublicKeyCredentialJSON = any; type RTCRtpTransform = RTCRtpScriptTransform; type ReadableStreamController = ReadableStreamDefaultController | ReadableByteStreamController; type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; @@ -29413,7 +28408,7 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type VibratePattern = number | number[]; type WindowProxy = Window; @@ -29426,7 +28421,6 @@ type AppendMode = "segments" | "sequence"; type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none"; type AudioContextLatencyCategory = "balanced" | "interactive" | "playback"; type AudioContextState = "closed" | "running" | "suspended"; -type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; type AuthenticatorAttachment = "cross-platform" | "platform"; type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb"; type AutoFillAddressKind = "billing" | "shipping"; @@ -29440,7 +28434,6 @@ type AutomationRate = "a-rate" | "k-rate"; type AvcBitstreamFormat = "annexb" | "avc"; type BinaryType = "arraybuffer" | "blob"; type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking"; -type BitrateMode = "constant" | "variable"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; type CanPlayTypeResult = "" | "maybe" | "probably"; @@ -29470,7 +28463,6 @@ type DisplayCaptureSurfaceType = "browser" | "monitor" | "window"; type DistanceModelType = "exponential" | "inverse" | "linear"; type DocumentReadyState = "complete" | "interactive" | "loading"; type DocumentVisibilityState = "hidden" | "visible"; -type EncodedAudioChunkType = "delta" | "key"; type EncodedVideoChunkType = "delta" | "key"; type EndOfStreamError = "decode" | "network"; type EndingType = "native" | "transparent"; @@ -29516,18 +28508,15 @@ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "se type MediaSessionPlaybackState = "none" | "paused" | "playing"; type MediaStreamTrackState = "ended" | "live"; type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"; -type NavigationType = "push" | "reload" | "replace" | "traverse"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; -type OpusBitstreamFormat = "ogg" | "opus"; type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary"; type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle"; type OverSampleType = "2x" | "4x" | "none"; type PanningModelType = "HRTF" | "equalpower"; type PaymentComplete = "fail" | "success" | "unknown"; -type PaymentShippingType = "delivery" | "pickup" | "shipping"; -type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access"; +type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; type PermissionState = "denied" | "granted" | "prompt"; type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse"; type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right"; @@ -29539,7 +28528,6 @@ type PushEncryptionKeyName = "auth" | "p256dh"; type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat"; type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution"; -type RTCDtlsRole = "client" | "server" | "unknown"; type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error"; @@ -29549,13 +28537,11 @@ type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | type RTCIceGathererState = "complete" | "gathering" | "new"; type RTCIceGatheringState = "complete" | "gathering" | "new"; type RTCIceProtocol = "tcp" | "udp"; -type RTCIceRole = "controlled" | "controlling" | "unknown"; type RTCIceTcpCandidateType = "active" | "passive" | "so"; type RTCIceTransportPolicy = "all" | "relay"; type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new"; type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new"; type RTCPriorityType = "high" | "low" | "medium" | "very-low"; -type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other"; type RTCRtcpMuxPolicy = "require"; type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped"; type RTCSctpTransportState = "closed" | "connected" | "connecting"; diff --git a/node_modules/typescript/lib/lib.dom.iterable.d.ts b/node_modules/typescript/lib/lib.dom.iterable.d.ts index ba62c82b4..f8ac3d9c1 100644 --- a/node_modules/typescript/lib/lib.dom.iterable.d.ts +++ b/node_modules/typescript/lib/lib.dom.iterable.d.ts @@ -20,6 +20,11 @@ and limitations under the License. /// Window Iterable APIs ///////////////////////////// +interface AbortSignal { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ + any(signals: Iterable): AbortSignal; +} + interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: Iterable, startTime: number, duration: number): AudioParam; @@ -36,36 +41,36 @@ interface BaseAudioContext { } interface CSSKeyframesRule { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface CSSNumericArray { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSNumericValue]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSNumericValue]>; + keys(): IterableIterator; + values(): IterableIterator; } interface CSSRuleList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface CSSStyleDeclaration { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface CSSTransformValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSTransformComponent]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSTransformComponent]>; + keys(): IterableIterator; + values(): IterableIterator; } interface CSSUnparsedValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSUnparsedSegment]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSUnparsedSegment]>; + keys(): IterableIterator; + values(): IterableIterator; } interface Cache { @@ -87,80 +92,72 @@ interface CustomStateSet extends Set { } interface DOMRectList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface DOMStringList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface DOMTokenList { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, string]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, string]>; + keys(): IterableIterator; + values(): IterableIterator; } interface DataTransferItemList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface EventCounts extends ReadonlyMap { } interface FileList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface FontFaceSet extends Set { } -interface FormDataIterator extends IteratorObject { - [Symbol.iterator](): FormDataIterator; -} - interface FormData { - [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; /** Returns an array of key, value pairs for every entry in the list. */ - entries(): FormDataIterator<[string, FormDataEntryValue]>; + entries(): IterableIterator<[string, FormDataEntryValue]>; /** Returns a list of keys in the list. */ - keys(): FormDataIterator; + keys(): IterableIterator; /** Returns a list of values in the list. */ - values(): FormDataIterator; + values(): IterableIterator; } interface HTMLAllCollection { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface HTMLCollectionBase { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface HTMLCollectionOf { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface HTMLFormElement { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface HTMLSelectElement { - [Symbol.iterator](): ArrayIterator; -} - -interface HeadersIterator extends IteratorObject { - [Symbol.iterator](): HeadersIterator; + [Symbol.iterator](): IterableIterator; } interface Headers { - [Symbol.iterator](): HeadersIterator<[string, string]>; + [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ - entries(): HeadersIterator<[string, string]>; + entries(): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ - keys(): HeadersIterator; + keys(): IterableIterator; /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ - values(): HeadersIterator; + values(): IterableIterator; } interface Highlight extends Set { @@ -189,10 +186,6 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface ImageTrackList { - [Symbol.iterator](): ArrayIterator; -} - interface MIDIInputMap extends ReadonlyMap { } @@ -204,32 +197,32 @@ interface MIDIOutput { interface MIDIOutputMap extends ReadonlyMap { } -interface MediaKeyStatusMapIterator extends IteratorObject { - [Symbol.iterator](): MediaKeyStatusMapIterator; -} - interface MediaKeyStatusMap { - [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; - entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>; - keys(): MediaKeyStatusMapIterator; - values(): MediaKeyStatusMapIterator; + [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; + entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; + keys(): IterableIterator; + values(): IterableIterator; } interface MediaList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface MessageEvent { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; } interface MimeTypeArray { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface NamedNodeMap { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface Navigator { @@ -244,93 +237,89 @@ interface Navigator { } interface NodeList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; /** Returns an array of key, value pairs for every entry in the list. */ - entries(): ArrayIterator<[number, Node]>; + entries(): IterableIterator<[number, Node]>; /** Returns an list of keys in the list. */ - keys(): ArrayIterator; + keys(): IterableIterator; /** Returns an list of values in the list. */ - values(): ArrayIterator; + values(): IterableIterator; } interface NodeListOf { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; /** Returns an array of key, value pairs for every entry in the list. */ - entries(): ArrayIterator<[number, TNode]>; + entries(): IterableIterator<[number, TNode]>; /** Returns an list of keys in the list. */ - keys(): ArrayIterator; + keys(): IterableIterator; /** Returns an list of values in the list. */ - values(): ArrayIterator; + values(): IterableIterator; } interface Plugin { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface PluginArray { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface RTCRtpTransceiver { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */ - setCodecPreferences(codecs: Iterable): void; + setCodecPreferences(codecs: Iterable): void; } interface RTCStatsReport extends ReadonlyMap { } interface SVGLengthList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SVGNumberList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SVGPointList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SVGStringList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SVGTransformList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SourceBufferList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SpeechRecognitionResult { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SpeechRecognitionResultList { - [Symbol.iterator](): ArrayIterator; -} - -interface StylePropertyMapReadOnlyIterator extends IteratorObject { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator; + [Symbol.iterator](): IterableIterator; } interface StylePropertyMapReadOnly { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - entries(): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - keys(): StylePropertyMapReadOnlyIterator; - values(): StylePropertyMapReadOnlyIterator>; + [Symbol.iterator](): IterableIterator<[string, Iterable]>; + entries(): IterableIterator<[string, Iterable]>; + keys(): IterableIterator; + values(): IterableIterator>; } interface StyleSheetList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface SubtleCrypto { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; @@ -342,32 +331,25 @@ interface SubtleCrypto { } interface TextTrackCueList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface TextTrackList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface TouchList { - [Symbol.iterator](): ArrayIterator; -} - -interface URLSearchParamsIterator extends IteratorObject { - [Symbol.iterator](): URLSearchParamsIterator; + [Symbol.iterator](): IterableIterator; } interface URLSearchParams { - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; + [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an array of key, value pairs for every entry in the search params. */ - entries(): URLSearchParamsIterator<[string, string]>; + entries(): IterableIterator<[string, string]>; /** Returns a list of keys in the search params. */ - keys(): URLSearchParamsIterator; + keys(): IterableIterator; /** Returns a list of values in the search params. */ - values(): URLSearchParamsIterator; -} - -interface ViewTransitionTypeSet extends Set { + values(): IterableIterator; } interface WEBGL_draw_buffers { @@ -448,7 +430,7 @@ interface WebGL2RenderingContextOverloads { uniform4fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; diff --git a/node_modules/typescript/lib/lib.es2015.core.d.ts b/node_modules/typescript/lib/lib.es2015.core.d.ts index d70f9cdc0..1b22b29b4 100644 --- a/node_modules/typescript/lib/lib.es2015.core.d.ts +++ b/node_modules/typescript/lib/lib.es2015.core.d.ts @@ -560,38 +560,38 @@ interface StringConstructor { raw(template: { raw: readonly string[] | ArrayLike; }, ...substitutions: any[]): string; } -interface Int8Array { +interface Int8Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Uint8Array { +interface Uint8Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Uint8ClampedArray { +interface Uint8ClampedArray { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Int16Array { +interface Int16Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Uint16Array { +interface Uint16Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Int32Array { +interface Int32Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Uint32Array { +interface Uint32Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Float32Array { +interface Float32Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } -interface Float64Array { +interface Float64Array { toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; } diff --git a/node_modules/typescript/lib/lib.es2015.generator.d.ts b/node_modules/typescript/lib/lib.es2015.generator.d.ts index dc7460a0f..716bac29c 100644 --- a/node_modules/typescript/lib/lib.es2015.generator.d.ts +++ b/node_modules/typescript/lib/lib.es2015.generator.d.ts @@ -18,9 +18,9 @@ and limitations under the License. /// -interface Generator extends IteratorObject { +interface Generator extends Iterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...[value]: [] | [TNext]): IteratorResult; + next(...args: [] | [TNext]): IteratorResult; return(value: TReturn): IteratorResult; throw(e: any): IteratorResult; [Symbol.iterator](): Generator; diff --git a/node_modules/typescript/lib/lib.es2015.iterable.d.ts b/node_modules/typescript/lib/lib.es2015.iterable.d.ts index b464e850c..3ad043c67 100644 --- a/node_modules/typescript/lib/lib.es2015.iterable.d.ts +++ b/node_modules/typescript/lib/lib.es2015.iterable.d.ts @@ -38,59 +38,39 @@ interface IteratorReturnResult { type IteratorResult = IteratorYieldResult | IteratorReturnResult; -interface Iterator { +interface Iterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...[value]: [] | [TNext]): IteratorResult; + next(...args: [] | [TNext]): IteratorResult; return?(value?: TReturn): IteratorResult; throw?(e?: any): IteratorResult; } -interface Iterable { - [Symbol.iterator](): Iterator; +interface Iterable { + [Symbol.iterator](): Iterator; } -/** - * Describes a user-defined {@link Iterator} that is also iterable. - */ -interface IterableIterator extends Iterator { - [Symbol.iterator](): IterableIterator; -} - -/** - * Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic `Iterator.prototype`. - */ -interface IteratorObject extends Iterator { - [Symbol.iterator](): IteratorObject; -} - -/** - * Defines the `TReturn` type used for built-in iterators produced by `Array`, `Map`, `Set`, and others. - * This is `undefined` when `strictBuiltInIteratorReturn` is `true`; otherwise, this is `any`. - */ -type BuiltinIteratorReturn = intrinsic; - -interface ArrayIterator extends IteratorObject { - [Symbol.iterator](): ArrayIterator; +interface IterableIterator extends Iterator { + [Symbol.iterator](): IterableIterator; } interface Array { /** Iterator */ - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; /** * Returns an iterable of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, T]>; + entries(): IterableIterator<[number, T]>; /** * Returns an iterable of keys in the array */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface ArrayConstructor { @@ -111,71 +91,67 @@ interface ArrayConstructor { interface ReadonlyArray { /** Iterator of values in the array. */ - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; /** * Returns an iterable of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, T]>; + entries(): IterableIterator<[number, T]>; /** * Returns an iterable of keys in the array */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface IArguments { /** Iterator */ - [Symbol.iterator](): ArrayIterator; -} - -interface MapIterator extends IteratorObject { - [Symbol.iterator](): MapIterator; + [Symbol.iterator](): IterableIterator; } interface Map { /** Returns an iterable of entries in the map. */ - [Symbol.iterator](): MapIterator<[K, V]>; + [Symbol.iterator](): IterableIterator<[K, V]>; /** * Returns an iterable of key, value pairs for every entry in the map. */ - entries(): MapIterator<[K, V]>; + entries(): IterableIterator<[K, V]>; /** * Returns an iterable of keys in the map */ - keys(): MapIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the map */ - values(): MapIterator; + values(): IterableIterator; } interface ReadonlyMap { /** Returns an iterable of entries in the map. */ - [Symbol.iterator](): MapIterator<[K, V]>; + [Symbol.iterator](): IterableIterator<[K, V]>; /** * Returns an iterable of key, value pairs for every entry in the map. */ - entries(): MapIterator<[K, V]>; + entries(): IterableIterator<[K, V]>; /** * Returns an iterable of keys in the map */ - keys(): MapIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the map */ - values(): MapIterator; + values(): IterableIterator; } interface MapConstructor { @@ -189,48 +165,42 @@ interface WeakMapConstructor { new (iterable: Iterable): WeakMap; } -interface SetIterator extends IteratorObject { - [Symbol.iterator](): SetIterator; -} - interface Set { /** Iterates over values in the set. */ - [Symbol.iterator](): SetIterator; - + [Symbol.iterator](): IterableIterator; /** * Returns an iterable of [v,v] pairs for every value `v` in the set. */ - entries(): SetIterator<[T, T]>; - + entries(): IterableIterator<[T, T]>; /** * Despite its name, returns an iterable of the values in the set. */ - keys(): SetIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the set. */ - values(): SetIterator; + values(): IterableIterator; } interface ReadonlySet { /** Iterates over values in the set. */ - [Symbol.iterator](): SetIterator; + [Symbol.iterator](): IterableIterator; /** * Returns an iterable of [v,v] pairs for every value `v` in the set. */ - entries(): SetIterator<[T, T]>; + entries(): IterableIterator<[T, T]>; /** * Despite its name, returns an iterable of the values in the set. */ - keys(): SetIterator; + keys(): IterableIterator; /** * Returns an iterable of values in the set. */ - values(): SetIterator; + values(): IterableIterator; } interface SetConstructor { @@ -263,343 +233,263 @@ interface PromiseConstructor { race(values: Iterable>): Promise>; } -interface StringIterator extends IteratorObject { - [Symbol.iterator](): StringIterator; -} - interface String { /** Iterator */ - [Symbol.iterator](): StringIterator; + [Symbol.iterator](): IterableIterator; } -interface Int8Array { - [Symbol.iterator](): ArrayIterator; - +interface Int8Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Int8ArrayConstructor { - new (elements: Iterable): Int8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Int8Array; + new (elements: Iterable): Int8Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; } -interface Uint8Array { - [Symbol.iterator](): ArrayIterator; - +interface Uint8Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Uint8ArrayConstructor { - new (elements: Iterable): Uint8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Uint8Array; + new (elements: Iterable): Uint8Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; } -interface Uint8ClampedArray { - [Symbol.iterator](): ArrayIterator; - +interface Uint8ClampedArray { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Uint8ClampedArrayConstructor { - new (elements: Iterable): Uint8ClampedArray; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Uint8ClampedArray; + new (elements: Iterable): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; } -interface Int16Array { - [Symbol.iterator](): ArrayIterator; +interface Int16Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Int16ArrayConstructor { - new (elements: Iterable): Int16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Int16Array; + new (elements: Iterable): Int16Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; } -interface Uint16Array { - [Symbol.iterator](): ArrayIterator; - +interface Uint16Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Uint16ArrayConstructor { - new (elements: Iterable): Uint16Array; + new (elements: Iterable): Uint16Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Uint16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; } -interface Int32Array { - [Symbol.iterator](): ArrayIterator; - +interface Int32Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Int32ArrayConstructor { - new (elements: Iterable): Int32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Int32Array; + new (elements: Iterable): Int32Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; } -interface Uint32Array { - [Symbol.iterator](): ArrayIterator; - +interface Uint32Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Uint32ArrayConstructor { - new (elements: Iterable): Uint32Array; + new (elements: Iterable): Uint32Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Uint32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; } -interface Float32Array { - [Symbol.iterator](): ArrayIterator; - +interface Float32Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Float32ArrayConstructor { - new (elements: Iterable): Float32Array; + new (elements: Iterable): Float32Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Float32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; } -interface Float64Array { - [Symbol.iterator](): ArrayIterator; - +interface Float64Array { + [Symbol.iterator](): IterableIterator; /** * Returns an array of key, value pairs for every entry in the array */ - entries(): ArrayIterator<[number, number]>; - + entries(): IterableIterator<[number, number]>; /** * Returns an list of keys in the array */ - keys(): ArrayIterator; - + keys(): IterableIterator; /** * Returns an list of values in the array */ - values(): ArrayIterator; + values(): IterableIterator; } interface Float64ArrayConstructor { - new (elements: Iterable): Float64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Float64Array; + new (elements: Iterable): Float64Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array; + from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; } diff --git a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts index 42678a0e4..06bcc35b3 100644 --- a/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +++ b/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts @@ -272,43 +272,43 @@ interface ArrayBuffer { readonly [Symbol.toStringTag]: string; } -interface DataView { +interface DataView { readonly [Symbol.toStringTag]: string; } -interface Int8Array { +interface Int8Array { readonly [Symbol.toStringTag]: "Int8Array"; } -interface Uint8Array { +interface Uint8Array { readonly [Symbol.toStringTag]: "Uint8Array"; } -interface Uint8ClampedArray { +interface Uint8ClampedArray { readonly [Symbol.toStringTag]: "Uint8ClampedArray"; } -interface Int16Array { +interface Int16Array { readonly [Symbol.toStringTag]: "Int16Array"; } -interface Uint16Array { +interface Uint16Array { readonly [Symbol.toStringTag]: "Uint16Array"; } -interface Int32Array { +interface Int32Array { readonly [Symbol.toStringTag]: "Int32Array"; } -interface Uint32Array { +interface Uint32Array { readonly [Symbol.toStringTag]: "Uint32Array"; } -interface Float32Array { +interface Float32Array { readonly [Symbol.toStringTag]: "Float32Array"; } -interface Float64Array { +interface Float64Array { readonly [Symbol.toStringTag]: "Float64Array"; } diff --git a/node_modules/typescript/lib/lib.es2016.array.include.d.ts b/node_modules/typescript/lib/lib.es2016.array.include.d.ts index 6548c9190..3aa5a044e 100644 --- a/node_modules/typescript/lib/lib.es2016.array.include.d.ts +++ b/node_modules/typescript/lib/lib.es2016.array.include.d.ts @@ -34,7 +34,7 @@ interface ReadonlyArray { includes(searchElement: T, fromIndex?: number): boolean; } -interface Int8Array { +interface Int8Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -43,7 +43,7 @@ interface Int8Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Uint8Array { +interface Uint8Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -52,7 +52,7 @@ interface Uint8Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Uint8ClampedArray { +interface Uint8ClampedArray { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -61,7 +61,7 @@ interface Uint8ClampedArray { includes(searchElement: number, fromIndex?: number): boolean; } -interface Int16Array { +interface Int16Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -70,7 +70,7 @@ interface Int16Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Uint16Array { +interface Uint16Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -79,7 +79,7 @@ interface Uint16Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Int32Array { +interface Int32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -88,7 +88,7 @@ interface Int32Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Uint32Array { +interface Uint32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -97,7 +97,7 @@ interface Uint32Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Float32Array { +interface Float32Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. @@ -106,7 +106,7 @@ interface Float32Array { includes(searchElement: number, fromIndex?: number): boolean; } -interface Float64Array { +interface Float64Array { /** * Determines whether an array includes a certain element, returning true or false as appropriate. * @param searchElement The element to search for. diff --git a/node_modules/typescript/lib/lib.es2016.intl.d.ts b/node_modules/typescript/lib/lib.es2016.intl.d.ts index 83ca380f0..7af6efc2b 100644 --- a/node_modules/typescript/lib/lib.es2016.intl.d.ts +++ b/node_modules/typescript/lib/lib.es2016.intl.d.ts @@ -22,7 +22,7 @@ declare namespace Intl { * the canonical locale names. Duplicates will be omitted and elements * will be validated as structurally valid language tags. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales) * * @param locale A list of String values for which to get the canonical locale names * @returns An array containing the canonical and validated locale names. diff --git a/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts b/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts deleted file mode 100644 index e2f00b834..000000000 --- a/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -interface ArrayBufferConstructor { - new (): ArrayBuffer; -} diff --git a/node_modules/typescript/lib/lib.es2017.d.ts b/node_modules/typescript/lib/lib.es2017.d.ts index 234a01f95..e0bd4eeb7 100644 --- a/node_modules/typescript/lib/lib.es2017.d.ts +++ b/node_modules/typescript/lib/lib.es2017.d.ts @@ -17,10 +17,9 @@ and limitations under the License. /// /// -/// -/// -/// /// /// /// +/// /// +/// diff --git a/node_modules/typescript/lib/lib.es2017.object.d.ts b/node_modules/typescript/lib/lib.es2017.object.d.ts index 523b05dc8..af9ef2f98 100644 --- a/node_modules/typescript/lib/lib.es2017.object.d.ts +++ b/node_modules/typescript/lib/lib.es2017.object.d.ts @@ -18,25 +18,25 @@ and limitations under the License. interface ObjectConstructor { /** - * Returns an array of values of the enumerable own properties of an object + * Returns an array of values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ values(o: { [s: string]: T; } | ArrayLike): T[]; /** - * Returns an array of values of the enumerable own properties of an object + * Returns an array of values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ values(o: {}): any[]; /** - * Returns an array of key/values of the enumerable own properties of an object + * Returns an array of key/values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ entries(o: { [s: string]: T; } | ArrayLike): [string, T][]; /** - * Returns an array of key/values of the enumerable own properties of an object + * Returns an array of key/values of the enumerable properties of an object * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. */ entries(o: {}): [string, any][]; diff --git a/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts b/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts index 89b703982..a46c5ccb1 100644 --- a/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +++ b/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts @@ -28,14 +28,14 @@ interface SharedArrayBuffer { /** * Returns a section of an SharedArrayBuffer. */ - slice(begin?: number, end?: number): SharedArrayBuffer; + slice(begin: number, end?: number): SharedArrayBuffer; readonly [Symbol.species]: SharedArrayBuffer; readonly [Symbol.toStringTag]: "SharedArrayBuffer"; } interface SharedArrayBufferConstructor { readonly prototype: SharedArrayBuffer; - new (byteLength?: number): SharedArrayBuffer; + new (byteLength: number): SharedArrayBuffer; } declare var SharedArrayBuffer: SharedArrayBufferConstructor; @@ -49,28 +49,28 @@ interface Atomics { * Until this atomic operation completes, any other read or write operation against the array * will block. */ - add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Stores the bitwise AND of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or * write operation against the array will block. */ - and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Replaces the value at the given position in the array if the original value equals the given * expected value, returning the original value. Until this atomic operation completes, any * other read or write operation against the array will block. */ - compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number; + compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number; /** * Replaces the value at the given position in the array, returning the original value. Until * this atomic operation completes, any other read or write operation against the array will * block. */ - exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Returns a value indicating whether high-performance algorithms can use atomic operations @@ -83,27 +83,27 @@ interface Atomics { * Returns the value at the given position in the array. Until this atomic operation completes, * any other read or write operation against the array will block. */ - load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number; + load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number; /** * Stores the bitwise OR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ - or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Stores a value at the given position in the array, returning the new value. Until this * atomic operation completes, any other read or write operation against the array will block. */ - store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * Subtracts a value from the value at the given position in the array, returning the original * value. Until this atomic operation completes, any other read or write operation against the * array will block. */ - sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; /** * If the value at the given position in the array is equal to the provided value, the current @@ -111,23 +111,23 @@ interface Atomics { * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns * `"not-equal"`. */ - wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; + wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; /** * Wakes up sleeping agents that are waiting on the given index of the array, returning the * number of agents that were awoken. - * @param typedArray A shared Int32Array. + * @param typedArray A shared Int32Array. * @param index The position in the typedArray to wake up on. * @param count The number of sleeping agents to notify. Defaults to +Infinity. */ - notify(typedArray: Int32Array, index: number, count?: number): number; + notify(typedArray: Int32Array, index: number, count?: number): number; /** * Stores the bitwise XOR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ - xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; + xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number; readonly [Symbol.toStringTag]: "Atomics"; } diff --git a/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts b/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts index aed22e3ee..2182ec12f 100644 --- a/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +++ b/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts @@ -17,37 +17,37 @@ and limitations under the License. /// interface Int8ArrayConstructor { - new (): Int8Array; + new (): Int8Array; } interface Uint8ArrayConstructor { - new (): Uint8Array; + new (): Uint8Array; } interface Uint8ClampedArrayConstructor { - new (): Uint8ClampedArray; + new (): Uint8ClampedArray; } interface Int16ArrayConstructor { - new (): Int16Array; + new (): Int16Array; } interface Uint16ArrayConstructor { - new (): Uint16Array; + new (): Uint16Array; } interface Int32ArrayConstructor { - new (): Int32Array; + new (): Int32Array; } interface Uint32ArrayConstructor { - new (): Uint32Array; + new (): Uint32Array; } interface Float32ArrayConstructor { - new (): Float32Array; + new (): Float32Array; } interface Float64ArrayConstructor { - new (): Float64Array; + new (): Float64Array; } diff --git a/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts b/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts index 429c21820..092a34f01 100644 --- a/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +++ b/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts @@ -18,9 +18,9 @@ and limitations under the License. /// -interface AsyncGenerator extends AsyncIteratorObject { +interface AsyncGenerator extends AsyncIterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...[value]: [] | [TNext]): Promise>; + next(...args: [] | [TNext]): Promise>; return(value: TReturn | PromiseLike): Promise>; throw(e: any): Promise>; [Symbol.asyncIterator](): AsyncGenerator; diff --git a/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts b/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts index a2ddd99be..f3de8021d 100644 --- a/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +++ b/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts @@ -27,27 +27,17 @@ interface SymbolConstructor { readonly asyncIterator: unique symbol; } -interface AsyncIterator { +interface AsyncIterator { // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. - next(...[value]: [] | [TNext]): Promise>; + next(...args: [] | [TNext]): Promise>; return?(value?: TReturn | PromiseLike): Promise>; throw?(e?: any): Promise>; } -interface AsyncIterable { - [Symbol.asyncIterator](): AsyncIterator; +interface AsyncIterable { + [Symbol.asyncIterator](): AsyncIterator; } -/** - * Describes a user-defined {@link AsyncIterator} that is also async iterable. - */ -interface AsyncIterableIterator extends AsyncIterator { - [Symbol.asyncIterator](): AsyncIterableIterator; -} - -/** - * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`. - */ -interface AsyncIteratorObject extends AsyncIterator { - [Symbol.asyncIterator](): AsyncIteratorObject; +interface AsyncIterableIterator extends AsyncIterator { + [Symbol.asyncIterator](): AsyncIterableIterator; } diff --git a/node_modules/typescript/lib/lib.es2020.bigint.d.ts b/node_modules/typescript/lib/lib.es2020.bigint.d.ts index cff11e7c6..4b8939601 100644 --- a/node_modules/typescript/lib/lib.es2020.bigint.d.ts +++ b/node_modules/typescript/lib/lib.es2020.bigint.d.ts @@ -20,7 +20,7 @@ and limitations under the License. interface BigIntToLocaleStringOptions { /** - * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}. + * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}. */ localeMatcher?: string; /** @@ -146,12 +146,12 @@ declare var BigInt: BigIntConstructor; * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated, an exception is raised. */ -interface BigInt64Array { +interface BigInt64Array { /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** The length in bytes of the array. */ readonly byteLength: number; @@ -171,7 +171,7 @@ interface BigInt64Array copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ - entries(): ArrayIterator<[number, bigint]>; + entries(): IterableIterator<[number, bigint]>; /** * Determines whether all the members of an array satisfy the specified test. @@ -181,7 +181,7 @@ interface BigInt64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -200,7 +200,7 @@ interface BigInt64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array; + filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -211,7 +211,7 @@ interface BigInt64Array * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined; + find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -222,7 +222,7 @@ interface BigInt64Array * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number; + findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. @@ -231,7 +231,7 @@ interface BigInt64Array * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void; + forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void; /** * Determines whether an array includes a certain element, returning true or false as appropriate. @@ -256,7 +256,7 @@ interface BigInt64Array join(separator?: string): string; /** Yields each index in the array. */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns the index of the last occurrence of a value in an array. @@ -277,7 +277,7 @@ interface BigInt64Array * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array; + map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -289,7 +289,7 @@ interface BigInt64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -301,7 +301,7 @@ interface BigInt64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -313,7 +313,7 @@ interface BigInt64Array * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -325,7 +325,7 @@ interface BigInt64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U; /** Reverses the elements in the array. */ reverse(): this; @@ -342,7 +342,7 @@ interface BigInt64Array * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ - slice(start?: number, end?: number): BigInt64Array; + slice(start?: number, end?: number): BigInt64Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -352,7 +352,7 @@ interface BigInt64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; + some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean; /** * Sorts the array. @@ -366,7 +366,7 @@ interface BigInt64Array * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): BigInt64Array; + subarray(begin?: number, end?: number): BigInt64Array; /** Converts the array to a string by using the current locale. */ toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; @@ -375,24 +375,23 @@ interface BigInt64Array toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): BigInt64Array; + valueOf(): BigInt64Array; /** Yields each value in the array. */ - values(): ArrayIterator; + values(): IterableIterator; - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; readonly [Symbol.toStringTag]: "BigInt64Array"; [index: number]: bigint; } + interface BigInt64ArrayConstructor { - readonly prototype: BigInt64Array; - new (length?: number): BigInt64Array; - new (array: ArrayLike | Iterable): BigInt64Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array; - new (array: ArrayLike | ArrayBuffer): BigInt64Array; + readonly prototype: BigInt64Array; + new (length?: number): BigInt64Array; + new (array: Iterable): BigInt64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array; /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; @@ -401,48 +400,30 @@ interface BigInt64ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: bigint[]): BigInt64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - */ - from(arrayLike: ArrayLike): BigInt64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): BigInt64Array; + of(...items: bigint[]): BigInt64Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array; + from(arrayLike: ArrayLike): BigInt64Array; + from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array; } + declare var BigInt64Array: BigInt64ArrayConstructor; /** * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated, an exception is raised. */ -interface BigUint64Array { +interface BigUint64Array { /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; /** The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** The length in bytes of the array. */ readonly byteLength: number; @@ -462,7 +443,7 @@ interface BigUint64Array copyWithin(target: number, start: number, end?: number): this; /** Yields index, value pairs for every entry in the array. */ - entries(): ArrayIterator<[number, bigint]>; + entries(): IterableIterator<[number, bigint]>; /** * Determines whether all the members of an array satisfy the specified test. @@ -472,7 +453,7 @@ interface BigUint64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -491,7 +472,7 @@ interface BigUint64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array; + filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -502,7 +483,7 @@ interface BigUint64Array * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined; + find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -513,7 +494,7 @@ interface BigUint64Array * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number; + findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. @@ -522,7 +503,7 @@ interface BigUint64Array * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void; + forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void; /** * Determines whether an array includes a certain element, returning true or false as appropriate. @@ -547,7 +528,7 @@ interface BigUint64Array join(separator?: string): string; /** Yields each index in the array. */ - keys(): ArrayIterator; + keys(): IterableIterator; /** * Returns the index of the last occurrence of a value in an array. @@ -568,7 +549,7 @@ interface BigUint64Array * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array; + map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -580,7 +561,7 @@ interface BigUint64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -592,7 +573,7 @@ interface BigUint64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -604,7 +585,7 @@ interface BigUint64Array * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; + reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -616,7 +597,7 @@ interface BigUint64Array * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U; /** Reverses the elements in the array. */ reverse(): this; @@ -633,7 +614,7 @@ interface BigUint64Array * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. */ - slice(start?: number, end?: number): BigUint64Array; + slice(start?: number, end?: number): BigUint64Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -643,7 +624,7 @@ interface BigUint64Array * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; + some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean; /** * Sorts the array. @@ -657,7 +638,7 @@ interface BigUint64Array * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): BigUint64Array; + subarray(begin?: number, end?: number): BigUint64Array; /** Converts the array to a string by using the current locale. */ toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; @@ -666,24 +647,23 @@ interface BigUint64Array toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): BigUint64Array; + valueOf(): BigUint64Array; /** Yields each value in the array. */ - values(): ArrayIterator; + values(): IterableIterator; - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; readonly [Symbol.toStringTag]: "BigUint64Array"; [index: number]: bigint; } + interface BigUint64ArrayConstructor { - readonly prototype: BigUint64Array; - new (length?: number): BigUint64Array; - new (array: ArrayLike | Iterable): BigUint64Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array; - new (array: ArrayLike | ArrayBuffer): BigUint64Array; + readonly prototype: BigUint64Array; + new (length?: number): BigUint64Array; + new (array: Iterable): BigUint64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array; /** The size in bytes of each element in the array. */ readonly BYTES_PER_ELEMENT: number; @@ -692,39 +672,21 @@ interface BigUint64ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: bigint[]): BigUint64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - */ - from(arrayLike: ArrayLike): BigUint64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): BigUint64Array; + of(...items: bigint[]): BigUint64Array; /** * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(elements: Iterable, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array; + from(arrayLike: ArrayLike): BigUint64Array; + from(arrayLike: ArrayLike, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array; } + declare var BigUint64Array: BigUint64ArrayConstructor; -interface DataView { +interface DataView { /** * Gets the BigInt64 value at the specified byte offset from the start of the view. There is * no alignment constraint; multi-byte values may be fetched from any offset. diff --git a/node_modules/typescript/lib/lib.es2020.intl.d.ts b/node_modules/typescript/lib/lib.es2020.intl.d.ts index d78b64088..53cdacb69 100644 --- a/node_modules/typescript/lib/lib.es2020.intl.d.ts +++ b/node_modules/typescript/lib/lib.es2020.intl.d.ts @@ -23,14 +23,14 @@ declare namespace Intl { * * For example: "fa", "es-MX", "zh-Hant-TW". * - * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type UnicodeBCP47LocaleIdentifier = string; /** * Unit to use in the relative time internationalized message. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters). */ type RelativeTimeFormatUnit = | "year" @@ -57,7 +57,7 @@ declare namespace Intl { * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g. * "days"). * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). */ type RelativeTimeFormatUnitSingular = | "year" @@ -79,21 +79,21 @@ declare namespace Intl { /** * The format of output message. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ type RelativeTimeFormatNumeric = "always" | "auto"; /** * The length of the internationalized message. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ type RelativeTimeFormatStyle = "long" | "short" | "narrow"; /** * The locale or locales to use * - * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). + * See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument). */ type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined; @@ -101,7 +101,7 @@ declare namespace Intl { * An object with some or all of properties of `options` parameter * of `Intl.RelativeTimeFormat` constructor. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters). */ interface RelativeTimeFormatOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ @@ -117,7 +117,7 @@ declare namespace Intl { * and formatting options computed during initialization * of the `Intl.RelativeTimeFormat` object * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description). */ interface ResolvedRelativeTimeFormatOptions { locale: UnicodeBCP47LocaleIdentifier; @@ -130,7 +130,7 @@ declare namespace Intl { * An object representing the relative time format in parts * that can be used for custom locale-aware formatting. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts). */ type RelativeTimeFormatPart = | { @@ -166,7 +166,7 @@ declare namespace Intl { * * @returns {string} Internationalized relative time message as string * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format). */ format(value: number, unit: RelativeTimeFormatUnit): string; @@ -179,14 +179,14 @@ declare namespace Intl { * * @throws `RangeError` if `unit` was given something other than `unit` possible values * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts). */ formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[]; /** * Provides access to the locale and options computed during initialization of this `Intl.RelativeTimeFormat` object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions). */ resolvedOptions(): ResolvedRelativeTimeFormatOptions; } @@ -195,22 +195,22 @@ declare namespace Intl { * The [`Intl.RelativeTimeFormat`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) * object is a constructor for objects that enable language-sensitive relative time formatting. * - * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility). + * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility). */ const RelativeTimeFormat: { /** - * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects + * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the locales argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) * with some or all of options of `RelativeTimeFormatOptions`. * - * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object. + * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat). */ new ( locales?: LocalesArgument, @@ -224,16 +224,16 @@ declare namespace Intl { * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the locales argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters) * with some or all of options of the formatting. * * @returns An array containing those of the provided locales * that are supported in date and time formatting * without having to fall back to the runtime's default locale. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf). */ supportedLocalesOf( locales?: LocalesArgument, @@ -336,18 +336,18 @@ declare namespace Intl { } /** - * Constructor creates [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) + * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) * objects * * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646). * For the general form and interpretation of the locales argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale. + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale. * - * @returns [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object. + * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale). */ const Locale: { new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale; @@ -388,7 +388,7 @@ declare namespace Intl { interface DisplayNames { /** * Receives a code and returns a string based on the locale and options provided when instantiating - * [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) + * [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) * * @param code The `code` to provide depends on the `type` passed to display name during creation: * - If the type is `"region"`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html), @@ -399,35 +399,35 @@ declare namespace Intl { * `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code. * - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html). * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of). */ of(code: string): string | undefined; /** * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current - * [`Intl/DisplayNames`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object. + * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions). */ resolvedOptions(): ResolvedDisplayNamesOptions; } /** - * The [`Intl.DisplayNames()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) + * The [`Intl.DisplayNames()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) * object enables the consistent translation of language, region and script display names. * - * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility). + * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility). */ const DisplayNames: { prototype: DisplayNames; /** * @param locales A string with a BCP 47 language tag, or an array of such strings. - * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) * page. * * @param options An object for setting up a display name. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames). */ new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames; @@ -435,14 +435,14 @@ declare namespace Intl { * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale. * * @param locales A string with a BCP 47 language tag, or an array of such strings. - * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) * page. * * @param options An object with a locale matcher. * * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf). */ supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[]; }; diff --git a/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts b/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts index 35641a642..3c7c14f4b 100644 --- a/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +++ b/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts @@ -16,62 +16,60 @@ and limitations under the License. /// -/// - interface Atomics { /** * Adds a value to the value at the given position in the array, returning the original value. * Until this atomic operation completes, any other read or write operation against the array * will block. */ - add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Stores the bitwise AND of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or * write operation against the array will block. */ - and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Replaces the value at the given position in the array if the original value equals the given * expected value, returning the original value. Until this atomic operation completes, any * other read or write operation against the array will block. */ - compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint; + compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint; /** * Replaces the value at the given position in the array, returning the original value. Until * this atomic operation completes, any other read or write operation against the array will * block. */ - exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Returns the value at the given position in the array. Until this atomic operation completes, * any other read or write operation against the array will block. */ - load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint; + load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint; /** * Stores the bitwise OR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ - or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Stores a value at the given position in the array, returning the new value. Until this * atomic operation completes, any other read or write operation against the array will block. */ - store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * Subtracts a value from the value at the given position in the array, returning the original * value. Until this atomic operation completes, any other read or write operation against the * array will block. */ - sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; /** * If the value at the given position in the array is equal to the provided value, the current @@ -79,7 +77,7 @@ interface Atomics { * `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns * `"not-equal"`. */ - wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; + wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; /** * Wakes up sleeping agents that are waiting on the given index of the array, returning the @@ -88,12 +86,12 @@ interface Atomics { * @param index The position in the typedArray to wake up on. * @param count The number of sleeping agents to notify. Defaults to +Infinity. */ - notify(typedArray: BigInt64Array, index: number, count?: number): number; + notify(typedArray: BigInt64Array, index: number, count?: number): number; /** * Stores the bitwise XOR of a value with the value at the given position in the array, * returning the original value. Until this atomic operation completes, any other read or write * operation against the array will block. */ - xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; + xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; } diff --git a/node_modules/typescript/lib/lib.es2020.string.d.ts b/node_modules/typescript/lib/lib.es2020.string.d.ts index 4c2a4ded0..17c15806e 100644 --- a/node_modules/typescript/lib/lib.es2020.string.d.ts +++ b/node_modules/typescript/lib/lib.es2020.string.d.ts @@ -17,8 +17,6 @@ and limitations under the License. /// /// -/// -/// interface String { /** @@ -26,7 +24,7 @@ interface String { * containing the results of that search. * @param regexp A variable name or string literal containing the regular expression pattern and flags. */ - matchAll(regexp: RegExp): RegExpStringIterator; + matchAll(regexp: RegExp): IterableIterator; /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ toLocaleLowerCase(locales?: Intl.LocalesArgument): string; diff --git a/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts b/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts index a3b45bb8a..89262b74c 100644 --- a/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +++ b/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts @@ -27,15 +27,11 @@ interface SymbolConstructor { readonly matchAll: unique symbol; } -interface RegExpStringIterator extends IteratorObject { - [Symbol.iterator](): RegExpStringIterator; -} - interface RegExp { /** * Matches a string with this regular expression, and returns an iterable of matches * containing the results of that search. * @param string A string to search within. */ - [Symbol.matchAll](str: string): RegExpStringIterator; + [Symbol.matchAll](str: string): IterableIterator; } diff --git a/node_modules/typescript/lib/lib.es2021.intl.d.ts b/node_modules/typescript/lib/lib.es2021.intl.d.ts index a0fe4825e..ec90ad1b2 100644 --- a/node_modules/typescript/lib/lib.es2021.intl.d.ts +++ b/node_modules/typescript/lib/lib.es2021.intl.d.ts @@ -50,28 +50,28 @@ declare namespace Intl { /** * The locale matching algorithm to use. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatLocaleMatcher = "lookup" | "best fit"; /** * The format of output message. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatType = "conjunction" | "disjunction" | "unit"; /** * The length of the formatted message. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ type ListFormatStyle = "long" | "short" | "narrow"; /** * An object with some or all properties of the `Intl.ListFormat` constructor `options` parameter. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters). */ interface ListFormatOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ @@ -92,26 +92,26 @@ declare namespace Intl { /** * Returns a string with a language-specific representation of the list. * - * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array). + * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array). * * @throws `TypeError` if `list` includes something other than the possible values. * * @returns {string} A language-specific formatted string representing the elements of the list. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format). */ format(list: Iterable): string; /** * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion. * - * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale. + * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale. * * @throws `TypeError` if `list` includes something other than the possible values. * * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts). */ formatToParts(list: Iterable): { type: "element" | "literal"; value: string; }[]; @@ -120,7 +120,7 @@ declare namespace Intl { * formatting options computed during the construction of the current * `Intl.ListFormat` object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). */ resolvedOptions(): ResolvedListFormatOptions; } @@ -129,19 +129,19 @@ declare namespace Intl { prototype: ListFormat; /** - * Creates [Intl.ListFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that + * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that * enable language-sensitive list formatting. * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the `locales` argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters) + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters) * with some or all options of `ListFormatOptions`. * - * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object. + * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat). */ new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat; @@ -151,15 +151,15 @@ declare namespace Intl { * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the `locales` argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters). + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters). * with some or all possible options. * * @returns An array of strings representing a subset of the given locale tags that are supported in list * formatting without having to fall back to the runtime's default locale. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf). */ supportedLocalesOf(locales: LocalesArgument, options?: Pick): UnicodeBCP47LocaleIdentifier[]; }; diff --git a/node_modules/typescript/lib/lib.es2021.weakref.d.ts b/node_modules/typescript/lib/lib.es2021.weakref.d.ts index 9e03365a2..48e76265a 100644 --- a/node_modules/typescript/lib/lib.es2021.weakref.d.ts +++ b/node_modules/typescript/lib/lib.es2021.weakref.d.ts @@ -16,8 +16,6 @@ and limitations under the License. /// -/// - interface WeakRef { readonly [Symbol.toStringTag]: "WeakRef"; diff --git a/node_modules/typescript/lib/lib.es2022.array.d.ts b/node_modules/typescript/lib/lib.es2022.array.d.ts index 6f4dc417a..621857ba0 100644 --- a/node_modules/typescript/lib/lib.es2022.array.d.ts +++ b/node_modules/typescript/lib/lib.es2022.array.d.ts @@ -32,7 +32,7 @@ interface ReadonlyArray { at(index: number): T | undefined; } -interface Int8Array { +interface Int8Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -40,7 +40,7 @@ interface Int8Array { at(index: number): number | undefined; } -interface Uint8Array { +interface Uint8Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -48,7 +48,7 @@ interface Uint8Array { at(index: number): number | undefined; } -interface Uint8ClampedArray { +interface Uint8ClampedArray { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -56,7 +56,7 @@ interface Uint8ClampedArray { at(index: number): number | undefined; } -interface Int16Array { +interface Int16Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -64,7 +64,7 @@ interface Int16Array { at(index: number): number | undefined; } -interface Uint16Array { +interface Uint16Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -72,7 +72,7 @@ interface Uint16Array { at(index: number): number | undefined; } -interface Int32Array { +interface Int32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -80,7 +80,7 @@ interface Int32Array { at(index: number): number | undefined; } -interface Uint32Array { +interface Uint32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -88,7 +88,7 @@ interface Uint32Array { at(index: number): number | undefined; } -interface Float32Array { +interface Float32Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -96,7 +96,7 @@ interface Float32Array { at(index: number): number | undefined; } -interface Float64Array { +interface Float64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -104,7 +104,7 @@ interface Float64Array { at(index: number): number | undefined; } -interface BigInt64Array { +interface BigInt64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. @@ -112,7 +112,7 @@ interface BigInt64Array { at(index: number): bigint | undefined; } -interface BigUint64Array { +interface BigUint64Array { /** * Returns the item located at the specified index. * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. diff --git a/node_modules/typescript/lib/lib.es2022.d.ts b/node_modules/typescript/lib/lib.es2022.d.ts index ca7cc91ac..2ae78aba3 100644 --- a/node_modules/typescript/lib/lib.es2022.d.ts +++ b/node_modules/typescript/lib/lib.es2022.d.ts @@ -21,5 +21,6 @@ and limitations under the License. /// /// /// -/// +/// /// +/// diff --git a/node_modules/typescript/lib/lib.es2022.error.d.ts b/node_modules/typescript/lib/lib.es2022.error.d.ts index 5e02521b4..782c485e7 100644 --- a/node_modules/typescript/lib/lib.es2022.error.d.ts +++ b/node_modules/typescript/lib/lib.es2022.error.d.ts @@ -16,8 +16,6 @@ and limitations under the License. /// -/// - interface ErrorOptions { cause?: unknown; } diff --git a/node_modules/typescript/lib/lib.es2022.intl.d.ts b/node_modules/typescript/lib/lib.es2022.intl.d.ts index 3f4a2ca1e..6a2ba0787 100644 --- a/node_modules/typescript/lib/lib.es2022.intl.d.ts +++ b/node_modules/typescript/lib/lib.es2022.intl.d.ts @@ -20,7 +20,7 @@ declare namespace Intl { /** * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) */ interface SegmenterOptions { /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */ @@ -46,10 +46,6 @@ declare namespace Intl { granularity: "grapheme" | "word" | "sentence"; } - interface SegmentIterator extends IteratorObject { - [Symbol.iterator](): SegmentIterator; - } - interface Segments { /** * Returns an object describing the segment in the original string that includes the code unit at a specified index. @@ -59,7 +55,7 @@ declare namespace Intl { containing(codeUnitIndex?: number): SegmentData; /** Returns an iterator to iterate over the segments. */ - [Symbol.iterator](): SegmentIterator; + [Symbol.iterator](): IterableIterator; } interface SegmentData { @@ -84,14 +80,14 @@ declare namespace Intl { * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the `locales` argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) + * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters) * with some or all options of `SegmenterOptions`. * - * @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object. + * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter). + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter). */ new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter; @@ -100,19 +96,19 @@ declare namespace Intl { * * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings. * For the general form and interpretation of the `locales` argument, - * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). + * see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation). * - * @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters). + * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters). * with some or all possible options. * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf) + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf) */ supportedLocalesOf(locales: LocalesArgument, options?: Pick): UnicodeBCP47LocaleIdentifier[]; }; /** * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation. - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf) + * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf) * * @param key A string indicating the category of values to return. * @returns A sorted array of the supported values. diff --git a/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts b/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts similarity index 67% rename from node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts rename to node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts index 2c3cf94ac..ea67b0081 100644 --- a/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +++ b/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts @@ -16,8 +16,6 @@ and limitations under the License. /// -/// - interface Atomics { /** * A non-blocking, asynchronous version of wait which is usable on the main thread. @@ -39,30 +37,3 @@ interface Atomics { */ waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; } - -interface SharedArrayBuffer { - /** - * Returns true if this SharedArrayBuffer can be grown. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable) - */ - get growable(): boolean; - - /** - * If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength) - */ - get maxByteLength(): number; - - /** - * Grows the SharedArrayBuffer to the specified size (in bytes). - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow) - */ - grow(newByteLength?: number): void; -} - -interface SharedArrayBufferConstructor { - new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer; -} diff --git a/node_modules/typescript/lib/lib.es2023.array.d.ts b/node_modules/typescript/lib/lib.es2023.array.d.ts index dd42883a6..57362da53 100644 --- a/node_modules/typescript/lib/lib.es2023.array.d.ts +++ b/node_modules/typescript/lib/lib.es2023.array.d.ts @@ -49,7 +49,7 @@ interface Array { * Returns a copy of an array with its elements sorted. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` @@ -127,7 +127,7 @@ interface ReadonlyArray { * Copies and sorts the array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. * ```ts * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22] * ``` @@ -163,7 +163,7 @@ interface ReadonlyArray { with(index: number, value: T): T[]; } -interface Int8Array { +interface Int8Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -177,12 +177,12 @@ interface Int8Array { predicate: ( value: number, index: number, - array: this, + array: Int8Array, ) => value is S, thisArg?: any, ): S | undefined; findLast( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any, ): number | undefined; @@ -196,14 +196,14 @@ interface Int8Array { * predicate. If it is not provided, undefined is used instead. */ findLastIndex( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Int8Array; + toReversed(): Int8Array; /** * Copies and sorts the array. @@ -215,7 +215,7 @@ interface Int8Array { * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Int8Array; + toSorted(compareFn?: (a: number, b: number) => number): Int8Array; /** * Copies the array and inserts the given number at the provided index. @@ -224,10 +224,10 @@ interface Int8Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Int8Array; + with(index: number, value: number): Int8Array; } -interface Uint8Array { +interface Uint8Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -241,12 +241,12 @@ interface Uint8Array { predicate: ( value: number, index: number, - array: this, + array: Uint8Array, ) => value is S, thisArg?: any, ): S | undefined; findLast( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any, ): number | undefined; @@ -260,14 +260,14 @@ interface Uint8Array { * predicate. If it is not provided, undefined is used instead. */ findLastIndex( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Uint8Array; + toReversed(): Uint8Array; /** * Copies and sorts the array. @@ -279,7 +279,7 @@ interface Uint8Array { * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; + toSorted(compareFn?: (a: number, b: number) => number): Uint8Array; /** * Copies the array and inserts the given number at the provided index. @@ -288,10 +288,10 @@ interface Uint8Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Uint8Array; + with(index: number, value: number): Uint8Array; } -interface Uint8ClampedArray { +interface Uint8ClampedArray { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -305,7 +305,7 @@ interface Uint8ClampedArray { predicate: ( value: number, index: number, - array: this, + array: Uint8ClampedArray, ) => value is S, thisArg?: any, ): S | undefined; @@ -313,7 +313,7 @@ interface Uint8ClampedArray { predicate: ( value: number, index: number, - array: this, + array: Uint8ClampedArray, ) => unknown, thisArg?: any, ): number | undefined; @@ -331,7 +331,7 @@ interface Uint8ClampedArray { predicate: ( value: number, index: number, - array: this, + array: Uint8ClampedArray, ) => unknown, thisArg?: any, ): number; @@ -339,7 +339,7 @@ interface Uint8ClampedArray { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Uint8ClampedArray; + toReversed(): Uint8ClampedArray; /** * Copies and sorts the array. @@ -351,7 +351,7 @@ interface Uint8ClampedArray { * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; + toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; /** * Copies the array and inserts the given number at the provided index. @@ -360,10 +360,10 @@ interface Uint8ClampedArray { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Uint8ClampedArray; + with(index: number, value: number): Uint8ClampedArray; } -interface Int16Array { +interface Int16Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -377,12 +377,12 @@ interface Int16Array { predicate: ( value: number, index: number, - array: this, + array: Int16Array, ) => value is S, thisArg?: any, ): S | undefined; findLast( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any, ): number | undefined; @@ -396,14 +396,14 @@ interface Int16Array { * predicate. If it is not provided, undefined is used instead. */ findLastIndex( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Int16Array; + toReversed(): Int16Array; /** * Copies and sorts the array. @@ -415,7 +415,7 @@ interface Int16Array { * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Int16Array; + toSorted(compareFn?: (a: number, b: number) => number): Int16Array; /** * Copies the array and inserts the given number at the provided index. @@ -424,10 +424,10 @@ interface Int16Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Int16Array; + with(index: number, value: number): Int16Array; } -interface Uint16Array { +interface Uint16Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -441,7 +441,7 @@ interface Uint16Array { predicate: ( value: number, index: number, - array: this, + array: Uint16Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -449,7 +449,7 @@ interface Uint16Array { predicate: ( value: number, index: number, - array: this, + array: Uint16Array, ) => unknown, thisArg?: any, ): number | undefined; @@ -467,7 +467,7 @@ interface Uint16Array { predicate: ( value: number, index: number, - array: this, + array: Uint16Array, ) => unknown, thisArg?: any, ): number; @@ -475,7 +475,7 @@ interface Uint16Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Uint16Array; + toReversed(): Uint16Array; /** * Copies and sorts the array. @@ -487,7 +487,7 @@ interface Uint16Array { * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Uint16Array; + toSorted(compareFn?: (a: number, b: number) => number): Uint16Array; /** * Copies the array and inserts the given number at the provided index. @@ -496,10 +496,10 @@ interface Uint16Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Uint16Array; + with(index: number, value: number): Uint16Array; } -interface Int32Array { +interface Int32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -513,12 +513,12 @@ interface Int32Array { predicate: ( value: number, index: number, - array: this, + array: Int32Array, ) => value is S, thisArg?: any, ): S | undefined; findLast( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any, ): number | undefined; @@ -532,14 +532,14 @@ interface Int32Array { * predicate. If it is not provided, undefined is used instead. */ findLastIndex( - predicate: (value: number, index: number, array: this) => unknown, + predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any, ): number; /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Int32Array; + toReversed(): Int32Array; /** * Copies and sorts the array. @@ -551,7 +551,7 @@ interface Int32Array { * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Int32Array; + toSorted(compareFn?: (a: number, b: number) => number): Int32Array; /** * Copies the array and inserts the given number at the provided index. @@ -560,10 +560,10 @@ interface Int32Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Int32Array; + with(index: number, value: number): Int32Array; } -interface Uint32Array { +interface Uint32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -577,7 +577,7 @@ interface Uint32Array { predicate: ( value: number, index: number, - array: this, + array: Uint32Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -585,7 +585,7 @@ interface Uint32Array { predicate: ( value: number, index: number, - array: this, + array: Uint32Array, ) => unknown, thisArg?: any, ): number | undefined; @@ -603,7 +603,7 @@ interface Uint32Array { predicate: ( value: number, index: number, - array: this, + array: Uint32Array, ) => unknown, thisArg?: any, ): number; @@ -611,7 +611,7 @@ interface Uint32Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Uint32Array; + toReversed(): Uint32Array; /** * Copies and sorts the array. @@ -623,7 +623,7 @@ interface Uint32Array { * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Uint32Array; + toSorted(compareFn?: (a: number, b: number) => number): Uint32Array; /** * Copies the array and inserts the given number at the provided index. @@ -632,10 +632,10 @@ interface Uint32Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Uint32Array; + with(index: number, value: number): Uint32Array; } -interface Float32Array { +interface Float32Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -649,7 +649,7 @@ interface Float32Array { predicate: ( value: number, index: number, - array: this, + array: Float32Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -657,7 +657,7 @@ interface Float32Array { predicate: ( value: number, index: number, - array: this, + array: Float32Array, ) => unknown, thisArg?: any, ): number | undefined; @@ -675,7 +675,7 @@ interface Float32Array { predicate: ( value: number, index: number, - array: this, + array: Float32Array, ) => unknown, thisArg?: any, ): number; @@ -683,7 +683,7 @@ interface Float32Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Float32Array; + toReversed(): Float32Array; /** * Copies and sorts the array. @@ -695,7 +695,7 @@ interface Float32Array { * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Float32Array; + toSorted(compareFn?: (a: number, b: number) => number): Float32Array; /** * Copies the array and inserts the given number at the provided index. @@ -704,10 +704,10 @@ interface Float32Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Float32Array; + with(index: number, value: number): Float32Array; } -interface Float64Array { +interface Float64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -721,7 +721,7 @@ interface Float64Array { predicate: ( value: number, index: number, - array: this, + array: Float64Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -729,7 +729,7 @@ interface Float64Array { predicate: ( value: number, index: number, - array: this, + array: Float64Array, ) => unknown, thisArg?: any, ): number | undefined; @@ -747,7 +747,7 @@ interface Float64Array { predicate: ( value: number, index: number, - array: this, + array: Float64Array, ) => unknown, thisArg?: any, ): number; @@ -755,7 +755,7 @@ interface Float64Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): Float64Array; + toReversed(): Float64Array; /** * Copies and sorts the array. @@ -767,7 +767,7 @@ interface Float64Array { * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5] * ``` */ - toSorted(compareFn?: (a: number, b: number) => number): Float64Array; + toSorted(compareFn?: (a: number, b: number) => number): Float64Array; /** * Copies the array and inserts the given number at the provided index. @@ -776,10 +776,10 @@ interface Float64Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: number): Float64Array; + with(index: number, value: number): Float64Array; } -interface BigInt64Array { +interface BigInt64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -793,7 +793,7 @@ interface BigInt64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigInt64Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -801,7 +801,7 @@ interface BigInt64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigInt64Array, ) => unknown, thisArg?: any, ): bigint | undefined; @@ -819,7 +819,7 @@ interface BigInt64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigInt64Array, ) => unknown, thisArg?: any, ): number; @@ -827,7 +827,7 @@ interface BigInt64Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): BigInt64Array; + toReversed(): BigInt64Array; /** * Copies and sorts the array. @@ -839,7 +839,7 @@ interface BigInt64Array { * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n] * ``` */ - toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array; + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array; /** * Copies the array and inserts the given bigint at the provided index. @@ -848,10 +848,10 @@ interface BigInt64Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: bigint): BigInt64Array; + with(index: number, value: bigint): BigInt64Array; } -interface BigUint64Array { +interface BigUint64Array { /** * Returns the value of the last element in the array where predicate is true, and undefined * otherwise. @@ -865,7 +865,7 @@ interface BigUint64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigUint64Array, ) => value is S, thisArg?: any, ): S | undefined; @@ -873,7 +873,7 @@ interface BigUint64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigUint64Array, ) => unknown, thisArg?: any, ): bigint | undefined; @@ -891,7 +891,7 @@ interface BigUint64Array { predicate: ( value: bigint, index: number, - array: this, + array: BigUint64Array, ) => unknown, thisArg?: any, ): number; @@ -899,7 +899,7 @@ interface BigUint64Array { /** * Copies the array and returns the copy with the elements in reverse order. */ - toReversed(): BigUint64Array; + toReversed(): BigUint64Array; /** * Copies and sorts the array. @@ -911,7 +911,7 @@ interface BigUint64Array { * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n] * ``` */ - toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array; + toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array; /** * Copies the array and inserts the given bigint at the provided index. @@ -920,5 +920,5 @@ interface BigUint64Array { * @param value The value to insert into the copied array. * @returns A copy of the original array with the inserted value. */ - with(index: number, value: bigint): BigUint64Array; + with(index: number, value: bigint): BigUint64Array; } diff --git a/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts b/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts deleted file mode 100644 index 2a5623d90..000000000 --- a/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -interface ArrayBuffer { - /** - * If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength) - */ - get maxByteLength(): number; - - /** - * Returns true if this ArrayBuffer can be resized. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable) - */ - get resizable(): boolean; - - /** - * Resizes the ArrayBuffer to the specified size (in bytes). - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize) - */ - resize(newByteLength?: number): void; - - /** - * Returns a boolean indicating whether or not this buffer has been detached (transferred). - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached) - */ - get detached(): boolean; - - /** - * Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer) - */ - transfer(newByteLength?: number): ArrayBuffer; - - /** - * Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer. - * - * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength) - */ - transferToFixedLength(newByteLength?: number): ArrayBuffer; -} - -interface ArrayBufferConstructor { - new (byteLength: number, options?: { maxByteLength?: number; }): ArrayBuffer; -} diff --git a/node_modules/typescript/lib/lib.es2024.collection.d.ts b/node_modules/typescript/lib/lib.es2024.collection.d.ts deleted file mode 100644 index a48fd93d5..000000000 --- a/node_modules/typescript/lib/lib.es2024.collection.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -interface MapConstructor { - /** - * Groups members of an iterable according to the return value of the passed callback. - * @param items An iterable. - * @param keySelector A callback which will be invoked for each item in items. - */ - groupBy( - items: Iterable, - keySelector: (item: T, index: number) => K, - ): Map; -} diff --git a/node_modules/typescript/lib/lib.es2024.d.ts b/node_modules/typescript/lib/lib.es2024.d.ts deleted file mode 100644 index 44311afb0..000000000 --- a/node_modules/typescript/lib/lib.es2024.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/node_modules/typescript/lib/lib.es2024.full.d.ts b/node_modules/typescript/lib/lib.es2024.full.d.ts deleted file mode 100644 index b8c6e7486..000000000 --- a/node_modules/typescript/lib/lib.es2024.full.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/// -/// -/// -/// -/// -/// diff --git a/node_modules/typescript/lib/lib.es2024.promise.d.ts b/node_modules/typescript/lib/lib.es2024.promise.d.ts deleted file mode 100644 index b890983b3..000000000 --- a/node_modules/typescript/lib/lib.es2024.promise.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -interface PromiseWithResolvers { - promise: Promise; - resolve: (value: T | PromiseLike) => void; - reject: (reason?: any) => void; -} - -interface PromiseConstructor { - /** - * Creates a new Promise and returns it in an object, along with its resolve and reject functions. - * @returns An object with the properties `promise`, `resolve`, and `reject`. - * - * ```ts - * const { promise, resolve, reject } = Promise.withResolvers(); - * ``` - */ - withResolvers(): PromiseWithResolvers; -} diff --git a/node_modules/typescript/lib/lib.es5.d.ts b/node_modules/typescript/lib/lib.es5.d.ts index b85751279..eab21a79f 100644 --- a/node_modules/typescript/lib/lib.es5.d.ts +++ b/node_modules/typescript/lib/lib.es5.d.ts @@ -696,7 +696,7 @@ interface Math { */ atan(x: number): number; /** - * Returns the angle (in radians) between the X axis and the line going through both the origin and the given point. + * Returns the angle (in radians) from the X axis to a point. * @param y A numeric expression representing the cartesian y-coordinate. * @param x A numeric expression representing the cartesian x-coordinate. */ @@ -1260,8 +1260,8 @@ interface ReadonlyArray { some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void; /** @@ -1384,7 +1384,7 @@ interface Array { * This method mutates the array and returns a reference to the same array. * @param compareFn Function used to determine the order of the elements. It is expected to return * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order. + * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order. * ```ts * [11,2,22,1].sort((a, b) => a - b) * ``` @@ -1451,8 +1451,8 @@ interface Array { some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. + * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. */ forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; /** @@ -1701,7 +1701,7 @@ interface ArrayBuffer { /** * Returns a section of an ArrayBuffer. */ - slice(begin?: number, end?: number): ArrayBuffer; + slice(begin: number, end?: number): ArrayBuffer; } /** @@ -1719,25 +1719,25 @@ interface ArrayBufferConstructor { } declare var ArrayBuffer: ArrayBufferConstructor; -interface ArrayBufferView { +interface ArrayBufferView { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + buffer: ArrayBufferLike; /** * The length in bytes of the array. */ - readonly byteLength: number; + byteLength: number; /** * The offset in bytes of the array. */ - readonly byteOffset: number; + byteOffset: number; } -interface DataView { - readonly buffer: TArrayBuffer; +interface DataView { + readonly buffer: ArrayBuffer; readonly byteLength: number; readonly byteOffset: number; /** @@ -1863,9 +1863,10 @@ interface DataView { */ setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; } + interface DataViewConstructor { - readonly prototype: DataView; - new (buffer: TArrayBuffer, byteOffset?: number, byteLength?: number): DataView; + readonly prototype: DataView; + new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView; } declare var DataView: DataViewConstructor; @@ -1873,7 +1874,7 @@ declare var DataView: DataViewConstructor; * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ -interface Int8Array { +interface Int8Array { /** * The size in bytes of each element in the array. */ @@ -1882,7 +1883,7 @@ interface Int8Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -1913,7 +1914,7 @@ interface Int8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -1932,7 +1933,7 @@ interface Int8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int8Array; + filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -1943,7 +1944,7 @@ interface Int8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -1954,22 +1955,22 @@ interface Int8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -2001,7 +2002,7 @@ interface Int8Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int8Array; + map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2013,8 +2014,8 @@ interface Int8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2026,7 +2027,7 @@ interface Int8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2038,8 +2039,8 @@ interface Int8Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2051,12 +2052,12 @@ interface Int8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Int8Array; /** * Sets a value or an array of values. @@ -2070,7 +2071,7 @@ interface Int8Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Int8Array; + slice(start?: number, end?: number): Int8Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -2080,7 +2081,7 @@ interface Int8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -2099,7 +2100,7 @@ interface Int8Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Int8Array; + subarray(begin?: number, end?: number): Int8Array; /** * Converts a number to a string by using the current locale. @@ -2112,17 +2113,15 @@ interface Int8Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Int8Array; [index: number]: number; } interface Int8ArrayConstructor { - readonly prototype: Int8Array; - new (length: number): Int8Array; - new (array: ArrayLike): Int8Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Int8Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array; - new (array: ArrayLike | ArrayBuffer): Int8Array; + readonly prototype: Int8Array; + new (length: number): Int8Array; + new (array: ArrayLike | ArrayBufferLike): Int8Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array; /** * The size in bytes of each element in the array. @@ -2133,21 +2132,21 @@ interface Int8ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Int8Array; + of(...items: number[]): Int8Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Int8Array; + from(arrayLike: ArrayLike): Int8Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array; } declare var Int8Array: Int8ArrayConstructor; @@ -2155,7 +2154,7 @@ declare var Int8Array: Int8ArrayConstructor; * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ -interface Uint8Array { +interface Uint8Array { /** * The size in bytes of each element in the array. */ @@ -2164,7 +2163,7 @@ interface Uint8Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -2195,7 +2194,7 @@ interface Uint8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -2214,7 +2213,7 @@ interface Uint8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8Array; + filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -2225,7 +2224,7 @@ interface Uint8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -2236,22 +2235,22 @@ interface Uint8Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -2283,7 +2282,7 @@ interface Uint8Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint8Array; + map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2295,8 +2294,8 @@ interface Uint8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2308,7 +2307,7 @@ interface Uint8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2320,8 +2319,8 @@ interface Uint8Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2333,12 +2332,12 @@ interface Uint8Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Uint8Array; /** * Sets a value or an array of values. @@ -2352,7 +2351,7 @@ interface Uint8Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Uint8Array; + slice(start?: number, end?: number): Uint8Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -2362,7 +2361,7 @@ interface Uint8Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -2381,7 +2380,7 @@ interface Uint8Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Uint8Array; + subarray(begin?: number, end?: number): Uint8Array; /** * Converts a number to a string by using the current locale. @@ -2394,17 +2393,16 @@ interface Uint8Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Uint8Array; [index: number]: number; } + interface Uint8ArrayConstructor { - readonly prototype: Uint8Array; - new (length: number): Uint8Array; - new (array: ArrayLike): Uint8Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array; - new (array: ArrayLike | ArrayBuffer): Uint8Array; + readonly prototype: Uint8Array; + new (length: number): Uint8Array; + new (array: ArrayLike | ArrayBufferLike): Uint8Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array; /** * The size in bytes of each element in the array. @@ -2415,21 +2413,21 @@ interface Uint8ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Uint8Array; + of(...items: number[]): Uint8Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Uint8Array; + from(arrayLike: ArrayLike): Uint8Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array; } declare var Uint8Array: Uint8ArrayConstructor; @@ -2437,7 +2435,7 @@ declare var Uint8Array: Uint8ArrayConstructor; * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. * If the requested number of bytes could not be allocated an exception is raised. */ -interface Uint8ClampedArray { +interface Uint8ClampedArray { /** * The size in bytes of each element in the array. */ @@ -2446,7 +2444,7 @@ interface Uint8ClampedArray unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -2496,7 +2494,7 @@ interface Uint8ClampedArray any, thisArg?: any): Uint8ClampedArray; + filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -2507,7 +2505,7 @@ interface Uint8ClampedArray boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -2518,22 +2516,22 @@ interface Uint8ClampedArray boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -2565,7 +2563,7 @@ interface Uint8ClampedArray number, thisArg?: any): Uint8ClampedArray; + map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2577,8 +2575,8 @@ interface Uint8ClampedArray number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2590,7 +2588,7 @@ interface Uint8ClampedArray(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2602,8 +2600,8 @@ interface Uint8ClampedArray number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2615,12 +2613,12 @@ interface Uint8ClampedArray(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Uint8ClampedArray; /** * Sets a value or an array of values. @@ -2634,7 +2632,7 @@ interface Uint8ClampedArray; + slice(start?: number, end?: number): Uint8ClampedArray; /** * Determines whether the specified callback function returns true for any element of an array. @@ -2644,7 +2642,7 @@ interface Uint8ClampedArray unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -2663,7 +2661,7 @@ interface Uint8ClampedArray; + subarray(begin?: number, end?: number): Uint8ClampedArray; /** * Converts a number to a string by using the current locale. @@ -2676,17 +2674,16 @@ interface Uint8ClampedArray; - new (length: number): Uint8ClampedArray; - new (array: ArrayLike): Uint8ClampedArray; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray; - new (array: ArrayLike | ArrayBuffer): Uint8ClampedArray; + readonly prototype: Uint8ClampedArray; + new (length: number): Uint8ClampedArray; + new (array: ArrayLike | ArrayBufferLike): Uint8ClampedArray; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray; /** * The size in bytes of each element in the array. @@ -2697,21 +2694,21 @@ interface Uint8ClampedArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Uint8ClampedArray; + of(...items: number[]): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Uint8ClampedArray; + from(arrayLike: ArrayLike): Uint8ClampedArray; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray; } declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; @@ -2719,7 +2716,7 @@ declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ -interface Int16Array { +interface Int16Array { /** * The size in bytes of each element in the array. */ @@ -2728,7 +2725,7 @@ interface Int16Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -2759,7 +2756,7 @@ interface Int16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -2778,7 +2775,7 @@ interface Int16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int16Array; + filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -2789,7 +2786,7 @@ interface Int16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -2800,21 +2797,21 @@ interface Int16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -2846,7 +2843,7 @@ interface Int16Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int16Array; + map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2858,8 +2855,8 @@ interface Int16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -2871,7 +2868,7 @@ interface Int16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2883,8 +2880,8 @@ interface Int16Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -2896,12 +2893,12 @@ interface Int16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Int16Array; /** * Sets a value or an array of values. @@ -2915,7 +2912,7 @@ interface Int16Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Int16Array; + slice(start?: number, end?: number): Int16Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -2925,7 +2922,7 @@ interface Int16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -2944,7 +2941,7 @@ interface Int16Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Int16Array; + subarray(begin?: number, end?: number): Int16Array; /** * Converts a number to a string by using the current locale. @@ -2957,17 +2954,16 @@ interface Int16Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Int16Array; [index: number]: number; } + interface Int16ArrayConstructor { - readonly prototype: Int16Array; - new (length: number): Int16Array; - new (array: ArrayLike): Int16Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Int16Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array; - new (array: ArrayLike | ArrayBuffer): Int16Array; + readonly prototype: Int16Array; + new (length: number): Int16Array; + new (array: ArrayLike | ArrayBufferLike): Int16Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array; /** * The size in bytes of each element in the array. @@ -2978,21 +2974,21 @@ interface Int16ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Int16Array; + of(...items: number[]): Int16Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Int16Array; + from(arrayLike: ArrayLike): Int16Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array; } declare var Int16Array: Int16ArrayConstructor; @@ -3000,7 +2996,7 @@ declare var Int16Array: Int16ArrayConstructor; * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ -interface Uint16Array { +interface Uint16Array { /** * The size in bytes of each element in the array. */ @@ -3009,7 +3005,7 @@ interface Uint16Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -3040,7 +3036,7 @@ interface Uint16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -3059,7 +3055,7 @@ interface Uint16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint16Array; + filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -3070,7 +3066,7 @@ interface Uint16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -3081,22 +3077,22 @@ interface Uint16Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3128,7 +3124,7 @@ interface Uint16Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint16Array; + map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3140,8 +3136,8 @@ interface Uint16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3153,7 +3149,7 @@ interface Uint16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3165,8 +3161,8 @@ interface Uint16Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3178,12 +3174,12 @@ interface Uint16Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Uint16Array; /** * Sets a value or an array of values. @@ -3197,7 +3193,7 @@ interface Uint16Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Uint16Array; + slice(start?: number, end?: number): Uint16Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -3207,7 +3203,7 @@ interface Uint16Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -3226,7 +3222,7 @@ interface Uint16Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Uint16Array; + subarray(begin?: number, end?: number): Uint16Array; /** * Converts a number to a string by using the current locale. @@ -3239,17 +3235,16 @@ interface Uint16Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Uint16Array; [index: number]: number; } + interface Uint16ArrayConstructor { - readonly prototype: Uint16Array; - new (length: number): Uint16Array; - new (array: ArrayLike): Uint16Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint16Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array; - new (array: ArrayLike | ArrayBuffer): Uint16Array; + readonly prototype: Uint16Array; + new (length: number): Uint16Array; + new (array: ArrayLike | ArrayBufferLike): Uint16Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array; /** * The size in bytes of each element in the array. @@ -3260,28 +3255,28 @@ interface Uint16ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Uint16Array; + of(...items: number[]): Uint16Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Uint16Array; + from(arrayLike: ArrayLike): Uint16Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array; } declare var Uint16Array: Uint16ArrayConstructor; /** * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ -interface Int32Array { +interface Int32Array { /** * The size in bytes of each element in the array. */ @@ -3290,7 +3285,7 @@ interface Int32Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -3321,7 +3316,7 @@ interface Int32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -3340,7 +3335,7 @@ interface Int32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int32Array; + filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -3351,7 +3346,7 @@ interface Int32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -3362,22 +3357,22 @@ interface Int32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3409,7 +3404,7 @@ interface Int32Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int32Array; + map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3421,8 +3416,8 @@ interface Int32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3434,7 +3429,7 @@ interface Int32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3446,8 +3441,8 @@ interface Int32Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3459,12 +3454,12 @@ interface Int32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Int32Array; /** * Sets a value or an array of values. @@ -3478,7 +3473,7 @@ interface Int32Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Int32Array; + slice(start?: number, end?: number): Int32Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -3488,7 +3483,7 @@ interface Int32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -3507,7 +3502,7 @@ interface Int32Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Int32Array; + subarray(begin?: number, end?: number): Int32Array; /** * Converts a number to a string by using the current locale. @@ -3520,17 +3515,16 @@ interface Int32Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Int32Array; [index: number]: number; } + interface Int32ArrayConstructor { - readonly prototype: Int32Array; - new (length: number): Int32Array; - new (array: ArrayLike): Int32Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Int32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array; - new (array: ArrayLike | ArrayBuffer): Int32Array; + readonly prototype: Int32Array; + new (length: number): Int32Array; + new (array: ArrayLike | ArrayBufferLike): Int32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array; /** * The size in bytes of each element in the array. @@ -3541,21 +3535,21 @@ interface Int32ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Int32Array; + of(...items: number[]): Int32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Int32Array; + from(arrayLike: ArrayLike): Int32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array; } declare var Int32Array: Int32ArrayConstructor; @@ -3563,7 +3557,7 @@ declare var Int32Array: Int32ArrayConstructor; * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the * requested number of bytes could not be allocated an exception is raised. */ -interface Uint32Array { +interface Uint32Array { /** * The size in bytes of each element in the array. */ @@ -3572,7 +3566,7 @@ interface Uint32Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -3603,7 +3597,7 @@ interface Uint32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -3622,7 +3616,7 @@ interface Uint32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint32Array; + filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -3633,7 +3627,7 @@ interface Uint32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -3644,21 +3638,21 @@ interface Uint32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3690,7 +3684,7 @@ interface Uint32Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint32Array; + map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3702,8 +3696,8 @@ interface Uint32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3715,7 +3709,7 @@ interface Uint32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3727,8 +3721,8 @@ interface Uint32Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -3740,12 +3734,12 @@ interface Uint32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Uint32Array; /** * Sets a value or an array of values. @@ -3759,7 +3753,7 @@ interface Uint32Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Uint32Array; + slice(start?: number, end?: number): Uint32Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -3769,7 +3763,7 @@ interface Uint32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -3788,7 +3782,7 @@ interface Uint32Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Uint32Array; + subarray(begin?: number, end?: number): Uint32Array; /** * Converts a number to a string by using the current locale. @@ -3801,17 +3795,16 @@ interface Uint32Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Uint32Array; [index: number]: number; } + interface Uint32ArrayConstructor { - readonly prototype: Uint32Array; - new (length: number): Uint32Array; - new (array: ArrayLike): Uint32Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array; - new (array: ArrayLike | ArrayBuffer): Uint32Array; + readonly prototype: Uint32Array; + new (length: number): Uint32Array; + new (array: ArrayLike | ArrayBufferLike): Uint32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array; /** * The size in bytes of each element in the array. @@ -3822,21 +3815,21 @@ interface Uint32ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Uint32Array; + of(...items: number[]): Uint32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Uint32Array; + from(arrayLike: ArrayLike): Uint32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array; } declare var Uint32Array: Uint32ArrayConstructor; @@ -3844,7 +3837,7 @@ declare var Uint32Array: Uint32ArrayConstructor; * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number * of bytes could not be allocated an exception is raised. */ -interface Float32Array { +interface Float32Array { /** * The size in bytes of each element in the array. */ @@ -3853,7 +3846,7 @@ interface Float32Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -3884,7 +3877,7 @@ interface Float32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -3903,7 +3896,7 @@ interface Float32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float32Array; + filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -3914,7 +3907,7 @@ interface Float32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -3925,22 +3918,22 @@ interface Float32Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -3972,7 +3965,7 @@ interface Float32Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float32Array; + map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3984,8 +3977,8 @@ interface Float32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -3997,7 +3990,7 @@ interface Float32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -4009,8 +4002,8 @@ interface Float32Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -4022,12 +4015,12 @@ interface Float32Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Float32Array; /** * Sets a value or an array of values. @@ -4041,7 +4034,7 @@ interface Float32Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Float32Array; + slice(start?: number, end?: number): Float32Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -4051,7 +4044,7 @@ interface Float32Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -4070,7 +4063,7 @@ interface Float32Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Float32Array; + subarray(begin?: number, end?: number): Float32Array; /** * Converts a number to a string by using the current locale. @@ -4083,17 +4076,16 @@ interface Float32Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Float32Array; [index: number]: number; } + interface Float32ArrayConstructor { - readonly prototype: Float32Array; - new (length: number): Float32Array; - new (array: ArrayLike): Float32Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Float32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array; - new (array: ArrayLike | ArrayBuffer): Float32Array; + readonly prototype: Float32Array; + new (length: number): Float32Array; + new (array: ArrayLike | ArrayBufferLike): Float32Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array; /** * The size in bytes of each element in the array. @@ -4104,21 +4096,21 @@ interface Float32ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Float32Array; + of(...items: number[]): Float32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Float32Array; + from(arrayLike: ArrayLike): Float32Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array; } declare var Float32Array: Float32ArrayConstructor; @@ -4126,7 +4118,7 @@ declare var Float32Array: Float32ArrayConstructor; * A typed array of 64-bit float values. The contents are initialized to 0. If the requested * number of bytes could not be allocated an exception is raised. */ -interface Float64Array { +interface Float64Array { /** * The size in bytes of each element in the array. */ @@ -4135,7 +4127,7 @@ interface Float64Array { /** * The ArrayBuffer instance referenced by the array. */ - readonly buffer: TArrayBuffer; + readonly buffer: ArrayBufferLike; /** * The length in bytes of the array. @@ -4166,7 +4158,7 @@ interface Float64Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; /** * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array @@ -4185,7 +4177,7 @@ interface Float64Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float64Array; + filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array; /** * Returns the value of the first element in the array where predicate is true, and undefined @@ -4196,7 +4188,7 @@ interface Float64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; + find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined; /** * Returns the index of the first element in the array where predicate is true, and -1 @@ -4207,22 +4199,22 @@ interface Float64Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; + findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number; /** * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the + * @param callbackfn A function that accepts up to three arguments. forEach calls the * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. + * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; + forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; /** * Returns the index of the first occurrence of a value in an array. * @param searchElement The value to locate in the array. * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. + * search starts at index 0. */ indexOf(searchElement: number, fromIndex?: number): number; @@ -4254,7 +4246,7 @@ interface Float64Array { * @param thisArg An object to which the this keyword can refer in the callbackfn function. * If thisArg is omitted, undefined is used as the this value. */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float64Array; + map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -4266,8 +4258,8 @@ interface Float64Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array. The return value of @@ -4279,7 +4271,7 @@ interface Float64Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -4291,8 +4283,8 @@ interface Float64Array { * the accumulation. The first call to the callbackfn function provides this value as an * argument instead of an array value. */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number; + reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number; /** * Calls the specified callback function for all the elements in an array, in descending order. @@ -4304,12 +4296,12 @@ interface Float64Array { * the accumulation. The first call to the callbackfn function provides this value as an argument * instead of an array value. */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; + reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; /** * Reverses the elements in an Array. */ - reverse(): this; + reverse(): Float64Array; /** * Sets a value or an array of values. @@ -4323,7 +4315,7 @@ interface Float64Array { * @param start The beginning of the specified portion of the array. * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. */ - slice(start?: number, end?: number): Float64Array; + slice(start?: number, end?: number): Float64Array; /** * Determines whether the specified callback function returns true for any element of an array. @@ -4333,7 +4325,7 @@ interface Float64Array { * @param thisArg An object to which the this keyword can refer in the predicate function. * If thisArg is omitted, undefined is used as the this value. */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; + some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean; /** * Sorts an array. @@ -4352,7 +4344,7 @@ interface Float64Array { * @param begin The index of the beginning of the array. * @param end The index of the end of the array. */ - subarray(begin?: number, end?: number): Float64Array; + subarray(begin?: number, end?: number): Float64Array; /** * Converts a number to a string by using the current locale. @@ -4365,17 +4357,16 @@ interface Float64Array { toString(): string; /** Returns the primitive value of the specified object. */ - valueOf(): this; + valueOf(): Float64Array; [index: number]: number; } + interface Float64ArrayConstructor { - readonly prototype: Float64Array; - new (length: number): Float64Array; - new (array: ArrayLike): Float64Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Float64Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array; - new (array: ArrayLike | ArrayBuffer): Float64Array; + readonly prototype: Float64Array; + new (length: number): Float64Array; + new (array: ArrayLike | ArrayBufferLike): Float64Array; + new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array; /** * The size in bytes of each element in the array. @@ -4386,21 +4377,21 @@ interface Float64ArrayConstructor { * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: number[]): Float64Array; + of(...items: number[]): Float64Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. */ - from(arrayLike: ArrayLike): Float64Array; + from(arrayLike: ArrayLike): Float64Array; /** * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. + * @param arrayLike An array-like or iterable object to convert to an array. * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array; } declare var Float64Array: Float64ArrayConstructor; diff --git a/node_modules/typescript/lib/lib.esnext.array.d.ts b/node_modules/typescript/lib/lib.esnext.array.d.ts index 44df22953..39efbba0d 100644 --- a/node_modules/typescript/lib/lib.esnext.array.d.ts +++ b/node_modules/typescript/lib/lib.esnext.array.d.ts @@ -31,5 +31,5 @@ interface ArrayConstructor { * Each return value is awaited before being added to result array. * @param thisArg Value of 'this' used when executing mapfn. */ - fromAsync(iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, mapFn: (value: Awaited, index: number) => U, thisArg?: any): Promise[]>; + fromAsync(iterableOrArrayLike: AsyncIterable | Iterable | ArrayLike, mapFn: (value: Awaited) => U, thisArg?: any): Promise[]>; } diff --git a/node_modules/typescript/lib/lib.esnext.collection.d.ts b/node_modules/typescript/lib/lib.esnext.collection.d.ts index 46b0b0895..1278a38f6 100644 --- a/node_modules/typescript/lib/lib.esnext.collection.d.ts +++ b/node_modules/typescript/lib/lib.esnext.collection.d.ts @@ -16,7 +16,17 @@ and limitations under the License. /// -/// +interface MapConstructor { + /** + * Groups members of an iterable according to the return value of the passed callback. + * @param items An iterable. + * @param keySelector A callback which will be invoked for each item in items. + */ + groupBy( + items: Iterable, + keySelector: (item: T, index: number) => K, + ): Map; +} interface ReadonlySetLike { /** diff --git a/node_modules/typescript/lib/lib.esnext.d.ts b/node_modules/typescript/lib/lib.esnext.d.ts index c3da2fa6e..a2912fe3d 100644 --- a/node_modules/typescript/lib/lib.esnext.d.ts +++ b/node_modules/typescript/lib/lib.esnext.d.ts @@ -16,12 +16,13 @@ and limitations under the License. /// -/// +/// /// /// /// +/// +/// /// /// -/// -/// -/// +/// +/// diff --git a/node_modules/typescript/lib/lib.esnext.disposable.d.ts b/node_modules/typescript/lib/lib.esnext.disposable.d.ts index b169d962e..0fea9442a 100644 --- a/node_modules/typescript/lib/lib.esnext.disposable.d.ts +++ b/node_modules/typescript/lib/lib.esnext.disposable.d.ts @@ -17,8 +17,6 @@ and limitations under the License. /// /// -/// -/// interface SymbolConstructor { /** @@ -185,9 +183,3 @@ interface AsyncDisposableStackConstructor { readonly prototype: AsyncDisposableStack; } declare var AsyncDisposableStack: AsyncDisposableStackConstructor; - -interface IteratorObject extends Disposable { -} - -interface AsyncIteratorObject extends AsyncDisposable { -} diff --git a/node_modules/typescript/lib/lib.esnext.float16.d.ts b/node_modules/typescript/lib/lib.esnext.float16.d.ts deleted file mode 100644 index 7062792dc..000000000 --- a/node_modules/typescript/lib/lib.esnext.float16.d.ts +++ /dev/null @@ -1,443 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/// -/// - -/** - * A typed array of 16-bit float values. The contents are initialized to 0. If the requested number - * of bytes could not be allocated an exception is raised. - */ -interface Float16Array { - /** - * The size in bytes of each element in the array. - */ - readonly BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - readonly buffer: TArrayBuffer; - - /** - * The length in bytes of the array. - */ - readonly byteLength: number; - - /** - * The offset in bytes of the array. - */ - readonly byteOffset: number; - - /** - * Returns the item located at the specified index. - * @param index The zero-based index of the desired code unit. A negative index will count back from the last item. - */ - at(index: number): number | undefined; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): this; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param predicate A function that accepts up to three arguments. The every method calls - * the predicate function for each element in the array until the predicate returns a value - * which is coercible to the Boolean value false, or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the predicate function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; - - /** - * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): this; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param predicate A function that accepts up to three arguments. The filter method calls - * the predicate function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the predicate function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; - - /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, - * findIndex immediately returns that element index. Otherwise, findIndex returns -1. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; - - /** - * Returns the value of the last element in the array where predicate is true, and undefined - * otherwise. - * @param predicate findLast calls predicate once for each element of the array, in descending - * order, until it finds one where predicate returns true. If such an element is found, findLast - * immediately returns that element value. Otherwise, findLast returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findLast( - predicate: ( - value: number, - index: number, - array: this, - ) => value is S, - thisArg?: any, - ): S | undefined; - findLast( - predicate: ( - value: number, - index: number, - array: this, - ) => unknown, - thisArg?: any, - ): number | undefined; - - /** - * Returns the index of the last element in the array where predicate is true, and -1 - * otherwise. - * @param predicate findLastIndex calls predicate once for each element of the array, in descending - * order, until it finds one where predicate returns true. If such an element is found, - * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findLastIndex( - predicate: ( - value: number, - index: number, - array: this, - ) => unknown, - thisArg?: any, - ): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; - - /** - * Determines whether an array includes a certain element, returning true or false as appropriate. - * @param searchElement The element to search for. - * @param fromIndex The position in this array at which to begin searching for searchElement. - */ - includes(searchElement: number, fromIndex?: number): boolean; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - readonly length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float16Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number; - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): this; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'. - */ - slice(start?: number, end?: number): Float16Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param predicate A function that accepts up to three arguments. The some method calls - * the predicate function for each element in the array until the predicate returns a value - * which is coercible to the Boolean value true, or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the predicate function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn Function used to determine the order of the elements. It is expected to return - * a negative value if first argument is less than second argument, zero if they're equal and a positive - * value otherwise. If omitted, the elements are sorted in ascending order. - * ```ts - * [11,2,22,1].sort((a, b) => a - b) - * ``` - */ - sort(compareFn?: (a: number, b: number) => number): this; - - /** - * Gets a new Float16Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Float16Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string; - - /** - * Copies the array and returns the copy with the elements in reverse order. - */ - toReversed(): Float16Array; - - /** - * Copies and sorts the array. - * @param compareFn Function used to determine the order of the elements. It is expected to return - * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive - * value otherwise. If omitted, the elements are sorted in ascending order. - * ```ts - * const myNums = Float16Array.from([11.25, 2, -22.5, 1]); - * myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5] - * ``` - */ - toSorted(compareFn?: (a: number, b: number) => number): Float16Array; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - /** Returns the primitive value of the specified object. */ - valueOf(): this; - - /** - * Copies the array and inserts the given number at the provided index. - * @param index The index of the value to overwrite. If the index is - * negative, then it replaces from the end of the array. - * @param value The value to insert into the copied array. - * @returns A copy of the original array with the inserted value. - */ - with(index: number, value: number): Float16Array; - - [index: number]: number; - - [Symbol.iterator](): ArrayIterator; - - /** - * Returns an array of key, value pairs for every entry in the array - */ - entries(): ArrayIterator<[number, number]>; - - /** - * Returns an list of keys in the array - */ - keys(): ArrayIterator; - - /** - * Returns an list of values in the array - */ - values(): ArrayIterator; - - readonly [Symbol.toStringTag]: "Float16Array"; -} - -interface Float16ArrayConstructor { - readonly prototype: Float16Array; - new (length?: number): Float16Array; - new (array: ArrayLike | Iterable): Float16Array; - new (buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array; - - /** - * The size in bytes of each element in the array. - */ - readonly BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - */ - from(arrayLike: ArrayLike): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => number, thisArg?: any): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - */ - from(elements: Iterable): Float16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param elements An iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(elements: Iterable, mapfn?: (v: T, k: number) => number, thisArg?: any): Float16Array; -} -declare var Float16Array: Float16ArrayConstructor; - -interface Math { - /** - * Returns the nearest half precision float representation of a number. - * @param x A numeric expression. - */ - f16round(x: number): number; -} - -interface DataView { - /** - * Gets the Float16 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - * @param littleEndian If false or undefined, a big-endian value should be read. - */ - getFloat16(byteOffset: number, littleEndian?: boolean): number; - - /** - * Stores an Float16 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written. - */ - setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void; -} diff --git a/node_modules/typescript/lib/lib.esnext.iterator.d.ts b/node_modules/typescript/lib/lib.esnext.iterator.d.ts deleted file mode 100644 index 76346324a..000000000 --- a/node_modules/typescript/lib/lib.esnext.iterator.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - - -/// - -/// - -// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found -// in the `declare global` section, below. This is necessary as there is currently no way to declare an `abstract` -// member without declaring a `class`, but declaring `class Iterator` globally would conflict with TypeScript's -// general purpose `Iterator` interface. -export {}; - -// Abstract type that allows us to mark `next` as `abstract` -declare abstract class Iterator { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging - abstract next(value?: TNext): IteratorResult; -} - -// Merge all members of `IteratorObject` into `Iterator` -interface Iterator extends globalThis.IteratorObject {} - -// Capture the `Iterator` constructor in a type we can use in the `extends` clause of `IteratorConstructor`. -type IteratorObjectConstructor = typeof Iterator; - -declare global { - // Global `IteratorObject` interface that can be augmented by polyfills - interface IteratorObject { - /** - * Returns this iterator. - */ - [Symbol.iterator](): IteratorObject; - - /** - * Creates an iterator whose values are the result of applying the callback to the values from this iterator. - * @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator. - */ - map(callbackfn: (value: T, index: number) => U): IteratorObject; - - /** - * Creates an iterator whose values are those from this iterator for which the provided predicate returns true. - * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator. - */ - filter(predicate: (value: T, index: number) => value is S): IteratorObject; - - /** - * Creates an iterator whose values are those from this iterator for which the provided predicate returns true. - * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator. - */ - filter(predicate: (value: T, index: number) => unknown): IteratorObject; - - /** - * Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached. - * @param limit The maximum number of values to yield. - */ - take(limit: number): IteratorObject; - - /** - * Creates an iterator whose values are the values from this iterator after skipping the provided count. - * @param count The number of values to drop. - */ - drop(count: number): IteratorObject; - - /** - * Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables. - * @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result. - */ - flatMap(callback: (value: T, index: number) => Iterator | Iterable): IteratorObject; - - /** - * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator. - */ - reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T; - reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T; - - /** - * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator. - */ - reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U; - - /** - * Creates a new array from the values yielded by this iterator. - */ - toArray(): T[]; - - /** - * Performs the specified action for each element in the iterator. - * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator. - */ - forEach(callbackfn: (value: T, index: number) => void): void; - - /** - * Determines whether the specified callback function returns true for any element of this iterator. - * @param predicate A function that accepts up to two arguments. The some method calls - * the predicate function for each element in this iterator until the predicate returns a value - * true, or until the end of the iterator. - */ - some(predicate: (value: T, index: number) => unknown): boolean; - - /** - * Determines whether all the members of this iterator satisfy the specified test. - * @param predicate A function that accepts up to two arguments. The every method calls - * the predicate function for each element in this iterator until the predicate returns - * false, or until the end of this iterator. - */ - every(predicate: (value: T, index: number) => unknown): boolean; - - /** - * Returns the value of the first element in this iterator where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of this iterator, in - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - */ - find(predicate: (value: T, index: number) => value is S): S | undefined; - find(predicate: (value: T, index: number) => unknown): T | undefined; - - readonly [Symbol.toStringTag]: string; - } - - // Global `IteratorConstructor` interface that can be augmented by polyfills - interface IteratorConstructor extends IteratorObjectConstructor { - /** - * Creates a native iterator from an iterator or iterable object. - * Returns its input if the input already inherits from the built-in Iterator class. - * @param value An iterator or iterable object to convert a native iterator. - */ - from(value: Iterator | Iterable): IteratorObject; - } - - var Iterator: IteratorConstructor; -} diff --git a/node_modules/typescript/lib/lib.es2024.object.d.ts b/node_modules/typescript/lib/lib.esnext.object.d.ts similarity index 100% rename from node_modules/typescript/lib/lib.es2024.object.d.ts rename to node_modules/typescript/lib/lib.esnext.object.d.ts diff --git a/node_modules/typescript/lib/lib.esnext.promise.d.ts b/node_modules/typescript/lib/lib.esnext.promise.d.ts index d2ffcc48f..b890983b3 100644 --- a/node_modules/typescript/lib/lib.esnext.promise.d.ts +++ b/node_modules/typescript/lib/lib.esnext.promise.d.ts @@ -16,19 +16,20 @@ and limitations under the License. /// +interface PromiseWithResolvers { + promise: Promise; + resolve: (value: T | PromiseLike) => void; + reject: (reason?: any) => void; +} + interface PromiseConstructor { /** - * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result - * in a Promise. - * - * @param callbackFn A function that is called synchronously. It can do anything: either return - * a value, throw an error, or return a promise. - * @param args Additional arguments, that will be passed to the callback. + * Creates a new Promise and returns it in an object, along with its resolve and reject functions. + * @returns An object with the properties `promise`, `resolve`, and `reject`. * - * @returns A Promise that is: - * - Already fulfilled, if the callback synchronously returns a value. - * - Already rejected, if the callback synchronously throws an error. - * - Asynchronously fulfilled or rejected, if the callback returns a promise. + * ```ts + * const { promise, resolve, reject } = Promise.withResolvers(); + * ``` */ - try(callbackFn: (...args: U) => T | PromiseLike, ...args: U): Promise>; + withResolvers(): PromiseWithResolvers; } diff --git a/node_modules/typescript/lib/lib.es2024.regexp.d.ts b/node_modules/typescript/lib/lib.esnext.regexp.d.ts similarity index 100% rename from node_modules/typescript/lib/lib.es2024.regexp.d.ts rename to node_modules/typescript/lib/lib.esnext.regexp.d.ts diff --git a/node_modules/typescript/lib/lib.es2024.string.d.ts b/node_modules/typescript/lib/lib.esnext.string.d.ts similarity index 100% rename from node_modules/typescript/lib/lib.es2024.string.d.ts rename to node_modules/typescript/lib/lib.esnext.string.d.ts diff --git a/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts b/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts index 4c7aaadc6..86de21097 100644 --- a/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +++ b/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts @@ -20,22 +20,14 @@ and limitations under the License. /// Worker Async Iterable APIs ///////////////////////////// -interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; -} - interface FileSystemDirectoryHandle { - [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; - entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; - keys(): FileSystemDirectoryHandleAsyncIterator; - values(): FileSystemDirectoryHandleAsyncIterator; -} - -interface ReadableStreamAsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; + [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; + entries(): AsyncIterableIterator<[string, FileSystemHandle]>; + keys(): AsyncIterableIterator; + values(): AsyncIterableIterator; } interface ReadableStream { - [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; - values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; + [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator; + values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; } diff --git a/node_modules/typescript/lib/lib.webworker.d.ts b/node_modules/typescript/lib/lib.webworker.d.ts index dd6a69e76..ce78eb2fe 100644 --- a/node_modules/typescript/lib/lib.webworker.d.ts +++ b/node_modules/typescript/lib/lib.webworker.d.ts @@ -65,59 +65,6 @@ interface AudioConfiguration { spatialRendering?: boolean; } -interface AudioDataCopyToOptions { - format?: AudioSampleFormat; - frameCount?: number; - frameOffset?: number; - planeIndex: number; -} - -interface AudioDataInit { - data: BufferSource; - format: AudioSampleFormat; - numberOfChannels: number; - numberOfFrames: number; - sampleRate: number; - timestamp: number; - transfer?: ArrayBuffer[]; -} - -interface AudioDecoderConfig { - codec: string; - description?: BufferSource; - numberOfChannels: number; - sampleRate: number; -} - -interface AudioDecoderInit { - error: WebCodecsErrorCallback; - output: AudioDataOutputCallback; -} - -interface AudioDecoderSupport { - config?: AudioDecoderConfig; - supported?: boolean; -} - -interface AudioEncoderConfig { - bitrate?: number; - bitrateMode?: BitrateMode; - codec: string; - numberOfChannels: number; - opus?: OpusEncoderConfig; - sampleRate: number; -} - -interface AudioEncoderInit { - error: WebCodecsErrorCallback; - output: EncodedAudioChunkOutputCallback; -} - -interface AudioEncoderSupport { - config?: AudioEncoderConfig; - supported?: boolean; -} - interface AvcEncoderConfig { format?: AvcBitstreamFormat; } @@ -234,18 +181,6 @@ interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } -interface EncodedAudioChunkInit { - data: AllowSharedBufferSource; - duration?: number; - timestamp: number; - transfer?: ArrayBuffer[]; - type: EncodedAudioChunkType; -} - -interface EncodedAudioChunkMetadata { - decoderConfig?: AudioDecoderConfig; -} - interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; @@ -292,7 +227,7 @@ interface ExtendableMessageEventInit extends ExtendableEventInit { interface FetchEventInit extends ExtendableEventInit { clientId?: string; - handled?: Promise; + handled?: Promise; preloadResponse?: Promise; replacesClientId?: string; request: Request; @@ -400,31 +335,15 @@ interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } -interface ImageDecodeOptions { - completeFramesOnly?: boolean; - frameIndex?: number; -} - -interface ImageDecodeResult { - complete: boolean; - image: VideoFrame; -} - -interface ImageDecoderInit { - colorSpaceConversion?: ColorSpaceConversion; - data: ImageBufferSource; - desiredHeight?: number; - desiredWidth?: number; - preferAnimation?: boolean; - transfer?: ArrayBuffer[]; - type: string; -} - interface ImageEncodeOptions { quality?: number; type?: string; } +interface ImportMeta { + url: string; +} + interface JsonWebKey { alg?: string; crv?: string; @@ -495,10 +414,6 @@ interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } -interface MediaStreamTrackProcessorInit { - maxBufferSize?: number; -} - interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; @@ -533,15 +448,6 @@ interface NotificationOptions { tag?: string; } -interface OpusEncoderConfig { - complexity?: number; - format?: OpusBitstreamFormat; - frameDuration?: number; - packetlossperc?: number; - usedtx?: boolean; - useinbandfec?: boolean; -} - interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; @@ -862,7 +768,6 @@ interface VideoConfiguration { colorGamut?: ColorGamut; contentType: string; framerate: number; - hasAlphaChannel?: boolean; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; @@ -898,7 +803,6 @@ interface VideoEncoderConfig { bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; - contentHint?: string; displayHeight?: number; displayWidth?: number; framerate?: number; @@ -910,14 +814,9 @@ interface VideoEncoderConfig { } interface VideoEncoderEncodeOptions { - avc?: VideoEncoderEncodeOptionsForAvc; keyFrame?: boolean; } -interface VideoEncoderEncodeOptionsForAvc { - quantizer?: number | null; -} - interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; @@ -942,8 +841,6 @@ interface VideoFrameBufferInit { } interface VideoFrameCopyToOptions { - colorSpace?: PredefinedColorSpace; - format?: VideoPixelFormat; layout?: PlaneLayout[]; rect?: DOMRectInit; } @@ -1111,113 +1008,6 @@ interface AnimationFrameProvider { requestAnimationFrame(callback: FrameRequestCallback): number; } -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ -interface AudioData { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ - readonly duration: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ - readonly format: AudioSampleFormat | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ - readonly numberOfChannels: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ - readonly numberOfFrames: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ - readonly sampleRate: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ - allocationSize(options: AudioDataCopyToOptions): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ - clone(): AudioData; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ - copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; -} - -declare var AudioData: { - prototype: AudioData; - new(init: AudioDataInit): AudioData; -}; - -interface AudioDecoderEventMap { - "dequeue": Event; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) - */ -interface AudioDecoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ - readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ - ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ - configure(config: AudioDecoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ - decode(chunk: EncodedAudioChunk): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioDecoder: { - prototype: AudioDecoder; - new(init: AudioDecoderInit): AudioDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ - isConfigSupported(config: AudioDecoderConfig): Promise; -}; - -interface AudioEncoderEventMap { - "dequeue": Event; -} - -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) - */ -interface AudioEncoder extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ - readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ - ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ - readonly state: CodecState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ - configure(config: AudioEncoderConfig): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ - encode(data: AudioData): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ - flush(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ - reset(): void; - addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var AudioEncoder: { - prototype: AudioEncoder; - new(init: AudioEncoderInit): AudioEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ - isConfigSupported(config: AudioEncoderConfig): Promise; -}; - /** * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. * @@ -1230,8 +1020,6 @@ interface Blob { readonly type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ - bytes(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ @@ -1254,8 +1042,6 @@ interface Body { arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ - bytes(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ @@ -1881,8 +1667,6 @@ interface CanvasShadowStyles { } interface CanvasState { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ - isContextLost(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ @@ -2019,8 +1803,6 @@ declare var CloseEvent: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; } declare var CompressionStream: { @@ -2190,67 +1972,40 @@ declare var DOMException: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ f: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } @@ -2264,53 +2019,53 @@ declare var DOMMatrix: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ readonly a: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ readonly b: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ readonly c: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ readonly d: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ readonly e: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ readonly f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ readonly m11: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ readonly m12: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ readonly m13: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ readonly m14: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ readonly m21: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ readonly m22: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ readonly m23: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ readonly m24: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ readonly m31: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ readonly m32: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ readonly m33: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ readonly m34: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ readonly m41: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ readonly m42: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ readonly m43: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; @@ -2320,21 +2075,30 @@ interface DOMMatrixReadOnly { inverse(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) + */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; @@ -2404,7 +2168,6 @@ interface DOMQuad { readonly p4: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ toJSON(): any; } @@ -2417,20 +2180,15 @@ declare var DOMQuad: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRect; }; @@ -2452,7 +2210,6 @@ interface DOMRectReadOnly { readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } @@ -2497,8 +2254,6 @@ declare var DOMStringList: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; } declare var DecompressionStream: { @@ -2506,10 +2261,10 @@ declare var DecompressionStream: { new(format: CompressionFormat): DecompressionStream; }; -interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, MessageEventTargetEventMap { +interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "message": MessageEvent; "messageerror": MessageEvent; - "rtctransform": RTCTransformEvent; + "rtctransform": Event; } /** @@ -2517,15 +2272,19 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope) */ -interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider, MessageEventTarget { +interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider { /** * Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) */ readonly name: string; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ + onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ + onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ - onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null; + onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; /** * Aborts dedicatedWorkerGlobal. * @@ -2630,25 +2389,6 @@ interface EXT_texture_norm16 { readonly RGBA16_SNORM_EXT: 0x8F9B; } -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ -interface EncodedAudioChunk { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ - readonly byteLength: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ - readonly duration: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ - readonly timestamp: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ - readonly type: EncodedAudioChunkType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ - copyTo(destination: AllowSharedBufferSource): void; -} - -declare var EncodedAudioChunk: { - prototype: EncodedAudioChunk; - new(init: EncodedAudioChunkInit): EncodedAudioChunk; -}; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ @@ -2975,7 +2715,7 @@ interface FetchEvent extends ExtendableEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */ readonly clientId: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */ - readonly handled: Promise; + readonly handled: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */ readonly preloadResponse: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */ @@ -3254,23 +2994,23 @@ interface FontFace { declare var FontFace: { prototype: FontFace; - new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; + new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { - "loading": FontFaceSetLoadEvent; - "loadingdone": FontFaceSetLoadEvent; - "loadingerror": FontFaceSetLoadEvent; + "loading": Event; + "loadingdone": Event; + "loadingerror": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ - onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloading: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ - onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ - onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; + onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ @@ -3288,7 +3028,7 @@ interface FontFaceSet extends EventTarget { declare var FontFaceSet: { prototype: FontFaceSet; - new(): FontFaceSet; + new(initialFaces: FontFace[]): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ @@ -3337,16 +3077,6 @@ declare var FormData: { new(): FormData; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) - */ -interface GPUError { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ - readonly message: string; -} - interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; @@ -4136,75 +3866,6 @@ declare var ImageData: { new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData; }; -/** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder) - */ -interface ImageDecoder { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete) */ - readonly complete: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed) */ - readonly completed: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks) */ - readonly tracks: ImageTrackList; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type) */ - readonly type: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode) */ - decode(options?: ImageDecodeOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset) */ - reset(): void; -} - -declare var ImageDecoder: { - prototype: ImageDecoder; - new(init: ImageDecoderInit): ImageDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static) */ - isTypeSupported(type: string): Promise; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack) */ -interface ImageTrack { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated) */ - readonly animated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount) */ - readonly frameCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount) */ - readonly repetitionCount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected) */ - selected: boolean; -} - -declare var ImageTrack: { - prototype: ImageTrack; - new(): ImageTrack; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList) */ -interface ImageTrackList { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length) */ - readonly length: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready) */ - readonly ready: Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex) */ - readonly selectedIndex: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack) */ - readonly selectedTrack: ImageTrack | null; - [index: number]: ImageTrack; -} - -declare var ImageTrackList: { - prototype: ImageTrackList; - new(): ImageTrackList; -}; - -interface ImportMeta { - url: string; - resolve(specifier: string): string; -} - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */ interface KHR_parallel_shader_compile { readonly COMPLETION_STATUS_KHR: 0x91B1; @@ -4258,26 +3919,6 @@ declare var MediaCapabilities: { new(): MediaCapabilities; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle) */ -interface MediaSourceHandle { -} - -declare var MediaSourceHandle: { - prototype: MediaSourceHandle; - new(): MediaSourceHandle; -}; - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor) */ -interface MediaStreamTrackProcessor { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable) */ - readonly readable: ReadableStream; -} - -declare var MediaStreamTrackProcessor: { - prototype: MediaStreamTrackProcessor; - new(init: MediaStreamTrackProcessorInit): MediaStreamTrackProcessor; -}; - /** * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. * @@ -4339,7 +3980,11 @@ interface MessageEvent extends Event { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source) */ readonly source: MessageEventSource | null; - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void; } @@ -4348,23 +3993,7 @@ declare var MessageEvent: { new(type: string, eventInitDict?: MessageEventInit): MessageEvent; }; -interface MessageEventTargetEventMap { - "message": MessageEvent; - "messageerror": MessageEvent; -} - -interface MessageEventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ - onmessage: ((this: T, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ - onmessageerror: ((this: T, ev: MessageEvent) => any) | null; - addEventListener(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -interface MessagePortEventMap extends MessageEventTargetEventMap { +interface MessagePortEventMap { "message": MessageEvent; "messageerror": MessageEvent; } @@ -4374,7 +4003,11 @@ interface MessagePortEventMap extends MessageEventTargetEventMap { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort) */ -interface MessagePort extends EventTarget, MessageEventTarget { +interface MessagePort extends EventTarget { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */ + onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */ + onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; /** * Disconnects the port, so that it is no longer active. * @@ -4650,7 +4283,7 @@ interface OES_vertex_array_object { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */ bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */ - createVertexArrayOES(): WebGLVertexArrayObjectOES; + createVertexArrayOES(): WebGLVertexArrayObjectOES | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */ deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */ @@ -4683,9 +4316,7 @@ interface OffscreenCanvas extends EventTarget { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height) */ height: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */ oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */ oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null; /** * These attributes return the dimensions of the OffscreenCanvas object's bitmap. @@ -4736,8 +4367,9 @@ declare var OffscreenCanvas: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */ interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: OffscreenCanvas; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */ + commit(): void; } declare var OffscreenCanvasRenderingContext2D: { @@ -4930,8 +4562,6 @@ interface PerformanceResourceTiming extends PerformanceEntry { readonly responseEnd: DOMHighResTimeStamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */ readonly responseStart: DOMHighResTimeStamp; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus) */ - readonly responseStatus: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */ readonly secureConnectionStart: DOMHighResTimeStamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */ @@ -5082,8 +4712,6 @@ interface PushMessageData { arrayBuffer(): ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */ blob(): Blob; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes) */ - bytes(): Uint8Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */ json(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */ @@ -5138,69 +4766,6 @@ declare var PushSubscriptionOptions: { new(): PushSubscriptionOptions; }; -interface RTCDataChannelEventMap { - "bufferedamountlow": Event; - "close": Event; - "closing": Event; - "error": Event; - "message": MessageEvent; - "open": Event; -} - -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */ -interface RTCDataChannel extends EventTarget { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */ - binaryType: BinaryType; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */ - readonly bufferedAmount: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */ - bufferedAmountLowThreshold: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */ - readonly id: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */ - readonly label: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */ - readonly maxPacketLifeTime: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */ - readonly maxRetransmits: number | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */ - readonly negotiated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */ - onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */ - onclose: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */ - onclosing: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */ - onerror: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */ - onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */ - onopen: ((this: RTCDataChannel, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */ - readonly ordered: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */ - readonly protocol: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */ - readonly readyState: RTCDataChannelState; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */ - close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */ - send(data: string): void; - send(data: Blob): void; - send(data: ArrayBuffer): void; - send(data: ArrayBufferView): void; - addEventListener(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; -} - -declare var RTCDataChannel: { - prototype: RTCDataChannel; - new(): RTCDataChannel; -}; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */ interface RTCEncodedAudioFrame { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */ @@ -5321,7 +4886,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { declare var ReadableStreamBYOBReader: { prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; + new(stream: ReadableStream): ReadableStreamBYOBReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ @@ -5371,7 +4936,7 @@ declare var ReadableStreamDefaultReader: { interface ReadableStreamGenericReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */ cancel(reason?: any): Promise; } @@ -5394,7 +4959,6 @@ declare var Report: { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */ interface ReportBody { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON) */ toJSON(): any; } @@ -5836,7 +5400,7 @@ interface SubtleCrypto { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */ - deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise; + deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */ @@ -5848,7 +5412,7 @@ interface SubtleCrypto { exportKey(format: Exclude, key: CryptoKey): Promise; exportKey(format: KeyFormat, key: CryptoKey): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise; @@ -6130,11 +5694,9 @@ declare var URL: { prototype: URL; new(url: string | URL, base?: string | URL): URL; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */ - canParse(url: string | URL, base?: string | URL): boolean; + canParse(url: string | URL, base?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */ createObjectURL(obj: Blob): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */ - parse(url: string | URL, base?: string | URL): URL | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */ revokeObjectURL(url: string): void; }; @@ -6222,7 +5784,6 @@ interface VideoDecoderEventMap { interface VideoDecoder extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */ readonly decodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */ ondequeue: ((this: VideoDecoder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */ readonly state: CodecState; @@ -6245,7 +5806,6 @@ interface VideoDecoder extends EventTarget { declare var VideoDecoder: { prototype: VideoDecoder; new(init: VideoDecoderInit): VideoDecoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static) */ isConfigSupported(config: VideoDecoderConfig): Promise; }; @@ -6261,7 +5821,6 @@ interface VideoEncoderEventMap { interface VideoEncoder extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */ readonly encodeQueueSize: number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */ ondequeue: ((this: VideoEncoder, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */ readonly state: CodecState; @@ -6271,7 +5830,6 @@ interface VideoEncoder extends EventTarget { configure(config: VideoEncoderConfig): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */ encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush) */ flush(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */ reset(): void; @@ -6284,7 +5842,6 @@ interface VideoEncoder extends EventTarget { declare var VideoEncoder: { prototype: VideoEncoder; new(init: VideoEncoderInit): VideoEncoder; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static) */ isConfigSupported(config: VideoEncoderConfig): Promise; }; @@ -6316,7 +5873,6 @@ interface VideoFrame { clone(): VideoFrame; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */ close(): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo) */ copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise; } @@ -7105,13 +6661,13 @@ interface WebGL2RenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */ copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */ - createQuery(): WebGLQuery; + createQuery(): WebGLQuery | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */ - createSampler(): WebGLSampler; + createSampler(): WebGLSampler | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */ - createTransformFeedback(): WebGLTransformFeedback; + createTransformFeedback(): WebGLTransformFeedback | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */ - createVertexArray(): WebGLVertexArrayObject; + createVertexArray(): WebGLVertexArrayObject | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */ deleteQuery(query: WebGLQuery | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */ @@ -7516,11 +7072,11 @@ interface WebGL2RenderingContextBase { } interface WebGL2RenderingContextOverloads { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */ bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void; bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void; bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */ bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void; bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */ @@ -7561,7 +7117,7 @@ interface WebGL2RenderingContextOverloads { uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void; @@ -7975,14 +7531,11 @@ declare var WebGLRenderingContext: { }; interface WebGLRenderingContextBase { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */ drawingBufferColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */ readonly drawingBufferHeight: GLsizei; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */ readonly drawingBufferWidth: GLsizei; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */ - unpackColorSpace: PredefinedColorSpace; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */ activeTexture(texture: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */ @@ -8026,17 +7579,17 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */ copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */ - createBuffer(): WebGLBuffer; + createBuffer(): WebGLBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */ - createFramebuffer(): WebGLFramebuffer; + createFramebuffer(): WebGLFramebuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */ - createProgram(): WebGLProgram; + createProgram(): WebGLProgram | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */ - createRenderbuffer(): WebGLRenderbuffer; + createRenderbuffer(): WebGLRenderbuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */ createShader(type: GLenum): WebGLShader | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */ - createTexture(): WebGLTexture; + createTexture(): WebGLTexture | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */ cullFace(mode: GLenum): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */ @@ -8181,7 +7734,6 @@ interface WebGLRenderingContextBase { isShader(shader: WebGLShader | null): GLboolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */ isTexture(texture: WebGLTexture | null): GLboolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */ lineWidth(width: GLfloat): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */ linkProgram(program: WebGLProgram): void; @@ -8688,7 +8240,7 @@ declare var WebGLVertexArrayObject: { new(): WebGLVertexArrayObject; }; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */ interface WebGLVertexArrayObjectOES { } @@ -8799,7 +8351,7 @@ interface WebTransport { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */ readonly incomingUnidirectionalStreams: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */ close(closeInfo?: WebTransportCloseInfo): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */ @@ -8899,47 +8451,49 @@ interface WindowOrWorkerGlobalScope { /** * Available only in secure contexts. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) */ readonly caches: CacheStorage; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ readonly crossOriginIsolated: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ readonly crypto: Crypto; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ readonly indexedDB: IDBFactory; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ readonly isSecureContext: boolean; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ readonly origin: string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ readonly performance: Performance; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ atob(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ btoa(data: string): string; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ clearInterval(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ clearTimeout(id: number | undefined): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ fetch(input: RequestInfo | URL, init?: RequestInit): Promise; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ queueMicrotask(callback: VoidFunction): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ reportError(e: any): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ structuredClone(value: T, options?: StructuredSerializeOptions): T; } -interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap { +interface WorkerEventMap extends AbstractWorkerEventMap { + "message": MessageEvent; + "messageerror": MessageEvent; } /** @@ -8947,7 +8501,11 @@ interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEvent * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker) */ -interface Worker extends EventTarget, AbstractWorker, MessageEventTarget { +interface Worker extends EventTarget, AbstractWorker { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */ + onmessage: ((this: Worker, ev: MessageEvent) => any) | null; + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */ + onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null; /** * Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. * @@ -9007,9 +8565,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */ ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */ onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */ onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; /** * Returns workerGlobal. @@ -9076,12 +8632,6 @@ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, N readonly mediaCapabilities: MediaCapabilities; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */ readonly permissions: Permissions; - /** - * Available only in secure contexts. - * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker) - */ - readonly serviceWorker: ServiceWorkerContainer; } declare var WorkerNavigator: { @@ -9134,11 +8684,11 @@ declare var WritableStreamDefaultController: { */ interface WritableStreamDefaultWriter { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */ - readonly closed: Promise; + readonly closed: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */ readonly desiredSize: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */ - readonly ready: Promise; + readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */ abort(reason?: any): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */ @@ -9398,7 +8948,9 @@ declare namespace WebAssembly { /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */ interface Global { + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */ value: ValueTypeMap[T]; + /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */ valueOf(): ValueTypeMap[T]; } @@ -9545,14 +9097,6 @@ declare namespace WebAssembly { function validate(bytes: BufferSource): boolean; } -interface AudioDataOutputCallback { - (output: AudioData): void; -} - -interface EncodedAudioChunkOutputCallback { - (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void; -} - interface EncodedVideoChunkOutputCallback { (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void; } @@ -9639,8 +9183,12 @@ interface WebCodecsErrorCallback { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name) */ declare var name: string; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ +declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ +declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */ -declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null; +declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; /** * Aborts dedicatedWorkerGlobal. * @@ -9680,9 +9228,7 @@ declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */ declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */ declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */ declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null; /** * Returns workerGlobal. @@ -9707,52 +9253,48 @@ declare var fonts: FontFaceSet; /** * Available only in secure contexts. * - * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches) + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches) */ declare var caches: CacheStorage; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */ declare var crossOriginIsolated: boolean; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */ declare var crypto: Crypto; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */ declare var indexedDB: IDBFactory; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */ declare var isSecureContext: boolean; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */ declare var origin: string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */ declare var performance: Performance; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */ declare function atob(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */ declare function btoa(data: string): string; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */ declare function clearInterval(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */ declare function clearTimeout(id: number | undefined): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */ declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise; declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */ declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */ declare function queueMicrotask(callback: VoidFunction): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */ declare function reportError(e: any): void; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */ declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */ declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */ +/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */ declare function structuredClone(value: T, options?: StructuredSerializeOptions): T; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ declare function cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ declare function requestAnimationFrame(callback: FrameRequestCallback): number; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */ -declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; -/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */ -declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null; declare function addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; declare function removeEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -9760,6 +9302,7 @@ declare function removeEventListener(type: string, listener: EventListenerOrEven type AlgorithmIdentifier = Algorithm | string; type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView; type BigInteger = Uint8Array; +type BinaryData = ArrayBuffer | ArrayBufferView; type BlobPart = BufferSource | Blob | string; type BodyInit = ReadableStream | XMLHttpRequestBodyInit; type BufferSource = ArrayBufferView | ArrayBuffer; @@ -9790,7 +9333,6 @@ type HashAlgorithmIdentifier = AlgorithmIdentifier; type HeadersInit = [string, string][] | Record | Headers; type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[]; type ImageBitmapSource = CanvasImageSource | Blob | ImageData; -type ImageBufferSource = AllowSharedBufferSource | ReadableStream; type Int32List = Int32Array | GLint[]; type MessageEventSource = MessagePort | ServiceWorker; type NamedCurve = string; @@ -9805,14 +9347,12 @@ type ReportList = Report[]; type RequestInfo = Request | string; type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame; type TimerHandler = string | Function; -type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer; +type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer; type Uint32List = Uint32Array | GLuint[]; type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string; type AlphaOption = "discard" | "keep"; -type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar"; type AvcBitstreamFormat = "annexb" | "avc"; type BinaryType = "arraybuffer" | "blob"; -type BitrateMode = "constant" | "variable"; type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum"; type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time"; type CanvasDirection = "inherit" | "ltr" | "rtl"; @@ -9831,7 +9371,6 @@ type ColorGamut = "p3" | "rec2020" | "srgb"; type ColorSpaceConversion = "default" | "none"; type CompressionFormat = "deflate" | "deflate-raw" | "gzip"; type DocumentVisibilityState = "hidden" | "visible"; -type EncodedAudioChunkType = "delta" | "key"; type EncodedVideoChunkType = "delta" | "key"; type EndingType = "native" | "transparent"; type FileSystemHandleKind = "directory" | "file"; @@ -9858,13 +9397,11 @@ type MediaEncodingType = "record" | "webrtc"; type NotificationDirection = "auto" | "ltr" | "rtl"; type NotificationPermission = "default" | "denied" | "granted"; type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu"; -type OpusBitstreamFormat = "ogg" | "opus"; -type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access"; +type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking"; type PermissionState = "denied" | "granted" | "prompt"; type PredefinedColorSpace = "display-p3" | "srgb"; type PremultiplyAlpha = "default" | "none" | "premultiply"; type PushEncryptionKeyName = "auth" | "p256dh"; -type RTCDataChannelState = "closed" | "closing" | "connecting" | "open"; type RTCEncodedVideoFrameType = "delta" | "empty" | "key"; type ReadableStreamReaderMode = "byob"; type ReadableStreamType = "bytes"; diff --git a/node_modules/typescript/lib/lib.webworker.iterable.d.ts b/node_modules/typescript/lib/lib.webworker.iterable.d.ts index a571b7d3b..4f53ad5e0 100644 --- a/node_modules/typescript/lib/lib.webworker.iterable.d.ts +++ b/node_modules/typescript/lib/lib.webworker.iterable.d.ts @@ -20,25 +20,30 @@ and limitations under the License. /// Worker Iterable APIs ///////////////////////////// +interface AbortSignal { + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ + any(signals: Iterable): AbortSignal; +} + interface CSSNumericArray { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSNumericValue]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSNumericValue]>; + keys(): IterableIterator; + values(): IterableIterator; } interface CSSTransformValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSTransformComponent]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSTransformComponent]>; + keys(): IterableIterator; + values(): IterableIterator; } interface CSSUnparsedValue { - [Symbol.iterator](): ArrayIterator; - entries(): ArrayIterator<[number, CSSUnparsedSegment]>; - keys(): ArrayIterator; - values(): ArrayIterator; + [Symbol.iterator](): IterableIterator; + entries(): IterableIterator<[number, CSSUnparsedSegment]>; + keys(): IterableIterator; + values(): IterableIterator; } interface Cache { @@ -57,42 +62,34 @@ interface CanvasPathDrawingStyles { } interface DOMStringList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface FileList { - [Symbol.iterator](): ArrayIterator; + [Symbol.iterator](): IterableIterator; } interface FontFaceSet extends Set { } -interface FormDataIterator extends IteratorObject { - [Symbol.iterator](): FormDataIterator; -} - interface FormData { - [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>; + [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; /** Returns an array of key, value pairs for every entry in the list. */ - entries(): FormDataIterator<[string, FormDataEntryValue]>; + entries(): IterableIterator<[string, FormDataEntryValue]>; /** Returns a list of keys in the list. */ - keys(): FormDataIterator; + keys(): IterableIterator; /** Returns a list of values in the list. */ - values(): FormDataIterator; -} - -interface HeadersIterator extends IteratorObject { - [Symbol.iterator](): HeadersIterator; + values(): IterableIterator; } interface Headers { - [Symbol.iterator](): HeadersIterator<[string, string]>; + [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all key/value pairs contained in this object. */ - entries(): HeadersIterator<[string, string]>; + entries(): IterableIterator<[string, string]>; /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ - keys(): HeadersIterator; + keys(): IterableIterator; /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ - values(): HeadersIterator; + values(): IterableIterator; } interface IDBDatabase { @@ -115,31 +112,27 @@ interface IDBObjectStore { createIndex(name: string, keyPath: string | Iterable, options?: IDBIndexParameters): IDBIndex; } -interface ImageTrackList { - [Symbol.iterator](): ArrayIterator; -} - interface MessageEvent { - /** @deprecated */ + /** + * @deprecated + * + * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent) + */ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable): void; } -interface StylePropertyMapReadOnlyIterator extends IteratorObject { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator; -} - interface StylePropertyMapReadOnly { - [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - entries(): StylePropertyMapReadOnlyIterator<[string, Iterable]>; - keys(): StylePropertyMapReadOnlyIterator; - values(): StylePropertyMapReadOnlyIterator>; + [Symbol.iterator](): IterableIterator<[string, Iterable]>; + entries(): IterableIterator<[string, Iterable]>; + keys(): IterableIterator; + values(): IterableIterator>; } interface SubtleCrypto { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */ - generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; + generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise; generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray): Promise; generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable): Promise; @@ -150,18 +143,14 @@ interface SubtleCrypto { unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable): Promise; } -interface URLSearchParamsIterator extends IteratorObject { - [Symbol.iterator](): URLSearchParamsIterator; -} - interface URLSearchParams { - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; + [Symbol.iterator](): IterableIterator<[string, string]>; /** Returns an array of key, value pairs for every entry in the search params. */ - entries(): URLSearchParamsIterator<[string, string]>; + entries(): IterableIterator<[string, string]>; /** Returns a list of keys in the search params. */ - keys(): URLSearchParamsIterator; + keys(): IterableIterator; /** Returns a list of values in the search params. */ - values(): URLSearchParamsIterator; + values(): IterableIterator; } interface WEBGL_draw_buffers { @@ -242,7 +231,7 @@ interface WebGL2RenderingContextOverloads { uniform4fv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */ uniform4iv(location: WebGLUniformLocation | null, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */ + /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable, srcOffset?: number, srcLength?: GLuint): void; diff --git a/node_modules/typescript/lib/pl/diagnosticMessages.generated.json b/node_modules/typescript/lib/pl/diagnosticMessages.generated.json index 12cd48837..fc734cc2d 100644 --- a/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/pl/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "WSZYSTKIE OPCJE KOMPILATORA", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Modyfikatora „{0}” nie można używać z deklaracją importu.", "A_0_parameter_must_be_the_first_parameter_2680": "Parametr „{0}” musi być pierwszym parametrem.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Tag „@template” obiektu JSDoc nie może następować po tagu „@typedef”, „@callback” ani „@overload”", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Komentarz JSDoc „@typedef” nie może zawierać wielu tagów „@type”.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Literał „bigint” nie może być używany jako nazwa właściwości.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Literał typu bigint nie może używać notacji wykładniczej.", "A_bigint_literal_must_be_an_integer_1353": "Literał typu bigint musi być liczbą całkowitą.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Parametr wzorca wiązania nie może być opcjonalny w sygnaturze implementacji.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Instrukcji „break” można użyć tylko w ramach otaczającej instrukcji iteracji lub switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Instrukcja „break” może wykonać skok tylko do etykiety otaczającej instrukcji.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Klasa znaków nie może zawierać zastrzeżonej podwójnej interpunkcji. Czy chodziło Ci o ucieczkę za pomocą ukośnika odwrotnego?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Zakres klasy znaków nie może być ograniczony przez inną klasę znaków.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Klasa może zawierać implementację tylko identyfikatora/nazwy kwalifikowanej z opcjonalnymi argumentami typu.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Klasa może implementować tylko typ obiektu lub część wspólną typów obiektów ze statycznie znanymi elementami członkowskimi.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Klasa nie może rozszerzyć typu pierwotnego, takiego jak „{0}”. Klasy mogą rozszerzać tylko wartości konstruowalne.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Klasa nie może zaimplementować typu pierwotnego, takiego jak „{0}”. Może implementować tylko inne nazwane typy obiektów.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Deklaracja klasy bez modyfikatora „default” musi mieć nazwę.", "A_class_member_cannot_have_the_0_keyword_1248": "Składowa klasy nie może zawierać słowa kluczowego „{0}”.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Wyrażenie przecinkowe nie jest dozwolone w obliczonej nazwie właściwości.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Konstruktor nie może zawierać parametru „this”.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Instrukcji „continue” można użyć tylko w otaczającej instrukcji iteracji.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Instrukcja „continue” może wykonać skok tylko do etykiety otaczającej instrukcji iteracji.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Nie można zaimportować pliku deklaracji bez elementu „import type”. Czy zamiast tego chcesz zaimportować plik implementacji „{0}”?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Nie można użyć modyfikatora „declare” w otaczającym kontekście.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Dekorator może dekorować jedynie implementację metody, a nie przeciążenie.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Klauzula „default” nie może występować więcej niż raz w instrukcji „switch”.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Eksport domyślny musi znajdować się na najwyższym poziomie deklaracji pliku lub modułu.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Asercja określonego przypisania „!” nie jest dozwolona w tym kontekście.", "A_destructuring_declaration_must_have_an_initializer_1182": "Deklaracja usuwająca strukturę musi mieć inicjator.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Wywołanie dynamicznego importowania w języku ES5 wymaga konstruktora „Promise”. Upewnij się, że masz deklarację dla konstruktora „Promise”, lub uwzględnij wartość „ES2015” w opcji „--lib”.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Wywołanie dynamicznego importowania w wersji ES5/ES3 wymaga konstruktora \"Promise\". Upewnij się, że masz deklarację dla konstruktora \"Promise\", lub uwzględnij wartość \"ES2015\" w opcji \"--lib\".", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Wywołanie dynamicznego importowania zwraca element \"Promise\". Upewnij się, że masz deklarację dla elementu \"Promise\" lub uwzględnij wartość \"ES2015\" w opcji \"--lib\".", "A_file_cannot_have_a_reference_to_itself_1006": "Plik nie może przywoływać samego siebie.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Funkcja zwracająca wartość „never” nie może mieć osiągalnego punktu końcowego.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Funkcja wywoływana ze słowem kluczowym „new” nie może mieć typu „this” o wartości „void”.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Funkcja, której zadeklarowany typ nie ma wartości „undefined”, „void” ani „any”, musi zwracać wartości.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Funkcja, której deklarowany typ jest inny niż „void” lub „any”, musi zwracać wartość.", "A_generator_cannot_have_a_void_type_annotation_2505": "Generator nie może mieć adnotacji typu „void”.", "A_get_accessor_cannot_have_parameters_1054": "Metoda dostępu „get” nie może mieć parametrów.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Metoda dostępu get musi być co najmniej tak samo dostępna, jak metoda ustawiająca", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Deklaracja przestrzeni nazw nie może znajdować się w innym pliku niż klasa lub funkcja, z którą ją scalono.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklaracja przestrzeni nazw nie może występować przed klasą lub funkcją, z którą ją scalono.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Deklaracja przestrzeni nazw jest dozwolona tylko na najwyższym poziomie przestrzeni nazw lub modułu.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Deklaracja „namespace” nie powinna być deklarowana przy użyciu słowa kluczowego „module”. Zamiast tego należy użyć słowa kluczowego „namespace”.", "A_non_dry_build_would_build_project_0_6357": "Kompilacja inna niż -dry spowodowałaby skompilowanie projektu „{0}”", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Kompilacja inna niż -dry spowodowałaby usunięcie następujących plików: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Kompilacja bez opcji dry spowoduje zaktualizowanie danych wyjściowych projektu „{0}”", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Kompilacja bez opcji dry spowoduje zaktualizowanie sygnatur czasowych dla danych wyjściowych projektu „{0}”", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Inicjator parametru jest dozwolony tylko w implementacji funkcji lub konstruktora.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Właściwości parametru nie można zadeklarować za pomocą parametru rest.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Wywołanie „super” musi być pierwszą instrukcją w konstruktorze, aby odwoływać się do „super” lub „this”, gdy klasa pochodna zawiera zainicjalizowane właściwości, właściwości parametrów lub prywatne identyfikatory.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Ochrona typu oparta na elemencie „this” nie jest zgodna z ochroną typu opartą na parametrze.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Typ „this” jest dostępny tylko w niestatycznej składowej klasy lub interfejsu.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Modyfikatora „export” najwyższego poziomu nie można używać w deklaracjach wartości w module CommonJS, gdy jest włączona opcja „verbatimModuleSyntax”.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Plik „tsconfig.json” jest już zdefiniowany w: „{0}”.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Składowa krotki nie może być jednocześnie opcjonalna i typu rest.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Nie można indeksować typu krotki z wartością ujemną.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Wyrażenie „yield” jest dozwolone tylko w treści generatora.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Nie można uzyskać dostępu do metody abstrakcyjnej „{0}” w klasie „{1}” za pomocą wyrażenia super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Metody abstrakcyjne mogą występować tylko w klasie abstrakcyjnej.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Właściwości abstrakcyjne mogą występować tylko w klasie abstrakcyjnej.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Właściwość abstrakcyjna „{0}” w klasie „{1}” jest niedostępna w konstruktorze.", "Accessibility_modifier_already_seen_1028": "Napotkano już modyfikator dostępności.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Metody dostępu są dostępne tylko wtedy, gdy jest używany język ECMAScript 5 lub nowszy.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Obie metody dostępu muszą być abstrakcyjne lub nieabstrakcyjne.", "Add_0_to_unresolved_variable_90008": "Dodaj „{0}.” do nierozpoznanej zmiennej", "Add_a_return_statement_95111": "Dodaj instrukcję return", - "Add_a_return_type_to_the_function_declaration_9031": "Dodaj zwracany typ do deklaracji funkcji.", - "Add_a_return_type_to_the_function_expression_9030": "Dodaj zwracany typ do wyrażenia funkcji.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Dodaj zwracany typ do deklaracji metody dostępu get.", - "Add_a_return_type_to_the_method_9034": "Dodawanie typu zwracanego do metody", - "Add_a_type_annotation_to_the_parameter_0_9028": "Dodaj adnotację typu do parametru {0}.", - "Add_a_type_annotation_to_the_property_0_9029": "Dodaj adnotację typu do właściwości {0}.", - "Add_a_type_annotation_to_the_variable_0_9027": "Dodaj adnotację typu do zmiennej {0}.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Dodaj typ do parametru deklaracji metody dostępu zestawu.", "Add_all_missing_async_modifiers_95041": "Dodaj wszystkie brakujące modyfikatory „async”", "Add_all_missing_attributes_95168": "Dodawanie wszystkich brakujących atrybutów", "Add_all_missing_call_parentheses_95068": "Dodaj wszystkie brakujące nawiasy wywołań", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Dodaj wszystkie brakujące importy", "Add_all_missing_members_95022": "Dodaj wszystkie brakujące elementy członkowskie", "Add_all_missing_override_modifiers_95162": "Dodaj wszystkie brakujące modyfikatory „override”", - "Add_all_missing_parameters_95190": "Dodaj wszystkie brakujące parametry", "Add_all_missing_properties_95166": "Dodaj wszystkie brakujące właściwości", "Add_all_missing_return_statement_95114": "Dodaj wszystkie brakujące instrukcje return", "Add_all_missing_super_calls_95039": "Dodaj wszystkie brakujące wywołania typu super", - "Add_all_missing_type_annotations_90067": "Dodaj wszystkie brakujące adnotacje typu", - "Add_all_optional_parameters_95193": "Dodaj wszystkie parametry opcjonalne", - "Add_annotation_of_type_0_90062": "Dodaj adnotację typu „{0}”", "Add_async_modifier_to_containing_function_90029": "Dodaj modyfikator asynchroniczny do funkcji zawierającej", "Add_await_95083": "Dodaj operator „await”", "Add_await_to_initializer_for_0_95084": "Dodaj operator „await” do inicjatora dla elementu „{0}”", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Dodaj inicjatory do wszystkich niezainicjowanych właściwości", "Add_missing_attributes_95167": "Dodawanie brakujących atrybutów", "Add_missing_call_parentheses_95067": "Dodaj brakujące nawiasy wywołań", - "Add_missing_comma_for_object_member_completion_0_95187": "Dodaj brakujący przecinek dla ukończenia składowych obiektu „{0}”.", "Add_missing_enum_member_0_95063": "Dodaj brakujący element członkowski wyliczenia „{0}”", "Add_missing_function_declaration_0_95156": "Dodaj brakującą deklarację funkcji „{0}”", "Add_missing_new_operator_to_all_calls_95072": "Dodaj brakujący operator „new” do wszystkich wywołań", "Add_missing_new_operator_to_call_95071": "Dodaj brakujący operator „new” do wywołania", - "Add_missing_parameter_to_0_95188": "Dodaj brakujący parametr do elementu „{0}”", - "Add_missing_parameters_to_0_95189": "Dodaj brakujące parametry do elementu „{0}”", "Add_missing_properties_95165": "Dodaj brakujące właściwości", "Add_missing_super_call_90001": "Dodaj brakujące wywołanie „super()”", "Add_missing_typeof_95052": "Dodaj brakujący element „typeof”", "Add_names_to_all_parameters_without_names_95073": "Dodaj nazwy do wszystkich parametrów bez nazw", - "Add_optional_parameter_to_0_95191": "Dodaj opcjonalny parametr do elementu „{0}\"", - "Add_optional_parameters_to_0_95192": "Dodaj opcjonalne parametry do elementu „{0}”", "Add_or_remove_braces_in_an_arrow_function_95058": "Dodaj lub usuń nawiasy klamrowe w funkcji strzałki", "Add_override_modifier_95160": "Dodaj modyfikator „override”", "Add_parameter_name_90034": "Dodaj nazwę parametru", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Dodaj kwalifikator do wszystkich nierozpoznanych zmiennych pasujących do nazwy składowej", - "Add_resolution_mode_import_attribute_95196": "Dodaj atrybut importu „resolution-mode”", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Dodaj atrybut importu „resolution-mode” do wszystkich importów tylko typu, które go potrzebują", - "Add_return_type_0_90063": "Dodaj zwracany typ „{0}”", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Dodaj elementy satisfies i asercję typu do tego wyrażenia (satisfies T jako T), aby jawnie utworzyć typ.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Dodaj elementy satisfies i asercję typu wbudowanego za pomocą elementu „{0}”", "Add_to_all_uncalled_decorators_95044": "Dodaj element „()” do wszystkich niewywoływanych dekoratorów", "Add_ts_ignore_to_all_error_messages_95042": "Dodaj element „@ts-ignore” do wszystkich komunikatów o błędach", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Dodaj element „niezdefiniowany” do typu podczas uzyskiwania dostępu przy użyciu indeksu.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Zezwalaj na domyślne importy z modułów bez domyślnego eksportu. To nie wpływa na emitowanie kodu, a tylko na sprawdzanie typów.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Zezwalaj na elementy „import x from y”, gdy moduł nie ma domyślnej operacji eksportu.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Zezwalaj na jednorazowe importowanie funkcji pomocniczych z biblioteki tslib w projekcie zamiast dołączania ich dla poszczególnych plików.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Zezwalaj na importowanie w celu uwzględnienia rozszerzeń plików TypeScript. Wymaga ustawienia elementu „--moduleResolution bundler” i „--noEmit” lub „--emitDeclarationOnly”.", "Allow_javascript_files_to_be_compiled_6102": "Zezwalaj na kompilowanie plików JavaScript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Zezwalaj na traktowanie wielu folderów jako jednego podczas rozpoznawania modułów.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Już dołączona nazwa pliku „{0}” różni się od nazwy pliku „{1}” tylko wielkością liter", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Argument pasujący do tego wzorca powiązania nie został podany.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Arytmetyczny operand musi być typu „any”, „number”, „bigint” lub typu wyliczeniowego.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Funkcja strzałki nie może mieć parametru „this”.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Asynchroniczna funkcja lub metoda w języku ES5 wymaga konstruktora „Promise”. Upewnij się, że masz deklarację dla konstruktora „Promise”, lub uwzględnij wartość „ES2015” w opcji „--lib”.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Asynchroniczna funkcja lub metoda w wersji ES5/ES3 wymaga konstruktora \"Promise\". Upewnij się, że masz deklarację dla konstruktora \"Promise\", lub uwzględnij wartość \"ES2015\" w opcji \"--lib\".", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Asynchroniczna funkcja lub metoda musi zwrócić element \"Promise\". Upewnij się, że masz deklarację dla elementu \"Promise\" lub uwzględnij wartość \"ES2015\" w opcji \"--lib\".", "An_async_iterator_must_have_a_next_method_2519": "Iterator asynchroniczny musi mieć metodę „next()”.", "An_element_access_expression_should_take_an_argument_1011": "Wyrażenie dostępu do elementu powinno przyjmować argument.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Deklaracji eksportu można używać tylko na najwyższym poziomie modułu.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Deklaracji eksportu można używać tylko na najwyższym poziomie przestrzeni nazw lub modułu.", "An_export_declaration_cannot_have_modifiers_1193": "Deklaracja eksportu nie może mieć modyfikatorów.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Deklaracja „export =” musi odwoływać się do rzeczywistej wartości, gdy właściwość „verbatimModuleSyntax” jest włączona, ale element „{0}” jest rozpoznawany jako deklaracja tylko typu.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Deklaracja „export =” musi odwoływać się do wartości, gdy opcja „verbatimModuleSyntax” jest włączona, ale element „{0}” odwołuje się tylko do typu.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Element „export default” musi odwoływać się do rzeczywistej wartości, gdy opcja „verbatimModuleSyntax” jest włączona, ale element „{0}” jest rozpoznawany jako deklaracja tylko typu.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Element „export default” musi odwoływać się do wartości, gdy opcja „verbatimModuleSyntax” jest włączona, ale element „{0}” odwołuje się tylko do typu.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Wyrażenie typu „void” nie może być testowane pod kątem prawdziwości.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Rozszerzona wartość znaku ucieczki Unicode musi należeć do zakresu od 0x0 do 0x10FFFF (włącznie).", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Identyfikatora lub słowa kluczowego nie można użyć bezpośrednio po literale liczbowym.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Implementacja nie może być zadeklarowana w otaczających kontekstach.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Alias importu nie może odwoływać się do deklaracji, która została wyeksportowana przy użyciu elementu „export type”.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Alias importu nie może odwoływać się do deklaracji, która została zaimportowana przy użyciu elementu „import type”.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Alias importu nie może zostać rozpoznany jako deklaracja typu lub deklaracja tylko typu, gdy jest włączona opcja „verbatimModuleSyntax”.", "An_import_alias_cannot_use_import_type_1392": "Alias importu nie może używać właściwości „import type”", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Deklaracji importu można używać tylko na najwyższym poziomie modułu.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Deklaracji importu można używać tylko na najwyższym poziomie przestrzeni nazw lub modułu.", "An_import_declaration_cannot_have_modifiers_1191": "Deklaracja importu nie może mieć modyfikatorów.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Ścieżka importu może tylko kończyć się rozszerzeniem „{0}”, gdy jest włączona opcja „allowImportingTsExtensions”.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Ścieżka importu nie może kończyć się rozszerzeniem „{0}”. Rozważ zaimportowanie „{1}”.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Sygnatura indeksu nie może mieć parametru rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Sygnatura indeksu nie może być zakończona przecinkiem.", "An_index_signature_must_have_a_type_annotation_1021": "Sygnatura indeksu musi mieć adnotację typu.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Po wyrażeniu tworzenia wystąpienia nie może następować dostęp do właściwości.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Interfejs może rozszerzać tylko identyfikator/nazwę kwalifikowaną z opcjonalnymi argumentami typu.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Interfejs może rozszerzać tylko typ obiektu lub część wspólną typów obiektów ze statycznie znanymi elementami członkowskimi.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Interfejs nie może rozszerzyć typu pierwotnego, takiego jak „{0}”. Może rozszerzać tylko inne nazwane typy obiektów.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Interfejs nie może rozszerzyć typu pierwotnego, takiego jak „{0}”; interfejs może rozszerzać tylko nazwane typy i klasy", "An_interface_property_cannot_have_an_initializer_1246": "Właściwość interfejsu nie może mieć inicjatora.", "An_iterator_must_have_a_next_method_2489": "Iterator musi zawierać metodę „next()”.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "W przypadku używania dyrektywy pragma @jsx z fragmentami JSX jest wymagana dyrektywa pragma @jsxFrag.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Literał obiektu nie może mieć wielu właściwości o tej samej nazwie.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Literał obiektu nie może mieć właściwości i metody dostępu o takiej samej nazwie.", "An_object_member_cannot_be_declared_optional_1162": "Składowa obiektu nie może być zadeklarowana jako opcjonalna.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Metoda „[Symbol.hasInstance]” obiektu musi zwracać wartość logiczną, aby mogła być używana po prawej stronie wyrażenia „instanceof”.", "An_optional_chain_cannot_contain_private_identifiers_18030": "Opcjonalny łańcuch nie może zawierać identyfikatorów prywatnych.", "An_optional_element_cannot_follow_a_rest_element_1266": "Element opcjonalny nie może następować po elemencie rest.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Zewnętrzna wartość parametru „this” jest zasłaniana przez ten kontener.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Sygnatura przeciążenia nie może być zadeklarowana jako generator.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Wyrażenie jednoargumentowe z operatorem „{0}” jest niedozwolone po lewej stronie wyrażenia potęgowania. Zastanów się nad zamknięciem wyrażenia w nawiasach.", "Annotate_everything_with_types_from_JSDoc_95043": "Adnotuj wszystko przy użyciu typów JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Adnotuj typy funkcji expando właściwości w przestrzeni nazw", "Annotate_with_type_from_JSDoc_95009": "Dodaj adnotację z typem z danych JSDoc", "Another_export_default_is_here_2753": "W tym miejscu jest kolejny element export default.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Każda właściwość standardu Unicode, która może być zgodna z więcej niż jednym znakiem, jest dostępna tylko wtedy, gdy ustawiono flagę Unicode Sets (v).", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Wszystko, co może być zgodne z więcej niż pojedynczym znakiem, jest nieprawidłowe wewnątrz klasy znaków negowanych.", "Are_you_missing_a_semicolon_2734": "Czy brakuje średnika?", "Argument_expression_expected_1135": "Oczekiwano wyrażenia argumentu.", "Argument_for_0_option_must_be_Colon_1_6046": "Argumentem opcji „{0}” musi być: {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Argumentu typu \"{0}\" nie można przypisać do parametru typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typów właściwości obiektu docelowego.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Nie podano argumentów dla parametru REST „{0}”.", "Array_element_destructuring_pattern_expected_1181": "Oczekiwano wzorca usuwającego strukturę elementu tablicy.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Tablic z elementami rozproszonymi nie można wywnioskować za pomocą wyrażenia --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Asercje wymagają, aby każda nazwa w celu wywołania była zadeklarowana z jawną adnotacją typu.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Asercje wymagają, aby cel wywołania był identyfikatorem lub nazwą kwalifikowaną.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Przypisywanie właściwości do funkcji bez deklarowania ich nie jest obsługiwane w przypadku opcji --isolatedDeclarations. Dodaj jawną deklarację właściwości przypisanych do tej funkcji.", "Asterisk_Slash_expected_1010": "Oczekiwano znaków „*/”.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Co najmniej jeden akcesor musi mieć jawną adnotację typu z parametrem --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Rozszerzenia zakresu globalnego mogą być zagnieżdżane bezpośrednio jedynie w modułach zewnętrznych lub deklaracjach modułów otoczenia.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Rozszerzenia zakresu globalnego muszą mieć modyfikator „declare”, chyba że znajdują się w już otaczającym kontekście.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Automatyczne odnajdowanie operacji wpisywania zostało włączone w projekcie „{0}”. Trwa uruchamianie dodatkowego przejścia rozwiązania dla modułu „{1}” przy użyciu lokalizacji pamięci podręcznej „{2}”.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Nie można użyć wyrażenia await wewnątrz bloku statycznego klasy.", "BUILD_OPTIONS_6919": "OPCJE KOMPILACJI", "Backwards_Compatibility_6253": "Zgodność z poprzednimi wersjami", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Wyrażenia klasy bazowej nie mogą odwoływać się do parametrów typu klasy.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Literały typu BigInt są niedostępne, gdy wersja docelowa jest wcześniejsza niż ES2020.", "Binary_digit_expected_1177": "Oczekiwano bitu.", "Binding_element_0_implicitly_has_an_1_type_7031": "Dla elementu powiązania „{0}” niejawnie określono typ „{1}”.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Elementów powiązania nie można eksportować bezpośrednio za pomocą wyrażenia --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Zmienna „{0}” o zakresie bloku została użyta przed jej deklaracją.", "Build_a_composite_project_in_the_working_directory_6925": "Skompiluj projekt złożony w katalogu roboczym.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Kompiluj wszystkie projekty, łącznie z tymi, które wydają się być aktualne.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Kompiluj co najmniej jeden projekt i jego zależności, jeśli są nieaktualne", "Build_option_0_requires_a_value_of_type_1_5073": "Opcja kompilacji „{0}” wymaga wartości typu {1}.", "Building_project_0_6358": "Trwa kompilowanie projektu „{0}”...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Wbudowane iteratory są tworzone przy użyciu typu „TReturn” o wartości „undefined” zamiast „any”.", "COMMAND_LINE_FLAGS_6921": "FLAGI WIERSZA POLECENIA", "COMMON_COMMANDS_6916": "TYPOWE POLECENIA", "COMMON_COMPILER_OPTIONS_6920": "TYPOWE OPCJE KOMPILATORA", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Zwracane typy sygnatur wywołania „{0}” i „{1}” są niezgodne.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Dla sygnatury wywołania bez adnotacji zwracanego typu niejawnie określono zwracany typ „any”.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Sygnatury wywołania bez argumentów mają niezgodne zwracane typy „{0}” i „{1}”.", + "Call_target_does_not_contain_any_signatures_2346": "Cel wywołania nie zawiera żadnych podpisów.", "Can_only_convert_logical_AND_access_chains_95142": "Można konwertować tylko łańcuchy logiczne ORAZ łańcuchy dostępu", "Can_only_convert_named_export_95164": "Można przekonwertować tylko nazwany eksport", "Can_only_convert_property_with_modifier_95137": "Właściwość można skonwertować tylko za pomocą modyfikatora", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Można konwertować tylko połączenia ciągów i literały ciągów", + "Can_only_convert_string_concatenation_95154": "Konwertować można tylko łączenie ciągów", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Nie można uzyskać dostępu do elementu „{0}.{1}”, ponieważ element „{0}” jest typem, ale nie przestrzenią nazw. Czy chcesz pobrać typ właściwości „{1}” w lokalizacji „{0}” za pomocą elementu „{0}[„{1}”]”?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Nie można uzyskać dostępu do „{0}” z innego pliku bez kwalifikacji, gdy opcja „{1}” jest włączona. Zamiast tego użyj „{2}”.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Nie można uzyskać dostępu do wyliczenia stałej otoczenia, gdy element „{0}” jest włączony.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Nie można uzyskać dostępu do otaczających wyliczeń const, gdy flaga „--isolatedModules” jest podana.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Nie można przypisać typu konstruktora „{0}” do typu konstruktora „{1}”.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Nie można przypisać abstrakcyjnego typu konstruktora do nieabstrakcyjnego typu konstruktora.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Nie można przypisać do elementu „{0}”, ponieważ jest to klasa.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Nie można znaleźć definicji biblioteki dla elementu „{0}”.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Nie można znaleźć definicji biblioteki dla elementu „{0}”. Czy chodziło Ci o element „{1}”?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Nie można znaleźć modułu „{0}”. Rozważ użycie opcji „--resolveJsonModule” do importowania modułu z rozszerzeniem „.json”.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Nie można odnaleźć modułu „{0}”. Czy chcesz ustawić opcję „moduleResolution” na wartość „nodenext”, czy dodać aliasy do opcji „paths”?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Nie można odnaleźć modułu „{0}”. Czy chcesz ustawić opcję „moduleResolution” na wartość „node”, czy dodać aliasy do opcji „paths”?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Nie można odnaleźć modułu „{0}” lub odpowiadających mu deklaracji typów.", "Cannot_find_name_0_2304": "Nie można odnaleźć nazwy „{0}”.", "Cannot_find_name_0_Did_you_mean_1_2552": "Nie można znaleźć nazwy „{0}”. Czy chodziło Ci o „{1}”?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Nie można odnaleźć nazwy \"{0}\". Czy chodziło Ci o napisanie tego w funkcji asynchronicznej?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Nie można odnaleźć nazwy \"{0}\". Czy chcesz zmienić bibliotekę docelową? Spróbuj zmienić opcję kompilatora \"lib\" na wersję \"{1}\" lub nowszą.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Nie można odnaleźć nazwy \"{0}\". Czy chcesz zmienić bibliotekę docelową? Spróbuj zmienić opcję kompilatora \"lib\", aby uwzględnić element \"dom\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Nie można odnaleźć nazwy „{0}”. Czy chcesz zainstalować definicje typów dla usługi Bun? Spróbuj użyć polecenia „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_2868": "Nie można odnaleźć nazwy „{0}”. Czy chcesz zainstalować definicje typów dla usługi Bun? Spróbuj użyć polecenia „npm i --save-dev @types/bun”, a następnie dodaj ciąg „bun” do pola typów w pliku tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Nie można odnaleźć nazwy „{0}”. Czy chcesz zainstalować definicje typów dla modułu uruchamiającego testy? Spróbuj użyć polecenia „npm i --save-dev @types/jest” lub „npm i --save-dev @types/mocha”.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Nie można odnaleźć nazwy \"{0}\". Czy chcesz zainstalować definicje typów dla modułu uruchamiającego testy? Spróbuj użyć polecenia \"npm i --save-dev @types/jest\" lub \"npm i --save-dev @types/mocha\", a następnie dodaj element \"jest\" lub \"mocha\" do pola types w pliku tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Nie można odnaleźć nazwy „{0}”. Czy chcesz zainstalować definicje typów dla biblioteki jQuery? Spróbuj użyć polecenia „npm i --save-dev @types/jquery”.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Nie można iterować wartości, ponieważ metoda „next” jej iteratora oczekuje typu „{1}”, ale destrukturyzacja tablicy będzie zawsze wysyłała „{0}”.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Nie można iterować wartości, ponieważ metoda „next” jej iteratora oczekuje typu „{1}”, ale rozkładanie tablicy będzie zawsze wysyłało „{0}”.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Nie można iterować wartości, ponieważ metoda „next” jej iteratora oczekuje typu „{1}”, ale pętla for-of będzie zawsze wysyłała „{0}”.", - "Cannot_move_statements_to_the_selected_file_95183": "Nie można przenieść instrukcji do wybranego pliku", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Nie można przenieść do pliku, wybrany plik jest nieprawidłowy", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Nie można poprzedzić projektu „{0}”, ponieważ nie ma on ustawionej właściwości „outFile”", "Cannot_read_file_0_5083": "Nie można odczytać pliku „{0}”.", "Cannot_read_file_0_Colon_1_5012": "Nie można odczytać pliku „{0}”: {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Nie można ponownie zadeklarować zmiennej „{0}” o zakresie bloku.", "Cannot_redeclare_exported_variable_0_2323": "Nie można zadeklarować ponownie wyeksportowanej zmiennej „{0}”.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Nie można ponownie zadeklarować identyfikatora „{0}” w klauzuli catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Nie można uruchomić wywołania funkcji w adnotacji typu.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Nie można zaktualizować danych wyjściowych projektu „{0}”, ponieważ wystąpił błąd podczas odczytu pliku „{1}”", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Nie można użyć kodu JSX, jeśli nie podano flagi „--jsx”.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Nie można użyć polecenia „export import” w przestrzeni nazw typu lub tylko typu, gdy opcja „{0}” jest włączona.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Nie można użyć polecenia „export import” w przestrzeni nazw typu lub tylko typu, jeśli podano flagę „--isolatedModules”.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Nie można używać importów, eksportów lub rozszerzeń modułów, jeśli flaga „--module” ma wartość „none”.", "Cannot_use_namespace_0_as_a_type_2709": "Nie można używać przestrzeni nazw „{0}” jako typu.", "Cannot_use_namespace_0_as_a_value_2708": "Nie można używać przestrzeni nazw „{0}” jako wartości.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Zmień atrybut „extends” na „implements”", "Change_spelling_to_0_90022": "Zmień pisownię na „{0}”", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Sprawdź, czy istnieją zadeklarowane właściwości klas, które nie zostały ustawione w konstruktorze.", - "Check_side_effect_imports_6806": "Sprawdź importy efektów ubocznych.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Sprawdź, czy argumenty dla metod „bind”, „call” i „apply” są zgodne z oryginalną funkcją.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Sprawdzanie, czy „{0}” to najdłuższy zgodny prefiks dla „{1}” — „{2}”.", "Circular_definition_of_import_alias_0_2303": "Definicja cykliczna aliasu importu „{0}”.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "Deklaracja klasy nie może implementować listy przeciążeń dla elementu \"{0}\".", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Deklaracje klas nie mogą mieć więcej niż jeden tag \"@augments\" lub \"@extends\".", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Dekoratorów klas nie można używać ze statycznym identyfikatorem prywatnym. Rozważ usunięcie eksperymentalnego dekoratora.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Pole klasy „{0}” zdefiniowane przez klasę nadrzędną nie jest dostępne w klasie podrzędnej za pośrednictwem super.", "Class_name_cannot_be_0_2414": "Klasa nie może mieć nazwy „{0}”.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Nazwą klasy nie może być słowo „Object”, gdy docelowym językiem jest ES5 z modułem {0}.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Strona statyczna klasy „{0}” niepoprawnie rozszerza stronę statyczną klasy bazowej „{1}”.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Opcje wiersza polecenia", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Skompiluj projekt z uwzględnieniem ścieżki jego pliku konfiguracji lub folderu z plikiem „tsconfig.json”.", "Compiler_Diagnostics_6251": "Diagnostyka kompilatora", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "Opcja kompilatora „{0}” nie może mieć pustego ciągu.", "Compiler_option_0_expects_an_argument_6044": "Opcja kompilatora „{0}” oczekuje argumentu.", "Compiler_option_0_may_not_be_used_with_build_5094": "Opcja kompilatora \"--{0}\" nie może być używana z parametrem \"--build\".", "Compiler_option_0_may_only_be_used_with_build_5093": "Opcję kompilatora \"--{0}\" można używać tylko z parametrem \"--build\".", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Projekty kompozytowe nie mogą wyłączyć emitowania deklaracji.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Projekty złożone nie mogą wyłączać kompilacji przyrostowej.", "Computed_from_the_list_of_input_files_6911": "Obliczono na podstawie listy plików wejściowych", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Obliczone właściwości muszą być literałami liczb lub ciągów, zmiennymi lub wyrażeniami kropkowanymi z wyrażeniem --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "Obliczone nazwy właściwości nie są dozwolone w wyliczeniach.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Nie można wywnioskować obliczonych nazw właściwości w literałach klas lub obiektów za pomocą wyrażenia --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Obliczone wartości nie są dozwolone w wyliczeniu ze składowymi o wartości ciągu.", "Concatenate_and_emit_output_to_single_file_6001": "Połącz i wyemituj dane wyjściowe do pojedynczego pliku.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Warunki, które należy ustawić oprócz ustawień domyślnych specyficznych dla programu rozpoznawania nazw podczas rozpoznawania importów.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Znaleziono definicje będące w konflikcie dla „{0}” w „{1}” i „{2}”. Rozważ zainstalowanie konkretnej wersji tej biblioteki, aby rozwiązać problem.", "Conflicts_are_in_this_file_6201": "Konflikty znajdują się w tym pliku.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Rozważ dodanie modyfikatora \"declare\" do tej klasy.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Zwracane typy „{0}” i „{1}” sygnatur konstrukcji są niezgodne.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Konwertuj element „{0}” na zamapowany typ obiektu", "Convert_all_const_to_let_95102": "Konwertuj wszystkie elementy „const” na „let”", "Convert_all_constructor_functions_to_classes_95045": "Przekonwertuj wszystkie funkcje konstruktora na klasy", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Konwertuj wszystkie importy nieużywane jako wartość na importy dotyczące tylko typu", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Konwertuj wszystkie nieprawidłowe znaki na kod jednostki HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Konwertuj wszystkie ponownie wyeksportowane typy na eksporty dotyczące tylko typu", "Convert_all_require_to_import_95048": "Konwertuj wszystkie wywołania „require” na wywołania „import”", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Konwertuj wszystko na literały liczbowe typu bigint", "Convert_all_to_default_imports_95035": "Przekonwertuj wszystko na domyślne importowanie", "Convert_all_type_literals_to_mapped_type_95021": "Konwertuj wszystkie literały typu na typ zamapowany", - "Convert_all_typedef_to_TypeScript_types_95177": "Konwertuj wszystkie elementy typedef na typy TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Konwertuj funkcję strzałki lub wyrażenie funkcji", "Convert_const_to_let_95093": "Konwertuj zmienne „const” na „let”", "Convert_default_export_to_named_export_95061": "Konwertuj eksport domyślny na nazwany eksport", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Konwertuj na opcjonalne wyrażenie łańcucha", "Convert_to_template_string_95096": "Konwertuj na ciąg szablonu", "Convert_to_type_only_export_1364": "Konwertuj na eksport dotyczący tylko typu", - "Convert_typedef_to_TypeScript_type_95176": "Konwertuj element typedef na typ TypeScript.", + "Convert_to_type_only_import_1373": "Konwertuj na import dotyczący tylko typu", "Corrupted_locale_file_0_6051": "Uszkodzony plik ustawień regionalnych {0}.", "Could_not_convert_to_anonymous_function_95153": "Nie można przekonwertować na funkcję anonimową", "Could_not_convert_to_arrow_function_95151": "Nie można przekonwertować na funkcję strzałki", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Nie można znaleźć nazwy „{0}”. Czy chodziło o „{1}”?", "Could_not_find_namespace_import_or_named_imports_95132": "Nie można było znaleźć importu przestrzeni nazw lub nazwanych importów", "Could_not_find_property_for_which_to_generate_accessor_95135": "Nie można było znaleźć właściwości, dla której ma zostać wygenerowana metoda dostępu", - "Could_not_find_variable_to_inline_95185": "Nie można odnaleźć zmiennej w tekście.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Nie można rozpoznać ścieżki „{0}” z rozszerzeniami: {1}.", "Could_not_write_file_0_Colon_1_5033": "Nie można zapisać pliku „{0}”: {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Twórz pliki mapy źródła dla emitowanych plików JavaScript.", "Create_sourcemaps_for_d_ts_files_6614": "Twórz mapy źródła dla plików d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Tworzy plik tsconfig.json z zalecanymi ustawieniami w katalogu roboczym.", "DIRECTORY_6038": "KATALOG", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Sekwencje ucieczki i odwołania wsteczne dziesiętne nie są dozwolone w klasie znaków.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Wartości dziesiętne z zerami wiodącymi są niedozwolone.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Deklaracja rozszerza deklarację w innym pliku. Nie można przeprowadzić serializacji.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Emisja deklaracji dla tego pliku wymaga zachowania tego importu dla rozszerzeń. Nie jest to obsługiwane w przypadku parametru --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Emitowanie deklaracji dla tego pliku wymaga użycia nazwy prywatnej „{0}”. Jawna adnotacja typu może odblokować emitowanie deklaracji.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Emitowanie deklaracji dla tego pliku wymaga użycia nazwy prywatnej „{0}” z modułu „{1}”. Jawna adnotacja typu może odblokować emitowanie deklaracji.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Emisja deklaracji dla tego parametru wymaga niejawnego dodania parametru undefined do jego typu. Nie jest to obsługiwane w przypadku parametru --isolatedDeclarations.", "Declaration_expected_1146": "Oczekiwano deklaracji.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Nazwa deklaracji powoduje konflikt z wbudowanym identyfikatorem globalnym „{0}”.", "Declaration_or_statement_expected_1128": "Oczekiwano deklaracji lub instrukcji.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Zadeklaruj właściwość statyczną „{0}”", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Zwracany typ funkcji dekoratora „{0}” nie jest możliwy do przypisania do typu „{1}”.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Zwracany typ funkcji dekoratora to „{0}”, natomiast powinien być to typ „void” lub „any”.", - "Decorator_used_before_export_here_1486": "Dekorator używany przed elementem „export” w tym miejscu.", "Decorators_are_not_valid_here_1206": "Elementy Decorator nie są tutaj prawidłowe.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Nie można stosować elementów Decorator do wielu metod dostępu pobierania/ustawiania o takiej samej nazwie.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Dekoratory nie mogą występować po instrukcji „export” lub „export default”, jeśli występują również przed instrukcją „export”.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Nie można zastosować dekoratorów w przypadku parametrów \"this\".", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Dekoratory muszą poprzedzać nazwę i wszystkie słowa kluczowe deklaracji właściwości.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Wpisz zmienne klauzuli catch jako „unknown” zamiast „any”.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Domyślny eksport modułu ma nazwę prywatną „{0}” lub używa tej nazwy.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Eksportów domyślnych nie można wywnioskować za pomocą wyrażenia --isolatedDeclarations.", "Default_library_1424": "Domyślna biblioteka", "Default_library_for_target_0_1425": "Domyślna biblioteka dla elementu docelowego „{0}”", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Definicje następujących identyfikatorów powodują konflikt z tymi w innym pliku: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Wyłącz wymazywanie deklaracji „const enum” w wygenerowanym kodzie.", "Disable_error_reporting_for_unreachable_code_6603": "Wyłącz raportowanie błędów dla nieosiągalnego kodu.", "Disable_error_reporting_for_unused_labels_6604": "Wyłącz raportowanie błędów dla nieużywanych etykiet.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Wyłącz sprawdzanie pełnego typu (będą zgłaszane tylko krytyczne analizy i błędy emisji).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Wyłącz generowanie niestandardowych funkcji pomocniczych, takich jak „__extends” w skompilowanych danych wyjściowych.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Wyłącz dołączanie plików bibliotek, w tym domyślnego pliku lib.d.ts.", "Disable_loading_referenced_projects_6235": "Wyłącz ładowanie przywoływanych projektów.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Nie zezwalaj elementom „import”, „require” i „” na zwiększanie liczby plików, które powinny zostać dodane do projektu przez język TypeScript.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Nie zezwalaj na przywoływanie tego samego pliku za pomocą nazw różniących się wielkością liter.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Nie dodawaj odwołań z trzema ukośnikami ani zaimportowanych modułów do listy skompilowanych plików.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Nie zezwalaj na konstrukcje środowiska uruchomieniowego, które nie są częścią języka ECMAScript.", "Do_not_emit_comments_to_output_6009": "Nie emituj komentarzy do danych wyjściowych.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Nie emituj deklaracji dla kodu z adnotacją „@internal”.", "Do_not_emit_outputs_6010": "Nie emituj danych wyjściowych.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Nie zgłaszaj błędów dla nieosiągalnego kodu.", "Do_not_report_errors_on_unused_labels_6074": "Nie zgłaszaj błędów dla nieużywanych etykiet.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Nie rozpoznawaj rzeczywistej ścieżki linków symbolicznych.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Nie przekształcaj ani nie usuwaj żadnych importów ani eksportów, które nie są oznaczone jako tylko typy, dzięki czemu są zapisywane w formacie pliku wyjściowego na podstawie ustawienia „module”.", "Do_not_truncate_error_messages_6165": "Nie obcinaj komunikatów o błędach.", "Duplicate_function_implementation_2393": "Zduplikowana implementacja funkcji.", "Duplicate_identifier_0_2300": "Zduplikowany identyfikator „{0}”.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Zduplikowana sygnatura indeksu dla typu „{0}”.", "Duplicate_label_0_1114": "Zduplikowana etykieta „{0}”.", "Duplicate_property_0_2718": "Zduplikowana właściwość „{0}”.", - "Duplicate_regular_expression_flag_1500": "Zduplikowana flaga wyrażenia regularnego.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Specyfikator dynamicznego importowania musi być typu „string”, ale określono typ „{0}”.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamiczne importy są obsługiwane tylko wtedy, gdy flaga „--module” jest ustawiona na wartość „es2020”, „es2022”, „esnext”, „commonjs”, „amd”, „system”, „umd”, „node16”, „node18” lub „nodenext”.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Importy dynamiczne mogą akceptować tylko specyfikator modułu i opcjonalny zestaw atrybutów jako argumenty", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Import dynamiczny obsługuje drugi argument tylko wtedy, gdy opcja „--module” jest ustawiona na „esnext”, „node16”, „node18”, „nodenext” lub „preserve”.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "Składnia ESM jest niedozwolona w module CommonJS, gdy element „module” jest ustawiony na wartość „preserve”.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "Składnia ESM jest niedozwolona w module CommonJS, gdy jest włączona opcja „verbatimModuleSyntax”.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Każda deklaracja znaku „{0}.{1}” różni się wartością, gdzie oczekiwano elementu „{2}”, ale podano „{3}”.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dynamiczne importy są obsługiwane tylko wtedy, gdy flaga „--module” jest ustawiona na „es2020”, „es2022”, „esnext”, „commonjs”, „amd”, „system”, „umd”, „node16” lub „nodenext”.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Importy dynamiczne akceptują jako argumenty tylko specyfikator modułu i asercję opcjonalną", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Importy dynamiczne obsługują tylko drugi argument, gdy opcja „--module” jest ustawiona na wartość „esnext”, „node16” lub „nodenext”.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Każdy element członkowski typu unii „{0}” ma sygnatury konstrukcji, ale żadne z tych sygnatur nie są ze sobą zgodne.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Każdy element członkowski typu unii „{0}” ma sygnatury, ale żadne z tych sygnatur nie są ze sobą zgodne.", "Editor_Support_6249": "Pomoc techniczna edytora", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Włącz raportowanie błędów w plikach JavaScript z zaznaczonym typem.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Włącz raportowanie błędów, gdy zmienne lokalne nie są odczytywane.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Włącz raportowanie błędów, gdy element „this” ma typ „any”.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Włącz eksperymentalną obsługę starszych dekoratorów eksperymentalnych.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Włącz importowanie plików z dowolnym rozszerzeniem, pod warunkiem, że istnieje plik deklaracji.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Włącz eksperymentalną obsługę dekoratorów w wersji TC39 stage 2 draft.", "Enable_importing_json_files_6689": "Włącz importowanie plików json.", - "Enable_lib_replacement_6808": "Włącz zastępowanie biblioteki.", "Enable_project_compilation_6302": "Włącz kompilację projektu", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Włącz ścisłe metody „bind”, „call” i „apply” dla funkcji.", "Enable_strict_checking_of_function_types_6186": "Włącz dokładne sprawdzanie typów funkcji.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Upewnij się, że wielkość liter jest poprawna w importach.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Upewnij się, że każdy plik może być bezpiecznie transponowany bez polegania na innych importach.", "Ensure_use_strict_is_always_emitted_6605": "Upewnij się, że element „use strict” jest zawsze emitowany.", - "Entering_conditional_exports_6413": "Wprowadzanie eksportów warunkowych.", "Entry_point_for_implicit_type_library_0_1420": "Punkt wejścia dla biblioteki niejawnych typów „{0}”", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Punkt wejścia dla biblioteki niejawnych typów „{0}” o identyfikatorze packageId „{1}”", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Punkt wejścia biblioteki typów „{0}” określony w opcjach compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Deklaracje wyliczeń można scalać tylko z przestrzeniami nazw lub innymi deklaracjami wyliczeń.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Wszystkie deklaracje wyliczeń muszą być elementami const lub żadna nie może być elementem const.", "Enum_member_expected_1132": "Oczekiwano składowych wyliczenia.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Składowa wyliczenia następująca po składowej liczbowej niebędącej literałem musi mieć inicjator, gdy jest włączona opcja „isolatedModules”.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Inicjatory składowych wyliczenia muszą być możliwe do obliczenia bez odwołań do symboli zewnętrznych z wyrażeniem --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "Składowa wyliczenia musi mieć inicjator.", "Enum_name_cannot_be_0_2431": "Wyliczenie nie może mieć nazwy „{0}”.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Typ wyliczenia „{0}” ma składowe z inicjatorami niebędącymi literałami.", "Errors_Files_6041": "Pliki z błędami", - "Escape_sequence_0_is_not_allowed_1488": "Sekwencja ucieczki „{0}” jest niedozwolona.", "Examples_Colon_0_6026": "Przykłady: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Nadmierna złożoność podczas porównywania typów „{0}” i „{1}”.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Nadmierna głębokość stosu podczas porównywania typów „{0}” i „{1}”.", - "Exiting_conditional_exports_6416": "Wyjście z eksportu warunkowego.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Oczekiwano argumentów typu {0}-{1}; podaj je z tagiem „@extends”.", "Expected_0_arguments_but_got_1_2554": "Oczekiwane argumenty: {0}, uzyskano: {1}.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Oczekiwano {0} argumentów, ale otrzymano {1}. Czy zapomniano dołączyć wartość „void” w argumencie typu obiektu „Promise”?", "Expected_0_type_arguments_but_got_1_2558": "Oczekiwane argumenty typu: {0}, uzyskano: {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Oczekiwano argumentów typu {0}; podaj je z tagiem „@extends”.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Oczekiwano 1 argumentu, ale otrzymano 0. Element „new Promise()” wymaga wskazówki JSDoc, aby utworzyć element „resolve”, który można wywołać bez argumentów.", - "Expected_a_Unicode_property_name_1523": "Oczekiwano nazwy właściwości standardu Unicode.", - "Expected_a_Unicode_property_name_or_value_1527": "Oczekiwano nazwy lub wartości właściwości standardu Unicode.", - "Expected_a_Unicode_property_value_1525": "Oczekiwano wartości właściwości standardu Unicode.", - "Expected_a_capturing_group_name_1514": "Oczekiwano nazwy grupy przechwytywania.", - "Expected_a_class_set_operand_1520": "Oczekiwano operandu zestawu klas.", "Expected_at_least_0_arguments_but_got_1_2555": "Oczekiwane argumenty: co najmniej {0}, uzyskano: {1}.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Oczekiwano odpowiadającego tagu zamykającego kodu JSX dla elementu „{0}”.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Oczekiwano odpowiedniego tagu zamykającego dla fragmentu kodu JSX.", "Expected_for_property_initializer_1442": "Oczekiwano znaku „=” dla inicjatora właściwości.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Oczekiwany typ pola „{0}” w pliku „package.json” to „{1}”, a uzyskano typ „{2}”.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Obsługa eksperymentalna dekoratorów to funkcja, która może ulec zmianie w nowszych wersjach. Ustaw opcję „experimentalDecorators” w pliku „tsconfig” lub „jsconfig”, aby usunąć to ostrzeżenie.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Jawnie określony rodzaj rozpoznawania modułów: „{0}”.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Nie można wykonać potęgowania wartości typu „bigint”, chyba że opcja „target” ma wartość „es2016” lub nowszą.", "Export_0_from_module_1_90059": "Eksportuj „{0}” z modułu „{1}”", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "Wyeksportowana zmienna „{0}” ma nazwę prywatną „{1}” lub używa tej nazwy.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Eksporty i przypisania eksportów nie są dozwolone w rozszerzeniach modułów.", "Expression_expected_1109": "Oczekiwano wyrażenia.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "Wyrażenie musi być ujęte w nawiasy, aby było używane jako dekorator.", "Expression_or_comma_expected_1137": "Oczekiwano wyrażenia lub przecinka.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Wyrażenie tworzy typ krotki, który jest zbyt duży, aby go reprezentować.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Wyrażenie tworzy typ unii, który jest zbyt złożony, aby go reprezentować.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Wynikiem rozpoznania wyrażenia jest element „_super” używany przez kompilator do przechwycenia odwołania do klasy bazowej.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Wynikiem rozpoznania wyrażenia jest deklaracja zmiennej „_newTarget” używana przez kompilator do przechwytywania odwołania do metawłaściwości „new.target”.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Wynikiem rozpoznania wyrażenia jest deklaracja zmiennej „_this” używana przez kompilator do przechwycenia odwołania do elementu „this”.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Nie można wywnioskować typu wyrażenia za pomocą wyrażenia --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Klauzula Extends nie może zawierać wyrażenia z parametrem --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Klauzula Extends dla wnioskowanego typu „{0}” ma nazwę prywatną „{1}” lub używa jej.", - "Extract_base_class_to_variable_90064": "Wyodrębnij klasę bazową do zmiennej", - "Extract_binding_expressions_to_variable_90066": "Wyodrębnianie wyrażeń powiązania do zmiennej", "Extract_constant_95006": "Wyodrębnij stałą", - "Extract_default_export_to_variable_90065": "Wyodrębnij domyślny eksport do zmiennej", "Extract_function_95005": "Wyodrębnij funkcję", "Extract_to_0_in_1_95004": "Wyodrębnij do {0} w {1}", "Extract_to_0_in_1_scope_95008": "Wyodrębnij do {0} w zakresie {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Wyodrębnianie do interfejsu", "Extract_to_type_alias_95078": "Wyodrębnianie do aliasu typu", "Extract_to_typedef_95079": "Wyodrębnianie do elementu typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Wyodrębnij do zmiennej i zamień na „{0} as typeof {0}”", "Extract_type_95077": "Typ wyodrębniania", "FILE_6035": "PLIK", "FILE_OR_DIRECTORY_6040": "PLIK LUB KATALOG", - "Failed_to_find_peerDependency_0_6283": "Nie można odnaleźć elementu peerDependency „{0}”.", - "Failed_to_resolve_under_condition_0_6415": "Nie można rozpoznać pod warunkiem „{0}”.", + "Failed_to_parse_file_0_Colon_1_5014": "Nie można przeanalizować pliku „{0}”: {1}.", "Fallthrough_case_in_switch_7029": "Przepuszczająca klauzula case w instrukcji switch.", "File_0_does_not_exist_6096": "Plik „{0}” nie istnieje.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Biorąc pod uwagę wcześniejsze wyszukiwania w pamięci podręcznej, plik „{0}” nie istnieje.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Plik „{0}” istnieje — użyj go jako wyniku rozpoznawania nazw.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Biorąc pod uwagę wcześniejsze wyszukiwania w pamięci podręcznej, plik „{0}” istnieje.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Plik „{0}” istnieje — użyj go jako wyniku rozpoznawania nazw.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Plik „{0}” ma nieobsługiwane rozszerzenie. Obsługiwane są tylko rozszerzenia {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Plik „{0}” ma nieobsługiwane rozszerzenie, dlatego zostanie pominięty.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "Plik „{0}” jest plikiem JavaScript. Czy chodziło Ci o włączenie opcji „allowJs”?", "File_0_is_not_a_module_2306": "Plik „{0}” nie jest modułem.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Plik „{0}” nie znajduje się na liście plików projektu „{1}”. Projekty muszą zawierać listę wszystkich plików lub używać wzorca „include”.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Plik „{0}” nie znajduje się w katalogu „rootDir” „{1}”. Katalog „rootDir” powinien zawierać wszystkie pliki źródłowe.", "File_0_not_found_6053": "Nie można odnaleźć pliku '{0}'.", "File_Management_6245": "Zarządzanie plikami", - "File_appears_to_be_binary_1490": "Plik jest prawdopodobnie binarny.", "File_change_detected_Starting_incremental_compilation_6032": "Wykryto zmianę pliku. Trwa rozpoczynanie kompilacji przyrostowej...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Plik jest modułem CommonJS, ponieważ element „{0}” nie ma pola „type”", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Plik jest modułem CommonJS, ponieważ element „{0}” ma pole „type”, którego wartość nie jest „module”", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Plik to dane wyjściowe ze źródła odwołania do projektu „{0}”", "File_is_source_from_referenced_project_specified_here_1416": "Plik to źródło z przywoływanego projektu określonego w tym miejscu.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Nazwa pliku „{0}” różni się od już dołączonej nazwy pliku „{1}” tylko wielkością liter.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Nazwa pliku „{0}” ma rozszerzenie „{1}” — zamiast tego wyszukaj „{2}”.", "File_name_0_has_a_1_extension_stripping_it_6132": "Nazwa pliku „{0}” ma rozszerzenie „{1}” — zostanie ono usunięte.", "File_redirects_to_file_0_1429": "Plik przekierowuje do pliku „{0}”", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Specyfikacja pliku nie może zawierać katalogu nadrzędnego („..”) wyświetlanego po symbolu wieloznacznym katalogu rekursywnego („**”): „{0}”.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Napraw wszystkie wyrażenia, w których prawdopodobnie brakuje operatora „await”", "Fix_all_implicit_this_errors_95107": "Usuń wszystkie niejawne błędy „this”", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Napraw wszystkie niepoprawne zwracane typy funkcji asynchronicznych", - "Fix_all_with_type_only_imports_95182": "Napraw wszystko za pomocą importów tylko typów", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Pętli \"For await\" nie można używać wewnątrz bloku statycznego klasy.", "Found_0_errors_6217": "Znaleziono błędy: {0}.", "Found_0_errors_Watching_for_file_changes_6194": "Znalezione błędy: {0}. Obserwowanie zmian plików.", "Found_0_errors_in_1_files_6261": "Znaleziono błędy {0} w plikach {1}.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Znaleziono błędy {0} w tym samym pliku, zaczynając od: {1}", "Found_1_error_6216": "Znaleziono 1 błąd.", "Found_1_error_Watching_for_file_changes_6193": "Znaleziono 1 błąd. Obserwowanie zmian plików.", - "Found_1_error_in_0_6259": "Znaleziono 1 błąd w {0}", + "Found_1_error_in_1_6259": "Znaleziono 1 błąd w {1}", "Found_package_json_at_0_6099": "Znaleziono plik „package.json” w lokalizacji „{0}”.", - "Found_peerDependency_0_with_1_version_6282": "Znaleziono element peerDependency „{0}” z wersją „{1}”.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES5”.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES5”. Definicje klas automatycznie używają trybu z ograniczeniami.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES5”. Moduły automatycznie używają trybu z ograniczeniami.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES3” lub „ES5”.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES3” lub „ES5”. Definicje klas automatycznie używają trybu z ograniczeniami.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Deklaracje funkcji nie są dozwolone wewnątrz bloków w trybie z ograniczeniami, jeśli elementem docelowym jest „ES3” lub „ES5”. Moduły automatycznie używają trybu z ograniczeniami.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Dla wyrażenia funkcji bez adnotacji zwracanego typu jest niejawnie określony zwracany typ „{0}”.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Brak implementacji funkcji lub nie występuje ona bezpośrednio po deklaracji.", "Function_implementation_name_must_be_0_2389": "Implementacja funkcji musi mieć nazwę „{0}”.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Dla funkcji niejawnie określono zwracany typ „any”, ponieważ nie zawiera ona adnotacji zwracanego typu i jest przywoływana bezpośrednio lub pośrednio w jednym z jej zwracanych wyrażeń.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "Funkcja nie zawiera końcowej instrukcji return, a zwracany typ nie obejmuje wartości „undefined”.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "Funkcja musi mieć jawną adnotację zwracanego typu z wyrażeniem --isolatedDeclarations.", "Function_not_implemented_95159": "Funkcja nie jest zaimplementowana.", "Function_overload_must_be_static_2387": "Przeciążenie funkcji musi być statyczne.", "Function_overload_must_not_be_static_2388": "Przeciążenie funkcji nie może być statyczne.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Generuje śledzenie zdarzeń i listę typów.", "Generates_corresponding_d_ts_file_6002": "Generuje odpowiadający plik „d.ts”.", "Generates_corresponding_map_file_6043": "Generuje odpowiadający plik „map”.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Generator niejawnie ma typ wstrzymania „{0}”. Rozważ podanie adnotacji zwracanego typu.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Dla generatora niejawnie określono zwracany typ „{0}”, ponieważ nie zwraca on żadnych wartości. Rozważ podanie adnotacji zwracanego typu.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Generatory nie są dozwolone w otaczającym kontekście.", "Generic_type_0_requires_1_type_argument_s_2314": "Typ ogólny „{0}” wymaga następującej liczby argumentów typu: {1}.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Typ ogólny „{0}” wymaga od {1} do {2} argumentów typu.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Oczekiwano identyfikatora.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Oczekiwano identyfikatora. Ciąg „__esModule” jest zastrzeżony jako eksportowany znacznik podczas transformowania modułów ECMAScript.", "Identifier_or_string_literal_expected_1478": "Oczekiwano identyfikatora lub literału ciągu.", - "Identifier_string_literal_or_number_literal_expected_1496": "Oczekiwano identyfikatora, literału ciągu lub literału liczbowego.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Jeśli pakiet \"{0}\" faktycznie udostępnia ten moduł, rozważ wysłanie żądania ściągnięcia w celu zmiany elementu \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Jeśli pakiet „{0}” rzeczywiście uwidacznia ten moduł, spróbuj dodać nowy plik deklaracji (.d.ts) zawierający „declare module”{1}';`", "Ignore_this_error_message_90019": "Ignoruj ten komunikat o błędzie", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implementuj interfejs „{0}”", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Klauzula implements wyeksportowanej klasy „{0}” ma nazwę prywatną „{1}” lub używa tej nazwy.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Niejawna konwersja typu „symbol” na „string” zakończy się niepowodzeniem w czasie wykonywania. Rozważ opakowywanie tego wyrażenia w elemencie „String(...)”.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "Import „{0}\" powoduje konflikt z wartością globalną używaną w tym pliku, dlatego musi być zadeklarowany z importem tylko typu, gdy jest włączona opcja „isolatedModules”.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "Import „{0}” powoduje konflikt z wartością lokalną, dlatego musi być zadeklarowany za pomocą importu tylko typu, gdy jest włączona opcja „isolatedModules”.", "Import_0_from_1_90013": "Importuj element „{0}” z lokalizacji „{1}”", "Import_assertion_values_must_be_string_literal_expressions_2837": "Wartości atrybutu importu muszą być wyrażeniami literału ciągu.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Asercje importu są niedozwolone w instrukcjach, które kompilują do wywołań „require” CommonJS.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Asercje importu są obsługiwane tylko wtedy, gdy opcja „--module” jest ustawiona na „esnext”, „node18” „nodenext” lub „preserve”.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Atrybuty importu są niedozwolone w instrukcjach, które transpilują do wywołań commonjs „require”.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Atrybuty importu są obsługiwane tylko wtedy, gdy opcja „--module” jest ustawiona na wartość „esnext” lub „nodenext”.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Asercji importu nie można używać z importami ani eksportami ograniczonymi do tylko danego typu.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Asercje importu zostały zastąpione atrybutami importu. Użyj instrukcji \"with\" zamiast \"assert\".", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Nie można użyć przypisania importu, gdy są używane moduły języka ECMAScript. Zamiast tego rozważ użycie elementu „import * as ns from \"mod\"”, „import {a} from \"mod\"” lub „import d from \"mod\"” albo innego formatu modułu.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Wartości atrybutów importu muszą być wyrażeniami literału ciągu.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Atrybuty importu są niedozwolone w instrukcjach kompilowanych do wywołań „require” CommonJS.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Atrybuty importu są obsługiwane tylko wtedy, gdy opcja „--module” jest ustawiona na „esnext”, „node18”, „nodenext” lub „preserve”.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Atrybutów importu nie można używać z importami ani eksportami tylko typów.", "Import_declaration_0_is_using_private_name_1_4000": "Deklaracja importu „{0}” używa nazwy prywatnej „{1}”.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Deklaracja importu powoduje konflikt z deklaracją lokalną „{0}”.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Deklaracje importu w przestrzeni nazw nie mogą odwoływać się do modułu.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Zaimportowano za pośrednictwem elementu {0} z pliku „{1}” o identyfikatorze packageId „{2}”", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Zaimportowano za pośrednictwem elementu {0} z pliku „{1}” o identyfikatorze packageId „{2}” w celu zaimportowania elementów „importHelpers” zgodnie z opcjami compilerOptions", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Zaimportowano za pośrednictwem elementu {0} z pliku „{1}” o identyfikatorze packageId „{2}” w celu zaimportowania funkcji fabryki „jsx” i „jsxs”", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "Importowanie pliku JSON do modułu ECMAScript wymaga atrybutu importu „type: „json””, gdy parametr „module” ma wartość „{0}”.", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importy nie są dozwolone w rozszerzeniach modułów. Rozważ przeniesienie ich do obejmującego modułu zewnętrznego.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "W deklaracjach wyliczenia otoczenia inicjator składowej musi być wyrażeniem stałym.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "W przypadku wyliczenia z wieloma deklaracjami tylko jedna deklaracja może pominąć inicjator dla pierwszego elementu wyliczenia.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Uwzględnij pliki mapy źródła w emitowanym kodzie JavaScript.", "Includes_imports_of_types_referenced_by_0_90054": "Obejmuje importy typów przywoływanych przez element \"{0}\"", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Zawarcie elementu --watch spowoduje, że -w rozpocznie obserwowanie bieżącego projektu w kierunku zmian w plikach. Po skonfigurowaniu ustawienia możesz określić tryb obserwacji za pomocą:", - "Incomplete_quantifier_Digit_expected_1505": "Niekompletny kwantyfikator. Oczekiwano cyfry.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "Brak sygnatury indeksu dla typu „{0}” w typie „{1}”.", "Index_signature_in_type_0_only_permits_reading_2542": "Sygnatura indeksu w typie „{0}” zezwala tylko na odczytywanie.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Wszystkie poszczególne deklaracje w scalonej deklaracji „{0}” muszą być wyeksportowane lub lokalne.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Wnioskuj typy parametrów na podstawie użycia", "Infer_this_type_of_0_from_usage_95080": "Wnioskuj typ „this” elementu „{0}” na podstawie użycia", "Infer_type_of_0_from_usage_95011": "Wnioskuj typ elementu „{0}” na podstawie użycia", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Wnioskowanie z wyrażeń klasy nie jest obsługiwane w przypadku wyrażenia --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Zainicjuj właściwość „{0}” w konstruktorze", "Initialize_static_property_0_90021": "Zainicjuj właściwość statyczną „{0}”", "Initializer_for_property_0_2811": "Inicjator właściwości \"{0}\"", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Inicjator zmiennej składowej wystąpienia „{0}” nie może przywoływać identyfikatora „{1}” zadeklarowanego w konstruktorze.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Inicjator nie określa żadnej wartości dla tego elementu powiązania, a element powiązania nie ma wartości domyślnej.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Inicjatory są niedozwolone w otaczających kontekstach.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicjuje projekt TypeScript i tworzy plik tsconfig.json.", - "Inline_variable_95184": "Zmienna wbudowana", "Insert_command_line_options_and_files_from_a_file_6030": "Wstaw opcje wiersza polecenia i pliki z pliku.", "Install_0_95014": "Zainstaluj składnik „{0}”", "Install_all_missing_types_packages_95033": "Zainstaluj wszystkie brakujące pakiety typów", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nieprawidłowa nazwa modułu w rozszerzeniu. Nie można znaleźć modułu „{0}”.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Nieprawidłowy opcjonalny łańcuch z nowego wyrażenia. Czy chodziło Ci o wywołanie „{0}()”?", "Invalid_reference_directive_syntax_1084": "Nieprawidłowa składnia dyrektywy „reference”.", - "Invalid_syntax_in_decorator_1498": "Nieprawidłowa składnia w dekoratorze.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Nieprawidłowe użycie elementu \"{0}\". Nie można go użyć wewnątrz bloku statycznego klasy.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Nieprawidłowe użycie elementu „{0}”. Moduły są określane automatycznie w trybie z ograniczeniami.", "Invalid_use_of_0_in_strict_mode_1100": "Nieprawidłowe użycie elementu „{0}” w trybie z ograniczeniami.", - "Invalid_value_for_ignoreDeprecations_5103": "Nieprawidłowa wartość parametru „--ignoreDeprecations”.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Nieprawidłowa wartość elementu „jsxFactory”. „{0}” to nie jest prawidłowy identyfikator ani kwalifikowana nazwa.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Nieprawidłowa wartość elementu „jsxFragmentFactory”. „{0}” nie jest prawidłowym identyfikatorem ani kwalifikowaną nazwą.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Nieprawidłowa wartość opcji „--reactNamespace”. Element „{0}” nie jest prawidłowym identyfikatorem.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Jego typ elementu „{0}” nie jest prawidłowym elementem JSX.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Jego typ wystąpienia „{0}” nie jest prawidłowym elementem JSX.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Jego zwracany typ „{0}” nie jest prawidłowym elementem JSX.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Jego typ „{0}” nie jest prawidłowym typem rozszerzenia JSX.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Element JSDoc „@{0} {1}” nie pasuje do klauzuli „extends {2}”.", "JSDoc_0_is_not_attached_to_a_class_8022": "Element JSDoc „@{0}” nie został dołączony do klasy.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "Element „...” JSDoc może występować tylko w ostatnim parametrze sygnatury.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "Tag JSDoc „@param” tag ma nazwę „{0}”, ale nie ma parametru o tej nazwie.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Tag JSDoc „@param” ma nazwę „{0}”, ale nie istnieje parametr o tej nazwie. Byłby on zgodny z elementem „arguments”, gdyby miał typ tablicy.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "Element JSDoc typedef można przekonwertować na typ TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "Tag „@typedef” JSDoc powinien mieć adnotację typu lub powinien po nim następować tag „@property” lub „@member”.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "Element JSDoc typedefs można przekonwertować na typy TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Typy JSDoc mogą być używane wyłącznie w komentarzach dokumentacji.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Typy JSDoc mogą być przenoszone do typów TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Atrybuty JSX muszą mieć przypisane wyrażenie, które nie jest puste.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Lista folderów, z których mają być uwzględnione definicje typów.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Lista folderów głównych, których połączona zawartość reprezentuje strukturę projektu w czasie wykonywania.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Ładowanie elementu „{0}” z katalogu głównego „{1}”, lokalizacja kandydata: „{2}”.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Ładowanie modułu „{0}” z folderu „node_modules”, docelowy typ pliku: „{1}”.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Ładowanie modułu jako pliku/folderu, lokalizacja modułu kandydata: „{0}”, docelowy typ pliku: „{1}”.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Ładowanie modułu „{0}” z folderu „node_modules”, docelowy typ pliku: „{1}”.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Ładowanie modułu jako pliku/folderu, lokalizacja modułu kandydata: „{0}”, docelowy typ pliku: „{1}”.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Ustawienia regionalne muszą mieć postać lub -. Na przykład „{0}” lub „{1}”.", "Log_paths_used_during_the_moduleResolution_process_6706": "Rejestruj ścieżki używane podczas procesu „moduleResolution”.", "Longest_matching_prefix_for_0_is_1_6108": "Najdłuższy zgodny prefiks dla „{0}” to „{1}”.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Określ, że element keyof ma zwracać tylko ciągi zamiast ciągów, liczb i symboli. Starsza opcja.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Ustaw wywołanie „super()” jako pierwszą instrukcję w konstruktorze", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Zmapowany typ obiektu niejawnie ma typ szablonu „any”.", - "Mark_array_literal_as_const_90070": "Oznaczanie literału tablicy jako stałego", "Matched_0_condition_1_6403": "Dopasowano „{0}” warunku „{1}”.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Dopasowywane domyślnie do wzorca dołączania „**/*”", "Matched_by_include_pattern_0_in_1_1407": "Zgodne z wzorcem dołączania „{0}” w elemencie „{1}”", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Metoda „{0}” nie może mieć implementacji, ponieważ jest oznaczona jako abstrakcyjna.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Metoda „{0}” wyeksportowanego interfejsu ma nazwę „{1}” z modułu prywatnego „{2}” lub używa tej nazwy.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Metoda „{0}” wyeksportowanego interfejsu ma nazwę prywatną „{1}” lub używa tej nazwy.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Metoda musi mieć jawną adnotację zwracanego typu z wyrażeniem --isolatedDeclarations.", "Method_not_implemented_95158": "Metoda nie jest zaimplementowana.", "Modifiers_cannot_appear_here_1184": "Modyfikatory nie mogą występować w tym miejscu.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Moduł „{0}” może być importowany domyślnie tylko przy użyciu flagi „{1}”", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "Moduł „{0}” nie ma wyeksportowanego elementu członkowskiego „{1}”. Czy zamiast tego miał zostać użyty element „import {1} from {0}”?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Moduł „{0}” został ukryty przez deklarację lokalną o takiej samej nazwie.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Moduł „{0}” używa elementu „export =” i nie może być używany z elementem „export *”.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Moduł „{0}” został rozpoznany jako otaczający moduł zadeklarowany w elemencie „{1}”, ponieważ nie zmodyfikowano tego pliku.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Moduł „{0}” został rozpoznany jako otaczający moduł zadeklarowany lokalnie w pliku „{1}”.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Moduł „{0}” został rozpoznany jako „{1}”, ale nie ustawiono parametru „--allowArbitraryExtensions”.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Moduł „{0}” został rozpoznany jako „{1}”, ale nie jest ustawiona opcja „--jsx”.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Moduł „{0}” został rozpoznany jako „{1}”, ale opcja „--resolveJsonModule” nie jest używana.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "W nazwach deklaracji modułu można używać tylko ciągi ujęte w cudzysłów \" lub „”.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Nie można rozpoznać modułów przy użyciu opcji „rootDirs”.", "Modules_6244": "Moduły", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Przenieś modyfikatory elementów krotki z etykietami do etykiet", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Przenieś wyrażenie w eksporcie domyślnym do zmiennej i dodaj do niej adnotację typu.", "Move_to_a_new_file_95049": "Przenieś do nowego pliku", - "Move_to_file_95178": "Przenieś do pliku", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Kolejne następujące po sobie separatory liczbowe nie są dozwolone.", "Multiple_constructor_implementations_are_not_allowed_2392": "Konstruktor nie może mieć wielu implementacji.", "NEWLINE_6061": "NOWY WIERSZ", "Name_is_not_valid_95136": "Nazwa nie jest prawidłowa", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Nazwane grupy przechwytywania są dostępne tylko w przypadku wartości docelowej „ES2018” lub nowszej.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Nazwane grupy przechwytywania o tej samej nazwie muszą się wzajemnie wykluczać.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Nazwane importy z pliku JSON do modułu ECMAScript są niedozwolone, gdy parametr „module” ma wartość „{0}”.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Nazwane właściwości „{0}” typów „{1}” i „{2}” nie są identyczne.", "Namespace_0_has_no_exported_member_1_2694": "Przestrzeń nazw „{0}” nie ma wyeksportowanej składowej „{1}”.", "Namespace_must_be_given_a_name_1437": "Przestrzeń nazw musi mieć nazwę.", "Namespace_name_cannot_be_0_2819": "Przestrzeń nazw nie może mieć nazwy „{0}”.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Przestrzenie nazw są niedozwolone w globalnych plikach skryptów, gdy włączona jest opcja „{0}”. Jeśli ten plik nie jest przeznaczony do bycia skryptem globalnym, ustaw parametr „moduleDetection” na wartość „force” lub dodaj pustą instrukcję „export {}”.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "Do parametrów „this” nie można stosować dekoratorów ani modyfikatorów.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Żaden z konstruktorów podstawowych nie ma określonej liczby argumentów typu.", "No_constituent_of_type_0_is_callable_2755": "Żadna składowa typu „{0}” nie jest wywoływalna.", "No_constituent_of_type_0_is_constructable_2759": "Żadnej składowej typu „{0}” nie można skonstruować.", @@ -1084,18 +970,13 @@ "No_type_could_be_extracted_from_this_type_node_95134": "Nie można było wyodrębnić żadnego typu z tego węzła typu", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Nie istnieje żadna wartość w zakresie dla właściwości skrótowej „{0}”. Zadeklaruj ją lub udostępnij inicjatora.", "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Klasa nieabstrakcyjna „{0}” nie implementuje odziedziczonej abstrakcyjnej składowej „{1}” z klasy „{2}”.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "W klasie nieabstrakcyjnej „{0}” brakuje implementacji dla następujących składowych elementu „{1}”: {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "W klasie nieabstrakcyjnej „{0}” brakuje implementacji dla następujących składowych elementu „{1}”: {2} i {3} więcej.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Wyrażenie klasy nieabstrakcyjnej nie implementuje odziedziczonej abstrakcyjnej składowej „{0}” z klasy „{1}”.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Brak implementacji nieabstrakcyjnych wyrażeń klasy dla następujących składowych elementu „{0}”: {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "W nieabstrakcyjnym wyrażeniu klasy brakuje implementacji dla następujących składowych elementu „{0}”: {1} i {2} więcej.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Asercji o wartości innej niż null można używać tylko w plikach TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Ścieżki inne niż względne nie są dozwolone, gdy nie jest ustawiona wartość „baseUrl”. Czy nie zostały pominięte początkowe znaki „./”?", "Non_simple_parameter_declared_here_1348": "W tym miejscu zadeklarowano parametr inny niż prosty.", "Not_all_code_paths_return_a_value_7030": "Nie wszystkie ścieżki w kodzie zwracają wartość.", "Not_all_constituents_of_type_0_are_callable_2756": "Nie wszystkie składowe typu „{0}” są wywoływalne.", "Not_all_constituents_of_type_0_are_constructable_2760": "Nie wszystkie składowe typu „{0}” można skonstruować.", - "Numbers_out_of_order_in_quantifier_1506": "Liczby poza kolejnością w kwantyfikatorze.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Literały liczbowe z wartościami bezwzględnymi równymi 2^53 lub większymi są zbyt duże, aby mogły być dokładnie reprezentowane jako liczby całkowite.", "Numeric_separators_are_not_allowed_here_6188": "Separatory liczbowe nie są dozwolone w tym miejscu.", "Object_is_of_type_unknown_2571": "Obiekt jest typu „nieznany”.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Dla literału obiektu można określić tylko znane właściwości, a właściwość „{0}” nie istnieje w typie „{1}”.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Literał obiektu może określać wyłącznie znane właściwości, ale element „{0}” nie istnieje w typie „{1}”. Czy chodziło Ci o „{2}”?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Dla właściwości „{0}” literału obiektu niejawnie określono typ „{1}”.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Obiektów zawierających właściwości skrótowe nie można wywnioskować za pomocą wyrażenia --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Obiektów zawierających przypisania rozproszone nie można wywnioskować za pomocą parametru --isolatedDeclarations.", "Octal_digit_expected_1178": "Oczekiwano cyfry ósemkowej.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Ósemkowe sekwencje ucieczki i odwołania wsteczne nie są dozwolone w klasie znaków. Jeśli było to zamierzone jako sekwencja ucieczki, użyj składni „{0}”.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Ósemkowe sekwencje ucieczki są niedozwolone. Użyj składni „{0}”.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Literały ósemkowe są niedozwolone. Użyj składni „{0}”.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Jedną z wartości „{0}.{1}” jest ciąg „{2}”, a druga przyjmuje się, że jest nieznaną wartością liczbową.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Typy literałów ósemkowych muszą korzystać ze składni ES2015. Użyj składni „{0}”.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Literały ósemkowe są niedozwolone w inicjatorze składowych wyliczeń. Użyj składni „{0}”.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Literały ósemkowe są niedozwolone w trybie z ograniczeniami.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Literały ósemkowe są niedostępne, jeśli językiem docelowym jest ECMAScript 5 lub nowszy. Użyj składni „{0}”.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "W instrukcji „for...in” jest dozwolona tylko pojedyncza deklaracja zmiennej.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "W instrukcji „for...of” jest dozwolona tylko pojedyncza deklaracja zmiennej.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Tylko funkcja typu void może być wywoływana za pomocą słowa kluczowego „new”.", "Only_ambient_modules_can_use_quoted_names_1035": "Tylko otaczające moduły mogą używać nazw w cudzysłowie.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Tylko moduły „amd” i „system” są obsługiwane razem z parametrem --{0}.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Tylko tablice const można wywnioskować za pomocą wyrażenia --isolatedDeclarations.", "Only_emit_d_ts_declaration_files_6014": "Emituj tylko pliki deklaracji „d.ts”.", + "Only_named_exports_may_use_export_type_1383": "Tylko nazwane eksporty mogą używać elementu „export type”.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Tylko wyliczenia numeryczne mogą mieć składowe obliczane, ale to wyrażenie ma typ „{0}”. Jeśli nie potrzebujesz sprawdzeń kompletności, rozważ użycie literału obiektu.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Generuj tylko pliki d.ts, a nie pliki JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Tylko publiczne i chronione metody klasy bazowej są dostępne przy użyciu słowa kluczowego „super”.", "Operator_0_cannot_be_applied_to_type_1_2736": "Nie można zastosować operatora „{0}” do typu „{1}”.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Nie można zastosować operatora „{0}” do typów „{1}” i „{2}”.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Operatory nie mogą być mieszane w klasie znaków. Zamiast tego zawijaj go w zagnieżdżonej klasie.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Rezygnacja ze sprawdzania odwołań do wielu projektów podczas edytowania projektu.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "Opcja „{0}={1}” została usunięta. Usuń go z konfiguracji.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "Opcja „{0}={1}” jest przestarzała i przestanie działać w języku TypeScript {2}. Określ parametr compilerOption „ignoreDeprecations”: „{3}”, aby wyciszyć ten błąd.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Opcję „{0}” można określić tylko w pliku „tsconfig.json” albo ustawić na wartość „false” lub „null” w wierszu polecenia.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Opcję „{0}” można określić tylko w pliku „tsconfig.json” albo ustawić na wartość „null” w wierszu polecenia.", - "Option_0_can_only_be_specified_on_command_line_6266": "Opcję „{0}” można określić tylko w wierszu polecenia.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Opcja „{0}” może być używana tylko w przypadku podania opcji „--inlineSourceMap” lub „--sourceMap”.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "Opcji „{0}” można używać tylko wtedy, gdy parametr „moduleResolution” ma wartość „node16”, „nodenext” lub „bundler”.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "Opcji „{0}” można używać tylko wtedy, gdy element „module” ma wartość „preserve” lub „es2015” lub nowszą.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Nie można określić opcji „{0}”, jeśli opcja „jsx” ma wartość „{1}”.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Nie można określić opcji „{0}”, jeśli opcja „target” ma wartość „ES3”.", "Option_0_cannot_be_specified_with_option_1_5053": "Opcji „{0}” nie można określić razem z opcją „{1}”.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Opcji „{0}” nie można określić bez opcji „{1}”.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Opcji „{0}” nie można określić bez opcji „{1}” lub opcji „{2}”.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "Opcja „{0}” została usunięta. Usuń go z konfiguracji.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "Opcja „{0}” jest przestarzała i przestanie działać w języku TypeScript {1}. Określ parametr compilerOption „ignoreDeprecations”: „{2}”, aby wyciszyć ten błąd.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "Opcja „{0}\" jest nadmiarowa i nie można jej określić za pomocą opcji „{1}”.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "Opcji „allowImportingTsExtensions” można używać tylko wtedy, gdy jest ustawiona opcja „noEmit” lub „emitDeclarationOnly”.", "Option_build_must_be_the_first_command_line_argument_6369": "Opcja „--build” musi być pierwszym argumentem wiersza polecenia.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Opcję \"--incremental\" można określić tylko za pomocą pliku tsconfig, emitując do pojedynczego pliku lub gdy określono opcję \"--tsBuildInfoFile\".", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Opcji „isolatedModules” można użyć tylko wtedy, gdy podano opcję „--module” lub opcja „target” określa cel „ES2015” lub wyższy.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "Opcja „moduleResolution” musi być ustawiona na wartość „{0}” (lub pozostać nieokreślona), gdy opcja „module” jest ustawiona na „{1}”.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "Opcja „module” musi mieć wartość „{0}”, gdy opcja „moduleResolution” ma wartość „{1}”.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "Opcja „preserveConstEnums” nie może być wyłączona, gdy opcja „{0}” jest włączona.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Nie można wyłączyć opcji „preserveConstEnums”, jeśli opcja „isolatedModules” jest włączona.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Opcji \"preserveValueImports\" można użyć tylko wtedy, gdy parametr\"module\" jest ustawiony na wartość \"es2015\" lub nowszą.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Nie można mieszać opcji „project” z plikami źródłowymi w wierszu polecenia.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Nie można określić opcji „--resolveJsonModule”, gdy parametr „moduleResolution” ma wartość „classic”.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Nie można określić opcji „--resolveJsonModule”, gdy parametr „module” ma wartość „none”, „system” lub „umd”.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "Nie można użyć opcji „verbatimModuleSyntax”, gdy parametr „module” ma wartość „UMD”, „AMD” lub „System”.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Opcję „--resolveJsonModule” można określić tylko wtedy, gdy generacja kodu modułu to „commonjs”, „amd”, „es2015” lub „esNext”.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Nie można określić opcji „--resolveJsonModule” bez strategii rozpoznawania modułów „node”.", "Options_0_and_1_cannot_be_combined_6370": "Nie można połączyć opcji „{0}” i „{1}”.", "Options_Colon_6027": "Opcje:", "Output_Formatting_6256": "Formatowanie danych wyjściowych", "Output_compiler_performance_information_after_building_6615": "Informacje o wydajności kompilatora danych wyjściowych po skompilowaniu.", "Output_directory_for_generated_declaration_files_6166": "Katalog wyjściowy dla wygenerowanych plików deklaracji.", + "Output_file_0_from_project_1_does_not_exist_6309": "Plik wyjściowy „{0}” z projektu „{1}” nie istnieje", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Plik wyjściowy „{0}” nie został utworzony na podstawie pliku źródłowego „{1}”.", "Output_from_referenced_project_0_included_because_1_specified_1411": "Dane wyjściowe z przywoływanego projektu „{0}” zostały dołączone, ponieważ określono element „{1}”", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Dane wyjściowe z przywoływanego projektu „{0}” zostały dołączone, ponieważ określono wartość „none” dla opcji „--module”", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Oczekiwano deklaracji parametru.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Parametr ma nazwę, ale nie ma typu. Czy chodziło Ci o „{0}: {1}”?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Modyfikatorów parametrów można używać tylko w plikach TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Parametr musi mieć jawną adnotację typu z wyrażeniem --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Typ parametru publicznej metody ustawiającej „{0}” z wyeksportowanej klasy ma nazwę „{1}” z modułu prywatnego „{2}” lub używa tej nazwy.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Typ parametru publicznej metody ustawiającej „{0}” z wyeksportowanej klasy ma nazwę prywatną „{1}” lub używa tej nazwy.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Typ parametru publicznej statycznej metody ustawiającej „{0}” z wyeksportowanej klasy ma nazwę „{1}” z modułu prywatnego „{2}” lub używa tej nazwy.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Wyświetlaj nazwy wyemitowanych plików po kompilacji.", "Print_this_message_6017": "Wypisz ten komunikat.", "Private_accessor_was_defined_without_a_getter_2806": "Prywatna metoda dostępu została zdefiniowana bez metody pobierającej.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Pole prywatne „{0}” musi być zadeklarowane w otaczającej klasie.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Identyfikatory prywatne są niedozwolone w deklaracjach zmiennych.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Identyfikatory prywatne są niedozwolone poza treściami klasy.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Identyfikatory prywatne są dozwolone tylko w treściach klasy i mogą być używane tylko jako część deklaracji członka klasy, dostępu do właściwości lub po lewej stronie wyrażenia „in”", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Identyfikatory prywatne są dostępne tylko wtedy, gdy jest używany język ECMAScript 2015 lub nowszy.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Identyfikatory prywatne nie mogą być używane jako parametry.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Nie można uzyskać dostępu do prywatnego lub chronionego elementu składowego „{0}” w parametrze typu.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Nie można skompilować projektu „{0}”, ponieważ jego zależność „{1}” zawiera błędy", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Nie można skompilować projektu „{0}”, ponieważ jego zależność „{1}” nie została skompilowania", "Project_0_is_being_forcibly_rebuilt_6388": "Trwa wymuszone odbudowanie projektu „{0}”", - "Project_0_is_out_of_date_because_1_6420": "Projekt „{0}” jest nieaktualny, ponieważ {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Projekt „{0}” jest nieaktualny, ponieważ plik buildinfo „{1}” wskazuje, że plik „{2}” był plikiem głównym kompilacji, ale już nie jest.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Projekt „{0}” jest nieaktualny, ponieważ plik buildinfo „{1}” wskazuje, że program musi zgłaszać błędy.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Projekt „{0}” jest nieaktualny, ponieważ plik buildinfo „{1}” wskazuje, że niektóre zmiany nie zostały wyemitowane", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Projekt „{0}” jest nieaktualny, ponieważ plik buildinfo „{1}” wskazuje, że nastąpiła zmiana w parametrze compilerOptions", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt „{0}” jest nieaktualny, ponieważ jego zależność „{1}” jest nieaktualna", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Projekt „{0}” jest nieaktualny, ponieważ dane wyjściowe „{1}” są starsze niż dane wejściowe „{2}”", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt „{0}” jest nieaktualny, ponieważ plik wyjściowy „{1}” nie istnieje", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Projekt „{0}” jest nieaktualny, ponieważ jego dane wyjściowe zostały wygenerowane w wersji „{1}”, która różni się od bieżącej wersji „{2}”", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Projekt „{0}” jest nieaktualny, ponieważ dane wyjściowe jego zależności „{1}” uległy zmianie", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Projekt „{0}” jest nieaktualny, ponieważ wystąpił błąd podczas odczytywania pliku „{1}”", "Project_0_is_up_to_date_6361": "Projekt „{0}” jest aktualny", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt „{0}” jest aktualny, ponieważ najnowsze dane wejściowe „{1}” są starsze niż dane wyjściowe „{2}”", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "Właściwość „{0}” jest używana przez jej zainicjowaniem.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Właściwość „{0}” nie istnieje w typie „{1}”. Czy chodziło Ci o „{2}”?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Właściwości „{0}” atrybutu rozkładu JSX nie można przypisać do właściwości docelowej.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "Właściwość „{0}” wyeksportowanego typu klasy anonimowej nie może być prywatna ani chroniona.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Właściwość „{0}” wyeksportowanego wyrażenia klasy nie może być prywatna ani chroniona.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Właściwość „{0}” wyeksportowanego interfejsu ma nazwę „{1}” z modułu prywatnego „{2}” lub używa tej nazwy.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Właściwość „{0}” wyeksportowanego interfejsu ma nazwę prywatną „{1}” lub używa tej nazwy.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Właściwości „{0}” typu „{1}” nie można przypisać do typu indeksu „{2}” „{3}”.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Właściwość „{0}” zastąpi właściwość bazową w elemencie „{1}”. Jeśli jest to zamierzone, dodaj inicjator. W przeciwnym razie dodaj modyfikator „declare” lub usuń nadmiarową deklarację.", "Property_assignment_expected_1136": "Oczekiwano przypisania właściwości.", "Property_destructuring_pattern_expected_1180": "Oczekiwano wzorca usuwającego strukturę właściwości.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "Właściwość musi mieć jawną adnotację typu z parametrem --isolatedDeclarations.", "Property_or_signature_expected_1131": "Oczekiwano właściwości lub sygnatury.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Wartością właściwości może być jedynie literał ciągu, literał numeryczny, wartości „true”, „false” i „null”, literał obiektu i literał tablicy.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Udostępnij pełne wsparcie dla elementów iterowanych w elementach „for-of”, rozpiętości i usuwania, gdy elementem docelowym jest „ES5”.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Udostępnij pełne wsparcie dla elementów iterowanych w elementach „for-of”, rozpiętości i usuwania, gdy elementem docelowym jest „ES5” lub „ES3”.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Metoda publiczna „{0}” wyeksportowanej klasy ma nazwę „{1}” z modułu zewnętrznego {2} lub używa tej nazwy, ale nie można jej nazwać.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Metoda publiczna „{0}” wyeksportowanej klasy ma nazwę „{1}” z modułu prywatnego „{2}” lub używa tej nazwy.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Metoda publiczna „{0}” wyeksportowanej klasy ma nazwę prywatną „{1}” lub używa tej nazwy.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Zgłoś błąd, gdy parametr funkcji nie zostanie odczytany.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Zgłaszaj błąd w przypadku wyrażeń i deklaracji z implikowanym typem „any”.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Zgłaszaj błąd w przypadku wyrażeń „this” z niejawnym typem „any”.", - "Range_out_of_order_in_character_class_1517": "Zakres poza kolejnością w klasie znaków.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Ponowne eksportowanie typu, gdy element „{0}” jest włączony, wymaga użycia elementu „export type”.", - "React_components_cannot_include_JSX_namespace_names_2639": "Składniki platformy React nie mogą zawierać nazw przestrzeni rozszerzenia JSX", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Ponowne eksportowanie typu, gdy podano flagę „--isolatedModules”, wymaga użycia aliasu „export type”.", "Redirect_output_structure_to_the_directory_6006": "Przekieruj strukturę wyjściową do katalogu.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Zmniejsz liczbę projektów ładowanych automatycznie przez język TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "Przywoływany projekt „{0}” nie może wyłączać emisji.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Przywoływany projekt „{0}” musi mieć ustawienie „composite” o wartości true.", "Referenced_via_0_from_file_1_1400": "Przywoływane za pośrednictwem elementu „{0}” z pliku „{1}”", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Względne ścieżki importu wymagają jawnych rozszerzeń plików w importach ECMAScript, gdy element „--moduleResolution” ma wartość „node16” lub „nodenext”. Zastanów się nad dodaniem rozszerzenia do ścieżki importu.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Względne ścieżki importu wymagają jawnych rozszerzeń plików w importach ECMAScript, gdy element „--moduleResolution” ma wartość „node16” lub „nodenext”. Czy chodziło Ci o „{0}”?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Względne ścieżki importu wymagają jawnych rozszerzeń plików w importach ecmaScript, gdy element „--moduleResolution” ma wartość „node16” lub „nodenext”. Zastanów się nad dodaniem rozszerzenia do ścieżki importu.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Względne ścieżki importu wymagają jawnych rozszerzeń plików w importach ecmaScript, gdy element „--moduleResolution” ma wartość „node16” lub „nodenext”. Czy chodziło Ci o „{0}”?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Usuń listę katalogów z procesu obserwacji.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Usuń listę plików z przetwarzania w trybie obserwacji.", "Remove_all_unnecessary_override_modifiers_95163": "Usuń wszystkie niepotrzebne modyfikatory „overrides”", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Zgłaszaj błędy w plikach js.", "Report_errors_on_unused_locals_6134": "Raportuj błędy dla nieużywanych elementów lokalnych.", "Report_errors_on_unused_parameters_6135": "Raportuj błędy dla nieużywanych parametrów.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Wymagaj wystarczającej adnotacji w eksportach, aby inne narzędzia mogły w prosty sposób generować pliki deklaracji.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Wymagaj, aby niezadeklarowane właściwości z sygnatur indeksów korzystały z dostępów do elementów.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Wymagane parametry typu mogą nie być zgodne z opcjonalnymi parametrami typu.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Znaleziono rozwiązanie dla modułu „{0}” w pamięci podręcznej z lokalizacji „{1}”.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Znaleziono rozwiązanie dla dyrektywy odwołania do typu „{0}” w pamięci podręcznej z lokalizacji „{1}”.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Rozpoznawanie nazwy innej niż względna nie powiodło się; próba wyłączenia nowoczesnych funkcji rozpoznawania węzłów w celu sprawdzenia, czy biblioteka npm wymaga aktualizacji konfiguracji.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Rozpoznawanie nazwy innej niż względna nie powiodło się; próba użycia wyrażenia „--moduleResolution”, aby sprawdzić, czy projekt może wymagać aktualizacji konfiguracji.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Rozwiązuj elementy „keyof” tylko do nazw właściwości mających jako wartość ciągi (nie liczby czy symbole).", - "Resolved_under_condition_0_6414": "Rozwiązano pod warunkiem „{0}”.", "Resolving_in_0_mode_with_conditions_1_6402": "Rozpoznawanie w trybie {0} z warunkami {1}.", "Resolving_module_0_from_1_6086": "======== Rozpoznawanie modułu „{0}” na podstawie „{1}”. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Rozpoznawanie nazwy modułu „{0}” względem podstawowego adresu URL „{1}” — „{2}”.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Rozpoznawanie dyrektywy odwołania do typu „{0}”, plik zawierający: „{1}”, katalog główny nie został ustawiony. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Rozpoznawanie dyrektywy odwołania do typu „{0}”, plik zawierający nie został ustawiony, katalog główny: „{1}”. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Rozpoznawanie dyrektywy odwołania do typu „{0}”, plik zawierający nie został ustawiony, katalog główny nie został ustawiony. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Rozpoznawanie dyrektywy odwołania do typu dla programu, który określa niestandardowe typeRoots, pomijanie wyszukiwania w folderze „node_modules”.", "Resolving_with_primary_search_path_0_6121": "Rozpoznawanie przy użyciu ścieżki wyszukiwania podstawowego „{0}”.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Dla parametru rest „{0}” niejawnie określono typ „any[]”.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Parametr rest „{0}” niejawnie ma typ „any[]”, ale lepszy typ można wywnioskować na podstawie użycia.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Ponowne użycie rozpoznawania dyrektywy odwołania typu „{0}” z „{1}” starego programu pomyślnie rozpoznano jako „{2}” o identyfikatorze pakietu „{3}”.", "Rewrite_all_as_indexed_access_types_95034": "Zmień wszystko na indeksowane typy dostępu", "Rewrite_as_the_indexed_access_type_0_90026": "Napisz ponownie jako indeksowany typ dostępu „{0}”", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Ponownie zapisz rozszerzenia plików „.ts”, „.tsx”, „.mts” i „.cts” we względnych ścieżkach importu do ich odpowiedników języka JavaScript w plikach wyjściowych.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Prawy operand elementu ?? jest nieosiągalny, ponieważ lewy operand nigdy nie dopuszcza wartości null.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Nie można określić katalogu głównego. Pomijanie ścieżek wyszukiwania podstawowego.", "Root_file_specified_for_compilation_1427": "Plik główny określony na potrzeby kompilacji", "STRATEGY_6039": "STRATEGIA", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Zapisuj pliki tsbuildinfo, aby umożliwić przyrostową kompilację projektów.", "Saw_non_matching_condition_0_6405": "Wyświetlono niezgodny warunek „{0}”.", "Scoped_package_detected_looking_in_0_6182": "Wykryto pakiet w zakresie, wyszukiwanie w „{0}”", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Przeszukiwanie wszystkich katalogów nadrzędnych node_modules w poszukiwaniu rozszerzeń rezerwowych: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Wyszukiwanie preferowanych rozszerzeń we wszystkich katalogach nadrzędnych node_modules: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "Wybór nie jest prawidłową instrukcją ani instrukcjami", "Selection_is_not_a_valid_type_node_95133": "Wybór nie jest prawidłowym węzłem typu", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Określ wersję języka JavaScript dla emitowanego kodu JavaScript i dołącz zgodne deklaracje bibliotek.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Pokaż pełne informacje diagnostyczne.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Pokaż, co zostanie skompilowane (lub usunięte, jeśli określono opcję „--clean”)", "Signature_0_must_be_a_type_predicate_1224": "Sygnatura „{0}” musi być predykatem typów.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Deklaracji podpisu można używać tylko w plikach TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Pomiń kompilowanie projektów podrzędnych w przypadku błędu w projekcie nadrzędnym.", "Skip_type_checking_all_d_ts_files_6693": "Pomiń sprawdzanie typów dla wszystkich plików d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Pomiń sprawdzanie typów w plikach d.ts dołączanych w kodzie TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Pomiń sprawdzanie typu plików deklaracji.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Pomijanie modułu „{0}”, który wygląda jak bezwzględny identyfikator URI, docelowe typy plików: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Pomijanie kompilacji projektu „{0}”, ponieważ jego zależność „{1}” zawiera błędy", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Pomijanie kompilacji projektu „{0}”, ponieważ jego zależność „{1}” nie została skompilowana", "Source_from_referenced_project_0_included_because_1_specified_1414": "Źródło z przywoływanego projektu „{0}” zostało dołączone, ponieważ określono element „{1}”", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Źródło z przywoływanego projektu „{0}” zostało dołączone, ponieważ określono wartość „none” dla opcji „--module”", "Source_has_0_element_s_but_target_allows_only_1_2619": "Liczba elementów w źródle to {0}, ale element docelowy zezwala tylko na {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Określ sposób działania trybu zegarka TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Określ pliki biblioteki do uwzględnienia w kompilacji.", "Specify_module_code_generation_6016": "Określ generowanie kodu modułu.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Określ strategię rozpoznawania modułów: „node” (Node.js) lub „classic” (TypeScript w wersji wcześniejszej niż 1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Określ specyfikator modułów używany do importowania funkcji fabryki JSX w przypadku używania elementów „jsx: react-jsx*”.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Określ wiele folderów działających jak element „./node_modules/@types”.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Określ co najmniej jedną ścieżkę lub odwołanie do modułu platformy Node dotyczące podstawowych plików konfiguracji, z których są dziedziczone ustawienia.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Statyczne składowe nie mogą przywoływać parametrów typu klasy.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Właściwość statyczna „{0}” jest w konflikcie z właściwością wbudowaną „Function.{0}” funkcji konstruktora „{1}”.", "String_literal_expected_1141": "Oczekiwano literału ciągu.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Nazwy importu i eksportu literału ciągu nie są obsługiwane, gdy flaga „--module” ma wartość „es2015” lub „es2020”.", "String_literal_with_double_quotes_expected_1327": "Oczekiwano literału ciągu z podwójnymi cudzysłowami.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Stosuj styl dla błędów i komunikatów za pomocą koloru i kontekstu. (eksperymentalne).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Flagi wzorca podrzędnego muszą być obecne, gdy istnieje półpauza.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Kolejne deklaracje właściwości muszą być tego samego typu. Właściwość „{0}” musi być typu „{1}”, ale w tym miejscu jest typu „{2}”.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Kolejne deklaracje zmiennej muszą być tego samego typu. Zmienna „{0}” musi być typu „{1}”, ale w tym miejscu jest typu „{2}”.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Podstawienie „{0}” dla wzorca „{1}” ma nieprawidłowy typ. Oczekiwano typu „string”, a uzyskano typ „{2}”.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Oznakowane wyrażenia szablonu nie są dozwolone w opcjonalnym łańcuchu.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Liczba elementów dozwolonych przez element docelowy to {0}, ale źródło może mieć ich więcej.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Liczba elementów wymaganych przez element docelowy to {0}, ale źródło może mieć ich mniej.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "Podpis docelowy zawiera zbyt mało argumentów. Oczekiwano {0} lub więcej, ale otrzymano {1}.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Modyfikatora „{0}” można używać tylko w plikach TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Nie można zastosować operatora „{0}” do typu „symbol”.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Operator „{0}” nie jest dozwolony w przypadku typów logicznych. Zamiast tego rozważ użycie operatora „{1}”.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Właściwość „{0}” iteratora asynchronicznego musi być metodą.", "The_0_property_of_an_iterator_must_be_a_method_2767": "Właściwość „{0}” iteratora musi być metodą.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Typ „Object” można przypisać do niewielu innych typów. Czy zamiast tego typu miał zostać użyty typ „any”?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Nie można jednocześnie ustawić flagi Unicode (u) i flagi Unicode Sets (v).", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "Obiekt „arguments” nie może być przywoływany w funkcji strzałkowej w języku ES5. Rozważ użycie standardowego wyrażenia funkcji.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "Obiekt „arguments” nie może być przywoływany w asynchronicznej funkcji lub metodzie w języku ES5. Rozważ użycie standardowej funkcji lub metody.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Obiekt „arguments” nie może być przywoływany w funkcji strzałkowej w językach ES3 i ES5. Rozważ użycie standardowego wyrażenia funkcji.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "Obiekt „arguments” nie może być przywoływany w asynchronicznej funkcji lub metodzie w języku ES3 i ES5. Rozważ użycie standardowej funkcji lub metody.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Treść instrukcji „if” nie może być pustą instrukcją.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Wywołanie powiodłoby się dla tej implementacji, ale sygnatury implementacji przeciążeń nie są widoczne na zewnątrz.", "The_character_set_of_the_input_files_6163": "Zestaw znaków plików wejściowych.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Dla typu globalnego „JSX.{0}” nie można określić więcej niż jednej właściwości.", "The_implementation_signature_is_declared_here_2750": "Sygnatura implementacji jest zadeklarowana tutaj.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Metawłaściwość „import.meta” jest niedozwolona w plikach, które będą kompilowane w danych wyjściowych CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Meta-właściwość „import.meta” jest dozwolona tylko wtedy, gdy opcja „--module” ma wartość „es2020”, „es2022”, „esnext”, „system”, „node16”, „node18” lub „nodenext”.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Meta-właściwość „import.meta” jest dozwolona tylko wtedy, gdy opcja „--module” ma wartość „es2020”, „es2022”, „esnext”, „system”, „node16” lub „nodenext”.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Wywnioskowany typ „{0}” nie może być nazwany bez odwołania do elementu „{1}”. Prawdopodobnie nie jest to przenośne. Konieczna jest adnotacja typu.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Wywnioskowany typ elementu „{0}” odwołuje się do typu ze strukturą cykliczną, którego nie można serializować w prosty sposób. Wymagana jest adnotacja typu.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Wnioskowany typ „{0}” przywołuje niedostępny typ „{1}”. Adnotacja typu jest konieczna.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Wywnioskowany typ tego węzła przekracza maksymalną długość, którą kompilator może serializować. Wymagana jest jawna adnotacja typu.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "Inicjator deklaracji „using” musi być obiektem z metodą „[Symbol.dispose]()” albo mieć wartość „null” lub „undefined”.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "Inicjator deklaracji „await using” musi być obiektem z metodą „[Symbol.asyncDispose]()” lub „[Symbol.dispose]5D;()” albo mieć wartość „null” lub „undefined”.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Przecięcie „{0}” zostało zredukowane do wartości „never”, ponieważ właściwość „{1}” istnieje w wielu elementach składowych i w części z nich jest prywatna.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Przecięcie „{0}” zostało zredukowane do wartości „never”, ponieważ właściwość „{1}” zawiera typy powodujące konflikt w niektórych elementach składowych.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Słowa kluczowego „intrinsic” można używać tylko do deklarowania typów wewnętrznych udostępnianych przez kompilator.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "Ostatnie przeciążenie dało następujący błąd.", "The_last_overload_is_declared_here_2771": "Ostatnie przeciążenie jest zadeklarowane tutaj.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Lewa strona instrukcji „for...in” nie może być wzorcem usuwającym strukturę.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "Lewa strona instrukcji „for...in” nie może być deklaracją „using”.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "Lewa strona instrukcji „for...in” nie może być deklaracją „await using”.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Lewa strona instrukcji „for...in” nie może używać adnotacji typu.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Lewa strona instrukcji „for...in” nie może być opcjonalnym dostępem do właściwości.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "Lewa strona instrukcji „for...in” musi być zmienną lub dostępem do właściwości.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Lewa strona operacji arytmetycznej musi być typu „any”, „number”, „bigint” lub typu wyliczeniowego.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Lewa strona wyrażenia przypisania nie może być opcjonalnym dostępem do właściwości.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Lewa strona wyrażenia przypisania musi być zmienną lub dostępem do właściwości.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "Lewa strona wyrażenia „instanceof” musi być przypisana do pierwszego argumentu po prawej stronie metody „[Symbol.hasInstance]”.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Lewa strona wyrażenia „instanceof” musi być typu „any”, typu obiektu lub parametrem typu.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Ustawienia regionalne używane przy wyświetlaniu komunikatów użytkownikowi (np. „pl-pl”)", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Maksymalna głębokość zależności na potrzeby wyszukiwania w elemencie node_modules i ładownia plików JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Katalog główny projektu jest niejednoznaczny, a jest wymagany do rozpoznania wpisu mapy eksportu „{0}” w pliku „{1}”. Podaj opcję kompilatora „rootDir”, aby usunąć niejednoznaczności.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Katalog główny projektu jest niejednoznaczny, a jest wymagany do rozpoznania wpisu mapy importu „{0}” w pliku „{1}”. Podaj opcję kompilatora „rootDir”, aby usunąć niejednoznaczności.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Nie można uzyskać dostępu do właściwości „{0}” w typie „{1}” w tej klasie, ponieważ jest ona zasłaniana przez inny identyfikator prywatny o takiej samej pisowni.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Zwracany typ metody dostępu „get” musi być możliwy do przypisania do typu metody dostępu „set”", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Zwracany typ funkcji dekoratora parametrów musi mieć postać „void” lub „any”.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Zwracany typ funkcji dekoratora właściwości musi mieć postać „void” lub „any”.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Zwracany typ funkcji asynchronicznej musi być prawidłową obietnicą lub nie może zawierać wywoływalnej składowej „then”.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Zwracany typ metody lub funkcji asynchronicznej musi być globalnym typem Promise.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Zwracany typ funkcji lub metody asynchronicznej musi być globalnym typem Promise. Czy chodziło Ci o typ „Promise<{0}>”?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Prawa strona instrukcji „for...in” musi zawierać typ „any”, typ obiektu lub parametr typu, a tutaj ma typ „{0}”.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Prawa strona operacji arytmetycznej musi być typu „any”, „number”, „bigint” lub typu wyliczeniowego.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "Prawa strona wyrażenia „instanceof” musi być typem „any”, klasą, funkcją lub innym typem, który można przypisać do typu interfejsu „Function”, albo typem obiektu z metodą „Symbol.hasInstance”.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "Prawa strona wyrażenia „instanceof” nie może być wyrażeniem tworzenia wystąpienia.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Prawa strona wyrażenia „instanceof” musi być typu „any” lub typu, który można przypisać do typu interfejsu „Function”.", "The_root_value_of_a_0_file_must_be_an_object_5092": "Wartość katalogu głównego pliku „{0}” musi być obiektem.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Środowisko uruchomieniowe wywoła dekoratora z argumentami {1}, ale dekorator oczekuje {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Środowisko uruchomieniowe wywoła dekoratora z argumentami {1}, ale dekorator oczekuje co najmniej {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "Deklaracja przesłaniania „{0}” jest zdefiniowana tutaj", "The_signature_0_of_1_is_deprecated_6387": "Sygnatura „{0}” elementu „{1}” jest przestarzała.", "The_specified_path_does_not_exist_Colon_0_5058": "Wybrana ścieżka nie istnieje: „{0}”.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Modyfikatora „type” nie można użyć w nazwanym eksporcie, gdy w instrukcji eksportowania jest używany element „export type”.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Modyfikatora „type” nie można użyć w nazwanym imporcie, gdy w instrukcji importowania jest używany element „import type”.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Typ deklaracji funkcji musi być zgodny z sygnaturą funkcji.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Nie można nazwać typu tego wyrażenia bez asercji „resolution-mode”, która jest niestabilną funkcją. Aby wyciszyć ten błąd, użyj nocnego języka TypeScript. Spróbuj zaktualizować przy użyciu polecenia „npm install -D typescript@next”.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Typ tego węzła nie może być serializowany, ponieważ jego właściwość „{0}” nie może być serializowana.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Typ zwracany przez metodę „{0}()” iteratora asynchronicznego musi być obietnicą dla typu z właściwością „value”.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Typ zwracany przez metodę „{0}()” iteratora musi mieć właściwość „value”.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Deklaracja zmiennej instrukcji „for...in” nie może mieć inicjatora.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Deklaracja zmiennej instrukcji „for...of” nie może mieć inicjatora.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Instrukcja „with” nie jest obsługiwana. Wszystkie symbole w bloku „with” będą mieć typ „any”.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Istnieją typy w „{0}”, ale nie można rozpoznać tego wyniku w bieżącym ustawieniu „moduleResolution”. Rozważ zaktualizowanie do wartości „node16”, „nodenext” lub „bundler”.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Istnieją typy w „{0}”, ale nie można rozpoznać tego wyniku podczas uwzględniania pliku package.json „exports”. Biblioteka „{1}” może wymagać zaktualizowania pliku package.json lub wpisywania tekstu.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "W tym wyrażeniu regularnym nie ma żadnej grupy przechwytywania o nazwie „{0}”.", - "There_is_nothing_available_for_repetition_1507": "Brak dostępnych elementów do powtórzenia.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Ten tag rozszerzenia JSX wymaga, aby element „{0}” był w zakresie, ale nie można go znaleźć.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Ten tag rozszerzenia JSX wymaga, aby ścieżka modułu „{0}” istniała, ale nie można jej znaleźć. Upewnij się, że masz zainstalowane typy dla odpowiedniego pakietu.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Element prop „{0}” tego tagu JSX oczekuje pojedynczego elementu podrzędnego typu „{1}”, ale podano wiele elementów podrzędnych.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Element prop „{0}” tego tagu JSX oczekuje typu „{1}”, który wymaga wielu elementów podrzędnych, ale podano tylko jeden element podrzędny.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "To odwołanie wsteczne odwołuje się do grupy, która nie istnieje. W tym wyrażeniu regularnym nie ma żadnych grup przechwytywania.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "To odwołanie wsteczne odwołuje się do grupy, która nie istnieje. W tym wyrażeniu regularnym jest tylko następująca liczba grup przechwytywania: {0}.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "To wyrażenie binarne nigdy nie dopuszcza wartości null. Czy brakuje nawiasów?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Tego znaku nie można poprzedzić znakiem ucieczki w wyrażeniu regularnym.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "To porównanie wydaje się niezamierzone, ponieważ typy „{0}” i „{1}” nie nakładają się na siebie.", "This_condition_will_always_return_0_2845": "Ten warunek będzie zawsze zwracać wartość „{0}”.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Ten warunek zawsze będzie zwracać wartość „{0}”, ponieważ język JavaScript porównuje obiekty według odwołania, a nie wartości.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Ten warunek będzie zawsze zwracać wartość true, ponieważ wartość '{0}' jest zawsze prawdziwa.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Ten warunek będzie zawsze zwracał wartość true, ponieważ funkcja jest zawsze zdefiniowana. Czy chcesz wywołać ją zamiast tego?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Ta funkcja konstruktora może zostać przekonwertowana na deklarację klasy.", - "This_expression_is_always_nullish_2871": "To wyrażenie ma zawsze wartość null.", "This_expression_is_not_callable_2349": "To wyrażenie nie jest wywoływalne.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Tego wyrażenia nie można wywoływać, ponieważ jest to metoda dostępu „get”. Czy chodziło Ci o użycie go bez znaków „()”?", "This_expression_is_not_constructable_2351": "Tego wyrażenia nie można skonstruować.", "This_file_already_has_a_default_export_95130": "Ten plik ma już domyślny eksport", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Ponowne zapisanie tej ścieżki importu jest niebezpieczne, ponieważ jest rozpoznawana jako inny projekt, a ścieżka względna między plikami wyjściowymi projektów nie jest taka sama jak ścieżka względna między plikami wejściowymi.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Ten import używa rozszerzenia „{0}” do rozpoznania jako wejściowego pliku TypeScript, ale nie zostanie ponownie zapisany podczas emitowania, ponieważ nie jest ścieżką względną.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Ten import nigdy nie jest używany jako wartość i musi używać aliasu „import type”, ponieważ opcja „importsNotUsedAsValues” jest ustawiona na wartość „error”.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "To jest rozszerzana deklaracja. Rozważ przeniesienie deklaracji rozszerzenia do tego samego pliku.", - "This_kind_of_expression_is_always_falsy_2873": "Tego rodzaju wyrażenie jest zawsze błędne.", - "This_kind_of_expression_is_always_truthy_2872": "Tego rodzaju wyrażenie jest zawsze prawdziwe.", "This_may_be_converted_to_an_async_function_80006": "To można przekonwertować na funkcję asynchroniczną.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Ta składowa nie może mieć komentarza JSDoc z tagiem „@override”, ponieważ nie jest zadeklarowany w klasie bazowej „{0}”.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Ta składowa nie może mieć komentarza JSDoc z tagiem „override”, ponieważ nie jest zadeklarowany w klasie bazowej „{0}”. Czy chodziło Ci o „{1}”?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Ta składowa nie może mieć komentarza JSDoc z tagiem „@override”, ponieważ jego klasa zawierająca „{0}” nie rozszerza innej klasy.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Ten element członkowski nie może mieć komentarza JSDoc z tagiem „@zastąp”, ponieważ jego nazwa jest dynamiczna.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Ten element członkowski nie może mieć modyfikatora „override”, ponieważ nie jest zadeklarowany w klasie podstawowej „{0}”.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Ten element członkowski nie może mieć modyfikatora \"override\", ponieważ nie jest on zadeklarowany w klasie bazowej \"{0}\". Czy chodzi Ci o \"{1}\"?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Ten element członkowski nie może mieć modyfikatora „override”, ponieważ jego klasa zawierająca „{0}” nie rozszerza innej klasy.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Ten element członkowski nie może mieć modyfikatora \"override\", ponieważ jego nazwa jest dynamiczna.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Ta składowa musi mieć komentarz JSDoc z tagiem „@override”, ponieważ zastępuje składową w klasie bazowej „{0}”.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Ten element członkowski musi mieć modyfikator „override”, ponieważ przesłania on element członkowski w klasie podstawowej „{0}”.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Ten element członkowski musi mieć modyfikator „override”, ponieważ zastępuje metodę abstrakcyjną zadeklarowaną w klasie podstawowej „{0}”.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Do tego modułu można odwoływać się tylko za pomocą importów/eksportów języka ECMAScript, włączając flagę „{0}” i odwołując się do jego eksportu domyślnego.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Ten moduł jest zadeklarowany przy użyciu składni „export =” i może być używany tylko z importem domyślnym, gdy jest używana flaga „{0}”.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Tę operację można uprościć. Ta zmiana jest identyczna z „{0} {1} {2}”.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "To przeciążenie niejawnie zwraca typ „{0}”, ponieważ nie ma adnotacji zwracanego typu.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Ta sygnatura przeciążenia nie jest zgodna z jej sygnaturą implementacji.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Ten parametr nie jest dozwolony w dyrektywie „use strict”.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Ta właściwość parametru musi mieć komentarz JSDoc z tagiem „@override”, ponieważ zastępuje składową w klasie bazowej „{0}”.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Ta właściwość parametru musi mieć modyfikator \"override\", ponieważ zastępuje on członka w klasie bazowej \"{0}\".", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Tej flagi wyrażenia regularnego nie można przełączać w obrębie wzorca podrzędnego.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Ta flaga wyrażenia regularnego jest dostępna tylko w przypadku określania wartości docelowej „{0}” lub nowszej.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Ta względna ścieżka importu jest niebezpieczna do ponownego zapisania, ponieważ wygląda jak nazwa pliku, ale w rzeczywistości jest rozpoznawana jako „{0}”.", "This_spread_always_overwrites_this_property_2785": "To rozmieszczenie zawsze powoduje zastąpienie tej właściwości.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Ta składnia jest niedozwolona, gdy jest włączona opcja \"erasableSyntaxOnly\".", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Ta składnia jest zarezerwowana w plikach z rozszerzeniem .MTS lub CTS. Dodaj końcowy przecinek lub jawne ograniczenie.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Ta składnia jest zarezerwowana w plikach z rozszerzeniem. MTS lub. CTS. Użyj zamiast tego wyrażenia „as”.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Ta składnia wymaga zaimportowanego pomocnika, ale nie można znaleźć modułu „{0}”.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Aby przekonwertować ten plik na moduł ECMAScript, zmień rozszerzenie jego pliku na „{0}” lub dodaj pole „\"type\": \"module\"” do „{1}”.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Aby przekonwertować ten plik na moduł ECMAScript, zmień rozszerzenie jego pliku na „{0}” lub utwórz lokalny plik package.json z polem „{ \"type\": \"module\" }\".", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Aby przekonwertować ten plik na moduł ECMAScript, utwórz lokalny plik package.json z polem „{ \"type\": \"module\" }\".", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Instrukcje najwyższego poziomu „await” są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na „es2022”, „esnext”, „system”, „node16”, „node18”, „nodenext” lub „preserve”, a opcja „target” jest ustawiona na „es2017” lub wyższą.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Instrukcje najwyższego poziomu „await using” są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na „es2022”, „esnext”, „system”, „node16”, „node18”, „nodenext” lub „preserve”, a opcja „target” jest ustawiona na „es2017” lub wyższą.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Wyrażenia „await” najwyższego poziomu są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system”, „node16” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklaracje najwyższego poziomu w plikach .d.ts muszą rozpoczynać się od modyfikatora „declare” lub „export”.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Pętle najwyższego poziomu „for await” są dozwolone tylko wtedy, gdy opcja „module” ma wartość „es2022”, „esnext”, „system”, „node16”, „node18”, „nodenext” lub „preserve”, a opcja „target” ma wartość „es2017” lub wyższą.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Pętle najwyższego poziomu „for await” są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system”, „node16” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.", "Trailing_comma_not_allowed_1009": "Końcowy przecinek jest niedozwolony.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transpiluj każdy plik jako oddzielny moduł (podobne do „ts.transpileModule”).", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Spróbuj użyć polecenia „npm i --save-dev @types/{1}”, jeśli istnieje, lub dodać nowy plik deklaracji (.d.ts) zawierający ciąg „declare module '{0}';”", "Trying_other_entries_in_rootDirs_6110": "Wykonywanie prób przy użyciu innych pozycji opcji „rootDirs”.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Wykonywanie próby przeprowadzenia podstawienia „{0}”, lokalizacja modułu kandydata: „{1}”.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Wszystkie składowe krotki muszą mieć nazwy albo wszystkie nie mogą mieć nazw.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Typ krotki „{0}” o długości „{1}” nie ma żadnego elementu w indeksie „{2}”.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Argumenty typu krotki cyklicznie odwołują się do samych siebie.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Po typie „{0}” można iterować tylko wtedy, gdy jest używana flaga „--downlevelIteration” lub parametr „--target” ma wartość „es2015” lub wyższą.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Typ „{0}” nie ma pasującej sygnatury indeksu dla typu „{1}”.", "Type_0_has_no_properties_in_common_with_type_1_2559": "Typy „{0}” i „{1}” nie mają żadnych wspólnych właściwości.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Typ „{0}” nie ma podpisów, dla których ma zastosowanie lista argumentów typu ogólnego.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Typ „{0}” jest typem ogólnym i może być indeksowany tylko do odczytu.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "W typie „{0}” brakuje następujących właściwości z typu „{1}”: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "W typie „{0}” brakuje następujących właściwości z typu „{1}”: {2} i jeszcze {3}.", "Type_0_is_not_a_constructor_function_type_2507": "Typ „{0}” nie jest typem funkcji konstruktora.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Typ „{0}” nie jest prawidłowym zwracanym typem funkcji asynchronicznej w języku ES5, ponieważ nie odwołuje się do wartości konstruktora zgodnej z elementem Promise.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Typ „{0}” nie jest prawidłowym zwracanym typem funkcji asynchronicznej w wersji ES5/ES3, ponieważ nie odwołuje się do wartości konstruktora zgodnej z elementem Promise.", "Type_0_is_not_an_array_type_2461": "Typ „{0}” nie jest typem tablicowym.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Typ „{0}” nie jest typem tablicowym ani typem ciągu.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "Typ „{0}” nie jest typem tablicy ani ciągu lub nie ma metody „[Symbol.iterator]()” zwracającej iterator.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Nie można przypisać typu „{0}” do typu „{1}”. Czy chodziło Ci o „{2}”?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Typu „{0}” nie można przypisać do typu „{1}”. Istnieją dwa różne typy o tej nazwie, lecz są ze sobą niezwiązane.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Nie można przypisać typu „{0}” do typu „{1}”, jak sugeruje adnotacja wariancji.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Nie można przypisać typu „{0}” do typu „{1}” zgodnie z wymaganiami dla obliczonych wartości składowych wyliczenia.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Nie można przypisać typu \"{0}\" do typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typów właściwości obiektu docelowego.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Nie można przypisać typu \"{0}\" do typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typu elementu docelowego.", "Type_0_is_not_comparable_to_type_1_2678": "Typu „{0}” nie można porównać z typem „{1}”.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Oczekiwano argumentu typu.", "Type_argument_list_cannot_be_empty_1099": "Lista argumentów typu nie może być pusta.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Argumenty typu mogą być używane tylko w plikach TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "Nie można tutaj używać argumentów typu.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Argumenty typu dla elementu „{0}” cyklicznie odwołują się do samych siebie.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Wyrażeń asercji typu można używać tylko w plikach TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Typ na pozycji {0} w źródle nie jest zgodny z typem na pozycji {1} w lokalizacji docelowej.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Typ na pozycjach od {0} do {1} w źródle nie jest zgodny z typem w pozycji {2} w lokalizacji docelowej.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Typ zawierający nazwę prywatną „{0}” nie może być używany z elementem --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Pliki deklaracji typu do uwzględnienia w kompilacji.", "Type_expected_1110": "Oczekiwano typu.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Twierdzenie importu typu powinno mieć dokładnie jeden klucz – „resolution-mode“ – z wartością „importuj“ lub „wymagaj“.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Atrybuty importu typów powinny mieć dokładnie jeden klucz — „resolution-mode” — z wartością „import” lub „require”.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "Import typu modułu ECMAScript z modułu CommonJS musi mieć atrybut „resolution-mode”.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Tworzenie wystąpienia typu jest nadmiernie szczegółowe i prawdopodobnie nieskończone.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Typ jest przywoływany bezpośrednio lub pośrednio w wywołaniu zwrotnym realizacji jego własnej metody „then”.", "Type_library_referenced_via_0_from_file_1_1402": "Biblioteka typów jest przywoływana za pośrednictwem elementu „{0}” z pliku „{1}”", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Typ iterowanych elementów operandu „yield*” musi być prawidłową obietnicą lub nie może zawierać wywoływalnej składowej „then”.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Typ właściwości „{0}” cyklicznie odwołuje się do siebie w zamapowanym typie „{1}”.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Typ operandu „yield” w generatorze asynchronicznym musi być prawidłową obietnicą lub nie może zawierać wywoływalnej składowej „then”.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "Import tylko typu modułu ECMAScript z modułu CommonJS musi mieć atrybut „resolution-mode”.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Typ pochodzi z tego importu. Nie można wywołać ani skonstruować importu w stylu przestrzeni nazw, co spowoduje wystąpienie błędu w czasie wykonywania. Zamiast tego rozważ użycie importu domyślnego lub funkcji require importu.", "Type_parameter_0_has_a_circular_constraint_2313": "Parametr typu „{0}” zawiera ograniczenie cykliczne.", "Type_parameter_0_has_a_circular_default_2716": "Parametr typu „{0}” ma cykliczną wartość domyślną.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Nie można rozpoznać sygnatury dekoratora metody wywołanego jako wyrażenie.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Nie można rozpoznać sygnatury dekoratora parametru wywołanego jako wyrażenie.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Nie można rozpoznać sygnatury dekoratora właściwości wywołanego jako wyrażenie.", - "Undetermined_character_escape_1513": "Nieokreślony znak ucieczki.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "Nieoczekiwane „{0}”. Czy chodziło Ci o ucieczkę za pomocą ukośnika odwrotnego?", "Unexpected_end_of_text_1126": "Nieoczekiwany koniec tekstu.", "Unexpected_keyword_or_identifier_1434": "Nieoczekiwane słowo kluczowe lub identyfikator.", "Unexpected_token_1012": "Nieoczekiwany token.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Nieoczekiwany token. Czy chodziło o „{'>'}” lub „>”?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Nieoczekiwany token. Czy chodziło o „{'}'}” lub „}”?", "Unexpected_token_expected_1179": "Nieoczekiwany token. Oczekiwano znaku „{”.", - "Unicode_escape_sequence_cannot_appear_here_17021": "W tym miejscu nie można wyświetlić sekwencji ucieczki standardu Unicode.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Sekwencje ucieczki standardu Unicode są dostępne tylko wtedy, gdy ustawiono flagę Unicode (u) lub flagę Unicode Sets (v).", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Wyrażenia wartości właściwości standardu Unicode są dostępne tylko wtedy, gdy ustawiono flagę Unicode (u) lub flagę Unicode Sets (v).", - "Unknown_Unicode_property_name_1524": "Nieznana nazwa właściwości standardu Unicode.", - "Unknown_Unicode_property_name_or_value_1529": "Nieznana nazwa lub wartość właściwości standardu Unicode.", - "Unknown_Unicode_property_value_1526": "Nieznana wartość właściwości standardu Unicode.", "Unknown_build_option_0_5072": "Nieznana opcja kompilacji „{0}”.", "Unknown_build_option_0_Did_you_mean_1_5077": "Nieznana opcja kompilacji „{0}”. Czy chodziło o „{1}”?", "Unknown_compiler_option_0_5023": "Nieznana opcja kompilatora „{0}”.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Nieznana opcja kompilatora „{0}”. Czy chodziło o „{1}”?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Nieznane słowo kluczowe lub identyfikator. Czy chodziło Ci o „{0}”?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Nieznana opcja „excludes”. Czy chodziło o „exclude”?", - "Unknown_regular_expression_flag_1499": "Nieznana flaga wyrażenia regularnego.", "Unknown_type_acquisition_option_0_17010": "Opcja pozyskania nieznanego typu „{0}”.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Nieznana opcja pozyskania typu „{0}”. Czy chodziło o „{1}”?", "Unknown_watch_option_0_5078": "Nieznana opcja obserwowania „{0}”.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Nieużywana etykieta.", "Unused_ts_expect_error_directive_2578": "Nieużywana dyrektywa „@ts-expect-error”.", "Update_import_from_0_90058": "Aktualizuj import z „{0}”", - "Update_modifiers_of_0_90061": "Modyfikatory aktualizacji elementu „{0}”", + "Updating_output_of_project_0_6373": "Trwa aktualizowanie danych wyjściowych projektu „{0}”...", "Updating_output_timestamps_of_project_0_6359": "Trwa aktualizowanie sygnatury czasowej danych wyjściowych projektu „{0}”...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Trwa aktualizowanie niezmienionych sygnatur czasowych danych wyjściowych projektu „{0}”...", "Use_0_95174": "Użyj „{0}”.", - "Use_0_instead_5106": "Zamiast tego użyj „{0}”.", "Use_Number_isNaN_in_all_conditions_95175": "Użyj wartości „Number.isNaN” we wszystkich warunkach.", "Use_element_access_for_0_95145": "Użyj dostępu do elementu w przypadku elementu „{0}”", "Use_element_access_for_all_undeclared_properties_95146": "Użyj dostępu do elementu w przypadku wszystkich niezadeklarowanych właściwości.", - "Use_import_type_95180": "Użyj opcji „import type”", "Use_synthetic_default_member_95016": "Użyj syntetycznej składowej „default”.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Podczas rozpoznawania importów pakietów użyj pola „exports” pliku package.json.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Podczas rozpoznawania importów użyj pola „imports” pliku package.json.", - "Use_type_0_95181": "Użyj „typu {0}”", "Using_0_subpath_1_with_target_2_6404": "Używanie „{0}” ścieżki podrzędnej „{1}” z elementem docelowym „{2}”.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "Użycie fragmentów rozszerzenia JSX wymaga, aby fabryka fragmentów „{0}” była w zakresie, ale nie można jej znaleźć.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Używanie ciągu w instrukcji „for...of” jest obsługiwane tylko w języku ECMAScript 5 lub nowszym.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Użycie elementu --build, -b sprawi, że narzędzie tsc będzie zachowywało się bardziej jak orkiestrator kompilacji niż kompilator. Ta opcja jest wykorzystywana do wyzwalania kompilacji projektów złożonych, o których dowiesz się więcej na stronie {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Using compiler options of project reference redirect '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Oczekiwano deklaracji zmiennej.", "Variable_declaration_list_cannot_be_empty_1123": "Lista deklaracji zmiennych nie może być pusta.", "Variable_declaration_not_allowed_at_this_location_1440": "Deklaracja zmiennej jest niedozwolona w tej lokalizacji.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "Zmienna musi mieć jawną adnotację typu z właściwością --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Zmienne z wieloma deklaracjami nie mogą być śródwierszowe.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Element ze zmienną liczbą argumentów na pozycji {0} w źródle nie jest zgodny z elementem na pozycji {1} w lokalizacji docelowej.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Adnotacje wariancji są obsługiwane tylko w aliasach typów obiektów, funkcji, konstruktorów i mapowanych typów.", "Version_0_6029": "Wersja {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Podczas sprawdzania typów uwzględniaj wartości „null” i „undefined”.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Określa, czy zachować nieaktualne dane wyjściowe konsoli w trybie śledzenia zamiast wyczyścić ekran.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Opakuj wszystkie nieprawidłowe znaki w kontenerze wyrażenia", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Zawijaj wszystkie nieprawidłowe wyrażenia dekoratora w nawiasy", "Wrap_all_object_literal_with_parentheses_95116": "Zawijaj wszystkie literały obiektu z nawiasami", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Opakuj wszystkie elementy JSX bez elementu nadrzędnego we fragment JSX", "Wrap_in_JSX_fragment_95120": "Opakuj we fragment JSX", - "Wrap_in_parentheses_95194": "Zawijaj w nawiasy", "Wrap_invalid_character_in_an_expression_container_95108": "Opakuj nieprawidłowy znak w kontenerze wyrażenia", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Zawijaj następującą treść z nawiasami, która powinna być literałem obiektu", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "O wszystkich opcjach kompilatora przeczytasz na stronie {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Sygnatury indeksów „{0}” i „{1}” są niezgodne.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Operacji „{0}” i „{1}” nie można mieszać bez nawiasów.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "Element „{0}” został określony dwa razy. Atrybut o nazwie „{0}” zostanie przesłonięty.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "Element „{0}” na końcu typu nie jest prawidłową składnią języka TypeScript. Czy chodziło Ci o napisanie „{1}”?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "Element „{0}” na początku typu nie jest prawidłową składnią języka TypeScript. Czy chodziło Ci o napisanie „{1}”?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "Element „{0}” można zaimportować tylko przez włączenie flagi „esModuleInterop” i użycie importu domyślnego.", "_0_can_only_be_imported_by_using_a_default_import_2595": "Element „{0}” można zaimportować tylko przy użyciu importu domyślnego.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "Element „{0}” można zaimportować za pomocą wywołania „require” lub przez włączenie flagi „esModuleInterop” i użycie importu domyślnego.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "Element „{0}” można zaimportować tylko za pomocą wywołania „require” lub przy użyciu importu domyślnego.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "Element „{0}” można zaimportować tylko przy użyciu wyrażenia „import {1} = require({2})” lub importu domyślnego.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "Element „{0}” można zaimportować tylko przy użyciu wyrażenia „import {1} = require({2})” lub przez włączenie flagi „esModuleInterop” i użycie importu domyślnego.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "Nie można skompilować elementu „{0}” z opcją „--isolatedModules”, ponieważ jest on traktowany jako globalny plik skryptu. Dodaj instrukcję import, export lub pustą instrukcję „export {}”, aby stał się modułem.", "_0_cannot_be_used_as_a_JSX_component_2786": "Elementu „{0}” nie można użyć jako składnika JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "Element „{0}” nie może być używany jako wartość, ponieważ został wyeksportowany przy użyciu aliasu „export type”.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "Element „{0}” nie może być używany jako wartość, ponieważ został zaimportowany przy użyciu aliasu „import type”.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Składniki „{0}” nie akceptują tekstu jako elementów podrzędnych. Tekst w JSX ma typ „string”, ale oczekiwany typ elementu „{1}” to „{2}”.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Nie można utworzyć wystąpienia elementu „{0}” z dowolnym typem, który może być niezwiązany z elementem „{1}”.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Deklaracje „{0}” mogą być deklarowane tylko w bloku.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Deklaracje „{0}” mogą być używane tylko w plikach TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "Deklaracje „{0}” mogą nie mieć wzorców powiązań.", - "_0_declarations_must_be_initialized_1155": "Deklaracje „{0}” muszą być zainicjowane.", "_0_expected_1005": "Oczekiwano elementu „{0}”.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "Element „{0}” ma typ ciągu, ale po włączeniu opcji „isolatedModules” musi mieć składnię ciągu rozpoznawalną składniowo.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "Element „{0}” nie ma wyeksportowanego elementu członkowskiego „{1}”. Czy chodziło o „{2}”?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "Element „{0}” niejawnie ma zwracany typ „{1}”, ale lepszy typ można wywnioskować na podstawie użycia.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "Dla elementu „{0}” niejawnie określono zwracany typ „any”, ponieważ nie zawiera on adnotacji zwracanego typu i jest przywoływany bezpośrednio lub pośrednio w jednym z jego zwracanych wyrażeń.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Typu indeksu „{0}” „{1}” nie można przypisać do typu indeksu „{2}” „{3}”.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "Element „{0}” jest elementem podstawowym, ale element „{1}” jest obiektem otoki. Preferuje się użycie elementu „{0}”, jeśli jest to możliwe.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "„{0}” jest typem i nie można go zaimportować w plikach JavaScript. Użyj elementu „{1}” w adnotacji typu JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "Element „{0}” jest typem i należy go zaimportować przy użyciu importu tylko typu, gdy jest włączona opcja „verbatimModuleSyntax”.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Element \"{0}\" jest typem i musi być importowany przy użyciu importu tylko typu, gdy są włączone opcje \"preserveValueImports\" i \"isolatedModules\".", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}” to nieużywana zmiana nazwy elementu „{1}”. Czy zamierzano używać go jako adnotacji typu?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "Element „{0}” można przypisać do ograniczenia typu „{1}”, ale wystąpienie typu „{1}” można utworzyć z innym podtypem ograniczenia „{2}”.", "_0_is_automatically_exported_here_18044": "W tym miejscu jest automatycznie eksportowany element „{0}”.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "Lista „{0}” nie może być pusta.", "_0_modifier_already_seen_1030": "Napotkano już modyfikator „{0}”.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Modyfikator „{0}” może występować tylko w parametrze typu klasy, interfejsu lub aliasu typu", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "Modyfikator „{0}” może występować tylko w parametrze typu funkcji, metody lub klasy", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Modyfikator „{0}” nie może występować w deklaracji konstruktora.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Modyfikator „{0}” nie może być stosowany w przypadku elementu przestrzeni nazw lub modułu.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Modyfikator „{0}” nie może występować w parametrze.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Modyfikator „{0}” nie może być stosowany w przypadku składowej typu.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Modyfikator „{0}” nie może występować w parametrze typu", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "Modyfikator „{0}” nie może występować w deklaracji „using”.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "Modyfikator „{0}” nie może występować w deklaracji „await using”.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Modyfikator „{0}” nie może być stosowany w przypadku sygnatury indeksu.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Modyfikator „{0}” nie może występować w elementach klasy tego rodzaju.", "_0_modifier_cannot_be_used_here_1042": "Modyfikatora „{0}” nie można użyć w tym miejscu.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Modyfikatora „{0}” nie można używać z modyfikatorem „{1}”.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Modyfikatora „{0}” nie można używać z identyfikatorem prywatnym.", "_0_modifier_must_precede_1_modifier_1029": "Modyfikator „{0}” musi występować przed modyfikatorem „{1}”.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "Po wyrażeniu „\\{0}” musi następować wyrażenie wartości właściwości standardu Unicode ujęte w nawiasy klamrowe.", "_0_needs_an_explicit_type_annotation_2782": "Element „{0}” wymaga jawnej adnotacji typu.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "Element „{0}” odwołuje się tylko do typu, ale jest używany tutaj jako przestrzeń nazw.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "Element „{0}” odwołuje się jedynie do typu, ale jest używany w tym miejscu jako wartość.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "Element \"{0}\" odwołuje się tylko do typu, ale jest używany tutaj jako wartość. Czy chcesz zmienić bibliotekę docelową? Spróbuj zmienić opcję kompilatora \"lib\" na es2015 lub nowszą.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "„{0}” odnosi się do globalnego formatu UMD, ale bieżący plik jest modułem. Rozważ zamiast tego dodanie importu.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "Element „{0}” odwołuje się do wartości, ale jest używany tutaj jako typ. Czy chodziło o „typeof {0}”?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "Element „{0}” jest rozpoznawany jako typ i musi być oznaczony jako tylko typ w tym pliku przed ponownym wyeksportowaniem po włączeniu opcji „{1}”. Rozważ użycie parametru „typ importu”, gdzie element „{0}” jest importowany.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "Element „{0}” jest rozpoznawany jako typ i musi być oznaczony jako tylko typ w tym pliku przed ponownym wyeksportowaniem po włączeniu opcji „{1}”. Rozważ użycie parametru „export type { domyślnie {0} }”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "Element „{0}” jest rozpoznawany jako deklaracja tylko typu i musi zostać zaimportowany przy użyciu importu tylko typu, gdy jest włączona opcja „verbatimModuleSyntax”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "Element „{0}” jest rozpoznawany jako deklaracja tylko typu i musi być oznaczony jako tylko typ w tym pliku przed ponownym eksportowaniem po włączeniu opcji „{1}”. Rozważ użycie parametru „typ importu”, gdzie element „{0}” jest importowany.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "Element „{0}” jest rozpoznawany jako deklaracja tylko typu i musi być oznaczony jako tylko typ w tym pliku przed ponownym eksportowaniem po włączeniu opcji „{1}”. Rozważ użycie parametru „export type { domyślnie {0} }”.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "Element „{0}” jest rozpoznawany jako deklaracja tylko typu i musi zostać ponownie wyeksportowany przy użyciu ponownego eksportowania tylko typu, gdy włączono opcję „{1}”.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "Element \"{0}\" jest rozpoznawany jako deklaracja tylko do typu i musi zostać zaimportowany przy użyciu importu tylko typu, gdy są włączone opcje \"preserveValueImports\" i \"isolatedModules\".", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "Element \"{0}\" jest rozpoznawany jako deklaracja tylko do typu i musi zostać ponownie wyeksportowany przy użyciu ponownego eksportu tylko typu, gdy jest włączona opcja \"isolatedModules\".", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "Element \"{0}\" powinien być ustawiony wewnątrz obiektu \"compilerOptions\" pliku json konfiguracji", "_0_tag_already_specified_1223": "Tag „{0}” jest już określony.", "_0_was_also_declared_here_6203": "Element „{0}” został również zadeklarowany w tym miejscu.", @@ -1999,22 +1780,19 @@ "and_here_6204": "i tutaj.", "arguments_cannot_be_referenced_in_property_initializers_2815": "w inicjatorach właściwości nie można odwoływać się do \"arguments\".", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto”: Traktuj pliki za pomocą importów, eksportów, import.meta, jsx (z jsx: react-jsx) lub formatu esm (z modułem: node16+) jako moduły.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Nie można użyć wyrażenia „await” wewnątrz bloku statycznego klasy.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Wyrażenia „await” na najwyższym poziomie pliku są dozwolone tylko wtedy, gdy plik jest modułem, ale ten plik nie ma żadnych importów ani eksportów. Rozważ dodanie pustego elementu „export {}”, aby ten plik był modułem.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Wyrażenia „await” są dozwolone tylko w funkcjach asynchronicznych i na najwyższym poziomie modułów.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Wyrażeń „await” nie można używać w inicjatorze parametru.", "await_has_no_effect_on_the_type_of_this_expression_80007": "Operator „await” nie ma wpływu na typ tego wyrażenia.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Instrukcje „await using” są dozwolone tylko na najwyższym poziomie pliku, gdy ten plik jest modułem, ale ten plik nie ma importów ani eksportów. Rozważ dodanie pustego wyrażenia „export {}”, aby uczynić ten plik modułem.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Instrukcje „await using” są dozwolone tylko w ramach funkcji asynchronicznych i na najwyższych poziomach modułów.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Instrukcji „await using” nie można używać wewnątrz bloku statycznego klasy.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Opcja „baseUrl” ma ustawioną wartość „{0}”. Ta wartość zostanie użyta do rozpoznania innej niż względna nazwy modułu „{1}”.", - "c_must_be_followed_by_an_ASCII_letter_1512": "Po wyrażeniu „\\c” musi następować litera ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "Elementu „#!” można użyć tylko na początku pliku.", "case_or_default_expected_1130": "Oczekiwano elementu „case” lub „default”.", "catch_or_finally_expected_1472": "Oczekiwano instrukcji „catch” lub „finally”.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Deklaracje „const” mogą być deklarowane tylko w bloku.", + "const_declarations_must_be_initialized_1155": "Konieczne jest zainicjowanie deklaracji „const”.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Wynikiem obliczenia inicjatora składowej wyliczenia ze specyfikatorem „const” jest wartość nieskończona.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Wynikiem obliczenia inicjatora składowej wyliczenia ze specyfikatorem „const” jest niedozwolona wartość „NaN”.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "inicjatory składowych wyliczenia const muszą być wyrażeniami stałymi.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Inicjatory elementów członkowskich wyliczenia const mogą zawierać tylko wartości literałów i inne obliczone wartości wyliczenia.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Wyliczenia ze specyfikatorem „const” mogą być używane tylko w wyrażeniach dostępu do indeksu lub właściwości albo po prawej stronie deklaracji importu, przypisania eksportu lub typu zapytania.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "Nie można użyć ciągu „constructor” jako nazwy właściwości parametru.", "constructor_is_a_reserved_word_18012": "„#constructor” jest słowem zastrzeżonym.", @@ -2033,14 +1811,13 @@ "file_6025": "plik", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Pętle „for await” na najwyższym poziomie pliku są dozwolone tylko wtedy, gdy plik jest modułem, ale ten plik nie ma żadnych importów ani eksportów. Rozważ dodanie pustego elementu „export {}”, aby ten plik był modułem.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Pętle „for await” są dozwolone tylko w funkcjach asynchronicznych i na najwyższym poziomie modułów.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Pętli „for await” nie można używać wewnątrz bloku statycznego klasy.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Metody dostępu „get” i „set” nie mogą deklarować parametrów „this”.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "\"[]\" jeśli określono \"files\", w przeciwnym razie \"[\"**/*\"]5D;\"", "implements_clause_already_seen_1175": "Napotkano już klauzulę „implements”.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Klauzule „implements” mogą być używane tylko w plikach TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "Ciąg „import ... =” może być używany tylko w plikach TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Deklaracje „infer” są dozwolone tylko w klauzuli „extends” typu warunkowego.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "Po wyrażeniu „\\k” musi następować nazwa grupy przechwytywania ujęta w nawiasy ostre.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Deklaracje „let” mogą być deklarowane tylko w bloku.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Element „let” nie może być używany jako nazwa w deklaracjach „let” ani „const”.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === \"AMD\" lub \"UMD\" lub \"System\" lub \"ES6\", a następnie \"Classic\", w przeciwnym razie \"Node\"", "module_system_or_esModuleInterop_6904": "module === \"system\" lub esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "Plik „package.json” nie zawiera wpisu „typesVersions” odpowiadającego wersji „{0}”.", "package_json_had_a_falsy_0_field_6220": "Plik „package.json” miał błędne pole „{0}”.", "package_json_has_0_field_1_that_references_2_6101": "Plik „package.json” zawiera pole „{0}” „{1}” odwołujące się do elementu „{2}”.", - "package_json_has_a_peerDependencies_field_6281": "Plik „package.json” ma pole „peerDependencies”.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "Plik „package.json” ma wpis „{0}” pola „typesVersions”, który nie jest prawidłowym zakresem semver.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "Plik „package.json” ma wpis „{0}” pola „typesVersions”, który dopasowuje wersję kompilatora „{1}”, szukając wzorca odpowiadającego nazwie modułu „{2}”.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "Plik „package.json” zawiera pole „typesVersions” z mapowaniami ścieżek specyficznymi dla wersji.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "Zakres package.json „{0}” ma nieprawidłowy typ elementu docelowego specyfikatora „{1}”", "package_json_scope_0_has_no_imports_defined_6273": "Zakres package.json „{0}” nie ma zdefiniowanych importów.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Opcja „paths” została określona. Wyszukiwanie wzorca zgodnego z nazwą modułu „{0}”.", - "q_is_only_available_inside_character_class_1511": "Wyrażenie „\\q” jest dostępne tylko wewnątrz klasy znaków.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "Po wyrażeniu „\\q” muszą następować alternatywy ciągów ujęte w nawiasy klamrowe.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modyfikator „readonly” może występować jedynie w deklaracji właściwości lub sygnaturze indeksu.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modyfikator typu „readonly” jest dozwolony tylko w typach literału tablicy i krotki.", "require_call_may_be_converted_to_an_import_80005": "Wywołanie „require” może zostać przekonwertowane na wywołanie import.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Asercje „resolution-mode” są obsługiwane tylko wtedy, gdy element „moduleResolution” ma wartość „node16” lub „nodenext”.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Asercje „resolution-mode” są niestabilne. Użyj nocnego języka TypeScript, aby wyciszyć ten błąd. Spróbuj zaktualizować za pomocą polecenia „npm install -D typescript@next”.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "Element „resolution-mode“ można ustawić wyłącznie dla importów tylko typów.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "Element „resolution-mode“ jest jedynym prawidłowym kluczem dla twierdzenia importu typu.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "Element „resolution-mode” jest jedynym prawidłowym kluczem dla atrybutów importu typu.", "resolution_mode_should_be_either_require_or_import_1453": "Element „resolution-mode” powinien mieć wartość „require” lub „import”.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Opcja „rootDirs” została ustawiona. Zostanie ona użyta do rozpoznania względnej nazwy modułu „{0}”.", "super_can_only_be_referenced_in_a_derived_class_2335": "Element „super” może być przywoływany tylko w klasie pochodnej.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "Nie można przywołać elementu „this” w obliczonej nazwie właściwości.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "Nie można przywołać elementu „this” w treści modułu ani przestrzeni nazw.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "Nie można przywołać elementu „this” w inicjatorze właściwości statycznej.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "Nie można przywołać elementu „this” w argumentach konstruktora.", "this_cannot_be_referenced_in_current_location_2332": "Nie można przywołać elementu „this” w bieżącej lokalizacji.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "Element „this” niejawnie przyjmuje typ „any”, ponieważ nie ma adnotacji typu.", "true_for_ES2022_and_above_including_ESNext_6930": "wartość \"true\" dla ES2022 i powyżej, uwzględniając ESNext.", "true_if_composite_false_otherwise_6909": "\"true\", jeśli \"composite\", w przeciwnym razie \"false\"", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "„true”, gdy element „moduleResolution” ma wartość „node16”, „nodenext” lub „bundler”; w przeciwnym razie „false”.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: kompilator TypeScript", "type_Colon_6902": "typ:", "unique_symbol_types_are_not_allowed_here_1335": "Typy „unique symbol” nie są dozwolone w tym miejscu.", diff --git a/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json b/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json index d2e2a870a..cec13e7f8 100644 --- a/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "TODAS AS OPÇÕES DO COMPILADOR", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Um modificador '{0}' não pode ser usado com uma declaração de importação.", "A_0_parameter_must_be_the_first_parameter_2680": "Um parâmetro '{0}' deve ser o primeiro parâmetro.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Uma marca JSDoc '@template' pode não seguir uma marca '@typedef', '@callback' ou '@overload'", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Um comentário de JSDoc '@typedef' não pode conter várias marcas '@type'.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Um literal 'bigint' não pode ser usado como um nome de propriedade.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Um literal de bigint não pode usar notação exponencial.", "A_bigint_literal_must_be_an_integer_1353": "Um literal de bigint deve ser um inteiro.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Um parâmetro de padrão de associação não pode ser opcional em uma assinatura de implementação.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Uma instrução 'break' só pode ser usada em uma iteração de circunscrição ou instrução switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Uma instrução 'break' só pode saltar para um rótulo de uma instrução de circunscrição.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Uma classe de caracteres não deve conter um pontuador duplo reservado. Você quis escapar com uma barra invertida?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "O intervalo de uma classe de caracteres não deve ser limitado por outra classe de caracteres.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Uma classe pode implementar apenas um identificador/nome qualificado com argumentos de tipo opcionais.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Uma classe pode implementar somente um tipo de objeto ou interseção de tipos de objeto com membros estaticamente conhecidos.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Uma classe não pode estender um tipo primitivo como '{0}'. As classes só podem estender valores construtíveis.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Uma classe não pode implementar um tipo primitivo como '{0}'. Ela só pode implementar outros tipos de objetos nomeados.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Uma declaração de classe sem o modificador 'default' deve ter um nome.", "A_class_member_cannot_have_the_0_keyword_1248": "Um membro de classe não pode ter a palavra-chave '{0}'.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Uma expressão de vírgula não é permitida em um nome de propriedade calculado.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Um construtor não pode ter um parâmetro 'this'.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Uma instrução 'continue' só pode ser usada em uma instrução de iteração de circunscrição.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Uma instrução 'continue' só pode saltar para um rótulo de uma instrução de iteração de circunscrição.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Um arquivo de declaração não pode ser importado sem 'import type'. Você quis importar um arquivo de implementação '{0}'?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Um modificador 'declare' não pode ser usado em um contexto de ambiente.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Um decorador pode decorar somente uma implementação de método, não uma sobrecarga.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Uma cláusula 'default' não pode aparecer mais de uma vez em uma instrução 'switch'.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Uma exportação padrão deve estar no nível superior de uma declaração de arquivo ou módulo.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Uma declaração de atribuição definitiva '!' não é permitida neste contexto.", "A_destructuring_declaration_must_have_an_initializer_1182": "Uma declaração de desestruturação deve ter um inicializador.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Uma chamada de importação dinâmica no ES5 requer o construtor 'Promise'. Verifique se você tem uma declaração para o construtor 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Uma chamada de importação dinâmica em ES5/ES3 requer o construtor 'Promise'. Verifique se você tem uma declaração para o construtor 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Uma chamada de importação dinâmica retorna um 'Promise'. Verifique se você tem uma declaração para 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", "A_file_cannot_have_a_reference_to_itself_1006": "Um arquivo não pode fazer referência a si mesmo.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Uma função que retorna 'never' não pode ter um ponto de extremidade acessível.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Uma função chamada com a palavra-chave 'new' não pode ter um tipo 'this' que seja 'void'.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Uma função cujo tipo declarado não seja 'undefined', 'void' nem 'any' deve retornar um valor.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "A função cujo tipo declarado não é 'void' nem 'any' deve retornar um valor.", "A_generator_cannot_have_a_void_type_annotation_2505": "O gerador não pode ter uma anotação de tipo 'void'.", "A_get_accessor_cannot_have_parameters_1054": "Um acessador 'get' não pode ter parâmetros.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Um acessador get precisa ser pelo menos tão acessível quanto o setter", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Uma declaração de namespace não pode estar em um arquivo diferente de uma classe ou função com a qual ela é mesclada.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Uma declaração de namespace não pode estar localizada antes de uma classe ou função com a qual ela é mesclada.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Uma declaração de namespace só é permitida no nível superior de um namespace ou módulo.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Uma declaração \"namespace\" não deve ser declarada usando a palavra-chave \"module\". Use a palavra-chave \"namespace\".", "A_non_dry_build_would_build_project_0_6357": "Um build não -dry criaria o projeto '{0}'", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Um build não -dry excluiria os seguintes arquivos: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Um build não -dry atualizaria a saída do projeto '{0}'", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Um build não -dry atualizaria carimbos de data/hora para a saída do projeto '{0}'", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Um inicializador de parâmetro só é permitido em uma implementação de função ou de construtor.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Uma propriedade de parâmetro não pode ser declarada usando um parâmetro rest.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Uma chamada 'super' deve ser a primeira instrução no construtor a se referir a 'super' ou 'this' quando uma classe derivada contém propriedades inicializadas, propriedades de parâmetro ou identificadores privados.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Uma proteção de tipo baseado em 'this não é compatível com uma proteção de tipo baseado em parâmetro.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Um tipo 'this' está disponível somente em um membro não estático de uma classe ou interface.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Um modificador 'export' de nível superior não pode ser usado em declarações de valor em um módulo CommonJS quando 'verbatimModuleSyntax' estiver habilitado.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Um arquivo 'tsconfig.json' já está definido em: '{0}'.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Um membro de tupla não pode ser opcional e rest.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Um tipo de tupla não pode ser indexado com um valor negativo.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "A expressão 'yield' só é permitida em um corpo gerador.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "O método abstrato '{0}' na classe '{1}' não pode ser acessado por meio da expressão super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Os métodos abstratos só podem aparecer dentro de uma classe abstrata.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "As propriedades abstratas só podem aparecer em uma classe abstrata.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "A propriedade abstrata '{0}' na classe '{1}' não pode ser acessada no construtor.", "Accessibility_modifier_already_seen_1028": "O modificador de acessibilidade já foi visto.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Os acessadores somente estão disponíveis no direcionamento para ECMAScript 5 e superior.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Acessadores devem ser abstratos ou não abstratos.", "Add_0_to_unresolved_variable_90008": "Adicionar '{0}.' à variável não resolvida", "Add_a_return_statement_95111": "Adicionar uma instrução return", - "Add_a_return_type_to_the_function_declaration_9031": "Adicione um tipo de retorno à declaração da função.", - "Add_a_return_type_to_the_function_expression_9030": "Adicionar um tipo de retorno à expressão da função.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Adicione um tipo de retorno à declaração do acessório Get.", - "Add_a_return_type_to_the_method_9034": "Adicione um tipo de retorno ao método", - "Add_a_type_annotation_to_the_parameter_0_9028": "Adicione uma anotação de tipo ao parâmetro {0}.", - "Add_a_type_annotation_to_the_property_0_9029": "Adicione uma anotação de tipo à propriedade {0}.", - "Add_a_type_annotation_to_the_variable_0_9027": "Adicione uma anotação de tipo à variável {0}.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Adicionar um tipo ao parâmetro da declaração do acessório set.", "Add_all_missing_async_modifiers_95041": "Adicionar todos os modificadores 'async' ausentes", "Add_all_missing_attributes_95168": "Adicionar todos os atributos ausentes", "Add_all_missing_call_parentheses_95068": "Adicionar todos os parênteses de chamada ausentes", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Adicionar todas as importações ausentes", "Add_all_missing_members_95022": "Adicionar todos os membros ausentes", "Add_all_missing_override_modifiers_95162": "Adicionar todos os modificadores 'override' ausentes", - "Add_all_missing_parameters_95190": "Adicionar todos os parâmetros ausentes", "Add_all_missing_properties_95166": "Adicionar todas as propriedades ausentes", "Add_all_missing_return_statement_95114": "Adicionar todas as instruções return ausentes", "Add_all_missing_super_calls_95039": "Adicionar todas as chamadas super ausentes", - "Add_all_missing_type_annotations_90067": "Adicione todas as anotações de tipo ausentes", - "Add_all_optional_parameters_95193": "Adicione todos os parâmetros opcionais", - "Add_annotation_of_type_0_90062": "Adicionar anotação do tipo '{0}'", "Add_async_modifier_to_containing_function_90029": "Adicione o modificador assíncrono que contém a função", "Add_await_95083": "Adicionar 'await'", "Add_await_to_initializer_for_0_95084": "Adicionar 'await' ao inicializador para '{0}'", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Adicionar inicializadores a todas as propriedades não inicializadas", "Add_missing_attributes_95167": "Adicionar atributos ausentes", "Add_missing_call_parentheses_95067": "Adicionar os parênteses de chamada ausentes", - "Add_missing_comma_for_object_member_completion_0_95187": "Adicionar vírgula ausente para conclusão de membro de objeto '{0}'.", "Add_missing_enum_member_0_95063": "Adicionar membro de enumeração ausente '{0}'", "Add_missing_function_declaration_0_95156": "Adicionar a declaração de função ausente '{0}'", "Add_missing_new_operator_to_all_calls_95072": "Adicionar operador 'new' ausente a todas as chamadas", "Add_missing_new_operator_to_call_95071": "Adicionar operador 'new' ausente à chamada", - "Add_missing_parameter_to_0_95188": "Adicionar parâmetro ausente a '{0}'", - "Add_missing_parameters_to_0_95189": "Adicionar parâmetros ausentes a '{0}'", "Add_missing_properties_95165": "Adicionar propriedades ausentes", "Add_missing_super_call_90001": "Adicionar chamada 'super()' ausente", "Add_missing_typeof_95052": "Adicionar 'typeof' ausente", "Add_names_to_all_parameters_without_names_95073": "Adicionar nomes a todos os parâmetros sem nomes", - "Add_optional_parameter_to_0_95191": "Adicionar parâmetro opcional a '{0}'", - "Add_optional_parameters_to_0_95192": "Adicionar parâmetros opcionais ao '{0}'", "Add_or_remove_braces_in_an_arrow_function_95058": "Adicionar ou remover chaves em uma função de seta", "Add_override_modifier_95160": "Adicionar modificador \"override\"", "Add_parameter_name_90034": "Adicionar nome de parâmetro", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Adicionar um qualificador a todas as variáveis não resolvidas correspondentes a um nome de membro", - "Add_resolution_mode_import_attribute_95196": "Adicionar o atributo de importação 'resolution-mode'", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Adicionar o atributo de importação 'resolution-mode' a todas as importações somente de tipo que precisem dele", - "Add_return_type_0_90063": "Adicionar tipo de retorno '{0}'", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Adicione satisfies e uma asserção de tipo a esta expressão (satisfies T as T) para tornar o tipo explícito.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Adicionar satisfies e uma asserção de tipo embutido com '{0}'", "Add_to_all_uncalled_decorators_95044": "Adicionar '()' a todos os decoradores não chamados", "Add_ts_ignore_to_all_error_messages_95042": "Adicionar '@ts-ignore' a todas as mensagens de erro", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Adicione 'indefinido' a um tipo quando acessado usando um índice.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Permita importações padrão de módulos sem exportação padrão. Isso não afeta a emissão do código, apenas a verificação de digitação.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Permitir 'importar x de y' quando um módulo não tiver uma exportação padrão.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Permitir a importação de funções auxiliares do tslib uma vez por projeto, em vez de incluí-las por arquivo.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Permitir que as importações incluam extensões de arquivo TypeScript. Requer a definição de '--moduleResolution bundler' e '--noEmit' ou '--emitDeclarationOnly'.", "Allow_javascript_files_to_be_compiled_6102": "Permita que arquivos javascript sejam compilados.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Permitir que várias pastas sejam tratadas como uma ao resolver módulos.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "O nome do arquivo '{0}' já incluído difere do nome de arquivo '{1}' somente em maiúsculas e minúsculas.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Não foi fornecido um argumento correspondente a esse padrão de associação.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Um operando aritmético deve ser do tipo 'any', 'number', 'bignit' ou um tipo enumerado.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Uma função de seta não pode ter um parâmetro 'this'.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Uma função ou método assíncrono no ES5 requer o construtor 'Promise'. Verifique se você tem uma declaração para o construtor 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Uma função ou método assíncrono em ES5/ES3 requer o construtor 'Promise'. Verifique se você tem uma declaração para o construtor 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Uma função ou método assíncrono deve retornar um 'Promise'. Verifique se você tem uma declaração para 'Promise' ou inclua 'ES2015' na sua opção '--lib'.", "An_async_iterator_must_have_a_next_method_2519": "O iterador assíncrono deve ter um método 'next()'.", "An_element_access_expression_should_take_an_argument_1011": "Uma expressão de acesso do elemento deveria receber um argumento.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Uma declaração de exportação só pode ser usada no nível superior de um módulo.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Uma declaração de exportação só pode ser usada no nível superior de um namespace ou módulo.", "An_export_declaration_cannot_have_modifiers_1193": "Uma declaração de exportação não pode ter modificadores.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Uma declaração 'export =' deve fazer referência a um valor real quando 'verbatimModuleSyntax' estiver habilitado, mas '{0}' resolve para uma declaração somente de tipo.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Uma declaração 'export =' deve fazer referência a um valor quando 'verbatimModuleSyntax' estiver habilitado, mas '{0}' refere-se apenas a um tipo.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "Um 'export default' deve referenciar um valor real quando 'verbatimModuleSyntax' estiver habilitado, mas '{0}' resolve para uma declaração somente de tipo.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "Um 'export default' deve referenciar um valor real quando 'verbatimModuleSyntax' estiver habilitado, mas '{0}' se refere somente a um tipo.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Uma expressão do tipo 'nula' não pode ser testada quanto à veracidade.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Um valor de escape Unicode estendido deve estar entre 0x0 e 0x10FFFF, inclusive.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Um identificador ou palavra-chave não pode imediatamente seguir um literal numérico.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Uma implementação não pode ser declarada em contextos de ambiente.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Um alias de importação não pode fazer referência a uma declaração que foi exportada usando 'tipo de exportação'.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Um alias de importação não pode fazer referência a uma declaração que foi importada usando 'tipo de importação'.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Um alias de importação não pode resolver uma declaração de tipo ou somente tipo quando \"verbatimModuleSyntax\" estiver habilitado.", "An_import_alias_cannot_use_import_type_1392": "Um alias de importação não pode usar um 'tipo de importação'", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "Uma declaração de importação só pode ser usada no nível superior de um módulo.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "Uma declaração de importação só pode ser usada no nível superior de um namespace ou módulo.", "An_import_declaration_cannot_have_modifiers_1191": "Uma declaração de importação não pode ter modificadores.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Um caminho de importação só pode terminar com uma extensão '{0}' quando 'allowImportingTsExtensions' estiver habilitado.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Um caminho de importação não pode terminar com uma extensão '{0}'. Considere importar '{1}'.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Uma assinatura de índice não pode ter um parâmetro rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Uma assinatura de índice não pode ter uma vírgula à direita.", "An_index_signature_must_have_a_type_annotation_1021": "Uma assinatura de índice deve ter uma anotação de tipo.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Uma expressão de instanciação não pode ser seguida por um acesso de propriedade.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Uma interface só pode estender um identificador/nome qualificado com argumentos de tipo opcionais.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Uma interface só pode estender um tipo de objeto ou interseção de tipos de objeto com membros estaticamente conhecidos.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Uma interface não pode estender um tipo primitivo como '{0}'. Ela só pode estender outros tipos de objetos nomeados.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Uma interface não pode estender um tipo primitivo como '{0}'; uma interface só pode estender tipos e classes nomeados", "An_interface_property_cannot_have_an_initializer_1246": "Uma propriedade de interface não pode ter um inicializador.", "An_iterator_must_have_a_next_method_2489": "Um iterador deve ter um método 'next()'.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "Um pragma @jsxFrag é necessário ao usar um pragma @jsx com fragmentos JSX.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Um literal de objeto não pode ter várias propriedades com o mesmo nome.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Um literal de objeto não pode ter propriedade e acessador com o mesmo nome.", "An_object_member_cannot_be_declared_optional_1162": "Um membro de objeto não pode ser declarado como opcional.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "O método '[Symbol.hasInstance]' de um objeto deve retornar um valor booliano para que ele seja usado no lado direito de uma expressão 'instanceof'.", "An_optional_chain_cannot_contain_private_identifiers_18030": "Uma cadeia opcional não pode conter identificadores privados.", "An_optional_element_cannot_follow_a_rest_element_1266": "Um elemento opcional não pode seguir um elemento REST.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Um valor externo de 'this' é sombreado por este contêiner.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "A assinatura de sobrecarga não pode ser declarada como geradora.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Uma expressão unária com o operador '{0}' não é permitida no lado esquerdo de uma expressão de exponenciação. Considere delimitar a expressão em parênteses.", "Annotate_everything_with_types_from_JSDoc_95043": "Anotar tudo com tipos do JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Anotar tipos de propriedades da função expando em um namespace", "Annotate_with_type_from_JSDoc_95009": "Anotar com o tipo do JSDoc", "Another_export_default_is_here_2753": "Outro padrão de exportação está aqui.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Qualquer propriedade Unicode que possa corresponder a mais de um único caractere só estará disponível quando o sinalizador Conjuntos Unicode (v) estiver definido.", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Qualquer coisa que possa corresponder a mais de um único caractere é inválida dentro de uma classe de caractere negada.", "Are_you_missing_a_semicolon_2734": "Você está esquecendo de um ponto e vírgula?", "Argument_expression_expected_1135": "Expressão de argumento esperada.", "Argument_for_0_option_must_be_Colon_1_6046": "O argumento para a opção '{0}' deve ser: {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "O argumento do tipo '{0}' não pode ser atribuído ao parâmetro do tipo '{1}' com 'exactOptionalPropertyTypes: true'. Considere adicionar 'undefined' aos tipos das propriedades do destino.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Não foram fornecidos argumentos para o parâmetro REST '{0}'.", "Array_element_destructuring_pattern_expected_1181": "Padrão de desestruturação de elemento da matriz esperado.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Matrizes com elementos espalhados não podem ser inferidas com --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "As declarações exigem que todos os nomes no destino de chamada sejam declarados com uma anotação de tipo explícito.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "As declarações exigem que o destino da chamada seja um identificador ou um nome qualificado.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Não há suporte para a atribuição de propriedades a funções sem declará-las com --isolatedDeclarations. Adicione uma declaração explícita para as propriedades atribuídas a essa função.", "Asterisk_Slash_expected_1010": "'*/' esperado.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "Pelo menos um acessor deve ter uma anotação de tipo explícita com `--isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Acréscimos de escopo global somente podem ser diretamente aninhados em módulos externos ou declarações de módulo de ambiente.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Acréscimos de escopo global devem ter o modificador 'declare' a menos que apareçam em contexto já ambiente.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "A descoberta automática para digitações está habilitada no projeto '{0}'. Executando o passe de resolução extra para o módulo '{1}' usando o local do cache '{2}'.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "A expressão Await não pode ser usada dentro de um bloco estático de classe.", "BUILD_OPTIONS_6919": "OPÇÕES DE BUILD", "Backwards_Compatibility_6253": "Compatibilidade com Versões Anteriores", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "As expressões de classe base não podem referenciar parâmetros de tipo de classe.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Os literais de BigInt não estão disponíveis ao direcionar para menos de ES2020.", "Binary_digit_expected_1177": "Dígito binário esperado.", "Binding_element_0_implicitly_has_an_1_type_7031": "O elemento de associação '{0}' tem implicitamente um tipo '{1}'.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Os elementos de associação não podem ser exportados diretamente com --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Variável de escopo de bloco '{0}' usada antes da sua declaração.", "Build_a_composite_project_in_the_working_directory_6925": "Crie um projeto composto no diretório de trabalho.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Compilar todos os projetos, incluindo aqueles que parecem estar atualizados.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Compilar um ou mais projetos e suas dependências, se estiverem desatualizados", "Build_option_0_requires_a_value_of_type_1_5073": "A opção de build '{0}' requer um valor do tipo {1}.", "Building_project_0_6358": "Compilando o projeto '{0}'...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Iteradores internos são instanciados com um tipo 'TReturn' de 'undefined' em vez de 'any'.", "COMMAND_LINE_FLAGS_6921": "SINALIZADORES DE LINHA DE COMANDO", "COMMON_COMMANDS_6916": "COMANDOS COMUNS", "COMMON_COMPILER_OPTIONS_6920": "OPÇÕES COMUNS DO COMPILADOR", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Os tipos de retorno da assinatura de chamada '{0}' e '{1}' são incompatíveis.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Assinatura de chamada, que não tem a anotação de tipo de retorno, implicitamente tem um tipo de retorno 'any'.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Assinaturas de chamada sem argumentos têm tipos de retorno incompatíveis '{0}' e '{1}'.", + "Call_target_does_not_contain_any_signatures_2346": "O destino da chamada não contém nenhuma assinatura.", "Can_only_convert_logical_AND_access_chains_95142": "Só é possível converter cadeias de acesso E lógicas", "Can_only_convert_named_export_95164": "Só pode converter exportação nomeada", "Can_only_convert_property_with_modifier_95137": "Só é possível converter a propriedade com o modificador", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Só é possível converter concatenações de cadeia de caracteres e literais de cadeia de caracteres", + "Can_only_convert_string_concatenation_95154": "Só é possível converter a concatenação de cadeia de caracteres", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Não foi possível acessar '{0}.{1}' porque '{0}' é um tipo, mas não um namespace. Você quis dizer recuperar o tipo da propriedade '{1}' em '{0}' com '{0}[\"{1}\"]'?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Não é possível acessar '{0}' de outro arquivo sem qualificação quando '{1}' estiver habilitado. Use '{2}' em vez disso.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Não é possível acessar enumerações const de ambiente quando '{0}' estiver habilitado.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Não é possível acessar enumerações de constante de ambiente quando o sinalizador '--isolatedModules' é fornecido.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Não é possível atribuir um tipo de construtor '{0}' para um tipo de construtor '{1}'.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Não é possível atribuir um tipo de construtor abstrato a um tipo de construtor não abstrato.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Não é possível fazer a atribuição a '{0}' porque ela é uma classe.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Não é possível encontrar a definição de biblioteca para '{0}'.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Não é possível encontrar a definição de biblioteca para '{0}'. Você quis dizer '{1}'?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Não é possível localizar o módulo '{0}'. Considere usar '--resolveJsonModule' para importar o módulo com a extensão '.json'.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Não é possível localizar o módulo '{0}'. Você quis definir a opção 'moduleResolution' como 'nodenext' ou adicionar aliases à opção 'paths'?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Não é possível localizar o módulo '{0}'. Você quis definir a opção 'moduleResolution' como 'node' ou adicionar aliases à opção 'paths'?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Não é possível localizar o módulo '{0}' ou suas declarações de tipo correspondentes.", "Cannot_find_name_0_2304": "Não é possível encontrar o nome '{0}'.", "Cannot_find_name_0_Did_you_mean_1_2552": "Não é possível localizar o nome '{0}'. Você quis dizer '{1}'?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Não foi possível encontrar o nome '{0}'. Você quis escrever isto em uma função assíncrona?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Não é possível encontrar o nome '{0}'. Você precisa alterar sua biblioteca de destino? Tente alterar a opção 'lib' do compilador para '{1}' ou posterior.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Não é possível encontrar o nome '{0}'. Você precisa alterar sua biblioteca de destino? Tente alterar a opção 'lib' do compilador para incluir 'dom'.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Não é possível encontrar o nome '{0}'. Você precisa instalar definições de tipo para o Bun? Tente '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_2868": "Não é possível encontrar o nome '{0}'. Você precisa instalar definições de tipo para o Bun? Tente 'npm i --save-dev @types/bun' e adicione 'bun' ao campo de tipos em seu tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Não é possível localizar o nome '{0}'. Você precisa instalar definições de tipo para um executor de teste? Tente `npm i --save-dev @types/jest` ou `npm i --save-dev @types/mocha`.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Não é possível encontrar o nome '{0}'. Você precisa instalar as definições de tipo para um executor de teste? Tente `npm i --save-dev @types/jest` ou `npm i --save-dev @types/mocha` e depois adicione 'jest' ou 'mocha' ao campo tipos em seu tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Não é possível localizar o nome '{0}'. Você precisa instalar definições de tipo para o jQuery? Tente `npm i --save-dev @types/jquery`.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Não é possível iterar o valor porque o método 'next' de seu iterador espera o tipo '{1}', mas a desestruturação da matriz sempre enviará '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Não é possível iterar o valor porque o método 'next' de seu iterador espera o tipo '{1}', mas o array spread sempre enviará '{0}'.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Não é possível iterar o valor porque o método 'next' de seu iterador espera o tipo '{1}', mas a instrução for-of sempre enviará '{0}'.", - "Cannot_move_statements_to_the_selected_file_95183": "Não é possível mover instruções para o arquivo selecionado", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Não é possível mover para o arquivo, o arquivo selecionado é inválido", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Não é possível preceder o projeto '{0}' porque ele não tem o conjunto 'outFile'", "Cannot_read_file_0_5083": "Não é possível ler o arquivo '{0}'.", "Cannot_read_file_0_Colon_1_5012": "Não é possível ler o arquivo '{0}': {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Não é possível declarar novamente a variável de escopo de bloco '{0}'.", "Cannot_redeclare_exported_variable_0_2323": "Não é possível redeclarar a variável exportada '{0}'.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Não é possível declarar novamente o identificador '{0}' na cláusula catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Não é possível iniciar uma chamada de função em uma anotação de tipo.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Não é possível atualizar a saída do projeto '{0}' porque houve um erro ao ler o arquivo '{1}'", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Não é possível usar JSX, a menos que o sinalizador '--jsx' seja fornecido.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Não é possível usar 'export import' em um tipo ou namespace somente de tipo quando '{0}' estiver habilitado.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Não é possível usar \"exportar importação\" em um namespace de tipo ou apenas de tipo quando a bandeira \"--isolatedModules\" é fornecida.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Não será possível usar importações, exportações ou acréscimos de módulo quando '--module' for 'none'.", "Cannot_use_namespace_0_as_a_type_2709": "Não é possível usar o namespace '{0}' como um tipo.", "Cannot_use_namespace_0_as_a_value_2708": "Não é possível usar o namespace '{0}' como um valor.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Alterar 'extends' para 'implements'", "Change_spelling_to_0_90022": "Alterar ortografia para '{0}'", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Verifique as propriedades de classe declaradas, mas não definidas no construtor.", - "Check_side_effect_imports_6806": "Verifique as importações de efeitos colaterais.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Verificar se os argumentos para os métodos 'associar', 'chamar' e 'aplicar' correspondem à função original.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Verificando se '{0}' é o maior prefixo correspondente para '{1}' - '{2}'.", "Circular_definition_of_import_alias_0_2303": "Definição circular do alias de importação '{0}'.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "A declaração da classe não pode implementar a lista de sobrecarga para '{0}'.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "As declarações de classe não podem ter mais de uma marca '@augments' ou '@extends'.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Os decoradores de classe não podem ser usados com um identificador privado estático. Considere remover o decorador experimental.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "O campo de classe '{0}' definido pela classe pai não está acessível na classe filho via super.", "Class_name_cannot_be_0_2414": "O nome de classe não pode ser '{0}'.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "O nome da classe não pode ser 'Object' ao direcionar ES5 com módulo {0}.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "O lado estático da classe '{0}' incorretamente estende o lado estático da classe base '{1}'.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Opções da Linha de Comando", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Compile o projeto dando o caminho para seu arquivo de configuração ou para uma pasta com um 'tsconfig.json'.", "Compiler_Diagnostics_6251": "Diagnóstico do Compilador", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "A opção do compilador '{0}' não pode receber uma cadeia de caracteres vazia.", "Compiler_option_0_expects_an_argument_6044": "A opção do compilador '{0}' espera um argumento.", "Compiler_option_0_may_not_be_used_with_build_5094": "A opção de compilador '--{0}' não pode ser usada com '--build'.", "Compiler_option_0_may_only_be_used_with_build_5093": "A opção de compilador '--{0}' pode ser usada somente com '--build'.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Projetos compostos não podem desabilitar a emissão de declaração.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Projetos compostos podem não desabilitar a compilação incremental.", "Computed_from_the_list_of_input_files_6911": "Calculado a partir da lista de arquivos de entrada", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "As propriedades computadas devem ser literais de números ou cadeia de caracteres, variáveis ou expressões pontilhadas com --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "Nomes de propriedade calculados não são permitidos em enums.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Nomes de propriedades computadas em literais de classe ou objeto não podem ser inferidos com --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Os valores computados não são permitidos em uma enumeração com membros de valor de cadeia de caracteres.", "Concatenate_and_emit_output_to_single_file_6001": "Concatenar e emitir saída para um arquivo único.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Condições a serem definidas além dos padrões específicos do resolvedor ao resolver importações.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Foram encontradas definições em conflito para '{0}' em '{1}' e em '{2}'. Considere instalar uma versão específica desta biblioteca para solucionar o conflito.", "Conflicts_are_in_this_file_6201": "Há conflitos neste arquivo.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Considere adicionar um modificador 'declare' para esta classe.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Os tipos de retorno de assinatura de constructo '{0}' e '{1}' são incompatíveis.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Converter '{0}' para o tipo de objeto mapeado", "Convert_all_const_to_let_95102": "Converta todos os 'const' para 'let'", "Convert_all_constructor_functions_to_classes_95045": "Converter todas as funções de construtor em classes", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Converter todas as importações não usadas como um valor para importações somente de tipo", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Converter todos os caracteres inválidos em código de entidade HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Converter todos os tipos re-exportados para exportações somente de tipo", "Convert_all_require_to_import_95048": "Converter todos os 'require' em 'import'", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Converter todos para literais numéricos bigint", "Convert_all_to_default_imports_95035": "Converter tudo para importações padrão", "Convert_all_type_literals_to_mapped_type_95021": "Converter todos os literais de tipo em tipo mapeado", - "Convert_all_typedef_to_TypeScript_types_95177": "Converta todos os typedef em tipos TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Converter a função de seta ou a expressão de função", "Convert_const_to_let_95093": "Converter 'const' para 'let'", "Convert_default_export_to_named_export_95061": "Converter exportação padrão para exportação nomeada", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Converter em expressão de cadeia opcional", "Convert_to_template_string_95096": "Converter para cadeia de caracteres de modelo", "Convert_to_type_only_export_1364": "Converter para exportação somente de tipo", - "Convert_typedef_to_TypeScript_type_95176": "Converta o typedef em um tipo TypeScript.", + "Convert_to_type_only_import_1373": "Converter para importação somente de tipo", "Corrupted_locale_file_0_6051": "Arquivo de localidade {0} corrompido.", "Could_not_convert_to_anonymous_function_95153": "Não foi possível fazer a conversão para a função anônima", "Could_not_convert_to_arrow_function_95151": "Não foi possível fazer a conversão para a função de seta", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Não foi possível encontrar o nome '{0}'. Você quis dizer '{1}'?", "Could_not_find_namespace_import_or_named_imports_95132": "Não foi possível localizar a importação de namespace nem as importações nomeadas", "Could_not_find_property_for_which_to_generate_accessor_95135": "Não foi possível localizar a propriedade para a qual o acessador deve ser gerado", - "Could_not_find_variable_to_inline_95185": "Não foi possível localizar a variável para embutida.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Não foi possível resolver o caminho '{0}' com as extensões: {1}.", "Could_not_write_file_0_Colon_1_5033": "Não foi possível gravar o arquivo '{0}': {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Criar arquivos source map para arquivos JavaScript emitidos.", "Create_sourcemaps_for_d_ts_files_6614": "Criar sourcemaps para arquivos .d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Cria um tsconfig.json com as configurações recomendadas no diretório de trabalho.", "DIRECTORY_6038": "DIRETÓRIO", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Sequências de escape decimais e referências inversas não são permitidas em uma classe de caracteres.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Decimais com zeros à esquerda não são permitidos.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "A declaração aumenta a declaração em outro arquivo. Isso não pode ser serializado.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "A emissão de declaração para este arquivo requer a preservação desta importação para aumentos. Não há suporte para isso com --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "A emissão de declaração para esse arquivo requer o uso do nome privado '{0}'. Uma anotação de tipo explícita pode desbloquear a emissão de declaração.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "A emissão de declaração para esse arquivo requer o uso do nome privado '{0}' do módulo '{1}'. Uma anotação de tipo explícita pode desbloquear a emissão de declaração.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "A declaração emit para esse parâmetro requer a adição implícita de indefinido ao seu tipo. Não há suporte para isso com --isolatedDeclarations.", "Declaration_expected_1146": "Declaração esperada.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "O nome de declaração entra em conflito com o identificador global integrado '{0}'.", "Declaration_or_statement_expected_1128": "Declaração ou instrução esperada.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Declaração ou instrução esperada. Esse \"=\" segue um bloco de instruções, portanto, se você pretendia escrever uma atribuição de desestruturação, talvez seja necessário encapsular toda a atribuição entre parênteses.", + "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "É esperada uma declaração ou uma instrução. Este '=' segue um bloco de instruções, portanto, se você pretende gravar uma atribuição de desestruturação, talvez seja necessário encapsular toda a atribuição entre parênteses.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "As declarações com asserções de atribuição definitiva também precisam ter anotações de tipo.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "As declarações com inicializadores também não podem ter asserções de atribuição definitiva.", "Declare_a_private_field_named_0_90053": "Declare um campo privado chamado '{0}'.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Declarar propriedade estática '{0}'", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "O tipo de retorno da função decorador '{0}' não é atribuível ao tipo '{1}'.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "O tipo de retorno da função decorador é '{0}' mas deve ser 'void' ou 'any'.", - "Decorator_used_before_export_here_1486": "Decorador usado antes de 'export' aqui.", "Decorators_are_not_valid_here_1206": "Os decoradores não são válidos aqui.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Os decoradores não podem ser aplicados a vários acessadores get/set de mesmo nome.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Os decoradores podem não aparecer após 'export' ou 'export default' se também aparecerem antes de 'export'.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Decoradores não podem ser aplicados a parâmetros 'this'.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Os decoradores devem preceder o nome e todas as palavras-chave das declarações de propriedade.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Padronize as variáveis da cláusula catch como 'desconhecido' em vez de 'qualquer'.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "A exportação padrão do módulo tem ou está usando o nome particular '{0}'.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "As exportações padrão não podem ser inferidas com --isolatedDeclarations.", "Default_library_1424": "Biblioteca padrão", "Default_library_for_target_0_1425": "Biblioteca padrão para o destino '{0}'", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "As definições dos seguintes identificadores estão em conflito com as de outro arquivo: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Desabilitar a exclusão de declarações 'enum const' no código gerado.", "Disable_error_reporting_for_unreachable_code_6603": "Desabilitar o relatório de erros para código inacessível.", "Disable_error_reporting_for_unused_labels_6604": "Desabilitar o relatório de erros para rótulos não utilizados.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Desative a verificação completa do tipo (somente erros críticos de análise e emissão serão relatados).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Desabilitar funções auxiliares personalizadas como '__extends' nas saídas compiladas.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Desabilitar a inclusão de qualquer arquivo de biblioteca, incluindo o padrão lib.d.ts.", "Disable_loading_referenced_projects_6235": "Desabilite o carregamento de projetos referenciados.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Não permitir 'importar', 'necessário ou' de expandir o número de arquivos que TypeScript deve adicionar a um projeto.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Não permitir referências com maiúsculas de minúsculas inconsistentes no mesmo arquivo.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Não adicionar as referências de barra tripla nem os módulos importados à lista de arquivos compilados.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Não permitir construções de tempo de execução que não fazem parte de ECMAScript.", "Do_not_emit_comments_to_output_6009": "Não emita comentários para a saída.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Não emita declarações de código que contenham uma anotação '@internal'.", "Do_not_emit_outputs_6010": "Não emita saídas.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Não relate erros sobre código inacessível.", "Do_not_report_errors_on_unused_labels_6074": "Não relate erros sobre rótulos não utilizados.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Não resolver o real caminho de symlinks.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Não transforme ou elimine quaisquer importações ou exportações não marcadas como somente tipo, garantindo que sejam gravadas no formato do arquivo de saída com base na configuração 'module'.", "Do_not_truncate_error_messages_6165": "Não truncar as mensagens de erro.", "Duplicate_function_implementation_2393": "Implementação de função duplicada.", "Duplicate_identifier_0_2300": "Identificador '{0}' duplicado.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Assinatura de índice duplicada para o tipo '{0}'.", "Duplicate_label_0_1114": "Rótulo '{0}' duplicado.", "Duplicate_property_0_2718": "Propriedade '{0}' duplicada.", - "Duplicate_regular_expression_flag_1500": "Duplicar o sinalizador de expressão regular.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "O especificador da importação dinâmica deve ser do tipo 'string', mas aqui tem o tipo '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Só há suporte para importações dinâmicas quando o sinalizador '--module' está definido como 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18' ou 'nodenext'.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "As importações dinâmicas só podem aceitar um especificador de módulo e um conjunto opcional de atributos como argumentos", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "As importações dinâmicas só darão suporte a um segundo argumento quando a opção '--module' estiver definida como 'esnext', 'node16', 'node18', 'nodenext' ou 'preserve'.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "A sintaxe ESM não é permitida em um módulo CommonJS quando 'module' estiver definido como 'preserve'.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "A sintaxe ESM não é permitida em um módulo CommonJS quando a opção \"verbatimModuleSyntax\" estiver habilitada.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Cada declaração de '{0}.{1}' difere em seu valor, onde '{2}' era esperado, mas '{3}' foi fornecido.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Só há suporte para importações dinâmicas quando o sinalizador '--module' está definido como 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' ou 'nodenext'.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "As importações dinâmicas somente podem aceitar um especificador de módulo e uma asserção opcional como argumentos", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "As importações dinâmicas suportam apenas um segundo argumento quando a opção '--module' é definida como 'esnext', 'node16' ou 'nodenext'.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Cada membro do tipo de união '{0}' tem assinaturas de constructo, mas nenhuma dessas assinaturas é compatível entre si.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Cada membro do tipo de união '{0}' tem assinaturas, mas nenhuma dessas assinaturas é compatível entre si.", "Editor_Support_6249": "Suporte do Editor", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Habilitar o relatório de erros em arquivos JavaScript verificados por tipo.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Habilitar relatório de erros quando as variáveis locais não forem lidas.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Habilitar relatório de erros quando 'this' for fornecido o tipo 'any'.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Habilite o suporte experimental para decoradores experimentais herdados.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Permite a importação de arquivos com qualquer extensão, desde que um arquivo de declaração esteja presente.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Habilitar suporte experimental para decoradores de rascunho do TC39 estágio 2.", "Enable_importing_json_files_6689": "Habilitar importação de arquivos .json.", - "Enable_lib_replacement_6808": "Habilitar substituição de biblioteca.", "Enable_project_compilation_6302": "Habilitar a compilação do projeto", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Habilite os métodos estritos 'bind', 'call' e 'apply' em funções.", "Enable_strict_checking_of_function_types_6186": "Habilitar verificação estrita de tipos de função.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Certifique-se de que a capitalização esteja correta nas importações.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Certifique-se que cada arquivo pode ser convertido em segurança sem depender de outras importações.", "Ensure_use_strict_is_always_emitted_6605": "Certifique-se de que 'use strict' seja sempre emitido.", - "Entering_conditional_exports_6413": "Inserção de exportações condicionais.", "Entry_point_for_implicit_type_library_0_1420": "Ponto de entrada para a biblioteca de tipos implícita '{0}'", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Ponto de entrada para a biblioteca de tipos implícita '{0}' com packageId '{1}'", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Ponto de entrada da biblioteca de tipos '{0}' especificado em compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "As declarações enum só podem ser mescladas com namespaces ou com outras declarações enum.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Declarações de enumeração devem ser const ou não const.", "Enum_member_expected_1132": "Membro de enumeração esperado.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "O membro Enumeração que segue um membro numérico não literal deve ter um inicializador quando 'isolatedModules' estiver habilitado.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Os inicializadores de membros de Enumeração devem ser computáveis sem referências a símbolos externos com --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "O membro de enumeração deve ter um inicializador.", "Enum_name_cannot_be_0_2431": "O nome de enumeração não pode ser '{0}'.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "O tipo de Enumeração '{0}' tem membros com inicializadores que não são literais.", "Errors_Files_6041": "Arquivos de Erros", - "Escape_sequence_0_is_not_allowed_1488": "A sequência de escape '{0}' não é permitida.", "Examples_Colon_0_6026": "Exemplos: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Complexidade excessiva ao comparar os tipos '{0}' e '{1}'.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Profundidade da pilha excessiva ao comparar tipos '{0}' e '{1}'.", - "Exiting_conditional_exports_6416": "Saída das exportações condicionais.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Espera-se {0}-{1} argumentos de tipo; forneça esses recursos com uma marca \"@extends\".", "Expected_0_arguments_but_got_1_2554": "{0} argumentos eram esperados, mas {1} foram obtidos.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} argumentos eram esperados, mas foram obtidos {1}. Você esqueceu de incluir 'void' no argumento de tipo para 'Promise'?", "Expected_0_type_arguments_but_got_1_2558": "{0} argumentos de tipo eram esperados, mas {1} foram obtidos.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Espera-se {0} argumentos de tipo; forneça esses recursos com uma marca \"@extends\".", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Esperava 1 argumento, mas obteve 0. 'new Promise()' precisa de uma dica JSDoc para produzir um 'resolver' que pode ser chamado sem argumentos.", - "Expected_a_Unicode_property_name_1523": "Esperado um nome de propriedade Unicode.", - "Expected_a_Unicode_property_name_or_value_1527": "Espera-se um nome ou valor de propriedade Unicode.", - "Expected_a_Unicode_property_value_1525": "Espera-se um valor da propriedade Unicode.", - "Expected_a_capturing_group_name_1514": "Esperado um nome de grupo de captura.", - "Expected_a_class_set_operand_1520": "Espera-se um operando de conjunto de classes.", "Expected_at_least_0_arguments_but_got_1_2555": "Pelo menos {0} argumentos eram esperados, mas {1} foram obtidos.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Marca de fechamento de JSX correspondente esperada para '{0}'.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Marca de fechamento correspondente esperada para fragmento JSX.", "Expected_for_property_initializer_1442": "Esperado '=' para inicializador de propriedade.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "O tipo esperado do campo '{0}' em 'package.json' como '{1}' obteve '{2}'.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "O suporte experimental de decorador é um recurso que está sujeito a alterações em uma liberação futura. Configure a opção 'experimentalDecorators' em seu 'tsconfig' ou 'jsconfig' para remover este aviso.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Tipo de resolução de módulo especificado explicitamente: '{0}'.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "A exponenciação não pode ser executada nos valores 'bigint', a menos que a opção 'target' esteja definida como 'es2016' ou posterior.", "Export_0_from_module_1_90059": "Exportar '{0}' do módulo '{1}'", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "A variável exportada '{0}' tem ou está usando o nome particular '{1}'.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Exportações e designações de exportações não são permitidas em acréscimos de módulo.", "Expression_expected_1109": "Expressão esperada.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "A expressão deve ser colocada entre parênteses para ser usada como um decorador.", "Expression_or_comma_expected_1137": "Expressão ou vírgula esperada.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "A expressão produz um tipo de tupla grande demais para ser representada.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "A expressão produz um tipo de união muito complexo para representar.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "A expressão é resolvida como '_super', que o compilador utiliza para capturar a referência da classe base.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "A expressão é resolvida para a declaração de variável '_newTarget' que o compilador usa para capturar a referência de metapropriedade 'new.target'.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "A expressão é resolvida como a declaração de variável '_this' que o compilador utiliza para capturar a referência 'this'.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "O tipo de expressão não pode ser inferido com --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "A cláusula Extends não pode conter uma expressão com --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "A cláusula extends para o tipo inferido '{0}' tem ou está usando o nome particular '{1}'.", - "Extract_base_class_to_variable_90064": "Extrair classe base para variável", - "Extract_binding_expressions_to_variable_90066": "Extrair expressões de associação para variável", "Extract_constant_95006": "Extrair constante", - "Extract_default_export_to_variable_90065": "Extrair exportação padrão para variável", "Extract_function_95005": "Extrair função", "Extract_to_0_in_1_95004": "Extrair para {0} em {1}", "Extract_to_0_in_1_scope_95008": "Extrair para {0} no escopo {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Extrair para interface", "Extract_to_type_alias_95078": "Extrair para alias de tipo", "Extract_to_typedef_95079": "Extrair para typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Extrair para variável e substituir por '{0} as typeof {0}'", "Extract_type_95077": "Tipo de extração", "FILE_6035": "ARQUIVO", "FILE_OR_DIRECTORY_6040": "ARQUIVO OU DIRETÓRIO", - "Failed_to_find_peerDependency_0_6283": "Falha ao localizar peerDependency '{0}'.", - "Failed_to_resolve_under_condition_0_6415": "Falha ao resolver na condição '{0}'.", + "Failed_to_parse_file_0_Colon_1_5014": "Falha ao analisar arquivo '{0}': {1}.", "Fallthrough_case_in_switch_7029": "Caso de fallthrough no comutador.", "File_0_does_not_exist_6096": "O arquivo '{0}' não existe.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "O arquivo '{0}' não existe de acordo com as pesquisas anteriores em cache.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "O arquivo '{0}' existe; use-o como um resultado de resolução de nome.", "File_0_exists_according_to_earlier_cached_lookups_6239": "O arquivo '{0}' existe de acordo com as pesquisas anteriores em cache.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "O arquivo '{0}' existe; use-o como um resultado de resolução de nome.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "O arquivo '{0}' tem uma extensão sem suporte. As únicas extensões com suporte são {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "O arquivo '{0}' tem uma extensão sem suporte, portanto ele será ignorado.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "O arquivo '{0}' é um arquivo JavaScript. Você quis habilitar a opção 'allowJs'?", "File_0_is_not_a_module_2306": "O arquivo '{0}' não é um módulo.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "O arquivo '{0}' não está na lista de arquivos de projeto '{1}'. Os projetos devem listar todos os arquivos ou usar um padrão 'include'.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "O arquivo '{0}' não está em 'rootDir' '{1}'. Espera-se que 'rootDir' contenha todos os arquivos de origem.", "File_0_not_found_6053": "Arquivo '{0}' não encontrado.", "File_Management_6245": "Gerenciamento de Arquivos", - "File_appears_to_be_binary_1490": "O arquivo parece ser binário.", "File_change_detected_Starting_incremental_compilation_6032": "Alteração do arquivo detectada. Iniciando compilação incremental...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "O arquivo é um módulo CommonJS porque '{0}' não tem o campo \"type\"", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "O arquivo é o módulo CommonJS porque '{0}' tem o campo \"type\" cujo valor não é \"module\"", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "O arquivo é a saída da origem de referência do projeto '{0}'", "File_is_source_from_referenced_project_specified_here_1416": "O arquivo é a origem do projeto referenciado especificado aqui.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "O nome do arquivo '{0}' difere do nome de arquivo '{1}' já incluído somente em maiúsculas e minúsculas.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "O nome de arquivo '{0}' tem uma extensão '{1}' – procurando '{2}' em vez disso.", "File_name_0_has_a_1_extension_stripping_it_6132": "O nome do arquivo '{0}' tem uma extensão '{1}' – remoção.", "File_redirects_to_file_0_1429": "O arquivo redireciona para o arquivo '{0}'", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "A especificação de arquivo não pode conter um diretório pai ('..') que aparece após um curinga de diretório recursivo ('**'): '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Corrigir todas as expressões possivelmente com 'await' ausente", "Fix_all_implicit_this_errors_95107": "Corrigir todos os erros de 'this' implícitos", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Corrigir todo tipo de retorno incorreto de uma função assíncrona", - "Fix_all_with_type_only_imports_95182": "Corrigir tudo com importações somente de tipo", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Os loops “For Await” não podem ser usados dentro de um bloco estático de classe.", "Found_0_errors_6217": "Encontrados {0} erros.", "Found_0_errors_Watching_for_file_changes_6194": "{0} erros encontrados. Monitorando alterações de arquivo.", "Found_0_errors_in_1_files_6261": "Foram encontrados {0} erros em {1} arquivos.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Foram encontrados {0} erros no mesmo arquivo, começando em: {1}", "Found_1_error_6216": "Encontrado 1 erro.", "Found_1_error_Watching_for_file_changes_6193": "Um erro encontrado. Monitorando alterações de arquivo.", - "Found_1_error_in_0_6259": "Encontrado 1 erro em {0}", + "Found_1_error_in_1_6259": "Encontrado 1 erro em {1}", "Found_package_json_at_0_6099": "'package.json' encontrado em '{0}'.", - "Found_peerDependency_0_with_1_version_6282": "Foi encontrada peerDependency '{0}' com a versão '{1}'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Declarações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES5'.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Declarações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES5'. Definições de classe estão automaticamente em modo estrito.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Declarações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES5'. Módulos estão automaticamente em modo estrito.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Decorações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES3' ou 'ES5'.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Declarações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES3' ou 'ES5'. Definições de classe estão automaticamente em modo estrito.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Declarações de função não são permitidas dentro de blocos em modo estrito quando o objetivo é 'ES3' ou 'ES5'. Módulos estão automaticamente em modo estrito.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "A expressão de função, que não tem a anotação de tipo de retorno, implicitamente tem um tipo de retorno '{0}'.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "A implementação da função está ausente ou não está imediatamente depois da declaração.", "Function_implementation_name_must_be_0_2389": "O nome da implementação de função deve ser '{0}'.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "A função tem o tipo de retorno 'any', de forma implícita, porque ela não tem uma anotação de tipo de retorno e é referenciada direta ou indiretamente em uma das suas expressões de retorno.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "A função não tem a instrução return final e o tipo de retorno não inclui 'undefined'.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "A função deve ter uma anotação de tipo de retorno explícita com --isolatedDeclarations.", "Function_not_implemented_95159": "Função não implementada.", "Function_overload_must_be_static_2387": "A sobrecarga de função deve ser estática.", "Function_overload_must_not_be_static_2388": "A sobrecarga de função não deve ser estática.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Gera um rastreamento de eventos e uma lista de tipos.", "Generates_corresponding_d_ts_file_6002": "Gera o arquivo '.d.ts' correspondente.", "Generates_corresponding_map_file_6043": "Gera o arquivo '.map' correspondente.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "O gerador tem implicitamente o tipo de rendimento \"{0}\". Considere fornecer uma anotação de tipo de retorno.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Implicitamente, o gerador tem o tipo de rendimento '{0}' porque não produz nenhum valor. Considere fornecer uma anotação de tipo de retorno.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Os geradores não são permitidos em um contexto de ambiente.", "Generic_type_0_requires_1_type_argument_s_2314": "O tipo genérico '{0}' exige {1} argumento(s) de tipo.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "O tipo genérico '{0}' exige argumentos de tipo entre {1} e {2}.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Identificador esperado.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. '__esModule' é reservado como um marcador exportado ao transformar os módulos ECMAScript.", "Identifier_or_string_literal_expected_1478": "Identificador ou literal de cadeia de caracteres esperado.", - "Identifier_string_literal_or_number_literal_expected_1496": "Identificador, literal de cadeia de caracteres ou literal de número esperado.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se o pacote '{0}' realmente expõe este módulo, considere enviar uma solicitação de pull para corrigir 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se o pacote '{0}' realmente expõe este módulo, tente adicionar um novo arquivo de declaração (.d.ts) contendo o módulo `declare '{1}';`", "Ignore_this_error_message_90019": "Ignorar essa mensagem de erro", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Implementar a interface '{0}'", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "A cláusula implements da classe exportada '{0}' tem ou está usando o nome particular '{1}'.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "A conversão implícita de um 'symbol' em ' string' falhará em runtime. Considere o encapsulamento desta expressão em 'String(...)'.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "A importação '{0}' está em conflito com o valor global usado neste arquivo, portanto, deve ser declarada com uma importação somente de tipo quando 'isolatedModules' está habilitado.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "A importação '{0}' está em conflito com o valor local, portanto, deve ser declarada com uma importação somente de tipo quando 'isolatedModules' está habilitado.", "Import_0_from_1_90013": "Importar '{0}' de \"{1}\"", "Import_assertion_values_must_be_string_literal_expressions_2837": "Os valores de asserção de importação devem ser expressões literais de cadeias de caracteres.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "As declarações de importação não são permitidas em declarações que compilam para chamadas 'require' do commonjs.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "As declarações de importação são suportadas apenas quando a opção '--module' estiver definida como 'esnext', 'node18', 'nodenext' ou 'preserve'.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "As declarações de importação não são permitidas em declarações que transpilam para chamadas 'require' do commonjs.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "As declarações de importação são suportadas apenas quando a opção '--module' está definida como 'esnext' ou 'nodenext'.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "As afirmações de importação não podem ser usadas com importações ou exportações somente de tipo.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "As asserções de importação foram substituídas por atributos de importação. Use 'with' em vez de 'assert'.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Não é possível usar a atribuição de importação durante o direcionamento para módulos de ECMAScript. Use 'importar * como ns de \"mod\"', 'importar {a} de \"mod\"', 'importar d de \"mod\"' ou outro formato de módulo em vez disso.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Os valores do atributo de importação devem ser expressões literais de cadeias de caracteres.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Atributos de importação não são permitidos em instruções que são compiladas para chamadas 'require' do CommonJS.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Os atributos de importação só têm suporte quando a opção '--module' estiver definida como 'esnext', 'node18', 'nodenext' ou 'preserve'.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Os atributos de importação não podem ser usadas com importações ou exportações somente de tipo.", "Import_declaration_0_is_using_private_name_1_4000": "A declaração da importação '{0}' está usando o nome particular '{1}'.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "A declaração da importação está em conflito com a declaração local '{0}'.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "As declarações de importação em um namespace não podem fazer referência a um módulo.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Importado via {0} do arquivo '{1}' com packageId '{2}'", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Importado via {0} do arquivo '{1}' com packageId '{2}' para importar 'importHelpers' conforme especificado em compilerOptions", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Importado via {0} do arquivo '{1}' com packageId '{2}' para importar as funções de fábrica 'jsx' e 'jsxs'", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "A importação de um arquivo JSON para um módulo ECMAScript requer um 'type: \"json\"' quando o atributo de importação \"module\" estiver definido como \"{0}\".", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Importações não são permitidas em acréscimos de módulo. Considere movê-las para o módulo externo delimitador.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Em declarações de enumeração de ambiente, o inicializador de membro deve ser uma expressão de constante.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Em uma enumeração com várias declarações, somente uma declaração pode omitir um inicializador para o primeiro elemento de enumeração.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Incluir arquivos sourcemap dentro do JavaScript emitido.", "Includes_imports_of_types_referenced_by_0_90054": "Inclui importações de tipos referenciados por '{0}'", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "Incluir --watch, -w começará a observar o projeto atual para as alterações do arquivo. Uma vez definido, você pode configurar o modo de inspeção com:", - "Incomplete_quantifier_Digit_expected_1505": "Quantificador incompleto. Dígito esperado.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "A assinatura do índice para o tipo '{0}' está ausente no tipo '{1}'.", "Index_signature_in_type_0_only_permits_reading_2542": "Assinatura de índice no tipo '{0}' permite somente leitura.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Todas as declarações individuais na declaração mesclada '{0}' devem ser exportadas ou ficar no local.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Inferir tipos de parâmetro pelo uso", "Infer_this_type_of_0_from_usage_95080": "Inferir tipo 'this' de '{0}' do uso", "Infer_type_of_0_from_usage_95011": "Inferir tipo de '{0}' pelo uso", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Não há suporte para inferência de expressões de classe com --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Inicializar a propriedade '{0}' no construtor", "Initialize_static_property_0_90021": "Inicializar a propriedade estática '{0}'", "Initializer_for_property_0_2811": "Inicializador para a propriedade '{0}'", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "O inicializador da variável de membro de instância '{0}' não pode referenciar o identificador '{1}' declarado no construtor.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "O inicializador não fornece um valor para esse elemento de associação e o elemento de associação não tem valor padrão.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Inicializadores não são permitidos em contextos de ambiente.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Inicializa um projeto TypeScript e cria um arquivo tsconfig.json.", - "Inline_variable_95184": "Variável embutida", "Insert_command_line_options_and_files_from_a_file_6030": "Inserir opções e arquivos de linha de comando de um arquivo.", "Install_0_95014": "Instalar '{0}'", "Install_all_missing_types_packages_95033": "Instalar todos os pacotes de tipos ausentes", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nome de módulo inválido em acréscimo, o módulo '{0}' não pôde ser encontrado.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Cadeia opcional inválida da nova expressão. Você quis dizer chamar '{0}()'?", "Invalid_reference_directive_syntax_1084": "Sintaxe de diretiva 'reference' inválida.", - "Invalid_syntax_in_decorator_1498": "Sintaxe inválida no decorador.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Uso inválido de “{0}”. Ele não pode ser usado dentro de um bloco estático de classe.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Uso inválido de '{0}'. Os módulos ficam automaticamente em modo estrito.", "Invalid_use_of_0_in_strict_mode_1100": "Uso inválido de '{0}' no modo estrito.", - "Invalid_value_for_ignoreDeprecations_5103": "Valor inválido para '--ignoreDeprecations'.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Valor inválido para 'jsxFactory'. '{0}' não é um identificador válido ou nome qualificado.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Valor inválido para 'jsxFragmentFactory'. '{0}' não é um identificador válido ou nome qualificado.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Valor inválido para '--reactNamespace'. '{0}' não é um identificador válido.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Seu tipo de elemento '{0}' não é um elemento JSX válido.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Seu tipo de instância '{0}' não é um elemento JSX válido.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Seu tipo de retorno '{0}' não é um elemento JSX válido.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Seu tipo '{0}' não é um elemento JSX válido.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "O '@{0} {1}' do JSDoc não corresponde à cláusula 'extends {2}'.", "JSDoc_0_is_not_attached_to_a_class_8022": "O '@{0}' do JSDoc não está anexado a uma classe.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' só pode aparecer no último parâmetro de uma assinatura.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "A marcação do JSDoc \"@param\" tem o nome \"{0}\", mas não há nenhum parâmetro com esse nome.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "A marca '@param' do JSDoc tem o nome '{0}', mas não há nenhum parâmetro com esse nome. Ela corresponderia a 'argumentos' se tivesse um tipo de matriz.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "Typedef JSDoc pode ser convertido em tipo TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "A marca JSDoc \"@typedef\" deve ter uma anotação de tipo ou ser seguida pelas marcas \"@property\" or \"@member\".", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "Typedefs JSDoc podem ser convertidos em tipos TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Os tipos de JSDoc podem ser usados somente dentro dos comentários de documentação.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Tipos JSDoc podem ser movidos para tipos TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Os atributos JSX só devem ser atribuídos a 'expressões' que não estejam vazias.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Lista de pastas das quais são incluídas as definições de tipo.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Listas das pastas raiz cujo conteúdo combinado representa a estrutura do projeto no tempo de execução.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Carregando '{0}' do diretório raiz '{1}', local candidato '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Carregando o módulo '{0}' da pasta 'node_modules', tipo de arquivo de destino '{1}'.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Carregando módulo como arquivo/pasta, local do módulo candidato '{0}', tipo de arquivo de destino {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Carregando o módulo '{0}' da pasta 'node_modules', tipo de arquivo de destino '{1}'.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Carregando módulo como arquivo/pasta, local do módulo candidato '{0}', tipo de arquivo de destino '{1}'.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "A localidade deve estar no formato ou -. Por exemplo '{0}' ou '{1}'.", "Log_paths_used_during_the_moduleResolution_process_6706": "Caminhos de log usados durante o processo 'moduleResolution'.", "Longest_matching_prefix_for_0_is_1_6108": "O maior prefixo correspondente para '{0}' é '{1}'.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Fazer com que o keyof retorne apenas cadeias de caracteres, números ou símbolos. Opção herdada.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Tornar a chamada 'super()' a primeira instrução no construtor", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "O tipo de objeto mapeado implicitamente tem um tipo de modelo 'any'.", - "Mark_array_literal_as_const_90070": "Marcar literal de matriz como const", "Matched_0_condition_1_6403": "'{0}' correspondente à condição '{1}'.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Correspondido por padrão de inclusão padrão '**/*'", "Matched_by_include_pattern_0_in_1_1407": "Correspondência pelo padrão de inclusão '{0}' em '{1}'", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "O método '{0}' não pode ter uma implementação, pois está marcado como abstrato.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "O método '{0}' da interface exportada tem ou está usando o nome '{1}' do módulo privado '{2}'.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "O método '{0}' da interface exportada tem ou está usando o nome privado '{1}'.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "O método deve ter uma anotação de tipo de retorno explícita com --isolatedDeclarations.", "Method_not_implemented_95158": "Método não implementado.", "Modifiers_cannot_appear_here_1184": "Modificadores não podem aparecer aqui.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "O módulo '{0}' só pode ser importado por padrão usando o sinalizador '{1}'", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "O módulo '{0}' não tem membro exportado '{1}'. Você quis dizer 'importar {1} de {0}' em vez disso?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "O módulo '{0}' está oculto por uma declaração de local com o mesmo nome.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "O módulo '{0}' usa 'export =' e não pode ser usado com 'export *'.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "O módulo '{0}' foi resolvido como um módulo de ambiente declarado em '{1}', já que este arquivo não foi modificado.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "O módulo '{0}' foi resolvido como módulo de ambiente declarado localmente no arquivo '{1}'.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "O módulo '{0}' foi resolvido para '{1}', mas '--allowArbitraryExtensions' não está definido.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "O módulo '{0}' foi resolvido para '{1}', mas '--jsx' não está configurado.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "O módulo '{0}' foi resolvido para '{1}', mas '--resolveJsonModule' não é usado.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Os nomes de declaração de módulo só podem usar ' ou “ cadeias de caracteres entre aspas.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Falha na resolução de módulo usando 'rootDirs'.", "Modules_6244": "Módulos", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Mover os modificadores de elemento de tupla rotulados para rótulos", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Mova a expressão na exportação padrão para uma variável e adicione uma anotação de tipo a ela.", "Move_to_a_new_file_95049": "Mover para um novo arquivo", - "Move_to_file_95178": "Mover para Arquivo", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Não são permitidos vários separadores numéricos consecutivos.", "Multiple_constructor_implementations_are_not_allowed_2392": "Não são permitidas várias implementações de construtor.", "NEWLINE_6061": "NEWLINE", "Name_is_not_valid_95136": "Nome inválido", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Grupos de captura nomeados só estão disponíveis ao direcionar para 'ES2018' ou posterior.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Grupos de captura nomeados com o mesmo nome devem ser mutuamente exclusivos entre si.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "As importações nomeadas de um arquivo JSON para um módulo ECMAScript não são permitidas quando \"module\" é definido como \"{0}\".", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "As propriedades com nome '{0}' dos tipos '{1}' e '{2}' não são idênticas.", "Namespace_0_has_no_exported_member_1_2694": "O namespace '{0}' não tem o membro exportado '{1}'.", "Namespace_must_be_given_a_name_1437": "O Namespace deve receber um nome.", "Namespace_name_cannot_be_0_2819": "O nome do Namespace não pode ser '{0}'.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Namespaces não são permitidos em arquivos de script global quando '{0}' está habilitado. Se esse arquivo não se destina a ser um script global, defina 'moduleDetection' como 'force' ou adicione uma instrução 'export {}' vazia.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "Nem decoradores nem modificadores podem ser aplicados a parâmetros 'this'.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Nenhum construtor base tem o número especificado de argumentos de tipo.", "No_constituent_of_type_0_is_callable_2755": "Nenhum membro do tipo '{0}' pode ser chamado.", "No_constituent_of_type_0_is_constructable_2759": "Nenhum membro do tipo '{0}' é construído.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Nenhuma sobrecarga corresponde a esta chamada.", "No_type_could_be_extracted_from_this_type_node_95134": "Não foi possível extrair nenhum tipo deste nó de tipo", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Não existe valor no escopo para a propriedade abreviada '{0}'. Declare um ou forneça um inicializador.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "A classe não abstrata '{0}' não implementa o membro abstrato herdado {1} da classe '{2}'.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "A classe não abstrata '{0}' não tem implementações para os seguintes membros de '{1}': {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "A classe não abstrata '{0}' não tem implementações para os seguintes membros de '{1}': {2} e mais {3}.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "A classe não abstrata '{0}' não implementa o membro abstrato herdado '{1}' da classe '{2}'.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "A expressão da classe não abstrata não implementa o membro abstrato herdado '{0}' da classe '{1}'.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Não há implementações de expressão de classe não abstrata para os seguintes membros de '{0}': {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Não há implementações de expressão de classe não abstrata para os seguintes membros de '{0}': {1} e mais {2}.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "As declarações não nulas só podem ser usadas em arquivos TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Os caminhos não relativos não são permitidos quando a 'baseUrl' não está definida. Você esqueceu um './' à esquerda?", "Non_simple_parameter_declared_here_1348": "Parâmetro não simples declarado aqui.", "Not_all_code_paths_return_a_value_7030": "Nem todos os caminhos de código retornam um valor.", "Not_all_constituents_of_type_0_are_callable_2756": "Nem todos os membros do tipo '{0}' podem ser chamados.", "Not_all_constituents_of_type_0_are_constructable_2760": "Nem todos os membros do tipo '{0}' são construídos.", - "Numbers_out_of_order_in_quantifier_1506": "Números fora de ordem no quantificador.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Os literais numéricos com valores absolutos iguais a 2^53 ou mais são muito grandes para serem representados precisamente como inteiros.", "Numeric_separators_are_not_allowed_here_6188": "Separadores numéricos não são permitidos aqui.", "Object_is_of_type_unknown_2571": "O objeto é do tipo 'desconhecido'.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "O literal de objeto pode especificar apenas propriedades conhecidas e '{0}' não existe no tipo '{1}'.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "O literal de objeto pode especificar somente propriedades conhecidas, mas o '{0}' não existe no tipo '{1}'. Você queria ter escrito '{2}'?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "A propriedade '{0}' do literal de objeto implicitamente tem um tipo '{1}'.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Objetos que contêm propriedades abreviadas não podem ser inferidos com --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Os objetos que contêm atribuições de espalhamento não podem ser inferidos com --isolatedDeclarations.", "Octal_digit_expected_1178": "Dígito octal esperado.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Sequências de escape octais e referências inversas não são permitidas em uma classe de caracteres. Se isso foi destinado a uma sequência de escape, use a sintaxe '{0}' em vez disso.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Sequências de escape octais não são permitidas. Use a sintaxe '{0}'.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Literais octais não são permitidos. Use a sintaxe '{0}'.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Um valor de '{0}.{1}' é a cadeia de caracteres '{2}', e o outro é considerado um valor numérico desconhecido.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Tipos de literais octais devem usar a sintaxe ES2015. Use a sintaxe '{0}'.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Literais octais não são permitidos em inicializador de membros de enumerações. Use a sintaxe '{0}'.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Literais octais não são permitidos no modo estrito.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Literais octais não estão disponíveis quando se tem como destino ECMAScript 5 e superiores. Use a sintaxe '{0}'.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "É permitida apenas uma única declaração de variável em uma instrução 'for...in'.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "É permitida apenas uma única declaração de variável em uma instrução 'for...of'.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "Apenas uma função void pode ser chamada com a palavra-chave 'new'.", "Only_ambient_modules_can_use_quoted_names_1035": "Somente os módulos de ambiente podem usar nomes entre aspas.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Há suporte somente aos módulos 'amd' e 'system' ao lado de --{0}.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Somente matrizes const podem ser inferidas com --isolatedDeclarations.", "Only_emit_d_ts_declaration_files_6014": "Emita somente arquivos de declaração '.d.ts'.", + "Only_named_exports_may_use_export_type_1383": "Somente as exportações nomeadas podem usar 'export type'.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Somente enumerações numéricas podem ter membros computados, mas esta expressão tem o tipo '{0}'. Se você não precisar de verificações de exaustão, considere o uso de um literal de objeto.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Gerar somente arquivos .d.ts e não arquivos JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Somente métodos protegidos e públicos da classe base são acessíveis pela palavra-chave 'super'.", "Operator_0_cannot_be_applied_to_type_1_2736": "O operador '{0}' não pode ser aplicado ao tipo '{1}'.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "O operador '{0}' não pode ser aplicado aos tipos '{1}' e '{2}'.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Os operadores não devem ser mistos em uma classe de caracteres. Encapsule-o em uma classe aninhada.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Recusar um projeto de verificação de referência de multiprojeto ao editar.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "A opção '{0}={1}' foi removida. Remova-a da configuração.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "A opção '{0}={1}' foi preterida e deixará de funcionar no TypeScript {2}. Especifique compilerOption '\"ignoreDeprecations\": \"{3}\"' para silenciar esse erro.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "A opção '{0}' somente pode ser especificada no arquivo 'tsconfig.json' ou definida como 'false' ou 'null' na linha de comando.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "A opção '{0}' somente pode ser especificada no arquivo 'tsconfig.json' ou definida como 'null' na linha de comando.", - "Option_0_can_only_be_specified_on_command_line_6266": "A opção '{0}' só pode ser especificada na linha de comando.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "A opção '{0} só pode ser usada quando qualquer uma das opções '--inlineSourceMap' ou '--sourceMap' é fornecida.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "A opção '{0}' só pode ser usada quando 'moduleResolution' está definido como 'node16', 'nodenext' ou 'bundler'.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "A opção '{0}' só pode ser usada quando 'module' está definido como 'preserve' ou 'es2015' ou posterior.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "A opção '{0}' não pode ser especificada quando a opção 'jsx' é '{1}'.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "A opção '{0}' não pode ser especificada quando a opção 'target' é 'ES3'.", "Option_0_cannot_be_specified_with_option_1_5053": "A opção '{0}' não pode ser especificada com a opção '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "A opção '{0}' não pode ser especificada sem especificar a opção '{1}'.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "A opção '{0}' não pode ser especificada sem a especificação da opção '{1}' ou '{2}'.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "A opção '{0}' foi removida. Remova-a da configuração.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "A opção '{0}' foi preterida e deixará de funcionar no TypeScript {1}. Especifique compilerOption '\"ignoreDeprecations\": \"{2}\"' para silenciar esse erro.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "A opção '{0}' é redundante e não pode ser especificada com a opção '{1}'.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "A opção 'allowImportingTsExtensions' só pode ser usada quando 'noEmit' ou 'emitDeclarationOnly' está definido.", "Option_build_must_be_the_first_command_line_argument_6369": "A opção '--build' precisa ser o primeiro argumento da linha de comando.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "A opção '--incremental' só pode ser especificada usando tsconfig, emitindo para um arquivo único ou quando a opção '--tsBuildInfoFile' for especificada.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "A opção 'isolatedModules' só pode ser usada quando nenhuma opção de '--module' for fornecida ou a opção 'target' for 'ES2015' ou superior.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "A opção 'moduleResolution' deve ser definida como '{0}' (ou deixada não especificada) quando a opção 'module' está definida como '{1}'.", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "A opção 'module' deve ser definida como '{0}' quando a opção 'moduleResolution' está definida como '{1}'.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "A opção 'preserveConstEnums' não pode ser desabilitada quando '{0}' está habilitada.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "A opção 'preserveConstEnums' não pode ser desabilitada quando 'isolatedModules' está habilitada.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "A opção 'preserveValueImports' só pode ser usada quando 'módulo' está definido como 'es2015' ou posterior.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "A opção 'project' não pode ser mesclada com arquivos de origem em uma linha de comando.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "A opção '--resolveJsonModule' não pode ser especificada quando 'moduleResolution' está definido como 'classic'.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "A opção '--resolveJsonModule' não pode ser especificada quando 'module' está definido como 'none', 'system' ou 'umd'.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "A opção 'texttimModuleSyntax' não pode ser usada quando 'module' está definido como 'UMD', 'AMD' ou 'System'.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "A opção '--resolveJsonModule' só pode ser especificada quando a geração de código de módulo é 'commonjs', 'amd', 'es2015' ou 'esNext'.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "A opção '--resolveJsonModule' não pode ser especificada sem a estratégia de resolução de módulo de 'nó'.", "Options_0_and_1_cannot_be_combined_6370": "As opções '{0}' e '{1}' não podem ser combinadas.", "Options_Colon_6027": "Opções:", "Output_Formatting_6256": "Formatação da Saída", "Output_compiler_performance_information_after_building_6615": "Gerar informações de desempenho do compilador após a criação.", "Output_directory_for_generated_declaration_files_6166": "Diretório de saída para os arquivos de declaração gerados.", + "Output_file_0_from_project_1_does_not_exist_6309": "O arquivo de saída '{0}' do projeto '{1}' não existe", "Output_file_0_has_not_been_built_from_source_file_1_6305": "O arquivo de saída '{0}' não foi compilado do arquivo de origem '{1}'.", "Output_from_referenced_project_0_included_because_1_specified_1411": "Saída do projeto referenciado '{0}' incluída porque '{1}' está especificado", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Saída do projeto referenciado '{0}' incluída porque '--module' está especificado como 'none'", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Declaração de parâmetro esperada.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "O parâmetro tem um nome, mas não um tipo. Você quis dizer '{0}: {1}'?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Modificadores de parâmetro só podem ser usados em arquivos TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "O parâmetro deve ter uma anotação de tipo explícito com --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "O tipo de parâmetro do setter público '{0}' da classe exportada tem ou está usando o nome '{1}' do módulo privado '{2}'.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "O tipo de parâmetro do setter público '{0}' da classe exportada tem ou está usando o nome privado '{1}'.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "O tipo de parâmetro do setter estático público '{0}' da classe exportada tem ou está usando o nome '{1}' do módulo privado '{2}'.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Imprimir os nomes dos arquivos emitidos após uma compilação.", "Print_this_message_6017": "Imprima esta mensagem.", "Private_accessor_was_defined_without_a_getter_2806": "O acessador privado foi definido sem um getter.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "O campo particular '{0}' deve ser declarado em uma classe delimitadora.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Identificadores privados não são permitidos em declarações de variáveis.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Identificadores privados não são permitidos fora dos corpos de classe.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Identificadores privados são permitidos apenas em corpos de classe e só podem ser usados como parte de uma declaração de membro de classe, acesso de propriedade ou no lado esquerdo de uma expressão 'em'", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Identificadores privados só estão disponíveis ao direcionar para o ECMAScript 2015 ou superior.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Não é possível usar identificadores privados como parâmetros.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "O membro privado ou protegido '{0}' não pode ser acessado em um parâmetro de tipo.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "O projeto '{0}' não pode ser compilado porque sua dependência '{1}' tem erros", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "O projeto '{0}' não pode ser criado porque sua dependência '{1}' não foi criada", "Project_0_is_being_forcibly_rebuilt_6388": "O projeto '{0}' está sendo reconstruído forçadamente", - "Project_0_is_out_of_date_because_1_6420": "O projeto '{0}' está desatualizada porque {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "O projeto '{0}' está desatualizada porque o arquivo buildinfo '{1}' indica que o arquivo '{2}' era o arquivo raiz da compilação, mas não é mais.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "O projeto '{0}' está desatualizado porque o arquivo buildinfo '{1}' indica que o programa precisa relatar erros.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "O projeto '{0}' está desatualizado porque o arquivo buildinfo '{1}' indica que algumas das alterações não foram emitidas", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "O projeto '{0}' está desatualizado porque o arquivo buildinfo '{1}' indica que há alteração em compilerOptions", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "O projeto '{0}' está desatualizado porque sua dependência '{1}' está desatualizada", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "O projeto '{0}' está desatualizado porque a saída '{1}' é mais antiga que a entrada '{2}'", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "O projeto '{0}' está desatualizado porque o arquivo de saída '{1}' não existe", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "O projeto '{0}' está desatualizado porque a saída foi gerada com a versão '{1}' que difere da versão atual '{2}'", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "O projeto '{0}' está desatualizado porque a saída de sua dependência '{1}' foi alterada", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "O projeto '{0}' está desatualizado porque ocorreu um erro ao ler o arquivo '{1}'", "Project_0_is_up_to_date_6361": "O projeto '{0}' está atualizado", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "O projeto '{0}' está atualizado porque a entrada mais recente '{1}' é mais antiga que a saída '{2}'", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "A propriedade '{0}' é usada antes da inicialização.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "A propriedade pode não existir '{0}' no tipo '{1}'. Você quis dizer '{2}'?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "A propriedade \"{0}\" do atributo de espalhamento JSX não pode ser atribuída à propriedade de destino.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "A propriedade '{0}' do tipo de classe anônima exportada pode não ser privada ou protegida.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "A propriedade '{0}' da expressão de classe exportada não pode ser privada nem protegida.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "A propriedade '{0}' da interface exportada tem ou está usando o nome '{1}' do módulo particular '{2}'.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "A propriedade '{0}' da interface exportada tem ou está usando o nome particular '{1}'.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "A propriedade '{0}' do tipo '{1}' não pode ser atribuída ao '{2}' tipo de índice '{3}'.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "A propriedade '{0}' substituirá a propriedade base em '{1}'. Se isso for intencional, adicione um inicializador. Caso contrário, adicione um modificador 'declare' ou remova a declaração redundante.", "Property_assignment_expected_1136": "Atribuição de propriedade esperada.", "Property_destructuring_pattern_expected_1180": "Padrão de desestruturação de propriedade esperado.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "A propriedade deve ter uma anotação de tipo explícita com --isolatedDeclarations.", "Property_or_signature_expected_1131": "Propriedade ou assinatura esperada.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "O valor da propriedade pode ser somente um literal de cadeia, um literal numérico, 'true', 'false', 'null', literal de objeto ou literal de matriz.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Fornecer suporte completo para os iteráveis em 'for-of', espalhamento e desestruturação ao direcionar 'ES5'.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Fornecer suporte completo para os iteráveis em 'for-of', espalhamento e desestruturação ao direcionar 'ES5' ou 'ES3'.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "O método público '{0}' da classe exportada tem ou está usando o nome '{1}' do módulo externo {2}, mas não pode ser nomeado.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "O método público '{0}' da classe exportada tem ou está usando o nome '{1}' do módulo privado '{2}'.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "O método público '{0}' da classe exportada tem ou está usando o nome privado '{1}'.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Gerar um erro quando um parâmetro de função não for lido.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Gerar erro em expressões e declarações com um tipo 'any' implícito.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Gerar erro em expressões 'this' com um tipo 'any' implícito.", - "Range_out_of_order_in_character_class_1517": "Intervalo fora de ordem na classe de caracteres.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Exportar novamente um tipo quando '{0}' está habilitado requer o uso de 'tipo de exportação'.", - "React_components_cannot_include_JSX_namespace_names_2639": "Os componentes react não podem incluir nomes de namespace JSX", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Exportar novamente um tipo quando o sinalizador '--isolatedModules' é fornecido requer o uso de 'export type'.", "Redirect_output_structure_to_the_directory_6006": "Redirecione a estrutura de saída para o diretório.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Reduzir o número de projetos carregados automaticamente pelo TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "O projeto referenciado '{0}' pode não desabilitar a emissão.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "O projeto referenciado '{0}' deve ter a configuração de \"composite\": true.", "Referenced_via_0_from_file_1_1400": "Referenciado via '{0}' do arquivo '{1}'", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Os caminhos de importação relativos precisam de extensões de arquivo explícitas nas importações do ECMAScript quando '--moduleResolution' for 'node16' ou 'nodenext'. Considere adicionar uma extensão ao caminho de importação.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Os caminhos de importação relativos precisam de extensões de arquivo explícitas nas importações do ECMAScript quando '--moduleResolution' for 'node16' ou 'nodenext'. Você quis dizer '{0}'?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Os caminhos de importação relativos precisam de extensões de arquivo explícitas nas importações do EcmaScript quando '--moduleResolution' for 'node16' ou 'nodenext'. Considere adicionar uma extensão ao caminho de importação.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Os caminhos de importação relativos precisam de extensões de arquivo explícitas nas importações do EcmaScript quando '--moduleResolution' for 'node16' ou 'nodenext'. Você quis dizer '{0}'?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Remova uma lista de diretórios do processo de inspeção.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Remover uma lista de arquivos do processamento do modo de inspeção.", "Remove_all_unnecessary_override_modifiers_95163": "Remover todos os modificadores 'override' desnecessários", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Relatar erros em arquivos .js.", "Report_errors_on_unused_locals_6134": "Relatar erros nos locais não utilizados.", "Report_errors_on_unused_parameters_6135": "Relatar erros nos parâmetros não utilizados.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Exigir anotação suficiente em exportações para que outras ferramentas possam gerar arquivos de declaração trivialmente.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Exigir que as propriedades não declaradas de assinaturas de índice usem acessos de elemento.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Os parâmetros de tipo necessários podem não seguir os parâmetros de tipo opcionais.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "A resolução para o módulo '{0}' foi encontrada no cache do local '{1}'.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "A resolução para a diretiva de referência de tipo '{0}' foi encontrada no cache a partir do local '{1}'.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Falha na resolução de nome não relativo; tentando com recursos modernos de resolução de Nó desabilitados para ver se a biblioteca npm precisa de atualização de configuração.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Falha na resolução de nome não relativo; tentando com '--moduleResolution bundler' para ver se o projeto pode precisar de atualização de configuração.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Resolva 'keyof' somente para nomes de propriedades com valores de cadeia de caracteres (sem números nem símbolos).", - "Resolved_under_condition_0_6414": "Resolvido sob a condição '{0}'.", "Resolving_in_0_mode_with_conditions_1_6402": "Resolvendo no modo {0} com condições {1}.", "Resolving_module_0_from_1_6086": "======== Resolvendo módulo '{0}' de '{1}'. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Resolvendo nome de módulo '{0}' relativo à URL base '{1}' - '{2}'.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Resolvendo diretiva de referência de tipo '{0}', arquivo contido '{1}', diretório raiz não configurado. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Resolvendo diretiva de referência de tipo '{0}', arquivo contido não configurado, diretório raiz '{1}'. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Resolvendo diretiva de referência de tipo '{0}', arquivo contido não configurado, diretório raiz não configurado. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Resolvendo diretiva de referência de tipo para o programa que especifica typeRoots personalizado, ignorando a pesquisa na pasta 'node_modules'.", "Resolving_with_primary_search_path_0_6121": "Resolvendo com caminho de pesquisa primário '{0}'.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "O parâmetro rest '{0}' implicitamente tem um tipo 'any[]'.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "O parâmetro REST '{0}' implicitamente tem um tipo 'any[]', mas um tipo melhor pode ser inferido do uso.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Reutilizando a resolução do tipo diretriz de referência '{0}' de '{1}' do antigo programa, foi resolvido com sucesso para '{2}' com ID do Pacote '{3}'.", "Rewrite_all_as_indexed_access_types_95034": "Reescrever tudo como tipos de acesso indexados", "Rewrite_as_the_indexed_access_type_0_90026": "Reescrever como o tipo de acesso indexado '{0}'", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Reescreva as extensões de arquivo \".ts\", \".tsx\", \".mts\" e \".cts\" em caminhos de importação relativos para seu equivalente em JavaScript nos arquivos de saída.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Operando direito de ?? está inacessível porque o operando esquerdo nunca é nulo.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Diretório raiz não pode ser determinado, ignorando caminhos de pesquisa primários.", "Root_file_specified_for_compilation_1427": "Arquivo raiz especificado para compilação", "STRATEGY_6039": "ESTRATÉGIA", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Salvar arquivos .tsbuildinfo para permitir a compilação incremental de projetos.", "Saw_non_matching_condition_0_6405": "Viu condição de não correspondência '{0}'.", "Scoped_package_detected_looking_in_0_6182": "Pacote com escopo detectado, procurando no '{0}'", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Pesquisando todos os diretórios node_modules ancestrais em busca de extensões de fallback: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Pesquisando todos os diretórios node_modules ancestrais em busca de extensões preferenciais: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "A seleção não é uma instrução ou instruções válidas", "Selection_is_not_a_valid_type_node_95133": "A seleção não é um nó de tipo válido", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Definir a versão do idioma do JavaScript para o JavaScript emitido e incluir as declarações de biblioteca compatíveis.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Mostras as informações detalhadas de diagnóstico.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Mostrar o que seria compilado (ou excluído, se especificado com '--clean')", "Signature_0_must_be_a_type_predicate_1224": "A assinatura '{0}' deve ser um predicado de tipo.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "As declarações de assinatura só podem ser usadas em arquivos TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Ignorar a criação de projetos downstream em caso de erro no projeto upstream.", "Skip_type_checking_all_d_ts_files_6693": "Ignorar verificação de tipo de todos os arquivos .d.ts.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Ignorar verificação de tipo de arquivos .d.ts que estão incluídos com TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Ignorar a verificação de tipo dos arquivos de declaração.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Ignorando o módulo '{0}' que se parece com um URI absoluto, tipos de arquivo de destino: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Ignorando o build do projeto '{0}' porque a dependência '{1}' tem erros", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Ignorando o build do projeto '{0}' porque a dependência '{1}' não foi criada", "Source_from_referenced_project_0_included_because_1_specified_1414": "Origem do projeto referenciado '{0}' incluída porque '{1}' está especificado", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Origem do projeto referenciado '{0}' incluída porque '--module' está especificado como 'none'", "Source_has_0_element_s_but_target_allows_only_1_2619": "A origem tem {0} elementos, mas o destino permite somente {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Especifique como funciona o modo de inspeção TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Especifique os arquivos de biblioteca a serem incluídos na compilação.", "Specify_module_code_generation_6016": "Especifique a geração do código do módulo.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Especifique a estratégia de resolução de módulo: 'node' (Node.js) ou 'classic' (TypeScript pré-1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Especificar o especificador de módulo usado para importar as funções de fábrica JSX ao usar 'jsx: react-jsx*'.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Especificar várias pastas que agem como './node_modules/@types '.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Especificar uma ou mais referências de módulo ou nó para os arquivos de configuração base dos quais as configurações são herdadas.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Membros estáticos não podem fazer referência a parâmetros de tipo de classe.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Conflitos de propriedade estática '{0}' com propriedade interna 'Function.{0}' da função de construtor '{1}'.", "String_literal_expected_1141": "Literal de cadeia de caracteres esperado.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Não há suporte para nomes de importação e exportação de literal de cadeia de caracteres quando o sinalizador '--module' está definido como 'es2015' ou 'es2020'.", "String_literal_with_double_quotes_expected_1327": "Literal de cadeia com aspas duplas é esperado.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Estilizar erros e mensagens usando cor e contexto (experimental).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Sinalizadores de subpadrão devem estar presentes quando há um sinal de subtração.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Declarações de propriedade subsequentes devem ter o mesmo tipo. A propriedade '{0}' deve ser do tipo '{1}', mas aqui tem o tipo '{2}'.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Declarações de variável subsequentes devem ter o mesmo tipo. A variável '{0}' deve ser do tipo '{1}', mas aqui tem o tipo '{2}'.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "A substituição '{0}' para o padrão '{1}' tem um tipo incorreto, 'string' esperada, obteve '{2}'.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Expressões de modelo marcado não são permitidas em uma cadeia opcional.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "O destino permite apenas {0} elementos, mas a origem pode ter mais.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "O destino exige {0} elementos, mas a origem pode ter menos.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "A assinatura de destino fornece poucos argumentos. Esperava {0} ou mais, mas obteve {1}.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "O modificador '{0}' só pode ser usado em arquivos TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "O operador '{0}' não pode ser aplicado ao tipo 'symbol'.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "O operador '{0}' não é permitido para tipos boolianos. Considere usar '{1}'.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "A propriedade '{0}' de um iterador assíncrono deve ser um método.", "The_0_property_of_an_iterator_must_be_a_method_2767": "A propriedade '{0}' de um iterador deve ser um método.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "O tipo 'Objeto' pode ser atribuído para muito poucos outros tipos. Você desejava usar o tipo 'qualquer' ao invés disso?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "O sinalizador Unicode (u) e o sinalizador Conjuntos Unicode (v) não podem ser definidos simultaneamente.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "O objeto 'arguments' não pode ser referenciado em uma função de seta em ES5. Considere usar uma expressão de função padrão.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "O objeto 'arguments' não pode ser referenciado em uma função assíncrona ou o método no ES5. Considere usar uma função ou um método padrão.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "O objeto 'arguments' não pode ser referenciado em uma função de seta em ES3 e ES5. Considere usar uma expressão de função padrão.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "O objeto 'arguments' não pode ser referenciado em uma função assíncrona ou o método no ES3 e ES5. Considere usar uma função ou um método padrão.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "O corpo de uma instrução 'if' não pode ser uma instrução vazia.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "A chamada teria sido bem-sucedida nesta implementação, mas as assinaturas de implementação de sobrecargas não estão visíveis externamente.", "The_character_set_of_the_input_files_6163": "O conjunto de caracteres dos arquivos de entrada.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "O tipo global 'JSX.{0}' não pode ter mais de uma propriedade.", "The_implementation_signature_is_declared_here_2750": "A assinatura de implementação é declarada aqui.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "A meta da propriedade 'import.meta' não é permitida em arquivos que serão compilados na saída do CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "A meta-propriedade 'import.meta' só é permitida quando a opção '--module' é 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18' ou 'nodenext'.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "A meta-propriedade 'import.meta' só é permitida quando a opção '--module' é 'es2020', 'es2022', 'esnext', 'system', 'node16' ou 'nodenext'.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "O tipo inferido de '{0}' não pode ser nomeado sem uma referência a '{1}'. Isso provavelmente não é portátil. Uma anotação de tipo é necessária.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "O tipo inferido '{0}' faz referência a um tipo com uma estrutura cíclica que não pode ser serializada trivialmente. Uma anotação de tipo é necessária.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "O tipo inferido de '{0}' faz referência a um tipo '{1}' inacessível. Uma anotação de tipo é necessária.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "O tipo inferido deste nó excede o tamanho máximo que o compilador serializará. Uma anotação de tipo explícita é necessária.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "O inicializador de uma declaração 'using' deve ser um objeto com um método '[Symbol.dispose]()' ou ser 'null' ou 'undefined'.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "O inicializador de uma declaração 'await using' deve ser um objeto com um método '[Symbol.asyncDispose]()' ou '[Symbol.dispose]5D;()' ou ser 'null' ou 'undefined'.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "A interseção '{0}' foi reduzida para 'never' porque a propriedade '{1}' existe em vários constituintes e é privada em alguns.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "A interseção '{0}' foi reduzida para 'never' porque a propriedade '{1}' tem tipos conflitantes em alguns constituintes.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "A palavra-chave 'intrinsic' só pode ser usada para declarar tipos intrínsecos fornecidos pelo compilador.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "A última sobrecarga gerou o seguinte erro.", "The_last_overload_is_declared_here_2771": "A última sobrecarga é declarada aqui.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "O lado esquerdo de uma instrução 'for...in' não pode ser um padrão de desestruturação.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "O lado esquerdo de uma instrução 'for...in' não pode ser uma declaração 'using'.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "O lado esquerdo de uma instrução 'for...in' não pode ser uma declaração 'await using'.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "O lado esquerdo de uma instrução 'for...in' não pode usar uma anotação de tipo.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "O lado esquerdo de uma instrução 'for...in' pode não ser um acesso opcional de propriedade.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "O lado esquerdo de uma instrução 'for...in' deve ser uma variável ou um acesso à propriedade.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "O lado esquerdo de uma operação aritmética deve ser do tipo 'any', 'number', 'bigint' ou um tipo enumerado.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "O lado esquerdo de uma expressão de atribuição pode não ser um acesso opcional de propriedade.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "O lado esquerdo de uma expressão de atribuição deve ser uma variável ou um acesso à propriedade.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "O lado esquerdo de uma expressão 'instanceof' deve ser atribuível ao primeiro argumento do método '[Symbol.hasInstance]' do lado direito.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "O lado esquerdo de uma expressão 'instanceof' deve ser do tipo 'any', um tipo de objeto ou um parâmetro de tipo.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "O local usado ao exibir mensagens ao usuário (por exemplo, 'en-us')", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "A profundidade máxima de dependência a ser pesquisada em arquivos node_modules e de carregamento de JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "A raiz do projeto é ambígua, mas é necessária para resolver a entrada de mapa de exportação '{0}' no arquivo '{1}'. Forneça a opção do compilador `rootDir` para desambiguar.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "A raiz do projeto é ambígua, mas é necessária para resolver a entrada do mapa de importação '{0}' no arquivo '{1}'. Forneça a opção do compilador `rootDir` para desambiguar.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "A propriedade '{0}' não pode ser acessada no tipo '{1}' dentro dessa classe porque ela é sombreada por outro identificador privado com a mesma grafia.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "O tipo de retorno de um acessador 'get' precisa ser atribuível ao respectivo tipo de acessador 'set'", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "O tipo de retorno de uma função de decorador de parâmetro deve ser 'void' ou 'any'.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "O tipo de retorno de uma função de decorador de propriedade deve ser 'void' ou 'any'.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "O tipo de retorno de uma função assíncrona deve ser uma promessa válida ou não deve conter um membro \"then\" que pode ser chamado.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "O tipo de retorno de uma função assíncrona ou método deve ser o tipo Promessa global.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "O tipo de retorno de uma função assíncrona ou método precisa ser o tipo Promise global. Você quis escrever 'Promise<{0}>'?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "O lado direito de uma instrução 'for...in' deve ser do tipo 'any', um tipo de objeto ou um parâmetro de tipo, mas aqui ele tem o tipo '{0}'.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "O lado direito de uma operação aritmética deve ser do tipo 'any', 'number', 'bigint' ou um tipo enumerado.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "O lado direito de uma expressão 'instanceof' deve ser do tipo 'any', uma classe, uma função ou outro tipo atribuível ao tipo de interface 'Function' ou um tipo de objeto com um método 'Symbol.hasInstance'.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "O lado direito de uma expressão 'instanceof' não deve ser uma expressão de instanciação.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "O lado direito de uma expressão 'instanceof' deve ser do tipo 'any' ou de um tipo que pode ser atribuído ao tipo de interface 'Function'.", "The_root_value_of_a_0_file_must_be_an_object_5092": "O valor raiz de um arquivo '{0}' precisa ser um objeto.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "O runtime invocará o decorador com argumentos {1}, mas o decorador espera {0}.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "O runtime invocará o decorador com argumentos {1}, mas o decorador espera pelo menos {0}.", "The_shadowing_declaration_of_0_is_defined_here_18017": "A declaração de sombreamento de '{0}' é definida aqui", "The_signature_0_of_1_is_deprecated_6387": "A assinatura '{0}' de '{1}' foi preterida.", "The_specified_path_does_not_exist_Colon_0_5058": "O caminho especificado não existe: '{0}'.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "O modificador “type” não pode ser usado em uma exportação nomeada quando “export type” for usado em sua instrução de exportar.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "O modificador “type” não pode ser usado em uma importação nomeada quando “import type” for usado em sua instrução de importar.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "O tipo de uma declaração de função deve corresponder à assinatura da função.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "O tipo dessa expressão não pode ser nomeado sem uma declaração 'modo de resolução', que é um recurso instável. Use o TypeScript noturno para silenciar esse erro. Tente atualizar com 'npm install -D typescript@next'.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "O tipo deste nó não pode ser serializado porque sua propriedade '{0}' não pode ser serializada.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "O tipo retornado pelo método '{0}()' de um iterador assíncrono deve ser uma promessa para um tipo com a propriedade 'value'.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "O tipo retornado pelo método '{0}()' de um iterador deve ter uma propriedade 'value'.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "A declaração de variável de uma instrução 'for...in' não pode ter um inicializador.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "A declaração de variável de uma instrução 'for...of' não pode ter um inicializador.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "A instrução \"with\" não tem suporte. Todos os símbolos em um bloco \"with\" terão o tipo \"any\".", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Há tipos em '{0}', mas esse resultado não pôde ser resolvido na configuração 'moduleResolution' atual. Considere atualizar para 'node16', 'nodenext' ou 'bundler'.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Há tipos em '{0}', mas esse resultado não pôde ser resolvido ao respeitar as \"exportações\" do package.json. A biblioteca '{1}' pode precisar atualizar o package.json ou as digitações.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "Não há nenhum grupo de captura chamado '{0}' nesta expressão regular.", - "There_is_nothing_available_for_repetition_1507": "Não há nada disponível para repetição.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Essa marca JSX requer que \"{0}\" esteja no escopo, mas não foi possível encontrá-la.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Essa marca JSX requer a existência do caminho do módulo \"{0}\", mas não foi possível encontrar nenhum. Verifique se você tem os tipos do pacote apropriado instalados.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "A propriedade '{0}' da marca desse JSX espera um único filho do tipo '{1}', mas vários filhos foram fornecidos.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "A propriedade '{0}' da marca desse JSX espera o tipo '{1}' que requer vários filhos, mas somente um único filho foi fornecido.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Essa referência inversa refere-se a um grupo que não existe. Não há grupos de captura nessa expressão regular.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Essa referência inversa refere-se a um grupo que não existe. Há apenas {0} grupos de captura nesta expressão regular.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Essa expressão binária nunca é nula. Está faltando parênteses?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Este caractere não pode ser escapado em uma expressão regular.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Esta comparação parece não ser intencional porque os tipos '{0}' e '{1}' não têm sobreposição.", "This_condition_will_always_return_0_2845": "Esta condição sempre retornará '{0}'.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Essa condição sempre retornará '{0}', pois o JavaScript compara objetos por referência, não por valor.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Esta condição sempre retornará verdadeiro, já que este '{0}' está sempre definido.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Esta condição sempre retornará verdadeira, uma vez que esta função foi sempre definida. Você pretendia chamá-la em vez disso?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Esta função de construtor pode ser convertida em uma declaração de classe.", - "This_expression_is_always_nullish_2871": "Essa expressão sempre é nula.", "This_expression_is_not_callable_2349": "Essa expressão não pode ser chamada.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Esta expressão não pode ser chamada porque é um acessador 'get'. Você quis usá-la sem '()'?", "This_expression_is_not_constructable_2351": "Essa expressão não pode ser construída.", "This_file_already_has_a_default_export_95130": "Este arquivo já tem uma exportação padrão", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Não é seguro reescrever esse caminho de importação porque ele é resolvido em outro projeto, e o caminho relativo entre os arquivos de saída dos projetos não é o mesmo que o caminho relativo entre seus arquivos de entrada.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Essa importação usa uma extensão \"{0}\" para resolver um arquivo TypeScript de entrada, mas não será reescrita durante a emissão porque não é um caminho relativo.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Esta importação nunca é usada como um valor e precisa usar um 'tipo de importação' porque 'importsNotUsedAsValues' está definido como 'erro'.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Esta é a declaração que está sendo aumentada. Considere mover a declaração em aumento para o mesmo arquivo.", - "This_kind_of_expression_is_always_falsy_2873": "Esse tipo de expressão é sempre inválido.", - "This_kind_of_expression_is_always_truthy_2872": "Esse tipo de expressão é sempre verdadeiro.", "This_may_be_converted_to_an_async_function_80006": "Isso pode ser convertido em uma função assíncrona.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Este membro não pode ter um comentário JSDoc com uma marca '@override' porque ele não está declarado na classe base '{0}'.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Esse membro não pode ter um comentário JSDoc com uma marca 'override' porque ele não está declarado na classe base '{0}'. Você quis dizer '{1}'?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Este membro não pode ter um comentário JSDoc com uma marca '@override' porque sua classe que contém '{0}' não estende outra classe.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Esse membro não pode ter um comentário JSDoc com uma marcação '@override' porque seu nome é dinâmico.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Este membro não pode ter um modificador 'override' porque não está declarado na classe base '{0}'.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Esse membro não pode ter um modificador de 'substituição' porque ele não é declarado na classe base '{0}'. Você quis dizer '{1}'?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Este membro não pode ter um modificador 'override' porque a classe que o contém, '{0}', não se estende para outra classe.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Este membro não pode ter um modificador 'override' porque seu nome é dinâmico.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Essa membro deve ter um comentário JSDoc com uma marca '@override' porque ela substitui um membro na classe base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Este membro precisa ter um modificador 'override' porque substitui um membro na classe base '{0}'.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Este membro precisa ter um modificador 'override' porque substitui um método abstrato que é declarado na classe base '{0}'.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Esse módulo só pode ser referenciado com importações/exportações de ECMAScript ligando o sinalizador '{0}' e referenciando sua exportação padrão.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Este módulo é declarado com 'export =', e só pode ser usado com uma importação padrão ao usar o sinalizador '{0}'.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Essa operação pode ser simplificada. Essa mudança é idêntica a `{0} {1} {2}`.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Essa sobrecarga retorna implicitamente o tipo '{0}' porque não tem uma anotação de tipo de retorno.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Esta assinatura de sobrecarga não é compatível com sua assinatura de implementação.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Este parâmetro não é permitido com a diretiva 'use strict'.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Essa propriedade de parâmetro deve ter um comentário JSDoc com uma marca '@override' porque ela substitui um membro na classe base '{0}'.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Esta propriedade de parâmetro deve ter uma modificação de 'substituição' porque substitui um membro na classe base '{0}'.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Esse sinalizador de expressão regular não pode ser alternado em um subpadrão.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Esse sinalizador de expressão regular só está disponível ao direcionar para '{0}' ou posterior.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Não é seguro reescrever esse caminho de importação relativo porque ele se parece com um nome de arquivo, mas, na verdade, é resolvido como \"{0}\".", "This_spread_always_overwrites_this_property_2785": "Essa difusão sempre substitui essa propriedade.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Esta sintaxe não é permitida quando 'erasableSyntaxOnly' está habilitado.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Essa sintaxe é reservada em arquivos com extensão .mts ou .cts. Adicione uma vírgula final ou restrição explícita.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Essa sintaxe é reservada em arquivos com extensão .mts ou .cts. Em vez disso, use uma expressão `as`.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Essa sintaxe requer um auxiliar importado, mas o módulo '{0}' não pode ser encontrado.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Para converter este arquivo em um módulo ECMAScript, altere sua extensão de arquivo para '{0}' ou adicione o campo `\"type\": \"module\"` para '{1}'.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Para converter este arquivo em um módulo ECMAScript, altere sua extensão de arquivo para '{0}' ou crie um arquivo package.json local com `{ \"type\": \"module\" }`.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Para converter este arquivo em um módulo ECMAScript, crie um arquivo package.json local com `{ \"type\": \"module\" }`.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Expressões 'await' de nível superior só são permitidas quando a opção 'module' estiver definida como 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' ou 'preserve', e a opção 'target' estiver definida como 'es2017' ou superior.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "As instruções 'await' de nível superior só são permitidas quando a opção 'module' está definida como 'es2022', 'esnext', 'system', 'node16', 'node18' ou 'nodenext' e a opção 'target' está definida como 'es2017' ou superior.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "As expressões 'await' de nível superior só são permitidas quando a opção 'module' está definida como 'es2022', 'esnext', 'system', 'node16' ou 'nodenext' e a opção 'target' está definida como ' es2017' ou superior.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "As declarações de nível superior em arquivos .d.ts devem começar com um modificador 'declare' ou 'export'.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Loops 'for await' de nível superior só são permitidos quando a opção 'module' estiver definida como 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' ou 'preserve', e a opção 'target' estiver definida como 'es2017' ou superior.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Loops 'for await' de nível superior só são permitidos quando a opção 'module' está definida como 'es2022', 'esnext', 'system', 'node16' ou 'nodenext', e a opção 'target' está definida como 'es2017' ou superior.", "Trailing_comma_not_allowed_1009": "Vírgula à direita não permitida.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Transcompilar cada arquivo como um módulo separado (do mesmo modo que 'ts.transpileModule').", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Tente `npm i --save-dev @types/{1}` caso exista ou adicione um novo arquivo de declaração (.d.ts) contendo `declare module '{0}';`", "Trying_other_entries_in_rootDirs_6110": "Tentando outras entradas em 'rootDirs'.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Tentando substituição '{0}', local de módulo candidato: '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Todos os membros de tupla precisam ter nomes ou não ter nomes.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "O tipo de tupla '{0}' de comprimento '{1}' não tem nenhum elemento no índice '{2}'.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Os argumentos de tipo de tupla se referenciam circularmente.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "O tipo '{0}' só pode ser iterado usando o sinalizador '--downlevelIteration' ou um '--target' igual a 'es2015' ou superior.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "O tipo '{0}' não tem assinatura de índice correspondente para o tipo '{1}'.", "Type_0_has_no_properties_in_common_with_type_1_2559": "O tipo '{0}' não tem propriedades em comum com o tipo '{1}'.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "O tipo “{0}” não tem assinaturas para as quais a lista de argumentos de tipo é aplicável.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "O tipo '{0}' é genérico e só pode ser indexado para leitura.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "O tipo '{0}' não tem as propriedades a seguir do tipo '{1}': {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "O tipo '{0}' não tem as propriedades a seguir do tipo '{1}': {2} e mais {3}.", "Type_0_is_not_a_constructor_function_type_2507": "O tipo '{0}' não é um tipo de função de construtor.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "O tipo '{0}' não é um tipo de retorno de função assíncrona válido no ES5, pois não se refere ao valor construtor compatível com a Promessa.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "O tipo '{0}' não é um tipo de retorno de função assíncrona válido no ES5/ES3, pois não se refere ao valor construtor compatível com a Promessa.", "Type_0_is_not_an_array_type_2461": "O tipo '{0}' não é um tipo de matriz.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "O tipo '{0}' não é um tipo de matriz ou de cadeia de caracteres.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "O tipo '{0}' não é um tipo de matriz de um tipo de cadeia ou não tem um método '[Symbol.iterator]()' que retorna um iterador.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "O tipo '' não pode ser atribuído ao tipo {0} '{1}'. Você quis dizer '{2}'?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "O tipo '{0}' não é atribuível ao tipo '{1}'. Dois tipos diferentes com esse nome existem, mas eles não estão relacionados.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Tipo '{0}' não é atribuível ao tipo '{1}' como implícito pela anotação de variância.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "O tipo '{0}' não é atribuível ao tipo '{1}', conforme necessário para valores de membro de enumeração computados.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "O tipo '{0}' não pode ser atribuído ao tipo '{1}' com 'exactOptionalPropertyTypes: true'. Considere adicionar 'undefined' aos tipos das propriedades do destino.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "O tipo '{0}' não pode ser atribuído ao tipo '{1}' com 'exactOptionalPropertyTypes: true'. Considere adicionar 'undefined' ao tipo do destino.", "Type_0_is_not_comparable_to_type_1_2678": "O tipo '{0}' não pode ser comparável ao tipo '{1}'.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Argumento de tipo esperado.", "Type_argument_list_cannot_be_empty_1099": "A lista de argumentos de tipo não pode estar vazia.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Os argumentos de tipo só podem ser usados em arquivos TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "Argumentos de tipo não podem ser usados aqui.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Os argumentos de tipo '{0}' se referenciam circularmente.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "As expressões de declaração de tipo só podem ser usadas em arquivos TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "O tipo na posição {0} na fonte não é compatível com o tipo na posição {1} no destino.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "O tipo nas posições {0} até {1} na fonte não é compatível com o tipo na posição {2} no destino.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "O tipo que contém o nome particular '{0}' não pode ser usado com --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Arquivos de declaração de tipo a serem incluídos em compilação.", "Type_expected_1110": "Tipo esperado.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "As asserções de importação de tipo devem ter exatamente uma chave - `resolution-mode` - com valor `import` ou` require`.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "As asserções de importação de tipo devem ter exatamente uma chave - 'resolution-mode' - com valor 'import' ou 'require'.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "A importação de tipo de um módulo ECMAScript de um módulo CommonJS deve ter um atributo 'resolution-mode'.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "A instanciação de tipo é muito profunda e possivelmente infinita.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "O tipo é referenciado diretamente ou indiretamente em um retorno de chamada de preenchimento do seu próprio método 'then'.", "Type_library_referenced_via_0_from_file_1_1402": "Biblioteca de tipos referenciada via '{0}' do arquivo '{1}'", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "O tipo de elementos iterados de um operando \"yield*\" deve ser uma promessa válida ou não deve conter um membro \"then\" que pode ser chamado.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "O tipo de propriedade '{0}' faz referência circular a si mesmo no tipo mapeado '{1}'.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "O tipo do operando \"yield\" em um gerador assíncrono deve ser uma promessa válida ou não deve conter um membro \"then\" que pode ser chamado.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "A importação somente de tipo de um módulo ECMAScript de um módulo CommonJS deve ter um atributo 'resolution-mode'.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "O tipo se origina nessa importação. Uma importação de estilo de namespace não pode ser chamada nem construída e causará uma falha no runtime. Considere usar uma importação padrão ou importe require aqui.", "Type_parameter_0_has_a_circular_constraint_2313": "O parâmetro de tipo '{0}' tem uma restrição circular.", "Type_parameter_0_has_a_circular_default_2716": "O parâmetro de tipo '{0}' tem um padrão circular.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Não é possível resolver a assinatura do decorador de método quando ele é chamado como uma expressão.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Não é possível resolver a assinatura do decorador de parâmetro quando ele é chamado como uma expressão.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Não é possível resolver a assinatura do decorador de propriedade quando ele é chamado como uma expressão.", - "Undetermined_character_escape_1513": "Escape de caractere indeterminado.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "'{0}' inesperado. Você quer escapar com barra invertida?", "Unexpected_end_of_text_1126": "Fim inesperado do texto.", "Unexpected_keyword_or_identifier_1434": "Palavra-chave ou identificador inesperado.", "Unexpected_token_1012": "Token inesperado.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. Você quis dizer '{'>'}' ou '>'?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. Você quis dizer '{'}'}' ou '}'?", "Unexpected_token_expected_1179": "Token inesperado. '{' esperado.", - "Unicode_escape_sequence_cannot_appear_here_17021": "A sequência de escape Unicode não pode aparecer aqui.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "As sequências de escape Unicode só estarão disponíveis quando o sinalizador Unicode (u) ou o sinalizador Conjuntos Unicode (v) estiver definido.", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "As expressões de valor da propriedade Unicode só estarão disponíveis quando o sinalizador Unicode (u) ou o sinalizador Conjuntos Unicode (v) estiver definido.", - "Unknown_Unicode_property_name_1524": "Nome da propriedade Unicode desconhecido.", - "Unknown_Unicode_property_name_or_value_1529": "Nome ou valor da propriedade Unicode desconhecido.", - "Unknown_Unicode_property_value_1526": "Valor da propriedade Unicode desconhecido.", "Unknown_build_option_0_5072": "Opção de build '{0}' desconhecida.", "Unknown_build_option_0_Did_you_mean_1_5077": "Opção de build '{0}' desconhecida. Você quis dizer '{1}'?", "Unknown_compiler_option_0_5023": "Opção do compilador '{0}' desconhecida.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Opção de compilador '{0}' desconhecida. Você quis dizer '{1}'?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Palavra-chave ou identificador desconhecido. Você quis dizer '{0}'?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Opção desconhecida 'excludes'. Você quis dizer 'exclude'?", - "Unknown_regular_expression_flag_1499": "Sinalizador de expressão regular desconhecido.", "Unknown_type_acquisition_option_0_17010": "Opção de aquisição de tipo desconhecido '{0}'.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Opção de aquisição de tipo '{0}' desconhecida. Você quis dizer '{1}'?", "Unknown_watch_option_0_5078": "Opção de observador '{0}' desconhecida.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Rótulo não utilizado.", "Unused_ts_expect_error_directive_2578": "Diretiva '@ts-expect-error' não usada.", "Update_import_from_0_90058": "Atualizar importação de \"{0}\"", - "Update_modifiers_of_0_90061": "Atualizar modificadores de '{0}'", + "Updating_output_of_project_0_6373": "Atualizando a saída do projeto '{0}'...", "Updating_output_timestamps_of_project_0_6359": "Atualizando os carimbos de data/hora de saída do projeto '{0}'...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Atualizando os carimbos de data/hora de saída inalterados do projeto '{0}'...", "Use_0_95174": "Use `{0}`.", - "Use_0_instead_5106": "Use '{0}' em vez disso.", "Use_Number_isNaN_in_all_conditions_95175": "Use `Number.isNaN` em todas as condições.", "Use_element_access_for_0_95145": "Usar o acesso de elemento para '{0}'", "Use_element_access_for_all_undeclared_properties_95146": "Usar o acesso de elemento para todas as propriedades não declaradas.", - "Use_import_type_95180": "Usar 'tipo de importação'", "Use_synthetic_default_member_95016": "Use o membro sintético 'padrão'.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Use o campo 'exports' do package.json ao resolver importações de pacote.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Use o campo 'imports' no package.json ao resolver importações.", - "Use_type_0_95181": "Usar 'type {0}'", "Using_0_subpath_1_with_target_2_6404": "Usando '{0}' subcaminho '{1}' com destino '{2}'.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "O uso de fragmentos JSX requer que a fábrica de fragmentos \"{0}\" esteja no escopo, mas não foi possível encontrá-la.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Há suporte para o uso de uma cadeia de caracteres em uma instrução 'for...of' somente no ECMAScript 5 e superior.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Usar --build, -b fará com que o tsc se comporte mais como um orquestrador de build do que como um compilador. Isso é usado para acionar a construção de projetos compostos sobre os quais você pode aprender mais em {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Usando as opções do compilador de redirecionamento de referência do projeto '{0}'.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Declaração de variável esperada.", "Variable_declaration_list_cannot_be_empty_1123": "A lista de declaração de variável não pode estar vazia.", "Variable_declaration_not_allowed_at_this_location_1440": "A declaração de variável não é permitida neste local.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "A variável deve ter uma anotação de tipo explícita com --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Variáveis com várias declarações não podem ser embutidas.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "O elemento variádico na posição {0} na fonte não corresponde ao elemento na posição {1} no destino.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Só há suporte para anotações de variação em aliases do tipo para objetos, funções, construtores e tipos mapeados.", "Version_0_6029": "Versão {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Quando a fizer a verificação de tipo, considere 'null' e 'undefined'.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Se é necessário manter a saída de console desatualizada no modo de inspeção, em vez de limpar a tela.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Encapsular todos os caracteres inválidos em um contêiner de expressão", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Encapsular todas as expressões de decorador inválidas entre parênteses", "Wrap_all_object_literal_with_parentheses_95116": "Colocar todo o literal de objeto entre parênteses", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Empacotar todos os JSXs sem pai no fragmento de JSX", "Wrap_in_JSX_fragment_95120": "Encapsular o fragmento de JSX", - "Wrap_in_parentheses_95194": "Encapsular entre parênteses", "Wrap_invalid_character_in_an_expression_container_95108": "Encapsular caractere inválido em um contêiner de expressão", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Colocar entre parênteses o corpo a seguir, que deve ser um literal de objeto", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Você pode aprender sobre todas as opções do compilador em {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "As assinaturas de índice '{0}' e '{1}' são incompatíveis.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "As operações '{0}' e '{1}' não podem ser combinadas sem parênteses.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' são especificados duas vezes. O atributo chamado '{0}' será substituído.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "'{0}' no final de um tipo não é uma sintaxe TypeScript válida. Você quis escrever '{1}'?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "'{0}' no início de um tipo não é uma sintaxe TypeScript válida. Você quis escrever '{1}'?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' só pode ser importado ativando o sinalizador 'esModuleInterop' e usando uma importação padrão.", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' só pode ser importado usando uma importação padrão.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' só pode ser importado usando uma chamada 'require' ou ativando o sinalizador 'esModuleInterop' e usando uma importação padrão.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' só pode ser importado usando uma chamada 'require' ou usando uma importação padrão.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' só pode ser importado usando 'import {1} = require({2})' ou uma importação padrão.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' só pode ser importado usando 'import {1} = require({2})' ou ativando o sinalizador 'esModuleInterop' e usando uma importação padrão.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'{0}' não pode ser compilado em '--isolatedModules' porque é considerado um arquivo de script global. Adicione uma instrução de importação, de exportação ou de 'export {}' vazia para transformá-lo em módulo.", "_0_cannot_be_used_as_a_JSX_component_2786": "O módulo '{0}' não pode ser usado como um componente JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}' não pode ser usado como um valor porque foi exportado usando 'tipo de exportação'.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}' não pode ser usado como um valor porque foi importado usando 'tipo de importação'.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Os componentes '{0}' não aceitam texto como elementos filho. O texto em JSX tem o tipo 'cadeia de caracteres', mas o tipo esperado de '{1}' é '{2}'.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Uma instância de '{0}' poderia ser criada com um tipo arbitrário que poderia não estar relacionado a '{1}'.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "Declarações '{0}' só podem ser declaradas dentro de um bloco.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "As declarações '{0}' só podem ser usadas em arquivos TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "Declarações '{0}' podem não ter padrões de associação.", - "_0_declarations_must_be_initialized_1155": "Declarações '{0}' devem ser inicializadas.", "_0_expected_1005": "'{0}' esperado.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}' tem um tipo de cadeia de caracteres, mas deve ter sintaxe de cadeia de caracteres reconhecível sintaticamente quando 'isolatedModules' está habilitado.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}' não tem nenhum membro exportado chamado '{1}'. Você quis dizer '{2}'?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' tem implicitamente um tipo de retorno '{1}', mas um tipo melhor pode ser inferido do uso.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "Implicitamente, '{0}' tem um retorno tipo 'any' porque ele não tem uma anotação de tipo de retorno e é referenciado direta ou indiretamente em uma das suas expressões de retorno.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' tipo de índice '{1}' não pode ser atribuído a '{2}' tipo de índice '{3}'.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' é um primitivo, mas '{1}' é um objeto de wrapper. Prefira usar '{0}' quando possível.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' é um tipo e não pode ser importado em arquivos JavaScript. Use '{1}' em uma anotação de tipo JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}' é um tipo e deve ser importado usando uma importação somente de tipo quando 'texttimModuleSyntax' está habilitado.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' é um tipo e deve ser importado usando uma importação somente de tipo quando 'preserveValueImports' e 'isolatedModules' estiverem habilitados.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' é uma renomeação não usada de '{1}'. Você pretendia usá-lo como uma anotação de tipo?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' é atribuível à restrição do tipo '{1}', mas é possível criar uma instância de '{1}' com um subtipo diferente de restrição '{2}'.", "_0_is_automatically_exported_here_18044": "'{0}' é exportado automaticamente aqui.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "A lista '{0}' não pode estar vazia.", "_0_modifier_already_seen_1030": "O modificador '{0}' já foi visto.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "O modificador '{0}' pode aparecer apenas em um parâmetro de tipo de uma classe, interface ou alias de tipo", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "O modificador '{0}' só pode aparecer em um parâmetro de tipo de uma função, método ou classe", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "O modificador '{0}' não pode aparecer em uma declaração de construtor.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "O modificador '{0}' não pode aparecer em um módulo ou elemento de namespace.", "_0_modifier_cannot_appear_on_a_parameter_1090": "O modificador '{0}' não pode aparecer em um parâmetro.", "_0_modifier_cannot_appear_on_a_type_member_1070": "O modificador '{0}' não pode aparecer em um membro de tipo.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "O modificador '{0}' não pode aparecer em um parâmetro de tipo", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "O modificador '{0}' não pode aparecer em uma declaração 'using'.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "O modificador '{0}' não pode aparecer em uma declaração 'await using'.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "O modificador '{0}' não pode aparecer em uma assinatura de índice.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "O modificador '{0}' não pode aparecer em elementos de classe deste tipo.", "_0_modifier_cannot_be_used_here_1042": "O modificador '{0}' não pode ser usado aqui.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "O modificador '{0}' não pode ser usado com um modificador '{1}'.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "O modificador '{0}' não pode ser usado com um identificador privado.", "_0_modifier_must_precede_1_modifier_1029": "O modificador '{0}' deve preceder o modificador '{1}'.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' deve ser seguido por uma expressão de valor de propriedade Unicode entre chaves.", "_0_needs_an_explicit_type_annotation_2782": "'{0}' precisa de uma anotação de tipo explícita.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' refere-se apenas a um tipo, mas está sendo usado como um namespace aqui.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' só faz referência a um tipo, mas está sendo usado como valor no momento.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' refere-se apenas a um tipo, mas está sendo usado como um valor aqui. Você precisa alterar sua biblioteca de destino? Tente alterar a opção 'lib' do compilador para es2015 ou posterior.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' refere-se a uma UMD global, mas o arquivo atual é um módulo. Considere adicionar uma importação.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' refere-se a um valor, mas está sendo usado como um tipo aqui. Você quis dizer 'typeof {0}'?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}' resolve para um tipo e deve ser marcado como somente tipo neste arquivo antes de exportar novamente quando '{1}' está habilitado. Considere usar o 'tipo de importação' em que '{0}' é importado.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}' resolve para um tipo e deve ser marcado como somente tipo neste arquivo antes de exportar novamente quando '{1}' está habilitado. Considere o uso do 'tipo de exportação { {0} como padrão }'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}' resolve para uma declaração somente de tipo e deve ser importado usando uma importação somente de tipo quando 'texttimModuleSyntax' está habilitado.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}' resolve para uma declaração somente de tipo e deve ser marcado como somente tipo nesse arquivo antes de exportar novamente quando '{1}' estiver habilitado. Considere usar o 'tipo de importação' em que '{0}' é importado.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}' resolve para uma declaração somente de tipo e deve ser marcado como somente tipo nesse arquivo antes de exportar novamente quando '{1}' estiver habilitado. Considere o uso do 'tipo de exportação { {0} como padrão }'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "'{0}' resolve para uma declaração apenas de tipo e deve ser reexportada usando uma reexportação apenas de tipo quando '{1}' está habilitado.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' resolve para uma declaração somente de tipo e deve ser importado usando uma importação de somente tipo quando 'preserveValueImports' e 'isolatedModules' estão ambos habilitados.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' resolve para uma declaração apenas de tipo e deve ser reexportada usando uma reexportação apenas de tipo quando 'isolatedModules' está habilitado.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' deve ser colocado dentro do objeto 'compilerOptions' do arquivo config json", "_0_tag_already_specified_1223": "A marca '{0}' já foi especificada.", "_0_was_also_declared_here_6203": "'{0}' também foi declarado aqui.", @@ -1999,22 +1780,19 @@ "and_here_6204": "e aqui.", "arguments_cannot_be_referenced_in_property_initializers_2815": "'argumentos' não podem ser referenciados em inicializadores de propriedade.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trata os arquivos com import, export, import.meta, jsx (com jsx: react-jsx) ou formato esm (com module: node16+) como módulos.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "A expressão 'await' não pode ser usada dentro de um bloco estático de classe.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "As expressões 'await' só são permitidas no nível superior de um arquivo quando esse arquivo é um módulo, mas não tem importações ou exportações. Considere adicionar um 'export {}' vazio para transformar este arquivo em um módulo.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "As expressões 'await' só são permitidas em funções assíncronas e nos níveis superiores de módulos.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "As expressões 'await' não podem ser usadas em inicializadores de parâmetros.", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' não tem efeito sobre o tipo desta expressão.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "As instruções 'for await' só são permitidas no nível superior de um arquivo quando esse arquivo é um módulo, mas este arquivo não tem importações nem exportações. Considere adicionar um 'export {}' vazio para transformar este arquivo em um módulo.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Instruções 'await using' só são permitidas em funções assíncronas e nos níveis superiores de módulos.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Instruções 'await using' não podem ser usadas dentro de um bloco estático de classe.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "A opção 'baseUrl' é configurada para '{0}', usando este valor para resolver o nome de módulo não relativo '{1}'.", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' deve ser seguido por uma letra ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' só pode ser usado no início de um arquivo.", "case_or_default_expected_1130": "'case' ou 'default' esperado.", "catch_or_finally_expected_1472": "é esperado 'catch' ou 'finally'.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Declarações 'const' só podem ser declaradas dentro de um bloco.", + "const_declarations_must_be_initialized_1155": "Declarações 'const' devem ser inicializadas.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "O inicializador de membro de enumeração 'const' foi avaliado como um valor não finito.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "O inicializador de membro de enumeração 'const' foi avaliado como o valor não permitido 'NaN'.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Os inicializadores de membro de enumeração const devem ser expressões constantes.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Os inicializadores de membros de enumeração const só podem conter valores literais e outros valores de enumeração calculados.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Enumerações 'const' só podem ser usadas em expressões de acesso de índice ou propriedade, ou então do lado direito de uma consulta de tipo, declaração de importação ou atribuição de exportação.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "Não é possível usar 'constructor' como nome de uma propriedade de parâmetro.", "constructor_is_a_reserved_word_18012": "'#constructor' é uma palavra reservada.", @@ -2033,14 +1811,13 @@ "file_6025": "arquivo", "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431": "Os loops 'for await' só são permitidos no nível superior de um arquivo quando esse arquivo é um módulo, mas este arquivo não tem importações nem exportações. Considere adicionar um 'export {}' vazio para transformar este arquivo em um módulo.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Os loops 'for await' só são permitidos em funções assíncronas e nos níveis superiores dos módulos.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Os loops 'for await' não podem ser usados dentro de um bloco estático de classe.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "os acessadores 'get' e 'set' não podem declarar os parâmetros 'this'.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "`[]` se `files` for especificado, caso contrário `[\"**/*\"]5D;`", "implements_clause_already_seen_1175": "A cláusula 'implements' já foi vista.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Cláusulas 'implements' só podem ser usadas em arquivos TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' só pode ser usado em arquivos TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "As declarações 'infer' só são permitidas na cláusula 'extends' de um tipo condicional.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' deve ser seguido por um nome de grupo de captura entre colchetes angulares.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Declarações 'let' só podem ser declaradas dentro de um bloco.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "O uso de 'let' não é permitido como um nome em declarações 'let' ou 'const'.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "módulo === `AMD` ou `UMD` ou `System` ou `ES6` e `Classic`. Caso contrário, `Node`", "module_system_or_esModuleInterop_6904": "módulo === \"system\" ou esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' não tem uma entrada 'typesVersions' que corresponda à versão '{0}'.", "package_json_had_a_falsy_0_field_6220": "'package.json' teve um campo '{0}' false.", "package_json_has_0_field_1_that_references_2_6101": "'package.json' tem '{0}' campo '{1}' que faz referência a '{2}'.", - "package_json_has_a_peerDependencies_field_6281": "'package.json' tem um campo 'peerDependencies'.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' tem uma entrada 'typesVersions' '{0}' que não é um intervalo semver válido.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' tem uma entrada 'typesVersions' '{0}' que corresponde à versão do compilador '{1}', procurando por um padrão que corresponda ao nome do módulo '{2}'.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' tem um campo 'typesVersions' com mapeamentos de caminho específicos à versão.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "O escopo package.json '{0}' tem um tipo inválido para o destino do especificador '{1}'", "package_json_scope_0_has_no_imports_defined_6273": "O escopo package.json '{0}' não tem importações definidas.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "A opção 'paths' é especificada, procurando por um padrão para corresponder ao nome do módulo '{0}'.", - "q_is_only_available_inside_character_class_1511": "'\\q' só está disponível dentro da classe de caracteres.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' deve ser seguido por alternativas de cadeia de caracteres entre chaves.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "O modificador 'readonly' pode aparecer somente em uma declaração de propriedade ou assinatura de índice.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "O modificador de tipo 'readonly' só é permitido em tipos literais de matriz e tupla.", "require_call_may_be_converted_to_an_import_80005": "A chamada 'require' pode ser convertida em uma importação.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "asserções de 'modo de resolução' são suportadas apenas quando 'moduleResolution' é 'node16' ou 'nodenext'.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "asserções de 'modo de resolução' são instáveis. Use o TypeScript noturno para silenciar esse erro. Tente atualizar com 'npm install -D typescript@next'.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` pode ser definido apenas para importações somente de tipo.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode` é a única chave válida para as asserções de importação de tipo.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "'resolution-mode' é a única chave válida para os atributos de importação de tipo.", "resolution_mode_should_be_either_require_or_import_1453": "'resolution-mode' deve ser 'require' ou 'import'.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "A opção 'rootDirs' está configurada, usando-a para resolver o nome de módulo relativo '{0}'.", "super_can_only_be_referenced_in_a_derived_class_2335": "'super' só pode ser referenciado em uma classe derivada.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this' não pode ser referenciado em um nome de propriedade calculado.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this' não pode ser referenciado em um corpo de módulo ou de namespace.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "'this' não pode ser referenciado em um inicializador de propriedade estática.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "'this' não pode ser referenciado em argumentos de construtor.", "this_cannot_be_referenced_in_current_location_2332": "'this' não pode ser referenciado no local atual.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this' implicitamente tem o tipo 'any' porque não tem uma anotação de tipo.", "true_for_ES2022_and_above_including_ESNext_6930": "'True' para ES2022 e acima, incluindo ESNext.", "true_if_composite_false_otherwise_6909": "`true` se` composite`, `false` caso contrário", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "'true' quando 'moduleResolution' é 'node16', 'nodenext' ou 'bundler'; caso contrário, \"false\".", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: o Compilador TypeScript", "type_Colon_6902": "tipo:", "unique_symbol_types_are_not_allowed_here_1335": "Tipos de 'unique symbol' não são permitidos aqui.", diff --git a/node_modules/typescript/lib/ru/diagnosticMessages.generated.json b/node_modules/typescript/lib/ru/diagnosticMessages.generated.json index f283c2cd3..1de4b2b1c 100644 --- a/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/ru/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "ВСЕ ПАРАМЕТРЫ КОМПИЛЯТОРОВ", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Модификатор \"{0}\" не может быть использован с объявлением импорта.", "A_0_parameter_must_be_the_first_parameter_2680": "В качестве первого параметра необходимо указать \"{0}\".", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "Тег JSDoc @template не может следовать за тегом @typedef, @callback или @overload.", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "Комментарий \"@typedef\" JSDoc не может содержать несколько тегов \"@type\".", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "Литерал 'bigint' не может использоваться в качестве имени свойства.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Литерал типа bigint не может использовать экспоненциальное представление.", "A_bigint_literal_must_be_an_integer_1353": "Литерал типа bigint должен быть целым числом.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Параметр шаблона привязки не может быть необязательным в сигнатуре реализации.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "Оператор break можно использовать только во включающей итерации или операторе switch.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "Оператор break может переходить только к метке внешнего оператора.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Класс символов не должен содержать зарезервированный двойной знак пунктуации. Вы хотели избежать этого с помощью обратной косой черты?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Диапазон классов символов не должен быть ограничен другим классом символов.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Класс может реализовать только идентификатор или полное имя с дополнительными аргументами типа.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Класс может реализовать только тип объекта или пересечение типов объектов со статическими известными членами.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Класс не может расширять примитивный тип, такой как ' {0} '. Классы могут расширять только конструируемые значения.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Класс не может реализовать примитивный тип, такой как '{0}'. Он может реализовывать только другие именованные типы объектов.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "Объявление класса без модификатора \"default\" должно иметь имя.", "A_class_member_cannot_have_the_0_keyword_1248": "Элемент класса не может иметь ключевое слово \"{0}\".", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Выражение с запятой запрещено в имени вычисляемого свойства.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Конструктор не может иметь параметр this.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "Оператор continue можно использовать только в операторе включающей итерации.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "Оператор continue может переходить только к метке оператора включающей итерации.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Файл декларации невозможно импортировать без \"типа импорта\". Вы хотели вместо этого импортировать файл реализации ' {0} '?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Модификатор declare нельзя использовать в уже окружающем контексте.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Декоратор может только декорировать реализацию метода, а не перегрузку.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "Предложение default не может повторяться в операторе switch.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Экспорт по умолчанию должен находиться на верхнем уровне объявления файла или модуля.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Утверждение определенного назначения \"!\" запрещено в этом контексте.", "A_destructuring_declaration_must_have_an_initializer_1182": "Объявление деструктурирования должно включать инициализатор.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "Для вызова динамического импорта в ES5 требуется конструктор Promise. Убедитесь в наличии объявления для конструктора \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "Для вызова динамического импорта в ES5/ES3 требуется конструктор \"Promise\". Убедитесь в наличии объявления для конструктора \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Вызов динамического импорта возвращает \"Promise\". Убедитесь в наличии объявления для \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", "A_file_cannot_have_a_reference_to_itself_1006": "Файл не может содержать ссылку на самого себя.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "Функция, возвращающая \"never\", не может иметь доступную конечную точку.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "Функция, которая вызывается с ключевым словом new, не может иметь тип this со значением void.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Функция, объявленный тип которой не является ни \"неопределенным\", ни \"недействительным\", ни \"любым\", должна возвращать значение.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Функция, объявленный тип которой не является void или any, должна возвращать значение.", "A_generator_cannot_have_a_void_type_annotation_2505": "Генератор не может иметь аннотацию типа void.", "A_get_accessor_cannot_have_parameters_1054": "Метод доступа get не может иметь параметров.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Метод доступа get должен быть доступным как минимум в той же мере, что и метод задания.", @@ -62,9 +55,9 @@ "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_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Объявление пространства имен не может располагаться раньше класса или функции, с которыми оно объединено.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Объявление пространства имен разрешено только на верхнем уровне пространства имен или модуля.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Объявление \"namespace\" с использованием ключевого слова \"module\" недопустимо. Вместо него используйте ключевое слово \"namespace\".", "A_non_dry_build_would_build_project_0_6357": "При сборке без флага -dry будет собран проект \"{0}\"", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "При сборке без флага -dry будут удалены следующие файлы: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "Сборка без флага -dry обновит выходные данные проекта \"{0}\"", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Сборка без флага -dry обновит метки времени для выходных данных проекта \"{0}\"", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Инициализатор параметра разрешено использовать только в реализации функции или конструктора.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Свойство параметра невозможно объявить с помощью параметра REST.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Вызов \"super\" должен быть первой инструкцией в конструкторе, ссылающейся на \"super\" или \"this\", если производный класс содержит инициализированные свойства, свойства параметров или частные идентификаторы.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "Условие типа this несовместимо с условием типа на основе параметров.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Тип this доступен только в нестатическом элементе класса или интерфейса.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "Модификатор \"export\" верхнего уровня нельзя использовать в объявлениях значений в модуле CommonJS, если включен \"verbatimModuleSyntax\".", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Файл tsconfig.json уже определен в \"{0}\".", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Элемент кортежа не может быть одновременно элементом rest и необязательным элементом.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Тип кортежа нельзя индексировать с отрицательным значением.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Выражение yield разрешено использовать только в теле генератора.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "Невозможно получить доступ к абстрактному методу \"{0}\" класса \"{1}\" с помощью выражения super.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Абстрактные методы могут использоваться только в абстрактных классах.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Абстрактные свойства могут появляться только внутри абстрактного класса.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "Абстрактное свойство \"{0}\" в классе \"{1}\" недоступно в конструкторе.", "Accessibility_modifier_already_seen_1028": "Модификатор специальных возможностей уже встречался.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Методы доступа доступны только при разработке для ECMAScript 5 и более поздних версий.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "Методы доступа должны быть абстрактными или неабстрактными.", "Add_0_to_unresolved_variable_90008": "Добавить \"{0}.\" к неразрешенной переменной", "Add_a_return_statement_95111": "Добавить оператор return", - "Add_a_return_type_to_the_function_declaration_9031": "Добавьте тип возвращаемого значения в объявление функции.", - "Add_a_return_type_to_the_function_expression_9030": "Добавьте тип возвращаемого значения в выражение функции.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Добавьте тип возвращаемого значения в объявление метода доступа get.", - "Add_a_return_type_to_the_method_9034": "Добавьте тип возвращаемого значения в метод", - "Add_a_type_annotation_to_the_parameter_0_9028": "Добавьте аннотацию типа к параметру {0} .", - "Add_a_type_annotation_to_the_property_0_9029": "Добавьте аннотацию типа к свойству {0} .", - "Add_a_type_annotation_to_the_variable_0_9027": "Добавьте аннотацию типа к переменной {0} .", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Добавьте тип в параметр объявления метода доступа set.", "Add_all_missing_async_modifiers_95041": "Добавить все отсутствующие модификаторы \"async\"", "Add_all_missing_attributes_95168": "Добавить все отсутствующие атрибуты", "Add_all_missing_call_parentheses_95068": "Добавить все недостающие скобки вызова", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Добавить все отсутствующие импорты", "Add_all_missing_members_95022": "Добавить все отсутствующие элементы", "Add_all_missing_override_modifiers_95162": "Добавьте все отсутствующие модификаторы \"override\".", - "Add_all_missing_parameters_95190": "Добавьте все недостающие параметры", "Add_all_missing_properties_95166": "Добавить все отсутствующие свойства", "Add_all_missing_return_statement_95114": "Добавить все отсутствующие операторы return", "Add_all_missing_super_calls_95039": "Добавить все отсутствующие вызовы super", - "Add_all_missing_type_annotations_90067": "Добавьте все недостающие аннотации типов", - "Add_all_optional_parameters_95193": "Добавить все необязательные параметры", - "Add_annotation_of_type_0_90062": "Добавьте аннотацию типа ' {0} '", "Add_async_modifier_to_containing_function_90029": "Добавьте модификатор async в содержащую функцию", "Add_await_95083": "Добавить \"await\"", "Add_await_to_initializer_for_0_95084": "Добавить \"await\" к инициализатору для \"{0}\"", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Добавить инициализаторы ко всем неинициализированным свойствам", "Add_missing_attributes_95167": "Добавить отсутствующие атрибуты", "Add_missing_call_parentheses_95067": "Добавить недостающие скобки вызова", - "Add_missing_comma_for_object_member_completion_0_95187": "Добавьте недостающую запятую для завершения члена объекта ' {0} '.", "Add_missing_enum_member_0_95063": "Добавить отсутствующий член перечисления \"{0}\"", "Add_missing_function_declaration_0_95156": "Добавить недостающее объявление функции \"{0}\"", "Add_missing_new_operator_to_all_calls_95072": "Добавить отсутствующий оператор \"new\" во все вызовы", "Add_missing_new_operator_to_call_95071": "Добавить отсутствующий оператор \"new\" в вызов", - "Add_missing_parameter_to_0_95188": "Добавить недостающий параметр в ' {0} '", - "Add_missing_parameters_to_0_95189": "Добавьте недостающие параметры в ' {0} '", "Add_missing_properties_95165": "Добавить отсутствующие свойства", "Add_missing_super_call_90001": "Добавьте отсутствующий вызов \"super()\"", "Add_missing_typeof_95052": "Добавить отсутствующий \"typeof\"", "Add_names_to_all_parameters_without_names_95073": "Добавить имена ко всем параметрам без имен", - "Add_optional_parameter_to_0_95191": "Добавьте необязательный параметр в ' {0} '", - "Add_optional_parameters_to_0_95192": "Добавить дополнительные параметры в \"{0}\"", "Add_or_remove_braces_in_an_arrow_function_95058": "Добавить скобки в стрелочную функцию или удалить скобки из нее", "Add_override_modifier_95160": "Добавьте модификатор \"override\".", "Add_parameter_name_90034": "Добавить имя параметра", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Добавить квалификатор ко всем неразрешенным переменным, соответствующим имени члена", - "Add_resolution_mode_import_attribute_95196": "Добавьте атрибут импорта \"resolution-mode\"", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "Добавьте атрибут импорта \"resolution-mode\" ко всем командам импорта, затрагивающим только тип, для которых это необходимо", - "Add_return_type_0_90063": "Добавить тип возвращаемого значения ' {0} '", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Добавьте к этому выражению satisfies и утверждение типа (удовлетворяет T как T), чтобы сделать тип явным.", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Добавьте удовлетворение и утверждение встроенного типа с помощью ' {0} '", "Add_to_all_uncalled_decorators_95044": "Добавить \"()\" ко всем невызванным декораторам", "Add_ts_ignore_to_all_error_messages_95042": "Добавить \"@ts-ignore\" ко всем сообщениям об ошибках", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "Добавьте \"undefined\" к типу при доступе с использованием индекса.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Разрешить импорт по умолчанию из модулей без экспорта по умолчанию. Это не повлияет на выведение кода — только на проверку типов.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Разрешить \"импортировать x из y\", если модуль не имеет экспорта по умолчанию.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "Разрешить импортировать вспомогательныхе функции из tslib один раз для каждого проекта, а не включать их для каждого файла.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "Разрешить импортировать расширения файлов TypeScript. Требуется установить --moduleResolution packager и --noEmit или --emitDeclarationOnly.", "Allow_javascript_files_to_be_compiled_6102": "Разрешить компиляцию файлов javascript.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Разрешить обрабатывать несколько папок как одну при разрешении модулей.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Уже включенное имя файла \"{0}\" отличается от имени файла \"{1}\" только регистром.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Не указан аргумент, соответствующий этому шаблону привязки.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Арифметический операнд должен иметь тип \"any\", \"number\", \"bigint\" или тип перечисления.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Стрелочная функция не может иметь параметр \"this\".", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "Для асинхронной функции или метода в ES5 требуется конструктор Promise. Убедитесь в наличии объявления для конструктора \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "Асинхронной функции или методу ES5/ES3 требуется конструктор \"Promise\". Убедитесь в наличии объявления для конструктора \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Асинхронная функция или метод должны вернуть \"Promise\". Убедитесь в наличии объявления для \"Promise\" или включите \"ES2015\" в параметр \"--lib\".", "An_async_iterator_must_have_a_next_method_2519": "В асинхронном итераторе должен быть метод next().", "An_element_access_expression_should_take_an_argument_1011": "Выражение доступа к элементу должно принимать аргумент.", @@ -239,22 +207,17 @@ "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_namespace_or_module_1233": "Объявление экспорта может использоваться только на верхнем уровне пространства имен или модуля.", "An_export_declaration_cannot_have_modifiers_1193": "Объявление экспорта не может иметь модификаторы.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "Объявление 'export =' должно ссылаться на реальное значение, если включен 'verbatimModuleSyntax', но ' {0} ' разрешается в объявление только для типа.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "Объявление 'export =' должно ссылаться на значение, если включен 'verbatimModuleSyntax', но ' {0} ' относится только к типу.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "\"Экспорт по умолчанию\" должен ссылаться на реальное значение, когда \"verbatimModuleSyntax\" включен, но \" {0} \" разрешается в объявление только типа.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "\"Экспорт по умолчанию\" должен ссылаться на значение, если включен \"verbatimModuleSyntax\", но \" {0} \" относится только к типу.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "Выражение типа \"void\" не может быть проверено на истинность.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Расширенное escape-значение в Юникоде должно быть в пределах от 0x0 до 0x10FFFF включительно.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Идентификатор или ключевое слово не может следовать непосредственно за числовым литералом.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Реализацию невозможно объявить в окружающих контекстах.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "Псевдоним импорта не может ссылаться на объявление, экспортированное с помощью \"export type\".", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "Псевдоним импорта не может ссылаться на объявление, импортированное с помощью \"import type\".", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Псевдоним импорта не может быть преобразован в объявление типа или только типа, если включен \"verbatimModuleSyntax\".", "An_import_alias_cannot_use_import_type_1392": "Псевдоним импорта не может использовать \"import type\".", "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_namespace_or_module_1232": "Объявление импорта может использоваться только на верхнем уровне пространства имен или модуля.", "An_import_declaration_cannot_have_modifiers_1191": "Объявление импорта не может иметь модификаторы.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Путь импорта может заканчиваться расширением \" {0} \" только в том случае, если включен параметр \"allowImportingTsExtensions\".", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "Путь импорта не может заканчиваться расширением \"{0}\". Попробуйте импортировать \"{1}\".", "An_index_signature_cannot_have_a_rest_parameter_1017": "Сигнатура индекса не может иметь параметр rest.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Сигнатура индекса не может заканчиваться запятой.", "An_index_signature_must_have_a_type_annotation_1021": "У сигнатуры индекса должна быть аннотация типа.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "За выражением создания экземпляра не может следовать доступ к свойству.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Интерфейс может расширить только идентификатор или полное имя с дополнительными аргументами типа.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Интерфейс может расширять только тип объекта или пересечение типов объектов со статическими известными членами.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Интерфейс не может расширять примитивный тип, такой как ' {0} '. Он может расширять только другие именованные типы объектов.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Интерфейс не может расширять примитивный тип, например \"{0}\". Интерфейс может расширять только именованные типы и классы", "An_interface_property_cannot_have_an_initializer_1246": "Свойство интерфейса не может иметь инициализатор.", "An_iterator_must_have_a_next_method_2489": "Итератор должен иметь метод \"next()\".", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "При использовании директивы pragma @jsx с фрагментами JSX требуется директива pragma @jsxFrag.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "У объектного литерала не может быть несколько свойств с одинаковым именем.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Объектный литерал не может иметь свойство и метод доступа с одинаковым именем.", "An_object_member_cannot_be_declared_optional_1162": "Элемент объекта не может быть объявлен необязательным.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Метод объекта \"[Symbol.hasInstance]\" должен возвращать логическое значение, чтобы его можно было использовать в правой части выражения \"instanceof\".", "An_optional_chain_cannot_contain_private_identifiers_18030": "Необязательная цепочка не может содержать закрытые идентификаторы.", "An_optional_element_cannot_follow_a_rest_element_1266": "Необязательный элемент не может следовать за элементом rest.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "Этот контейнер затемняет внешнее значение \"this\".", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Сигнатура перегрузки не может быть объявлена в качестве генератора.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Унарное выражение с оператором \"{0}\" не допускается в левой части выражения, возводимого в степень. Попробуйте заключить выражение в скобки.", "Annotate_everything_with_types_from_JSDoc_95043": "Добавить заметки ко всем элементам с типами JSDoc", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Аннотирование типов свойств расширяет функцию в пространстве имен", "Annotate_with_type_from_JSDoc_95009": "Заметка с типом из JSDoc", "Another_export_default_is_here_2753": "Здесь находится другой экспорт данных по умолчанию.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Любое свойство Unicode, которое может соответствовать более чем одному символу, доступно только в том случае, если установлен флаг Unicode Sets (v).", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Все, что может соответствовать более чем одному символу, недопустимо внутри отрицаемого класса символов.", "Are_you_missing_a_semicolon_2734": "У вас отсутствует точка с запятой?", "Argument_expression_expected_1135": "Ожидалось выражение аргумента.", "Argument_for_0_option_must_be_Colon_1_6046": "Аргумент для параметра \"{0}\" должен быть {1}.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "Невозможно назначить аргумент типа \"{0}\" параметру типа \"{1}\", когда свойство \"exactOptionalPropertyTypes\" имеет значение \"true\". Рассмотрите возможность добавления типа \"undefined\" к типам свойств цели.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "Не указаны аргументы для параметра REST \"{0}\".", "Array_element_destructuring_pattern_expected_1181": "Ожидался шаблон деструктурирования элемента массива.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Массивы с расширенными элементами не могут быть выведены с помощью --isolatedDeclarations.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Утверждения требуют, чтобы каждое имя в целевом объекте вызова было объявлено с явной заметкой с типом.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Утверждения требуют, чтобы целевой объект вызова был идентификатором или полным именем.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Назначение свойств функциям без их объявления не поддерживается с помощью --isolatedDeclarations. Добавьте явное объявление свойств, назначенных этой функции.", "Asterisk_Slash_expected_1010": "Ожидалось \"*/\".", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "По крайней мере один метод доступа должен иметь явную аннотацию типа с параметром --isolatedDeclarations.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Улучшения для глобальной области могут быть вложены во внешние модули или неоднозначные объявления модулей только напрямую.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Улучшения для глобальной области не должны иметь модификатор declare, если они отображаются в окружающем контексте.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "Автообнаружение для вводимых данных включено в проекте \"{0}\". Идет запуск дополнительного этапа разрешения для модуля \"{1}\" с использованием расположения кэша \"{2}\".", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Выражение Await нельзя использовать внутри статического блока класса.", "BUILD_OPTIONS_6919": "ПАРАМЕТРЫ СБОРКИ", "Backwards_Compatibility_6253": "Обратная совместимость", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Выражения базового класса не могут ссылаться на параметры типа класса.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "Литералы типа bigint недоступны при нацеливании на версию ниже ES2020.", "Binary_digit_expected_1177": "Ожидался бит.", "Binding_element_0_implicitly_has_an_1_type_7031": "Элемент привязки \"{0}\" имеет неявный тип \"{1}\".", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Элементы привязки нельзя экспортировать напрямую с помощью --isolatedDeclarations.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Переменная \"{0}\" с областью видимости, ограниченной блоком, использована перед своим объявлением.", "Build_a_composite_project_in_the_working_directory_6925": "Создание составного проекта в рабочей папке.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Собирайте все проекты, включая не требующие обновления.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Собрать один проект или несколько и их зависимости, если они не обновлены", "Build_option_0_requires_a_value_of_type_1_5073": "Параметр сборки \"{0}\" требует значение типа {1}.", "Building_project_0_6358": "Сборка проекта \"{0}\"...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Встроенные итераторы создаются с типом TReturn \"неопределенным\" вместо \"любого\".", "COMMAND_LINE_FLAGS_6921": "ФЛАГИ КОМАНДНОЙ СТРОКИ", "COMMON_COMMANDS_6916": "ОБЩИЕ КОМАНДЫ", "COMMON_COMPILER_OPTIONS_6920": "ОБЩИЕ ПАРАМЕТРЫ КОМПИЛЯТОРОВ", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "Типы возвращаемых значений сигнатур вызовов \"{0}\" и \"{1}\" несовместимы.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Сигнатура вызова, у которой нет аннотации типа возвращаемого значения, неявно имеет тип возвращаемого значения any.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Сигнатуры вызова без аргументов имеют несовместимые типы возвращаемых значений \"{0}\" и \"{1}\".", + "Call_target_does_not_contain_any_signatures_2346": "Объект вызова не содержит сигнатуры.", "Can_only_convert_logical_AND_access_chains_95142": "Можно преобразовывать только цепочки доступа с логическим И.", "Can_only_convert_named_export_95164": "Можно преобразовать только именованный экспорт.", "Can_only_convert_property_with_modifier_95137": "Можно только преобразовать свойство с модификатором", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Можно преобразовывать только конкатенации строк и строковые литералы.", + "Can_only_convert_string_concatenation_95154": "Можно только преобразовать объединение строк.", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "Не удается получить доступ к {0}.{1}, так как {0} является типом, но не является пространством имен. Вы хотели получить тип свойства {1} в {0} с использованием {0}[\"{1}\"]?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "Невозможно получить доступ к ' {0} ' из другого файла без уточнения, если включен ' {1} '. Вместо него используйте '{2}'.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "Невозможно получить доступ к перечислениям окружения const, если включено ' {0} '.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "Не удается обратиться к перечислениям внешних констант, если задан флаг \"--isolatedModules\".", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "Не удается назначить тип конструктора \"{0}\" для типа конструктора \"{1}\".", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Не удается назначить тип конструктора абстрактного класса для типа конструктора класса, не являющегося абстрактным.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Не удается задать значение для \"{0}\", так как это класс.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "Не удается найти определение lib для \"{0}\".", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "Не удается найти определение lib для \"{0}\". Вы имели в виду \"{1}\"?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Не удается найти модуль \"{0}\". Рекомендуется использовать параметр \"--resolveJsonModule\" для импорта модуля с расширением \".json\".", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Не найден модуль \"{0}\". Вы имели в виду установить для параметра \"moduleResolution\" значение \"nodenext\" или добавить псевдонимы к параметру \"paths\"?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "Не найден модуль \"{0}\". Хотели ли вы задать значение \"node\" для параметра \"moduleResolution\" или добавить псевдонимы в параметр \"paths\"?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Не удается найти модуль \"{0}\" или связанные с ним объявления типов.", "Cannot_find_name_0_2304": "Не удается найти имя \"{0}\".", "Cannot_find_name_0_Did_you_mean_1_2552": "Не удается найти имя \"{0}\". Вы имели в виду \"{1}\"?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "Не удается найти имя \"{0}\". Вы собирались использовать его в асинхронной функции?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "Не удается найти имя \"{0}\". Вы хотите изменить целевую библиотеку? Попробуйте изменить параметр компилятора \"lib\" на \"{1}\" или более поздней версии.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "Не удается найти имя \"{0}\". Вы хотите изменить целевую библиотеку? Попробуйте изменить параметр компилятора \"lib\", включив \"dom\".", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "Не удается найти имя \"{0}\". Вам нужно установить определения типов для Bun? Попробуйте `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_2868": "Не удается найти имя \"{0}\". Вам нужно установить определения типов для Bun? Попробуйте `npm i --save-dev @types/bun`, а затем добавьте 'bun' в поле типов в вашем tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "Не удается найти имя \"{0}\". Вы хотите установить определения типов для средства запуска тестов? Попробуйте использовать команды \"npm i --save-dev @types/jest\" или \"npm i --save-dev @types/mocha\".", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "Не удается найти имя \"{0}\". Вы хотите установить определения типов для средства выполнения тестов? Попробуйте использовать `npm i --save-dev @types/jest` или `npm i --save-dev @types/mocha`, а затем добавьте \"jest\" или \"mocha\" в поле типов в файле tsconfig.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "Не удается найти имя \"{0}\". Вы хотите установить определения типов для jQuery? Попробуйте использовать команду \"npm i --save-dev @types/jquery\".", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Не удается выполнить итерацию по значению, так как метод \"next\" его итератора ожидает тип \"{1}\", но деструктурирование массива всегда будет отправлять \"{0}\".", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Не удается выполнить итерацию по значению, так как метод \"next\" его итератора ожидает тип \"{1}\", но расширение массива всегда будет отправлять \"{0}\".", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Не удается выполнить итерацию по значению, так как метод \"next\" его итератора ожидает тип \"{1}\", но \"for-of\" всегда будет отправлять \"{0}\".", - "Cannot_move_statements_to_the_selected_file_95183": "Невозможно переместить выписки в выбранный файл", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Невозможно перейти к файлу, выбранный файл недействителен.", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "Невозможно добавить проект \"{0}\" в начало, так как для него не задан outFile", "Cannot_read_file_0_5083": "Невозможно прочитать файл \"{0}\".", "Cannot_read_file_0_Colon_1_5012": "Не удается считать файл \"{0}\": {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Невозможно повторно объявить переменную \"{0}\" с областью видимости \"Блок\".", "Cannot_redeclare_exported_variable_0_2323": "Не удается повторно объявить экспортированную переменную \"{0}\".", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Невозможно повторно объявить идентификатор \"{0}\" в операторе catch.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Не удается запустить вызов функции в заметке типа.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "Не удается обновить выходные данные проекта \"{0}\", так как произошла ошибка при чтении файла \"{1}\".", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "Невозможно использовать JSX, если не задан флаг \"--jsx\".", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "Невозможно использовать \"экспорт-импорт\" в пространстве имен типа или только для типов, если включен '{0}'.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "Невозможно использовать \"export import\" для типа или пространства имен, доступного только для типов, когда указан флаг \"--isolatedModules\".", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "Невозможно использовать директивы import, export или приращения модуля, если флаг \"--module\" имеет значение \"none\".", "Cannot_use_namespace_0_as_a_type_2709": "Невозможно использовать пространство имен \"{0}\" как тип.", "Cannot_use_namespace_0_as_a_value_2708": "Невозможно использовать пространство имен \"{0}\" как значение.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "Измените \"extends\" на \"implements\"", "Change_spelling_to_0_90022": "Измените написание на \"{0}\"", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Проверьте свойства класса, которые объявлены, но не заданы в конструкторе.", - "Check_side_effect_imports_6806": "Проверьте импорт побочных эффектов.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "Убедитесь, что аргументы для методов \"bind\", \"call\" и \"apply\" соответствуют исходной функции.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "Идет проверка того, является ли \"{0}\" самым длинным соответствующим префиксом для \"{1}\" — \"{2}\".", "Circular_definition_of_import_alias_0_2303": "Циклическое определение псевдонима импорта \"{0}\".", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "Объявление класса не может реализовать список перегрузок для \"{0}\".", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "В объявлении класса не может использоваться более одного тега \"@augments\" или \"@extends\".", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Декораторы классов не могут использоваться со статическим частным идентификатором. Попробуйте удалить экспериментальный декоратор.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Поле класса \" {0} \", определенное родительским классом, недоступно в дочернем классе через super.", "Class_name_cannot_be_0_2414": "Имя класса не может иметь значение \"{0}\".", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Класс не может иметь имя \"Object\" при выборе ES5 с модулем {0} в качестве целевого.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "Статическая сторона класса \"{0}\" неправильно расширяет статическую сторону базового класса \"{1}\".", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Параметры командной строки", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Компиляция проекта по заданному пути к файлу конфигурации или папке с файлом tsconfig.json.", "Compiler_Diagnostics_6251": "Диагностика компилятора", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "Опции компилятора \" {0} \" не может быть присвоена пустая строка.", "Compiler_option_0_expects_an_argument_6044": "Параметр компилятора \"{0}\" ожидает аргумент.", "Compiler_option_0_may_not_be_used_with_build_5094": "Параметр компилятора \"--{0}\" не может использоваться с \"--build\".", "Compiler_option_0_may_only_be_used_with_build_5093": "Параметр компилятора \"--{0}\" может использоваться только с \"--build\".", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Составные проекты не могут отключать выпуск объявления.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Составные проекты не могут отключить добавочную компиляцию.", "Computed_from_the_list_of_input_files_6911": "Вычислено из списка входных файлов", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Вычисляемые свойства должны быть числовыми или строковыми литералами, переменными или выражениями, разделенными точками, с параметром --isolatedDeclarations.", "Computed_property_names_are_not_allowed_in_enums_1164": "Имена вычисляемых свойств запрещены в перечислениях.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Вычисленные имена свойств в литералах классов или объектов не могут быть выведены с помощью --isolatedDeclarations.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Вычисленные значения запрещены в перечислении с членами, имеющими строковые значения.", "Concatenate_and_emit_output_to_single_file_6001": "Связать и вывести результаты в один файл.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "Условия, которые необходимо установить в дополнение к настройкам по умолчанию, специфичным для преобразователя, при разрешении импорта.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "Конфликтующие определения для \"{0}\" найдены в \"{1}\" и \"{2}\". Попробуйте установить конкретную версию этой библиотеки, чтобы устранить конфликт.", "Conflicts_are_in_this_file_6201": "В этом файле присутствуют конфликты.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Попробуйте добавить к этому классу модификатор \"declare\".", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "Типы возвращаемых значений сигнатур конструкции \"{0}\" и \"{1}\" несовместимы.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "Преобразовать \"{0}\" в тип сопоставленного объекта", "Convert_all_const_to_let_95102": "Преобразовать все \"const\" в \"let\"", "Convert_all_constructor_functions_to_classes_95045": "Преобразовать все функции конструктора в классы", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Преобразовать все импорты, не используемые в качестве значения, в импорты, затрагивающие только тип", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Преобразовать все недопустимые символы в код сущности HTML", "Convert_all_re_exported_types_to_type_only_exports_1365": "Преобразовать все повторно экспортированные типы в экспорты, затрагивающие только тип", "Convert_all_require_to_import_95048": "Преобразовать все \"require\" в \"import\"", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Преобразовать все в числовые литералы типа bigint", "Convert_all_to_default_imports_95035": "Преобразовать все в импорт по умолчанию", "Convert_all_type_literals_to_mapped_type_95021": "Преобразовать все литералы типов в сопоставленный тип", - "Convert_all_typedef_to_TypeScript_types_95177": "Преобразуйте все typedef в типы TypeScript.", "Convert_arrow_function_or_function_expression_95122": "Преобразовать стрелочную функцию или выражение функции", "Convert_const_to_let_95093": "Преобразовать \"const\" в \"let\"", "Convert_default_export_to_named_export_95061": "Преобразовать экспорт по умолчанию в именованный экспорт", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "Преобразовать в необязательное выражение цепочки", "Convert_to_template_string_95096": "Преобразовать в строку шаблона", "Convert_to_type_only_export_1364": "Преобразовать в экспорт, распространяющийся только на тип", - "Convert_typedef_to_TypeScript_type_95176": "Преобразование typedef в тип TypeScript.", + "Convert_to_type_only_import_1373": "Преобразовать в импорт, распространяющийся только на тип", "Corrupted_locale_file_0_6051": "Поврежденный файл языкового стандарта \"{0}\".", "Could_not_convert_to_anonymous_function_95153": "Не удалось преобразовать в анонимную функцию.", "Could_not_convert_to_arrow_function_95151": "Не удалось преобразовать в стрелочную функцию.", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "Не удалось найти имя \"{0}\". Вы имели в виду \"{1}\"?", "Could_not_find_namespace_import_or_named_imports_95132": "Не удалось найти импорт пространства имен или именованные импорты.", "Could_not_find_property_for_which_to_generate_accessor_95135": "Не удалось найти свойство, для которого создается метод доступа.", - "Could_not_find_variable_to_inline_95185": "Не удалось найти переменную для встраивания.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Не удалось разрешить путь \"{0}\" с расширениями: {1}.", "Could_not_write_file_0_Colon_1_5033": "Не удалось записать файл \"{0}\": \"{1}\".", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Создать файлы сопоставителя с исходным кодом для выпущенных файлов JavaScript.", "Create_sourcemaps_for_d_ts_files_6614": "Создание сопоставителя с исходным кодом для файлов d.ts.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Создает tsconfig.jsс рекомендуемыми параметрами в рабочей папке.", "DIRECTORY_6038": "КАТАЛОГ", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Десятичные escape-последовательности и обратные ссылки не допускаются в классе символов.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Десятичные дроби с ведущими нулями не допускаются.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Объявление дополняет объявление в другом файле. Сериализация невозможна.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Выдача декларации для этого файла требует сохранения этого импорта для дополнений. Это не поддерживается с помощью --isolatedDeclarations.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Для порождения объявления для этого файла требуется использовать закрытое имя \"{0}\". Явная заметка с типом может разблокировать порождение объявления.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Для порождения объявления для этого файла требуется использовать закрытое имя \"{0}\" из модуля \"{1}\". Явная заметка с типом может разблокировать порождение объявления.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Выдача объявления для этого параметра требует неявного добавления неопределенного значения к его типу. Это не поддерживается с помощью --isolatedDeclarations.", "Declaration_expected_1146": "Ожидалось объявление.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Имя объявления конфликтует со встроенным глобальным идентификатором \"{0}\".", "Declaration_or_statement_expected_1128": "Ожидалось объявление или оператор.", - "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_d_2809": "Ожидалось объявление или инструкция. Этот символ \"=\" следует за блоком инструкций, поэтому, если вы хотите использовать назначение деструктурирования, может потребоваться заключить все присваивание в круглые скобки.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Объявления с определенными утверждениями присваивания также должны иметь заметки типов.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Объявления с инициализаторами не могут также иметь определенные утверждения присваивания.", "Declare_a_private_field_named_0_90053": "Объявите закрытое поле с именем \"{0}\".", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "Объявите статическое свойство \"{0}\"", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "Тип возвращаемого значения функции декоратора \"{0}\" нельзя назначить типу \"{1}\".", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Тип возвращаемого значения функции декоратора — \"{0}\", но ожидается \"void\" или \"any\".", - "Decorator_used_before_export_here_1486": "Здесь декоратор используется перед \"экспортом\".", "Decorators_are_not_valid_here_1206": "Декораторы здесь недопустимы.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Декораторы нельзя применять к множественным методам доступа get или set с совпадающим именем.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Декораторы могут не отображаться после \"экспорта\" или \"экспорта по умолчанию\", если они также появляются перед \"экспортом\".", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Декораторы не могут применяться к параметрам \"this\".", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Перед именем и всеми ключевыми словами объявлений свойств должны предшествовать декораторы.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "По умолчанию применяйте для переменных предложения catch значение \"unknown\" вместо \"any\".", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Экспорт модуля по умолчанию использует или имеет закрытое имя \"{0}\".", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Экспорт по умолчанию не может быть выведен с помощью --isolatedDeclarations.", "Default_library_1424": "Библиотека по умолчанию", "Default_library_for_target_0_1425": "Библиотека по умолчанию для целевого объекта \"{0}\"", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Определения следующих идентификаторов конфликтуют с определениями в другом файле: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Отключите стирание объявлений \"const enum\" в сгенерированном коде.", "Disable_error_reporting_for_unreachable_code_6603": "Отключить отчеты об ошибках для недостижимого кода.", "Disable_error_reporting_for_unused_labels_6604": "Отключить отчеты об ошибках для неиспользуемых меток.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Отключите полную проверку типов (будут сообщаться только о критических ошибках синтаксического анализа и генерации).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Отключите создание пользовательских вспомогательных функций, таких как \"__extends\", в скомпилированных выходных данных.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Отключить включение любых файлов библиотеки, включая lib.d.ts по умолчанию.", "Disable_loading_referenced_projects_6235": "Отключите загрузку проектов, на которые имеются ссылки.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Запретите \"import\", \"require\" или \"\" увеличивать количество файлов, которые TypeScript должен добавить в проект.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Запретить ссылки с разным регистром, указывающие на один файл.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Не добавлять ссылки с тройной косой чертой или импортированные модули в список скомпилированных файлов.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Не разрешать конструкции среды выполнения, которые не являются частью ECMAScript.", "Do_not_emit_comments_to_output_6009": "Не создавать комментарии в выходных данных.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Не создавать объявления для кода, имеющего аннотацию \"@internal\".", "Do_not_emit_outputs_6010": "Не создавать выходные данные.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Не сообщать об ошибках в недостижимом коде.", "Do_not_report_errors_on_unused_labels_6074": "Не сообщать об ошибках в неиспользуемых метках.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Не разрешать реальный путь symlink.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "Не преобразовывайте и не удаляйте любые операции импорта или экспорта, не помеченные как только текстовые, гарантируя, что они записаны в формате выходного файла на основе настройки \"модуль\".", "Do_not_truncate_error_messages_6165": "Не усекать сообщения об ошибках.", "Duplicate_function_implementation_2393": "Повторяющаяся реализация функции.", "Duplicate_identifier_0_2300": "Повторяющийся идентификатор \"{0}\".", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "Повторяющаяся сигнатура индекса для типа \"{0}\".", "Duplicate_label_0_1114": "Повторяющаяся метка \"{0}\".", "Duplicate_property_0_2718": "Повторяющееся свойство \"{0}\".", - "Duplicate_regular_expression_flag_1500": "Дублирующийся флаг регулярного выражения.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Описатель динамического импорта должен иметь тип \"string\", но имеет тип \"{0}\".", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Динамический импорт поддерживается только в том случае, если флаг \"--module\" установлен на \"es2020\", \"es2022\", \"esnext\", \"commonjs\", \"amd\", \"system\", \"umd\", \"node16\", \"node18\" или \"nodenext\".", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Динамический импорт может принимать в качестве аргументов только спецификатор модуля и необязательный набор атрибутов.", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Динамический импорт поддерживает второй аргумент только в том случае, если параметр \"--module\" имеет значение \"esnext\", \"node16\", \"node18\", \"nodenext\" или \"preserve\".", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "Синтаксис ESM не разрешен в модуле CommonJS, если для параметра \"модуль\" установлено значение \"сохранить\".", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "Синтаксис ESM не разрешен в модуле CommonJS, если включен \"verbatimModuleSyntax\".", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "Каждое объявление '{0}.{1}' отличается по своему значению: ожидалось ' {2} ', но было задано ' {3} '.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Динамический импорт поддерживается только в том случае, если для флажка --module установлено значение ''es2020'', ''es2022'', ''esnext'', ''commonjs'', ''amd'', ''system'', ''umd'', ''node16'' или ''nodenext''.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Динамические импорты могут принять спецификатор модуля и необязательное утверждение в качестве аргументов", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Динамический импорт поддерживает только второй аргумент, если для параметра --module установлено значение ''esnext'', ''node16'' или ''nodenext''.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "Каждый член типа объединения \"{0}\" имеет сигнатуры конструкций, но ни одна из их не совместима с другими.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "Каждый член типа объединения \"{0}\" имеет сигнатуры, но ни одна из их не совместима с другими.", "Editor_Support_6249": "Поддержка редактора", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Включить отчеты об ошибках в файлах JavaScript с проверкой типа.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Включите отчеты об ошибках, если локальные переменные не считываются.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "Включите отчеты об ошибках, если параметр \"this\" имеет тип \"any\".", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Включите экспериментальную поддержку устаревших экспериментальных декораторов.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Разрешить импорт файлов с любым расширением при наличии файла декларации.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "Включить экспериментальную поддержку черновиков оформителей TC39 stage 2.", "Enable_importing_json_files_6689": "Включите импорт файлов JSON.", - "Enable_lib_replacement_6808": "Включить замену библиотеки.", "Enable_project_compilation_6302": "Включить компиляцию проекта", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Включите строгие методы \"bind\", \"call\" и \"apply\" для функций.", "Enable_strict_checking_of_function_types_6186": "Включение строгой проверки типов функций.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "Убедитесь, что при импорте используется правильный регистр.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Убедитесь, что каждый файл можно безопасно перенести, не полагаясь на другой импорт.", "Ensure_use_strict_is_always_emitted_6605": "Убедитесь, что всегда используется \"use strict\".", - "Entering_conditional_exports_6413": "Ввод условного экспорта.", "Entry_point_for_implicit_type_library_0_1420": "Точка входа для библиотеки неявных типов \"{0}\"", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "Точка входа для библиотеки неявных типов \"{0}\" с идентификатором пакета \"{1}\"", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "Точка входа для библиотеки типов \"{0}\", указанная в compilerOptions", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Объявления перечислений можно объединять только с пространствами имен или другими объявлениями перечислений.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Все объявления перечислений должны иметь значение const или отличное от const.", "Enum_member_expected_1132": "Ожидался элемент перечисления.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Член перечисления, следующий за небуквенным числовым элементом, должен иметь инициализатор, если включена опция \"isolatedModules\".", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Инициализаторы членов перечисления должны быть вычислимыми без ссылок на внешние символы с помощью --isolatedDeclarations.", "Enum_member_must_have_initializer_1061": "У элемента перечисления должен быть инициализатор.", "Enum_name_cannot_be_0_2431": "Имя перечисления не может иметь значение \"{0}\".", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Тип перечисления \"{0}\" имеет элементы с инициализаторами, которые не являются литералами.", "Errors_Files_6041": "Файлы ошибок", - "Escape_sequence_0_is_not_allowed_1488": "Escape-последовательность ' {0} ' не разрешена.", "Examples_Colon_0_6026": "Примеры: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "Чрезмерная сложность сравнения типов ' {0} ' и ' {1} '.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Чрезмерная глубина стека при сравнении типов \"{0}\" и \"{1}\".", - "Exiting_conditional_exports_6416": "Выход из условного экспорта.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "Ожидается аргументов типа: {0}–{1}. Укажите их с тегом \"@extends\".", "Expected_0_arguments_but_got_1_2554": "Ожидалось аргументов: {0}, получено: {1}.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "Ожидаемое число аргументов — {0}, фактическое — {1}. Возможно, вы забыли указать void в аргументе типа в Promise?", "Expected_0_type_arguments_but_got_1_2558": "Ожидались аргументы типа {0}, получены: {1}.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "Ожидается аргументов типа: {0}. Укажите их с тегом \"@extends\".", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "Ожидался 1 аргумент, получено 0. Для \"new Promise()\" требуется указание JSDoc, чтобы создать \"resolve\" с возможностью вызова без аргументов.", - "Expected_a_Unicode_property_name_1523": "Ожидается имя свойства в Юникоде.", - "Expected_a_Unicode_property_name_or_value_1527": "Ожидается имя или значение свойства в Юникоде.", - "Expected_a_Unicode_property_value_1525": "Ожидается значение свойства Unicode.", - "Expected_a_capturing_group_name_1514": "Ожидается имя группы захвата.", - "Expected_a_class_set_operand_1520": "Ожидается операнд набора классов.", "Expected_at_least_0_arguments_but_got_1_2555": "Ожидалось аргументов не меньше: {0}, получено: {1}.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "Ожидался соответствующий закрывающий тег JSX для \"{0}\".", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "Ожидался соответствующий закрывающий тег фрагмента JSX.", "Expected_for_property_initializer_1442": "Требуется \"=\" для инициализатора свойства.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "Ожидаемый тип поля \"{0}\" в \"package.json\" должен быть \"{1}\", получен \"{2}\".", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Экспериментальная поддержка для декораторов — это функция, которая будет изменена в будущем выпуске. Задайте параметр \"experimentalDecorators\" в \"tsconfig\" или \"jsconfig\", чтобы удалить это предупреждение.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Явно указанный тип разрешения модуля: \"{0}\".", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "Невозможно выполнить возведение в степень для значений \"bigint\", если для параметра \"target\" не задана версия \"es2016\" или более поздняя версия.", "Export_0_from_module_1_90059": "Экспорт \"{0}\" из модуля \"{1}\"", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "Экспортированная переменная \"{0}\" имеет или использует закрытое имя \"{1}\".", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Экспорт и назначения экспорта не разрешены в улучшениях модуля.", "Expression_expected_1109": "Ожидалось выражение.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "Выражение должно быть заключено в круглые скобки, чтобы его можно было использовать в качестве декоратора.", "Expression_or_comma_expected_1137": "Ожидалось выражение или запятая.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "Выражение создает тип кортежа, который слишком большой для представления.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "Выражение создает тип объединения, который слишком сложен для представления.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "Разрешение выражения дает идентификатор \"_super\", который используется компилятором для получения ссылки на базовый класс.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "Выражение разрешается в объявление переменной \"_newTarget\", которое компилятор использует для получения ссылки на метасвойство \"new.target\".", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "Разрешение выражения дает объявление переменной \"_this\", которое используется компилятором для получения ссылки this.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "Тип выражения не может быть выведен с помощью --isolatedDeclarations.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Предложение Extends не может содержать выражение с --isolatedDeclarations.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Предложение extends для выведенного типа \" {0} \" имеет или использует частное имя \" {1} \".", - "Extract_base_class_to_variable_90064": "Извлечь базовый класс в переменную", - "Extract_binding_expressions_to_variable_90066": "Извлечь выражения привязки в переменную", "Extract_constant_95006": "Извлечь константу", - "Extract_default_export_to_variable_90065": "Извлечение экспорта по умолчанию в переменную", "Extract_function_95005": "Извлечь функцию", "Extract_to_0_in_1_95004": "Извлечь в {0} в {1}", "Extract_to_0_in_1_scope_95008": "Извлечь в {0} в области {1}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Извлечь в интерфейс", "Extract_to_type_alias_95078": "Извлечь в псевдоним типа", "Extract_to_typedef_95079": "Извлечь в typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Извлечь в переменную и заменить на \"{0} как typeof {0}\"", "Extract_type_95077": "Тип Extract", "FILE_6035": "ФАЙЛ", "FILE_OR_DIRECTORY_6040": "Файл или каталог", - "Failed_to_find_peerDependency_0_6283": "Не удалось найти peerDependency \"{0}\".", - "Failed_to_resolve_under_condition_0_6415": "Не удалось разрешить при условии \"{0}\".", + "Failed_to_parse_file_0_Colon_1_5014": "Не удалось проанализировать файл \"{0}\": {1}.", "Fallthrough_case_in_switch_7029": "Случай передачи управления в операторе switch.", "File_0_does_not_exist_6096": "Файл \"{0}\" не существует.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "Согласно ранее кэшированным поискам, файл \"{0}\" не существует.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "Файл \"{0}\" существует — используйте его как результат разрешения имени.", "File_0_exists_according_to_earlier_cached_lookups_6239": "Согласно ранее кэшированным поискам, файл \"{0}\" существует.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "Файл \"{0}\" существует — используйте его как результат разрешения имени.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "Файл \"{0}\" имеет неподдерживаемое расширение. Поддерживаются только следующие расширения: {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "Файл \"{0}\" имеет неподдерживаемое разрешение, поэтому будет пропущен.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "\"{0}\" является файлом JavaScript. Вы хотели включить параметр \"allowJs\"?", "File_0_is_not_a_module_2306": "Файл \"{0}\" не является модулем.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "Файл \"{0}\" отсутствует в списке файлов проекта \"{1}\". Проекты должны перечислять все файлы или использовать шаблон включения.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "Файл \"{0}\" отсутствует в \"rootDir\" \"{1}\". Все исходные файлы должны находиться в каталоге \"rootDir\".", "File_0_not_found_6053": "Файл \"{0}\" не найден.", "File_Management_6245": "Управление файлами", - "File_appears_to_be_binary_1490": "Файл выглядит двоичным.", "File_change_detected_Starting_incremental_compilation_6032": "Обнаружено изменение в файле. Запускается инкрементная компиляция...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "Файл является модулем CommonJS, так как \"{0}\" не содержит поле \"type\"", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "Файл является модулем CommonJS, так как \"{0}\" содержит поле \"type\", значение которого отличается от \"module\"", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Файл представляет собой выходные данные для источника ссылки на проект \"{0}\"", "File_is_source_from_referenced_project_specified_here_1416": "Файл представляет собой источник для указанного здесь проекта, на который указывает ссылка.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "Файл с именем \"{0}\" отличается от уже включенного файла с именем \"{1}\" только регистром.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Имя файла \"{0}\" имеет расширение \"{1}\" — поиск \"{2}\".", "File_name_0_has_a_1_extension_stripping_it_6132": "У имени файла \"{0}\" есть расширение \"{1}\"; расширение удаляется.", "File_redirects_to_file_0_1429": "Файл перенаправляется в файл \"{0}\"", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Спецификация файла не может содержать родительский каталог (\"..\"), который указывается после рекурсивного подстановочного знака каталога (\"**\"): \"{0}\".", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "Исправить все выражения, где может отсутствовать \"await\"", "Fix_all_implicit_this_errors_95107": "Исправить все ошибки неявного this", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Исправьте все неправильные возвращаемые типы асинхронных функций.", - "Fix_all_with_type_only_imports_95182": "Исправить все с помощью импорта только по типу", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Циклы \"For await\" нельзя использовать внутри статического блока класса.", "Found_0_errors_6217": "Найдено ошибок: {0}.", "Found_0_errors_Watching_for_file_changes_6194": "Найдено ошибок: {0}. Отслеживаются изменения в файлах.", "Found_0_errors_in_1_files_6261": "Обнаружены ошибки ({0}) в файлах ({1}).", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Обнаружены {0} ошибки в этом же файле, начиная с: {1}", "Found_1_error_6216": "Найдено ошибок: 1.", "Found_1_error_Watching_for_file_changes_6193": "Найдена одна ошибка. Отслеживаются изменения в файлах.", - "Found_1_error_in_0_6259": "Обнаружена 1 ошибка в {0}", + "Found_1_error_in_1_6259": "Обнаружена 1 ошибка в {1}", "Found_package_json_at_0_6099": "Обнаружен package.json в \"{0}\".", - "Found_peerDependency_0_with_1_version_6282": "Обнаружена peerDependency \"{0}\" с версией \"{1}\".", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Объявления функций не допускаются внутри блоков в строгом режиме при настройке \"ES5\".", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Объявления функций не допускаются внутри блоков в строгом режиме при настройке \"ES5\". Определения класса автоматически появляются в строгом режиме.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Объявления функций не допускаются внутри блоков в строгом режиме при настройке \"ES5\". Модули автоматически появляются в строгом режиме.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Объявления функций не разрешены в блоках в строгом режиме при нацеливании ES3 или ES5.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Объявления функций не разрешены в блоках в строгом режиме при нацеливании ES3 или ES5. Определения класса автоматически появляются в строгом режиме.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Объявления функций не разрешены в блоках в строгом режиме при нацеливании ES3 или ES5. Модули автоматически появляются в строгом режиме.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Выражение функции, у которого нет аннотации типа возвращаемого значения, неявно имеет тип возвращаемого значения \"{0}\".", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "Реализация функции отсутствует либо не идет сразу после объявления.", "Function_implementation_name_must_be_0_2389": "Имя реализации функции должно иметь значение \"{0}\".", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Функция неявно имеет тип возвращаемого значения any, так как у нее нет заметки с типом возвращаемого значения, а также на нее прямо или косвенно указывает ссылка в одном из ее выражений \"return\".", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "В функции отсутствует завершающий оператор return, а тип возвращаемого значения не включает \"undefined\".", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "Функция должна иметь явную аннотацию типа возвращаемого значения с --isolatedDeclarations.", "Function_not_implemented_95159": "Функция не реализована.", "Function_overload_must_be_static_2387": "Перегрузка функции должна быть статической.", "Function_overload_must_not_be_static_2388": "Перегрузка функции не должна быть статической.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Создает трассировку событий и список типов.", "Generates_corresponding_d_ts_file_6002": "Создает соответствующий D.TS-файл.", "Generates_corresponding_map_file_6043": "Создает соответствующий файл с расширением \".map\".", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Генератор неявно имеет тип ресурса \"{0}\". Рекомендуется предоставить аннотацию возвращаемого типа.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Генератор неявно имеет тип yield \"{0}\", так как он не предоставляет никаких значений. Рекомендуется указать заметку с типом возвращаемого значения.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Генераторы не разрешается использовать в окружающем контексте.", "Generic_type_0_requires_1_type_argument_s_2314": "Универсальный тип \"{0}\" требует следующее число аргументов типа: {1}.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "Универсальный тип \"{0}\" требует аргументы типа от {1} до {2}.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Ожидался идентификатор.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Ожидался идентификатор. Значение \"__esModule\" зарезервировано как экспортируемый маркер при преобразовании модулей ECMAScript.", "Identifier_or_string_literal_expected_1478": "Ожидался идентификатор или строковый литерал.", - "Identifier_string_literal_or_number_literal_expected_1496": "Ожидается идентификатор, строковый или числовой литерал.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Если пакет \"{0}\" фактически предоставляет этот модуль, рекомендуется отправить запрос на вытягивание, чтобы изменить \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Если пакет \"{0}\" действительно предоставляет этот модуль, попробуйте добавить новый файл объявления (. d. TS), содержащий \"declare module\" \"{1}\";`", "Ignore_this_error_message_90019": "Пропустите это сообщение об ошибке", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "Реализуйте интерфейс \"{0}\"", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "Предложение Implements экспортированного класса \"{0}\" имеет или использует закрытое имя \"{1}\".", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "Неявное преобразование \"symbol\" в \"string\" приведет к сбою во время выполнения. Рекомендуется заключить это выражение в \"String(...)\".", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "Импорт \"{0}\" конфликтует с глобальным значением, используемым в этом файле, поэтому его необходимо объявить с импортом только по типу, когда включен \"isolatedModules\".", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "Импорт \"{0}\" конфликтует с локальным значением, поэтому его необходимо объявить с импортом только по типу, если включен \"isolatedModules\".", "Import_0_from_1_90013": "Импорт \"{0}\" из \"{1}\"", "Import_assertion_values_must_be_string_literal_expressions_2837": "Значения утверждения импорта должны быть выражениями строковых литералов.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Утверждения импорта не допускаются для операторов, которые компилируются в вызовы \"require\" CommonJS.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Утверждения импорта поддерживаются только в том случае, если параметр \"--module\" имеет значение \"esnext\", \"node18\", \"nodenext\" или \"preserve\".", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Утверждения импорта не разрешены для операторов, которые транскомпилируются в вызовы \"require\" в CommonJS.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "Утверждения импорта поддерживаются только в случае, когда для параметра \"--module\" задано значение \"esnext\" или \"nodenext\".", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Утверждения импорта не могут использоваться с импортом или экспортом, затрагивающими только тип.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "Утверждения импорта заменены атрибутами импорта. Используйте \"with\" вместо \"assert\".", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Назначение импорта невозможно использовать при разработке для модулей ECMAScript. Попробуйте использовать \"import * as ns from \"mod\", \"import {a} from \"mod\", \"import d from \"mod\" или другой формат модуля.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "Значения атрибутов импорта должны быть строковыми литеральными выражениями.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Атрибуты импорта не разрешены в операторах, которые компилируются в вызовы \"require\" CommonJS.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "Атрибуты импорта поддерживаются только в том случае, если для параметра \"--module\" задано значение \"esnext\", \"node18\", \"nodenext\" или \"preserve\".", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "Атрибуты импорта нельзя использовать с импортом или экспортом только по типу.", "Import_declaration_0_is_using_private_name_1_4000": "Объявление импорта \"{0}\" использует закрытое имя \"{1}\".", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "Объявление импорта конфликтует с локальным объявлением \"{0}\".", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Объявления импорта в пространстве имен не могут иметь ссылки на модуль.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "Импортировано с помощью {0} из файла \"{1}\" с идентификатором пакета \"{2}\".", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "Импортировано с помощью {0} из файла \"{1}\" с идентификатором пакета \"{2}\" для импорта \"importHelpers\", как указано в compilerOptions.", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "Импортировано с помощью {0} из файла \"{1}\" с идентификатором пакета \"{2}\" для импорта функций фабрики \"jsx\" и \"jsxs\".", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "Для импорта JSON-файла в модуль ECMAScript требуется атрибут импорта \"type: json\", если для \"module\" задано значение \"{0}\".", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Операции импорта запрещены в улучшениях модуля. Попробуйте переместить их в содержащий внешний модуль.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Во внешних объявлениях перечислений инициализатор элемента должен быть константным выражением.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "В перечислении с несколькими объявлениями только одно объявление может опустить инициализатор для своего первого элемента перечисления.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Включить файлы исходных карт в создаваемый код JavaScript.", "Includes_imports_of_types_referenced_by_0_90054": "Включает импорт типов, на которые ссылается \"{0}\"", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "При включении --watch, -w начнет отслеживание изменений файла в текущем проекте. После установки можно настроить режим просмотра с помощью:", - "Incomplete_quantifier_Digit_expected_1505": "Неполный квантификатор. Ожидалась цифра.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "В типе \"{1}\" отсутствует сигнатура индекса для типа \"{0}\".", "Index_signature_in_type_0_only_permits_reading_2542": "Сигнатура индекса в типе \"{0}\" разрешает только чтение.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "Все отдельные объявления в объединенном объявлении \"{0}\" должны быть экспортированными или локальными.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Выведите типы параметров на основании их использования", "Infer_this_type_of_0_from_usage_95080": "Определить тип \"this\" для \"{0}\" из использования", "Infer_type_of_0_from_usage_95011": "Выведите тип \"{0}\" на основании его использования", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Вывод из выражений класса не поддерживается с использованием --isolatedDeclarations.", "Initialize_property_0_in_the_constructor_90020": "Инициализируйте свойство \"{0}\" в конструкторе", "Initialize_static_property_0_90021": "Инициализируйте статическое свойство \"{0}\"", "Initializer_for_property_0_2811": "Инициализатор для свойства \"{0}\"", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "Инициализатор переменной-элемента экземпляра \"{0}\" не может ссылаться на идентификатор \"{1}\", объявленный в конструкторе.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Инициализатор не предоставляет значения для элемента привязки, который не имеет значения по умолчанию.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Инициализаторы не разрешены в окружающих контекстах.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Инициализирует проект TypeScript и создает файл \"tsconfig.json\".", - "Inline_variable_95184": "Встроенная переменная", "Insert_command_line_options_and_files_from_a_file_6030": "Вставка параметров командной строки и файлов из файла.", "Install_0_95014": "Установить \"{0}\"", "Install_all_missing_types_packages_95033": "Установить все отсутствующие пакеты типов", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Недопустимое имя модуля в улучшении, не удается найти модуль \"{0}\".", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Недопустимая необязательная цепочка из нового выражения. Вы хотели вызвать ''{0}()''?", "Invalid_reference_directive_syntax_1084": "Недопустимый синтаксис директивы reference.", - "Invalid_syntax_in_decorator_1498": "Недопустимый синтаксис в декораторе.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Недопустимое использование \"{0}\". Его нельзя использовать внутри статического блока класса.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Недопустимое использование \"{0}\". Модули автоматически находятся в строгом режиме.", "Invalid_use_of_0_in_strict_mode_1100": "Недопустимое использование \"{0}\" в строгом режиме.", - "Invalid_value_for_ignoreDeprecations_5103": "Недопустимое значение для \"--ignoreDeprecations\".", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "Недопустимое значение для jsxFactory. \"{0}\" не является допустимым идентификатором или полным именем.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "Недопустимое значение \"jsxFragmentFactory\". \"{0}\" не является допустимым идентификатором или полным именем.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "Недопустимое значение для \"--reactNamespace\". \"{0}\" не является допустимым идентификатором.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "Тип элемента \"{0}\" не является допустимым элементом JSX.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "Тип экземпляра \"{0}\" не является допустимым элементом JSX.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "Тип возвращаемого значения \"{0}\" не является допустимым элементом JSX.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "Его тип \"{0}\" не является допустимым типом элемента JSX.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "Параметр \"@{0} {1}\" JSDoc не соответствует предложению \"extends {2}\".", "JSDoc_0_is_not_attached_to_a_class_8022": "Параметр \"@{0}\" JSDoc не связан с классом.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc \"...\" может использоваться только в последнем параметре сигнатуры.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "У тега \"@param\" JSDoc есть имя \"{0}\", но параметр с таким именем отсутствует.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "Тег \"@param\" JSDoc имеет имя \"{0}\", но параметра с таким именем не существует. Он совпадал бы с \"arguments\", если бы у него был указан тип массива.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "Typedef JSDoc можно преобразовать в тип TypeScript.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "У тега \"@typedef\" JSDoc должна быть аннотация типа, или после него должны стоять теги \"@property\" или \"@member\".", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "Определения типов JSDoc можно преобразовать в типы TypeScript.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "Типы JSDoc можно использовать только в комментариях в документации.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "Типы JSDoc могут быть преобразованы в типы TypeScript.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "Атрибутам JSX должно назначаться только непустое \"expression\".", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Список папок, определения типов из которых будут включены.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Список корневых папок, объединенное содержимое которых представляет структуру проекта во время выполнения.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "Загружается \"{0}\" из корневого каталога \"{1}\"; расположение кандидата: \"{2}\".", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "Загрузка модуля \"{0}\" из папки \"node_modules\", типы целевых файлов: {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Загрузка модуля как файла или папки, расположение модуля-кандидата \"{0}\", целевые типы файлов: {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "Загружается модуль \"{0}\" из папки \"node_modules\", тип целевого файла: \"{1}\".", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Загружается модуль в виде файла или папки, расположение модуля-кандидата: \"{0}\", тип целевого файла: \"{1}\".", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Языковой стандарт должен иметь форму <язык> или <язык>–<территория>. Например, \"{0}\" или \"{1}\".", "Log_paths_used_during_the_moduleResolution_process_6706": "Пути к журналу, используемые в процессе \"moduleResolution\".", "Longest_matching_prefix_for_0_is_1_6108": "Самый длинный соответствующий префикс для \"{0}\": \"{1}\".", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Сделать так, чтобы keyof возвращал только строки, а не строки, числа или символы. Устаревший вариант.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Сделайте вызов \"super()\" первой инструкцией в конструкторе", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Сопоставленный объект неявно имеет тип шаблона \"любой\".", - "Mark_array_literal_as_const_90070": "Пометить литерал массива как константу", "Matched_0_condition_1_6403": "Соответствие: \"{0}\", условие: \"{1}\".", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Сопоставление по умолчанию включает шаблон '**/*'", "Matched_by_include_pattern_0_in_1_1407": "Соответствует шаблону включения \"{0}\" в \"{1}\".", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "Метод \"{0}\" не может иметь реализацию, так как он отмечен в качестве абстрактного.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Метод \"{0}\" экспортированного интерфейса имеет или использует имя \"{1}\" из закрытого модуля \"{2}\".", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Метод \"{0}\" экспортированного интерфейса имеет или использует закрытое имя \"{1}\".", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Метод должен иметь явную аннотацию типа возвращаемого значения с --isolatedDeclarations.", "Method_not_implemented_95158": "Метод не реализован.", "Modifiers_cannot_appear_here_1184": "Здесь невозможно использовать модификаторы.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "Модуль \"{0}\" можно только импортировать по умолчанию с помощью флага \"{1}\"", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "В модуле \"{0}\" нет экспортированного члена \"{1}\". Возможно, вы хотели вместо этого использовать \"import {1} from {0}\"?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "Модуль \"{0}\" скрыт локальным объявлением с таким же именем.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "Модуль \"{0}\" использует параметр \"export =\" и не может использоваться с параметром \"export *\".", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "Модуль \"{0}\" был разрешен в окружающий модуль, объявленный в \"{1}\", так как этот файл не был изменен.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "Модуль \"{0}\" был разрешен как локально объявленный окружающий модуль в файле \"{1}\".", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "Модуль \"{0}\" разрешен в \"{1}\", но \"--allowArbitraryExtensions\" не установлен.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "Модуль \"{0}\" был разрешен как \"{1}\", но параметр \"--jsx\" не задан.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "Модуль \"{0}\" был разрешен как \"{1}\", но параметр \"--resolveJsonModule\" не используется.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Имена объявлений модулей могут использовать только строки в кавычках «» или \"\".", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "Произошел сбой при разрешении модуля с помощью \"rootDirs\".", "Modules_6244": "Модули", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Переместить модификаторы элементов маркированного кортежа в метки", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Переместите выражение из экспорта по умолчанию в переменную и добавьте к нему аннотацию типа.", "Move_to_a_new_file_95049": "Переместить в новый файл", - "Move_to_file_95178": "Переместить в файл", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Использовать несколько последовательных числовых разделителей запрещено.", "Multiple_constructor_implementations_are_not_allowed_2392": "Не разрешается использование нескольких реализаций конструкторов.", "NEWLINE_6061": "НОВАЯ СТРОКА", "Name_is_not_valid_95136": "Недопустимое имя", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Именованные группы захвата доступны только при настройке \"ES2018\" или более поздней версии.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Именованные группы захвата с одинаковым именем должны быть взаимоисключающими.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "Именованный импорт из файла JSON в модуль ECMAScript не допускается, если для параметра \"module\" установлено значение \"{0}\".", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "Именованное свойство \"{0}\" содержит типы \"{1}\" и \"{2}\", которые не являются идентичными.", "Namespace_0_has_no_exported_member_1_2694": "Пространство имен \"{0}\" не содержит экспортированный элемент \"{1}\".", "Namespace_must_be_given_a_name_1437": "Пространству имен должно быть задано имя.", "Namespace_name_cannot_be_0_2819": "Имя пространства имен не может быть \"{0}\".", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "Пространства имен не допускаются в глобальных файлах сценариев, если включено \"{0}\". Если этот файл не предназначен для использования в качестве глобального сценария, установите для параметра \"moduleDetection\" значение \"force\" или добавьте пустой оператор \"export {}\".", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "К параметрам \"this\" нельзя применять декораторы и модификаторы.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Ни один конструктор базового класса не имеет указанного числа аргументов типа.", "No_constituent_of_type_0_is_callable_2755": "Нет составляющей типа \"{0}\", которую можно вызвать.", "No_constituent_of_type_0_is_constructable_2759": "Нет составляющей типа \"{0}\", которую можно создать.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Ни одна перегрузка не соответствует этому вызову.", "No_type_could_be_extracted_from_this_type_node_95134": "Не удалось извлечь тип из этого узла типа.", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "Не существует значение в области для собирательного свойства \"{0}\". Либо объявите его, либо укажите инициализатор.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Неабстрактный класс ' {0} ' не реализует унаследованный абстрактный член {1} из класса ' {2} '.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "В неабстрактном классе \"{0}\" отсутствуют реализации следующих элементов \"{1}\": {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "В неабстрактном классе \"{0}\" отсутствуют реализации следующих элементов \"{1}\": {2} и {3} других.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Класс \"{0}\", не являющийся абстрактным, не реализует наследуемый абстрактный элемент \"{1}\" класса \"{2}\".", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Выражение неабстрактного класса не реализует унаследованный абстрактный элемент \"{0}\" класса \"{1}\".", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "В выражении неабстрактного класса отсутствуют реализации для следующих элементов \"{0}\": {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "В выражении неабстрактного класса отсутствуют реализации для следующих элементов \"{0}\": {1} и {2} других.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Утверждения, отличные от NULL, можно использовать только в файлах TypeScript.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "Неотносительные пути не допускаются, если не задано значение параметра baseUrl. Вы забыли указать начальные символы \"./\"?", "Non_simple_parameter_declared_here_1348": "Здесь объявлен не простой параметр.", "Not_all_code_paths_return_a_value_7030": "Не все пути к коду возвращают значение.", "Not_all_constituents_of_type_0_are_callable_2756": "Не все составляющие типа \"{0}\" можно вызвать.", "Not_all_constituents_of_type_0_are_constructable_2760": "Не все составляющие типа \"{0}\" можно создать.", - "Numbers_out_of_order_in_quantifier_1506": "Неупорядоченные числа в квантификаторе.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "Числовые литералы с абсолютными значениями, равными 2^53 или более, слишком велики для точного представления в виде целых чисел.", "Numeric_separators_are_not_allowed_here_6188": "Числовые разделители здесь запрещены.", "Object_is_of_type_unknown_2571": "Объект имеет тип \"Неизвестный\".", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Объектный литерал может использовать только известные свойства. \"{0}\" не существует в типе \"{1}\".", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Объектный литерал может указывать только известные свойства, но \"{0}\" не существует в типе \"{1}\". Вы хотели записать \"{2}\"?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "Свойство объектного литерала \"{0}\" неявно имеет тип \"{1}\".", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Объекты, содержащие сокращенные свойства, не могут быть выведены с помощью --isolatedDeclarations.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Объекты, содержащие назначения распространения, не могут быть выведены с помощью --isolatedDeclarations.", "Octal_digit_expected_1178": "Ожидалась восьмеричная цифра.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Восьмеричные escape-последовательности и обратные ссылки не допускаются в классе символов. Если это должна быть escape-последовательность, используйте синтаксис \"{0}\".", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Восьмеричные escape-последовательности не допускаются. Используйте синтаксис \"{0}\".", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Восьмеричные литералы не допускаются. Используйте синтаксис \"{0}\".", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "Одно значение \"{0}.{1}\" - это строка \"{2}\", а второе предполагается как неизвестное числовое значение.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Литералы восьмеричного типа должны использовать синтаксис ES2015. Используйте синтаксис \"{0}\".", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Восьмеричные литералы запрещены в инициализаторах членов перечисления. Используйте синтаксис \"{0}\".", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Восьмеричные литералы запрещено использовать в строгом режиме.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "Восьмеричные литералы недоступны при выборе целевой платформы ECMAScript 5 и более поздних. Используйте синтаксис \"{0}\".", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "В операторе for...in разрешено только одно объявление переменной.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "В операторе for...of разрешено только одно объявление переменной.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "С помощью ключевого слова new можно вызвать только функцию void.", "Only_ambient_modules_can_use_quoted_names_1035": "Имена в кавычках могут использоваться только во внешних модулях.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "Только модули amd и system поддерживаются вместе с --{0}.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "С помощью --isolatedDeclarations можно указать только const-массивы.", "Only_emit_d_ts_declaration_files_6014": "Порождаются только файлы объявлений \".d.ts\".", + "Only_named_exports_may_use_export_type_1383": "\"export type\" может использоваться только в именованном экспорте.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Только числовые перечисления могут иметь вычисляемые элементы, но это выражение имеет тип \"{0}\". Если вы не хотите проверять полноту, рекомендуется использовать вместо этого объектный литерал.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "Вывод только файлов d.ts, но не файлов JavaScript.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "Через ключевое слово super доступны только общие и защищенные методы базового класса.", "Operator_0_cannot_be_applied_to_type_1_2736": "Не удается применить операнд \"{0}\" к типу \"{1}\".", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "Оператор \"{0}\" невозможно применить к типам \"{1}\" и \"{2}\".", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "Операторы не должны быть смешанными внутри класса символов. Вместо этого перенесите его во вложенный класс.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Отключить проект от проверки ссылок на несколько проектов при редактировании.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "Параметр \"{0}={1}\" удален. Удалите его из конфигурации.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "Параметр \"{0}={1}\" является нерекомендуемым и перестанет работать в TypeScript {2}. Укажите compilerOption \"\"ignoreDeprecations\": \"{3}\"\", чтобы отключить эту ошибку.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "Параметр \"{0}\" можно указать только в файле \"tsconfig.json\" либо задать значение \"false\" или \"null\" для этого параметра в командной строке.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "Параметр \"{0}\" можно указать только в файле \"tsconfig.json\" либо задать значение \"null\" для этого параметра в командной строке.", - "Option_0_can_only_be_specified_on_command_line_6266": "Параметр \"{0}\" может быть указан только в командной строке.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "Параметр \"{0}\" можно использовать только при указании \"--inlineSourceMap\" или \"--sourceMap\".", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "Опцию \"{0}\" можно использовать, только если для параметра \"moduleResolution\" установлено значение \"node16\", \"nodenext\" или \"bundler\".", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "Параметр \"{0}\" можно использовать только в том случае, если для параметра \"module\" установлено значение \"preserve\" или \"es2015\" или более поздней версии.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "Параметр \"{0}\" не может быть указан, если параметр jsx имеет значение \"{1}\".", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "Параметр \"{0}\" не может быть указан, если параметр \"target\" имеет значение \"ES3\".", "Option_0_cannot_be_specified_with_option_1_5053": "Параметр \"{0}\" невозможно указать с помощью параметра \"{1}\".", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "Параметр \"{0}\" невозможно указать без указания параметра \"{1}\".", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "Параметр \"{0}\" нельзя указывать без указания параметра \"{1}\" или \"{2}\".", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "Параметр \"{0}\" удален. Удалите его из конфигурации.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "Параметр \"{0}\" является нерекомендуемым и перестанет работать в TypeScript {1}. Укажите compilerOption \"\"ignoreDeprecations\": \"{2}\"\", чтобы отключить эту ошибку.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "Параметр \"{0}\" является избыточным и не может быть указан с параметром \"{1}\".", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "Параметр \"allowImportingTsExtensions\" можно использовать, только если установлен параметр \"noEmit\" или \"emitDeclarationOnly\".", "Option_build_must_be_the_first_command_line_argument_6369": "Параметр \"--build\" должен быть первым аргументом командной строки.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "Параметр \"--incremental\" можно указать только с помощью tsconfig, выполнив выпуск в отдельный файл или если указан параметр \"--tsBuildInfoFile\".", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "Параметр isolatedModules можно использовать, только если указан параметр --module или если параметр target — ES2015 или выше.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "Для параметра \"moduleResolution\" должно быть установлено (или оставлено неопределенным) значение \"{0}\", если для параметра \"module\" установлено значение \"{1}\".", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "Для параметра \"module\" должно быть установлено значение \"{0}\", если для параметра \"moduleResolution\" установлено значение \"{1}\".", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "Параметр \"preserveConstEnums\" нельзя отключить, если включен параметр \"{0}\".", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "Параметр \"preserveConstEnums\" не может быть отключен, если включен параметр \"isolatedModules\".", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "Параметр \"preserveValueImports\" можно использовать лишь в случае, если для параметра \"module\" установлено значение \"es2015\" или более позднее.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "Параметр project не может быть указан вместе с исходными файлами в командной строке.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "Параметр \"--resolveJsonModule\" нельзя указать, если для параметра \"moduleResolution\" установлено значение \"classic\".", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "Параметр \"--resolveJsonModule\" не может быть указан, если для параметра \"module\" установлено значение \"none\", \"system\" или \"umd\".", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "Параметр \"verbatimModuleSyntax\" нельзя использовать, если для параметра \"module\" установлено значение \"UMD\", \"AMD\" или \"System\".", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "Параметр \"--resolveJsonModule\" можно указывать, только когда для создания кода модуля указано значение \"commonjs\", \"amd\", \"es2015\" или \"esNext\".", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "Параметр \"--resolveJsonModule\" нельзя указать без стратегии разрешения модуля node.", "Options_0_and_1_cannot_be_combined_6370": "Параметры \"{0}\" и \"{1}\" не могут использоваться одновременно.", "Options_Colon_6027": "Параметры:", "Output_Formatting_6256": "Форматирование выходных данных", "Output_compiler_performance_information_after_building_6615": "Вывод сведений о производительности компиляторов после сборки.", "Output_directory_for_generated_declaration_files_6166": "Выходной каталог для создаваемых файлов объявления.", + "Output_file_0_from_project_1_does_not_exist_6309": "Выходной файл \"{0}\" из проекта \"{1}\" не существует", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Выходной файл \"{0}\" не создан из исходного файла \"{1}\".", "Output_from_referenced_project_0_included_because_1_specified_1411": "Выходные данные из проекта \"{0}\", на который указывает ссылка, включены, так как указан \"{1}\".", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "Выходные данные из проекта \"{0}\", на который указывает ссылка, включены, так как для параметра \"--module\" указано значение \"none\".", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Ожидалось объявление параметра.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Параметр имеет имя, но не тип. Возможно, вы хотели использовать \"{0}: {1}\"?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Модификаторы параметров можно использовать только в файлах TypeScript.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Параметр должен иметь явную аннотацию типа с --isolatedDeclarations.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Тип параметра открытого метода задания \"{0}\" из экспортированного класса имеет или использует имя \"{1}\" из закрытого модуля \"{2}\".", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Тип параметра открытого метода задания \"{0}\" из экспортированного класса имеет или использует закрытое имя \"{1}\".", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Тип параметра открытого статического метода задания \"{0}\" из экспортированного класса имеет или использует имя \"{1}\" из закрытого модуля \"{2}\".", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Печать имен созданных файлов после компиляции.", "Print_this_message_6017": "Напечатайте это сообщение.", "Private_accessor_was_defined_without_a_getter_2806": "Частный метод доступа был определен без метода получения.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Частное поле \"{0}\" должно быть объявлено во включающем классе.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Закрытые идентификаторы запрещено использовать в объявлениях переменных.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Закрытые идентификаторы запрещено использовать вне тела классов.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Закрытые идентификаторы разрешены только в теле класса и могут использоваться только как часть объявления члена класса, доступа к свойствам или левой стороны выражения \"in\"", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Закрытые идентификаторы доступны только при разработке для ECMAScript 2015 или более поздних версий.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Закрытые идентификаторы не могут использоваться в качестве параметров.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Не удается обратиться к закрытому или защищенному члену \"{0}\" в параметре типа.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Не удается собрать проект \"{0}\", так как его зависимость \"{1}\" содержит ошибки", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Не удается собрать проект \"{0}\", так как его зависимость \"{1}\" не была собрана", "Project_0_is_being_forcibly_rebuilt_6388": "Проект \"{0}\" принудительно перестраивается", - "Project_0_is_out_of_date_because_1_6420": "Проект \"{0}\" устарел по причине {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Проект \"{0}\" устарел, поскольку файл buildinfo \"{1}\" указывает, что файл \"{2}\" был корневым файлом компиляции, но больше им не является.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Проект \"{0}\" устарел, поскольку файл buildinfo \"{1}\" указывает, что программе необходимо сообщать об ошибках.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Проект \"{0}\" устарел, так как файл buildinfo \"{1}показывает, что некоторые изменения не переданы.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Проект \"{0}\" устарел, поскольку файл buildinfo \"{1}\" указывает на изменения в параметрах компилятора.", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Проект \"{0}\" требует обновления, так как не обновлена его зависимость \"{1}\"", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Проект \"{0}\" устарел, так как выходные данные \"{1}\" старше входных данных \"{2}\".", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Проект \"{0}\" требует обновления, так как выходного файла \"{1}\" не существует", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Проект \"{0}\" устарел, так как выходные данные для него были созданы с помощью версии \"{1}\", которая отличается от текущей версии \"{2}\"", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Проект \"{0}\" устарел, так как изменились выходные данные его зависимости \"{1}\"", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "Проект \"{0}\" устарел из-за ошибки при чтении файла \"{1}\"", "Project_0_is_up_to_date_6361": "Проект \"{0}\" не требует обновления", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Проект \"{0}\" актуален, так как новейшие входные данные \"{1}\" старше выходных данных \"{2}\".", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "Свойство \"{0}\" используется перед его инициализацией.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "Свойство \"{0}\" может не существовать в типе \"{1}\". Вы имели в виду \"{2}\"?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "Свойство \"{0}\" атрибута расширения JSX не может быть назначено для целевого свойства.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "Свойство \"{0}\" экспортированного типа анонимного класса не может быть частным или защищенным.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Свойство \"{0}\" выражения экспортированного класса не может быть частным или защищенным.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Свойство \"{0}\" экспортированного интерфейса имеет или использует имя \"{1}\" из закрытого модуля \"{2}\".", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Свойство \"{0}\" экспортированного интерфейса имеет или использует закрытое имя \"{1}\".", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "Свойство \"{0}\" типа \"{1}\" не может быть назначено типу индекса \"{2}\" \"{3}\".", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "Свойство \"{0}\" перезапишет базовое свойство в \"{1}\". Если это сделано намеренно, добавьте инициализатор. В противном случае добавьте модификатор \"declare\" или удалите избыточное объявление.", "Property_assignment_expected_1136": "Ожидалось назначение свойства.", "Property_destructuring_pattern_expected_1180": "Ожидался шаблон деструктурирования свойства.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "Свойство должно иметь явную аннотацию типа с --isolatedDeclarations.", "Property_or_signature_expected_1131": "Ожидалось свойство или сигнатура.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Значение свойства может быть только строковым или числовым литералом, True, False, Null, объектным литералом либо литералом массива.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "Предоставление полой поддержки итераций в \"for-of\", распространении и деструктуризации при настройке \"ES5\".", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "Предоставление полной поддержки для итерируемых элементов в for-of, расширение и деструктуризация при выборе целевой платформы ES5 или ES3.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Открытый метод \"{0}\" экспортированного класса имеет или использует имя \"{1}\" из внешнего модуля {2}, но не может быть именован.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Открытый метод \"{0}\" экспортированного класса имеет или использует имя \"{1}\" из закрытого модуля \"{2}\".", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Открытый метод \"{0}\" экспортированного класса имеет или использует закрытое имя \"{1}\".", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "Возникновение ошибки, если параметр функции не читается.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Вызывать ошибку в выражениях и объявлениях с подразумеваемым типом any.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Вызвать ошибку в выражениях this с неявным типом any.", - "Range_out_of_order_in_character_class_1517": "Диапазон не по порядку в классе символов.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "Для повторного экспорта типа при включенном \"{0}\", необходимо использовать \"export type\".", - "React_components_cannot_include_JSX_namespace_names_2639": "Компоненты React не могут включать имена пространств имен JSX.", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "Для повторного экспорта типа при указании флага \"--isolatedModules\" требуется использовать \"export type\".", "Redirect_output_structure_to_the_directory_6006": "Перенаправить структуру вывода в каталог.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "Уменьшить количество проектов, автоматически загружаемых с помощью TypeScript.", "Referenced_project_0_may_not_disable_emit_6310": "Проект \"{0}\", на который указывает ссылка, не может отключить порождение.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Указанный в ссылке проект \"{0}\" должен иметь следующее значение параметра composite: true.", "Referenced_via_0_from_file_1_1400": "Ссылка с помощью \"{0}\" из файла \"{1}\"", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "Относительные пути импорта требуют явных расширений файлов при импорте ECMAScript, если '--moduleResolution' имеет значение 'node16' или 'nodenext'. Рассмотрите возможность добавления расширения к пути импорта.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Относительные пути импорта требуют явных расширений файлов при импорте ECMAScript, если \"--moduleResolution\" имеет значение \"node16\" или \"nodenext\". Вы хотели использовать \"{0}\"?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Относительные пути импорта требуют явных расширений файлов в импорте EcmaScript, когда ''--moduleResolution'' имеет значение ''node16'' или ''nodenext''. Рассмотрите возможность добавления расширения к пути импорта.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Относительные пути импорта требуют явных расширений файлов в импорте EcmaScript, когда ''--moduleResolution'' имеет значение ''node16'' или ''nodenext''. Вы имеете в виду '{0}''?", "Remove_a_list_of_directories_from_the_watch_process_6628": "Удалить список каталогов из процесса просмотра.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "Удалить список файлов из обработки в режиме просмотра.", "Remove_all_unnecessary_override_modifiers_95163": "Удалите все ненужные модификаторы \"override\".", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "Сообщать об ошибках в JS-файлах.", "Report_errors_on_unused_locals_6134": "Сообщать об ошибках в неиспользованных локальных переменных.", "Report_errors_on_unused_parameters_6135": "Сообщать об ошибках в неиспользованных параметрах.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Требовать достаточных аннотаций при экспорте, чтобы другие инструменты могли легко создавать файлы объявлений.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Требовать необъявленные свойства из сигнатур индекса для использования доступа к элементам.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Обязательные параметры типа не могут следовать за необязательными параметрами типа.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Разрешение для модуля \"{0}\" найдено в кэше из расположения \"{1}\".", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Разрешение для директивы ссылки на тип \"{0}\" обнаружено в кэше из расположения \"{1}\".", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Разрешение неродственного имени не удалось; пытаюсь отключить современные функции разрешения узлов, чтобы узнать, нуждается ли библиотека npm в обновлении конфигурации.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Не удалось выполнить разрешение относительного имени; выполняется попытка с помощью \"--moduleResolution bundler\", чтобы узнать, требуется ли для проекта обновление конфигурации.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Разрешать \"keyof\" только в имена свойств со строковым значением (не числа и не символы).", - "Resolved_under_condition_0_6414": "Разрешено в условии \"{0}\".", "Resolving_in_0_mode_with_conditions_1_6402": "Разрешение в режиме {0} с условиями {1}.", "Resolving_module_0_from_1_6086": "======== Идет разрешение модуля \"{0}\" из \"{1}\". ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Идет разрешение имени модуля \"{0}\" относительного к базовому URL-адресу \"{1}\" — \"{2}\".", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== Идет разрешение директивы ссылки на тип \"{0}\", содержащий файл \"{1}\", корневой каталог не задан. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== Идет разрешение директивы ссылки на тип \"{0}\", содержащий файл не задан, корневой каталог \"{1}\". ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== Идет разрешение директивы ссылки на тип \"{0}\", содержащий файл не задан, корневой каталог не задан. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Разрешение директивы ссылки на тип для программы, которая указывает собственный типRoots, пропуская поиск в папке \"node_modules\".", "Resolving_with_primary_search_path_0_6121": "Разрешается с помощью первичного пути поиска \"{0}\".", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Параметр rest \"{0}\" неявно имеет тип any[].", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Параметр rest \"{0}\" неявно имеет тип \"any[]\", но из использования можно определить более подходящий тип.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Повторное использование директивы ссылки на тип \"{0}\" из \"{1}\" старой программы. Разрешено в \"{2}\" с ИД пакета \"{3}\".", "Rewrite_all_as_indexed_access_types_95034": "Перезаписать все как типы с индексным доступом", "Rewrite_as_the_indexed_access_type_0_90026": "Перезапишите как тип с индексным доступом \"{0}\"", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "Перепишите расширения файлов \".ts\", \".tsx\", \".mts\" и \".cts\" в относительных путях импорта на их эквиваленты JavaScript в выходных файлах.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Правый операнд ?? недоступен, поскольку левый операнд никогда не имеет значения NULL.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Корневой каталог невозможно определить, идет пропуск первичных путей поиска.", "Root_file_specified_for_compilation_1427": "Корневой файл, указанный для компиляции", "STRATEGY_6039": "СТРАТЕГИЯ", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Сохраните файлы .tsbuildinfo, чтобы обеспечить возможность добавочной компиляции проектов.", "Saw_non_matching_condition_0_6405": "Обнаружено несоответствующее условие \"{0}\".", "Scoped_package_detected_looking_in_0_6182": "Обнаружен пакет, относящийся к области; поиск в \"{0}\"", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Поиск во всех родительских каталогах node_modules резервных расширений: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Поиск предпочтительных расширений во всех родительских каталогах node_modules: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "Выделенный фрагмент не является допустимым оператором или операторами.", "Selection_is_not_a_valid_type_node_95133": "Выбранный элемент не является допустимым узлом типа.", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Задать версию языка файла JavaScript для создаваемого файла JavaScript и включения объявлений совместимых библиотек.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Отображение подробных сведений диагностики.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Показать компоненты, которые будут собраны (или удалены, если дополнительно указан параметр \"--clean\")", "Signature_0_must_be_a_type_predicate_1224": "Сигнатура \"{0}\" должна быть предикатом типа.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "Объявления подписей можно использовать только в файлах TypeScript.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Пропустить создание нижестоящих проектов при ошибке в вышестоящем проекте.", "Skip_type_checking_all_d_ts_files_6693": "Пропустить проверку типа всех файлов .d.ts", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "Пропуск проверки типа файлов D.ts, включенных в файл TypeScript.", "Skip_type_checking_of_declaration_files_6012": "Пропустить проверку типа файлов объявления.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Пропуск модуля \"{0}\", который выглядит как абсолютный URI, целевые типы файлов: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Сборка проекта \"{0}\" будет пропущена, так как его зависимость \"{1}\" содержит ошибки", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "Сборка проекта \"{0}\" будет пропущена, так как его зависимость \"{1}\" не была собрана", "Source_from_referenced_project_0_included_because_1_specified_1414": "Источник из проекта \"{0}\", на который указывает ссылка, включен, так как указан \"{1}\".", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "Источник из проекта \"{0}\", на который указывает ссылка, включен, так как для параметра \"--module\" указано значение \"none\".", "Source_has_0_element_s_but_target_allows_only_1_2619": "Число элементов в источнике — {0}, но целевой объект разрешает только {1}.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "Укажите, как работает режим отслеживания TypeScript.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Укажите файлы библиотек для включения в компиляцию.", "Specify_module_code_generation_6016": "Укажите способ создания кода модуля.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Укажите стратегию разрешения модуля: node (Node.js) или classic (TypeScript pre-1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "Укажите спецификатор модуля, используемый для импорта функций множителя JSX при использовании \"jsx: react-jsx*\".", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "Укажите несколько папок, которые действуют как \"./node_modules/@types\".", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Укажите один или несколько путей или ссылок на модуль узла для файлов базовой конфигурации, от которых наследуются параметры.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Статические элементы не могут ссылаться на параметры типов класса.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "Статическое свойство \"{0}\" конфликтует со встроенным свойством \"Function.{0}\" функции-конструктора \"{1}\".", "String_literal_expected_1141": "Ожидался строковый литерал.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "Имена импорта и экспорта строковых литералов не поддерживаются, если для флага \"--module\" установлено значение \"es2015\" или \"es2020\".", "String_literal_with_double_quotes_expected_1327": "Ожидается строковый литерал с двойными кавычками.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Стилизовать ошибки и сообщения с помощью цвета и контекста (экспериментальная функция).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Флаги подшаблонов должны присутствовать при наличии знака минус.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Последовательные объявления свойств должны иметь один и тот же тип. Свойство \"{0}\" должно иметь тип \"{1}\", но имеет здесь тип \"{2}\".", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Последующие объявления переменных должны иметь тот же тип. Переменная \"{0}\" должна иметь тип \"{1}\", однако имеет тип \"{2}\".", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "Подстановка \"{0}\" для шаблона \"{1}\" содержит неправильный тип, ожидается string, получен \"{2}\".", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "Выражения шаблона с тегами запрещено использовать в необязательной цепочке.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Целевой объект разрешает только следующее число элементов — {0}, но источник может иметь больше.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Целевой объект требует следующего числа элементов — {0}, но источник может иметь меньше.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "Целевая подпись предоставляет слишком мало аргументов. Ожидал {0} или больше, но получил {1} .", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "Модификатор \"{0}\" можно использовать только в файлах TypeScript.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "Оператор \"{0}\" невозможно применить к типу Symbol.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "Оператор \"{0}\" не разрешен для логических типов. Попробуйте использовать \"{1}\" вместо него.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Свойство \"{0}\" асинхронного итератора должно быть методом.", "The_0_property_of_an_iterator_must_be_a_method_2767": "Свойство \"{0}\" итератора должно быть методом.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "Тип Object можно назначить малому количеству других типов. Возможно, вы хотели использовать тип any?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Флаг Unicode (u) и флаг наборов Unicode (v) не могут быть установлены одновременно.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "На объект 'arguments' нельзя ссылаться в стрелочной функции в ES5. Используйте стандартное выражение функции.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "На объект 'arguments' нельзя ссылаться в асинхронной функции или методе в ES5. Попробуйте использовать стандартную функцию или метод.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "Нельзя ссылаться на объект типа arguments в стрелочной функции ES3 и ES5. Используйте стандартное выражение функции.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "На объект arguments невозможно указать ссылку в асинхронной функции или методе в ES3 и ES5. Попробуйте использовать стандартную функцию или метод.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "Текст оператора if не может быть пустым.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Вызов для этой реализации был выполнен успешно, но сигнатуры реализации перегрузок не видны извне.", "The_character_set_of_the_input_files_6163": "Кодировка входных файлов.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "Глобальный тип \"JSX.{0}\" не может иметь больше одного свойства.", "The_implementation_signature_is_declared_here_2750": "Здесь объявлена сигнатура реализации.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "Метасвойство \"import.meta\" не разрешено в файлах, которые будут построены в выходных данных CommonJS.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Метасвойство \"import.meta\" разрешено только в том случае, если параметр \"--module\" имеет значение \"es2020\", \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\" или \"nodenext\".", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "Мета-свойство import.meta разрешено только в том случае, если параметр --module имеет значение ''es2020'', ''es2022'', ''esnext'', ''system'', ''node16'' или ''nodenext''.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "Выводимому типу \"{0}\" невозможно присвоить имя без ссылки на \"{1}\". Вероятно, оно не является переносимым. Требуется заметка с типом.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Выводимый тип \"{0}\" ссылается на тип с циклической структурой, которая не может быть элементарно сериализована. Требуется заметка с типом.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Выведенный тип \"{0}\" ссылается на недоступный тип \"{1}\". Требуется аннотация типа.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Выведенный тип этого узла превышает максимальную длину, которую будет сериализовывать компилятор. Требуется указать заметку явного типа.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "Инициализатор объявления \"using\" должен быть либо объектом с методом \"[Symbol.dispose]()\", либо иметь значение \"null\" или \"undef\".", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "Инициализатор объявления \"await using\" должен быть либо объектом с методом \"[Symbol.asyncDispose]()\" или \"[Symbol.dispose]5D;()\", либо быть \"нулевым\" или \"неопределенным\".", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "Пересечение \"{0}\" было сокращено до \"never\", так как свойство \"{1}\" существует в нескольких составляющих и является частным в некоторых из них.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "Пересечение \"{0}\" было сокращено до \"never\", так как свойство \"{1}\" имеет конфликтующие типы в некоторых составляющих.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "Ключевое слово intrinsic можно использовать только для объявления внутренних типов, предоставляемых компилятором.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "Последняя перегрузка возвратила следующую ошибку.", "The_last_overload_is_declared_here_2771": "Здесь объявлена последняя перегрузка.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "Левый операнд оператора for...in не может быть шаблоном деструктурирования.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "Левая часть оператора 'for...in' не может быть объявлением 'using'.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "Левая часть оператора \"for...in\" не может быть объявлением \"await using\".", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "Левый операнд оператора for...in не может использовать аннотацию типа.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "Левая часть оператора \"for...in\" не может быть обращением к необязательному свойству.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "В левой части оператора \"for...in\" должна быть переменная или доступ к свойству.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Левый операнд арифметической операции должен иметь тип \"any\", \"number\", \"bigint\" или тип перечисления.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Левая часть выражения присваивания не может быть обращением к необязательному свойству.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "В левой части выражения назначения должна быть переменная или доступ к свойству.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "Левая часть выражения \"instanceof\" должна быть назначена первому аргументу метода \"[Symbol.hasInstance]\" правой части.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Левый операнд выражения instanceof должен иметь тип any, тип объекта или параметр типа.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Языковой стандарт, который используется при отображении сообщений пользователю (например, en-us)", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Максимальная глубина зависимостей для поиска в папке node_modules и загрузки файлов JavaScript.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Корень проекта неоднозначен, но требуется для разрешения записи карты экспорта ''{0}'' в файле ''{1}''. Укажите параметр компилятора ''rootDir'' для устранения неоднозначности.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Корень проекта неоднозначен, но требуется для разрешения записи карты импорта ''{0}'' в файле ''{1}''. Укажите параметр компилятора ''rootDir'' для устранения неоднозначности.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "Невозможно обратиться к свойству \"{0}\" в типе \"{1}\" внутри этого класса, так как он затемнен другим закрытым идентификатором с таким же написанием.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "Тип возвращаемого значения метода доступа \"get\" должен быть назначен его типу метода доступа \"set\"", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Тип возвращаемого значения функции декоратора параметра должен быть либо void, либо any.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Тип возвращаемого значения функции декоратора свойства должен быть либо void, либо any.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Тип возвращаемого значения асинхронной функции должен быть допустимым обещанием либо не должен содержать вызываемый элемент \"then\".", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Тип возвращаемого значения асинхронной функции или метода должен быть глобальным типом Promise.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Возвращаемое значение асинхронной функции или метода должно иметь глобальный тип Promise. Вы имели в виду \"Promise<{0}>\"?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Правая часть оператора \"for…in\" должна иметь тип \"any\", тип объекта или быть параметром типа, однако указан тип \"{0}\".", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Правый операнд арифметической операции должен иметь тип \"any\", \"number\", \"bigint\" или тип перечисления.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "Правая часть выражения \"instanceof\" должна иметь тип \"любой\", класс, функцию или другой тип, назначаемый типу интерфейса \"Функция\", или тип объекта с методом \"Symbol.hasInstance\".", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "Правая часть выражения \"instanceof\" не должна быть выражением экземпляра.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Правый операнд выражения instanceof должен иметь тип any или тип, который можно назначить типу интерфейса Function.", "The_root_value_of_a_0_file_must_be_an_object_5092": "Корневое значение файла \"{0}\" должно быть объектом.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Среда выполнения вызовет декоратор с аргументами {1} , но декоратор ожидает {0} .", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Среда выполнения вызовет декоратор с аргументами {1} , но декоратор ожидает как минимум {0} .", "The_shadowing_declaration_of_0_is_defined_here_18017": "Здесь определено объявление затемнения \"{0}\"", "The_signature_0_of_1_is_deprecated_6387": "Сигнатура \"{0}\" \"{1}\" устарела.", "The_specified_path_does_not_exist_Colon_0_5058": "Указанный путь не существует: \"{0}\".", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Невозможно использовать модификатор \"type\" в именованном экпорте, когда в инструкции экспорта используется \"export type\".", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Невозможно использовать модификатор \"type\" в именованном импорте, когда в инструкции импорта используется \"import type\".", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Тип объявления функции должен соответствовать сигнатуре этой функции.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Тип этого выражения не может быть назван без утверждения \"режим разрешения\", что является нестабильной функцией. Используйте ночной TypeScript, чтобы отключить эту ошибку. Попробуйте обновить с помощью \"npm install -D typescript@next\".", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Невозможно сериализовать тип этого узла, поскольку его свойство \"{0}\" не может быть сериализовано.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Возвращаемый тип метода \"{0}()\" асинхронного итератора должен быть обещанием для типа со свойством \"value\".", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Тип, возвращаемый методом \"{0}()\" итератора, должен содержать свойство \"value\".", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "Объявление переменной оператора for...in не может содержать инициализатор.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "Объявление переменной оператора for...of не может содержать инициализатор.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Оператор with не поддерживается. Все символы в блоке with получат тип any.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "Существуют типы в ' {0} ', но этот результат не удалось разрешить с помощью текущей настройки 'moduleResolution'. Рассмотрите возможность обновления до \"node16\", \"nodenext\" или \"bundler\".", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "Существуют типы в ' {0} ', но этот результат не удалось разрешить при соблюдении \"экспорта\" package.json. ' {1} ' может потребоваться обновить свой package.json или типизацию.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "В этом регулярном выражении нет группы захвата с именем \" {0} \".", - "There_is_nothing_available_for_repetition_1507": "Нет ничего, что можно было бы повторить.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Для этого тега JSX требуется, чтобы \"{0}\" был в области видимости, но его не удалось найти.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Для этого тега JSX требуется наличие пути модуля \"{0}\", но его не удалось найти. Убедитесь, что у вас установлены типы для соответствующего пакета.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Свойство \"{0}\" этого тега JSX ожидает один дочерний объект типа \"{1}\", однако было предоставлено несколько дочерних объектов.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Свойство \"{0}\" этого тега JSX ожидает тип \"{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_only_0_capturing_groups_in_this_r_1533": "Эта обратная ссылка относится к несуществующей группе. В этом регулярном выражении есть только {0} групп захвата.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Это двоичное выражение никогда не имеет нулевого значения. Вам не хватает скобок?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Этот символ нельзя экранировать в регулярном выражении.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Это сравнение кажется непреднамеренным, поскольку типы \"{0}\" и \"{1}\" не перекрываются.", "This_condition_will_always_return_0_2845": "Это условие всегда возвращает \"{0}\".", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Это условие всегда будет возвращать ''{0}'', так как JavaScript сравнивает объекты по ссылке, а не по значению.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Это условие всегда будет возвращать значение true, поскольку функция \"{0}\" всегда определена.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Это условие будет всегда возвращать значение true, поскольку функция всегда определена. Возможно, вы хотите вызвать ее?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Эту функцию конструктора можно преобразовать в объявление класса.", - "This_expression_is_always_nullish_2871": "Это выражение всегда равно нулю.", "This_expression_is_not_callable_2349": "Это выражение не является вызываемым.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Это выражение не может быть вызвано, так как оно является методом доступа get. Вы хотели использовать его без \"()\"?", "This_expression_is_not_constructable_2351": "Это выражение не может быть построено.", "This_file_already_has_a_default_export_95130": "Этот файл уже имеет экспорт по умолчанию.", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Этот путь импорта небезопасен для перезаписи, поскольку он разрешается в другой проект, а относительный путь между выходными файлами проекта не совпадает с относительным путем между входными файлами.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Этот импорт использует расширение \"{0}\" для разрешения во входной файл TypeScript, но не будет перезаписан во время выпуска, поскольку это не является относительным путем.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "Этот импорт никогда не используется в качестве значения и должен использовать \"import type\", так как для \"importsNotUsedAsValues\" задано значение \"error\".", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Это объявление дополняется другим объявлением. Попробуйте переместить дополняющее объявление в тот же файл.", - "This_kind_of_expression_is_always_falsy_2873": "Подобные выражения всегда ложны.", - "This_kind_of_expression_is_always_truthy_2872": "Такое выражение всегда правдиво.", "This_may_be_converted_to_an_async_function_80006": "Это можно преобразовать в асинхронную функцию.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Этот элемент не может иметь комментарий JSDoc с тегом \"@override\", так как он не объявлен в базовом классе \"{0}\".", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Этот элемент не может иметь комментарий JSDoc с тегом \"override\", так как он не объявлен в базовом классе \"{0}\". Возможно, вы имели в виду \"{1}\"?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Этот элемент не может иметь комментарий JSDoc с тегом модификатор \"@override'\", поскольку содержащий его класс \"{0}\" не расширяет другой класс.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Этот элемент не может содержать комментарий JSDoc с тегом \"@override\", так как его имя является динамическим.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Этот элемент не может иметь модификатор \"override\", так как он не объявлен в базовом классе \"{0}\".", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Этот элемент не может иметь модификатор \"override\", так как он не объявлен в базовом классе \"{0}\". Возможно, вы имели в виду \"{1}\"?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Этот элемент не может иметь модификатор \"override\", поскольку содержащий его класс \"{0}\" не расширяет другой класс.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Этот элемент не может иметь модификатор \"override\", так как его имя является динамическим.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "Этот элемент должен иметь комментарий JSDoc с тегом \"@override\", так как он переопределяет элемент в базовом классе \"{0}\".", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Этот элемент должен иметь модификатор \"override\", так как он переопределяет элемент в базовом классе \"{0}\".", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Этот элемент должен иметь модификатор \"override\", так как он переопределяет абстрактный метод, объявленный в базовом классе \"{0}\".", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "На этот модуль можно ссылаться только с помощью импортов/экспортов ECMAScript, включив флаг \"{0}\" и сославшись на его экспорт по умолчанию.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Этот модуль объявлен с помощью оператора \"export =\" и может использоваться только с импортом по умолчанию при использовании флажка \"{0}\".", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Эту операцию можно упростить. Эта смена идентична «{0} {1} {2}».", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Эта перегрузка неявно возвращает тип ' {0} ', поскольку в ней отсутствует аннотация типа возвращаемого значения.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Сигнатура перегрузки несовместима с ее сигнатурой реализации.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Этот параметр запрещено использовать с директивой \"use strict\".", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "Это свойство параметра должно иметь комментарий JSDoc с тегом \"@override\", так как он переопределяет элемент в базовом классе \"{0}\".", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Это свойство параметра должно иметь модификатор \"override\", так как он переопределяет элемент базового класса \"{0}\".", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Этот флаг регулярного выражения нельзя переключить внутри подшаблона.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Этот флаг регулярного выражения доступен только при таргетинге \" {0} \" или более поздней версии.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Этот относительный путь импорта небезопасен для перезаписи, потому что он выглядит как имя файла, но на самом деле разрешается как \"{0}\".", "This_spread_always_overwrites_this_property_2785": "Это распространение всегда перезаписывает данное свойство.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Этот синтаксис недопустим, если включен параметр \"erasableSyntaxOnly\".", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Этот синтаксис зарезервирован в файлах с расширениями MTS или CTS. Добавьте конечную запятую или явное ограничение.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Этот синтаксис зарезервирован в файлах с расширениями MTS или CTS. Вместо этого используйте выражение \"AS\".", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Для этого синтаксиса требуется импортированный вспомогательный объект, но найти модуль \"{0}\" не удается.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Чтобы преобразовать этот файл в модуль ECMAScript, измените его расширение на \"{0}\" или добавьте поле \"type\": \"module\" в \"{1}\".", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Чтобы преобразовать этот файл в модуль ECMAScript, измените его расширение на \"{0}\" или создайте локальный файл package.json с \"{ \"type\": \"module\" }\".", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Чтобы преобразовать этот файл в модуль ECMAScript, создайте локальный файл package.json с \"{ \"type\": \"module\" }\".", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Выражения \"await\" верхнего уровня разрешены только в том случае, если для параметра \"module\" задано значение \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\", \"nodenext\" или \"preserve\", а для параметра \"target\" задано значение \"es2017\" или выше.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Операторы верхнего уровня \"await using\" разрешены только в том случае, если для параметра \"module\" задано значение \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\", \"nodenext\" или \"preserve\", а для параметра \"target\" задано значение \"es2017\" или выше.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Выражения ожидания верхнего уровня разрешены только в том случае, если для параметра \"module\" установлено значение \"es2022\", \"esnext\", \"system\", \"node16\" или \"nodenext\", а для параметра \"цель\" установлено значение \"es2017\" или выше.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Объявления верхнего уровня в файлах .d.ts должны начинаться с модификатора \"declare\" или \"export\".", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Циклы верхнего уровня \"for await\" разрешены только в том случае, если для параметра \"module\" задано значение \"es2022\", \"esnext\", \"system\", \"node16\", \"node18\", \"nodenext\" или \"preserve\", а для параметра \"target\" задано значение \"es2017\" или выше.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Выражения ожидания верхнего уровня разрешены, только если для параметра \"module\" установлено значение \"es2022\", \"esnext\", \"system\", \"node16\" или \"nodenext\", а для параметра \"target\" установлено значение \"es2017\" или выше.", "Trailing_comma_not_allowed_1009": "Завершающая запятая запрещена.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Транскомпиляция каждого файла как отдельного модуля (аналогично ts.transpileModule).", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Попробуйте использовать команду \"npm i --save-dev @types/{1}\", если он существует, или добавьте новый файл объявления (.d.ts), содержащий \"declare module '{0}';\".", "Trying_other_entries_in_rootDirs_6110": "Попытка использовать другие записи в \"rootDirs\".", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "Выполняется попытка замены \"{0}\", расположение модуля кандидата: \"{1}\".", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Имена должны быть заданы для всех членов кортежа или не должны быть заданы ни для одного из членов кортежа.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "Тип кортежа \"{0}\" длиной \"{1}\" не имеет элемент с индексом \"{2}\".", "Tuple_type_arguments_circularly_reference_themselves_4110": "Аргументы типа кортежа циклически ссылаются сами на себя.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "Итерация типа \"{0}\" может осуществляться только с использованием флага \"--downlevelIteration\" или с параметром \"--target\" \"es2015\" или выше.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "Тип \"{0}\" не содержит соответствующую сигнатуру индекса для типа \"{1}\".", "Type_0_has_no_properties_in_common_with_type_1_2559": "У типа \"{0}\" нет общих свойств с типом \"{1}\".", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "Тип \"{0}\" не содержит подписей, к которым применим список аргументов типа.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Тип ' {0} ' является универсальным и может индексироваться только для чтения.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "В типе \"{0}\" отсутствуют следующие свойства из типа \"{1}\": {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "В типе \"{0}\" отсутствуют следующие свойства из типа \"{1}\": {2} и еще {3}.", "Type_0_is_not_a_constructor_function_type_2507": "Тип \"{0}\" не является типом функции конструктора.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "Тип ' {0} ' не является допустимым типом возвращаемого значения асинхронной функции в ES5, поскольку он не ссылается на значение конструктора, совместимого с Promise.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "Тип \"{0}\" не является допустимым типом возвращаемого значения асинхронной функции в ES5/ES3, так как он не ссылается на значение конструктора, совместимое с Promise.", "Type_0_is_not_an_array_type_2461": "Тип \"{0}\" не является типом массива.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "Тип \"{0}\" не является типом массива или типом строки.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "{0} не является типом массива или строки или в нем нет метода [Symbol.iterator](), который возвращает итератор.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "Тип \"{0}\" невозможно присвоить типу \"{1}\". Вы имели в виду \"{2}\"?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "Тип \"{0}\" невозможно присвоить типу \"{1}\". Существует два разных типа с таким именем, но они не связаны.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Тип \"{0}\" не может назначаться типу \"{1}\", как подразумевается заметкой о вариантности.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Тип ' {0} ' не может быть назначен типу ' {1} ', как это требуется для вычисленных значений элементов перечисления.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "Невозможно назначить тип \"{0}\" типу \"{1}\", когда свойство \"exactOptionalPropertyTypes\" имеет значение \"true\". Рассмотрите возможность добавления типа \"undefined\" к типам свойств цели.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Невозможно назначить тип \"{0}\" типу \"{1}\", когда свойство \"exactOptionalPropertyTypes\" имеет значение \"true\". Рассмотрите возможность добавления типа \"undefined\" к типу цели.", "Type_0_is_not_comparable_to_type_1_2678": "Тип \"{0}\" невозможно сравнить с типом \"{1}\".", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Ожидался аргумент типа.", "Type_argument_list_cannot_be_empty_1099": "Список аргументов типа не может быть пустым.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Аргументы типа можно использовать только в файлах TypeScript.", + "Type_arguments_cannot_be_used_here_1342": "Использовать аргументы типа здесь недопустимо.", "Type_arguments_for_0_circularly_reference_themselves_4109": "Аргументы типа для \"{0}\" циклически ссылаются сами на себя.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Выражения утверждения типа можно использовать только в файлах TypeScript.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Тип в позиции {0} в источнике не совместим с типом в позиции {1} в целевом объекте.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Типы в позициях {0}–{1} в источнике не совместимы с типом в позиции {2} в целевом объекте.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "Тип, содержащий частное имя \" {0} \", нельзя использовать с --isolatedDeclarations.", "Type_declaration_files_to_be_included_in_compilation_6124": "Файлы объявления типа, включаемые в компиляцию.", "Type_expected_1110": "Ожидался тип.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Утверждения импорта типа должны иметь ровно один ключ \"resolution-mode\" со значением \"import\" или \"require\".", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Атрибуты импорта типа должны иметь ровно один ключ — \"режим разрешения\" — со значением \"импорт\" или \"требовать\".", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "Импорт типа модуля ECMAScript из модуля CommonJS должен иметь атрибут \"resolution-mode\".", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Создание экземпляра типа является слишком глубоким и, возможно, бесконечным.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "На тип есть прямые или непрямые ссылки в обратном вызове выполнения собственного метода then.", "Type_library_referenced_via_0_from_file_1_1402": "Библиотека типов, на которую осуществляется ссылка с помощью \"{0}\" из файла \"{1}\"", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Тип элементов итерации для операнда \"yield*\" должен быть допустимым обещанием либо не должен содержать вызываемый элемент \"then\".", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "Тип свойства \"{0}\" циклически ссылается на самого себя в сопоставленном типе \"{1}\".", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Тип операнда \"yield\" в асинхронном генераторе должен быть допустимым обещанием либо не должен содержать вызываемый элемент \"then\".", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "Импорт модуля ECMAScript, затрагивающий только тип, из модуля CommonJS должен иметь атрибут \"resolution-mode\".", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Тип происходит от этого импорта. Импорт стиля пространства имен не может быть вызван или создан и приведет к сбою во время выполнения. Вместо этого рекомендуется использовать импорт по умолчанию или импортировать сюда \"require\".", "Type_parameter_0_has_a_circular_constraint_2313": "Параметр типа \"{0}\" содержит циклическое ограничение.", "Type_parameter_0_has_a_circular_default_2716": "Параметр типа \"{0}\" по умолчанию является циклическим.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Не удается разрешить сигнатуру декоратора метода при вызове в качестве выражения.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Не удается разрешить сигнатуру декоратора параметра при вызове в качестве выражения.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Не удается разрешить сигнатуру декоратора свойства при вызове в качестве выражения.", - "Undetermined_character_escape_1513": "Неопределенная escape-последовательность.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "Неожиданный ' {0} '. Вы хотели избежать этого с помощью обратной косой черты?", "Unexpected_end_of_text_1126": "Неожиданный конец текста.", "Unexpected_keyword_or_identifier_1434": "Непредвиденное ключевое слово или идентификатор.", "Unexpected_token_1012": "Неожиданный токен.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Непредвиденный токен. Возможно, вы хотели использовать \"{'>'}\" или \">\"?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Непредвиденный токен. Возможно, вы хотели использовать \"{'}'}\" или \"}\"?", "Unexpected_token_expected_1179": "Неожиданный токен. Ожидался символ \"{\".", - "Unicode_escape_sequence_cannot_appear_here_17021": "Escape-последовательность Юникода здесь не может присутствовать.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Escape-последовательности Unicode доступны только в том случае, если установлен флаг Unicode (u) или флаг Sets Unicode (v).", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Выражения значений свойств Unicode доступны только в том случае, если установлен флаг Unicode (u) или флаг Sets Unicode (v).", - "Unknown_Unicode_property_name_1524": "Неизвестное имя свойства Юникода.", - "Unknown_Unicode_property_name_or_value_1529": "Неизвестное имя или значение свойства Юникода.", - "Unknown_Unicode_property_value_1526": "Неизвестное значение свойства Юникода.", "Unknown_build_option_0_5072": "Неизвестный параметр сборки \"{0}\".", "Unknown_build_option_0_Did_you_mean_1_5077": "Неизвестный параметр сборки \"{0}\". Возможно, вы хотели использовать \"{1}\"?", "Unknown_compiler_option_0_5023": "Неизвестный параметр компилятора \"{0}\".", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Неизвестный параметр компилятора \"{0}\". Возможно, вы хотели использовать \"{1}\"?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Неизвестное ключевое слово или идентификатор. Вы имели в виду \"{0}\"?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "Неизвестный параметр excludes. Возможно, вы имели в виду exclude?", - "Unknown_regular_expression_flag_1499": "Неизвестный флаг регулярного выражения.", "Unknown_type_acquisition_option_0_17010": "Неизвестный параметр получения типа, \"{0}\".", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Неизвестный параметр получения типа \"{0}\". Возможно, вы хотели использовать \"{1}\"?", "Unknown_watch_option_0_5078": "Неизвестный параметр контрольного значения \"{0}\".", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Неиспользуемая метка.", "Unused_ts_expect_error_directive_2578": "Неиспользуемая директива \"@ts-expect-error\".", "Update_import_from_0_90058": "Обновить импорт из \"{0}\"", - "Update_modifiers_of_0_90061": "Обновить модификаторы ' {0} '", + "Updating_output_of_project_0_6373": "Обновление выходных данных проекта \"{0}\"...", "Updating_output_timestamps_of_project_0_6359": "Обновление меток времени в выходных данных проекта \"{0}\"...", "Updating_unchanged_output_timestamps_of_project_0_6371": "Обновление меток времени в неизменившихся выходных данных проекта \"{0}\"...", "Use_0_95174": "Использовать \"{0}\".", - "Use_0_instead_5106": "Вместо него используйте '{0}'.", "Use_Number_isNaN_in_all_conditions_95175": "Использовать \"Number.isNaN\" во всех условиях.", "Use_element_access_for_0_95145": "Использовать доступ к элементам для \"{0}\".", "Use_element_access_for_all_undeclared_properties_95146": "Использовать доступ к элементам для всех необъявленных свойств.", - "Use_import_type_95180": "Используйте \"тип импорта\"", "Use_synthetic_default_member_95016": "Используйте искусственный элемент \"default\".", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Используйте поле \"экспорт\" package.json при разрешении импорта пакетов.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "Используйте поле \"импорт\" package.json при разрешении импорта.", - "Use_type_0_95181": "Используйте 'type {0}'", "Using_0_subpath_1_with_target_2_6404": "Использование \"{0}\", вложенный путь: \"{1}\", целевой объект: \"{2}\".", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "Использование фрагментов JSX требует, чтобы фабрика фрагментов \"{0}\" была в области видимости, но ее не удалось найти.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "Использование строки для оператора for...of поддерживается только в ECMAScript 5 и более поздних версиях.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "Использование --build,-b заставит TSC вести себя больше как оркестратор сборки, чем как компилятор. Это используется для запуска создания составных проектов, о которых можно узнать больше на {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "Использование параметров компилятора для перенаправления ссылки на проект \"{0}\".", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Ожидалось объявление переменной.", "Variable_declaration_list_cannot_be_empty_1123": "Список объявлений переменной не может быть пустым.", "Variable_declaration_not_allowed_at_this_location_1440": "Объявление переменной в этом расположении запрещено.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "Переменная должна иметь явную аннотацию типа с --isolatedDeclarations.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Переменные с несколькими объявлениями не могут быть встроены.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Элемент с переменным числом аргументов в позиции {0} в источнике не соответствует элементу в позиции {1} в целевом объекте.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Заметки вариантности поддерживаются только в псевдонимах типов для объектов, функций, конструкторов и сопоставленных типов.", "Version_0_6029": "Версия {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "При проверке типа учитывайте параметры \"null\" и \"undefined\".", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Сохранять ли устаревшие выходные данные консоли в режиме просмотра вместо очистки экрана.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Заключение всех недопустимых символов в контейнер выражений", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Заключите все недопустимые выражения декоратора в круглые скобки.", "Wrap_all_object_literal_with_parentheses_95116": "Заключить все литералы объектов в круглые скобки", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "Перенос всех элементов JSX без родительских элементов во фрагмент JSX", "Wrap_in_JSX_fragment_95120": "Перенос во фрагмент JSX", - "Wrap_in_parentheses_95194": "Заключить в круглые скобки", "Wrap_invalid_character_in_an_expression_container_95108": "Заключение недопустимого знака в контейнер выражений", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Заключить следующий текст в круглые скобки, которые должны быть литералом объекта", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Вы можете узнать обо всех параметрах компилятора на {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "Сигнатуры индекса \"{0}\" и \"{1}\" несовместимы.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "Операции \"{0}\" и \"{1}\" невозможно использовать одновременно без скобок.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "\"{0}\" указаны дважды. Атрибут \"{0}\" будет перезаписан.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "' {0} ' в конце типа не является допустимым синтаксисом TypeScript. Вы хотели написать ' {1} '?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "' {0} ' в начале типа не является допустимым синтаксисом TypeScript. Вы хотели написать ' {1} '?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "Для импорта \"{0}\" необходимо установить флаг \"esModuleInterop\" и использовать импорт по умолчанию.", "_0_can_only_be_imported_by_using_a_default_import_2595": "Для импорта \"{0}\" необходимо использовать импорт по умолчанию.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "Для импорта \"{0}\" необходимо использовать вызов \"require\" или установить флаг \"esModuleInterop\" и использовать импорт по умолчанию.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "Для импорта \"{0}\" необходимо использовать вызов \"require\" или импорт по умолчанию.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "Для импорта \"{0}\" необходимо использовать \"import {1} = require({2})\" или импорт по умолчанию.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "Для импорта \"{0}\" необходимо использовать \"import {1} = require({2})\" или установить флаг \"esModuleInterop\" и использовать импорт по умолчанию.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "\"{0}\" не может быть скомпилирован с параметром \"--isolatedModules\", так как он считается глобальным файлом сценария. Добавьте оператор для импорта, экспорта или пустой оператор \"export {}\", чтобы сделать его модулем.", "_0_cannot_be_used_as_a_JSX_component_2786": "\"{0}\" невозможно использовать как компонент JSX.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "\"{0}\" невозможно использовать как значение, так как он был экспортирован с помощью \"export type\".", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "\"{0}\" невозможно использовать как значение, так как он был импортирован с помощью \"import type\".", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "Компоненты \"{0}\" не принимают текст в виде дочерних элементов. Текст в JSX-файле имеет тип \"string\", однако для \"{1}\" ожидается тип \"{2}\".", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "Возможно создание экземпляра \"{0}\" с произвольным типом, который может быть не связан с \"{1}\".", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "' {0} ' могут быть объявлены только внутри блока.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "Объявления \"{0}\" можно использовать только в файлах TypeScript.", - "_0_declarations_may_not_have_binding_patterns_1492": "' {0} ' могут не иметь шаблонов привязки.", - "_0_declarations_must_be_initialized_1155": "' {0} ' должны быть инициализированы.", "_0_expected_1005": "Ожидалось \"{0}\".", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "' {0} ' имеет строковый тип, но должен иметь синтаксически распознаваемый строковый синтаксис, если включен 'isolatedModules'.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "В \"{0}\" нет экспортированного элемента \"{1}\". Вы имели в виду \"{2}\"?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" неявно имеет тип возвращаемого значения \"{1}\", но из использования можно определить более подходящий тип.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "\"{0}\" неявно имеет тип возвращаемого значения any, так как у него нет заметки с типом возвращаемого значения, а также на него прямо или косвенно указана ссылка в одном из его выражений return.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Тип индекса \"{0}\" \"{1}\" не может быть назначен типу индекса \"{2}\" \"{3}\".", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "\"{0}\" является примитивом, но \"{1}\" — объект оболочки. Предпочтительно использовать \"{0}\" по мере возможности.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "\"{0}\" является типом и не может импортироваться в файлы JavaScript. Используйте \"{1}\" в заметке типа JSDoc.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "' {0} ' является типом и должен быть импортирован с использованием импорта только типа, если включен 'verbatimModuleSyntax'.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" является типом. Чтобы импортировать его, необходимо использовать импорт, распространяющийся только на тип, если включены параметры \"preserveValueImports\" и \"isolatedModules\".", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "\"{0}\" является неиспользуемым переименованием \"{1}\". Возможно, это должна была быть заметка для типа?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" может быть назначен ограничению типа \"{1}\", но можно создать экземпляр \"{1}\" с другим подтипом ограничения \"{2}\".", "_0_is_automatically_exported_here_18044": "\"{0}\" экспортирован автоматически.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "Список \"{0}\" не может быть пустым.", "_0_modifier_already_seen_1030": "Модификатор \"{0}\" уже встречался.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "Модификатор \"{0}\" может присутствовать только в параметре типа у класса, интерфейса или псевдонима типа.", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "' {0} ' может появляться только в параметре типа функции, метода или класса.", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "Модификатор \"{0}\" не может содержаться в объявлении конструктора.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "Модификатор \"{0}\" не может отображаться в модуле или элементе пространства имен.", "_0_modifier_cannot_appear_on_a_parameter_1090": "Модификатор \"{0}\" не может содержаться в параметре.", "_0_modifier_cannot_appear_on_a_type_member_1070": "Модификатор \"{0}\" не может отображаться в элементе типа.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "Модификатор \"{0}\" не может присутствовать в параметре типа.", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "' {0} ' не может присутствовать в объявлении 'using'.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "' {0} ' не может присутствовать в объявлении 'await using' .", "_0_modifier_cannot_appear_on_an_index_signature_1071": "Модификатор \"{0}\" не может отображаться в сигнатуре индекса.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "Модификатор \"{0}\" не может использоваться для элементов класса этого типа.", "_0_modifier_cannot_be_used_here_1042": "Модификатор \"{0}\" не может использоваться здесь.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "Модификатор \"{0}\" не может использоваться с модификатором \"{1}\".", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "Модификатор \"{0}\" не может использоваться с закрытым идентификатором.", "_0_modifier_must_precede_1_modifier_1029": "Модификатор \"{0}\" должен предшествовать модификатору \"{1}\".", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "За '\\ {0} ' должно следовать выражение значения свойства Unicode, заключенное в фигурные скобки.", "_0_needs_an_explicit_type_annotation_2782": "Для \"{0}\" требуется явная заметка с типом.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "\"{0}\" относится только к типу, а здесь используется как пространство имен.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "\"{0}\" относится только к типу, но используется здесь как значение.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "\"{0}\" относится только к типу, но здесь используется как значение. Вы хотите изменить целевую библиотеку? Попробуйте изменить параметр компилятора \"lib\" на ES2015 или более поздней версии.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "\"{0}\" ссылается на глобальную переменную UMD, но текущий файл является модулем. Рекомендуется добавить импорт.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "\"{0}\" относится к значению, но здесь используется как тип. Возможно, вы имели в виду \"typeof {0}\"?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "' {0} ' преобразуется в тип и должен быть помечен в этом файле как \"только тип\" перед повторным экспортом, если \" {1} \" включен. Рассмотрите возможность использования \"типа импорта\", где импортируется \" {0} \".", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "' {0} ' преобразуется в тип и должен быть помечен в этом файле как \"только тип\" перед повторным экспортом, если \" {1} \" включен. Рассмотрите возможность использования \"типа экспорта { {0} по умолчанию }\".", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "' {0} ' разрешается в объявление только типа и должен быть импортирован с использованием импорта только типа, если включен 'verbatimModuleSyntax'.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "' {0} ' разрешается в объявление только типа и должен быть помечен как \"только тип\" в этом файле перед повторным экспортом, если включено \" {1} \". Рассмотрите возможность использования \"типа импорта\", где импортируется \" {0} \".", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "' {0} ' разрешается в объявление только типа и должен быть помечен как \"только тип\" в этом файле перед повторным экспортом, если включено \" {1} \". Рассмотрите возможность использования \"типа экспорта { {0} по умолчанию }\".", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "' {0} ' разрешается в объявление только типа и должен быть реэкспортирован с использованием реэкспорта только типа, если включено ' {1} '.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" разрешается в объявление, распространяющееся только на тип. Чтобы импортировать его, необходимо использовать импорт, распространяющийся только на тип, если включены параметры \"preserveValueImports\" и \"isolatedModules\".", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" разрешается в объявление, распространяющееся только на тип. Чтобы повторно его экспортировать, необходимо использовать повторный экспорт, распространяющийся только на тип, если включен параметр \"isolatedModules\".", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "Значение \"{0}\" должно быть задано внутри объекта \"compilerOptions\" файла конфигурации JSON", "_0_tag_already_specified_1223": "Тег \"{0}\" уже указан.", "_0_was_also_declared_here_6203": "Здесь также был объявлен \"{0}\".", @@ -1999,22 +1780,19 @@ "and_here_6204": "и здесь.", "arguments_cannot_be_referenced_in_property_initializers_2815": "Ссылка на \"arguments\" в инициализаторах свойств невозможна.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": обрабатывать файлы с импортом, экспортом, import.meta, jsx (с jsx: react-jsx) или форматом esm (с модулем: node16+) как файлы с модулями.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Выражение \"await\" нельзя использовать внутри статического блока класса.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Выражения \"await\" допускаются только на верхнем уровне файла, если он является модулем, но не имеет импортов и экспортов. Рекомендуется добавить пустой элемент \"export {}\", чтобы сделать этот файл модулем.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "Выражения \"await\" допускаются только в асинхронных функциях и на верхних уровнях модулей.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "Выражения await не могут быть использованы в инициализаторе параметра.", "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" не влияет на тип этого выражения.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "Операторы 'await using' разрешены только на верхнем уровне файла, если этот файл является модулем, но этот файл не имеет импорта или экспорта. Рекомендуется добавить пустой элемент \"export {}\", чтобы сделать этот файл модулем.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "Операторы 'await using' разрешены только в асинхронных функциях и на верхних уровнях модулей.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "Операторы 'await using' нельзя использовать внутри статического блока класса.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "Параметр \"baseUrl\" имеет значение \"{0}\", это значение используется для разрешения безотносительного имени модуля \"{1}\".", - "c_must_be_followed_by_an_ASCII_letter_1512": "За '\\c' должна следовать буква ASCII.", "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" можно использовать только в начале файла.", "case_or_default_expected_1130": "Ожидалось case или default.", "catch_or_finally_expected_1472": "Ожидается \"catch\" или \"finally\".", + "const_declarations_can_only_be_declared_inside_a_block_1156": "Объявления const можно задать только в блоке.", + "const_declarations_must_be_initialized_1155": "Объявления \"const\" должны быть инициализированы.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "Инициализатор элементов перечисления const был вычислен в неконечное значение.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "Инициализатор элементов перечисления const был вычислен в запрещенное значение NaN.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "Инициализаторы членов перечисления const должны быть константными выражениями.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "Инициализаторы членов перечисления констант могут содержать только литеральные значения и другие вычисляемые значения перечисления.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "Перечисления const можно использовать только в выражениях доступа к свойству или индексу, а также в правой части объявления импорта, назначения экспорта или запроса типа.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "Недопустимо использовать constructor как имя свойства параметра.", "constructor_is_a_reserved_word_18012": "\"#constructor\" является зарезервированным словом.", @@ -2033,14 +1811,13 @@ "file_6025": "файл", "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\" допускаются только на верхнем уровне файла, если он является модулем, но этот файл не содержит импортов или экспортов. Рекомендуется добавить пустой элемент \"export {}\", чтобы сделать этот файл модулем.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "Циклы \"for await\" допускаются только в асинхронных функциях и на верхних уровнях модулей.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "Циклы 'for await' нельзя использовать внутри статического блока класса.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "Методы доступа \"get\" и \"set\" не могут объявлять параметры \"this\".", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "\"[]\", если указаны \"files\", в противном случае \"[\"**/*\"]5D;\"", "implements_clause_already_seen_1175": "Предложение implements уже существует.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "Предложения \"implements\" можно использовать только в файлах TypeScript.", "import_can_only_be_used_in_TypeScript_files_8002": "Элемент \"import ... =\" можно использовать только в файлах TypeScript.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "Объявления \"infer\" допустимы только в предложении \"extends\" условного типа.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "За '\\k' должно следовать имя группы захвата, заключенное в угловые скобки.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "Объявления let можно задать только в блоке.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "Не допускается использование let в качестве имени в объявлениях let или const.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "модуль === \"AMD\" или \"UMD\" или \"Система\" или \"ES6\", затем \"Классический\", или \"Узел\"", "module_system_or_esModuleInterop_6904": "модуль === \"system\" или \"esModuleInterop\"", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "В файле \"package.json\" отсутствует запись \"typesVersions\", соответствующая версии \"{0}\".", "package_json_had_a_falsy_0_field_6220": "Файл \"package.json\" содержит поле \"{0}\" со значением false.", "package_json_has_0_field_1_that_references_2_6101": "package.json содержит поле \"{0}\" \"{1}\", которое ссылается на \"{2}\".", - "package_json_has_a_peerDependencies_field_6281": "\"package.json\" имеет поле \"peerDependities\".", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "Файл \"package.json\" содержит запись \"typesVersions\" \"{0}\", которая не является допустимым диапазоном semver.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "Файл \"package.json\" содержит запись \"typesVersions\" \"{0}\", которая соответствует версии компилятора \"{1}\", выполняется поиск шаблона для сопоставления имени модуля \"{2}\".", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "Файл \"package.json\" содержит поле \"typesVersions\" с сопоставлениями путей, зависящих от версии.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "Область package.json \"{0}\" имеет недопустимый тип для целевого объекта описателя \"{1}\"", "package_json_scope_0_has_no_imports_defined_6273": "Для области package.json \"{0}\" не определены операции импорта.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "Параметр paths указан, идет поиск шаблона, соответствующего имени модуля \"{0}\".", - "q_is_only_available_inside_character_class_1511": "'\\q' доступен только внутри класса символов.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "За '\\q' должны следовать строковые альтернативы, заключенные в фигурные скобки.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Модификатор readonly может отображаться только в объявлении свойства или сигнатуре индекса.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Модификатор типа \"readonly\" допускается только для типов литерала массива и кортежа.", "require_call_may_be_converted_to_an_import_80005": "Вызов \"require\" можно преобразовать в \"import\".", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Утверждения \"режим разрешения\" поддерживаются только тогда, когда \"moduleResolution\" имеет значение \"node16\" или \"nodenext\".", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Утверждения ''режима разрешения'' нестабильны. Используйте ночной TypeScript, чтобы отключить эту ошибку. Попробуйте обновить с помощью ''npm install -D typescript@next''.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "\"resolution-mode\" можно задать лишь для импорта, распространяющегося только на тип.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" является единственным допустимым ключом для утверждений импорта типа.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "\"режим разрешения\" — единственный допустимый ключ для атрибутов импорта типа.", "resolution_mode_should_be_either_require_or_import_1453": "\"resolution-mode\" должен иметь значение \"require\" или \"import\".", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "Параметр \"rootDirs\" задан; он используется для разрешения относительного имени модуля \"{0}\".", "super_can_only_be_referenced_in_a_derived_class_2335": "Ссылка на super может указываться только в производном классе.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "На this не может указывать ссылка в имени вычисляемого свойства.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "На this не могут указывать ссылки в теле модуля или пространства имен.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "На this не могут указывать ссылки в инициализаторе статического свойства.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "На this не могут указывать ссылки в аргументах конструктора.", "this_cannot_be_referenced_in_current_location_2332": "На this не могут указывать ссылки в текущем расположении.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "this неявно содержит тип any, так как он не имеет аннотации типа.", "true_for_ES2022_and_above_including_ESNext_6930": "true для ES2022 и выше, включая ESNext.", "true_if_composite_false_otherwise_6909": "\"true\", если \"composite\", \"false\" в противном случае", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "`true`, когда moduleResolution — это node16, nodenext или Bundler; в противном случае `false`.", "tsc_Colon_The_TypeScript_Compiler_6922": "TSC: компилятор TypeScript", "type_Colon_6902": "тип:", "unique_symbol_types_are_not_allowed_here_1335": "Типы \"unique symbol\" здесь запрещены.", diff --git a/node_modules/typescript/lib/tr/diagnosticMessages.generated.json b/node_modules/typescript/lib/tr/diagnosticMessages.generated.json index 5c2b371bf..36a7594ca 100644 --- a/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/tr/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "TÜM DERLEYİCİ SEÇENEKLERİ", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "Bir '{0}' değiştiricisi, içeri aktarma bildirimiyle birlikte kullanılamaz.", "A_0_parameter_must_be_the_first_parameter_2680": "Bir '{0}' parametresi ilk parametre olmalıdır.", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "JSDoc '@template' etiketi, '@typedef', '@callback' veya '@overload' etiketini takip edemez", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' açıklaması, birden çok '@type' etiketi içeremez.", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "'bigint' sabit değeri, özellik adı olarak kullanılamaz.", "A_bigint_literal_cannot_use_exponential_notation_1352": "Bir büyük tamsayı sabit değerinde üstel gösterim kullanılamaz.", "A_bigint_literal_must_be_an_integer_1353": "Büyük tamsayı sabit değeri bir tamsayı olmalıdır.", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "Uygulama imzasındaki bir bağlama deseni parametresi isteğe bağlı olamaz.", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' deyimi yalnızca bir kapsayan yineleme veya switch deyimi içinde kullanılabilir.", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' deyimi, yalnızca kapsayan deyimin etiketine atlayabilir.", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "Karakter sınıfı ayrılmış bir çift noktalayıcı içermemelidir. Ters eğik çizgiyle bundan kaçmak mı istediniz?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "Bir karakter sınıfı aralığı başka bir karakter sınıfı tarafından sınırlanmamalıdır.", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "Bir sınıf, isteğe bağlı tür bağımsız değişkenleri ile yalnızca bir tanımlayıcıyı/tam adı uygulayabilir.", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "Bir sınıf, yalnızca statik olarak bilinen üyelere sahip bir nesne türünü veya nesne türlerinin bir kesişimini uygulayabilir.", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "Bir sınıf '{0}' gibi ilkel bir türü genişletemez. Sınıflar yalnızca oluşturulabilen değerleri genişletebilir.", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "Bir sınıf '{0}' gibi ilkel bir türü uygulayamaz. Yalnızca diğer adlandırılmış nesne türlerini uygulayabilir.", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "'default' değiştiricisi olmayan bir sınıf bildiriminin adı olmalıdır.", "A_class_member_cannot_have_the_0_keyword_1248": "Bir sınıf üyesi '{0}' anahtar kelimesini içeremez.", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "Hesaplanan özellik adında virgül ifadesine izin verilmez.", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "Bir oluşturucu 'this' parametresini içeremez.", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' deyimi yalnızca bir kapsayan yineleme deyimi içinde kullanılabilir.", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' deyimi, yalnızca kapsayan yineleme deyiminin etiketine atlayabilir.", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "Bir beyan dosyası 'import type' olmadan içe aktarılamaz. Bunun yerine '{0}' uygulama dosyasını mı içe aktarmak istediniz?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "Çevresel bağlamda 'declare' değiştiricisi kullanılamaz.", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "Dekoratörler yalnızca metot uygulaması dekore edebilir; aşırı yüklemeleri dekore edemez.", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' yan tümcesi, 'switch' deyiminde birden fazla kez bulunamaz.", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "Varsayılan dışarı aktarma, bir dosyanın veya modül bildiriminin en üst düzeyinde olmalıdır.", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "Bu bağlamda '!' belirli atama onayına izin verilmez.", "A_destructuring_declaration_must_have_an_initializer_1182": "Yok etme bildiriminin bir başlatıcısı olmalıdır.", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "ES5'teki dinamik içe aktarma çağrısı 'Promise' oluşturucusu gerektirir. 'Promise' oluşturucusu için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3 içindeki dinamik içeri aktarma çağrısı, 'Promise' oluşturucusunu gerektirir. 'Promise' oluşturucusu için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "Dinamik içeri aktarma çağrısı, 'Promise' döndürür. 'Promise' için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", "A_file_cannot_have_a_reference_to_itself_1006": "Bir dosya kendine başvuramaz.", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "'never' döndüren bir işlev, erişilebilir bir uç noktaya sahip olamaz.", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "'New' anahtar kelimesiyle çağrılan bir işlev, 'void' olan bir 'this' türüne sahip olamaz.", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "Bildirilen türü 'undefined', 'void' veya 'any' olmayan bir işlev bir değer döndürmelidir.", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "Bildirilen türü 'void' veya 'any' olmayan işlevin bir değer döndürmesi gerekir.", "A_generator_cannot_have_a_void_type_annotation_2505": "Bir oluşturucu 'void' türündeki bir ek açıklamaya sahip olamaz.", "A_get_accessor_cannot_have_parameters_1054": "Bir 'get' erişimcisi parametrelere sahip olamaz.", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Get erişimcisi en az ayarlayıcı kadar erişilebilir olmalıdır", @@ -62,9 +55,9 @@ "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Bir ad alanı bildirimi, birleştirildiği sınıf veya işlevden farklı bir dosyada olamaz.", "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Bir ad alanı bildirimi, birleştirildiği sınıf veya işlevden önce gelemez.", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Ad alanı bildirimine yalnızca bir ad alanının veya modülün en üst düzeyinde izin verilir.", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "'module' anahtar sözcüğü kullanılarak 'namespace' bildirimi bildirilmez. Lütfen bunun yerine 'namespace' anahtar sözcüğünü kullanın.", "A_non_dry_build_would_build_project_0_6357": "-dry bayrağı kullanılmayan bir derleme '{0}' projesini derler", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "-dry bayrağı kullanılmayan bir derleme şu dosyaları siler: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "DRY dışı bir derleme, '{0}' projesinin çıkışını güncelleştirir", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "DRY dışı bir derleme, '{0}' projesinin çıkışı için zaman damgalarını güncelleştirir", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "Parametre başlatıcısına yalnızca bir işlevde veya oluşturucu uygulamasında izin verilir.", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "Parametre özelliği, rest parametresi kullanılarak bildirilemez.", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "Bir türetilmiş sınıf başlatılmış özellikler, parametre özellikleri veya özel tanımlayıcılar içerdiğinde 'super' çağrısı, 'super' veya 'this' öğesine başvurmak için oluşturucudaki ilk deyim olmalıdır.", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "'This' tabanlı tür koruması, parametre tabanlı tür koruması ile uyumlu değildir.", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' türü, yalnızca bir sınıfın veya arabirimin statik olmayan bir üyesinde kullanılabilir.", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "'verbatimModuleSyntax' etkinleştirildiğinde, CommonJS modülündeki değer bildirimlerinde üst düzey bir 'export' değiştiricisi kullanılamaz.", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' dosyası şu konumda zaten tanımlanmış: '{0}'.", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "Demet üyesi hem isteğe bağlı hem de diğerleri olamaz.", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Bir demet türünün negatif bir değerle dizini oluşturulamaz.", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "Bir 'yield' ifadesine yalnızca oluşturucu gövdesinde izin verilir.", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "'{1}' sınıfındaki '{0}' soyut metoduna super ifadesi ile erişilemez.", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "Soyut metotlar yalnızca bir soyut sınıfta görüntülenebilir.", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "Soyut metotlar yalnızca bir soyut sınıfta görüntülenebilir.", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "'{1}' sınıfındaki '{0}' soyut özelliğine oluşturucuda erişilemiyor.", "Accessibility_modifier_already_seen_1028": "Erişilebilirlik değiştiricisi zaten görüldü.", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "Erişimciler yalnızca ECMAScript 5 ve üzeri hedeflenirken kullanılabilir.", "Accessors_must_both_be_abstract_or_non_abstract_2676": "İki erişimci de soyut veya soyut olmayan olmalıdır.", "Add_0_to_unresolved_variable_90008": "Çözümlenmemiş değişkene '{0}.' ekle", "Add_a_return_statement_95111": "Return deyimi ekleyin", - "Add_a_return_type_to_the_function_declaration_9031": "İşlev bildirimine bir dönüş türü ekleyin.", - "Add_a_return_type_to_the_function_expression_9030": "İşlev ifadesine bir dönüş türü ekleyin.", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "Get erişimcisi bildirimine bir dönüş türü ekleyin.", - "Add_a_return_type_to_the_method_9034": "Yönteme bir dönüş türü ekleyin", - "Add_a_type_annotation_to_the_parameter_0_9028": "{0} parametresine bir tür ek açıklaması ekleyin.", - "Add_a_type_annotation_to_the_property_0_9029": "{0} özelliğine bir tür ek açıklaması ekleyin.", - "Add_a_type_annotation_to_the_variable_0_9027": "{0} değişkenine bir tür ek açıklaması ekleyin.", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "Ayarlanmış erişimci bildiriminin parametresine bir tür ekleyin.", "Add_all_missing_async_modifiers_95041": "Tüm eksik 'async' değiştiricileri ekle", "Add_all_missing_attributes_95168": "Tüm eksik öznitelikleri ekleyin", "Add_all_missing_call_parentheses_95068": "Eksik tüm çağrı parantezlerini ekle", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "Tüm eksik içeri aktarmaları ekleyin", "Add_all_missing_members_95022": "Tüm eksik üyeleri ekle", "Add_all_missing_override_modifiers_95162": "Tüm eksik 'override' değiştiricilerini ekle", - "Add_all_missing_parameters_95190": "Tüm eksik parametreleri ekleyin", "Add_all_missing_properties_95166": "Tüm eksik özellikleri ekleyin", "Add_all_missing_return_statement_95114": "Tüm eksik return deyimlerini ekleyin", "Add_all_missing_super_calls_95039": "Tüm eksik süper çağrıları ekle", - "Add_all_missing_type_annotations_90067": "Eksik olan tüm tür ek açıklamalarını ekleyin", - "Add_all_optional_parameters_95193": "Tüm isteğe bağlı parametreleri ekleyin", - "Add_annotation_of_type_0_90062": "'{0}' türünde ek açıklama ekleyin", "Add_async_modifier_to_containing_function_90029": "İçeren işleve zaman uyumsuz değiştirici ekle", "Add_await_95083": "'await' ekleyin", "Add_await_to_initializer_for_0_95084": "'{0}' için başlatıcıya 'await' ekleyin", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "Tüm başlatılmamış özelliklere başlatıcılar ekle", "Add_missing_attributes_95167": "Eksik öznitelikleri ekleyin", "Add_missing_call_parentheses_95067": "Eksik çağrı parantezlerini ekle", - "Add_missing_comma_for_object_member_completion_0_95187": "'{0}' nesne üyesinin tamamlanması için eksik virgülü ekleyin.", "Add_missing_enum_member_0_95063": "Eksik '{0}' sabit listesi üyesini ekleyin", "Add_missing_function_declaration_0_95156": "Eksik '{0}' işlev bildirimini ekle", "Add_missing_new_operator_to_all_calls_95072": "Tüm çağrılara eksik 'new' işlecini ekleyin", "Add_missing_new_operator_to_call_95071": "Çağrıya eksik 'new' işlecini ekleyin", - "Add_missing_parameter_to_0_95188": "'{0}' öğesine eksik parametreyi ekleyin", - "Add_missing_parameters_to_0_95189": "'{0}' öğesine eksik parametreleri ekleyin", "Add_missing_properties_95165": "Eksik özellikleri ekleyin", "Add_missing_super_call_90001": "Eksik 'super()' çağrısını ekle", "Add_missing_typeof_95052": "Eksik 'typeof' öğesini ekle", "Add_names_to_all_parameters_without_names_95073": "Adları olmayan tüm parametrelere ad ekleyin", - "Add_optional_parameter_to_0_95191": "'{0}' öğesine isteğe bağlı parametre ekleme", - "Add_optional_parameters_to_0_95192": "'{0}' öğesine isteğe bağlı parametreler ekle", "Add_or_remove_braces_in_an_arrow_function_95058": "Ok işlevine küme ayracı ekle veya kaldır", "Add_override_modifier_95160": "'override' değiştiricisi ekle", "Add_parameter_name_90034": "Parametre adı ekleyin", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "Bir üye adıyla eşleşen tüm çözülmemiş değişkenlere niteleyici ekle", - "Add_resolution_mode_import_attribute_95196": "'resolution-mode' içeri aktarma özniteliği ekle", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "'resolution-mode' içeri aktarma özniteliğini, bunun gerekliği olduğu tüm yalnızca tür içeri aktarma işlemlerine ekle", - "Add_return_type_0_90063": "'{0}' dönüş tipi ekleyin", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "Türü açık hale getirmek için bu ifadeye satisfies operatörü ve bir tür iddiası ekleyin (satisfies T as T).", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "Satisfies operatörü ve '{0}' içeren satır içi tip iddiası ekleyin", "Add_to_all_uncalled_decorators_95044": "Çağrılmayan tüm dekoratörlere '()' ekle", "Add_ts_ignore_to_all_error_messages_95042": "Tüm hata iletilerine '@ts-ignore' ekle", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "İndis kullanılarak erişildiğinde türe 'undefined' ekle.", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "Varsayılan dışarı aktarmaya sahip olmayan modüllerde varsayılan içeri aktarmalara izin verin. Bu işlem kod üretimini etkilemez, yalnızca tür denetimini etkiler.", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "Bir modülün varsayılan dışarı aktarması olmadığında 'import x from y' öğesine izin verin.", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "tslib’den yardımcı işlevlerin her dosya başına eklenmesi yerine proje başına bir kez içeri aktarılmasına izin verin.", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "İçe aktarma işlemlerinin TypeScript dosya uzantılarını içermesine izin verin. '--moduleResolution bundler' ve '--noEmit' veya '--emitDeclarationOnly' ayarını gerektirir.", "Allow_javascript_files_to_be_compiled_6102": "Javascript dosyalarının derlenmesine izin ver.", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "Modüller çözümlenirken birden çok klasörün tek bir klasör olarak işlenmesine izin verin.", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "Zaten eklenmiş olan '{0}' dosya adı, '{1}' dosya adından yalnızca büyük/küçük harf yönünden farklıdır.", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Bu bağlama deseniyle eşleşen bağımsız değişken sağlanmadı.", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "Aritmetik işlenen 'any', 'number', 'bigint' veya bir sabit listesi türünde olmalıdır.", "An_arrow_function_cannot_have_a_this_parameter_2730": "Ok işlevi 'this' parametresine sahip olamaz.", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "ES5'teki eşzamansız bir işlev veya yöntem, 'Promise' yapıcısını gerektirir. 'Promise' oluşturucusu için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 içindeki zaman uyumsuz bir işlev veya metot, 'Promise' oluşturucusunu gerektiriyor. 'Promise' oluşturucusu için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "Zaman uyumsuz bir işlevin veya metodun 'Promise' döndürmesi gerekir. 'Promise' için bir bildiriminiz olduğundan emin olun veya '--lib' seçeneğinize 'ES2015' ekleyin.", "An_async_iterator_must_have_a_next_method_2519": "Zaman uyumsuz yineleyicinin bir 'next()' metodu olmalıdır.", "An_element_access_expression_should_take_an_argument_1011": "Bir öğe erişimi ifadesi bir bağımsız değişken almalıdır.", @@ -239,22 +207,17 @@ "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474": "Dışarı aktarma bildirimi yalnızca modülün en üst düzeyinde kullanılabilir.", "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233": "Dışarı aktarma bildirimi yalnızca bir ad alanının veya modülün en üst düzeyinde kullanılabilir.", "An_export_declaration_cannot_have_modifiers_1193": "Dışarı aktarma bildirimi, değiştiricilere sahip olamaz.", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "'VerbatimModuleSyntax' etkinleştirildiğinde 'export =' bildirimi gerçek bir değere başvurmalıdır ancak '{0}' yalnızca tür bildirimine çözümleniyor.", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "'VerbatimModuleSyntax' etkinleştirildiğinde 'export =' bildirimi bir değere başvuruda bulunmalıdır ancak '{0}' yalnızca bir türe başvuruyor.", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "'VerbatimModuleSyntax' etkinleştirildiğinde 'export default' gerçek bir değere başvurmalıdır ancak '{0}' yalnızca tür bildirimine çözümleniyor.", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "'VerbatimModuleSyntax' etkinleştirildiğinde 'dışa aktarma varsayılanı' bir değere başvuruda bulunmalıdır ancak '{0}' yalnızca bir türe başvuruyor.", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "'void' türünde bir ifade doğruluk bakımından test edilemiyor.", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "Genişletilmiş Unicode kaçış değeri, 0x0 ve 0x10FFFF dahil olmak üzere bu değerler arasında olmalıdır.", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "Tanımlayıcı veya anahtar sözcük, sayısal bir sabit değerden hemen sonra gelemez.", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "Uygulama, çevresel bağlamda bildirilemez.", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "İçeri aktarma diğer adı, 'export type' kullanılarak dışarı aktarılan bir bildirime başvuramaz.", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "İçeri aktarma diğer adı, 'import type' kullanılarak içeri aktarılan bir bildirime başvuramaz.", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "Bir içe aktarma takma adı, 'verbatimModuleSyntax' etkinleştirildiğinde bir türe veya yalnızca tür bildirimine çözümlenemez.", "An_import_alias_cannot_use_import_type_1392": "İçeri aktarma diğer adı, 'import type' kullanamaz", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473": "İçeri aktarma bildirimi yalnızca modülün en üst düzeyinde kullanılabilir.", "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232": "İçeri aktarma bildirimi yalnızca bir ad alanının veya modülün en üst düzeyinde kullanılabilir.", "An_import_declaration_cannot_have_modifiers_1191": "İçeri aktarma bildirimi, değiştiricilere sahip olamaz.", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "Bir içe aktarma yolu yalnızca 'allowImportingTsExtensions' etkinleştirildiğinde '{0}' uzantısıyla bitebilir.", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "İçeri aktarma yolu '{0}' uzantısıyla bitemez. Bunun yerine '{1}' öğesini içeri aktarmayı deneyin.", "An_index_signature_cannot_have_a_rest_parameter_1017": "Dizin imzası bir rest parametresine sahip olamaz.", "An_index_signature_cannot_have_a_trailing_comma_1025": "Dizin imzasının sonunda virgül olamaz.", "An_index_signature_must_have_a_type_annotation_1021": "Dizin imzası bir tür açıklamasına sahip olmalıdır.", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "Bir örnek oluşturma ifadesinin ardından özellik erişimi gelemez.", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Bir arabirim, isteğe bağlı tür bağımsız değişkenleri ile yalnızca bir tanımlayıcıyı/tam adı genişletebilir.", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Arabirim, yalnızca statik olarak bilinen üyelere sahip bir nesne türünü veya nesne türlerinin bir kesişimini genişletebilir.", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "Bir arayüz '{0}' gibi ilkel bir türü genişletemez. Yalnızca diğer adlandırılmış nesne türlerini genişletebilir.", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Arabirim, '{0}' gibi temel bir türü genişletemez; arabirim yalnızca adlandırılmış türleri ve sınıfları genişletilebilir", "An_interface_property_cannot_have_an_initializer_1246": "Arabirim özelliği bir başlatıcıya sahip olamaz.", "An_iterator_must_have_a_next_method_2489": "Bir yineleyici 'next()' metoduna sahip olmalıdır.", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "JSX parçalarıyla @jsx pragması kullanılırken bir @jsxFrag pragması gerekir.", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "Nesne sabit değerinin aynı ada sahip birden fazla özelliği olamaz.", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "Nesne sabit değeri, aynı ada sahip bir özellik ve erişimciye sahip olamaz.", "An_object_member_cannot_be_declared_optional_1162": "Nesne üyesi, isteğe bağlı olarak bildirilemez.", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "Bir nesnenin '[Symbol.hasInstance]' yönteminin, bir 'instanceof' ifadesinin sağ tarafında kullanılabilmesi için bir boole değeri döndürmesi gereklidir.", "An_optional_chain_cannot_contain_private_identifiers_18030": "İsteğe bağlı bir zincir, özel tanımlayıcı içeremez.", "An_optional_element_cannot_follow_a_rest_element_1266": "İsteğe bağlı bir öğe, REST öğesini izleyemez.", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "'this' öğesinin dış değeri bu kapsayıcı tarafından gölgelenir.", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "Aşırı yükleme imzası, bir oluşturucu olarak bildirilemez.", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "Üs ifadesinin sol tarafında '{0}' işlecine sahip bir tek terimli ifadeye izin verilmez. İfadeyi parantez içine yazmayı düşünün.", "Annotate_everything_with_types_from_JSDoc_95043": "Her şeye JSDoc'tan türler ile not ekle", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "Ad alanındaki expando fonksiyonunun özellik türlerine not ekleyin", "Annotate_with_type_from_JSDoc_95009": "JSDoc türü ile not ekle", "Another_export_default_is_here_2753": "Başka bir dışarı aktarma varsayılanını burada bulabilirsiniz.", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "Tek bir karakterden daha fazlasıyla eşleşebilecek herhangi bir Unicode özelliği, yalnızca Unicode Kümeleri (v) bayrağı ayarlandığında kullanılabilir.", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "Tek bir karakterden fazlasıyla eşleşmesi muhtemel olan herhangi bir şey, negatif karakter sınıfı içinde geçersizdir.", "Are_you_missing_a_semicolon_2734": "Noktalı virgülünüz eksik mi?", "Argument_expression_expected_1135": "Bağımsız değişken ifadesi bekleniyor.", "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' seçeneğinin bağımsız değişkeni {1} olmalıdır.", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "'{0}' türü bağımsız değişkeni 'exactOptionalPropertyTypes: true' ile '{1}' türündeki parametreye atanamaz. Hedef özelliklerinin türlerine 'undefined' eklemeyi deneyin.", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "'{0}' rest parametresinin bağımsız değişkenleri sağlanmadı.", "Array_element_destructuring_pattern_expected_1181": "Dizi öğesi yok etme deseni bekleniyor.", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "Yayılma öğelerine sahip diziler --isolatedDeclarations ile çıkarsanamaz.", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "Onaylamalar, çağrı hedefindeki her adın açık bir tür ek açıklaması ile bildirilmesini gerektirir.", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "Onaylamalar, çağrı hedefinin bir tanımlayıcı veya tam ad olmasını gerektirir.", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "Özelliklerin işlevlere bildirilmeden atanması --isolatedDeclarations ile desteklenmez. Bu işleve atanan özellikler için açık bir bildirim ekleyin.", "Asterisk_Slash_expected_1010": "'*/' bekleniyor.", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "En az bir erişimcinin --isolatedDeclarations ile açık bir tür ek açıklamasına sahip olması gereklidir.", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "Genel kapsam genişletmeleri yalnızca dış modüllerde ya da çevresel modül bildirimlerinde doğrudan yuvalanabilir.", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "Genel kapsam genişletmeleri, zaten çevresel olan bir bağlamda göründükleri durumlar dışında 'declare' değiştiricisine sahip olmalıdır.", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "'{0}' projesinde otomatik tür bulma etkinleştirildi. '{2}' önbellek konumu kullanılarak '{1}' modülü için ek çözümleme geçişi çalıştırılıyor.", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "‘Await’ ifadesi bir sınıf statik bloğu içinde kullanılamaz.", "BUILD_OPTIONS_6919": "DERLEME SEÇENEKLERİ", "Backwards_Compatibility_6253": "Geriye Doğru Uyumluluk", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "Temel sınıf ifadelerinde sınıf türü parametrelerine başvuruda bulunulamaz.", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "ES2020'den düşük değerler hedeflendiğinde büyük tamsayı sabit değerleri kullanılamıyor.", "Binary_digit_expected_1177": "İkili sayı bekleniyor.", "Binding_element_0_implicitly_has_an_1_type_7031": "'{0}' bağlama öğesi, örtük olarak '{1}' türü içeriyor.", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "Bağlama öğeleri doğrudan --isolatedDeclarations ile dışa aktarılamaz.", "Block_scoped_variable_0_used_before_its_declaration_2448": "Blok kapsamlı değişken '{0}', bildirilmeden önce kullanıldı.", "Build_a_composite_project_in_the_working_directory_6925": "Çalışma dizininde kompozit proje oluşturun.", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "Güncel görünenler de dahil olmak üzere tüm projeleri derleyin.", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "Eskiyse, bir veya daha fazla projeyi ve bağımlılıklarını derleyin", "Build_option_0_requires_a_value_of_type_1_5073": "'{0}' derleme seçeneği, {1} türünde bir değer gerektiriyor.", "Building_project_0_6358": "'{0}' projesi derleniyor...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "Yerleşik yineleyiciler, 'any' yerine 'undefined' 'TReturn' türü ile örnekleniyor.", "COMMAND_LINE_FLAGS_6921": "KOMUT SATIRI BAYRAKLARI", "COMMON_COMMANDS_6916": "ORTAK KOMUTLAR", "COMMON_COMPILER_OPTIONS_6920": "ORTAK DERLEYİCİ SEÇENEKLERI", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "'{0}' ve '{1}' çağrı imzası dönüş türleri uyumsuz.", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "Dönüş türü ek açıklaması bulunmayan çağrı imzası, örtük olarak 'any' dönüş türüne sahip.", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "Bağımsız değişken içermeyen çağrı imzaları uyumsuz '{0}' ve '{1}' dönüş türlerine sahip.", + "Call_target_does_not_contain_any_signatures_2346": "Çağrı hedefi imza içermiyor.", "Can_only_convert_logical_AND_access_chains_95142": "Yalnızca mantıksal zincirler VE erişim zincirleri dönüştürülebilir", "Can_only_convert_named_export_95164": "Yalnızca adı belirtilen dışarı aktarma dönüştürülebilir", "Can_only_convert_property_with_modifier_95137": "Yalnızca değiştirici içeren özellik dönüştürülebilir", - "Can_only_convert_string_concatenations_and_string_literals_95154": "Yalnızca dize birleştirmelerini ve dize değişmezlerini dönüştürebilir", + "Can_only_convert_string_concatenation_95154": "Yalnızca dize birleştirmesi dönüştürülebilir", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "'{0}' bir ad alanı değil tür olduğundan '{0}.{1}' erişimi sağlanamıyor. '{0}[\"{1}\"]' değerini belirterek '{0}' içindeki '{1}' özelliğinin türünü almak mı istediniz?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "'{1}' etkinleştirildiğinde başka bir dosyadan '{0}' öğesine niteleme olmadan erişilemez. Bunun yerine '{2}' kullanın.", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "'{0}' etkinleştirildiğinde ortam sabit listelerine erişilemiyor.", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "'--isolatedModules' bayrağı sağlandığında çevresel const sabit listelerine erişilemiyor.", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "'{0}' oluşturucu türüne '{1}' oluşturucu türü atanamaz.", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "Bir soyut oluşturucu türü, soyut olmayan bir oluşturucu türüne atanamaz.", "Cannot_assign_to_0_because_it_is_a_class_2629": "Sınıf olduğundan '{0}' özelliğine atama yapılamıyor.", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "'{0}' için kitaplık tanımı bulunamıyor.", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "'{0}' için kitaplık tanımı bulunamıyor. Şunu mu demek istediniz: '{1}'?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "'{0}' modülü bulunamıyor. Modülü '.json' uzantısıyla içeri aktarmak için '--resolveJsonModule' kullanmayı deneyin.", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "'{0}' modülü bulunamıyor. 'moduleResolution' seçeneğini 'nodenext' olarak ayarlamak veya 'paths' seçeneğine diğer adlar eklemek mi istediniz?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "'{0}' modülü bulunamıyor. 'moduleResolution' seçeneğini 'node' olarak ayarlamak veya 'paths' seçeneğine diğer adlar eklemek mi istediniz?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "'{0}' modülü veya karşılık gelen tür bildirimleri bulunamıyor.", "Cannot_find_name_0_2304": "'{0}' adı bulunamıyor.", "Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' adı bulunamıyor. Bunu mu demek istediniz: '{1}'?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "'{0}' adı bulunamadı. Bunu zaman uyumsuz bir işleve mi yazmak istediniz?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "'{0}' adı bulunamıyor. Hedef kitaplığınızı değiştirmeniz mi gerekiyor? 'lib' derleyici seçeneğini '{1}' veya üzeri olarak değiştirmeyi deneyin.", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "'{0}' adı bulunamıyor. Hedef kitaplığınızı değiştirmeniz gerekiyor mu? 'lib' derleyici seçeneğini 'dom' içerecek şekilde değiştirmeyi deneyin.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "'{0}' adı bulunamıyor. Bun için tür tanımlarını yüklemeniz mi gerekiyor? `npm i --save-dev @types/bun` deneyin.", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868": "'{0}' adı bulunamıyor. Bun için tür tanımlarını yüklemeniz mi gerekiyor? 'npm i --save-dev @types/bun' komutunu deneyin ve ardından tsconfig dosyanızdaki type alanına 'bun' ekleyin.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "'{0}' adı bulunamıyor. Test Runner için tür tanımlarını yüklemeniz mi gerekiyor? Şunları deneyin: `npm i --save-dev @types/jest` veya `npm i --save-dev @types/mocha`.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "'{0}' adı bulunamıyor. Test Runner için tür tanımlarını yüklemeniz mi gerekiyor? Şunları deneyin: `npm i --save-dev @types/jest` veya `npm i --save-dev @types/mocha`. Ardından tsconfig dosyanızdaki türler alanına 'jest' veya 'mocha' ekleyin.", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "'{0}' adı bulunamıyor. jQuery için tür tanımlarını yüklemeniz mi gerekiyor? Şunu deneyin: `npm i --save-dev @types/jquery`.", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "Değerin yineleyicisinin 'next' metodu '{1}' türünü beklemesine rağmen dizi bozma her zaman '{0}' gönderdiğinden değer yinelenemiyor.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "Değerin yineleyicisinin 'next' metodu '{1}' türünü beklemesine rağmen dizi yayılması her zaman '{0}' gönderdiğinden değer yinelenemiyor.", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "Değerin yineleyicisinin 'next' metodu '{1}' türünü beklemesine rağmen for-of her zaman '{0}' gönderdiğinden değer yinelenemiyor.", - "Cannot_move_statements_to_the_selected_file_95183": "İfadeler seçilen dosyaya taşınamıyor", - "Cannot_move_to_file_selected_file_is_invalid_95179": "Dosyaya taşınamıyor, seçili dosya geçersiz", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "{0}' projesi için 'outFile' ayarlanmadığından başa eklenemiyor", "Cannot_read_file_0_5083": "'{0}' dosyası okunamıyor.", "Cannot_read_file_0_Colon_1_5012": "'{0}' dosyası okunamıyor: {1}.", "Cannot_redeclare_block_scoped_variable_0_2451": "Blok kapsamlı değişken '{0}', yeniden bildirilemiyor.", "Cannot_redeclare_exported_variable_0_2323": "Dışarı aktarılan '{0}' değişkeni yeniden bildirilemiyor.", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "Catch yan tümcesindeki '{0}' tanımlayıcısı yeniden bildirilemiyor.", "Cannot_start_a_function_call_in_a_type_annotation_1441": "Bir tür ek açıklamasında bir işlev çağrısı başlatılamıyor.", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "'{1}' dosyası okunurken hata oluştuğundan '{0}' projesinin çıkışı güncelleştirilemiyor", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "'--jsx' bayrağı sağlanmazsa JSX kullanılamaz.", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "'{0}' etkinleştirildiğinde, yalnızca tür veya tür ad alanında 'export import' kullanılamaz.", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "'--isolatedModules' bayrağı sağlandığında, bir tür veya yalnızca tür ad alanında 'export import' kullanılamaz.", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "'--module' değeri 'none' olduğunda içeri aktarma, dışarı aktarma veya modül genişletme kullanılamaz.", "Cannot_use_namespace_0_as_a_type_2709": "'{0}' ad alanı, tür olarak kullanılamaz.", "Cannot_use_namespace_0_as_a_value_2708": "'{0}' ad alanı, değer olarak kullanılamaz.", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "'extends' ifadesini 'implements' olarak değiştirin", "Change_spelling_to_0_90022": "Yazımı '{0}' olarak değiştir", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "Bildirilen ancak oluşturucuda ayarlanmamış sınıf özelliklerini denetleyin.", - "Check_side_effect_imports_6806": "Yan etki içeri aktarmalarını denetleyin.", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "'bind', 'call' ve 'apply' yöntemlerinin bağımsız değişkenlerinin özgün işlevle eşleşip eşleşmediğini denetle.", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "'{0}' ön ekinin '{1}' - '{2}' için eşleşen en uzun ön ek olup olmadığı denetleniyor.", "Circular_definition_of_import_alias_0_2303": "'{0}' içeri aktarma diğer adının döngüsel tanımı.", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "Sınıf bildirimi, '{0}' için aşırı yükleme listesi uygulayamaz.", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Sınıf bildirimlerinde birden fazla '@augments' veya '@extends' etiketi olamaz.", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Sınıf dekoratörleri statik özel tanımlayıcıyla kullanılamaz. Deneysel dekoratörü kaldırmayı düşünün.", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "Ana sınıf tarafından tanımlanan '{0}' sınıf alanına, alt sınıftan super aracılığıyla erişilemez.", "Class_name_cannot_be_0_2414": "Sınıf adı '{0}' olamaz.", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "Modül {0} ile ES5 hedeflendiğinde sınıf adı 'Object' olamaz.", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "'{0}' statik sınıf tarafı, '{1}' statik temel sınıf tarafını yanlış genişletiyor.", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "Komut Satırı Seçenekleri", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "Yapılandırma dosyasının yolu veya 'tsconfig.json' dosyasını içeren klasörün yolu belirtilen projeyi derleyin.", "Compiler_Diagnostics_6251": "Derleyici Tanılaması", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "'{0}' derleyici seçeneğine boş bir dize verilemez.", "Compiler_option_0_expects_an_argument_6044": "'{0}' derleyici seçeneği, bağımsız değişken bekliyor.", "Compiler_option_0_may_not_be_used_with_build_5094": "'--{0}' derleyici seçeneği, '--build' ile kullanılamaz.", "Compiler_option_0_may_only_be_used_with_build_5093": "'--{0}' derleyici seçeneği, yalnızca '--build' ile kullanılabilir.", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "Bileşik projeler, bildirim gösterimini devre dışı bırakamaz.", "Composite_projects_may_not_disable_incremental_compilation_6379": "Bileşik projeler artımlı derlemeyi devre dışı bırakamayabilir.", "Computed_from_the_list_of_input_files_6911": "Giriş dosyaları listesinden hesaplanır", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "Hesaplanan özellikler sayı veya dize değişmezleri, değişkenler veya --isolatedDeclarations içeren noktalı ifadeler olmalıdır.", "Computed_property_names_are_not_allowed_in_enums_1164": "Sabit listelerinde hesaplanan özellik adına izin verilmiyor.", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "Sınıf veya nesne değişmezlerindeki hesaplanan özellik adları --isolatedDeclarations ile çıkarsanamaz.", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "Dize değeri içeren üyelerin bulunduğu bir sabit listesinde hesaplanan değerlere izin verilmez.", "Concatenate_and_emit_output_to_single_file_6001": "Çıktıyı tek dosyaya birleştirin ve yayın.", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "İçe aktarmaları çözümlerken çözümleyiciye özgü varsayılanlara ek olarak ayarlanacak koşullar.", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "'{1}' ve '{2}' içinde '{0}' için çakışan tanımlar bulundu. Çakışmayı çözmek için bu kitaplığın belirli bir versiyonunu yüklemeniz önerilir.", "Conflicts_are_in_this_file_6201": "Çakışmalar bu dosyada bulunuyor.", "Consider_adding_a_declare_modifier_to_this_class_6506": "Bu sınıfa 'declare' değiştiricisi eklemeyi düşünün.", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "'{0}' ve '{1}' yapı imzası dönüş türleri uyumlu değil.", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "'{0}' öğesini eşlenen nesne türüne dönüştür", "Convert_all_const_to_let_95102": "Tüm 'const' ifadelerini 'let' ifadesine dönüştürün", "Convert_all_constructor_functions_to_classes_95045": "Tüm oluşturucu işlevleri sınıflara dönüştür", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "Bir değer olarak kullanılmayan tüm içeri aktarmaları yalnızca tür içeri aktarmalarına dönüştürün", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "Tüm geçersiz karakterleri HTML varlık koduna dönüştür", "Convert_all_re_exported_types_to_type_only_exports_1365": "Yeniden dışarı aktarılan tüm türleri yalnızca tür dışarı aktarmalarına dönüştürün", "Convert_all_require_to_import_95048": "Tüm 'require' öğelerini 'import' olarak dönüştür", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "Tümünü büyük tamsayı sayısal sabit değerlerine dönüştürün", "Convert_all_to_default_imports_95035": "Tümünü varsayılan içeri aktarmalara dönüştür", "Convert_all_type_literals_to_mapped_type_95021": "Tüm tür sabit değerlerini eşlenmiş türe dönüştür", - "Convert_all_typedef_to_TypeScript_types_95177": "Tüm typedef'leri TypeScript türüne dönüştür.", "Convert_arrow_function_or_function_expression_95122": "Ok işlevini veya işlev ifadesini dönüştür", "Convert_const_to_let_95093": "'const' ifadesini 'let' ifadesine dönüştürün", "Convert_default_export_to_named_export_95061": "Varsayılan dışarı aktarmayı adlandırılmış dışarı aktarmaya dönüştürün", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "İsteğe bağlı zincir ifadesine dönüştür", "Convert_to_template_string_95096": "Şablon dizesine dönüştürün", "Convert_to_type_only_export_1364": "Yalnızca tür dışarı aktarmaya dönüştürün", - "Convert_typedef_to_TypeScript_type_95176": "typedef'i TypeScript türüne dönüştürün.", + "Convert_to_type_only_import_1373": "Yalnızca tür içeri aktarmaya dönüştürün", "Corrupted_locale_file_0_6051": "{0} yerel ayar dosyası bozuk.", "Could_not_convert_to_anonymous_function_95153": "Anonim işleve dönüştürülemedi", "Could_not_convert_to_arrow_function_95151": "Arrow işlevine dönüştürülemedi", @@ -532,24 +480,19 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "'{0}' adı bulunamıyor. Şunu mu demek istediniz: '{1}'?", "Could_not_find_namespace_import_or_named_imports_95132": "Ad alanı içeri aktarması veya adlandırılmış içeri aktarmalar bulunamadı", "Could_not_find_property_for_which_to_generate_accessor_95135": "Erişimcinin oluşturulacağı özellik bulunamadı", - "Could_not_find_variable_to_inline_95185": "Satır içi değişken bulunamadı.", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "Uzantılara sahip '{0}' yolu çözümlenemedi: {1}.", "Could_not_write_file_0_Colon_1_5033": "'{0}' dosyası yazılamadı: {1}.", "Create_source_map_files_for_emitted_JavaScript_files_6694": "Yayılan JavaScript dosyaları için kaynak eşleme dosyaları oluşturun.", "Create_sourcemaps_for_d_ts_files_6614": "d.ts dosyaları için kaynak eşlemeleri oluşturun.", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "Çalışma dizininde önerilen ayarlarla ilgili bir tsconfig.js oluşturur.", "DIRECTORY_6038": "DİZİN", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "Bir karakter sınıfında ondalık kaçış dizilerine ve geri referanslara izin verilmez.", - "Decimals_with_leading_zeros_are_not_allowed_1489": "Başında sıfır bulunan ondalık sayılara izin verilmez.", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "Bildirim başka bir dosyadaki bildirimi genişlettiğinden serileştirilemez.", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "Bu dosyaya ilişkin bildirim, bu içe aktarmanın genişletmeler için korunmasını gerektirir. Bu, --isolatedDeclarations ile desteklenmez.", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "Bu dosya için bildirim gösterme, '{0}' özel adını kullanmayı gerektiriyor. Açık tür ek açıklaması, bildirim gösterme engelini kaldırabilir.", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "Bu dosya için bildirim gösterme, '{1}' modülündeki '{0}' özel adını kullanmayı gerektiriyor. Açık tür ek açıklaması, bildirim gösterme engelini kaldırabilir.", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "Bu parametre için bildirim gösterme, türüne örtülü olarak tanımsız eklenmesini gerektirir. Bu, --isolatedDeclarations ile desteklenmez.", "Declaration_expected_1146": "Bildirim bekleniyor.", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "Bildirim adı, yerleşik genel tanımlayıcı '{0}' ile çakışıyor.", "Declaration_or_statement_expected_1128": "Bildirim veya deyim bekleniyor.", - "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Bildirim veya deyim bekleniyor. Bu '=' bir ifade bloğunun ardından geldiğinden yapı çözümlü bir atama yazmayı düşünüyorsanız, tüm atamayı parantez içine almanız gerekebilir.", + "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809": "Bildirim veya deyim bekleniyor. Bu '=' bir deyim bloğunu izlediğinden yok etme ataması yazmak istiyorsanız tüm atamayı parantez içine almanız gerekebilir.", "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264": "Kesin atama onaylamaları olan bildirimlerde tür ek açıklamaları da olmalıdır.", "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263": "Başlatıcılara sahip bildirimlerde kesin atama onaylamaları olamaz.", "Declare_a_private_field_named_0_90053": "'{0}' adlı bir özel alan bildirin.", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "'{0}' statik özelliğini bildir", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "'{0}' dekoratör işlevi dönüş türü, '{1}' türüne atanamıyor.", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "Dekoratör işlevi dönüş türü '{0}', ancak 'void' veya 'any' olması bekleniyor.", - "Decorator_used_before_export_here_1486": "Dekoratör burada 'export' öğesinden önce kullanıldı.", "Decorators_are_not_valid_here_1206": "Buradaki dekoratörler geçerli değil.", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "Dekoratörler aynı ada sahip birden fazla get/set erişimcisine uygulanamaz.", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "Dekoratörler 'export' öncesinde de görünüyorlarsa, 'export' veya 'default export' sonrasında görünmeyebilirler.", + "Decorators_may_not_be_applied_to_this_parameters_1433": "Dekoratörler 'this' parametrelerine uygulanamaz.", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "Dekoratörler, özellik bildirimlerinin adından ve tüm anahtar sözcüklerinden önce gelmelidir.", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "Catch yan tümcesi değişkenlerini varsayılan olarak 'any' yerine 'unknown' olarak kabul et.", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "Modülün varsayılan dışarı aktarımı '{0}' özel adına sahip veya bu adı kullanıyor.", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "Varsayılan dışa aktarımlar --isolatedDeclarations ile çıkarsanamaz.", "Default_library_1424": "Varsayılan kitaplık", "Default_library_for_target_0_1425": "'{0}' hedefi için varsayılan kitaplık", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "Şu tanımlayıcıların tanımları başka bir dosyadaki tanımlarla çakışıyor: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "Oluşturulan kodda 'const enum' bildirimlerinin silinmesini devre dışı bırak.", "Disable_error_reporting_for_unreachable_code_6603": "Ulaşılamaz kod için hata raporlamayı devre dışı bırakın.", "Disable_error_reporting_for_unused_labels_6604": "Kullanılmayan etiketler için hata raporlamayı devre dışı bırakın.", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "Tam tür denetimini devre dışı bırakın (yalnızca kritik ayrıştırma ve yayma hataları rapor edilecektir).", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "Derlenen çıktıda '__extends' gibi özel yardımcı işlevler oluşturmayı devre dışı bırak.", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "Varsayılan lib.d.ts dahil olmak üzere kitaplık dosyalarının dahil edilmesini devre dışı bırakın.", "Disable_loading_referenced_projects_6235": "Başvurulan projelerin yüklenmesini devre dışı bırakın.", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "'import', 'require' veya '' ifadelerinin TypeScript'in projeye eklemesi gereken dosya sayısını artırmasına izin verme.", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Aynı dosyaya yönelik tutarsız büyük/küçük harflere sahip başvurulara izin verme.", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Derlenen dosya listesine üç eğik çizgi başvuruları veya içeri aktarılan modüller eklemeyin.", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "ECMAScript'in parçası olmayan çalışma zamanı yapılarına izin verme.", "Do_not_emit_comments_to_output_6009": "Çıktıya ait açıklamaları gösterme.", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "'@internal' ek açıklamasına sahip kod için bildirimleri gösterme.", "Do_not_emit_outputs_6010": "Çıktıları gösterme.", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "Erişilemeyen kod ile ilgili hataları bildirme.", "Do_not_report_errors_on_unused_labels_6074": "Kullanılmayan etiketler ile ilgili hataları bildirme.", "Do_not_resolve_the_real_path_of_symlinks_6013": "Simgesel bağlantıların gerçek yolunu çözümlemeyin.", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "'module' ayarına göre çıktı dosyasının formatında yazılmalarını sağlayarak, yalnızca tür olarak işaretlenmemiş hiçbir bir içe aktarma veya dışa aktarma işlemini dönüştürmeyin veya silmeyin.", "Do_not_truncate_error_messages_6165": "Hata iletilerini kesmeyin.", "Duplicate_function_implementation_2393": "Yinelenen işlev uygulaması.", "Duplicate_identifier_0_2300": "Yinelenen tanımlayıcı: '{0}'.", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "'{0}' türü için yinelenen dizin imzası var.", "Duplicate_label_0_1114": "'{0}' etiketi yineleniyor.", "Duplicate_property_0_2718": "'{0}' özelliğini yineleyin.", - "Duplicate_regular_expression_flag_1500": "Yinelenen normal ifade bayrağı.", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "Dinamik içeri aktarmanın tanımlayıcısı 'string' türünde olmalıdır, ancak buradaki tür: '{0}'.", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dinamik içeri aktarma yalnızca '--module' bayrağı 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18' veya 'nodenext' olarak ayarlandığında desteklenir.", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "Dinamik içe aktarmalar yalnızca bir modül belirticiyi ve isteğe bağlı bir dizi özniteliği bağımsız değişken olarak kabul edebilir", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "Dinamik içeri aktarmalar yalnızca '--module' seçeneği; 'esnext', 'node16', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında ikinci bir bağımsız değişkeni destekler.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "'Module', 'preserve' olarak ayarlandığında CommonJS modülünde ESM sözdizimine izin verilmez.", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "'verbatimModuleSyntax' etkinleştirildiğinde CommonJS modülünde ESM söz dizimi kullanılamaz.", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "'{0}.{1}' için yapılan her bildirim, değerinde farklılık gösteriyor, '{2}' beklenirken '{3}' verildi.", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "Dinamik içe aktarma yalnızca '--module' bayrağı 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16' veya 'nodenext' olarak ayarlandığında desteklenir.", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "Dinamik içeri aktarmalar, bağımsız değişken olarak yalnızca bir modül tanımlayıcısı ve isteğe bağlı bir onay kabul edebilir", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "Dinamik içe aktarma, yalnızca '--module' seçeneği 'esnext', 'node16' veya 'nodenext' olarak ayarlandığında ikinci bir argümanı destekler.", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "'{0}' birleşim türünün her bir üyesi yapı imzalarına sahip ancak bu imzaların hiçbiri birbiriyle uyumlu değil.", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "'{0}' birleşim türünün her bir üyesi imzalara sahip ancak bu imzaların hiçbiri birbiriyle uyumlu değil.", "Editor_Support_6249": "Düzenleyici Desteği", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "Tür denetimli JavaScript dosyalarında hata raporlamayı etkinleştirin.", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "Yerel değişkenler okunmadığında hata raporlamayı etkinleştir.", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "'this' için 'any' türü verildiğinde hata raporlamayı etkinleştir.", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Eski deneysel dekoratörler için deneysel desteği etkinleştirin.", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Bir bildirim dosyasının mevcut olması koşuluyla, herhangi bir uzantıya sahip dosyaların içe aktarılmasını etkinleştirin.", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "TC39 aşama 2 taslak dekoratörleri için deneysel desteği etkinleştirin.", "Enable_importing_json_files_6689": ".json dosyalarını içeri aktarmayı etkinleştirin.", - "Enable_lib_replacement_6808": "Kitaplık değişimini etkinleştir.", "Enable_project_compilation_6302": "Proje derlemeyi etkinleştir", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "İşlevlerde katı 'bind', 'call' ve 'apply' metotlarını etkinleştirin.", "Enable_strict_checking_of_function_types_6186": "İşlev türleri üzerinde katı denetimi etkinleştirin.", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "İçeri aktarmalarda büyük harfe çevirmenin doğru olduğundan emin olun.", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "Her dosyanın diğer içeri aktarmalara bağlı olmadan güvenli bir şekilde kaynaktan kaynağa derlenebildiğinden emin olun.", "Ensure_use_strict_is_always_emitted_6605": "'use strict' öğesinin her zaman yayıldığından emin olun.", - "Entering_conditional_exports_6413": "Koşullu dışarı aktarmalara giriliyor.", "Entry_point_for_implicit_type_library_0_1420": "'{0}' örtük tür kitaplığı için giriş noktası", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "'{1}' paket kimliğine sahip '{0}' örtük tür kitaplığı için giriş noktası", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "compilerOptions içinde belirtilen '{0}' tür kitaplığının giriş noktası", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "Sabit listesi bildirimleri yalnızca ad alanı veya diğer sabit listesi bildirimleri ile birleştirilebilir.", "Enum_declarations_must_all_be_const_or_non_const_2473": "Sabit listesi bildirimlerinin tümü const veya const olmayan değerler olmalıdır.", "Enum_member_expected_1132": "Sabit listesi üyesi bekleniyor.", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "Değişmez sayısal bir üyeyi takip eden numaralandırma üyesi, 'isolatedModules' etkinleştirildiğinde bir başlatıcıya sahip olmalıdır.", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "Sabit listesi üyesi başlatıcıları, --isolatedDeclarations ile dış simgelere başvurular olmadan hesaplanabilir olmalıdır.", "Enum_member_must_have_initializer_1061": "Sabit listesi üyesi bir başlatıcıya sahip olmalıdır.", "Enum_name_cannot_be_0_2431": "Sabit listesi adı '{0}' olamaz.", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "Sabit listesi türü '{0}', sabit değer olmayan başlatıcılara sahip üyeler içeriyor.", "Errors_Files_6041": "Hata Dosyaları", - "Escape_sequence_0_is_not_allowed_1488": "'{0}' kaçış dizisine izin verilmiyor.", "Examples_Colon_0_6026": "Örnekler: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "'{0}' ve '{1}' türlerini karşılaştırırken aşırı karmaşıklık.", "Excessive_stack_depth_comparing_types_0_and_1_2321": "Aşırı yığın derinliği, '{0}' ve '{1}' türlerini karşılaştırıyor.", - "Exiting_conditional_exports_6416": "Koşullu dışarı aktarmalardan çıkılıyor.", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "{0}-{1} tür bağımsız değişkeni bekleniyordu; bunları bir '@extends' etiketiyle sağlayın.", "Expected_0_arguments_but_got_1_2554": "{0} bağımsız değişken bekleniyordu ancak {1} alındı.", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "{0} bağımsız değişken bekleniyordu ancak {1} bağımsız değişken alındı. Tür bağımsız değişkeninizdeki 'void' operatörünü 'Promise'e eklemeyi mi unuttunuz?", "Expected_0_type_arguments_but_got_1_2558": "{0} tür bağımsız değişkeni bekleniyordu ancak {1} alındı.", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "{0} tür bağımsız değişkeni bekleniyordu; bunları bir '@extends' etiketiyle sağlayın.", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "1 bağımsız değişken bekleniyordu ancak 0 bağımsız değişken var. Bağımsız değişkenler olmadan çağrılabilen bir 'resolve' oluşturmak için 'new Promise()' çağrısında bir JSDoc ipucu bulunması gerekir.", - "Expected_a_Unicode_property_name_1523": "Unicode özellik adı bekleniyordu.", - "Expected_a_Unicode_property_name_or_value_1527": "Unicode özellik adı veya değeri bekleniyordu.", - "Expected_a_Unicode_property_value_1525": "Bir Unicode özellik değeri bekleniyordu.", - "Expected_a_capturing_group_name_1514": "Yakalama grubu adı bekleniyordu.", - "Expected_a_class_set_operand_1520": "Bir sınıf kümesi işleneni bekleniyordu.", "Expected_at_least_0_arguments_but_got_1_2555": "En az {0} bağımsız değişken bekleniyordu ancak {1} alındı.", "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}' için ilgili JSX kapanış etiketi bekleniyor.", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX parçasına karşılık gelen kapanış etiketi bekleniyordu.", "Expected_for_property_initializer_1442": "Özellik başlatıcısı için '=' bekleniyor.", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "'package.json' dosyasındaki '{0}' alanının '{1}' türünde olması bekleniyordu ancak '{2}' alındı.", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "Dekoratörler için sunulan deneysel destek özelliği, sonraki sürümlerde değiştirilebilir. Bu uyarıyı kaldırmak için 'tsconfig' veya 'jsconfig' dosyanızdaki 'experimentalDecorators' seçeneğini ayarlayın.", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "Açık olarak belirtilen modül çözümleme türü: '{0}'.", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' seçeneği 'es2016' veya üzeri olarak belirlenmedikçe 'bigint' değerlerinde üs olarak gösterme yapılamaz.", "Export_0_from_module_1_90059": "'{1}' modülünden '{0}' öğesini dışarı aktar", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "Dışarı aktarılan '{0}' değişkeni, '{1}' özel adına sahip veya bu adı kullanıyor.", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "Modül genişletmelerinde dışarı aktarmalara ve dışarı aktarma atamalarına izin verilmez.", "Expression_expected_1109": "İfade bekleniyor.", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "İfadenin dekoratör olarak kullanılabilmesi için parantez içine alınması gereklidir.", "Expression_or_comma_expected_1137": "İfade veya virgül bekleniyor.", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "İfade, temsil edilemeyecek kadar büyük olan bir demet türü oluşturuyor.", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "İfade, temsili çok karmaşık olan bir birleşim türü oluşturuyor.", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "İfade, derleyicinin temel sınıf başvurusunu yakalamak için kullandığı '_super' öğesi olarak çözümleniyor.", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "İfade, derleyicinin 'new.target' meta-özellik başvurusu yakalamak için kullandığı '_newTarget' değişken bildirimi olarak çözümleniyor.", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "İfade, derleyicinin 'this' başvurusunu yakalamak için kullandığı '_this' değişken bildirimi olarak çözümleniyor.", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "İfade türü --isolatedDeclarations ile çıkarsanamaz.", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Extends yan tümcesi --isolatedDeclarations içeren bir ifade içeremez.", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "Çıkarsanan '{0}' türü için Extends yan tümcesi '{1}' özel adı içeriyor veya kullanıyor.", - "Extract_base_class_to_variable_90064": "Temel sınıfı değişken olarak ayıkla", - "Extract_binding_expressions_to_variable_90066": "Bağlayıcı ifadeleri değişkene ayıkla", "Extract_constant_95006": "Sabiti ayıkla", - "Extract_default_export_to_variable_90065": "Varsayılan dışarı aktarmayı değişken olarak ayıkla", "Extract_function_95005": "İşlevi ayıkla", "Extract_to_0_in_1_95004": "{1} içindeki {0} konumuna ayıkla", "Extract_to_0_in_1_scope_95008": "{1} kapsamındaki {0} konumuna ayıkla", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "Arabirime ayıkla", "Extract_to_type_alias_95078": "Tür diğer adına ayıkla", "Extract_to_typedef_95079": "typedef'e ayıkla", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "Değişken olarak ayıkla ve 'typeof {0} olarak {0}' ile değiştir", "Extract_type_95077": "Türü ayıkla", "FILE_6035": "DOSYA", "FILE_OR_DIRECTORY_6040": "DOSYA VEYA DİZİN", - "Failed_to_find_peerDependency_0_6283": "peerDependency '{0}' bulunamadı.", - "Failed_to_resolve_under_condition_0_6415": "'{0}' koşulu altında çözümlenemedi.", + "Failed_to_parse_file_0_Colon_1_5014": "'{0}' dosyası ayrıştırılamadı: {1}.", "Fallthrough_case_in_switch_7029": "switch deyiminde sonraki ifadeye geçiş.", "File_0_does_not_exist_6096": "'{0}' adlı dosya yok.", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "'{0}' dosyası, önceden önbelleğe alınan aramalara göre mevcut değil.", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "'{0}' adlı dosya yok; bunu bir çözümleme sonucu olarak kullanın.", "File_0_exists_according_to_earlier_cached_lookups_6239": "'{0}' dosyası, önceden önbelleğe alınan aramalara göre mevcut.", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "'{0}' adlı dosya var; bunu bir çözümleme sonucu olarak kullanın.", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "'{0}' dosyası desteklenmeyen uzantıya sahip. Yalnızca şu uzantılar desteklenir: {1}.", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "'{0}' dosyasının desteklenmeyen bir uzantısı olduğundan dosya atlanıyor.", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "'{0}' dosyası bir JavaScript dosyasıdır. 'allowJs' seçeneğini mi etkinleştirmek istediniz?", "File_0_is_not_a_module_2306": "'{0}' dosyası bir modül değil.", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "'{0}' dosyası, '{1}' projesinin dosya listesinde değil. Projelerin tüm dosyaları listelemesi veya bir 'include' deseni kullanması gerekir.", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "'{0}' dosyası, 'rootDir' '{1}' dizininde değil. 'rootDir' dizininin tüm kaynak dosyalarını içermesi bekleniyor.", "File_0_not_found_6053": "'{0}' dosyası bulunamadı.", "File_Management_6245": "Dosya Yönetimi", - "File_appears_to_be_binary_1490": "Dosya ikili gibi görünüyor.", "File_change_detected_Starting_incremental_compilation_6032": "Dosya değişikliği algılandı. Artımlı derleme başlatılıyor...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "'{0}', \"type\" alanına sahip olmadığından dosya CommonJS modülüdür", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "'{0}', değeri \"module\" olmayan \"type\" alanına sahip olduğundan dosya CommonJS modülüdür", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "Dosya, '{0}' proje başvuru kaynağının çıkışıdır", "File_is_source_from_referenced_project_specified_here_1416": "Burada dosya, belirtilmiş başvurulan projenin kaynağıdır.", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "'{0}' dosya adının, zaten eklenmiş olan '{1}' dosya adından tek farkı, büyük/küçük harf kullanımı.", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "Dosya adı '{0}', '{1}' uzantısına sahip - bunun yerine '{2}' aranıyor.", "File_name_0_has_a_1_extension_stripping_it_6132": "'{0}' dosya adında '{1}' uzantısı var; uzantı ayrılıyor.", "File_redirects_to_file_0_1429": "Dosya, '{0}' dosyasına yeniden yönlendiriyor", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "Dosya belirtimi, özyinelemeli dizin joker karakterinden ('**') sonra görünen bir üst dizin ('..') içeremez: '{0}'.", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "'await' deyiminin eksik olabileceği tüm ifadeleri düzeltin", "Fix_all_implicit_this_errors_95107": "Tüm örtük 'this' hatalarını onar", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "Asenkron işlevlerin tüm hatalı dönüş türlerini onar", - "Fix_all_with_type_only_imports_95182": "Tümünü yalnızca tür içeri aktarmaları ile düzelt", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'For await' döngüleri bir sınıf statik bloğu içinde kullanılamaz.", "Found_0_errors_6217": "{0} hata bulundu.", "Found_0_errors_Watching_for_file_changes_6194": "{0} hata bulundu. Dosya değişiklikleri izleniyor.", "Found_0_errors_in_1_files_6261": "{1} dosyada {0} hata bulundu.", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "Aynı dosyada {0} hata bulundu, başlangıç: {1}", "Found_1_error_6216": "1 hata bulundu.", "Found_1_error_Watching_for_file_changes_6193": "1 hata bulundu. Dosya değişiklikleri izleniyor.", - "Found_1_error_in_0_6259": "Şurada 1 hata bulundu: {0}", + "Found_1_error_in_1_6259": "Şurada 1 hata bulundu: {1}", "Found_package_json_at_0_6099": "'{0}' içinde 'package.json' bulundu.", - "Found_peerDependency_0_with_1_version_6282": "'{1}' sürümüne sahip peerDependency '{0}' bulundu.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "Katı modda 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmiyor.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "Katı modda 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmiyor. Sınıf tanımları otomatik olarak katı moddadır.", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "Katı modda 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmiyor. Modüller otomatik olarak katı moddadır.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "Katı modda 'ES3' veya 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmez.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "Katı modda 'ES3' veya 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmez. Sınıf tanımları otomatik olarak katı moddadır.", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "Katı modda 'ES3' veya 'ES5' hedeflenirken blokların içinde işlev bildirimlerine izin verilmez. Modüller otomatik olarak katı moddadır.", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "Dönüş türü ek açıklaması bulunmayan işlev ifadesi, örtük olarak '{0}' dönüş türüne sahip.", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "İşlev uygulaması yok veya bildirimden hemen sonra gelmiyor.", "Function_implementation_name_must_be_0_2389": "İşlev uygulamasının adı '{0}' olmalıdır.", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "Dönüş türü ek açıklamasına sahip olmadığından ve doğrudan veya dolaylı olarak dönüş ifadelerinden birinde kendine başvurulduğundan işlev, örtük olarak 'any' türüne sahiptir.", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "İşlevin sonunda return deyimi eksik ve dönüş türü 'undefined' içermiyor.", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "İşlevin --isolatedDeclarations ile açık bir dönüş türü ek açıklamasına sahip olması gerekir.", "Function_not_implemented_95159": "İşlev uygulanmadı.", "Function_overload_must_be_static_2387": "İşlev aşırı yüklemesi statik olmalıdır.", "Function_overload_must_not_be_static_2388": "İşlev aşırı yüklemesi statik olmamalıdır.", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "Olay izleme ve tür listesi oluşturur.", "Generates_corresponding_d_ts_file_6002": "İlgili '.d.ts' dosyasını oluşturur.", "Generates_corresponding_map_file_6043": "İlgili '.map' dosyasını oluşturur.", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "Oluşturucu örtük olarak '{0}' bekletme türüne sahip. Bir dönüş türü ek açıklaması sağlamayı deneyin.", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "Oluşturucu herhangi bir değer sağlamadığından örtük olarak '{0}' türüne sahip. Bir dönüş türü ek açıklaması sağlamayı deneyin.", "Generators_are_not_allowed_in_an_ambient_context_1221": "Çevresel bağlamda oluşturuculara izin verilmez.", "Generic_type_0_requires_1_type_argument_s_2314": "'{0}' genel türü, {1} tür bağımsız değişkenini gerektiriyor.", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "'{0}' genel türü {1} ile {2} arasında bağımsız değişken gerektirir.", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "Tanımlayıcı bekleniyor.", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Tanımlayıcı bekleniyor. '__esModule', ECMAScript modülleri dönüştürülürken, dışarı aktarılan bir işaretçi olarak ayrılmış.", "Identifier_or_string_literal_expected_1478": "Tanımlayıcı veya sabit değerli dize bekleniyor.", - "Identifier_string_literal_or_number_literal_expected_1496": "Tanımlayıcı, sabit değerli dize veya sabit değerli sayı bekleniyor.", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' paketi bu modülü gerçekten kullanıma sunarsa, 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' öğesini düzeltmek için bir çekme isteği göndermeyi deneyin", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "‘{0}’ paketi bu modülü fiili olarak kullanıma sunuyorsa `'{1}' modülünü bildir;` ifadesini içeren yeni bir bildirim (.d.ts) dosyası eklemeyi deneyin", "Ignore_this_error_message_90019": "Bu hata iletisini yoksay", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "'{0}' arabirimini uygula", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "'{1}' özel adına sahip veya bu adı kullanan '{0}' dışarı aktarılan sınıfının yan tümcesini uygular.", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "'symbol' öğesinin örtük olarak 'string' türüne dönüştürülmesi işlemi çalışma zamanında başarısız olur. Bu ifadeyi 'String(...)' içinde sarmalamayı düşünün.", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "'{0}' içeri aktarması bu dosyada kullanılan genel değerle çakışıyor, bu nedenle 'isolatedModules' etkinken yalnızca tür içeri aktarması ile bildirilmelidir.", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "'{0}' içeri aktarması yerel değerle çakışıyor, bu nedenle 'isolatedModules' etkinken yalnızca tür içeri aktarması ile bildirilmelidir.", "Import_0_from_1_90013": "'{0}' öğesini \"{1}\" kaynağından içeri aktar", "Import_assertion_values_must_be_string_literal_expressions_2837": "İçeri aktarma onaylama değerleri, dize sabit ifadeleri olmalıdır.", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "CommonJS 'require' çağrılarına derlenen deyimler için içeri aktarma onaylamalarına izin verilmiyor.", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "İçeri aktarma onayları, yalnızca '--module' seçeneği 'esnext', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında desteklenir.", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "Commonjs 'require' çağrılarına çevrilen deyimler için içeri aktarma onaylamalarına izin verilmez.", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "İçeri aktarma onayları, yalnızca '--module' seçeneği 'esnext' veya 'nodenext' olarak ayarlandığında desteklenir.", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "İçeri aktarma onayları, yalnızca tür içeri aktarmaları veya dışarı aktarmaları ile kullanılamaz.", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "İçeri aktarma onaylamaları içeri aktarma öznitelikleriyle değiştirildi. 'assert' yerine 'with' kullanın.", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "ECMAScript modülleri hedeflenirken içeri aktarma ataması kullanılamaz. Bunun yerine 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' veya başka bir modül biçimi kullanmayı deneyin.", - "Import_attribute_values_must_be_string_literal_expressions_2858": "İçeri aktarma öznitelik değerleri, sabit değerli dize ifadeleri olmalıdır.", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "CommonJS 'require' çağrılarına derlenen deyimler üzerinde içeri aktarma özniteliklerine izin verilmiyor.", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "İçeri aktarma öznitelikleri, yalnızca '--module' seçeneği 'esnext', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında desteklenir.", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "İçeri aktarma öznitelikleri, yalnızca tür içeri aktarmaları veya dışarı aktarmaları ile kullanılamaz.", "Import_declaration_0_is_using_private_name_1_4000": "'{0}' içeri aktarma bildirimi, '{1}' özel adına sahip veya bu adı kullanıyor.", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "İçeri aktarma bildirimi, yerel '{0}' bildirimiyle çakışıyor.", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "Ad alanındaki içeri aktarma bildirimleri bir modüle başvuramaz.", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "'{2}' paket kimliğine sahip '{1}' dosyasından {0} aracılığıyla içeri aktarıldı", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "compilerOptions içinde belirtildiği gibi 'importHelpers' öğesini içeri aktarmak için '{2}' paket kimliğine sahip '{1}' dosyasından {0} aracılığıyla içeri aktarıldı", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "'jsx' ve 'jsxs' fabrika işlevlerini içeri aktarmak için '{2}' paket kimliğine sahip '{1}' dosyasından {0} aracılığıyla içeri aktarıldı", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "Bir JSON dosyasının ECMAScript modülüne aktarılması, 'module' değeri '{0}' olarak ayarlandığında 'type: \"json\"' içeri aktarma özniteliği gerektirir.", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "Modül genişletmelerinde içeri aktarmalara izin verilmez. Bunları, kapsayan dış modüle taşımanız önerilir.", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "Çevresel sabit listesi bildirimlerinde, üye başlatıcısı sabit ifade olmalıdır.", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "Birden fazla bildirime sahip sabit listesinde yalnızca bir bildirim ilk sabit listesi öğesine ait başlatıcıyı atlayabilir.", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "Yayılan JavaScript içine kaynak eşleme dosyalarını ekleyin.", "Includes_imports_of_types_referenced_by_0_90054": "'{0}' tarafından başvurulan türlerin içeri aktarmalarını içerir", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "--watch dahil olmak üzere -w, dosya değişiklikleri için geçerli projeyi izlemeye başlayacak. Bir kez ayarlandıktan sonra, izleme modunu şununla yapılandırabilirsiniz:", - "Incomplete_quantifier_Digit_expected_1505": "Eksik niceleyici. Sayı bekleniyordu.", "Index_signature_for_type_0_is_missing_in_type_1_2329": "'{0}' türündeki dizin imzası '{1}' türünde yok.", "Index_signature_in_type_0_only_permits_reading_2542": "'{0}' türündeki dizin imzası yalnızca okumaya izin veriyor.", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "'{0}' birleştirilmiş bildirimindeki bildirimlerin tümü dışarı aktarılmış veya yerel olmalıdır.", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "Parametre türleri için kullanımdan çıkarım yap", "Infer_this_type_of_0_from_usage_95080": "Kullanımdan '{0}' öğesinin 'this' türünü çıkarsa", "Infer_type_of_0_from_usage_95011": "'{0}' türü için kullanımdan çıkarım yap", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "Sınıf ifadelerinden çıkarım, --isolatedDeclarations ile desteklenmiyor.", "Initialize_property_0_in_the_constructor_90020": "Oluşturucu içinde '{0}' özelliğini başlat", "Initialize_static_property_0_90021": "'{0}' statik özelliğini başlat", "Initializer_for_property_0_2811": "'{0}' özelliği için başlatıcı", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "'{0}' örnek üyesi değişkeninin başlatıcısı, oluşturucuda bildirilen '{1}' tanımlayıcısına başvuramaz.", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "Başlatıcı bu bağlama öğesi için bir değer sağlamıyor ve bağlama öğesi varsayılan değere sahip değil.", "Initializers_are_not_allowed_in_ambient_contexts_1039": "Çevresel bağlamlarda başlatıcılara izin verilmez.", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "Bir TypeScript projesi başlatır ve bir tsconfig.json dosyası oluşturur.", - "Inline_variable_95184": "Satır içi değişken", "Insert_command_line_options_and_files_from_a_file_6030": "Dosyadaki komut satırı seçeneklerini ve dosyaları ekleyin.", "Install_0_95014": "'{0}' yükle", "Install_all_missing_types_packages_95033": "Tüm eksik tür paketlerini yükle", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Genişletmedeki modül adı geçersiz; '{0}' adlı modül bulunamıyor.", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Yeni ifadeden geçersiz isteğe bağlı zincir. '{0}()' çağrısı mı yapmak istediniz?", "Invalid_reference_directive_syntax_1084": "Geçersiz 'reference' yönergesi söz dizimi.", - "Invalid_syntax_in_decorator_1498": "Dekoratörde geçersiz söz dizimi.", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Geçersiz '{0}' kullanımı. Bu ifade bir sınıf statik bloğu içinde kullanılamaz.", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Geçersiz '{0}' kullanımı. Modüller otomatik olarak katı moddadır.", "Invalid_use_of_0_in_strict_mode_1100": "Katı modda geçersiz '{0}' kullanımı.", - "Invalid_value_for_ignoreDeprecations_5103": "'--ignoreDeprecations' için geçersiz değer.", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory' değeri geçersiz. '{0}' geçerli bir tanımlayıcı veya tam ad değil.", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory' değeri geçersiz. '{0}' geçerli bir tanımlayıcı veya tam ad değil.", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace' için geçersiz değer. '{0}' geçerli bir tanımlayıcı değil.", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "'{0}' öğe türü geçerli bir JSX öğesi değil.", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "'{0}' örnek türü geçerli bir JSX öğesi değil.", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "'{0}' dönüş türü geçerli bir JSX öğesi değil.", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "'{0}' türü geçerli bir JSX öğe türü değil.", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}', 'extends {2}' yan tümcesiyle eşleşmiyor.", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc '@{0}' bir sınıfa eklenmemiş.", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' yalnızca bir imzanın son parametresi içinde görünebilir.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' etiketinin adı '{0}' ancak bu ada sahip bir parametre yok.", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' etiketi '{0}' adına sahip ancak bu ada sahip bir parametre yok. Bir dizi türü olsaydı 'arguments' ile eşleşirdi.", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef, TypeScript türüne dönüştürülmüş olabilir.", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' etiketi bir tür ek açıklamasına sahip olmalıdır veya sonrasında '@property' ya da '@member' etiketlerinden biri gelmelidir.", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedef’leri, TypeScript türlerine dönüştürülmüş olabilir.", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc türleri yalnızca belge açıklamalarının içinde kullanılabilir.", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc türleri TypeScript türlerine taşınabilir.", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "JSX özniteliklerine yalnızca boş olmayan 'expression' ifadesi atanabilir.", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "Eklenecek tür tanımlarının alınacağı klasörlerin listesi.", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "Birleştirilmiş içerikleri, çalışma zamanında proje yapısını temsil eden kök klasörlerin listesi.", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "'{1}' kök dizininden '{0}' yükleniyor; aday konumu: '{2}'.", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "'node_modules' klasöründen '{0}' modülü yükleniyor, hedef dosya türleri: {1}.", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "Modül, dosya/klasör olarak yükleniyor; aday modül konumu '{0}'; hedef dosya türleri: {1}.", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "'node_modules' klasöründen '{0}' modülü yükleniyor, hedef dosya türü '{1}'.", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "Modül, dosya/klasör olarak yükleniyor; aday modül konumu '{0}'; hedef dosya türü '{1}'.", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "Yerel ayar, veya - biçiminde olmalıdır. Örneğin, '{0}' veya '{1}'.", "Log_paths_used_during_the_moduleResolution_process_6706": "'moduleResolution' işlemi sırasında kullanılan yolları günlüğe kaydet.", "Longest_matching_prefix_for_0_is_1_6108": "'{0}' için eşleşen en uzun ön ek: '{1}'.", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Dize, sayı veya simge yerine yalnızca dönüş dizelerinin anahtarını oluşturun. Eski seçenek.", "Make_super_call_the_first_statement_in_the_constructor_90002": "Oluşturucudaki ilk deyime 'super()' tarafından çağrı yapılmasını sağla", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Eşleştirilmiş nesne türü örtük olarak 'any' şablon türüne sahip.", - "Mark_array_literal_as_const_90070": "Sabit değerli dizileri const olarak işaretle", "Matched_0_condition_1_6403": "'{0}' koşulu '{1}' eşleşti.", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Varsayılan '**/*' ekleme deseniyle eşleşti", "Matched_by_include_pattern_0_in_1_1407": "'{1}' içindeki '{0}' ekleme desenine göre eşleştirildi", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "'{0}' metodu abstract olarak işaretlendiğinden bir uygulamaya sahip olamaz.", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "Dışarı aktarılan arabirimin '{0}' metodu, '{2}' özel modülündeki '{1}' adına sahip veya bu adı kullanıyor.", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "Dışarı aktarılan arabirimin '{0}' metodu, '{1}' özel adına sahip veya bu adı kullanıyor.", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "Metodun --isolatedDeclarations ile açık bir dönüş türü ek açıklamasına sahip olması gerekir.", "Method_not_implemented_95158": "Metot uygulanmadı.", "Modifiers_cannot_appear_here_1184": "Değiştiriciler burada görüntülenemez.", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "'{0}' modülü yalnızca varsayılan olarak '{1}' bayrağı kullanılarak içeri aktarılabilir", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "'{0}' modülünün dışarı aktarılmış '{1}' üyesi yok. Bunun yerine 'import {1} from {0}' kullanmak mı istediniz?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "'{0}' modülü, aynı ada sahip bir yerel bildirim tarafından gizleniyor.", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "'{0}' modülü 'export =' kullanıyor ve 'export *' ile birlikte kullanılamaz.", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "'{1}' dosyası değiştirilmediğinden '{0}' modülü, bu dosyada bildirilen çevresel modül olarak çözümlendi.", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "'{0}' modülü, '{1}' dosyasında yerel olarak bildirilmiş çevresel modül olarak çözümlendi.", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "'{0}' modülü '{1}' olarak çözümlendi, ancak '--allowArbitraryExtensions' ayarlanmadı.", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "'{0}' modülü '{1}' olarak çözüldü ancak '--jsx' ayarlanmadı.", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "'{0}' modülü '{1}' olarak çözümlendi ancak '--resolveJsonModule' kullanılmadı.", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "Modül bildirim adları yalnızca ' veya \" tırnak içine alınmış dizeleri kullanabilir.", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "'rootDirs' kullanarak modül çözümleme başarısız oldu.", "Modules_6244": "Modüller", "Move_labeled_tuple_element_modifiers_to_labels_95117": "Etiketlenmiş demet öğesi değiştiricilerini etiketlere taşı", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "Varsayılan dışarı aktarmadaki ifadeyi bir değişkene taşıyın ve bir tür ek açıklaması ekleyin.", "Move_to_a_new_file_95049": "Yeni bir dosyaya taşı", - "Move_to_file_95178": "Dosyaya taşı", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "Birbirini izleyen birden çok sayısal ayırıcıya izin verilmez.", "Multiple_constructor_implementations_are_not_allowed_2392": "Birden çok oluşturucu uygulamasına izin verilmez.", "NEWLINE_6061": "YENİ SATIR", "Name_is_not_valid_95136": "Ad geçerli değil", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "Adlandırılmış yakalama grupları yalnızca 'ES2018' veya üzeri hedeflenirken kullanılabilir.", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "Aynı ada sahip adlandırılmış yakalama grupları birbirini dışlamalıdır.", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "'module', '{0}' olarak ayarlandığında JSON dosyasından ECMAScript modülüne adlandırılmış içeri aktarmalara izin verilmez.", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "'{1}' ve '{2}' türündeki '{0}' adlı özellikler aynı değil.", "Namespace_0_has_no_exported_member_1_2694": "'{0}' ad alanında dışarı aktarılan '{1}' üyesi yok.", "Namespace_must_be_given_a_name_1437": "Ad alanına bir ad verilmesi gerekir.", "Namespace_name_cannot_be_0_2819": "Ad alanı “{0}” olamaz.", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "'{0}' etkinken genel betik dosyalarında ad alanlarına izin verilmiyor. Bu dosyanın genel bir betik olması amaçlanmamışsa, 'moduleDetection'i 'force' olarak ayarlayın veya boş bir 'export {}' deyimi ekleyin.", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "'this' parametrelerine ne dekoratörler ne de değiştiriciler uygulanamaz.", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "Hiçbir temel oluşturucu, belirtilen tür bağımsız değişkeni sayısına sahip değil.", "No_constituent_of_type_0_is_callable_2755": "'{0}' türünde çağrılabilir bileşen yok.", "No_constituent_of_type_0_is_constructable_2759": "'{0}' türünde oluşturulabilir bileşen yok.", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "Bu çağrıyla eşleşen aşırı yükleme yok.", "No_type_could_be_extracted_from_this_type_node_95134": "Bu tür düğümünden tür ayıklanamadı", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "'{0}' toplu özelliği için kapsamda değer yok. Bir değer tanımlayın ya da bir başlatıcı sağlayın.", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Soyut olmayan '{0}' sınıfı, '{2}' sınıfından devralınan {1} soyut üyesini uygulamaz.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "Şu '{1}' üyelerinde soyut olmayan sınıf '{0}' uygulamalar eksik: {2}.", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "Şu '{1}' üyelerinde soyut olmayan sınıf '{0}' uygulamalar eksik: {2} ve {3} tane daha.", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "Soyut olmayan '{0}' sınıfı, '{2}' sınıfından devralınan '{1}' soyut üyesini uygulamıyor.", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "Soyut olmayan sınıf ifadesi, '{1}' sınıfından devralınan '{0}' soyut üyesini uygulamıyor.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "Şu '{0}' üyelerinde soyut olmayan sınıf ifadesinin uygulamaları eksik: {1}.", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "Şu '{0}' üyelerinde soyut olmayan sınıf ifadesinde uygulamalar eksik: {1} ve {2} tane daha.", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "Null olmayan onaylamalar yalnızca TypeScript dosyalarında kullanılabilir.", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "'baseUrl' ayarlanmadığında göreli olmayan yollara izin verilmez. Başına './' koymayı deneyin", "Non_simple_parameter_declared_here_1348": "Basit olmayan parametre burada bildirildi.", "Not_all_code_paths_return_a_value_7030": "Tüm kod yolları bir değer döndürmez.", "Not_all_constituents_of_type_0_are_callable_2756": "'{0}' türündeki tüm bileşenler çağrılabilir değil.", "Not_all_constituents_of_type_0_are_constructable_2760": "'{0}' türündeki tüm bileşenler oluşturulabilir değil.", - "Numbers_out_of_order_in_quantifier_1506": "Sayılar niceleyicide sıranın dışında.", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "2^53 veya üzeri mutlak değerlere sahip sayısal sabit değerler, tamsayı olarak doğru bir şekilde temsil edilemeyecek kadar büyüktür.", "Numeric_separators_are_not_allowed_here_6188": "Burada sayısal ayırıcılara izin verilmez.", "Object_is_of_type_unknown_2571": "Nesne 'unknown' türünde.", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "Nesne sabit değeri yalnızca bilinen özellikleri belirtebilir ve '{0}', '{1}' türünde değil.", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "Nesne sabit değerinde yalnızca bilinen özellikler belirtilebilir, ancak '{0}', '{1}' türünde yok. '{2}' yazmak mı istediniz?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "'{0}' nesne sabit değeri özelliği, örtük olarak '{1}' türüne sahip.", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "Toplu özellikler içeren nesneler --isolatedDeclarations ile çıkarsanamaz.", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "Yayma atamaları içeren nesneler --isolatedDeclarations ile çıkarsanamaz.", "Octal_digit_expected_1178": "Sekizli basamak bekleniyor.", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "Karakter sınıfında sekizli kaçış dizilerine ve geri başvurulara izin verilmiyor. Bu bir kaçış dizisi olarak amaçlandıysa, yerine '{0}' kullanın.", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "Sekizli kaçış dizilerine izin verilmiyor. '{0}' söz dizimini kullanın.", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "Sabit değerli sekizliklere izin verilmiyor. '{0}' söz dizimini kullanın.", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "'{0}.{1}' değerlerinden biri '{2}' dizesidir ve diğer değerin bilinmeyen bir sayısal değer olduğu varsayılır.", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "Sekizlik sabit değerli türlerde ES2015 söz dizimi kullanılmalıdır. '{0}' söz dizimini kullanın.", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "Sabit listesi üyelerinin başlatıcısında sekizlik sabit değerlere izin verilmez. '{0}' söz dizimini kullanın.", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "Katı modda sekizlik sabit değerlere izin verilmez.", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "ECMAScript 5 ve üzeri hedeflenirken sekizlik sabit değerler kullanılamaz. '{0}' söz dizimini kullanın.", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' deyiminde yalnızca tek bir değişken bildirimine izin verilir.", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' deyiminde yalnızca tek bir değişken bildirimine izin verilir.", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "'new' anahtar sözcüğüyle yalnızca void işlevi çağrılabilir.", "Only_ambient_modules_can_use_quoted_names_1035": "Yalnızca çevresel modüller tırnak içinde ad kullanabilir.", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "--{0} ile birlikte yalnızca 'amd' ve 'system' modülleri desteklenir.", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "Yalnızca const dizileri --isolatedDeclarations ile çıkarsanabilir.", "Only_emit_d_ts_declaration_files_6014": "Yalnızca '.d.ts' bildirim dosyalarını yayımla.", + "Only_named_exports_may_use_export_type_1383": "Yalnızca adlandırılmış dışarı aktarmalarda 'export type' kullanılabilir.", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "Yalnızca sayısal sabit listelerinde hesaplanmış üyeler olabilir ancak bu ifadede '{0}' türü var. Kapsamlılık denetimleri gerekmiyorsa bunun yerine bir nesne sabit değeri kullanmayı düşünebilirsiniz.", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "JavaScript dosyalarının değil yalnızca d.ts dosyalarının çıkışını alın.", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "'super' anahtar sözcüğüyle yalnızca temel sınıfa ait ortak ve korunan metotlara erişilebilir.", "Operator_0_cannot_be_applied_to_type_1_2736": "'{0}' işleci '{1}' türüne uygulanamıyor.", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "'{0}' işleci, '{1}' ve '{2}' türüne uygulanamaz.", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "İşleçler bir karakter sınıfı içinde karıştırılmamalıdır. Bunun yerine iç içe bir sınıfta sarmalayın.", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "Düzenleme sırasında bir projeyi çok projeli başvuru denetiminin dışında tutun.", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "'{0}={1}' seçeneği kaldırıldı. Lütfen yapılandırmanızdan kaldırın.", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "'{0}={1}' seçeneği kullanım dışı bırakıldı ve TypeScript {2} sürümünde çalışmayacak. Bu hatayı sessize almak için compilerOption '\"ignoreDeprecations\": \"{3}\"' olarak belirtin.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "'{0}' seçeneği, yalnızca 'tsconfig.json' dosyasında belirtilebilir veya komut satırında 'false' veya 'null' olarak ayarlanabilir.", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "'{0}' seçeneği, yalnızca 'tsconfig.json' dosyasında belirtilebilir veya komut satırında 'null' olarak ayarlanabilir.", - "Option_0_can_only_be_specified_on_command_line_6266": "'{0}' seçeneği yalnızca komut satırında belirtilebilir.", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "'{0} seçeneği yalnızca '--inlineSourceMap' veya '--sourceMap' seçeneği sağlandığında kullanılabilir.", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "Seçenek '{0}' yalnızca 'moduleResolution' değeri 'node16', 'nodenext' veya 'bundler' olarak ayarlandığında kullanılabilir.", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "'{0}' seçeneği, yalnızca 'module' değeri 'preserve', 'es2015' veya üzeri olarak ayarlandığında kullanılabilir.", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "'jsx' seçeneği '{1}' olduğunda '{0}' seçeneği belirtilemez.", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "'target' seçeneği 'ES3' olduğunda '{0}' seçeneği belirtilemiyor.", "Option_0_cannot_be_specified_with_option_1_5053": "'{0}' seçeneği, '{1}' seçeneği ile belirtilemez.", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "'{0}' seçeneği, '{1}' seçeneği belirtilmeden belirtilemez.", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "'{1}' seçeneği veya '{2}' seçeneği belirtilmeden '{0}' seçeneği belirtilemez.", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "'{0}' seçeneği kaldırıldı. Lütfen yapılandırmanızdan kaldırın.", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "'{0}' seçeneği kullanım dışı bırakıldı ve TypeScript {1} sürümünde çalışmayacak. Bu hatayı sessize almak için compilerOption '\"ignoreDeprecations\": \"{2}\"' olarak belirtin.", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "'{0}' seçeneği gereksiz ve '{1}' seçeneği ile belirtilemez.", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "'allowImportingTsExtensions' seçeneği, yalnızca 'noEmit' veya 'emitDeclarationOnly' ayarlandığında kullanılabilir.", "Option_build_must_be_the_first_command_line_argument_6369": "'--build' seçeneği ilk komut satırı bağımsız değişkeni olmalıdır.", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "'--incremental' seçeneği yalnızca tsconfig kullanılarak, tek bir dosyada gösterilerek veya '--tsBuildInfoFile' seçeneği sağlandığında belirtilebilir.", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "'isolatedModules' seçeneği, yalnızca '--module' sağlandığında veya 'target' seçeneği 'ES2015' veya daha yüksek bir sürüm değerine sahip olduğunda kullanılabilir.", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "'module' seçeneği '{1}' olarak ayarlandığında 'moduleResolution' seçeneği '{0}' olarak ayarlanmalıdır (veya belirtilmemiş olarak bırakılmalıdır).", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "'moduleResolution' seçeneği '{1}' olarak ayarlandığında 'module' seçeneği '{0}' olarak ayarlanmalıdır.", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "'{0}' etkinken 'preserveConstEnums' seçeneği devre dışı bırakılamaz.", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "'isolatedModules' etkinken 'preserveConstEnums' seçeneği devre dışı bırakılamaz.", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "'preserveValueImports' seçeneği, yalnızca 'module' değeri 'es2015' veya üzeri olarak ayarlandığında kullanılabilir.", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "'project' seçeneği, komut satırındaki kaynak dosyalarıyla karıştırılamaz.", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "'moduleResolution' 'classic' olarak ayarlandığında '--resolveJsonModule' seçeneği belirtilemez.", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "'module' 'none', 'classic' veya 'umd' olarak ayarlandığında '--resolveJsonModule' seçeneği belirtilemez.", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "'module' değeri 'UMD', 'AMD' veya 'System' olarak ayarlandığında 'verbatimModuleSyntax' seçeneği kullanılamaz.", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "'--resolveJsonModule' seçeneği yalnızca modül kodu oluşturma 'commonjs', 'amd', 'es2015' veya 'esNext' olduğunda belirtilebilir.", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "'node' modül çözümleme stratejisi olmadan '--resolveJsonModule' seçeneği belirtilemez.", "Options_0_and_1_cannot_be_combined_6370": "'{0}' ve '{1}' seçenekleri birleştirilemez.", "Options_Colon_6027": "Seçenekler:", "Output_Formatting_6256": "Çıkış Biçimlendirmesi", "Output_compiler_performance_information_after_building_6615": "Derleme sonrasında derleyici performans bilgilerinin çıkışını alın.", "Output_directory_for_generated_declaration_files_6166": "Oluşturulan bildirim dosyaları için çıkış dizini.", + "Output_file_0_from_project_1_does_not_exist_6309": "'{1}' projesinden '{0}' çıkış dosyası yok", "Output_file_0_has_not_been_built_from_source_file_1_6305": "Çıkış dosyası '{0}' '{1}' kaynak dosyasından oluşturulmamış.", "Output_from_referenced_project_0_included_because_1_specified_1411": "'{1}' belirtildiğinden, başvurulan '{0}' projesinin çıkışı dahil edildi", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "'--module' 'none' olarak belirtildiğinden, başvurulan '{0}' projesinin çıkışı dahil edildi", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "Parametre bildirimi bekleniyor.", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "Parametrenin adı var ancak türü yok. Şunu mu demek istediniz: '{0}: {1}'?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "Parametre değiştiricileri yalnızca TypeScript dosyalarında kullanılabilir.", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "Parametrenin --isolatedDeclarations içeren açık bir tür ek açıklaması olmalıdır.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "Dışarı aktarılan sınıftaki genel ayarlayıcı '{0}' için parametre türü, '{2}' özel modülündeki '{1}' adına sahip veya bu adı kullanıyor.", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "Dışarı aktarılan sınıftaki genel ayarlayıcı '{0}' için parametre türü, '{1}' özel adına sahip veya bu adı kullanıyor.", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "Dışarı aktarılan sınıftaki genel statik ayarlayıcı '{0}' için parametre türü, '{2}' özel modülündeki '{1}' adına sahip veya bu adı kullanıyor.", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "Derleme sonrasında yayılan dosyaların adlarını yazdırın.", "Print_this_message_6017": "Bu iletiyi yazdır.", "Private_accessor_was_defined_without_a_getter_2806": "Özel erişimci bir alıcı olmadan tanımlandı.", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "Özel alan '{0}' kapsayan sınıfta bildirilmelidir.", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "Değişken bildirimlerinde özel tanımlayıcılara izin verilmiyor.", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "Sınıf gövdelerinin dışında özel tanımlayıcılara izin verilmiyor.", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "Özel tanımlayıcılara yalnızca sınıf gövdelerinde izin verilir ve yalnızca bir sınıf üyesi bildiriminin parçası olarak, özellik erişimi olarak veya ‘in’ ifadesinin sol tarafında kullanılabilirler.", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "Özel tanımlayıcılar yalnızca ECMAScript 2015 veya üzeri hedeflenirken kullanılabilir.", "Private_identifiers_cannot_be_used_as_parameters_18009": "Özel tanımlayıcılar parametre olarak kullanılamaz.", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "Özel veya korumalı '{0}' üyesine bir tür parametresinde erişilemiyor.", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "'{0}' projesinin '{1}' bağımlılığında hatalar olduğundan proje derlenemiyor", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "'{0}' projesinin '{1}' bağımlılığı derlenmediğinden proje derlenemiyor", "Project_0_is_being_forcibly_rebuilt_6388": "'{0}' projesi zorla yeniden oluşturuluyor", - "Project_0_is_out_of_date_because_1_6420": "Proje '{0}' güncel değil çünkü {1}.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "Buildinfo dosyası '{1}', '{2}' dosyasının derlemenin kök dosyası iken artık öyle olmadığını belirttiğinden '{0}' projesi güncel değil.", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "Buildinfo dosyası '{1}' programın hataları bildirmesi gerektiğini belirttiğinden '{0}' projesi güncel değil.", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "'{1}' buildinfo dosyası bazı değişikliklerin gösterilmediğini belirttiğinden '{0}' projesi güncel değil", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "Buildinfo dosyası '{1}' compilerOptions içinde değişiklik olduğunu belirttiğinden '{0}' proje adı güncel değil", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "'{0}' projesinin '{1}' bağımlılığı güncel olmadığından proje güncel değil", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "'{1}' çıkışı '{2}' girişinden daha eski olduğundan '{0}' projesi güncel değil", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Çıkış dosyası '{1}' mevcut olmadığından '{0}' projesi güncel değil", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "'{0}' projesinin çıkışı geçerli '{2}' sürümünden farklı olan '{1}' sürümü ile oluşturulduğundan proje güncel değil", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "'{0}' projesinin '{1}' bağımlılığı değiştirildiğinden proje güncel değil", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "'{1}' dosyası okunurken hata oluştuğu için '{0}' projesi güncel değil", "Project_0_is_up_to_date_6361": "'{0}' projesi güncel", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "En yeni '{1}' girişi '{2}' çıkışından daha eski olduğundan '{0}' projesi güncel", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "'{0}' özelliği başlatılmadan önce kullanılıyor.", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "'{0}' özelliği '{1}' türü üzerinde olamaz. Şunu mu demek istediniz: '{2}'?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX yayılma özniteliğine ait '{0}' özelliği, hedef özelliğe atanamaz.", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "Dışarı aktarılan anonim sınıf türünün '{0}' özelliği, özel veya korumalı olmayabilir.", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "Dışarı aktarılan sınıf ifadesinin '{0}' özelliği, özel veya korumalı olmayabilir.", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "Dışarı aktarılan arabirimin '{0}' özelliği, '{2}' özel modülündeki '{1}' adına sahip veya bu adı kullanıyor.", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "Dışarı aktarılan arabirimin '{0}' özelliği, '{1}' özel adına sahip veya bu adı kullanıyor.", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "'{1}' türündeki '{0}' özelliği '{2}' dizin türüne '{3}' atanamaz.", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "'{0}' özelliği '{1}' içindeki temel özelliğin üzerine yazacak. Bu bilerek yapılıyorsa bir başlatıcı ekleyin. Aksi takdirde, bir 'declare' değiştiricisi ekleyin veya gereksiz bildirimi kaldırın.", "Property_assignment_expected_1136": "Özellik ataması bekleniyor.", "Property_destructuring_pattern_expected_1180": "Özellik yok etme deseni bekleniyor.", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "Özelliğin --isolatedDeclarations içeren açık bir tür ek açıklaması olmalıdır.", "Property_or_signature_expected_1131": "Özellik veya imza bekleniyor.", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "Özellik değeri yalnızca, dize sabit değeri, sayısal sabit değer, 'true', 'false', 'null', nesne sabit değeri veya dizi sabit değeri olabilir.", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "'ES5' hedeflenirken, 'for-of' içindeki yinelenebilir öğeler için yayılma ve yok etmeye yönelik tam destek sağlayın.", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "'ES5' veya 'ES3' hedefleniyorsa, 'for-of' içindeki yinelenebilir öğeler için yayılma ve yok etmeye yönelik tam destek sağlayın.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "Dışarı aktarılan sınıfın '{0}' genel metodu, {2} dış modülündeki '{1}' adına sahip veya bu adı kullanıyor, ancak adlandırılamıyor.", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "Dışarı aktarılan sınıfın '{0}' genel metodu, '{2}' özel modülündeki '{1}' adına sahip veya bu adı kullanıyor.", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "Dışarı aktarılan sınıfın '{0}' genel metodu, '{1}' özel adına sahip veya bu adı kullanıyor.", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "İşlev parametresi okunmadığında hata oluştur.", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "Belirtilen 'any' türüne sahip ifade ve bildirimlerde hata oluştur.", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "Örtük olarak 'any' türü içeren 'this' ifadelerinde hata tetikle.", - "Range_out_of_order_in_character_class_1517": "Aralık karakter sınıfında sıranın dışında.", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "'{0}' etkinken bir türü yeniden dışarı aktarmak için 'export type' kullanmak gerekir.", - "React_components_cannot_include_JSX_namespace_names_2639": "React bileşenleri JSX ad alanı adlarını içeremez", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "'--isolatedModules' bayrağı sağlandığında bir türü yeniden dışarı aktarmak için 'export type' kullanmak gerekir.", "Redirect_output_structure_to_the_directory_6006": "Çıktı yapısını dizine yeniden yönlendir.", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "TypeScript tarafından otomatik olarak yüklenen projelerin sayısını azaltın.", "Referenced_project_0_may_not_disable_emit_6310": "Başvurulan '{0}' projesi, yayma özelliğini devre dışı bırakamaz.", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "Başvurulan proje '{0}' \"composite\": true ayarına sahip olmalıdır.", "Referenced_via_0_from_file_1_1400": "'{1}' dosyasından '{0}' aracılığıyla başvuruldu", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "'--moduleResolution' 'node16' veya 'nodenext' olduğunda, bağıl içe aktarma yollarının ECMAScript içe aktarmalarında açık dosya uzantılarına ihtiyacı vardır. İçe aktarma yoluna bir uzantı eklemeyi düşünün.", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "Göreli içe aktarma yolları, '--moduleResolution' 'node16' veya 'nodenext' olduğunda ECMAScript içeri aktarmalarında açık dosya uzantılarına ihtiyaç duyar. Şunu mu demek istediniz: '{0}'?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "Göreli içe aktarma yolları, '--moduleResolution' 'node16' veya 'nodenext' olduğunda EcmaScript içe aktarmalarında açık dosya uzantılarına ihtiyaç duyar. İçe aktarma yoluna bir uzantı eklemeyi düşünün.", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "Göreli içe aktarma yolları, '--moduleResolution' 'node16' veya 'nodenext' olduğunda EcmaScript içe aktarmalarında açık dosya uzantılarına ihtiyaç duyar. Şunu mu demek istediniz: '{0}'?", "Remove_a_list_of_directories_from_the_watch_process_6628": "İzleme işleminden dizinlerin listesini kaldırın.", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "İzleme modu işlemesinden bir dosya listesini kaldırın.", "Remove_all_unnecessary_override_modifiers_95163": "Tüm gereksiz 'override' değiştiricilerini kaldır", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": ".js dosyalarındaki hataları bildirin.", "Report_errors_on_unused_locals_6134": "Kullanılmayan yerel öğelerdeki hataları bildirin.", "Report_errors_on_unused_parameters_6135": "Kullanılmayan parametrelerdeki hataları bildirin.", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "Diğer araçların geçici olarak bildirim dosyaları oluşturabilmesi için dışarı aktarmalarda yeterli ek açıklama gerektir.", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "Öğe erişimlerini kullanmak için dizin imzalarından bildirilmemiş özellikler gerektirin.", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Gerekli tür parametreleri, isteğe bağlı tür parametrelerini takip edemez.", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "'{0}' modülünün çözümü '{1}' konumundaki önbellekte bulundu.", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "'{0}' tür başvurusu yönergesinin çözümlemesi '{1}' konumundaki önbellekte bulundu.", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "Göreli olmayan ad çözümlenemedi; npm kitaplığı için yapılandırma güncelleştirmesi gerektirip gerekmediğini görmek için modern Düğüm çözümleme özellikleri ile deneniyor.", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "Göreli olmayan ad çözümlenemedi; projenin yapılandırma güncelleştirmesi gerektirip gerektirmediğini görmek için '--moduleResolution bundler' ile deneniyor.", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "'Keyof' değerini yalnızca dize değerli özellik adlarına (sayılar veya simgeler olmadan) çözümleyin.", - "Resolved_under_condition_0_6414": "'{0}' koşulu altında çözümlendi.", "Resolving_in_0_mode_with_conditions_1_6402": "{0} modunda {1} koşullarıyla çözümleniyor.", "Resolving_module_0_from_1_6086": "======== '{0}' modülü '{1}' öğesinden çözümleniyor. ========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "'{0}' modül adı, '{1}' - '{2}' temel url'sine göre çözümleniyor.", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== '{0}' tür başvuru yönergesi çözümleniyor, içeren dosya '{1}', kök dizin ayarlanmadı. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== '{0}' tür başvurusu yönergesi çözümleniyor, kapsayan dosya ayarlanmadı, kök dizin: '{1}'. ========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== '{0}' tür başvurusu yönergesi çözümleniyor, kapsayan dosya ayarlanmadı, kök dizin ayarlanmadı. ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "Özel typeRoots belirten program için tür başvurusu yönergesi çözümleniyor, 'node_modules' klasöründe arama atlanıyor.", "Resolving_with_primary_search_path_0_6121": "Birincil arama yolu '{0}' kullanılarak çözümleniyor.", "Rest_parameter_0_implicitly_has_an_any_type_7019": "'{0}' rest parametresi, örtük olarak 'any[]' türüne sahip.", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "'{0}' REST parametresi örtük olarak 'any[]' türüne sahip ancak kullanımdan daha iyi bir tür çıkarsanabilir.", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "Eski programın '{1}' üzerindeki '{0}' tür başvuru yönergesi çözümlemesinin yeniden kullanılması, başarıyla Paket Kimliği '{3}' ile '{2}' olarak çözüldü.", "Rewrite_all_as_indexed_access_types_95034": "Tümünü dizinlenmiş erişim türleri olarak yeniden yaz", "Rewrite_as_the_indexed_access_type_0_90026": "Dizine eklenmiş erişim türü '{0}' olarak yeniden yaz", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "'.ts', '.tsx', '.mts' ve '.cts' dosya uzantılarını, çıkış dosyalarındaki JavaScript eşdeğerlerine göreli içeri aktarma yollarında yeniden yazın.", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "Sol işlenen hiçbir zaman null olmadığından ?? sağ işlenenine ulaşılamıyor.", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "Kök dizin belirlenemiyor, birincil arama yolları atlanıyor.", "Root_file_specified_for_compilation_1427": "Derleme için belirtilen kök dosyası", "STRATEGY_6039": "STRATEJİ", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "Projelerin artımlı derlenmesini sağlamak için .tsbuildinfo dosyalarını kaydedin.", "Saw_non_matching_condition_0_6405": "Eşleşmeyen koşul '{0}' görüldü.", "Scoped_package_detected_looking_in_0_6182": "Kapsamlı paket algılandı, '{0}' içinde aranıyor", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "Geri dönüş uzantıları için tüm üst node_modules dizinleri aranıyor: {0}.", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "Tercih edilen uzantılar için tüm üst node_modules dizinleri aranıyor: {0}.", "Selection_is_not_a_valid_statement_or_statements_95155": "Seçim geçerli bir veya daha fazla deyim değil", "Selection_is_not_a_valid_type_node_95133": "Seçim geçerli bir tür düğümü değil", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "Yayılan JavaScript için JavaScript dil sürümünü ayarlayın ve uyumlu kitaplık bildirimlerini ekleyin.", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "Ayrıntılı tanılama bilgilerini gösterin.", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "Nelerin derleneceğini (veya '--clean' ile belirtilmişse silineceğini) göster", "Signature_0_must_be_a_type_predicate_1224": "'{0}' imzası bir tür koşulu olmalıdır.", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "İmza bildirimleri yalnızca TypeScript dosyalarında kullanılabilir.", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "Yukarı akış projesinde hata nedeniyle aşağı akış projelerini derlemeyi atla.", "Skip_type_checking_all_d_ts_files_6693": "Tüm .d.ts dosyalarında tür denetimini atlayın.", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "TypeScript ile birlikte gelen .d.ts dosyaları için tür denetimini atlayın.", "Skip_type_checking_of_declaration_files_6012": "Bildirim dosyalarının tür denetimini atla.", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "Mutlak bir URI gibi görünen '{0}' modül türü atlanıyor, hedef dosya türleri: {1}.", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "'{0}' projesinin '{1}' bağımlılığında hatalar olduğundan projenin derlenmesi atlanıyor", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "'{0}' projesinin '{1}' bağımlılığı derlenmediğinden projenin derlenmesi atlanıyor", "Source_from_referenced_project_0_included_because_1_specified_1414": "'{1}' belirtildiğinden, başvurulan '{0}' projesinin kaynağı dahil edildi", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "'--module' 'none' olarak belirtildiğinden, başvurulan '{0}' projesinin kaynağı dahil edildi", "Source_has_0_element_s_but_target_allows_only_1_2619": "Kaynakta {0} öğe var ancak hedef yalnızca {1} öğeye izin veriyor.", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "TypeScript izleme modunun nasıl çalıştığını belirtin.", "Specify_library_files_to_be_included_in_the_compilation_6079": "Derlemeye dahil edilecek kitaplık dosyalarını belirtin.", "Specify_module_code_generation_6016": "Modül kodu oluşturmayı belirtin.", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "Modül çözümleme stratejisini belirtin: 'Node' (Node.js) veya 'classic' (TypeScript pre-1.6).", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "'jsx: react-jsx*' kullanırken JSX fabrika işlevlerini içeri aktarmak için kullanılan modül belirticisini belirt.", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "'./node_modules/@types' gibi davranan birden çok klasör belirt.", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "Ayarlarının devralındığı temel yapılandırma dosyalarına yönelik bir veya daha fazla yol ya da düğüm modülü başvurusu belirtin.", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "Statik üyeler sınıf türündeki parametrelere başvuramaz.", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "'{0}' statik özelliği, '{1}' oluşturucu işlevinin yerleşik özelliği olan 'Function.{0}' ile çakışıyor.", "String_literal_expected_1141": "Dize sabit değeri bekleniyor.", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "'--module' bayrağı 'es2015' veya 'es2020' olarak ayarlandığında, sabit değerli dize içeri ve dışarı aktarma adları desteklenmez.", "String_literal_with_double_quotes_expected_1327": "Çift tırnak içine alınmış bir dize sabit değeri bekleniyor.", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "Renk ve bağlam kullanarak hataların ve iletilerin stilini belirleyin (deneysel).", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "Eksi işareti varken alt sayfa bayrakları bulunmalıdır.", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "Ardışık özellik bildirimleri aynı türe sahip olmalıdır. '{0}' özelliği '{1}' türünde olmalıdır, ancak burada '{2}' türüne sahip.", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "Ardışık değişken bildirimleri aynı türe sahip olmalıdır. '{0}' değişkeni '{1}' türünde olmalıdır, ancak burada '{2}' türüne sahip.", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "'{1}' deseni için '{0}' alternatifinin türü hatalı; beklenen: 'string' alınan: '{2}'.", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "İsteğe bağlı bir zincirde etiketli şablon ifadelerine izin verilmiyor.", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "Hedef yalnızca {0} öğeye izin veriyor ancak kaynakta daha fazlası olabilir.", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "Hedef {0} öğe gerektiriyor ancak kaynakta daha az sayıda öğe olabilir.", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "Hedef imza çok az bağımsız değişken sağlıyor. {0} veya daha fazla bekleniyordu ancak {1} alındı.", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' değiştiricisi yalnızca TypeScript dosyalarında kullanılabilir.", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "'{0}' işleci, 'symbol' türüne uygulanamaz.", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "'{0}' işlecine boole türü için izin verilmez. Bunun yerine '{1}' kullanmayı göz önünde bulundurun.", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "Asenkron bir yineleyicinin '{0}' özelliği bir metot olmalıdır.", "The_0_property_of_an_iterator_must_be_a_method_2767": "Yineleyicinin '{0}' özelliği bir metot olmalıdır.", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' türü başka çok az sayıda türe atanabilir. Bunun yerine 'any' türünü mü kullanmak istemiştiniz?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "Unicode (u) bayrağı ve Unicode Kümeleri (v) bayrağı aynı anda ayarlanamaz.", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "ES5'te bulunan bir ok işlevinde 'arguments' nesnesine başvurulamaz. Standart bir işlev ifadesi kullanmayı göz önünde bulundurun.", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "'arguments' nesnesine ES5'teki asenkron bir işlev veya metotta başvurulamaz. Standart bir işlev veya metot kullanmayı düşünün.", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "ES3 ve ES5'te bulunan bir ok işlevinde 'arguments' nesnesine başvuru yapılamaz. Standart bir işlev ifadesi kullanmayı göz önünde bulundurun.", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "ES3 ve ES5'te 'arguments' nesnesine zaman uyumsuz bir işlev veya metot içinde başvurulamaz. Standart bir işlev veya metot kullanmayı düşünün.", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' deyiminin gövdesi boş deyim olamaz.", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "Çağrı, bu uygulamada başarılı olabilirdi, ancak aşırı yüklemelerin uygulama imzaları dışarıdan görünmüyor.", "The_character_set_of_the_input_files_6163": "Giriş dosyalarının karakter kümesi.", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "'JSX.{0}' genel türü birden fazla özelliğe sahip olamaz.", "The_implementation_signature_is_declared_here_2750": "Uygulama imzası burada bildirilir.", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "CommonJS çıkışında oluşturulacak dosyalarda 'import.meta' meta özelliğine izin verilmiyor.", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' meta özelliğine yalnızca '--module' seçeneği 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18' veya 'nodenext' olduğunda izin verilir.", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "'import.meta' meta özelliğine yalnızca '--module' seçeneği 'es2020', 'es2022', 'esnext', 'system', 'node16' veya 'nodenext' olduğunda izin verilir.", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' öğesinin çıkarsanan türü, '{1}' başvurusu olmadan adlandırılamaz. Bu büyük olasılıkla taşınabilir değildir. Tür ek açıklaması gereklidir.", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "Çıkarsanan '{0}' türü, önemsiz olarak seri hale getirilemeyen döngüsel yapıya sahip bir türe başvurur. Tür ek açıklaması gerekir.", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "Çıkarsanan '{0}' türü, erişilemeyen bir '{1}' türüne başvuruyor. Tür ek açıklaması gereklidir.", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "Bu düğümün çıkarsanan türü, derleyicinin seri hale getireceği maksimum uzunluğu aşıyor. Açık tür ek açıklaması gerekiyor.", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "'using' bildiriminin başlatıcısı ya '[Symbol.dispose]()' metoduna sahip bir nesne olmalı ya da 'null' veya 'undefined' olmalıdır.", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "'await using' bildiriminin başlatıcısı ya '[Symbol.asyncDispose]()' veya '[Symbol.dispose]5D;()' metoduna sahip bir nesne olmalı ya da 'null' veya 'undefined' olmalıdır.", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "'{1}' özelliği birden çok destekçide bulunduğundan ve bazılarında özel olduğundan, '{0}' kesişimi 'never' değerine düşürüldü.", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "'{1}' özelliği bazı bileşenlerde çakışan türlere sahip olduğundan '{0}' kesişimi 'never' değerine düşürüldü.", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'intrinsic' anahtar sözcüğü, yalnızca derleyicinin sağladığı iç türleri bildirmek için kullanılabilir.", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "Son aşırı yükleme aşağıdaki hatayı verdi.", "The_last_overload_is_declared_here_2771": "Son aşırı yükleme burada bildirilir.", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' deyiminin sol tarafı yok etme deseni olamaz.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "'for...in' ifadesinin sol tarafı 'using' bildirimi olamaz.", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "'for...in' ifadesinin sol tarafı 'await using' bildirimi olamaz.", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' deyiminin sol tarafında tür ek açıklaması kullanılamaz.", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' deyiminin sol tarafı, isteğe bağlı bir özellik erişimi olamaz.", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' deyiminin sol tarafında bir değişken veya özellik erişimi bulunmalıdır.", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Aritmetik işlemin sol tarafı, 'any', 'number', 'bigint' veya bir sabit listesi türünde olmalıdır.", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Atama ifadesinin sol tarafı, isteğe bağlı bir özellik erişimi olamaz.", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Atama ifadesinin sol tarafında bir değişken veya özellik erişimi bulunmalıdır.", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "Bir 'instanceof' ifadesinin sol tarafı, sağ tarafın '[Symbol.hasInstance]' metodunun ilk bağımsız değişkenine atanabilir olmalıdır.", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' ifadesinin sol tarafı 'any' türünde, bir nesne türü veya tür parametresi olmalıdır.", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Kullanıcıya ileti görüntülenirken kullanılacak yerel ayar (örn. 'tr-tr')", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules altında arama yapmak ve JavaScript dosyalarını yüklemek için en yüksek bağımlılık derinliği.", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "Proje kökü belirsizdir, ancak '{1}' dosyasındaki '{0}' dışa aktarma haritası girişini çözmek için gereklidir. Belirsizliği gidermek için `rootDir` derleyici seçeneğini sağlayın.", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "Proje kökü belirsizdir, ancak '{1}' dosyasındaki '{0}' içe aktarma haritası girişini çözmek için gereklidir. Belirsizliği gidermek için `rootDir` derleme seçeneğini sağlayın.", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "'{0}' özelliği aynı yazımı içeren başka bir özel tanımlayıcı tarafından gölgelendiğinden bu sınıf içindeki '{1}' türü üzerinde bu özelliğe erişilemiyor.", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' erişimcisinin dönüş türü, 'set' erişimcisinin türüne atanabilmelidir", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "Parametre dekoratör işlevine ait dönüş türü 'void' veya 'any' olmalıdır.", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "Özellik dekoratör işlevine ait dönüş türü 'void' veya 'any' olmalıdır.", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "Zaman uyumsuz bir işlevin dönüş türü, geçerli bir promise olmalı veya çağrılabilir 'then' üyesi içermemelidir.", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "Zaman uyumsuz bir işlevin ya da metodun döndürme türü, genel Promise türü olmalıdır.", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Asenkron bir işlevin ya da metodun dönüş türü, genel Promise türü olmalıdır. 'Promise<{0}>' yazmak mı istediniz?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' deyiminin sağ tarafı 'any' türünde, bir nesne türü veya tür parametresi olmalıdır ancak burada '{0}' türüne sahip.", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Aritmetik işlemin sağ tarafı, 'any', 'number', 'bigint' veya bir sabit listesi türünde olmalıdır.", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "'instanceof' ifadesinin sağ tarafı ya 'any' türünde, bir sınıf, işlev veya 'Function' arayüz türüne atanabilir başka bir tür ya da 'Symbol.hasInstance' metoduna sahip bir nesne türü olmalıdır.", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "'instanceof' ifadesinin sağ tarafı bir örnek oluşturma ifadesi olmamalıdır.", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' ifadesinin sağ tarafı 'any' türünde veya 'Function' arabirim türüne atanabilir bir türde olmalıdır.", "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' dosyasının kök değeri bir nesne olmalıdır.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "Çalışma zamanı, dekoratörü {1} bağımsız değişkenleriyle çağıracak ancak dekoratör {0} bekliyor.", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "Çalışma zamanı, dekoratörü {1} bağımsız değişkenleriyle çağıracak ancak dekoratör en azından {0} bekliyor.", "The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' için gölgeleme bildirimi burada tanımlanır", "The_signature_0_of_1_is_deprecated_6387": "'{1}' öğesinin '{0}' imzası kullanım dışı bırakıldı.", "The_specified_path_does_not_exist_Colon_0_5058": "Belirtilen yol yok: '{0}'.", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Dışarı aktarma deyimindeki 'dışarı aktarma türü' kullanılırken 'tür' değiştiricisi adlandırılmış bir dışarı aktarma üzerinde kullanılamaz.", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "İçeri aktarma deyimindeki 'içeri aktarma türü' kullanılırken 'tür' değiştiricisi adlandırılmış bir içeri aktarma üzerinde kullanılamaz.", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "İşlev bildiriminin türü işlevin imzasıyla eşleşmelidir.", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Bu ifadenin türü kararsız bir özellik olan 'resolution-mode' onaylaması olmadan adlandırılamaz. Bu hatayı sessize almak için gece TypeScript kullanın. 'npm install -D typescript@next' ile güncelleştirmeyi deneyin.", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "'{0}' özelliği seri hale getirilemediğinden bu düğüm türü seri hale getirilemiyor.", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Asenkron yineleyicinin '{0}()' metodu tarafından döndürülen tür, 'value' özelliğine sahip bir tür için promise olmalıdır.", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Bir yineleyicinin '{0}()' metodu tarafından döndürülen tür, 'value' özelliğine sahip olmalıdır.", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' deyiminin değişken bildirimi bir başlatıcıya sahip olamaz.", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' deyiminin değişken bildirimi bir başlatıcıya sahip olamaz.", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "'with' ifadesi desteklenmiyor. 'with' bloklarındaki tüm simgeler 'any' türüne sahip olacaktır.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "'{0}' konumunda türler var, ancak bu sonuç geçerli 'moduleResolution' ayarınız altında çözümlenemiyor. 'node16', 'nodenext' veya 'bundler' öğesine güncelleştirmeyi düşünün.", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "'{0}' konumunda türler var ancak package.json \"exports\" dikkate alındığında bu sonuç çözümlenemedi. '{1}' kitaplığının package.json dosyasını veya türlerini güncelleştirmesi gerekiyor olabilir.", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "Bu normal ifadede '{0}' adlı yakalama grubu yok.", - "There_is_nothing_available_for_repetition_1507": "Yineleme için kullanılabilecek bir şey yok.", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "Bu JSX etiketi '{0}' öğesinin kapsamda olmasını gerektiriyor, ancak bulunamadı.", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "Bu JSX etiketi, '{0}' modül yolunun mevcut olmasını gerektiriyor, ancak hiçbiri bulunamadı. Uygun paket için türlerin yüklü olduğundan emin olun.", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Bu JSX etiketinin '{0}' özelliği, '{1}' türünde tek bir alt öğe bekliyor ancak birden çok alt öğe sağlandı.", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Bu JSX etiketinin '{0}' özelliği, birden çok alt öğe gerektiren '{1}' türünü bekliyor ancak yalnızca tek bir alt öğe sağlandı.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534": "Bu geri başvuru, var olmayan bir gruba başvuruyor. Bu normal ifadede yalnızca yakalama grupları yok.", - "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533": "Bu geri başvuru, var olmayan bir gruba başvuruyor. Bu normal ifadede yalnızca {0} yakalama grubu var.", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "Bu ikili ifade hiçbir zaman boş değerli değildir. Parantezler mi eksik?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "Bu karakter düzenli bir ifadede kaçış işareti ile kullanılamaz.", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "'{0}' ve '{1}' türlerinde çakışma olmadığından bu karşılaştırma yanlışlıkla yapılmış gibi görünüyor.", "This_condition_will_always_return_0_2845": "Bu koşul her zaman '{0}' döndürür.", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "JavaScript nesneleri değer göre değil başvuruya göre karşılaştırdığından bu koşul her zaman '{0}' değerini döndürür.", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Bu '{0}' her zaman tanımlandığı için bu koşul her zaman doğru olacaktır.", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "İşlev her zaman tanımlı olduğundan bu koşul her zaman true döndürür. Bunun yerine işlevi çağırmayı mı istediniz?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "Bu oluşturucu işlevi bir sınıf bildirimine dönüştürülebilir.", - "This_expression_is_always_nullish_2871": "Bu ifade her zaman boş değerlidir.", "This_expression_is_not_callable_2349": "Bu ifade çağrılabilir değil.", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "Bu ifade 'get' erişimcisi olduğundan çağrılamaz. Bunu '()' olmadan mı kullanmak istiyorsunuz?", "This_expression_is_not_constructable_2351": "Bu ifade oluşturulabilir değil.", "This_file_already_has_a_default_export_95130": "Bu dosyanın zaten varsayılan bir dışarı aktarması var", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "Başka bir projeye çözümlendiğinden ve projelerin çıkış dosyaları arasındaki göreli yol, giriş dosyaları arasındaki göreli yol ile aynı olmadığından, bu içeri aktarma yolunun yeniden yazılması güvenli değildir.", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "Bu içeri aktarma, giriş TypeScript dosyasına çözümlemek için bir '{0}' uzantısı kullanıyor, ancak göreli bir yol olmadığından yayın sırasında yeniden yazılmayacak.", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "'importsNotUsedAsValues' 'error' olarak ayarlandığından, bu içeri aktarma hiçbir zaman değer olarak kullanılmaz ve 'import type' kullanmalıdır.", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "Bu, genişletilmekte olan bildirimdir. Genişleten bildirimi aynı dosyaya taşımayı düşünün.", - "This_kind_of_expression_is_always_falsy_2873": "Bu ifade türü her zaman yanlıştır.", - "This_kind_of_expression_is_always_truthy_2872": "Bu ifade türü her zaman doğrudur.", "This_may_be_converted_to_an_async_function_80006": "Bu, asenkron bir işleve dönüştürülebilir.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Bu üye, '{0}' temel sınıfında bildirilmediğinden '@override' etiketi olan bir JSDoc yorumuna sahip olamaz.", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Bu üye, '{0}' temel sınıfında bildirilmediğinden 'override' etiketi olan bir JSDoc yorumuna sahip olamaz. '{1}' öğesini mi kastettiniz?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Kapsayan sınıfı '{0}' başka bir sınıfı genişletmediğinden, bu üye '@override' etiketi olan bir JSDoc yorumuna sahip olamaz.", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Ad dinamik olduğundan bu üye '@override' etiketi içeren bir JSDoc yorumuna sahip olamaz.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Bu üye '{0}' temel sınıfında bildirilmediğinden 'override' değiştiricisine sahip olamaz.", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Bu üye, '{0}' temel sınıfında bildirilmediğinden 'override' değiştiricisine sahip olamaz. '{1}' öğesini mi kastettiniz?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Kapsayan '{0}' sınıfı başka bir sınıfı genişletmediğinden bu üye 'override' değiştiricisine sahip olamaz.", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "Adı dinamik olduğundan bu üyenin 'override' değiştiricisi olamaz.", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "' {0}' temel sınıfındaki bir üyeyi geçersiz kıldığından, bu üyenin '@override' etiketi olan bir JSDoc yorumu olmalıdır.", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "Bu üye, '{0}' temel sınıfındaki bir üyeyi geçersiz kıldığından 'override' değiştiricisine sahip olmalıdır.", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "Bu üye, '{0}' temel sınıfında bildirilen soyut bir metodu geçersiz kıldığından 'override' değiştiricisine sahip olmalıdır.", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "Bu modüle yalnızca '{0}' bayrağını açıp modülün varsayılan dışarı aktarma işlemine başvurarak ECMAScript içeri/dışarı aktarma işlemleri ile başvurulabilir.", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "Bu modül, 'export =' ile bildirildi ve yalnızca '{0}' bayrağı kullanılırken varsayılan bir içeri aktarmayla kullanılabilir.", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "Bu işlem basitleştirilebilir. Bu vardiya `{0} {1} {2}` ile aynı.", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "Bu aşırı yükleme, dönüş türü ek açıklaması içermediğinden '{0}' türünü örtük olarak döndürür.", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "Bu aşırı yükleme imzası, uygulama imzasıyla uyumlu değil.", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "Bu parametreye 'use strict' yönergesi ile izin verilmiyor.", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "' {0}' temel sınıfındaki bir üyeyi geçersiz kıldığından, bu parametre özelliğinin '@override' etiketi olan bir JSDoc yorumu olmalıdır.", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "Bu parametre özelliği, '{0}' temel sınıfındaki bir üyeyi geçersiz kıldığından bir 'override' değiştiricisi içermelidir.", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "Bu normal ifade bayrağı bir alt örüntü içinde değiştirilemez.", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Bu normal ifade bayrağı, yalnızca '{0}' veya üzeri hedeflenirken kullanılabilir.", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Bu göreli içeri aktarma yolu bir dosya adı gibi görünse de aslında \"{0}\" olarak çözümlendiğinden yolun yeniden yazılması güvenli değildir.", "This_spread_always_overwrites_this_property_2785": "Bu yayılma her zaman bu özelliğin üzerine yazar.", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "'erasableSyntaxOnly' etkinleştirildiğinde bu söz dizimi kullanılamaz.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Bu söz dizimi, .mts veya .cts uzantısı içeren dosyalarda ayrılmıştır. Sonuna virgül veya açık kısıtlama ekleyin.", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Bu söz dizimi, .mts veya .cts uzantısı içeren dosyalarda ayrılmıştır. Bunun yerine `as` ifadesi kullanın.", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Bu söz dizimi, içeri aktarılan bir yardımcı gerektiriyor ancak '{0}' modülü bulunamıyor.", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "Bu dosyayı bir ECMAScript modülüne dönüştürmek için dosya uzantısını '{0}' olarak değiştirin veya '{1}' dizinine ''type': 'module'' alanı ekleyin.", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "Bu dosyayı bir ECMAScript modülüne dönüştürmek için dosya uzantısını '{0}' olarak değiştirin veya `{ \"type\": \"module\" }` ile yerel bir package.json dosyası oluşturun.", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "Bu dosyayı bir ECMAScript modülüne dönüştürmek için, `{ \"type\": \"module\" }` ile yerel bir package.json dosyası oluşturun.", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Üst düzey 'await' ifadelerine yalnızca 'module' seçeneği; 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında ve 'target' seçeneği; 'es2017' veya üzeri olarak ayarlandığında izin verilir.", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "Üst düzey 'await using' ifadelerine yalnızca 'module' seçeneği; 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında ve 'target' seçeneği; 'es2017' veya üzeri olarak ayarlandığında izin verilir.", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Üst düzey 'await' ifadelerine yalnızca 'module' seçeneği 'es2022', 'esnext', 'system', 'node16' veya 'nodenext' olarak ayarlandığında ve 'target' seçeneği 'es2017' veya üzeri olarak ayarlandığında izin verilir.", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts dosyalarındaki üst düzey bildirimler bir 'declare' veya 'export' değiştiricisi ile başlamalıdır.", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Üst düzey 'for await' döngülerine yalnızca 'module' seçeneği; 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext' veya 'preserve' olarak ayarlandığında ve 'target' seçeneği; 'es2017' veya üzeri olarak ayarlandığında izin verilir.", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "Üst düzey 'bekleme için' döngülerine yalnızca 'modül' seçeneği 'es2022', 'esnext', 'system', 'node16' veya 'nodenext' olarak ayarlandığında ve 'target' seçeneği 'es2017' veya üstü olarak ayarlandığında izin verilir.", "Trailing_comma_not_allowed_1009": "Sona eklenen virgüle izin verilmez.", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "Her dosyayı ayrı bir modül olarak derleyin ('ts.transpileModule' gibi).", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "Varsa `npm i --save-dev @types/{1}` deneyin veya `declare module '{0}';` deyimini içeren yeni bir bildirim (.d.ts) dosyası ekleyin", "Trying_other_entries_in_rootDirs_6110": "'rootDirs' içindeki diğer girişler deneniyor.", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "'{0}' alternatifi deneniyor, aday modül konumu: '{1}'.", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "Tüm demet üyelerinin adı olmalı veya hiçbirinin adı olmamalıdır.", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "'{1}' uzunluğundaki '{0}' demet türü, '{2}' dizininde öğe içermiyor.", "Tuple_type_arguments_circularly_reference_themselves_4110": "Demet türü bağımsız değişkenleri döngüsel olarak kendisine başvuruyor.", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "'{0}' türü yalnızca '--downlevelIteration' bayrağı kullanılarak veya '--target' için 'es2015' ya da üzeri kullanıldığında yinelenebilir.", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "'{0}' türü, '{1}' türüyle eşleşen dizin imzasına sahip değil.", "Type_0_has_no_properties_in_common_with_type_1_2559": "'{0}' türünün '{1}' türüyle ortak özelliği yok.", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "'{0}' türü, tür bağımsız değişkeni listesi için geçerli imzalar içermiyor.", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "Tür '{0}' geneldir ve yalnızca okuma için dizini oluşturulabilir.", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "'{0}' türünde, '{1}' türündeki şu özellikler eksik: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "'{0}' türünde, '{1}' türündeki şu özellikler eksik: {2} ve diğer {3} özellik.", "Type_0_is_not_a_constructor_function_type_2507": "'{0}' türü bir oluşturucu işlevi türü değil.", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "ES5 içindeki '{0}' türü, Promise ile uyumlu bir oluşturucu değerine başvurmadığından geçerli bir zaman uyumsuz işlev dönüş türü değil.", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "ES5/ES3 içindeki '{0}' türü, Promise ile uyumlu bir oluşturucu değerine başvurmadığından geçerli bir zaman uyumsuz işlev dönüş türü değil.", "Type_0_is_not_an_array_type_2461": "'{0}' türü bir dizi türü değil.", "Type_0_is_not_an_array_type_or_a_string_type_2495": "'{0}' türü, bir dizi türü veya dize türü değil.", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "'{0}' türü, bir dizi türü veya dize türü değil ya da bir yineleyici döndüren '[Symbol.iterator]()' metoduna sahip değil.", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "'{0}' türü '{1}' türüne atanamaz. '{2}' mi demek istediniz?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "'{0}' türü '{1}' türüne atanamaz. Bu ada sahip iki farklı tür mevcut, ancak bu türler birbiriyle ilişkisiz.", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "Varyans ek açıklaması tarafından belirtildiği gibi '{0}' türü '{1}' türüne atanamaz.", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "Hesaplanan sabit listesi üye değerleri gereğince, '{0}' türü '{1}' türüne atanamaz.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "'{0}' türü, '{1}' türüne 'exactOptionalPropertyTypes: true' ile atanamaz. Hedef özelliklerinin türlerine 'undefined' eklemeyi deneyin.", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' türü, '{1}' türüne 'exactOptionalPropertyTypes: true' ile atanamaz. Hedef türüne 'undefined' eklemeyi deneyin.", "Type_0_is_not_comparable_to_type_1_2678": "'{0}' türü '{1}' türüyle karşılaştırılamaz.", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "Tür bağımsız değişkeni bekleniyor.", "Type_argument_list_cannot_be_empty_1099": "Tür bağımsız değişkeni listesi boş olamaz.", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "Tür bağımsız değişkenleri yalnızca TypeScript dosyalarında kullanılabilir.", + "Type_arguments_cannot_be_used_here_1342": "Tür bağımsız değişkenleri burada kullanılamaz.", "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}' için tür bağımsız değişkenleri, döngüsel olarak kendisine başvuruyor.", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "Tür onaylama ifadeleri, yalnızca TypeScript dosyalarında kullanılabilir.", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "Kaynaktaki {0} konumunda bulunan tür, hedefteki {1} konumunda bulunan türle uyumlu değil.", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "Kaynaktaki {0} ile {1} arasındaki konumlarda bulunan tür, hedefteki {2} konumunda bulunan türle uyumlu değil.", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "'{0}' özel adını içeren tür, --isolatedDeclarations ile kullanılamaz.", "Type_declaration_files_to_be_included_in_compilation_6124": "Derlemeye eklenecek tür bildirim dosyaları.", "Type_expected_1110": "Tür bekleniyor.", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "Tür içe aktarma iddiaları, `import` veya `require`. değerine sahip tam olarak bir anahtara - `resolution-mode`’na sahip olmalıdır.", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "Tür içe aktarma öznitelikleri, 'import' veya 'require' değerine sahip, tam olarak tek bir 'resolution-mode' anahtarına sahip olmalıdır.", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "Bir ECMAScript modülünün CommonJS modülünden tür içeri aktarımında bir 'resolution-mode' özniteliği bulunmalıdır.", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "Tür örneği oluşturma işlemi, fazla ayrıntılı ve büyük olasılıkla sınırsız.", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "Türe, kendi 'then' metodunun tamamlama geri aramasında doğrudan veya dolaylı olarak başvuruluyor.", "Type_library_referenced_via_0_from_file_1_1402": "'{1}' dosyasından '{0}' aracılığıyla başvurulan tür kitaplığı", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "Bir 'yield*' işleneninin yinelenen öğelerinin türü, geçerli bir promise olmalı veya çağrılabilir 'then' üyesi içermemelidir.", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "'{0}' özelliğinin türü, '{1}' eşlenmiş türünde döngüsel olarak kendine başvuruyor.", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "Zaman uyumsuz bir oluşturucudaki 'yield' işleneninin türü, geçerli bir promise olmalı veya çağrılabilir 'then' üyesi içermemelidir.", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "Bir ECMAScript modülünün bir CommonJS modülünden yalnızca tür içeri aktarımında bir 'resolution-mode' özniteliği bulunmalıdır.", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "Tür bu içeri aktarmadan kaynaklanıyor. Ad alanı stili içeri aktarma işlemi çağrılamaz ya da oluşturulamaz ve çalışma zamanında hataya neden olur. Bunun yerine varsayılan içeri aktarmayı kullanabilir veya burada içeri aktarma gerektirebilirsiniz.", "Type_parameter_0_has_a_circular_constraint_2313": "'{0}' tür parametresi döngüsel bir kısıtlamaya sahip.", "Type_parameter_0_has_a_circular_default_2716": "'{0}' tür parametresi döngüsel bir varsayılana sahip.", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "Bir ifade olarak çağrıldığında metot dekoratörünün imzası çözümlenemez.", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "Bir ifade olarak çağrıldığında parametre dekoratörünün imzası çözümlenemez.", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "Bir ifade olarak çağrıldığında özellik dekoratörünün imzası çözümlenemez.", - "Undetermined_character_escape_1513": "Belirlenmemiş karakter kaçışı.", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "Beklenmeyen '{0}'. Ters eğik çizgiyle bundan kaçmak mı istediniz?", "Unexpected_end_of_text_1126": "Beklenmeyen metin sonu.", "Unexpected_keyword_or_identifier_1434": "Beklenmeyen anahtar kelime veya tanımlayıcı.", "Unexpected_token_1012": "Beklenmeyen belirteç.", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "Beklenmeyen belirteç. Şunu mu demek istediniz: `{'>'}` veya `>`?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "Beklenmeyen belirteç. Şunu mu demek istediniz: `{'}'}` veya `}`?", "Unexpected_token_expected_1179": "Beklenmeyen belirteç. '{' bekleniyordu.", - "Unicode_escape_sequence_cannot_appear_here_17021": "Unicode kaçış dizisi burada görünemez.", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "Unicode kaçış dizileri yalnızca Unicode (u) bayrağı veya Unicode Kümeleri (v) bayrağı ayarlandığında kullanılabilir.", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "Unicode özellik değeri ifadeleri yalnızca Unicode (u) bayrağı veya Unicode Kümeleri (v) bayrağı ayarlandığında kullanılabilir.", - "Unknown_Unicode_property_name_1524": "Bilinmeyen Unicode özelliği adı.", - "Unknown_Unicode_property_name_or_value_1529": "Bilinmeyen Unicode özelliği adı veya değeri.", - "Unknown_Unicode_property_value_1526": "Bilinmeyen Unicode özelliği değeri.", "Unknown_build_option_0_5072": "Bilinmeyen '{0}' derleme seçeneği.", "Unknown_build_option_0_Did_you_mean_1_5077": "Bilinmeyen '{0}' derleme seçeneği. Şunu mu demek istediniz: '{1}'?", "Unknown_compiler_option_0_5023": "Bilinmeyen '{0}' derleyici seçeneği.", "Unknown_compiler_option_0_Did_you_mean_1_5025": "Bilinmeyen '{0}' derleyici seçeneği. Şunu mu demek istediniz: '{1}'?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "Bilinmeyen anahtar sözcük veya tanımlayıcı. “{0}” mi demek istediniz?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "'Excludes' seçeneği bilinmiyor. 'Exclude' seçeneğini mi belirtmek istediniz?", - "Unknown_regular_expression_flag_1499": "Bilinmeyen normal ifade bayrağı.", "Unknown_type_acquisition_option_0_17010": "Bilinmeyen '{0}' tür alımı seçeneği.", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "Bilinmeyen '{0}' tür alma seçeneği. Şunu mu demek istediniz: '{1}'?", "Unknown_watch_option_0_5078": "Bilinmeyen '{0}' izleme seçeneği.", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "Kullanılmayan etiket.", "Unused_ts_expect_error_directive_2578": "Kullanılmayan '@ts-expect-error' yönergesi.", "Update_import_from_0_90058": "\"{0}\" kaynağından içeri aktarmayı güncelleştir", - "Update_modifiers_of_0_90061": "'{0}' değiştiricilerini güncelleştirin", + "Updating_output_of_project_0_6373": "'{0}' projesinin çıkışı güncelleştiriliyor...", "Updating_output_timestamps_of_project_0_6359": "'{0}' projesinin çıkış zaman damgaları güncelleştiriliyor...", "Updating_unchanged_output_timestamps_of_project_0_6371": "'{0}' projesinin değiştirilmemiş çıkış zaman damgaları güncelleştiriliyor...", "Use_0_95174": "`{0}` kullanın.", - "Use_0_instead_5106": "Bunun yerine '{0}' kullanın.", "Use_Number_isNaN_in_all_conditions_95175": "Tüm koşullarda `Number.isNaN` kullanın.", "Use_element_access_for_0_95145": "'{0}' için öğe erişimi kullan", "Use_element_access_for_all_undeclared_properties_95146": "Tüm bildirilmemiş özellikler için öğe erişimi kullanın.", - "Use_import_type_95180": "'İçeri aktarma türü' kullanın", "Use_synthetic_default_member_95016": "Yapay 'default' üyesini kullanın.", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "Paket içe aktarmalarını çözümlerken package.json 'exports' alanını kullanın.", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "İçeri aktarmaları çözümlerken package.json dosyasındaki 'imports' alanını kullanın.", - "Use_type_0_95181": "'type {0}' kullanın", "Using_0_subpath_1_with_target_2_6404": "Hedef '{2}' ile '{0}' alt yol '{1}' kullanılıyor.", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "JSX parçalarının kullanımı '{0}' parça fabrikasının kapsamda olmasını gerektiriyor, ancak bulunamadı.", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "'for...of' deyiminde dize kullanma yalnızca ECMAScript 5 veya üzerinde desteklenir.", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "--build kullanarak -b, tsc’nin derleyici yerine derleme düzenleyici gibi davranmasına yol açar. Bu, kompozit projeler oluşturmayı tetiklemek için kullanılır. Daha fazla bilgi edinmek için bkz. {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "'{0}' proje başvurusu yeniden yönlendirmesinin derleyici seçenekleri kullanılıyor.", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "Değişken bildirimi bekleniyor.", "Variable_declaration_list_cannot_be_empty_1123": "Değişken bildirim listesi boş olamaz.", "Variable_declaration_not_allowed_at_this_location_1440": "Bu konumda değişken bildirimine izin verilmiyor.", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "Değişkende --isolatedDeclarations içeren açık bir tür ek açıklaması olmalıdır.", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "Birden çok bildirimi olan değişkenler satır içine alınamaz.", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "Kaynaktaki {0} konumunda bulunan değişen sayıda bağımsız değişken içeren öğe, hedefteki {1} konumunda bulunan öğeyle eşleşmiyor.", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "Varyans ek açıklamaları yalnızca nesne, işlev, oluşturucu ve eşlenen türler için tür diğer adlarında desteklenir.", "Version_0_6029": "Sürüm {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "Tür denetimi sırasında 'null' ve 'undefined' öğelerini hesaba kat.", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Eski konsol çıktısının ekrandan kaldırılmak yerine izleme modunda tutulup tutulmayacağı.", "Wrap_all_invalid_characters_in_an_expression_container_95109": "Geçersiz tüm karakterleri bir ifade kapsayıcısında sarmalayın", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "Tüm geçersiz dekoratör ifadelerini parantez içine alın", "Wrap_all_object_literal_with_parentheses_95116": "Tüm nesne sabit değerini parantez içine alın", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "JSX parçasındaki tüm ana öğesiz JSX'leri sarmala", "Wrap_in_JSX_fragment_95120": "JSX parçasında sarmala", - "Wrap_in_parentheses_95194": "Parantez içine alın", "Wrap_invalid_character_in_an_expression_container_95108": "Geçersiz karakteri bir ifade kapsayıcısında sarmalayın", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "Nesne sabit değeri olması gereken aşağıdaki gövdeyi parantez içine alın", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "Tüm derleyici seçenekleri hakkında bilgi edinmek için bkz. {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' ve '{1}' dizin imzaları uyumsuz.", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' ve '{1}' işlemleri ayraç olmadan karıştırılamaz.", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' iki kez belirtildi. '{0}' özniteliğinin üzerine yazılacak.", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "'{0}' bir türün sonunda geçerli TypeScript sözdizimi değildir. '{1}' yazmak mı istemiştiniz?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "'{0}' bir türün başlangıcında geçerli TypeScript sözdizimi değildir. '{1}' yazmak mı istemiştiniz?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "'{0}' yalnızca 'esModuleInterop' bayrağı etkinleştirilip varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", "_0_can_only_be_imported_by_using_a_default_import_2595": "'{0}' yalnızca varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "'{0}' yalnızca 'require' çağrısı kullanılarak veya 'esModuleInterop' bayrağı etkinleştirilip varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "'{0}' yalnızca 'require' çağrısı veya varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "'{0}' yalnızca 'import {1} = require({2})' veya varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "'{0}' yalnızca 'import {1} = require({2})' kullanılarak veya 'esModuleInterop' bayrağı etkinleştirilip varsayılan içeri aktarma kullanılarak içeri aktarılabilir.", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "'{0}', genel betik dosyası olarak kabul edildiğinden '--isolatedModules' altında derlenemiyor. Bunu bir modül haline getirmek için içeri aktarma, dışarı aktarma veya boş 'export {}' deyimi ekleyin.", "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}', JSX bileşeni olarak kullanılamaz.", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "'{0}', 'export type' kullanılarak dışarı aktarıldığından değer olarak kullanılamaz.", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "'{0}', 'import type' kullanılarak içeri aktarıldığından değer olarak kullanılamaz.", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' bileşenleri, alt öğe olarak metin kabul etmez. JSX'teki metin 'string' türünde ancak beklenen '{1}' türü: '{2}'.", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}' örneği, '{1}' ile ilişkili olmayan rastgele bir türle oluşturulabilir.", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "'{0}' bildirimleri yalnızca bir bloğun içinde bildirilebilir.", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' bildirimleri yalnızca TypeScript dosyalarında kullanılabilir.", - "_0_declarations_may_not_have_binding_patterns_1492": "'{0}' bildirimlerinde bağlama desenleri olamaz.", - "_0_declarations_must_be_initialized_1155": "'{0}' bildirimleri başlatılmalıdır.", "_0_expected_1005": "'{0}' bekleniyor.", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}' bir dize türüne sahip ancak 'isolatedModules' etkinleştirildiğinde sözdizimsel olarak tanınabilir dize sözdizimi olmalıdır.", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}' öğesinin dışarı aktarılan '{1}' adlı bir üyesi yok. '{2}' demek mi istediniz?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' örtük olarak bir '{1}' dönüş türüne sahip ancak kullanımdan daha iyi bir tür çıkarsanabilir.", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "Dönüş türü ek açıklamasına sahip olmadığından ve doğrudan veya dolaylı olarak dönüş ifadelerinden birinde kendine başvurulduğundan, '{0}' öğesi örtük olarak 'any' türüne sahip.", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' dizin türü '{1}' ' {2}' dizin türüne '{3}' atanamaz.", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' temel elemandır ancak '{1}' sarmalayıcı nesnedir. Mümkün olduğunda '{0}' kullanmayı tercih edin.", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' bir tür ve JavaScript dosyalarında içeri aktarılamaz. Bir JSDoc türü ek açıklamasında '{1}' kullanın.", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}' bir türdür ve 'verbatimModuleSyntax' etkinleştirildiğinde yalnızca tür içeri aktarması kullanılarak içeri aktarılmalıdır.", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' bir türdür ve 'preserveValueImports' ve 'isolatedModules' seçeneklerinin her ikisi de etkin olduğunda yalnızca türü içeri aktarma kullanılarak içeri aktarılmalıdır.", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}', '{1}' türünün kullanılmayan bir yeniden adlandırması. Tür ek açıklaması olarak mı kullanmak istediniz?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}', '{1}' türündeki kısıtlamaya atanabilir ancak '{1}' örneği, '{2}' kısıtlamasının farklı bir alt türüyle oluşturulabilir.", "_0_is_automatically_exported_here_18044": "'{0}' burada otomatik olarak dışarı aktarılır.", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "'{0}' listesi boş olamaz.", "_0_modifier_already_seen_1030": "'{0}' değiştiricisi zaten görüldü.", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' değiştiricisi yalnızca bir sınıfın, arabirimin veya tür diğer adının tür parametresinde görünebilir", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "'{0}' değiştiricisi yalnızca bir işlevin, metodun veya sınıfın tür parametresinde görünebilir", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "'{0}' değiştiricisi bir oluşturucu bildiriminde görüntülenemez.", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "'{0}' değiştiricisi, bir modülde veya ad alanı öğesinde görünemez.", "_0_modifier_cannot_appear_on_a_parameter_1090": "'{0}' değiştiricisi bir parametrede görüntülenemez.", "_0_modifier_cannot_appear_on_a_type_member_1070": "'{0}' değiştiricisi, bir tür üyesinde görünemez.", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "'{0}' değiştiricisi, bir tür parametresinde görünemez", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "'{0}' değiştiricisi bir 'using' bildiriminde görünemez.", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "'{0}' değiştiricisi bir 'await using' bildiriminde görünemez.", "_0_modifier_cannot_appear_on_an_index_signature_1071": "'{0}' değiştiricisi, bir dizin imzasında görünemez.", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "'{0}' değiştiricisi bu tip sınıf öğelerinde görünemez.", "_0_modifier_cannot_be_used_here_1042": "'{0}' değiştiricisi burada kullanılamaz.", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' değiştiricisi, '{1}' değiştiricisi ile birlikte kullanılamaz.", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' değiştiricisi özel bir tanımlayıcıyla birlikte kullanılamaz.", "_0_modifier_must_precede_1_modifier_1029": "'{0}' değiştiricisi, '{1}' değiştiricisinden önce gelmelidir.", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' ifadesinden sonra küme ayraçları içine alınmış bir Unicode özellik değeri ifadesi gelmelidir.", "_0_needs_an_explicit_type_annotation_2782": "'{0}' açık bir tür ek açıklamasına ihtiyaç duyuyor.", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' yalnızca bir türe başvuruyor, ancak burada bir ad alanı olarak kullanılıyor.", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' yalnızca bir türe başvuruyor, ancak burada bir değer olarak kullanılıyor.", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "'{0}' yalnızca bir türe başvuruyor ancak burada bir değer olarak kullanılıyor. Hedef kitaplığınızı değiştirmeniz gerekiyor mu? 'lib' derleyici seçeneğini es2015 veya üzeri olarak değiştirmeyi deneyin.", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' bir UMD genel öğesine başvuruyor, ancak geçerli dosya bir modül. Bunun yerine bir içeri aktarma eklemeyi deneyin.", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' bir değere başvuruyor ancak burada tür olarak kullanılıyor. 'typeof {0}' kullanmak mı istediniz?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}', bir tür olarak çözümlenir ve '{1}' etkinleştirildiğinde yeniden dışa aktarmadan önce bu dosyada yalnızca tür olarak işaretlenmelidir. '{0}' içeri aktarıldığında 'import type' kullanmayı göz önünde bulundurun.", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}', bir tür olarak çözümlenir ve '{1}' etkinleştirildiğinde yeniden dışa aktarmadan önce bu dosyada yalnızca tür olarak işaretlenmelidir. 'export type { varsayılan olarak {0} }' kullanmayı düşünün.", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve 'verbatimModuleSyntax' etkinleştirildiğinde yalnızca tür içeri aktarması kullanılarak içeri aktarılmalıdır.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve '{1}' etkinleştirildiğinde yeniden dışa aktarmadan önce bu dosyada yalnızca tür olarak işaretlenmelidir. '{0}' içeri aktarıldığında 'import type' kullanmayı göz önünde bulundurun.", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve '{1}' etkinleştirildiğinde yeniden dışa aktarmadan önce bu dosyada yalnızca tür olarak işaretlenmelidir. 'export type { varsayılan olarak {0} }' kullanmayı düşünün.", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve '{1}' etkin olduğunda yalnızca türü yeniden dışarı aktarma kullanılarak yeniden dışarı aktarılmalıdır.", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve 'preserveValueImports' ve 'isolatedModules' seçeneklerinin her ikisi de etkin olduğunda yalnızca türü içeri aktarma kullanılarak içeri aktarılmalıdır.", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}', yalnızca tür bildirimi olarak çözümlenir ve 'isolatedModules' etkin olduğunda yalnızca türü yeniden dışarı aktarma kullanılarak yeniden dışarı aktarılmalıdır.", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}', config.json dosyasının 'compilerOptions' nesnesi içinden ayarlanmalıdır", "_0_tag_already_specified_1223": "'{0}' etiketi zaten belirtildi.", "_0_was_also_declared_here_6203": "'{0}' öğesi de burada bildirildi.", @@ -1999,22 +1780,19 @@ "and_here_6204": "ve buraya.", "arguments_cannot_be_referenced_in_property_initializers_2815": "Özellik başlatıcılarda 'arguments' öğesine başvurulamaz.", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": İçe aktarma, dışa aktarma, import.meta, jsx (jsx: react-jsx ile) veya esm biçimi (modül: node16+ ile) içeren dosyaları modül olarak ele alın.", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "‘await’ ifadesi bir sınıf statik bloğu içinde kullanılamaz.", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "'await' ifadelerine yalnızca dosya bir modül olduğunda dosyanın en üst düzeyinde izin verilir ancak bu dosyanın içeri veya dışarı aktarma işlemi yok. Bu dosyayı modül yapmak için boş bir 'export {}' eklemeyi deneyin.", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "'await' ifadelerine yalnızca asenkron işlevler içinde ve modüllerin en üst düzeylerinde izin verilir.", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' ifadeleri bir parametre başlatıcısında kullanılamaz.", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' öğesinin bu ifadenin türü üzerinde etkisi yoktur.", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "'await using' ifadelerine yalnızca dosya bir modül olduğunda dosyanın en üst düzeyinde izin verilir ancak bu dosyanın içeri veya dışarı aktarma işlemi yok. Bu dosyayı modül yapmak için boş bir 'export {}' eklemeyi deneyin.", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' ifadelerine yalnızca asenkron işlevler içinde ve modüllerin en üst düzeylerinde izin verilir.", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' ifadeleri bir sınıf statik bloğu içinde kullanılamaz.", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' seçeneği '{0}' olarak ayarlandı; göreli olmayan '{1}' modül adını çözümlemek için bu değer kullanılıyor.", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' ardından bir ASCII harfi gelmelidir.", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' yalnızca dosyanın başlangıcında kullanılabilir.", "case_or_default_expected_1130": "'case' veya 'default' ifadeleri bekleniyor.", "catch_or_finally_expected_1472": "'catch' veya 'finally' bekleniyor.", + "const_declarations_can_only_be_declared_inside_a_block_1156": "'const' bildirimleri yalnızca bir bloğun içinde bildirilebilir.", + "const_declarations_must_be_initialized_1155": "'const' bildirimlerinin başlatılması gerekiyor.", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' sabit listesi üyesi başlatıcısı, sonlu olmayan bir değer olarak hesaplandı.", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' sabit listesi üyesi başlatıcısı, izin verilmeyen 'NaN' değeri olarak hesaplandı.", - "const_enum_member_initializers_must_be_constant_expressions_2474": "const sabit listesi üye başlatıcıları sabit ifadeler olmalıdır.", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "const sabit listesi üyesi başlatıcıları yalnızca sabit değerleri ve diğer hesaplanan sabit listesi değerlerini içerebilir.", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' sabit listeleri yalnızca bir özellikte, dizin erişim ifadelerinde, içeri aktarma bildiriminin veya dışarı aktarma atamasının sağ tarafında ya da tür sorgusunda kullanılabilir.", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor', parametre özellik adı olarak kullanılamaz.", "constructor_is_a_reserved_word_18012": "'#constructor' ayrılmış bir sözcüktür.", @@ -2033,14 +1811,13 @@ "file_6025": "dosya", "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' döngülerine yalnızca dosya bir modül olduğunda dosyanın en üst düzeyinde izin verilir ancak bu dosyanın içeri veya dışarı aktarma işlemi yok. Bu dosyayı modül yapmak için boş bir 'export {}' eklemeyi deneyin.", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "'for await' döngülerine yalnızca asenkron işlevler içinde ve modüllerin en üst düzeylerinde izin verilir.", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' döngüleri bir sınıf statik bloğu içinde kullanılamaz.", "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' ve 'set' erişimcileri 'this' parametreleri bildiremez.", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "'Files' ayarlanmışsa ‘[]', aksi takdirde `[\"**/*\"]5D;`", "implements_clause_already_seen_1175": "'implements' yan tümcesi zaten görüldü.", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' yan tümceleri yalnızca TypeScript dosyalarında kullanılabilir.", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' yalnızca TypeScript dosyalarında kullanılabilir.", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "'infer' bildirimlerine yalnızca bir koşullu türün 'extends' yan tümcesinde izin verilir.", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' ifadesinden sonra açılı ayraçlar içine alınmış bir yakalama grubu adı gelmelidir.", + "let_declarations_can_only_be_declared_inside_a_block_1157": "'let' bildirimleri yalnızca bu bloğun içinde bildirilebilir.", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' ifadesi, 'let' veya 'const' bildirimlerinde ad olarak kullanılamaz.", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === 'AMD' veya 'UMD' veya 'Sistem' veya 'ES6' ve ardından 'Klasik', aksi durumda 'Node'", "module_system_or_esModuleInterop_6904": "module === \"sistem\" veya esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json', '{0}' sürümüyle eşleşen bir 'typesVersions' girdisine sahip değil.", "package_json_had_a_falsy_0_field_6220": "'package.json' hatalı bir '{0}' alanı içeriyordu.", "package_json_has_0_field_1_that_references_2_6101": "'package.json', '{2}' öğesine başvuruda bulunan '{1}' adlı '{0}' alanını içeriyor.", - "package_json_has_a_peerDependencies_field_6281": "'package.json', 'peerDependencies' alanı içeriyor.", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json', geçerli bir semver aralığı olmayan '{0}' 'typesVersions' girdisine sahip.", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json', '{2}' modül adıyla eşleşen bir desen arayan '{1}' derleyici sürümüyle eşleşen '{0}' 'typesVersions' girdisine sahip.", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json', sürüme özgü yol eşlemeleri olan bir 'typesVersions' alanına sahip.", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "'{0}' package.json kapsamı, '{1}' tanımlayıcısının hedefi için geçersiz türe sahip", "package_json_scope_0_has_no_imports_defined_6273": "'{0}' package.json kapsamında içeri aktarma tanımlanmadı.", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' seçeneği belirtildi, '{0}' modül adıyla eşleşen bir desen aranıyor.", - "q_is_only_available_inside_character_class_1511": "'\\q' yalnızca karakter sınıfının içinde kullanılabilir.", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' ardından küme ayraçları içine alınmış dize alternatifleri gelmelidir.", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' değiştiricisi yalnızca özellik bildiriminde ya da dizin imzasında görünebilir.", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' tür değiştiricisine yalnızca dizide ve demet sabit değeri türlerinde izin verilir.", "require_call_may_be_converted_to_an_import_80005": "'require' çağrısı bir import olarak dönüştürülebilir.", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "'resolution-mode' onaylamaları yalnızca 'moduleResolution' değeri 'node16' veya 'nodenext' olduğunda desteklenir.", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' onaylamaları kararlı değil. Bu hatayı sessize almak için gecelik TypeScript kullanın. 'npm install -D typescript@next' ile güncelleştirmeyi deneyin.", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "`resolution-mode` yalnızca tür içeri aktarmaları için ayarlanabilir.", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "`resolution-mode`, tür içe aktarma iddiaları için tek geçerli anahtardır.", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "`resolution-mode`, tür içe aktarma öznitelikleri için tek geçerli anahtardır.", "resolution_mode_should_be_either_require_or_import_1453": "`resolution-mode`, `require` ya da `import` olmalıdır.", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' seçeneği ayarlandı, '{0}' göreli modül adını çözümlemek için bu değer kullanılıyor.", "super_can_only_be_referenced_in_a_derived_class_2335": "'super' öğesine yalnızca bir türetilmiş sınıfta başvurulabilir.", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "'this' öğesine hesaplanan bir özellik adında başvurulamaz.", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "'this' öğesine bir modülde veya ad alanı gövdesinde başvurulamaz.", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "'this' öğesine statik özellik başlatıcısında başvurulamaz.", + "this_cannot_be_referenced_in_constructor_arguments_2333": "'super' öğesine oluşturucu bağımsız değişkenlerinde başvurulamaz.", "this_cannot_be_referenced_in_current_location_2332": "'this' öğesine geçerli konumda başvurulamaz.", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "'this', tür ek açıklamasına sahip olmadığından örtük olarak 'any' türü içeriyor", "true_for_ES2022_and_above_including_ESNext_6930": "ESNext dahil olmak üzere ES2022 ve üzeri için `true` olarak ayarlanır.", "true_if_composite_false_otherwise_6909": "'Kompozit' ayarlanmışsa 'true', değilse 'false'", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "'moduleResolution'; 'node16', 'nodenext' veya 'bundler' olduğunda `true`, aksi halde `false`.", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: The TypeScript Derleyicisi", "type_Colon_6902": "tür:", "unique_symbol_types_are_not_allowed_here_1335": "Burada 'unique symbol' türlerine izin verilmez.", diff --git a/node_modules/typescript/lib/tsc.js b/node_modules/typescript/lib/tsc.js index 72e3416e3..29d5dbb78 100644 --- a/node_modules/typescript/lib/tsc.js +++ b/node_modules/typescript/lib/tsc.js @@ -1,8 +1,129810 @@ -// This file is a shim which defers loading the real module until the compile cache is enabled. +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +"use strict"; + +// src/compiler/corePublic.ts +var versionMajorMinor = "5.5"; +var version = "5.5.4"; + +// src/compiler/core.ts +var emptyArray = []; +var emptyMap = /* @__PURE__ */ new Map(); +function length(array) { + return array ? array.length : 0; +} +function forEach(array, callback) { + if (array) { + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result) { + return result; + } + } + } + return void 0; +} +function firstDefined(array, callback) { + if (array === void 0) { + return void 0; + } + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result !== void 0) { + return result; + } + } + return void 0; +} +function firstDefinedIterator(iter, callback) { + for (const value of iter) { + const result = callback(value); + if (result !== void 0) { + return result; + } + } + return void 0; +} +function reduceLeftIterator(iterator, f, initial) { + let result = initial; + if (iterator) { + let pos = 0; + for (const value of iterator) { + result = f(result, value, pos); + pos++; + } + } + return result; +} +function zipWith(arrayA, arrayB, callback) { + const result = []; + Debug.assertEqual(arrayA.length, arrayB.length); + for (let i = 0; i < arrayA.length; i++) { + result.push(callback(arrayA[i], arrayB[i], i)); + } + return result; +} +function every(array, callback) { + if (array) { + for (let i = 0; i < array.length; i++) { + if (!callback(array[i], i)) { + return false; + } + } + } + return true; +} +function find(array, predicate, startIndex) { + if (array === void 0) return void 0; + for (let i = startIndex ?? 0; i < array.length; i++) { + const value = array[i]; + if (predicate(value, i)) { + return value; + } + } + return void 0; +} +function findLast(array, predicate, startIndex) { + if (array === void 0) return void 0; + for (let i = startIndex ?? array.length - 1; i >= 0; i--) { + const value = array[i]; + if (predicate(value, i)) { + return value; + } + } + return void 0; +} +function findIndex(array, predicate, startIndex) { + if (array === void 0) return -1; + for (let i = startIndex ?? 0; i < array.length; i++) { + if (predicate(array[i], i)) { + return i; + } + } + return -1; +} +function findLastIndex(array, predicate, startIndex) { + if (array === void 0) return -1; + for (let i = startIndex ?? array.length - 1; i >= 0; i--) { + if (predicate(array[i], i)) { + return i; + } + } + return -1; +} +function contains(array, value, equalityComparer = equateValues) { + if (array) { + for (const v of array) { + if (equalityComparer(v, value)) { + return true; + } + } + } + return false; +} +function arraysEqual(a, b, equalityComparer = equateValues) { + return a.length === b.length && a.every((x, i) => equalityComparer(x, b[i])); +} +function indexOfAnyCharCode(text, charCodes, start) { + for (let i = start || 0; i < text.length; i++) { + if (contains(charCodes, text.charCodeAt(i))) { + return i; + } + } + return -1; +} +function countWhere(array, predicate) { + let count = 0; + if (array) { + for (let i = 0; i < array.length; i++) { + const v = array[i]; + if (predicate(v, i)) { + count++; + } + } + } + return count; +} +function filter(array, f) { + if (array) { + const len = array.length; + let i = 0; + while (i < len && f(array[i])) i++; + if (i < len) { + const result = array.slice(0, i); + i++; + while (i < len) { + const item = array[i]; + if (f(item)) { + result.push(item); + } + i++; + } + return result; + } + } + return array; +} +function filterMutate(array, f) { + let outIndex = 0; + for (let i = 0; i < array.length; i++) { + if (f(array[i], i, array)) { + array[outIndex] = array[i]; + outIndex++; + } + } + array.length = outIndex; +} +function clear(array) { + array.length = 0; +} +function map(array, f) { + let result; + if (array) { + result = []; + for (let i = 0; i < array.length; i++) { + result.push(f(array[i], i)); + } + } + return result; +} +function* mapIterator(iter, mapFn) { + for (const x of iter) { + yield mapFn(x); + } +} +function sameMap(array, f) { + if (array) { + for (let i = 0; i < array.length; i++) { + const item = array[i]; + const mapped = f(item, i); + if (item !== mapped) { + const result = array.slice(0, i); + result.push(mapped); + for (i++; i < array.length; i++) { + result.push(f(array[i], i)); + } + return result; + } + } + } + return array; +} +function flatten(array) { + const result = []; + for (const v of array) { + if (v) { + if (isArray(v)) { + addRange(result, v); + } else { + result.push(v); + } + } + } + return result; +} +function flatMap(array, mapfn) { + let result; + if (array) { + for (let i = 0; i < array.length; i++) { + const v = mapfn(array[i], i); + if (v) { + if (isArray(v)) { + result = addRange(result, v); + } else { + result = append(result, v); + } + } + } + } + return result || emptyArray; +} +function flatMapToMutable(array, mapfn) { + const result = []; + if (array) { + for (let i = 0; i < array.length; i++) { + const v = mapfn(array[i], i); + if (v) { + if (isArray(v)) { + addRange(result, v); + } else { + result.push(v); + } + } + } + } + return result; +} +function sameFlatMap(array, mapfn) { + let result; + if (array) { + for (let i = 0; i < array.length; i++) { + const item = array[i]; + const mapped = mapfn(item, i); + if (result || item !== mapped || isArray(mapped)) { + if (!result) { + result = array.slice(0, i); + } + if (isArray(mapped)) { + addRange(result, mapped); + } else { + result.push(mapped); + } + } + } + } + return result || array; +} +function mapDefined(array, mapFn) { + const result = []; + if (array) { + for (let i = 0; i < array.length; i++) { + const mapped = mapFn(array[i], i); + if (mapped !== void 0) { + result.push(mapped); + } + } + } + return result; +} +function* mapDefinedIterator(iter, mapFn) { + for (const x of iter) { + const value = mapFn(x); + if (value !== void 0) { + yield value; + } + } +} +function getOrUpdate(map2, key, callback) { + if (map2.has(key)) { + return map2.get(key); + } + const value = callback(); + map2.set(key, value); + return value; +} +function tryAddToSet(set, value) { + if (!set.has(value)) { + set.add(value); + return true; + } + return false; +} +function spanMap(array, keyfn, mapfn) { + let result; + if (array) { + result = []; + const len = array.length; + let previousKey; + let key; + let start = 0; + let pos = 0; + while (start < len) { + while (pos < len) { + const value = array[pos]; + key = keyfn(value, pos); + if (pos === 0) { + previousKey = key; + } else if (key !== previousKey) { + break; + } + pos++; + } + if (start < pos) { + const v = mapfn(array.slice(start, pos), previousKey, start, pos); + if (v) { + result.push(v); + } + start = pos; + } + previousKey = key; + pos++; + } + } + return result; +} +function some(array, predicate) { + if (array) { + if (predicate) { + for (const v of array) { + if (predicate(v)) { + return true; + } + } + } else { + return array.length > 0; + } + } + return false; +} +function getRangesWhere(arr, pred, cb) { + let start; + for (let i = 0; i < arr.length; i++) { + if (pred(arr[i])) { + start = start === void 0 ? i : start; + } else { + if (start !== void 0) { + cb(start, i); + start = void 0; + } + } + } + if (start !== void 0) cb(start, arr.length); +} +function concatenate(array1, array2) { + if (!some(array2)) return array1; + if (!some(array1)) return array2; + return [...array1, ...array2]; +} +function selectIndex(_, i) { + return i; +} +function indicesOf(array) { + return array.map(selectIndex); +} +function deduplicateRelational(array, equalityComparer, comparer) { + const indices = indicesOf(array); + stableSortIndices(array, indices, comparer); + let last2 = array[indices[0]]; + const deduplicated = [indices[0]]; + for (let i = 1; i < indices.length; i++) { + const index = indices[i]; + const item = array[index]; + if (!equalityComparer(last2, item)) { + deduplicated.push(index); + last2 = item; + } + } + deduplicated.sort(); + return deduplicated.map((i) => array[i]); +} +function deduplicateEquality(array, equalityComparer) { + const result = []; + for (const item of array) { + pushIfUnique(result, item, equalityComparer); + } + return result; +} +function deduplicate(array, equalityComparer, comparer) { + return array.length === 0 ? [] : array.length === 1 ? array.slice() : comparer ? deduplicateRelational(array, equalityComparer, comparer) : deduplicateEquality(array, equalityComparer); +} +function deduplicateSorted(array, comparer) { + if (array.length === 0) return emptyArray; + let last2 = array[0]; + const deduplicated = [last2]; + for (let i = 1; i < array.length; i++) { + const next = array[i]; + switch (comparer(next, last2)) { + case true: + case 0 /* EqualTo */: + continue; + case -1 /* LessThan */: + return Debug.fail("Array is unsorted."); + } + deduplicated.push(last2 = next); + } + return deduplicated; +} +function insertSorted(array, insert, compare, equalityComparer, allowDuplicates) { + if (array.length === 0) { + array.push(insert); + return true; + } + const insertIndex = binarySearch(array, insert, identity, compare); + if (insertIndex < 0) { + if (equalityComparer && !allowDuplicates) { + const idx = ~insertIndex; + if (idx > 0 && equalityComparer(insert, array[idx - 1])) { + return false; + } + if (idx < array.length && equalityComparer(insert, array[idx])) { + array.splice(idx, 1, insert); + return true; + } + } + array.splice(~insertIndex, 0, insert); + return true; + } + if (allowDuplicates) { + array.splice(insertIndex, 0, insert); + return true; + } + return false; +} +function sortAndDeduplicate(array, comparer, equalityComparer) { + return deduplicateSorted(sort(array, comparer), equalityComparer || comparer || compareStringsCaseSensitive); +} +function arrayIsEqualTo(array1, array2, equalityComparer = equateValues) { + if (!array1 || !array2) { + return array1 === array2; + } + if (array1.length !== array2.length) { + return false; + } + for (let i = 0; i < array1.length; i++) { + if (!equalityComparer(array1[i], array2[i], i)) { + return false; + } + } + return true; +} +function compact(array) { + let result; + if (array) { + for (let i = 0; i < array.length; i++) { + const v = array[i]; + if (result || !v) { + if (!result) { + result = array.slice(0, i); + } + if (v) { + result.push(v); + } + } + } + } + return result || array; +} +function relativeComplement(arrayA, arrayB, comparer) { + if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0) return arrayB; + const result = []; + loopB: + for (let offsetA = 0, offsetB = 0; offsetB < arrayB.length; offsetB++) { + if (offsetB > 0) { + Debug.assertGreaterThanOrEqual(comparer(arrayB[offsetB], arrayB[offsetB - 1]), 0 /* EqualTo */); + } + loopA: + for (const startA = offsetA; offsetA < arrayA.length; offsetA++) { + if (offsetA > startA) { + Debug.assertGreaterThanOrEqual(comparer(arrayA[offsetA], arrayA[offsetA - 1]), 0 /* EqualTo */); + } + switch (comparer(arrayB[offsetB], arrayA[offsetA])) { + case -1 /* LessThan */: + result.push(arrayB[offsetB]); + continue loopB; + case 0 /* EqualTo */: + continue loopB; + case 1 /* GreaterThan */: + continue loopA; + } + } + } + return result; +} +function append(to, value) { + if (value === void 0) return to; + if (to === void 0) return [value]; + to.push(value); + return to; +} +function toOffset(array, offset) { + return offset < 0 ? array.length + offset : offset; +} +function addRange(to, from, start, end) { + if (from === void 0 || from.length === 0) return to; + if (to === void 0) return from.slice(start, end); + start = start === void 0 ? 0 : toOffset(from, start); + end = end === void 0 ? from.length : toOffset(from, end); + for (let i = start; i < end && i < from.length; i++) { + if (from[i] !== void 0) { + to.push(from[i]); + } + } + return to; +} +function pushIfUnique(array, toAdd, equalityComparer) { + if (contains(array, toAdd, equalityComparer)) { + return false; + } else { + array.push(toAdd); + return true; + } +} +function appendIfUnique(array, toAdd, equalityComparer) { + if (array) { + pushIfUnique(array, toAdd, equalityComparer); + return array; + } else { + return [toAdd]; + } +} +function stableSortIndices(array, indices, comparer) { + indices.sort((x, y) => comparer(array[x], array[y]) || compareValues(x, y)); +} +function sort(array, comparer) { + return array.length === 0 ? array : array.slice().sort(comparer); +} +function stableSort(array, comparer) { + const indices = indicesOf(array); + stableSortIndices(array, indices, comparer); + return indices.map((i) => array[i]); +} +function rangeEquals(array1, array2, pos, end) { + while (pos < end) { + if (array1[pos] !== array2[pos]) { + return false; + } + pos++; + } + return true; +} +var elementAt = !!Array.prototype.at ? (array, offset) => array == null ? void 0 : array.at(offset) : (array, offset) => { + if (array) { + offset = toOffset(array, offset); + if (offset < array.length) { + return array[offset]; + } + } + return void 0; +}; +function firstOrUndefined(array) { + return array === void 0 || array.length === 0 ? void 0 : array[0]; +} +function firstOrUndefinedIterator(iter) { + if (iter) { + for (const value of iter) { + return value; + } + } + return void 0; +} +function first(array) { + Debug.assert(array.length !== 0); + return array[0]; +} +function firstIterator(iter) { + for (const value of iter) { + return value; + } + Debug.fail("iterator is empty"); +} +function lastOrUndefined(array) { + return array === void 0 || array.length === 0 ? void 0 : array[array.length - 1]; +} +function last(array) { + Debug.assert(array.length !== 0); + return array[array.length - 1]; +} +function singleOrUndefined(array) { + return array && array.length === 1 ? array[0] : void 0; +} +function singleOrMany(array) { + return array && array.length === 1 ? array[0] : array; +} +function replaceElement(array, index, value) { + const result = array.slice(0); + result[index] = value; + return result; +} +function binarySearch(array, value, keySelector, keyComparer, offset) { + return binarySearchKey(array, keySelector(value), keySelector, keyComparer, offset); +} +function binarySearchKey(array, key, keySelector, keyComparer, offset) { + if (!some(array)) { + return -1; + } + let low = offset || 0; + let high = array.length - 1; + while (low <= high) { + const middle = low + (high - low >> 1); + const midKey = keySelector(array[middle], middle); + switch (keyComparer(midKey, key)) { + case -1 /* LessThan */: + low = middle + 1; + break; + case 0 /* EqualTo */: + return middle; + case 1 /* GreaterThan */: + high = middle - 1; + break; + } + } + return ~low; +} +function reduceLeft(array, f, initial, start, count) { + if (array && array.length > 0) { + const size = array.length; + if (size > 0) { + let pos = start === void 0 || start < 0 ? 0 : start; + const end = count === void 0 || pos + count > size - 1 ? size - 1 : pos + count; + let result; + if (arguments.length <= 2) { + result = array[pos]; + pos++; + } else { + result = initial; + } + while (pos <= end) { + result = f(result, array[pos], pos); + pos++; + } + return result; + } + } + return initial; +} +var hasOwnProperty = Object.prototype.hasOwnProperty; +function hasProperty(map2, key) { + return hasOwnProperty.call(map2, key); +} +function getOwnKeys(map2) { + const keys = []; + for (const key in map2) { + if (hasOwnProperty.call(map2, key)) { + keys.push(key); + } + } + return keys; +} +function getOwnValues(collection) { + const values = []; + for (const key in collection) { + if (hasOwnProperty.call(collection, key)) { + values.push(collection[key]); + } + } + return values; +} +function arrayOf(count, f) { + const result = new Array(count); + for (let i = 0; i < count; i++) { + result[i] = f(i); + } + return result; +} +function arrayFrom(iterator, map2) { + const result = []; + for (const value of iterator) { + result.push(map2 ? map2(value) : value); + } + return result; +} +function assign(t, ...args) { + for (const arg of args) { + if (arg === void 0) continue; + for (const p in arg) { + if (hasProperty(arg, p)) { + t[p] = arg[p]; + } + } + } + return t; +} +function equalOwnProperties(left, right, equalityComparer = equateValues) { + if (left === right) return true; + if (!left || !right) return false; + for (const key in left) { + if (hasOwnProperty.call(left, key)) { + if (!hasOwnProperty.call(right, key)) return false; + if (!equalityComparer(left[key], right[key])) return false; + } + } + for (const key in right) { + if (hasOwnProperty.call(right, key)) { + if (!hasOwnProperty.call(left, key)) return false; + } + } + return true; +} +function arrayToMap(array, makeKey, makeValue = identity) { + const result = /* @__PURE__ */ new Map(); + for (const value of array) { + const key = makeKey(value); + if (key !== void 0) result.set(key, makeValue(value)); + } + return result; +} +function arrayToMultiMap(values, makeKey, makeValue = identity) { + const result = createMultiMap(); + for (const value of values) { + result.add(makeKey(value), makeValue(value)); + } + return result; +} +function group(values, getGroupId, resultSelector = identity) { + return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector); +} +function groupBy(values, keySelector) { + const result = {}; + if (values) { + for (const value of values) { + const key = `${keySelector(value)}`; + const array = result[key] ?? (result[key] = []); + array.push(value); + } + } + return result; +} +function extend(first2, second) { + const result = {}; + for (const id in second) { + if (hasOwnProperty.call(second, id)) { + result[id] = second[id]; + } + } + for (const id in first2) { + if (hasOwnProperty.call(first2, id)) { + result[id] = first2[id]; + } + } + return result; +} +function copyProperties(first2, second) { + for (const id in second) { + if (hasOwnProperty.call(second, id)) { + first2[id] = second[id]; + } + } +} +function maybeBind(obj, fn) { + return fn ? fn.bind(obj) : void 0; +} +function createMultiMap() { + const map2 = /* @__PURE__ */ new Map(); + map2.add = multiMapAdd; + map2.remove = multiMapRemove; + return map2; +} +function multiMapAdd(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; +} +function multiMapRemove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } +} +function createQueue(items) { + const elements = (items == null ? void 0 : items.slice()) || []; + let headIndex = 0; + function isEmpty() { + return headIndex === elements.length; + } + function enqueue(...items2) { + elements.push(...items2); + } + function dequeue() { + if (isEmpty()) { + throw new Error("Queue is empty"); + } + const result = elements[headIndex]; + elements[headIndex] = void 0; + headIndex++; + if (headIndex > 100 && headIndex > elements.length >> 1) { + const newLength = elements.length - headIndex; + elements.copyWithin( + /*target*/ + 0, + /*start*/ + headIndex + ); + elements.length = newLength; + headIndex = 0; + } + return result; + } + return { + enqueue, + dequeue, + isEmpty + }; +} +function isArray(value) { + return Array.isArray(value); +} +function toArray(value) { + return isArray(value) ? value : [value]; +} +function isString(text) { + return typeof text === "string"; +} +function isNumber(x) { + return typeof x === "number"; +} +function tryCast(value, test) { + return value !== void 0 && test(value) ? value : void 0; +} +function cast(value, test) { + if (value !== void 0 && test(value)) return value; + return Debug.fail(`Invalid cast. The supplied value ${value} did not pass the test '${Debug.getFunctionName(test)}'.`); +} +function noop(_) { +} +function returnFalse() { + return false; +} +function returnTrue() { + return true; +} +function returnUndefined() { + return void 0; +} +function identity(x) { + return x; +} +function toLowerCase(x) { + return x.toLowerCase(); +} +var fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g; +function toFileNameLowerCase(x) { + return fileNameLowerCaseRegExp.test(x) ? x.replace(fileNameLowerCaseRegExp, toLowerCase) : x; +} +function notImplemented() { + throw new Error("Not implemented"); +} +function memoize(callback) { + let value; + return () => { + if (callback) { + value = callback(); + callback = void 0; + } + return value; + }; +} +function memoizeOne(callback) { + const map2 = /* @__PURE__ */ new Map(); + return (arg) => { + const key = `${typeof arg}:${arg}`; + let value = map2.get(key); + if (value === void 0 && !map2.has(key)) { + value = callback(arg); + map2.set(key, value); + } + return value; + }; +} +function equateValues(a, b) { + return a === b; +} +function equateStringsCaseInsensitive(a, b) { + return a === b || a !== void 0 && b !== void 0 && a.toUpperCase() === b.toUpperCase(); +} +function equateStringsCaseSensitive(a, b) { + return equateValues(a, b); +} +function compareComparableValues(a, b) { + return a === b ? 0 /* EqualTo */ : a === void 0 ? -1 /* LessThan */ : b === void 0 ? 1 /* GreaterThan */ : a < b ? -1 /* LessThan */ : 1 /* GreaterThan */; +} +function compareValues(a, b) { + return compareComparableValues(a, b); +} +function min(items, compare) { + return reduceLeft(items, (x, y) => compare(x, y) === -1 /* LessThan */ ? x : y); +} +function compareStringsCaseInsensitive(a, b) { + if (a === b) return 0 /* EqualTo */; + if (a === void 0) return -1 /* LessThan */; + if (b === void 0) return 1 /* GreaterThan */; + a = a.toUpperCase(); + b = b.toUpperCase(); + return a < b ? -1 /* LessThan */ : a > b ? 1 /* GreaterThan */ : 0 /* EqualTo */; +} +function compareStringsCaseSensitive(a, b) { + return compareComparableValues(a, b); +} +function getStringComparer(ignoreCase) { + return ignoreCase ? compareStringsCaseInsensitive : compareStringsCaseSensitive; +} +var uiComparerCaseSensitive; +var uiLocale; +function setUILocale(value) { + if (uiLocale !== value) { + uiLocale = value; + uiComparerCaseSensitive = void 0; + } +} +function compareBooleans(a, b) { + return compareValues(a ? 1 : 0, b ? 1 : 0); +} +function getSpellingSuggestion(name, candidates, getName) { + const maximumLengthDifference = Math.max(2, Math.floor(name.length * 0.34)); + let bestDistance = Math.floor(name.length * 0.4) + 1; + let bestCandidate; + for (const candidate of candidates) { + const candidateName = getName(candidate); + if (candidateName !== void 0 && Math.abs(candidateName.length - name.length) <= maximumLengthDifference) { + if (candidateName === name) { + continue; + } + if (candidateName.length < 3 && candidateName.toLowerCase() !== name.toLowerCase()) { + continue; + } + const distance = levenshteinWithMax(name, candidateName, bestDistance - 0.1); + if (distance === void 0) { + continue; + } + Debug.assert(distance < bestDistance); + bestDistance = distance; + bestCandidate = candidate; + } + } + return bestCandidate; +} +function levenshteinWithMax(s1, s2, max) { + let previous = new Array(s2.length + 1); + let current = new Array(s2.length + 1); + const big = max + 0.01; + for (let i = 0; i <= s2.length; i++) { + previous[i] = i; + } + for (let i = 1; i <= s1.length; i++) { + const c1 = s1.charCodeAt(i - 1); + const minJ = Math.ceil(i > max ? i - max : 1); + const maxJ = Math.floor(s2.length > max + i ? max + i : s2.length); + current[0] = i; + let colMin = i; + for (let j = 1; j < minJ; j++) { + current[j] = big; + } + for (let j = minJ; j <= maxJ; j++) { + const substitutionDistance = s1[i - 1].toLowerCase() === s2[j - 1].toLowerCase() ? previous[j - 1] + 0.1 : previous[j - 1] + 2; + const dist = c1 === s2.charCodeAt(j - 1) ? previous[j - 1] : Math.min( + /*delete*/ + previous[j] + 1, + /*insert*/ + current[j - 1] + 1, + /*substitute*/ + substitutionDistance + ); + current[j] = dist; + colMin = Math.min(colMin, dist); + } + for (let j = maxJ + 1; j <= s2.length; j++) { + current[j] = big; + } + if (colMin > max) { + return void 0; + } + const temp = previous; + previous = current; + current = temp; + } + const res = previous[s2.length]; + return res > max ? void 0 : res; +} +function endsWith(str, suffix, ignoreCase) { + const expectedPos = str.length - suffix.length; + return expectedPos >= 0 && (ignoreCase ? equateStringsCaseInsensitive(str.slice(expectedPos), suffix) : str.indexOf(suffix, expectedPos) === expectedPos); +} +function removeSuffix(str, suffix) { + return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : str; +} +function orderedRemoveItem(array, item) { + for (let i = 0; i < array.length; i++) { + if (array[i] === item) { + orderedRemoveItemAt(array, i); + return true; + } + } + return false; +} +function orderedRemoveItemAt(array, index) { + for (let i = index; i < array.length - 1; i++) { + array[i] = array[i + 1]; + } + array.pop(); +} +function unorderedRemoveItemAt(array, index) { + array[index] = array[array.length - 1]; + array.pop(); +} +function unorderedRemoveItem(array, item) { + return unorderedRemoveFirstItemWhere(array, (element) => element === item); +} +function unorderedRemoveFirstItemWhere(array, predicate) { + for (let i = 0; i < array.length; i++) { + if (predicate(array[i])) { + unorderedRemoveItemAt(array, i); + return true; + } + } + return false; +} +function createGetCanonicalFileName(useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase; +} +function patternText({ prefix, suffix }) { + return `${prefix}*${suffix}`; +} +function matchedText(pattern, candidate) { + Debug.assert(isPatternMatch(pattern, candidate)); + return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length); +} +function findBestPatternMatch(values, getPattern, candidate) { + let matchedValue; + let longestMatchPrefixLength = -1; + for (const v of values) { + const pattern = getPattern(v); + if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) { + longestMatchPrefixLength = pattern.prefix.length; + matchedValue = v; + } + } + return matchedValue; +} +function startsWith(str, prefix, ignoreCase) { + return ignoreCase ? equateStringsCaseInsensitive(str.slice(0, prefix.length), prefix) : str.lastIndexOf(prefix, 0) === 0; +} +function removePrefix(str, prefix) { + return startsWith(str, prefix) ? str.substr(prefix.length) : str; +} +function isPatternMatch({ prefix, suffix }, candidate) { + return candidate.length >= prefix.length + suffix.length && startsWith(candidate, prefix) && endsWith(candidate, suffix); +} +function and(f, g) { + return (arg) => f(arg) && g(arg); +} +function or(...fs) { + return (...args) => { + let lastResult; + for (const f of fs) { + lastResult = f(...args); + if (lastResult) { + return lastResult; + } + } + return lastResult; + }; +} +function not(fn) { + return (...args) => !fn(...args); +} +function assertType(_) { +} +function singleElementArray(t) { + return t === void 0 ? void 0 : [t]; +} +function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) { + unchanged = unchanged || noop; + let newIndex = 0; + let oldIndex = 0; + const newLen = newItems.length; + const oldLen = oldItems.length; + let hasChanges = false; + while (newIndex < newLen && oldIndex < oldLen) { + const newItem = newItems[newIndex]; + const oldItem = oldItems[oldIndex]; + const compareResult = comparer(newItem, oldItem); + if (compareResult === -1 /* LessThan */) { + inserted(newItem); + newIndex++; + hasChanges = true; + } else if (compareResult === 1 /* GreaterThan */) { + deleted(oldItem); + oldIndex++; + hasChanges = true; + } else { + unchanged(oldItem, newItem); + newIndex++; + oldIndex++; + } + } + while (newIndex < newLen) { + inserted(newItems[newIndex++]); + hasChanges = true; + } + while (oldIndex < oldLen) { + deleted(oldItems[oldIndex++]); + hasChanges = true; + } + return hasChanges; +} +function cartesianProduct(arrays) { + const result = []; + cartesianProductWorker( + arrays, + result, + /*outer*/ + void 0, + 0 + ); + return result; +} +function cartesianProductWorker(arrays, result, outer, index) { + for (const element of arrays[index]) { + let inner; + if (outer) { + inner = outer.slice(); + inner.push(element); + } else { + inner = [element]; + } + if (index === arrays.length - 1) { + result.push(inner); + } else { + cartesianProductWorker(arrays, result, inner, index + 1); + } + } +} +function takeWhile(array, predicate) { + if (array) { + const len = array.length; + let index = 0; + while (index < len && predicate(array[index])) { + index++; + } + return array.slice(0, index); + } +} +function skipWhile(array, predicate) { + if (array) { + const len = array.length; + let index = 0; + while (index < len && predicate(array[index])) { + index++; + } + return array.slice(index); + } +} +function isNodeLikeSystem() { + return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof require !== "undefined"; +} + +// src/compiler/debug.ts +var Debug; +((Debug2) => { + let currentAssertionLevel = 0 /* None */; + Debug2.currentLogLevel = 2 /* Warning */; + Debug2.isDebugging = false; + function shouldLog(level) { + return Debug2.currentLogLevel <= level; + } + Debug2.shouldLog = shouldLog; + function logMessage(level, s) { + if (Debug2.loggingHost && shouldLog(level)) { + Debug2.loggingHost.log(level, s); + } + } + function log(s) { + logMessage(3 /* Info */, s); + } + Debug2.log = log; + ((_log) => { + function error(s) { + logMessage(1 /* Error */, s); + } + _log.error = error; + function warn(s) { + logMessage(2 /* Warning */, s); + } + _log.warn = warn; + function log2(s) { + logMessage(3 /* Info */, s); + } + _log.log = log2; + function trace2(s) { + logMessage(4 /* Verbose */, s); + } + _log.trace = trace2; + })(log = Debug2.log || (Debug2.log = {})); + const assertionCache = {}; + function getAssertionLevel() { + return currentAssertionLevel; + } + Debug2.getAssertionLevel = getAssertionLevel; + function setAssertionLevel(level) { + const prevAssertionLevel = currentAssertionLevel; + currentAssertionLevel = level; + if (level > prevAssertionLevel) { + for (const key of getOwnKeys(assertionCache)) { + const cachedFunc = assertionCache[key]; + if (cachedFunc !== void 0 && Debug2[key] !== cachedFunc.assertion && level >= cachedFunc.level) { + Debug2[key] = cachedFunc; + assertionCache[key] = void 0; + } + } + } + } + Debug2.setAssertionLevel = setAssertionLevel; + function shouldAssert(level) { + return currentAssertionLevel >= level; + } + Debug2.shouldAssert = shouldAssert; + function shouldAssertFunction(level, name) { + if (!shouldAssert(level)) { + assertionCache[name] = { level, assertion: Debug2[name] }; + Debug2[name] = noop; + return false; + } + return true; + } + function fail(message, stackCrawlMark) { + debugger; + const e = new Error(message ? `Debug Failure. ${message}` : "Debug Failure."); + if (Error.captureStackTrace) { + Error.captureStackTrace(e, stackCrawlMark || fail); + } + throw e; + } + Debug2.fail = fail; + function failBadSyntaxKind(node, message, stackCrawlMark) { + return fail( + `${message || "Unexpected node."}\r +Node ${formatSyntaxKind(node.kind)} was unexpected.`, + stackCrawlMark || failBadSyntaxKind + ); + } + Debug2.failBadSyntaxKind = failBadSyntaxKind; + function assert(expression, message, verboseDebugInfo, stackCrawlMark) { + if (!expression) { + message = message ? `False expression: ${message}` : "False expression."; + if (verboseDebugInfo) { + message += "\r\nVerbose Debug Information: " + (typeof verboseDebugInfo === "string" ? verboseDebugInfo : verboseDebugInfo()); + } + fail(message, stackCrawlMark || assert); + } + } + Debug2.assert = assert; + function assertEqual(a, b, msg, msg2, stackCrawlMark) { + if (a !== b) { + const message = msg ? msg2 ? `${msg} ${msg2}` : msg : ""; + fail(`Expected ${a} === ${b}. ${message}`, stackCrawlMark || assertEqual); + } + } + Debug2.assertEqual = assertEqual; + function assertLessThan(a, b, msg, stackCrawlMark) { + if (a >= b) { + fail(`Expected ${a} < ${b}. ${msg || ""}`, stackCrawlMark || assertLessThan); + } + } + Debug2.assertLessThan = assertLessThan; + function assertLessThanOrEqual(a, b, stackCrawlMark) { + if (a > b) { + fail(`Expected ${a} <= ${b}`, stackCrawlMark || assertLessThanOrEqual); + } + } + Debug2.assertLessThanOrEqual = assertLessThanOrEqual; + function assertGreaterThanOrEqual(a, b, stackCrawlMark) { + if (a < b) { + fail(`Expected ${a} >= ${b}`, stackCrawlMark || assertGreaterThanOrEqual); + } + } + Debug2.assertGreaterThanOrEqual = assertGreaterThanOrEqual; + function assertIsDefined(value, message, stackCrawlMark) { + if (value === void 0 || value === null) { + fail(message, stackCrawlMark || assertIsDefined); + } + } + Debug2.assertIsDefined = assertIsDefined; + function checkDefined(value, message, stackCrawlMark) { + assertIsDefined(value, message, stackCrawlMark || checkDefined); + return value; + } + Debug2.checkDefined = checkDefined; + function assertEachIsDefined(value, message, stackCrawlMark) { + for (const v of value) { + assertIsDefined(v, message, stackCrawlMark || assertEachIsDefined); + } + } + Debug2.assertEachIsDefined = assertEachIsDefined; + function checkEachDefined(value, message, stackCrawlMark) { + assertEachIsDefined(value, message, stackCrawlMark || checkEachDefined); + return value; + } + Debug2.checkEachDefined = checkEachDefined; + function assertNever(member, message = "Illegal value:", stackCrawlMark) { + const detail = typeof member === "object" && hasProperty(member, "kind") && hasProperty(member, "pos") ? "SyntaxKind: " + formatSyntaxKind(member.kind) : JSON.stringify(member); + return fail(`${message} ${detail}`, stackCrawlMark || assertNever); + } + Debug2.assertNever = assertNever; + function assertEachNode(nodes, test, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertEachNode")) { + assert( + test === void 0 || every(nodes, test), + message || "Unexpected node.", + () => `Node array did not pass test '${getFunctionName(test)}'.`, + stackCrawlMark || assertEachNode + ); + } + } + Debug2.assertEachNode = assertEachNode; + function assertNode(node, test, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertNode")) { + assert( + node !== void 0 && (test === void 0 || test(node)), + message || "Unexpected node.", + () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, + stackCrawlMark || assertNode + ); + } + } + Debug2.assertNode = assertNode; + function assertNotNode(node, test, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertNotNode")) { + assert( + node === void 0 || test === void 0 || !test(node), + message || "Unexpected node.", + () => `Node ${formatSyntaxKind(node.kind)} should not have passed test '${getFunctionName(test)}'.`, + stackCrawlMark || assertNotNode + ); + } + } + Debug2.assertNotNode = assertNotNode; + function assertOptionalNode(node, test, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertOptionalNode")) { + assert( + test === void 0 || node === void 0 || test(node), + message || "Unexpected node.", + () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} did not pass test '${getFunctionName(test)}'.`, + stackCrawlMark || assertOptionalNode + ); + } + } + Debug2.assertOptionalNode = assertOptionalNode; + function assertOptionalToken(node, kind, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertOptionalToken")) { + assert( + kind === void 0 || node === void 0 || node.kind === kind, + message || "Unexpected node.", + () => `Node ${formatSyntaxKind(node == null ? void 0 : node.kind)} was not a '${formatSyntaxKind(kind)}' token.`, + stackCrawlMark || assertOptionalToken + ); + } + } + Debug2.assertOptionalToken = assertOptionalToken; + function assertMissingNode(node, message, stackCrawlMark) { + if (shouldAssertFunction(1 /* Normal */, "assertMissingNode")) { + assert( + node === void 0, + message || "Unexpected node.", + () => `Node ${formatSyntaxKind(node.kind)} was unexpected'.`, + stackCrawlMark || assertMissingNode + ); + } + } + Debug2.assertMissingNode = assertMissingNode; + function type(_value) { + } + Debug2.type = type; + function getFunctionName(func) { + if (typeof func !== "function") { + return ""; + } else if (hasProperty(func, "name")) { + return func.name; + } else { + const text = Function.prototype.toString.call(func); + const match = /^function\s+([\w$]+)\s*\(/.exec(text); + return match ? match[1] : ""; + } + } + Debug2.getFunctionName = getFunctionName; + function formatSymbol(symbol) { + return `{ name: ${unescapeLeadingUnderscores(symbol.escapedName)}; flags: ${formatSymbolFlags(symbol.flags)}; declarations: ${map(symbol.declarations, (node) => formatSyntaxKind(node.kind))} }`; + } + Debug2.formatSymbol = formatSymbol; + function formatEnum(value = 0, enumObject, isFlags) { + const members = getEnumMembers(enumObject); + if (value === 0) { + return members.length > 0 && members[0][0] === 0 ? members[0][1] : "0"; + } + if (isFlags) { + const result = []; + let remainingFlags = value; + for (const [enumValue, enumName] of members) { + if (enumValue > value) { + break; + } + if (enumValue !== 0 && enumValue & value) { + result.push(enumName); + remainingFlags &= ~enumValue; + } + } + if (remainingFlags === 0) { + return result.join("|"); + } + } else { + for (const [enumValue, enumName] of members) { + if (enumValue === value) { + return enumName; + } + } + } + return value.toString(); + } + Debug2.formatEnum = formatEnum; + const enumMemberCache = /* @__PURE__ */ new Map(); + function getEnumMembers(enumObject) { + const existing = enumMemberCache.get(enumObject); + if (existing) { + return existing; + } + const result = []; + for (const name in enumObject) { + const value = enumObject[name]; + if (typeof value === "number") { + result.push([value, name]); + } + } + const sorted = stableSort(result, (x, y) => compareValues(x[0], y[0])); + enumMemberCache.set(enumObject, sorted); + return sorted; + } + function formatSyntaxKind(kind) { + return formatEnum( + kind, + SyntaxKind, + /*isFlags*/ + false + ); + } + Debug2.formatSyntaxKind = formatSyntaxKind; + function formatSnippetKind(kind) { + return formatEnum( + kind, + SnippetKind, + /*isFlags*/ + false + ); + } + Debug2.formatSnippetKind = formatSnippetKind; + function formatScriptKind(kind) { + return formatEnum( + kind, + ScriptKind, + /*isFlags*/ + false + ); + } + Debug2.formatScriptKind = formatScriptKind; + function formatNodeFlags(flags) { + return formatEnum( + flags, + NodeFlags, + /*isFlags*/ + true + ); + } + Debug2.formatNodeFlags = formatNodeFlags; + function formatNodeCheckFlags(flags) { + return formatEnum( + flags, + NodeCheckFlags, + /*isFlags*/ + true + ); + } + Debug2.formatNodeCheckFlags = formatNodeCheckFlags; + function formatModifierFlags(flags) { + return formatEnum( + flags, + ModifierFlags, + /*isFlags*/ + true + ); + } + Debug2.formatModifierFlags = formatModifierFlags; + function formatTransformFlags(flags) { + return formatEnum( + flags, + TransformFlags, + /*isFlags*/ + true + ); + } + Debug2.formatTransformFlags = formatTransformFlags; + function formatEmitFlags(flags) { + return formatEnum( + flags, + EmitFlags, + /*isFlags*/ + true + ); + } + Debug2.formatEmitFlags = formatEmitFlags; + function formatSymbolFlags(flags) { + return formatEnum( + flags, + SymbolFlags, + /*isFlags*/ + true + ); + } + Debug2.formatSymbolFlags = formatSymbolFlags; + function formatTypeFlags(flags) { + return formatEnum( + flags, + TypeFlags, + /*isFlags*/ + true + ); + } + Debug2.formatTypeFlags = formatTypeFlags; + function formatSignatureFlags(flags) { + return formatEnum( + flags, + SignatureFlags, + /*isFlags*/ + true + ); + } + Debug2.formatSignatureFlags = formatSignatureFlags; + function formatObjectFlags(flags) { + return formatEnum( + flags, + ObjectFlags, + /*isFlags*/ + true + ); + } + Debug2.formatObjectFlags = formatObjectFlags; + function formatFlowFlags(flags) { + return formatEnum( + flags, + FlowFlags, + /*isFlags*/ + true + ); + } + Debug2.formatFlowFlags = formatFlowFlags; + function formatRelationComparisonResult(result) { + return formatEnum( + result, + RelationComparisonResult, + /*isFlags*/ + true + ); + } + Debug2.formatRelationComparisonResult = formatRelationComparisonResult; + function formatCheckMode(mode) { + return formatEnum( + mode, + CheckMode, + /*isFlags*/ + true + ); + } + Debug2.formatCheckMode = formatCheckMode; + function formatSignatureCheckMode(mode) { + return formatEnum( + mode, + SignatureCheckMode, + /*isFlags*/ + true + ); + } + Debug2.formatSignatureCheckMode = formatSignatureCheckMode; + function formatTypeFacts(facts) { + return formatEnum( + facts, + TypeFacts, + /*isFlags*/ + true + ); + } + Debug2.formatTypeFacts = formatTypeFacts; + let isDebugInfoEnabled = false; + let flowNodeProto; + function attachFlowNodeDebugInfoWorker(flowNode) { + if (!("__debugFlowFlags" in flowNode)) { + Object.defineProperties(flowNode, { + // for use with vscode-js-debug's new customDescriptionGenerator in launch.json + __tsDebuggerDisplay: { + value() { + const flowHeader = this.flags & 2 /* Start */ ? "FlowStart" : this.flags & 4 /* BranchLabel */ ? "FlowBranchLabel" : this.flags & 8 /* LoopLabel */ ? "FlowLoopLabel" : this.flags & 16 /* Assignment */ ? "FlowAssignment" : this.flags & 32 /* TrueCondition */ ? "FlowTrueCondition" : this.flags & 64 /* FalseCondition */ ? "FlowFalseCondition" : this.flags & 128 /* SwitchClause */ ? "FlowSwitchClause" : this.flags & 256 /* ArrayMutation */ ? "FlowArrayMutation" : this.flags & 512 /* Call */ ? "FlowCall" : this.flags & 1024 /* ReduceLabel */ ? "FlowReduceLabel" : this.flags & 1 /* Unreachable */ ? "FlowUnreachable" : "UnknownFlow"; + const remainingFlags = this.flags & ~(2048 /* Referenced */ - 1); + return `${flowHeader}${remainingFlags ? ` (${formatFlowFlags(remainingFlags)})` : ""}`; + } + }, + __debugFlowFlags: { + get() { + return formatEnum( + this.flags, + FlowFlags, + /*isFlags*/ + true + ); + } + }, + __debugToString: { + value() { + return formatControlFlowGraph(this); + } + } + }); + } + } + function attachFlowNodeDebugInfo(flowNode) { + if (isDebugInfoEnabled) { + if (typeof Object.setPrototypeOf === "function") { + if (!flowNodeProto) { + flowNodeProto = Object.create(Object.prototype); + attachFlowNodeDebugInfoWorker(flowNodeProto); + } + Object.setPrototypeOf(flowNode, flowNodeProto); + } else { + attachFlowNodeDebugInfoWorker(flowNode); + } + } + return flowNode; + } + Debug2.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo; + let nodeArrayProto; + function attachNodeArrayDebugInfoWorker(array) { + if (!("__tsDebuggerDisplay" in array)) { + Object.defineProperties(array, { + __tsDebuggerDisplay: { + value(defaultValue) { + defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]"); + return `NodeArray ${defaultValue}`; + } + } + }); + } + } + function attachNodeArrayDebugInfo(array) { + if (isDebugInfoEnabled) { + if (typeof Object.setPrototypeOf === "function") { + if (!nodeArrayProto) { + nodeArrayProto = Object.create(Array.prototype); + attachNodeArrayDebugInfoWorker(nodeArrayProto); + } + Object.setPrototypeOf(array, nodeArrayProto); + } else { + attachNodeArrayDebugInfoWorker(array); + } + } + } + Debug2.attachNodeArrayDebugInfo = attachNodeArrayDebugInfo; + function enableDebugInfo() { + if (isDebugInfoEnabled) return; + const weakTypeTextMap = /* @__PURE__ */ new WeakMap(); + const weakNodeTextMap = /* @__PURE__ */ new WeakMap(); + Object.defineProperties(objectAllocator.getSymbolConstructor().prototype, { + // for use with vscode-js-debug's new customDescriptionGenerator in launch.json + __tsDebuggerDisplay: { + value() { + const symbolHeader = this.flags & 33554432 /* Transient */ ? "TransientSymbol" : "Symbol"; + const remainingSymbolFlags = this.flags & ~33554432 /* Transient */; + return `${symbolHeader} '${symbolName(this)}'${remainingSymbolFlags ? ` (${formatSymbolFlags(remainingSymbolFlags)})` : ""}`; + } + }, + __debugFlags: { + get() { + return formatSymbolFlags(this.flags); + } + } + }); + Object.defineProperties(objectAllocator.getTypeConstructor().prototype, { + // for use with vscode-js-debug's new customDescriptionGenerator in launch.json + __tsDebuggerDisplay: { + value() { + const typeHeader = this.flags & 67359327 /* Intrinsic */ ? `IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName ? ` (${this.debugIntrinsicName})` : ""}` : this.flags & 98304 /* Nullable */ ? "NullableType" : this.flags & 384 /* StringOrNumberLiteral */ ? `LiteralType ${JSON.stringify(this.value)}` : this.flags & 2048 /* BigIntLiteral */ ? `LiteralType ${this.value.negative ? "-" : ""}${this.value.base10Value}n` : this.flags & 8192 /* UniqueESSymbol */ ? "UniqueESSymbolType" : this.flags & 32 /* Enum */ ? "EnumType" : this.flags & 1048576 /* Union */ ? "UnionType" : this.flags & 2097152 /* Intersection */ ? "IntersectionType" : this.flags & 4194304 /* Index */ ? "IndexType" : this.flags & 8388608 /* IndexedAccess */ ? "IndexedAccessType" : this.flags & 16777216 /* Conditional */ ? "ConditionalType" : this.flags & 33554432 /* Substitution */ ? "SubstitutionType" : this.flags & 262144 /* TypeParameter */ ? "TypeParameter" : this.flags & 524288 /* Object */ ? this.objectFlags & 3 /* ClassOrInterface */ ? "InterfaceType" : this.objectFlags & 4 /* Reference */ ? "TypeReference" : this.objectFlags & 8 /* Tuple */ ? "TupleType" : this.objectFlags & 16 /* Anonymous */ ? "AnonymousType" : this.objectFlags & 32 /* Mapped */ ? "MappedType" : this.objectFlags & 1024 /* ReverseMapped */ ? "ReverseMappedType" : this.objectFlags & 256 /* EvolvingArray */ ? "EvolvingArrayType" : "ObjectType" : "Type"; + const remainingObjectFlags = this.flags & 524288 /* Object */ ? this.objectFlags & ~1343 /* ObjectTypeKindMask */ : 0; + return `${typeHeader}${this.symbol ? ` '${symbolName(this.symbol)}'` : ""}${remainingObjectFlags ? ` (${formatObjectFlags(remainingObjectFlags)})` : ""}`; + } + }, + __debugFlags: { + get() { + return formatTypeFlags(this.flags); + } + }, + __debugObjectFlags: { + get() { + return this.flags & 524288 /* Object */ ? formatObjectFlags(this.objectFlags) : ""; + } + }, + __debugTypeToString: { + value() { + let text = weakTypeTextMap.get(this); + if (text === void 0) { + text = this.checker.typeToString(this); + weakTypeTextMap.set(this, text); + } + return text; + } + } + }); + Object.defineProperties(objectAllocator.getSignatureConstructor().prototype, { + __debugFlags: { + get() { + return formatSignatureFlags(this.flags); + } + }, + __debugSignatureToString: { + value() { + var _a; + return (_a = this.checker) == null ? void 0 : _a.signatureToString(this); + } + } + }); + const nodeConstructors = [ + objectAllocator.getNodeConstructor(), + objectAllocator.getIdentifierConstructor(), + objectAllocator.getTokenConstructor(), + objectAllocator.getSourceFileConstructor() + ]; + for (const ctor of nodeConstructors) { + if (!hasProperty(ctor.prototype, "__debugKind")) { + Object.defineProperties(ctor.prototype, { + // for use with vscode-js-debug's new customDescriptionGenerator in launch.json + __tsDebuggerDisplay: { + value() { + const nodeHeader = isGeneratedIdentifier(this) ? "GeneratedIdentifier" : isIdentifier(this) ? `Identifier '${idText(this)}'` : isPrivateIdentifier(this) ? `PrivateIdentifier '${idText(this)}'` : isStringLiteral(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")}` : isNumericLiteral(this) ? `NumericLiteral ${this.text}` : isBigIntLiteral(this) ? `BigIntLiteral ${this.text}n` : isTypeParameterDeclaration(this) ? "TypeParameterDeclaration" : isParameter(this) ? "ParameterDeclaration" : isConstructorDeclaration(this) ? "ConstructorDeclaration" : isGetAccessorDeclaration(this) ? "GetAccessorDeclaration" : isSetAccessorDeclaration(this) ? "SetAccessorDeclaration" : isCallSignatureDeclaration(this) ? "CallSignatureDeclaration" : isConstructSignatureDeclaration(this) ? "ConstructSignatureDeclaration" : isIndexSignatureDeclaration(this) ? "IndexSignatureDeclaration" : isTypePredicateNode(this) ? "TypePredicateNode" : isTypeReferenceNode(this) ? "TypeReferenceNode" : isFunctionTypeNode(this) ? "FunctionTypeNode" : isConstructorTypeNode(this) ? "ConstructorTypeNode" : isTypeQueryNode(this) ? "TypeQueryNode" : isTypeLiteralNode(this) ? "TypeLiteralNode" : isArrayTypeNode(this) ? "ArrayTypeNode" : isTupleTypeNode(this) ? "TupleTypeNode" : isOptionalTypeNode(this) ? "OptionalTypeNode" : isRestTypeNode(this) ? "RestTypeNode" : isUnionTypeNode(this) ? "UnionTypeNode" : isIntersectionTypeNode(this) ? "IntersectionTypeNode" : isConditionalTypeNode(this) ? "ConditionalTypeNode" : isInferTypeNode(this) ? "InferTypeNode" : isParenthesizedTypeNode(this) ? "ParenthesizedTypeNode" : isThisTypeNode(this) ? "ThisTypeNode" : isTypeOperatorNode(this) ? "TypeOperatorNode" : isIndexedAccessTypeNode(this) ? "IndexedAccessTypeNode" : isMappedTypeNode(this) ? "MappedTypeNode" : isLiteralTypeNode(this) ? "LiteralTypeNode" : isNamedTupleMember(this) ? "NamedTupleMember" : isImportTypeNode(this) ? "ImportTypeNode" : formatSyntaxKind(this.kind); + return `${nodeHeader}${this.flags ? ` (${formatNodeFlags(this.flags)})` : ""}`; + } + }, + __debugKind: { + get() { + return formatSyntaxKind(this.kind); + } + }, + __debugNodeFlags: { + get() { + return formatNodeFlags(this.flags); + } + }, + __debugModifierFlags: { + get() { + return formatModifierFlags(getEffectiveModifierFlagsNoCache(this)); + } + }, + __debugTransformFlags: { + get() { + return formatTransformFlags(this.transformFlags); + } + }, + __debugIsParseTreeNode: { + get() { + return isParseTreeNode(this); + } + }, + __debugEmitFlags: { + get() { + return formatEmitFlags(getEmitFlags(this)); + } + }, + __debugGetText: { + value(includeTrivia) { + if (nodeIsSynthesized(this)) return ""; + let text = weakNodeTextMap.get(this); + if (text === void 0) { + const parseNode = getParseTreeNode(this); + const sourceFile = parseNode && getSourceFileOfNode(parseNode); + text = sourceFile ? getSourceTextOfNodeFromSourceFile(sourceFile, parseNode, includeTrivia) : ""; + weakNodeTextMap.set(this, text); + } + return text; + } + } + }); + } + } + isDebugInfoEnabled = true; + } + Debug2.enableDebugInfo = enableDebugInfo; + function formatVariance(varianceFlags) { + const variance = varianceFlags & 7 /* VarianceMask */; + let result = variance === 0 /* Invariant */ ? "in out" : variance === 3 /* Bivariant */ ? "[bivariant]" : variance === 2 /* Contravariant */ ? "in" : variance === 1 /* Covariant */ ? "out" : variance === 4 /* Independent */ ? "[independent]" : ""; + if (varianceFlags & 8 /* Unmeasurable */) { + result += " (unmeasurable)"; + } else if (varianceFlags & 16 /* Unreliable */) { + result += " (unreliable)"; + } + return result; + } + Debug2.formatVariance = formatVariance; + class DebugTypeMapper { + __debugToString() { + var _a; + type(this); + switch (this.kind) { + case 3 /* Function */: + return ((_a = this.debugInfo) == null ? void 0 : _a.call(this)) || "(function mapper)"; + case 0 /* Simple */: + return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`; + case 1 /* Array */: + return zipWith( + this.sources, + this.targets || map(this.sources, () => "any"), + (s, t) => `${s.__debugTypeToString()} -> ${typeof t === "string" ? t : t.__debugTypeToString()}` + ).join(", "); + case 2 /* Deferred */: + return zipWith( + this.sources, + this.targets, + (s, t) => `${s.__debugTypeToString()} -> ${t().__debugTypeToString()}` + ).join(", "); + case 5 /* Merged */: + case 4 /* Composite */: + return `m1: ${this.mapper1.__debugToString().split("\n").join("\n ")} +m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`; + default: + return assertNever(this); + } + } + } + Debug2.DebugTypeMapper = DebugTypeMapper; + function attachDebugPrototypeIfDebug(mapper) { + if (Debug2.isDebugging) { + return Object.setPrototypeOf(mapper, DebugTypeMapper.prototype); + } + return mapper; + } + Debug2.attachDebugPrototypeIfDebug = attachDebugPrototypeIfDebug; + function printControlFlowGraph(flowNode) { + return console.log(formatControlFlowGraph(flowNode)); + } + Debug2.printControlFlowGraph = printControlFlowGraph; + function formatControlFlowGraph(flowNode) { + let nextDebugFlowId = -1; + function getDebugFlowNodeId(f) { + if (!f.id) { + f.id = nextDebugFlowId; + nextDebugFlowId--; + } + return f.id; + } + let BoxCharacter; + ((BoxCharacter2) => { + BoxCharacter2["lr"] = "\u2500"; + BoxCharacter2["ud"] = "\u2502"; + BoxCharacter2["dr"] = "\u256D"; + BoxCharacter2["dl"] = "\u256E"; + BoxCharacter2["ul"] = "\u256F"; + BoxCharacter2["ur"] = "\u2570"; + BoxCharacter2["udr"] = "\u251C"; + BoxCharacter2["udl"] = "\u2524"; + BoxCharacter2["dlr"] = "\u252C"; + BoxCharacter2["ulr"] = "\u2534"; + BoxCharacter2["udlr"] = "\u256B"; + })(BoxCharacter || (BoxCharacter = {})); + let Connection; + ((Connection2) => { + Connection2[Connection2["None"] = 0] = "None"; + Connection2[Connection2["Up"] = 1] = "Up"; + Connection2[Connection2["Down"] = 2] = "Down"; + Connection2[Connection2["Left"] = 4] = "Left"; + Connection2[Connection2["Right"] = 8] = "Right"; + Connection2[Connection2["UpDown"] = 3] = "UpDown"; + Connection2[Connection2["LeftRight"] = 12] = "LeftRight"; + Connection2[Connection2["UpLeft"] = 5] = "UpLeft"; + Connection2[Connection2["UpRight"] = 9] = "UpRight"; + Connection2[Connection2["DownLeft"] = 6] = "DownLeft"; + Connection2[Connection2["DownRight"] = 10] = "DownRight"; + Connection2[Connection2["UpDownLeft"] = 7] = "UpDownLeft"; + Connection2[Connection2["UpDownRight"] = 11] = "UpDownRight"; + Connection2[Connection2["UpLeftRight"] = 13] = "UpLeftRight"; + Connection2[Connection2["DownLeftRight"] = 14] = "DownLeftRight"; + Connection2[Connection2["UpDownLeftRight"] = 15] = "UpDownLeftRight"; + Connection2[Connection2["NoChildren"] = 16] = "NoChildren"; + })(Connection || (Connection = {})); + const hasAntecedentFlags = 16 /* Assignment */ | 96 /* Condition */ | 128 /* SwitchClause */ | 256 /* ArrayMutation */ | 512 /* Call */ | 1024 /* ReduceLabel */; + const hasNodeFlags = 2 /* Start */ | 16 /* Assignment */ | 512 /* Call */ | 96 /* Condition */ | 256 /* ArrayMutation */; + const links = /* @__PURE__ */ Object.create( + /*o*/ + null + ); + const nodes = []; + const edges = []; + const root = buildGraphNode(flowNode, /* @__PURE__ */ new Set()); + for (const node of nodes) { + node.text = renderFlowNode(node.flowNode, node.circular); + computeLevel(node); + } + const height = computeHeight(root); + const columnWidths = computeColumnWidths(height); + computeLanes(root, 0); + return renderGraph(); + function isFlowSwitchClause(f) { + return !!(f.flags & 128 /* SwitchClause */); + } + function hasAntecedents(f) { + return !!(f.flags & 12 /* Label */) && !!f.antecedent; + } + function hasAntecedent(f) { + return !!(f.flags & hasAntecedentFlags); + } + function hasNode(f) { + return !!(f.flags & hasNodeFlags); + } + function getChildren(node) { + const children = []; + for (const edge of node.edges) { + if (edge.source === node) { + children.push(edge.target); + } + } + return children; + } + function getParents(node) { + const parents = []; + for (const edge of node.edges) { + if (edge.target === node) { + parents.push(edge.source); + } + } + return parents; + } + function buildGraphNode(flowNode2, seen) { + const id = getDebugFlowNodeId(flowNode2); + let graphNode = links[id]; + if (graphNode && seen.has(flowNode2)) { + graphNode.circular = true; + graphNode = { + id: -1, + flowNode: flowNode2, + edges: [], + text: "", + lane: -1, + endLane: -1, + level: -1, + circular: "circularity" + }; + nodes.push(graphNode); + return graphNode; + } + seen.add(flowNode2); + if (!graphNode) { + links[id] = graphNode = { id, flowNode: flowNode2, edges: [], text: "", lane: -1, endLane: -1, level: -1, circular: false }; + nodes.push(graphNode); + if (hasAntecedents(flowNode2)) { + for (const antecedent of flowNode2.antecedent) { + buildGraphEdge(graphNode, antecedent, seen); + } + } else if (hasAntecedent(flowNode2)) { + buildGraphEdge(graphNode, flowNode2.antecedent, seen); + } + } + seen.delete(flowNode2); + return graphNode; + } + function buildGraphEdge(source, antecedent, seen) { + const target = buildGraphNode(antecedent, seen); + const edge = { source, target }; + edges.push(edge); + source.edges.push(edge); + target.edges.push(edge); + } + function computeLevel(node) { + if (node.level !== -1) { + return node.level; + } + let level = 0; + for (const parent of getParents(node)) { + level = Math.max(level, computeLevel(parent) + 1); + } + return node.level = level; + } + function computeHeight(node) { + let height2 = 0; + for (const child of getChildren(node)) { + height2 = Math.max(height2, computeHeight(child)); + } + return height2 + 1; + } + function computeColumnWidths(height2) { + const columns = fill(Array(height2), 0); + for (const node of nodes) { + columns[node.level] = Math.max(columns[node.level], node.text.length); + } + return columns; + } + function computeLanes(node, lane) { + if (node.lane === -1) { + node.lane = lane; + node.endLane = lane; + const children = getChildren(node); + for (let i = 0; i < children.length; i++) { + if (i > 0) lane++; + const child = children[i]; + computeLanes(child, lane); + if (child.endLane > node.endLane) { + lane = child.endLane; + } + } + node.endLane = lane; + } + } + function getHeader2(flags) { + if (flags & 2 /* Start */) return "Start"; + if (flags & 4 /* BranchLabel */) return "Branch"; + if (flags & 8 /* LoopLabel */) return "Loop"; + if (flags & 16 /* Assignment */) return "Assignment"; + if (flags & 32 /* TrueCondition */) return "True"; + if (flags & 64 /* FalseCondition */) return "False"; + if (flags & 128 /* SwitchClause */) return "SwitchClause"; + if (flags & 256 /* ArrayMutation */) return "ArrayMutation"; + if (flags & 512 /* Call */) return "Call"; + if (flags & 1024 /* ReduceLabel */) return "ReduceLabel"; + if (flags & 1 /* Unreachable */) return "Unreachable"; + throw new Error(); + } + function getNodeText(node) { + const sourceFile = getSourceFileOfNode(node); + return getSourceTextOfNodeFromSourceFile( + sourceFile, + node, + /*includeTrivia*/ + false + ); + } + function renderFlowNode(flowNode2, circular) { + let text = getHeader2(flowNode2.flags); + if (circular) { + text = `${text}#${getDebugFlowNodeId(flowNode2)}`; + } + if (isFlowSwitchClause(flowNode2)) { + const clauses = []; + const { switchStatement, clauseStart, clauseEnd } = flowNode2.node; + for (let i = clauseStart; i < clauseEnd; i++) { + const clause = switchStatement.caseBlock.clauses[i]; + if (isDefaultClause(clause)) { + clauses.push("default"); + } else { + clauses.push(getNodeText(clause.expression)); + } + } + text += ` (${clauses.join(", ")})`; + } else if (hasNode(flowNode2)) { + if (flowNode2.node) { + text += ` (${getNodeText(flowNode2.node)})`; + } + } + return circular === "circularity" ? `Circular(${text})` : text; + } + function renderGraph() { + const columnCount = columnWidths.length; + const laneCount = nodes.reduce((x, n) => Math.max(x, n.lane), 0) + 1; + const lanes = fill(Array(laneCount), ""); + const grid = columnWidths.map(() => Array(laneCount)); + const connectors = columnWidths.map(() => fill(Array(laneCount), 0)); + for (const node of nodes) { + grid[node.level][node.lane] = node; + const children = getChildren(node); + for (let i = 0; i < children.length; i++) { + const child = children[i]; + let connector = 8 /* Right */; + if (child.lane === node.lane) connector |= 4 /* Left */; + if (i > 0) connector |= 1 /* Up */; + if (i < children.length - 1) connector |= 2 /* Down */; + connectors[node.level][child.lane] |= connector; + } + if (children.length === 0) { + connectors[node.level][node.lane] |= 16 /* NoChildren */; + } + const parents = getParents(node); + for (let i = 0; i < parents.length; i++) { + const parent = parents[i]; + let connector = 4 /* Left */; + if (i > 0) connector |= 1 /* Up */; + if (i < parents.length - 1) connector |= 2 /* Down */; + connectors[node.level - 1][parent.lane] |= connector; + } + } + for (let column = 0; column < columnCount; column++) { + for (let lane = 0; lane < laneCount; lane++) { + const left = column > 0 ? connectors[column - 1][lane] : 0; + const above = lane > 0 ? connectors[column][lane - 1] : 0; + let connector = connectors[column][lane]; + if (!connector) { + if (left & 8 /* Right */) connector |= 12 /* LeftRight */; + if (above & 2 /* Down */) connector |= 3 /* UpDown */; + connectors[column][lane] = connector; + } + } + } + for (let column = 0; column < columnCount; column++) { + for (let lane = 0; lane < lanes.length; lane++) { + const connector = connectors[column][lane]; + const fill2 = connector & 4 /* Left */ ? "\u2500" /* lr */ : " "; + const node = grid[column][lane]; + if (!node) { + if (column < columnCount - 1) { + writeLane(lane, repeat(fill2, columnWidths[column] + 1)); + } + } else { + writeLane(lane, node.text); + if (column < columnCount - 1) { + writeLane(lane, " "); + writeLane(lane, repeat(fill2, columnWidths[column] - node.text.length)); + } + } + writeLane(lane, getBoxCharacter(connector)); + writeLane(lane, connector & 8 /* Right */ && column < columnCount - 1 && !grid[column + 1][lane] ? "\u2500" /* lr */ : " "); + } + } + return ` +${lanes.join("\n")} +`; + function writeLane(lane, text) { + lanes[lane] += text; + } + } + function getBoxCharacter(connector) { + switch (connector) { + case 3 /* UpDown */: + return "\u2502" /* ud */; + case 12 /* LeftRight */: + return "\u2500" /* lr */; + case 5 /* UpLeft */: + return "\u256F" /* ul */; + case 9 /* UpRight */: + return "\u2570" /* ur */; + case 6 /* DownLeft */: + return "\u256E" /* dl */; + case 10 /* DownRight */: + return "\u256D" /* dr */; + case 7 /* UpDownLeft */: + return "\u2524" /* udl */; + case 11 /* UpDownRight */: + return "\u251C" /* udr */; + case 13 /* UpLeftRight */: + return "\u2534" /* ulr */; + case 14 /* DownLeftRight */: + return "\u252C" /* dlr */; + case 15 /* UpDownLeftRight */: + return "\u256B" /* udlr */; + } + return " "; + } + function fill(array, value) { + if (array.fill) { + array.fill(value); + } else { + for (let i = 0; i < array.length; i++) { + array[i] = value; + } + } + return array; + } + function repeat(ch, length2) { + if (ch.repeat) { + return length2 > 0 ? ch.repeat(length2) : ""; + } + let s = ""; + while (s.length < length2) { + s += ch; + } + return s; + } + } + Debug2.formatControlFlowGraph = formatControlFlowGraph; +})(Debug || (Debug = {})); + +// src/compiler/semver.ts +var versionRegExp = /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i; +var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; +var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; +var buildPartRegExp = /^[a-z0-9-]+$/i; +var numericIdentifierRegExp = /^(0|[1-9]\d*)$/; +var _Version = class _Version { + constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { + if (typeof major === "string") { + const result = Debug.checkDefined(tryParseComponents(major), "Invalid version"); + ({ major, minor, patch, prerelease, build: build2 } = result); + } + Debug.assert(major >= 0, "Invalid argument: major"); + Debug.assert(minor >= 0, "Invalid argument: minor"); + Debug.assert(patch >= 0, "Invalid argument: patch"); + const prereleaseArray = prerelease ? isArray(prerelease) ? prerelease : prerelease.split(".") : emptyArray; + const buildArray = build2 ? isArray(build2) ? build2 : build2.split(".") : emptyArray; + Debug.assert(every(prereleaseArray, (s) => prereleasePartRegExp.test(s)), "Invalid argument: prerelease"); + Debug.assert(every(buildArray, (s) => buildPartRegExp.test(s)), "Invalid argument: build"); + this.major = major; + this.minor = minor; + this.patch = patch; + this.prerelease = prereleaseArray; + this.build = buildArray; + } + static tryParse(text) { + const result = tryParseComponents(text); + if (!result) return void 0; + const { major, minor, patch, prerelease, build: build2 } = result; + return new _Version(major, minor, patch, prerelease, build2); + } + compareTo(other) { + if (this === other) return 0 /* EqualTo */; + if (other === void 0) return 1 /* GreaterThan */; + return compareValues(this.major, other.major) || compareValues(this.minor, other.minor) || compareValues(this.patch, other.patch) || comparePrereleaseIdentifiers(this.prerelease, other.prerelease); + } + increment(field) { + switch (field) { + case "major": + return new _Version(this.major + 1, 0, 0); + case "minor": + return new _Version(this.major, this.minor + 1, 0); + case "patch": + return new _Version(this.major, this.minor, this.patch + 1); + default: + return Debug.assertNever(field); + } + } + with(fields) { + const { + major = this.major, + minor = this.minor, + patch = this.patch, + prerelease = this.prerelease, + build: build2 = this.build + } = fields; + return new _Version(major, minor, patch, prerelease, build2); + } + toString() { + let result = `${this.major}.${this.minor}.${this.patch}`; + if (some(this.prerelease)) result += `-${this.prerelease.join(".")}`; + if (some(this.build)) result += `+${this.build.join(".")}`; + return result; + } +}; +_Version.zero = new _Version(0, 0, 0, ["0"]); +var Version = _Version; +function tryParseComponents(text) { + const match = versionRegExp.exec(text); + if (!match) return void 0; + const [, major, minor = "0", patch = "0", prerelease = "", build2 = ""] = match; + if (prerelease && !prereleaseRegExp.test(prerelease)) return void 0; + if (build2 && !buildRegExp.test(build2)) return void 0; + return { + major: parseInt(major, 10), + minor: parseInt(minor, 10), + patch: parseInt(patch, 10), + prerelease, + build: build2 + }; +} +function comparePrereleaseIdentifiers(left, right) { + if (left === right) return 0 /* EqualTo */; + if (left.length === 0) return right.length === 0 ? 0 /* EqualTo */ : 1 /* GreaterThan */; + if (right.length === 0) return -1 /* LessThan */; + const length2 = Math.min(left.length, right.length); + for (let i = 0; i < length2; i++) { + const leftIdentifier = left[i]; + const rightIdentifier = right[i]; + if (leftIdentifier === rightIdentifier) continue; + const leftIsNumeric = numericIdentifierRegExp.test(leftIdentifier); + const rightIsNumeric = numericIdentifierRegExp.test(rightIdentifier); + if (leftIsNumeric || rightIsNumeric) { + if (leftIsNumeric !== rightIsNumeric) return leftIsNumeric ? -1 /* LessThan */ : 1 /* GreaterThan */; + const result = compareValues(+leftIdentifier, +rightIdentifier); + if (result) return result; + } else { + const result = compareStringsCaseSensitive(leftIdentifier, rightIdentifier); + if (result) return result; + } + } + return compareValues(left.length, right.length); +} +var VersionRange = class _VersionRange { + constructor(spec) { + this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray; + } + static tryParse(text) { + const sets = parseRange(text); + if (sets) { + const range = new _VersionRange(""); + range._alternatives = sets; + return range; + } + return void 0; + } + /** + * Tests whether a version matches the range. This is equivalent to `satisfies(version, range, { includePrerelease: true })`. + * in `node-semver`. + */ + test(version2) { + if (typeof version2 === "string") version2 = new Version(version2); + return testDisjunction(version2, this._alternatives); + } + toString() { + return formatDisjunction(this._alternatives); + } +}; +var logicalOrRegExp = /\|\|/g; +var whitespaceRegExp = /\s+/g; +var partialRegExp = /^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var hyphenRegExp = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i; +var rangeRegExp = /^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i; +function parseRange(text) { + const alternatives = []; + for (let range of text.trim().split(logicalOrRegExp)) { + if (!range) continue; + const comparators = []; + range = range.trim(); + const match = hyphenRegExp.exec(range); + if (match) { + if (!parseHyphen(match[1], match[2], comparators)) return void 0; + } else { + for (const simple of range.split(whitespaceRegExp)) { + const match2 = rangeRegExp.exec(simple.trim()); + if (!match2 || !parseComparator(match2[1], match2[2], comparators)) return void 0; + } + } + alternatives.push(comparators); + } + return alternatives; +} +function parsePartial(text) { + const match = partialRegExp.exec(text); + if (!match) return void 0; + const [, major, minor = "*", patch = "*", prerelease, build2] = match; + const version2 = new Version( + isWildcard(major) ? 0 : parseInt(major, 10), + isWildcard(major) || isWildcard(minor) ? 0 : parseInt(minor, 10), + isWildcard(major) || isWildcard(minor) || isWildcard(patch) ? 0 : parseInt(patch, 10), + prerelease, + build2 + ); + return { version: version2, major, minor, patch }; +} +function parseHyphen(left, right, comparators) { + const leftResult = parsePartial(left); + if (!leftResult) return false; + const rightResult = parsePartial(right); + if (!rightResult) return false; + if (!isWildcard(leftResult.major)) { + comparators.push(createComparator(">=", leftResult.version)); + } + if (!isWildcard(rightResult.major)) { + comparators.push( + isWildcard(rightResult.minor) ? createComparator("<", rightResult.version.increment("major")) : isWildcard(rightResult.patch) ? createComparator("<", rightResult.version.increment("minor")) : createComparator("<=", rightResult.version) + ); + } + return true; +} +function parseComparator(operator, text, comparators) { + const result = parsePartial(text); + if (!result) return false; + const { version: version2, major, minor, patch } = result; + if (!isWildcard(major)) { + switch (operator) { + case "~": + comparators.push(createComparator(">=", version2)); + comparators.push(createComparator( + "<", + version2.increment( + isWildcard(minor) ? "major" : "minor" + ) + )); + break; + case "^": + comparators.push(createComparator(">=", version2)); + comparators.push(createComparator( + "<", + version2.increment( + version2.major > 0 || isWildcard(minor) ? "major" : version2.minor > 0 || isWildcard(patch) ? "minor" : "patch" + ) + )); + break; + case "<": + case ">=": + comparators.push( + isWildcard(minor) || isWildcard(patch) ? createComparator(operator, version2.with({ prerelease: "0" })) : createComparator(operator, version2) + ); + break; + case "<=": + case ">": + comparators.push( + isWildcard(minor) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("major").with({ prerelease: "0" })) : isWildcard(patch) ? createComparator(operator === "<=" ? "<" : ">=", version2.increment("minor").with({ prerelease: "0" })) : createComparator(operator, version2) + ); + break; + case "=": + case void 0: + if (isWildcard(minor) || isWildcard(patch)) { + comparators.push(createComparator(">=", version2.with({ prerelease: "0" }))); + comparators.push(createComparator("<", version2.increment(isWildcard(minor) ? "major" : "minor").with({ prerelease: "0" }))); + } else { + comparators.push(createComparator("=", version2)); + } + break; + default: + return false; + } + } else if (operator === "<" || operator === ">") { + comparators.push(createComparator("<", Version.zero)); + } + return true; +} +function isWildcard(part) { + return part === "*" || part === "x" || part === "X"; +} +function createComparator(operator, operand) { + return { operator, operand }; +} +function testDisjunction(version2, alternatives) { + if (alternatives.length === 0) return true; + for (const alternative of alternatives) { + if (testAlternative(version2, alternative)) return true; + } + return false; +} +function testAlternative(version2, comparators) { + for (const comparator of comparators) { + if (!testComparator(version2, comparator.operator, comparator.operand)) return false; + } + return true; +} +function testComparator(version2, operator, operand) { + const cmp = version2.compareTo(operand); + switch (operator) { + case "<": + return cmp < 0; + case "<=": + return cmp <= 0; + case ">": + return cmp > 0; + case ">=": + return cmp >= 0; + case "=": + return cmp === 0; + default: + return Debug.assertNever(operator); + } +} +function formatDisjunction(alternatives) { + return map(alternatives, formatAlternative).join(" || ") || "*"; +} +function formatAlternative(comparators) { + return map(comparators, formatComparator).join(" "); +} +function formatComparator(comparator) { + return `${comparator.operator}${comparator.operand}`; +} + +// src/compiler/performanceCore.ts +function tryGetPerformance() { + if (isNodeLikeSystem()) { + try { + const { performance: performance2 } = require("perf_hooks"); + if (performance2) { + return { + shouldWriteNativeEvents: false, + performance: performance2 + }; + } + } catch { + } + } + if (typeof performance === "object") { + return { + shouldWriteNativeEvents: true, + performance + }; + } + return void 0; +} +function tryGetPerformanceHooks() { + const p = tryGetPerformance(); + if (!p) return void 0; + const { shouldWriteNativeEvents, performance: performance2 } = p; + const hooks = { + shouldWriteNativeEvents, + performance: void 0, + performanceTime: void 0 + }; + if (typeof performance2.timeOrigin === "number" && typeof performance2.now === "function") { + hooks.performanceTime = performance2; + } + if (hooks.performanceTime && typeof performance2.mark === "function" && typeof performance2.measure === "function" && typeof performance2.clearMarks === "function" && typeof performance2.clearMeasures === "function") { + hooks.performance = performance2; + } + return hooks; +} +var nativePerformanceHooks = tryGetPerformanceHooks(); +var nativePerformanceTime = nativePerformanceHooks == null ? void 0 : nativePerformanceHooks.performanceTime; +function tryGetNativePerformanceHooks() { + return nativePerformanceHooks; +} +var timestamp = nativePerformanceTime ? () => nativePerformanceTime.now() : Date.now; + +// src/compiler/perfLogger.ts +var etwModule; try { - const { enableCompileCache } = require("node:module"); - if (enableCompileCache) { - enableCompileCache(); + const etwModulePath = process.env.TS_ETW_MODULE_PATH ?? "./node_modules/@microsoft/typescript-etw"; + etwModule = require(etwModulePath); +} catch (e) { + etwModule = void 0; +} +var perfLogger = (etwModule == null ? void 0 : etwModule.logEvent) ? etwModule : void 0; + +// src/compiler/performance.ts +var perfHooks; +var performanceImpl; +function createTimerIf(condition, measureName, startMarkName, endMarkName) { + return condition ? createTimer(measureName, startMarkName, endMarkName) : nullTimer; +} +function createTimer(measureName, startMarkName, endMarkName) { + let enterCount = 0; + return { + enter, + exit + }; + function enter() { + if (++enterCount === 1) { + mark(startMarkName); + } + } + function exit() { + if (--enterCount === 0) { + mark(endMarkName); + measure(measureName, startMarkName, endMarkName); + } else if (enterCount < 0) { + Debug.fail("enter/exit count does not match."); + } + } +} +var nullTimer = { enter: noop, exit: noop }; +var enabled = false; +var timeorigin = timestamp(); +var marks = /* @__PURE__ */ new Map(); +var counts = /* @__PURE__ */ new Map(); +var durations = /* @__PURE__ */ new Map(); +function mark(markName) { + if (enabled) { + const count = counts.get(markName) ?? 0; + counts.set(markName, count + 1); + marks.set(markName, timestamp()); + performanceImpl == null ? void 0 : performanceImpl.mark(markName); + if (typeof onProfilerEvent === "function") { + onProfilerEvent(markName); + } + } +} +function measure(measureName, startMarkName, endMarkName) { + if (enabled) { + const end = (endMarkName !== void 0 ? marks.get(endMarkName) : void 0) ?? timestamp(); + const start = (startMarkName !== void 0 ? marks.get(startMarkName) : void 0) ?? timeorigin; + const previousDuration = durations.get(measureName) || 0; + durations.set(measureName, previousDuration + (end - start)); + performanceImpl == null ? void 0 : performanceImpl.measure(measureName, startMarkName, endMarkName); + } +} +function getCount(markName) { + return counts.get(markName) || 0; +} +function getDuration(measureName) { + return durations.get(measureName) || 0; +} +function forEachMeasure(cb) { + durations.forEach((duration, measureName) => cb(measureName, duration)); +} +function forEachMark(cb) { + marks.forEach((_time, markName) => cb(markName)); +} +function clearMeasures(name) { + if (name !== void 0) durations.delete(name); + else durations.clear(); + performanceImpl == null ? void 0 : performanceImpl.clearMeasures(name); +} +function clearMarks(name) { + if (name !== void 0) { + counts.delete(name); + marks.delete(name); + } else { + counts.clear(); + marks.clear(); + } + performanceImpl == null ? void 0 : performanceImpl.clearMarks(name); +} +function isEnabled() { + return enabled; +} +function enable(system = sys) { + var _a; + if (!enabled) { + enabled = true; + perfHooks || (perfHooks = tryGetNativePerformanceHooks()); + if (perfHooks == null ? void 0 : perfHooks.performance) { + timeorigin = perfHooks.performance.timeOrigin; + if (perfHooks.shouldWriteNativeEvents || ((_a = system == null ? void 0 : system.cpuProfilingEnabled) == null ? void 0 : _a.call(system)) || (system == null ? void 0 : system.debugMode)) { + performanceImpl = perfHooks.performance; + } + } + } + return true; +} +function disable() { + if (enabled) { + marks.clear(); + counts.clear(); + durations.clear(); + performanceImpl = void 0; + enabled = false; + } +} + +// src/compiler/tracing.ts +var tracing; +var tracingEnabled; +((tracingEnabled2) => { + let fs; + let traceCount = 0; + let traceFd = 0; + let mode; + const typeCatalog = []; + let legendPath; + const legend = []; + function startTracing2(tracingMode, traceDir, configFilePath) { + Debug.assert(!tracing, "Tracing already started"); + if (fs === void 0) { + try { + fs = require("fs"); + } catch (e) { + throw new Error(`tracing requires having fs +(original error: ${e.message || e})`); + } + } + mode = tracingMode; + typeCatalog.length = 0; + if (legendPath === void 0) { + legendPath = combinePaths(traceDir, "legend.json"); + } + if (!fs.existsSync(traceDir)) { + fs.mkdirSync(traceDir, { recursive: true }); + } + const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``; + const tracePath = combinePaths(traceDir, `trace${countPart}.json`); + const typesPath = combinePaths(traceDir, `types${countPart}.json`); + legend.push({ + configFilePath, + tracePath, + typesPath + }); + traceFd = fs.openSync(tracePath, "w"); + tracing = tracingEnabled2; + const meta = { cat: "__metadata", ph: "M", ts: 1e3 * timestamp(), pid: 1, tid: 1 }; + fs.writeSync( + traceFd, + "[\n" + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(",\n") + ); + } + tracingEnabled2.startTracing = startTracing2; + function stopTracing() { + Debug.assert(tracing, "Tracing is not in progress"); + Debug.assert(!!typeCatalog.length === (mode !== "server")); + fs.writeSync(traceFd, ` +] +`); + fs.closeSync(traceFd); + tracing = void 0; + if (typeCatalog.length) { + dumpTypes(typeCatalog); + } else { + legend[legend.length - 1].typesPath = void 0; + } + } + tracingEnabled2.stopTracing = stopTracing; + function recordType(type) { + if (mode !== "server") { + typeCatalog.push(type); + } + } + tracingEnabled2.recordType = recordType; + let Phase; + ((Phase2) => { + Phase2["Parse"] = "parse"; + Phase2["Program"] = "program"; + Phase2["Bind"] = "bind"; + Phase2["Check"] = "check"; + Phase2["CheckTypes"] = "checkTypes"; + Phase2["Emit"] = "emit"; + Phase2["Session"] = "session"; + })(Phase = tracingEnabled2.Phase || (tracingEnabled2.Phase = {})); + function instant(phase, name, args) { + writeEvent("I", phase, name, args, `"s":"g"`); + } + tracingEnabled2.instant = instant; + const eventStack = []; + function push(phase, name, args, separateBeginAndEnd = false) { + if (separateBeginAndEnd) { + writeEvent("B", phase, name, args); + } + eventStack.push({ phase, name, args, time: 1e3 * timestamp(), separateBeginAndEnd }); + } + tracingEnabled2.push = push; + function pop(results) { + Debug.assert(eventStack.length > 0); + writeStackEvent(eventStack.length - 1, 1e3 * timestamp(), results); + eventStack.length--; + } + tracingEnabled2.pop = pop; + function popAll() { + const endTime = 1e3 * timestamp(); + for (let i = eventStack.length - 1; i >= 0; i--) { + writeStackEvent(i, endTime); + } + eventStack.length = 0; + } + tracingEnabled2.popAll = popAll; + const sampleInterval = 1e3 * 10; + function writeStackEvent(index, endTime, results) { + const { phase, name, args, time, separateBeginAndEnd } = eventStack[index]; + if (separateBeginAndEnd) { + Debug.assert(!results, "`results` are not supported for events with `separateBeginAndEnd`"); + writeEvent( + "E", + phase, + name, + args, + /*extras*/ + void 0, + endTime + ); + } else if (sampleInterval - time % sampleInterval <= endTime - time) { + writeEvent("X", phase, name, { ...args, results }, `"dur":${endTime - time}`, time); + } + } + function writeEvent(eventType, phase, name, args, extras, time = 1e3 * timestamp()) { + if (mode === "server" && phase === "checkTypes" /* CheckTypes */) return; + mark("beginTracing"); + fs.writeSync(traceFd, `, +{"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`); + if (extras) fs.writeSync(traceFd, `,${extras}`); + if (args) fs.writeSync(traceFd, `,"args":${JSON.stringify(args)}`); + fs.writeSync(traceFd, `}`); + mark("endTracing"); + measure("Tracing", "beginTracing", "endTracing"); + } + function getLocation(node) { + const file = getSourceFileOfNode(node); + return !file ? void 0 : { + path: file.path, + start: indexFromOne(getLineAndCharacterOfPosition(file, node.pos)), + end: indexFromOne(getLineAndCharacterOfPosition(file, node.end)) + }; + function indexFromOne(lc) { + return { + line: lc.line + 1, + character: lc.character + 1 + }; + } + } + function dumpTypes(types) { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s; + mark("beginDumpTypes"); + const typesPath = legend[legend.length - 1].typesPath; + const typesFd = fs.openSync(typesPath, "w"); + const recursionIdentityMap = /* @__PURE__ */ new Map(); + fs.writeSync(typesFd, "["); + const numTypes = types.length; + for (let i = 0; i < numTypes; i++) { + const type = types[i]; + const objectFlags = type.objectFlags; + const symbol = type.aliasSymbol ?? type.symbol; + let display; + if (objectFlags & 16 /* Anonymous */ | type.flags & 2944 /* Literal */) { + try { + display = (_a = type.checker) == null ? void 0 : _a.typeToString(type); + } catch { + display = void 0; + } + } + let indexedAccessProperties = {}; + if (type.flags & 8388608 /* IndexedAccess */) { + const indexedAccessType = type; + indexedAccessProperties = { + indexedAccessObjectType: (_b = indexedAccessType.objectType) == null ? void 0 : _b.id, + indexedAccessIndexType: (_c = indexedAccessType.indexType) == null ? void 0 : _c.id + }; + } + let referenceProperties = {}; + if (objectFlags & 4 /* Reference */) { + const referenceType = type; + referenceProperties = { + instantiatedType: (_d = referenceType.target) == null ? void 0 : _d.id, + typeArguments: (_e = referenceType.resolvedTypeArguments) == null ? void 0 : _e.map((t) => t.id), + referenceLocation: getLocation(referenceType.node) + }; + } + let conditionalProperties = {}; + if (type.flags & 16777216 /* Conditional */) { + const conditionalType = type; + conditionalProperties = { + conditionalCheckType: (_f = conditionalType.checkType) == null ? void 0 : _f.id, + conditionalExtendsType: (_g = conditionalType.extendsType) == null ? void 0 : _g.id, + conditionalTrueType: ((_h = conditionalType.resolvedTrueType) == null ? void 0 : _h.id) ?? -1, + conditionalFalseType: ((_i = conditionalType.resolvedFalseType) == null ? void 0 : _i.id) ?? -1 + }; + } + let substitutionProperties = {}; + if (type.flags & 33554432 /* Substitution */) { + const substitutionType = type; + substitutionProperties = { + substitutionBaseType: (_j = substitutionType.baseType) == null ? void 0 : _j.id, + constraintType: (_k = substitutionType.constraint) == null ? void 0 : _k.id + }; + } + let reverseMappedProperties = {}; + if (objectFlags & 1024 /* ReverseMapped */) { + const reverseMappedType = type; + reverseMappedProperties = { + reverseMappedSourceType: (_l = reverseMappedType.source) == null ? void 0 : _l.id, + reverseMappedMappedType: (_m = reverseMappedType.mappedType) == null ? void 0 : _m.id, + reverseMappedConstraintType: (_n = reverseMappedType.constraintType) == null ? void 0 : _n.id + }; + } + let evolvingArrayProperties = {}; + if (objectFlags & 256 /* EvolvingArray */) { + const evolvingArrayType = type; + evolvingArrayProperties = { + evolvingArrayElementType: evolvingArrayType.elementType.id, + evolvingArrayFinalType: (_o = evolvingArrayType.finalArrayType) == null ? void 0 : _o.id + }; + } + let recursionToken; + const recursionIdentity = type.checker.getRecursionIdentity(type); + if (recursionIdentity) { + recursionToken = recursionIdentityMap.get(recursionIdentity); + if (!recursionToken) { + recursionToken = recursionIdentityMap.size; + recursionIdentityMap.set(recursionIdentity, recursionToken); + } + } + const descriptor = { + id: type.id, + intrinsicName: type.intrinsicName, + symbolName: (symbol == null ? void 0 : symbol.escapedName) && unescapeLeadingUnderscores(symbol.escapedName), + recursionId: recursionToken, + isTuple: objectFlags & 8 /* Tuple */ ? true : void 0, + unionTypes: type.flags & 1048576 /* Union */ ? (_p = type.types) == null ? void 0 : _p.map((t) => t.id) : void 0, + intersectionTypes: type.flags & 2097152 /* Intersection */ ? type.types.map((t) => t.id) : void 0, + aliasTypeArguments: (_q = type.aliasTypeArguments) == null ? void 0 : _q.map((t) => t.id), + keyofType: type.flags & 4194304 /* Index */ ? (_r = type.type) == null ? void 0 : _r.id : void 0, + ...indexedAccessProperties, + ...referenceProperties, + ...conditionalProperties, + ...substitutionProperties, + ...reverseMappedProperties, + ...evolvingArrayProperties, + destructuringPattern: getLocation(type.pattern), + firstDeclaration: getLocation((_s = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _s[0]), + flags: Debug.formatTypeFlags(type.flags).split("|"), + display + }; + fs.writeSync(typesFd, JSON.stringify(descriptor)); + if (i < numTypes - 1) { + fs.writeSync(typesFd, ",\n"); + } + } + fs.writeSync(typesFd, "]\n"); + fs.closeSync(typesFd); + mark("endDumpTypes"); + measure("Dump types", "beginDumpTypes", "endDumpTypes"); + } + function dumpLegend() { + if (!legendPath) { + return; + } + fs.writeFileSync(legendPath, JSON.stringify(legend)); + } + tracingEnabled2.dumpLegend = dumpLegend; +})(tracingEnabled || (tracingEnabled = {})); +var startTracing = tracingEnabled.startTracing; +var dumpTracingLegend = tracingEnabled.dumpLegend; + +// src/compiler/types.ts +var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => { + SyntaxKind4[SyntaxKind4["Unknown"] = 0] = "Unknown"; + SyntaxKind4[SyntaxKind4["EndOfFileToken"] = 1] = "EndOfFileToken"; + SyntaxKind4[SyntaxKind4["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia"; + SyntaxKind4[SyntaxKind4["MultiLineCommentTrivia"] = 3] = "MultiLineCommentTrivia"; + SyntaxKind4[SyntaxKind4["NewLineTrivia"] = 4] = "NewLineTrivia"; + SyntaxKind4[SyntaxKind4["WhitespaceTrivia"] = 5] = "WhitespaceTrivia"; + SyntaxKind4[SyntaxKind4["ShebangTrivia"] = 6] = "ShebangTrivia"; + SyntaxKind4[SyntaxKind4["ConflictMarkerTrivia"] = 7] = "ConflictMarkerTrivia"; + SyntaxKind4[SyntaxKind4["NonTextFileMarkerTrivia"] = 8] = "NonTextFileMarkerTrivia"; + SyntaxKind4[SyntaxKind4["NumericLiteral"] = 9] = "NumericLiteral"; + SyntaxKind4[SyntaxKind4["BigIntLiteral"] = 10] = "BigIntLiteral"; + SyntaxKind4[SyntaxKind4["StringLiteral"] = 11] = "StringLiteral"; + SyntaxKind4[SyntaxKind4["JsxText"] = 12] = "JsxText"; + SyntaxKind4[SyntaxKind4["JsxTextAllWhiteSpaces"] = 13] = "JsxTextAllWhiteSpaces"; + SyntaxKind4[SyntaxKind4["RegularExpressionLiteral"] = 14] = "RegularExpressionLiteral"; + SyntaxKind4[SyntaxKind4["NoSubstitutionTemplateLiteral"] = 15] = "NoSubstitutionTemplateLiteral"; + SyntaxKind4[SyntaxKind4["TemplateHead"] = 16] = "TemplateHead"; + SyntaxKind4[SyntaxKind4["TemplateMiddle"] = 17] = "TemplateMiddle"; + SyntaxKind4[SyntaxKind4["TemplateTail"] = 18] = "TemplateTail"; + SyntaxKind4[SyntaxKind4["OpenBraceToken"] = 19] = "OpenBraceToken"; + SyntaxKind4[SyntaxKind4["CloseBraceToken"] = 20] = "CloseBraceToken"; + SyntaxKind4[SyntaxKind4["OpenParenToken"] = 21] = "OpenParenToken"; + SyntaxKind4[SyntaxKind4["CloseParenToken"] = 22] = "CloseParenToken"; + SyntaxKind4[SyntaxKind4["OpenBracketToken"] = 23] = "OpenBracketToken"; + SyntaxKind4[SyntaxKind4["CloseBracketToken"] = 24] = "CloseBracketToken"; + SyntaxKind4[SyntaxKind4["DotToken"] = 25] = "DotToken"; + SyntaxKind4[SyntaxKind4["DotDotDotToken"] = 26] = "DotDotDotToken"; + SyntaxKind4[SyntaxKind4["SemicolonToken"] = 27] = "SemicolonToken"; + SyntaxKind4[SyntaxKind4["CommaToken"] = 28] = "CommaToken"; + SyntaxKind4[SyntaxKind4["QuestionDotToken"] = 29] = "QuestionDotToken"; + SyntaxKind4[SyntaxKind4["LessThanToken"] = 30] = "LessThanToken"; + SyntaxKind4[SyntaxKind4["LessThanSlashToken"] = 31] = "LessThanSlashToken"; + SyntaxKind4[SyntaxKind4["GreaterThanToken"] = 32] = "GreaterThanToken"; + SyntaxKind4[SyntaxKind4["LessThanEqualsToken"] = 33] = "LessThanEqualsToken"; + SyntaxKind4[SyntaxKind4["GreaterThanEqualsToken"] = 34] = "GreaterThanEqualsToken"; + SyntaxKind4[SyntaxKind4["EqualsEqualsToken"] = 35] = "EqualsEqualsToken"; + SyntaxKind4[SyntaxKind4["ExclamationEqualsToken"] = 36] = "ExclamationEqualsToken"; + SyntaxKind4[SyntaxKind4["EqualsEqualsEqualsToken"] = 37] = "EqualsEqualsEqualsToken"; + SyntaxKind4[SyntaxKind4["ExclamationEqualsEqualsToken"] = 38] = "ExclamationEqualsEqualsToken"; + SyntaxKind4[SyntaxKind4["EqualsGreaterThanToken"] = 39] = "EqualsGreaterThanToken"; + SyntaxKind4[SyntaxKind4["PlusToken"] = 40] = "PlusToken"; + SyntaxKind4[SyntaxKind4["MinusToken"] = 41] = "MinusToken"; + SyntaxKind4[SyntaxKind4["AsteriskToken"] = 42] = "AsteriskToken"; + SyntaxKind4[SyntaxKind4["AsteriskAsteriskToken"] = 43] = "AsteriskAsteriskToken"; + SyntaxKind4[SyntaxKind4["SlashToken"] = 44] = "SlashToken"; + SyntaxKind4[SyntaxKind4["PercentToken"] = 45] = "PercentToken"; + SyntaxKind4[SyntaxKind4["PlusPlusToken"] = 46] = "PlusPlusToken"; + SyntaxKind4[SyntaxKind4["MinusMinusToken"] = 47] = "MinusMinusToken"; + SyntaxKind4[SyntaxKind4["LessThanLessThanToken"] = 48] = "LessThanLessThanToken"; + SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanToken"] = 49] = "GreaterThanGreaterThanToken"; + SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanGreaterThanToken"] = 50] = "GreaterThanGreaterThanGreaterThanToken"; + SyntaxKind4[SyntaxKind4["AmpersandToken"] = 51] = "AmpersandToken"; + SyntaxKind4[SyntaxKind4["BarToken"] = 52] = "BarToken"; + SyntaxKind4[SyntaxKind4["CaretToken"] = 53] = "CaretToken"; + SyntaxKind4[SyntaxKind4["ExclamationToken"] = 54] = "ExclamationToken"; + SyntaxKind4[SyntaxKind4["TildeToken"] = 55] = "TildeToken"; + SyntaxKind4[SyntaxKind4["AmpersandAmpersandToken"] = 56] = "AmpersandAmpersandToken"; + SyntaxKind4[SyntaxKind4["BarBarToken"] = 57] = "BarBarToken"; + SyntaxKind4[SyntaxKind4["QuestionToken"] = 58] = "QuestionToken"; + SyntaxKind4[SyntaxKind4["ColonToken"] = 59] = "ColonToken"; + SyntaxKind4[SyntaxKind4["AtToken"] = 60] = "AtToken"; + SyntaxKind4[SyntaxKind4["QuestionQuestionToken"] = 61] = "QuestionQuestionToken"; + SyntaxKind4[SyntaxKind4["BacktickToken"] = 62] = "BacktickToken"; + SyntaxKind4[SyntaxKind4["HashToken"] = 63] = "HashToken"; + SyntaxKind4[SyntaxKind4["EqualsToken"] = 64] = "EqualsToken"; + SyntaxKind4[SyntaxKind4["PlusEqualsToken"] = 65] = "PlusEqualsToken"; + SyntaxKind4[SyntaxKind4["MinusEqualsToken"] = 66] = "MinusEqualsToken"; + SyntaxKind4[SyntaxKind4["AsteriskEqualsToken"] = 67] = "AsteriskEqualsToken"; + SyntaxKind4[SyntaxKind4["AsteriskAsteriskEqualsToken"] = 68] = "AsteriskAsteriskEqualsToken"; + SyntaxKind4[SyntaxKind4["SlashEqualsToken"] = 69] = "SlashEqualsToken"; + SyntaxKind4[SyntaxKind4["PercentEqualsToken"] = 70] = "PercentEqualsToken"; + SyntaxKind4[SyntaxKind4["LessThanLessThanEqualsToken"] = 71] = "LessThanLessThanEqualsToken"; + SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanEqualsToken"] = 72] = "GreaterThanGreaterThanEqualsToken"; + SyntaxKind4[SyntaxKind4["GreaterThanGreaterThanGreaterThanEqualsToken"] = 73] = "GreaterThanGreaterThanGreaterThanEqualsToken"; + SyntaxKind4[SyntaxKind4["AmpersandEqualsToken"] = 74] = "AmpersandEqualsToken"; + SyntaxKind4[SyntaxKind4["BarEqualsToken"] = 75] = "BarEqualsToken"; + SyntaxKind4[SyntaxKind4["BarBarEqualsToken"] = 76] = "BarBarEqualsToken"; + SyntaxKind4[SyntaxKind4["AmpersandAmpersandEqualsToken"] = 77] = "AmpersandAmpersandEqualsToken"; + SyntaxKind4[SyntaxKind4["QuestionQuestionEqualsToken"] = 78] = "QuestionQuestionEqualsToken"; + SyntaxKind4[SyntaxKind4["CaretEqualsToken"] = 79] = "CaretEqualsToken"; + SyntaxKind4[SyntaxKind4["Identifier"] = 80] = "Identifier"; + SyntaxKind4[SyntaxKind4["PrivateIdentifier"] = 81] = "PrivateIdentifier"; + SyntaxKind4[SyntaxKind4["JSDocCommentTextToken"] = 82] = "JSDocCommentTextToken"; + SyntaxKind4[SyntaxKind4["BreakKeyword"] = 83] = "BreakKeyword"; + SyntaxKind4[SyntaxKind4["CaseKeyword"] = 84] = "CaseKeyword"; + SyntaxKind4[SyntaxKind4["CatchKeyword"] = 85] = "CatchKeyword"; + SyntaxKind4[SyntaxKind4["ClassKeyword"] = 86] = "ClassKeyword"; + SyntaxKind4[SyntaxKind4["ConstKeyword"] = 87] = "ConstKeyword"; + SyntaxKind4[SyntaxKind4["ContinueKeyword"] = 88] = "ContinueKeyword"; + SyntaxKind4[SyntaxKind4["DebuggerKeyword"] = 89] = "DebuggerKeyword"; + SyntaxKind4[SyntaxKind4["DefaultKeyword"] = 90] = "DefaultKeyword"; + SyntaxKind4[SyntaxKind4["DeleteKeyword"] = 91] = "DeleteKeyword"; + SyntaxKind4[SyntaxKind4["DoKeyword"] = 92] = "DoKeyword"; + SyntaxKind4[SyntaxKind4["ElseKeyword"] = 93] = "ElseKeyword"; + SyntaxKind4[SyntaxKind4["EnumKeyword"] = 94] = "EnumKeyword"; + SyntaxKind4[SyntaxKind4["ExportKeyword"] = 95] = "ExportKeyword"; + SyntaxKind4[SyntaxKind4["ExtendsKeyword"] = 96] = "ExtendsKeyword"; + SyntaxKind4[SyntaxKind4["FalseKeyword"] = 97] = "FalseKeyword"; + SyntaxKind4[SyntaxKind4["FinallyKeyword"] = 98] = "FinallyKeyword"; + SyntaxKind4[SyntaxKind4["ForKeyword"] = 99] = "ForKeyword"; + SyntaxKind4[SyntaxKind4["FunctionKeyword"] = 100] = "FunctionKeyword"; + SyntaxKind4[SyntaxKind4["IfKeyword"] = 101] = "IfKeyword"; + SyntaxKind4[SyntaxKind4["ImportKeyword"] = 102] = "ImportKeyword"; + SyntaxKind4[SyntaxKind4["InKeyword"] = 103] = "InKeyword"; + SyntaxKind4[SyntaxKind4["InstanceOfKeyword"] = 104] = "InstanceOfKeyword"; + SyntaxKind4[SyntaxKind4["NewKeyword"] = 105] = "NewKeyword"; + SyntaxKind4[SyntaxKind4["NullKeyword"] = 106] = "NullKeyword"; + SyntaxKind4[SyntaxKind4["ReturnKeyword"] = 107] = "ReturnKeyword"; + SyntaxKind4[SyntaxKind4["SuperKeyword"] = 108] = "SuperKeyword"; + SyntaxKind4[SyntaxKind4["SwitchKeyword"] = 109] = "SwitchKeyword"; + SyntaxKind4[SyntaxKind4["ThisKeyword"] = 110] = "ThisKeyword"; + SyntaxKind4[SyntaxKind4["ThrowKeyword"] = 111] = "ThrowKeyword"; + SyntaxKind4[SyntaxKind4["TrueKeyword"] = 112] = "TrueKeyword"; + SyntaxKind4[SyntaxKind4["TryKeyword"] = 113] = "TryKeyword"; + SyntaxKind4[SyntaxKind4["TypeOfKeyword"] = 114] = "TypeOfKeyword"; + SyntaxKind4[SyntaxKind4["VarKeyword"] = 115] = "VarKeyword"; + SyntaxKind4[SyntaxKind4["VoidKeyword"] = 116] = "VoidKeyword"; + SyntaxKind4[SyntaxKind4["WhileKeyword"] = 117] = "WhileKeyword"; + SyntaxKind4[SyntaxKind4["WithKeyword"] = 118] = "WithKeyword"; + SyntaxKind4[SyntaxKind4["ImplementsKeyword"] = 119] = "ImplementsKeyword"; + SyntaxKind4[SyntaxKind4["InterfaceKeyword"] = 120] = "InterfaceKeyword"; + SyntaxKind4[SyntaxKind4["LetKeyword"] = 121] = "LetKeyword"; + SyntaxKind4[SyntaxKind4["PackageKeyword"] = 122] = "PackageKeyword"; + SyntaxKind4[SyntaxKind4["PrivateKeyword"] = 123] = "PrivateKeyword"; + SyntaxKind4[SyntaxKind4["ProtectedKeyword"] = 124] = "ProtectedKeyword"; + SyntaxKind4[SyntaxKind4["PublicKeyword"] = 125] = "PublicKeyword"; + SyntaxKind4[SyntaxKind4["StaticKeyword"] = 126] = "StaticKeyword"; + SyntaxKind4[SyntaxKind4["YieldKeyword"] = 127] = "YieldKeyword"; + SyntaxKind4[SyntaxKind4["AbstractKeyword"] = 128] = "AbstractKeyword"; + SyntaxKind4[SyntaxKind4["AccessorKeyword"] = 129] = "AccessorKeyword"; + SyntaxKind4[SyntaxKind4["AsKeyword"] = 130] = "AsKeyword"; + SyntaxKind4[SyntaxKind4["AssertsKeyword"] = 131] = "AssertsKeyword"; + SyntaxKind4[SyntaxKind4["AssertKeyword"] = 132] = "AssertKeyword"; + SyntaxKind4[SyntaxKind4["AnyKeyword"] = 133] = "AnyKeyword"; + SyntaxKind4[SyntaxKind4["AsyncKeyword"] = 134] = "AsyncKeyword"; + SyntaxKind4[SyntaxKind4["AwaitKeyword"] = 135] = "AwaitKeyword"; + SyntaxKind4[SyntaxKind4["BooleanKeyword"] = 136] = "BooleanKeyword"; + SyntaxKind4[SyntaxKind4["ConstructorKeyword"] = 137] = "ConstructorKeyword"; + SyntaxKind4[SyntaxKind4["DeclareKeyword"] = 138] = "DeclareKeyword"; + SyntaxKind4[SyntaxKind4["GetKeyword"] = 139] = "GetKeyword"; + SyntaxKind4[SyntaxKind4["InferKeyword"] = 140] = "InferKeyword"; + SyntaxKind4[SyntaxKind4["IntrinsicKeyword"] = 141] = "IntrinsicKeyword"; + SyntaxKind4[SyntaxKind4["IsKeyword"] = 142] = "IsKeyword"; + SyntaxKind4[SyntaxKind4["KeyOfKeyword"] = 143] = "KeyOfKeyword"; + SyntaxKind4[SyntaxKind4["ModuleKeyword"] = 144] = "ModuleKeyword"; + SyntaxKind4[SyntaxKind4["NamespaceKeyword"] = 145] = "NamespaceKeyword"; + SyntaxKind4[SyntaxKind4["NeverKeyword"] = 146] = "NeverKeyword"; + SyntaxKind4[SyntaxKind4["OutKeyword"] = 147] = "OutKeyword"; + SyntaxKind4[SyntaxKind4["ReadonlyKeyword"] = 148] = "ReadonlyKeyword"; + SyntaxKind4[SyntaxKind4["RequireKeyword"] = 149] = "RequireKeyword"; + SyntaxKind4[SyntaxKind4["NumberKeyword"] = 150] = "NumberKeyword"; + SyntaxKind4[SyntaxKind4["ObjectKeyword"] = 151] = "ObjectKeyword"; + SyntaxKind4[SyntaxKind4["SatisfiesKeyword"] = 152] = "SatisfiesKeyword"; + SyntaxKind4[SyntaxKind4["SetKeyword"] = 153] = "SetKeyword"; + SyntaxKind4[SyntaxKind4["StringKeyword"] = 154] = "StringKeyword"; + SyntaxKind4[SyntaxKind4["SymbolKeyword"] = 155] = "SymbolKeyword"; + SyntaxKind4[SyntaxKind4["TypeKeyword"] = 156] = "TypeKeyword"; + SyntaxKind4[SyntaxKind4["UndefinedKeyword"] = 157] = "UndefinedKeyword"; + SyntaxKind4[SyntaxKind4["UniqueKeyword"] = 158] = "UniqueKeyword"; + SyntaxKind4[SyntaxKind4["UnknownKeyword"] = 159] = "UnknownKeyword"; + SyntaxKind4[SyntaxKind4["UsingKeyword"] = 160] = "UsingKeyword"; + SyntaxKind4[SyntaxKind4["FromKeyword"] = 161] = "FromKeyword"; + SyntaxKind4[SyntaxKind4["GlobalKeyword"] = 162] = "GlobalKeyword"; + SyntaxKind4[SyntaxKind4["BigIntKeyword"] = 163] = "BigIntKeyword"; + SyntaxKind4[SyntaxKind4["OverrideKeyword"] = 164] = "OverrideKeyword"; + SyntaxKind4[SyntaxKind4["OfKeyword"] = 165] = "OfKeyword"; + SyntaxKind4[SyntaxKind4["QualifiedName"] = 166] = "QualifiedName"; + SyntaxKind4[SyntaxKind4["ComputedPropertyName"] = 167] = "ComputedPropertyName"; + SyntaxKind4[SyntaxKind4["TypeParameter"] = 168] = "TypeParameter"; + SyntaxKind4[SyntaxKind4["Parameter"] = 169] = "Parameter"; + SyntaxKind4[SyntaxKind4["Decorator"] = 170] = "Decorator"; + SyntaxKind4[SyntaxKind4["PropertySignature"] = 171] = "PropertySignature"; + SyntaxKind4[SyntaxKind4["PropertyDeclaration"] = 172] = "PropertyDeclaration"; + SyntaxKind4[SyntaxKind4["MethodSignature"] = 173] = "MethodSignature"; + SyntaxKind4[SyntaxKind4["MethodDeclaration"] = 174] = "MethodDeclaration"; + SyntaxKind4[SyntaxKind4["ClassStaticBlockDeclaration"] = 175] = "ClassStaticBlockDeclaration"; + SyntaxKind4[SyntaxKind4["Constructor"] = 176] = "Constructor"; + SyntaxKind4[SyntaxKind4["GetAccessor"] = 177] = "GetAccessor"; + SyntaxKind4[SyntaxKind4["SetAccessor"] = 178] = "SetAccessor"; + SyntaxKind4[SyntaxKind4["CallSignature"] = 179] = "CallSignature"; + SyntaxKind4[SyntaxKind4["ConstructSignature"] = 180] = "ConstructSignature"; + SyntaxKind4[SyntaxKind4["IndexSignature"] = 181] = "IndexSignature"; + SyntaxKind4[SyntaxKind4["TypePredicate"] = 182] = "TypePredicate"; + SyntaxKind4[SyntaxKind4["TypeReference"] = 183] = "TypeReference"; + SyntaxKind4[SyntaxKind4["FunctionType"] = 184] = "FunctionType"; + SyntaxKind4[SyntaxKind4["ConstructorType"] = 185] = "ConstructorType"; + SyntaxKind4[SyntaxKind4["TypeQuery"] = 186] = "TypeQuery"; + SyntaxKind4[SyntaxKind4["TypeLiteral"] = 187] = "TypeLiteral"; + SyntaxKind4[SyntaxKind4["ArrayType"] = 188] = "ArrayType"; + SyntaxKind4[SyntaxKind4["TupleType"] = 189] = "TupleType"; + SyntaxKind4[SyntaxKind4["OptionalType"] = 190] = "OptionalType"; + SyntaxKind4[SyntaxKind4["RestType"] = 191] = "RestType"; + SyntaxKind4[SyntaxKind4["UnionType"] = 192] = "UnionType"; + SyntaxKind4[SyntaxKind4["IntersectionType"] = 193] = "IntersectionType"; + SyntaxKind4[SyntaxKind4["ConditionalType"] = 194] = "ConditionalType"; + SyntaxKind4[SyntaxKind4["InferType"] = 195] = "InferType"; + SyntaxKind4[SyntaxKind4["ParenthesizedType"] = 196] = "ParenthesizedType"; + SyntaxKind4[SyntaxKind4["ThisType"] = 197] = "ThisType"; + SyntaxKind4[SyntaxKind4["TypeOperator"] = 198] = "TypeOperator"; + SyntaxKind4[SyntaxKind4["IndexedAccessType"] = 199] = "IndexedAccessType"; + SyntaxKind4[SyntaxKind4["MappedType"] = 200] = "MappedType"; + SyntaxKind4[SyntaxKind4["LiteralType"] = 201] = "LiteralType"; + SyntaxKind4[SyntaxKind4["NamedTupleMember"] = 202] = "NamedTupleMember"; + SyntaxKind4[SyntaxKind4["TemplateLiteralType"] = 203] = "TemplateLiteralType"; + SyntaxKind4[SyntaxKind4["TemplateLiteralTypeSpan"] = 204] = "TemplateLiteralTypeSpan"; + SyntaxKind4[SyntaxKind4["ImportType"] = 205] = "ImportType"; + SyntaxKind4[SyntaxKind4["ObjectBindingPattern"] = 206] = "ObjectBindingPattern"; + SyntaxKind4[SyntaxKind4["ArrayBindingPattern"] = 207] = "ArrayBindingPattern"; + SyntaxKind4[SyntaxKind4["BindingElement"] = 208] = "BindingElement"; + SyntaxKind4[SyntaxKind4["ArrayLiteralExpression"] = 209] = "ArrayLiteralExpression"; + SyntaxKind4[SyntaxKind4["ObjectLiteralExpression"] = 210] = "ObjectLiteralExpression"; + SyntaxKind4[SyntaxKind4["PropertyAccessExpression"] = 211] = "PropertyAccessExpression"; + SyntaxKind4[SyntaxKind4["ElementAccessExpression"] = 212] = "ElementAccessExpression"; + SyntaxKind4[SyntaxKind4["CallExpression"] = 213] = "CallExpression"; + SyntaxKind4[SyntaxKind4["NewExpression"] = 214] = "NewExpression"; + SyntaxKind4[SyntaxKind4["TaggedTemplateExpression"] = 215] = "TaggedTemplateExpression"; + SyntaxKind4[SyntaxKind4["TypeAssertionExpression"] = 216] = "TypeAssertionExpression"; + SyntaxKind4[SyntaxKind4["ParenthesizedExpression"] = 217] = "ParenthesizedExpression"; + SyntaxKind4[SyntaxKind4["FunctionExpression"] = 218] = "FunctionExpression"; + SyntaxKind4[SyntaxKind4["ArrowFunction"] = 219] = "ArrowFunction"; + SyntaxKind4[SyntaxKind4["DeleteExpression"] = 220] = "DeleteExpression"; + SyntaxKind4[SyntaxKind4["TypeOfExpression"] = 221] = "TypeOfExpression"; + SyntaxKind4[SyntaxKind4["VoidExpression"] = 222] = "VoidExpression"; + SyntaxKind4[SyntaxKind4["AwaitExpression"] = 223] = "AwaitExpression"; + SyntaxKind4[SyntaxKind4["PrefixUnaryExpression"] = 224] = "PrefixUnaryExpression"; + SyntaxKind4[SyntaxKind4["PostfixUnaryExpression"] = 225] = "PostfixUnaryExpression"; + SyntaxKind4[SyntaxKind4["BinaryExpression"] = 226] = "BinaryExpression"; + SyntaxKind4[SyntaxKind4["ConditionalExpression"] = 227] = "ConditionalExpression"; + SyntaxKind4[SyntaxKind4["TemplateExpression"] = 228] = "TemplateExpression"; + SyntaxKind4[SyntaxKind4["YieldExpression"] = 229] = "YieldExpression"; + SyntaxKind4[SyntaxKind4["SpreadElement"] = 230] = "SpreadElement"; + SyntaxKind4[SyntaxKind4["ClassExpression"] = 231] = "ClassExpression"; + SyntaxKind4[SyntaxKind4["OmittedExpression"] = 232] = "OmittedExpression"; + SyntaxKind4[SyntaxKind4["ExpressionWithTypeArguments"] = 233] = "ExpressionWithTypeArguments"; + SyntaxKind4[SyntaxKind4["AsExpression"] = 234] = "AsExpression"; + SyntaxKind4[SyntaxKind4["NonNullExpression"] = 235] = "NonNullExpression"; + SyntaxKind4[SyntaxKind4["MetaProperty"] = 236] = "MetaProperty"; + SyntaxKind4[SyntaxKind4["SyntheticExpression"] = 237] = "SyntheticExpression"; + SyntaxKind4[SyntaxKind4["SatisfiesExpression"] = 238] = "SatisfiesExpression"; + SyntaxKind4[SyntaxKind4["TemplateSpan"] = 239] = "TemplateSpan"; + SyntaxKind4[SyntaxKind4["SemicolonClassElement"] = 240] = "SemicolonClassElement"; + SyntaxKind4[SyntaxKind4["Block"] = 241] = "Block"; + SyntaxKind4[SyntaxKind4["EmptyStatement"] = 242] = "EmptyStatement"; + SyntaxKind4[SyntaxKind4["VariableStatement"] = 243] = "VariableStatement"; + SyntaxKind4[SyntaxKind4["ExpressionStatement"] = 244] = "ExpressionStatement"; + SyntaxKind4[SyntaxKind4["IfStatement"] = 245] = "IfStatement"; + SyntaxKind4[SyntaxKind4["DoStatement"] = 246] = "DoStatement"; + SyntaxKind4[SyntaxKind4["WhileStatement"] = 247] = "WhileStatement"; + SyntaxKind4[SyntaxKind4["ForStatement"] = 248] = "ForStatement"; + SyntaxKind4[SyntaxKind4["ForInStatement"] = 249] = "ForInStatement"; + SyntaxKind4[SyntaxKind4["ForOfStatement"] = 250] = "ForOfStatement"; + SyntaxKind4[SyntaxKind4["ContinueStatement"] = 251] = "ContinueStatement"; + SyntaxKind4[SyntaxKind4["BreakStatement"] = 252] = "BreakStatement"; + SyntaxKind4[SyntaxKind4["ReturnStatement"] = 253] = "ReturnStatement"; + SyntaxKind4[SyntaxKind4["WithStatement"] = 254] = "WithStatement"; + SyntaxKind4[SyntaxKind4["SwitchStatement"] = 255] = "SwitchStatement"; + SyntaxKind4[SyntaxKind4["LabeledStatement"] = 256] = "LabeledStatement"; + SyntaxKind4[SyntaxKind4["ThrowStatement"] = 257] = "ThrowStatement"; + SyntaxKind4[SyntaxKind4["TryStatement"] = 258] = "TryStatement"; + SyntaxKind4[SyntaxKind4["DebuggerStatement"] = 259] = "DebuggerStatement"; + SyntaxKind4[SyntaxKind4["VariableDeclaration"] = 260] = "VariableDeclaration"; + SyntaxKind4[SyntaxKind4["VariableDeclarationList"] = 261] = "VariableDeclarationList"; + SyntaxKind4[SyntaxKind4["FunctionDeclaration"] = 262] = "FunctionDeclaration"; + SyntaxKind4[SyntaxKind4["ClassDeclaration"] = 263] = "ClassDeclaration"; + SyntaxKind4[SyntaxKind4["InterfaceDeclaration"] = 264] = "InterfaceDeclaration"; + SyntaxKind4[SyntaxKind4["TypeAliasDeclaration"] = 265] = "TypeAliasDeclaration"; + SyntaxKind4[SyntaxKind4["EnumDeclaration"] = 266] = "EnumDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleDeclaration"] = 267] = "ModuleDeclaration"; + SyntaxKind4[SyntaxKind4["ModuleBlock"] = 268] = "ModuleBlock"; + SyntaxKind4[SyntaxKind4["CaseBlock"] = 269] = "CaseBlock"; + SyntaxKind4[SyntaxKind4["NamespaceExportDeclaration"] = 270] = "NamespaceExportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportEqualsDeclaration"] = 271] = "ImportEqualsDeclaration"; + SyntaxKind4[SyntaxKind4["ImportDeclaration"] = 272] = "ImportDeclaration"; + SyntaxKind4[SyntaxKind4["ImportClause"] = 273] = "ImportClause"; + SyntaxKind4[SyntaxKind4["NamespaceImport"] = 274] = "NamespaceImport"; + SyntaxKind4[SyntaxKind4["NamedImports"] = 275] = "NamedImports"; + SyntaxKind4[SyntaxKind4["ImportSpecifier"] = 276] = "ImportSpecifier"; + SyntaxKind4[SyntaxKind4["ExportAssignment"] = 277] = "ExportAssignment"; + SyntaxKind4[SyntaxKind4["ExportDeclaration"] = 278] = "ExportDeclaration"; + SyntaxKind4[SyntaxKind4["NamedExports"] = 279] = "NamedExports"; + SyntaxKind4[SyntaxKind4["NamespaceExport"] = 280] = "NamespaceExport"; + SyntaxKind4[SyntaxKind4["ExportSpecifier"] = 281] = "ExportSpecifier"; + SyntaxKind4[SyntaxKind4["MissingDeclaration"] = 282] = "MissingDeclaration"; + SyntaxKind4[SyntaxKind4["ExternalModuleReference"] = 283] = "ExternalModuleReference"; + SyntaxKind4[SyntaxKind4["JsxElement"] = 284] = "JsxElement"; + SyntaxKind4[SyntaxKind4["JsxSelfClosingElement"] = 285] = "JsxSelfClosingElement"; + SyntaxKind4[SyntaxKind4["JsxOpeningElement"] = 286] = "JsxOpeningElement"; + SyntaxKind4[SyntaxKind4["JsxClosingElement"] = 287] = "JsxClosingElement"; + SyntaxKind4[SyntaxKind4["JsxFragment"] = 288] = "JsxFragment"; + SyntaxKind4[SyntaxKind4["JsxOpeningFragment"] = 289] = "JsxOpeningFragment"; + SyntaxKind4[SyntaxKind4["JsxClosingFragment"] = 290] = "JsxClosingFragment"; + SyntaxKind4[SyntaxKind4["JsxAttribute"] = 291] = "JsxAttribute"; + SyntaxKind4[SyntaxKind4["JsxAttributes"] = 292] = "JsxAttributes"; + SyntaxKind4[SyntaxKind4["JsxSpreadAttribute"] = 293] = "JsxSpreadAttribute"; + SyntaxKind4[SyntaxKind4["JsxExpression"] = 294] = "JsxExpression"; + SyntaxKind4[SyntaxKind4["JsxNamespacedName"] = 295] = "JsxNamespacedName"; + SyntaxKind4[SyntaxKind4["CaseClause"] = 296] = "CaseClause"; + SyntaxKind4[SyntaxKind4["DefaultClause"] = 297] = "DefaultClause"; + SyntaxKind4[SyntaxKind4["HeritageClause"] = 298] = "HeritageClause"; + SyntaxKind4[SyntaxKind4["CatchClause"] = 299] = "CatchClause"; + SyntaxKind4[SyntaxKind4["ImportAttributes"] = 300] = "ImportAttributes"; + SyntaxKind4[SyntaxKind4["ImportAttribute"] = 301] = "ImportAttribute"; + SyntaxKind4[SyntaxKind4["AssertClause"] = 300 /* ImportAttributes */] = "AssertClause"; + SyntaxKind4[SyntaxKind4["AssertEntry"] = 301 /* ImportAttribute */] = "AssertEntry"; + SyntaxKind4[SyntaxKind4["ImportTypeAssertionContainer"] = 302] = "ImportTypeAssertionContainer"; + SyntaxKind4[SyntaxKind4["PropertyAssignment"] = 303] = "PropertyAssignment"; + SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment"; + SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 305] = "SpreadAssignment"; + SyntaxKind4[SyntaxKind4["EnumMember"] = 306] = "EnumMember"; + SyntaxKind4[SyntaxKind4["SourceFile"] = 307] = "SourceFile"; + SyntaxKind4[SyntaxKind4["Bundle"] = 308] = "Bundle"; + SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 309] = "JSDocTypeExpression"; + SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 310] = "JSDocNameReference"; + SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 311] = "JSDocMemberName"; + SyntaxKind4[SyntaxKind4["JSDocAllType"] = 312] = "JSDocAllType"; + SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 313] = "JSDocUnknownType"; + SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 314] = "JSDocNullableType"; + SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 315] = "JSDocNonNullableType"; + SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 316] = "JSDocOptionalType"; + SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 317] = "JSDocFunctionType"; + SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 318] = "JSDocVariadicType"; + SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 319] = "JSDocNamepathType"; + SyntaxKind4[SyntaxKind4["JSDoc"] = 320] = "JSDoc"; + SyntaxKind4[SyntaxKind4["JSDocComment"] = 320 /* JSDoc */] = "JSDocComment"; + SyntaxKind4[SyntaxKind4["JSDocText"] = 321] = "JSDocText"; + SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 322] = "JSDocTypeLiteral"; + SyntaxKind4[SyntaxKind4["JSDocSignature"] = 323] = "JSDocSignature"; + SyntaxKind4[SyntaxKind4["JSDocLink"] = 324] = "JSDocLink"; + SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 325] = "JSDocLinkCode"; + SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 326] = "JSDocLinkPlain"; + SyntaxKind4[SyntaxKind4["JSDocTag"] = 327] = "JSDocTag"; + SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 328] = "JSDocAugmentsTag"; + SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 329] = "JSDocImplementsTag"; + SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 330] = "JSDocAuthorTag"; + SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 331] = "JSDocDeprecatedTag"; + SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 332] = "JSDocClassTag"; + SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 333] = "JSDocPublicTag"; + SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 334] = "JSDocPrivateTag"; + SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 335] = "JSDocProtectedTag"; + SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 336] = "JSDocReadonlyTag"; + SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 337] = "JSDocOverrideTag"; + SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 338] = "JSDocCallbackTag"; + SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 339] = "JSDocOverloadTag"; + SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 340] = "JSDocEnumTag"; + SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 341] = "JSDocParameterTag"; + SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 342] = "JSDocReturnTag"; + SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 343] = "JSDocThisTag"; + SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 344] = "JSDocTypeTag"; + SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 345] = "JSDocTemplateTag"; + SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 346] = "JSDocTypedefTag"; + SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 347] = "JSDocSeeTag"; + SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 348] = "JSDocPropertyTag"; + SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 349] = "JSDocThrowsTag"; + SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 350] = "JSDocSatisfiesTag"; + SyntaxKind4[SyntaxKind4["JSDocImportTag"] = 351] = "JSDocImportTag"; + SyntaxKind4[SyntaxKind4["SyntaxList"] = 352] = "SyntaxList"; + SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 353] = "NotEmittedStatement"; + SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 354] = "PartiallyEmittedExpression"; + SyntaxKind4[SyntaxKind4["CommaListExpression"] = 355] = "CommaListExpression"; + SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 356] = "SyntheticReferenceExpression"; + SyntaxKind4[SyntaxKind4["Count"] = 357] = "Count"; + SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; + SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; + SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; + SyntaxKind4[SyntaxKind4["LastCompoundAssignment"] = 79 /* CaretEqualsToken */] = "LastCompoundAssignment"; + SyntaxKind4[SyntaxKind4["FirstReservedWord"] = 83 /* BreakKeyword */] = "FirstReservedWord"; + SyntaxKind4[SyntaxKind4["LastReservedWord"] = 118 /* WithKeyword */] = "LastReservedWord"; + SyntaxKind4[SyntaxKind4["FirstKeyword"] = 83 /* BreakKeyword */] = "FirstKeyword"; + SyntaxKind4[SyntaxKind4["LastKeyword"] = 165 /* OfKeyword */] = "LastKeyword"; + SyntaxKind4[SyntaxKind4["FirstFutureReservedWord"] = 119 /* ImplementsKeyword */] = "FirstFutureReservedWord"; + SyntaxKind4[SyntaxKind4["LastFutureReservedWord"] = 127 /* YieldKeyword */] = "LastFutureReservedWord"; + SyntaxKind4[SyntaxKind4["FirstTypeNode"] = 182 /* TypePredicate */] = "FirstTypeNode"; + SyntaxKind4[SyntaxKind4["LastTypeNode"] = 205 /* ImportType */] = "LastTypeNode"; + SyntaxKind4[SyntaxKind4["FirstPunctuation"] = 19 /* OpenBraceToken */] = "FirstPunctuation"; + SyntaxKind4[SyntaxKind4["LastPunctuation"] = 79 /* CaretEqualsToken */] = "LastPunctuation"; + SyntaxKind4[SyntaxKind4["FirstToken"] = 0 /* Unknown */] = "FirstToken"; + SyntaxKind4[SyntaxKind4["LastToken"] = 165 /* LastKeyword */] = "LastToken"; + SyntaxKind4[SyntaxKind4["FirstTriviaToken"] = 2 /* SingleLineCommentTrivia */] = "FirstTriviaToken"; + SyntaxKind4[SyntaxKind4["LastTriviaToken"] = 7 /* ConflictMarkerTrivia */] = "LastTriviaToken"; + SyntaxKind4[SyntaxKind4["FirstLiteralToken"] = 9 /* NumericLiteral */] = "FirstLiteralToken"; + SyntaxKind4[SyntaxKind4["LastLiteralToken"] = 15 /* NoSubstitutionTemplateLiteral */] = "LastLiteralToken"; + SyntaxKind4[SyntaxKind4["FirstTemplateToken"] = 15 /* NoSubstitutionTemplateLiteral */] = "FirstTemplateToken"; + SyntaxKind4[SyntaxKind4["LastTemplateToken"] = 18 /* TemplateTail */] = "LastTemplateToken"; + SyntaxKind4[SyntaxKind4["FirstBinaryOperator"] = 30 /* LessThanToken */] = "FirstBinaryOperator"; + SyntaxKind4[SyntaxKind4["LastBinaryOperator"] = 79 /* CaretEqualsToken */] = "LastBinaryOperator"; + SyntaxKind4[SyntaxKind4["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement"; + SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement"; + SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 309 /* JSDocTypeExpression */] = "FirstJSDocNode"; + SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 351 /* JSDocImportTag */] = "LastJSDocNode"; + SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 327 /* JSDocTag */] = "FirstJSDocTagNode"; + SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 351 /* JSDocImportTag */] = "LastJSDocTagNode"; + SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword"; + SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword"; + return SyntaxKind4; +})(SyntaxKind || {}); +var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => { + NodeFlags3[NodeFlags3["None"] = 0] = "None"; + NodeFlags3[NodeFlags3["Let"] = 1] = "Let"; + NodeFlags3[NodeFlags3["Const"] = 2] = "Const"; + NodeFlags3[NodeFlags3["Using"] = 4] = "Using"; + NodeFlags3[NodeFlags3["AwaitUsing"] = 6] = "AwaitUsing"; + NodeFlags3[NodeFlags3["NestedNamespace"] = 8] = "NestedNamespace"; + NodeFlags3[NodeFlags3["Synthesized"] = 16] = "Synthesized"; + NodeFlags3[NodeFlags3["Namespace"] = 32] = "Namespace"; + NodeFlags3[NodeFlags3["OptionalChain"] = 64] = "OptionalChain"; + NodeFlags3[NodeFlags3["ExportContext"] = 128] = "ExportContext"; + NodeFlags3[NodeFlags3["ContainsThis"] = 256] = "ContainsThis"; + NodeFlags3[NodeFlags3["HasImplicitReturn"] = 512] = "HasImplicitReturn"; + NodeFlags3[NodeFlags3["HasExplicitReturn"] = 1024] = "HasExplicitReturn"; + NodeFlags3[NodeFlags3["GlobalAugmentation"] = 2048] = "GlobalAugmentation"; + NodeFlags3[NodeFlags3["HasAsyncFunctions"] = 4096] = "HasAsyncFunctions"; + NodeFlags3[NodeFlags3["DisallowInContext"] = 8192] = "DisallowInContext"; + NodeFlags3[NodeFlags3["YieldContext"] = 16384] = "YieldContext"; + NodeFlags3[NodeFlags3["DecoratorContext"] = 32768] = "DecoratorContext"; + NodeFlags3[NodeFlags3["AwaitContext"] = 65536] = "AwaitContext"; + NodeFlags3[NodeFlags3["DisallowConditionalTypesContext"] = 131072] = "DisallowConditionalTypesContext"; + NodeFlags3[NodeFlags3["ThisNodeHasError"] = 262144] = "ThisNodeHasError"; + NodeFlags3[NodeFlags3["JavaScriptFile"] = 524288] = "JavaScriptFile"; + NodeFlags3[NodeFlags3["ThisNodeOrAnySubNodesHasError"] = 1048576] = "ThisNodeOrAnySubNodesHasError"; + NodeFlags3[NodeFlags3["HasAggregatedChildData"] = 2097152] = "HasAggregatedChildData"; + NodeFlags3[NodeFlags3["PossiblyContainsDynamicImport"] = 4194304] = "PossiblyContainsDynamicImport"; + NodeFlags3[NodeFlags3["PossiblyContainsImportMeta"] = 8388608] = "PossiblyContainsImportMeta"; + NodeFlags3[NodeFlags3["JSDoc"] = 16777216] = "JSDoc"; + NodeFlags3[NodeFlags3["Ambient"] = 33554432] = "Ambient"; + NodeFlags3[NodeFlags3["InWithStatement"] = 67108864] = "InWithStatement"; + NodeFlags3[NodeFlags3["JsonFile"] = 134217728] = "JsonFile"; + NodeFlags3[NodeFlags3["TypeCached"] = 268435456] = "TypeCached"; + NodeFlags3[NodeFlags3["Deprecated"] = 536870912] = "Deprecated"; + NodeFlags3[NodeFlags3["BlockScoped"] = 7] = "BlockScoped"; + NodeFlags3[NodeFlags3["Constant"] = 6] = "Constant"; + NodeFlags3[NodeFlags3["ReachabilityCheckFlags"] = 1536] = "ReachabilityCheckFlags"; + NodeFlags3[NodeFlags3["ReachabilityAndEmitFlags"] = 5632] = "ReachabilityAndEmitFlags"; + NodeFlags3[NodeFlags3["ContextFlags"] = 101441536] = "ContextFlags"; + NodeFlags3[NodeFlags3["TypeExcludesFlags"] = 81920] = "TypeExcludesFlags"; + NodeFlags3[NodeFlags3["PermanentlySetIncrementalFlags"] = 12582912] = "PermanentlySetIncrementalFlags"; + NodeFlags3[NodeFlags3["IdentifierHasExtendedUnicodeEscape"] = 256 /* ContainsThis */] = "IdentifierHasExtendedUnicodeEscape"; + NodeFlags3[NodeFlags3["IdentifierIsInJSDocNamespace"] = 4096 /* HasAsyncFunctions */] = "IdentifierIsInJSDocNamespace"; + return NodeFlags3; +})(NodeFlags || {}); +var ModifierFlags = /* @__PURE__ */ ((ModifierFlags3) => { + ModifierFlags3[ModifierFlags3["None"] = 0] = "None"; + ModifierFlags3[ModifierFlags3["Public"] = 1] = "Public"; + ModifierFlags3[ModifierFlags3["Private"] = 2] = "Private"; + ModifierFlags3[ModifierFlags3["Protected"] = 4] = "Protected"; + ModifierFlags3[ModifierFlags3["Readonly"] = 8] = "Readonly"; + ModifierFlags3[ModifierFlags3["Override"] = 16] = "Override"; + ModifierFlags3[ModifierFlags3["Export"] = 32] = "Export"; + ModifierFlags3[ModifierFlags3["Abstract"] = 64] = "Abstract"; + ModifierFlags3[ModifierFlags3["Ambient"] = 128] = "Ambient"; + ModifierFlags3[ModifierFlags3["Static"] = 256] = "Static"; + ModifierFlags3[ModifierFlags3["Accessor"] = 512] = "Accessor"; + ModifierFlags3[ModifierFlags3["Async"] = 1024] = "Async"; + ModifierFlags3[ModifierFlags3["Default"] = 2048] = "Default"; + ModifierFlags3[ModifierFlags3["Const"] = 4096] = "Const"; + ModifierFlags3[ModifierFlags3["In"] = 8192] = "In"; + ModifierFlags3[ModifierFlags3["Out"] = 16384] = "Out"; + ModifierFlags3[ModifierFlags3["Decorator"] = 32768] = "Decorator"; + ModifierFlags3[ModifierFlags3["Deprecated"] = 65536] = "Deprecated"; + ModifierFlags3[ModifierFlags3["JSDocPublic"] = 8388608] = "JSDocPublic"; + ModifierFlags3[ModifierFlags3["JSDocPrivate"] = 16777216] = "JSDocPrivate"; + ModifierFlags3[ModifierFlags3["JSDocProtected"] = 33554432] = "JSDocProtected"; + ModifierFlags3[ModifierFlags3["JSDocReadonly"] = 67108864] = "JSDocReadonly"; + ModifierFlags3[ModifierFlags3["JSDocOverride"] = 134217728] = "JSDocOverride"; + ModifierFlags3[ModifierFlags3["SyntacticOrJSDocModifiers"] = 31] = "SyntacticOrJSDocModifiers"; + ModifierFlags3[ModifierFlags3["SyntacticOnlyModifiers"] = 65504] = "SyntacticOnlyModifiers"; + ModifierFlags3[ModifierFlags3["SyntacticModifiers"] = 65535] = "SyntacticModifiers"; + ModifierFlags3[ModifierFlags3["JSDocCacheOnlyModifiers"] = 260046848] = "JSDocCacheOnlyModifiers"; + ModifierFlags3[ModifierFlags3["JSDocOnlyModifiers"] = 65536 /* Deprecated */] = "JSDocOnlyModifiers"; + ModifierFlags3[ModifierFlags3["NonCacheOnlyModifiers"] = 131071] = "NonCacheOnlyModifiers"; + ModifierFlags3[ModifierFlags3["HasComputedJSDocModifiers"] = 268435456] = "HasComputedJSDocModifiers"; + ModifierFlags3[ModifierFlags3["HasComputedFlags"] = 536870912] = "HasComputedFlags"; + ModifierFlags3[ModifierFlags3["AccessibilityModifier"] = 7] = "AccessibilityModifier"; + ModifierFlags3[ModifierFlags3["ParameterPropertyModifier"] = 31] = "ParameterPropertyModifier"; + ModifierFlags3[ModifierFlags3["NonPublicAccessibilityModifier"] = 6] = "NonPublicAccessibilityModifier"; + ModifierFlags3[ModifierFlags3["TypeScriptModifier"] = 28895] = "TypeScriptModifier"; + ModifierFlags3[ModifierFlags3["ExportDefault"] = 2080] = "ExportDefault"; + ModifierFlags3[ModifierFlags3["All"] = 131071] = "All"; + ModifierFlags3[ModifierFlags3["Modifier"] = 98303] = "Modifier"; + return ModifierFlags3; +})(ModifierFlags || {}); +var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => { + RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None"; + RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded"; + RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed"; + RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported"; + RelationComparisonResult3[RelationComparisonResult3["ReportsUnmeasurable"] = 8] = "ReportsUnmeasurable"; + RelationComparisonResult3[RelationComparisonResult3["ReportsUnreliable"] = 16] = "ReportsUnreliable"; + RelationComparisonResult3[RelationComparisonResult3["ReportsMask"] = 24] = "ReportsMask"; + return RelationComparisonResult3; +})(RelationComparisonResult || {}); +var GeneratedIdentifierFlags = /* @__PURE__ */ ((GeneratedIdentifierFlags2) => { + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["None"] = 0] = "None"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Auto"] = 1] = "Auto"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Loop"] = 2] = "Loop"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Unique"] = 3] = "Unique"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Node"] = 4] = "Node"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["KindMask"] = 7] = "KindMask"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["ReservedInNestedScopes"] = 8] = "ReservedInNestedScopes"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Optimistic"] = 16] = "Optimistic"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["FileLevel"] = 32] = "FileLevel"; + GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["AllowNameSubstitution"] = 64] = "AllowNameSubstitution"; + return GeneratedIdentifierFlags2; +})(GeneratedIdentifierFlags || {}); +var FlowFlags = /* @__PURE__ */ ((FlowFlags2) => { + FlowFlags2[FlowFlags2["Unreachable"] = 1] = "Unreachable"; + FlowFlags2[FlowFlags2["Start"] = 2] = "Start"; + FlowFlags2[FlowFlags2["BranchLabel"] = 4] = "BranchLabel"; + FlowFlags2[FlowFlags2["LoopLabel"] = 8] = "LoopLabel"; + FlowFlags2[FlowFlags2["Assignment"] = 16] = "Assignment"; + FlowFlags2[FlowFlags2["TrueCondition"] = 32] = "TrueCondition"; + FlowFlags2[FlowFlags2["FalseCondition"] = 64] = "FalseCondition"; + FlowFlags2[FlowFlags2["SwitchClause"] = 128] = "SwitchClause"; + FlowFlags2[FlowFlags2["ArrayMutation"] = 256] = "ArrayMutation"; + FlowFlags2[FlowFlags2["Call"] = 512] = "Call"; + FlowFlags2[FlowFlags2["ReduceLabel"] = 1024] = "ReduceLabel"; + FlowFlags2[FlowFlags2["Referenced"] = 2048] = "Referenced"; + FlowFlags2[FlowFlags2["Shared"] = 4096] = "Shared"; + FlowFlags2[FlowFlags2["Label"] = 12] = "Label"; + FlowFlags2[FlowFlags2["Condition"] = 96] = "Condition"; + return FlowFlags2; +})(FlowFlags || {}); +var OperationCanceledException = class { +}; +var FileIncludeKind = /* @__PURE__ */ ((FileIncludeKind2) => { + FileIncludeKind2[FileIncludeKind2["RootFile"] = 0] = "RootFile"; + FileIncludeKind2[FileIncludeKind2["SourceFromProjectReference"] = 1] = "SourceFromProjectReference"; + FileIncludeKind2[FileIncludeKind2["OutputFromProjectReference"] = 2] = "OutputFromProjectReference"; + FileIncludeKind2[FileIncludeKind2["Import"] = 3] = "Import"; + FileIncludeKind2[FileIncludeKind2["ReferenceFile"] = 4] = "ReferenceFile"; + FileIncludeKind2[FileIncludeKind2["TypeReferenceDirective"] = 5] = "TypeReferenceDirective"; + FileIncludeKind2[FileIncludeKind2["LibFile"] = 6] = "LibFile"; + FileIncludeKind2[FileIncludeKind2["LibReferenceDirective"] = 7] = "LibReferenceDirective"; + FileIncludeKind2[FileIncludeKind2["AutomaticTypeDirectiveFile"] = 8] = "AutomaticTypeDirectiveFile"; + return FileIncludeKind2; +})(FileIncludeKind || {}); +var SymbolFlags = /* @__PURE__ */ ((SymbolFlags2) => { + SymbolFlags2[SymbolFlags2["None"] = 0] = "None"; + SymbolFlags2[SymbolFlags2["FunctionScopedVariable"] = 1] = "FunctionScopedVariable"; + SymbolFlags2[SymbolFlags2["BlockScopedVariable"] = 2] = "BlockScopedVariable"; + SymbolFlags2[SymbolFlags2["Property"] = 4] = "Property"; + SymbolFlags2[SymbolFlags2["EnumMember"] = 8] = "EnumMember"; + SymbolFlags2[SymbolFlags2["Function"] = 16] = "Function"; + SymbolFlags2[SymbolFlags2["Class"] = 32] = "Class"; + SymbolFlags2[SymbolFlags2["Interface"] = 64] = "Interface"; + SymbolFlags2[SymbolFlags2["ConstEnum"] = 128] = "ConstEnum"; + SymbolFlags2[SymbolFlags2["RegularEnum"] = 256] = "RegularEnum"; + SymbolFlags2[SymbolFlags2["ValueModule"] = 512] = "ValueModule"; + SymbolFlags2[SymbolFlags2["NamespaceModule"] = 1024] = "NamespaceModule"; + SymbolFlags2[SymbolFlags2["TypeLiteral"] = 2048] = "TypeLiteral"; + SymbolFlags2[SymbolFlags2["ObjectLiteral"] = 4096] = "ObjectLiteral"; + SymbolFlags2[SymbolFlags2["Method"] = 8192] = "Method"; + SymbolFlags2[SymbolFlags2["Constructor"] = 16384] = "Constructor"; + SymbolFlags2[SymbolFlags2["GetAccessor"] = 32768] = "GetAccessor"; + SymbolFlags2[SymbolFlags2["SetAccessor"] = 65536] = "SetAccessor"; + SymbolFlags2[SymbolFlags2["Signature"] = 131072] = "Signature"; + SymbolFlags2[SymbolFlags2["TypeParameter"] = 262144] = "TypeParameter"; + SymbolFlags2[SymbolFlags2["TypeAlias"] = 524288] = "TypeAlias"; + SymbolFlags2[SymbolFlags2["ExportValue"] = 1048576] = "ExportValue"; + SymbolFlags2[SymbolFlags2["Alias"] = 2097152] = "Alias"; + SymbolFlags2[SymbolFlags2["Prototype"] = 4194304] = "Prototype"; + SymbolFlags2[SymbolFlags2["ExportStar"] = 8388608] = "ExportStar"; + SymbolFlags2[SymbolFlags2["Optional"] = 16777216] = "Optional"; + SymbolFlags2[SymbolFlags2["Transient"] = 33554432] = "Transient"; + SymbolFlags2[SymbolFlags2["Assignment"] = 67108864] = "Assignment"; + SymbolFlags2[SymbolFlags2["ModuleExports"] = 134217728] = "ModuleExports"; + SymbolFlags2[SymbolFlags2["All"] = -1] = "All"; + SymbolFlags2[SymbolFlags2["Enum"] = 384] = "Enum"; + SymbolFlags2[SymbolFlags2["Variable"] = 3] = "Variable"; + SymbolFlags2[SymbolFlags2["Value"] = 111551] = "Value"; + SymbolFlags2[SymbolFlags2["Type"] = 788968] = "Type"; + SymbolFlags2[SymbolFlags2["Namespace"] = 1920] = "Namespace"; + SymbolFlags2[SymbolFlags2["Module"] = 1536] = "Module"; + SymbolFlags2[SymbolFlags2["Accessor"] = 98304] = "Accessor"; + SymbolFlags2[SymbolFlags2["FunctionScopedVariableExcludes"] = 111550] = "FunctionScopedVariableExcludes"; + SymbolFlags2[SymbolFlags2["BlockScopedVariableExcludes"] = 111551 /* Value */] = "BlockScopedVariableExcludes"; + SymbolFlags2[SymbolFlags2["ParameterExcludes"] = 111551 /* Value */] = "ParameterExcludes"; + SymbolFlags2[SymbolFlags2["PropertyExcludes"] = 0 /* None */] = "PropertyExcludes"; + SymbolFlags2[SymbolFlags2["EnumMemberExcludes"] = 900095] = "EnumMemberExcludes"; + SymbolFlags2[SymbolFlags2["FunctionExcludes"] = 110991] = "FunctionExcludes"; + SymbolFlags2[SymbolFlags2["ClassExcludes"] = 899503] = "ClassExcludes"; + SymbolFlags2[SymbolFlags2["InterfaceExcludes"] = 788872] = "InterfaceExcludes"; + SymbolFlags2[SymbolFlags2["RegularEnumExcludes"] = 899327] = "RegularEnumExcludes"; + SymbolFlags2[SymbolFlags2["ConstEnumExcludes"] = 899967] = "ConstEnumExcludes"; + SymbolFlags2[SymbolFlags2["ValueModuleExcludes"] = 110735] = "ValueModuleExcludes"; + SymbolFlags2[SymbolFlags2["NamespaceModuleExcludes"] = 0] = "NamespaceModuleExcludes"; + SymbolFlags2[SymbolFlags2["MethodExcludes"] = 103359] = "MethodExcludes"; + SymbolFlags2[SymbolFlags2["GetAccessorExcludes"] = 46015] = "GetAccessorExcludes"; + SymbolFlags2[SymbolFlags2["SetAccessorExcludes"] = 78783] = "SetAccessorExcludes"; + SymbolFlags2[SymbolFlags2["AccessorExcludes"] = 13247] = "AccessorExcludes"; + SymbolFlags2[SymbolFlags2["TypeParameterExcludes"] = 526824] = "TypeParameterExcludes"; + SymbolFlags2[SymbolFlags2["TypeAliasExcludes"] = 788968 /* Type */] = "TypeAliasExcludes"; + SymbolFlags2[SymbolFlags2["AliasExcludes"] = 2097152 /* Alias */] = "AliasExcludes"; + SymbolFlags2[SymbolFlags2["ModuleMember"] = 2623475] = "ModuleMember"; + SymbolFlags2[SymbolFlags2["ExportHasLocal"] = 944] = "ExportHasLocal"; + SymbolFlags2[SymbolFlags2["BlockScoped"] = 418] = "BlockScoped"; + SymbolFlags2[SymbolFlags2["PropertyOrAccessor"] = 98308] = "PropertyOrAccessor"; + SymbolFlags2[SymbolFlags2["ClassMember"] = 106500] = "ClassMember"; + SymbolFlags2[SymbolFlags2["ExportSupportsDefaultModifier"] = 112] = "ExportSupportsDefaultModifier"; + SymbolFlags2[SymbolFlags2["ExportDoesNotSupportDefaultModifier"] = -113] = "ExportDoesNotSupportDefaultModifier"; + SymbolFlags2[SymbolFlags2["Classifiable"] = 2885600] = "Classifiable"; + SymbolFlags2[SymbolFlags2["LateBindingContainer"] = 6256] = "LateBindingContainer"; + return SymbolFlags2; +})(SymbolFlags || {}); +var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags3) => { + NodeCheckFlags3[NodeCheckFlags3["None"] = 0] = "None"; + NodeCheckFlags3[NodeCheckFlags3["TypeChecked"] = 1] = "TypeChecked"; + NodeCheckFlags3[NodeCheckFlags3["LexicalThis"] = 2] = "LexicalThis"; + NodeCheckFlags3[NodeCheckFlags3["CaptureThis"] = 4] = "CaptureThis"; + NodeCheckFlags3[NodeCheckFlags3["CaptureNewTarget"] = 8] = "CaptureNewTarget"; + NodeCheckFlags3[NodeCheckFlags3["SuperInstance"] = 16] = "SuperInstance"; + NodeCheckFlags3[NodeCheckFlags3["SuperStatic"] = 32] = "SuperStatic"; + NodeCheckFlags3[NodeCheckFlags3["ContextChecked"] = 64] = "ContextChecked"; + NodeCheckFlags3[NodeCheckFlags3["MethodWithSuperPropertyAccessInAsync"] = 128] = "MethodWithSuperPropertyAccessInAsync"; + NodeCheckFlags3[NodeCheckFlags3["MethodWithSuperPropertyAssignmentInAsync"] = 256] = "MethodWithSuperPropertyAssignmentInAsync"; + NodeCheckFlags3[NodeCheckFlags3["CaptureArguments"] = 512] = "CaptureArguments"; + NodeCheckFlags3[NodeCheckFlags3["EnumValuesComputed"] = 1024] = "EnumValuesComputed"; + NodeCheckFlags3[NodeCheckFlags3["LexicalModuleMergesWithClass"] = 2048] = "LexicalModuleMergesWithClass"; + NodeCheckFlags3[NodeCheckFlags3["LoopWithCapturedBlockScopedBinding"] = 4096] = "LoopWithCapturedBlockScopedBinding"; + NodeCheckFlags3[NodeCheckFlags3["ContainsCapturedBlockScopeBinding"] = 8192] = "ContainsCapturedBlockScopeBinding"; + NodeCheckFlags3[NodeCheckFlags3["CapturedBlockScopedBinding"] = 16384] = "CapturedBlockScopedBinding"; + NodeCheckFlags3[NodeCheckFlags3["BlockScopedBindingInLoop"] = 32768] = "BlockScopedBindingInLoop"; + NodeCheckFlags3[NodeCheckFlags3["NeedsLoopOutParameter"] = 65536] = "NeedsLoopOutParameter"; + NodeCheckFlags3[NodeCheckFlags3["AssignmentsMarked"] = 131072] = "AssignmentsMarked"; + NodeCheckFlags3[NodeCheckFlags3["ContainsConstructorReference"] = 262144] = "ContainsConstructorReference"; + NodeCheckFlags3[NodeCheckFlags3["ConstructorReference"] = 536870912] = "ConstructorReference"; + NodeCheckFlags3[NodeCheckFlags3["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; + NodeCheckFlags3[NodeCheckFlags3["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; + NodeCheckFlags3[NodeCheckFlags3["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; + NodeCheckFlags3[NodeCheckFlags3["LazyFlags"] = 539358128] = "LazyFlags"; + return NodeCheckFlags3; +})(NodeCheckFlags || {}); +var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => { + TypeFlags2[TypeFlags2["Any"] = 1] = "Any"; + TypeFlags2[TypeFlags2["Unknown"] = 2] = "Unknown"; + TypeFlags2[TypeFlags2["String"] = 4] = "String"; + TypeFlags2[TypeFlags2["Number"] = 8] = "Number"; + TypeFlags2[TypeFlags2["Boolean"] = 16] = "Boolean"; + TypeFlags2[TypeFlags2["Enum"] = 32] = "Enum"; + TypeFlags2[TypeFlags2["BigInt"] = 64] = "BigInt"; + TypeFlags2[TypeFlags2["StringLiteral"] = 128] = "StringLiteral"; + TypeFlags2[TypeFlags2["NumberLiteral"] = 256] = "NumberLiteral"; + TypeFlags2[TypeFlags2["BooleanLiteral"] = 512] = "BooleanLiteral"; + TypeFlags2[TypeFlags2["EnumLiteral"] = 1024] = "EnumLiteral"; + TypeFlags2[TypeFlags2["BigIntLiteral"] = 2048] = "BigIntLiteral"; + TypeFlags2[TypeFlags2["ESSymbol"] = 4096] = "ESSymbol"; + TypeFlags2[TypeFlags2["UniqueESSymbol"] = 8192] = "UniqueESSymbol"; + TypeFlags2[TypeFlags2["Void"] = 16384] = "Void"; + TypeFlags2[TypeFlags2["Undefined"] = 32768] = "Undefined"; + TypeFlags2[TypeFlags2["Null"] = 65536] = "Null"; + TypeFlags2[TypeFlags2["Never"] = 131072] = "Never"; + TypeFlags2[TypeFlags2["TypeParameter"] = 262144] = "TypeParameter"; + TypeFlags2[TypeFlags2["Object"] = 524288] = "Object"; + TypeFlags2[TypeFlags2["Union"] = 1048576] = "Union"; + TypeFlags2[TypeFlags2["Intersection"] = 2097152] = "Intersection"; + TypeFlags2[TypeFlags2["Index"] = 4194304] = "Index"; + TypeFlags2[TypeFlags2["IndexedAccess"] = 8388608] = "IndexedAccess"; + TypeFlags2[TypeFlags2["Conditional"] = 16777216] = "Conditional"; + TypeFlags2[TypeFlags2["Substitution"] = 33554432] = "Substitution"; + TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive"; + TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral"; + TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping"; + TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1"; + TypeFlags2[TypeFlags2["Reserved2"] = 1073741824] = "Reserved2"; + TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown"; + TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable"; + TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal"; + TypeFlags2[TypeFlags2["Unit"] = 109472] = "Unit"; + TypeFlags2[TypeFlags2["Freshable"] = 2976] = "Freshable"; + TypeFlags2[TypeFlags2["StringOrNumberLiteral"] = 384] = "StringOrNumberLiteral"; + TypeFlags2[TypeFlags2["StringOrNumberLiteralOrUnique"] = 8576] = "StringOrNumberLiteralOrUnique"; + TypeFlags2[TypeFlags2["DefinitelyFalsy"] = 117632] = "DefinitelyFalsy"; + TypeFlags2[TypeFlags2["PossiblyFalsy"] = 117724] = "PossiblyFalsy"; + TypeFlags2[TypeFlags2["Intrinsic"] = 67359327] = "Intrinsic"; + TypeFlags2[TypeFlags2["StringLike"] = 402653316] = "StringLike"; + TypeFlags2[TypeFlags2["NumberLike"] = 296] = "NumberLike"; + TypeFlags2[TypeFlags2["BigIntLike"] = 2112] = "BigIntLike"; + TypeFlags2[TypeFlags2["BooleanLike"] = 528] = "BooleanLike"; + TypeFlags2[TypeFlags2["EnumLike"] = 1056] = "EnumLike"; + TypeFlags2[TypeFlags2["ESSymbolLike"] = 12288] = "ESSymbolLike"; + TypeFlags2[TypeFlags2["VoidLike"] = 49152] = "VoidLike"; + TypeFlags2[TypeFlags2["Primitive"] = 402784252] = "Primitive"; + TypeFlags2[TypeFlags2["DefinitelyNonNullable"] = 470302716] = "DefinitelyNonNullable"; + TypeFlags2[TypeFlags2["DisjointDomains"] = 469892092] = "DisjointDomains"; + TypeFlags2[TypeFlags2["UnionOrIntersection"] = 3145728] = "UnionOrIntersection"; + TypeFlags2[TypeFlags2["StructuredType"] = 3670016] = "StructuredType"; + TypeFlags2[TypeFlags2["TypeVariable"] = 8650752] = "TypeVariable"; + TypeFlags2[TypeFlags2["InstantiableNonPrimitive"] = 58982400] = "InstantiableNonPrimitive"; + TypeFlags2[TypeFlags2["InstantiablePrimitive"] = 406847488] = "InstantiablePrimitive"; + TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable"; + TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable"; + TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType"; + TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable"; + TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton"; + TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable"; + TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask"; + TypeFlags2[TypeFlags2["IncludesMissingType"] = 262144 /* TypeParameter */] = "IncludesMissingType"; + TypeFlags2[TypeFlags2["IncludesNonWideningType"] = 4194304 /* Index */] = "IncludesNonWideningType"; + TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard"; + TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject"; + TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable"; + TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable"; + TypeFlags2[TypeFlags2["IncludesError"] = 1073741824 /* Reserved2 */] = "IncludesError"; + TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion"; + return TypeFlags2; +})(TypeFlags || {}); +var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => { + ObjectFlags3[ObjectFlags3["None"] = 0] = "None"; + ObjectFlags3[ObjectFlags3["Class"] = 1] = "Class"; + ObjectFlags3[ObjectFlags3["Interface"] = 2] = "Interface"; + ObjectFlags3[ObjectFlags3["Reference"] = 4] = "Reference"; + ObjectFlags3[ObjectFlags3["Tuple"] = 8] = "Tuple"; + ObjectFlags3[ObjectFlags3["Anonymous"] = 16] = "Anonymous"; + ObjectFlags3[ObjectFlags3["Mapped"] = 32] = "Mapped"; + ObjectFlags3[ObjectFlags3["Instantiated"] = 64] = "Instantiated"; + ObjectFlags3[ObjectFlags3["ObjectLiteral"] = 128] = "ObjectLiteral"; + ObjectFlags3[ObjectFlags3["EvolvingArray"] = 256] = "EvolvingArray"; + ObjectFlags3[ObjectFlags3["ObjectLiteralPatternWithComputedProperties"] = 512] = "ObjectLiteralPatternWithComputedProperties"; + ObjectFlags3[ObjectFlags3["ReverseMapped"] = 1024] = "ReverseMapped"; + ObjectFlags3[ObjectFlags3["JsxAttributes"] = 2048] = "JsxAttributes"; + ObjectFlags3[ObjectFlags3["JSLiteral"] = 4096] = "JSLiteral"; + ObjectFlags3[ObjectFlags3["FreshLiteral"] = 8192] = "FreshLiteral"; + ObjectFlags3[ObjectFlags3["ArrayLiteral"] = 16384] = "ArrayLiteral"; + ObjectFlags3[ObjectFlags3["PrimitiveUnion"] = 32768] = "PrimitiveUnion"; + ObjectFlags3[ObjectFlags3["ContainsWideningType"] = 65536] = "ContainsWideningType"; + ObjectFlags3[ObjectFlags3["ContainsObjectOrArrayLiteral"] = 131072] = "ContainsObjectOrArrayLiteral"; + ObjectFlags3[ObjectFlags3["NonInferrableType"] = 262144] = "NonInferrableType"; + ObjectFlags3[ObjectFlags3["CouldContainTypeVariablesComputed"] = 524288] = "CouldContainTypeVariablesComputed"; + ObjectFlags3[ObjectFlags3["CouldContainTypeVariables"] = 1048576] = "CouldContainTypeVariables"; + ObjectFlags3[ObjectFlags3["ClassOrInterface"] = 3] = "ClassOrInterface"; + ObjectFlags3[ObjectFlags3["RequiresWidening"] = 196608] = "RequiresWidening"; + ObjectFlags3[ObjectFlags3["PropagatingFlags"] = 458752] = "PropagatingFlags"; + ObjectFlags3[ObjectFlags3["InstantiatedMapped"] = 96] = "InstantiatedMapped"; + ObjectFlags3[ObjectFlags3["ObjectTypeKindMask"] = 1343] = "ObjectTypeKindMask"; + ObjectFlags3[ObjectFlags3["ContainsSpread"] = 2097152] = "ContainsSpread"; + ObjectFlags3[ObjectFlags3["ObjectRestType"] = 4194304] = "ObjectRestType"; + ObjectFlags3[ObjectFlags3["InstantiationExpressionType"] = 8388608] = "InstantiationExpressionType"; + ObjectFlags3[ObjectFlags3["SingleSignatureType"] = 134217728] = "SingleSignatureType"; + ObjectFlags3[ObjectFlags3["IsClassInstanceClone"] = 16777216] = "IsClassInstanceClone"; + ObjectFlags3[ObjectFlags3["IdenticalBaseTypeCalculated"] = 33554432] = "IdenticalBaseTypeCalculated"; + ObjectFlags3[ObjectFlags3["IdenticalBaseTypeExists"] = 67108864] = "IdenticalBaseTypeExists"; + ObjectFlags3[ObjectFlags3["IsGenericTypeComputed"] = 2097152] = "IsGenericTypeComputed"; + ObjectFlags3[ObjectFlags3["IsGenericObjectType"] = 4194304] = "IsGenericObjectType"; + ObjectFlags3[ObjectFlags3["IsGenericIndexType"] = 8388608] = "IsGenericIndexType"; + ObjectFlags3[ObjectFlags3["IsGenericType"] = 12582912] = "IsGenericType"; + ObjectFlags3[ObjectFlags3["ContainsIntersections"] = 16777216] = "ContainsIntersections"; + ObjectFlags3[ObjectFlags3["IsUnknownLikeUnionComputed"] = 33554432] = "IsUnknownLikeUnionComputed"; + ObjectFlags3[ObjectFlags3["IsUnknownLikeUnion"] = 67108864] = "IsUnknownLikeUnion"; + ObjectFlags3[ObjectFlags3["IsNeverIntersectionComputed"] = 16777216] = "IsNeverIntersectionComputed"; + ObjectFlags3[ObjectFlags3["IsNeverIntersection"] = 33554432] = "IsNeverIntersection"; + ObjectFlags3[ObjectFlags3["IsConstrainedTypeVariable"] = 67108864] = "IsConstrainedTypeVariable"; + return ObjectFlags3; +})(ObjectFlags || {}); +var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => { + SignatureFlags4[SignatureFlags4["None"] = 0] = "None"; + SignatureFlags4[SignatureFlags4["HasRestParameter"] = 1] = "HasRestParameter"; + SignatureFlags4[SignatureFlags4["HasLiteralTypes"] = 2] = "HasLiteralTypes"; + SignatureFlags4[SignatureFlags4["Abstract"] = 4] = "Abstract"; + SignatureFlags4[SignatureFlags4["IsInnerCallChain"] = 8] = "IsInnerCallChain"; + SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain"; + SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile"; + SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable"; + SignatureFlags4[SignatureFlags4["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure"; + SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 167] = "PropagatingFlags"; + SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags"; + return SignatureFlags4; +})(SignatureFlags || {}); +var DiagnosticCategory = /* @__PURE__ */ ((DiagnosticCategory2) => { + DiagnosticCategory2[DiagnosticCategory2["Warning"] = 0] = "Warning"; + DiagnosticCategory2[DiagnosticCategory2["Error"] = 1] = "Error"; + DiagnosticCategory2[DiagnosticCategory2["Suggestion"] = 2] = "Suggestion"; + DiagnosticCategory2[DiagnosticCategory2["Message"] = 3] = "Message"; + return DiagnosticCategory2; +})(DiagnosticCategory || {}); +function diagnosticCategoryName(d, lowerCase = true) { + const name = DiagnosticCategory[d.category]; + return lowerCase ? name.toLowerCase() : name; +} +var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => { + ModuleResolutionKind2[ModuleResolutionKind2["Classic"] = 1] = "Classic"; + ModuleResolutionKind2[ModuleResolutionKind2["NodeJs"] = 2] = "NodeJs"; + ModuleResolutionKind2[ModuleResolutionKind2["Node10"] = 2] = "Node10"; + ModuleResolutionKind2[ModuleResolutionKind2["Node16"] = 3] = "Node16"; + ModuleResolutionKind2[ModuleResolutionKind2["NodeNext"] = 99] = "NodeNext"; + ModuleResolutionKind2[ModuleResolutionKind2["Bundler"] = 100] = "Bundler"; + return ModuleResolutionKind2; +})(ModuleResolutionKind || {}); +var ModuleKind = /* @__PURE__ */ ((ModuleKind2) => { + ModuleKind2[ModuleKind2["None"] = 0] = "None"; + ModuleKind2[ModuleKind2["CommonJS"] = 1] = "CommonJS"; + ModuleKind2[ModuleKind2["AMD"] = 2] = "AMD"; + ModuleKind2[ModuleKind2["UMD"] = 3] = "UMD"; + ModuleKind2[ModuleKind2["System"] = 4] = "System"; + ModuleKind2[ModuleKind2["ES2015"] = 5] = "ES2015"; + ModuleKind2[ModuleKind2["ES2020"] = 6] = "ES2020"; + ModuleKind2[ModuleKind2["ES2022"] = 7] = "ES2022"; + ModuleKind2[ModuleKind2["ESNext"] = 99] = "ESNext"; + ModuleKind2[ModuleKind2["Node16"] = 100] = "Node16"; + ModuleKind2[ModuleKind2["NodeNext"] = 199] = "NodeNext"; + ModuleKind2[ModuleKind2["Preserve"] = 200] = "Preserve"; + return ModuleKind2; +})(ModuleKind || {}); +var ScriptKind = /* @__PURE__ */ ((ScriptKind3) => { + ScriptKind3[ScriptKind3["Unknown"] = 0] = "Unknown"; + ScriptKind3[ScriptKind3["JS"] = 1] = "JS"; + ScriptKind3[ScriptKind3["JSX"] = 2] = "JSX"; + ScriptKind3[ScriptKind3["TS"] = 3] = "TS"; + ScriptKind3[ScriptKind3["TSX"] = 4] = "TSX"; + ScriptKind3[ScriptKind3["External"] = 5] = "External"; + ScriptKind3[ScriptKind3["JSON"] = 6] = "JSON"; + ScriptKind3[ScriptKind3["Deferred"] = 7] = "Deferred"; + return ScriptKind3; +})(ScriptKind || {}); +var TransformFlags = /* @__PURE__ */ ((TransformFlags3) => { + TransformFlags3[TransformFlags3["None"] = 0] = "None"; + TransformFlags3[TransformFlags3["ContainsTypeScript"] = 1] = "ContainsTypeScript"; + TransformFlags3[TransformFlags3["ContainsJsx"] = 2] = "ContainsJsx"; + TransformFlags3[TransformFlags3["ContainsESNext"] = 4] = "ContainsESNext"; + TransformFlags3[TransformFlags3["ContainsES2022"] = 8] = "ContainsES2022"; + TransformFlags3[TransformFlags3["ContainsES2021"] = 16] = "ContainsES2021"; + TransformFlags3[TransformFlags3["ContainsES2020"] = 32] = "ContainsES2020"; + TransformFlags3[TransformFlags3["ContainsES2019"] = 64] = "ContainsES2019"; + TransformFlags3[TransformFlags3["ContainsES2018"] = 128] = "ContainsES2018"; + TransformFlags3[TransformFlags3["ContainsES2017"] = 256] = "ContainsES2017"; + TransformFlags3[TransformFlags3["ContainsES2016"] = 512] = "ContainsES2016"; + TransformFlags3[TransformFlags3["ContainsES2015"] = 1024] = "ContainsES2015"; + TransformFlags3[TransformFlags3["ContainsGenerator"] = 2048] = "ContainsGenerator"; + TransformFlags3[TransformFlags3["ContainsDestructuringAssignment"] = 4096] = "ContainsDestructuringAssignment"; + TransformFlags3[TransformFlags3["ContainsTypeScriptClassSyntax"] = 8192] = "ContainsTypeScriptClassSyntax"; + TransformFlags3[TransformFlags3["ContainsLexicalThis"] = 16384] = "ContainsLexicalThis"; + TransformFlags3[TransformFlags3["ContainsRestOrSpread"] = 32768] = "ContainsRestOrSpread"; + TransformFlags3[TransformFlags3["ContainsObjectRestOrSpread"] = 65536] = "ContainsObjectRestOrSpread"; + TransformFlags3[TransformFlags3["ContainsComputedPropertyName"] = 131072] = "ContainsComputedPropertyName"; + TransformFlags3[TransformFlags3["ContainsBlockScopedBinding"] = 262144] = "ContainsBlockScopedBinding"; + TransformFlags3[TransformFlags3["ContainsBindingPattern"] = 524288] = "ContainsBindingPattern"; + TransformFlags3[TransformFlags3["ContainsYield"] = 1048576] = "ContainsYield"; + TransformFlags3[TransformFlags3["ContainsAwait"] = 2097152] = "ContainsAwait"; + TransformFlags3[TransformFlags3["ContainsHoistedDeclarationOrCompletion"] = 4194304] = "ContainsHoistedDeclarationOrCompletion"; + TransformFlags3[TransformFlags3["ContainsDynamicImport"] = 8388608] = "ContainsDynamicImport"; + TransformFlags3[TransformFlags3["ContainsClassFields"] = 16777216] = "ContainsClassFields"; + TransformFlags3[TransformFlags3["ContainsDecorators"] = 33554432] = "ContainsDecorators"; + TransformFlags3[TransformFlags3["ContainsPossibleTopLevelAwait"] = 67108864] = "ContainsPossibleTopLevelAwait"; + TransformFlags3[TransformFlags3["ContainsLexicalSuper"] = 134217728] = "ContainsLexicalSuper"; + TransformFlags3[TransformFlags3["ContainsUpdateExpressionForIdentifier"] = 268435456] = "ContainsUpdateExpressionForIdentifier"; + TransformFlags3[TransformFlags3["ContainsPrivateIdentifierInExpression"] = 536870912] = "ContainsPrivateIdentifierInExpression"; + TransformFlags3[TransformFlags3["HasComputedFlags"] = -2147483648] = "HasComputedFlags"; + TransformFlags3[TransformFlags3["AssertTypeScript"] = 1 /* ContainsTypeScript */] = "AssertTypeScript"; + TransformFlags3[TransformFlags3["AssertJsx"] = 2 /* ContainsJsx */] = "AssertJsx"; + TransformFlags3[TransformFlags3["AssertESNext"] = 4 /* ContainsESNext */] = "AssertESNext"; + TransformFlags3[TransformFlags3["AssertES2022"] = 8 /* ContainsES2022 */] = "AssertES2022"; + TransformFlags3[TransformFlags3["AssertES2021"] = 16 /* ContainsES2021 */] = "AssertES2021"; + TransformFlags3[TransformFlags3["AssertES2020"] = 32 /* ContainsES2020 */] = "AssertES2020"; + TransformFlags3[TransformFlags3["AssertES2019"] = 64 /* ContainsES2019 */] = "AssertES2019"; + TransformFlags3[TransformFlags3["AssertES2018"] = 128 /* ContainsES2018 */] = "AssertES2018"; + TransformFlags3[TransformFlags3["AssertES2017"] = 256 /* ContainsES2017 */] = "AssertES2017"; + TransformFlags3[TransformFlags3["AssertES2016"] = 512 /* ContainsES2016 */] = "AssertES2016"; + TransformFlags3[TransformFlags3["AssertES2015"] = 1024 /* ContainsES2015 */] = "AssertES2015"; + TransformFlags3[TransformFlags3["AssertGenerator"] = 2048 /* ContainsGenerator */] = "AssertGenerator"; + TransformFlags3[TransformFlags3["AssertDestructuringAssignment"] = 4096 /* ContainsDestructuringAssignment */] = "AssertDestructuringAssignment"; + TransformFlags3[TransformFlags3["OuterExpressionExcludes"] = -2147483648 /* HasComputedFlags */] = "OuterExpressionExcludes"; + TransformFlags3[TransformFlags3["PropertyAccessExcludes"] = -2147483648 /* OuterExpressionExcludes */] = "PropertyAccessExcludes"; + TransformFlags3[TransformFlags3["NodeExcludes"] = -2147483648 /* PropertyAccessExcludes */] = "NodeExcludes"; + TransformFlags3[TransformFlags3["ArrowFunctionExcludes"] = -2072174592] = "ArrowFunctionExcludes"; + TransformFlags3[TransformFlags3["FunctionExcludes"] = -1937940480] = "FunctionExcludes"; + TransformFlags3[TransformFlags3["ConstructorExcludes"] = -1937948672] = "ConstructorExcludes"; + TransformFlags3[TransformFlags3["MethodOrAccessorExcludes"] = -2005057536] = "MethodOrAccessorExcludes"; + TransformFlags3[TransformFlags3["PropertyExcludes"] = -2013249536] = "PropertyExcludes"; + TransformFlags3[TransformFlags3["ClassExcludes"] = -2147344384] = "ClassExcludes"; + TransformFlags3[TransformFlags3["ModuleExcludes"] = -1941676032] = "ModuleExcludes"; + TransformFlags3[TransformFlags3["TypeExcludes"] = -2] = "TypeExcludes"; + TransformFlags3[TransformFlags3["ObjectLiteralExcludes"] = -2147278848] = "ObjectLiteralExcludes"; + TransformFlags3[TransformFlags3["ArrayLiteralOrCallOrNewExcludes"] = -2147450880] = "ArrayLiteralOrCallOrNewExcludes"; + TransformFlags3[TransformFlags3["VariableDeclarationListExcludes"] = -2146893824] = "VariableDeclarationListExcludes"; + TransformFlags3[TransformFlags3["ParameterExcludes"] = -2147483648 /* NodeExcludes */] = "ParameterExcludes"; + TransformFlags3[TransformFlags3["CatchClauseExcludes"] = -2147418112] = "CatchClauseExcludes"; + TransformFlags3[TransformFlags3["BindingPatternExcludes"] = -2147450880] = "BindingPatternExcludes"; + TransformFlags3[TransformFlags3["ContainsLexicalThisOrSuper"] = 134234112] = "ContainsLexicalThisOrSuper"; + TransformFlags3[TransformFlags3["PropertyNamePropagatingFlags"] = 134234112] = "PropertyNamePropagatingFlags"; + return TransformFlags3; +})(TransformFlags || {}); +var SnippetKind = /* @__PURE__ */ ((SnippetKind3) => { + SnippetKind3[SnippetKind3["TabStop"] = 0] = "TabStop"; + SnippetKind3[SnippetKind3["Placeholder"] = 1] = "Placeholder"; + SnippetKind3[SnippetKind3["Choice"] = 2] = "Choice"; + SnippetKind3[SnippetKind3["Variable"] = 3] = "Variable"; + return SnippetKind3; +})(SnippetKind || {}); +var EmitFlags = /* @__PURE__ */ ((EmitFlags3) => { + EmitFlags3[EmitFlags3["None"] = 0] = "None"; + EmitFlags3[EmitFlags3["SingleLine"] = 1] = "SingleLine"; + EmitFlags3[EmitFlags3["MultiLine"] = 2] = "MultiLine"; + EmitFlags3[EmitFlags3["AdviseOnEmitNode"] = 4] = "AdviseOnEmitNode"; + EmitFlags3[EmitFlags3["NoSubstitution"] = 8] = "NoSubstitution"; + EmitFlags3[EmitFlags3["CapturesThis"] = 16] = "CapturesThis"; + EmitFlags3[EmitFlags3["NoLeadingSourceMap"] = 32] = "NoLeadingSourceMap"; + EmitFlags3[EmitFlags3["NoTrailingSourceMap"] = 64] = "NoTrailingSourceMap"; + EmitFlags3[EmitFlags3["NoSourceMap"] = 96] = "NoSourceMap"; + EmitFlags3[EmitFlags3["NoNestedSourceMaps"] = 128] = "NoNestedSourceMaps"; + EmitFlags3[EmitFlags3["NoTokenLeadingSourceMaps"] = 256] = "NoTokenLeadingSourceMaps"; + EmitFlags3[EmitFlags3["NoTokenTrailingSourceMaps"] = 512] = "NoTokenTrailingSourceMaps"; + EmitFlags3[EmitFlags3["NoTokenSourceMaps"] = 768] = "NoTokenSourceMaps"; + EmitFlags3[EmitFlags3["NoLeadingComments"] = 1024] = "NoLeadingComments"; + EmitFlags3[EmitFlags3["NoTrailingComments"] = 2048] = "NoTrailingComments"; + EmitFlags3[EmitFlags3["NoComments"] = 3072] = "NoComments"; + EmitFlags3[EmitFlags3["NoNestedComments"] = 4096] = "NoNestedComments"; + EmitFlags3[EmitFlags3["HelperName"] = 8192] = "HelperName"; + EmitFlags3[EmitFlags3["ExportName"] = 16384] = "ExportName"; + EmitFlags3[EmitFlags3["LocalName"] = 32768] = "LocalName"; + EmitFlags3[EmitFlags3["InternalName"] = 65536] = "InternalName"; + EmitFlags3[EmitFlags3["Indented"] = 131072] = "Indented"; + EmitFlags3[EmitFlags3["NoIndentation"] = 262144] = "NoIndentation"; + EmitFlags3[EmitFlags3["AsyncFunctionBody"] = 524288] = "AsyncFunctionBody"; + EmitFlags3[EmitFlags3["ReuseTempVariableScope"] = 1048576] = "ReuseTempVariableScope"; + EmitFlags3[EmitFlags3["CustomPrologue"] = 2097152] = "CustomPrologue"; + EmitFlags3[EmitFlags3["NoHoisting"] = 4194304] = "NoHoisting"; + EmitFlags3[EmitFlags3["Iterator"] = 8388608] = "Iterator"; + EmitFlags3[EmitFlags3["NoAsciiEscaping"] = 16777216] = "NoAsciiEscaping"; + return EmitFlags3; +})(EmitFlags || {}); +var commentPragmas = { + "reference": { + args: [ + { name: "types", optional: true, captureSpan: true }, + { name: "lib", optional: true, captureSpan: true }, + { name: "path", optional: true, captureSpan: true }, + { name: "no-default-lib", optional: true }, + { name: "resolution-mode", optional: true }, + { name: "preserve", optional: true } + ], + kind: 1 /* TripleSlashXML */ + }, + "amd-dependency": { + args: [{ name: "path" }, { name: "name", optional: true }], + kind: 1 /* TripleSlashXML */ + }, + "amd-module": { + args: [{ name: "name" }], + kind: 1 /* TripleSlashXML */ + }, + "ts-check": { + kind: 2 /* SingleLine */ + }, + "ts-nocheck": { + kind: 2 /* SingleLine */ + }, + "jsx": { + args: [{ name: "factory" }], + kind: 4 /* MultiLine */ + }, + "jsxfrag": { + args: [{ name: "factory" }], + kind: 4 /* MultiLine */ + }, + "jsximportsource": { + args: [{ name: "factory" }], + kind: 4 /* MultiLine */ + }, + "jsxruntime": { + args: [{ name: "factory" }], + kind: 4 /* MultiLine */ + } +}; + +// src/compiler/sys.ts +function generateDjb2Hash(data) { + let acc = 5381; + for (let i = 0; i < data.length; i++) { + acc = (acc << 5) + acc + data.charCodeAt(i); + } + return acc.toString(); +} +var PollingInterval = /* @__PURE__ */ ((PollingInterval3) => { + PollingInterval3[PollingInterval3["High"] = 2e3] = "High"; + PollingInterval3[PollingInterval3["Medium"] = 500] = "Medium"; + PollingInterval3[PollingInterval3["Low"] = 250] = "Low"; + return PollingInterval3; +})(PollingInterval || {}); +var missingFileModifiedTime = /* @__PURE__ */ new Date(0); +function getModifiedTime(host, fileName) { + return host.getModifiedTime(fileName) || missingFileModifiedTime; +} +function createPollingIntervalBasedLevels(levels) { + return { + [250 /* Low */]: levels.Low, + [500 /* Medium */]: levels.Medium, + [2e3 /* High */]: levels.High + }; +} +var defaultChunkLevels = { Low: 32, Medium: 64, High: 256 }; +var pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels); +var unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels); +function setCustomPollingValues(system) { + if (!system.getEnvironmentVariable) { + return; + } + const pollingIntervalChanged = setCustomLevels("TSC_WATCH_POLLINGINTERVAL", PollingInterval); + pollingChunkSize = getCustomPollingBasedLevels("TSC_WATCH_POLLINGCHUNKSIZE", defaultChunkLevels) || pollingChunkSize; + unchangedPollThresholds = getCustomPollingBasedLevels("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", defaultChunkLevels) || unchangedPollThresholds; + function getLevel(envVar, level) { + return system.getEnvironmentVariable(`${envVar}_${level.toUpperCase()}`); + } + function getCustomLevels(baseVariable) { + let customLevels; + setCustomLevel("Low"); + setCustomLevel("Medium"); + setCustomLevel("High"); + return customLevels; + function setCustomLevel(level) { + const customLevel = getLevel(baseVariable, level); + if (customLevel) { + (customLevels || (customLevels = {}))[level] = Number(customLevel); + } + } + } + function setCustomLevels(baseVariable, levels) { + const customLevels = getCustomLevels(baseVariable); + if (customLevels) { + setLevel("Low"); + setLevel("Medium"); + setLevel("High"); + return true; + } + return false; + function setLevel(level) { + levels[level] = customLevels[level] || levels[level]; + } + } + function getCustomPollingBasedLevels(baseVariable, defaultLevels) { + const customLevels = getCustomLevels(baseVariable); + return (pollingIntervalChanged || customLevels) && createPollingIntervalBasedLevels(customLevels ? { ...defaultLevels, ...customLevels } : defaultLevels); + } +} +function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) { + let definedValueCopyToIndex = pollIndex; + for (let canVisit = queue.length; chunkSize && canVisit; nextPollIndex(), canVisit--) { + const watchedFile = queue[pollIndex]; + if (!watchedFile) { + continue; + } else if (watchedFile.isClosed) { + queue[pollIndex] = void 0; + continue; + } + chunkSize--; + const fileChanged = onWatchedFileStat(watchedFile, getModifiedTime(host, watchedFile.fileName)); + if (watchedFile.isClosed) { + queue[pollIndex] = void 0; + continue; + } + callbackOnWatchFileStat == null ? void 0 : callbackOnWatchFileStat(watchedFile, pollIndex, fileChanged); + if (queue[pollIndex]) { + if (definedValueCopyToIndex < pollIndex) { + queue[definedValueCopyToIndex] = watchedFile; + queue[pollIndex] = void 0; + } + definedValueCopyToIndex++; + } + } + return pollIndex; + function nextPollIndex() { + pollIndex++; + if (pollIndex === queue.length) { + if (definedValueCopyToIndex < pollIndex) { + queue.length = definedValueCopyToIndex; + } + pollIndex = 0; + definedValueCopyToIndex = 0; + } + } +} +function createDynamicPriorityPollingWatchFile(host) { + const watchedFiles = []; + const changedFilesInLastPoll = []; + const lowPollingIntervalQueue = createPollingIntervalQueue(250 /* Low */); + const mediumPollingIntervalQueue = createPollingIntervalQueue(500 /* Medium */); + const highPollingIntervalQueue = createPollingIntervalQueue(2e3 /* High */); + return watchFile2; + function watchFile2(fileName, callback, defaultPollingInterval) { + const file = { + fileName, + callback, + unchangedPolls: 0, + mtime: getModifiedTime(host, fileName) + }; + watchedFiles.push(file); + addToPollingIntervalQueue(file, defaultPollingInterval); + return { + close: () => { + file.isClosed = true; + unorderedRemoveItem(watchedFiles, file); + } + }; + } + function createPollingIntervalQueue(pollingInterval) { + const queue = []; + queue.pollingInterval = pollingInterval; + queue.pollIndex = 0; + queue.pollScheduled = false; + return queue; + } + function pollPollingIntervalQueue(_timeoutType, queue) { + queue.pollIndex = pollQueue(queue, queue.pollingInterval, queue.pollIndex, pollingChunkSize[queue.pollingInterval]); + if (queue.length) { + scheduleNextPoll(queue.pollingInterval); + } else { + Debug.assert(queue.pollIndex === 0); + queue.pollScheduled = false; + } + } + function pollLowPollingIntervalQueue(_timeoutType, queue) { + pollQueue( + changedFilesInLastPoll, + 250 /* Low */, + /*pollIndex*/ + 0, + changedFilesInLastPoll.length + ); + pollPollingIntervalQueue(_timeoutType, queue); + if (!queue.pollScheduled && changedFilesInLastPoll.length) { + scheduleNextPoll(250 /* Low */); + } + } + function pollQueue(queue, pollingInterval, pollIndex, chunkSize) { + return pollWatchedFileQueue( + host, + queue, + pollIndex, + chunkSize, + onWatchFileStat + ); + function onWatchFileStat(watchedFile, pollIndex2, fileChanged) { + if (fileChanged) { + watchedFile.unchangedPolls = 0; + if (queue !== changedFilesInLastPoll) { + queue[pollIndex2] = void 0; + addChangedFileToLowPollingIntervalQueue(watchedFile); + } + } else if (watchedFile.unchangedPolls !== unchangedPollThresholds[pollingInterval]) { + watchedFile.unchangedPolls++; + } else if (queue === changedFilesInLastPoll) { + watchedFile.unchangedPolls = 1; + queue[pollIndex2] = void 0; + addToPollingIntervalQueue(watchedFile, 250 /* Low */); + } else if (pollingInterval !== 2e3 /* High */) { + watchedFile.unchangedPolls++; + queue[pollIndex2] = void 0; + addToPollingIntervalQueue(watchedFile, pollingInterval === 250 /* Low */ ? 500 /* Medium */ : 2e3 /* High */); + } + } + } + function pollingIntervalQueue(pollingInterval) { + switch (pollingInterval) { + case 250 /* Low */: + return lowPollingIntervalQueue; + case 500 /* Medium */: + return mediumPollingIntervalQueue; + case 2e3 /* High */: + return highPollingIntervalQueue; + } + } + function addToPollingIntervalQueue(file, pollingInterval) { + pollingIntervalQueue(pollingInterval).push(file); + scheduleNextPollIfNotAlreadyScheduled(pollingInterval); + } + function addChangedFileToLowPollingIntervalQueue(file) { + changedFilesInLastPoll.push(file); + scheduleNextPollIfNotAlreadyScheduled(250 /* Low */); + } + function scheduleNextPollIfNotAlreadyScheduled(pollingInterval) { + if (!pollingIntervalQueue(pollingInterval).pollScheduled) { + scheduleNextPoll(pollingInterval); + } + } + function scheduleNextPoll(pollingInterval) { + pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval)); + } +} +function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2, getModifiedTime3, fsWatchWithTimestamp) { + const fileWatcherCallbacks = createMultiMap(); + const fileTimestamps = fsWatchWithTimestamp ? /* @__PURE__ */ new Map() : void 0; + const dirWatchers = /* @__PURE__ */ new Map(); + const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + return nonPollingWatchFile; + function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) { + const filePath = toCanonicalName(fileName); + if (fileWatcherCallbacks.add(filePath, callback).length === 1 && fileTimestamps) { + fileTimestamps.set(filePath, getModifiedTime3(fileName) || missingFileModifiedTime); + } + const dirPath = getDirectoryPath(filePath) || "."; + const watcher = dirWatchers.get(dirPath) || createDirectoryWatcher(getDirectoryPath(fileName) || ".", dirPath, fallbackOptions); + watcher.referenceCount++; + return { + close: () => { + if (watcher.referenceCount === 1) { + watcher.close(); + dirWatchers.delete(dirPath); + } else { + watcher.referenceCount--; + } + fileWatcherCallbacks.remove(filePath, callback); + } + }; + } + function createDirectoryWatcher(dirName, dirPath, fallbackOptions) { + const watcher = fsWatch( + dirName, + 1 /* Directory */, + (eventName, relativeFileName) => { + if (!isString(relativeFileName)) return; + const fileName = getNormalizedAbsolutePath(relativeFileName, dirName); + const filePath = toCanonicalName(fileName); + const callbacks = fileName && fileWatcherCallbacks.get(filePath); + if (callbacks) { + let currentModifiedTime; + let eventKind = 1 /* Changed */; + if (fileTimestamps) { + const existingTime = fileTimestamps.get(filePath); + if (eventName === "change") { + currentModifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime; + if (currentModifiedTime.getTime() === existingTime.getTime()) return; + } + currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime); + fileTimestamps.set(filePath, currentModifiedTime); + if (existingTime === missingFileModifiedTime) eventKind = 0 /* Created */; + else if (currentModifiedTime === missingFileModifiedTime) eventKind = 2 /* Deleted */; + } + for (const fileCallback of callbacks) { + fileCallback(fileName, eventKind, currentModifiedTime); + } + } + }, + /*recursive*/ + false, + 500 /* Medium */, + fallbackOptions + ); + watcher.referenceCount = 0; + dirWatchers.set(dirPath, watcher); + return watcher; + } +} +function createFixedChunkSizePollingWatchFile(host) { + const watchedFiles = []; + let pollIndex = 0; + let pollScheduled; + return watchFile2; + function watchFile2(fileName, callback) { + const file = { + fileName, + callback, + mtime: getModifiedTime(host, fileName) + }; + watchedFiles.push(file); + scheduleNextPoll(); + return { + close: () => { + file.isClosed = true; + unorderedRemoveItem(watchedFiles, file); + } + }; + } + function pollQueue() { + pollScheduled = void 0; + pollIndex = pollWatchedFileQueue(host, watchedFiles, pollIndex, pollingChunkSize[250 /* Low */]); + scheduleNextPoll(); + } + function scheduleNextPoll() { + if (!watchedFiles.length || pollScheduled) return; + pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue"); + } +} +function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) { + const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + const path = toCanonicalFileName(name); + const existing = cache.get(path); + if (existing) { + existing.callbacks.push(callback); + } else { + cache.set(path, { + watcher: createWatcher( + // Cant infer types correctly so lets satisfy checker + (param1, param2, param3) => { + var _a; + return (_a = cache.get(path)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3)); + } + ), + callbacks: [callback] + }); + } + return { + close: () => { + const watcher = cache.get(path); + if (!watcher) return; + if (!orderedRemoveItem(watcher.callbacks, callback) || watcher.callbacks.length) return; + cache.delete(path); + closeFileWatcherOf(watcher); + } + }; +} +function onWatchedFileStat(watchedFile, modifiedTime) { + const oldTime = watchedFile.mtime.getTime(); + const newTime = modifiedTime.getTime(); + if (oldTime !== newTime) { + watchedFile.mtime = modifiedTime; + watchedFile.callback(watchedFile.fileName, getFileWatcherEventKind(oldTime, newTime), modifiedTime); + return true; + } + return false; +} +function getFileWatcherEventKind(oldTime, newTime) { + return oldTime === 0 ? 0 /* Created */ : newTime === 0 ? 2 /* Deleted */ : 1 /* Changed */; +} +var ignoredPaths = ["/node_modules/.", "/.git", "/.#"]; +var curSysLog = noop; +function sysLog(s) { + return curSysLog(s); +} +function setSysLog(logger) { + curSysLog = logger; +} +function createDirectoryWatcherSupportingRecursive({ + watchDirectory, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + getCurrentDirectory, + getAccessibleSortedChildDirectories, + fileSystemEntryExists, + realpath, + setTimeout: setTimeout2, + clearTimeout: clearTimeout2 +}) { + const cache = /* @__PURE__ */ new Map(); + const callbackCache = createMultiMap(); + const cacheToUpdateChildWatches = /* @__PURE__ */ new Map(); + let timerToUpdateChildWatches; + const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2); + const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2); + return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options); + function createDirectoryWatcher(dirName, options, callback, link) { + const dirPath = toCanonicalFilePath(dirName); + let directoryWatcher = cache.get(dirPath); + if (directoryWatcher) { + directoryWatcher.refCount++; + } else { + directoryWatcher = { + watcher: watchDirectory( + dirName, + (fileName) => { + var _a; + if (isIgnoredPath(fileName, options)) return; + if (options == null ? void 0 : options.synchronousWatchDirectory) { + if (!((_a = cache.get(dirPath)) == null ? void 0 : _a.targetWatcher)) invokeCallbacks(dirName, dirPath, fileName); + updateChildWatches(dirName, dirPath, options); + } else { + nonSyncUpdateChildWatches(dirName, dirPath, fileName, options); + } + }, + /*recursive*/ + false, + options + ), + refCount: 1, + childWatches: emptyArray, + targetWatcher: void 0, + links: void 0 + }; + cache.set(dirPath, directoryWatcher); + updateChildWatches(dirName, dirPath, options); + } + if (link) (directoryWatcher.links ?? (directoryWatcher.links = /* @__PURE__ */ new Set())).add(link); + const callbackToAdd = callback && { dirName, callback }; + if (callbackToAdd) { + callbackCache.add(dirPath, callbackToAdd); + } + return { + dirName, + close: () => { + var _a; + const directoryWatcher2 = Debug.checkDefined(cache.get(dirPath)); + if (callbackToAdd) callbackCache.remove(dirPath, callbackToAdd); + if (link) (_a = directoryWatcher2.links) == null ? void 0 : _a.delete(link); + directoryWatcher2.refCount--; + if (directoryWatcher2.refCount) return; + cache.delete(dirPath); + directoryWatcher2.links = void 0; + closeFileWatcherOf(directoryWatcher2); + closeTargetWatcher(directoryWatcher2); + directoryWatcher2.childWatches.forEach(closeFileWatcher); + } + }; + } + function invokeCallbacks(dirName, dirPath, fileNameOrInvokeMap, fileNames) { + var _a, _b; + let fileName; + let invokeMap; + if (isString(fileNameOrInvokeMap)) { + fileName = fileNameOrInvokeMap; + } else { + invokeMap = fileNameOrInvokeMap; + } + callbackCache.forEach((callbacks, rootDirName) => { + if (invokeMap && invokeMap.get(rootDirName) === true) return; + if (rootDirName === dirPath || startsWith(dirPath, rootDirName) && dirPath[rootDirName.length] === directorySeparator) { + if (invokeMap) { + if (fileNames) { + const existing = invokeMap.get(rootDirName); + if (existing) { + existing.push(...fileNames); + } else { + invokeMap.set(rootDirName, fileNames.slice()); + } + } else { + invokeMap.set(rootDirName, true); + } + } else { + callbacks.forEach(({ callback }) => callback(fileName)); + } + } + }); + (_b = (_a = cache.get(dirPath)) == null ? void 0 : _a.links) == null ? void 0 : _b.forEach((link) => { + const toPathInLink = (fileName2) => combinePaths(link, getRelativePathFromDirectory(dirName, fileName2, toCanonicalFilePath)); + if (invokeMap) { + invokeCallbacks(link, toCanonicalFilePath(link), invokeMap, fileNames == null ? void 0 : fileNames.map(toPathInLink)); + } else { + invokeCallbacks(link, toCanonicalFilePath(link), toPathInLink(fileName)); + } + }); + } + function nonSyncUpdateChildWatches(dirName, dirPath, fileName, options) { + const parentWatcher = cache.get(dirPath); + if (parentWatcher && fileSystemEntryExists(dirName, 1 /* Directory */)) { + scheduleUpdateChildWatches(dirName, dirPath, fileName, options); + return; + } + invokeCallbacks(dirName, dirPath, fileName); + closeTargetWatcher(parentWatcher); + removeChildWatches(parentWatcher); + } + function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) { + const existing = cacheToUpdateChildWatches.get(dirPath); + if (existing) { + existing.fileNames.push(fileName); + } else { + cacheToUpdateChildWatches.set(dirPath, { dirName, options, fileNames: [fileName] }); + } + if (timerToUpdateChildWatches) { + clearTimeout2(timerToUpdateChildWatches); + timerToUpdateChildWatches = void 0; + } + timerToUpdateChildWatches = setTimeout2(onTimerToUpdateChildWatches, 1e3, "timerToUpdateChildWatches"); + } + function onTimerToUpdateChildWatches() { + var _a; + timerToUpdateChildWatches = void 0; + sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`); + const start = timestamp(); + const invokeMap = /* @__PURE__ */ new Map(); + while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) { + const result = cacheToUpdateChildWatches.entries().next(); + Debug.assert(!result.done); + const { value: [dirPath, { dirName, options, fileNames }] } = result; + cacheToUpdateChildWatches.delete(dirPath); + const hasChanges = updateChildWatches(dirName, dirPath, options); + if (!((_a = cache.get(dirPath)) == null ? void 0 : _a.targetWatcher)) invokeCallbacks(dirName, dirPath, invokeMap, hasChanges ? void 0 : fileNames); + } + sysLog(`sysLog:: invokingWatchers:: Elapsed:: ${timestamp() - start}ms:: ${cacheToUpdateChildWatches.size}`); + callbackCache.forEach((callbacks, rootDirName) => { + const existing = invokeMap.get(rootDirName); + if (existing) { + callbacks.forEach(({ callback, dirName }) => { + if (isArray(existing)) { + existing.forEach(callback); + } else { + callback(dirName); + } + }); + } + }); + const elapsed = timestamp() - start; + sysLog(`sysLog:: Elapsed:: ${elapsed}ms:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size} ${timerToUpdateChildWatches}`); + } + function removeChildWatches(parentWatcher) { + if (!parentWatcher) return; + const existingChildWatches = parentWatcher.childWatches; + parentWatcher.childWatches = emptyArray; + for (const childWatcher of existingChildWatches) { + childWatcher.close(); + removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName))); + } + } + function closeTargetWatcher(watcher) { + if (watcher == null ? void 0 : watcher.targetWatcher) { + watcher.targetWatcher.close(); + watcher.targetWatcher = void 0; + } + } + function updateChildWatches(parentDir, parentDirPath, options) { + const parentWatcher = cache.get(parentDirPath); + if (!parentWatcher) return false; + const target = normalizePath(realpath(parentDir)); + let hasChanges; + let newChildWatches; + if (filePathComparer(target, parentDir) === 0 /* EqualTo */) { + hasChanges = enumerateInsertsAndDeletes( + fileSystemEntryExists(parentDir, 1 /* Directory */) ? mapDefined(getAccessibleSortedChildDirectories(parentDir), (child) => { + const childFullName = getNormalizedAbsolutePath(child, parentDir); + return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, normalizePath(realpath(childFullName))) === 0 /* EqualTo */ ? childFullName : void 0; + }) : emptyArray, + parentWatcher.childWatches, + (child, childWatcher) => filePathComparer(child, childWatcher.dirName), + createAndAddChildDirectoryWatcher, + closeFileWatcher, + addChildDirectoryWatcher + ); + } else if (parentWatcher.targetWatcher && filePathComparer(target, parentWatcher.targetWatcher.dirName) === 0 /* EqualTo */) { + hasChanges = false; + Debug.assert(parentWatcher.childWatches === emptyArray); + } else { + closeTargetWatcher(parentWatcher); + parentWatcher.targetWatcher = createDirectoryWatcher( + target, + options, + /*callback*/ + void 0, + parentDir + ); + parentWatcher.childWatches.forEach(closeFileWatcher); + hasChanges = true; + } + parentWatcher.childWatches = newChildWatches || emptyArray; + return hasChanges; + function createAndAddChildDirectoryWatcher(childName) { + const result = createDirectoryWatcher(childName, options); + addChildDirectoryWatcher(result); + } + function addChildDirectoryWatcher(childWatcher) { + (newChildWatches || (newChildWatches = [])).push(childWatcher); + } + } + function isIgnoredPath(path, options) { + return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory); + } + function isInPath(path, searchPath) { + if (path.includes(searchPath)) return true; + if (useCaseSensitiveFileNames2) return false; + return toCanonicalFilePath(path).includes(searchPath); + } +} +function createFileWatcherCallback(callback) { + return (_fileName, eventKind, modifiedTime) => callback(eventKind === 1 /* Changed */ ? "change" : "rename", "", modifiedTime); +} +function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3) { + return (eventName, _relativeFileName, modifiedTime) => { + if (eventName === "rename") { + modifiedTime || (modifiedTime = getModifiedTime3(fileName) || missingFileModifiedTime); + callback(fileName, modifiedTime !== missingFileModifiedTime ? 0 /* Created */ : 2 /* Deleted */, modifiedTime); + } else { + callback(fileName, 1 /* Changed */, modifiedTime); + } + }; +} +function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory())); +} +function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) { + return (eventName, relativeFileName) => { + if (eventName === "rename") { + const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName)); + if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) { + callback(fileName); + } + } + }; +} +function createSystemWatchFunctions({ + pollingWatchFileWorker, + getModifiedTime: getModifiedTime3, + setTimeout: setTimeout2, + clearTimeout: clearTimeout2, + fsWatchWorker, + fileSystemEntryExists, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + getCurrentDirectory, + fsSupportsRecursiveFsWatch, + getAccessibleSortedChildDirectories, + realpath, + tscWatchFile, + useNonPollingWatchers, + tscWatchDirectory, + inodeWatching, + fsWatchWithTimestamp, + sysLog: sysLog2 +}) { + const pollingWatches = /* @__PURE__ */ new Map(); + const fsWatches = /* @__PURE__ */ new Map(); + const fsWatchesRecursive = /* @__PURE__ */ new Map(); + let dynamicPollingWatchFile; + let fixedChunkSizePollingWatchFile; + let nonPollingWatchFile; + let hostRecursiveDirectoryWatcher; + let hitSystemWatcherLimit = false; + return { + watchFile: watchFile2, + watchDirectory + }; + function watchFile2(fileName, callback, pollingInterval, options) { + options = updateOptionsForWatchFile(options, useNonPollingWatchers); + const watchFileKind = Debug.checkDefined(options.watchFile); + switch (watchFileKind) { + case 0 /* FixedPollingInterval */: + return pollingWatchFile( + fileName, + callback, + 250 /* Low */, + /*options*/ + void 0 + ); + case 1 /* PriorityPollingInterval */: + return pollingWatchFile( + fileName, + callback, + pollingInterval, + /*options*/ + void 0 + ); + case 2 /* DynamicPriorityPolling */: + return ensureDynamicPollingWatchFile()( + fileName, + callback, + pollingInterval, + /*options*/ + void 0 + ); + case 3 /* FixedChunkSizePolling */: + return ensureFixedChunkSizePollingWatchFile()( + fileName, + callback, + /* pollingInterval */ + void 0, + /*options*/ + void 0 + ); + case 4 /* UseFsEvents */: + return fsWatch( + fileName, + 0 /* File */, + createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModifiedTime3), + /*recursive*/ + false, + pollingInterval, + getFallbackOptions(options) + ); + case 5 /* UseFsEventsOnParentDirectory */: + if (!nonPollingWatchFile) { + nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2, getModifiedTime3, fsWatchWithTimestamp); + } + return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options)); + default: + Debug.assertNever(watchFileKind); + } + } + function ensureDynamicPollingWatchFile() { + return dynamicPollingWatchFile || (dynamicPollingWatchFile = createDynamicPriorityPollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 })); + } + function ensureFixedChunkSizePollingWatchFile() { + return fixedChunkSizePollingWatchFile || (fixedChunkSizePollingWatchFile = createFixedChunkSizePollingWatchFile({ getModifiedTime: getModifiedTime3, setTimeout: setTimeout2 })); + } + function updateOptionsForWatchFile(options, useNonPollingWatchers2) { + if (options && options.watchFile !== void 0) return options; + switch (tscWatchFile) { + case "PriorityPollingInterval": + return { watchFile: 1 /* PriorityPollingInterval */ }; + case "DynamicPriorityPolling": + return { watchFile: 2 /* DynamicPriorityPolling */ }; + case "UseFsEvents": + return generateWatchFileOptions(4 /* UseFsEvents */, 1 /* PriorityInterval */, options); + case "UseFsEventsWithFallbackDynamicPolling": + return generateWatchFileOptions(4 /* UseFsEvents */, 2 /* DynamicPriority */, options); + case "UseFsEventsOnParentDirectory": + useNonPollingWatchers2 = true; + default: + return useNonPollingWatchers2 ? ( + // Use notifications from FS to watch with falling back to fs.watchFile + generateWatchFileOptions(5 /* UseFsEventsOnParentDirectory */, 1 /* PriorityInterval */, options) + ) : ( + // Default to using fs events + { watchFile: 4 /* UseFsEvents */ } + ); + } + } + function generateWatchFileOptions(watchFile3, fallbackPolling, options) { + const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling; + return { + watchFile: watchFile3, + fallbackPolling: defaultFallbackPolling === void 0 ? fallbackPolling : defaultFallbackPolling + }; + } + function watchDirectory(directoryName, callback, recursive, options) { + if (fsSupportsRecursiveFsWatch) { + return fsWatch( + directoryName, + 1 /* Directory */, + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), + recursive, + 500 /* Medium */, + getFallbackOptions(options) + ); + } + if (!hostRecursiveDirectoryWatcher) { + hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({ + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + getCurrentDirectory, + fileSystemEntryExists, + getAccessibleSortedChildDirectories, + watchDirectory: nonRecursiveWatchDirectory, + realpath, + setTimeout: setTimeout2, + clearTimeout: clearTimeout2 + }); + } + return hostRecursiveDirectoryWatcher(directoryName, callback, recursive, options); + } + function nonRecursiveWatchDirectory(directoryName, callback, recursive, options) { + Debug.assert(!recursive); + const watchDirectoryOptions = updateOptionsForWatchDirectory(options); + const watchDirectoryKind = Debug.checkDefined(watchDirectoryOptions.watchDirectory); + switch (watchDirectoryKind) { + case 1 /* FixedPollingInterval */: + return pollingWatchFile( + directoryName, + () => callback(directoryName), + 500 /* Medium */, + /*options*/ + void 0 + ); + case 2 /* DynamicPriorityPolling */: + return ensureDynamicPollingWatchFile()( + directoryName, + () => callback(directoryName), + 500 /* Medium */, + /*options*/ + void 0 + ); + case 3 /* FixedChunkSizePolling */: + return ensureFixedChunkSizePollingWatchFile()( + directoryName, + () => callback(directoryName), + /* pollingInterval */ + void 0, + /*options*/ + void 0 + ); + case 0 /* UseFsEvents */: + return fsWatch( + directoryName, + 1 /* Directory */, + createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory), + recursive, + 500 /* Medium */, + getFallbackOptions(watchDirectoryOptions) + ); + default: + Debug.assertNever(watchDirectoryKind); + } + } + function updateOptionsForWatchDirectory(options) { + if (options && options.watchDirectory !== void 0) return options; + switch (tscWatchDirectory) { + case "RecursiveDirectoryUsingFsWatchFile": + return { watchDirectory: 1 /* FixedPollingInterval */ }; + case "RecursiveDirectoryUsingDynamicPriorityPolling": + return { watchDirectory: 2 /* DynamicPriorityPolling */ }; + default: + const defaultFallbackPolling = options == null ? void 0 : options.fallbackPolling; + return { + watchDirectory: 0 /* UseFsEvents */, + fallbackPolling: defaultFallbackPolling !== void 0 ? defaultFallbackPolling : void 0 + }; + } + } + function pollingWatchFile(fileName, callback, pollingInterval, options) { + return createSingleWatcherPerName( + pollingWatches, + useCaseSensitiveFileNames2, + fileName, + callback, + (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options) + ); + } + function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { + return createSingleWatcherPerName( + recursive ? fsWatchesRecursive : fsWatches, + useCaseSensitiveFileNames2, + fileOrDirectory, + callback, + (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions) + ); + } + function fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) { + let lastDirectoryPartWithDirectorySeparator; + let lastDirectoryPart; + if (inodeWatching) { + lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substring(fileOrDirectory.lastIndexOf(directorySeparator)); + lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length); + } + let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ? watchMissingFileSystemEntry() : watchPresentFileSystemEntry(); + return { + close: () => { + if (watcher) { + watcher.close(); + watcher = void 0; + } + } + }; + function updateWatcher(createWatcher) { + if (watcher) { + sysLog2(`sysLog:: ${fileOrDirectory}:: Changing watcher to ${createWatcher === watchPresentFileSystemEntry ? "Present" : "Missing"}FileSystemEntryWatcher`); + watcher.close(); + watcher = createWatcher(); + } + } + function watchPresentFileSystemEntry() { + if (hitSystemWatcherLimit) { + sysLog2(`sysLog:: ${fileOrDirectory}:: Defaulting to watchFile`); + return watchPresentFileSystemEntryWithFsWatchFile(); + } + try { + const presentWatcher = (entryKind === 1 /* Directory */ || !fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)( + fileOrDirectory, + recursive, + inodeWatching ? callbackChangingToMissingFileSystemEntry : callback + ); + presentWatcher.on("error", () => { + callback("rename", ""); + updateWatcher(watchMissingFileSystemEntry); + }); + return presentWatcher; + } catch (e) { + hitSystemWatcherLimit || (hitSystemWatcherLimit = e.code === "ENOSPC"); + sysLog2(`sysLog:: ${fileOrDirectory}:: Changing to watchFile`); + return watchPresentFileSystemEntryWithFsWatchFile(); + } + } + function callbackChangingToMissingFileSystemEntry(event, relativeName) { + let originalRelativeName; + if (relativeName && endsWith(relativeName, "~")) { + originalRelativeName = relativeName; + relativeName = relativeName.slice(0, relativeName.length - 1); + } + if (event === "rename" && (!relativeName || relativeName === lastDirectoryPart || endsWith(relativeName, lastDirectoryPartWithDirectorySeparator))) { + const modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; + if (originalRelativeName) callback(event, originalRelativeName, modifiedTime); + callback(event, relativeName, modifiedTime); + if (inodeWatching) { + updateWatcher(modifiedTime === missingFileModifiedTime ? watchMissingFileSystemEntry : watchPresentFileSystemEntry); + } else if (modifiedTime === missingFileModifiedTime) { + updateWatcher(watchMissingFileSystemEntry); + } + } else { + if (originalRelativeName) callback(event, originalRelativeName); + callback(event, relativeName); + } + } + function watchPresentFileSystemEntryWithFsWatchFile() { + return watchFile2( + fileOrDirectory, + createFileWatcherCallback(callback), + fallbackPollingInterval, + fallbackOptions + ); + } + function watchMissingFileSystemEntry() { + return watchFile2( + fileOrDirectory, + (_fileName, eventKind, modifiedTime) => { + if (eventKind === 0 /* Created */) { + modifiedTime || (modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime); + if (modifiedTime !== missingFileModifiedTime) { + callback("rename", "", modifiedTime); + updateWatcher(watchPresentFileSystemEntry); + } + } + }, + fallbackPollingInterval, + fallbackOptions + ); + } + } + function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) { + let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; + return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => { + if (eventName === "change") { + currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime); + if (currentModifiedTime.getTime() === modifiedTime.getTime()) return; + } + modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime; + callback(eventName, relativeFileName, modifiedTime); + }); + } +} +function patchWriteFileEnsuringDirectory(sys2) { + const originalWriteFile = sys2.writeFile; + sys2.writeFile = (path, data, writeBom) => writeFileEnsuringDirectories( + path, + data, + !!writeBom, + (path2, data2, writeByteOrderMark) => originalWriteFile.call(sys2, path2, data2, writeByteOrderMark), + (path2) => sys2.createDirectory(path2), + (path2) => sys2.directoryExists(path2) + ); +} +var sys = (() => { + const byteOrderMarkIndicator = "\uFEFF"; + function getNodeSystem() { + const nativePattern = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/; + const _fs = require("fs"); + const _path = require("path"); + const _os = require("os"); + let _crypto; + try { + _crypto = require("crypto"); + } catch { + _crypto = void 0; + } + let activeSession; + let profilePath = "./profile.cpuprofile"; + const isMacOs = process.platform === "darwin"; + const isLinuxOrMacOs = process.platform === "linux" || isMacOs; + const platform = _os.platform(); + const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); + const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; + const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename; + const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs; + const getCurrentDirectory = memoize(() => process.cwd()); + const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({ + pollingWatchFileWorker: fsWatchFileWorker, + getModifiedTime: getModifiedTime3, + setTimeout, + clearTimeout, + fsWatchWorker, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + getCurrentDirectory, + fileSystemEntryExists, + // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows + // (ref: https://github.com/nodejs/node/pull/2649 and https://github.com/Microsoft/TypeScript/issues/4643) + fsSupportsRecursiveFsWatch, + getAccessibleSortedChildDirectories: (path) => getAccessibleFileSystemEntries(path).directories, + realpath, + tscWatchFile: process.env.TSC_WATCHFILE, + useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER, + tscWatchDirectory: process.env.TSC_WATCHDIRECTORY, + inodeWatching: isLinuxOrMacOs, + fsWatchWithTimestamp: isMacOs, + sysLog + }); + const nodeSystem = { + args: process.argv.slice(2), + newLine: _os.EOL, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + write(s) { + process.stdout.write(s); + }, + getWidthOfTerminal() { + return process.stdout.columns; + }, + writeOutputIsTTY() { + return process.stdout.isTTY; + }, + readFile, + writeFile: writeFile2, + watchFile: watchFile2, + watchDirectory, + resolvePath: (path) => _path.resolve(path), + fileExists, + directoryExists, + getAccessibleFileSystemEntries, + createDirectory(directoryName) { + if (!nodeSystem.directoryExists(directoryName)) { + try { + _fs.mkdirSync(directoryName); + } catch (e) { + if (e.code !== "EEXIST") { + throw e; + } + } + } + }, + getExecutingFilePath() { + return executingFilePath; + }, + getCurrentDirectory, + getDirectories, + getEnvironmentVariable(name) { + return process.env[name] || ""; + }, + readDirectory, + getModifiedTime: getModifiedTime3, + setModifiedTime, + deleteFile, + createHash: _crypto ? createSHA256Hash : generateDjb2Hash, + createSHA256Hash: _crypto ? createSHA256Hash : void 0, + getMemoryUsage() { + if (global.gc) { + global.gc(); + } + return process.memoryUsage().heapUsed; + }, + getFileSize(path) { + try { + const stat = statSync(path); + if (stat == null ? void 0 : stat.isFile()) { + return stat.size; + } + } catch { + } + return 0; + }, + exit(exitCode) { + disableCPUProfiler(() => process.exit(exitCode)); + }, + enableCPUProfiler, + disableCPUProfiler, + cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), + realpath, + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, + tryEnableSourceMapsForHost() { + try { + require("source-map-support").install(); + } catch { + } + }, + setTimeout, + clearTimeout, + clearScreen: () => { + process.stdout.write("\x1Bc"); + }, + setBlocking: () => { + var _a; + const handle = (_a = process.stdout) == null ? void 0 : _a._handle; + if (handle && handle.setBlocking) { + handle.setBlocking(true); + } + }, + base64decode: (input) => Buffer.from(input, "base64").toString("utf8"), + base64encode: (input) => Buffer.from(input).toString("base64"), + require: (baseDir, moduleName) => { + try { + const modulePath = resolveJSModule(moduleName, baseDir, nodeSystem); + return { module: require(modulePath), modulePath, error: void 0 }; + } catch (error) { + return { module: void 0, modulePath: void 0, error }; + } + } + }; + return nodeSystem; + function statSync(path) { + return _fs.statSync(path, { throwIfNoEntry: false }); + } + function enableCPUProfiler(path, cb) { + if (activeSession) { + cb(); + return false; + } + const inspector = require("inspector"); + if (!inspector || !inspector.Session) { + cb(); + return false; + } + const session = new inspector.Session(); + session.connect(); + session.post("Profiler.enable", () => { + session.post("Profiler.start", () => { + activeSession = session; + profilePath = path; + cb(); + }); + }); + return true; + } + function cleanupPaths(profile) { + let externalFileCounter = 0; + const remappedPaths = /* @__PURE__ */ new Map(); + const normalizedDir = normalizeSlashes(_path.dirname(executingFilePath)); + const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`; + for (const node of profile.nodes) { + if (node.callFrame.url) { + const url = normalizeSlashes(node.callFrame.url); + if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) { + node.callFrame.url = getRelativePathToDirectoryOrUrl( + fileUrlRoot, + url, + fileUrlRoot, + createGetCanonicalFileName(useCaseSensitiveFileNames2), + /*isAbsolutePathAnUrl*/ + true + ); + } else if (!nativePattern.test(url)) { + node.callFrame.url = (remappedPaths.has(url) ? remappedPaths : remappedPaths.set(url, `external${externalFileCounter}.js`)).get(url); + externalFileCounter++; + } + } + } + return profile; + } + function disableCPUProfiler(cb) { + if (activeSession && activeSession !== "stopping") { + const s = activeSession; + activeSession.post("Profiler.stop", (err, { profile }) => { + var _a; + if (!err) { + try { + if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) { + profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`); + } + } catch { + } + try { + _fs.mkdirSync(_path.dirname(profilePath), { recursive: true }); + } catch { + } + _fs.writeFileSync(profilePath, JSON.stringify(cleanupPaths(profile))); + } + activeSession = void 0; + s.disconnect(); + cb(); + }); + activeSession = "stopping"; + return true; + } else { + cb(); + return false; + } + } + function isFileSystemCaseSensitive() { + if (platform === "win32" || platform === "win64") { + return false; + } + return !fileExists(swapCase(__filename)); + } + function swapCase(s) { + return s.replace(/\w/g, (ch) => { + const up = ch.toUpperCase(); + return ch === up ? ch.toLowerCase() : up; + }); + } + function fsWatchFileWorker(fileName, callback, pollingInterval) { + _fs.watchFile(fileName, { persistent: true, interval: pollingInterval }, fileChanged); + let eventKind; + return { + close: () => _fs.unwatchFile(fileName, fileChanged) + }; + function fileChanged(curr, prev) { + const isPreviouslyDeleted = +prev.mtime === 0 || eventKind === 2 /* Deleted */; + if (+curr.mtime === 0) { + if (isPreviouslyDeleted) { + return; + } + eventKind = 2 /* Deleted */; + } else if (isPreviouslyDeleted) { + eventKind = 0 /* Created */; + } else if (+curr.mtime === +prev.mtime) { + return; + } else { + eventKind = 1 /* Changed */; + } + callback(fileName, eventKind, curr.mtime); + } + } + function fsWatchWorker(fileOrDirectory, recursive, callback) { + return _fs.watch( + fileOrDirectory, + fsSupportsRecursiveFsWatch ? { persistent: true, recursive: !!recursive } : { persistent: true }, + callback + ); + } + function readFileWorker(fileName, _encoding) { + let buffer; + try { + buffer = _fs.readFileSync(fileName); + } catch (e) { + return void 0; + } + let len = buffer.length; + if (len >= 2 && buffer[0] === 254 && buffer[1] === 255) { + len &= ~1; + for (let i = 0; i < len; i += 2) { + const temp = buffer[i]; + buffer[i] = buffer[i + 1]; + buffer[i + 1] = temp; + } + return buffer.toString("utf16le", 2); + } + if (len >= 2 && buffer[0] === 255 && buffer[1] === 254) { + return buffer.toString("utf16le", 2); + } + if (len >= 3 && buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) { + return buffer.toString("utf8", 3); + } + return buffer.toString("utf8"); + } + function readFile(fileName, _encoding) { + var _a, _b; + (_a = perfLogger) == null ? void 0 : _a.logStartReadFile(fileName); + const file = readFileWorker(fileName, _encoding); + (_b = perfLogger) == null ? void 0 : _b.logStopReadFile(); + return file; + } + function writeFile2(fileName, data, writeByteOrderMark) { + var _a; + (_a = perfLogger) == null ? void 0 : _a.logEvent("WriteFile: " + fileName); + if (writeByteOrderMark) { + data = byteOrderMarkIndicator + data; + } + let fd; + try { + fd = _fs.openSync(fileName, "w"); + _fs.writeSync( + fd, + data, + /*position*/ + void 0, + "utf8" + ); + } finally { + if (fd !== void 0) { + _fs.closeSync(fd); + } + } + } + function getAccessibleFileSystemEntries(path) { + var _a; + (_a = perfLogger) == null ? void 0 : _a.logEvent("ReadDir: " + (path || ".")); + try { + const entries = _fs.readdirSync(path || ".", { withFileTypes: true }); + const files = []; + const directories = []; + for (const dirent of entries) { + const entry = typeof dirent === "string" ? dirent : dirent.name; + if (entry === "." || entry === "..") { + continue; + } + let stat; + if (typeof dirent === "string" || dirent.isSymbolicLink()) { + const name = combinePaths(path, entry); + try { + stat = statSync(name); + if (!stat) { + continue; + } + } catch (e) { + continue; + } + } else { + stat = dirent; + } + if (stat.isFile()) { + files.push(entry); + } else if (stat.isDirectory()) { + directories.push(entry); + } + } + files.sort(); + directories.sort(); + return { files, directories }; + } catch (e) { + return emptyFileSystemEntries; + } + } + function readDirectory(path, extensions, excludes, includes, depth) { + return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); + } + function fileSystemEntryExists(path, entryKind) { + const originalStackTraceLimit = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + const stat = statSync(path); + if (!stat) { + return false; + } + switch (entryKind) { + case 0 /* File */: + return stat.isFile(); + case 1 /* Directory */: + return stat.isDirectory(); + default: + return false; + } + } catch (e) { + return false; + } finally { + Error.stackTraceLimit = originalStackTraceLimit; + } + } + function fileExists(path) { + return fileSystemEntryExists(path, 0 /* File */); + } + function directoryExists(path) { + return fileSystemEntryExists(path, 1 /* Directory */); + } + function getDirectories(path) { + return getAccessibleFileSystemEntries(path).directories.slice(); + } + function fsRealPathHandlingLongPath(path) { + return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path); + } + function realpath(path) { + try { + return fsRealpath(path); + } catch { + return path; + } + } + function getModifiedTime3(path) { + var _a; + const originalStackTraceLimit = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + return (_a = statSync(path)) == null ? void 0 : _a.mtime; + } catch (e) { + return void 0; + } finally { + Error.stackTraceLimit = originalStackTraceLimit; + } + } + function setModifiedTime(path, time) { + try { + _fs.utimesSync(path, time, time); + } catch (e) { + return; + } + } + function deleteFile(path) { + try { + return _fs.unlinkSync(path); + } catch (e) { + return; + } + } + function createSHA256Hash(data) { + const hash = _crypto.createHash("sha256"); + hash.update(data); + return hash.digest("hex"); + } + } + let sys2; + if (isNodeLikeSystem()) { + sys2 = getNodeSystem(); + } + if (sys2) { + patchWriteFileEnsuringDirectory(sys2); + } + return sys2; +})(); +if (sys && sys.getEnvironmentVariable) { + setCustomPollingValues(sys); + Debug.setAssertionLevel( + /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV")) ? 1 /* Normal */ : 0 /* None */ + ); +} +if (sys && sys.debugMode) { + Debug.isDebugging = true; +} + +// src/compiler/path.ts +var directorySeparator = "/"; +var altDirectorySeparator = "\\"; +var urlSchemeSeparator = "://"; +var backslashRegExp = /\\/g; +function isAnyDirectorySeparator(charCode) { + return charCode === 47 /* slash */ || charCode === 92 /* backslash */; +} +function isRootedDiskPath(path) { + return getEncodedRootLength(path) > 0; +} +function isDiskPathRoot(path) { + const rootLength = getEncodedRootLength(path); + return rootLength > 0 && rootLength === path.length; +} +function pathIsAbsolute(path) { + return getEncodedRootLength(path) !== 0; +} +function pathIsRelative(path) { + return /^\.\.?($|[\\/])/.test(path); +} +function pathIsBareSpecifier(path) { + return !pathIsAbsolute(path) && !pathIsRelative(path); +} +function hasExtension(fileName) { + return getBaseFileName(fileName).includes("."); +} +function fileExtensionIs(path, extension) { + return path.length > extension.length && endsWith(path, extension); +} +function fileExtensionIsOneOf(path, extensions) { + for (const extension of extensions) { + if (fileExtensionIs(path, extension)) { + return true; + } + } + return false; +} +function hasTrailingDirectorySeparator(path) { + return path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1)); +} +function isVolumeCharacter(charCode) { + return charCode >= 97 /* a */ && charCode <= 122 /* z */ || charCode >= 65 /* A */ && charCode <= 90 /* Z */; +} +function getFileUrlVolumeSeparatorEnd(url, start) { + const ch0 = url.charCodeAt(start); + if (ch0 === 58 /* colon */) return start + 1; + if (ch0 === 37 /* percent */ && url.charCodeAt(start + 1) === 51 /* _3 */) { + const ch2 = url.charCodeAt(start + 2); + if (ch2 === 97 /* a */ || ch2 === 65 /* A */) return start + 3; + } + return -1; +} +function getEncodedRootLength(path) { + if (!path) return 0; + const ch0 = path.charCodeAt(0); + if (ch0 === 47 /* slash */ || ch0 === 92 /* backslash */) { + if (path.charCodeAt(1) !== ch0) return 1; + const p1 = path.indexOf(ch0 === 47 /* slash */ ? directorySeparator : altDirectorySeparator, 2); + if (p1 < 0) return path.length; + return p1 + 1; + } + if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* colon */) { + const ch2 = path.charCodeAt(2); + if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */) return 3; + if (path.length === 2) return 2; + } + const schemeEnd = path.indexOf(urlSchemeSeparator); + if (schemeEnd !== -1) { + const authorityStart = schemeEnd + urlSchemeSeparator.length; + const authorityEnd = path.indexOf(directorySeparator, authorityStart); + if (authorityEnd !== -1) { + const scheme = path.slice(0, schemeEnd); + const authority = path.slice(authorityStart, authorityEnd); + if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) { + const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2); + if (volumeSeparatorEnd !== -1) { + if (path.charCodeAt(volumeSeparatorEnd) === 47 /* slash */) { + return ~(volumeSeparatorEnd + 1); + } + if (volumeSeparatorEnd === path.length) { + return ~volumeSeparatorEnd; + } + } + } + return ~(authorityEnd + 1); + } + return ~path.length; + } + return 0; +} +function getRootLength(path) { + const rootLength = getEncodedRootLength(path); + return rootLength < 0 ? ~rootLength : rootLength; +} +function getDirectoryPath(path) { + path = normalizeSlashes(path); + const rootLength = getRootLength(path); + if (rootLength === path.length) return path; + path = removeTrailingDirectorySeparator(path); + return path.slice(0, Math.max(rootLength, path.lastIndexOf(directorySeparator))); +} +function getBaseFileName(path, extensions, ignoreCase) { + path = normalizeSlashes(path); + const rootLength = getRootLength(path); + if (rootLength === path.length) return ""; + path = removeTrailingDirectorySeparator(path); + const name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(directorySeparator) + 1)); + const extension = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(name, extensions, ignoreCase) : void 0; + return extension ? name.slice(0, name.length - extension.length) : name; +} +function tryGetExtensionFromPath(path, extension, stringEqualityComparer) { + if (!startsWith(extension, ".")) extension = "." + extension; + if (path.length >= extension.length && path.charCodeAt(path.length - extension.length) === 46 /* dot */) { + const pathExtension = path.slice(path.length - extension.length); + if (stringEqualityComparer(pathExtension, extension)) { + return pathExtension; + } + } +} +function getAnyExtensionFromPathWorker(path, extensions, stringEqualityComparer) { + if (typeof extensions === "string") { + return tryGetExtensionFromPath(path, extensions, stringEqualityComparer) || ""; + } + for (const extension of extensions) { + const result = tryGetExtensionFromPath(path, extension, stringEqualityComparer); + if (result) return result; + } + return ""; +} +function getAnyExtensionFromPath(path, extensions, ignoreCase) { + if (extensions) { + return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path), extensions, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive); + } + const baseFileName = getBaseFileName(path); + const extensionIndex = baseFileName.lastIndexOf("."); + if (extensionIndex >= 0) { + return baseFileName.substring(extensionIndex); + } + return ""; +} +function pathComponents(path, rootLength) { + const root = path.substring(0, rootLength); + const rest = path.substring(rootLength).split(directorySeparator); + if (rest.length && !lastOrUndefined(rest)) rest.pop(); + return [root, ...rest]; +} +function getPathComponents(path, currentDirectory = "") { + path = combinePaths(currentDirectory, path); + return pathComponents(path, getRootLength(path)); +} +function getPathFromPathComponents(pathComponents2, length2) { + if (pathComponents2.length === 0) return ""; + const root = pathComponents2[0] && ensureTrailingDirectorySeparator(pathComponents2[0]); + return root + pathComponents2.slice(1, length2).join(directorySeparator); +} +function normalizeSlashes(path) { + return path.includes("\\") ? path.replace(backslashRegExp, directorySeparator) : path; +} +function reducePathComponents(components) { + if (!some(components)) return []; + const reduced = [components[0]]; + for (let i = 1; i < components.length; i++) { + const component = components[i]; + if (!component) continue; + if (component === ".") continue; + if (component === "..") { + if (reduced.length > 1) { + if (reduced[reduced.length - 1] !== "..") { + reduced.pop(); + continue; + } + } else if (reduced[0]) continue; + } + reduced.push(component); + } + return reduced; +} +function combinePaths(path, ...paths) { + if (path) path = normalizeSlashes(path); + for (let relativePath of paths) { + if (!relativePath) continue; + relativePath = normalizeSlashes(relativePath); + if (!path || getRootLength(relativePath) !== 0) { + path = relativePath; + } else { + path = ensureTrailingDirectorySeparator(path) + relativePath; + } + } + return path; +} +function resolvePath(path, ...paths) { + return normalizePath(some(paths) ? combinePaths(path, ...paths) : normalizeSlashes(path)); +} +function getNormalizedPathComponents(path, currentDirectory) { + return reducePathComponents(getPathComponents(path, currentDirectory)); +} +function getNormalizedAbsolutePath(fileName, currentDirectory) { + return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory)); +} +function normalizePath(path) { + path = normalizeSlashes(path); + if (!relativePathSegmentRegExp.test(path)) { + return path; + } + const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, ""); + if (simplified !== path) { + path = simplified; + if (!relativePathSegmentRegExp.test(path)) { + return path; + } + } + const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path))); + return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized; +} +function getPathWithoutRoot(pathComponents2) { + if (pathComponents2.length === 0) return ""; + return pathComponents2.slice(1).join(directorySeparator); +} +function getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory) { + return getPathWithoutRoot(getNormalizedPathComponents(fileName, currentDirectory)); +} +function toPath(fileName, basePath, getCanonicalFileName) { + const nonCanonicalizedPath = isRootedDiskPath(fileName) ? normalizePath(fileName) : getNormalizedAbsolutePath(fileName, basePath); + return getCanonicalFileName(nonCanonicalizedPath); +} +function removeTrailingDirectorySeparator(path) { + if (hasTrailingDirectorySeparator(path)) { + return path.substr(0, path.length - 1); + } + return path; +} +function ensureTrailingDirectorySeparator(path) { + if (!hasTrailingDirectorySeparator(path)) { + return path + directorySeparator; + } + return path; +} +function ensurePathIsNonModuleName(path) { + return !pathIsAbsolute(path) && !pathIsRelative(path) ? "./" + path : path; +} +function changeAnyExtension(path, ext, extensions, ignoreCase) { + const pathext = extensions !== void 0 && ignoreCase !== void 0 ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path); + return pathext ? path.slice(0, path.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path; +} +var relativePathSegmentRegExp = /(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/; +function comparePathsWorker(a, b, componentComparer) { + if (a === b) return 0 /* EqualTo */; + if (a === void 0) return -1 /* LessThan */; + if (b === void 0) return 1 /* GreaterThan */; + const aRoot = a.substring(0, getRootLength(a)); + const bRoot = b.substring(0, getRootLength(b)); + const result = compareStringsCaseInsensitive(aRoot, bRoot); + if (result !== 0 /* EqualTo */) { + return result; + } + const aRest = a.substring(aRoot.length); + const bRest = b.substring(bRoot.length); + if (!relativePathSegmentRegExp.test(aRest) && !relativePathSegmentRegExp.test(bRest)) { + return componentComparer(aRest, bRest); + } + const aComponents = reducePathComponents(getPathComponents(a)); + const bComponents = reducePathComponents(getPathComponents(b)); + const sharedLength = Math.min(aComponents.length, bComponents.length); + for (let i = 1; i < sharedLength; i++) { + const result2 = componentComparer(aComponents[i], bComponents[i]); + if (result2 !== 0 /* EqualTo */) { + return result2; + } + } + return compareValues(aComponents.length, bComponents.length); +} +function comparePaths(a, b, currentDirectory, ignoreCase) { + if (typeof currentDirectory === "string") { + a = combinePaths(currentDirectory, a); + b = combinePaths(currentDirectory, b); + } else if (typeof currentDirectory === "boolean") { + ignoreCase = currentDirectory; + } + return comparePathsWorker(a, b, getStringComparer(ignoreCase)); +} +function containsPath(parent, child, currentDirectory, ignoreCase) { + if (typeof currentDirectory === "string") { + parent = combinePaths(currentDirectory, parent); + child = combinePaths(currentDirectory, child); + } else if (typeof currentDirectory === "boolean") { + ignoreCase = currentDirectory; + } + if (parent === void 0 || child === void 0) return false; + if (parent === child) return true; + const parentComponents = reducePathComponents(getPathComponents(parent)); + const childComponents = reducePathComponents(getPathComponents(child)); + if (childComponents.length < parentComponents.length) { + return false; + } + const componentEqualityComparer = ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive; + for (let i = 0; i < parentComponents.length; i++) { + const equalityComparer = i === 0 ? equateStringsCaseInsensitive : componentEqualityComparer; + if (!equalityComparer(parentComponents[i], childComponents[i])) { + return false; + } + } + return true; +} +function startsWithDirectory(fileName, directoryName, getCanonicalFileName) { + const canonicalFileName = getCanonicalFileName(fileName); + const canonicalDirectoryName = getCanonicalFileName(directoryName); + return startsWith(canonicalFileName, canonicalDirectoryName + "/") || startsWith(canonicalFileName, canonicalDirectoryName + "\\"); +} +function getPathComponentsRelativeTo(from, to, stringEqualityComparer, getCanonicalFileName) { + const fromComponents = reducePathComponents(getPathComponents(from)); + const toComponents = reducePathComponents(getPathComponents(to)); + let start; + for (start = 0; start < fromComponents.length && start < toComponents.length; start++) { + const fromComponent = getCanonicalFileName(fromComponents[start]); + const toComponent = getCanonicalFileName(toComponents[start]); + const comparer = start === 0 ? equateStringsCaseInsensitive : stringEqualityComparer; + if (!comparer(fromComponent, toComponent)) break; + } + if (start === 0) { + return toComponents; + } + const components = toComponents.slice(start); + const relative = []; + for (; start < fromComponents.length; start++) { + relative.push(".."); + } + return ["", ...relative, ...components]; +} +function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { + Debug.assert(getRootLength(fromDirectory) > 0 === getRootLength(to) > 0, "Paths must either both be absolute or both be relative"); + const getCanonicalFileName = typeof getCanonicalFileNameOrIgnoreCase === "function" ? getCanonicalFileNameOrIgnoreCase : identity; + const ignoreCase = typeof getCanonicalFileNameOrIgnoreCase === "boolean" ? getCanonicalFileNameOrIgnoreCase : false; + const pathComponents2 = getPathComponentsRelativeTo(fromDirectory, to, ignoreCase ? equateStringsCaseInsensitive : equateStringsCaseSensitive, getCanonicalFileName); + return getPathFromPathComponents(pathComponents2); +} +function convertToRelativePath(absoluteOrRelativePath, basePath, getCanonicalFileName) { + return !isRootedDiskPath(absoluteOrRelativePath) ? absoluteOrRelativePath : getRelativePathToDirectoryOrUrl( + basePath, + absoluteOrRelativePath, + basePath, + getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + false + ); +} +function getRelativePathFromFile(from, to, getCanonicalFileName) { + return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanonicalFileName)); +} +function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) { + const pathComponents2 = getPathComponentsRelativeTo( + resolvePath(currentDirectory, directoryPathOrUrl), + resolvePath(currentDirectory, relativeOrAbsolutePath), + equateStringsCaseSensitive, + getCanonicalFileName + ); + const firstComponent = pathComponents2[0]; + if (isAbsolutePathAnUrl && isRootedDiskPath(firstComponent)) { + const prefix = firstComponent.charAt(0) === directorySeparator ? "file://" : "file:///"; + pathComponents2[0] = prefix + firstComponent; + } + return getPathFromPathComponents(pathComponents2); +} +function forEachAncestorDirectory(directory, callback) { + while (true) { + const result = callback(directory); + if (result !== void 0) { + return result; + } + const parentPath = getDirectoryPath(directory); + if (parentPath === directory) { + return void 0; + } + directory = parentPath; + } +} +function isNodeModulesDirectory(dirPath) { + return endsWith(dirPath, "/node_modules"); +} + +// src/compiler/diagnosticInformationMap.generated.ts +function diag(code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) { + return { code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated }; +} +var Diagnostics = { + Unterminated_string_literal: diag(1002, 1 /* Error */, "Unterminated_string_literal_1002", "Unterminated string literal."), + Identifier_expected: diag(1003, 1 /* Error */, "Identifier_expected_1003", "Identifier expected."), + _0_expected: diag(1005, 1 /* Error */, "_0_expected_1005", "'{0}' expected."), + A_file_cannot_have_a_reference_to_itself: diag(1006, 1 /* Error */, "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: diag(1007, 1 /* Error */, "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: diag(1009, 1 /* Error */, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."), + Asterisk_Slash_expected: diag(1010, 1 /* Error */, "Asterisk_Slash_expected_1010", "'*/' expected."), + An_element_access_expression_should_take_an_argument: diag(1011, 1 /* Error */, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."), + Unexpected_token: diag(1012, 1 /* Error */, "Unexpected_token_1012", "Unexpected token."), + A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: diag(1013, 1 /* Error */, "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: diag(1014, 1 /* Error */, "A_rest_parameter_must_be_last_in_a_parameter_list_1014", "A rest parameter must be last in a parameter list."), + Parameter_cannot_have_question_mark_and_initializer: diag(1015, 1 /* Error */, "Parameter_cannot_have_question_mark_and_initializer_1015", "Parameter cannot have question mark and initializer."), + A_required_parameter_cannot_follow_an_optional_parameter: diag(1016, 1 /* Error */, "A_required_parameter_cannot_follow_an_optional_parameter_1016", "A required parameter cannot follow an optional parameter."), + An_index_signature_cannot_have_a_rest_parameter: diag(1017, 1 /* Error */, "An_index_signature_cannot_have_a_rest_parameter_1017", "An index signature cannot have a rest parameter."), + An_index_signature_parameter_cannot_have_an_accessibility_modifier: diag(1018, 1 /* Error */, "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018", "An index signature parameter cannot have an accessibility modifier."), + An_index_signature_parameter_cannot_have_a_question_mark: diag(1019, 1 /* Error */, "An_index_signature_parameter_cannot_have_a_question_mark_1019", "An index signature parameter cannot have a question mark."), + An_index_signature_parameter_cannot_have_an_initializer: diag(1020, 1 /* Error */, "An_index_signature_parameter_cannot_have_an_initializer_1020", "An index signature parameter cannot have an initializer."), + An_index_signature_must_have_a_type_annotation: diag(1021, 1 /* Error */, "An_index_signature_must_have_a_type_annotation_1021", "An index signature must have a type annotation."), + An_index_signature_parameter_must_have_a_type_annotation: diag(1022, 1 /* Error */, "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: diag(1024, 1 /* Error */, "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024", "'readonly' modifier can only appear on a property declaration or index signature."), + An_index_signature_cannot_have_a_trailing_comma: diag(1025, 1 /* Error */, "An_index_signature_cannot_have_a_trailing_comma_1025", "An index signature cannot have a trailing comma."), + Accessibility_modifier_already_seen: diag(1028, 1 /* Error */, "Accessibility_modifier_already_seen_1028", "Accessibility modifier already seen."), + _0_modifier_must_precede_1_modifier: diag(1029, 1 /* Error */, "_0_modifier_must_precede_1_modifier_1029", "'{0}' modifier must precede '{1}' modifier."), + _0_modifier_already_seen: diag(1030, 1 /* Error */, "_0_modifier_already_seen_1030", "'{0}' modifier already seen."), + _0_modifier_cannot_appear_on_class_elements_of_this_kind: diag(1031, 1 /* Error */, "_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: diag(1034, 1 /* Error */, "super_must_be_followed_by_an_argument_list_or_member_access_1034", "'super' must be followed by an argument list or member access."), + Only_ambient_modules_can_use_quoted_names: diag(1035, 1 /* Error */, "Only_ambient_modules_can_use_quoted_names_1035", "Only ambient modules can use quoted names."), + Statements_are_not_allowed_in_ambient_contexts: diag(1036, 1 /* Error */, "Statements_are_not_allowed_in_ambient_contexts_1036", "Statements are not allowed in ambient contexts."), + A_declare_modifier_cannot_be_used_in_an_already_ambient_context: diag(1038, 1 /* Error */, "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038", "A 'declare' modifier cannot be used in an already ambient context."), + Initializers_are_not_allowed_in_ambient_contexts: diag(1039, 1 /* Error */, "Initializers_are_not_allowed_in_ambient_contexts_1039", "Initializers are not allowed in ambient contexts."), + _0_modifier_cannot_be_used_in_an_ambient_context: diag(1040, 1 /* Error */, "_0_modifier_cannot_be_used_in_an_ambient_context_1040", "'{0}' modifier cannot be used in an ambient context."), + _0_modifier_cannot_be_used_here: diag(1042, 1 /* Error */, "_0_modifier_cannot_be_used_here_1042", "'{0}' modifier cannot be used here."), + _0_modifier_cannot_appear_on_a_module_or_namespace_element: diag(1044, 1 /* Error */, "_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: diag(1046, 1 /* Error */, "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: diag(1047, 1 /* Error */, "A_rest_parameter_cannot_be_optional_1047", "A rest parameter cannot be optional."), + A_rest_parameter_cannot_have_an_initializer: diag(1048, 1 /* Error */, "A_rest_parameter_cannot_have_an_initializer_1048", "A rest parameter cannot have an initializer."), + A_set_accessor_must_have_exactly_one_parameter: diag(1049, 1 /* Error */, "A_set_accessor_must_have_exactly_one_parameter_1049", "A 'set' accessor must have exactly one parameter."), + A_set_accessor_cannot_have_an_optional_parameter: diag(1051, 1 /* Error */, "A_set_accessor_cannot_have_an_optional_parameter_1051", "A 'set' accessor cannot have an optional parameter."), + A_set_accessor_parameter_cannot_have_an_initializer: diag(1052, 1 /* Error */, "A_set_accessor_parameter_cannot_have_an_initializer_1052", "A 'set' accessor parameter cannot have an initializer."), + A_set_accessor_cannot_have_rest_parameter: diag(1053, 1 /* Error */, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."), + A_get_accessor_cannot_have_parameters: diag(1054, 1 /* Error */, "A_get_accessor_cannot_have_parameters_1054", "A 'get' accessor cannot have parameters."), + Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: diag(1055, 1 /* Error */, "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: diag(1056, 1 /* Error */, "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: diag(1058, 1 /* Error */, "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058", "The return type of an async function must either be a valid promise or must not contain a callable 'then' member."), + A_promise_must_have_a_then_method: diag(1059, 1 /* Error */, "A_promise_must_have_a_then_method_1059", "A promise must have a 'then' method."), + The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: diag(1060, 1 /* Error */, "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060", "The first parameter of the 'then' method of a promise must be a callback."), + Enum_member_must_have_initializer: diag(1061, 1 /* Error */, "Enum_member_must_have_initializer_1061", "Enum member must have initializer."), + Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."), + An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."), + The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "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: diag(1065, 1 /* Error */, "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: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."), + Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."), + Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."), + _0_modifier_cannot_appear_on_a_type_member: diag(1070, 1 /* Error */, "_0_modifier_cannot_appear_on_a_type_member_1070", "'{0}' modifier cannot appear on a type member."), + _0_modifier_cannot_appear_on_an_index_signature: diag(1071, 1 /* Error */, "_0_modifier_cannot_appear_on_an_index_signature_1071", "'{0}' modifier cannot appear on an index signature."), + A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, 1 /* Error */, "A_0_modifier_cannot_be_used_with_an_import_declaration_1079", "A '{0}' modifier cannot be used with an import declaration."), + Invalid_reference_directive_syntax: diag(1084, 1 /* Error */, "Invalid_reference_directive_syntax_1084", "Invalid 'reference' directive syntax."), + _0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, 1 /* Error */, "_0_modifier_cannot_appear_on_a_constructor_declaration_1089", "'{0}' modifier cannot appear on a constructor declaration."), + _0_modifier_cannot_appear_on_a_parameter: diag(1090, 1 /* Error */, "_0_modifier_cannot_appear_on_a_parameter_1090", "'{0}' modifier cannot appear on a parameter."), + Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091", "Only a single variable declaration is allowed in a 'for...in' statement."), + Type_parameters_cannot_appear_on_a_constructor_declaration: diag(1092, 1 /* Error */, "Type_parameters_cannot_appear_on_a_constructor_declaration_1092", "Type parameters cannot appear on a constructor declaration."), + Type_annotation_cannot_appear_on_a_constructor_declaration: diag(1093, 1 /* Error */, "Type_annotation_cannot_appear_on_a_constructor_declaration_1093", "Type annotation cannot appear on a constructor declaration."), + An_accessor_cannot_have_type_parameters: diag(1094, 1 /* Error */, "An_accessor_cannot_have_type_parameters_1094", "An accessor cannot have type parameters."), + A_set_accessor_cannot_have_a_return_type_annotation: diag(1095, 1 /* Error */, "A_set_accessor_cannot_have_a_return_type_annotation_1095", "A 'set' accessor cannot have a return type annotation."), + An_index_signature_must_have_exactly_one_parameter: diag(1096, 1 /* Error */, "An_index_signature_must_have_exactly_one_parameter_1096", "An index signature must have exactly one parameter."), + _0_list_cannot_be_empty: diag(1097, 1 /* Error */, "_0_list_cannot_be_empty_1097", "'{0}' list cannot be empty."), + Type_parameter_list_cannot_be_empty: diag(1098, 1 /* Error */, "Type_parameter_list_cannot_be_empty_1098", "Type parameter list cannot be empty."), + Type_argument_list_cannot_be_empty: diag(1099, 1 /* Error */, "Type_argument_list_cannot_be_empty_1099", "Type argument list cannot be empty."), + Invalid_use_of_0_in_strict_mode: diag(1100, 1 /* Error */, "Invalid_use_of_0_in_strict_mode_1100", "Invalid use of '{0}' in strict mode."), + with_statements_are_not_allowed_in_strict_mode: diag(1101, 1 /* Error */, "with_statements_are_not_allowed_in_strict_mode_1101", "'with' statements are not allowed in strict mode."), + delete_cannot_be_called_on_an_identifier_in_strict_mode: diag(1102, 1 /* Error */, "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: diag(1103, 1 /* Error */, "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: diag(1104, 1 /* Error */, "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104", "A 'continue' statement can only be used within an enclosing iteration statement."), + A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: diag(1105, 1 /* Error */, "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105", "A 'break' statement can only be used within an enclosing iteration or switch statement."), + The_left_hand_side_of_a_for_of_statement_may_not_be_async: diag(1106, 1 /* Error */, "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: diag(1107, 1 /* Error */, "Jump_target_cannot_cross_function_boundary_1107", "Jump target cannot cross function boundary."), + A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."), + Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."), + Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."), + Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "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: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."), + Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."), + A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."), + A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: diag(1116, 1 /* Error */, "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116", "A 'break' statement can only jump to a label of an enclosing statement."), + An_object_literal_cannot_have_multiple_properties_with_the_same_name: diag(1117, 1 /* Error */, "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: diag(1118, 1 /* Error */, "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118", "An object literal cannot have multiple get/set accessors with the same name."), + An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, 1 /* Error */, "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119", "An object literal cannot have property and accessor with the same name."), + An_export_assignment_cannot_have_modifiers: diag(1120, 1 /* Error */, "An_export_assignment_cannot_have_modifiers_1120", "An export assignment cannot have modifiers."), + Octal_literals_are_not_allowed_Use_the_syntax_0: diag(1121, 1 /* Error */, "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: diag(1123, 1 /* Error */, "Variable_declaration_list_cannot_be_empty_1123", "Variable declaration list cannot be empty."), + Digit_expected: diag(1124, 1 /* Error */, "Digit_expected_1124", "Digit expected."), + Hexadecimal_digit_expected: diag(1125, 1 /* Error */, "Hexadecimal_digit_expected_1125", "Hexadecimal digit expected."), + Unexpected_end_of_text: diag(1126, 1 /* Error */, "Unexpected_end_of_text_1126", "Unexpected end of text."), + Invalid_character: diag(1127, 1 /* Error */, "Invalid_character_1127", "Invalid character."), + Declaration_or_statement_expected: diag(1128, 1 /* Error */, "Declaration_or_statement_expected_1128", "Declaration or statement expected."), + Statement_expected: diag(1129, 1 /* Error */, "Statement_expected_1129", "Statement expected."), + case_or_default_expected: diag(1130, 1 /* Error */, "case_or_default_expected_1130", "'case' or 'default' expected."), + Property_or_signature_expected: diag(1131, 1 /* Error */, "Property_or_signature_expected_1131", "Property or signature expected."), + Enum_member_expected: diag(1132, 1 /* Error */, "Enum_member_expected_1132", "Enum member expected."), + Variable_declaration_expected: diag(1134, 1 /* Error */, "Variable_declaration_expected_1134", "Variable declaration expected."), + Argument_expression_expected: diag(1135, 1 /* Error */, "Argument_expression_expected_1135", "Argument expression expected."), + Property_assignment_expected: diag(1136, 1 /* Error */, "Property_assignment_expected_1136", "Property assignment expected."), + Expression_or_comma_expected: diag(1137, 1 /* Error */, "Expression_or_comma_expected_1137", "Expression or comma expected."), + Parameter_declaration_expected: diag(1138, 1 /* Error */, "Parameter_declaration_expected_1138", "Parameter declaration expected."), + Type_parameter_declaration_expected: diag(1139, 1 /* Error */, "Type_parameter_declaration_expected_1139", "Type parameter declaration expected."), + Type_argument_expected: diag(1140, 1 /* Error */, "Type_argument_expected_1140", "Type argument expected."), + String_literal_expected: diag(1141, 1 /* Error */, "String_literal_expected_1141", "String literal expected."), + Line_break_not_permitted_here: diag(1142, 1 /* Error */, "Line_break_not_permitted_here_1142", "Line break not permitted here."), + or_expected: diag(1144, 1 /* Error */, "or_expected_1144", "'{' or ';' expected."), + or_JSX_element_expected: diag(1145, 1 /* Error */, "or_JSX_element_expected_1145", "'{' or JSX element expected."), + Declaration_expected: diag(1146, 1 /* Error */, "Declaration_expected_1146", "Declaration expected."), + Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, 1 /* Error */, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."), + Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, 1 /* Error */, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."), + File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, 1 /* Error */, "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149", "File name '{0}' differs from already included file name '{1}' only in casing."), + _0_declarations_must_be_initialized: diag(1155, 1 /* Error */, "_0_declarations_must_be_initialized_1155", "'{0}' declarations must be initialized."), + _0_declarations_can_only_be_declared_inside_a_block: diag(1156, 1 /* Error */, "_0_declarations_can_only_be_declared_inside_a_block_1156", "'{0}' declarations can only be declared inside a block."), + Unterminated_template_literal: diag(1160, 1 /* Error */, "Unterminated_template_literal_1160", "Unterminated template literal."), + Unterminated_regular_expression_literal: diag(1161, 1 /* Error */, "Unterminated_regular_expression_literal_1161", "Unterminated regular expression literal."), + An_object_member_cannot_be_declared_optional: diag(1162, 1 /* Error */, "An_object_member_cannot_be_declared_optional_1162", "An object member cannot be declared optional."), + A_yield_expression_is_only_allowed_in_a_generator_body: diag(1163, 1 /* Error */, "A_yield_expression_is_only_allowed_in_a_generator_body_1163", "A 'yield' expression is only allowed in a generator body."), + Computed_property_names_are_not_allowed_in_enums: diag(1164, 1 /* Error */, "Computed_property_names_are_not_allowed_in_enums_1164", "Computed property names are not allowed in enums."), + A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1165, 1 /* Error */, "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165", "A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type: diag(1166, 1 /* Error */, "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: diag(1168, 1 /* Error */, "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168", "A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1169, 1 /* Error */, "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169", "A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1170, 1 /* Error */, "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170", "A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."), + A_comma_expression_is_not_allowed_in_a_computed_property_name: diag(1171, 1 /* Error */, "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171", "A comma expression is not allowed in a computed property name."), + extends_clause_already_seen: diag(1172, 1 /* Error */, "extends_clause_already_seen_1172", "'extends' clause already seen."), + extends_clause_must_precede_implements_clause: diag(1173, 1 /* Error */, "extends_clause_must_precede_implements_clause_1173", "'extends' clause must precede 'implements' clause."), + Classes_can_only_extend_a_single_class: diag(1174, 1 /* Error */, "Classes_can_only_extend_a_single_class_1174", "Classes can only extend a single class."), + implements_clause_already_seen: diag(1175, 1 /* Error */, "implements_clause_already_seen_1175", "'implements' clause already seen."), + Interface_declaration_cannot_have_implements_clause: diag(1176, 1 /* Error */, "Interface_declaration_cannot_have_implements_clause_1176", "Interface declaration cannot have 'implements' clause."), + Binary_digit_expected: diag(1177, 1 /* Error */, "Binary_digit_expected_1177", "Binary digit expected."), + Octal_digit_expected: diag(1178, 1 /* Error */, "Octal_digit_expected_1178", "Octal digit expected."), + Unexpected_token_expected: diag(1179, 1 /* Error */, "Unexpected_token_expected_1179", "Unexpected token. '{' expected."), + Property_destructuring_pattern_expected: diag(1180, 1 /* Error */, "Property_destructuring_pattern_expected_1180", "Property destructuring pattern expected."), + Array_element_destructuring_pattern_expected: diag(1181, 1 /* Error */, "Array_element_destructuring_pattern_expected_1181", "Array element destructuring pattern expected."), + A_destructuring_declaration_must_have_an_initializer: diag(1182, 1 /* Error */, "A_destructuring_declaration_must_have_an_initializer_1182", "A destructuring declaration must have an initializer."), + An_implementation_cannot_be_declared_in_ambient_contexts: diag(1183, 1 /* Error */, "An_implementation_cannot_be_declared_in_ambient_contexts_1183", "An implementation cannot be declared in ambient contexts."), + Modifiers_cannot_appear_here: diag(1184, 1 /* Error */, "Modifiers_cannot_appear_here_1184", "Modifiers cannot appear here."), + Merge_conflict_marker_encountered: diag(1185, 1 /* Error */, "Merge_conflict_marker_encountered_1185", "Merge conflict marker encountered."), + A_rest_element_cannot_have_an_initializer: diag(1186, 1 /* Error */, "A_rest_element_cannot_have_an_initializer_1186", "A rest element cannot have an initializer."), + A_parameter_property_may_not_be_declared_using_a_binding_pattern: diag(1187, 1 /* Error */, "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187", "A parameter property may not be declared using a binding pattern."), + Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: diag(1188, 1 /* Error */, "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188", "Only a single variable declaration is allowed in a 'for...of' statement."), + The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: diag(1189, 1 /* Error */, "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189", "The variable declaration of a 'for...in' statement cannot have an initializer."), + The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: diag(1190, 1 /* Error */, "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190", "The variable declaration of a 'for...of' statement cannot have an initializer."), + An_import_declaration_cannot_have_modifiers: diag(1191, 1 /* Error */, "An_import_declaration_cannot_have_modifiers_1191", "An import declaration cannot have modifiers."), + Module_0_has_no_default_export: diag(1192, 1 /* Error */, "Module_0_has_no_default_export_1192", "Module '{0}' has no default export."), + An_export_declaration_cannot_have_modifiers: diag(1193, 1 /* Error */, "An_export_declaration_cannot_have_modifiers_1193", "An export declaration cannot have modifiers."), + Export_declarations_are_not_permitted_in_a_namespace: diag(1194, 1 /* Error */, "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: diag(1195, 1 /* Error */, "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: diag(1196, 1 /* Error */, "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: diag(1197, 1 /* Error */, "Catch_clause_variable_cannot_have_an_initializer_1197", "Catch clause variable cannot have an initializer."), + An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, 1 /* Error */, "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198", "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."), + Unterminated_Unicode_escape_sequence: diag(1199, 1 /* Error */, "Unterminated_Unicode_escape_sequence_1199", "Unterminated Unicode escape sequence."), + Line_terminator_not_permitted_before_arrow: diag(1200, 1 /* Error */, "Line_terminator_not_permitted_before_arrow_1200", "Line terminator not permitted before arrow."), + Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(1202, 1 /* Error */, "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202", `Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`), + Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead: diag(1203, 1 /* Error */, "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203", "Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."), + Re_exporting_a_type_when_0_is_enabled_requires_using_export_type: diag(1205, 1 /* Error */, "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: diag(1206, 1 /* Error */, "Decorators_are_not_valid_here_1206", "Decorators are not valid here."), + Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: diag(1207, 1 /* Error */, "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207", "Decorators cannot be applied to multiple get/set accessors of the same name."), + Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0: diag(1209, 1 /* Error */, "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: diag(1210, 1 /* Error */, "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: diag(1211, 1 /* Error */, "A_class_declaration_without_the_default_modifier_must_have_a_name_1211", "A class declaration without the 'default' modifier must have a name."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode: diag(1212, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212", "Identifier expected. '{0}' is a reserved word in strict mode."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: diag(1213, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213", "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."), + Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode: diag(1214, 1 /* Error */, "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214", "Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."), + Invalid_use_of_0_Modules_are_automatically_in_strict_mode: diag(1215, 1 /* Error */, "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215", "Invalid use of '{0}'. Modules are automatically in strict mode."), + Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules: diag(1216, 1 /* Error */, "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216", "Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."), + Export_assignment_is_not_supported_when_module_flag_is_system: diag(1218, 1 /* Error */, "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: diag(1221, 1 /* Error */, "Generators_are_not_allowed_in_an_ambient_context_1221", "Generators are not allowed in an ambient context."), + An_overload_signature_cannot_be_declared_as_a_generator: diag(1222, 1 /* Error */, "An_overload_signature_cannot_be_declared_as_a_generator_1222", "An overload signature cannot be declared as a generator."), + _0_tag_already_specified: diag(1223, 1 /* Error */, "_0_tag_already_specified_1223", "'{0}' tag already specified."), + Signature_0_must_be_a_type_predicate: diag(1224, 1 /* Error */, "Signature_0_must_be_a_type_predicate_1224", "Signature '{0}' must be a type predicate."), + Cannot_find_parameter_0: diag(1225, 1 /* Error */, "Cannot_find_parameter_0_1225", "Cannot find parameter '{0}'."), + Type_predicate_0_is_not_assignable_to_1: diag(1226, 1 /* Error */, "Type_predicate_0_is_not_assignable_to_1_1226", "Type predicate '{0}' is not assignable to '{1}'."), + Parameter_0_is_not_in_the_same_position_as_parameter_1: diag(1227, 1 /* Error */, "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227", "Parameter '{0}' is not in the same position as parameter '{1}'."), + A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: diag(1228, 1 /* Error */, "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228", "A type predicate is only allowed in return type position for functions and methods."), + A_type_predicate_cannot_reference_a_rest_parameter: diag(1229, 1 /* Error */, "A_type_predicate_cannot_reference_a_rest_parameter_1229", "A type predicate cannot reference a rest parameter."), + A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: diag(1230, 1 /* Error */, "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230", "A type predicate cannot reference element '{0}' in a binding pattern."), + An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1231, 1 /* Error */, "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: diag(1232, 1 /* Error */, "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: diag(1233, 1 /* Error */, "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: diag(1234, 1 /* Error */, "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234", "An ambient module declaration is only allowed at the top level in a file."), + A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module: diag(1235, 1 /* Error */, "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: diag(1236, 1 /* Error */, "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236", "The return type of a property decorator function must be either 'void' or 'any'."), + The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any: diag(1237, 1 /* Error */, "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237", "The return type of a parameter decorator function must be either 'void' or 'any'."), + Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression: diag(1238, 1 /* Error */, "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238", "Unable to resolve signature of class decorator when called as an expression."), + Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression: diag(1239, 1 /* Error */, "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239", "Unable to resolve signature of parameter decorator when called as an expression."), + Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression: diag(1240, 1 /* Error */, "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240", "Unable to resolve signature of property decorator when called as an expression."), + Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression: diag(1241, 1 /* Error */, "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241", "Unable to resolve signature of method decorator when called as an expression."), + abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration: diag(1242, 1 /* Error */, "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242", "'abstract' modifier can only appear on a class, method, or property declaration."), + _0_modifier_cannot_be_used_with_1_modifier: diag(1243, 1 /* Error */, "_0_modifier_cannot_be_used_with_1_modifier_1243", "'{0}' modifier cannot be used with '{1}' modifier."), + Abstract_methods_can_only_appear_within_an_abstract_class: diag(1244, 1 /* Error */, "Abstract_methods_can_only_appear_within_an_abstract_class_1244", "Abstract methods can only appear within an abstract class."), + Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: diag(1245, 1 /* Error */, "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245", "Method '{0}' cannot have an implementation because it is marked abstract."), + An_interface_property_cannot_have_an_initializer: diag(1246, 1 /* Error */, "An_interface_property_cannot_have_an_initializer_1246", "An interface property cannot have an initializer."), + A_type_literal_property_cannot_have_an_initializer: diag(1247, 1 /* Error */, "A_type_literal_property_cannot_have_an_initializer_1247", "A type literal property cannot have an initializer."), + A_class_member_cannot_have_the_0_keyword: diag(1248, 1 /* Error */, "A_class_member_cannot_have_the_0_keyword_1248", "A class member cannot have the '{0}' keyword."), + A_decorator_can_only_decorate_a_method_implementation_not_an_overload: diag(1249, 1 /* Error */, "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249", "A decorator can only decorate a method implementation, not an overload."), + Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5: diag(1250, 1 /* Error */, "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: diag(1251, 1 /* Error */, "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: diag(1252, 1 /* Error */, "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: diag(1253, 1 /* Error */, "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: diag(1254, 1 /* Error */, "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254", "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."), + A_definite_assignment_assertion_is_not_permitted_in_this_context: diag(1255, 1 /* Error */, "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: diag(1257, 1 /* Error */, "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: diag(1258, 1 /* Error */, "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: diag(1259, 1 /* Error */, "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: diag(1260, 1 /* Error */, "Keywords_cannot_contain_escape_characters_1260", "Keywords cannot contain escape characters."), + Already_included_file_name_0_differs_from_file_name_1_only_in_casing: diag(1261, 1 /* Error */, "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: diag(1262, 1 /* Error */, "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: diag(1263, 1 /* Error */, "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: diag(1264, 1 /* Error */, "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: diag(1265, 1 /* Error */, "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: diag(1266, 1 /* Error */, "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: diag(1267, 1 /* Error */, "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: diag(1268, 1 /* Error */, "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: diag(1269, 1 /* Error */, "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: diag(1270, 1 /* Error */, "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: diag(1271, 1 /* Error */, "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: diag(1272, 1 /* Error */, "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: diag(1273, 1 /* Error */, "_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: diag(1274, 1 /* Error */, "_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: diag(1275, 1 /* Error */, "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: diag(1276, 1 /* Error */, "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: diag(1277, 1 /* Error */, "_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: diag(1278, 1 /* Error */, "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: diag(1279, 1 /* Error */, "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: diag(1280, 1 /* Error */, "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: diag(1281, 1 /* Error */, "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: diag(1282, 1 /* Error */, "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: diag(1283, 1 /* Error */, "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: diag(1284, 1 /* Error */, "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: diag(1285, 1 /* Error */, "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: diag(1286, 1 /* Error */, "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: diag(1287, 1 /* Error */, "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: diag(1288, 1 /* Error */, "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: diag(1289, 1 /* Error */, "_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: diag(1290, 1 /* Error */, "_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: diag(1291, 1 /* Error */, "_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: diag(1292, 1 /* Error */, "_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: diag(1300, 1 /* Error */, "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: diag(1308, 1 /* Error */, "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: diag(1309, 1 /* Error */, "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: diag(1312, 1 /* Error */, "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: diag(1313, 1 /* Error */, "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313", "The body of an 'if' statement cannot be the empty statement."), + Global_module_exports_may_only_appear_in_module_files: diag(1314, 1 /* Error */, "Global_module_exports_may_only_appear_in_module_files_1314", "Global module exports may only appear in module files."), + Global_module_exports_may_only_appear_in_declaration_files: diag(1315, 1 /* Error */, "Global_module_exports_may_only_appear_in_declaration_files_1315", "Global module exports may only appear in declaration files."), + Global_module_exports_may_only_appear_at_top_level: diag(1316, 1 /* Error */, "Global_module_exports_may_only_appear_at_top_level_1316", "Global module exports may only appear at top level."), + A_parameter_property_cannot_be_declared_using_a_rest_parameter: diag(1317, 1 /* Error */, "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317", "A parameter property cannot be declared using a rest parameter."), + An_abstract_accessor_cannot_have_an_implementation: diag(1318, 1 /* Error */, "An_abstract_accessor_cannot_have_an_implementation_1318", "An abstract accessor cannot have an implementation."), + A_default_export_can_only_be_used_in_an_ECMAScript_style_module: diag(1319, 1 /* Error */, "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319", "A default export can only be used in an ECMAScript-style module."), + Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1 /* Error */, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."), + Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."), + Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."), + Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1 /* Error */, "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: diag(1324, 1 /* Error */, "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: diag(1325, 1 /* Error */, "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: diag(1326, 1 /* Error */, "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: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."), + Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: diag(1328, 1 /* Error */, "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328", "Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."), + _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: diag(1329, 1 /* Error */, "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329", "'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"), + A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly: diag(1330, 1 /* Error */, "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330", "A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."), + A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly: diag(1331, 1 /* Error */, "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331", "A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."), + A_variable_whose_type_is_a_unique_symbol_type_must_be_const: diag(1332, 1 /* Error */, "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332", "A variable whose type is a 'unique symbol' type must be 'const'."), + unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name: diag(1333, 1 /* Error */, "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333", "'unique symbol' types may not be used on a variable declaration with a binding name."), + unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement: diag(1334, 1 /* Error */, "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334", "'unique symbol' types are only allowed on variables in a variable statement."), + unique_symbol_types_are_not_allowed_here: diag(1335, 1 /* Error */, "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: diag(1337, 1 /* Error */, "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: diag(1338, 1 /* Error */, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."), + Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."), + Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"), + Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "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: diag(1343, 1 /* Error */, "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: diag(1344, 1 /* Error */, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."), + An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."), + This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."), + use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, 1 /* Error */, "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347", "'use strict' directive cannot be used with non-simple parameter list."), + Non_simple_parameter_declared_here: diag(1348, 1 /* Error */, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."), + use_strict_directive_used_here: diag(1349, 1 /* Error */, "use_strict_directive_used_here_1349", "'use strict' directive used here."), + Print_the_final_configuration_instead_of_building: diag(1350, 3 /* Message */, "Print_the_final_configuration_instead_of_building_1350", "Print the final configuration instead of building."), + An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, 1 /* Error */, "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351", "An identifier or keyword cannot immediately follow a numeric literal."), + A_bigint_literal_cannot_use_exponential_notation: diag(1352, 1 /* Error */, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."), + A_bigint_literal_must_be_an_integer: diag(1353, 1 /* Error */, "A_bigint_literal_must_be_an_integer_1353", "A bigint literal must be an integer."), + readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: diag(1354, 1 /* Error */, "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354", "'readonly' type modifier is only permitted on array and tuple literal types."), + A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: diag(1355, 1 /* Error */, "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: diag(1356, 1 /* Error */, "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: diag(1357, 1 /* Error */, "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: diag(1358, 1 /* Error */, "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: diag(1359, 1 /* Error */, "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: diag(1360, 1 /* Error */, "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: diag(1361, 1 /* Error */, "_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: diag(1362, 1 /* Error */, "_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: diag(1363, 1 /* Error */, "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: diag(1364, 3 /* Message */, "Convert_to_type_only_export_1364", "Convert to type-only export"), + Convert_all_re_exported_types_to_type_only_exports: diag(1365, 3 /* Message */, "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: diag(1366, 3 /* Message */, "Split_into_two_separate_import_declarations_1366", "Split into two separate import declarations"), + Split_all_invalid_type_only_imports: diag(1367, 3 /* Message */, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"), + Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."), + Did_you_mean_0: diag(1369, 3 /* Message */, "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: diag(1375, 1 /* Error */, "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: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), + _0_was_exported_here: diag(1377, 3 /* Message */, "_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: diag(1378, 1 /* Error */, "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: diag(1379, 1 /* Error */, "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: diag(1380, 1 /* Error */, "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: diag(1381, 1 /* Error */, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), + Unexpected_token_Did_you_mean_or_gt: diag(1382, 1 /* Error */, "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: diag(1385, 1 /* Error */, "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: diag(1386, 1 /* Error */, "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: diag(1387, 1 /* Error */, "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: diag(1388, 1 /* Error */, "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: diag(1389, 1 /* Error */, "_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: diag(1390, 1 /* Error */, "_0_is_not_allowed_as_a_parameter_name_1390", "'{0}' is not allowed as a parameter name."), + An_import_alias_cannot_use_import_type: diag(1392, 1 /* Error */, "An_import_alias_cannot_use_import_type_1392", "An import alias cannot use 'import type'"), + Imported_via_0_from_file_1: diag(1393, 3 /* Message */, "Imported_via_0_from_file_1_1393", "Imported via {0} from file '{1}'"), + Imported_via_0_from_file_1_with_packageId_2: diag(1394, 3 /* Message */, "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: diag(1395, 3 /* Message */, "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: diag(1396, 3 /* Message */, "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: diag(1397, 3 /* Message */, "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: diag(1398, 3 /* Message */, "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: diag(1399, 3 /* Message */, "File_is_included_via_import_here_1399", "File is included via import here."), + Referenced_via_0_from_file_1: diag(1400, 3 /* Message */, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"), + File_is_included_via_reference_here: diag(1401, 3 /* Message */, "File_is_included_via_reference_here_1401", "File is included via reference here."), + Type_library_referenced_via_0_from_file_1: diag(1402, 3 /* Message */, "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: diag(1403, 3 /* Message */, "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: diag(1404, 3 /* Message */, "File_is_included_via_type_library_reference_here_1404", "File is included via type library reference here."), + Library_referenced_via_0_from_file_1: diag(1405, 3 /* Message */, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"), + File_is_included_via_library_reference_here: diag(1406, 3 /* Message */, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."), + Matched_by_include_pattern_0_in_1: diag(1407, 3 /* Message */, "Matched_by_include_pattern_0_in_1_1407", "Matched by include pattern '{0}' in '{1}'"), + File_is_matched_by_include_pattern_specified_here: diag(1408, 3 /* Message */, "File_is_matched_by_include_pattern_specified_here_1408", "File is matched by include pattern specified here."), + Part_of_files_list_in_tsconfig_json: diag(1409, 3 /* Message */, "Part_of_files_list_in_tsconfig_json_1409", "Part of 'files' list in tsconfig.json"), + File_is_matched_by_files_list_specified_here: diag(1410, 3 /* Message */, "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: diag(1411, 3 /* Message */, "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: diag(1412, 3 /* Message */, "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: diag(1413, 3 /* Message */, "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: diag(1414, 3 /* Message */, "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: diag(1415, 3 /* Message */, "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: diag(1416, 3 /* Message */, "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: diag(1417, 3 /* Message */, "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: diag(1418, 3 /* Message */, "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: diag(1419, 3 /* Message */, "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: diag(1420, 3 /* Message */, "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: diag(1421, 3 /* Message */, "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: diag(1422, 3 /* Message */, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"), + File_is_library_specified_here: diag(1423, 3 /* Message */, "File_is_library_specified_here_1423", "File is library specified here."), + Default_library: diag(1424, 3 /* Message */, "Default_library_1424", "Default library"), + Default_library_for_target_0: diag(1425, 3 /* Message */, "Default_library_for_target_0_1425", "Default library for target '{0}'"), + File_is_default_library_for_target_specified_here: diag(1426, 3 /* Message */, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."), + Root_file_specified_for_compilation: diag(1427, 3 /* Message */, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"), + File_is_output_of_project_reference_source_0: diag(1428, 3 /* Message */, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"), + File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), + The_file_is_in_the_program_because_Colon: diag(1430, 3 /* Message */, "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: diag(1431, 1 /* Error */, "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: diag(1432, 1 /* Error */, "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: diag(1433, 1 /* Error */, "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: diag(1434, 1 /* Error */, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), + Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1 /* Error */, "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: diag(1436, 1 /* Error */, "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: diag(1437, 1 /* Error */, "Namespace_must_be_given_a_name_1437", "Namespace must be given a name."), + Interface_must_be_given_a_name: diag(1438, 1 /* Error */, "Interface_must_be_given_a_name_1438", "Interface must be given a name."), + Type_alias_must_be_given_a_name: diag(1439, 1 /* Error */, "Type_alias_must_be_given_a_name_1439", "Type alias must be given a name."), + Variable_declaration_not_allowed_at_this_location: diag(1440, 1 /* Error */, "Variable_declaration_not_allowed_at_this_location_1440", "Variable declaration not allowed at this location."), + Cannot_start_a_function_call_in_a_type_annotation: diag(1441, 1 /* Error */, "Cannot_start_a_function_call_in_a_type_annotation_1441", "Cannot start a function call in a type annotation."), + Expected_for_property_initializer: diag(1442, 1 /* Error */, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."), + Module_declaration_names_may_only_use_or_quoted_strings: diag(1443, 1 /* Error */, "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: diag(1448, 1 /* Error */, "_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: diag(1449, 3 /* Message */, "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: diag(1450, 3 /* Message */, "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: diag(1451, 1 /* Error */, "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: diag(1453, 1 /* Error */, "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: diag(1454, 1 /* Error */, "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: diag(1455, 1 /* Error */, "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: diag(1456, 1 /* Error */, "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: diag(1457, 3 /* Message */, "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: diag(1458, 3 /* Message */, "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: diag(1459, 3 /* Message */, "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: diag(1460, 3 /* Message */, "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: diag(1461, 3 /* Message */, "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: diag(1463, 1 /* Error */, "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: diag(1464, 1 /* Error */, "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: diag(1470, 1 /* Error */, "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: diag(1471, 1 /* Error */, "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: diag(1472, 1 /* Error */, "catch_or_finally_expected_1472", "'catch' or 'finally' expected."), + An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: diag(1473, 1 /* Error */, "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: diag(1474, 1 /* Error */, "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: diag(1475, 3 /* Message */, "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: diag(1476, 3 /* Message */, "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: diag(1477, 1 /* Error */, "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: diag(1478, 1 /* Error */, "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: diag(1479, 1 /* Error */, "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: diag(1480, 3 /* Message */, "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: diag(1481, 3 /* Message */, "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: diag(1482, 3 /* Message */, "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: diag(1483, 3 /* Message */, "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: diag(1484, 1 /* Error */, "_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: diag(1485, 1 /* Error */, "_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: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."), + Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: diag(1487, 1 /* Error */, "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: diag(1488, 1 /* Error */, "Escape_sequence_0_is_not_allowed_1488", "Escape sequence '{0}' is not allowed."), + Decimals_with_leading_zeros_are_not_allowed: diag(1489, 1 /* Error */, "Decimals_with_leading_zeros_are_not_allowed_1489", "Decimals with leading zeros are not allowed."), + File_appears_to_be_binary: diag(1490, 1 /* Error */, "File_appears_to_be_binary_1490", "File appears to be binary."), + _0_modifier_cannot_appear_on_a_using_declaration: diag(1491, 1 /* Error */, "_0_modifier_cannot_appear_on_a_using_declaration_1491", "'{0}' modifier cannot appear on a 'using' declaration."), + _0_declarations_may_not_have_binding_patterns: diag(1492, 1 /* Error */, "_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: diag(1493, 1 /* Error */, "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: diag(1494, 1 /* Error */, "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: diag(1495, 1 /* Error */, "_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: diag(1496, 1 /* Error */, "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: diag(1497, 1 /* Error */, "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: diag(1498, 1 /* Error */, "Invalid_syntax_in_decorator_1498", "Invalid syntax in decorator."), + Unknown_regular_expression_flag: diag(1499, 1 /* Error */, "Unknown_regular_expression_flag_1499", "Unknown regular expression flag."), + Duplicate_regular_expression_flag: diag(1500, 1 /* Error */, "Duplicate_regular_expression_flag_1500", "Duplicate regular expression flag."), + This_regular_expression_flag_is_only_available_when_targeting_0_or_later: diag(1501, 1 /* Error */, "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: diag(1502, 1 /* Error */, "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: diag(1503, 1 /* Error */, "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: diag(1504, 1 /* Error */, "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: diag(1505, 1 /* Error */, "Incomplete_quantifier_Digit_expected_1505", "Incomplete quantifier. Digit expected."), + Numbers_out_of_order_in_quantifier: diag(1506, 1 /* Error */, "Numbers_out_of_order_in_quantifier_1506", "Numbers out of order in quantifier."), + There_is_nothing_available_for_repetition: diag(1507, 1 /* Error */, "There_is_nothing_available_for_repetition_1507", "There is nothing available for repetition."), + Unexpected_0_Did_you_mean_to_escape_it_with_backslash: diag(1508, 1 /* Error */, "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: diag(1509, 1 /* Error */, "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: diag(1510, 1 /* Error */, "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: diag(1511, 1 /* Error */, "q_is_only_available_inside_character_class_1511", "'\\q' is only available inside character class."), + c_must_be_followed_by_an_ASCII_letter: diag(1512, 1 /* Error */, "c_must_be_followed_by_an_ASCII_letter_1512", "'\\c' must be followed by an ASCII letter."), + Undetermined_character_escape: diag(1513, 1 /* Error */, "Undetermined_character_escape_1513", "Undetermined character escape."), + Expected_a_capturing_group_name: diag(1514, 1 /* Error */, "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: diag(1515, 1 /* Error */, "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: diag(1516, 1 /* Error */, "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: diag(1517, 1 /* Error */, "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: diag(1518, 1 /* Error */, "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: diag(1519, 1 /* Error */, "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: diag(1520, 1 /* Error */, "Expected_a_class_set_operand_1520", "Expected a class set operand."), + q_must_be_followed_by_string_alternatives_enclosed_in_braces: diag(1521, 1 /* Error */, "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: diag(1522, 1 /* Error */, "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: diag(1523, 1 /* Error */, "Expected_a_Unicode_property_name_1523", "Expected a Unicode property name."), + Unknown_Unicode_property_name: diag(1524, 1 /* Error */, "Unknown_Unicode_property_name_1524", "Unknown Unicode property name."), + Expected_a_Unicode_property_value: diag(1525, 1 /* Error */, "Expected_a_Unicode_property_value_1525", "Expected a Unicode property value."), + Unknown_Unicode_property_value: diag(1526, 1 /* Error */, "Unknown_Unicode_property_value_1526", "Unknown Unicode property value."), + Expected_a_Unicode_property_name_or_value: diag(1527, 1 /* Error */, "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: diag(1528, 1 /* Error */, "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: diag(1529, 1 /* Error */, "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: diag(1530, 1 /* Error */, "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: diag(1531, 1 /* Error */, "_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: diag(1532, 1 /* Error */, "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: diag(1533, 1 /* Error */, "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: diag(1534, 1 /* Error */, "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: diag(1535, 1 /* Error */, "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: diag(1536, 1 /* Error */, "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: diag(1537, 1 /* Error */, "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: diag(2200, 1 /* Error */, "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: diag(2201, 1 /* Error */, "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: diag( + 2202, + 1 /* Error */, + "Call_signature_return_types_0_and_1_are_incompatible_2202", + "Call signature return types '{0}' and '{1}' are incompatible.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + true + ), + Construct_signature_return_types_0_and_1_are_incompatible: diag( + 2203, + 1 /* Error */, + "Construct_signature_return_types_0_and_1_are_incompatible_2203", + "Construct signature return types '{0}' and '{1}' are incompatible.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + true + ), + Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag( + 2204, + 1 /* Error */, + "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}'.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + true + ), + Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag( + 2205, + 1 /* Error */, + "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}'.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + true + ), + The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement: diag(2206, 1 /* Error */, "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: diag(2207, 1 /* Error */, "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: diag(2208, 1 /* Error */, "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: diag(2209, 1 /* Error */, "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: diag(2210, 1 /* Error */, "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: diag(2211, 3 /* Message */, "Add_extends_constraint_2211", "Add `extends` constraint."), + Add_extends_constraint_to_all_type_parameters: diag(2212, 3 /* Message */, "Add_extends_constraint_to_all_type_parameters_2212", "Add `extends` constraint to all type parameters"), + Duplicate_identifier_0: diag(2300, 1 /* Error */, "Duplicate_identifier_0_2300", "Duplicate identifier '{0}'."), + Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2301, 1 /* Error */, "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301", "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."), + Static_members_cannot_reference_class_type_parameters: diag(2302, 1 /* Error */, "Static_members_cannot_reference_class_type_parameters_2302", "Static members cannot reference class type parameters."), + Circular_definition_of_import_alias_0: diag(2303, 1 /* Error */, "Circular_definition_of_import_alias_0_2303", "Circular definition of import alias '{0}'."), + Cannot_find_name_0: diag(2304, 1 /* Error */, "Cannot_find_name_0_2304", "Cannot find name '{0}'."), + Module_0_has_no_exported_member_1: diag(2305, 1 /* Error */, "Module_0_has_no_exported_member_1_2305", "Module '{0}' has no exported member '{1}'."), + File_0_is_not_a_module: diag(2306, 1 /* Error */, "File_0_is_not_a_module_2306", "File '{0}' is not a module."), + Cannot_find_module_0_or_its_corresponding_type_declarations: diag(2307, 1 /* Error */, "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: diag(2308, 1 /* Error */, "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308", "Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."), + An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: diag(2309, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309", "An export assignment cannot be used in a module with other exported elements."), + Type_0_recursively_references_itself_as_a_base_type: diag(2310, 1 /* Error */, "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: diag(2311, 1 /* Error */, "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: diag(2312, 1 /* Error */, "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312", "An interface can only extend an object type or intersection of object types with statically known members."), + Type_parameter_0_has_a_circular_constraint: diag(2313, 1 /* Error */, "Type_parameter_0_has_a_circular_constraint_2313", "Type parameter '{0}' has a circular constraint."), + Generic_type_0_requires_1_type_argument_s: diag(2314, 1 /* Error */, "Generic_type_0_requires_1_type_argument_s_2314", "Generic type '{0}' requires {1} type argument(s)."), + Type_0_is_not_generic: diag(2315, 1 /* Error */, "Type_0_is_not_generic_2315", "Type '{0}' is not generic."), + Global_type_0_must_be_a_class_or_interface_type: diag(2316, 1 /* Error */, "Global_type_0_must_be_a_class_or_interface_type_2316", "Global type '{0}' must be a class or interface type."), + Global_type_0_must_have_1_type_parameter_s: diag(2317, 1 /* Error */, "Global_type_0_must_have_1_type_parameter_s_2317", "Global type '{0}' must have {1} type parameter(s)."), + Cannot_find_global_type_0: diag(2318, 1 /* Error */, "Cannot_find_global_type_0_2318", "Cannot find global type '{0}'."), + Named_property_0_of_types_1_and_2_are_not_identical: diag(2319, 1 /* Error */, "Named_property_0_of_types_1_and_2_are_not_identical_2319", "Named property '{0}' of types '{1}' and '{2}' are not identical."), + Interface_0_cannot_simultaneously_extend_types_1_and_2: diag(2320, 1 /* Error */, "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320", "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."), + Excessive_stack_depth_comparing_types_0_and_1: diag(2321, 1 /* Error */, "Excessive_stack_depth_comparing_types_0_and_1_2321", "Excessive stack depth comparing types '{0}' and '{1}'."), + Type_0_is_not_assignable_to_type_1: diag(2322, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_2322", "Type '{0}' is not assignable to type '{1}'."), + Cannot_redeclare_exported_variable_0: diag(2323, 1 /* Error */, "Cannot_redeclare_exported_variable_0_2323", "Cannot redeclare exported variable '{0}'."), + Property_0_is_missing_in_type_1: diag(2324, 1 /* Error */, "Property_0_is_missing_in_type_1_2324", "Property '{0}' is missing in type '{1}'."), + Property_0_is_private_in_type_1_but_not_in_type_2: diag(2325, 1 /* Error */, "Property_0_is_private_in_type_1_but_not_in_type_2_2325", "Property '{0}' is private in type '{1}' but not in type '{2}'."), + Types_of_property_0_are_incompatible: diag(2326, 1 /* Error */, "Types_of_property_0_are_incompatible_2326", "Types of property '{0}' are incompatible."), + Property_0_is_optional_in_type_1_but_required_in_type_2: diag(2327, 1 /* Error */, "Property_0_is_optional_in_type_1_but_required_in_type_2_2327", "Property '{0}' is optional in type '{1}' but required in type '{2}'."), + Types_of_parameters_0_and_1_are_incompatible: diag(2328, 1 /* Error */, "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: diag(2329, 1 /* Error */, "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: diag(2330, 1 /* Error */, "_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: diag(2331, 1 /* Error */, "this_cannot_be_referenced_in_a_module_or_namespace_body_2331", "'this' cannot be referenced in a module or namespace body."), + this_cannot_be_referenced_in_current_location: diag(2332, 1 /* Error */, "this_cannot_be_referenced_in_current_location_2332", "'this' cannot be referenced in current location."), + this_cannot_be_referenced_in_a_static_property_initializer: diag(2334, 1 /* Error */, "this_cannot_be_referenced_in_a_static_property_initializer_2334", "'this' cannot be referenced in a static property initializer."), + super_can_only_be_referenced_in_a_derived_class: diag(2335, 1 /* Error */, "super_can_only_be_referenced_in_a_derived_class_2335", "'super' can only be referenced in a derived class."), + super_cannot_be_referenced_in_constructor_arguments: diag(2336, 1 /* Error */, "super_cannot_be_referenced_in_constructor_arguments_2336", "'super' cannot be referenced in constructor arguments."), + Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: diag(2337, 1 /* Error */, "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337", "Super calls are not permitted outside constructors or in nested functions inside constructors."), + super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: diag(2338, 1 /* Error */, "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338", "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."), + Property_0_does_not_exist_on_type_1: diag(2339, 1 /* Error */, "Property_0_does_not_exist_on_type_1_2339", "Property '{0}' does not exist on type '{1}'."), + Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: diag(2340, 1 /* Error */, "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340", "Only public and protected methods of the base class are accessible via the 'super' keyword."), + Property_0_is_private_and_only_accessible_within_class_1: diag(2341, 1 /* Error */, "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: diag(2343, 1 /* Error */, "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: diag(2344, 1 /* Error */, "Type_0_does_not_satisfy_the_constraint_1_2344", "Type '{0}' does not satisfy the constraint '{1}'."), + Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345", "Argument of type '{0}' is not assignable to parameter of type '{1}'."), + Untyped_function_calls_may_not_accept_type_arguments: diag(2347, 1 /* Error */, "Untyped_function_calls_may_not_accept_type_arguments_2347", "Untyped function calls may not accept type arguments."), + Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, 1 /* Error */, "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348", "Value of type '{0}' is not callable. Did you mean to include 'new'?"), + This_expression_is_not_callable: diag(2349, 1 /* Error */, "This_expression_is_not_callable_2349", "This expression is not callable."), + Only_a_void_function_can_be_called_with_the_new_keyword: diag(2350, 1 /* Error */, "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: diag(2351, 1 /* Error */, "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: diag(2352, 1 /* Error */, "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352", "Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."), + Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: diag(2353, 1 /* Error */, "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353", "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."), + This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: diag(2354, 1 /* Error */, "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", "This syntax requires an imported helper but module '{0}' cannot be found."), + A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2355, 1 /* Error */, "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: diag(2356, 1 /* Error */, "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356", "An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."), + The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, 1 /* Error */, "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357", "The operand of an increment or decrement operator must be a variable or a property access."), + The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358", "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."), + The_right_hand_side_of_an_instanceof_expression_must_be_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: diag(2359, 1 /* Error */, "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: diag(2362, 1 /* Error */, "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362", "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), + The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2363, 1 /* Error */, "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363", "The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."), + The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: diag(2364, 1 /* Error */, "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364", "The left-hand side of an assignment expression must be a variable or a property access."), + Operator_0_cannot_be_applied_to_types_1_and_2: diag(2365, 1 /* Error */, "Operator_0_cannot_be_applied_to_types_1_and_2_2365", "Operator '{0}' cannot be applied to types '{1}' and '{2}'."), + Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: diag(2366, 1 /* Error */, "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366", "Function lacks ending return statement and return type does not include 'undefined'."), + This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap: diag(2367, 1 /* Error */, "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: diag(2368, 1 /* Error */, "Type_parameter_name_cannot_be_0_2368", "Type parameter name cannot be '{0}'."), + A_parameter_property_is_only_allowed_in_a_constructor_implementation: diag(2369, 1 /* Error */, "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369", "A parameter property is only allowed in a constructor implementation."), + A_rest_parameter_must_be_of_an_array_type: diag(2370, 1 /* Error */, "A_rest_parameter_must_be_of_an_array_type_2370", "A rest parameter must be of an array type."), + A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: diag(2371, 1 /* Error */, "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371", "A parameter initializer is only allowed in a function or constructor implementation."), + Parameter_0_cannot_reference_itself: diag(2372, 1 /* Error */, "Parameter_0_cannot_reference_itself_2372", "Parameter '{0}' cannot reference itself."), + Parameter_0_cannot_reference_identifier_1_declared_after_it: diag(2373, 1 /* Error */, "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: diag(2374, 1 /* Error */, "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: diag(2375, 1 /* Error */, "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: diag(2376, 1 /* Error */, "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: diag(2377, 1 /* Error */, "Constructors_for_derived_classes_must_contain_a_super_call_2377", "Constructors for derived classes must contain a 'super' call."), + A_get_accessor_must_return_a_value: diag(2378, 1 /* Error */, "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: diag(2379, 1 /* Error */, "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: diag(2383, 1 /* Error */, "Overload_signatures_must_all_be_exported_or_non_exported_2383", "Overload signatures must all be exported or non-exported."), + Overload_signatures_must_all_be_ambient_or_non_ambient: diag(2384, 1 /* Error */, "Overload_signatures_must_all_be_ambient_or_non_ambient_2384", "Overload signatures must all be ambient or non-ambient."), + Overload_signatures_must_all_be_public_private_or_protected: diag(2385, 1 /* Error */, "Overload_signatures_must_all_be_public_private_or_protected_2385", "Overload signatures must all be public, private or protected."), + Overload_signatures_must_all_be_optional_or_required: diag(2386, 1 /* Error */, "Overload_signatures_must_all_be_optional_or_required_2386", "Overload signatures must all be optional or required."), + Function_overload_must_be_static: diag(2387, 1 /* Error */, "Function_overload_must_be_static_2387", "Function overload must be static."), + Function_overload_must_not_be_static: diag(2388, 1 /* Error */, "Function_overload_must_not_be_static_2388", "Function overload must not be static."), + Function_implementation_name_must_be_0: diag(2389, 1 /* Error */, "Function_implementation_name_must_be_0_2389", "Function implementation name must be '{0}'."), + Constructor_implementation_is_missing: diag(2390, 1 /* Error */, "Constructor_implementation_is_missing_2390", "Constructor implementation is missing."), + Function_implementation_is_missing_or_not_immediately_following_the_declaration: diag(2391, 1 /* Error */, "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391", "Function implementation is missing or not immediately following the declaration."), + Multiple_constructor_implementations_are_not_allowed: diag(2392, 1 /* Error */, "Multiple_constructor_implementations_are_not_allowed_2392", "Multiple constructor implementations are not allowed."), + Duplicate_function_implementation: diag(2393, 1 /* Error */, "Duplicate_function_implementation_2393", "Duplicate function implementation."), + This_overload_signature_is_not_compatible_with_its_implementation_signature: diag(2394, 1 /* Error */, "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394", "This overload signature is not compatible with its implementation signature."), + Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: diag(2395, 1 /* Error */, "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395", "Individual declarations in merged declaration '{0}' must be all exported or all local."), + Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: diag(2396, 1 /* Error */, "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396", "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."), + Declaration_name_conflicts_with_built_in_global_identifier_0: diag(2397, 1 /* Error */, "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: diag(2398, 1 /* Error */, "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: diag(2399, 1 /* Error */, "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399", "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."), + Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: diag(2400, 1 /* Error */, "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400", "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."), + 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: diag(2401, 1 /* Error */, "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: diag(2402, 1 /* Error */, "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402", "Expression resolves to '_super' that compiler uses to capture base class reference."), + Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: diag(2403, 1 /* Error */, "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403", "Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."), + The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: diag(2404, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404", "The left-hand side of a 'for...in' statement cannot use a type annotation."), + The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: diag(2405, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405", "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."), + The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access: diag(2406, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406", "The left-hand side of a 'for...in' statement must be a variable or a property access."), + The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0: diag(2407, 1 /* Error */, "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407", "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."), + Setters_cannot_return_a_value: diag(2408, 1 /* Error */, "Setters_cannot_return_a_value_2408", "Setters cannot return a value."), + Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: diag(2409, 1 /* Error */, "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409", "Return type of constructor signature must be assignable to the instance type of the class."), + The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any: diag(2410, 1 /* Error */, "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410", "The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."), + Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target: diag(2412, 1 /* Error */, "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: diag(2411, 1 /* Error */, "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: diag(2413, 1 /* Error */, "_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: diag(2414, 1 /* Error */, "Class_name_cannot_be_0_2414", "Class name cannot be '{0}'."), + Class_0_incorrectly_extends_base_class_1: diag(2415, 1 /* Error */, "Class_0_incorrectly_extends_base_class_1_2415", "Class '{0}' incorrectly extends base class '{1}'."), + Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2: diag(2416, 1 /* Error */, "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416", "Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."), + Class_static_side_0_incorrectly_extends_base_class_static_side_1: diag(2417, 1 /* Error */, "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417", "Class static side '{0}' incorrectly extends base class static side '{1}'."), + Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1: diag(2418, 1 /* Error */, "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418", "Type of computed property's value is '{0}', which is not assignable to type '{1}'."), + Types_of_construct_signatures_are_incompatible: diag(2419, 1 /* Error */, "Types_of_construct_signatures_are_incompatible_2419", "Types of construct signatures are incompatible."), + Class_0_incorrectly_implements_interface_1: diag(2420, 1 /* Error */, "Class_0_incorrectly_implements_interface_1_2420", "Class '{0}' incorrectly implements interface '{1}'."), + A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2422, 1 /* Error */, "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422", "A class can only implement an object type or intersection of object types with statically known members."), + Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: diag(2423, 1 /* Error */, "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423", "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."), + Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2425, 1 /* Error */, "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425", "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."), + Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2426, 1 /* Error */, "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426", "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."), + Interface_name_cannot_be_0: diag(2427, 1 /* Error */, "Interface_name_cannot_be_0_2427", "Interface name cannot be '{0}'."), + All_declarations_of_0_must_have_identical_type_parameters: diag(2428, 1 /* Error */, "All_declarations_of_0_must_have_identical_type_parameters_2428", "All declarations of '{0}' must have identical type parameters."), + Interface_0_incorrectly_extends_interface_1: diag(2430, 1 /* Error */, "Interface_0_incorrectly_extends_interface_1_2430", "Interface '{0}' incorrectly extends interface '{1}'."), + Enum_name_cannot_be_0: diag(2431, 1 /* Error */, "Enum_name_cannot_be_0_2431", "Enum name cannot be '{0}'."), + In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: diag(2432, 1 /* Error */, "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432", "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."), + A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: diag(2433, 1 /* Error */, "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433", "A namespace declaration cannot be in a different file from a class or function with which it is merged."), + A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: diag(2434, 1 /* Error */, "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434", "A namespace declaration cannot be located prior to a class or function with which it is merged."), + Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: diag(2435, 1 /* Error */, "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435", "Ambient modules cannot be nested in other modules or namespaces."), + Ambient_module_declaration_cannot_specify_relative_module_name: diag(2436, 1 /* Error */, "Ambient_module_declaration_cannot_specify_relative_module_name_2436", "Ambient module declaration cannot specify relative module name."), + Module_0_is_hidden_by_a_local_declaration_with_the_same_name: diag(2437, 1 /* Error */, "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437", "Module '{0}' is hidden by a local declaration with the same name."), + Import_name_cannot_be_0: diag(2438, 1 /* Error */, "Import_name_cannot_be_0_2438", "Import name cannot be '{0}'."), + Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name: diag(2439, 1 /* Error */, "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439", "Import or export declaration in an ambient module declaration cannot reference module through relative module name."), + Import_declaration_conflicts_with_local_declaration_of_0: diag(2440, 1 /* Error */, "Import_declaration_conflicts_with_local_declaration_of_0_2440", "Import declaration conflicts with local declaration of '{0}'."), + Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module: diag(2441, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."), + Types_have_separate_declarations_of_a_private_property_0: diag(2442, 1 /* Error */, "Types_have_separate_declarations_of_a_private_property_0_2442", "Types have separate declarations of a private property '{0}'."), + Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: diag(2443, 1 /* Error */, "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443", "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."), + Property_0_is_protected_in_type_1_but_public_in_type_2: diag(2444, 1 /* Error */, "Property_0_is_protected_in_type_1_but_public_in_type_2_2444", "Property '{0}' is protected in type '{1}' but public in type '{2}'."), + Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: diag(2445, 1 /* Error */, "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445", "Property '{0}' is protected and only accessible within class '{1}' and its subclasses."), + Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2: diag(2446, 1 /* Error */, "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: diag(2447, 1 /* Error */, "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447", "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."), + Block_scoped_variable_0_used_before_its_declaration: diag(2448, 1 /* Error */, "Block_scoped_variable_0_used_before_its_declaration_2448", "Block-scoped variable '{0}' used before its declaration."), + Class_0_used_before_its_declaration: diag(2449, 1 /* Error */, "Class_0_used_before_its_declaration_2449", "Class '{0}' used before its declaration."), + Enum_0_used_before_its_declaration: diag(2450, 1 /* Error */, "Enum_0_used_before_its_declaration_2450", "Enum '{0}' used before its declaration."), + Cannot_redeclare_block_scoped_variable_0: diag(2451, 1 /* Error */, "Cannot_redeclare_block_scoped_variable_0_2451", "Cannot redeclare block-scoped variable '{0}'."), + An_enum_member_cannot_have_a_numeric_name: diag(2452, 1 /* Error */, "An_enum_member_cannot_have_a_numeric_name_2452", "An enum member cannot have a numeric name."), + Variable_0_is_used_before_being_assigned: diag(2454, 1 /* Error */, "Variable_0_is_used_before_being_assigned_2454", "Variable '{0}' is used before being assigned."), + Type_alias_0_circularly_references_itself: diag(2456, 1 /* Error */, "Type_alias_0_circularly_references_itself_2456", "Type alias '{0}' circularly references itself."), + Type_alias_name_cannot_be_0: diag(2457, 1 /* Error */, "Type_alias_name_cannot_be_0_2457", "Type alias name cannot be '{0}'."), + An_AMD_module_cannot_have_multiple_name_assignments: diag(2458, 1 /* Error */, "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: diag(2459, 1 /* Error */, "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: diag(2460, 1 /* Error */, "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: diag(2461, 1 /* Error */, "Type_0_is_not_an_array_type_2461", "Type '{0}' is not an array type."), + A_rest_element_must_be_last_in_a_destructuring_pattern: diag(2462, 1 /* Error */, "A_rest_element_must_be_last_in_a_destructuring_pattern_2462", "A rest element must be last in a destructuring pattern."), + A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: diag(2463, 1 /* Error */, "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463", "A binding pattern parameter cannot be optional in an implementation signature."), + A_computed_property_name_must_be_of_type_string_number_symbol_or_any: diag(2464, 1 /* Error */, "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464", "A computed property name must be of type 'string', 'number', 'symbol', or 'any'."), + this_cannot_be_referenced_in_a_computed_property_name: diag(2465, 1 /* Error */, "this_cannot_be_referenced_in_a_computed_property_name_2465", "'this' cannot be referenced in a computed property name."), + super_cannot_be_referenced_in_a_computed_property_name: diag(2466, 1 /* Error */, "super_cannot_be_referenced_in_a_computed_property_name_2466", "'super' cannot be referenced in a computed property name."), + A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: diag(2467, 1 /* Error */, "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467", "A computed property name cannot reference a type parameter from its containing type."), + Cannot_find_global_value_0: diag(2468, 1 /* Error */, "Cannot_find_global_value_0_2468", "Cannot find global value '{0}'."), + The_0_operator_cannot_be_applied_to_type_symbol: diag(2469, 1 /* Error */, "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: diag(2472, 1 /* Error */, "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472", "Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."), + Enum_declarations_must_all_be_const_or_non_const: diag(2473, 1 /* Error */, "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: diag(2474, 1 /* Error */, "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: diag(2475, 1 /* Error */, "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475", "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."), + A_const_enum_member_can_only_be_accessed_using_a_string_literal: diag(2476, 1 /* Error */, "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476", "A const enum member can only be accessed using a string literal."), + const_enum_member_initializer_was_evaluated_to_a_non_finite_value: diag(2477, 1 /* Error */, "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477", "'const' enum member initializer was evaluated to a non-finite value."), + const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: diag(2478, 1 /* Error */, "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: diag(2480, 1 /* Error */, "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480", "'let' is not allowed to be used as a name in 'let' or 'const' declarations."), + Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: diag(2481, 1 /* Error */, "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481", "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."), + The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: diag(2483, 1 /* Error */, "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483", "The left-hand side of a 'for...of' statement cannot use a type annotation."), + Export_declaration_conflicts_with_exported_declaration_of_0: diag(2484, 1 /* Error */, "Export_declaration_conflicts_with_exported_declaration_of_0_2484", "Export declaration conflicts with exported declaration of '{0}'."), + The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access: diag(2487, 1 /* Error */, "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487", "The left-hand side of a 'for...of' statement must be a variable or a property access."), + Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2488, 1 /* Error */, "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488", "Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."), + An_iterator_must_have_a_next_method: diag(2489, 1 /* Error */, "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: diag(2490, 1 /* Error */, "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: diag(2491, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491", "The left-hand side of a 'for...in' statement cannot be a destructuring pattern."), + Cannot_redeclare_identifier_0_in_catch_clause: diag(2492, 1 /* Error */, "Cannot_redeclare_identifier_0_in_catch_clause_2492", "Cannot redeclare identifier '{0}' in catch clause."), + Tuple_type_0_of_length_1_has_no_element_at_index_2: diag(2493, 1 /* Error */, "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493", "Tuple type '{0}' of length '{1}' has no element at index '{2}'."), + Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: diag(2494, 1 /* Error */, "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494", "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."), + Type_0_is_not_an_array_type_or_a_string_type: diag(2495, 1 /* Error */, "Type_0_is_not_an_array_type_or_a_string_type_2495", "Type '{0}' is not an array type or a string type."), + The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression: diag(2496, 1 /* Error */, "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: diag(2497, 1 /* Error */, "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497", "This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."), + Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: diag(2498, 1 /* Error */, "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498", "Module '{0}' uses 'export =' and cannot be used with 'export *'."), + An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2499, 1 /* Error */, "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499", "An interface can only extend an identifier/qualified-name with optional type arguments."), + A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2500, 1 /* Error */, "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500", "A class can only implement an identifier/qualified-name with optional type arguments."), + A_rest_element_cannot_contain_a_binding_pattern: diag(2501, 1 /* Error */, "A_rest_element_cannot_contain_a_binding_pattern_2501", "A rest element cannot contain a binding pattern."), + _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: diag(2502, 1 /* Error */, "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502", "'{0}' is referenced directly or indirectly in its own type annotation."), + Cannot_find_namespace_0: diag(2503, 1 /* Error */, "Cannot_find_namespace_0_2503", "Cannot find namespace '{0}'."), + Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: diag(2504, 1 /* Error */, "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504", "Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."), + A_generator_cannot_have_a_void_type_annotation: diag(2505, 1 /* Error */, "A_generator_cannot_have_a_void_type_annotation_2505", "A generator cannot have a 'void' type annotation."), + _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: diag(2506, 1 /* Error */, "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506", "'{0}' is referenced directly or indirectly in its own base expression."), + Type_0_is_not_a_constructor_function_type: diag(2507, 1 /* Error */, "Type_0_is_not_a_constructor_function_type_2507", "Type '{0}' is not a constructor function type."), + No_base_constructor_has_the_specified_number_of_type_arguments: diag(2508, 1 /* Error */, "No_base_constructor_has_the_specified_number_of_type_arguments_2508", "No base constructor has the specified number of type arguments."), + Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2509, 1 /* Error */, "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509", "Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."), + Base_constructors_must_all_have_the_same_return_type: diag(2510, 1 /* Error */, "Base_constructors_must_all_have_the_same_return_type_2510", "Base constructors must all have the same return type."), + Cannot_create_an_instance_of_an_abstract_class: diag(2511, 1 /* Error */, "Cannot_create_an_instance_of_an_abstract_class_2511", "Cannot create an instance of an abstract class."), + Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."), + Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."), + A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "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: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."), + All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."), + Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."), + A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."), + An_async_iterator_must_have_a_next_method: diag(2519, 1 /* Error */, "An_async_iterator_must_have_a_next_method_2519", "An async iterator must have a 'next()' method."), + Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: diag(2520, 1 /* Error */, "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: diag(2522, 1 /* Error */, "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: diag(2523, 1 /* Error */, "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523", "'yield' expressions cannot be used in a parameter initializer."), + await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, 1 /* Error */, "await_expressions_cannot_be_used_in_a_parameter_initializer_2524", "'await' expressions cannot be used in a parameter initializer."), + Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: diag(2525, 1 /* Error */, "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525", "Initializer provides no value for this binding element and the binding element has no default value."), + A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface: diag(2526, 1 /* Error */, "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526", "A 'this' type is available only in a non-static member of a class or interface."), + The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: diag(2527, 1 /* Error */, "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527", "The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."), + A_module_cannot_have_multiple_default_exports: diag(2528, 1 /* Error */, "A_module_cannot_have_multiple_default_exports_2528", "A module cannot have multiple default exports."), + Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions: diag(2529, 1 /* Error */, "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529", "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."), + Property_0_is_incompatible_with_index_signature: diag(2530, 1 /* Error */, "Property_0_is_incompatible_with_index_signature_2530", "Property '{0}' is incompatible with index signature."), + Object_is_possibly_null: diag(2531, 1 /* Error */, "Object_is_possibly_null_2531", "Object is possibly 'null'."), + Object_is_possibly_undefined: diag(2532, 1 /* Error */, "Object_is_possibly_undefined_2532", "Object is possibly 'undefined'."), + Object_is_possibly_null_or_undefined: diag(2533, 1 /* Error */, "Object_is_possibly_null_or_undefined_2533", "Object is possibly 'null' or 'undefined'."), + A_function_returning_never_cannot_have_a_reachable_end_point: diag(2534, 1 /* Error */, "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: diag(2536, 1 /* Error */, "Type_0_cannot_be_used_to_index_type_1_2536", "Type '{0}' cannot be used to index type '{1}'."), + Type_0_has_no_matching_index_signature_for_type_1: diag(2537, 1 /* Error */, "Type_0_has_no_matching_index_signature_for_type_1_2537", "Type '{0}' has no matching index signature for type '{1}'."), + Type_0_cannot_be_used_as_an_index_type: diag(2538, 1 /* Error */, "Type_0_cannot_be_used_as_an_index_type_2538", "Type '{0}' cannot be used as an index type."), + Cannot_assign_to_0_because_it_is_not_a_variable: diag(2539, 1 /* Error */, "Cannot_assign_to_0_because_it_is_not_a_variable_2539", "Cannot assign to '{0}' because it is not a variable."), + Cannot_assign_to_0_because_it_is_a_read_only_property: diag(2540, 1 /* Error */, "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: diag(2542, 1 /* Error */, "Index_signature_in_type_0_only_permits_reading_2542", "Index signature in type '{0}' only permits reading."), + Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference: diag(2543, 1 /* Error */, "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543", "Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."), + Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference: diag(2544, 1 /* Error */, "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544", "Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."), + A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any: diag(2545, 1 /* Error */, "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545", "A mixin class must have a constructor with a single rest parameter of type 'any[]'."), + The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: diag(2547, 1 /* Error */, "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: diag(2548, 1 /* Error */, "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548", "Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."), + Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2549, 1 /* Error */, "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549", "Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."), + Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later: diag(2550, 1 /* Error */, "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: diag(2551, 1 /* Error */, "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551", "Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"), + Cannot_find_name_0_Did_you_mean_1: diag(2552, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_1_2552", "Cannot find name '{0}'. Did you mean '{1}'?"), + Computed_values_are_not_permitted_in_an_enum_with_string_valued_members: diag(2553, 1 /* Error */, "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553", "Computed values are not permitted in an enum with string valued members."), + Expected_0_arguments_but_got_1: diag(2554, 1 /* Error */, "Expected_0_arguments_but_got_1_2554", "Expected {0} arguments, but got {1}."), + Expected_at_least_0_arguments_but_got_1: diag(2555, 1 /* Error */, "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: diag(2556, 1 /* Error */, "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: diag(2558, 1 /* Error */, "Expected_0_type_arguments_but_got_1_2558", "Expected {0} type arguments, but got {1}."), + Type_0_has_no_properties_in_common_with_type_1: diag(2559, 1 /* Error */, "Type_0_has_no_properties_in_common_with_type_1_2559", "Type '{0}' has no properties in common with type '{1}'."), + Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it: diag(2560, 1 /* Error */, "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560", "Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"), + Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2: diag(2561, 1 /* Error */, "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561", "Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"), + Base_class_expressions_cannot_reference_class_type_parameters: diag(2562, 1 /* Error */, "Base_class_expressions_cannot_reference_class_type_parameters_2562", "Base class expressions cannot reference class type parameters."), + The_containing_function_or_module_body_is_too_large_for_control_flow_analysis: diag(2563, 1 /* Error */, "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563", "The containing function or module body is too large for control flow analysis."), + Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor: diag(2564, 1 /* Error */, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564", "Property '{0}' has no initializer and is not definitely assigned in the constructor."), + Property_0_is_used_before_being_assigned: diag(2565, 1 /* Error */, "Property_0_is_used_before_being_assigned_2565", "Property '{0}' is used before being assigned."), + A_rest_element_cannot_have_a_property_name: diag(2566, 1 /* Error */, "A_rest_element_cannot_have_a_property_name_2566", "A rest element cannot have a property name."), + Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: diag(2567, 1 /* Error */, "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: diag(2568, 1 /* Error */, "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: diag(2570, 1 /* Error */, "Could_not_find_name_0_Did_you_mean_1_2570", "Could not find name '{0}'. Did you mean '{1}'?"), + Object_is_of_type_unknown: diag(2571, 1 /* Error */, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."), + A_rest_element_type_must_be_an_array_type: diag(2574, 1 /* Error */, "A_rest_element_type_must_be_an_array_type_2574", "A rest element type must be an array type."), + No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments: diag(2575, 1 /* Error */, "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575", "No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."), + Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead: diag(2576, 1 /* Error */, "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: diag(2577, 1 /* Error */, "Return_type_annotation_circularly_references_itself_2577", "Return type annotation circularly references itself."), + Unused_ts_expect_error_directive: diag(2578, 1 /* Error */, "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: diag(2580, 1 /* Error */, "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: diag(2581, 1 /* Error */, "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: diag(2582, 1 /* Error */, "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: diag(2583, 1 /* Error */, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."), + Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom: diag(2584, 1 /* Error */, "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584", "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."), + _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: diag(2585, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585", "'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."), + Cannot_assign_to_0_because_it_is_a_constant: diag(2588, 1 /* Error */, "Cannot_assign_to_0_because_it_is_a_constant_2588", "Cannot assign to '{0}' because it is a constant."), + Type_instantiation_is_excessively_deep_and_possibly_infinite: diag(2589, 1 /* Error */, "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589", "Type instantiation is excessively deep and possibly infinite."), + Expression_produces_a_union_type_that_is_too_complex_to_represent: diag(2590, 1 /* Error */, "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590", "Expression produces a union type that is too complex to represent."), + Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: diag(2591, 1 /* Error */, "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: diag(2592, 1 /* Error */, "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: diag(2593, 1 /* Error */, "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: diag(2594, 1 /* Error */, "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: diag(2595, 1 /* Error */, "_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: diag(2596, 1 /* Error */, "_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: diag(2597, 1 /* Error */, "_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: diag(2598, 1 /* Error */, "_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: diag(2602, 1 /* Error */, "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602", "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."), + Property_0_in_type_1_is_not_assignable_to_type_2: diag(2603, 1 /* Error */, "Property_0_in_type_1_is_not_assignable_to_type_2_2603", "Property '{0}' in type '{1}' is not assignable to type '{2}'."), + JSX_element_type_0_does_not_have_any_construct_or_call_signatures: diag(2604, 1 /* Error */, "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604", "JSX element type '{0}' does not have any construct or call signatures."), + Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property: diag(2606, 1 /* Error */, "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606", "Property '{0}' of JSX spread attribute is not assignable to target property."), + JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: diag(2607, 1 /* Error */, "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607", "JSX element class does not support attributes because it does not have a '{0}' property."), + The_global_type_JSX_0_may_not_have_more_than_one_property: diag(2608, 1 /* Error */, "The_global_type_JSX_0_may_not_have_more_than_one_property_2608", "The global type 'JSX.{0}' may not have more than one property."), + JSX_spread_child_must_be_an_array_type: diag(2609, 1 /* Error */, "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: diag(2610, 1 /* Error */, "_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: diag(2611, 1 /* Error */, "_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: diag(2612, 1 /* Error */, "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: diag(2613, 1 /* Error */, "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: diag(2614, 1 /* Error */, "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: diag(2615, 1 /* Error */, "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: diag(2616, 1 /* Error */, "_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: diag(2617, 1 /* Error */, "_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: diag(2618, 1 /* Error */, "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: diag(2619, 1 /* Error */, "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: diag(2620, 1 /* Error */, "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: diag(2621, 1 /* Error */, "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: diag(2623, 1 /* Error */, "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: diag(2624, 1 /* Error */, "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: diag(2625, 1 /* Error */, "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: diag(2626, 1 /* Error */, "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: diag(2627, 1 /* Error */, "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: diag(2628, 1 /* Error */, "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: diag(2629, 1 /* Error */, "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: diag(2630, 1 /* Error */, "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: diag(2631, 1 /* Error */, "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: diag(2632, 1 /* Error */, "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: diag(2633, 1 /* Error */, "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633", "JSX property access expressions cannot include JSX namespace names"), + _0_index_signatures_are_incompatible: diag(2634, 1 /* Error */, "_0_index_signatures_are_incompatible_2634", "'{0}' index signatures are incompatible."), + Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable: diag(2635, 1 /* Error */, "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: diag(2636, 1 /* Error */, "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: diag(2637, 1 /* Error */, "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: diag(2638, 1 /* Error */, "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: diag(2639, 1 /* Error */, "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: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."), + Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "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: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."), + Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."), + Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."), + Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "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: diag(2655, 1 /* Error */, "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: diag(2656, 1 /* Error */, "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: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."), + Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."), + super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."), + super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions: diag(2660, 1 /* Error */, "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660", "'super' can only be referenced in members of derived classes or object literal expressions."), + Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: diag(2661, 1 /* Error */, "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661", "Cannot export '{0}'. Only local declarations can be exported from a module."), + Cannot_find_name_0_Did_you_mean_the_static_member_1_0: diag(2662, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662", "Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"), + Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: diag(2663, 1 /* Error */, "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663", "Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"), + Invalid_module_name_in_augmentation_module_0_cannot_be_found: diag(2664, 1 /* Error */, "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664", "Invalid module name in augmentation, module '{0}' cannot be found."), + Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented: diag(2665, 1 /* Error */, "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665", "Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."), + Exports_and_export_assignments_are_not_permitted_in_module_augmentations: diag(2666, 1 /* Error */, "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666", "Exports and export assignments are not permitted in module augmentations."), + Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module: diag(2667, 1 /* Error */, "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667", "Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."), + export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible: diag(2668, 1 /* Error */, "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668", "'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."), + Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations: diag(2669, 1 /* Error */, "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669", "Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."), + Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context: diag(2670, 1 /* Error */, "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670", "Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."), + Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: diag(2671, 1 /* Error */, "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671", "Cannot augment module '{0}' because it resolves to a non-module entity."), + Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: diag(2672, 1 /* Error */, "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672", "Cannot assign a '{0}' constructor type to a '{1}' constructor type."), + Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration: diag(2673, 1 /* Error */, "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673", "Constructor of class '{0}' is private and only accessible within the class declaration."), + Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration: diag(2674, 1 /* Error */, "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674", "Constructor of class '{0}' is protected and only accessible within the class declaration."), + Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: diag(2675, 1 /* Error */, "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675", "Cannot extend a class '{0}'. Class constructor is marked as private."), + Accessors_must_both_be_abstract_or_non_abstract: diag(2676, 1 /* Error */, "Accessors_must_both_be_abstract_or_non_abstract_2676", "Accessors must both be abstract or non-abstract."), + A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: diag(2677, 1 /* Error */, "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677", "A type predicate's type must be assignable to its parameter's type."), + Type_0_is_not_comparable_to_type_1: diag(2678, 1 /* Error */, "Type_0_is_not_comparable_to_type_1_2678", "Type '{0}' is not comparable to type '{1}'."), + A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void: diag(2679, 1 /* Error */, "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679", "A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."), + A_0_parameter_must_be_the_first_parameter: diag(2680, 1 /* Error */, "A_0_parameter_must_be_the_first_parameter_2680", "A '{0}' parameter must be the first parameter."), + A_constructor_cannot_have_a_this_parameter: diag(2681, 1 /* Error */, "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: diag(2683, 1 /* Error */, "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683", "'this' implicitly has type 'any' because it does not have a type annotation."), + The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1: diag(2684, 1 /* Error */, "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684", "The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."), + The_this_types_of_each_signature_are_incompatible: diag(2685, 1 /* Error */, "The_this_types_of_each_signature_are_incompatible_2685", "The 'this' types of each signature are incompatible."), + _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead: diag(2686, 1 /* Error */, "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686", "'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."), + All_declarations_of_0_must_have_identical_modifiers: diag(2687, 1 /* Error */, "All_declarations_of_0_must_have_identical_modifiers_2687", "All declarations of '{0}' must have identical modifiers."), + Cannot_find_type_definition_file_for_0: diag(2688, 1 /* Error */, "Cannot_find_type_definition_file_for_0_2688", "Cannot find type definition file for '{0}'."), + Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, 1 /* Error */, "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: diag(2690, 1 /* Error */, "_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: diag(2692, 1 /* Error */, "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692", "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."), + _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693", "'{0}' only refers to a type, but is being used as a value here."), + Namespace_0_has_no_exported_member_1: diag(2694, 1 /* Error */, "Namespace_0_has_no_exported_member_1_2694", "Namespace '{0}' has no exported member '{1}'."), + Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag( + 2695, + 1 /* Error */, + "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695", + "Left side of comma operator is unused and has no side effects.", + /*reportsUnnecessary*/ + true + ), + The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: diag(2696, 1 /* Error */, "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696", "The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"), + An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2697, 1 /* Error */, "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697", "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), + Spread_types_may_only_be_created_from_object_types: diag(2698, 1 /* Error */, "Spread_types_may_only_be_created_from_object_types_2698", "Spread types may only be created from object types."), + Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, 1 /* Error */, "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699", "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."), + Rest_types_may_only_be_created_from_object_types: diag(2700, 1 /* Error */, "Rest_types_may_only_be_created_from_object_types_2700", "Rest types may only be created from object types."), + The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, 1 /* Error */, "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701", "The target of an object rest assignment must be a variable or a property access."), + _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."), + The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."), + The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1 /* Error */, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."), + An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1 /* Error */, "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: diag(2706, 1 /* Error */, "Required_type_parameters_may_not_follow_optional_type_parameters_2706", "Required type parameters may not follow optional type parameters."), + Generic_type_0_requires_between_1_and_2_type_arguments: diag(2707, 1 /* Error */, "Generic_type_0_requires_between_1_and_2_type_arguments_2707", "Generic type '{0}' requires between {1} and {2} type arguments."), + Cannot_use_namespace_0_as_a_value: diag(2708, 1 /* Error */, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."), + Cannot_use_namespace_0_as_a_type: diag(2709, 1 /* Error */, "Cannot_use_namespace_0_as_a_type_2709", "Cannot use namespace '{0}' as a type."), + _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: diag(2710, 1 /* Error */, "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710", "'{0}' are specified twice. The attribute named '{0}' will be overwritten."), + A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2711, 1 /* Error */, "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711", "A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."), + A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2712, 1 /* Error */, "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: diag(2713, 1 /* Error */, "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713", `Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`), + The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: diag(2714, 1 /* Error */, "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714", "The expression of an export assignment must be an identifier or qualified name in an ambient context."), + Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: diag(2715, 1 /* Error */, "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715", "Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."), + Type_parameter_0_has_a_circular_default: diag(2716, 1 /* Error */, "Type_parameter_0_has_a_circular_default_2716", "Type parameter '{0}' has a circular default."), + Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2: diag(2717, 1 /* Error */, "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717", "Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."), + Duplicate_property_0: diag(2718, 1 /* Error */, "Duplicate_property_0_2718", "Duplicate property '{0}'."), + Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: diag(2719, 1 /* Error */, "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719", "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."), + Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass: diag(2720, 1 /* Error */, "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720", "Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"), + Cannot_invoke_an_object_which_is_possibly_null: diag(2721, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_null_2721", "Cannot invoke an object which is possibly 'null'."), + Cannot_invoke_an_object_which_is_possibly_undefined: diag(2722, 1 /* Error */, "Cannot_invoke_an_object_which_is_possibly_undefined_2722", "Cannot invoke an object which is possibly 'undefined'."), + Cannot_invoke_an_object_which_is_possibly_null_or_undefined: diag(2723, 1 /* Error */, "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: diag(2724, 1 /* Error */, "_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: diag(2725, 1 /* Error */, "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 with module {0}."), + Cannot_find_lib_definition_for_0: diag(2726, 1 /* Error */, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."), + Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, 1 /* Error */, "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727", "Cannot find lib definition for '{0}'. Did you mean '{1}'?"), + _0_is_declared_here: diag(2728, 3 /* Message */, "_0_is_declared_here_2728", "'{0}' is declared here."), + Property_0_is_used_before_its_initialization: diag(2729, 1 /* Error */, "Property_0_is_used_before_its_initialization_2729", "Property '{0}' is used before its initialization."), + An_arrow_function_cannot_have_a_this_parameter: diag(2730, 1 /* Error */, "An_arrow_function_cannot_have_a_this_parameter_2730", "An arrow function cannot have a 'this' parameter."), + Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, 1 /* Error */, "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731", "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."), + Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, 1 /* Error */, "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732", "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."), + Property_0_was_also_declared_here: diag(2733, 1 /* Error */, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."), + Are_you_missing_a_semicolon: diag(2734, 1 /* Error */, "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: diag(2735, 1 /* Error */, "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735", "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"), + Operator_0_cannot_be_applied_to_type_1: diag(2736, 1 /* Error */, "Operator_0_cannot_be_applied_to_type_1_2736", "Operator '{0}' cannot be applied to type '{1}'."), + BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: diag(2737, 1 /* Error */, "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: diag(2738, 3 /* Message */, "An_outer_value_of_this_is_shadowed_by_this_container_2738", "An outer value of 'this' is shadowed by this container."), + Type_0_is_missing_the_following_properties_from_type_1_Colon_2: diag(2739, 1 /* Error */, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739", "Type '{0}' is missing the following properties from type '{1}': {2}"), + Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more: diag(2740, 1 /* Error */, "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740", "Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."), + Property_0_is_missing_in_type_1_but_required_in_type_2: diag(2741, 1 /* Error */, "Property_0_is_missing_in_type_1_but_required_in_type_2_2741", "Property '{0}' is missing in type '{1}' but required in type '{2}'."), + The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2742, 1 /* Error */, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742", "The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."), + No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments: diag(2743, 1 /* Error */, "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743", "No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."), + Type_parameter_defaults_can_only_reference_previously_declared_type_parameters: diag(2744, 1 /* Error */, "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744", "Type parameter defaults can only reference previously declared type parameters."), + This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided: diag(2745, 1 /* Error */, "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745", "This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."), + This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided: diag(2746, 1 /* Error */, "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746", "This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."), + _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, 1 /* Error */, "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747", "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."), + Cannot_access_ambient_const_enums_when_0_is_enabled: diag(2748, 1 /* Error */, "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: diag(2749, 1 /* Error */, "_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: diag(2750, 1 /* Error */, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."), + Circularity_originates_in_type_at_this_location: diag(2751, 1 /* Error */, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."), + The_first_export_default_is_here: diag(2752, 1 /* Error */, "The_first_export_default_is_here_2752", "The first export default is here."), + Another_export_default_is_here: diag(2753, 1 /* Error */, "Another_export_default_is_here_2753", "Another export default is here."), + super_may_not_use_type_arguments: diag(2754, 1 /* Error */, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."), + No_constituent_of_type_0_is_callable: diag(2755, 1 /* Error */, "No_constituent_of_type_0_is_callable_2755", "No constituent of type '{0}' is callable."), + Not_all_constituents_of_type_0_are_callable: diag(2756, 1 /* Error */, "Not_all_constituents_of_type_0_are_callable_2756", "Not all constituents of type '{0}' are callable."), + Type_0_has_no_call_signatures: diag(2757, 1 /* Error */, "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: diag(2758, 1 /* Error */, "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: diag(2759, 1 /* Error */, "No_constituent_of_type_0_is_constructable_2759", "No constituent of type '{0}' is constructable."), + Not_all_constituents_of_type_0_are_constructable: diag(2760, 1 /* Error */, "Not_all_constituents_of_type_0_are_constructable_2760", "Not all constituents of type '{0}' are constructable."), + Type_0_has_no_construct_signatures: diag(2761, 1 /* Error */, "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: diag(2762, 1 /* Error */, "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: diag(2763, 1 /* Error */, "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: diag(2764, 1 /* Error */, "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: diag(2765, 1 /* Error */, "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: diag(2766, 1 /* Error */, "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: diag(2767, 1 /* Error */, "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: diag(2768, 1 /* Error */, "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: diag(2769, 1 /* Error */, "No_overload_matches_this_call_2769", "No overload matches this call."), + The_last_overload_gave_the_following_error: diag(2770, 1 /* Error */, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."), + The_last_overload_is_declared_here: diag(2771, 1 /* Error */, "The_last_overload_is_declared_here_2771", "The last overload is declared here."), + Overload_0_of_1_2_gave_the_following_error: diag(2772, 1 /* Error */, "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: diag(2773, 1 /* Error */, "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: diag(2774, 1 /* Error */, "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: diag(2775, 1 /* Error */, "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: diag(2776, 1 /* Error */, "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: diag(2777, 1 /* Error */, "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: diag(2778, 1 /* Error */, "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: diag(2779, 1 /* Error */, "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: diag(2780, 1 /* Error */, "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: diag(2781, 1 /* Error */, "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: diag(2782, 3 /* Message */, "_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: diag(2783, 1 /* Error */, "_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: diag(2784, 1 /* Error */, "get_and_set_accessors_cannot_declare_this_parameters_2784", "'get' and 'set' accessors cannot declare 'this' parameters."), + This_spread_always_overwrites_this_property: diag(2785, 1 /* Error */, "This_spread_always_overwrites_this_property_2785", "This spread always overwrites this property."), + _0_cannot_be_used_as_a_JSX_component: diag(2786, 1 /* Error */, "_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: diag(2787, 1 /* Error */, "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: diag(2788, 1 /* Error */, "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: diag(2789, 1 /* Error */, "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: diag(2790, 1 /* Error */, "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: diag(2791, 1 /* Error */, "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: diag(2792, 1 /* Error */, "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: diag(2793, 1 /* Error */, "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: diag(2794, 1 /* Error */, "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: diag(2795, 1 /* Error */, "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: diag(2796, 1 /* Error */, "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: diag(2797, 1 /* Error */, "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: diag(2798, 1 /* Error */, "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: diag(2799, 1 /* Error */, "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: diag(2800, 1 /* Error */, "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: diag(2801, 1 /* Error */, "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: diag(2802, 1 /* Error */, "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: diag(2803, 1 /* Error */, "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: diag(2804, 1 /* Error */, "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: diag(2806, 1 /* Error */, "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: diag(2807, 1 /* Error */, "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: diag(2808, 1 /* Error */, "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: diag(2809, 1 /* Error */, "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: diag(2810, 1 /* Error */, "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: diag(2811, 1 /* Error */, "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: diag(2812, 1 /* Error */, "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: diag(2813, 1 /* Error */, "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: diag(2814, 1 /* Error */, "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: diag(2815, 1 /* Error */, "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: diag(2816, 1 /* Error */, "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: diag(2817, 1 /* Error */, "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: diag(2818, 1 /* Error */, "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: diag(2819, 1 /* Error */, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."), + Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1 /* Error */, "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: diag(2821, 1 /* Error */, "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: diag(2822, 1 /* Error */, "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: diag(2823, 1 /* Error */, "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: diag(2833, 1 /* Error */, "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: diag(2834, 1 /* Error */, "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: diag(2835, 1 /* Error */, "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: diag(2836, 1 /* Error */, "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: diag(2837, 1 /* Error */, "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: diag(2838, 1 /* Error */, "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: diag(2839, 1 /* Error */, "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: diag(2840, 1 /* Error */, "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: diag(2842, 1 /* Error */, "_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: diag(2843, 1 /* Error */, "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: diag(2844, 1 /* Error */, "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: diag(2845, 1 /* Error */, "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: diag(2846, 1 /* Error */, "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: diag(2848, 1 /* Error */, "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: diag(2849, 1 /* Error */, "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: diag(2850, 1 /* Error */, "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: diag(2851, 1 /* Error */, "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: diag(2852, 1 /* Error */, "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: diag(2853, 1 /* Error */, "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: diag(2854, 1 /* Error */, "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: diag(2855, 1 /* Error */, "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: diag(2856, 1 /* Error */, "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: diag(2857, 1 /* Error */, "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: diag(2858, 1 /* Error */, "Import_attribute_values_must_be_string_literal_expressions_2858", "Import attribute values must be string literal expressions."), + Excessive_complexity_comparing_types_0_and_1: diag(2859, 1 /* Error */, "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: diag(2860, 1 /* Error */, "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: diag(2861, 1 /* Error */, "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: diag(2862, 1 /* Error */, "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: diag(2863, 1 /* Error */, "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: diag(2864, 1 /* Error */, "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: diag(2865, 1 /* Error */, "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: diag(2866, 1 /* Error */, "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: diag(2867, 1 /* Error */, "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: diag(2868, 1 /* Error */, "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: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), + Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), + Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), + Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4006, 1 /* Error */, "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006", "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4008, 1 /* Error */, "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008", "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4010, 1 /* Error */, "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010", "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."), + Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4012, 1 /* Error */, "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012", "Type parameter '{0}' of public method from exported class has or is using private name '{1}'."), + Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4014, 1 /* Error */, "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014", "Type parameter '{0}' of method from exported interface has or is using private name '{1}'."), + Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4016, 1 /* Error */, "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016", "Type parameter '{0}' of exported function has or is using private name '{1}'."), + Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4019, 1 /* Error */, "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019", "Implements clause of exported class '{0}' has or is using private name '{1}'."), + extends_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4020, 1 /* Error */, "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020", "'extends' clause of exported class '{0}' has or is using private name '{1}'."), + extends_clause_of_exported_class_has_or_is_using_private_name_0: diag(4021, 1 /* Error */, "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: diag(4022, 1 /* Error */, "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022", "'extends' clause of exported interface '{0}' has or is using private name '{1}'."), + Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4023, 1 /* Error */, "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023", "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."), + Exported_variable_0_has_or_is_using_name_1_from_private_module_2: diag(4024, 1 /* Error */, "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024", "Exported variable '{0}' has or is using name '{1}' from private module '{2}'."), + Exported_variable_0_has_or_is_using_private_name_1: diag(4025, 1 /* Error */, "Exported_variable_0_has_or_is_using_private_name_1_4025", "Exported variable '{0}' has or is using private name '{1}'."), + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4026, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026", "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4027, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027", "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4028, 1 /* Error */, "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028", "Public static property '{0}' of exported class has or is using private name '{1}'."), + Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4029, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029", "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4030, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030", "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4031, 1 /* Error */, "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031", "Public property '{0}' of exported class has or is using private name '{1}'."), + Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4032, 1 /* Error */, "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032", "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), + Property_0_of_exported_interface_has_or_is_using_private_name_1: diag(4033, 1 /* Error */, "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033", "Property '{0}' of exported interface has or is using private name '{1}'."), + Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4034, 1 /* Error */, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034", "Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4035, 1 /* Error */, "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035", "Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."), + Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4036, 1 /* Error */, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036", "Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4037, 1 /* Error */, "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037", "Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4038, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4039, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039", "Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4040, 1 /* Error */, "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040", "Return type of public static getter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4041, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041", "Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4042, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042", "Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."), + Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4043, 1 /* Error */, "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043", "Return type of public getter '{0}' from exported class has or is using private name '{1}'."), + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4044, 1 /* Error */, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044", "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4045, 1 /* Error */, "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045", "Return type of constructor signature from exported interface has or is using private name '{0}'."), + Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4046, 1 /* Error */, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046", "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4047, 1 /* Error */, "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047", "Return type of call signature from exported interface has or is using private name '{0}'."), + Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4048, 1 /* Error */, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048", "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4049, 1 /* Error */, "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049", "Return type of index signature from exported interface has or is using private name '{0}'."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4050, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050", "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4051, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051", "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."), + Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: diag(4052, 1 /* Error */, "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052", "Return type of public static method from exported class has or is using private name '{0}'."), + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4053, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053", "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4054, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054", "Return type of public method from exported class has or is using name '{0}' from private module '{1}'."), + Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: diag(4055, 1 /* Error */, "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055", "Return type of public method from exported class has or is using private name '{0}'."), + Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4056, 1 /* Error */, "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056", "Return type of method from exported interface has or is using name '{0}' from private module '{1}'."), + Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: diag(4057, 1 /* Error */, "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057", "Return type of method from exported interface has or is using private name '{0}'."), + Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4058, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058", "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."), + Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: diag(4059, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059", "Return type of exported function has or is using name '{0}' from private module '{1}'."), + Return_type_of_exported_function_has_or_is_using_private_name_0: diag(4060, 1 /* Error */, "Return_type_of_exported_function_has_or_is_using_private_name_0_4060", "Return type of exported function has or is using private name '{0}'."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4061, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4062, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062", "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: diag(4063, 1 /* Error */, "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063", "Parameter '{0}' of constructor from exported class has or is using private name '{1}'."), + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4064, 1 /* Error */, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064", "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4065, 1 /* Error */, "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065", "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."), + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4066, 1 /* Error */, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066", "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4067, 1 /* Error */, "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067", "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4068, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4069, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069", "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4070, 1 /* Error */, "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070", "Parameter '{0}' of public static method from exported class has or is using private name '{1}'."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4071, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071", "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4072, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072", "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4073, 1 /* Error */, "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073", "Parameter '{0}' of public method from exported class has or is using private name '{1}'."), + Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4074, 1 /* Error */, "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074", "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4075, 1 /* Error */, "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075", "Parameter '{0}' of method from exported interface has or is using private name '{1}'."), + Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4076, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076", "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."), + Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: diag(4077, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077", "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4078, 1 /* Error */, "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078", "Parameter '{0}' of exported function has or is using private name '{1}'."), + Exported_type_alias_0_has_or_is_using_private_name_1: diag(4081, 1 /* Error */, "Exported_type_alias_0_has_or_is_using_private_name_1_4081", "Exported type alias '{0}' has or is using private name '{1}'."), + Default_export_of_the_module_has_or_is_using_private_name_0: diag(4082, 1 /* Error */, "Default_export_of_the_module_has_or_is_using_private_name_0_4082", "Default export of the module has or is using private name '{0}'."), + Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: diag(4083, 1 /* Error */, "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", "Type parameter '{0}' of exported type alias has or is using private name '{1}'."), + Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: diag(4084, 1 /* Error */, "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: diag(4085, 1 /* Error */, "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: diag(4091, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091", "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."), + Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092", "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."), + Property_0_of_exported_class_expression_may_not_be_private_or_protected: diag(4094, 1 /* Error */, "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094", "Property '{0}' of exported class expression may not be private or protected."), + Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4095, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095", "Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4096, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096", "Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4097, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097", "Public static method '{0}' of exported class has or is using private name '{1}'."), + Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4098, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098", "Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), + Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4099, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099", "Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), + Public_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4100, 1 /* Error */, "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100", "Public method '{0}' of exported class has or is using private name '{1}'."), + Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4101, 1 /* Error */, "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101", "Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."), + Method_0_of_exported_interface_has_or_is_using_private_name_1: diag(4102, 1 /* Error */, "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102", "Method '{0}' of exported interface has or is using private name '{1}'."), + Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1: diag(4103, 1 /* Error */, "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103", "Type parameter '{0}' of exported mapped object type is using private name '{1}'."), + The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: diag(4104, 1 /* Error */, "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: diag(4105, 1 /* Error */, "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: diag(4106, 1 /* Error */, "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: diag(4107, 1 /* Error */, "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: diag(4108, 1 /* Error */, "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: diag(4109, 1 /* Error */, "Type_arguments_for_0_circularly_reference_themselves_4109", "Type arguments for '{0}' circularly reference themselves."), + Tuple_type_arguments_circularly_reference_themselves: diag(4110, 1 /* Error */, "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: diag(4111, 1 /* Error */, "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: diag(4112, 1 /* Error */, "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: diag(4113, 1 /* Error */, "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: diag(4114, 1 /* Error */, "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: diag(4115, 1 /* Error */, "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: diag(4116, 1 /* Error */, "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: diag(4117, 1 /* Error */, "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: diag(4118, 1 /* Error */, "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: diag(4119, 1 /* Error */, "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: diag(4120, 1 /* Error */, "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: diag(4121, 1 /* Error */, "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: diag(4122, 1 /* Error */, "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: diag(4123, 1 /* Error */, "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: diag(4124, 1 /* Error */, "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: diag(4125, 1 /* Error */, "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: diag(4126, 1 /* Error */, "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: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."), + Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."), + File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."), + Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), + Failed_to_parse_file_0_Colon_1: diag(5014, 1 /* Error */, "Failed_to_parse_file_0_Colon_1_5014", "Failed to parse file '{0}': {1}."), + Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), + Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "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: diag(5025, 1 /* Error */, "Unknown_compiler_option_0_Did_you_mean_1_5025", "Unknown compiler option '{0}'. Did you mean '{1}'?"), + Could_not_write_file_0_Colon_1: diag(5033, 1 /* Error */, "Could_not_write_file_0_Colon_1_5033", "Could not write file '{0}': {1}."), + Option_project_cannot_be_mixed_with_source_files_on_a_command_line: diag(5042, 1 /* Error */, "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042", "Option 'project' cannot be mixed with source files on a command line."), + Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: diag(5047, 1 /* Error */, "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047", "Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."), + Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: diag(5051, 1 /* Error */, "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051", "Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."), + Option_0_cannot_be_specified_without_specifying_option_1: diag(5052, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_5052", "Option '{0}' cannot be specified without specifying option '{1}'."), + Option_0_cannot_be_specified_with_option_1: diag(5053, 1 /* Error */, "Option_0_cannot_be_specified_with_option_1_5053", "Option '{0}' cannot be specified with option '{1}'."), + A_tsconfig_json_file_is_already_defined_at_Colon_0: diag(5054, 1 /* Error */, "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054", "A 'tsconfig.json' file is already defined at: '{0}'."), + Cannot_write_file_0_because_it_would_overwrite_input_file: diag(5055, 1 /* Error */, "Cannot_write_file_0_because_it_would_overwrite_input_file_5055", "Cannot write file '{0}' because it would overwrite input file."), + Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files: diag(5056, 1 /* Error */, "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056", "Cannot write file '{0}' because it would be overwritten by multiple input files."), + Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: diag(5057, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057", "Cannot find a tsconfig.json file at the specified directory: '{0}'."), + The_specified_path_does_not_exist_Colon_0: diag(5058, 1 /* Error */, "The_specified_path_does_not_exist_Colon_0_5058", "The specified path does not exist: '{0}'."), + Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: diag(5059, 1 /* Error */, "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: diag(5061, 1 /* Error */, "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: diag(5062, 1 /* Error */, "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: diag(5063, 1 /* Error */, "Substitutions_for_pattern_0_should_be_an_array_5063", "Substitutions for pattern '{0}' should be an array."), + Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: diag(5064, 1 /* Error */, "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064", "Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."), + File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5065, 1 /* Error */, "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065", "File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."), + Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: diag(5066, 1 /* Error */, "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066", "Substitutions for pattern '{0}' shouldn't be an empty array."), + Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(5067, 1 /* Error */, "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067", "Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."), + Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: diag(5068, 1 /* Error */, "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068", "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."), + Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: diag(5069, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069", "Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."), + Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic: diag(5070, 1 /* Error */, "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: diag(5071, 1 /* Error */, "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: diag(5072, 1 /* Error */, "Unknown_build_option_0_5072", "Unknown build option '{0}'."), + Build_option_0_requires_a_value_of_type_1: diag(5073, 1 /* Error */, "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: diag(5074, 1 /* Error */, "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: diag(5075, 1 /* Error */, "_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: diag(5076, 1 /* Error */, "_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: diag(5077, 1 /* Error */, "Unknown_build_option_0_Did_you_mean_1_5077", "Unknown build option '{0}'. Did you mean '{1}'?"), + Unknown_watch_option_0: diag(5078, 1 /* Error */, "Unknown_watch_option_0_5078", "Unknown watch option '{0}'."), + Unknown_watch_option_0_Did_you_mean_1: diag(5079, 1 /* Error */, "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: diag(5080, 1 /* Error */, "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: diag(5081, 1 /* Error */, "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: diag(5082, 1 /* Error */, "_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: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."), + A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "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: diag(5086, 1 /* Error */, "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: diag(5087, 1 /* Error */, "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: diag(5088, 1 /* Error */, "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: diag(5089, 1 /* Error */, "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: diag(5090, 1 /* Error */, "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: diag(5091, 1 /* Error */, "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: diag(5092, 1 /* Error */, "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: diag(5093, 1 /* Error */, "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: diag(5094, 1 /* Error */, "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: diag(5095, 1 /* Error */, "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: diag(5096, 1 /* Error */, "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: diag(5097, 1 /* Error */, "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: diag(5098, 1 /* Error */, "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: diag(5101, 1 /* Error */, "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: diag(5102, 1 /* Error */, "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: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."), + Option_0_is_redundant_and_cannot_be_specified_with_option_1: diag(5104, 1 /* Error */, "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: diag(5105, 1 /* Error */, "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: diag(5106, 3 /* Message */, "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: diag(5107, 1 /* Error */, "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: diag(5108, 1 /* Error */, "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: diag(5109, 1 /* Error */, "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: diag(5110, 1 /* Error */, "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: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."), + Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."), + Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."), + Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: diag(6004, 3 /* Message */, "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004", "Specify the location where debugger should locate TypeScript files instead of source locations."), + Watch_input_files: diag(6005, 3 /* Message */, "Watch_input_files_6005", "Watch input files."), + Redirect_output_structure_to_the_directory: diag(6006, 3 /* Message */, "Redirect_output_structure_to_the_directory_6006", "Redirect output structure to the directory."), + Do_not_erase_const_enum_declarations_in_generated_code: diag(6007, 3 /* Message */, "Do_not_erase_const_enum_declarations_in_generated_code_6007", "Do not erase const enum declarations in generated code."), + Do_not_emit_outputs_if_any_errors_were_reported: diag(6008, 3 /* Message */, "Do_not_emit_outputs_if_any_errors_were_reported_6008", "Do not emit outputs if any errors were reported."), + Do_not_emit_comments_to_output: diag(6009, 3 /* Message */, "Do_not_emit_comments_to_output_6009", "Do not emit comments to output."), + Do_not_emit_outputs: diag(6010, 3 /* Message */, "Do_not_emit_outputs_6010", "Do not emit outputs."), + Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: diag(6011, 3 /* Message */, "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011", "Allow default imports from modules with no default export. This does not affect code emit, just typechecking."), + Skip_type_checking_of_declaration_files: diag(6012, 3 /* Message */, "Skip_type_checking_of_declaration_files_6012", "Skip type checking of declaration files."), + Do_not_resolve_the_real_path_of_symlinks: diag(6013, 3 /* Message */, "Do_not_resolve_the_real_path_of_symlinks_6013", "Do not resolve the real path of symlinks."), + Only_emit_d_ts_declaration_files: diag(6014, 3 /* Message */, "Only_emit_d_ts_declaration_files_6014", "Only emit '.d.ts' declaration files."), + Specify_ECMAScript_target_version: diag(6015, 3 /* Message */, "Specify_ECMAScript_target_version_6015", "Specify ECMAScript target version."), + Specify_module_code_generation: diag(6016, 3 /* Message */, "Specify_module_code_generation_6016", "Specify module code generation."), + Print_this_message: diag(6017, 3 /* Message */, "Print_this_message_6017", "Print this message."), + Print_the_compiler_s_version: diag(6019, 3 /* Message */, "Print_the_compiler_s_version_6019", "Print the compiler's version."), + Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json: diag(6020, 3 /* Message */, "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020", "Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."), + Syntax_Colon_0: diag(6023, 3 /* Message */, "Syntax_Colon_0_6023", "Syntax: {0}"), + options: diag(6024, 3 /* Message */, "options_6024", "options"), + file: diag(6025, 3 /* Message */, "file_6025", "file"), + Examples_Colon_0: diag(6026, 3 /* Message */, "Examples_Colon_0_6026", "Examples: {0}"), + Options_Colon: diag(6027, 3 /* Message */, "Options_Colon_6027", "Options:"), + Version_0: diag(6029, 3 /* Message */, "Version_0_6029", "Version {0}"), + Insert_command_line_options_and_files_from_a_file: diag(6030, 3 /* Message */, "Insert_command_line_options_and_files_from_a_file_6030", "Insert command line options and files from a file."), + Starting_compilation_in_watch_mode: diag(6031, 3 /* Message */, "Starting_compilation_in_watch_mode_6031", "Starting compilation in watch mode..."), + File_change_detected_Starting_incremental_compilation: diag(6032, 3 /* Message */, "File_change_detected_Starting_incremental_compilation_6032", "File change detected. Starting incremental compilation..."), + KIND: diag(6034, 3 /* Message */, "KIND_6034", "KIND"), + FILE: diag(6035, 3 /* Message */, "FILE_6035", "FILE"), + VERSION: diag(6036, 3 /* Message */, "VERSION_6036", "VERSION"), + LOCATION: diag(6037, 3 /* Message */, "LOCATION_6037", "LOCATION"), + DIRECTORY: diag(6038, 3 /* Message */, "DIRECTORY_6038", "DIRECTORY"), + STRATEGY: diag(6039, 3 /* Message */, "STRATEGY_6039", "STRATEGY"), + FILE_OR_DIRECTORY: diag(6040, 3 /* Message */, "FILE_OR_DIRECTORY_6040", "FILE OR DIRECTORY"), + Errors_Files: diag(6041, 3 /* Message */, "Errors_Files_6041", "Errors Files"), + Generates_corresponding_map_file: diag(6043, 3 /* Message */, "Generates_corresponding_map_file_6043", "Generates corresponding '.map' file."), + Compiler_option_0_expects_an_argument: diag(6044, 1 /* Error */, "Compiler_option_0_expects_an_argument_6044", "Compiler option '{0}' expects an argument."), + Unterminated_quoted_string_in_response_file_0: diag(6045, 1 /* Error */, "Unterminated_quoted_string_in_response_file_0_6045", "Unterminated quoted string in response file '{0}'."), + Argument_for_0_option_must_be_Colon_1: diag(6046, 1 /* Error */, "Argument_for_0_option_must_be_Colon_1_6046", "Argument for '{0}' option must be: {1}."), + Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: diag(6048, 1 /* Error */, "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048", "Locale must be of the form or -. For example '{0}' or '{1}'."), + Unable_to_open_file_0: diag(6050, 1 /* Error */, "Unable_to_open_file_0_6050", "Unable to open file '{0}'."), + Corrupted_locale_file_0: diag(6051, 1 /* Error */, "Corrupted_locale_file_0_6051", "Corrupted locale file {0}."), + Raise_error_on_expressions_and_declarations_with_an_implied_any_type: diag(6052, 3 /* Message */, "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052", "Raise error on expressions and declarations with an implied 'any' type."), + File_0_not_found: diag(6053, 1 /* Error */, "File_0_not_found_6053", "File '{0}' not found."), + File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: diag(6054, 1 /* Error */, "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: diag(6055, 3 /* Message */, "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055", "Suppress noImplicitAny errors for indexing objects lacking index signatures."), + Do_not_emit_declarations_for_code_that_has_an_internal_annotation: diag(6056, 3 /* Message */, "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056", "Do not emit declarations for code that has an '@internal' annotation."), + Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir: diag(6058, 3 /* Message */, "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058", "Specify the root directory of input files. Use to control the output directory structure with --outDir."), + File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: diag(6059, 1 /* Error */, "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059", "File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."), + Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: diag(6060, 3 /* Message */, "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060", "Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."), + NEWLINE: diag(6061, 3 /* Message */, "NEWLINE_6061", "NEWLINE"), + Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: diag(6064, 1 /* Error */, "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: diag(6065, 3 /* Message */, "Enables_experimental_support_for_ES7_decorators_6065", "Enables experimental support for ES7 decorators."), + Enables_experimental_support_for_emitting_type_metadata_for_decorators: diag(6066, 3 /* Message */, "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: diag(6070, 3 /* Message */, "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070", "Initializes a TypeScript project and creates a tsconfig.json file."), + Successfully_created_a_tsconfig_json_file: diag(6071, 3 /* Message */, "Successfully_created_a_tsconfig_json_file_6071", "Successfully created a tsconfig.json file."), + Suppress_excess_property_checks_for_object_literals: diag(6072, 3 /* Message */, "Suppress_excess_property_checks_for_object_literals_6072", "Suppress excess property checks for object literals."), + Stylize_errors_and_messages_using_color_and_context_experimental: diag(6073, 3 /* Message */, "Stylize_errors_and_messages_using_color_and_context_experimental_6073", "Stylize errors and messages using color and context (experimental)."), + Do_not_report_errors_on_unused_labels: diag(6074, 3 /* Message */, "Do_not_report_errors_on_unused_labels_6074", "Do not report errors on unused labels."), + Report_error_when_not_all_code_paths_in_function_return_a_value: diag(6075, 3 /* Message */, "Report_error_when_not_all_code_paths_in_function_return_a_value_6075", "Report error when not all code paths in function return a value."), + Report_errors_for_fallthrough_cases_in_switch_statement: diag(6076, 3 /* Message */, "Report_errors_for_fallthrough_cases_in_switch_statement_6076", "Report errors for fallthrough cases in switch statement."), + Do_not_report_errors_on_unreachable_code: diag(6077, 3 /* Message */, "Do_not_report_errors_on_unreachable_code_6077", "Do not report errors on unreachable code."), + Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, 3 /* Message */, "Disallow_inconsistently_cased_references_to_the_same_file_6078", "Disallow inconsistently-cased references to the same file."), + Specify_library_files_to_be_included_in_the_compilation: diag(6079, 3 /* Message */, "Specify_library_files_to_be_included_in_the_compilation_6079", "Specify library files to be included in the compilation."), + Specify_JSX_code_generation: diag(6080, 3 /* Message */, "Specify_JSX_code_generation_6080", "Specify JSX code generation."), + Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, 1 /* Error */, "Only_amd_and_system_modules_are_supported_alongside_0_6082", "Only 'amd' and 'system' modules are supported alongside --{0}."), + Base_directory_to_resolve_non_absolute_module_names: diag(6083, 3 /* Message */, "Base_directory_to_resolve_non_absolute_module_names_6083", "Base directory to resolve non-absolute module names."), + Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, 3 /* Message */, "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084", "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"), + Enable_tracing_of_the_name_resolution_process: diag(6085, 3 /* Message */, "Enable_tracing_of_the_name_resolution_process_6085", "Enable tracing of the name resolution process."), + Resolving_module_0_from_1: diag(6086, 3 /* Message */, "Resolving_module_0_from_1_6086", "======== Resolving module '{0}' from '{1}'. ========"), + Explicitly_specified_module_resolution_kind_Colon_0: diag(6087, 3 /* Message */, "Explicitly_specified_module_resolution_kind_Colon_0_6087", "Explicitly specified module resolution kind: '{0}'."), + Module_resolution_kind_is_not_specified_using_0: diag(6088, 3 /* Message */, "Module_resolution_kind_is_not_specified_using_0_6088", "Module resolution kind is not specified, using '{0}'."), + Module_name_0_was_successfully_resolved_to_1: diag(6089, 3 /* Message */, "Module_name_0_was_successfully_resolved_to_1_6089", "======== Module name '{0}' was successfully resolved to '{1}'. ========"), + Module_name_0_was_not_resolved: diag(6090, 3 /* Message */, "Module_name_0_was_not_resolved_6090", "======== Module name '{0}' was not resolved. ========"), + paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: diag(6091, 3 /* Message */, "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091", "'paths' option is specified, looking for a pattern to match module name '{0}'."), + Module_name_0_matched_pattern_1: diag(6092, 3 /* Message */, "Module_name_0_matched_pattern_1_6092", "Module name '{0}', matched pattern '{1}'."), + Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, 3 /* Message */, "Trying_substitution_0_candidate_module_location_Colon_1_6093", "Trying substitution '{0}', candidate module location: '{1}'."), + Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, 3 /* Message */, "Resolving_module_name_0_relative_to_base_url_1_2_6094", "Resolving module name '{0}' relative to base url '{1}' - '{2}'."), + Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1: diag(6095, 3 /* Message */, "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: diag(6096, 3 /* Message */, "File_0_does_not_exist_6096", "File '{0}' does not exist."), + File_0_exists_use_it_as_a_name_resolution_result: diag(6097, 3 /* Message */, "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: diag(6098, 3 /* Message */, "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: diag(6099, 3 /* Message */, "Found_package_json_at_0_6099", "Found 'package.json' at '{0}'."), + package_json_does_not_have_a_0_field: diag(6100, 3 /* Message */, "package_json_does_not_have_a_0_field_6100", "'package.json' does not have a '{0}' field."), + package_json_has_0_field_1_that_references_2: diag(6101, 3 /* Message */, "package_json_has_0_field_1_that_references_2_6101", "'package.json' has '{0}' field '{1}' that references '{2}'."), + Allow_javascript_files_to_be_compiled: diag(6102, 3 /* Message */, "Allow_javascript_files_to_be_compiled_6102", "Allow javascript files to be compiled."), + Checking_if_0_is_the_longest_matching_prefix_for_1_2: diag(6104, 3 /* Message */, "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104", "Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."), + Expected_type_of_0_field_in_package_json_to_be_1_got_2: diag(6105, 3 /* Message */, "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105", "Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."), + baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: diag(6106, 3 /* Message */, "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106", "'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."), + rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: diag(6107, 3 /* Message */, "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107", "'rootDirs' option is set, using it to resolve relative module name '{0}'."), + Longest_matching_prefix_for_0_is_1: diag(6108, 3 /* Message */, "Longest_matching_prefix_for_0_is_1_6108", "Longest matching prefix for '{0}' is '{1}'."), + Loading_0_from_the_root_dir_1_candidate_location_2: diag(6109, 3 /* Message */, "Loading_0_from_the_root_dir_1_candidate_location_2_6109", "Loading '{0}' from the root dir '{1}', candidate location '{2}'."), + Trying_other_entries_in_rootDirs: diag(6110, 3 /* Message */, "Trying_other_entries_in_rootDirs_6110", "Trying other entries in 'rootDirs'."), + Module_resolution_using_rootDirs_has_failed: diag(6111, 3 /* Message */, "Module_resolution_using_rootDirs_has_failed_6111", "Module resolution using 'rootDirs' has failed."), + Do_not_emit_use_strict_directives_in_module_output: diag(6112, 3 /* Message */, "Do_not_emit_use_strict_directives_in_module_output_6112", "Do not emit 'use strict' directives in module output."), + Enable_strict_null_checks: diag(6113, 3 /* Message */, "Enable_strict_null_checks_6113", "Enable strict null checks."), + Unknown_option_excludes_Did_you_mean_exclude: diag(6114, 1 /* Error */, "Unknown_option_excludes_Did_you_mean_exclude_6114", "Unknown option 'excludes'. Did you mean 'exclude'?"), + Raise_error_on_this_expressions_with_an_implied_any_type: diag(6115, 3 /* Message */, "Raise_error_on_this_expressions_with_an_implied_any_type_6115", "Raise error on 'this' expressions with an implied 'any' type."), + Resolving_type_reference_directive_0_containing_file_1_root_directory_2: diag(6116, 3 /* Message */, "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: diag(6119, 3 /* Message */, "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119", "======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"), + Type_reference_directive_0_was_not_resolved: diag(6120, 3 /* Message */, "Type_reference_directive_0_was_not_resolved_6120", "======== Type reference directive '{0}' was not resolved. ========"), + Resolving_with_primary_search_path_0: diag(6121, 3 /* Message */, "Resolving_with_primary_search_path_0_6121", "Resolving with primary search path '{0}'."), + Root_directory_cannot_be_determined_skipping_primary_search_paths: diag(6122, 3 /* Message */, "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122", "Root directory cannot be determined, skipping primary search paths."), + Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set: diag(6123, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123", "======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"), + Type_declaration_files_to_be_included_in_compilation: diag(6124, 3 /* Message */, "Type_declaration_files_to_be_included_in_compilation_6124", "Type declaration files to be included in compilation."), + Looking_up_in_node_modules_folder_initial_location_0: diag(6125, 3 /* Message */, "Looking_up_in_node_modules_folder_initial_location_0_6125", "Looking up in 'node_modules' folder, initial location '{0}'."), + Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder: diag(6126, 3 /* Message */, "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126", "Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."), + Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1: diag(6127, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127", "======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"), + Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set: diag(6128, 3 /* Message */, "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128", "======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"), + Resolving_real_path_for_0_result_1: diag(6130, 3 /* Message */, "Resolving_real_path_for_0_result_1_6130", "Resolving real path for '{0}', result '{1}'."), + Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system: diag(6131, 1 /* Error */, "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131", "Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."), + File_name_0_has_a_1_extension_stripping_it: diag(6132, 3 /* Message */, "File_name_0_has_a_1_extension_stripping_it_6132", "File name '{0}' has a '{1}' extension - stripping it."), + _0_is_declared_but_its_value_is_never_read: diag( + 6133, + 1 /* Error */, + "_0_is_declared_but_its_value_is_never_read_6133", + "'{0}' is declared but its value is never read.", + /*reportsUnnecessary*/ + true + ), + Report_errors_on_unused_locals: diag(6134, 3 /* Message */, "Report_errors_on_unused_locals_6134", "Report errors on unused locals."), + Report_errors_on_unused_parameters: diag(6135, 3 /* Message */, "Report_errors_on_unused_parameters_6135", "Report errors on unused parameters."), + The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files: diag(6136, 3 /* Message */, "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136", "The maximum dependency depth to search under node_modules and load JavaScript files."), + Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: diag(6137, 1 /* Error */, "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137", "Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."), + Property_0_is_declared_but_its_value_is_never_read: diag( + 6138, + 1 /* Error */, + "Property_0_is_declared_but_its_value_is_never_read_6138", + "Property '{0}' is declared but its value is never read.", + /*reportsUnnecessary*/ + true + ), + Import_emit_helpers_from_tslib: diag(6139, 3 /* Message */, "Import_emit_helpers_from_tslib_6139", "Import emit helpers from 'tslib'."), + Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2: diag(6140, 1 /* Error */, "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140", "Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."), + Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: diag(6141, 3 /* Message */, "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141", 'Parse in strict mode and emit "use strict" for each source file.'), + Module_0_was_resolved_to_1_but_jsx_is_not_set: diag(6142, 1 /* Error */, "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142", "Module '{0}' was resolved to '{1}', but '--jsx' is not set."), + Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: diag(6144, 3 /* Message */, "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", "Module '{0}' was resolved as locally declared ambient module in file '{1}'."), + Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified: diag(6145, 3 /* Message */, "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145", "Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."), + Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: diag(6146, 3 /* Message */, "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146", "Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."), + Resolution_for_module_0_was_found_in_cache_from_location_1: diag(6147, 3 /* Message */, "Resolution_for_module_0_was_found_in_cache_from_location_1_6147", "Resolution for module '{0}' was found in cache from location '{1}'."), + Directory_0_does_not_exist_skipping_all_lookups_in_it: diag(6148, 3 /* Message */, "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148", "Directory '{0}' does not exist, skipping all lookups in it."), + Show_diagnostic_information: diag(6149, 3 /* Message */, "Show_diagnostic_information_6149", "Show diagnostic information."), + Show_verbose_diagnostic_information: diag(6150, 3 /* Message */, "Show_verbose_diagnostic_information_6150", "Show verbose diagnostic information."), + Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: diag(6151, 3 /* Message */, "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151", "Emit a single file with source maps instead of having a separate file."), + Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set: diag(6152, 3 /* Message */, "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152", "Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."), + Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: diag(6153, 3 /* Message */, "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153", "Transpile each file as a separate module (similar to 'ts.transpileModule')."), + Print_names_of_generated_files_part_of_the_compilation: diag(6154, 3 /* Message */, "Print_names_of_generated_files_part_of_the_compilation_6154", "Print names of generated files part of the compilation."), + Print_names_of_files_part_of_the_compilation: diag(6155, 3 /* Message */, "Print_names_of_files_part_of_the_compilation_6155", "Print names of files part of the compilation."), + The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: diag(6156, 3 /* Message */, "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156", "The locale used when displaying messages to the user (e.g. 'en-us')"), + Do_not_generate_custom_helper_functions_like_extends_in_compiled_output: diag(6157, 3 /* Message */, "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157", "Do not generate custom helper functions like '__extends' in compiled output."), + Do_not_include_the_default_library_file_lib_d_ts: diag(6158, 3 /* Message */, "Do_not_include_the_default_library_file_lib_d_ts_6158", "Do not include the default library file (lib.d.ts)."), + Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files: diag(6159, 3 /* Message */, "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159", "Do not add triple-slash references or imported modules to the list of compiled files."), + Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files: diag(6160, 3 /* Message */, "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160", "[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."), + List_of_folders_to_include_type_definitions_from: diag(6161, 3 /* Message */, "List_of_folders_to_include_type_definitions_from_6161", "List of folders to include type definitions from."), + Disable_size_limitations_on_JavaScript_projects: diag(6162, 3 /* Message */, "Disable_size_limitations_on_JavaScript_projects_6162", "Disable size limitations on JavaScript projects."), + The_character_set_of_the_input_files: diag(6163, 3 /* Message */, "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: diag(6164, 3 /* Message */, "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: diag(6165, 3 /* Message */, "Do_not_truncate_error_messages_6165", "Do not truncate error messages."), + Output_directory_for_generated_declaration_files: diag(6166, 3 /* Message */, "Output_directory_for_generated_declaration_files_6166", "Output directory for generated declaration files."), + A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl: diag(6167, 3 /* Message */, "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167", "A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."), + List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime: diag(6168, 3 /* Message */, "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168", "List of root folders whose combined content represents the structure of the project at runtime."), + Show_all_compiler_options: diag(6169, 3 /* Message */, "Show_all_compiler_options_6169", "Show all compiler options."), + Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: diag(6170, 3 /* Message */, "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170", "[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"), + Command_line_Options: diag(6171, 3 /* Message */, "Command_line_Options_6171", "Command-line Options"), + Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5: diag(6179, 3 /* Message */, "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: diag(6180, 3 /* Message */, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."), + Scoped_package_detected_looking_in_0: diag(6182, 3 /* Message */, "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: diag(6183, 3 /* Message */, "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: diag(6184, 3 /* Message */, "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: diag(6186, 3 /* Message */, "Enable_strict_checking_of_function_types_6186", "Enable strict checking of function types."), + Enable_strict_checking_of_property_initialization_in_classes: diag(6187, 3 /* Message */, "Enable_strict_checking_of_property_initialization_in_classes_6187", "Enable strict checking of property initialization in classes."), + Numeric_separators_are_not_allowed_here: diag(6188, 1 /* Error */, "Numeric_separators_are_not_allowed_here_6188", "Numeric separators are not allowed here."), + Multiple_consecutive_numeric_separators_are_not_permitted: diag(6189, 1 /* Error */, "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: diag(6191, 3 /* Message */, "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191", "Whether to keep outdated console output in watch mode instead of clearing the screen."), + All_imports_in_import_declaration_are_unused: diag( + 6192, + 1 /* Error */, + "All_imports_in_import_declaration_are_unused_6192", + "All imports in import declaration are unused.", + /*reportsUnnecessary*/ + true + ), + Found_1_error_Watching_for_file_changes: diag(6193, 3 /* Message */, "Found_1_error_Watching_for_file_changes_6193", "Found 1 error. Watching for file changes."), + Found_0_errors_Watching_for_file_changes: diag(6194, 3 /* Message */, "Found_0_errors_Watching_for_file_changes_6194", "Found {0} errors. Watching for file changes."), + Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols: diag(6195, 3 /* Message */, "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195", "Resolve 'keyof' to string valued property names only (no numbers or symbols)."), + _0_is_declared_but_never_used: diag( + 6196, + 1 /* Error */, + "_0_is_declared_but_never_used_6196", + "'{0}' is declared but never used.", + /*reportsUnnecessary*/ + true + ), + Include_modules_imported_with_json_extension: diag(6197, 3 /* Message */, "Include_modules_imported_with_json_extension_6197", "Include modules imported with '.json' extension"), + All_destructured_elements_are_unused: diag( + 6198, + 1 /* Error */, + "All_destructured_elements_are_unused_6198", + "All destructured elements are unused.", + /*reportsUnnecessary*/ + true + ), + All_variables_are_unused: diag( + 6199, + 1 /* Error */, + "All_variables_are_unused_6199", + "All variables are unused.", + /*reportsUnnecessary*/ + true + ), + Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, 1 /* Error */, "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200", "Definitions of the following identifiers conflict with those in another file: {0}"), + Conflicts_are_in_this_file: diag(6201, 3 /* Message */, "Conflicts_are_in_this_file_6201", "Conflicts are in this file."), + Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, 1 /* Error */, "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202", "Project references may not form a circular graph. Cycle detected: {0}"), + _0_was_also_declared_here: diag(6203, 3 /* Message */, "_0_was_also_declared_here_6203", "'{0}' was also declared here."), + and_here: diag(6204, 3 /* Message */, "and_here_6204", "and here."), + All_type_parameters_are_unused: diag(6205, 1 /* Error */, "All_type_parameters_are_unused_6205", "All type parameters are unused."), + package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, 3 /* Message */, "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206", "'package.json' has a 'typesVersions' field with version-specific path mappings."), + package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, 3 /* Message */, "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207", "'package.json' does not have a 'typesVersions' entry that matches version '{0}'."), + package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2: diag(6208, 3 /* Message */, "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208", "'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."), + package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range: diag(6209, 3 /* Message */, "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209", "'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."), + An_argument_for_0_was_not_provided: diag(6210, 3 /* Message */, "An_argument_for_0_was_not_provided_6210", "An argument for '{0}' was not provided."), + An_argument_matching_this_binding_pattern_was_not_provided: diag(6211, 3 /* Message */, "An_argument_matching_this_binding_pattern_was_not_provided_6211", "An argument matching this binding pattern was not provided."), + Did_you_mean_to_call_this_expression: diag(6212, 3 /* Message */, "Did_you_mean_to_call_this_expression_6212", "Did you mean to call this expression?"), + Did_you_mean_to_use_new_with_this_expression: diag(6213, 3 /* Message */, "Did_you_mean_to_use_new_with_this_expression_6213", "Did you mean to use 'new' with this expression?"), + Enable_strict_bind_call_and_apply_methods_on_functions: diag(6214, 3 /* Message */, "Enable_strict_bind_call_and_apply_methods_on_functions_6214", "Enable strict 'bind', 'call', and 'apply' methods on functions."), + Using_compiler_options_of_project_reference_redirect_0: diag(6215, 3 /* Message */, "Using_compiler_options_of_project_reference_redirect_0_6215", "Using compiler options of project reference redirect '{0}'."), + Found_1_error: diag(6216, 3 /* Message */, "Found_1_error_6216", "Found 1 error."), + Found_0_errors: diag(6217, 3 /* Message */, "Found_0_errors_6217", "Found {0} errors."), + Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: diag(6218, 3 /* Message */, "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: diag(6219, 3 /* Message */, "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: diag(6220, 3 /* Message */, "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: diag(6221, 3 /* Message */, "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: diag(6222, 3 /* Message */, "Emit_class_fields_with_Define_instead_of_Set_6222", "Emit class fields with Define instead of Set."), + Generates_a_CPU_profile: diag(6223, 3 /* Message */, "Generates_a_CPU_profile_6223", "Generates a CPU profile."), + Disable_solution_searching_for_this_project: diag(6224, 3 /* Message */, "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: diag(6225, 3 /* Message */, "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: diag(6226, 3 /* Message */, "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: diag(6227, 3 /* Message */, "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: diag(6229, 1 /* Error */, "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: diag(6230, 1 /* Error */, "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: diag(6231, 1 /* Error */, "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: diag(6232, 1 /* Error */, "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: diag(6233, 1 /* Error */, "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: diag(6234, 1 /* Error */, "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: diag(6235, 3 /* Message */, "Disable_loading_referenced_projects_6235", "Disable loading referenced projects."), + Arguments_for_the_rest_parameter_0_were_not_provided: diag(6236, 1 /* Error */, "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: diag(6237, 3 /* Message */, "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: diag(6238, 1 /* Error */, "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: diag(6239, 3 /* Message */, "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: diag(6240, 3 /* Message */, "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: diag(6241, 3 /* Message */, "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: diag(6242, 3 /* Message */, "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: diag(6243, 3 /* Message */, "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243", "Interpret optional property types as written, rather than adding 'undefined'."), + Modules: diag(6244, 3 /* Message */, "Modules_6244", "Modules"), + File_Management: diag(6245, 3 /* Message */, "File_Management_6245", "File Management"), + Emit: diag(6246, 3 /* Message */, "Emit_6246", "Emit"), + JavaScript_Support: diag(6247, 3 /* Message */, "JavaScript_Support_6247", "JavaScript Support"), + Type_Checking: diag(6248, 3 /* Message */, "Type_Checking_6248", "Type Checking"), + Editor_Support: diag(6249, 3 /* Message */, "Editor_Support_6249", "Editor Support"), + Watch_and_Build_Modes: diag(6250, 3 /* Message */, "Watch_and_Build_Modes_6250", "Watch and Build Modes"), + Compiler_Diagnostics: diag(6251, 3 /* Message */, "Compiler_Diagnostics_6251", "Compiler Diagnostics"), + Interop_Constraints: diag(6252, 3 /* Message */, "Interop_Constraints_6252", "Interop Constraints"), + Backwards_Compatibility: diag(6253, 3 /* Message */, "Backwards_Compatibility_6253", "Backwards Compatibility"), + Language_and_Environment: diag(6254, 3 /* Message */, "Language_and_Environment_6254", "Language and Environment"), + Projects: diag(6255, 3 /* Message */, "Projects_6255", "Projects"), + Output_Formatting: diag(6256, 3 /* Message */, "Output_Formatting_6256", "Output Formatting"), + Completeness: diag(6257, 3 /* Message */, "Completeness_6257", "Completeness"), + _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file: diag(6258, 1 /* Error */, "_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: diag(6259, 3 /* Message */, "Found_1_error_in_0_6259", "Found 1 error in {0}"), + Found_0_errors_in_the_same_file_starting_at_Colon_1: diag(6260, 3 /* Message */, "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: diag(6261, 3 /* Message */, "Found_0_errors_in_1_files_6261", "Found {0} errors in {1} files."), + File_name_0_has_a_1_extension_looking_up_2_instead: diag(6262, 3 /* Message */, "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: diag(6263, 1 /* Error */, "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: diag(6264, 3 /* Message */, "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: diag(6265, 3 /* Message */, "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: diag(6266, 1 /* Error */, "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: diag(6270, 3 /* Message */, "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: diag(6271, 3 /* Message */, "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: diag(6272, 3 /* Message */, "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: diag(6273, 3 /* Message */, "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: diag(6274, 3 /* Message */, "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: diag(6275, 3 /* Message */, "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: diag(6276, 3 /* Message */, "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: diag(6277, 3 /* Message */, "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: diag(6278, 3 /* Message */, "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: diag(6279, 3 /* Message */, "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: diag(6280, 3 /* Message */, "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: diag(6281, 3 /* Message */, "package_json_has_a_peerDependencies_field_6281", "'package.json' has a 'peerDependencies' field."), + Found_peerDependency_0_with_1_version: diag(6282, 3 /* Message */, "Found_peerDependency_0_with_1_version_6282", "Found peerDependency '{0}' with '{1}' version."), + Failed_to_find_peerDependency_0: diag(6283, 3 /* Message */, "Failed_to_find_peerDependency_0_6283", "Failed to find peerDependency '{0}'."), + Enable_project_compilation: diag(6302, 3 /* Message */, "Enable_project_compilation_6302", "Enable project compilation"), + Composite_projects_may_not_disable_declaration_emit: diag(6304, 1 /* Error */, "Composite_projects_may_not_disable_declaration_emit_6304", "Composite projects may not disable declaration emit."), + Output_file_0_has_not_been_built_from_source_file_1: diag(6305, 1 /* Error */, "Output_file_0_has_not_been_built_from_source_file_1_6305", "Output file '{0}' has not been built from source file '{1}'."), + Referenced_project_0_must_have_setting_composite_Colon_true: diag(6306, 1 /* Error */, "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: diag(6307, 1 /* Error */, "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: diag(6310, 1 /* Error */, "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: diag(6350, 3 /* Message */, "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: diag(6351, 3 /* Message */, "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: diag(6352, 3 /* Message */, "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352", "Project '{0}' is out of date because output file '{1}' does not exist"), + Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: diag(6353, 3 /* Message */, "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353", "Project '{0}' is out of date because its dependency '{1}' is out of date"), + Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: diag(6354, 3 /* Message */, "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354", "Project '{0}' is up to date with .d.ts files from its dependencies"), + Projects_in_this_build_Colon_0: diag(6355, 3 /* Message */, "Projects_in_this_build_Colon_0_6355", "Projects in this build: {0}"), + A_non_dry_build_would_delete_the_following_files_Colon_0: diag(6356, 3 /* Message */, "A_non_dry_build_would_delete_the_following_files_Colon_0_6356", "A non-dry build would delete the following files: {0}"), + A_non_dry_build_would_build_project_0: diag(6357, 3 /* Message */, "A_non_dry_build_would_build_project_0_6357", "A non-dry build would build project '{0}'"), + Building_project_0: diag(6358, 3 /* Message */, "Building_project_0_6358", "Building project '{0}'..."), + Updating_output_timestamps_of_project_0: diag(6359, 3 /* Message */, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."), + Project_0_is_up_to_date: diag(6361, 3 /* Message */, "Project_0_is_up_to_date_6361", "Project '{0}' is up to date"), + Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, 3 /* Message */, "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362", "Skipping build of project '{0}' because its dependency '{1}' has errors"), + Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, 3 /* Message */, "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363", "Project '{0}' can't be built because its dependency '{1}' has errors"), + Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, 3 /* Message */, "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364", "Build one or more projects and their dependencies, if out of date"), + Delete_the_outputs_of_all_projects: diag(6365, 3 /* Message */, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."), + Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, 3 /* Message */, "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: diag(6369, 1 /* Error */, "Option_build_must_be_the_first_command_line_argument_6369", "Option '--build' must be the first command line argument."), + Options_0_and_1_cannot_be_combined: diag(6370, 1 /* Error */, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."), + Updating_unchanged_output_timestamps_of_project_0: diag(6371, 3 /* Message */, "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: diag(6374, 3 /* Message */, "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374", "A non-dry build would update timestamps for output of project '{0}'"), + Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, 1 /* Error */, "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377", "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"), + Composite_projects_may_not_disable_incremental_compilation: diag(6379, 1 /* Error */, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."), + Specify_file_to_store_incremental_compilation_information: diag(6380, 3 /* Message */, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"), + Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, 3 /* Message */, "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381", "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"), + Skipping_build_of_project_0_because_its_dependency_1_was_not_built: diag(6382, 3 /* Message */, "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: diag(6383, 3 /* Message */, "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: diag(6384, 3 /* Message */, "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: diag( + 6385, + 2 /* Suggestion */, + "_0_is_deprecated_6385", + "'{0}' is deprecated.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + void 0, + /*reportsDeprecated*/ + true + ), + Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, 3 /* Message */, "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: diag( + 6387, + 2 /* Suggestion */, + "The_signature_0_of_1_is_deprecated_6387", + "The signature '{0}' of '{1}' is deprecated.", + /*reportsUnnecessary*/ + void 0, + /*elidedInCompatabilityPyramid*/ + void 0, + /*reportsDeprecated*/ + true + ), + Project_0_is_being_forcibly_rebuilt: diag(6388, 3 /* Message */, "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: diag(6389, 3 /* Message */, "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: diag(6390, 3 /* Message */, "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: diag(6391, 3 /* Message */, "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: diag(6392, 3 /* Message */, "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: diag(6393, 3 /* Message */, "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: diag(6394, 3 /* Message */, "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: diag(6395, 3 /* Message */, "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: diag(6396, 3 /* Message */, "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: diag(6397, 3 /* Message */, "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: diag(6398, 3 /* Message */, "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: diag(6399, 3 /* Message */, "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: diag(6400, 3 /* Message */, "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: diag(6401, 3 /* Message */, "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: diag(6402, 3 /* Message */, "Resolving_in_0_mode_with_conditions_1_6402", "Resolving in {0} mode with conditions {1}."), + Matched_0_condition_1: diag(6403, 3 /* Message */, "Matched_0_condition_1_6403", "Matched '{0}' condition '{1}'."), + Using_0_subpath_1_with_target_2: diag(6404, 3 /* Message */, "Using_0_subpath_1_with_target_2_6404", "Using '{0}' subpath '{1}' with target '{2}'."), + Saw_non_matching_condition_0: diag(6405, 3 /* Message */, "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: diag(6406, 3 /* Message */, "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: diag(6407, 3 /* Message */, "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: diag(6408, 3 /* Message */, "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: diag(6409, 3 /* Message */, "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: diag(6410, 3 /* Message */, "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: diag(6411, 3 /* Message */, "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: diag(6412, 3 /* Message */, "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: diag(6413, 3 /* Message */, "Entering_conditional_exports_6413", "Entering conditional exports."), + Resolved_under_condition_0: diag(6414, 3 /* Message */, "Resolved_under_condition_0_6414", "Resolved under condition '{0}'."), + Failed_to_resolve_under_condition_0: diag(6415, 3 /* Message */, "Failed_to_resolve_under_condition_0_6415", "Failed to resolve under condition '{0}'."), + Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), + Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "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: diag(6418, 3 /* Message */, "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: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), + The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), + The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "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: diag(6503, 3 /* Message */, "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: diag(6504, 1 /* Error */, "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: diag(6505, 3 /* Message */, "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: diag(6506, 3 /* Message */, "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: diag(6600, 3 /* Message */, "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: diag(6601, 3 /* Message */, "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: diag(6602, 3 /* Message */, "Allow_accessing_UMD_globals_from_modules_6602", "Allow accessing UMD globals from modules."), + Disable_error_reporting_for_unreachable_code: diag(6603, 3 /* Message */, "Disable_error_reporting_for_unreachable_code_6603", "Disable error reporting for unreachable code."), + Disable_error_reporting_for_unused_labels: diag(6604, 3 /* Message */, "Disable_error_reporting_for_unused_labels_6604", "Disable error reporting for unused labels."), + Ensure_use_strict_is_always_emitted: diag(6605, 3 /* Message */, "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: diag(6606, 3 /* Message */, "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: diag(6607, 3 /* Message */, "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: diag(6608, 3 /* Message */, "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: diag(6609, 3 /* Message */, "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: diag(6611, 3 /* Message */, "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: diag(6612, 3 /* Message */, "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: diag(6613, 3 /* Message */, "Specify_the_output_directory_for_generated_declaration_files_6613", "Specify the output directory for generated declaration files."), + Create_sourcemaps_for_d_ts_files: diag(6614, 3 /* Message */, "Create_sourcemaps_for_d_ts_files_6614", "Create sourcemaps for d.ts files."), + Output_compiler_performance_information_after_building: diag(6615, 3 /* Message */, "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: diag(6616, 3 /* Message */, "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: diag(6617, 3 /* Message */, "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: diag(6618, 3 /* Message */, "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: diag(6619, 3 /* Message */, "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: diag(6620, 3 /* Message */, "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: diag(6621, 3 /* Message */, "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: diag(6622, 3 /* Message */, "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: diag(6623, 3 /* Message */, "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: diag(6624, 3 /* Message */, "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: diag(6625, 3 /* Message */, "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: diag(6626, 3 /* Message */, "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: diag(6627, 3 /* Message */, "Filters_results_from_the_include_option_6627", "Filters results from the `include` option."), + Remove_a_list_of_directories_from_the_watch_process: diag(6628, 3 /* Message */, "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: diag(6629, 3 /* Message */, "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: diag(6630, 3 /* Message */, "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: diag(6631, 3 /* Message */, "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: diag(6632, 3 /* Message */, "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: diag(6633, 3 /* Message */, "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: diag(6634, 3 /* Message */, "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: diag(6635, 3 /* Message */, "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: diag(6636, 3 /* Message */, "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: diag(6637, 3 /* Message */, "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: diag(6638, 3 /* Message */, "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: diag(6639, 3 /* Message */, "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: diag(6641, 3 /* Message */, "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: diag(6642, 3 /* Message */, "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: diag(6643, 3 /* Message */, "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: diag(6644, 3 /* Message */, "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: diag(6645, 3 /* Message */, "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: diag(6646, 3 /* Message */, "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: diag(6647, 3 /* Message */, "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: diag(6648, 3 /* Message */, "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: diag(6649, 3 /* Message */, "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: diag(6650, 3 /* Message */, "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: diag(6651, 3 /* Message */, "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: diag(6652, 3 /* Message */, "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: diag(6653, 3 /* Message */, "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: diag(6654, 3 /* Message */, "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: diag(6655, 3 /* Message */, "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: diag(6656, 3 /* Message */, "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: diag(6657, 3 /* Message */, "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: diag(6658, 3 /* Message */, "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: diag(6659, 3 /* Message */, "Set_the_newline_character_for_emitting_files_6659", "Set the newline character for emitting files."), + Disable_emitting_files_from_a_compilation: diag(6660, 3 /* Message */, "Disable_emitting_files_from_a_compilation_6660", "Disable emitting files from a compilation."), + Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, 3 /* Message */, "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: diag(6662, 3 /* Message */, "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: diag(6663, 3 /* Message */, "Disable_truncating_types_in_error_messages_6663", "Disable truncating types in error messages."), + Enable_error_reporting_for_fallthrough_cases_in_switch_statements: diag(6664, 3 /* Message */, "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: diag(6665, 3 /* Message */, "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: diag(6666, 3 /* Message */, "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: diag(6667, 3 /* Message */, "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: diag(6668, 3 /* Message */, "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: diag(6669, 3 /* Message */, "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: diag(6670, 3 /* Message */, "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: diag(6671, 3 /* Message */, "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: diag(6672, 3 /* Message */, "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: diag(6673, 3 /* Message */, "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: diag(6674, 3 /* Message */, "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: diag(6675, 3 /* Message */, "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: diag(6676, 3 /* Message */, "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: diag(6677, 3 /* Message */, "Deprecated_setting_Use_outFile_instead_6677", "Deprecated setting. Use 'outFile' instead."), + Specify_an_output_folder_for_all_emitted_files: diag(6678, 3 /* Message */, "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: diag(6679, 3 /* Message */, "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: diag(6680, 3 /* Message */, "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: diag(6681, 3 /* Message */, "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: diag(6682, 3 /* Message */, "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: diag(6683, 3 /* Message */, "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: diag(6684, 3 /* Message */, "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: diag(6685, 3 /* Message */, "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: diag(6686, 3 /* Message */, "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: diag(6687, 3 /* Message */, "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: diag(6688, 3 /* Message */, "Disable_emitting_comments_6688", "Disable emitting comments."), + Enable_importing_json_files: diag(6689, 3 /* Message */, "Enable_importing_json_files_6689", "Enable importing .json files."), + Specify_the_root_folder_within_your_source_files: diag(6690, 3 /* Message */, "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: diag(6691, 3 /* Message */, "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: diag(6692, 3 /* Message */, "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: diag(6693, 3 /* Message */, "Skip_type_checking_all_d_ts_files_6693", "Skip type checking all .d.ts files."), + Create_source_map_files_for_emitted_JavaScript_files: diag(6694, 3 /* Message */, "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: diag(6695, 3 /* Message */, "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: diag(6697, 3 /* Message */, "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: diag(6698, 3 /* Message */, "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: diag(6699, 3 /* Message */, "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: diag(6700, 3 /* Message */, "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: diag(6701, 3 /* Message */, "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: diag(6702, 3 /* Message */, "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: diag(6703, 3 /* Message */, "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: diag(6704, 3 /* Message */, "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: diag(6705, 3 /* Message */, "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: diag(6706, 3 /* Message */, "Log_paths_used_during_the_moduleResolution_process_6706", "Log paths used during the 'moduleResolution' process."), + Specify_the_path_to_tsbuildinfo_incremental_compilation_file: diag(6707, 3 /* Message */, "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: diag(6709, 3 /* Message */, "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: diag(6710, 3 /* Message */, "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: diag(6711, 3 /* Message */, "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: diag(6712, 3 /* Message */, "Emit_ECMAScript_standard_compliant_class_fields_6712", "Emit ECMAScript-standard-compliant class fields."), + Enable_verbose_logging: diag(6713, 3 /* Message */, "Enable_verbose_logging_6713", "Enable verbose logging."), + Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: diag(6714, 3 /* Message */, "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: diag(6715, 3 /* Message */, "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: diag(6717, 3 /* Message */, "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: diag(6718, 3 /* Message */, "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: diag(6719, 3 /* Message */, "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: diag(6803, 3 /* Message */, "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: diag(6804, 3 /* Message */, "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: diag(6805, 3 /* Message */, "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: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"), + one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"), + type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"), + default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"), + module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'), + false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"), + false_unless_composite_is_set: diag(6906, 3 /* Message */, "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: diag(6907, 3 /* Message */, "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: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'), + true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"), + module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, 3 /* Message */, "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: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"), + Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"), + You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "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: diag(6914, 3 /* Message */, "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: diag(6915, 3 /* Message */, "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: diag(6916, 3 /* Message */, "COMMON_COMMANDS_6916", "COMMON COMMANDS"), + ALL_COMPILER_OPTIONS: diag(6917, 3 /* Message */, "ALL_COMPILER_OPTIONS_6917", "ALL COMPILER OPTIONS"), + WATCH_OPTIONS: diag(6918, 3 /* Message */, "WATCH_OPTIONS_6918", "WATCH OPTIONS"), + BUILD_OPTIONS: diag(6919, 3 /* Message */, "BUILD_OPTIONS_6919", "BUILD OPTIONS"), + COMMON_COMPILER_OPTIONS: diag(6920, 3 /* Message */, "COMMON_COMPILER_OPTIONS_6920", "COMMON COMPILER OPTIONS"), + COMMAND_LINE_FLAGS: diag(6921, 3 /* Message */, "COMMAND_LINE_FLAGS_6921", "COMMAND LINE FLAGS"), + tsc_Colon_The_TypeScript_Compiler: diag(6922, 3 /* Message */, "tsc_Colon_The_TypeScript_Compiler_6922", "tsc: The TypeScript Compiler"), + Compiles_the_current_project_tsconfig_json_in_the_working_directory: diag(6923, 3 /* Message */, "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: diag(6924, 3 /* Message */, "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: diag(6925, 3 /* Message */, "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: diag(6926, 3 /* Message */, "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: diag(6927, 3 /* Message */, "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: diag(6928, 3 /* Message */, "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: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."), + true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "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: diag(6931, 1 /* Error */, "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: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."), + Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."), + Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."), + new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: diag(7009, 1 /* Error */, "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009", "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."), + _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: diag(7010, 1 /* Error */, "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010", "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."), + Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7011, 1 /* Error */, "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011", "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."), + This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation: diag(7012, 1 /* Error */, "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: diag(7013, 1 /* Error */, "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013", "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."), + Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7014, 1 /* Error */, "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014", "Function type, which lacks return-type annotation, implicitly has an '{0}' return type."), + Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: diag(7015, 1 /* Error */, "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015", "Element implicitly has an 'any' type because index expression is not of type 'number'."), + Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type: diag(7016, 1 /* Error */, "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016", "Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."), + Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature: diag(7017, 1 /* Error */, "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017", "Element implicitly has an 'any' type because type '{0}' has no index signature."), + Object_literal_s_property_0_implicitly_has_an_1_type: diag(7018, 1 /* Error */, "Object_literal_s_property_0_implicitly_has_an_1_type_7018", "Object literal's property '{0}' implicitly has an '{1}' type."), + Rest_parameter_0_implicitly_has_an_any_type: diag(7019, 1 /* Error */, "Rest_parameter_0_implicitly_has_an_any_type_7019", "Rest parameter '{0}' implicitly has an 'any[]' type."), + Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7020, 1 /* Error */, "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020", "Call signature, which lacks return-type annotation, implicitly has an 'any' return type."), + _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: diag(7022, 1 /* Error */, "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022", "'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."), + _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7023, 1 /* Error */, "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023", "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), + Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7024, 1 /* Error */, "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024", "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), + Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation: diag(7025, 1 /* Error */, "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: diag(7026, 1 /* Error */, "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026", "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."), + Unreachable_code_detected: diag( + 7027, + 1 /* Error */, + "Unreachable_code_detected_7027", + "Unreachable code detected.", + /*reportsUnnecessary*/ + true + ), + Unused_label: diag( + 7028, + 1 /* Error */, + "Unused_label_7028", + "Unused label.", + /*reportsUnnecessary*/ + true + ), + Fallthrough_case_in_switch: diag(7029, 1 /* Error */, "Fallthrough_case_in_switch_7029", "Fallthrough case in switch."), + Not_all_code_paths_return_a_value: diag(7030, 1 /* Error */, "Not_all_code_paths_return_a_value_7030", "Not all code paths return a value."), + Binding_element_0_implicitly_has_an_1_type: diag(7031, 1 /* Error */, "Binding_element_0_implicitly_has_an_1_type_7031", "Binding element '{0}' implicitly has an '{1}' type."), + Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation: diag(7032, 1 /* Error */, "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032", "Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."), + Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation: diag(7033, 1 /* Error */, "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033", "Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."), + Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined: diag(7034, 1 /* Error */, "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034", "Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."), + Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0: diag(7035, 1 /* Error */, "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: diag(7036, 1 /* Error */, "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036", "Dynamic import's specifier must be of type 'string', but here has type '{0}'."), + Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports: diag(7037, 3 /* Message */, "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037", "Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."), + Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead: diag(7038, 3 /* Message */, "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038", "Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."), + Mapped_object_type_implicitly_has_an_any_template_type: diag(7039, 1 /* Error */, "Mapped_object_type_implicitly_has_an_any_template_type_7039", "Mapped object type implicitly has an 'any' template type."), + If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1: diag(7040, 1 /* Error */, "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040", "If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"), + The_containing_arrow_function_captures_the_global_value_of_this: diag(7041, 1 /* Error */, "The_containing_arrow_function_captures_the_global_value_of_this_7041", "The containing arrow function captures the global value of 'this'."), + Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: diag(7042, 1 /* Error */, "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042", "Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."), + Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7043, 2 /* Suggestion */, "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043", "Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7044, 2 /* Suggestion */, "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044", "Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7045, 2 /* Suggestion */, "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045", "Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."), + Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage: diag(7046, 2 /* Suggestion */, "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046", "Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."), + Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage: diag(7047, 2 /* Suggestion */, "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047", "Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."), + Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage: diag(7048, 2 /* Suggestion */, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048", "Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."), + Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage: diag(7049, 2 /* Suggestion */, "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049", "Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."), + _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage: diag(7050, 2 /* Suggestion */, "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050", "'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."), + Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: diag(7051, 1 /* Error */, "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051", "Parameter has a name but no type. Did you mean '{0}: {1}'?"), + Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1: diag(7052, 1 /* Error */, "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: diag(7053, 1 /* Error */, "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: diag(7054, 1 /* Error */, "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: diag(7055, 1 /* Error */, "_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: diag(7056, 1 /* Error */, "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: diag(7057, 1 /* Error */, "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: diag(7058, 1 /* Error */, "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: diag(7059, 1 /* Error */, "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: diag(7060, 1 /* Error */, "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: diag(7061, 1 /* Error */, "A_mapped_type_may_not_declare_properties_or_methods_7061", "A mapped type may not declare properties or methods."), + You_cannot_rename_this_element: diag(8e3, 1 /* Error */, "You_cannot_rename_this_element_8000", "You cannot rename this element."), + You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: diag(8001, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001", "You cannot rename elements that are defined in the standard TypeScript library."), + import_can_only_be_used_in_TypeScript_files: diag(8002, 1 /* Error */, "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: diag(8003, 1 /* Error */, "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: diag(8004, 1 /* Error */, "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: diag(8005, 1 /* Error */, "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: diag(8006, 1 /* Error */, "_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: diag(8008, 1 /* Error */, "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: diag(8009, 1 /* Error */, "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: diag(8010, 1 /* Error */, "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: diag(8011, 1 /* Error */, "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: diag(8012, 1 /* Error */, "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: diag(8013, 1 /* Error */, "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: diag(8016, 1 /* Error */, "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: diag(8017, 1 /* Error */, "Signature_declarations_can_only_be_used_in_TypeScript_files_8017", "Signature declarations can only be used in TypeScript files."), + Report_errors_in_js_files: diag(8019, 3 /* Message */, "Report_errors_in_js_files_8019", "Report errors in .js files."), + JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, 1 /* Error */, "JSDoc_types_can_only_be_used_inside_documentation_comments_8020", "JSDoc types can only be used inside documentation comments."), + JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, 1 /* Error */, "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021", "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."), + JSDoc_0_is_not_attached_to_a_class: diag(8022, 1 /* Error */, "JSDoc_0_is_not_attached_to_a_class_8022", "JSDoc '@{0}' is not attached to a class."), + JSDoc_0_1_does_not_match_the_extends_2_clause: diag(8023, 1 /* Error */, "JSDoc_0_1_does_not_match_the_extends_2_clause_8023", "JSDoc '@{0} {1}' does not match the 'extends {2}' clause."), + JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: diag(8024, 1 /* Error */, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name."), + Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: diag(8025, 1 /* Error */, "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025", "Class declarations cannot have more than one '@augments' or '@extends' tag."), + Expected_0_type_arguments_provide_these_with_an_extends_tag: diag(8026, 1 /* Error */, "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026", "Expected {0} type arguments; provide these with an '@extends' tag."), + Expected_0_1_type_arguments_provide_these_with_an_extends_tag: diag(8027, 1 /* Error */, "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027", "Expected {0}-{1} type arguments; provide these with an '@extends' tag."), + JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: diag(8028, 1 /* Error */, "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028", "JSDoc '...' may only appear in the last parameter of a signature."), + JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type: diag(8029, 1 /* Error */, "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029", "JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."), + The_type_of_a_function_declaration_must_match_the_function_s_signature: diag(8030, 1 /* Error */, "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030", "The type of a function declaration must match the function's signature."), + You_cannot_rename_a_module_via_a_global_import: diag(8031, 1 /* Error */, "You_cannot_rename_a_module_via_a_global_import_8031", "You cannot rename a module via a global import."), + Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, 1 /* Error */, "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032", "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."), + A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, 1 /* Error */, "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: diag(8034, 1 /* Error */, "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: diag(8035, 1 /* Error */, "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: diag(8036, 1 /* Error */, "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: diag(8037, 1 /* Error */, "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: diag(8038, 1 /* Error */, "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: diag(8039, 1 /* Error */, "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: diag(9005, 1 /* Error */, "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: diag(9006, 1 /* Error */, "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: diag(9007, 1 /* Error */, "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: diag(9008, 1 /* Error */, "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: diag(9009, 1 /* Error */, "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: diag(9010, 1 /* Error */, "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: diag(9011, 1 /* Error */, "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: diag(9012, 1 /* Error */, "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: diag(9013, 1 /* Error */, "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: diag(9014, 1 /* Error */, "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: diag(9015, 1 /* Error */, "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: diag(9016, 1 /* Error */, "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: diag(9017, 1 /* Error */, "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: diag(9018, 1 /* Error */, "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: diag(9019, 1 /* Error */, "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: diag(9020, 1 /* Error */, "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: diag(9021, 1 /* Error */, "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: diag(9022, 1 /* Error */, "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: diag(9023, 1 /* Error */, "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: diag(9025, 1 /* Error */, "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: diag(9026, 1 /* Error */, "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: diag(9027, 1 /* Error */, "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: diag(9028, 1 /* Error */, "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: diag(9029, 1 /* Error */, "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: diag(9030, 1 /* Error */, "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: diag(9031, 1 /* Error */, "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: diag(9032, 1 /* Error */, "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: diag(9033, 1 /* Error */, "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: diag(9034, 1 /* Error */, "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: diag(9035, 1 /* Error */, "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: diag(9036, 1 /* Error */, "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: diag(9037, 1 /* Error */, "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: diag(9038, 1 /* Error */, "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: diag(9039, 1 /* Error */, "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: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."), + JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, 1 /* Error */, "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001", "JSX elements cannot have multiple attributes with the same name."), + Expected_corresponding_JSX_closing_tag_for_0: diag(17002, 1 /* Error */, "Expected_corresponding_JSX_closing_tag_for_0_17002", "Expected corresponding JSX closing tag for '{0}'."), + Cannot_use_JSX_unless_the_jsx_flag_is_provided: diag(17004, 1 /* Error */, "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004", "Cannot use JSX unless the '--jsx' flag is provided."), + A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: diag(17005, 1 /* Error */, "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005", "A constructor cannot contain a 'super' call when its class extends 'null'."), + An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17006, 1 /* Error */, "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006", "An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), + A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17007, 1 /* Error */, "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007", "A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."), + JSX_element_0_has_no_corresponding_closing_tag: diag(17008, 1 /* Error */, "JSX_element_0_has_no_corresponding_closing_tag_17008", "JSX element '{0}' has no corresponding closing tag."), + super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class: diag(17009, 1 /* Error */, "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009", "'super' must be called before accessing 'this' in the constructor of a derived class."), + Unknown_type_acquisition_option_0: diag(17010, 1 /* Error */, "Unknown_type_acquisition_option_0_17010", "Unknown type acquisition option '{0}'."), + super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class: diag(17011, 1 /* Error */, "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011", "'super' must be called before accessing a property of 'super' in the constructor of a derived class."), + _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: diag(17012, 1 /* Error */, "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012", "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"), + Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor: diag(17013, 1 /* Error */, "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013", "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."), + JSX_fragment_has_no_corresponding_closing_tag: diag(17014, 1 /* Error */, "JSX_fragment_has_no_corresponding_closing_tag_17014", "JSX fragment has no corresponding closing tag."), + Expected_corresponding_closing_tag_for_JSX_fragment: diag(17015, 1 /* Error */, "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: diag(17016, 1 /* Error */, "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: diag(17017, 1 /* Error */, "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: diag(17018, 1 /* Error */, "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: diag(17019, 1 /* Error */, "_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: diag(17020, 1 /* Error */, "_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: diag(17021, 1 /* Error */, "Unicode_escape_sequence_cannot_appear_here_17021", "Unicode escape sequence cannot appear here."), + Circularity_detected_while_resolving_configuration_Colon_0: diag(18e3, 1 /* Error */, "Circularity_detected_while_resolving_configuration_Colon_0_18000", "Circularity detected while resolving configuration: {0}"), + The_files_list_in_config_file_0_is_empty: diag(18002, 1 /* Error */, "The_files_list_in_config_file_0_is_empty_18002", "The 'files' list in config file '{0}' is empty."), + No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2: diag(18003, 1 /* Error */, "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003", "No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."), + File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module: diag(80001, 2 /* Suggestion */, "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: diag(80002, 2 /* Suggestion */, "This_constructor_function_may_be_converted_to_a_class_declaration_80002", "This constructor function may be converted to a class declaration."), + Import_may_be_converted_to_a_default_import: diag(80003, 2 /* Suggestion */, "Import_may_be_converted_to_a_default_import_80003", "Import may be converted to a default import."), + JSDoc_types_may_be_moved_to_TypeScript_types: diag(80004, 2 /* Suggestion */, "JSDoc_types_may_be_moved_to_TypeScript_types_80004", "JSDoc types may be moved to TypeScript types."), + require_call_may_be_converted_to_an_import: diag(80005, 2 /* Suggestion */, "require_call_may_be_converted_to_an_import_80005", "'require' call may be converted to an import."), + This_may_be_converted_to_an_async_function: diag(80006, 2 /* Suggestion */, "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: diag(80007, 2 /* Suggestion */, "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: diag(80008, 2 /* Suggestion */, "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: diag(80009, 2 /* Suggestion */, "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: diag(80010, 2 /* Suggestion */, "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010", "JSDoc typedefs may be converted to TypeScript types."), + Add_missing_super_call: diag(90001, 3 /* Message */, "Add_missing_super_call_90001", "Add missing 'super()' call"), + Make_super_call_the_first_statement_in_the_constructor: diag(90002, 3 /* Message */, "Make_super_call_the_first_statement_in_the_constructor_90002", "Make 'super()' call the first statement in the constructor"), + Change_extends_to_implements: diag(90003, 3 /* Message */, "Change_extends_to_implements_90003", "Change 'extends' to 'implements'"), + Remove_unused_declaration_for_Colon_0: diag(90004, 3 /* Message */, "Remove_unused_declaration_for_Colon_0_90004", "Remove unused declaration for: '{0}'"), + Remove_import_from_0: diag(90005, 3 /* Message */, "Remove_import_from_0_90005", "Remove import from '{0}'"), + Implement_interface_0: diag(90006, 3 /* Message */, "Implement_interface_0_90006", "Implement interface '{0}'"), + Implement_inherited_abstract_class: diag(90007, 3 /* Message */, "Implement_inherited_abstract_class_90007", "Implement inherited abstract class"), + Add_0_to_unresolved_variable: diag(90008, 3 /* Message */, "Add_0_to_unresolved_variable_90008", "Add '{0}.' to unresolved variable"), + Remove_variable_statement: diag(90010, 3 /* Message */, "Remove_variable_statement_90010", "Remove variable statement"), + Remove_template_tag: diag(90011, 3 /* Message */, "Remove_template_tag_90011", "Remove template tag"), + Remove_type_parameters: diag(90012, 3 /* Message */, "Remove_type_parameters_90012", "Remove type parameters"), + Import_0_from_1: diag(90013, 3 /* Message */, "Import_0_from_1_90013", `Import '{0}' from "{1}"`), + Change_0_to_1: diag(90014, 3 /* Message */, "Change_0_to_1_90014", "Change '{0}' to '{1}'"), + Declare_property_0: diag(90016, 3 /* Message */, "Declare_property_0_90016", "Declare property '{0}'"), + Add_index_signature_for_property_0: diag(90017, 3 /* Message */, "Add_index_signature_for_property_0_90017", "Add index signature for property '{0}'"), + Disable_checking_for_this_file: diag(90018, 3 /* Message */, "Disable_checking_for_this_file_90018", "Disable checking for this file"), + Ignore_this_error_message: diag(90019, 3 /* Message */, "Ignore_this_error_message_90019", "Ignore this error message"), + Initialize_property_0_in_the_constructor: diag(90020, 3 /* Message */, "Initialize_property_0_in_the_constructor_90020", "Initialize property '{0}' in the constructor"), + Initialize_static_property_0: diag(90021, 3 /* Message */, "Initialize_static_property_0_90021", "Initialize static property '{0}'"), + Change_spelling_to_0: diag(90022, 3 /* Message */, "Change_spelling_to_0_90022", "Change spelling to '{0}'"), + Declare_method_0: diag(90023, 3 /* Message */, "Declare_method_0_90023", "Declare method '{0}'"), + Declare_static_method_0: diag(90024, 3 /* Message */, "Declare_static_method_0_90024", "Declare static method '{0}'"), + Prefix_0_with_an_underscore: diag(90025, 3 /* Message */, "Prefix_0_with_an_underscore_90025", "Prefix '{0}' with an underscore"), + Rewrite_as_the_indexed_access_type_0: diag(90026, 3 /* Message */, "Rewrite_as_the_indexed_access_type_0_90026", "Rewrite as the indexed access type '{0}'"), + Declare_static_property_0: diag(90027, 3 /* Message */, "Declare_static_property_0_90027", "Declare static property '{0}'"), + Call_decorator_expression: diag(90028, 3 /* Message */, "Call_decorator_expression_90028", "Call decorator expression"), + Add_async_modifier_to_containing_function: diag(90029, 3 /* Message */, "Add_async_modifier_to_containing_function_90029", "Add async modifier to containing function"), + Replace_infer_0_with_unknown: diag(90030, 3 /* Message */, "Replace_infer_0_with_unknown_90030", "Replace 'infer {0}' with 'unknown'"), + Replace_all_unused_infer_with_unknown: diag(90031, 3 /* Message */, "Replace_all_unused_infer_with_unknown_90031", "Replace all unused 'infer' with 'unknown'"), + Add_parameter_name: diag(90034, 3 /* Message */, "Add_parameter_name_90034", "Add parameter name"), + Declare_private_property_0: diag(90035, 3 /* Message */, "Declare_private_property_0_90035", "Declare private property '{0}'"), + Replace_0_with_Promise_1: diag(90036, 3 /* Message */, "Replace_0_with_Promise_1_90036", "Replace '{0}' with 'Promise<{1}>'"), + Fix_all_incorrect_return_type_of_an_async_functions: diag(90037, 3 /* Message */, "Fix_all_incorrect_return_type_of_an_async_functions_90037", "Fix all incorrect return type of an async functions"), + Declare_private_method_0: diag(90038, 3 /* Message */, "Declare_private_method_0_90038", "Declare private method '{0}'"), + Remove_unused_destructuring_declaration: diag(90039, 3 /* Message */, "Remove_unused_destructuring_declaration_90039", "Remove unused destructuring declaration"), + Remove_unused_declarations_for_Colon_0: diag(90041, 3 /* Message */, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"), + Declare_a_private_field_named_0: diag(90053, 3 /* Message */, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."), + Includes_imports_of_types_referenced_by_0: diag(90054, 3 /* Message */, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"), + Remove_type_from_import_declaration_from_0: diag(90055, 3 /* Message */, "Remove_type_from_import_declaration_from_0_90055", `Remove 'type' from import declaration from "{0}"`), + Remove_type_from_import_of_0_from_1: diag(90056, 3 /* Message */, "Remove_type_from_import_of_0_from_1_90056", `Remove 'type' from import of '{0}' from "{1}"`), + Add_import_from_0: diag(90057, 3 /* Message */, "Add_import_from_0_90057", 'Add import from "{0}"'), + Update_import_from_0: diag(90058, 3 /* Message */, "Update_import_from_0_90058", 'Update import from "{0}"'), + Export_0_from_module_1: diag(90059, 3 /* Message */, "Export_0_from_module_1_90059", "Export '{0}' from module '{1}'"), + Export_all_referenced_locals: diag(90060, 3 /* Message */, "Export_all_referenced_locals_90060", "Export all referenced locals"), + Update_modifiers_of_0: diag(90061, 3 /* Message */, "Update_modifiers_of_0_90061", "Update modifiers of '{0}'"), + Add_annotation_of_type_0: diag(90062, 3 /* Message */, "Add_annotation_of_type_0_90062", "Add annotation of type '{0}'"), + Add_return_type_0: diag(90063, 3 /* Message */, "Add_return_type_0_90063", "Add return type '{0}'"), + Extract_base_class_to_variable: diag(90064, 3 /* Message */, "Extract_base_class_to_variable_90064", "Extract base class to variable"), + Extract_default_export_to_variable: diag(90065, 3 /* Message */, "Extract_default_export_to_variable_90065", "Extract default export to variable"), + Extract_binding_expressions_to_variable: diag(90066, 3 /* Message */, "Extract_binding_expressions_to_variable_90066", "Extract binding expressions to variable"), + Add_all_missing_type_annotations: diag(90067, 3 /* Message */, "Add_all_missing_type_annotations_90067", "Add all missing type annotations"), + Add_satisfies_and_an_inline_type_assertion_with_0: diag(90068, 3 /* Message */, "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: diag(90069, 3 /* Message */, "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: diag(90070, 3 /* Message */, "Mark_array_literal_as_const_90070", "Mark array literal as const"), + Annotate_types_of_properties_expando_function_in_a_namespace: diag(90071, 3 /* Message */, "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: diag(95001, 3 /* Message */, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"), + Convert_0_to_1_in_0: diag(95003, 3 /* Message */, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"), + Extract_to_0_in_1: diag(95004, 3 /* Message */, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"), + Extract_function: diag(95005, 3 /* Message */, "Extract_function_95005", "Extract function"), + Extract_constant: diag(95006, 3 /* Message */, "Extract_constant_95006", "Extract constant"), + Extract_to_0_in_enclosing_scope: diag(95007, 3 /* Message */, "Extract_to_0_in_enclosing_scope_95007", "Extract to {0} in enclosing scope"), + Extract_to_0_in_1_scope: diag(95008, 3 /* Message */, "Extract_to_0_in_1_scope_95008", "Extract to {0} in {1} scope"), + Annotate_with_type_from_JSDoc: diag(95009, 3 /* Message */, "Annotate_with_type_from_JSDoc_95009", "Annotate with type from JSDoc"), + Infer_type_of_0_from_usage: diag(95011, 3 /* Message */, "Infer_type_of_0_from_usage_95011", "Infer type of '{0}' from usage"), + Infer_parameter_types_from_usage: diag(95012, 3 /* Message */, "Infer_parameter_types_from_usage_95012", "Infer parameter types from usage"), + Convert_to_default_import: diag(95013, 3 /* Message */, "Convert_to_default_import_95013", "Convert to default import"), + Install_0: diag(95014, 3 /* Message */, "Install_0_95014", "Install '{0}'"), + Replace_import_with_0: diag(95015, 3 /* Message */, "Replace_import_with_0_95015", "Replace import with '{0}'."), + Use_synthetic_default_member: diag(95016, 3 /* Message */, "Use_synthetic_default_member_95016", "Use synthetic 'default' member."), + Convert_to_ES_module: diag(95017, 3 /* Message */, "Convert_to_ES_module_95017", "Convert to ES module"), + Add_undefined_type_to_property_0: diag(95018, 3 /* Message */, "Add_undefined_type_to_property_0_95018", "Add 'undefined' type to property '{0}'"), + Add_initializer_to_property_0: diag(95019, 3 /* Message */, "Add_initializer_to_property_0_95019", "Add initializer to property '{0}'"), + Add_definite_assignment_assertion_to_property_0: diag(95020, 3 /* Message */, "Add_definite_assignment_assertion_to_property_0_95020", "Add definite assignment assertion to property '{0}'"), + Convert_all_type_literals_to_mapped_type: diag(95021, 3 /* Message */, "Convert_all_type_literals_to_mapped_type_95021", "Convert all type literals to mapped type"), + Add_all_missing_members: diag(95022, 3 /* Message */, "Add_all_missing_members_95022", "Add all missing members"), + Infer_all_types_from_usage: diag(95023, 3 /* Message */, "Infer_all_types_from_usage_95023", "Infer all types from usage"), + Delete_all_unused_declarations: diag(95024, 3 /* Message */, "Delete_all_unused_declarations_95024", "Delete all unused declarations"), + Prefix_all_unused_declarations_with_where_possible: diag(95025, 3 /* Message */, "Prefix_all_unused_declarations_with_where_possible_95025", "Prefix all unused declarations with '_' where possible"), + Fix_all_detected_spelling_errors: diag(95026, 3 /* Message */, "Fix_all_detected_spelling_errors_95026", "Fix all detected spelling errors"), + Add_initializers_to_all_uninitialized_properties: diag(95027, 3 /* Message */, "Add_initializers_to_all_uninitialized_properties_95027", "Add initializers to all uninitialized properties"), + Add_definite_assignment_assertions_to_all_uninitialized_properties: diag(95028, 3 /* Message */, "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028", "Add definite assignment assertions to all uninitialized properties"), + Add_undefined_type_to_all_uninitialized_properties: diag(95029, 3 /* Message */, "Add_undefined_type_to_all_uninitialized_properties_95029", "Add undefined type to all uninitialized properties"), + Change_all_jsdoc_style_types_to_TypeScript: diag(95030, 3 /* Message */, "Change_all_jsdoc_style_types_to_TypeScript_95030", "Change all jsdoc-style types to TypeScript"), + Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types: diag(95031, 3 /* Message */, "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031", "Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"), + Implement_all_unimplemented_interfaces: diag(95032, 3 /* Message */, "Implement_all_unimplemented_interfaces_95032", "Implement all unimplemented interfaces"), + Install_all_missing_types_packages: diag(95033, 3 /* Message */, "Install_all_missing_types_packages_95033", "Install all missing types packages"), + Rewrite_all_as_indexed_access_types: diag(95034, 3 /* Message */, "Rewrite_all_as_indexed_access_types_95034", "Rewrite all as indexed access types"), + Convert_all_to_default_imports: diag(95035, 3 /* Message */, "Convert_all_to_default_imports_95035", "Convert all to default imports"), + Make_all_super_calls_the_first_statement_in_their_constructor: diag(95036, 3 /* Message */, "Make_all_super_calls_the_first_statement_in_their_constructor_95036", "Make all 'super()' calls the first statement in their constructor"), + Add_qualifier_to_all_unresolved_variables_matching_a_member_name: diag(95037, 3 /* Message */, "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037", "Add qualifier to all unresolved variables matching a member name"), + Change_all_extended_interfaces_to_implements: diag(95038, 3 /* Message */, "Change_all_extended_interfaces_to_implements_95038", "Change all extended interfaces to 'implements'"), + Add_all_missing_super_calls: diag(95039, 3 /* Message */, "Add_all_missing_super_calls_95039", "Add all missing super calls"), + Implement_all_inherited_abstract_classes: diag(95040, 3 /* Message */, "Implement_all_inherited_abstract_classes_95040", "Implement all inherited abstract classes"), + Add_all_missing_async_modifiers: diag(95041, 3 /* Message */, "Add_all_missing_async_modifiers_95041", "Add all missing 'async' modifiers"), + Add_ts_ignore_to_all_error_messages: diag(95042, 3 /* Message */, "Add_ts_ignore_to_all_error_messages_95042", "Add '@ts-ignore' to all error messages"), + Annotate_everything_with_types_from_JSDoc: diag(95043, 3 /* Message */, "Annotate_everything_with_types_from_JSDoc_95043", "Annotate everything with types from JSDoc"), + Add_to_all_uncalled_decorators: diag(95044, 3 /* Message */, "Add_to_all_uncalled_decorators_95044", "Add '()' to all uncalled decorators"), + Convert_all_constructor_functions_to_classes: diag(95045, 3 /* Message */, "Convert_all_constructor_functions_to_classes_95045", "Convert all constructor functions to classes"), + Generate_get_and_set_accessors: diag(95046, 3 /* Message */, "Generate_get_and_set_accessors_95046", "Generate 'get' and 'set' accessors"), + Convert_require_to_import: diag(95047, 3 /* Message */, "Convert_require_to_import_95047", "Convert 'require' to 'import'"), + Convert_all_require_to_import: diag(95048, 3 /* Message */, "Convert_all_require_to_import_95048", "Convert all 'require' to 'import'"), + Move_to_a_new_file: diag(95049, 3 /* Message */, "Move_to_a_new_file_95049", "Move to a new file"), + Remove_unreachable_code: diag(95050, 3 /* Message */, "Remove_unreachable_code_95050", "Remove unreachable code"), + Remove_all_unreachable_code: diag(95051, 3 /* Message */, "Remove_all_unreachable_code_95051", "Remove all unreachable code"), + Add_missing_typeof: diag(95052, 3 /* Message */, "Add_missing_typeof_95052", "Add missing 'typeof'"), + Remove_unused_label: diag(95053, 3 /* Message */, "Remove_unused_label_95053", "Remove unused label"), + Remove_all_unused_labels: diag(95054, 3 /* Message */, "Remove_all_unused_labels_95054", "Remove all unused labels"), + Convert_0_to_mapped_object_type: diag(95055, 3 /* Message */, "Convert_0_to_mapped_object_type_95055", "Convert '{0}' to mapped object type"), + Convert_namespace_import_to_named_imports: diag(95056, 3 /* Message */, "Convert_namespace_import_to_named_imports_95056", "Convert namespace import to named imports"), + Convert_named_imports_to_namespace_import: diag(95057, 3 /* Message */, "Convert_named_imports_to_namespace_import_95057", "Convert named imports to namespace import"), + Add_or_remove_braces_in_an_arrow_function: diag(95058, 3 /* Message */, "Add_or_remove_braces_in_an_arrow_function_95058", "Add or remove braces in an arrow function"), + Add_braces_to_arrow_function: diag(95059, 3 /* Message */, "Add_braces_to_arrow_function_95059", "Add braces to arrow function"), + Remove_braces_from_arrow_function: diag(95060, 3 /* Message */, "Remove_braces_from_arrow_function_95060", "Remove braces from arrow function"), + Convert_default_export_to_named_export: diag(95061, 3 /* Message */, "Convert_default_export_to_named_export_95061", "Convert default export to named export"), + Convert_named_export_to_default_export: diag(95062, 3 /* Message */, "Convert_named_export_to_default_export_95062", "Convert named export to default export"), + Add_missing_enum_member_0: diag(95063, 3 /* Message */, "Add_missing_enum_member_0_95063", "Add missing enum member '{0}'"), + Add_all_missing_imports: diag(95064, 3 /* Message */, "Add_all_missing_imports_95064", "Add all missing imports"), + Convert_to_async_function: diag(95065, 3 /* Message */, "Convert_to_async_function_95065", "Convert to async function"), + Convert_all_to_async_functions: diag(95066, 3 /* Message */, "Convert_all_to_async_functions_95066", "Convert all to async functions"), + Add_missing_call_parentheses: diag(95067, 3 /* Message */, "Add_missing_call_parentheses_95067", "Add missing call parentheses"), + Add_all_missing_call_parentheses: diag(95068, 3 /* Message */, "Add_all_missing_call_parentheses_95068", "Add all missing call parentheses"), + Add_unknown_conversion_for_non_overlapping_types: diag(95069, 3 /* Message */, "Add_unknown_conversion_for_non_overlapping_types_95069", "Add 'unknown' conversion for non-overlapping types"), + Add_unknown_to_all_conversions_of_non_overlapping_types: diag(95070, 3 /* Message */, "Add_unknown_to_all_conversions_of_non_overlapping_types_95070", "Add 'unknown' to all conversions of non-overlapping types"), + Add_missing_new_operator_to_call: diag(95071, 3 /* Message */, "Add_missing_new_operator_to_call_95071", "Add missing 'new' operator to call"), + Add_missing_new_operator_to_all_calls: diag(95072, 3 /* Message */, "Add_missing_new_operator_to_all_calls_95072", "Add missing 'new' operator to all calls"), + Add_names_to_all_parameters_without_names: diag(95073, 3 /* Message */, "Add_names_to_all_parameters_without_names_95073", "Add names to all parameters without names"), + Enable_the_experimentalDecorators_option_in_your_configuration_file: diag(95074, 3 /* Message */, "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074", "Enable the 'experimentalDecorators' option in your configuration file"), + Convert_parameters_to_destructured_object: diag(95075, 3 /* Message */, "Convert_parameters_to_destructured_object_95075", "Convert parameters to destructured object"), + Extract_type: diag(95077, 3 /* Message */, "Extract_type_95077", "Extract type"), + Extract_to_type_alias: diag(95078, 3 /* Message */, "Extract_to_type_alias_95078", "Extract to type alias"), + Extract_to_typedef: diag(95079, 3 /* Message */, "Extract_to_typedef_95079", "Extract to typedef"), + Infer_this_type_of_0_from_usage: diag(95080, 3 /* Message */, "Infer_this_type_of_0_from_usage_95080", "Infer 'this' type of '{0}' from usage"), + Add_const_to_unresolved_variable: diag(95081, 3 /* Message */, "Add_const_to_unresolved_variable_95081", "Add 'const' to unresolved variable"), + Add_const_to_all_unresolved_variables: diag(95082, 3 /* Message */, "Add_const_to_all_unresolved_variables_95082", "Add 'const' to all unresolved variables"), + Add_await: diag(95083, 3 /* Message */, "Add_await_95083", "Add 'await'"), + Add_await_to_initializer_for_0: diag(95084, 3 /* Message */, "Add_await_to_initializer_for_0_95084", "Add 'await' to initializer for '{0}'"), + Fix_all_expressions_possibly_missing_await: diag(95085, 3 /* Message */, "Fix_all_expressions_possibly_missing_await_95085", "Fix all expressions possibly missing 'await'"), + Remove_unnecessary_await: diag(95086, 3 /* Message */, "Remove_unnecessary_await_95086", "Remove unnecessary 'await'"), + Remove_all_unnecessary_uses_of_await: diag(95087, 3 /* Message */, "Remove_all_unnecessary_uses_of_await_95087", "Remove all unnecessary uses of 'await'"), + Enable_the_jsx_flag_in_your_configuration_file: diag(95088, 3 /* Message */, "Enable_the_jsx_flag_in_your_configuration_file_95088", "Enable the '--jsx' flag in your configuration file"), + Add_await_to_initializers: diag(95089, 3 /* Message */, "Add_await_to_initializers_95089", "Add 'await' to initializers"), + Extract_to_interface: diag(95090, 3 /* Message */, "Extract_to_interface_95090", "Extract to interface"), + Convert_to_a_bigint_numeric_literal: diag(95091, 3 /* Message */, "Convert_to_a_bigint_numeric_literal_95091", "Convert to a bigint numeric literal"), + Convert_all_to_bigint_numeric_literals: diag(95092, 3 /* Message */, "Convert_all_to_bigint_numeric_literals_95092", "Convert all to bigint numeric literals"), + Convert_const_to_let: diag(95093, 3 /* Message */, "Convert_const_to_let_95093", "Convert 'const' to 'let'"), + Prefix_with_declare: diag(95094, 3 /* Message */, "Prefix_with_declare_95094", "Prefix with 'declare'"), + Prefix_all_incorrect_property_declarations_with_declare: diag(95095, 3 /* Message */, "Prefix_all_incorrect_property_declarations_with_declare_95095", "Prefix all incorrect property declarations with 'declare'"), + Convert_to_template_string: diag(95096, 3 /* Message */, "Convert_to_template_string_95096", "Convert to template string"), + Add_export_to_make_this_file_into_a_module: diag(95097, 3 /* Message */, "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: diag(95098, 3 /* Message */, "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: diag(95099, 3 /* Message */, "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: diag(95100, 3 /* Message */, "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: diag(95101, 3 /* Message */, "Convert_all_invalid_characters_to_HTML_entity_code_95101", "Convert all invalid characters to HTML entity code"), + Convert_all_const_to_let: diag(95102, 3 /* Message */, "Convert_all_const_to_let_95102", "Convert all 'const' to 'let'"), + Convert_function_expression_0_to_arrow_function: diag(95105, 3 /* Message */, "Convert_function_expression_0_to_arrow_function_95105", "Convert function expression '{0}' to arrow function"), + Convert_function_declaration_0_to_arrow_function: diag(95106, 3 /* Message */, "Convert_function_declaration_0_to_arrow_function_95106", "Convert function declaration '{0}' to arrow function"), + Fix_all_implicit_this_errors: diag(95107, 3 /* Message */, "Fix_all_implicit_this_errors_95107", "Fix all implicit-'this' errors"), + Wrap_invalid_character_in_an_expression_container: diag(95108, 3 /* Message */, "Wrap_invalid_character_in_an_expression_container_95108", "Wrap invalid character in an expression container"), + Wrap_all_invalid_characters_in_an_expression_container: diag(95109, 3 /* Message */, "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: diag(95110, 3 /* Message */, "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: diag(95111, 3 /* Message */, "Add_a_return_statement_95111", "Add a return statement"), + Remove_braces_from_arrow_function_body: diag(95112, 3 /* Message */, "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: diag(95113, 3 /* Message */, "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: diag(95114, 3 /* Message */, "Add_all_missing_return_statement_95114", "Add all missing return statement"), + Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: diag(95115, 3 /* Message */, "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: diag(95116, 3 /* Message */, "Wrap_all_object_literal_with_parentheses_95116", "Wrap all object literal with parentheses"), + Move_labeled_tuple_element_modifiers_to_labels: diag(95117, 3 /* Message */, "Move_labeled_tuple_element_modifiers_to_labels_95117", "Move labeled tuple element modifiers to labels"), + Convert_overload_list_to_single_signature: diag(95118, 3 /* Message */, "Convert_overload_list_to_single_signature_95118", "Convert overload list to single signature"), + Generate_get_and_set_accessors_for_all_overriding_properties: diag(95119, 3 /* Message */, "Generate_get_and_set_accessors_for_all_overriding_properties_95119", "Generate 'get' and 'set' accessors for all overriding properties"), + Wrap_in_JSX_fragment: diag(95120, 3 /* Message */, "Wrap_in_JSX_fragment_95120", "Wrap in JSX fragment"), + Wrap_all_unparented_JSX_in_JSX_fragment: diag(95121, 3 /* Message */, "Wrap_all_unparented_JSX_in_JSX_fragment_95121", "Wrap all unparented JSX in JSX fragment"), + Convert_arrow_function_or_function_expression: diag(95122, 3 /* Message */, "Convert_arrow_function_or_function_expression_95122", "Convert arrow function or function expression"), + Convert_to_anonymous_function: diag(95123, 3 /* Message */, "Convert_to_anonymous_function_95123", "Convert to anonymous function"), + Convert_to_named_function: diag(95124, 3 /* Message */, "Convert_to_named_function_95124", "Convert to named function"), + Convert_to_arrow_function: diag(95125, 3 /* Message */, "Convert_to_arrow_function_95125", "Convert to arrow function"), + Remove_parentheses: diag(95126, 3 /* Message */, "Remove_parentheses_95126", "Remove parentheses"), + Could_not_find_a_containing_arrow_function: diag(95127, 3 /* Message */, "Could_not_find_a_containing_arrow_function_95127", "Could not find a containing arrow function"), + Containing_function_is_not_an_arrow_function: diag(95128, 3 /* Message */, "Containing_function_is_not_an_arrow_function_95128", "Containing function is not an arrow function"), + Could_not_find_export_statement: diag(95129, 3 /* Message */, "Could_not_find_export_statement_95129", "Could not find export statement"), + This_file_already_has_a_default_export: diag(95130, 3 /* Message */, "This_file_already_has_a_default_export_95130", "This file already has a default export"), + Could_not_find_import_clause: diag(95131, 3 /* Message */, "Could_not_find_import_clause_95131", "Could not find import clause"), + Could_not_find_namespace_import_or_named_imports: diag(95132, 3 /* Message */, "Could_not_find_namespace_import_or_named_imports_95132", "Could not find namespace import or named imports"), + Selection_is_not_a_valid_type_node: diag(95133, 3 /* Message */, "Selection_is_not_a_valid_type_node_95133", "Selection is not a valid type node"), + No_type_could_be_extracted_from_this_type_node: diag(95134, 3 /* Message */, "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: diag(95135, 3 /* Message */, "Could_not_find_property_for_which_to_generate_accessor_95135", "Could not find property for which to generate accessor"), + Name_is_not_valid: diag(95136, 3 /* Message */, "Name_is_not_valid_95136", "Name is not valid"), + Can_only_convert_property_with_modifier: diag(95137, 3 /* Message */, "Can_only_convert_property_with_modifier_95137", "Can only convert property with modifier"), + Switch_each_misused_0_to_1: diag(95138, 3 /* Message */, "Switch_each_misused_0_to_1_95138", "Switch each misused '{0}' to '{1}'"), + Convert_to_optional_chain_expression: diag(95139, 3 /* Message */, "Convert_to_optional_chain_expression_95139", "Convert to optional chain expression"), + Could_not_find_convertible_access_expression: diag(95140, 3 /* Message */, "Could_not_find_convertible_access_expression_95140", "Could not find convertible access expression"), + Could_not_find_matching_access_expressions: diag(95141, 3 /* Message */, "Could_not_find_matching_access_expressions_95141", "Could not find matching access expressions"), + Can_only_convert_logical_AND_access_chains: diag(95142, 3 /* Message */, "Can_only_convert_logical_AND_access_chains_95142", "Can only convert logical AND access chains"), + Add_void_to_Promise_resolved_without_a_value: diag(95143, 3 /* Message */, "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: diag(95144, 3 /* Message */, "Add_void_to_all_Promises_resolved_without_a_value_95144", "Add 'void' to all Promises resolved without a value"), + Use_element_access_for_0: diag(95145, 3 /* Message */, "Use_element_access_for_0_95145", "Use element access for '{0}'"), + Use_element_access_for_all_undeclared_properties: diag(95146, 3 /* Message */, "Use_element_access_for_all_undeclared_properties_95146", "Use element access for all undeclared properties."), + Delete_all_unused_imports: diag(95147, 3 /* Message */, "Delete_all_unused_imports_95147", "Delete all unused imports"), + Infer_function_return_type: diag(95148, 3 /* Message */, "Infer_function_return_type_95148", "Infer function return type"), + Return_type_must_be_inferred_from_a_function: diag(95149, 3 /* Message */, "Return_type_must_be_inferred_from_a_function_95149", "Return type must be inferred from a function"), + Could_not_determine_function_return_type: diag(95150, 3 /* Message */, "Could_not_determine_function_return_type_95150", "Could not determine function return type"), + Could_not_convert_to_arrow_function: diag(95151, 3 /* Message */, "Could_not_convert_to_arrow_function_95151", "Could not convert to arrow function"), + Could_not_convert_to_named_function: diag(95152, 3 /* Message */, "Could_not_convert_to_named_function_95152", "Could not convert to named function"), + Could_not_convert_to_anonymous_function: diag(95153, 3 /* Message */, "Could_not_convert_to_anonymous_function_95153", "Could not convert to anonymous function"), + Can_only_convert_string_concatenations_and_string_literals: diag(95154, 3 /* Message */, "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: diag(95155, 3 /* Message */, "Selection_is_not_a_valid_statement_or_statements_95155", "Selection is not a valid statement or statements"), + Add_missing_function_declaration_0: diag(95156, 3 /* Message */, "Add_missing_function_declaration_0_95156", "Add missing function declaration '{0}'"), + Add_all_missing_function_declarations: diag(95157, 3 /* Message */, "Add_all_missing_function_declarations_95157", "Add all missing function declarations"), + Method_not_implemented: diag(95158, 3 /* Message */, "Method_not_implemented_95158", "Method not implemented."), + Function_not_implemented: diag(95159, 3 /* Message */, "Function_not_implemented_95159", "Function not implemented."), + Add_override_modifier: diag(95160, 3 /* Message */, "Add_override_modifier_95160", "Add 'override' modifier"), + Remove_override_modifier: diag(95161, 3 /* Message */, "Remove_override_modifier_95161", "Remove 'override' modifier"), + Add_all_missing_override_modifiers: diag(95162, 3 /* Message */, "Add_all_missing_override_modifiers_95162", "Add all missing 'override' modifiers"), + Remove_all_unnecessary_override_modifiers: diag(95163, 3 /* Message */, "Remove_all_unnecessary_override_modifiers_95163", "Remove all unnecessary 'override' modifiers"), + Can_only_convert_named_export: diag(95164, 3 /* Message */, "Can_only_convert_named_export_95164", "Can only convert named export"), + Add_missing_properties: diag(95165, 3 /* Message */, "Add_missing_properties_95165", "Add missing properties"), + Add_all_missing_properties: diag(95166, 3 /* Message */, "Add_all_missing_properties_95166", "Add all missing properties"), + Add_missing_attributes: diag(95167, 3 /* Message */, "Add_missing_attributes_95167", "Add missing attributes"), + Add_all_missing_attributes: diag(95168, 3 /* Message */, "Add_all_missing_attributes_95168", "Add all missing attributes"), + Add_undefined_to_optional_property_type: diag(95169, 3 /* Message */, "Add_undefined_to_optional_property_type_95169", "Add 'undefined' to optional property type"), + Convert_named_imports_to_default_import: diag(95170, 3 /* Message */, "Convert_named_imports_to_default_import_95170", "Convert named imports to default import"), + Delete_unused_param_tag_0: diag(95171, 3 /* Message */, "Delete_unused_param_tag_0_95171", "Delete unused '@param' tag '{0}'"), + Delete_all_unused_param_tags: diag(95172, 3 /* Message */, "Delete_all_unused_param_tags_95172", "Delete all unused '@param' tags"), + Rename_param_tag_name_0_to_1: diag(95173, 3 /* Message */, "Rename_param_tag_name_0_to_1_95173", "Rename '@param' tag name '{0}' to '{1}'"), + Use_0: diag(95174, 3 /* Message */, "Use_0_95174", "Use `{0}`."), + Use_Number_isNaN_in_all_conditions: diag(95175, 3 /* Message */, "Use_Number_isNaN_in_all_conditions_95175", "Use `Number.isNaN` in all conditions."), + Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."), + Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."), + Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"), + Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"), + Use_import_type: diag(95180, 3 /* Message */, "Use_import_type_95180", "Use 'import type'"), + Use_type_0: diag(95181, 3 /* Message */, "Use_type_0_95181", "Use 'type {0}'"), + Fix_all_with_type_only_imports: diag(95182, 3 /* Message */, "Fix_all_with_type_only_imports_95182", "Fix all with type-only imports"), + Cannot_move_statements_to_the_selected_file: diag(95183, 3 /* Message */, "Cannot_move_statements_to_the_selected_file_95183", "Cannot move statements to the selected file"), + Inline_variable: diag(95184, 3 /* Message */, "Inline_variable_95184", "Inline variable"), + Could_not_find_variable_to_inline: diag(95185, 3 /* Message */, "Could_not_find_variable_to_inline_95185", "Could not find variable to inline."), + Variables_with_multiple_declarations_cannot_be_inlined: diag(95186, 3 /* Message */, "Variables_with_multiple_declarations_cannot_be_inlined_95186", "Variables with multiple declarations cannot be inlined."), + Add_missing_comma_for_object_member_completion_0: diag(95187, 3 /* Message */, "Add_missing_comma_for_object_member_completion_0_95187", "Add missing comma for object member completion '{0}'."), + Add_missing_parameter_to_0: diag(95188, 3 /* Message */, "Add_missing_parameter_to_0_95188", "Add missing parameter to '{0}'"), + Add_missing_parameters_to_0: diag(95189, 3 /* Message */, "Add_missing_parameters_to_0_95189", "Add missing parameters to '{0}'"), + Add_all_missing_parameters: diag(95190, 3 /* Message */, "Add_all_missing_parameters_95190", "Add all missing parameters"), + Add_optional_parameter_to_0: diag(95191, 3 /* Message */, "Add_optional_parameter_to_0_95191", "Add optional parameter to '{0}'"), + Add_optional_parameters_to_0: diag(95192, 3 /* Message */, "Add_optional_parameters_to_0_95192", "Add optional parameters to '{0}'"), + Add_all_optional_parameters: diag(95193, 3 /* Message */, "Add_all_optional_parameters_95193", "Add all optional parameters"), + Wrap_in_parentheses: diag(95194, 3 /* Message */, "Wrap_in_parentheses_95194", "Wrap in parentheses"), + Wrap_all_invalid_decorator_expressions_in_parentheses: diag(95195, 3 /* Message */, "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: diag(18004, 1 /* Error */, "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: diag(18006, 1 /* Error */, "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: diag(18007, 1 /* Error */, "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: diag(18009, 1 /* Error */, "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: diag(18010, 1 /* Error */, "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: diag(18011, 1 /* Error */, "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: diag(18012, 1 /* Error */, "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: diag(18013, 1 /* Error */, "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: diag(18014, 1 /* Error */, "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: diag(18015, 1 /* Error */, "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: diag(18016, 1 /* Error */, "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: diag(18017, 1 /* Error */, "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: diag(18018, 1 /* Error */, "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: diag(18019, 1 /* Error */, "_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: diag(18024, 1 /* Error */, "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: diag(18026, 1 /* Error */, "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: diag(18027, 1 /* Error */, "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: diag(18028, 1 /* Error */, "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: diag(18029, 1 /* Error */, "Private_identifiers_are_not_allowed_in_variable_declarations_18029", "Private identifiers are not allowed in variable declarations."), + An_optional_chain_cannot_contain_private_identifiers: diag(18030, 1 /* Error */, "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: diag(18031, 1 /* Error */, "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: diag(18032, 1 /* Error */, "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: diag(18033, 1 /* Error */, "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: diag(18034, 3 /* Message */, "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: diag(18035, 1 /* Error */, "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: diag(18036, 1 /* Error */, "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: diag(18037, 1 /* Error */, "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: diag(18038, 1 /* Error */, "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: diag(18039, 1 /* Error */, "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: diag(18041, 1 /* Error */, "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: diag(18042, 1 /* Error */, "_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: diag(18043, 1 /* Error */, "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043", "Types cannot appear in export declarations in JavaScript files."), + _0_is_automatically_exported_here: diag(18044, 3 /* Message */, "_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: diag(18045, 1 /* Error */, "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: diag(18046, 1 /* Error */, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."), + _0_is_possibly_null: diag(18047, 1 /* Error */, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."), + _0_is_possibly_undefined: diag(18048, 1 /* Error */, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."), + _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."), + The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."), + Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "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: diag(18053, 1 /* Error */, "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: diag(18054, 1 /* Error */, "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: diag(18055, 1 /* Error */, "_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: diag(18056, 1 /* Error */, "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.") +}; + +// src/compiler/scanner.ts +function tokenIsIdentifierOrKeyword(token) { + return token >= 80 /* Identifier */; +} +function tokenIsIdentifierOrKeywordOrGreaterThan(token) { + return token === 32 /* GreaterThanToken */ || tokenIsIdentifierOrKeyword(token); +} +var textToKeywordObj = { + abstract: 128 /* AbstractKeyword */, + accessor: 129 /* AccessorKeyword */, + any: 133 /* AnyKeyword */, + as: 130 /* AsKeyword */, + asserts: 131 /* AssertsKeyword */, + assert: 132 /* AssertKeyword */, + bigint: 163 /* BigIntKeyword */, + boolean: 136 /* BooleanKeyword */, + break: 83 /* BreakKeyword */, + case: 84 /* CaseKeyword */, + catch: 85 /* CatchKeyword */, + class: 86 /* ClassKeyword */, + continue: 88 /* ContinueKeyword */, + const: 87 /* ConstKeyword */, + ["constructor"]: 137 /* ConstructorKeyword */, + debugger: 89 /* DebuggerKeyword */, + declare: 138 /* DeclareKeyword */, + default: 90 /* DefaultKeyword */, + delete: 91 /* DeleteKeyword */, + do: 92 /* DoKeyword */, + else: 93 /* ElseKeyword */, + enum: 94 /* EnumKeyword */, + export: 95 /* ExportKeyword */, + extends: 96 /* ExtendsKeyword */, + false: 97 /* FalseKeyword */, + finally: 98 /* FinallyKeyword */, + for: 99 /* ForKeyword */, + from: 161 /* FromKeyword */, + function: 100 /* FunctionKeyword */, + get: 139 /* GetKeyword */, + if: 101 /* IfKeyword */, + implements: 119 /* ImplementsKeyword */, + import: 102 /* ImportKeyword */, + in: 103 /* InKeyword */, + infer: 140 /* InferKeyword */, + instanceof: 104 /* InstanceOfKeyword */, + interface: 120 /* InterfaceKeyword */, + intrinsic: 141 /* IntrinsicKeyword */, + is: 142 /* IsKeyword */, + keyof: 143 /* KeyOfKeyword */, + let: 121 /* LetKeyword */, + module: 144 /* ModuleKeyword */, + namespace: 145 /* NamespaceKeyword */, + never: 146 /* NeverKeyword */, + new: 105 /* NewKeyword */, + null: 106 /* NullKeyword */, + number: 150 /* NumberKeyword */, + object: 151 /* ObjectKeyword */, + package: 122 /* PackageKeyword */, + private: 123 /* PrivateKeyword */, + protected: 124 /* ProtectedKeyword */, + public: 125 /* PublicKeyword */, + override: 164 /* OverrideKeyword */, + out: 147 /* OutKeyword */, + readonly: 148 /* ReadonlyKeyword */, + require: 149 /* RequireKeyword */, + global: 162 /* GlobalKeyword */, + return: 107 /* ReturnKeyword */, + satisfies: 152 /* SatisfiesKeyword */, + set: 153 /* SetKeyword */, + static: 126 /* StaticKeyword */, + string: 154 /* StringKeyword */, + super: 108 /* SuperKeyword */, + switch: 109 /* SwitchKeyword */, + symbol: 155 /* SymbolKeyword */, + this: 110 /* ThisKeyword */, + throw: 111 /* ThrowKeyword */, + true: 112 /* TrueKeyword */, + try: 113 /* TryKeyword */, + type: 156 /* TypeKeyword */, + typeof: 114 /* TypeOfKeyword */, + undefined: 157 /* UndefinedKeyword */, + unique: 158 /* UniqueKeyword */, + unknown: 159 /* UnknownKeyword */, + using: 160 /* UsingKeyword */, + var: 115 /* VarKeyword */, + void: 116 /* VoidKeyword */, + while: 117 /* WhileKeyword */, + with: 118 /* WithKeyword */, + yield: 127 /* YieldKeyword */, + async: 134 /* AsyncKeyword */, + await: 135 /* AwaitKeyword */, + of: 165 /* OfKeyword */ +}; +var textToKeyword = new Map(Object.entries(textToKeywordObj)); +var textToToken = new Map(Object.entries({ + ...textToKeywordObj, + "{": 19 /* OpenBraceToken */, + "}": 20 /* CloseBraceToken */, + "(": 21 /* OpenParenToken */, + ")": 22 /* CloseParenToken */, + "[": 23 /* OpenBracketToken */, + "]": 24 /* CloseBracketToken */, + ".": 25 /* DotToken */, + "...": 26 /* DotDotDotToken */, + ";": 27 /* SemicolonToken */, + ",": 28 /* CommaToken */, + "<": 30 /* LessThanToken */, + ">": 32 /* GreaterThanToken */, + "<=": 33 /* LessThanEqualsToken */, + ">=": 34 /* GreaterThanEqualsToken */, + "==": 35 /* EqualsEqualsToken */, + "!=": 36 /* ExclamationEqualsToken */, + "===": 37 /* EqualsEqualsEqualsToken */, + "!==": 38 /* ExclamationEqualsEqualsToken */, + "=>": 39 /* EqualsGreaterThanToken */, + "+": 40 /* PlusToken */, + "-": 41 /* MinusToken */, + "**": 43 /* AsteriskAsteriskToken */, + "*": 42 /* AsteriskToken */, + "/": 44 /* SlashToken */, + "%": 45 /* PercentToken */, + "++": 46 /* PlusPlusToken */, + "--": 47 /* MinusMinusToken */, + "<<": 48 /* LessThanLessThanToken */, + ">": 49 /* GreaterThanGreaterThanToken */, + ">>>": 50 /* GreaterThanGreaterThanGreaterThanToken */, + "&": 51 /* AmpersandToken */, + "|": 52 /* BarToken */, + "^": 53 /* CaretToken */, + "!": 54 /* ExclamationToken */, + "~": 55 /* TildeToken */, + "&&": 56 /* AmpersandAmpersandToken */, + "||": 57 /* BarBarToken */, + "?": 58 /* QuestionToken */, + "??": 61 /* QuestionQuestionToken */, + "?.": 29 /* QuestionDotToken */, + ":": 59 /* ColonToken */, + "=": 64 /* EqualsToken */, + "+=": 65 /* PlusEqualsToken */, + "-=": 66 /* MinusEqualsToken */, + "*=": 67 /* AsteriskEqualsToken */, + "**=": 68 /* AsteriskAsteriskEqualsToken */, + "/=": 69 /* SlashEqualsToken */, + "%=": 70 /* PercentEqualsToken */, + "<<=": 71 /* LessThanLessThanEqualsToken */, + ">>=": 72 /* GreaterThanGreaterThanEqualsToken */, + ">>>=": 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */, + "&=": 74 /* AmpersandEqualsToken */, + "|=": 75 /* BarEqualsToken */, + "^=": 79 /* CaretEqualsToken */, + "||=": 76 /* BarBarEqualsToken */, + "&&=": 77 /* AmpersandAmpersandEqualsToken */, + "??=": 78 /* QuestionQuestionEqualsToken */, + "@": 60 /* AtToken */, + "#": 63 /* HashToken */, + "`": 62 /* BacktickToken */ +})); +var charToRegExpFlag = new Map(Object.entries({ + d: 1 /* HasIndices */, + g: 2 /* Global */, + i: 4 /* IgnoreCase */, + m: 8 /* Multiline */, + s: 16 /* DotAll */, + u: 32 /* Unicode */, + v: 64 /* UnicodeSets */, + y: 128 /* Sticky */ +})); +var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([ + [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */], + [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */], + [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */], + [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */], + [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */] +]); +var unicodeES5IdentifierStart = [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]; +var unicodeES5IdentifierPart = [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]; +var unicodeESNextIdentifierStart = [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]; +var unicodeESNextIdentifierPart = [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]; +var commentDirectiveRegExSingleLine = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/; +var commentDirectiveRegExMultiLine = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/; +var jsDocSeeOrLink = /@(?:see|link)/i; +function lookupInUnicodeMap(code, map2) { + if (code < map2[0]) { + return false; + } + let lo = 0; + let hi = map2.length; + let mid; + while (lo + 1 < hi) { + mid = lo + (hi - lo) / 2; + mid -= mid % 2; + if (map2[mid] <= code && code <= map2[mid + 1]) { + return true; + } + if (code < map2[mid]) { + hi = mid; + } else { + lo = mid + 2; + } + } + return false; +} +function isUnicodeIdentifierStart(code, languageVersion) { + return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code, unicodeES5IdentifierStart); +} +function isUnicodeIdentifierPart(code, languageVersion) { + return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code, unicodeES5IdentifierPart); +} +function makeReverseMap(source) { + const result = []; + source.forEach((value, name) => { + result[value] = name; + }); + return result; +} +var tokenStrings = makeReverseMap(textToToken); +function tokenToString(t) { + return tokenStrings[t]; +} +function stringToToken(s) { + return textToToken.get(s); +} +var regExpFlagChars = makeReverseMap(charToRegExpFlag); +function characterToRegularExpressionFlag(c) { + return charToRegExpFlag.get(c); +} +function computeLineStarts(text) { + const result = []; + let pos = 0; + let lineStart = 0; + while (pos < text.length) { + const ch = text.charCodeAt(pos); + pos++; + switch (ch) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos) === 10 /* lineFeed */) { + pos++; + } + case 10 /* lineFeed */: + result.push(lineStart); + lineStart = pos; + break; + default: + if (ch > 127 /* maxAsciiCharacter */ && isLineBreak(ch)) { + result.push(lineStart); + lineStart = pos; + } + break; + } + } + result.push(lineStart); + return result; +} +function getPositionOfLineAndCharacter(sourceFile, line, character, allowEdits) { + return sourceFile.getPositionOfLineAndCharacter ? sourceFile.getPositionOfLineAndCharacter(line, character, allowEdits) : computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character, sourceFile.text, allowEdits); +} +function computePositionOfLineAndCharacter(lineStarts, line, character, debugText, allowEdits) { + if (line < 0 || line >= lineStarts.length) { + if (allowEdits) { + line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line; + } else { + Debug.fail(`Bad line number. Line: ${line}, lineStarts.length: ${lineStarts.length} , line map is correct? ${debugText !== void 0 ? arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"}`); + } + } + const res = lineStarts[line] + character; + if (allowEdits) { + return res > lineStarts[line + 1] ? lineStarts[line + 1] : typeof debugText === "string" && res > debugText.length ? debugText.length : res; + } + if (line < lineStarts.length - 1) { + Debug.assert(res < lineStarts[line + 1]); + } else if (debugText !== void 0) { + Debug.assert(res <= debugText.length); + } + return res; +} +function getLineStarts(sourceFile) { + return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text)); +} +function computeLineAndCharacterOfPosition(lineStarts, position) { + const lineNumber = computeLineOfPosition(lineStarts, position); + return { + line: lineNumber, + character: position - lineStarts[lineNumber] + }; +} +function computeLineOfPosition(lineStarts, position, lowerBound) { + let lineNumber = binarySearch(lineStarts, position, identity, compareValues, lowerBound); + if (lineNumber < 0) { + lineNumber = ~lineNumber - 1; + Debug.assert(lineNumber !== -1, "position cannot precede the beginning of the file"); + } + return lineNumber; +} +function getLinesBetweenPositions(sourceFile, pos1, pos2) { + if (pos1 === pos2) return 0; + const lineStarts = getLineStarts(sourceFile); + const lower = Math.min(pos1, pos2); + const isNegative = lower === pos2; + const upper = isNegative ? pos1 : pos2; + const lowerLine = computeLineOfPosition(lineStarts, lower); + const upperLine = computeLineOfPosition(lineStarts, upper, lowerLine); + return isNegative ? lowerLine - upperLine : upperLine - lowerLine; +} +function getLineAndCharacterOfPosition(sourceFile, position) { + return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position); +} +function isWhiteSpaceLike(ch) { + return isWhiteSpaceSingleLine(ch) || isLineBreak(ch); +} +function isWhiteSpaceSingleLine(ch) { + return ch === 32 /* space */ || ch === 9 /* tab */ || ch === 11 /* verticalTab */ || ch === 12 /* formFeed */ || ch === 160 /* nonBreakingSpace */ || ch === 133 /* nextLine */ || ch === 5760 /* ogham */ || ch >= 8192 /* enQuad */ && ch <= 8203 /* zeroWidthSpace */ || ch === 8239 /* narrowNoBreakSpace */ || ch === 8287 /* mathematicalSpace */ || ch === 12288 /* ideographicSpace */ || ch === 65279 /* byteOrderMark */; +} +function isLineBreak(ch) { + return ch === 10 /* lineFeed */ || ch === 13 /* carriageReturn */ || ch === 8232 /* lineSeparator */ || ch === 8233 /* paragraphSeparator */; +} +function isDigit(ch) { + return ch >= 48 /* _0 */ && ch <= 57 /* _9 */; +} +function isHexDigit(ch) { + return isDigit(ch) || ch >= 65 /* A */ && ch <= 70 /* F */ || ch >= 97 /* a */ && ch <= 102 /* f */; +} +function isASCIILetter(ch) { + return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */; +} +function isWordCharacter(ch) { + return isASCIILetter(ch) || isDigit(ch) || ch === 95 /* _ */; +} +function isOctalDigit(ch) { + return ch >= 48 /* _0 */ && ch <= 55 /* _7 */; +} +function skipTrivia(text, pos, stopAfterLineBreak, stopAtComments, inJSDoc) { + if (positionIsSynthesized(pos)) { + return pos; + } + let canConsumeStar = false; + while (true) { + const ch = text.charCodeAt(pos); + switch (ch) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { + pos++; + } + case 10 /* lineFeed */: + pos++; + if (stopAfterLineBreak) { + return pos; + } + canConsumeStar = !!inJSDoc; + continue; + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: + pos++; + continue; + case 47 /* slash */: + if (stopAtComments) { + break; + } + if (text.charCodeAt(pos + 1) === 47 /* slash */) { + pos += 2; + while (pos < text.length) { + if (isLineBreak(text.charCodeAt(pos))) { + break; + } + pos++; + } + canConsumeStar = false; + continue; + } + if (text.charCodeAt(pos + 1) === 42 /* asterisk */) { + pos += 2; + while (pos < text.length) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { + pos += 2; + break; + } + pos++; + } + canConsumeStar = false; + continue; + } + break; + case 60 /* lessThan */: + case 124 /* bar */: + case 61 /* equals */: + case 62 /* greaterThan */: + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos); + canConsumeStar = false; + continue; + } + break; + case 35 /* hash */: + if (pos === 0 && isShebangTrivia(text, pos)) { + pos = scanShebangTrivia(text, pos); + canConsumeStar = false; + continue; + } + break; + case 42 /* asterisk */: + if (canConsumeStar) { + pos++; + canConsumeStar = false; + continue; + } + break; + default: + if (ch > 127 /* maxAsciiCharacter */ && isWhiteSpaceLike(ch)) { + pos++; + continue; + } + break; + } + return pos; + } +} +var mergeConflictMarkerLength = "<<<<<<<".length; +function isConflictMarkerTrivia(text, pos) { + Debug.assert(pos >= 0); + if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) { + const ch = text.charCodeAt(pos); + if (pos + mergeConflictMarkerLength < text.length) { + for (let i = 0; i < mergeConflictMarkerLength; i++) { + if (text.charCodeAt(pos + i) !== ch) { + return false; + } + } + return ch === 61 /* equals */ || text.charCodeAt(pos + mergeConflictMarkerLength) === 32 /* space */; + } + } + return false; +} +function scanConflictMarkerTrivia(text, pos, error) { + if (error) { + error(Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength); + } + const ch = text.charCodeAt(pos); + const len = text.length; + if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) { + while (pos < len && !isLineBreak(text.charCodeAt(pos))) { + pos++; + } + } else { + Debug.assert(ch === 124 /* bar */ || ch === 61 /* equals */); + while (pos < len) { + const currentChar = text.charCodeAt(pos); + if ((currentChar === 61 /* equals */ || currentChar === 62 /* greaterThan */) && currentChar !== ch && isConflictMarkerTrivia(text, pos)) { + break; + } + pos++; + } + } + return pos; +} +var shebangTriviaRegex = /^#!.*/; +function isShebangTrivia(text, pos) { + Debug.assert(pos === 0); + return shebangTriviaRegex.test(text); +} +function scanShebangTrivia(text, pos) { + const shebang = shebangTriviaRegex.exec(text)[0]; + pos = pos + shebang.length; + return pos; +} +function iterateCommentRanges(reduce, text, pos, trailing, cb, state, initial) { + let pendingPos; + let pendingEnd; + let pendingKind; + let pendingHasTrailingNewLine; + let hasPendingCommentRange = false; + let collecting = trailing; + let accumulator = initial; + if (pos === 0) { + collecting = true; + const shebang = getShebang(text); + if (shebang) { + pos = shebang.length; + } + } + scan: + while (pos >= 0 && pos < text.length) { + const ch = text.charCodeAt(pos); + switch (ch) { + case 13 /* carriageReturn */: + if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { + pos++; + } + case 10 /* lineFeed */: + pos++; + if (trailing) { + break scan; + } + collecting = true; + if (hasPendingCommentRange) { + pendingHasTrailingNewLine = true; + } + continue; + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: + pos++; + continue; + case 47 /* slash */: + const nextChar = text.charCodeAt(pos + 1); + let hasTrailingNewLine = false; + if (nextChar === 47 /* slash */ || nextChar === 42 /* asterisk */) { + const kind = nextChar === 47 /* slash */ ? 2 /* SingleLineCommentTrivia */ : 3 /* MultiLineCommentTrivia */; + const startPos = pos; + pos += 2; + if (nextChar === 47 /* slash */) { + while (pos < text.length) { + if (isLineBreak(text.charCodeAt(pos))) { + hasTrailingNewLine = true; + break; + } + pos++; + } + } else { + while (pos < text.length) { + if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) { + pos += 2; + break; + } + pos++; + } + } + if (collecting) { + if (hasPendingCommentRange) { + accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator); + if (!reduce && accumulator) { + return accumulator; + } + } + pendingPos = startPos; + pendingEnd = pos; + pendingKind = kind; + pendingHasTrailingNewLine = hasTrailingNewLine; + hasPendingCommentRange = true; + } + continue; + } + break scan; + default: + if (ch > 127 /* maxAsciiCharacter */ && isWhiteSpaceLike(ch)) { + if (hasPendingCommentRange && isLineBreak(ch)) { + pendingHasTrailingNewLine = true; + } + pos++; + continue; + } + break scan; + } + } + if (hasPendingCommentRange) { + accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator); + } + return accumulator; +} +function forEachLeadingCommentRange(text, pos, cb, state) { + return iterateCommentRanges( + /*reduce*/ + false, + text, + pos, + /*trailing*/ + false, + cb, + state + ); +} +function forEachTrailingCommentRange(text, pos, cb, state) { + return iterateCommentRanges( + /*reduce*/ + false, + text, + pos, + /*trailing*/ + true, + cb, + state + ); +} +function reduceEachLeadingCommentRange(text, pos, cb, state, initial) { + return iterateCommentRanges( + /*reduce*/ + true, + text, + pos, + /*trailing*/ + false, + cb, + state, + initial + ); +} +function reduceEachTrailingCommentRange(text, pos, cb, state, initial) { + return iterateCommentRanges( + /*reduce*/ + true, + text, + pos, + /*trailing*/ + true, + cb, + state, + initial + ); +} +function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments = []) { + comments.push({ kind, pos, end, hasTrailingNewLine }); + return comments; +} +function getLeadingCommentRanges(text, pos) { + return reduceEachLeadingCommentRange( + text, + pos, + appendCommentRange, + /*state*/ + void 0, + /*initial*/ + void 0 + ); +} +function getTrailingCommentRanges(text, pos) { + return reduceEachTrailingCommentRange( + text, + pos, + appendCommentRange, + /*state*/ + void 0, + /*initial*/ + void 0 + ); +} +function getShebang(text) { + const match = shebangTriviaRegex.exec(text); + if (match) { + return match[0]; + } +} +function isIdentifierStart(ch, languageVersion) { + return isASCIILetter(ch) || ch === 36 /* $ */ || ch === 95 /* _ */ || ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion); +} +function isIdentifierPart(ch, languageVersion, identifierVariant) { + return isWordCharacter(ch) || ch === 36 /* $ */ || // "-" and ":" are valid in JSX Identifiers + (identifierVariant === 1 /* JSX */ ? ch === 45 /* minus */ || ch === 58 /* colon */ : false) || ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion); +} +function isIdentifierText(name, languageVersion, identifierVariant) { + let ch = codePointAt(name, 0); + if (!isIdentifierStart(ch, languageVersion)) { + return false; + } + for (let i = charSize(ch); i < name.length; i += charSize(ch)) { + if (!isIdentifierPart(ch = codePointAt(name, i), languageVersion, identifierVariant)) { + return false; + } + } + return true; +} +function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Standard */, textInitial, onError, start, length2) { + var text = textInitial; + var pos; + var end; + var fullStartPos; + var tokenStart; + var token; + var tokenValue; + var tokenFlags; + var commentDirectives; + var skipJsDocLeadingAsterisks = 0; + var asteriskSeen = false; + var scriptKind = 0 /* Unknown */; + var jsDocParsingMode = 0 /* ParseAll */; + setText(text, start, length2); + var scanner = { + getTokenFullStart: () => fullStartPos, + getStartPos: () => fullStartPos, + getTokenEnd: () => pos, + getTextPos: () => pos, + getToken: () => token, + getTokenStart: () => tokenStart, + getTokenPos: () => tokenStart, + getTokenText: () => text.substring(tokenStart, pos), + getTokenValue: () => tokenValue, + hasUnicodeEscape: () => (tokenFlags & 1024 /* UnicodeEscape */) !== 0, + hasExtendedUnicodeEscape: () => (tokenFlags & 8 /* ExtendedUnicodeEscape */) !== 0, + hasPrecedingLineBreak: () => (tokenFlags & 1 /* PrecedingLineBreak */) !== 0, + hasPrecedingJSDocComment: () => (tokenFlags & 2 /* PrecedingJSDocComment */) !== 0, + isIdentifier: () => token === 80 /* Identifier */ || token > 118 /* LastReservedWord */, + isReservedWord: () => token >= 83 /* FirstReservedWord */ && token <= 118 /* LastReservedWord */, + isUnterminated: () => (tokenFlags & 4 /* Unterminated */) !== 0, + getCommentDirectives: () => commentDirectives, + getNumericLiteralFlags: () => tokenFlags & 25584 /* NumericLiteralFlags */, + getTokenFlags: () => tokenFlags, + reScanGreaterToken, + reScanAsteriskEqualsToken, + reScanSlashToken, + reScanTemplateToken, + reScanTemplateHeadOrNoSubstitutionTemplate, + scanJsxIdentifier, + scanJsxAttributeValue, + reScanJsxAttributeValue, + reScanJsxToken, + reScanLessThanToken, + reScanHashToken, + reScanQuestionToken, + reScanInvalidIdentifier, + scanJsxToken, + scanJsDocToken, + scanJSDocCommentTextToken, + scan, + getText, + clearCommentDirectives, + setText, + setScriptTarget, + setLanguageVariant, + setScriptKind, + setJSDocParsingMode, + setOnError, + resetTokenState, + setTextPos: resetTokenState, + setSkipJsDocLeadingAsterisks, + hasLeadingAsterisks, + tryScan, + lookAhead, + scanRange + }; + if (Debug.isDebugging) { + Object.defineProperty(scanner, "__debugShowCurrentPositionInText", { + get: () => { + const text2 = scanner.getText(); + return text2.slice(0, scanner.getTokenFullStart()) + "\u2551" + text2.slice(scanner.getTokenFullStart()); + } + }); + } + return scanner; + function codePointUnchecked(pos2) { + return codePointAt(text, pos2); + } + function codePointChecked(pos2) { + return pos2 >= 0 && pos2 < end ? codePointUnchecked(pos2) : -1 /* EOF */; + } + function charCodeUnchecked(pos2) { + return text.charCodeAt(pos2); + } + function charCodeChecked(pos2) { + return pos2 >= 0 && pos2 < end ? charCodeUnchecked(pos2) : -1 /* EOF */; + } + function error(message, errPos = pos, length3, arg0) { + if (onError) { + const oldPos = pos; + pos = errPos; + onError(message, length3 || 0, arg0); + pos = oldPos; + } + } + function scanNumberFragment() { + let start2 = pos; + let allowSeparator = false; + let isPreviousTokenSeparator = false; + let result = ""; + while (true) { + const ch = charCodeUnchecked(pos); + if (ch === 95 /* _ */) { + tokenFlags |= 512 /* ContainsSeparator */; + if (allowSeparator) { + allowSeparator = false; + isPreviousTokenSeparator = true; + result += text.substring(start2, pos); + } else { + tokenFlags |= 16384 /* ContainsInvalidSeparator */; + if (isPreviousTokenSeparator) { + error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + } else { + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + } + } + pos++; + start2 = pos; + continue; + } + if (isDigit(ch)) { + allowSeparator = true; + isPreviousTokenSeparator = false; + pos++; + continue; + } + break; + } + if (charCodeUnchecked(pos - 1) === 95 /* _ */) { + tokenFlags |= 16384 /* ContainsInvalidSeparator */; + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + } + return result + text.substring(start2, pos); + } + function scanNumber() { + let start2 = pos; + let mainFragment; + if (charCodeUnchecked(pos) === 48 /* _0 */) { + pos++; + if (charCodeUnchecked(pos) === 95 /* _ */) { + tokenFlags |= 512 /* ContainsSeparator */ | 16384 /* ContainsInvalidSeparator */; + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + pos--; + mainFragment = scanNumberFragment(); + } else if (!scanDigits()) { + tokenFlags |= 8192 /* ContainsLeadingZero */; + mainFragment = "" + +tokenValue; + } else if (!tokenValue) { + mainFragment = "0"; + } else { + tokenValue = "" + parseInt(tokenValue, 8); + tokenFlags |= 32 /* Octal */; + const withMinus = token === 41 /* MinusToken */; + const literal = (withMinus ? "-" : "") + "0o" + (+tokenValue).toString(8); + if (withMinus) start2--; + error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal); + return 9 /* NumericLiteral */; + } + } else { + mainFragment = scanNumberFragment(); + } + let decimalFragment; + let scientificFragment; + if (charCodeUnchecked(pos) === 46 /* dot */) { + pos++; + decimalFragment = scanNumberFragment(); + } + let end2 = pos; + if (charCodeUnchecked(pos) === 69 /* E */ || charCodeUnchecked(pos) === 101 /* e */) { + pos++; + tokenFlags |= 16 /* Scientific */; + if (charCodeUnchecked(pos) === 43 /* plus */ || charCodeUnchecked(pos) === 45 /* minus */) pos++; + const preNumericPart = pos; + const finalFragment = scanNumberFragment(); + if (!finalFragment) { + error(Diagnostics.Digit_expected); + } else { + scientificFragment = text.substring(end2, preNumericPart) + finalFragment; + end2 = pos; + } + } + let result; + if (tokenFlags & 512 /* ContainsSeparator */) { + result = mainFragment; + if (decimalFragment) { + result += "." + decimalFragment; + } + if (scientificFragment) { + result += scientificFragment; + } + } else { + result = text.substring(start2, end2); + } + if (tokenFlags & 8192 /* ContainsLeadingZero */) { + error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2); + tokenValue = "" + +result; + return 9 /* NumericLiteral */; + } + if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) { + checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */)); + tokenValue = "" + +result; + return 9 /* NumericLiteral */; + } else { + tokenValue = result; + const type = checkBigIntSuffix(); + checkForIdentifierStartAfterNumericLiteral(start2); + return type; + } + } + function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) { + if (!isIdentifierStart(codePointUnchecked(pos), languageVersion)) { + return; + } + const identifierStart = pos; + const { length: length3 } = scanIdentifierParts(); + if (length3 === 1 && text[identifierStart] === "n") { + if (isScientific) { + error(Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1); + } else { + error(Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1); + } + } else { + error(Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length3); + pos = identifierStart; + } + } + function scanDigits() { + const start2 = pos; + let isOctal = true; + while (isDigit(charCodeChecked(pos))) { + if (!isOctalDigit(charCodeUnchecked(pos))) { + isOctal = false; + } + pos++; + } + tokenValue = text.substring(start2, pos); + return isOctal; + } + function scanExactNumberOfHexDigits(count, canHaveSeparators) { + const valueString = scanHexDigits( + /*minCount*/ + count, + /*scanAsManyAsPossible*/ + false, + canHaveSeparators + ); + return valueString ? parseInt(valueString, 16) : -1; + } + function scanMinimumNumberOfHexDigits(count, canHaveSeparators) { + return scanHexDigits( + /*minCount*/ + count, + /*scanAsManyAsPossible*/ + true, + canHaveSeparators + ); + } + function scanHexDigits(minCount, scanAsManyAsPossible, canHaveSeparators) { + let valueChars = []; + let allowSeparator = false; + let isPreviousTokenSeparator = false; + while (valueChars.length < minCount || scanAsManyAsPossible) { + let ch = charCodeUnchecked(pos); + if (canHaveSeparators && ch === 95 /* _ */) { + tokenFlags |= 512 /* ContainsSeparator */; + if (allowSeparator) { + allowSeparator = false; + isPreviousTokenSeparator = true; + } else if (isPreviousTokenSeparator) { + error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + } else { + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + } + pos++; + continue; + } + allowSeparator = canHaveSeparators; + if (ch >= 65 /* A */ && ch <= 70 /* F */) { + ch += 97 /* a */ - 65 /* A */; + } else if (!(ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch >= 97 /* a */ && ch <= 102 /* f */)) { + break; + } + valueChars.push(ch); + pos++; + isPreviousTokenSeparator = false; + } + if (valueChars.length < minCount) { + valueChars = []; + } + if (charCodeUnchecked(pos - 1) === 95 /* _ */) { + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + } + return String.fromCharCode(...valueChars); + } + function scanString(jsxAttributeString = false) { + const quote = charCodeUnchecked(pos); + pos++; + let result = ""; + let start2 = pos; + while (true) { + if (pos >= end) { + result += text.substring(start2, pos); + tokenFlags |= 4 /* Unterminated */; + error(Diagnostics.Unterminated_string_literal); + break; + } + const ch = charCodeUnchecked(pos); + if (ch === quote) { + result += text.substring(start2, pos); + pos++; + break; + } + if (ch === 92 /* backslash */ && !jsxAttributeString) { + result += text.substring(start2, pos); + result += scanEscapeSequence(1 /* String */ | 2 /* ReportErrors */); + start2 = pos; + continue; + } + if ((ch === 10 /* lineFeed */ || ch === 13 /* carriageReturn */) && !jsxAttributeString) { + result += text.substring(start2, pos); + tokenFlags |= 4 /* Unterminated */; + error(Diagnostics.Unterminated_string_literal); + break; + } + pos++; + } + return result; + } + function scanTemplateAndSetTokenValue(shouldEmitInvalidEscapeError) { + const startedWithBacktick = charCodeUnchecked(pos) === 96 /* backtick */; + pos++; + let start2 = pos; + let contents = ""; + let resultingToken; + while (true) { + if (pos >= end) { + contents += text.substring(start2, pos); + tokenFlags |= 4 /* Unterminated */; + error(Diagnostics.Unterminated_template_literal); + resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; + break; + } + const currChar = charCodeUnchecked(pos); + if (currChar === 96 /* backtick */) { + contents += text.substring(start2, pos); + pos++; + resultingToken = startedWithBacktick ? 15 /* NoSubstitutionTemplateLiteral */ : 18 /* TemplateTail */; + break; + } + if (currChar === 36 /* $ */ && pos + 1 < end && charCodeUnchecked(pos + 1) === 123 /* openBrace */) { + contents += text.substring(start2, pos); + pos += 2; + resultingToken = startedWithBacktick ? 16 /* TemplateHead */ : 17 /* TemplateMiddle */; + break; + } + if (currChar === 92 /* backslash */) { + contents += text.substring(start2, pos); + contents += scanEscapeSequence(1 /* String */ | (shouldEmitInvalidEscapeError ? 2 /* ReportErrors */ : 0)); + start2 = pos; + continue; + } + if (currChar === 13 /* carriageReturn */) { + contents += text.substring(start2, pos); + pos++; + if (pos < end && charCodeUnchecked(pos) === 10 /* lineFeed */) { + pos++; + } + contents += "\n"; + start2 = pos; + continue; + } + pos++; + } + Debug.assert(resultingToken !== void 0); + tokenValue = contents; + return resultingToken; + } + function scanEscapeSequence(flags) { + const start2 = pos; + pos++; + if (pos >= end) { + error(Diagnostics.Unexpected_end_of_text); + return ""; + } + const ch = charCodeUnchecked(pos); + pos++; + switch (ch) { + case 48 /* _0 */: + if (pos >= end || !isDigit(charCodeUnchecked(pos))) { + return "\0"; + } + case 49 /* _1 */: + case 50 /* _2 */: + case 51 /* _3 */: + if (pos < end && isOctalDigit(charCodeUnchecked(pos))) { + pos++; + } + case 52 /* _4 */: + case 53 /* _5 */: + case 54 /* _6 */: + case 55 /* _7 */: + if (pos < end && isOctalDigit(charCodeUnchecked(pos))) { + pos++; + } + tokenFlags |= 2048 /* ContainsInvalidEscape */; + if (flags & 6 /* ReportInvalidEscapeErrors */) { + const code = parseInt(text.substring(start2 + 1, pos), 8); + if (flags & 4 /* RegularExpression */ && !(flags & 32 /* AtomEscape */) && ch !== 48 /* _0 */) { + error(Diagnostics.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, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0")); + } else { + error(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0")); + } + return String.fromCharCode(code); + } + return text.substring(start2, pos); + case 56 /* _8 */: + case 57 /* _9 */: + tokenFlags |= 2048 /* ContainsInvalidEscape */; + if (flags & 6 /* ReportInvalidEscapeErrors */) { + if (flags & 4 /* RegularExpression */ && !(flags & 32 /* AtomEscape */)) { + error(Diagnostics.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class, start2, pos - start2); + } else { + error(Diagnostics.Escape_sequence_0_is_not_allowed, start2, pos - start2, text.substring(start2, pos)); + } + return String.fromCharCode(ch); + } + return text.substring(start2, pos); + case 98 /* b */: + return "\b"; + case 116 /* t */: + return " "; + case 110 /* n */: + return "\n"; + case 118 /* v */: + return "\v"; + case 102 /* f */: + return "\f"; + case 114 /* r */: + return "\r"; + case 39 /* singleQuote */: + return "'"; + case 34 /* doubleQuote */: + return '"'; + case 117 /* u */: + if (flags & 17 /* ScanExtendedUnicodeEscape */ && pos < end && charCodeUnchecked(pos) === 123 /* openBrace */) { + pos -= 2; + return scanExtendedUnicodeEscape(!!(flags & 6 /* ReportInvalidEscapeErrors */)); + } + for (; pos < start2 + 6; pos++) { + if (!(pos < end && isHexDigit(charCodeUnchecked(pos)))) { + tokenFlags |= 2048 /* ContainsInvalidEscape */; + if (flags & 6 /* ReportInvalidEscapeErrors */) { + error(Diagnostics.Hexadecimal_digit_expected); + } + return text.substring(start2, pos); + } + } + tokenFlags |= 1024 /* UnicodeEscape */; + const escapedValue = parseInt(text.substring(start2 + 2, pos), 16); + const escapedValueString = String.fromCharCode(escapedValue); + if (flags & 16 /* AnyUnicodeMode */ && escapedValue >= 55296 && escapedValue <= 56319 && pos + 6 < end && text.substring(pos, pos + 2) === "\\u" && charCodeUnchecked(pos + 2) !== 123 /* openBrace */) { + const nextStart = pos; + let nextPos = pos + 2; + for (; nextPos < nextStart + 6; nextPos++) { + if (!isHexDigit(charCodeUnchecked(pos))) { + return escapedValueString; + } + } + const nextEscapedValue = parseInt(text.substring(nextStart + 2, nextPos), 16); + if (nextEscapedValue >= 56320 && nextEscapedValue <= 57343) { + pos = nextPos; + return escapedValueString + String.fromCharCode(nextEscapedValue); + } + } + return escapedValueString; + case 120 /* x */: + for (; pos < start2 + 4; pos++) { + if (!(pos < end && isHexDigit(charCodeUnchecked(pos)))) { + tokenFlags |= 2048 /* ContainsInvalidEscape */; + if (flags & 6 /* ReportInvalidEscapeErrors */) { + error(Diagnostics.Hexadecimal_digit_expected); + } + return text.substring(start2, pos); + } + } + tokenFlags |= 4096 /* HexEscape */; + return String.fromCharCode(parseInt(text.substring(start2 + 2, pos), 16)); + case 13 /* carriageReturn */: + if (pos < end && charCodeUnchecked(pos) === 10 /* lineFeed */) { + pos++; + } + case 10 /* lineFeed */: + case 8232 /* lineSeparator */: + case 8233 /* paragraphSeparator */: + return ""; + default: + if (flags & 16 /* AnyUnicodeMode */ || flags & 4 /* RegularExpression */ && !(flags & 8 /* AnnexB */) && isIdentifierPart(ch, languageVersion)) { + error(Diagnostics.This_character_cannot_be_escaped_in_a_regular_expression, pos - 2, 2); + } + return String.fromCharCode(ch); + } + } + function scanExtendedUnicodeEscape(shouldEmitInvalidEscapeError) { + const start2 = pos; + pos += 3; + const escapedStart = pos; + const escapedValueString = scanMinimumNumberOfHexDigits( + 1, + /*canHaveSeparators*/ + false + ); + const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; + let isInvalidExtendedEscape = false; + if (escapedValue < 0) { + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.Hexadecimal_digit_expected); + } + isInvalidExtendedEscape = true; + } else if (escapedValue > 1114111) { + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive, escapedStart, pos - escapedStart); + } + isInvalidExtendedEscape = true; + } + if (pos >= end) { + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.Unexpected_end_of_text); + } + isInvalidExtendedEscape = true; + } else if (charCodeUnchecked(pos) === 125 /* closeBrace */) { + pos++; + } else { + if (shouldEmitInvalidEscapeError) { + error(Diagnostics.Unterminated_Unicode_escape_sequence); + } + isInvalidExtendedEscape = true; + } + if (isInvalidExtendedEscape) { + tokenFlags |= 2048 /* ContainsInvalidEscape */; + return text.substring(start2, pos); + } + tokenFlags |= 8 /* ExtendedUnicodeEscape */; + return utf16EncodeAsString(escapedValue); + } + function peekUnicodeEscape() { + if (pos + 5 < end && charCodeUnchecked(pos + 1) === 117 /* u */) { + const start2 = pos; + pos += 2; + const value = scanExactNumberOfHexDigits( + 4, + /*canHaveSeparators*/ + false + ); + pos = start2; + return value; + } + return -1; + } + function peekExtendedUnicodeEscape() { + if (codePointUnchecked(pos + 1) === 117 /* u */ && codePointUnchecked(pos + 2) === 123 /* openBrace */) { + const start2 = pos; + pos += 3; + const escapedValueString = scanMinimumNumberOfHexDigits( + 1, + /*canHaveSeparators*/ + false + ); + const escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1; + pos = start2; + return escapedValue; + } + return -1; + } + function scanIdentifierParts() { + let result = ""; + let start2 = pos; + while (pos < end) { + let ch = codePointUnchecked(pos); + if (isIdentifierPart(ch, languageVersion)) { + pos += charSize(ch); + } else if (ch === 92 /* backslash */) { + ch = peekExtendedUnicodeEscape(); + if (ch >= 0 && isIdentifierPart(ch, languageVersion)) { + result += scanExtendedUnicodeEscape( + /*shouldEmitInvalidEscapeError*/ + true + ); + start2 = pos; + continue; + } + ch = peekUnicodeEscape(); + if (!(ch >= 0 && isIdentifierPart(ch, languageVersion))) { + break; + } + tokenFlags |= 1024 /* UnicodeEscape */; + result += text.substring(start2, pos); + result += utf16EncodeAsString(ch); + pos += 6; + start2 = pos; + } else { + break; + } + } + result += text.substring(start2, pos); + return result; + } + function getIdentifierToken() { + const len = tokenValue.length; + if (len >= 2 && len <= 12) { + const ch = tokenValue.charCodeAt(0); + if (ch >= 97 /* a */ && ch <= 122 /* z */) { + const keyword = textToKeyword.get(tokenValue); + if (keyword !== void 0) { + return token = keyword; + } + } + } + return token = 80 /* Identifier */; + } + function scanBinaryOrOctalDigits(base) { + let value = ""; + let separatorAllowed = false; + let isPreviousTokenSeparator = false; + while (true) { + const ch = charCodeUnchecked(pos); + if (ch === 95 /* _ */) { + tokenFlags |= 512 /* ContainsSeparator */; + if (separatorAllowed) { + separatorAllowed = false; + isPreviousTokenSeparator = true; + } else if (isPreviousTokenSeparator) { + error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1); + } else { + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1); + } + pos++; + continue; + } + separatorAllowed = true; + if (!isDigit(ch) || ch - 48 /* _0 */ >= base) { + break; + } + value += text[pos]; + pos++; + isPreviousTokenSeparator = false; + } + if (charCodeUnchecked(pos - 1) === 95 /* _ */) { + error(Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1); + } + return value; + } + function checkBigIntSuffix() { + if (charCodeUnchecked(pos) === 110 /* n */) { + tokenValue += "n"; + if (tokenFlags & 384 /* BinaryOrOctalSpecifier */) { + tokenValue = parsePseudoBigInt(tokenValue) + "n"; + } + pos++; + return 10 /* BigIntLiteral */; + } else { + const numericValue = tokenFlags & 128 /* BinarySpecifier */ ? parseInt(tokenValue.slice(2), 2) : tokenFlags & 256 /* OctalSpecifier */ ? parseInt(tokenValue.slice(2), 8) : +tokenValue; + tokenValue = "" + numericValue; + return 9 /* NumericLiteral */; + } + } + function scan() { + fullStartPos = pos; + tokenFlags = 0 /* None */; + asteriskSeen = false; + while (true) { + tokenStart = pos; + if (pos >= end) { + return token = 1 /* EndOfFileToken */; + } + const ch = codePointUnchecked(pos); + if (pos === 0) { + if (ch === 35 /* hash */ && isShebangTrivia(text, pos)) { + pos = scanShebangTrivia(text, pos); + if (skipTrivia2) { + continue; + } else { + return token = 6 /* ShebangTrivia */; + } + } + } + switch (ch) { + case 10 /* lineFeed */: + case 13 /* carriageReturn */: + tokenFlags |= 1 /* PrecedingLineBreak */; + if (skipTrivia2) { + pos++; + continue; + } else { + if (ch === 13 /* carriageReturn */ && pos + 1 < end && charCodeUnchecked(pos + 1) === 10 /* lineFeed */) { + pos += 2; + } else { + pos++; + } + return token = 4 /* NewLineTrivia */; + } + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: + case 160 /* nonBreakingSpace */: + case 5760 /* ogham */: + case 8192 /* enQuad */: + case 8193 /* emQuad */: + case 8194 /* enSpace */: + case 8195 /* emSpace */: + case 8196 /* threePerEmSpace */: + case 8197 /* fourPerEmSpace */: + case 8198 /* sixPerEmSpace */: + case 8199 /* figureSpace */: + case 8200 /* punctuationSpace */: + case 8201 /* thinSpace */: + case 8202 /* hairSpace */: + case 8203 /* zeroWidthSpace */: + case 8239 /* narrowNoBreakSpace */: + case 8287 /* mathematicalSpace */: + case 12288 /* ideographicSpace */: + case 65279 /* byteOrderMark */: + if (skipTrivia2) { + pos++; + continue; + } else { + while (pos < end && isWhiteSpaceSingleLine(charCodeUnchecked(pos))) { + pos++; + } + return token = 5 /* WhitespaceTrivia */; + } + case 33 /* exclamation */: + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */; + } + return pos += 2, token = 36 /* ExclamationEqualsToken */; + } + pos++; + return token = 54 /* ExclamationToken */; + case 34 /* doubleQuote */: + case 39 /* singleQuote */: + tokenValue = scanString(); + return token = 11 /* StringLiteral */; + case 96 /* backtick */: + return token = scanTemplateAndSetTokenValue( + /*shouldEmitInvalidEscapeError*/ + false + ); + case 37 /* percent */: + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 70 /* PercentEqualsToken */; + } + pos++; + return token = 45 /* PercentToken */; + case 38 /* ampersand */: + if (charCodeUnchecked(pos + 1) === 38 /* ampersand */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 77 /* AmpersandAmpersandEqualsToken */; + } + return pos += 2, token = 56 /* AmpersandAmpersandToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 74 /* AmpersandEqualsToken */; + } + pos++; + return token = 51 /* AmpersandToken */; + case 40 /* openParen */: + pos++; + return token = 21 /* OpenParenToken */; + case 41 /* closeParen */: + pos++; + return token = 22 /* CloseParenToken */; + case 42 /* asterisk */: + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 67 /* AsteriskEqualsToken */; + } + if (charCodeUnchecked(pos + 1) === 42 /* asterisk */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 68 /* AsteriskAsteriskEqualsToken */; + } + return pos += 2, token = 43 /* AsteriskAsteriskToken */; + } + pos++; + if (skipJsDocLeadingAsterisks && !asteriskSeen && tokenFlags & 1 /* PrecedingLineBreak */) { + asteriskSeen = true; + continue; + } + return token = 42 /* AsteriskToken */; + case 43 /* plus */: + if (charCodeUnchecked(pos + 1) === 43 /* plus */) { + return pos += 2, token = 46 /* PlusPlusToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 65 /* PlusEqualsToken */; + } + pos++; + return token = 40 /* PlusToken */; + case 44 /* comma */: + pos++; + return token = 28 /* CommaToken */; + case 45 /* minus */: + if (charCodeUnchecked(pos + 1) === 45 /* minus */) { + return pos += 2, token = 47 /* MinusMinusToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 66 /* MinusEqualsToken */; + } + pos++; + return token = 41 /* MinusToken */; + case 46 /* dot */: + if (isDigit(charCodeUnchecked(pos + 1))) { + scanNumber(); + return token = 9 /* NumericLiteral */; + } + if (charCodeUnchecked(pos + 1) === 46 /* dot */ && charCodeUnchecked(pos + 2) === 46 /* dot */) { + return pos += 3, token = 26 /* DotDotDotToken */; + } + pos++; + return token = 25 /* DotToken */; + case 47 /* slash */: + if (charCodeUnchecked(pos + 1) === 47 /* slash */) { + pos += 2; + while (pos < end) { + if (isLineBreak(charCodeUnchecked(pos))) { + break; + } + pos++; + } + commentDirectives = appendIfCommentDirective( + commentDirectives, + text.slice(tokenStart, pos), + commentDirectiveRegExSingleLine, + tokenStart + ); + if (skipTrivia2) { + continue; + } else { + return token = 2 /* SingleLineCommentTrivia */; + } + } + if (charCodeUnchecked(pos + 1) === 42 /* asterisk */) { + pos += 2; + const isJSDoc2 = charCodeUnchecked(pos) === 42 /* asterisk */ && charCodeUnchecked(pos + 1) !== 47 /* slash */; + let commentClosed = false; + let lastLineStart = tokenStart; + while (pos < end) { + const ch2 = charCodeUnchecked(pos); + if (ch2 === 42 /* asterisk */ && charCodeUnchecked(pos + 1) === 47 /* slash */) { + pos += 2; + commentClosed = true; + break; + } + pos++; + if (isLineBreak(ch2)) { + lastLineStart = pos; + tokenFlags |= 1 /* PrecedingLineBreak */; + } + } + if (isJSDoc2 && shouldParseJSDoc()) { + tokenFlags |= 2 /* PrecedingJSDocComment */; + } + commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart); + if (!commentClosed) { + error(Diagnostics.Asterisk_Slash_expected); + } + if (skipTrivia2) { + continue; + } else { + if (!commentClosed) { + tokenFlags |= 4 /* Unterminated */; + } + return token = 3 /* MultiLineCommentTrivia */; + } + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 69 /* SlashEqualsToken */; + } + pos++; + return token = 44 /* SlashToken */; + case 48 /* _0 */: + if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 88 /* X */ || charCodeUnchecked(pos + 1) === 120 /* x */)) { + pos += 2; + tokenValue = scanMinimumNumberOfHexDigits( + 1, + /*canHaveSeparators*/ + true + ); + if (!tokenValue) { + error(Diagnostics.Hexadecimal_digit_expected); + tokenValue = "0"; + } + tokenValue = "0x" + tokenValue; + tokenFlags |= 64 /* HexSpecifier */; + return token = checkBigIntSuffix(); + } else if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 66 /* B */ || charCodeUnchecked(pos + 1) === 98 /* b */)) { + pos += 2; + tokenValue = scanBinaryOrOctalDigits( + /* base */ + 2 + ); + if (!tokenValue) { + error(Diagnostics.Binary_digit_expected); + tokenValue = "0"; + } + tokenValue = "0b" + tokenValue; + tokenFlags |= 128 /* BinarySpecifier */; + return token = checkBigIntSuffix(); + } else if (pos + 2 < end && (charCodeUnchecked(pos + 1) === 79 /* O */ || charCodeUnchecked(pos + 1) === 111 /* o */)) { + pos += 2; + tokenValue = scanBinaryOrOctalDigits( + /* base */ + 8 + ); + if (!tokenValue) { + error(Diagnostics.Octal_digit_expected); + tokenValue = "0"; + } + tokenValue = "0o" + tokenValue; + tokenFlags |= 256 /* OctalSpecifier */; + return token = checkBigIntSuffix(); + } + case 49 /* _1 */: + case 50 /* _2 */: + case 51 /* _3 */: + case 52 /* _4 */: + case 53 /* _5 */: + case 54 /* _6 */: + case 55 /* _7 */: + case 56 /* _8 */: + case 57 /* _9 */: + return token = scanNumber(); + case 58 /* colon */: + pos++; + return token = 59 /* ColonToken */; + case 59 /* semicolon */: + pos++; + return token = 27 /* SemicolonToken */; + case 60 /* lessThan */: + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos, error); + if (skipTrivia2) { + continue; + } else { + return token = 7 /* ConflictMarkerTrivia */; + } + } + if (charCodeUnchecked(pos + 1) === 60 /* lessThan */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 71 /* LessThanLessThanEqualsToken */; + } + return pos += 2, token = 48 /* LessThanLessThanToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 33 /* LessThanEqualsToken */; + } + if (languageVariant === 1 /* JSX */ && charCodeUnchecked(pos + 1) === 47 /* slash */ && charCodeUnchecked(pos + 2) !== 42 /* asterisk */) { + return pos += 2, token = 31 /* LessThanSlashToken */; + } + pos++; + return token = 30 /* LessThanToken */; + case 61 /* equals */: + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos, error); + if (skipTrivia2) { + continue; + } else { + return token = 7 /* ConflictMarkerTrivia */; + } + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 37 /* EqualsEqualsEqualsToken */; + } + return pos += 2, token = 35 /* EqualsEqualsToken */; + } + if (charCodeUnchecked(pos + 1) === 62 /* greaterThan */) { + return pos += 2, token = 39 /* EqualsGreaterThanToken */; + } + pos++; + return token = 64 /* EqualsToken */; + case 62 /* greaterThan */: + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos, error); + if (skipTrivia2) { + continue; + } else { + return token = 7 /* ConflictMarkerTrivia */; + } + } + pos++; + return token = 32 /* GreaterThanToken */; + case 63 /* question */: + if (charCodeUnchecked(pos + 1) === 46 /* dot */ && !isDigit(charCodeUnchecked(pos + 2))) { + return pos += 2, token = 29 /* QuestionDotToken */; + } + if (charCodeUnchecked(pos + 1) === 63 /* question */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 78 /* QuestionQuestionEqualsToken */; + } + return pos += 2, token = 61 /* QuestionQuestionToken */; + } + pos++; + return token = 58 /* QuestionToken */; + case 91 /* openBracket */: + pos++; + return token = 23 /* OpenBracketToken */; + case 93 /* closeBracket */: + pos++; + return token = 24 /* CloseBracketToken */; + case 94 /* caret */: + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 79 /* CaretEqualsToken */; + } + pos++; + return token = 53 /* CaretToken */; + case 123 /* openBrace */: + pos++; + return token = 19 /* OpenBraceToken */; + case 124 /* bar */: + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos, error); + if (skipTrivia2) { + continue; + } else { + return token = 7 /* ConflictMarkerTrivia */; + } + } + if (charCodeUnchecked(pos + 1) === 124 /* bar */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 76 /* BarBarEqualsToken */; + } + return pos += 2, token = 57 /* BarBarToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 75 /* BarEqualsToken */; + } + pos++; + return token = 52 /* BarToken */; + case 125 /* closeBrace */: + pos++; + return token = 20 /* CloseBraceToken */; + case 126 /* tilde */: + pos++; + return token = 55 /* TildeToken */; + case 64 /* at */: + pos++; + return token = 60 /* AtToken */; + case 92 /* backslash */: + const extendedCookedChar = peekExtendedUnicodeEscape(); + if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { + tokenValue = scanExtendedUnicodeEscape( + /*shouldEmitInvalidEscapeError*/ + true + ) + scanIdentifierParts(); + return token = getIdentifierToken(); + } + const cookedChar = peekUnicodeEscape(); + if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) { + pos += 6; + tokenFlags |= 1024 /* UnicodeEscape */; + tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); + return token = getIdentifierToken(); + } + error(Diagnostics.Invalid_character); + pos++; + return token = 0 /* Unknown */; + case 35 /* hash */: + if (pos !== 0 && text[pos + 1] === "!") { + error(Diagnostics.can_only_be_used_at_the_start_of_a_file, pos, 2); + pos++; + return token = 0 /* Unknown */; + } + const charAfterHash = codePointUnchecked(pos + 1); + if (charAfterHash === 92 /* backslash */) { + pos++; + const extendedCookedChar2 = peekExtendedUnicodeEscape(); + if (extendedCookedChar2 >= 0 && isIdentifierStart(extendedCookedChar2, languageVersion)) { + tokenValue = "#" + scanExtendedUnicodeEscape( + /*shouldEmitInvalidEscapeError*/ + true + ) + scanIdentifierParts(); + return token = 81 /* PrivateIdentifier */; + } + const cookedChar2 = peekUnicodeEscape(); + if (cookedChar2 >= 0 && isIdentifierStart(cookedChar2, languageVersion)) { + pos += 6; + tokenFlags |= 1024 /* UnicodeEscape */; + tokenValue = "#" + String.fromCharCode(cookedChar2) + scanIdentifierParts(); + return token = 81 /* PrivateIdentifier */; + } + pos--; + } + if (isIdentifierStart(charAfterHash, languageVersion)) { + pos++; + scanIdentifier(charAfterHash, languageVersion); + } else { + tokenValue = "#"; + error(Diagnostics.Invalid_character, pos++, charSize(ch)); + } + return token = 81 /* PrivateIdentifier */; + case 65533 /* replacementCharacter */: + error(Diagnostics.File_appears_to_be_binary, 0, 0); + pos = end; + return token = 8 /* NonTextFileMarkerTrivia */; + default: + const identifierKind = scanIdentifier(ch, languageVersion); + if (identifierKind) { + return token = identifierKind; + } else if (isWhiteSpaceSingleLine(ch)) { + pos += charSize(ch); + continue; + } else if (isLineBreak(ch)) { + tokenFlags |= 1 /* PrecedingLineBreak */; + pos += charSize(ch); + continue; + } + const size = charSize(ch); + error(Diagnostics.Invalid_character, pos, size); + pos += size; + return token = 0 /* Unknown */; + } + } + } + function shouldParseJSDoc() { + switch (jsDocParsingMode) { + case 0 /* ParseAll */: + return true; + case 1 /* ParseNone */: + return false; + } + if (scriptKind !== 3 /* TS */ && scriptKind !== 4 /* TSX */) { + return true; + } + if (jsDocParsingMode === 3 /* ParseForTypeInfo */) { + return false; + } + return jsDocSeeOrLink.test(text.slice(fullStartPos, pos)); + } + function reScanInvalidIdentifier() { + Debug.assert(token === 0 /* Unknown */, "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."); + pos = tokenStart = fullStartPos; + tokenFlags = 0; + const ch = codePointUnchecked(pos); + const identifierKind = scanIdentifier(ch, 99 /* ESNext */); + if (identifierKind) { + return token = identifierKind; + } + pos += charSize(ch); + return token; + } + function scanIdentifier(startCharacter, languageVersion2) { + let ch = startCharacter; + if (isIdentifierStart(ch, languageVersion2)) { + pos += charSize(ch); + while (pos < end && isIdentifierPart(ch = codePointUnchecked(pos), languageVersion2)) pos += charSize(ch); + tokenValue = text.substring(tokenStart, pos); + if (ch === 92 /* backslash */) { + tokenValue += scanIdentifierParts(); + } + return getIdentifierToken(); + } + } + function reScanGreaterToken() { + if (token === 32 /* GreaterThanToken */) { + if (charCodeUnchecked(pos) === 62 /* greaterThan */) { + if (charCodeUnchecked(pos + 1) === 62 /* greaterThan */) { + if (charCodeUnchecked(pos + 2) === 61 /* equals */) { + return pos += 3, token = 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */; + } + return pos += 2, token = 50 /* GreaterThanGreaterThanGreaterThanToken */; + } + if (charCodeUnchecked(pos + 1) === 61 /* equals */) { + return pos += 2, token = 72 /* GreaterThanGreaterThanEqualsToken */; + } + pos++; + return token = 49 /* GreaterThanGreaterThanToken */; + } + if (charCodeUnchecked(pos) === 61 /* equals */) { + pos++; + return token = 34 /* GreaterThanEqualsToken */; + } + } + return token; + } + function reScanAsteriskEqualsToken() { + Debug.assert(token === 67 /* AsteriskEqualsToken */, "'reScanAsteriskEqualsToken' should only be called on a '*='"); + pos = tokenStart + 1; + return token = 64 /* EqualsToken */; + } + function reScanSlashToken(reportErrors2) { + if (token === 44 /* SlashToken */ || token === 69 /* SlashEqualsToken */) { + const startOfRegExpBody = tokenStart + 1; + pos = startOfRegExpBody; + let inEscape = false; + let namedCaptureGroups = false; + let inCharacterClass = false; + while (true) { + const ch = charCodeChecked(pos); + if (ch === -1 /* EOF */ || isLineBreak(ch)) { + tokenFlags |= 4 /* Unterminated */; + break; + } + if (inEscape) { + inEscape = false; + } else if (ch === 47 /* slash */ && !inCharacterClass) { + break; + } else if (ch === 91 /* openBracket */) { + inCharacterClass = true; + } else if (ch === 92 /* backslash */) { + inEscape = true; + } else if (ch === 93 /* closeBracket */) { + inCharacterClass = false; + } else if (!inCharacterClass && ch === 40 /* openParen */ && charCodeChecked(pos + 1) === 63 /* question */ && charCodeChecked(pos + 2) === 60 /* lessThan */ && charCodeChecked(pos + 3) !== 61 /* equals */ && charCodeChecked(pos + 3) !== 33 /* exclamation */) { + namedCaptureGroups = true; + } + pos++; + } + const endOfRegExpBody = pos; + if (tokenFlags & 4 /* Unterminated */) { + pos = startOfRegExpBody; + inEscape = false; + let characterClassDepth = 0; + let inDecimalQuantifier = false; + let groupDepth = 0; + while (pos < endOfRegExpBody) { + const ch = charCodeUnchecked(pos); + if (inEscape) { + inEscape = false; + } else if (ch === 92 /* backslash */) { + inEscape = true; + } else if (ch === 91 /* openBracket */) { + characterClassDepth++; + } else if (ch === 93 /* closeBracket */ && characterClassDepth) { + characterClassDepth--; + } else if (!characterClassDepth) { + if (ch === 123 /* openBrace */) { + inDecimalQuantifier = true; + } else if (ch === 125 /* closeBrace */ && inDecimalQuantifier) { + inDecimalQuantifier = false; + } else if (!inDecimalQuantifier) { + if (ch === 40 /* openParen */) { + groupDepth++; + } else if (ch === 41 /* closeParen */ && groupDepth) { + groupDepth--; + } else if (ch === 41 /* closeParen */ || ch === 93 /* closeBracket */ || ch === 125 /* closeBrace */) { + break; + } + } + } + pos++; + } + while (isWhiteSpaceLike(charCodeChecked(pos - 1)) || charCodeChecked(pos - 1) === 59 /* semicolon */) pos--; + error(Diagnostics.Unterminated_regular_expression_literal, tokenStart, pos - tokenStart); + } else { + pos++; + let regExpFlags = 0 /* None */; + while (true) { + const ch = charCodeChecked(pos); + if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { + break; + } + if (reportErrors2) { + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); + if (flag === void 0) { + error(Diagnostics.Unknown_regular_expression_flag, pos, 1); + } else if (regExpFlags & flag) { + error(Diagnostics.Duplicate_regular_expression_flag, pos, 1); + } else if (((regExpFlags | flag) & 96 /* AnyUnicodeMode */) === 96 /* AnyUnicodeMode */) { + error(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos, 1); + } else { + regExpFlags |= flag; + checkRegularExpressionFlagAvailable(flag, pos); + } + } + pos++; + } + if (reportErrors2) { + scanRange(startOfRegExpBody, endOfRegExpBody - startOfRegExpBody, () => { + scanRegularExpressionWorker( + regExpFlags, + /*annexB*/ + true, + namedCaptureGroups + ); + }); + } + } + tokenValue = text.substring(tokenStart, pos); + token = 14 /* RegularExpressionLiteral */; + } + return token; + } + function scanRegularExpressionWorker(regExpFlags, annexB, namedCaptureGroups) { + var unicodeSetsMode = !!(regExpFlags & 64 /* UnicodeSets */); + var anyUnicodeMode = !!(regExpFlags & 96 /* AnyUnicodeMode */); + var anyUnicodeModeOrNonAnnexB = anyUnicodeMode || !annexB; + var mayContainStrings = false; + var numberOfCapturingGroups = 0; + var groupSpecifiers; + var groupNameReferences; + var decimalEscapes; + var namedCapturingGroupsScopeStack = []; + var topNamedCapturingGroupsScope; + function scanDisjunction(isInGroup) { + while (true) { + namedCapturingGroupsScopeStack.push(topNamedCapturingGroupsScope); + topNamedCapturingGroupsScope = void 0; + scanAlternative(isInGroup); + topNamedCapturingGroupsScope = namedCapturingGroupsScopeStack.pop(); + if (charCodeChecked(pos) !== 124 /* bar */) { + return; + } + pos++; + } + } + function scanAlternative(isInGroup) { + let isPreviousTermQuantifiable = false; + while (true) { + const start2 = pos; + const ch = charCodeChecked(pos); + switch (ch) { + case -1 /* EOF */: + return; + case 94 /* caret */: + case 36 /* $ */: + pos++; + isPreviousTermQuantifiable = false; + break; + case 92 /* backslash */: + pos++; + switch (charCodeChecked(pos)) { + case 98 /* b */: + case 66 /* B */: + pos++; + isPreviousTermQuantifiable = false; + break; + default: + scanAtomEscape(); + isPreviousTermQuantifiable = true; + break; + } + break; + case 40 /* openParen */: + pos++; + if (charCodeChecked(pos) === 63 /* question */) { + pos++; + switch (charCodeChecked(pos)) { + case 61 /* equals */: + case 33 /* exclamation */: + pos++; + isPreviousTermQuantifiable = !anyUnicodeModeOrNonAnnexB; + break; + case 60 /* lessThan */: + const groupNameStart = pos; + pos++; + switch (charCodeChecked(pos)) { + case 61 /* equals */: + case 33 /* exclamation */: + pos++; + isPreviousTermQuantifiable = false; + break; + default: + scanGroupName( + /*isReference*/ + false + ); + scanExpectedChar(62 /* greaterThan */); + if (languageVersion < 5 /* ES2018 */) { + error(Diagnostics.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later, groupNameStart, pos - groupNameStart); + } + numberOfCapturingGroups++; + isPreviousTermQuantifiable = true; + break; + } + break; + default: + const start3 = pos; + const setFlags = scanPatternModifiers(0 /* None */); + if (charCodeChecked(pos) === 45 /* minus */) { + pos++; + scanPatternModifiers(setFlags); + if (pos === start3 + 1) { + error(Diagnostics.Subpattern_flags_must_be_present_when_there_is_a_minus_sign, start3, pos - start3); + } + } + scanExpectedChar(58 /* colon */); + isPreviousTermQuantifiable = true; + break; + } + } else { + numberOfCapturingGroups++; + isPreviousTermQuantifiable = true; + } + scanDisjunction( + /*isInGroup*/ + true + ); + scanExpectedChar(41 /* closeParen */); + break; + case 123 /* openBrace */: + pos++; + const digitsStart = pos; + scanDigits(); + const min2 = tokenValue; + if (!anyUnicodeModeOrNonAnnexB && !min2) { + isPreviousTermQuantifiable = true; + break; + } + if (charCodeChecked(pos) === 44 /* comma */) { + pos++; + scanDigits(); + const max = tokenValue; + if (!min2) { + if (max || charCodeChecked(pos) === 125 /* closeBrace */) { + error(Diagnostics.Incomplete_quantifier_Digit_expected, digitsStart, 0); + } else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start2, 1, String.fromCharCode(ch)); + isPreviousTermQuantifiable = true; + break; + } + } else if (max && Number.parseInt(min2) > Number.parseInt(max) && (anyUnicodeModeOrNonAnnexB || charCodeChecked(pos) === 125 /* closeBrace */)) { + error(Diagnostics.Numbers_out_of_order_in_quantifier, digitsStart, pos - digitsStart); + } + } else if (!min2) { + if (anyUnicodeModeOrNonAnnexB) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, start2, 1, String.fromCharCode(ch)); + } + isPreviousTermQuantifiable = true; + break; + } + if (charCodeChecked(pos) !== 125 /* closeBrace */) { + if (anyUnicodeModeOrNonAnnexB) { + error(Diagnostics._0_expected, pos, 0, String.fromCharCode(125 /* closeBrace */)); + pos--; + } else { + isPreviousTermQuantifiable = true; + break; + } + } + case 42 /* asterisk */: + case 43 /* plus */: + case 63 /* question */: + pos++; + if (charCodeChecked(pos) === 63 /* question */) { + pos++; + } + if (!isPreviousTermQuantifiable) { + error(Diagnostics.There_is_nothing_available_for_repetition, start2, pos - start2); + } + isPreviousTermQuantifiable = false; + break; + case 46 /* dot */: + pos++; + isPreviousTermQuantifiable = true; + break; + case 91 /* openBracket */: + pos++; + if (unicodeSetsMode) { + scanClassSetExpression(); + } else { + scanClassRanges(); + } + scanExpectedChar(93 /* closeBracket */); + isPreviousTermQuantifiable = true; + break; + case 41 /* closeParen */: + if (isInGroup) { + return; + } + case 93 /* closeBracket */: + case 125 /* closeBrace */: + if (anyUnicodeModeOrNonAnnexB || ch === 41 /* closeParen */) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + } + pos++; + isPreviousTermQuantifiable = true; + break; + case 47 /* slash */: + case 124 /* bar */: + return; + default: + scanSourceCharacter(); + isPreviousTermQuantifiable = true; + break; + } + } + } + function scanPatternModifiers(currFlags) { + while (true) { + const ch = charCodeChecked(pos); + if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { + break; + } + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); + if (flag === void 0) { + error(Diagnostics.Unknown_regular_expression_flag, pos, 1); + } else if (currFlags & flag) { + error(Diagnostics.Duplicate_regular_expression_flag, pos, 1); + } else if (!(flag & 28 /* Modifiers */)) { + error(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, 1); + } else { + currFlags |= flag; + checkRegularExpressionFlagAvailable(flag, pos); + } + pos++; + } + return currFlags; + } + function scanAtomEscape() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); + switch (charCodeChecked(pos)) { + case 107 /* k */: + pos++; + if (charCodeChecked(pos) === 60 /* lessThan */) { + pos++; + scanGroupName( + /*isReference*/ + true + ); + scanExpectedChar(62 /* greaterThan */); + } else if (anyUnicodeModeOrNonAnnexB || namedCaptureGroups) { + error(Diagnostics.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets, pos - 2, 2); + } + break; + case 113 /* q */: + if (unicodeSetsMode) { + pos++; + error(Diagnostics.q_is_only_available_inside_character_class, pos - 2, 2); + break; + } + default: + Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape( + /*atomEscape*/ + true + )); + break; + } + } + function scanDecimalEscape() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); + const ch = charCodeChecked(pos); + if (ch >= 49 /* _1 */ && ch <= 57 /* _9 */) { + const start2 = pos; + scanDigits(); + decimalEscapes = append(decimalEscapes, { pos: start2, end: pos, value: +tokenValue }); + return true; + } + return false; + } + function scanCharacterEscape(atomEscape) { + Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); + let ch = charCodeChecked(pos); + switch (ch) { + case -1 /* EOF */: + error(Diagnostics.Undetermined_character_escape, pos - 1, 1); + return "\\"; + case 99 /* c */: + pos++; + ch = charCodeChecked(pos); + if (isASCIILetter(ch)) { + pos++; + return String.fromCharCode(ch & 31); + } + if (anyUnicodeModeOrNonAnnexB) { + error(Diagnostics.c_must_be_followed_by_an_ASCII_letter, pos - 2, 2); + } else if (atomEscape) { + pos--; + return "\\"; + } + return String.fromCharCode(ch); + case 94 /* caret */: + case 36 /* $ */: + case 47 /* slash */: + case 92 /* backslash */: + case 46 /* dot */: + case 42 /* asterisk */: + case 43 /* plus */: + case 63 /* question */: + case 40 /* openParen */: + case 41 /* closeParen */: + case 91 /* openBracket */: + case 93 /* closeBracket */: + case 123 /* openBrace */: + case 125 /* closeBrace */: + case 124 /* bar */: + pos++; + return String.fromCharCode(ch); + default: + pos--; + return scanEscapeSequence( + 4 /* RegularExpression */ | (annexB ? 8 /* AnnexB */ : 0) | (anyUnicodeMode ? 16 /* AnyUnicodeMode */ : 0) | (atomEscape ? 32 /* AtomEscape */ : 0) + ); + } + } + function scanGroupName(isReference) { + Debug.assertEqual(charCodeUnchecked(pos - 1), 60 /* lessThan */); + tokenStart = pos; + scanIdentifier(codePointChecked(pos), languageVersion); + if (pos === tokenStart) { + error(Diagnostics.Expected_a_capturing_group_name); + } else if (isReference) { + groupNameReferences = append(groupNameReferences, { pos: tokenStart, end: pos, name: tokenValue }); + } else if ((topNamedCapturingGroupsScope == null ? void 0 : topNamedCapturingGroupsScope.has(tokenValue)) || namedCapturingGroupsScopeStack.some((group2) => group2 == null ? void 0 : group2.has(tokenValue))) { + error(Diagnostics.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other, tokenStart, pos - tokenStart); + } else { + topNamedCapturingGroupsScope ?? (topNamedCapturingGroupsScope = /* @__PURE__ */ new Set()); + topNamedCapturingGroupsScope.add(tokenValue); + groupSpecifiers ?? (groupSpecifiers = /* @__PURE__ */ new Set()); + groupSpecifiers.add(tokenValue); + } + } + function isClassContentExit(ch) { + return ch === 93 /* closeBracket */ || ch === -1 /* EOF */ || pos >= end; + } + function scanClassRanges() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 91 /* openBracket */); + if (charCodeChecked(pos) === 94 /* caret */) { + pos++; + } + while (true) { + const ch = charCodeChecked(pos); + if (isClassContentExit(ch)) { + return; + } + const minStart = pos; + const minCharacter = scanClassAtom(); + if (charCodeChecked(pos) === 45 /* minus */) { + pos++; + const ch2 = charCodeChecked(pos); + if (isClassContentExit(ch2)) { + return; + } + if (!minCharacter && anyUnicodeModeOrNonAnnexB) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, minStart, pos - 1 - minStart); + } + const maxStart = pos; + const maxCharacter = scanClassAtom(); + if (!maxCharacter && anyUnicodeModeOrNonAnnexB) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, maxStart, pos - maxStart); + continue; + } + if (!minCharacter) { + continue; + } + const minCharacterValue = codePointAt(minCharacter, 0); + const maxCharacterValue = codePointAt(maxCharacter, 0); + if (minCharacter.length === charSize(minCharacterValue) && maxCharacter.length === charSize(maxCharacterValue) && minCharacterValue > maxCharacterValue) { + error(Diagnostics.Range_out_of_order_in_character_class, minStart, pos - minStart); + } + } + } + } + function scanClassSetExpression() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 91 /* openBracket */); + let isCharacterComplement = false; + if (charCodeChecked(pos) === 94 /* caret */) { + pos++; + isCharacterComplement = true; + } + let expressionMayContainStrings = false; + let ch = charCodeChecked(pos); + if (isClassContentExit(ch)) { + return; + } + let start2 = pos; + let operand; + switch (text.slice(pos, pos + 2)) { + case "--": + case "&&": + error(Diagnostics.Expected_a_class_set_operand); + mayContainStrings = false; + break; + default: + operand = scanClassSetOperand(); + break; + } + switch (charCodeChecked(pos)) { + case 45 /* minus */: + if (charCodeChecked(pos + 1) === 45 /* minus */) { + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); + } + expressionMayContainStrings = mayContainStrings; + scanClassSetSubExpression(3 /* ClassSubtraction */); + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } + break; + case 38 /* ampersand */: + if (charCodeChecked(pos + 1) === 38 /* ampersand */) { + scanClassSetSubExpression(2 /* ClassIntersection */); + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); + } + expressionMayContainStrings = mayContainStrings; + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + } + break; + default: + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, start2, pos - start2); + } + expressionMayContainStrings = mayContainStrings; + break; + } + while (true) { + ch = charCodeChecked(pos); + if (ch === -1 /* EOF */) { + break; + } + switch (ch) { + case 45 /* minus */: + pos++; + ch = charCodeChecked(pos); + if (isClassContentExit(ch)) { + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + return; + } + if (ch === 45 /* minus */) { + pos++; + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + start2 = pos - 2; + operand = text.slice(start2, pos); + continue; + } else { + if (!operand) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, start2, pos - 1 - start2); + } + const secondStart = pos; + const secondOperand = scanClassSetOperand(); + if (isCharacterComplement && mayContainStrings) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, secondStart, pos - secondStart); + } + expressionMayContainStrings || (expressionMayContainStrings = mayContainStrings); + if (!secondOperand) { + error(Diagnostics.A_character_class_range_must_not_be_bounded_by_another_character_class, secondStart, pos - secondStart); + break; + } + if (!operand) { + break; + } + const minCharacterValue = codePointAt(operand, 0); + const maxCharacterValue = codePointAt(secondOperand, 0); + if (operand.length === charSize(minCharacterValue) && secondOperand.length === charSize(maxCharacterValue) && minCharacterValue > maxCharacterValue) { + error(Diagnostics.Range_out_of_order_in_character_class, start2, pos - start2); + } + } + break; + case 38 /* ampersand */: + start2 = pos; + pos++; + if (charCodeChecked(pos) === 38 /* ampersand */) { + pos++; + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + if (charCodeChecked(pos) === 38 /* ampersand */) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + } + } else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); + } + operand = text.slice(start2, pos); + continue; + } + if (isClassContentExit(charCodeChecked(pos))) { + break; + } + start2 = pos; + switch (text.slice(pos, pos + 2)) { + case "--": + case "&&": + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos, 2); + pos += 2; + operand = text.slice(start2, pos); + break; + default: + operand = scanClassSetOperand(); + break; + } + } + mayContainStrings = !isCharacterComplement && expressionMayContainStrings; + } + function scanClassSetSubExpression(expressionType) { + let expressionMayContainStrings = mayContainStrings; + while (true) { + let ch = charCodeChecked(pos); + if (isClassContentExit(ch)) { + break; + } + switch (ch) { + case 45 /* minus */: + pos++; + if (charCodeChecked(pos) === 45 /* minus */) { + pos++; + if (expressionType !== 3 /* ClassSubtraction */) { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + } + } else { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 1, 1); + } + break; + case 38 /* ampersand */: + pos++; + if (charCodeChecked(pos) === 38 /* ampersand */) { + pos++; + if (expressionType !== 2 /* ClassIntersection */) { + error(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos - 2, 2); + } + if (charCodeChecked(pos) === 38 /* ampersand */) { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + } + } else { + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos - 1, 1, String.fromCharCode(ch)); + } + break; + default: + switch (expressionType) { + case 3 /* ClassSubtraction */: + error(Diagnostics._0_expected, pos, 0, "--"); + break; + case 2 /* ClassIntersection */: + error(Diagnostics._0_expected, pos, 0, "&&"); + break; + default: + break; + } + break; + } + ch = charCodeChecked(pos); + if (isClassContentExit(ch)) { + error(Diagnostics.Expected_a_class_set_operand); + break; + } + scanClassSetOperand(); + expressionMayContainStrings && (expressionMayContainStrings = mayContainStrings); + } + mayContainStrings = expressionMayContainStrings; + } + function scanClassSetOperand() { + mayContainStrings = false; + switch (charCodeChecked(pos)) { + case -1 /* EOF */: + return ""; + case 91 /* openBracket */: + pos++; + scanClassSetExpression(); + scanExpectedChar(93 /* closeBracket */); + return ""; + case 92 /* backslash */: + pos++; + if (scanCharacterClassEscape()) { + return ""; + } else if (charCodeChecked(pos) === 113 /* q */) { + pos++; + if (charCodeChecked(pos) === 123 /* openBrace */) { + pos++; + scanClassStringDisjunctionContents(); + scanExpectedChar(125 /* closeBrace */); + return ""; + } else { + error(Diagnostics.q_must_be_followed_by_string_alternatives_enclosed_in_braces, pos - 2, 2); + return "q"; + } + } + pos--; + default: + return scanClassSetCharacter(); + } + } + function scanClassStringDisjunctionContents() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 123 /* openBrace */); + let characterCount = 0; + while (true) { + const ch = charCodeChecked(pos); + switch (ch) { + case -1 /* EOF */: + return; + case 125 /* closeBrace */: + if (characterCount !== 1) { + mayContainStrings = true; + } + return; + case 124 /* bar */: + if (characterCount !== 1) { + mayContainStrings = true; + } + pos++; + start = pos; + characterCount = 0; + break; + default: + scanClassSetCharacter(); + characterCount++; + break; + } + } + } + function scanClassSetCharacter() { + const ch = charCodeChecked(pos); + if (ch === -1 /* EOF */) { + return ""; + } + if (ch === 92 /* backslash */) { + pos++; + const ch2 = charCodeChecked(pos); + switch (ch2) { + case 98 /* b */: + pos++; + return "\b"; + case 38 /* ampersand */: + case 45 /* minus */: + case 33 /* exclamation */: + case 35 /* hash */: + case 37 /* percent */: + case 44 /* comma */: + case 58 /* colon */: + case 59 /* semicolon */: + case 60 /* lessThan */: + case 61 /* equals */: + case 62 /* greaterThan */: + case 64 /* at */: + case 96 /* backtick */: + case 126 /* tilde */: + pos++; + return String.fromCharCode(ch2); + default: + return scanCharacterEscape( + /*atomEscape*/ + false + ); + } + } else if (ch === charCodeChecked(pos + 1)) { + switch (ch) { + case 38 /* ampersand */: + case 33 /* exclamation */: + case 35 /* hash */: + case 37 /* percent */: + case 42 /* asterisk */: + case 43 /* plus */: + case 44 /* comma */: + case 46 /* dot */: + case 58 /* colon */: + case 59 /* semicolon */: + case 60 /* lessThan */: + case 61 /* equals */: + case 62 /* greaterThan */: + case 63 /* question */: + case 64 /* at */: + case 96 /* backtick */: + case 126 /* tilde */: + error(Diagnostics.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash, pos, 2); + pos += 2; + return text.substring(pos - 2, pos); + } + } + switch (ch) { + case 47 /* slash */: + case 40 /* openParen */: + case 41 /* closeParen */: + case 91 /* openBracket */: + case 93 /* closeBracket */: + case 123 /* openBrace */: + case 125 /* closeBrace */: + case 45 /* minus */: + case 124 /* bar */: + error(Diagnostics.Unexpected_0_Did_you_mean_to_escape_it_with_backslash, pos, 1, String.fromCharCode(ch)); + pos++; + return String.fromCharCode(ch); + } + return scanSourceCharacter(); + } + function scanClassAtom() { + if (charCodeChecked(pos) === 92 /* backslash */) { + pos++; + const ch = charCodeChecked(pos); + switch (ch) { + case 98 /* b */: + pos++; + return "\b"; + case 45 /* minus */: + pos++; + return String.fromCharCode(ch); + default: + if (scanCharacterClassEscape()) { + return ""; + } + return scanCharacterEscape( + /*atomEscape*/ + false + ); + } + } else { + return scanSourceCharacter(); + } + } + function scanCharacterClassEscape() { + Debug.assertEqual(charCodeUnchecked(pos - 1), 92 /* backslash */); + let isCharacterComplement = false; + const start2 = pos - 1; + const ch = charCodeChecked(pos); + switch (ch) { + case 100 /* d */: + case 68 /* D */: + case 115 /* s */: + case 83 /* S */: + case 119 /* w */: + case 87 /* W */: + pos++; + return true; + case 80 /* P */: + isCharacterComplement = true; + case 112 /* p */: + pos++; + if (charCodeChecked(pos) === 123 /* openBrace */) { + pos++; + const propertyNameOrValueStart = pos; + const propertyNameOrValue = scanWordCharacters(); + if (charCodeChecked(pos) === 61 /* equals */) { + const propertyName = nonBinaryUnicodeProperties.get(propertyNameOrValue); + if (pos === propertyNameOrValueStart) { + error(Diagnostics.Expected_a_Unicode_property_name); + } else if (propertyName === void 0) { + error(Diagnostics.Unknown_Unicode_property_name, propertyNameOrValueStart, pos - propertyNameOrValueStart); + const suggestion = getSpellingSuggestion(propertyNameOrValue, nonBinaryUnicodeProperties.keys(), identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); + } + } + pos++; + const propertyValueStart = pos; + const propertyValue = scanWordCharacters(); + if (pos === propertyValueStart) { + error(Diagnostics.Expected_a_Unicode_property_value); + } else if (propertyName !== void 0 && !valuesOfNonBinaryUnicodeProperties[propertyName].has(propertyValue)) { + error(Diagnostics.Unknown_Unicode_property_value, propertyValueStart, pos - propertyValueStart); + const suggestion = getSpellingSuggestion(propertyValue, valuesOfNonBinaryUnicodeProperties[propertyName], identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyValueStart, pos - propertyValueStart, suggestion); + } + } + } else { + if (pos === propertyNameOrValueStart) { + error(Diagnostics.Expected_a_Unicode_property_name_or_value); + } else if (binaryUnicodePropertiesOfStrings.has(propertyNameOrValue)) { + if (!unicodeSetsMode) { + error(Diagnostics.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } else if (isCharacterComplement) { + error(Diagnostics.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class, propertyNameOrValueStart, pos - propertyNameOrValueStart); + } else { + mayContainStrings = true; + } + } else if (!valuesOfNonBinaryUnicodeProperties.General_Category.has(propertyNameOrValue) && !binaryUnicodeProperties.has(propertyNameOrValue)) { + error(Diagnostics.Unknown_Unicode_property_name_or_value, propertyNameOrValueStart, pos - propertyNameOrValueStart); + const suggestion = getSpellingSuggestion(propertyNameOrValue, [...valuesOfNonBinaryUnicodeProperties.General_Category, ...binaryUnicodeProperties, ...binaryUnicodePropertiesOfStrings], identity); + if (suggestion) { + error(Diagnostics.Did_you_mean_0, propertyNameOrValueStart, pos - propertyNameOrValueStart, suggestion); + } + } + } + scanExpectedChar(125 /* closeBrace */); + if (!anyUnicodeMode) { + error(Diagnostics.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, start2, pos - start2); + } + } else if (anyUnicodeModeOrNonAnnexB) { + error(Diagnostics._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces, pos - 2, 2, String.fromCharCode(ch)); + } else { + pos--; + return false; + } + return true; + } + return false; + } + function scanWordCharacters() { + let value = ""; + while (true) { + const ch = charCodeChecked(pos); + if (ch === -1 /* EOF */ || !isWordCharacter(ch)) { + break; + } + value += String.fromCharCode(ch); + pos++; + } + return value; + } + function scanSourceCharacter() { + const size = anyUnicodeMode ? charSize(charCodeChecked(pos)) : 1; + pos += size; + return size > 0 ? text.substring(pos - size, pos) : ""; + } + function scanExpectedChar(ch) { + if (charCodeChecked(pos) === ch) { + pos++; + } else { + error(Diagnostics._0_expected, pos, 0, String.fromCharCode(ch)); + } + } + scanDisjunction( + /*isInGroup*/ + false + ); + forEach(groupNameReferences, (reference) => { + if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference.name))) { + error(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name); + } + }); + forEach(decimalEscapes, (escape) => { + if (escape.value > numberOfCapturingGroups) { + if (numberOfCapturingGroups) { + error(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression, escape.pos, escape.end - escape.pos, numberOfCapturingGroups); + } else { + error(Diagnostics.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression, escape.pos, escape.end - escape.pos); + } + } + }); + } + function checkRegularExpressionFlagAvailable(flag, pos2) { + const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag); + if (availableFrom && languageVersion < availableFrom) { + error(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos2, 1, getNameOfScriptTarget(availableFrom)); + } + } + function appendIfCommentDirective(commentDirectives2, text2, commentDirectiveRegEx, lineStart) { + const type = getDirectiveFromComment(text2.trimStart(), commentDirectiveRegEx); + if (type === void 0) { + return commentDirectives2; + } + return append( + commentDirectives2, + { + range: { pos: lineStart, end: pos }, + type + } + ); + } + function getDirectiveFromComment(text2, commentDirectiveRegEx) { + const match = commentDirectiveRegEx.exec(text2); + if (!match) { + return void 0; + } + switch (match[1]) { + case "ts-expect-error": + return 0 /* ExpectError */; + case "ts-ignore": + return 1 /* Ignore */; + } + return void 0; + } + function reScanTemplateToken(isTaggedTemplate) { + pos = tokenStart; + return token = scanTemplateAndSetTokenValue(!isTaggedTemplate); + } + function reScanTemplateHeadOrNoSubstitutionTemplate() { + pos = tokenStart; + return token = scanTemplateAndSetTokenValue( + /*shouldEmitInvalidEscapeError*/ + true + ); + } + function reScanJsxToken(allowMultilineJsxText = true) { + pos = tokenStart = fullStartPos; + return token = scanJsxToken(allowMultilineJsxText); + } + function reScanLessThanToken() { + if (token === 48 /* LessThanLessThanToken */) { + pos = tokenStart + 1; + return token = 30 /* LessThanToken */; + } + return token; + } + function reScanHashToken() { + if (token === 81 /* PrivateIdentifier */) { + pos = tokenStart + 1; + return token = 63 /* HashToken */; + } + return token; + } + function reScanQuestionToken() { + Debug.assert(token === 61 /* QuestionQuestionToken */, "'reScanQuestionToken' should only be called on a '??'"); + pos = tokenStart + 1; + return token = 58 /* QuestionToken */; + } + function scanJsxToken(allowMultilineJsxText = true) { + fullStartPos = tokenStart = pos; + if (pos >= end) { + return token = 1 /* EndOfFileToken */; + } + let char = charCodeUnchecked(pos); + if (char === 60 /* lessThan */) { + if (charCodeUnchecked(pos + 1) === 47 /* slash */) { + pos += 2; + return token = 31 /* LessThanSlashToken */; + } + pos++; + return token = 30 /* LessThanToken */; + } + if (char === 123 /* openBrace */) { + pos++; + return token = 19 /* OpenBraceToken */; + } + let firstNonWhitespace = 0; + while (pos < end) { + char = charCodeUnchecked(pos); + if (char === 123 /* openBrace */) { + break; + } + if (char === 60 /* lessThan */) { + if (isConflictMarkerTrivia(text, pos)) { + pos = scanConflictMarkerTrivia(text, pos, error); + return token = 7 /* ConflictMarkerTrivia */; + } + break; + } + if (char === 62 /* greaterThan */) { + error(Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1); + } + if (char === 125 /* closeBrace */) { + error(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1); + } + if (isLineBreak(char) && firstNonWhitespace === 0) { + firstNonWhitespace = -1; + } else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) { + break; + } else if (!isWhiteSpaceLike(char)) { + firstNonWhitespace = pos; + } + pos++; + } + tokenValue = text.substring(fullStartPos, pos); + return firstNonWhitespace === -1 ? 13 /* JsxTextAllWhiteSpaces */ : 12 /* JsxText */; + } + function scanJsxIdentifier() { + if (tokenIsIdentifierOrKeyword(token)) { + while (pos < end) { + const ch = charCodeUnchecked(pos); + if (ch === 45 /* minus */) { + tokenValue += "-"; + pos++; + continue; + } + const oldPos = pos; + tokenValue += scanIdentifierParts(); + if (pos === oldPos) { + break; + } + } + return getIdentifierToken(); + } + return token; + } + function scanJsxAttributeValue() { + fullStartPos = pos; + switch (charCodeUnchecked(pos)) { + case 34 /* doubleQuote */: + case 39 /* singleQuote */: + tokenValue = scanString( + /*jsxAttributeString*/ + true + ); + return token = 11 /* StringLiteral */; + default: + return scan(); + } + } + function reScanJsxAttributeValue() { + pos = tokenStart = fullStartPos; + return scanJsxAttributeValue(); + } + function scanJSDocCommentTextToken(inBackticks) { + fullStartPos = tokenStart = pos; + tokenFlags = 0 /* None */; + if (pos >= end) { + return token = 1 /* EndOfFileToken */; + } + for (let ch = charCodeUnchecked(pos); pos < end && (!isLineBreak(ch) && ch !== 96 /* backtick */); ch = codePointUnchecked(++pos)) { + if (!inBackticks) { + if (ch === 123 /* openBrace */) { + break; + } else if (ch === 64 /* at */ && pos - 1 >= 0 && isWhiteSpaceSingleLine(charCodeUnchecked(pos - 1)) && !(pos + 1 < end && isWhiteSpaceLike(charCodeUnchecked(pos + 1)))) { + break; + } + } + } + if (pos === tokenStart) { + return scanJsDocToken(); + } + tokenValue = text.substring(tokenStart, pos); + return token = 82 /* JSDocCommentTextToken */; + } + function scanJsDocToken() { + fullStartPos = tokenStart = pos; + tokenFlags = 0 /* None */; + if (pos >= end) { + return token = 1 /* EndOfFileToken */; + } + const ch = codePointUnchecked(pos); + pos += charSize(ch); + switch (ch) { + case 9 /* tab */: + case 11 /* verticalTab */: + case 12 /* formFeed */: + case 32 /* space */: + while (pos < end && isWhiteSpaceSingleLine(charCodeUnchecked(pos))) { + pos++; + } + return token = 5 /* WhitespaceTrivia */; + case 64 /* at */: + return token = 60 /* AtToken */; + case 13 /* carriageReturn */: + if (charCodeUnchecked(pos) === 10 /* lineFeed */) { + pos++; + } + case 10 /* lineFeed */: + tokenFlags |= 1 /* PrecedingLineBreak */; + return token = 4 /* NewLineTrivia */; + case 42 /* asterisk */: + return token = 42 /* AsteriskToken */; + case 123 /* openBrace */: + return token = 19 /* OpenBraceToken */; + case 125 /* closeBrace */: + return token = 20 /* CloseBraceToken */; + case 91 /* openBracket */: + return token = 23 /* OpenBracketToken */; + case 93 /* closeBracket */: + return token = 24 /* CloseBracketToken */; + case 40 /* openParen */: + return token = 21 /* OpenParenToken */; + case 41 /* closeParen */: + return token = 22 /* CloseParenToken */; + case 60 /* lessThan */: + return token = 30 /* LessThanToken */; + case 62 /* greaterThan */: + return token = 32 /* GreaterThanToken */; + case 61 /* equals */: + return token = 64 /* EqualsToken */; + case 44 /* comma */: + return token = 28 /* CommaToken */; + case 46 /* dot */: + return token = 25 /* DotToken */; + case 96 /* backtick */: + return token = 62 /* BacktickToken */; + case 35 /* hash */: + return token = 63 /* HashToken */; + case 92 /* backslash */: + pos--; + const extendedCookedChar = peekExtendedUnicodeEscape(); + if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) { + tokenValue = scanExtendedUnicodeEscape( + /*shouldEmitInvalidEscapeError*/ + true + ) + scanIdentifierParts(); + return token = getIdentifierToken(); + } + const cookedChar = peekUnicodeEscape(); + if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) { + pos += 6; + tokenFlags |= 1024 /* UnicodeEscape */; + tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts(); + return token = getIdentifierToken(); + } + pos++; + return token = 0 /* Unknown */; + } + if (isIdentifierStart(ch, languageVersion)) { + let char = ch; + while (pos < end && isIdentifierPart(char = codePointUnchecked(pos), languageVersion) || char === 45 /* minus */) pos += charSize(char); + tokenValue = text.substring(tokenStart, pos); + if (char === 92 /* backslash */) { + tokenValue += scanIdentifierParts(); + } + return token = getIdentifierToken(); + } else { + return token = 0 /* Unknown */; + } + } + function speculationHelper(callback, isLookahead) { + const savePos = pos; + const saveStartPos = fullStartPos; + const saveTokenPos = tokenStart; + const saveToken = token; + const saveTokenValue = tokenValue; + const saveTokenFlags = tokenFlags; + const result = callback(); + if (!result || isLookahead) { + pos = savePos; + fullStartPos = saveStartPos; + tokenStart = saveTokenPos; + token = saveToken; + tokenValue = saveTokenValue; + tokenFlags = saveTokenFlags; + } + return result; + } + function scanRange(start2, length3, callback) { + const saveEnd = end; + const savePos = pos; + const saveStartPos = fullStartPos; + const saveTokenPos = tokenStart; + const saveToken = token; + const saveTokenValue = tokenValue; + const saveTokenFlags = tokenFlags; + const saveErrorExpectations = commentDirectives; + setText(text, start2, length3); + const result = callback(); + end = saveEnd; + pos = savePos; + fullStartPos = saveStartPos; + tokenStart = saveTokenPos; + token = saveToken; + tokenValue = saveTokenValue; + tokenFlags = saveTokenFlags; + commentDirectives = saveErrorExpectations; + return result; + } + function lookAhead(callback) { + return speculationHelper( + callback, + /*isLookahead*/ + true + ); + } + function tryScan(callback) { + return speculationHelper( + callback, + /*isLookahead*/ + false + ); + } + function getText() { + return text; + } + function clearCommentDirectives() { + commentDirectives = void 0; + } + function setText(newText, start2, length3) { + text = newText || ""; + end = length3 === void 0 ? text.length : start2 + length3; + resetTokenState(start2 || 0); + } + function setOnError(errorCallback) { + onError = errorCallback; + } + function setScriptTarget(scriptTarget) { + languageVersion = scriptTarget; + } + function setLanguageVariant(variant) { + languageVariant = variant; + } + function setScriptKind(kind) { + scriptKind = kind; + } + function setJSDocParsingMode(kind) { + jsDocParsingMode = kind; + } + function resetTokenState(position) { + Debug.assert(position >= 0); + pos = position; + fullStartPos = position; + tokenStart = position; + token = 0 /* Unknown */; + tokenValue = void 0; + tokenFlags = 0 /* None */; + } + function setSkipJsDocLeadingAsterisks(skip) { + skipJsDocLeadingAsterisks += skip ? 1 : -1; + } + function hasLeadingAsterisks() { + return asteriskSeen; + } +} +function codePointAt(s, i) { + return s.codePointAt(i); +} +function charSize(ch) { + if (ch >= 65536) { + return 2; + } + if (ch === -1 /* EOF */) { + return 0; + } + return 1; +} +function utf16EncodeAsStringFallback(codePoint) { + Debug.assert(0 <= codePoint && codePoint <= 1114111); + if (codePoint <= 65535) { + return String.fromCharCode(codePoint); + } + const codeUnit1 = Math.floor((codePoint - 65536) / 1024) + 55296; + const codeUnit2 = (codePoint - 65536) % 1024 + 56320; + return String.fromCharCode(codeUnit1, codeUnit2); +} +var utf16EncodeAsStringWorker = String.fromCodePoint ? (codePoint) => String.fromCodePoint(codePoint) : utf16EncodeAsStringFallback; +function utf16EncodeAsString(codePoint) { + return utf16EncodeAsStringWorker(codePoint); +} +var nonBinaryUnicodeProperties = new Map(Object.entries({ + General_Category: "General_Category", + gc: "General_Category", + Script: "Script", + sc: "Script", + Script_Extensions: "Script_Extensions", + scx: "Script_Extensions" +})); +var binaryUnicodeProperties = /* @__PURE__ */ 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"]); +var binaryUnicodePropertiesOfStrings = /* @__PURE__ */ 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"]); +var valuesOfNonBinaryUnicodeProperties = { + General_Category: /* @__PURE__ */ 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: /* @__PURE__ */ 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 +}; +valuesOfNonBinaryUnicodeProperties.Script_Extensions = valuesOfNonBinaryUnicodeProperties.Script; + +// src/compiler/utilitiesPublic.ts +function isExternalModuleNameRelative(moduleName) { + return pathIsRelative(moduleName) || isRootedDiskPath(moduleName); +} +function sortAndDeduplicateDiagnostics(diagnostics) { + return sortAndDeduplicate(diagnostics, compareDiagnostics, diagnosticsEqualityComparer); +} +function getDefaultLibFileName(options) { + switch (getEmitScriptTarget(options)) { + case 99 /* ESNext */: + return "lib.esnext.full.d.ts"; + case 10 /* ES2023 */: + return "lib.es2023.full.d.ts"; + case 9 /* ES2022 */: + return "lib.es2022.full.d.ts"; + case 8 /* ES2021 */: + return "lib.es2021.full.d.ts"; + case 7 /* ES2020 */: + return "lib.es2020.full.d.ts"; + case 6 /* ES2019 */: + return "lib.es2019.full.d.ts"; + case 5 /* ES2018 */: + return "lib.es2018.full.d.ts"; + case 4 /* ES2017 */: + return "lib.es2017.full.d.ts"; + case 3 /* ES2016 */: + return "lib.es2016.full.d.ts"; + case 2 /* ES2015 */: + return "lib.es6.d.ts"; + default: + return "lib.d.ts"; + } +} +function textSpanEnd(span) { + return span.start + span.length; +} +function textSpanIsEmpty(span) { + return span.length === 0; +} +function textSpanContainsPosition(span, position) { + return position >= span.start && position < textSpanEnd(span); +} +function textRangeContainsPositionInclusive(span, position) { + return position >= span.pos && position <= span.end; +} +function createTextSpan(start, length2) { + if (start < 0) { + throw new Error("start < 0"); + } + if (length2 < 0) { + throw new Error("length < 0"); + } + return { start, length: length2 }; +} +function createTextSpanFromBounds(start, end) { + return createTextSpan(start, end - start); +} +function textChangeRangeNewSpan(range) { + return createTextSpan(range.span.start, range.newLength); +} +function textChangeRangeIsUnchanged(range) { + return textSpanIsEmpty(range.span) && range.newLength === 0; +} +function createTextChangeRange(span, newLength) { + if (newLength < 0) { + throw new Error("newLength < 0"); + } + return { span, newLength }; +} +var unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); +function isParameterPropertyDeclaration(node, parent) { + return isParameter(node) && hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */) && parent.kind === 176 /* Constructor */; +} +function walkUpBindingElementsAndPatterns(binding) { + let node = binding.parent; + while (isBindingElement(node.parent)) { + node = node.parent.parent; + } + return node.parent; +} +function getCombinedFlags(node, getFlags) { + if (isBindingElement(node)) { + node = walkUpBindingElementsAndPatterns(node); + } + let flags = getFlags(node); + if (node.kind === 260 /* VariableDeclaration */) { + node = node.parent; + } + if (node && node.kind === 261 /* VariableDeclarationList */) { + flags |= getFlags(node); + node = node.parent; + } + if (node && node.kind === 243 /* VariableStatement */) { + flags |= getFlags(node); + } + return flags; +} +function getCombinedModifierFlags(node) { + return getCombinedFlags(node, getEffectiveModifierFlags); +} +function getCombinedNodeFlags(node) { + return getCombinedFlags(node, getNodeFlags); +} +function getNodeFlags(node) { + return node.flags; +} +var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]; +function validateLocaleAndSetLanguage(locale, sys2, errors) { + const lowerCaseLocale = locale.toLowerCase(); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); + if (!matchResult) { + if (errors) { + errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); + } + return; + } + const language = matchResult[1]; + const territory = matchResult[3]; + if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors)) { + trySetLanguageAndTerritory( + language, + /*territory*/ + void 0, + errors + ); + } + setUILocale(locale); + function trySetLanguageAndTerritory(language2, territory2, errors2) { + const compilerFilePath = normalizePath(sys2.getExecutingFilePath()); + const containingDirectoryPath = getDirectoryPath(compilerFilePath); + let filePath = combinePaths(containingDirectoryPath, language2); + if (territory2) { + filePath = filePath + "-" + territory2; + } + filePath = sys2.resolvePath(combinePaths(filePath, "diagnosticMessages.generated.json")); + if (!sys2.fileExists(filePath)) { + return false; + } + let fileContents = ""; + try { + fileContents = sys2.readFile(filePath); + } catch (e) { + if (errors2) { + errors2.push(createCompilerDiagnostic(Diagnostics.Unable_to_open_file_0, filePath)); + } + return false; + } + try { + setLocalizedDiagnosticMessages(JSON.parse(fileContents)); + } catch { + if (errors2) { + errors2.push(createCompilerDiagnostic(Diagnostics.Corrupted_locale_file_0, filePath)); + } + return false; + } + return true; + } +} +function getOriginalNode(node, nodeTest) { + if (node) { + while (node.original !== void 0) { + node = node.original; + } + } + if (!node || !nodeTest) { + return node; + } + return nodeTest(node) ? node : void 0; +} +function findAncestor(node, callback) { + while (node) { + const result = callback(node); + if (result === "quit") { + return void 0; + } else if (result) { + return node; + } + node = node.parent; + } + return void 0; +} +function isParseTreeNode(node) { + return (node.flags & 16 /* Synthesized */) === 0; +} +function getParseTreeNode(node, nodeTest) { + if (node === void 0 || isParseTreeNode(node)) { + return node; + } + node = node.original; + while (node) { + if (isParseTreeNode(node)) { + return !nodeTest || nodeTest(node) ? node : void 0; + } + node = node.original; + } +} +function escapeLeadingUnderscores(identifier) { + return identifier.length >= 2 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ ? "_" + identifier : identifier; +} +function unescapeLeadingUnderscores(identifier) { + const id = identifier; + return id.length >= 3 && id.charCodeAt(0) === 95 /* _ */ && id.charCodeAt(1) === 95 /* _ */ && id.charCodeAt(2) === 95 /* _ */ ? id.substr(1) : id; +} +function idText(identifierOrPrivateName) { + return unescapeLeadingUnderscores(identifierOrPrivateName.escapedText); +} +function identifierToKeywordKind(node) { + const token = stringToToken(node.escapedText); + return token ? tryCast(token, isKeyword) : void 0; +} +function symbolName(symbol) { + if (symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) { + return idText(symbol.valueDeclaration.name); + } + return unescapeLeadingUnderscores(symbol.escapedName); +} +function nameForNamelessJSDocTypedef(declaration) { + const hostNode = declaration.parent.parent; + if (!hostNode) { + return void 0; + } + if (isDeclaration(hostNode)) { + return getDeclarationIdentifier(hostNode); + } + switch (hostNode.kind) { + case 243 /* VariableStatement */: + if (hostNode.declarationList && hostNode.declarationList.declarations[0]) { + return getDeclarationIdentifier(hostNode.declarationList.declarations[0]); + } + break; + case 244 /* ExpressionStatement */: + let expr = hostNode.expression; + if (expr.kind === 226 /* BinaryExpression */ && expr.operatorToken.kind === 64 /* EqualsToken */) { + expr = expr.left; + } + switch (expr.kind) { + case 211 /* PropertyAccessExpression */: + return expr.name; + case 212 /* ElementAccessExpression */: + const arg = expr.argumentExpression; + if (isIdentifier(arg)) { + return arg; + } + } + break; + case 217 /* ParenthesizedExpression */: { + return getDeclarationIdentifier(hostNode.expression); + } + case 256 /* LabeledStatement */: { + if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) { + return getDeclarationIdentifier(hostNode.statement); + } + break; + } + } +} +function getDeclarationIdentifier(node) { + const name = getNameOfDeclaration(node); + return name && isIdentifier(name) ? name : void 0; +} +function nodeHasName(statement, name) { + if (isNamedDeclaration(statement) && isIdentifier(statement.name) && idText(statement.name) === idText(name)) { + return true; + } + if (isVariableStatement(statement) && some(statement.declarationList.declarations, (d) => nodeHasName(d, name))) { + return true; + } + return false; +} +function getNameOfJSDocTypedef(declaration) { + return declaration.name || nameForNamelessJSDocTypedef(declaration); +} +function isNamedDeclaration(node) { + return !!node.name; +} +function getNonAssignedNameOfDeclaration(declaration) { + switch (declaration.kind) { + case 80 /* Identifier */: + return declaration; + case 348 /* JSDocPropertyTag */: + case 341 /* JSDocParameterTag */: { + const { name } = declaration; + if (name.kind === 166 /* QualifiedName */) { + return name.right; + } + break; + } + case 213 /* CallExpression */: + case 226 /* BinaryExpression */: { + const expr2 = declaration; + switch (getAssignmentDeclarationKind(expr2)) { + case 1 /* ExportsProperty */: + case 4 /* ThisProperty */: + case 5 /* Property */: + case 3 /* PrototypeProperty */: + return getElementOrPropertyAccessArgumentExpressionOrName(expr2.left); + case 7 /* ObjectDefinePropertyValue */: + case 8 /* ObjectDefinePropertyExports */: + case 9 /* ObjectDefinePrototypeProperty */: + return expr2.arguments[1]; + default: + return void 0; + } + } + case 346 /* JSDocTypedefTag */: + return getNameOfJSDocTypedef(declaration); + case 340 /* JSDocEnumTag */: + return nameForNamelessJSDocTypedef(declaration); + case 277 /* ExportAssignment */: { + const { expression } = declaration; + return isIdentifier(expression) ? expression : void 0; + } + case 212 /* ElementAccessExpression */: + const expr = declaration; + if (isBindableStaticElementAccessExpression(expr)) { + return expr.argumentExpression; + } + } + return declaration.name; +} +function getNameOfDeclaration(declaration) { + if (declaration === void 0) return void 0; + return getNonAssignedNameOfDeclaration(declaration) || (isFunctionExpression(declaration) || isArrowFunction(declaration) || isClassExpression(declaration) ? getAssignedName(declaration) : void 0); +} +function getAssignedName(node) { + if (!node.parent) { + return void 0; + } else if (isPropertyAssignment(node.parent) || isBindingElement(node.parent)) { + return node.parent.name; + } else if (isBinaryExpression(node.parent) && node === node.parent.right) { + if (isIdentifier(node.parent.left)) { + return node.parent.left; + } else if (isAccessExpression(node.parent.left)) { + return getElementOrPropertyAccessArgumentExpressionOrName(node.parent.left); + } + } else if (isVariableDeclaration(node.parent) && isIdentifier(node.parent.name)) { + return node.parent.name; + } +} +function getDecorators(node) { + if (hasDecorators(node)) { + return filter(node.modifiers, isDecorator); + } +} +function getModifiers(node) { + if (hasSyntacticModifier(node, 98303 /* Modifier */)) { + return filter(node.modifiers, isModifier); + } +} +function getJSDocParameterTagsWorker(param, noCache) { + if (param.name) { + if (isIdentifier(param.name)) { + const name = param.name.escapedText; + return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocParameterTag(tag) && isIdentifier(tag.name) && tag.name.escapedText === name); + } else { + const i = param.parent.parameters.indexOf(param); + Debug.assert(i > -1, "Parameters should always be in their parents' parameter list"); + const paramTags = getJSDocTagsWorker(param.parent, noCache).filter(isJSDocParameterTag); + if (i < paramTags.length) { + return [paramTags[i]]; + } + } + } + return emptyArray; +} +function getJSDocParameterTags(param) { + return getJSDocParameterTagsWorker( + param, + /*noCache*/ + false + ); +} +function getJSDocParameterTagsNoCache(param) { + return getJSDocParameterTagsWorker( + param, + /*noCache*/ + true + ); +} +function getJSDocTypeParameterTagsWorker(param, noCache) { + const name = param.name.escapedText; + return getJSDocTagsWorker(param.parent, noCache).filter((tag) => isJSDocTemplateTag(tag) && tag.typeParameters.some((tp) => tp.name.escapedText === name)); +} +function getJSDocTypeParameterTags(param) { + return getJSDocTypeParameterTagsWorker( + param, + /*noCache*/ + false + ); +} +function getJSDocTypeParameterTagsNoCache(param) { + return getJSDocTypeParameterTagsWorker( + param, + /*noCache*/ + true + ); +} +function hasJSDocParameterTags(node) { + return !!getFirstJSDocTag(node, isJSDocParameterTag); +} +function getJSDocAugmentsTag(node) { + return getFirstJSDocTag(node, isJSDocAugmentsTag); +} +function getJSDocImplementsTags(node) { + return getAllJSDocTags(node, isJSDocImplementsTag); +} +function getJSDocClassTag(node) { + return getFirstJSDocTag(node, isJSDocClassTag); +} +function getJSDocPublicTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocPublicTag, + /*noCache*/ + true + ); +} +function getJSDocPrivateTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocPrivateTag, + /*noCache*/ + true + ); +} +function getJSDocProtectedTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocProtectedTag, + /*noCache*/ + true + ); +} +function getJSDocReadonlyTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocReadonlyTag, + /*noCache*/ + true + ); +} +function getJSDocOverrideTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocOverrideTag, + /*noCache*/ + true + ); +} +function getJSDocDeprecatedTag(node) { + return getFirstJSDocTag(node, isJSDocDeprecatedTag); +} +function getJSDocDeprecatedTagNoCache(node) { + return getFirstJSDocTag( + node, + isJSDocDeprecatedTag, + /*noCache*/ + true + ); +} +function getJSDocEnumTag(node) { + return getFirstJSDocTag(node, isJSDocEnumTag); +} +function getJSDocThisTag(node) { + return getFirstJSDocTag(node, isJSDocThisTag); +} +function getJSDocReturnTag(node) { + return getFirstJSDocTag(node, isJSDocReturnTag); +} +function getJSDocSatisfiesTag(node) { + return getFirstJSDocTag(node, isJSDocSatisfiesTag); +} +function getJSDocTypeTag(node) { + const tag = getFirstJSDocTag(node, isJSDocTypeTag); + if (tag && tag.typeExpression && tag.typeExpression.type) { + return tag; + } + return void 0; +} +function getJSDocType(node) { + let tag = getFirstJSDocTag(node, isJSDocTypeTag); + if (!tag && isParameter(node)) { + tag = find(getJSDocParameterTags(node), (tag2) => !!tag2.typeExpression); + } + return tag && tag.typeExpression && tag.typeExpression.type; +} +function getJSDocReturnType(node) { + const returnTag = getJSDocReturnTag(node); + if (returnTag && returnTag.typeExpression) { + return returnTag.typeExpression.type; + } + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression) { + const type = typeTag.typeExpression.type; + if (isTypeLiteralNode(type)) { + const sig = find(type.members, isCallSignatureDeclaration); + return sig && sig.type; + } + if (isFunctionTypeNode(type) || isJSDocFunctionType(type)) { + return type.type; + } + } +} +function getJSDocTagsWorker(node, noCache) { + var _a; + if (!canHaveJSDoc(node)) return emptyArray; + let tags = (_a = node.jsDoc) == null ? void 0 : _a.jsDocCache; + if (tags === void 0 || noCache) { + const comments = getJSDocCommentsAndTags(node, noCache); + Debug.assert(comments.length < 2 || comments[0] !== comments[1]); + tags = flatMap(comments, (j) => isJSDoc(j) ? j.tags : j); + if (!noCache) { + node.jsDoc ?? (node.jsDoc = []); + node.jsDoc.jsDocCache = tags; + } + } + return tags; +} +function getJSDocTags(node) { + return getJSDocTagsWorker( + node, + /*noCache*/ + false + ); +} +function getFirstJSDocTag(node, predicate, noCache) { + return find(getJSDocTagsWorker(node, noCache), predicate); +} +function getAllJSDocTags(node, predicate) { + return getJSDocTags(node).filter(predicate); +} +function getTextOfJSDocComment(comment) { + return typeof comment === "string" ? comment : comment == null ? void 0 : comment.map((c) => c.kind === 321 /* JSDocText */ ? c.text : formatJSDocLink(c)).join(""); +} +function formatJSDocLink(link) { + const kind = link.kind === 324 /* JSDocLink */ ? "link" : link.kind === 325 /* JSDocLinkCode */ ? "linkcode" : "linkplain"; + const name = link.name ? entityNameToString(link.name) : ""; + const space = link.name && (link.text === "" || link.text.startsWith("://")) ? "" : " "; + return `{@${kind} ${name}${space}${link.text}}`; +} +function getEffectiveTypeParameterDeclarations(node) { + if (isJSDocSignature(node)) { + if (isJSDocOverloadTag(node.parent)) { + const jsDoc = getJSDocRoot(node.parent); + if (jsDoc && length(jsDoc.tags)) { + return flatMap(jsDoc.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); + } + } + return emptyArray; + } + if (isJSDocTypeAlias(node)) { + Debug.assert(node.parent.kind === 320 /* JSDoc */); + return flatMap(node.parent.tags, (tag) => isJSDocTemplateTag(tag) ? tag.typeParameters : void 0); + } + if (node.typeParameters) { + return node.typeParameters; + } + if (canHaveIllegalTypeParameters(node) && node.typeParameters) { + return node.typeParameters; + } + if (isInJSFile(node)) { + const decls = getJSDocTypeParameterDeclarations(node); + if (decls.length) { + return decls; + } + const typeTag = getJSDocType(node); + if (typeTag && isFunctionTypeNode(typeTag) && typeTag.typeParameters) { + return typeTag.typeParameters; + } + } + return emptyArray; +} +function getEffectiveConstraintOfTypeParameter(node) { + return node.constraint ? node.constraint : isJSDocTemplateTag(node.parent) && node === node.parent.typeParameters[0] ? node.parent.constraint : void 0; +} +function isMemberName(node) { + return node.kind === 80 /* Identifier */ || node.kind === 81 /* PrivateIdentifier */; +} +function isGetOrSetAccessorDeclaration(node) { + return node.kind === 178 /* SetAccessor */ || node.kind === 177 /* GetAccessor */; +} +function isPropertyAccessChain(node) { + return isPropertyAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); +} +function isElementAccessChain(node) { + return isElementAccessExpression(node) && !!(node.flags & 64 /* OptionalChain */); +} +function isCallChain(node) { + return isCallExpression(node) && !!(node.flags & 64 /* OptionalChain */); +} +function isOptionalChain(node) { + const kind = node.kind; + return !!(node.flags & 64 /* OptionalChain */) && (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */ || kind === 213 /* CallExpression */ || kind === 235 /* NonNullExpression */); +} +function isOptionalChainRoot(node) { + return isOptionalChain(node) && !isNonNullExpression(node) && !!node.questionDotToken; +} +function isExpressionOfOptionalChainRoot(node) { + return isOptionalChainRoot(node.parent) && node.parent.expression === node; +} +function isOutermostOptionalChain(node) { + return !isOptionalChain(node.parent) || isOptionalChainRoot(node.parent) || node !== node.parent.expression; +} +function isNullishCoalesce(node) { + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 61 /* QuestionQuestionToken */; +} +function isConstTypeReference(node) { + return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "const" && !node.typeArguments; +} +function skipPartiallyEmittedExpressions(node) { + return skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */); +} +function isNonNullChain(node) { + return isNonNullExpression(node) && !!(node.flags & 64 /* OptionalChain */); +} +function isNamedExportBindings(node) { + return node.kind === 280 /* NamespaceExport */ || node.kind === 279 /* NamedExports */; +} +function isJSDocPropertyLikeTag(node) { + return node.kind === 348 /* JSDocPropertyTag */ || node.kind === 341 /* JSDocParameterTag */; +} +function isNodeKind(kind) { + return kind >= 166 /* FirstNode */; +} +function isTokenKind(kind) { + return kind >= 0 /* FirstToken */ && kind <= 165 /* LastToken */; +} +function isNodeArray(array) { + return hasProperty(array, "pos") && hasProperty(array, "end"); +} +function isLiteralKind(kind) { + return 9 /* FirstLiteralToken */ <= kind && kind <= 15 /* LastLiteralToken */; +} +function isLiteralExpression(node) { + return isLiteralKind(node.kind); +} +function isLiteralExpressionOfObject(node) { + switch (node.kind) { + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 14 /* RegularExpressionLiteral */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + return true; + } + return false; +} +function isTemplateLiteralKind(kind) { + return 15 /* FirstTemplateToken */ <= kind && kind <= 18 /* LastTemplateToken */; +} +function isTemplateMiddleOrTemplateTail(node) { + const kind = node.kind; + return kind === 17 /* TemplateMiddle */ || kind === 18 /* TemplateTail */; +} +function isImportOrExportSpecifier(node) { + return isImportSpecifier(node) || isExportSpecifier(node); +} +function isTypeOnlyImportDeclaration(node) { + switch (node.kind) { + case 276 /* ImportSpecifier */: + return node.isTypeOnly || node.parent.parent.isTypeOnly; + case 274 /* NamespaceImport */: + return node.parent.isTypeOnly; + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + return node.isTypeOnly; + } + return false; +} +function isTypeOnlyExportDeclaration(node) { + switch (node.kind) { + case 281 /* ExportSpecifier */: + return node.isTypeOnly || node.parent.parent.isTypeOnly; + case 278 /* ExportDeclaration */: + return node.isTypeOnly && !!node.moduleSpecifier && !node.exportClause; + case 280 /* NamespaceExport */: + return node.parent.isTypeOnly; + } + return false; +} +function isTypeOnlyImportOrExportDeclaration(node) { + return isTypeOnlyImportDeclaration(node) || isTypeOnlyExportDeclaration(node); +} +function isImportAttributeName(node) { + return isStringLiteral(node) || isIdentifier(node); +} +function isGeneratedIdentifier(node) { + var _a; + return isIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; +} +function isGeneratedPrivateIdentifier(node) { + var _a; + return isPrivateIdentifier(node) && ((_a = node.emitNode) == null ? void 0 : _a.autoGenerate) !== void 0; +} +function isFileLevelReservedGeneratedIdentifier(node) { + const flags = node.emitNode.autoGenerate.flags; + return !!(flags & 32 /* FileLevel */) && !!(flags & 16 /* Optimistic */) && !!(flags & 8 /* ReservedInNestedScopes */); +} +function isPrivateIdentifierClassElementDeclaration(node) { + return (isPropertyDeclaration(node) || isMethodOrAccessor(node)) && isPrivateIdentifier(node.name); +} +function isPrivateIdentifierPropertyAccessExpression(node) { + return isPropertyAccessExpression(node) && isPrivateIdentifier(node.name); +} +function isModifierKind(token) { + switch (token) { + case 128 /* AbstractKeyword */: + case 129 /* AccessorKeyword */: + case 134 /* AsyncKeyword */: + case 87 /* ConstKeyword */: + case 138 /* DeclareKeyword */: + case 90 /* DefaultKeyword */: + case 95 /* ExportKeyword */: + case 103 /* InKeyword */: + case 125 /* PublicKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 148 /* ReadonlyKeyword */: + case 126 /* StaticKeyword */: + case 147 /* OutKeyword */: + case 164 /* OverrideKeyword */: + return true; + } + return false; +} +function isParameterPropertyModifier(kind) { + return !!(modifierToFlag(kind) & 31 /* ParameterPropertyModifier */); +} +function isClassMemberModifier(idToken) { + return isParameterPropertyModifier(idToken) || idToken === 126 /* StaticKeyword */ || idToken === 164 /* OverrideKeyword */ || idToken === 129 /* AccessorKeyword */; +} +function isModifier(node) { + return isModifierKind(node.kind); +} +function isEntityName(node) { + const kind = node.kind; + return kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; +} +function isPropertyName(node) { + const kind = node.kind; + return kind === 80 /* Identifier */ || kind === 81 /* PrivateIdentifier */ || kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */ || kind === 167 /* ComputedPropertyName */; +} +function isBindingName(node) { + const kind = node.kind; + return kind === 80 /* Identifier */ || kind === 206 /* ObjectBindingPattern */ || kind === 207 /* ArrayBindingPattern */; +} +function isFunctionLike(node) { + return !!node && isFunctionLikeKind(node.kind); +} +function isFunctionLikeOrClassStaticBlockDeclaration(node) { + return !!node && (isFunctionLikeKind(node.kind) || isClassStaticBlockDeclaration(node)); +} +function isFunctionLikeDeclaration(node) { + return node && isFunctionLikeDeclarationKind(node.kind); +} +function isBooleanLiteral(node) { + return node.kind === 112 /* TrueKeyword */ || node.kind === 97 /* FalseKeyword */; +} +function isFunctionLikeDeclarationKind(kind) { + switch (kind) { + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return true; + default: + return false; + } +} +function isFunctionLikeKind(kind) { + switch (kind) { + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 323 /* JSDocSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 317 /* JSDocFunctionType */: + case 185 /* ConstructorType */: + return true; + default: + return isFunctionLikeDeclarationKind(kind); + } +} +function isFunctionOrModuleBlock(node) { + return isSourceFile(node) || isModuleBlock(node) || isBlock(node) && isFunctionLike(node.parent); +} +function isClassElement(node) { + const kind = node.kind; + return kind === 176 /* Constructor */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 240 /* SemicolonClassElement */; +} +function isClassLike(node) { + return node && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */); +} +function isAccessor(node) { + return node && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */); +} +function isAutoAccessorPropertyDeclaration(node) { + return isPropertyDeclaration(node) && hasAccessorModifier(node); +} +function isClassInstanceProperty(node) { + if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) { + return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression( + node, + /*excludeThisKeyword*/ + true + ); + } + return node.parent && isClassLike(node.parent) && isPropertyDeclaration(node) && !hasAccessorModifier(node); +} +function isMethodOrAccessor(node) { + switch (node.kind) { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return true; + default: + return false; + } +} +function isModifierLike(node) { + return isModifier(node) || isDecorator(node); +} +function isTypeElement(node) { + const kind = node.kind; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; +} +function isObjectLiteralElementLike(node) { + const kind = node.kind; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 305 /* SpreadAssignment */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; +} +function isTypeNode(node) { + return isTypeNodeKind(node.kind); +} +function isFunctionOrConstructorTypeNode(node) { + switch (node.kind) { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + return true; + } + return false; +} +function isBindingPattern(node) { + if (node) { + const kind = node.kind; + return kind === 207 /* ArrayBindingPattern */ || kind === 206 /* ObjectBindingPattern */; + } + return false; +} +function isAssignmentPattern(node) { + const kind = node.kind; + return kind === 209 /* ArrayLiteralExpression */ || kind === 210 /* ObjectLiteralExpression */; +} +function isArrayBindingElement(node) { + const kind = node.kind; + return kind === 208 /* BindingElement */ || kind === 232 /* OmittedExpression */; +} +function isDeclarationBindingElement(bindingElement) { + switch (bindingElement.kind) { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + return true; + } + return false; +} +function isBindingOrAssignmentElement(node) { + return isVariableDeclaration(node) || isParameter(node) || isObjectBindingOrAssignmentElement(node) || isArrayBindingOrAssignmentElement(node); +} +function isBindingOrAssignmentPattern(node) { + return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node); +} +function isObjectBindingOrAssignmentPattern(node) { + switch (node.kind) { + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: + return true; + } + return false; +} +function isObjectBindingOrAssignmentElement(node) { + switch (node.kind) { + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + return true; + } + return false; +} +function isArrayBindingOrAssignmentPattern(node) { + switch (node.kind) { + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: + return true; + } + return false; +} +function isArrayBindingOrAssignmentElement(node) { + switch (node.kind) { + case 208 /* BindingElement */: + case 232 /* OmittedExpression */: + case 230 /* SpreadElement */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 80 /* Identifier */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return true; + } + return isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + ); +} +function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) { + const kind = node.kind; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */ || kind === 205 /* ImportType */; +} +function isPropertyAccessOrQualifiedName(node) { + const kind = node.kind; + return kind === 211 /* PropertyAccessExpression */ || kind === 166 /* QualifiedName */; +} +function isCallLikeOrFunctionLikeExpression(node) { + return isCallLikeExpression(node) || isFunctionExpressionOrArrowFunction(node); +} +function isCallLikeExpression(node) { + switch (node.kind) { + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + return true; + default: + return false; + } +} +function isCallOrNewExpression(node) { + return node.kind === 213 /* CallExpression */ || node.kind === 214 /* NewExpression */; +} +function isTemplateLiteral(node) { + const kind = node.kind; + return kind === 228 /* TemplateExpression */ || kind === 15 /* NoSubstitutionTemplateLiteral */; +} +function isLeftHandSideExpression(node) { + return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind); +} +function isLeftHandSideExpressionKind(kind) { + switch (kind) { + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 214 /* NewExpression */: + case 213 /* CallExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 215 /* TaggedTemplateExpression */: + case 209 /* ArrayLiteralExpression */: + case 217 /* ParenthesizedExpression */: + case 210 /* ObjectLiteralExpression */: + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + case 14 /* RegularExpressionLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: + case 97 /* FalseKeyword */: + case 106 /* NullKeyword */: + case 110 /* ThisKeyword */: + case 112 /* TrueKeyword */: + case 108 /* SuperKeyword */: + case 235 /* NonNullExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 236 /* MetaProperty */: + case 102 /* ImportKeyword */: + case 282 /* MissingDeclaration */: + return true; + default: + return false; + } +} +function isUnaryExpression(node) { + return isUnaryExpressionKind(skipPartiallyEmittedExpressions(node).kind); +} +function isUnaryExpressionKind(kind) { + switch (kind) { + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 223 /* AwaitExpression */: + case 216 /* TypeAssertionExpression */: + return true; + default: + return isLeftHandSideExpressionKind(kind); + } +} +function isLiteralTypeLiteral(node) { + switch (node.kind) { + case 106 /* NullKeyword */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 224 /* PrefixUnaryExpression */: + return true; + default: + return isLiteralExpression(node); + } +} +function isExpression(node) { + return isExpressionKind(skipPartiallyEmittedExpressions(node).kind); +} +function isExpressionKind(kind) { + switch (kind) { + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 230 /* SpreadElement */: + case 234 /* AsExpression */: + case 232 /* OmittedExpression */: + case 355 /* CommaListExpression */: + case 354 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: + return true; + default: + return isUnaryExpressionKind(kind); + } +} +function isAssertionExpression(node) { + const kind = node.kind; + return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; +} +function isIterationStatement(node, lookInLabeledStatements) { + switch (node.kind) { + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + return true; + case 256 /* LabeledStatement */: + return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements); + } + return false; +} +function isScopeMarker(node) { + return isExportAssignment(node) || isExportDeclaration(node); +} +function hasScopeMarker(statements) { + return some(statements, isScopeMarker); +} +function needsScopeMarker(result) { + return !isAnyImportOrReExport(result) && !isExportAssignment(result) && !hasSyntacticModifier(result, 32 /* Export */) && !isAmbientModule(result); +} +function isExternalModuleIndicator(result) { + return isAnyImportOrReExport(result) || isExportAssignment(result) || hasSyntacticModifier(result, 32 /* Export */); +} +function isForInOrOfStatement(node) { + return node.kind === 249 /* ForInStatement */ || node.kind === 250 /* ForOfStatement */; +} +function isConciseBody(node) { + return isBlock(node) || isExpression(node); +} +function isForInitializer(node) { + return isVariableDeclarationList(node) || isExpression(node); +} +function isModuleBody(node) { + const kind = node.kind; + return kind === 268 /* ModuleBlock */ || kind === 267 /* ModuleDeclaration */ || kind === 80 /* Identifier */; +} +function isNamedImportBindings(node) { + const kind = node.kind; + return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */; +} +function isModuleOrEnumDeclaration(node) { + return node.kind === 267 /* ModuleDeclaration */ || node.kind === 266 /* EnumDeclaration */; +} +function canHaveSymbol(node) { + switch (node.kind) { + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 208 /* BindingElement */: + case 213 /* CallExpression */: + case 179 /* CallSignature */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 212 /* ElementAccessExpression */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 80 /* Identifier */: + case 273 /* ImportClause */: + case 271 /* ImportEqualsDeclaration */: + case 276 /* ImportSpecifier */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + case 317 /* JSDocFunctionType */: + case 341 /* JSDocParameterTag */: + case 348 /* JSDocPropertyTag */: + case 323 /* JSDocSignature */: + case 346 /* JSDocTypedefTag */: + case 322 /* JSDocTypeLiteral */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 280 /* NamespaceExport */: + case 270 /* NamespaceExportDeclaration */: + case 274 /* NamespaceImport */: + case 214 /* NewExpression */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 9 /* NumericLiteral */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 307 /* SourceFile */: + case 305 /* SpreadAssignment */: + case 11 /* StringLiteral */: + case 265 /* TypeAliasDeclaration */: + case 187 /* TypeLiteral */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + return true; + default: + return false; + } +} +function canHaveLocals(node) { + switch (node.kind) { + case 219 /* ArrowFunction */: + case 241 /* Block */: + case 179 /* CallSignature */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 175 /* ClassStaticBlockDeclaration */: + case 194 /* ConditionalType */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 181 /* IndexSignature */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + case 317 /* JSDocFunctionType */: + case 323 /* JSDocSignature */: + case 346 /* JSDocTypedefTag */: + case 200 /* MappedType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 178 /* SetAccessor */: + case 307 /* SourceFile */: + case 265 /* TypeAliasDeclaration */: + return true; + default: + return false; + } +} +function isDeclarationKind(kind) { + return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 346 /* JSDocTypedefTag */ || kind === 338 /* JSDocCallbackTag */ || kind === 348 /* JSDocPropertyTag */ || kind === 202 /* NamedTupleMember */; +} +function isDeclarationStatementKind(kind) { + return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */; +} +function isStatementKindButNotDeclarationKind(kind) { + return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 353 /* NotEmittedStatement */; +} +function isDeclaration(node) { + if (node.kind === 168 /* TypeParameter */) { + return node.parent && node.parent.kind !== 345 /* JSDocTemplateTag */ || isInJSFile(node); + } + return isDeclarationKind(node.kind); +} +function isDeclarationStatement(node) { + return isDeclarationStatementKind(node.kind); +} +function isStatementButNotDeclaration(node) { + return isStatementKindButNotDeclarationKind(node.kind); +} +function isStatement(node) { + const kind = node.kind; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || isBlockStatement(node); +} +function isBlockStatement(node) { + if (node.kind !== 241 /* Block */) return false; + if (node.parent !== void 0) { + if (node.parent.kind === 258 /* TryStatement */ || node.parent.kind === 299 /* CatchClause */) { + return false; + } + } + return !isFunctionBlock(node); +} +function isStatementOrBlock(node) { + const kind = node.kind; + return isStatementKindButNotDeclarationKind(kind) || isDeclarationStatementKind(kind) || kind === 241 /* Block */; +} +function isModuleReference(node) { + const kind = node.kind; + return kind === 283 /* ExternalModuleReference */ || kind === 166 /* QualifiedName */ || kind === 80 /* Identifier */; +} +function isJsxTagNameExpression(node) { + const kind = node.kind; + return kind === 110 /* ThisKeyword */ || kind === 80 /* Identifier */ || kind === 211 /* PropertyAccessExpression */ || kind === 295 /* JsxNamespacedName */; +} +function isJsxChild(node) { + const kind = node.kind; + return kind === 284 /* JsxElement */ || kind === 294 /* JsxExpression */ || kind === 285 /* JsxSelfClosingElement */ || kind === 12 /* JsxText */ || kind === 288 /* JsxFragment */; +} +function isJsxAttributeLike(node) { + const kind = node.kind; + return kind === 291 /* JsxAttribute */ || kind === 293 /* JsxSpreadAttribute */; +} +function isStringLiteralOrJsxExpression(node) { + const kind = node.kind; + return kind === 11 /* StringLiteral */ || kind === 294 /* JsxExpression */; +} +function isJsxOpeningLikeElement(node) { + const kind = node.kind; + return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; +} +function isCaseOrDefaultClause(node) { + const kind = node.kind; + return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; +} +function isJSDocNode(node) { + return node.kind >= 309 /* FirstJSDocNode */ && node.kind <= 351 /* LastJSDocNode */; +} +function isJSDocTag(node) { + return node.kind >= 327 /* FirstJSDocTagNode */ && node.kind <= 351 /* LastJSDocTagNode */; +} +function isSetAccessor(node) { + return node.kind === 178 /* SetAccessor */; +} +function isGetAccessor(node) { + return node.kind === 177 /* GetAccessor */; +} +function hasJSDocNodes(node) { + if (!canHaveJSDoc(node)) return false; + const { jsDoc } = node; + return !!jsDoc && jsDoc.length > 0; +} +function hasType(node) { + return !!node.type; +} +function hasInitializer(node) { + return !!node.initializer; +} +function hasOnlyExpressionInitializer(node) { + switch (node.kind) { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 306 /* EnumMember */: + return true; + default: + return false; + } +} +function isTypeReferenceType(node) { + return node.kind === 183 /* TypeReference */ || node.kind === 233 /* ExpressionWithTypeArguments */; +} +var MAX_SMI_X86 = 1073741823; +function guessIndentation(lines) { + let indentation = MAX_SMI_X86; + for (const line of lines) { + if (!line.length) { + continue; + } + let i = 0; + for (; i < line.length && i < indentation; i++) { + if (!isWhiteSpaceLike(line.charCodeAt(i))) { + break; + } + } + if (i < indentation) { + indentation = i; + } + if (indentation === 0) { + return 0; + } + } + return indentation === MAX_SMI_X86 ? void 0 : indentation; +} +function isStringLiteralLike(node) { + return node.kind === 11 /* StringLiteral */ || node.kind === 15 /* NoSubstitutionTemplateLiteral */; +} +function isJSDocLinkLike(node) { + return node.kind === 324 /* JSDocLink */ || node.kind === 325 /* JSDocLinkCode */ || node.kind === 326 /* JSDocLinkPlain */; +} +function hasRestParameter(s) { + const last2 = lastOrUndefined(s.parameters); + return !!last2 && isRestParameter(last2); +} +function isRestParameter(node) { + const type = isJSDocParameterTag(node) ? node.typeExpression && node.typeExpression.type : node.type; + return node.dotDotDotToken !== void 0 || !!type && type.kind === 318 /* JSDocVariadicType */; +} +function hasInternalAnnotation(range, sourceFile) { + const comment = sourceFile.text.substring(range.pos, range.end); + return comment.includes("@internal"); +} +function isInternalDeclaration(node, sourceFile) { + sourceFile ?? (sourceFile = getSourceFileOfNode(node)); + const parseTreeNode = getParseTreeNode(node); + if (parseTreeNode && parseTreeNode.kind === 169 /* Parameter */) { + const paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode); + const previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : void 0; + const text = sourceFile.text; + const commentRanges = previousSibling ? concatenate( + // to handle + // ... parameters, /** @internal */ + // public param: string + getTrailingCommentRanges(text, skipTrivia( + text, + previousSibling.end + 1, + /*stopAfterLineBreak*/ + false, + /*stopAtComments*/ + true + )), + getLeadingCommentRanges(text, node.pos) + ) : getTrailingCommentRanges(text, skipTrivia( + text, + node.pos, + /*stopAfterLineBreak*/ + false, + /*stopAtComments*/ + true + )); + return some(commentRanges) && hasInternalAnnotation(last(commentRanges), sourceFile); + } + const leadingCommentRanges = parseTreeNode && getLeadingCommentRangesOfNode(parseTreeNode, sourceFile); + return !!forEach(leadingCommentRanges, (range) => { + return hasInternalAnnotation(range, sourceFile); + }); +} + +// src/compiler/utilities.ts +var resolvingEmptyArray = []; +var externalHelpersModuleNameText = "tslib"; +var defaultMaximumTruncationLength = 160; +var noTruncationMaximumTruncationLength = 1e6; +function getDeclarationOfKind(symbol, kind) { + const declarations = symbol.declarations; + if (declarations) { + for (const declaration of declarations) { + if (declaration.kind === kind) { + return declaration; + } + } + } + return void 0; +} +function getDeclarationsOfKind(symbol, kind) { + return filter(symbol.declarations || emptyArray, (d) => d.kind === kind); +} +function createSymbolTable(symbols) { + const result = /* @__PURE__ */ new Map(); + if (symbols) { + for (const symbol of symbols) { + result.set(symbol.escapedName, symbol); + } + } + return result; +} +function isTransientSymbol(symbol) { + return (symbol.flags & 33554432 /* Transient */) !== 0; +} +function isExternalModuleSymbol(moduleSymbol) { + return !!(moduleSymbol.flags & 1536 /* Module */) && moduleSymbol.escapedName.charCodeAt(0) === 34 /* doubleQuote */; +} +var stringWriter = createSingleLineStringWriter(); +function createSingleLineStringWriter() { + var str = ""; + const writeText = (text) => str += text; + return { + getText: () => str, + write: writeText, + rawWrite: writeText, + writeKeyword: writeText, + writeOperator: writeText, + writePunctuation: writeText, + writeSpace: writeText, + writeStringLiteral: writeText, + writeLiteral: writeText, + writeParameter: writeText, + writeProperty: writeText, + writeSymbol: (s, _) => writeText(s), + writeTrailingSemicolon: writeText, + writeComment: writeText, + getTextPos: () => str.length, + getLine: () => 0, + getColumn: () => 0, + getIndent: () => 0, + isAtStartOfLine: () => false, + hasTrailingComment: () => false, + hasTrailingWhitespace: () => !!str.length && isWhiteSpaceLike(str.charCodeAt(str.length - 1)), + // Completely ignore indentation for string writers. And map newlines to + // a single space. + writeLine: () => str += " ", + increaseIndent: noop, + decreaseIndent: noop, + clear: () => str = "" + }; +} +function changesAffectModuleResolution(oldOptions, newOptions) { + return oldOptions.configFilePath !== newOptions.configFilePath || optionsHaveModuleResolutionChanges(oldOptions, newOptions); +} +function optionsHaveModuleResolutionChanges(oldOptions, newOptions) { + return optionsHaveChanges(oldOptions, newOptions, moduleResolutionOptionDeclarations); +} +function changesAffectingProgramStructure(oldOptions, newOptions) { + return optionsHaveChanges(oldOptions, newOptions, optionsAffectingProgramStructure); +} +function optionsHaveChanges(oldOptions, newOptions, optionDeclarations2) { + return oldOptions !== newOptions && optionDeclarations2.some((o) => !isJsonEqual(getCompilerOptionValue(oldOptions, o), getCompilerOptionValue(newOptions, o))); +} +function forEachEntry(map2, callback) { + const iterator = map2.entries(); + for (const [key, value] of iterator) { + const result = callback(value, key); + if (result) { + return result; + } + } + return void 0; +} +function forEachKey(map2, callback) { + const iterator = map2.keys(); + for (const key of iterator) { + const result = callback(key); + if (result) { + return result; + } + } + return void 0; +} +function copyEntries(source, target) { + source.forEach((value, key) => { + target.set(key, value); + }); +} +function usingSingleLineStringWriter(action) { + const oldString = stringWriter.getText(); + try { + action(stringWriter); + return stringWriter.getText(); + } finally { + stringWriter.clear(); + stringWriter.writeKeyword(oldString); + } +} +function getFullWidth(node) { + return node.end - node.pos; +} +function projectReferenceIsEqualTo(oldRef, newRef) { + return oldRef.path === newRef.path && !oldRef.prepend === !newRef.prepend && !oldRef.circular === !newRef.circular; +} +function moduleResolutionIsEqualTo(oldResolution, newResolution) { + return oldResolution === newResolution || oldResolution.resolvedModule === newResolution.resolvedModule || !!oldResolution.resolvedModule && !!newResolution.resolvedModule && oldResolution.resolvedModule.isExternalLibraryImport === newResolution.resolvedModule.isExternalLibraryImport && oldResolution.resolvedModule.extension === newResolution.resolvedModule.extension && oldResolution.resolvedModule.resolvedFileName === newResolution.resolvedModule.resolvedFileName && oldResolution.resolvedModule.originalPath === newResolution.resolvedModule.originalPath && packageIdIsEqual(oldResolution.resolvedModule.packageId, newResolution.resolvedModule.packageId) && oldResolution.alternateResult === newResolution.alternateResult; +} +function createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageName) { + var _a; + const alternateResult = (_a = host.getResolvedModule(sourceFile, moduleReference, mode)) == null ? void 0 : _a.alternateResult; + const alternateResultMessage = alternateResult && (getEmitModuleResolutionKind(host.getCompilerOptions()) === 2 /* Node10 */ ? [Diagnostics.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler, [alternateResult]] : [ + Diagnostics.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, + [alternateResult, alternateResult.includes(nodeModulesPathPart + "@types/") ? `@types/${mangleScopedPackageName(packageName)}` : packageName] + ]); + const result = alternateResultMessage ? chainDiagnosticMessages( + /*details*/ + void 0, + alternateResultMessage[0], + ...alternateResultMessage[1] + ) : host.typesPackageExists(packageName) ? chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.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, + packageName, + mangleScopedPackageName(packageName) + ) : host.packageBundlesTypes(packageName) ? chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1, + packageName, + moduleReference + ) : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, + moduleReference, + mangleScopedPackageName(packageName) + ); + if (result) result.repopulateInfo = () => ({ moduleReference, mode, packageName: packageName === moduleReference ? void 0 : packageName }); + return result; +} +function packageIdIsEqual(a, b) { + return a === b || !!a && !!b && a.name === b.name && a.subModuleName === b.subModuleName && a.version === b.version && a.peerDependencies === b.peerDependencies; +} +function packageIdToPackageName({ name, subModuleName }) { + return subModuleName ? `${name}/${subModuleName}` : name; +} +function packageIdToString(packageId) { + return `${packageIdToPackageName(packageId)}@${packageId.version}${packageId.peerDependencies ?? ""}`; +} +function typeDirectiveIsEqualTo(oldResolution, newResolution) { + return oldResolution === newResolution || oldResolution.resolvedTypeReferenceDirective === newResolution.resolvedTypeReferenceDirective || !!oldResolution.resolvedTypeReferenceDirective && !!newResolution.resolvedTypeReferenceDirective && oldResolution.resolvedTypeReferenceDirective.resolvedFileName === newResolution.resolvedTypeReferenceDirective.resolvedFileName && !!oldResolution.resolvedTypeReferenceDirective.primary === !!newResolution.resolvedTypeReferenceDirective.primary && oldResolution.resolvedTypeReferenceDirective.originalPath === newResolution.resolvedTypeReferenceDirective.originalPath; +} +function hasChangesInResolutions(names, newResolutions, getOldResolution, comparer) { + Debug.assert(names.length === newResolutions.length); + for (let i = 0; i < names.length; i++) { + const newResolution = newResolutions[i]; + const entry = names[i]; + const oldResolution = getOldResolution(entry); + const changed = oldResolution ? !newResolution || !comparer(oldResolution, newResolution) : newResolution; + if (changed) { + return true; + } + } + return false; +} +function containsParseError(node) { + aggregateChildData(node); + return (node.flags & 1048576 /* ThisNodeOrAnySubNodesHasError */) !== 0; +} +function aggregateChildData(node) { + if (!(node.flags & 2097152 /* HasAggregatedChildData */)) { + const thisNodeOrAnySubNodesHasError = (node.flags & 262144 /* ThisNodeHasError */) !== 0 || forEachChild(node, containsParseError); + if (thisNodeOrAnySubNodesHasError) { + node.flags |= 1048576 /* ThisNodeOrAnySubNodesHasError */; + } + node.flags |= 2097152 /* HasAggregatedChildData */; + } +} +function getSourceFileOfNode(node) { + while (node && node.kind !== 307 /* SourceFile */) { + node = node.parent; + } + return node; +} +function getSourceFileOfModule(module2) { + return getSourceFileOfNode(module2.valueDeclaration || getNonAugmentationDeclaration(module2)); +} +function isPlainJsFile(file, checkJs) { + return !!file && (file.scriptKind === 1 /* JS */ || file.scriptKind === 2 /* JSX */) && !file.checkJsDirective && checkJs === void 0; +} +function isStatementWithLocals(node) { + switch (node.kind) { + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + return true; + } + return false; +} +function getEndLinePosition(line, sourceFile) { + Debug.assert(line >= 0); + const lineStarts = getLineStarts(sourceFile); + const lineIndex = line; + const sourceText = sourceFile.text; + if (lineIndex + 1 === lineStarts.length) { + return sourceText.length - 1; + } else { + const start = lineStarts[lineIndex]; + let pos = lineStarts[lineIndex + 1] - 1; + Debug.assert(isLineBreak(sourceText.charCodeAt(pos))); + while (start <= pos && isLineBreak(sourceText.charCodeAt(pos))) { + pos--; + } + return pos; + } +} +function isFileLevelUniqueName(sourceFile, name, hasGlobalName) { + return !(hasGlobalName && hasGlobalName(name)) && !sourceFile.identifiers.has(name); +} +function nodeIsMissing(node) { + if (node === void 0) { + return true; + } + return node.pos === node.end && node.pos >= 0 && node.kind !== 1 /* EndOfFileToken */; +} +function nodeIsPresent(node) { + return !nodeIsMissing(node); +} +function insertStatementsAfterPrologue(to, from, isPrologueDirective2) { + if (from === void 0 || from.length === 0) return to; + let statementIndex = 0; + for (; statementIndex < to.length; ++statementIndex) { + if (!isPrologueDirective2(to[statementIndex])) { + break; + } + } + to.splice(statementIndex, 0, ...from); + return to; +} +function insertStatementAfterPrologue(to, statement, isPrologueDirective2) { + if (statement === void 0) return to; + let statementIndex = 0; + for (; statementIndex < to.length; ++statementIndex) { + if (!isPrologueDirective2(to[statementIndex])) { + break; + } + } + to.splice(statementIndex, 0, statement); + return to; +} +function isAnyPrologueDirective(node) { + return isPrologueDirective(node) || !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); +} +function insertStatementsAfterStandardPrologue(to, from) { + return insertStatementsAfterPrologue(to, from, isPrologueDirective); +} +function insertStatementsAfterCustomPrologue(to, from) { + return insertStatementsAfterPrologue(to, from, isAnyPrologueDirective); +} +function insertStatementAfterCustomPrologue(to, statement) { + return insertStatementAfterPrologue(to, statement, isAnyPrologueDirective); +} +function isRecognizedTripleSlashComment(text, commentPos, commentEnd) { + if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) { + const textSubStr = text.substring(commentPos, commentEnd); + return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false; + } + return false; +} +function isPinnedComment(text, start) { + return text.charCodeAt(start + 1) === 42 /* asterisk */ && text.charCodeAt(start + 2) === 33 /* exclamation */; +} +function createCommentDirectivesMap(sourceFile, commentDirectives) { + const directivesByLine = new Map( + commentDirectives.map((commentDirective) => [ + `${getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line}`, + commentDirective + ]) + ); + const usedLines = /* @__PURE__ */ new Map(); + return { getUnusedExpectations, markUsed }; + function getUnusedExpectations() { + return arrayFrom(directivesByLine.entries()).filter(([line, directive]) => directive.type === 0 /* ExpectError */ && !usedLines.get(line)).map(([_, directive]) => directive); + } + function markUsed(line) { + if (!directivesByLine.has(`${line}`)) { + return false; + } + usedLines.set(`${line}`, true); + return true; + } +} +function getTokenPosOfNode(node, sourceFile, includeJsDoc) { + if (nodeIsMissing(node)) { + return node.pos; + } + if (isJSDocNode(node) || node.kind === 12 /* JsxText */) { + return skipTrivia( + (sourceFile ?? getSourceFileOfNode(node)).text, + node.pos, + /*stopAfterLineBreak*/ + false, + /*stopAtComments*/ + true + ); + } + if (includeJsDoc && hasJSDocNodes(node)) { + return getTokenPosOfNode(node.jsDoc[0], sourceFile); + } + if (node.kind === 352 /* SyntaxList */) { + sourceFile ?? (sourceFile = getSourceFileOfNode(node)); + const first2 = firstOrUndefined(getNodeChildren(node, sourceFile)); + if (first2) { + return getTokenPosOfNode(first2, sourceFile, includeJsDoc); + } + } + return skipTrivia( + (sourceFile ?? getSourceFileOfNode(node)).text, + node.pos, + /*stopAfterLineBreak*/ + false, + /*stopAtComments*/ + false, + isInJSDoc(node) + ); +} +function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) { + return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia); +} +function isJSDocTypeExpressionOrChild(node) { + return !!findAncestor(node, isJSDocTypeExpression); +} +function isExportNamespaceAsDefaultDeclaration(node) { + return !!(isExportDeclaration(node) && node.exportClause && isNamespaceExport(node.exportClause) && node.exportClause.name.escapedText === "default"); +} +function getTextOfNodeFromSourceText(sourceText, node, includeTrivia = false) { + if (nodeIsMissing(node)) { + return ""; + } + let text = sourceText.substring(includeTrivia ? node.pos : skipTrivia(sourceText, node.pos), node.end); + if (isJSDocTypeExpressionOrChild(node)) { + text = text.split(/\r\n|\n|\r/).map((line) => line.replace(/^\s*\*/, "").trimStart()).join("\n"); + } + return text; +} +function getTextOfNode(node, includeTrivia = false) { + return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node, includeTrivia); +} +function getPos(range) { + return range.pos; +} +function indexOfNode(nodeArray, node) { + return binarySearch(nodeArray, node, getPos, compareValues); +} +function getEmitFlags(node) { + const emitNode = node.emitNode; + return emitNode && emitNode.flags || 0; +} +function getInternalEmitFlags(node) { + const emitNode = node.emitNode; + return emitNode && emitNode.internalFlags || 0; +} +var getScriptTargetFeatures = /* @__PURE__ */ memoize( + () => new Map(Object.entries({ + Array: new Map(Object.entries({ + es2015: [ + "find", + "findIndex", + "fill", + "copyWithin", + "entries", + "keys", + "values" + ], + es2016: [ + "includes" + ], + es2019: [ + "flat", + "flatMap" + ], + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Iterator: new Map(Object.entries({ + es2015: emptyArray + })), + AsyncIterator: new Map(Object.entries({ + es2015: emptyArray + })), + Atomics: new Map(Object.entries({ + es2017: emptyArray + })), + SharedArrayBuffer: new Map(Object.entries({ + es2017: emptyArray + })), + AsyncIterable: new Map(Object.entries({ + es2018: emptyArray + })), + AsyncIterableIterator: new Map(Object.entries({ + es2018: emptyArray + })), + AsyncGenerator: new Map(Object.entries({ + es2018: emptyArray + })), + AsyncGeneratorFunction: new Map(Object.entries({ + es2018: emptyArray + })), + RegExp: new Map(Object.entries({ + es2015: [ + "flags", + "sticky", + "unicode" + ], + es2018: [ + "dotAll" + ] + })), + Reflect: new Map(Object.entries({ + es2015: [ + "apply", + "construct", + "defineProperty", + "deleteProperty", + "get", + "getOwnPropertyDescriptor", + "getPrototypeOf", + "has", + "isExtensible", + "ownKeys", + "preventExtensions", + "set", + "setPrototypeOf" + ] + })), + ArrayConstructor: new Map(Object.entries({ + es2015: [ + "from", + "of" + ], + esnext: [ + "fromAsync" + ] + })), + ObjectConstructor: new Map(Object.entries({ + es2015: [ + "assign", + "getOwnPropertySymbols", + "keys", + "is", + "setPrototypeOf" + ], + es2017: [ + "values", + "entries", + "getOwnPropertyDescriptors" + ], + es2019: [ + "fromEntries" + ], + es2022: [ + "hasOwn" + ] + })), + NumberConstructor: new Map(Object.entries({ + es2015: [ + "isFinite", + "isInteger", + "isNaN", + "isSafeInteger", + "parseFloat", + "parseInt" + ] + })), + Math: new Map(Object.entries({ + es2015: [ + "clz32", + "imul", + "sign", + "log10", + "log2", + "log1p", + "expm1", + "cosh", + "sinh", + "tanh", + "acosh", + "asinh", + "atanh", + "hypot", + "trunc", + "fround", + "cbrt" + ] + })), + Map: new Map(Object.entries({ + es2015: [ + "entries", + "keys", + "values" + ] + })), + Set: new Map(Object.entries({ + es2015: [ + "entries", + "keys", + "values" + ] + })), + PromiseConstructor: new Map(Object.entries({ + es2015: [ + "all", + "race", + "reject", + "resolve" + ], + es2020: [ + "allSettled" + ], + es2021: [ + "any" + ] + })), + Symbol: new Map(Object.entries({ + es2015: [ + "for", + "keyFor" + ], + es2019: [ + "description" + ] + })), + WeakMap: new Map(Object.entries({ + es2015: [ + "entries", + "keys", + "values" + ] + })), + WeakSet: new Map(Object.entries({ + es2015: [ + "entries", + "keys", + "values" + ] + })), + String: new Map(Object.entries({ + es2015: [ + "codePointAt", + "includes", + "endsWith", + "normalize", + "repeat", + "startsWith", + "anchor", + "big", + "blink", + "bold", + "fixed", + "fontcolor", + "fontsize", + "italics", + "link", + "small", + "strike", + "sub", + "sup" + ], + es2017: [ + "padStart", + "padEnd" + ], + es2019: [ + "trimStart", + "trimEnd", + "trimLeft", + "trimRight" + ], + es2020: [ + "matchAll" + ], + es2021: [ + "replaceAll" + ], + es2022: [ + "at" + ], + esnext: [ + "isWellFormed", + "toWellFormed" + ] + })), + StringConstructor: new Map(Object.entries({ + es2015: [ + "fromCodePoint", + "raw" + ] + })), + DateTimeFormat: new Map(Object.entries({ + es2017: [ + "formatToParts" + ] + })), + Promise: new Map(Object.entries({ + es2015: emptyArray, + es2018: [ + "finally" + ] + })), + RegExpMatchArray: new Map(Object.entries({ + es2018: [ + "groups" + ] + })), + RegExpExecArray: new Map(Object.entries({ + es2018: [ + "groups" + ] + })), + Intl: new Map(Object.entries({ + es2018: [ + "PluralRules" + ] + })), + NumberFormat: new Map(Object.entries({ + es2018: [ + "formatToParts" + ] + })), + SymbolConstructor: new Map(Object.entries({ + es2020: [ + "matchAll" + ] + })), + DataView: new Map(Object.entries({ + es2020: [ + "setBigInt64", + "setBigUint64", + "getBigInt64", + "getBigUint64" + ] + })), + BigInt: new Map(Object.entries({ + es2020: emptyArray + })), + RelativeTimeFormat: new Map(Object.entries({ + es2020: [ + "format", + "formatToParts", + "resolvedOptions" + ] + })), + Int8Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Uint8Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Uint8ClampedArray: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Int16Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Uint16Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Int32Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Uint32Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Float32Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Float64Array: new Map(Object.entries({ + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + BigInt64Array: new Map(Object.entries({ + es2020: emptyArray, + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + BigUint64Array: new Map(Object.entries({ + es2020: emptyArray, + es2022: [ + "at" + ], + es2023: [ + "findLastIndex", + "findLast" + ] + })), + Error: new Map(Object.entries({ + es2022: [ + "cause" + ] + })) + })) +); +function getLiteralText(node, sourceFile, flags) { + if (sourceFile && canUseOriginalText(node, flags)) { + return getSourceTextOfNodeFromSourceFile(sourceFile, node); + } + switch (node.kind) { + case 11 /* StringLiteral */: { + const escapeText = flags & 2 /* JsxAttributeEscape */ ? escapeJsxAttributeString : flags & 1 /* NeverAsciiEscape */ || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? escapeString : escapeNonAsciiString; + if (node.singleQuote) { + return "'" + escapeText(node.text, 39 /* singleQuote */) + "'"; + } else { + return '"' + escapeText(node.text, 34 /* doubleQuote */) + '"'; + } + } + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + case 17 /* TemplateMiddle */: + case 18 /* TemplateTail */: { + const escapeText = flags & 1 /* NeverAsciiEscape */ || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? escapeString : escapeNonAsciiString; + const rawText = node.rawText ?? escapeTemplateSubstitution(escapeText(node.text, 96 /* backtick */)); + switch (node.kind) { + case 15 /* NoSubstitutionTemplateLiteral */: + return "`" + rawText + "`"; + case 16 /* TemplateHead */: + return "`" + rawText + "${"; + case 17 /* TemplateMiddle */: + return "}" + rawText + "${"; + case 18 /* TemplateTail */: + return "}" + rawText + "`"; + } + break; + } + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + return node.text; + case 14 /* RegularExpressionLiteral */: + if (flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) { + return node.text + (node.text.charCodeAt(node.text.length - 1) === 92 /* backslash */ ? " /" : "/"); + } + return node.text; + } + return Debug.fail(`Literal kind '${node.kind}' not accounted for.`); +} +function canUseOriginalText(node, flags) { + if (nodeIsSynthesized(node) || !node.parent || flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) { + return false; + } + if (isNumericLiteral(node)) { + if (node.numericLiteralFlags & 26656 /* IsInvalid */) { + return false; + } + if (node.numericLiteralFlags & 512 /* ContainsSeparator */) { + return !!(flags & 8 /* AllowNumericSeparator */); + } + } + return !isBigIntLiteral(node); +} +function makeIdentifierFromModuleName(moduleName) { + return getBaseFileName(moduleName).replace(/^(\d)/, "_$1").replace(/\W/g, "_"); +} +function isBlockOrCatchScoped(declaration) { + return (getCombinedNodeFlags(declaration) & 7 /* BlockScoped */) !== 0 || isCatchClauseVariableDeclarationOrBindingElement(declaration); +} +function isCatchClauseVariableDeclarationOrBindingElement(declaration) { + const node = getRootDeclaration(declaration); + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; +} +function isAmbientModule(node) { + return isModuleDeclaration(node) && (node.name.kind === 11 /* StringLiteral */ || isGlobalScopeAugmentation(node)); +} +function isModuleWithStringLiteralName(node) { + return isModuleDeclaration(node) && node.name.kind === 11 /* StringLiteral */; +} +function isNonGlobalAmbientModule(node) { + return isModuleDeclaration(node) && isStringLiteral(node.name); +} +function isEffectiveModuleDeclaration(node) { + return isModuleDeclaration(node) || isIdentifier(node); +} +function isShorthandAmbientModuleSymbol(moduleSymbol) { + return isShorthandAmbientModule(moduleSymbol.valueDeclaration); +} +function isShorthandAmbientModule(node) { + return !!node && node.kind === 267 /* ModuleDeclaration */ && !node.body; +} +function isBlockScopedContainerTopLevel(node) { + return node.kind === 307 /* SourceFile */ || node.kind === 267 /* ModuleDeclaration */ || isFunctionLikeOrClassStaticBlockDeclaration(node); +} +function isGlobalScopeAugmentation(module2) { + return !!(module2.flags & 2048 /* GlobalAugmentation */); +} +function isExternalModuleAugmentation(node) { + return isAmbientModule(node) && isModuleAugmentationExternal(node); +} +function isModuleAugmentationExternal(node) { + switch (node.parent.kind) { + case 307 /* SourceFile */: + return isExternalModule(node.parent); + case 268 /* ModuleBlock */: + return isAmbientModule(node.parent.parent) && isSourceFile(node.parent.parent.parent) && !isExternalModule(node.parent.parent.parent); + } + return false; +} +function getNonAugmentationDeclaration(symbol) { + var _a; + return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d))); +} +function isCommonJSContainingModuleKind(kind) { + return kind === 1 /* CommonJS */ || kind === 100 /* Node16 */ || kind === 199 /* NodeNext */; +} +function isEffectiveExternalModule(node, compilerOptions) { + return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator; +} +function isEffectiveStrictModeSourceFile(node, compilerOptions) { + switch (node.scriptKind) { + case 1 /* JS */: + case 3 /* TS */: + case 2 /* JSX */: + case 4 /* TSX */: + break; + default: + return false; + } + if (node.isDeclarationFile) { + return false; + } + if (getStrictOptionValue(compilerOptions, "alwaysStrict")) { + return true; + } + if (startsWithUseStrict(node.statements)) { + return true; + } + if (isExternalModule(node) || getIsolatedModules(compilerOptions)) { + return true; + } + return false; +} +function isAmbientPropertyDeclaration(node) { + return !!(node.flags & 33554432 /* Ambient */) || hasSyntacticModifier(node, 128 /* Ambient */); +} +function isBlockScope(node, parentNode) { + switch (node.kind) { + case 307 /* SourceFile */: + case 269 /* CaseBlock */: + case 299 /* CatchClause */: + case 267 /* ModuleDeclaration */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + return true; + case 241 /* Block */: + return !isFunctionLikeOrClassStaticBlockDeclaration(parentNode); + } + return false; +} +function isAnyImportSyntax(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + return true; + default: + return false; + } +} +function isLateVisibilityPaintedStatement(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 243 /* VariableStatement */: + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + return true; + default: + return false; + } +} +function hasPossibleExternalModuleReference(node) { + return isAnyImportOrReExport(node) || isModuleDeclaration(node) || isImportTypeNode(node) || isImportCall(node); +} +function isAnyImportOrReExport(node) { + return isAnyImportSyntax(node) || isExportDeclaration(node); +} +function getEnclosingContainer(node) { + return findAncestor(node.parent, (n) => !!(getContainerFlags(n) & 1 /* IsContainer */)); +} +function getEnclosingBlockScopeContainer(node) { + return findAncestor(node.parent, (current) => isBlockScope(current, current.parent)); +} +function forEachEnclosingBlockScopeContainer(node, cb) { + let container = getEnclosingBlockScopeContainer(node); + while (container) { + cb(container); + container = getEnclosingBlockScopeContainer(container); + } +} +function declarationNameToString(name) { + return !name || getFullWidth(name) === 0 ? "(Missing)" : getTextOfNode(name); +} +function getNameFromIndexInfo(info) { + return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : void 0; +} +function isComputedNonLiteralName(name) { + return name.kind === 167 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression); +} +function tryGetTextOfPropertyName(name) { + var _a; + switch (name.kind) { + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + return ((_a = name.emitNode) == null ? void 0 : _a.autoGenerate) ? void 0 : name.escapedText; + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + return escapeLeadingUnderscores(name.text); + case 167 /* ComputedPropertyName */: + if (isStringOrNumericLiteralLike(name.expression)) return escapeLeadingUnderscores(name.expression.text); + return void 0; + case 295 /* JsxNamespacedName */: + return getEscapedTextOfJsxNamespacedName(name); + default: + return Debug.assertNever(name); + } +} +function getTextOfPropertyName(name) { + return Debug.checkDefined(tryGetTextOfPropertyName(name)); +} +function entityNameToString(name) { + switch (name.kind) { + case 110 /* ThisKeyword */: + return "this"; + case 81 /* PrivateIdentifier */: + case 80 /* Identifier */: + return getFullWidth(name) === 0 ? idText(name) : getTextOfNode(name); + case 166 /* QualifiedName */: + return entityNameToString(name.left) + "." + entityNameToString(name.right); + case 211 /* PropertyAccessExpression */: + if (isIdentifier(name.name) || isPrivateIdentifier(name.name)) { + return entityNameToString(name.expression) + "." + entityNameToString(name.name); + } else { + return Debug.assertNever(name.name); + } + case 311 /* JSDocMemberName */: + return entityNameToString(name.left) + "#" + entityNameToString(name.right); + case 295 /* JsxNamespacedName */: + return entityNameToString(name.namespace) + ":" + entityNameToString(name.name); + default: + return Debug.assertNever(name); + } +} +function createDiagnosticForNode(node, message, ...args) { + const sourceFile = getSourceFileOfNode(node); + return createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args); +} +function createDiagnosticForNodeArray(sourceFile, nodes, message, ...args) { + const start = skipTrivia(sourceFile.text, nodes.pos); + return createFileDiagnostic(sourceFile, start, nodes.end - start, message, ...args); +} +function createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) { + const span = getErrorSpanForNode(sourceFile, node); + return createFileDiagnostic(sourceFile, span.start, span.length, message, ...args); +} +function createDiagnosticForNodeFromMessageChain(sourceFile, node, messageChain, relatedInformation) { + const span = getErrorSpanForNode(sourceFile, node); + return createFileDiagnosticFromMessageChain(sourceFile, span.start, span.length, messageChain, relatedInformation); +} +function createDiagnosticForNodeArrayFromMessageChain(sourceFile, nodes, messageChain, relatedInformation) { + const start = skipTrivia(sourceFile.text, nodes.pos); + return createFileDiagnosticFromMessageChain(sourceFile, start, nodes.end - start, messageChain, relatedInformation); +} +function assertDiagnosticLocation(sourceText, start, length2) { + Debug.assertGreaterThanOrEqual(start, 0); + Debug.assertGreaterThanOrEqual(length2, 0); + Debug.assertLessThanOrEqual(start, sourceText.length); + Debug.assertLessThanOrEqual(start + length2, sourceText.length); +} +function createFileDiagnosticFromMessageChain(file, start, length2, messageChain, relatedInformation) { + assertDiagnosticLocation(file.text, start, length2); + return { + file, + start, + length: length2, + code: messageChain.code, + category: messageChain.category, + messageText: messageChain.next ? messageChain : messageChain.messageText, + relatedInformation, + canonicalHead: messageChain.canonicalHead + }; +} +function createDiagnosticForFileFromMessageChain(sourceFile, messageChain, relatedInformation) { + return { + file: sourceFile, + start: 0, + length: 0, + code: messageChain.code, + category: messageChain.category, + messageText: messageChain.next ? messageChain : messageChain.messageText, + relatedInformation + }; +} +function createDiagnosticMessageChainFromDiagnostic(diagnostic) { + return typeof diagnostic.messageText === "string" ? { + code: diagnostic.code, + category: diagnostic.category, + messageText: diagnostic.messageText, + next: diagnostic.next + } : diagnostic.messageText; +} +function createDiagnosticForRange(sourceFile, range, message) { + return { + file: sourceFile, + start: range.pos, + length: range.end - range.pos, + code: message.code, + category: message.category, + messageText: message.message + }; +} +function getCanonicalDiagnostic(message, ...args) { + return { + code: message.code, + messageText: formatMessage(message, ...args) + }; +} +function getSpanOfTokenAtPosition(sourceFile, pos) { + const scanner = createScanner( + sourceFile.languageVersion, + /*skipTrivia*/ + true, + sourceFile.languageVariant, + sourceFile.text, + /*onError*/ + void 0, + pos + ); + scanner.scan(); + const start = scanner.getTokenStart(); + return createTextSpanFromBounds(start, scanner.getTokenEnd()); +} +function scanTokenAtPosition(sourceFile, pos) { + const scanner = createScanner( + sourceFile.languageVersion, + /*skipTrivia*/ + true, + sourceFile.languageVariant, + sourceFile.text, + /*onError*/ + void 0, + pos + ); + scanner.scan(); + return scanner.getToken(); +} +function getErrorSpanForArrowFunction(sourceFile, node) { + const pos = skipTrivia(sourceFile.text, node.pos); + if (node.body && node.body.kind === 241 /* Block */) { + const { line: startLine } = getLineAndCharacterOfPosition(sourceFile, node.body.pos); + const { line: endLine } = getLineAndCharacterOfPosition(sourceFile, node.body.end); + if (startLine < endLine) { + return createTextSpan(pos, getEndLinePosition(startLine, sourceFile) - pos + 1); + } + } + return createTextSpanFromBounds(pos, node.end); +} +function getErrorSpanForNode(sourceFile, node) { + let errorNode = node; + switch (node.kind) { + case 307 /* SourceFile */: { + const pos2 = skipTrivia( + sourceFile.text, + 0, + /*stopAfterLineBreak*/ + false + ); + if (pos2 === sourceFile.text.length) { + return createTextSpan(0, 0); + } + return getSpanOfTokenAtPosition(sourceFile, pos2); + } + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 265 /* TypeAliasDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 274 /* NamespaceImport */: + errorNode = node.name; + break; + case 219 /* ArrowFunction */: + return getErrorSpanForArrowFunction(sourceFile, node); + case 296 /* CaseClause */: + case 297 /* DefaultClause */: { + const start = skipTrivia(sourceFile.text, node.pos); + const end = node.statements.length > 0 ? node.statements[0].pos : node.end; + return createTextSpanFromBounds(start, end); + } + case 253 /* ReturnStatement */: + case 229 /* YieldExpression */: { + const pos2 = skipTrivia(sourceFile.text, node.pos); + return getSpanOfTokenAtPosition(sourceFile, pos2); + } + case 238 /* SatisfiesExpression */: { + const pos2 = skipTrivia(sourceFile.text, node.expression.end); + return getSpanOfTokenAtPosition(sourceFile, pos2); + } + case 350 /* JSDocSatisfiesTag */: { + const pos2 = skipTrivia(sourceFile.text, node.tagName.pos); + return getSpanOfTokenAtPosition(sourceFile, pos2); + } + case 176 /* Constructor */: { + const constructorDeclaration = node; + const start = skipTrivia(sourceFile.text, constructorDeclaration.pos); + const scanner = createScanner( + sourceFile.languageVersion, + /*skipTrivia*/ + true, + sourceFile.languageVariant, + sourceFile.text, + /*onError*/ + void 0, + start + ); + let token = scanner.scan(); + while (token !== 137 /* ConstructorKeyword */ && token !== 1 /* EndOfFileToken */) { + token = scanner.scan(); + } + const end = scanner.getTokenEnd(); + return createTextSpanFromBounds(start, end); + } + } + if (errorNode === void 0) { + return getSpanOfTokenAtPosition(sourceFile, node.pos); + } + Debug.assert(!isJSDoc(errorNode)); + const isMissing = nodeIsMissing(errorNode); + const pos = isMissing || isJsxText(node) ? errorNode.pos : skipTrivia(sourceFile.text, errorNode.pos); + if (isMissing) { + Debug.assert(pos === errorNode.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); + Debug.assert(pos === errorNode.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); + } else { + Debug.assert(pos >= errorNode.pos, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); + Debug.assert(pos <= errorNode.end, "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"); + } + return createTextSpanFromBounds(pos, errorNode.end); +} +function isGlobalSourceFile(node) { + return node.kind === 307 /* SourceFile */ && !isExternalOrCommonJsModule(node); +} +function isExternalOrCommonJsModule(file) { + return (file.externalModuleIndicator || file.commonJsModuleIndicator) !== void 0; +} +function isJsonSourceFile(file) { + return file.scriptKind === 6 /* JSON */; +} +function isEnumConst(node) { + return !!(getCombinedModifierFlags(node) & 4096 /* Const */); +} +function isDeclarationReadonly(declaration) { + return !!(getCombinedModifierFlags(declaration) & 8 /* Readonly */ && !isParameterPropertyDeclaration(declaration, declaration.parent)); +} +function isVarAwaitUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 6 /* AwaitUsing */; +} +function isVarUsing(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 4 /* Using */; +} +function isVarConst(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 2 /* Const */; +} +function isVarConstLike(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; +} +function isLet(node) { + return (getCombinedNodeFlags(node) & 7 /* BlockScoped */) === 1 /* Let */; +} +function isSuperCall(n) { + return n.kind === 213 /* CallExpression */ && n.expression.kind === 108 /* SuperKeyword */; +} +function isImportCall(n) { + return n.kind === 213 /* CallExpression */ && n.expression.kind === 102 /* ImportKeyword */; +} +function isImportMeta(n) { + return isMetaProperty(n) && n.keywordToken === 102 /* ImportKeyword */ && n.name.escapedText === "meta"; +} +function isLiteralImportTypeNode(n) { + return isImportTypeNode(n) && isLiteralTypeNode(n.argument) && isStringLiteral(n.argument.literal); +} +function isPrologueDirective(node) { + return node.kind === 244 /* ExpressionStatement */ && node.expression.kind === 11 /* StringLiteral */; +} +function isCustomPrologue(node) { + return !!(getEmitFlags(node) & 2097152 /* CustomPrologue */); +} +function isHoistedFunction(node) { + return isCustomPrologue(node) && isFunctionDeclaration(node); +} +function isHoistedVariable(node) { + return isIdentifier(node.name) && !node.initializer; +} +function isHoistedVariableStatement(node) { + return isCustomPrologue(node) && isVariableStatement(node) && every(node.declarationList.declarations, isHoistedVariable); +} +function getLeadingCommentRangesOfNode(node, sourceFileOfNode) { + return node.kind !== 12 /* JsxText */ ? getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : void 0; +} +function getJSDocCommentRanges(node, text) { + const commentRanges = node.kind === 169 /* Parameter */ || node.kind === 168 /* TypeParameter */ || node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */ || node.kind === 217 /* ParenthesizedExpression */ || node.kind === 260 /* VariableDeclaration */ || node.kind === 281 /* ExportSpecifier */ ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos); + return filter(commentRanges, (comment) => comment.end <= node.end && // Due to parse errors sometime empty parameter may get comments assigned to it that end up not in parameter range + text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); +} +var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; +var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*/; +var fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*/; +var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*/; +var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*/; +var defaultLibReferenceRegEx = /^(\/\/\/\s*/; +function isPartOfTypeNode(node) { + if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { + return true; + } + switch (node.kind) { + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 154 /* StringKeyword */: + case 136 /* BooleanKeyword */: + case 155 /* SymbolKeyword */: + case 151 /* ObjectKeyword */: + case 157 /* UndefinedKeyword */: + case 106 /* NullKeyword */: + case 146 /* NeverKeyword */: + return true; + case 116 /* VoidKeyword */: + return node.parent.kind !== 222 /* VoidExpression */; + case 233 /* ExpressionWithTypeArguments */: + return isPartOfTypeExpressionWithTypeArguments(node); + case 168 /* TypeParameter */: + return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; + case 80 /* Identifier */: + if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { + node = node.parent; + } else if (node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node) { + node = node.parent; + } + Debug.assert(node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'."); + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + case 110 /* ThisKeyword */: { + const { parent } = node; + if (parent.kind === 186 /* TypeQuery */) { + return false; + } + if (parent.kind === 205 /* ImportType */) { + return !parent.isTypeOf; + } + if (182 /* FirstTypeNode */ <= parent.kind && parent.kind <= 205 /* LastTypeNode */) { + return true; + } + switch (parent.kind) { + case 233 /* ExpressionWithTypeArguments */: + return isPartOfTypeExpressionWithTypeArguments(parent); + case 168 /* TypeParameter */: + return node === parent.constraint; + case 345 /* JSDocTemplateTag */: + return node === parent.constraint; + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: + return node === parent.type; + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node === parent.type; + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + return node === parent.type; + case 216 /* TypeAssertionExpression */: + return node === parent.type; + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + return contains(parent.typeArguments, node); + } + } + } + return false; +} +function isPartOfTypeExpressionWithTypeArguments(node) { + return isJSDocImplementsTag(node.parent) || isJSDocAugmentsTag(node.parent) || isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); +} +function forEachReturnStatement(body, visitor) { + return traverse(body); + function traverse(node) { + switch (node.kind) { + case 253 /* ReturnStatement */: + return visitor(node); + case 269 /* CaseBlock */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: + return forEachChild(node, traverse); + } + } +} +function forEachYieldExpression(body, visitor) { + return traverse(body); + function traverse(node) { + switch (node.kind) { + case 229 /* YieldExpression */: + visitor(node); + const operand = node.expression; + if (operand) { + traverse(operand); + } + return; + case 266 /* EnumDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + return; + default: + if (isFunctionLike(node)) { + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { + traverse(node.name.expression); + return; + } + } else if (!isPartOfTypeNode(node)) { + forEachChild(node, traverse); + } + } + } +} +function getRestParameterElementType(node) { + if (node && node.kind === 188 /* ArrayType */) { + return node.elementType; + } else if (node && node.kind === 183 /* TypeReference */) { + return singleOrUndefined(node.typeArguments); + } else { + return void 0; + } +} +function getMembersOfDeclaration(node) { + switch (node.kind) { + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 187 /* TypeLiteral */: + return node.members; + case 210 /* ObjectLiteralExpression */: + return node.properties; + } +} +function isVariableLike(node) { + if (node) { + switch (node.kind) { + case 208 /* BindingElement */: + case 306 /* EnumMember */: + case 169 /* Parameter */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 304 /* ShorthandPropertyAssignment */: + case 260 /* VariableDeclaration */: + return true; + } + } + return false; +} +function isVariableLikeOrAccessor(node) { + return isVariableLike(node) || isAccessor(node); +} +function isVariableDeclarationInVariableStatement(node) { + return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; +} +function isCommonJsExportedExpression(node) { + if (!isInJSFile(node)) return false; + return isObjectLiteralExpression(node.parent) && isBinaryExpression(node.parent.parent) && getAssignmentDeclarationKind(node.parent.parent) === 2 /* ModuleExports */ || isCommonJsExportPropertyAssignment(node.parent); +} +function isCommonJsExportPropertyAssignment(node) { + if (!isInJSFile(node)) return false; + return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 1 /* ExportsProperty */; +} +function isValidESSymbolDeclaration(node) { + return (isVariableDeclaration(node) ? isVarConst(node) && isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) : isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) : isPropertySignature(node) && hasEffectiveReadonlyModifier(node)) || isCommonJsExportPropertyAssignment(node); +} +function introducesArgumentsExoticObject(node) { + switch (node.kind) { + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return true; + } + return false; +} +function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) { + while (true) { + if (beforeUnwrapLabelCallback) { + beforeUnwrapLabelCallback(node); + } + if (node.statement.kind !== 256 /* LabeledStatement */) { + return node.statement; + } + node = node.statement; + } +} +function isFunctionBlock(node) { + return node && node.kind === 241 /* Block */ && isFunctionLike(node.parent); +} +function isObjectLiteralMethod(node) { + return node && node.kind === 174 /* MethodDeclaration */ && node.parent.kind === 210 /* ObjectLiteralExpression */; +} +function isObjectLiteralOrClassExpressionMethodOrAccessor(node) { + return (node.kind === 174 /* MethodDeclaration */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */) && (node.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.kind === 231 /* ClassExpression */); +} +function isIdentifierTypePredicate(predicate) { + return predicate && predicate.kind === 1 /* Identifier */; +} +function isThisTypePredicate(predicate) { + return predicate && predicate.kind === 0 /* This */; +} +function forEachPropertyAssignment(objectLiteral, key, callback, key2) { + return forEach(objectLiteral == null ? void 0 : objectLiteral.properties, (property) => { + if (!isPropertyAssignment(property)) return void 0; + const propName = tryGetTextOfPropertyName(property.name); + return key === propName || key2 && key2 === propName ? callback(property) : void 0; + }); +} +function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) { + return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); +} +function getTsConfigObjectLiteralExpression(tsConfigSourceFile) { + if (tsConfigSourceFile && tsConfigSourceFile.statements.length) { + const expression = tsConfigSourceFile.statements[0].expression; + return tryCast(expression, isObjectLiteralExpression); + } +} +function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) { + return forEachTsConfigPropArray(tsConfigSourceFile, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); +} +function forEachTsConfigPropArray(tsConfigSourceFile, propKey, callback) { + return forEachPropertyAssignment(getTsConfigObjectLiteralExpression(tsConfigSourceFile), propKey, callback); +} +function getContainingFunction(node) { + return findAncestor(node.parent, isFunctionLike); +} +function getContainingClass(node) { + return findAncestor(node.parent, isClassLike); +} +function getContainingClassStaticBlock(node) { + return findAncestor(node.parent, (n) => { + if (isClassLike(n) || isFunctionLike(n)) { + return "quit"; + } + return isClassStaticBlockDeclaration(n); + }); +} +function getContainingFunctionOrClassStaticBlock(node) { + return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration); +} +function getContainingClassExcludingClassDecorators(node) { + const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n)); + return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node); +} +function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) { + Debug.assert(node.kind !== 307 /* SourceFile */); + while (true) { + node = node.parent; + if (!node) { + return Debug.fail(); + } + switch (node.kind) { + case 167 /* ComputedPropertyName */: + if (includeClassComputedPropertyName && isClassLike(node.parent.parent)) { + return node; + } + node = node.parent.parent; + break; + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } else if (isClassElement(node.parent)) { + node = node.parent; + } + break; + case 219 /* ArrowFunction */: + if (!includeArrowFunctions) { + continue; + } + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 267 /* ModuleDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 266 /* EnumDeclaration */: + case 307 /* SourceFile */: + return node; + } + } +} +function isThisContainerOrFunctionBlock(node) { + switch (node.kind) { + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 172 /* PropertyDeclaration */: + return true; + case 241 /* Block */: + switch (node.parent.kind) { + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return true; + default: + return false; + } + default: + return false; + } +} +function isInTopLevelContext(node) { + if (isIdentifier(node) && (isClassDeclaration(node.parent) || isFunctionDeclaration(node.parent)) && node.parent.name === node) { + node = node.parent; + } + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + true, + /*includeClassComputedPropertyName*/ + false + ); + return isSourceFile(container); +} +function getNewTargetContainer(node) { + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + if (container) { + switch (container.kind) { + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return container; + } + } + return void 0; +} +function getSuperContainer(node, stopOnFunctions) { + while (true) { + node = node.parent; + if (!node) { + return void 0; + } + switch (node.kind) { + case 167 /* ComputedPropertyName */: + node = node.parent; + break; + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + if (!stopOnFunctions) { + continue; + } + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: + return node; + case 170 /* Decorator */: + if (node.parent.kind === 169 /* Parameter */ && isClassElement(node.parent.parent)) { + node = node.parent.parent; + } else if (isClassElement(node.parent)) { + node = node.parent; + } + break; + } + } +} +function getImmediatelyInvokedFunctionExpression(func) { + if (func.kind === 218 /* FunctionExpression */ || func.kind === 219 /* ArrowFunction */) { + let prev = func; + let parent = func.parent; + while (parent.kind === 217 /* ParenthesizedExpression */) { + prev = parent; + parent = parent.parent; + } + if (parent.kind === 213 /* CallExpression */ && parent.expression === prev) { + return parent; + } + } +} +function isSuperProperty(node) { + const kind = node.kind; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; +} +function isThisProperty(node) { + const kind = node.kind; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 110 /* ThisKeyword */; +} +function isThisInitializedDeclaration(node) { + var _a; + return !!node && isVariableDeclaration(node) && ((_a = node.initializer) == null ? void 0 : _a.kind) === 110 /* ThisKeyword */; +} +function isThisInitializedObjectBindingExpression(node) { + return !!node && (isShorthandPropertyAssignment(node) || isPropertyAssignment(node)) && isBinaryExpression(node.parent.parent) && node.parent.parent.operatorToken.kind === 64 /* EqualsToken */ && node.parent.parent.right.kind === 110 /* ThisKeyword */; +} +function getEntityNameFromTypeNode(node) { + switch (node.kind) { + case 183 /* TypeReference */: + return node.typeName; + case 233 /* ExpressionWithTypeArguments */: + return isEntityNameExpression(node.expression) ? node.expression : void 0; + case 80 /* Identifier */: + case 166 /* QualifiedName */: + return node; + } + return void 0; +} +function getInvokedExpression(node) { + switch (node.kind) { + case 215 /* TaggedTemplateExpression */: + return node.tag; + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + return node.tagName; + case 226 /* BinaryExpression */: + return node.right; + default: + return node.expression; + } +} +function nodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent) { + if (useLegacyDecorators && isNamedDeclaration(node) && isPrivateIdentifier(node.name)) { + return false; + } + switch (node.kind) { + case 263 /* ClassDeclaration */: + return true; + case 231 /* ClassExpression */: + return !useLegacyDecorators; + case 172 /* PropertyDeclaration */: + return parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent) && !hasAbstractModifier(node) && !hasAmbientModifier(node)); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return node.body !== void 0 && parent !== void 0 && (useLegacyDecorators ? isClassDeclaration(parent) : isClassLike(parent)); + case 169 /* Parameter */: + if (!useLegacyDecorators) return false; + return parent !== void 0 && parent.body !== void 0 && (parent.kind === 176 /* Constructor */ || parent.kind === 174 /* MethodDeclaration */ || parent.kind === 178 /* SetAccessor */) && getThisParameter(parent) !== node && grandparent !== void 0 && grandparent.kind === 263 /* ClassDeclaration */; + } + return false; +} +function nodeIsDecorated(useLegacyDecorators, node, parent, grandparent) { + return hasDecorators(node) && nodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent); +} +function nodeOrChildIsDecorated(useLegacyDecorators, node, parent, grandparent) { + return nodeIsDecorated(useLegacyDecorators, node, parent, grandparent) || childIsDecorated(useLegacyDecorators, node, parent); +} +function childIsDecorated(useLegacyDecorators, node, parent) { + switch (node.kind) { + case 263 /* ClassDeclaration */: + return some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); + case 231 /* ClassExpression */: + return !useLegacyDecorators && some(node.members, (m) => nodeOrChildIsDecorated(useLegacyDecorators, m, node, parent)); + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + return some(node.parameters, (p) => nodeIsDecorated(useLegacyDecorators, p, node, parent)); + default: + return false; + } +} +function classOrConstructorParameterIsDecorated(useLegacyDecorators, node) { + if (nodeIsDecorated(useLegacyDecorators, node)) return true; + const constructor = getFirstConstructorWithBody(node); + return !!constructor && childIsDecorated(useLegacyDecorators, constructor, node); +} +function classElementOrClassElementParameterIsDecorated(useLegacyDecorators, node, parent) { + let parameters; + if (isAccessor(node)) { + const { firstAccessor, secondAccessor, setAccessor } = getAllAccessorDeclarations(parent.members, node); + const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0; + if (!firstAccessorWithDecorators || node !== firstAccessorWithDecorators) { + return false; + } + parameters = setAccessor == null ? void 0 : setAccessor.parameters; + } else if (isMethodDeclaration(node)) { + parameters = node.parameters; + } + if (nodeIsDecorated(useLegacyDecorators, node, parent)) { + return true; + } + if (parameters) { + for (const parameter of parameters) { + if (parameterIsThisKeyword(parameter)) continue; + if (nodeIsDecorated(useLegacyDecorators, parameter, node, parent)) return true; + } + } + return false; +} +function isEmptyStringLiteral(node) { + if (node.textSourceNode) { + switch (node.textSourceNode.kind) { + case 11 /* StringLiteral */: + return isEmptyStringLiteral(node.textSourceNode); + case 15 /* NoSubstitutionTemplateLiteral */: + return node.text === ""; + } + return false; + } + return node.text === ""; +} +function isJSXTagName(node) { + const { parent } = node; + if (parent.kind === 286 /* JsxOpeningElement */ || parent.kind === 285 /* JsxSelfClosingElement */ || parent.kind === 287 /* JsxClosingElement */) { + return parent.tagName === node; + } + return false; +} +function isExpressionNode(node) { + switch (node.kind) { + case 108 /* SuperKeyword */: + case 106 /* NullKeyword */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 14 /* RegularExpressionLiteral */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 221 /* TypeOfExpression */: + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + case 226 /* BinaryExpression */: + case 227 /* ConditionalExpression */: + case 230 /* SpreadElement */: + case 228 /* TemplateExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + case 229 /* YieldExpression */: + case 223 /* AwaitExpression */: + case 236 /* MetaProperty */: + return true; + case 233 /* ExpressionWithTypeArguments */: + return !isHeritageClause(node.parent) && !isJSDocAugmentsTag(node.parent); + case 166 /* QualifiedName */: + while (node.parent.kind === 166 /* QualifiedName */) { + node = node.parent; + } + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 311 /* JSDocMemberName */: + while (isJSDocMemberName(node.parent)) { + node = node.parent; + } + return node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node); + case 81 /* PrivateIdentifier */: + return isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 103 /* InKeyword */; + case 80 /* Identifier */: + if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { + return true; + } + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 110 /* ThisKeyword */: + return isInExpressionContext(node); + default: + return false; + } +} +function isInExpressionContext(node) { + const { parent } = node; + switch (parent.kind) { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 208 /* BindingElement */: + return parent.initializer === node; + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 253 /* ReturnStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 296 /* CaseClause */: + case 257 /* ThrowStatement */: + return parent.expression === node; + case 248 /* ForStatement */: + const forStatement = parent; + return forStatement.initializer === node && forStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forStatement.condition === node || forStatement.incrementor === node; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + const forInOrOfStatement = parent; + return forInOrOfStatement.initializer === node && forInOrOfStatement.initializer.kind !== 261 /* VariableDeclarationList */ || forInOrOfStatement.expression === node; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + return node === parent.expression; + case 239 /* TemplateSpan */: + return node === parent.expression; + case 167 /* ComputedPropertyName */: + return node === parent.expression; + case 170 /* Decorator */: + case 294 /* JsxExpression */: + case 293 /* JsxSpreadAttribute */: + case 305 /* SpreadAssignment */: + return true; + case 233 /* ExpressionWithTypeArguments */: + return parent.expression === node && !isPartOfTypeNode(parent); + case 304 /* ShorthandPropertyAssignment */: + return parent.objectAssignmentInitializer === node; + case 238 /* SatisfiesExpression */: + return node === parent.expression; + default: + return isExpressionNode(parent); + } +} +function isPartOfTypeQuery(node) { + while (node.kind === 166 /* QualifiedName */ || node.kind === 80 /* Identifier */) { + node = node.parent; + } + return node.kind === 186 /* TypeQuery */; +} +function isNamespaceReexportDeclaration(node) { + return isNamespaceExport(node) && !!node.parent.moduleSpecifier; +} +function isExternalModuleImportEqualsDeclaration(node) { + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */; +} +function getExternalModuleImportEqualsDeclarationExpression(node) { + Debug.assert(isExternalModuleImportEqualsDeclaration(node)); + return node.moduleReference.expression; +} +function getExternalModuleRequireArgument(node) { + return isVariableDeclarationInitializedToBareOrAccessedRequire(node) && getLeftmostAccessExpression(node.initializer).arguments[0]; +} +function isInternalModuleImportEqualsDeclaration(node) { + return node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 283 /* ExternalModuleReference */; +} +function isFullSourceFile(sourceFile) { + return (sourceFile == null ? void 0 : sourceFile.kind) === 307 /* SourceFile */; +} +function isSourceFileJS(file) { + return isInJSFile(file); +} +function isInJSFile(node) { + return !!node && !!(node.flags & 524288 /* JavaScriptFile */); +} +function isInJsonFile(node) { + return !!node && !!(node.flags & 134217728 /* JsonFile */); +} +function isSourceFileNotJson(file) { + return !isJsonSourceFile(file); +} +function isInJSDoc(node) { + return !!node && !!(node.flags & 16777216 /* JSDoc */); +} +function isJSDocIndexSignature(node) { + return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && node.typeArguments && node.typeArguments.length === 2 && (node.typeArguments[0].kind === 154 /* StringKeyword */ || node.typeArguments[0].kind === 150 /* NumberKeyword */); +} +function isRequireCall(callExpression, requireStringLiteralLikeArgument) { + if (callExpression.kind !== 213 /* CallExpression */) { + return false; + } + const { expression, arguments: args } = callExpression; + if (expression.kind !== 80 /* Identifier */ || expression.escapedText !== "require") { + return false; + } + if (args.length !== 1) { + return false; + } + const arg = args[0]; + return !requireStringLiteralLikeArgument || isStringLiteralLike(arg); +} +function isVariableDeclarationInitializedToRequire(node) { + return isVariableDeclarationInitializedWithRequireHelper( + node, + /*allowAccessedRequire*/ + false + ); +} +function isVariableDeclarationInitializedToBareOrAccessedRequire(node) { + return isVariableDeclarationInitializedWithRequireHelper( + node, + /*allowAccessedRequire*/ + true + ); +} +function isBindingElementOfBareOrAccessedRequire(node) { + return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); +} +function isVariableDeclarationInitializedWithRequireHelper(node, allowAccessedRequire) { + return isVariableDeclaration(node) && !!node.initializer && isRequireCall( + allowAccessedRequire ? getLeftmostAccessExpression(node.initializer) : node.initializer, + /*requireStringLiteralLikeArgument*/ + true + ); +} +function isRequireVariableStatement(node) { + return isVariableStatement(node) && node.declarationList.declarations.length > 0 && every(node.declarationList.declarations, (decl) => isVariableDeclarationInitializedToRequire(decl)); +} +function isSingleOrDoubleQuote(charCode) { + return charCode === 39 /* singleQuote */ || charCode === 34 /* doubleQuote */; +} +function isStringDoubleQuoted(str, sourceFile) { + return getSourceTextOfNodeFromSourceFile(sourceFile, str).charCodeAt(0) === 34 /* doubleQuote */; +} +function isAssignmentDeclaration(decl) { + return isBinaryExpression(decl) || isAccessExpression(decl) || isIdentifier(decl) || isCallExpression(decl); +} +function getEffectiveInitializer(node) { + if (isInJSFile(node) && node.initializer && isBinaryExpression(node.initializer) && (node.initializer.operatorToken.kind === 57 /* BarBarToken */ || node.initializer.operatorToken.kind === 61 /* QuestionQuestionToken */) && node.name && isEntityNameExpression(node.name) && isSameEntityName(node.name, node.initializer.left)) { + return node.initializer.right; + } + return node.initializer; +} +function getDeclaredExpandoInitializer(node) { + const init = getEffectiveInitializer(node); + return init && getExpandoInitializer(init, isPrototypeAccess(node.name)); +} +function hasExpandoValueProperty(node, isPrototypeAssignment) { + return forEach(node.properties, (p) => isPropertyAssignment(p) && isIdentifier(p.name) && p.name.escapedText === "value" && p.initializer && getExpandoInitializer(p.initializer, isPrototypeAssignment)); +} +function getAssignedExpandoInitializer(node) { + if (node && node.parent && isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 64 /* EqualsToken */) { + const isPrototypeAssignment = isPrototypeAccess(node.parent.left); + return getExpandoInitializer(node.parent.right, isPrototypeAssignment) || getDefaultedExpandoInitializer(node.parent.left, node.parent.right, isPrototypeAssignment); + } + if (node && isCallExpression(node) && isBindableObjectDefinePropertyCall(node)) { + const result = hasExpandoValueProperty(node.arguments[2], node.arguments[1].text === "prototype"); + if (result) { + return result; + } + } +} +function getExpandoInitializer(initializer, isPrototypeAssignment) { + if (isCallExpression(initializer)) { + const e = skipParentheses(initializer.expression); + return e.kind === 218 /* FunctionExpression */ || e.kind === 219 /* ArrowFunction */ ? initializer : void 0; + } + if (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 231 /* ClassExpression */ || initializer.kind === 219 /* ArrowFunction */) { + return initializer; + } + if (isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) { + return initializer; + } +} +function getDefaultedExpandoInitializer(name, initializer, isPrototypeAssignment) { + const e = isBinaryExpression(initializer) && (initializer.operatorToken.kind === 57 /* BarBarToken */ || initializer.operatorToken.kind === 61 /* QuestionQuestionToken */) && getExpandoInitializer(initializer.right, isPrototypeAssignment); + if (e && isSameEntityName(name, initializer.left)) { + return e; + } +} +function isDefaultedExpandoInitializer(node) { + const name = isVariableDeclaration(node.parent) ? node.parent.name : isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 64 /* EqualsToken */ ? node.parent.left : void 0; + return name && getExpandoInitializer(node.right, isPrototypeAccess(name)) && isEntityNameExpression(name) && isSameEntityName(name, node.left); +} +function getNameOfExpando(node) { + if (isBinaryExpression(node.parent)) { + const parent = (node.parent.operatorToken.kind === 57 /* BarBarToken */ || node.parent.operatorToken.kind === 61 /* QuestionQuestionToken */) && isBinaryExpression(node.parent.parent) ? node.parent.parent : node.parent; + if (parent.operatorToken.kind === 64 /* EqualsToken */ && isIdentifier(parent.left)) { + return parent.left; + } + } else if (isVariableDeclaration(node.parent)) { + return node.parent.name; + } +} +function isSameEntityName(name, initializer) { + if (isPropertyNameLiteral(name) && isPropertyNameLiteral(initializer)) { + return getTextOfIdentifierOrLiteral(name) === getTextOfIdentifierOrLiteral(initializer); + } + if (isMemberName(name) && isLiteralLikeAccess(initializer) && (initializer.expression.kind === 110 /* ThisKeyword */ || isIdentifier(initializer.expression) && (initializer.expression.escapedText === "window" || initializer.expression.escapedText === "self" || initializer.expression.escapedText === "global"))) { + return isSameEntityName(name, getNameOrArgument(initializer)); + } + if (isLiteralLikeAccess(name) && isLiteralLikeAccess(initializer)) { + return getElementOrPropertyAccessName(name) === getElementOrPropertyAccessName(initializer) && isSameEntityName(name.expression, initializer.expression); + } + return false; +} +function getRightMostAssignedExpression(node) { + while (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + )) { + node = node.right; + } + return node; +} +function isExportsIdentifier(node) { + return isIdentifier(node) && node.escapedText === "exports"; +} +function isModuleIdentifier(node) { + return isIdentifier(node) && node.escapedText === "module"; +} +function isModuleExportsAccessExpression(node) { + return (isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node)) && isModuleIdentifier(node.expression) && getElementOrPropertyAccessName(node) === "exports"; +} +function getAssignmentDeclarationKind(expr) { + const special = getAssignmentDeclarationKindWorker(expr); + return special === 5 /* Property */ || isInJSFile(expr) ? special : 0 /* None */; +} +function isBindableObjectDefinePropertyCall(expr) { + return length(expr.arguments) === 3 && isPropertyAccessExpression(expr.expression) && isIdentifier(expr.expression.expression) && idText(expr.expression.expression) === "Object" && idText(expr.expression.name) === "defineProperty" && isStringOrNumericLiteralLike(expr.arguments[1]) && isBindableStaticNameExpression( + expr.arguments[0], + /*excludeThisKeyword*/ + true + ); +} +function isLiteralLikeAccess(node) { + return isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node); +} +function isLiteralLikeElementAccess(node) { + return isElementAccessExpression(node) && isStringOrNumericLiteralLike(node.argumentExpression); +} +function isBindableStaticAccessExpression(node, excludeThisKeyword) { + return isPropertyAccessExpression(node) && (!excludeThisKeyword && node.expression.kind === 110 /* ThisKeyword */ || isIdentifier(node.name) && isBindableStaticNameExpression( + node.expression, + /*excludeThisKeyword*/ + true + )) || isBindableStaticElementAccessExpression(node, excludeThisKeyword); +} +function isBindableStaticElementAccessExpression(node, excludeThisKeyword) { + return isLiteralLikeElementAccess(node) && (!excludeThisKeyword && node.expression.kind === 110 /* ThisKeyword */ || isEntityNameExpression(node.expression) || isBindableStaticAccessExpression( + node.expression, + /*excludeThisKeyword*/ + true + )); +} +function isBindableStaticNameExpression(node, excludeThisKeyword) { + return isEntityNameExpression(node) || isBindableStaticAccessExpression(node, excludeThisKeyword); +} +function getNameOrArgument(expr) { + if (isPropertyAccessExpression(expr)) { + return expr.name; + } + return expr.argumentExpression; +} +function getAssignmentDeclarationKindWorker(expr) { + if (isCallExpression(expr)) { + if (!isBindableObjectDefinePropertyCall(expr)) { + return 0 /* None */; + } + const entityName = expr.arguments[0]; + if (isExportsIdentifier(entityName) || isModuleExportsAccessExpression(entityName)) { + return 8 /* ObjectDefinePropertyExports */; + } + if (isBindableStaticAccessExpression(entityName) && getElementOrPropertyAccessName(entityName) === "prototype") { + return 9 /* ObjectDefinePrototypeProperty */; + } + return 7 /* ObjectDefinePropertyValue */; + } + if (expr.operatorToken.kind !== 64 /* EqualsToken */ || !isAccessExpression(expr.left) || isVoidZero(getRightMostAssignedExpression(expr))) { + return 0 /* None */; + } + if (isBindableStaticNameExpression( + expr.left.expression, + /*excludeThisKeyword*/ + true + ) && getElementOrPropertyAccessName(expr.left) === "prototype" && isObjectLiteralExpression(getInitializerOfBinaryExpression(expr))) { + return 6 /* Prototype */; + } + return getAssignmentDeclarationPropertyAccessKind(expr.left); +} +function isVoidZero(node) { + return isVoidExpression(node) && isNumericLiteral(node.expression) && node.expression.text === "0"; +} +function getElementOrPropertyAccessArgumentExpressionOrName(node) { + if (isPropertyAccessExpression(node)) { + return node.name; + } + const arg = skipParentheses(node.argumentExpression); + if (isNumericLiteral(arg) || isStringLiteralLike(arg)) { + return arg; + } + return node; +} +function getElementOrPropertyAccessName(node) { + const name = getElementOrPropertyAccessArgumentExpressionOrName(node); + if (name) { + if (isIdentifier(name)) { + return name.escapedText; + } + if (isStringLiteralLike(name) || isNumericLiteral(name)) { + return escapeLeadingUnderscores(name.text); + } + } + return void 0; +} +function getAssignmentDeclarationPropertyAccessKind(lhs) { + if (lhs.expression.kind === 110 /* ThisKeyword */) { + return 4 /* ThisProperty */; + } else if (isModuleExportsAccessExpression(lhs)) { + return 2 /* ModuleExports */; + } else if (isBindableStaticNameExpression( + lhs.expression, + /*excludeThisKeyword*/ + true + )) { + if (isPrototypeAccess(lhs.expression)) { + return 3 /* PrototypeProperty */; + } + let nextToLast = lhs; + while (!isIdentifier(nextToLast.expression)) { + nextToLast = nextToLast.expression; + } + const id = nextToLast.expression; + if ((id.escapedText === "exports" || id.escapedText === "module" && getElementOrPropertyAccessName(nextToLast) === "exports") && // ExportsProperty does not support binding with computed names + isBindableStaticAccessExpression(lhs)) { + return 1 /* ExportsProperty */; + } + if (isBindableStaticNameExpression( + lhs, + /*excludeThisKeyword*/ + true + ) || isElementAccessExpression(lhs) && isDynamicName(lhs)) { + return 5 /* Property */; + } + } + return 0 /* None */; +} +function getInitializerOfBinaryExpression(expr) { + while (isBinaryExpression(expr.right)) { + expr = expr.right; + } + return expr.right; +} +function isPrototypePropertyAssignment(node) { + return isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */; +} +function isSpecialPropertyDeclaration(expr) { + return isInJSFile(expr) && expr.parent && expr.parent.kind === 244 /* ExpressionStatement */ && (!isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) && !!getJSDocTypeTag(expr.parent); +} +function setValueDeclaration(symbol, node) { + const { valueDeclaration } = symbol; + if (!valueDeclaration || !(node.flags & 33554432 /* Ambient */ && !isInJSFile(node) && !(valueDeclaration.flags & 33554432 /* Ambient */)) && (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) || valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration)) { + symbol.valueDeclaration = node; + } +} +function isFunctionSymbol(symbol) { + if (!symbol || !symbol.valueDeclaration) { + return false; + } + const decl = symbol.valueDeclaration; + return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); +} +function tryGetModuleSpecifierFromDeclaration(node) { + var _a, _b; + switch (node.kind) { + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + return (_a = findAncestor(node.initializer, (node2) => isRequireCall( + node2, + /*requireStringLiteralLikeArgument*/ + true + ))) == null ? void 0 : _a.arguments[0]; + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 351 /* JSDocImportTag */: + return tryCast(node.moduleSpecifier, isStringLiteralLike); + case 271 /* ImportEqualsDeclaration */: + return tryCast((_b = tryCast(node.moduleReference, isExternalModuleReference)) == null ? void 0 : _b.expression, isStringLiteralLike); + case 273 /* ImportClause */: + case 280 /* NamespaceExport */: + return tryCast(node.parent.moduleSpecifier, isStringLiteralLike); + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + return tryCast(node.parent.parent.moduleSpecifier, isStringLiteralLike); + case 276 /* ImportSpecifier */: + return tryCast(node.parent.parent.parent.moduleSpecifier, isStringLiteralLike); + case 205 /* ImportType */: + return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; + default: + Debug.assertNever(node); + } +} +function getExternalModuleName(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 351 /* JSDocImportTag */: + return node.moduleSpecifier; + case 271 /* ImportEqualsDeclaration */: + return node.moduleReference.kind === 283 /* ExternalModuleReference */ ? node.moduleReference.expression : void 0; + case 205 /* ImportType */: + return isLiteralImportTypeNode(node) ? node.argument.literal : void 0; + case 213 /* CallExpression */: + return node.arguments[0]; + case 267 /* ModuleDeclaration */: + return node.name.kind === 11 /* StringLiteral */ ? node.name : void 0; + default: + return Debug.assertNever(node); + } +} +function getNamespaceDeclarationNode(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + return node.importClause && tryCast(node.importClause.namedBindings, isNamespaceImport); + case 271 /* ImportEqualsDeclaration */: + return node; + case 278 /* ExportDeclaration */: + return node.exportClause && tryCast(node.exportClause, isNamespaceExport); + default: + return Debug.assertNever(node); + } +} +function isDefaultImport(node) { + return (node.kind === 272 /* ImportDeclaration */ || node.kind === 351 /* JSDocImportTag */) && !!node.importClause && !!node.importClause.name; +} +function hasQuestionToken(node) { + if (node) { + switch (node.kind) { + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return node.questionToken !== void 0; + } + } + return false; +} +function isJSDocConstructSignature(node) { + const param = isJSDocFunctionType(node) ? firstOrUndefined(node.parameters) : void 0; + const name = tryCast(param && param.name, isIdentifier); + return !!name && name.escapedText === "new"; +} +function isJSDocTypeAlias(node) { + return node.kind === 346 /* JSDocTypedefTag */ || node.kind === 338 /* JSDocCallbackTag */ || node.kind === 340 /* JSDocEnumTag */; +} +function isTypeAlias(node) { + return isJSDocTypeAlias(node) || isTypeAliasDeclaration(node); +} +function getSourceOfAssignment(node) { + return isExpressionStatement(node) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 64 /* EqualsToken */ ? getRightMostAssignedExpression(node.expression) : void 0; +} +function getSourceOfDefaultedAssignment(node) { + return isExpressionStatement(node) && isBinaryExpression(node.expression) && getAssignmentDeclarationKind(node.expression) !== 0 /* None */ && isBinaryExpression(node.expression.right) && (node.expression.right.operatorToken.kind === 57 /* BarBarToken */ || node.expression.right.operatorToken.kind === 61 /* QuestionQuestionToken */) ? node.expression.right.right : void 0; +} +function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) { + switch (node.kind) { + case 243 /* VariableStatement */: + const v = getSingleVariableOfVariableStatement(node); + return v && v.initializer; + case 172 /* PropertyDeclaration */: + return node.initializer; + case 303 /* PropertyAssignment */: + return node.initializer; + } +} +function getSingleVariableOfVariableStatement(node) { + return isVariableStatement(node) ? firstOrUndefined(node.declarationList.declarations) : void 0; +} +function getNestedModuleDeclaration(node) { + return isModuleDeclaration(node) && node.body && node.body.kind === 267 /* ModuleDeclaration */ ? node.body : void 0; +} +function canHaveFlowNode(node) { + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */) { + return true; + } + switch (node.kind) { + case 80 /* Identifier */: + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 166 /* QualifiedName */: + case 236 /* MetaProperty */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 208 /* BindingElement */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return true; + default: + return false; + } +} +function canHaveJSDoc(node) { + switch (node.kind) { + case 219 /* ArrowFunction */: + case 226 /* BinaryExpression */: + case 241 /* Block */: + case 252 /* BreakStatement */: + case 179 /* CallSignature */: + case 296 /* CaseClause */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 175 /* ClassStaticBlockDeclaration */: + case 176 /* Constructor */: + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + case 251 /* ContinueStatement */: + case 259 /* DebuggerStatement */: + case 246 /* DoStatement */: + case 212 /* ElementAccessExpression */: + case 242 /* EmptyStatement */: + case 1 /* EndOfFileToken */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + case 281 /* ExportSpecifier */: + case 244 /* ExpressionStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 177 /* GetAccessor */: + case 80 /* Identifier */: + case 245 /* IfStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 317 /* JSDocFunctionType */: + case 323 /* JSDocSignature */: + case 256 /* LabeledStatement */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 267 /* ModuleDeclaration */: + case 202 /* NamedTupleMember */: + case 270 /* NamespaceExportDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 169 /* Parameter */: + case 217 /* ParenthesizedExpression */: + case 211 /* PropertyAccessExpression */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 253 /* ReturnStatement */: + case 240 /* SemicolonClassElement */: + case 178 /* SetAccessor */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + case 255 /* SwitchStatement */: + case 257 /* ThrowStatement */: + case 258 /* TryStatement */: + case 265 /* TypeAliasDeclaration */: + case 168 /* TypeParameter */: + case 260 /* VariableDeclaration */: + case 243 /* VariableStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + return true; + default: + return false; + } +} +function getJSDocCommentsAndTags(hostNode, noCache) { + let result; + if (isVariableLike(hostNode) && hasInitializer(hostNode) && hasJSDocNodes(hostNode.initializer)) { + result = addRange(result, filterOwnedJSDocTags(hostNode, hostNode.initializer.jsDoc)); + } + let node = hostNode; + while (node && node.parent) { + if (hasJSDocNodes(node)) { + result = addRange(result, filterOwnedJSDocTags(hostNode, node.jsDoc)); + } + if (node.kind === 169 /* Parameter */) { + result = addRange(result, (noCache ? getJSDocParameterTagsNoCache : getJSDocParameterTags)(node)); + break; + } + if (node.kind === 168 /* TypeParameter */) { + result = addRange(result, (noCache ? getJSDocTypeParameterTagsNoCache : getJSDocTypeParameterTags)(node)); + break; + } + node = getNextJSDocCommentLocation(node); + } + return result || emptyArray; +} +function filterOwnedJSDocTags(hostNode, comments) { + const lastJsDoc = last(comments); + return flatMap(comments, (jsDoc) => { + if (jsDoc === lastJsDoc) { + const ownedTags = filter(jsDoc.tags, (tag) => ownsJSDocTag(hostNode, tag)); + return jsDoc.tags === ownedTags ? [jsDoc] : ownedTags; + } else { + return filter(jsDoc.tags, isJSDocOverloadTag); + } + }); +} +function ownsJSDocTag(hostNode, tag) { + return !(isJSDocTypeTag(tag) || isJSDocSatisfiesTag(tag)) || !tag.parent || !isJSDoc(tag.parent) || !isParenthesizedExpression(tag.parent.parent) || tag.parent.parent === hostNode; +} +function getNextJSDocCommentLocation(node) { + const parent = node.parent; + if (parent.kind === 303 /* PropertyAssignment */ || parent.kind === 277 /* ExportAssignment */ || parent.kind === 172 /* PropertyDeclaration */ || parent.kind === 244 /* ExpressionStatement */ && node.kind === 211 /* PropertyAccessExpression */ || parent.kind === 253 /* ReturnStatement */ || getNestedModuleDeclaration(parent) || isAssignmentExpression(node)) { + return parent; + } else if (parent.parent && (getSingleVariableOfVariableStatement(parent.parent) === node || isAssignmentExpression(parent))) { + return parent.parent; + } else if (parent.parent && parent.parent.parent && (getSingleVariableOfVariableStatement(parent.parent.parent) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node || getSourceOfDefaultedAssignment(parent.parent.parent))) { + return parent.parent.parent; + } +} +function getParameterSymbolFromJSDoc(node) { + if (node.symbol) { + return node.symbol; + } + if (!isIdentifier(node.name)) { + return void 0; + } + const name = node.name.escapedText; + const decl = getHostSignatureFromJSDoc(node); + if (!decl) { + return void 0; + } + const parameter = find(decl.parameters, (p) => p.name.kind === 80 /* Identifier */ && p.name.escapedText === name); + return parameter && parameter.symbol; +} +function getEffectiveContainerForJSDocTemplateTag(node) { + if (isJSDoc(node.parent) && node.parent.tags) { + const typeAlias = find(node.parent.tags, isJSDocTypeAlias); + if (typeAlias) { + return typeAlias; + } + } + return getHostSignatureFromJSDoc(node); +} +function getJSDocOverloadTags(node) { + return getAllJSDocTags(node, isJSDocOverloadTag); +} +function getHostSignatureFromJSDoc(node) { + const host = getEffectiveJSDocHost(node); + if (host) { + return isPropertySignature(host) && host.type && isFunctionLike(host.type) ? host.type : isFunctionLike(host) ? host : void 0; + } + return void 0; +} +function getEffectiveJSDocHost(node) { + const host = getJSDocHost(node); + if (host) { + return getSourceOfDefaultedAssignment(host) || getSourceOfAssignment(host) || getSingleInitializerOfVariableStatementOrPropertyDeclaration(host) || getSingleVariableOfVariableStatement(host) || getNestedModuleDeclaration(host) || host; + } +} +function getJSDocHost(node) { + const jsDoc = getJSDocRoot(node); + if (!jsDoc) { + return void 0; + } + const host = jsDoc.parent; + if (host && host.jsDoc && jsDoc === lastOrUndefined(host.jsDoc)) { + return host; + } +} +function getJSDocRoot(node) { + return findAncestor(node.parent, isJSDoc); +} +function getTypeParameterFromJsDoc(node) { + const name = node.name.escapedText; + const { typeParameters } = node.parent.parent.parent; + return typeParameters && find(typeParameters, (p) => p.name.escapedText === name); +} +function getAssignmentTarget(node) { + let parent = node.parent; + while (true) { + switch (parent.kind) { + case 226 /* BinaryExpression */: + const binaryExpression = parent; + const binaryOperator = binaryExpression.operatorToken.kind; + return isAssignmentOperator(binaryOperator) && binaryExpression.left === node ? binaryExpression : void 0; + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + const unaryExpression = parent; + const unaryOperator = unaryExpression.operator; + return unaryOperator === 46 /* PlusPlusToken */ || unaryOperator === 47 /* MinusMinusToken */ ? unaryExpression : void 0; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + const forInOrOfStatement = parent; + return forInOrOfStatement.initializer === node ? forInOrOfStatement : void 0; + case 217 /* ParenthesizedExpression */: + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + case 235 /* NonNullExpression */: + node = parent; + break; + case 305 /* SpreadAssignment */: + node = parent.parent; + break; + case 304 /* ShorthandPropertyAssignment */: + if (parent.name !== node) { + return void 0; + } + node = parent.parent; + break; + case 303 /* PropertyAssignment */: + if (parent.name === node) { + return void 0; + } + node = parent.parent; + break; + default: + return void 0; + } + parent = node.parent; + } +} +function getAssignmentTargetKind(node) { + const target = getAssignmentTarget(node); + if (!target) { + return 0 /* None */; + } + switch (target.kind) { + case 226 /* BinaryExpression */: + const binaryOperator = target.operatorToken.kind; + return binaryOperator === 64 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */; + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return 2 /* Compound */; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + return 1 /* Definite */; + } +} +function isAssignmentTarget(node) { + return !!getAssignmentTarget(node); +} +function isCompoundLikeAssignment(assignment) { + const right = skipParentheses(assignment.right); + return right.kind === 226 /* BinaryExpression */ && isShiftOperatorOrHigher(right.operatorToken.kind); +} +function isInCompoundLikeAssignment(node) { + const target = getAssignmentTarget(node); + return !!target && isAssignmentExpression( + target, + /*excludeCompoundAssignment*/ + true + ) && isCompoundLikeAssignment(target); +} +function isNodeWithPossibleHoistedDeclaration(node) { + switch (node.kind) { + case 241 /* Block */: + case 243 /* VariableStatement */: + case 254 /* WithStatement */: + case 245 /* IfStatement */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 256 /* LabeledStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 258 /* TryStatement */: + case 299 /* CatchClause */: + return true; + } + return false; +} +function isValueSignatureDeclaration(node) { + return isFunctionExpression(node) || isArrowFunction(node) || isMethodOrAccessor(node) || isFunctionDeclaration(node) || isConstructorDeclaration(node); +} +function walkUp(node, kind) { + while (node && node.kind === kind) { + node = node.parent; + } + return node; +} +function walkUpParenthesizedTypes(node) { + return walkUp(node, 196 /* ParenthesizedType */); +} +function walkUpParenthesizedExpressions(node) { + return walkUp(node, 217 /* ParenthesizedExpression */); +} +function walkUpParenthesizedTypesAndGetParentAndChild(node) { + let child; + while (node && node.kind === 196 /* ParenthesizedType */) { + child = node; + node = node.parent; + } + return [child, node]; +} +function skipTypeParentheses(node) { + while (isParenthesizedTypeNode(node)) node = node.type; + return node; +} +function skipParentheses(node, excludeJSDocTypeAssertions) { + const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | 16 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */; + return skipOuterExpressions(node, flags); +} +function isDeleteTarget(node) { + if (node.kind !== 211 /* PropertyAccessExpression */ && node.kind !== 212 /* ElementAccessExpression */) { + return false; + } + node = walkUpParenthesizedExpressions(node.parent); + return node && node.kind === 220 /* DeleteExpression */; +} +function isNodeDescendantOf(node, ancestor) { + while (node) { + if (node === ancestor) return true; + node = node.parent; + } + return false; +} +function isDeclarationName(name) { + return !isSourceFile(name) && !isBindingPattern(name) && isDeclaration(name.parent) && name.parent.name === name; +} +function isLiteralComputedPropertyDeclarationName(node) { + return isStringOrNumericLiteralLike(node) && node.parent.kind === 167 /* ComputedPropertyName */ && isDeclaration(node.parent.parent); +} +function isIdentifierName(node) { + const parent = node.parent; + switch (parent.kind) { + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 306 /* EnumMember */: + case 303 /* PropertyAssignment */: + case 211 /* PropertyAccessExpression */: + return parent.name === node; + case 166 /* QualifiedName */: + return parent.right === node; + case 208 /* BindingElement */: + case 276 /* ImportSpecifier */: + return parent.propertyName === node; + case 281 /* ExportSpecifier */: + case 291 /* JsxAttribute */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 287 /* JsxClosingElement */: + return true; + } + return false; +} +function getAliasDeclarationFromName(node) { + switch (node.parent.kind) { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 274 /* NamespaceImport */: + case 281 /* ExportSpecifier */: + case 277 /* ExportAssignment */: + case 271 /* ImportEqualsDeclaration */: + case 280 /* NamespaceExport */: + return node.parent; + case 166 /* QualifiedName */: + do { + node = node.parent; + } while (node.parent.kind === 166 /* QualifiedName */); + return getAliasDeclarationFromName(node); + } +} +function isAliasableExpression(e) { + return isEntityNameExpression(e) || isClassExpression(e); +} +function exportAssignmentIsAlias(node) { + const e = getExportAssignmentExpression(node); + return isAliasableExpression(e); +} +function getExportAssignmentExpression(node) { + return isExportAssignment(node) ? node.expression : node.right; +} +function getPropertyAssignmentAliasLikeExpression(node) { + return node.kind === 304 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 303 /* PropertyAssignment */ ? node.initializer : node.parent.right; +} +function getEffectiveBaseTypeNode(node) { + const baseType = getClassExtendsHeritageElement(node); + if (baseType && isInJSFile(node)) { + const tag = getJSDocAugmentsTag(node); + if (tag) { + return tag.class; + } + } + return baseType; +} +function getClassExtendsHeritageElement(node) { + const heritageClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : void 0; +} +function getEffectiveImplementsTypeNodes(node) { + if (isInJSFile(node)) { + return getJSDocImplementsTags(node).map((n) => n.class); + } else { + const heritageClause = getHeritageClause(node.heritageClauses, 119 /* ImplementsKeyword */); + return heritageClause == null ? void 0 : heritageClause.types; + } +} +function getInterfaceBaseTypeNodes(node) { + const heritageClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + return heritageClause ? heritageClause.types : void 0; +} +function getHeritageClause(clauses, kind) { + if (clauses) { + for (const clause of clauses) { + if (clause.token === kind) { + return clause; + } + } + } + return void 0; +} +function getAncestor(node, kind) { + while (node) { + if (node.kind === kind) { + return node; + } + node = node.parent; + } + return void 0; +} +function isKeyword(token) { + return 83 /* FirstKeyword */ <= token && token <= 165 /* LastKeyword */; +} +function isPunctuation(token) { + return 19 /* FirstPunctuation */ <= token && token <= 79 /* LastPunctuation */; +} +function isKeywordOrPunctuation(token) { + return isKeyword(token) || isPunctuation(token); +} +function isContextualKeyword(token) { + return 128 /* FirstContextualKeyword */ <= token && token <= 165 /* LastContextualKeyword */; +} +function isNonContextualKeyword(token) { + return isKeyword(token) && !isContextualKeyword(token); +} +function isStringANonContextualKeyword(name) { + const token = stringToToken(name); + return token !== void 0 && isNonContextualKeyword(token); +} +function isIdentifierANonContextualKeyword(node) { + const originalKeywordKind = identifierToKeywordKind(node); + return !!originalKeywordKind && !isContextualKeyword(originalKeywordKind); +} +function getFunctionFlags(node) { + if (!node) { + return 4 /* Invalid */; + } + let flags = 0 /* Normal */; + switch (node.kind) { + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 174 /* MethodDeclaration */: + if (node.asteriskToken) { + flags |= 1 /* Generator */; + } + case 219 /* ArrowFunction */: + if (hasSyntacticModifier(node, 1024 /* Async */)) { + flags |= 2 /* Async */; + } + break; + } + if (!node.body) { + flags |= 4 /* Invalid */; + } + return flags; +} +function isAsyncFunction(node) { + switch (node.kind) { + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + return node.body !== void 0 && node.asteriskToken === void 0 && hasSyntacticModifier(node, 1024 /* Async */); + } + return false; +} +function isStringOrNumericLiteralLike(node) { + return isStringLiteralLike(node) || isNumericLiteral(node); +} +function isSignedNumericLiteral(node) { + return isPrefixUnaryExpression(node) && (node.operator === 40 /* PlusToken */ || node.operator === 41 /* MinusToken */) && isNumericLiteral(node.operand); +} +function hasDynamicName(declaration) { + const name = getNameOfDeclaration(declaration); + return !!name && isDynamicName(name); +} +function isDynamicName(name) { + if (!(name.kind === 167 /* ComputedPropertyName */ || name.kind === 212 /* ElementAccessExpression */)) { + return false; + } + const expr = isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression; + return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral(expr); +} +function getPropertyNameForPropertyNameNode(name) { + switch (name.kind) { + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + return name.escapedText; + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 9 /* NumericLiteral */: + return escapeLeadingUnderscores(name.text); + case 167 /* ComputedPropertyName */: + const nameExpression = name.expression; + if (isStringOrNumericLiteralLike(nameExpression)) { + return escapeLeadingUnderscores(nameExpression.text); + } else if (isSignedNumericLiteral(nameExpression)) { + if (nameExpression.operator === 41 /* MinusToken */) { + return tokenToString(nameExpression.operator) + nameExpression.operand.text; + } + return nameExpression.operand.text; + } + return void 0; + case 295 /* JsxNamespacedName */: + return getEscapedTextOfJsxNamespacedName(name); + default: + return Debug.assertNever(name); + } +} +function isPropertyNameLiteral(node) { + switch (node.kind) { + case 80 /* Identifier */: + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 9 /* NumericLiteral */: + return true; + default: + return false; + } +} +function getTextOfIdentifierOrLiteral(node) { + return isMemberName(node) ? idText(node) : isJsxNamespacedName(node) ? getTextOfJsxNamespacedName(node) : node.text; +} +function getEscapedTextOfIdentifierOrLiteral(node) { + return isMemberName(node) ? node.escapedText : isJsxNamespacedName(node) ? getEscapedTextOfJsxNamespacedName(node) : escapeLeadingUnderscores(node.text); +} +function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) { + return `__#${getSymbolId(containingClassSymbol)}@${description}`; +} +function isKnownSymbol(symbol) { + return startsWith(symbol.escapedName, "__@"); +} +function isProtoSetter(node) { + return isIdentifier(node) ? idText(node) === "__proto__" : isStringLiteral(node) && node.text === "__proto__"; +} +function isAnonymousFunctionDefinition(node, cb) { + node = skipOuterExpressions(node); + switch (node.kind) { + case 231 /* ClassExpression */: + if (classHasDeclaredOrExplicitlyAssignedName(node)) { + return false; + } + break; + case 218 /* FunctionExpression */: + if (node.name) { + return false; + } + break; + case 219 /* ArrowFunction */: + break; + default: + return false; + } + return typeof cb === "function" ? cb(node) : true; +} +function isNamedEvaluationSource(node) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return !isProtoSetter(node.name); + case 304 /* ShorthandPropertyAssignment */: + return !!node.objectAssignmentInitializer; + case 260 /* VariableDeclaration */: + return isIdentifier(node.name) && !!node.initializer; + case 169 /* Parameter */: + return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; + case 208 /* BindingElement */: + return isIdentifier(node.name) && !!node.initializer && !node.dotDotDotToken; + case 172 /* PropertyDeclaration */: + return !!node.initializer; + case 226 /* BinaryExpression */: + switch (node.operatorToken.kind) { + case 64 /* EqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 76 /* BarBarEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return isIdentifier(node.left); + } + break; + case 277 /* ExportAssignment */: + return true; + } + return false; +} +function isNamedEvaluation(node, cb) { + if (!isNamedEvaluationSource(node)) return false; + switch (node.kind) { + case 303 /* PropertyAssignment */: + return isAnonymousFunctionDefinition(node.initializer, cb); + case 304 /* ShorthandPropertyAssignment */: + return isAnonymousFunctionDefinition(node.objectAssignmentInitializer, cb); + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + return isAnonymousFunctionDefinition(node.initializer, cb); + case 226 /* BinaryExpression */: + return isAnonymousFunctionDefinition(node.right, cb); + case 277 /* ExportAssignment */: + return isAnonymousFunctionDefinition(node.expression, cb); + } +} +function isPushOrUnshiftIdentifier(node) { + return node.escapedText === "push" || node.escapedText === "unshift"; +} +function isPartOfParameterDeclaration(node) { + const root = getRootDeclaration(node); + return root.kind === 169 /* Parameter */; +} +function getRootDeclaration(node) { + while (node.kind === 208 /* BindingElement */) { + node = node.parent.parent; + } + return node; +} +function nodeStartsNewLexicalEnvironment(node) { + const kind = node.kind; + return kind === 176 /* Constructor */ || kind === 218 /* FunctionExpression */ || kind === 262 /* FunctionDeclaration */ || kind === 219 /* ArrowFunction */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 267 /* ModuleDeclaration */ || kind === 307 /* SourceFile */; +} +function nodeIsSynthesized(range) { + return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); +} +function getExpressionAssociativity(expression) { + const operator = getOperator(expression); + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; + return getOperatorAssociativity(expression.kind, operator, hasArguments); +} +function getOperatorAssociativity(kind, operator, hasArguments) { + switch (kind) { + case 214 /* NewExpression */: + return hasArguments ? 0 /* Left */ : 1 /* Right */; + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + case 227 /* ConditionalExpression */: + case 229 /* YieldExpression */: + return 1 /* Right */; + case 226 /* BinaryExpression */: + switch (operator) { + case 43 /* AsteriskAsteriskToken */: + case 64 /* EqualsToken */: + case 65 /* PlusEqualsToken */: + case 66 /* MinusEqualsToken */: + case 68 /* AsteriskAsteriskEqualsToken */: + case 67 /* AsteriskEqualsToken */: + case 69 /* SlashEqualsToken */: + case 70 /* PercentEqualsToken */: + case 71 /* LessThanLessThanEqualsToken */: + case 72 /* GreaterThanGreaterThanEqualsToken */: + case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 74 /* AmpersandEqualsToken */: + case 79 /* CaretEqualsToken */: + case 75 /* BarEqualsToken */: + case 76 /* BarBarEqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return 1 /* Right */; + } + } + return 0 /* Left */; +} +function getExpressionPrecedence(expression) { + const operator = getOperator(expression); + const hasArguments = expression.kind === 214 /* NewExpression */ && expression.arguments !== void 0; + return getOperatorPrecedence(expression.kind, operator, hasArguments); +} +function getOperator(expression) { + if (expression.kind === 226 /* BinaryExpression */) { + return expression.operatorToken.kind; + } else if (expression.kind === 224 /* PrefixUnaryExpression */ || expression.kind === 225 /* PostfixUnaryExpression */) { + return expression.operator; + } else { + return expression.kind; + } +} +function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { + switch (nodeKind) { + case 355 /* CommaListExpression */: + return 0 /* Comma */; + case 230 /* SpreadElement */: + return 1 /* Spread */; + case 229 /* YieldExpression */: + return 2 /* Yield */; + case 227 /* ConditionalExpression */: + return 4 /* Conditional */; + case 226 /* BinaryExpression */: + switch (operatorKind) { + case 28 /* CommaToken */: + return 0 /* Comma */; + case 64 /* EqualsToken */: + case 65 /* PlusEqualsToken */: + case 66 /* MinusEqualsToken */: + case 68 /* AsteriskAsteriskEqualsToken */: + case 67 /* AsteriskEqualsToken */: + case 69 /* SlashEqualsToken */: + case 70 /* PercentEqualsToken */: + case 71 /* LessThanLessThanEqualsToken */: + case 72 /* GreaterThanGreaterThanEqualsToken */: + case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 74 /* AmpersandEqualsToken */: + case 79 /* CaretEqualsToken */: + case 75 /* BarEqualsToken */: + case 76 /* BarBarEqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return 3 /* Assignment */; + default: + return getBinaryOperatorPrecedence(operatorKind); + } + case 216 /* TypeAssertionExpression */: + case 235 /* NonNullExpression */: + case 224 /* PrefixUnaryExpression */: + case 221 /* TypeOfExpression */: + case 222 /* VoidExpression */: + case 220 /* DeleteExpression */: + case 223 /* AwaitExpression */: + return 16 /* Unary */; + case 225 /* PostfixUnaryExpression */: + return 17 /* Update */; + case 213 /* CallExpression */: + return 18 /* LeftHandSide */; + case 214 /* NewExpression */: + return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */; + case 215 /* TaggedTemplateExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 236 /* MetaProperty */: + return 19 /* Member */; + case 234 /* AsExpression */: + case 238 /* SatisfiesExpression */: + return 11 /* Relational */; + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + case 106 /* NullKeyword */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 231 /* ClassExpression */: + case 14 /* RegularExpressionLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: + case 217 /* ParenthesizedExpression */: + case 232 /* OmittedExpression */: + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + return 20 /* Primary */; + default: + return -1 /* Invalid */; + } +} +function getBinaryOperatorPrecedence(kind) { + switch (kind) { + case 61 /* QuestionQuestionToken */: + return 4 /* Coalesce */; + case 57 /* BarBarToken */: + return 5 /* LogicalOR */; + case 56 /* AmpersandAmpersandToken */: + return 6 /* LogicalAND */; + case 52 /* BarToken */: + return 7 /* BitwiseOR */; + case 53 /* CaretToken */: + return 8 /* BitwiseXOR */; + case 51 /* AmpersandToken */: + return 9 /* BitwiseAND */; + case 35 /* EqualsEqualsToken */: + case 36 /* ExclamationEqualsToken */: + case 37 /* EqualsEqualsEqualsToken */: + case 38 /* ExclamationEqualsEqualsToken */: + return 10 /* Equality */; + case 30 /* LessThanToken */: + case 32 /* GreaterThanToken */: + case 33 /* LessThanEqualsToken */: + case 34 /* GreaterThanEqualsToken */: + case 104 /* InstanceOfKeyword */: + case 103 /* InKeyword */: + case 130 /* AsKeyword */: + case 152 /* SatisfiesKeyword */: + return 11 /* Relational */; + case 48 /* LessThanLessThanToken */: + case 49 /* GreaterThanGreaterThanToken */: + case 50 /* GreaterThanGreaterThanGreaterThanToken */: + return 12 /* Shift */; + case 40 /* PlusToken */: + case 41 /* MinusToken */: + return 13 /* Additive */; + case 42 /* AsteriskToken */: + case 44 /* SlashToken */: + case 45 /* PercentToken */: + return 14 /* Multiplicative */; + case 43 /* AsteriskAsteriskToken */: + return 15 /* Exponentiation */; + } + return -1; +} +function getSemanticJsxChildren(children) { + return filter(children, (i) => { + switch (i.kind) { + case 294 /* JsxExpression */: + return !!i.expression; + case 12 /* JsxText */: + return !i.containsOnlyTriviaWhiteSpaces; + default: + return true; + } + }); +} +function createDiagnosticCollection() { + let nonFileDiagnostics = []; + const filesWithDiagnostics = []; + const fileDiagnostics = /* @__PURE__ */ new Map(); + let hasReadNonFileDiagnostics = false; + return { + add, + lookup, + getGlobalDiagnostics, + getDiagnostics + }; + function lookup(diagnostic) { + let diagnostics; + if (diagnostic.file) { + diagnostics = fileDiagnostics.get(diagnostic.file.fileName); + } else { + diagnostics = nonFileDiagnostics; + } + if (!diagnostics) { + return void 0; + } + const result = binarySearch(diagnostics, diagnostic, identity, compareDiagnosticsSkipRelatedInformation); + if (result >= 0) { + return diagnostics[result]; + } + if (~result > 0 && diagnosticsEqualityComparer(diagnostic, diagnostics[~result - 1])) { + return diagnostics[~result - 1]; + } + return void 0; + } + function add(diagnostic) { + let diagnostics; + if (diagnostic.file) { + diagnostics = fileDiagnostics.get(diagnostic.file.fileName); + if (!diagnostics) { + diagnostics = []; + fileDiagnostics.set(diagnostic.file.fileName, diagnostics); + insertSorted(filesWithDiagnostics, diagnostic.file.fileName, compareStringsCaseSensitive); + } + } else { + if (hasReadNonFileDiagnostics) { + hasReadNonFileDiagnostics = false; + nonFileDiagnostics = nonFileDiagnostics.slice(); + } + diagnostics = nonFileDiagnostics; + } + insertSorted(diagnostics, diagnostic, compareDiagnosticsSkipRelatedInformation, diagnosticsEqualityComparer); + } + function getGlobalDiagnostics() { + hasReadNonFileDiagnostics = true; + return nonFileDiagnostics; + } + function getDiagnostics(fileName) { + if (fileName) { + return fileDiagnostics.get(fileName) || []; + } + const fileDiags = flatMapToMutable(filesWithDiagnostics, (f) => fileDiagnostics.get(f)); + if (!nonFileDiagnostics.length) { + return fileDiags; + } + fileDiags.unshift(...nonFileDiagnostics); + return fileDiags; + } +} +var templateSubstitutionRegExp = /\$\{/g; +function escapeTemplateSubstitution(str) { + return str.replace(templateSubstitutionRegExp, "\\${"); +} +function containsInvalidEscapeFlag(node) { + return !!((node.templateFlags || 0) & 2048 /* ContainsInvalidEscape */); +} +function hasInvalidEscape(template) { + return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal))); +} +var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; +var escapedCharsMap = new Map(Object.entries({ + " ": "\\t", + "\v": "\\v", + "\f": "\\f", + "\b": "\\b", + "\r": "\\r", + "\n": "\\n", + "\\": "\\\\", + '"': '\\"', + "'": "\\'", + "`": "\\`", + "\u2028": "\\u2028", + // lineSeparator + "\u2029": "\\u2029", + // paragraphSeparator + "\x85": "\\u0085", + // nextLine + "\r\n": "\\r\\n" + // special case for CRLFs in backticks +})); +function encodeUtf16EscapeSequence(charCode) { + const hexCharCode = charCode.toString(16).toUpperCase(); + const paddedHexCode = ("0000" + hexCharCode).slice(-4); + return "\\u" + paddedHexCode; +} +function getReplacement(c, offset, input) { + if (c.charCodeAt(0) === 0 /* nullCharacter */) { + const lookAhead = input.charCodeAt(offset + c.length); + if (lookAhead >= 48 /* _0 */ && lookAhead <= 57 /* _9 */) { + return "\\x00"; + } + return "\\0"; + } + return escapedCharsMap.get(c) || encodeUtf16EscapeSequence(c.charCodeAt(0)); +} +function escapeString(s, quoteChar) { + const escapedCharsRegExp = quoteChar === 96 /* backtick */ ? backtickQuoteEscapedCharsRegExp : quoteChar === 39 /* singleQuote */ ? singleQuoteEscapedCharsRegExp : doubleQuoteEscapedCharsRegExp; + return s.replace(escapedCharsRegExp, getReplacement); +} +var nonAsciiCharacters = /[^\u0000-\u007F]/g; +function escapeNonAsciiString(s, quoteChar) { + s = escapeString(s, quoteChar); + return nonAsciiCharacters.test(s) ? s.replace(nonAsciiCharacters, (c) => encodeUtf16EscapeSequence(c.charCodeAt(0))) : s; +} +var jsxDoubleQuoteEscapedCharsRegExp = /["\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxSingleQuoteEscapedCharsRegExp = /['\u0000-\u001f\u2028\u2029\u0085]/g; +var jsxEscapedCharsMap = new Map(Object.entries({ + '"': """, + "'": "'" +})); +function encodeJsxCharacterEntity(charCode) { + const hexCharCode = charCode.toString(16).toUpperCase(); + return "&#x" + hexCharCode + ";"; +} +function getJsxAttributeStringReplacement(c) { + if (c.charCodeAt(0) === 0 /* nullCharacter */) { + return "�"; + } + return jsxEscapedCharsMap.get(c) || encodeJsxCharacterEntity(c.charCodeAt(0)); +} +function escapeJsxAttributeString(s, quoteChar) { + const escapedCharsRegExp = quoteChar === 39 /* singleQuote */ ? jsxSingleQuoteEscapedCharsRegExp : jsxDoubleQuoteEscapedCharsRegExp; + return s.replace(escapedCharsRegExp, getJsxAttributeStringReplacement); +} +function stripQuotes(name) { + const length2 = name.length; + if (length2 >= 2 && name.charCodeAt(0) === name.charCodeAt(length2 - 1) && isQuoteOrBacktick(name.charCodeAt(0))) { + return name.substring(1, length2 - 1); + } + return name; +} +function isQuoteOrBacktick(charCode) { + return charCode === 39 /* singleQuote */ || charCode === 34 /* doubleQuote */ || charCode === 96 /* backtick */; +} +function isIntrinsicJsxName(name) { + const ch = name.charCodeAt(0); + return ch >= 97 /* a */ && ch <= 122 /* z */ || name.includes("-"); +} +var indentStrings = ["", " "]; +function getIndentString(level) { + const singleLevel = indentStrings[1]; + for (let current = indentStrings.length; current <= level; current++) { + indentStrings.push(indentStrings[current - 1] + singleLevel); + } + return indentStrings[level]; +} +function getIndentSize() { + return indentStrings[1].length; +} +function createTextWriter(newLine) { + var output; + var indent2; + var lineStart; + var lineCount; + var linePos; + var hasTrailingComment = false; + function updateLineCountAndPosFor(s) { + const lineStartsOfS = computeLineStarts(s); + if (lineStartsOfS.length > 1) { + lineCount = lineCount + lineStartsOfS.length - 1; + linePos = output.length - s.length + last(lineStartsOfS); + lineStart = linePos - output.length === 0; + } else { + lineStart = false; + } + } + function writeText(s) { + if (s && s.length) { + if (lineStart) { + s = getIndentString(indent2) + s; + lineStart = false; + } + output += s; + updateLineCountAndPosFor(s); + } + } + function write(s) { + if (s) hasTrailingComment = false; + writeText(s); + } + function writeComment(s) { + if (s) hasTrailingComment = true; + writeText(s); + } + function reset() { + output = ""; + indent2 = 0; + lineStart = true; + lineCount = 0; + linePos = 0; + hasTrailingComment = false; + } + function rawWrite(s) { + if (s !== void 0) { + output += s; + updateLineCountAndPosFor(s); + hasTrailingComment = false; + } + } + function writeLiteral(s) { + if (s && s.length) { + write(s); + } + } + function writeLine(force) { + if (!lineStart || force) { + output += newLine; + lineCount++; + linePos = output.length; + lineStart = true; + hasTrailingComment = false; + } + } + reset(); + return { + write, + rawWrite, + writeLiteral, + writeLine, + increaseIndent: () => { + indent2++; + }, + decreaseIndent: () => { + indent2--; + }, + getIndent: () => indent2, + getTextPos: () => output.length, + getLine: () => lineCount, + getColumn: () => lineStart ? indent2 * getIndentSize() : output.length - linePos, + getText: () => output, + isAtStartOfLine: () => lineStart, + hasTrailingComment: () => hasTrailingComment, + hasTrailingWhitespace: () => !!output.length && isWhiteSpaceLike(output.charCodeAt(output.length - 1)), + clear: reset, + writeKeyword: write, + writeOperator: write, + writeParameter: write, + writeProperty: write, + writePunctuation: write, + writeSpace: write, + writeStringLiteral: write, + writeSymbol: (s, _) => write(s), + writeTrailingSemicolon: write, + writeComment + }; +} +function getTrailingSemicolonDeferringWriter(writer) { + let pendingTrailingSemicolon = false; + function commitPendingTrailingSemicolon() { + if (pendingTrailingSemicolon) { + writer.writeTrailingSemicolon(";"); + pendingTrailingSemicolon = false; + } + } + return { + ...writer, + writeTrailingSemicolon() { + pendingTrailingSemicolon = true; + }, + writeLiteral(s) { + commitPendingTrailingSemicolon(); + writer.writeLiteral(s); + }, + writeStringLiteral(s) { + commitPendingTrailingSemicolon(); + writer.writeStringLiteral(s); + }, + writeSymbol(s, sym) { + commitPendingTrailingSemicolon(); + writer.writeSymbol(s, sym); + }, + writePunctuation(s) { + commitPendingTrailingSemicolon(); + writer.writePunctuation(s); + }, + writeKeyword(s) { + commitPendingTrailingSemicolon(); + writer.writeKeyword(s); + }, + writeOperator(s) { + commitPendingTrailingSemicolon(); + writer.writeOperator(s); + }, + writeParameter(s) { + commitPendingTrailingSemicolon(); + writer.writeParameter(s); + }, + writeSpace(s) { + commitPendingTrailingSemicolon(); + writer.writeSpace(s); + }, + writeProperty(s) { + commitPendingTrailingSemicolon(); + writer.writeProperty(s); + }, + writeComment(s) { + commitPendingTrailingSemicolon(); + writer.writeComment(s); + }, + writeLine() { + commitPendingTrailingSemicolon(); + writer.writeLine(); + }, + increaseIndent() { + commitPendingTrailingSemicolon(); + writer.increaseIndent(); + }, + decreaseIndent() { + commitPendingTrailingSemicolon(); + writer.decreaseIndent(); + } + }; +} +function hostUsesCaseSensitiveFileNames(host) { + return host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : false; +} +function hostGetCanonicalFileName(host) { + return createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(host)); +} +function getResolvedExternalModuleName(host, file, referenceFile) { + return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName); +} +function getCanonicalAbsolutePath(host, path) { + return host.getCanonicalFileName(getNormalizedAbsolutePath(path, host.getCurrentDirectory())); +} +function getExternalModuleNameFromDeclaration(host, resolver, declaration) { + const file = resolver.getExternalModuleFileFromDeclaration(declaration); + if (!file || file.isDeclarationFile) { + return void 0; + } + const specifier = getExternalModuleName(declaration); + if (specifier && isStringLiteralLike(specifier) && !pathIsRelative(specifier.text) && !getCanonicalAbsolutePath(host, file.path).includes(getCanonicalAbsolutePath(host, ensureTrailingDirectorySeparator(host.getCommonSourceDirectory())))) { + return void 0; + } + return getResolvedExternalModuleName(host, file); +} +function getExternalModuleNameFromPath(host, fileName, referencePath) { + const getCanonicalFileName = (f) => host.getCanonicalFileName(f); + const dir = toPath(referencePath ? getDirectoryPath(referencePath) : host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName); + const filePath = getNormalizedAbsolutePath(fileName, host.getCurrentDirectory()); + const relativePath = getRelativePathToDirectoryOrUrl( + dir, + filePath, + dir, + getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + false + ); + const extensionless = removeFileExtension(relativePath); + return referencePath ? ensurePathIsNonModuleName(extensionless) : extensionless; +} +function getOwnEmitOutputFilePath(fileName, host, extension) { + const compilerOptions = host.getCompilerOptions(); + let emitOutputFilePathWithoutExtension; + if (compilerOptions.outDir) { + emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(fileName, host, compilerOptions.outDir)); + } else { + emitOutputFilePathWithoutExtension = removeFileExtension(fileName); + } + return emitOutputFilePathWithoutExtension + extension; +} +function getDeclarationEmitOutputFilePath(fileName, host) { + return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host); +} +function getDeclarationEmitOutputFilePathWorker(fileName, options, host) { + const outputDir = options.declarationDir || options.outDir; + const path = outputDir ? getSourceFilePathInNewDirWorker(fileName, outputDir, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)) : fileName; + const declarationExtension = getDeclarationEmitExtensionForPath(path); + return removeFileExtension(path) + declarationExtension; +} +function getDeclarationEmitExtensionForPath(path) { + return fileExtensionIsOneOf(path, [".mjs" /* Mjs */, ".mts" /* Mts */]) ? ".d.mts" /* Dmts */ : fileExtensionIsOneOf(path, [".cjs" /* Cjs */, ".cts" /* Cts */]) ? ".d.cts" /* Dcts */ : fileExtensionIsOneOf(path, [".json" /* Json */]) ? `.d.json.ts` : ( + // Drive-by redefinition of json declaration file output name so if it's ever enabled, it behaves well + ".d.ts" /* Dts */ + ); +} +function getPossibleOriginalInputExtensionForExtension(path) { + return fileExtensionIsOneOf(path, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path, [`.d.json.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */]; +} +function getPathsBasePath(options, host) { + var _a; + if (!options.paths) return void 0; + return options.baseUrl ?? Debug.checkDefined(options.pathsBasePath || ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)), "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'."); +} +function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) { + const options = host.getCompilerOptions(); + if (options.outFile) { + const moduleKind = getEmitModuleKind(options); + const moduleEmitEnabled = options.emitDeclarationOnly || moduleKind === 2 /* AMD */ || moduleKind === 4 /* System */; + return filter( + host.getSourceFiles(), + (sourceFile) => (moduleEmitEnabled || !isExternalModule(sourceFile)) && sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) + ); + } else { + const sourceFiles = targetSourceFile === void 0 ? host.getSourceFiles() : [targetSourceFile]; + return filter( + sourceFiles, + (sourceFile) => sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) + ); + } +} +function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) { + const options = host.getCompilerOptions(); + if (options.noEmitForJsFiles && isSourceFileJS(sourceFile)) return false; + if (sourceFile.isDeclarationFile) return false; + if (host.isSourceFileFromExternalLibrary(sourceFile)) return false; + if (forceDtsEmit) return true; + if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) return false; + if (!isJsonSourceFile(sourceFile)) return true; + if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return false; + if (options.outFile) return true; + if (!options.outDir) return false; + if (options.rootDir || options.composite && options.configFilePath) { + const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory()); + const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName); + if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false; + } + return true; +} +function getSourceFilePathInNewDir(fileName, host, newDirPath) { + return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), (f) => host.getCanonicalFileName(f)); +} +function getSourceFilePathInNewDirWorker(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName) { + let sourceFilePath = getNormalizedAbsolutePath(fileName, currentDirectory); + const isSourceFileInCommonSourceDirectory = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0; + sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath; + return combinePaths(newDirPath, sourceFilePath); +} +function writeFile(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) { + host.writeFile( + fileName, + text, + writeByteOrderMark, + (hostErrorMessage) => { + diagnostics.add(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage)); + }, + sourceFiles, + data + ); +} +function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists) { + if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) { + const parentDirectory = getDirectoryPath(directoryPath); + ensureDirectoriesExist(parentDirectory, createDirectory, directoryExists); + createDirectory(directoryPath); + } +} +function writeFileEnsuringDirectories(path, data, writeByteOrderMark, writeFile2, createDirectory, directoryExists) { + try { + writeFile2(path, data, writeByteOrderMark); + } catch { + ensureDirectoriesExist(getDirectoryPath(normalizePath(path)), createDirectory, directoryExists); + writeFile2(path, data, writeByteOrderMark); + } +} +function getLineOfLocalPositionFromLineMap(lineMap, pos) { + return computeLineOfPosition(lineMap, pos); +} +function getFirstConstructorWithBody(node) { + return find(node.members, (member) => isConstructorDeclaration(member) && nodeIsPresent(member.body)); +} +function getSetAccessorValueParameter(accessor) { + if (accessor && accessor.parameters.length > 0) { + const hasThis = accessor.parameters.length === 2 && parameterIsThisKeyword(accessor.parameters[0]); + return accessor.parameters[hasThis ? 1 : 0]; + } +} +function getSetAccessorTypeAnnotationNode(accessor) { + const parameter = getSetAccessorValueParameter(accessor); + return parameter && parameter.type; +} +function getThisParameter(signature) { + if (signature.parameters.length && !isJSDocSignature(signature)) { + const thisParameter = signature.parameters[0]; + if (parameterIsThisKeyword(thisParameter)) { + return thisParameter; + } + } +} +function parameterIsThisKeyword(parameter) { + return isThisIdentifier(parameter.name); +} +function isThisIdentifier(node) { + return !!node && node.kind === 80 /* Identifier */ && identifierIsThisKeyword(node); +} +function isInTypeQuery(node) { + return !!findAncestor( + node, + (n) => n.kind === 186 /* TypeQuery */ ? true : n.kind === 80 /* Identifier */ || n.kind === 166 /* QualifiedName */ ? false : "quit" + ); +} +function isThisInTypeQuery(node) { + if (!isThisIdentifier(node)) { + return false; + } + while (isQualifiedName(node.parent) && node.parent.left === node) { + node = node.parent; + } + return node.parent.kind === 186 /* TypeQuery */; +} +function identifierIsThisKeyword(id) { + return id.escapedText === "this"; +} +function getAllAccessorDeclarations(declarations, accessor) { + let firstAccessor; + let secondAccessor; + let getAccessor; + let setAccessor; + if (hasDynamicName(accessor)) { + firstAccessor = accessor; + if (accessor.kind === 177 /* GetAccessor */) { + getAccessor = accessor; + } else if (accessor.kind === 178 /* SetAccessor */) { + setAccessor = accessor; + } else { + Debug.fail("Accessor has wrong kind"); + } + } else { + forEach(declarations, (member) => { + if (isAccessor(member) && isStatic(member) === isStatic(accessor)) { + const memberName = getPropertyNameForPropertyNameNode(member.name); + const accessorName = getPropertyNameForPropertyNameNode(accessor.name); + if (memberName === accessorName) { + if (!firstAccessor) { + firstAccessor = member; + } else if (!secondAccessor) { + secondAccessor = member; + } + if (member.kind === 177 /* GetAccessor */ && !getAccessor) { + getAccessor = member; + } + if (member.kind === 178 /* SetAccessor */ && !setAccessor) { + setAccessor = member; + } + } + } + }); + } + return { + firstAccessor, + secondAccessor, + getAccessor, + setAccessor + }; +} +function getEffectiveTypeAnnotationNode(node) { + if (!isInJSFile(node) && isFunctionDeclaration(node)) return void 0; + if (isTypeAliasDeclaration(node)) return void 0; + const type = node.type; + if (type || !isInJSFile(node)) return type; + return isJSDocPropertyLikeTag(node) ? node.typeExpression && node.typeExpression.type : getJSDocType(node); +} +function getEffectiveReturnTypeNode(node) { + return isJSDocSignature(node) ? node.type && node.type.typeExpression && node.type.typeExpression.type : node.type || (isInJSFile(node) ? getJSDocReturnType(node) : void 0); +} +function getJSDocTypeParameterDeclarations(node) { + return flatMap(getJSDocTags(node), (tag) => isNonTypeAliasTemplate(tag) ? tag.typeParameters : void 0); +} +function isNonTypeAliasTemplate(tag) { + return isJSDocTemplateTag(tag) && !(tag.parent.kind === 320 /* JSDoc */ && (tag.parent.tags.some(isJSDocTypeAlias) || tag.parent.tags.some(isJSDocOverloadTag))); +} +function getEffectiveSetAccessorTypeAnnotationNode(node) { + const parameter = getSetAccessorValueParameter(node); + return parameter && getEffectiveTypeAnnotationNode(parameter); +} +function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) { + emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments); +} +function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) { + if (leadingComments && leadingComments.length && pos !== leadingComments[0].pos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, leadingComments[0].pos)) { + writer.writeLine(); + } +} +function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) { + if (pos !== commentPos && getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, commentPos)) { + writer.writeLine(); + } +} +function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLine, writeComment) { + if (comments && comments.length > 0) { + if (leadingSeparator) { + writer.writeSpace(" "); + } + let emitInterveningSeparator = false; + for (const comment of comments) { + if (emitInterveningSeparator) { + writer.writeSpace(" "); + emitInterveningSeparator = false; + } + writeComment(text, lineMap, writer, comment.pos, comment.end, newLine); + if (comment.hasTrailingNewLine) { + writer.writeLine(); + } else { + emitInterveningSeparator = true; + } + } + if (emitInterveningSeparator && trailingSeparator) { + writer.writeSpace(" "); + } + } +} +function emitDetachedComments(text, lineMap, writer, writeComment, node, newLine, removeComments) { + let leadingComments; + let currentDetachedCommentInfo; + if (removeComments) { + if (node.pos === 0) { + leadingComments = filter(getLeadingCommentRanges(text, node.pos), isPinnedCommentLocal); + } + } else { + leadingComments = getLeadingCommentRanges(text, node.pos); + } + if (leadingComments) { + const detachedComments = []; + let lastComment; + for (const comment of leadingComments) { + if (lastComment) { + const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, lastComment.end); + const commentLine = getLineOfLocalPositionFromLineMap(lineMap, comment.pos); + if (commentLine >= lastCommentLine + 2) { + break; + } + } + detachedComments.push(comment); + lastComment = comment; + } + if (detachedComments.length) { + const lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, last(detachedComments).end); + const nodeLine = getLineOfLocalPositionFromLineMap(lineMap, skipTrivia(text, node.pos)); + if (nodeLine >= lastCommentLine + 2) { + emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments); + emitComments( + text, + lineMap, + writer, + detachedComments, + /*leadingSeparator*/ + false, + /*trailingSeparator*/ + true, + newLine, + writeComment + ); + currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: last(detachedComments).end }; + } + } + } + return currentDetachedCommentInfo; + function isPinnedCommentLocal(comment) { + return isPinnedComment(text, comment.pos); + } +} +function writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine) { + if (text.charCodeAt(commentPos + 1) === 42 /* asterisk */) { + const firstCommentLineAndCharacter = computeLineAndCharacterOfPosition(lineMap, commentPos); + const lineCount = lineMap.length; + let firstCommentLineIndent; + for (let pos = commentPos, currentLine = firstCommentLineAndCharacter.line; pos < commentEnd; currentLine++) { + const nextLineStart = currentLine + 1 === lineCount ? text.length + 1 : lineMap[currentLine + 1]; + if (pos !== commentPos) { + if (firstCommentLineIndent === void 0) { + firstCommentLineIndent = calculateIndent(text, lineMap[firstCommentLineAndCharacter.line], commentPos); + } + const currentWriterIndentSpacing = writer.getIndent() * getIndentSize(); + const spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(text, pos, nextLineStart); + if (spacesToEmit > 0) { + let numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize(); + const indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize()); + writer.rawWrite(indentSizeSpaceString); + while (numberOfSingleSpacesToEmit) { + writer.rawWrite(" "); + numberOfSingleSpacesToEmit--; + } + } else { + writer.rawWrite(""); + } + } + writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart); + pos = nextLineStart; + } + } else { + writer.writeComment(text.substring(commentPos, commentEnd)); + } +} +function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) { + const end = Math.min(commentEnd, nextLineStart - 1); + const currentLineText = text.substring(pos, end).trim(); + if (currentLineText) { + writer.writeComment(currentLineText); + if (end !== commentEnd) { + writer.writeLine(); + } + } else { + writer.rawWrite(newLine); + } +} +function calculateIndent(text, pos, end) { + let currentLineIndent = 0; + for (; pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++) { + if (text.charCodeAt(pos) === 9 /* tab */) { + currentLineIndent += getIndentSize() - currentLineIndent % getIndentSize(); + } else { + currentLineIndent++; + } + } + return currentLineIndent; +} +function hasEffectiveModifiers(node) { + return getEffectiveModifierFlags(node) !== 0 /* None */; +} +function hasSyntacticModifiers(node) { + return getSyntacticModifierFlags(node) !== 0 /* None */; +} +function hasEffectiveModifier(node, flags) { + return !!getSelectedEffectiveModifierFlags(node, flags); +} +function hasSyntacticModifier(node, flags) { + return !!getSelectedSyntacticModifierFlags(node, flags); +} +function isStatic(node) { + return isClassElement(node) && hasStaticModifier(node) || isClassStaticBlockDeclaration(node); +} +function hasStaticModifier(node) { + return hasSyntacticModifier(node, 256 /* Static */); +} +function hasOverrideModifier(node) { + return hasEffectiveModifier(node, 16 /* Override */); +} +function hasAbstractModifier(node) { + return hasSyntacticModifier(node, 64 /* Abstract */); +} +function hasAmbientModifier(node) { + return hasSyntacticModifier(node, 128 /* Ambient */); +} +function hasAccessorModifier(node) { + return hasSyntacticModifier(node, 512 /* Accessor */); +} +function hasEffectiveReadonlyModifier(node) { + return hasEffectiveModifier(node, 8 /* Readonly */); +} +function hasDecorators(node) { + return hasSyntacticModifier(node, 32768 /* Decorator */); +} +function getSelectedEffectiveModifierFlags(node, flags) { + return getEffectiveModifierFlags(node) & flags; +} +function getSelectedSyntacticModifierFlags(node, flags) { + return getSyntacticModifierFlags(node) & flags; +} +function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) { + if (node.kind >= 0 /* FirstToken */ && node.kind <= 165 /* LastToken */) { + return 0 /* None */; + } + if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) { + node.modifierFlagsCache = getSyntacticModifierFlagsNoCache(node) | 536870912 /* HasComputedFlags */; + } + if (alwaysIncludeJSDoc || includeJSDoc && isInJSFile(node)) { + if (!(node.modifierFlagsCache & 268435456 /* HasComputedJSDocModifiers */) && node.parent) { + node.modifierFlagsCache |= getRawJSDocModifierFlagsNoCache(node) | 268435456 /* HasComputedJSDocModifiers */; + } + return selectEffectiveModifierFlags(node.modifierFlagsCache); + } + return selectSyntacticModifierFlags(node.modifierFlagsCache); +} +function getEffectiveModifierFlags(node) { + return getModifierFlagsWorker( + node, + /*includeJSDoc*/ + true + ); +} +function getSyntacticModifierFlags(node) { + return getModifierFlagsWorker( + node, + /*includeJSDoc*/ + false + ); +} +function getRawJSDocModifierFlagsNoCache(node) { + let flags = 0 /* None */; + if (!!node.parent && !isParameter(node)) { + if (isInJSFile(node)) { + if (getJSDocPublicTagNoCache(node)) flags |= 8388608 /* JSDocPublic */; + if (getJSDocPrivateTagNoCache(node)) flags |= 16777216 /* JSDocPrivate */; + if (getJSDocProtectedTagNoCache(node)) flags |= 33554432 /* JSDocProtected */; + if (getJSDocReadonlyTagNoCache(node)) flags |= 67108864 /* JSDocReadonly */; + if (getJSDocOverrideTagNoCache(node)) flags |= 134217728 /* JSDocOverride */; + } + if (getJSDocDeprecatedTagNoCache(node)) flags |= 65536 /* Deprecated */; + } + return flags; +} +function selectSyntacticModifierFlags(flags) { + return flags & 65535 /* SyntacticModifiers */; +} +function selectEffectiveModifierFlags(flags) { + return flags & 131071 /* NonCacheOnlyModifiers */ | (flags & 260046848 /* JSDocCacheOnlyModifiers */) >>> 23; +} +function getJSDocModifierFlagsNoCache(node) { + return selectEffectiveModifierFlags(getRawJSDocModifierFlagsNoCache(node)); +} +function getEffectiveModifierFlagsNoCache(node) { + return getSyntacticModifierFlagsNoCache(node) | getJSDocModifierFlagsNoCache(node); +} +function getSyntacticModifierFlagsNoCache(node) { + let flags = canHaveModifiers(node) ? modifiersToFlags(node.modifiers) : 0 /* None */; + if (node.flags & 8 /* NestedNamespace */ || node.kind === 80 /* Identifier */ && node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { + flags |= 32 /* Export */; + } + return flags; +} +function modifiersToFlags(modifiers) { + let flags = 0 /* None */; + if (modifiers) { + for (const modifier of modifiers) { + flags |= modifierToFlag(modifier.kind); + } + } + return flags; +} +function modifierToFlag(token) { + switch (token) { + case 126 /* StaticKeyword */: + return 256 /* Static */; + case 125 /* PublicKeyword */: + return 1 /* Public */; + case 124 /* ProtectedKeyword */: + return 4 /* Protected */; + case 123 /* PrivateKeyword */: + return 2 /* Private */; + case 128 /* AbstractKeyword */: + return 64 /* Abstract */; + case 129 /* AccessorKeyword */: + return 512 /* Accessor */; + case 95 /* ExportKeyword */: + return 32 /* Export */; + case 138 /* DeclareKeyword */: + return 128 /* Ambient */; + case 87 /* ConstKeyword */: + return 4096 /* Const */; + case 90 /* DefaultKeyword */: + return 2048 /* Default */; + case 134 /* AsyncKeyword */: + return 1024 /* Async */; + case 148 /* ReadonlyKeyword */: + return 8 /* Readonly */; + case 164 /* OverrideKeyword */: + return 16 /* Override */; + case 103 /* InKeyword */: + return 8192 /* In */; + case 147 /* OutKeyword */: + return 16384 /* Out */; + case 170 /* Decorator */: + return 32768 /* Decorator */; + } + return 0 /* None */; +} +function isBinaryLogicalOperator(token) { + return token === 57 /* BarBarToken */ || token === 56 /* AmpersandAmpersandToken */; +} +function isLogicalOperator(token) { + return isBinaryLogicalOperator(token) || token === 54 /* ExclamationToken */; +} +function isLogicalOrCoalescingAssignmentOperator(token) { + return token === 76 /* BarBarEqualsToken */ || token === 77 /* AmpersandAmpersandEqualsToken */ || token === 78 /* QuestionQuestionEqualsToken */; +} +function isLogicalOrCoalescingAssignmentExpression(expr) { + return isBinaryExpression(expr) && isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind); +} +function isLogicalOrCoalescingBinaryOperator(token) { + return isBinaryLogicalOperator(token) || token === 61 /* QuestionQuestionToken */; +} +function isLogicalOrCoalescingBinaryExpression(expr) { + return isBinaryExpression(expr) && isLogicalOrCoalescingBinaryOperator(expr.operatorToken.kind); +} +function isAssignmentOperator(token) { + return token >= 64 /* FirstAssignment */ && token <= 79 /* LastAssignment */; +} +function tryGetClassExtendingExpressionWithTypeArguments(node) { + const cls = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); + return cls && !cls.isImplements ? cls.class : void 0; +} +function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node) { + if (isExpressionWithTypeArguments(node)) { + if (isHeritageClause(node.parent) && isClassLike(node.parent.parent)) { + return { class: node.parent.parent, isImplements: node.parent.token === 119 /* ImplementsKeyword */ }; + } + if (isJSDocAugmentsTag(node.parent)) { + const host = getEffectiveJSDocHost(node.parent); + if (host && isClassLike(host)) { + return { class: host, isImplements: false }; + } + } + } + return void 0; +} +function isAssignmentExpression(node, excludeCompoundAssignment) { + return isBinaryExpression(node) && (excludeCompoundAssignment ? node.operatorToken.kind === 64 /* EqualsToken */ : isAssignmentOperator(node.operatorToken.kind)) && isLeftHandSideExpression(node.left); +} +function isDestructuringAssignment(node) { + if (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + )) { + const kind = node.left.kind; + return kind === 210 /* ObjectLiteralExpression */ || kind === 209 /* ArrayLiteralExpression */; + } + return false; +} +function isExpressionWithTypeArgumentsInClassExtendsClause(node) { + return tryGetClassExtendingExpressionWithTypeArguments(node) !== void 0; +} +function isEntityNameExpression(node) { + return node.kind === 80 /* Identifier */ || isPropertyAccessEntityNameExpression(node); +} +function getFirstIdentifier(node) { + switch (node.kind) { + case 80 /* Identifier */: + return node; + case 166 /* QualifiedName */: + do { + node = node.left; + } while (node.kind !== 80 /* Identifier */); + return node; + case 211 /* PropertyAccessExpression */: + do { + node = node.expression; + } while (node.kind !== 80 /* Identifier */); + return node; + } +} +function isDottedName(node) { + return node.kind === 80 /* Identifier */ || node.kind === 110 /* ThisKeyword */ || node.kind === 108 /* SuperKeyword */ || node.kind === 236 /* MetaProperty */ || node.kind === 211 /* PropertyAccessExpression */ && isDottedName(node.expression) || node.kind === 217 /* ParenthesizedExpression */ && isDottedName(node.expression); +} +function isPropertyAccessEntityNameExpression(node) { + return isPropertyAccessExpression(node) && isIdentifier(node.name) && isEntityNameExpression(node.expression); +} +function tryGetPropertyAccessOrIdentifierToString(expr) { + if (isPropertyAccessExpression(expr)) { + const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression); + if (baseStr !== void 0) { + return baseStr + "." + entityNameToString(expr.name); + } + } else if (isElementAccessExpression(expr)) { + const baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression); + if (baseStr !== void 0 && isPropertyName(expr.argumentExpression)) { + return baseStr + "." + getPropertyNameForPropertyNameNode(expr.argumentExpression); + } + } else if (isIdentifier(expr)) { + return unescapeLeadingUnderscores(expr.escapedText); + } else if (isJsxNamespacedName(expr)) { + return getTextOfJsxNamespacedName(expr); + } + return void 0; +} +function isPrototypeAccess(node) { + return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === "prototype"; +} +function isRightSideOfQualifiedNameOrPropertyAccess(node) { + return node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node || node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.name === node || node.parent.kind === 236 /* MetaProperty */ && node.parent.name === node; +} +function isRightSideOfAccessExpression(node) { + return !!node.parent && (isPropertyAccessExpression(node.parent) && node.parent.name === node || isElementAccessExpression(node.parent) && node.parent.argumentExpression === node); +} +function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) { + return isQualifiedName(node.parent) && node.parent.right === node || isPropertyAccessExpression(node.parent) && node.parent.name === node || isJSDocMemberName(node.parent) && node.parent.right === node; +} +function isInstanceOfExpression(node) { + return isBinaryExpression(node) && node.operatorToken.kind === 104 /* InstanceOfKeyword */; +} +function isRightSideOfInstanceofExpression(node) { + return isInstanceOfExpression(node.parent) && node === node.parent.right; +} +function isEmptyObjectLiteral(expression) { + return expression.kind === 210 /* ObjectLiteralExpression */ && expression.properties.length === 0; +} +function isEmptyArrayLiteral(expression) { + return expression.kind === 209 /* ArrayLiteralExpression */ && expression.elements.length === 0; +} +function getLocalSymbolForExportDefault(symbol) { + if (!isExportDefaultSymbol(symbol) || !symbol.declarations) return void 0; + for (const decl of symbol.declarations) { + if (decl.localSymbol) return decl.localSymbol; + } + return void 0; +} +function isExportDefaultSymbol(symbol) { + return symbol && length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 2048 /* Default */); +} +function tryExtractTSExtension(fileName) { + return find(supportedTSExtensionsForExtractExtension, (extension) => fileExtensionIs(fileName, extension)); +} +function getExpandedCharCodes(input) { + const output = []; + const length2 = input.length; + for (let i = 0; i < length2; i++) { + const charCode = input.charCodeAt(i); + if (charCode < 128) { + output.push(charCode); + } else if (charCode < 2048) { + output.push(charCode >> 6 | 192); + output.push(charCode & 63 | 128); + } else if (charCode < 65536) { + output.push(charCode >> 12 | 224); + output.push(charCode >> 6 & 63 | 128); + output.push(charCode & 63 | 128); + } else if (charCode < 131072) { + output.push(charCode >> 18 | 240); + output.push(charCode >> 12 & 63 | 128); + output.push(charCode >> 6 & 63 | 128); + output.push(charCode & 63 | 128); + } else { + Debug.assert(false, "Unexpected code point"); + } + } + return output; +} +var base64Digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; +function convertToBase64(input) { + let result = ""; + const charCodes = getExpandedCharCodes(input); + let i = 0; + const length2 = charCodes.length; + let byte1, byte2, byte3, byte4; + while (i < length2) { + byte1 = charCodes[i] >> 2; + byte2 = (charCodes[i] & 3) << 4 | charCodes[i + 1] >> 4; + byte3 = (charCodes[i + 1] & 15) << 2 | charCodes[i + 2] >> 6; + byte4 = charCodes[i + 2] & 63; + if (i + 1 >= length2) { + byte3 = byte4 = 64; + } else if (i + 2 >= length2) { + byte4 = 64; + } + result += base64Digits.charAt(byte1) + base64Digits.charAt(byte2) + base64Digits.charAt(byte3) + base64Digits.charAt(byte4); + i += 3; + } + return result; +} +function base64encode(host, input) { + if (host && host.base64encode) { + return host.base64encode(input); + } + return convertToBase64(input); +} +function readJsonOrUndefined(path, hostOrText) { + const jsonText = isString(hostOrText) ? hostOrText : hostOrText.readFile(path); + if (!jsonText) return void 0; + const result = parseConfigFileTextToJson(path, jsonText); + return !result.error ? result.config : void 0; +} +function readJson(path, host) { + return readJsonOrUndefined(path, host) || {}; +} +function tryParseJson(text) { + try { + return JSON.parse(text); + } catch { + return void 0; + } +} +function directoryProbablyExists(directoryName, host) { + return !host.directoryExists || host.directoryExists(directoryName); +} +var carriageReturnLineFeed = "\r\n"; +var lineFeed = "\n"; +function getNewLineCharacter(options) { + switch (options.newLine) { + case 0 /* CarriageReturnLineFeed */: + return carriageReturnLineFeed; + case 1 /* LineFeed */: + case void 0: + return lineFeed; + } +} +function createRange(pos, end = pos) { + Debug.assert(end >= pos || end === -1); + return { pos, end }; +} +function moveRangeEnd(range, end) { + return createRange(range.pos, end); +} +function moveRangePos(range, pos) { + return createRange(pos, range.end); +} +function moveRangePastDecorators(node) { + const lastDecorator = canHaveModifiers(node) ? findLast(node.modifiers, isDecorator) : void 0; + return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? moveRangePos(node, lastDecorator.end) : node; +} +function moveRangePastModifiers(node) { + if (isPropertyDeclaration(node) || isMethodDeclaration(node)) { + return moveRangePos(node, node.name.pos); + } + const lastModifier = canHaveModifiers(node) ? lastOrUndefined(node.modifiers) : void 0; + return lastModifier && !positionIsSynthesized(lastModifier.end) ? moveRangePos(node, lastModifier.end) : moveRangePastDecorators(node); +} +function createTokenRange(pos, token) { + return createRange(pos, pos + tokenToString(token).length); +} +function rangeIsOnSingleLine(range, sourceFile) { + return rangeStartIsOnSameLineAsRangeEnd(range, range, sourceFile); +} +function rangeStartPositionsAreOnSameLine(range1, range2, sourceFile) { + return positionsAreOnSameLine( + getStartPositionOfRange( + range1, + sourceFile, + /*includeComments*/ + false + ), + getStartPositionOfRange( + range2, + sourceFile, + /*includeComments*/ + false + ), + sourceFile + ); +} +function rangeEndPositionsAreOnSameLine(range1, range2, sourceFile) { + return positionsAreOnSameLine(range1.end, range2.end, sourceFile); +} +function rangeStartIsOnSameLineAsRangeEnd(range1, range2, sourceFile) { + return positionsAreOnSameLine(getStartPositionOfRange( + range1, + sourceFile, + /*includeComments*/ + false + ), range2.end, sourceFile); +} +function rangeEndIsOnSameLineAsRangeStart(range1, range2, sourceFile) { + return positionsAreOnSameLine(range1.end, getStartPositionOfRange( + range2, + sourceFile, + /*includeComments*/ + false + ), sourceFile); +} +function getLinesBetweenRangeEndAndRangeStart(range1, range2, sourceFile, includeSecondRangeComments) { + const range2Start = getStartPositionOfRange(range2, sourceFile, includeSecondRangeComments); + return getLinesBetweenPositions(sourceFile, range1.end, range2Start); +} +function positionsAreOnSameLine(pos1, pos2, sourceFile) { + return getLinesBetweenPositions(sourceFile, pos1, pos2) === 0; +} +function getStartPositionOfRange(range, sourceFile, includeComments) { + return positionIsSynthesized(range.pos) ? -1 : skipTrivia( + sourceFile.text, + range.pos, + /*stopAfterLineBreak*/ + false, + includeComments + ); +} +function getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) { + const startPos = skipTrivia( + sourceFile.text, + pos, + /*stopAfterLineBreak*/ + false, + includeComments + ); + const prevPos = getPreviousNonWhitespacePosition(startPos, stopPos, sourceFile); + return getLinesBetweenPositions(sourceFile, prevPos ?? stopPos, startPos); +} +function getLinesBetweenPositionAndNextNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) { + const nextPos = skipTrivia( + sourceFile.text, + pos, + /*stopAfterLineBreak*/ + false, + includeComments + ); + return getLinesBetweenPositions(sourceFile, pos, Math.min(stopPos, nextPos)); +} +function getPreviousNonWhitespacePosition(pos, stopPos = 0, sourceFile) { + while (pos-- > stopPos) { + if (!isWhiteSpaceLike(sourceFile.text.charCodeAt(pos))) { + return pos; + } + } +} +function isDeclarationNameOfEnumOrNamespace(node) { + const parseNode = getParseTreeNode(node); + if (parseNode) { + switch (parseNode.parent.kind) { + case 266 /* EnumDeclaration */: + case 267 /* ModuleDeclaration */: + return parseNode === parseNode.parent.name; + } + } + return false; +} +function getInitializedVariables(node) { + return filter(node.declarations, isInitializedVariable); +} +function isInitializedVariable(node) { + return isVariableDeclaration(node) && node.initializer !== void 0; +} +function isWatchSet(options) { + return options.watch && hasProperty(options, "watch"); +} +function closeFileWatcher(watcher) { + watcher.close(); +} +function getCheckFlags(symbol) { + return symbol.flags & 33554432 /* Transient */ ? symbol.links.checkFlags : 0; +} +function getDeclarationModifierFlagsFromSymbol(s, isWrite = false) { + if (s.valueDeclaration) { + const declaration = isWrite && s.declarations && find(s.declarations, isSetAccessorDeclaration) || s.flags & 32768 /* GetAccessor */ && find(s.declarations, isGetAccessorDeclaration) || s.valueDeclaration; + const flags = getCombinedModifierFlags(declaration); + return s.parent && s.parent.flags & 32 /* Class */ ? flags : flags & ~7 /* AccessibilityModifier */; + } + if (getCheckFlags(s) & 6 /* Synthetic */) { + const checkFlags = s.links.checkFlags; + const accessModifier = checkFlags & 1024 /* ContainsPrivate */ ? 2 /* Private */ : checkFlags & 256 /* ContainsPublic */ ? 1 /* Public */ : 4 /* Protected */; + const staticModifier = checkFlags & 2048 /* ContainsStatic */ ? 256 /* Static */ : 0; + return accessModifier | staticModifier; + } + if (s.flags & 4194304 /* Prototype */) { + return 1 /* Public */ | 256 /* Static */; + } + return 0; +} +function skipAlias(symbol, checker) { + return symbol.flags & 2097152 /* Alias */ ? checker.getAliasedSymbol(symbol) : symbol; +} +function getCombinedLocalAndExportSymbolFlags(symbol) { + return symbol.exportSymbol ? symbol.exportSymbol.flags | symbol.flags : symbol.flags; +} +function isWriteOnlyAccess(node) { + return accessKind(node) === 1 /* Write */; +} +function isWriteAccess(node) { + return accessKind(node) !== 0 /* Read */; +} +function accessKind(node) { + const { parent } = node; + switch (parent == null ? void 0 : parent.kind) { + case 217 /* ParenthesizedExpression */: + return accessKind(parent); + case 225 /* PostfixUnaryExpression */: + case 224 /* PrefixUnaryExpression */: + const { operator } = parent; + return operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */ ? 2 /* ReadWrite */ : 0 /* Read */; + case 226 /* BinaryExpression */: + const { left, operatorToken } = parent; + return left === node && isAssignmentOperator(operatorToken.kind) ? operatorToken.kind === 64 /* EqualsToken */ ? 1 /* Write */ : 2 /* ReadWrite */ : 0 /* Read */; + case 211 /* PropertyAccessExpression */: + return parent.name !== node ? 0 /* Read */ : accessKind(parent); + case 303 /* PropertyAssignment */: { + const parentAccess = accessKind(parent.parent); + return node === parent.name ? reverseAccessKind(parentAccess) : parentAccess; + } + case 304 /* ShorthandPropertyAssignment */: + return node === parent.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent.parent); + case 209 /* ArrayLiteralExpression */: + return accessKind(parent); + default: + return 0 /* Read */; + } +} +function reverseAccessKind(a) { + switch (a) { + case 0 /* Read */: + return 1 /* Write */; + case 1 /* Write */: + return 0 /* Read */; + case 2 /* ReadWrite */: + return 2 /* ReadWrite */; + default: + return Debug.assertNever(a); + } +} +function compareDataObjects(dst, src) { + if (!dst || !src || Object.keys(dst).length !== Object.keys(src).length) { + return false; + } + for (const e in dst) { + if (typeof dst[e] === "object") { + if (!compareDataObjects(dst[e], src[e])) { + return false; + } + } else if (typeof dst[e] !== "function") { + if (dst[e] !== src[e]) { + return false; + } + } + } + return true; +} +function clearMap(map2, onDeleteValue) { + map2.forEach(onDeleteValue); + map2.clear(); +} +function mutateMapSkippingNewValues(map2, newMap, options) { + const { onDeleteValue, onExistingValue } = options; + map2.forEach((existingValue, key) => { + var _a; + if (!(newMap == null ? void 0 : newMap.has(key))) { + map2.delete(key); + onDeleteValue(existingValue, key); + } else if (onExistingValue) { + onExistingValue(existingValue, (_a = newMap.get) == null ? void 0 : _a.call(newMap, key), key); + } + }); +} +function mutateMap(map2, newMap, options) { + mutateMapSkippingNewValues(map2, newMap, options); + const { createNewValue } = options; + newMap == null ? void 0 : newMap.forEach((valueInNewMap, key) => { + if (!map2.has(key)) { + map2.set(key, createNewValue(key, valueInNewMap)); + } + }); +} +function getClassLikeDeclarationOfSymbol(symbol) { + var _a; + return (_a = symbol.declarations) == null ? void 0 : _a.find(isClassLike); +} +function getObjectFlags(type) { + return type.flags & 3899393 /* ObjectFlagsType */ ? type.objectFlags : 0; +} +function isUMDExportSymbol(symbol) { + return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && isNamespaceExportDeclaration(symbol.declarations[0]); +} +function getLastChild(node) { + let lastChild; + forEachChild(node, (child) => { + if (nodeIsPresent(child)) lastChild = child; + }, (children) => { + for (let i = children.length - 1; i >= 0; i--) { + if (nodeIsPresent(children[i])) { + lastChild = children[i]; + break; + } + } + }); + return lastChild; +} +function isTypeNodeKind(kind) { + return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 312 /* JSDocAllType */ || kind === 313 /* JSDocUnknownType */ || kind === 314 /* JSDocNullableType */ || kind === 315 /* JSDocNonNullableType */ || kind === 316 /* JSDocOptionalType */ || kind === 317 /* JSDocFunctionType */ || kind === 318 /* JSDocVariadicType */; +} +function isAccessExpression(node) { + return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */; +} +function getLeftmostAccessExpression(expr) { + while (isAccessExpression(expr)) { + expr = expr.expression; + } + return expr; +} +function getLeftmostExpression(node, stopAtCallExpressions) { + while (true) { + switch (node.kind) { + case 225 /* PostfixUnaryExpression */: + node = node.operand; + continue; + case 226 /* BinaryExpression */: + node = node.left; + continue; + case 227 /* ConditionalExpression */: + node = node.condition; + continue; + case 215 /* TaggedTemplateExpression */: + node = node.tag; + continue; + case 213 /* CallExpression */: + if (stopAtCallExpressions) { + return node; + } + case 234 /* AsExpression */: + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + case 235 /* NonNullExpression */: + case 354 /* PartiallyEmittedExpression */: + case 238 /* SatisfiesExpression */: + node = node.expression; + continue; + } + return node; + } +} +function Symbol4(flags, name) { + this.flags = flags; + this.escapedName = name; + 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 Type3(checker, flags) { + this.flags = flags; + if (Debug.isDebugging || tracing) { + this.checker = checker; + } +} +function Signature2(checker, flags) { + this.flags = flags; + if (Debug.isDebugging) { + this.checker = checker; + } +} +function Node4(kind, pos, end) { + this.pos = pos; + this.end = end; + this.kind = kind; + this.id = 0; + this.flags = 0 /* None */; + this.modifierFlagsCache = 0 /* None */; + this.transformFlags = 0 /* None */; + this.parent = void 0; + this.original = void 0; + this.emitNode = void 0; +} +function Token(kind, pos, end) { + this.pos = pos; + this.end = end; + this.kind = kind; + this.id = 0; + this.flags = 0 /* None */; + this.transformFlags = 0 /* None */; + this.parent = void 0; + this.emitNode = void 0; +} +function Identifier2(kind, pos, end) { + this.pos = pos; + this.end = end; + this.kind = kind; + this.id = 0; + this.flags = 0 /* None */; + this.transformFlags = 0 /* None */; + this.parent = void 0; + this.original = void 0; + this.emitNode = void 0; +} +function SourceMapSource(fileName, text, skipTrivia2) { + this.fileName = fileName; + this.text = text; + this.skipTrivia = skipTrivia2 || ((pos) => pos); +} +var objectAllocator = { + getNodeConstructor: () => Node4, + getTokenConstructor: () => Token, + getIdentifierConstructor: () => Identifier2, + getPrivateIdentifierConstructor: () => Node4, + getSourceFileConstructor: () => Node4, + getSymbolConstructor: () => Symbol4, + getTypeConstructor: () => Type3, + getSignatureConstructor: () => Signature2, + getSourceMapSourceConstructor: () => SourceMapSource +}; +function formatStringFromArgs(text, args) { + return text.replace(/{(\d+)}/g, (_match, index) => "" + Debug.checkDefined(args[+index])); +} +var localizedDiagnosticMessages; +function setLocalizedDiagnosticMessages(messages) { + localizedDiagnosticMessages = messages; +} +function getLocaleSpecificMessage(message) { + return localizedDiagnosticMessages && localizedDiagnosticMessages[message.key] || message.message; +} +function createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args) { + if (start + length2 > sourceText.length) { + length2 = sourceText.length - start; + } + assertDiagnosticLocation(sourceText, start, length2); + let text = getLocaleSpecificMessage(message); + if (some(args)) { + text = formatStringFromArgs(text, args); + } + return { + file: void 0, + start, + length: length2, + messageText: text, + category: message.category, + code: message.code, + reportsUnnecessary: message.reportsUnnecessary, + fileName + }; +} +function isDiagnosticWithDetachedLocation(diagnostic) { + return diagnostic.file === void 0 && diagnostic.start !== void 0 && diagnostic.length !== void 0 && typeof diagnostic.fileName === "string"; +} +function attachFileToDiagnostic(diagnostic, file) { + const fileName = file.fileName || ""; + const length2 = file.text.length; + Debug.assertEqual(diagnostic.fileName, fileName); + Debug.assertLessThanOrEqual(diagnostic.start, length2); + Debug.assertLessThanOrEqual(diagnostic.start + diagnostic.length, length2); + const diagnosticWithLocation = { + file, + start: diagnostic.start, + length: diagnostic.length, + messageText: diagnostic.messageText, + category: diagnostic.category, + code: diagnostic.code, + reportsUnnecessary: diagnostic.reportsUnnecessary + }; + if (diagnostic.relatedInformation) { + diagnosticWithLocation.relatedInformation = []; + for (const related of diagnostic.relatedInformation) { + if (isDiagnosticWithDetachedLocation(related) && related.fileName === fileName) { + Debug.assertLessThanOrEqual(related.start, length2); + Debug.assertLessThanOrEqual(related.start + related.length, length2); + diagnosticWithLocation.relatedInformation.push(attachFileToDiagnostic(related, file)); + } else { + diagnosticWithLocation.relatedInformation.push(related); + } + } + } + return diagnosticWithLocation; +} +function attachFileToDiagnostics(diagnostics, file) { + const diagnosticsWithLocation = []; + for (const diagnostic of diagnostics) { + diagnosticsWithLocation.push(attachFileToDiagnostic(diagnostic, file)); + } + return diagnosticsWithLocation; +} +function createFileDiagnostic(file, start, length2, message, ...args) { + assertDiagnosticLocation(file.text, start, length2); + let text = getLocaleSpecificMessage(message); + if (some(args)) { + text = formatStringFromArgs(text, args); + } + return { + file, + start, + length: length2, + messageText: text, + category: message.category, + code: message.code, + reportsUnnecessary: message.reportsUnnecessary, + reportsDeprecated: message.reportsDeprecated + }; +} +function formatMessage(message, ...args) { + let text = getLocaleSpecificMessage(message); + if (some(args)) { + text = formatStringFromArgs(text, args); + } + return text; +} +function createCompilerDiagnostic(message, ...args) { + let text = getLocaleSpecificMessage(message); + if (some(args)) { + text = formatStringFromArgs(text, args); + } + return { + file: void 0, + start: void 0, + length: void 0, + messageText: text, + category: message.category, + code: message.code, + reportsUnnecessary: message.reportsUnnecessary, + reportsDeprecated: message.reportsDeprecated + }; +} +function createCompilerDiagnosticFromMessageChain(chain, relatedInformation) { + return { + file: void 0, + start: void 0, + length: void 0, + code: chain.code, + category: chain.category, + messageText: chain.next ? chain : chain.messageText, + relatedInformation + }; +} +function chainDiagnosticMessages(details, message, ...args) { + let text = getLocaleSpecificMessage(message); + if (some(args)) { + text = formatStringFromArgs(text, args); + } + return { + messageText: text, + category: message.category, + code: message.code, + next: details === void 0 || Array.isArray(details) ? details : [details] + }; +} +function concatenateDiagnosticMessageChains(headChain, tailChain) { + let lastChain = headChain; + while (lastChain.next) { + lastChain = lastChain.next[0]; + } + lastChain.next = [tailChain]; +} +function getDiagnosticFilePath(diagnostic) { + return diagnostic.file ? diagnostic.file.path : void 0; +} +function compareDiagnostics(d1, d2) { + return compareDiagnosticsSkipRelatedInformation(d1, d2) || compareRelatedInformation(d1, d2) || 0 /* EqualTo */; +} +function compareDiagnosticsSkipRelatedInformation(d1, d2) { + const code1 = getDiagnosticCode(d1); + const code2 = getDiagnosticCode(d2); + return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) || compareValues(d1.start, d2.start) || compareValues(d1.length, d2.length) || compareValues(code1, code2) || compareMessageText(d1, d2) || 0 /* EqualTo */; +} +function compareRelatedInformation(d1, d2) { + if (!d1.relatedInformation && !d2.relatedInformation) { + return 0 /* EqualTo */; + } + if (d1.relatedInformation && d2.relatedInformation) { + return compareValues(d2.relatedInformation.length, d1.relatedInformation.length) || forEach(d1.relatedInformation, (d1i, index) => { + const d2i = d2.relatedInformation[index]; + return compareDiagnostics(d1i, d2i); + }) || 0 /* EqualTo */; + } + return d1.relatedInformation ? -1 /* LessThan */ : 1 /* GreaterThan */; +} +function compareMessageText(d1, d2) { + let headMsg1 = getDiagnosticMessage(d1); + let headMsg2 = getDiagnosticMessage(d2); + if (typeof headMsg1 !== "string") { + headMsg1 = headMsg1.messageText; + } + if (typeof headMsg2 !== "string") { + headMsg2 = headMsg2.messageText; + } + const chain1 = typeof d1.messageText !== "string" ? d1.messageText.next : void 0; + const chain2 = typeof d2.messageText !== "string" ? d2.messageText.next : void 0; + let res = compareStringsCaseSensitive(headMsg1, headMsg2); + if (res) { + return res; + } + res = compareMessageChain(chain1, chain2); + if (res) { + return res; + } + if (d1.canonicalHead && !d2.canonicalHead) { + return -1 /* LessThan */; + } + if (d2.canonicalHead && !d1.canonicalHead) { + return 1 /* GreaterThan */; + } + return 0 /* EqualTo */; +} +function compareMessageChain(c1, c2) { + if (c1 === void 0 && c2 === void 0) { + return 0 /* EqualTo */; + } + if (c1 === void 0) { + return 1 /* GreaterThan */; + } + if (c2 === void 0) { + return -1 /* LessThan */; + } + return compareMessageChainSize(c1, c2) || compareMessageChainContent(c1, c2); +} +function compareMessageChainSize(c1, c2) { + if (c1 === void 0 && c2 === void 0) { + return 0 /* EqualTo */; + } + if (c1 === void 0) { + return 1 /* GreaterThan */; + } + if (c2 === void 0) { + return -1 /* LessThan */; + } + let res = compareValues(c2.length, c1.length); + if (res) { + return res; + } + for (let i = 0; i < c2.length; i++) { + res = compareMessageChainSize(c1[i].next, c2[i].next); + if (res) { + return res; + } + } + return 0 /* EqualTo */; +} +function compareMessageChainContent(c1, c2) { + let res; + for (let i = 0; i < c2.length; i++) { + res = compareStringsCaseSensitive(c1[i].messageText, c2[i].messageText); + if (res) { + return res; + } + if (c1[i].next === void 0) { + continue; + } + res = compareMessageChainContent(c1[i].next, c2[i].next); + if (res) { + return res; + } + } + return 0 /* EqualTo */; +} +function diagnosticsEqualityComparer(d1, d2) { + const code1 = getDiagnosticCode(d1); + const code2 = getDiagnosticCode(d2); + const msg1 = getDiagnosticMessage(d1); + const msg2 = getDiagnosticMessage(d2); + return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) === 0 /* EqualTo */ && compareValues(d1.start, d2.start) === 0 /* EqualTo */ && compareValues(d1.length, d2.length) === 0 /* EqualTo */ && compareValues(code1, code2) === 0 /* EqualTo */ && messageTextEqualityComparer(msg1, msg2); +} +function getDiagnosticCode(d) { + var _a; + return ((_a = d.canonicalHead) == null ? void 0 : _a.code) || d.code; +} +function getDiagnosticMessage(d) { + var _a; + return ((_a = d.canonicalHead) == null ? void 0 : _a.messageText) || d.messageText; +} +function messageTextEqualityComparer(m1, m2) { + const t1 = typeof m1 === "string" ? m1 : m1.messageText; + const t2 = typeof m2 === "string" ? m2 : m2.messageText; + return compareStringsCaseSensitive(t1, t2) === 0 /* EqualTo */; +} +function getLanguageVariant(scriptKind) { + return scriptKind === 4 /* TSX */ || scriptKind === 2 /* JSX */ || scriptKind === 1 /* JS */ || scriptKind === 6 /* JSON */ ? 1 /* JSX */ : 0 /* Standard */; +} +function walkTreeForJSXTags(node) { + if (!(node.transformFlags & 2 /* ContainsJsx */)) return void 0; + return isJsxOpeningLikeElement(node) || isJsxFragment(node) ? node : forEachChild(node, walkTreeForJSXTags); +} +function isFileModuleFromUsingJSXTag(file) { + return !file.isDeclarationFile ? walkTreeForJSXTags(file) : void 0; +} +function isFileForcedToBeModuleByFormat(file) { + return (file.impliedNodeFormat === 99 /* ESNext */ || fileExtensionIsOneOf(file.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */, ".mjs" /* Mjs */, ".mts" /* Mts */])) && !file.isDeclarationFile ? true : void 0; +} +function getSetExternalModuleIndicator(options) { + switch (getEmitModuleDetectionKind(options)) { + case 3 /* Force */: + return (file) => { + file.externalModuleIndicator = isFileProbablyExternalModule(file) || !file.isDeclarationFile || void 0; + }; + case 1 /* Legacy */: + return (file) => { + file.externalModuleIndicator = isFileProbablyExternalModule(file); + }; + case 2 /* Auto */: + const checks = [isFileProbablyExternalModule]; + if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { + checks.push(isFileModuleFromUsingJSXTag); + } + checks.push(isFileForcedToBeModuleByFormat); + const combined = or(...checks); + const callback = (file) => void (file.externalModuleIndicator = combined(file)); + return callback; + } +} +function createComputedCompilerOptions(options) { + return options; +} +var computedOptions = createComputedCompilerOptions({ + target: { + dependencies: ["module"], + computeValue: (compilerOptions) => { + const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target; + return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */); + } + }, + module: { + dependencies: ["target"], + computeValue: (compilerOptions) => { + return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */; + } + }, + moduleResolution: { + dependencies: ["module", "target"], + computeValue: (compilerOptions) => { + let moduleResolution = compilerOptions.moduleResolution; + if (moduleResolution === void 0) { + switch (computedOptions.module.computeValue(compilerOptions)) { + case 1 /* CommonJS */: + moduleResolution = 2 /* Node10 */; + break; + case 100 /* Node16 */: + moduleResolution = 3 /* Node16 */; + break; + case 199 /* NodeNext */: + moduleResolution = 99 /* NodeNext */; + break; + case 200 /* Preserve */: + moduleResolution = 100 /* Bundler */; + break; + default: + moduleResolution = 1 /* Classic */; + break; + } + } + return moduleResolution; + } + }, + moduleDetection: { + dependencies: ["module", "target"], + computeValue: (compilerOptions) => { + return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */); + } + }, + isolatedModules: { + dependencies: ["verbatimModuleSyntax"], + computeValue: (compilerOptions) => { + return !!(compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax); + } + }, + esModuleInterop: { + dependencies: ["module", "target"], + computeValue: (compilerOptions) => { + if (compilerOptions.esModuleInterop !== void 0) { + return compilerOptions.esModuleInterop; + } + switch (computedOptions.module.computeValue(compilerOptions)) { + case 100 /* Node16 */: + case 199 /* NodeNext */: + case 200 /* Preserve */: + return true; + } + return false; + } + }, + allowSyntheticDefaultImports: { + dependencies: ["module", "target", "moduleResolution"], + computeValue: (compilerOptions) => { + if (compilerOptions.allowSyntheticDefaultImports !== void 0) { + return compilerOptions.allowSyntheticDefaultImports; + } + return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; + } + }, + resolvePackageJsonExports: { + dependencies: ["moduleResolution"], + computeValue: (compilerOptions) => { + const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions); + if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + return false; + } + if (compilerOptions.resolvePackageJsonExports !== void 0) { + return compilerOptions.resolvePackageJsonExports; + } + switch (moduleResolution) { + case 3 /* Node16 */: + case 99 /* NodeNext */: + case 100 /* Bundler */: + return true; + } + return false; + } + }, + resolvePackageJsonImports: { + dependencies: ["moduleResolution", "resolvePackageJsonExports"], + computeValue: (compilerOptions) => { + const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions); + if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + return false; + } + if (compilerOptions.resolvePackageJsonExports !== void 0) { + return compilerOptions.resolvePackageJsonExports; + } + switch (moduleResolution) { + case 3 /* Node16 */: + case 99 /* NodeNext */: + case 100 /* Bundler */: + return true; + } + return false; + } + }, + resolveJsonModule: { + dependencies: ["moduleResolution", "module", "target"], + computeValue: (compilerOptions) => { + if (compilerOptions.resolveJsonModule !== void 0) { + return compilerOptions.resolveJsonModule; + } + return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; + } + }, + declaration: { + dependencies: ["composite"], + computeValue: (compilerOptions) => { + return !!(compilerOptions.declaration || compilerOptions.composite); + } + }, + preserveConstEnums: { + dependencies: ["isolatedModules", "verbatimModuleSyntax"], + computeValue: (compilerOptions) => { + return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions)); + } + }, + incremental: { + dependencies: ["composite"], + computeValue: (compilerOptions) => { + return !!(compilerOptions.incremental || compilerOptions.composite); + } + }, + declarationMap: { + dependencies: ["declaration", "composite"], + computeValue: (compilerOptions) => { + return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions)); + } + }, + allowJs: { + dependencies: ["checkJs"], + computeValue: (compilerOptions) => { + return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs; + } + }, + useDefineForClassFields: { + dependencies: ["target", "module"], + computeValue: (compilerOptions) => { + return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; + } + }, + noImplicitAny: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "noImplicitAny"); + } + }, + noImplicitThis: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "noImplicitThis"); + } + }, + strictNullChecks: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "strictNullChecks"); + } + }, + strictFunctionTypes: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "strictFunctionTypes"); + } + }, + strictBindCallApply: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "strictBindCallApply"); + } + }, + strictPropertyInitialization: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); + } + }, + alwaysStrict: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "alwaysStrict"); + } + }, + useUnknownInCatchVariables: { + dependencies: ["strict"], + computeValue: (compilerOptions) => { + return getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables"); + } + } +}); +var getEmitScriptTarget = computedOptions.target.computeValue; +var getEmitModuleKind = computedOptions.module.computeValue; +var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue; +var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue; +var getIsolatedModules = computedOptions.isolatedModules.computeValue; +var getESModuleInterop = computedOptions.esModuleInterop.computeValue; +var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue; +var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue; +var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue; +var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue; +var getEmitDeclarations = computedOptions.declaration.computeValue; +var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue; +var isIncrementalCompilation = computedOptions.incremental.computeValue; +var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue; +var getAllowJSCompilerOption = computedOptions.allowJs.computeValue; +var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue; +function emitModuleKindIsNonNodeESM(moduleKind) { + return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */; +} +function hasJsonModuleEmitEnabled(options) { + switch (getEmitModuleKind(options)) { + case 0 /* None */: + case 4 /* System */: + case 3 /* UMD */: + return false; + } + return true; +} +function unreachableCodeIsError(options) { + return options.allowUnreachableCode === false; +} +function unusedLabelIsError(options) { + return options.allowUnusedLabels === false; +} +function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) { + return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */; +} +function getStrictOptionValue(compilerOptions, flag) { + return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag]; +} +function getNameOfScriptTarget(scriptTarget) { + return forEachEntry(targetOptionDeclaration.type, (value, key) => value === scriptTarget ? key : void 0); +} +function getEmitStandardClassFields(compilerOptions) { + return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */; +} +function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) { + return optionsHaveChanges(oldOptions, newOptions, semanticDiagnosticsOptionDeclarations); +} +function compilerOptionsAffectEmit(newOptions, oldOptions) { + return optionsHaveChanges(oldOptions, newOptions, affectsEmitOptionDeclarations); +} +function compilerOptionsAffectDeclarationPath(newOptions, oldOptions) { + return optionsHaveChanges(oldOptions, newOptions, affectsDeclarationPathOptionDeclarations); +} +function getCompilerOptionValue(options, option) { + return option.strictFlag ? getStrictOptionValue(options, option.name) : option.allowJsFlag ? getAllowJSCompilerOption(options) : options[option.name]; +} +function getJSXTransformEnabled(options) { + const jsx = options.jsx; + return jsx === 2 /* React */ || jsx === 4 /* ReactJSX */ || jsx === 5 /* ReactJSXDev */; +} +function getJSXImplicitImportBase(compilerOptions, file) { + const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get("jsximportsource"); + const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas; + return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0; +} +function getJSXRuntimeImport(base, options) { + return base ? `${base}/${options.jsx === 5 /* ReactJSXDev */ ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0; +} +function hasZeroOrOneAsteriskCharacter(str) { + let seenAsterisk = false; + for (let i = 0; i < str.length; i++) { + if (str.charCodeAt(i) === 42 /* asterisk */) { + if (!seenAsterisk) { + seenAsterisk = true; + } else { + return false; + } + } + } + return true; +} +function createSymlinkCache(cwd, getCanonicalFileName) { + let symlinkedDirectories; + let symlinkedDirectoriesByRealpath; + let symlinkedFiles; + let hasProcessedResolutions = false; + return { + getSymlinkedFiles: () => symlinkedFiles, + getSymlinkedDirectories: () => symlinkedDirectories, + getSymlinkedDirectoriesByRealpath: () => symlinkedDirectoriesByRealpath, + setSymlinkedFile: (path, real) => (symlinkedFiles || (symlinkedFiles = /* @__PURE__ */ new Map())).set(path, real), + setSymlinkedDirectory: (symlink, real) => { + let symlinkPath = toPath(symlink, cwd, getCanonicalFileName); + if (!containsIgnoredPath(symlinkPath)) { + symlinkPath = ensureTrailingDirectorySeparator(symlinkPath); + if (real !== false && !(symlinkedDirectories == null ? void 0 : symlinkedDirectories.has(symlinkPath))) { + (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = createMultiMap())).add(real.realPath, symlink); + } + (symlinkedDirectories || (symlinkedDirectories = /* @__PURE__ */ new Map())).set(symlinkPath, real); + } + }, + setSymlinksFromResolutions(forEachResolvedModule, forEachResolvedTypeReferenceDirective, typeReferenceDirectives) { + Debug.assert(!hasProcessedResolutions); + hasProcessedResolutions = true; + forEachResolvedModule((resolution) => processResolution(this, resolution.resolvedModule)); + forEachResolvedTypeReferenceDirective((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective)); + typeReferenceDirectives.forEach((resolution) => processResolution(this, resolution.resolvedTypeReferenceDirective)); + }, + hasProcessedResolutions: () => hasProcessedResolutions, + setSymlinksFromResolution(resolution) { + processResolution(this, resolution); + }, + hasAnySymlinks + }; + function hasAnySymlinks() { + return !!(symlinkedFiles == null ? void 0 : symlinkedFiles.size) || !!symlinkedDirectories && !!forEachEntry(symlinkedDirectories, (value) => !!value); + } + function processResolution(cache, resolution) { + if (!resolution || !resolution.originalPath || !resolution.resolvedFileName) return; + const { resolvedFileName, originalPath } = resolution; + cache.setSymlinkedFile(toPath(originalPath, cwd, getCanonicalFileName), resolvedFileName); + const [commonResolved, commonOriginal] = guessDirectorySymlink(resolvedFileName, originalPath, cwd, getCanonicalFileName) || emptyArray; + if (commonResolved && commonOriginal) { + cache.setSymlinkedDirectory( + commonOriginal, + { + real: ensureTrailingDirectorySeparator(commonResolved), + realPath: ensureTrailingDirectorySeparator(toPath(commonResolved, cwd, getCanonicalFileName)) + } + ); + } + } +} +function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) { + const aParts = getPathComponents(getNormalizedAbsolutePath(a, cwd)); + const bParts = getPathComponents(getNormalizedAbsolutePath(b, cwd)); + let isDirectory = false; + while (aParts.length >= 2 && bParts.length >= 2 && !isNodeModulesOrScopedPackageDirectory(aParts[aParts.length - 2], getCanonicalFileName) && !isNodeModulesOrScopedPackageDirectory(bParts[bParts.length - 2], getCanonicalFileName) && getCanonicalFileName(aParts[aParts.length - 1]) === getCanonicalFileName(bParts[bParts.length - 1])) { + aParts.pop(); + bParts.pop(); + isDirectory = true; + } + return isDirectory ? [getPathFromPathComponents(aParts), getPathFromPathComponents(bParts)] : void 0; +} +function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) { + return s !== void 0 && (getCanonicalFileName(s) === "node_modules" || startsWith(s, "@")); +} +var reservedCharacterPattern = /[^\w\s/]/g; +var wildcardCharCodes = [42 /* asterisk */, 63 /* question */]; +var commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"]; +var implicitExcludePathRegexPattern = `(?!(${commonPackageFolders.join("|")})(/|$))`; +var filesMatcher = { + /** + * Matches any single directory segment unless it is the last segment and a .min.js file + * Breakdown: + * [^./] # matches everything up to the first . character (excluding directory separators) + * (\\.(?!min\\.js$))? # matches . characters but not if they are part of the .min.js file extension + */ + singleAsteriskRegexFragment: "([^./]|(\\.(?!min\\.js$))?)*", + /** + * Regex for the ** wildcard. Matches any number of subdirectories. When used for including + * files or directories, does not match subdirectories that start with a . character + */ + doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`, + replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment) +}; +var directoriesMatcher = { + singleAsteriskRegexFragment: "[^/]*", + /** + * Regex for the ** wildcard. Matches any number of subdirectories. When used for including + * files or directories, does not match subdirectories that start with a . character + */ + doubleAsteriskRegexFragment: `(/${implicitExcludePathRegexPattern}[^/.][^/]*)*?`, + replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment) +}; +var excludeMatcher = { + singleAsteriskRegexFragment: "[^/]*", + doubleAsteriskRegexFragment: "(/.+?)?", + replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment) +}; +var wildcardMatchers = { + files: filesMatcher, + directories: directoriesMatcher, + exclude: excludeMatcher +}; +function getRegularExpressionForWildcard(specs, basePath, usage) { + const patterns = getRegularExpressionsForWildcards(specs, basePath, usage); + if (!patterns || !patterns.length) { + return void 0; + } + const pattern = patterns.map((pattern2) => `(${pattern2})`).join("|"); + const terminator = usage === "exclude" ? "($|/)" : "$"; + return `^(${pattern})${terminator}`; +} +function getRegularExpressionsForWildcards(specs, basePath, usage) { + if (specs === void 0 || specs.length === 0) { + return void 0; + } + return flatMap(specs, (spec) => spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage])); +} +function isImplicitGlob(lastPathComponent) { + return !/[.*?]/.test(lastPathComponent); +} +function getPatternFromSpec(spec, basePath, usage) { + const pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]); + return pattern && `^(${pattern})${usage === "exclude" ? "($|/)" : "$"}`; +} +function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragment, doubleAsteriskRegexFragment, replaceWildcardCharacter: replaceWildcardCharacter2 } = wildcardMatchers[usage]) { + let subpattern = ""; + let hasWrittenComponent = false; + const components = getNormalizedPathComponents(spec, basePath); + const lastComponent = last(components); + if (usage !== "exclude" && lastComponent === "**") { + return void 0; + } + components[0] = removeTrailingDirectorySeparator(components[0]); + if (isImplicitGlob(lastComponent)) { + components.push("**", "*"); + } + let optionalCount = 0; + for (let component of components) { + if (component === "**") { + subpattern += doubleAsteriskRegexFragment; + } else { + if (usage === "directories") { + subpattern += "("; + optionalCount++; + } + if (hasWrittenComponent) { + subpattern += directorySeparator; + } + if (usage !== "exclude") { + let componentPattern = ""; + if (component.charCodeAt(0) === 42 /* asterisk */) { + componentPattern += "([^./]" + singleAsteriskRegexFragment + ")?"; + component = component.substr(1); + } else if (component.charCodeAt(0) === 63 /* question */) { + componentPattern += "[^./]"; + component = component.substr(1); + } + componentPattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2); + if (componentPattern !== component) { + subpattern += implicitExcludePathRegexPattern; + } + subpattern += componentPattern; + } else { + subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter2); + } + } + hasWrittenComponent = true; + } + while (optionalCount > 0) { + subpattern += ")?"; + optionalCount--; + } + return subpattern; +} +function replaceWildcardCharacter(match, singleAsteriskRegexFragment) { + return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match; +} +function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) { + path = normalizePath(path); + currentDirectory = normalizePath(currentDirectory); + const absolutePath = combinePaths(currentDirectory, path); + return { + includeFilePatterns: map(getRegularExpressionsForWildcards(includes, absolutePath, "files"), (pattern) => `^${pattern}$`), + includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"), + includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"), + excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"), + basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2) + }; +} +function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) { + return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i"); +} +function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) { + path = normalizePath(path); + currentDirectory = normalizePath(currentDirectory); + const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory); + const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2)); + const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2); + const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2); + const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]]; + const visited = /* @__PURE__ */ new Map(); + const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2); + for (const basePath of patterns.basePaths) { + visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth); + } + return flatten(results); + function visitDirectory(path2, absolutePath, depth2) { + const canonicalPath = toCanonical(realpath(absolutePath)); + if (visited.has(canonicalPath)) return; + visited.set(canonicalPath, true); + const { files, directories } = getFileSystemEntries(path2); + for (const current of sort(files, compareStringsCaseSensitive)) { + const name = combinePaths(path2, current); + const absoluteName = combinePaths(absolutePath, current); + if (extensions && !fileExtensionIsOneOf(name, extensions)) continue; + if (excludeRegex && excludeRegex.test(absoluteName)) continue; + if (!includeFileRegexes) { + results[0].push(name); + } else { + const includeIndex = findIndex(includeFileRegexes, (re) => re.test(absoluteName)); + if (includeIndex !== -1) { + results[includeIndex].push(name); + } + } + } + if (depth2 !== void 0) { + depth2--; + if (depth2 === 0) { + return; + } + } + for (const current of sort(directories, compareStringsCaseSensitive)) { + const name = combinePaths(path2, current); + const absoluteName = combinePaths(absolutePath, current); + if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) && (!excludeRegex || !excludeRegex.test(absoluteName))) { + visitDirectory(name, absoluteName, depth2); + } + } + } +} +function getBasePaths(path, includes, useCaseSensitiveFileNames2) { + const basePaths = [path]; + if (includes) { + const includeBasePaths = []; + for (const include of includes) { + const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include)); + includeBasePaths.push(getIncludeBasePath(absolute)); + } + includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2)); + for (const includeBasePath of includeBasePaths) { + if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) { + basePaths.push(includeBasePath); + } + } + } + return basePaths; +} +function getIncludeBasePath(absolute) { + const wildcardOffset = indexOfAnyCharCode(absolute, wildcardCharCodes); + if (wildcardOffset < 0) { + return !hasExtension(absolute) ? absolute : removeTrailingDirectorySeparator(getDirectoryPath(absolute)); + } + return absolute.substring(0, absolute.lastIndexOf(directorySeparator, wildcardOffset)); +} +function ensureScriptKind(fileName, scriptKind) { + return scriptKind || getScriptKindFromFileName(fileName) || 3 /* TS */; +} +function getScriptKindFromFileName(fileName) { + const ext = fileName.substr(fileName.lastIndexOf(".")); + switch (ext.toLowerCase()) { + case ".js" /* Js */: + case ".cjs" /* Cjs */: + case ".mjs" /* Mjs */: + return 1 /* JS */; + case ".jsx" /* Jsx */: + return 2 /* JSX */; + case ".ts" /* Ts */: + case ".cts" /* Cts */: + case ".mts" /* Mts */: + return 3 /* TS */; + case ".tsx" /* Tsx */: + return 4 /* TSX */; + case ".json" /* Json */: + return 6 /* JSON */; + default: + return 0 /* Unknown */; + } +} +var supportedTSExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */], [".cts" /* Cts */, ".d.cts" /* Dcts */], [".mts" /* Mts */, ".d.mts" /* Dmts */]]; +var supportedTSExtensionsFlat = flatten(supportedTSExtensions); +var supportedTSExtensionsWithJson = [...supportedTSExtensions, [".json" /* Json */]]; +var supportedTSExtensionsForExtractExtension = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */, ".cts" /* Cts */, ".mts" /* Mts */, ".ts" /* Ts */, ".tsx" /* Tsx */]; +var supportedJSExtensions = [[".js" /* Js */, ".jsx" /* Jsx */], [".mjs" /* Mjs */], [".cjs" /* Cjs */]]; +var supportedJSExtensionsFlat = flatten(supportedJSExtensions); +var allSupportedExtensions = [[".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */, ".js" /* Js */, ".jsx" /* Jsx */], [".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */], [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */]]; +var allSupportedExtensionsWithJson = [...allSupportedExtensions, [".json" /* Json */]]; +var supportedDeclarationExtensions = [".d.ts" /* Dts */, ".d.cts" /* Dcts */, ".d.mts" /* Dmts */]; +var supportedTSImplementationExtensions = [".ts" /* Ts */, ".cts" /* Cts */, ".mts" /* Mts */, ".tsx" /* Tsx */]; +var extensionsNotSupportingExtensionlessResolution = [".mts" /* Mts */, ".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".cts" /* Cts */, ".d.cts" /* Dcts */, ".cjs" /* Cjs */]; +function getSupportedExtensions(options, extraFileExtensions) { + const needJsExtensions = options && getAllowJSCompilerOption(options); + if (!extraFileExtensions || extraFileExtensions.length === 0) { + return needJsExtensions ? allSupportedExtensions : supportedTSExtensions; + } + const builtins = needJsExtensions ? allSupportedExtensions : supportedTSExtensions; + const flatBuiltins = flatten(builtins); + const extensions = [ + ...builtins, + ...mapDefined(extraFileExtensions, (x) => x.scriptKind === 7 /* Deferred */ || needJsExtensions && isJSLike(x.scriptKind) && !flatBuiltins.includes(x.extension) ? [x.extension] : void 0) + ]; + return extensions; +} +function getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions) { + if (!options || !getResolveJsonModule(options)) return supportedExtensions; + if (supportedExtensions === allSupportedExtensions) return allSupportedExtensionsWithJson; + if (supportedExtensions === supportedTSExtensions) return supportedTSExtensionsWithJson; + return [...supportedExtensions, [".json" /* Json */]]; +} +function isJSLike(scriptKind) { + return scriptKind === 1 /* JS */ || scriptKind === 2 /* JSX */; +} +function hasJSFileExtension(fileName) { + return some(supportedJSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension)); +} +function hasTSFileExtension(fileName) { + return some(supportedTSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension)); +} +function usesExtensionsOnImports({ imports }, hasExtension2 = or(hasJSFileExtension, hasTSFileExtension)) { + return firstDefined(imports, ({ text }) => pathIsRelative(text) && !fileExtensionIsOneOf(text, extensionsNotSupportingExtensionlessResolution) ? hasExtension2(text) : void 0) || false; +} +function getModuleSpecifierEndingPreference(preference, resolutionMode, compilerOptions, sourceFile) { + const moduleResolution = getEmitModuleResolutionKind(compilerOptions); + const moduleResolutionIsNodeNext = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */; + if (preference === "js" || resolutionMode === 99 /* ESNext */ && moduleResolutionIsNodeNext) { + if (!shouldAllowImportingTsExtension(compilerOptions)) { + return 2 /* JsExtension */; + } + return inferPreference() !== 2 /* JsExtension */ ? 3 /* TsExtension */ : 2 /* JsExtension */; + } + if (preference === "minimal") { + return 0 /* Minimal */; + } + if (preference === "index") { + return 1 /* Index */; + } + if (!shouldAllowImportingTsExtension(compilerOptions)) { + return sourceFile && usesExtensionsOnImports(sourceFile) ? 2 /* JsExtension */ : 0 /* Minimal */; + } + return inferPreference(); + function inferPreference() { + let usesJsExtensions = false; + const specifiers = (sourceFile == null ? void 0 : sourceFile.imports.length) ? sourceFile.imports : sourceFile && isSourceFileJS(sourceFile) ? getRequiresAtTopOfFile(sourceFile).map((r) => r.arguments[0]) : emptyArray; + for (const specifier of specifiers) { + if (pathIsRelative(specifier.text)) { + if (moduleResolutionIsNodeNext && resolutionMode === 1 /* CommonJS */ && getModeForUsageLocation(sourceFile, specifier, compilerOptions) === 99 /* ESNext */) { + continue; + } + if (fileExtensionIsOneOf(specifier.text, extensionsNotSupportingExtensionlessResolution)) { + continue; + } + if (hasTSFileExtension(specifier.text)) { + return 3 /* TsExtension */; + } + if (hasJSFileExtension(specifier.text)) { + usesJsExtensions = true; + } + } + } + return usesJsExtensions ? 2 /* JsExtension */ : 0 /* Minimal */; + } +} +function getRequiresAtTopOfFile(sourceFile) { + let nonRequireStatementCount = 0; + let requires; + for (const statement of sourceFile.statements) { + if (nonRequireStatementCount > 3) { + break; + } + if (isRequireVariableStatement(statement)) { + requires = concatenate(requires, statement.declarationList.declarations.map((d) => d.initializer)); + } else if (isExpressionStatement(statement) && isRequireCall( + statement.expression, + /*requireStringLiteralLikeArgument*/ + true + )) { + requires = append(requires, statement.expression); + } else { + nonRequireStatementCount++; + } + } + return requires || emptyArray; +} +function isSupportedSourceFileName(fileName, compilerOptions, extraFileExtensions) { + if (!fileName) return false; + const supportedExtensions = getSupportedExtensions(compilerOptions, extraFileExtensions); + for (const extension of flatten(getSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions, supportedExtensions))) { + if (fileExtensionIs(fileName, extension)) { + return true; + } + } + return false; +} +function numberOfDirectorySeparators(str) { + const match = str.match(/\//g); + return match ? match.length : 0; +} +function compareNumberOfDirectorySeparators(path1, path2) { + return compareValues( + numberOfDirectorySeparators(path1), + numberOfDirectorySeparators(path2) + ); +} +var extensionsToRemove = [".d.ts" /* Dts */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".mjs" /* Mjs */, ".mts" /* Mts */, ".cjs" /* Cjs */, ".cts" /* Cts */, ".ts" /* Ts */, ".js" /* Js */, ".tsx" /* Tsx */, ".jsx" /* Jsx */, ".json" /* Json */]; +function removeFileExtension(path) { + for (const ext of extensionsToRemove) { + const extensionless = tryRemoveExtension(path, ext); + if (extensionless !== void 0) { + return extensionless; + } + } + return path; +} +function tryRemoveExtension(path, extension) { + return fileExtensionIs(path, extension) ? removeExtension(path, extension) : void 0; +} +function removeExtension(path, extension) { + return path.substring(0, path.length - extension.length); +} +function changeExtension(path, newExtension) { + return changeAnyExtension( + path, + newExtension, + extensionsToRemove, + /*ignoreCase*/ + false + ); +} +function tryParsePattern(pattern) { + const indexOfStar = pattern.indexOf("*"); + if (indexOfStar === -1) { + return pattern; + } + return pattern.indexOf("*", indexOfStar + 1) !== -1 ? void 0 : { + prefix: pattern.substr(0, indexOfStar), + suffix: pattern.substr(indexOfStar + 1) + }; +} +function tryParsePatterns(paths) { + return mapDefined(getOwnKeys(paths), (path) => tryParsePattern(path)); +} +function positionIsSynthesized(pos) { + return !(pos >= 0); +} +function extensionIsTS(ext) { + return ext === ".ts" /* Ts */ || ext === ".tsx" /* Tsx */ || ext === ".d.ts" /* Dts */ || ext === ".cts" /* Cts */ || ext === ".mts" /* Mts */ || ext === ".d.mts" /* Dmts */ || ext === ".d.cts" /* Dcts */ || startsWith(ext, ".d.") && endsWith(ext, ".ts"); +} +function resolutionExtensionIsTSOrJson(ext) { + return extensionIsTS(ext) || ext === ".json" /* Json */; +} +function extensionFromPath(path) { + const ext = tryGetExtensionFromPath2(path); + return ext !== void 0 ? ext : Debug.fail(`File ${path} has unknown extension.`); +} +function tryGetExtensionFromPath2(path) { + return find(extensionsToRemove, (e) => fileExtensionIs(path, e)); +} +function isCheckJsEnabledForFile(sourceFile, compilerOptions) { + return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs; +} +var emptyFileSystemEntries = { + files: emptyArray, + directories: emptyArray +}; +function matchPatternOrExact(patternOrStrings, candidate) { + const patterns = []; + for (const patternOrString of patternOrStrings) { + if (patternOrString === candidate) { + return candidate; + } + if (!isString(patternOrString)) { + patterns.push(patternOrString); + } + } + return findBestPatternMatch(patterns, (_) => _, candidate); +} +function sliceAfter(arr, value) { + const index = arr.indexOf(value); + Debug.assert(index !== -1); + return arr.slice(index); +} +function addRelatedInfo(diagnostic, ...relatedInformation) { + if (!relatedInformation.length) { + return diagnostic; + } + if (!diagnostic.relatedInformation) { + diagnostic.relatedInformation = []; + } + Debug.assert(diagnostic.relatedInformation !== emptyArray, "Diagnostic had empty array singleton for related info, but is still being constructed!"); + diagnostic.relatedInformation.push(...relatedInformation); + return diagnostic; +} +function minAndMax(arr, getValue) { + Debug.assert(arr.length !== 0); + let min2 = getValue(arr[0]); + let max = min2; + for (let i = 1; i < arr.length; i++) { + const value = getValue(arr[i]); + if (value < min2) { + min2 = value; + } else if (value > max) { + max = value; + } + } + return { min: min2, max }; +} +function rangeOfNode(node) { + return { pos: getTokenPosOfNode(node), end: node.end }; +} +function rangeOfTypeParameters(sourceFile, typeParameters) { + const pos = typeParameters.pos - 1; + const end = Math.min(sourceFile.text.length, skipTrivia(sourceFile.text, typeParameters.end) + 1); + return { pos, end }; +} +function skipTypeChecking(sourceFile, options, host) { + return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnsotics(sourceFile, options); +} +function canIncludeBindAndCheckDiagnsotics(sourceFile, options) { + if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false; + if (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */ || sourceFile.scriptKind === 5 /* External */) return true; + const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; + const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options); + const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); + return isPlainJs || isCheckJs || sourceFile.scriptKind === 7 /* Deferred */; +} +function isJsonEqual(a, b) { + return a === b || typeof a === "object" && a !== null && typeof b === "object" && b !== null && equalOwnProperties(a, b, isJsonEqual); +} +function parsePseudoBigInt(stringValue) { + let log2Base; + switch (stringValue.charCodeAt(1)) { + case 98 /* b */: + case 66 /* B */: + log2Base = 1; + break; + case 111 /* o */: + case 79 /* O */: + log2Base = 3; + break; + case 120 /* x */: + case 88 /* X */: + log2Base = 4; + break; + default: + const nIndex = stringValue.length - 1; + let nonZeroStart = 0; + while (stringValue.charCodeAt(nonZeroStart) === 48 /* _0 */) { + nonZeroStart++; + } + return stringValue.slice(nonZeroStart, nIndex) || "0"; + } + const startIndex = 2, endIndex = stringValue.length - 1; + const bitsNeeded = (endIndex - startIndex) * log2Base; + const segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0)); + for (let i = endIndex - 1, bitOffset = 0; i >= startIndex; i--, bitOffset += log2Base) { + const segment = bitOffset >>> 4; + const digitChar = stringValue.charCodeAt(i); + const digit = digitChar <= 57 /* _9 */ ? digitChar - 48 /* _0 */ : 10 + digitChar - (digitChar <= 70 /* F */ ? 65 /* A */ : 97 /* a */); + const shiftedDigit = digit << (bitOffset & 15); + segments[segment] |= shiftedDigit; + const residual = shiftedDigit >>> 16; + if (residual) segments[segment + 1] |= residual; + } + let base10Value = ""; + let firstNonzeroSegment = segments.length - 1; + let segmentsRemaining = true; + while (segmentsRemaining) { + let mod10 = 0; + segmentsRemaining = false; + for (let segment = firstNonzeroSegment; segment >= 0; segment--) { + const newSegment = mod10 << 16 | segments[segment]; + const segmentValue = newSegment / 10 | 0; + segments[segment] = segmentValue; + mod10 = newSegment - segmentValue * 10; + if (segmentValue && !segmentsRemaining) { + firstNonzeroSegment = segment; + segmentsRemaining = true; + } + } + base10Value = mod10 + base10Value; + } + return base10Value; +} +function pseudoBigIntToString({ negative, base10Value }) { + return (negative && base10Value !== "0" ? "-" : "") + base10Value; +} +function parseValidBigInt(text) { + const negative = text.startsWith("-"); + const base10Value = parsePseudoBigInt(`${negative ? text.slice(1) : text}n`); + return { negative, base10Value }; +} +function isValidBigIntString(s, roundTripOnly) { + if (s === "") return false; + const scanner = createScanner( + 99 /* ESNext */, + /*skipTrivia*/ + false + ); + let success = true; + scanner.setOnError(() => success = false); + scanner.setText(s + "n"); + let result = scanner.scan(); + const negative = result === 41 /* MinusToken */; + if (negative) { + result = scanner.scan(); + } + const flags = scanner.getTokenFlags(); + return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) })); +} +function isValidTypeOnlyAliasUseSite(useSite) { + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); +} +function isShorthandPropertyNameUseSite(useSite) { + return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; +} +function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) { + while (node.kind === 80 /* Identifier */ || node.kind === 211 /* PropertyAccessExpression */) { + node = node.parent; + } + if (node.kind !== 167 /* ComputedPropertyName */) { + return false; + } + if (hasSyntacticModifier(node.parent, 64 /* Abstract */)) { + return true; + } + const containerKind = node.parent.parent.kind; + return containerKind === 264 /* InterfaceDeclaration */ || containerKind === 187 /* TypeLiteral */; +} +function isIdentifierInNonEmittingHeritageClause(node) { + if (node.kind !== 80 /* Identifier */) return false; + const heritageClause = findAncestor(node.parent, (parent) => { + switch (parent.kind) { + case 298 /* HeritageClause */: + return true; + case 211 /* PropertyAccessExpression */: + case 233 /* ExpressionWithTypeArguments */: + return false; + default: + return "quit"; + } + }); + return (heritageClause == null ? void 0 : heritageClause.token) === 119 /* ImplementsKeyword */ || (heritageClause == null ? void 0 : heritageClause.parent.kind) === 264 /* InterfaceDeclaration */; +} +function isIdentifierTypeReference(node) { + return isTypeReferenceNode(node) && isIdentifier(node.typeName); +} +function arrayIsHomogeneous(array, comparer = equateValues) { + if (array.length < 2) return true; + const first2 = array[0]; + for (let i = 1, length2 = array.length; i < length2; i++) { + const target = array[i]; + if (!comparer(first2, target)) return false; + } + return true; +} +function setTextRangePos(range, pos) { + range.pos = pos; + return range; +} +function setTextRangeEnd(range, end) { + range.end = end; + return range; +} +function setTextRangePosEnd(range, pos, end) { + return setTextRangeEnd(setTextRangePos(range, pos), end); +} +function setTextRangePosWidth(range, pos, width) { + return setTextRangePosEnd(range, pos, pos + width); +} +function setNodeFlags(node, newFlags) { + if (node) { + node.flags = newFlags; + } + return node; +} +function setParent(child, parent) { + if (child && parent) { + child.parent = parent; + } + return child; +} +function setParentRecursive(rootNode, incremental) { + if (!rootNode) return rootNode; + forEachChildRecursively(rootNode, isJSDocNode(rootNode) ? bindParentToChildIgnoringJSDoc : bindParentToChild); + return rootNode; + function bindParentToChildIgnoringJSDoc(child, parent) { + if (incremental && child.parent === parent) { + return "skip"; + } + setParent(child, parent); + } + function bindJSDoc(child) { + if (hasJSDocNodes(child)) { + for (const doc of child.jsDoc) { + bindParentToChildIgnoringJSDoc(doc, child); + forEachChildRecursively(doc, bindParentToChildIgnoringJSDoc); + } + } + } + function bindParentToChild(child, parent) { + return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child); + } +} +function isPackedElement(node) { + return !isOmittedExpression(node); +} +function isPackedArrayLiteral(node) { + return isArrayLiteralExpression(node) && every(node.elements, isPackedElement); +} +function expressionResultIsUnused(node) { + Debug.assertIsDefined(node.parent); + while (true) { + const parent = node.parent; + if (isParenthesizedExpression(parent)) { + node = parent; + continue; + } + if (isExpressionStatement(parent) || isVoidExpression(parent) || isForStatement(parent) && (parent.initializer === node || parent.incrementor === node)) { + return true; + } + if (isCommaListExpression(parent)) { + if (node !== last(parent.elements)) return true; + node = parent; + continue; + } + if (isBinaryExpression(parent) && parent.operatorToken.kind === 28 /* CommaToken */) { + if (node === parent.left) return true; + node = parent; + continue; + } + return false; + } +} +function containsIgnoredPath(path) { + return some(ignoredPaths, (p) => path.includes(p)); +} +function getContainingNodeArray(node) { + if (!node.parent) return void 0; + switch (node.kind) { + case 168 /* TypeParameter */: + const { parent: parent2 } = node; + return parent2.kind === 195 /* InferType */ ? void 0 : parent2.typeParameters; + case 169 /* Parameter */: + return node.parent.parameters; + case 204 /* TemplateLiteralTypeSpan */: + return node.parent.templateSpans; + case 239 /* TemplateSpan */: + return node.parent.templateSpans; + case 170 /* Decorator */: { + const { parent: parent3 } = node; + return canHaveDecorators(parent3) ? parent3.modifiers : void 0; + } + case 298 /* HeritageClause */: + return node.parent.heritageClauses; + } + const { parent } = node; + if (isJSDocTag(node)) { + return isJSDocTypeLiteral(node.parent) ? void 0 : node.parent.tags; + } + switch (parent.kind) { + case 187 /* TypeLiteral */: + case 264 /* InterfaceDeclaration */: + return isTypeElement(node) ? parent.members : void 0; + case 192 /* UnionType */: + case 193 /* IntersectionType */: + return parent.types; + case 189 /* TupleType */: + case 209 /* ArrayLiteralExpression */: + case 355 /* CommaListExpression */: + case 275 /* NamedImports */: + case 279 /* NamedExports */: + return parent.elements; + case 210 /* ObjectLiteralExpression */: + case 292 /* JsxAttributes */: + return parent.properties; + case 213 /* CallExpression */: + case 214 /* NewExpression */: + return isTypeNode(node) ? parent.typeArguments : parent.expression === node ? void 0 : parent.arguments; + case 284 /* JsxElement */: + case 288 /* JsxFragment */: + return isJsxChild(node) ? parent.children : void 0; + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + return isTypeNode(node) ? parent.typeArguments : void 0; + case 241 /* Block */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 268 /* ModuleBlock */: + return parent.statements; + case 269 /* CaseBlock */: + return parent.clauses; + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return isClassElement(node) ? parent.members : void 0; + case 266 /* EnumDeclaration */: + return isEnumMember(node) ? parent.members : void 0; + case 307 /* SourceFile */: + return parent.statements; + } +} +function hasContextSensitiveParameters(node) { + if (!node.typeParameters) { + if (some(node.parameters, (p) => !getEffectiveTypeAnnotationNode(p))) { + return true; + } + if (node.kind !== 219 /* ArrowFunction */) { + const parameter = firstOrUndefined(node.parameters); + if (!(parameter && parameterIsThisKeyword(parameter))) { + return true; + } + } + } + return false; +} +function isInfinityOrNaNString(name) { + return name === "Infinity" || name === "-Infinity" || name === "NaN"; +} +function isCatchClauseVariableDeclaration(node) { + return node.kind === 260 /* VariableDeclaration */ && node.parent.kind === 299 /* CatchClause */; +} +function isFunctionExpressionOrArrowFunction(node) { + return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; +} +function isNumericLiteralName(name) { + return (+name).toString() === name; +} +function createPropertyNameNodeForIdentifierOrLiteral(name, target, singleQuote, stringNamed, isMethod) { + const isMethodNamedNew = isMethod && name === "new"; + return !isMethodNamedNew && isIdentifierText(name, target) ? factory.createIdentifier(name) : !stringNamed && !isMethodNamedNew && isNumericLiteralName(name) && +name >= 0 ? factory.createNumericLiteral(+name) : factory.createStringLiteral(name, !!singleQuote); +} +function isThisTypeParameter(type) { + return !!(type.flags & 262144 /* TypeParameter */ && type.isThisType); +} +function getNodeModulePathParts(fullPath) { + let topLevelNodeModulesIndex = 0; + let topLevelPackageNameIndex = 0; + let packageRootIndex = 0; + let fileNameIndex = 0; + let States; + ((States2) => { + States2[States2["BeforeNodeModules"] = 0] = "BeforeNodeModules"; + States2[States2["NodeModules"] = 1] = "NodeModules"; + States2[States2["Scope"] = 2] = "Scope"; + States2[States2["PackageContent"] = 3] = "PackageContent"; + })(States || (States = {})); + let partStart = 0; + let partEnd = 0; + let state = 0 /* BeforeNodeModules */; + while (partEnd >= 0) { + partStart = partEnd; + partEnd = fullPath.indexOf("/", partStart + 1); + switch (state) { + case 0 /* BeforeNodeModules */: + if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) { + topLevelNodeModulesIndex = partStart; + topLevelPackageNameIndex = partEnd; + state = 1 /* NodeModules */; + } + break; + case 1 /* NodeModules */: + case 2 /* Scope */: + if (state === 1 /* NodeModules */ && fullPath.charAt(partStart + 1) === "@") { + state = 2 /* Scope */; + } else { + packageRootIndex = partEnd; + state = 3 /* PackageContent */; + } + break; + case 3 /* PackageContent */: + if (fullPath.indexOf(nodeModulesPathPart, partStart) === partStart) { + state = 1 /* NodeModules */; + } else { + state = 3 /* PackageContent */; + } + break; + } + } + fileNameIndex = partStart; + return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : void 0; +} +function isTypeDeclaration(node) { + switch (node.kind) { + case 168 /* TypeParameter */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + return true; + case 273 /* ImportClause */: + return node.isTypeOnly; + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + return node.parent.parent.isTypeOnly; + default: + return false; + } +} +function canHaveExportModifier(node) { + return isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isTypeDeclaration(node) || isModuleDeclaration(node) && !isExternalModuleAugmentation(node) && !isGlobalScopeAugmentation(node); +} +function isOptionalJSDocPropertyLikeTag(node) { + if (!isJSDocPropertyLikeTag(node)) { + return false; + } + const { isBracketed, typeExpression } = node; + return isBracketed || !!typeExpression && typeExpression.type.kind === 316 /* JSDocOptionalType */; +} +function canUsePropertyAccess(name, languageVersion) { + if (name.length === 0) { + return false; + } + const firstChar = name.charCodeAt(0); + return firstChar === 35 /* hash */ ? name.length > 1 && isIdentifierStart(name.charCodeAt(1), languageVersion) : isIdentifierStart(firstChar, languageVersion); +} +function isJSDocOptionalParameter(node) { + return isInJSFile(node) && // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType + (node.type && node.type.kind === 316 /* JSDocOptionalType */ || getJSDocParameterTags(node).some(isOptionalJSDocPropertyLikeTag)); +} +function isOptionalDeclaration(declaration) { + switch (declaration.kind) { + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return !!declaration.questionToken; + case 169 /* Parameter */: + return !!declaration.questionToken || isJSDocOptionalParameter(declaration); + case 348 /* JSDocPropertyTag */: + case 341 /* JSDocParameterTag */: + return isOptionalJSDocPropertyLikeTag(declaration); + default: + return false; + } +} +function isNonNullAccess(node) { + const kind = node.kind; + return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && isNonNullExpression(node.expression); +} +function isJSDocSatisfiesExpression(node) { + return isInJSFile(node) && isParenthesizedExpression(node) && hasJSDocNodes(node) && !!getJSDocSatisfiesTag(node); +} +function getJSDocSatisfiesExpressionType(node) { + return Debug.checkDefined(tryGetJSDocSatisfiesTypeNode(node)); +} +function tryGetJSDocSatisfiesTypeNode(node) { + const tag = getJSDocSatisfiesTag(node); + return tag && tag.typeExpression && tag.typeExpression.type; +} +function getEscapedTextOfJsxAttributeName(node) { + return isIdentifier(node) ? node.escapedText : getEscapedTextOfJsxNamespacedName(node); +} +function getTextOfJsxAttributeName(node) { + return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); +} +function isJsxAttributeName(node) { + const kind = node.kind; + return kind === 80 /* Identifier */ || kind === 295 /* JsxNamespacedName */; +} +function getEscapedTextOfJsxNamespacedName(node) { + return `${node.namespace.escapedText}:${idText(node.name)}`; +} +function getTextOfJsxNamespacedName(node) { + return `${idText(node.namespace)}:${idText(node.name)}`; +} +function intrinsicTagNameToString(node) { + return isIdentifier(node) ? idText(node) : getTextOfJsxNamespacedName(node); +} +function isTypeUsableAsPropertyName(type) { + return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */); +} +function getPropertyNameFromType(type) { + if (type.flags & 8192 /* UniqueESSymbol */) { + return type.escapedName; + } + if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + return escapeLeadingUnderscores("" + type.value); + } + return Debug.fail(); +} +function isExpandoPropertyDeclaration(declaration) { + return !!declaration && (isPropertyAccessExpression(declaration) || isElementAccessExpression(declaration) || isBinaryExpression(declaration)); +} +function hasResolutionModeOverride(node) { + if (node === void 0) { + return false; + } + return !!getResolutionModeOverride(node.attributes); +} +var stringReplace = String.prototype.replace; +function replaceFirstStar(s, replacement) { + return stringReplace.call(s, "*", replacement); +} +function getNameFromImportAttribute(node) { + return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text); +} +function evaluatorResult(value, isSyntacticallyString = false, resolvedOtherFiles = false, hasExternalReferences = false) { + return { value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences }; +} +function createEvaluator({ evaluateElementAccessExpression, evaluateEntityNameExpression }) { + function evaluate(expr, location) { + let isSyntacticallyString = false; + let resolvedOtherFiles = false; + let hasExternalReferences = false; + expr = skipParentheses(expr); + switch (expr.kind) { + case 224 /* PrefixUnaryExpression */: + const result = evaluate(expr.operand, location); + resolvedOtherFiles = result.resolvedOtherFiles; + hasExternalReferences = result.hasExternalReferences; + if (typeof result.value === "number") { + switch (expr.operator) { + case 40 /* PlusToken */: + return evaluatorResult(result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 41 /* MinusToken */: + return evaluatorResult(-result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 55 /* TildeToken */: + return evaluatorResult(~result.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + } + } + break; + case 226 /* BinaryExpression */: { + const left = evaluate(expr.left, location); + const right = evaluate(expr.right, location); + isSyntacticallyString = (left.isSyntacticallyString || right.isSyntacticallyString) && expr.operatorToken.kind === 40 /* PlusToken */; + resolvedOtherFiles = left.resolvedOtherFiles || right.resolvedOtherFiles; + hasExternalReferences = left.hasExternalReferences || right.hasExternalReferences; + if (typeof left.value === "number" && typeof right.value === "number") { + switch (expr.operatorToken.kind) { + case 52 /* BarToken */: + return evaluatorResult(left.value | right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 51 /* AmpersandToken */: + return evaluatorResult(left.value & right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 49 /* GreaterThanGreaterThanToken */: + return evaluatorResult(left.value >> right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 50 /* GreaterThanGreaterThanGreaterThanToken */: + return evaluatorResult(left.value >>> right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 48 /* LessThanLessThanToken */: + return evaluatorResult(left.value << right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 53 /* CaretToken */: + return evaluatorResult(left.value ^ right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 42 /* AsteriskToken */: + return evaluatorResult(left.value * right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 44 /* SlashToken */: + return evaluatorResult(left.value / right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 40 /* PlusToken */: + return evaluatorResult(left.value + right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 41 /* MinusToken */: + return evaluatorResult(left.value - right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 45 /* PercentToken */: + return evaluatorResult(left.value % right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + case 43 /* AsteriskAsteriskToken */: + return evaluatorResult(left.value ** right.value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences); + } + } else if ((typeof left.value === "string" || typeof left.value === "number") && (typeof right.value === "string" || typeof right.value === "number") && expr.operatorToken.kind === 40 /* PlusToken */) { + return evaluatorResult( + "" + left.value + right.value, + isSyntacticallyString, + resolvedOtherFiles, + hasExternalReferences + ); + } + break; + } + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + return evaluatorResult( + expr.text, + /*isSyntacticallyString*/ + true + ); + case 228 /* TemplateExpression */: + return evaluateTemplateExpression(expr, location); + case 9 /* NumericLiteral */: + return evaluatorResult(+expr.text); + case 80 /* Identifier */: + return evaluateEntityNameExpression(expr, location); + case 211 /* PropertyAccessExpression */: + if (isEntityNameExpression(expr)) { + return evaluateEntityNameExpression(expr, location); + } + break; + case 212 /* ElementAccessExpression */: + return evaluateElementAccessExpression(expr, location); + } + return evaluatorResult( + /*value*/ + void 0, + isSyntacticallyString, + resolvedOtherFiles, + hasExternalReferences + ); + } + function evaluateTemplateExpression(expr, location) { + let result = expr.head.text; + let resolvedOtherFiles = false; + let hasExternalReferences = false; + for (const span of expr.templateSpans) { + const spanResult = evaluate(span.expression, location); + if (spanResult.value === void 0) { + return evaluatorResult( + /*value*/ + void 0, + /*isSyntacticallyString*/ + true + ); + } + result += spanResult.value; + result += span.literal.text; + resolvedOtherFiles || (resolvedOtherFiles = spanResult.resolvedOtherFiles); + hasExternalReferences || (hasExternalReferences = spanResult.hasExternalReferences); + } + return evaluatorResult( + result, + /*isSyntacticallyString*/ + true, + resolvedOtherFiles, + hasExternalReferences + ); + } + return evaluate; +} +function isConstAssertion(location) { + return isAssertionExpression(location) && isConstTypeReference(location.type) || isJSDocTypeTag(location) && isConstTypeReference(location.typeExpression); +} +function findConstructorDeclaration(node) { + const members = node.members; + for (const member of members) { + if (member.kind === 176 /* Constructor */ && nodeIsPresent(member.body)) { + return member; + } + } +} +function createNameResolver({ + compilerOptions, + requireSymbol, + argumentsSymbol, + error, + getSymbolOfDeclaration, + globals, + lookup, + setRequiresScopeChangeCache = returnUndefined, + getRequiresScopeChangeCache = returnUndefined, + onPropertyWithInvalidInitializer = returnFalse, + onFailedToResolveSymbol = returnUndefined, + onSuccessfullyResolvedSymbol = returnUndefined +}) { + var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); + var emptySymbols = createSymbolTable(); + return resolveNameHelper; + function resolveNameHelper(location, nameArg, meaning, nameNotFoundMessage, isUse, excludeGlobals) { + var _a, _b, _c; + const originalLocation = location; + let result; + let lastLocation; + let lastSelfReferenceLocation; + let propertyWithInvalidInitializer; + let associatedDeclarationForContainingInitializerOrBindingName; + let withinDeferredContext = false; + let grandparent; + const name = isString(nameArg) ? nameArg : nameArg.escapedText; + loop: + while (location) { + if (name === "const" && isConstAssertion(location)) { + return void 0; + } + if (isModuleOrEnumDeclaration(location) && lastLocation && location.name === lastLocation) { + lastLocation = location; + location = location.parent; + } + if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { + if (result = lookup(location.locals, name, meaning)) { + let useResult = true; + if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) { + if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 320 /* JSDoc */) { + useResult = result.flags & 262144 /* TypeParameter */ ? !!(lastLocation.flags & 16 /* Synthesized */) || // Synthetic fake scopes are added for signatures so type parameters are accessible from them + lastLocation === location.type || lastLocation.kind === 169 /* Parameter */ || lastLocation.kind === 341 /* JSDocParameterTag */ || lastLocation.kind === 342 /* JSDocReturnTag */ || lastLocation.kind === 168 /* TypeParameter */ : false; + } + if (meaning & result.flags & 3 /* Variable */) { + if (useOuterVariableScopeInParameter(result, location, lastLocation)) { + useResult = false; + } else if (result.flags & 1 /* FunctionScopedVariable */) { + useResult = lastLocation.kind === 169 /* Parameter */ || !!(lastLocation.flags & 16 /* Synthesized */) || // Synthetic fake scopes are added for signatures so parameters are accessible from them + lastLocation === location.type && !!findAncestor(result.valueDeclaration, isParameter); + } + } + } else if (location.kind === 194 /* ConditionalType */) { + useResult = lastLocation === location.trueType; + } + if (useResult) { + break loop; + } else { + result = void 0; + } + } + } + withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation); + switch (location.kind) { + case 307 /* SourceFile */: + if (!isExternalOrCommonJsModule(location)) break; + case 267 /* ModuleDeclaration */: + const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; + if (location.kind === 307 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { + if (result = moduleExports.get("default" /* Default */)) { + const localSymbol = getLocalSymbolForExportDefault(result); + if (localSymbol && result.flags & meaning && localSymbol.escapedName === name) { + break loop; + } + result = void 0; + } + const moduleExport = moduleExports.get(name); + if (moduleExport && moduleExport.flags === 2097152 /* Alias */ && (getDeclarationOfKind(moduleExport, 281 /* ExportSpecifier */) || getDeclarationOfKind(moduleExport, 280 /* NamespaceExport */))) { + break; + } + } + if (name !== "default" /* Default */ && (result = lookup(moduleExports, name, meaning & 2623475 /* ModuleMember */))) { + if (isSourceFile(location) && location.commonJsModuleIndicator && !((_b = result.declarations) == null ? void 0 : _b.some(isJSDocTypeAlias))) { + result = void 0; + } else { + break loop; + } + } + break; + case 266 /* EnumDeclaration */: + if (result = lookup(((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols, name, meaning & 8 /* EnumMember */)) { + if (nameNotFoundMessage && getIsolatedModules(compilerOptions) && !(location.flags & 33554432 /* Ambient */) && getSourceFileOfNode(location) !== getSourceFileOfNode(result.valueDeclaration)) { + error( + originalLocation, + Diagnostics.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead, + unescapeLeadingUnderscores(name), + isolatedModulesLikeFlagName, + `${unescapeLeadingUnderscores(getSymbolOfDeclaration(location).escapedName)}.${unescapeLeadingUnderscores(name)}` + ); + } + break loop; + } + break; + case 172 /* PropertyDeclaration */: + if (!isStatic(location)) { + const ctor = findConstructorDeclaration(location.parent); + if (ctor && ctor.locals) { + if (lookup(ctor.locals, name, meaning & 111551 /* Value */)) { + Debug.assertNode(location, isPropertyDeclaration); + propertyWithInvalidInitializer = location; + } + } + } + break; + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + if (result = lookup(getSymbolOfDeclaration(location).members || emptySymbols, name, meaning & 788968 /* Type */)) { + if (!isTypeParameterSymbolDeclaredInContainer(result, location)) { + result = void 0; + break; + } + if (lastLocation && isStatic(lastLocation)) { + if (nameNotFoundMessage) { + error(originalLocation, Diagnostics.Static_members_cannot_reference_class_type_parameters); + } + return void 0; + } + break loop; + } + if (isClassExpression(location) && meaning & 32 /* Class */) { + const className = location.name; + if (className && name === className.escapedText) { + result = location.symbol; + break loop; + } + } + break; + case 233 /* ExpressionWithTypeArguments */: + if (lastLocation === location.expression && location.parent.token === 96 /* ExtendsKeyword */) { + const container = location.parent.parent; + if (isClassLike(container) && (result = lookup(getSymbolOfDeclaration(container).members, name, meaning & 788968 /* Type */))) { + if (nameNotFoundMessage) { + error(originalLocation, Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters); + } + return void 0; + } + } + break; + case 167 /* ComputedPropertyName */: + grandparent = location.parent.parent; + if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { + if (result = lookup(getSymbolOfDeclaration(grandparent).members, name, meaning & 788968 /* Type */)) { + if (nameNotFoundMessage) { + error(originalLocation, Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type); + } + return void 0; + } + } + break; + case 219 /* ArrowFunction */: + if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { + break; + } + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + if (meaning & 3 /* Variable */ && name === "arguments") { + result = argumentsSymbol; + break loop; + } + break; + case 218 /* FunctionExpression */: + if (meaning & 3 /* Variable */ && name === "arguments") { + result = argumentsSymbol; + break loop; + } + if (meaning & 16 /* Function */) { + const functionName = location.name; + if (functionName && name === functionName.escapedText) { + result = location.symbol; + break loop; + } + } + break; + case 170 /* Decorator */: + if (location.parent && location.parent.kind === 169 /* Parameter */) { + location = location.parent; + } + if (location.parent && (isClassElement(location.parent) || location.parent.kind === 263 /* ClassDeclaration */)) { + location = location.parent; + } + break; + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + case 351 /* JSDocImportTag */: + const root = getJSDocRoot(location); + if (root) { + location = root.parent; + } + break; + case 169 /* Parameter */: + if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { + if (!associatedDeclarationForContainingInitializerOrBindingName) { + associatedDeclarationForContainingInitializerOrBindingName = location; + } + } + break; + case 208 /* BindingElement */: + if (lastLocation && (lastLocation === location.initializer || lastLocation === location.name && isBindingPattern(lastLocation))) { + if (isPartOfParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) { + associatedDeclarationForContainingInitializerOrBindingName = location; + } + } + break; + case 195 /* InferType */: + if (meaning & 262144 /* TypeParameter */) { + const parameterName = location.typeParameter.name; + if (parameterName && name === parameterName.escapedText) { + result = location.typeParameter.symbol; + break loop; + } + } + break; + case 281 /* ExportSpecifier */: + if (lastLocation && lastLocation === location.propertyName && location.parent.parent.moduleSpecifier) { + location = location.parent.parent.parent; + } + break; + } + if (isSelfReferenceLocation(location, lastLocation)) { + lastSelfReferenceLocation = location; + } + lastLocation = location; + location = isJSDocTemplateTag(location) ? getEffectiveContainerForJSDocTemplateTag(location) || location.parent : isJSDocParameterTag(location) || isJSDocReturnTag(location) ? getHostSignatureFromJSDoc(location) || location.parent : location.parent; + } + if (isUse && result && (!lastSelfReferenceLocation || result !== lastSelfReferenceLocation.symbol)) { + result.isReferenced |= meaning; + } + if (!result) { + if (lastLocation) { + Debug.assertNode(lastLocation, isSourceFile); + if (lastLocation.commonJsModuleIndicator && name === "exports" && meaning & lastLocation.symbol.flags) { + return lastLocation.symbol; + } + } + if (!excludeGlobals) { + result = lookup(globals, name, meaning); + } + } + if (!result) { + if (originalLocation && isInJSFile(originalLocation) && originalLocation.parent) { + if (isRequireCall( + originalLocation.parent, + /*requireStringLiteralLikeArgument*/ + false + )) { + return requireSymbol; + } + } + } + if (nameNotFoundMessage) { + if (propertyWithInvalidInitializer && onPropertyWithInvalidInitializer(originalLocation, name, propertyWithInvalidInitializer, result)) { + return void 0; + } + if (!result) { + onFailedToResolveSymbol(originalLocation, nameArg, meaning, nameNotFoundMessage); + } else { + onSuccessfullyResolvedSymbol(originalLocation, result, meaning, lastLocation, associatedDeclarationForContainingInitializerOrBindingName, withinDeferredContext); + } + } + return result; + } + function useOuterVariableScopeInParameter(result, location, lastLocation) { + const target = getEmitScriptTarget(compilerOptions); + const functionLocation = location; + if (isParameter(lastLocation) && functionLocation.body && result.valueDeclaration && result.valueDeclaration.pos >= functionLocation.body.pos && result.valueDeclaration.end <= functionLocation.body.end) { + if (target >= 2 /* ES2015 */) { + let declarationRequiresScopeChange = getRequiresScopeChangeCache(functionLocation); + if (declarationRequiresScopeChange === void 0) { + declarationRequiresScopeChange = forEach(functionLocation.parameters, requiresScopeChange) || false; + setRequiresScopeChangeCache(functionLocation, declarationRequiresScopeChange); + } + return !declarationRequiresScopeChange; + } + } + return false; + function requiresScopeChange(node) { + return requiresScopeChangeWorker(node.name) || !!node.initializer && requiresScopeChangeWorker(node.initializer); + } + function requiresScopeChangeWorker(node) { + switch (node.kind) { + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + return false; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 303 /* PropertyAssignment */: + return requiresScopeChangeWorker(node.name); + case 172 /* PropertyDeclaration */: + if (hasStaticModifier(node)) { + return !emitStandardClassFields; + } + return requiresScopeChangeWorker(node.name); + default: + if (isNullishCoalesce(node) || isOptionalChain(node)) { + return target < 7 /* ES2020 */; + } + if (isBindingElement(node) && node.dotDotDotToken && isObjectBindingPattern(node.parent)) { + return target < 4 /* ES2017 */; + } + if (isTypeNode(node)) return false; + return forEachChild(node, requiresScopeChangeWorker) || false; + } + } + } + function getIsDeferredContext(location, lastLocation) { + if (location.kind !== 219 /* ArrowFunction */ && location.kind !== 218 /* FunctionExpression */) { + return isTypeQueryNode(location) || (isFunctionLikeDeclaration(location) || location.kind === 172 /* PropertyDeclaration */ && !isStatic(location)) && (!lastLocation || lastLocation !== location.name); + } + if (lastLocation && lastLocation === location.name) { + return false; + } + if (location.asteriskToken || hasSyntacticModifier(location, 1024 /* Async */)) { + return true; + } + return !getImmediatelyInvokedFunctionExpression(location); + } + function isSelfReferenceLocation(node, lastLocation) { + switch (node.kind) { + case 169 /* Parameter */: + return !!lastLocation && lastLocation === node.name; + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 267 /* ModuleDeclaration */: + return true; + default: + return false; + } + } + function isTypeParameterSymbolDeclaredInContainer(symbol, container) { + if (symbol.declarations) { + for (const decl of symbol.declarations) { + if (decl.kind === 168 /* TypeParameter */) { + const parent = isJSDocTemplateTag(decl.parent) ? getJSDocHost(decl.parent) : decl.parent; + if (parent === container) { + return !(isJSDocTemplateTag(decl.parent) && find(decl.parent.parent.tags, isJSDocTypeAlias)); + } + } + } + } + return false; + } +} +function isPrimitiveLiteralValue(node, includeBigInt = true) { + Debug.type(node); + switch (node.kind) { + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 9 /* NumericLiteral */: + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + return true; + case 10 /* BigIntLiteral */: + return includeBigInt; + case 224 /* PrefixUnaryExpression */: + if (node.operator === 41 /* MinusToken */) { + return isNumericLiteral(node.operand) || includeBigInt && isBigIntLiteral(node.operand); + } + if (node.operator === 40 /* PlusToken */) { + return isNumericLiteral(node.operand); + } + return false; + default: + assertType(node); + return false; + } +} +function unwrapParenthesizedExpression(o) { + while (o.kind === 217 /* ParenthesizedExpression */) { + o = o.expression; + } + return o; +} +function hasInferredType(node) { + Debug.type(node); + switch (node.kind) { + case 169 /* Parameter */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 208 /* BindingElement */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + case 260 /* VariableDeclaration */: + case 277 /* ExportAssignment */: + case 303 /* PropertyAssignment */: + return true; + default: + assertType(node); + return false; + } +} + +// src/compiler/factory/baseNodeFactory.ts +function createBaseNodeFactory() { + let NodeConstructor2; + let TokenConstructor2; + let IdentifierConstructor2; + let PrivateIdentifierConstructor2; + let SourceFileConstructor2; + return { + createBaseSourceFileNode, + createBaseIdentifierNode, + createBasePrivateIdentifierNode, + createBaseTokenNode, + createBaseNode + }; + function createBaseSourceFileNode(kind) { + return new (SourceFileConstructor2 || (SourceFileConstructor2 = objectAllocator.getSourceFileConstructor()))( + kind, + /*pos*/ + -1, + /*end*/ + -1 + ); + } + function createBaseIdentifierNode(kind) { + return new (IdentifierConstructor2 || (IdentifierConstructor2 = objectAllocator.getIdentifierConstructor()))( + kind, + /*pos*/ + -1, + /*end*/ + -1 + ); + } + function createBasePrivateIdentifierNode(kind) { + return new (PrivateIdentifierConstructor2 || (PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor()))( + kind, + /*pos*/ + -1, + /*end*/ + -1 + ); + } + function createBaseTokenNode(kind) { + return new (TokenConstructor2 || (TokenConstructor2 = objectAllocator.getTokenConstructor()))( + kind, + /*pos*/ + -1, + /*end*/ + -1 + ); + } + function createBaseNode(kind) { + return new (NodeConstructor2 || (NodeConstructor2 = objectAllocator.getNodeConstructor()))( + kind, + /*pos*/ + -1, + /*end*/ + -1 + ); + } +} + +// src/compiler/factory/parenthesizerRules.ts +function createParenthesizerRules(factory2) { + let binaryLeftOperandParenthesizerCache; + let binaryRightOperandParenthesizerCache; + return { + getParenthesizeLeftSideOfBinaryForOperator, + getParenthesizeRightSideOfBinaryForOperator, + parenthesizeLeftSideOfBinary, + parenthesizeRightSideOfBinary, + parenthesizeExpressionOfComputedPropertyName, + parenthesizeConditionOfConditionalExpression, + parenthesizeBranchOfConditionalExpression, + parenthesizeExpressionOfExportDefault, + parenthesizeExpressionOfNew, + parenthesizeLeftSideOfAccess, + parenthesizeOperandOfPostfixUnary, + parenthesizeOperandOfPrefixUnary, + parenthesizeExpressionsOfCommaDelimitedList, + parenthesizeExpressionForDisallowedComma, + parenthesizeExpressionOfExpressionStatement, + parenthesizeConciseBodyOfArrowFunction, + parenthesizeCheckTypeOfConditionalType, + parenthesizeExtendsTypeOfConditionalType, + parenthesizeConstituentTypesOfUnionType, + parenthesizeConstituentTypeOfUnionType, + parenthesizeConstituentTypesOfIntersectionType, + parenthesizeConstituentTypeOfIntersectionType, + parenthesizeOperandOfTypeOperator, + parenthesizeOperandOfReadonlyTypeOperator, + parenthesizeNonArrayTypeOfPostfixType, + parenthesizeElementTypesOfTupleType, + parenthesizeElementTypeOfTupleType, + parenthesizeTypeOfOptionalType, + parenthesizeTypeArguments, + parenthesizeLeadingTypeArgument + }; + function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) { + binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = /* @__PURE__ */ new Map()); + let parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind); + if (!parenthesizerRule) { + parenthesizerRule = (node) => parenthesizeLeftSideOfBinary(operatorKind, node); + binaryLeftOperandParenthesizerCache.set(operatorKind, parenthesizerRule); + } + return parenthesizerRule; + } + function getParenthesizeRightSideOfBinaryForOperator(operatorKind) { + binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = /* @__PURE__ */ new Map()); + let parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind); + if (!parenthesizerRule) { + parenthesizerRule = (node) => parenthesizeRightSideOfBinary( + operatorKind, + /*leftSide*/ + void 0, + node + ); + binaryRightOperandParenthesizerCache.set(operatorKind, parenthesizerRule); + } + return parenthesizerRule; + } + function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { + const binaryOperatorPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, binaryOperator); + const binaryOperatorAssociativity = getOperatorAssociativity(226 /* BinaryExpression */, binaryOperator); + const emittedOperand = skipPartiallyEmittedExpressions(operand); + if (!isLeftSideOfBinary && operand.kind === 219 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) { + return true; + } + const operandPrecedence = getExpressionPrecedence(emittedOperand); + switch (compareValues(operandPrecedence, binaryOperatorPrecedence)) { + case -1 /* LessThan */: + if (!isLeftSideOfBinary && binaryOperatorAssociativity === 1 /* Right */ && operand.kind === 229 /* YieldExpression */) { + return false; + } + return true; + case 1 /* GreaterThan */: + return false; + case 0 /* EqualTo */: + if (isLeftSideOfBinary) { + return binaryOperatorAssociativity === 1 /* Right */; + } else { + if (isBinaryExpression(emittedOperand) && emittedOperand.operatorToken.kind === binaryOperator) { + if (operatorHasAssociativeProperty(binaryOperator)) { + return false; + } + if (binaryOperator === 40 /* PlusToken */) { + const leftKind = leftOperand ? getLiteralKindOfBinaryPlusOperand(leftOperand) : 0 /* Unknown */; + if (isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(emittedOperand)) { + return false; + } + } + } + const operandAssociativity = getExpressionAssociativity(emittedOperand); + return operandAssociativity === 0 /* Left */; + } + } + } + function operatorHasAssociativeProperty(binaryOperator) { + return binaryOperator === 42 /* AsteriskToken */ || binaryOperator === 52 /* BarToken */ || binaryOperator === 51 /* AmpersandToken */ || binaryOperator === 53 /* CaretToken */ || binaryOperator === 28 /* CommaToken */; + } + function getLiteralKindOfBinaryPlusOperand(node) { + node = skipPartiallyEmittedExpressions(node); + if (isLiteralKind(node.kind)) { + return node.kind; + } + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 40 /* PlusToken */) { + if (node.cachedLiteralKind !== void 0) { + return node.cachedLiteralKind; + } + const leftKind = getLiteralKindOfBinaryPlusOperand(node.left); + const literalKind = isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(node.right) ? leftKind : 0 /* Unknown */; + node.cachedLiteralKind = literalKind; + return literalKind; + } + return 0 /* Unknown */; + } + function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) { + const skipped = skipPartiallyEmittedExpressions(operand); + if (skipped.kind === 217 /* ParenthesizedExpression */) { + return operand; + } + return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) ? factory2.createParenthesizedExpression(operand) : operand; + } + function parenthesizeLeftSideOfBinary(binaryOperator, leftSide) { + return parenthesizeBinaryOperand( + binaryOperator, + leftSide, + /*isLeftSideOfBinary*/ + true + ); + } + function parenthesizeRightSideOfBinary(binaryOperator, leftSide, rightSide) { + return parenthesizeBinaryOperand( + binaryOperator, + rightSide, + /*isLeftSideOfBinary*/ + false, + leftSide + ); + } + function parenthesizeExpressionOfComputedPropertyName(expression) { + return isCommaSequence(expression) ? factory2.createParenthesizedExpression(expression) : expression; + } + function parenthesizeConditionOfConditionalExpression(condition) { + const conditionalPrecedence = getOperatorPrecedence(227 /* ConditionalExpression */, 58 /* QuestionToken */); + const emittedCondition = skipPartiallyEmittedExpressions(condition); + const conditionPrecedence = getExpressionPrecedence(emittedCondition); + if (compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) { + return factory2.createParenthesizedExpression(condition); + } + return condition; + } + function parenthesizeBranchOfConditionalExpression(branch) { + const emittedExpression = skipPartiallyEmittedExpressions(branch); + return isCommaSequence(emittedExpression) ? factory2.createParenthesizedExpression(branch) : branch; + } + function parenthesizeExpressionOfExportDefault(expression) { + const check = skipPartiallyEmittedExpressions(expression); + let needsParens = isCommaSequence(check); + if (!needsParens) { + switch (getLeftmostExpression( + check, + /*stopAtCallExpressions*/ + false + ).kind) { + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + needsParens = true; + } + } + return needsParens ? factory2.createParenthesizedExpression(expression) : expression; + } + function parenthesizeExpressionOfNew(expression) { + const leftmostExpr = getLeftmostExpression( + expression, + /*stopAtCallExpressions*/ + true + ); + switch (leftmostExpr.kind) { + case 213 /* CallExpression */: + return factory2.createParenthesizedExpression(expression); + case 214 /* NewExpression */: + return !leftmostExpr.arguments ? factory2.createParenthesizedExpression(expression) : expression; + } + return parenthesizeLeftSideOfAccess(expression); + } + function parenthesizeLeftSideOfAccess(expression, optionalChain) { + const emittedExpression = skipPartiallyEmittedExpressions(expression); + if (isLeftHandSideExpression(emittedExpression) && (emittedExpression.kind !== 214 /* NewExpression */ || emittedExpression.arguments) && (optionalChain || !isOptionalChain(emittedExpression))) { + return expression; + } + return setTextRange(factory2.createParenthesizedExpression(expression), expression); + } + function parenthesizeOperandOfPostfixUnary(operand) { + return isLeftHandSideExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand); + } + function parenthesizeOperandOfPrefixUnary(operand) { + return isUnaryExpression(operand) ? operand : setTextRange(factory2.createParenthesizedExpression(operand), operand); + } + function parenthesizeExpressionsOfCommaDelimitedList(elements) { + const result = sameMap(elements, parenthesizeExpressionForDisallowedComma); + return setTextRange(factory2.createNodeArray(result, elements.hasTrailingComma), elements); + } + function parenthesizeExpressionForDisallowedComma(expression) { + const emittedExpression = skipPartiallyEmittedExpressions(expression); + const expressionPrecedence = getExpressionPrecedence(emittedExpression); + const commaPrecedence = getOperatorPrecedence(226 /* BinaryExpression */, 28 /* CommaToken */); + return expressionPrecedence > commaPrecedence ? expression : setTextRange(factory2.createParenthesizedExpression(expression), expression); + } + function parenthesizeExpressionOfExpressionStatement(expression) { + const emittedExpression = skipPartiallyEmittedExpressions(expression); + if (isCallExpression(emittedExpression)) { + const callee = emittedExpression.expression; + const kind = skipPartiallyEmittedExpressions(callee).kind; + if (kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */) { + const updated = factory2.updateCallExpression( + emittedExpression, + setTextRange(factory2.createParenthesizedExpression(callee), callee), + emittedExpression.typeArguments, + emittedExpression.arguments + ); + return factory2.restoreOuterExpressions(expression, updated, 8 /* PartiallyEmittedExpressions */); + } + } + const leftmostExpressionKind = getLeftmostExpression( + emittedExpression, + /*stopAtCallExpressions*/ + false + ).kind; + if (leftmostExpressionKind === 210 /* ObjectLiteralExpression */ || leftmostExpressionKind === 218 /* FunctionExpression */) { + return setTextRange(factory2.createParenthesizedExpression(expression), expression); + } + return expression; + } + function parenthesizeConciseBodyOfArrowFunction(body) { + if (!isBlock(body) && (isCommaSequence(body) || getLeftmostExpression( + body, + /*stopAtCallExpressions*/ + false + ).kind === 210 /* ObjectLiteralExpression */)) { + return setTextRange(factory2.createParenthesizedExpression(body), body); + } + return body; + } + function parenthesizeCheckTypeOfConditionalType(checkType) { + switch (checkType.kind) { + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 194 /* ConditionalType */: + return factory2.createParenthesizedType(checkType); + } + return checkType; + } + function parenthesizeExtendsTypeOfConditionalType(extendsType) { + switch (extendsType.kind) { + case 194 /* ConditionalType */: + return factory2.createParenthesizedType(extendsType); + } + return extendsType; + } + function parenthesizeConstituentTypeOfUnionType(type) { + switch (type.kind) { + case 192 /* UnionType */: + case 193 /* IntersectionType */: + return factory2.createParenthesizedType(type); + } + return parenthesizeCheckTypeOfConditionalType(type); + } + function parenthesizeConstituentTypesOfUnionType(members) { + return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfUnionType)); + } + function parenthesizeConstituentTypeOfIntersectionType(type) { + switch (type.kind) { + case 192 /* UnionType */: + case 193 /* IntersectionType */: + return factory2.createParenthesizedType(type); + } + return parenthesizeConstituentTypeOfUnionType(type); + } + function parenthesizeConstituentTypesOfIntersectionType(members) { + return factory2.createNodeArray(sameMap(members, parenthesizeConstituentTypeOfIntersectionType)); + } + function parenthesizeOperandOfTypeOperator(type) { + switch (type.kind) { + case 193 /* IntersectionType */: + return factory2.createParenthesizedType(type); + } + return parenthesizeConstituentTypeOfIntersectionType(type); + } + function parenthesizeOperandOfReadonlyTypeOperator(type) { + switch (type.kind) { + case 198 /* TypeOperator */: + return factory2.createParenthesizedType(type); + } + return parenthesizeOperandOfTypeOperator(type); + } + function parenthesizeNonArrayTypeOfPostfixType(type) { + switch (type.kind) { + case 195 /* InferType */: + case 198 /* TypeOperator */: + case 186 /* TypeQuery */: + return factory2.createParenthesizedType(type); + } + return parenthesizeOperandOfTypeOperator(type); + } + function parenthesizeElementTypesOfTupleType(types) { + return factory2.createNodeArray(sameMap(types, parenthesizeElementTypeOfTupleType)); + } + function parenthesizeElementTypeOfTupleType(type) { + if (hasJSDocPostfixQuestion(type)) return factory2.createParenthesizedType(type); + return type; + } + function hasJSDocPostfixQuestion(type) { + if (isJSDocNullableType(type)) return type.postfix; + if (isNamedTupleMember(type)) return hasJSDocPostfixQuestion(type.type); + if (isFunctionTypeNode(type) || isConstructorTypeNode(type) || isTypeOperatorNode(type)) return hasJSDocPostfixQuestion(type.type); + if (isConditionalTypeNode(type)) return hasJSDocPostfixQuestion(type.falseType); + if (isUnionTypeNode(type)) return hasJSDocPostfixQuestion(last(type.types)); + if (isIntersectionTypeNode(type)) return hasJSDocPostfixQuestion(last(type.types)); + if (isInferTypeNode(type)) return !!type.typeParameter.constraint && hasJSDocPostfixQuestion(type.typeParameter.constraint); + return false; + } + function parenthesizeTypeOfOptionalType(type) { + if (hasJSDocPostfixQuestion(type)) return factory2.createParenthesizedType(type); + return parenthesizeNonArrayTypeOfPostfixType(type); + } + function parenthesizeLeadingTypeArgument(node) { + return isFunctionOrConstructorTypeNode(node) && node.typeParameters ? factory2.createParenthesizedType(node) : node; + } + function parenthesizeOrdinalTypeArgument(node, i) { + return i === 0 ? parenthesizeLeadingTypeArgument(node) : node; + } + function parenthesizeTypeArguments(typeArguments) { + if (some(typeArguments)) { + return factory2.createNodeArray(sameMap(typeArguments, parenthesizeOrdinalTypeArgument)); + } + } +} +var nullParenthesizerRules = { + getParenthesizeLeftSideOfBinaryForOperator: (_) => identity, + getParenthesizeRightSideOfBinaryForOperator: (_) => identity, + parenthesizeLeftSideOfBinary: (_binaryOperator, leftSide) => leftSide, + parenthesizeRightSideOfBinary: (_binaryOperator, _leftSide, rightSide) => rightSide, + parenthesizeExpressionOfComputedPropertyName: identity, + parenthesizeConditionOfConditionalExpression: identity, + parenthesizeBranchOfConditionalExpression: identity, + parenthesizeExpressionOfExportDefault: identity, + parenthesizeExpressionOfNew: (expression) => cast(expression, isLeftHandSideExpression), + parenthesizeLeftSideOfAccess: (expression) => cast(expression, isLeftHandSideExpression), + parenthesizeOperandOfPostfixUnary: (operand) => cast(operand, isLeftHandSideExpression), + parenthesizeOperandOfPrefixUnary: (operand) => cast(operand, isUnaryExpression), + parenthesizeExpressionsOfCommaDelimitedList: (nodes) => cast(nodes, isNodeArray), + parenthesizeExpressionForDisallowedComma: identity, + parenthesizeExpressionOfExpressionStatement: identity, + parenthesizeConciseBodyOfArrowFunction: identity, + parenthesizeCheckTypeOfConditionalType: identity, + parenthesizeExtendsTypeOfConditionalType: identity, + parenthesizeConstituentTypesOfUnionType: (nodes) => cast(nodes, isNodeArray), + parenthesizeConstituentTypeOfUnionType: identity, + parenthesizeConstituentTypesOfIntersectionType: (nodes) => cast(nodes, isNodeArray), + parenthesizeConstituentTypeOfIntersectionType: identity, + parenthesizeOperandOfTypeOperator: identity, + parenthesizeOperandOfReadonlyTypeOperator: identity, + parenthesizeNonArrayTypeOfPostfixType: identity, + parenthesizeElementTypesOfTupleType: (nodes) => cast(nodes, isNodeArray), + parenthesizeElementTypeOfTupleType: identity, + parenthesizeTypeOfOptionalType: identity, + parenthesizeTypeArguments: (nodes) => nodes && cast(nodes, isNodeArray), + parenthesizeLeadingTypeArgument: identity +}; + +// src/compiler/factory/nodeConverters.ts +function createNodeConverters(factory2) { + return { + convertToFunctionBlock, + convertToFunctionExpression, + convertToClassExpression, + convertToArrayAssignmentElement, + convertToObjectAssignmentElement, + convertToAssignmentPattern, + convertToObjectAssignmentPattern, + convertToArrayAssignmentPattern, + convertToAssignmentElementTarget + }; + function convertToFunctionBlock(node, multiLine) { + if (isBlock(node)) return node; + const returnStatement = factory2.createReturnStatement(node); + setTextRange(returnStatement, node); + const body = factory2.createBlock([returnStatement], multiLine); + setTextRange(body, node); + return body; + } + function convertToFunctionExpression(node) { + var _a; + if (!node.body) return Debug.fail(`Cannot convert a FunctionDeclaration without a body`); + const updated = factory2.createFunctionExpression( + (_a = getModifiers(node)) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.asteriskToken, + node.name, + node.typeParameters, + node.parameters, + node.type, + node.body + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } + function convertToClassExpression(node) { + var _a; + const updated = factory2.createClassExpression( + (_a = node.modifiers) == null ? void 0 : _a.filter((modifier) => !isExportModifier(modifier) && !isDefaultModifier(modifier)), + node.name, + node.typeParameters, + node.heritageClauses, + node.members + ); + setOriginalNode(updated, node); + setTextRange(updated, node); + if (getStartsOnNewLine(node)) { + setStartsOnNewLine( + updated, + /*newLine*/ + true + ); + } + return updated; + } + function convertToArrayAssignmentElement(element) { + if (isBindingElement(element)) { + if (element.dotDotDotToken) { + Debug.assertNode(element.name, isIdentifier); + return setOriginalNode(setTextRange(factory2.createSpreadElement(element.name), element), element); + } + const expression = convertToAssignmentElementTarget(element.name); + return element.initializer ? setOriginalNode( + setTextRange( + factory2.createAssignment(expression, element.initializer), + element + ), + element + ) : expression; + } + return cast(element, isExpression); + } + function convertToObjectAssignmentElement(element) { + if (isBindingElement(element)) { + if (element.dotDotDotToken) { + Debug.assertNode(element.name, isIdentifier); + return setOriginalNode(setTextRange(factory2.createSpreadAssignment(element.name), element), element); + } + if (element.propertyName) { + const expression = convertToAssignmentElementTarget(element.name); + return setOriginalNode(setTextRange(factory2.createPropertyAssignment(element.propertyName, element.initializer ? factory2.createAssignment(expression, element.initializer) : expression), element), element); + } + Debug.assertNode(element.name, isIdentifier); + return setOriginalNode(setTextRange(factory2.createShorthandPropertyAssignment(element.name, element.initializer), element), element); + } + return cast(element, isObjectLiteralElementLike); + } + function convertToAssignmentPattern(node) { + switch (node.kind) { + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: + return convertToArrayAssignmentPattern(node); + case 206 /* ObjectBindingPattern */: + case 210 /* ObjectLiteralExpression */: + return convertToObjectAssignmentPattern(node); + } + } + function convertToObjectAssignmentPattern(node) { + if (isObjectBindingPattern(node)) { + return setOriginalNode( + setTextRange( + factory2.createObjectLiteralExpression(map(node.elements, convertToObjectAssignmentElement)), + node + ), + node + ); + } + return cast(node, isObjectLiteralExpression); + } + function convertToArrayAssignmentPattern(node) { + if (isArrayBindingPattern(node)) { + return setOriginalNode( + setTextRange( + factory2.createArrayLiteralExpression(map(node.elements, convertToArrayAssignmentElement)), + node + ), + node + ); + } + return cast(node, isArrayLiteralExpression); + } + function convertToAssignmentElementTarget(node) { + if (isBindingPattern(node)) { + return convertToAssignmentPattern(node); + } + return cast(node, isExpression); + } +} +var nullNodeConverters = { + convertToFunctionBlock: notImplemented, + convertToFunctionExpression: notImplemented, + convertToClassExpression: notImplemented, + convertToArrayAssignmentElement: notImplemented, + convertToObjectAssignmentElement: notImplemented, + convertToAssignmentPattern: notImplemented, + convertToObjectAssignmentPattern: notImplemented, + convertToArrayAssignmentPattern: notImplemented, + convertToAssignmentElementTarget: notImplemented +}; + +// src/compiler/factory/nodeFactory.ts +var nextAutoGenerateId = 0; +var nodeFactoryPatchers = []; +function createNodeFactory(flags, baseFactory2) { + const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode; + const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2)); + const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2)); + const getBinaryCreateFunction = memoizeOne((operator) => (left, right) => createBinaryExpression(left, operator, right)); + const getPrefixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPrefixUnaryExpression(operator, operand)); + const getPostfixUnaryCreateFunction = memoizeOne((operator) => (operand) => createPostfixUnaryExpression(operand, operator)); + const getJSDocPrimaryTypeCreateFunction = memoizeOne((kind) => () => createJSDocPrimaryTypeWorker(kind)); + const getJSDocUnaryTypeCreateFunction = memoizeOne((kind) => (type) => createJSDocUnaryTypeWorker(kind, type)); + const getJSDocUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocUnaryTypeWorker(kind, node, type)); + const getJSDocPrePostfixUnaryTypeCreateFunction = memoizeOne((kind) => (type, postfix) => createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix)); + const getJSDocPrePostfixUnaryTypeUpdateFunction = memoizeOne((kind) => (node, type) => updateJSDocPrePostfixUnaryTypeWorker(kind, node, type)); + const getJSDocSimpleTagCreateFunction = memoizeOne((kind) => (tagName, comment) => createJSDocSimpleTagWorker(kind, tagName, comment)); + const getJSDocSimpleTagUpdateFunction = memoizeOne((kind) => (node, tagName, comment) => updateJSDocSimpleTagWorker(kind, node, tagName, comment)); + const getJSDocTypeLikeTagCreateFunction = memoizeOne((kind) => (tagName, typeExpression, comment) => createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment)); + const getJSDocTypeLikeTagUpdateFunction = memoizeOne((kind) => (node, tagName, typeExpression, comment) => updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment)); + const factory2 = { + get parenthesizer() { + return parenthesizerRules(); + }, + get converters() { + return converters(); + }, + baseFactory: baseFactory2, + flags, + createNodeArray, + createNumericLiteral, + createBigIntLiteral, + createStringLiteral, + createStringLiteralFromNode, + createRegularExpressionLiteral, + createLiteralLikeNode, + createIdentifier, + createTempVariable, + createLoopVariable, + createUniqueName, + getGeneratedNameForNode, + createPrivateIdentifier, + createUniquePrivateName, + getGeneratedPrivateNameForNode, + createToken, + createSuper, + createThis, + createNull, + createTrue, + createFalse, + createModifier, + createModifiersFromModifierFlags, + createQualifiedName, + updateQualifiedName, + createComputedPropertyName, + updateComputedPropertyName, + createTypeParameterDeclaration, + updateTypeParameterDeclaration, + createParameterDeclaration, + updateParameterDeclaration, + createDecorator, + updateDecorator, + createPropertySignature, + updatePropertySignature, + createPropertyDeclaration, + updatePropertyDeclaration, + createMethodSignature, + updateMethodSignature, + createMethodDeclaration, + updateMethodDeclaration, + createConstructorDeclaration, + updateConstructorDeclaration, + createGetAccessorDeclaration, + updateGetAccessorDeclaration, + createSetAccessorDeclaration, + updateSetAccessorDeclaration, + createCallSignature, + updateCallSignature, + createConstructSignature, + updateConstructSignature, + createIndexSignature, + updateIndexSignature, + createClassStaticBlockDeclaration, + updateClassStaticBlockDeclaration, + createTemplateLiteralTypeSpan, + updateTemplateLiteralTypeSpan, + createKeywordTypeNode, + createTypePredicateNode, + updateTypePredicateNode, + createTypeReferenceNode, + updateTypeReferenceNode, + createFunctionTypeNode, + updateFunctionTypeNode, + createConstructorTypeNode, + updateConstructorTypeNode, + createTypeQueryNode, + updateTypeQueryNode, + createTypeLiteralNode, + updateTypeLiteralNode, + createArrayTypeNode, + updateArrayTypeNode, + createTupleTypeNode, + updateTupleTypeNode, + createNamedTupleMember, + updateNamedTupleMember, + createOptionalTypeNode, + updateOptionalTypeNode, + createRestTypeNode, + updateRestTypeNode, + createUnionTypeNode, + updateUnionTypeNode, + createIntersectionTypeNode, + updateIntersectionTypeNode, + createConditionalTypeNode, + updateConditionalTypeNode, + createInferTypeNode, + updateInferTypeNode, + createImportTypeNode, + updateImportTypeNode, + createParenthesizedType, + updateParenthesizedType, + createThisTypeNode, + createTypeOperatorNode, + updateTypeOperatorNode, + createIndexedAccessTypeNode, + updateIndexedAccessTypeNode, + createMappedTypeNode, + updateMappedTypeNode, + createLiteralTypeNode, + updateLiteralTypeNode, + createTemplateLiteralType, + updateTemplateLiteralType, + createObjectBindingPattern, + updateObjectBindingPattern, + createArrayBindingPattern, + updateArrayBindingPattern, + createBindingElement, + updateBindingElement, + createArrayLiteralExpression, + updateArrayLiteralExpression, + createObjectLiteralExpression, + updateObjectLiteralExpression, + createPropertyAccessExpression: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ? (expression, name) => setEmitFlags(createPropertyAccessExpression(expression, name), 262144 /* NoIndentation */) : createPropertyAccessExpression, + updatePropertyAccessExpression, + createPropertyAccessChain: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ? (expression, questionDotToken, name) => setEmitFlags(createPropertyAccessChain(expression, questionDotToken, name), 262144 /* NoIndentation */) : createPropertyAccessChain, + updatePropertyAccessChain, + createElementAccessExpression, + updateElementAccessExpression, + createElementAccessChain, + updateElementAccessChain, + createCallExpression, + updateCallExpression, + createCallChain, + updateCallChain, + createNewExpression, + updateNewExpression, + createTaggedTemplateExpression, + updateTaggedTemplateExpression, + createTypeAssertion, + updateTypeAssertion, + createParenthesizedExpression, + updateParenthesizedExpression, + createFunctionExpression, + updateFunctionExpression, + createArrowFunction, + updateArrowFunction, + createDeleteExpression, + updateDeleteExpression, + createTypeOfExpression, + updateTypeOfExpression, + createVoidExpression, + updateVoidExpression, + createAwaitExpression, + updateAwaitExpression, + createPrefixUnaryExpression, + updatePrefixUnaryExpression, + createPostfixUnaryExpression, + updatePostfixUnaryExpression, + createBinaryExpression, + updateBinaryExpression, + createConditionalExpression, + updateConditionalExpression, + createTemplateExpression, + updateTemplateExpression, + createTemplateHead, + createTemplateMiddle, + createTemplateTail, + createNoSubstitutionTemplateLiteral, + createTemplateLiteralLikeNode, + createYieldExpression, + updateYieldExpression, + createSpreadElement, + updateSpreadElement, + createClassExpression, + updateClassExpression, + createOmittedExpression, + createExpressionWithTypeArguments, + updateExpressionWithTypeArguments, + createAsExpression, + updateAsExpression, + createNonNullExpression, + updateNonNullExpression, + createSatisfiesExpression, + updateSatisfiesExpression, + createNonNullChain, + updateNonNullChain, + createMetaProperty, + updateMetaProperty, + createTemplateSpan, + updateTemplateSpan, + createSemicolonClassElement, + createBlock, + updateBlock, + createVariableStatement, + updateVariableStatement, + createEmptyStatement, + createExpressionStatement, + updateExpressionStatement, + createIfStatement, + updateIfStatement, + createDoStatement, + updateDoStatement, + createWhileStatement, + updateWhileStatement, + createForStatement, + updateForStatement, + createForInStatement, + updateForInStatement, + createForOfStatement, + updateForOfStatement, + createContinueStatement, + updateContinueStatement, + createBreakStatement, + updateBreakStatement, + createReturnStatement, + updateReturnStatement, + createWithStatement, + updateWithStatement, + createSwitchStatement, + updateSwitchStatement, + createLabeledStatement, + updateLabeledStatement, + createThrowStatement, + updateThrowStatement, + createTryStatement, + updateTryStatement, + createDebuggerStatement, + createVariableDeclaration, + updateVariableDeclaration, + createVariableDeclarationList, + updateVariableDeclarationList, + createFunctionDeclaration, + updateFunctionDeclaration, + createClassDeclaration, + updateClassDeclaration, + createInterfaceDeclaration, + updateInterfaceDeclaration, + createTypeAliasDeclaration, + updateTypeAliasDeclaration, + createEnumDeclaration, + updateEnumDeclaration, + createModuleDeclaration, + updateModuleDeclaration, + createModuleBlock, + updateModuleBlock, + createCaseBlock, + updateCaseBlock, + createNamespaceExportDeclaration, + updateNamespaceExportDeclaration, + createImportEqualsDeclaration, + updateImportEqualsDeclaration, + createImportDeclaration, + updateImportDeclaration, + createImportClause, + updateImportClause, + createAssertClause, + updateAssertClause, + createAssertEntry, + updateAssertEntry, + createImportTypeAssertionContainer, + updateImportTypeAssertionContainer, + createImportAttributes, + updateImportAttributes, + createImportAttribute, + updateImportAttribute, + createNamespaceImport, + updateNamespaceImport, + createNamespaceExport, + updateNamespaceExport, + createNamedImports, + updateNamedImports, + createImportSpecifier, + updateImportSpecifier, + createExportAssignment, + updateExportAssignment, + createExportDeclaration, + updateExportDeclaration, + createNamedExports, + updateNamedExports, + createExportSpecifier, + updateExportSpecifier, + createMissingDeclaration, + createExternalModuleReference, + updateExternalModuleReference, + // lazily load factory members for JSDoc types with similar structure + get createJSDocAllType() { + return getJSDocPrimaryTypeCreateFunction(312 /* JSDocAllType */); + }, + get createJSDocUnknownType() { + return getJSDocPrimaryTypeCreateFunction(313 /* JSDocUnknownType */); + }, + get createJSDocNonNullableType() { + return getJSDocPrePostfixUnaryTypeCreateFunction(315 /* JSDocNonNullableType */); + }, + get updateJSDocNonNullableType() { + return getJSDocPrePostfixUnaryTypeUpdateFunction(315 /* JSDocNonNullableType */); + }, + get createJSDocNullableType() { + return getJSDocPrePostfixUnaryTypeCreateFunction(314 /* JSDocNullableType */); + }, + get updateJSDocNullableType() { + return getJSDocPrePostfixUnaryTypeUpdateFunction(314 /* JSDocNullableType */); + }, + get createJSDocOptionalType() { + return getJSDocUnaryTypeCreateFunction(316 /* JSDocOptionalType */); + }, + get updateJSDocOptionalType() { + return getJSDocUnaryTypeUpdateFunction(316 /* JSDocOptionalType */); + }, + get createJSDocVariadicType() { + return getJSDocUnaryTypeCreateFunction(318 /* JSDocVariadicType */); + }, + get updateJSDocVariadicType() { + return getJSDocUnaryTypeUpdateFunction(318 /* JSDocVariadicType */); + }, + get createJSDocNamepathType() { + return getJSDocUnaryTypeCreateFunction(319 /* JSDocNamepathType */); + }, + get updateJSDocNamepathType() { + return getJSDocUnaryTypeUpdateFunction(319 /* JSDocNamepathType */); + }, + createJSDocFunctionType, + updateJSDocFunctionType, + createJSDocTypeLiteral, + updateJSDocTypeLiteral, + createJSDocTypeExpression, + updateJSDocTypeExpression, + createJSDocSignature, + updateJSDocSignature, + createJSDocTemplateTag, + updateJSDocTemplateTag, + createJSDocTypedefTag, + updateJSDocTypedefTag, + createJSDocParameterTag, + updateJSDocParameterTag, + createJSDocPropertyTag, + updateJSDocPropertyTag, + createJSDocCallbackTag, + updateJSDocCallbackTag, + createJSDocOverloadTag, + updateJSDocOverloadTag, + createJSDocAugmentsTag, + updateJSDocAugmentsTag, + createJSDocImplementsTag, + updateJSDocImplementsTag, + createJSDocSeeTag, + updateJSDocSeeTag, + createJSDocImportTag, + updateJSDocImportTag, + createJSDocNameReference, + updateJSDocNameReference, + createJSDocMemberName, + updateJSDocMemberName, + createJSDocLink, + updateJSDocLink, + createJSDocLinkCode, + updateJSDocLinkCode, + createJSDocLinkPlain, + updateJSDocLinkPlain, + // lazily load factory members for JSDoc tags with similar structure + get createJSDocTypeTag() { + return getJSDocTypeLikeTagCreateFunction(344 /* JSDocTypeTag */); + }, + get updateJSDocTypeTag() { + return getJSDocTypeLikeTagUpdateFunction(344 /* JSDocTypeTag */); + }, + get createJSDocReturnTag() { + return getJSDocTypeLikeTagCreateFunction(342 /* JSDocReturnTag */); + }, + get updateJSDocReturnTag() { + return getJSDocTypeLikeTagUpdateFunction(342 /* JSDocReturnTag */); + }, + get createJSDocThisTag() { + return getJSDocTypeLikeTagCreateFunction(343 /* JSDocThisTag */); + }, + get updateJSDocThisTag() { + return getJSDocTypeLikeTagUpdateFunction(343 /* JSDocThisTag */); + }, + get createJSDocAuthorTag() { + return getJSDocSimpleTagCreateFunction(330 /* JSDocAuthorTag */); + }, + get updateJSDocAuthorTag() { + return getJSDocSimpleTagUpdateFunction(330 /* JSDocAuthorTag */); + }, + get createJSDocClassTag() { + return getJSDocSimpleTagCreateFunction(332 /* JSDocClassTag */); + }, + get updateJSDocClassTag() { + return getJSDocSimpleTagUpdateFunction(332 /* JSDocClassTag */); + }, + get createJSDocPublicTag() { + return getJSDocSimpleTagCreateFunction(333 /* JSDocPublicTag */); + }, + get updateJSDocPublicTag() { + return getJSDocSimpleTagUpdateFunction(333 /* JSDocPublicTag */); + }, + get createJSDocPrivateTag() { + return getJSDocSimpleTagCreateFunction(334 /* JSDocPrivateTag */); + }, + get updateJSDocPrivateTag() { + return getJSDocSimpleTagUpdateFunction(334 /* JSDocPrivateTag */); + }, + get createJSDocProtectedTag() { + return getJSDocSimpleTagCreateFunction(335 /* JSDocProtectedTag */); + }, + get updateJSDocProtectedTag() { + return getJSDocSimpleTagUpdateFunction(335 /* JSDocProtectedTag */); + }, + get createJSDocReadonlyTag() { + return getJSDocSimpleTagCreateFunction(336 /* JSDocReadonlyTag */); + }, + get updateJSDocReadonlyTag() { + return getJSDocSimpleTagUpdateFunction(336 /* JSDocReadonlyTag */); + }, + get createJSDocOverrideTag() { + return getJSDocSimpleTagCreateFunction(337 /* JSDocOverrideTag */); + }, + get updateJSDocOverrideTag() { + return getJSDocSimpleTagUpdateFunction(337 /* JSDocOverrideTag */); + }, + get createJSDocDeprecatedTag() { + return getJSDocSimpleTagCreateFunction(331 /* JSDocDeprecatedTag */); + }, + get updateJSDocDeprecatedTag() { + return getJSDocSimpleTagUpdateFunction(331 /* JSDocDeprecatedTag */); + }, + get createJSDocThrowsTag() { + return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThrowsTag */); + }, + get updateJSDocThrowsTag() { + return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThrowsTag */); + }, + get createJSDocSatisfiesTag() { + return getJSDocTypeLikeTagCreateFunction(350 /* JSDocSatisfiesTag */); + }, + get updateJSDocSatisfiesTag() { + return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocSatisfiesTag */); + }, + createJSDocEnumTag, + updateJSDocEnumTag, + createJSDocUnknownTag, + updateJSDocUnknownTag, + createJSDocText, + updateJSDocText, + createJSDocComment, + updateJSDocComment, + createJsxElement, + updateJsxElement, + createJsxSelfClosingElement, + updateJsxSelfClosingElement, + createJsxOpeningElement, + updateJsxOpeningElement, + createJsxClosingElement, + updateJsxClosingElement, + createJsxFragment, + createJsxText, + updateJsxText, + createJsxOpeningFragment, + createJsxJsxClosingFragment, + updateJsxFragment, + createJsxAttribute, + updateJsxAttribute, + createJsxAttributes, + updateJsxAttributes, + createJsxSpreadAttribute, + updateJsxSpreadAttribute, + createJsxExpression, + updateJsxExpression, + createJsxNamespacedName, + updateJsxNamespacedName, + createCaseClause, + updateCaseClause, + createDefaultClause, + updateDefaultClause, + createHeritageClause, + updateHeritageClause, + createCatchClause, + updateCatchClause, + createPropertyAssignment, + updatePropertyAssignment, + createShorthandPropertyAssignment, + updateShorthandPropertyAssignment, + createSpreadAssignment, + updateSpreadAssignment, + createEnumMember, + updateEnumMember, + createSourceFile: createSourceFile2, + updateSourceFile, + createRedirectedSourceFile, + createBundle, + updateBundle, + createSyntheticExpression, + createSyntaxList, + createNotEmittedStatement, + createPartiallyEmittedExpression, + updatePartiallyEmittedExpression, + createCommaListExpression, + updateCommaListExpression, + createSyntheticReferenceExpression, + updateSyntheticReferenceExpression, + cloneNode, + // Lazily load factory methods for common operator factories and utilities + get createComma() { + return getBinaryCreateFunction(28 /* CommaToken */); + }, + get createAssignment() { + return getBinaryCreateFunction(64 /* EqualsToken */); + }, + get createLogicalOr() { + return getBinaryCreateFunction(57 /* BarBarToken */); + }, + get createLogicalAnd() { + return getBinaryCreateFunction(56 /* AmpersandAmpersandToken */); + }, + get createBitwiseOr() { + return getBinaryCreateFunction(52 /* BarToken */); + }, + get createBitwiseXor() { + return getBinaryCreateFunction(53 /* CaretToken */); + }, + get createBitwiseAnd() { + return getBinaryCreateFunction(51 /* AmpersandToken */); + }, + get createStrictEquality() { + return getBinaryCreateFunction(37 /* EqualsEqualsEqualsToken */); + }, + get createStrictInequality() { + return getBinaryCreateFunction(38 /* ExclamationEqualsEqualsToken */); + }, + get createEquality() { + return getBinaryCreateFunction(35 /* EqualsEqualsToken */); + }, + get createInequality() { + return getBinaryCreateFunction(36 /* ExclamationEqualsToken */); + }, + get createLessThan() { + return getBinaryCreateFunction(30 /* LessThanToken */); + }, + get createLessThanEquals() { + return getBinaryCreateFunction(33 /* LessThanEqualsToken */); + }, + get createGreaterThan() { + return getBinaryCreateFunction(32 /* GreaterThanToken */); + }, + get createGreaterThanEquals() { + return getBinaryCreateFunction(34 /* GreaterThanEqualsToken */); + }, + get createLeftShift() { + return getBinaryCreateFunction(48 /* LessThanLessThanToken */); + }, + get createRightShift() { + return getBinaryCreateFunction(49 /* GreaterThanGreaterThanToken */); + }, + get createUnsignedRightShift() { + return getBinaryCreateFunction(50 /* GreaterThanGreaterThanGreaterThanToken */); + }, + get createAdd() { + return getBinaryCreateFunction(40 /* PlusToken */); + }, + get createSubtract() { + return getBinaryCreateFunction(41 /* MinusToken */); + }, + get createMultiply() { + return getBinaryCreateFunction(42 /* AsteriskToken */); + }, + get createDivide() { + return getBinaryCreateFunction(44 /* SlashToken */); + }, + get createModulo() { + return getBinaryCreateFunction(45 /* PercentToken */); + }, + get createExponent() { + return getBinaryCreateFunction(43 /* AsteriskAsteriskToken */); + }, + get createPrefixPlus() { + return getPrefixUnaryCreateFunction(40 /* PlusToken */); + }, + get createPrefixMinus() { + return getPrefixUnaryCreateFunction(41 /* MinusToken */); + }, + get createPrefixIncrement() { + return getPrefixUnaryCreateFunction(46 /* PlusPlusToken */); + }, + get createPrefixDecrement() { + return getPrefixUnaryCreateFunction(47 /* MinusMinusToken */); + }, + get createBitwiseNot() { + return getPrefixUnaryCreateFunction(55 /* TildeToken */); + }, + get createLogicalNot() { + return getPrefixUnaryCreateFunction(54 /* ExclamationToken */); + }, + get createPostfixIncrement() { + return getPostfixUnaryCreateFunction(46 /* PlusPlusToken */); + }, + get createPostfixDecrement() { + return getPostfixUnaryCreateFunction(47 /* MinusMinusToken */); + }, + // Compound nodes + createImmediatelyInvokedFunctionExpression, + createImmediatelyInvokedArrowFunction, + createVoidZero, + createExportDefault, + createExternalModuleExport, + createTypeCheck, + createIsNotTypeCheck, + createMethodCall, + createGlobalMethodCall, + createFunctionBindCall, + createFunctionCallCall, + createFunctionApplyCall, + createArraySliceCall, + createArrayConcatCall, + createObjectDefinePropertyCall, + createObjectGetOwnPropertyDescriptorCall, + createReflectGetCall, + createReflectSetCall, + createPropertyDescriptor, + createCallBinding, + createAssignmentTargetWrapper, + // Utilities + inlineExpressions, + getInternalName, + getLocalName, + getExportName, + getDeclarationName, + getNamespaceMemberName, + getExternalModuleOrNamespaceExportName, + restoreOuterExpressions, + restoreEnclosingLabel, + createUseStrictPrologue, + copyPrologue, + copyStandardPrologue, + copyCustomPrologue, + ensureUseStrict, + liftToBlock, + mergeLexicalEnvironment, + replaceModifiers, + replaceDecoratorsAndModifiers, + replacePropertyName + }; + forEach(nodeFactoryPatchers, (fn) => fn(factory2)); + return factory2; + function createNodeArray(elements, hasTrailingComma) { + if (elements === void 0 || elements === emptyArray) { + elements = []; + } else if (isNodeArray(elements)) { + if (hasTrailingComma === void 0 || elements.hasTrailingComma === hasTrailingComma) { + if (elements.transformFlags === void 0) { + aggregateChildrenFlags(elements); + } + Debug.attachNodeArrayDebugInfo(elements); + return elements; + } + const array2 = elements.slice(); + array2.pos = elements.pos; + array2.end = elements.end; + array2.hasTrailingComma = hasTrailingComma; + array2.transformFlags = elements.transformFlags; + Debug.attachNodeArrayDebugInfo(array2); + return array2; + } + const length2 = elements.length; + const array = length2 >= 1 && length2 <= 4 ? elements.slice() : elements; + array.pos = -1; + array.end = -1; + array.hasTrailingComma = !!hasTrailingComma; + array.transformFlags = 0 /* None */; + aggregateChildrenFlags(array); + Debug.attachNodeArrayDebugInfo(array); + return array; + } + function createBaseNode(kind) { + return baseFactory2.createBaseNode(kind); + } + function createBaseDeclaration(kind) { + const node = createBaseNode(kind); + node.symbol = void 0; + node.localSymbol = void 0; + return node; + } + function finishUpdateBaseSignatureDeclaration(updated, original) { + if (updated !== original) { + updated.typeArguments = original.typeArguments; + } + return update(updated, original); + } + function createNumericLiteral(value, numericLiteralFlags = 0 /* None */) { + const text = typeof value === "number" ? value + "" : value; + Debug.assert(text.charCodeAt(0) !== 45 /* minus */, "Negative numbers should be created in combination with createPrefixUnaryExpression"); + const node = createBaseDeclaration(9 /* NumericLiteral */); + node.text = text; + node.numericLiteralFlags = numericLiteralFlags; + if (numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */) node.transformFlags |= 1024 /* ContainsES2015 */; + return node; + } + function createBigIntLiteral(value) { + const node = createBaseToken(10 /* BigIntLiteral */); + node.text = typeof value === "string" ? value : pseudoBigIntToString(value) + "n"; + node.transformFlags |= 32 /* ContainsES2020 */; + return node; + } + function createBaseStringLiteral(text, isSingleQuote) { + const node = createBaseDeclaration(11 /* StringLiteral */); + node.text = text; + node.singleQuote = isSingleQuote; + return node; + } + function createStringLiteral(text, isSingleQuote, hasExtendedUnicodeEscape) { + const node = createBaseStringLiteral(text, isSingleQuote); + node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape; + if (hasExtendedUnicodeEscape) node.transformFlags |= 1024 /* ContainsES2015 */; + return node; + } + function createStringLiteralFromNode(sourceNode) { + const node = createBaseStringLiteral( + getTextOfIdentifierOrLiteral(sourceNode), + /*isSingleQuote*/ + void 0 + ); + node.textSourceNode = sourceNode; + return node; + } + function createRegularExpressionLiteral(text) { + const node = createBaseToken(14 /* RegularExpressionLiteral */); + node.text = text; + return node; + } + function createLiteralLikeNode(kind, text) { + switch (kind) { + case 9 /* NumericLiteral */: + return createNumericLiteral( + text, + /*numericLiteralFlags*/ + 0 + ); + case 10 /* BigIntLiteral */: + return createBigIntLiteral(text); + case 11 /* StringLiteral */: + return createStringLiteral( + text, + /*isSingleQuote*/ + void 0 + ); + case 12 /* JsxText */: + return createJsxText( + text, + /*containsOnlyTriviaWhiteSpaces*/ + false + ); + case 13 /* JsxTextAllWhiteSpaces */: + return createJsxText( + text, + /*containsOnlyTriviaWhiteSpaces*/ + true + ); + case 14 /* RegularExpressionLiteral */: + return createRegularExpressionLiteral(text); + case 15 /* NoSubstitutionTemplateLiteral */: + return createTemplateLiteralLikeNode( + kind, + text, + /*rawText*/ + void 0, + /*templateFlags*/ + 0 + ); + } + } + function createBaseIdentifier(escapedText) { + const node = baseFactory2.createBaseIdentifierNode(80 /* Identifier */); + node.escapedText = escapedText; + node.jsDoc = void 0; + node.flowNode = void 0; + node.symbol = void 0; + return node; + } + function createBaseGeneratedIdentifier(text, autoGenerateFlags, prefix, suffix) { + const node = createBaseIdentifier(escapeLeadingUnderscores(text)); + setIdentifierAutoGenerate(node, { + flags: autoGenerateFlags, + id: nextAutoGenerateId, + prefix, + suffix + }); + nextAutoGenerateId++; + return node; + } + function createIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape) { + if (originalKeywordKind === void 0 && text) { + originalKeywordKind = stringToToken(text); + } + if (originalKeywordKind === 80 /* Identifier */) { + originalKeywordKind = void 0; + } + const node = createBaseIdentifier(escapeLeadingUnderscores(text)); + if (hasExtendedUnicodeEscape) node.flags |= 256 /* IdentifierHasExtendedUnicodeEscape */; + if (node.escapedText === "await") { + node.transformFlags |= 67108864 /* ContainsPossibleTopLevelAwait */; + } + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { + node.transformFlags |= 1024 /* ContainsES2015 */; + } + return node; + } + function createTempVariable(recordTempVariable, reservedInNestedScopes, prefix, suffix) { + let flags2 = 1 /* Auto */; + if (reservedInNestedScopes) flags2 |= 8 /* ReservedInNestedScopes */; + const name = createBaseGeneratedIdentifier("", flags2, prefix, suffix); + if (recordTempVariable) { + recordTempVariable(name); + } + return name; + } + function createLoopVariable(reservedInNestedScopes) { + let flags2 = 2 /* Loop */; + if (reservedInNestedScopes) flags2 |= 8 /* ReservedInNestedScopes */; + return createBaseGeneratedIdentifier( + "", + flags2, + /*prefix*/ + void 0, + /*suffix*/ + void 0 + ); + } + function createUniqueName(text, flags2 = 0 /* None */, prefix, suffix) { + Debug.assert(!(flags2 & 7 /* KindMask */), "Argument out of range: flags"); + Debug.assert((flags2 & (16 /* Optimistic */ | 32 /* FileLevel */)) !== 32 /* FileLevel */, "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"); + return createBaseGeneratedIdentifier(text, 3 /* Unique */ | flags2, prefix, suffix); + } + function getGeneratedNameForNode(node, flags2 = 0, prefix, suffix) { + Debug.assert(!(flags2 & 7 /* KindMask */), "Argument out of range: flags"); + const text = !node ? "" : isMemberName(node) ? formatGeneratedName( + /*privateName*/ + false, + prefix, + node, + suffix, + idText + ) : `generated@${getNodeId(node)}`; + if (prefix || suffix) flags2 |= 16 /* Optimistic */; + const name = createBaseGeneratedIdentifier(text, 4 /* Node */ | flags2, prefix, suffix); + name.original = node; + return name; + } + function createBasePrivateIdentifier(escapedText) { + const node = baseFactory2.createBasePrivateIdentifierNode(81 /* PrivateIdentifier */); + node.escapedText = escapedText; + node.transformFlags |= 16777216 /* ContainsClassFields */; + return node; + } + function createPrivateIdentifier(text) { + if (!startsWith(text, "#")) Debug.fail("First character of private identifier must be #: " + text); + return createBasePrivateIdentifier(escapeLeadingUnderscores(text)); + } + function createBaseGeneratedPrivateIdentifier(text, autoGenerateFlags, prefix, suffix) { + const node = createBasePrivateIdentifier(escapeLeadingUnderscores(text)); + setIdentifierAutoGenerate(node, { + flags: autoGenerateFlags, + id: nextAutoGenerateId, + prefix, + suffix + }); + nextAutoGenerateId++; + return node; + } + function createUniquePrivateName(text, prefix, suffix) { + if (text && !startsWith(text, "#")) Debug.fail("First character of private identifier must be #: " + text); + const autoGenerateFlags = 8 /* ReservedInNestedScopes */ | (text ? 3 /* Unique */ : 1 /* Auto */); + return createBaseGeneratedPrivateIdentifier(text ?? "", autoGenerateFlags, prefix, suffix); + } + function getGeneratedPrivateNameForNode(node, prefix, suffix) { + const text = isMemberName(node) ? formatGeneratedName( + /*privateName*/ + true, + prefix, + node, + suffix, + idText + ) : `#generated@${getNodeId(node)}`; + const flags2 = prefix || suffix ? 16 /* Optimistic */ : 0 /* None */; + const name = createBaseGeneratedPrivateIdentifier(text, 4 /* Node */ | flags2, prefix, suffix); + name.original = node; + return name; + } + function createBaseToken(kind) { + return baseFactory2.createBaseTokenNode(kind); + } + function createToken(token) { + Debug.assert(token >= 0 /* FirstToken */ && token <= 165 /* LastToken */, "Invalid token"); + Debug.assert(token <= 15 /* FirstTemplateToken */ || token >= 18 /* LastTemplateToken */, "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."); + Debug.assert(token <= 9 /* FirstLiteralToken */ || token >= 15 /* LastLiteralToken */, "Invalid token. Use 'createLiteralLikeNode' to create literals."); + Debug.assert(token !== 80 /* Identifier */, "Invalid token. Use 'createIdentifier' to create identifiers"); + const node = createBaseToken(token); + let transformFlags = 0 /* None */; + switch (token) { + case 134 /* AsyncKeyword */: + transformFlags = 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; + break; + case 160 /* UsingKeyword */: + transformFlags = 4 /* ContainsESNext */; + break; + case 125 /* PublicKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 148 /* ReadonlyKeyword */: + case 128 /* AbstractKeyword */: + case 138 /* DeclareKeyword */: + case 87 /* ConstKeyword */: + case 133 /* AnyKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 146 /* NeverKeyword */: + case 151 /* ObjectKeyword */: + case 103 /* InKeyword */: + case 147 /* OutKeyword */: + case 164 /* OverrideKeyword */: + case 154 /* StringKeyword */: + case 136 /* BooleanKeyword */: + case 155 /* SymbolKeyword */: + case 116 /* VoidKeyword */: + case 159 /* UnknownKeyword */: + case 157 /* UndefinedKeyword */: + transformFlags = 1 /* ContainsTypeScript */; + break; + case 108 /* SuperKeyword */: + transformFlags = 1024 /* ContainsES2015 */ | 134217728 /* ContainsLexicalSuper */; + node.flowNode = void 0; + break; + case 126 /* StaticKeyword */: + transformFlags = 1024 /* ContainsES2015 */; + break; + case 129 /* AccessorKeyword */: + transformFlags = 16777216 /* ContainsClassFields */; + break; + case 110 /* ThisKeyword */: + transformFlags = 16384 /* ContainsLexicalThis */; + node.flowNode = void 0; + break; + } + if (transformFlags) { + node.transformFlags |= transformFlags; + } + return node; + } + function createSuper() { + return createToken(108 /* SuperKeyword */); + } + function createThis() { + return createToken(110 /* ThisKeyword */); + } + function createNull() { + return createToken(106 /* NullKeyword */); + } + function createTrue() { + return createToken(112 /* TrueKeyword */); + } + function createFalse() { + return createToken(97 /* FalseKeyword */); + } + function createModifier(kind) { + return createToken(kind); + } + function createModifiersFromModifierFlags(flags2) { + const result = []; + if (flags2 & 32 /* Export */) result.push(createModifier(95 /* ExportKeyword */)); + if (flags2 & 128 /* Ambient */) result.push(createModifier(138 /* DeclareKeyword */)); + if (flags2 & 2048 /* Default */) result.push(createModifier(90 /* DefaultKeyword */)); + if (flags2 & 4096 /* Const */) result.push(createModifier(87 /* ConstKeyword */)); + if (flags2 & 1 /* Public */) result.push(createModifier(125 /* PublicKeyword */)); + if (flags2 & 2 /* Private */) result.push(createModifier(123 /* PrivateKeyword */)); + if (flags2 & 4 /* Protected */) result.push(createModifier(124 /* ProtectedKeyword */)); + if (flags2 & 64 /* Abstract */) result.push(createModifier(128 /* AbstractKeyword */)); + if (flags2 & 256 /* Static */) result.push(createModifier(126 /* StaticKeyword */)); + if (flags2 & 16 /* Override */) result.push(createModifier(164 /* OverrideKeyword */)); + if (flags2 & 8 /* Readonly */) result.push(createModifier(148 /* ReadonlyKeyword */)); + if (flags2 & 512 /* Accessor */) result.push(createModifier(129 /* AccessorKeyword */)); + if (flags2 & 1024 /* Async */) result.push(createModifier(134 /* AsyncKeyword */)); + if (flags2 & 8192 /* In */) result.push(createModifier(103 /* InKeyword */)); + if (flags2 & 16384 /* Out */) result.push(createModifier(147 /* OutKeyword */)); + return result.length ? result : void 0; + } + function createQualifiedName(left, right) { + const node = createBaseNode(166 /* QualifiedName */); + node.left = left; + node.right = asName(right); + node.transformFlags |= propagateChildFlags(node.left) | propagateIdentifierNameFlags(node.right); + node.flowNode = void 0; + return node; + } + function updateQualifiedName(node, left, right) { + return node.left !== left || node.right !== right ? update(createQualifiedName(left, right), node) : node; + } + function createComputedPropertyName(expression) { + const node = createBaseNode(167 /* ComputedPropertyName */); + node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression); + node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 131072 /* ContainsComputedPropertyName */; + return node; + } + function updateComputedPropertyName(node, expression) { + return node.expression !== expression ? update(createComputedPropertyName(expression), node) : node; + } + function createTypeParameterDeclaration(modifiers, name, constraint, defaultType) { + const node = createBaseDeclaration(168 /* TypeParameter */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.constraint = constraint; + node.default = defaultType; + node.transformFlags = 1 /* ContainsTypeScript */; + node.expression = void 0; + node.jsDoc = void 0; + return node; + } + function updateTypeParameterDeclaration(node, modifiers, name, constraint, defaultType) { + return node.modifiers !== modifiers || node.name !== name || node.constraint !== constraint || node.default !== defaultType ? update(createTypeParameterDeclaration(modifiers, name, constraint, defaultType), node) : node; + } + function createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer) { + const node = createBaseDeclaration(169 /* Parameter */); + node.modifiers = asNodeArray(modifiers); + node.dotDotDotToken = dotDotDotToken; + node.name = asName(name); + node.questionToken = questionToken; + node.type = type; + node.initializer = asInitializer(initializer); + if (isThisIdentifier(node.name)) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.initializer) | (node.questionToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (node.dotDotDotToken ?? node.initializer ? 1024 /* ContainsES2015 */ : 0 /* None */) | (modifiersToFlags(node.modifiers) & 31 /* ParameterPropertyModifier */ ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */); + } + node.jsDoc = void 0; + return node; + } + function updateParameterDeclaration(node, modifiers, dotDotDotToken, name, questionToken, type, initializer) { + return node.modifiers !== modifiers || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type || node.initializer !== initializer ? update(createParameterDeclaration(modifiers, dotDotDotToken, name, questionToken, type, initializer), node) : node; + } + function createDecorator(expression) { + const node = createBaseNode(170 /* Decorator */); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ); + node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */ | 8192 /* ContainsTypeScriptClassSyntax */ | 33554432 /* ContainsDecorators */; + return node; + } + function updateDecorator(node, expression) { + return node.expression !== expression ? update(createDecorator(expression), node) : node; + } + function createPropertySignature(modifiers, name, questionToken, type) { + const node = createBaseDeclaration(171 /* PropertySignature */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.type = type; + node.questionToken = questionToken; + node.transformFlags = 1 /* ContainsTypeScript */; + node.initializer = void 0; + node.jsDoc = void 0; + return node; + } + function updatePropertySignature(node, modifiers, name, questionToken, type) { + return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.type !== type ? finishUpdatePropertySignature(createPropertySignature(modifiers, name, questionToken, type), node) : node; + } + function finishUpdatePropertySignature(updated, original) { + if (updated !== original) { + updated.initializer = original.initializer; + } + return update(updated, original); + } + function createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer) { + const node = createBaseDeclaration(172 /* PropertyDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.questionToken = questionOrExclamationToken && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; + node.exclamationToken = questionOrExclamationToken && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0; + node.type = type; + node.initializer = asInitializer(initializer); + const isAmbient = node.flags & 33554432 /* Ambient */ || modifiersToFlags(node.modifiers) & 128 /* Ambient */; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (isAmbient || node.questionToken || node.exclamationToken || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isComputedPropertyName(node.name) || modifiersToFlags(node.modifiers) & 256 /* Static */ && node.initializer ? 8192 /* ContainsTypeScriptClassSyntax */ : 0 /* None */) | 16777216 /* ContainsClassFields */; + node.jsDoc = void 0; + return node; + } + function updatePropertyDeclaration(node, modifiers, name, questionOrExclamationToken, type, initializer) { + return node.modifiers !== modifiers || node.name !== name || node.questionToken !== (questionOrExclamationToken !== void 0 && isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.exclamationToken !== (questionOrExclamationToken !== void 0 && isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : void 0) || node.type !== type || node.initializer !== initializer ? update(createPropertyDeclaration(modifiers, name, questionOrExclamationToken, type, initializer), node) : node; + } + function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) { + const node = createBaseDeclaration(173 /* MethodSignature */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.questionToken = questionToken; + node.typeParameters = asNodeArray(typeParameters); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateMethodSignature(node, modifiers, name, questionToken, typeParameters, parameters, type) { + return node.modifiers !== modifiers || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node) : node; + } + function createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { + const node = createBaseDeclaration(174 /* MethodDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.asteriskToken = asteriskToken; + node.name = asName(name); + node.questionToken = questionToken; + node.exclamationToken = void 0; + node.typeParameters = asNodeArray(typeParameters); + node.parameters = createNodeArray(parameters); + node.type = type; + node.body = body; + if (!node.body) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; + const isGenerator = !!node.asteriskToken; + const isAsyncGenerator = isAsync && isGenerator; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildFlags(node.questionToken) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.questionToken || node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; + } + node.typeArguments = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateMethodDeclaration(node, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) { + return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.questionToken !== questionToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateMethodDeclaration(createMethodDeclaration(modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body), node) : node; + } + function finishUpdateMethodDeclaration(updated, original) { + if (updated !== original) { + updated.exclamationToken = original.exclamationToken; + } + return update(updated, original); + } + function createClassStaticBlockDeclaration(body) { + const node = createBaseDeclaration(175 /* ClassStaticBlockDeclaration */); + node.body = body; + node.transformFlags = propagateChildFlags(body) | 16777216 /* ContainsClassFields */; + node.modifiers = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateClassStaticBlockDeclaration(node, body) { + return node.body !== body ? finishUpdateClassStaticBlockDeclaration(createClassStaticBlockDeclaration(body), node) : node; + } + function finishUpdateClassStaticBlockDeclaration(updated, original) { + if (updated !== original) { + updated.modifiers = original.modifiers; + } + return update(updated, original); + } + function createConstructorDeclaration(modifiers, parameters, body) { + const node = createBaseDeclaration(176 /* Constructor */); + node.modifiers = asNodeArray(modifiers); + node.parameters = createNodeArray(parameters); + node.body = body; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */; + node.typeParameters = void 0; + node.type = void 0; + node.typeArguments = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateConstructorDeclaration(node, modifiers, parameters, body) { + return node.modifiers !== modifiers || node.parameters !== parameters || node.body !== body ? finishUpdateConstructorDeclaration(createConstructorDeclaration(modifiers, parameters, body), node) : node; + } + function finishUpdateConstructorDeclaration(updated, original) { + if (updated !== original) { + updated.typeParameters = original.typeParameters; + updated.type = original.type; + } + return finishUpdateBaseSignatureDeclaration(updated, original); + } + function createGetAccessorDeclaration(modifiers, name, parameters, type, body) { + const node = createBaseDeclaration(177 /* GetAccessor */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.parameters = createNodeArray(parameters); + node.type = type; + node.body = body; + if (!node.body) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); + } + node.typeArguments = void 0; + node.typeParameters = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateGetAccessorDeclaration(node, modifiers, name, parameters, type, body) { + return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateGetAccessorDeclaration(createGetAccessorDeclaration(modifiers, name, parameters, type, body), node) : node; + } + function finishUpdateGetAccessorDeclaration(updated, original) { + if (updated !== original) { + updated.typeParameters = original.typeParameters; + } + return finishUpdateBaseSignatureDeclaration(updated, original); + } + function createSetAccessorDeclaration(modifiers, name, parameters, body) { + const node = createBaseDeclaration(178 /* SetAccessor */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.parameters = createNodeArray(parameters); + node.body = body; + if (!node.body) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); + } + node.typeArguments = void 0; + node.typeParameters = void 0; + node.type = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateSetAccessorDeclaration(node, modifiers, name, parameters, body) { + return node.modifiers !== modifiers || node.name !== name || node.parameters !== parameters || node.body !== body ? finishUpdateSetAccessorDeclaration(createSetAccessorDeclaration(modifiers, name, parameters, body), node) : node; + } + function finishUpdateSetAccessorDeclaration(updated, original) { + if (updated !== original) { + updated.typeParameters = original.typeParameters; + updated.type = original.type; + } + return finishUpdateBaseSignatureDeclaration(updated, original); + } + function createCallSignature(typeParameters, parameters, type) { + const node = createBaseDeclaration(179 /* CallSignature */); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateCallSignature(node, typeParameters, parameters, type) { + return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node) : node; + } + function createConstructSignature(typeParameters, parameters, type) { + const node = createBaseDeclaration(180 /* ConstructSignature */); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateConstructSignature(node, typeParameters, parameters, type) { + return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node) : node; + } + function createIndexSignature(modifiers, parameters, type) { + const node = createBaseDeclaration(181 /* IndexSignature */); + node.modifiers = asNodeArray(modifiers); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateIndexSignature(node, modifiers, parameters, type) { + return node.parameters !== parameters || node.type !== type || node.modifiers !== modifiers ? finishUpdateBaseSignatureDeclaration(createIndexSignature(modifiers, parameters, type), node) : node; + } + function createTemplateLiteralTypeSpan(type, literal) { + const node = createBaseNode(204 /* TemplateLiteralTypeSpan */); + node.type = type; + node.literal = literal; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTemplateLiteralTypeSpan(node, type, literal) { + return node.type !== type || node.literal !== literal ? update(createTemplateLiteralTypeSpan(type, literal), node) : node; + } + function createKeywordTypeNode(kind) { + return createToken(kind); + } + function createTypePredicateNode(assertsModifier, parameterName, type) { + const node = createBaseNode(182 /* TypePredicate */); + node.assertsModifier = assertsModifier; + node.parameterName = asName(parameterName); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTypePredicateNode(node, assertsModifier, parameterName, type) { + return node.assertsModifier !== assertsModifier || node.parameterName !== parameterName || node.type !== type ? update(createTypePredicateNode(assertsModifier, parameterName, type), node) : node; + } + function createTypeReferenceNode(typeName, typeArguments) { + const node = createBaseNode(183 /* TypeReference */); + node.typeName = asName(typeName); + node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments)); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTypeReferenceNode(node, typeName, typeArguments) { + return node.typeName !== typeName || node.typeArguments !== typeArguments ? update(createTypeReferenceNode(typeName, typeArguments), node) : node; + } + function createFunctionTypeNode(typeParameters, parameters, type) { + const node = createBaseDeclaration(184 /* FunctionType */); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.modifiers = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateFunctionTypeNode(node, typeParameters, parameters, type) { + return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateFunctionTypeNode(createFunctionTypeNode(typeParameters, parameters, type), node) : node; + } + function finishUpdateFunctionTypeNode(updated, original) { + if (updated !== original) { + updated.modifiers = original.modifiers; + } + return finishUpdateBaseSignatureDeclaration(updated, original); + } + function createConstructorTypeNode(...args) { + return args.length === 4 ? createConstructorTypeNode1(...args) : args.length === 3 ? createConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); + } + function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) { + const node = createBaseDeclaration(185 /* ConstructorType */); + node.modifiers = asNodeArray(modifiers); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function createConstructorTypeNode2(typeParameters, parameters, type) { + return createConstructorTypeNode1( + /*modifiers*/ + void 0, + typeParameters, + parameters, + type + ); + } + function updateConstructorTypeNode(...args) { + return args.length === 5 ? updateConstructorTypeNode1(...args) : args.length === 4 ? updateConstructorTypeNode2(...args) : Debug.fail("Incorrect number of arguments specified."); + } + function updateConstructorTypeNode1(node, modifiers, typeParameters, parameters, type) { + return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? finishUpdateBaseSignatureDeclaration(createConstructorTypeNode(modifiers, typeParameters, parameters, type), node) : node; + } + function updateConstructorTypeNode2(node, typeParameters, parameters, type) { + return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type); + } + function createTypeQueryNode(exprName, typeArguments) { + const node = createBaseNode(186 /* TypeQuery */); + node.exprName = exprName; + node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTypeQueryNode(node, exprName, typeArguments) { + return node.exprName !== exprName || node.typeArguments !== typeArguments ? update(createTypeQueryNode(exprName, typeArguments), node) : node; + } + function createTypeLiteralNode(members) { + const node = createBaseDeclaration(187 /* TypeLiteral */); + node.members = createNodeArray(members); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTypeLiteralNode(node, members) { + return node.members !== members ? update(createTypeLiteralNode(members), node) : node; + } + function createArrayTypeNode(elementType) { + const node = createBaseNode(188 /* ArrayType */); + node.elementType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(elementType); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateArrayTypeNode(node, elementType) { + return node.elementType !== elementType ? update(createArrayTypeNode(elementType), node) : node; + } + function createTupleTypeNode(elements) { + const node = createBaseNode(189 /* TupleType */); + node.elements = createNodeArray(parenthesizerRules().parenthesizeElementTypesOfTupleType(elements)); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTupleTypeNode(node, elements) { + return node.elements !== elements ? update(createTupleTypeNode(elements), node) : node; + } + function createNamedTupleMember(dotDotDotToken, name, questionToken, type) { + const node = createBaseDeclaration(202 /* NamedTupleMember */); + node.dotDotDotToken = dotDotDotToken; + node.name = name; + node.questionToken = questionToken; + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + return node; + } + function updateNamedTupleMember(node, dotDotDotToken, name, questionToken, type) { + return node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.questionToken !== questionToken || node.type !== type ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node) : node; + } + function createOptionalTypeNode(type) { + const node = createBaseNode(190 /* OptionalType */); + node.type = parenthesizerRules().parenthesizeTypeOfOptionalType(type); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateOptionalTypeNode(node, type) { + return node.type !== type ? update(createOptionalTypeNode(type), node) : node; + } + function createRestTypeNode(type) { + const node = createBaseNode(191 /* RestType */); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateRestTypeNode(node, type) { + return node.type !== type ? update(createRestTypeNode(type), node) : node; + } + function createUnionOrIntersectionTypeNode(kind, types, parenthesize) { + const node = createBaseNode(kind); + node.types = factory2.createNodeArray(parenthesize(types)); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateUnionOrIntersectionTypeNode(node, types, parenthesize) { + return node.types !== types ? update(createUnionOrIntersectionTypeNode(node.kind, types, parenthesize), node) : node; + } + function createUnionTypeNode(types) { + return createUnionOrIntersectionTypeNode(192 /* UnionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + } + function updateUnionTypeNode(node, types) { + return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfUnionType); + } + function createIntersectionTypeNode(types) { + return createUnionOrIntersectionTypeNode(193 /* IntersectionType */, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + } + function updateIntersectionTypeNode(node, types) { + return updateUnionOrIntersectionTypeNode(node, types, parenthesizerRules().parenthesizeConstituentTypesOfIntersectionType); + } + function createConditionalTypeNode(checkType, extendsType, trueType, falseType) { + const node = createBaseNode(194 /* ConditionalType */); + node.checkType = parenthesizerRules().parenthesizeCheckTypeOfConditionalType(checkType); + node.extendsType = parenthesizerRules().parenthesizeExtendsTypeOfConditionalType(extendsType); + node.trueType = trueType; + node.falseType = falseType; + node.transformFlags = 1 /* ContainsTypeScript */; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateConditionalTypeNode(node, checkType, extendsType, trueType, falseType) { + return node.checkType !== checkType || node.extendsType !== extendsType || node.trueType !== trueType || node.falseType !== falseType ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node) : node; + } + function createInferTypeNode(typeParameter) { + const node = createBaseNode(195 /* InferType */); + node.typeParameter = typeParameter; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateInferTypeNode(node, typeParameter) { + return node.typeParameter !== typeParameter ? update(createInferTypeNode(typeParameter), node) : node; + } + function createTemplateLiteralType(head, templateSpans) { + const node = createBaseNode(203 /* TemplateLiteralType */); + node.head = head; + node.templateSpans = createNodeArray(templateSpans); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTemplateLiteralType(node, head, templateSpans) { + return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateLiteralType(head, templateSpans), node) : node; + } + function createImportTypeNode(argument, attributes, qualifier, typeArguments, isTypeOf = false) { + const node = createBaseNode(205 /* ImportType */); + node.argument = argument; + node.attributes = attributes; + if (node.assertions && node.assertions.assertClause && node.attributes) { + node.assertions.assertClause = node.attributes; + } + node.qualifier = qualifier; + node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); + node.isTypeOf = isTypeOf; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateImportTypeNode(node, argument, attributes, qualifier, typeArguments, isTypeOf = node.isTypeOf) { + return node.argument !== argument || node.attributes !== attributes || node.qualifier !== qualifier || node.typeArguments !== typeArguments || node.isTypeOf !== isTypeOf ? update(createImportTypeNode(argument, attributes, qualifier, typeArguments, isTypeOf), node) : node; + } + function createParenthesizedType(type) { + const node = createBaseNode(196 /* ParenthesizedType */); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateParenthesizedType(node, type) { + return node.type !== type ? update(createParenthesizedType(type), node) : node; + } + function createThisTypeNode() { + const node = createBaseNode(197 /* ThisType */); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function createTypeOperatorNode(operator, type) { + const node = createBaseNode(198 /* TypeOperator */); + node.operator = operator; + node.type = operator === 148 /* ReadonlyKeyword */ ? parenthesizerRules().parenthesizeOperandOfReadonlyTypeOperator(type) : parenthesizerRules().parenthesizeOperandOfTypeOperator(type); + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateTypeOperatorNode(node, type) { + return node.type !== type ? update(createTypeOperatorNode(node.operator, type), node) : node; + } + function createIndexedAccessTypeNode(objectType, indexType) { + const node = createBaseNode(199 /* IndexedAccessType */); + node.objectType = parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(objectType); + node.indexType = indexType; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateIndexedAccessTypeNode(node, objectType, indexType) { + return node.objectType !== objectType || node.indexType !== indexType ? update(createIndexedAccessTypeNode(objectType, indexType), node) : node; + } + function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members) { + const node = createBaseDeclaration(200 /* MappedType */); + node.readonlyToken = readonlyToken; + node.typeParameter = typeParameter; + node.nameType = nameType; + node.questionToken = questionToken; + node.type = type; + node.members = members && createNodeArray(members); + node.transformFlags = 1 /* ContainsTypeScript */; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type, members) { + return node.readonlyToken !== readonlyToken || node.typeParameter !== typeParameter || node.nameType !== nameType || node.questionToken !== questionToken || node.type !== type || node.members !== members ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), node) : node; + } + function createLiteralTypeNode(literal) { + const node = createBaseNode(201 /* LiteralType */); + node.literal = literal; + node.transformFlags = 1 /* ContainsTypeScript */; + return node; + } + function updateLiteralTypeNode(node, literal) { + return node.literal !== literal ? update(createLiteralTypeNode(literal), node) : node; + } + function createObjectBindingPattern(elements) { + const node = createBaseNode(206 /* ObjectBindingPattern */); + node.elements = createNodeArray(elements); + node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; + if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { + node.transformFlags |= 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; + } + return node; + } + function updateObjectBindingPattern(node, elements) { + return node.elements !== elements ? update(createObjectBindingPattern(elements), node) : node; + } + function createArrayBindingPattern(elements) { + const node = createBaseNode(207 /* ArrayBindingPattern */); + node.elements = createNodeArray(elements); + node.transformFlags |= propagateChildrenFlags(node.elements) | 1024 /* ContainsES2015 */ | 524288 /* ContainsBindingPattern */; + return node; + } + function updateArrayBindingPattern(node, elements) { + return node.elements !== elements ? update(createArrayBindingPattern(elements), node) : node; + } + function createBindingElement(dotDotDotToken, propertyName, name, initializer) { + const node = createBaseDeclaration(208 /* BindingElement */); + node.dotDotDotToken = dotDotDotToken; + node.propertyName = asName(propertyName); + node.name = asName(name); + node.initializer = asInitializer(initializer); + node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateNameFlags(node.propertyName) | propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.dotDotDotToken ? 32768 /* ContainsRestOrSpread */ : 0 /* None */) | 1024 /* ContainsES2015 */; + node.flowNode = void 0; + return node; + } + function updateBindingElement(node, dotDotDotToken, propertyName, name, initializer) { + return node.propertyName !== propertyName || node.dotDotDotToken !== dotDotDotToken || node.name !== name || node.initializer !== initializer ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node) : node; + } + function createArrayLiteralExpression(elements, multiLine) { + const node = createBaseNode(209 /* ArrayLiteralExpression */); + const lastElement = elements && lastOrUndefined(elements); + const elementsArray = createNodeArray(elements, lastElement && isOmittedExpression(lastElement) ? true : void 0); + node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray); + node.multiLine = multiLine; + node.transformFlags |= propagateChildrenFlags(node.elements); + return node; + } + function updateArrayLiteralExpression(node, elements) { + return node.elements !== elements ? update(createArrayLiteralExpression(elements, node.multiLine), node) : node; + } + function createObjectLiteralExpression(properties, multiLine) { + const node = createBaseDeclaration(210 /* ObjectLiteralExpression */); + node.properties = createNodeArray(properties); + node.multiLine = multiLine; + node.transformFlags |= propagateChildrenFlags(node.properties); + node.jsDoc = void 0; + return node; + } + function updateObjectLiteralExpression(node, properties) { + return node.properties !== properties ? update(createObjectLiteralExpression(properties, node.multiLine), node) : node; + } + function createBasePropertyAccessExpression(expression, questionDotToken, name) { + const node = createBaseDeclaration(211 /* PropertyAccessExpression */); + node.expression = expression; + node.questionDotToken = questionDotToken; + node.name = name; + node.transformFlags = propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | (isIdentifier(node.name) ? propagateIdentifierNameFlags(node.name) : propagateChildFlags(node.name) | 536870912 /* ContainsPrivateIdentifierInExpression */); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function createPropertyAccessExpression(expression, name) { + const node = createBasePropertyAccessExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ), + /*questionDotToken*/ + void 0, + asName(name) + ); + if (isSuperKeyword(expression)) { + node.transformFlags |= 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; + } + return node; + } + function updatePropertyAccessExpression(node, expression, name) { + if (isPropertyAccessChain(node)) { + return updatePropertyAccessChain(node, expression, node.questionDotToken, cast(name, isIdentifier)); + } + return node.expression !== expression || node.name !== name ? update(createPropertyAccessExpression(expression, name), node) : node; + } + function createPropertyAccessChain(expression, questionDotToken, name) { + const node = createBasePropertyAccessExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + true + ), + questionDotToken, + asName(name) + ); + node.flags |= 64 /* OptionalChain */; + node.transformFlags |= 32 /* ContainsES2020 */; + return node; + } + function updatePropertyAccessChain(node, expression, questionDotToken, name) { + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."); + return node.expression !== expression || node.questionDotToken !== questionDotToken || node.name !== name ? update(createPropertyAccessChain(expression, questionDotToken, name), node) : node; + } + function createBaseElementAccessExpression(expression, questionDotToken, argumentExpression) { + const node = createBaseDeclaration(212 /* ElementAccessExpression */); + node.expression = expression; + node.questionDotToken = questionDotToken; + node.argumentExpression = argumentExpression; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildFlags(node.argumentExpression); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function createElementAccessExpression(expression, index) { + const node = createBaseElementAccessExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ), + /*questionDotToken*/ + void 0, + asExpression(index) + ); + if (isSuperKeyword(expression)) { + node.transformFlags |= 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */; + } + return node; + } + function updateElementAccessExpression(node, expression, argumentExpression) { + if (isElementAccessChain(node)) { + return updateElementAccessChain(node, expression, node.questionDotToken, argumentExpression); + } + return node.expression !== expression || node.argumentExpression !== argumentExpression ? update(createElementAccessExpression(expression, argumentExpression), node) : node; + } + function createElementAccessChain(expression, questionDotToken, index) { + const node = createBaseElementAccessExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + true + ), + questionDotToken, + asExpression(index) + ); + node.flags |= 64 /* OptionalChain */; + node.transformFlags |= 32 /* ContainsES2020 */; + return node; + } + function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) { + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."); + return node.expression !== expression || node.questionDotToken !== questionDotToken || node.argumentExpression !== argumentExpression ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node) : node; + } + function createBaseCallExpression(expression, questionDotToken, typeArguments, argumentsArray) { + const node = createBaseDeclaration(213 /* CallExpression */); + node.expression = expression; + node.questionDotToken = questionDotToken; + node.typeArguments = typeArguments; + node.arguments = argumentsArray; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.questionDotToken) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments); + if (node.typeArguments) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + if (isSuperProperty(node.expression)) { + node.transformFlags |= 16384 /* ContainsLexicalThis */; + } + return node; + } + function createCallExpression(expression, typeArguments, argumentsArray) { + const node = createBaseCallExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ), + /*questionDotToken*/ + void 0, + asNodeArray(typeArguments), + parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) + ); + if (isImportKeyword(node.expression)) { + node.transformFlags |= 8388608 /* ContainsDynamicImport */; + } + return node; + } + function updateCallExpression(node, expression, typeArguments, argumentsArray) { + if (isCallChain(node)) { + return updateCallChain(node, expression, node.questionDotToken, typeArguments, argumentsArray); + } + return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallExpression(expression, typeArguments, argumentsArray), node) : node; + } + function createCallChain(expression, questionDotToken, typeArguments, argumentsArray) { + const node = createBaseCallExpression( + parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + true + ), + questionDotToken, + asNodeArray(typeArguments), + parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray)) + ); + node.flags |= 64 /* OptionalChain */; + node.transformFlags |= 32 /* ContainsES2020 */; + return node; + } + function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) { + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead."); + return node.expression !== expression || node.questionDotToken !== questionDotToken || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node) : node; + } + function createNewExpression(expression, typeArguments, argumentsArray) { + const node = createBaseDeclaration(214 /* NewExpression */); + node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression); + node.typeArguments = asNodeArray(typeArguments); + node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : void 0; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | propagateChildrenFlags(node.arguments) | 32 /* ContainsES2020 */; + if (node.typeArguments) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + return node; + } + function updateNewExpression(node, expression, typeArguments, argumentsArray) { + return node.expression !== expression || node.typeArguments !== typeArguments || node.arguments !== argumentsArray ? update(createNewExpression(expression, typeArguments, argumentsArray), node) : node; + } + function createTaggedTemplateExpression(tag, typeArguments, template) { + const node = createBaseNode(215 /* TaggedTemplateExpression */); + node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess( + tag, + /*optionalChain*/ + false + ); + node.typeArguments = asNodeArray(typeArguments); + node.template = template; + node.transformFlags |= propagateChildFlags(node.tag) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.template) | 1024 /* ContainsES2015 */; + if (node.typeArguments) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + if (hasInvalidEscape(node.template)) { + node.transformFlags |= 128 /* ContainsES2018 */; + } + return node; + } + function updateTaggedTemplateExpression(node, tag, typeArguments, template) { + return node.tag !== tag || node.typeArguments !== typeArguments || node.template !== template ? update(createTaggedTemplateExpression(tag, typeArguments, template), node) : node; + } + function createTypeAssertion(type, expression) { + const node = createBaseNode(216 /* TypeAssertionExpression */); + node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); + node.type = type; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; + return node; + } + function updateTypeAssertion(node, type, expression) { + return node.type !== type || node.expression !== expression ? update(createTypeAssertion(type, expression), node) : node; + } + function createParenthesizedExpression(expression) { + const node = createBaseNode(217 /* ParenthesizedExpression */); + node.expression = expression; + node.transformFlags = propagateChildFlags(node.expression); + node.jsDoc = void 0; + return node; + } + function updateParenthesizedExpression(node, expression) { + return node.expression !== expression ? update(createParenthesizedExpression(expression), node) : node; + } + function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { + const node = createBaseDeclaration(218 /* FunctionExpression */); + node.modifiers = asNodeArray(modifiers); + node.asteriskToken = asteriskToken; + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = createNodeArray(parameters); + node.type = type; + node.body = body; + const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; + const isGenerator = !!node.asteriskToken; + const isAsyncGenerator = isAsync && isGenerator; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + node.typeArguments = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateFunctionExpression(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) { + return node.name !== name || node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateBaseSignatureDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; + } + function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { + const node = createBaseDeclaration(219 /* ArrowFunction */); + node.modifiers = asNodeArray(modifiers); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = createNodeArray(parameters); + node.type = type; + node.equalsGreaterThanToken = equalsGreaterThanToken ?? createToken(39 /* EqualsGreaterThanToken */); + node.body = parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body); + const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.equalsGreaterThanToken) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | (isAsync ? 256 /* ContainsES2017 */ | 16384 /* ContainsLexicalThis */ : 0 /* None */) | 1024 /* ContainsES2015 */; + node.typeArguments = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) { + return node.modifiers !== modifiers || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.equalsGreaterThanToken !== equalsGreaterThanToken || node.body !== body ? finishUpdateBaseSignatureDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node) : node; + } + function createDeleteExpression(expression) { + const node = createBaseNode(220 /* DeleteExpression */); + node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); + node.transformFlags |= propagateChildFlags(node.expression); + return node; + } + function updateDeleteExpression(node, expression) { + return node.expression !== expression ? update(createDeleteExpression(expression), node) : node; + } + function createTypeOfExpression(expression) { + const node = createBaseNode(221 /* TypeOfExpression */); + node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); + node.transformFlags |= propagateChildFlags(node.expression); + return node; + } + function updateTypeOfExpression(node, expression) { + return node.expression !== expression ? update(createTypeOfExpression(expression), node) : node; + } + function createVoidExpression(expression) { + const node = createBaseNode(222 /* VoidExpression */); + node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); + node.transformFlags |= propagateChildFlags(node.expression); + return node; + } + function updateVoidExpression(node, expression) { + return node.expression !== expression ? update(createVoidExpression(expression), node) : node; + } + function createAwaitExpression(expression) { + const node = createBaseNode(223 /* AwaitExpression */); + node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression); + node.transformFlags |= propagateChildFlags(node.expression) | 256 /* ContainsES2017 */ | 128 /* ContainsES2018 */ | 2097152 /* ContainsAwait */; + return node; + } + function updateAwaitExpression(node, expression) { + return node.expression !== expression ? update(createAwaitExpression(expression), node) : node; + } + function createPrefixUnaryExpression(operator, operand) { + const node = createBaseNode(224 /* PrefixUnaryExpression */); + node.operator = operator; + node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand); + node.transformFlags |= propagateChildFlags(node.operand); + if ((operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) { + node.transformFlags |= 268435456 /* ContainsUpdateExpressionForIdentifier */; + } + return node; + } + function updatePrefixUnaryExpression(node, operand) { + return node.operand !== operand ? update(createPrefixUnaryExpression(node.operator, operand), node) : node; + } + function createPostfixUnaryExpression(operand, operator) { + const node = createBaseNode(225 /* PostfixUnaryExpression */); + node.operator = operator; + node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand); + node.transformFlags |= propagateChildFlags(node.operand); + if (isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand)) { + node.transformFlags |= 268435456 /* ContainsUpdateExpressionForIdentifier */; + } + return node; + } + function updatePostfixUnaryExpression(node, operand) { + return node.operand !== operand ? update(createPostfixUnaryExpression(operand, node.operator), node) : node; + } + function createBinaryExpression(left, operator, right) { + const node = createBaseDeclaration(226 /* BinaryExpression */); + const operatorToken = asToken(operator); + const operatorKind = operatorToken.kind; + node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left); + node.operatorToken = operatorToken; + node.right = parenthesizerRules().parenthesizeRightSideOfBinary(operatorKind, node.left, right); + node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.operatorToken) | propagateChildFlags(node.right); + if (operatorKind === 61 /* QuestionQuestionToken */) { + node.transformFlags |= 32 /* ContainsES2020 */; + } else if (operatorKind === 64 /* EqualsToken */) { + if (isObjectLiteralExpression(node.left)) { + node.transformFlags |= 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 4096 /* ContainsDestructuringAssignment */ | propagateAssignmentPatternFlags(node.left); + } else if (isArrayLiteralExpression(node.left)) { + node.transformFlags |= 1024 /* ContainsES2015 */ | 4096 /* ContainsDestructuringAssignment */ | propagateAssignmentPatternFlags(node.left); + } + } else if (operatorKind === 43 /* AsteriskAsteriskToken */ || operatorKind === 68 /* AsteriskAsteriskEqualsToken */) { + node.transformFlags |= 512 /* ContainsES2016 */; + } else if (isLogicalOrCoalescingAssignmentOperator(operatorKind)) { + node.transformFlags |= 16 /* ContainsES2021 */; + } + if (operatorKind === 103 /* InKeyword */ && isPrivateIdentifier(node.left)) { + node.transformFlags |= 536870912 /* ContainsPrivateIdentifierInExpression */; + } + node.jsDoc = void 0; + return node; + } + function propagateAssignmentPatternFlags(node) { + return containsObjectRestOrSpread(node) ? 65536 /* ContainsObjectRestOrSpread */ : 0 /* None */; + } + function updateBinaryExpression(node, left, operator, right) { + return node.left !== left || node.operatorToken !== operator || node.right !== right ? update(createBinaryExpression(left, operator, right), node) : node; + } + function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) { + const node = createBaseNode(227 /* ConditionalExpression */); + node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition); + node.questionToken = questionToken ?? createToken(58 /* QuestionToken */); + node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue); + node.colonToken = colonToken ?? createToken(59 /* ColonToken */); + node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse); + node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse); + return node; + } + function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) { + return node.condition !== condition || node.questionToken !== questionToken || node.whenTrue !== whenTrue || node.colonToken !== colonToken || node.whenFalse !== whenFalse ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node) : node; + } + function createTemplateExpression(head, templateSpans) { + const node = createBaseNode(228 /* TemplateExpression */); + node.head = head; + node.templateSpans = createNodeArray(templateSpans); + node.transformFlags |= propagateChildFlags(node.head) | propagateChildrenFlags(node.templateSpans) | 1024 /* ContainsES2015 */; + return node; + } + function updateTemplateExpression(node, head, templateSpans) { + return node.head !== head || node.templateSpans !== templateSpans ? update(createTemplateExpression(head, templateSpans), node) : node; + } + function checkTemplateLiteralLikeNode(kind, text, rawText, templateFlags = 0 /* None */) { + Debug.assert(!(templateFlags & ~7176 /* TemplateLiteralLikeFlags */), "Unsupported template flags."); + let cooked = void 0; + if (rawText !== void 0 && rawText !== text) { + cooked = getCookedText(kind, rawText); + if (typeof cooked === "object") { + return Debug.fail("Invalid raw text"); + } + } + if (text === void 0) { + if (cooked === void 0) { + return Debug.fail("Arguments 'text' and 'rawText' may not both be undefined."); + } + text = cooked; + } else if (cooked !== void 0) { + Debug.assert(text === cooked, "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."); + } + return text; + } + function getTransformFlagsOfTemplateLiteralLike(templateFlags) { + let transformFlags = 1024 /* ContainsES2015 */; + if (templateFlags) { + transformFlags |= 128 /* ContainsES2018 */; + } + return transformFlags; + } + function createTemplateLiteralLikeToken(kind, text, rawText, templateFlags) { + const node = createBaseToken(kind); + node.text = text; + node.rawText = rawText; + node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */; + node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags); + return node; + } + function createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags) { + const node = createBaseDeclaration(kind); + node.text = text; + node.rawText = rawText; + node.templateFlags = templateFlags & 7176 /* TemplateLiteralLikeFlags */; + node.transformFlags = getTransformFlagsOfTemplateLiteralLike(node.templateFlags); + return node; + } + function createTemplateLiteralLikeNode(kind, text, rawText, templateFlags) { + if (kind === 15 /* NoSubstitutionTemplateLiteral */) { + return createTemplateLiteralLikeDeclaration(kind, text, rawText, templateFlags); + } + return createTemplateLiteralLikeToken(kind, text, rawText, templateFlags); + } + function createTemplateHead(text, rawText, templateFlags) { + text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); + return createTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); + } + function createTemplateMiddle(text, rawText, templateFlags) { + text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); + return createTemplateLiteralLikeNode(17 /* TemplateMiddle */, text, rawText, templateFlags); + } + function createTemplateTail(text, rawText, templateFlags) { + text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); + return createTemplateLiteralLikeNode(18 /* TemplateTail */, text, rawText, templateFlags); + } + function createNoSubstitutionTemplateLiteral(text, rawText, templateFlags) { + text = checkTemplateLiteralLikeNode(16 /* TemplateHead */, text, rawText, templateFlags); + return createTemplateLiteralLikeDeclaration(15 /* NoSubstitutionTemplateLiteral */, text, rawText, templateFlags); + } + function createYieldExpression(asteriskToken, expression) { + Debug.assert(!asteriskToken || !!expression, "A `YieldExpression` with an asteriskToken must have an expression."); + const node = createBaseNode(229 /* YieldExpression */); + node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.asteriskToken = asteriskToken; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.asteriskToken) | 1024 /* ContainsES2015 */ | 128 /* ContainsES2018 */ | 1048576 /* ContainsYield */; + return node; + } + function updateYieldExpression(node, asteriskToken, expression) { + return node.expression !== expression || node.asteriskToken !== asteriskToken ? update(createYieldExpression(asteriskToken, expression), node) : node; + } + function createSpreadElement(expression) { + const node = createBaseNode(230 /* SpreadElement */); + node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.transformFlags |= propagateChildFlags(node.expression) | 1024 /* ContainsES2015 */ | 32768 /* ContainsRestOrSpread */; + return node; + } + function updateSpreadElement(node, expression) { + return node.expression !== expression ? update(createSpreadElement(expression), node) : node; + } + function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) { + const node = createBaseDeclaration(231 /* ClassExpression */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.heritageClauses = asNodeArray(heritageClauses); + node.members = createNodeArray(members); + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; + node.jsDoc = void 0; + return node; + } + function updateClassExpression(node, modifiers, name, typeParameters, heritageClauses, members) { + return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassExpression(modifiers, name, typeParameters, heritageClauses, members), node) : node; + } + function createOmittedExpression() { + return createBaseNode(232 /* OmittedExpression */); + } + function createExpressionWithTypeArguments(expression, typeArguments) { + const node = createBaseNode(233 /* ExpressionWithTypeArguments */); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ); + node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments); + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.typeArguments) | 1024 /* ContainsES2015 */; + return node; + } + function updateExpressionWithTypeArguments(node, expression, typeArguments) { + return node.expression !== expression || node.typeArguments !== typeArguments ? update(createExpressionWithTypeArguments(expression, typeArguments), node) : node; + } + function createAsExpression(expression, type) { + const node = createBaseNode(234 /* AsExpression */); + node.expression = expression; + node.type = type; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; + return node; + } + function updateAsExpression(node, expression, type) { + return node.expression !== expression || node.type !== type ? update(createAsExpression(expression, type), node) : node; + } + function createNonNullExpression(expression) { + const node = createBaseNode(235 /* NonNullExpression */); + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ); + node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; + return node; + } + function updateNonNullExpression(node, expression) { + if (isNonNullChain(node)) { + return updateNonNullChain(node, expression); + } + return node.expression !== expression ? update(createNonNullExpression(expression), node) : node; + } + function createSatisfiesExpression(expression, type) { + const node = createBaseNode(238 /* SatisfiesExpression */); + node.expression = expression; + node.type = type; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.type) | 1 /* ContainsTypeScript */; + return node; + } + function updateSatisfiesExpression(node, expression, type) { + return node.expression !== expression || node.type !== type ? update(createSatisfiesExpression(expression, type), node) : node; + } + function createNonNullChain(expression) { + const node = createBaseNode(235 /* NonNullExpression */); + node.flags |= 64 /* OptionalChain */; + node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + true + ); + node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; + return node; + } + function updateNonNullChain(node, expression) { + Debug.assert(!!(node.flags & 64 /* OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."); + return node.expression !== expression ? update(createNonNullChain(expression), node) : node; + } + function createMetaProperty(keywordToken, name) { + const node = createBaseNode(236 /* MetaProperty */); + node.keywordToken = keywordToken; + node.name = name; + node.transformFlags |= propagateChildFlags(node.name); + switch (keywordToken) { + case 105 /* NewKeyword */: + node.transformFlags |= 1024 /* ContainsES2015 */; + break; + case 102 /* ImportKeyword */: + node.transformFlags |= 32 /* ContainsES2020 */; + break; + default: + return Debug.assertNever(keywordToken); + } + node.flowNode = void 0; + return node; + } + function updateMetaProperty(node, name) { + return node.name !== name ? update(createMetaProperty(node.keywordToken, name), node) : node; + } + function createTemplateSpan(expression, literal) { + const node = createBaseNode(239 /* TemplateSpan */); + node.expression = expression; + node.literal = literal; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.literal) | 1024 /* ContainsES2015 */; + return node; + } + function updateTemplateSpan(node, expression, literal) { + return node.expression !== expression || node.literal !== literal ? update(createTemplateSpan(expression, literal), node) : node; + } + function createSemicolonClassElement() { + const node = createBaseNode(240 /* SemicolonClassElement */); + node.transformFlags |= 1024 /* ContainsES2015 */; + return node; + } + function createBlock(statements, multiLine) { + const node = createBaseNode(241 /* Block */); + node.statements = createNodeArray(statements); + node.multiLine = multiLine; + node.transformFlags |= propagateChildrenFlags(node.statements); + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateBlock(node, statements) { + return node.statements !== statements ? update(createBlock(statements, node.multiLine), node) : node; + } + function createVariableStatement(modifiers, declarationList) { + const node = createBaseNode(243 /* VariableStatement */); + node.modifiers = asNodeArray(modifiers); + node.declarationList = isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList; + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.declarationList); + if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { + node.transformFlags = 1 /* ContainsTypeScript */; + } + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateVariableStatement(node, modifiers, declarationList) { + return node.modifiers !== modifiers || node.declarationList !== declarationList ? update(createVariableStatement(modifiers, declarationList), node) : node; + } + function createEmptyStatement() { + const node = createBaseNode(242 /* EmptyStatement */); + node.jsDoc = void 0; + return node; + } + function createExpressionStatement(expression) { + const node = createBaseNode(244 /* ExpressionStatement */); + node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression); + node.transformFlags |= propagateChildFlags(node.expression); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateExpressionStatement(node, expression) { + return node.expression !== expression ? update(createExpressionStatement(expression), node) : node; + } + function createIfStatement(expression, thenStatement, elseStatement) { + const node = createBaseNode(245 /* IfStatement */); + node.expression = expression; + node.thenStatement = asEmbeddedStatement(thenStatement); + node.elseStatement = asEmbeddedStatement(elseStatement); + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thenStatement) | propagateChildFlags(node.elseStatement); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateIfStatement(node, expression, thenStatement, elseStatement) { + return node.expression !== expression || node.thenStatement !== thenStatement || node.elseStatement !== elseStatement ? update(createIfStatement(expression, thenStatement, elseStatement), node) : node; + } + function createDoStatement(statement, expression) { + const node = createBaseNode(246 /* DoStatement */); + node.statement = asEmbeddedStatement(statement); + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.statement) | propagateChildFlags(node.expression); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateDoStatement(node, statement, expression) { + return node.statement !== statement || node.expression !== expression ? update(createDoStatement(statement, expression), node) : node; + } + function createWhileStatement(expression, statement) { + const node = createBaseNode(247 /* WhileStatement */); + node.expression = expression; + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateWhileStatement(node, expression, statement) { + return node.expression !== expression || node.statement !== statement ? update(createWhileStatement(expression, statement), node) : node; + } + function createForStatement(initializer, condition, incrementor, statement) { + const node = createBaseNode(248 /* ForStatement */); + node.initializer = initializer; + node.condition = condition; + node.incrementor = incrementor; + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.condition) | propagateChildFlags(node.incrementor) | propagateChildFlags(node.statement); + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + return node; + } + function updateForStatement(node, initializer, condition, incrementor, statement) { + return node.initializer !== initializer || node.condition !== condition || node.incrementor !== incrementor || node.statement !== statement ? update(createForStatement(initializer, condition, incrementor, statement), node) : node; + } + function createForInStatement(initializer, expression, statement) { + const node = createBaseNode(249 /* ForInStatement */); + node.initializer = initializer; + node.expression = expression; + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement); + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + return node; + } + function updateForInStatement(node, initializer, expression, statement) { + return node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForInStatement(initializer, expression, statement), node) : node; + } + function createForOfStatement(awaitModifier, initializer, expression, statement) { + const node = createBaseNode(250 /* ForOfStatement */); + node.awaitModifier = awaitModifier; + node.initializer = initializer; + node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.awaitModifier) | propagateChildFlags(node.initializer) | propagateChildFlags(node.expression) | propagateChildFlags(node.statement) | 1024 /* ContainsES2015 */; + if (awaitModifier) node.transformFlags |= 128 /* ContainsES2018 */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.flowNode = void 0; + return node; + } + function updateForOfStatement(node, awaitModifier, initializer, expression, statement) { + return node.awaitModifier !== awaitModifier || node.initializer !== initializer || node.expression !== expression || node.statement !== statement ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node) : node; + } + function createContinueStatement(label) { + const node = createBaseNode(251 /* ContinueStatement */); + node.label = asName(label); + node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateContinueStatement(node, label) { + return node.label !== label ? update(createContinueStatement(label), node) : node; + } + function createBreakStatement(label) { + const node = createBaseNode(252 /* BreakStatement */); + node.label = asName(label); + node.transformFlags |= propagateChildFlags(node.label) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateBreakStatement(node, label) { + return node.label !== label ? update(createBreakStatement(label), node) : node; + } + function createReturnStatement(expression) { + const node = createBaseNode(253 /* ReturnStatement */); + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateReturnStatement(node, expression) { + return node.expression !== expression ? update(createReturnStatement(expression), node) : node; + } + function createWithStatement(expression, statement) { + const node = createBaseNode(254 /* WithStatement */); + node.expression = expression; + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.statement); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateWithStatement(node, expression, statement) { + return node.expression !== expression || node.statement !== statement ? update(createWithStatement(expression, statement), node) : node; + } + function createSwitchStatement(expression, caseBlock) { + const node = createBaseNode(255 /* SwitchStatement */); + node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.caseBlock = caseBlock; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.caseBlock); + node.jsDoc = void 0; + node.flowNode = void 0; + node.possiblyExhaustive = false; + return node; + } + function updateSwitchStatement(node, expression, caseBlock) { + return node.expression !== expression || node.caseBlock !== caseBlock ? update(createSwitchStatement(expression, caseBlock), node) : node; + } + function createLabeledStatement(label, statement) { + const node = createBaseNode(256 /* LabeledStatement */); + node.label = asName(label); + node.statement = asEmbeddedStatement(statement); + node.transformFlags |= propagateChildFlags(node.label) | propagateChildFlags(node.statement); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateLabeledStatement(node, label, statement) { + return node.label !== label || node.statement !== statement ? update(createLabeledStatement(label, statement), node) : node; + } + function createThrowStatement(expression) { + const node = createBaseNode(257 /* ThrowStatement */); + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.expression); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateThrowStatement(node, expression) { + return node.expression !== expression ? update(createThrowStatement(expression), node) : node; + } + function createTryStatement(tryBlock, catchClause, finallyBlock) { + const node = createBaseNode(258 /* TryStatement */); + node.tryBlock = tryBlock; + node.catchClause = catchClause; + node.finallyBlock = finallyBlock; + node.transformFlags |= propagateChildFlags(node.tryBlock) | propagateChildFlags(node.catchClause) | propagateChildFlags(node.finallyBlock); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function updateTryStatement(node, tryBlock, catchClause, finallyBlock) { + return node.tryBlock !== tryBlock || node.catchClause !== catchClause || node.finallyBlock !== finallyBlock ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node) : node; + } + function createDebuggerStatement() { + const node = createBaseNode(259 /* DebuggerStatement */); + node.jsDoc = void 0; + node.flowNode = void 0; + return node; + } + function createVariableDeclaration(name, exclamationToken, type, initializer) { + const node = createBaseDeclaration(260 /* VariableDeclaration */); + node.name = asName(name); + node.exclamationToken = exclamationToken; + node.type = type; + node.initializer = asInitializer(initializer); + node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer) | (node.exclamationToken ?? node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); + node.jsDoc = void 0; + return node; + } + function updateVariableDeclaration(node, name, exclamationToken, type, initializer) { + return node.name !== name || node.type !== type || node.exclamationToken !== exclamationToken || node.initializer !== initializer ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node) : node; + } + function createVariableDeclarationList(declarations, flags2 = 0 /* None */) { + const node = createBaseNode(261 /* VariableDeclarationList */); + node.flags |= flags2 & 7 /* BlockScoped */; + node.declarations = createNodeArray(declarations); + node.transformFlags |= propagateChildrenFlags(node.declarations) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + if (flags2 & 7 /* BlockScoped */) { + node.transformFlags |= 1024 /* ContainsES2015 */ | 262144 /* ContainsBlockScopedBinding */; + } + if (flags2 & 4 /* Using */) { + node.transformFlags |= 4 /* ContainsESNext */; + } + return node; + } + function updateVariableDeclarationList(node, declarations) { + return node.declarations !== declarations ? update(createVariableDeclarationList(declarations, node.flags), node) : node; + } + function createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body) { + const node = createBaseDeclaration(262 /* FunctionDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.asteriskToken = asteriskToken; + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = createNodeArray(parameters); + node.type = type; + node.body = body; + if (!node.body || modifiersToFlags(node.modifiers) & 128 /* Ambient */) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + const isAsync = modifiersToFlags(node.modifiers) & 1024 /* Async */; + const isGenerator = !!node.asteriskToken; + const isAsyncGenerator = isAsync && isGenerator; + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.asteriskToken) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.type) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | (isAsyncGenerator ? 128 /* ContainsES2018 */ : isAsync ? 256 /* ContainsES2017 */ : isGenerator ? 2048 /* ContainsGenerator */ : 0 /* None */) | (node.typeParameters || node.type ? 1 /* ContainsTypeScript */ : 0 /* None */) | 4194304 /* ContainsHoistedDeclarationOrCompletion */; + } + node.typeArguments = void 0; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.endFlowNode = void 0; + node.returnFlowNode = void 0; + return node; + } + function updateFunctionDeclaration(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) { + return node.modifiers !== modifiers || node.asteriskToken !== asteriskToken || node.name !== name || node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type || node.body !== body ? finishUpdateFunctionDeclaration(createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node) : node; + } + function finishUpdateFunctionDeclaration(updated, original) { + if (updated !== original) { + if (updated.modifiers === original.modifiers) { + updated.modifiers = original.modifiers; + } + } + return finishUpdateBaseSignatureDeclaration(updated, original); + } + function createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) { + const node = createBaseDeclaration(263 /* ClassDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.heritageClauses = asNodeArray(heritageClauses); + node.members = createNodeArray(members); + if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateNameFlags(node.name) | propagateChildrenFlags(node.typeParameters) | propagateChildrenFlags(node.heritageClauses) | propagateChildrenFlags(node.members) | (node.typeParameters ? 1 /* ContainsTypeScript */ : 0 /* None */) | 1024 /* ContainsES2015 */; + if (node.transformFlags & 8192 /* ContainsTypeScriptClassSyntax */) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + } + node.jsDoc = void 0; + return node; + } + function updateClassDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) { + return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; + } + function createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members) { + const node = createBaseDeclaration(264 /* InterfaceDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.heritageClauses = asNodeArray(heritageClauses); + node.members = createNodeArray(members); + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + return node; + } + function updateInterfaceDeclaration(node, modifiers, name, typeParameters, heritageClauses, members) { + return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.heritageClauses !== heritageClauses || node.members !== members ? update(createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), node) : node; + } + function createTypeAliasDeclaration(modifiers, name, typeParameters, type) { + const node = createBaseDeclaration(265 /* TypeAliasDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.typeParameters = asNodeArray(typeParameters); + node.type = type; + node.transformFlags = 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateTypeAliasDeclaration(node, modifiers, name, typeParameters, type) { + return node.modifiers !== modifiers || node.name !== name || node.typeParameters !== typeParameters || node.type !== type ? update(createTypeAliasDeclaration(modifiers, name, typeParameters, type), node) : node; + } + function createEnumDeclaration(modifiers, name, members) { + const node = createBaseDeclaration(266 /* EnumDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.members = createNodeArray(members); + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildrenFlags(node.members) | 1 /* ContainsTypeScript */; + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateEnumDeclaration(node, modifiers, name, members) { + return node.modifiers !== modifiers || node.name !== name || node.members !== members ? update(createEnumDeclaration(modifiers, name, members), node) : node; + } + function createModuleDeclaration(modifiers, name, body, flags2 = 0 /* None */) { + const node = createBaseDeclaration(267 /* ModuleDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.flags |= flags2 & (32 /* Namespace */ | 8 /* NestedNamespace */ | 2048 /* GlobalAugmentation */); + node.name = name; + node.body = body; + if (modifiersToFlags(node.modifiers) & 128 /* Ambient */) { + node.transformFlags = 1 /* ContainsTypeScript */; + } else { + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.name) | propagateChildFlags(node.body) | 1 /* ContainsTypeScript */; + } + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateModuleDeclaration(node, modifiers, name, body) { + return node.modifiers !== modifiers || node.name !== name || node.body !== body ? update(createModuleDeclaration(modifiers, name, body, node.flags), node) : node; + } + function createModuleBlock(statements) { + const node = createBaseNode(268 /* ModuleBlock */); + node.statements = createNodeArray(statements); + node.transformFlags |= propagateChildrenFlags(node.statements); + node.jsDoc = void 0; + return node; + } + function updateModuleBlock(node, statements) { + return node.statements !== statements ? update(createModuleBlock(statements), node) : node; + } + function createCaseBlock(clauses) { + const node = createBaseNode(269 /* CaseBlock */); + node.clauses = createNodeArray(clauses); + node.transformFlags |= propagateChildrenFlags(node.clauses); + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateCaseBlock(node, clauses) { + return node.clauses !== clauses ? update(createCaseBlock(clauses), node) : node; + } + function createNamespaceExportDeclaration(name) { + const node = createBaseDeclaration(270 /* NamespaceExportDeclaration */); + node.name = asName(name); + node.transformFlags |= propagateIdentifierNameFlags(node.name) | 1 /* ContainsTypeScript */; + node.modifiers = void 0; + node.jsDoc = void 0; + return node; + } + function updateNamespaceExportDeclaration(node, name) { + return node.name !== name ? finishUpdateNamespaceExportDeclaration(createNamespaceExportDeclaration(name), node) : node; + } + function finishUpdateNamespaceExportDeclaration(updated, original) { + if (updated !== original) { + updated.modifiers = original.modifiers; + } + return update(updated, original); + } + function createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference) { + const node = createBaseDeclaration(271 /* ImportEqualsDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.name = asName(name); + node.isTypeOnly = isTypeOnly; + node.moduleReference = moduleReference; + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.moduleReference); + if (!isExternalModuleReference(node.moduleReference)) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateImportEqualsDeclaration(node, modifiers, isTypeOnly, name, moduleReference) { + return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.name !== name || node.moduleReference !== moduleReference ? update(createImportEqualsDeclaration(modifiers, isTypeOnly, name, moduleReference), node) : node; + } + function createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes) { + const node = createBaseNode(272 /* ImportDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.importClause = importClause; + node.moduleSpecifier = moduleSpecifier; + node.attributes = node.assertClause = attributes; + node.transformFlags |= propagateChildFlags(node.importClause) | propagateChildFlags(node.moduleSpecifier); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateImportDeclaration(node, modifiers, importClause, moduleSpecifier, attributes) { + return node.modifiers !== modifiers || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? update(createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes), node) : node; + } + function createImportClause(isTypeOnly, name, namedBindings) { + const node = createBaseDeclaration(273 /* ImportClause */); + node.isTypeOnly = isTypeOnly; + node.name = name; + node.namedBindings = namedBindings; + node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.namedBindings); + if (isTypeOnly) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateImportClause(node, isTypeOnly, name, namedBindings) { + return node.isTypeOnly !== isTypeOnly || node.name !== name || node.namedBindings !== namedBindings ? update(createImportClause(isTypeOnly, name, namedBindings), node) : node; + } + function createAssertClause(elements, multiLine) { + const node = createBaseNode(300 /* AssertClause */); + node.elements = createNodeArray(elements); + node.multiLine = multiLine; + node.token = 132 /* AssertKeyword */; + node.transformFlags |= 4 /* ContainsESNext */; + return node; + } + function updateAssertClause(node, elements, multiLine) { + return node.elements !== elements || node.multiLine !== multiLine ? update(createAssertClause(elements, multiLine), node) : node; + } + function createAssertEntry(name, value) { + const node = createBaseNode(301 /* AssertEntry */); + node.name = name; + node.value = value; + node.transformFlags |= 4 /* ContainsESNext */; + return node; + } + function updateAssertEntry(node, name, value) { + return node.name !== name || node.value !== value ? update(createAssertEntry(name, value), node) : node; + } + function createImportTypeAssertionContainer(clause, multiLine) { + const node = createBaseNode(302 /* ImportTypeAssertionContainer */); + node.assertClause = clause; + node.multiLine = multiLine; + return node; + } + function updateImportTypeAssertionContainer(node, clause, multiLine) { + return node.assertClause !== clause || node.multiLine !== multiLine ? update(createImportTypeAssertionContainer(clause, multiLine), node) : node; + } + function createImportAttributes(elements, multiLine, token) { + const node = createBaseNode(300 /* ImportAttributes */); + node.token = token ?? 118 /* WithKeyword */; + node.elements = createNodeArray(elements); + node.multiLine = multiLine; + node.transformFlags |= 4 /* ContainsESNext */; + return node; + } + function updateImportAttributes(node, elements, multiLine) { + return node.elements !== elements || node.multiLine !== multiLine ? update(createImportAttributes(elements, multiLine, node.token), node) : node; + } + function createImportAttribute(name, value) { + const node = createBaseNode(301 /* ImportAttribute */); + node.name = name; + node.value = value; + node.transformFlags |= 4 /* ContainsESNext */; + return node; + } + function updateImportAttribute(node, name, value) { + return node.name !== name || node.value !== value ? update(createImportAttribute(name, value), node) : node; + } + function createNamespaceImport(name) { + const node = createBaseDeclaration(274 /* NamespaceImport */); + node.name = name; + node.transformFlags |= propagateChildFlags(node.name); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateNamespaceImport(node, name) { + return node.name !== name ? update(createNamespaceImport(name), node) : node; + } + function createNamespaceExport(name) { + const node = createBaseDeclaration(280 /* NamespaceExport */); + node.name = name; + node.transformFlags |= propagateChildFlags(node.name) | 32 /* ContainsES2020 */; + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateNamespaceExport(node, name) { + return node.name !== name ? update(createNamespaceExport(name), node) : node; + } + function createNamedImports(elements) { + const node = createBaseNode(275 /* NamedImports */); + node.elements = createNodeArray(elements); + node.transformFlags |= propagateChildrenFlags(node.elements); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateNamedImports(node, elements) { + return node.elements !== elements ? update(createNamedImports(elements), node) : node; + } + function createImportSpecifier(isTypeOnly, propertyName, name) { + const node = createBaseDeclaration(276 /* ImportSpecifier */); + node.isTypeOnly = isTypeOnly; + node.propertyName = propertyName; + node.name = name; + node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateImportSpecifier(node, isTypeOnly, propertyName, name) { + return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createImportSpecifier(isTypeOnly, propertyName, name), node) : node; + } + function createExportAssignment(modifiers, isExportEquals, expression) { + const node = createBaseDeclaration(277 /* ExportAssignment */); + node.modifiers = asNodeArray(modifiers); + node.isExportEquals = isExportEquals; + node.expression = isExportEquals ? parenthesizerRules().parenthesizeRightSideOfBinary( + 64 /* EqualsToken */, + /*leftSide*/ + void 0, + expression + ) : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression); + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateExportAssignment(node, modifiers, expression) { + return node.modifiers !== modifiers || node.expression !== expression ? update(createExportAssignment(modifiers, node.isExportEquals, expression), node) : node; + } + function createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes) { + const node = createBaseDeclaration(278 /* ExportDeclaration */); + node.modifiers = asNodeArray(modifiers); + node.isTypeOnly = isTypeOnly; + node.exportClause = exportClause; + node.moduleSpecifier = moduleSpecifier; + node.attributes = node.assertClause = attributes; + node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.exportClause) | propagateChildFlags(node.moduleSpecifier); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateExportDeclaration(node, modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes) { + return node.modifiers !== modifiers || node.isTypeOnly !== isTypeOnly || node.exportClause !== exportClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? finishUpdateExportDeclaration(createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes), node) : node; + } + function finishUpdateExportDeclaration(updated, original) { + if (updated !== original) { + if (updated.modifiers === original.modifiers) { + updated.modifiers = original.modifiers; + } + } + return update(updated, original); + } + function createNamedExports(elements) { + const node = createBaseNode(279 /* NamedExports */); + node.elements = createNodeArray(elements); + node.transformFlags |= propagateChildrenFlags(node.elements); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateNamedExports(node, elements) { + return node.elements !== elements ? update(createNamedExports(elements), node) : node; + } + function createExportSpecifier(isTypeOnly, propertyName, name) { + const node = createBaseNode(281 /* ExportSpecifier */); + node.isTypeOnly = isTypeOnly; + node.propertyName = asName(propertyName); + node.name = asName(name); + node.transformFlags |= propagateChildFlags(node.propertyName) | propagateChildFlags(node.name); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + node.jsDoc = void 0; + return node; + } + function updateExportSpecifier(node, isTypeOnly, propertyName, name) { + return node.isTypeOnly !== isTypeOnly || node.propertyName !== propertyName || node.name !== name ? update(createExportSpecifier(isTypeOnly, propertyName, name), node) : node; + } + function createMissingDeclaration() { + const node = createBaseDeclaration(282 /* MissingDeclaration */); + node.jsDoc = void 0; + return node; + } + function createExternalModuleReference(expression) { + const node = createBaseNode(283 /* ExternalModuleReference */); + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.expression); + node.transformFlags &= ~67108864 /* ContainsPossibleTopLevelAwait */; + return node; + } + function updateExternalModuleReference(node, expression) { + return node.expression !== expression ? update(createExternalModuleReference(expression), node) : node; + } + function createJSDocPrimaryTypeWorker(kind) { + return createBaseNode(kind); + } + function createJSDocPrePostfixUnaryTypeWorker(kind, type, postfix = false) { + const node = createJSDocUnaryTypeWorker( + kind, + postfix ? type && parenthesizerRules().parenthesizeNonArrayTypeOfPostfixType(type) : type + ); + node.postfix = postfix; + return node; + } + function createJSDocUnaryTypeWorker(kind, type) { + const node = createBaseNode(kind); + node.type = type; + return node; + } + function updateJSDocPrePostfixUnaryTypeWorker(kind, node, type) { + return node.type !== type ? update(createJSDocPrePostfixUnaryTypeWorker(kind, type, node.postfix), node) : node; + } + function updateJSDocUnaryTypeWorker(kind, node, type) { + return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node; + } + function createJSDocFunctionType(parameters, type) { + const node = createBaseDeclaration(317 /* JSDocFunctionType */); + node.parameters = asNodeArray(parameters); + node.type = type; + node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */); + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + node.typeArguments = void 0; + return node; + } + function updateJSDocFunctionType(node, parameters, type) { + return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node; + } + function createJSDocTypeLiteral(propertyTags, isArrayType = false) { + const node = createBaseDeclaration(322 /* JSDocTypeLiteral */); + node.jsDocPropertyTags = asNodeArray(propertyTags); + node.isArrayType = isArrayType; + return node; + } + function updateJSDocTypeLiteral(node, propertyTags, isArrayType) { + return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node; + } + function createJSDocTypeExpression(type) { + const node = createBaseNode(309 /* JSDocTypeExpression */); + node.type = type; + return node; + } + function updateJSDocTypeExpression(node, type) { + return node.type !== type ? update(createJSDocTypeExpression(type), node) : node; + } + function createJSDocSignature(typeParameters, parameters, type) { + const node = createBaseDeclaration(323 /* JSDocSignature */); + node.typeParameters = asNodeArray(typeParameters); + node.parameters = createNodeArray(parameters); + node.type = type; + node.jsDoc = void 0; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateJSDocSignature(node, typeParameters, parameters, type) { + return node.typeParameters !== typeParameters || node.parameters !== parameters || node.type !== type ? update(createJSDocSignature(typeParameters, parameters, type), node) : node; + } + function getDefaultTagName(node) { + const defaultTagName = getDefaultTagNameForKind(node.kind); + return node.tagName.escapedText === escapeLeadingUnderscores(defaultTagName) ? node.tagName : createIdentifier(defaultTagName); + } + function createBaseJSDocTag(kind, tagName, comment) { + const node = createBaseNode(kind); + node.tagName = tagName; + node.comment = comment; + return node; + } + function createBaseJSDocTagDeclaration(kind, tagName, comment) { + const node = createBaseDeclaration(kind); + node.tagName = tagName; + node.comment = comment; + return node; + } + function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) { + const node = createBaseJSDocTag(345 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment); + node.constraint = constraint; + node.typeParameters = createNodeArray(typeParameters); + return node; + } + function updateJSDocTemplateTag(node, tagName = getDefaultTagName(node), constraint, typeParameters, comment) { + return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node; + } + function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) { + const node = createBaseJSDocTagDeclaration(346 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment); + node.typeExpression = typeExpression; + node.fullName = fullName; + node.name = getJSDocTypeAliasName(fullName); + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateJSDocTypedefTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) { + return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node; + } + function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { + const node = createBaseJSDocTagDeclaration(341 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment); + node.typeExpression = typeExpression; + node.name = name; + node.isNameFirst = !!isNameFirst; + node.isBracketed = isBracketed; + return node; + } + function updateJSDocParameterTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) { + return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; + } + function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) { + const node = createBaseJSDocTagDeclaration(348 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment); + node.typeExpression = typeExpression; + node.name = name; + node.isNameFirst = !!isNameFirst; + node.isBracketed = isBracketed; + return node; + } + function updateJSDocPropertyTag(node, tagName = getDefaultTagName(node), name, isBracketed, typeExpression, isNameFirst, comment) { + return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node; + } + function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) { + const node = createBaseJSDocTagDeclaration(338 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment); + node.typeExpression = typeExpression; + node.fullName = fullName; + node.name = getJSDocTypeAliasName(fullName); + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateJSDocCallbackTag(node, tagName = getDefaultTagName(node), typeExpression, fullName, comment) { + return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node; + } + function createJSDocOverloadTag(tagName, typeExpression, comment) { + const node = createBaseJSDocTag(339 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment); + node.typeExpression = typeExpression; + return node; + } + function updateJSDocOverloadTag(node, tagName = getDefaultTagName(node), typeExpression, comment) { + return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node; + } + function createJSDocAugmentsTag(tagName, className, comment) { + const node = createBaseJSDocTag(328 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment); + node.class = className; + return node; + } + function updateJSDocAugmentsTag(node, tagName = getDefaultTagName(node), className, comment) { + return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node; + } + function createJSDocImplementsTag(tagName, className, comment) { + const node = createBaseJSDocTag(329 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment); + node.class = className; + return node; + } + function createJSDocSeeTag(tagName, name, comment) { + const node = createBaseJSDocTag(347 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment); + node.name = name; + return node; + } + function updateJSDocSeeTag(node, tagName, name, comment) { + return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node; + } + function createJSDocNameReference(name) { + const node = createBaseNode(310 /* JSDocNameReference */); + node.name = name; + return node; + } + function updateJSDocNameReference(node, name) { + return node.name !== name ? update(createJSDocNameReference(name), node) : node; + } + function createJSDocMemberName(left, right) { + const node = createBaseNode(311 /* JSDocMemberName */); + node.left = left; + node.right = right; + node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right); + return node; + } + function updateJSDocMemberName(node, left, right) { + return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node; + } + function createJSDocLink(name, text) { + const node = createBaseNode(324 /* JSDocLink */); + node.name = name; + node.text = text; + return node; + } + function updateJSDocLink(node, name, text) { + return node.name !== name ? update(createJSDocLink(name, text), node) : node; + } + function createJSDocLinkCode(name, text) { + const node = createBaseNode(325 /* JSDocLinkCode */); + node.name = name; + node.text = text; + return node; + } + function updateJSDocLinkCode(node, name, text) { + return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node; + } + function createJSDocLinkPlain(name, text) { + const node = createBaseNode(326 /* JSDocLinkPlain */); + node.name = name; + node.text = text; + return node; + } + function updateJSDocLinkPlain(node, name, text) { + return node.name !== name ? update(createJSDocLinkPlain(name, text), node) : node; + } + function updateJSDocImplementsTag(node, tagName = getDefaultTagName(node), className, comment) { + return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocImplementsTag(tagName, className, comment), node) : node; + } + function createJSDocSimpleTagWorker(kind, tagName, comment) { + const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); + return node; + } + function updateJSDocSimpleTagWorker(kind, node, tagName = getDefaultTagName(node), comment) { + return node.tagName !== tagName || node.comment !== comment ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) : node; + } + function createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment) { + const node = createBaseJSDocTag(kind, tagName ?? createIdentifier(getDefaultTagNameForKind(kind)), comment); + node.typeExpression = typeExpression; + return node; + } + function updateJSDocTypeLikeTagWorker(kind, node, tagName = getDefaultTagName(node), typeExpression, comment) { + return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node; + } + function createJSDocUnknownTag(tagName, comment) { + const node = createBaseJSDocTag(327 /* JSDocTag */, tagName, comment); + return node; + } + function updateJSDocUnknownTag(node, tagName, comment) { + return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node; + } + function createJSDocEnumTag(tagName, typeExpression, comment) { + const node = createBaseJSDocTagDeclaration(340 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(340 /* JSDocEnumTag */)), comment); + node.typeExpression = typeExpression; + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) { + return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node; + } + function createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment) { + const node = createBaseJSDocTag(351 /* JSDocImportTag */, tagName ?? createIdentifier("import"), comment); + node.importClause = importClause; + node.moduleSpecifier = moduleSpecifier; + node.attributes = attributes; + node.comment = comment; + return node; + } + function updateJSDocImportTag(node, tagName, importClause, moduleSpecifier, attributes, comment) { + return node.tagName !== tagName || node.comment !== comment || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier || node.attributes !== attributes ? update(createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comment), node) : node; + } + function createJSDocText(text) { + const node = createBaseNode(321 /* JSDocText */); + node.text = text; + return node; + } + function updateJSDocText(node, text) { + return node.text !== text ? update(createJSDocText(text), node) : node; + } + function createJSDocComment(comment, tags) { + const node = createBaseNode(320 /* JSDoc */); + node.comment = comment; + node.tags = asNodeArray(tags); + return node; + } + function updateJSDocComment(node, comment, tags) { + return node.comment !== comment || node.tags !== tags ? update(createJSDocComment(comment, tags), node) : node; + } + function createJsxElement(openingElement, children, closingElement) { + const node = createBaseNode(284 /* JsxElement */); + node.openingElement = openingElement; + node.children = createNodeArray(children); + node.closingElement = closingElement; + node.transformFlags |= propagateChildFlags(node.openingElement) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingElement) | 2 /* ContainsJsx */; + return node; + } + function updateJsxElement(node, openingElement, children, closingElement) { + return node.openingElement !== openingElement || node.children !== children || node.closingElement !== closingElement ? update(createJsxElement(openingElement, children, closingElement), node) : node; + } + function createJsxSelfClosingElement(tagName, typeArguments, attributes) { + const node = createBaseNode(285 /* JsxSelfClosingElement */); + node.tagName = tagName; + node.typeArguments = asNodeArray(typeArguments); + node.attributes = attributes; + node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2 /* ContainsJsx */; + if (node.typeArguments) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + return node; + } + function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) { + return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node) : node; + } + function createJsxOpeningElement(tagName, typeArguments, attributes) { + const node = createBaseNode(286 /* JsxOpeningElement */); + node.tagName = tagName; + node.typeArguments = asNodeArray(typeArguments); + node.attributes = attributes; + node.transformFlags |= propagateChildFlags(node.tagName) | propagateChildrenFlags(node.typeArguments) | propagateChildFlags(node.attributes) | 2 /* ContainsJsx */; + if (typeArguments) { + node.transformFlags |= 1 /* ContainsTypeScript */; + } + return node; + } + function updateJsxOpeningElement(node, tagName, typeArguments, attributes) { + return node.tagName !== tagName || node.typeArguments !== typeArguments || node.attributes !== attributes ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node) : node; + } + function createJsxClosingElement(tagName) { + const node = createBaseNode(287 /* JsxClosingElement */); + node.tagName = tagName; + node.transformFlags |= propagateChildFlags(node.tagName) | 2 /* ContainsJsx */; + return node; + } + function updateJsxClosingElement(node, tagName) { + return node.tagName !== tagName ? update(createJsxClosingElement(tagName), node) : node; + } + function createJsxFragment(openingFragment, children, closingFragment) { + const node = createBaseNode(288 /* JsxFragment */); + node.openingFragment = openingFragment; + node.children = createNodeArray(children); + node.closingFragment = closingFragment; + node.transformFlags |= propagateChildFlags(node.openingFragment) | propagateChildrenFlags(node.children) | propagateChildFlags(node.closingFragment) | 2 /* ContainsJsx */; + return node; + } + function updateJsxFragment(node, openingFragment, children, closingFragment) { + return node.openingFragment !== openingFragment || node.children !== children || node.closingFragment !== closingFragment ? update(createJsxFragment(openingFragment, children, closingFragment), node) : node; + } + function createJsxText(text, containsOnlyTriviaWhiteSpaces) { + const node = createBaseNode(12 /* JsxText */); + node.text = text; + node.containsOnlyTriviaWhiteSpaces = !!containsOnlyTriviaWhiteSpaces; + node.transformFlags |= 2 /* ContainsJsx */; + return node; + } + function updateJsxText(node, text, containsOnlyTriviaWhiteSpaces) { + return node.text !== text || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node) : node; + } + function createJsxOpeningFragment() { + const node = createBaseNode(289 /* JsxOpeningFragment */); + node.transformFlags |= 2 /* ContainsJsx */; + return node; + } + function createJsxJsxClosingFragment() { + const node = createBaseNode(290 /* JsxClosingFragment */); + node.transformFlags |= 2 /* ContainsJsx */; + return node; + } + function createJsxAttribute(name, initializer) { + const node = createBaseDeclaration(291 /* JsxAttribute */); + node.name = name; + node.initializer = initializer; + node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 2 /* ContainsJsx */; + return node; + } + function updateJsxAttribute(node, name, initializer) { + return node.name !== name || node.initializer !== initializer ? update(createJsxAttribute(name, initializer), node) : node; + } + function createJsxAttributes(properties) { + const node = createBaseDeclaration(292 /* JsxAttributes */); + node.properties = createNodeArray(properties); + node.transformFlags |= propagateChildrenFlags(node.properties) | 2 /* ContainsJsx */; + return node; + } + function updateJsxAttributes(node, properties) { + return node.properties !== properties ? update(createJsxAttributes(properties), node) : node; + } + function createJsxSpreadAttribute(expression) { + const node = createBaseNode(293 /* JsxSpreadAttribute */); + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.expression) | 2 /* ContainsJsx */; + return node; + } + function updateJsxSpreadAttribute(node, expression) { + return node.expression !== expression ? update(createJsxSpreadAttribute(expression), node) : node; + } + function createJsxExpression(dotDotDotToken, expression) { + const node = createBaseNode(294 /* JsxExpression */); + node.dotDotDotToken = dotDotDotToken; + node.expression = expression; + node.transformFlags |= propagateChildFlags(node.dotDotDotToken) | propagateChildFlags(node.expression) | 2 /* ContainsJsx */; + return node; + } + function updateJsxExpression(node, expression) { + return node.expression !== expression ? update(createJsxExpression(node.dotDotDotToken, expression), node) : node; + } + function createJsxNamespacedName(namespace, name) { + const node = createBaseNode(295 /* JsxNamespacedName */); + node.namespace = namespace; + node.name = name; + node.transformFlags |= propagateChildFlags(node.namespace) | propagateChildFlags(node.name) | 2 /* ContainsJsx */; + return node; + } + function updateJsxNamespacedName(node, namespace, name) { + return node.namespace !== namespace || node.name !== name ? update(createJsxNamespacedName(namespace, name), node) : node; + } + function createCaseClause(expression, statements) { + const node = createBaseNode(296 /* CaseClause */); + node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.statements = createNodeArray(statements); + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildrenFlags(node.statements); + node.jsDoc = void 0; + return node; + } + function updateCaseClause(node, expression, statements) { + return node.expression !== expression || node.statements !== statements ? update(createCaseClause(expression, statements), node) : node; + } + function createDefaultClause(statements) { + const node = createBaseNode(297 /* DefaultClause */); + node.statements = createNodeArray(statements); + node.transformFlags = propagateChildrenFlags(node.statements); + return node; + } + function updateDefaultClause(node, statements) { + return node.statements !== statements ? update(createDefaultClause(statements), node) : node; + } + function createHeritageClause(token, types) { + const node = createBaseNode(298 /* HeritageClause */); + node.token = token; + node.types = createNodeArray(types); + node.transformFlags |= propagateChildrenFlags(node.types); + switch (token) { + case 96 /* ExtendsKeyword */: + node.transformFlags |= 1024 /* ContainsES2015 */; + break; + case 119 /* ImplementsKeyword */: + node.transformFlags |= 1 /* ContainsTypeScript */; + break; + default: + return Debug.assertNever(token); + } + return node; + } + function updateHeritageClause(node, types) { + return node.types !== types ? update(createHeritageClause(node.token, types), node) : node; + } + function createCatchClause(variableDeclaration, block) { + const node = createBaseNode(299 /* CatchClause */); + node.variableDeclaration = asVariableDeclaration(variableDeclaration); + node.block = block; + node.transformFlags |= propagateChildFlags(node.variableDeclaration) | propagateChildFlags(node.block) | (!variableDeclaration ? 64 /* ContainsES2019 */ : 0 /* None */); + node.locals = void 0; + node.nextContainer = void 0; + return node; + } + function updateCatchClause(node, variableDeclaration, block) { + return node.variableDeclaration !== variableDeclaration || node.block !== block ? update(createCatchClause(variableDeclaration, block), node) : node; + } + function createPropertyAssignment(name, initializer) { + const node = createBaseDeclaration(303 /* PropertyAssignment */); + node.name = asName(name); + node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); + node.transformFlags |= propagateNameFlags(node.name) | propagateChildFlags(node.initializer); + node.modifiers = void 0; + node.questionToken = void 0; + node.exclamationToken = void 0; + node.jsDoc = void 0; + return node; + } + function updatePropertyAssignment(node, name, initializer) { + return node.name !== name || node.initializer !== initializer ? finishUpdatePropertyAssignment(createPropertyAssignment(name, initializer), node) : node; + } + function finishUpdatePropertyAssignment(updated, original) { + if (updated !== original) { + updated.modifiers = original.modifiers; + updated.questionToken = original.questionToken; + updated.exclamationToken = original.exclamationToken; + } + return update(updated, original); + } + function createShorthandPropertyAssignment(name, objectAssignmentInitializer) { + const node = createBaseDeclaration(304 /* ShorthandPropertyAssignment */); + node.name = asName(name); + node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer); + node.transformFlags |= propagateIdentifierNameFlags(node.name) | propagateChildFlags(node.objectAssignmentInitializer) | 1024 /* ContainsES2015 */; + node.equalsToken = void 0; + node.modifiers = void 0; + node.questionToken = void 0; + node.exclamationToken = void 0; + node.jsDoc = void 0; + return node; + } + function updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer) { + return node.name !== name || node.objectAssignmentInitializer !== objectAssignmentInitializer ? finishUpdateShorthandPropertyAssignment(createShorthandPropertyAssignment(name, objectAssignmentInitializer), node) : node; + } + function finishUpdateShorthandPropertyAssignment(updated, original) { + if (updated !== original) { + updated.modifiers = original.modifiers; + updated.questionToken = original.questionToken; + updated.exclamationToken = original.exclamationToken; + updated.equalsToken = original.equalsToken; + } + return update(updated, original); + } + function createSpreadAssignment(expression) { + const node = createBaseDeclaration(305 /* SpreadAssignment */); + node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression); + node.transformFlags |= propagateChildFlags(node.expression) | 128 /* ContainsES2018 */ | 65536 /* ContainsObjectRestOrSpread */; + node.jsDoc = void 0; + return node; + } + function updateSpreadAssignment(node, expression) { + return node.expression !== expression ? update(createSpreadAssignment(expression), node) : node; + } + function createEnumMember(name, initializer) { + const node = createBaseDeclaration(306 /* EnumMember */); + node.name = asName(name); + node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer); + node.transformFlags |= propagateChildFlags(node.name) | propagateChildFlags(node.initializer) | 1 /* ContainsTypeScript */; + node.jsDoc = void 0; + return node; + } + function updateEnumMember(node, name, initializer) { + return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node; + } + function createSourceFile2(statements, endOfFileToken, flags2) { + const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */); + node.statements = createNodeArray(statements); + node.endOfFileToken = endOfFileToken; + node.flags |= flags2; + node.text = ""; + node.fileName = ""; + node.path = ""; + node.resolvedPath = ""; + node.originalFileName = ""; + node.languageVersion = 1 /* ES5 */; + node.languageVariant = 0; + node.scriptKind = 0; + node.isDeclarationFile = false; + node.hasNoDefaultLib = false; + node.transformFlags |= propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken); + node.locals = void 0; + node.nextContainer = void 0; + node.endFlowNode = void 0; + node.nodeCount = 0; + node.identifierCount = 0; + node.symbolCount = 0; + node.parseDiagnostics = void 0; + node.bindDiagnostics = void 0; + node.bindSuggestionDiagnostics = void 0; + node.lineMap = void 0; + node.externalModuleIndicator = void 0; + node.setExternalModuleIndicator = void 0; + node.pragmas = void 0; + node.checkJsDirective = void 0; + node.referencedFiles = void 0; + node.typeReferenceDirectives = void 0; + node.libReferenceDirectives = void 0; + node.amdDependencies = void 0; + node.commentDirectives = void 0; + node.identifiers = void 0; + node.packageJsonLocations = void 0; + node.packageJsonScope = void 0; + node.imports = void 0; + node.moduleAugmentations = void 0; + node.ambientModuleNames = void 0; + node.classifiableNames = void 0; + node.impliedNodeFormat = void 0; + return node; + } + function createRedirectedSourceFile(redirectInfo) { + const node = Object.create(redirectInfo.redirectTarget); + Object.defineProperties(node, { + id: { + get() { + return this.redirectInfo.redirectTarget.id; + }, + set(value) { + this.redirectInfo.redirectTarget.id = value; + } + }, + symbol: { + get() { + return this.redirectInfo.redirectTarget.symbol; + }, + set(value) { + this.redirectInfo.redirectTarget.symbol = value; + } + } + }); + node.redirectInfo = redirectInfo; + return node; + } + function cloneRedirectedSourceFile(source) { + const node = createRedirectedSourceFile(source.redirectInfo); + node.flags |= source.flags & ~16 /* Synthesized */; + node.fileName = source.fileName; + node.path = source.path; + node.resolvedPath = source.resolvedPath; + node.originalFileName = source.originalFileName; + node.packageJsonLocations = source.packageJsonLocations; + node.packageJsonScope = source.packageJsonScope; + node.emitNode = void 0; + return node; + } + function cloneSourceFileWorker(source) { + const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */); + node.flags |= source.flags & ~16 /* Synthesized */; + for (const p in source) { + if (hasProperty(node, p) || !hasProperty(source, p)) { + continue; + } + if (p === "emitNode") { + node.emitNode = void 0; + continue; + } + node[p] = source[p]; + } + return node; + } + function cloneSourceFile(source) { + const node = source.redirectInfo ? cloneRedirectedSourceFile(source) : cloneSourceFileWorker(source); + setOriginal(node, source); + return node; + } + function cloneSourceFileWithChanges(source, statements, isDeclarationFile, referencedFiles, typeReferences, hasNoDefaultLib, libReferences) { + const node = cloneSourceFile(source); + node.statements = createNodeArray(statements); + node.isDeclarationFile = isDeclarationFile; + node.referencedFiles = referencedFiles; + node.typeReferenceDirectives = typeReferences; + node.hasNoDefaultLib = hasNoDefaultLib; + node.libReferenceDirectives = libReferences; + node.transformFlags = propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken); + return node; + } + function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, hasNoDefaultLib = node.hasNoDefaultLib, libReferenceDirectives = node.libReferenceDirectives) { + return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node; + } + function createBundle(sourceFiles) { + const node = createBaseNode(308 /* Bundle */); + node.sourceFiles = sourceFiles; + node.syntheticFileReferences = void 0; + node.syntheticTypeReferences = void 0; + node.syntheticLibReferences = void 0; + node.hasNoDefaultLib = void 0; + return node; + } + function updateBundle(node, sourceFiles) { + return node.sourceFiles !== sourceFiles ? update(createBundle(sourceFiles), node) : node; + } + function createSyntheticExpression(type, isSpread = false, tupleNameSource) { + const node = createBaseNode(237 /* SyntheticExpression */); + node.type = type; + node.isSpread = isSpread; + node.tupleNameSource = tupleNameSource; + return node; + } + function createSyntaxList(children) { + const node = createBaseNode(352 /* SyntaxList */); + node._children = children; + return node; + } + function createNotEmittedStatement(original) { + const node = createBaseNode(353 /* NotEmittedStatement */); + node.original = original; + setTextRange(node, original); + return node; + } + function createPartiallyEmittedExpression(expression, original) { + const node = createBaseNode(354 /* PartiallyEmittedExpression */); + node.expression = expression; + node.original = original; + node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; + setTextRange(node, original); + return node; + } + function updatePartiallyEmittedExpression(node, expression) { + return node.expression !== expression ? update(createPartiallyEmittedExpression(expression, node.original), node) : node; + } + function flattenCommaElements(node) { + if (nodeIsSynthesized(node) && !isParseTreeNode(node) && !node.original && !node.emitNode && !node.id) { + if (isCommaListExpression(node)) { + return node.elements; + } + if (isBinaryExpression(node) && isCommaToken(node.operatorToken)) { + return [node.left, node.right]; + } + } + return node; + } + function createCommaListExpression(elements) { + const node = createBaseNode(355 /* CommaListExpression */); + node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); + node.transformFlags |= propagateChildrenFlags(node.elements); + return node; + } + function updateCommaListExpression(node, elements) { + return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; + } + function createSyntheticReferenceExpression(expression, thisArg) { + const node = createBaseNode(356 /* SyntheticReferenceExpression */); + node.expression = expression; + node.thisArg = thisArg; + node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); + return node; + } + function updateSyntheticReferenceExpression(node, expression, thisArg) { + return node.expression !== expression || node.thisArg !== thisArg ? update(createSyntheticReferenceExpression(expression, thisArg), node) : node; + } + function cloneGeneratedIdentifier(node) { + const clone = createBaseIdentifier(node.escapedText); + clone.flags |= node.flags & ~16 /* Synthesized */; + clone.transformFlags = node.transformFlags; + setOriginal(clone, node); + setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate }); + return clone; + } + function cloneIdentifier(node) { + const clone = createBaseIdentifier(node.escapedText); + clone.flags |= node.flags & ~16 /* Synthesized */; + clone.jsDoc = node.jsDoc; + clone.flowNode = node.flowNode; + clone.symbol = node.symbol; + clone.transformFlags = node.transformFlags; + setOriginal(clone, node); + const typeArguments = getIdentifierTypeArguments(node); + if (typeArguments) setIdentifierTypeArguments(clone, typeArguments); + return clone; + } + function cloneGeneratedPrivateIdentifier(node) { + const clone = createBasePrivateIdentifier(node.escapedText); + clone.flags |= node.flags & ~16 /* Synthesized */; + clone.transformFlags = node.transformFlags; + setOriginal(clone, node); + setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate }); + return clone; + } + function clonePrivateIdentifier(node) { + const clone = createBasePrivateIdentifier(node.escapedText); + clone.flags |= node.flags & ~16 /* Synthesized */; + clone.transformFlags = node.transformFlags; + setOriginal(clone, node); + return clone; + } + function cloneNode(node) { + if (node === void 0) { + return node; + } + if (isSourceFile(node)) { + return cloneSourceFile(node); + } + if (isGeneratedIdentifier(node)) { + return cloneGeneratedIdentifier(node); + } + if (isIdentifier(node)) { + return cloneIdentifier(node); + } + if (isGeneratedPrivateIdentifier(node)) { + return cloneGeneratedPrivateIdentifier(node); + } + if (isPrivateIdentifier(node)) { + return clonePrivateIdentifier(node); + } + const clone = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind); + clone.flags |= node.flags & ~16 /* Synthesized */; + clone.transformFlags = node.transformFlags; + setOriginal(clone, node); + for (const key in node) { + if (hasProperty(clone, key) || !hasProperty(node, key)) { + continue; + } + clone[key] = node[key]; + } + return clone; + } + function createImmediatelyInvokedFunctionExpression(statements, param, paramValue) { + return createCallExpression( + createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + param ? [param] : [], + /*type*/ + void 0, + createBlock( + statements, + /*multiLine*/ + true + ) + ), + /*typeArguments*/ + void 0, + /*argumentsArray*/ + paramValue ? [paramValue] : [] + ); + } + function createImmediatelyInvokedArrowFunction(statements, param, paramValue) { + return createCallExpression( + createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + param ? [param] : [], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + createBlock( + statements, + /*multiLine*/ + true + ) + ), + /*typeArguments*/ + void 0, + /*argumentsArray*/ + paramValue ? [paramValue] : [] + ); + } + function createVoidZero() { + return createVoidExpression(createNumericLiteral("0")); + } + function createExportDefault(expression) { + return createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + false, + expression + ); + } + function createExternalModuleExport(exportName) { + return createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + createNamedExports([ + createExportSpecifier( + /*isTypeOnly*/ + false, + /*propertyName*/ + void 0, + exportName + ) + ]) + ); + } + function createTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictEquality(value, createNull()) : tag === "undefined" ? factory2.createStrictEquality(value, createVoidZero()) : factory2.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createIsNotTypeCheck(value, tag) { + return tag === "null" ? factory2.createStrictInequality(value, createNull()) : tag === "undefined" ? factory2.createStrictInequality(value, createVoidZero()) : factory2.createStrictInequality(createTypeOfExpression(value), createStringLiteral(tag)); + } + function createMethodCall(object, methodName, argumentsList) { + if (isCallChain(object)) { + return createCallChain( + createPropertyAccessChain( + object, + /*questionDotToken*/ + void 0, + methodName + ), + /*questionDotToken*/ + void 0, + /*typeArguments*/ + void 0, + argumentsList + ); + } + return createCallExpression( + createPropertyAccessExpression(object, methodName), + /*typeArguments*/ + void 0, + argumentsList + ); + } + function createFunctionBindCall(target, thisArg, argumentsList) { + return createMethodCall(target, "bind", [thisArg, ...argumentsList]); + } + function createFunctionCallCall(target, thisArg, argumentsList) { + return createMethodCall(target, "call", [thisArg, ...argumentsList]); + } + function createFunctionApplyCall(target, thisArg, argumentsExpression) { + return createMethodCall(target, "apply", [thisArg, argumentsExpression]); + } + function createGlobalMethodCall(globalObjectName, methodName, argumentsList) { + return createMethodCall(createIdentifier(globalObjectName), methodName, argumentsList); + } + function createArraySliceCall(array, start) { + return createMethodCall(array, "slice", start === void 0 ? [] : [asExpression(start)]); + } + function createArrayConcatCall(array, argumentsList) { + return createMethodCall(array, "concat", argumentsList); + } + function createObjectDefinePropertyCall(target, propertyName, attributes) { + return createGlobalMethodCall("Object", "defineProperty", [target, asExpression(propertyName), attributes]); + } + function createObjectGetOwnPropertyDescriptorCall(target, propertyName) { + return createGlobalMethodCall("Object", "getOwnPropertyDescriptor", [target, asExpression(propertyName)]); + } + function createReflectGetCall(target, propertyKey, receiver) { + return createGlobalMethodCall("Reflect", "get", receiver ? [target, propertyKey, receiver] : [target, propertyKey]); + } + function createReflectSetCall(target, propertyKey, value, receiver) { + return createGlobalMethodCall("Reflect", "set", receiver ? [target, propertyKey, value, receiver] : [target, propertyKey, value]); + } + function tryAddPropertyAssignment(properties, propertyName, expression) { + if (expression) { + properties.push(createPropertyAssignment(propertyName, expression)); + return true; + } + return false; + } + function createPropertyDescriptor(attributes, singleLine) { + const properties = []; + tryAddPropertyAssignment(properties, "enumerable", asExpression(attributes.enumerable)); + tryAddPropertyAssignment(properties, "configurable", asExpression(attributes.configurable)); + let isData = tryAddPropertyAssignment(properties, "writable", asExpression(attributes.writable)); + isData = tryAddPropertyAssignment(properties, "value", attributes.value) || isData; + let isAccessor2 = tryAddPropertyAssignment(properties, "get", attributes.get); + isAccessor2 = tryAddPropertyAssignment(properties, "set", attributes.set) || isAccessor2; + Debug.assert(!(isData && isAccessor2), "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."); + return createObjectLiteralExpression(properties, !singleLine); + } + function updateOuterExpression(outerExpression, expression) { + switch (outerExpression.kind) { + case 217 /* ParenthesizedExpression */: + return updateParenthesizedExpression(outerExpression, expression); + case 216 /* TypeAssertionExpression */: + return updateTypeAssertion(outerExpression, outerExpression.type, expression); + case 234 /* AsExpression */: + return updateAsExpression(outerExpression, expression, outerExpression.type); + case 238 /* SatisfiesExpression */: + return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); + case 235 /* NonNullExpression */: + return updateNonNullExpression(outerExpression, expression); + case 354 /* PartiallyEmittedExpression */: + return updatePartiallyEmittedExpression(outerExpression, expression); + } + } + function isIgnorableParen(node) { + return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node)); + } + function restoreOuterExpressions(outerExpression, innerExpression, kinds = 15 /* All */) { + if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) { + return updateOuterExpression( + outerExpression, + restoreOuterExpressions(outerExpression.expression, innerExpression) + ); + } + return innerExpression; + } + function restoreEnclosingLabel(node, outermostLabeledStatement, afterRestoreLabelCallback) { + if (!outermostLabeledStatement) { + return node; + } + const updated = updateLabeledStatement( + outermostLabeledStatement, + outermostLabeledStatement.label, + isLabeledStatement(outermostLabeledStatement.statement) ? restoreEnclosingLabel(node, outermostLabeledStatement.statement) : node + ); + if (afterRestoreLabelCallback) { + afterRestoreLabelCallback(outermostLabeledStatement); + } + return updated; + } + function shouldBeCapturedInTempVariable(node, cacheIdentifiers) { + const target = skipParentheses(node); + switch (target.kind) { + case 80 /* Identifier */: + return cacheIdentifiers; + case 110 /* ThisKeyword */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + return false; + case 209 /* ArrayLiteralExpression */: + const elements = target.elements; + if (elements.length === 0) { + return false; + } + return true; + case 210 /* ObjectLiteralExpression */: + return target.properties.length > 0; + default: + return true; + } + } + function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) { + const callee = skipOuterExpressions(expression, 15 /* All */); + let thisArg; + let target; + if (isSuperProperty(callee)) { + thisArg = createThis(); + target = callee; + } else if (isSuperKeyword(callee)) { + thisArg = createThis(); + target = languageVersion !== void 0 && languageVersion < 2 /* ES2015 */ ? setTextRange(createIdentifier("_super"), callee) : callee; + } else if (getEmitFlags(callee) & 8192 /* HelperName */) { + thisArg = createVoidZero(); + target = parenthesizerRules().parenthesizeLeftSideOfAccess( + callee, + /*optionalChain*/ + false + ); + } else if (isPropertyAccessExpression(callee)) { + if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) { + thisArg = createTempVariable(recordTempVariable); + target = createPropertyAccessExpression( + setTextRange( + factory2.createAssignment( + thisArg, + callee.expression + ), + callee.expression + ), + callee.name + ); + setTextRange(target, callee); + } else { + thisArg = callee.expression; + target = callee; + } + } else if (isElementAccessExpression(callee)) { + if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) { + thisArg = createTempVariable(recordTempVariable); + target = createElementAccessExpression( + setTextRange( + factory2.createAssignment( + thisArg, + callee.expression + ), + callee.expression + ), + callee.argumentExpression + ); + setTextRange(target, callee); + } else { + thisArg = callee.expression; + target = callee; + } + } else { + thisArg = createVoidZero(); + target = parenthesizerRules().parenthesizeLeftSideOfAccess( + expression, + /*optionalChain*/ + false + ); + } + return { target, thisArg }; + } + function createAssignmentTargetWrapper(paramName, expression) { + return createPropertyAccessExpression( + // Explicit parens required because of v8 regression (https://bugs.chromium.org/p/v8/issues/detail?id=9560) + createParenthesizedExpression( + createObjectLiteralExpression([ + createSetAccessorDeclaration( + /*modifiers*/ + void 0, + "value", + [createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + paramName, + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + )], + createBlock([ + createExpressionStatement(expression) + ]) + ) + ]) + ), + "value" + ); + } + function inlineExpressions(expressions) { + return expressions.length > 10 ? createCommaListExpression(expressions) : reduceLeft(expressions, factory2.createComma); + } + function getName(node, allowComments, allowSourceMaps, emitFlags = 0, ignoreAssignedName) { + const nodeName = ignoreAssignedName ? node && getNonAssignedNameOfDeclaration(node) : getNameOfDeclaration(node); + if (nodeName && isIdentifier(nodeName) && !isGeneratedIdentifier(nodeName)) { + const name = setParent(setTextRange(cloneNode(nodeName), nodeName), nodeName.parent); + emitFlags |= getEmitFlags(nodeName); + if (!allowSourceMaps) emitFlags |= 96 /* NoSourceMap */; + if (!allowComments) emitFlags |= 3072 /* NoComments */; + if (emitFlags) setEmitFlags(name, emitFlags); + return name; + } + return getGeneratedNameForNode(node); + } + function getInternalName(node, allowComments, allowSourceMaps) { + return getName(node, allowComments, allowSourceMaps, 32768 /* LocalName */ | 65536 /* InternalName */); + } + function getLocalName(node, allowComments, allowSourceMaps, ignoreAssignedName) { + return getName(node, allowComments, allowSourceMaps, 32768 /* LocalName */, ignoreAssignedName); + } + function getExportName(node, allowComments, allowSourceMaps) { + return getName(node, allowComments, allowSourceMaps, 16384 /* ExportName */); + } + function getDeclarationName(node, allowComments, allowSourceMaps) { + return getName(node, allowComments, allowSourceMaps); + } + function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) { + const qualifiedName = createPropertyAccessExpression(ns, nodeIsSynthesized(name) ? name : cloneNode(name)); + setTextRange(qualifiedName, name); + let emitFlags = 0; + if (!allowSourceMaps) emitFlags |= 96 /* NoSourceMap */; + if (!allowComments) emitFlags |= 3072 /* NoComments */; + if (emitFlags) setEmitFlags(qualifiedName, emitFlags); + return qualifiedName; + } + function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) { + if (ns && hasSyntacticModifier(node, 32 /* Export */)) { + return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps); + } + return getExportName(node, allowComments, allowSourceMaps); + } + function copyPrologue(source, target, ensureUseStrict2, visitor) { + const offset = copyStandardPrologue(source, target, 0, ensureUseStrict2); + return copyCustomPrologue(source, target, offset, visitor); + } + function isUseStrictPrologue2(node) { + return isStringLiteral(node.expression) && node.expression.text === "use strict"; + } + function createUseStrictPrologue() { + return startOnNewLine(createExpressionStatement(createStringLiteral("use strict"))); + } + function copyStandardPrologue(source, target, statementOffset = 0, ensureUseStrict2) { + Debug.assert(target.length === 0, "Prologue directives should be at the first statement in the target statements array"); + let foundUseStrict = false; + const numStatements = source.length; + while (statementOffset < numStatements) { + const statement = source[statementOffset]; + if (isPrologueDirective(statement)) { + if (isUseStrictPrologue2(statement)) { + foundUseStrict = true; + } + target.push(statement); + } else { + break; + } + statementOffset++; + } + if (ensureUseStrict2 && !foundUseStrict) { + target.push(createUseStrictPrologue()); + } + return statementOffset; + } + function copyCustomPrologue(source, target, statementOffset, visitor, filter2 = returnTrue) { + const numStatements = source.length; + while (statementOffset !== void 0 && statementOffset < numStatements) { + const statement = source[statementOffset]; + if (getEmitFlags(statement) & 2097152 /* CustomPrologue */ && filter2(statement)) { + append(target, visitor ? visitNode(statement, visitor, isStatement) : statement); + } else { + break; + } + statementOffset++; + } + return statementOffset; + } + function ensureUseStrict(statements) { + const foundUseStrict = findUseStrictPrologue(statements); + if (!foundUseStrict) { + return setTextRange(createNodeArray([createUseStrictPrologue(), ...statements]), statements); + } + return statements; + } + function liftToBlock(nodes) { + Debug.assert(every(nodes, isStatementOrBlock), "Cannot lift nodes to a Block."); + return singleOrUndefined(nodes) || createBlock(nodes); + } + function findSpanEnd(array, test, start) { + let i = start; + while (i < array.length && test(array[i])) { + i++; + } + return i; + } + function mergeLexicalEnvironment(statements, declarations) { + if (!some(declarations)) { + return statements; + } + const leftStandardPrologueEnd = findSpanEnd(statements, isPrologueDirective, 0); + const leftHoistedFunctionsEnd = findSpanEnd(statements, isHoistedFunction, leftStandardPrologueEnd); + const leftHoistedVariablesEnd = findSpanEnd(statements, isHoistedVariableStatement, leftHoistedFunctionsEnd); + const rightStandardPrologueEnd = findSpanEnd(declarations, isPrologueDirective, 0); + const rightHoistedFunctionsEnd = findSpanEnd(declarations, isHoistedFunction, rightStandardPrologueEnd); + const rightHoistedVariablesEnd = findSpanEnd(declarations, isHoistedVariableStatement, rightHoistedFunctionsEnd); + const rightCustomPrologueEnd = findSpanEnd(declarations, isCustomPrologue, rightHoistedVariablesEnd); + Debug.assert(rightCustomPrologueEnd === declarations.length, "Expected declarations to be valid standard or custom prologues"); + const left = isNodeArray(statements) ? statements.slice() : statements; + if (rightCustomPrologueEnd > rightHoistedVariablesEnd) { + left.splice(leftHoistedVariablesEnd, 0, ...declarations.slice(rightHoistedVariablesEnd, rightCustomPrologueEnd)); + } + if (rightHoistedVariablesEnd > rightHoistedFunctionsEnd) { + left.splice(leftHoistedFunctionsEnd, 0, ...declarations.slice(rightHoistedFunctionsEnd, rightHoistedVariablesEnd)); + } + if (rightHoistedFunctionsEnd > rightStandardPrologueEnd) { + left.splice(leftStandardPrologueEnd, 0, ...declarations.slice(rightStandardPrologueEnd, rightHoistedFunctionsEnd)); + } + if (rightStandardPrologueEnd > 0) { + if (leftStandardPrologueEnd === 0) { + left.splice(0, 0, ...declarations.slice(0, rightStandardPrologueEnd)); + } else { + const leftPrologues = /* @__PURE__ */ new Map(); + for (let i = 0; i < leftStandardPrologueEnd; i++) { + const leftPrologue = statements[i]; + leftPrologues.set(leftPrologue.expression.text, true); + } + for (let i = rightStandardPrologueEnd - 1; i >= 0; i--) { + const rightPrologue = declarations[i]; + if (!leftPrologues.has(rightPrologue.expression.text)) { + left.unshift(rightPrologue); + } + } + } + } + if (isNodeArray(statements)) { + return setTextRange(createNodeArray(left, statements.hasTrailingComma), statements); + } + return statements; + } + function replaceModifiers(node, modifiers) { + let modifierArray; + if (typeof modifiers === "number") { + modifierArray = createModifiersFromModifierFlags(modifiers); + } else { + modifierArray = modifiers; + } + return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.attributes) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.attributes) : Debug.assertNever(node); + } + function replaceDecoratorsAndModifiers(node, modifierArray) { + return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node); + } + function replacePropertyName(node, name) { + switch (node.kind) { + case 177 /* GetAccessor */: + return updateGetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.type, node.body); + case 178 /* SetAccessor */: + return updateSetAccessorDeclaration(node, node.modifiers, name, node.parameters, node.body); + case 174 /* MethodDeclaration */: + return updateMethodDeclaration(node, node.modifiers, node.asteriskToken, name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body); + case 173 /* MethodSignature */: + return updateMethodSignature(node, node.modifiers, name, node.questionToken, node.typeParameters, node.parameters, node.type); + case 172 /* PropertyDeclaration */: + return updatePropertyDeclaration(node, node.modifiers, name, node.questionToken ?? node.exclamationToken, node.type, node.initializer); + case 171 /* PropertySignature */: + return updatePropertySignature(node, node.modifiers, name, node.questionToken, node.type); + case 303 /* PropertyAssignment */: + return updatePropertyAssignment(node, name, node.initializer); + } + } + function asNodeArray(array) { + return array ? createNodeArray(array) : void 0; + } + function asName(name) { + return typeof name === "string" ? createIdentifier(name) : name; + } + function asExpression(value) { + return typeof value === "string" ? createStringLiteral(value) : typeof value === "number" ? createNumericLiteral(value) : typeof value === "boolean" ? value ? createTrue() : createFalse() : value; + } + function asInitializer(node) { + return node && parenthesizerRules().parenthesizeExpressionForDisallowedComma(node); + } + function asToken(value) { + return typeof value === "number" ? createToken(value) : value; + } + function asEmbeddedStatement(statement) { + return statement && isNotEmittedStatement(statement) ? setTextRange(setOriginal(createEmptyStatement(), statement), statement) : statement; + } + function asVariableDeclaration(variableDeclaration) { + if (typeof variableDeclaration === "string" || variableDeclaration && !isVariableDeclaration(variableDeclaration)) { + return createVariableDeclaration( + variableDeclaration, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + } + return variableDeclaration; + } + function update(updated, original) { + if (updated !== original) { + setOriginal(updated, original); + setTextRange(updated, original); + } + return updated; + } +} +function getDefaultTagNameForKind(kind) { + switch (kind) { + case 344 /* JSDocTypeTag */: + return "type"; + case 342 /* JSDocReturnTag */: + return "returns"; + case 343 /* JSDocThisTag */: + return "this"; + case 340 /* JSDocEnumTag */: + return "enum"; + case 330 /* JSDocAuthorTag */: + return "author"; + case 332 /* JSDocClassTag */: + return "class"; + case 333 /* JSDocPublicTag */: + return "public"; + case 334 /* JSDocPrivateTag */: + return "private"; + case 335 /* JSDocProtectedTag */: + return "protected"; + case 336 /* JSDocReadonlyTag */: + return "readonly"; + case 337 /* JSDocOverrideTag */: + return "override"; + case 345 /* JSDocTemplateTag */: + return "template"; + case 346 /* JSDocTypedefTag */: + return "typedef"; + case 341 /* JSDocParameterTag */: + return "param"; + case 348 /* JSDocPropertyTag */: + return "prop"; + case 338 /* JSDocCallbackTag */: + return "callback"; + case 339 /* JSDocOverloadTag */: + return "overload"; + case 328 /* JSDocAugmentsTag */: + return "augments"; + case 329 /* JSDocImplementsTag */: + return "implements"; + case 351 /* JSDocImportTag */: + return "import"; + default: + return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`); + } +} +var rawTextScanner; +var invalidValueSentinel = {}; +function getCookedText(kind, rawText) { + if (!rawTextScanner) { + rawTextScanner = createScanner( + 99 /* Latest */, + /*skipTrivia*/ + false, + 0 /* Standard */ + ); + } + switch (kind) { + case 15 /* NoSubstitutionTemplateLiteral */: + rawTextScanner.setText("`" + rawText + "`"); + break; + case 16 /* TemplateHead */: + rawTextScanner.setText("`" + rawText + "${"); + break; + case 17 /* TemplateMiddle */: + rawTextScanner.setText("}" + rawText + "${"); + break; + case 18 /* TemplateTail */: + rawTextScanner.setText("}" + rawText + "`"); + break; + } + let token = rawTextScanner.scan(); + if (token === 20 /* CloseBraceToken */) { + token = rawTextScanner.reScanTemplateToken( + /*isTaggedTemplate*/ + false + ); + } + if (rawTextScanner.isUnterminated()) { + rawTextScanner.setText(void 0); + return invalidValueSentinel; + } + let tokenValue; + switch (token) { + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + case 17 /* TemplateMiddle */: + case 18 /* TemplateTail */: + tokenValue = rawTextScanner.getTokenValue(); + break; + } + if (tokenValue === void 0 || rawTextScanner.scan() !== 1 /* EndOfFileToken */) { + rawTextScanner.setText(void 0); + return invalidValueSentinel; + } + rawTextScanner.setText(void 0); + return tokenValue; +} +function propagateNameFlags(node) { + return node && isIdentifier(node) ? propagateIdentifierNameFlags(node) : propagateChildFlags(node); +} +function propagateIdentifierNameFlags(node) { + return propagateChildFlags(node) & ~67108864 /* ContainsPossibleTopLevelAwait */; +} +function propagatePropertyNameFlagsOfChild(node, transformFlags) { + return transformFlags | node.transformFlags & 134234112 /* PropertyNamePropagatingFlags */; +} +function propagateChildFlags(child) { + if (!child) return 0 /* None */; + const childFlags = child.transformFlags & ~getTransformFlagsSubtreeExclusions(child.kind); + return isNamedDeclaration(child) && isPropertyName(child.name) ? propagatePropertyNameFlagsOfChild(child.name, childFlags) : childFlags; +} +function propagateChildrenFlags(children) { + return children ? children.transformFlags : 0 /* None */; +} +function aggregateChildrenFlags(children) { + let subtreeFlags = 0 /* None */; + for (const child of children) { + subtreeFlags |= propagateChildFlags(child); + } + children.transformFlags = subtreeFlags; +} +function getTransformFlagsSubtreeExclusions(kind) { + if (kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */) { + return -2 /* TypeExcludes */; + } + switch (kind) { + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 209 /* ArrayLiteralExpression */: + return -2147450880 /* ArrayLiteralOrCallOrNewExcludes */; + case 267 /* ModuleDeclaration */: + return -1941676032 /* ModuleExcludes */; + case 169 /* Parameter */: + return -2147483648 /* ParameterExcludes */; + case 219 /* ArrowFunction */: + return -2072174592 /* ArrowFunctionExcludes */; + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + return -1937940480 /* FunctionExcludes */; + case 261 /* VariableDeclarationList */: + return -2146893824 /* VariableDeclarationListExcludes */; + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return -2147344384 /* ClassExcludes */; + case 176 /* Constructor */: + return -1937948672 /* ConstructorExcludes */; + case 172 /* PropertyDeclaration */: + return -2013249536 /* PropertyExcludes */; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return -2005057536 /* MethodOrAccessorExcludes */; + case 133 /* AnyKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 146 /* NeverKeyword */: + case 154 /* StringKeyword */: + case 151 /* ObjectKeyword */: + case 136 /* BooleanKeyword */: + case 155 /* SymbolKeyword */: + case 116 /* VoidKeyword */: + case 168 /* TypeParameter */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + return -2 /* TypeExcludes */; + case 210 /* ObjectLiteralExpression */: + return -2147278848 /* ObjectLiteralExcludes */; + case 299 /* CatchClause */: + return -2147418112 /* CatchClauseExcludes */; + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + return -2147450880 /* BindingPatternExcludes */; + case 216 /* TypeAssertionExpression */: + case 238 /* SatisfiesExpression */: + case 234 /* AsExpression */: + case 354 /* PartiallyEmittedExpression */: + case 217 /* ParenthesizedExpression */: + case 108 /* SuperKeyword */: + return -2147483648 /* OuterExpressionExcludes */; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return -2147483648 /* PropertyAccessExcludes */; + default: + return -2147483648 /* NodeExcludes */; + } +} +var baseFactory = createBaseNodeFactory(); +function makeSynthetic(node) { + node.flags |= 16 /* Synthesized */; + return node; +} +var syntheticFactory = { + createBaseSourceFileNode: (kind) => makeSynthetic(baseFactory.createBaseSourceFileNode(kind)), + createBaseIdentifierNode: (kind) => makeSynthetic(baseFactory.createBaseIdentifierNode(kind)), + createBasePrivateIdentifierNode: (kind) => makeSynthetic(baseFactory.createBasePrivateIdentifierNode(kind)), + createBaseTokenNode: (kind) => makeSynthetic(baseFactory.createBaseTokenNode(kind)), + createBaseNode: (kind) => makeSynthetic(baseFactory.createBaseNode(kind)) +}; +var factory = createNodeFactory(4 /* NoIndentationOnFreshPropertyAccess */, syntheticFactory); +function setOriginalNode(node, original) { + if (node.original !== original) { + node.original = original; + if (original) { + const emitNode = original.emitNode; + if (emitNode) node.emitNode = mergeEmitNode(emitNode, node.emitNode); + } + } + return node; +} +function mergeEmitNode(sourceEmitNode, destEmitNode) { + const { + flags, + internalFlags, + leadingComments, + trailingComments, + commentRange, + sourceMapRange, + tokenSourceMapRanges, + constantValue, + helpers, + startsOnNewLine, + snippetElement, + classThis, + assignedName + } = sourceEmitNode; + if (!destEmitNode) destEmitNode = {}; + if (flags) { + destEmitNode.flags = flags; + } + if (internalFlags) { + destEmitNode.internalFlags = internalFlags & ~8 /* Immutable */; + } + if (leadingComments) { + destEmitNode.leadingComments = addRange(leadingComments.slice(), destEmitNode.leadingComments); + } + if (trailingComments) { + destEmitNode.trailingComments = addRange(trailingComments.slice(), destEmitNode.trailingComments); + } + if (commentRange) { + destEmitNode.commentRange = commentRange; + } + if (sourceMapRange) { + destEmitNode.sourceMapRange = sourceMapRange; + } + if (tokenSourceMapRanges) { + destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges); + } + if (constantValue !== void 0) { + destEmitNode.constantValue = constantValue; + } + if (helpers) { + for (const helper of helpers) { + destEmitNode.helpers = appendIfUnique(destEmitNode.helpers, helper); + } + } + if (startsOnNewLine !== void 0) { + destEmitNode.startsOnNewLine = startsOnNewLine; + } + if (snippetElement !== void 0) { + destEmitNode.snippetElement = snippetElement; + } + if (classThis) { + destEmitNode.classThis = classThis; + } + if (assignedName) { + destEmitNode.assignedName = assignedName; + } + return destEmitNode; +} +function mergeTokenSourceMapRanges(sourceRanges, destRanges) { + if (!destRanges) destRanges = []; + for (const key in sourceRanges) { + destRanges[key] = sourceRanges[key]; + } + return destRanges; +} + +// src/compiler/factory/emitNode.ts +function getOrCreateEmitNode(node) { + if (!node.emitNode) { + if (isParseTreeNode(node)) { + if (node.kind === 307 /* SourceFile */) { + return node.emitNode = { annotatedNodes: [node] }; + } + const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file."); + getOrCreateEmitNode(sourceFile).annotatedNodes.push(node); + } + node.emitNode = {}; + } else { + Debug.assert(!(node.emitNode.internalFlags & 8 /* Immutable */), "Invalid attempt to mutate an immutable node."); + } + return node.emitNode; +} +function disposeEmitNodes(sourceFile) { + var _a, _b; + const annotatedNodes = (_b = (_a = getSourceFileOfNode(getParseTreeNode(sourceFile))) == null ? void 0 : _a.emitNode) == null ? void 0 : _b.annotatedNodes; + if (annotatedNodes) { + for (const node of annotatedNodes) { + node.emitNode = void 0; + } + } +} +function removeAllComments(node) { + const emitNode = getOrCreateEmitNode(node); + emitNode.flags |= 3072 /* NoComments */; + emitNode.leadingComments = void 0; + emitNode.trailingComments = void 0; + return node; +} +function setEmitFlags(node, emitFlags) { + getOrCreateEmitNode(node).flags = emitFlags; + return node; +} +function addEmitFlags(node, emitFlags) { + const emitNode = getOrCreateEmitNode(node); + emitNode.flags = emitNode.flags | emitFlags; + return node; +} +function setInternalEmitFlags(node, emitFlags) { + getOrCreateEmitNode(node).internalFlags = emitFlags; + return node; +} +function addInternalEmitFlags(node, emitFlags) { + const emitNode = getOrCreateEmitNode(node); + emitNode.internalFlags = emitNode.internalFlags | emitFlags; + return node; +} +function getSourceMapRange(node) { + var _a; + return ((_a = node.emitNode) == null ? void 0 : _a.sourceMapRange) ?? node; +} +function setSourceMapRange(node, range) { + getOrCreateEmitNode(node).sourceMapRange = range; + return node; +} +function setTokenSourceMapRange(node, token, range) { + const emitNode = getOrCreateEmitNode(node); + const tokenSourceMapRanges = emitNode.tokenSourceMapRanges ?? (emitNode.tokenSourceMapRanges = []); + tokenSourceMapRanges[token] = range; + return node; +} +function getStartsOnNewLine(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.startsOnNewLine; +} +function setStartsOnNewLine(node, newLine) { + getOrCreateEmitNode(node).startsOnNewLine = newLine; + return node; +} +function getCommentRange(node) { + var _a; + return ((_a = node.emitNode) == null ? void 0 : _a.commentRange) ?? node; +} +function setCommentRange(node, range) { + getOrCreateEmitNode(node).commentRange = range; + return node; +} +function getSyntheticLeadingComments(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.leadingComments; +} +function setSyntheticLeadingComments(node, comments) { + getOrCreateEmitNode(node).leadingComments = comments; + return node; +} +function addSyntheticLeadingComment(node, kind, text, hasTrailingNewLine) { + return setSyntheticLeadingComments(node, append(getSyntheticLeadingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text })); +} +function getSyntheticTrailingComments(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.trailingComments; +} +function setSyntheticTrailingComments(node, comments) { + getOrCreateEmitNode(node).trailingComments = comments; + return node; +} +function addSyntheticTrailingComment(node, kind, text, hasTrailingNewLine) { + return setSyntheticTrailingComments(node, append(getSyntheticTrailingComments(node), { kind, pos: -1, end: -1, hasTrailingNewLine, text })); +} +function moveSyntheticComments(node, original) { + setSyntheticLeadingComments(node, getSyntheticLeadingComments(original)); + setSyntheticTrailingComments(node, getSyntheticTrailingComments(original)); + const emit = getOrCreateEmitNode(original); + emit.leadingComments = void 0; + emit.trailingComments = void 0; + return node; +} +function getConstantValue(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.constantValue; +} +function setConstantValue(node, value) { + const emitNode = getOrCreateEmitNode(node); + emitNode.constantValue = value; + return node; +} +function addEmitHelper(node, helper) { + const emitNode = getOrCreateEmitNode(node); + emitNode.helpers = append(emitNode.helpers, helper); + return node; +} +function addEmitHelpers(node, helpers) { + if (some(helpers)) { + const emitNode = getOrCreateEmitNode(node); + for (const helper of helpers) { + emitNode.helpers = appendIfUnique(emitNode.helpers, helper); + } + } + return node; +} +function getEmitHelpers(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.helpers; +} +function moveEmitHelpers(source, target, predicate) { + const sourceEmitNode = source.emitNode; + const sourceEmitHelpers = sourceEmitNode && sourceEmitNode.helpers; + if (!some(sourceEmitHelpers)) return; + const targetEmitNode = getOrCreateEmitNode(target); + let helpersRemoved = 0; + for (let i = 0; i < sourceEmitHelpers.length; i++) { + const helper = sourceEmitHelpers[i]; + if (predicate(helper)) { + helpersRemoved++; + targetEmitNode.helpers = appendIfUnique(targetEmitNode.helpers, helper); + } else if (helpersRemoved > 0) { + sourceEmitHelpers[i - helpersRemoved] = helper; + } + } + if (helpersRemoved > 0) { + sourceEmitHelpers.length -= helpersRemoved; + } +} +function getSnippetElement(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.snippetElement; +} +function setTypeNode(node, type) { + const emitNode = getOrCreateEmitNode(node); + emitNode.typeNode = type; + return node; +} +function getTypeNode(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.typeNode; +} +function setIdentifierTypeArguments(node, typeArguments) { + getOrCreateEmitNode(node).identifierTypeArguments = typeArguments; + return node; +} +function getIdentifierTypeArguments(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.identifierTypeArguments; +} +function setIdentifierAutoGenerate(node, autoGenerate) { + getOrCreateEmitNode(node).autoGenerate = autoGenerate; + return node; +} +function setIdentifierGeneratedImportReference(node, value) { + getOrCreateEmitNode(node).generatedImportReference = value; + return node; +} +function getIdentifierGeneratedImportReference(node) { + var _a; + return (_a = node.emitNode) == null ? void 0 : _a.generatedImportReference; +} + +// src/compiler/factory/emitHelpers.ts +function createEmitHelperFactory(context) { + const factory2 = context.factory; + const immutableTrue = memoize(() => setInternalEmitFlags(factory2.createTrue(), 8 /* Immutable */)); + const immutableFalse = memoize(() => setInternalEmitFlags(factory2.createFalse(), 8 /* Immutable */)); + return { + getUnscopedHelperName, + // TypeScript Helpers + createDecorateHelper, + createMetadataHelper, + createParamHelper, + // ES Decorators Helpers + createESDecorateHelper, + createRunInitializersHelper, + // ES2018 Helpers + createAssignHelper, + createAwaitHelper, + createAsyncGeneratorHelper, + createAsyncDelegatorHelper, + createAsyncValuesHelper, + // ES2018 Destructuring Helpers + createRestHelper, + // ES2017 Helpers + createAwaiterHelper, + // ES2015 Helpers + createExtendsHelper, + createTemplateObjectHelper, + createSpreadArrayHelper, + createPropKeyHelper, + createSetFunctionNameHelper, + // ES2015 Destructuring Helpers + createValuesHelper, + createReadHelper, + // ES2015 Generator Helpers + createGeneratorHelper, + // ES Module Helpers + createImportStarHelper, + createImportStarCallbackHelper, + createImportDefaultHelper, + createExportStarHelper, + // Class Fields Helpers + createClassPrivateFieldGetHelper, + createClassPrivateFieldSetHelper, + createClassPrivateFieldInHelper, + // 'using' helpers + createAddDisposableResourceHelper, + createDisposeResourcesHelper + }; + function getUnscopedHelperName(name) { + return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); + } + function createDecorateHelper(decoratorExpressions, target, memberName, descriptor) { + context.requestEmitHelper(decorateHelper); + const argumentsArray = []; + argumentsArray.push(factory2.createArrayLiteralExpression( + decoratorExpressions, + /*multiLine*/ + true + )); + argumentsArray.push(target); + if (memberName) { + argumentsArray.push(memberName); + if (descriptor) { + argumentsArray.push(descriptor); + } + } + return factory2.createCallExpression( + getUnscopedHelperName("__decorate"), + /*typeArguments*/ + void 0, + argumentsArray + ); + } + function createMetadataHelper(metadataKey, metadataValue) { + context.requestEmitHelper(metadataHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__metadata"), + /*typeArguments*/ + void 0, + [ + factory2.createStringLiteral(metadataKey), + metadataValue + ] + ); + } + function createParamHelper(expression, parameterOffset, location) { + context.requestEmitHelper(paramHelper); + return setTextRange( + factory2.createCallExpression( + getUnscopedHelperName("__param"), + /*typeArguments*/ + void 0, + [ + factory2.createNumericLiteral(parameterOffset + ""), + expression + ] + ), + location + ); + } + function createESDecorateClassContextObject(contextIn) { + const properties = [ + factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")), + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); + } + function createESDecorateClassElementAccessGetMethod(elementName) { + const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); + return factory2.createPropertyAssignment( + "get", + factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.createIdentifier("obj") + )], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + accessor + ) + ); + } + function createESDecorateClassElementAccessSetMethod(elementName) { + const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name); + return factory2.createPropertyAssignment( + "set", + factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.createIdentifier("obj") + ), + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.createIdentifier("value") + ) + ], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment( + accessor, + factory2.createIdentifier("value") + ) + ) + ]) + ) + ); + } + function createESDecorateClassElementAccessHasMethod(elementName) { + const propertyName = elementName.computed ? elementName.name : isIdentifier(elementName.name) ? factory2.createStringLiteralFromNode(elementName.name) : elementName.name; + return factory2.createPropertyAssignment( + "has", + factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.createIdentifier("obj") + )], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + factory2.createBinaryExpression( + propertyName, + 103 /* InKeyword */, + factory2.createIdentifier("obj") + ) + ) + ); + } + function createESDecorateClassElementAccessObject(name, access) { + const properties = []; + properties.push(createESDecorateClassElementAccessHasMethod(name)); + if (access.get) properties.push(createESDecorateClassElementAccessGetMethod(name)); + if (access.set) properties.push(createESDecorateClassElementAccessSetMethod(name)); + return factory2.createObjectLiteralExpression(properties); + } + function createESDecorateClassElementContextObject(contextIn) { + const properties = [ + factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)), + factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)), + factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()), + factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()), + factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)), + factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata) + ]; + return factory2.createObjectLiteralExpression(properties); + } + function createESDecorateContextObject(contextIn) { + return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn); + } + function createESDecorateHelper(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + context.requestEmitHelper(esDecorateHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__esDecorate"), + /*typeArguments*/ + void 0, + [ + ctor ?? factory2.createNull(), + descriptorIn ?? factory2.createNull(), + decorators, + createESDecorateContextObject(contextIn), + initializers, + extraInitializers + ] + ); + } + function createRunInitializersHelper(thisArg, initializers, value) { + context.requestEmitHelper(runInitializersHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__runInitializers"), + /*typeArguments*/ + void 0, + value ? [thisArg, initializers, value] : [thisArg, initializers] + ); + } + function createAssignHelper(attributesSegments) { + if (getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) { + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "assign"), + /*typeArguments*/ + void 0, + attributesSegments + ); + } + context.requestEmitHelper(assignHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__assign"), + /*typeArguments*/ + void 0, + attributesSegments + ); + } + function createAwaitHelper(expression) { + context.requestEmitHelper(awaitHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__await"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createAsyncGeneratorHelper(generatorFunc, hasLexicalThis) { + context.requestEmitHelper(awaitHelper); + context.requestEmitHelper(asyncGeneratorHelper); + (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 /* AsyncFunctionBody */ | 1048576 /* ReuseTempVariableScope */; + return factory2.createCallExpression( + getUnscopedHelperName("__asyncGenerator"), + /*typeArguments*/ + void 0, + [ + hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(), + factory2.createIdentifier("arguments"), + generatorFunc + ] + ); + } + function createAsyncDelegatorHelper(expression) { + context.requestEmitHelper(awaitHelper); + context.requestEmitHelper(asyncDelegator); + return factory2.createCallExpression( + getUnscopedHelperName("__asyncDelegator"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createAsyncValuesHelper(expression) { + context.requestEmitHelper(asyncValues); + return factory2.createCallExpression( + getUnscopedHelperName("__asyncValues"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createRestHelper(value, elements, computedTempVariables, location) { + context.requestEmitHelper(restHelper); + const propertyNames = []; + let computedTempVariableOffset = 0; + for (let i = 0; i < elements.length - 1; i++) { + const propertyName = getPropertyNameOfBindingOrAssignmentElement(elements[i]); + if (propertyName) { + if (isComputedPropertyName(propertyName)) { + Debug.assertIsDefined(computedTempVariables, "Encountered computed property name but 'computedTempVariables' argument was not provided."); + const temp = computedTempVariables[computedTempVariableOffset]; + computedTempVariableOffset++; + propertyNames.push( + factory2.createConditionalExpression( + factory2.createTypeCheck(temp, "symbol"), + /*questionToken*/ + void 0, + temp, + /*colonToken*/ + void 0, + factory2.createAdd(temp, factory2.createStringLiteral("")) + ) + ); + } else { + propertyNames.push(factory2.createStringLiteralFromNode(propertyName)); + } + } + } + return factory2.createCallExpression( + getUnscopedHelperName("__rest"), + /*typeArguments*/ + void 0, + [ + value, + setTextRange( + factory2.createArrayLiteralExpression(propertyNames), + location + ) + ] + ); + } + function createAwaiterHelper(hasLexicalThis, argumentsExpression, promiseConstructor, parameters, body) { + context.requestEmitHelper(awaiterHelper); + const generatorFunc = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + factory2.createToken(42 /* AsteriskToken */), + /*name*/ + void 0, + /*typeParameters*/ + void 0, + parameters ?? [], + /*type*/ + void 0, + body + ); + (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 524288 /* AsyncFunctionBody */ | 1048576 /* ReuseTempVariableScope */; + return factory2.createCallExpression( + getUnscopedHelperName("__awaiter"), + /*typeArguments*/ + void 0, + [ + hasLexicalThis ? factory2.createThis() : factory2.createVoidZero(), + argumentsExpression ?? factory2.createVoidZero(), + promiseConstructor ? createExpressionFromEntityName(factory2, promiseConstructor) : factory2.createVoidZero(), + generatorFunc + ] + ); + } + function createExtendsHelper(name) { + context.requestEmitHelper(extendsHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__extends"), + /*typeArguments*/ + void 0, + [name, factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */)] + ); + } + function createTemplateObjectHelper(cooked, raw) { + context.requestEmitHelper(templateObjectHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__makeTemplateObject"), + /*typeArguments*/ + void 0, + [cooked, raw] + ); + } + function createSpreadArrayHelper(to, from, packFrom) { + context.requestEmitHelper(spreadArrayHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__spreadArray"), + /*typeArguments*/ + void 0, + [to, from, packFrom ? immutableTrue() : immutableFalse()] + ); + } + function createPropKeyHelper(expr) { + context.requestEmitHelper(propKeyHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__propKey"), + /*typeArguments*/ + void 0, + [expr] + ); + } + function createSetFunctionNameHelper(f, name, prefix) { + context.requestEmitHelper(setFunctionNameHelper); + return context.factory.createCallExpression( + getUnscopedHelperName("__setFunctionName"), + /*typeArguments*/ + void 0, + prefix ? [f, name, context.factory.createStringLiteral(prefix)] : [f, name] + ); + } + function createValuesHelper(expression) { + context.requestEmitHelper(valuesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__values"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createReadHelper(iteratorRecord, count) { + context.requestEmitHelper(readHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__read"), + /*typeArguments*/ + void 0, + count !== void 0 ? [iteratorRecord, factory2.createNumericLiteral(count + "")] : [iteratorRecord] + ); + } + function createGeneratorHelper(body) { + context.requestEmitHelper(generatorHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__generator"), + /*typeArguments*/ + void 0, + [factory2.createThis(), body] + ); + } + function createImportStarHelper(expression) { + context.requestEmitHelper(importStarHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__importStar"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createImportStarCallbackHelper() { + context.requestEmitHelper(importStarHelper); + return getUnscopedHelperName("__importStar"); + } + function createImportDefaultHelper(expression) { + context.requestEmitHelper(importDefaultHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__importDefault"), + /*typeArguments*/ + void 0, + [expression] + ); + } + function createExportStarHelper(moduleExpression, exportsExpression = factory2.createIdentifier("exports")) { + context.requestEmitHelper(exportStarHelper); + context.requestEmitHelper(createBindingHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__exportStar"), + /*typeArguments*/ + void 0, + [moduleExpression, exportsExpression] + ); + } + function createClassPrivateFieldGetHelper(receiver, state, kind, f) { + context.requestEmitHelper(classPrivateFieldGetHelper); + let args; + if (!f) { + args = [receiver, state, factory2.createStringLiteral(kind)]; + } else { + args = [receiver, state, factory2.createStringLiteral(kind), f]; + } + return factory2.createCallExpression( + getUnscopedHelperName("__classPrivateFieldGet"), + /*typeArguments*/ + void 0, + args + ); + } + function createClassPrivateFieldSetHelper(receiver, state, value, kind, f) { + context.requestEmitHelper(classPrivateFieldSetHelper); + let args; + if (!f) { + args = [receiver, state, value, factory2.createStringLiteral(kind)]; + } else { + args = [receiver, state, value, factory2.createStringLiteral(kind), f]; + } + return factory2.createCallExpression( + getUnscopedHelperName("__classPrivateFieldSet"), + /*typeArguments*/ + void 0, + args + ); + } + function createClassPrivateFieldInHelper(state, receiver) { + context.requestEmitHelper(classPrivateFieldInHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__classPrivateFieldIn"), + /*typeArguments*/ + void 0, + [state, receiver] + ); + } + function createAddDisposableResourceHelper(envBinding, value, async) { + context.requestEmitHelper(addDisposableResourceHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__addDisposableResource"), + /*typeArguments*/ + void 0, + [envBinding, value, async ? factory2.createTrue() : factory2.createFalse()] + ); + } + function createDisposeResourcesHelper(envBinding) { + context.requestEmitHelper(disposeResourcesHelper); + return factory2.createCallExpression( + getUnscopedHelperName("__disposeResources"), + /*typeArguments*/ + void 0, + [envBinding] + ); + } +} +function compareEmitHelpers(x, y) { + if (x === y) return 0 /* EqualTo */; + if (x.priority === y.priority) return 0 /* EqualTo */; + if (x.priority === void 0) return 1 /* GreaterThan */; + if (y.priority === void 0) return -1 /* LessThan */; + return compareValues(x.priority, y.priority); +} +function helperString(input, ...args) { + return (uniqueName) => { + let result = ""; + for (let i = 0; i < args.length; i++) { + result += input[i]; + result += uniqueName(args[i]); + } + result += input[input.length - 1]; + return result; + }; +} +var decorateHelper = { + name: "typescript:decorate", + importName: "__decorate", + scoped: false, + priority: 2, + text: ` + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };` +}; +var metadataHelper = { + name: "typescript:metadata", + importName: "__metadata", + scoped: false, + priority: 3, + text: ` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };` +}; +var paramHelper = { + name: "typescript:param", + importName: "__param", + scoped: false, + priority: 4, + text: ` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };` +}; +var esDecorateHelper = { + name: "typescript:esDecorate", + importName: "__esDecorate", + scoped: false, + priority: 2, + text: ` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };` +}; +var runInitializersHelper = { + name: "typescript:runInitializers", + importName: "__runInitializers", + scoped: false, + priority: 2, + text: ` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };` +}; +var assignHelper = { + name: "typescript:assign", + importName: "__assign", + scoped: false, + priority: 1, + text: ` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };` +}; +var awaitHelper = { + name: "typescript:await", + importName: "__await", + scoped: false, + text: ` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }` +}; +var asyncGeneratorHelper = { + name: "typescript:asyncGenerator", + importName: "__asyncGenerator", + scoped: false, + dependencies: [awaitHelper], + text: ` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };` +}; +var asyncDelegator = { + name: "typescript:asyncDelegator", + importName: "__asyncDelegator", + scoped: false, + dependencies: [awaitHelper], + text: ` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + };` +}; +var asyncValues = { + name: "typescript:asyncValues", + importName: "__asyncValues", + scoped: false, + text: ` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };` +}; +var restHelper = { + name: "typescript:rest", + importName: "__rest", + scoped: false, + text: ` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };` +}; +var awaiterHelper = { + name: "typescript:awaiter", + importName: "__awaiter", + scoped: false, + priority: 5, + text: ` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };` +}; +var extendsHelper = { + name: "typescript:extends", + importName: "__extends", + scoped: false, + priority: 0, + text: ` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();` +}; +var templateObjectHelper = { + name: "typescript:makeTemplateObject", + importName: "__makeTemplateObject", + scoped: false, + priority: 0, + text: ` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };` +}; +var readHelper = { + name: "typescript:read", + importName: "__read", + scoped: false, + text: ` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };` +}; +var spreadArrayHelper = { + name: "typescript:spreadArray", + importName: "__spreadArray", + scoped: false, + text: ` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };` +}; +var propKeyHelper = { + name: "typescript:propKey", + importName: "__propKey", + scoped: false, + text: ` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };` +}; +var setFunctionNameHelper = { + name: "typescript:setFunctionName", + importName: "__setFunctionName", + scoped: false, + text: ` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };` +}; +var valuesHelper = { + name: "typescript:values", + importName: "__values", + scoped: false, + text: ` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };` +}; +var generatorHelper = { + name: "typescript:generator", + importName: "__generator", + scoped: false, + priority: 6, + text: ` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };` +}; +var createBindingHelper = { + name: "typescript:commonjscreatebinding", + importName: "__createBinding", + scoped: false, + priority: 1, + text: ` + 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 setModuleDefaultHelper = { + name: "typescript:commonjscreatevalue", + importName: "__setModuleDefault", + scoped: false, + priority: 1, + text: ` + 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 importStarHelper = { + name: "typescript:commonjsimportstar", + importName: "__importStar", + scoped: false, + dependencies: [createBindingHelper, setModuleDefaultHelper], + priority: 2, + text: ` + 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 importDefaultHelper = { + name: "typescript:commonjsimportdefault", + importName: "__importDefault", + scoped: false, + text: ` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };` +}; +var exportStarHelper = { + name: "typescript:export-star", + importName: "__exportStar", + scoped: false, + dependencies: [createBindingHelper], + priority: 2, + text: ` + 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); + };` +}; +var classPrivateFieldGetHelper = { + name: "typescript:classPrivateFieldGet", + importName: "__classPrivateFieldGet", + scoped: false, + text: ` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };` +}; +var classPrivateFieldSetHelper = { + name: "typescript:classPrivateFieldSet", + importName: "__classPrivateFieldSet", + scoped: false, + text: ` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };` +}; +var classPrivateFieldInHelper = { + name: "typescript:classPrivateFieldIn", + importName: "__classPrivateFieldIn", + scoped: false, + text: ` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };` +}; +var addDisposableResourceHelper = { + name: "typescript:addDisposableResource", + importName: "__addDisposableResource", + scoped: false, + text: ` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose, inner; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + if (async) inner = dispose; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };` +}; +var disposeResourcesHelper = { + name: "typescript:disposeResources", + importName: "__disposeResources", + scoped: false, + text: ` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });` +}; +var asyncSuperHelper = { + name: "typescript:async-super", + scoped: true, + text: helperString` + const ${"_superIndex"} = name => super[name];` +}; +var advancedAsyncSuperHelper = { + name: "typescript:advanced-async-super", + scoped: true, + text: helperString` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);` +}; +function isCallToHelper(firstSegment, helperName) { + return isCallExpression(firstSegment) && isIdentifier(firstSegment.expression) && (getEmitFlags(firstSegment.expression) & 8192 /* HelperName */) !== 0 && firstSegment.expression.escapedText === helperName; +} + +// src/compiler/factory/nodeTests.ts +function isNumericLiteral(node) { + return node.kind === 9 /* NumericLiteral */; +} +function isBigIntLiteral(node) { + return node.kind === 10 /* BigIntLiteral */; +} +function isStringLiteral(node) { + return node.kind === 11 /* StringLiteral */; +} +function isJsxText(node) { + return node.kind === 12 /* JsxText */; +} +function isNoSubstitutionTemplateLiteral(node) { + return node.kind === 15 /* NoSubstitutionTemplateLiteral */; +} +function isTemplateHead(node) { + return node.kind === 16 /* TemplateHead */; +} +function isDotDotDotToken(node) { + return node.kind === 26 /* DotDotDotToken */; +} +function isCommaToken(node) { + return node.kind === 28 /* CommaToken */; +} +function isPlusToken(node) { + return node.kind === 40 /* PlusToken */; +} +function isMinusToken(node) { + return node.kind === 41 /* MinusToken */; +} +function isAsteriskToken(node) { + return node.kind === 42 /* AsteriskToken */; +} +function isExclamationToken(node) { + return node.kind === 54 /* ExclamationToken */; +} +function isQuestionToken(node) { + return node.kind === 58 /* QuestionToken */; +} +function isColonToken(node) { + return node.kind === 59 /* ColonToken */; +} +function isQuestionDotToken(node) { + return node.kind === 29 /* QuestionDotToken */; +} +function isEqualsGreaterThanToken(node) { + return node.kind === 39 /* EqualsGreaterThanToken */; +} +function isIdentifier(node) { + return node.kind === 80 /* Identifier */; +} +function isPrivateIdentifier(node) { + return node.kind === 81 /* PrivateIdentifier */; +} +function isExportModifier(node) { + return node.kind === 95 /* ExportKeyword */; +} +function isDefaultModifier(node) { + return node.kind === 90 /* DefaultKeyword */; +} +function isAsyncModifier(node) { + return node.kind === 134 /* AsyncKeyword */; +} +function isAssertsKeyword(node) { + return node.kind === 131 /* AssertsKeyword */; +} +function isAwaitKeyword(node) { + return node.kind === 135 /* AwaitKeyword */; +} +function isReadonlyKeyword(node) { + return node.kind === 148 /* ReadonlyKeyword */; +} +function isStaticModifier(node) { + return node.kind === 126 /* StaticKeyword */; +} +function isAccessorModifier(node) { + return node.kind === 129 /* AccessorKeyword */; +} +function isSuperKeyword(node) { + return node.kind === 108 /* SuperKeyword */; +} +function isImportKeyword(node) { + return node.kind === 102 /* ImportKeyword */; +} +function isQualifiedName(node) { + return node.kind === 166 /* QualifiedName */; +} +function isComputedPropertyName(node) { + return node.kind === 167 /* ComputedPropertyName */; +} +function isTypeParameterDeclaration(node) { + return node.kind === 168 /* TypeParameter */; +} +function isParameter(node) { + return node.kind === 169 /* Parameter */; +} +function isDecorator(node) { + return node.kind === 170 /* Decorator */; +} +function isPropertySignature(node) { + return node.kind === 171 /* PropertySignature */; +} +function isPropertyDeclaration(node) { + return node.kind === 172 /* PropertyDeclaration */; +} +function isMethodSignature(node) { + return node.kind === 173 /* MethodSignature */; +} +function isMethodDeclaration(node) { + return node.kind === 174 /* MethodDeclaration */; +} +function isClassStaticBlockDeclaration(node) { + return node.kind === 175 /* ClassStaticBlockDeclaration */; +} +function isConstructorDeclaration(node) { + return node.kind === 176 /* Constructor */; +} +function isGetAccessorDeclaration(node) { + return node.kind === 177 /* GetAccessor */; +} +function isSetAccessorDeclaration(node) { + return node.kind === 178 /* SetAccessor */; +} +function isCallSignatureDeclaration(node) { + return node.kind === 179 /* CallSignature */; +} +function isConstructSignatureDeclaration(node) { + return node.kind === 180 /* ConstructSignature */; +} +function isIndexSignatureDeclaration(node) { + return node.kind === 181 /* IndexSignature */; +} +function isTypePredicateNode(node) { + return node.kind === 182 /* TypePredicate */; +} +function isTypeReferenceNode(node) { + return node.kind === 183 /* TypeReference */; +} +function isFunctionTypeNode(node) { + return node.kind === 184 /* FunctionType */; +} +function isConstructorTypeNode(node) { + return node.kind === 185 /* ConstructorType */; +} +function isTypeQueryNode(node) { + return node.kind === 186 /* TypeQuery */; +} +function isTypeLiteralNode(node) { + return node.kind === 187 /* TypeLiteral */; +} +function isArrayTypeNode(node) { + return node.kind === 188 /* ArrayType */; +} +function isTupleTypeNode(node) { + return node.kind === 189 /* TupleType */; +} +function isNamedTupleMember(node) { + return node.kind === 202 /* NamedTupleMember */; +} +function isOptionalTypeNode(node) { + return node.kind === 190 /* OptionalType */; +} +function isRestTypeNode(node) { + return node.kind === 191 /* RestType */; +} +function isUnionTypeNode(node) { + return node.kind === 192 /* UnionType */; +} +function isIntersectionTypeNode(node) { + return node.kind === 193 /* IntersectionType */; +} +function isConditionalTypeNode(node) { + return node.kind === 194 /* ConditionalType */; +} +function isInferTypeNode(node) { + return node.kind === 195 /* InferType */; +} +function isParenthesizedTypeNode(node) { + return node.kind === 196 /* ParenthesizedType */; +} +function isThisTypeNode(node) { + return node.kind === 197 /* ThisType */; +} +function isTypeOperatorNode(node) { + return node.kind === 198 /* TypeOperator */; +} +function isIndexedAccessTypeNode(node) { + return node.kind === 199 /* IndexedAccessType */; +} +function isMappedTypeNode(node) { + return node.kind === 200 /* MappedType */; +} +function isLiteralTypeNode(node) { + return node.kind === 201 /* LiteralType */; +} +function isImportTypeNode(node) { + return node.kind === 205 /* ImportType */; +} +function isTemplateLiteralTypeSpan(node) { + return node.kind === 204 /* TemplateLiteralTypeSpan */; +} +function isObjectBindingPattern(node) { + return node.kind === 206 /* ObjectBindingPattern */; +} +function isArrayBindingPattern(node) { + return node.kind === 207 /* ArrayBindingPattern */; +} +function isBindingElement(node) { + return node.kind === 208 /* BindingElement */; +} +function isArrayLiteralExpression(node) { + return node.kind === 209 /* ArrayLiteralExpression */; +} +function isObjectLiteralExpression(node) { + return node.kind === 210 /* ObjectLiteralExpression */; +} +function isPropertyAccessExpression(node) { + return node.kind === 211 /* PropertyAccessExpression */; +} +function isElementAccessExpression(node) { + return node.kind === 212 /* ElementAccessExpression */; +} +function isCallExpression(node) { + return node.kind === 213 /* CallExpression */; +} +function isNewExpression(node) { + return node.kind === 214 /* NewExpression */; +} +function isTaggedTemplateExpression(node) { + return node.kind === 215 /* TaggedTemplateExpression */; +} +function isTypeAssertionExpression(node) { + return node.kind === 216 /* TypeAssertionExpression */; +} +function isParenthesizedExpression(node) { + return node.kind === 217 /* ParenthesizedExpression */; +} +function isFunctionExpression(node) { + return node.kind === 218 /* FunctionExpression */; +} +function isArrowFunction(node) { + return node.kind === 219 /* ArrowFunction */; +} +function isTypeOfExpression(node) { + return node.kind === 221 /* TypeOfExpression */; +} +function isVoidExpression(node) { + return node.kind === 222 /* VoidExpression */; +} +function isAwaitExpression(node) { + return node.kind === 223 /* AwaitExpression */; +} +function isPrefixUnaryExpression(node) { + return node.kind === 224 /* PrefixUnaryExpression */; +} +function isPostfixUnaryExpression(node) { + return node.kind === 225 /* PostfixUnaryExpression */; +} +function isBinaryExpression(node) { + return node.kind === 226 /* BinaryExpression */; +} +function isConditionalExpression(node) { + return node.kind === 227 /* ConditionalExpression */; +} +function isSpreadElement(node) { + return node.kind === 230 /* SpreadElement */; +} +function isClassExpression(node) { + return node.kind === 231 /* ClassExpression */; +} +function isOmittedExpression(node) { + return node.kind === 232 /* OmittedExpression */; +} +function isExpressionWithTypeArguments(node) { + return node.kind === 233 /* ExpressionWithTypeArguments */; +} +function isAsExpression(node) { + return node.kind === 234 /* AsExpression */; +} +function isSatisfiesExpression(node) { + return node.kind === 238 /* SatisfiesExpression */; +} +function isNonNullExpression(node) { + return node.kind === 235 /* NonNullExpression */; +} +function isMetaProperty(node) { + return node.kind === 236 /* MetaProperty */; +} +function isPartiallyEmittedExpression(node) { + return node.kind === 354 /* PartiallyEmittedExpression */; +} +function isCommaListExpression(node) { + return node.kind === 355 /* CommaListExpression */; +} +function isTemplateSpan(node) { + return node.kind === 239 /* TemplateSpan */; +} +function isSemicolonClassElement(node) { + return node.kind === 240 /* SemicolonClassElement */; +} +function isBlock(node) { + return node.kind === 241 /* Block */; +} +function isVariableStatement(node) { + return node.kind === 243 /* VariableStatement */; +} +function isEmptyStatement(node) { + return node.kind === 242 /* EmptyStatement */; +} +function isExpressionStatement(node) { + return node.kind === 244 /* ExpressionStatement */; +} +function isIfStatement(node) { + return node.kind === 245 /* IfStatement */; +} +function isForStatement(node) { + return node.kind === 248 /* ForStatement */; +} +function isForInStatement(node) { + return node.kind === 249 /* ForInStatement */; +} +function isForOfStatement(node) { + return node.kind === 250 /* ForOfStatement */; +} +function isReturnStatement(node) { + return node.kind === 253 /* ReturnStatement */; +} +function isWithStatement(node) { + return node.kind === 254 /* WithStatement */; +} +function isSwitchStatement(node) { + return node.kind === 255 /* SwitchStatement */; +} +function isLabeledStatement(node) { + return node.kind === 256 /* LabeledStatement */; +} +function isTryStatement(node) { + return node.kind === 258 /* TryStatement */; +} +function isVariableDeclaration(node) { + return node.kind === 260 /* VariableDeclaration */; +} +function isVariableDeclarationList(node) { + return node.kind === 261 /* VariableDeclarationList */; +} +function isFunctionDeclaration(node) { + return node.kind === 262 /* FunctionDeclaration */; +} +function isClassDeclaration(node) { + return node.kind === 263 /* ClassDeclaration */; +} +function isInterfaceDeclaration(node) { + return node.kind === 264 /* InterfaceDeclaration */; +} +function isTypeAliasDeclaration(node) { + return node.kind === 265 /* TypeAliasDeclaration */; +} +function isEnumDeclaration(node) { + return node.kind === 266 /* EnumDeclaration */; +} +function isModuleDeclaration(node) { + return node.kind === 267 /* ModuleDeclaration */; +} +function isModuleBlock(node) { + return node.kind === 268 /* ModuleBlock */; +} +function isCaseBlock(node) { + return node.kind === 269 /* CaseBlock */; +} +function isNamespaceExportDeclaration(node) { + return node.kind === 270 /* NamespaceExportDeclaration */; +} +function isImportEqualsDeclaration(node) { + return node.kind === 271 /* ImportEqualsDeclaration */; +} +function isImportDeclaration(node) { + return node.kind === 272 /* ImportDeclaration */; +} +function isImportClause(node) { + return node.kind === 273 /* ImportClause */; +} +function isAssertClause(node) { + return node.kind === 300 /* AssertClause */; +} +function isImportAttributes(node) { + return node.kind === 300 /* ImportAttributes */; +} +function isImportAttribute(node) { + return node.kind === 301 /* ImportAttribute */; +} +function isNamespaceImport(node) { + return node.kind === 274 /* NamespaceImport */; +} +function isNamespaceExport(node) { + return node.kind === 280 /* NamespaceExport */; +} +function isNamedImports(node) { + return node.kind === 275 /* NamedImports */; +} +function isImportSpecifier(node) { + return node.kind === 276 /* ImportSpecifier */; +} +function isExportAssignment(node) { + return node.kind === 277 /* ExportAssignment */; +} +function isExportDeclaration(node) { + return node.kind === 278 /* ExportDeclaration */; +} +function isNamedExports(node) { + return node.kind === 279 /* NamedExports */; +} +function isExportSpecifier(node) { + return node.kind === 281 /* ExportSpecifier */; +} +function isNotEmittedStatement(node) { + return node.kind === 353 /* NotEmittedStatement */; +} +function isSyntheticReference(node) { + return node.kind === 356 /* SyntheticReferenceExpression */; +} +function isExternalModuleReference(node) { + return node.kind === 283 /* ExternalModuleReference */; +} +function isJsxElement(node) { + return node.kind === 284 /* JsxElement */; +} +function isJsxSelfClosingElement(node) { + return node.kind === 285 /* JsxSelfClosingElement */; +} +function isJsxOpeningElement(node) { + return node.kind === 286 /* JsxOpeningElement */; +} +function isJsxClosingElement(node) { + return node.kind === 287 /* JsxClosingElement */; +} +function isJsxFragment(node) { + return node.kind === 288 /* JsxFragment */; +} +function isJsxOpeningFragment(node) { + return node.kind === 289 /* JsxOpeningFragment */; +} +function isJsxClosingFragment(node) { + return node.kind === 290 /* JsxClosingFragment */; +} +function isJsxAttribute(node) { + return node.kind === 291 /* JsxAttribute */; +} +function isJsxAttributes(node) { + return node.kind === 292 /* JsxAttributes */; +} +function isJsxSpreadAttribute(node) { + return node.kind === 293 /* JsxSpreadAttribute */; +} +function isJsxNamespacedName(node) { + return node.kind === 295 /* JsxNamespacedName */; +} +function isCaseClause(node) { + return node.kind === 296 /* CaseClause */; +} +function isDefaultClause(node) { + return node.kind === 297 /* DefaultClause */; +} +function isHeritageClause(node) { + return node.kind === 298 /* HeritageClause */; +} +function isCatchClause(node) { + return node.kind === 299 /* CatchClause */; +} +function isPropertyAssignment(node) { + return node.kind === 303 /* PropertyAssignment */; +} +function isShorthandPropertyAssignment(node) { + return node.kind === 304 /* ShorthandPropertyAssignment */; +} +function isSpreadAssignment(node) { + return node.kind === 305 /* SpreadAssignment */; +} +function isEnumMember(node) { + return node.kind === 306 /* EnumMember */; +} +function isSourceFile(node) { + return node.kind === 307 /* SourceFile */; +} +function isBundle(node) { + return node.kind === 308 /* Bundle */; +} +function isJSDocTypeExpression(node) { + return node.kind === 309 /* JSDocTypeExpression */; +} +function isJSDocNameReference(node) { + return node.kind === 310 /* JSDocNameReference */; +} +function isJSDocMemberName(node) { + return node.kind === 311 /* JSDocMemberName */; +} +function isJSDocAllType(node) { + return node.kind === 312 /* JSDocAllType */; +} +function isJSDocUnknownType(node) { + return node.kind === 313 /* JSDocUnknownType */; +} +function isJSDocNullableType(node) { + return node.kind === 314 /* JSDocNullableType */; +} +function isJSDocNonNullableType(node) { + return node.kind === 315 /* JSDocNonNullableType */; +} +function isJSDocOptionalType(node) { + return node.kind === 316 /* JSDocOptionalType */; +} +function isJSDocFunctionType(node) { + return node.kind === 317 /* JSDocFunctionType */; +} +function isJSDocVariadicType(node) { + return node.kind === 318 /* JSDocVariadicType */; +} +function isJSDoc(node) { + return node.kind === 320 /* JSDoc */; +} +function isJSDocTypeLiteral(node) { + return node.kind === 322 /* JSDocTypeLiteral */; +} +function isJSDocSignature(node) { + return node.kind === 323 /* JSDocSignature */; +} +function isJSDocAugmentsTag(node) { + return node.kind === 328 /* JSDocAugmentsTag */; +} +function isJSDocClassTag(node) { + return node.kind === 332 /* JSDocClassTag */; +} +function isJSDocCallbackTag(node) { + return node.kind === 338 /* JSDocCallbackTag */; +} +function isJSDocPublicTag(node) { + return node.kind === 333 /* JSDocPublicTag */; +} +function isJSDocPrivateTag(node) { + return node.kind === 334 /* JSDocPrivateTag */; +} +function isJSDocProtectedTag(node) { + return node.kind === 335 /* JSDocProtectedTag */; +} +function isJSDocReadonlyTag(node) { + return node.kind === 336 /* JSDocReadonlyTag */; +} +function isJSDocOverrideTag(node) { + return node.kind === 337 /* JSDocOverrideTag */; +} +function isJSDocOverloadTag(node) { + return node.kind === 339 /* JSDocOverloadTag */; +} +function isJSDocDeprecatedTag(node) { + return node.kind === 331 /* JSDocDeprecatedTag */; +} +function isJSDocEnumTag(node) { + return node.kind === 340 /* JSDocEnumTag */; +} +function isJSDocParameterTag(node) { + return node.kind === 341 /* JSDocParameterTag */; +} +function isJSDocReturnTag(node) { + return node.kind === 342 /* JSDocReturnTag */; +} +function isJSDocThisTag(node) { + return node.kind === 343 /* JSDocThisTag */; +} +function isJSDocTypeTag(node) { + return node.kind === 344 /* JSDocTypeTag */; +} +function isJSDocTemplateTag(node) { + return node.kind === 345 /* JSDocTemplateTag */; +} +function isJSDocTypedefTag(node) { + return node.kind === 346 /* JSDocTypedefTag */; +} +function isJSDocPropertyTag(node) { + return node.kind === 348 /* JSDocPropertyTag */; +} +function isJSDocImplementsTag(node) { + return node.kind === 329 /* JSDocImplementsTag */; +} +function isJSDocSatisfiesTag(node) { + return node.kind === 350 /* JSDocSatisfiesTag */; +} +function isJSDocImportTag(node) { + return node.kind === 351 /* JSDocImportTag */; +} + +// src/compiler/factory/nodeChildren.ts +var sourceFileToNodeChildren = /* @__PURE__ */ new WeakMap(); +function getNodeChildren(node, sourceFile) { + var _a; + const kind = node.kind; + if (!isNodeKind(kind)) { + return emptyArray; + } + if (kind === 352 /* SyntaxList */) { + return node._children; + } + return (_a = sourceFileToNodeChildren.get(sourceFile)) == null ? void 0 : _a.get(node); +} +function unsetNodeChildren(node, origSourceFile) { + var _a; + if (node.kind === 352 /* SyntaxList */) { + Debug.fail("Did not expect to unset the children of a SyntaxList."); + } + (_a = sourceFileToNodeChildren.get(origSourceFile)) == null ? void 0 : _a.delete(node); +} +function transferSourceFileChildren(sourceFile, targetSourceFile) { + const map2 = sourceFileToNodeChildren.get(sourceFile); + if (map2 !== void 0) { + sourceFileToNodeChildren.delete(sourceFile); + sourceFileToNodeChildren.set(targetSourceFile, map2); + } +} + +// src/compiler/factory/utilities.ts +function createEmptyExports(factory2) { + return factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports([]), + /*moduleSpecifier*/ + void 0 + ); +} +function createMemberAccessForPropertyName(factory2, target, memberName, location) { + if (isComputedPropertyName(memberName)) { + return setTextRange(factory2.createElementAccessExpression(target, memberName.expression), location); + } else { + const expression = setTextRange( + isMemberName(memberName) ? factory2.createPropertyAccessExpression(target, memberName) : factory2.createElementAccessExpression(target, memberName), + memberName + ); + addEmitFlags(expression, 128 /* NoNestedSourceMaps */); + return expression; + } +} +function createReactNamespace(reactNamespace, parent) { + const react = parseNodeFactory.createIdentifier(reactNamespace || "React"); + setParent(react, getParseTreeNode(parent)); + return react; +} +function createJsxFactoryExpressionFromEntityName(factory2, jsxFactory, parent) { + if (isQualifiedName(jsxFactory)) { + const left = createJsxFactoryExpressionFromEntityName(factory2, jsxFactory.left, parent); + const right = factory2.createIdentifier(idText(jsxFactory.right)); + right.escapedText = jsxFactory.right.escapedText; + return factory2.createPropertyAccessExpression(left, right); + } else { + return createReactNamespace(idText(jsxFactory), parent); + } +} +function createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parent) { + return jsxFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFactoryEntity, parent) : factory2.createPropertyAccessExpression( + createReactNamespace(reactNamespace, parent), + "createElement" + ); +} +function createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parent) { + return jsxFragmentFactoryEntity ? createJsxFactoryExpressionFromEntityName(factory2, jsxFragmentFactoryEntity, parent) : factory2.createPropertyAccessExpression( + createReactNamespace(reactNamespace, parent), + "Fragment" + ); +} +function createExpressionForJsxElement(factory2, callee, tagName, props, children, location) { + const argumentsList = [tagName]; + if (props) { + argumentsList.push(props); + } + if (children && children.length > 0) { + if (!props) { + argumentsList.push(factory2.createNull()); + } + if (children.length > 1) { + for (const child of children) { + startOnNewLine(child); + argumentsList.push(child); + } + } else { + argumentsList.push(children[0]); + } + } + return setTextRange( + factory2.createCallExpression( + callee, + /*typeArguments*/ + void 0, + argumentsList + ), + location + ); +} +function createExpressionForJsxFragment(factory2, jsxFactoryEntity, jsxFragmentFactoryEntity, reactNamespace, children, parentElement, location) { + const tagName = createJsxFragmentFactoryExpression(factory2, jsxFragmentFactoryEntity, reactNamespace, parentElement); + const argumentsList = [tagName, factory2.createNull()]; + if (children && children.length > 0) { + if (children.length > 1) { + for (const child of children) { + startOnNewLine(child); + argumentsList.push(child); + } + } else { + argumentsList.push(children[0]); + } + } + return setTextRange( + factory2.createCallExpression( + createJsxFactoryExpression(factory2, jsxFactoryEntity, reactNamespace, parentElement), + /*typeArguments*/ + void 0, + argumentsList + ), + location + ); +} +function createForOfBindingStatement(factory2, node, boundValue) { + if (isVariableDeclarationList(node)) { + const firstDeclaration = first(node.declarations); + const updatedDeclaration = factory2.updateVariableDeclaration( + firstDeclaration, + firstDeclaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + boundValue + ); + return setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.updateVariableDeclarationList(node, [updatedDeclaration]) + ), + /*location*/ + node + ); + } else { + const updatedExpression = setTextRange( + factory2.createAssignment(node, boundValue), + /*location*/ + node + ); + return setTextRange( + factory2.createExpressionStatement(updatedExpression), + /*location*/ + node + ); + } +} +function createExpressionFromEntityName(factory2, node) { + if (isQualifiedName(node)) { + const left = createExpressionFromEntityName(factory2, node.left); + const right = setParent(setTextRange(factory2.cloneNode(node.right), node.right), node.right.parent); + return setTextRange(factory2.createPropertyAccessExpression(left, right), node); + } else { + return setParent(setTextRange(factory2.cloneNode(node), node), node.parent); + } +} +function createExpressionForPropertyName(factory2, memberName) { + if (isIdentifier(memberName)) { + return factory2.createStringLiteralFromNode(memberName); + } else if (isComputedPropertyName(memberName)) { + return setParent(setTextRange(factory2.cloneNode(memberName.expression), memberName.expression), memberName.expression.parent); + } else { + return setParent(setTextRange(factory2.cloneNode(memberName), memberName), memberName.parent); + } +} +function createExpressionForAccessorDeclaration(factory2, properties, property, receiver, multiLine) { + const { firstAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(properties, property); + if (property === firstAccessor) { + return setTextRange( + factory2.createObjectDefinePropertyCall( + receiver, + createExpressionForPropertyName(factory2, property.name), + factory2.createPropertyDescriptor({ + enumerable: factory2.createFalse(), + configurable: true, + get: getAccessor && setTextRange( + setOriginalNode( + factory2.createFunctionExpression( + getModifiers(getAccessor), + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + getAccessor.parameters, + /*type*/ + void 0, + getAccessor.body + // TODO: GH#18217 + ), + getAccessor + ), + getAccessor + ), + set: setAccessor && setTextRange( + setOriginalNode( + factory2.createFunctionExpression( + getModifiers(setAccessor), + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + setAccessor.parameters, + /*type*/ + void 0, + setAccessor.body + // TODO: GH#18217 + ), + setAccessor + ), + setAccessor + ) + }, !multiLine) + ), + firstAccessor + ); + } + return void 0; +} +function createExpressionForPropertyAssignment(factory2, property, receiver) { + return setOriginalNode( + setTextRange( + factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + property.name, + /*location*/ + property.name + ), + property.initializer + ), + property + ), + property + ); +} +function createExpressionForShorthandPropertyAssignment(factory2, property, receiver) { + return setOriginalNode( + setTextRange( + factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + property.name, + /*location*/ + property.name + ), + factory2.cloneNode(property.name) + ), + /*location*/ + property + ), + /*original*/ + property + ); +} +function createExpressionForMethodDeclaration(factory2, method, receiver) { + return setOriginalNode( + setTextRange( + factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + method.name, + /*location*/ + method.name + ), + setOriginalNode( + setTextRange( + factory2.createFunctionExpression( + getModifiers(method), + method.asteriskToken, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + method.parameters, + /*type*/ + void 0, + method.body + // TODO: GH#18217 + ), + /*location*/ + method + ), + /*original*/ + method + ) + ), + /*location*/ + method + ), + /*original*/ + method + ); +} +function createExpressionForObjectLiteralElementLike(factory2, node, property, receiver) { + if (property.name && isPrivateIdentifier(property.name)) { + Debug.failBadSyntaxKind(property.name, "Private identifiers are not allowed in object literals."); + } + switch (property.kind) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return createExpressionForAccessorDeclaration(factory2, node.properties, property, receiver, !!node.multiLine); + case 303 /* PropertyAssignment */: + return createExpressionForPropertyAssignment(factory2, property, receiver); + case 304 /* ShorthandPropertyAssignment */: + return createExpressionForShorthandPropertyAssignment(factory2, property, receiver); + case 174 /* MethodDeclaration */: + return createExpressionForMethodDeclaration(factory2, property, receiver); + } +} +function expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, recordTempVariable, resultVariable) { + const operator = node.operator; + Debug.assert(operator === 46 /* PlusPlusToken */ || operator === 47 /* MinusMinusToken */, "Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression"); + const temp = factory2.createTempVariable(recordTempVariable); + expression = factory2.createAssignment(temp, expression); + setTextRange(expression, node.operand); + let operation = isPrefixUnaryExpression(node) ? factory2.createPrefixUnaryExpression(operator, temp) : factory2.createPostfixUnaryExpression(temp, operator); + setTextRange(operation, node); + if (resultVariable) { + operation = factory2.createAssignment(resultVariable, operation); + setTextRange(operation, node); + } + expression = factory2.createComma(expression, operation); + setTextRange(expression, node); + if (isPostfixUnaryExpression(node)) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; +} +function isInternalName(node) { + return (getEmitFlags(node) & 65536 /* InternalName */) !== 0; +} +function isLocalName(node) { + return (getEmitFlags(node) & 32768 /* LocalName */) !== 0; +} +function isExportName(node) { + return (getEmitFlags(node) & 16384 /* ExportName */) !== 0; +} +function isUseStrictPrologue(node) { + return isStringLiteral(node.expression) && node.expression.text === "use strict"; +} +function findUseStrictPrologue(statements) { + for (const statement of statements) { + if (isPrologueDirective(statement)) { + if (isUseStrictPrologue(statement)) { + return statement; + } + } else { + break; + } + } + return void 0; +} +function startsWithUseStrict(statements) { + const firstStatement = firstOrUndefined(statements); + return firstStatement !== void 0 && isPrologueDirective(firstStatement) && isUseStrictPrologue(firstStatement); +} +function isCommaExpression(node) { + return node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 28 /* CommaToken */; +} +function isCommaSequence(node) { + return isCommaExpression(node) || isCommaListExpression(node); +} +function isJSDocTypeAssertion(node) { + return isParenthesizedExpression(node) && isInJSFile(node) && !!getJSDocTypeTag(node); +} +function getJSDocTypeAssertionType(node) { + const type = getJSDocType(node); + Debug.assertIsDefined(type); + return type; +} +function isOuterExpression(node, kinds = 15 /* All */) { + switch (node.kind) { + case 217 /* ParenthesizedExpression */: + if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { + return false; + } + return (kinds & 1 /* Parentheses */) !== 0; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 238 /* SatisfiesExpression */: + return (kinds & 2 /* TypeAssertions */) !== 0; + case 235 /* NonNullExpression */: + return (kinds & 4 /* NonNullAssertions */) !== 0; + case 354 /* PartiallyEmittedExpression */: + return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; + } + return false; +} +function skipOuterExpressions(node, kinds = 15 /* All */) { + while (isOuterExpression(node, kinds)) { + node = node.expression; + } + return node; +} +function walkUpOuterExpressions(node, kinds = 15 /* All */) { + let parent = node.parent; + while (isOuterExpression(parent, kinds)) { + parent = parent.parent; + Debug.assert(parent); + } + return parent; +} +function startOnNewLine(node) { + return setStartsOnNewLine( + node, + /*newLine*/ + true + ); +} +function getExternalHelpersModuleName(node) { + const parseNode = getOriginalNode(node, isSourceFile); + const emitNode = parseNode && parseNode.emitNode; + return emitNode && emitNode.externalHelpersModuleName; +} +function hasRecordedExternalHelpers(sourceFile) { + const parseNode = getOriginalNode(sourceFile, isSourceFile); + const emitNode = parseNode && parseNode.emitNode; + return !!emitNode && (!!emitNode.externalHelpersModuleName || !!emitNode.externalHelpers); +} +function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault) { + if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { + let namedBindings; + const moduleKind = getEmitModuleKind(compilerOptions); + if (moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */ || sourceFile.impliedNodeFormat === 99 /* ESNext */) { + const helpers = getEmitHelpers(sourceFile); + if (helpers) { + const helperNames = []; + for (const helper of helpers) { + if (!helper.scoped) { + const importName = helper.importName; + if (importName) { + pushIfUnique(helperNames, importName); + } + } + } + if (some(helperNames)) { + helperNames.sort(compareStringsCaseSensitive); + namedBindings = nodeFactory.createNamedImports( + map(helperNames, (name) => isFileLevelUniqueName(sourceFile, name) ? nodeFactory.createImportSpecifier( + /*isTypeOnly*/ + false, + /*propertyName*/ + void 0, + nodeFactory.createIdentifier(name) + ) : nodeFactory.createImportSpecifier( + /*isTypeOnly*/ + false, + nodeFactory.createIdentifier(name), + helperFactory.getUnscopedHelperName(name) + )) + ); + const parseNode = getOriginalNode(sourceFile, isSourceFile); + const emitNode = getOrCreateEmitNode(parseNode); + emitNode.externalHelpers = true; + } + } + } else { + const externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar || hasImportDefault); + if (externalHelpersModuleName) { + namedBindings = nodeFactory.createNamespaceImport(externalHelpersModuleName); + } + } + if (namedBindings) { + const externalHelpersImportDeclaration = nodeFactory.createImportDeclaration( + /*modifiers*/ + void 0, + nodeFactory.createImportClause( + /*isTypeOnly*/ + false, + /*name*/ + void 0, + namedBindings + ), + nodeFactory.createStringLiteral(externalHelpersModuleNameText), + /*attributes*/ + void 0 + ); + addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); + return externalHelpersImportDeclaration; + } + } +} +function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, hasExportStarsToExportValues, hasImportStarOrImportDefault) { + if (compilerOptions.importHelpers && isEffectiveExternalModule(node, compilerOptions)) { + const externalHelpersModuleName = getExternalHelpersModuleName(node); + if (externalHelpersModuleName) { + return externalHelpersModuleName; + } + const moduleKind = getEmitModuleKind(compilerOptions); + let create = (hasExportStarsToExportValues || getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || node.impliedNodeFormat === 1 /* CommonJS */); + if (!create) { + const helpers = getEmitHelpers(node); + if (helpers) { + for (const helper of helpers) { + if (!helper.scoped) { + create = true; + break; + } + } + } + } + if (create) { + const parseNode = getOriginalNode(node, isSourceFile); + const emitNode = getOrCreateEmitNode(parseNode); + return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory2.createUniqueName(externalHelpersModuleNameText)); + } + } +} +function getLocalNameForExternalImport(factory2, node, sourceFile) { + const namespaceDeclaration = getNamespaceDeclarationNode(node); + if (namespaceDeclaration && !isDefaultImport(node) && !isExportNamespaceAsDefaultDeclaration(node)) { + const name = namespaceDeclaration.name; + return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); + } + if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { + return factory2.getGeneratedNameForNode(node); + } + if (node.kind === 278 /* ExportDeclaration */ && node.moduleSpecifier) { + return factory2.getGeneratedNameForNode(node); + } + return void 0; +} +function getExternalModuleNameLiteral(factory2, importNode, sourceFile, host, resolver, compilerOptions) { + const moduleName = getExternalModuleName(importNode); + if (moduleName && isStringLiteral(moduleName)) { + return tryGetModuleNameFromDeclaration(importNode, host, factory2, resolver, compilerOptions) || tryRenameExternalModule(factory2, moduleName, sourceFile) || factory2.cloneNode(moduleName); + } + return void 0; +} +function tryRenameExternalModule(factory2, moduleName, sourceFile) { + const rename = sourceFile.renamedDependencies && sourceFile.renamedDependencies.get(moduleName.text); + return rename ? factory2.createStringLiteral(rename) : void 0; +} +function tryGetModuleNameFromFile(factory2, file, host, options) { + if (!file) { + return void 0; + } + if (file.moduleName) { + return factory2.createStringLiteral(file.moduleName); + } + if (!file.isDeclarationFile && options.outFile) { + return factory2.createStringLiteral(getExternalModuleNameFromPath(host, file.fileName)); + } + return void 0; +} +function tryGetModuleNameFromDeclaration(declaration, host, factory2, resolver, compilerOptions) { + return tryGetModuleNameFromFile(factory2, resolver.getExternalModuleFileFromDeclaration(declaration), host, compilerOptions); +} +function getInitializerOfBindingOrAssignmentElement(bindingElement) { + if (isDeclarationBindingElement(bindingElement)) { + return bindingElement.initializer; + } + if (isPropertyAssignment(bindingElement)) { + const initializer = bindingElement.initializer; + return isAssignmentExpression( + initializer, + /*excludeCompoundAssignment*/ + true + ) ? initializer.right : void 0; + } + if (isShorthandPropertyAssignment(bindingElement)) { + return bindingElement.objectAssignmentInitializer; + } + if (isAssignmentExpression( + bindingElement, + /*excludeCompoundAssignment*/ + true + )) { + return bindingElement.right; + } + if (isSpreadElement(bindingElement)) { + return getInitializerOfBindingOrAssignmentElement(bindingElement.expression); + } +} +function getTargetOfBindingOrAssignmentElement(bindingElement) { + if (isDeclarationBindingElement(bindingElement)) { + return bindingElement.name; + } + if (isObjectLiteralElementLike(bindingElement)) { + switch (bindingElement.kind) { + case 303 /* PropertyAssignment */: + return getTargetOfBindingOrAssignmentElement(bindingElement.initializer); + case 304 /* ShorthandPropertyAssignment */: + return bindingElement.name; + case 305 /* SpreadAssignment */: + return getTargetOfBindingOrAssignmentElement(bindingElement.expression); + } + return void 0; + } + if (isAssignmentExpression( + bindingElement, + /*excludeCompoundAssignment*/ + true + )) { + return getTargetOfBindingOrAssignmentElement(bindingElement.left); + } + if (isSpreadElement(bindingElement)) { + return getTargetOfBindingOrAssignmentElement(bindingElement.expression); + } + return bindingElement; +} +function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) { + switch (bindingElement.kind) { + case 169 /* Parameter */: + case 208 /* BindingElement */: + return bindingElement.dotDotDotToken; + case 230 /* SpreadElement */: + case 305 /* SpreadAssignment */: + return bindingElement; + } + return void 0; +} +function getPropertyNameOfBindingOrAssignmentElement(bindingElement) { + const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement); + Debug.assert(!!propertyName || isSpreadAssignment(bindingElement), "Invalid property name for binding element."); + return propertyName; +} +function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) { + switch (bindingElement.kind) { + case 208 /* BindingElement */: + if (bindingElement.propertyName) { + const propertyName = bindingElement.propertyName; + if (isPrivateIdentifier(propertyName)) { + return Debug.failBadSyntaxKind(propertyName); + } + return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; + } + break; + case 303 /* PropertyAssignment */: + if (bindingElement.name) { + const propertyName = bindingElement.name; + if (isPrivateIdentifier(propertyName)) { + return Debug.failBadSyntaxKind(propertyName); + } + return isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression) ? propertyName.expression : propertyName; + } + break; + case 305 /* SpreadAssignment */: + if (bindingElement.name && isPrivateIdentifier(bindingElement.name)) { + return Debug.failBadSyntaxKind(bindingElement.name); + } + return bindingElement.name; + } + const target = getTargetOfBindingOrAssignmentElement(bindingElement); + if (target && isPropertyName(target)) { + return target; + } +} +function isStringOrNumericLiteral(node) { + const kind = node.kind; + return kind === 11 /* StringLiteral */ || kind === 9 /* NumericLiteral */; +} +function getElementsOfBindingOrAssignmentPattern(name) { + switch (name.kind) { + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 209 /* ArrayLiteralExpression */: + return name.elements; + case 210 /* ObjectLiteralExpression */: + return name.properties; + } +} +function getJSDocTypeAliasName(fullName) { + if (fullName) { + let rightNode = fullName; + while (true) { + if (isIdentifier(rightNode) || !rightNode.body) { + return isIdentifier(rightNode) ? rightNode : rightNode.name; + } + rightNode = rightNode.body; + } + } +} +function canHaveIllegalTypeParameters(node) { + const kind = node.kind; + return kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; +} +function canHaveIllegalDecorators(node) { + const kind = node.kind; + return kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 262 /* FunctionDeclaration */ || kind === 176 /* Constructor */ || kind === 181 /* IndexSignature */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 243 /* VariableStatement */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */; +} +function canHaveIllegalModifiers(node) { + const kind = node.kind; + return kind === 175 /* ClassStaticBlockDeclaration */ || kind === 303 /* PropertyAssignment */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 282 /* MissingDeclaration */ || kind === 270 /* NamespaceExportDeclaration */; +} +function isQuestionOrExclamationToken(node) { + return isQuestionToken(node) || isExclamationToken(node); +} +function isIdentifierOrThisTypeNode(node) { + return isIdentifier(node) || isThisTypeNode(node); +} +function isReadonlyKeywordOrPlusOrMinusToken(node) { + return isReadonlyKeyword(node) || isPlusToken(node) || isMinusToken(node); +} +function isQuestionOrPlusOrMinusToken(node) { + return isQuestionToken(node) || isPlusToken(node) || isMinusToken(node); +} +function isModuleName(node) { + return isIdentifier(node) || isStringLiteral(node); +} +function isExponentiationOperator(kind) { + return kind === 43 /* AsteriskAsteriskToken */; +} +function isMultiplicativeOperator(kind) { + return kind === 42 /* AsteriskToken */ || kind === 44 /* SlashToken */ || kind === 45 /* PercentToken */; +} +function isMultiplicativeOperatorOrHigher(kind) { + return isExponentiationOperator(kind) || isMultiplicativeOperator(kind); +} +function isAdditiveOperator(kind) { + return kind === 40 /* PlusToken */ || kind === 41 /* MinusToken */; +} +function isAdditiveOperatorOrHigher(kind) { + return isAdditiveOperator(kind) || isMultiplicativeOperatorOrHigher(kind); +} +function isShiftOperator(kind) { + return kind === 48 /* LessThanLessThanToken */ || kind === 49 /* GreaterThanGreaterThanToken */ || kind === 50 /* GreaterThanGreaterThanGreaterThanToken */; +} +function isShiftOperatorOrHigher(kind) { + return isShiftOperator(kind) || isAdditiveOperatorOrHigher(kind); +} +function isRelationalOperator(kind) { + return kind === 30 /* LessThanToken */ || kind === 33 /* LessThanEqualsToken */ || kind === 32 /* GreaterThanToken */ || kind === 34 /* GreaterThanEqualsToken */ || kind === 104 /* InstanceOfKeyword */ || kind === 103 /* InKeyword */; +} +function isRelationalOperatorOrHigher(kind) { + return isRelationalOperator(kind) || isShiftOperatorOrHigher(kind); +} +function isEqualityOperator(kind) { + return kind === 35 /* EqualsEqualsToken */ || kind === 37 /* EqualsEqualsEqualsToken */ || kind === 36 /* ExclamationEqualsToken */ || kind === 38 /* ExclamationEqualsEqualsToken */; +} +function isEqualityOperatorOrHigher(kind) { + return isEqualityOperator(kind) || isRelationalOperatorOrHigher(kind); +} +function isBitwiseOperator(kind) { + return kind === 51 /* AmpersandToken */ || kind === 52 /* BarToken */ || kind === 53 /* CaretToken */; +} +function isBitwiseOperatorOrHigher(kind) { + return isBitwiseOperator(kind) || isEqualityOperatorOrHigher(kind); +} +function isLogicalOperator2(kind) { + return kind === 56 /* AmpersandAmpersandToken */ || kind === 57 /* BarBarToken */; +} +function isLogicalOperatorOrHigher(kind) { + return isLogicalOperator2(kind) || isBitwiseOperatorOrHigher(kind); +} +function isAssignmentOperatorOrHigher(kind) { + return kind === 61 /* QuestionQuestionToken */ || isLogicalOperatorOrHigher(kind) || isAssignmentOperator(kind); +} +function isBinaryOperator(kind) { + return isAssignmentOperatorOrHigher(kind) || kind === 28 /* CommaToken */; +} +function isBinaryOperatorToken(node) { + return isBinaryOperator(node.kind); +} +var BinaryExpressionState; +((BinaryExpressionState2) => { + function enter(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, outerState) { + const prevUserState = stackIndex > 0 ? userStateStack[stackIndex - 1] : void 0; + Debug.assertEqual(stateStack[stackIndex], enter); + userStateStack[stackIndex] = machine.onEnter(nodeStack[stackIndex], prevUserState, outerState); + stateStack[stackIndex] = nextState(machine, enter); + return stackIndex; + } + BinaryExpressionState2.enter = enter; + function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { + Debug.assertEqual(stateStack[stackIndex], left); + Debug.assertIsDefined(machine.onLeft); + stateStack[stackIndex] = nextState(machine, left); + const nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]); + if (nextNode) { + checkCircularity(stackIndex, nodeStack, nextNode); + return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode); + } + return stackIndex; + } + BinaryExpressionState2.left = left; + function operator(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { + Debug.assertEqual(stateStack[stackIndex], operator); + Debug.assertIsDefined(machine.onOperator); + stateStack[stackIndex] = nextState(machine, operator); + machine.onOperator(nodeStack[stackIndex].operatorToken, userStateStack[stackIndex], nodeStack[stackIndex]); + return stackIndex; + } + BinaryExpressionState2.operator = operator; + function right(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) { + Debug.assertEqual(stateStack[stackIndex], right); + Debug.assertIsDefined(machine.onRight); + stateStack[stackIndex] = nextState(machine, right); + const nextNode = machine.onRight(nodeStack[stackIndex].right, userStateStack[stackIndex], nodeStack[stackIndex]); + if (nextNode) { + checkCircularity(stackIndex, nodeStack, nextNode); + return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode); + } + return stackIndex; + } + BinaryExpressionState2.right = right; + function exit(machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, _outerState) { + Debug.assertEqual(stateStack[stackIndex], exit); + stateStack[stackIndex] = nextState(machine, exit); + const result = machine.onExit(nodeStack[stackIndex], userStateStack[stackIndex]); + if (stackIndex > 0) { + stackIndex--; + if (machine.foldState) { + const side = stateStack[stackIndex] === exit ? "right" : "left"; + userStateStack[stackIndex] = machine.foldState(userStateStack[stackIndex], result, side); + } + } else { + resultHolder.value = result; + } + return stackIndex; + } + BinaryExpressionState2.exit = exit; + function done(_machine, stackIndex, stateStack, _nodeStack, _userStateStack, _resultHolder, _outerState) { + Debug.assertEqual(stateStack[stackIndex], done); + return stackIndex; + } + BinaryExpressionState2.done = done; + function nextState(machine, currentState) { + switch (currentState) { + case enter: + if (machine.onLeft) return left; + case left: + if (machine.onOperator) return operator; + case operator: + if (machine.onRight) return right; + case right: + return exit; + case exit: + return done; + case done: + return done; + default: + Debug.fail("Invalid state"); + } + } + BinaryExpressionState2.nextState = nextState; + function pushStack(stackIndex, stateStack, nodeStack, userStateStack, node) { + stackIndex++; + stateStack[stackIndex] = enter; + nodeStack[stackIndex] = node; + userStateStack[stackIndex] = void 0; + return stackIndex; + } + function checkCircularity(stackIndex, nodeStack, node) { + if (Debug.shouldAssert(2 /* Aggressive */)) { + while (stackIndex >= 0) { + Debug.assert(nodeStack[stackIndex] !== node, "Circular traversal detected."); + stackIndex--; + } + } + } +})(BinaryExpressionState || (BinaryExpressionState = {})); +var BinaryExpressionStateMachine = class { + constructor(onEnter, onLeft, onOperator, onRight, onExit, foldState) { + this.onEnter = onEnter; + this.onLeft = onLeft; + this.onOperator = onOperator; + this.onRight = onRight; + this.onExit = onExit; + this.foldState = foldState; + } +}; +function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState) { + const machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit, foldState); + return trampoline; + function trampoline(node, outerState) { + const resultHolder = { value: void 0 }; + const stateStack = [BinaryExpressionState.enter]; + const nodeStack = [node]; + const userStateStack = [void 0]; + let stackIndex = 0; + while (stateStack[stackIndex] !== BinaryExpressionState.done) { + stackIndex = stateStack[stackIndex](machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, outerState); + } + Debug.assertEqual(stackIndex, 0); + return resultHolder.value; + } +} +function isExportOrDefaultKeywordKind(kind) { + return kind === 95 /* ExportKeyword */ || kind === 90 /* DefaultKeyword */; +} +function isExportOrDefaultModifier(node) { + const kind = node.kind; + return isExportOrDefaultKeywordKind(kind); +} +function elideNodes(factory2, nodes) { + if (nodes === void 0) return void 0; + if (nodes.length === 0) return nodes; + return setTextRange(factory2.createNodeArray([], nodes.hasTrailingComma), nodes); +} +function getNodeForGeneratedName(name) { + var _a; + const autoGenerate = name.emitNode.autoGenerate; + if (autoGenerate.flags & 4 /* Node */) { + const autoGenerateId = autoGenerate.id; + let node = name; + let original = node.original; + while (original) { + node = original; + const autoGenerate2 = (_a = node.emitNode) == null ? void 0 : _a.autoGenerate; + if (isMemberName(node) && (autoGenerate2 === void 0 || !!(autoGenerate2.flags & 4 /* Node */) && autoGenerate2.id !== autoGenerateId)) { + break; + } + original = node.original; + } + return node; + } + return name; +} +function formatGeneratedNamePart(part, generateName) { + return typeof part === "object" ? formatGeneratedName( + /*privateName*/ + false, + part.prefix, + part.node, + part.suffix, + generateName + ) : typeof part === "string" ? part.length > 0 && part.charCodeAt(0) === 35 /* hash */ ? part.slice(1) : part : ""; +} +function formatIdentifier(name, generateName) { + return typeof name === "string" ? name : formatIdentifierWorker(name, Debug.checkDefined(generateName)); +} +function formatIdentifierWorker(node, generateName) { + return isGeneratedPrivateIdentifier(node) ? generateName(node).slice(1) : isGeneratedIdentifier(node) ? generateName(node) : isPrivateIdentifier(node) ? node.escapedText.slice(1) : idText(node); +} +function formatGeneratedName(privateName, prefix, baseName, suffix, generateName) { + prefix = formatGeneratedNamePart(prefix, generateName); + suffix = formatGeneratedNamePart(suffix, generateName); + baseName = formatIdentifier(baseName, generateName); + return `${privateName ? "#" : ""}${prefix}${baseName}${suffix}`; +} +function createAccessorPropertyBackingField(factory2, node, modifiers, initializer) { + return factory2.updatePropertyDeclaration( + node, + modifiers, + factory2.getGeneratedPrivateNameForNode( + node.name, + /*prefix*/ + void 0, + "_accessor_storage" + ), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ); +} +function createAccessorPropertyGetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { + return factory2.createGetAccessorDeclaration( + modifiers, + name, + [], + /*type*/ + void 0, + factory2.createBlock([ + factory2.createReturnStatement( + factory2.createPropertyAccessExpression( + receiver, + factory2.getGeneratedPrivateNameForNode( + node.name, + /*prefix*/ + void 0, + "_accessor_storage" + ) + ) + ) + ]) + ); +} +function createAccessorPropertySetRedirector(factory2, node, modifiers, name, receiver = factory2.createThis()) { + return factory2.createSetAccessorDeclaration( + modifiers, + name, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "value" + )], + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression( + receiver, + factory2.getGeneratedPrivateNameForNode( + node.name, + /*prefix*/ + void 0, + "_accessor_storage" + ) + ), + factory2.createIdentifier("value") + ) + ) + ]) + ); +} +function findComputedPropertyNameCacheAssignment(name) { + let node = name.expression; + while (true) { + node = skipOuterExpressions(node); + if (isCommaListExpression(node)) { + node = last(node.elements); + continue; + } + if (isCommaExpression(node)) { + node = node.right; + continue; + } + if (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + ) && isGeneratedIdentifier(node.left)) { + return node; + } + break; + } +} +function isSyntheticParenthesizedExpression(node) { + return isParenthesizedExpression(node) && nodeIsSynthesized(node) && !node.emitNode; +} +function flattenCommaListWorker(node, expressions) { + if (isSyntheticParenthesizedExpression(node)) { + flattenCommaListWorker(node.expression, expressions); + } else if (isCommaExpression(node)) { + flattenCommaListWorker(node.left, expressions); + flattenCommaListWorker(node.right, expressions); + } else if (isCommaListExpression(node)) { + for (const child of node.elements) { + flattenCommaListWorker(child, expressions); + } + } else { + expressions.push(node); + } +} +function flattenCommaList(node) { + const expressions = []; + flattenCommaListWorker(node, expressions); + return expressions; +} +function containsObjectRestOrSpread(node) { + if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) return true; + if (node.transformFlags & 128 /* ContainsES2018 */) { + for (const element of getElementsOfBindingOrAssignmentPattern(node)) { + const target = getTargetOfBindingOrAssignmentElement(element); + if (target && isAssignmentPattern(target)) { + if (target.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + return true; + } + if (target.transformFlags & 128 /* ContainsES2018 */) { + if (containsObjectRestOrSpread(target)) return true; + } + } + } + } + return false; +} + +// src/compiler/factory/utilitiesPublic.ts +function setTextRange(range, location) { + return location ? setTextRangePosEnd(range, location.pos, location.end) : range; +} +function canHaveModifiers(node) { + const kind = node.kind; + return kind === 168 /* TypeParameter */ || kind === 169 /* Parameter */ || kind === 171 /* PropertySignature */ || kind === 172 /* PropertyDeclaration */ || kind === 173 /* MethodSignature */ || kind === 174 /* MethodDeclaration */ || kind === 176 /* Constructor */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 181 /* IndexSignature */ || kind === 185 /* ConstructorType */ || kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || kind === 231 /* ClassExpression */ || kind === 243 /* VariableStatement */ || kind === 262 /* FunctionDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 278 /* ExportDeclaration */; +} +function canHaveDecorators(node) { + const kind = node.kind; + return kind === 169 /* Parameter */ || kind === 172 /* PropertyDeclaration */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 231 /* ClassExpression */ || kind === 263 /* ClassDeclaration */; +} + +// src/compiler/parser.ts +var NodeConstructor; +var TokenConstructor; +var IdentifierConstructor; +var PrivateIdentifierConstructor; +var SourceFileConstructor; +var parseBaseNodeFactory = { + createBaseSourceFileNode: (kind) => new (SourceFileConstructor || (SourceFileConstructor = objectAllocator.getSourceFileConstructor()))(kind, -1, -1), + createBaseIdentifierNode: (kind) => new (IdentifierConstructor || (IdentifierConstructor = objectAllocator.getIdentifierConstructor()))(kind, -1, -1), + createBasePrivateIdentifierNode: (kind) => new (PrivateIdentifierConstructor || (PrivateIdentifierConstructor = objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1), + createBaseTokenNode: (kind) => new (TokenConstructor || (TokenConstructor = objectAllocator.getTokenConstructor()))(kind, -1, -1), + createBaseNode: (kind) => new (NodeConstructor || (NodeConstructor = objectAllocator.getNodeConstructor()))(kind, -1, -1) +}; +var parseNodeFactory = createNodeFactory(1 /* NoParenthesizerRules */, parseBaseNodeFactory); +function visitNode2(cbNode, node) { + return node && cbNode(node); +} +function visitNodes(cbNode, cbNodes, nodes) { + if (nodes) { + if (cbNodes) { + return cbNodes(nodes); + } + for (const node of nodes) { + const result = cbNode(node); + if (result) { + return result; + } + } + } +} +function isJSDocLikeText(text, start) { + return text.charCodeAt(start + 1) === 42 /* asterisk */ && text.charCodeAt(start + 2) === 42 /* asterisk */ && text.charCodeAt(start + 3) !== 47 /* slash */; +} +function isFileProbablyExternalModule(sourceFile) { + return forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) || getImportMetaIfNecessary(sourceFile); +} +function isAnExternalModuleIndicatorNode(node) { + return canHaveModifiers(node) && hasModifierOfKind(node, 95 /* ExportKeyword */) || isImportEqualsDeclaration(node) && isExternalModuleReference(node.moduleReference) || isImportDeclaration(node) || isExportAssignment(node) || isExportDeclaration(node) ? node : void 0; +} +function getImportMetaIfNecessary(sourceFile) { + return sourceFile.flags & 8388608 /* PossiblyContainsImportMeta */ ? walkTreeForImportMeta(sourceFile) : void 0; +} +function walkTreeForImportMeta(node) { + return isImportMeta2(node) ? node : forEachChild(node, walkTreeForImportMeta); +} +function hasModifierOfKind(node, kind) { + return some(node.modifiers, (m) => m.kind === kind); +} +function isImportMeta2(node) { + return isMetaProperty(node) && node.keywordToken === 102 /* ImportKeyword */ && node.name.escapedText === "meta"; +} +var forEachChildTable = { + [166 /* QualifiedName */]: function forEachChildInQualifiedName(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); + }, + [168 /* TypeParameter */]: function forEachChildInTypeParameter(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.constraint) || visitNode2(cbNode, node.default) || visitNode2(cbNode, node.expression); + }, + [304 /* ShorthandPropertyAssignment */]: function forEachChildInShorthandPropertyAssignment(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.equalsToken) || visitNode2(cbNode, node.objectAssignmentInitializer); + }, + [305 /* SpreadAssignment */]: function forEachChildInSpreadAssignment(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [169 /* Parameter */]: function forEachChildInParameter(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); + }, + [172 /* PropertyDeclaration */]: function forEachChildInPropertyDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); + }, + [171 /* PropertySignature */]: function forEachChildInPropertySignature(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); + }, + [303 /* PropertyAssignment */]: function forEachChildInPropertyAssignment(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.initializer); + }, + [260 /* VariableDeclaration */]: function forEachChildInVariableDeclaration(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.exclamationToken) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.initializer); + }, + [208 /* BindingElement */]: function forEachChildInBindingElement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); + }, + [181 /* IndexSignature */]: function forEachChildInIndexSignature(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); + }, + [185 /* ConstructorType */]: function forEachChildInConstructorType(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); + }, + [184 /* FunctionType */]: function forEachChildInFunctionType(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); + }, + [179 /* CallSignature */]: forEachChildInCallOrConstructSignature, + [180 /* ConstructSignature */]: forEachChildInCallOrConstructSignature, + [174 /* MethodDeclaration */]: function forEachChildInMethodDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.exclamationToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [173 /* MethodSignature */]: function forEachChildInMethodSignature(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); + }, + [176 /* Constructor */]: function forEachChildInConstructor(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [177 /* GetAccessor */]: function forEachChildInGetAccessor(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [178 /* SetAccessor */]: function forEachChildInSetAccessor(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [262 /* FunctionDeclaration */]: function forEachChildInFunctionDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [218 /* FunctionExpression */]: function forEachChildInFunctionExpression(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.body); + }, + [219 /* ArrowFunction */]: function forEachChildInArrowFunction(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type) || visitNode2(cbNode, node.equalsGreaterThanToken) || visitNode2(cbNode, node.body); + }, + [175 /* ClassStaticBlockDeclaration */]: function forEachChildInClassStaticBlockDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.body); + }, + [183 /* TypeReference */]: function forEachChildInTypeReference(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.typeName) || visitNodes(cbNode, cbNodes, node.typeArguments); + }, + [182 /* TypePredicate */]: function forEachChildInTypePredicate(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.assertsModifier) || visitNode2(cbNode, node.parameterName) || visitNode2(cbNode, node.type); + }, + [186 /* TypeQuery */]: function forEachChildInTypeQuery(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.exprName) || visitNodes(cbNode, cbNodes, node.typeArguments); + }, + [187 /* TypeLiteral */]: function forEachChildInTypeLiteral(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.members); + }, + [188 /* ArrayType */]: function forEachChildInArrayType(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.elementType); + }, + [189 /* TupleType */]: function forEachChildInTupleType(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); + }, + [192 /* UnionType */]: forEachChildInUnionOrIntersectionType, + [193 /* IntersectionType */]: forEachChildInUnionOrIntersectionType, + [194 /* ConditionalType */]: function forEachChildInConditionalType(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.checkType) || visitNode2(cbNode, node.extendsType) || visitNode2(cbNode, node.trueType) || visitNode2(cbNode, node.falseType); + }, + [195 /* InferType */]: function forEachChildInInferType(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.typeParameter); + }, + [205 /* ImportType */]: function forEachChildInImportType(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.argument) || visitNode2(cbNode, node.attributes) || visitNode2(cbNode, node.qualifier) || visitNodes(cbNode, cbNodes, node.typeArguments); + }, + [302 /* ImportTypeAssertionContainer */]: function forEachChildInImportTypeAssertionContainer(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.assertClause); + }, + [196 /* ParenthesizedType */]: forEachChildInParenthesizedTypeOrTypeOperator, + [198 /* TypeOperator */]: forEachChildInParenthesizedTypeOrTypeOperator, + [199 /* IndexedAccessType */]: function forEachChildInIndexedAccessType(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.objectType) || visitNode2(cbNode, node.indexType); + }, + [200 /* MappedType */]: function forEachChildInMappedType(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.readonlyToken) || visitNode2(cbNode, node.typeParameter) || visitNode2(cbNode, node.nameType) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type) || visitNodes(cbNode, cbNodes, node.members); + }, + [201 /* LiteralType */]: function forEachChildInLiteralType(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.literal); + }, + [202 /* NamedTupleMember */]: function forEachChildInNamedTupleMember(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.type); + }, + [206 /* ObjectBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [207 /* ArrayBindingPattern */]: forEachChildInObjectOrArrayBindingPattern, + [209 /* ArrayLiteralExpression */]: function forEachChildInArrayLiteralExpression(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); + }, + [210 /* ObjectLiteralExpression */]: function forEachChildInObjectLiteralExpression(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.properties); + }, + [211 /* PropertyAccessExpression */]: function forEachChildInPropertyAccessExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.name); + }, + [212 /* ElementAccessExpression */]: function forEachChildInElementAccessExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.questionDotToken) || visitNode2(cbNode, node.argumentExpression); + }, + [213 /* CallExpression */]: forEachChildInCallOrNewExpression, + [214 /* NewExpression */]: forEachChildInCallOrNewExpression, + [215 /* TaggedTemplateExpression */]: function forEachChildInTaggedTemplateExpression(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tag) || visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.template); + }, + [216 /* TypeAssertionExpression */]: function forEachChildInTypeAssertionExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.expression); + }, + [217 /* ParenthesizedExpression */]: function forEachChildInParenthesizedExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [220 /* DeleteExpression */]: function forEachChildInDeleteExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [221 /* TypeOfExpression */]: function forEachChildInTypeOfExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [222 /* VoidExpression */]: function forEachChildInVoidExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [224 /* PrefixUnaryExpression */]: function forEachChildInPrefixUnaryExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.operand); + }, + [229 /* YieldExpression */]: function forEachChildInYieldExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.asteriskToken) || visitNode2(cbNode, node.expression); + }, + [223 /* AwaitExpression */]: function forEachChildInAwaitExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [225 /* PostfixUnaryExpression */]: function forEachChildInPostfixUnaryExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.operand); + }, + [226 /* BinaryExpression */]: function forEachChildInBinaryExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.operatorToken) || visitNode2(cbNode, node.right); + }, + [234 /* AsExpression */]: function forEachChildInAsExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); + }, + [235 /* NonNullExpression */]: function forEachChildInNonNullExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [238 /* SatisfiesExpression */]: function forEachChildInSatisfiesExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.type); + }, + [236 /* MetaProperty */]: function forEachChildInMetaProperty(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name); + }, + [227 /* ConditionalExpression */]: function forEachChildInConditionalExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.questionToken) || visitNode2(cbNode, node.whenTrue) || visitNode2(cbNode, node.colonToken) || visitNode2(cbNode, node.whenFalse); + }, + [230 /* SpreadElement */]: function forEachChildInSpreadElement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [241 /* Block */]: forEachChildInBlock, + [268 /* ModuleBlock */]: forEachChildInBlock, + [307 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken); + }, + [243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.declarationList); + }, + [261 /* VariableDeclarationList */]: function forEachChildInVariableDeclarationList(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.declarations); + }, + [244 /* ExpressionStatement */]: function forEachChildInExpressionStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [245 /* IfStatement */]: function forEachChildInIfStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.thenStatement) || visitNode2(cbNode, node.elseStatement); + }, + [246 /* DoStatement */]: function forEachChildInDoStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.statement) || visitNode2(cbNode, node.expression); + }, + [247 /* WhileStatement */]: function forEachChildInWhileStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); + }, + [248 /* ForStatement */]: function forEachChildInForStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.condition) || visitNode2(cbNode, node.incrementor) || visitNode2(cbNode, node.statement); + }, + [249 /* ForInStatement */]: function forEachChildInForInStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); + }, + [250 /* ForOfStatement */]: function forEachChildInForOfStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.awaitModifier) || visitNode2(cbNode, node.initializer) || visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); + }, + [251 /* ContinueStatement */]: forEachChildInContinueOrBreakStatement, + [252 /* BreakStatement */]: forEachChildInContinueOrBreakStatement, + [253 /* ReturnStatement */]: function forEachChildInReturnStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [254 /* WithStatement */]: function forEachChildInWithStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.statement); + }, + [255 /* SwitchStatement */]: function forEachChildInSwitchStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.caseBlock); + }, + [269 /* CaseBlock */]: function forEachChildInCaseBlock(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.clauses); + }, + [296 /* CaseClause */]: function forEachChildInCaseClause(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.statements); + }, + [297 /* DefaultClause */]: function forEachChildInDefaultClause(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.statements); + }, + [256 /* LabeledStatement */]: function forEachChildInLabeledStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.label) || visitNode2(cbNode, node.statement); + }, + [257 /* ThrowStatement */]: function forEachChildInThrowStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [258 /* TryStatement */]: function forEachChildInTryStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.tryBlock) || visitNode2(cbNode, node.catchClause) || visitNode2(cbNode, node.finallyBlock); + }, + [299 /* CatchClause */]: function forEachChildInCatchClause(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.variableDeclaration) || visitNode2(cbNode, node.block); + }, + [170 /* Decorator */]: function forEachChildInDecorator(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [263 /* ClassDeclaration */]: forEachChildInClassDeclarationOrExpression, + [231 /* ClassExpression */]: forEachChildInClassDeclarationOrExpression, + [264 /* InterfaceDeclaration */]: function forEachChildInInterfaceDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); + }, + [265 /* TypeAliasDeclaration */]: function forEachChildInTypeAliasDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNode2(cbNode, node.type); + }, + [266 /* EnumDeclaration */]: function forEachChildInEnumDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.members); + }, + [306 /* EnumMember */]: function forEachChildInEnumMember(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); + }, + [267 /* ModuleDeclaration */]: function forEachChildInModuleDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.body); + }, + [271 /* ImportEqualsDeclaration */]: function forEachChildInImportEqualsDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNode2(cbNode, node.moduleReference); + }, + [272 /* ImportDeclaration */]: function forEachChildInImportDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes); + }, + [273 /* ImportClause */]: function forEachChildInImportClause(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.namedBindings); + }, + [300 /* ImportAttributes */]: function forEachChildInImportAttributes(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); + }, + [301 /* ImportAttribute */]: function forEachChildInImportAttribute(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.value); + }, + [270 /* NamespaceExportDeclaration */]: function forEachChildInNamespaceExportDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name); + }, + [274 /* NamespaceImport */]: function forEachChildInNamespaceImport(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name); + }, + [280 /* NamespaceExport */]: function forEachChildInNamespaceExport(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name); + }, + [275 /* NamedImports */]: forEachChildInNamedImportsOrExports, + [279 /* NamedExports */]: forEachChildInNamedImportsOrExports, + [278 /* ExportDeclaration */]: function forEachChildInExportDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.exportClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes); + }, + [276 /* ImportSpecifier */]: forEachChildInImportOrExportSpecifier, + [281 /* ExportSpecifier */]: forEachChildInImportOrExportSpecifier, + [277 /* ExportAssignment */]: function forEachChildInExportAssignment(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.expression); + }, + [228 /* TemplateExpression */]: function forEachChildInTemplateExpression(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); + }, + [239 /* TemplateSpan */]: function forEachChildInTemplateSpan(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression) || visitNode2(cbNode, node.literal); + }, + [203 /* TemplateLiteralType */]: function forEachChildInTemplateLiteralType(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans); + }, + [204 /* TemplateLiteralTypeSpan */]: function forEachChildInTemplateLiteralTypeSpan(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.type) || visitNode2(cbNode, node.literal); + }, + [167 /* ComputedPropertyName */]: function forEachChildInComputedPropertyName(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [298 /* HeritageClause */]: function forEachChildInHeritageClause(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.types); + }, + [233 /* ExpressionWithTypeArguments */]: function forEachChildInExpressionWithTypeArguments(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.expression) || visitNodes(cbNode, cbNodes, node.typeArguments); + }, + [283 /* ExternalModuleReference */]: function forEachChildInExternalModuleReference(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers); + }, + [355 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); + }, + [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.openingElement) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingElement); + }, + [288 /* JsxFragment */]: function forEachChildInJsxFragment(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.openingFragment) || visitNodes(cbNode, cbNodes, node.children) || visitNode2(cbNode, node.closingFragment); + }, + [285 /* JsxSelfClosingElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [286 /* JsxOpeningElement */]: forEachChildInJsxOpeningOrSelfClosingElement, + [292 /* JsxAttributes */]: function forEachChildInJsxAttributes(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.properties); + }, + [291 /* JsxAttribute */]: function forEachChildInJsxAttribute(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name) || visitNode2(cbNode, node.initializer); + }, + [293 /* JsxSpreadAttribute */]: function forEachChildInJsxSpreadAttribute(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); + }, + [294 /* JsxExpression */]: function forEachChildInJsxExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.dotDotDotToken) || visitNode2(cbNode, node.expression); + }, + [287 /* JsxClosingElement */]: function forEachChildInJsxClosingElement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.tagName); + }, + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.namespace) || visitNode2(cbNode, node.name); + }, + [190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [309 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [315 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [314 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [316 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [318 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier, + [317 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); + }, + [320 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) { + return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags); + }, + [347 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [310 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name); + }, + [311 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right); + }, + [341 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag, + [348 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag, + [330 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [329 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [328 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [345 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [346 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 309 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment))); + }, + [338 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); + }, + [342 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag, + [344 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag, + [343 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag, + [340 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag, + [350 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag, + [349 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag, + [339 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag, + [323 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) { + return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type); + }, + [324 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain, + [325 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain, + [326 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain, + [322 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) { + return forEach(node.jsDocPropertyTags, cbNode); + }, + [327 /* JSDocTag */]: forEachChildInJSDocTag, + [332 /* JSDocClassTag */]: forEachChildInJSDocTag, + [333 /* JSDocPublicTag */]: forEachChildInJSDocTag, + [334 /* JSDocPrivateTag */]: forEachChildInJSDocTag, + [335 /* JSDocProtectedTag */]: forEachChildInJSDocTag, + [336 /* JSDocReadonlyTag */]: forEachChildInJSDocTag, + [331 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, + [337 /* JSDocOverrideTag */]: forEachChildInJSDocTag, + [351 /* JSDocImportTag */]: forEachChildInJSDocImportTag, + [354 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression +}; +function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); +} +function forEachChildInUnionOrIntersectionType(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.types); +} +function forEachChildInParenthesizedTypeOrTypeOperator(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.type); +} +function forEachChildInObjectOrArrayBindingPattern(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); +} +function forEachChildInCallOrNewExpression(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.expression) || // TODO: should we separate these branches out? + visitNode2(cbNode, node.questionDotToken) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNodes(cbNode, cbNodes, node.arguments); +} +function forEachChildInBlock(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.statements); +} +function forEachChildInContinueOrBreakStatement(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.label); +} +function forEachChildInClassDeclarationOrExpression(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.modifiers) || visitNode2(cbNode, node.name) || visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.heritageClauses) || visitNodes(cbNode, cbNodes, node.members); +} +function forEachChildInNamedImportsOrExports(node, cbNode, cbNodes) { + return visitNodes(cbNode, cbNodes, node.elements); +} +function forEachChildInImportOrExportSpecifier(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.propertyName) || visitNode2(cbNode, node.name); +} +function forEachChildInJsxOpeningOrSelfClosingElement(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNodes(cbNode, cbNodes, node.typeArguments) || visitNode2(cbNode, node.attributes); +} +function forEachChildInOptionalRestOrJSDocParameterModifier(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.type); +} +function forEachChildInJSDocParameterOrPropertyTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (node.isNameFirst ? visitNode2(cbNode, node.name) || visitNode2(cbNode, node.typeExpression) : visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.name)) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); +} +function forEachChildInJSDocTypeLikeTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); +} +function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.name); +} +function forEachChildInJSDocTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); +} +function forEachChildInJSDocImportTag(node, cbNode, cbNodes) { + return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || visitNode2(cbNode, node.attributes) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)); +} +function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) { + return visitNode2(cbNode, node.expression); +} +function forEachChild(node, cbNode, cbNodes) { + if (node === void 0 || node.kind <= 165 /* LastToken */) { + return; + } + const fn = forEachChildTable[node.kind]; + return fn === void 0 ? void 0 : fn(node, cbNode, cbNodes); +} +function forEachChildRecursively(rootNode, cbNode, cbNodes) { + const queue = gatherPossibleChildren(rootNode); + const parents = []; + while (parents.length < queue.length) { + parents.push(rootNode); + } + while (queue.length !== 0) { + const current = queue.pop(); + const parent = parents.pop(); + if (isArray(current)) { + if (cbNodes) { + const res = cbNodes(current, parent); + if (res) { + if (res === "skip") continue; + return res; + } + } + for (let i = current.length - 1; i >= 0; --i) { + queue.push(current[i]); + parents.push(parent); + } + } else { + const res = cbNode(current, parent); + if (res) { + if (res === "skip") continue; + return res; + } + if (current.kind >= 166 /* FirstNode */) { + for (const child of gatherPossibleChildren(current)) { + queue.push(child); + parents.push(current); + } + } + } + } +} +function gatherPossibleChildren(node) { + const children = []; + forEachChild(node, addWorkItem, addWorkItem); + return children; + function addWorkItem(n) { + children.unshift(n); + } +} +function setExternalModuleIndicator(sourceFile) { + sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile); +} +function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind) { + var _a, _b, _c, _d; + (_a = tracing) == null ? void 0 : _a.push( + tracing.Phase.Parse, + "createSourceFile", + { path: fileName }, + /*separateBeginAndEnd*/ + true + ); + mark("beforeParse"); + let result; + (_b = perfLogger) == null ? void 0 : _b.logStartParseSourceFile(fileName); + const { + languageVersion, + setExternalModuleIndicator: overrideSetExternalModuleIndicator, + impliedNodeFormat: format, + jsDocParsingMode + } = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions }; + if (languageVersion === 100 /* JSON */) { + result = Parser.parseSourceFile( + fileName, + sourceText, + languageVersion, + /*syntaxCursor*/ + void 0, + setParentNodes, + 6 /* JSON */, + noop, + jsDocParsingMode + ); + } else { + const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file) => { + file.impliedNodeFormat = format; + return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file); + }; + result = Parser.parseSourceFile( + fileName, + sourceText, + languageVersion, + /*syntaxCursor*/ + void 0, + setParentNodes, + scriptKind, + setIndicator, + jsDocParsingMode + ); + } + (_c = perfLogger) == null ? void 0 : _c.logStopParseSourceFile(); + mark("afterParse"); + measure("Parse", "beforeParse", "afterParse"); + (_d = tracing) == null ? void 0 : _d.pop(); + return result; +} +function parseIsolatedEntityName(text, languageVersion) { + return Parser.parseIsolatedEntityName(text, languageVersion); +} +function parseJsonText(fileName, sourceText) { + return Parser.parseJsonText(fileName, sourceText); +} +function isExternalModule(file) { + return file.externalModuleIndicator !== void 0; +} +var Parser; +((Parser2) => { + var scanner = createScanner( + 99 /* Latest */, + /*skipTrivia*/ + true + ); + var disallowInAndDecoratorContext = 8192 /* DisallowInContext */ | 32768 /* DecoratorContext */; + var NodeConstructor2; + var TokenConstructor2; + var IdentifierConstructor2; + var PrivateIdentifierConstructor2; + var SourceFileConstructor2; + function countNode(node) { + nodeCount++; + return node; + } + var baseNodeFactory = { + createBaseSourceFileNode: (kind) => countNode(new SourceFileConstructor2( + kind, + /*pos*/ + 0, + /*end*/ + 0 + )), + createBaseIdentifierNode: (kind) => countNode(new IdentifierConstructor2( + kind, + /*pos*/ + 0, + /*end*/ + 0 + )), + createBasePrivateIdentifierNode: (kind) => countNode(new PrivateIdentifierConstructor2( + kind, + /*pos*/ + 0, + /*end*/ + 0 + )), + createBaseTokenNode: (kind) => countNode(new TokenConstructor2( + kind, + /*pos*/ + 0, + /*end*/ + 0 + )), + createBaseNode: (kind) => countNode(new NodeConstructor2( + kind, + /*pos*/ + 0, + /*end*/ + 0 + )) + }; + var factory2 = createNodeFactory(1 /* NoParenthesizerRules */ | 2 /* NoNodeConverters */ | 8 /* NoOriginalNode */, baseNodeFactory); + var { + createNodeArray: factoryCreateNodeArray, + createNumericLiteral: factoryCreateNumericLiteral, + createStringLiteral: factoryCreateStringLiteral, + createLiteralLikeNode: factoryCreateLiteralLikeNode, + createIdentifier: factoryCreateIdentifier, + createPrivateIdentifier: factoryCreatePrivateIdentifier, + createToken: factoryCreateToken, + createArrayLiteralExpression: factoryCreateArrayLiteralExpression, + createObjectLiteralExpression: factoryCreateObjectLiteralExpression, + createPropertyAccessExpression: factoryCreatePropertyAccessExpression, + createPropertyAccessChain: factoryCreatePropertyAccessChain, + createElementAccessExpression: factoryCreateElementAccessExpression, + createElementAccessChain: factoryCreateElementAccessChain, + createCallExpression: factoryCreateCallExpression, + createCallChain: factoryCreateCallChain, + createNewExpression: factoryCreateNewExpression, + createParenthesizedExpression: factoryCreateParenthesizedExpression, + createBlock: factoryCreateBlock, + createVariableStatement: factoryCreateVariableStatement, + createExpressionStatement: factoryCreateExpressionStatement, + createIfStatement: factoryCreateIfStatement, + createWhileStatement: factoryCreateWhileStatement, + createForStatement: factoryCreateForStatement, + createForOfStatement: factoryCreateForOfStatement, + createVariableDeclaration: factoryCreateVariableDeclaration, + createVariableDeclarationList: factoryCreateVariableDeclarationList + } = factory2; + var fileName; + var sourceFlags; + var sourceText; + var languageVersion; + var scriptKind; + var languageVariant; + var parseDiagnostics; + var jsDocDiagnostics; + var syntaxCursor; + var currentToken; + var nodeCount; + var identifiers; + var identifierCount; + var parsingContext; + var notParenthesizedArrow; + var contextFlags; + var topLevel = true; + var parseErrorBeforeNextFinishedNode = false; + function parseSourceFile(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes = false, scriptKind2, setExternalModuleIndicatorOverride, jsDocParsingMode = 0 /* ParseAll */) { + var _a; + scriptKind2 = ensureScriptKind(fileName2, scriptKind2); + if (scriptKind2 === 6 /* JSON */) { + const result2 = parseJsonText2(fileName2, sourceText2, languageVersion2, syntaxCursor2, setParentNodes); + convertToJson( + result2, + (_a = result2.statements[0]) == null ? void 0 : _a.expression, + result2.parseDiagnostics, + /*returnValue*/ + false, + /*jsonConversionNotifier*/ + void 0 + ); + result2.referencedFiles = emptyArray; + result2.typeReferenceDirectives = emptyArray; + result2.libReferenceDirectives = emptyArray; + result2.amdDependencies = emptyArray; + result2.hasNoDefaultLib = false; + result2.pragmas = emptyMap; + return result2; + } + initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, scriptKind2, jsDocParsingMode); + const result = parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicatorOverride || setExternalModuleIndicator, jsDocParsingMode); + clearState(); + return result; + } + Parser2.parseSourceFile = parseSourceFile; + function parseIsolatedEntityName2(content, languageVersion2) { + initializeState( + "", + content, + languageVersion2, + /*syntaxCursor*/ + void 0, + 1 /* JS */, + 0 /* ParseAll */ + ); + nextToken(); + const entityName = parseEntityName( + /*allowReservedWords*/ + true + ); + const isValid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length; + clearState(); + return isValid ? entityName : void 0; + } + Parser2.parseIsolatedEntityName = parseIsolatedEntityName2; + function parseJsonText2(fileName2, sourceText2, languageVersion2 = 2 /* ES2015 */, syntaxCursor2, setParentNodes = false) { + initializeState(fileName2, sourceText2, languageVersion2, syntaxCursor2, 6 /* JSON */, 0 /* ParseAll */); + sourceFlags = contextFlags; + nextToken(); + const pos = getNodePos(); + let statements, endOfFileToken; + if (token() === 1 /* EndOfFileToken */) { + statements = createNodeArray([], pos, pos); + endOfFileToken = parseTokenNode(); + } else { + let expressions; + while (token() !== 1 /* EndOfFileToken */) { + let expression2; + switch (token()) { + case 23 /* OpenBracketToken */: + expression2 = parseArrayLiteralExpression(); + break; + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 106 /* NullKeyword */: + expression2 = parseTokenNode(); + break; + case 41 /* MinusToken */: + if (lookAhead(() => nextToken() === 9 /* NumericLiteral */ && nextToken() !== 59 /* ColonToken */)) { + expression2 = parsePrefixUnaryExpression(); + } else { + expression2 = parseObjectLiteralExpression(); + } + break; + case 9 /* NumericLiteral */: + case 11 /* StringLiteral */: + if (lookAhead(() => nextToken() !== 59 /* ColonToken */)) { + expression2 = parseLiteralNode(); + break; + } + default: + expression2 = parseObjectLiteralExpression(); + break; + } + if (expressions && isArray(expressions)) { + expressions.push(expression2); + } else if (expressions) { + expressions = [expressions, expression2]; + } else { + expressions = expression2; + if (token() !== 1 /* EndOfFileToken */) { + parseErrorAtCurrentToken(Diagnostics.Unexpected_token); + } + } + } + const expression = isArray(expressions) ? finishNode(factoryCreateArrayLiteralExpression(expressions), pos) : Debug.checkDefined(expressions); + const statement = factoryCreateExpressionStatement(expression); + finishNode(statement, pos); + statements = createNodeArray([statement], pos); + endOfFileToken = parseExpectedToken(1 /* EndOfFileToken */, Diagnostics.Unexpected_token); + } + const sourceFile = createSourceFile2( + fileName2, + 2 /* ES2015 */, + 6 /* JSON */, + /*isDeclarationFile*/ + false, + statements, + endOfFileToken, + sourceFlags, + noop + ); + if (setParentNodes) { + fixupParentReferences(sourceFile); + } + sourceFile.nodeCount = nodeCount; + sourceFile.identifierCount = identifierCount; + sourceFile.identifiers = identifiers; + sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); + if (jsDocDiagnostics) { + sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); + } + const result = sourceFile; + clearState(); + return result; + } + Parser2.parseJsonText = parseJsonText2; + function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind, _jsDocParsingMode) { + NodeConstructor2 = objectAllocator.getNodeConstructor(); + TokenConstructor2 = objectAllocator.getTokenConstructor(); + IdentifierConstructor2 = objectAllocator.getIdentifierConstructor(); + PrivateIdentifierConstructor2 = objectAllocator.getPrivateIdentifierConstructor(); + SourceFileConstructor2 = objectAllocator.getSourceFileConstructor(); + fileName = normalizePath(_fileName); + sourceText = _sourceText; + languageVersion = _languageVersion; + syntaxCursor = _syntaxCursor; + scriptKind = _scriptKind; + languageVariant = getLanguageVariant(_scriptKind); + parseDiagnostics = []; + parsingContext = 0; + identifiers = /* @__PURE__ */ new Map(); + identifierCount = 0; + nodeCount = 0; + sourceFlags = 0; + topLevel = true; + switch (scriptKind) { + case 1 /* JS */: + case 2 /* JSX */: + contextFlags = 524288 /* JavaScriptFile */; + break; + case 6 /* JSON */: + contextFlags = 524288 /* JavaScriptFile */ | 134217728 /* JsonFile */; + break; + default: + contextFlags = 0 /* None */; + break; + } + parseErrorBeforeNextFinishedNode = false; + scanner.setText(sourceText); + scanner.setOnError(scanError); + scanner.setScriptTarget(languageVersion); + scanner.setLanguageVariant(languageVariant); + scanner.setScriptKind(scriptKind); + scanner.setJSDocParsingMode(_jsDocParsingMode); + } + function clearState() { + scanner.clearCommentDirectives(); + scanner.setText(""); + scanner.setOnError(void 0); + scanner.setScriptKind(0 /* Unknown */); + scanner.setJSDocParsingMode(0 /* ParseAll */); + sourceText = void 0; + languageVersion = void 0; + syntaxCursor = void 0; + scriptKind = void 0; + languageVariant = void 0; + sourceFlags = 0; + parseDiagnostics = void 0; + jsDocDiagnostics = void 0; + parsingContext = 0; + identifiers = void 0; + notParenthesizedArrow = void 0; + topLevel = true; + } + function parseSourceFileWorker(languageVersion2, setParentNodes, scriptKind2, setExternalModuleIndicator2, jsDocParsingMode) { + const isDeclarationFile = isDeclarationFileName(fileName); + if (isDeclarationFile) { + contextFlags |= 33554432 /* Ambient */; + } + sourceFlags = contextFlags; + nextToken(); + const statements = parseList(0 /* SourceElements */, parseStatement); + Debug.assert(token() === 1 /* EndOfFileToken */); + const endHasJSDoc = hasPrecedingJSDocComment(); + const endOfFileToken = withJSDoc(parseTokenNode(), endHasJSDoc); + const sourceFile = createSourceFile2(fileName, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator2); + processCommentPragmas(sourceFile, sourceText); + processPragmasIntoFields(sourceFile, reportPragmaDiagnostic); + sourceFile.commentDirectives = scanner.getCommentDirectives(); + sourceFile.nodeCount = nodeCount; + sourceFile.identifierCount = identifierCount; + sourceFile.identifiers = identifiers; + sourceFile.parseDiagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); + sourceFile.jsDocParsingMode = jsDocParsingMode; + if (jsDocDiagnostics) { + sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); + } + if (setParentNodes) { + fixupParentReferences(sourceFile); + } + return sourceFile; + function reportPragmaDiagnostic(pos, end, diagnostic) { + parseDiagnostics.push(createDetachedDiagnostic(fileName, sourceText, pos, end, diagnostic)); + } + } + let hasDeprecatedTag = false; + function withJSDoc(node, hasJSDoc) { + if (!hasJSDoc) { + return node; + } + Debug.assert(!node.jsDoc); + const jsDoc = mapDefined(getJSDocCommentRanges(node, sourceText), (comment) => JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos)); + if (jsDoc.length) node.jsDoc = jsDoc; + if (hasDeprecatedTag) { + hasDeprecatedTag = false; + node.flags |= 536870912 /* Deprecated */; + } + return node; + } + function reparseTopLevelAwait(sourceFile) { + const savedSyntaxCursor = syntaxCursor; + const baseSyntaxCursor = IncrementalParser.createSyntaxCursor(sourceFile); + syntaxCursor = { currentNode: currentNode2 }; + const statements = []; + const savedParseDiagnostics = parseDiagnostics; + parseDiagnostics = []; + let pos = 0; + let start = findNextStatementWithAwait(sourceFile.statements, 0); + while (start !== -1) { + const prevStatement = sourceFile.statements[pos]; + const nextStatement = sourceFile.statements[start]; + addRange(statements, sourceFile.statements, pos, start); + pos = findNextStatementWithoutAwait(sourceFile.statements, start); + const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos); + const diagnosticEnd = diagnosticStart >= 0 ? findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= nextStatement.pos, diagnosticStart) : -1; + if (diagnosticStart >= 0) { + addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart, diagnosticEnd >= 0 ? diagnosticEnd : void 0); + } + speculationHelper(() => { + const savedContextFlags = contextFlags; + contextFlags |= 65536 /* AwaitContext */; + scanner.resetTokenState(nextStatement.pos); + nextToken(); + while (token() !== 1 /* EndOfFileToken */) { + const startPos = scanner.getTokenFullStart(); + const statement = parseListElement(0 /* SourceElements */, parseStatement); + statements.push(statement); + if (startPos === scanner.getTokenFullStart()) { + nextToken(); + } + if (pos >= 0) { + const nonAwaitStatement = sourceFile.statements[pos]; + if (statement.end === nonAwaitStatement.pos) { + break; + } + if (statement.end > nonAwaitStatement.pos) { + pos = findNextStatementWithoutAwait(sourceFile.statements, pos + 1); + } + } + } + contextFlags = savedContextFlags; + }, 2 /* Reparse */); + start = pos >= 0 ? findNextStatementWithAwait(sourceFile.statements, pos) : -1; + } + if (pos >= 0) { + const prevStatement = sourceFile.statements[pos]; + addRange(statements, sourceFile.statements, pos); + const diagnosticStart = findIndex(savedParseDiagnostics, (diagnostic) => diagnostic.start >= prevStatement.pos); + if (diagnosticStart >= 0) { + addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart); + } + } + syntaxCursor = savedSyntaxCursor; + return factory2.updateSourceFile(sourceFile, setTextRange(factoryCreateNodeArray(statements), sourceFile.statements)); + function containsPossibleTopLevelAwait(node) { + return !(node.flags & 65536 /* AwaitContext */) && !!(node.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */); + } + function findNextStatementWithAwait(statements2, start2) { + for (let i = start2; i < statements2.length; i++) { + if (containsPossibleTopLevelAwait(statements2[i])) { + return i; + } + } + return -1; + } + function findNextStatementWithoutAwait(statements2, start2) { + for (let i = start2; i < statements2.length; i++) { + if (!containsPossibleTopLevelAwait(statements2[i])) { + return i; + } + } + return -1; + } + function currentNode2(position) { + const node = baseSyntaxCursor.currentNode(position); + if (topLevel && node && containsPossibleTopLevelAwait(node)) { + markAsIntersectingIncrementalChange(node); + } + return node; + } + } + function fixupParentReferences(rootNode) { + setParentRecursive( + rootNode, + /*incremental*/ + true + ); + } + Parser2.fixupParentReferences = fixupParentReferences; + function createSourceFile2(fileName2, languageVersion2, scriptKind2, isDeclarationFile, statements, endOfFileToken, flags, setExternalModuleIndicator2) { + let sourceFile = factory2.createSourceFile(statements, endOfFileToken, flags); + setTextRangePosWidth(sourceFile, 0, sourceText.length); + setFields(sourceFile); + if (!isDeclarationFile && isExternalModule(sourceFile) && sourceFile.transformFlags & 67108864 /* ContainsPossibleTopLevelAwait */) { + const oldSourceFile = sourceFile; + sourceFile = reparseTopLevelAwait(sourceFile); + if (oldSourceFile !== sourceFile) setFields(sourceFile); + } + return sourceFile; + function setFields(sourceFile2) { + sourceFile2.text = sourceText; + sourceFile2.bindDiagnostics = []; + sourceFile2.bindSuggestionDiagnostics = void 0; + sourceFile2.languageVersion = languageVersion2; + sourceFile2.fileName = fileName2; + sourceFile2.languageVariant = getLanguageVariant(scriptKind2); + sourceFile2.isDeclarationFile = isDeclarationFile; + sourceFile2.scriptKind = scriptKind2; + setExternalModuleIndicator2(sourceFile2); + sourceFile2.setExternalModuleIndicator = setExternalModuleIndicator2; + } + } + function setContextFlag(val, flag) { + if (val) { + contextFlags |= flag; + } else { + contextFlags &= ~flag; + } + } + function setDisallowInContext(val) { + setContextFlag(val, 8192 /* DisallowInContext */); + } + function setYieldContext(val) { + setContextFlag(val, 16384 /* YieldContext */); + } + function setDecoratorContext(val) { + setContextFlag(val, 32768 /* DecoratorContext */); + } + function setAwaitContext(val) { + setContextFlag(val, 65536 /* AwaitContext */); + } + function doOutsideOfContext(context, func) { + const contextFlagsToClear = context & contextFlags; + if (contextFlagsToClear) { + setContextFlag( + /*val*/ + false, + contextFlagsToClear + ); + const result = func(); + setContextFlag( + /*val*/ + true, + contextFlagsToClear + ); + return result; + } + return func(); + } + function doInsideOfContext(context, func) { + const contextFlagsToSet = context & ~contextFlags; + if (contextFlagsToSet) { + setContextFlag( + /*val*/ + true, + contextFlagsToSet + ); + const result = func(); + setContextFlag( + /*val*/ + false, + contextFlagsToSet + ); + return result; + } + return func(); + } + function allowInAnd(func) { + return doOutsideOfContext(8192 /* DisallowInContext */, func); + } + function disallowInAnd(func) { + return doInsideOfContext(8192 /* DisallowInContext */, func); + } + function allowConditionalTypesAnd(func) { + return doOutsideOfContext(131072 /* DisallowConditionalTypesContext */, func); + } + function disallowConditionalTypesAnd(func) { + return doInsideOfContext(131072 /* DisallowConditionalTypesContext */, func); + } + function doInYieldContext(func) { + return doInsideOfContext(16384 /* YieldContext */, func); + } + function doInDecoratorContext(func) { + return doInsideOfContext(32768 /* DecoratorContext */, func); + } + function doInAwaitContext(func) { + return doInsideOfContext(65536 /* AwaitContext */, func); + } + function doOutsideOfAwaitContext(func) { + return doOutsideOfContext(65536 /* AwaitContext */, func); + } + function doInYieldAndAwaitContext(func) { + return doInsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); + } + function doOutsideOfYieldAndAwaitContext(func) { + return doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */, func); + } + function inContext(flags) { + return (contextFlags & flags) !== 0; + } + function inYieldContext() { + return inContext(16384 /* YieldContext */); + } + function inDisallowInContext() { + return inContext(8192 /* DisallowInContext */); + } + function inDisallowConditionalTypesContext() { + return inContext(131072 /* DisallowConditionalTypesContext */); + } + function inDecoratorContext() { + return inContext(32768 /* DecoratorContext */); + } + function inAwaitContext() { + return inContext(65536 /* AwaitContext */); + } + function parseErrorAtCurrentToken(message, ...args) { + return parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), message, ...args); + } + function parseErrorAtPosition(start, length2, message, ...args) { + const lastError = lastOrUndefined(parseDiagnostics); + let result; + if (!lastError || start !== lastError.start) { + result = createDetachedDiagnostic(fileName, sourceText, start, length2, message, ...args); + parseDiagnostics.push(result); + } + parseErrorBeforeNextFinishedNode = true; + return result; + } + function parseErrorAt(start, end, message, ...args) { + return parseErrorAtPosition(start, end - start, message, ...args); + } + function parseErrorAtRange(range, message, ...args) { + parseErrorAt(range.pos, range.end, message, ...args); + } + function scanError(message, length2, arg0) { + parseErrorAtPosition(scanner.getTokenEnd(), length2, message, arg0); + } + function getNodePos() { + return scanner.getTokenFullStart(); + } + function hasPrecedingJSDocComment() { + return scanner.hasPrecedingJSDocComment(); + } + function token() { + return currentToken; + } + function nextTokenWithoutCheck() { + return currentToken = scanner.scan(); + } + function nextTokenAnd(func) { + nextToken(); + return func(); + } + function nextToken() { + if (isKeyword(currentToken) && (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape())) { + parseErrorAt(scanner.getTokenStart(), scanner.getTokenEnd(), Diagnostics.Keywords_cannot_contain_escape_characters); + } + return nextTokenWithoutCheck(); + } + function nextTokenJSDoc() { + return currentToken = scanner.scanJsDocToken(); + } + function nextJSDocCommentTextToken(inBackticks) { + return currentToken = scanner.scanJSDocCommentTextToken(inBackticks); + } + function reScanGreaterToken() { + return currentToken = scanner.reScanGreaterToken(); + } + function reScanSlashToken() { + return currentToken = scanner.reScanSlashToken(); + } + function reScanTemplateToken(isTaggedTemplate) { + return currentToken = scanner.reScanTemplateToken(isTaggedTemplate); + } + function reScanLessThanToken() { + return currentToken = scanner.reScanLessThanToken(); + } + function reScanHashToken() { + return currentToken = scanner.reScanHashToken(); + } + function scanJsxIdentifier() { + return currentToken = scanner.scanJsxIdentifier(); + } + function scanJsxText() { + return currentToken = scanner.scanJsxToken(); + } + function scanJsxAttributeValue() { + return currentToken = scanner.scanJsxAttributeValue(); + } + function speculationHelper(callback, speculationKind) { + const saveToken = currentToken; + const saveParseDiagnosticsLength = parseDiagnostics.length; + const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; + const saveContextFlags = contextFlags; + const result = speculationKind !== 0 /* TryParse */ ? scanner.lookAhead(callback) : scanner.tryScan(callback); + Debug.assert(saveContextFlags === contextFlags); + if (!result || speculationKind !== 0 /* TryParse */) { + currentToken = saveToken; + if (speculationKind !== 2 /* Reparse */) { + parseDiagnostics.length = saveParseDiagnosticsLength; + } + parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode; + } + return result; + } + function lookAhead(callback) { + return speculationHelper(callback, 1 /* Lookahead */); + } + function tryParse(callback) { + return speculationHelper(callback, 0 /* TryParse */); + } + function isBindingIdentifier() { + if (token() === 80 /* Identifier */) { + return true; + } + return token() > 118 /* LastReservedWord */; + } + function isIdentifier2() { + if (token() === 80 /* Identifier */) { + return true; + } + if (token() === 127 /* YieldKeyword */ && inYieldContext()) { + return false; + } + if (token() === 135 /* AwaitKeyword */ && inAwaitContext()) { + return false; + } + return token() > 118 /* LastReservedWord */; + } + function parseExpected(kind, diagnosticMessage, shouldAdvance = true) { + if (token() === kind) { + if (shouldAdvance) { + nextToken(); + } + return true; + } + if (diagnosticMessage) { + parseErrorAtCurrentToken(diagnosticMessage); + } else { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind)); + } + return false; + } + const viableKeywordSuggestions = Object.keys(textToKeywordObj).filter((keyword) => keyword.length > 2); + function parseErrorForMissingSemicolonAfter(node) { + if (isTaggedTemplateExpression(node)) { + parseErrorAt(skipTrivia(sourceText, node.template.pos), node.template.end, Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings); + return; + } + const expressionText = isIdentifier(node) ? idText(node) : void 0; + if (!expressionText || !isIdentifierText(expressionText, languageVersion)) { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); + return; + } + const pos = skipTrivia(sourceText, node.pos); + switch (expressionText) { + case "const": + case "let": + case "var": + parseErrorAt(pos, node.end, Diagnostics.Variable_declaration_not_allowed_at_this_location); + return; + case "declare": + return; + case "interface": + parseErrorForInvalidName(Diagnostics.Interface_name_cannot_be_0, Diagnostics.Interface_must_be_given_a_name, 19 /* OpenBraceToken */); + return; + case "is": + parseErrorAt(pos, scanner.getTokenStart(), Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + return; + case "module": + case "namespace": + parseErrorForInvalidName(Diagnostics.Namespace_name_cannot_be_0, Diagnostics.Namespace_must_be_given_a_name, 19 /* OpenBraceToken */); + return; + case "type": + parseErrorForInvalidName(Diagnostics.Type_alias_name_cannot_be_0, Diagnostics.Type_alias_must_be_given_a_name, 64 /* EqualsToken */); + return; + } + const suggestion = getSpellingSuggestion(expressionText, viableKeywordSuggestions, identity) ?? getSpaceSuggestion(expressionText); + if (suggestion) { + parseErrorAt(pos, node.end, Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion); + return; + } + if (token() === 0 /* Unknown */) { + return; + } + parseErrorAt(pos, node.end, Diagnostics.Unexpected_keyword_or_identifier); + } + function parseErrorForInvalidName(nameDiagnostic, blankDiagnostic, tokenIfBlankName) { + if (token() === tokenIfBlankName) { + parseErrorAtCurrentToken(blankDiagnostic); + } else { + parseErrorAtCurrentToken(nameDiagnostic, scanner.getTokenValue()); + } + } + function getSpaceSuggestion(expressionText) { + for (const keyword of viableKeywordSuggestions) { + if (expressionText.length > keyword.length + 2 && startsWith(expressionText, keyword)) { + return `${keyword} ${expressionText.slice(keyword.length)}`; + } + } + return void 0; + } + function parseSemicolonAfterPropertyName(name, type, initializer) { + if (token() === 60 /* AtToken */ && !scanner.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations); + return; + } + if (token() === 21 /* OpenParenToken */) { + parseErrorAtCurrentToken(Diagnostics.Cannot_start_a_function_call_in_a_type_annotation); + nextToken(); + return; + } + if (type && !canParseSemicolon()) { + if (initializer) { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); + } else { + parseErrorAtCurrentToken(Diagnostics.Expected_for_property_initializer); + } + return; + } + if (tryParseSemicolon()) { + return; + } + if (initializer) { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(27 /* SemicolonToken */)); + return; + } + parseErrorForMissingSemicolonAfter(name); + } + function parseExpectedJSDoc(kind) { + if (token() === kind) { + nextTokenJSDoc(); + return true; + } + Debug.assert(isKeywordOrPunctuation(kind)); + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(kind)); + return false; + } + function parseExpectedMatchingBrackets(openKind, closeKind, openParsed, openPosition) { + if (token() === closeKind) { + nextToken(); + return; + } + const lastError = parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(closeKind)); + if (!openParsed) { + return; + } + if (lastError) { + addRelatedInfo( + lastError, + createDetachedDiagnostic(fileName, sourceText, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind)) + ); + } + } + function parseOptional(t) { + if (token() === t) { + nextToken(); + return true; + } + return false; + } + function parseOptionalToken(t) { + if (token() === t) { + return parseTokenNode(); + } + return void 0; + } + function parseOptionalTokenJSDoc(t) { + if (token() === t) { + return parseTokenNodeJSDoc(); + } + return void 0; + } + function parseExpectedToken(t, diagnosticMessage, arg0) { + return parseOptionalToken(t) || createMissingNode( + t, + /*reportAtCurrentPosition*/ + false, + diagnosticMessage || Diagnostics._0_expected, + arg0 || tokenToString(t) + ); + } + function parseExpectedTokenJSDoc(t) { + const optional = parseOptionalTokenJSDoc(t); + if (optional) return optional; + Debug.assert(isKeywordOrPunctuation(t)); + return createMissingNode( + t, + /*reportAtCurrentPosition*/ + false, + Diagnostics._0_expected, + tokenToString(t) + ); + } + function parseTokenNode() { + const pos = getNodePos(); + const kind = token(); + nextToken(); + return finishNode(factoryCreateToken(kind), pos); + } + function parseTokenNodeJSDoc() { + const pos = getNodePos(); + const kind = token(); + nextTokenJSDoc(); + return finishNode(factoryCreateToken(kind), pos); + } + function canParseSemicolon() { + if (token() === 27 /* SemicolonToken */) { + return true; + } + return token() === 20 /* CloseBraceToken */ || token() === 1 /* EndOfFileToken */ || scanner.hasPrecedingLineBreak(); + } + function tryParseSemicolon() { + if (!canParseSemicolon()) { + return false; + } + if (token() === 27 /* SemicolonToken */) { + nextToken(); + } + return true; + } + function parseSemicolon() { + return tryParseSemicolon() || parseExpected(27 /* SemicolonToken */); + } + function createNodeArray(elements, pos, end, hasTrailingComma) { + const array = factoryCreateNodeArray(elements, hasTrailingComma); + setTextRangePosEnd(array, pos, end ?? scanner.getTokenFullStart()); + return array; + } + function finishNode(node, pos, end) { + setTextRangePosEnd(node, pos, end ?? scanner.getTokenFullStart()); + if (contextFlags) { + node.flags |= contextFlags; + } + if (parseErrorBeforeNextFinishedNode) { + parseErrorBeforeNextFinishedNode = false; + node.flags |= 262144 /* ThisNodeHasError */; + } + return node; + } + function createMissingNode(kind, reportAtCurrentPosition, diagnosticMessage, ...args) { + if (reportAtCurrentPosition) { + parseErrorAtPosition(scanner.getTokenFullStart(), 0, diagnosticMessage, ...args); + } else if (diagnosticMessage) { + parseErrorAtCurrentToken(diagnosticMessage, ...args); + } + const pos = getNodePos(); + const result = kind === 80 /* Identifier */ ? factoryCreateIdentifier( + "", + /*originalKeywordKind*/ + void 0 + ) : isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode( + kind, + "", + "", + /*templateFlags*/ + void 0 + ) : kind === 9 /* NumericLiteral */ ? factoryCreateNumericLiteral( + "", + /*numericLiteralFlags*/ + void 0 + ) : kind === 11 /* StringLiteral */ ? factoryCreateStringLiteral( + "", + /*isSingleQuote*/ + void 0 + ) : kind === 282 /* MissingDeclaration */ ? factory2.createMissingDeclaration() : factoryCreateToken(kind); + return finishNode(result, pos); + } + function internIdentifier(text) { + let identifier = identifiers.get(text); + if (identifier === void 0) { + identifiers.set(text, identifier = text); + } + return identifier; + } + function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) { + if (isIdentifier3) { + identifierCount++; + const pos = scanner.hasLeadingAsterisks() ? scanner.getTokenStart() : getNodePos(); + const originalKeywordKind = token(); + const text = internIdentifier(scanner.getTokenValue()); + const hasExtendedUnicodeEscape = scanner.hasExtendedUnicodeEscape(); + nextTokenWithoutCheck(); + return finishNode(factoryCreateIdentifier(text, originalKeywordKind, hasExtendedUnicodeEscape), pos); + } + if (token() === 81 /* PrivateIdentifier */) { + parseErrorAtCurrentToken(privateIdentifierDiagnosticMessage || Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + return createIdentifier( + /*isIdentifier*/ + true + ); + } + if (token() === 0 /* Unknown */ && scanner.tryScan(() => scanner.reScanInvalidIdentifier() === 80 /* Identifier */)) { + return createIdentifier( + /*isIdentifier*/ + true + ); + } + identifierCount++; + const reportAtCurrentPosition = token() === 1 /* EndOfFileToken */; + const isReservedWord = scanner.isReservedWord(); + const msgArg = scanner.getTokenText(); + const defaultMessage = isReservedWord ? Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here : Diagnostics.Identifier_expected; + return createMissingNode(80 /* Identifier */, reportAtCurrentPosition, diagnosticMessage || defaultMessage, msgArg); + } + function parseBindingIdentifier(privateIdentifierDiagnosticMessage) { + return createIdentifier( + isBindingIdentifier(), + /*diagnosticMessage*/ + void 0, + privateIdentifierDiagnosticMessage + ); + } + function parseIdentifier(diagnosticMessage, privateIdentifierDiagnosticMessage) { + return createIdentifier(isIdentifier2(), diagnosticMessage, privateIdentifierDiagnosticMessage); + } + function parseIdentifierName(diagnosticMessage) { + return createIdentifier(tokenIsIdentifierOrKeyword(token()), diagnosticMessage); + } + function parseIdentifierNameErrorOnUnicodeEscapeSequence() { + if (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape()) { + parseErrorAtCurrentToken(Diagnostics.Unicode_escape_sequence_cannot_appear_here); + } + return createIdentifier(tokenIsIdentifierOrKeyword(token())); + } + function isLiteralPropertyName() { + return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */; + } + function isImportAttributeName2() { + return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */; + } + function parsePropertyNameWorker(allowComputedPropertyNames) { + if (token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */) { + const node = parseLiteralNode(); + node.text = internIdentifier(node.text); + return node; + } + if (allowComputedPropertyNames && token() === 23 /* OpenBracketToken */) { + return parseComputedPropertyName(); + } + if (token() === 81 /* PrivateIdentifier */) { + return parsePrivateIdentifier(); + } + return parseIdentifierName(); + } + function parsePropertyName() { + return parsePropertyNameWorker( + /*allowComputedPropertyNames*/ + true + ); + } + function parseComputedPropertyName() { + const pos = getNodePos(); + parseExpected(23 /* OpenBracketToken */); + const expression = allowInAnd(parseExpression); + parseExpected(24 /* CloseBracketToken */); + return finishNode(factory2.createComputedPropertyName(expression), pos); + } + function parsePrivateIdentifier() { + const pos = getNodePos(); + const node = factoryCreatePrivateIdentifier(internIdentifier(scanner.getTokenValue())); + nextToken(); + return finishNode(node, pos); + } + function parseContextualModifier(t) { + return token() === t && tryParse(nextTokenCanFollowModifier); + } + function nextTokenIsOnSameLineAndCanFollowModifier() { + nextToken(); + if (scanner.hasPrecedingLineBreak()) { + return false; + } + return canFollowModifier(); + } + function nextTokenCanFollowModifier() { + switch (token()) { + case 87 /* ConstKeyword */: + return nextToken() === 94 /* EnumKeyword */; + case 95 /* ExportKeyword */: + nextToken(); + if (token() === 90 /* DefaultKeyword */) { + return lookAhead(nextTokenCanFollowDefaultKeyword); + } + if (token() === 156 /* TypeKeyword */) { + return lookAhead(nextTokenCanFollowExportModifier); + } + return canFollowExportModifier(); + case 90 /* DefaultKeyword */: + return nextTokenCanFollowDefaultKeyword(); + case 126 /* StaticKeyword */: + case 139 /* GetKeyword */: + case 153 /* SetKeyword */: + nextToken(); + return canFollowModifier(); + default: + return nextTokenIsOnSameLineAndCanFollowModifier(); + } + } + function canFollowExportModifier() { + return token() === 60 /* AtToken */ || token() !== 42 /* AsteriskToken */ && token() !== 130 /* AsKeyword */ && token() !== 19 /* OpenBraceToken */ && canFollowModifier(); + } + function nextTokenCanFollowExportModifier() { + nextToken(); + return canFollowExportModifier(); + } + function parseAnyContextualModifier() { + return isModifierKind(token()) && tryParse(nextTokenCanFollowModifier); + } + function canFollowModifier() { + return token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */ || token() === 42 /* AsteriskToken */ || token() === 26 /* DotDotDotToken */ || isLiteralPropertyName(); + } + function nextTokenCanFollowDefaultKeyword() { + nextToken(); + return token() === 86 /* ClassKeyword */ || token() === 100 /* FunctionKeyword */ || token() === 120 /* InterfaceKeyword */ || token() === 60 /* AtToken */ || token() === 128 /* AbstractKeyword */ && lookAhead(nextTokenIsClassKeywordOnSameLine) || token() === 134 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine); + } + function isListElement(parsingContext2, inErrorRecovery) { + const node = currentNode(parsingContext2); + if (node) { + return true; + } + switch (parsingContext2) { + case 0 /* SourceElements */: + case 1 /* BlockStatements */: + case 3 /* SwitchClauseStatements */: + return !(token() === 27 /* SemicolonToken */ && inErrorRecovery) && isStartOfStatement(); + case 2 /* SwitchClauses */: + return token() === 84 /* CaseKeyword */ || token() === 90 /* DefaultKeyword */; + case 4 /* TypeMembers */: + return lookAhead(isTypeMemberStart); + case 5 /* ClassMembers */: + return lookAhead(isClassMemberStart) || token() === 27 /* SemicolonToken */ && !inErrorRecovery; + case 6 /* EnumMembers */: + return token() === 23 /* OpenBracketToken */ || isLiteralPropertyName(); + case 12 /* ObjectLiteralMembers */: + switch (token()) { + case 23 /* OpenBracketToken */: + case 42 /* AsteriskToken */: + case 26 /* DotDotDotToken */: + case 25 /* DotToken */: + return true; + default: + return isLiteralPropertyName(); + } + case 18 /* RestProperties */: + return isLiteralPropertyName(); + case 9 /* ObjectBindingElements */: + return token() === 23 /* OpenBracketToken */ || token() === 26 /* DotDotDotToken */ || isLiteralPropertyName(); + case 24 /* ImportAttributes */: + return isImportAttributeName2(); + case 7 /* HeritageClauseElement */: + if (token() === 19 /* OpenBraceToken */) { + return lookAhead(isValidHeritageClauseObjectLiteral); + } + if (!inErrorRecovery) { + return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword(); + } else { + return isIdentifier2() && !isHeritageClauseExtendsOrImplementsKeyword(); + } + case 8 /* VariableDeclarations */: + return isBindingIdentifierOrPrivateIdentifierOrPattern(); + case 10 /* ArrayBindingElements */: + return token() === 28 /* CommaToken */ || token() === 26 /* DotDotDotToken */ || isBindingIdentifierOrPrivateIdentifierOrPattern(); + case 19 /* TypeParameters */: + return token() === 103 /* InKeyword */ || token() === 87 /* ConstKeyword */ || isIdentifier2(); + case 15 /* ArrayLiteralMembers */: + switch (token()) { + case 28 /* CommaToken */: + case 25 /* DotToken */: + return true; + } + case 11 /* ArgumentExpressions */: + return token() === 26 /* DotDotDotToken */ || isStartOfExpression(); + case 16 /* Parameters */: + return isStartOfParameter( + /*isJSDocParameter*/ + false + ); + case 17 /* JSDocParameters */: + return isStartOfParameter( + /*isJSDocParameter*/ + true + ); + case 20 /* TypeArguments */: + case 21 /* TupleElementTypes */: + return token() === 28 /* CommaToken */ || isStartOfType(); + case 22 /* HeritageClauses */: + return isHeritageClause2(); + case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { + return false; + } + return tokenIsIdentifierOrKeyword(token()); + case 13 /* JsxAttributes */: + return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; + case 14 /* JsxChildren */: + return true; + case 25 /* JSDocComment */: + return true; + case 26 /* Count */: + return Debug.fail("ParsingContext.Count used as a context"); + default: + Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'."); + } + } + function isValidHeritageClauseObjectLiteral() { + Debug.assert(token() === 19 /* OpenBraceToken */); + if (nextToken() === 20 /* CloseBraceToken */) { + const next = nextToken(); + return next === 28 /* CommaToken */ || next === 19 /* OpenBraceToken */ || next === 96 /* ExtendsKeyword */ || next === 119 /* ImplementsKeyword */; + } + return true; + } + function nextTokenIsIdentifier() { + nextToken(); + return isIdentifier2(); + } + function nextTokenIsIdentifierOrKeyword() { + nextToken(); + return tokenIsIdentifierOrKeyword(token()); + } + function nextTokenIsIdentifierOrKeywordOrGreaterThan() { + nextToken(); + return tokenIsIdentifierOrKeywordOrGreaterThan(token()); + } + function isHeritageClauseExtendsOrImplementsKeyword() { + if (token() === 119 /* ImplementsKeyword */ || token() === 96 /* ExtendsKeyword */) { + return lookAhead(nextTokenIsStartOfExpression); + } + return false; + } + function nextTokenIsStartOfExpression() { + nextToken(); + return isStartOfExpression(); + } + function nextTokenIsStartOfType() { + nextToken(); + return isStartOfType(); + } + function isListTerminator(kind) { + if (token() === 1 /* EndOfFileToken */) { + return true; + } + switch (kind) { + case 1 /* BlockStatements */: + case 2 /* SwitchClauses */: + case 4 /* TypeMembers */: + case 5 /* ClassMembers */: + case 6 /* EnumMembers */: + case 12 /* ObjectLiteralMembers */: + case 9 /* ObjectBindingElements */: + case 23 /* ImportOrExportSpecifiers */: + case 24 /* ImportAttributes */: + return token() === 20 /* CloseBraceToken */; + case 3 /* SwitchClauseStatements */: + return token() === 20 /* CloseBraceToken */ || token() === 84 /* CaseKeyword */ || token() === 90 /* DefaultKeyword */; + case 7 /* HeritageClauseElement */: + return token() === 19 /* OpenBraceToken */ || token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; + case 8 /* VariableDeclarations */: + return isVariableDeclaratorListTerminator(); + case 19 /* TypeParameters */: + return token() === 32 /* GreaterThanToken */ || token() === 21 /* OpenParenToken */ || token() === 19 /* OpenBraceToken */ || token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; + case 11 /* ArgumentExpressions */: + return token() === 22 /* CloseParenToken */ || token() === 27 /* SemicolonToken */; + case 15 /* ArrayLiteralMembers */: + case 21 /* TupleElementTypes */: + case 10 /* ArrayBindingElements */: + return token() === 24 /* CloseBracketToken */; + case 17 /* JSDocParameters */: + case 16 /* Parameters */: + case 18 /* RestProperties */: + return token() === 22 /* CloseParenToken */ || token() === 24 /* CloseBracketToken */; + case 20 /* TypeArguments */: + return token() !== 28 /* CommaToken */; + case 22 /* HeritageClauses */: + return token() === 19 /* OpenBraceToken */ || token() === 20 /* CloseBraceToken */; + case 13 /* JsxAttributes */: + return token() === 32 /* GreaterThanToken */ || token() === 44 /* SlashToken */; + case 14 /* JsxChildren */: + return token() === 30 /* LessThanToken */ && lookAhead(nextTokenIsSlash); + default: + return false; + } + } + function isVariableDeclaratorListTerminator() { + if (canParseSemicolon()) { + return true; + } + if (isInOrOfKeyword(token())) { + return true; + } + if (token() === 39 /* EqualsGreaterThanToken */) { + return true; + } + return false; + } + function isInSomeParsingContext() { + Debug.assert(parsingContext, "Missing parsing context"); + for (let kind = 0; kind < 26 /* Count */; kind++) { + if (parsingContext & 1 << kind) { + if (isListElement( + kind, + /*inErrorRecovery*/ + true + ) || isListTerminator(kind)) { + return true; + } + } + } + return false; + } + function parseList(kind, parseElement) { + const saveParsingContext = parsingContext; + parsingContext |= 1 << kind; + const list = []; + const listPos = getNodePos(); + while (!isListTerminator(kind)) { + if (isListElement( + kind, + /*inErrorRecovery*/ + false + )) { + list.push(parseListElement(kind, parseElement)); + continue; + } + if (abortParsingListOrMoveToNextToken(kind)) { + break; + } + } + parsingContext = saveParsingContext; + return createNodeArray(list, listPos); + } + function parseListElement(parsingContext2, parseElement) { + const node = currentNode(parsingContext2); + if (node) { + return consumeNode(node); + } + return parseElement(); + } + function currentNode(parsingContext2, pos) { + var _a; + if (!syntaxCursor || !isReusableParsingContext(parsingContext2) || parseErrorBeforeNextFinishedNode) { + return void 0; + } + const node = syntaxCursor.currentNode(pos ?? scanner.getTokenFullStart()); + if (nodeIsMissing(node) || intersectsIncrementalChange(node) || containsParseError(node)) { + return void 0; + } + const nodeContextFlags = node.flags & 101441536 /* ContextFlags */; + if (nodeContextFlags !== contextFlags) { + return void 0; + } + if (!canReuseNode(node, parsingContext2)) { + return void 0; + } + if (canHaveJSDoc(node) && ((_a = node.jsDoc) == null ? void 0 : _a.jsDocCache)) { + node.jsDoc.jsDocCache = void 0; + } + return node; + } + function consumeNode(node) { + scanner.resetTokenState(node.end); + nextToken(); + return node; + } + function isReusableParsingContext(parsingContext2) { + switch (parsingContext2) { + case 5 /* ClassMembers */: + case 2 /* SwitchClauses */: + case 0 /* SourceElements */: + case 1 /* BlockStatements */: + case 3 /* SwitchClauseStatements */: + case 6 /* EnumMembers */: + case 4 /* TypeMembers */: + case 8 /* VariableDeclarations */: + case 17 /* JSDocParameters */: + case 16 /* Parameters */: + return true; + } + return false; + } + function canReuseNode(node, parsingContext2) { + switch (parsingContext2) { + case 5 /* ClassMembers */: + return isReusableClassMember(node); + case 2 /* SwitchClauses */: + return isReusableSwitchClause(node); + case 0 /* SourceElements */: + case 1 /* BlockStatements */: + case 3 /* SwitchClauseStatements */: + return isReusableStatement(node); + case 6 /* EnumMembers */: + return isReusableEnumMember(node); + case 4 /* TypeMembers */: + return isReusableTypeMember(node); + case 8 /* VariableDeclarations */: + return isReusableVariableDeclaration(node); + case 17 /* JSDocParameters */: + case 16 /* Parameters */: + return isReusableParameter(node); + } + return false; + } + function isReusableClassMember(node) { + if (node) { + switch (node.kind) { + case 176 /* Constructor */: + case 181 /* IndexSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 240 /* SemicolonClassElement */: + return true; + case 174 /* MethodDeclaration */: + const methodDeclaration = node; + const nameIsConstructor = methodDeclaration.name.kind === 80 /* Identifier */ && methodDeclaration.name.escapedText === "constructor"; + return !nameIsConstructor; + } + } + return false; + } + function isReusableSwitchClause(node) { + if (node) { + switch (node.kind) { + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + return true; + } + } + return false; + } + function isReusableStatement(node) { + if (node) { + switch (node.kind) { + case 262 /* FunctionDeclaration */: + case 243 /* VariableStatement */: + case 241 /* Block */: + case 245 /* IfStatement */: + case 244 /* ExpressionStatement */: + case 257 /* ThrowStatement */: + case 253 /* ReturnStatement */: + case 255 /* SwitchStatement */: + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 248 /* ForStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 242 /* EmptyStatement */: + case 258 /* TryStatement */: + case 256 /* LabeledStatement */: + case 246 /* DoStatement */: + case 259 /* DebuggerStatement */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + case 265 /* TypeAliasDeclaration */: + return true; + } + } + return false; + } + function isReusableEnumMember(node) { + return node.kind === 306 /* EnumMember */; + } + function isReusableTypeMember(node) { + if (node) { + switch (node.kind) { + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 171 /* PropertySignature */: + case 179 /* CallSignature */: + return true; + } + } + return false; + } + function isReusableVariableDeclaration(node) { + if (node.kind !== 260 /* VariableDeclaration */) { + return false; + } + const variableDeclarator = node; + return variableDeclarator.initializer === void 0; + } + function isReusableParameter(node) { + if (node.kind !== 169 /* Parameter */) { + return false; + } + const parameter = node; + return parameter.initializer === void 0; + } + function abortParsingListOrMoveToNextToken(kind) { + parsingContextErrors(kind); + if (isInSomeParsingContext()) { + return true; + } + nextToken(); + return false; + } + function parsingContextErrors(context) { + switch (context) { + case 0 /* SourceElements */: + return token() === 90 /* DefaultKeyword */ ? parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(95 /* ExportKeyword */)) : parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected); + case 1 /* BlockStatements */: + return parseErrorAtCurrentToken(Diagnostics.Declaration_or_statement_expected); + case 2 /* SwitchClauses */: + return parseErrorAtCurrentToken(Diagnostics.case_or_default_expected); + case 3 /* SwitchClauseStatements */: + return parseErrorAtCurrentToken(Diagnostics.Statement_expected); + case 18 /* RestProperties */: + case 4 /* TypeMembers */: + return parseErrorAtCurrentToken(Diagnostics.Property_or_signature_expected); + case 5 /* ClassMembers */: + return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected); + case 6 /* EnumMembers */: + return parseErrorAtCurrentToken(Diagnostics.Enum_member_expected); + case 7 /* HeritageClauseElement */: + return parseErrorAtCurrentToken(Diagnostics.Expression_expected); + case 8 /* VariableDeclarations */: + return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_variable_declaration_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Variable_declaration_expected); + case 9 /* ObjectBindingElements */: + return parseErrorAtCurrentToken(Diagnostics.Property_destructuring_pattern_expected); + case 10 /* ArrayBindingElements */: + return parseErrorAtCurrentToken(Diagnostics.Array_element_destructuring_pattern_expected); + case 11 /* ArgumentExpressions */: + return parseErrorAtCurrentToken(Diagnostics.Argument_expression_expected); + case 12 /* ObjectLiteralMembers */: + return parseErrorAtCurrentToken(Diagnostics.Property_assignment_expected); + case 15 /* ArrayLiteralMembers */: + return parseErrorAtCurrentToken(Diagnostics.Expression_or_comma_expected); + case 17 /* JSDocParameters */: + return parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected); + case 16 /* Parameters */: + return isKeyword(token()) ? parseErrorAtCurrentToken(Diagnostics._0_is_not_allowed_as_a_parameter_name, tokenToString(token())) : parseErrorAtCurrentToken(Diagnostics.Parameter_declaration_expected); + case 19 /* TypeParameters */: + return parseErrorAtCurrentToken(Diagnostics.Type_parameter_declaration_expected); + case 20 /* TypeArguments */: + return parseErrorAtCurrentToken(Diagnostics.Type_argument_expected); + case 21 /* TupleElementTypes */: + return parseErrorAtCurrentToken(Diagnostics.Type_expected); + case 22 /* HeritageClauses */: + return parseErrorAtCurrentToken(Diagnostics.Unexpected_token_expected); + case 23 /* ImportOrExportSpecifiers */: + if (token() === 161 /* FromKeyword */) { + return parseErrorAtCurrentToken(Diagnostics._0_expected, "}"); + } + return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); + case 13 /* JsxAttributes */: + return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); + case 14 /* JsxChildren */: + return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); + case 24 /* ImportAttributes */: + return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected); + case 25 /* JSDocComment */: + return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); + case 26 /* Count */: + return Debug.fail("ParsingContext.Count used as a context"); + default: + Debug.assertNever(context); + } + } + function parseDelimitedList(kind, parseElement, considerSemicolonAsDelimiter) { + const saveParsingContext = parsingContext; + parsingContext |= 1 << kind; + const list = []; + const listPos = getNodePos(); + let commaStart = -1; + while (true) { + if (isListElement( + kind, + /*inErrorRecovery*/ + false + )) { + const startPos = scanner.getTokenFullStart(); + const result = parseListElement(kind, parseElement); + if (!result) { + parsingContext = saveParsingContext; + return void 0; + } + list.push(result); + commaStart = scanner.getTokenStart(); + if (parseOptional(28 /* CommaToken */)) { + continue; + } + commaStart = -1; + if (isListTerminator(kind)) { + break; + } + parseExpected(28 /* CommaToken */, getExpectedCommaDiagnostic(kind)); + if (considerSemicolonAsDelimiter && token() === 27 /* SemicolonToken */ && !scanner.hasPrecedingLineBreak()) { + nextToken(); + } + if (startPos === scanner.getTokenFullStart()) { + nextToken(); + } + continue; + } + if (isListTerminator(kind)) { + break; + } + if (abortParsingListOrMoveToNextToken(kind)) { + break; + } + } + parsingContext = saveParsingContext; + return createNodeArray( + list, + listPos, + /*end*/ + void 0, + commaStart >= 0 + ); + } + function getExpectedCommaDiagnostic(kind) { + return kind === 6 /* EnumMembers */ ? Diagnostics.An_enum_member_name_must_be_followed_by_a_or : void 0; + } + function createMissingList() { + const list = createNodeArray([], getNodePos()); + list.isMissingList = true; + return list; + } + function isMissingList(arr) { + return !!arr.isMissingList; + } + function parseBracketedList(kind, parseElement, open, close) { + if (parseExpected(open)) { + const result = parseDelimitedList(kind, parseElement); + parseExpected(close); + return result; + } + return createMissingList(); + } + function parseEntityName(allowReservedWords, diagnosticMessage) { + const pos = getNodePos(); + let entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage); + while (parseOptional(25 /* DotToken */)) { + if (token() === 30 /* LessThanToken */) { + break; + } + entity = finishNode( + factory2.createQualifiedName( + entity, + parseRightSideOfDot( + allowReservedWords, + /*allowPrivateIdentifiers*/ + false, + /*allowUnicodeEscapeSequenceInIdentifierName*/ + true + ) + ), + pos + ); + } + return entity; + } + function createQualifiedName(entity, name) { + return finishNode(factory2.createQualifiedName(entity, name), entity.pos); + } + function parseRightSideOfDot(allowIdentifierNames, allowPrivateIdentifiers, allowUnicodeEscapeSequenceInIdentifierName) { + if (scanner.hasPrecedingLineBreak() && tokenIsIdentifierOrKeyword(token())) { + const matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); + if (matchesPattern) { + return createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.Identifier_expected + ); + } + } + if (token() === 81 /* PrivateIdentifier */) { + const node = parsePrivateIdentifier(); + return allowPrivateIdentifiers ? node : createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.Identifier_expected + ); + } + if (allowIdentifierNames) { + return allowUnicodeEscapeSequenceInIdentifierName ? parseIdentifierName() : parseIdentifierNameErrorOnUnicodeEscapeSequence(); + } + return parseIdentifier(); + } + function parseTemplateSpans(isTaggedTemplate) { + const pos = getNodePos(); + const list = []; + let node; + do { + node = parseTemplateSpan(isTaggedTemplate); + list.push(node); + } while (node.literal.kind === 17 /* TemplateMiddle */); + return createNodeArray(list, pos); + } + function parseTemplateExpression(isTaggedTemplate) { + const pos = getNodePos(); + return finishNode( + factory2.createTemplateExpression( + parseTemplateHead(isTaggedTemplate), + parseTemplateSpans(isTaggedTemplate) + ), + pos + ); + } + function parseTemplateType() { + const pos = getNodePos(); + return finishNode( + factory2.createTemplateLiteralType( + parseTemplateHead( + /*isTaggedTemplate*/ + false + ), + parseTemplateTypeSpans() + ), + pos + ); + } + function parseTemplateTypeSpans() { + const pos = getNodePos(); + const list = []; + let node; + do { + node = parseTemplateTypeSpan(); + list.push(node); + } while (node.literal.kind === 17 /* TemplateMiddle */); + return createNodeArray(list, pos); + } + function parseTemplateTypeSpan() { + const pos = getNodePos(); + return finishNode( + factory2.createTemplateLiteralTypeSpan( + parseType(), + parseLiteralOfTemplateSpan( + /*isTaggedTemplate*/ + false + ) + ), + pos + ); + } + function parseLiteralOfTemplateSpan(isTaggedTemplate) { + if (token() === 20 /* CloseBraceToken */) { + reScanTemplateToken(isTaggedTemplate); + return parseTemplateMiddleOrTemplateTail(); + } else { + return parseExpectedToken(18 /* TemplateTail */, Diagnostics._0_expected, tokenToString(20 /* CloseBraceToken */)); + } + } + function parseTemplateSpan(isTaggedTemplate) { + const pos = getNodePos(); + return finishNode( + factory2.createTemplateSpan( + allowInAnd(parseExpression), + parseLiteralOfTemplateSpan(isTaggedTemplate) + ), + pos + ); + } + function parseLiteralNode() { + return parseLiteralLikeNode(token()); + } + function parseTemplateHead(isTaggedTemplate) { + if (!isTaggedTemplate && scanner.getTokenFlags() & 26656 /* IsInvalid */) { + reScanTemplateToken( + /*isTaggedTemplate*/ + false + ); + } + const fragment = parseLiteralLikeNode(token()); + Debug.assert(fragment.kind === 16 /* TemplateHead */, "Template head has wrong token kind"); + return fragment; + } + function parseTemplateMiddleOrTemplateTail() { + const fragment = parseLiteralLikeNode(token()); + Debug.assert(fragment.kind === 17 /* TemplateMiddle */ || fragment.kind === 18 /* TemplateTail */, "Template fragment has wrong token kind"); + return fragment; + } + function getTemplateLiteralRawText(kind) { + const isLast = kind === 15 /* NoSubstitutionTemplateLiteral */ || kind === 18 /* TemplateTail */; + const tokenText = scanner.getTokenText(); + return tokenText.substring(1, tokenText.length - (scanner.isUnterminated() ? 0 : isLast ? 1 : 2)); + } + function parseLiteralLikeNode(kind) { + const pos = getNodePos(); + const node = isTemplateLiteralKind(kind) ? factory2.createTemplateLiteralLikeNode(kind, scanner.getTokenValue(), getTemplateLiteralRawText(kind), scanner.getTokenFlags() & 7176 /* TemplateLiteralLikeFlags */) : ( + // Note that theoretically the following condition would hold true literals like 009, + // which is not octal. But because of how the scanner separates the tokens, we would + // never get a token like this. Instead, we would get 00 and 9 as two separate tokens. + // We also do not need to check for negatives because any prefix operator would be part of a + // parent unary expression. + kind === 9 /* NumericLiteral */ ? factoryCreateNumericLiteral(scanner.getTokenValue(), scanner.getNumericLiteralFlags()) : kind === 11 /* StringLiteral */ ? factoryCreateStringLiteral( + scanner.getTokenValue(), + /*isSingleQuote*/ + void 0, + scanner.hasExtendedUnicodeEscape() + ) : isLiteralKind(kind) ? factoryCreateLiteralLikeNode(kind, scanner.getTokenValue()) : Debug.fail() + ); + if (scanner.hasExtendedUnicodeEscape()) { + node.hasExtendedUnicodeEscape = true; + } + if (scanner.isUnterminated()) { + node.isUnterminated = true; + } + nextToken(); + return finishNode(node, pos); + } + function parseEntityNameOfTypeReference() { + return parseEntityName( + /*allowReservedWords*/ + true, + Diagnostics.Type_expected + ); + } + function parseTypeArgumentsOfTypeReference() { + if (!scanner.hasPrecedingLineBreak() && reScanLessThanToken() === 30 /* LessThanToken */) { + return parseBracketedList(20 /* TypeArguments */, parseType, 30 /* LessThanToken */, 32 /* GreaterThanToken */); + } + } + function parseTypeReference() { + const pos = getNodePos(); + return finishNode( + factory2.createTypeReferenceNode( + parseEntityNameOfTypeReference(), + parseTypeArgumentsOfTypeReference() + ), + pos + ); + } + function typeHasArrowFunctionBlockingParseError(node) { + switch (node.kind) { + case 183 /* TypeReference */: + return nodeIsMissing(node.typeName); + case 184 /* FunctionType */: + case 185 /* ConstructorType */: { + const { parameters, type } = node; + return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type); + } + case 196 /* ParenthesizedType */: + return typeHasArrowFunctionBlockingParseError(node.type); + default: + return false; + } + } + function parseThisTypePredicate(lhs) { + nextToken(); + return finishNode(factory2.createTypePredicateNode( + /*assertsModifier*/ + void 0, + lhs, + parseType() + ), lhs.pos); + } + function parseThisTypeNode() { + const pos = getNodePos(); + nextToken(); + return finishNode(factory2.createThisTypeNode(), pos); + } + function parseJSDocAllType() { + const pos = getNodePos(); + nextToken(); + return finishNode(factory2.createJSDocAllType(), pos); + } + function parseJSDocNonNullableType() { + const pos = getNodePos(); + nextToken(); + return finishNode(factory2.createJSDocNonNullableType( + parseNonArrayType(), + /*postfix*/ + false + ), pos); + } + function parseJSDocUnknownOrNullableType() { + const pos = getNodePos(); + nextToken(); + if (token() === 28 /* CommaToken */ || token() === 20 /* CloseBraceToken */ || token() === 22 /* CloseParenToken */ || token() === 32 /* GreaterThanToken */ || token() === 64 /* EqualsToken */ || token() === 52 /* BarToken */) { + return finishNode(factory2.createJSDocUnknownType(), pos); + } else { + return finishNode(factory2.createJSDocNullableType( + parseType(), + /*postfix*/ + false + ), pos); + } + } + function parseJSDocFunctionType() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + if (tryParse(nextTokenIsOpenParen)) { + const parameters = parseParameters(4 /* Type */ | 32 /* JSDoc */); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + return withJSDoc(finishNode(factory2.createJSDocFunctionType(parameters, type), pos), hasJSDoc); + } + return finishNode(factory2.createTypeReferenceNode( + parseIdentifierName(), + /*typeArguments*/ + void 0 + ), pos); + } + function parseJSDocParameter() { + const pos = getNodePos(); + let name; + if (token() === 110 /* ThisKeyword */ || token() === 105 /* NewKeyword */) { + name = parseIdentifierName(); + parseExpected(59 /* ColonToken */); + } + return finishNode( + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + // TODO(rbuckton): JSDoc parameters don't have names (except `this`/`new`), should we manufacture an empty identifier? + name, + /*questionToken*/ + void 0, + parseJSDocType(), + /*initializer*/ + void 0 + ), + pos + ); + } + function parseJSDocType() { + scanner.setSkipJsDocLeadingAsterisks(true); + const pos = getNodePos(); + if (parseOptional(144 /* ModuleKeyword */)) { + const moduleTag = factory2.createJSDocNamepathType( + /*type*/ + void 0 + ); + terminate: + while (true) { + switch (token()) { + case 20 /* CloseBraceToken */: + case 1 /* EndOfFileToken */: + case 28 /* CommaToken */: + case 5 /* WhitespaceTrivia */: + break terminate; + default: + nextTokenJSDoc(); + } + } + scanner.setSkipJsDocLeadingAsterisks(false); + return finishNode(moduleTag, pos); + } + const hasDotDotDot = parseOptional(26 /* DotDotDotToken */); + let type = parseTypeOrTypePredicate(); + scanner.setSkipJsDocLeadingAsterisks(false); + if (hasDotDotDot) { + type = finishNode(factory2.createJSDocVariadicType(type), pos); + } + if (token() === 64 /* EqualsToken */) { + nextToken(); + return finishNode(factory2.createJSDocOptionalType(type), pos); + } + return type; + } + function parseTypeQuery() { + const pos = getNodePos(); + parseExpected(114 /* TypeOfKeyword */); + const entityName = parseEntityName( + /*allowReservedWords*/ + true + ); + const typeArguments = !scanner.hasPrecedingLineBreak() ? tryParseTypeArguments() : void 0; + return finishNode(factory2.createTypeQueryNode(entityName, typeArguments), pos); + } + function parseTypeParameter() { + const pos = getNodePos(); + const modifiers = parseModifiers( + /*allowDecorators*/ + false, + /*permitConstAsModifier*/ + true + ); + const name = parseIdentifier(); + let constraint; + let expression; + if (parseOptional(96 /* ExtendsKeyword */)) { + if (isStartOfType() || !isStartOfExpression()) { + constraint = parseType(); + } else { + expression = parseUnaryExpressionOrHigher(); + } + } + const defaultType = parseOptional(64 /* EqualsToken */) ? parseType() : void 0; + const node = factory2.createTypeParameterDeclaration(modifiers, name, constraint, defaultType); + node.expression = expression; + return finishNode(node, pos); + } + function parseTypeParameters() { + if (token() === 30 /* LessThanToken */) { + return parseBracketedList(19 /* TypeParameters */, parseTypeParameter, 30 /* LessThanToken */, 32 /* GreaterThanToken */); + } + } + function isStartOfParameter(isJSDocParameter) { + return token() === 26 /* DotDotDotToken */ || isBindingIdentifierOrPrivateIdentifierOrPattern() || isModifierKind(token()) || token() === 60 /* AtToken */ || isStartOfType( + /*inStartOfParameter*/ + !isJSDocParameter + ); + } + function parseNameOfParameter(modifiers) { + const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_cannot_be_used_as_parameters); + if (getFullWidth(name) === 0 && !some(modifiers) && isModifierKind(token())) { + nextToken(); + } + return name; + } + function isParameterNameStart() { + return isBindingIdentifier() || token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */; + } + function parseParameter(inOuterAwaitContext) { + return parseParameterWorker(inOuterAwaitContext); + } + function parseParameterForSpeculation(inOuterAwaitContext) { + return parseParameterWorker( + inOuterAwaitContext, + /*allowAmbiguity*/ + false + ); + } + function parseParameterWorker(inOuterAwaitContext, allowAmbiguity = true) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = inOuterAwaitContext ? doInAwaitContext(() => parseModifiers( + /*allowDecorators*/ + true + )) : doOutsideOfAwaitContext(() => parseModifiers( + /*allowDecorators*/ + true + )); + if (token() === 110 /* ThisKeyword */) { + const node2 = factory2.createParameterDeclaration( + modifiers, + /*dotDotDotToken*/ + void 0, + createIdentifier( + /*isIdentifier*/ + true + ), + /*questionToken*/ + void 0, + parseTypeAnnotation(), + /*initializer*/ + void 0 + ); + const modifier = firstOrUndefined(modifiers); + if (modifier) { + parseErrorAtRange(modifier, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); + } + return withJSDoc(finishNode(node2, pos), hasJSDoc); + } + const savedTopLevel = topLevel; + topLevel = false; + const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); + if (!allowAmbiguity && !isParameterNameStart()) { + return void 0; + } + const node = withJSDoc( + finishNode( + factory2.createParameterDeclaration( + modifiers, + dotDotDotToken, + parseNameOfParameter(modifiers), + parseOptionalToken(58 /* QuestionToken */), + parseTypeAnnotation(), + parseInitializer() + ), + pos + ), + hasJSDoc + ); + topLevel = savedTopLevel; + return node; + } + function parseReturnType(returnToken, isType) { + if (shouldParseReturnType(returnToken, isType)) { + return allowConditionalTypesAnd(parseTypeOrTypePredicate); + } + } + function shouldParseReturnType(returnToken, isType) { + if (returnToken === 39 /* EqualsGreaterThanToken */) { + parseExpected(returnToken); + return true; + } else if (parseOptional(59 /* ColonToken */)) { + return true; + } else if (isType && token() === 39 /* EqualsGreaterThanToken */) { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(59 /* ColonToken */)); + nextToken(); + return true; + } + return false; + } + function parseParametersWorker(flags, allowAmbiguity) { + const savedYieldContext = inYieldContext(); + const savedAwaitContext = inAwaitContext(); + setYieldContext(!!(flags & 1 /* Yield */)); + setAwaitContext(!!(flags & 2 /* Await */)); + const parameters = flags & 32 /* JSDoc */ ? parseDelimitedList(17 /* JSDocParameters */, parseJSDocParameter) : parseDelimitedList(16 /* Parameters */, () => allowAmbiguity ? parseParameter(savedAwaitContext) : parseParameterForSpeculation(savedAwaitContext)); + setYieldContext(savedYieldContext); + setAwaitContext(savedAwaitContext); + return parameters; + } + function parseParameters(flags) { + if (!parseExpected(21 /* OpenParenToken */)) { + return createMissingList(); + } + const parameters = parseParametersWorker( + flags, + /*allowAmbiguity*/ + true + ); + parseExpected(22 /* CloseParenToken */); + return parameters; + } + function parseTypeMemberSemicolon() { + if (parseOptional(28 /* CommaToken */)) { + return; + } + parseSemicolon(); + } + function parseSignatureMember(kind) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + if (kind === 180 /* ConstructSignature */) { + parseExpected(105 /* NewKeyword */); + } + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(4 /* Type */); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + true + ); + parseTypeMemberSemicolon(); + const node = kind === 179 /* CallSignature */ ? factory2.createCallSignature(typeParameters, parameters, type) : factory2.createConstructSignature(typeParameters, parameters, type); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function isIndexSignature() { + return token() === 23 /* OpenBracketToken */ && lookAhead(isUnambiguouslyIndexSignature); + } + function isUnambiguouslyIndexSignature() { + nextToken(); + if (token() === 26 /* DotDotDotToken */ || token() === 24 /* CloseBracketToken */) { + return true; + } + if (isModifierKind(token())) { + nextToken(); + if (isIdentifier2()) { + return true; + } + } else if (!isIdentifier2()) { + return false; + } else { + nextToken(); + } + if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */) { + return true; + } + if (token() !== 58 /* QuestionToken */) { + return false; + } + nextToken(); + return token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 24 /* CloseBracketToken */; + } + function parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers) { + const parameters = parseBracketedList(16 /* Parameters */, () => parseParameter( + /*inOuterAwaitContext*/ + false + ), 23 /* OpenBracketToken */, 24 /* CloseBracketToken */); + const type = parseTypeAnnotation(); + parseTypeMemberSemicolon(); + const node = factory2.createIndexSignature(modifiers, parameters, type); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) { + const name = parsePropertyName(); + const questionToken = parseOptionalToken(58 /* QuestionToken */); + let node; + if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(4 /* Type */); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + true + ); + node = factory2.createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type); + } else { + const type = parseTypeAnnotation(); + node = factory2.createPropertySignature(modifiers, name, questionToken, type); + if (token() === 64 /* EqualsToken */) node.initializer = parseInitializer(); + } + parseTypeMemberSemicolon(); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function isTypeMemberStart() { + if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 139 /* GetKeyword */ || token() === 153 /* SetKeyword */) { + return true; + } + let idToken = false; + while (isModifierKind(token())) { + idToken = true; + nextToken(); + } + if (token() === 23 /* OpenBracketToken */) { + return true; + } + if (isLiteralPropertyName()) { + idToken = true; + nextToken(); + } + if (idToken) { + return token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 58 /* QuestionToken */ || token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || canParseSemicolon(); + } + return false; + } + function parseTypeMember() { + if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { + return parseSignatureMember(179 /* CallSignature */); + } + if (token() === 105 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) { + return parseSignatureMember(180 /* ConstructSignature */); + } + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiers( + /*allowDecorators*/ + false + ); + if (parseContextualModifier(139 /* GetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 4 /* Type */); + } + if (parseContextualModifier(153 /* SetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 4 /* Type */); + } + if (isIndexSignature()) { + return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); + } + return parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers); + } + function nextTokenIsOpenParenOrLessThan() { + nextToken(); + return token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */; + } + function nextTokenIsDot() { + return nextToken() === 25 /* DotToken */; + } + function nextTokenIsOpenParenOrLessThanOrDot() { + switch (nextToken()) { + case 21 /* OpenParenToken */: + case 30 /* LessThanToken */: + case 25 /* DotToken */: + return true; + } + return false; + } + function parseTypeLiteral() { + const pos = getNodePos(); + return finishNode(factory2.createTypeLiteralNode(parseObjectTypeMembers()), pos); + } + function parseObjectTypeMembers() { + let members; + if (parseExpected(19 /* OpenBraceToken */)) { + members = parseList(4 /* TypeMembers */, parseTypeMember); + parseExpected(20 /* CloseBraceToken */); + } else { + members = createMissingList(); + } + return members; + } + function isStartOfMappedType() { + nextToken(); + if (token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { + return nextToken() === 148 /* ReadonlyKeyword */; + } + if (token() === 148 /* ReadonlyKeyword */) { + nextToken(); + } + return token() === 23 /* OpenBracketToken */ && nextTokenIsIdentifier() && nextToken() === 103 /* InKeyword */; + } + function parseMappedTypeParameter() { + const pos = getNodePos(); + const name = parseIdentifierName(); + parseExpected(103 /* InKeyword */); + const type = parseType(); + return finishNode(factory2.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + name, + type, + /*defaultType*/ + void 0 + ), pos); + } + function parseMappedType() { + const pos = getNodePos(); + parseExpected(19 /* OpenBraceToken */); + let readonlyToken; + if (token() === 148 /* ReadonlyKeyword */ || token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { + readonlyToken = parseTokenNode(); + if (readonlyToken.kind !== 148 /* ReadonlyKeyword */) { + parseExpected(148 /* ReadonlyKeyword */); + } + } + parseExpected(23 /* OpenBracketToken */); + const typeParameter = parseMappedTypeParameter(); + const nameType = parseOptional(130 /* AsKeyword */) ? parseType() : void 0; + parseExpected(24 /* CloseBracketToken */); + let questionToken; + if (token() === 58 /* QuestionToken */ || token() === 40 /* PlusToken */ || token() === 41 /* MinusToken */) { + questionToken = parseTokenNode(); + if (questionToken.kind !== 58 /* QuestionToken */) { + parseExpected(58 /* QuestionToken */); + } + } + const type = parseTypeAnnotation(); + parseSemicolon(); + const members = parseList(4 /* TypeMembers */, parseTypeMember); + parseExpected(20 /* CloseBraceToken */); + return finishNode(factory2.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type, members), pos); + } + function parseTupleElementType() { + const pos = getNodePos(); + if (parseOptional(26 /* DotDotDotToken */)) { + return finishNode(factory2.createRestTypeNode(parseType()), pos); + } + const type = parseType(); + if (isJSDocNullableType(type) && type.pos === type.type.pos) { + const node = factory2.createOptionalTypeNode(type.type); + setTextRange(node, type); + node.flags = type.flags; + return node; + } + return type; + } + function isNextTokenColonOrQuestionColon() { + return nextToken() === 59 /* ColonToken */ || token() === 58 /* QuestionToken */ && nextToken() === 59 /* ColonToken */; + } + function isTupleElementName() { + if (token() === 26 /* DotDotDotToken */) { + return tokenIsIdentifierOrKeyword(nextToken()) && isNextTokenColonOrQuestionColon(); + } + return tokenIsIdentifierOrKeyword(token()) && isNextTokenColonOrQuestionColon(); + } + function parseTupleElementNameOrTupleElementType() { + if (lookAhead(isTupleElementName)) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); + const name = parseIdentifierName(); + const questionToken = parseOptionalToken(58 /* QuestionToken */); + parseExpected(59 /* ColonToken */); + const type = parseTupleElementType(); + const node = factory2.createNamedTupleMember(dotDotDotToken, name, questionToken, type); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + return parseTupleElementType(); + } + function parseTupleType() { + const pos = getNodePos(); + return finishNode( + factory2.createTupleTypeNode( + parseBracketedList(21 /* TupleElementTypes */, parseTupleElementNameOrTupleElementType, 23 /* OpenBracketToken */, 24 /* CloseBracketToken */) + ), + pos + ); + } + function parseParenthesizedType() { + const pos = getNodePos(); + parseExpected(21 /* OpenParenToken */); + const type = parseType(); + parseExpected(22 /* CloseParenToken */); + return finishNode(factory2.createParenthesizedType(type), pos); + } + function parseModifiersForConstructorType() { + let modifiers; + if (token() === 128 /* AbstractKeyword */) { + const pos = getNodePos(); + nextToken(); + const modifier = finishNode(factoryCreateToken(128 /* AbstractKeyword */), pos); + modifiers = createNodeArray([modifier], pos); + } + return modifiers; + } + function parseFunctionOrConstructorType() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiersForConstructorType(); + const isConstructorType = parseOptional(105 /* NewKeyword */); + Debug.assert(!modifiers || isConstructorType, "Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers."); + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(4 /* Type */); + const type = parseReturnType( + 39 /* EqualsGreaterThanToken */, + /*isType*/ + false + ); + const node = isConstructorType ? factory2.createConstructorTypeNode(modifiers, typeParameters, parameters, type) : factory2.createFunctionTypeNode(typeParameters, parameters, type); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseKeywordAndNoDot() { + const node = parseTokenNode(); + return token() === 25 /* DotToken */ ? void 0 : node; + } + function parseLiteralTypeNode(negative) { + const pos = getNodePos(); + if (negative) { + nextToken(); + } + let expression = token() === 112 /* TrueKeyword */ || token() === 97 /* FalseKeyword */ || token() === 106 /* NullKeyword */ ? parseTokenNode() : parseLiteralLikeNode(token()); + if (negative) { + expression = finishNode(factory2.createPrefixUnaryExpression(41 /* MinusToken */, expression), pos); + } + return finishNode(factory2.createLiteralTypeNode(expression), pos); + } + function isStartOfTypeOfImportType() { + nextToken(); + return token() === 102 /* ImportKeyword */; + } + function parseImportType() { + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; + const pos = getNodePos(); + const isTypeOf = parseOptional(114 /* TypeOfKeyword */); + parseExpected(102 /* ImportKeyword */); + parseExpected(21 /* OpenParenToken */); + const type = parseType(); + let attributes; + if (parseOptional(28 /* CommaToken */)) { + const openBracePosition = scanner.getTokenStart(); + parseExpected(19 /* OpenBraceToken */); + const currentToken2 = token(); + if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) { + nextToken(); + } else { + parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(118 /* WithKeyword */)); + } + parseExpected(59 /* ColonToken */); + attributes = parseImportAttributes( + currentToken2, + /*skipKeyword*/ + true + ); + if (!parseExpected(20 /* CloseBraceToken */)) { + const lastError = lastOrUndefined(parseDiagnostics); + if (lastError && lastError.code === Diagnostics._0_expected.code) { + addRelatedInfo( + lastError, + createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}") + ); + } + } + } + parseExpected(22 /* CloseParenToken */); + const qualifier = parseOptional(25 /* DotToken */) ? parseEntityNameOfTypeReference() : void 0; + const typeArguments = parseTypeArgumentsOfTypeReference(); + return finishNode(factory2.createImportTypeNode(type, attributes, qualifier, typeArguments, isTypeOf), pos); + } + function nextTokenIsNumericOrBigIntLiteral() { + nextToken(); + return token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */; + } + function parseNonArrayType() { + switch (token()) { + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 154 /* StringKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 155 /* SymbolKeyword */: + case 136 /* BooleanKeyword */: + case 157 /* UndefinedKeyword */: + case 146 /* NeverKeyword */: + case 151 /* ObjectKeyword */: + return tryParse(parseKeywordAndNoDot) || parseTypeReference(); + case 67 /* AsteriskEqualsToken */: + scanner.reScanAsteriskEqualsToken(); + case 42 /* AsteriskToken */: + return parseJSDocAllType(); + case 61 /* QuestionQuestionToken */: + scanner.reScanQuestionToken(); + case 58 /* QuestionToken */: + return parseJSDocUnknownOrNullableType(); + case 100 /* FunctionKeyword */: + return parseJSDocFunctionType(); + case 54 /* ExclamationToken */: + return parseJSDocNonNullableType(); + case 15 /* NoSubstitutionTemplateLiteral */: + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 106 /* NullKeyword */: + return parseLiteralTypeNode(); + case 41 /* MinusToken */: + return lookAhead(nextTokenIsNumericOrBigIntLiteral) ? parseLiteralTypeNode( + /*negative*/ + true + ) : parseTypeReference(); + case 116 /* VoidKeyword */: + return parseTokenNode(); + case 110 /* ThisKeyword */: { + const thisKeyword = parseThisTypeNode(); + if (token() === 142 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) { + return parseThisTypePredicate(thisKeyword); + } else { + return thisKeyword; + } + } + case 114 /* TypeOfKeyword */: + return lookAhead(isStartOfTypeOfImportType) ? parseImportType() : parseTypeQuery(); + case 19 /* OpenBraceToken */: + return lookAhead(isStartOfMappedType) ? parseMappedType() : parseTypeLiteral(); + case 23 /* OpenBracketToken */: + return parseTupleType(); + case 21 /* OpenParenToken */: + return parseParenthesizedType(); + case 102 /* ImportKeyword */: + return parseImportType(); + case 131 /* AssertsKeyword */: + return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine) ? parseAssertsTypePredicate() : parseTypeReference(); + case 16 /* TemplateHead */: + return parseTemplateType(); + default: + return parseTypeReference(); + } + } + function isStartOfType(inStartOfParameter) { + switch (token()) { + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 154 /* StringKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 136 /* BooleanKeyword */: + case 148 /* ReadonlyKeyword */: + case 155 /* SymbolKeyword */: + case 158 /* UniqueKeyword */: + case 116 /* VoidKeyword */: + case 157 /* UndefinedKeyword */: + case 106 /* NullKeyword */: + case 110 /* ThisKeyword */: + case 114 /* TypeOfKeyword */: + case 146 /* NeverKeyword */: + case 19 /* OpenBraceToken */: + case 23 /* OpenBracketToken */: + case 30 /* LessThanToken */: + case 52 /* BarToken */: + case 51 /* AmpersandToken */: + case 105 /* NewKeyword */: + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 151 /* ObjectKeyword */: + case 42 /* AsteriskToken */: + case 58 /* QuestionToken */: + case 54 /* ExclamationToken */: + case 26 /* DotDotDotToken */: + case 140 /* InferKeyword */: + case 102 /* ImportKeyword */: + case 131 /* AssertsKeyword */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + return true; + case 100 /* FunctionKeyword */: + return !inStartOfParameter; + case 41 /* MinusToken */: + return !inStartOfParameter && lookAhead(nextTokenIsNumericOrBigIntLiteral); + case 21 /* OpenParenToken */: + return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType); + default: + return isIdentifier2(); + } + } + function isStartOfParenthesizedOrFunctionType() { + nextToken(); + return token() === 22 /* CloseParenToken */ || isStartOfParameter( + /*isJSDocParameter*/ + false + ) || isStartOfType(); + } + function parsePostfixTypeOrHigher() { + const pos = getNodePos(); + let type = parseNonArrayType(); + while (!scanner.hasPrecedingLineBreak()) { + switch (token()) { + case 54 /* ExclamationToken */: + nextToken(); + type = finishNode(factory2.createJSDocNonNullableType( + type, + /*postfix*/ + true + ), pos); + break; + case 58 /* QuestionToken */: + if (lookAhead(nextTokenIsStartOfType)) { + return type; + } + nextToken(); + type = finishNode(factory2.createJSDocNullableType( + type, + /*postfix*/ + true + ), pos); + break; + case 23 /* OpenBracketToken */: + parseExpected(23 /* OpenBracketToken */); + if (isStartOfType()) { + const indexType = parseType(); + parseExpected(24 /* CloseBracketToken */); + type = finishNode(factory2.createIndexedAccessTypeNode(type, indexType), pos); + } else { + parseExpected(24 /* CloseBracketToken */); + type = finishNode(factory2.createArrayTypeNode(type), pos); + } + break; + default: + return type; + } + } + return type; + } + function parseTypeOperator(operator) { + const pos = getNodePos(); + parseExpected(operator); + return finishNode(factory2.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos); + } + function tryParseConstraintOfInferType() { + if (parseOptional(96 /* ExtendsKeyword */)) { + const constraint = disallowConditionalTypesAnd(parseType); + if (inDisallowConditionalTypesContext() || token() !== 58 /* QuestionToken */) { + return constraint; + } + } + } + function parseTypeParameterOfInferType() { + const pos = getNodePos(); + const name = parseIdentifier(); + const constraint = tryParse(tryParseConstraintOfInferType); + const node = factory2.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + name, + constraint + ); + return finishNode(node, pos); + } + function parseInferType() { + const pos = getNodePos(); + parseExpected(140 /* InferKeyword */); + return finishNode(factory2.createInferTypeNode(parseTypeParameterOfInferType()), pos); + } + function parseTypeOperatorOrHigher() { + const operator = token(); + switch (operator) { + case 143 /* KeyOfKeyword */: + case 158 /* UniqueKeyword */: + case 148 /* ReadonlyKeyword */: + return parseTypeOperator(operator); + case 140 /* InferKeyword */: + return parseInferType(); + } + return allowConditionalTypesAnd(parsePostfixTypeOrHigher); + } + function parseFunctionOrConstructorTypeToError(isInUnionType) { + if (isStartOfFunctionTypeOrConstructorType()) { + const type = parseFunctionOrConstructorType(); + let diagnostic; + if (isFunctionTypeNode(type)) { + diagnostic = isInUnionType ? Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type; + } else { + diagnostic = isInUnionType ? Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type : Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type; + } + parseErrorAtRange(type, diagnostic); + return type; + } + return void 0; + } + function parseUnionOrIntersectionType(operator, parseConstituentType, createTypeNode) { + const pos = getNodePos(); + const isUnionType = operator === 52 /* BarToken */; + const hasLeadingOperator = parseOptional(operator); + let type = hasLeadingOperator && parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType(); + if (token() === operator || hasLeadingOperator) { + const types = [type]; + while (parseOptional(operator)) { + types.push(parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType()); + } + type = finishNode(createTypeNode(createNodeArray(types, pos)), pos); + } + return type; + } + function parseIntersectionTypeOrHigher() { + return parseUnionOrIntersectionType(51 /* AmpersandToken */, parseTypeOperatorOrHigher, factory2.createIntersectionTypeNode); + } + function parseUnionTypeOrHigher() { + return parseUnionOrIntersectionType(52 /* BarToken */, parseIntersectionTypeOrHigher, factory2.createUnionTypeNode); + } + function nextTokenIsNewKeyword() { + nextToken(); + return token() === 105 /* NewKeyword */; + } + function isStartOfFunctionTypeOrConstructorType() { + if (token() === 30 /* LessThanToken */) { + return true; + } + if (token() === 21 /* OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType)) { + return true; + } + return token() === 105 /* NewKeyword */ || token() === 128 /* AbstractKeyword */ && lookAhead(nextTokenIsNewKeyword); + } + function skipParameterStart() { + if (isModifierKind(token())) { + parseModifiers( + /*allowDecorators*/ + false + ); + } + if (isIdentifier2() || token() === 110 /* ThisKeyword */) { + nextToken(); + return true; + } + if (token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */) { + const previousErrorCount = parseDiagnostics.length; + parseIdentifierOrPattern(); + return previousErrorCount === parseDiagnostics.length; + } + return false; + } + function isUnambiguouslyStartOfFunctionType() { + nextToken(); + if (token() === 22 /* CloseParenToken */ || token() === 26 /* DotDotDotToken */) { + return true; + } + if (skipParameterStart()) { + if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 58 /* QuestionToken */ || token() === 64 /* EqualsToken */) { + return true; + } + if (token() === 22 /* CloseParenToken */) { + nextToken(); + if (token() === 39 /* EqualsGreaterThanToken */) { + return true; + } + } + } + return false; + } + function parseTypeOrTypePredicate() { + const pos = getNodePos(); + const typePredicateVariable = isIdentifier2() && tryParse(parseTypePredicatePrefix); + const type = parseType(); + if (typePredicateVariable) { + return finishNode(factory2.createTypePredicateNode( + /*assertsModifier*/ + void 0, + typePredicateVariable, + type + ), pos); + } else { + return type; + } + } + function parseTypePredicatePrefix() { + const id = parseIdentifier(); + if (token() === 142 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) { + nextToken(); + return id; + } + } + function parseAssertsTypePredicate() { + const pos = getNodePos(); + const assertsModifier = parseExpectedToken(131 /* AssertsKeyword */); + const parameterName = token() === 110 /* ThisKeyword */ ? parseThisTypeNode() : parseIdentifier(); + const type = parseOptional(142 /* IsKeyword */) ? parseType() : void 0; + return finishNode(factory2.createTypePredicateNode(assertsModifier, parameterName, type), pos); + } + function parseType() { + if (contextFlags & 81920 /* TypeExcludesFlags */) { + return doOutsideOfContext(81920 /* TypeExcludesFlags */, parseType); + } + if (isStartOfFunctionTypeOrConstructorType()) { + return parseFunctionOrConstructorType(); + } + const pos = getNodePos(); + const type = parseUnionTypeOrHigher(); + if (!inDisallowConditionalTypesContext() && !scanner.hasPrecedingLineBreak() && parseOptional(96 /* ExtendsKeyword */)) { + const extendsType = disallowConditionalTypesAnd(parseType); + parseExpected(58 /* QuestionToken */); + const trueType = allowConditionalTypesAnd(parseType); + parseExpected(59 /* ColonToken */); + const falseType = allowConditionalTypesAnd(parseType); + return finishNode(factory2.createConditionalTypeNode(type, extendsType, trueType, falseType), pos); + } + return type; + } + function parseTypeAnnotation() { + return parseOptional(59 /* ColonToken */) ? parseType() : void 0; + } + function isStartOfLeftHandSideExpression() { + switch (token()) { + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 106 /* NullKeyword */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + case 21 /* OpenParenToken */: + case 23 /* OpenBracketToken */: + case 19 /* OpenBraceToken */: + case 100 /* FunctionKeyword */: + case 86 /* ClassKeyword */: + case 105 /* NewKeyword */: + case 44 /* SlashToken */: + case 69 /* SlashEqualsToken */: + case 80 /* Identifier */: + return true; + case 102 /* ImportKeyword */: + return lookAhead(nextTokenIsOpenParenOrLessThanOrDot); + default: + return isIdentifier2(); + } + } + function isStartOfExpression() { + if (isStartOfLeftHandSideExpression()) { + return true; + } + switch (token()) { + case 40 /* PlusToken */: + case 41 /* MinusToken */: + case 55 /* TildeToken */: + case 54 /* ExclamationToken */: + case 91 /* DeleteKeyword */: + case 114 /* TypeOfKeyword */: + case 116 /* VoidKeyword */: + case 46 /* PlusPlusToken */: + case 47 /* MinusMinusToken */: + case 30 /* LessThanToken */: + case 135 /* AwaitKeyword */: + case 127 /* YieldKeyword */: + case 81 /* PrivateIdentifier */: + case 60 /* AtToken */: + return true; + default: + if (isBinaryOperator2()) { + return true; + } + return isIdentifier2(); + } + } + function isStartOfExpressionStatement() { + return token() !== 19 /* OpenBraceToken */ && token() !== 100 /* FunctionKeyword */ && token() !== 86 /* ClassKeyword */ && token() !== 60 /* AtToken */ && isStartOfExpression(); + } + function parseExpression() { + const saveDecoratorContext = inDecoratorContext(); + if (saveDecoratorContext) { + setDecoratorContext( + /*val*/ + false + ); + } + const pos = getNodePos(); + let expr = parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + let operatorToken; + while (operatorToken = parseOptionalToken(28 /* CommaToken */)) { + expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ), pos); + } + if (saveDecoratorContext) { + setDecoratorContext( + /*val*/ + true + ); + } + return expr; + } + function parseInitializer() { + return parseOptional(64 /* EqualsToken */) ? parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ) : void 0; + } + function parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) { + if (isYieldExpression()) { + return parseYieldExpression(); + } + const arrowExpression = tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) || tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction); + if (arrowExpression) { + return arrowExpression; + } + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); + if (expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { + return parseSimpleArrowFunctionExpression( + pos, + expr, + allowReturnTypeInArrowFunction, + hasJSDoc, + /*asyncModifier*/ + void 0 + ); + } + if (isLeftHandSideExpression(expr) && isAssignmentOperator(reScanGreaterToken())) { + return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction), pos); + } + return parseConditionalExpressionRest(expr, pos, allowReturnTypeInArrowFunction); + } + function isYieldExpression() { + if (token() === 127 /* YieldKeyword */) { + if (inYieldContext()) { + return true; + } + return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine); + } + return false; + } + function nextTokenIsIdentifierOnSameLine() { + nextToken(); + return !scanner.hasPrecedingLineBreak() && isIdentifier2(); + } + function parseYieldExpression() { + const pos = getNodePos(); + nextToken(); + if (!scanner.hasPrecedingLineBreak() && (token() === 42 /* AsteriskToken */ || isStartOfExpression())) { + return finishNode( + factory2.createYieldExpression( + parseOptionalToken(42 /* AsteriskToken */), + parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ) + ), + pos + ); + } else { + return finishNode(factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + /*expression*/ + void 0 + ), pos); + } + } + function parseSimpleArrowFunctionExpression(pos, identifier, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier) { + Debug.assert(token() === 39 /* EqualsGreaterThanToken */, "parseSimpleArrowFunctionExpression should only have been called if we had a =>"); + const parameter = factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + identifier, + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + finishNode(parameter, identifier.pos); + const parameters = createNodeArray([parameter], parameter.pos, parameter.end); + const equalsGreaterThanToken = parseExpectedToken(39 /* EqualsGreaterThanToken */); + const body = parseArrowFunctionExpressionBody( + /*isAsync*/ + !!asyncModifier, + allowReturnTypeInArrowFunction + ); + const node = factory2.createArrowFunction( + asyncModifier, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + equalsGreaterThanToken, + body + ); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function tryParseParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { + const triState = isParenthesizedArrowFunctionExpression(); + if (triState === 0 /* False */) { + return void 0; + } + return triState === 1 /* True */ ? parseParenthesizedArrowFunctionExpression( + /*allowAmbiguity*/ + true, + /*allowReturnTypeInArrowFunction*/ + true + ) : tryParse(() => parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction)); + } + function isParenthesizedArrowFunctionExpression() { + if (token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */ || token() === 134 /* AsyncKeyword */) { + return lookAhead(isParenthesizedArrowFunctionExpressionWorker); + } + if (token() === 39 /* EqualsGreaterThanToken */) { + return 1 /* True */; + } + return 0 /* False */; + } + function isParenthesizedArrowFunctionExpressionWorker() { + if (token() === 134 /* AsyncKeyword */) { + nextToken(); + if (scanner.hasPrecedingLineBreak()) { + return 0 /* False */; + } + if (token() !== 21 /* OpenParenToken */ && token() !== 30 /* LessThanToken */) { + return 0 /* False */; + } + } + const first2 = token(); + const second = nextToken(); + if (first2 === 21 /* OpenParenToken */) { + if (second === 22 /* CloseParenToken */) { + const third = nextToken(); + switch (third) { + case 39 /* EqualsGreaterThanToken */: + case 59 /* ColonToken */: + case 19 /* OpenBraceToken */: + return 1 /* True */; + default: + return 0 /* False */; + } + } + if (second === 23 /* OpenBracketToken */ || second === 19 /* OpenBraceToken */) { + return 2 /* Unknown */; + } + if (second === 26 /* DotDotDotToken */) { + return 1 /* True */; + } + if (isModifierKind(second) && second !== 134 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) { + if (nextToken() === 130 /* AsKeyword */) { + return 0 /* False */; + } + return 1 /* True */; + } + if (!isIdentifier2() && second !== 110 /* ThisKeyword */) { + return 0 /* False */; + } + switch (nextToken()) { + case 59 /* ColonToken */: + return 1 /* True */; + case 58 /* QuestionToken */: + nextToken(); + if (token() === 59 /* ColonToken */ || token() === 28 /* CommaToken */ || token() === 64 /* EqualsToken */ || token() === 22 /* CloseParenToken */) { + return 1 /* True */; + } + return 0 /* False */; + case 28 /* CommaToken */: + case 64 /* EqualsToken */: + case 22 /* CloseParenToken */: + return 2 /* Unknown */; + } + return 0 /* False */; + } else { + Debug.assert(first2 === 30 /* LessThanToken */); + if (!isIdentifier2() && token() !== 87 /* ConstKeyword */) { + return 0 /* False */; + } + if (languageVariant === 1 /* JSX */) { + const isArrowFunctionInJsx = lookAhead(() => { + parseOptional(87 /* ConstKeyword */); + const third = nextToken(); + if (third === 96 /* ExtendsKeyword */) { + const fourth = nextToken(); + switch (fourth) { + case 64 /* EqualsToken */: + case 32 /* GreaterThanToken */: + case 44 /* SlashToken */: + return false; + default: + return true; + } + } else if (third === 28 /* CommaToken */ || third === 64 /* EqualsToken */) { + return true; + } + return false; + }); + if (isArrowFunctionInJsx) { + return 1 /* True */; + } + return 0 /* False */; + } + return 2 /* Unknown */; + } + } + function parsePossibleParenthesizedArrowFunctionExpression(allowReturnTypeInArrowFunction) { + const tokenPos = scanner.getTokenStart(); + if (notParenthesizedArrow == null ? void 0 : notParenthesizedArrow.has(tokenPos)) { + return void 0; + } + const result = parseParenthesizedArrowFunctionExpression( + /*allowAmbiguity*/ + false, + allowReturnTypeInArrowFunction + ); + if (!result) { + (notParenthesizedArrow || (notParenthesizedArrow = /* @__PURE__ */ new Set())).add(tokenPos); + } + return result; + } + function tryParseAsyncSimpleArrowFunctionExpression(allowReturnTypeInArrowFunction) { + if (token() === 134 /* AsyncKeyword */) { + if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const asyncModifier = parseModifiersForArrowFunction(); + const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); + return parseSimpleArrowFunctionExpression(pos, expr, allowReturnTypeInArrowFunction, hasJSDoc, asyncModifier); + } + } + return void 0; + } + function isUnParenthesizedAsyncArrowFunctionWorker() { + if (token() === 134 /* AsyncKeyword */) { + nextToken(); + if (scanner.hasPrecedingLineBreak() || token() === 39 /* EqualsGreaterThanToken */) { + return 0 /* False */; + } + const expr = parseBinaryExpressionOrHigher(0 /* Lowest */); + if (!scanner.hasPrecedingLineBreak() && expr.kind === 80 /* Identifier */ && token() === 39 /* EqualsGreaterThanToken */) { + return 1 /* True */; + } + } + return 0 /* False */; + } + function parseParenthesizedArrowFunctionExpression(allowAmbiguity, allowReturnTypeInArrowFunction) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiersForArrowFunction(); + const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; + const typeParameters = parseTypeParameters(); + let parameters; + if (!parseExpected(21 /* OpenParenToken */)) { + if (!allowAmbiguity) { + return void 0; + } + parameters = createMissingList(); + } else { + if (!allowAmbiguity) { + const maybeParameters = parseParametersWorker(isAsync, allowAmbiguity); + if (!maybeParameters) { + return void 0; + } + parameters = maybeParameters; + } else { + parameters = parseParametersWorker(isAsync, allowAmbiguity); + } + if (!parseExpected(22 /* CloseParenToken */) && !allowAmbiguity) { + return void 0; + } + } + const hasReturnColon = token() === 59 /* ColonToken */; + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) { + return void 0; + } + let unwrappedType = type; + while ((unwrappedType == null ? void 0 : unwrappedType.kind) === 196 /* ParenthesizedType */) { + unwrappedType = unwrappedType.type; + } + const hasJSDocFunctionType = unwrappedType && isJSDocFunctionType(unwrappedType); + if (!allowAmbiguity && token() !== 39 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 19 /* OpenBraceToken */)) { + return void 0; + } + const lastToken = token(); + const equalsGreaterThanToken = parseExpectedToken(39 /* EqualsGreaterThanToken */); + const body = lastToken === 39 /* EqualsGreaterThanToken */ || lastToken === 19 /* OpenBraceToken */ ? parseArrowFunctionExpressionBody(some(modifiers, isAsyncModifier), allowReturnTypeInArrowFunction) : parseIdentifier(); + if (!allowReturnTypeInArrowFunction && hasReturnColon) { + if (token() !== 59 /* ColonToken */) { + return void 0; + } + } + const node = factory2.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseArrowFunctionExpressionBody(isAsync, allowReturnTypeInArrowFunction) { + if (token() === 19 /* OpenBraceToken */) { + return parseFunctionBlock(isAsync ? 2 /* Await */ : 0 /* None */); + } + if (token() !== 27 /* SemicolonToken */ && token() !== 100 /* FunctionKeyword */ && token() !== 86 /* ClassKeyword */ && isStartOfStatement() && !isStartOfExpressionStatement()) { + return parseFunctionBlock(16 /* IgnoreMissingOpenBrace */ | (isAsync ? 2 /* Await */ : 0 /* None */)); + } + const savedTopLevel = topLevel; + topLevel = false; + const node = isAsync ? doInAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)) : doOutsideOfAwaitContext(() => parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction)); + topLevel = savedTopLevel; + return node; + } + function parseConditionalExpressionRest(leftOperand, pos, allowReturnTypeInArrowFunction) { + const questionToken = parseOptionalToken(58 /* QuestionToken */); + if (!questionToken) { + return leftOperand; + } + let colonToken; + return finishNode( + factory2.createConditionalExpression( + leftOperand, + questionToken, + doOutsideOfContext(disallowInAndDecoratorContext, () => parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + false + )), + colonToken = parseExpectedToken(59 /* ColonToken */), + nodeIsPresent(colonToken) ? parseAssignmentExpressionOrHigher(allowReturnTypeInArrowFunction) : createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + false, + Diagnostics._0_expected, + tokenToString(59 /* ColonToken */) + ) + ), + pos + ); + } + function parseBinaryExpressionOrHigher(precedence) { + const pos = getNodePos(); + const leftOperand = parseUnaryExpressionOrHigher(); + return parseBinaryExpressionRest(precedence, leftOperand, pos); + } + function isInOrOfKeyword(t) { + return t === 103 /* InKeyword */ || t === 165 /* OfKeyword */; + } + function parseBinaryExpressionRest(precedence, leftOperand, pos) { + while (true) { + reScanGreaterToken(); + const newPrecedence = getBinaryOperatorPrecedence(token()); + const consumeCurrentOperator = token() === 43 /* AsteriskAsteriskToken */ ? newPrecedence >= precedence : newPrecedence > precedence; + if (!consumeCurrentOperator) { + break; + } + if (token() === 103 /* InKeyword */ && inDisallowInContext()) { + break; + } + if (token() === 130 /* AsKeyword */ || token() === 152 /* SatisfiesKeyword */) { + if (scanner.hasPrecedingLineBreak()) { + break; + } else { + const keywordKind = token(); + nextToken(); + leftOperand = keywordKind === 152 /* SatisfiesKeyword */ ? makeSatisfiesExpression(leftOperand, parseType()) : makeAsExpression(leftOperand, parseType()); + } + } else { + leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence), pos); + } + } + return leftOperand; + } + function isBinaryOperator2() { + if (inDisallowInContext() && token() === 103 /* InKeyword */) { + return false; + } + return getBinaryOperatorPrecedence(token()) > 0; + } + function makeSatisfiesExpression(left, right) { + return finishNode(factory2.createSatisfiesExpression(left, right), left.pos); + } + function makeBinaryExpression(left, operatorToken, right, pos) { + return finishNode(factory2.createBinaryExpression(left, operatorToken, right), pos); + } + function makeAsExpression(left, right) { + return finishNode(factory2.createAsExpression(left, right), left.pos); + } + function parsePrefixUnaryExpression() { + const pos = getNodePos(); + return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseSimpleUnaryExpression)), pos); + } + function parseDeleteExpression() { + const pos = getNodePos(); + return finishNode(factory2.createDeleteExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); + } + function parseTypeOfExpression() { + const pos = getNodePos(); + return finishNode(factory2.createTypeOfExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); + } + function parseVoidExpression() { + const pos = getNodePos(); + return finishNode(factory2.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); + } + function isAwaitExpression2() { + if (token() === 135 /* AwaitKeyword */) { + if (inAwaitContext()) { + return true; + } + return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine); + } + return false; + } + function parseAwaitExpression() { + const pos = getNodePos(); + return finishNode(factory2.createAwaitExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos); + } + function parseUnaryExpressionOrHigher() { + if (isUpdateExpression()) { + const pos = getNodePos(); + const updateExpression = parseUpdateExpression(); + return token() === 43 /* AsteriskAsteriskToken */ ? parseBinaryExpressionRest(getBinaryOperatorPrecedence(token()), updateExpression, pos) : updateExpression; + } + const unaryOperator = token(); + const simpleUnaryExpression = parseSimpleUnaryExpression(); + if (token() === 43 /* AsteriskAsteriskToken */) { + const pos = skipTrivia(sourceText, simpleUnaryExpression.pos); + const { end } = simpleUnaryExpression; + if (simpleUnaryExpression.kind === 216 /* TypeAssertionExpression */) { + parseErrorAt(pos, end, Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses); + } else { + Debug.assert(isKeywordOrPunctuation(unaryOperator)); + parseErrorAt(pos, end, Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, tokenToString(unaryOperator)); + } + } + return simpleUnaryExpression; + } + function parseSimpleUnaryExpression() { + switch (token()) { + case 40 /* PlusToken */: + case 41 /* MinusToken */: + case 55 /* TildeToken */: + case 54 /* ExclamationToken */: + return parsePrefixUnaryExpression(); + case 91 /* DeleteKeyword */: + return parseDeleteExpression(); + case 114 /* TypeOfKeyword */: + return parseTypeOfExpression(); + case 116 /* VoidKeyword */: + return parseVoidExpression(); + case 30 /* LessThanToken */: + if (languageVariant === 1 /* JSX */) { + return parseJsxElementOrSelfClosingElementOrFragment( + /*inExpressionContext*/ + true, + /*topInvalidNodePosition*/ + void 0, + /*openingTag*/ + void 0, + /*mustBeUnary*/ + true + ); + } + return parseTypeAssertion(); + case 135 /* AwaitKeyword */: + if (isAwaitExpression2()) { + return parseAwaitExpression(); + } + default: + return parseUpdateExpression(); + } + } + function isUpdateExpression() { + switch (token()) { + case 40 /* PlusToken */: + case 41 /* MinusToken */: + case 55 /* TildeToken */: + case 54 /* ExclamationToken */: + case 91 /* DeleteKeyword */: + case 114 /* TypeOfKeyword */: + case 116 /* VoidKeyword */: + case 135 /* AwaitKeyword */: + return false; + case 30 /* LessThanToken */: + if (languageVariant !== 1 /* JSX */) { + return false; + } + default: + return true; + } + } + function parseUpdateExpression() { + if (token() === 46 /* PlusPlusToken */ || token() === 47 /* MinusMinusToken */) { + const pos = getNodePos(); + return finishNode(factory2.createPrefixUnaryExpression(token(), nextTokenAnd(parseLeftHandSideExpressionOrHigher)), pos); + } else if (languageVariant === 1 /* JSX */ && token() === 30 /* LessThanToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)) { + return parseJsxElementOrSelfClosingElementOrFragment( + /*inExpressionContext*/ + true + ); + } + const expression = parseLeftHandSideExpressionOrHigher(); + Debug.assert(isLeftHandSideExpression(expression)); + if ((token() === 46 /* PlusPlusToken */ || token() === 47 /* MinusMinusToken */) && !scanner.hasPrecedingLineBreak()) { + const operator = token(); + nextToken(); + return finishNode(factory2.createPostfixUnaryExpression(expression, operator), expression.pos); + } + return expression; + } + function parseLeftHandSideExpressionOrHigher() { + const pos = getNodePos(); + let expression; + if (token() === 102 /* ImportKeyword */) { + if (lookAhead(nextTokenIsOpenParenOrLessThan)) { + sourceFlags |= 4194304 /* PossiblyContainsDynamicImport */; + expression = parseTokenNode(); + } else if (lookAhead(nextTokenIsDot)) { + nextToken(); + nextToken(); + expression = finishNode(factory2.createMetaProperty(102 /* ImportKeyword */, parseIdentifierName()), pos); + sourceFlags |= 8388608 /* PossiblyContainsImportMeta */; + } else { + expression = parseMemberExpressionOrHigher(); + } + } else { + expression = token() === 108 /* SuperKeyword */ ? parseSuperExpression() : parseMemberExpressionOrHigher(); + } + return parseCallExpressionRest(pos, expression); + } + function parseMemberExpressionOrHigher() { + const pos = getNodePos(); + const expression = parsePrimaryExpression(); + return parseMemberExpressionRest( + pos, + expression, + /*allowOptionalChain*/ + true + ); + } + function parseSuperExpression() { + const pos = getNodePos(); + let expression = parseTokenNode(); + if (token() === 30 /* LessThanToken */) { + const startPos = getNodePos(); + const typeArguments = tryParse(parseTypeArgumentsInExpression); + if (typeArguments !== void 0) { + parseErrorAt(startPos, getNodePos(), Diagnostics.super_may_not_use_type_arguments); + if (!isTemplateStartOfTaggedTemplate()) { + expression = factory2.createExpressionWithTypeArguments(expression, typeArguments); + } + } + } + if (token() === 21 /* OpenParenToken */ || token() === 25 /* DotToken */ || token() === 23 /* OpenBracketToken */) { + return expression; + } + parseExpectedToken(25 /* DotToken */, Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access); + return finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot( + /*allowIdentifierNames*/ + true, + /*allowPrivateIdentifiers*/ + true, + /*allowUnicodeEscapeSequenceInIdentifierName*/ + true + )), pos); + } + function parseJsxElementOrSelfClosingElementOrFragment(inExpressionContext, topInvalidNodePosition, openingTag, mustBeUnary = false) { + const pos = getNodePos(); + const opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext); + let result; + if (opening.kind === 286 /* JsxOpeningElement */) { + let children = parseJsxChildren(opening); + let closingElement; + const lastChild = children[children.length - 1]; + if ((lastChild == null ? void 0 : lastChild.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName) && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) { + const end = lastChild.children.end; + const newLast = finishNode( + factory2.createJsxElement( + lastChild.openingElement, + lastChild.children, + finishNode(factory2.createJsxClosingElement(finishNode(factoryCreateIdentifier(""), end, end)), end, end) + ), + lastChild.openingElement.pos, + end + ); + children = createNodeArray([...children.slice(0, children.length - 1), newLast], children.pos, end); + closingElement = lastChild.closingElement; + } else { + closingElement = parseJsxClosingElement(opening, inExpressionContext); + if (!tagNamesAreEquivalent(opening.tagName, closingElement.tagName)) { + if (openingTag && isJsxOpeningElement(openingTag) && tagNamesAreEquivalent(closingElement.tagName, openingTag.tagName)) { + parseErrorAtRange(opening.tagName, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, opening.tagName)); + } else { + parseErrorAtRange(closingElement.tagName, Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, getTextOfNodeFromSourceText(sourceText, opening.tagName)); + } + } + } + result = finishNode(factory2.createJsxElement(opening, children, closingElement), pos); + } else if (opening.kind === 289 /* JsxOpeningFragment */) { + result = finishNode(factory2.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos); + } else { + Debug.assert(opening.kind === 285 /* JsxSelfClosingElement */); + result = opening; + } + if (!mustBeUnary && inExpressionContext && token() === 30 /* LessThanToken */) { + const topBadPos = typeof topInvalidNodePosition === "undefined" ? result.pos : topInvalidNodePosition; + const invalidElement = tryParse(() => parseJsxElementOrSelfClosingElementOrFragment( + /*inExpressionContext*/ + true, + topBadPos + )); + if (invalidElement) { + const operatorToken = createMissingNode( + 28 /* CommaToken */, + /*reportAtCurrentPosition*/ + false + ); + setTextRangePosWidth(operatorToken, invalidElement.pos, 0); + parseErrorAt(skipTrivia(sourceText, topBadPos), invalidElement.end, Diagnostics.JSX_expressions_must_have_one_parent_element); + return finishNode(factory2.createBinaryExpression(result, operatorToken, invalidElement), pos); + } + } + return result; + } + function parseJsxText() { + const pos = getNodePos(); + const node = factory2.createJsxText(scanner.getTokenValue(), currentToken === 13 /* JsxTextAllWhiteSpaces */); + currentToken = scanner.scanJsxToken(); + return finishNode(node, pos); + } + function parseJsxChild(openingTag, token2) { + switch (token2) { + case 1 /* EndOfFileToken */: + if (isJsxOpeningFragment(openingTag)) { + parseErrorAtRange(openingTag, Diagnostics.JSX_fragment_has_no_corresponding_closing_tag); + } else { + const tag = openingTag.tagName; + const start = Math.min(skipTrivia(sourceText, tag.pos), tag.end); + parseErrorAt(start, tag.end, Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, getTextOfNodeFromSourceText(sourceText, openingTag.tagName)); + } + return void 0; + case 31 /* LessThanSlashToken */: + case 7 /* ConflictMarkerTrivia */: + return void 0; + case 12 /* JsxText */: + case 13 /* JsxTextAllWhiteSpaces */: + return parseJsxText(); + case 19 /* OpenBraceToken */: + return parseJsxExpression( + /*inExpressionContext*/ + false + ); + case 30 /* LessThanToken */: + return parseJsxElementOrSelfClosingElementOrFragment( + /*inExpressionContext*/ + false, + /*topInvalidNodePosition*/ + void 0, + openingTag + ); + default: + return Debug.assertNever(token2); + } + } + function parseJsxChildren(openingTag) { + const list = []; + const listPos = getNodePos(); + const saveParsingContext = parsingContext; + parsingContext |= 1 << 14 /* JsxChildren */; + while (true) { + const child = parseJsxChild(openingTag, currentToken = scanner.reScanJsxToken()); + if (!child) break; + list.push(child); + if (isJsxOpeningElement(openingTag) && (child == null ? void 0 : child.kind) === 284 /* JsxElement */ && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName) && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) { + break; + } + } + parsingContext = saveParsingContext; + return createNodeArray(list, listPos); + } + function parseJsxAttributes() { + const pos = getNodePos(); + return finishNode(factory2.createJsxAttributes(parseList(13 /* JsxAttributes */, parseJsxAttribute)), pos); + } + function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext) { + const pos = getNodePos(); + parseExpected(30 /* LessThanToken */); + if (token() === 32 /* GreaterThanToken */) { + scanJsxText(); + return finishNode(factory2.createJsxOpeningFragment(), pos); + } + const tagName = parseJsxElementName(); + const typeArguments = (contextFlags & 524288 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : void 0; + const attributes = parseJsxAttributes(); + let node; + if (token() === 32 /* GreaterThanToken */) { + scanJsxText(); + node = factory2.createJsxOpeningElement(tagName, typeArguments, attributes); + } else { + parseExpected(44 /* SlashToken */); + if (parseExpected( + 32 /* GreaterThanToken */, + /*diagnosticMessage*/ + void 0, + /*shouldAdvance*/ + false + )) { + if (inExpressionContext) { + nextToken(); + } else { + scanJsxText(); + } + } + node = factory2.createJsxSelfClosingElement(tagName, typeArguments, attributes); + } + return finishNode(node, pos); + } + function parseJsxElementName() { + const pos = getNodePos(); + const initialExpression = parseJsxTagName(); + if (isJsxNamespacedName(initialExpression)) { + return initialExpression; + } + let expression = initialExpression; + while (parseOptional(25 /* DotToken */)) { + expression = finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot( + /*allowIdentifierNames*/ + true, + /*allowPrivateIdentifiers*/ + false, + /*allowUnicodeEscapeSequenceInIdentifierName*/ + false + )), pos); + } + return expression; + } + function parseJsxTagName() { + const pos = getNodePos(); + scanJsxIdentifier(); + const isThis = token() === 110 /* ThisKeyword */; + const tagName = parseIdentifierNameErrorOnUnicodeEscapeSequence(); + if (parseOptional(59 /* ColonToken */)) { + scanJsxIdentifier(); + return finishNode(factory2.createJsxNamespacedName(tagName, parseIdentifierNameErrorOnUnicodeEscapeSequence()), pos); + } + return isThis ? finishNode(factory2.createToken(110 /* ThisKeyword */), pos) : tagName; + } + function parseJsxExpression(inExpressionContext) { + const pos = getNodePos(); + if (!parseExpected(19 /* OpenBraceToken */)) { + return void 0; + } + let dotDotDotToken; + let expression; + if (token() !== 20 /* CloseBraceToken */) { + if (!inExpressionContext) { + dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); + } + expression = parseExpression(); + } + if (inExpressionContext) { + parseExpected(20 /* CloseBraceToken */); + } else { + if (parseExpected( + 20 /* CloseBraceToken */, + /*diagnosticMessage*/ + void 0, + /*shouldAdvance*/ + false + )) { + scanJsxText(); + } + } + return finishNode(factory2.createJsxExpression(dotDotDotToken, expression), pos); + } + function parseJsxAttribute() { + if (token() === 19 /* OpenBraceToken */) { + return parseJsxSpreadAttribute(); + } + const pos = getNodePos(); + return finishNode(factory2.createJsxAttribute(parseJsxAttributeName(), parseJsxAttributeValue()), pos); + } + function parseJsxAttributeValue() { + if (token() === 64 /* EqualsToken */) { + if (scanJsxAttributeValue() === 11 /* StringLiteral */) { + return parseLiteralNode(); + } + if (token() === 19 /* OpenBraceToken */) { + return parseJsxExpression( + /*inExpressionContext*/ + true + ); + } + if (token() === 30 /* LessThanToken */) { + return parseJsxElementOrSelfClosingElementOrFragment( + /*inExpressionContext*/ + true + ); + } + parseErrorAtCurrentToken(Diagnostics.or_JSX_element_expected); + } + return void 0; + } + function parseJsxAttributeName() { + const pos = getNodePos(); + scanJsxIdentifier(); + const attrName = parseIdentifierNameErrorOnUnicodeEscapeSequence(); + if (parseOptional(59 /* ColonToken */)) { + scanJsxIdentifier(); + return finishNode(factory2.createJsxNamespacedName(attrName, parseIdentifierNameErrorOnUnicodeEscapeSequence()), pos); + } + return attrName; + } + function parseJsxSpreadAttribute() { + const pos = getNodePos(); + parseExpected(19 /* OpenBraceToken */); + parseExpected(26 /* DotDotDotToken */); + const expression = parseExpression(); + parseExpected(20 /* CloseBraceToken */); + return finishNode(factory2.createJsxSpreadAttribute(expression), pos); + } + function parseJsxClosingElement(open, inExpressionContext) { + const pos = getNodePos(); + parseExpected(31 /* LessThanSlashToken */); + const tagName = parseJsxElementName(); + if (parseExpected( + 32 /* GreaterThanToken */, + /*diagnosticMessage*/ + void 0, + /*shouldAdvance*/ + false + )) { + if (inExpressionContext || !tagNamesAreEquivalent(open.tagName, tagName)) { + nextToken(); + } else { + scanJsxText(); + } + } + return finishNode(factory2.createJsxClosingElement(tagName), pos); + } + function parseJsxClosingFragment(inExpressionContext) { + const pos = getNodePos(); + parseExpected(31 /* LessThanSlashToken */); + if (parseExpected( + 32 /* GreaterThanToken */, + Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment, + /*shouldAdvance*/ + false + )) { + if (inExpressionContext) { + nextToken(); + } else { + scanJsxText(); + } + } + return finishNode(factory2.createJsxJsxClosingFragment(), pos); + } + function parseTypeAssertion() { + Debug.assert(languageVariant !== 1 /* JSX */, "Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments."); + const pos = getNodePos(); + parseExpected(30 /* LessThanToken */); + const type = parseType(); + parseExpected(32 /* GreaterThanToken */); + const expression = parseSimpleUnaryExpression(); + return finishNode(factory2.createTypeAssertion(type, expression), pos); + } + function nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate() { + nextToken(); + return tokenIsIdentifierOrKeyword(token()) || token() === 23 /* OpenBracketToken */ || isTemplateStartOfTaggedTemplate(); + } + function isStartOfOptionalPropertyOrElementAccessChain() { + return token() === 29 /* QuestionDotToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate); + } + function tryReparseOptionalChain(node) { + if (node.flags & 64 /* OptionalChain */) { + return true; + } + if (isNonNullExpression(node)) { + let expr = node.expression; + while (isNonNullExpression(expr) && !(expr.flags & 64 /* OptionalChain */)) { + expr = expr.expression; + } + if (expr.flags & 64 /* OptionalChain */) { + while (isNonNullExpression(node)) { + node.flags |= 64 /* OptionalChain */; + node = node.expression; + } + return true; + } + } + return false; + } + function parsePropertyAccessExpressionRest(pos, expression, questionDotToken) { + const name = parseRightSideOfDot( + /*allowIdentifierNames*/ + true, + /*allowPrivateIdentifiers*/ + true, + /*allowUnicodeEscapeSequenceInIdentifierName*/ + true + ); + const isOptionalChain2 = questionDotToken || tryReparseOptionalChain(expression); + const propertyAccess = isOptionalChain2 ? factoryCreatePropertyAccessChain(expression, questionDotToken, name) : factoryCreatePropertyAccessExpression(expression, name); + if (isOptionalChain2 && isPrivateIdentifier(propertyAccess.name)) { + parseErrorAtRange(propertyAccess.name, Diagnostics.An_optional_chain_cannot_contain_private_identifiers); + } + if (isExpressionWithTypeArguments(expression) && expression.typeArguments) { + const pos2 = expression.typeArguments.pos - 1; + const end = skipTrivia(sourceText, expression.typeArguments.end) + 1; + parseErrorAt(pos2, end, Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access); + } + return finishNode(propertyAccess, pos); + } + function parseElementAccessExpressionRest(pos, expression, questionDotToken) { + let argumentExpression; + if (token() === 24 /* CloseBracketToken */) { + argumentExpression = createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.An_element_access_expression_should_take_an_argument + ); + } else { + const argument = allowInAnd(parseExpression); + if (isStringOrNumericLiteralLike(argument)) { + argument.text = internIdentifier(argument.text); + } + argumentExpression = argument; + } + parseExpected(24 /* CloseBracketToken */); + const indexedAccess = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateElementAccessChain(expression, questionDotToken, argumentExpression) : factoryCreateElementAccessExpression(expression, argumentExpression); + return finishNode(indexedAccess, pos); + } + function parseMemberExpressionRest(pos, expression, allowOptionalChain) { + while (true) { + let questionDotToken; + let isPropertyAccess = false; + if (allowOptionalChain && isStartOfOptionalPropertyOrElementAccessChain()) { + questionDotToken = parseExpectedToken(29 /* QuestionDotToken */); + isPropertyAccess = tokenIsIdentifierOrKeyword(token()); + } else { + isPropertyAccess = parseOptional(25 /* DotToken */); + } + if (isPropertyAccess) { + expression = parsePropertyAccessExpressionRest(pos, expression, questionDotToken); + continue; + } + if ((questionDotToken || !inDecoratorContext()) && parseOptional(23 /* OpenBracketToken */)) { + expression = parseElementAccessExpressionRest(pos, expression, questionDotToken); + continue; + } + if (isTemplateStartOfTaggedTemplate()) { + expression = !questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */ ? parseTaggedTemplateRest(pos, expression.expression, questionDotToken, expression.typeArguments) : parseTaggedTemplateRest( + pos, + expression, + questionDotToken, + /*typeArguments*/ + void 0 + ); + continue; + } + if (!questionDotToken) { + if (token() === 54 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) { + nextToken(); + expression = finishNode(factory2.createNonNullExpression(expression), pos); + continue; + } + const typeArguments = tryParse(parseTypeArgumentsInExpression); + if (typeArguments) { + expression = finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos); + continue; + } + } + return expression; + } + } + function isTemplateStartOfTaggedTemplate() { + return token() === 15 /* NoSubstitutionTemplateLiteral */ || token() === 16 /* TemplateHead */; + } + function parseTaggedTemplateRest(pos, tag, questionDotToken, typeArguments) { + const tagExpression = factory2.createTaggedTemplateExpression( + tag, + typeArguments, + token() === 15 /* NoSubstitutionTemplateLiteral */ ? (reScanTemplateToken( + /*isTaggedTemplate*/ + true + ), parseLiteralNode()) : parseTemplateExpression( + /*isTaggedTemplate*/ + true + ) + ); + if (questionDotToken || tag.flags & 64 /* OptionalChain */) { + tagExpression.flags |= 64 /* OptionalChain */; + } + tagExpression.questionDotToken = questionDotToken; + return finishNode(tagExpression, pos); + } + function parseCallExpressionRest(pos, expression) { + while (true) { + expression = parseMemberExpressionRest( + pos, + expression, + /*allowOptionalChain*/ + true + ); + let typeArguments; + const questionDotToken = parseOptionalToken(29 /* QuestionDotToken */); + if (questionDotToken) { + typeArguments = tryParse(parseTypeArgumentsInExpression); + if (isTemplateStartOfTaggedTemplate()) { + expression = parseTaggedTemplateRest(pos, expression, questionDotToken, typeArguments); + continue; + } + } + if (typeArguments || token() === 21 /* OpenParenToken */) { + if (!questionDotToken && expression.kind === 233 /* ExpressionWithTypeArguments */) { + typeArguments = expression.typeArguments; + expression = expression.expression; + } + const argumentList = parseArgumentList(); + const callExpr = questionDotToken || tryReparseOptionalChain(expression) ? factoryCreateCallChain(expression, questionDotToken, typeArguments, argumentList) : factoryCreateCallExpression(expression, typeArguments, argumentList); + expression = finishNode(callExpr, pos); + continue; + } + if (questionDotToken) { + const name = createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + false, + Diagnostics.Identifier_expected + ); + expression = finishNode(factoryCreatePropertyAccessChain(expression, questionDotToken, name), pos); + } + break; + } + return expression; + } + function parseArgumentList() { + parseExpected(21 /* OpenParenToken */); + const result = parseDelimitedList(11 /* ArgumentExpressions */, parseArgumentExpression); + parseExpected(22 /* CloseParenToken */); + return result; + } + function parseTypeArgumentsInExpression() { + if ((contextFlags & 524288 /* JavaScriptFile */) !== 0) { + return void 0; + } + if (reScanLessThanToken() !== 30 /* LessThanToken */) { + return void 0; + } + nextToken(); + const typeArguments = parseDelimitedList(20 /* TypeArguments */, parseType); + if (reScanGreaterToken() !== 32 /* GreaterThanToken */) { + return void 0; + } + nextToken(); + return typeArguments && canFollowTypeArgumentsInExpression() ? typeArguments : void 0; + } + function canFollowTypeArgumentsInExpression() { + switch (token()) { + case 21 /* OpenParenToken */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + return true; + case 30 /* LessThanToken */: + case 32 /* GreaterThanToken */: + case 40 /* PlusToken */: + case 41 /* MinusToken */: + return false; + } + return scanner.hasPrecedingLineBreak() || isBinaryOperator2() || !isStartOfExpression(); + } + function parsePrimaryExpression() { + switch (token()) { + case 15 /* NoSubstitutionTemplateLiteral */: + if (scanner.getTokenFlags() & 26656 /* IsInvalid */) { + reScanTemplateToken( + /*isTaggedTemplate*/ + false + ); + } + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 11 /* StringLiteral */: + return parseLiteralNode(); + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 106 /* NullKeyword */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + return parseTokenNode(); + case 21 /* OpenParenToken */: + return parseParenthesizedExpression(); + case 23 /* OpenBracketToken */: + return parseArrayLiteralExpression(); + case 19 /* OpenBraceToken */: + return parseObjectLiteralExpression(); + case 134 /* AsyncKeyword */: + if (!lookAhead(nextTokenIsFunctionKeywordOnSameLine)) { + break; + } + return parseFunctionExpression(); + case 60 /* AtToken */: + return parseDecoratedExpression(); + case 86 /* ClassKeyword */: + return parseClassExpression(); + case 100 /* FunctionKeyword */: + return parseFunctionExpression(); + case 105 /* NewKeyword */: + return parseNewExpressionOrNewDotTarget(); + case 44 /* SlashToken */: + case 69 /* SlashEqualsToken */: + if (reScanSlashToken() === 14 /* RegularExpressionLiteral */) { + return parseLiteralNode(); + } + break; + case 16 /* TemplateHead */: + return parseTemplateExpression( + /*isTaggedTemplate*/ + false + ); + case 81 /* PrivateIdentifier */: + return parsePrivateIdentifier(); + } + return parseIdentifier(Diagnostics.Expression_expected); + } + function parseParenthesizedExpression() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpected(22 /* CloseParenToken */); + return withJSDoc(finishNode(factoryCreateParenthesizedExpression(expression), pos), hasJSDoc); + } + function parseSpreadElement() { + const pos = getNodePos(); + parseExpected(26 /* DotDotDotToken */); + const expression = parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + return finishNode(factory2.createSpreadElement(expression), pos); + } + function parseArgumentOrArrayLiteralElement() { + return token() === 26 /* DotDotDotToken */ ? parseSpreadElement() : token() === 28 /* CommaToken */ ? finishNode(factory2.createOmittedExpression(), getNodePos()) : parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + } + function parseArgumentExpression() { + return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement); + } + function parseArrayLiteralExpression() { + const pos = getNodePos(); + const openBracketPosition = scanner.getTokenStart(); + const openBracketParsed = parseExpected(23 /* OpenBracketToken */); + const multiLine = scanner.hasPrecedingLineBreak(); + const elements = parseDelimitedList(15 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement); + parseExpectedMatchingBrackets(23 /* OpenBracketToken */, 24 /* CloseBracketToken */, openBracketParsed, openBracketPosition); + return finishNode(factoryCreateArrayLiteralExpression(elements, multiLine), pos); + } + function parseObjectLiteralElement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + if (parseOptionalToken(26 /* DotDotDotToken */)) { + const expression = parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + return withJSDoc(finishNode(factory2.createSpreadAssignment(expression), pos), hasJSDoc); + } + const modifiers = parseModifiers( + /*allowDecorators*/ + true + ); + if (parseContextualModifier(139 /* GetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); + } + if (parseContextualModifier(153 /* SetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); + } + const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); + const tokenIsIdentifier = isIdentifier2(); + const name = parsePropertyName(); + const questionToken = parseOptionalToken(58 /* QuestionToken */); + const exclamationToken = parseOptionalToken(54 /* ExclamationToken */); + if (asteriskToken || token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { + return parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken); + } + let node; + const isShorthandPropertyAssignment2 = tokenIsIdentifier && token() !== 59 /* ColonToken */; + if (isShorthandPropertyAssignment2) { + const equalsToken = parseOptionalToken(64 /* EqualsToken */); + const objectAssignmentInitializer = equalsToken ? allowInAnd(() => parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + )) : void 0; + node = factory2.createShorthandPropertyAssignment(name, objectAssignmentInitializer); + node.equalsToken = equalsToken; + } else { + parseExpected(59 /* ColonToken */); + const initializer = allowInAnd(() => parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + )); + node = factory2.createPropertyAssignment(name, initializer); + } + node.modifiers = modifiers; + node.questionToken = questionToken; + node.exclamationToken = exclamationToken; + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseObjectLiteralExpression() { + const pos = getNodePos(); + const openBracePosition = scanner.getTokenStart(); + const openBraceParsed = parseExpected(19 /* OpenBraceToken */); + const multiLine = scanner.hasPrecedingLineBreak(); + const properties = parseDelimitedList( + 12 /* ObjectLiteralMembers */, + parseObjectLiteralElement, + /*considerSemicolonAsDelimiter*/ + true + ); + parseExpectedMatchingBrackets(19 /* OpenBraceToken */, 20 /* CloseBraceToken */, openBraceParsed, openBracePosition); + return finishNode(factoryCreateObjectLiteralExpression(properties, multiLine), pos); + } + function parseFunctionExpression() { + const savedDecoratorContext = inDecoratorContext(); + setDecoratorContext( + /*val*/ + false + ); + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiers( + /*allowDecorators*/ + false + ); + parseExpected(100 /* FunctionKeyword */); + const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); + const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; + const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; + const name = isGenerator && isAsync ? doInYieldAndAwaitContext(parseOptionalBindingIdentifier) : isGenerator ? doInYieldContext(parseOptionalBindingIdentifier) : isAsync ? doInAwaitContext(parseOptionalBindingIdentifier) : parseOptionalBindingIdentifier(); + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(isGenerator | isAsync); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + const body = parseFunctionBlock(isGenerator | isAsync); + setDecoratorContext(savedDecoratorContext); + const node = factory2.createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseOptionalBindingIdentifier() { + return isBindingIdentifier() ? parseBindingIdentifier() : void 0; + } + function parseNewExpressionOrNewDotTarget() { + const pos = getNodePos(); + parseExpected(105 /* NewKeyword */); + if (parseOptional(25 /* DotToken */)) { + const name = parseIdentifierName(); + return finishNode(factory2.createMetaProperty(105 /* NewKeyword */, name), pos); + } + const expressionPos = getNodePos(); + let expression = parseMemberExpressionRest( + expressionPos, + parsePrimaryExpression(), + /*allowOptionalChain*/ + false + ); + let typeArguments; + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { + typeArguments = expression.typeArguments; + expression = expression.expression; + } + if (token() === 29 /* QuestionDotToken */) { + parseErrorAtCurrentToken(Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0, getTextOfNodeFromSourceText(sourceText, expression)); + } + const argumentList = token() === 21 /* OpenParenToken */ ? parseArgumentList() : void 0; + return finishNode(factoryCreateNewExpression(expression, typeArguments, argumentList), pos); + } + function parseBlock(ignoreMissingOpenBrace, diagnosticMessage) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const openBracePosition = scanner.getTokenStart(); + const openBraceParsed = parseExpected(19 /* OpenBraceToken */, diagnosticMessage); + if (openBraceParsed || ignoreMissingOpenBrace) { + const multiLine = scanner.hasPrecedingLineBreak(); + const statements = parseList(1 /* BlockStatements */, parseStatement); + parseExpectedMatchingBrackets(19 /* OpenBraceToken */, 20 /* CloseBraceToken */, openBraceParsed, openBracePosition); + const result = withJSDoc(finishNode(factoryCreateBlock(statements, multiLine), pos), hasJSDoc); + if (token() === 64 /* EqualsToken */) { + parseErrorAtCurrentToken(Diagnostics.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); + nextToken(); + } + return result; + } else { + const statements = createMissingList(); + return withJSDoc(finishNode(factoryCreateBlock( + statements, + /*multiLine*/ + void 0 + ), pos), hasJSDoc); + } + } + function parseFunctionBlock(flags, diagnosticMessage) { + const savedYieldContext = inYieldContext(); + setYieldContext(!!(flags & 1 /* Yield */)); + const savedAwaitContext = inAwaitContext(); + setAwaitContext(!!(flags & 2 /* Await */)); + const savedTopLevel = topLevel; + topLevel = false; + const saveDecoratorContext = inDecoratorContext(); + if (saveDecoratorContext) { + setDecoratorContext( + /*val*/ + false + ); + } + const block = parseBlock(!!(flags & 16 /* IgnoreMissingOpenBrace */), diagnosticMessage); + if (saveDecoratorContext) { + setDecoratorContext( + /*val*/ + true + ); + } + topLevel = savedTopLevel; + setYieldContext(savedYieldContext); + setAwaitContext(savedAwaitContext); + return block; + } + function parseEmptyStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(27 /* SemicolonToken */); + return withJSDoc(finishNode(factory2.createEmptyStatement(), pos), hasJSDoc); + } + function parseIfStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(101 /* IfKeyword */); + const openParenPosition = scanner.getTokenStart(); + const openParenParsed = parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); + const thenStatement = parseStatement(); + const elseStatement = parseOptional(93 /* ElseKeyword */) ? parseStatement() : void 0; + return withJSDoc(finishNode(factoryCreateIfStatement(expression, thenStatement, elseStatement), pos), hasJSDoc); + } + function parseDoStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(92 /* DoKeyword */); + const statement = parseStatement(); + parseExpected(117 /* WhileKeyword */); + const openParenPosition = scanner.getTokenStart(); + const openParenParsed = parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); + parseOptional(27 /* SemicolonToken */); + return withJSDoc(finishNode(factory2.createDoStatement(statement, expression), pos), hasJSDoc); + } + function parseWhileStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(117 /* WhileKeyword */); + const openParenPosition = scanner.getTokenStart(); + const openParenParsed = parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); + const statement = parseStatement(); + return withJSDoc(finishNode(factoryCreateWhileStatement(expression, statement), pos), hasJSDoc); + } + function parseForOrForInOrForOfStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(99 /* ForKeyword */); + const awaitToken = parseOptionalToken(135 /* AwaitKeyword */); + parseExpected(21 /* OpenParenToken */); + let initializer; + if (token() !== 27 /* SemicolonToken */) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of + token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { + initializer = parseVariableDeclarationList( + /*inForStatementInitializer*/ + true + ); + } else { + initializer = disallowInAnd(parseExpression); + } + } + let node; + if (awaitToken ? parseExpected(165 /* OfKeyword */) : parseOptional(165 /* OfKeyword */)) { + const expression = allowInAnd(() => parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + )); + parseExpected(22 /* CloseParenToken */); + node = factoryCreateForOfStatement(awaitToken, initializer, expression, parseStatement()); + } else if (parseOptional(103 /* InKeyword */)) { + const expression = allowInAnd(parseExpression); + parseExpected(22 /* CloseParenToken */); + node = factory2.createForInStatement(initializer, expression, parseStatement()); + } else { + parseExpected(27 /* SemicolonToken */); + const condition = token() !== 27 /* SemicolonToken */ && token() !== 22 /* CloseParenToken */ ? allowInAnd(parseExpression) : void 0; + parseExpected(27 /* SemicolonToken */); + const incrementor = token() !== 22 /* CloseParenToken */ ? allowInAnd(parseExpression) : void 0; + parseExpected(22 /* CloseParenToken */); + node = factoryCreateForStatement(initializer, condition, incrementor, parseStatement()); + } + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseBreakOrContinueStatement(kind) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(kind === 252 /* BreakStatement */ ? 83 /* BreakKeyword */ : 88 /* ContinueKeyword */); + const label = canParseSemicolon() ? void 0 : parseIdentifier(); + parseSemicolon(); + const node = kind === 252 /* BreakStatement */ ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseReturnStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(107 /* ReturnKeyword */); + const expression = canParseSemicolon() ? void 0 : allowInAnd(parseExpression); + parseSemicolon(); + return withJSDoc(finishNode(factory2.createReturnStatement(expression), pos), hasJSDoc); + } + function parseWithStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(118 /* WithKeyword */); + const openParenPosition = scanner.getTokenStart(); + const openParenParsed = parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpectedMatchingBrackets(21 /* OpenParenToken */, 22 /* CloseParenToken */, openParenParsed, openParenPosition); + const statement = doInsideOfContext(67108864 /* InWithStatement */, parseStatement); + return withJSDoc(finishNode(factory2.createWithStatement(expression, statement), pos), hasJSDoc); + } + function parseCaseClause() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(84 /* CaseKeyword */); + const expression = allowInAnd(parseExpression); + parseExpected(59 /* ColonToken */); + const statements = parseList(3 /* SwitchClauseStatements */, parseStatement); + return withJSDoc(finishNode(factory2.createCaseClause(expression, statements), pos), hasJSDoc); + } + function parseDefaultClause() { + const pos = getNodePos(); + parseExpected(90 /* DefaultKeyword */); + parseExpected(59 /* ColonToken */); + const statements = parseList(3 /* SwitchClauseStatements */, parseStatement); + return finishNode(factory2.createDefaultClause(statements), pos); + } + function parseCaseOrDefaultClause() { + return token() === 84 /* CaseKeyword */ ? parseCaseClause() : parseDefaultClause(); + } + function parseCaseBlock() { + const pos = getNodePos(); + parseExpected(19 /* OpenBraceToken */); + const clauses = parseList(2 /* SwitchClauses */, parseCaseOrDefaultClause); + parseExpected(20 /* CloseBraceToken */); + return finishNode(factory2.createCaseBlock(clauses), pos); + } + function parseSwitchStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(109 /* SwitchKeyword */); + parseExpected(21 /* OpenParenToken */); + const expression = allowInAnd(parseExpression); + parseExpected(22 /* CloseParenToken */); + const caseBlock = parseCaseBlock(); + return withJSDoc(finishNode(factory2.createSwitchStatement(expression, caseBlock), pos), hasJSDoc); + } + function parseThrowStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(111 /* ThrowKeyword */); + let expression = scanner.hasPrecedingLineBreak() ? void 0 : allowInAnd(parseExpression); + if (expression === void 0) { + identifierCount++; + expression = finishNode(factoryCreateIdentifier(""), getNodePos()); + } + if (!tryParseSemicolon()) { + parseErrorForMissingSemicolonAfter(expression); + } + return withJSDoc(finishNode(factory2.createThrowStatement(expression), pos), hasJSDoc); + } + function parseTryStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(113 /* TryKeyword */); + const tryBlock = parseBlock( + /*ignoreMissingOpenBrace*/ + false + ); + const catchClause = token() === 85 /* CatchKeyword */ ? parseCatchClause() : void 0; + let finallyBlock; + if (!catchClause || token() === 98 /* FinallyKeyword */) { + parseExpected(98 /* FinallyKeyword */, Diagnostics.catch_or_finally_expected); + finallyBlock = parseBlock( + /*ignoreMissingOpenBrace*/ + false + ); + } + return withJSDoc(finishNode(factory2.createTryStatement(tryBlock, catchClause, finallyBlock), pos), hasJSDoc); + } + function parseCatchClause() { + const pos = getNodePos(); + parseExpected(85 /* CatchKeyword */); + let variableDeclaration; + if (parseOptional(21 /* OpenParenToken */)) { + variableDeclaration = parseVariableDeclaration(); + parseExpected(22 /* CloseParenToken */); + } else { + variableDeclaration = void 0; + } + const block = parseBlock( + /*ignoreMissingOpenBrace*/ + false + ); + return finishNode(factory2.createCatchClause(variableDeclaration, block), pos); + } + function parseDebuggerStatement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + parseExpected(89 /* DebuggerKeyword */); + parseSemicolon(); + return withJSDoc(finishNode(factory2.createDebuggerStatement(), pos), hasJSDoc); + } + function parseExpressionOrLabeledStatement() { + const pos = getNodePos(); + let hasJSDoc = hasPrecedingJSDocComment(); + let node; + const hasParen = token() === 21 /* OpenParenToken */; + const expression = allowInAnd(parseExpression); + if (isIdentifier(expression) && parseOptional(59 /* ColonToken */)) { + node = factory2.createLabeledStatement(expression, parseStatement()); + } else { + if (!tryParseSemicolon()) { + parseErrorForMissingSemicolonAfter(expression); + } + node = factoryCreateExpressionStatement(expression); + if (hasParen) { + hasJSDoc = false; + } + } + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function nextTokenIsIdentifierOrKeywordOnSameLine() { + nextToken(); + return tokenIsIdentifierOrKeyword(token()) && !scanner.hasPrecedingLineBreak(); + } + function nextTokenIsClassKeywordOnSameLine() { + nextToken(); + return token() === 86 /* ClassKeyword */ && !scanner.hasPrecedingLineBreak(); + } + function nextTokenIsFunctionKeywordOnSameLine() { + nextToken(); + return token() === 100 /* FunctionKeyword */ && !scanner.hasPrecedingLineBreak(); + } + function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() { + nextToken(); + return (tokenIsIdentifierOrKeyword(token()) || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */ || token() === 11 /* StringLiteral */) && !scanner.hasPrecedingLineBreak(); + } + function isDeclaration2() { + while (true) { + switch (token()) { + case 115 /* VarKeyword */: + case 121 /* LetKeyword */: + case 87 /* ConstKeyword */: + case 100 /* FunctionKeyword */: + case 86 /* ClassKeyword */: + case 94 /* EnumKeyword */: + return true; + case 160 /* UsingKeyword */: + return isUsingDeclaration(); + case 135 /* AwaitKeyword */: + return isAwaitUsingDeclaration(); + case 120 /* InterfaceKeyword */: + case 156 /* TypeKeyword */: + return nextTokenIsIdentifierOnSameLine(); + case 144 /* ModuleKeyword */: + case 145 /* NamespaceKeyword */: + return nextTokenIsIdentifierOrStringLiteralOnSameLine(); + case 128 /* AbstractKeyword */: + case 129 /* AccessorKeyword */: + case 134 /* AsyncKeyword */: + case 138 /* DeclareKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 125 /* PublicKeyword */: + case 148 /* ReadonlyKeyword */: + const previousToken = token(); + nextToken(); + if (scanner.hasPrecedingLineBreak()) { + return false; + } + if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) { + return true; + } + continue; + case 162 /* GlobalKeyword */: + nextToken(); + return token() === 19 /* OpenBraceToken */ || token() === 80 /* Identifier */ || token() === 95 /* ExportKeyword */; + case 102 /* ImportKeyword */: + nextToken(); + return token() === 11 /* StringLiteral */ || token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */ || tokenIsIdentifierOrKeyword(token()); + case 95 /* ExportKeyword */: + let currentToken2 = nextToken(); + if (currentToken2 === 156 /* TypeKeyword */) { + currentToken2 = lookAhead(nextToken); + } + if (currentToken2 === 64 /* EqualsToken */ || currentToken2 === 42 /* AsteriskToken */ || currentToken2 === 19 /* OpenBraceToken */ || currentToken2 === 90 /* DefaultKeyword */ || currentToken2 === 130 /* AsKeyword */ || currentToken2 === 60 /* AtToken */) { + return true; + } + continue; + case 126 /* StaticKeyword */: + nextToken(); + continue; + default: + return false; + } + } + } + function isStartOfDeclaration() { + return lookAhead(isDeclaration2); + } + function isStartOfStatement() { + switch (token()) { + case 60 /* AtToken */: + case 27 /* SemicolonToken */: + case 19 /* OpenBraceToken */: + case 115 /* VarKeyword */: + case 121 /* LetKeyword */: + case 160 /* UsingKeyword */: + case 100 /* FunctionKeyword */: + case 86 /* ClassKeyword */: + case 94 /* EnumKeyword */: + case 101 /* IfKeyword */: + case 92 /* DoKeyword */: + case 117 /* WhileKeyword */: + case 99 /* ForKeyword */: + case 88 /* ContinueKeyword */: + case 83 /* BreakKeyword */: + case 107 /* ReturnKeyword */: + case 118 /* WithKeyword */: + case 109 /* SwitchKeyword */: + case 111 /* ThrowKeyword */: + case 113 /* TryKeyword */: + case 89 /* DebuggerKeyword */: + case 85 /* CatchKeyword */: + case 98 /* FinallyKeyword */: + return true; + case 102 /* ImportKeyword */: + return isStartOfDeclaration() || lookAhead(nextTokenIsOpenParenOrLessThanOrDot); + case 87 /* ConstKeyword */: + case 95 /* ExportKeyword */: + return isStartOfDeclaration(); + case 134 /* AsyncKeyword */: + case 138 /* DeclareKeyword */: + case 120 /* InterfaceKeyword */: + case 144 /* ModuleKeyword */: + case 145 /* NamespaceKeyword */: + case 156 /* TypeKeyword */: + case 162 /* GlobalKeyword */: + return true; + case 129 /* AccessorKeyword */: + case 125 /* PublicKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 126 /* StaticKeyword */: + case 148 /* ReadonlyKeyword */: + return isStartOfDeclaration() || !lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine); + default: + return isStartOfExpression(); + } + } + function nextTokenIsBindingIdentifierOrStartOfDestructuring() { + nextToken(); + return isBindingIdentifier() || token() === 19 /* OpenBraceToken */ || token() === 23 /* OpenBracketToken */; + } + function isLetDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf() { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( + /*disallowOf*/ + true + ); + } + function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) { + nextToken(); + if (disallowOf && token() === 165 /* OfKeyword */) return false; + return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner.hasPrecedingLineBreak(); + } + function isUsingDeclaration() { + return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); + } + function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { + if (nextToken() === 160 /* UsingKeyword */) { + return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); + } + return false; + } + function isAwaitUsingDeclaration() { + return lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine); + } + function parseStatement() { + switch (token()) { + case 27 /* SemicolonToken */: + return parseEmptyStatement(); + case 19 /* OpenBraceToken */: + return parseBlock( + /*ignoreMissingOpenBrace*/ + false + ); + case 115 /* VarKeyword */: + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + case 121 /* LetKeyword */: + if (isLetDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 135 /* AwaitKeyword */: + if (isAwaitUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 160 /* UsingKeyword */: + if (isUsingDeclaration()) { + return parseVariableStatement( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + } + break; + case 100 /* FunctionKeyword */: + return parseFunctionDeclaration( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + case 86 /* ClassKeyword */: + return parseClassDeclaration( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0 + ); + case 101 /* IfKeyword */: + return parseIfStatement(); + case 92 /* DoKeyword */: + return parseDoStatement(); + case 117 /* WhileKeyword */: + return parseWhileStatement(); + case 99 /* ForKeyword */: + return parseForOrForInOrForOfStatement(); + case 88 /* ContinueKeyword */: + return parseBreakOrContinueStatement(251 /* ContinueStatement */); + case 83 /* BreakKeyword */: + return parseBreakOrContinueStatement(252 /* BreakStatement */); + case 107 /* ReturnKeyword */: + return parseReturnStatement(); + case 118 /* WithKeyword */: + return parseWithStatement(); + case 109 /* SwitchKeyword */: + return parseSwitchStatement(); + case 111 /* ThrowKeyword */: + return parseThrowStatement(); + case 113 /* TryKeyword */: + case 85 /* CatchKeyword */: + case 98 /* FinallyKeyword */: + return parseTryStatement(); + case 89 /* DebuggerKeyword */: + return parseDebuggerStatement(); + case 60 /* AtToken */: + return parseDeclaration(); + case 134 /* AsyncKeyword */: + case 120 /* InterfaceKeyword */: + case 156 /* TypeKeyword */: + case 144 /* ModuleKeyword */: + case 145 /* NamespaceKeyword */: + case 138 /* DeclareKeyword */: + case 87 /* ConstKeyword */: + case 94 /* EnumKeyword */: + case 95 /* ExportKeyword */: + case 102 /* ImportKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 125 /* PublicKeyword */: + case 128 /* AbstractKeyword */: + case 129 /* AccessorKeyword */: + case 126 /* StaticKeyword */: + case 148 /* ReadonlyKeyword */: + case 162 /* GlobalKeyword */: + if (isStartOfDeclaration()) { + return parseDeclaration(); + } + break; + } + return parseExpressionOrLabeledStatement(); + } + function isDeclareModifier(modifier) { + return modifier.kind === 138 /* DeclareKeyword */; + } + function parseDeclaration() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiers( + /*allowDecorators*/ + true + ); + const isAmbient = some(modifiers, isDeclareModifier); + if (isAmbient) { + const node = tryReuseAmbientDeclaration(pos); + if (node) { + return node; + } + for (const m of modifiers) { + m.flags |= 33554432 /* Ambient */; + } + return doInsideOfContext(33554432 /* Ambient */, () => parseDeclarationWorker(pos, hasJSDoc, modifiers)); + } else { + return parseDeclarationWorker(pos, hasJSDoc, modifiers); + } + } + function tryReuseAmbientDeclaration(pos) { + return doInsideOfContext(33554432 /* Ambient */, () => { + const node = currentNode(parsingContext, pos); + if (node) { + return consumeNode(node); + } + }); + } + function parseDeclarationWorker(pos, hasJSDoc, modifiersIn) { + switch (token()) { + case 115 /* VarKeyword */: + case 121 /* LetKeyword */: + case 87 /* ConstKeyword */: + case 160 /* UsingKeyword */: + case 135 /* AwaitKeyword */: + return parseVariableStatement(pos, hasJSDoc, modifiersIn); + case 100 /* FunctionKeyword */: + return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn); + case 86 /* ClassKeyword */: + return parseClassDeclaration(pos, hasJSDoc, modifiersIn); + case 120 /* InterfaceKeyword */: + return parseInterfaceDeclaration(pos, hasJSDoc, modifiersIn); + case 156 /* TypeKeyword */: + return parseTypeAliasDeclaration(pos, hasJSDoc, modifiersIn); + case 94 /* EnumKeyword */: + return parseEnumDeclaration(pos, hasJSDoc, modifiersIn); + case 162 /* GlobalKeyword */: + case 144 /* ModuleKeyword */: + case 145 /* NamespaceKeyword */: + return parseModuleDeclaration(pos, hasJSDoc, modifiersIn); + case 102 /* ImportKeyword */: + return parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiersIn); + case 95 /* ExportKeyword */: + nextToken(); + switch (token()) { + case 90 /* DefaultKeyword */: + case 64 /* EqualsToken */: + return parseExportAssignment(pos, hasJSDoc, modifiersIn); + case 130 /* AsKeyword */: + return parseNamespaceExportDeclaration(pos, hasJSDoc, modifiersIn); + default: + return parseExportDeclaration(pos, hasJSDoc, modifiersIn); + } + default: + if (modifiersIn) { + const missing = createMissingNode( + 282 /* MissingDeclaration */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.Declaration_expected + ); + setTextRangePos(missing, pos); + missing.modifiers = modifiersIn; + return missing; + } + return void 0; + } + } + function nextTokenIsStringLiteral() { + return nextToken() === 11 /* StringLiteral */; + } + function nextTokenIsFromKeywordOrEqualsToken() { + nextToken(); + return token() === 161 /* FromKeyword */ || token() === 64 /* EqualsToken */; + } + function nextTokenIsIdentifierOrStringLiteralOnSameLine() { + nextToken(); + return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */); + } + function parseFunctionBlockOrSemicolon(flags, diagnosticMessage) { + if (token() !== 19 /* OpenBraceToken */) { + if (flags & 4 /* Type */) { + parseTypeMemberSemicolon(); + return; + } + if (canParseSemicolon()) { + parseSemicolon(); + return; + } + } + return parseFunctionBlock(flags, diagnosticMessage); + } + function parseArrayBindingElement() { + const pos = getNodePos(); + if (token() === 28 /* CommaToken */) { + return finishNode(factory2.createOmittedExpression(), pos); + } + const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); + const name = parseIdentifierOrPattern(); + const initializer = parseInitializer(); + return finishNode(factory2.createBindingElement( + dotDotDotToken, + /*propertyName*/ + void 0, + name, + initializer + ), pos); + } + function parseObjectBindingElement() { + const pos = getNodePos(); + const dotDotDotToken = parseOptionalToken(26 /* DotDotDotToken */); + const tokenIsIdentifier = isBindingIdentifier(); + let propertyName = parsePropertyName(); + let name; + if (tokenIsIdentifier && token() !== 59 /* ColonToken */) { + name = propertyName; + propertyName = void 0; + } else { + parseExpected(59 /* ColonToken */); + name = parseIdentifierOrPattern(); + } + const initializer = parseInitializer(); + return finishNode(factory2.createBindingElement(dotDotDotToken, propertyName, name, initializer), pos); + } + function parseObjectBindingPattern() { + const pos = getNodePos(); + parseExpected(19 /* OpenBraceToken */); + const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement)); + parseExpected(20 /* CloseBraceToken */); + return finishNode(factory2.createObjectBindingPattern(elements), pos); + } + function parseArrayBindingPattern() { + const pos = getNodePos(); + parseExpected(23 /* OpenBracketToken */); + const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement)); + parseExpected(24 /* CloseBracketToken */); + return finishNode(factory2.createArrayBindingPattern(elements), pos); + } + function isBindingIdentifierOrPrivateIdentifierOrPattern() { + return token() === 19 /* OpenBraceToken */ || token() === 23 /* OpenBracketToken */ || token() === 81 /* PrivateIdentifier */ || isBindingIdentifier(); + } + function parseIdentifierOrPattern(privateIdentifierDiagnosticMessage) { + if (token() === 23 /* OpenBracketToken */) { + return parseArrayBindingPattern(); + } + if (token() === 19 /* OpenBraceToken */) { + return parseObjectBindingPattern(); + } + return parseBindingIdentifier(privateIdentifierDiagnosticMessage); + } + function parseVariableDeclarationAllowExclamation() { + return parseVariableDeclaration( + /*allowExclamation*/ + true + ); + } + function parseVariableDeclaration(allowExclamation) { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const name = parseIdentifierOrPattern(Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations); + let exclamationToken; + if (allowExclamation && name.kind === 80 /* Identifier */ && token() === 54 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) { + exclamationToken = parseTokenNode(); + } + const type = parseTypeAnnotation(); + const initializer = isInOrOfKeyword(token()) ? void 0 : parseInitializer(); + const node = factoryCreateVariableDeclaration(name, exclamationToken, type, initializer); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseVariableDeclarationList(inForStatementInitializer) { + const pos = getNodePos(); + let flags = 0; + switch (token()) { + case 115 /* VarKeyword */: + break; + case 121 /* LetKeyword */: + flags |= 1 /* Let */; + break; + case 87 /* ConstKeyword */: + flags |= 2 /* Const */; + break; + case 160 /* UsingKeyword */: + flags |= 4 /* Using */; + break; + case 135 /* AwaitKeyword */: + Debug.assert(isAwaitUsingDeclaration()); + flags |= 6 /* AwaitUsing */; + nextToken(); + break; + default: + Debug.fail(); + } + nextToken(); + let declarations; + if (token() === 165 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) { + declarations = createMissingList(); + } else { + const savedDisallowIn = inDisallowInContext(); + setDisallowInContext(inForStatementInitializer); + declarations = parseDelimitedList( + 8 /* VariableDeclarations */, + inForStatementInitializer ? parseVariableDeclaration : parseVariableDeclarationAllowExclamation + ); + setDisallowInContext(savedDisallowIn); + } + return finishNode(factoryCreateVariableDeclarationList(declarations, flags), pos); + } + function canFollowContextualOfKeyword() { + return nextTokenIsIdentifier() && nextToken() === 22 /* CloseParenToken */; + } + function parseVariableStatement(pos, hasJSDoc, modifiers) { + const declarationList = parseVariableDeclarationList( + /*inForStatementInitializer*/ + false + ); + parseSemicolon(); + const node = factoryCreateVariableStatement(modifiers, declarationList); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseFunctionDeclaration(pos, hasJSDoc, modifiers) { + const savedAwaitContext = inAwaitContext(); + const modifierFlags = modifiersToFlags(modifiers); + parseExpected(100 /* FunctionKeyword */); + const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); + const name = modifierFlags & 2048 /* Default */ ? parseOptionalBindingIdentifier() : parseBindingIdentifier(); + const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; + const isAsync = modifierFlags & 1024 /* Async */ ? 2 /* Await */ : 0 /* None */; + const typeParameters = parseTypeParameters(); + if (modifierFlags & 32 /* Export */) setAwaitContext( + /*value*/ + true + ); + const parameters = parseParameters(isGenerator | isAsync); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, Diagnostics.or_expected); + setAwaitContext(savedAwaitContext); + const node = factory2.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseConstructorName() { + if (token() === 137 /* ConstructorKeyword */) { + return parseExpected(137 /* ConstructorKeyword */); + } + if (token() === 11 /* StringLiteral */ && lookAhead(nextToken) === 21 /* OpenParenToken */) { + return tryParse(() => { + const literalNode = parseLiteralNode(); + return literalNode.text === "constructor" ? literalNode : void 0; + }); + } + } + function tryParseConstructorDeclaration(pos, hasJSDoc, modifiers) { + return tryParse(() => { + if (parseConstructorName()) { + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(0 /* None */); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + const body = parseFunctionBlockOrSemicolon(0 /* None */, Diagnostics.or_expected); + const node = factory2.createConstructorDeclaration(modifiers, parameters, body); + node.typeParameters = typeParameters; + node.type = type; + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + }); + } + function parseMethodDeclaration(pos, hasJSDoc, modifiers, asteriskToken, name, questionToken, exclamationToken, diagnosticMessage) { + const isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */; + const isAsync = some(modifiers, isAsyncModifier) ? 2 /* Await */ : 0 /* None */; + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(isGenerator | isAsync); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + const body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, diagnosticMessage); + const node = factory2.createMethodDeclaration( + modifiers, + asteriskToken, + name, + questionToken, + typeParameters, + parameters, + type, + body + ); + node.exclamationToken = exclamationToken; + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken) { + const exclamationToken = !questionToken && !scanner.hasPrecedingLineBreak() ? parseOptionalToken(54 /* ExclamationToken */) : void 0; + const type = parseTypeAnnotation(); + const initializer = doOutsideOfContext(16384 /* YieldContext */ | 65536 /* AwaitContext */ | 8192 /* DisallowInContext */, parseInitializer); + parseSemicolonAfterPropertyName(name, type, initializer); + const node = factory2.createPropertyDeclaration( + modifiers, + name, + questionToken || exclamationToken, + type, + initializer + ); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers) { + const asteriskToken = parseOptionalToken(42 /* AsteriskToken */); + const name = parsePropertyName(); + const questionToken = parseOptionalToken(58 /* QuestionToken */); + if (asteriskToken || token() === 21 /* OpenParenToken */ || token() === 30 /* LessThanToken */) { + return parseMethodDeclaration( + pos, + hasJSDoc, + modifiers, + asteriskToken, + name, + questionToken, + /*exclamationToken*/ + void 0, + Diagnostics.or_expected + ); + } + return parsePropertyDeclaration(pos, hasJSDoc, modifiers, name, questionToken); + } + function parseAccessorDeclaration(pos, hasJSDoc, modifiers, kind, flags) { + const name = parsePropertyName(); + const typeParameters = parseTypeParameters(); + const parameters = parseParameters(0 /* None */); + const type = parseReturnType( + 59 /* ColonToken */, + /*isType*/ + false + ); + const body = parseFunctionBlockOrSemicolon(flags); + const node = kind === 177 /* GetAccessor */ ? factory2.createGetAccessorDeclaration(modifiers, name, parameters, type, body) : factory2.createSetAccessorDeclaration(modifiers, name, parameters, body); + node.typeParameters = typeParameters; + if (isSetAccessorDeclaration(node)) node.type = type; + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function isClassMemberStart() { + let idToken; + if (token() === 60 /* AtToken */) { + return true; + } + while (isModifierKind(token())) { + idToken = token(); + if (isClassMemberModifier(idToken)) { + return true; + } + nextToken(); + } + if (token() === 42 /* AsteriskToken */) { + return true; + } + if (isLiteralPropertyName()) { + idToken = token(); + nextToken(); + } + if (token() === 23 /* OpenBracketToken */) { + return true; + } + if (idToken !== void 0) { + if (!isKeyword(idToken) || idToken === 153 /* SetKeyword */ || idToken === 139 /* GetKeyword */) { + return true; + } + switch (token()) { + case 21 /* OpenParenToken */: + case 30 /* LessThanToken */: + case 54 /* ExclamationToken */: + case 59 /* ColonToken */: + case 64 /* EqualsToken */: + case 58 /* QuestionToken */: + return true; + default: + return canParseSemicolon(); + } + } + return false; + } + function parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers) { + parseExpectedToken(126 /* StaticKeyword */); + const body = parseClassStaticBlockBody(); + const node = withJSDoc(finishNode(factory2.createClassStaticBlockDeclaration(body), pos), hasJSDoc); + node.modifiers = modifiers; + return node; + } + function parseClassStaticBlockBody() { + const savedYieldContext = inYieldContext(); + const savedAwaitContext = inAwaitContext(); + setYieldContext(false); + setAwaitContext(true); + const body = parseBlock( + /*ignoreMissingOpenBrace*/ + false + ); + setYieldContext(savedYieldContext); + setAwaitContext(savedAwaitContext); + return body; + } + function parseDecoratorExpression() { + if (inAwaitContext() && token() === 135 /* AwaitKeyword */) { + const pos = getNodePos(); + const awaitExpression = parseIdentifier(Diagnostics.Expression_expected); + nextToken(); + const memberExpression = parseMemberExpressionRest( + pos, + awaitExpression, + /*allowOptionalChain*/ + true + ); + return parseCallExpressionRest(pos, memberExpression); + } + return parseLeftHandSideExpressionOrHigher(); + } + function tryParseDecorator() { + const pos = getNodePos(); + if (!parseOptional(60 /* AtToken */)) { + return void 0; + } + const expression = doInDecoratorContext(parseDecoratorExpression); + return finishNode(factory2.createDecorator(expression), pos); + } + function tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock) { + const pos = getNodePos(); + const kind = token(); + if (token() === 87 /* ConstKeyword */ && permitConstAsModifier) { + if (!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)) { + return void 0; + } + } else if (stopOnStartOfClassStaticBlock && token() === 126 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) { + return void 0; + } else if (hasSeenStaticModifier && token() === 126 /* StaticKeyword */) { + return void 0; + } else { + if (!parseAnyContextualModifier()) { + return void 0; + } + } + return finishNode(factoryCreateToken(kind), pos); + } + function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) { + const pos = getNodePos(); + let list; + let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false; + if (allowDecorators && token() === 60 /* AtToken */) { + while (decorator = tryParseDecorator()) { + list = append(list, decorator); + } + } + while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) { + if (modifier.kind === 126 /* StaticKeyword */) hasSeenStaticModifier = true; + list = append(list, modifier); + hasLeadingModifier = true; + } + if (hasLeadingModifier && allowDecorators && token() === 60 /* AtToken */) { + while (decorator = tryParseDecorator()) { + list = append(list, decorator); + hasTrailingDecorator = true; + } + } + if (hasTrailingDecorator) { + while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) { + if (modifier.kind === 126 /* StaticKeyword */) hasSeenStaticModifier = true; + list = append(list, modifier); + } + } + return list && createNodeArray(list, pos); + } + function parseModifiersForArrowFunction() { + let modifiers; + if (token() === 134 /* AsyncKeyword */) { + const pos = getNodePos(); + nextToken(); + const modifier = finishNode(factoryCreateToken(134 /* AsyncKeyword */), pos); + modifiers = createNodeArray([modifier], pos); + } + return modifiers; + } + function parseClassElement() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + if (token() === 27 /* SemicolonToken */) { + nextToken(); + return withJSDoc(finishNode(factory2.createSemicolonClassElement(), pos), hasJSDoc); + } + const modifiers = parseModifiers( + /*allowDecorators*/ + true, + /*permitConstAsModifier*/ + true, + /*stopOnStartOfClassStaticBlock*/ + true + ); + if (token() === 126 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) { + return parseClassStaticBlockDeclaration(pos, hasJSDoc, modifiers); + } + if (parseContextualModifier(139 /* GetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 177 /* GetAccessor */, 0 /* None */); + } + if (parseContextualModifier(153 /* SetKeyword */)) { + return parseAccessorDeclaration(pos, hasJSDoc, modifiers, 178 /* SetAccessor */, 0 /* None */); + } + if (token() === 137 /* ConstructorKeyword */ || token() === 11 /* StringLiteral */) { + const constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, modifiers); + if (constructorDeclaration) { + return constructorDeclaration; + } + } + if (isIndexSignature()) { + return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); + } + if (tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 42 /* AsteriskToken */ || token() === 23 /* OpenBracketToken */) { + const isAmbient = some(modifiers, isDeclareModifier); + if (isAmbient) { + for (const m of modifiers) { + m.flags |= 33554432 /* Ambient */; + } + return doInsideOfContext(33554432 /* Ambient */, () => parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers)); + } else { + return parsePropertyOrMethodDeclaration(pos, hasJSDoc, modifiers); + } + } + if (modifiers) { + const name = createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.Declaration_expected + ); + return parsePropertyDeclaration( + pos, + hasJSDoc, + modifiers, + name, + /*questionToken*/ + void 0 + ); + } + return Debug.fail("Should not have attempted to parse class member declaration."); + } + function parseDecoratedExpression() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const modifiers = parseModifiers( + /*allowDecorators*/ + true + ); + if (token() === 86 /* ClassKeyword */) { + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 231 /* ClassExpression */); + } + const missing = createMissingNode( + 282 /* MissingDeclaration */, + /*reportAtCurrentPosition*/ + true, + Diagnostics.Expression_expected + ); + setTextRangePos(missing, pos); + missing.modifiers = modifiers; + return missing; + } + function parseClassExpression() { + return parseClassDeclarationOrExpression( + getNodePos(), + hasPrecedingJSDocComment(), + /*modifiers*/ + void 0, + 231 /* ClassExpression */ + ); + } + function parseClassDeclaration(pos, hasJSDoc, modifiers) { + return parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, 263 /* ClassDeclaration */); + } + function parseClassDeclarationOrExpression(pos, hasJSDoc, modifiers, kind) { + const savedAwaitContext = inAwaitContext(); + parseExpected(86 /* ClassKeyword */); + const name = parseNameOfClassDeclarationOrExpression(); + const typeParameters = parseTypeParameters(); + if (some(modifiers, isExportModifier)) setAwaitContext( + /*value*/ + true + ); + const heritageClauses = parseHeritageClauses(); + let members; + if (parseExpected(19 /* OpenBraceToken */)) { + members = parseClassMembers(); + parseExpected(20 /* CloseBraceToken */); + } else { + members = createMissingList(); + } + setAwaitContext(savedAwaitContext); + const node = kind === 263 /* ClassDeclaration */ ? factory2.createClassDeclaration(modifiers, name, typeParameters, heritageClauses, members) : factory2.createClassExpression(modifiers, name, typeParameters, heritageClauses, members); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseNameOfClassDeclarationOrExpression() { + return isBindingIdentifier() && !isImplementsClause() ? createIdentifier(isBindingIdentifier()) : void 0; + } + function isImplementsClause() { + return token() === 119 /* ImplementsKeyword */ && lookAhead(nextTokenIsIdentifierOrKeyword); + } + function parseHeritageClauses() { + if (isHeritageClause2()) { + return parseList(22 /* HeritageClauses */, parseHeritageClause); + } + return void 0; + } + function parseHeritageClause() { + const pos = getNodePos(); + const tok = token(); + Debug.assert(tok === 96 /* ExtendsKeyword */ || tok === 119 /* ImplementsKeyword */); + nextToken(); + const types = parseDelimitedList(7 /* HeritageClauseElement */, parseExpressionWithTypeArguments); + return finishNode(factory2.createHeritageClause(tok, types), pos); + } + function parseExpressionWithTypeArguments() { + const pos = getNodePos(); + const expression = parseLeftHandSideExpressionOrHigher(); + if (expression.kind === 233 /* ExpressionWithTypeArguments */) { + return expression; + } + const typeArguments = tryParseTypeArguments(); + return finishNode(factory2.createExpressionWithTypeArguments(expression, typeArguments), pos); + } + function tryParseTypeArguments() { + return token() === 30 /* LessThanToken */ ? parseBracketedList(20 /* TypeArguments */, parseType, 30 /* LessThanToken */, 32 /* GreaterThanToken */) : void 0; + } + function isHeritageClause2() { + return token() === 96 /* ExtendsKeyword */ || token() === 119 /* ImplementsKeyword */; + } + function parseClassMembers() { + return parseList(5 /* ClassMembers */, parseClassElement); + } + function parseInterfaceDeclaration(pos, hasJSDoc, modifiers) { + parseExpected(120 /* InterfaceKeyword */); + const name = parseIdentifier(); + const typeParameters = parseTypeParameters(); + const heritageClauses = parseHeritageClauses(); + const members = parseObjectTypeMembers(); + const node = factory2.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) { + parseExpected(156 /* TypeKeyword */); + if (scanner.hasPrecedingLineBreak()) { + parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here); + } + const name = parseIdentifier(); + const typeParameters = parseTypeParameters(); + parseExpected(64 /* EqualsToken */); + const type = token() === 141 /* IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType(); + parseSemicolon(); + const node = factory2.createTypeAliasDeclaration(modifiers, name, typeParameters, type); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseEnumMember() { + const pos = getNodePos(); + const hasJSDoc = hasPrecedingJSDocComment(); + const name = parsePropertyName(); + const initializer = allowInAnd(parseInitializer); + return withJSDoc(finishNode(factory2.createEnumMember(name, initializer), pos), hasJSDoc); + } + function parseEnumDeclaration(pos, hasJSDoc, modifiers) { + parseExpected(94 /* EnumKeyword */); + const name = parseIdentifier(); + let members; + if (parseExpected(19 /* OpenBraceToken */)) { + members = doOutsideOfYieldAndAwaitContext(() => parseDelimitedList(6 /* EnumMembers */, parseEnumMember)); + parseExpected(20 /* CloseBraceToken */); + } else { + members = createMissingList(); + } + const node = factory2.createEnumDeclaration(modifiers, name, members); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseModuleBlock() { + const pos = getNodePos(); + let statements; + if (parseExpected(19 /* OpenBraceToken */)) { + statements = parseList(1 /* BlockStatements */, parseStatement); + parseExpected(20 /* CloseBraceToken */); + } else { + statements = createMissingList(); + } + return finishNode(factory2.createModuleBlock(statements), pos); + } + function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiers, flags) { + const namespaceFlag = flags & 32 /* Namespace */; + const name = flags & 8 /* NestedNamespace */ ? parseIdentifierName() : parseIdentifier(); + const body = parseOptional(25 /* DotToken */) ? parseModuleOrNamespaceDeclaration( + getNodePos(), + /*hasJSDoc*/ + false, + /*modifiers*/ + void 0, + 8 /* NestedNamespace */ | namespaceFlag + ) : parseModuleBlock(); + const node = factory2.createModuleDeclaration(modifiers, name, body, flags); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn) { + let flags = 0; + let name; + if (token() === 162 /* GlobalKeyword */) { + name = parseIdentifier(); + flags |= 2048 /* GlobalAugmentation */; + } else { + name = parseLiteralNode(); + name.text = internIdentifier(name.text); + } + let body; + if (token() === 19 /* OpenBraceToken */) { + body = parseModuleBlock(); + } else { + parseSemicolon(); + } + const node = factory2.createModuleDeclaration(modifiersIn, name, body, flags); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseModuleDeclaration(pos, hasJSDoc, modifiersIn) { + let flags = 0; + if (token() === 162 /* GlobalKeyword */) { + return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); + } else if (parseOptional(145 /* NamespaceKeyword */)) { + flags |= 32 /* Namespace */; + } else { + parseExpected(144 /* ModuleKeyword */); + if (token() === 11 /* StringLiteral */) { + return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, modifiersIn); + } + } + return parseModuleOrNamespaceDeclaration(pos, hasJSDoc, modifiersIn, flags); + } + function isExternalModuleReference2() { + return token() === 149 /* RequireKeyword */ && lookAhead(nextTokenIsOpenParen); + } + function nextTokenIsOpenParen() { + return nextToken() === 21 /* OpenParenToken */; + } + function nextTokenIsOpenBrace() { + return nextToken() === 19 /* OpenBraceToken */; + } + function nextTokenIsSlash() { + return nextToken() === 44 /* SlashToken */; + } + function parseNamespaceExportDeclaration(pos, hasJSDoc, modifiers) { + parseExpected(130 /* AsKeyword */); + parseExpected(145 /* NamespaceKeyword */); + const name = parseIdentifier(); + parseSemicolon(); + const node = factory2.createNamespaceExportDeclaration(name); + node.modifiers = modifiers; + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, modifiers) { + parseExpected(102 /* ImportKeyword */); + const afterImportPos = scanner.getTokenFullStart(); + let identifier; + if (isIdentifier2()) { + identifier = parseIdentifier(); + } + let isTypeOnly = false; + if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeywordOrEqualsToken)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) { + isTypeOnly = true; + identifier = isIdentifier2() ? parseIdentifier() : void 0; + } + if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) { + return parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly); + } + const importClause = tryParseImportClause(identifier, afterImportPos, isTypeOnly); + const moduleSpecifier = parseModuleSpecifier(); + const attributes = tryParseImportAttributes(); + parseSemicolon(); + const node = factory2.createImportDeclaration(modifiers, importClause, moduleSpecifier, attributes); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function tryParseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks = false) { + let importClause; + if (identifier || // import id + token() === 42 /* AsteriskToken */ || // import * + token() === 19 /* OpenBraceToken */) { + importClause = parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks); + parseExpected(161 /* FromKeyword */); + } + return importClause; + } + function tryParseImportAttributes() { + const currentToken2 = token(); + if ((currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) && !scanner.hasPrecedingLineBreak()) { + return parseImportAttributes(currentToken2); + } + } + function parseImportAttribute() { + const pos = getNodePos(); + const name = tokenIsIdentifierOrKeyword(token()) ? parseIdentifierName() : parseLiteralLikeNode(11 /* StringLiteral */); + parseExpected(59 /* ColonToken */); + const value = parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + return finishNode(factory2.createImportAttribute(name, value), pos); + } + function parseImportAttributes(token2, skipKeyword) { + const pos = getNodePos(); + if (!skipKeyword) { + parseExpected(token2); + } + const openBracePosition = scanner.getTokenStart(); + if (parseExpected(19 /* OpenBraceToken */)) { + const multiLine = scanner.hasPrecedingLineBreak(); + const elements = parseDelimitedList( + 24 /* ImportAttributes */, + parseImportAttribute, + /*considerSemicolonAsDelimiter*/ + true + ); + if (!parseExpected(20 /* CloseBraceToken */)) { + const lastError = lastOrUndefined(parseDiagnostics); + if (lastError && lastError.code === Diagnostics._0_expected.code) { + addRelatedInfo( + lastError, + createDetachedDiagnostic(fileName, sourceText, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}") + ); + } + } + return finishNode(factory2.createImportAttributes(elements, multiLine, token2), pos); + } else { + const elements = createNodeArray( + [], + getNodePos(), + /*end*/ + void 0, + /*hasTrailingComma*/ + false + ); + return finishNode(factory2.createImportAttributes( + elements, + /*multiLine*/ + false, + token2 + ), pos); + } + } + function tokenAfterImportDefinitelyProducesImportDeclaration() { + return token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */; + } + function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() { + return token() === 28 /* CommaToken */ || token() === 161 /* FromKeyword */; + } + function parseImportEqualsDeclaration(pos, hasJSDoc, modifiers, identifier, isTypeOnly) { + parseExpected(64 /* EqualsToken */); + const moduleReference = parseModuleReference(); + parseSemicolon(); + const node = factory2.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference); + const finished = withJSDoc(finishNode(node, pos), hasJSDoc); + return finished; + } + function parseImportClause(identifier, pos, isTypeOnly, skipJsDocLeadingAsterisks) { + let namedBindings; + if (!identifier || parseOptional(28 /* CommaToken */)) { + if (skipJsDocLeadingAsterisks) scanner.setSkipJsDocLeadingAsterisks(true); + namedBindings = token() === 42 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(275 /* NamedImports */); + if (skipJsDocLeadingAsterisks) scanner.setSkipJsDocLeadingAsterisks(false); + } + return finishNode(factory2.createImportClause(isTypeOnly, identifier, namedBindings), pos); + } + function parseModuleReference() { + return isExternalModuleReference2() ? parseExternalModuleReference() : parseEntityName( + /*allowReservedWords*/ + false + ); + } + function parseExternalModuleReference() { + const pos = getNodePos(); + parseExpected(149 /* RequireKeyword */); + parseExpected(21 /* OpenParenToken */); + const expression = parseModuleSpecifier(); + parseExpected(22 /* CloseParenToken */); + return finishNode(factory2.createExternalModuleReference(expression), pos); + } + function parseModuleSpecifier() { + if (token() === 11 /* StringLiteral */) { + const result = parseLiteralNode(); + result.text = internIdentifier(result.text); + return result; + } else { + return parseExpression(); + } + } + function parseNamespaceImport() { + const pos = getNodePos(); + parseExpected(42 /* AsteriskToken */); + parseExpected(130 /* AsKeyword */); + const name = parseIdentifier(); + return finishNode(factory2.createNamespaceImport(name), pos); + } + function parseNamedImportsOrExports(kind) { + const pos = getNodePos(); + const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); + return finishNode(node, pos); + } + function parseExportSpecifier() { + const hasJSDoc = hasPrecedingJSDocComment(); + return withJSDoc(parseImportOrExportSpecifier(281 /* ExportSpecifier */), hasJSDoc); + } + function parseImportSpecifier() { + return parseImportOrExportSpecifier(276 /* ImportSpecifier */); + } + function parseImportOrExportSpecifier(kind) { + const pos = getNodePos(); + let checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); + let checkIdentifierStart = scanner.getTokenStart(); + let checkIdentifierEnd = scanner.getTokenEnd(); + let isTypeOnly = false; + let propertyName; + let canParseAsKeyword = true; + let name = parseIdentifierName(); + if (name.escapedText === "type") { + if (token() === 130 /* AsKeyword */) { + const firstAs = parseIdentifierName(); + if (token() === 130 /* AsKeyword */) { + const secondAs = parseIdentifierName(); + if (tokenIsIdentifierOrKeyword(token())) { + isTypeOnly = true; + propertyName = firstAs; + name = parseNameWithKeywordCheck(); + canParseAsKeyword = false; + } else { + propertyName = name; + name = secondAs; + canParseAsKeyword = false; + } + } else if (tokenIsIdentifierOrKeyword(token())) { + propertyName = name; + canParseAsKeyword = false; + name = parseNameWithKeywordCheck(); + } else { + isTypeOnly = true; + name = firstAs; + } + } else if (tokenIsIdentifierOrKeyword(token())) { + isTypeOnly = true; + name = parseNameWithKeywordCheck(); + } + } + if (canParseAsKeyword && token() === 130 /* AsKeyword */) { + propertyName = name; + parseExpected(130 /* AsKeyword */); + name = parseNameWithKeywordCheck(); + } + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); + } + const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); + return finishNode(node, pos); + function parseNameWithKeywordCheck() { + checkIdentifierIsKeyword = isKeyword(token()) && !isIdentifier2(); + checkIdentifierStart = scanner.getTokenStart(); + checkIdentifierEnd = scanner.getTokenEnd(); + return parseIdentifierName(); + } + } + function parseNamespaceExport(pos) { + return finishNode(factory2.createNamespaceExport(parseIdentifierName()), pos); + } + function parseExportDeclaration(pos, hasJSDoc, modifiers) { + const savedAwaitContext = inAwaitContext(); + setAwaitContext( + /*value*/ + true + ); + let exportClause; + let moduleSpecifier; + let attributes; + const isTypeOnly = parseOptional(156 /* TypeKeyword */); + const namespaceExportPos = getNodePos(); + if (parseOptional(42 /* AsteriskToken */)) { + if (parseOptional(130 /* AsKeyword */)) { + exportClause = parseNamespaceExport(namespaceExportPos); + } + parseExpected(161 /* FromKeyword */); + moduleSpecifier = parseModuleSpecifier(); + } else { + exportClause = parseNamedImportsOrExports(279 /* NamedExports */); + if (token() === 161 /* FromKeyword */ || token() === 11 /* StringLiteral */ && !scanner.hasPrecedingLineBreak()) { + parseExpected(161 /* FromKeyword */); + moduleSpecifier = parseModuleSpecifier(); + } + } + const currentToken2 = token(); + if (moduleSpecifier && (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */) && !scanner.hasPrecedingLineBreak()) { + attributes = parseImportAttributes(currentToken2); + } + parseSemicolon(); + setAwaitContext(savedAwaitContext); + const node = factory2.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, attributes); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + function parseExportAssignment(pos, hasJSDoc, modifiers) { + const savedAwaitContext = inAwaitContext(); + setAwaitContext( + /*value*/ + true + ); + let isExportEquals; + if (parseOptional(64 /* EqualsToken */)) { + isExportEquals = true; + } else { + parseExpected(90 /* DefaultKeyword */); + } + const expression = parseAssignmentExpressionOrHigher( + /*allowReturnTypeInArrowFunction*/ + true + ); + parseSemicolon(); + setAwaitContext(savedAwaitContext); + const node = factory2.createExportAssignment(modifiers, isExportEquals, expression); + return withJSDoc(finishNode(node, pos), hasJSDoc); + } + let ParsingContext; + ((ParsingContext2) => { + ParsingContext2[ParsingContext2["SourceElements"] = 0] = "SourceElements"; + ParsingContext2[ParsingContext2["BlockStatements"] = 1] = "BlockStatements"; + ParsingContext2[ParsingContext2["SwitchClauses"] = 2] = "SwitchClauses"; + ParsingContext2[ParsingContext2["SwitchClauseStatements"] = 3] = "SwitchClauseStatements"; + ParsingContext2[ParsingContext2["TypeMembers"] = 4] = "TypeMembers"; + ParsingContext2[ParsingContext2["ClassMembers"] = 5] = "ClassMembers"; + ParsingContext2[ParsingContext2["EnumMembers"] = 6] = "EnumMembers"; + ParsingContext2[ParsingContext2["HeritageClauseElement"] = 7] = "HeritageClauseElement"; + ParsingContext2[ParsingContext2["VariableDeclarations"] = 8] = "VariableDeclarations"; + ParsingContext2[ParsingContext2["ObjectBindingElements"] = 9] = "ObjectBindingElements"; + ParsingContext2[ParsingContext2["ArrayBindingElements"] = 10] = "ArrayBindingElements"; + ParsingContext2[ParsingContext2["ArgumentExpressions"] = 11] = "ArgumentExpressions"; + ParsingContext2[ParsingContext2["ObjectLiteralMembers"] = 12] = "ObjectLiteralMembers"; + ParsingContext2[ParsingContext2["JsxAttributes"] = 13] = "JsxAttributes"; + ParsingContext2[ParsingContext2["JsxChildren"] = 14] = "JsxChildren"; + ParsingContext2[ParsingContext2["ArrayLiteralMembers"] = 15] = "ArrayLiteralMembers"; + ParsingContext2[ParsingContext2["Parameters"] = 16] = "Parameters"; + ParsingContext2[ParsingContext2["JSDocParameters"] = 17] = "JSDocParameters"; + ParsingContext2[ParsingContext2["RestProperties"] = 18] = "RestProperties"; + ParsingContext2[ParsingContext2["TypeParameters"] = 19] = "TypeParameters"; + ParsingContext2[ParsingContext2["TypeArguments"] = 20] = "TypeArguments"; + ParsingContext2[ParsingContext2["TupleElementTypes"] = 21] = "TupleElementTypes"; + ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses"; + ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers"; + ParsingContext2[ParsingContext2["ImportAttributes"] = 24] = "ImportAttributes"; + ParsingContext2[ParsingContext2["JSDocComment"] = 25] = "JSDocComment"; + ParsingContext2[ParsingContext2["Count"] = 26] = "Count"; + })(ParsingContext || (ParsingContext = {})); + let Tristate; + ((Tristate2) => { + Tristate2[Tristate2["False"] = 0] = "False"; + Tristate2[Tristate2["True"] = 1] = "True"; + Tristate2[Tristate2["Unknown"] = 2] = "Unknown"; + })(Tristate || (Tristate = {})); + let JSDocParser; + ((JSDocParser2) => { + function parseJSDocTypeExpressionForTests(content, start, length2) { + initializeState( + "file.js", + content, + 99 /* Latest */, + /*syntaxCursor*/ + void 0, + 1 /* JS */, + 0 /* ParseAll */ + ); + scanner.setText(content, start, length2); + currentToken = scanner.scan(); + const jsDocTypeExpression = parseJSDocTypeExpression(); + const sourceFile = createSourceFile2( + "file.js", + 99 /* Latest */, + 1 /* JS */, + /*isDeclarationFile*/ + false, + [], + factoryCreateToken(1 /* EndOfFileToken */), + 0 /* None */, + noop + ); + const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); + if (jsDocDiagnostics) { + sourceFile.jsDocDiagnostics = attachFileToDiagnostics(jsDocDiagnostics, sourceFile); + } + clearState(); + return jsDocTypeExpression ? { jsDocTypeExpression, diagnostics } : void 0; + } + JSDocParser2.parseJSDocTypeExpressionForTests = parseJSDocTypeExpressionForTests; + function parseJSDocTypeExpression(mayOmitBraces) { + const pos = getNodePos(); + const hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(19 /* OpenBraceToken */); + const type = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); + if (!mayOmitBraces || hasBrace) { + parseExpectedJSDoc(20 /* CloseBraceToken */); + } + const result = factory2.createJSDocTypeExpression(type); + fixupParentReferences(result); + return finishNode(result, pos); + } + JSDocParser2.parseJSDocTypeExpression = parseJSDocTypeExpression; + function parseJSDocNameReference() { + const pos = getNodePos(); + const hasBrace = parseOptional(19 /* OpenBraceToken */); + const p2 = getNodePos(); + let entityName = parseEntityName( + /*allowReservedWords*/ + false + ); + while (token() === 81 /* PrivateIdentifier */) { + reScanHashToken(); + nextTokenJSDoc(); + entityName = finishNode(factory2.createJSDocMemberName(entityName, parseIdentifier()), p2); + } + if (hasBrace) { + parseExpectedJSDoc(20 /* CloseBraceToken */); + } + const result = factory2.createJSDocNameReference(entityName); + fixupParentReferences(result); + return finishNode(result, pos); + } + JSDocParser2.parseJSDocNameReference = parseJSDocNameReference; + function parseIsolatedJSDocComment(content, start, length2) { + initializeState( + "", + content, + 99 /* Latest */, + /*syntaxCursor*/ + void 0, + 1 /* JS */, + 0 /* ParseAll */ + ); + const jsDoc = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + const sourceFile = { languageVariant: 0 /* Standard */, text: content }; + const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile); + clearState(); + return jsDoc ? { jsDoc, diagnostics } : void 0; + } + JSDocParser2.parseIsolatedJSDocComment = parseIsolatedJSDocComment; + function parseJSDocComment(parent, start, length2) { + const saveToken = currentToken; + const saveParseDiagnosticsLength = parseDiagnostics.length; + const saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode; + const comment = doInsideOfContext(16777216 /* JSDoc */, () => parseJSDocCommentWorker(start, length2)); + setParent(comment, parent); + if (contextFlags & 524288 /* JavaScriptFile */) { + if (!jsDocDiagnostics) { + jsDocDiagnostics = []; + } + addRange(jsDocDiagnostics, parseDiagnostics, saveParseDiagnosticsLength); + } + currentToken = saveToken; + parseDiagnostics.length = saveParseDiagnosticsLength; + parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode; + return comment; + } + JSDocParser2.parseJSDocComment = parseJSDocComment; + let JSDocState; + ((JSDocState2) => { + JSDocState2[JSDocState2["BeginningOfLine"] = 0] = "BeginningOfLine"; + JSDocState2[JSDocState2["SawAsterisk"] = 1] = "SawAsterisk"; + JSDocState2[JSDocState2["SavingComments"] = 2] = "SavingComments"; + JSDocState2[JSDocState2["SavingBackticks"] = 3] = "SavingBackticks"; + })(JSDocState || (JSDocState = {})); + let PropertyLikeParse; + ((PropertyLikeParse2) => { + PropertyLikeParse2[PropertyLikeParse2["Property"] = 1] = "Property"; + PropertyLikeParse2[PropertyLikeParse2["Parameter"] = 2] = "Parameter"; + PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter"; + })(PropertyLikeParse || (PropertyLikeParse = {})); + function parseJSDocCommentWorker(start = 0, length2) { + const content = sourceText; + const end = length2 === void 0 ? content.length : start + length2; + length2 = end - start; + Debug.assert(start >= 0); + Debug.assert(start <= end); + Debug.assert(end <= content.length); + if (!isJSDocLikeText(content, start)) { + return void 0; + } + let tags; + let tagsPos; + let tagsEnd; + let linkEnd; + let commentsPos; + let comments = []; + const parts = []; + const saveParsingContext = parsingContext; + parsingContext |= 1 << 25 /* JSDocComment */; + const result = scanner.scanRange(start + 3, length2 - 5, doJSDocScan); + parsingContext = saveParsingContext; + return result; + function doJSDocScan() { + let state = 1 /* SawAsterisk */; + let margin; + let indent2 = start - (content.lastIndexOf("\n", start) + 1) + 4; + function pushComment(text) { + if (!margin) { + margin = indent2; + } + comments.push(text); + indent2 += text.length; + } + nextTokenJSDoc(); + while (parseOptionalJsdoc(5 /* WhitespaceTrivia */)) ; + if (parseOptionalJsdoc(4 /* NewLineTrivia */)) { + state = 0 /* BeginningOfLine */; + indent2 = 0; + } + loop: + while (true) { + switch (token()) { + case 60 /* AtToken */: + removeTrailingWhitespace(comments); + if (!commentsPos) commentsPos = getNodePos(); + addTag(parseTag(indent2)); + state = 0 /* BeginningOfLine */; + margin = void 0; + break; + case 4 /* NewLineTrivia */: + comments.push(scanner.getTokenText()); + state = 0 /* BeginningOfLine */; + indent2 = 0; + break; + case 42 /* AsteriskToken */: + const asterisk = scanner.getTokenText(); + if (state === 1 /* SawAsterisk */) { + state = 2 /* SavingComments */; + pushComment(asterisk); + } else { + Debug.assert(state === 0 /* BeginningOfLine */); + state = 1 /* SawAsterisk */; + indent2 += asterisk.length; + } + break; + case 5 /* WhitespaceTrivia */: + Debug.assert(state !== 2 /* SavingComments */, "whitespace shouldn't come from the scanner while saving top-level comment text"); + const whitespace = scanner.getTokenText(); + if (margin !== void 0 && indent2 + whitespace.length > margin) { + comments.push(whitespace.slice(margin - indent2)); + } + indent2 += whitespace.length; + break; + case 1 /* EndOfFileToken */: + break loop; + case 82 /* JSDocCommentTextToken */: + state = 2 /* SavingComments */; + pushComment(scanner.getTokenValue()); + break; + case 19 /* OpenBraceToken */: + state = 2 /* SavingComments */; + const commentEnd = scanner.getTokenFullStart(); + const linkStart = scanner.getTokenEnd() - 1; + const link = parseJSDocLink(linkStart); + if (link) { + if (!linkEnd) { + removeLeadingNewlines(comments); + } + parts.push(finishNode(factory2.createJSDocText(comments.join("")), linkEnd ?? start, commentEnd)); + parts.push(link); + comments = []; + linkEnd = scanner.getTokenEnd(); + break; + } + default: + state = 2 /* SavingComments */; + pushComment(scanner.getTokenText()); + break; + } + if (state === 2 /* SavingComments */) { + nextJSDocCommentTextToken( + /*inBackticks*/ + false + ); + } else { + nextTokenJSDoc(); + } + } + const trimmedComments = comments.join("").trimEnd(); + if (parts.length && trimmedComments.length) { + parts.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd ?? start, commentsPos)); + } + if (parts.length && tags) Debug.assertIsDefined(commentsPos, "having parsed tags implies that the end of the comment span should be set"); + const tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd); + return finishNode(factory2.createJSDocComment(parts.length ? createNodeArray(parts, start, commentsPos) : trimmedComments.length ? trimmedComments : void 0, tagsArray), start, end); + } + function removeLeadingNewlines(comments2) { + while (comments2.length && (comments2[0] === "\n" || comments2[0] === "\r")) { + comments2.shift(); + } + } + function removeTrailingWhitespace(comments2) { + while (comments2.length) { + const trimmed = comments2[comments2.length - 1].trimEnd(); + if (trimmed === "") { + comments2.pop(); + } else if (trimmed.length < comments2[comments2.length - 1].length) { + comments2[comments2.length - 1] = trimmed; + break; + } else { + break; + } + } + } + function isNextNonwhitespaceTokenEndOfFile() { + while (true) { + nextTokenJSDoc(); + if (token() === 1 /* EndOfFileToken */) { + return true; + } + if (!(token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */)) { + return false; + } + } + } + function skipWhitespace() { + if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { + if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) { + return; + } + } + while (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { + nextTokenJSDoc(); + } + } + function skipWhitespaceOrAsterisk() { + if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { + if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) { + return ""; + } + } + let precedingLineBreak = scanner.hasPrecedingLineBreak(); + let seenLineBreak = false; + let indentText = ""; + while (precedingLineBreak && token() === 42 /* AsteriskToken */ || token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) { + indentText += scanner.getTokenText(); + if (token() === 4 /* NewLineTrivia */) { + precedingLineBreak = true; + seenLineBreak = true; + indentText = ""; + } else if (token() === 42 /* AsteriskToken */) { + precedingLineBreak = false; + } + nextTokenJSDoc(); + } + return seenLineBreak ? indentText : ""; + } + function parseTag(margin) { + Debug.assert(token() === 60 /* AtToken */); + const start2 = scanner.getTokenStart(); + nextTokenJSDoc(); + const tagName = parseJSDocIdentifierName( + /*message*/ + void 0 + ); + const indentText = skipWhitespaceOrAsterisk(); + let tag; + switch (tagName.escapedText) { + case "author": + tag = parseAuthorTag(start2, tagName, margin, indentText); + break; + case "implements": + tag = parseImplementsTag(start2, tagName, margin, indentText); + break; + case "augments": + case "extends": + tag = parseAugmentsTag(start2, tagName, margin, indentText); + break; + case "class": + case "constructor": + tag = parseSimpleTag(start2, factory2.createJSDocClassTag, tagName, margin, indentText); + break; + case "public": + tag = parseSimpleTag(start2, factory2.createJSDocPublicTag, tagName, margin, indentText); + break; + case "private": + tag = parseSimpleTag(start2, factory2.createJSDocPrivateTag, tagName, margin, indentText); + break; + case "protected": + tag = parseSimpleTag(start2, factory2.createJSDocProtectedTag, tagName, margin, indentText); + break; + case "readonly": + tag = parseSimpleTag(start2, factory2.createJSDocReadonlyTag, tagName, margin, indentText); + break; + case "override": + tag = parseSimpleTag(start2, factory2.createJSDocOverrideTag, tagName, margin, indentText); + break; + case "deprecated": + hasDeprecatedTag = true; + tag = parseSimpleTag(start2, factory2.createJSDocDeprecatedTag, tagName, margin, indentText); + break; + case "this": + tag = parseThisTag(start2, tagName, margin, indentText); + break; + case "enum": + tag = parseEnumTag(start2, tagName, margin, indentText); + break; + case "arg": + case "argument": + case "param": + return parseParameterOrPropertyTag(start2, tagName, 2 /* Parameter */, margin); + case "return": + case "returns": + tag = parseReturnTag(start2, tagName, margin, indentText); + break; + case "template": + tag = parseTemplateTag(start2, tagName, margin, indentText); + break; + case "type": + tag = parseTypeTag(start2, tagName, margin, indentText); + break; + case "typedef": + tag = parseTypedefTag(start2, tagName, margin, indentText); + break; + case "callback": + tag = parseCallbackTag(start2, tagName, margin, indentText); + break; + case "overload": + tag = parseOverloadTag(start2, tagName, margin, indentText); + break; + case "satisfies": + tag = parseSatisfiesTag(start2, tagName, margin, indentText); + break; + case "see": + tag = parseSeeTag(start2, tagName, margin, indentText); + break; + case "exception": + case "throws": + tag = parseThrowsTag(start2, tagName, margin, indentText); + break; + case "import": + tag = parseImportTag(start2, tagName, margin, indentText); + break; + default: + tag = parseUnknownTag(start2, tagName, margin, indentText); + break; + } + return tag; + } + function parseTrailingTagComments(pos, end2, margin, indentText) { + if (!indentText) { + margin += end2 - pos; + } + return parseTagComments(margin, indentText.slice(margin)); + } + function parseTagComments(indent2, initialMargin) { + const commentsPos2 = getNodePos(); + let comments2 = []; + const parts2 = []; + let linkEnd2; + let state = 0 /* BeginningOfLine */; + let margin; + function pushComment(text) { + if (!margin) { + margin = indent2; + } + comments2.push(text); + indent2 += text.length; + } + if (initialMargin !== void 0) { + if (initialMargin !== "") { + pushComment(initialMargin); + } + state = 1 /* SawAsterisk */; + } + let tok = token(); + loop: + while (true) { + switch (tok) { + case 4 /* NewLineTrivia */: + state = 0 /* BeginningOfLine */; + comments2.push(scanner.getTokenText()); + indent2 = 0; + break; + case 60 /* AtToken */: + scanner.resetTokenState(scanner.getTokenEnd() - 1); + break loop; + case 1 /* EndOfFileToken */: + break loop; + case 5 /* WhitespaceTrivia */: + Debug.assert(state !== 2 /* SavingComments */ && state !== 3 /* SavingBackticks */, "whitespace shouldn't come from the scanner while saving comment text"); + const whitespace = scanner.getTokenText(); + if (margin !== void 0 && indent2 + whitespace.length > margin) { + comments2.push(whitespace.slice(margin - indent2)); + state = 2 /* SavingComments */; + } + indent2 += whitespace.length; + break; + case 19 /* OpenBraceToken */: + state = 2 /* SavingComments */; + const commentEnd = scanner.getTokenFullStart(); + const linkStart = scanner.getTokenEnd() - 1; + const link = parseJSDocLink(linkStart); + if (link) { + parts2.push(finishNode(factory2.createJSDocText(comments2.join("")), linkEnd2 ?? commentsPos2, commentEnd)); + parts2.push(link); + comments2 = []; + linkEnd2 = scanner.getTokenEnd(); + } else { + pushComment(scanner.getTokenText()); + } + break; + case 62 /* BacktickToken */: + if (state === 3 /* SavingBackticks */) { + state = 2 /* SavingComments */; + } else { + state = 3 /* SavingBackticks */; + } + pushComment(scanner.getTokenText()); + break; + case 82 /* JSDocCommentTextToken */: + if (state !== 3 /* SavingBackticks */) { + state = 2 /* SavingComments */; + } + pushComment(scanner.getTokenValue()); + break; + case 42 /* AsteriskToken */: + if (state === 0 /* BeginningOfLine */) { + state = 1 /* SawAsterisk */; + indent2 += 1; + break; + } + default: + if (state !== 3 /* SavingBackticks */) { + state = 2 /* SavingComments */; + } + pushComment(scanner.getTokenText()); + break; + } + if (state === 2 /* SavingComments */ || state === 3 /* SavingBackticks */) { + tok = nextJSDocCommentTextToken(state === 3 /* SavingBackticks */); + } else { + tok = nextTokenJSDoc(); + } + } + removeLeadingNewlines(comments2); + const trimmedComments = comments2.join("").trimEnd(); + if (parts2.length) { + if (trimmedComments.length) { + parts2.push(finishNode(factory2.createJSDocText(trimmedComments), linkEnd2 ?? commentsPos2)); + } + return createNodeArray(parts2, commentsPos2, scanner.getTokenEnd()); + } else if (trimmedComments.length) { + return trimmedComments; + } + } + function parseJSDocLink(start2) { + const linkType = tryParse(parseJSDocLinkPrefix); + if (!linkType) { + return void 0; + } + nextTokenJSDoc(); + skipWhitespace(); + const name = parseJSDocLinkName(); + const text = []; + while (token() !== 20 /* CloseBraceToken */ && token() !== 4 /* NewLineTrivia */ && token() !== 1 /* EndOfFileToken */) { + text.push(scanner.getTokenText()); + nextTokenJSDoc(); + } + const create = linkType === "link" ? factory2.createJSDocLink : linkType === "linkcode" ? factory2.createJSDocLinkCode : factory2.createJSDocLinkPlain; + return finishNode(create(name, text.join("")), start2, scanner.getTokenEnd()); + } + function parseJSDocLinkName() { + if (tokenIsIdentifierOrKeyword(token())) { + const pos = getNodePos(); + let name = parseIdentifierName(); + while (parseOptional(25 /* DotToken */)) { + name = finishNode(factory2.createQualifiedName(name, token() === 81 /* PrivateIdentifier */ ? createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + false + ) : parseIdentifierName()), pos); + } + while (token() === 81 /* PrivateIdentifier */) { + reScanHashToken(); + nextTokenJSDoc(); + name = finishNode(factory2.createJSDocMemberName(name, parseIdentifier()), pos); + } + return name; + } + return void 0; + } + function parseJSDocLinkPrefix() { + skipWhitespaceOrAsterisk(); + if (token() === 19 /* OpenBraceToken */ && nextTokenJSDoc() === 60 /* AtToken */ && tokenIsIdentifierOrKeyword(nextTokenJSDoc())) { + const kind = scanner.getTokenValue(); + if (isJSDocLinkTag(kind)) return kind; + } + } + function isJSDocLinkTag(kind) { + return kind === "link" || kind === "linkcode" || kind === "linkplain"; + } + function parseUnknownTag(start2, tagName, indent2, indentText) { + return finishNode(factory2.createJSDocUnknownTag(tagName, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); + } + function addTag(tag) { + if (!tag) { + return; + } + if (!tags) { + tags = [tag]; + tagsPos = tag.pos; + } else { + tags.push(tag); + } + tagsEnd = tag.end; + } + function tryParseTypeExpression() { + skipWhitespaceOrAsterisk(); + return token() === 19 /* OpenBraceToken */ ? parseJSDocTypeExpression() : void 0; + } + function parseBracketNameInPropertyAndParamTag() { + const isBracketed = parseOptionalJsdoc(23 /* OpenBracketToken */); + if (isBracketed) { + skipWhitespace(); + } + const isBackquoted = parseOptionalJsdoc(62 /* BacktickToken */); + const name = parseJSDocEntityName(); + if (isBackquoted) { + parseExpectedTokenJSDoc(62 /* BacktickToken */); + } + if (isBracketed) { + skipWhitespace(); + if (parseOptionalToken(64 /* EqualsToken */)) { + parseExpression(); + } + parseExpected(24 /* CloseBracketToken */); + } + return { name, isBracketed }; + } + function isObjectOrObjectArrayTypeReference(node) { + switch (node.kind) { + case 151 /* ObjectKeyword */: + return true; + case 188 /* ArrayType */: + return isObjectOrObjectArrayTypeReference(node.elementType); + default: + return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments; + } + } + function parseParameterOrPropertyTag(start2, tagName, target, indent2) { + let typeExpression = tryParseTypeExpression(); + let isNameFirst = !typeExpression; + skipWhitespaceOrAsterisk(); + const { name, isBracketed } = parseBracketNameInPropertyAndParamTag(); + const indentText = skipWhitespaceOrAsterisk(); + if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) { + typeExpression = tryParseTypeExpression(); + } + const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); + const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2); + if (nestedTypeLiteral) { + typeExpression = nestedTypeLiteral; + isNameFirst = true; + } + const result2 = target === 1 /* Property */ ? factory2.createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) : factory2.createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment); + return finishNode(result2, start2); + } + function parseNestedTypeLiteral(typeExpression, name, target, indent2) { + if (typeExpression && isObjectOrObjectArrayTypeReference(typeExpression.type)) { + const pos = getNodePos(); + let child; + let children; + while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) { + if (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) { + children = append(children, child); + } else if (child.kind === 345 /* JSDocTemplateTag */) { + parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); + } + } + if (children) { + const literal = finishNode(factory2.createJSDocTypeLiteral(children, typeExpression.type.kind === 188 /* ArrayType */), pos); + return finishNode(factory2.createJSDocTypeExpression(literal), pos); + } + } + } + function parseReturnTag(start2, tagName, indent2, indentText) { + if (some(tags, isJSDocReturnTag)) { + parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText)); + } + const typeExpression = tryParseTypeExpression(); + return finishNode(factory2.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); + } + function parseTypeTag(start2, tagName, indent2, indentText) { + if (some(tags, isJSDocTypeTag)) { + parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText)); + } + const typeExpression = parseJSDocTypeExpression( + /*mayOmitBraces*/ + true + ); + const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0; + return finishNode(factory2.createJSDocTypeTag(tagName, typeExpression, comments2), start2); + } + function parseSeeTag(start2, tagName, indent2, indentText) { + const isMarkdownOrJSDocLink = token() === 23 /* OpenBracketToken */ || lookAhead(() => nextTokenJSDoc() === 60 /* AtToken */ && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner.getTokenValue())); + const nameExpression = isMarkdownOrJSDocLink ? void 0 : parseJSDocNameReference(); + const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0; + return finishNode(factory2.createJSDocSeeTag(tagName, nameExpression, comments2), start2); + } + function parseThrowsTag(start2, tagName, indent2, indentText) { + const typeExpression = tryParseTypeExpression(); + const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); + return finishNode(factory2.createJSDocThrowsTag(tagName, typeExpression, comment), start2); + } + function parseAuthorTag(start2, tagName, indent2, indentText) { + const commentStart = getNodePos(); + const textOnly = parseAuthorNameAndEmail(); + let commentEnd = scanner.getTokenFullStart(); + const comments2 = parseTrailingTagComments(start2, commentEnd, indent2, indentText); + if (!comments2) { + commentEnd = scanner.getTokenFullStart(); + } + const allParts = typeof comments2 !== "string" ? createNodeArray(concatenate([finishNode(textOnly, commentStart, commentEnd)], comments2), commentStart) : textOnly.text + comments2; + return finishNode(factory2.createJSDocAuthorTag(tagName, allParts), start2); + } + function parseAuthorNameAndEmail() { + const comments2 = []; + let inEmail = false; + let token2 = scanner.getToken(); + while (token2 !== 1 /* EndOfFileToken */ && token2 !== 4 /* NewLineTrivia */) { + if (token2 === 30 /* LessThanToken */) { + inEmail = true; + } else if (token2 === 60 /* AtToken */ && !inEmail) { + break; + } else if (token2 === 32 /* GreaterThanToken */ && inEmail) { + comments2.push(scanner.getTokenText()); + scanner.resetTokenState(scanner.getTokenEnd()); + break; + } + comments2.push(scanner.getTokenText()); + token2 = nextTokenJSDoc(); + } + return factory2.createJSDocText(comments2.join("")); + } + function parseImplementsTag(start2, tagName, margin, indentText) { + const className = parseExpressionWithTypeArgumentsForAugments(); + return finishNode(factory2.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); + } + function parseAugmentsTag(start2, tagName, margin, indentText) { + const className = parseExpressionWithTypeArgumentsForAugments(); + return finishNode(factory2.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); + } + function parseSatisfiesTag(start2, tagName, margin, indentText) { + const typeExpression = parseJSDocTypeExpression( + /*mayOmitBraces*/ + false + ); + const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0; + return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2); + } + function parseImportTag(start2, tagName, margin, indentText) { + const afterImportTagPos = scanner.getTokenFullStart(); + let identifier; + if (isIdentifier2()) { + identifier = parseIdentifier(); + } + const importClause = tryParseImportClause( + identifier, + afterImportTagPos, + /*isTypeOnly*/ + true, + /*skipJsDocLeadingAsterisks*/ + true + ); + const moduleSpecifier = parseModuleSpecifier(); + const attributes = tryParseImportAttributes(); + const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0; + return finishNode(factory2.createJSDocImportTag(tagName, importClause, moduleSpecifier, attributes, comments2), start2); + } + function parseExpressionWithTypeArgumentsForAugments() { + const usedBrace = parseOptional(19 /* OpenBraceToken */); + const pos = getNodePos(); + const expression = parsePropertyAccessEntityNameExpression(); + scanner.setSkipJsDocLeadingAsterisks(true); + const typeArguments = tryParseTypeArguments(); + scanner.setSkipJsDocLeadingAsterisks(false); + const node = factory2.createExpressionWithTypeArguments(expression, typeArguments); + const res = finishNode(node, pos); + if (usedBrace) { + parseExpected(20 /* CloseBraceToken */); + } + return res; + } + function parsePropertyAccessEntityNameExpression() { + const pos = getNodePos(); + let node = parseJSDocIdentifierName(); + while (parseOptional(25 /* DotToken */)) { + const name = parseJSDocIdentifierName(); + node = finishNode(factoryCreatePropertyAccessExpression(node, name), pos); + } + return node; + } + function parseSimpleTag(start2, createTag, tagName, margin, indentText) { + return finishNode(createTag(tagName, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); + } + function parseThisTag(start2, tagName, margin, indentText) { + const typeExpression = parseJSDocTypeExpression( + /*mayOmitBraces*/ + true + ); + skipWhitespace(); + return finishNode(factory2.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); + } + function parseEnumTag(start2, tagName, margin, indentText) { + const typeExpression = parseJSDocTypeExpression( + /*mayOmitBraces*/ + true + ); + skipWhitespace(); + return finishNode(factory2.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2); + } + function parseTypedefTag(start2, tagName, indent2, indentText) { + let typeExpression = tryParseTypeExpression(); + skipWhitespaceOrAsterisk(); + const fullName = parseJSDocTypeNameWithNamespace(); + skipWhitespace(); + let comment = parseTagComments(indent2); + let end2; + if (!typeExpression || isObjectOrObjectArrayTypeReference(typeExpression.type)) { + let child; + let childTypeTag; + let jsDocPropertyTags; + let hasChildren = false; + while (child = tryParse(() => parseChildPropertyTag(indent2))) { + if (child.kind === 345 /* JSDocTemplateTag */) { + break; + } + hasChildren = true; + if (child.kind === 344 /* JSDocTypeTag */) { + if (childTypeTag) { + const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags); + if (lastError) { + addRelatedInfo(lastError, createDetachedDiagnostic(fileName, sourceText, 0, 0, Diagnostics.The_tag_was_first_specified_here)); + } + break; + } else { + childTypeTag = child; + } + } else { + jsDocPropertyTags = append(jsDocPropertyTags, child); + } + } + if (hasChildren) { + const isArrayType = typeExpression && typeExpression.type.kind === 188 /* ArrayType */; + const jsdocTypeLiteral = factory2.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType); + typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral, start2); + end2 = typeExpression.end; + } + } + end2 = end2 || comment !== void 0 ? getNodePos() : (fullName ?? typeExpression ?? tagName).end; + if (!comment) { + comment = parseTrailingTagComments(start2, end2, indent2, indentText); + } + const typedefTag = factory2.createJSDocTypedefTag(tagName, typeExpression, fullName, comment); + return finishNode(typedefTag, start2, end2); + } + function parseJSDocTypeNameWithNamespace(nested) { + const start2 = scanner.getTokenStart(); + if (!tokenIsIdentifierOrKeyword(token())) { + return void 0; + } + const typeNameOrNamespaceName = parseJSDocIdentifierName(); + if (parseOptional(25 /* DotToken */)) { + const body = parseJSDocTypeNameWithNamespace( + /*nested*/ + true + ); + const jsDocNamespaceNode = factory2.createModuleDeclaration( + /*modifiers*/ + void 0, + typeNameOrNamespaceName, + body, + nested ? 8 /* NestedNamespace */ : void 0 + ); + return finishNode(jsDocNamespaceNode, start2); + } + if (nested) { + typeNameOrNamespaceName.flags |= 4096 /* IdentifierIsInJSDocNamespace */; + } + return typeNameOrNamespaceName; + } + function parseCallbackTagParameters(indent2) { + const pos = getNodePos(); + let child; + let parameters; + while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) { + if (child.kind === 345 /* JSDocTemplateTag */) { + parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag); + break; + } + parameters = append(parameters, child); + } + return createNodeArray(parameters || [], pos); + } + function parseJSDocSignature(start2, indent2) { + const parameters = parseCallbackTagParameters(indent2); + const returnTag = tryParse(() => { + if (parseOptionalJsdoc(60 /* AtToken */)) { + const tag = parseTag(indent2); + if (tag && tag.kind === 342 /* JSDocReturnTag */) { + return tag; + } + } + }); + return finishNode(factory2.createJSDocSignature( + /*typeParameters*/ + void 0, + parameters, + returnTag + ), start2); + } + function parseCallbackTag(start2, tagName, indent2, indentText) { + const fullName = parseJSDocTypeNameWithNamespace(); + skipWhitespace(); + let comment = parseTagComments(indent2); + const typeExpression = parseJSDocSignature(start2, indent2); + if (!comment) { + comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); + } + const end2 = comment !== void 0 ? getNodePos() : typeExpression.end; + return finishNode(factory2.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start2, end2); + } + function parseOverloadTag(start2, tagName, indent2, indentText) { + skipWhitespace(); + let comment = parseTagComments(indent2); + const typeExpression = parseJSDocSignature(start2, indent2); + if (!comment) { + comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText); + } + const end2 = comment !== void 0 ? getNodePos() : typeExpression.end; + return finishNode(factory2.createJSDocOverloadTag(tagName, typeExpression, comment), start2, end2); + } + function escapedTextsEqual(a, b) { + while (!isIdentifier(a) || !isIdentifier(b)) { + if (!isIdentifier(a) && !isIdentifier(b) && a.right.escapedText === b.right.escapedText) { + a = a.left; + b = b.left; + } else { + return false; + } + } + return a.escapedText === b.escapedText; + } + function parseChildPropertyTag(indent2) { + return parseChildParameterOrPropertyTag(1 /* Property */, indent2); + } + function parseChildParameterOrPropertyTag(target, indent2, name) { + let canParseTag = true; + let seenAsterisk = false; + while (true) { + switch (nextTokenJSDoc()) { + case 60 /* AtToken */: + if (canParseTag) { + const child = tryParseChildTag(target, indent2); + if (child && (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) { + return false; + } + return child; + } + seenAsterisk = false; + break; + case 4 /* NewLineTrivia */: + canParseTag = true; + seenAsterisk = false; + break; + case 42 /* AsteriskToken */: + if (seenAsterisk) { + canParseTag = false; + } + seenAsterisk = true; + break; + case 80 /* Identifier */: + canParseTag = false; + break; + case 1 /* EndOfFileToken */: + return false; + } + } + } + function tryParseChildTag(target, indent2) { + Debug.assert(token() === 60 /* AtToken */); + const start2 = scanner.getTokenFullStart(); + nextTokenJSDoc(); + const tagName = parseJSDocIdentifierName(); + const indentText = skipWhitespaceOrAsterisk(); + let t; + switch (tagName.escapedText) { + case "type": + return target === 1 /* Property */ && parseTypeTag(start2, tagName); + case "prop": + case "property": + t = 1 /* Property */; + break; + case "arg": + case "argument": + case "param": + t = 2 /* Parameter */ | 4 /* CallbackParameter */; + break; + case "template": + return parseTemplateTag(start2, tagName, indent2, indentText); + case "this": + return parseThisTag(start2, tagName, indent2, indentText); + default: + return false; + } + if (!(target & t)) { + return false; + } + return parseParameterOrPropertyTag(start2, tagName, target, indent2); + } + function parseTemplateTagTypeParameter() { + const typeParameterPos = getNodePos(); + const isBracketed = parseOptionalJsdoc(23 /* OpenBracketToken */); + if (isBracketed) { + skipWhitespace(); + } + const modifiers = parseModifiers( + /*allowDecorators*/ + false, + /*permitConstAsModifier*/ + true + ); + const name = parseJSDocIdentifierName(Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces); + let defaultType; + if (isBracketed) { + skipWhitespace(); + parseExpected(64 /* EqualsToken */); + defaultType = doInsideOfContext(16777216 /* JSDoc */, parseJSDocType); + parseExpected(24 /* CloseBracketToken */); + } + if (nodeIsMissing(name)) { + return void 0; + } + return finishNode(factory2.createTypeParameterDeclaration( + modifiers, + name, + /*constraint*/ + void 0, + defaultType + ), typeParameterPos); + } + function parseTemplateTagTypeParameters() { + const pos = getNodePos(); + const typeParameters = []; + do { + skipWhitespace(); + const node = parseTemplateTagTypeParameter(); + if (node !== void 0) { + typeParameters.push(node); + } + skipWhitespaceOrAsterisk(); + } while (parseOptionalJsdoc(28 /* CommaToken */)); + return createNodeArray(typeParameters, pos); + } + function parseTemplateTag(start2, tagName, indent2, indentText) { + const constraint = token() === 19 /* OpenBraceToken */ ? parseJSDocTypeExpression() : void 0; + const typeParameters = parseTemplateTagTypeParameters(); + return finishNode(factory2.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2); + } + function parseOptionalJsdoc(t) { + if (token() === t) { + nextTokenJSDoc(); + return true; + } + return false; + } + function parseJSDocEntityName() { + let entity = parseJSDocIdentifierName(); + if (parseOptional(23 /* OpenBracketToken */)) { + parseExpected(24 /* CloseBracketToken */); + } + while (parseOptional(25 /* DotToken */)) { + const name = parseJSDocIdentifierName(); + if (parseOptional(23 /* OpenBracketToken */)) { + parseExpected(24 /* CloseBracketToken */); + } + entity = createQualifiedName(entity, name); + } + return entity; + } + function parseJSDocIdentifierName(message) { + if (!tokenIsIdentifierOrKeyword(token())) { + return createMissingNode( + 80 /* Identifier */, + /*reportAtCurrentPosition*/ + !message, + message || Diagnostics.Identifier_expected + ); + } + identifierCount++; + const start2 = scanner.getTokenStart(); + const end2 = scanner.getTokenEnd(); + const originalKeywordKind = token(); + const text = internIdentifier(scanner.getTokenValue()); + const result2 = finishNode(factoryCreateIdentifier(text, originalKeywordKind), start2, end2); + nextTokenJSDoc(); + return result2; + } + } + })(JSDocParser = Parser2.JSDocParser || (Parser2.JSDocParser = {})); +})(Parser || (Parser = {})); +var incrementallyParsedFiles = /* @__PURE__ */ new WeakSet(); +function markAsIncrementallyParsed(sourceFile) { + if (incrementallyParsedFiles.has(sourceFile)) { + Debug.fail("Source file has already been incrementally parsed"); + } + incrementallyParsedFiles.add(sourceFile); +} +var intersectingChangeSet = /* @__PURE__ */ new WeakSet(); +function intersectsIncrementalChange(node) { + return intersectingChangeSet.has(node); +} +function markAsIntersectingIncrementalChange(node) { + intersectingChangeSet.add(node); +} +var IncrementalParser; +((IncrementalParser2) => { + function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) { + aggressiveChecks = aggressiveChecks || Debug.shouldAssert(2 /* Aggressive */); + checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks); + if (textChangeRangeIsUnchanged(textChangeRange)) { + return sourceFile; + } + if (sourceFile.statements.length === 0) { + return Parser.parseSourceFile( + sourceFile.fileName, + newText, + sourceFile.languageVersion, + /*syntaxCursor*/ + void 0, + /*setParentNodes*/ + true, + sourceFile.scriptKind, + sourceFile.setExternalModuleIndicator, + sourceFile.jsDocParsingMode + ); + } + markAsIncrementallyParsed(sourceFile); + Parser.fixupParentReferences(sourceFile); + const oldText = sourceFile.text; + const syntaxCursor = createSyntaxCursor(sourceFile); + const changeRange = extendToAffectedRange(sourceFile, textChangeRange); + checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks); + Debug.assert(changeRange.span.start <= textChangeRange.span.start); + Debug.assert(textSpanEnd(changeRange.span) === textSpanEnd(textChangeRange.span)); + Debug.assert(textSpanEnd(textChangeRangeNewSpan(changeRange)) === textSpanEnd(textChangeRangeNewSpan(textChangeRange))); + const delta = textChangeRangeNewSpan(changeRange).length - changeRange.span.length; + updateTokenPositionsAndMarkElements(sourceFile, changeRange.span.start, textSpanEnd(changeRange.span), textSpanEnd(textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks); + const result = Parser.parseSourceFile( + sourceFile.fileName, + newText, + sourceFile.languageVersion, + syntaxCursor, + /*setParentNodes*/ + true, + sourceFile.scriptKind, + sourceFile.setExternalModuleIndicator, + sourceFile.jsDocParsingMode + ); + result.commentDirectives = getNewCommentDirectives( + sourceFile.commentDirectives, + result.commentDirectives, + changeRange.span.start, + textSpanEnd(changeRange.span), + delta, + oldText, + newText, + aggressiveChecks + ); + result.impliedNodeFormat = sourceFile.impliedNodeFormat; + transferSourceFileChildren(sourceFile, result); + return result; + } + IncrementalParser2.updateSourceFile = updateSourceFile; + function getNewCommentDirectives(oldDirectives, newDirectives, changeStart, changeRangeOldEnd, delta, oldText, newText, aggressiveChecks) { + if (!oldDirectives) return newDirectives; + let commentDirectives; + let addedNewlyScannedDirectives = false; + for (const directive of oldDirectives) { + const { range, type } = directive; + if (range.end < changeStart) { + commentDirectives = append(commentDirectives, directive); + } else if (range.pos > changeRangeOldEnd) { + addNewlyScannedDirectives(); + const updatedDirective = { + range: { pos: range.pos + delta, end: range.end + delta }, + type + }; + commentDirectives = append(commentDirectives, updatedDirective); + if (aggressiveChecks) { + Debug.assert(oldText.substring(range.pos, range.end) === newText.substring(updatedDirective.range.pos, updatedDirective.range.end)); + } + } + } + addNewlyScannedDirectives(); + return commentDirectives; + function addNewlyScannedDirectives() { + if (addedNewlyScannedDirectives) return; + addedNewlyScannedDirectives = true; + if (!commentDirectives) { + commentDirectives = newDirectives; + } else if (newDirectives) { + commentDirectives.push(...newDirectives); + } + } + } + function moveElementEntirelyPastChangeRange(element, origSourceFile, isArray2, delta, oldText, newText, aggressiveChecks) { + if (isArray2) { + visitArray2(element); + } else { + visitNode3(element); + } + return; + function visitNode3(node) { + let text = ""; + if (aggressiveChecks && shouldCheckNode(node)) { + text = oldText.substring(node.pos, node.end); + } + unsetNodeChildren(node, origSourceFile); + setTextRangePosEnd(node, node.pos + delta, node.end + delta); + if (aggressiveChecks && shouldCheckNode(node)) { + Debug.assert(text === newText.substring(node.pos, node.end)); + } + forEachChild(node, visitNode3, visitArray2); + if (hasJSDocNodes(node)) { + for (const jsDocComment of node.jsDoc) { + visitNode3(jsDocComment); + } + } + checkNodePositions(node, aggressiveChecks); + } + function visitArray2(array) { + setTextRangePosEnd(array, array.pos + delta, array.end + delta); + for (const node of array) { + visitNode3(node); + } + } + } + function shouldCheckNode(node) { + switch (node.kind) { + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + case 80 /* Identifier */: + return true; + } + return false; + } + function adjustIntersectingElement(element, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta) { + Debug.assert(element.end >= changeStart, "Adjusting an element that was entirely before the change range"); + Debug.assert(element.pos <= changeRangeOldEnd, "Adjusting an element that was entirely after the change range"); + Debug.assert(element.pos <= element.end); + const pos = Math.min(element.pos, changeRangeNewEnd); + const end = element.end >= changeRangeOldEnd ? ( + // Element ends after the change range. Always adjust the end pos. + element.end + delta + ) : ( + // Element ends in the change range. The element will keep its position if + // possible. Or Move backward to the new-end if it's in the 'Y' range. + Math.min(element.end, changeRangeNewEnd) + ); + Debug.assert(pos <= end); + if (element.parent) { + const parent = element.parent; + Debug.assertGreaterThanOrEqual(pos, parent.pos); + Debug.assertLessThanOrEqual(end, parent.end); + } + setTextRangePosEnd(element, pos, end); + } + function checkNodePositions(node, aggressiveChecks) { + if (aggressiveChecks) { + let pos = node.pos; + const visitNode3 = (child) => { + Debug.assert(child.pos >= pos); + pos = child.end; + }; + if (hasJSDocNodes(node)) { + for (const jsDocComment of node.jsDoc) { + visitNode3(jsDocComment); + } + } + forEachChild(node, visitNode3); + Debug.assert(pos <= node.end); + } + } + function updateTokenPositionsAndMarkElements(sourceFile, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta, oldText, newText, aggressiveChecks) { + visitNode3(sourceFile); + return; + function visitNode3(child) { + Debug.assert(child.pos <= child.end); + if (child.pos > changeRangeOldEnd) { + moveElementEntirelyPastChangeRange( + child, + sourceFile, + /*isArray*/ + false, + delta, + oldText, + newText, + aggressiveChecks + ); + return; + } + const fullEnd = child.end; + if (fullEnd >= changeStart) { + markAsIntersectingIncrementalChange(child); + unsetNodeChildren(child, sourceFile); + adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); + forEachChild(child, visitNode3, visitArray2); + if (hasJSDocNodes(child)) { + for (const jsDocComment of child.jsDoc) { + visitNode3(jsDocComment); + } + } + checkNodePositions(child, aggressiveChecks); + return; + } + Debug.assert(fullEnd < changeStart); + } + function visitArray2(array) { + Debug.assert(array.pos <= array.end); + if (array.pos > changeRangeOldEnd) { + moveElementEntirelyPastChangeRange( + array, + sourceFile, + /*isArray*/ + true, + delta, + oldText, + newText, + aggressiveChecks + ); + return; + } + const fullEnd = array.end; + if (fullEnd >= changeStart) { + markAsIntersectingIncrementalChange(array); + adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta); + for (const node of array) { + visitNode3(node); + } + return; + } + Debug.assert(fullEnd < changeStart); + } + } + function extendToAffectedRange(sourceFile, changeRange) { + const maxLookahead = 1; + let start = changeRange.span.start; + for (let i = 0; start > 0 && i <= maxLookahead; i++) { + const nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start); + Debug.assert(nearestNode.pos <= start); + const position = nearestNode.pos; + start = Math.max(0, position - 1); + } + const finalSpan = createTextSpanFromBounds(start, textSpanEnd(changeRange.span)); + const finalLength = changeRange.newLength + (changeRange.span.start - start); + return createTextChangeRange(finalSpan, finalLength); + } + function findNearestNodeStartingBeforeOrAtPosition(sourceFile, position) { + let bestResult = sourceFile; + let lastNodeEntirelyBeforePosition; + forEachChild(sourceFile, visit); + if (lastNodeEntirelyBeforePosition) { + const lastChildOfLastEntireNodeBeforePosition = getLastDescendant(lastNodeEntirelyBeforePosition); + if (lastChildOfLastEntireNodeBeforePosition.pos > bestResult.pos) { + bestResult = lastChildOfLastEntireNodeBeforePosition; + } + } + return bestResult; + function getLastDescendant(node) { + while (true) { + const lastChild = getLastChild(node); + if (lastChild) { + node = lastChild; + } else { + return node; + } + } + } + function visit(child) { + if (nodeIsMissing(child)) { + return; + } + if (child.pos <= position) { + if (child.pos >= bestResult.pos) { + bestResult = child; + } + if (position < child.end) { + forEachChild(child, visit); + return true; + } else { + Debug.assert(child.end <= position); + lastNodeEntirelyBeforePosition = child; + } + } else { + Debug.assert(child.pos > position); + return true; + } + } + } + function checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks) { + const oldText = sourceFile.text; + if (textChangeRange) { + Debug.assert(oldText.length - textChangeRange.span.length + textChangeRange.newLength === newText.length); + if (aggressiveChecks || Debug.shouldAssert(3 /* VeryAggressive */)) { + const oldTextPrefix = oldText.substr(0, textChangeRange.span.start); + const newTextPrefix = newText.substr(0, textChangeRange.span.start); + Debug.assert(oldTextPrefix === newTextPrefix); + const oldTextSuffix = oldText.substring(textSpanEnd(textChangeRange.span), oldText.length); + const newTextSuffix = newText.substring(textSpanEnd(textChangeRangeNewSpan(textChangeRange)), newText.length); + Debug.assert(oldTextSuffix === newTextSuffix); + } + } + } + function createSyntaxCursor(sourceFile) { + let currentArray = sourceFile.statements; + let currentArrayIndex = 0; + Debug.assert(currentArrayIndex < currentArray.length); + let current = currentArray[currentArrayIndex]; + let lastQueriedPosition = -1 /* Value */; + return { + currentNode(position) { + if (position !== lastQueriedPosition) { + if (current && current.end === position && currentArrayIndex < currentArray.length - 1) { + currentArrayIndex++; + current = currentArray[currentArrayIndex]; + } + if (!current || current.pos !== position) { + findHighestListElementThatStartsAtPosition(position); + } + } + lastQueriedPosition = position; + Debug.assert(!current || current.pos === position); + return current; + } + }; + function findHighestListElementThatStartsAtPosition(position) { + currentArray = void 0; + currentArrayIndex = -1 /* Value */; + current = void 0; + forEachChild(sourceFile, visitNode3, visitArray2); + return; + function visitNode3(node) { + if (position >= node.pos && position < node.end) { + forEachChild(node, visitNode3, visitArray2); + return true; + } + return false; + } + function visitArray2(array) { + if (position >= array.pos && position < array.end) { + for (let i = 0; i < array.length; i++) { + const child = array[i]; + if (child) { + if (child.pos === position) { + currentArray = array; + currentArrayIndex = i; + current = child; + return true; + } else { + if (child.pos < position && position < child.end) { + forEachChild(child, visitNode3, visitArray2); + return true; + } + } + } + } + } + return false; + } + } + } + IncrementalParser2.createSyntaxCursor = createSyntaxCursor; + let InvalidPosition; + ((InvalidPosition2) => { + InvalidPosition2[InvalidPosition2["Value"] = -1] = "Value"; + })(InvalidPosition || (InvalidPosition = {})); +})(IncrementalParser || (IncrementalParser = {})); +function isDeclarationFileName(fileName) { + return getDeclarationFileExtension(fileName) !== void 0; +} +function getDeclarationFileExtension(fileName) { + const standardExtension = getAnyExtensionFromPath( + fileName, + supportedDeclarationExtensions, + /*ignoreCase*/ + false + ); + if (standardExtension) { + return standardExtension; + } + if (fileExtensionIs(fileName, ".ts" /* Ts */)) { + const index = getBaseFileName(fileName).lastIndexOf(".d."); + if (index >= 0) { + return fileName.substring(index); + } + } + return void 0; +} +function parseResolutionMode(mode, pos, end, reportDiagnostic) { + if (!mode) { + return void 0; + } + if (mode === "import") { + return 99 /* ESNext */; + } + if (mode === "require") { + return 1 /* CommonJS */; + } + reportDiagnostic(pos, end - pos, Diagnostics.resolution_mode_should_be_either_require_or_import); + return void 0; +} +function processCommentPragmas(context, sourceText) { + const pragmas = []; + for (const range of getLeadingCommentRanges(sourceText, 0) || emptyArray) { + const comment = sourceText.substring(range.pos, range.end); + extractPragmas(pragmas, range, comment); + } + context.pragmas = /* @__PURE__ */ new Map(); + for (const pragma of pragmas) { + if (context.pragmas.has(pragma.name)) { + const currentValue = context.pragmas.get(pragma.name); + if (currentValue instanceof Array) { + currentValue.push(pragma.args); + } else { + context.pragmas.set(pragma.name, [currentValue, pragma.args]); + } + continue; + } + context.pragmas.set(pragma.name, pragma.args); + } +} +function processPragmasIntoFields(context, reportDiagnostic) { + context.checkJsDirective = void 0; + context.referencedFiles = []; + context.typeReferenceDirectives = []; + context.libReferenceDirectives = []; + context.amdDependencies = []; + context.hasNoDefaultLib = false; + context.pragmas.forEach((entryOrList, key) => { + switch (key) { + case "reference": { + const referencedFiles = context.referencedFiles; + const typeReferenceDirectives = context.typeReferenceDirectives; + const libReferenceDirectives = context.libReferenceDirectives; + forEach(toArray(entryOrList), (arg) => { + const { types, lib, path, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments; + const preserve = _preserve === "true" ? true : void 0; + if (arg.arguments["no-default-lib"] === "true") { + context.hasNoDefaultLib = true; + } else if (types) { + const parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic); + typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} }); + } else if (lib) { + libReferenceDirectives.push({ pos: lib.pos, end: lib.end, fileName: lib.value, ...preserve ? { preserve } : {} }); + } else if (path) { + referencedFiles.push({ pos: path.pos, end: path.end, fileName: path.value, ...preserve ? { preserve } : {} }); + } else { + reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, Diagnostics.Invalid_reference_directive_syntax); + } + }); + break; + } + case "amd-dependency": { + context.amdDependencies = map( + toArray(entryOrList), + (x) => ({ name: x.arguments.name, path: x.arguments.path }) + ); + break; + } + case "amd-module": { + if (entryOrList instanceof Array) { + for (const entry of entryOrList) { + if (context.moduleName) { + reportDiagnostic(entry.range.pos, entry.range.end - entry.range.pos, Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments); + } + context.moduleName = entry.arguments.name; + } + } else { + context.moduleName = entryOrList.arguments.name; + } + break; + } + case "ts-nocheck": + case "ts-check": { + forEach(toArray(entryOrList), (entry) => { + if (!context.checkJsDirective || entry.range.pos > context.checkJsDirective.pos) { + context.checkJsDirective = { + enabled: key === "ts-check", + end: entry.range.end, + pos: entry.range.pos + }; + } + }); + break; + } + case "jsx": + case "jsxfrag": + case "jsximportsource": + case "jsxruntime": + return; + default: + Debug.fail("Unhandled pragma kind"); + } + }); +} +var namedArgRegExCache = /* @__PURE__ */ new Map(); +function getNamedArgRegEx(name) { + if (namedArgRegExCache.has(name)) { + return namedArgRegExCache.get(name); + } + const result = new RegExp(`(\\s${name}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`, "im"); + namedArgRegExCache.set(name, result); + return result; +} +var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; +var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; +function extractPragmas(pragmas, range, text) { + const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); + if (tripleSlash) { + const name = tripleSlash[1].toLowerCase(); + const pragma = commentPragmas[name]; + if (!pragma || !(pragma.kind & 1 /* TripleSlashXML */)) { + return; + } + if (pragma.args) { + const argument = {}; + for (const arg of pragma.args) { + const matcher = getNamedArgRegEx(arg.name); + const matchResult = matcher.exec(text); + if (!matchResult && !arg.optional) { + return; + } else if (matchResult) { + const value = matchResult[2] || matchResult[3]; + if (arg.captureSpan) { + const startPos = range.pos + matchResult.index + matchResult[1].length + 1; + argument[arg.name] = { + value, + pos: startPos, + end: startPos + value.length + }; + } else { + argument[arg.name] = value; + } + } + } + pragmas.push({ name, args: { arguments: argument, range } }); + } else { + pragmas.push({ name, args: { arguments: {}, range } }); + } + return; + } + const singleLine = range.kind === 2 /* SingleLineCommentTrivia */ && singleLinePragmaRegEx.exec(text); + if (singleLine) { + return addPragmaForMatch(pragmas, range, 2 /* SingleLine */, singleLine); + } + if (range.kind === 3 /* MultiLineCommentTrivia */) { + const multiLinePragmaRegEx = /@(\S+)(\s+.*)?$/gim; + let multiLineMatch; + while (multiLineMatch = multiLinePragmaRegEx.exec(text)) { + addPragmaForMatch(pragmas, range, 4 /* MultiLine */, multiLineMatch); + } + } +} +function addPragmaForMatch(pragmas, range, kind, match) { + if (!match) return; + const name = match[1].toLowerCase(); + const pragma = commentPragmas[name]; + if (!pragma || !(pragma.kind & kind)) { + return; + } + const args = match[2]; + const argument = getNamedPragmaArguments(pragma, args); + if (argument === "fail") return; + pragmas.push({ name, args: { arguments: argument, range } }); + return; +} +function getNamedPragmaArguments(pragma, text) { + if (!text) return {}; + if (!pragma.args) return {}; + const args = text.trim().split(/\s+/); + const argMap = {}; + for (let i = 0; i < pragma.args.length; i++) { + const argument = pragma.args[i]; + if (!args[i] && !argument.optional) { + return "fail"; + } + if (argument.captureSpan) { + return Debug.fail("Capture spans not yet implemented for non-xml pragmas"); + } + argMap[argument.name] = args[i]; + } + return argMap; +} +function tagNamesAreEquivalent(lhs, rhs) { + if (lhs.kind !== rhs.kind) { + return false; + } + if (lhs.kind === 80 /* Identifier */) { + return lhs.escapedText === rhs.escapedText; + } + if (lhs.kind === 110 /* ThisKeyword */) { + return true; + } + if (lhs.kind === 295 /* JsxNamespacedName */) { + return lhs.namespace.escapedText === rhs.namespace.escapedText && lhs.name.escapedText === rhs.name.escapedText; + } + return lhs.name.escapedText === rhs.name.escapedText && tagNamesAreEquivalent(lhs.expression, rhs.expression); +} + +// src/compiler/commandLineParser.ts +var compileOnSaveCommandLineOption = { + name: "compileOnSave", + type: "boolean", + defaultValueDescription: false +}; +var jsxOptionMap = new Map(Object.entries({ + "preserve": 1 /* Preserve */, + "react-native": 3 /* ReactNative */, + "react": 2 /* React */, + "react-jsx": 4 /* ReactJSX */, + "react-jsxdev": 5 /* ReactJSXDev */ +})); +var inverseJsxOptionMap = new Map(mapIterator(jsxOptionMap.entries(), ([key, value]) => ["" + value, key])); +var libEntries = [ + // JavaScript only + ["es5", "lib.es5.d.ts"], + ["es6", "lib.es2015.d.ts"], + ["es2015", "lib.es2015.d.ts"], + ["es7", "lib.es2016.d.ts"], + ["es2016", "lib.es2016.d.ts"], + ["es2017", "lib.es2017.d.ts"], + ["es2018", "lib.es2018.d.ts"], + ["es2019", "lib.es2019.d.ts"], + ["es2020", "lib.es2020.d.ts"], + ["es2021", "lib.es2021.d.ts"], + ["es2022", "lib.es2022.d.ts"], + ["es2023", "lib.es2023.d.ts"], + ["esnext", "lib.esnext.d.ts"], + // Host only + ["dom", "lib.dom.d.ts"], + ["dom.iterable", "lib.dom.iterable.d.ts"], + ["dom.asynciterable", "lib.dom.asynciterable.d.ts"], + ["webworker", "lib.webworker.d.ts"], + ["webworker.importscripts", "lib.webworker.importscripts.d.ts"], + ["webworker.iterable", "lib.webworker.iterable.d.ts"], + ["webworker.asynciterable", "lib.webworker.asynciterable.d.ts"], + ["scripthost", "lib.scripthost.d.ts"], + // ES2015 Or ESNext By-feature options + ["es2015.core", "lib.es2015.core.d.ts"], + ["es2015.collection", "lib.es2015.collection.d.ts"], + ["es2015.generator", "lib.es2015.generator.d.ts"], + ["es2015.iterable", "lib.es2015.iterable.d.ts"], + ["es2015.promise", "lib.es2015.promise.d.ts"], + ["es2015.proxy", "lib.es2015.proxy.d.ts"], + ["es2015.reflect", "lib.es2015.reflect.d.ts"], + ["es2015.symbol", "lib.es2015.symbol.d.ts"], + ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], + ["es2016.array.include", "lib.es2016.array.include.d.ts"], + ["es2016.intl", "lib.es2016.intl.d.ts"], + ["es2017.date", "lib.es2017.date.d.ts"], + ["es2017.object", "lib.es2017.object.d.ts"], + ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], + ["es2017.string", "lib.es2017.string.d.ts"], + ["es2017.intl", "lib.es2017.intl.d.ts"], + ["es2017.typedarrays", "lib.es2017.typedarrays.d.ts"], + ["es2018.asyncgenerator", "lib.es2018.asyncgenerator.d.ts"], + ["es2018.asynciterable", "lib.es2018.asynciterable.d.ts"], + ["es2018.intl", "lib.es2018.intl.d.ts"], + ["es2018.promise", "lib.es2018.promise.d.ts"], + ["es2018.regexp", "lib.es2018.regexp.d.ts"], + ["es2019.array", "lib.es2019.array.d.ts"], + ["es2019.object", "lib.es2019.object.d.ts"], + ["es2019.string", "lib.es2019.string.d.ts"], + ["es2019.symbol", "lib.es2019.symbol.d.ts"], + ["es2019.intl", "lib.es2019.intl.d.ts"], + ["es2020.bigint", "lib.es2020.bigint.d.ts"], + ["es2020.date", "lib.es2020.date.d.ts"], + ["es2020.promise", "lib.es2020.promise.d.ts"], + ["es2020.sharedmemory", "lib.es2020.sharedmemory.d.ts"], + ["es2020.string", "lib.es2020.string.d.ts"], + ["es2020.symbol.wellknown", "lib.es2020.symbol.wellknown.d.ts"], + ["es2020.intl", "lib.es2020.intl.d.ts"], + ["es2020.number", "lib.es2020.number.d.ts"], + ["es2021.promise", "lib.es2021.promise.d.ts"], + ["es2021.string", "lib.es2021.string.d.ts"], + ["es2021.weakref", "lib.es2021.weakref.d.ts"], + ["es2021.intl", "lib.es2021.intl.d.ts"], + ["es2022.array", "lib.es2022.array.d.ts"], + ["es2022.error", "lib.es2022.error.d.ts"], + ["es2022.intl", "lib.es2022.intl.d.ts"], + ["es2022.object", "lib.es2022.object.d.ts"], + ["es2022.sharedmemory", "lib.es2022.sharedmemory.d.ts"], + ["es2022.string", "lib.es2022.string.d.ts"], + ["es2022.regexp", "lib.es2022.regexp.d.ts"], + ["es2023.array", "lib.es2023.array.d.ts"], + ["es2023.collection", "lib.es2023.collection.d.ts"], + ["es2023.intl", "lib.es2023.intl.d.ts"], + ["esnext.array", "lib.es2023.array.d.ts"], + ["esnext.collection", "lib.esnext.collection.d.ts"], + ["esnext.symbol", "lib.es2019.symbol.d.ts"], + ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"], + ["esnext.intl", "lib.esnext.intl.d.ts"], + ["esnext.disposable", "lib.esnext.disposable.d.ts"], + ["esnext.bigint", "lib.es2020.bigint.d.ts"], + ["esnext.string", "lib.es2022.string.d.ts"], + ["esnext.promise", "lib.esnext.promise.d.ts"], + ["esnext.weakref", "lib.es2021.weakref.d.ts"], + ["esnext.decorators", "lib.esnext.decorators.d.ts"], + ["esnext.object", "lib.esnext.object.d.ts"], + ["esnext.array", "lib.esnext.array.d.ts"], + ["esnext.regexp", "lib.esnext.regexp.d.ts"], + ["esnext.string", "lib.esnext.string.d.ts"], + ["decorators", "lib.decorators.d.ts"], + ["decorators.legacy", "lib.decorators.legacy.d.ts"] +]; +var libs = libEntries.map((entry) => entry[0]); +var libMap = new Map(libEntries); +var optionsForWatch = [ + { + name: "watchFile", + type: new Map(Object.entries({ + fixedpollinginterval: 0 /* FixedPollingInterval */, + prioritypollinginterval: 1 /* PriorityPollingInterval */, + dynamicprioritypolling: 2 /* DynamicPriorityPolling */, + fixedchunksizepolling: 3 /* FixedChunkSizePolling */, + usefsevents: 4 /* UseFsEvents */, + usefseventsonparentdirectory: 5 /* UseFsEventsOnParentDirectory */ + })), + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Specify_how_the_TypeScript_watch_mode_works, + defaultValueDescription: 4 /* UseFsEvents */ + }, + { + name: "watchDirectory", + type: new Map(Object.entries({ + usefsevents: 0 /* UseFsEvents */, + fixedpollinginterval: 1 /* FixedPollingInterval */, + dynamicprioritypolling: 2 /* DynamicPriorityPolling */, + fixedchunksizepolling: 3 /* FixedChunkSizePolling */ + })), + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality, + defaultValueDescription: 0 /* UseFsEvents */ + }, + { + name: "fallbackPolling", + type: new Map(Object.entries({ + fixedinterval: 0 /* FixedInterval */, + priorityinterval: 1 /* PriorityInterval */, + dynamicpriority: 2 /* DynamicPriority */, + fixedchunksize: 3 /* FixedChunkSize */ + })), + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers, + defaultValueDescription: 1 /* PriorityInterval */ + }, + { + name: "synchronousWatchDirectory", + type: "boolean", + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively, + defaultValueDescription: false + }, + { + name: "excludeDirectories", + type: "list", + element: { + name: "excludeDirectory", + type: "string", + isFilePath: true, + extraValidation: specToDiagnostic + }, + allowConfigDirTemplateSubstitution: true, + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Remove_a_list_of_directories_from_the_watch_process + }, + { + name: "excludeFiles", + type: "list", + element: { + name: "excludeFile", + type: "string", + isFilePath: true, + extraValidation: specToDiagnostic + }, + allowConfigDirTemplateSubstitution: true, + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing + } +]; +var commonOptionsWithBuild = [ + { + name: "help", + shortName: "h", + type: "boolean", + showInSimplifiedHelpView: true, + isCommandLineOnly: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Print_this_message, + defaultValueDescription: false + }, + { + name: "help", + shortName: "?", + type: "boolean", + isCommandLineOnly: true, + category: Diagnostics.Command_line_Options, + defaultValueDescription: false + }, + { + name: "watch", + shortName: "w", + type: "boolean", + showInSimplifiedHelpView: true, + isCommandLineOnly: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Watch_input_files, + defaultValueDescription: false + }, + { + name: "preserveWatchOutput", + type: "boolean", + showInSimplifiedHelpView: false, + category: Diagnostics.Output_Formatting, + description: Diagnostics.Disable_wiping_the_console_in_watch_mode, + defaultValueDescription: false + }, + { + name: "listFiles", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Print_all_of_the_files_read_during_the_compilation, + defaultValueDescription: false + }, + { + name: "explainFiles", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included, + defaultValueDescription: false + }, + { + name: "listEmittedFiles", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Print_the_names_of_emitted_files_after_a_compilation, + defaultValueDescription: false + }, + { + name: "pretty", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Output_Formatting, + description: Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read, + defaultValueDescription: true + }, + { + name: "traceResolution", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Log_paths_used_during_the_moduleResolution_process, + defaultValueDescription: false + }, + { + name: "diagnostics", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Output_compiler_performance_information_after_building, + defaultValueDescription: false + }, + { + name: "extendedDiagnostics", + type: "boolean", + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Output_more_detailed_compiler_performance_information_after_building, + defaultValueDescription: false + }, + { + name: "generateCpuProfile", + type: "string", + isFilePath: true, + paramType: Diagnostics.FILE_OR_DIRECTORY, + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging, + defaultValueDescription: "profile.cpuprofile" + }, + { + name: "generateTrace", + type: "string", + isFilePath: true, + isCommandLineOnly: true, + paramType: Diagnostics.DIRECTORY, + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Generates_an_event_trace_and_a_list_of_types + }, + { + name: "incremental", + shortName: "i", + type: "boolean", + category: Diagnostics.Projects, + description: Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects, + transpileOptionValue: void 0, + defaultValueDescription: Diagnostics.false_unless_composite_is_set + }, + { + name: "declaration", + shortName: "d", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + transpileOptionValue: void 0, + description: Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project, + defaultValueDescription: Diagnostics.false_unless_composite_is_set + }, + { + name: "declarationMap", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + defaultValueDescription: false, + description: Diagnostics.Create_sourcemaps_for_d_ts_files + }, + { + name: "emitDeclarationOnly", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + description: Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files, + transpileOptionValue: void 0, + defaultValueDescription: false + }, + { + name: "sourceMap", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + defaultValueDescription: false, + description: Diagnostics.Create_source_map_files_for_emitted_JavaScript_files + }, + { + name: "inlineSourceMap", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript, + defaultValueDescription: false + }, + { + name: "assumeChangesOnlyAffectDirectDependencies", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Watch_and_Build_Modes, + description: Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it, + defaultValueDescription: false + }, + { + name: "locale", + type: "string", + category: Diagnostics.Command_line_Options, + isCommandLineOnly: true, + description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit, + defaultValueDescription: Diagnostics.Platform_specific + } +]; +var targetOptionDeclaration = { + name: "target", + shortName: "t", + type: new Map(Object.entries({ + es3: 0 /* ES3 */, + es5: 1 /* ES5 */, + es6: 2 /* ES2015 */, + es2015: 2 /* ES2015 */, + es2016: 3 /* ES2016 */, + es2017: 4 /* ES2017 */, + es2018: 5 /* ES2018 */, + es2019: 6 /* ES2019 */, + es2020: 7 /* ES2020 */, + es2021: 8 /* ES2021 */, + es2022: 9 /* ES2022 */, + es2023: 10 /* ES2023 */, + esnext: 99 /* ESNext */ + })), + affectsSourceFile: true, + affectsModuleResolution: true, + affectsEmit: true, + affectsBuildInfo: true, + deprecatedKeys: /* @__PURE__ */ new Set(["es3"]), + paramType: Diagnostics.VERSION, + showInSimplifiedHelpView: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations, + defaultValueDescription: 1 /* ES5 */ +}; +var moduleOptionDeclaration = { + name: "module", + shortName: "m", + type: new Map(Object.entries({ + none: 0 /* None */, + commonjs: 1 /* CommonJS */, + amd: 2 /* AMD */, + system: 4 /* System */, + umd: 3 /* UMD */, + es6: 5 /* ES2015 */, + es2015: 5 /* ES2015 */, + es2020: 6 /* ES2020 */, + es2022: 7 /* ES2022 */, + esnext: 99 /* ESNext */, + node16: 100 /* Node16 */, + nodenext: 199 /* NodeNext */, + preserve: 200 /* Preserve */ + })), + affectsSourceFile: true, + affectsModuleResolution: true, + affectsEmit: true, + affectsBuildInfo: true, + paramType: Diagnostics.KIND, + showInSimplifiedHelpView: true, + category: Diagnostics.Modules, + description: Diagnostics.Specify_what_module_code_is_generated, + defaultValueDescription: void 0 +}; +var commandOptionsWithoutBuild = [ + // CommandLine only options + { + name: "all", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Show_all_compiler_options, + defaultValueDescription: false + }, + { + name: "version", + shortName: "v", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Print_the_compiler_s_version, + defaultValueDescription: false + }, + { + name: "init", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file, + defaultValueDescription: false + }, + { + name: "project", + shortName: "p", + type: "string", + isFilePath: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + paramType: Diagnostics.FILE_OR_DIRECTORY, + description: Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json + }, + { + name: "build", + type: "boolean", + shortName: "b", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, + defaultValueDescription: false + }, + { + name: "showConfig", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + isCommandLineOnly: true, + description: Diagnostics.Print_the_final_configuration_instead_of_building, + defaultValueDescription: false + }, + { + name: "listFilesOnly", + type: "boolean", + category: Diagnostics.Command_line_Options, + isCommandLineOnly: true, + description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing, + defaultValueDescription: false + }, + // Basic + targetOptionDeclaration, + moduleOptionDeclaration, + { + name: "lib", + type: "list", + element: { + name: "lib", + type: libMap, + defaultValueDescription: void 0 + }, + affectsProgramStructure: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment, + transpileOptionValue: void 0 + }, + { + name: "allowJs", + type: "boolean", + allowJsFlag: true, + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.JavaScript_Support, + description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files, + defaultValueDescription: false + }, + { + name: "checkJs", + type: "boolean", + affectsModuleResolution: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.JavaScript_Support, + description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files, + defaultValueDescription: false + }, + { + name: "jsx", + type: jsxOptionMap, + affectsSourceFile: true, + affectsEmit: true, + affectsBuildInfo: true, + affectsModuleResolution: true, + // The checker emits an error when it sees JSX but this option is not set in compilerOptions. + // This is effectively a semantic error, so mark this option as affecting semantic diagnostics + // so we know to refresh errors when this option is changed. + affectsSemanticDiagnostics: true, + paramType: Diagnostics.KIND, + showInSimplifiedHelpView: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_what_JSX_code_is_generated, + defaultValueDescription: void 0 + }, + { + name: "outFile", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + affectsDeclarationPath: true, + isFilePath: true, + paramType: Diagnostics.FILE, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + description: Diagnostics.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, + transpileOptionValue: void 0 + }, + { + name: "outDir", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + affectsDeclarationPath: true, + isFilePath: true, + paramType: Diagnostics.DIRECTORY, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + description: Diagnostics.Specify_an_output_folder_for_all_emitted_files + }, + { + name: "rootDir", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + affectsDeclarationPath: true, + isFilePath: true, + paramType: Diagnostics.LOCATION, + category: Diagnostics.Modules, + description: Diagnostics.Specify_the_root_folder_within_your_source_files, + defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files + }, + { + name: "composite", + type: "boolean", + // Not setting affectsEmit because we calculate this flag might not affect full emit + affectsBuildInfo: true, + isTSConfigOnly: true, + category: Diagnostics.Projects, + transpileOptionValue: void 0, + defaultValueDescription: false, + description: Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references + }, + { + name: "tsBuildInfoFile", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + isFilePath: true, + paramType: Diagnostics.FILE, + category: Diagnostics.Projects, + transpileOptionValue: void 0, + defaultValueDescription: ".tsbuildinfo", + description: Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file + }, + { + name: "removeComments", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + defaultValueDescription: false, + description: Diagnostics.Disable_emitting_comments + }, + { + name: "noCheck", + type: "boolean", + showInSimplifiedHelpView: false, + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported, + transpileOptionValue: true, + defaultValueDescription: false, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + extraValidation() { + return [Diagnostics.Unknown_compiler_option_0, "noCheck"]; + } + }, + { + name: "noEmit", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + description: Diagnostics.Disable_emitting_files_from_a_compilation, + transpileOptionValue: void 0, + defaultValueDescription: false + }, + { + name: "importHelpers", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + affectsSourceFile: true, + category: Diagnostics.Emit, + description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file, + defaultValueDescription: false + }, + { + name: "importsNotUsedAsValues", + type: new Map(Object.entries({ + remove: 0 /* Remove */, + preserve: 1 /* Preserve */, + error: 2 /* Error */ + })), + affectsEmit: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types, + defaultValueDescription: 0 /* Remove */ + }, + { + name: "downlevelIteration", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration, + defaultValueDescription: false + }, + { + name: "isolatedModules", + type: "boolean", + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports, + transpileOptionValue: true, + defaultValueDescription: false + }, + { + name: "verbatimModuleSyntax", + type: "boolean", + affectsEmit: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Interop_Constraints, + description: Diagnostics.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, + defaultValueDescription: false + }, + { + name: "isolatedDeclarations", + type: "boolean", + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files, + defaultValueDescription: false, + affectsBuildInfo: true, + affectsSemanticDiagnostics: true + }, + // Strict Type Checks + { + name: "strict", + type: "boolean", + // Though this affects semantic diagnostics, affectsSemanticDiagnostics is not set here + // The value of each strictFlag depends on own strictFlag value or this and never accessed directly. + // But we need to store `strict` in builf info, even though it won't be examined directly, so that the + // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_all_strict_type_checking_options, + defaultValueDescription: false + }, + { + name: "noImplicitAny", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "strictNullChecks", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.When_type_checking_take_into_account_null_and_undefined, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "strictFunctionTypes", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "strictBindCallApply", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "strictPropertyInitialization", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "noImplicitThis", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "useUnknownInCatchVariables", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + { + name: "alwaysStrict", + type: "boolean", + affectsSourceFile: true, + affectsEmit: true, + affectsBuildInfo: true, + strictFlag: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Ensure_use_strict_is_always_emitted, + defaultValueDescription: Diagnostics.false_unless_strict_is_set + }, + // Additional Checks + { + name: "noUnusedLocals", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read, + defaultValueDescription: false + }, + { + name: "noUnusedParameters", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read, + defaultValueDescription: false + }, + { + name: "exactOptionalPropertyTypes", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined, + defaultValueDescription: false + }, + { + name: "noImplicitReturns", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function, + defaultValueDescription: false + }, + { + name: "noFallthroughCasesInSwitch", + type: "boolean", + affectsBindDiagnostics: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements, + defaultValueDescription: false + }, + { + name: "noUncheckedIndexedAccess", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index, + defaultValueDescription: false + }, + { + name: "noImplicitOverride", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier, + defaultValueDescription: false + }, + { + name: "noPropertyAccessFromIndexSignature", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + showInSimplifiedHelpView: false, + category: Diagnostics.Type_Checking, + description: Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type, + defaultValueDescription: false + }, + // Module Resolution + { + name: "moduleResolution", + type: new Map(Object.entries({ + // N.B. The first entry specifies the value shown in `tsc --init` + node10: 2 /* Node10 */, + node: 2 /* Node10 */, + classic: 1 /* Classic */, + node16: 3 /* Node16 */, + nodenext: 99 /* NodeNext */, + bundler: 100 /* Bundler */ + })), + deprecatedKeys: /* @__PURE__ */ new Set(["node"]), + affectsSourceFile: true, + affectsModuleResolution: true, + paramType: Diagnostics.STRATEGY, + category: Diagnostics.Modules, + description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier, + defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node + }, + { + name: "baseUrl", + type: "string", + affectsModuleResolution: true, + isFilePath: true, + category: Diagnostics.Modules, + description: Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names + }, + { + // this option can only be specified in tsconfig.json + // use type = object to copy the value as-is + name: "paths", + type: "object", + affectsModuleResolution: true, + allowConfigDirTemplateSubstitution: true, + isTSConfigOnly: true, + category: Diagnostics.Modules, + description: Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations, + transpileOptionValue: void 0 + }, + { + // this option can only be specified in tsconfig.json + // use type = object to copy the value as-is + name: "rootDirs", + type: "list", + isTSConfigOnly: true, + element: { + name: "rootDirs", + type: "string", + isFilePath: true + }, + affectsModuleResolution: true, + allowConfigDirTemplateSubstitution: true, + category: Diagnostics.Modules, + description: Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules, + transpileOptionValue: void 0, + defaultValueDescription: Diagnostics.Computed_from_the_list_of_input_files + }, + { + name: "typeRoots", + type: "list", + element: { + name: "typeRoots", + type: "string", + isFilePath: true + }, + affectsModuleResolution: true, + allowConfigDirTemplateSubstitution: true, + category: Diagnostics.Modules, + description: Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types + }, + { + name: "types", + type: "list", + element: { + name: "types", + type: "string" + }, + affectsProgramStructure: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Modules, + description: Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file, + transpileOptionValue: void 0 + }, + { + name: "allowSyntheticDefaultImports", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export, + defaultValueDescription: Diagnostics.module_system_or_esModuleInterop + }, + { + name: "esModuleInterop", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsEmit: true, + affectsBuildInfo: true, + showInSimplifiedHelpView: true, + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility, + defaultValueDescription: false + }, + { + name: "preserveSymlinks", + type: "boolean", + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node, + defaultValueDescription: false + }, + { + name: "allowUmdGlobalAccess", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Modules, + description: Diagnostics.Allow_accessing_UMD_globals_from_modules, + defaultValueDescription: false + }, + { + name: "moduleSuffixes", + type: "list", + element: { + name: "suffix", + type: "string" + }, + listPreserveFalsyValues: true, + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module + }, + { + name: "allowImportingTsExtensions", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Modules, + description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set, + defaultValueDescription: false, + transpileOptionValue: void 0 + }, + { + name: "resolvePackageJsonExports", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Use_the_package_json_exports_field_when_resolving_package_imports, + defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false + }, + { + name: "resolvePackageJsonImports", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Use_the_package_json_imports_field_when_resolving_imports, + defaultValueDescription: Diagnostics.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false + }, + { + name: "customConditions", + type: "list", + element: { + name: "condition", + type: "string" + }, + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports + }, + // Source Maps + { + name: "sourceRoot", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + paramType: Diagnostics.LOCATION, + category: Diagnostics.Emit, + description: Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code + }, + { + name: "mapRoot", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + paramType: Diagnostics.LOCATION, + category: Diagnostics.Emit, + description: Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations + }, + { + name: "inlineSources", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript, + defaultValueDescription: false + }, + // Experimental + { + name: "experimentalDecorators", + type: "boolean", + affectsEmit: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Enable_experimental_support_for_legacy_experimental_decorators, + defaultValueDescription: false + }, + { + name: "emitDecoratorMetadata", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files, + defaultValueDescription: false + }, + // Advanced + { + name: "jsxFactory", + type: "string", + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h, + defaultValueDescription: "`React.createElement`" + }, + { + name: "jsxFragmentFactory", + type: "string", + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment, + defaultValueDescription: "React.Fragment" + }, + { + name: "jsxImportSource", + type: "string", + affectsSemanticDiagnostics: true, + affectsEmit: true, + affectsBuildInfo: true, + affectsModuleResolution: true, + affectsSourceFile: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk, + defaultValueDescription: "react" + }, + { + name: "resolveJsonModule", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Enable_importing_json_files, + defaultValueDescription: false + }, + { + name: "allowArbitraryExtensions", + type: "boolean", + affectsProgramStructure: true, + category: Diagnostics.Modules, + description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present, + defaultValueDescription: false + }, + { + name: "out", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + affectsDeclarationPath: true, + isFilePath: false, + // This is intentionally broken to support compatibility with existing tsconfig files + // for correct behaviour, please use outFile + category: Diagnostics.Backwards_Compatibility, + paramType: Diagnostics.FILE, + transpileOptionValue: void 0, + description: Diagnostics.Deprecated_setting_Use_outFile_instead + }, + { + name: "reactNamespace", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit, + defaultValueDescription: "`React`" + }, + { + name: "skipDefaultLibCheck", + type: "boolean", + // We need to store these to determine whether `lib` files need to be rechecked + affectsBuildInfo: true, + category: Diagnostics.Completeness, + description: Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript, + defaultValueDescription: false + }, + { + name: "charset", + type: "string", + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files, + defaultValueDescription: "utf8" + }, + { + name: "emitBOM", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files, + defaultValueDescription: false + }, + { + name: "newLine", + type: new Map(Object.entries({ + crlf: 0 /* CarriageReturnLineFeed */, + lf: 1 /* LineFeed */ + })), + affectsEmit: true, + affectsBuildInfo: true, + paramType: Diagnostics.NEWLINE, + category: Diagnostics.Emit, + description: Diagnostics.Set_the_newline_character_for_emitting_files, + defaultValueDescription: "lf" + }, + { + name: "noErrorTruncation", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Output_Formatting, + description: Diagnostics.Disable_truncating_types_in_error_messages, + defaultValueDescription: false + }, + { + name: "noLib", + type: "boolean", + category: Diagnostics.Language_and_Environment, + affectsProgramStructure: true, + description: Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts, + // We are not returning a sourceFile for lib file when asked by the program, + // so pass --noLib to avoid reporting a file not found error. + transpileOptionValue: true, + defaultValueDescription: false + }, + { + name: "noResolve", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project, + // We are not doing a full typecheck, we are not resolving the whole context, + // so pass --noResolve to avoid reporting missing file errors. + transpileOptionValue: true, + defaultValueDescription: false + }, + { + name: "stripInternal", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments, + defaultValueDescription: false + }, + { + name: "disableSizeLimit", + type: "boolean", + affectsProgramStructure: true, + category: Diagnostics.Editor_Support, + description: Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server, + defaultValueDescription: false + }, + { + name: "disableSourceOfProjectReferenceRedirect", + type: "boolean", + isTSConfigOnly: true, + category: Diagnostics.Projects, + description: Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects, + defaultValueDescription: false + }, + { + name: "disableSolutionSearching", + type: "boolean", + isTSConfigOnly: true, + category: Diagnostics.Projects, + description: Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing, + defaultValueDescription: false + }, + { + name: "disableReferencedProjectLoad", + type: "boolean", + isTSConfigOnly: true, + category: Diagnostics.Projects, + description: Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript, + defaultValueDescription: false + }, + { + name: "noImplicitUseStrict", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files, + defaultValueDescription: false + }, + { + name: "noEmitHelpers", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output, + defaultValueDescription: false + }, + { + name: "noEmitOnError", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + transpileOptionValue: void 0, + description: Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported, + defaultValueDescription: false + }, + { + name: "preserveConstEnums", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Emit, + description: Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code, + defaultValueDescription: false + }, + { + name: "declarationDir", + type: "string", + affectsEmit: true, + affectsBuildInfo: true, + affectsDeclarationPath: true, + isFilePath: true, + paramType: Diagnostics.DIRECTORY, + category: Diagnostics.Emit, + transpileOptionValue: void 0, + description: Diagnostics.Specify_the_output_directory_for_generated_declaration_files + }, + { + name: "skipLibCheck", + type: "boolean", + // We need to store these to determine whether `lib` files need to be rechecked + affectsBuildInfo: true, + category: Diagnostics.Completeness, + description: Diagnostics.Skip_type_checking_all_d_ts_files, + defaultValueDescription: false + }, + { + name: "allowUnusedLabels", + type: "boolean", + affectsBindDiagnostics: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Disable_error_reporting_for_unused_labels, + defaultValueDescription: void 0 + }, + { + name: "allowUnreachableCode", + type: "boolean", + affectsBindDiagnostics: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Type_Checking, + description: Diagnostics.Disable_error_reporting_for_unreachable_code, + defaultValueDescription: void 0 + }, + { + name: "suppressExcessPropertyErrors", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals, + defaultValueDescription: false + }, + { + name: "suppressImplicitAnyIndexErrors", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures, + defaultValueDescription: false + }, + { + name: "forceConsistentCasingInFileNames", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Interop_Constraints, + description: Diagnostics.Ensure_that_casing_is_correct_in_imports, + defaultValueDescription: true + }, + { + name: "maxNodeModuleJsDepth", + type: "number", + affectsModuleResolution: true, + category: Diagnostics.JavaScript_Support, + description: Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs, + defaultValueDescription: 0 + }, + { + name: "noStrictGenericChecks", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types, + defaultValueDescription: false + }, + { + name: "useDefineForClassFields", + type: "boolean", + affectsSemanticDiagnostics: true, + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Language_and_Environment, + description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields, + defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext + }, + { + name: "preserveValueImports", + type: "boolean", + affectsEmit: true, + affectsBuildInfo: true, + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed, + defaultValueDescription: false + }, + { + name: "keyofStringsOnly", + type: "boolean", + category: Diagnostics.Backwards_Compatibility, + description: Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option, + defaultValueDescription: false + }, + { + // A list of plugins to load in the language service + name: "plugins", + type: "list", + isTSConfigOnly: true, + element: { + name: "plugin", + type: "object" + }, + description: Diagnostics.Specify_a_list_of_language_service_plugins_to_include, + category: Diagnostics.Editor_Support + }, + { + name: "moduleDetection", + type: new Map(Object.entries({ + auto: 2 /* Auto */, + legacy: 1 /* Legacy */, + force: 3 /* Force */ + })), + affectsSourceFile: true, + affectsModuleResolution: true, + description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, + category: Diagnostics.Language_and_Environment, + defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: void 0 + } +]; +var optionDeclarations = [ + ...commonOptionsWithBuild, + ...commandOptionsWithoutBuild +]; +var semanticDiagnosticsOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsSemanticDiagnostics); +var affectsEmitOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsEmit); +var affectsDeclarationPathOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsDeclarationPath); +var moduleResolutionOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsModuleResolution); +var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsBindDiagnostics); +var optionsAffectingProgramStructure = optionDeclarations.filter((option) => !!option.affectsProgramStructure); +var transpileOptionValueCompilerOptions = optionDeclarations.filter((option) => hasProperty(option, "transpileOptionValue")); +var configDirTemplateSubstitutionOptions = optionDeclarations.filter( + (option) => option.allowConfigDirTemplateSubstitution || !option.isCommandLineOnly && option.isFilePath +); +var configDirTemplateSubstitutionWatchOptions = optionsForWatch.filter( + (option) => option.allowConfigDirTemplateSubstitution || !option.isCommandLineOnly && option.isFilePath +); +var commandLineOptionOfCustomType = optionDeclarations.filter(isCommandLineOptionOfCustomType); +function isCommandLineOptionOfCustomType(option) { + return !isString(option.type); +} +var optionsForBuild = [ + { + name: "verbose", + shortName: "v", + category: Diagnostics.Command_line_Options, + description: Diagnostics.Enable_verbose_logging, + type: "boolean", + defaultValueDescription: false + }, + { + name: "dry", + shortName: "d", + category: Diagnostics.Command_line_Options, + description: Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean, + type: "boolean", + defaultValueDescription: false + }, + { + name: "force", + shortName: "f", + category: Diagnostics.Command_line_Options, + description: Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date, + type: "boolean", + defaultValueDescription: false + }, + { + name: "clean", + category: Diagnostics.Command_line_Options, + description: Diagnostics.Delete_the_outputs_of_all_projects, + type: "boolean", + defaultValueDescription: false + } +]; +var buildOpts = [ + ...commonOptionsWithBuild, + ...optionsForBuild +]; +var typeAcquisitionDeclarations = [ + { + name: "enable", + type: "boolean", + defaultValueDescription: false + }, + { + name: "include", + type: "list", + element: { + name: "include", + type: "string" + } + }, + { + name: "exclude", + type: "list", + element: { + name: "exclude", + type: "string" + } + }, + { + name: "disableFilenameBasedTypeAcquisition", + type: "boolean", + defaultValueDescription: false + } +]; +function createOptionNameMap(optionDeclarations2) { + const optionsNameMap = /* @__PURE__ */ new Map(); + const shortOptionNames = /* @__PURE__ */ new Map(); + forEach(optionDeclarations2, (option) => { + optionsNameMap.set(option.name.toLowerCase(), option); + if (option.shortName) { + shortOptionNames.set(option.shortName, option.name); + } + }); + return { optionsNameMap, shortOptionNames }; +} +var optionsNameMapCache; +function getOptionsNameMap() { + return optionsNameMapCache || (optionsNameMapCache = createOptionNameMap(optionDeclarations)); +} +var compilerOptionsAlternateMode = { + diagnostic: Diagnostics.Compiler_option_0_may_only_be_used_with_build, + getOptionsNameMap: getBuildOptionsNameMap +}; +var defaultInitCompilerOptions = { + module: 1 /* CommonJS */, + target: 3 /* ES2016 */, + strict: true, + esModuleInterop: true, + forceConsistentCasingInFileNames: true, + skipLibCheck: true +}; +function createDiagnosticForInvalidCustomType(opt, createDiagnostic) { + const namesOfType = arrayFrom(opt.type.keys()); + const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(", "); + return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames); +} +function parseCustomTypeOption(opt, value, errors) { + return convertJsonOptionOfCustomType(opt, (value ?? "").trim(), errors); +} +function parseListTypeOption(opt, value = "", errors) { + value = value.trim(); + if (startsWith(value, "-")) { + return void 0; + } + if (opt.type === "listOrElement" && !value.includes(",")) { + return validateJsonOptionValue(opt, value, errors); + } + if (value === "") { + return []; + } + const values = value.split(","); + switch (opt.element.type) { + case "number": + return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors)); + case "string": + return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors)); + case "boolean": + case "object": + return Debug.fail(`List of ${opt.element.type} is not yet supported.`); + default: + return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors)); + } +} +function getOptionName(option) { + return option.name; +} +function createUnknownOptionError(unknownOption, diagnostics, unknownOptionErrorText, node, sourceFile) { + var _a; + if ((_a = diagnostics.alternateMode) == null ? void 0 : _a.getOptionsNameMap().optionsNameMap.has(unknownOption.toLowerCase())) { + return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.alternateMode.diagnostic, unknownOption); + } + const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName); + return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption); +} +function parseCommandLineWorker(diagnostics, commandLine, readFile) { + const options = {}; + let watchOptions; + const fileNames = []; + const errors = []; + parseStrings(commandLine); + return { + options, + watchOptions, + fileNames, + errors + }; + function parseStrings(args) { + let i = 0; + while (i < args.length) { + const s = args[i]; + i++; + if (s.charCodeAt(0) === 64 /* at */) { + parseResponseFile(s.slice(1)); + } else if (s.charCodeAt(0) === 45 /* minus */) { + const inputOptionName = s.slice(s.charCodeAt(1) === 45 /* minus */ ? 2 : 1); + const opt = getOptionDeclarationFromName( + diagnostics.getOptionsNameMap, + inputOptionName, + /*allowShort*/ + true + ); + if (opt) { + i = parseOptionValue(args, i, diagnostics, opt, options, errors); + } else { + const watchOpt = getOptionDeclarationFromName( + watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, + inputOptionName, + /*allowShort*/ + true + ); + if (watchOpt) { + i = parseOptionValue(args, i, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors); + } else { + errors.push(createUnknownOptionError(inputOptionName, diagnostics, s)); + } + } + } else { + fileNames.push(s); + } + } + } + function parseResponseFile(fileName) { + const text = tryReadFile(fileName, readFile || ((fileName2) => sys.readFile(fileName2))); + if (!isString(text)) { + errors.push(text); + return; + } + const args = []; + let pos = 0; + while (true) { + while (pos < text.length && text.charCodeAt(pos) <= 32 /* space */) pos++; + if (pos >= text.length) break; + const start = pos; + if (text.charCodeAt(start) === 34 /* doubleQuote */) { + pos++; + while (pos < text.length && text.charCodeAt(pos) !== 34 /* doubleQuote */) pos++; + if (pos < text.length) { + args.push(text.substring(start + 1, pos)); + pos++; + } else { + errors.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName)); + } + } else { + while (text.charCodeAt(pos) > 32 /* space */) pos++; + args.push(text.substring(start, pos)); + } + } + parseStrings(args); + } +} +function parseOptionValue(args, i, diagnostics, opt, options, errors) { + if (opt.isTSConfigOnly) { + const optValue = args[i]; + if (optValue === "null") { + options[opt.name] = void 0; + i++; + } else if (opt.type === "boolean") { + if (optValue === "false") { + options[opt.name] = validateJsonOptionValue( + opt, + /*value*/ + false, + errors + ); + i++; + } else { + if (optValue === "true") i++; + errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name)); + } + } else { + errors.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name)); + if (optValue && !startsWith(optValue, "-")) i++; + } + } else { + if (!args[i] && opt.type !== "boolean") { + errors.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt))); + } + if (args[i] !== "null") { + switch (opt.type) { + case "number": + options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i]), errors); + i++; + break; + case "boolean": + const optValue = args[i]; + options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors); + if (optValue === "false" || optValue === "true") { + i++; + } + break; + case "string": + options[opt.name] = validateJsonOptionValue(opt, args[i] || "", errors); + i++; + break; + case "list": + const result = parseListTypeOption(opt, args[i], errors); + options[opt.name] = result || []; + if (result) { + i++; + } + break; + case "listOrElement": + Debug.fail("listOrElement not supported here"); + break; + default: + options[opt.name] = parseCustomTypeOption(opt, args[i], errors); + i++; + break; + } + } else { + options[opt.name] = void 0; + i++; + } + } + return i; +} +var compilerOptionsDidYouMeanDiagnostics = { + alternateMode: compilerOptionsAlternateMode, + getOptionsNameMap, + optionDeclarations, + unknownOptionDiagnostic: Diagnostics.Unknown_compiler_option_0, + unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument +}; +function parseCommandLine(commandLine, readFile) { + return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile); +} +function getOptionDeclarationFromName(getOptionNameMap, optionName, allowShort = false) { + optionName = optionName.toLowerCase(); + const { optionsNameMap, shortOptionNames } = getOptionNameMap(); + if (allowShort) { + const short = shortOptionNames.get(optionName); + if (short !== void 0) { + optionName = short; + } + } + return optionsNameMap.get(optionName); +} +var buildOptionsNameMapCache; +function getBuildOptionsNameMap() { + return buildOptionsNameMapCache || (buildOptionsNameMapCache = createOptionNameMap(buildOpts)); +} +var buildOptionsAlternateMode = { + diagnostic: Diagnostics.Compiler_option_0_may_not_be_used_with_build, + getOptionsNameMap +}; +var buildOptionsDidYouMeanDiagnostics = { + alternateMode: buildOptionsAlternateMode, + getOptionsNameMap: getBuildOptionsNameMap, + optionDeclarations: buildOpts, + unknownOptionDiagnostic: Diagnostics.Unknown_build_option_0, + unknownDidYouMeanDiagnostic: Diagnostics.Unknown_build_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1 +}; +function parseBuildCommand(args) { + const { options, watchOptions, fileNames: projects, errors } = parseCommandLineWorker( + buildOptionsDidYouMeanDiagnostics, + args + ); + const buildOptions = options; + if (projects.length === 0) { + projects.push("."); + } + if (buildOptions.clean && buildOptions.force) { + errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force")); + } + if (buildOptions.clean && buildOptions.verbose) { + errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose")); + } + if (buildOptions.clean && buildOptions.watch) { + errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch")); + } + if (buildOptions.watch && buildOptions.dry) { + errors.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry")); + } + return { buildOptions, watchOptions, projects, errors }; +} +function getDiagnosticText(message, ...args) { + return cast(createCompilerDiagnostic(message, ...args).messageText, isString); +} +function getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend, extraFileExtensions) { + const configFileText = tryReadFile(configFileName, (fileName) => host.readFile(fileName)); + if (!isString(configFileText)) { + host.onUnRecoverableConfigFileDiagnostic(configFileText); + return void 0; + } + const result = parseJsonText(configFileName, configFileText); + const cwd = host.getCurrentDirectory(); + result.path = toPath(configFileName, cwd, createGetCanonicalFileName(host.useCaseSensitiveFileNames)); + result.resolvedPath = result.path; + result.originalFileName = result.fileName; + return parseJsonSourceFileConfigFileContent( + result, + host, + getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd), + optionsToExtend, + getNormalizedAbsolutePath(configFileName, cwd), + /*resolutionStack*/ + void 0, + extraFileExtensions, + extendedConfigCache, + watchOptionsToExtend + ); +} +function parseConfigFileTextToJson(fileName, jsonText) { + const jsonSourceFile = parseJsonText(fileName, jsonText); + return { + config: convertConfigFileToObject( + jsonSourceFile, + jsonSourceFile.parseDiagnostics, + /*jsonConversionNotifier*/ + void 0 + ), + error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0 + }; +} +function readJsonConfigFile(fileName, readFile) { + const textOrDiagnostic = tryReadFile(fileName, readFile); + return isString(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : { fileName, parseDiagnostics: [textOrDiagnostic] }; +} +function tryReadFile(fileName, readFile) { + let text; + try { + text = readFile(fileName); + } catch (e) { + return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message); + } + return text === void 0 ? createCompilerDiagnostic(Diagnostics.Cannot_read_file_0, fileName) : text; +} +function commandLineOptionsToMap(options) { + return arrayToMap(options, getOptionName); +} +var typeAcquisitionDidYouMeanDiagnostics = { + optionDeclarations: typeAcquisitionDeclarations, + unknownOptionDiagnostic: Diagnostics.Unknown_type_acquisition_option_0, + unknownDidYouMeanDiagnostic: Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1 +}; +var watchOptionsNameMapCache; +function getWatchOptionsNameMap() { + return watchOptionsNameMapCache || (watchOptionsNameMapCache = createOptionNameMap(optionsForWatch)); +} +var watchOptionsDidYouMeanDiagnostics = { + getOptionsNameMap: getWatchOptionsNameMap, + optionDeclarations: optionsForWatch, + unknownOptionDiagnostic: Diagnostics.Unknown_watch_option_0, + unknownDidYouMeanDiagnostic: Diagnostics.Unknown_watch_option_0_Did_you_mean_1, + optionTypeMismatchDiagnostic: Diagnostics.Watch_option_0_requires_a_value_of_type_1 +}; +var commandLineCompilerOptionsMapCache; +function getCommandLineCompilerOptionsMap() { + return commandLineCompilerOptionsMapCache || (commandLineCompilerOptionsMapCache = commandLineOptionsToMap(optionDeclarations)); +} +var commandLineWatchOptionsMapCache; +function getCommandLineWatchOptionsMap() { + return commandLineWatchOptionsMapCache || (commandLineWatchOptionsMapCache = commandLineOptionsToMap(optionsForWatch)); +} +var commandLineTypeAcquisitionMapCache; +function getCommandLineTypeAcquisitionMap() { + return commandLineTypeAcquisitionMapCache || (commandLineTypeAcquisitionMapCache = commandLineOptionsToMap(typeAcquisitionDeclarations)); +} +var extendsOptionDeclaration = { + name: "extends", + type: "listOrElement", + element: { + name: "extends", + type: "string" + }, + category: Diagnostics.File_Management, + disallowNullOrUndefined: true +}; +var compilerOptionsDeclaration = { + name: "compilerOptions", + type: "object", + elementOptions: getCommandLineCompilerOptionsMap(), + extraKeyDiagnostics: compilerOptionsDidYouMeanDiagnostics +}; +var watchOptionsDeclaration = { + name: "watchOptions", + type: "object", + elementOptions: getCommandLineWatchOptionsMap(), + extraKeyDiagnostics: watchOptionsDidYouMeanDiagnostics +}; +var typeAcquisitionDeclaration = { + name: "typeAcquisition", + type: "object", + elementOptions: getCommandLineTypeAcquisitionMap(), + extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics +}; +var _tsconfigRootOptions; +function getTsconfigRootOptionsMap() { + if (_tsconfigRootOptions === void 0) { + _tsconfigRootOptions = { + name: void 0, + // should never be needed since this is root + type: "object", + elementOptions: commandLineOptionsToMap([ + compilerOptionsDeclaration, + watchOptionsDeclaration, + typeAcquisitionDeclaration, + extendsOptionDeclaration, + { + name: "references", + type: "list", + element: { + name: "references", + type: "object" + }, + category: Diagnostics.Projects + }, + { + name: "files", + type: "list", + element: { + name: "files", + type: "string" + }, + category: Diagnostics.File_Management + }, + { + name: "include", + type: "list", + element: { + name: "include", + type: "string" + }, + category: Diagnostics.File_Management, + defaultValueDescription: Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk + }, + { + name: "exclude", + type: "list", + element: { + name: "exclude", + type: "string" + }, + category: Diagnostics.File_Management, + defaultValueDescription: Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified + }, + compileOnSaveCommandLineOption + ]) + }; + } + return _tsconfigRootOptions; +} +function convertConfigFileToObject(sourceFile, errors, jsonConversionNotifier) { + var _a; + const rootExpression = (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression; + if (rootExpression && rootExpression.kind !== 210 /* ObjectLiteralExpression */) { + errors.push(createDiagnosticForNodeInSourceFile( + sourceFile, + rootExpression, + Diagnostics.The_root_value_of_a_0_file_must_be_an_object, + getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json" + )); + if (isArrayLiteralExpression(rootExpression)) { + const firstObject = find(rootExpression.elements, isObjectLiteralExpression); + if (firstObject) { + return convertToJson( + sourceFile, + firstObject, + errors, + /*returnValue*/ + true, + jsonConversionNotifier + ); + } + } + return {}; + } + return convertToJson( + sourceFile, + rootExpression, + errors, + /*returnValue*/ + true, + jsonConversionNotifier + ); +} +function convertToObject(sourceFile, errors) { + var _a; + return convertToJson( + sourceFile, + (_a = sourceFile.statements[0]) == null ? void 0 : _a.expression, + errors, + /*returnValue*/ + true, + /*jsonConversionNotifier*/ + void 0 + ); +} +function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConversionNotifier) { + if (!rootExpression) { + return returnValue ? {} : void 0; + } + return convertPropertyValueToJson(rootExpression, jsonConversionNotifier == null ? void 0 : jsonConversionNotifier.rootOptions); + function convertObjectLiteralExpressionToJson(node, objectOption) { + var _a; + const result = returnValue ? {} : void 0; + for (const element of node.properties) { + if (element.kind !== 303 /* PropertyAssignment */) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected)); + continue; + } + if (element.questionToken) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); + } + if (!isDoubleQuotedString(element.name)) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected)); + } + const textOfKey = isComputedNonLiteralName(element.name) ? void 0 : getTextOfPropertyName(element.name); + const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey); + const option = keyText ? (_a = objectOption == null ? void 0 : objectOption.elementOptions) == null ? void 0 : _a.get(keyText) : void 0; + const value = convertPropertyValueToJson(element.initializer, option); + if (typeof keyText !== "undefined") { + if (returnValue) { + result[keyText] = value; + } + jsonConversionNotifier == null ? void 0 : jsonConversionNotifier.onPropertySet(keyText, value, element, objectOption, option); + } + } + return result; + } + function convertArrayLiteralExpressionToJson(elements, elementOption) { + if (!returnValue) { + elements.forEach((element) => convertPropertyValueToJson(element, elementOption)); + return void 0; + } + return filter(elements.map((element) => convertPropertyValueToJson(element, elementOption)), (v) => v !== void 0); + } + function convertPropertyValueToJson(valueExpression, option) { + switch (valueExpression.kind) { + case 112 /* TrueKeyword */: + return true; + case 97 /* FalseKeyword */: + return false; + case 106 /* NullKeyword */: + return null; + case 11 /* StringLiteral */: + if (!isDoubleQuotedString(valueExpression)) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected)); + } + return valueExpression.text; + case 9 /* NumericLiteral */: + return Number(valueExpression.text); + case 224 /* PrefixUnaryExpression */: + if (valueExpression.operator !== 41 /* MinusToken */ || valueExpression.operand.kind !== 9 /* NumericLiteral */) { + break; + } + return -Number(valueExpression.operand.text); + case 210 /* ObjectLiteralExpression */: + const objectLiteralExpression = valueExpression; + return convertObjectLiteralExpressionToJson(objectLiteralExpression, option); + case 209 /* ArrayLiteralExpression */: + return convertArrayLiteralExpressionToJson( + valueExpression.elements, + option && option.element + ); + } + if (option) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option))); + } else { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)); + } + return void 0; + } + function isDoubleQuotedString(node) { + return isStringLiteral(node) && isStringDoubleQuoted(node, sourceFile); + } +} +function getCompilerOptionValueTypeString(option) { + return option.type === "listOrElement" ? `${getCompilerOptionValueTypeString(option.element)} or Array` : option.type === "list" ? "Array" : isString(option.type) ? option.type : "string"; +} +function isCompilerOptionsValue(option, value) { + if (option) { + if (isNullOrUndefined(value)) return !option.disallowNullOrUndefined; + if (option.type === "list") { + return isArray(value); + } + if (option.type === "listOrElement") { + return isArray(value) || isCompilerOptionsValue(option.element, value); + } + const expectedType = isString(option.type) ? option.type : "string"; + return typeof value === expectedType; + } + return false; +} +function convertToTSConfig(configParseResult, configFileName, host) { + var _a, _b, _c; + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames); + const files = map( + filter( + configParseResult.fileNames, + !((_b = (_a = configParseResult.options.configFile) == null ? void 0 : _a.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs) ? returnTrue : matchesSpecs( + configFileName, + configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs, + configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs, + host + ) + ), + (f) => getRelativePathFromFile(getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName) + ); + const pathOptions = { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames }; + const optionMap = serializeCompilerOptions(configParseResult.options, pathOptions); + const watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions); + const config = { + compilerOptions: { + ...optionMapToObject(optionMap), + showConfig: void 0, + configFile: void 0, + configFilePath: void 0, + help: void 0, + init: void 0, + listFiles: void 0, + listEmittedFiles: void 0, + project: void 0, + build: void 0, + version: void 0 + }, + watchOptions: watchOptionMap && optionMapToObject(watchOptionMap), + references: map(configParseResult.projectReferences, (r) => ({ ...r, path: r.originalPath ? r.originalPath : "", originalPath: void 0 })), + files: length(files) ? files : void 0, + ...((_c = configParseResult.options.configFile) == null ? void 0 : _c.configFileSpecs) ? { + include: filterSameAsDefaultInclude(configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs), + exclude: configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs + } : {}, + compileOnSave: !!configParseResult.compileOnSave ? true : void 0 + }; + const providedKeys = new Set(optionMap.keys()); + const impliedCompilerOptions = {}; + for (const option in computedOptions) { + if (!providedKeys.has(option) && some(computedOptions[option].dependencies, (dep) => providedKeys.has(dep))) { + const implied = computedOptions[option].computeValue(configParseResult.options); + const defaultValue = computedOptions[option].computeValue({}); + if (implied !== defaultValue) { + impliedCompilerOptions[option] = computedOptions[option].computeValue(configParseResult.options); + } + } + } + assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions))); + return config; +} +function optionMapToObject(optionMap) { + return { + ...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {}) + }; +} +function filterSameAsDefaultInclude(specs) { + if (!length(specs)) return void 0; + if (length(specs) !== 1) return specs; + if (specs[0] === defaultIncludeSpec) return void 0; + return specs; +} +function matchesSpecs(path, includeSpecs, excludeSpecs, host) { + if (!includeSpecs) return returnTrue; + const patterns = getFileMatcherPatterns(path, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory()); + const excludeRe = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames); + const includeRe = patterns.includeFilePattern && getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames); + if (includeRe) { + if (excludeRe) { + return (path2) => !(includeRe.test(path2) && !excludeRe.test(path2)); + } + return (path2) => !includeRe.test(path2); + } + if (excludeRe) { + return (path2) => excludeRe.test(path2); + } + return returnTrue; +} +function getCustomTypeMapOfCommandLineOption(optionDefinition) { + switch (optionDefinition.type) { + case "string": + case "number": + case "boolean": + case "object": + return void 0; + case "list": + case "listOrElement": + return getCustomTypeMapOfCommandLineOption(optionDefinition.element); + default: + return optionDefinition.type; + } +} +function getNameOfCompilerOptionValue(value, customTypeMap) { + return forEachEntry(customTypeMap, (mapValue, key) => { + if (mapValue === value) { + return key; + } + }); +} +function serializeCompilerOptions(options, pathOptions) { + return serializeOptionBaseObject(options, getOptionsNameMap(), pathOptions); +} +function serializeWatchOptions(options) { + return serializeOptionBaseObject(options, getWatchOptionsNameMap()); +} +function serializeOptionBaseObject(options, { optionsNameMap }, pathOptions) { + const result = /* @__PURE__ */ new Map(); + const getCanonicalFileName = pathOptions && createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames); + for (const name in options) { + if (hasProperty(options, name)) { + if (optionsNameMap.has(name) && (optionsNameMap.get(name).category === Diagnostics.Command_line_Options || optionsNameMap.get(name).category === Diagnostics.Output_Formatting)) { + continue; + } + const value = options[name]; + const optionDefinition = optionsNameMap.get(name.toLowerCase()); + if (optionDefinition) { + Debug.assert(optionDefinition.type !== "listOrElement"); + const customTypeMap = getCustomTypeMapOfCommandLineOption(optionDefinition); + if (!customTypeMap) { + if (pathOptions && optionDefinition.isFilePath) { + result.set(name, getRelativePathFromFile(pathOptions.configFilePath, getNormalizedAbsolutePath(value, getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName)); + } else if (pathOptions && optionDefinition.type === "list" && optionDefinition.element.isFilePath) { + result.set(name, value.map((v) => getRelativePathFromFile(pathOptions.configFilePath, getNormalizedAbsolutePath(v, getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName))); + } else { + result.set(name, value); + } + } else { + if (optionDefinition.type === "list") { + result.set(name, value.map((element) => getNameOfCompilerOptionValue(element, customTypeMap))); + } else { + result.set(name, getNameOfCompilerOptionValue(value, customTypeMap)); + } + } + } + } + } + return result; +} +function getCompilerOptionsDiffValue(options, newLine) { + const compilerOptionsMap = getSerializedCompilerOption(options); + return getOverwrittenDefaultOptions(); + function makePadding(paddingLength) { + return Array(paddingLength + 1).join(" "); + } + function getOverwrittenDefaultOptions() { + const result = []; + const tab = makePadding(2); + commandOptionsWithoutBuild.forEach((cmd) => { + if (!compilerOptionsMap.has(cmd.name)) { + return; + } + const newValue = compilerOptionsMap.get(cmd.name); + const defaultValue = getDefaultValueForOption(cmd); + if (newValue !== defaultValue) { + result.push(`${tab}${cmd.name}: ${newValue}`); + } else if (hasProperty(defaultInitCompilerOptions, cmd.name)) { + result.push(`${tab}${cmd.name}: ${defaultValue}`); + } + }); + return result.join(newLine) + newLine; + } +} +function getSerializedCompilerOption(options) { + const compilerOptions = extend(options, defaultInitCompilerOptions); + return serializeCompilerOptions(compilerOptions); +} +function generateTSConfig(options, fileNames, newLine) { + const compilerOptionsMap = getSerializedCompilerOption(options); + return writeConfigurations(); + function makePadding(paddingLength) { + return Array(paddingLength + 1).join(" "); + } + function isAllowedOptionForOutput({ category, name, isCommandLineOnly }) { + const categoriesToSkip = [Diagnostics.Command_line_Options, Diagnostics.Editor_Support, Diagnostics.Compiler_Diagnostics, Diagnostics.Backwards_Compatibility, Diagnostics.Watch_and_Build_Modes, Diagnostics.Output_Formatting]; + return !isCommandLineOnly && category !== void 0 && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name)); + } + function writeConfigurations() { + const categorizedOptions = /* @__PURE__ */ new Map(); + categorizedOptions.set(Diagnostics.Projects, []); + categorizedOptions.set(Diagnostics.Language_and_Environment, []); + categorizedOptions.set(Diagnostics.Modules, []); + categorizedOptions.set(Diagnostics.JavaScript_Support, []); + categorizedOptions.set(Diagnostics.Emit, []); + categorizedOptions.set(Diagnostics.Interop_Constraints, []); + categorizedOptions.set(Diagnostics.Type_Checking, []); + categorizedOptions.set(Diagnostics.Completeness, []); + for (const option of optionDeclarations) { + if (isAllowedOptionForOutput(option)) { + let listForCategory = categorizedOptions.get(option.category); + if (!listForCategory) categorizedOptions.set(option.category, listForCategory = []); + listForCategory.push(option); + } + } + let marginLength = 0; + let seenKnownKeys = 0; + const entries = []; + categorizedOptions.forEach((options2, category) => { + if (entries.length !== 0) { + entries.push({ value: "" }); + } + entries.push({ value: `/* ${getLocaleSpecificMessage(category)} */` }); + for (const option of options2) { + let optionName; + if (compilerOptionsMap.has(option.name)) { + optionName = `"${option.name}": ${JSON.stringify(compilerOptionsMap.get(option.name))}${(seenKnownKeys += 1) === compilerOptionsMap.size ? "" : ","}`; + } else { + optionName = `// "${option.name}": ${JSON.stringify(getDefaultValueForOption(option))},`; + } + entries.push({ + value: optionName, + description: `/* ${option.description && getLocaleSpecificMessage(option.description) || option.name} */` + }); + marginLength = Math.max(optionName.length, marginLength); + } + }); + const tab = makePadding(2); + const result = []; + result.push(`{`); + result.push(`${tab}"compilerOptions": {`); + result.push(`${tab}${tab}/* ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`); + result.push(""); + for (const entry of entries) { + const { value, description = "" } = entry; + result.push(value && `${tab}${tab}${value}${description && makePadding(marginLength - value.length + 2) + description}`); + } + if (fileNames.length) { + result.push(`${tab}},`); + result.push(`${tab}"files": [`); + for (let i = 0; i < fileNames.length; i++) { + result.push(`${tab}${tab}${JSON.stringify(fileNames[i])}${i === fileNames.length - 1 ? "" : ","}`); + } + result.push(`${tab}]`); + } else { + result.push(`${tab}}`); + } + result.push(`}`); + return result.join(newLine) + newLine; + } +} +function convertToOptionsWithAbsolutePaths(options, toAbsolutePath) { + const result = {}; + const optionsNameMap = getOptionsNameMap().optionsNameMap; + for (const name in options) { + if (hasProperty(options, name)) { + result[name] = convertToOptionValueWithAbsolutePaths( + optionsNameMap.get(name.toLowerCase()), + options[name], + toAbsolutePath + ); + } + } + if (result.configFilePath) { + result.configFilePath = toAbsolutePath(result.configFilePath); + } + return result; +} +function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) { + if (option && !isNullOrUndefined(value)) { + if (option.type === "list") { + const values = value; + if (option.element.isFilePath && values.length) { + return values.map(toAbsolutePath); + } + } else if (option.isFilePath) { + return toAbsolutePath(value); + } + Debug.assert(option.type !== "listOrElement"); + } + return value; +} +function parseJsonSourceFileConfigFileContent(sourceFile, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) { + var _a, _b; + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Parse, "parseJsonSourceFileConfigFileContent", { path: sourceFile.fileName }); + const result = parseJsonConfigFileContentWorker( + /*json*/ + void 0, + sourceFile, + host, + basePath, + existingOptions, + existingWatchOptions, + configFileName, + resolutionStack, + extraFileExtensions, + extendedConfigCache + ); + (_b = tracing) == null ? void 0 : _b.pop(); + return result; +} +function setConfigFileInOptions(options, configFile) { + if (configFile) { + Object.defineProperty(options, "configFile", { enumerable: false, writable: false, value: configFile }); + } +} +function isNullOrUndefined(x) { + return x === void 0 || x === null; +} +function directoryOfCombinedPath(fileName, basePath) { + return getDirectoryPath(getNormalizedAbsolutePath(fileName, basePath)); +} +var defaultIncludeSpec = "**/*"; +function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions = {}, existingWatchOptions, configFileName, resolutionStack = [], extraFileExtensions = [], extendedConfigCache) { + Debug.assert(json === void 0 && sourceFile !== void 0 || json !== void 0 && sourceFile === void 0); + const errors = []; + const parsedConfig = parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache); + const { raw } = parsedConfig; + const options = handleOptionConfigDirTemplateSubstitution( + extend(existingOptions, parsedConfig.options || {}), + configDirTemplateSubstitutionOptions, + basePath + ); + const watchOptions = handleWatchOptionsConfigDirTemplateSubstitution( + existingWatchOptions && parsedConfig.watchOptions ? extend(existingWatchOptions, parsedConfig.watchOptions) : parsedConfig.watchOptions || existingWatchOptions, + basePath + ); + options.configFilePath = configFileName && normalizeSlashes(configFileName); + const basePathForFileNames = normalizePath(configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath); + const configFileSpecs = getConfigFileSpecs(); + if (sourceFile) sourceFile.configFileSpecs = configFileSpecs; + setConfigFileInOptions(options, sourceFile); + return { + options, + watchOptions, + fileNames: getFileNames(basePathForFileNames), + projectReferences: getProjectReferences(basePathForFileNames), + typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(), + raw, + errors, + // Wildcard directories (provided as part of a wildcard path) are stored in a + // file map that marks whether it was a regular wildcard match (with a `*` or `?` token), + // or a recursive directory. This information is used by filesystem watchers to monitor for + // new entries in these paths. + wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames), + compileOnSave: !!raw.compileOnSave + }; + function getConfigFileSpecs() { + const referencesOfRaw = getPropFromRaw("references", (element) => typeof element === "object", "object"); + const filesSpecs = toPropValue(getSpecsFromRaw("files")); + if (filesSpecs) { + const hasZeroOrNoReferences = referencesOfRaw === "no-prop" || isArray(referencesOfRaw) && referencesOfRaw.length === 0; + const hasExtends = hasProperty(raw, "extends"); + if (filesSpecs.length === 0 && hasZeroOrNoReferences && !hasExtends) { + if (sourceFile) { + const fileName = configFileName || "tsconfig.json"; + const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty; + const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer); + const error = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName); + errors.push(error); + } else { + createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json"); + } + } + } + let includeSpecs = toPropValue(getSpecsFromRaw("include")); + const excludeOfRaw = getSpecsFromRaw("exclude"); + let isDefaultIncludeSpec = false; + let excludeSpecs = toPropValue(excludeOfRaw); + if (excludeOfRaw === "no-prop") { + const outDir = options.outDir; + const declarationDir = options.declarationDir; + if (outDir || declarationDir) { + excludeSpecs = filter([outDir, declarationDir], (d) => !!d); + } + } + if (filesSpecs === void 0 && includeSpecs === void 0) { + includeSpecs = [defaultIncludeSpec]; + isDefaultIncludeSpec = true; + } + let validatedIncludeSpecsBeforeSubstitution, validatedExcludeSpecsBeforeSubstitution; + let validatedIncludeSpecs, validatedExcludeSpecs; + if (includeSpecs) { + validatedIncludeSpecsBeforeSubstitution = validateSpecs( + includeSpecs, + errors, + /*disallowTrailingRecursion*/ + true, + sourceFile, + "include" + ); + validatedIncludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate( + validatedIncludeSpecsBeforeSubstitution, + basePathForFileNames + ) || validatedIncludeSpecsBeforeSubstitution; + } + if (excludeSpecs) { + validatedExcludeSpecsBeforeSubstitution = validateSpecs( + excludeSpecs, + errors, + /*disallowTrailingRecursion*/ + false, + sourceFile, + "exclude" + ); + validatedExcludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate( + validatedExcludeSpecsBeforeSubstitution, + basePathForFileNames + ) || validatedExcludeSpecsBeforeSubstitution; + } + const validatedFilesSpecBeforeSubstitution = filter(filesSpecs, isString); + const validatedFilesSpec = getSubstitutedStringArrayWithConfigDirTemplate( + validatedFilesSpecBeforeSubstitution, + basePathForFileNames + ) || validatedFilesSpecBeforeSubstitution; + return { + filesSpecs, + includeSpecs, + excludeSpecs, + validatedFilesSpec, + validatedIncludeSpecs, + validatedExcludeSpecs, + validatedFilesSpecBeforeSubstitution, + validatedIncludeSpecsBeforeSubstitution, + validatedExcludeSpecsBeforeSubstitution, + pathPatterns: void 0, + // Initialized on first use + isDefaultIncludeSpec + }; + } + function getFileNames(basePath2) { + const fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath2, options, host, extraFileExtensions); + if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) { + errors.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); + } + return fileNames; + } + function getProjectReferences(basePath2) { + let projectReferences; + const referencesOfRaw = getPropFromRaw("references", (element) => typeof element === "object", "object"); + if (isArray(referencesOfRaw)) { + for (const ref of referencesOfRaw) { + if (typeof ref.path !== "string") { + createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, "reference.path", "string"); + } else { + (projectReferences || (projectReferences = [])).push({ + path: getNormalizedAbsolutePath(ref.path, basePath2), + originalPath: ref.path, + prepend: ref.prepend, + circular: ref.circular + }); + } + } + } + return projectReferences; + } + function toPropValue(specResult) { + return isArray(specResult) ? specResult : void 0; + } + function getSpecsFromRaw(prop) { + return getPropFromRaw(prop, isString, "string"); + } + function getPropFromRaw(prop, validateElement, elementTypeName) { + if (hasProperty(raw, prop) && !isNullOrUndefined(raw[prop])) { + if (isArray(raw[prop])) { + const result = raw[prop]; + if (!sourceFile && !every(result, validateElement)) { + errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName)); + } + return result; + } else { + createCompilerDiagnosticOnlyIfJson(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, "Array"); + return "not-array"; + } + } + return "no-prop"; + } + function createCompilerDiagnosticOnlyIfJson(message, ...args) { + if (!sourceFile) { + errors.push(createCompilerDiagnostic(message, ...args)); + } + } +} +function handleWatchOptionsConfigDirTemplateSubstitution(watchOptions, basePath) { + return handleOptionConfigDirTemplateSubstitution(watchOptions, configDirTemplateSubstitutionWatchOptions, basePath); +} +function handleOptionConfigDirTemplateSubstitution(options, optionDeclarations2, basePath) { + if (!options) return options; + let result; + for (const option of optionDeclarations2) { + if (options[option.name] !== void 0) { + const value = options[option.name]; + switch (option.type) { + case "string": + Debug.assert(option.isFilePath); + if (startsWithConfigDirTemplate(value)) { + setOptionValue(option, getSubstitutedPathWithConfigDirTemplate(value, basePath)); + } + break; + case "list": + Debug.assert(option.element.isFilePath); + const listResult = getSubstitutedStringArrayWithConfigDirTemplate(value, basePath); + if (listResult) setOptionValue(option, listResult); + break; + case "object": + Debug.assert(option.name === "paths"); + const objectResult = getSubstitutedMapLikeOfStringArrayWithConfigDirTemplate(value, basePath); + if (objectResult) setOptionValue(option, objectResult); + break; + default: + Debug.fail("option type not supported"); + } + } + } + return result || options; + function setOptionValue(option, value) { + (result ?? (result = assign({}, options)))[option.name] = value; + } +} +var configDirTemplate = `\${configDir}`; +function startsWithConfigDirTemplate(value) { + return isString(value) && startsWith( + value, + configDirTemplate, + /*ignoreCase*/ + true + ); +} +function getSubstitutedPathWithConfigDirTemplate(value, basePath) { + return getNormalizedAbsolutePath(value.replace(configDirTemplate, "./"), basePath); +} +function getSubstitutedStringArrayWithConfigDirTemplate(list, basePath) { + if (!list) return list; + let result; + list.forEach((element, index) => { + if (!startsWithConfigDirTemplate(element)) return; + (result ?? (result = list.slice()))[index] = getSubstitutedPathWithConfigDirTemplate(element, basePath); + }); + return result; +} +function getSubstitutedMapLikeOfStringArrayWithConfigDirTemplate(mapLike, basePath) { + let result; + const ownKeys = getOwnKeys(mapLike); + ownKeys.forEach((key) => { + if (!isArray(mapLike[key])) return; + const subStitution = getSubstitutedStringArrayWithConfigDirTemplate(mapLike[key], basePath); + if (!subStitution) return; + (result ?? (result = assign({}, mapLike)))[key] = subStitution; + }); + return result; +} +function isErrorNoInputFiles(error) { + return error.code === Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code; +} +function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) { + return createCompilerDiagnostic( + Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, + configFileName || "tsconfig.json", + JSON.stringify(includeSpecs || []), + JSON.stringify(excludeSpecs || []) + ); +} +function shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles, resolutionStack) { + return fileNames.length === 0 && canJsonReportNoInutFiles && (!resolutionStack || resolutionStack.length === 0); +} +function canJsonReportNoInputFiles(raw) { + return !hasProperty(raw, "files") && !hasProperty(raw, "references"); +} +function updateErrorForNoInputFiles(fileNames, configFileName, configFileSpecs, configParseDiagnostics, canJsonReportNoInutFiles) { + const existingErrors = configParseDiagnostics.length; + if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) { + configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName)); + } else { + filterMutate(configParseDiagnostics, (error) => !isErrorNoInputFiles(error)); + } + return existingErrors !== configParseDiagnostics.length; +} +function isSuccessfulParsedTsconfig(value) { + return !!value.options; +} +function parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache) { + var _a; + basePath = normalizeSlashes(basePath); + const resolvedPath = getNormalizedAbsolutePath(configFileName || "", basePath); + if (resolutionStack.includes(resolvedPath)) { + errors.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> "))); + return { raw: json || convertToObject(sourceFile, errors) }; + } + const ownConfig = json ? parseOwnConfigOfJson(json, host, basePath, configFileName, errors) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors); + if ((_a = ownConfig.options) == null ? void 0 : _a.paths) { + ownConfig.options.pathsBasePath = basePath; + } + if (ownConfig.extendedConfigPath) { + resolutionStack = resolutionStack.concat([resolvedPath]); + const result = { options: {} }; + if (isString(ownConfig.extendedConfigPath)) { + applyExtendedConfig(result, ownConfig.extendedConfigPath); + } else { + ownConfig.extendedConfigPath.forEach((extendedConfigPath) => applyExtendedConfig(result, extendedConfigPath)); + } + if (result.include) ownConfig.raw.include = result.include; + if (result.exclude) ownConfig.raw.exclude = result.exclude; + if (result.files) ownConfig.raw.files = result.files; + if (ownConfig.raw.compileOnSave === void 0 && result.compileOnSave) ownConfig.raw.compileOnSave = result.compileOnSave; + if (sourceFile && result.extendedSourceFiles) sourceFile.extendedSourceFiles = arrayFrom(result.extendedSourceFiles.keys()); + ownConfig.options = assign(result.options, ownConfig.options); + ownConfig.watchOptions = ownConfig.watchOptions && result.watchOptions ? assign(result.watchOptions, ownConfig.watchOptions) : ownConfig.watchOptions || result.watchOptions; + } + return ownConfig; + function applyExtendedConfig(result, extendedConfigPath) { + const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result); + if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) { + const extendsRaw = extendedConfig.raw; + let relativeDifference; + const setPropertyInResultIfNotUndefined = (propertyName) => { + if (ownConfig.raw[propertyName]) return; + if (extendsRaw[propertyName]) { + result[propertyName] = map(extendsRaw[propertyName], (path) => startsWithConfigDirTemplate(path) || isRootedDiskPath(path) ? path : combinePaths( + relativeDifference || (relativeDifference = convertToRelativePath(getDirectoryPath(extendedConfigPath), basePath, createGetCanonicalFileName(host.useCaseSensitiveFileNames))), + path + )); + } + }; + setPropertyInResultIfNotUndefined("include"); + setPropertyInResultIfNotUndefined("exclude"); + setPropertyInResultIfNotUndefined("files"); + if (extendsRaw.compileOnSave !== void 0) { + result.compileOnSave = extendsRaw.compileOnSave; + } + assign(result.options, extendedConfig.options); + result.watchOptions = result.watchOptions && extendedConfig.watchOptions ? assign({}, result.watchOptions, extendedConfig.watchOptions) : result.watchOptions || extendedConfig.watchOptions; + } + } +} +function parseOwnConfigOfJson(json, host, basePath, configFileName, errors) { + if (hasProperty(json, "excludes")) { + errors.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)); + } + const options = convertCompilerOptionsFromJsonWorker(json.compilerOptions, basePath, errors, configFileName); + const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json.typeAcquisition, basePath, errors, configFileName); + const watchOptions = convertWatchOptionsFromJsonWorker(json.watchOptions, basePath, errors); + json.compileOnSave = convertCompileOnSaveOptionFromJson(json, basePath, errors); + const extendedConfigPath = json.extends || json.extends === "" ? getExtendsConfigPathOrArray(json.extends, host, basePath, configFileName, errors) : void 0; + return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath }; +} +function getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, valueExpression, sourceFile) { + let extendedConfigPath; + const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath; + if (isString(value)) { + extendedConfigPath = getExtendsConfigPath( + value, + host, + newBase, + errors, + valueExpression, + sourceFile + ); + } else if (isArray(value)) { + extendedConfigPath = []; + for (let index = 0; index < value.length; index++) { + const fileName = value[index]; + if (isString(fileName)) { + extendedConfigPath = append( + extendedConfigPath, + getExtendsConfigPath( + fileName, + host, + newBase, + errors, + valueExpression == null ? void 0 : valueExpression.elements[index], + sourceFile + ) + ); + } else { + convertJsonOption(extendsOptionDeclaration.element, value, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile); + } + } + } else { + convertJsonOption(extendsOptionDeclaration, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); + } + return extendedConfigPath; +} +function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors) { + const options = getDefaultCompilerOptions(configFileName); + let typeAcquisition; + let watchOptions; + let extendedConfigPath; + let rootCompilerOptions; + const rootOptions = getTsconfigRootOptionsMap(); + const json = convertConfigFileToObject( + sourceFile, + errors, + { rootOptions, onPropertySet } + ); + if (!typeAcquisition) { + typeAcquisition = getDefaultTypeAcquisition(configFileName); + } + if (rootCompilerOptions && json && json.compilerOptions === void 0) { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0]))); + } + return { raw: json, options, watchOptions, typeAcquisition, extendedConfigPath }; + function onPropertySet(keyText, value, propertyAssignment, parentOption, option) { + if (option && option !== extendsOptionDeclaration) value = convertJsonOption(option, value, basePath, errors, propertyAssignment, propertyAssignment.initializer, sourceFile); + if (parentOption == null ? void 0 : parentOption.name) { + if (option) { + let currentOption; + if (parentOption === compilerOptionsDeclaration) currentOption = options; + else if (parentOption === watchOptionsDeclaration) currentOption = watchOptions ?? (watchOptions = {}); + else if (parentOption === typeAcquisitionDeclaration) currentOption = typeAcquisition ?? (typeAcquisition = getDefaultTypeAcquisition(configFileName)); + else Debug.fail("Unknown option"); + currentOption[option.name] = value; + } else if (keyText && (parentOption == null ? void 0 : parentOption.extraKeyDiagnostics)) { + if (parentOption.elementOptions) { + errors.push(createUnknownOptionError( + keyText, + parentOption.extraKeyDiagnostics, + /*unknownOptionErrorText*/ + void 0, + propertyAssignment.name, + sourceFile + )); + } else { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText)); + } + } + } else if (parentOption === rootOptions) { + if (option === extendsOptionDeclaration) { + extendedConfigPath = getExtendsConfigPathOrArray(value, host, basePath, configFileName, errors, propertyAssignment, propertyAssignment.initializer, sourceFile); + } else if (!option) { + if (keyText === "excludes") { + errors.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)); + } + if (find(commandOptionsWithoutBuild, (opt) => opt.name === keyText)) { + rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name); + } + } + } + } +} +function getExtendsConfigPath(extendedConfig, host, basePath, errors, valueExpression, sourceFile) { + extendedConfig = normalizeSlashes(extendedConfig); + if (isRootedDiskPath(extendedConfig) || startsWith(extendedConfig, "./") || startsWith(extendedConfig, "../")) { + let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath); + if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, ".json" /* Json */)) { + extendedConfigPath = `${extendedConfigPath}.json`; + if (!host.fileExists(extendedConfigPath)) { + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig)); + return void 0; + } + } + return extendedConfigPath; + } + const resolved = nodeNextJsonConfigResolver(extendedConfig, combinePaths(basePath, "tsconfig.json"), host); + if (resolved.resolvedModule) { + return resolved.resolvedModule.resolvedFileName; + } + if (extendedConfig === "") { + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends")); + } else { + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig)); + } + return void 0; +} +function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache, result) { + const path = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath); + let value; + let extendedResult; + let extendedConfig; + if (extendedConfigCache && (value = extendedConfigCache.get(path))) { + ({ extendedResult, extendedConfig } = value); + } else { + extendedResult = readJsonConfigFile(extendedConfigPath, (path2) => host.readFile(path2)); + if (!extendedResult.parseDiagnostics.length) { + extendedConfig = parseConfig( + /*json*/ + void 0, + extendedResult, + host, + getDirectoryPath(extendedConfigPath), + getBaseFileName(extendedConfigPath), + resolutionStack, + errors, + extendedConfigCache + ); + } + if (extendedConfigCache) { + extendedConfigCache.set(path, { extendedResult, extendedConfig }); + } + } + if (sourceFile) { + (result.extendedSourceFiles ?? (result.extendedSourceFiles = /* @__PURE__ */ new Set())).add(extendedResult.fileName); + if (extendedResult.extendedSourceFiles) { + for (const extenedSourceFile of extendedResult.extendedSourceFiles) { + result.extendedSourceFiles.add(extenedSourceFile); + } + } + } + if (extendedResult.parseDiagnostics.length) { + errors.push(...extendedResult.parseDiagnostics); + return void 0; + } + return extendedConfig; +} +function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors) { + if (!hasProperty(jsonOption, compileOnSaveCommandLineOption.name)) { + return false; + } + const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors); + return typeof result === "boolean" && result; +} +function getDefaultCompilerOptions(configFileName) { + const options = configFileName && getBaseFileName(configFileName) === "jsconfig.json" ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true } : {}; + return options; +} +function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName) { + const options = getDefaultCompilerOptions(configFileName); + convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors); + if (configFileName) { + options.configFilePath = normalizeSlashes(configFileName); + } + return options; +} +function getDefaultTypeAcquisition(configFileName) { + return { enable: !!configFileName && getBaseFileName(configFileName) === "jsconfig.json", include: [], exclude: [] }; +} +function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName) { + const options = getDefaultTypeAcquisition(configFileName); + convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors); + return options; +} +function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors) { + return convertOptionsFromJson( + getCommandLineWatchOptionsMap(), + jsonOptions, + basePath, + /*defaultOptions*/ + void 0, + watchOptionsDidYouMeanDiagnostics, + errors + ); +} +function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors) { + if (!jsonOptions) { + return; + } + for (const id in jsonOptions) { + const opt = optionsNameMap.get(id); + if (opt) { + (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors); + } else { + errors.push(createUnknownOptionError(id, diagnostics)); + } + } + return defaultOptions; +} +function createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, message, ...args) { + return sourceFile && node ? createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) : createCompilerDiagnostic(message, ...args); +} +function convertJsonOption(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile) { + if (opt.isCommandLineOnly) { + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? void 0 : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name)); + return void 0; + } + if (isCompilerOptionsValue(opt, value)) { + const optType = opt.type; + if (optType === "list" && isArray(value)) { + return convertJsonOptionOfListType(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); + } else if (optType === "listOrElement") { + return isArray(value) ? convertJsonOptionOfListType(opt, value, basePath, errors, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value, basePath, errors, propertyAssignment, valueExpression, sourceFile); + } else if (!isString(opt.type)) { + return convertJsonOptionOfCustomType(opt, value, errors, valueExpression, sourceFile); + } + const validatedValue = validateJsonOptionValue(opt, value, errors, valueExpression, sourceFile); + return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue); + } else { + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt))); + } +} +function normalizeNonListOptionValue(option, basePath, value) { + if (option.isFilePath) { + value = normalizeSlashes(value); + value = !startsWithConfigDirTemplate(value) ? getNormalizedAbsolutePath(value, basePath) : value; + if (value === "") { + value = "."; + } + } + return value; +} +function validateJsonOptionValue(opt, value, errors, valueExpression, sourceFile) { + var _a; + if (isNullOrUndefined(value)) return void 0; + const d = (_a = opt.extraValidation) == null ? void 0 : _a.call(opt, value); + if (!d) return value; + errors.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d)); + return void 0; +} +function convertJsonOptionOfCustomType(opt, value, errors, valueExpression, sourceFile) { + if (isNullOrUndefined(value)) return void 0; + const key = value.toLowerCase(); + const val = opt.type.get(key); + if (val !== void 0) { + return validateJsonOptionValue(opt, val, errors, valueExpression, sourceFile); + } else { + errors.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args))); + } +} +function convertJsonOptionOfListType(option, values, basePath, errors, propertyAssignment, valueExpression, sourceFile) { + return filter(map(values, (v, index) => convertJsonOption(option.element, v, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v); +} +var invalidTrailingRecursionPattern = /(^|\/)\*\*\/?$/; +var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/; +function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) { + basePath = normalizePath(basePath); + const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames); + const literalFileMap = /* @__PURE__ */ new Map(); + const wildcardFileMap = /* @__PURE__ */ new Map(); + const wildCardJsonFileMap = /* @__PURE__ */ new Map(); + const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = configFileSpecs; + const supportedExtensions = getSupportedExtensions(options, extraFileExtensions); + const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions); + if (validatedFilesSpec) { + for (const fileName of validatedFilesSpec) { + const file = getNormalizedAbsolutePath(fileName, basePath); + literalFileMap.set(keyMapper(file), file); + } + } + let jsonOnlyIncludeRegexes; + if (validatedIncludeSpecs && validatedIncludeSpecs.length > 0) { + for (const file of host.readDirectory( + basePath, + flatten(supportedExtensionsWithJsonIfResolveJsonModule), + validatedExcludeSpecs, + validatedIncludeSpecs, + /*depth*/ + void 0 + )) { + if (fileExtensionIs(file, ".json" /* Json */)) { + if (!jsonOnlyIncludeRegexes) { + const includes = validatedIncludeSpecs.filter((s) => endsWith(s, ".json" /* Json */)); + const includeFilePatterns = map(getRegularExpressionsForWildcards(includes, basePath, "files"), (pattern) => `^${pattern}$`); + jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, host.useCaseSensitiveFileNames)) : emptyArray; + } + const includeIndex = findIndex(jsonOnlyIncludeRegexes, (re) => re.test(file)); + if (includeIndex !== -1) { + const key2 = keyMapper(file); + if (!literalFileMap.has(key2) && !wildCardJsonFileMap.has(key2)) { + wildCardJsonFileMap.set(key2, file); + } + } + continue; + } + if (hasFileWithHigherPriorityExtension(file, literalFileMap, wildcardFileMap, supportedExtensions, keyMapper)) { + continue; + } + removeWildcardFilesWithLowerPriorityExtension(file, wildcardFileMap, supportedExtensions, keyMapper); + const key = keyMapper(file); + if (!literalFileMap.has(key) && !wildcardFileMap.has(key)) { + wildcardFileMap.set(key, file); + } + } + } + const literalFiles = arrayFrom(literalFileMap.values()); + const wildcardFiles = arrayFrom(wildcardFileMap.values()); + return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values())); +} +function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) { + const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec; + if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false; + basePath = normalizePath(basePath); + const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2); + if (validatedFilesSpec) { + for (const fileName of validatedFilesSpec) { + if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false; + } + } + return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath); +} +function invalidDotDotAfterRecursiveWildcard(s) { + const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/"); + if (wildcardIndex === -1) { + return false; + } + const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../"); + return lastDotIndex > wildcardIndex; +} +function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) { + return matchesExcludeWorker( + pathToCheck, + filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)), + useCaseSensitiveFileNames2, + currentDirectory + ); +} +function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) { + const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude"); + const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2); + if (!excludeRegex) return false; + if (excludeRegex.test(pathToCheck)) return true; + return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck)); +} +function validateSpecs(specs, errors, disallowTrailingRecursion, jsonSourceFile, specKey) { + return specs.filter((spec) => { + if (!isString(spec)) return false; + const diag2 = specToDiagnostic(spec, disallowTrailingRecursion); + if (diag2 !== void 0) { + errors.push(createDiagnostic(...diag2)); + } + return diag2 === void 0; + }); + function createDiagnostic(message, spec) { + const element = getTsConfigPropArrayElementValue(jsonSourceFile, specKey, spec); + return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(jsonSourceFile, element, message, spec); + } +} +function specToDiagnostic(spec, disallowTrailingRecursion) { + Debug.assert(typeof spec === "string"); + if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) { + return [Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; + } else if (invalidDotDotAfterRecursiveWildcard(spec)) { + return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec]; + } +} +function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, basePath, useCaseSensitiveFileNames2) { + const rawExcludeRegex = getRegularExpressionForWildcard(exclude, basePath, "exclude"); + const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i"); + const wildcardDirectories = {}; + const wildCardKeyToPath = /* @__PURE__ */ new Map(); + if (include !== void 0) { + const recursiveKeys = []; + for (const file of include) { + const spec = normalizePath(combinePaths(basePath, file)); + if (excludeRegex && excludeRegex.test(spec)) { + continue; + } + const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2); + if (match) { + const { key, path, flags } = match; + const existingPath = wildCardKeyToPath.get(key); + const existingFlags = existingPath !== void 0 ? wildcardDirectories[existingPath] : void 0; + if (existingFlags === void 0 || existingFlags < flags) { + wildcardDirectories[existingPath !== void 0 ? existingPath : path] = flags; + if (existingPath === void 0) wildCardKeyToPath.set(key, path); + if (flags === 1 /* Recursive */) { + recursiveKeys.push(key); + } + } + } + } + for (const path in wildcardDirectories) { + if (hasProperty(wildcardDirectories, path)) { + for (const recursiveKey of recursiveKeys) { + const key = toCanonicalKey(path, useCaseSensitiveFileNames2); + if (key !== recursiveKey && containsPath(recursiveKey, key, basePath, !useCaseSensitiveFileNames2)) { + delete wildcardDirectories[path]; + } + } + } + } + } + return wildcardDirectories; +} +function toCanonicalKey(path, useCaseSensitiveFileNames2) { + return useCaseSensitiveFileNames2 ? path : toFileNameLowerCase(path); +} +function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) { + const match = wildcardDirectoryPattern.exec(spec); + if (match) { + const questionWildcardIndex = spec.indexOf("?"); + const starWildcardIndex = spec.indexOf("*"); + const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator); + return { + key: toCanonicalKey(match[0], useCaseSensitiveFileNames2), + path: match[0], + flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */ + }; + } + if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) { + const path = removeTrailingDirectorySeparator(spec); + return { + key: toCanonicalKey(path, useCaseSensitiveFileNames2), + path, + flags: 1 /* Recursive */ + }; + } + return void 0; +} +function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, extensions, keyMapper) { + const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0); + if (!extensionGroup) { + return false; + } + for (const ext of extensionGroup) { + if (fileExtensionIs(file, ext) && (ext !== ".ts" /* Ts */ || !fileExtensionIs(file, ".d.ts" /* Dts */))) { + return false; + } + const higherPriorityPath = keyMapper(changeExtension(file, ext)); + if (literalFiles.has(higherPriorityPath) || wildcardFiles.has(higherPriorityPath)) { + if (ext === ".d.ts" /* Dts */ && (fileExtensionIs(file, ".js" /* Js */) || fileExtensionIs(file, ".jsx" /* Jsx */))) { + continue; + } + return true; + } + } + return false; +} +function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) { + const extensionGroup = forEach(extensions, (group2) => fileExtensionIsOneOf(file, group2) ? group2 : void 0); + if (!extensionGroup) { + return; + } + for (let i = extensionGroup.length - 1; i >= 0; i--) { + const ext = extensionGroup[i]; + if (fileExtensionIs(file, ext)) { + return; + } + const lowerPriorityPath = keyMapper(changeExtension(file, ext)); + wildcardFiles.delete(lowerPriorityPath); + } +} +function getDefaultValueForOption(option) { + switch (option.type) { + case "number": + return 1; + case "boolean": + return true; + case "string": + const defaultValue = option.defaultValueDescription; + return option.isFilePath ? `./${defaultValue && typeof defaultValue === "string" ? defaultValue : ""}` : ""; + case "list": + return []; + case "listOrElement": + return getDefaultValueForOption(option.element); + case "object": + return {}; + default: + const value = firstOrUndefinedIterator(option.type.keys()); + if (value !== void 0) return value; + return Debug.fail("Expected 'option.type' to have entries."); + } +} + +// src/compiler/moduleNameResolver.ts +function trace(host, message, ...args) { + host.trace(formatMessage(message, ...args)); +} +function isTraceEnabled(compilerOptions, host) { + return !!compilerOptions.traceResolution && host.trace !== void 0; +} +function withPackageId(packageInfo, r, state) { + let packageId; + if (r && packageInfo) { + const packageJsonContent = packageInfo.contents.packageJsonContent; + if (typeof packageJsonContent.name === "string" && typeof packageJsonContent.version === "string") { + packageId = { + name: packageJsonContent.name, + subModuleName: r.path.slice(packageInfo.packageDirectory.length + directorySeparator.length), + version: packageJsonContent.version, + peerDependencies: getPeerDependenciesOfPackageJsonInfo(packageInfo, state) + }; + } + } + return r && { path: r.path, extension: r.ext, packageId, resolvedUsingTsExtension: r.resolvedUsingTsExtension }; +} +function noPackageId(r) { + return withPackageId( + /*packageInfo*/ + void 0, + r, + /*state*/ + void 0 + ); +} +function removeIgnoredPackageId(r) { + if (r) { + Debug.assert(r.packageId === void 0); + return { path: r.path, ext: r.extension, resolvedUsingTsExtension: r.resolvedUsingTsExtension }; + } +} +function formatExtensions(extensions) { + const result = []; + if (extensions & 1 /* TypeScript */) result.push("TypeScript"); + if (extensions & 2 /* JavaScript */) result.push("JavaScript"); + if (extensions & 4 /* Declaration */) result.push("Declaration"); + if (extensions & 8 /* Json */) result.push("JSON"); + return result.join(", "); +} +function resolvedTypeScriptOnly(resolved) { + if (!resolved) { + return void 0; + } + Debug.assert(extensionIsTS(resolved.extension)); + return { fileName: resolved.path, packageId: resolved.packageId }; +} +function createResolvedModuleWithFailedLookupLocationsHandlingSymlink(moduleName, resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, state, cache, alternateResult) { + if (!state.resultFromCache && !state.compilerOptions.preserveSymlinks && resolved && isExternalLibraryImport && !resolved.originalPath && !isExternalModuleNameRelative(moduleName)) { + const { resolvedFileName, originalPath } = getOriginalAndResolvedFileName(resolved.path, state.host, state.traceEnabled); + if (originalPath) resolved = { ...resolved, path: resolvedFileName, originalPath }; + } + return createResolvedModuleWithFailedLookupLocations( + resolved, + isExternalLibraryImport, + failedLookupLocations, + affectingLocations, + diagnostics, + state.resultFromCache, + cache, + alternateResult + ); +} +function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, affectingLocations, diagnostics, resultFromCache, cache, alternateResult) { + if (resultFromCache) { + if (!(cache == null ? void 0 : cache.isReadonly)) { + resultFromCache.failedLookupLocations = updateResolutionField(resultFromCache.failedLookupLocations, failedLookupLocations); + resultFromCache.affectingLocations = updateResolutionField(resultFromCache.affectingLocations, affectingLocations); + resultFromCache.resolutionDiagnostics = updateResolutionField(resultFromCache.resolutionDiagnostics, diagnostics); + return resultFromCache; + } else { + return { + ...resultFromCache, + failedLookupLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.failedLookupLocations, failedLookupLocations), + affectingLocations: initializeResolutionFieldForReadonlyCache(resultFromCache.affectingLocations, affectingLocations), + resolutionDiagnostics: initializeResolutionFieldForReadonlyCache(resultFromCache.resolutionDiagnostics, diagnostics) + }; + } + } + return { + resolvedModule: resolved && { + resolvedFileName: resolved.path, + originalPath: resolved.originalPath === true ? void 0 : resolved.originalPath, + extension: resolved.extension, + isExternalLibraryImport, + packageId: resolved.packageId, + resolvedUsingTsExtension: !!resolved.resolvedUsingTsExtension + }, + failedLookupLocations: initializeResolutionField(failedLookupLocations), + affectingLocations: initializeResolutionField(affectingLocations), + resolutionDiagnostics: initializeResolutionField(diagnostics), + alternateResult + }; +} +function initializeResolutionField(value) { + return value.length ? value : void 0; +} +function updateResolutionField(to, value) { + if (!(value == null ? void 0 : value.length)) return to; + if (!(to == null ? void 0 : to.length)) return value; + to.push(...value); + return to; +} +function initializeResolutionFieldForReadonlyCache(fromCache, value) { + if (!(fromCache == null ? void 0 : fromCache.length)) return initializeResolutionField(value); + if (!value.length) return fromCache.slice(); + return [...fromCache, ...value]; +} +function readPackageJsonField(jsonContent, fieldName, typeOfTag, state) { + if (!hasProperty(jsonContent, fieldName)) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_does_not_have_a_0_field, fieldName); + } + return; + } + const value = jsonContent[fieldName]; + if (typeof value !== typeOfTag || value === null) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, fieldName, typeOfTag, value === null ? "null" : typeof value); + } + return; + } + return value; +} +function readPackageJsonPathField(jsonContent, fieldName, baseDirectory, state) { + const fileName = readPackageJsonField(jsonContent, fieldName, "string", state); + if (fileName === void 0) { + return; + } + if (!fileName) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_had_a_falsy_0_field, fieldName); + } + return; + } + const path = normalizePath(combinePaths(baseDirectory, fileName)); + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path); + } + return path; +} +function readPackageJsonTypesFields(jsonContent, baseDirectory, state) { + return readPackageJsonPathField(jsonContent, "typings", baseDirectory, state) || readPackageJsonPathField(jsonContent, "types", baseDirectory, state); +} +function readPackageJsonTSConfigField(jsonContent, baseDirectory, state) { + return readPackageJsonPathField(jsonContent, "tsconfig", baseDirectory, state); +} +function readPackageJsonMainField(jsonContent, baseDirectory, state) { + return readPackageJsonPathField(jsonContent, "main", baseDirectory, state); +} +function readPackageJsonTypesVersionsField(jsonContent, state) { + const typesVersions = readPackageJsonField(jsonContent, "typesVersions", "object", state); + if (typesVersions === void 0) return; + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings); + } + return typesVersions; +} +function readPackageJsonTypesVersionPaths(jsonContent, state) { + const typesVersions = readPackageJsonTypesVersionsField(jsonContent, state); + if (typesVersions === void 0) return; + if (state.traceEnabled) { + for (const key in typesVersions) { + if (hasProperty(typesVersions, key) && !VersionRange.tryParse(key)) { + trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, key); + } + } + } + const result = getPackageJsonTypesVersionsPaths(typesVersions); + if (!result) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, versionMajorMinor); + } + return; + } + const { version: bestVersionKey, paths: bestVersionPaths } = result; + if (typeof bestVersionPaths !== "object") { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, `typesVersions['${bestVersionKey}']`, "object", typeof bestVersionPaths); + } + return; + } + return result; +} +var typeScriptVersion; +function getPackageJsonTypesVersionsPaths(typesVersions) { + if (!typeScriptVersion) typeScriptVersion = new Version(version); + for (const key in typesVersions) { + if (!hasProperty(typesVersions, key)) continue; + const keyRange = VersionRange.tryParse(key); + if (keyRange === void 0) { + continue; + } + if (keyRange.test(typeScriptVersion)) { + return { version: key, paths: typesVersions[key] }; + } + } +} +function getEffectiveTypeRoots(options, host) { + if (options.typeRoots) { + return options.typeRoots; + } + let currentDirectory; + if (options.configFilePath) { + currentDirectory = getDirectoryPath(options.configFilePath); + } else if (host.getCurrentDirectory) { + currentDirectory = host.getCurrentDirectory(); + } + if (currentDirectory !== void 0) { + return getDefaultTypeRoots(currentDirectory); + } +} +function getDefaultTypeRoots(currentDirectory) { + let typeRoots; + forEachAncestorDirectory(normalizePath(currentDirectory), (directory) => { + const atTypes = combinePaths(directory, nodeModulesAtTypes); + (typeRoots ?? (typeRoots = [])).push(atTypes); + }); + return typeRoots; +} +var nodeModulesAtTypes = combinePaths("node_modules", "@types"); +function arePathsEqual(path1, path2, host) { + const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames; + return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */; +} +function getOriginalAndResolvedFileName(fileName, host, traceEnabled) { + const resolvedFileName = realPath(fileName, host, traceEnabled); + const pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host); + return { + // If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames + resolvedFileName: pathsAreEqual ? fileName : resolvedFileName, + originalPath: pathsAreEqual ? void 0 : fileName + }; +} +function getCandidateFromTypeRoot(typeRoot, typeReferenceDirectiveName, moduleResolutionState) { + const nameForLookup = endsWith(typeRoot, "/node_modules/@types") || endsWith(typeRoot, "/node_modules/@types/") ? mangleScopedPackageNameWithTrace(typeReferenceDirectiveName, moduleResolutionState) : typeReferenceDirectiveName; + return combinePaths(typeRoot, nameForLookup); +} +function resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference, cache, resolutionMode) { + Debug.assert(typeof typeReferenceDirectiveName === "string", "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself."); + const traceEnabled = isTraceEnabled(options, host); + if (redirectedReference) { + options = redirectedReference.commandLine.options; + } + const containingDirectory = containingFile ? getDirectoryPath(containingFile) : void 0; + let result = containingDirectory ? cache == null ? void 0 : cache.getFromDirectoryCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference) : void 0; + if (!result && containingDirectory && !isExternalModuleNameRelative(typeReferenceDirectiveName)) { + result = cache == null ? void 0 : cache.getFromNonRelativeNameCache(typeReferenceDirectiveName, resolutionMode, containingDirectory, redirectedReference); + } + if (result) { + if (traceEnabled) { + trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1, typeReferenceDirectiveName, containingFile); + if (redirectedReference) trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); + trace(host, Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, typeReferenceDirectiveName, containingDirectory); + traceResult(result); + } + return result; + } + const typeRoots = getEffectiveTypeRoots(options, host); + if (traceEnabled) { + if (containingFile === void 0) { + if (typeRoots === void 0) { + trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, typeReferenceDirectiveName); + } else { + trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, typeReferenceDirectiveName, typeRoots); + } + } else { + if (typeRoots === void 0) { + trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, typeReferenceDirectiveName, containingFile); + } else { + trace(host, Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, typeReferenceDirectiveName, containingFile, typeRoots); + } + } + if (redirectedReference) { + trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); + } + } + const failedLookupLocations = []; + const affectingLocations = []; + let features = getNodeResolutionFeatures(options); + if (resolutionMode !== void 0) { + features |= 30 /* AllFeatures */; + } + const moduleResolution = getEmitModuleResolutionKind(options); + if (resolutionMode === 99 /* ESNext */ && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + features |= 32 /* EsmMode */; + } + const conditions = features & 8 /* Exports */ ? getConditions(options, resolutionMode) : []; + const diagnostics = []; + const moduleResolutionState = { + compilerOptions: options, + host, + traceEnabled, + failedLookupLocations, + affectingLocations, + packageJsonInfoCache: cache, + features, + conditions, + requestContainingDirectory: containingDirectory, + reportDiagnostic: (diag2) => void diagnostics.push(diag2), + isConfigLookup: false, + candidateIsFromPackageJsonField: false, + resolvedPackageDirectory: false + }; + let resolved = primaryLookup(); + let primary = true; + if (!resolved) { + resolved = secondaryLookup(); + primary = false; + } + let resolvedTypeReferenceDirective; + if (resolved) { + const { fileName, packageId } = resolved; + let resolvedFileName = fileName, originalPath; + if (!options.preserveSymlinks) ({ resolvedFileName, originalPath } = getOriginalAndResolvedFileName(fileName, host, traceEnabled)); + resolvedTypeReferenceDirective = { + primary, + resolvedFileName, + originalPath, + packageId, + isExternalLibraryImport: pathContainsNodeModules(fileName) + }; + } + result = { + resolvedTypeReferenceDirective, + failedLookupLocations: initializeResolutionField(failedLookupLocations), + affectingLocations: initializeResolutionField(affectingLocations), + resolutionDiagnostics: initializeResolutionField(diagnostics) + }; + if (containingDirectory && cache && !cache.isReadonly) { + cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set( + typeReferenceDirectiveName, + /*mode*/ + resolutionMode, + result + ); + if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) { + cache.getOrCreateCacheForNonRelativeName(typeReferenceDirectiveName, resolutionMode, redirectedReference).set(containingDirectory, result); + } + } + if (traceEnabled) traceResult(result); + return result; + function traceResult(result2) { + var _a; + if (!((_a = result2.resolvedTypeReferenceDirective) == null ? void 0 : _a.resolvedFileName)) { + trace(host, Diagnostics.Type_reference_directive_0_was_not_resolved, typeReferenceDirectiveName); + } else if (result2.resolvedTypeReferenceDirective.packageId) { + trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, packageIdToString(result2.resolvedTypeReferenceDirective.packageId), result2.resolvedTypeReferenceDirective.primary); + } else { + trace(host, Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, typeReferenceDirectiveName, result2.resolvedTypeReferenceDirective.resolvedFileName, result2.resolvedTypeReferenceDirective.primary); + } + } + function primaryLookup() { + if (typeRoots && typeRoots.length) { + if (traceEnabled) { + trace(host, Diagnostics.Resolving_with_primary_search_path_0, typeRoots.join(", ")); + } + return firstDefined(typeRoots, (typeRoot) => { + const candidate = getCandidateFromTypeRoot(typeRoot, typeReferenceDirectiveName, moduleResolutionState); + const directoryExists = directoryProbablyExists(typeRoot, host); + if (!directoryExists && traceEnabled) { + trace(host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, typeRoot); + } + if (options.typeRoots) { + const resolvedFromFile = loadModuleFromFile(4 /* Declaration */, candidate, !directoryExists, moduleResolutionState); + if (resolvedFromFile) { + const packageDirectory = parseNodeModuleFromPath(resolvedFromFile.path); + const packageInfo = packageDirectory ? getPackageJsonInfo( + packageDirectory, + /*onlyRecordFailures*/ + false, + moduleResolutionState + ) : void 0; + return resolvedTypeScriptOnly(withPackageId(packageInfo, resolvedFromFile, moduleResolutionState)); + } + } + return resolvedTypeScriptOnly( + loadNodeModuleFromDirectory(4 /* Declaration */, candidate, !directoryExists, moduleResolutionState) + ); + }); + } else { + if (traceEnabled) { + trace(host, Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths); + } + } + } + function secondaryLookup() { + const initialLocationForSecondaryLookup = containingFile && getDirectoryPath(containingFile); + if (initialLocationForSecondaryLookup !== void 0) { + let result2; + if (!options.typeRoots || !endsWith(containingFile, inferredTypesContainingFile)) { + if (traceEnabled) { + trace(host, Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, initialLocationForSecondaryLookup); + } + if (!isExternalModuleNameRelative(typeReferenceDirectiveName)) { + const searchResult = loadModuleFromNearestNodeModulesDirectory( + 4 /* Declaration */, + typeReferenceDirectiveName, + initialLocationForSecondaryLookup, + moduleResolutionState, + /*cache*/ + void 0, + /*redirectedReference*/ + void 0 + ); + result2 = searchResult && searchResult.value; + } else { + const { path: candidate } = normalizePathForCJSResolution(initialLocationForSecondaryLookup, typeReferenceDirectiveName); + result2 = nodeLoadModuleByRelativeName( + 4 /* Declaration */, + candidate, + /*onlyRecordFailures*/ + false, + moduleResolutionState, + /*considerPackageJson*/ + true + ); + } + } else if (traceEnabled) { + trace(host, Diagnostics.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder); + } + return resolvedTypeScriptOnly(result2); + } else { + if (traceEnabled) { + trace(host, Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder); + } + } + } +} +function getNodeResolutionFeatures(options) { + let features = 0 /* None */; + switch (getEmitModuleResolutionKind(options)) { + case 3 /* Node16 */: + features = 30 /* Node16Default */; + break; + case 99 /* NodeNext */: + features = 30 /* NodeNextDefault */; + break; + case 100 /* Bundler */: + features = 30 /* BundlerDefault */; + break; + } + if (options.resolvePackageJsonExports) { + features |= 8 /* Exports */; + } else if (options.resolvePackageJsonExports === false) { + features &= ~8 /* Exports */; + } + if (options.resolvePackageJsonImports) { + features |= 2 /* Imports */; + } else if (options.resolvePackageJsonImports === false) { + features &= ~2 /* Imports */; + } + return features; +} +function getConditions(options, resolutionMode) { + const moduleResolution = getEmitModuleResolutionKind(options); + if (resolutionMode === void 0) { + if (moduleResolution === 100 /* Bundler */) { + resolutionMode = 99 /* ESNext */; + } else if (moduleResolution === 2 /* Node10 */) { + return []; + } + } + const conditions = resolutionMode === 99 /* ESNext */ ? ["import"] : ["require"]; + if (!options.noDtsResolution) { + conditions.push("types"); + } + if (moduleResolution !== 100 /* Bundler */) { + conditions.push("node"); + } + return concatenate(conditions, options.customConditions); +} +function getAutomaticTypeDirectiveNames(options, host) { + if (options.types) { + return options.types; + } + const result = []; + if (host.directoryExists && host.getDirectories) { + const typeRoots = getEffectiveTypeRoots(options, host); + if (typeRoots) { + for (const root of typeRoots) { + if (host.directoryExists(root)) { + for (const typeDirectivePath of host.getDirectories(root)) { + const normalized = normalizePath(typeDirectivePath); + const packageJsonPath = combinePaths(root, normalized, "package.json"); + const isNotNeededPackage = host.fileExists(packageJsonPath) && readJson(packageJsonPath, host).typings === null; + if (!isNotNeededPackage) { + const baseFileName = getBaseFileName(normalized); + if (baseFileName.charCodeAt(0) !== 46 /* dot */) { + result.push(baseFileName); + } + } + } + } + } + } + } + return result; +} +function isPackageJsonInfo(entry) { + return !!(entry == null ? void 0 : entry.contents); +} +function isMissingPackageJsonInfo(entry) { + return !!entry && !entry.contents; +} +function compilerOptionValueToString(value) { + var _a; + if (value === null || typeof value !== "object") { + return "" + value; + } + if (isArray(value)) { + return `[${(_a = value.map((e) => compilerOptionValueToString(e))) == null ? void 0 : _a.join(",")}]`; + } + let str = "{"; + for (const key in value) { + if (hasProperty(value, key)) { + str += `${key}: ${compilerOptionValueToString(value[key])}`; + } + } + return str + "}"; +} +function getKeyForCompilerOptions(options, affectingOptionDeclarations) { + return affectingOptionDeclarations.map((option) => compilerOptionValueToString(getCompilerOptionValue(options, option))).join("|") + `|${options.pathsBasePath}`; +} +function createCacheWithRedirects(ownOptions, optionsToRedirectsKey) { + const redirectsMap = /* @__PURE__ */ new Map(); + const redirectsKeyToMap = /* @__PURE__ */ new Map(); + let ownMap = /* @__PURE__ */ new Map(); + if (ownOptions) redirectsMap.set(ownOptions, ownMap); + return { + getMapOfCacheRedirects, + getOrCreateMapOfCacheRedirects, + update, + clear: clear2, + getOwnMap: () => ownMap + }; + function getMapOfCacheRedirects(redirectedReference) { + return redirectedReference ? getOrCreateMap( + redirectedReference.commandLine.options, + /*create*/ + false + ) : ownMap; + } + function getOrCreateMapOfCacheRedirects(redirectedReference) { + return redirectedReference ? getOrCreateMap( + redirectedReference.commandLine.options, + /*create*/ + true + ) : ownMap; + } + function update(newOptions) { + if (ownOptions !== newOptions) { + if (ownOptions) ownMap = getOrCreateMap( + newOptions, + /*create*/ + true + ); + else redirectsMap.set(newOptions, ownMap); + ownOptions = newOptions; + } + } + function getOrCreateMap(redirectOptions, create) { + let result = redirectsMap.get(redirectOptions); + if (result) return result; + const key = getRedirectsCacheKey(redirectOptions); + result = redirectsKeyToMap.get(key); + if (!result) { + if (ownOptions) { + const ownKey = getRedirectsCacheKey(ownOptions); + if (ownKey === key) result = ownMap; + else if (!redirectsKeyToMap.has(ownKey)) redirectsKeyToMap.set(ownKey, ownMap); + } + if (create) result ?? (result = /* @__PURE__ */ new Map()); + if (result) redirectsKeyToMap.set(key, result); + } + if (result) redirectsMap.set(redirectOptions, result); + return result; + } + function clear2() { + const ownKey = ownOptions && optionsToRedirectsKey.get(ownOptions); + ownMap.clear(); + redirectsMap.clear(); + optionsToRedirectsKey.clear(); + redirectsKeyToMap.clear(); + if (ownOptions) { + if (ownKey) optionsToRedirectsKey.set(ownOptions, ownKey); + redirectsMap.set(ownOptions, ownMap); + } + } + function getRedirectsCacheKey(options) { + let result = optionsToRedirectsKey.get(options); + if (!result) { + optionsToRedirectsKey.set(options, result = getKeyForCompilerOptions(options, moduleResolutionOptionDeclarations)); + } + return result; + } +} +function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) { + let cache; + return { getPackageJsonInfo: getPackageJsonInfo2, setPackageJsonInfo, clear: clear2, getInternalMap }; + function getPackageJsonInfo2(packageJsonPath) { + return cache == null ? void 0 : cache.get(toPath(packageJsonPath, currentDirectory, getCanonicalFileName)); + } + function setPackageJsonInfo(packageJsonPath, info) { + (cache || (cache = /* @__PURE__ */ new Map())).set(toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info); + } + function clear2() { + cache = void 0; + } + function getInternalMap() { + return cache; + } +} +function getOrCreateCache(cacheWithRedirects, redirectedReference, key, create) { + const cache = cacheWithRedirects.getOrCreateMapOfCacheRedirects(redirectedReference); + let result = cache.get(key); + if (!result) { + result = create(); + cache.set(key, result); + } + return result; +} +function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, options, optionsToRedirectsKey) { + const directoryToModuleNameMap = createCacheWithRedirects(options, optionsToRedirectsKey); + return { + getFromDirectoryCache, + getOrCreateCacheForDirectory, + clear: clear2, + update, + directoryToModuleNameMap + }; + function clear2() { + directoryToModuleNameMap.clear(); + } + function update(options2) { + directoryToModuleNameMap.update(options2); + } + function getOrCreateCacheForDirectory(directoryName, redirectedReference) { + const path = toPath(directoryName, currentDirectory, getCanonicalFileName); + return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path, () => createModeAwareCache()); + } + function getFromDirectoryCache(name, mode, directoryName, redirectedReference) { + var _a, _b; + const path = toPath(directoryName, currentDirectory, getCanonicalFileName); + return (_b = (_a = directoryToModuleNameMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(path)) == null ? void 0 : _b.get(name, mode); + } +} +function createModeAwareCacheKey(specifier, mode) { + return mode === void 0 ? specifier : `${mode}|${specifier}`; +} +function createModeAwareCache() { + const underlying = /* @__PURE__ */ new Map(); + const memoizedReverseKeys = /* @__PURE__ */ new Map(); + const cache = { + get(specifier, mode) { + return underlying.get(getUnderlyingCacheKey(specifier, mode)); + }, + set(specifier, mode, value) { + underlying.set(getUnderlyingCacheKey(specifier, mode), value); + return cache; + }, + delete(specifier, mode) { + underlying.delete(getUnderlyingCacheKey(specifier, mode)); + return cache; + }, + has(specifier, mode) { + return underlying.has(getUnderlyingCacheKey(specifier, mode)); + }, + forEach(cb) { + return underlying.forEach((elem, key) => { + const [specifier, mode] = memoizedReverseKeys.get(key); + return cb(elem, specifier, mode); + }); + }, + size() { + return underlying.size; + } + }; + return cache; + function getUnderlyingCacheKey(specifier, mode) { + const result = createModeAwareCacheKey(specifier, mode); + memoizedReverseKeys.set(result, [specifier, mode]); + return result; + } +} +function getOriginalOrResolvedModuleFileName(result) { + return result.resolvedModule && (result.resolvedModule.originalPath || result.resolvedModule.resolvedFileName); +} +function getOriginalOrResolvedTypeReferenceFileName(result) { + return result.resolvedTypeReferenceDirective && (result.resolvedTypeReferenceDirective.originalPath || result.resolvedTypeReferenceDirective.resolvedFileName); +} +function createNonRelativeNameResolutionCache(currentDirectory, getCanonicalFileName, options, getResolvedFileName, optionsToRedirectsKey) { + const moduleNameToDirectoryMap = createCacheWithRedirects(options, optionsToRedirectsKey); + return { + getFromNonRelativeNameCache, + getOrCreateCacheForNonRelativeName, + clear: clear2, + update + }; + function clear2() { + moduleNameToDirectoryMap.clear(); + } + function update(options2) { + moduleNameToDirectoryMap.update(options2); + } + function getFromNonRelativeNameCache(nonRelativeModuleName, mode, directoryName, redirectedReference) { + var _a, _b; + Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); + return (_b = (_a = moduleNameToDirectoryMap.getMapOfCacheRedirects(redirectedReference)) == null ? void 0 : _a.get(createModeAwareCacheKey(nonRelativeModuleName, mode))) == null ? void 0 : _b.get(directoryName); + } + function getOrCreateCacheForNonRelativeName(nonRelativeModuleName, mode, redirectedReference) { + Debug.assert(!isExternalModuleNameRelative(nonRelativeModuleName)); + return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, createModeAwareCacheKey(nonRelativeModuleName, mode), createPerModuleNameCache); + } + function createPerModuleNameCache() { + const directoryPathMap = /* @__PURE__ */ new Map(); + return { get, set }; + function get(directory) { + return directoryPathMap.get(toPath(directory, currentDirectory, getCanonicalFileName)); + } + function set(directory, result) { + const path = toPath(directory, currentDirectory, getCanonicalFileName); + if (directoryPathMap.has(path)) { + return; + } + directoryPathMap.set(path, result); + const resolvedFileName = getResolvedFileName(result); + const commonPrefix = resolvedFileName && getCommonPrefix(path, resolvedFileName); + let current = path; + while (current !== commonPrefix) { + const parent = getDirectoryPath(current); + if (parent === current || directoryPathMap.has(parent)) { + break; + } + directoryPathMap.set(parent, result); + current = parent; + } + } + function getCommonPrefix(directory, resolution) { + const resolutionDirectory = toPath(getDirectoryPath(resolution), currentDirectory, getCanonicalFileName); + let i = 0; + const limit = Math.min(directory.length, resolutionDirectory.length); + while (i < limit && directory.charCodeAt(i) === resolutionDirectory.charCodeAt(i)) { + i++; + } + if (i === directory.length && (resolutionDirectory.length === i || resolutionDirectory[i] === directorySeparator)) { + return directory; + } + const rootLength = getRootLength(directory); + if (i < rootLength) { + return void 0; + } + const sep = directory.lastIndexOf(directorySeparator, i - 1); + if (sep === -1) { + return void 0; + } + return directory.substr(0, Math.max(sep, rootLength)); + } + } +} +function createModuleOrTypeReferenceResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, getResolvedFileName, optionsToRedirectsKey) { + optionsToRedirectsKey ?? (optionsToRedirectsKey = /* @__PURE__ */ new Map()); + const perDirectoryResolutionCache = createPerDirectoryResolutionCache( + currentDirectory, + getCanonicalFileName, + options, + optionsToRedirectsKey + ); + const nonRelativeNameResolutionCache = createNonRelativeNameResolutionCache( + currentDirectory, + getCanonicalFileName, + options, + getResolvedFileName, + optionsToRedirectsKey + ); + packageJsonInfoCache ?? (packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName)); + return { + ...packageJsonInfoCache, + ...perDirectoryResolutionCache, + ...nonRelativeNameResolutionCache, + clear: clear2, + update, + getPackageJsonInfoCache: () => packageJsonInfoCache, + clearAllExceptPackageJsonInfoCache, + optionsToRedirectsKey + }; + function clear2() { + clearAllExceptPackageJsonInfoCache(); + packageJsonInfoCache.clear(); + } + function clearAllExceptPackageJsonInfoCache() { + perDirectoryResolutionCache.clear(); + nonRelativeNameResolutionCache.clear(); + } + function update(options2) { + perDirectoryResolutionCache.update(options2); + nonRelativeNameResolutionCache.update(options2); + } +} +function createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, optionsToRedirectsKey) { + const result = createModuleOrTypeReferenceResolutionCache( + currentDirectory, + getCanonicalFileName, + options, + packageJsonInfoCache, + getOriginalOrResolvedModuleFileName, + optionsToRedirectsKey + ); + result.getOrCreateCacheForModuleName = (nonRelativeName, mode, redirectedReference) => result.getOrCreateCacheForNonRelativeName(nonRelativeName, mode, redirectedReference); + return result; +} +function createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, optionsToRedirectsKey) { + return createModuleOrTypeReferenceResolutionCache( + currentDirectory, + getCanonicalFileName, + options, + packageJsonInfoCache, + getOriginalOrResolvedTypeReferenceFileName, + optionsToRedirectsKey + ); +} +function getOptionsForLibraryResolution(options) { + return { moduleResolution: 2 /* Node10 */, traceResolution: options.traceResolution }; +} +function resolveLibrary(libraryName, resolveFrom, compilerOptions, host, cache) { + return resolveModuleName(libraryName, resolveFrom, getOptionsForLibraryResolution(compilerOptions), host, cache); +} +function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { + var _a, _b, _c; + const traceEnabled = isTraceEnabled(compilerOptions, host); + if (redirectedReference) { + compilerOptions = redirectedReference.commandLine.options; + } + if (traceEnabled) { + trace(host, Diagnostics.Resolving_module_0_from_1, moduleName, containingFile); + if (redirectedReference) { + trace(host, Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName); + } + } + const containingDirectory = getDirectoryPath(containingFile); + let result = cache == null ? void 0 : cache.getFromDirectoryCache(moduleName, resolutionMode, containingDirectory, redirectedReference); + if (result) { + if (traceEnabled) { + trace(host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory); + } + } else { + let moduleResolution = compilerOptions.moduleResolution; + if (moduleResolution === void 0) { + moduleResolution = getEmitModuleResolutionKind(compilerOptions); + if (traceEnabled) { + trace(host, Diagnostics.Module_resolution_kind_is_not_specified_using_0, ModuleResolutionKind[moduleResolution]); + } + } else { + if (traceEnabled) { + trace(host, Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ModuleResolutionKind[moduleResolution]); + } + } + (_a = perfLogger) == null ? void 0 : _a.logStartResolveModule(moduleName); + switch (moduleResolution) { + case 3 /* Node16 */: + result = node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); + break; + case 99 /* NodeNext */: + result = nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); + break; + case 2 /* Node10 */: + result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : void 0); + break; + case 1 /* Classic */: + result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference); + break; + case 100 /* Bundler */: + result = bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode ? getConditions(compilerOptions, resolutionMode) : void 0); + break; + default: + return Debug.fail(`Unexpected moduleResolution: ${moduleResolution}`); + } + if (result && result.resolvedModule) (_b = perfLogger) == null ? void 0 : _b.logInfoEvent(`Module "${moduleName}" resolved to "${result.resolvedModule.resolvedFileName}"`); + (_c = perfLogger) == null ? void 0 : _c.logStopResolveModule(result && result.resolvedModule ? "" + result.resolvedModule.resolvedFileName : "null"); + if (cache && !cache.isReadonly) { + cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result); + if (!isExternalModuleNameRelative(moduleName)) { + cache.getOrCreateCacheForNonRelativeName(moduleName, resolutionMode, redirectedReference).set(containingDirectory, result); + } + } + } + if (traceEnabled) { + if (result.resolvedModule) { + if (result.resolvedModule.packageId) { + trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, moduleName, result.resolvedModule.resolvedFileName, packageIdToString(result.resolvedModule.packageId)); + } else { + trace(host, Diagnostics.Module_name_0_was_successfully_resolved_to_1, moduleName, result.resolvedModule.resolvedFileName); + } + } else { + trace(host, Diagnostics.Module_name_0_was_not_resolved, moduleName); + } + } + return result; +} +function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state) { + const resolved = tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state); + if (resolved) return resolved.value; + if (!isExternalModuleNameRelative(moduleName)) { + return tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state); + } else { + return tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state); + } +} +function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) { + var _a; + const { baseUrl, paths, configFile } = state.compilerOptions; + if (paths && !pathIsRelative(moduleName)) { + if (state.traceEnabled) { + if (baseUrl) { + trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName); + } + trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName); + } + const baseDirectory = getPathsBasePath(state.compilerOptions, state.host); + const pathPatterns = (configFile == null ? void 0 : configFile.configFileSpecs) ? (_a = configFile.configFileSpecs).pathPatterns || (_a.pathPatterns = tryParsePatterns(paths)) : void 0; + return tryLoadModuleUsingPaths( + extensions, + moduleName, + baseDirectory, + paths, + pathPatterns, + loader, + /*onlyRecordFailures*/ + false, + state + ); + } +} +function tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state) { + if (!state.compilerOptions.rootDirs) { + return void 0; + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, moduleName); + } + const candidate = normalizePath(combinePaths(containingDirectory, moduleName)); + let matchedRootDir; + let matchedNormalizedPrefix; + for (const rootDir of state.compilerOptions.rootDirs) { + let normalizedRoot = normalizePath(rootDir); + if (!endsWith(normalizedRoot, directorySeparator)) { + normalizedRoot += directorySeparator; + } + const isLongestMatchingPrefix = startsWith(candidate, normalizedRoot) && (matchedNormalizedPrefix === void 0 || matchedNormalizedPrefix.length < normalizedRoot.length); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2, normalizedRoot, candidate, isLongestMatchingPrefix); + } + if (isLongestMatchingPrefix) { + matchedNormalizedPrefix = normalizedRoot; + matchedRootDir = rootDir; + } + } + if (matchedNormalizedPrefix) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Longest_matching_prefix_for_0_is_1, candidate, matchedNormalizedPrefix); + } + const suffix = candidate.substr(matchedNormalizedPrefix.length); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, matchedNormalizedPrefix, candidate); + } + const resolvedFileName = loader(extensions, candidate, !directoryProbablyExists(containingDirectory, state.host), state); + if (resolvedFileName) { + return resolvedFileName; + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.Trying_other_entries_in_rootDirs); + } + for (const rootDir of state.compilerOptions.rootDirs) { + if (rootDir === matchedRootDir) { + continue; + } + const candidate2 = combinePaths(normalizePath(rootDir), suffix); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, rootDir, candidate2); + } + const baseDirectory = getDirectoryPath(candidate2); + const resolvedFileName2 = loader(extensions, candidate2, !directoryProbablyExists(baseDirectory, state.host), state); + if (resolvedFileName2) { + return resolvedFileName2; + } + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.Module_resolution_using_rootDirs_has_failed); + } + } + return void 0; +} +function tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state) { + const { baseUrl } = state.compilerOptions; + if (!baseUrl) { + return void 0; + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName); + } + const candidate = normalizePath(combinePaths(baseUrl, moduleName)); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2, moduleName, baseUrl, candidate); + } + return loader(extensions, candidate, !directoryProbablyExists(getDirectoryPath(candidate), state.host), state); +} +function resolveJSModule(moduleName, initialDir, host) { + const { resolvedModule, failedLookupLocations } = tryResolveJSModuleWorker(moduleName, initialDir, host); + if (!resolvedModule) { + throw new Error(`Could not resolve JS module '${moduleName}' starting at '${initialDir}'. Looked in: ${failedLookupLocations == null ? void 0 : failedLookupLocations.join(", ")}`); + } + return resolvedModule.resolvedFileName; +} +function node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { + return nodeNextModuleNameResolverWorker( + 30 /* Node16Default */, + moduleName, + containingFile, + compilerOptions, + host, + cache, + redirectedReference, + resolutionMode + ); +} +function nodeNextModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { + return nodeNextModuleNameResolverWorker( + 30 /* NodeNextDefault */, + moduleName, + containingFile, + compilerOptions, + host, + cache, + redirectedReference, + resolutionMode + ); +} +function nodeNextModuleNameResolverWorker(features, moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode, conditions) { + const containingDirectory = getDirectoryPath(containingFile); + const esmMode = resolutionMode === 99 /* ESNext */ ? 32 /* EsmMode */ : 0; + let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; + if (getResolveJsonModule(compilerOptions)) { + extensions |= 8 /* Json */; + } + return nodeModuleNameResolverWorker( + features | esmMode, + moduleName, + containingDirectory, + compilerOptions, + host, + cache, + extensions, + /*isConfigLookup*/ + false, + redirectedReference, + conditions + ); +} +function tryResolveJSModuleWorker(moduleName, initialDir, host) { + return nodeModuleNameResolverWorker( + 0 /* None */, + moduleName, + initialDir, + { moduleResolution: 2 /* Node10 */, allowJs: true }, + host, + /*cache*/ + void 0, + 2 /* JavaScript */, + /*isConfigLookup*/ + false, + /*redirectedReference*/ + void 0, + /*conditions*/ + void 0 + ); +} +function bundlerModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, conditions) { + const containingDirectory = getDirectoryPath(containingFile); + let extensions = compilerOptions.noDtsResolution ? 3 /* ImplementationFiles */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; + if (getResolveJsonModule(compilerOptions)) { + extensions |= 8 /* Json */; + } + return nodeModuleNameResolverWorker( + getNodeResolutionFeatures(compilerOptions), + moduleName, + containingDirectory, + compilerOptions, + host, + cache, + extensions, + /*isConfigLookup*/ + false, + redirectedReference, + conditions + ); +} +function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, conditions, isConfigLookup) { + let extensions; + if (isConfigLookup) { + extensions = 8 /* Json */; + } else if (compilerOptions.noDtsResolution) { + extensions = 3 /* ImplementationFiles */; + if (getResolveJsonModule(compilerOptions)) extensions |= 8 /* Json */; + } else { + extensions = getResolveJsonModule(compilerOptions) ? 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */ | 8 /* Json */ : 1 /* TypeScript */ | 2 /* JavaScript */ | 4 /* Declaration */; + } + return nodeModuleNameResolverWorker(conditions ? 30 /* AllFeatures */ : 0 /* None */, moduleName, getDirectoryPath(containingFile), compilerOptions, host, cache, extensions, !!isConfigLookup, redirectedReference, conditions); +} +function nodeNextJsonConfigResolver(moduleName, containingFile, host) { + return nodeModuleNameResolverWorker( + 30 /* NodeNextDefault */, + moduleName, + getDirectoryPath(containingFile), + { moduleResolution: 99 /* NodeNext */ }, + host, + /*cache*/ + void 0, + 8 /* Json */, + /*isConfigLookup*/ + true, + /*redirectedReference*/ + void 0, + /*conditions*/ + void 0 + ); +} +function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, compilerOptions, host, cache, extensions, isConfigLookup, redirectedReference, conditions) { + var _a, _b, _c, _d, _e; + const traceEnabled = isTraceEnabled(compilerOptions, host); + const failedLookupLocations = []; + const affectingLocations = []; + const moduleResolution = getEmitModuleResolutionKind(compilerOptions); + conditions ?? (conditions = getConditions( + compilerOptions, + moduleResolution === 100 /* Bundler */ || moduleResolution === 2 /* Node10 */ ? void 0 : features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */ + )); + const diagnostics = []; + const state = { + compilerOptions, + host, + traceEnabled, + failedLookupLocations, + affectingLocations, + packageJsonInfoCache: cache, + features, + conditions: conditions ?? emptyArray, + requestContainingDirectory: containingDirectory, + reportDiagnostic: (diag2) => void diagnostics.push(diag2), + isConfigLookup, + candidateIsFromPackageJsonField: false, + resolvedPackageDirectory: false + }; + if (traceEnabled && moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", state.conditions.map((c) => `'${c}'`).join(", ")); + } + let result; + if (moduleResolution === 2 /* Node10 */) { + const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); + const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); + result = priorityExtensions && tryResolve(priorityExtensions, state) || secondaryExtensions && tryResolve(secondaryExtensions, state) || void 0; + } else { + result = tryResolve(extensions, state); + } + let alternateResult; + if (state.resolvedPackageDirectory && !isConfigLookup && !isExternalModuleNameRelative(moduleName)) { + const wantedTypesButGotJs = (result == null ? void 0 : result.value) && extensions & (1 /* TypeScript */ | 4 /* Declaration */) && !extensionIsOk(1 /* TypeScript */ | 4 /* Declaration */, result.value.resolved.extension); + if (((_a = result == null ? void 0 : result.value) == null ? void 0 : _a.isExternalLibraryImport) && wantedTypesButGotJs && features & 8 /* Exports */ && (conditions == null ? void 0 : conditions.includes("import"))) { + traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update); + const diagnosticState = { + ...state, + features: state.features & ~8 /* Exports */, + reportDiagnostic: noop + }; + const diagnosticResult = tryResolve(extensions & (1 /* TypeScript */ | 4 /* Declaration */), diagnosticState); + if ((_b = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _b.isExternalLibraryImport) { + alternateResult = diagnosticResult.value.resolved.path; + } + } else if ((!(result == null ? void 0 : result.value) || wantedTypesButGotJs) && moduleResolution === 2 /* Node10 */) { + traceIfEnabled(state, Diagnostics.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update); + const diagnosticsCompilerOptions = { ...state.compilerOptions, moduleResolution: 100 /* Bundler */ }; + const diagnosticState = { + ...state, + compilerOptions: diagnosticsCompilerOptions, + features: 30 /* BundlerDefault */, + conditions: getConditions(diagnosticsCompilerOptions), + reportDiagnostic: noop + }; + const diagnosticResult = tryResolve(extensions & (1 /* TypeScript */ | 4 /* Declaration */), diagnosticState); + if ((_c = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _c.isExternalLibraryImport) { + alternateResult = diagnosticResult.value.resolved.path; + } + } + } + return createResolvedModuleWithFailedLookupLocationsHandlingSymlink( + moduleName, + (_d = result == null ? void 0 : result.value) == null ? void 0 : _d.resolved, + (_e = result == null ? void 0 : result.value) == null ? void 0 : _e.isExternalLibraryImport, + failedLookupLocations, + affectingLocations, + diagnostics, + state, + cache, + alternateResult + ); + function tryResolve(extensions2, state2) { + const loader = (extensions3, candidate, onlyRecordFailures, state3) => nodeLoadModuleByRelativeName( + extensions3, + candidate, + onlyRecordFailures, + state3, + /*considerPackageJson*/ + true + ); + const resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions2, moduleName, containingDirectory, loader, state2); + if (resolved) { + return toSearchResult({ resolved, isExternalLibraryImport: pathContainsNodeModules(resolved.path) }); + } + if (!isExternalModuleNameRelative(moduleName)) { + let resolved2; + if (features & 2 /* Imports */ && startsWith(moduleName, "#")) { + resolved2 = loadModuleFromImports(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); + } + if (!resolved2 && features & 4 /* SelfName */) { + resolved2 = loadModuleFromSelfNameReference(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); + } + if (!resolved2) { + if (moduleName.includes(":")) { + if (traceEnabled) { + trace(host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); + } + return void 0; + } + if (traceEnabled) { + trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); + } + resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); + } + if (extensions2 & 4 /* Declaration */) { + resolved2 ?? (resolved2 = resolveFromTypeRoot(moduleName, state2)); + } + return resolved2 && { value: resolved2.value && { resolved: resolved2.value, isExternalLibraryImport: true } }; + } else { + const { path: candidate, parts } = normalizePathForCJSResolution(containingDirectory, moduleName); + const resolved2 = nodeLoadModuleByRelativeName( + extensions2, + candidate, + /*onlyRecordFailures*/ + false, + state2, + /*considerPackageJson*/ + true + ); + return resolved2 && toSearchResult({ resolved: resolved2, isExternalLibraryImport: contains(parts, "node_modules") }); + } + } +} +function normalizePathForCJSResolution(containingDirectory, moduleName) { + const combined = combinePaths(containingDirectory, moduleName); + const parts = getPathComponents(combined); + const lastPart = lastOrUndefined(parts); + const path = lastPart === "." || lastPart === ".." ? ensureTrailingDirectorySeparator(normalizePath(combined)) : normalizePath(combined); + return { path, parts }; +} +function realPath(path, host, traceEnabled) { + if (!host.realpath) { + return path; + } + const real = normalizePath(host.realpath(path)); + if (traceEnabled) { + trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real); + } + return real; +} +function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1, candidate, formatExtensions(extensions)); + } + if (!hasTrailingDirectorySeparator(candidate)) { + if (!onlyRecordFailures) { + const parentOfCandidate = getDirectoryPath(candidate); + if (!directoryProbablyExists(parentOfCandidate, state.host)) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, parentOfCandidate); + } + onlyRecordFailures = true; + } + } + const resolvedFromFile = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state); + if (resolvedFromFile) { + const packageDirectory = considerPackageJson ? parseNodeModuleFromPath(resolvedFromFile.path) : void 0; + const packageInfo = packageDirectory ? getPackageJsonInfo( + packageDirectory, + /*onlyRecordFailures*/ + false, + state + ) : void 0; + return withPackageId(packageInfo, resolvedFromFile, state); + } + } + if (!onlyRecordFailures) { + const candidateExists = directoryProbablyExists(candidate, state.host); + if (!candidateExists) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidate); + } + onlyRecordFailures = true; + } + } + if (!(state.features & 32 /* EsmMode */)) { + return loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson); + } + return void 0; +} +var nodeModulesPathPart = "/node_modules/"; +function pathContainsNodeModules(path) { + return path.includes(nodeModulesPathPart); +} +function parseNodeModuleFromPath(resolved, isFolder) { + const path = normalizePath(resolved); + const idx = path.lastIndexOf(nodeModulesPathPart); + if (idx === -1) { + return void 0; + } + const indexAfterNodeModules = idx + nodeModulesPathPart.length; + let indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterNodeModules, isFolder); + if (path.charCodeAt(indexAfterNodeModules) === 64 /* at */) { + indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterPackageName, isFolder); + } + return path.slice(0, indexAfterPackageName); +} +function moveToNextDirectorySeparatorIfAvailable(path, prevSeparatorIndex, isFolder) { + const nextSeparatorIndex = path.indexOf(directorySeparator, prevSeparatorIndex + 1); + return nextSeparatorIndex === -1 ? isFolder ? path.length : prevSeparatorIndex : nextSeparatorIndex; +} +function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) { + return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state)); +} +function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) { + const resolvedByReplacingExtension = loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state); + if (resolvedByReplacingExtension) { + return resolvedByReplacingExtension; + } + if (!(state.features & 32 /* EsmMode */)) { + const resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, "", onlyRecordFailures, state); + if (resolvedByAddingExtension) { + return resolvedByAddingExtension; + } + } +} +function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) { + const filename = getBaseFileName(candidate); + if (!filename.includes(".")) { + return void 0; + } + let extensionless = removeFileExtension(candidate); + if (extensionless === candidate) { + extensionless = candidate.substring(0, candidate.lastIndexOf(".")); + } + const extension = candidate.substring(extensionless.length); + if (state.traceEnabled) { + trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension); + } + return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state); +} +function loadFileNameFromPackageJsonField(extensions, candidate, onlyRecordFailures, state) { + if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) { + const result = tryFile(candidate, onlyRecordFailures, state); + return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate), resolvedUsingTsExtension: void 0 } : void 0; + } + if (state.isConfigLookup && extensions === 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) { + const result = tryFile(candidate, onlyRecordFailures, state); + return result !== void 0 ? { path: candidate, ext: ".json" /* Json */, resolvedUsingTsExtension: void 0 } : void 0; + } + return loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state); +} +function tryAddingExtensions(candidate, extensions, originalExtension, onlyRecordFailures, state) { + if (!onlyRecordFailures) { + const directory = getDirectoryPath(candidate); + if (directory) { + onlyRecordFailures = !directoryProbablyExists(directory, state.host); + } + } + switch (originalExtension) { + case ".mjs" /* Mjs */: + case ".mts" /* Mts */: + case ".d.mts" /* Dmts */: + return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0; + case ".cjs" /* Cjs */: + case ".cts" /* Cts */: + case ".d.cts" /* Dcts */: + return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0; + case ".json" /* Json */: + return extensions & 4 /* Declaration */ && tryExtension(".d.json.ts") || extensions & 8 /* Json */ && tryExtension(".json" /* Json */) || void 0; + case ".tsx" /* Tsx */: + case ".jsx" /* Jsx */: + return extensions & 1 /* TypeScript */ && (tryExtension(".tsx" /* Tsx */, originalExtension === ".tsx" /* Tsx */) || tryExtension(".ts" /* Ts */, originalExtension === ".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".tsx" /* Tsx */) || extensions & 2 /* JavaScript */ && (tryExtension(".jsx" /* Jsx */) || tryExtension(".js" /* Js */)) || void 0; + case ".ts" /* Ts */: + case ".d.ts" /* Dts */: + case ".js" /* Js */: + case "": + return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || tryExtension(".tsx" /* Tsx */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0; + default: + return extensions & 4 /* Declaration */ && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || void 0; + } + function tryExtension(ext, resolvedUsingTsExtension) { + const path = tryFile(candidate + ext, onlyRecordFailures, state); + return path === void 0 ? void 0 : { path, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension }; + } +} +function tryFile(fileName, onlyRecordFailures, state) { + var _a; + if (!((_a = state.compilerOptions.moduleSuffixes) == null ? void 0 : _a.length)) { + return tryFileLookup(fileName, onlyRecordFailures, state); + } + const ext = tryGetExtensionFromPath2(fileName) ?? ""; + const fileNameNoExtension = ext ? removeExtension(fileName, ext) : fileName; + return forEach(state.compilerOptions.moduleSuffixes, (suffix) => tryFileLookup(fileNameNoExtension + suffix + ext, onlyRecordFailures, state)); +} +function tryFileLookup(fileName, onlyRecordFailures, state) { + var _a; + if (!onlyRecordFailures) { + if (state.host.fileExists(fileName)) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.File_0_exists_use_it_as_a_name_resolution_result, fileName); + } + return fileName; + } else { + if (state.traceEnabled) { + trace(state.host, Diagnostics.File_0_does_not_exist, fileName); + } + } + } + (_a = state.failedLookupLocations) == null ? void 0 : _a.push(fileName); + return void 0; +} +function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) { + const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0; + const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent; + const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state); + return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state); +} +function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) { + return { + host, + compilerOptions: options, + traceEnabled: isTraceEnabled(options, host), + failedLookupLocations: void 0, + affectingLocations: void 0, + packageJsonInfoCache, + features: 0 /* None */, + conditions: emptyArray, + requestContainingDirectory: void 0, + reportDiagnostic: noop, + isConfigLookup: false, + candidateIsFromPackageJsonField: false, + resolvedPackageDirectory: false + }; +} +function getPackageScopeForPath(fileName, state) { + const parts = getPathComponents(fileName); + parts.pop(); + while (parts.length > 0) { + const pkg = getPackageJsonInfo( + getPathFromPathComponents(parts), + /*onlyRecordFailures*/ + false, + state + ); + if (pkg) { + return pkg; + } + parts.pop(); + } + return void 0; +} +function getVersionPathsOfPackageJsonInfo(packageJsonInfo, state) { + if (packageJsonInfo.contents.versionPaths === void 0) { + packageJsonInfo.contents.versionPaths = readPackageJsonTypesVersionPaths(packageJsonInfo.contents.packageJsonContent, state) || false; + } + return packageJsonInfo.contents.versionPaths || void 0; +} +function getPeerDependenciesOfPackageJsonInfo(packageJsonInfo, state) { + if (packageJsonInfo.contents.peerDependencies === void 0) { + packageJsonInfo.contents.peerDependencies = readPackageJsonPeerDependencies(packageJsonInfo, state) || false; + } + return packageJsonInfo.contents.peerDependencies || void 0; +} +function readPackageJsonPeerDependencies(packageJsonInfo, state) { + const peerDependencies = readPackageJsonField(packageJsonInfo.contents.packageJsonContent, "peerDependencies", "object", state); + if (peerDependencies === void 0) return void 0; + if (state.traceEnabled) trace(state.host, Diagnostics.package_json_has_a_peerDependencies_field); + const packageDirectory = realPath(packageJsonInfo.packageDirectory, state.host, state.traceEnabled); + const nodeModules = packageDirectory.substring(0, packageDirectory.lastIndexOf("node_modules") + "node_modules".length) + directorySeparator; + let result = ""; + for (const key in peerDependencies) { + if (hasProperty(peerDependencies, key)) { + const peerPackageJson = getPackageJsonInfo( + nodeModules + key, + /*onlyRecordFailures*/ + false, + state + ); + if (peerPackageJson) { + const version2 = peerPackageJson.contents.packageJsonContent.version; + result += `+${key}@${version2}`; + if (state.traceEnabled) trace(state.host, Diagnostics.Found_peerDependency_0_with_1_version, key, version2); + } else { + if (state.traceEnabled) trace(state.host, Diagnostics.Failed_to_find_peerDependency_0, key); + } + } + } + return result; +} +function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) { + var _a, _b, _c, _d, _e, _f; + const { host, traceEnabled } = state; + const packageJsonPath = combinePaths(packageDirectory, "package.json"); + if (onlyRecordFailures) { + (_a = state.failedLookupLocations) == null ? void 0 : _a.push(packageJsonPath); + return void 0; + } + const existing = (_b = state.packageJsonInfoCache) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); + if (existing !== void 0) { + if (isPackageJsonInfo(existing)) { + if (traceEnabled) trace(host, Diagnostics.File_0_exists_according_to_earlier_cached_lookups, packageJsonPath); + (_c = state.affectingLocations) == null ? void 0 : _c.push(packageJsonPath); + return existing.packageDirectory === packageDirectory ? existing : { packageDirectory, contents: existing.contents }; + } else { + if (existing.directoryExists && traceEnabled) trace(host, Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, packageJsonPath); + (_d = state.failedLookupLocations) == null ? void 0 : _d.push(packageJsonPath); + return void 0; + } + } + const directoryExists = directoryProbablyExists(packageDirectory, host); + if (directoryExists && host.fileExists(packageJsonPath)) { + const packageJsonContent = readJson(packageJsonPath, host); + if (traceEnabled) { + trace(host, Diagnostics.Found_package_json_at_0, packageJsonPath); + } + const result = { packageDirectory, contents: { packageJsonContent, versionPaths: void 0, resolvedEntrypoints: void 0, peerDependencies: void 0 } }; + if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, result); + (_e = state.affectingLocations) == null ? void 0 : _e.push(packageJsonPath); + return result; + } else { + if (directoryExists && traceEnabled) { + trace(host, Diagnostics.File_0_does_not_exist, packageJsonPath); + } + if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly) state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, { packageDirectory, directoryExists }); + (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath); + } +} +function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) { + let packageFile; + if (jsonContent) { + if (state.isConfigLookup) { + packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state); + } else { + packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0; + } + } + const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => { + const fromFile = loadFileNameFromPackageJsonField(extensions2, candidate2, onlyRecordFailures2, state2); + if (fromFile) { + return noPackageId(fromFile); + } + const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2; + const features = state2.features; + const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField; + state2.candidateIsFromPackageJsonField = true; + if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") { + state2.features &= ~32 /* EsmMode */; + } + const result = nodeLoadModuleByRelativeName( + expandedExtensions, + candidate2, + onlyRecordFailures2, + state2, + /*considerPackageJson*/ + false + ); + state2.features = features; + state2.candidateIsFromPackageJsonField = candidateIsFromPackageJsonField; + return result; + }; + const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0; + const onlyRecordFailuresForIndex = onlyRecordFailures || !directoryProbablyExists(candidate, state.host); + const indexPath = combinePaths(candidate, state.isConfigLookup ? "tsconfig" : "index"); + if (versionPaths && (!packageFile || containsPath(candidate, packageFile))) { + const moduleName = getRelativePathFromDirectory( + candidate, + packageFile || indexPath, + /*ignoreCase*/ + false + ); + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName); + } + const result = tryLoadModuleUsingPaths( + extensions, + moduleName, + candidate, + versionPaths.paths, + /*pathPatterns*/ + void 0, + loader, + onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, + state + ); + if (result) { + return removeIgnoredPackageId(result.value); + } + } + const packageFileResult = packageFile && removeIgnoredPackageId(loader(extensions, packageFile, onlyRecordFailuresForPackageFile, state)); + if (packageFileResult) return packageFileResult; + if (!(state.features & 32 /* EsmMode */)) { + return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state); + } +} +function extensionIsOk(extensions, extension) { + return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false; +} +function parsePackageName(moduleName) { + let idx = moduleName.indexOf(directorySeparator); + if (moduleName[0] === "@") { + idx = moduleName.indexOf(directorySeparator, idx + 1); + } + return idx === -1 ? { packageName: moduleName, rest: "" } : { packageName: moduleName.slice(0, idx), rest: moduleName.slice(idx + 1) }; +} +function allKeysStartWithDot(obj) { + return every(getOwnKeys(obj), (k) => startsWith(k, ".")); +} +function noKeyStartsWithDot(obj) { + return !some(getOwnKeys(obj), (k) => startsWith(k, ".")); +} +function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) { + var _a, _b; + const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const scope = getPackageScopeForPath(directoryPath, state); + if (!scope || !scope.contents.packageJsonContent.exports) { + return void 0; + } + if (typeof scope.contents.packageJsonContent.name !== "string") { + return void 0; + } + const parts = getPathComponents(moduleName); + const nameParts = getPathComponents(scope.contents.packageJsonContent.name); + if (!every(nameParts, (p, i) => parts[i] === p)) { + return void 0; + } + const trailingParts = parts.slice(nameParts.length); + const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`; + if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { + return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference); + } + const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); + const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); + return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference); +} +function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) { + if (!scope.contents.packageJsonContent.exports) { + return void 0; + } + if (subpath === ".") { + let mainExport; + if (typeof scope.contents.packageJsonContent.exports === "string" || Array.isArray(scope.contents.packageJsonContent.exports) || typeof scope.contents.packageJsonContent.exports === "object" && noKeyStartsWithDot(scope.contents.packageJsonContent.exports)) { + mainExport = scope.contents.packageJsonContent.exports; + } else if (hasProperty(scope.contents.packageJsonContent.exports, ".")) { + mainExport = scope.contents.packageJsonContent.exports["."]; + } + if (mainExport) { + const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport( + extensions, + state, + cache, + redirectedReference, + subpath, + scope, + /*isImports*/ + false + ); + return loadModuleFromTargetImportOrExport( + mainExport, + "", + /*pattern*/ + false, + "." + ); + } + } else if (allKeysStartWithDot(scope.contents.packageJsonContent.exports)) { + if (typeof scope.contents.packageJsonContent.exports !== "object") { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + const result = loadModuleFromImportsOrExports( + extensions, + state, + cache, + redirectedReference, + subpath, + scope.contents.packageJsonContent.exports, + scope, + /*isImports*/ + false + ); + if (result) { + return result; + } + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1, subpath, scope.packageDirectory); + } + return toSearchResult( + /*value*/ + void 0 + ); +} +function loadModuleFromImports(extensions, moduleName, directory, state, cache, redirectedReference) { + var _a, _b; + if (moduleName === "#" || startsWith(moduleName, "#/")) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const scope = getPackageScopeForPath(directoryPath, state); + if (!scope) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + if (!scope.contents.packageJsonContent.imports) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_no_imports_defined, scope.packageDirectory); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + const result = loadModuleFromImportsOrExports( + extensions, + state, + cache, + redirectedReference, + moduleName, + scope.contents.packageJsonContent.imports, + scope, + /*isImports*/ + true + ); + if (result) { + return result; + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1, moduleName, scope.packageDirectory); + } + return toSearchResult( + /*value*/ + void 0 + ); +} +function comparePatternKeys(a, b) { + const aPatternIndex = a.indexOf("*"); + const bPatternIndex = b.indexOf("*"); + const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; + const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; + if (baseLenA > baseLenB) return -1; + if (baseLenB > baseLenA) return 1; + if (aPatternIndex === -1) return 1; + if (bPatternIndex === -1) return -1; + if (a.length > b.length) return -1; + if (b.length > a.length) return 1; + return 0; +} +function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) { + const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports); + if (!endsWith(moduleName, directorySeparator) && !moduleName.includes("*") && hasProperty(lookupTable, moduleName)) { + const target = lookupTable[moduleName]; + return loadModuleFromTargetImportOrExport( + target, + /*subpath*/ + "", + /*pattern*/ + false, + moduleName + ); + } + const expandingKeys = sort(filter(getOwnKeys(lookupTable), (k) => hasOneAsterisk(k) || endsWith(k, "/")), comparePatternKeys); + for (const potentialTarget of expandingKeys) { + if (state.features & 16 /* ExportsPatternTrailers */ && matchesPatternWithTrailer(potentialTarget, moduleName)) { + const target = lookupTable[potentialTarget]; + const starPos = potentialTarget.indexOf("*"); + const subpath = moduleName.substring(potentialTarget.substring(0, starPos).length, moduleName.length - (potentialTarget.length - 1 - starPos)); + return loadModuleFromTargetImportOrExport( + target, + subpath, + /*pattern*/ + true, + potentialTarget + ); + } else if (endsWith(potentialTarget, "*") && startsWith(moduleName, potentialTarget.substring(0, potentialTarget.length - 1))) { + const target = lookupTable[potentialTarget]; + const subpath = moduleName.substring(potentialTarget.length - 1); + return loadModuleFromTargetImportOrExport( + target, + subpath, + /*pattern*/ + true, + potentialTarget + ); + } else if (startsWith(moduleName, potentialTarget)) { + const target = lookupTable[potentialTarget]; + const subpath = moduleName.substring(potentialTarget.length); + return loadModuleFromTargetImportOrExport( + target, + subpath, + /*pattern*/ + false, + potentialTarget + ); + } + } + function matchesPatternWithTrailer(target, name) { + if (endsWith(target, "*")) return false; + const starPos = target.indexOf("*"); + if (starPos === -1) return false; + return startsWith(name, target.substring(0, starPos)) && endsWith(name, target.substring(starPos + 1)); + } +} +function hasOneAsterisk(patternKey) { + const firstStar = patternKey.indexOf("*"); + return firstStar !== -1 && firstStar === patternKey.lastIndexOf("*"); +} +function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) { + return loadModuleFromTargetImportOrExport; + function loadModuleFromTargetImportOrExport(target, subpath, pattern, key) { + if (typeof target === "string") { + if (!pattern && subpath.length > 0 && !endsWith(target, "/")) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + if (!startsWith(target, "./")) { + if (isImports && !startsWith(target, "../") && !startsWith(target, "/") && !isRootedDiskPath(target)) { + const combinedLookup = pattern ? target.replace(/\*/g, subpath) : target + subpath; + traceIfEnabled(state, Diagnostics.Using_0_subpath_1_with_target_2, "imports", key, combinedLookup); + traceIfEnabled(state, Diagnostics.Resolving_module_0_from_1, combinedLookup, scope.packageDirectory + "/"); + const result = nodeModuleNameResolverWorker( + state.features, + combinedLookup, + scope.packageDirectory + "/", + state.compilerOptions, + state.host, + cache, + extensions, + /*isConfigLookup*/ + false, + redirectedReference, + state.conditions + ); + return toSearchResult( + result.resolvedModule ? { + path: result.resolvedModule.resolvedFileName, + extension: result.resolvedModule.extension, + packageId: result.resolvedModule.packageId, + originalPath: result.resolvedModule.originalPath, + resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension + } : void 0 + ); + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + const parts = pathIsRelative(target) ? getPathComponents(target).slice(1) : getPathComponents(target); + const partsAfterFirst = parts.slice(1); + if (partsAfterFirst.includes("..") || partsAfterFirst.includes(".") || partsAfterFirst.includes("node_modules")) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + const resolvedTarget = combinePaths(scope.packageDirectory, target); + const subpathParts = getPathComponents(subpath); + if (subpathParts.includes("..") || subpathParts.includes(".") || subpathParts.includes("node_modules")) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.Using_0_subpath_1_with_target_2, isImports ? "imports" : "exports", key, pattern ? target.replace(/\*/g, subpath) : target + subpath); + } + const finalPath = toAbsolutePath(pattern ? resolvedTarget.replace(/\*/g, subpath) : resolvedTarget + subpath); + const inputLink = tryLoadInputFileForPath(finalPath, subpath, combinePaths(scope.packageDirectory, "package.json"), isImports); + if (inputLink) return inputLink; + return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( + extensions, + finalPath, + /*onlyRecordFailures*/ + false, + state + ), state)); + } else if (typeof target === "object" && target !== null) { + if (!Array.isArray(target)) { + traceIfEnabled(state, Diagnostics.Entering_conditional_exports); + for (const condition of getOwnKeys(target)) { + if (condition === "default" || state.conditions.includes(condition) || isApplicableVersionedTypesKey(state.conditions, condition)) { + traceIfEnabled(state, Diagnostics.Matched_0_condition_1, isImports ? "imports" : "exports", condition); + const subTarget = target[condition]; + const result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern, key); + if (result) { + traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition); + traceIfEnabled(state, Diagnostics.Exiting_conditional_exports); + return result; + } else { + traceIfEnabled(state, Diagnostics.Failed_to_resolve_under_condition_0, condition); + } + } else { + traceIfEnabled(state, Diagnostics.Saw_non_matching_condition_0, condition); + } + } + traceIfEnabled(state, Diagnostics.Exiting_conditional_exports); + return void 0; + } else { + if (!length(target)) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + for (const elem of target) { + const result = loadModuleFromTargetImportOrExport(elem, subpath, pattern, key); + if (result) { + return result; + } + } + } + } else if (target === null) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + } + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName); + } + return toSearchResult( + /*value*/ + void 0 + ); + function toAbsolutePath(path) { + var _a, _b; + if (path === void 0) return path; + return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + } + function combineDirectoryPath(root, dir) { + return ensureTrailingDirectorySeparator(combinePaths(root, dir)); + } + function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { + var _a, _b, _c, _d; + if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { + const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); + const commonSourceDirGuesses = []; + if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { + const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); + commonSourceDirGuesses.push(commonDir); + } else if (state.requestContainingDirectory) { + const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts")); + const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [requestingFile, toAbsolutePath(packagePath)], ((_d = (_c = state.host).getCurrentDirectory) == null ? void 0 : _d.call(_c)) || "", getCanonicalFileName)); + commonSourceDirGuesses.push(commonDir); + let fragment = ensureTrailingDirectorySeparator(commonDir); + while (fragment && fragment.length > 1) { + const parts = getPathComponents(fragment); + parts.pop(); + const commonDir2 = getPathFromPathComponents(parts); + commonSourceDirGuesses.unshift(commonDir2); + fragment = ensureTrailingDirectorySeparator(commonDir2); + } + } + if (commonSourceDirGuesses.length > 1) { + state.reportDiagnostic(createCompilerDiagnostic( + isImports2 ? Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate : Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate, + entry === "" ? "." : entry, + // replace empty string with `.` - the reverse of the operation done when entries are built - so main entrypoint errors don't look weird + packagePath + )); + } + for (const commonSourceDirGuess of commonSourceDirGuesses) { + const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess); + for (const candidateDir of candidateDirectories) { + if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) { + const pathFragment = finalPath.slice(candidateDir.length + 1); + const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment); + const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */]; + for (const ext of jsAndDtsExtensions) { + if (fileExtensionIs(possibleInputBase, ext)) { + const inputExts = getPossibleOriginalInputExtensionForExtension(possibleInputBase); + for (const possibleExt of inputExts) { + if (!extensionIsOk(extensions, possibleExt)) continue; + const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state)); + if (state.host.fileExists(possibleInputWithInputExtension)) { + return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( + extensions, + possibleInputWithInputExtension, + /*onlyRecordFailures*/ + false, + state + ), state)); + } + } + } + } + } + } + } + } + return void 0; + function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) { + var _a2, _b2; + const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess; + const candidateDirectories = []; + if (state.compilerOptions.declarationDir) { + candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir))); + } + if (state.compilerOptions.outDir && state.compilerOptions.outDir !== state.compilerOptions.declarationDir) { + candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.outDir))); + } + return candidateDirectories; + } + } + } +} +function isApplicableVersionedTypesKey(conditions, key) { + if (!conditions.includes("types")) return false; + if (!startsWith(key, "types@")) return false; + const range = VersionRange.tryParse(key.substring("types@".length)); + if (!range) return false; + return range.test(version); +} +function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache, redirectedReference) { + return loadModuleFromNearestNodeModulesDirectoryWorker( + extensions, + moduleName, + directory, + state, + /*typesScopeOnly*/ + false, + cache, + redirectedReference + ); +} +function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) { + return loadModuleFromNearestNodeModulesDirectoryWorker( + 4 /* Declaration */, + moduleName, + directory, + state, + /*typesScopeOnly*/ + true, + /*cache*/ + void 0, + /*redirectedReference*/ + void 0 + ); +} +function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { + const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */; + const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); + const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); + if (priorityExtensions) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions)); + const result = lookup(priorityExtensions); + if (result) return result; + } + if (secondaryExtensions && !typesScopeOnly) { + traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions)); + return lookup(secondaryExtensions); + } + function lookup(extensions2) { + return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => { + if (getBaseFileName(ancestorDirectory) !== "node_modules") { + const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, ancestorDirectory, redirectedReference, state); + if (resolutionFromCache) { + return resolutionFromCache; + } + return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference)); + } + }); + } +} +function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { + const nodeModulesFolder = combinePaths(directory, "node_modules"); + const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host); + if (!nodeModulesFolderExists && state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder); + } + if (!typesScopeOnly) { + const packageResult = loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state, cache, redirectedReference); + if (packageResult) { + return packageResult; + } + } + if (extensions & 4 /* Declaration */) { + const nodeModulesAtTypes2 = combinePaths(nodeModulesFolder, "@types"); + let nodeModulesAtTypesExists = nodeModulesFolderExists; + if (nodeModulesFolderExists && !directoryProbablyExists(nodeModulesAtTypes2, state.host)) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesAtTypes2); + } + nodeModulesAtTypesExists = false; + } + return loadModuleFromSpecificNodeModulesDirectory(4 /* Declaration */, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes2, nodeModulesAtTypesExists, state, cache, redirectedReference); + } +} +function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) { + var _a, _b; + const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName)); + const { packageName, rest } = parsePackageName(moduleName); + const packageDirectory = combinePaths(nodeModulesDirectory, packageName); + let rootPackageInfo; + let packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state); + if (rest !== "" && packageInfo && (!(state.features & 8 /* Exports */) || !hasProperty(((_a = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a.contents.packageJsonContent) ?? emptyArray, "exports"))) { + const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state); + if (fromFile) { + return noPackageId(fromFile); + } + const fromDirectory = loadNodeModuleFromDirectoryWorker( + extensions, + candidate, + !nodeModulesDirectoryExists, + state, + packageInfo.contents.packageJsonContent, + getVersionPathsOfPackageJsonInfo(packageInfo, state) + ); + return withPackageId(packageInfo, fromDirectory, state); + } + const loader = (extensions2, candidate2, onlyRecordFailures, state2) => { + let pathAndExtension = (rest || !(state2.features & 32 /* EsmMode */)) && loadModuleFromFile(extensions2, candidate2, onlyRecordFailures, state2) || loadNodeModuleFromDirectoryWorker( + extensions2, + candidate2, + onlyRecordFailures, + state2, + packageInfo && packageInfo.contents.packageJsonContent, + packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2) + ); + if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) { + pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2); + } + return withPackageId(packageInfo, pathAndExtension, state2); + }; + if (rest !== "") { + packageInfo = rootPackageInfo ?? getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state); + } + if (packageInfo) { + state.resolvedPackageDirectory = true; + } + if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & 8 /* Exports */) { + return (_b = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _b.value; + } + const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0; + if (versionPaths) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest); + } + const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host); + const fromPaths = tryLoadModuleUsingPaths( + extensions, + rest, + packageDirectory, + versionPaths.paths, + /*pathPatterns*/ + void 0, + loader, + !packageDirectoryExists, + state + ); + if (fromPaths) { + return fromPaths.value; + } + } + return loader(extensions, candidate, !nodeModulesDirectoryExists, state); +} +function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) { + pathPatterns || (pathPatterns = tryParsePatterns(paths)); + const matchedPattern = matchPatternOrExact(pathPatterns, moduleName); + if (matchedPattern) { + const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName); + const matchedPatternText = isString(matchedPattern) ? matchedPattern : patternText(matchedPattern); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText); + } + const resolved = forEach(paths[matchedPatternText], (subst) => { + const path = matchedStar ? replaceFirstStar(subst, matchedStar) : subst; + const candidate = normalizePath(combinePaths(baseDirectory, path)); + if (state.traceEnabled) { + trace(state.host, Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path); + } + const extension = tryGetExtensionFromPath2(subst); + if (extension !== void 0) { + const path2 = tryFile(candidate, onlyRecordFailures, state); + if (path2 !== void 0) { + return noPackageId({ path: path2, ext: extension, resolvedUsingTsExtension: void 0 }); + } + } + return loader(extensions, candidate, onlyRecordFailures || !directoryProbablyExists(getDirectoryPath(candidate), state.host), state); + }); + return { value: resolved }; + } +} +var mangledScopedPackageSeparator = "__"; +function mangleScopedPackageNameWithTrace(packageName, state) { + const mangled = mangleScopedPackageName(packageName); + if (state.traceEnabled && mangled !== packageName) { + trace(state.host, Diagnostics.Scoped_package_detected_looking_in_0, mangled); + } + return mangled; +} +function getTypesPackageName(packageName) { + return `@types/${mangleScopedPackageName(packageName)}`; +} +function mangleScopedPackageName(packageName) { + if (startsWith(packageName, "@")) { + const replaceSlash = packageName.replace(directorySeparator, mangledScopedPackageSeparator); + if (replaceSlash !== packageName) { + return replaceSlash.slice(1); + } + } + return packageName; +} +function getPackageNameFromTypesPackageName(mangledName) { + const withoutAtTypePrefix = removePrefix(mangledName, "@types/"); + if (withoutAtTypePrefix !== mangledName) { + return unmangleScopedPackageName(withoutAtTypePrefix); + } + return mangledName; +} +function unmangleScopedPackageName(typesPackageName) { + return typesPackageName.includes(mangledScopedPackageSeparator) ? "@" + typesPackageName.replace(mangledScopedPackageSeparator, directorySeparator) : typesPackageName; +} +function tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, containingDirectory, redirectedReference, state) { + const result = cache && cache.getFromNonRelativeNameCache(moduleName, mode, containingDirectory, redirectedReference); + if (result) { + if (state.traceEnabled) { + trace(state.host, Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory); + } + state.resultFromCache = result; + return { + value: result.resolvedModule && { + path: result.resolvedModule.resolvedFileName, + originalPath: result.resolvedModule.originalPath || true, + extension: result.resolvedModule.extension, + packageId: result.resolvedModule.packageId, + resolvedUsingTsExtension: result.resolvedModule.resolvedUsingTsExtension + } + }; + } +} +function classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) { + const traceEnabled = isTraceEnabled(compilerOptions, host); + const failedLookupLocations = []; + const affectingLocations = []; + const containingDirectory = getDirectoryPath(containingFile); + const diagnostics = []; + const state = { + compilerOptions, + host, + traceEnabled, + failedLookupLocations, + affectingLocations, + packageJsonInfoCache: cache, + features: 0 /* None */, + conditions: [], + requestContainingDirectory: containingDirectory, + reportDiagnostic: (diag2) => void diagnostics.push(diag2), + isConfigLookup: false, + candidateIsFromPackageJsonField: false, + resolvedPackageDirectory: false + }; + const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0)); + return createResolvedModuleWithFailedLookupLocationsHandlingSymlink( + moduleName, + resolved && resolved.value, + (resolved == null ? void 0 : resolved.value) && pathContainsNodeModules(resolved.value.path), + failedLookupLocations, + affectingLocations, + diagnostics, + state, + cache + ); + function tryResolve(extensions) { + const resolvedUsingSettings = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loadModuleFromFileNoPackageId, state); + if (resolvedUsingSettings) { + return { value: resolvedUsingSettings }; + } + if (!isExternalModuleNameRelative(moduleName)) { + const resolved2 = forEachAncestorDirectory(containingDirectory, (directory) => { + const resolutionFromCache = tryFindNonRelativeModuleNameInCache( + cache, + moduleName, + /*mode*/ + void 0, + directory, + redirectedReference, + state + ); + if (resolutionFromCache) { + return resolutionFromCache; + } + const searchName = normalizePath(combinePaths(directory, moduleName)); + return toSearchResult(loadModuleFromFileNoPackageId( + extensions, + searchName, + /*onlyRecordFailures*/ + false, + state + )); + }); + if (resolved2) return resolved2; + if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) { + let resolved3 = loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state); + if (extensions & 4 /* Declaration */) resolved3 ?? (resolved3 = resolveFromTypeRoot(moduleName, state)); + return resolved3; + } + } else { + const candidate = normalizePath(combinePaths(containingDirectory, moduleName)); + return toSearchResult(loadModuleFromFileNoPackageId( + extensions, + candidate, + /*onlyRecordFailures*/ + false, + state + )); + } + } +} +function resolveFromTypeRoot(moduleName, state) { + if (!state.compilerOptions.typeRoots) return; + for (const typeRoot of state.compilerOptions.typeRoots) { + const candidate = getCandidateFromTypeRoot(typeRoot, moduleName, state); + const directoryExists = directoryProbablyExists(typeRoot, state.host); + if (!directoryExists && state.traceEnabled) { + trace(state.host, Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, typeRoot); + } + const resolvedFromFile = loadModuleFromFile(4 /* Declaration */, candidate, !directoryExists, state); + if (resolvedFromFile) { + const packageDirectory = parseNodeModuleFromPath(resolvedFromFile.path); + const packageInfo = packageDirectory ? getPackageJsonInfo( + packageDirectory, + /*onlyRecordFailures*/ + false, + state + ) : void 0; + return toSearchResult(withPackageId(packageInfo, resolvedFromFile, state)); + } + const resolved = loadNodeModuleFromDirectory(4 /* Declaration */, candidate, !directoryExists, state); + if (resolved) return toSearchResult(resolved); + } +} +function shouldAllowImportingTsExtension(compilerOptions, fromFileName) { + return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName); +} +function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) { + const traceEnabled = isTraceEnabled(compilerOptions, host); + if (traceEnabled) { + trace(host, Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, projectName, moduleName, globalCache); + } + const failedLookupLocations = []; + const affectingLocations = []; + const diagnostics = []; + const state = { + compilerOptions, + host, + traceEnabled, + failedLookupLocations, + affectingLocations, + packageJsonInfoCache, + features: 0 /* None */, + conditions: [], + requestContainingDirectory: void 0, + reportDiagnostic: (diag2) => void diagnostics.push(diag2), + isConfigLookup: false, + candidateIsFromPackageJsonField: false, + resolvedPackageDirectory: false + }; + const resolved = loadModuleFromImmediateNodeModulesDirectory( + 4 /* Declaration */, + moduleName, + globalCache, + state, + /*typesScopeOnly*/ + false, + /*cache*/ + void 0, + /*redirectedReference*/ + void 0 + ); + return createResolvedModuleWithFailedLookupLocations( + resolved, + /*isExternalLibraryImport*/ + true, + failedLookupLocations, + affectingLocations, + diagnostics, + state.resultFromCache, + /*cache*/ + void 0 + ); +} +function toSearchResult(value) { + return value !== void 0 ? { value } : void 0; +} +function traceIfEnabled(state, diagnostic, ...args) { + if (state.traceEnabled) { + trace(state.host, diagnostic, ...args); + } +} +function useCaseSensitiveFileNames(state) { + return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames(); +} + +// src/compiler/binder.ts +function getModuleInstanceState(node, visited) { + if (node.body && !node.body.parent) { + setParent(node.body, node); + setParentRecursive( + node.body, + /*incremental*/ + false + ); + } + return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */; +} +function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) { + const nodeId = getNodeId(node); + if (visited.has(nodeId)) { + return visited.get(nodeId) || 0 /* NonInstantiated */; + } + visited.set(nodeId, void 0); + const result = getModuleInstanceStateWorker(node, visited); + visited.set(nodeId, result); + return result; +} +function getModuleInstanceStateWorker(node, visited) { + switch (node.kind) { + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + return 0 /* NonInstantiated */; + case 266 /* EnumDeclaration */: + if (isEnumConst(node)) { + return 2 /* ConstEnumOnly */; + } + break; + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + if (!hasSyntacticModifier(node, 32 /* Export */)) { + return 0 /* NonInstantiated */; + } + break; + case 278 /* ExportDeclaration */: + const exportDeclaration = node; + if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { + let state = 0 /* NonInstantiated */; + for (const specifier of exportDeclaration.exportClause.elements) { + const specifierState = getModuleInstanceStateForAliasTarget(specifier, visited); + if (specifierState > state) { + state = specifierState; + } + if (state === 1 /* Instantiated */) { + return state; + } + } + return state; + } + break; + case 268 /* ModuleBlock */: { + let state = 0 /* NonInstantiated */; + forEachChild(node, (n) => { + const childState = getModuleInstanceStateCached(n, visited); + switch (childState) { + case 0 /* NonInstantiated */: + return; + case 2 /* ConstEnumOnly */: + state = 2 /* ConstEnumOnly */; + return; + case 1 /* Instantiated */: + state = 1 /* Instantiated */; + return true; + default: + Debug.assertNever(childState); + } + }); + return state; + } + case 267 /* ModuleDeclaration */: + return getModuleInstanceState(node, visited); + case 80 /* Identifier */: + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { + return 0 /* NonInstantiated */; + } + } + return 1 /* Instantiated */; +} +function getModuleInstanceStateForAliasTarget(specifier, visited) { + const name = specifier.propertyName || specifier.name; + let p = specifier.parent; + while (p) { + if (isBlock(p) || isModuleBlock(p) || isSourceFile(p)) { + const statements = p.statements; + let found; + for (const statement of statements) { + if (nodeHasName(statement, name)) { + if (!statement.parent) { + setParent(statement, p); + setParentRecursive( + statement, + /*incremental*/ + false + ); + } + const state = getModuleInstanceStateCached(statement, visited); + if (found === void 0 || state > found) { + found = state; + } + if (found === 1 /* Instantiated */) { + return found; + } + if (statement.kind === 271 /* ImportEqualsDeclaration */) { + found = 1 /* Instantiated */; + } + } + } + if (found !== void 0) { + return found; + } + } + p = p.parent; + } + return 1 /* Instantiated */; +} +function createFlowNode(flags, node, antecedent) { + return Debug.attachFlowNodeDebugInfo({ flags, id: 0, node, antecedent }); +} +var binder = /* @__PURE__ */ createBinder(); +function bindSourceFile(file, options) { + var _a, _b; + mark("beforeBind"); + (_a = perfLogger) == null ? void 0 : _a.logStartBindFile("" + file.fileName); + binder(file, options); + (_b = perfLogger) == null ? void 0 : _b.logStopBindFile(); + mark("afterBind"); + measure("Bind", "beforeBind", "afterBind"); +} +function createBinder() { + var file; + var options; + var languageVersion; + var parent; + var container; + var thisParentContainer; + var blockScopeContainer; + var lastContainer; + var delayedTypeAliases; + var seenThisKeyword; + var jsDocImports; + var currentFlow; + var currentBreakTarget; + var currentContinueTarget; + var currentReturnTarget; + var currentTrueTarget; + var currentFalseTarget; + var currentExceptionTarget; + var preSwitchCaseFlow; + var activeLabelList; + var hasExplicitReturn; + var hasFlowEffects; + var emitFlags; + var inStrictMode; + var inAssignmentPattern = false; + var symbolCount = 0; + var Symbol12; + var classifiableNames; + var unreachableFlow = createFlowNode( + 1 /* Unreachable */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + var reportedUnreachableFlow = createFlowNode( + 1 /* Unreachable */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + var bindBinaryExpressionFlow = createBindBinaryExpressionFlow(); + return bindSourceFile2; + function createDiagnosticForNode2(node, message, ...args) { + return createDiagnosticForNodeInSourceFile(getSourceFileOfNode(node) || file, node, message, ...args); + } + function bindSourceFile2(f, opts) { + var _a, _b; + file = f; + options = opts; + languageVersion = getEmitScriptTarget(options); + inStrictMode = bindInStrictMode(file, opts); + classifiableNames = /* @__PURE__ */ new Set(); + symbolCount = 0; + Symbol12 = objectAllocator.getSymbolConstructor(); + Debug.attachFlowNodeDebugInfo(unreachableFlow); + Debug.attachFlowNodeDebugInfo(reportedUnreachableFlow); + if (!file.locals) { + (_a = tracing) == null ? void 0 : _a.push( + tracing.Phase.Bind, + "bindSourceFile", + { path: file.path }, + /*separateBeginAndEnd*/ + true + ); + bind(file); + (_b = tracing) == null ? void 0 : _b.pop(); + file.symbolCount = symbolCount; + file.classifiableNames = classifiableNames; + delayedBindJSDocTypedefTag(); + bindJSDocImports(); + } + file = void 0; + options = void 0; + languageVersion = void 0; + parent = void 0; + container = void 0; + thisParentContainer = void 0; + blockScopeContainer = void 0; + lastContainer = void 0; + delayedTypeAliases = void 0; + jsDocImports = void 0; + seenThisKeyword = false; + currentFlow = void 0; + currentBreakTarget = void 0; + currentContinueTarget = void 0; + currentReturnTarget = void 0; + currentTrueTarget = void 0; + currentFalseTarget = void 0; + currentExceptionTarget = void 0; + activeLabelList = void 0; + hasExplicitReturn = false; + hasFlowEffects = false; + inAssignmentPattern = false; + emitFlags = 0 /* None */; + } + function bindInStrictMode(file2, opts) { + if (getStrictOptionValue(opts, "alwaysStrict") && !file2.isDeclarationFile) { + return true; + } else { + return !!file2.externalModuleIndicator; + } + } + function createSymbol(flags, name) { + symbolCount++; + return new Symbol12(flags, name); + } + function addDeclarationToSymbol(symbol, node, symbolFlags) { + symbol.flags |= symbolFlags; + node.symbol = symbol; + symbol.declarations = appendIfUnique(symbol.declarations, node); + if (symbolFlags & (32 /* Class */ | 384 /* Enum */ | 1536 /* Module */ | 3 /* Variable */) && !symbol.exports) { + symbol.exports = createSymbolTable(); + } + if (symbolFlags & (32 /* Class */ | 64 /* Interface */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && !symbol.members) { + symbol.members = createSymbolTable(); + } + if (symbol.constEnumOnlyModule && symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */)) { + symbol.constEnumOnlyModule = false; + } + if (symbolFlags & 111551 /* Value */) { + setValueDeclaration(symbol, node); + } + } + function getDeclarationName(node) { + if (node.kind === 277 /* ExportAssignment */) { + return node.isExportEquals ? "export=" /* ExportEquals */ : "default" /* Default */; + } + const name = getNameOfDeclaration(node); + if (name) { + if (isAmbientModule(node)) { + const moduleName = getTextOfIdentifierOrLiteral(name); + return isGlobalScopeAugmentation(node) ? "__global" : `"${moduleName}"`; + } + if (name.kind === 167 /* ComputedPropertyName */) { + const nameExpression = name.expression; + if (isStringOrNumericLiteralLike(nameExpression)) { + return escapeLeadingUnderscores(nameExpression.text); + } + if (isSignedNumericLiteral(nameExpression)) { + return tokenToString(nameExpression.operator) + nameExpression.operand.text; + } else { + Debug.fail("Only computed properties with literal names have declaration names"); + } + } + if (isPrivateIdentifier(name)) { + const containingClass = getContainingClass(node); + if (!containingClass) { + return void 0; + } + const containingClassSymbol = containingClass.symbol; + return getSymbolNameForPrivateIdentifier(containingClassSymbol, name.escapedText); + } + if (isJsxNamespacedName(name)) { + return getEscapedTextOfJsxNamespacedName(name); + } + return isPropertyNameLiteral(name) ? getEscapedTextOfIdentifierOrLiteral(name) : void 0; + } + switch (node.kind) { + case 176 /* Constructor */: + return "__constructor" /* Constructor */; + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 323 /* JSDocSignature */: + return "__call" /* Call */; + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + return "__new" /* New */; + case 181 /* IndexSignature */: + return "__index" /* Index */; + case 278 /* ExportDeclaration */: + return "__export" /* ExportStar */; + case 307 /* SourceFile */: + return "export=" /* ExportEquals */; + case 226 /* BinaryExpression */: + if (getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) { + return "export=" /* ExportEquals */; + } + Debug.fail("Unknown binary declaration kind"); + break; + case 317 /* JSDocFunctionType */: + return isJSDocConstructSignature(node) ? "__new" /* New */ : "__call" /* Call */; + case 169 /* Parameter */: + Debug.assert(node.parent.kind === 317 /* JSDocFunctionType */, "Impossible parameter parent kind", () => `parent is: ${Debug.formatSyntaxKind(node.parent.kind)}, expected JSDocFunctionType`); + const functionType = node.parent; + const index = functionType.parameters.indexOf(node); + return "arg" + index; + } + } + function getDisplayName(node) { + return isNamedDeclaration(node) ? declarationNameToString(node.name) : unescapeLeadingUnderscores(Debug.checkDefined(getDeclarationName(node))); + } + function declareSymbol(symbolTable, parent2, node, includes, excludes, isReplaceableByMethod, isComputedName) { + Debug.assert(isComputedName || !hasDynamicName(node)); + const isDefaultExport = hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) && node.name.escapedText === "default"; + const name = isComputedName ? "__computed" /* Computed */ : isDefaultExport && parent2 ? "default" /* Default */ : getDeclarationName(node); + let symbol; + if (name === void 0) { + symbol = createSymbol(0 /* None */, "__missing" /* Missing */); + } else { + symbol = symbolTable.get(name); + if (includes & 2885600 /* Classifiable */) { + classifiableNames.add(name); + } + if (!symbol) { + symbolTable.set(name, symbol = createSymbol(0 /* None */, name)); + if (isReplaceableByMethod) symbol.isReplaceableByMethod = true; + } else if (isReplaceableByMethod && !symbol.isReplaceableByMethod) { + return symbol; + } else if (symbol.flags & excludes) { + if (symbol.isReplaceableByMethod) { + symbolTable.set(name, symbol = createSymbol(0 /* None */, name)); + } else if (!(includes & 3 /* Variable */ && symbol.flags & 67108864 /* Assignment */)) { + if (isNamedDeclaration(node)) { + setParent(node.name, node); + } + let message = symbol.flags & 2 /* BlockScopedVariable */ ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; + let messageNeedsName = true; + if (symbol.flags & 384 /* Enum */ || includes & 384 /* Enum */) { + message = Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations; + messageNeedsName = false; + } + let multipleDefaultExports = false; + if (length(symbol.declarations)) { + if (isDefaultExport) { + message = Diagnostics.A_module_cannot_have_multiple_default_exports; + messageNeedsName = false; + multipleDefaultExports = true; + } else { + if (symbol.declarations && symbol.declarations.length && (node.kind === 277 /* ExportAssignment */ && !node.isExportEquals)) { + message = Diagnostics.A_module_cannot_have_multiple_default_exports; + messageNeedsName = false; + multipleDefaultExports = true; + } + } + } + const relatedInformation = []; + if (isTypeAliasDeclaration(node) && nodeIsMissing(node.type) && hasSyntacticModifier(node, 32 /* Export */) && symbol.flags & (2097152 /* Alias */ | 788968 /* Type */ | 1920 /* Namespace */)) { + relatedInformation.push(createDiagnosticForNode2(node, Diagnostics.Did_you_mean_0, `export type { ${unescapeLeadingUnderscores(node.name.escapedText)} }`)); + } + const declarationName = getNameOfDeclaration(node) || node; + forEach(symbol.declarations, (declaration, index) => { + const decl = getNameOfDeclaration(declaration) || declaration; + const diag3 = messageNeedsName ? createDiagnosticForNode2(decl, message, getDisplayName(declaration)) : createDiagnosticForNode2(decl, message); + file.bindDiagnostics.push( + multipleDefaultExports ? addRelatedInfo(diag3, createDiagnosticForNode2(declarationName, index === 0 ? Diagnostics.Another_export_default_is_here : Diagnostics.and_here)) : diag3 + ); + if (multipleDefaultExports) { + relatedInformation.push(createDiagnosticForNode2(decl, Diagnostics.The_first_export_default_is_here)); + } + }); + const diag2 = messageNeedsName ? createDiagnosticForNode2(declarationName, message, getDisplayName(node)) : createDiagnosticForNode2(declarationName, message); + file.bindDiagnostics.push(addRelatedInfo(diag2, ...relatedInformation)); + symbol = createSymbol(0 /* None */, name); + } + } + } + addDeclarationToSymbol(symbol, node, includes); + if (symbol.parent) { + Debug.assert(symbol.parent === parent2, "Existing symbol parent should match new one"); + } else { + symbol.parent = parent2; + } + return symbol; + } + function declareModuleMember(node, symbolFlags, symbolExcludes) { + const hasExportModifier = !!(getCombinedModifierFlags(node) & 32 /* Export */) || jsdocTreatAsExported(node); + if (symbolFlags & 2097152 /* Alias */) { + if (node.kind === 281 /* ExportSpecifier */ || node.kind === 271 /* ImportEqualsDeclaration */ && hasExportModifier) { + return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); + } else { + Debug.assertNode(container, canHaveLocals); + return declareSymbol( + container.locals, + /*parent*/ + void 0, + node, + symbolFlags, + symbolExcludes + ); + } + } else { + if (isJSDocTypeAlias(node)) Debug.assert(isInJSFile(node)); + if (!isAmbientModule(node) && (hasExportModifier || container.flags & 128 /* ExportContext */)) { + if (!canHaveLocals(container) || !container.locals || hasSyntacticModifier(node, 2048 /* Default */) && !getDeclarationName(node)) { + return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); + } + const exportKind = symbolFlags & 111551 /* Value */ ? 1048576 /* ExportValue */ : 0; + const local = declareSymbol( + container.locals, + /*parent*/ + void 0, + node, + exportKind, + symbolExcludes + ); + local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); + node.localSymbol = local; + return local; + } else { + Debug.assertNode(container, canHaveLocals); + return declareSymbol( + container.locals, + /*parent*/ + void 0, + node, + symbolFlags, + symbolExcludes + ); + } + } + } + function jsdocTreatAsExported(node) { + if (node.parent && isModuleDeclaration(node)) { + node = node.parent; + } + if (!isJSDocTypeAlias(node)) return false; + if (!isJSDocEnumTag(node) && !!node.fullName) return true; + const declName = getNameOfDeclaration(node); + if (!declName) return false; + if (isPropertyAccessEntityNameExpression(declName.parent) && isTopLevelNamespaceAssignment(declName.parent)) return true; + if (isDeclaration(declName.parent) && getCombinedModifierFlags(declName.parent) & 32 /* Export */) return true; + return false; + } + function bindContainer(node, containerFlags) { + const saveContainer = container; + const saveThisParentContainer = thisParentContainer; + const savedBlockScopeContainer = blockScopeContainer; + if (containerFlags & 1 /* IsContainer */) { + if (node.kind !== 219 /* ArrowFunction */) { + thisParentContainer = container; + } + container = blockScopeContainer = node; + if (containerFlags & 32 /* HasLocals */) { + container.locals = createSymbolTable(); + addToContainerChain(container); + } + } else if (containerFlags & 2 /* IsBlockScopedContainer */) { + blockScopeContainer = node; + if (containerFlags & 32 /* HasLocals */) { + blockScopeContainer.locals = void 0; + } + } + if (containerFlags & 4 /* IsControlFlowContainer */) { + const saveCurrentFlow = currentFlow; + const saveBreakTarget = currentBreakTarget; + const saveContinueTarget = currentContinueTarget; + const saveReturnTarget = currentReturnTarget; + const saveExceptionTarget = currentExceptionTarget; + const saveActiveLabelList = activeLabelList; + const saveHasExplicitReturn = hasExplicitReturn; + const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 1024 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 175 /* ClassStaticBlockDeclaration */; + if (!isImmediatelyInvoked) { + currentFlow = createFlowNode( + 2 /* Start */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */)) { + currentFlow.node = node; + } + } + currentReturnTarget = isImmediatelyInvoked || node.kind === 176 /* Constructor */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */) ? createBranchLabel() : void 0; + currentExceptionTarget = void 0; + currentBreakTarget = void 0; + currentContinueTarget = void 0; + activeLabelList = void 0; + hasExplicitReturn = false; + bindChildren(node); + node.flags &= ~5632 /* ReachabilityAndEmitFlags */; + if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) { + node.flags |= 512 /* HasImplicitReturn */; + if (hasExplicitReturn) node.flags |= 1024 /* HasExplicitReturn */; + node.endFlowNode = currentFlow; + } + if (node.kind === 307 /* SourceFile */) { + node.flags |= emitFlags; + node.endFlowNode = currentFlow; + } + if (currentReturnTarget) { + addAntecedent(currentReturnTarget, currentFlow); + currentFlow = finishFlowLabel(currentReturnTarget); + if (node.kind === 176 /* Constructor */ || node.kind === 175 /* ClassStaticBlockDeclaration */ || isInJSFile(node) && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { + node.returnFlowNode = currentFlow; + } + } + if (!isImmediatelyInvoked) { + currentFlow = saveCurrentFlow; + } + currentBreakTarget = saveBreakTarget; + currentContinueTarget = saveContinueTarget; + currentReturnTarget = saveReturnTarget; + currentExceptionTarget = saveExceptionTarget; + activeLabelList = saveActiveLabelList; + hasExplicitReturn = saveHasExplicitReturn; + } else if (containerFlags & 64 /* IsInterface */) { + seenThisKeyword = false; + bindChildren(node); + Debug.assertNotNode(node, isIdentifier); + node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */; + } else { + bindChildren(node); + } + container = saveContainer; + thisParentContainer = saveThisParentContainer; + blockScopeContainer = savedBlockScopeContainer; + } + function bindEachFunctionsFirst(nodes) { + bindEach(nodes, (n) => n.kind === 262 /* FunctionDeclaration */ ? bind(n) : void 0); + bindEach(nodes, (n) => n.kind !== 262 /* FunctionDeclaration */ ? bind(n) : void 0); + } + function bindEach(nodes, bindFunction = bind) { + if (nodes === void 0) { + return; + } + forEach(nodes, bindFunction); + } + function bindEachChild(node) { + forEachChild(node, bind, bindEach); + } + function bindChildren(node) { + const saveInAssignmentPattern = inAssignmentPattern; + inAssignmentPattern = false; + if (checkUnreachable(node)) { + bindEachChild(node); + bindJSDoc(node); + inAssignmentPattern = saveInAssignmentPattern; + return; + } + if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && (!options.allowUnreachableCode || node.kind === 253 /* ReturnStatement */)) { + node.flowNode = currentFlow; + } + switch (node.kind) { + case 247 /* WhileStatement */: + bindWhileStatement(node); + break; + case 246 /* DoStatement */: + bindDoStatement(node); + break; + case 248 /* ForStatement */: + bindForStatement(node); + break; + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + bindForInOrForOfStatement(node); + break; + case 245 /* IfStatement */: + bindIfStatement(node); + break; + case 253 /* ReturnStatement */: + case 257 /* ThrowStatement */: + bindReturnOrThrow(node); + break; + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + bindBreakOrContinueStatement(node); + break; + case 258 /* TryStatement */: + bindTryStatement(node); + break; + case 255 /* SwitchStatement */: + bindSwitchStatement(node); + break; + case 269 /* CaseBlock */: + bindCaseBlock(node); + break; + case 296 /* CaseClause */: + bindCaseClause(node); + break; + case 244 /* ExpressionStatement */: + bindExpressionStatement(node); + break; + case 256 /* LabeledStatement */: + bindLabeledStatement(node); + break; + case 224 /* PrefixUnaryExpression */: + bindPrefixUnaryExpressionFlow(node); + break; + case 225 /* PostfixUnaryExpression */: + bindPostfixUnaryExpressionFlow(node); + break; + case 226 /* BinaryExpression */: + if (isDestructuringAssignment(node)) { + inAssignmentPattern = saveInAssignmentPattern; + bindDestructuringAssignmentFlow(node); + return; + } + bindBinaryExpressionFlow(node); + break; + case 220 /* DeleteExpression */: + bindDeleteExpressionFlow(node); + break; + case 227 /* ConditionalExpression */: + bindConditionalExpressionFlow(node); + break; + case 260 /* VariableDeclaration */: + bindVariableDeclarationFlow(node); + break; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + bindAccessExpressionFlow(node); + break; + case 213 /* CallExpression */: + bindCallExpressionFlow(node); + break; + case 235 /* NonNullExpression */: + bindNonNullExpressionFlow(node); + break; + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + bindJSDocTypeAlias(node); + break; + case 351 /* JSDocImportTag */: + bindJSDocImportTag(node); + break; + case 307 /* SourceFile */: { + bindEachFunctionsFirst(node.statements); + bind(node.endOfFileToken); + break; + } + case 241 /* Block */: + case 268 /* ModuleBlock */: + bindEachFunctionsFirst(node.statements); + break; + case 208 /* BindingElement */: + bindBindingElementFlow(node); + break; + case 169 /* Parameter */: + bindParameterFlow(node); + break; + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + case 303 /* PropertyAssignment */: + case 230 /* SpreadElement */: + inAssignmentPattern = saveInAssignmentPattern; + default: + bindEachChild(node); + break; + } + bindJSDoc(node); + inAssignmentPattern = saveInAssignmentPattern; + } + function isNarrowingExpression(expr) { + switch (expr.kind) { + case 80 /* Identifier */: + case 110 /* ThisKeyword */: + return true; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return containsNarrowableReference(expr); + case 213 /* CallExpression */: + return hasNarrowableArgument(expr); + case 217 /* ParenthesizedExpression */: + if (isJSDocTypeAssertion(expr)) { + return false; + } + case 235 /* NonNullExpression */: + return isNarrowingExpression(expr.expression); + case 226 /* BinaryExpression */: + return isNarrowingBinaryExpression(expr); + case 224 /* PrefixUnaryExpression */: + return expr.operator === 54 /* ExclamationToken */ && isNarrowingExpression(expr.operand); + case 221 /* TypeOfExpression */: + return isNarrowingExpression(expr.expression); + } + return false; + } + function isNarrowableReference(expr) { + switch (expr.kind) { + case 80 /* Identifier */: + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 236 /* MetaProperty */: + return true; + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + return isNarrowableReference(expr.expression); + case 212 /* ElementAccessExpression */: + return (isStringOrNumericLiteralLike(expr.argumentExpression) || isEntityNameExpression(expr.argumentExpression)) && isNarrowableReference(expr.expression); + case 226 /* BinaryExpression */: + return expr.operatorToken.kind === 28 /* CommaToken */ && isNarrowableReference(expr.right) || isAssignmentOperator(expr.operatorToken.kind) && isLeftHandSideExpression(expr.left); + } + return false; + } + function containsNarrowableReference(expr) { + return isNarrowableReference(expr) || isOptionalChain(expr) && containsNarrowableReference(expr.expression); + } + function hasNarrowableArgument(expr) { + if (expr.arguments) { + for (const argument of expr.arguments) { + if (containsNarrowableReference(argument)) { + return true; + } + } + } + if (expr.expression.kind === 211 /* PropertyAccessExpression */ && containsNarrowableReference(expr.expression.expression)) { + return true; + } + return false; + } + function isNarrowingTypeofOperands(expr1, expr2) { + return isTypeOfExpression(expr1) && isNarrowableOperand(expr1.expression) && isStringLiteralLike(expr2); + } + function isNarrowingBinaryExpression(expr) { + switch (expr.operatorToken.kind) { + case 64 /* EqualsToken */: + case 76 /* BarBarEqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return containsNarrowableReference(expr.left); + case 35 /* EqualsEqualsToken */: + case 36 /* ExclamationEqualsToken */: + case 37 /* EqualsEqualsEqualsToken */: + case 38 /* ExclamationEqualsEqualsToken */: + return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right)); + case 104 /* InstanceOfKeyword */: + return isNarrowableOperand(expr.left); + case 103 /* InKeyword */: + return isNarrowingExpression(expr.right); + case 28 /* CommaToken */: + return isNarrowingExpression(expr.right); + } + return false; + } + function isNarrowableOperand(expr) { + switch (expr.kind) { + case 217 /* ParenthesizedExpression */: + return isNarrowableOperand(expr.expression); + case 226 /* BinaryExpression */: + switch (expr.operatorToken.kind) { + case 64 /* EqualsToken */: + return isNarrowableOperand(expr.left); + case 28 /* CommaToken */: + return isNarrowableOperand(expr.right); + } + } + return containsNarrowableReference(expr); + } + function createBranchLabel() { + return createFlowNode( + 4 /* BranchLabel */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + } + function createLoopLabel() { + return createFlowNode( + 8 /* LoopLabel */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + } + function createReduceLabel(target, antecedents, antecedent) { + return createFlowNode(1024 /* ReduceLabel */, { target, antecedents }, antecedent); + } + function setFlowNodeReferenced(flow) { + flow.flags |= flow.flags & 2048 /* Referenced */ ? 4096 /* Shared */ : 2048 /* Referenced */; + } + function addAntecedent(label, antecedent) { + if (!(antecedent.flags & 1 /* Unreachable */) && !contains(label.antecedent, antecedent)) { + (label.antecedent || (label.antecedent = [])).push(antecedent); + setFlowNodeReferenced(antecedent); + } + } + function createFlowCondition(flags, antecedent, expression) { + if (antecedent.flags & 1 /* Unreachable */) { + return antecedent; + } + if (!expression) { + return flags & 32 /* TrueCondition */ ? antecedent : unreachableFlow; + } + if ((expression.kind === 112 /* TrueKeyword */ && flags & 64 /* FalseCondition */ || expression.kind === 97 /* FalseKeyword */ && flags & 32 /* TrueCondition */) && !isExpressionOfOptionalChainRoot(expression) && !isNullishCoalesce(expression.parent)) { + return unreachableFlow; + } + if (!isNarrowingExpression(expression)) { + return antecedent; + } + setFlowNodeReferenced(antecedent); + return createFlowNode(flags, expression, antecedent); + } + function createFlowSwitchClause(antecedent, switchStatement, clauseStart, clauseEnd) { + setFlowNodeReferenced(antecedent); + return createFlowNode(128 /* SwitchClause */, { switchStatement, clauseStart, clauseEnd }, antecedent); + } + function createFlowMutation(flags, antecedent, node) { + setFlowNodeReferenced(antecedent); + hasFlowEffects = true; + const result = createFlowNode(flags, node, antecedent); + if (currentExceptionTarget) { + addAntecedent(currentExceptionTarget, result); + } + return result; + } + function createFlowCall(antecedent, node) { + setFlowNodeReferenced(antecedent); + hasFlowEffects = true; + return createFlowNode(512 /* Call */, node, antecedent); + } + function finishFlowLabel(flow) { + const antecedents = flow.antecedent; + if (!antecedents) { + return unreachableFlow; + } + if (antecedents.length === 1) { + return antecedents[0]; + } + return flow; + } + function isStatementCondition(node) { + const parent2 = node.parent; + switch (parent2.kind) { + case 245 /* IfStatement */: + case 247 /* WhileStatement */: + case 246 /* DoStatement */: + return parent2.expression === node; + case 248 /* ForStatement */: + case 227 /* ConditionalExpression */: + return parent2.condition === node; + } + return false; + } + function isLogicalExpression(node) { + while (true) { + if (node.kind === 217 /* ParenthesizedExpression */) { + node = node.expression; + } else if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 54 /* ExclamationToken */) { + node = node.operand; + } else { + return isLogicalOrCoalescingBinaryExpression(node); + } + } + } + function isLogicalAssignmentExpression(node) { + return isLogicalOrCoalescingAssignmentExpression(skipParentheses(node)); + } + function isTopLevelLogicalExpression(node) { + while (isParenthesizedExpression(node.parent) || isPrefixUnaryExpression(node.parent) && node.parent.operator === 54 /* ExclamationToken */) { + node = node.parent; + } + return !isStatementCondition(node) && !isLogicalExpression(node.parent) && !(isOptionalChain(node.parent) && node.parent.expression === node); + } + function doWithConditionalBranches(action, value, trueTarget, falseTarget) { + const savedTrueTarget = currentTrueTarget; + const savedFalseTarget = currentFalseTarget; + currentTrueTarget = trueTarget; + currentFalseTarget = falseTarget; + action(value); + currentTrueTarget = savedTrueTarget; + currentFalseTarget = savedFalseTarget; + } + function bindCondition(node, trueTarget, falseTarget) { + doWithConditionalBranches(bind, node, trueTarget, falseTarget); + if (!node || !isLogicalAssignmentExpression(node) && !isLogicalExpression(node) && !(isOptionalChain(node) && isOutermostOptionalChain(node))) { + addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); + addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); + } + } + function bindIterativeStatement(node, breakTarget, continueTarget) { + const saveBreakTarget = currentBreakTarget; + const saveContinueTarget = currentContinueTarget; + currentBreakTarget = breakTarget; + currentContinueTarget = continueTarget; + bind(node); + currentBreakTarget = saveBreakTarget; + currentContinueTarget = saveContinueTarget; + } + function setContinueTarget(node, target) { + let label = activeLabelList; + while (label && node.parent.kind === 256 /* LabeledStatement */) { + label.continueTarget = target; + label = label.next; + node = node.parent; + } + return target; + } + function bindWhileStatement(node) { + const preWhileLabel = setContinueTarget(node, createLoopLabel()); + const preBodyLabel = createBranchLabel(); + const postWhileLabel = createBranchLabel(); + addAntecedent(preWhileLabel, currentFlow); + currentFlow = preWhileLabel; + bindCondition(node.expression, preBodyLabel, postWhileLabel); + currentFlow = finishFlowLabel(preBodyLabel); + bindIterativeStatement(node.statement, postWhileLabel, preWhileLabel); + addAntecedent(preWhileLabel, currentFlow); + currentFlow = finishFlowLabel(postWhileLabel); + } + function bindDoStatement(node) { + const preDoLabel = createLoopLabel(); + const preConditionLabel = setContinueTarget(node, createBranchLabel()); + const postDoLabel = createBranchLabel(); + addAntecedent(preDoLabel, currentFlow); + currentFlow = preDoLabel; + bindIterativeStatement(node.statement, postDoLabel, preConditionLabel); + addAntecedent(preConditionLabel, currentFlow); + currentFlow = finishFlowLabel(preConditionLabel); + bindCondition(node.expression, preDoLabel, postDoLabel); + currentFlow = finishFlowLabel(postDoLabel); + } + function bindForStatement(node) { + const preLoopLabel = setContinueTarget(node, createLoopLabel()); + const preBodyLabel = createBranchLabel(); + const postLoopLabel = createBranchLabel(); + bind(node.initializer); + addAntecedent(preLoopLabel, currentFlow); + currentFlow = preLoopLabel; + bindCondition(node.condition, preBodyLabel, postLoopLabel); + currentFlow = finishFlowLabel(preBodyLabel); + bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); + bind(node.incrementor); + addAntecedent(preLoopLabel, currentFlow); + currentFlow = finishFlowLabel(postLoopLabel); + } + function bindForInOrForOfStatement(node) { + const preLoopLabel = setContinueTarget(node, createLoopLabel()); + const postLoopLabel = createBranchLabel(); + bind(node.expression); + addAntecedent(preLoopLabel, currentFlow); + currentFlow = preLoopLabel; + if (node.kind === 250 /* ForOfStatement */) { + bind(node.awaitModifier); + } + addAntecedent(postLoopLabel, currentFlow); + bind(node.initializer); + if (node.initializer.kind !== 261 /* VariableDeclarationList */) { + bindAssignmentTargetFlow(node.initializer); + } + bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); + addAntecedent(preLoopLabel, currentFlow); + currentFlow = finishFlowLabel(postLoopLabel); + } + function bindIfStatement(node) { + const thenLabel = createBranchLabel(); + const elseLabel = createBranchLabel(); + const postIfLabel = createBranchLabel(); + bindCondition(node.expression, thenLabel, elseLabel); + currentFlow = finishFlowLabel(thenLabel); + bind(node.thenStatement); + addAntecedent(postIfLabel, currentFlow); + currentFlow = finishFlowLabel(elseLabel); + bind(node.elseStatement); + addAntecedent(postIfLabel, currentFlow); + currentFlow = finishFlowLabel(postIfLabel); + } + function bindReturnOrThrow(node) { + bind(node.expression); + if (node.kind === 253 /* ReturnStatement */) { + hasExplicitReturn = true; + if (currentReturnTarget) { + addAntecedent(currentReturnTarget, currentFlow); + } + } + currentFlow = unreachableFlow; + hasFlowEffects = true; + } + function findActiveLabel(name) { + for (let label = activeLabelList; label; label = label.next) { + if (label.name === name) { + return label; + } + } + return void 0; + } + function bindBreakOrContinueFlow(node, breakTarget, continueTarget) { + const flowLabel = node.kind === 252 /* BreakStatement */ ? breakTarget : continueTarget; + if (flowLabel) { + addAntecedent(flowLabel, currentFlow); + currentFlow = unreachableFlow; + hasFlowEffects = true; + } + } + function bindBreakOrContinueStatement(node) { + bind(node.label); + if (node.label) { + const activeLabel = findActiveLabel(node.label.escapedText); + if (activeLabel) { + activeLabel.referenced = true; + bindBreakOrContinueFlow(node, activeLabel.breakTarget, activeLabel.continueTarget); + } + } else { + bindBreakOrContinueFlow(node, currentBreakTarget, currentContinueTarget); + } + } + function bindTryStatement(node) { + const saveReturnTarget = currentReturnTarget; + const saveExceptionTarget = currentExceptionTarget; + const normalExitLabel = createBranchLabel(); + const returnLabel = createBranchLabel(); + let exceptionLabel = createBranchLabel(); + if (node.finallyBlock) { + currentReturnTarget = returnLabel; + } + addAntecedent(exceptionLabel, currentFlow); + currentExceptionTarget = exceptionLabel; + bind(node.tryBlock); + addAntecedent(normalExitLabel, currentFlow); + if (node.catchClause) { + currentFlow = finishFlowLabel(exceptionLabel); + exceptionLabel = createBranchLabel(); + addAntecedent(exceptionLabel, currentFlow); + currentExceptionTarget = exceptionLabel; + bind(node.catchClause); + addAntecedent(normalExitLabel, currentFlow); + } + currentReturnTarget = saveReturnTarget; + currentExceptionTarget = saveExceptionTarget; + if (node.finallyBlock) { + const finallyLabel = createBranchLabel(); + finallyLabel.antecedent = concatenate(concatenate(normalExitLabel.antecedent, exceptionLabel.antecedent), returnLabel.antecedent); + currentFlow = finallyLabel; + bind(node.finallyBlock); + if (currentFlow.flags & 1 /* Unreachable */) { + currentFlow = unreachableFlow; + } else { + if (currentReturnTarget && returnLabel.antecedent) { + addAntecedent(currentReturnTarget, createReduceLabel(finallyLabel, returnLabel.antecedent, currentFlow)); + } + if (currentExceptionTarget && exceptionLabel.antecedent) { + addAntecedent(currentExceptionTarget, createReduceLabel(finallyLabel, exceptionLabel.antecedent, currentFlow)); + } + currentFlow = normalExitLabel.antecedent ? createReduceLabel(finallyLabel, normalExitLabel.antecedent, currentFlow) : unreachableFlow; + } + } else { + currentFlow = finishFlowLabel(normalExitLabel); + } + } + function bindSwitchStatement(node) { + const postSwitchLabel = createBranchLabel(); + bind(node.expression); + const saveBreakTarget = currentBreakTarget; + const savePreSwitchCaseFlow = preSwitchCaseFlow; + currentBreakTarget = postSwitchLabel; + preSwitchCaseFlow = currentFlow; + bind(node.caseBlock); + addAntecedent(postSwitchLabel, currentFlow); + const hasDefault = forEach(node.caseBlock.clauses, (c) => c.kind === 297 /* DefaultClause */); + node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedent; + if (!hasDefault) { + addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0)); + } + currentBreakTarget = saveBreakTarget; + preSwitchCaseFlow = savePreSwitchCaseFlow; + currentFlow = finishFlowLabel(postSwitchLabel); + } + function bindCaseBlock(node) { + const clauses = node.clauses; + const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression); + let fallthroughFlow = unreachableFlow; + for (let i = 0; i < clauses.length; i++) { + const clauseStart = i; + while (!clauses[i].statements.length && i + 1 < clauses.length) { + if (fallthroughFlow === unreachableFlow) { + currentFlow = preSwitchCaseFlow; + } + bind(clauses[i]); + i++; + } + const preCaseLabel = createBranchLabel(); + addAntecedent(preCaseLabel, isNarrowingSwitch ? createFlowSwitchClause(preSwitchCaseFlow, node.parent, clauseStart, i + 1) : preSwitchCaseFlow); + addAntecedent(preCaseLabel, fallthroughFlow); + currentFlow = finishFlowLabel(preCaseLabel); + const clause = clauses[i]; + bind(clause); + fallthroughFlow = currentFlow; + if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) { + clause.fallthroughFlowNode = currentFlow; + } + } + } + function bindCaseClause(node) { + const saveCurrentFlow = currentFlow; + currentFlow = preSwitchCaseFlow; + bind(node.expression); + currentFlow = saveCurrentFlow; + bindEach(node.statements); + } + function bindExpressionStatement(node) { + bind(node.expression); + maybeBindExpressionFlowIfCall(node.expression); + } + function maybeBindExpressionFlowIfCall(node) { + if (node.kind === 213 /* CallExpression */) { + const call = node; + if (call.expression.kind !== 108 /* SuperKeyword */ && isDottedName(call.expression)) { + currentFlow = createFlowCall(currentFlow, call); + } + } + } + function bindLabeledStatement(node) { + const postStatementLabel = createBranchLabel(); + activeLabelList = { + next: activeLabelList, + name: node.label.escapedText, + breakTarget: postStatementLabel, + continueTarget: void 0, + referenced: false + }; + bind(node.label); + bind(node.statement); + if (!activeLabelList.referenced && !options.allowUnusedLabels) { + errorOrSuggestionOnNode(unusedLabelIsError(options), node.label, Diagnostics.Unused_label); + } + activeLabelList = activeLabelList.next; + addAntecedent(postStatementLabel, currentFlow); + currentFlow = finishFlowLabel(postStatementLabel); + } + function bindDestructuringTargetFlow(node) { + if (node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */) { + bindAssignmentTargetFlow(node.left); + } else { + bindAssignmentTargetFlow(node); + } + } + function bindAssignmentTargetFlow(node) { + if (isNarrowableReference(node)) { + currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); + } else if (node.kind === 209 /* ArrayLiteralExpression */) { + for (const e of node.elements) { + if (e.kind === 230 /* SpreadElement */) { + bindAssignmentTargetFlow(e.expression); + } else { + bindDestructuringTargetFlow(e); + } + } + } else if (node.kind === 210 /* ObjectLiteralExpression */) { + for (const p of node.properties) { + if (p.kind === 303 /* PropertyAssignment */) { + bindDestructuringTargetFlow(p.initializer); + } else if (p.kind === 304 /* ShorthandPropertyAssignment */) { + bindAssignmentTargetFlow(p.name); + } else if (p.kind === 305 /* SpreadAssignment */) { + bindAssignmentTargetFlow(p.expression); + } + } + } + } + function bindLogicalLikeExpression(node, trueTarget, falseTarget) { + const preRightLabel = createBranchLabel(); + if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ || node.operatorToken.kind === 77 /* AmpersandAmpersandEqualsToken */) { + bindCondition(node.left, preRightLabel, falseTarget); + } else { + bindCondition(node.left, trueTarget, preRightLabel); + } + currentFlow = finishFlowLabel(preRightLabel); + bind(node.operatorToken); + if (isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind)) { + doWithConditionalBranches(bind, node.right, trueTarget, falseTarget); + bindAssignmentTargetFlow(node.left); + addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); + addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); + } else { + bindCondition(node.right, trueTarget, falseTarget); + } + } + function bindPrefixUnaryExpressionFlow(node) { + if (node.operator === 54 /* ExclamationToken */) { + const saveTrueTarget = currentTrueTarget; + currentTrueTarget = currentFalseTarget; + currentFalseTarget = saveTrueTarget; + bindEachChild(node); + currentFalseTarget = currentTrueTarget; + currentTrueTarget = saveTrueTarget; + } else { + bindEachChild(node); + if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { + bindAssignmentTargetFlow(node.operand); + } + } + } + function bindPostfixUnaryExpressionFlow(node) { + bindEachChild(node); + if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { + bindAssignmentTargetFlow(node.operand); + } + } + function bindDestructuringAssignmentFlow(node) { + if (inAssignmentPattern) { + inAssignmentPattern = false; + bind(node.operatorToken); + bind(node.right); + inAssignmentPattern = true; + bind(node.left); + } else { + inAssignmentPattern = true; + bind(node.left); + inAssignmentPattern = false; + bind(node.operatorToken); + bind(node.right); + } + bindAssignmentTargetFlow(node.left); + } + function createBindBinaryExpressionFlow() { + return createBinaryExpressionTrampoline( + onEnter, + onLeft, + onOperator, + onRight, + onExit, + /*foldState*/ + void 0 + ); + function onEnter(node, state) { + if (state) { + state.stackIndex++; + setParent(node, parent); + const saveInStrictMode = inStrictMode; + bindWorker(node); + const saveParent = parent; + parent = node; + state.skip = false; + state.inStrictModeStack[state.stackIndex] = saveInStrictMode; + state.parentStack[state.stackIndex] = saveParent; + } else { + state = { + stackIndex: 0, + skip: false, + inStrictModeStack: [void 0], + parentStack: [void 0] + }; + } + const operator = node.operatorToken.kind; + if (isLogicalOrCoalescingBinaryOperator(operator) || isLogicalOrCoalescingAssignmentOperator(operator)) { + if (isTopLevelLogicalExpression(node)) { + const postExpressionLabel = createBranchLabel(); + const saveCurrentFlow = currentFlow; + const saveHasFlowEffects = hasFlowEffects; + hasFlowEffects = false; + bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel); + currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; + hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); + } else { + bindLogicalLikeExpression(node, currentTrueTarget, currentFalseTarget); + } + state.skip = true; + } + return state; + } + function onLeft(left, state, node) { + if (!state.skip) { + const maybeBound = maybeBind2(left); + if (node.operatorToken.kind === 28 /* CommaToken */) { + maybeBindExpressionFlowIfCall(left); + } + return maybeBound; + } + } + function onOperator(operatorToken, state, _node) { + if (!state.skip) { + bind(operatorToken); + } + } + function onRight(right, state, node) { + if (!state.skip) { + const maybeBound = maybeBind2(right); + if (node.operatorToken.kind === 28 /* CommaToken */) { + maybeBindExpressionFlowIfCall(right); + } + return maybeBound; + } + } + function onExit(node, state) { + if (!state.skip) { + const operator = node.operatorToken.kind; + if (isAssignmentOperator(operator) && !isAssignmentTarget(node)) { + bindAssignmentTargetFlow(node.left); + if (operator === 64 /* EqualsToken */ && node.left.kind === 212 /* ElementAccessExpression */) { + const elementAccess = node.left; + if (isNarrowableOperand(elementAccess.expression)) { + currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); + } + } + } + } + const savedInStrictMode = state.inStrictModeStack[state.stackIndex]; + const savedParent = state.parentStack[state.stackIndex]; + if (savedInStrictMode !== void 0) { + inStrictMode = savedInStrictMode; + } + if (savedParent !== void 0) { + parent = savedParent; + } + state.skip = false; + state.stackIndex--; + } + function maybeBind2(node) { + if (node && isBinaryExpression(node) && !isDestructuringAssignment(node)) { + return node; + } + bind(node); + } + } + function bindDeleteExpressionFlow(node) { + bindEachChild(node); + if (node.expression.kind === 211 /* PropertyAccessExpression */) { + bindAssignmentTargetFlow(node.expression); + } + } + function bindConditionalExpressionFlow(node) { + const trueLabel = createBranchLabel(); + const falseLabel = createBranchLabel(); + const postExpressionLabel = createBranchLabel(); + const saveCurrentFlow = currentFlow; + const saveHasFlowEffects = hasFlowEffects; + hasFlowEffects = false; + bindCondition(node.condition, trueLabel, falseLabel); + currentFlow = finishFlowLabel(trueLabel); + bind(node.questionToken); + bind(node.whenTrue); + addAntecedent(postExpressionLabel, currentFlow); + currentFlow = finishFlowLabel(falseLabel); + bind(node.colonToken); + bind(node.whenFalse); + addAntecedent(postExpressionLabel, currentFlow); + currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; + hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); + } + function bindInitializedVariableFlow(node) { + const name = !isOmittedExpression(node) ? node.name : void 0; + if (isBindingPattern(name)) { + for (const child of name.elements) { + bindInitializedVariableFlow(child); + } + } else { + currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node); + } + } + function bindVariableDeclarationFlow(node) { + bindEachChild(node); + if (node.initializer || isForInOrOfStatement(node.parent.parent)) { + bindInitializedVariableFlow(node); + } + } + function bindBindingElementFlow(node) { + bind(node.dotDotDotToken); + bind(node.propertyName); + bindInitializer(node.initializer); + bind(node.name); + } + function bindParameterFlow(node) { + bindEach(node.modifiers); + bind(node.dotDotDotToken); + bind(node.questionToken); + bind(node.type); + bindInitializer(node.initializer); + bind(node.name); + } + function bindInitializer(node) { + if (!node) { + return; + } + const entryFlow = currentFlow; + bind(node); + if (entryFlow === unreachableFlow || entryFlow === currentFlow) { + return; + } + const exitFlow = createBranchLabel(); + addAntecedent(exitFlow, entryFlow); + addAntecedent(exitFlow, currentFlow); + currentFlow = finishFlowLabel(exitFlow); + } + function bindJSDocTypeAlias(node) { + bind(node.tagName); + if (node.kind !== 340 /* JSDocEnumTag */ && node.fullName) { + setParent(node.fullName, node); + setParentRecursive( + node.fullName, + /*incremental*/ + false + ); + } + if (typeof node.comment !== "string") { + bindEach(node.comment); + } + } + function bindJSDocClassTag(node) { + bindEachChild(node); + const host = getHostSignatureFromJSDoc(node); + if (host && host.kind !== 174 /* MethodDeclaration */) { + addDeclarationToSymbol(host.symbol, host, 32 /* Class */); + } + } + function bindJSDocImportTag(node) { + bind(node.tagName); + if (typeof node.comment !== "string") { + bindEach(node.comment); + } + } + function bindOptionalExpression(node, trueTarget, falseTarget) { + doWithConditionalBranches(bind, node, trueTarget, falseTarget); + if (!isOptionalChain(node) || isOutermostOptionalChain(node)) { + addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); + addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); + } + } + function bindOptionalChainRest(node) { + switch (node.kind) { + case 211 /* PropertyAccessExpression */: + bind(node.questionDotToken); + bind(node.name); + break; + case 212 /* ElementAccessExpression */: + bind(node.questionDotToken); + bind(node.argumentExpression); + break; + case 213 /* CallExpression */: + bind(node.questionDotToken); + bindEach(node.typeArguments); + bindEach(node.arguments); + break; + } + } + function bindOptionalChain(node, trueTarget, falseTarget) { + const preChainLabel = isOptionalChainRoot(node) ? createBranchLabel() : void 0; + bindOptionalExpression(node.expression, preChainLabel || trueTarget, falseTarget); + if (preChainLabel) { + currentFlow = finishFlowLabel(preChainLabel); + } + doWithConditionalBranches(bindOptionalChainRest, node, trueTarget, falseTarget); + if (isOutermostOptionalChain(node)) { + addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node)); + addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node)); + } + } + function bindOptionalChainFlow(node) { + if (isTopLevelLogicalExpression(node)) { + const postExpressionLabel = createBranchLabel(); + const saveCurrentFlow = currentFlow; + const saveHasFlowEffects = hasFlowEffects; + bindOptionalChain(node, postExpressionLabel, postExpressionLabel); + currentFlow = hasFlowEffects ? finishFlowLabel(postExpressionLabel) : saveCurrentFlow; + hasFlowEffects || (hasFlowEffects = saveHasFlowEffects); + } else { + bindOptionalChain(node, currentTrueTarget, currentFalseTarget); + } + } + function bindNonNullExpressionFlow(node) { + if (isOptionalChain(node)) { + bindOptionalChainFlow(node); + } else { + bindEachChild(node); + } + } + function bindAccessExpressionFlow(node) { + if (isOptionalChain(node)) { + bindOptionalChainFlow(node); + } else { + bindEachChild(node); + } + } + function bindCallExpressionFlow(node) { + if (isOptionalChain(node)) { + bindOptionalChainFlow(node); + } else { + const expr = skipParentheses(node.expression); + if (expr.kind === 218 /* FunctionExpression */ || expr.kind === 219 /* ArrowFunction */) { + bindEach(node.typeArguments); + bindEach(node.arguments); + bind(node.expression); + } else { + bindEachChild(node); + if (node.expression.kind === 108 /* SuperKeyword */) { + currentFlow = createFlowCall(currentFlow, node); + } + } + } + if (node.expression.kind === 211 /* PropertyAccessExpression */) { + const propertyAccess = node.expression; + if (isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && isPushOrUnshiftIdentifier(propertyAccess.name)) { + currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node); + } + } + } + function addToContainerChain(next) { + if (lastContainer) { + lastContainer.nextContainer = next; + } + lastContainer = next; + } + function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { + switch (container.kind) { + case 267 /* ModuleDeclaration */: + return declareModuleMember(node, symbolFlags, symbolExcludes); + case 307 /* SourceFile */: + return declareSourceFileMember(node, symbolFlags, symbolExcludes); + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + return declareClassMember(node, symbolFlags, symbolExcludes); + case 266 /* EnumDeclaration */: + return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); + case 187 /* TypeLiteral */: + case 322 /* JSDocTypeLiteral */: + case 210 /* ObjectLiteralExpression */: + case 264 /* InterfaceDeclaration */: + case 292 /* JsxAttributes */: + return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 323 /* JSDocSignature */: + case 181 /* IndexSignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 317 /* JSDocFunctionType */: + case 175 /* ClassStaticBlockDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + if (container.locals) Debug.assertNode(container, canHaveLocals); + return declareSymbol( + container.locals, + /*parent*/ + void 0, + node, + symbolFlags, + symbolExcludes + ); + } + } + function declareClassMember(node, symbolFlags, symbolExcludes) { + return isStatic(node) ? declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes) : declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes); + } + function declareSourceFileMember(node, symbolFlags, symbolExcludes) { + return isExternalModule(file) ? declareModuleMember(node, symbolFlags, symbolExcludes) : declareSymbol( + file.locals, + /*parent*/ + void 0, + node, + symbolFlags, + symbolExcludes + ); + } + function hasExportDeclarations(node) { + const body = isSourceFile(node) ? node : tryCast(node.body, isModuleBlock); + return !!body && body.statements.some((s) => isExportDeclaration(s) || isExportAssignment(s)); + } + function setExportContextFlag(node) { + if (node.flags & 33554432 /* Ambient */ && !hasExportDeclarations(node)) { + node.flags |= 128 /* ExportContext */; + } else { + node.flags &= ~128 /* ExportContext */; + } + } + function bindModuleDeclaration(node) { + setExportContextFlag(node); + if (isAmbientModule(node)) { + if (hasSyntacticModifier(node, 32 /* Export */)) { + errorOnFirstToken(node, Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible); + } + if (isModuleAugmentationExternal(node)) { + declareModuleSymbol(node); + } else { + let pattern; + if (node.name.kind === 11 /* StringLiteral */) { + const { text } = node.name; + pattern = tryParsePattern(text); + if (pattern === void 0) { + errorOnFirstToken(node.name, Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, text); + } + } + const symbol = declareSymbolAndAddToSymbolTable(node, 512 /* ValueModule */, 110735 /* ValueModuleExcludes */); + file.patternAmbientModules = append(file.patternAmbientModules, pattern && !isString(pattern) ? { pattern, symbol } : void 0); + } + } else { + const state = declareModuleSymbol(node); + if (state !== 0 /* NonInstantiated */) { + const { symbol } = node; + symbol.constEnumOnlyModule = !(symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */)) && state === 2 /* ConstEnumOnly */ && symbol.constEnumOnlyModule !== false; + } + } + } + function declareModuleSymbol(node) { + const state = getModuleInstanceState(node); + const instantiated = state !== 0 /* NonInstantiated */; + declareSymbolAndAddToSymbolTable( + node, + instantiated ? 512 /* ValueModule */ : 1024 /* NamespaceModule */, + instantiated ? 110735 /* ValueModuleExcludes */ : 0 /* NamespaceModuleExcludes */ + ); + return state; + } + function bindFunctionOrConstructorType(node) { + const symbol = createSymbol(131072 /* Signature */, getDeclarationName(node)); + addDeclarationToSymbol(symbol, node, 131072 /* Signature */); + const typeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); + addDeclarationToSymbol(typeLiteralSymbol, node, 2048 /* TypeLiteral */); + typeLiteralSymbol.members = createSymbolTable(); + typeLiteralSymbol.members.set(symbol.escapedName, symbol); + } + function bindObjectLiteralExpression(node) { + return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__object" /* Object */); + } + function bindJsxAttributes(node) { + return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, "__jsxAttributes" /* JSXAttributes */); + } + function bindJsxAttribute(node, symbolFlags, symbolExcludes) { + return declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes); + } + function bindAnonymousDeclaration(node, symbolFlags, name) { + const symbol = createSymbol(symbolFlags, name); + if (symbolFlags & (8 /* EnumMember */ | 106500 /* ClassMember */)) { + symbol.parent = container.symbol; + } + addDeclarationToSymbol(symbol, node, symbolFlags); + return symbol; + } + function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) { + switch (blockScopeContainer.kind) { + case 267 /* ModuleDeclaration */: + declareModuleMember(node, symbolFlags, symbolExcludes); + break; + case 307 /* SourceFile */: + if (isExternalOrCommonJsModule(container)) { + declareModuleMember(node, symbolFlags, symbolExcludes); + break; + } + default: + Debug.assertNode(blockScopeContainer, canHaveLocals); + if (!blockScopeContainer.locals) { + blockScopeContainer.locals = createSymbolTable(); + addToContainerChain(blockScopeContainer); + } + declareSymbol( + blockScopeContainer.locals, + /*parent*/ + void 0, + node, + symbolFlags, + symbolExcludes + ); + } + } + function delayedBindJSDocTypedefTag() { + if (!delayedTypeAliases) { + return; + } + const saveContainer = container; + const saveLastContainer = lastContainer; + const saveBlockScopeContainer = blockScopeContainer; + const saveParent = parent; + const saveCurrentFlow = currentFlow; + for (const typeAlias of delayedTypeAliases) { + const host = typeAlias.parent.parent; + container = getEnclosingContainer(host) || file; + blockScopeContainer = getEnclosingBlockScopeContainer(host) || file; + currentFlow = createFlowNode( + 2 /* Start */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + parent = typeAlias; + bind(typeAlias.typeExpression); + const declName = getNameOfDeclaration(typeAlias); + if ((isJSDocEnumTag(typeAlias) || !typeAlias.fullName) && declName && isPropertyAccessEntityNameExpression(declName.parent)) { + const isTopLevel = isTopLevelNamespaceAssignment(declName.parent); + if (isTopLevel) { + bindPotentiallyMissingNamespaces( + file.symbol, + declName.parent, + isTopLevel, + !!findAncestor(declName, (d) => isPropertyAccessExpression(d) && d.name.escapedText === "prototype"), + /*containerIsClass*/ + false + ); + const oldContainer = container; + switch (getAssignmentDeclarationPropertyAccessKind(declName.parent)) { + case 1 /* ExportsProperty */: + case 2 /* ModuleExports */: + if (!isExternalOrCommonJsModule(file)) { + container = void 0; + } else { + container = file; + } + break; + case 4 /* ThisProperty */: + container = declName.parent.expression; + break; + case 3 /* PrototypeProperty */: + container = declName.parent.expression.name; + break; + case 5 /* Property */: + container = isExportsOrModuleExportsOrAlias(file, declName.parent.expression) ? file : isPropertyAccessExpression(declName.parent.expression) ? declName.parent.expression.name : declName.parent.expression; + break; + case 0 /* None */: + return Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration"); + } + if (container) { + declareModuleMember(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); + } + container = oldContainer; + } + } else if (isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === 80 /* Identifier */) { + parent = typeAlias.parent; + bindBlockScopedDeclaration(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); + } else { + bind(typeAlias.fullName); + } + } + container = saveContainer; + lastContainer = saveLastContainer; + blockScopeContainer = saveBlockScopeContainer; + parent = saveParent; + currentFlow = saveCurrentFlow; + } + function bindJSDocImports() { + if (jsDocImports === void 0) { + return; + } + const saveContainer = container; + const saveLastContainer = lastContainer; + const saveBlockScopeContainer = blockScopeContainer; + const saveParent = parent; + const saveCurrentFlow = currentFlow; + for (const jsDocImportTag of jsDocImports) { + const host = getJSDocHost(jsDocImportTag); + const enclosingContainer = host ? getEnclosingContainer(host) : void 0; + const enclosingBlockScopeContainer = host ? getEnclosingBlockScopeContainer(host) : void 0; + container = enclosingContainer || file; + blockScopeContainer = enclosingBlockScopeContainer || file; + currentFlow = createFlowNode( + 2 /* Start */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + parent = jsDocImportTag; + bind(jsDocImportTag.importClause); + } + container = saveContainer; + lastContainer = saveLastContainer; + blockScopeContainer = saveBlockScopeContainer; + parent = saveParent; + currentFlow = saveCurrentFlow; + } + function checkContextualIdentifier(node) { + if (!file.parseDiagnostics.length && !(node.flags & 33554432 /* Ambient */) && !(node.flags & 16777216 /* JSDoc */) && !isIdentifierName(node)) { + const originalKeywordKind = identifierToKeywordKind(node); + if (originalKeywordKind === void 0) { + return; + } + if (inStrictMode && originalKeywordKind >= 119 /* FirstFutureReservedWord */ && originalKeywordKind <= 127 /* LastFutureReservedWord */) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, getStrictModeIdentifierMessage(node), declarationNameToString(node))); + } else if (originalKeywordKind === 135 /* AwaitKeyword */) { + if (isExternalModule(file) && isInTopLevelContext(node)) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, declarationNameToString(node))); + } else if (node.flags & 65536 /* AwaitContext */) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node))); + } + } else if (originalKeywordKind === 127 /* YieldKeyword */ && node.flags & 16384 /* YieldContext */) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, declarationNameToString(node))); + } + } + } + function getStrictModeIdentifierMessage(node) { + if (getContainingClass(node)) { + return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode; + } + if (file.externalModuleIndicator) { + return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode; + } + return Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode; + } + function checkPrivateIdentifier(node) { + if (node.escapedText === "#constructor") { + if (!file.parseDiagnostics.length) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.constructor_is_a_reserved_word, declarationNameToString(node))); + } + } + } + function checkStrictModeBinaryExpression(node) { + if (inStrictMode && isLeftHandSideExpression(node.left) && isAssignmentOperator(node.operatorToken.kind)) { + checkStrictModeEvalOrArguments(node, node.left); + } + } + function checkStrictModeCatchClause(node) { + if (inStrictMode && node.variableDeclaration) { + checkStrictModeEvalOrArguments(node, node.variableDeclaration.name); + } + } + function checkStrictModeDeleteExpression(node) { + if (inStrictMode && node.expression.kind === 80 /* Identifier */) { + const span = getErrorSpanForNode(file, node.expression); + file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode)); + } + } + function isEvalOrArgumentsIdentifier(node) { + return isIdentifier(node) && (node.escapedText === "eval" || node.escapedText === "arguments"); + } + function checkStrictModeEvalOrArguments(contextNode, name) { + if (name && name.kind === 80 /* Identifier */) { + const identifier = name; + if (isEvalOrArgumentsIdentifier(identifier)) { + const span = getErrorSpanForNode(file, name); + file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, getStrictModeEvalOrArgumentsMessage(contextNode), idText(identifier))); + } + } + } + function getStrictModeEvalOrArgumentsMessage(node) { + if (getContainingClass(node)) { + return Diagnostics.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; + } + if (file.externalModuleIndicator) { + return Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode; + } + return Diagnostics.Invalid_use_of_0_in_strict_mode; + } + function checkStrictModeFunctionName(node) { + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { + checkStrictModeEvalOrArguments(node, node.name); + } + } + function getStrictModeBlockScopeFunctionDeclarationMessage(node) { + if (getContainingClass(node)) { + return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode; + } + if (file.externalModuleIndicator) { + return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode; + } + return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5; + } + function checkStrictModeFunctionDeclaration(node) { + if (languageVersion < 2 /* ES2015 */) { + if (blockScopeContainer.kind !== 307 /* SourceFile */ && blockScopeContainer.kind !== 267 /* ModuleDeclaration */ && !isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) { + const errorSpan = getErrorSpanForNode(file, node); + file.bindDiagnostics.push(createFileDiagnostic(file, errorSpan.start, errorSpan.length, getStrictModeBlockScopeFunctionDeclarationMessage(node))); + } + } + } + function checkStrictModePostfixUnaryExpression(node) { + if (inStrictMode) { + checkStrictModeEvalOrArguments(node, node.operand); + } + } + function checkStrictModePrefixUnaryExpression(node) { + if (inStrictMode) { + if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { + checkStrictModeEvalOrArguments(node, node.operand); + } + } + } + function checkStrictModeWithStatement(node) { + if (inStrictMode) { + errorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_strict_mode); + } + } + function checkStrictModeLabeledStatement(node) { + if (inStrictMode && getEmitScriptTarget(options) >= 2 /* ES2015 */) { + if (isDeclarationStatement(node.statement) || isVariableStatement(node.statement)) { + errorOnFirstToken(node.label, Diagnostics.A_label_is_not_allowed_here); + } + } + } + function errorOnFirstToken(node, message, ...args) { + const span = getSpanOfTokenAtPosition(file, node.pos); + file.bindDiagnostics.push(createFileDiagnostic(file, span.start, span.length, message, ...args)); + } + function errorOrSuggestionOnNode(isError, node, message) { + errorOrSuggestionOnRange(isError, node, node, message); + } + function errorOrSuggestionOnRange(isError, startNode, endNode, message) { + addErrorOrSuggestionDiagnostic(isError, { pos: getTokenPosOfNode(startNode, file), end: endNode.end }, message); + } + function addErrorOrSuggestionDiagnostic(isError, range, message) { + const diag2 = createFileDiagnostic(file, range.pos, range.end - range.pos, message); + if (isError) { + file.bindDiagnostics.push(diag2); + } else { + file.bindSuggestionDiagnostics = append(file.bindSuggestionDiagnostics, { ...diag2, category: 2 /* Suggestion */ }); + } + } + function bind(node) { + if (!node) { + return; + } + setParent(node, parent); + if (tracing) node.tracingPath = file.path; + const saveInStrictMode = inStrictMode; + bindWorker(node); + if (node.kind > 165 /* LastToken */) { + const saveParent = parent; + parent = node; + const containerFlags = getContainerFlags(node); + if (containerFlags === 0 /* None */) { + bindChildren(node); + } else { + bindContainer(node, containerFlags); + } + parent = saveParent; + } else { + const saveParent = parent; + if (node.kind === 1 /* EndOfFileToken */) parent = node; + bindJSDoc(node); + parent = saveParent; + } + inStrictMode = saveInStrictMode; + } + function bindJSDoc(node) { + if (hasJSDocNodes(node)) { + if (isInJSFile(node)) { + for (const j of node.jsDoc) { + bind(j); + } + } else { + for (const j of node.jsDoc) { + setParent(j, node); + setParentRecursive( + j, + /*incremental*/ + false + ); + } + } + } + } + function updateStrictModeStatementList(statements) { + if (!inStrictMode) { + for (const statement of statements) { + if (!isPrologueDirective(statement)) { + return; + } + if (isUseStrictPrologueDirective(statement)) { + inStrictMode = true; + return; + } + } + } + } + function isUseStrictPrologueDirective(node) { + const nodeText = getSourceTextOfNodeFromSourceFile(file, node.expression); + return nodeText === '"use strict"' || nodeText === "'use strict'"; + } + function bindWorker(node) { + switch (node.kind) { + case 80 /* Identifier */: + if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { + let parentNode = node.parent; + while (parentNode && !isJSDocTypeAlias(parentNode)) { + parentNode = parentNode.parent; + } + bindBlockScopedDeclaration(parentNode, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); + break; + } + case 110 /* ThisKeyword */: + if (currentFlow && (isExpression(node) || parent.kind === 304 /* ShorthandPropertyAssignment */)) { + node.flowNode = currentFlow; + } + return checkContextualIdentifier(node); + case 166 /* QualifiedName */: + if (currentFlow && isPartOfTypeQuery(node)) { + node.flowNode = currentFlow; + } + break; + case 236 /* MetaProperty */: + case 108 /* SuperKeyword */: + node.flowNode = currentFlow; + break; + case 81 /* PrivateIdentifier */: + return checkPrivateIdentifier(node); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + const expr = node; + if (currentFlow && isNarrowableReference(expr)) { + expr.flowNode = currentFlow; + } + if (isSpecialPropertyDeclaration(expr)) { + bindSpecialPropertyDeclaration(expr); + } + if (isInJSFile(expr) && file.commonJsModuleIndicator && isModuleExportsAccessExpression(expr) && !lookupSymbolForName(blockScopeContainer, "module")) { + declareSymbol( + file.locals, + /*parent*/ + void 0, + expr.expression, + 1 /* FunctionScopedVariable */ | 134217728 /* ModuleExports */, + 111550 /* FunctionScopedVariableExcludes */ + ); + } + break; + case 226 /* BinaryExpression */: + const specialKind = getAssignmentDeclarationKind(node); + switch (specialKind) { + case 1 /* ExportsProperty */: + bindExportsPropertyAssignment(node); + break; + case 2 /* ModuleExports */: + bindModuleExportsAssignment(node); + break; + case 3 /* PrototypeProperty */: + bindPrototypePropertyAssignment(node.left, node); + break; + case 6 /* Prototype */: + bindPrototypeAssignment(node); + break; + case 4 /* ThisProperty */: + bindThisPropertyAssignment(node); + break; + case 5 /* Property */: + const expression = node.left.expression; + if (isInJSFile(node) && isIdentifier(expression)) { + const symbol = lookupSymbolForName(blockScopeContainer, expression.escapedText); + if (isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration)) { + bindThisPropertyAssignment(node); + break; + } + } + bindSpecialPropertyAssignment(node); + break; + case 0 /* None */: + break; + default: + Debug.fail("Unknown binary expression special property assignment kind"); + } + return checkStrictModeBinaryExpression(node); + case 299 /* CatchClause */: + return checkStrictModeCatchClause(node); + case 220 /* DeleteExpression */: + return checkStrictModeDeleteExpression(node); + case 225 /* PostfixUnaryExpression */: + return checkStrictModePostfixUnaryExpression(node); + case 224 /* PrefixUnaryExpression */: + return checkStrictModePrefixUnaryExpression(node); + case 254 /* WithStatement */: + return checkStrictModeWithStatement(node); + case 256 /* LabeledStatement */: + return checkStrictModeLabeledStatement(node); + case 197 /* ThisType */: + seenThisKeyword = true; + return; + case 182 /* TypePredicate */: + break; + case 168 /* TypeParameter */: + return bindTypeParameter(node); + case 169 /* Parameter */: + return bindParameter(node); + case 260 /* VariableDeclaration */: + return bindVariableDeclarationOrBindingElement(node); + case 208 /* BindingElement */: + node.flowNode = currentFlow; + return bindVariableDeclarationOrBindingElement(node); + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return bindPropertyWorker(node); + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */); + case 306 /* EnumMember */: + return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */); + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */); + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + return bindPropertyOrMethodOrAccessor(node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */); + case 262 /* FunctionDeclaration */: + return bindFunctionDeclaration(node); + case 176 /* Constructor */: + return declareSymbolAndAddToSymbolTable( + node, + 16384 /* Constructor */, + /*symbolExcludes:*/ + 0 /* None */ + ); + case 177 /* GetAccessor */: + return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */); + case 178 /* SetAccessor */: + return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */); + case 184 /* FunctionType */: + case 317 /* JSDocFunctionType */: + case 323 /* JSDocSignature */: + case 185 /* ConstructorType */: + return bindFunctionOrConstructorType(node); + case 187 /* TypeLiteral */: + case 322 /* JSDocTypeLiteral */: + case 200 /* MappedType */: + return bindAnonymousTypeWorker(node); + case 332 /* JSDocClassTag */: + return bindJSDocClassTag(node); + case 210 /* ObjectLiteralExpression */: + return bindObjectLiteralExpression(node); + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return bindFunctionExpression(node); + case 213 /* CallExpression */: + const assignmentKind = getAssignmentDeclarationKind(node); + switch (assignmentKind) { + case 7 /* ObjectDefinePropertyValue */: + return bindObjectDefinePropertyAssignment(node); + case 8 /* ObjectDefinePropertyExports */: + return bindObjectDefinePropertyExport(node); + case 9 /* ObjectDefinePrototypeProperty */: + return bindObjectDefinePrototypeProperty(node); + case 0 /* None */: + break; + default: + return Debug.fail("Unknown call expression assignment declaration kind"); + } + if (isInJSFile(node)) { + bindCallExpression(node); + } + break; + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + inStrictMode = true; + return bindClassLikeDeclaration(node); + case 264 /* InterfaceDeclaration */: + return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */); + case 265 /* TypeAliasDeclaration */: + return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); + case 266 /* EnumDeclaration */: + return bindEnumDeclaration(node); + case 267 /* ModuleDeclaration */: + return bindModuleDeclaration(node); + case 292 /* JsxAttributes */: + return bindJsxAttributes(node); + case 291 /* JsxAttribute */: + return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); + case 270 /* NamespaceExportDeclaration */: + return bindNamespaceExportDeclaration(node); + case 273 /* ImportClause */: + return bindImportClause(node); + case 278 /* ExportDeclaration */: + return bindExportDeclaration(node); + case 277 /* ExportAssignment */: + return bindExportAssignment(node); + case 307 /* SourceFile */: + updateStrictModeStatementList(node.statements); + return bindSourceFileIfExternalModule(); + case 241 /* Block */: + if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { + return; + } + case 268 /* ModuleBlock */: + return updateStrictModeStatementList(node.statements); + case 341 /* JSDocParameterTag */: + if (node.parent.kind === 323 /* JSDocSignature */) { + return bindParameter(node); + } + if (node.parent.kind !== 322 /* JSDocTypeLiteral */) { + break; + } + case 348 /* JSDocPropertyTag */: + const propTag = node; + const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 316 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; + return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */); + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + return (delayedTypeAliases || (delayedTypeAliases = [])).push(node); + case 339 /* JSDocOverloadTag */: + return bind(node.typeExpression); + case 351 /* JSDocImportTag */: + return (jsDocImports || (jsDocImports = [])).push(node); + } + } + function bindPropertyWorker(node) { + const isAutoAccessor = isAutoAccessorPropertyDeclaration(node); + const includes = isAutoAccessor ? 98304 /* Accessor */ : 4 /* Property */; + const excludes = isAutoAccessor ? 13247 /* AccessorExcludes */ : 0 /* PropertyExcludes */; + return bindPropertyOrMethodOrAccessor(node, includes | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), excludes); + } + function bindAnonymousTypeWorker(node) { + return bindAnonymousDeclaration(node, 2048 /* TypeLiteral */, "__type" /* Type */); + } + function bindSourceFileIfExternalModule() { + setExportContextFlag(file); + if (isExternalModule(file)) { + bindSourceFileAsExternalModule(); + } else if (isJsonSourceFile(file)) { + bindSourceFileAsExternalModule(); + const originalSymbol = file.symbol; + declareSymbol(file.symbol.exports, file.symbol, file, 4 /* Property */, -1 /* All */); + file.symbol = originalSymbol; + } + } + function bindSourceFileAsExternalModule() { + bindAnonymousDeclaration(file, 512 /* ValueModule */, `"${removeFileExtension(file.fileName)}"`); + } + function bindExportAssignment(node) { + if (!container.symbol || !container.symbol.exports) { + bindAnonymousDeclaration(node, 111551 /* Value */, getDeclarationName(node)); + } else { + const flags = exportAssignmentIsAlias(node) ? 2097152 /* Alias */ : 4 /* Property */; + const symbol = declareSymbol(container.symbol.exports, container.symbol, node, flags, -1 /* All */); + if (node.isExportEquals) { + setValueDeclaration(symbol, node); + } + } + } + function bindNamespaceExportDeclaration(node) { + if (some(node.modifiers)) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, Diagnostics.Modifiers_cannot_appear_here)); + } + const diag2 = !isSourceFile(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_at_top_level : !isExternalModule(node.parent) ? Diagnostics.Global_module_exports_may_only_appear_in_module_files : !node.parent.isDeclarationFile ? Diagnostics.Global_module_exports_may_only_appear_in_declaration_files : void 0; + if (diag2) { + file.bindDiagnostics.push(createDiagnosticForNode2(node, diag2)); + } else { + file.symbol.globalExports = file.symbol.globalExports || createSymbolTable(); + declareSymbol(file.symbol.globalExports, file.symbol, node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); + } + } + function bindExportDeclaration(node) { + if (!container.symbol || !container.symbol.exports) { + bindAnonymousDeclaration(node, 8388608 /* ExportStar */, getDeclarationName(node)); + } else if (!node.exportClause) { + declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* ExportStar */, 0 /* None */); + } else if (isNamespaceExport(node.exportClause)) { + setParent(node.exportClause, node); + declareSymbol(container.symbol.exports, container.symbol, node.exportClause, 2097152 /* Alias */, 2097152 /* AliasExcludes */); + } + } + function bindImportClause(node) { + if (node.name) { + declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); + } + } + function setCommonJsModuleIndicator(node) { + if (file.externalModuleIndicator && file.externalModuleIndicator !== true) { + return false; + } + if (!file.commonJsModuleIndicator) { + file.commonJsModuleIndicator = node; + if (!file.externalModuleIndicator) { + bindSourceFileAsExternalModule(); + } + } + return true; + } + function bindObjectDefinePropertyExport(node) { + if (!setCommonJsModuleIndicator(node)) { + return; + } + const symbol = forEachIdentifierInEntityName( + node.arguments[0], + /*parent*/ + void 0, + (id, symbol2) => { + if (symbol2) { + addDeclarationToSymbol(symbol2, id, 1536 /* Module */ | 67108864 /* Assignment */); + } + return symbol2; + } + ); + if (symbol) { + const flags = 4 /* Property */ | 1048576 /* ExportValue */; + declareSymbol(symbol.exports, symbol, node, flags, 0 /* None */); + } + } + function bindExportsPropertyAssignment(node) { + if (!setCommonJsModuleIndicator(node)) { + return; + } + const symbol = forEachIdentifierInEntityName( + node.left.expression, + /*parent*/ + void 0, + (id, symbol2) => { + if (symbol2) { + addDeclarationToSymbol(symbol2, id, 1536 /* Module */ | 67108864 /* Assignment */); + } + return symbol2; + } + ); + if (symbol) { + const isAlias = isAliasableExpression(node.right) && (isExportsIdentifier(node.left.expression) || isModuleExportsAccessExpression(node.left.expression)); + const flags = isAlias ? 2097152 /* Alias */ : 4 /* Property */ | 1048576 /* ExportValue */; + setParent(node.left, node); + declareSymbol(symbol.exports, symbol, node.left, flags, 0 /* None */); + } + } + function bindModuleExportsAssignment(node) { + if (!setCommonJsModuleIndicator(node)) { + return; + } + const assignedExpression = getRightMostAssignedExpression(node.right); + if (isEmptyObjectLiteral(assignedExpression) || container === file && isExportsOrModuleExportsOrAlias(file, assignedExpression)) { + return; + } + if (isObjectLiteralExpression(assignedExpression) && every(assignedExpression.properties, isShorthandPropertyAssignment)) { + forEach(assignedExpression.properties, bindExportAssignedObjectMemberAlias); + return; + } + const flags = exportAssignmentIsAlias(node) ? 2097152 /* Alias */ : 4 /* Property */ | 1048576 /* ExportValue */ | 512 /* ValueModule */; + const symbol = declareSymbol(file.symbol.exports, file.symbol, node, flags | 67108864 /* Assignment */, 0 /* None */); + setValueDeclaration(symbol, node); + } + function bindExportAssignedObjectMemberAlias(node) { + declareSymbol(file.symbol.exports, file.symbol, node, 2097152 /* Alias */ | 67108864 /* Assignment */, 0 /* None */); + } + function bindThisPropertyAssignment(node) { + Debug.assert(isInJSFile(node)); + const hasPrivateIdentifier = isBinaryExpression(node) && isPropertyAccessExpression(node.left) && isPrivateIdentifier(node.left.name) || isPropertyAccessExpression(node) && isPrivateIdentifier(node.name); + if (hasPrivateIdentifier) { + return; + } + const thisContainer = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + switch (thisContainer.kind) { + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + let constructorSymbol = thisContainer.symbol; + if (isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 64 /* EqualsToken */) { + const l = thisContainer.parent.left; + if (isBindableStaticAccessExpression(l) && isPrototypeAccess(l.expression)) { + constructorSymbol = lookupSymbolForPropertyAccess(l.expression.expression, thisParentContainer); + } + } + if (constructorSymbol && constructorSymbol.valueDeclaration) { + constructorSymbol.members = constructorSymbol.members || createSymbolTable(); + if (hasDynamicName(node)) { + bindDynamicallyNamedThisPropertyAssignment(node, constructorSymbol, constructorSymbol.members); + } else { + declareSymbol(constructorSymbol.members, constructorSymbol, node, 4 /* Property */ | 67108864 /* Assignment */, 0 /* PropertyExcludes */ & ~4 /* Property */); + } + addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */); + } + break; + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: + const containingClass = thisContainer.parent; + const symbolTable = isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members; + if (hasDynamicName(node)) { + bindDynamicallyNamedThisPropertyAssignment(node, containingClass.symbol, symbolTable); + } else { + declareSymbol( + symbolTable, + containingClass.symbol, + node, + 4 /* Property */ | 67108864 /* Assignment */, + 0 /* None */, + /*isReplaceableByMethod*/ + true + ); + } + break; + case 307 /* SourceFile */: + if (hasDynamicName(node)) { + break; + } else if (thisContainer.commonJsModuleIndicator) { + declareSymbol(thisContainer.symbol.exports, thisContainer.symbol, node, 4 /* Property */ | 1048576 /* ExportValue */, 0 /* None */); + } else { + declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); + } + break; + case 267 /* ModuleDeclaration */: + break; + default: + Debug.failBadSyntaxKind(thisContainer); + } + } + function bindDynamicallyNamedThisPropertyAssignment(node, symbol, symbolTable) { + declareSymbol( + symbolTable, + symbol, + node, + 4 /* Property */, + 0 /* None */, + /*isReplaceableByMethod*/ + true, + /*isComputedName*/ + true + ); + addLateBoundAssignmentDeclarationToSymbol(node, symbol); + } + function addLateBoundAssignmentDeclarationToSymbol(node, symbol) { + if (symbol) { + (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = /* @__PURE__ */ new Map())).set(getNodeId(node), node); + } + } + function bindSpecialPropertyDeclaration(node) { + if (node.expression.kind === 110 /* ThisKeyword */) { + bindThisPropertyAssignment(node); + } else if (isBindableStaticAccessExpression(node) && node.parent.parent.kind === 307 /* SourceFile */) { + if (isPrototypeAccess(node.expression)) { + bindPrototypePropertyAssignment(node, node.parent); + } else { + bindStaticPropertyAssignment(node); + } + } + } + function bindPrototypeAssignment(node) { + setParent(node.left, node); + setParent(node.right, node); + bindPropertyAssignment( + node.left.expression, + node.left, + /*isPrototypeProperty*/ + false, + /*containerIsClass*/ + true + ); + } + function bindObjectDefinePrototypeProperty(node) { + const namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0].expression); + if (namespaceSymbol && namespaceSymbol.valueDeclaration) { + addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */); + } + bindPotentiallyNewExpandoMemberToNamespace( + node, + namespaceSymbol, + /*isPrototypeProperty*/ + true + ); + } + function bindPrototypePropertyAssignment(lhs, parent2) { + const classPrototype = lhs.expression; + const constructorFunction = classPrototype.expression; + setParent(constructorFunction, classPrototype); + setParent(classPrototype, lhs); + setParent(lhs, parent2); + bindPropertyAssignment( + constructorFunction, + lhs, + /*isPrototypeProperty*/ + true, + /*containerIsClass*/ + true + ); + } + function bindObjectDefinePropertyAssignment(node) { + let namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]); + const isToplevel = node.parent.parent.kind === 307 /* SourceFile */; + namespaceSymbol = bindPotentiallyMissingNamespaces( + namespaceSymbol, + node.arguments[0], + isToplevel, + /*isPrototypeProperty*/ + false, + /*containerIsClass*/ + false + ); + bindPotentiallyNewExpandoMemberToNamespace( + node, + namespaceSymbol, + /*isPrototypeProperty*/ + false + ); + } + function bindSpecialPropertyAssignment(node) { + var _a; + const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer) || lookupSymbolForPropertyAccess(node.left.expression, container); + if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) { + return; + } + const rootExpr = getLeftmostAccessExpression(node.left); + if (isIdentifier(rootExpr) && ((_a = lookupSymbolForName(container, rootExpr.escapedText)) == null ? void 0 : _a.flags) & 2097152 /* Alias */) { + return; + } + setParent(node.left, node); + setParent(node.right, node); + if (isIdentifier(node.left.expression) && container === file && isExportsOrModuleExportsOrAlias(file, node.left.expression)) { + bindExportsPropertyAssignment(node); + } else if (hasDynamicName(node)) { + bindAnonymousDeclaration(node, 4 /* Property */ | 67108864 /* Assignment */, "__computed" /* Computed */); + const sym = bindPotentiallyMissingNamespaces( + parentSymbol, + node.left.expression, + isTopLevelNamespaceAssignment(node.left), + /*isPrototypeProperty*/ + false, + /*containerIsClass*/ + false + ); + addLateBoundAssignmentDeclarationToSymbol(node, sym); + } else { + bindStaticPropertyAssignment(cast(node.left, isBindableStaticNameExpression)); + } + } + function bindStaticPropertyAssignment(node) { + Debug.assert(!isIdentifier(node)); + setParent(node.expression, node); + bindPropertyAssignment( + node.expression, + node, + /*isPrototypeProperty*/ + false, + /*containerIsClass*/ + false + ); + } + function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) { + if ((namespaceSymbol == null ? void 0 : namespaceSymbol.flags) & 2097152 /* Alias */) { + return namespaceSymbol; + } + if (isToplevel && !isPrototypeProperty) { + const flags = 1536 /* Module */ | 67108864 /* Assignment */; + const excludeFlags = 110735 /* ValueModuleExcludes */ & ~67108864 /* Assignment */; + namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, (id, symbol, parent2) => { + if (symbol) { + addDeclarationToSymbol(symbol, id, flags); + return symbol; + } else { + const table = parent2 ? parent2.exports : file.jsGlobalAugmentations || (file.jsGlobalAugmentations = createSymbolTable()); + return declareSymbol(table, parent2, id, flags, excludeFlags); + } + }); + } + if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) { + addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */); + } + return namespaceSymbol; + } + function bindPotentiallyNewExpandoMemberToNamespace(declaration, namespaceSymbol, isPrototypeProperty) { + if (!namespaceSymbol || !isExpandoSymbol(namespaceSymbol)) { + return; + } + const symbolTable = isPrototypeProperty ? namespaceSymbol.members || (namespaceSymbol.members = createSymbolTable()) : namespaceSymbol.exports || (namespaceSymbol.exports = createSymbolTable()); + let includes = 0 /* None */; + let excludes = 0 /* None */; + if (isFunctionLikeDeclaration(getAssignedExpandoInitializer(declaration))) { + includes = 8192 /* Method */; + excludes = 103359 /* MethodExcludes */; + } else if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) { + if (some(declaration.arguments[2].properties, (p) => { + const id = getNameOfDeclaration(p); + return !!id && isIdentifier(id) && idText(id) === "set"; + })) { + includes |= 65536 /* SetAccessor */ | 4 /* Property */; + excludes |= 78783 /* SetAccessorExcludes */; + } + if (some(declaration.arguments[2].properties, (p) => { + const id = getNameOfDeclaration(p); + return !!id && isIdentifier(id) && idText(id) === "get"; + })) { + includes |= 32768 /* GetAccessor */ | 4 /* Property */; + excludes |= 46015 /* GetAccessorExcludes */; + } + } + if (includes === 0 /* None */) { + includes = 4 /* Property */; + excludes = 0 /* PropertyExcludes */; + } + declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */); + } + function isTopLevelNamespaceAssignment(propertyAccess) { + return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 307 /* SourceFile */ : propertyAccess.parent.parent.kind === 307 /* SourceFile */; + } + function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) { + let namespaceSymbol = lookupSymbolForPropertyAccess(name, blockScopeContainer) || lookupSymbolForPropertyAccess(name, container); + const isToplevel = isTopLevelNamespaceAssignment(propertyAccess); + namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass); + bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty); + } + function isExpandoSymbol(symbol) { + if (symbol.flags & (16 /* Function */ | 32 /* Class */ | 1024 /* NamespaceModule */)) { + return true; + } + const node = symbol.valueDeclaration; + if (node && isCallExpression(node)) { + return !!getAssignedExpandoInitializer(node); + } + let init = !node ? void 0 : isVariableDeclaration(node) ? node.initializer : isBinaryExpression(node) ? node.right : isPropertyAccessExpression(node) && isBinaryExpression(node.parent) ? node.parent.right : void 0; + init = init && getRightMostAssignedExpression(init); + if (init) { + const isPrototypeAssignment = isPrototypeAccess(isVariableDeclaration(node) ? node.name : isBinaryExpression(node) ? node.left : node); + return !!getExpandoInitializer(isBinaryExpression(init) && (init.operatorToken.kind === 57 /* BarBarToken */ || init.operatorToken.kind === 61 /* QuestionQuestionToken */) ? init.right : init, isPrototypeAssignment); + } + return false; + } + function getParentOfBinaryExpression(expr) { + while (isBinaryExpression(expr.parent)) { + expr = expr.parent; + } + return expr.parent; + } + function lookupSymbolForPropertyAccess(node, lookupContainer = container) { + if (isIdentifier(node)) { + return lookupSymbolForName(lookupContainer, node.escapedText); + } else { + const symbol = lookupSymbolForPropertyAccess(node.expression); + return symbol && symbol.exports && symbol.exports.get(getElementOrPropertyAccessName(node)); + } + } + function forEachIdentifierInEntityName(e, parent2, action) { + if (isExportsOrModuleExportsOrAlias(file, e)) { + return file.symbol; + } else if (isIdentifier(e)) { + return action(e, lookupSymbolForPropertyAccess(e), parent2); + } else { + const s = forEachIdentifierInEntityName(e.expression, parent2, action); + const name = getNameOrArgument(e); + if (isPrivateIdentifier(name)) { + Debug.fail("unexpected PrivateIdentifier"); + } + return action(name, s && s.exports && s.exports.get(getElementOrPropertyAccessName(e)), s); + } + } + function bindCallExpression(node) { + if (!file.commonJsModuleIndicator && isRequireCall( + node, + /*requireStringLiteralLikeArgument*/ + false + )) { + setCommonJsModuleIndicator(node); + } + } + function bindClassLikeDeclaration(node) { + if (node.kind === 263 /* ClassDeclaration */) { + bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */); + } else { + const bindingName = node.name ? node.name.escapedText : "__class" /* Class */; + bindAnonymousDeclaration(node, 32 /* Class */, bindingName); + if (node.name) { + classifiableNames.add(node.name.escapedText); + } + } + const { symbol } = node; + const prototypeSymbol = createSymbol(4 /* Property */ | 4194304 /* Prototype */, "prototype"); + const symbolExport = symbol.exports.get(prototypeSymbol.escapedName); + if (symbolExport) { + if (node.name) { + setParent(node.name, node); + } + file.bindDiagnostics.push(createDiagnosticForNode2(symbolExport.declarations[0], Diagnostics.Duplicate_identifier_0, symbolName(prototypeSymbol))); + } + symbol.exports.set(prototypeSymbol.escapedName, prototypeSymbol); + prototypeSymbol.parent = symbol; + } + function bindEnumDeclaration(node) { + return isEnumConst(node) ? bindBlockScopedDeclaration(node, 128 /* ConstEnum */, 899967 /* ConstEnumExcludes */) : bindBlockScopedDeclaration(node, 256 /* RegularEnum */, 899327 /* RegularEnumExcludes */); + } + function bindVariableDeclarationOrBindingElement(node) { + if (inStrictMode) { + checkStrictModeEvalOrArguments(node, node.name); + } + if (!isBindingPattern(node.name)) { + const possibleVariableDecl = node.kind === 260 /* VariableDeclaration */ ? node : node.parent.parent; + if (isInJSFile(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) && !getJSDocTypeTag(node) && !(getCombinedModifierFlags(node) & 32 /* Export */)) { + declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */); + } else if (isBlockOrCatchScoped(node)) { + bindBlockScopedDeclaration(node, 2 /* BlockScopedVariable */, 111551 /* BlockScopedVariableExcludes */); + } else if (isPartOfParameterDeclaration(node)) { + declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */); + } else { + declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); + } + } + } + function bindParameter(node) { + if (node.kind === 341 /* JSDocParameterTag */ && container.kind !== 323 /* JSDocSignature */) { + return; + } + if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) { + checkStrictModeEvalOrArguments(node, node.name); + } + if (isBindingPattern(node.name)) { + bindAnonymousDeclaration(node, 1 /* FunctionScopedVariable */, "__" + node.parent.parameters.indexOf(node)); + } else { + declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */); + } + if (isParameterPropertyDeclaration(node, node.parent)) { + const classDeclaration = node.parent.parent; + declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), 0 /* PropertyExcludes */); + } + } + function bindFunctionDeclaration(node) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { + if (isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; + } + } + checkStrictModeFunctionName(node); + if (inStrictMode) { + checkStrictModeFunctionDeclaration(node); + bindBlockScopedDeclaration(node, 16 /* Function */, 110991 /* FunctionExcludes */); + } else { + declareSymbolAndAddToSymbolTable(node, 16 /* Function */, 110991 /* FunctionExcludes */); + } + } + function bindFunctionExpression(node) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */)) { + if (isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; + } + } + if (currentFlow) { + node.flowNode = currentFlow; + } + checkStrictModeFunctionName(node); + const bindingName = node.name ? node.name.escapedText : "__function" /* Function */; + return bindAnonymousDeclaration(node, 16 /* Function */, bindingName); + } + function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) { + if (!file.isDeclarationFile && !(node.flags & 33554432 /* Ambient */) && isAsyncFunction(node)) { + emitFlags |= 4096 /* HasAsyncFunctions */; + } + if (currentFlow && isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { + node.flowNode = currentFlow; + } + return hasDynamicName(node) ? bindAnonymousDeclaration(node, symbolFlags, "__computed" /* Computed */) : declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes); + } + function getInferTypeContainer(node) { + const extendsType = findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && n.parent.extendsType === n); + return extendsType && extendsType.parent; + } + function bindTypeParameter(node) { + if (isJSDocTemplateTag(node.parent)) { + const container2 = getEffectiveContainerForJSDocTemplateTag(node.parent); + if (container2) { + Debug.assertNode(container2, canHaveLocals); + container2.locals ?? (container2.locals = createSymbolTable()); + declareSymbol( + container2.locals, + /*parent*/ + void 0, + node, + 262144 /* TypeParameter */, + 526824 /* TypeParameterExcludes */ + ); + } else { + declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); + } + } else if (node.parent.kind === 195 /* InferType */) { + const container2 = getInferTypeContainer(node.parent); + if (container2) { + Debug.assertNode(container2, canHaveLocals); + container2.locals ?? (container2.locals = createSymbolTable()); + declareSymbol( + container2.locals, + /*parent*/ + void 0, + node, + 262144 /* TypeParameter */, + 526824 /* TypeParameterExcludes */ + ); + } else { + bindAnonymousDeclaration(node, 262144 /* TypeParameter */, getDeclarationName(node)); + } + } else { + declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */); + } + } + function shouldReportErrorOnModuleDeclaration(node) { + const instanceState = getModuleInstanceState(node); + return instanceState === 1 /* Instantiated */ || instanceState === 2 /* ConstEnumOnly */ && shouldPreserveConstEnums(options); + } + function checkUnreachable(node) { + if (!(currentFlow.flags & 1 /* Unreachable */)) { + return false; + } + if (currentFlow === unreachableFlow) { + const reportError = ( + // report error on all statements except empty ones + isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set + node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) + ); + if (reportError) { + currentFlow = reportedUnreachableFlow; + if (!options.allowUnreachableCode) { + const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); + eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); + } + } + } + return true; + } +} +function eachUnreachableRange(node, cb) { + if (isStatement(node) && isExecutableStatement(node) && isBlock(node.parent)) { + const { statements } = node.parent; + const slice = sliceAfter(statements, node); + getRangesWhere(slice, isExecutableStatement, (start, afterEnd) => cb(slice[start], slice[afterEnd - 1])); + } else { + cb(node, node); + } +} +function isExecutableStatement(s) { + return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); +} +function isPurelyTypeDeclaration(s) { + switch (s.kind) { + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + return true; + case 267 /* ModuleDeclaration */: + return getModuleInstanceState(s) !== 1 /* Instantiated */; + case 266 /* EnumDeclaration */: + return hasSyntacticModifier(s, 4096 /* Const */); + default: + return false; + } +} +function isExportsOrModuleExportsOrAlias(sourceFile, node) { + let i = 0; + const q = createQueue(); + q.enqueue(node); + while (!q.isEmpty() && i < 100) { + i++; + node = q.dequeue(); + if (isExportsIdentifier(node) || isModuleExportsAccessExpression(node)) { + return true; + } else if (isIdentifier(node)) { + const symbol = lookupSymbolForName(sourceFile, node.escapedText); + if (!!symbol && !!symbol.valueDeclaration && isVariableDeclaration(symbol.valueDeclaration) && !!symbol.valueDeclaration.initializer) { + const init = symbol.valueDeclaration.initializer; + q.enqueue(init); + if (isAssignmentExpression( + init, + /*excludeCompoundAssignment*/ + true + )) { + q.enqueue(init.left); + q.enqueue(init.right); + } + } + } + } + return false; +} +function getContainerFlags(node) { + switch (node.kind) { + case 231 /* ClassExpression */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 210 /* ObjectLiteralExpression */: + case 187 /* TypeLiteral */: + case 322 /* JSDocTypeLiteral */: + case 292 /* JsxAttributes */: + return 1 /* IsContainer */; + case 264 /* InterfaceDeclaration */: + return 1 /* IsContainer */ | 64 /* IsInterface */; + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 200 /* MappedType */: + case 181 /* IndexSignature */: + return 1 /* IsContainer */ | 32 /* HasLocals */; + case 307 /* SourceFile */: + return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { + return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; + } + case 176 /* Constructor */: + case 262 /* FunctionDeclaration */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 323 /* JSDocSignature */: + case 317 /* JSDocFunctionType */: + case 184 /* FunctionType */: + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + case 175 /* ClassStaticBlockDeclaration */: + return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */; + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */; + case 268 /* ModuleBlock */: + return 4 /* IsControlFlowContainer */; + case 172 /* PropertyDeclaration */: + return node.initializer ? 4 /* IsControlFlowContainer */ : 0; + case 299 /* CatchClause */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 269 /* CaseBlock */: + return 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; + case 241 /* Block */: + return isFunctionLike(node.parent) || isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */ | 32 /* HasLocals */; + } + return 0 /* None */; +} +function lookupSymbolForName(container, name) { + var _a, _b, _c, _d; + const local = (_b = (_a = tryCast(container, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name); + if (local) { + return local.exportSymbol ?? local; + } + if (isSourceFile(container) && container.jsGlobalAugmentations && container.jsGlobalAugmentations.has(name)) { + return container.jsGlobalAugmentations.get(name); + } + if (canHaveSymbol(container)) { + return (_d = (_c = container.symbol) == null ? void 0 : _c.exports) == null ? void 0 : _d.get(name); + } +} + +// src/compiler/symbolWalker.ts +function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, getFirstIdentifier2, getTypeArguments) { + return getSymbolWalker; + function getSymbolWalker(accept = () => true) { + const visitedTypes = []; + const visitedSymbols = []; + return { + walkType: (type) => { + try { + visitType(type); + return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) }; + } finally { + clear(visitedTypes); + clear(visitedSymbols); + } + }, + walkSymbol: (symbol) => { + try { + visitSymbol(symbol); + return { visitedTypes: getOwnValues(visitedTypes), visitedSymbols: getOwnValues(visitedSymbols) }; + } finally { + clear(visitedTypes); + clear(visitedSymbols); + } + } + }; + function visitType(type) { + if (!type) { + return; + } + if (visitedTypes[type.id]) { + return; + } + visitedTypes[type.id] = type; + const shouldBail = visitSymbol(type.symbol); + if (shouldBail) return; + if (type.flags & 524288 /* Object */) { + const objectType = type; + const objectFlags = objectType.objectFlags; + if (objectFlags & 4 /* Reference */) { + visitTypeReference(type); + } + if (objectFlags & 32 /* Mapped */) { + visitMappedType(type); + } + if (objectFlags & (1 /* Class */ | 2 /* Interface */)) { + visitInterfaceType(type); + } + if (objectFlags & (8 /* Tuple */ | 16 /* Anonymous */)) { + visitObjectType(objectType); + } + } + if (type.flags & 262144 /* TypeParameter */) { + visitTypeParameter(type); + } + if (type.flags & 3145728 /* UnionOrIntersection */) { + visitUnionOrIntersectionType(type); + } + if (type.flags & 4194304 /* Index */) { + visitIndexType(type); + } + if (type.flags & 8388608 /* IndexedAccess */) { + visitIndexedAccessType(type); + } + } + function visitTypeReference(type) { + visitType(type.target); + forEach(getTypeArguments(type), visitType); + } + function visitTypeParameter(type) { + visitType(getConstraintOfTypeParameter(type)); + } + function visitUnionOrIntersectionType(type) { + forEach(type.types, visitType); + } + function visitIndexType(type) { + visitType(type.type); + } + function visitIndexedAccessType(type) { + visitType(type.objectType); + visitType(type.indexType); + visitType(type.constraint); + } + function visitMappedType(type) { + visitType(type.typeParameter); + visitType(type.constraintType); + visitType(type.templateType); + visitType(type.modifiersType); + } + function visitSignature(signature) { + const typePredicate = getTypePredicateOfSignature(signature); + if (typePredicate) { + visitType(typePredicate.type); + } + forEach(signature.typeParameters, visitType); + for (const parameter of signature.parameters) { + visitSymbol(parameter); + } + visitType(getRestTypeOfSignature(signature)); + visitType(getReturnTypeOfSignature(signature)); + } + function visitInterfaceType(interfaceT) { + visitObjectType(interfaceT); + forEach(interfaceT.typeParameters, visitType); + forEach(getBaseTypes(interfaceT), visitType); + visitType(interfaceT.thisType); + } + function visitObjectType(type) { + const resolved = resolveStructuredTypeMembers(type); + for (const info of resolved.indexInfos) { + visitType(info.keyType); + visitType(info.type); + } + for (const signature of resolved.callSignatures) { + visitSignature(signature); + } + for (const signature of resolved.constructSignatures) { + visitSignature(signature); + } + for (const p of resolved.properties) { + visitSymbol(p); + } + } + function visitSymbol(symbol) { + if (!symbol) { + return false; + } + const symbolId = getSymbolId(symbol); + if (visitedSymbols[symbolId]) { + return false; + } + visitedSymbols[symbolId] = symbol; + if (!accept(symbol)) { + return true; + } + const t = getTypeOfSymbol(symbol); + visitType(t); + if (symbol.exports) { + symbol.exports.forEach(visitSymbol); + } + forEach(symbol.declarations, (d) => { + if (d.type && d.type.kind === 186 /* TypeQuery */) { + const query = d.type; + const entity = getResolvedSymbol(getFirstIdentifier2(query.exprName)); + visitSymbol(entity); + } + }); + return false; + } + } +} + +// src/compiler/moduleSpecifiers.ts +function getModuleSpecifierPreferences({ importModuleSpecifierPreference, importModuleSpecifierEnding }, compilerOptions, importingSourceFile, oldImportSpecifier) { + const filePreferredEnding = getPreferredEnding(); + return { + relativePreference: oldImportSpecifier !== void 0 ? isExternalModuleNameRelative(oldImportSpecifier) ? 0 /* Relative */ : 1 /* NonRelative */ : importModuleSpecifierPreference === "relative" ? 0 /* Relative */ : importModuleSpecifierPreference === "non-relative" ? 1 /* NonRelative */ : importModuleSpecifierPreference === "project-relative" ? 3 /* ExternalNonRelative */ : 2 /* Shortest */, + getAllowedEndingsInPreferredOrder: (syntaxImpliedNodeFormat) => { + const preferredEnding = syntaxImpliedNodeFormat !== importingSourceFile.impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; + if ((syntaxImpliedNodeFormat ?? importingSourceFile.impliedNodeFormat) === 99 /* ESNext */) { + if (shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName)) { + return [3 /* TsExtension */, 2 /* JsExtension */]; + } + return [2 /* JsExtension */]; + } + if (getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */) { + return preferredEnding === 2 /* JsExtension */ ? [2 /* JsExtension */, 1 /* Index */] : [1 /* Index */, 2 /* JsExtension */]; + } + const allowImportingTsExtension = shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName); + switch (preferredEnding) { + case 2 /* JsExtension */: + return allowImportingTsExtension ? [2 /* JsExtension */, 3 /* TsExtension */, 0 /* Minimal */, 1 /* Index */] : [2 /* JsExtension */, 0 /* Minimal */, 1 /* Index */]; + case 3 /* TsExtension */: + return [3 /* TsExtension */, 0 /* Minimal */, 2 /* JsExtension */, 1 /* Index */]; + case 1 /* Index */: + return allowImportingTsExtension ? [1 /* Index */, 0 /* Minimal */, 3 /* TsExtension */, 2 /* JsExtension */] : [1 /* Index */, 0 /* Minimal */, 2 /* JsExtension */]; + case 0 /* Minimal */: + return allowImportingTsExtension ? [0 /* Minimal */, 1 /* Index */, 3 /* TsExtension */, 2 /* JsExtension */] : [0 /* Minimal */, 1 /* Index */, 2 /* JsExtension */]; + default: + Debug.assertNever(preferredEnding); + } + } + }; + function getPreferredEnding(resolutionMode) { + if (oldImportSpecifier !== void 0) { + if (hasJSFileExtension(oldImportSpecifier)) return 2 /* JsExtension */; + if (endsWith(oldImportSpecifier, "/index")) return 1 /* Index */; + } + return getModuleSpecifierEndingPreference( + importModuleSpecifierEnding, + resolutionMode ?? importingSourceFile.impliedNodeFormat, + compilerOptions, + isFullSourceFile(importingSourceFile) ? importingSourceFile : void 0 + ); + } +} +function tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences, options = {}) { + var _a; + const moduleSourceFile = getSourceFileOfModule(moduleSymbol); + if (!moduleSourceFile) { + return emptyArray; + } + const cache = (_a = host.getModuleSpecifierCache) == null ? void 0 : _a.call(host); + const cached = cache == null ? void 0 : cache.get(importingSourceFile.path, moduleSourceFile.path, userPreferences, options); + return [cached == null ? void 0 : cached.kind, cached == null ? void 0 : cached.moduleSpecifiers, moduleSourceFile, cached == null ? void 0 : cached.modulePaths, cache]; +} +function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) { + return getModuleSpecifiersWithCacheInfo( + moduleSymbol, + checker, + compilerOptions, + importingSourceFile, + host, + userPreferences, + options, + /*forAutoImport*/ + false + ).moduleSpecifiers; +} +function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { + let computedWithoutCache = false; + const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker); + if (ambient) return { kind: "ambient", moduleSpecifiers: [ambient], computedWithoutCache }; + let [kind, specifiers, moduleSourceFile, modulePaths, cache] = tryGetModuleSpecifiersFromCacheWorker( + moduleSymbol, + importingSourceFile, + host, + userPreferences, + options + ); + if (specifiers) return { kind, moduleSpecifiers: specifiers, computedWithoutCache }; + if (!moduleSourceFile) return { kind: void 0, moduleSpecifiers: emptyArray, computedWithoutCache }; + computedWithoutCache = true; + modulePaths || (modulePaths = getAllModulePathsWorker(getInfo(importingSourceFile.fileName, host), moduleSourceFile.originalFileName, host, compilerOptions, options)); + const result = computeModuleSpecifiers( + modulePaths, + compilerOptions, + importingSourceFile, + host, + userPreferences, + options, + forAutoImport + ); + cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, result.kind, modulePaths, result.moduleSpecifiers); + return result; +} +function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { + const info = getInfo(importingSourceFile.fileName, host); + const preferences = getModuleSpecifierPreferences(userPreferences, compilerOptions, importingSourceFile); + const existingSpecifier = isFullSourceFile(importingSourceFile) && forEach(modulePaths, (modulePath) => forEach( + host.getFileIncludeReasons().get(toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), + (reason) => { + if (reason.kind !== 3 /* Import */ || reason.file !== importingSourceFile.path) return void 0; + if (importingSourceFile.impliedNodeFormat && importingSourceFile.impliedNodeFormat !== getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions)) return void 0; + const specifier = getModuleNameStringLiteralAt(importingSourceFile, reason.index).text; + return preferences.relativePreference !== 1 /* NonRelative */ || !pathIsRelative(specifier) ? specifier : void 0; + } + )); + if (existingSpecifier) { + return { kind: void 0, moduleSpecifiers: [existingSpecifier], computedWithoutCache: true }; + } + const importedFileIsInNodeModules = some(modulePaths, (p) => p.isInNodeModules); + let nodeModulesSpecifiers; + let pathsSpecifiers; + let redirectPathsSpecifiers; + let relativeSpecifiers; + for (const modulePath of modulePaths) { + const specifier = modulePath.isInNodeModules ? tryGetModuleNameAsNodeModule( + modulePath, + info, + importingSourceFile, + host, + compilerOptions, + userPreferences, + /*packageNameOnly*/ + void 0, + options.overrideImportMode + ) : void 0; + nodeModulesSpecifiers = append(nodeModulesSpecifiers, specifier); + if (specifier && modulePath.isRedirect) { + return { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true }; + } + if (!specifier) { + const local = getLocalModuleSpecifier( + modulePath.path, + info, + compilerOptions, + host, + options.overrideImportMode || importingSourceFile.impliedNodeFormat, + preferences, + /*pathsOnly*/ + modulePath.isRedirect + ); + if (!local) { + continue; + } + if (modulePath.isRedirect) { + redirectPathsSpecifiers = append(redirectPathsSpecifiers, local); + } else if (pathIsBareSpecifier(local)) { + if (pathContainsNodeModules(local)) { + relativeSpecifiers = append(relativeSpecifiers, local); + } else { + pathsSpecifiers = append(pathsSpecifiers, local); + } + } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) { + relativeSpecifiers = append(relativeSpecifiers, local); + } + } + } + return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? { kind: "paths", moduleSpecifiers: pathsSpecifiers, computedWithoutCache: true } : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? { kind: "redirect", moduleSpecifiers: redirectPathsSpecifiers, computedWithoutCache: true } : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true } : { kind: "relative", moduleSpecifiers: Debug.checkDefined(relativeSpecifiers), computedWithoutCache: true }; +} +function getInfo(importingSourceFileName, host) { + importingSourceFileName = getNormalizedAbsolutePath(importingSourceFileName, host.getCurrentDirectory()); + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true); + const sourceDirectory = getDirectoryPath(importingSourceFileName); + return { + getCanonicalFileName, + importingSourceFileName, + sourceDirectory, + canonicalSourceDirectory: getCanonicalFileName(sourceDirectory) + }; +} +function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { getAllowedEndingsInPreferredOrder: getAllowedEndingsInPrefererredOrder, relativePreference }, pathsOnly) { + const { baseUrl, paths, rootDirs } = compilerOptions; + if (pathsOnly && !paths) { + return void 0; + } + const { sourceDirectory, canonicalSourceDirectory, getCanonicalFileName } = info; + const allowedEndings = getAllowedEndingsInPrefererredOrder(importMode); + const relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) || processEnding(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), allowedEndings, compilerOptions); + if (!baseUrl && !paths && !getResolvePackageJsonImports(compilerOptions) || relativePreference === 0 /* Relative */) { + return pathsOnly ? void 0 : relativePath; + } + const baseDirectory = getNormalizedAbsolutePath(getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory()); + const relativeToBaseUrl = getRelativePathIfInSameVolume(moduleFileName, baseDirectory, getCanonicalFileName); + if (!relativeToBaseUrl) { + return pathsOnly ? void 0 : relativePath; + } + const fromPackageJsonImports = pathsOnly ? void 0 : tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, compilerOptions, host, importMode); + const fromPaths = pathsOnly || fromPackageJsonImports === void 0 ? paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions) : void 0; + if (pathsOnly) { + return fromPaths; + } + const maybeNonRelative = fromPackageJsonImports ?? (fromPaths === void 0 && baseUrl !== void 0 ? processEnding(relativeToBaseUrl, allowedEndings, compilerOptions) : fromPaths); + if (!maybeNonRelative) { + return relativePath; + } + if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) { + return maybeNonRelative; + } + if (relativePreference === 3 /* ExternalNonRelative */ && !pathIsRelative(maybeNonRelative)) { + const projectDirectory = compilerOptions.configFilePath ? toPath(getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) : info.getCanonicalFileName(host.getCurrentDirectory()); + const modulePath = toPath(moduleFileName, projectDirectory, getCanonicalFileName); + const sourceIsInternal = startsWith(canonicalSourceDirectory, projectDirectory); + const targetIsInternal = startsWith(modulePath, projectDirectory); + if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) { + return maybeNonRelative; + } + const nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, getDirectoryPath(modulePath)); + const nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory); + const ignoreCase = !hostUsesCaseSensitiveFileNames(host); + if (!packageJsonPathsAreEqual(nearestTargetPackageJson, nearestSourcePackageJson, ignoreCase)) { + return maybeNonRelative; + } + return relativePath; + } + return isPathRelativeToParent(maybeNonRelative) || countPathComponents(relativePath) < countPathComponents(maybeNonRelative) ? relativePath : maybeNonRelative; +} +function packageJsonPathsAreEqual(a, b, ignoreCase) { + if (a === b) return true; + if (a === void 0 || b === void 0) return false; + return comparePaths(a, b, ignoreCase) === 0 /* EqualTo */; +} +function countPathComponents(path) { + let count = 0; + for (let i = startsWith(path, "./") ? 2 : 0; i < path.length; i++) { + if (path.charCodeAt(i) === 47 /* slash */) count++; + } + return count; +} +function comparePathsByRedirectAndNumberOfDirectorySeparators(a, b) { + return compareBooleans(b.isRedirect, a.isRedirect) || compareNumberOfDirectorySeparators(a.path, b.path); +} +function getNearestAncestorDirectoryWithPackageJson(host, fileName) { + if (host.getNearestAncestorDirectoryWithPackageJson) { + return host.getNearestAncestorDirectoryWithPackageJson(fileName); + } + return forEachAncestorDirectory(fileName, (directory) => { + return host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0; + }); +} +function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) { + var _a; + const getCanonicalFileName = hostGetCanonicalFileName(host); + const cwd = host.getCurrentDirectory(); + const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0; + const importedPath = toPath(importedFileName, cwd, getCanonicalFileName); + const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray; + const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects]; + const targets = importedFileNames.map((f) => getNormalizedAbsolutePath(f, cwd)); + let shouldFilterIgnoredPaths = !every(targets, containsIgnoredPath); + if (!preferSymlinks) { + const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p)); + if (result2) return result2; + } + const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath(); + const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd); + const result = symlinkedDirectories && forEachAncestorDirectory(getDirectoryPath(fullImportedFileName), (realPathDirectory) => { + const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath(realPathDirectory, cwd, getCanonicalFileName))); + if (!symlinkDirectories) return void 0; + if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) { + return false; + } + return forEach(targets, (target) => { + if (!startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) { + return; + } + const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName); + for (const symlinkDirectory of symlinkDirectories) { + const option = resolvePath(symlinkDirectory, relative); + const result2 = cb(option, target === referenceRedirect); + shouldFilterIgnoredPaths = true; + if (result2) return result2; + } + }); + }); + return result || (preferSymlinks ? forEach(targets, (p) => shouldFilterIgnoredPaths && containsIgnoredPath(p) ? void 0 : cb(p, p === referenceRedirect)) : void 0); +} +var runtimeDependencyFields = ["dependencies", "peerDependencies", "optionalDependencies"]; +function getAllRuntimeDependencies(packageJson) { + let result; + for (const field of runtimeDependencyFields) { + const deps = packageJson[field]; + if (deps && typeof deps === "object") { + result = concatenate(result, getOwnKeys(deps)); + } + } + return result; +} +function getAllModulePathsWorker(info, importedFileName, host, compilerOptions, options) { + var _a, _b; + const cache = (_a = host.getModuleResolutionCache) == null ? void 0 : _a.call(host); + const links = (_b = host.getSymlinkCache) == null ? void 0 : _b.call(host); + if (cache && links && host.readFile && !pathContainsNodeModules(info.importingSourceFileName)) { + Debug.type(host); + const state = getTemporaryModuleResolutionState(cache.getPackageJsonInfoCache(), host, {}); + const packageJson = getPackageScopeForPath(info.importingSourceFileName, state); + if (packageJson) { + const toResolve = getAllRuntimeDependencies(packageJson.contents.packageJsonContent); + for (const depName of toResolve || emptyArray) { + const resolved = resolveModuleName( + depName, + combinePaths(packageJson.packageDirectory, "package.json"), + compilerOptions, + host, + cache, + /*redirectedReference*/ + void 0, + options.overrideImportMode + ); + links.setSymlinksFromResolution(resolved.resolvedModule); + } + } + } + const allFileNames = /* @__PURE__ */ new Map(); + let importedFileFromNodeModules = false; + forEachFileNameOfModule( + info.importingSourceFileName, + importedFileName, + host, + /*preferSymlinks*/ + true, + (path, isRedirect) => { + const isInNodeModules = pathContainsNodeModules(path); + allFileNames.set(path, { path: info.getCanonicalFileName(path), isRedirect, isInNodeModules }); + importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules; + } + ); + const sortedPaths = []; + for (let directory = info.canonicalSourceDirectory; allFileNames.size !== 0; ) { + const directoryStart = ensureTrailingDirectorySeparator(directory); + let pathsInDirectory; + allFileNames.forEach(({ path, isRedirect, isInNodeModules }, fileName) => { + if (startsWith(path, directoryStart)) { + (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect, isInNodeModules }); + allFileNames.delete(fileName); + } + }); + if (pathsInDirectory) { + if (pathsInDirectory.length > 1) { + pathsInDirectory.sort(comparePathsByRedirectAndNumberOfDirectorySeparators); + } + sortedPaths.push(...pathsInDirectory); + } + const newDirectory = getDirectoryPath(directory); + if (newDirectory === directory) break; + directory = newDirectory; + } + if (allFileNames.size) { + const remainingPaths = arrayFrom( + allFileNames.entries(), + ([fileName, { isRedirect, isInNodeModules }]) => ({ path: fileName, isRedirect, isInNodeModules }) + ); + if (remainingPaths.length > 1) remainingPaths.sort(comparePathsByRedirectAndNumberOfDirectorySeparators); + sortedPaths.push(...remainingPaths); + } + return sortedPaths; +} +function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) { + var _a; + const decl = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find( + (d) => isNonGlobalAmbientModule(d) && (!isExternalModuleAugmentation(d) || !isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(d.name))) + ); + if (decl) { + return decl.name.text; + } + const ambientModuleDeclareCandidates = mapDefined(moduleSymbol.declarations, (d) => { + var _a2, _b, _c, _d; + if (!isModuleDeclaration(d)) return; + const topNamespace = getTopNamespace(d); + if (!(((_a2 = topNamespace == null ? void 0 : topNamespace.parent) == null ? void 0 : _a2.parent) && isModuleBlock(topNamespace.parent) && isAmbientModule(topNamespace.parent.parent) && isSourceFile(topNamespace.parent.parent.parent))) return; + const exportAssignment = (_d = (_c = (_b = topNamespace.parent.parent.symbol.exports) == null ? void 0 : _b.get("export=")) == null ? void 0 : _c.valueDeclaration) == null ? void 0 : _d.expression; + if (!exportAssignment) return; + const exportSymbol = checker.getSymbolAtLocation(exportAssignment); + if (!exportSymbol) return; + const originalExportSymbol = (exportSymbol == null ? void 0 : exportSymbol.flags) & 2097152 /* Alias */ ? checker.getAliasedSymbol(exportSymbol) : exportSymbol; + if (originalExportSymbol === d.symbol) return topNamespace.parent.parent; + function getTopNamespace(namespaceDeclaration) { + while (namespaceDeclaration.flags & 8 /* NestedNamespace */) { + namespaceDeclaration = namespaceDeclaration.parent; + } + return namespaceDeclaration; + } + }); + const ambientModuleDeclare = ambientModuleDeclareCandidates[0]; + if (ambientModuleDeclare) { + return ambientModuleDeclare.name.text; + } +} +function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions) { + for (const key in paths) { + for (const patternText2 of paths[key]) { + const pattern = normalizePath(patternText2); + const indexOfStar = pattern.indexOf("*"); + const candidates = allowedEndings.map((ending) => ({ + ending, + value: processEnding(relativeToBaseUrl, [ending], compilerOptions) + })); + if (tryGetExtensionFromPath2(pattern)) { + candidates.push({ ending: void 0, value: relativeToBaseUrl }); + } + if (indexOfStar !== -1) { + const prefix = pattern.substring(0, indexOfStar); + const suffix = pattern.substring(indexOfStar + 1); + for (const { ending, value } of candidates) { + if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) { + const matchedStar = value.substring(prefix.length, value.length - suffix.length); + if (!pathIsRelative(matchedStar)) { + return replaceFirstStar(key, matchedStar); + } + } + } + } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) { + return key; + } + } + } + function validateEnding({ ending, value }) { + return ending !== 0 /* Minimal */ || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host); + } +} +function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions, mode, isImports) { + if (typeof exports2 === "string") { + const ignoreCase = !hostUsesCaseSensitiveFileNames(host); + const getCommonSourceDirectory2 = () => host.getCommonSourceDirectory(); + const outputFile = isImports && getOutputJSFileNameWorker(targetFilePath, options, ignoreCase, getCommonSourceDirectory2); + const declarationFile = isImports && getOutputDeclarationFileNameWorker(targetFilePath, options, ignoreCase, getCommonSourceDirectory2); + const pathOrPattern = getNormalizedAbsolutePath( + combinePaths(packageDirectory, exports2), + /*currentDirectory*/ + void 0 + ); + const extensionSwappedTarget = hasTSFileExtension(targetFilePath) ? removeFileExtension(targetFilePath) + tryGetJSExtensionForFile(targetFilePath, options) : void 0; + switch (mode) { + case 0 /* Exact */: + if (extensionSwappedTarget && comparePaths(extensionSwappedTarget, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || comparePaths(targetFilePath, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || outputFile && comparePaths(outputFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || declarationFile && comparePaths(declarationFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */) { + return { moduleFileToTry: packageName }; + } + break; + case 1 /* Directory */: + if (extensionSwappedTarget && containsPath(pathOrPattern, extensionSwappedTarget, ignoreCase)) { + const fragment = getRelativePathFromDirectory( + pathOrPattern, + extensionSwappedTarget, + /*ignoreCase*/ + false + ); + return { moduleFileToTry: getNormalizedAbsolutePath( + combinePaths(combinePaths(packageName, exports2), fragment), + /*currentDirectory*/ + void 0 + ) }; + } + if (containsPath(pathOrPattern, targetFilePath, ignoreCase)) { + const fragment = getRelativePathFromDirectory( + pathOrPattern, + targetFilePath, + /*ignoreCase*/ + false + ); + return { moduleFileToTry: getNormalizedAbsolutePath( + combinePaths(combinePaths(packageName, exports2), fragment), + /*currentDirectory*/ + void 0 + ) }; + } + if (outputFile && containsPath(pathOrPattern, outputFile, ignoreCase)) { + const fragment = getRelativePathFromDirectory( + pathOrPattern, + outputFile, + /*ignoreCase*/ + false + ); + return { moduleFileToTry: combinePaths(packageName, fragment) }; + } + if (declarationFile && containsPath(pathOrPattern, declarationFile, ignoreCase)) { + const fragment = getRelativePathFromDirectory( + pathOrPattern, + declarationFile, + /*ignoreCase*/ + false + ); + return { moduleFileToTry: combinePaths(packageName, fragment) }; + } + break; + case 2 /* Pattern */: + const starPos = pathOrPattern.indexOf("*"); + const leadingSlice = pathOrPattern.slice(0, starPos); + const trailingSlice = pathOrPattern.slice(starPos + 1); + if (extensionSwappedTarget && startsWith(extensionSwappedTarget, leadingSlice, ignoreCase) && endsWith(extensionSwappedTarget, trailingSlice, ignoreCase)) { + const starReplacement = extensionSwappedTarget.slice(leadingSlice.length, extensionSwappedTarget.length - trailingSlice.length); + return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; + } + if (startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { + const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length); + return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; + } + if (outputFile && startsWith(outputFile, leadingSlice, ignoreCase) && endsWith(outputFile, trailingSlice, ignoreCase)) { + const starReplacement = outputFile.slice(leadingSlice.length, outputFile.length - trailingSlice.length); + return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; + } + if (declarationFile && startsWith(declarationFile, leadingSlice, ignoreCase) && endsWith(declarationFile, trailingSlice, ignoreCase)) { + const starReplacement = declarationFile.slice(leadingSlice.length, declarationFile.length - trailingSlice.length); + return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; + } + break; + } + } else if (Array.isArray(exports2)) { + return forEach(exports2, (e) => tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, e, conditions, mode, isImports)); + } else if (typeof exports2 === "object" && exports2 !== null) { + for (const key of getOwnKeys(exports2)) { + if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { + const subTarget = exports2[key]; + const result = tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode, isImports); + if (result) { + return result; + } + } + } + } + return void 0; +} +function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions) { + if (typeof exports2 === "object" && exports2 !== null && !Array.isArray(exports2) && allKeysStartWithDot(exports2)) { + return forEach(getOwnKeys(exports2), (k) => { + const subPackageName = getNormalizedAbsolutePath( + combinePaths(packageName, k), + /*currentDirectory*/ + void 0 + ); + const mode = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */; + return tryGetModuleNameFromExportsOrImports( + options, + host, + targetFilePath, + packageDirectory, + subPackageName, + exports2[k], + conditions, + mode, + /*isImports*/ + false + ); + }); + } + return tryGetModuleNameFromExportsOrImports( + options, + host, + targetFilePath, + packageDirectory, + packageName, + exports2, + conditions, + 0 /* Exact */, + /*isImports*/ + false + ); +} +function tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, options, host, importMode) { + var _a, _b, _c; + if (!host.readFile || !getResolvePackageJsonImports(options)) { + return void 0; + } + const ancestorDirectoryWithPackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory); + if (!ancestorDirectoryWithPackageJson) { + return void 0; + } + const packageJsonPath = combinePaths(ancestorDirectoryWithPackageJson, "package.json"); + const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); + if (isMissingPackageJsonInfo(cachedPackageJson) || !host.fileExists(packageJsonPath)) { + return void 0; + } + const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || tryParseJson(host.readFile(packageJsonPath)); + const imports = packageJsonContent == null ? void 0 : packageJsonContent.imports; + if (!imports) { + return void 0; + } + const conditions = getConditions(options, importMode); + return (_c = forEach(getOwnKeys(imports), (k) => { + if (!startsWith(k, "#") || k === "#" || startsWith(k, "#/")) return void 0; + const mode = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */; + return tryGetModuleNameFromExportsOrImports( + options, + host, + moduleFileName, + ancestorDirectoryWithPackageJson, + k, + imports[k], + conditions, + mode, + /*isImports*/ + true + ); + })) == null ? void 0 : _c.moduleFileToTry; +} +function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, allowedEndings, compilerOptions) { + const normalizedTargetPaths = getPathsRelativeToRootDirs(moduleFileName, rootDirs, getCanonicalFileName); + if (normalizedTargetPaths === void 0) { + return void 0; + } + const normalizedSourcePaths = getPathsRelativeToRootDirs(sourceDirectory, rootDirs, getCanonicalFileName); + const relativePaths = flatMap(normalizedSourcePaths, (sourcePath) => { + return map(normalizedTargetPaths, (targetPath) => ensurePathIsNonModuleName(getRelativePathFromDirectory(sourcePath, targetPath, getCanonicalFileName))); + }); + const shortest = min(relativePaths, compareNumberOfDirectorySeparators); + if (!shortest) { + return void 0; + } + return processEnding(shortest, allowedEndings, compilerOptions); +} +function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileName, canonicalSourceDirectory }, importingSourceFile, host, options, userPreferences, packageNameOnly, overrideMode) { + if (!host.fileExists || !host.readFile) { + return void 0; + } + const parts = getNodeModulePathParts(path); + if (!parts) { + return void 0; + } + const preferences = getModuleSpecifierPreferences(userPreferences, options, importingSourceFile); + const allowedEndings = preferences.getAllowedEndingsInPreferredOrder(); + let moduleSpecifier = path; + let isPackageRootPath = false; + if (!packageNameOnly) { + let packageRootIndex = parts.packageRootIndex; + let moduleFileName; + while (true) { + const { moduleFileToTry, packageRootPath, blockedByExports, verbatimFromExports } = tryDirectoryWithPackageJson(packageRootIndex); + if (getEmitModuleResolutionKind(options) !== 1 /* Classic */) { + if (blockedByExports) { + return void 0; + } + if (verbatimFromExports) { + return moduleFileToTry; + } + } + if (packageRootPath) { + moduleSpecifier = packageRootPath; + isPackageRootPath = true; + break; + } + if (!moduleFileName) moduleFileName = moduleFileToTry; + packageRootIndex = path.indexOf(directorySeparator, packageRootIndex + 1); + if (packageRootIndex === -1) { + moduleSpecifier = processEnding(moduleFileName, allowedEndings, options, host); + break; + } + } + } + if (isRedirect && !isPackageRootPath) { + return void 0; + } + const globalTypingsCacheLocation = host.getGlobalTypingsCacheLocation && host.getGlobalTypingsCacheLocation(); + const pathToTopLevelNodeModules = getCanonicalFileName(moduleSpecifier.substring(0, parts.topLevelNodeModulesIndex)); + if (!(startsWith(canonicalSourceDirectory, pathToTopLevelNodeModules) || globalTypingsCacheLocation && startsWith(getCanonicalFileName(globalTypingsCacheLocation), pathToTopLevelNodeModules))) { + return void 0; + } + const nodeModulesDirectoryName = moduleSpecifier.substring(parts.topLevelPackageNameIndex + 1); + const packageName = getPackageNameFromTypesPackageName(nodeModulesDirectoryName); + return getEmitModuleResolutionKind(options) === 1 /* Classic */ && packageName === nodeModulesDirectoryName ? void 0 : packageName; + function tryDirectoryWithPackageJson(packageRootIndex) { + var _a, _b; + const packageRootPath = path.substring(0, packageRootIndex); + const packageJsonPath = combinePaths(packageRootPath, "package.json"); + let moduleFileToTry = path; + let maybeBlockedByTypesVersions = false; + const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); + if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) { + const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || tryParseJson(host.readFile(packageJsonPath)); + const importMode = overrideMode || importingSourceFile.impliedNodeFormat; + if (getResolvePackageJsonExports(options)) { + const nodeModulesDirectoryName2 = packageRootPath.substring(parts.topLevelPackageNameIndex + 1); + const packageName2 = getPackageNameFromTypesPackageName(nodeModulesDirectoryName2); + const conditions = getConditions(options, importMode); + const fromExports = (packageJsonContent == null ? void 0 : packageJsonContent.exports) ? tryGetModuleNameFromExports(options, host, path, packageRootPath, packageName2, packageJsonContent.exports, conditions) : void 0; + if (fromExports) { + return { ...fromExports, verbatimFromExports: true }; + } + if (packageJsonContent == null ? void 0 : packageJsonContent.exports) { + return { moduleFileToTry: path, blockedByExports: true }; + } + } + const versionPaths = (packageJsonContent == null ? void 0 : packageJsonContent.typesVersions) ? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions) : void 0; + if (versionPaths) { + const subModuleName = path.slice(packageRootPath.length + 1); + const fromPaths = tryGetModuleNameFromPaths( + subModuleName, + versionPaths.paths, + allowedEndings, + host, + options + ); + if (fromPaths === void 0) { + maybeBlockedByTypesVersions = true; + } else { + moduleFileToTry = combinePaths(packageRootPath, fromPaths); + } + } + const mainFileRelative = (packageJsonContent == null ? void 0 : packageJsonContent.typings) || (packageJsonContent == null ? void 0 : packageJsonContent.types) || (packageJsonContent == null ? void 0 : packageJsonContent.main) || "index.js"; + if (isString(mainFileRelative) && !(maybeBlockedByTypesVersions && matchPatternOrExact(tryParsePatterns(versionPaths.paths), mainFileRelative))) { + const mainExportFile = toPath(mainFileRelative, packageRootPath, getCanonicalFileName); + const canonicalModuleFileToTry = getCanonicalFileName(moduleFileToTry); + if (removeFileExtension(mainExportFile) === removeFileExtension(canonicalModuleFileToTry)) { + return { packageRootPath, moduleFileToTry }; + } else if ((packageJsonContent == null ? void 0 : packageJsonContent.type) !== "module" && !fileExtensionIsOneOf(canonicalModuleFileToTry, extensionsNotSupportingExtensionlessResolution) && startsWith(canonicalModuleFileToTry, mainExportFile) && getDirectoryPath(canonicalModuleFileToTry) === removeTrailingDirectorySeparator(mainExportFile) && removeFileExtension(getBaseFileName(canonicalModuleFileToTry)) === "index") { + return { packageRootPath, moduleFileToTry }; + } + } + } else { + const fileName = getCanonicalFileName(moduleFileToTry.substring(parts.packageRootIndex + 1)); + if (fileName === "index.d.ts" || fileName === "index.js" || fileName === "index.ts" || fileName === "index.tsx") { + return { moduleFileToTry, packageRootPath }; + } + } + return { moduleFileToTry }; + } +} +function tryGetAnyFileFromPath(host, path) { + if (!host.fileExists) return; + const extensions = flatten(getSupportedExtensions({ allowJs: true }, [{ extension: "node", isMixedContent: false }, { extension: "json", isMixedContent: false, scriptKind: 6 /* JSON */ }])); + for (const e of extensions) { + const fullPath = path + e; + if (host.fileExists(fullPath)) { + return fullPath; + } + } +} +function getPathsRelativeToRootDirs(path, rootDirs, getCanonicalFileName) { + return mapDefined(rootDirs, (rootDir) => { + const relativePath = getRelativePathIfInSameVolume(path, rootDir, getCanonicalFileName); + return relativePath !== void 0 && isPathRelativeToParent(relativePath) ? void 0 : relativePath; + }); +} +function processEnding(fileName, allowedEndings, options, host) { + if (fileExtensionIsOneOf(fileName, [".json" /* Json */, ".mjs" /* Mjs */, ".cjs" /* Cjs */])) { + return fileName; + } + const noExtension = removeFileExtension(fileName); + if (fileName === noExtension) { + return fileName; + } + const jsPriority = allowedEndings.indexOf(2 /* JsExtension */); + const tsPriority = allowedEndings.indexOf(3 /* TsExtension */); + if (fileExtensionIsOneOf(fileName, [".mts" /* Mts */, ".cts" /* Cts */]) && tsPriority !== -1 && tsPriority < jsPriority) { + return fileName; + } else if (fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".d.cts" /* Dcts */, ".cts" /* Cts */])) { + return noExtension + getJSExtensionForFile(fileName, options); + } else if (!fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */]) && fileExtensionIsOneOf(fileName, [".ts" /* Ts */]) && fileName.includes(".d.")) { + return tryGetRealFileNameForNonJsDeclarationFileName(fileName); + } + switch (allowedEndings[0]) { + case 0 /* Minimal */: + const withoutIndex = removeSuffix(noExtension, "/index"); + if (host && withoutIndex !== noExtension && tryGetAnyFileFromPath(host, withoutIndex)) { + return noExtension; + } + return withoutIndex; + case 1 /* Index */: + return noExtension; + case 2 /* JsExtension */: + return noExtension + getJSExtensionForFile(fileName, options); + case 3 /* TsExtension */: + if (isDeclarationFileName(fileName)) { + const extensionlessPriority = allowedEndings.findIndex((e) => e === 0 /* Minimal */ || e === 1 /* Index */); + return extensionlessPriority !== -1 && extensionlessPriority < jsPriority ? noExtension : noExtension + getJSExtensionForFile(fileName, options); + } + return fileName; + default: + return Debug.assertNever(allowedEndings[0]); + } +} +function tryGetRealFileNameForNonJsDeclarationFileName(fileName) { + const baseName = getBaseFileName(fileName); + if (!endsWith(fileName, ".ts" /* Ts */) || !baseName.includes(".d.") || fileExtensionIsOneOf(baseName, [".d.ts" /* Dts */])) return void 0; + const noExtension = removeExtension(fileName, ".ts" /* Ts */); + const ext = noExtension.substring(noExtension.lastIndexOf(".")); + return noExtension.substring(0, noExtension.indexOf(".d.")) + ext; +} +function getJSExtensionForFile(fileName, options) { + return tryGetJSExtensionForFile(fileName, options) ?? Debug.fail(`Extension ${extensionFromPath(fileName)} is unsupported:: FileName:: ${fileName}`); +} +function tryGetJSExtensionForFile(fileName, options) { + const ext = tryGetExtensionFromPath2(fileName); + switch (ext) { + case ".ts" /* Ts */: + case ".d.ts" /* Dts */: + return ".js" /* Js */; + case ".tsx" /* Tsx */: + return options.jsx === 1 /* Preserve */ ? ".jsx" /* Jsx */ : ".js" /* Js */; + case ".js" /* Js */: + case ".jsx" /* Jsx */: + case ".json" /* Json */: + return ext; + case ".d.mts" /* Dmts */: + case ".mts" /* Mts */: + case ".mjs" /* Mjs */: + return ".mjs" /* Mjs */; + case ".d.cts" /* Dcts */: + case ".cts" /* Cts */: + case ".cjs" /* Cjs */: + return ".cjs" /* Cjs */; + default: + return void 0; + } +} +function getRelativePathIfInSameVolume(path, directoryPath, getCanonicalFileName) { + const relativePath = getRelativePathToDirectoryOrUrl( + directoryPath, + path, + directoryPath, + getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + false + ); + return isRootedDiskPath(relativePath) ? void 0 : relativePath; +} +function isPathRelativeToParent(path) { + return startsWith(path, ".."); +} + +// src/compiler/checker.ts +var ambientModuleSymbolRegex = /^".+"$/; +var anon = "(anonymous)"; +var nextSymbolId = 1; +var nextNodeId = 1; +var nextMergeId = 1; +var nextFlowId = 1; +var TypeFacts = /* @__PURE__ */ ((TypeFacts3) => { + TypeFacts3[TypeFacts3["None"] = 0] = "None"; + TypeFacts3[TypeFacts3["TypeofEQString"] = 1] = "TypeofEQString"; + TypeFacts3[TypeFacts3["TypeofEQNumber"] = 2] = "TypeofEQNumber"; + TypeFacts3[TypeFacts3["TypeofEQBigInt"] = 4] = "TypeofEQBigInt"; + TypeFacts3[TypeFacts3["TypeofEQBoolean"] = 8] = "TypeofEQBoolean"; + TypeFacts3[TypeFacts3["TypeofEQSymbol"] = 16] = "TypeofEQSymbol"; + TypeFacts3[TypeFacts3["TypeofEQObject"] = 32] = "TypeofEQObject"; + TypeFacts3[TypeFacts3["TypeofEQFunction"] = 64] = "TypeofEQFunction"; + TypeFacts3[TypeFacts3["TypeofEQHostObject"] = 128] = "TypeofEQHostObject"; + TypeFacts3[TypeFacts3["TypeofNEString"] = 256] = "TypeofNEString"; + TypeFacts3[TypeFacts3["TypeofNENumber"] = 512] = "TypeofNENumber"; + TypeFacts3[TypeFacts3["TypeofNEBigInt"] = 1024] = "TypeofNEBigInt"; + TypeFacts3[TypeFacts3["TypeofNEBoolean"] = 2048] = "TypeofNEBoolean"; + TypeFacts3[TypeFacts3["TypeofNESymbol"] = 4096] = "TypeofNESymbol"; + TypeFacts3[TypeFacts3["TypeofNEObject"] = 8192] = "TypeofNEObject"; + TypeFacts3[TypeFacts3["TypeofNEFunction"] = 16384] = "TypeofNEFunction"; + TypeFacts3[TypeFacts3["TypeofNEHostObject"] = 32768] = "TypeofNEHostObject"; + TypeFacts3[TypeFacts3["EQUndefined"] = 65536] = "EQUndefined"; + TypeFacts3[TypeFacts3["EQNull"] = 131072] = "EQNull"; + TypeFacts3[TypeFacts3["EQUndefinedOrNull"] = 262144] = "EQUndefinedOrNull"; + TypeFacts3[TypeFacts3["NEUndefined"] = 524288] = "NEUndefined"; + TypeFacts3[TypeFacts3["NENull"] = 1048576] = "NENull"; + TypeFacts3[TypeFacts3["NEUndefinedOrNull"] = 2097152] = "NEUndefinedOrNull"; + TypeFacts3[TypeFacts3["Truthy"] = 4194304] = "Truthy"; + TypeFacts3[TypeFacts3["Falsy"] = 8388608] = "Falsy"; + TypeFacts3[TypeFacts3["IsUndefined"] = 16777216] = "IsUndefined"; + TypeFacts3[TypeFacts3["IsNull"] = 33554432] = "IsNull"; + TypeFacts3[TypeFacts3["IsUndefinedOrNull"] = 50331648] = "IsUndefinedOrNull"; + TypeFacts3[TypeFacts3["All"] = 134217727] = "All"; + TypeFacts3[TypeFacts3["BaseStringStrictFacts"] = 3735041] = "BaseStringStrictFacts"; + TypeFacts3[TypeFacts3["BaseStringFacts"] = 12582401] = "BaseStringFacts"; + TypeFacts3[TypeFacts3["StringStrictFacts"] = 16317953] = "StringStrictFacts"; + TypeFacts3[TypeFacts3["StringFacts"] = 16776705] = "StringFacts"; + TypeFacts3[TypeFacts3["EmptyStringStrictFacts"] = 12123649] = "EmptyStringStrictFacts"; + TypeFacts3[TypeFacts3["EmptyStringFacts"] = 12582401 /* BaseStringFacts */] = "EmptyStringFacts"; + TypeFacts3[TypeFacts3["NonEmptyStringStrictFacts"] = 7929345] = "NonEmptyStringStrictFacts"; + TypeFacts3[TypeFacts3["NonEmptyStringFacts"] = 16776705] = "NonEmptyStringFacts"; + TypeFacts3[TypeFacts3["BaseNumberStrictFacts"] = 3734786] = "BaseNumberStrictFacts"; + TypeFacts3[TypeFacts3["BaseNumberFacts"] = 12582146] = "BaseNumberFacts"; + TypeFacts3[TypeFacts3["NumberStrictFacts"] = 16317698] = "NumberStrictFacts"; + TypeFacts3[TypeFacts3["NumberFacts"] = 16776450] = "NumberFacts"; + TypeFacts3[TypeFacts3["ZeroNumberStrictFacts"] = 12123394] = "ZeroNumberStrictFacts"; + TypeFacts3[TypeFacts3["ZeroNumberFacts"] = 12582146 /* BaseNumberFacts */] = "ZeroNumberFacts"; + TypeFacts3[TypeFacts3["NonZeroNumberStrictFacts"] = 7929090] = "NonZeroNumberStrictFacts"; + TypeFacts3[TypeFacts3["NonZeroNumberFacts"] = 16776450] = "NonZeroNumberFacts"; + TypeFacts3[TypeFacts3["BaseBigIntStrictFacts"] = 3734276] = "BaseBigIntStrictFacts"; + TypeFacts3[TypeFacts3["BaseBigIntFacts"] = 12581636] = "BaseBigIntFacts"; + TypeFacts3[TypeFacts3["BigIntStrictFacts"] = 16317188] = "BigIntStrictFacts"; + TypeFacts3[TypeFacts3["BigIntFacts"] = 16775940] = "BigIntFacts"; + TypeFacts3[TypeFacts3["ZeroBigIntStrictFacts"] = 12122884] = "ZeroBigIntStrictFacts"; + TypeFacts3[TypeFacts3["ZeroBigIntFacts"] = 12581636 /* BaseBigIntFacts */] = "ZeroBigIntFacts"; + TypeFacts3[TypeFacts3["NonZeroBigIntStrictFacts"] = 7928580] = "NonZeroBigIntStrictFacts"; + TypeFacts3[TypeFacts3["NonZeroBigIntFacts"] = 16775940] = "NonZeroBigIntFacts"; + TypeFacts3[TypeFacts3["BaseBooleanStrictFacts"] = 3733256] = "BaseBooleanStrictFacts"; + TypeFacts3[TypeFacts3["BaseBooleanFacts"] = 12580616] = "BaseBooleanFacts"; + TypeFacts3[TypeFacts3["BooleanStrictFacts"] = 16316168] = "BooleanStrictFacts"; + TypeFacts3[TypeFacts3["BooleanFacts"] = 16774920] = "BooleanFacts"; + TypeFacts3[TypeFacts3["FalseStrictFacts"] = 12121864] = "FalseStrictFacts"; + TypeFacts3[TypeFacts3["FalseFacts"] = 12580616 /* BaseBooleanFacts */] = "FalseFacts"; + TypeFacts3[TypeFacts3["TrueStrictFacts"] = 7927560] = "TrueStrictFacts"; + TypeFacts3[TypeFacts3["TrueFacts"] = 16774920] = "TrueFacts"; + TypeFacts3[TypeFacts3["SymbolStrictFacts"] = 7925520] = "SymbolStrictFacts"; + TypeFacts3[TypeFacts3["SymbolFacts"] = 16772880] = "SymbolFacts"; + TypeFacts3[TypeFacts3["ObjectStrictFacts"] = 7888800] = "ObjectStrictFacts"; + TypeFacts3[TypeFacts3["ObjectFacts"] = 16736160] = "ObjectFacts"; + TypeFacts3[TypeFacts3["FunctionStrictFacts"] = 7880640] = "FunctionStrictFacts"; + TypeFacts3[TypeFacts3["FunctionFacts"] = 16728e3] = "FunctionFacts"; + TypeFacts3[TypeFacts3["VoidFacts"] = 9830144] = "VoidFacts"; + TypeFacts3[TypeFacts3["UndefinedFacts"] = 26607360] = "UndefinedFacts"; + TypeFacts3[TypeFacts3["NullFacts"] = 42917664] = "NullFacts"; + TypeFacts3[TypeFacts3["EmptyObjectStrictFacts"] = 83427327] = "EmptyObjectStrictFacts"; + TypeFacts3[TypeFacts3["EmptyObjectFacts"] = 83886079] = "EmptyObjectFacts"; + TypeFacts3[TypeFacts3["UnknownFacts"] = 83886079] = "UnknownFacts"; + TypeFacts3[TypeFacts3["AllTypeofNE"] = 556800] = "AllTypeofNE"; + TypeFacts3[TypeFacts3["OrFactsMask"] = 8256] = "OrFactsMask"; + TypeFacts3[TypeFacts3["AndFactsMask"] = 134209471] = "AndFactsMask"; + return TypeFacts3; +})(TypeFacts || {}); +var typeofNEFacts = new Map(Object.entries({ + string: 256 /* TypeofNEString */, + number: 512 /* TypeofNENumber */, + bigint: 1024 /* TypeofNEBigInt */, + boolean: 2048 /* TypeofNEBoolean */, + symbol: 4096 /* TypeofNESymbol */, + undefined: 524288 /* NEUndefined */, + object: 8192 /* TypeofNEObject */, + function: 16384 /* TypeofNEFunction */ +})); +var CheckMode = /* @__PURE__ */ ((CheckMode3) => { + CheckMode3[CheckMode3["Normal"] = 0] = "Normal"; + CheckMode3[CheckMode3["Contextual"] = 1] = "Contextual"; + CheckMode3[CheckMode3["Inferential"] = 2] = "Inferential"; + CheckMode3[CheckMode3["SkipContextSensitive"] = 4] = "SkipContextSensitive"; + CheckMode3[CheckMode3["SkipGenericFunctions"] = 8] = "SkipGenericFunctions"; + CheckMode3[CheckMode3["IsForSignatureHelp"] = 16] = "IsForSignatureHelp"; + CheckMode3[CheckMode3["RestBindingElement"] = 32] = "RestBindingElement"; + CheckMode3[CheckMode3["TypeOnly"] = 64] = "TypeOnly"; + return CheckMode3; +})(CheckMode || {}); +var SignatureCheckMode = /* @__PURE__ */ ((SignatureCheckMode3) => { + SignatureCheckMode3[SignatureCheckMode3["None"] = 0] = "None"; + SignatureCheckMode3[SignatureCheckMode3["BivariantCallback"] = 1] = "BivariantCallback"; + SignatureCheckMode3[SignatureCheckMode3["StrictCallback"] = 2] = "StrictCallback"; + SignatureCheckMode3[SignatureCheckMode3["IgnoreReturnTypes"] = 4] = "IgnoreReturnTypes"; + SignatureCheckMode3[SignatureCheckMode3["StrictArity"] = 8] = "StrictArity"; + SignatureCheckMode3[SignatureCheckMode3["StrictTopSignature"] = 16] = "StrictTopSignature"; + SignatureCheckMode3[SignatureCheckMode3["Callback"] = 3] = "Callback"; + return SignatureCheckMode3; +})(SignatureCheckMode || {}); +var isNotOverloadAndNotAccessor = and(isNotOverload, isNotAccessor); +var intrinsicTypeKinds = new Map(Object.entries({ + Uppercase: 0 /* Uppercase */, + Lowercase: 1 /* Lowercase */, + Capitalize: 2 /* Capitalize */, + Uncapitalize: 3 /* Uncapitalize */, + NoInfer: 4 /* NoInfer */ +})); +var SymbolLinks = class { +}; +function NodeLinks() { + this.flags = 0 /* None */; +} +function getNodeId(node) { + if (!node.id) { + node.id = nextNodeId; + nextNodeId++; + } + return node.id; +} +function getSymbolId(symbol) { + if (!symbol.id) { + symbol.id = nextSymbolId; + nextSymbolId++; + } + return symbol.id; +} +function isInstantiatedModule(node, preserveConstEnums) { + const moduleState = getModuleInstanceState(node); + return moduleState === 1 /* Instantiated */ || preserveConstEnums && moduleState === 2 /* ConstEnumOnly */; +} +function createTypeChecker(host) { + var deferredDiagnosticsCallbacks = []; + var addLazyDiagnostic = (arg) => { + deferredDiagnosticsCallbacks.push(arg); + }; + var cancellationToken; + var scanner; + var Symbol12 = objectAllocator.getSymbolConstructor(); + var Type7 = objectAllocator.getTypeConstructor(); + var Signature5 = objectAllocator.getSignatureConstructor(); + var typeCount = 0; + var symbolCount = 0; + var totalInstantiationCount = 0; + var instantiationCount = 0; + var instantiationDepth = 0; + var inlineLevel = 0; + var currentNode; + var varianceTypeParameter; + var isInferencePartiallyBlocked = false; + var emptySymbols = createSymbolTable(); + var arrayVariances = [1 /* Covariant */]; + var compilerOptions = host.getCompilerOptions(); + var languageVersion = getEmitScriptTarget(compilerOptions); + var moduleKind = getEmitModuleKind(compilerOptions); + var legacyDecorators = !!compilerOptions.experimentalDecorators; + var useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + var emitStandardClassFields = getEmitStandardClassFields(compilerOptions); + var allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); + var strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); + var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); + var strictBindCallApply = getStrictOptionValue(compilerOptions, "strictBindCallApply"); + var strictPropertyInitialization = getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); + var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny"); + var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis"); + var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables"); + var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes; + var checkBinaryExpression = createCheckBinaryExpression(); + var emitResolver = createResolver(); + var nodeBuilder = createNodeBuilder(); + var syntacticNodeBuilder = createSyntacticTypeNodeBuilder(compilerOptions, { + isEntityNameVisible, + isExpandoFunctionDeclaration, + getAllAccessorDeclarations: getAllAccessorDeclarationsForDeclaration, + requiresAddingImplicitUndefined, + isUndefinedIdentifierExpression(node) { + Debug.assert(isExpressionNode(node)); + return getSymbolAtLocation(node) === undefinedSymbol; + }, + isDefinitelyReferenceToGlobalSymbolObject + }); + var evaluate = createEvaluator({ + evaluateElementAccessExpression, + evaluateEntityNameExpression + }); + var globals = createSymbolTable(); + var undefinedSymbol = createSymbol(4 /* Property */, "undefined"); + undefinedSymbol.declarations = []; + var globalThisSymbol = createSymbol(1536 /* Module */, "globalThis", 8 /* Readonly */); + globalThisSymbol.exports = globals; + globalThisSymbol.declarations = []; + globals.set(globalThisSymbol.escapedName, globalThisSymbol); + var argumentsSymbol = createSymbol(4 /* Property */, "arguments"); + var requireSymbol = createSymbol(4 /* Property */, "require"); + var isolatedModulesLikeFlagName = compilerOptions.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"; + var canCollectSymbolAliasAccessabilityData = !compilerOptions.verbatimModuleSyntax; + var apparentArgumentCount; + var lastGetCombinedNodeFlagsNode; + var lastGetCombinedNodeFlagsResult = 0 /* None */; + var lastGetCombinedModifierFlagsNode; + var lastGetCombinedModifierFlagsResult = 0 /* None */; + var resolveName = createNameResolver({ + compilerOptions, + requireSymbol, + argumentsSymbol, + globals, + getSymbolOfDeclaration, + error, + getRequiresScopeChangeCache, + setRequiresScopeChangeCache, + lookup: getSymbol, + onPropertyWithInvalidInitializer: checkAndReportErrorForInvalidInitializer, + onFailedToResolveSymbol, + onSuccessfullyResolvedSymbol + }); + var resolveNameForSymbolSuggestion = createNameResolver({ + compilerOptions, + requireSymbol, + argumentsSymbol, + globals, + getSymbolOfDeclaration, + error, + getRequiresScopeChangeCache, + setRequiresScopeChangeCache, + lookup: getSuggestionForSymbolNameLookup + }); + const checker = { + getNodeCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.nodeCount, 0), + getIdentifierCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.identifierCount, 0), + getSymbolCount: () => reduceLeft(host.getSourceFiles(), (n, s) => n + s.symbolCount, symbolCount), + getTypeCount: () => typeCount, + getInstantiationCount: () => totalInstantiationCount, + getRelationCacheSizes: () => ({ + assignable: assignableRelation.size, + identity: identityRelation.size, + subtype: subtypeRelation.size, + strictSubtype: strictSubtypeRelation.size + }), + isUndefinedSymbol: (symbol) => symbol === undefinedSymbol, + isArgumentsSymbol: (symbol) => symbol === argumentsSymbol, + isUnknownSymbol: (symbol) => symbol === unknownSymbol, + getMergedSymbol, + symbolIsValue, + getDiagnostics, + getGlobalDiagnostics, + getRecursionIdentity, + getUnmatchedProperties, + getTypeOfSymbolAtLocation: (symbol, locationIn) => { + const location = getParseTreeNode(locationIn); + return location ? getTypeOfSymbolAtLocation(symbol, location) : errorType; + }, + getTypeOfSymbol, + getSymbolsOfParameterPropertyDeclaration: (parameterIn, parameterName) => { + const parameter = getParseTreeNode(parameterIn, isParameter); + if (parameter === void 0) return Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."); + Debug.assert(isParameterPropertyDeclaration(parameter, parameter.parent)); + return getSymbolsOfParameterPropertyDeclaration(parameter, escapeLeadingUnderscores(parameterName)); + }, + getDeclaredTypeOfSymbol, + getPropertiesOfType, + getPropertyOfType: (type, name) => getPropertyOfType(type, escapeLeadingUnderscores(name)), + getPrivateIdentifierPropertyOfType: (leftType, name, location) => { + const node = getParseTreeNode(location); + if (!node) { + return void 0; + } + const propName = escapeLeadingUnderscores(name); + const lexicallyScopedIdentifier = lookupSymbolForPrivateIdentifierDeclaration(propName, node); + return lexicallyScopedIdentifier ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) : void 0; + }, + getTypeOfPropertyOfType: (type, name) => getTypeOfPropertyOfType(type, escapeLeadingUnderscores(name)), + getIndexInfoOfType: (type, kind) => getIndexInfoOfType(type, kind === 0 /* String */ ? stringType : numberType), + getIndexInfosOfType, + getIndexInfosOfIndexSymbol, + getSignaturesOfType, + getIndexTypeOfType: (type, kind) => getIndexTypeOfType(type, kind === 0 /* String */ ? stringType : numberType), + getIndexType: (type) => getIndexType(type), + getBaseTypes, + getBaseTypeOfLiteralType, + getWidenedType, + getWidenedLiteralType, + getTypeFromTypeNode: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isTypeNode); + return node ? getTypeFromTypeNode(node) : errorType; + }, + getParameterType: getTypeAtPosition, + getParameterIdentifierInfoAtPosition, + getPromisedTypeOfPromise, + getAwaitedType: (type) => getAwaitedType(type), + getReturnTypeOfSignature, + isNullableType, + getNullableType, + getNonNullableType, + getNonOptionalType: removeOptionalTypeMarker, + getTypeArguments, + typeToTypeNode: nodeBuilder.typeToTypeNode, + indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration, + signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration, + symbolToEntityName: nodeBuilder.symbolToEntityName, + symbolToExpression: nodeBuilder.symbolToExpression, + symbolToNode: nodeBuilder.symbolToNode, + symbolToTypeParameterDeclarations: nodeBuilder.symbolToTypeParameterDeclarations, + symbolToParameterDeclaration: nodeBuilder.symbolToParameterDeclaration, + typeParameterToDeclaration: nodeBuilder.typeParameterToDeclaration, + getSymbolsInScope: (locationIn, meaning) => { + const location = getParseTreeNode(locationIn); + return location ? getSymbolsInScope(location, meaning) : []; + }, + getSymbolAtLocation: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node ? getSymbolAtLocation( + node, + /*ignoreErrors*/ + true + ) : void 0; + }, + getIndexInfosAtLocation: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node ? getIndexInfosAtLocation(node) : void 0; + }, + getShorthandAssignmentValueSymbol: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node ? getShorthandAssignmentValueSymbol(node) : void 0; + }, + getExportSpecifierLocalTargetSymbol: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isExportSpecifier); + return node ? getExportSpecifierLocalTargetSymbol(node) : void 0; + }, + getExportSymbolOfSymbol(symbol) { + return getMergedSymbol(symbol.exportSymbol || symbol); + }, + getTypeAtLocation: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node ? getTypeOfNode(node) : errorType; + }, + getTypeOfAssignmentPattern: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isAssignmentPattern); + return node && getTypeOfAssignmentPattern(node) || errorType; + }, + getPropertySymbolOfDestructuringAssignment: (locationIn) => { + const location = getParseTreeNode(locationIn, isIdentifier); + return location ? getPropertySymbolOfDestructuringAssignment(location) : void 0; + }, + signatureToString: (signature, enclosingDeclaration, flags, kind) => { + return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind); + }, + typeToString: (type, enclosingDeclaration, flags) => { + return typeToString(type, getParseTreeNode(enclosingDeclaration), flags); + }, + symbolToString: (symbol, enclosingDeclaration, meaning, flags) => { + return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags); + }, + typePredicateToString: (predicate, enclosingDeclaration, flags) => { + return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags); + }, + writeSignature: (signature, enclosingDeclaration, flags, kind, writer) => { + return signatureToString(signature, getParseTreeNode(enclosingDeclaration), flags, kind, writer); + }, + writeType: (type, enclosingDeclaration, flags, writer) => { + return typeToString(type, getParseTreeNode(enclosingDeclaration), flags, writer); + }, + writeSymbol: (symbol, enclosingDeclaration, meaning, flags, writer) => { + return symbolToString(symbol, getParseTreeNode(enclosingDeclaration), meaning, flags, writer); + }, + writeTypePredicate: (predicate, enclosingDeclaration, flags, writer) => { + return typePredicateToString(predicate, getParseTreeNode(enclosingDeclaration), flags, writer); + }, + getAugmentedPropertiesOfType, + getRootSymbols, + getSymbolOfExpando, + getContextualType: (nodeIn, contextFlags) => { + const node = getParseTreeNode(nodeIn, isExpression); + if (!node) { + return void 0; + } + if (contextFlags & 4 /* Completions */) { + return runWithInferenceBlockedFromSourceNode(node, () => getContextualType(node, contextFlags)); + } + return getContextualType(node, contextFlags); + }, + getContextualTypeForObjectLiteralElement: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isObjectLiteralElementLike); + return node ? getContextualTypeForObjectLiteralElement( + node, + /*contextFlags*/ + void 0 + ) : void 0; + }, + getContextualTypeForArgumentAtIndex: (nodeIn, argIndex) => { + const node = getParseTreeNode(nodeIn, isCallLikeExpression); + return node && getContextualTypeForArgumentAtIndex(node, argIndex); + }, + getContextualTypeForJsxAttribute: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isJsxAttributeLike); + return node && getContextualTypeForJsxAttribute( + node, + /*contextFlags*/ + void 0 + ); + }, + isContextSensitive, + getTypeOfPropertyOfContextualType, + getFullyQualifiedName, + getResolvedSignature: (node, candidatesOutArray, argumentCount) => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */), + getCandidateSignaturesForStringLiteralCompletions, + getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) => runWithoutResolvedSignatureCaching(node, () => getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */)), + getExpandedParameters, + hasEffectiveRestParameter, + containsArgumentsReference, + getConstantValue: (nodeIn) => { + const node = getParseTreeNode(nodeIn, canHaveConstantValue); + return node ? getConstantValue2(node) : void 0; + }, + isValidPropertyAccess: (nodeIn, propertyName) => { + const node = getParseTreeNode(nodeIn, isPropertyAccessOrQualifiedNameOrImportTypeNode); + return !!node && isValidPropertyAccess(node, escapeLeadingUnderscores(propertyName)); + }, + isValidPropertyAccessForCompletions: (nodeIn, type, property) => { + const node = getParseTreeNode(nodeIn, isPropertyAccessExpression); + return !!node && isValidPropertyAccessForCompletions(node, type, property); + }, + getSignatureFromDeclaration: (declarationIn) => { + const declaration = getParseTreeNode(declarationIn, isFunctionLike); + return declaration ? getSignatureFromDeclaration(declaration) : void 0; + }, + isImplementationOfOverload: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isFunctionLike); + return node ? isImplementationOfOverload(node) : void 0; + }, + getImmediateAliasedSymbol, + getAliasedSymbol: resolveAlias, + getEmitResolver, + requiresAddingImplicitUndefined, + getExportsOfModule: getExportsOfModuleAsArray, + getExportsAndPropertiesOfModule, + forEachExportAndPropertyOfModule, + getSymbolWalker: createGetSymbolWalker( + getRestTypeOfSignature, + getTypePredicateOfSignature, + getReturnTypeOfSignature, + getBaseTypes, + resolveStructuredTypeMembers, + getTypeOfSymbol, + getResolvedSymbol, + getConstraintOfTypeParameter, + getFirstIdentifier, + getTypeArguments + ), + getAmbientModules, + getJsxIntrinsicTagNamesAt, + isOptionalParameter: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isParameter); + return node ? isOptionalParameter(node) : false; + }, + tryGetMemberInModuleExports: (name, symbol) => tryGetMemberInModuleExports(escapeLeadingUnderscores(name), symbol), + tryGetMemberInModuleExportsAndProperties: (name, symbol) => tryGetMemberInModuleExportsAndProperties(escapeLeadingUnderscores(name), symbol), + tryFindAmbientModule: (moduleName) => tryFindAmbientModule( + moduleName, + /*withAugmentations*/ + true + ), + tryFindAmbientModuleWithoutAugmentations: (moduleName) => { + return tryFindAmbientModule( + moduleName, + /*withAugmentations*/ + false + ); + }, + getApparentType, + getUnionType, + isTypeAssignableTo, + createAnonymousType, + createSignature, + createSymbol, + createIndexInfo, + getAnyType: () => anyType, + getStringType: () => stringType, + getStringLiteralType, + getNumberType: () => numberType, + getNumberLiteralType, + getBigIntType: () => bigintType, + createPromiseType, + createArrayType, + getElementTypeOfArrayType, + getBooleanType: () => booleanType, + getFalseType: (fresh) => fresh ? falseType : regularFalseType, + getTrueType: (fresh) => fresh ? trueType : regularTrueType, + getVoidType: () => voidType, + getUndefinedType: () => undefinedType, + getNullType: () => nullType, + getESSymbolType: () => esSymbolType, + getNeverType: () => neverType, + getOptionalType: () => optionalType, + getPromiseType: () => getGlobalPromiseType( + /*reportErrors*/ + false + ), + getPromiseLikeType: () => getGlobalPromiseLikeType( + /*reportErrors*/ + false + ), + getAsyncIterableType: () => { + const type = getGlobalAsyncIterableType( + /*reportErrors*/ + false + ); + if (type === emptyGenericType) return void 0; + return type; + }, + isSymbolAccessible, + isArrayType, + isTupleType, + isArrayLikeType, + isEmptyAnonymousObjectType, + isTypeInvalidDueToUnionDiscriminant, + getExactOptionalProperties, + getAllPossiblePropertiesOfTypes, + getSuggestedSymbolForNonexistentProperty, + getSuggestedSymbolForNonexistentJSXAttribute, + getSuggestedSymbolForNonexistentSymbol: (location, name, meaning) => getSuggestedSymbolForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning), + getSuggestedSymbolForNonexistentModule, + getSuggestedSymbolForNonexistentClassMember, + getBaseConstraintOfType, + getDefaultFromTypeParameter: (type) => type && type.flags & 262144 /* TypeParameter */ ? getDefaultFromTypeParameter(type) : void 0, + resolveName(name, location, meaning, excludeGlobals) { + return resolveName( + location, + escapeLeadingUnderscores(name), + meaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false, + excludeGlobals + ); + }, + getJsxNamespace: (n) => unescapeLeadingUnderscores(getJsxNamespace(n)), + getJsxFragmentFactory: (n) => { + const jsxFragmentFactory = getJsxFragmentFactoryEntity(n); + return jsxFragmentFactory && unescapeLeadingUnderscores(getFirstIdentifier(jsxFragmentFactory).escapedText); + }, + getAccessibleSymbolChain, + getTypePredicateOfSignature, + resolveExternalModuleName: (moduleSpecifierIn) => { + const moduleSpecifier = getParseTreeNode(moduleSpecifierIn, isExpression); + return moduleSpecifier && resolveExternalModuleName( + moduleSpecifier, + moduleSpecifier, + /*ignoreErrors*/ + true + ); + }, + resolveExternalModuleSymbol, + tryGetThisTypeAt: (nodeIn, includeGlobalThis, container) => { + const node = getParseTreeNode(nodeIn); + return node && tryGetThisTypeAt(node, includeGlobalThis, container); + }, + getTypeArgumentConstraint: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isTypeNode); + return node && getTypeArgumentConstraint(node); + }, + getSuggestionDiagnostics: (fileIn, ct) => { + const file = getParseTreeNode(fileIn, isSourceFile) || Debug.fail("Could not determine parsed source file."); + if (skipTypeChecking(file, compilerOptions, host)) { + return emptyArray; + } + let diagnostics2; + try { + cancellationToken = ct; + checkSourceFileWithEagerDiagnostics(file); + Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */)); + diagnostics2 = addRange(diagnostics2, suggestionDiagnostics.getDiagnostics(file.fileName)); + checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), (containingNode, kind, diag2) => { + if (!containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { + (diagnostics2 || (diagnostics2 = [])).push({ ...diag2, category: 2 /* Suggestion */ }); + } + }); + return diagnostics2 || emptyArray; + } finally { + cancellationToken = void 0; + } + }, + runWithCancellationToken: (token, callback) => { + try { + cancellationToken = token; + return callback(checker); + } finally { + cancellationToken = void 0; + } + }, + getLocalTypeParametersOfClassOrInterfaceOrTypeAlias, + isDeclarationVisible, + isPropertyAccessible, + getTypeOnlyAliasDeclaration, + getMemberOverrideModifierStatus, + isTypeParameterPossiblyReferenced, + typeHasCallOrConstructSignatures, + getSymbolFlags + }; + function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) { + const candidatesSet = /* @__PURE__ */ new Set(); + const candidates = []; + runWithInferenceBlockedFromSourceNode(editingArgument, () => getResolvedSignatureWorker( + call, + candidates, + /*argumentCount*/ + void 0, + 0 /* Normal */ + )); + for (const candidate of candidates) { + candidatesSet.add(candidate); + } + candidates.length = 0; + runWithoutResolvedSignatureCaching(editingArgument, () => getResolvedSignatureWorker( + call, + candidates, + /*argumentCount*/ + void 0, + 0 /* Normal */ + )); + for (const candidate of candidates) { + candidatesSet.add(candidate); + } + return arrayFrom(candidatesSet); + } + function runWithoutResolvedSignatureCaching(node, fn) { + node = findAncestor(node, isCallLikeOrFunctionLikeExpression); + if (node) { + const cachedResolvedSignatures = []; + const cachedTypes2 = []; + while (node) { + const nodeLinks2 = getNodeLinks(node); + cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]); + nodeLinks2.resolvedSignature = void 0; + if (isFunctionExpressionOrArrowFunction(node)) { + const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node)); + const type = symbolLinks2.type; + cachedTypes2.push([symbolLinks2, type]); + symbolLinks2.type = void 0; + } + node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression); + } + const result = fn(); + for (const [nodeLinks2, resolvedSignature] of cachedResolvedSignatures) { + nodeLinks2.resolvedSignature = resolvedSignature; + } + for (const [symbolLinks2, type] of cachedTypes2) { + symbolLinks2.type = type; + } + return result; + } + return fn(); + } + function runWithInferenceBlockedFromSourceNode(node, fn) { + const containingCall = findAncestor(node, isCallLikeExpression); + if (containingCall) { + let toMarkSkip = node; + do { + getNodeLinks(toMarkSkip).skipDirectInference = true; + toMarkSkip = toMarkSkip.parent; + } while (toMarkSkip && toMarkSkip !== containingCall); + } + isInferencePartiallyBlocked = true; + const result = runWithoutResolvedSignatureCaching(node, fn); + isInferencePartiallyBlocked = false; + if (containingCall) { + let toMarkSkip = node; + do { + getNodeLinks(toMarkSkip).skipDirectInference = void 0; + toMarkSkip = toMarkSkip.parent; + } while (toMarkSkip && toMarkSkip !== containingCall); + } + return result; + } + function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) { + const node = getParseTreeNode(nodeIn, isCallLikeExpression); + apparentArgumentCount = argumentCount; + const res = !node ? void 0 : getResolvedSignature(node, candidatesOutArray, checkMode); + apparentArgumentCount = void 0; + return res; + } + var tupleTypes = /* @__PURE__ */ new Map(); + var unionTypes = /* @__PURE__ */ new Map(); + var unionOfUnionTypes = /* @__PURE__ */ new Map(); + var intersectionTypes = /* @__PURE__ */ new Map(); + var stringLiteralTypes = /* @__PURE__ */ new Map(); + var numberLiteralTypes = /* @__PURE__ */ new Map(); + var bigIntLiteralTypes = /* @__PURE__ */ new Map(); + var enumLiteralTypes = /* @__PURE__ */ new Map(); + var indexedAccessTypes = /* @__PURE__ */ new Map(); + var templateLiteralTypes = /* @__PURE__ */ new Map(); + var stringMappingTypes = /* @__PURE__ */ new Map(); + var substitutionTypes = /* @__PURE__ */ new Map(); + var subtypeReductionCache = /* @__PURE__ */ new Map(); + var decoratorContextOverrideTypeCache = /* @__PURE__ */ new Map(); + var cachedTypes = /* @__PURE__ */ new Map(); + var evolvingArrayTypes = []; + var undefinedProperties = /* @__PURE__ */ new Map(); + var markerTypes = /* @__PURE__ */ new Set(); + var unknownSymbol = createSymbol(4 /* Property */, "unknown"); + var resolvingSymbol = createSymbol(0, "__resolving__" /* Resolving */); + var unresolvedSymbols = /* @__PURE__ */ new Map(); + var errorTypes = /* @__PURE__ */ new Map(); + var seenIntrinsicNames = /* @__PURE__ */ new Set(); + var anyType = createIntrinsicType(1 /* Any */, "any"); + var autoType = createIntrinsicType(1 /* Any */, "any", 262144 /* NonInferrableType */, "auto"); + var wildcardType = createIntrinsicType( + 1 /* Any */, + "any", + /*objectFlags*/ + void 0, + "wildcard" + ); + var blockedStringType = createIntrinsicType( + 1 /* Any */, + "any", + /*objectFlags*/ + void 0, + "blocked string" + ); + var errorType = createIntrinsicType(1 /* Any */, "error"); + var unresolvedType = createIntrinsicType(1 /* Any */, "unresolved"); + var nonInferrableAnyType = createIntrinsicType(1 /* Any */, "any", 65536 /* ContainsWideningType */, "non-inferrable"); + var intrinsicMarkerType = createIntrinsicType(1 /* Any */, "intrinsic"); + var unknownType = createIntrinsicType(2 /* Unknown */, "unknown"); + var undefinedType = createIntrinsicType(32768 /* Undefined */, "undefined"); + var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768 /* Undefined */, "undefined", 65536 /* ContainsWideningType */, "widening"); + var missingType = createIntrinsicType( + 32768 /* Undefined */, + "undefined", + /*objectFlags*/ + void 0, + "missing" + ); + var undefinedOrMissingType = exactOptionalPropertyTypes ? missingType : undefinedType; + var optionalType = createIntrinsicType( + 32768 /* Undefined */, + "undefined", + /*objectFlags*/ + void 0, + "optional" + ); + var nullType = createIntrinsicType(65536 /* Null */, "null"); + var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536 /* Null */, "null", 65536 /* ContainsWideningType */, "widening"); + var stringType = createIntrinsicType(4 /* String */, "string"); + var numberType = createIntrinsicType(8 /* Number */, "number"); + var bigintType = createIntrinsicType(64 /* BigInt */, "bigint"); + var falseType = createIntrinsicType( + 512 /* BooleanLiteral */, + "false", + /*objectFlags*/ + void 0, + "fresh" + ); + var regularFalseType = createIntrinsicType(512 /* BooleanLiteral */, "false"); + var trueType = createIntrinsicType( + 512 /* BooleanLiteral */, + "true", + /*objectFlags*/ + void 0, + "fresh" + ); + var regularTrueType = createIntrinsicType(512 /* BooleanLiteral */, "true"); + trueType.regularType = regularTrueType; + trueType.freshType = trueType; + regularTrueType.regularType = regularTrueType; + regularTrueType.freshType = trueType; + falseType.regularType = regularFalseType; + falseType.freshType = falseType; + regularFalseType.regularType = regularFalseType; + regularFalseType.freshType = falseType; + var booleanType = getUnionType([regularFalseType, regularTrueType]); + var esSymbolType = createIntrinsicType(4096 /* ESSymbol */, "symbol"); + var voidType = createIntrinsicType(16384 /* Void */, "void"); + var neverType = createIntrinsicType(131072 /* Never */, "never"); + var silentNeverType = createIntrinsicType(131072 /* Never */, "never", 262144 /* NonInferrableType */, "silent"); + var implicitNeverType = createIntrinsicType( + 131072 /* Never */, + "never", + /*objectFlags*/ + void 0, + "implicit" + ); + var unreachableNeverType = createIntrinsicType( + 131072 /* Never */, + "never", + /*objectFlags*/ + void 0, + "unreachable" + ); + var nonPrimitiveType = createIntrinsicType(67108864 /* NonPrimitive */, "object"); + var stringOrNumberType = getUnionType([stringType, numberType]); + var stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]); + var numberOrBigIntType = getUnionType([numberType, bigintType]); + var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]); + var numericStringType = getTemplateLiteralType(["", ""], [numberType]); + var restrictiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? getRestrictiveTypeParameter(t) : t, () => "(restrictive mapper)"); + var permissiveMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? wildcardType : t, () => "(permissive mapper)"); + var uniqueLiteralType = createIntrinsicType( + 131072 /* Never */, + "never", + /*objectFlags*/ + void 0, + "unique literal" + ); + var uniqueLiteralMapper = makeFunctionTypeMapper((t) => t.flags & 262144 /* TypeParameter */ ? uniqueLiteralType : t, () => "(unique literal mapper)"); + var outofbandVarianceMarkerHandler; + var reportUnreliableMapper = makeFunctionTypeMapper((t) => { + if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { + outofbandVarianceMarkerHandler( + /*onlyUnreliable*/ + true + ); + } + return t; + }, () => "(unmeasurable reporter)"); + var reportUnmeasurableMapper = makeFunctionTypeMapper((t) => { + if (outofbandVarianceMarkerHandler && (t === markerSuperType || t === markerSubType || t === markerOtherType)) { + outofbandVarianceMarkerHandler( + /*onlyUnreliable*/ + false + ); + } + return t; + }, () => "(unreliable reporter)"); + var emptyObjectType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + var emptyJsxObjectType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */; + var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); + emptyTypeLiteralSymbol.members = createSymbolTable(); + var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray); + var unknownEmptyObjectType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + var unknownUnionType = strictNullChecks ? getUnionType([undefinedType, nullType, unknownEmptyObjectType]) : unknownType; + var emptyGenericType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + emptyGenericType.instantiations = /* @__PURE__ */ new Map(); + var anyFunctionType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + anyFunctionType.objectFlags |= 262144 /* NonInferrableType */; + var noConstraintType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + var circularConstraintType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + var resolvingDefaultType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + var markerSuperType = createTypeParameter(); + var markerSubType = createTypeParameter(); + markerSubType.constraint = markerSuperType; + var markerOtherType = createTypeParameter(); + var markerSuperTypeForCheck = createTypeParameter(); + var markerSubTypeForCheck = createTypeParameter(); + markerSubTypeForCheck.constraint = markerSuperTypeForCheck; + var noTypePredicate = createTypePredicate(1 /* Identifier */, "<>", 0, anyType); + var anySignature = createSignature( + /*declaration*/ + void 0, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + anyType, + /*resolvedTypePredicate*/ + void 0, + 0, + 0 /* None */ + ); + var unknownSignature = createSignature( + /*declaration*/ + void 0, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + errorType, + /*resolvedTypePredicate*/ + void 0, + 0, + 0 /* None */ + ); + var resolvingSignature = createSignature( + /*declaration*/ + void 0, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + anyType, + /*resolvedTypePredicate*/ + void 0, + 0, + 0 /* None */ + ); + var silentNeverSignature = createSignature( + /*declaration*/ + void 0, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + silentNeverType, + /*resolvedTypePredicate*/ + void 0, + 0, + 0 /* None */ + ); + var enumNumberIndexInfo = createIndexInfo( + numberType, + stringType, + /*isReadonly*/ + true + ); + var iterationTypesCache = /* @__PURE__ */ new Map(); + var noIterationTypes = { + get yieldType() { + return Debug.fail("Not supported"); + }, + get returnType() { + return Debug.fail("Not supported"); + }, + get nextType() { + return Debug.fail("Not supported"); + } + }; + var anyIterationTypes = createIterationTypes(anyType, anyType, anyType); + var anyIterationTypesExceptNext = createIterationTypes(anyType, anyType, unknownType); + var defaultIterationTypes = createIterationTypes(neverType, anyType, undefinedType); + var asyncIterationTypesResolver = { + iterableCacheKey: "iterationTypesOfAsyncIterable", + iteratorCacheKey: "iterationTypesOfAsyncIterator", + iteratorSymbolName: "asyncIterator", + getGlobalIteratorType: getGlobalAsyncIteratorType, + getGlobalIterableType: getGlobalAsyncIterableType, + getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType, + getGlobalGeneratorType: getGlobalAsyncGeneratorType, + resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member), + mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method, + mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method, + mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property + }; + var syncIterationTypesResolver = { + iterableCacheKey: "iterationTypesOfIterable", + iteratorCacheKey: "iterationTypesOfIterator", + iteratorSymbolName: "iterator", + getGlobalIteratorType, + getGlobalIterableType, + getGlobalIterableIteratorType, + getGlobalGeneratorType, + resolveIterationType: (type, _errorNode) => type, + mustHaveANextMethodDiagnostic: Diagnostics.An_iterator_must_have_a_next_method, + mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_iterator_must_be_a_method, + mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property + }; + var amalgamatedDuplicates; + var reverseMappedCache = /* @__PURE__ */ new Map(); + var reverseHomomorphicMappedCache = /* @__PURE__ */ new Map(); + var ambientModulesCache; + var patternAmbientModules; + var patternAmbientModuleAugmentations; + var globalObjectType; + var globalFunctionType; + var globalCallableFunctionType; + var globalNewableFunctionType; + var globalArrayType; + var globalReadonlyArrayType; + var globalStringType; + var globalNumberType; + var globalBooleanType; + var globalRegExpType; + var globalThisType; + var anyArrayType; + var autoArrayType; + var anyReadonlyArrayType; + var deferredGlobalNonNullableTypeAlias; + var deferredGlobalESSymbolConstructorSymbol; + var deferredGlobalESSymbolConstructorTypeSymbol; + var deferredGlobalESSymbolType; + var deferredGlobalTypedPropertyDescriptorType; + var deferredGlobalPromiseType; + var deferredGlobalPromiseLikeType; + var deferredGlobalPromiseConstructorSymbol; + var deferredGlobalPromiseConstructorLikeType; + var deferredGlobalIterableType; + var deferredGlobalIteratorType; + var deferredGlobalIterableIteratorType; + var deferredGlobalGeneratorType; + var deferredGlobalIteratorYieldResultType; + var deferredGlobalIteratorReturnResultType; + var deferredGlobalAsyncIterableType; + var deferredGlobalAsyncIteratorType; + var deferredGlobalAsyncIterableIteratorType; + var deferredGlobalAsyncGeneratorType; + var deferredGlobalTemplateStringsArrayType; + var deferredGlobalImportMetaType; + var deferredGlobalImportMetaExpressionType; + var deferredGlobalImportCallOptionsType; + var deferredGlobalImportAttributesType; + var deferredGlobalDisposableType; + var deferredGlobalAsyncDisposableType; + var deferredGlobalExtractSymbol; + var deferredGlobalOmitSymbol; + var deferredGlobalAwaitedSymbol; + var deferredGlobalBigIntType; + var deferredGlobalNaNSymbol; + var deferredGlobalRecordSymbol; + var deferredGlobalClassDecoratorContextType; + var deferredGlobalClassMethodDecoratorContextType; + var deferredGlobalClassGetterDecoratorContextType; + var deferredGlobalClassSetterDecoratorContextType; + var deferredGlobalClassAccessorDecoratorContextType; + var deferredGlobalClassAccessorDecoratorTargetType; + var deferredGlobalClassAccessorDecoratorResultType; + var deferredGlobalClassFieldDecoratorContextType; + var allPotentiallyUnusedIdentifiers = /* @__PURE__ */ new Map(); + var flowLoopStart = 0; + var flowLoopCount = 0; + var sharedFlowCount = 0; + var flowAnalysisDisabled = false; + var flowInvocationCount = 0; + var lastFlowNode; + var lastFlowNodeReachable; + var flowTypeCache; + var contextualTypeNodes = []; + var contextualTypes = []; + var contextualIsCache = []; + var contextualTypeCount = 0; + var inferenceContextNodes = []; + var inferenceContexts = []; + var inferenceContextCount = 0; + var emptyStringType = getStringLiteralType(""); + var zeroType = getNumberLiteralType(0); + var zeroBigIntType = getBigIntLiteralType({ negative: false, base10Value: "0" }); + var resolutionTargets = []; + var resolutionResults = []; + var resolutionPropertyNames = []; + var resolutionStart = 0; + var inVarianceComputation = false; + var suggestionCount = 0; + var maximumSuggestionCount = 10; + var mergedSymbols = []; + var symbolLinks = []; + var nodeLinks = []; + var flowLoopCaches = []; + var flowLoopNodes = []; + var flowLoopKeys = []; + var flowLoopTypes = []; + var sharedFlowNodes = []; + var sharedFlowTypes = []; + var flowNodeReachable = []; + var flowNodePostSuper = []; + var potentialThisCollisions = []; + var potentialNewTargetCollisions = []; + var potentialWeakMapSetCollisions = []; + var potentialReflectCollisions = []; + var potentialUnusedRenamedBindingElementsInTypes = []; + var awaitedTypeStack = []; + var reverseMappedSourceStack = []; + var reverseMappedTargetStack = []; + var reverseExpandingFlags = 0 /* None */; + var diagnostics = createDiagnosticCollection(); + var suggestionDiagnostics = createDiagnosticCollection(); + var typeofType = createTypeofType(); + var _jsxNamespace; + var _jsxFactoryEntity; + var subtypeRelation = /* @__PURE__ */ new Map(); + var strictSubtypeRelation = /* @__PURE__ */ new Map(); + var assignableRelation = /* @__PURE__ */ new Map(); + var comparableRelation = /* @__PURE__ */ new Map(); + var identityRelation = /* @__PURE__ */ new Map(); + var enumRelation = /* @__PURE__ */ new Map(); + var suggestedExtensions = [ + [".mts", ".mjs"], + [".ts", ".js"], + [".cts", ".cjs"], + [".mjs", ".mjs"], + [".js", ".js"], + [".cjs", ".cjs"], + [".tsx", compilerOptions.jsx === 1 /* Preserve */ ? ".jsx" : ".js"], + [".jsx", ".jsx"], + [".json", ".json"] + ]; + initializeTypeChecker(); + return checker; + function isDefinitelyReferenceToGlobalSymbolObject(node) { + if (!isPropertyAccessExpression(node)) return false; + if (!isIdentifier(node.name)) return false; + if (!isPropertyAccessExpression(node.expression) && !isIdentifier(node.expression)) return false; + if (isIdentifier(node.expression)) { + return idText(node.expression) === "Symbol" && getResolvedSymbol(node.expression) === (getGlobalSymbol( + "Symbol", + 111551 /* Value */ | 1048576 /* ExportValue */, + /*diagnostic*/ + void 0 + ) || unknownSymbol); + } + if (!isIdentifier(node.expression.expression)) return false; + return idText(node.expression.name) === "Symbol" && idText(node.expression.expression) === "globalThis" && getResolvedSymbol(node.expression.expression) === globalThisSymbol; + } + function getCachedType(key) { + return key ? cachedTypes.get(key) : void 0; + } + function setCachedType(key, type) { + if (key) cachedTypes.set(key, type); + return type; + } + function getJsxNamespace(location) { + if (location) { + const file = getSourceFileOfNode(location); + if (file) { + if (isJsxOpeningFragment(location)) { + if (file.localJsxFragmentNamespace) { + return file.localJsxFragmentNamespace; + } + const jsxFragmentPragma = file.pragmas.get("jsxfrag"); + if (jsxFragmentPragma) { + const chosenPragma = isArray(jsxFragmentPragma) ? jsxFragmentPragma[0] : jsxFragmentPragma; + file.localJsxFragmentFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion); + visitNode(file.localJsxFragmentFactory, markAsSynthetic, isEntityName); + if (file.localJsxFragmentFactory) { + return file.localJsxFragmentNamespace = getFirstIdentifier(file.localJsxFragmentFactory).escapedText; + } + } + const entity = getJsxFragmentFactoryEntity(location); + if (entity) { + file.localJsxFragmentFactory = entity; + return file.localJsxFragmentNamespace = getFirstIdentifier(entity).escapedText; + } + } else { + const localJsxNamespace = getLocalJsxNamespace(file); + if (localJsxNamespace) { + return file.localJsxNamespace = localJsxNamespace; + } + } + } + } + if (!_jsxNamespace) { + _jsxNamespace = "React"; + if (compilerOptions.jsxFactory) { + _jsxFactoryEntity = parseIsolatedEntityName(compilerOptions.jsxFactory, languageVersion); + visitNode(_jsxFactoryEntity, markAsSynthetic); + if (_jsxFactoryEntity) { + _jsxNamespace = getFirstIdentifier(_jsxFactoryEntity).escapedText; + } + } else if (compilerOptions.reactNamespace) { + _jsxNamespace = escapeLeadingUnderscores(compilerOptions.reactNamespace); + } + } + if (!_jsxFactoryEntity) { + _jsxFactoryEntity = factory.createQualifiedName(factory.createIdentifier(unescapeLeadingUnderscores(_jsxNamespace)), "createElement"); + } + return _jsxNamespace; + } + function getLocalJsxNamespace(file) { + if (file.localJsxNamespace) { + return file.localJsxNamespace; + } + const jsxPragma = file.pragmas.get("jsx"); + if (jsxPragma) { + const chosenPragma = isArray(jsxPragma) ? jsxPragma[0] : jsxPragma; + file.localJsxFactory = parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion); + visitNode(file.localJsxFactory, markAsSynthetic, isEntityName); + if (file.localJsxFactory) { + return file.localJsxNamespace = getFirstIdentifier(file.localJsxFactory).escapedText; + } + } + } + function markAsSynthetic(node) { + setTextRangePosEnd(node, -1, -1); + return visitEachChild( + node, + markAsSynthetic, + /*context*/ + void 0 + ); + } + function getEmitResolver(sourceFile, cancellationToken2, skipDiagnostics) { + if (!skipDiagnostics) getDiagnostics(sourceFile, cancellationToken2); + return emitResolver; + } + function lookupOrIssueError(location, message, ...args) { + const diagnostic = location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); + const existing = diagnostics.lookup(diagnostic); + if (existing) { + return existing; + } else { + diagnostics.add(diagnostic); + return diagnostic; + } + } + function errorSkippedOn(key, location, message, ...args) { + const diagnostic = error(location, message, ...args); + diagnostic.skippedOn = key; + return diagnostic; + } + function createError(location, message, ...args) { + return location ? createDiagnosticForNode(location, message, ...args) : createCompilerDiagnostic(message, ...args); + } + function error(location, message, ...args) { + const diagnostic = createError(location, message, ...args); + diagnostics.add(diagnostic); + return diagnostic; + } + function addErrorOrSuggestion(isError, diagnostic) { + if (isError) { + diagnostics.add(diagnostic); + } else { + suggestionDiagnostics.add({ ...diagnostic, category: 2 /* Suggestion */ }); + } + } + function errorOrSuggestion(isError, location, message, ...args) { + if (location.pos < 0 || location.end < 0) { + if (!isError) { + return; + } + const file = getSourceFileOfNode(location); + addErrorOrSuggestion(isError, "message" in message ? createFileDiagnostic(file, 0, 0, message, ...args) : createDiagnosticForFileFromMessageChain(file, message)); + return; + } + addErrorOrSuggestion(isError, "message" in message ? createDiagnosticForNode(location, message, ...args) : createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(location), location, message)); + } + function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, ...args) { + const diagnostic = error(location, message, ...args); + if (maybeMissingAwait) { + const related = createDiagnosticForNode(location, Diagnostics.Did_you_forget_to_use_await); + addRelatedInfo(diagnostic, related); + } + return diagnostic; + } + function addDeprecatedSuggestionWorker(declarations, diagnostic) { + const deprecatedTag = Array.isArray(declarations) ? forEach(declarations, getJSDocDeprecatedTag) : getJSDocDeprecatedTag(declarations); + if (deprecatedTag) { + addRelatedInfo( + diagnostic, + createDiagnosticForNode(deprecatedTag, Diagnostics.The_declaration_was_marked_as_deprecated_here) + ); + } + suggestionDiagnostics.add(diagnostic); + return diagnostic; + } + function isDeprecatedSymbol(symbol) { + const parentSymbol = getParentOfSymbol(symbol); + if (parentSymbol && length(symbol.declarations) > 1) { + return parentSymbol.flags & 64 /* Interface */ ? some(symbol.declarations, isDeprecatedDeclaration) : every(symbol.declarations, isDeprecatedDeclaration); + } + return !!symbol.valueDeclaration && isDeprecatedDeclaration(symbol.valueDeclaration) || length(symbol.declarations) && every(symbol.declarations, isDeprecatedDeclaration); + } + function isDeprecatedDeclaration(declaration) { + return !!(getCombinedNodeFlagsCached(declaration) & 536870912 /* Deprecated */); + } + function addDeprecatedSuggestion(location, declarations, deprecatedEntity) { + const diagnostic = createDiagnosticForNode(location, Diagnostics._0_is_deprecated, deprecatedEntity); + return addDeprecatedSuggestionWorker(declarations, diagnostic); + } + function addDeprecatedSuggestionWithSignature(location, declaration, deprecatedEntity, signatureString) { + const diagnostic = deprecatedEntity ? createDiagnosticForNode(location, Diagnostics.The_signature_0_of_1_is_deprecated, signatureString, deprecatedEntity) : createDiagnosticForNode(location, Diagnostics._0_is_deprecated, signatureString); + return addDeprecatedSuggestionWorker(declaration, diagnostic); + } + function createSymbol(flags, name, checkFlags) { + symbolCount++; + const symbol = new Symbol12(flags | 33554432 /* Transient */, name); + symbol.links = new SymbolLinks(); + symbol.links.checkFlags = checkFlags || 0 /* None */; + return symbol; + } + function createParameter(name, type) { + const symbol = createSymbol(1 /* FunctionScopedVariable */, name); + symbol.links.type = type; + return symbol; + } + function createProperty(name, type) { + const symbol = createSymbol(4 /* Property */, name); + symbol.links.type = type; + return symbol; + } + function getExcludedSymbolFlags(flags) { + let result = 0; + if (flags & 2 /* BlockScopedVariable */) result |= 111551 /* BlockScopedVariableExcludes */; + if (flags & 1 /* FunctionScopedVariable */) result |= 111550 /* FunctionScopedVariableExcludes */; + if (flags & 4 /* Property */) result |= 0 /* PropertyExcludes */; + if (flags & 8 /* EnumMember */) result |= 900095 /* EnumMemberExcludes */; + if (flags & 16 /* Function */) result |= 110991 /* FunctionExcludes */; + if (flags & 32 /* Class */) result |= 899503 /* ClassExcludes */; + if (flags & 64 /* Interface */) result |= 788872 /* InterfaceExcludes */; + if (flags & 256 /* RegularEnum */) result |= 899327 /* RegularEnumExcludes */; + if (flags & 128 /* ConstEnum */) result |= 899967 /* ConstEnumExcludes */; + if (flags & 512 /* ValueModule */) result |= 110735 /* ValueModuleExcludes */; + if (flags & 8192 /* Method */) result |= 103359 /* MethodExcludes */; + if (flags & 32768 /* GetAccessor */) result |= 46015 /* GetAccessorExcludes */; + if (flags & 65536 /* SetAccessor */) result |= 78783 /* SetAccessorExcludes */; + if (flags & 262144 /* TypeParameter */) result |= 526824 /* TypeParameterExcludes */; + if (flags & 524288 /* TypeAlias */) result |= 788968 /* TypeAliasExcludes */; + if (flags & 2097152 /* Alias */) result |= 2097152 /* AliasExcludes */; + return result; + } + function recordMergedSymbol(target, source) { + if (!source.mergeId) { + source.mergeId = nextMergeId; + nextMergeId++; + } + mergedSymbols[source.mergeId] = target; + } + function cloneSymbol(symbol) { + const result = createSymbol(symbol.flags, symbol.escapedName); + result.declarations = symbol.declarations ? symbol.declarations.slice() : []; + result.parent = symbol.parent; + if (symbol.valueDeclaration) result.valueDeclaration = symbol.valueDeclaration; + if (symbol.constEnumOnlyModule) result.constEnumOnlyModule = true; + if (symbol.members) result.members = new Map(symbol.members); + if (symbol.exports) result.exports = new Map(symbol.exports); + recordMergedSymbol(result, symbol); + return result; + } + function mergeSymbol(target, source, unidirectional = false) { + if (!(target.flags & getExcludedSymbolFlags(source.flags)) || (source.flags | target.flags) & 67108864 /* Assignment */) { + if (source === target) { + return target; + } + if (!(target.flags & 33554432 /* Transient */)) { + const resolvedTarget = resolveSymbol(target); + if (resolvedTarget === unknownSymbol) { + return source; + } + if (!(resolvedTarget.flags & getExcludedSymbolFlags(source.flags)) || (source.flags | resolvedTarget.flags) & 67108864 /* Assignment */) { + target = cloneSymbol(resolvedTarget); + } else { + reportMergeSymbolError(target, source); + return source; + } + } + if (source.flags & 512 /* ValueModule */ && target.flags & 512 /* ValueModule */ && target.constEnumOnlyModule && !source.constEnumOnlyModule) { + target.constEnumOnlyModule = false; + } + target.flags |= source.flags; + if (source.valueDeclaration) { + setValueDeclaration(target, source.valueDeclaration); + } + addRange(target.declarations, source.declarations); + if (source.members) { + if (!target.members) target.members = createSymbolTable(); + mergeSymbolTable(target.members, source.members, unidirectional); + } + if (source.exports) { + if (!target.exports) target.exports = createSymbolTable(); + mergeSymbolTable(target.exports, source.exports, unidirectional); + } + if (!unidirectional) { + recordMergedSymbol(target, source); + } + } else if (target.flags & 1024 /* NamespaceModule */) { + if (target !== globalThisSymbol) { + error( + source.declarations && getNameOfDeclaration(source.declarations[0]), + Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, + symbolToString(target) + ); + } + } else { + reportMergeSymbolError(target, source); + } + return target; + function reportMergeSymbolError(target2, source2) { + const isEitherEnum = !!(target2.flags & 384 /* Enum */ || source2.flags & 384 /* Enum */); + const isEitherBlockScoped = !!(target2.flags & 2 /* BlockScopedVariable */ || source2.flags & 2 /* BlockScopedVariable */); + const message = isEitherEnum ? Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations : isEitherBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; + const sourceSymbolFile = source2.declarations && getSourceFileOfNode(source2.declarations[0]); + const targetSymbolFile = target2.declarations && getSourceFileOfNode(target2.declarations[0]); + const isSourcePlainJs = isPlainJsFile(sourceSymbolFile, compilerOptions.checkJs); + const isTargetPlainJs = isPlainJsFile(targetSymbolFile, compilerOptions.checkJs); + const symbolName2 = symbolToString(source2); + if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) { + const firstFile = comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile; + const secondFile = firstFile === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile; + const filesDuplicates = getOrUpdate(amalgamatedDuplicates, `${firstFile.path}|${secondFile.path}`, () => ({ firstFile, secondFile, conflictingSymbols: /* @__PURE__ */ new Map() })); + const conflictingSymbolInfo = getOrUpdate(filesDuplicates.conflictingSymbols, symbolName2, () => ({ isBlockScoped: isEitherBlockScoped, firstFileLocations: [], secondFileLocations: [] })); + if (!isSourcePlainJs) addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source2); + if (!isTargetPlainJs) addDuplicateLocations(conflictingSymbolInfo.secondFileLocations, target2); + } else { + if (!isSourcePlainJs) addDuplicateDeclarationErrorsForSymbols(source2, message, symbolName2, target2); + if (!isTargetPlainJs) addDuplicateDeclarationErrorsForSymbols(target2, message, symbolName2, source2); + } + } + function addDuplicateLocations(locs, symbol) { + if (symbol.declarations) { + for (const decl of symbol.declarations) { + pushIfUnique(locs, decl); + } + } + } + } + function addDuplicateDeclarationErrorsForSymbols(target, message, symbolName2, source) { + forEach(target.declarations, (node) => { + addDuplicateDeclarationError(node, message, symbolName2, source.declarations); + }); + } + function addDuplicateDeclarationError(node, message, symbolName2, relatedNodes) { + const errorNode = (getExpandoInitializer( + node, + /*isPrototypeAssignment*/ + false + ) ? getNameOfExpando(node) : getNameOfDeclaration(node)) || node; + const err = lookupOrIssueError(errorNode, message, symbolName2); + for (const relatedNode of relatedNodes || emptyArray) { + const adjustedNode = (getExpandoInitializer( + relatedNode, + /*isPrototypeAssignment*/ + false + ) ? getNameOfExpando(relatedNode) : getNameOfDeclaration(relatedNode)) || relatedNode; + if (adjustedNode === errorNode) continue; + err.relatedInformation = err.relatedInformation || []; + const leadingMessage = createDiagnosticForNode(adjustedNode, Diagnostics._0_was_also_declared_here, symbolName2); + const followOnMessage = createDiagnosticForNode(adjustedNode, Diagnostics.and_here); + if (length(err.relatedInformation) >= 5 || some(err.relatedInformation, (r) => compareDiagnostics(r, followOnMessage) === 0 /* EqualTo */ || compareDiagnostics(r, leadingMessage) === 0 /* EqualTo */)) continue; + addRelatedInfo(err, !length(err.relatedInformation) ? leadingMessage : followOnMessage); + } + } + function combineSymbolTables(first2, second) { + if (!(first2 == null ? void 0 : first2.size)) return second; + if (!(second == null ? void 0 : second.size)) return first2; + const combined = createSymbolTable(); + mergeSymbolTable(combined, first2); + mergeSymbolTable(combined, second); + return combined; + } + function mergeSymbolTable(target, source, unidirectional = false) { + source.forEach((sourceSymbol, id) => { + const targetSymbol = target.get(id); + target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol)); + }); + } + function mergeModuleAugmentation(moduleName) { + var _a, _b, _c; + const moduleAugmentation = moduleName.parent; + if (((_a = moduleAugmentation.symbol.declarations) == null ? void 0 : _a[0]) !== moduleAugmentation) { + Debug.assert(moduleAugmentation.symbol.declarations.length > 1); + return; + } + if (isGlobalScopeAugmentation(moduleAugmentation)) { + mergeSymbolTable(globals, moduleAugmentation.symbol.exports); + } else { + const moduleNotFoundError = !(moduleName.parent.parent.flags & 33554432 /* Ambient */) ? Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found : void 0; + let mainModule = resolveExternalModuleNameWorker( + moduleName, + moduleName, + moduleNotFoundError, + /*isForAugmentation*/ + true + ); + if (!mainModule) { + return; + } + mainModule = resolveExternalModuleSymbol(mainModule); + if (mainModule.flags & 1920 /* Namespace */) { + if (some(patternAmbientModules, (module2) => mainModule === module2.symbol)) { + const merged = mergeSymbol( + moduleAugmentation.symbol, + mainModule, + /*unidirectional*/ + true + ); + if (!patternAmbientModuleAugmentations) { + patternAmbientModuleAugmentations = /* @__PURE__ */ new Map(); + } + patternAmbientModuleAugmentations.set(moduleName.text, merged); + } else { + if (((_b = mainModule.exports) == null ? void 0 : _b.get("__export" /* ExportStar */)) && ((_c = moduleAugmentation.symbol.exports) == null ? void 0 : _c.size)) { + const resolvedExports = getResolvedMembersOrExportsOfSymbol(mainModule, "resolvedExports" /* resolvedExports */); + for (const [key, value] of arrayFrom(moduleAugmentation.symbol.exports.entries())) { + if (resolvedExports.has(key) && !mainModule.exports.has(key)) { + mergeSymbol(resolvedExports.get(key), value); + } + } + } + mergeSymbol(mainModule, moduleAugmentation.symbol); + } + } else { + error(moduleName, Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text); + } + } + } + function addUndefinedToGlobalsOrErrorOnRedeclaration() { + const name = undefinedSymbol.escapedName; + const targetSymbol = globals.get(name); + if (targetSymbol) { + forEach(targetSymbol.declarations, (declaration) => { + if (!isTypeDeclaration(declaration)) { + diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, unescapeLeadingUnderscores(name))); + } + }); + } else { + globals.set(name, undefinedSymbol); + } + } + function getSymbolLinks(symbol) { + if (symbol.flags & 33554432 /* Transient */) return symbol.links; + const id = getSymbolId(symbol); + return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks()); + } + function getNodeLinks(node) { + const nodeId = getNodeId(node); + return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks()); + } + function getSymbol(symbols, name, meaning) { + if (meaning) { + const symbol = getMergedSymbol(symbols.get(name)); + if (symbol) { + if (symbol.flags & meaning) { + return symbol; + } + if (symbol.flags & 2097152 /* Alias */) { + const targetFlags = getSymbolFlags(symbol); + if (targetFlags & meaning) { + return symbol; + } + } + } + } + } + function getSymbolsOfParameterPropertyDeclaration(parameter, parameterName) { + const constructorDeclaration = parameter.parent; + const classDeclaration = parameter.parent.parent; + const parameterSymbol = getSymbol(constructorDeclaration.locals, parameterName, 111551 /* Value */); + const propertySymbol = getSymbol(getMembersOfSymbol(classDeclaration.symbol), parameterName, 111551 /* Value */); + if (parameterSymbol && propertySymbol) { + return [parameterSymbol, propertySymbol]; + } + return Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration"); + } + function isBlockScopedNameDeclaredBeforeUse(declaration, usage) { + const declarationFile = getSourceFileOfNode(declaration); + const useFile = getSourceFileOfNode(usage); + const declContainer = getEnclosingBlockScopeContainer(declaration); + if (declarationFile !== useFile) { + if (moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator) || !compilerOptions.outFile || isInTypeQuery(usage) || declaration.flags & 33554432 /* Ambient */) { + return true; + } + if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { + return true; + } + const sourceFiles = host.getSourceFiles(); + return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile); + } + if (!!(usage.flags & 16777216 /* JSDoc */) || isInTypeQuery(usage) || isInAmbientOrTypeNode(usage)) { + return true; + } + if (declaration.pos <= usage.pos && !(isPropertyDeclaration(declaration) && isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) { + if (declaration.kind === 208 /* BindingElement */) { + const errorBindingElement = getAncestor(usage, 208 /* BindingElement */); + if (errorBindingElement) { + return findAncestor(errorBindingElement, isBindingElement) !== findAncestor(declaration, isBindingElement) || declaration.pos < errorBindingElement.pos; + } + return isBlockScopedNameDeclaredBeforeUse(getAncestor(declaration, 260 /* VariableDeclaration */), usage); + } else if (declaration.kind === 260 /* VariableDeclaration */) { + return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage); + } else if (isClassLike(declaration)) { + const container = findAncestor(usage, (n) => n === declaration ? "quit" : isComputedPropertyName(n) ? n.parent.parent === declaration : !legacyDecorators && isDecorator(n) && (n.parent === declaration || isMethodDeclaration(n.parent) && n.parent.parent === declaration || isGetOrSetAccessorDeclaration(n.parent) && n.parent.parent === declaration || isPropertyDeclaration(n.parent) && n.parent.parent === declaration || isParameter(n.parent) && n.parent.parent.parent === declaration)); + if (!container) { + return true; + } + if (!legacyDecorators && isDecorator(container)) { + return !!findAncestor(usage, (n) => n === container ? "quit" : isFunctionLike(n) && !getImmediatelyInvokedFunctionExpression(n)); + } + return false; + } else if (isPropertyDeclaration(declaration)) { + return !isPropertyImmediatelyReferencedWithinDeclaration( + declaration, + usage, + /*stopAtAnyPropertyDeclaration*/ + false + ); + } else if (isParameterPropertyDeclaration(declaration, declaration.parent)) { + return !(emitStandardClassFields && getContainingClass(declaration) === getContainingClass(usage) && isUsedInFunctionOrInstanceProperty(usage, declaration)); + } + return true; + } + if (usage.parent.kind === 281 /* ExportSpecifier */ || usage.parent.kind === 277 /* ExportAssignment */ && usage.parent.isExportEquals) { + return true; + } + if (usage.kind === 277 /* ExportAssignment */ && usage.isExportEquals) { + return true; + } + if (isUsedInFunctionOrInstanceProperty(usage, declaration)) { + if (emitStandardClassFields && getContainingClass(declaration) && (isPropertyDeclaration(declaration) || isParameterPropertyDeclaration(declaration, declaration.parent))) { + return !isPropertyImmediatelyReferencedWithinDeclaration( + declaration, + usage, + /*stopAtAnyPropertyDeclaration*/ + true + ); + } else { + return true; + } + } + return false; + function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration2, usage2) { + switch (declaration2.parent.parent.kind) { + case 243 /* VariableStatement */: + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + if (isSameScopeDescendentOf(usage2, declaration2, declContainer)) { + return true; + } + break; + } + const grandparent = declaration2.parent.parent; + return isForInOrOfStatement(grandparent) && isSameScopeDescendentOf(usage2, grandparent.expression, declContainer); + } + function isUsedInFunctionOrInstanceProperty(usage2, declaration2) { + return !!findAncestor(usage2, (current) => { + if (current === declContainer) { + return "quit"; + } + if (isFunctionLike(current)) { + return true; + } + if (isClassStaticBlockDeclaration(current)) { + return declaration2.pos < usage2.pos; + } + const propertyDeclaration = tryCast(current.parent, isPropertyDeclaration); + if (propertyDeclaration) { + const initializerOfProperty = propertyDeclaration.initializer === current; + if (initializerOfProperty) { + if (isStatic(current.parent)) { + if (declaration2.kind === 174 /* MethodDeclaration */) { + return true; + } + if (isPropertyDeclaration(declaration2) && getContainingClass(usage2) === getContainingClass(declaration2)) { + const propName = declaration2.name; + if (isIdentifier(propName) || isPrivateIdentifier(propName)) { + const type = getTypeOfSymbol(getSymbolOfDeclaration(declaration2)); + const staticBlocks = filter(declaration2.parent.members, isClassStaticBlockDeclaration); + if (isPropertyInitializedInStaticBlocks(propName, type, staticBlocks, declaration2.parent.pos, current.pos)) { + return true; + } + } + } + } else { + const isDeclarationInstanceProperty = declaration2.kind === 172 /* PropertyDeclaration */ && !isStatic(declaration2); + if (!isDeclarationInstanceProperty || getContainingClass(usage2) !== getContainingClass(declaration2)) { + return true; + } + } + } + } + return false; + }); + } + function isPropertyImmediatelyReferencedWithinDeclaration(declaration2, usage2, stopAtAnyPropertyDeclaration) { + if (usage2.end > declaration2.end) { + return false; + } + const ancestorChangingReferenceScope = findAncestor(usage2, (node) => { + if (node === declaration2) { + return "quit"; + } + switch (node.kind) { + case 219 /* ArrowFunction */: + return true; + case 172 /* PropertyDeclaration */: + return stopAtAnyPropertyDeclaration && (isPropertyDeclaration(declaration2) && node.parent === declaration2.parent || isParameterPropertyDeclaration(declaration2, declaration2.parent) && node.parent === declaration2.parent.parent) ? "quit" : true; + case 241 /* Block */: + switch (node.parent.kind) { + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + return true; + default: + return false; + } + default: + return false; + } + }); + return ancestorChangingReferenceScope === void 0; + } + } + function getRequiresScopeChangeCache(node) { + return getNodeLinks(node).declarationRequiresScopeChange; + } + function setRequiresScopeChangeCache(node, value) { + getNodeLinks(node).declarationRequiresScopeChange = value; + } + function checkAndReportErrorForInvalidInitializer(errorLocation, name, propertyWithInvalidInitializer, result) { + if (!emitStandardClassFields) { + if (errorLocation && !result && checkAndReportErrorForMissingPrefix(errorLocation, name, name)) { + return true; + } + error( + errorLocation, + errorLocation && propertyWithInvalidInitializer.type && textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos) ? Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor : Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, + declarationNameToString(propertyWithInvalidInitializer.name), + diagnosticName(name) + ); + return true; + } + return false; + } + function onFailedToResolveSymbol(errorLocation, nameArg, meaning, nameNotFoundMessage) { + const name = isString(nameArg) ? nameArg : nameArg.escapedText; + addLazyDiagnostic(() => { + if (!errorLocation || errorLocation.parent.kind !== 324 /* JSDocLink */ && !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && !checkAndReportErrorForExtendingInterface(errorLocation) && !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) && !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) && !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) && !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) { + let suggestion; + let suggestedLib; + if (nameArg) { + suggestedLib = getSuggestedLibForNonExistentName(nameArg); + if (suggestedLib) { + error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), suggestedLib); + } + } + if (!suggestedLib && suggestionCount < maximumSuggestionCount) { + suggestion = getSuggestedSymbolForNonexistentSymbol(errorLocation, name, meaning); + const isGlobalScopeAugmentationDeclaration = (suggestion == null ? void 0 : suggestion.valueDeclaration) && isAmbientModule(suggestion.valueDeclaration) && isGlobalScopeAugmentation(suggestion.valueDeclaration); + if (isGlobalScopeAugmentationDeclaration) { + suggestion = void 0; + } + if (suggestion) { + const suggestionName = symbolToString(suggestion); + const isUncheckedJS = isUncheckedJSSuggestion( + errorLocation, + suggestion, + /*excludeClasses*/ + false + ); + const message = meaning === 1920 /* Namespace */ || nameArg && typeof nameArg !== "string" && nodeIsSynthesized(nameArg) ? Diagnostics.Cannot_find_namespace_0_Did_you_mean_1 : isUncheckedJS ? Diagnostics.Could_not_find_name_0_Did_you_mean_1 : Diagnostics.Cannot_find_name_0_Did_you_mean_1; + const diagnostic = createError(errorLocation, message, diagnosticName(nameArg), suggestionName); + diagnostic.canonicalHead = getCanonicalDiagnostic(nameNotFoundMessage, diagnosticName(nameArg)); + addErrorOrSuggestion(!isUncheckedJS, diagnostic); + if (suggestion.valueDeclaration) { + addRelatedInfo( + diagnostic, + createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName) + ); + } + } + } + if (!suggestion && !suggestedLib && nameArg) { + error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg)); + } + suggestionCount++; + } + }); + } + function onSuccessfullyResolvedSymbol(errorLocation, result, meaning, lastLocation, associatedDeclarationForContainingInitializerOrBindingName, withinDeferredContext) { + addLazyDiagnostic(() => { + var _a; + const name = result.escapedName; + const isInExternalModule = lastLocation && isSourceFile(lastLocation) && isExternalOrCommonJsModule(lastLocation); + if (errorLocation && (meaning & 2 /* BlockScopedVariable */ || (meaning & 32 /* Class */ || meaning & 384 /* Enum */) && (meaning & 111551 /* Value */) === 111551 /* Value */)) { + const exportOrLocalSymbol = getExportSymbolOfValueSymbolIfExported(result); + if (exportOrLocalSymbol.flags & 2 /* BlockScopedVariable */ || exportOrLocalSymbol.flags & 32 /* Class */ || exportOrLocalSymbol.flags & 384 /* Enum */) { + checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation); + } + } + if (isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(errorLocation.flags & 16777216 /* JSDoc */)) { + const merged = getMergedSymbol(result); + if (length(merged.declarations) && every(merged.declarations, (d) => isNamespaceExportDeclaration(d) || isSourceFile(d) && !!d.symbol.globalExports)) { + errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, unescapeLeadingUnderscores(name)); + } + } + if (associatedDeclarationForContainingInitializerOrBindingName && !withinDeferredContext && (meaning & 111551 /* Value */) === 111551 /* Value */) { + const candidate = getMergedSymbol(getLateBoundSymbol(result)); + const root = getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName); + if (candidate === getSymbolOfDeclaration(associatedDeclarationForContainingInitializerOrBindingName)) { + error(errorLocation, Diagnostics.Parameter_0_cannot_reference_itself, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name)); + } else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && getSymbol(root.parent.locals, candidate.escapedName, meaning) === candidate) { + error(errorLocation, Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), declarationNameToString(errorLocation)); + } + } + if (errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */ && !(result.flags & 111551 /* Value */) && !isValidTypeOnlyAliasUseSite(errorLocation)) { + const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* Value */); + if (typeOnlyDeclaration) { + const message = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type : Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type; + const unescapedName = unescapeLeadingUnderscores(name); + addTypeOnlyDeclarationRelatedInfo( + error(errorLocation, message, unescapedName), + typeOnlyDeclaration, + unescapedName + ); + } + } + if (compilerOptions.isolatedModules && result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */) { + const isGlobal = getSymbol(globals, name, meaning) === result; + const nonValueSymbol = isGlobal && isSourceFile(lastLocation) && lastLocation.locals && getSymbol(lastLocation.locals, name, ~111551 /* Value */); + if (nonValueSymbol) { + const importDecl = (_a = nonValueSymbol.declarations) == null ? void 0 : _a.find((d) => d.kind === 276 /* ImportSpecifier */ || d.kind === 273 /* ImportClause */ || d.kind === 274 /* NamespaceImport */ || d.kind === 271 /* ImportEqualsDeclaration */); + if (importDecl && !isTypeOnlyImportDeclaration(importDecl)) { + error(importDecl, Diagnostics.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled, unescapeLeadingUnderscores(name)); + } + } + } + }); + } + function addTypeOnlyDeclarationRelatedInfo(diagnostic, typeOnlyDeclaration, unescapedName) { + if (!typeOnlyDeclaration) return diagnostic; + return addRelatedInfo( + diagnostic, + createDiagnosticForNode( + typeOnlyDeclaration, + typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here, + unescapedName + ) + ); + } + function diagnosticName(nameArg) { + return isString(nameArg) ? unescapeLeadingUnderscores(nameArg) : declarationNameToString(nameArg); + } + function checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) { + if (!isIdentifier(errorLocation) || errorLocation.escapedText !== name || isTypeReferenceIdentifier(errorLocation) || isInTypeQuery(errorLocation)) { + return false; + } + const container = getThisContainer( + errorLocation, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + let location = container; + while (location) { + if (isClassLike(location.parent)) { + const classSymbol = getSymbolOfDeclaration(location.parent); + if (!classSymbol) { + break; + } + const constructorType = getTypeOfSymbol(classSymbol); + if (getPropertyOfType(constructorType, name)) { + error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol)); + return true; + } + if (location === container && !isStatic(location)) { + const instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; + if (getPropertyOfType(instanceType, name)) { + error(errorLocation, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg)); + return true; + } + } + } + location = location.parent; + } + return false; + } + function checkAndReportErrorForExtendingInterface(errorLocation) { + const expression = getEntityNameForExtendingInterface(errorLocation); + if (expression && resolveEntityName( + expression, + 64 /* Interface */, + /*ignoreErrors*/ + true + )) { + error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression)); + return true; + } + return false; + } + function getEntityNameForExtendingInterface(node) { + switch (node.kind) { + case 80 /* Identifier */: + case 211 /* PropertyAccessExpression */: + return node.parent ? getEntityNameForExtendingInterface(node.parent) : void 0; + case 233 /* ExpressionWithTypeArguments */: + if (isEntityNameExpression(node.expression)) { + return node.expression; + } + default: + return void 0; + } + } + function checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) { + const namespaceMeaning = 1920 /* Namespace */ | (isInJSFile(errorLocation) ? 111551 /* Value */ : 0); + if (meaning === namespaceMeaning) { + const symbol = resolveSymbol(resolveName( + errorLocation, + name, + 788968 /* Type */ & ~namespaceMeaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )); + const parent = errorLocation.parent; + if (symbol) { + if (isQualifiedName(parent)) { + Debug.assert(parent.left === errorLocation, "Should only be resolving left side of qualified name as a namespace"); + const propName = parent.right.escapedText; + const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName); + if (propType) { + error( + parent, + Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, + unescapeLeadingUnderscores(name), + unescapeLeadingUnderscores(propName) + ); + return true; + } + } + error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name)); + return true; + } + } + return false; + } + function checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning) { + if (meaning & (788968 /* Type */ & ~1920 /* Namespace */)) { + const symbol = resolveSymbol(resolveName( + errorLocation, + name, + ~788968 /* Type */ & 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )); + if (symbol && !(symbol.flags & 1920 /* Namespace */)) { + error(errorLocation, Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, unescapeLeadingUnderscores(name)); + return true; + } + } + return false; + } + function isPrimitiveTypeName(name) { + return name === "any" || name === "string" || name === "number" || name === "boolean" || name === "never" || name === "unknown"; + } + function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) { + if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 281 /* ExportSpecifier */) { + error(errorLocation, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name); + return true; + } + return false; + } + function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) { + if (meaning & 111551 /* Value */) { + if (isPrimitiveTypeName(name)) { + const grandparent = errorLocation.parent.parent; + if (grandparent && grandparent.parent && isHeritageClause(grandparent)) { + const heritageKind = grandparent.token; + const containerKind = grandparent.parent.kind; + if (containerKind === 264 /* InterfaceDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) { + error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name)); + } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) { + error(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name)); + } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 119 /* ImplementsKeyword */) { + error(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name)); + } + } else { + error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name)); + } + return true; + } + const symbol = resolveSymbol(resolveName( + errorLocation, + name, + 788968 /* Type */ & ~111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )); + const allFlags = symbol && getSymbolFlags(symbol); + if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) { + const rawName = unescapeLeadingUnderscores(name); + if (isES2015OrLaterConstructorName(name)) { + error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName); + } else if (maybeMappedType(errorLocation, symbol)) { + error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K"); + } else { + error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName); + } + return true; + } + } + return false; + } + function maybeMappedType(node, symbol) { + const container = findAncestor(node.parent, (n) => isComputedPropertyName(n) || isPropertySignature(n) ? false : isTypeLiteralNode(n) || "quit"); + if (container && container.members.length === 1) { + const type = getDeclaredTypeOfSymbol(symbol); + return !!(type.flags & 1048576 /* Union */) && allTypesAssignableToKind( + type, + 384 /* StringOrNumberLiteral */, + /*strict*/ + true + ); + } + return false; + } + function isES2015OrLaterConstructorName(n) { + switch (n) { + case "Promise": + case "Symbol": + case "Map": + case "WeakMap": + case "Set": + case "WeakSet": + return true; + } + return false; + } + function checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) { + if (meaning & (111551 /* Value */ & ~788968 /* Type */)) { + const symbol = resolveSymbol(resolveName( + errorLocation, + name, + 1024 /* NamespaceModule */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )); + if (symbol) { + error( + errorLocation, + Diagnostics.Cannot_use_namespace_0_as_a_value, + unescapeLeadingUnderscores(name) + ); + return true; + } + } else if (meaning & (788968 /* Type */ & ~111551 /* Value */)) { + const symbol = resolveSymbol(resolveName( + errorLocation, + name, + 1536 /* Module */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )); + if (symbol) { + error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_type, unescapeLeadingUnderscores(name)); + return true; + } + } + return false; + } + function checkResolvedBlockScopedVariable(result, errorLocation) { + var _a; + Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */)); + if (result.flags & (16 /* Function */ | 1 /* FunctionScopedVariable */ | 67108864 /* Assignment */) && result.flags & 32 /* Class */) { + return; + } + const declaration = (_a = result.declarations) == null ? void 0 : _a.find( + (d) => isBlockOrCatchScoped(d) || isClassLike(d) || d.kind === 266 /* EnumDeclaration */ + ); + if (declaration === void 0) return Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration"); + if (!(declaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) { + let diagnosticMessage; + const declarationName = declarationNameToString(getNameOfDeclaration(declaration)); + if (result.flags & 2 /* BlockScopedVariable */) { + diagnosticMessage = error(errorLocation, Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName); + } else if (result.flags & 32 /* Class */) { + diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName); + } else if (result.flags & 256 /* RegularEnum */) { + diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); + } else { + Debug.assert(!!(result.flags & 128 /* ConstEnum */)); + if (getIsolatedModules(compilerOptions)) { + diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName); + } + } + if (diagnosticMessage) { + addRelatedInfo(diagnosticMessage, createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName)); + } + } + } + function isSameScopeDescendentOf(initial, parent, stopAt) { + return !!parent && !!findAncestor(initial, (n) => n === parent || (n === stopAt || isFunctionLike(n) && (!getImmediatelyInvokedFunctionExpression(n) || getFunctionFlags(n) & 3 /* AsyncGenerator */) ? "quit" : false)); + } + function getAnyImportSyntax(node) { + switch (node.kind) { + case 271 /* ImportEqualsDeclaration */: + return node; + case 273 /* ImportClause */: + return node.parent; + case 274 /* NamespaceImport */: + return node.parent.parent; + case 276 /* ImportSpecifier */: + return node.parent.parent.parent; + default: + return void 0; + } + } + function getDeclarationOfAliasSymbol(symbol) { + return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration); + } + function isAliasSymbolDeclaration(node) { + return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); + } + function isAliasableOrJsExpression(e) { + return isAliasableExpression(e) || isFunctionExpression(e) && isJSConstructor(e); + } + function getTargetOfImportEqualsDeclaration(node, dontResolveAlias) { + const commonJSPropertyAccess = getCommonJSPropertyAccess(node); + if (commonJSPropertyAccess) { + const name = getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0]; + return isIdentifier(commonJSPropertyAccess.name) ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText)) : void 0; + } + if (isVariableDeclaration(node) || node.moduleReference.kind === 283 /* ExternalModuleReference */) { + const immediate = resolveExternalModuleName( + node, + getExternalModuleRequireArgument(node) || getExternalModuleImportEqualsDeclarationExpression(node) + ); + const resolved2 = resolveExternalModuleSymbol(immediate); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + immediate, + resolved2, + /*overwriteEmpty*/ + false + ); + return resolved2; + } + const resolved = getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, dontResolveAlias); + checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved); + return resolved; + } + function checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved) { + if (markSymbolOfAliasDeclarationIfTypeOnly( + node, + /*immediateTarget*/ + void 0, + resolved, + /*overwriteEmpty*/ + false + ) && !node.isTypeOnly) { + const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node)); + const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; + const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; + const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); + addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); + } + } + function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) { + const exportValue = moduleSymbol.exports.get("export=" /* ExportEquals */); + const exportSymbol = exportValue ? getPropertyOfType( + getTypeOfSymbol(exportValue), + name, + /*skipObjectFunctionPropertyAugment*/ + true + ) : moduleSymbol.exports.get(name); + const resolved = resolveSymbol(exportSymbol, dontResolveAlias); + markSymbolOfAliasDeclarationIfTypeOnly( + sourceNode, + exportSymbol, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function isSyntacticDefault(node) { + return isExportAssignment(node) && !node.isExportEquals || hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) || isNamespaceExport(node); + } + function getUsageModeForExpression(usage) { + return isStringLiteralLike(usage) ? host.getModeForUsageLocation(getSourceFileOfNode(usage), usage) : void 0; + } + function isESMFormatImportImportingCommonjsFormatFile(usageMode, targetMode) { + return usageMode === 99 /* ESNext */ && targetMode === 1 /* CommonJS */; + } + function isOnlyImportedAsDefault(usage) { + const usageMode = getUsageModeForExpression(usage); + return usageMode === 99 /* ESNext */ && endsWith(usage.text, ".json" /* Json */); + } + function canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, usage) { + const usageMode = file && getUsageModeForExpression(usage); + if (file && usageMode !== void 0 && 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { + const result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); + if (usageMode === 99 /* ESNext */ || result) { + return result; + } + } + if (!allowSyntheticDefaultImports) { + return false; + } + if (!file || file.isDeclarationFile) { + const defaultExportSymbol = resolveExportByName( + moduleSymbol, + "default" /* Default */, + /*sourceNode*/ + void 0, + /*dontResolveAlias*/ + true + ); + if (defaultExportSymbol && some(defaultExportSymbol.declarations, isSyntacticDefault)) { + return false; + } + if (resolveExportByName( + moduleSymbol, + escapeLeadingUnderscores("__esModule"), + /*sourceNode*/ + void 0, + dontResolveAlias + )) { + return false; + } + return true; + } + if (!isSourceFileJS(file)) { + return hasExportAssignmentSymbol(moduleSymbol); + } + return typeof file.externalModuleIndicator !== "object" && !resolveExportByName( + moduleSymbol, + escapeLeadingUnderscores("__esModule"), + /*sourceNode*/ + void 0, + dontResolveAlias + ); + } + function getTargetOfImportClause(node, dontResolveAlias) { + const moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier); + if (moduleSymbol) { + return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias); + } + } + function getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias) { + var _a; + let exportDefaultSymbol; + if (isShorthandAmbientModuleSymbol(moduleSymbol)) { + exportDefaultSymbol = moduleSymbol; + } else { + exportDefaultSymbol = resolveExportByName(moduleSymbol, "default" /* Default */, node, dontResolveAlias); + } + const file = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); + const specifier = getModuleSpecifierForImportOrExport(node); + if (!specifier) { + return exportDefaultSymbol; + } + const hasDefaultOnly = isOnlyImportedAsDefault(specifier); + const hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier); + if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) { + if (hasExportAssignmentSymbol(moduleSymbol) && !allowSyntheticDefaultImports) { + const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; + const exportEqualsSymbol = moduleSymbol.exports.get("export=" /* ExportEquals */); + const exportAssignment = exportEqualsSymbol.valueDeclaration; + const err = error(node.name, Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName); + if (exportAssignment) { + addRelatedInfo( + err, + createDiagnosticForNode( + exportAssignment, + Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, + compilerOptionName + ) + ); + } + } else if (isImportClause(node)) { + reportNonDefaultExport(moduleSymbol, node); + } else { + errorNoModuleMemberSymbol(moduleSymbol, moduleSymbol, node, isImportOrExportSpecifier(node) && node.propertyName || node.name); + } + } else if (hasSyntheticDefault || hasDefaultOnly) { + const resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + moduleSymbol, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + markSymbolOfAliasDeclarationIfTypeOnly( + node, + exportDefaultSymbol, + /*finalTarget*/ + void 0, + /*overwriteEmpty*/ + false + ); + return exportDefaultSymbol; + } + function getModuleSpecifierForImportOrExport(node) { + switch (node.kind) { + case 273 /* ImportClause */: + return node.parent.moduleSpecifier; + case 271 /* ImportEqualsDeclaration */: + return isExternalModuleReference(node.moduleReference) ? node.moduleReference.expression : void 0; + case 274 /* NamespaceImport */: + return node.parent.parent.moduleSpecifier; + case 276 /* ImportSpecifier */: + return node.parent.parent.parent.moduleSpecifier; + case 281 /* ExportSpecifier */: + return node.parent.parent.moduleSpecifier; + default: + return Debug.assertNever(node); + } + } + function reportNonDefaultExport(moduleSymbol, node) { + var _a, _b, _c; + if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has(node.symbol.escapedName)) { + error( + node.name, + Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, + symbolToString(moduleSymbol), + symbolToString(node.symbol) + ); + } else { + const diagnostic = error(node.name, Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol)); + const exportStar = (_b = moduleSymbol.exports) == null ? void 0 : _b.get("__export" /* ExportStar */); + if (exportStar) { + const defaultExport = (_c = exportStar.declarations) == null ? void 0 : _c.find( + (decl) => { + var _a2, _b2; + return !!(isExportDeclaration(decl) && decl.moduleSpecifier && ((_b2 = (_a2 = resolveExternalModuleName(decl, decl.moduleSpecifier)) == null ? void 0 : _a2.exports) == null ? void 0 : _b2.has("default" /* Default */))); + } + ); + if (defaultExport) { + addRelatedInfo(diagnostic, createDiagnosticForNode(defaultExport, Diagnostics.export_Asterisk_does_not_re_export_a_default)); + } + } + } + } + function getTargetOfNamespaceImport(node, dontResolveAlias) { + const moduleSpecifier = node.parent.parent.moduleSpecifier; + const immediate = resolveExternalModuleName(node, moduleSpecifier); + const resolved = resolveESModuleSymbol( + immediate, + moduleSpecifier, + dontResolveAlias, + /*suppressInteropError*/ + false + ); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + immediate, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function getTargetOfNamespaceExport(node, dontResolveAlias) { + const moduleSpecifier = node.parent.moduleSpecifier; + const immediate = moduleSpecifier && resolveExternalModuleName(node, moduleSpecifier); + const resolved = moduleSpecifier && resolveESModuleSymbol( + immediate, + moduleSpecifier, + dontResolveAlias, + /*suppressInteropError*/ + false + ); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + immediate, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function combineValueAndTypeSymbols(valueSymbol, typeSymbol) { + if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) { + return unknownSymbol; + } + if (valueSymbol.flags & (788968 /* Type */ | 1920 /* Namespace */)) { + return valueSymbol; + } + const result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.escapedName); + Debug.assert(valueSymbol.declarations || typeSymbol.declarations); + result.declarations = deduplicate(concatenate(valueSymbol.declarations, typeSymbol.declarations), equateValues); + result.parent = valueSymbol.parent || typeSymbol.parent; + if (valueSymbol.valueDeclaration) result.valueDeclaration = valueSymbol.valueDeclaration; + if (typeSymbol.members) result.members = new Map(typeSymbol.members); + if (valueSymbol.exports) result.exports = new Map(valueSymbol.exports); + return result; + } + function getExportOfModule(symbol, name, specifier, dontResolveAlias) { + var _a; + if (symbol.flags & 1536 /* Module */) { + const exportSymbol = getExportsOfSymbol(symbol).get(name.escapedText); + const resolved = resolveSymbol(exportSymbol, dontResolveAlias); + const exportStarDeclaration = (_a = getSymbolLinks(symbol).typeOnlyExportStarMap) == null ? void 0 : _a.get(name.escapedText); + markSymbolOfAliasDeclarationIfTypeOnly( + specifier, + exportSymbol, + resolved, + /*overwriteEmpty*/ + false, + exportStarDeclaration, + name.escapedText + ); + return resolved; + } + } + function getPropertyOfVariable(symbol, name) { + if (symbol.flags & 3 /* Variable */) { + const typeAnnotation = symbol.valueDeclaration.type; + if (typeAnnotation) { + return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(typeAnnotation), name)); + } + } + } + function getExternalModuleMember(node, specifier, dontResolveAlias = false) { + var _a; + const moduleSpecifier = getExternalModuleRequireArgument(node) || node.moduleSpecifier; + const moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); + const name = !isPropertyAccessExpression(specifier) && specifier.propertyName || specifier.name; + if (!isIdentifier(name)) { + return void 0; + } + const suppressInteropError = name.escapedText === "default" /* Default */ && allowSyntheticDefaultImports; + const targetSymbol = resolveESModuleSymbol( + moduleSymbol, + moduleSpecifier, + /*dontResolveAlias*/ + false, + suppressInteropError + ); + if (targetSymbol) { + if (name.escapedText) { + if (isShorthandAmbientModuleSymbol(moduleSymbol)) { + return moduleSymbol; + } + let symbolFromVariable; + if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports.get("export=" /* ExportEquals */)) { + symbolFromVariable = getPropertyOfType( + getTypeOfSymbol(targetSymbol), + name.escapedText, + /*skipObjectFunctionPropertyAugment*/ + true + ); + } else { + symbolFromVariable = getPropertyOfVariable(targetSymbol, name.escapedText); + } + symbolFromVariable = resolveSymbol(symbolFromVariable, dontResolveAlias); + let symbolFromModule = getExportOfModule(targetSymbol, name, specifier, dontResolveAlias); + if (symbolFromModule === void 0 && name.escapedText === "default" /* Default */) { + const file = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); + if (isOnlyImportedAsDefault(moduleSpecifier) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { + symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); + } + } + const symbol = symbolFromModule && symbolFromVariable && symbolFromModule !== symbolFromVariable ? combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : symbolFromModule || symbolFromVariable; + if (!symbol) { + errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name); + } + return symbol; + } + } + } + function errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name) { + var _a; + const moduleName = getFullyQualifiedName(moduleSymbol, node); + const declarationName = declarationNameToString(name); + const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol); + if (suggestion !== void 0) { + const suggestionName = symbolToString(suggestion); + const diagnostic = error(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); + if (suggestion.valueDeclaration) { + addRelatedInfo(diagnostic, createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName)); + } + } else { + if ((_a = moduleSymbol.exports) == null ? void 0 : _a.has("default" /* Default */)) { + error( + name, + Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, + moduleName, + declarationName + ); + } else { + reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName); + } + } + } + function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) { + var _a, _b; + const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name.escapedText); + const exports2 = moduleSymbol.exports; + if (localSymbol) { + const exportedEqualsSymbol = exports2 == null ? void 0 : exports2.get("export=" /* ExportEquals */); + if (exportedEqualsSymbol) { + getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + } else { + const exportedSymbol = exports2 ? find(symbolsToArray(exports2), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0; + const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName); + if (localSymbol.declarations) { + addRelatedInfo(diagnostic, ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName))); + } + } + } else { + error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName); + } + } + function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) { + if (moduleKind >= 5 /* ES2015 */) { + const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; + error(name, message, declarationName); + } else { + if (isInJSFile(node)) { + const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import : Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; + error(name, message, declarationName); + } else { + const message = getESModuleInterop(compilerOptions) ? Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import : Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import; + error(name, message, declarationName, declarationName, moduleName); + } + } + } + function getTargetOfImportSpecifier(node, dontResolveAlias) { + if (isImportSpecifier(node) && idText(node.propertyName || node.name) === "default" /* Default */) { + const specifier = getModuleSpecifierForImportOrExport(node); + const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); + if (moduleSymbol) { + return getTargetofModuleDefault(moduleSymbol, node, dontResolveAlias); + } + } + const root = isBindingElement(node) ? getRootDeclaration(node) : node.parent.parent.parent; + const commonJSPropertyAccess = getCommonJSPropertyAccess(root); + const resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias); + const name = node.propertyName || node.name; + if (commonJSPropertyAccess && resolved && isIdentifier(name)) { + return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias); + } + markSymbolOfAliasDeclarationIfTypeOnly( + node, + /*immediateTarget*/ + void 0, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function getCommonJSPropertyAccess(node) { + if (isVariableDeclaration(node) && node.initializer && isPropertyAccessExpression(node.initializer)) { + return node.initializer; + } + } + function getTargetOfNamespaceExportDeclaration(node, dontResolveAlias) { + if (canHaveSymbol(node.parent)) { + const resolved = resolveExternalModuleSymbol(node.parent.symbol, dontResolveAlias); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + /*immediateTarget*/ + void 0, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + } + function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) { + if (idText(node.propertyName || node.name) === "default" /* Default */) { + const specifier = getModuleSpecifierForImportOrExport(node); + const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); + if (moduleSymbol) { + return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias); + } + } + const resolved = node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node, dontResolveAlias) : resolveEntityName( + node.propertyName || node.name, + meaning, + /*ignoreErrors*/ + false, + dontResolveAlias + ); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + /*immediateTarget*/ + void 0, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function getTargetOfExportAssignment(node, dontResolveAlias) { + const expression = isExportAssignment(node) ? node.expression : node.right; + const resolved = getTargetOfAliasLikeExpression(expression, dontResolveAlias); + markSymbolOfAliasDeclarationIfTypeOnly( + node, + /*immediateTarget*/ + void 0, + resolved, + /*overwriteEmpty*/ + false + ); + return resolved; + } + function getTargetOfAliasLikeExpression(expression, dontResolveAlias) { + if (isClassExpression(expression)) { + return checkExpressionCached(expression).symbol; + } + if (!isEntityName(expression) && !isEntityNameExpression(expression)) { + return void 0; + } + const aliasLike = resolveEntityName( + expression, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, + /*ignoreErrors*/ + true, + dontResolveAlias + ); + if (aliasLike) { + return aliasLike; + } + checkExpressionCached(expression); + return getNodeLinks(expression).resolvedSymbol; + } + function getTargetOfAccessExpression(node, dontRecursivelyResolve) { + if (!(isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */)) { + return void 0; + } + return getTargetOfAliasLikeExpression(node.parent.right, dontRecursivelyResolve); + } + function getTargetOfAliasDeclaration(node, dontRecursivelyResolve = false) { + switch (node.kind) { + case 271 /* ImportEqualsDeclaration */: + case 260 /* VariableDeclaration */: + return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve); + case 273 /* ImportClause */: + return getTargetOfImportClause(node, dontRecursivelyResolve); + case 274 /* NamespaceImport */: + return getTargetOfNamespaceImport(node, dontRecursivelyResolve); + case 280 /* NamespaceExport */: + return getTargetOfNamespaceExport(node, dontRecursivelyResolve); + case 276 /* ImportSpecifier */: + case 208 /* BindingElement */: + return getTargetOfImportSpecifier(node, dontRecursivelyResolve); + case 281 /* ExportSpecifier */: + return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve); + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: + return getTargetOfExportAssignment(node, dontRecursivelyResolve); + case 270 /* NamespaceExportDeclaration */: + return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve); + case 304 /* ShorthandPropertyAssignment */: + return resolveEntityName( + node.name, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, + /*ignoreErrors*/ + true, + dontRecursivelyResolve + ); + case 303 /* PropertyAssignment */: + return getTargetOfAliasLikeExpression(node.initializer, dontRecursivelyResolve); + case 212 /* ElementAccessExpression */: + case 211 /* PropertyAccessExpression */: + return getTargetOfAccessExpression(node, dontRecursivelyResolve); + default: + return Debug.fail(); + } + } + function isNonLocalAlias(symbol, excludes = 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */) { + if (!symbol) return false; + return (symbol.flags & (2097152 /* Alias */ | excludes)) === 2097152 /* Alias */ || !!(symbol.flags & 2097152 /* Alias */ && symbol.flags & 67108864 /* Assignment */); + } + function resolveSymbol(symbol, dontResolveAlias) { + return !dontResolveAlias && isNonLocalAlias(symbol) ? resolveAlias(symbol) : symbol; + } + function resolveAlias(symbol) { + Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here."); + const links = getSymbolLinks(symbol); + if (!links.aliasTarget) { + links.aliasTarget = resolvingSymbol; + const node = getDeclarationOfAliasSymbol(symbol); + if (!node) return Debug.fail(); + const target = getTargetOfAliasDeclaration(node); + if (links.aliasTarget === resolvingSymbol) { + links.aliasTarget = target || unknownSymbol; + } else { + error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + } + } else if (links.aliasTarget === resolvingSymbol) { + links.aliasTarget = unknownSymbol; + } + return links.aliasTarget; + } + function tryResolveAlias(symbol) { + const links = getSymbolLinks(symbol); + if (links.aliasTarget !== resolvingSymbol) { + return resolveAlias(symbol); + } + return void 0; + } + function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) { + const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol); + const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration); + const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName( + typeOnlyDeclaration.moduleSpecifier, + typeOnlyDeclaration.moduleSpecifier, + /*ignoreErrors*/ + true + ) : resolveAlias(typeOnlyDeclaration.symbol)); + const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0; + let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags; + let seenSymbols; + while (symbol.flags & 2097152 /* Alias */) { + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) { + break; + } + if (target === unknownSymbol) { + return -1 /* All */; + } + if (target === symbol || (seenSymbols == null ? void 0 : seenSymbols.has(target))) { + break; + } + if (target.flags & 2097152 /* Alias */) { + if (seenSymbols) { + seenSymbols.add(target); + } else { + seenSymbols = /* @__PURE__ */ new Set([symbol, target]); + } + } + flags |= target.flags; + symbol = target; + } + return flags; + } + function markSymbolOfAliasDeclarationIfTypeOnly(aliasDeclaration, immediateTarget, finalTarget, overwriteEmpty, exportStarDeclaration, exportStarName) { + if (!aliasDeclaration || isPropertyAccessExpression(aliasDeclaration)) return false; + const sourceSymbol = getSymbolOfDeclaration(aliasDeclaration); + if (isTypeOnlyImportOrExportDeclaration(aliasDeclaration)) { + const links2 = getSymbolLinks(sourceSymbol); + links2.typeOnlyDeclaration = aliasDeclaration; + return true; + } + if (exportStarDeclaration) { + const links2 = getSymbolLinks(sourceSymbol); + links2.typeOnlyDeclaration = exportStarDeclaration; + if (sourceSymbol.escapedName !== exportStarName) { + links2.typeOnlyExportStarName = exportStarName; + } + return true; + } + const links = getSymbolLinks(sourceSymbol); + return markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, immediateTarget, overwriteEmpty) || markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, finalTarget, overwriteEmpty); + } + function markSymbolOfAliasDeclarationIfTypeOnlyWorker(aliasDeclarationLinks, target, overwriteEmpty) { + var _a; + if (target && (aliasDeclarationLinks.typeOnlyDeclaration === void 0 || overwriteEmpty && aliasDeclarationLinks.typeOnlyDeclaration === false)) { + const exportSymbol = ((_a = target.exports) == null ? void 0 : _a.get("export=" /* ExportEquals */)) ?? target; + const typeOnly = exportSymbol.declarations && find(exportSymbol.declarations, isTypeOnlyImportOrExportDeclaration); + aliasDeclarationLinks.typeOnlyDeclaration = typeOnly ?? getSymbolLinks(exportSymbol).typeOnlyDeclaration ?? false; + } + return !!aliasDeclarationLinks.typeOnlyDeclaration; + } + function getTypeOnlyAliasDeclaration(symbol, include) { + var _a; + if (!(symbol.flags & 2097152 /* Alias */)) { + return void 0; + } + const links = getSymbolLinks(symbol); + if (links.typeOnlyDeclaration === void 0) { + links.typeOnlyDeclaration = false; + const resolved = resolveSymbol(symbol); + markSymbolOfAliasDeclarationIfTypeOnly( + (_a = symbol.declarations) == null ? void 0 : _a[0], + getDeclarationOfAliasSymbol(symbol) && getImmediateAliasedSymbol(symbol), + resolved, + /*overwriteEmpty*/ + true + ); + } + if (include === void 0) { + return links.typeOnlyDeclaration || void 0; + } + if (links.typeOnlyDeclaration) { + const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol); + return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0; + } + return void 0; + } + function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, dontResolveAlias) { + if (entityName.kind === 80 /* Identifier */ && isRightSideOfQualifiedNameOrPropertyAccess(entityName)) { + entityName = entityName.parent; + } + if (entityName.kind === 80 /* Identifier */ || entityName.parent.kind === 166 /* QualifiedName */) { + return resolveEntityName( + entityName, + 1920 /* Namespace */, + /*ignoreErrors*/ + false, + dontResolveAlias + ); + } else { + Debug.assert(entityName.parent.kind === 271 /* ImportEqualsDeclaration */); + return resolveEntityName( + entityName, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, + /*ignoreErrors*/ + false, + dontResolveAlias + ); + } + } + function getFullyQualifiedName(symbol, containingLocation) { + return symbol.parent ? getFullyQualifiedName(symbol.parent, containingLocation) + "." + symbolToString(symbol) : symbolToString( + symbol, + containingLocation, + /*meaning*/ + void 0, + 32 /* DoNotIncludeSymbolChain */ | 4 /* AllowAnyNodeKind */ + ); + } + function getContainingQualifiedNameNode(node) { + while (isQualifiedName(node.parent)) { + node = node.parent; + } + return node; + } + function tryGetQualifiedNameAsValue(node) { + let left = getFirstIdentifier(node); + let symbol = resolveName( + left, + left, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (!symbol) { + return void 0; + } + while (isQualifiedName(left.parent)) { + const type = getTypeOfSymbol(symbol); + symbol = getPropertyOfType(type, left.parent.right.escapedText); + if (!symbol) { + return void 0; + } + left = left.parent; + } + return symbol; + } + function resolveEntityName(name, meaning, ignoreErrors, dontResolveAlias, location) { + if (nodeIsMissing(name)) { + return void 0; + } + const namespaceMeaning = 1920 /* Namespace */ | (isInJSFile(name) ? meaning & 111551 /* Value */ : 0); + let symbol; + if (name.kind === 80 /* Identifier */) { + const message = meaning === namespaceMeaning || nodeIsSynthesized(name) ? Diagnostics.Cannot_find_namespace_0 : getCannotFindNameDiagnosticForName(getFirstIdentifier(name)); + const symbolFromJSPrototype = isInJSFile(name) && !nodeIsSynthesized(name) ? resolveEntityNameFromAssignmentDeclaration(name, meaning) : void 0; + symbol = getMergedSymbol(resolveName( + location || name, + name, + meaning, + ignoreErrors || symbolFromJSPrototype ? void 0 : message, + /*isUse*/ + true, + /*excludeGlobals*/ + false + )); + if (!symbol) { + return getMergedSymbol(symbolFromJSPrototype); + } + } else if (name.kind === 166 /* QualifiedName */ || name.kind === 211 /* PropertyAccessExpression */) { + const left = name.kind === 166 /* QualifiedName */ ? name.left : name.expression; + const right = name.kind === 166 /* QualifiedName */ ? name.right : name.name; + let namespace = resolveEntityName( + left, + namespaceMeaning, + ignoreErrors, + /*dontResolveAlias*/ + false, + location + ); + if (!namespace || nodeIsMissing(right)) { + return void 0; + } else if (namespace === unknownSymbol) { + return namespace; + } + if (namespace.valueDeclaration && isInJSFile(namespace.valueDeclaration) && getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */ && isVariableDeclaration(namespace.valueDeclaration) && namespace.valueDeclaration.initializer && isCommonJsRequire(namespace.valueDeclaration.initializer)) { + const moduleName = namespace.valueDeclaration.initializer.arguments[0]; + const moduleSym = resolveExternalModuleName(moduleName, moduleName); + if (moduleSym) { + const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym); + if (resolvedModuleSymbol) { + namespace = resolvedModuleSymbol; + } + } + } + symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, meaning)); + if (!symbol && namespace.flags & 2097152 /* Alias */) { + symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(resolveAlias(namespace)), right.escapedText, meaning)); + } + if (!symbol) { + if (!ignoreErrors) { + const namespaceName = getFullyQualifiedName(namespace); + const declarationName = declarationNameToString(right); + const suggestionForNonexistentModule = getSuggestedSymbolForNonexistentModule(right, namespace); + if (suggestionForNonexistentModule) { + error(right, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestionForNonexistentModule)); + return void 0; + } + const containingQualifiedName = isQualifiedName(name) && getContainingQualifiedNameNode(name); + const canSuggestTypeof = globalObjectType && meaning & 788968 /* Type */ && containingQualifiedName && !isTypeOfExpression(containingQualifiedName.parent) && tryGetQualifiedNameAsValue(containingQualifiedName); + if (canSuggestTypeof) { + error( + containingQualifiedName, + Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, + entityNameToString(containingQualifiedName) + ); + return void 0; + } + if (meaning & 1920 /* Namespace */ && isQualifiedName(name.parent)) { + const exportedTypeSymbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, 788968 /* Type */)); + if (exportedTypeSymbol) { + error( + name.parent.right, + Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, + symbolToString(exportedTypeSymbol), + unescapeLeadingUnderscores(name.parent.right.escapedText) + ); + return void 0; + } + } + error(right, Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName); + } + return void 0; + } + } else { + Debug.assertNever(name, "Unknown entity name kind."); + } + if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 277 /* ExportAssignment */)) { + markSymbolOfAliasDeclarationIfTypeOnly( + getAliasDeclarationFromName(name), + symbol, + /*finalTarget*/ + void 0, + /*overwriteEmpty*/ + true + ); + } + return symbol.flags & meaning || dontResolveAlias ? symbol : resolveAlias(symbol); + } + function resolveEntityNameFromAssignmentDeclaration(name, meaning) { + if (isJSDocTypeReference(name.parent)) { + const secondaryLocation = getAssignmentDeclarationLocation(name.parent); + if (secondaryLocation) { + return resolveName( + secondaryLocation, + name, + meaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + } + } + } + function getAssignmentDeclarationLocation(node) { + const typeAlias = findAncestor(node, (node2) => !(isJSDocNode(node2) || node2.flags & 16777216 /* JSDoc */) ? "quit" : isJSDocTypeAlias(node2)); + if (typeAlias) { + return; + } + const host2 = getJSDocHost(node); + if (host2 && isExpressionStatement(host2) && isPrototypePropertyAssignment(host2.expression)) { + const symbol = getSymbolOfDeclaration(host2.expression.left); + if (symbol) { + return getDeclarationOfJSPrototypeContainer(symbol); + } + } + if (host2 && isFunctionExpression(host2) && isPrototypePropertyAssignment(host2.parent) && isExpressionStatement(host2.parent.parent)) { + const symbol = getSymbolOfDeclaration(host2.parent.left); + if (symbol) { + return getDeclarationOfJSPrototypeContainer(symbol); + } + } + if (host2 && (isObjectLiteralMethod(host2) || isPropertyAssignment(host2)) && isBinaryExpression(host2.parent.parent) && getAssignmentDeclarationKind(host2.parent.parent) === 6 /* Prototype */) { + const symbol = getSymbolOfDeclaration(host2.parent.parent.left); + if (symbol) { + return getDeclarationOfJSPrototypeContainer(symbol); + } + } + const sig = getEffectiveJSDocHost(node); + if (sig && isFunctionLike(sig)) { + const symbol = getSymbolOfDeclaration(sig); + return symbol && symbol.valueDeclaration; + } + } + function getDeclarationOfJSPrototypeContainer(symbol) { + const decl = symbol.parent.valueDeclaration; + if (!decl) { + return void 0; + } + const initializer = isAssignmentDeclaration(decl) ? getAssignedExpandoInitializer(decl) : hasOnlyExpressionInitializer(decl) ? getDeclaredExpandoInitializer(decl) : void 0; + return initializer || decl; + } + function getExpandoSymbol(symbol) { + const decl = symbol.valueDeclaration; + if (!decl || !isInJSFile(decl) || symbol.flags & 524288 /* TypeAlias */ || getExpandoInitializer( + decl, + /*isPrototypeAssignment*/ + false + )) { + return void 0; + } + const init = isVariableDeclaration(decl) ? getDeclaredExpandoInitializer(decl) : getAssignedExpandoInitializer(decl); + if (init) { + const initSymbol = getSymbolOfNode(init); + if (initSymbol) { + return mergeJSSymbols(initSymbol, symbol); + } + } + } + function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) { + const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; + const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; + return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage); + } + function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation = false) { + return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; + } + function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + if (startsWith(moduleReference, "@types/")) { + const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; + const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); + error(errorNode, diag2, withoutAtTypePrefix, moduleReference); + } + const ambientModule = tryFindAmbientModule( + moduleReference, + /*withAugmentations*/ + true + ); + if (ambientModule) { + return ambientModule; + } + const currentSourceFile = getSourceFileOfNode(location); + const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isInJSFile(location) && isJSDocImportTag(location) ? location.moduleSpecifier : void 0) || (isVariableDeclaration(location) && location.initializer && isRequireCall( + location.initializer, + /*requireStringLiteralLikeArgument*/ + true + ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, isImportDeclaration)) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression) || ((_f = findAncestor(location, isExportDeclaration)) == null ? void 0 : _f.moduleSpecifier); + const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat; + const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); + const resolvedModule = (_g = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _g.resolvedModule; + const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); + const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); + if (sourceFile) { + if (resolutionDiagnostic) { + error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + } + if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { + error( + errorNode, + Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, + getSuggestedImportSource(Debug.checkDefined(tryExtractTSExtension(moduleReference))) + ); + } + } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { + const importOrExport = ((_i = findAncestor(location, isImportDeclaration)) == null ? void 0 : _i.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); + error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); + } + } + if (sourceFile.symbol) { + if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { + errorOnImplicitAnyModule( + /*isError*/ + false, + errorNode, + currentSourceFile, + mode, + resolvedModule, + moduleReference + ); + } + if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { + const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); + const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l)); + if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) { + if (findAncestor(location, isImportEqualsDeclaration)) { + error(errorNode, Diagnostics.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, moduleReference); + } else { + let diagnosticDetails; + const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); + if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) { + const scope = currentSourceFile.packageJsonScope; + const targetExt = ext === ".ts" /* Ts */ ? ".mts" /* Mts */ : ext === ".js" /* Js */ ? ".mjs" /* Mjs */ : void 0; + if (scope && !scope.contents.packageJsonContent.type) { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, + targetExt, + combinePaths(scope.packageDirectory, "package.json") + ); + } else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, + combinePaths(scope.packageDirectory, "package.json") + ); + } + } else { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.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, + targetExt + ); + } else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module + ); + } + } + } + diagnostics.add(createDiagnosticForNodeFromMessageChain( + getSourceFileOfNode(errorNode), + errorNode, + chainDiagnosticMessages( + diagnosticDetails, + Diagnostics.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, + moduleReference + ) + )); + } + } + } + return getMergedSymbol(sourceFile.symbol); + } + if (moduleNotFoundError) { + error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); + } + return void 0; + } + if (patternAmbientModules) { + const pattern = findBestPatternMatch(patternAmbientModules, (_) => _.pattern, moduleReference); + if (pattern) { + const augmentation = patternAmbientModuleAugmentations && patternAmbientModuleAugmentations.get(moduleReference); + if (augmentation) { + return getMergedSymbol(augmentation); + } + return getMergedSymbol(pattern.symbol); + } + } + if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { + if (isForAugmentation) { + const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; + error(errorNode, diag2, moduleReference, resolvedModule.resolvedFileName); + } else { + errorOnImplicitAnyModule( + /*isError*/ + noImplicitAny && !!moduleNotFoundError, + errorNode, + currentSourceFile, + mode, + resolvedModule, + moduleReference + ); + } + return void 0; + } + if (moduleNotFoundError) { + if (resolvedModule) { + const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName); + if (redirect) { + error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName); + return void 0; + } + } + if (resolutionDiagnostic) { + error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); + } else { + const isExtensionlessRelativePathImport = pathIsRelative(moduleReference) && !hasExtension(moduleReference); + const resolutionIsNode16OrNext = moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */; + if (!getResolveJsonModule(compilerOptions) && fileExtensionIs(moduleReference, ".json" /* Json */) && moduleResolutionKind !== 1 /* Classic */ && hasJsonModuleEmitEnabled(compilerOptions)) { + error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference); + } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) { + const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path)); + const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1]; + if (suggestedExt) { + error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt); + } else { + error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path); + } + } else { + if ((_k = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _k.alternateResult) { + const errorInfo = createModuleNotFoundChain(currentSourceFile, host, moduleReference, mode, moduleReference); + errorOrSuggestion( + /*isError*/ + true, + errorNode, + chainDiagnosticMessages(errorInfo, moduleNotFoundError, moduleReference) + ); + } else { + error(errorNode, moduleNotFoundError, moduleReference); + } + } + } + } + return void 0; + function getSuggestedImportSource(tsExtension) { + const importSourceWithoutExtension = removeExtension(moduleReference, tsExtension); + if (emitModuleKindIsNonNodeESM(moduleKind) || mode === 99 /* ESNext */) { + const preferTs = isDeclarationFileName(moduleReference) && shouldAllowImportingTsExtension(compilerOptions); + const ext = tsExtension === ".mts" /* Mts */ || tsExtension === ".d.mts" /* Dmts */ ? preferTs ? ".mts" : ".mjs" : tsExtension === ".cts" /* Cts */ || tsExtension === ".d.mts" /* Dmts */ ? preferTs ? ".cts" : ".cjs" : preferTs ? ".ts" : ".js"; + return importSourceWithoutExtension + ext; + } + return importSourceWithoutExtension; + } + } + function errorOnImplicitAnyModule(isError, errorNode, sourceFile, mode, { packageId, resolvedFileName }, moduleReference) { + let errorInfo; + if (!isExternalModuleNameRelative(moduleReference) && packageId) { + errorInfo = createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageId.name); + } + errorOrSuggestion( + isError, + errorNode, + chainDiagnosticMessages( + errorInfo, + Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, + moduleReference, + resolvedFileName + ) + ); + } + function resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) { + if (moduleSymbol == null ? void 0 : moduleSymbol.exports) { + const exportEquals = resolveSymbol(moduleSymbol.exports.get("export=" /* ExportEquals */), dontResolveAlias); + const exported = getCommonJsExportEquals(getMergedSymbol(exportEquals), getMergedSymbol(moduleSymbol)); + return getMergedSymbol(exported) || moduleSymbol; + } + return void 0; + } + function getCommonJsExportEquals(exported, moduleSymbol) { + if (!exported || exported === unknownSymbol || exported === moduleSymbol || moduleSymbol.exports.size === 1 || exported.flags & 2097152 /* Alias */) { + return exported; + } + const links = getSymbolLinks(exported); + if (links.cjsExportMerged) { + return links.cjsExportMerged; + } + const merged = exported.flags & 33554432 /* Transient */ ? exported : cloneSymbol(exported); + merged.flags = merged.flags | 512 /* ValueModule */; + if (merged.exports === void 0) { + merged.exports = createSymbolTable(); + } + moduleSymbol.exports.forEach((s, name) => { + if (name === "export=" /* ExportEquals */) return; + merged.exports.set(name, merged.exports.has(name) ? mergeSymbol(merged.exports.get(name), s) : s); + }); + if (merged === exported) { + getSymbolLinks(merged).resolvedExports = void 0; + getSymbolLinks(merged).resolvedMembers = void 0; + } + getSymbolLinks(merged).cjsExportMerged = merged; + return links.cjsExportMerged = merged; + } + function resolveESModuleSymbol(moduleSymbol, referencingLocation, dontResolveAlias, suppressInteropError) { + var _a; + const symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias); + if (!dontResolveAlias && symbol) { + if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !getDeclarationOfKind(symbol, 307 /* SourceFile */)) { + const compilerOptionName = moduleKind >= 5 /* ES2015 */ ? "allowSyntheticDefaultImports" : "esModuleInterop"; + error(referencingLocation, Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName); + return symbol; + } + const referenceParent = referencingLocation.parent; + if (isImportDeclaration(referenceParent) && getNamespaceDeclarationNode(referenceParent) || isImportCall(referenceParent)) { + const reference = isImportCall(referenceParent) ? referenceParent.arguments[0] : referenceParent.moduleSpecifier; + const type = getTypeOfSymbol(symbol); + const defaultOnlyType = getTypeWithSyntheticDefaultOnly(type, symbol, moduleSymbol, reference); + if (defaultOnlyType) { + return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent); + } + const targetFile = (_a = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); + const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getUsageModeForExpression(reference), targetFile.impliedNodeFormat); + if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { + let sigs = getSignaturesOfStructuredType(type, 0 /* Call */); + if (!sigs || !sigs.length) { + sigs = getSignaturesOfStructuredType(type, 1 /* Construct */); + } + if (sigs && sigs.length || getPropertyOfType( + type, + "default" /* Default */, + /*skipObjectFunctionPropertyAugment*/ + true + ) || isEsmCjsRef) { + const moduleType = type.flags & 3670016 /* StructuredType */ ? getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol, reference) : createDefaultPropertyWrapperForModule(symbol, symbol.parent); + return cloneTypeAsModuleType(symbol, moduleType, referenceParent); + } + } + } + } + return symbol; + } + function cloneTypeAsModuleType(symbol, moduleType, referenceParent) { + const result = createSymbol(symbol.flags, symbol.escapedName); + result.declarations = symbol.declarations ? symbol.declarations.slice() : []; + result.parent = symbol.parent; + result.links.target = symbol; + result.links.originatingImport = referenceParent; + if (symbol.valueDeclaration) result.valueDeclaration = symbol.valueDeclaration; + if (symbol.constEnumOnlyModule) result.constEnumOnlyModule = true; + if (symbol.members) result.members = new Map(symbol.members); + if (symbol.exports) result.exports = new Map(symbol.exports); + const resolvedModuleType = resolveStructuredTypeMembers(moduleType); + result.links.type = createAnonymousType(result, resolvedModuleType.members, emptyArray, emptyArray, resolvedModuleType.indexInfos); + return result; + } + function hasExportAssignmentSymbol(moduleSymbol) { + return moduleSymbol.exports.get("export=" /* ExportEquals */) !== void 0; + } + function getExportsOfModuleAsArray(moduleSymbol) { + return symbolsToArray(getExportsOfModule(moduleSymbol)); + } + function getExportsAndPropertiesOfModule(moduleSymbol) { + const exports2 = getExportsOfModuleAsArray(moduleSymbol); + const exportEquals = resolveExternalModuleSymbol(moduleSymbol); + if (exportEquals !== moduleSymbol) { + const type = getTypeOfSymbol(exportEquals); + if (shouldTreatPropertiesOfExternalModuleAsExports(type)) { + addRange(exports2, getPropertiesOfType(type)); + } + } + return exports2; + } + function forEachExportAndPropertyOfModule(moduleSymbol, cb) { + const exports2 = getExportsOfModule(moduleSymbol); + exports2.forEach((symbol, key) => { + if (!isReservedMemberName(key)) { + cb(symbol, key); + } + }); + const exportEquals = resolveExternalModuleSymbol(moduleSymbol); + if (exportEquals !== moduleSymbol) { + const type = getTypeOfSymbol(exportEquals); + if (shouldTreatPropertiesOfExternalModuleAsExports(type)) { + forEachPropertyOfType(type, (symbol, escapedName) => { + cb(symbol, escapedName); + }); + } + } + } + function tryGetMemberInModuleExports(memberName, moduleSymbol) { + const symbolTable = getExportsOfModule(moduleSymbol); + if (symbolTable) { + return symbolTable.get(memberName); + } + } + function tryGetMemberInModuleExportsAndProperties(memberName, moduleSymbol) { + const symbol = tryGetMemberInModuleExports(memberName, moduleSymbol); + if (symbol) { + return symbol; + } + const exportEquals = resolveExternalModuleSymbol(moduleSymbol); + if (exportEquals === moduleSymbol) { + return void 0; + } + const type = getTypeOfSymbol(exportEquals); + return shouldTreatPropertiesOfExternalModuleAsExports(type) ? getPropertyOfType(type, memberName) : void 0; + } + function shouldTreatPropertiesOfExternalModuleAsExports(resolvedExternalModuleType) { + return !(resolvedExternalModuleType.flags & 402784252 /* Primitive */ || getObjectFlags(resolvedExternalModuleType) & 1 /* Class */ || // `isArrayOrTupleLikeType` is too expensive to use in this auto-imports hot path + isArrayType(resolvedExternalModuleType) || isTupleType(resolvedExternalModuleType)); + } + function getExportsOfSymbol(symbol) { + return symbol.flags & 6256 /* LateBindingContainer */ ? getResolvedMembersOrExportsOfSymbol(symbol, "resolvedExports" /* resolvedExports */) : symbol.flags & 1536 /* Module */ ? getExportsOfModule(symbol) : symbol.exports || emptySymbols; + } + function getExportsOfModule(moduleSymbol) { + const links = getSymbolLinks(moduleSymbol); + if (!links.resolvedExports) { + const { exports: exports2, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol); + links.resolvedExports = exports2; + links.typeOnlyExportStarMap = typeOnlyExportStarMap; + } + return links.resolvedExports; + } + function extendExportSymbols(target, source, lookupTable, exportNode) { + if (!source) return; + source.forEach((sourceSymbol, id) => { + if (id === "default" /* Default */) return; + const targetSymbol = target.get(id); + if (!targetSymbol) { + target.set(id, sourceSymbol); + if (lookupTable && exportNode) { + lookupTable.set(id, { + specifierText: getTextOfNode(exportNode.moduleSpecifier) + }); + } + } else if (lookupTable && exportNode && targetSymbol && resolveSymbol(targetSymbol) !== resolveSymbol(sourceSymbol)) { + const collisionTracker = lookupTable.get(id); + if (!collisionTracker.exportsWithDuplicate) { + collisionTracker.exportsWithDuplicate = [exportNode]; + } else { + collisionTracker.exportsWithDuplicate.push(exportNode); + } + } + }); + } + function getExportsOfModuleWorker(moduleSymbol) { + const visitedSymbols = []; + let typeOnlyExportStarMap; + const nonTypeOnlyNames = /* @__PURE__ */ new Set(); + moduleSymbol = resolveExternalModuleSymbol(moduleSymbol); + const exports2 = visit(moduleSymbol) || emptySymbols; + if (typeOnlyExportStarMap) { + nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name)); + } + return { + exports: exports2, + typeOnlyExportStarMap + }; + function visit(symbol, exportStar, isTypeOnly) { + if (!isTypeOnly && (symbol == null ? void 0 : symbol.exports)) { + symbol.exports.forEach((_, name) => nonTypeOnlyNames.add(name)); + } + if (!(symbol && symbol.exports && pushIfUnique(visitedSymbols, symbol))) { + return; + } + const symbols = new Map(symbol.exports); + const exportStars = symbol.exports.get("__export" /* ExportStar */); + if (exportStars) { + const nestedSymbols = createSymbolTable(); + const lookupTable = /* @__PURE__ */ new Map(); + if (exportStars.declarations) { + for (const node of exportStars.declarations) { + const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); + const exportedSymbols = visit(resolvedModule, node, isTypeOnly || node.isTypeOnly); + extendExportSymbols( + nestedSymbols, + exportedSymbols, + lookupTable, + node + ); + } + } + lookupTable.forEach(({ exportsWithDuplicate }, id) => { + if (id === "export=" || !(exportsWithDuplicate && exportsWithDuplicate.length) || symbols.has(id)) { + return; + } + for (const node of exportsWithDuplicate) { + diagnostics.add(createDiagnosticForNode( + node, + Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, + lookupTable.get(id).specifierText, + unescapeLeadingUnderscores(id) + )); + } + }); + extendExportSymbols(symbols, nestedSymbols); + } + if (exportStar == null ? void 0 : exportStar.isTypeOnly) { + typeOnlyExportStarMap ?? (typeOnlyExportStarMap = /* @__PURE__ */ new Map()); + symbols.forEach( + (_, escapedName) => typeOnlyExportStarMap.set( + escapedName, + exportStar + ) + ); + } + return symbols; + } + } + function getMergedSymbol(symbol) { + let merged; + return symbol && symbol.mergeId && (merged = mergedSymbols[symbol.mergeId]) ? merged : symbol; + } + function getSymbolOfDeclaration(node) { + return getMergedSymbol(node.symbol && getLateBoundSymbol(node.symbol)); + } + function getSymbolOfNode(node) { + return canHaveSymbol(node) ? getSymbolOfDeclaration(node) : void 0; + } + function getParentOfSymbol(symbol) { + return getMergedSymbol(symbol.parent && getLateBoundSymbol(symbol.parent)); + } + function getFunctionExpressionParentSymbolOrSymbol(symbol) { + var _a, _b; + return ((_a = symbol.valueDeclaration) == null ? void 0 : _a.kind) === 219 /* ArrowFunction */ || ((_b = symbol.valueDeclaration) == null ? void 0 : _b.kind) === 218 /* FunctionExpression */ ? getSymbolOfNode(symbol.valueDeclaration.parent) || symbol : symbol; + } + function getAlternativeContainingModules(symbol, enclosingDeclaration) { + const containingFile = getSourceFileOfNode(enclosingDeclaration); + const id = getNodeId(containingFile); + const links = getSymbolLinks(symbol); + let results; + if (links.extendedContainersByFile && (results = links.extendedContainersByFile.get(id))) { + return results; + } + if (containingFile && containingFile.imports) { + for (const importRef of containingFile.imports) { + if (nodeIsSynthesized(importRef)) continue; + const resolvedModule = resolveExternalModuleName( + enclosingDeclaration, + importRef, + /*ignoreErrors*/ + true + ); + if (!resolvedModule) continue; + const ref = getAliasForSymbolInContainer(resolvedModule, symbol); + if (!ref) continue; + results = append(results, resolvedModule); + } + if (length(results)) { + (links.extendedContainersByFile || (links.extendedContainersByFile = /* @__PURE__ */ new Map())).set(id, results); + return results; + } + } + if (links.extendedContainers) { + return links.extendedContainers; + } + const otherFiles = host.getSourceFiles(); + for (const file of otherFiles) { + if (!isExternalModule(file)) continue; + const sym = getSymbolOfDeclaration(file); + const ref = getAliasForSymbolInContainer(sym, symbol); + if (!ref) continue; + results = append(results, sym); + } + return links.extendedContainers = results || emptyArray; + } + function getContainersOfSymbol(symbol, enclosingDeclaration, meaning) { + const container = getParentOfSymbol(symbol); + if (container && !(symbol.flags & 262144 /* TypeParameter */)) { + return getWithAlternativeContainers(container); + } + const candidates = mapDefined(symbol.declarations, (d) => { + if (!isAmbientModule(d) && d.parent) { + if (hasNonGlobalAugmentationExternalModuleSymbol(d.parent)) { + return getSymbolOfDeclaration(d.parent); + } + if (isModuleBlock(d.parent) && d.parent.parent && resolveExternalModuleSymbol(getSymbolOfDeclaration(d.parent.parent)) === symbol) { + return getSymbolOfDeclaration(d.parent.parent); + } + } + if (isClassExpression(d) && isBinaryExpression(d.parent) && d.parent.operatorToken.kind === 64 /* EqualsToken */ && isAccessExpression(d.parent.left) && isEntityNameExpression(d.parent.left.expression)) { + if (isModuleExportsAccessExpression(d.parent.left) || isExportsIdentifier(d.parent.left.expression)) { + return getSymbolOfDeclaration(getSourceFileOfNode(d)); + } + checkExpressionCached(d.parent.left.expression); + return getNodeLinks(d.parent.left.expression).resolvedSymbol; + } + }); + if (!length(candidates)) { + return void 0; + } + const containers = mapDefined(candidates, (candidate) => getAliasForSymbolInContainer(candidate, symbol) ? candidate : void 0); + let bestContainers = []; + let alternativeContainers = []; + for (const container2 of containers) { + const [bestMatch, ...rest] = getWithAlternativeContainers(container2); + bestContainers = append(bestContainers, bestMatch); + alternativeContainers = addRange(alternativeContainers, rest); + } + return concatenate(bestContainers, alternativeContainers); + function getWithAlternativeContainers(container2) { + const additionalContainers = mapDefined(container2.declarations, fileSymbolIfFileSymbolExportEqualsContainer); + const reexportContainers = enclosingDeclaration && getAlternativeContainingModules(symbol, enclosingDeclaration); + const objectLiteralContainer = getVariableDeclarationOfObjectLiteral(container2, meaning); + if (enclosingDeclaration && container2.flags & getQualifiedLeftMeaning(meaning) && getAccessibleSymbolChain( + container2, + enclosingDeclaration, + 1920 /* Namespace */, + /*useOnlyExternalAliasing*/ + false + )) { + return append(concatenate(concatenate([container2], additionalContainers), reexportContainers), objectLiteralContainer); + } + const firstVariableMatch = !(container2.flags & getQualifiedLeftMeaning(meaning)) && container2.flags & 788968 /* Type */ && getDeclaredTypeOfSymbol(container2).flags & 524288 /* Object */ && meaning === 111551 /* Value */ ? forEachSymbolTableInScope(enclosingDeclaration, (t) => { + return forEachEntry(t, (s) => { + if (s.flags & getQualifiedLeftMeaning(meaning) && getTypeOfSymbol(s) === getDeclaredTypeOfSymbol(container2)) { + return s; + } + }); + }) : void 0; + let res = firstVariableMatch ? [firstVariableMatch, ...additionalContainers, container2] : [...additionalContainers, container2]; + res = append(res, objectLiteralContainer); + res = addRange(res, reexportContainers); + return res; + } + function fileSymbolIfFileSymbolExportEqualsContainer(d) { + return container && getFileSymbolIfFileSymbolExportEqualsContainer(d, container); + } + } + function getVariableDeclarationOfObjectLiteral(symbol, meaning) { + const firstDecl = !!length(symbol.declarations) && first(symbol.declarations); + if (meaning & 111551 /* Value */ && firstDecl && firstDecl.parent && isVariableDeclaration(firstDecl.parent)) { + if (isObjectLiteralExpression(firstDecl) && firstDecl === firstDecl.parent.initializer || isTypeLiteralNode(firstDecl) && firstDecl === firstDecl.parent.type) { + return getSymbolOfDeclaration(firstDecl.parent); + } + } + } + function getFileSymbolIfFileSymbolExportEqualsContainer(d, container) { + const fileSymbol = getExternalModuleContainer(d); + const exported = fileSymbol && fileSymbol.exports && fileSymbol.exports.get("export=" /* ExportEquals */); + return exported && getSymbolIfSameReference(exported, container) ? fileSymbol : void 0; + } + function getAliasForSymbolInContainer(container, symbol) { + if (container === getParentOfSymbol(symbol)) { + return symbol; + } + const exportEquals = container.exports && container.exports.get("export=" /* ExportEquals */); + if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) { + return container; + } + const exports2 = getExportsOfSymbol(container); + const quick = exports2.get(symbol.escapedName); + if (quick && getSymbolIfSameReference(quick, symbol)) { + return quick; + } + return forEachEntry(exports2, (exported) => { + if (getSymbolIfSameReference(exported, symbol)) { + return exported; + } + }); + } + function getSymbolIfSameReference(s1, s2) { + if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) { + return s1; + } + } + function getExportSymbolOfValueSymbolIfExported(symbol) { + return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol); + } + function symbolIsValue(symbol, includeTypeOnlyMembers) { + return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */); + } + function createType(flags) { + var _a; + const result = new Type7(checker, flags); + typeCount++; + result.id = typeCount; + (_a = tracing) == null ? void 0 : _a.recordType(result); + return result; + } + function createTypeWithSymbol(flags, symbol) { + const result = createType(flags); + result.symbol = symbol; + return result; + } + function createOriginType(flags) { + return new Type7(checker, flags); + } + function createIntrinsicType(kind, intrinsicName, objectFlags = 0 /* None */, debugIntrinsicName) { + checkIntrinsicName(intrinsicName, debugIntrinsicName); + const type = createType(kind); + type.intrinsicName = intrinsicName; + type.debugIntrinsicName = debugIntrinsicName; + type.objectFlags = objectFlags | 524288 /* CouldContainTypeVariablesComputed */ | 2097152 /* IsGenericTypeComputed */ | 33554432 /* IsUnknownLikeUnionComputed */ | 16777216 /* IsNeverIntersectionComputed */; + return type; + } + function checkIntrinsicName(name, debug) { + const key = `${name},${debug ?? ""}`; + if (seenIntrinsicNames.has(key)) { + Debug.fail(`Duplicate intrinsic type name ${name}${debug ? ` (${debug})` : ""}; you may need to pass a name to createIntrinsicType.`); + } + seenIntrinsicNames.add(key); + } + function createObjectType(objectFlags, symbol) { + const type = createTypeWithSymbol(524288 /* Object */, symbol); + type.objectFlags = objectFlags; + type.members = void 0; + type.properties = void 0; + type.callSignatures = void 0; + type.constructSignatures = void 0; + type.indexInfos = void 0; + return type; + } + function createTypeofType() { + return getUnionType(arrayFrom(typeofNEFacts.keys(), getStringLiteralType)); + } + function createTypeParameter(symbol) { + return createTypeWithSymbol(262144 /* TypeParameter */, symbol); + } + function isReservedMemberName(name) { + return name.charCodeAt(0) === 95 /* _ */ && name.charCodeAt(1) === 95 /* _ */ && name.charCodeAt(2) !== 95 /* _ */ && name.charCodeAt(2) !== 64 /* at */ && name.charCodeAt(2) !== 35 /* hash */; + } + function getNamedMembers(members) { + let result; + members.forEach((symbol, id) => { + if (isNamedMember(symbol, id)) { + (result || (result = [])).push(symbol); + } + }); + return result || emptyArray; + } + function isNamedMember(member, escapedName) { + return !isReservedMemberName(escapedName) && symbolIsValue(member); + } + function getNamedOrIndexSignatureMembers(members) { + const result = getNamedMembers(members); + const index = getIndexSymbolFromSymbolTable(members); + return index ? concatenate(result, [index]) : result; + } + function setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos) { + const resolved = type; + resolved.members = members; + resolved.properties = emptyArray; + resolved.callSignatures = callSignatures; + resolved.constructSignatures = constructSignatures; + resolved.indexInfos = indexInfos; + if (members !== emptySymbols) resolved.properties = getNamedMembers(members); + return resolved; + } + function createAnonymousType(symbol, members, callSignatures, constructSignatures, indexInfos) { + return setStructuredTypeMembers(createObjectType(16 /* Anonymous */, symbol), members, callSignatures, constructSignatures, indexInfos); + } + function getResolvedTypeWithoutAbstractConstructSignatures(type) { + if (type.constructSignatures.length === 0) return type; + if (type.objectTypeWithoutAbstractConstructSignatures) return type.objectTypeWithoutAbstractConstructSignatures; + const constructSignatures = filter(type.constructSignatures, (signature) => !(signature.flags & 4 /* Abstract */)); + if (type.constructSignatures === constructSignatures) return type; + const typeCopy = createAnonymousType( + type.symbol, + type.members, + type.callSignatures, + some(constructSignatures) ? constructSignatures : emptyArray, + type.indexInfos + ); + type.objectTypeWithoutAbstractConstructSignatures = typeCopy; + typeCopy.objectTypeWithoutAbstractConstructSignatures = typeCopy; + return typeCopy; + } + function forEachSymbolTableInScope(enclosingDeclaration, callback) { + let result; + for (let location = enclosingDeclaration; location; location = location.parent) { + if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { + if (result = callback( + location.locals, + /*ignoreQualification*/ + void 0, + /*isLocalNameLookup*/ + true, + location + )) { + return result; + } + } + switch (location.kind) { + case 307 /* SourceFile */: + if (!isExternalOrCommonJsModule(location)) { + break; + } + case 267 /* ModuleDeclaration */: + const sym = getSymbolOfDeclaration(location); + if (result = callback( + (sym == null ? void 0 : sym.exports) || emptySymbols, + /*ignoreQualification*/ + void 0, + /*isLocalNameLookup*/ + true, + location + )) { + return result; + } + break; + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + let table; + (getSymbolOfDeclaration(location).members || emptySymbols).forEach((memberSymbol, key) => { + if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) { + (table || (table = createSymbolTable())).set(key, memberSymbol); + } + }); + if (table && (result = callback( + table, + /*ignoreQualification*/ + void 0, + /*isLocalNameLookup*/ + false, + location + ))) { + return result; + } + break; + } + } + return callback( + globals, + /*ignoreQualification*/ + void 0, + /*isLocalNameLookup*/ + true + ); + } + function getQualifiedLeftMeaning(rightMeaning) { + return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */; + } + function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap = /* @__PURE__ */ new Map()) { + if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) { + return void 0; + } + const links = getSymbolLinks(symbol); + const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map()); + const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node); + const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`; + if (cache.has(key)) { + return cache.get(key); + } + const id = getSymbolId(symbol); + let visitedSymbolTables = visitedSymbolTablesMap.get(id); + if (!visitedSymbolTables) { + visitedSymbolTablesMap.set(id, visitedSymbolTables = []); + } + const result = forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable); + cache.set(key, result); + return result; + function getAccessibleSymbolChainFromSymbolTable(symbols, ignoreQualification, isLocalNameLookup) { + if (!pushIfUnique(visitedSymbolTables, symbols)) { + return void 0; + } + const result2 = trySymbolTable(symbols, ignoreQualification, isLocalNameLookup); + visitedSymbolTables.pop(); + return result2; + } + function canQualifySymbol(symbolFromSymbolTable, meaning2) { + return !needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning2) || // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too + !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning2), useOnlyExternalAliasing, visitedSymbolTablesMap); + } + function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification) { + return (symbol === (resolvedAliasSymbol || symbolFromSymbolTable) || getMergedSymbol(symbol) === getMergedSymbol(resolvedAliasSymbol || symbolFromSymbolTable)) && // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table) + // and if symbolFromSymbolTable or alias resolution matches the symbol, + // check the symbol can be qualified, it is only then this symbol is accessible + !some(symbolFromSymbolTable.declarations, hasNonGlobalAugmentationExternalModuleSymbol) && (ignoreQualification || canQualifySymbol(getMergedSymbol(symbolFromSymbolTable), meaning)); + } + function trySymbolTable(symbols, ignoreQualification, isLocalNameLookup) { + if (isAccessible( + symbols.get(symbol.escapedName), + /*resolvedAliasSymbol*/ + void 0, + ignoreQualification + )) { + return [symbol]; + } + const result2 = forEachEntry(symbols, (symbolFromSymbolTable) => { + if (symbolFromSymbolTable.flags & 2097152 /* Alias */ && symbolFromSymbolTable.escapedName !== "export=" /* ExportEquals */ && symbolFromSymbolTable.escapedName !== "default" /* Default */ && !(isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && isExternalModule(getSourceFileOfNode(enclosingDeclaration))) && (!useOnlyExternalAliasing || some(symbolFromSymbolTable.declarations, isExternalModuleImportEqualsDeclaration)) && (isLocalNameLookup ? !some(symbolFromSymbolTable.declarations, isNamespaceReexportDeclaration) : true) && (ignoreQualification || !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */))) { + const resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable); + const candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification); + if (candidate) { + return candidate; + } + } + if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) { + if (isAccessible( + getMergedSymbol(symbolFromSymbolTable.exportSymbol), + /*resolvedAliasSymbol*/ + void 0, + ignoreQualification + )) { + return [symbol]; + } + } + }); + return result2 || (symbols === globals ? getCandidateListForSymbol(globalThisSymbol, globalThisSymbol, ignoreQualification) : void 0); + } + function getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification) { + if (isAccessible(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification)) { + return [symbolFromSymbolTable]; + } + const candidateTable = getExportsOfSymbol(resolvedImportedSymbol); + const accessibleSymbolsFromExports = candidateTable && getAccessibleSymbolChainFromSymbolTable( + candidateTable, + /*ignoreQualification*/ + true + ); + if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) { + return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports); + } + } + } + function needsQualification(symbol, enclosingDeclaration, meaning) { + let qualify = false; + forEachSymbolTableInScope(enclosingDeclaration, (symbolTable) => { + let symbolFromSymbolTable = getMergedSymbol(symbolTable.get(symbol.escapedName)); + if (!symbolFromSymbolTable) { + return false; + } + if (symbolFromSymbolTable === symbol) { + return true; + } + const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */); + symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable; + const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags; + if (flags & meaning) { + qualify = true; + return true; + } + return false; + }); + return qualify; + } + function isPropertyOrMethodDeclarationSymbol(symbol) { + if (symbol.declarations && symbol.declarations.length) { + for (const declaration of symbol.declarations) { + switch (declaration.kind) { + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + continue; + default: + return false; + } + } + return true; + } + return false; + } + function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) { + const access = isSymbolAccessibleWorker( + typeSymbol, + enclosingDeclaration, + 788968 /* Type */, + /*shouldComputeAliasesToMakeVisible*/ + false, + /*allowModules*/ + true + ); + return access.accessibility === 0 /* Accessible */; + } + function isValueSymbolAccessible(typeSymbol, enclosingDeclaration) { + const access = isSymbolAccessibleWorker( + typeSymbol, + enclosingDeclaration, + 111551 /* Value */, + /*shouldComputeAliasesToMakeVisible*/ + false, + /*allowModules*/ + true + ); + return access.accessibility === 0 /* Accessible */; + } + function isSymbolAccessibleByFlags(typeSymbol, enclosingDeclaration, flags) { + const access = isSymbolAccessibleWorker( + typeSymbol, + enclosingDeclaration, + flags, + /*shouldComputeAliasesToMakeVisible*/ + false, + /*allowModules*/ + false + ); + return access.accessibility === 0 /* Accessible */; + } + function isAnySymbolAccessible(symbols, enclosingDeclaration, initialSymbol, meaning, shouldComputeAliasesToMakeVisible, allowModules) { + if (!length(symbols)) return; + let hadAccessibleChain; + let earlyModuleBail = false; + for (const symbol of symbols) { + const accessibleSymbolChain = getAccessibleSymbolChain( + symbol, + enclosingDeclaration, + meaning, + /*useOnlyExternalAliasing*/ + false + ); + if (accessibleSymbolChain) { + hadAccessibleChain = symbol; + const hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0], shouldComputeAliasesToMakeVisible); + if (hasAccessibleDeclarations) { + return hasAccessibleDeclarations; + } + } + if (allowModules) { + if (some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { + if (shouldComputeAliasesToMakeVisible) { + earlyModuleBail = true; + continue; + } + return { + accessibility: 0 /* Accessible */ + }; + } + } + const containers = getContainersOfSymbol(symbol, enclosingDeclaration, meaning); + const parentResult = isAnySymbolAccessible(containers, enclosingDeclaration, initialSymbol, initialSymbol === symbol ? getQualifiedLeftMeaning(meaning) : meaning, shouldComputeAliasesToMakeVisible, allowModules); + if (parentResult) { + return parentResult; + } + } + if (earlyModuleBail) { + return { + accessibility: 0 /* Accessible */ + }; + } + if (hadAccessibleChain) { + return { + accessibility: 1 /* NotAccessible */, + errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning), + errorModuleName: hadAccessibleChain !== initialSymbol ? symbolToString(hadAccessibleChain, enclosingDeclaration, 1920 /* Namespace */) : void 0 + }; + } + } + function isSymbolAccessible(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible) { + return isSymbolAccessibleWorker( + symbol, + enclosingDeclaration, + meaning, + shouldComputeAliasesToMakeVisible, + /*allowModules*/ + true + ); + } + function isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, allowModules) { + if (symbol && enclosingDeclaration) { + const result = isAnySymbolAccessible([symbol], enclosingDeclaration, symbol, meaning, shouldComputeAliasesToMakeVisible, allowModules); + if (result) { + return result; + } + const symbolExternalModule = forEach(symbol.declarations, getExternalModuleContainer); + if (symbolExternalModule) { + const enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration); + if (symbolExternalModule !== enclosingExternalModule) { + return { + accessibility: 2 /* CannotBeNamed */, + errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning), + errorModuleName: symbolToString(symbolExternalModule), + errorNode: isInJSFile(enclosingDeclaration) ? enclosingDeclaration : void 0 + }; + } + } + return { + accessibility: 1 /* NotAccessible */, + errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning) + }; + } + return { accessibility: 0 /* Accessible */ }; + } + function getExternalModuleContainer(declaration) { + const node = findAncestor(declaration, hasExternalModuleSymbol); + return node && getSymbolOfDeclaration(node); + } + function hasExternalModuleSymbol(declaration) { + return isAmbientModule(declaration) || declaration.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + } + function hasNonGlobalAugmentationExternalModuleSymbol(declaration) { + return isModuleWithStringLiteralName(declaration) || declaration.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(declaration); + } + function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) { + let aliasesToMakeVisible; + if (!every(filter(symbol.declarations, (d) => d.kind !== 80 /* Identifier */), getIsDeclarationVisible)) { + return void 0; + } + return { accessibility: 0 /* Accessible */, aliasesToMakeVisible }; + function getIsDeclarationVisible(declaration) { + var _a, _b; + if (!isDeclarationVisible(declaration)) { + const anyImportSyntax = getAnyImportSyntax(declaration); + if (anyImportSyntax && !hasSyntacticModifier(anyImportSyntax, 32 /* Export */) && // import clause without export + isDeclarationVisible(anyImportSyntax.parent)) { + return addVisibleAlias(declaration, anyImportSyntax); + } else if (isVariableDeclaration(declaration) && isVariableStatement(declaration.parent.parent) && !hasSyntacticModifier(declaration.parent.parent, 32 /* Export */) && // unexported variable statement + isDeclarationVisible(declaration.parent.parent.parent)) { + return addVisibleAlias(declaration, declaration.parent.parent); + } else if (isLateVisibilityPaintedStatement(declaration) && !hasSyntacticModifier(declaration, 32 /* Export */) && isDeclarationVisible(declaration.parent)) { + return addVisibleAlias(declaration, declaration); + } else if (isBindingElement(declaration)) { + if (symbol.flags & 2097152 /* Alias */ && isInJSFile(declaration) && ((_a = declaration.parent) == null ? void 0 : _a.parent) && isVariableDeclaration(declaration.parent.parent) && ((_b = declaration.parent.parent.parent) == null ? void 0 : _b.parent) && isVariableStatement(declaration.parent.parent.parent.parent) && !hasSyntacticModifier(declaration.parent.parent.parent.parent, 32 /* Export */) && declaration.parent.parent.parent.parent.parent && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) { + return addVisibleAlias(declaration, declaration.parent.parent.parent.parent); + } else if (symbol.flags & 2 /* BlockScopedVariable */) { + const variableStatement = findAncestor(declaration, isVariableStatement); + if (hasSyntacticModifier(variableStatement, 32 /* Export */)) { + return true; + } + if (!isDeclarationVisible(variableStatement.parent)) { + return false; + } + return addVisibleAlias(declaration, variableStatement); + } + } + return false; + } + return true; + } + function addVisibleAlias(declaration, aliasingStatement) { + if (shouldComputeAliasToMakeVisible) { + getNodeLinks(declaration).isVisible = true; + aliasesToMakeVisible = appendIfUnique(aliasesToMakeVisible, aliasingStatement); + } + return true; + } + } + function getMeaningOfEntityNameReference(entityName) { + let meaning; + if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName) { + meaning = 111551 /* Value */ | 1048576 /* ExportValue */; + } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */ || entityName.parent.kind === 166 /* QualifiedName */ && entityName.parent.left === entityName || entityName.parent.kind === 211 /* PropertyAccessExpression */ && entityName.parent.expression === entityName || entityName.parent.kind === 212 /* ElementAccessExpression */ && entityName.parent.expression === entityName) { + meaning = 1920 /* Namespace */; + } else { + meaning = 788968 /* Type */; + } + return meaning; + } + function isEntityNameVisible(entityName, enclosingDeclaration, shouldComputeAliasToMakeVisible = true) { + const meaning = getMeaningOfEntityNameReference(entityName); + const firstIdentifier = getFirstIdentifier(entityName); + const symbol = resolveName( + enclosingDeclaration, + firstIdentifier.escapedText, + meaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + if (symbol && symbol.flags & 262144 /* TypeParameter */ && meaning & 788968 /* Type */) { + return { accessibility: 0 /* Accessible */ }; + } + if (!symbol && isThisIdentifier(firstIdentifier) && isSymbolAccessible( + getSymbolOfDeclaration(getThisContainer( + firstIdentifier, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + )), + firstIdentifier, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility === 0 /* Accessible */) { + return { accessibility: 0 /* Accessible */ }; + } + if (!symbol) { + return { + accessibility: 3 /* NotResolved */, + errorSymbolName: getTextOfNode(firstIdentifier), + errorNode: firstIdentifier + }; + } + return hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) || { + accessibility: 1 /* NotAccessible */, + errorSymbolName: getTextOfNode(firstIdentifier), + errorNode: firstIdentifier + }; + } + function symbolToString(symbol, enclosingDeclaration, meaning, flags = 4 /* AllowAnyNodeKind */, writer) { + let nodeFlags = 70221824 /* IgnoreErrors */; + if (flags & 2 /* UseOnlyExternalAliasing */) { + nodeFlags |= 128 /* UseOnlyExternalAliasing */; + } + if (flags & 1 /* WriteTypeParametersOrArguments */) { + nodeFlags |= 512 /* WriteTypeParametersInQualifiedName */; + } + if (flags & 8 /* UseAliasDefinedOutsideCurrentScope */) { + nodeFlags |= 16384 /* UseAliasDefinedOutsideCurrentScope */; + } + if (flags & 32 /* DoNotIncludeSymbolChain */) { + nodeFlags |= 134217728 /* DoNotIncludeSymbolChain */; + } + if (flags & 16 /* WriteComputedProps */) { + nodeFlags |= 1073741824 /* WriteComputedProps */; + } + const builder = flags & 4 /* AllowAnyNodeKind */ ? nodeBuilder.symbolToNode : nodeBuilder.symbolToEntityName; + return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); + function symbolToStringWorker(writer2) { + const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); + const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 307 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); + const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); + printer.writeNode( + 4 /* Unspecified */, + entity, + /*sourceFile*/ + sourceFile, + writer2 + ); + return writer2; + } + } + function signatureToString(signature, enclosingDeclaration, flags = 0 /* None */, kind, writer) { + return writer ? signatureToStringWorker(writer).getText() : usingSingleLineStringWriter(signatureToStringWorker); + function signatureToStringWorker(writer2) { + let sigOutput; + if (flags & 262144 /* WriteArrowStyleSignature */) { + sigOutput = kind === 1 /* Construct */ ? 185 /* ConstructorType */ : 184 /* FunctionType */; + } else { + sigOutput = kind === 1 /* Construct */ ? 180 /* ConstructSignature */ : 179 /* CallSignature */; + } + const sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */); + const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); + const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); + printer.writeNode( + 4 /* Unspecified */, + sig, + /*sourceFile*/ + sourceFile, + getTrailingSemicolonDeferringWriter(writer2) + ); + return writer2; + } + } + function typeToString(type, enclosingDeclaration, flags = 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */, writer = createTextWriter("")) { + const noTruncation = compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */; + const typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | (noTruncation ? 1 /* NoTruncation */ : 0)); + if (typeNode === void 0) return Debug.fail("should always get typenode"); + const printer = type !== unresolvedType ? createPrinterWithRemoveComments() : createPrinterWithDefaults(); + const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); + printer.writeNode( + 4 /* Unspecified */, + typeNode, + /*sourceFile*/ + sourceFile, + writer + ); + const result = writer.getText(); + const maxLength = noTruncation ? noTruncationMaximumTruncationLength * 2 : defaultMaximumTruncationLength * 2; + if (maxLength && result && result.length >= maxLength) { + return result.substr(0, maxLength - "...".length) + "..."; + } + return result; + } + function getTypeNamesForErrorDisplay(left, right) { + let leftStr = symbolValueDeclarationIsContextSensitive(left.symbol) ? typeToString(left, left.symbol.valueDeclaration) : typeToString(left); + let rightStr = symbolValueDeclarationIsContextSensitive(right.symbol) ? typeToString(right, right.symbol.valueDeclaration) : typeToString(right); + if (leftStr === rightStr) { + leftStr = getTypeNameForErrorDisplay(left); + rightStr = getTypeNameForErrorDisplay(right); + } + return [leftStr, rightStr]; + } + function getTypeNameForErrorDisplay(type) { + return typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 64 /* UseFullyQualifiedType */ + ); + } + function symbolValueDeclarationIsContextSensitive(symbol) { + return symbol && !!symbol.valueDeclaration && isExpression(symbol.valueDeclaration) && !isContextSensitive(symbol.valueDeclaration); + } + function toNodeBuilderFlags(flags = 0 /* None */) { + return flags & 848330095 /* NodeBuilderFlagsMask */; + } + function isClassInstanceSide(type) { + return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || !!(type.flags & 524288 /* Object */) && !!(getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)); + } + function getTypeFromTypeNodeWithoutContext(node) { + return getTypeFromTypeNode(node); + } + function createNodeBuilder() { + return { + typeToTypeNode: (type, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeToTypeNodeHelper(type, context)), + typePredicateToTypePredicateNode: (typePredicate, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typePredicateToTypePredicateNodeHelper(typePredicate, context)), + expressionOrTypeToTypeNode: (expr, type, addUndefined, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => expressionOrTypeToTypeNode(context, expr, type, addUndefined)), + serializeTypeForDeclaration: (declaration, type, symbol, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => serializeTypeForDeclaration(context, declaration, type, symbol)), + serializeReturnTypeForSignature: (signature, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => serializeReturnTypeForSignature(context, signature)), + indexInfoToIndexSignatureDeclaration: (indexInfo, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => indexInfoToIndexSignatureDeclarationHelper( + indexInfo, + context, + /*typeNode*/ + void 0 + )), + signatureToSignatureDeclaration: (signature, kind, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => signatureToSignatureDeclarationHelper(signature, kind, context)), + symbolToEntityName: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToName( + symbol, + context, + meaning, + /*expectsIdentifier*/ + false + )), + symbolToExpression: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToExpression(symbol, context, meaning)), + symbolToTypeParameterDeclarations: (symbol, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeParametersToTypeParameterDeclarations(symbol, context)), + symbolToParameterDeclaration: (symbol, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToParameterDeclaration(symbol, context)), + typeParameterToDeclaration: (parameter, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => typeParameterToDeclaration(parameter, context)), + symbolTableToDeclarationStatements: (symbolTable, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolTableToDeclarationStatements(symbolTable, context)), + symbolToNode: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext(enclosingDeclaration, flags, tracker, (context) => symbolToNode(symbol, context, meaning)) + }; + function getTypeFromTypeNode2(context, node, noMappedTypes) { + const type = getTypeFromTypeNodeWithoutContext(node); + if (!context.mapper) return type; + const mappedType = instantiateType(type, context.mapper); + return noMappedTypes && mappedType !== type ? void 0 : mappedType; + } + function setTextRange2(context, range, location) { + if (!nodeIsSynthesized(range) || !(range.flags & 16 /* Synthesized */) || !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(range))) { + range = factory.cloneNode(range); + } + if (range === location) return range; + if (!location) { + return range; + } + if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) { + return setOriginalNode(range, location); + } + return setTextRange(setOriginalNode(range, location), location); + } + function expressionOrTypeToTypeNode(context, expr, type, addUndefined) { + const oldFlags = context.flags; + if (expr && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeTypeOfExpression(expr, context, addUndefined); + } + context.flags |= -2147483648 /* NoSyntacticPrinter */; + const result = expressionOrTypeToTypeNodeHelper(context, expr, type, addUndefined); + context.flags = oldFlags; + return result; + } + function expressionOrTypeToTypeNodeHelper(context, expr, type, addUndefined) { + if (expr) { + const typeNode = isAssertionExpression(expr) ? expr.type : isJSDocTypeAssertion(expr) ? getJSDocTypeAssertionType(expr) : void 0; + if (typeNode && !isConstTypeReference(typeNode)) { + const result = tryReuseExistingTypeNode(context, typeNode, type, expr.parent, addUndefined); + if (result) { + return result; + } + } + } + if (addUndefined) { + type = getOptionalType(type); + } + return typeToTypeNodeHelper(type, context); + } + function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) { + const originalType = type; + if (addUndefined) { + type = getOptionalType(type, !isParameter(host2)); + } + const clone = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2); + if (clone) { + if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768 /* Undefined */))) { + return factory.createUnionTypeNode([clone, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + return clone; + } + if (addUndefined && originalType !== type) { + const cloneMissingUndefined = tryReuseExistingNonParameterTypeNode(context, typeNode, originalType, host2); + if (cloneMissingUndefined) { + return factory.createUnionTypeNode([cloneMissingUndefined, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + } + return void 0; + } + function tryReuseExistingNonParameterTypeNode(context, existing, type, host2 = context.enclosingDeclaration, annotationType = getTypeFromTypeNode2( + context, + existing, + /*noMappedTypes*/ + true + )) { + if (annotationType && typeNodeIsEquivalentToType(host2, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type)) { + const result = tryReuseExistingTypeNodeHelper(context, existing); + if (result) { + return result; + } + } + return void 0; + } + function symbolToNode(symbol, context, meaning) { + if (context.flags & 1073741824 /* WriteComputedProps */) { + if (symbol.valueDeclaration) { + const name = getNameOfDeclaration(symbol.valueDeclaration); + if (name && isComputedPropertyName(name)) return name; + } + const nameType = getSymbolLinks(symbol).nameType; + if (nameType && nameType.flags & (1024 /* EnumLiteral */ | 8192 /* UniqueESSymbol */)) { + context.enclosingDeclaration = nameType.symbol.valueDeclaration; + return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, meaning)); + } + } + return symbolToExpression(symbol, context, meaning); + } + function withContext(enclosingDeclaration, flags, tracker, cb) { + const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; + const context = { + enclosingDeclaration, + enclosingFile: enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration), + flags: flags || 0 /* None */, + tracker: void 0, + encounteredError: false, + reportedDiagnostic: false, + visitedTypes: void 0, + symbolDepth: void 0, + inferTypeParameters: void 0, + approximateLength: 0, + trackedSymbols: void 0, + bundled: !!compilerOptions.outFile && !!enclosingDeclaration && isExternalOrCommonJsModule(getSourceFileOfNode(enclosingDeclaration)), + truncating: false, + usedSymbolNames: void 0, + remappedSymbolNames: void 0, + remappedSymbolReferences: void 0, + reverseMappedStack: void 0, + mustCreateTypeParameterSymbolList: true, + typeParameterSymbolList: void 0, + mustCreateTypeParametersNamesLookups: true, + typeParameterNames: void 0, + typeParameterNamesByText: void 0, + typeParameterNamesByTextNextNameCount: void 0, + mapper: void 0 + }; + context.tracker = new SymbolTrackerImpl(context, tracker, moduleResolverHost); + const resultingNode = cb(context); + if (context.truncating && context.flags & 1 /* NoTruncation */) { + context.tracker.reportTruncationError(); + } + return context.encounteredError ? void 0 : resultingNode; + } + function checkTruncationLength(context) { + if (context.truncating) return context.truncating; + return context.truncating = context.approximateLength > (context.flags & 1 /* NoTruncation */ ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength); + } + function typeToTypeNodeHelper(type, context) { + const savedFlags = context.flags; + const typeNode = typeToTypeNodeWorker(type, context); + context.flags = savedFlags; + return typeNode; + } + function typeToTypeNodeWorker(type, context) { + var _a, _b; + if (cancellationToken && cancellationToken.throwIfCancellationRequested) { + cancellationToken.throwIfCancellationRequested(); + } + const inTypeAlias = context.flags & 8388608 /* InTypeAlias */; + context.flags &= ~8388608 /* InTypeAlias */; + if (!type) { + if (!(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) { + context.encounteredError = true; + return void 0; + } + context.approximateLength += 3; + return factory.createKeywordTypeNode(133 /* AnyKeyword */); + } + if (!(context.flags & 536870912 /* NoTypeReduction */)) { + type = getReducedType(type); + } + if (type.flags & 1 /* Any */) { + if (type.aliasSymbol) { + return factory.createTypeReferenceNode(symbolToEntityNameNode(type.aliasSymbol), mapToTypeNodes(type.aliasTypeArguments, context)); + } + if (type === unresolvedType) { + return addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "unresolved"); + } + context.approximateLength += 3; + return factory.createKeywordTypeNode(type === intrinsicMarkerType ? 141 /* IntrinsicKeyword */ : 133 /* AnyKeyword */); + } + if (type.flags & 2 /* Unknown */) { + return factory.createKeywordTypeNode(159 /* UnknownKeyword */); + } + if (type.flags & 4 /* String */) { + context.approximateLength += 6; + return factory.createKeywordTypeNode(154 /* StringKeyword */); + } + if (type.flags & 8 /* Number */) { + context.approximateLength += 6; + return factory.createKeywordTypeNode(150 /* NumberKeyword */); + } + if (type.flags & 64 /* BigInt */) { + context.approximateLength += 6; + return factory.createKeywordTypeNode(163 /* BigIntKeyword */); + } + if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) { + context.approximateLength += 7; + return factory.createKeywordTypeNode(136 /* BooleanKeyword */); + } + if (type.flags & 1056 /* EnumLike */) { + if (type.symbol.flags & 8 /* EnumMember */) { + const parentSymbol = getParentOfSymbol(type.symbol); + const parentName = symbolToTypeNode(parentSymbol, context, 788968 /* Type */); + if (getDeclaredTypeOfSymbol(parentSymbol) === type) { + return parentName; + } + const memberName = symbolName(type.symbol); + if (isIdentifierText(memberName, 1 /* ES5 */)) { + return appendReferenceToType( + parentName, + factory.createTypeReferenceNode( + memberName, + /*typeArguments*/ + void 0 + ) + ); + } + if (isImportTypeNode(parentName)) { + parentName.isTypeOf = true; + return factory.createIndexedAccessTypeNode(parentName, factory.createLiteralTypeNode(factory.createStringLiteral(memberName))); + } else if (isTypeReferenceNode(parentName)) { + return factory.createIndexedAccessTypeNode(factory.createTypeQueryNode(parentName.typeName), factory.createLiteralTypeNode(factory.createStringLiteral(memberName))); + } else { + return Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`."); + } + } + return symbolToTypeNode(type.symbol, context, 788968 /* Type */); + } + if (type.flags & 128 /* StringLiteral */) { + context.approximateLength += type.value.length + 2; + return factory.createLiteralTypeNode(setEmitFlags(factory.createStringLiteral(type.value, !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */)), 16777216 /* NoAsciiEscaping */)); + } + if (type.flags & 256 /* NumberLiteral */) { + const value = type.value; + context.approximateLength += ("" + value).length; + return factory.createLiteralTypeNode(value < 0 ? factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-value)) : factory.createNumericLiteral(value)); + } + if (type.flags & 2048 /* BigIntLiteral */) { + context.approximateLength += pseudoBigIntToString(type.value).length + 1; + return factory.createLiteralTypeNode(factory.createBigIntLiteral(type.value)); + } + if (type.flags & 512 /* BooleanLiteral */) { + context.approximateLength += type.intrinsicName.length; + return factory.createLiteralTypeNode(type.intrinsicName === "true" ? factory.createTrue() : factory.createFalse()); + } + if (type.flags & 8192 /* UniqueESSymbol */) { + if (!(context.flags & 1048576 /* AllowUniqueESSymbolType */)) { + if (isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)) { + context.approximateLength += 6; + return symbolToTypeNode(type.symbol, context, 111551 /* Value */); + } + if (context.tracker.reportInaccessibleUniqueSymbolError) { + context.tracker.reportInaccessibleUniqueSymbolError(); + } + } + context.approximateLength += 13; + return factory.createTypeOperatorNode(158 /* UniqueKeyword */, factory.createKeywordTypeNode(155 /* SymbolKeyword */)); + } + if (type.flags & 16384 /* Void */) { + context.approximateLength += 4; + return factory.createKeywordTypeNode(116 /* VoidKeyword */); + } + if (type.flags & 32768 /* Undefined */) { + context.approximateLength += 9; + return factory.createKeywordTypeNode(157 /* UndefinedKeyword */); + } + if (type.flags & 65536 /* Null */) { + context.approximateLength += 4; + return factory.createLiteralTypeNode(factory.createNull()); + } + if (type.flags & 131072 /* Never */) { + context.approximateLength += 5; + return factory.createKeywordTypeNode(146 /* NeverKeyword */); + } + if (type.flags & 4096 /* ESSymbol */) { + context.approximateLength += 6; + return factory.createKeywordTypeNode(155 /* SymbolKeyword */); + } + if (type.flags & 67108864 /* NonPrimitive */) { + context.approximateLength += 6; + return factory.createKeywordTypeNode(151 /* ObjectKeyword */); + } + if (isThisTypeParameter(type)) { + if (context.flags & 4194304 /* InObjectTypeLiteral */) { + if (!context.encounteredError && !(context.flags & 32768 /* AllowThisInObjectLiteral */)) { + context.encounteredError = true; + } + (_b = (_a = context.tracker).reportInaccessibleThisError) == null ? void 0 : _b.call(_a); + } + context.approximateLength += 4; + return factory.createThisTypeNode(); + } + if (!inTypeAlias && type.aliasSymbol && (context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */ || isTypeSymbolAccessible(type.aliasSymbol, context.enclosingDeclaration))) { + const typeArgumentNodes = mapToTypeNodes(type.aliasTypeArguments, context); + if (isReservedMemberName(type.aliasSymbol.escapedName) && !(type.aliasSymbol.flags & 32 /* Class */)) return factory.createTypeReferenceNode(factory.createIdentifier(""), typeArgumentNodes); + if (length(typeArgumentNodes) === 1 && type.aliasSymbol === globalArrayType.symbol) { + return factory.createArrayTypeNode(typeArgumentNodes[0]); + } + return symbolToTypeNode(type.aliasSymbol, context, 788968 /* Type */, typeArgumentNodes); + } + const objectFlags = getObjectFlags(type); + if (objectFlags & 4 /* Reference */) { + Debug.assert(!!(type.flags & 524288 /* Object */)); + return type.node ? visitAndTransformType(type, typeReferenceToTypeNode) : typeReferenceToTypeNode(type); + } + if (type.flags & 262144 /* TypeParameter */ || objectFlags & 3 /* ClassOrInterface */) { + if (type.flags & 262144 /* TypeParameter */ && contains(context.inferTypeParameters, type)) { + context.approximateLength += symbolName(type.symbol).length + 6; + let constraintNode; + const constraint = getConstraintOfTypeParameter(type); + if (constraint) { + const inferredConstraint = getInferredTypeParameterConstraint( + type, + /*omitTypeReferences*/ + true + ); + if (!(inferredConstraint && isTypeIdenticalTo(constraint, inferredConstraint))) { + context.approximateLength += 9; + constraintNode = constraint && typeToTypeNodeHelper(constraint, context); + } + } + return factory.createInferTypeNode(typeParameterToDeclarationWithConstraint(type, context, constraintNode)); + } + if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && type.flags & 262144 /* TypeParameter */) { + const name2 = typeParameterToName(type, context); + context.approximateLength += idText(name2).length; + return factory.createTypeReferenceNode( + factory.createIdentifier(idText(name2)), + /*typeArguments*/ + void 0 + ); + } + if (type.symbol) { + return symbolToTypeNode(type.symbol, context, 788968 /* Type */); + } + const name = (type === markerSuperTypeForCheck || type === markerSubTypeForCheck) && varianceTypeParameter && varianceTypeParameter.symbol ? (type === markerSubTypeForCheck ? "sub-" : "super-") + symbolName(varianceTypeParameter.symbol) : "?"; + return factory.createTypeReferenceNode( + factory.createIdentifier(name), + /*typeArguments*/ + void 0 + ); + } + if (type.flags & 1048576 /* Union */ && type.origin) { + type = type.origin; + } + if (type.flags & (1048576 /* Union */ | 2097152 /* Intersection */)) { + const types = type.flags & 1048576 /* Union */ ? formatUnionTypes(type.types) : type.types; + if (length(types) === 1) { + return typeToTypeNodeHelper(types[0], context); + } + const typeNodes = mapToTypeNodes( + types, + context, + /*isBareList*/ + true + ); + if (typeNodes && typeNodes.length > 0) { + return type.flags & 1048576 /* Union */ ? factory.createUnionTypeNode(typeNodes) : factory.createIntersectionTypeNode(typeNodes); + } else { + if (!context.encounteredError && !(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) { + context.encounteredError = true; + } + return void 0; + } + } + if (objectFlags & (16 /* Anonymous */ | 32 /* Mapped */)) { + Debug.assert(!!(type.flags & 524288 /* Object */)); + return createAnonymousTypeNode(type); + } + if (type.flags & 4194304 /* Index */) { + const indexedType = type.type; + context.approximateLength += 6; + const indexTypeNode = typeToTypeNodeHelper(indexedType, context); + return factory.createTypeOperatorNode(143 /* KeyOfKeyword */, indexTypeNode); + } + if (type.flags & 134217728 /* TemplateLiteral */) { + const texts = type.texts; + const types = type.types; + const templateHead = factory.createTemplateHead(texts[0]); + const templateSpans = factory.createNodeArray( + map(types, (t, i) => factory.createTemplateLiteralTypeSpan( + typeToTypeNodeHelper(t, context), + (i < types.length - 1 ? factory.createTemplateMiddle : factory.createTemplateTail)(texts[i + 1]) + )) + ); + context.approximateLength += 2; + return factory.createTemplateLiteralType(templateHead, templateSpans); + } + if (type.flags & 268435456 /* StringMapping */) { + const typeNode = typeToTypeNodeHelper(type.type, context); + return symbolToTypeNode(type.symbol, context, 788968 /* Type */, [typeNode]); + } + if (type.flags & 8388608 /* IndexedAccess */) { + const objectTypeNode = typeToTypeNodeHelper(type.objectType, context); + const indexTypeNode = typeToTypeNodeHelper(type.indexType, context); + context.approximateLength += 2; + return factory.createIndexedAccessTypeNode(objectTypeNode, indexTypeNode); + } + if (type.flags & 16777216 /* Conditional */) { + return visitAndTransformType(type, (type2) => conditionalTypeToTypeNode(type2)); + } + if (type.flags & 33554432 /* Substitution */) { + const typeNode = typeToTypeNodeHelper(type.baseType, context); + const noInferSymbol = isNoInferType(type) && getGlobalTypeSymbol( + "NoInfer", + /*reportErrors*/ + false + ); + return noInferSymbol ? symbolToTypeNode(noInferSymbol, context, 788968 /* Type */, [typeNode]) : typeNode; + } + return Debug.fail("Should be unreachable."); + function conditionalTypeToTypeNode(type2) { + const checkTypeNode = typeToTypeNodeHelper(type2.checkType, context); + context.approximateLength += 15; + if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && type2.root.isDistributive && !(type2.checkType.flags & 262144 /* TypeParameter */)) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + const newTypeVariable = factory.createTypeReferenceNode(name); + context.approximateLength += 37; + const newMapper = prependTypeMapping(type2.root.checkType, newParam, type2.mapper); + const saveInferTypeParameters2 = context.inferTypeParameters; + context.inferTypeParameters = type2.root.inferTypeParameters; + const extendsTypeNode2 = typeToTypeNodeHelper(instantiateType(type2.root.extendsType, newMapper), context); + context.inferTypeParameters = saveInferTypeParameters2; + const trueTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode2(context, type2.root.node.trueType), newMapper)); + const falseTypeNode2 = typeToTypeNodeOrCircularityElision(instantiateType(getTypeFromTypeNode2(context, type2.root.node.falseType), newMapper)); + return factory.createConditionalTypeNode( + checkTypeNode, + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName) + )), + factory.createConditionalTypeNode( + factory.createTypeReferenceNode(factory.cloneNode(name)), + typeToTypeNodeHelper(type2.checkType, context), + factory.createConditionalTypeNode(newTypeVariable, extendsTypeNode2, trueTypeNode2, falseTypeNode2), + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ), + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); + } + const saveInferTypeParameters = context.inferTypeParameters; + context.inferTypeParameters = type2.root.inferTypeParameters; + const extendsTypeNode = typeToTypeNodeHelper(type2.extendsType, context); + context.inferTypeParameters = saveInferTypeParameters; + const trueTypeNode = typeToTypeNodeOrCircularityElision(getTrueTypeFromConditionalType(type2)); + const falseTypeNode = typeToTypeNodeOrCircularityElision(getFalseTypeFromConditionalType(type2)); + return factory.createConditionalTypeNode(checkTypeNode, extendsTypeNode, trueTypeNode, falseTypeNode); + } + function typeToTypeNodeOrCircularityElision(type2) { + var _a2, _b2, _c; + if (type2.flags & 1048576 /* Union */) { + if ((_a2 = context.visitedTypes) == null ? void 0 : _a2.has(getTypeId(type2))) { + if (!(context.flags & 131072 /* AllowAnonymousIdentifier */)) { + context.encounteredError = true; + (_c = (_b2 = context.tracker) == null ? void 0 : _b2.reportCyclicStructureError) == null ? void 0 : _c.call(_b2); + } + return createElidedInformationPlaceholder(context); + } + return visitAndTransformType(type2, (type3) => typeToTypeNodeHelper(type3, context)); + } + return typeToTypeNodeHelper(type2, context); + } + function isMappedTypeHomomorphic(type2) { + return !!getHomomorphicTypeVariable(type2); + } + function isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) { + return !!type2.target && isMappedTypeHomomorphic(type2.target) && !isMappedTypeHomomorphic(type2); + } + function createMappedTypeNodeFromType(type2) { + var _a2; + Debug.assert(!!(type2.flags & 524288 /* Object */)); + const readonlyToken = type2.declaration.readonlyToken ? factory.createToken(type2.declaration.readonlyToken.kind) : void 0; + const questionToken = type2.declaration.questionToken ? factory.createToken(type2.declaration.questionToken.kind) : void 0; + let appropriateConstraintTypeNode; + let newTypeVariable; + const needsModifierPreservingWrapper = !isMappedTypeWithKeyofConstraintDeclaration(type2) && !(getModifiersTypeFromMappedType(type2).flags & 2 /* Unknown */) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && !(getConstraintTypeFromMappedType(type2).flags & 262144 /* TypeParameter */ && ((_a2 = getConstraintOfTypeParameter(getConstraintTypeFromMappedType(type2))) == null ? void 0 : _a2.flags) & 4194304 /* Index */); + if (isMappedTypeWithKeyofConstraintDeclaration(type2)) { + if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + } + appropriateConstraintTypeNode = factory.createTypeOperatorNode(143 /* KeyOfKeyword */, newTypeVariable || typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)); + } else if (needsModifierPreservingWrapper) { + const newParam = createTypeParameter(createSymbol(262144 /* TypeParameter */, "T")); + const name = typeParameterToName(newParam, context); + newTypeVariable = factory.createTypeReferenceNode(name); + appropriateConstraintTypeNode = newTypeVariable; + } else { + appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context); + } + const typeParameterNode = typeParameterToDeclarationWithConstraint(getTypeParameterFromMappedType(type2), context, appropriateConstraintTypeNode); + const nameTypeNode = type2.declaration.nameType ? typeToTypeNodeHelper(getNameTypeFromMappedType(type2), context) : void 0; + const templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type2), !!(getMappedTypeModifiers(type2) & 4 /* IncludeOptional */)), context); + const mappedTypeNode = factory.createMappedTypeNode( + readonlyToken, + typeParameterNode, + nameTypeNode, + questionToken, + templateTypeNode, + /*members*/ + void 0 + ); + context.approximateLength += 10; + const result = setEmitFlags(mappedTypeNode, 1 /* SingleLine */); + if (isHomomorphicMappedTypeWithNonHomomorphicInstantiation(type2) && context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { + const originalConstraint = instantiateType(getConstraintOfTypeParameter(getTypeFromTypeNode2(context, type2.declaration.typeParameter.constraint.type)) || unknownType, type2.mapper); + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + originalConstraint.flags & 2 /* Unknown */ ? void 0 : typeToTypeNodeHelper(originalConstraint, context) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); + } else if (needsModifierPreservingWrapper) { + return factory.createConditionalTypeNode( + typeToTypeNodeHelper(getConstraintTypeFromMappedType(type2), context), + factory.createInferTypeNode(factory.createTypeParameterDeclaration( + /*modifiers*/ + void 0, + factory.cloneNode(newTypeVariable.typeName), + factory.createTypeOperatorNode(143 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type2), context)) + )), + result, + factory.createKeywordTypeNode(146 /* NeverKeyword */) + ); + } + return result; + } + function createAnonymousTypeNode(type2) { + var _a2, _b2; + const typeId = type2.id; + const symbol = type2.symbol; + if (symbol) { + const isInstantiationExpressionType = !!(getObjectFlags(type2) & 8388608 /* InstantiationExpressionType */); + if (isInstantiationExpressionType) { + const instantiationExpressionType = type2; + const existing = instantiationExpressionType.node; + if (isTypeQueryNode(existing)) { + const typeNode = tryReuseExistingNonParameterTypeNode(context, existing, type2); + if (typeNode) { + return typeNode; + } + } + if ((_a2 = context.visitedTypes) == null ? void 0 : _a2.has(typeId)) { + return createElidedInformationPlaceholder(context); + } + return visitAndTransformType(type2, createTypeNodeFromObjectType); + } + const isInstanceType = isClassInstanceSide(type2) ? 788968 /* Type */ : 111551 /* Value */; + if (isJSConstructor(symbol.valueDeclaration)) { + return symbolToTypeNode(symbol, context, isInstanceType); + } else if (symbol.flags & 32 /* Class */ && !getBaseTypeVariableOfClass(symbol) && !(symbol.valueDeclaration && isClassLike(symbol.valueDeclaration) && context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ && (!isClassDeclaration(symbol.valueDeclaration) || isSymbolAccessible( + symbol, + context.enclosingDeclaration, + isInstanceType, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility !== 0 /* Accessible */)) || symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) || shouldWriteTypeOfFunctionSymbol()) { + return symbolToTypeNode(symbol, context, isInstanceType); + } else if ((_b2 = context.visitedTypes) == null ? void 0 : _b2.has(typeId)) { + const typeAlias = getTypeAliasForTypeLiteral(type2); + if (typeAlias) { + return symbolToTypeNode(typeAlias, context, 788968 /* Type */); + } else { + return createElidedInformationPlaceholder(context); + } + } else { + return visitAndTransformType(type2, createTypeNodeFromObjectType); + } + } else { + return createTypeNodeFromObjectType(type2); + } + function shouldWriteTypeOfFunctionSymbol() { + var _a3; + const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method + some(symbol.declarations, (declaration) => isStatic(declaration)); + const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol + forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); + if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { + return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a3 = context.visitedTypes) == null ? void 0 : _a3.has(typeId))) && // it is type of the symbol uses itself recursively + (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); + } + } + } + function visitAndTransformType(type2, transform) { + var _a2, _b2, _c; + const typeId = type2.id; + const isConstructorObject = getObjectFlags(type2) & 16 /* Anonymous */ && type2.symbol && type2.symbol.flags & 32 /* Class */; + const id = getObjectFlags(type2) & 4 /* Reference */ && type2.node ? "N" + getNodeId(type2.node) : type2.flags & 16777216 /* Conditional */ ? "N" + getNodeId(type2.root.node) : type2.symbol ? (isConstructorObject ? "+" : "") + getSymbolId(type2.symbol) : void 0; + if (!context.visitedTypes) { + context.visitedTypes = /* @__PURE__ */ new Set(); + } + if (id && !context.symbolDepth) { + context.symbolDepth = /* @__PURE__ */ new Map(); + } + const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration); + const key = `${getTypeId(type2)}|${context.flags}`; + if (links) { + links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map()); + } + const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key); + if (cachedResult) { + (_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach( + ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( + symbol, + enclosingDeclaration, + meaning + ) + ); + if (cachedResult.truncating) { + context.truncating = true; + } + context.approximateLength += cachedResult.addedLength; + return deepCloneOrReuseNode(cachedResult.node); + } + let depth; + if (id) { + depth = context.symbolDepth.get(id) || 0; + if (depth > 10) { + return createElidedInformationPlaceholder(context); + } + context.symbolDepth.set(id, depth + 1); + } + context.visitedTypes.add(typeId); + const prevTrackedSymbols = context.trackedSymbols; + context.trackedSymbols = void 0; + const startLength = context.approximateLength; + const result = transform(type2); + const addedLength = context.approximateLength - startLength; + if (!context.reportedDiagnostic && !context.encounteredError) { + (_c = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _c.set(key, { + node: result, + truncating: context.truncating, + addedLength, + trackedSymbols: context.trackedSymbols + }); + } + context.visitedTypes.delete(typeId); + if (id) { + context.symbolDepth.set(id, depth); + } + context.trackedSymbols = prevTrackedSymbols; + return result; + function deepCloneOrReuseNode(node) { + if (!nodeIsSynthesized(node) && getParseTreeNode(node) === node) { + return node; + } + return setTextRange2(context, factory.cloneNode(visitEachChild( + node, + deepCloneOrReuseNode, + /*context*/ + void 0, + deepCloneOrReuseNodes, + deepCloneOrReuseNode + )), node); + } + function deepCloneOrReuseNodes(nodes, visitor, test, start, count) { + if (nodes && nodes.length === 0) { + return setTextRange(factory.createNodeArray( + /*elements*/ + void 0, + nodes.hasTrailingComma + ), nodes); + } + return visitNodes2(nodes, visitor, test, start, count); + } + } + function createTypeNodeFromObjectType(type2) { + if (isGenericMappedType(type2) || type2.containsError) { + return createMappedTypeNodeFromType(type2); + } + const resolved = resolveStructuredTypeMembers(type2); + if (!resolved.properties.length && !resolved.indexInfos.length) { + if (!resolved.callSignatures.length && !resolved.constructSignatures.length) { + context.approximateLength += 2; + return setEmitFlags(factory.createTypeLiteralNode( + /*members*/ + void 0 + ), 1 /* SingleLine */); + } + if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) { + const signature = resolved.callSignatures[0]; + const signatureNode = signatureToSignatureDeclarationHelper(signature, 184 /* FunctionType */, context); + return signatureNode; + } + if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) { + const signature = resolved.constructSignatures[0]; + const signatureNode = signatureToSignatureDeclarationHelper(signature, 185 /* ConstructorType */, context); + return signatureNode; + } + } + const abstractSignatures = filter(resolved.constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */)); + if (some(abstractSignatures)) { + const types = map(abstractSignatures, (s) => getOrCreateTypeFromSignature(s)); + const typeElementCount = resolved.callSignatures.length + (resolved.constructSignatures.length - abstractSignatures.length) + resolved.indexInfos.length + // exclude `prototype` when writing a class expression as a type literal, as per + // the logic in `createTypeNodesFromResolvedType`. + (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ ? countWhere(resolved.properties, (p) => !(p.flags & 4194304 /* Prototype */)) : length(resolved.properties)); + if (typeElementCount) { + types.push(getResolvedTypeWithoutAbstractConstructSignatures(resolved)); + } + return typeToTypeNodeHelper(getIntersectionType(types), context); + } + const savedFlags = context.flags; + context.flags |= 4194304 /* InObjectTypeLiteral */; + const members = createTypeNodesFromResolvedType(resolved); + context.flags = savedFlags; + const typeLiteralNode = factory.createTypeLiteralNode(members); + context.approximateLength += 2; + setEmitFlags(typeLiteralNode, context.flags & 1024 /* MultilineObjectLiterals */ ? 0 : 1 /* SingleLine */); + return typeLiteralNode; + } + function typeReferenceToTypeNode(type2) { + let typeArguments = getTypeArguments(type2); + if (type2.target === globalArrayType || type2.target === globalReadonlyArrayType) { + if (context.flags & 2 /* WriteArrayAsGenericType */) { + const typeArgumentNode = typeToTypeNodeHelper(typeArguments[0], context); + return factory.createTypeReferenceNode(type2.target === globalArrayType ? "Array" : "ReadonlyArray", [typeArgumentNode]); + } + const elementType = typeToTypeNodeHelper(typeArguments[0], context); + const arrayType = factory.createArrayTypeNode(elementType); + return type2.target === globalArrayType ? arrayType : factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, arrayType); + } else if (type2.target.objectFlags & 8 /* Tuple */) { + typeArguments = sameMap(typeArguments, (t, i) => removeMissingType(t, !!(type2.target.elementFlags[i] & 2 /* Optional */))); + if (typeArguments.length > 0) { + const arity = getTypeReferenceArity(type2); + const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context); + if (tupleConstituentNodes) { + const { labeledElementDeclarations } = type2.target; + for (let i = 0; i < tupleConstituentNodes.length; i++) { + const flags = type2.target.elementFlags[i]; + const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i]; + if (labeledElementDeclaration) { + tupleConstituentNodes[i] = factory.createNamedTupleMember( + flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0, + factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))), + flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, + flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i] + ); + } else { + tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]; + } + } + const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode(tupleConstituentNodes), 1 /* SingleLine */); + return type2.target.readonly ? factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode; + } + } + if (context.encounteredError || context.flags & 524288 /* AllowEmptyTuple */) { + const tupleTypeNode = setEmitFlags(factory.createTupleTypeNode([]), 1 /* SingleLine */); + return type2.target.readonly ? factory.createTypeOperatorNode(148 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode; + } + context.encounteredError = true; + return void 0; + } else if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ && type2.symbol.valueDeclaration && isClassLike(type2.symbol.valueDeclaration) && !isValueSymbolAccessible(type2.symbol, context.enclosingDeclaration)) { + return createAnonymousTypeNode(type2); + } else { + const outerTypeParameters = type2.target.outerTypeParameters; + let i = 0; + let resultType; + if (outerTypeParameters) { + const length2 = outerTypeParameters.length; + while (i < length2) { + const start = i; + const parent = getParentSymbolOfTypeParameter(outerTypeParameters[i]); + do { + i++; + } while (i < length2 && getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent); + if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) { + const typeArgumentSlice = mapToTypeNodes(typeArguments.slice(start, i), context); + const flags2 = context.flags; + context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; + const ref = symbolToTypeNode(parent, context, 788968 /* Type */, typeArgumentSlice); + context.flags = flags2; + resultType = !resultType ? ref : appendReferenceToType(resultType, ref); + } + } + } + let typeArgumentNodes; + if (typeArguments.length > 0) { + const typeParameterCount = (type2.target.typeParameters || emptyArray).length; + typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context); + } + const flags = context.flags; + context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; + const finalRef = symbolToTypeNode(type2.symbol, context, 788968 /* Type */, typeArgumentNodes); + context.flags = flags; + return !resultType ? finalRef : appendReferenceToType(resultType, finalRef); + } + } + function appendReferenceToType(root, ref) { + if (isImportTypeNode(root)) { + let typeArguments = root.typeArguments; + let qualifier = root.qualifier; + if (qualifier) { + if (isIdentifier(qualifier)) { + if (typeArguments !== getIdentifierTypeArguments(qualifier)) { + qualifier = setIdentifierTypeArguments(factory.cloneNode(qualifier), typeArguments); + } + } else { + if (typeArguments !== getIdentifierTypeArguments(qualifier.right)) { + qualifier = factory.updateQualifiedName(qualifier, qualifier.left, setIdentifierTypeArguments(factory.cloneNode(qualifier.right), typeArguments)); + } + } + } + typeArguments = ref.typeArguments; + const ids = getAccessStack(ref); + for (const id of ids) { + qualifier = qualifier ? factory.createQualifiedName(qualifier, id) : id; + } + return factory.updateImportTypeNode( + root, + root.argument, + root.attributes, + qualifier, + typeArguments, + root.isTypeOf + ); + } else { + let typeArguments = root.typeArguments; + let typeName = root.typeName; + if (isIdentifier(typeName)) { + if (typeArguments !== getIdentifierTypeArguments(typeName)) { + typeName = setIdentifierTypeArguments(factory.cloneNode(typeName), typeArguments); + } + } else { + if (typeArguments !== getIdentifierTypeArguments(typeName.right)) { + typeName = factory.updateQualifiedName(typeName, typeName.left, setIdentifierTypeArguments(factory.cloneNode(typeName.right), typeArguments)); + } + } + typeArguments = ref.typeArguments; + const ids = getAccessStack(ref); + for (const id of ids) { + typeName = factory.createQualifiedName(typeName, id); + } + return factory.updateTypeReferenceNode( + root, + typeName, + typeArguments + ); + } + } + function getAccessStack(ref) { + let state = ref.typeName; + const ids = []; + while (!isIdentifier(state)) { + ids.unshift(state.right); + state = state.left; + } + ids.unshift(state); + return ids; + } + function createTypeNodesFromResolvedType(resolvedType) { + if (checkTruncationLength(context)) { + return [factory.createPropertySignature( + /*modifiers*/ + void 0, + "...", + /*questionToken*/ + void 0, + /*type*/ + void 0 + )]; + } + const typeElements = []; + for (const signature of resolvedType.callSignatures) { + typeElements.push(signatureToSignatureDeclarationHelper(signature, 179 /* CallSignature */, context)); + } + for (const signature of resolvedType.constructSignatures) { + if (signature.flags & 4 /* Abstract */) continue; + typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); + } + for (const info of resolvedType.indexInfos) { + typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); + } + const properties = resolvedType.properties; + if (!properties) { + return typeElements; + } + let i = 0; + for (const propertySymbol of properties) { + i++; + if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */) { + if (propertySymbol.flags & 4194304 /* Prototype */) { + continue; + } + if (getDeclarationModifierFlagsFromSymbol(propertySymbol) & (2 /* Private */ | 4 /* Protected */) && context.tracker.reportPrivateInBaseOfClassExpression) { + context.tracker.reportPrivateInBaseOfClassExpression(unescapeLeadingUnderscores(propertySymbol.escapedName)); + } + } + if (checkTruncationLength(context) && i + 2 < properties.length - 1) { + typeElements.push(factory.createPropertySignature( + /*modifiers*/ + void 0, + `... ${properties.length - i} more ...`, + /*questionToken*/ + void 0, + /*type*/ + void 0 + )); + addPropertyToElementList(properties[properties.length - 1], context, typeElements); + break; + } + addPropertyToElementList(propertySymbol, context, typeElements); + } + return typeElements.length ? typeElements : void 0; + } + } + function createElidedInformationPlaceholder(context) { + context.approximateLength += 3; + if (!(context.flags & 1 /* NoTruncation */)) { + return factory.createTypeReferenceNode( + factory.createIdentifier("..."), + /*typeArguments*/ + void 0 + ); + } + return factory.createKeywordTypeNode(133 /* AnyKeyword */); + } + function shouldUsePlaceholderForProperty(propertySymbol, context) { + var _a; + const depth = 3; + return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */) || isDeeplyNestedReverseMappedTypeProperty()); + function isDeeplyNestedReverseMappedTypeProperty() { + var _a2; + if ((((_a2 = context.reverseMappedStack) == null ? void 0 : _a2.length) ?? 0) < depth) { + return false; + } + for (let i = 0; i < depth; i++) { + const prop = context.reverseMappedStack[context.reverseMappedStack.length - 1 - i]; + if (prop.links.mappedType.symbol !== propertySymbol.links.mappedType.symbol) { + return false; + } + } + return true; + } + } + function addPropertyToElementList(propertySymbol, context, typeElements) { + var _a; + const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */); + const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol); + const saveEnclosingDeclaration = context.enclosingDeclaration; + context.enclosingDeclaration = void 0; + if (context.tracker.canTrackSymbol && isLateBoundName(propertySymbol.escapedName)) { + if (propertySymbol.declarations) { + const decl = first(propertySymbol.declarations); + if (hasLateBindableName(decl)) { + if (isBinaryExpression(decl)) { + const name = getNameOfDeclaration(decl); + if (name && isElementAccessExpression(name) && isPropertyAccessEntityNameExpression(name.argumentExpression)) { + trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context); + } + } else { + trackComputedName(decl.name.expression, saveEnclosingDeclaration, context); + } + } + } else { + context.tracker.reportNonSerializableProperty(symbolToString(propertySymbol)); + } + } + context.enclosingDeclaration = propertySymbol.valueDeclaration || ((_a = propertySymbol.declarations) == null ? void 0 : _a[0]) || saveEnclosingDeclaration; + const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context); + context.enclosingDeclaration = saveEnclosingDeclaration; + context.approximateLength += symbolName(propertySymbol).length + 1; + if (propertySymbol.flags & 98304 /* Accessor */) { + const writeType = getWriteTypeOfSymbol(propertySymbol); + if (propertyType !== writeType && !isErrorType(propertyType) && !isErrorType(writeType)) { + const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */); + const getterSignature = getSignatureFromDeclaration(getterDeclaration); + typeElements.push( + setCommentRange2( + context, + signatureToSignatureDeclarationHelper(getterSignature, 177 /* GetAccessor */, context, { name: propertyName }), + getterDeclaration + ) + ); + const setterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* SetAccessor */); + const setterSignature = getSignatureFromDeclaration(setterDeclaration); + typeElements.push( + setCommentRange2( + context, + signatureToSignatureDeclarationHelper(setterSignature, 178 /* SetAccessor */, context, { name: propertyName }), + setterDeclaration + ) + ); + return; + } + } + const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0; + if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) { + const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); + for (const signature of signatures) { + const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); + typeElements.push(preserveCommentsOn(methodDeclaration)); + } + if (signatures.length || !optionalToken) { + return; + } + } + let propertyTypeNode; + if (shouldUsePlaceholderForProperty(propertySymbol, context)) { + propertyTypeNode = createElidedInformationPlaceholder(context); + } else { + if (propertyIsReverseMapped) { + context.reverseMappedStack || (context.reverseMappedStack = []); + context.reverseMappedStack.push(propertySymbol); + } + propertyTypeNode = propertyType ? serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + propertyType, + propertySymbol + ) : factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (propertyIsReverseMapped) { + context.reverseMappedStack.pop(); + } + } + const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0; + if (modifiers) { + context.approximateLength += 9; + } + const propertySignature = factory.createPropertySignature( + modifiers, + propertyName, + optionalToken, + propertyTypeNode + ); + typeElements.push(preserveCommentsOn(propertySignature)); + function preserveCommentsOn(node) { + var _a2; + const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 348 /* JSDocPropertyTag */); + if (jsdocPropertyTag) { + const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment); + if (commentText) { + setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); + } + } else if (propertySymbol.valueDeclaration) { + setCommentRange2(context, node, propertySymbol.valueDeclaration); + } + return node; + } + } + function setCommentRange2(context, node, range) { + if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(range)) { + return setCommentRange(node, range); + } + return node; + } + function mapToTypeNodes(types, context, isBareList) { + if (some(types)) { + if (checkTruncationLength(context)) { + if (!isBareList) { + return [factory.createTypeReferenceNode( + "...", + /*typeArguments*/ + void 0 + )]; + } else if (types.length > 2) { + return [ + typeToTypeNodeHelper(types[0], context), + factory.createTypeReferenceNode( + `... ${types.length - 2} more ...`, + /*typeArguments*/ + void 0 + ), + typeToTypeNodeHelper(types[types.length - 1], context) + ]; + } + } + const mayHaveNameCollisions = !(context.flags & 64 /* UseFullyQualifiedType */); + const seenNames = mayHaveNameCollisions ? createMultiMap() : void 0; + const result = []; + let i = 0; + for (const type of types) { + i++; + if (checkTruncationLength(context) && i + 2 < types.length - 1) { + result.push(factory.createTypeReferenceNode( + `... ${types.length - i} more ...`, + /*typeArguments*/ + void 0 + )); + const typeNode2 = typeToTypeNodeHelper(types[types.length - 1], context); + if (typeNode2) { + result.push(typeNode2); + } + break; + } + context.approximateLength += 2; + const typeNode = typeToTypeNodeHelper(type, context); + if (typeNode) { + result.push(typeNode); + if (seenNames && isIdentifierTypeReference(typeNode)) { + seenNames.add(typeNode.typeName.escapedText, [type, result.length - 1]); + } + } + } + if (seenNames) { + const saveContextFlags = context.flags; + context.flags |= 64 /* UseFullyQualifiedType */; + seenNames.forEach((types2) => { + if (!arrayIsHomogeneous(types2, ([a], [b]) => typesAreSameReference(a, b))) { + for (const [type, resultIndex] of types2) { + result[resultIndex] = typeToTypeNodeHelper(type, context); + } + } + }); + context.flags = saveContextFlags; + } + return result; + } + } + function typesAreSameReference(a, b) { + return a === b || !!a.symbol && a.symbol === b.symbol || !!a.aliasSymbol && a.aliasSymbol === b.aliasSymbol; + } + function indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, typeNode) { + const name = getNameFromIndexInfo(indexInfo) || "x"; + const indexerTypeNode = typeToTypeNodeHelper(indexInfo.keyType, context); + const indexingParameter = factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + name, + /*questionToken*/ + void 0, + indexerTypeNode, + /*initializer*/ + void 0 + ); + if (!typeNode) { + typeNode = typeToTypeNodeHelper(indexInfo.type || anyType, context); + } + if (!indexInfo.type && !(context.flags & 2097152 /* AllowEmptyIndexInfoType */)) { + context.encounteredError = true; + } + context.approximateLength += name.length + 4; + return factory.createIndexSignature( + indexInfo.isReadonly ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0, + [indexingParameter], + typeNode + ); + } + function signatureToSignatureDeclarationHelper(signature, kind, context, options) { + var _a; + let typeParameters; + let typeArguments; + const expandedParams = getExpandedParameters( + signature, + /*skipUnionExpanding*/ + true + )[0]; + const cleanup = enterNewScope(context, signature.declaration, expandedParams, signature.typeParameters, signature.parameters, signature.mapper); + context.approximateLength += 3; + if (context.flags & 32 /* WriteTypeArgumentsOfSignature */ && signature.target && signature.mapper && signature.target.typeParameters) { + typeArguments = signature.target.typeParameters.map((parameter) => typeToTypeNodeHelper(instantiateType(parameter, signature.mapper), context)); + } else { + typeParameters = signature.typeParameters && signature.typeParameters.map((parameter) => typeParameterToDeclaration(parameter, context)); + } + const flags = context.flags; + context.flags &= ~256 /* SuppressAnyReturnType */; + const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */)); + const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); + if (thisParameter) { + parameters.unshift(thisParameter); + } + context.flags = flags; + const returnTypeNode = serializeReturnTypeForSignature(context, signature); + let modifiers = options == null ? void 0 : options.modifiers; + if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { + const flags2 = modifiersToFlags(modifiers); + modifiers = factory.createModifiersFromModifierFlags(flags2 | 64 /* Abstract */); + } + const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( + modifiers, + /*asteriskToken*/ + void 0, + (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), + /*questionToken*/ + void 0, + typeParameters, + parameters, + returnTypeNode, + /*body*/ + void 0 + ) : kind === 176 /* Constructor */ ? factory.createConstructorDeclaration( + modifiers, + parameters, + /*body*/ + void 0 + ) : kind === 177 /* GetAccessor */ ? factory.createGetAccessorDeclaration( + modifiers, + (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), + parameters, + returnTypeNode, + /*body*/ + void 0 + ) : kind === 178 /* SetAccessor */ ? factory.createSetAccessorDeclaration( + modifiers, + (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), + parameters, + /*body*/ + void 0 + ) : kind === 181 /* IndexSignature */ ? factory.createIndexSignature(modifiers, parameters, returnTypeNode) : kind === 317 /* JSDocFunctionType */ ? factory.createJSDocFunctionType(parameters, returnTypeNode) : kind === 184 /* FunctionType */ ? factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 185 /* ConstructorType */ ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode ?? factory.createTypeReferenceNode(factory.createIdentifier(""))) : kind === 262 /* FunctionDeclaration */ ? factory.createFunctionDeclaration( + modifiers, + /*asteriskToken*/ + void 0, + (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""), + typeParameters, + parameters, + returnTypeNode, + /*body*/ + void 0 + ) : kind === 218 /* FunctionExpression */ ? factory.createFunctionExpression( + modifiers, + /*asteriskToken*/ + void 0, + (options == null ? void 0 : options.name) ? cast(options.name, isIdentifier) : factory.createIdentifier(""), + typeParameters, + parameters, + returnTypeNode, + factory.createBlock([]) + ) : kind === 219 /* ArrowFunction */ ? factory.createArrowFunction( + modifiers, + typeParameters, + parameters, + returnTypeNode, + /*equalsGreaterThanToken*/ + void 0, + factory.createBlock([]) + ) : Debug.assertNever(kind); + if (typeArguments) { + node.typeArguments = factory.createNodeArray(typeArguments); + } + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 323 /* JSDocSignature */ && signature.declaration.parent.kind === 339 /* JSDocOverloadTag */) { + const comment = getTextOfNode( + signature.declaration.parent.parent, + /*includeTrivia*/ + true + ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n"); + addSyntheticLeadingComment( + node, + 3 /* MultiLineCommentTrivia */, + comment, + /*hasTrailingNewLine*/ + true + ); + } + cleanup == null ? void 0 : cleanup(); + return node; + } + function isNewScopeNode(node) { + return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node); + } + function getTypeParametersInScope(node) { + return isFunctionLike(node) || isJSDocSignature(node) ? getSignatureFromDeclaration(node).typeParameters : isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))]; + } + function getParametersInScope(node) { + return isFunctionLike(node) || isJSDocSignature(node) ? getSignatureFromDeclaration(node).parameters : void 0; + } + function enterNewScope(context, declaration, expandedParams, typeParameters, originalParameters, mapper) { + const cleanupContext = cloneNodeBuilderContext(context); + let cleanupParams; + let cleanupTypeParams; + const oldEnclosingDecl = context.enclosingDeclaration; + const oldMapper = context.mapper; + if (mapper) { + context.mapper = mapper; + } + if (context.enclosingDeclaration && declaration) { + let pushFakeScope2 = function(kind, addAll) { + Debug.assert(context.enclosingDeclaration); + let existingFakeScope; + if (getNodeLinks(context.enclosingDeclaration).fakeScopeForSignatureDeclaration === kind) { + existingFakeScope = context.enclosingDeclaration; + } else if (context.enclosingDeclaration.parent && getNodeLinks(context.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration === kind) { + existingFakeScope = context.enclosingDeclaration.parent; + } + Debug.assertOptionalNode(existingFakeScope, isBlock); + const locals = (existingFakeScope == null ? void 0 : existingFakeScope.locals) ?? createSymbolTable(); + let newLocals; + let oldLocals; + addAll((name, symbol) => { + if (existingFakeScope) { + const oldSymbol = locals.get(name); + if (!oldSymbol) { + newLocals = append(newLocals, name); + } else { + oldLocals = append(oldLocals, { name, oldSymbol }); + } + } + locals.set(name, symbol); + }); + if (!existingFakeScope) { + const fakeScope = factory.createBlock(emptyArray); + getNodeLinks(fakeScope).fakeScopeForSignatureDeclaration = kind; + fakeScope.locals = locals; + setParent(fakeScope, context.enclosingDeclaration); + context.enclosingDeclaration = fakeScope; + } else { + return function undo() { + forEach(newLocals, (s) => locals.delete(s)); + forEach(oldLocals, (s) => locals.set(s.name, s.oldSymbol)); + }; + } + }; + var pushFakeScope = pushFakeScope2; + cleanupParams = !some(expandedParams) ? void 0 : pushFakeScope2( + "params", + (add) => { + if (!expandedParams) return; + for (let pIndex = 0; pIndex < expandedParams.length; pIndex++) { + const param = expandedParams[pIndex]; + const originalParam = originalParameters == null ? void 0 : originalParameters[pIndex]; + if (originalParameters && originalParam !== param) { + add(param.escapedName, unknownSymbol); + if (originalParam) { + add(originalParam.escapedName, unknownSymbol); + } + } else if (!forEach(param.declarations, (d) => { + if (isParameter(d) && isBindingPattern(d.name)) { + bindPattern(d.name); + return true; + } + return void 0; + function bindPattern(p) { + forEach(p.elements, (e) => { + switch (e.kind) { + case 232 /* OmittedExpression */: + return; + case 208 /* BindingElement */: + return bindElement(e); + default: + return Debug.assertNever(e); + } + }); + } + function bindElement(e) { + if (isBindingPattern(e.name)) { + return bindPattern(e.name); + } + const symbol = getSymbolOfDeclaration(e); + add(symbol.escapedName, symbol); + } + })) { + add(param.escapedName, param); + } + } + } + ); + if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && some(typeParameters)) { + cleanupTypeParams = pushFakeScope2( + "typeParams", + (add) => { + for (const typeParam of typeParameters ?? emptyArray) { + const typeParamName = typeParameterToName(typeParam, context).escapedText; + add(typeParamName, typeParam.symbol); + } + } + ); + } + } + return () => { + cleanupParams == null ? void 0 : cleanupParams(); + cleanupTypeParams == null ? void 0 : cleanupTypeParams(); + cleanupContext(); + context.enclosingDeclaration = oldEnclosingDecl; + context.mapper = oldMapper; + }; + } + function tryGetThisParameterDeclaration(signature, context) { + if (signature.thisParameter) { + return symbolToParameterDeclaration(signature.thisParameter, context); + } + if (signature.declaration && isInJSFile(signature.declaration)) { + const thisTag = getJSDocThisTag(signature.declaration); + if (thisTag && thisTag.typeExpression) { + return factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "this", + /*questionToken*/ + void 0, + typeToTypeNodeHelper(getTypeFromTypeNode2(context, thisTag.typeExpression), context) + ); + } + } + } + function typeParameterToDeclarationWithConstraint(type, context, constraintNode) { + const savedContextFlags = context.flags; + context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; + const modifiers = factory.createModifiersFromModifierFlags(getTypeParameterModifiers(type)); + const name = typeParameterToName(type, context); + const defaultParameter = getDefaultFromTypeParameter(type); + const defaultParameterNode = defaultParameter && typeToTypeNodeHelper(defaultParameter, context); + context.flags = savedContextFlags; + return factory.createTypeParameterDeclaration(modifiers, name, constraintNode, defaultParameterNode); + } + function typeToTypeNodeHelperWithPossibleReusableTypeNode(type, typeNode, context) { + return typeNode && tryReuseExistingNonParameterTypeNode(context, typeNode, type) || typeToTypeNodeHelper(type, context); + } + function typeParameterToDeclaration(type, context, constraint = getConstraintOfTypeParameter(type)) { + const constraintNode = constraint && typeToTypeNodeHelperWithPossibleReusableTypeNode(constraint, getConstraintDeclaration(type), context); + return typeParameterToDeclarationWithConstraint(type, context, constraintNode); + } + function typePredicateToTypePredicateNodeHelper(typePredicate, context) { + const assertsModifier = typePredicate.kind === 2 /* AssertsThis */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? factory.createToken(131 /* AssertsKeyword */) : void 0; + const parameterName = typePredicate.kind === 1 /* Identifier */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? setEmitFlags(factory.createIdentifier(typePredicate.parameterName), 16777216 /* NoAsciiEscaping */) : factory.createThisTypeNode(); + const typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context); + return factory.createTypePredicateNode(assertsModifier, parameterName, typeNode); + } + function getEffectiveParameterDeclaration(parameterSymbol) { + const parameterDeclaration = getDeclarationOfKind(parameterSymbol, 169 /* Parameter */); + if (parameterDeclaration) { + return parameterDeclaration; + } + if (!isTransientSymbol(parameterSymbol)) { + return getDeclarationOfKind(parameterSymbol, 341 /* JSDocParameterTag */); + } + } + function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) { + const parameterDeclaration = getEffectiveParameterDeclaration(parameterSymbol); + const parameterType = getTypeOfSymbol(parameterSymbol); + const parameterTypeNode = serializeTypeForDeclaration(context, parameterDeclaration, parameterType, parameterSymbol); + const modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && canHaveModifiers(parameterDeclaration) ? map(getModifiers(parameterDeclaration), factory.cloneNode) : void 0; + const isRest = parameterDeclaration && isRestParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 32768 /* RestParameter */; + const dotDotDotToken = isRest ? factory.createToken(26 /* DotDotDotToken */) : void 0; + const name = parameterToParameterDeclarationName(parameterSymbol, parameterDeclaration, context); + const isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */; + const questionToken = isOptional ? factory.createToken(58 /* QuestionToken */) : void 0; + const parameterNode = factory.createParameterDeclaration( + modifiers, + dotDotDotToken, + name, + questionToken, + parameterTypeNode, + /*initializer*/ + void 0 + ); + context.approximateLength += symbolName(parameterSymbol).length + 3; + return parameterNode; + } + function parameterToParameterDeclarationName(parameterSymbol, parameterDeclaration, context) { + return parameterDeclaration ? parameterDeclaration.name ? parameterDeclaration.name.kind === 80 /* Identifier */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) : parameterDeclaration.name.kind === 166 /* QualifiedName */ ? setEmitFlags(factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) : cloneBindingName(parameterDeclaration.name) : symbolName(parameterSymbol) : symbolName(parameterSymbol); + function cloneBindingName(node) { + return elideInitializerAndSetEmitFlags(node); + function elideInitializerAndSetEmitFlags(node2) { + if (context.tracker.canTrackSymbol && isComputedPropertyName(node2) && isLateBindableName(node2)) { + trackComputedName(node2.expression, context.enclosingDeclaration, context); + } + let visited = visitEachChild( + node2, + elideInitializerAndSetEmitFlags, + /*context*/ + void 0, + /*nodesVisitor*/ + void 0, + elideInitializerAndSetEmitFlags + ); + if (isBindingElement(visited)) { + visited = factory.updateBindingElement( + visited, + visited.dotDotDotToken, + visited.propertyName, + visited.name, + /*initializer*/ + void 0 + ); + } + if (!nodeIsSynthesized(visited)) { + visited = factory.cloneNode(visited); + } + return setEmitFlags(visited, 1 /* SingleLine */ | 16777216 /* NoAsciiEscaping */); + } + } + } + function trackComputedName(accessExpression, enclosingDeclaration, context) { + if (!context.tracker.canTrackSymbol) return; + const firstIdentifier = getFirstIdentifier(accessExpression); + const name = resolveName( + firstIdentifier, + firstIdentifier.escapedText, + 111551 /* Value */ | 1048576 /* ExportValue */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (name) { + context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */); + } + } + function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) { + context.tracker.trackSymbol(symbol, context.enclosingDeclaration, meaning); + return lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol); + } + function lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol) { + let chain; + const isTypeParameter = symbol.flags & 262144 /* TypeParameter */; + if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64 /* UseFullyQualifiedType */) && !(context.flags & 134217728 /* DoNotIncludeSymbolChain */)) { + chain = Debug.checkDefined(getSymbolChain( + symbol, + meaning, + /*endOfChain*/ + true + )); + Debug.assert(chain && chain.length > 0); + } else { + chain = [symbol]; + } + return chain; + function getSymbolChain(symbol2, meaning2, endOfChain) { + let accessibleSymbolChain = getAccessibleSymbolChain(symbol2, context.enclosingDeclaration, meaning2, !!(context.flags & 128 /* UseOnlyExternalAliasing */)); + let parentSpecifiers; + if (!accessibleSymbolChain || needsQualification(accessibleSymbolChain[0], context.enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning2 : getQualifiedLeftMeaning(meaning2))) { + const parents = getContainersOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol2, context.enclosingDeclaration, meaning2); + if (length(parents)) { + parentSpecifiers = parents.map( + (symbol3) => some(symbol3.declarations, hasNonGlobalAugmentationExternalModuleSymbol) ? getSpecifierForModuleSymbol(symbol3, context) : void 0 + ); + const indices = parents.map((_, i) => i); + indices.sort(sortByBestName); + const sortedParents = indices.map((i) => parents[i]); + for (const parent of sortedParents) { + const parentChain = getSymbolChain( + parent, + getQualifiedLeftMeaning(meaning2), + /*endOfChain*/ + false + ); + if (parentChain) { + if (parent.exports && parent.exports.get("export=" /* ExportEquals */) && getSymbolIfSameReference(parent.exports.get("export=" /* ExportEquals */), symbol2)) { + accessibleSymbolChain = parentChain; + break; + } + accessibleSymbolChain = parentChain.concat(accessibleSymbolChain || [getAliasForSymbolInContainer(parent, symbol2) || symbol2]); + break; + } + } + } + } + if (accessibleSymbolChain) { + return accessibleSymbolChain; + } + if ( + // If this is the last part of outputting the symbol, always output. The cases apply only to parent symbols. + endOfChain || // If a parent symbol is an anonymous type, don't write it. + !(symbol2.flags & (2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */)) + ) { + if (!endOfChain && !yieldModuleSymbol && !!forEach(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { + return; + } + return [symbol2]; + } + function sortByBestName(a, b) { + const specifierA = parentSpecifiers[a]; + const specifierB = parentSpecifiers[b]; + if (specifierA && specifierB) { + const isBRelative = pathIsRelative(specifierB); + if (pathIsRelative(specifierA) === isBRelative) { + return countPathComponents(specifierA) - countPathComponents(specifierB); + } + if (isBRelative) { + return -1; + } + return 1; + } + return 0; + } + } + } + function typeParametersToTypeParameterDeclarations(symbol, context) { + let typeParameterNodes; + const targetSymbol = getTargetSymbol(symbol); + if (targetSymbol.flags & (32 /* Class */ | 64 /* Interface */ | 524288 /* TypeAlias */)) { + typeParameterNodes = factory.createNodeArray(map(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol), (tp) => typeParameterToDeclaration(tp, context))); + } + return typeParameterNodes; + } + function lookupTypeParameterNodes(chain, index, context) { + var _a; + Debug.assert(chain && 0 <= index && index < chain.length); + const symbol = chain[index]; + const symbolId = getSymbolId(symbol); + if ((_a = context.typeParameterSymbolList) == null ? void 0 : _a.has(symbolId)) { + return void 0; + } + if (context.mustCreateTypeParameterSymbolList) { + context.mustCreateTypeParameterSymbolList = false; + context.typeParameterSymbolList = new Set(context.typeParameterSymbolList); + } + context.typeParameterSymbolList.add(symbolId); + let typeParameterNodes; + if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < chain.length - 1) { + const parentSymbol = symbol; + const nextSymbol = chain[index + 1]; + if (getCheckFlags(nextSymbol) & 1 /* Instantiated */) { + const params = getTypeParametersOfClassOrInterface( + parentSymbol.flags & 2097152 /* Alias */ ? resolveAlias(parentSymbol) : parentSymbol + ); + typeParameterNodes = mapToTypeNodes(map(params, (t) => getMappedType(t, nextSymbol.links.mapper)), context); + } else { + typeParameterNodes = typeParametersToTypeParameterDeclarations(symbol, context); + } + } + return typeParameterNodes; + } + function getTopmostIndexedAccessType(top) { + if (isIndexedAccessTypeNode(top.objectType)) { + return getTopmostIndexedAccessType(top.objectType); + } + return top; + } + function getSpecifierForModuleSymbol(symbol, context, overrideImportMode) { + let file = getDeclarationOfKind(symbol, 307 /* SourceFile */); + if (!file) { + const equivalentFileSymbol = firstDefined(symbol.declarations, (d) => getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol)); + if (equivalentFileSymbol) { + file = getDeclarationOfKind(equivalentFileSymbol, 307 /* SourceFile */); + } + } + if (file && file.moduleName !== void 0) { + return file.moduleName; + } + if (!file) { + if (ambientModuleSymbolRegex.test(symbol.escapedName)) { + return symbol.escapedName.substring(1, symbol.escapedName.length - 1); + } + } + if (!context.enclosingFile || !context.tracker.moduleResolverHost) { + if (ambientModuleSymbolRegex.test(symbol.escapedName)) { + return symbol.escapedName.substring(1, symbol.escapedName.length - 1); + } + return getSourceFileOfNode(getNonAugmentationDeclaration(symbol)).fileName; + } + const contextFile = context.enclosingFile; + const resolutionMode = overrideImportMode || (contextFile == null ? void 0 : contextFile.impliedNodeFormat); + const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode); + const links = getSymbolLinks(symbol); + let specifier = links.specifierCache && links.specifierCache.get(cacheKey); + if (!specifier) { + const isBundle2 = !!compilerOptions.outFile; + const { moduleResolverHost } = context.tracker; + const specifierCompilerOptions = isBundle2 ? { ...compilerOptions, baseUrl: moduleResolverHost.getCommonSourceDirectory() } : compilerOptions; + specifier = first(getModuleSpecifiers( + symbol, + checker, + specifierCompilerOptions, + contextFile, + moduleResolverHost, + { + importModuleSpecifierPreference: isBundle2 ? "non-relative" : "project-relative", + importModuleSpecifierEnding: isBundle2 ? "minimal" : resolutionMode === 99 /* ESNext */ ? "js" : void 0 + }, + { overrideImportMode } + )); + links.specifierCache ?? (links.specifierCache = /* @__PURE__ */ new Map()); + links.specifierCache.set(cacheKey, specifier); + } + return specifier; + } + function symbolToEntityNameNode(symbol) { + const identifier = factory.createIdentifier(unescapeLeadingUnderscores(symbol.escapedName)); + return symbol.parent ? factory.createQualifiedName(symbolToEntityNameNode(symbol.parent), identifier) : identifier; + } + function symbolToTypeNode(symbol, context, meaning, overrideTypeArguments) { + const chain = lookupSymbolChain(symbol, context, meaning, !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */)); + const isTypeOf = meaning === 111551 /* Value */; + if (some(chain[0].declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { + const nonRootParts = chain.length > 1 ? createAccessFromSymbolChain(chain, chain.length - 1, 1) : void 0; + const typeParameterNodes = overrideTypeArguments || lookupTypeParameterNodes(chain, 0, context); + const contextFile = getSourceFileOfNode(getOriginalNode(context.enclosingDeclaration)); + const targetFile = getSourceFileOfModule(chain[0]); + let specifier; + let attributes; + if (getEmitModuleResolutionKind(compilerOptions) === 3 /* Node16 */ || getEmitModuleResolutionKind(compilerOptions) === 99 /* NodeNext */) { + if ((targetFile == null ? void 0 : targetFile.impliedNodeFormat) === 99 /* ESNext */ && targetFile.impliedNodeFormat !== (contextFile == null ? void 0 : contextFile.impliedNodeFormat)) { + specifier = getSpecifierForModuleSymbol(chain[0], context, 99 /* ESNext */); + attributes = factory.createImportAttributes( + factory.createNodeArray([ + factory.createImportAttribute( + factory.createStringLiteral("resolution-mode"), + factory.createStringLiteral("import") + ) + ]) + ); + } + } + if (!specifier) { + specifier = getSpecifierForModuleSymbol(chain[0], context); + } + if (!(context.flags & 67108864 /* AllowNodeModulesRelativePaths */) && getEmitModuleResolutionKind(compilerOptions) !== 1 /* Classic */ && specifier.includes("/node_modules/")) { + const oldSpecifier = specifier; + if (getEmitModuleResolutionKind(compilerOptions) === 3 /* Node16 */ || getEmitModuleResolutionKind(compilerOptions) === 99 /* NodeNext */) { + const swappedMode = (contextFile == null ? void 0 : contextFile.impliedNodeFormat) === 99 /* ESNext */ ? 1 /* CommonJS */ : 99 /* ESNext */; + specifier = getSpecifierForModuleSymbol(chain[0], context, swappedMode); + if (specifier.includes("/node_modules/")) { + specifier = oldSpecifier; + } else { + attributes = factory.createImportAttributes( + factory.createNodeArray([ + factory.createImportAttribute( + factory.createStringLiteral("resolution-mode"), + factory.createStringLiteral(swappedMode === 99 /* ESNext */ ? "import" : "require") + ) + ]) + ); + } + } + if (!attributes) { + context.encounteredError = true; + if (context.tracker.reportLikelyUnsafeImportRequiredError) { + context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier); + } + } + } + const lit = factory.createLiteralTypeNode(factory.createStringLiteral(specifier)); + context.approximateLength += specifier.length + 10; + if (!nonRootParts || isEntityName(nonRootParts)) { + if (nonRootParts) { + const lastId = isIdentifier(nonRootParts) ? nonRootParts : nonRootParts.right; + setIdentifierTypeArguments( + lastId, + /*typeArguments*/ + void 0 + ); + } + return factory.createImportTypeNode(lit, attributes, nonRootParts, typeParameterNodes, isTypeOf); + } else { + const splitNode = getTopmostIndexedAccessType(nonRootParts); + const qualifier = splitNode.objectType.typeName; + return factory.createIndexedAccessTypeNode(factory.createImportTypeNode(lit, attributes, qualifier, typeParameterNodes, isTypeOf), splitNode.indexType); + } + } + const entityName = createAccessFromSymbolChain(chain, chain.length - 1, 0); + if (isIndexedAccessTypeNode(entityName)) { + return entityName; + } + if (isTypeOf) { + return factory.createTypeQueryNode(entityName); + } else { + const lastId = isIdentifier(entityName) ? entityName : entityName.right; + const lastTypeArgs = getIdentifierTypeArguments(lastId); + setIdentifierTypeArguments( + lastId, + /*typeArguments*/ + void 0 + ); + return factory.createTypeReferenceNode(entityName, lastTypeArgs); + } + function createAccessFromSymbolChain(chain2, index, stopper) { + const typeParameterNodes = index === chain2.length - 1 ? overrideTypeArguments : lookupTypeParameterNodes(chain2, index, context); + const symbol2 = chain2[index]; + const parent = chain2[index - 1]; + let symbolName2; + if (index === 0) { + context.flags |= 16777216 /* InInitialEntityName */; + symbolName2 = getNameOfSymbolAsWritten(symbol2, context); + context.approximateLength += (symbolName2 ? symbolName2.length : 0) + 1; + context.flags ^= 16777216 /* InInitialEntityName */; + } else { + if (parent && getExportsOfSymbol(parent)) { + const exports2 = getExportsOfSymbol(parent); + forEachEntry(exports2, (ex, name) => { + if (getSymbolIfSameReference(ex, symbol2) && !isLateBoundName(name) && name !== "export=" /* ExportEquals */) { + symbolName2 = unescapeLeadingUnderscores(name); + return true; + } + }); + } + } + if (symbolName2 === void 0) { + const name = firstDefined(symbol2.declarations, getNameOfDeclaration); + if (name && isComputedPropertyName(name) && isEntityName(name.expression)) { + const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); + if (isEntityName(LHS)) { + return factory.createIndexedAccessTypeNode(factory.createParenthesizedType(factory.createTypeQueryNode(LHS)), factory.createTypeQueryNode(name.expression)); + } + return LHS; + } + symbolName2 = getNameOfSymbolAsWritten(symbol2, context); + } + context.approximateLength += symbolName2.length + 1; + if (!(context.flags & 16 /* ForbidIndexedAccessSymbolReferences */) && parent && getMembersOfSymbol(parent) && getMembersOfSymbol(parent).get(symbol2.escapedName) && getSymbolIfSameReference(getMembersOfSymbol(parent).get(symbol2.escapedName), symbol2)) { + const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); + if (isIndexedAccessTypeNode(LHS)) { + return factory.createIndexedAccessTypeNode(LHS, factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2))); + } else { + return factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(LHS, typeParameterNodes), factory.createLiteralTypeNode(factory.createStringLiteral(symbolName2))); + } + } + const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); + if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); + identifier.symbol = symbol2; + if (index > stopper) { + const LHS = createAccessFromSymbolChain(chain2, index - 1, stopper); + if (!isEntityName(LHS)) { + return Debug.fail("Impossible construct - an export of an indexed access cannot be reachable"); + } + return factory.createQualifiedName(LHS, identifier); + } + return identifier; + } + } + function typeParameterShadowsOtherTypeParameterInScope(escapedName, context, type) { + const result = resolveName( + context.enclosingDeclaration, + escapedName, + 788968 /* Type */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + if (result && result.flags & 262144 /* TypeParameter */) { + return result !== type.symbol; + } + return false; + } + function typeParameterToName(type, context) { + var _a, _b, _c, _d; + if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && context.typeParameterNames) { + const cached = context.typeParameterNames.get(getTypeId(type)); + if (cached) { + return cached; + } + } + let result = symbolToName( + type.symbol, + context, + 788968 /* Type */, + /*expectsIdentifier*/ + true + ); + if (!(result.kind & 80 /* Identifier */)) { + return factory.createIdentifier("(Missing type parameter)"); + } + const decl = (_b = (_a = type.symbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b[0]; + if (decl && isTypeParameterDeclaration(decl)) { + result = setTextRange2(context, result, decl.name); + } + if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */) { + const rawtext = result.escapedText; + let i = ((_c = context.typeParameterNamesByTextNextNameCount) == null ? void 0 : _c.get(rawtext)) || 0; + let text = rawtext; + while (((_d = context.typeParameterNamesByText) == null ? void 0 : _d.has(text)) || typeParameterShadowsOtherTypeParameterInScope(text, context, type)) { + i++; + text = `${rawtext}_${i}`; + } + if (text !== rawtext) { + const typeArguments = getIdentifierTypeArguments(result); + result = factory.createIdentifier(text); + setIdentifierTypeArguments(result, typeArguments); + } + if (context.mustCreateTypeParametersNamesLookups) { + context.mustCreateTypeParametersNamesLookups = false; + context.typeParameterNames = new Map(context.typeParameterNames); + context.typeParameterNamesByTextNextNameCount = new Map(context.typeParameterNamesByTextNextNameCount); + context.typeParameterNamesByText = new Set(context.typeParameterNamesByText); + } + context.typeParameterNamesByTextNextNameCount.set(rawtext, i); + context.typeParameterNames.set(getTypeId(type), result); + context.typeParameterNamesByText.add(text); + } + return result; + } + function symbolToName(symbol, context, meaning, expectsIdentifier) { + const chain = lookupSymbolChain(symbol, context, meaning); + if (expectsIdentifier && chain.length !== 1 && !context.encounteredError && !(context.flags & 65536 /* AllowQualifiedNameInPlaceOfIdentifier */)) { + context.encounteredError = true; + } + return createEntityNameFromSymbolChain(chain, chain.length - 1); + function createEntityNameFromSymbolChain(chain2, index) { + const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context); + const symbol2 = chain2[index]; + if (index === 0) { + context.flags |= 16777216 /* InInitialEntityName */; + } + const symbolName2 = getNameOfSymbolAsWritten(symbol2, context); + if (index === 0) { + context.flags ^= 16777216 /* InInitialEntityName */; + } + const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); + if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); + identifier.symbol = symbol2; + return index > 0 ? factory.createQualifiedName(createEntityNameFromSymbolChain(chain2, index - 1), identifier) : identifier; + } + } + function symbolToExpression(symbol, context, meaning) { + const chain = lookupSymbolChain(symbol, context, meaning); + return createExpressionFromSymbolChain(chain, chain.length - 1); + function createExpressionFromSymbolChain(chain2, index) { + const typeParameterNodes = lookupTypeParameterNodes(chain2, index, context); + const symbol2 = chain2[index]; + if (index === 0) { + context.flags |= 16777216 /* InInitialEntityName */; + } + let symbolName2 = getNameOfSymbolAsWritten(symbol2, context); + if (index === 0) { + context.flags ^= 16777216 /* InInitialEntityName */; + } + let firstChar = symbolName2.charCodeAt(0); + if (isSingleOrDoubleQuote(firstChar) && some(symbol2.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) { + return factory.createStringLiteral(getSpecifierForModuleSymbol(symbol2, context)); + } + if (index === 0 || canUsePropertyAccess(symbolName2, languageVersion)) { + const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); + if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); + identifier.symbol = symbol2; + return index > 0 ? factory.createPropertyAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), identifier) : identifier; + } else { + if (firstChar === 91 /* openBracket */) { + symbolName2 = symbolName2.substring(1, symbolName2.length - 1); + firstChar = symbolName2.charCodeAt(0); + } + let expression; + if (isSingleOrDoubleQuote(firstChar) && !(symbol2.flags & 8 /* EnumMember */)) { + expression = factory.createStringLiteral(stripQuotes(symbolName2).replace(/\\./g, (s) => s.substring(1)), firstChar === 39 /* singleQuote */); + } else if ("" + +symbolName2 === symbolName2) { + expression = factory.createNumericLiteral(+symbolName2); + } + if (!expression) { + const identifier = setEmitFlags(factory.createIdentifier(symbolName2), 16777216 /* NoAsciiEscaping */); + if (typeParameterNodes) setIdentifierTypeArguments(identifier, factory.createNodeArray(typeParameterNodes)); + identifier.symbol = symbol2; + expression = identifier; + } + return factory.createElementAccessExpression(createExpressionFromSymbolChain(chain2, index - 1), expression); + } + } + } + function isStringNamed(d) { + const name = getNameOfDeclaration(d); + if (!name) { + return false; + } + if (isComputedPropertyName(name)) { + const type = checkExpression(name.expression); + return !!(type.flags & 402653316 /* StringLike */); + } + if (isElementAccessExpression(name)) { + const type = checkExpression(name.argumentExpression); + return !!(type.flags & 402653316 /* StringLike */); + } + return isStringLiteral(name); + } + function isSingleQuotedStringNamed(d) { + const name = getNameOfDeclaration(d); + return !!(name && isStringLiteral(name) && (name.singleQuote || !nodeIsSynthesized(name) && startsWith(getTextOfNode( + name, + /*includeTrivia*/ + false + ), "'"))); + } + function getPropertyNameNodeForSymbol(symbol, context) { + const stringNamed = !!length(symbol.declarations) && every(symbol.declarations, isStringNamed); + const singleQuote = !!length(symbol.declarations) && every(symbol.declarations, isSingleQuotedStringNamed); + const isMethod = !!(symbol.flags & 8192 /* Method */); + const fromNameType = getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed, isMethod); + if (fromNameType) { + return fromNameType; + } + const rawName = unescapeLeadingUnderscores(symbol.escapedName); + return createPropertyNameNodeForIdentifierOrLiteral(rawName, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod); + } + function getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote, stringNamed, isMethod) { + const nameType = getSymbolLinks(symbol).nameType; + if (nameType) { + if (nameType.flags & 384 /* StringOrNumberLiteral */) { + const name = "" + nameType.value; + if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && (stringNamed || !isNumericLiteralName(name))) { + return factory.createStringLiteral(name, !!singleQuote); + } + if (isNumericLiteralName(name) && startsWith(name, "-")) { + return factory.createComputedPropertyName(factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-name))); + } + return createPropertyNameNodeForIdentifierOrLiteral(name, getEmitScriptTarget(compilerOptions), singleQuote, stringNamed, isMethod); + } + if (nameType.flags & 8192 /* UniqueESSymbol */) { + return factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, 111551 /* Value */)); + } + } + } + function cloneNodeBuilderContext(context) { + const oldMustCreateTypeParameterSymbolList = context.mustCreateTypeParameterSymbolList; + const oldMustCreateTypeParametersNamesLookups = context.mustCreateTypeParametersNamesLookups; + context.mustCreateTypeParameterSymbolList = true; + context.mustCreateTypeParametersNamesLookups = true; + const oldTypeParameterNames = context.typeParameterNames; + const oldTypeParameterNamesByText = context.typeParameterNamesByText; + const oldTypeParameterNamesByTextNextNameCount = context.typeParameterNamesByTextNextNameCount; + const oldTypeParameterSymbolList = context.typeParameterSymbolList; + return () => { + context.typeParameterNames = oldTypeParameterNames; + context.typeParameterNamesByText = oldTypeParameterNamesByText; + context.typeParameterNamesByTextNextNameCount = oldTypeParameterNamesByTextNextNameCount; + context.typeParameterSymbolList = oldTypeParameterSymbolList; + context.mustCreateTypeParameterSymbolList = oldMustCreateTypeParameterSymbolList; + context.mustCreateTypeParametersNamesLookups = oldMustCreateTypeParametersNamesLookups; + }; + } + function getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration) { + return symbol.declarations && find(symbol.declarations, (s) => !!getNonlocalEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!findAncestor(s, (n) => n === enclosingDeclaration))); + } + function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) { + if (!(getObjectFlags(type) & 4 /* Reference */)) return true; + if (!isTypeReferenceNode(existing)) return true; + void getTypeFromTypeReference(existing); + const symbol = getNodeLinks(existing).resolvedSymbol; + const existingTarget = symbol && getDeclaredTypeOfSymbol(symbol); + if (!existingTarget || existingTarget !== type.target) return true; + return length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters); + } + function getEnclosingDeclarationIgnoringFakeScope(enclosingDeclaration) { + while (getNodeLinks(enclosingDeclaration).fakeScopeForSignatureDeclaration) { + enclosingDeclaration = enclosingDeclaration.parent; + } + return enclosingDeclaration; + } + function serializeTypeForDeclaration(context, declaration, type, symbol) { + var _a, _b; + const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration); + const enclosingDeclaration = context.enclosingDeclaration; + const oldFlags = context.flags; + if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeTypeOfDeclaration(declaration, context); + } + context.flags |= -2147483648 /* NoSyntacticPrinter */; + if (enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */)) { + const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol); + if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) { + const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation); + const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 /* Property */ && symbol.flags & 16777216 /* Optional */ && isOptionalDeclaration(declWithExistingAnnotation) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type)); + const result2 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined); + if (result2) { + context.flags = oldFlags; + return result2; + } + } + } + if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) { + context.flags |= 1048576 /* AllowUniqueESSymbolType */; + } + const decl = declaration ?? symbol.valueDeclaration ?? ((_b = symbol.declarations) == null ? void 0 : _b[0]); + const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0; + const result = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter); + context.flags = oldFlags; + return result; + } + function typeNodeIsEquivalentToType(annotatedDeclaration, type, typeFromTypeNode) { + if (typeFromTypeNode === type) { + return true; + } + if (annotatedDeclaration && (isParameter(annotatedDeclaration) || isPropertySignature(annotatedDeclaration) || isPropertyDeclaration(annotatedDeclaration)) && annotatedDeclaration.questionToken) { + return getTypeWithFacts(type, 524288 /* NEUndefined */) === typeFromTypeNode; + } + return false; + } + function serializeReturnTypeForSignature(context, signature) { + const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; + const flags = context.flags; + if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; + let returnTypeNode; + const returnType = getReturnTypeOfSignature(signature); + if (returnType && !(suppressAny && isTypeAny(returnType))) { + if (signature.declaration && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeReturnTypeForSignature(signature.declaration, context); + } + context.flags |= -2147483648 /* NoSyntacticPrinter */; + returnTypeNode = serializeReturnTypeForSignatureWorker(context, signature); + } else if (!suppressAny) { + returnTypeNode = factory.createKeywordTypeNode(133 /* AnyKeyword */); + } + context.flags = flags; + return returnTypeNode; + } + function serializeReturnTypeForSignatureWorker(context, signature) { + const typePredicate = getTypePredicateOfSignature(signature); + const type = getReturnTypeOfSignature(signature); + if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */) && signature.declaration && !nodeIsSynthesized(signature.declaration)) { + const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration); + if (annotation) { + const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration); + if (result) { + return result; + } + } + } + if (typePredicate) { + return typePredicateToTypePredicateNodeHelper(typePredicate, context); + } + const expr = signature.declaration && getPossibleTypeNodeReuseExpression(signature.declaration); + return expressionOrTypeToTypeNode(context, expr, type); + } + function trackExistingEntityName(node, context) { + let introducesError = false; + const leftmost = getFirstIdentifier(node); + if (isInJSFile(node) && (isExportsIdentifier(leftmost) || isModuleExportsAccessExpression(leftmost.parent) || isQualifiedName(leftmost.parent) && isModuleIdentifier(leftmost.parent.left) && isExportsIdentifier(leftmost.parent.right))) { + introducesError = true; + return { introducesError, node }; + } + const meaning = getMeaningOfEntityNameReference(node); + let sym; + if (isThisIdentifier(leftmost)) { + sym = getSymbolOfDeclaration(getThisContainer( + leftmost, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + )); + if (isSymbolAccessible( + sym, + leftmost, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility !== 0 /* Accessible */) { + introducesError = true; + context.tracker.reportInaccessibleThisError(); + } + return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; + } + sym = resolveEntityName( + leftmost, + meaning, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true + ); + if (context.enclosingDeclaration && !(sym && sym.flags & 262144 /* TypeParameter */)) { + sym = getExportSymbolOfValueSymbolIfExported(sym); + const symAtLocation = resolveEntityName( + leftmost, + meaning, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + context.enclosingDeclaration + ); + if ( + // Check for unusable parameters symbols + symAtLocation === unknownSymbol || // If the symbol is not found, but was not found in the original scope either we probably have an error, don't reuse the node + symAtLocation === void 0 && sym !== void 0 || // If the symbol is found both in declaration scope and in current scope then it shoudl point to the same reference + symAtLocation && sym && !getSymbolIfSameReference(getExportSymbolOfValueSymbolIfExported(symAtLocation), sym) + ) { + if (symAtLocation !== unknownSymbol) { + context.tracker.reportInferenceFallback(node); + } + introducesError = true; + return { introducesError, node, sym }; + } + } + if (sym) { + if (sym.flags & 1 /* FunctionScopedVariable */ && sym.valueDeclaration) { + if (isPartOfParameterDeclaration(sym.valueDeclaration) || isJSDocParameterTag(sym.valueDeclaration)) { + return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; + } + } + if (!(sym.flags & 262144 /* TypeParameter */) && // Type parameters are visible in the current context if they are are resolvable + !isDeclarationName(node) && isSymbolAccessible( + sym, + context.enclosingDeclaration, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility !== 0 /* Accessible */) { + context.tracker.reportInferenceFallback(node); + introducesError = true; + } else { + context.tracker.trackSymbol(sym, context.enclosingDeclaration, meaning); + } + return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; + } + return { introducesError, node }; + function attachSymbolToLeftmostIdentifier(node2) { + if (node2 === leftmost) { + const type = getDeclaredTypeOfSymbol(sym); + const name = sym.flags & 262144 /* TypeParameter */ ? typeParameterToName(type, context) : factory.cloneNode(node2); + name.symbol = sym; + return setTextRange2(context, setEmitFlags(name, 16777216 /* NoAsciiEscaping */), node2); + } + const updated = visitEachChild( + node2, + (c) => attachSymbolToLeftmostIdentifier(c), + /*context*/ + void 0 + ); + if (updated !== node2) { + setTextRange2(context, updated, node2); + } + return updated; + } + } + function serializeTypeName(context, node, isTypeOf, typeArguments) { + const meaning = isTypeOf ? 111551 /* Value */ : 788968 /* Type */; + const symbol = resolveEntityName( + node, + meaning, + /*ignoreErrors*/ + true + ); + if (!symbol) return void 0; + const resolvedSymbol = symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol; + if (isSymbolAccessible( + symbol, + context.enclosingDeclaration, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility !== 0 /* Accessible */) return void 0; + return symbolToTypeNode(resolvedSymbol, context, meaning, typeArguments); + } + function canReuseTypeNode(context, existing) { + if (isInJSFile(existing)) { + if (isLiteralImportTypeNode(existing)) { + void getTypeFromImportTypeNode(existing); + const nodeSymbol = getNodeLinks(existing).resolvedSymbol; + return !nodeSymbol || !// The import type resolved using jsdoc fallback logic + (!existing.isTypeOf && !(nodeSymbol.flags & 788968 /* Type */) || // The import type had type arguments autofilled by js fallback logic + !(length(existing.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol)))); + } + } + if (isThisTypeNode(existing)) { + if (context.mapper === void 0) return true; + const type = getTypeFromTypeNode2( + context, + existing, + /*noMappedTypes*/ + true + ); + return !!type; + } + if (isTypeReferenceNode(existing)) { + if (isConstTypeReference(existing)) return false; + const type = getTypeFromTypeReference(existing); + const symbol = getNodeLinks(existing).resolvedSymbol; + if (!symbol) return false; + if (symbol.flags & 262144 /* TypeParameter */) { + const type2 = getDeclaredTypeOfSymbol(symbol); + if (context.mapper && getMappedType(type2, context.mapper) !== type2) { + return false; + } + } + if (isInJSDoc(existing)) { + return existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) && !getIntendedTypeFromJSDocTypeReference(existing) && symbol.flags & 788968 /* Type */; + } + } + if (isTypeOperatorNode(existing) && existing.operator === 158 /* UniqueKeyword */ && existing.type.kind === 155 /* SymbolKeyword */) { + const effectiveEnclosingContext = context.enclosingDeclaration && getEnclosingDeclarationIgnoringFakeScope(context.enclosingDeclaration); + return !!findAncestor(existing, (n) => n === effectiveEnclosingContext); + } + return true; + } + function serializeExistingTypeNode(context, typeNode) { + const type = getTypeFromTypeNode2(context, typeNode); + return typeToTypeNodeHelper(type, context); + } + function tryReuseExistingTypeNodeHelper(context, existing) { + if (cancellationToken && cancellationToken.throwIfCancellationRequested) { + cancellationToken.throwIfCancellationRequested(); + } + let hadError = false; + const { finalizeBoundary, startRecoveryScope } = createRecoveryBoundary(); + const transformed = visitNode(existing, visitExistingNodeTreeSymbols, isTypeNode); + if (!finalizeBoundary()) { + return void 0; + } + context.approximateLength += existing.end - existing.pos; + return transformed; + function visitExistingNodeTreeSymbols(node) { + if (hadError) return node; + const recover = startRecoveryScope(); + const onExitNewScope = isNewScopeNode(node) ? onEnterNewScope(node) : void 0; + const result = visitExistingNodeTreeSymbolsWorker(node); + onExitNewScope == null ? void 0 : onExitNewScope(); + if (hadError) { + if (isTypeNode(node) && !isTypePredicateNode(node)) { + recover(); + return serializeExistingTypeNode(context, node); + } + return node; + } + return result ? setTextRange2(context, result, node) : void 0; + } + function createRecoveryBoundary() { + let trackedSymbols; + let unreportedErrors; + const oldTracker = context.tracker; + const oldTrackedSymbols = context.trackedSymbols; + context.trackedSymbols = void 0; + const oldEncounteredError = context.encounteredError; + context.tracker = new SymbolTrackerImpl(context, { + ...oldTracker.inner, + reportCyclicStructureError() { + markError(() => oldTracker.reportCyclicStructureError()); + }, + reportInaccessibleThisError() { + markError(() => oldTracker.reportInaccessibleThisError()); + }, + reportInaccessibleUniqueSymbolError() { + markError(() => oldTracker.reportInaccessibleUniqueSymbolError()); + }, + reportLikelyUnsafeImportRequiredError(specifier) { + markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier)); + }, + reportNonSerializableProperty(name) { + markError(() => oldTracker.reportNonSerializableProperty(name)); + }, + trackSymbol(sym, decl, meaning) { + (trackedSymbols ?? (trackedSymbols = [])).push([sym, decl, meaning]); + return false; + }, + moduleResolverHost: context.tracker.moduleResolverHost + }, context.tracker.moduleResolverHost); + return { + startRecoveryScope: startRecoveryScope2, + finalizeBoundary: finalizeBoundary2 + }; + function markError(unreportedError) { + hadError = true; + (unreportedErrors ?? (unreportedErrors = [])).push(unreportedError); + } + function startRecoveryScope2() { + const trackedSymbolsTop = (trackedSymbols == null ? void 0 : trackedSymbols.length) ?? 0; + const unreportedErrorsTop = (unreportedErrors == null ? void 0 : unreportedErrors.length) ?? 0; + return () => { + hadError = false; + if (trackedSymbols) { + trackedSymbols.length = trackedSymbolsTop; + } + if (unreportedErrors) { + unreportedErrors.length = unreportedErrorsTop; + } + }; + } + function finalizeBoundary2() { + context.tracker = oldTracker; + context.trackedSymbols = oldTrackedSymbols; + context.encounteredError = oldEncounteredError; + unreportedErrors == null ? void 0 : unreportedErrors.forEach((fn) => fn()); + if (hadError) { + return false; + } + trackedSymbols == null ? void 0 : trackedSymbols.forEach( + ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( + symbol, + enclosingDeclaration, + meaning + ) + ); + return true; + } + } + function onEnterNewScope(node) { + return enterNewScope(context, node, getParametersInScope(node), getTypeParametersInScope(node)); + } + function tryVisitSimpleTypeNode(node) { + const innerNode = skipTypeParentheses(node); + switch (innerNode.kind) { + case 183 /* TypeReference */: + return tryVisitTypeReference(innerNode); + case 186 /* TypeQuery */: + return tryVisitTypeQuery(innerNode); + case 199 /* IndexedAccessType */: + return tryVisitIndexedAccess(innerNode); + case 198 /* TypeOperator */: + const typeOperatorNode = innerNode; + if (typeOperatorNode.operator === 143 /* KeyOfKeyword */) { + return tryVisitKeyOf(typeOperatorNode); + } + } + return visitNode(node, visitExistingNodeTreeSymbols, isTypeNode); + } + function tryVisitIndexedAccess(node) { + const resultObjectType = tryVisitSimpleTypeNode(node.objectType); + if (resultObjectType === void 0) { + return void 0; + } + return factory.updateIndexedAccessTypeNode(node, resultObjectType, visitNode(node.indexType, visitExistingNodeTreeSymbols, isTypeNode)); + } + function tryVisitKeyOf(node) { + Debug.assertEqual(node.operator, 143 /* KeyOfKeyword */); + const type = tryVisitSimpleTypeNode(node.type); + if (type === void 0) { + return void 0; + } + return factory.updateTypeOperatorNode(node, type); + } + function tryVisitTypeQuery(node) { + const { introducesError, node: exprName } = trackExistingEntityName(node.exprName, context); + if (!introducesError) { + return factory.updateTypeQueryNode( + node, + exprName, + visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode) + ); + } + const serializedName = serializeTypeName( + context, + node.exprName, + /*isTypeOf*/ + true + ); + if (serializedName) { + return setTextRange2(context, serializedName, node.exprName); + } + } + function tryVisitTypeReference(node) { + if (canReuseTypeNode(context, node)) { + const { introducesError, node: newName } = trackExistingEntityName(node.typeName, context); + const typeArguments = visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode); + if (!introducesError) { + const updated = factory.updateTypeReferenceNode( + node, + newName, + typeArguments + ); + return setTextRange2(context, updated, node); + } else { + const serializedName = serializeTypeName( + context, + node.typeName, + /*isTypeOf*/ + false, + typeArguments + ); + if (serializedName) { + return setTextRange2(context, serializedName, node.typeName); + } + } + } + } + function visitExistingNodeTreeSymbolsWorker(node) { + if (isJSDocTypeExpression(node)) { + return visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode); + } + if (isJSDocAllType(node) || node.kind === 319 /* JSDocNamepathType */) { + return factory.createKeywordTypeNode(133 /* AnyKeyword */); + } + if (isJSDocUnknownType(node)) { + return factory.createKeywordTypeNode(159 /* UnknownKeyword */); + } + if (isJSDocNullableType(node)) { + return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createLiteralTypeNode(factory.createNull())]); + } + if (isJSDocOptionalType(node)) { + return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + if (isJSDocNonNullableType(node)) { + return visitNode(node.type, visitExistingNodeTreeSymbols); + } + if (isJSDocVariadicType(node)) { + return factory.createArrayTypeNode(visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); + } + if (isJSDocTypeLiteral(node)) { + return factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (t) => { + const name = visitNode(isIdentifier(t.name) ? t.name : t.name.right, visitExistingNodeTreeSymbols, isIdentifier); + const typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode2(context, node), name.escapedText); + const overrideTypeNode = typeViaParent && t.typeExpression && getTypeFromTypeNode2(context, t.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : void 0; + return factory.createPropertySignature( + /*modifiers*/ + void 0, + name, + t.isBracketed || t.typeExpression && isJSDocOptionalType(t.typeExpression.type) ? factory.createToken(58 /* QuestionToken */) : void 0, + overrideTypeNode || t.typeExpression && visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + })); + } + if (isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "") { + return setOriginalNode(factory.createKeywordTypeNode(133 /* AnyKeyword */), node); + } + if ((isExpressionWithTypeArguments(node) || isTypeReferenceNode(node)) && isJSDocIndexSignature(node)) { + return factory.createTypeLiteralNode([factory.createIndexSignature( + /*modifiers*/ + void 0, + [factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "x", + /*questionToken*/ + void 0, + visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols, isTypeNode) + )], + visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols, isTypeNode) + )]); + } + if (isJSDocFunctionType(node)) { + if (isJSDocConstructSignature(node)) { + let newTypeNode; + return factory.createConstructorTypeNode( + /*modifiers*/ + void 0, + visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), + mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === "new" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration( + /*modifiers*/ + void 0, + getEffectiveDotDotDotForParameter(p), + setTextRange2(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), + factory.cloneNode(p.questionToken), + visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), + /*initializer*/ + void 0 + )), + visitNode(newTypeNode || node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + } else { + return factory.createFunctionTypeNode( + visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), + map(node.parameters, (p, i) => factory.createParameterDeclaration( + /*modifiers*/ + void 0, + getEffectiveDotDotDotForParameter(p), + setTextRange2(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), + factory.cloneNode(p.questionToken), + visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), + /*initializer*/ + void 0 + )), + visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + } + } + if (isThisTypeNode(node)) { + if (canReuseTypeNode(context, node)) { + return node; + } + hadError = true; + return node; + } + if (isTypeParameterDeclaration(node)) { + return factory.updateTypeParameterDeclaration( + node, + visitNodes2(node.modifiers, visitExistingNodeTreeSymbols, isModifier), + setTextRange2(context, typeParameterToName(getDeclaredTypeOfSymbol(getSymbolOfDeclaration(node)), context), node), + visitNode(node.constraint, visitExistingNodeTreeSymbols, isTypeNode), + visitNode(node.default, visitExistingNodeTreeSymbols, isTypeNode) + ); + } + if (isIndexedAccessTypeNode(node)) { + const result = tryVisitIndexedAccess(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + if (isTypeReferenceNode(node)) { + const result = tryVisitTypeReference(node); + if (result) { + return result; + } + hadError = true; + return node; + } + if (isLiteralImportTypeNode(node)) { + const nodeSymbol = getNodeLinks(node).resolvedSymbol; + if (isInJSDoc(node) && nodeSymbol && // The import type resolved using jsdoc fallback logic + (!node.isTypeOf && !(nodeSymbol.flags & 788968 /* Type */) || // The import type had type arguments autofilled by js fallback logic + !(length(node.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol))))) { + return setTextRange2(context, typeToTypeNodeHelper(getTypeFromTypeNode2(context, node), context), node); + } + return factory.updateImportTypeNode( + node, + factory.updateLiteralTypeNode(node.argument, rewriteModuleSpecifier(node, node.argument.literal)), + visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes), + visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName), + visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode), + node.isTypeOf + ); + } + if (isNamedDeclaration(node) && node.name.kind === 167 /* ComputedPropertyName */ && !isLateBindableName(node.name)) { + if (!hasDynamicName(node)) { + return visitEachChild2(node, visitExistingNodeTreeSymbols); + } + if (!(context.flags & 1 /* AllowUnresolvedNames */ && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1 /* Any */)) { + return void 0; + } + } + if (isFunctionLike(node) && !node.type || isPropertyDeclaration(node) && !node.type && !node.initializer || isPropertySignature(node) && !node.type && !node.initializer || isParameter(node) && !node.type && !node.initializer) { + let visited = visitEachChild2(node, visitExistingNodeTreeSymbols); + if (visited === node) { + visited = setTextRange2(context, factory.cloneNode(node), node); + } + visited.type = factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (isParameter(node)) { + visited.modifiers = void 0; + } + return visited; + } + if (isTypeQueryNode(node)) { + const result = tryVisitTypeQuery(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + if (isComputedPropertyName(node) && isEntityNameExpression(node.expression)) { + const { node: result, introducesError } = trackExistingEntityName(node.expression, context); + if (!introducesError) { + return factory.updateComputedPropertyName(node, result); + } else { + const type = getWidenedType(getRegularTypeOfExpression(node.expression)); + const computedPropertyNameType = typeToTypeNodeHelper(type, context); + let literal; + if (isLiteralTypeNode(computedPropertyNameType)) { + literal = computedPropertyNameType.literal; + } else { + const evaluated = evaluateEntityNameExpression(node.expression); + const literalNode = typeof evaluated.value === "string" ? factory.createStringLiteral( + evaluated.value, + /*isSingleQuote*/ + void 0 + ) : typeof evaluated.value === "number" ? factory.createNumericLiteral( + evaluated.value, + /*numericLiteralFlags*/ + 0 + ) : void 0; + if (!literalNode) { + if (isImportTypeNode(computedPropertyNameType)) { + trackComputedName(node.expression, context.enclosingDeclaration, context); + } + return node; + } + literal = literalNode; + } + if (literal.kind === 11 /* StringLiteral */ && isIdentifierText(literal.text, getEmitScriptTarget(compilerOptions))) { + return factory.createIdentifier(literal.text); + } + if (literal.kind === 9 /* NumericLiteral */ && !literal.text.startsWith("-")) { + return literal; + } + return factory.updateComputedPropertyName(node, literal); + } + } + if (isTypePredicateNode(node)) { + let parameterName; + if (isIdentifier(node.parameterName)) { + const { node: result, introducesError } = trackExistingEntityName(node.parameterName, context); + hadError = hadError || introducesError; + parameterName = result; + } else { + parameterName = factory.cloneNode(node.parameterName); + } + return factory.updateTypePredicateNode(node, factory.cloneNode(node.assertsModifier), parameterName, visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); + } + if (isTupleTypeNode(node) || isTypeLiteralNode(node) || isMappedTypeNode(node)) { + const visited = visitEachChild2(node, visitExistingNodeTreeSymbols); + const clone = setTextRange2(context, visited === node ? factory.cloneNode(node) : visited, node); + const flags = getEmitFlags(clone); + setEmitFlags(clone, flags | (context.flags & 1024 /* MultilineObjectLiterals */ && isTypeLiteralNode(node) ? 0 : 1 /* SingleLine */)); + return clone; + } + if (isStringLiteral(node) && !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */) && !node.singleQuote) { + const clone = factory.cloneNode(node); + clone.singleQuote = true; + return clone; + } + if (isConditionalTypeNode(node)) { + const checkType = visitNode(node.checkType, visitExistingNodeTreeSymbols, isTypeNode); + const disposeScope = onEnterNewScope(node); + const extendType = visitNode(node.extendsType, visitExistingNodeTreeSymbols, isTypeNode); + const trueType2 = visitNode(node.trueType, visitExistingNodeTreeSymbols, isTypeNode); + disposeScope(); + const falseType2 = visitNode(node.falseType, visitExistingNodeTreeSymbols, isTypeNode); + return factory.updateConditionalTypeNode( + node, + checkType, + extendType, + trueType2, + falseType2 + ); + } + if (isTypeOperatorNode(node)) { + if (node.operator === 158 /* UniqueKeyword */ && node.type.kind === 155 /* SymbolKeyword */) { + if (!canReuseTypeNode(context, node)) { + hadError = true; + return node; + } + } else if (node.operator === 143 /* KeyOfKeyword */) { + const result = tryVisitKeyOf(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + } + return visitEachChild2(node, visitExistingNodeTreeSymbols); + function visitEachChild2(node2, visitor) { + const nonlocalNode = !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(node2); + return visitEachChild( + node2, + visitor, + /*context*/ + void 0, + nonlocalNode ? visitNodesWithoutCopyingPositions : void 0 + ); + } + function visitNodesWithoutCopyingPositions(nodes, visitor, test, start, count) { + let result = visitNodes2(nodes, visitor, test, start, count); + if (result) { + if (result.pos !== -1 || result.end !== -1) { + if (result === nodes) { + result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma); + } + setTextRangePosEnd(result, -1, -1); + } + } + return result; + } + function getEffectiveDotDotDotForParameter(p) { + return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(26 /* DotDotDotToken */) : void 0); + } + function getNameForJSDocFunctionParameter(p, index) { + return p.name && isIdentifier(p.name) && p.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`; + } + function rewriteModuleSpecifier(parent, lit) { + if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) { + let name = lit.text; + const nodeSymbol = getNodeLinks(node).resolvedSymbol; + const meaning = parent.isTypeOf ? 111551 /* Value */ : 788968 /* Type */; + const parentSymbol = nodeSymbol && isSymbolAccessible( + nodeSymbol, + context.enclosingDeclaration, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility === 0 /* Accessible */ && lookupSymbolChain( + nodeSymbol, + context, + meaning, + /*yieldModuleSymbol*/ + true + )[0]; + if (parentSymbol && isExternalModuleSymbol(parentSymbol)) { + name = getSpecifierForModuleSymbol(parentSymbol, context); + } else { + const targetFile = getExternalModuleFileFromDeclaration(parent); + if (targetFile) { + name = getSpecifierForModuleSymbol(targetFile.symbol, context); + } + } + if (name.includes("/node_modules/")) { + context.encounteredError = true; + if (context.tracker.reportLikelyUnsafeImportRequiredError) { + context.tracker.reportLikelyUnsafeImportRequiredError(name); + } + } + if (name !== lit.text) { + return setOriginalNode(factory.createStringLiteral(name), lit); + } + } + return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral); + } + } + } + function symbolTableToDeclarationStatements(symbolTable, context) { + var _a; + const serializePropertySymbolForClass = makeSerializePropertySymbol( + factory.createPropertyDeclaration, + 174 /* MethodDeclaration */, + /*useAccessors*/ + true + ); + const serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol( + (mods, name, question, type) => factory.createPropertySignature(mods, name, question, type), + 173 /* MethodSignature */, + /*useAccessors*/ + false + ); + const enclosingDeclaration = context.enclosingDeclaration; + let results = []; + const visitedSymbols = /* @__PURE__ */ new Set(); + const deferredPrivatesStack = []; + const oldcontext = context; + context = { + ...oldcontext, + usedSymbolNames: new Set(oldcontext.usedSymbolNames), + remappedSymbolNames: /* @__PURE__ */ new Map(), + remappedSymbolReferences: new Map((_a = oldcontext.remappedSymbolReferences) == null ? void 0 : _a.entries()), + tracker: void 0 + }; + const tracker = { + ...oldcontext.tracker.inner, + trackSymbol: (sym, decl, meaning) => { + var _a2, _b; + if ((_a2 = context.remappedSymbolNames) == null ? void 0 : _a2.has(getSymbolId(sym))) return false; + const accessibleResult = isSymbolAccessible( + sym, + decl, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ); + if (accessibleResult.accessibility === 0 /* Accessible */) { + const chain = lookupSymbolChainWorker(sym, context, meaning); + if (!(sym.flags & 4 /* Property */)) { + const root = chain[0]; + const contextFile = getSourceFileOfNode(oldcontext.enclosingDeclaration); + if (some(root.declarations, (d) => getSourceFileOfNode(d) === contextFile)) { + includePrivateSymbol(root); + } + } + } else if ((_b = oldcontext.tracker.inner) == null ? void 0 : _b.trackSymbol) { + return oldcontext.tracker.inner.trackSymbol(sym, decl, meaning); + } + return false; + } + }; + context.tracker = new SymbolTrackerImpl(context, tracker, oldcontext.tracker.moduleResolverHost); + forEachEntry(symbolTable, (symbol, name) => { + const baseName = unescapeLeadingUnderscores(name); + void getInternalSymbolName(symbol, baseName); + }); + let addingDeclare = !context.bundled; + const exportEquals = symbolTable.get("export=" /* ExportEquals */); + if (exportEquals && symbolTable.size > 1 && exportEquals.flags & (2097152 /* Alias */ | 1536 /* Module */)) { + symbolTable = createSymbolTable(); + symbolTable.set("export=" /* ExportEquals */, exportEquals); + } + visitSymbolTable(symbolTable); + return mergeRedundantStatements(results); + function isIdentifierAndNotUndefined(node) { + return !!node && node.kind === 80 /* Identifier */; + } + function getNamesOfDeclaration(statement) { + if (isVariableStatement(statement)) { + return filter(map(statement.declarationList.declarations, getNameOfDeclaration), isIdentifierAndNotUndefined); + } + return filter([getNameOfDeclaration(statement)], isIdentifierAndNotUndefined); + } + function flattenExportAssignedNamespace(statements) { + const exportAssignment = find(statements, isExportAssignment); + const nsIndex = findIndex(statements, isModuleDeclaration); + let ns = nsIndex !== -1 ? statements[nsIndex] : void 0; + if (ns && exportAssignment && exportAssignment.isExportEquals && isIdentifier(exportAssignment.expression) && isIdentifier(ns.name) && idText(ns.name) === idText(exportAssignment.expression) && ns.body && isModuleBlock(ns.body)) { + const excessExports = filter(statements, (s) => !!(getEffectiveModifierFlags(s) & 32 /* Export */)); + const name = ns.name; + let body = ns.body; + if (length(excessExports)) { + ns = factory.updateModuleDeclaration( + ns, + ns.modifiers, + ns.name, + body = factory.updateModuleBlock( + body, + factory.createNodeArray([ + ...ns.body.statements, + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports(map(flatMap(excessExports, (e) => getNamesOfDeclaration(e)), (id) => factory.createExportSpecifier( + /*isTypeOnly*/ + false, + /*propertyName*/ + void 0, + id + ))), + /*moduleSpecifier*/ + void 0 + ) + ]) + ) + ); + statements = [...statements.slice(0, nsIndex), ns, ...statements.slice(nsIndex + 1)]; + } + if (!find(statements, (s) => s !== ns && nodeHasName(s, name))) { + results = []; + const mixinExportFlag = !some(body.statements, (s) => hasSyntacticModifier(s, 32 /* Export */) || isExportAssignment(s) || isExportDeclaration(s)); + forEach(body.statements, (s) => { + addResult(s, mixinExportFlag ? 32 /* Export */ : 0 /* None */); + }); + statements = [...filter(statements, (s) => s !== ns && s !== exportAssignment), ...results]; + } + } + return statements; + } + function mergeExportDeclarations(statements) { + const exports2 = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause)); + if (length(exports2) > 1) { + const nonExports = filter(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause); + statements = [ + ...nonExports, + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports(flatMap(exports2, (e) => cast(e.exportClause, isNamedExports).elements)), + /*moduleSpecifier*/ + void 0 + ) + ]; + } + const reexports = filter(statements, (d) => isExportDeclaration(d) && !!d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause)); + if (length(reexports) > 1) { + const groups = group(reexports, (decl) => isStringLiteral(decl.moduleSpecifier) ? ">" + decl.moduleSpecifier.text : ">"); + if (groups.length !== reexports.length) { + for (const group2 of groups) { + if (group2.length > 1) { + statements = [ + ...filter(statements, (s) => !group2.includes(s)), + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports(flatMap(group2, (e) => cast(e.exportClause, isNamedExports).elements)), + group2[0].moduleSpecifier + ) + ]; + } + } + } + } + return statements; + } + function inlineExportModifiers(statements) { + const index = findIndex(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !d.attributes && !!d.exportClause && isNamedExports(d.exportClause)); + if (index >= 0) { + const exportDecl = statements[index]; + const replacements = mapDefined(exportDecl.exportClause.elements, (e) => { + if (!e.propertyName) { + const indices = indicesOf(statements); + const associatedIndices = filter(indices, (i) => nodeHasName(statements[i], e.name)); + if (length(associatedIndices) && every(associatedIndices, (i) => canHaveExportModifier(statements[i]))) { + for (const index2 of associatedIndices) { + statements[index2] = addExportModifier(statements[index2]); + } + return void 0; + } + } + return e; + }); + if (!length(replacements)) { + orderedRemoveItemAt(statements, index); + } else { + statements[index] = factory.updateExportDeclaration( + exportDecl, + exportDecl.modifiers, + exportDecl.isTypeOnly, + factory.updateNamedExports( + exportDecl.exportClause, + replacements + ), + exportDecl.moduleSpecifier, + exportDecl.attributes + ); + } + } + return statements; + } + function mergeRedundantStatements(statements) { + statements = flattenExportAssignedNamespace(statements); + statements = mergeExportDeclarations(statements); + statements = inlineExportModifiers(statements); + if (enclosingDeclaration && (isSourceFile(enclosingDeclaration) && isExternalOrCommonJsModule(enclosingDeclaration) || isModuleDeclaration(enclosingDeclaration)) && (!some(statements, isExternalModuleIndicator) || !hasScopeMarker(statements) && some(statements, needsScopeMarker))) { + statements.push(createEmptyExports(factory)); + } + return statements; + } + function addExportModifier(node) { + const flags = (getEffectiveModifierFlags(node) | 32 /* Export */) & ~128 /* Ambient */; + return factory.replaceModifiers(node, flags); + } + function removeExportModifier(node) { + const flags = getEffectiveModifierFlags(node) & ~32 /* Export */; + return factory.replaceModifiers(node, flags); + } + function visitSymbolTable(symbolTable2, suppressNewPrivateContext, propertyAsAlias) { + if (!suppressNewPrivateContext) { + deferredPrivatesStack.push(/* @__PURE__ */ new Map()); + } + symbolTable2.forEach((symbol) => { + serializeSymbol( + symbol, + /*isPrivate*/ + false, + !!propertyAsAlias + ); + }); + if (!suppressNewPrivateContext) { + deferredPrivatesStack[deferredPrivatesStack.length - 1].forEach((symbol) => { + serializeSymbol( + symbol, + /*isPrivate*/ + true, + !!propertyAsAlias + ); + }); + deferredPrivatesStack.pop(); + } + } + function serializeSymbol(symbol, isPrivate, propertyAsAlias) { + void getPropertiesOfType(getTypeOfSymbol(symbol)); + const visitedSym = getMergedSymbol(symbol); + if (visitedSymbols.has(getSymbolId(visitedSym))) { + return; + } + visitedSymbols.add(getSymbolId(visitedSym)); + const skipMembershipCheck = !isPrivate; + if (skipMembershipCheck || !!length(symbol.declarations) && some(symbol.declarations, (d) => !!findAncestor(d, (n) => n === enclosingDeclaration))) { + const scopeCleanup = cloneNodeBuilderContext(context); + serializeSymbolWorker(symbol, isPrivate, propertyAsAlias); + scopeCleanup(); + } + } + function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias, escapedSymbolName = symbol.escapedName) { + var _a2, _b, _c, _d, _e, _f; + const symbolName2 = unescapeLeadingUnderscores(escapedSymbolName); + const isDefault = escapedSymbolName === "default" /* Default */; + if (isPrivate && !(context.flags & 131072 /* AllowAnonymousIdentifier */) && isStringANonContextualKeyword(symbolName2) && !isDefault) { + context.encounteredError = true; + return; + } + let needsPostExportDefault = isDefault && !!(symbol.flags & -113 /* ExportDoesNotSupportDefaultModifier */ || symbol.flags & 16 /* Function */ && length(getPropertiesOfType(getTypeOfSymbol(symbol)))) && !(symbol.flags & 2097152 /* Alias */); + let needsExportDeclaration = !needsPostExportDefault && !isPrivate && isStringANonContextualKeyword(symbolName2) && !isDefault; + if (needsPostExportDefault || needsExportDeclaration) { + isPrivate = true; + } + const modifierFlags = (!isPrivate ? 32 /* Export */ : 0) | (isDefault && !needsPostExportDefault ? 2048 /* Default */ : 0); + const isConstMergedWithNS = symbol.flags & 1536 /* Module */ && symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */) && escapedSymbolName !== "export=" /* ExportEquals */; + const isConstMergedWithNSPrintableAsSignatureMerge = isConstMergedWithNS && isTypeRepresentableAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol); + if (symbol.flags & (16 /* Function */ | 8192 /* Method */) || isConstMergedWithNSPrintableAsSignatureMerge) { + serializeAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); + } + if (symbol.flags & 524288 /* TypeAlias */) { + serializeTypeAlias(symbol, symbolName2, modifierFlags); + } + if (symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */ | 98304 /* Accessor */) && escapedSymbolName !== "export=" /* ExportEquals */ && !(symbol.flags & 4194304 /* Prototype */) && !(symbol.flags & 32 /* Class */) && !(symbol.flags & 8192 /* Method */) && !isConstMergedWithNSPrintableAsSignatureMerge) { + if (propertyAsAlias) { + const createdExport = serializeMaybeAliasAssignment(symbol); + if (createdExport) { + needsExportDeclaration = false; + needsPostExportDefault = false; + } + } else { + const type = getTypeOfSymbol(symbol); + const localName = getInternalSymbolName(symbol, symbolName2); + if (type.symbol && type.symbol !== symbol && type.symbol.flags & 16 /* Function */ && some(type.symbol.declarations, isFunctionExpressionOrArrowFunction) && (((_a2 = type.symbol.members) == null ? void 0 : _a2.size) || ((_b = type.symbol.exports) == null ? void 0 : _b.size))) { + if (!context.remappedSymbolReferences) { + context.remappedSymbolReferences = /* @__PURE__ */ new Map(); + } + context.remappedSymbolReferences.set(getSymbolId(type.symbol), symbol); + serializeSymbolWorker(type.symbol, isPrivate, propertyAsAlias, escapedSymbolName); + context.remappedSymbolReferences.delete(getSymbolId(type.symbol)); + } else if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) { + serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags); + } else { + const flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? ((_c = symbol.parent) == null ? void 0 : _c.valueDeclaration) && isSourceFile((_d = symbol.parent) == null ? void 0 : _d.valueDeclaration) ? 2 /* Const */ : void 0 : isConstantVariable(symbol) ? 2 /* Const */ : 1 /* Let */; + const name = needsPostExportDefault || !(symbol.flags & 4 /* Property */) ? localName : getUnusedName(localName, symbol); + let textRange = symbol.declarations && find(symbol.declarations, (d) => isVariableDeclaration(d)); + if (textRange && isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) { + textRange = textRange.parent.parent; + } + const propertyAccessRequire = (_e = symbol.declarations) == null ? void 0 : _e.find(isPropertyAccessExpression); + if (propertyAccessRequire && isBinaryExpression(propertyAccessRequire.parent) && isIdentifier(propertyAccessRequire.parent.right) && ((_f = type.symbol) == null ? void 0 : _f.valueDeclaration) && isSourceFile(type.symbol.valueDeclaration)) { + const alias = localName === propertyAccessRequire.parent.right.escapedText ? void 0 : propertyAccessRequire.parent.right; + addResult( + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports([factory.createExportSpecifier( + /*isTypeOnly*/ + false, + alias, + localName + )]) + ), + 0 /* None */ + ); + context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551 /* Value */); + } else { + const statement = setTextRange2( + context, + factory.createVariableStatement( + /*modifiers*/ + void 0, + factory.createVariableDeclarationList([ + factory.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + type, + symbol + ) + ) + ], flags) + ), + textRange + ); + addResult(statement, name !== localName ? modifierFlags & ~32 /* Export */ : modifierFlags); + if (name !== localName && !isPrivate) { + addResult( + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports([factory.createExportSpecifier( + /*isTypeOnly*/ + false, + name, + localName + )]) + ), + 0 /* None */ + ); + needsExportDeclaration = false; + needsPostExportDefault = false; + } + } + } + } + } + if (symbol.flags & 384 /* Enum */) { + serializeEnum(symbol, symbolName2, modifierFlags); + } + if (symbol.flags & 32 /* Class */) { + if (symbol.flags & 4 /* Property */ && symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration.parent) && isClassExpression(symbol.valueDeclaration.parent.right)) { + serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); + } else { + serializeAsClass(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); + } + } + if (symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && (!isConstMergedWithNS || isTypeOnlyNamespace(symbol)) || isConstMergedWithNSPrintableAsSignatureMerge) { + serializeModule(symbol, symbolName2, modifierFlags); + } + if (symbol.flags & 64 /* Interface */ && !(symbol.flags & 32 /* Class */)) { + serializeInterface(symbol, symbolName2, modifierFlags); + } + if (symbol.flags & 2097152 /* Alias */) { + serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName2), modifierFlags); + } + if (symbol.flags & 4 /* Property */ && symbol.escapedName === "export=" /* ExportEquals */) { + serializeMaybeAliasAssignment(symbol); + } + if (symbol.flags & 8388608 /* ExportStar */) { + if (symbol.declarations) { + for (const node of symbol.declarations) { + const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); + if (!resolvedModule) continue; + addResult(factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + node.isTypeOnly, + /*exportClause*/ + void 0, + factory.createStringLiteral(getSpecifierForModuleSymbol(resolvedModule, context)) + ), 0 /* None */); + } + } + } + if (needsPostExportDefault) { + addResult(factory.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + false, + factory.createIdentifier(getInternalSymbolName(symbol, symbolName2)) + ), 0 /* None */); + } else if (needsExportDeclaration) { + addResult( + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports([factory.createExportSpecifier( + /*isTypeOnly*/ + false, + getInternalSymbolName(symbol, symbolName2), + symbolName2 + )]) + ), + 0 /* None */ + ); + } + } + function includePrivateSymbol(symbol) { + if (some(symbol.declarations, isPartOfParameterDeclaration)) return; + Debug.assertIsDefined(deferredPrivatesStack[deferredPrivatesStack.length - 1]); + getUnusedName(unescapeLeadingUnderscores(symbol.escapedName), symbol); + const isExternalImportAlias = !!(symbol.flags & 2097152 /* Alias */) && !some(symbol.declarations, (d) => !!findAncestor(d, isExportDeclaration) || isNamespaceExport(d) || isImportEqualsDeclaration(d) && !isExternalModuleReference(d.moduleReference)); + deferredPrivatesStack[isExternalImportAlias ? 0 : deferredPrivatesStack.length - 1].set(getSymbolId(symbol), symbol); + } + function isExportingScope(enclosingDeclaration2) { + return isSourceFile(enclosingDeclaration2) && (isExternalOrCommonJsModule(enclosingDeclaration2) || isJsonSourceFile(enclosingDeclaration2)) || isAmbientModule(enclosingDeclaration2) && !isGlobalScopeAugmentation(enclosingDeclaration2); + } + function addResult(node, additionalModifierFlags) { + if (canHaveModifiers(node)) { + let newModifierFlags = 0 /* None */; + const enclosingDeclaration2 = context.enclosingDeclaration && (isJSDocTypeAlias(context.enclosingDeclaration) ? getSourceFileOfNode(context.enclosingDeclaration) : context.enclosingDeclaration); + if (additionalModifierFlags & 32 /* Export */ && enclosingDeclaration2 && (isExportingScope(enclosingDeclaration2) || isModuleDeclaration(enclosingDeclaration2)) && canHaveExportModifier(node)) { + newModifierFlags |= 32 /* Export */; + } + if (addingDeclare && !(newModifierFlags & 32 /* Export */) && (!enclosingDeclaration2 || !(enclosingDeclaration2.flags & 33554432 /* Ambient */)) && (isEnumDeclaration(node) || isVariableStatement(node) || isFunctionDeclaration(node) || isClassDeclaration(node) || isModuleDeclaration(node))) { + newModifierFlags |= 128 /* Ambient */; + } + if (additionalModifierFlags & 2048 /* Default */ && (isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionDeclaration(node))) { + newModifierFlags |= 2048 /* Default */; + } + if (newModifierFlags) { + node = factory.replaceModifiers(node, newModifierFlags | getEffectiveModifierFlags(node)); + } + } + results.push(node); + } + function serializeTypeAlias(symbol, symbolName2, modifierFlags) { + var _a2; + const aliasType = getDeclaredTypeOfTypeAlias(symbol); + const typeParams = getSymbolLinks(symbol).typeParameters; + const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context)); + const jsdocAliasDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isJSDocTypeAlias); + const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0); + const oldFlags = context.flags; + context.flags |= 8388608 /* InTypeAlias */; + const oldEnclosingDecl = context.enclosingDeclaration; + context.enclosingDeclaration = jsdocAliasDecl; + const typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression && isJSDocTypeExpression(jsdocAliasDecl.typeExpression) && tryReuseExistingNonParameterTypeNode( + context, + jsdocAliasDecl.typeExpression.type, + aliasType, + /*host*/ + void 0 + ) || typeToTypeNodeHelper(aliasType, context); + addResult( + setSyntheticLeadingComments( + factory.createTypeAliasDeclaration( + /*modifiers*/ + void 0, + getInternalSymbolName(symbol, symbolName2), + typeParamDecls, + typeNode + ), + !commentText ? [] : [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }] + ), + modifierFlags + ); + context.flags = oldFlags; + context.enclosingDeclaration = oldEnclosingDecl; + } + function serializeInterface(symbol, symbolName2, modifierFlags) { + const interfaceType = getDeclaredTypeOfClassOrInterface(symbol); + const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); + const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context)); + const baseTypes = getBaseTypes(interfaceType); + const baseType = length(baseTypes) ? getIntersectionType(baseTypes) : void 0; + const members = flatMap(getPropertiesOfType(interfaceType), (p) => serializePropertySymbolForInterface(p, baseType)); + const callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 179 /* CallSignature */); + const constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 180 /* ConstructSignature */); + const indexSignatures = serializeIndexSignatures(interfaceType, baseType); + const heritageClauses = !length(baseTypes) ? void 0 : [factory.createHeritageClause(96 /* ExtendsKeyword */, mapDefined(baseTypes, (b) => trySerializeAsTypeReference(b, 111551 /* Value */)))]; + addResult( + factory.createInterfaceDeclaration( + /*modifiers*/ + void 0, + getInternalSymbolName(symbol, symbolName2), + typeParamDecls, + heritageClauses, + [...indexSignatures, ...constructSignatures, ...callSignatures, ...members] + ), + modifierFlags + ); + } + function getNamespaceMembersForSerialization(symbol) { + let exports2 = arrayFrom(getExportsOfSymbol(symbol).values()); + const merged = getMergedSymbol(symbol); + if (merged !== symbol) { + const membersSet = new Set(exports2); + for (const exported of getExportsOfSymbol(merged).values()) { + if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) { + membersSet.add(exported); + } + } + exports2 = arrayFrom(membersSet); + } + return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */)); + } + function isTypeOnlyNamespace(symbol) { + return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */)); + } + function serializeModule(symbol, symbolName2, modifierFlags) { + const members = getNamespaceMembersForSerialization(symbol); + const locationMap = arrayToMultiMap(members, (m) => m.parent && m.parent === symbol ? "real" : "merged"); + const realMembers = locationMap.get("real") || emptyArray; + const mergedMembers = locationMap.get("merged") || emptyArray; + if (length(realMembers)) { + const localName = getInternalSymbolName(symbol, symbolName2); + serializeAsNamespaceDeclaration(realMembers, localName, modifierFlags, !!(symbol.flags & (16 /* Function */ | 67108864 /* Assignment */))); + } + if (length(mergedMembers)) { + const containingFile = getSourceFileOfNode(context.enclosingDeclaration); + const localName = getInternalSymbolName(symbol, symbolName2); + const nsBody = factory.createModuleBlock([factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports(mapDefined(filter(mergedMembers, (n) => n.escapedName !== "export=" /* ExportEquals */), (s) => { + var _a2, _b; + const name = unescapeLeadingUnderscores(s.escapedName); + const localName2 = getInternalSymbolName(s, name); + const aliasDecl = s.declarations && getDeclarationOfAliasSymbol(s); + if (containingFile && (aliasDecl ? containingFile !== getSourceFileOfNode(aliasDecl) : !some(s.declarations, (d) => getSourceFileOfNode(d) === containingFile))) { + (_b = (_a2 = context.tracker) == null ? void 0 : _a2.reportNonlocalAugmentation) == null ? void 0 : _b.call(_a2, containingFile, symbol, s); + return void 0; + } + const target = aliasDecl && getTargetOfAliasDeclaration( + aliasDecl, + /*dontRecursivelyResolve*/ + true + ); + includePrivateSymbol(target || s); + const targetName = target ? getInternalSymbolName(target, unescapeLeadingUnderscores(target.escapedName)) : localName2; + return factory.createExportSpecifier( + /*isTypeOnly*/ + false, + name === targetName ? void 0 : targetName, + name + ); + })) + )]); + addResult( + factory.createModuleDeclaration( + /*modifiers*/ + void 0, + factory.createIdentifier(localName), + nsBody, + 32 /* Namespace */ + ), + 0 /* None */ + ); + } + } + function serializeEnum(symbol, symbolName2, modifierFlags) { + addResult( + factory.createEnumDeclaration( + factory.createModifiersFromModifierFlags(isConstEnumSymbol(symbol) ? 4096 /* Const */ : 0), + getInternalSymbolName(symbol, symbolName2), + map(filter(getPropertiesOfType(getTypeOfSymbol(symbol)), (p) => !!(p.flags & 8 /* EnumMember */)), (p) => { + const initializedValue = p.declarations && p.declarations[0] && isEnumMember(p.declarations[0]) ? getConstantValue2(p.declarations[0]) : void 0; + return factory.createEnumMember( + unescapeLeadingUnderscores(p.escapedName), + initializedValue === void 0 ? void 0 : typeof initializedValue === "string" ? factory.createStringLiteral(initializedValue) : factory.createNumericLiteral(initializedValue) + ); + }) + ), + modifierFlags + ); + } + function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) { + const signatures = getSignaturesOfType(type, 0 /* Call */); + for (const sig of signatures) { + const decl = signatureToSignatureDeclarationHelper(sig, 262 /* FunctionDeclaration */, context, { name: factory.createIdentifier(localName) }); + addResult(setTextRange2(context, decl, getSignatureTextRangeLocation(sig)), modifierFlags); + } + if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) { + const props = filter(getPropertiesOfType(type), isNamespaceMember); + serializeAsNamespaceDeclaration( + props, + localName, + modifierFlags, + /*suppressNewPrivateContext*/ + true + ); + } + } + function getSignatureTextRangeLocation(signature) { + if (signature.declaration && signature.declaration.parent) { + if (isBinaryExpression(signature.declaration.parent) && getAssignmentDeclarationKind(signature.declaration.parent) === 5 /* Property */) { + return signature.declaration.parent; + } + if (isVariableDeclaration(signature.declaration.parent) && signature.declaration.parent.parent) { + return signature.declaration.parent.parent; + } + } + return signature.declaration; + } + function serializeAsNamespaceDeclaration(props, localName, modifierFlags, suppressNewPrivateContext) { + if (length(props)) { + const localVsRemoteMap = arrayToMultiMap(props, (p) => !length(p.declarations) || some(p.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)) ? "local" : "remote"); + const localProps = localVsRemoteMap.get("local") || emptyArray; + let fakespace = parseNodeFactory.createModuleDeclaration( + /*modifiers*/ + void 0, + factory.createIdentifier(localName), + factory.createModuleBlock([]), + 32 /* Namespace */ + ); + setParent(fakespace, enclosingDeclaration); + fakespace.locals = createSymbolTable(props); + fakespace.symbol = props[0].parent; + const oldResults = results; + results = []; + const oldAddingDeclare = addingDeclare; + addingDeclare = false; + const subcontext = { ...context, enclosingDeclaration: fakespace }; + const oldContext = context; + context = subcontext; + visitSymbolTable( + createSymbolTable(localProps), + suppressNewPrivateContext, + /*propertyAsAlias*/ + true + ); + context = oldContext; + addingDeclare = oldAddingDeclare; + const declarations = results; + results = oldResults; + const defaultReplaced = map(declarations, (d) => isExportAssignment(d) && !d.isExportEquals && isIdentifier(d.expression) ? factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports([factory.createExportSpecifier( + /*isTypeOnly*/ + false, + d.expression, + factory.createIdentifier("default" /* Default */) + )]) + ) : d); + const exportModifierStripped = every(defaultReplaced, (d) => hasSyntacticModifier(d, 32 /* Export */)) ? map(defaultReplaced, removeExportModifier) : defaultReplaced; + fakespace = factory.updateModuleDeclaration( + fakespace, + fakespace.modifiers, + fakespace.name, + factory.createModuleBlock(exportModifierStripped) + ); + addResult(fakespace, modifierFlags); + } + } + function isNamespaceMember(p) { + return !!(p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) || !(p.flags & 4194304 /* Prototype */ || p.escapedName === "prototype" || p.valueDeclaration && isStatic(p.valueDeclaration) && isClassLike(p.valueDeclaration.parent)); + } + function sanitizeJSDocImplements(clauses) { + const result = mapDefined(clauses, (e) => { + const oldEnclosing = context.enclosingDeclaration; + context.enclosingDeclaration = e; + let expr = e.expression; + if (isEntityNameExpression(expr)) { + if (isIdentifier(expr) && idText(expr) === "") { + return cleanup( + /*result*/ + void 0 + ); + } + let introducesError; + ({ introducesError, node: expr } = trackExistingEntityName(expr, context)); + if (introducesError) { + return cleanup( + /*result*/ + void 0 + ); + } + } + return cleanup(factory.createExpressionWithTypeArguments( + expr, + map(e.typeArguments, (a) => tryReuseExistingNonParameterTypeNode(context, a, getTypeFromTypeNode2(context, a)) || typeToTypeNodeHelper(getTypeFromTypeNode2(context, a), context)) + )); + function cleanup(result2) { + context.enclosingDeclaration = oldEnclosing; + return result2; + } + }); + if (result.length === clauses.length) { + return result; + } + return void 0; + } + function serializeAsClass(symbol, localName, modifierFlags) { + var _a2, _b; + const originalDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isClassLike); + const oldEnclosing = context.enclosingDeclaration; + context.enclosingDeclaration = originalDecl || oldEnclosing; + const localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); + const typeParamDecls = map(localParams, (p) => typeParameterToDeclaration(p, context)); + const classType = getTypeWithThisArgument(getDeclaredTypeOfClassOrInterface(symbol)); + const baseTypes = getBaseTypes(classType); + const originalImplements = originalDecl && getEffectiveImplementsTypeNodes(originalDecl); + const implementsExpressions = originalImplements && sanitizeJSDocImplements(originalImplements) || mapDefined(getImplementsTypes(classType), serializeImplementedType); + const staticType = getTypeOfSymbol(symbol); + const isClass = !!((_b = staticType.symbol) == null ? void 0 : _b.valueDeclaration) && isClassLike(staticType.symbol.valueDeclaration); + const staticBaseType = isClass ? getBaseConstructorTypeOfClass(staticType) : anyType; + const heritageClauses = [ + ...!length(baseTypes) ? [] : [factory.createHeritageClause(96 /* ExtendsKeyword */, map(baseTypes, (b) => serializeBaseType(b, staticBaseType, localName)))], + ...!length(implementsExpressions) ? [] : [factory.createHeritageClause(119 /* ImplementsKeyword */, implementsExpressions)] + ]; + const symbolProps = getNonInheritedProperties(classType, baseTypes, getPropertiesOfType(classType)); + const publicSymbolProps = filter(symbolProps, (s) => { + const valueDecl = s.valueDeclaration; + return !!valueDecl && !(isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name)); + }); + const hasPrivateIdentifier = some(symbolProps, (s) => { + const valueDecl = s.valueDeclaration; + return !!valueDecl && isNamedDeclaration(valueDecl) && isPrivateIdentifier(valueDecl.name); + }); + const privateProperties = hasPrivateIdentifier ? [factory.createPropertyDeclaration( + /*modifiers*/ + void 0, + factory.createPrivateIdentifier("#private"), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + )] : emptyArray; + const publicProperties = flatMap(publicSymbolProps, (p) => serializePropertySymbolForClass( + p, + /*isStatic*/ + false, + baseTypes[0] + )); + const staticMembers = flatMap( + filter(getPropertiesOfType(staticType), (p) => !(p.flags & 4194304 /* Prototype */) && p.escapedName !== "prototype" && !isNamespaceMember(p)), + (p) => serializePropertySymbolForClass( + p, + /*isStatic*/ + true, + staticBaseType + ) + ); + const isNonConstructableClassLikeInJsFile = !isClass && !!symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && !some(getSignaturesOfType(staticType, 1 /* Construct */)); + const constructors = isNonConstructableClassLikeInJsFile ? [factory.createConstructorDeclaration( + factory.createModifiersFromModifierFlags(2 /* Private */), + [], + /*body*/ + void 0 + )] : serializeSignatures(1 /* Construct */, staticType, staticBaseType, 176 /* Constructor */); + const indexSignatures = serializeIndexSignatures(classType, baseTypes[0]); + context.enclosingDeclaration = oldEnclosing; + addResult( + setTextRange2( + context, + factory.createClassDeclaration( + /*modifiers*/ + void 0, + localName, + typeParamDecls, + heritageClauses, + [...indexSignatures, ...staticMembers, ...constructors, ...publicProperties, ...privateProperties] + ), + symbol.declarations && filter(symbol.declarations, (d) => isClassDeclaration(d) || isClassExpression(d))[0] + ), + modifierFlags + ); + } + function getSomeTargetNameFromDeclarations(declarations) { + return firstDefined(declarations, (d) => { + if (isImportSpecifier(d) || isExportSpecifier(d)) { + return idText(d.propertyName || d.name); + } + if (isBinaryExpression(d) || isExportAssignment(d)) { + const expression = isExportAssignment(d) ? d.expression : d.right; + if (isPropertyAccessExpression(expression)) { + return idText(expression.name); + } + } + if (isAliasSymbolDeclaration(d)) { + const name = getNameOfDeclaration(d); + if (name && isIdentifier(name)) { + return idText(name); + } + } + return void 0; + }); + } + function serializeAsAlias(symbol, localName, modifierFlags) { + var _a2, _b, _c, _d, _e, _f; + const node = getDeclarationOfAliasSymbol(symbol); + if (!node) return Debug.fail(); + const target = getMergedSymbol(getTargetOfAliasDeclaration( + node, + /*dontRecursivelyResolve*/ + true + )); + if (!target) { + return; + } + let verbatimTargetName = isShorthandAmbientModuleSymbol(target) && getSomeTargetNameFromDeclarations(symbol.declarations) || unescapeLeadingUnderscores(target.escapedName); + if (verbatimTargetName === "export=" /* ExportEquals */ && allowSyntheticDefaultImports) { + verbatimTargetName = "default" /* Default */; + } + const targetName = getInternalSymbolName(target, verbatimTargetName); + includePrivateSymbol(target); + switch (node.kind) { + case 208 /* BindingElement */: + if (((_b = (_a2 = node.parent) == null ? void 0 : _a2.parent) == null ? void 0 : _b.kind) === 260 /* VariableDeclaration */) { + const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); + const { propertyName } = node; + addResult( + factory.createImportDeclaration( + /*modifiers*/ + void 0, + factory.createImportClause( + /*isTypeOnly*/ + false, + /*name*/ + void 0, + factory.createNamedImports([factory.createImportSpecifier( + /*isTypeOnly*/ + false, + propertyName && isIdentifier(propertyName) ? factory.createIdentifier(idText(propertyName)) : void 0, + factory.createIdentifier(localName) + )]) + ), + factory.createStringLiteral(specifier2), + /*attributes*/ + void 0 + ), + 0 /* None */ + ); + break; + } + Debug.failBadSyntaxKind(((_c = node.parent) == null ? void 0 : _c.parent) || node, "Unhandled binding element grandparent kind in declaration serialization"); + break; + case 304 /* ShorthandPropertyAssignment */: + if (((_e = (_d = node.parent) == null ? void 0 : _d.parent) == null ? void 0 : _e.kind) === 226 /* BinaryExpression */) { + serializeExportSpecifier( + unescapeLeadingUnderscores(symbol.escapedName), + targetName + ); + } + break; + case 260 /* VariableDeclaration */: + if (isPropertyAccessExpression(node.initializer)) { + const initializer = node.initializer; + const uniqueName = factory.createUniqueName(localName); + const specifier2 = getSpecifierForModuleSymbol(target.parent || target, context); + addResult( + factory.createImportEqualsDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + uniqueName, + factory.createExternalModuleReference(factory.createStringLiteral(specifier2)) + ), + 0 /* None */ + ); + addResult( + factory.createImportEqualsDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createIdentifier(localName), + factory.createQualifiedName(uniqueName, initializer.name) + ), + modifierFlags + ); + break; + } + case 271 /* ImportEqualsDeclaration */: + if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { + serializeMaybeAliasAssignment(symbol); + break; + } + const isLocalImport = !(target.flags & 512 /* ValueModule */) && !isVariableDeclaration(node); + addResult( + factory.createImportEqualsDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createIdentifier(localName), + isLocalImport ? symbolToName( + target, + context, + -1 /* All */, + /*expectsIdentifier*/ + false + ) : factory.createExternalModuleReference(factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))) + ), + isLocalImport ? modifierFlags : 0 /* None */ + ); + break; + case 270 /* NamespaceExportDeclaration */: + addResult(factory.createNamespaceExportDeclaration(idText(node.name)), 0 /* None */); + break; + case 273 /* ImportClause */: { + const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); + const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.moduleSpecifier; + const attributes = isImportDeclaration(node.parent) ? node.parent.attributes : void 0; + const isTypeOnly = isJSDocImportTag(node.parent); + addResult( + factory.createImportDeclaration( + /*modifiers*/ + void 0, + factory.createImportClause( + isTypeOnly, + factory.createIdentifier(localName), + /*namedBindings*/ + void 0 + ), + specifier2, + attributes + ), + 0 /* None */ + ); + break; + } + case 274 /* NamespaceImport */: { + const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); + const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.moduleSpecifier; + const isTypeOnly = isJSDocImportTag(node.parent.parent); + addResult( + factory.createImportDeclaration( + /*modifiers*/ + void 0, + factory.createImportClause( + isTypeOnly, + /*name*/ + void 0, + factory.createNamespaceImport(factory.createIdentifier(localName)) + ), + specifier2, + node.parent.attributes + ), + 0 /* None */ + ); + break; + } + case 280 /* NamespaceExport */: + addResult( + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamespaceExport(factory.createIdentifier(localName)), + factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)) + ), + 0 /* None */ + ); + break; + case 276 /* ImportSpecifier */: { + const generatedSpecifier = getSpecifierForModuleSymbol(target.parent || target, context); + const specifier2 = context.bundled ? factory.createStringLiteral(generatedSpecifier) : node.parent.parent.parent.moduleSpecifier; + const isTypeOnly = isJSDocImportTag(node.parent.parent.parent); + addResult( + factory.createImportDeclaration( + /*modifiers*/ + void 0, + factory.createImportClause( + isTypeOnly, + /*name*/ + void 0, + factory.createNamedImports([ + factory.createImportSpecifier( + /*isTypeOnly*/ + false, + localName !== verbatimTargetName ? factory.createIdentifier(verbatimTargetName) : void 0, + factory.createIdentifier(localName) + ) + ]) + ), + specifier2, + node.parent.parent.parent.attributes + ), + 0 /* None */ + ); + break; + } + case 281 /* ExportSpecifier */: + const specifier = node.parent.parent.moduleSpecifier; + if (specifier && ((_f = node.propertyName) == null ? void 0 : _f.escapedText) === "default" /* Default */) { + verbatimTargetName = "default" /* Default */; + } + serializeExportSpecifier( + unescapeLeadingUnderscores(symbol.escapedName), + specifier ? verbatimTargetName : targetName, + specifier && isStringLiteralLike(specifier) ? factory.createStringLiteral(specifier.text) : void 0 + ); + break; + case 277 /* ExportAssignment */: + serializeMaybeAliasAssignment(symbol); + break; + case 226 /* BinaryExpression */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + if (symbol.escapedName === "default" /* Default */ || symbol.escapedName === "export=" /* ExportEquals */) { + serializeMaybeAliasAssignment(symbol); + } else { + serializeExportSpecifier(localName, targetName); + } + break; + default: + return Debug.failBadSyntaxKind(node, "Unhandled alias declaration kind in symbol serializer!"); + } + } + function serializeExportSpecifier(localName, targetName, specifier) { + addResult( + factory.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createNamedExports([factory.createExportSpecifier( + /*isTypeOnly*/ + false, + localName !== targetName ? targetName : void 0, + localName + )]), + specifier + ), + 0 /* None */ + ); + } + function serializeMaybeAliasAssignment(symbol) { + var _a2; + if (symbol.flags & 4194304 /* Prototype */) { + return false; + } + const name = unescapeLeadingUnderscores(symbol.escapedName); + const isExportEquals = name === "export=" /* ExportEquals */; + const isDefault = name === "default" /* Default */; + const isExportAssignmentCompatibleSymbolName = isExportEquals || isDefault; + const aliasDecl = symbol.declarations && getDeclarationOfAliasSymbol(symbol); + const target = aliasDecl && getTargetOfAliasDeclaration( + aliasDecl, + /*dontRecursivelyResolve*/ + true + ); + if (target && length(target.declarations) && some(target.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(enclosingDeclaration))) { + const expr = aliasDecl && (isExportAssignment(aliasDecl) || isBinaryExpression(aliasDecl) ? getExportAssignmentExpression(aliasDecl) : getPropertyAssignmentAliasLikeExpression(aliasDecl)); + const first2 = expr && isEntityNameExpression(expr) ? getFirstNonModuleExportsIdentifier(expr) : void 0; + const referenced = first2 && resolveEntityName( + first2, + -1 /* All */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + enclosingDeclaration + ); + if (referenced || target) { + includePrivateSymbol(referenced || target); + } + const prevDisableTrackSymbol = context.tracker.disableTrackSymbol; + context.tracker.disableTrackSymbol = true; + if (isExportAssignmentCompatibleSymbolName) { + results.push(factory.createExportAssignment( + /*modifiers*/ + void 0, + isExportEquals, + symbolToExpression(target, context, -1 /* All */) + )); + } else { + if (first2 === expr && first2) { + serializeExportSpecifier(name, idText(first2)); + } else if (expr && isClassExpression(expr)) { + serializeExportSpecifier(name, getInternalSymbolName(target, symbolName(target))); + } else { + const varName = getUnusedName(name, symbol); + addResult( + factory.createImportEqualsDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory.createIdentifier(varName), + symbolToName( + target, + context, + -1 /* All */, + /*expectsIdentifier*/ + false + ) + ), + 0 /* None */ + ); + serializeExportSpecifier(name, varName); + } + } + context.tracker.disableTrackSymbol = prevDisableTrackSymbol; + return true; + } else { + const varName = getUnusedName(name, symbol); + const typeToSerialize = getWidenedType(getTypeOfSymbol(getMergedSymbol(symbol))); + if (isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, symbol)) { + serializeAsFunctionNamespaceMerge(typeToSerialize, symbol, varName, isExportAssignmentCompatibleSymbolName ? 0 /* None */ : 32 /* Export */); + } else { + const flags = ((_a2 = context.enclosingDeclaration) == null ? void 0 : _a2.kind) === 267 /* ModuleDeclaration */ && (!(symbol.flags & 98304 /* Accessor */) || symbol.flags & 65536 /* SetAccessor */) ? 1 /* Let */ : 2 /* Const */; + const statement = factory.createVariableStatement( + /*modifiers*/ + void 0, + factory.createVariableDeclarationList([ + factory.createVariableDeclaration( + varName, + /*exclamationToken*/ + void 0, + serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + typeToSerialize, + symbol + ) + ) + ], flags) + ); + addResult( + statement, + target && target.flags & 4 /* Property */ && target.escapedName === "export=" /* ExportEquals */ ? 128 /* Ambient */ : name === varName ? 32 /* Export */ : 0 /* None */ + ); + } + if (isExportAssignmentCompatibleSymbolName) { + results.push(factory.createExportAssignment( + /*modifiers*/ + void 0, + isExportEquals, + factory.createIdentifier(varName) + )); + return true; + } else if (name !== varName) { + serializeExportSpecifier(name, varName); + return true; + } + return false; + } + } + function isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, hostSymbol) { + var _a2; + const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration); + return getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) && !some((_a2 = typeToSerialize.symbol) == null ? void 0 : _a2.declarations, isTypeNode) && // If the type comes straight from a type node, we shouldn't try to break it up + !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class + !!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) && !length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK + !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => { + if (!isIdentifierText(symbolName(p), languageVersion)) { + return false; + } + if (!(p.flags & 98304 /* Accessor */)) { + return true; + } + return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p); + }); + } + function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) { + return function serializePropertySymbol(p, isStatic2, baseType) { + var _a2, _b, _c, _d, _e; + const modifierFlags = getDeclarationModifierFlagsFromSymbol(p); + const isPrivate = !!(modifierFlags & 2 /* Private */); + if (isStatic2 && p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) { + return []; + } + if (p.flags & 4194304 /* Prototype */ || p.escapedName === "constructor" || baseType && getPropertyOfType(baseType, p.escapedName) && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p) && (p.flags & 16777216 /* Optional */) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216 /* Optional */) && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName))) { + return []; + } + const flag = modifierFlags & ~1024 /* Async */ | (isStatic2 ? 256 /* Static */ : 0); + const name = getPropertyNameNodeForSymbol(p, context); + const firstPropertyLikeDecl = (_a2 = p.declarations) == null ? void 0 : _a2.find(or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression)); + if (p.flags & 98304 /* Accessor */ && useAccessors) { + const result = []; + if (p.flags & 65536 /* SetAccessor */) { + const setter = p.declarations && forEach(p.declarations, (d) => { + if (d.kind === 178 /* SetAccessor */) { + return d; + } + if (isCallExpression(d) && isBindableObjectDefinePropertyCall(d)) { + return forEach(d.arguments[2].properties, (propDecl) => { + const id = getNameOfDeclaration(propDecl); + if (!!id && isIdentifier(id) && idText(id) === "set") { + return propDecl; + } + }); + } + }); + Debug.assert(!!setter); + const paramSymbol = isFunctionLikeDeclaration(setter) ? getSignatureFromDeclaration(setter).parameters[0] : void 0; + result.push(setTextRange2( + context, + factory.createSetAccessorDeclaration( + factory.createModifiersFromModifierFlags(flag), + name, + [factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + paramSymbol ? parameterToParameterDeclarationName(paramSymbol, getEffectiveParameterDeclaration(paramSymbol), context) : "value", + /*questionToken*/ + void 0, + isPrivate ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getWriteTypeOfSymbol(p), + p + ) + )], + /*body*/ + void 0 + ), + ((_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor)) || firstPropertyLikeDecl + )); + } + if (p.flags & 32768 /* GetAccessor */) { + const isPrivate2 = modifierFlags & 2 /* Private */; + result.push(setTextRange2( + context, + factory.createGetAccessorDeclaration( + factory.createModifiersFromModifierFlags(flag), + name, + [], + isPrivate2 ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getTypeOfSymbol(p), + p + ), + /*body*/ + void 0 + ), + ((_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor)) || firstPropertyLikeDecl + )); + } + return result; + } else if (p.flags & (4 /* Property */ | 3 /* Variable */ | 98304 /* Accessor */)) { + return setTextRange2( + context, + createProperty2( + factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 8 /* Readonly */ : 0) | flag), + name, + p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, + isPrivate ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getWriteTypeOfSymbol(p), + p + ), + // TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357 + // interface members can't have initializers, however class members _can_ + /*initializer*/ + void 0 + ), + ((_d = p.declarations) == null ? void 0 : _d.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl + ); + } + if (p.flags & (8192 /* Method */ | 16 /* Function */)) { + const type = getTypeOfSymbol(p); + const signatures = getSignaturesOfType(type, 0 /* Call */); + if (flag & 2 /* Private */) { + return setTextRange2( + context, + createProperty2( + factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 8 /* Readonly */ : 0) | flag), + name, + p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ), + ((_e = p.declarations) == null ? void 0 : _e.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0] + ); + } + const results2 = []; + for (const sig of signatures) { + const decl = signatureToSignatureDeclarationHelper( + sig, + methodKind, + context, + { + name, + questionToken: p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, + modifiers: flag ? factory.createModifiersFromModifierFlags(flag) : void 0 + } + ); + const location = sig.declaration && isPrototypePropertyAssignment(sig.declaration.parent) ? sig.declaration.parent : sig.declaration; + results2.push(setTextRange2(context, decl, location)); + } + return results2; + } + return Debug.fail(`Unhandled class member kind! ${p.__debugFlags || p.flags}`); + }; + } + function serializePropertySymbolForInterface(p, baseType) { + return serializePropertySymbolForInterfaceWorker( + p, + /*isStatic*/ + false, + baseType + ); + } + function serializeSignatures(kind, input, baseType, outputKind) { + const signatures = getSignaturesOfType(input, kind); + if (kind === 1 /* Construct */) { + if (!baseType && every(signatures, (s) => length(s.parameters) === 0)) { + return []; + } + if (baseType) { + const baseSigs = getSignaturesOfType(baseType, 1 /* Construct */); + if (!length(baseSigs) && every(signatures, (s) => length(s.parameters) === 0)) { + return []; + } + if (baseSigs.length === signatures.length) { + let failed = false; + for (let i = 0; i < baseSigs.length; i++) { + if (!compareSignaturesIdentical( + signatures[i], + baseSigs[i], + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + true, + compareTypesIdentical + )) { + failed = true; + break; + } + } + if (!failed) { + return []; + } + } + } + let privateProtected = 0; + for (const s of signatures) { + if (s.declaration) { + privateProtected |= getSelectedEffectiveModifierFlags(s.declaration, 2 /* Private */ | 4 /* Protected */); + } + } + if (privateProtected) { + return [setTextRange2( + context, + factory.createConstructorDeclaration( + factory.createModifiersFromModifierFlags(privateProtected), + /*parameters*/ + [], + /*body*/ + void 0 + ), + signatures[0].declaration + )]; + } + } + const results2 = []; + for (const sig of signatures) { + const decl = signatureToSignatureDeclarationHelper(sig, outputKind, context); + results2.push(setTextRange2(context, decl, sig.declaration)); + } + return results2; + } + function serializeIndexSignatures(input, baseType) { + const results2 = []; + for (const info of getIndexInfosOfType(input)) { + if (baseType) { + const baseInfo = getIndexInfoOfType(baseType, info.keyType); + if (baseInfo) { + if (isTypeIdenticalTo(info.type, baseInfo.type)) { + continue; + } + } + } + results2.push(indexInfoToIndexSignatureDeclarationHelper( + info, + context, + /*typeNode*/ + void 0 + )); + } + return results2; + } + function serializeBaseType(t, staticType, rootName) { + const ref = trySerializeAsTypeReference(t, 111551 /* Value */); + if (ref) { + return ref; + } + const tempName = getUnusedName(`${rootName}_base`); + const statement = factory.createVariableStatement( + /*modifiers*/ + void 0, + factory.createVariableDeclarationList([ + factory.createVariableDeclaration( + tempName, + /*exclamationToken*/ + void 0, + typeToTypeNodeHelper(staticType, context) + ) + ], 2 /* Const */) + ); + addResult(statement, 0 /* None */); + return factory.createExpressionWithTypeArguments( + factory.createIdentifier(tempName), + /*typeArguments*/ + void 0 + ); + } + function trySerializeAsTypeReference(t, flags) { + let typeArgs; + let reference; + if (t.target && isSymbolAccessibleByFlags(t.target.symbol, enclosingDeclaration, flags)) { + typeArgs = map(getTypeArguments(t), (t2) => typeToTypeNodeHelper(t2, context)); + reference = symbolToExpression(t.target.symbol, context, 788968 /* Type */); + } else if (t.symbol && isSymbolAccessibleByFlags(t.symbol, enclosingDeclaration, flags)) { + reference = symbolToExpression(t.symbol, context, 788968 /* Type */); + } + if (reference) { + return factory.createExpressionWithTypeArguments(reference, typeArgs); + } + } + function serializeImplementedType(t) { + const ref = trySerializeAsTypeReference(t, 788968 /* Type */); + if (ref) { + return ref; + } + if (t.symbol) { + return factory.createExpressionWithTypeArguments( + symbolToExpression(t.symbol, context, 788968 /* Type */), + /*typeArguments*/ + void 0 + ); + } + } + function getUnusedName(input, symbol) { + var _a2, _b; + const id = symbol ? getSymbolId(symbol) : void 0; + if (id) { + if (context.remappedSymbolNames.has(id)) { + return context.remappedSymbolNames.get(id); + } + } + if (symbol) { + input = getNameCandidateWorker(symbol, input); + } + let i = 0; + const original = input; + while ((_a2 = context.usedSymbolNames) == null ? void 0 : _a2.has(input)) { + i++; + input = `${original}_${i}`; + } + (_b = context.usedSymbolNames) == null ? void 0 : _b.add(input); + if (id) { + context.remappedSymbolNames.set(id, input); + } + return input; + } + function getNameCandidateWorker(symbol, localName) { + if (localName === "default" /* Default */ || localName === "__class" /* Class */ || localName === "__function" /* Function */) { + const flags = context.flags; + context.flags |= 16777216 /* InInitialEntityName */; + const nameCandidate = getNameOfSymbolAsWritten(symbol, context); + context.flags = flags; + localName = nameCandidate.length > 0 && isSingleOrDoubleQuote(nameCandidate.charCodeAt(0)) ? stripQuotes(nameCandidate) : nameCandidate; + } + if (localName === "default" /* Default */) { + localName = "_default"; + } else if (localName === "export=" /* ExportEquals */) { + localName = "_exports"; + } + localName = isIdentifierText(localName, languageVersion) && !isStringANonContextualKeyword(localName) ? localName : "_" + localName.replace(/[^a-zA-Z0-9]/g, "_"); + return localName; + } + function getInternalSymbolName(symbol, localName) { + const id = getSymbolId(symbol); + if (context.remappedSymbolNames.has(id)) { + return context.remappedSymbolNames.get(id); + } + localName = getNameCandidateWorker(symbol, localName); + context.remappedSymbolNames.set(id, localName); + return localName; + } + } + } + function typePredicateToString(typePredicate, enclosingDeclaration, flags = 16384 /* UseAliasDefinedOutsideCurrentScope */, writer) { + return writer ? typePredicateToStringWorker(writer).getText() : usingSingleLineStringWriter(typePredicateToStringWorker); + function typePredicateToStringWorker(writer2) { + const nodeBuilderFlags = toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */; + const predicate = nodeBuilder.typePredicateToTypePredicateNode(typePredicate, enclosingDeclaration, nodeBuilderFlags); + const printer = createPrinterWithRemoveComments(); + const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); + printer.writeNode( + 4 /* Unspecified */, + predicate, + /*sourceFile*/ + sourceFile, + writer2 + ); + return writer2; + } + } + function formatUnionTypes(types) { + const result = []; + let flags = 0; + for (let i = 0; i < types.length; i++) { + const t = types[i]; + flags |= t.flags; + if (!(t.flags & 98304 /* Nullable */)) { + if (t.flags & (512 /* BooleanLiteral */ | 1056 /* EnumLike */)) { + const baseType = t.flags & 512 /* BooleanLiteral */ ? booleanType : getBaseTypeOfEnumLikeType(t); + if (baseType.flags & 1048576 /* Union */) { + const count = baseType.types.length; + if (i + count <= types.length && getRegularTypeOfLiteralType(types[i + count - 1]) === getRegularTypeOfLiteralType(baseType.types[count - 1])) { + result.push(baseType); + i += count - 1; + continue; + } + } + } + result.push(t); + } + } + if (flags & 65536 /* Null */) result.push(nullType); + if (flags & 32768 /* Undefined */) result.push(undefinedType); + return result || types; + } + function visibilityToString(flags) { + if (flags === 2 /* Private */) { + return "private"; + } + if (flags === 4 /* Protected */) { + return "protected"; + } + return "public"; + } + function getTypeAliasForTypeLiteral(type) { + if (type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && type.symbol.declarations) { + const node = walkUpParenthesizedTypes(type.symbol.declarations[0].parent); + if (isTypeAliasDeclaration(node)) { + return getSymbolOfDeclaration(node); + } + } + return void 0; + } + function isTopLevelInExternalModuleAugmentation(node) { + return node && node.parent && node.parent.kind === 268 /* ModuleBlock */ && isExternalModuleAugmentation(node.parent.parent); + } + function isDefaultBindingContext(location) { + return location.kind === 307 /* SourceFile */ || isAmbientModule(location); + } + function getNameOfSymbolFromNameType(symbol, context) { + const nameType = getSymbolLinks(symbol).nameType; + if (nameType) { + if (nameType.flags & 384 /* StringOrNumberLiteral */) { + const name = "" + nameType.value; + if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions)) && !isNumericLiteralName(name)) { + return `"${escapeString(name, 34 /* doubleQuote */)}"`; + } + if (isNumericLiteralName(name) && startsWith(name, "-")) { + return `[${name}]`; + } + return name; + } + if (nameType.flags & 8192 /* UniqueESSymbol */) { + return `[${getNameOfSymbolAsWritten(nameType.symbol, context)}]`; + } + } + } + function getNameOfSymbolAsWritten(symbol, context) { + var _a; + if ((_a = context == null ? void 0 : context.remappedSymbolReferences) == null ? void 0 : _a.has(getSymbolId(symbol))) { + symbol = context.remappedSymbolReferences.get(getSymbolId(symbol)); + } + if (context && symbol.escapedName === "default" /* Default */ && !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */) && // If it's not the first part of an entity name, it must print as `default` + (!(context.flags & 16777216 /* InInitialEntityName */) || // if the symbol is synthesized, it will only be referenced externally it must print as `default` + !symbol.declarations || // if not in the same binding context (source file, module declaration), it must print as `default` + context.enclosingDeclaration && findAncestor(symbol.declarations[0], isDefaultBindingContext) !== findAncestor(context.enclosingDeclaration, isDefaultBindingContext))) { + return "default"; + } + if (symbol.declarations && symbol.declarations.length) { + let declaration = firstDefined(symbol.declarations, (d) => getNameOfDeclaration(d) ? d : void 0); + const name2 = declaration && getNameOfDeclaration(declaration); + if (declaration && name2) { + if (isCallExpression(declaration) && isBindableObjectDefinePropertyCall(declaration)) { + return symbolName(symbol); + } + if (isComputedPropertyName(name2) && !(getCheckFlags(symbol) & 4096 /* Late */)) { + const nameType = getSymbolLinks(symbol).nameType; + if (nameType && nameType.flags & 384 /* StringOrNumberLiteral */) { + const result = getNameOfSymbolFromNameType(symbol, context); + if (result !== void 0) { + return result; + } + } + } + return declarationNameToString(name2); + } + if (!declaration) { + declaration = symbol.declarations[0]; + } + if (declaration.parent && declaration.parent.kind === 260 /* VariableDeclaration */) { + return declarationNameToString(declaration.parent.name); + } + switch (declaration.kind) { + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) { + context.encounteredError = true; + } + return declaration.kind === 231 /* ClassExpression */ ? "(Anonymous class)" : "(Anonymous function)"; + } + } + const name = getNameOfSymbolFromNameType(symbol, context); + return name !== void 0 ? name : symbolName(symbol); + } + function isDeclarationVisible(node) { + if (node) { + const links = getNodeLinks(node); + if (links.isVisible === void 0) { + links.isVisible = !!determineIfDeclarationIsVisible(); + } + return links.isVisible; + } + return false; + function determineIfDeclarationIsVisible() { + switch (node.kind) { + case 338 /* JSDocCallbackTag */: + case 346 /* JSDocTypedefTag */: + case 340 /* JSDocEnumTag */: + return !!(node.parent && node.parent.parent && node.parent.parent.parent && isSourceFile(node.parent.parent.parent)); + case 208 /* BindingElement */: + return isDeclarationVisible(node.parent.parent); + case 260 /* VariableDeclaration */: + if (isBindingPattern(node.name) && !node.name.elements.length) { + return false; + } + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 262 /* FunctionDeclaration */: + case 266 /* EnumDeclaration */: + case 271 /* ImportEqualsDeclaration */: + if (isExternalModuleAugmentation(node)) { + return true; + } + const parent = getDeclarationContainer(node); + if (!(getCombinedModifierFlagsCached(node) & 32 /* Export */) && !(node.kind !== 271 /* ImportEqualsDeclaration */ && parent.kind !== 307 /* SourceFile */ && parent.flags & 33554432 /* Ambient */)) { + return isGlobalSourceFile(parent); + } + return isDeclarationVisible(parent); + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + if (hasEffectiveModifier(node, 2 /* Private */ | 4 /* Protected */)) { + return false; + } + case 176 /* Constructor */: + case 180 /* ConstructSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 169 /* Parameter */: + case 268 /* ModuleBlock */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 183 /* TypeReference */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + return isDeclarationVisible(node.parent); + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + return false; + case 168 /* TypeParameter */: + case 307 /* SourceFile */: + case 270 /* NamespaceExportDeclaration */: + return true; + case 277 /* ExportAssignment */: + return false; + default: + return false; + } + } + } + function collectLinkedAliases(node, setVisibility) { + let exportSymbol; + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { + exportSymbol = resolveName( + node, + node, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + } else if (node.parent.kind === 281 /* ExportSpecifier */) { + exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); + } + let result; + let visited; + if (exportSymbol) { + visited = /* @__PURE__ */ new Set(); + visited.add(getSymbolId(exportSymbol)); + buildVisibleNodeList(exportSymbol.declarations); + } + return result; + function buildVisibleNodeList(declarations) { + forEach(declarations, (declaration) => { + const resultNode = getAnyImportSyntax(declaration) || declaration; + if (setVisibility) { + getNodeLinks(declaration).isVisible = true; + } else { + result = result || []; + pushIfUnique(result, resultNode); + } + if (isInternalModuleImportEqualsDeclaration(declaration)) { + const internalModuleReference = declaration.moduleReference; + const firstIdentifier = getFirstIdentifier(internalModuleReference); + const importSymbol = resolveName( + declaration, + firstIdentifier.escapedText, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + if (importSymbol && visited) { + if (tryAddToSet(visited, getSymbolId(importSymbol))) { + buildVisibleNodeList(importSymbol.declarations); + } + } + } + }); + } + } + function pushTypeResolution(target, propertyName) { + const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName); + if (resolutionCycleStartIndex >= 0) { + const { length: length2 } = resolutionTargets; + for (let i = resolutionCycleStartIndex; i < length2; i++) { + resolutionResults[i] = false; + } + return false; + } + resolutionTargets.push(target); + resolutionResults.push( + /*items*/ + true + ); + resolutionPropertyNames.push(propertyName); + return true; + } + function findResolutionCycleStartIndex(target, propertyName) { + for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) { + if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) { + return -1; + } + if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) { + return i; + } + } + return -1; + } + function resolutionTargetHasProperty(target, propertyName) { + switch (propertyName) { + case 0 /* Type */: + return !!getSymbolLinks(target).type; + case 2 /* DeclaredType */: + return !!getSymbolLinks(target).declaredType; + case 1 /* ResolvedBaseConstructorType */: + return !!target.resolvedBaseConstructorType; + case 3 /* ResolvedReturnType */: + return !!target.resolvedReturnType; + case 4 /* ImmediateBaseConstraint */: + return !!target.immediateBaseConstraint; + case 5 /* ResolvedTypeArguments */: + return !!target.resolvedTypeArguments; + case 6 /* ResolvedBaseTypes */: + return !!target.baseTypesResolved; + case 7 /* WriteType */: + return !!getSymbolLinks(target).writeType; + case 8 /* ParameterInitializerContainsUndefined */: + return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0; + } + return Debug.assertNever(propertyName); + } + function popTypeResolution() { + resolutionTargets.pop(); + resolutionPropertyNames.pop(); + return resolutionResults.pop(); + } + function getDeclarationContainer(node) { + return findAncestor(getRootDeclaration(node), (node2) => { + switch (node2.kind) { + case 260 /* VariableDeclaration */: + case 261 /* VariableDeclarationList */: + case 276 /* ImportSpecifier */: + case 275 /* NamedImports */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: + return false; + default: + return true; + } + }).parent; + } + function getTypeOfPrototypeProperty(prototype) { + const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype)); + return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType; + } + function getTypeOfPropertyOfType(type, name) { + const prop = getPropertyOfType(type, name); + return prop ? getTypeOfSymbol(prop) : void 0; + } + function getTypeOfPropertyOrIndexSignatureOfType(type, name) { + var _a; + let propType; + return getTypeOfPropertyOfType(type, name) || (propType = (_a = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a.type) && addOptionality( + propType, + /*isProperty*/ + true, + /*isOptional*/ + true + ); + } + function isTypeAny(type) { + return type && (type.flags & 1 /* Any */) !== 0; + } + function isErrorType(type) { + return type === errorType || !!(type.flags & 1 /* Any */ && type.aliasSymbol); + } + function getTypeForBindingElementParent(node, checkMode) { + if (checkMode !== 0 /* Normal */) { + return getTypeForVariableLikeDeclaration( + node, + /*includeOptionality*/ + false, + checkMode + ); + } + const symbol = getSymbolOfDeclaration(node); + return symbol && getSymbolLinks(symbol).type || getTypeForVariableLikeDeclaration( + node, + /*includeOptionality*/ + false, + checkMode + ); + } + function getRestType(source, properties, symbol) { + source = filterType(source, (t) => !(t.flags & 98304 /* Nullable */)); + if (source.flags & 131072 /* Never */) { + return emptyObjectType; + } + if (source.flags & 1048576 /* Union */) { + return mapType(source, (t) => getRestType(t, properties, symbol)); + } + let omitKeyType = getUnionType(map(properties, getLiteralTypeFromPropertyName)); + const spreadableProperties = []; + const unspreadableToRestKeys = []; + for (const prop of getPropertiesOfType(source)) { + const literalTypeFromProperty = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */); + if (!isTypeAssignableTo(literalTypeFromProperty, omitKeyType) && !(getDeclarationModifierFlagsFromSymbol(prop) & (2 /* Private */ | 4 /* Protected */)) && isSpreadableProperty(prop)) { + spreadableProperties.push(prop); + } else { + unspreadableToRestKeys.push(literalTypeFromProperty); + } + } + if (isGenericObjectType(source) || isGenericIndexType(omitKeyType)) { + if (unspreadableToRestKeys.length) { + omitKeyType = getUnionType([omitKeyType, ...unspreadableToRestKeys]); + } + if (omitKeyType.flags & 131072 /* Never */) { + return source; + } + const omitTypeAlias = getGlobalOmitSymbol(); + if (!omitTypeAlias) { + return errorType; + } + return getTypeAliasInstantiation(omitTypeAlias, [source, omitKeyType]); + } + const members = createSymbolTable(); + for (const prop of spreadableProperties) { + members.set(prop.escapedName, getSpreadSymbol( + prop, + /*readonly*/ + false + )); + } + const result = createAnonymousType(symbol, members, emptyArray, emptyArray, getIndexInfosOfType(source)); + result.objectFlags |= 4194304 /* ObjectRestType */; + return result; + } + function isGenericTypeWithUndefinedConstraint(type) { + return !!(type.flags & 465829888 /* Instantiable */) && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 32768 /* Undefined */); + } + function getNonUndefinedType(type) { + const typeOrConstraint = someType(type, isGenericTypeWithUndefinedConstraint) ? mapType(type, (t) => t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOrType(t) : t) : type; + return getTypeWithFacts(typeOrConstraint, 524288 /* NEUndefined */); + } + function getFlowTypeOfDestructuring(node, declaredType) { + const reference = getSyntheticElementAccess(node); + return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType; + } + function getSyntheticElementAccess(node) { + const parentAccess = getParentElementAccess(node); + if (parentAccess && canHaveFlowNode(parentAccess) && parentAccess.flowNode) { + const propName = getDestructuringPropertyName(node); + if (propName) { + const literal = setTextRange(parseNodeFactory.createStringLiteral(propName), node); + const lhsExpr = isLeftHandSideExpression(parentAccess) ? parentAccess : parseNodeFactory.createParenthesizedExpression(parentAccess); + const result = setTextRange(parseNodeFactory.createElementAccessExpression(lhsExpr, literal), node); + setParent(literal, result); + setParent(result, node); + if (lhsExpr !== parentAccess) { + setParent(lhsExpr, result); + } + result.flowNode = parentAccess.flowNode; + return result; + } + } + } + function getParentElementAccess(node) { + const ancestor = node.parent.parent; + switch (ancestor.kind) { + case 208 /* BindingElement */: + case 303 /* PropertyAssignment */: + return getSyntheticElementAccess(ancestor); + case 209 /* ArrayLiteralExpression */: + return getSyntheticElementAccess(node.parent); + case 260 /* VariableDeclaration */: + return ancestor.initializer; + case 226 /* BinaryExpression */: + return ancestor.right; + } + } + function getDestructuringPropertyName(node) { + const parent = node.parent; + if (node.kind === 208 /* BindingElement */ && parent.kind === 206 /* ObjectBindingPattern */) { + return getLiteralPropertyNameText(node.propertyName || node.name); + } + if (node.kind === 303 /* PropertyAssignment */ || node.kind === 304 /* ShorthandPropertyAssignment */) { + return getLiteralPropertyNameText(node.name); + } + return "" + parent.elements.indexOf(node); + } + function getLiteralPropertyNameText(name) { + const type = getLiteralTypeFromPropertyName(name); + return type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */) ? "" + type.value : void 0; + } + function getTypeForBindingElement(declaration) { + const checkMode = declaration.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */; + const parentType = getTypeForBindingElementParent(declaration.parent.parent, checkMode); + return parentType && getBindingElementTypeFromParentType( + declaration, + parentType, + /*noTupleBoundsCheck*/ + false + ); + } + function getBindingElementTypeFromParentType(declaration, parentType, noTupleBoundsCheck) { + if (isTypeAny(parentType)) { + return parentType; + } + const pattern = declaration.parent; + if (strictNullChecks && declaration.flags & 33554432 /* Ambient */ && isPartOfParameterDeclaration(declaration)) { + parentType = getNonNullableType(parentType); + } else if (strictNullChecks && pattern.parent.initializer && !hasTypeFacts(getTypeOfInitializer(pattern.parent.initializer), 65536 /* EQUndefined */)) { + parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); + } + let type; + if (pattern.kind === 206 /* ObjectBindingPattern */) { + if (declaration.dotDotDotToken) { + parentType = getReducedType(parentType); + if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) { + error(declaration, Diagnostics.Rest_types_may_only_be_created_from_object_types); + return errorType; + } + const literalMembers = []; + for (const element of pattern.elements) { + if (!element.dotDotDotToken) { + literalMembers.push(element.propertyName || element.name); + } + } + type = getRestType(parentType, literalMembers, declaration.symbol); + } else { + const name = declaration.propertyName || declaration.name; + const indexType = getLiteralTypeFromPropertyName(name); + const declaredType = getIndexedAccessType(parentType, indexType, 32 /* ExpressionPosition */, name); + type = getFlowTypeOfDestructuring(declaration, declaredType); + } + } else { + const elementType = checkIteratedTypeOrElementType(65 /* Destructuring */ | (declaration.dotDotDotToken ? 0 : 128 /* PossiblyOutOfBounds */), parentType, undefinedType, pattern); + const index = pattern.elements.indexOf(declaration); + if (declaration.dotDotDotToken) { + const baseConstraint = mapType(parentType, (t) => t.flags & 58982400 /* InstantiableNonPrimitive */ ? getBaseConstraintOrType(t) : t); + type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType); + } else if (isArrayLikeType(parentType)) { + const indexType = getNumberLiteralType(index); + const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0); + const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType; + type = getFlowTypeOfDestructuring(declaration, declaredType); + } else { + type = elementType; + } + } + if (!declaration.initializer) { + return type; + } + if (getEffectiveTypeAnnotationNode(walkUpBindingElementsAndPatterns(declaration))) { + return strictNullChecks && !hasTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */), 16777216 /* IsUndefined */) ? getNonUndefinedType(type) : type; + } + return widenTypeInferredFromInitializer(declaration, getUnionType([getNonUndefinedType(type), checkDeclarationInitializer(declaration, 0 /* Normal */)], 2 /* Subtype */)); + } + function getTypeForDeclarationFromJSDocComment(declaration) { + const jsdocType = getJSDocType(declaration); + if (jsdocType) { + return getTypeFromTypeNode(jsdocType); + } + return void 0; + } + function isNullOrUndefined2(node) { + const expr = skipParentheses( + node, + /*excludeJSDocTypeAssertions*/ + true + ); + return expr.kind === 106 /* NullKeyword */ || expr.kind === 80 /* Identifier */ && getResolvedSymbol(expr) === undefinedSymbol; + } + function isEmptyArrayLiteral2(node) { + const expr = skipParentheses( + node, + /*excludeJSDocTypeAssertions*/ + true + ); + return expr.kind === 209 /* ArrayLiteralExpression */ && expr.elements.length === 0; + } + function addOptionality(type, isProperty = false, isOptional = true) { + return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type; + } + function getTypeForVariableLikeDeclaration(declaration, includeOptionality, checkMode) { + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 249 /* ForInStatement */) { + const indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression( + declaration.parent.parent.expression, + /*checkMode*/ + checkMode + ))); + return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType; + } + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { + const forOfStatement = declaration.parent.parent; + return checkRightHandSideOfForOf(forOfStatement) || anyType; + } + if (isBindingPattern(declaration.parent)) { + return getTypeForBindingElement(declaration); + } + const isProperty = isPropertyDeclaration(declaration) && !hasAccessorModifier(declaration) || isPropertySignature(declaration) || isJSDocPropertyTag(declaration); + const isOptional = includeOptionality && isOptionalDeclaration(declaration); + const declaredType = tryGetTypeFromEffectiveTypeNode(declaration); + if (isCatchClauseVariableDeclarationOrBindingElement(declaration)) { + if (declaredType) { + return isTypeAny(declaredType) || declaredType === unknownType ? declaredType : errorType; + } + return useUnknownInCatchVariables ? unknownType : anyType; + } + if (declaredType) { + return addOptionality(declaredType, isProperty, isOptional); + } + if ((noImplicitAny || isInJSFile(declaration)) && isVariableDeclaration(declaration) && !isBindingPattern(declaration.name) && !(getCombinedModifierFlagsCached(declaration) & 32 /* Export */) && !(declaration.flags & 33554432 /* Ambient */)) { + if (!(getCombinedNodeFlagsCached(declaration) & 6 /* Constant */) && (!declaration.initializer || isNullOrUndefined2(declaration.initializer))) { + return autoType; + } + if (declaration.initializer && isEmptyArrayLiteral2(declaration.initializer)) { + return autoArrayType; + } + } + if (isParameter(declaration)) { + if (!declaration.symbol) { + return; + } + const func = declaration.parent; + if (func.kind === 178 /* SetAccessor */ && hasBindableName(func)) { + const getter = getDeclarationOfKind(getSymbolOfDeclaration(declaration.parent), 177 /* GetAccessor */); + if (getter) { + const getterSignature = getSignatureFromDeclaration(getter); + const thisParameter = getAccessorThisParameter(func); + if (thisParameter && declaration === thisParameter) { + Debug.assert(!thisParameter.type); + return getTypeOfSymbol(getterSignature.thisParameter); + } + return getReturnTypeOfSignature(getterSignature); + } + } + const parameterTypeOfTypeTag = getParameterTypeOfTypeTag(func, declaration); + if (parameterTypeOfTypeTag) return parameterTypeOfTypeTag; + const type = declaration.symbol.escapedName === "this" /* This */ ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration); + if (type) { + return addOptionality( + type, + /*isProperty*/ + false, + isOptional + ); + } + } + if (hasOnlyExpressionInitializer(declaration) && !!declaration.initializer) { + if (isInJSFile(declaration) && !isParameter(declaration)) { + const containerObjectType = getJSContainerObjectType(declaration, getSymbolOfDeclaration(declaration), getDeclaredExpandoInitializer(declaration)); + if (containerObjectType) { + return containerObjectType; + } + } + const type = widenTypeInferredFromInitializer(declaration, checkDeclarationInitializer(declaration, checkMode)); + return addOptionality(type, isProperty, isOptional); + } + if (isPropertyDeclaration(declaration) && (noImplicitAny || isInJSFile(declaration))) { + if (!hasStaticModifier(declaration)) { + const constructor = findConstructorDeclaration(declaration.parent); + const type = constructor ? getFlowTypeInConstructor(declaration.symbol, constructor) : getEffectiveModifierFlags(declaration) & 128 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0; + return type && addOptionality( + type, + /*isProperty*/ + true, + isOptional + ); + } else { + const staticBlocks = filter(declaration.parent.members, isClassStaticBlockDeclaration); + const type = staticBlocks.length ? getFlowTypeInStaticBlocks(declaration.symbol, staticBlocks) : getEffectiveModifierFlags(declaration) & 128 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0; + return type && addOptionality( + type, + /*isProperty*/ + true, + isOptional + ); + } + } + if (isJsxAttribute(declaration)) { + return trueType; + } + if (isBindingPattern(declaration.name)) { + return getTypeFromBindingPattern( + declaration.name, + /*includePatternInType*/ + false, + /*reportErrors*/ + true + ); + } + return void 0; + } + function isConstructorDeclaredProperty(symbol) { + if (symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration)) { + const links = getSymbolLinks(symbol); + if (links.isConstructorDeclaredProperty === void 0) { + links.isConstructorDeclaredProperty = false; + links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && every(symbol.declarations, (declaration) => isBinaryExpression(declaration) && isPossiblyAliasedThisProperty(declaration) && (declaration.left.kind !== 212 /* ElementAccessExpression */ || isStringOrNumericLiteralLike(declaration.left.argumentExpression)) && !getAnnotatedTypeForAssignmentDeclaration( + /*declaredType*/ + void 0, + declaration, + symbol, + declaration + )); + } + return links.isConstructorDeclaredProperty; + } + return false; + } + function isAutoTypedProperty(symbol) { + const declaration = symbol.valueDeclaration; + return declaration && isPropertyDeclaration(declaration) && !getEffectiveTypeAnnotationNode(declaration) && !declaration.initializer && (noImplicitAny || isInJSFile(declaration)); + } + function getDeclaringConstructor(symbol) { + if (!symbol.declarations) { + return; + } + for (const declaration of symbol.declarations) { + const container = getThisContainer( + declaration, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + if (container && (container.kind === 176 /* Constructor */ || isJSConstructor(container))) { + return container; + } + } + } + function getFlowTypeFromCommonJSExport(symbol) { + const file = getSourceFileOfNode(symbol.declarations[0]); + const accessName = unescapeLeadingUnderscores(symbol.escapedName); + const areAllModuleExports = symbol.declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && isModuleExportsAccessExpression(d.expression)); + const reference = areAllModuleExports ? factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("module"), factory.createIdentifier("exports")), accessName) : factory.createPropertyAccessExpression(factory.createIdentifier("exports"), accessName); + if (areAllModuleExports) { + setParent(reference.expression.expression, reference.expression); + } + setParent(reference.expression, reference); + setParent(reference, file); + reference.flowNode = file.endFlowNode; + return getFlowTypeOfReference(reference, autoType, undefinedType); + } + function getFlowTypeInStaticBlocks(symbol, staticBlocks) { + const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName); + for (const staticBlock of staticBlocks) { + const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName); + setParent(reference.expression, reference); + setParent(reference, staticBlock); + reference.flowNode = staticBlock.returnFlowNode; + const flowType = getFlowTypeOfProperty(reference, symbol); + if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { + error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + } + if (everyType(flowType, isNullableType)) { + continue; + } + return convertAutoToAny(flowType); + } + } + function getFlowTypeInConstructor(symbol, constructor) { + const accessName = startsWith(symbol.escapedName, "__#") ? factory.createPrivateIdentifier(symbol.escapedName.split("@")[1]) : unescapeLeadingUnderscores(symbol.escapedName); + const reference = factory.createPropertyAccessExpression(factory.createThis(), accessName); + setParent(reference.expression, reference); + setParent(reference, constructor); + reference.flowNode = constructor.returnFlowNode; + const flowType = getFlowTypeOfProperty(reference, symbol); + if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) { + error(symbol.valueDeclaration, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + } + return everyType(flowType, isNullableType) ? void 0 : convertAutoToAny(flowType); + } + function getFlowTypeOfProperty(reference, prop) { + const initialType = (prop == null ? void 0 : prop.valueDeclaration) && (!isAutoTypedProperty(prop) || getEffectiveModifierFlags(prop.valueDeclaration) & 128 /* Ambient */) && getTypeOfPropertyInBaseClass(prop) || undefinedType; + return getFlowTypeOfReference(reference, autoType, initialType); + } + function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) { + const container = getAssignedExpandoInitializer(symbol.valueDeclaration); + if (container) { + const tag = isInJSFile(container) ? getJSDocTypeTag(container) : void 0; + if (tag && tag.typeExpression) { + return getTypeFromTypeNode(tag.typeExpression); + } + const containerObjectType = symbol.valueDeclaration && getJSContainerObjectType(symbol.valueDeclaration, symbol, container); + return containerObjectType || getWidenedLiteralType(checkExpressionCached(container)); + } + let type; + let definedInConstructor = false; + let definedInMethod = false; + if (isConstructorDeclaredProperty(symbol)) { + type = getFlowTypeInConstructor(symbol, getDeclaringConstructor(symbol)); + } + if (!type) { + let types; + if (symbol.declarations) { + let jsdocType; + for (const declaration of symbol.declarations) { + const expression = isBinaryExpression(declaration) || isCallExpression(declaration) ? declaration : isAccessExpression(declaration) ? isBinaryExpression(declaration.parent) ? declaration.parent : declaration : void 0; + if (!expression) { + continue; + } + const kind = isAccessExpression(expression) ? getAssignmentDeclarationPropertyAccessKind(expression) : getAssignmentDeclarationKind(expression); + if (kind === 4 /* ThisProperty */ || isBinaryExpression(expression) && isPossiblyAliasedThisProperty(expression, kind)) { + if (isDeclarationInConstructor(expression)) { + definedInConstructor = true; + } else { + definedInMethod = true; + } + } + if (!isCallExpression(expression)) { + jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration); + } + if (!jsdocType) { + (types || (types = [])).push(isBinaryExpression(expression) || isCallExpression(expression) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType); + } + } + type = jsdocType; + } + if (!type) { + if (!length(types)) { + return errorType; + } + let constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : void 0; + if (definedInMethod) { + const propType = getTypeOfPropertyInBaseClass(symbol); + if (propType) { + (constructorTypes || (constructorTypes = [])).push(propType); + definedInConstructor = true; + } + } + const sourceTypes = some(constructorTypes, (t) => !!(t.flags & ~98304 /* Nullable */)) ? constructorTypes : types; + type = getUnionType(sourceTypes); + } + } + const widened = getWidenedType(addOptionality( + type, + /*isProperty*/ + false, + definedInMethod && !definedInConstructor + )); + if (symbol.valueDeclaration && isInJSFile(symbol.valueDeclaration) && filterType(widened, (t) => !!(t.flags & ~98304 /* Nullable */)) === neverType) { + reportImplicitAny(symbol.valueDeclaration, anyType); + return anyType; + } + return widened; + } + function getJSContainerObjectType(decl, symbol, init) { + var _a, _b; + if (!isInJSFile(decl) || !init || !isObjectLiteralExpression(init) || init.properties.length) { + return void 0; + } + const exports2 = createSymbolTable(); + while (isBinaryExpression(decl) || isPropertyAccessExpression(decl)) { + const s2 = getSymbolOfNode(decl); + if ((_a = s2 == null ? void 0 : s2.exports) == null ? void 0 : _a.size) { + mergeSymbolTable(exports2, s2.exports); + } + decl = isBinaryExpression(decl) ? decl.parent : decl.parent.parent; + } + const s = getSymbolOfNode(decl); + if ((_b = s == null ? void 0 : s.exports) == null ? void 0 : _b.size) { + mergeSymbolTable(exports2, s.exports); + } + const type = createAnonymousType(symbol, exports2, emptyArray, emptyArray, emptyArray); + type.objectFlags |= 4096 /* JSLiteral */; + return type; + } + function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) { + var _a; + const typeNode = getEffectiveTypeAnnotationNode(expression.parent); + if (typeNode) { + const type = getWidenedType(getTypeFromTypeNode(typeNode)); + if (!declaredType) { + return type; + } else if (!isErrorType(declaredType) && !isErrorType(type) && !isTypeIdenticalTo(declaredType, type)) { + errorNextVariableOrPropertyDeclarationMustHaveSameType( + /*firstDeclaration*/ + void 0, + declaredType, + declaration, + type + ); + } + } + if ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) { + const possiblyAnnotatedSymbol = getFunctionExpressionParentSymbolOrSymbol(symbol.parent); + if (possiblyAnnotatedSymbol.valueDeclaration) { + const typeNode2 = getEffectiveTypeAnnotationNode(possiblyAnnotatedSymbol.valueDeclaration); + if (typeNode2) { + const annotationSymbol = getPropertyOfType(getTypeFromTypeNode(typeNode2), symbol.escapedName); + if (annotationSymbol) { + return getNonMissingTypeOfSymbol(annotationSymbol); + } + } + } + } + return declaredType; + } + function getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) { + if (isCallExpression(expression)) { + if (resolvedSymbol) { + return getTypeOfSymbol(resolvedSymbol); + } + const objectLitType = checkExpressionCached(expression.arguments[2]); + const valueType = getTypeOfPropertyOfType(objectLitType, "value"); + if (valueType) { + return valueType; + } + const getFunc = getTypeOfPropertyOfType(objectLitType, "get"); + if (getFunc) { + const getSig = getSingleCallSignature(getFunc); + if (getSig) { + return getReturnTypeOfSignature(getSig); + } + } + const setFunc = getTypeOfPropertyOfType(objectLitType, "set"); + if (setFunc) { + const setSig = getSingleCallSignature(setFunc); + if (setSig) { + return getTypeOfFirstParameterOfSignature(setSig); + } + } + return anyType; + } + if (containsSameNamedThisProperty(expression.left, expression.right)) { + return anyType; + } + const isDirectExport = kind === 1 /* ExportsProperty */ && (isPropertyAccessExpression(expression.left) || isElementAccessExpression(expression.left)) && (isModuleExportsAccessExpression(expression.left.expression) || isIdentifier(expression.left.expression) && isExportsIdentifier(expression.left.expression)); + const type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol) : isDirectExport ? getRegularTypeOfLiteralType(checkExpressionCached(expression.right)) : getWidenedLiteralType(checkExpressionCached(expression.right)); + if (type.flags & 524288 /* Object */ && kind === 2 /* ModuleExports */ && symbol.escapedName === "export=" /* ExportEquals */) { + const exportedType = resolveStructuredTypeMembers(type); + const members = createSymbolTable(); + copyEntries(exportedType.members, members); + const initialSize = members.size; + if (resolvedSymbol && !resolvedSymbol.exports) { + resolvedSymbol.exports = createSymbolTable(); + } + (resolvedSymbol || symbol).exports.forEach((s, name) => { + var _a; + const exportedMember = members.get(name); + if (exportedMember && exportedMember !== s && !(s.flags & 2097152 /* Alias */)) { + if (s.flags & 111551 /* Value */ && exportedMember.flags & 111551 /* Value */) { + if (s.valueDeclaration && exportedMember.valueDeclaration && getSourceFileOfNode(s.valueDeclaration) !== getSourceFileOfNode(exportedMember.valueDeclaration)) { + const unescapedName = unescapeLeadingUnderscores(s.escapedName); + const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration; + addRelatedInfo( + error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName), + createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName) + ); + addRelatedInfo( + error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName), + createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName) + ); + } + const union = createSymbol(s.flags | exportedMember.flags, name); + union.links.type = getUnionType([getTypeOfSymbol(s), getTypeOfSymbol(exportedMember)]); + union.valueDeclaration = exportedMember.valueDeclaration; + union.declarations = concatenate(exportedMember.declarations, s.declarations); + members.set(name, union); + } else { + members.set(name, mergeSymbol(s, exportedMember)); + } + } else { + members.set(name, s); + } + }); + const result = createAnonymousType( + initialSize !== members.size ? void 0 : exportedType.symbol, + // Only set the type's symbol if it looks to be the same as the original type + members, + exportedType.callSignatures, + exportedType.constructSignatures, + exportedType.indexInfos + ); + if (initialSize === members.size) { + if (type.aliasSymbol) { + result.aliasSymbol = type.aliasSymbol; + result.aliasTypeArguments = type.aliasTypeArguments; + } + if (getObjectFlags(type) & 4 /* Reference */) { + result.aliasSymbol = type.symbol; + const args = getTypeArguments(type); + result.aliasTypeArguments = length(args) ? args : void 0; + } + } + result.objectFlags |= getPropagatingFlagsOfTypes([type]) | getObjectFlags(type) & (4096 /* JSLiteral */ | 16384 /* ArrayLiteral */ | 128 /* ObjectLiteral */); + if (result.symbol && result.symbol.flags & 32 /* Class */ && type === getDeclaredTypeOfClassOrInterface(result.symbol)) { + result.objectFlags |= 16777216 /* IsClassInstanceClone */; + } + return result; + } + if (isEmptyArrayLiteralType(type)) { + reportImplicitAny(expression, anyArrayType); + return anyArrayType; + } + return type; + } + function containsSameNamedThisProperty(thisProperty, expression) { + return isPropertyAccessExpression(thisProperty) && thisProperty.expression.kind === 110 /* ThisKeyword */ && forEachChildRecursively(expression, (n) => isMatchingReference(thisProperty, n)); + } + function isDeclarationInConstructor(expression) { + const thisContainer = getThisContainer( + expression, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + return thisContainer.kind === 176 /* Constructor */ || thisContainer.kind === 262 /* FunctionDeclaration */ || thisContainer.kind === 218 /* FunctionExpression */ && !isPrototypePropertyAssignment(thisContainer.parent); + } + function getConstructorDefinedThisAssignmentTypes(types, declarations) { + Debug.assert(types.length === declarations.length); + return types.filter((_, i) => { + const declaration = declarations[i]; + const expression = isBinaryExpression(declaration) ? declaration : isBinaryExpression(declaration.parent) ? declaration.parent : void 0; + return expression && isDeclarationInConstructor(expression); + }); + } + function getTypeFromBindingElement(element, includePatternInType, reportErrors2) { + if (element.initializer) { + const contextualType = isBindingPattern(element.name) ? getTypeFromBindingPattern( + element.name, + /*includePatternInType*/ + true, + /*reportErrors*/ + false + ) : unknownType; + return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType))); + } + if (isBindingPattern(element.name)) { + return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2); + } + if (reportErrors2 && !declarationBelongsToPrivateAmbientMember(element)) { + reportImplicitAny(element, anyType); + } + return includePatternInType ? nonInferrableAnyType : anyType; + } + function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) { + const members = createSymbolTable(); + let stringIndexInfo; + let objectFlags = 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + forEach(pattern.elements, (e) => { + const name = e.propertyName || e.name; + if (e.dotDotDotToken) { + stringIndexInfo = createIndexInfo( + stringType, + anyType, + /*isReadonly*/ + false + ); + return; + } + const exprType = getLiteralTypeFromPropertyName(name); + if (!isTypeUsableAsPropertyName(exprType)) { + objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */; + return; + } + const text = getPropertyNameFromType(exprType); + const flags = 4 /* Property */ | (e.initializer ? 16777216 /* Optional */ : 0); + const symbol = createSymbol(flags, text); + symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors2); + symbol.links.bindingElement = e; + members.set(symbol.escapedName, symbol); + }); + const result = createAnonymousType( + /*symbol*/ + void 0, + members, + emptyArray, + emptyArray, + stringIndexInfo ? [stringIndexInfo] : emptyArray + ); + result.objectFlags |= objectFlags; + if (includePatternInType) { + result.pattern = pattern; + result.objectFlags |= 131072 /* ContainsObjectOrArrayLiteral */; + } + return result; + } + function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2) { + const elements = pattern.elements; + const lastElement = lastOrUndefined(elements); + const restElement = lastElement && lastElement.kind === 208 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : void 0; + if (elements.length === 0 || elements.length === 1 && restElement) { + return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType; + } + const elementTypes = map(elements, (e) => isOmittedExpression(e) ? anyType : getTypeFromBindingElement(e, includePatternInType, reportErrors2)); + const minLength = findLastIndex(elements, (e) => !(e === restElement || isOmittedExpression(e) || hasDefaultValue(e)), elements.length - 1) + 1; + const elementFlags = map(elements, (e, i) => e === restElement ? 4 /* Rest */ : i >= minLength ? 2 /* Optional */ : 1 /* Required */); + let result = createTupleType(elementTypes, elementFlags); + if (includePatternInType) { + result = cloneTypeReference(result); + result.pattern = pattern; + result.objectFlags |= 131072 /* ContainsObjectOrArrayLiteral */; + } + return result; + } + function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); + } + function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { + return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( + declaration, + /*includeOptionality*/ + true, + 0 /* Normal */ + ), declaration, reportErrors2); + } + function getTypeFromImportAttributes(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const symbol = createSymbol(4096 /* ObjectLiteral */, "__importAttributes" /* ImportAttributes */); + const members = createSymbolTable(); + forEach(node.elements, (attr) => { + const member = createSymbol(4 /* Property */, getNameFromImportAttribute(attr)); + member.parent = symbol; + member.links.type = checkImportAttribute(attr); + member.links.target = member; + members.set(member.escapedName, member); + }); + const type = createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); + type.objectFlags |= 128 /* ObjectLiteral */ | 262144 /* NonInferrableType */; + links.resolvedType = type; + } + return links.resolvedType; + } + function isGlobalSymbolConstructor(node) { + const symbol = getSymbolOfNode(node); + const globalSymbol = getGlobalESSymbolConstructorTypeSymbol( + /*reportErrors*/ + false + ); + return globalSymbol && symbol && symbol === globalSymbol; + } + function widenTypeForVariableLikeDeclaration(type, declaration, reportErrors2) { + if (type) { + if (type.flags & 4096 /* ESSymbol */ && isGlobalSymbolConstructor(declaration.parent)) { + type = getESSymbolLikeTypeForNode(declaration); + } + if (reportErrors2) { + reportErrorsFromWidening(declaration, type); + } + if (type.flags & 8192 /* UniqueESSymbol */ && (isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfDeclaration(declaration)) { + type = esSymbolType; + } + return getWidenedType(type); + } + type = isParameter(declaration) && declaration.dotDotDotToken ? anyArrayType : anyType; + if (reportErrors2) { + if (!declarationBelongsToPrivateAmbientMember(declaration)) { + reportImplicitAny(declaration, type); + } + } + return type; + } + function declarationBelongsToPrivateAmbientMember(declaration) { + const root = getRootDeclaration(declaration); + const memberDeclaration = root.kind === 169 /* Parameter */ ? root.parent : root; + return isPrivateWithinAmbient(memberDeclaration); + } + function tryGetTypeFromEffectiveTypeNode(node) { + const typeNode = getEffectiveTypeAnnotationNode(node); + if (typeNode) { + return getTypeFromTypeNode(typeNode); + } + } + function isParameterOfContextSensitiveSignature(symbol) { + let decl = symbol.valueDeclaration; + if (!decl) { + return false; + } + if (isBindingElement(decl)) { + decl = walkUpBindingElementsAndPatterns(decl); + } + if (isParameter(decl)) { + return isContextSensitiveFunctionOrObjectLiteralMethod(decl.parent); + } + return false; + } + function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) { + const links = getSymbolLinks(symbol); + if (!links.type) { + const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode); + if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) { + links.type = type; + } + return type; + } + return links.type; + } + function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) { + if (symbol.flags & 4194304 /* Prototype */) { + return getTypeOfPrototypeProperty(symbol); + } + if (symbol === requireSymbol) { + return anyType; + } + if (symbol.flags & 134217728 /* ModuleExports */ && symbol.valueDeclaration) { + const fileSymbol = getSymbolOfDeclaration(getSourceFileOfNode(symbol.valueDeclaration)); + const result = createSymbol(fileSymbol.flags, "exports"); + result.declarations = fileSymbol.declarations ? fileSymbol.declarations.slice() : []; + result.parent = symbol; + result.links.target = fileSymbol; + if (fileSymbol.valueDeclaration) result.valueDeclaration = fileSymbol.valueDeclaration; + if (fileSymbol.members) result.members = new Map(fileSymbol.members); + if (fileSymbol.exports) result.exports = new Map(fileSymbol.exports); + const members = createSymbolTable(); + members.set("exports", result); + return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); + } + Debug.assertIsDefined(symbol.valueDeclaration); + const declaration = symbol.valueDeclaration; + if (isSourceFile(declaration) && isJsonSourceFile(declaration)) { + if (!declaration.statements.length) { + return emptyObjectType; + } + return getWidenedType(getWidenedLiteralType(checkExpression(declaration.statements[0].expression))); + } + if (isAccessor(declaration)) { + return getTypeOfAccessors(symbol); + } + if (!pushTypeResolution(symbol, 0 /* Type */)) { + if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { + return getTypeOfFuncClassEnumModule(symbol); + } + if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) { + return errorType; + } + return reportCircularityError(symbol); + } + let type; + if (declaration.kind === 277 /* ExportAssignment */) { + type = widenTypeForVariableLikeDeclaration(tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionCached(declaration.expression), declaration); + } else if (isBinaryExpression(declaration) || isInJSFile(declaration) && (isCallExpression(declaration) || (isPropertyAccessExpression(declaration) || isBindableStaticElementAccessExpression(declaration)) && isBinaryExpression(declaration.parent))) { + type = getWidenedTypeForAssignmentDeclaration(symbol); + } else if (isPropertyAccessExpression(declaration) || isElementAccessExpression(declaration) || isIdentifier(declaration) || isStringLiteralLike(declaration) || isNumericLiteral(declaration) || isClassDeclaration(declaration) || isFunctionDeclaration(declaration) || isMethodDeclaration(declaration) && !isObjectLiteralMethod(declaration) || isMethodSignature(declaration) || isSourceFile(declaration)) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { + return getTypeOfFuncClassEnumModule(symbol); + } + type = isBinaryExpression(declaration.parent) ? getWidenedTypeForAssignmentDeclaration(symbol) : tryGetTypeFromEffectiveTypeNode(declaration) || anyType; + } else if (isPropertyAssignment(declaration)) { + type = tryGetTypeFromEffectiveTypeNode(declaration) || checkPropertyAssignment(declaration); + } else if (isJsxAttribute(declaration)) { + type = tryGetTypeFromEffectiveTypeNode(declaration) || checkJsxAttribute(declaration); + } else if (isShorthandPropertyAssignment(declaration)) { + type = tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionForMutableLocation(declaration.name, 0 /* Normal */); + } else if (isObjectLiteralMethod(declaration)) { + type = tryGetTypeFromEffectiveTypeNode(declaration) || checkObjectLiteralMethod(declaration, 0 /* Normal */); + } else if (isParameter(declaration) || isPropertyDeclaration(declaration) || isPropertySignature(declaration) || isVariableDeclaration(declaration) || isBindingElement(declaration) || isJSDocPropertyLikeTag(declaration)) { + type = getWidenedTypeForVariableLikeDeclaration( + declaration, + /*reportErrors*/ + true + ); + } else if (isEnumDeclaration(declaration)) { + type = getTypeOfFuncClassEnumModule(symbol); + } else if (isEnumMember(declaration)) { + type = getTypeOfEnumMember(symbol); + } else { + return Debug.fail("Unhandled declaration kind! " + Debug.formatSyntaxKind(declaration.kind) + " for " + Debug.formatSymbol(symbol)); + } + if (!popTypeResolution()) { + if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { + return getTypeOfFuncClassEnumModule(symbol); + } + if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) { + return type; + } + return reportCircularityError(symbol); + } + return type; + } + function getAnnotatedAccessorTypeNode(accessor) { + if (accessor) { + switch (accessor.kind) { + case 177 /* GetAccessor */: + const getterTypeAnnotation = getEffectiveReturnTypeNode(accessor); + return getterTypeAnnotation; + case 178 /* SetAccessor */: + const setterTypeAnnotation = getEffectiveSetAccessorTypeAnnotationNode(accessor); + return setterTypeAnnotation; + case 172 /* PropertyDeclaration */: + Debug.assert(hasAccessorModifier(accessor)); + const accessorTypeAnnotation = getEffectiveTypeAnnotationNode(accessor); + return accessorTypeAnnotation; + } + } + return void 0; + } + function getAnnotatedAccessorType(accessor) { + const node = getAnnotatedAccessorTypeNode(accessor); + return node && getTypeFromTypeNode(node); + } + function getAnnotatedAccessorThisParameter(accessor) { + const parameter = getAccessorThisParameter(accessor); + return parameter && parameter.symbol; + } + function getThisTypeOfDeclaration(declaration) { + return getThisTypeOfSignature(getSignatureFromDeclaration(declaration)); + } + function getTypeOfAccessors(symbol) { + const links = getSymbolLinks(symbol); + if (!links.type) { + if (!pushTypeResolution(symbol, 0 /* Type */)) { + return errorType; + } + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( + accessor, + /*reportErrors*/ + true + ); + if (!type) { + if (setter && !isPrivateWithinAmbient(setter)) { + errorOrSuggestion(noImplicitAny, setter, Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol)); + } else if (getter && !isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } else if (accessor && !isPrivateWithinAmbient(accessor)) { + errorOrSuggestion(noImplicitAny, accessor, Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), "any"); + } + type = anyType; + } + if (!popTypeResolution()) { + if (getAnnotatedAccessorTypeNode(getter)) { + error(getter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + } else if (getAnnotatedAccessorTypeNode(setter)) { + error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + } else if (getAnnotatedAccessorTypeNode(accessor)) { + error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + } else if (getter && noImplicitAny) { + error(getter, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol)); + } + type = anyType; + } + links.type ?? (links.type = type); + } + return links.type; + } + function getWriteTypeOfAccessors(symbol) { + const links = getSymbolLinks(symbol); + if (!links.writeType) { + if (!pushTypeResolution(symbol, 7 /* WriteType */)) { + return errorType; + } + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */) ?? tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); + let writeType = getAnnotatedAccessorType(setter); + if (!popTypeResolution()) { + if (getAnnotatedAccessorTypeNode(setter)) { + error(setter, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + } + writeType = anyType; + } + links.writeType ?? (links.writeType = writeType || getTypeOfAccessors(symbol)); + } + return links.writeType; + } + function getBaseTypeVariableOfClass(symbol) { + const baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol)); + return baseConstructorType.flags & 8650752 /* TypeVariable */ ? baseConstructorType : baseConstructorType.flags & 2097152 /* Intersection */ ? find(baseConstructorType.types, (t) => !!(t.flags & 8650752 /* TypeVariable */)) : void 0; + } + function getTypeOfFuncClassEnumModule(symbol) { + let links = getSymbolLinks(symbol); + const originalLinks = links; + if (!links.type) { + const expando = symbol.valueDeclaration && getSymbolOfExpando( + symbol.valueDeclaration, + /*allowDeclaration*/ + false + ); + if (expando) { + const merged = mergeJSSymbols(symbol, expando); + if (merged) { + symbol = merged; + links = merged.links; + } + } + originalLinks.type = links.type = getTypeOfFuncClassEnumModuleWorker(symbol); + } + return links.type; + } + function getTypeOfFuncClassEnumModuleWorker(symbol) { + const declaration = symbol.valueDeclaration; + if (symbol.flags & 1536 /* Module */ && isShorthandAmbientModuleSymbol(symbol)) { + return anyType; + } else if (declaration && (declaration.kind === 226 /* BinaryExpression */ || isAccessExpression(declaration) && declaration.parent.kind === 226 /* BinaryExpression */)) { + return getWidenedTypeForAssignmentDeclaration(symbol); + } else if (symbol.flags & 512 /* ValueModule */ && declaration && isSourceFile(declaration) && declaration.commonJsModuleIndicator) { + const resolvedModule = resolveExternalModuleSymbol(symbol); + if (resolvedModule !== symbol) { + if (!pushTypeResolution(symbol, 0 /* Type */)) { + return errorType; + } + const exportEquals = getMergedSymbol(symbol.exports.get("export=" /* ExportEquals */)); + const type2 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? void 0 : resolvedModule); + if (!popTypeResolution()) { + return reportCircularityError(symbol); + } + return type2; + } + } + const type = createObjectType(16 /* Anonymous */, symbol); + if (symbol.flags & 32 /* Class */) { + const baseTypeVariable = getBaseTypeVariableOfClass(symbol); + return baseTypeVariable ? getIntersectionType([type, baseTypeVariable]) : type; + } else { + return strictNullChecks && symbol.flags & 16777216 /* Optional */ ? getOptionalType( + type, + /*isProperty*/ + true + ) : type; + } + } + function getTypeOfEnumMember(symbol) { + const links = getSymbolLinks(symbol); + return links.type || (links.type = getDeclaredTypeOfEnumMember(symbol)); + } + function getTypeOfAlias(symbol) { + const links = getSymbolLinks(symbol); + if (!links.type) { + if (!pushTypeResolution(symbol, 0 /* Type */)) { + return errorType; + } + const targetSymbol = resolveAlias(symbol); + const exportSymbol = symbol.declarations && getTargetOfAliasDeclaration( + getDeclarationOfAliasSymbol(symbol), + /*dontRecursivelyResolve*/ + true + ); + const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0); + links.type ?? (links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType); + if (!popTypeResolution()) { + reportCircularityError(exportSymbol ?? symbol); + return links.type ?? (links.type = errorType); + } + } + return links.type; + } + function getTypeOfInstantiatedSymbol(symbol) { + const links = getSymbolLinks(symbol); + return links.type || (links.type = instantiateType(getTypeOfSymbol(links.target), links.mapper)); + } + function getWriteTypeOfInstantiatedSymbol(symbol) { + const links = getSymbolLinks(symbol); + return links.writeType || (links.writeType = instantiateType(getWriteTypeOfSymbol(links.target), links.mapper)); + } + function reportCircularityError(symbol) { + const declaration = symbol.valueDeclaration; + if (declaration) { + if (getEffectiveTypeAnnotationNode(declaration)) { + error(symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol)); + return errorType; + } + if (noImplicitAny && (declaration.kind !== 169 /* Parameter */ || declaration.initializer)) { + error(symbol.valueDeclaration, Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol)); + } + } else if (symbol.flags & 2097152 /* Alias */) { + const node = getDeclarationOfAliasSymbol(symbol); + if (node) { + error(node, Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol)); + } + } + return anyType; + } + function getTypeOfSymbolWithDeferredType(symbol) { + const links = getSymbolLinks(symbol); + if (!links.type) { + Debug.assertIsDefined(links.deferralParent); + Debug.assertIsDefined(links.deferralConstituents); + links.type = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralConstituents) : getIntersectionType(links.deferralConstituents); + } + return links.type; + } + function getWriteTypeOfSymbolWithDeferredType(symbol) { + const links = getSymbolLinks(symbol); + if (!links.writeType && links.deferralWriteConstituents) { + Debug.assertIsDefined(links.deferralParent); + Debug.assertIsDefined(links.deferralConstituents); + links.writeType = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralWriteConstituents) : getIntersectionType(links.deferralWriteConstituents); + } + return links.writeType; + } + function getWriteTypeOfSymbol(symbol) { + const checkFlags = getCheckFlags(symbol); + if (symbol.flags & 4 /* Property */) { + return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : ( + // NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty + symbol.links.writeType || symbol.links.type + ) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */)); + } + if (symbol.flags & 98304 /* Accessor */) { + return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol); + } + return getTypeOfSymbol(symbol); + } + function getTypeOfSymbol(symbol, checkMode) { + const checkFlags = getCheckFlags(symbol); + if (checkFlags & 65536 /* DeferredType */) { + return getTypeOfSymbolWithDeferredType(symbol); + } + if (checkFlags & 1 /* Instantiated */) { + return getTypeOfInstantiatedSymbol(symbol); + } + if (checkFlags & 262144 /* Mapped */) { + return getTypeOfMappedSymbol(symbol); + } + if (checkFlags & 8192 /* ReverseMapped */) { + return getTypeOfReverseMappedSymbol(symbol); + } + if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { + return getTypeOfVariableOrParameterOrProperty(symbol, checkMode); + } + if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { + return getTypeOfFuncClassEnumModule(symbol); + } + if (symbol.flags & 8 /* EnumMember */) { + return getTypeOfEnumMember(symbol); + } + if (symbol.flags & 98304 /* Accessor */) { + return getTypeOfAccessors(symbol); + } + if (symbol.flags & 2097152 /* Alias */) { + return getTypeOfAlias(symbol); + } + return errorType; + } + function getNonMissingTypeOfSymbol(symbol) { + return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */)); + } + function isReferenceToType(type, target) { + return type !== void 0 && target !== void 0 && (getObjectFlags(type) & 4 /* Reference */) !== 0 && type.target === target; + } + function getTargetType(type) { + return getObjectFlags(type) & 4 /* Reference */ ? type.target : type; + } + function hasBaseType(type, checkBase) { + return check(type); + function check(type2) { + if (getObjectFlags(type2) & (3 /* ClassOrInterface */ | 4 /* Reference */)) { + const target = getTargetType(type2); + return target === checkBase || some(getBaseTypes(target), check); + } else if (type2.flags & 2097152 /* Intersection */) { + return some(type2.types, check); + } + return false; + } + } + function appendTypeParameters(typeParameters, declarations) { + for (const declaration of declarations) { + typeParameters = appendIfUnique(typeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(declaration))); + } + return typeParameters; + } + function getOuterTypeParameters(node, includeThisTypes) { + while (true) { + node = node.parent; + if (node && isBinaryExpression(node)) { + const assignmentKind = getAssignmentDeclarationKind(node); + if (assignmentKind === 6 /* Prototype */ || assignmentKind === 3 /* PrototypeProperty */) { + const symbol = getSymbolOfDeclaration(node.left); + if (symbol && symbol.parent && !findAncestor(symbol.parent.valueDeclaration, (d) => node === d)) { + node = symbol.parent.valueDeclaration; + } + } + } + if (!node) { + return void 0; + } + switch (node.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 317 /* JSDocFunctionType */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 265 /* TypeAliasDeclaration */: + case 345 /* JSDocTemplateTag */: + case 346 /* JSDocTypedefTag */: + case 340 /* JSDocEnumTag */: + case 338 /* JSDocCallbackTag */: + case 200 /* MappedType */: + case 194 /* ConditionalType */: { + const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); + if (node.kind === 200 /* MappedType */) { + return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); + } else if (node.kind === 194 /* ConditionalType */) { + return concatenate(outerTypeParameters, getInferTypeParameters(node)); + } + const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; + } + case 341 /* JSDocParameterTag */: + const paramSymbol = getParameterSymbolFromJSDoc(node); + if (paramSymbol) { + node = paramSymbol.valueDeclaration; + } + break; + case 320 /* JSDoc */: { + const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); + return node.tags ? appendTypeParameters(outerTypeParameters, flatMap(node.tags, (t) => isJSDocTemplateTag(t) ? t.typeParameters : void 0)) : outerTypeParameters; + } + } + } + } + function getOuterTypeParametersOfClassOrInterface(symbol) { + var _a; + const declaration = symbol.flags & 32 /* Class */ || symbol.flags & 16 /* Function */ ? symbol.valueDeclaration : (_a = symbol.declarations) == null ? void 0 : _a.find((decl) => { + if (decl.kind === 264 /* InterfaceDeclaration */) { + return true; + } + if (decl.kind !== 260 /* VariableDeclaration */) { + return false; + } + const initializer = decl.initializer; + return !!initializer && (initializer.kind === 218 /* FunctionExpression */ || initializer.kind === 219 /* ArrowFunction */); + }); + Debug.assert(!!declaration, "Class was missing valueDeclaration -OR- non-class had no interface declarations"); + return getOuterTypeParameters(declaration); + } + function getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) { + if (!symbol.declarations) { + return; + } + let result; + for (const node of symbol.declarations) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || isJSConstructor(node) || isTypeAlias(node)) { + const declaration = node; + result = appendTypeParameters(result, getEffectiveTypeParameterDeclarations(declaration)); + } + } + return result; + } + function getTypeParametersOfClassOrInterface(symbol) { + return concatenate(getOuterTypeParametersOfClassOrInterface(symbol), getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol)); + } + function isMixinConstructorType(type) { + const signatures = getSignaturesOfType(type, 1 /* Construct */); + if (signatures.length === 1) { + const s = signatures[0]; + if (!s.typeParameters && s.parameters.length === 1 && signatureHasRestParameter(s)) { + const paramType = getTypeOfParameter(s.parameters[0]); + return isTypeAny(paramType) || getElementTypeOfArrayType(paramType) === anyType; + } + } + return false; + } + function isConstructorType(type) { + if (getSignaturesOfType(type, 1 /* Construct */).length > 0) { + return true; + } + if (type.flags & 8650752 /* TypeVariable */) { + const constraint = getBaseConstraintOfType(type); + return !!constraint && isMixinConstructorType(constraint); + } + return false; + } + function getBaseTypeNodeOfClass(type) { + const decl = getClassLikeDeclarationOfSymbol(type.symbol); + return decl && getEffectiveBaseTypeNode(decl); + } + function getConstructorsForTypeArguments(type, typeArgumentNodes, location) { + const typeArgCount = length(typeArgumentNodes); + const isJavascript = isInJSFile(location); + return filter(getSignaturesOfType(type, 1 /* Construct */), (sig) => (isJavascript || typeArgCount >= getMinTypeArgumentCount(sig.typeParameters)) && typeArgCount <= length(sig.typeParameters)); + } + function getInstantiatedConstructorsForTypeArguments(type, typeArgumentNodes, location) { + const signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location); + const typeArguments = map(typeArgumentNodes, getTypeFromTypeNode); + return sameMap(signatures, (sig) => some(sig.typeParameters) ? getSignatureInstantiation(sig, typeArguments, isInJSFile(location)) : sig); + } + function getBaseConstructorTypeOfClass(type) { + if (!type.resolvedBaseConstructorType) { + const decl = getClassLikeDeclarationOfSymbol(type.symbol); + const extended = decl && getEffectiveBaseTypeNode(decl); + const baseTypeNode = getBaseTypeNodeOfClass(type); + if (!baseTypeNode) { + return type.resolvedBaseConstructorType = undefinedType; + } + if (!pushTypeResolution(type, 1 /* ResolvedBaseConstructorType */)) { + return errorType; + } + const baseConstructorType = checkExpression(baseTypeNode.expression); + if (extended && baseTypeNode !== extended) { + Debug.assert(!extended.typeArguments); + checkExpression(extended.expression); + } + if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { + resolveStructuredTypeMembers(baseConstructorType); + } + if (!popTypeResolution()) { + error(type.symbol.valueDeclaration, Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol)); + return type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = errorType); + } + if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) { + const err = error(baseTypeNode.expression, Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType)); + if (baseConstructorType.flags & 262144 /* TypeParameter */) { + const constraint = getConstraintFromTypeParameter(baseConstructorType); + let ctorReturn = unknownType; + if (constraint) { + const ctorSig = getSignaturesOfType(constraint, 1 /* Construct */); + if (ctorSig[0]) { + ctorReturn = getReturnTypeOfSignature(ctorSig[0]); + } + } + if (baseConstructorType.symbol.declarations) { + addRelatedInfo(err, createDiagnosticForNode(baseConstructorType.symbol.declarations[0], Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn))); + } + } + return type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = errorType); + } + type.resolvedBaseConstructorType ?? (type.resolvedBaseConstructorType = baseConstructorType); + } + return type.resolvedBaseConstructorType; + } + function getImplementsTypes(type) { + let resolvedImplementsTypes = emptyArray; + if (type.symbol.declarations) { + for (const declaration of type.symbol.declarations) { + const implementsTypeNodes = getEffectiveImplementsTypeNodes(declaration); + if (!implementsTypeNodes) continue; + for (const node of implementsTypeNodes) { + const implementsType = getTypeFromTypeNode(node); + if (!isErrorType(implementsType)) { + if (resolvedImplementsTypes === emptyArray) { + resolvedImplementsTypes = [implementsType]; + } else { + resolvedImplementsTypes.push(implementsType); + } + } + } + } + } + return resolvedImplementsTypes; + } + function reportCircularBaseType(node, type) { + error(node, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 2 /* WriteArrayAsGenericType */ + )); + } + function getBaseTypes(type) { + if (!type.baseTypesResolved) { + if (pushTypeResolution(type, 6 /* ResolvedBaseTypes */)) { + if (type.objectFlags & 8 /* Tuple */) { + type.resolvedBaseTypes = [getTupleBaseType(type)]; + } else if (type.symbol.flags & (32 /* Class */ | 64 /* Interface */)) { + if (type.symbol.flags & 32 /* Class */) { + resolveBaseTypesOfClass(type); + } + if (type.symbol.flags & 64 /* Interface */) { + resolveBaseTypesOfInterface(type); + } + } else { + Debug.fail("type must be class or interface"); + } + if (!popTypeResolution() && type.symbol.declarations) { + for (const declaration of type.symbol.declarations) { + if (declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 264 /* InterfaceDeclaration */) { + reportCircularBaseType(declaration, type); + } + } + } + } + type.baseTypesResolved = true; + } + return type.resolvedBaseTypes; + } + function getTupleBaseType(type) { + const elementTypes = sameMap(type.typeParameters, (t, i) => type.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t); + return createArrayType(getUnionType(elementTypes || emptyArray), type.readonly); + } + function resolveBaseTypesOfClass(type) { + type.resolvedBaseTypes = resolvingEmptyArray; + const baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type)); + if (!(baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 1 /* Any */))) { + return type.resolvedBaseTypes = emptyArray; + } + const baseTypeNode = getBaseTypeNodeOfClass(type); + let baseType; + const originalBaseType = baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : void 0; + if (baseConstructorType.symbol && baseConstructorType.symbol.flags & 32 /* Class */ && areAllOuterTypeParametersApplied(originalBaseType)) { + baseType = getTypeFromClassOrInterfaceReference(baseTypeNode, baseConstructorType.symbol); + } else if (baseConstructorType.flags & 1 /* Any */) { + baseType = baseConstructorType; + } else { + const constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode); + if (!constructors.length) { + error(baseTypeNode.expression, Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments); + return type.resolvedBaseTypes = emptyArray; + } + baseType = getReturnTypeOfSignature(constructors[0]); + } + if (isErrorType(baseType)) { + return type.resolvedBaseTypes = emptyArray; + } + const reducedBaseType = getReducedType(baseType); + if (!isValidBaseType(reducedBaseType)) { + const elaboration = elaborateNeverIntersection( + /*errorInfo*/ + void 0, + baseType + ); + const diagnostic = chainDiagnosticMessages(elaboration, Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, typeToString(reducedBaseType)); + diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(baseTypeNode.expression), baseTypeNode.expression, diagnostic)); + return type.resolvedBaseTypes = emptyArray; + } + if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) { + error(type.symbol.valueDeclaration, Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 2 /* WriteArrayAsGenericType */ + )); + return type.resolvedBaseTypes = emptyArray; + } + if (type.resolvedBaseTypes === resolvingEmptyArray) { + type.members = void 0; + } + return type.resolvedBaseTypes = [reducedBaseType]; + } + function areAllOuterTypeParametersApplied(type) { + const outerTypeParameters = type.outerTypeParameters; + if (outerTypeParameters) { + const last2 = outerTypeParameters.length - 1; + const typeArguments = getTypeArguments(type); + return outerTypeParameters[last2].symbol !== typeArguments[last2].symbol; + } + return true; + } + function isValidBaseType(type) { + if (type.flags & 262144 /* TypeParameter */) { + const constraint = getBaseConstraintOfType(type); + if (constraint) { + return isValidBaseType(constraint); + } + } + return !!(type.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 1 /* Any */) && !isGenericMappedType(type) || type.flags & 2097152 /* Intersection */ && every(type.types, isValidBaseType)); + } + function resolveBaseTypesOfInterface(type) { + type.resolvedBaseTypes = type.resolvedBaseTypes || emptyArray; + if (type.symbol.declarations) { + for (const declaration of type.symbol.declarations) { + if (declaration.kind === 264 /* InterfaceDeclaration */ && getInterfaceBaseTypeNodes(declaration)) { + for (const node of getInterfaceBaseTypeNodes(declaration)) { + const baseType = getReducedType(getTypeFromTypeNode(node)); + if (!isErrorType(baseType)) { + if (isValidBaseType(baseType)) { + if (type !== baseType && !hasBaseType(baseType, type)) { + if (type.resolvedBaseTypes === emptyArray) { + type.resolvedBaseTypes = [baseType]; + } else { + type.resolvedBaseTypes.push(baseType); + } + } else { + reportCircularBaseType(declaration, type); + } + } else { + error(node, Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members); + } + } + } + } + } + } + } + function isThislessInterface(symbol) { + if (!symbol.declarations) { + return true; + } + for (const declaration of symbol.declarations) { + if (declaration.kind === 264 /* InterfaceDeclaration */) { + if (declaration.flags & 256 /* ContainsThis */) { + return false; + } + const baseTypeNodes = getInterfaceBaseTypeNodes(declaration); + if (baseTypeNodes) { + for (const node of baseTypeNodes) { + if (isEntityNameExpression(node.expression)) { + const baseSymbol = resolveEntityName( + node.expression, + 788968 /* Type */, + /*ignoreErrors*/ + true + ); + if (!baseSymbol || !(baseSymbol.flags & 64 /* Interface */) || getDeclaredTypeOfClassOrInterface(baseSymbol).thisType) { + return false; + } + } + } + } + } + } + return true; + } + function getDeclaredTypeOfClassOrInterface(symbol) { + let links = getSymbolLinks(symbol); + const originalLinks = links; + if (!links.declaredType) { + const kind = symbol.flags & 32 /* Class */ ? 1 /* Class */ : 2 /* Interface */; + const merged = mergeJSSymbols(symbol, symbol.valueDeclaration && getAssignedClassSymbol(symbol.valueDeclaration)); + if (merged) { + symbol = merged; + links = merged.links; + } + const type = originalLinks.declaredType = links.declaredType = createObjectType(kind, symbol); + const outerTypeParameters = getOuterTypeParametersOfClassOrInterface(symbol); + const localTypeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); + if (outerTypeParameters || localTypeParameters || kind === 1 /* Class */ || !isThislessInterface(symbol)) { + type.objectFlags |= 4 /* Reference */; + type.typeParameters = concatenate(outerTypeParameters, localTypeParameters); + type.outerTypeParameters = outerTypeParameters; + type.localTypeParameters = localTypeParameters; + type.instantiations = /* @__PURE__ */ new Map(); + type.instantiations.set(getTypeListId(type.typeParameters), type); + type.target = type; + type.resolvedTypeArguments = type.typeParameters; + type.thisType = createTypeParameter(symbol); + type.thisType.isThisType = true; + type.thisType.constraint = type; + } + } + return links.declaredType; + } + function getDeclaredTypeOfTypeAlias(symbol) { + var _a; + const links = getSymbolLinks(symbol); + if (!links.declaredType) { + if (!pushTypeResolution(symbol, 2 /* DeclaredType */)) { + return errorType; + } + const declaration = Debug.checkDefined((_a = symbol.declarations) == null ? void 0 : _a.find(isTypeAlias), "Type alias symbol with no valid declaration found"); + const typeNode = isJSDocTypeAlias(declaration) ? declaration.typeExpression : declaration.type; + let type = typeNode ? getTypeFromTypeNode(typeNode) : errorType; + if (popTypeResolution()) { + const typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol); + if (typeParameters) { + links.typeParameters = typeParameters; + links.instantiations = /* @__PURE__ */ new Map(); + links.instantiations.set(getTypeListId(typeParameters), type); + } + } else { + type = errorType; + if (declaration.kind === 340 /* JSDocEnumTag */) { + error(declaration.typeExpression.type, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + } else { + error(isNamedDeclaration(declaration) ? declaration.name || declaration : declaration, Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol)); + } + } + links.declaredType ?? (links.declaredType = type); + } + return links.declaredType; + } + function getBaseTypeOfEnumLikeType(type) { + return type.flags & 1056 /* EnumLike */ && type.symbol.flags & 8 /* EnumMember */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(type.symbol)) : type; + } + function getDeclaredTypeOfEnum(symbol) { + const links = getSymbolLinks(symbol); + if (!links.declaredType) { + const memberTypeList = []; + if (symbol.declarations) { + for (const declaration of symbol.declarations) { + if (declaration.kind === 266 /* EnumDeclaration */) { + for (const member of declaration.members) { + if (hasBindableName(member)) { + const memberSymbol = getSymbolOfDeclaration(member); + const value = getEnumMemberValue(member).value; + const memberType = getFreshTypeOfLiteralType( + value !== void 0 ? getEnumLiteralType(value, getSymbolId(symbol), memberSymbol) : createComputedEnumType(memberSymbol) + ); + getSymbolLinks(memberSymbol).declaredType = memberType; + memberTypeList.push(getRegularTypeOfLiteralType(memberType)); + } + } + } + } + } + const enumType = memberTypeList.length ? getUnionType( + memberTypeList, + 1 /* Literal */, + symbol, + /*aliasTypeArguments*/ + void 0 + ) : createComputedEnumType(symbol); + if (enumType.flags & 1048576 /* Union */) { + enumType.flags |= 1024 /* EnumLiteral */; + enumType.symbol = symbol; + } + links.declaredType = enumType; + } + return links.declaredType; + } + function createComputedEnumType(symbol) { + const regularType = createTypeWithSymbol(32 /* Enum */, symbol); + const freshType = createTypeWithSymbol(32 /* Enum */, symbol); + regularType.regularType = regularType; + regularType.freshType = freshType; + freshType.regularType = regularType; + freshType.freshType = freshType; + return regularType; + } + function getDeclaredTypeOfEnumMember(symbol) { + const links = getSymbolLinks(symbol); + if (!links.declaredType) { + const enumType = getDeclaredTypeOfEnum(getParentOfSymbol(symbol)); + if (!links.declaredType) { + links.declaredType = enumType; + } + } + return links.declaredType; + } + function getDeclaredTypeOfTypeParameter(symbol) { + const links = getSymbolLinks(symbol); + return links.declaredType || (links.declaredType = createTypeParameter(symbol)); + } + function getDeclaredTypeOfAlias(symbol) { + const links = getSymbolLinks(symbol); + return links.declaredType || (links.declaredType = getDeclaredTypeOfSymbol(resolveAlias(symbol))); + } + function getDeclaredTypeOfSymbol(symbol) { + return tryGetDeclaredTypeOfSymbol(symbol) || errorType; + } + function tryGetDeclaredTypeOfSymbol(symbol) { + if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) { + return getDeclaredTypeOfClassOrInterface(symbol); + } + if (symbol.flags & 524288 /* TypeAlias */) { + return getDeclaredTypeOfTypeAlias(symbol); + } + if (symbol.flags & 262144 /* TypeParameter */) { + return getDeclaredTypeOfTypeParameter(symbol); + } + if (symbol.flags & 384 /* Enum */) { + return getDeclaredTypeOfEnum(symbol); + } + if (symbol.flags & 8 /* EnumMember */) { + return getDeclaredTypeOfEnumMember(symbol); + } + if (symbol.flags & 2097152 /* Alias */) { + return getDeclaredTypeOfAlias(symbol); + } + return void 0; + } + function isThislessType(node) { + switch (node.kind) { + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 154 /* StringKeyword */: + case 150 /* NumberKeyword */: + case 163 /* BigIntKeyword */: + case 136 /* BooleanKeyword */: + case 155 /* SymbolKeyword */: + case 151 /* ObjectKeyword */: + case 116 /* VoidKeyword */: + case 157 /* UndefinedKeyword */: + case 146 /* NeverKeyword */: + case 201 /* LiteralType */: + return true; + case 188 /* ArrayType */: + return isThislessType(node.elementType); + case 183 /* TypeReference */: + return !node.typeArguments || node.typeArguments.every(isThislessType); + } + return false; + } + function isThislessTypeParameter(node) { + const constraint = getEffectiveConstraintOfTypeParameter(node); + return !constraint || isThislessType(constraint); + } + function isThislessVariableLikeDeclaration(node) { + const typeNode = getEffectiveTypeAnnotationNode(node); + return typeNode ? isThislessType(typeNode) : !hasInitializer(node); + } + function isThislessFunctionLikeDeclaration(node) { + const returnType = getEffectiveReturnTypeNode(node); + const typeParameters = getEffectiveTypeParameterDeclarations(node); + return (node.kind === 176 /* Constructor */ || !!returnType && isThislessType(returnType)) && node.parameters.every(isThislessVariableLikeDeclaration) && typeParameters.every(isThislessTypeParameter); + } + function isThisless(symbol) { + if (symbol.declarations && symbol.declarations.length === 1) { + const declaration = symbol.declarations[0]; + if (declaration) { + switch (declaration.kind) { + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return isThislessVariableLikeDeclaration(declaration); + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return isThislessFunctionLikeDeclaration(declaration); + } + } + } + return false; + } + function createInstantiatedSymbolTable(symbols, mapper, mappingThisOnly) { + const result = createSymbolTable(); + for (const symbol of symbols) { + result.set(symbol.escapedName, mappingThisOnly && isThisless(symbol) ? symbol : instantiateSymbol(symbol, mapper)); + } + return result; + } + function addInheritedMembers(symbols, baseSymbols) { + for (const base of baseSymbols) { + if (isStaticPrivateIdentifierProperty(base)) { + continue; + } + const derived = symbols.get(base.escapedName); + if (!derived || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration) && !isConstructorDeclaredProperty(derived) && !getContainingClassStaticBlock(derived.valueDeclaration)) { + symbols.set(base.escapedName, base); + symbols.set(base.escapedName, base); + } + } + } + function isStaticPrivateIdentifierProperty(s) { + return !!s.valueDeclaration && isPrivateIdentifierClassElementDeclaration(s.valueDeclaration) && isStatic(s.valueDeclaration); + } + function resolveDeclaredMembers(type) { + if (!type.declaredProperties) { + const symbol = type.symbol; + const members = getMembersOfSymbol(symbol); + type.declaredProperties = getNamedMembers(members); + type.declaredCallSignatures = emptyArray; + type.declaredConstructSignatures = emptyArray; + type.declaredIndexInfos = emptyArray; + type.declaredCallSignatures = getSignaturesOfSymbol(members.get("__call" /* Call */)); + type.declaredConstructSignatures = getSignaturesOfSymbol(members.get("__new" /* New */)); + type.declaredIndexInfos = getIndexInfosOfSymbol(symbol); + } + return type; + } + function isLateBindableName(node) { + if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { + return false; + } + const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression; + return isEntityNameExpression(expr) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr)); + } + function isLateBoundName(name) { + return name.charCodeAt(0) === 95 /* _ */ && name.charCodeAt(1) === 95 /* _ */ && name.charCodeAt(2) === 64 /* at */; + } + function hasLateBindableName(node) { + const name = getNameOfDeclaration(node); + return !!name && isLateBindableName(name); + } + function hasBindableName(node) { + return !hasDynamicName(node) || hasLateBindableName(node); + } + function isNonBindableDynamicName(node) { + return isDynamicName(node) && !isLateBindableName(node); + } + function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) { + Debug.assert(!!(getCheckFlags(symbol) & 4096 /* Late */), "Expected a late-bound symbol."); + symbol.flags |= symbolFlags; + getSymbolLinks(member.symbol).lateSymbol = symbol; + if (!symbol.declarations) { + symbol.declarations = [member]; + } else if (!member.symbol.isReplaceableByMethod) { + symbol.declarations.push(member); + } + if (symbolFlags & 111551 /* Value */) { + if (!symbol.valueDeclaration || symbol.valueDeclaration.kind !== member.kind) { + symbol.valueDeclaration = member; + } + } + } + function lateBindMember(parent, earlySymbols, lateSymbols, decl) { + Debug.assert(!!decl.symbol, "The member is expected to have a symbol."); + const links = getNodeLinks(decl); + if (!links.resolvedSymbol) { + links.resolvedSymbol = decl.symbol; + const declName = isBinaryExpression(decl) ? decl.left : decl.name; + const type = isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName); + if (isTypeUsableAsPropertyName(type)) { + const memberName = getPropertyNameFromType(type); + const symbolFlags = decl.symbol.flags; + let lateSymbol = lateSymbols.get(memberName); + if (!lateSymbol) lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */)); + const earlySymbol = earlySymbols && earlySymbols.get(memberName); + if (!(parent.flags & 32 /* Class */) && lateSymbol.flags & getExcludedSymbolFlags(symbolFlags)) { + const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations; + const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName); + forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name)); + error(declName || decl, Diagnostics.Duplicate_property_0, name); + lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */); + } + lateSymbol.links.nameType = type; + addDeclarationToLateBoundSymbol(lateSymbol, decl, symbolFlags); + if (lateSymbol.parent) { + Debug.assert(lateSymbol.parent === parent, "Existing symbol parent should match new one"); + } else { + lateSymbol.parent = parent; + } + return links.resolvedSymbol = lateSymbol; + } + } + return links.resolvedSymbol; + } + function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { + const links = getSymbolLinks(symbol); + if (!links[resolutionKind]) { + const isStatic2 = resolutionKind === "resolvedExports" /* resolvedExports */; + const earlySymbols = !isStatic2 ? symbol.members : symbol.flags & 1536 /* Module */ ? getExportsOfModuleWorker(symbol).exports : symbol.exports; + links[resolutionKind] = earlySymbols || emptySymbols; + const lateSymbols = createSymbolTable(); + for (const decl of symbol.declarations || emptyArray) { + const members = getMembersOfDeclaration(decl); + if (members) { + for (const member of members) { + if (isStatic2 === hasStaticModifier(member)) { + if (hasLateBindableName(member)) { + lateBindMember(symbol, earlySymbols, lateSymbols, member); + } + } + } + } + } + const assignments = getFunctionExpressionParentSymbolOrSymbol(symbol).assignmentDeclarationMembers; + if (assignments) { + const decls = arrayFrom(assignments.values()); + for (const member of decls) { + const assignmentKind = getAssignmentDeclarationKind(member); + const isInstanceMember = assignmentKind === 3 /* PrototypeProperty */ || isBinaryExpression(member) && isPossiblyAliasedThisProperty(member, assignmentKind) || assignmentKind === 9 /* ObjectDefinePrototypeProperty */ || assignmentKind === 6 /* Prototype */; + if (isStatic2 === !isInstanceMember) { + if (hasLateBindableName(member)) { + lateBindMember(symbol, earlySymbols, lateSymbols, member); + } + } + } + } + let resolved = combineSymbolTables(earlySymbols, lateSymbols); + if (symbol.flags & 33554432 /* Transient */ && links.cjsExportMerged && symbol.declarations) { + for (const decl of symbol.declarations) { + const original = getSymbolLinks(decl.symbol)[resolutionKind]; + if (!resolved) { + resolved = original; + continue; + } + if (!original) continue; + original.forEach((s, name) => { + const existing = resolved.get(name); + if (!existing) resolved.set(name, s); + else if (existing === s) return; + else resolved.set(name, mergeSymbol(existing, s)); + }); + } + } + links[resolutionKind] = resolved || emptySymbols; + } + return links[resolutionKind]; + } + function getMembersOfSymbol(symbol) { + return symbol.flags & 6256 /* LateBindingContainer */ ? getResolvedMembersOrExportsOfSymbol(symbol, "resolvedMembers" /* resolvedMembers */) : symbol.members || emptySymbols; + } + function getLateBoundSymbol(symbol) { + if (symbol.flags & 106500 /* ClassMember */ && symbol.escapedName === "__computed" /* Computed */) { + const links = getSymbolLinks(symbol); + if (!links.lateSymbol && some(symbol.declarations, hasLateBindableName)) { + const parent = getMergedSymbol(symbol.parent); + if (some(symbol.declarations, hasStaticModifier)) { + getExportsOfSymbol(parent); + } else { + getMembersOfSymbol(parent); + } + } + return links.lateSymbol || (links.lateSymbol = symbol); + } + return symbol; + } + function getTypeWithThisArgument(type, thisArgument, needApparentType) { + if (getObjectFlags(type) & 4 /* Reference */) { + const target = type.target; + const typeArguments = getTypeArguments(type); + return length(target.typeParameters) === length(typeArguments) ? createTypeReference(target, concatenate(typeArguments, [thisArgument || target.thisType])) : type; + } else if (type.flags & 2097152 /* Intersection */) { + const types = sameMap(type.types, (t) => getTypeWithThisArgument(t, thisArgument, needApparentType)); + return types !== type.types ? getIntersectionType(types) : type; + } + return needApparentType ? getApparentType(type) : type; + } + function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) { + let mapper; + let members; + let callSignatures; + let constructSignatures; + let indexInfos; + if (rangeEquals(typeParameters, typeArguments, 0, typeParameters.length)) { + members = source.symbol ? getMembersOfSymbol(source.symbol) : createSymbolTable(source.declaredProperties); + callSignatures = source.declaredCallSignatures; + constructSignatures = source.declaredConstructSignatures; + indexInfos = source.declaredIndexInfos; + } else { + mapper = createTypeMapper(typeParameters, typeArguments); + members = createInstantiatedSymbolTable( + source.declaredProperties, + mapper, + /*mappingThisOnly*/ + typeParameters.length === 1 + ); + callSignatures = instantiateSignatures(source.declaredCallSignatures, mapper); + constructSignatures = instantiateSignatures(source.declaredConstructSignatures, mapper); + indexInfos = instantiateIndexInfos(source.declaredIndexInfos, mapper); + } + const baseTypes = getBaseTypes(source); + if (baseTypes.length) { + if (source.symbol && members === getMembersOfSymbol(source.symbol)) { + const symbolTable = createSymbolTable(source.declaredProperties); + const sourceIndex = getIndexSymbol(source.symbol); + if (sourceIndex) { + symbolTable.set("__index" /* Index */, sourceIndex); + } + members = symbolTable; + } + setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos); + const thisArgument = lastOrUndefined(typeArguments); + for (const baseType of baseTypes) { + const instantiatedBaseType = thisArgument ? getTypeWithThisArgument(instantiateType(baseType, mapper), thisArgument) : baseType; + addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType)); + callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */)); + constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */)); + const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo( + stringType, + anyType, + /*isReadonly*/ + false + )]; + indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType))); + } + } + setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos); + } + function resolveClassOrInterfaceMembers(type) { + resolveObjectTypeMembers(type, resolveDeclaredMembers(type), emptyArray, emptyArray); + } + function resolveTypeReferenceMembers(type) { + const source = resolveDeclaredMembers(type.target); + const typeParameters = concatenate(source.typeParameters, [source.thisType]); + const typeArguments = getTypeArguments(type); + const paddedTypeArguments = typeArguments.length === typeParameters.length ? typeArguments : concatenate(typeArguments, [type]); + resolveObjectTypeMembers(type, source, typeParameters, paddedTypeArguments); + } + function createSignature(declaration, typeParameters, thisParameter, parameters, resolvedReturnType, resolvedTypePredicate, minArgumentCount, flags) { + const sig = new Signature5(checker, flags); + sig.declaration = declaration; + sig.typeParameters = typeParameters; + sig.parameters = parameters; + sig.thisParameter = thisParameter; + sig.resolvedReturnType = resolvedReturnType; + sig.resolvedTypePredicate = resolvedTypePredicate; + sig.minArgumentCount = minArgumentCount; + sig.resolvedMinArgumentCount = void 0; + sig.target = void 0; + sig.mapper = void 0; + sig.compositeSignatures = void 0; + sig.compositeKind = void 0; + return sig; + } + function cloneSignature(sig) { + const result = createSignature( + sig.declaration, + sig.typeParameters, + sig.thisParameter, + sig.parameters, + /*resolvedReturnType*/ + void 0, + /*resolvedTypePredicate*/ + void 0, + sig.minArgumentCount, + sig.flags & 167 /* PropagatingFlags */ + ); + result.target = sig.target; + result.mapper = sig.mapper; + result.compositeSignatures = sig.compositeSignatures; + result.compositeKind = sig.compositeKind; + return result; + } + function createUnionSignature(signature, unionSignatures) { + const result = cloneSignature(signature); + result.compositeSignatures = unionSignatures; + result.compositeKind = 1048576 /* Union */; + result.target = void 0; + result.mapper = void 0; + return result; + } + function getOptionalCallSignature(signature, callChainFlags) { + if ((signature.flags & 24 /* CallChainFlags */) === callChainFlags) { + return signature; + } + if (!signature.optionalCallSignatureCache) { + signature.optionalCallSignatureCache = {}; + } + const key = callChainFlags === 8 /* IsInnerCallChain */ ? "inner" : "outer"; + return signature.optionalCallSignatureCache[key] || (signature.optionalCallSignatureCache[key] = createOptionalCallSignature(signature, callChainFlags)); + } + function createOptionalCallSignature(signature, callChainFlags) { + Debug.assert(callChainFlags === 8 /* IsInnerCallChain */ || callChainFlags === 16 /* IsOuterCallChain */, "An optional call signature can either be for an inner call chain or an outer call chain, but not both."); + const result = cloneSignature(signature); + result.flags |= callChainFlags; + return result; + } + function getExpandedParameters(sig, skipUnionExpanding) { + if (signatureHasRestParameter(sig)) { + const restIndex = sig.parameters.length - 1; + const restName = sig.parameters[restIndex].escapedName; + const restType = getTypeOfSymbol(sig.parameters[restIndex]); + if (isTupleType(restType)) { + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; + } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); + } + } + return [sig.parameters]; + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { + const elementTypes = getTypeArguments(restType); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); + const restParams = map(elementTypes, (t, i) => { + const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); + const flags = restType.target.elementFlags[i]; + const checkFlags = flags & 12 /* Variable */ ? 32768 /* RestParameter */ : flags & 2 /* Optional */ ? 16384 /* OptionalParameter */ : 0; + const symbol = createSymbol(1 /* FunctionScopedVariable */, name, checkFlags); + symbol.links.type = flags & 4 /* Rest */ ? createArrayType(t) : t; + return symbol; + }); + return concatenate(sig.parameters.slice(0, restIndex), restParams); + } + function getUniqAssociatedNamesFromTupleType(type, restName) { + const associatedNamesMap = /* @__PURE__ */ new Map(); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); + const prevCounter = associatedNamesMap.get(name); + if (prevCounter === void 0) { + associatedNamesMap.set(name, 1); + return name; + } else { + associatedNamesMap.set(name, prevCounter + 1); + return `${name}_${prevCounter}`; + } + }); + } + } + function getDefaultConstructSignatures(classType) { + const baseConstructorType = getBaseConstructorTypeOfClass(classType); + const baseSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); + const declaration = getClassLikeDeclarationOfSymbol(classType.symbol); + const isAbstract = !!declaration && hasSyntacticModifier(declaration, 64 /* Abstract */); + if (baseSignatures.length === 0) { + return [createSignature( + /*declaration*/ + void 0, + classType.localTypeParameters, + /*thisParameter*/ + void 0, + emptyArray, + classType, + /*resolvedTypePredicate*/ + void 0, + 0, + isAbstract ? 4 /* Abstract */ : 0 /* None */ + )]; + } + const baseTypeNode = getBaseTypeNodeOfClass(classType); + const isJavaScript = isInJSFile(baseTypeNode); + const typeArguments = typeArgumentsFromTypeReferenceNode(baseTypeNode); + const typeArgCount = length(typeArguments); + const result = []; + for (const baseSig of baseSignatures) { + const minTypeArgumentCount = getMinTypeArgumentCount(baseSig.typeParameters); + const typeParamCount = length(baseSig.typeParameters); + if (isJavaScript || typeArgCount >= minTypeArgumentCount && typeArgCount <= typeParamCount) { + const sig = typeParamCount ? createSignatureInstantiation(baseSig, fillMissingTypeArguments(typeArguments, baseSig.typeParameters, minTypeArgumentCount, isJavaScript)) : cloneSignature(baseSig); + sig.typeParameters = classType.localTypeParameters; + sig.resolvedReturnType = classType; + sig.flags = isAbstract ? sig.flags | 4 /* Abstract */ : sig.flags & ~4 /* Abstract */; + result.push(sig); + } + } + return result; + } + function findMatchingSignature(signatureList, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes) { + for (const s of signatureList) { + if (compareSignaturesIdentical(s, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes, partialMatch ? compareTypesSubtypeOf : compareTypesIdentical)) { + return s; + } + } + } + function findMatchingSignatures(signatureLists, signature, listIndex) { + if (signature.typeParameters) { + if (listIndex > 0) { + return void 0; + } + for (let i = 1; i < signatureLists.length; i++) { + if (!findMatchingSignature( + signatureLists[i], + signature, + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + false + )) { + return void 0; + } + } + return [signature]; + } + let result; + for (let i = 0; i < signatureLists.length; i++) { + const match = i === listIndex ? signature : findMatchingSignature( + signatureLists[i], + signature, + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + true + ) || findMatchingSignature( + signatureLists[i], + signature, + /*partialMatch*/ + true, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + true + ); + if (!match) { + return void 0; + } + result = appendIfUnique(result, match); + } + return result; + } + function getUnionSignatures(signatureLists) { + let result; + let indexWithLengthOverOne; + for (let i = 0; i < signatureLists.length; i++) { + if (signatureLists[i].length === 0) return emptyArray; + if (signatureLists[i].length > 1) { + indexWithLengthOverOne = indexWithLengthOverOne === void 0 ? i : -1; + } + for (const signature of signatureLists[i]) { + if (!result || !findMatchingSignature( + result, + signature, + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + true + )) { + const unionSignatures = findMatchingSignatures(signatureLists, signature, i); + if (unionSignatures) { + let s = signature; + if (unionSignatures.length > 1) { + let thisParameter = signature.thisParameter; + const firstThisParameterOfUnionSignatures = forEach(unionSignatures, (sig) => sig.thisParameter); + if (firstThisParameterOfUnionSignatures) { + const thisType = getIntersectionType(mapDefined(unionSignatures, (sig) => sig.thisParameter && getTypeOfSymbol(sig.thisParameter))); + thisParameter = createSymbolWithType(firstThisParameterOfUnionSignatures, thisType); + } + s = createUnionSignature(signature, unionSignatures); + s.thisParameter = thisParameter; + } + (result || (result = [])).push(s); + } + } + } + } + if (!length(result) && indexWithLengthOverOne !== -1) { + const masterList = signatureLists[indexWithLengthOverOne !== void 0 ? indexWithLengthOverOne : 0]; + let results = masterList.slice(); + for (const signatures of signatureLists) { + if (signatures !== masterList) { + const signature = signatures[0]; + Debug.assert(!!signature, "getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"); + results = !!signature.typeParameters && some(results, (s) => !!s.typeParameters && !compareTypeParametersIdentical(signature.typeParameters, s.typeParameters)) ? void 0 : map(results, (sig) => combineSignaturesOfUnionMembers(sig, signature)); + if (!results) { + break; + } + } + } + result = results; + } + return result || emptyArray; + } + function compareTypeParametersIdentical(sourceParams, targetParams) { + if (length(sourceParams) !== length(targetParams)) { + return false; + } + if (!sourceParams || !targetParams) { + return true; + } + const mapper = createTypeMapper(targetParams, sourceParams); + for (let i = 0; i < sourceParams.length; i++) { + const source = sourceParams[i]; + const target = targetParams[i]; + if (source === target) continue; + if (!isTypeIdenticalTo(getConstraintFromTypeParameter(source) || unknownType, instantiateType(getConstraintFromTypeParameter(target) || unknownType, mapper))) return false; + } + return true; + } + function combineUnionThisParam(left, right, mapper) { + if (!left || !right) { + return left || right; + } + const thisType = getIntersectionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]); + return createSymbolWithType(left, thisType); + } + function combineUnionParameters(left, right, mapper) { + const leftCount = getParameterCount(left); + const rightCount = getParameterCount(right); + const longest = leftCount >= rightCount ? left : right; + const shorter = longest === left ? right : left; + const longestCount = longest === left ? leftCount : rightCount; + const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right); + const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest); + const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0)); + for (let i = 0; i < longestCount; i++) { + let longestParamType = tryGetTypeAtPosition(longest, i); + if (longest === right) { + longestParamType = instantiateType(longestParamType, mapper); + } + let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType; + if (shorter === right) { + shorterParamType = instantiateType(shorterParamType, mapper); + } + const unionParamType = getIntersectionType([longestParamType, shorterParamType]); + const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1; + const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter); + const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i); + const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i); + const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0; + const paramSymbol = createSymbol( + 1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), + paramName || `arg${i}`, + isRestParam ? 32768 /* RestParameter */ : isOptional ? 16384 /* OptionalParameter */ : 0 + ); + paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType; + params[i] = paramSymbol; + } + if (needsExtraRestElement) { + const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args", 32768 /* RestParameter */); + restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount)); + if (shorter === right) { + restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper); + } + params[longestCount] = restParamSymbol; + } + return params; + } + function combineSignaturesOfUnionMembers(left, right) { + const typeParams = left.typeParameters || right.typeParameters; + let paramMapper; + if (left.typeParameters && right.typeParameters) { + paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); + } + const declaration = left.declaration; + const params = combineUnionParameters(left, right, paramMapper); + const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper); + const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); + const result = createSignature( + declaration, + typeParams, + thisParam, + params, + /*resolvedReturnType*/ + void 0, + /*resolvedTypePredicate*/ + void 0, + minArgCount, + (left.flags | right.flags) & 167 /* PropagatingFlags */ + ); + result.compositeKind = 1048576 /* Union */; + result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); + if (paramMapper) { + result.mapper = left.compositeKind !== 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper; + } else if (left.compositeKind !== 2097152 /* Intersection */ && left.mapper && left.compositeSignatures) { + result.mapper = left.mapper; + } + return result; + } + function getUnionIndexInfos(types) { + const sourceInfos = getIndexInfosOfType(types[0]); + if (sourceInfos) { + const result = []; + for (const info of sourceInfos) { + const indexType = info.keyType; + if (every(types, (t) => !!getIndexInfoOfType(t, indexType))) { + result.push(createIndexInfo(indexType, getUnionType(map(types, (t) => getIndexTypeOfType(t, indexType))), some(types, (t) => getIndexInfoOfType(t, indexType).isReadonly))); + } + } + return result; + } + return emptyArray; + } + function resolveUnionTypeMembers(type) { + const callSignatures = getUnionSignatures(map(type.types, (t) => t === globalFunctionType ? [unknownSignature] : getSignaturesOfType(t, 0 /* Call */))); + const constructSignatures = getUnionSignatures(map(type.types, (t) => getSignaturesOfType(t, 1 /* Construct */))); + const indexInfos = getUnionIndexInfos(type.types); + setStructuredTypeMembers(type, emptySymbols, callSignatures, constructSignatures, indexInfos); + } + function intersectTypes(type1, type2) { + return !type1 ? type2 : !type2 ? type1 : getIntersectionType([type1, type2]); + } + function findMixins(types) { + const constructorTypeCount = countWhere(types, (t) => getSignaturesOfType(t, 1 /* Construct */).length > 0); + const mixinFlags = map(types, isMixinConstructorType); + if (constructorTypeCount > 0 && constructorTypeCount === countWhere(mixinFlags, (b) => b)) { + const firstMixinIndex = mixinFlags.indexOf( + /*searchElement*/ + true + ); + mixinFlags[firstMixinIndex] = false; + } + return mixinFlags; + } + function includeMixinType(type, types, mixinFlags, index) { + const mixedTypes = []; + for (let i = 0; i < types.length; i++) { + if (i === index) { + mixedTypes.push(type); + } else if (mixinFlags[i]) { + mixedTypes.push(getReturnTypeOfSignature(getSignaturesOfType(types[i], 1 /* Construct */)[0])); + } + } + return getIntersectionType(mixedTypes); + } + function resolveIntersectionTypeMembers(type) { + let callSignatures; + let constructSignatures; + let indexInfos; + const types = type.types; + const mixinFlags = findMixins(types); + const mixinCount = countWhere(mixinFlags, (b) => b); + for (let i = 0; i < types.length; i++) { + const t = type.types[i]; + if (!mixinFlags[i]) { + let signatures = getSignaturesOfType(t, 1 /* Construct */); + if (signatures.length && mixinCount > 0) { + signatures = map(signatures, (s) => { + const clone = cloneSignature(s); + clone.resolvedReturnType = includeMixinType(getReturnTypeOfSignature(s), types, mixinFlags, i); + return clone; + }); + } + constructSignatures = appendSignatures(constructSignatures, signatures); + } + callSignatures = appendSignatures(callSignatures, getSignaturesOfType(t, 0 /* Call */)); + indexInfos = reduceLeft(getIndexInfosOfType(t), (infos, newInfo) => appendIndexInfo( + infos, + newInfo, + /*union*/ + false + ), indexInfos); + } + setStructuredTypeMembers(type, emptySymbols, callSignatures || emptyArray, constructSignatures || emptyArray, indexInfos || emptyArray); + } + function appendSignatures(signatures, newSignatures) { + for (const sig of newSignatures) { + if (!signatures || every(signatures, (s) => !compareSignaturesIdentical( + s, + sig, + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + false, + compareTypesIdentical + ))) { + signatures = append(signatures, sig); + } + } + return signatures; + } + function appendIndexInfo(indexInfos, newInfo, union) { + if (indexInfos) { + for (let i = 0; i < indexInfos.length; i++) { + const info = indexInfos[i]; + if (info.keyType === newInfo.keyType) { + indexInfos[i] = createIndexInfo(info.keyType, union ? getUnionType([info.type, newInfo.type]) : getIntersectionType([info.type, newInfo.type]), union ? info.isReadonly || newInfo.isReadonly : info.isReadonly && newInfo.isReadonly); + return indexInfos; + } + } + } + return append(indexInfos, newInfo); + } + function resolveAnonymousTypeMembers(type) { + if (type.target) { + setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); + const members2 = createInstantiatedSymbolTable( + getPropertiesOfObjectType(type.target), + type.mapper, + /*mappingThisOnly*/ + false + ); + const callSignatures = instantiateSignatures(getSignaturesOfType(type.target, 0 /* Call */), type.mapper); + const constructSignatures = instantiateSignatures(getSignaturesOfType(type.target, 1 /* Construct */), type.mapper); + const indexInfos2 = instantiateIndexInfos(getIndexInfosOfType(type.target), type.mapper); + setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); + return; + } + const symbol = getMergedSymbol(type.symbol); + if (symbol.flags & 2048 /* TypeLiteral */) { + setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); + const members2 = getMembersOfSymbol(symbol); + const callSignatures = getSignaturesOfSymbol(members2.get("__call" /* Call */)); + const constructSignatures = getSignaturesOfSymbol(members2.get("__new" /* New */)); + const indexInfos2 = getIndexInfosOfSymbol(symbol); + setStructuredTypeMembers(type, members2, callSignatures, constructSignatures, indexInfos2); + return; + } + let members = getExportsOfSymbol(symbol); + let indexInfos; + if (symbol === globalThisSymbol) { + const varsOnly = /* @__PURE__ */ new Map(); + members.forEach((p) => { + var _a; + if (!(p.flags & 418 /* BlockScoped */) && !(p.flags & 512 /* ValueModule */ && ((_a = p.declarations) == null ? void 0 : _a.length) && every(p.declarations, isAmbientModule))) { + varsOnly.set(p.escapedName, p); + } + }); + members = varsOnly; + } + let baseConstructorIndexInfo; + setStructuredTypeMembers(type, members, emptyArray, emptyArray, emptyArray); + if (symbol.flags & 32 /* Class */) { + const classType = getDeclaredTypeOfClassOrInterface(symbol); + const baseConstructorType = getBaseConstructorTypeOfClass(classType); + if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 8650752 /* TypeVariable */)) { + members = createSymbolTable(getNamedOrIndexSignatureMembers(members)); + addInheritedMembers(members, getPropertiesOfType(baseConstructorType)); + } else if (baseConstructorType === anyType) { + baseConstructorIndexInfo = createIndexInfo( + stringType, + anyType, + /*isReadonly*/ + false + ); + } + } + const indexSymbol = getIndexSymbolFromSymbolTable(members); + if (indexSymbol) { + indexInfos = getIndexInfosOfIndexSymbol(indexSymbol); + } else { + if (baseConstructorIndexInfo) { + indexInfos = append(indexInfos, baseConstructorIndexInfo); + } + if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ || some(type.properties, (prop) => !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */)))) { + indexInfos = append(indexInfos, enumNumberIndexInfo); + } + } + setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray); + if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { + type.callSignatures = getSignaturesOfSymbol(symbol); + } + if (symbol.flags & 32 /* Class */) { + const classType = getDeclaredTypeOfClassOrInterface(symbol); + let constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get("__constructor" /* Constructor */)) : emptyArray; + if (symbol.flags & 16 /* Function */) { + constructSignatures = addRange( + constructSignatures.slice(), + mapDefined( + type.callSignatures, + (sig) => isJSConstructor(sig.declaration) ? createSignature( + sig.declaration, + sig.typeParameters, + sig.thisParameter, + sig.parameters, + classType, + /*resolvedTypePredicate*/ + void 0, + sig.minArgumentCount, + sig.flags & 167 /* PropagatingFlags */ + ) : void 0 + ) + ); + } + if (!constructSignatures.length) { + constructSignatures = getDefaultConstructSignatures(classType); + } + type.constructSignatures = constructSignatures; + } + } + function replaceIndexedAccess(instantiable, type, replacement) { + return instantiateType(instantiable, createTypeMapper([type.indexType, type.objectType], [getNumberLiteralType(0), createTupleType([replacement])])); + } + function getLimitedConstraint(type) { + const constraint = getConstraintTypeFromMappedType(type.mappedType); + if (!(constraint.flags & 1048576 /* Union */ || constraint.flags & 2097152 /* Intersection */)) { + return; + } + const origin = constraint.flags & 1048576 /* Union */ ? constraint.origin : constraint; + if (!origin || !(origin.flags & 2097152 /* Intersection */)) { + return; + } + const limitedConstraint = getIntersectionType(origin.types.filter((t) => t !== type.constraintType)); + return limitedConstraint !== neverType ? limitedConstraint : void 0; + } + function resolveReverseMappedTypeMembers(type) { + const indexInfo = getIndexInfoOfType(type.source, stringType); + const modifiers = getMappedTypeModifiers(type.mappedType); + const readonlyMask = modifiers & 1 /* IncludeReadonly */ ? false : true; + const optionalMask = modifiers & 4 /* IncludeOptional */ ? 0 : 16777216 /* Optional */; + const indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType) || unknownType, readonlyMask && indexInfo.isReadonly)] : emptyArray; + const members = createSymbolTable(); + const limitedConstraint = getLimitedConstraint(type); + for (const prop of getPropertiesOfType(type.source)) { + if (limitedConstraint) { + const propertyNameType = getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */); + if (!isTypeAssignableTo(propertyNameType, limitedConstraint)) { + continue; + } + } + const checkFlags = 8192 /* ReverseMapped */ | (readonlyMask && isReadonlySymbol(prop) ? 8 /* Readonly */ : 0); + const inferredProp = createSymbol(4 /* Property */ | prop.flags & optionalMask, prop.escapedName, checkFlags); + inferredProp.declarations = prop.declarations; + inferredProp.links.nameType = getSymbolLinks(prop).nameType; + inferredProp.links.propertyType = getTypeOfSymbol(prop); + if (type.constraintType.type.flags & 8388608 /* IndexedAccess */ && type.constraintType.type.objectType.flags & 262144 /* TypeParameter */ && type.constraintType.type.indexType.flags & 262144 /* TypeParameter */) { + const newTypeParam = type.constraintType.type.objectType; + const newMappedType = replaceIndexedAccess(type.mappedType, type.constraintType.type, newTypeParam); + inferredProp.links.mappedType = newMappedType; + inferredProp.links.constraintType = getIndexType(newTypeParam); + } else { + inferredProp.links.mappedType = type.mappedType; + inferredProp.links.constraintType = type.constraintType; + } + members.set(prop.escapedName, inferredProp); + } + setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos); + } + function getLowerBoundOfKeyType(type) { + if (type.flags & 4194304 /* Index */) { + const t = getApparentType(type.type); + return isGenericTupleType(t) ? getKnownKeysOfTupleType(t) : getIndexType(t); + } + if (type.flags & 16777216 /* Conditional */) { + if (type.root.isDistributive) { + const checkType = type.checkType; + const constraint = getLowerBoundOfKeyType(checkType); + if (constraint !== checkType) { + return getConditionalTypeInstantiation( + type, + prependTypeMapping(type.root.checkType, constraint, type.mapper), + /*forConstraint*/ + false + ); + } + } + return type; + } + if (type.flags & 1048576 /* Union */) { + return mapType( + type, + getLowerBoundOfKeyType, + /*noReductions*/ + true + ); + } + if (type.flags & 2097152 /* Intersection */) { + const types = type.types; + if (types.length === 2 && !!(types[0].flags & (4 /* String */ | 8 /* Number */ | 64 /* BigInt */)) && types[1] === emptyTypeLiteralType) { + return type; + } + return getIntersectionType(sameMap(type.types, getLowerBoundOfKeyType)); + } + return type; + } + function getIsLateCheckFlag(s) { + return getCheckFlags(s) & 4096 /* Late */; + } + function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) { + for (const prop of getPropertiesOfType(type)) { + cb(getLiteralTypeFromProperty(prop, include)); + } + if (type.flags & 1 /* Any */) { + cb(stringType); + } else { + for (const info of getIndexInfosOfType(type)) { + if (!stringsOnly || info.keyType.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) { + cb(info.keyType); + } + } + } + } + function resolveMappedTypeMembers(type) { + const members = createSymbolTable(); + let indexInfos; + setStructuredTypeMembers(type, emptySymbols, emptyArray, emptyArray, emptyArray); + const typeParameter = getTypeParameterFromMappedType(type); + const constraintType = getConstraintTypeFromMappedType(type); + const mappedType = type.target || type; + const nameType = getNameTypeFromMappedType(mappedType); + const shouldLinkPropDeclarations = getMappedTypeNameTypeKind(mappedType) !== 2 /* Remapping */; + const templateType = getTemplateTypeFromMappedType(mappedType); + const modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); + const templateModifiers = getMappedTypeModifiers(type); + const include = 8576 /* StringOrNumberLiteralOrUnique */; + if (isMappedTypeWithKeyofConstraintDeclaration(type)) { + forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType( + modifiersType, + include, + /*stringsOnly*/ + false, + addMemberForKeyType + ); + } else { + forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType); + } + setStructuredTypeMembers(type, members, emptyArray, emptyArray, indexInfos || emptyArray); + function addMemberForKeyType(keyType) { + const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType; + forEachType(propNameType, (t) => addMemberForKeyTypeWorker(keyType, t)); + } + function addMemberForKeyTypeWorker(keyType, propNameType) { + if (isTypeUsableAsPropertyName(propNameType)) { + const propName = getPropertyNameFromType(propNameType); + const existingProp = members.get(propName); + if (existingProp) { + existingProp.links.nameType = getUnionType([existingProp.links.nameType, propNameType]); + existingProp.links.keyType = getUnionType([existingProp.links.keyType, keyType]); + } else { + const modifiersProp = isTypeUsableAsPropertyName(keyType) ? getPropertyOfType(modifiersType, getPropertyNameFromType(keyType)) : void 0; + const isOptional = !!(templateModifiers & 4 /* IncludeOptional */ || !(templateModifiers & 8 /* ExcludeOptional */) && modifiersProp && modifiersProp.flags & 16777216 /* Optional */); + const isReadonly = !!(templateModifiers & 1 /* IncludeReadonly */ || !(templateModifiers & 2 /* ExcludeReadonly */) && modifiersProp && isReadonlySymbol(modifiersProp)); + const stripOptional = strictNullChecks && !isOptional && modifiersProp && modifiersProp.flags & 16777216 /* Optional */; + const lateFlag = modifiersProp ? getIsLateCheckFlag(modifiersProp) : 0; + const prop = createSymbol(4 /* Property */ | (isOptional ? 16777216 /* Optional */ : 0), propName, lateFlag | 262144 /* Mapped */ | (isReadonly ? 8 /* Readonly */ : 0) | (stripOptional ? 524288 /* StripOptional */ : 0)); + prop.links.mappedType = type; + prop.links.nameType = propNameType; + prop.links.keyType = keyType; + if (modifiersProp) { + prop.links.syntheticOrigin = modifiersProp; + prop.declarations = shouldLinkPropDeclarations ? modifiersProp.declarations : void 0; + } + members.set(propName, prop); + } + } else if (isValidIndexKeyType(propNameType) || propNameType.flags & (1 /* Any */ | 32 /* Enum */)) { + const indexKeyType = propNameType.flags & (1 /* Any */ | 4 /* String */) ? stringType : propNameType.flags & (8 /* Number */ | 32 /* Enum */) ? numberType : propNameType; + const propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType)); + const modifiersIndexInfo = getApplicableIndexInfo(modifiersType, propNameType); + const isReadonly = !!(templateModifiers & 1 /* IncludeReadonly */ || !(templateModifiers & 2 /* ExcludeReadonly */) && (modifiersIndexInfo == null ? void 0 : modifiersIndexInfo.isReadonly)); + const indexInfo = createIndexInfo(indexKeyType, propType, isReadonly); + indexInfos = appendIndexInfo( + indexInfos, + indexInfo, + /*union*/ + true + ); + } + } + } + function getTypeOfMappedSymbol(symbol) { + var _a; + if (!symbol.links.type) { + const mappedType = symbol.links.mappedType; + if (!pushTypeResolution(symbol, 0 /* Type */)) { + mappedType.containsError = true; + return errorType; + } + const templateType = getTemplateTypeFromMappedType(mappedType.target || mappedType); + const mapper = appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), symbol.links.keyType); + const propType = instantiateType(templateType, mapper); + let type = strictNullChecks && symbol.flags & 16777216 /* Optional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType( + propType, + /*isProperty*/ + true + ) : symbol.links.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) : propType; + if (!popTypeResolution()) { + error(currentNode, Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType)); + type = errorType; + } + (_a = symbol.links).type ?? (_a.type = type); + } + return symbol.links.type; + } + function getTypeParameterFromMappedType(type) { + return type.typeParameter || (type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(type.declaration.typeParameter))); + } + function getConstraintTypeFromMappedType(type) { + return type.constraintType || (type.constraintType = getConstraintOfTypeParameter(getTypeParameterFromMappedType(type)) || errorType); + } + function getNameTypeFromMappedType(type) { + return type.declaration.nameType ? type.nameType || (type.nameType = instantiateType(getTypeFromTypeNode(type.declaration.nameType), type.mapper)) : void 0; + } + function getTemplateTypeFromMappedType(type) { + return type.templateType || (type.templateType = type.declaration.type ? instantiateType(addOptionality( + getTypeFromTypeNode(type.declaration.type), + /*isProperty*/ + true, + !!(getMappedTypeModifiers(type) & 4 /* IncludeOptional */) + ), type.mapper) : errorType); + } + function getConstraintDeclarationForMappedType(type) { + return getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter); + } + function isMappedTypeWithKeyofConstraintDeclaration(type) { + const constraintDeclaration = getConstraintDeclarationForMappedType(type); + return constraintDeclaration.kind === 198 /* TypeOperator */ && constraintDeclaration.operator === 143 /* KeyOfKeyword */; + } + function getModifiersTypeFromMappedType(type) { + if (!type.modifiersType) { + if (isMappedTypeWithKeyofConstraintDeclaration(type)) { + type.modifiersType = instantiateType(getTypeFromTypeNode(getConstraintDeclarationForMappedType(type).type), type.mapper); + } else { + const declaredType = getTypeFromMappedTypeNode(type.declaration); + const constraint = getConstraintTypeFromMappedType(declaredType); + const extendedConstraint = constraint && constraint.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(constraint) : constraint; + type.modifiersType = extendedConstraint && extendedConstraint.flags & 4194304 /* Index */ ? instantiateType(extendedConstraint.type, type.mapper) : unknownType; + } + } + return type.modifiersType; + } + function getMappedTypeModifiers(type) { + const declaration = type.declaration; + return (declaration.readonlyToken ? declaration.readonlyToken.kind === 41 /* MinusToken */ ? 2 /* ExcludeReadonly */ : 1 /* IncludeReadonly */ : 0) | (declaration.questionToken ? declaration.questionToken.kind === 41 /* MinusToken */ ? 8 /* ExcludeOptional */ : 4 /* IncludeOptional */ : 0); + } + function getMappedTypeOptionality(type) { + const modifiers = getMappedTypeModifiers(type); + return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0; + } + function getCombinedMappedTypeOptionality(type) { + if (getObjectFlags(type) & 32 /* Mapped */) { + return getMappedTypeOptionality(type) || getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(type)); + } + if (type.flags & 2097152 /* Intersection */) { + const optionality = getCombinedMappedTypeOptionality(type.types[0]); + return every(type.types, (t, i) => i === 0 || getCombinedMappedTypeOptionality(t) === optionality) ? optionality : 0; + } + return 0; + } + function isPartialMappedType(type) { + return !!(getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */); + } + function isGenericMappedType(type) { + if (getObjectFlags(type) & 32 /* Mapped */) { + const constraint = getConstraintTypeFromMappedType(type); + if (isGenericIndexType(constraint)) { + return true; + } + const nameType = getNameTypeFromMappedType(type); + if (nameType && isGenericIndexType(instantiateType(nameType, makeUnaryTypeMapper(getTypeParameterFromMappedType(type), constraint)))) { + return true; + } + } + return false; + } + function getMappedTypeNameTypeKind(type) { + const nameType = getNameTypeFromMappedType(type); + if (!nameType) { + return 0 /* None */; + } + return isTypeAssignableTo(nameType, getTypeParameterFromMappedType(type)) ? 1 /* Filtering */ : 2 /* Remapping */; + } + function resolveStructuredTypeMembers(type) { + if (!type.members) { + if (type.flags & 524288 /* Object */) { + if (type.objectFlags & 4 /* Reference */) { + resolveTypeReferenceMembers(type); + } else if (type.objectFlags & 3 /* ClassOrInterface */) { + resolveClassOrInterfaceMembers(type); + } else if (type.objectFlags & 1024 /* ReverseMapped */) { + resolveReverseMappedTypeMembers(type); + } else if (type.objectFlags & 16 /* Anonymous */) { + resolveAnonymousTypeMembers(type); + } else if (type.objectFlags & 32 /* Mapped */) { + resolveMappedTypeMembers(type); + } else { + Debug.fail("Unhandled object type " + Debug.formatObjectFlags(type.objectFlags)); + } + } else if (type.flags & 1048576 /* Union */) { + resolveUnionTypeMembers(type); + } else if (type.flags & 2097152 /* Intersection */) { + resolveIntersectionTypeMembers(type); + } else { + Debug.fail("Unhandled type " + Debug.formatTypeFlags(type.flags)); + } + } + return type; + } + function getPropertiesOfObjectType(type) { + if (type.flags & 524288 /* Object */) { + return resolveStructuredTypeMembers(type).properties; + } + return emptyArray; + } + function getPropertyOfObjectType(type, name) { + if (type.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type); + const symbol = resolved.members.get(name); + if (symbol && symbolIsValue(symbol)) { + return symbol; + } + } + } + function getPropertiesOfUnionOrIntersectionType(type) { + if (!type.resolvedProperties) { + const members = createSymbolTable(); + for (const current of type.types) { + for (const prop of getPropertiesOfType(current)) { + if (!members.has(prop.escapedName)) { + const combinedProp = getPropertyOfUnionOrIntersectionType( + type, + prop.escapedName, + /*skipObjectFunctionPropertyAugment*/ + !!(type.flags & 2097152 /* Intersection */) + ); + if (combinedProp) { + members.set(prop.escapedName, combinedProp); + } + } + } + if (type.flags & 1048576 /* Union */ && getIndexInfosOfType(current).length === 0) { + break; + } + } + type.resolvedProperties = getNamedMembers(members); + } + return type.resolvedProperties; + } + function getPropertiesOfType(type) { + type = getReducedApparentType(type); + return type.flags & 3145728 /* UnionOrIntersection */ ? getPropertiesOfUnionOrIntersectionType(type) : getPropertiesOfObjectType(type); + } + function forEachPropertyOfType(type, action) { + type = getReducedApparentType(type); + if (type.flags & 3670016 /* StructuredType */) { + resolveStructuredTypeMembers(type).members.forEach((symbol, escapedName) => { + if (isNamedMember(symbol, escapedName)) { + action(symbol, escapedName); + } + }); + } + } + function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) { + const list = obj.properties; + return list.some((property) => { + const nameType = property.name && (isJsxNamespacedName(property.name) ? getStringLiteralType(getTextOfJsxAttributeName(property.name)) : getLiteralTypeFromPropertyName(property.name)); + const name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0; + const expected = name === void 0 ? void 0 : getTypeOfPropertyOfType(contextualType, name); + return !!expected && isLiteralType(expected) && !isTypeAssignableTo(getTypeOfNode(property), expected); + }); + } + function getAllPossiblePropertiesOfTypes(types) { + const unionType = getUnionType(types); + if (!(unionType.flags & 1048576 /* Union */)) { + return getAugmentedPropertiesOfType(unionType); + } + const props = createSymbolTable(); + for (const memberType of types) { + for (const { escapedName } of getAugmentedPropertiesOfType(memberType)) { + if (!props.has(escapedName)) { + const prop = createUnionOrIntersectionProperty(unionType, escapedName); + if (prop) props.set(escapedName, prop); + } + } + } + return arrayFrom(props.values()); + } + function getConstraintOfType(type) { + return type.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(type) : type.flags & 8388608 /* IndexedAccess */ ? getConstraintOfIndexedAccess(type) : type.flags & 16777216 /* Conditional */ ? getConstraintOfConditionalType(type) : getBaseConstraintOfType(type); + } + function getConstraintOfTypeParameter(typeParameter) { + return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0; + } + function isConstMappedType(type, depth) { + const typeVariable = getHomomorphicTypeVariable(type); + return !!typeVariable && isConstTypeVariable(typeVariable, depth); + } + function isConstTypeVariable(type, depth = 0) { + var _a; + return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 4096 /* Const */)) || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || getObjectFlags(type) & 32 /* Mapped */ && isConstMappedType(type, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0)); + } + function getConstraintOfIndexedAccess(type) { + return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0; + } + function getSimplifiedTypeOrConstraint(type) { + const simplified = getSimplifiedType( + type, + /*writing*/ + false + ); + return simplified !== type ? simplified : getConstraintOfType(type); + } + function getConstraintFromIndexedAccess(type) { + if (isMappedTypeGenericIndexedAccess(type)) { + return substituteIndexedMappedType(type.objectType, type.indexType); + } + const indexConstraint = getSimplifiedTypeOrConstraint(type.indexType); + if (indexConstraint && indexConstraint !== type.indexType) { + const indexedAccess = getIndexedAccessTypeOrUndefined(type.objectType, indexConstraint, type.accessFlags); + if (indexedAccess) { + return indexedAccess; + } + } + const objectConstraint = getSimplifiedTypeOrConstraint(type.objectType); + if (objectConstraint && objectConstraint !== type.objectType) { + return getIndexedAccessTypeOrUndefined(objectConstraint, type.indexType, type.accessFlags); + } + return void 0; + } + function getDefaultConstraintOfConditionalType(type) { + if (!type.resolvedDefaultConstraint) { + const trueConstraint = getInferredTrueTypeFromConditionalType(type); + const falseConstraint = getFalseTypeFromConditionalType(type); + type.resolvedDefaultConstraint = isTypeAny(trueConstraint) ? falseConstraint : isTypeAny(falseConstraint) ? trueConstraint : getUnionType([trueConstraint, falseConstraint]); + } + return type.resolvedDefaultConstraint; + } + function getConstraintOfDistributiveConditionalType(type) { + if (type.resolvedConstraintOfDistributive !== void 0) { + return type.resolvedConstraintOfDistributive || void 0; + } + if (type.root.isDistributive && type.restrictiveInstantiation !== type) { + const simplified = getSimplifiedType( + type.checkType, + /*writing*/ + false + ); + const constraint = simplified === type.checkType ? getConstraintOfType(simplified) : simplified; + if (constraint && constraint !== type.checkType) { + const instantiated = getConditionalTypeInstantiation( + type, + prependTypeMapping(type.root.checkType, constraint, type.mapper), + /*forConstraint*/ + true + ); + if (!(instantiated.flags & 131072 /* Never */)) { + type.resolvedConstraintOfDistributive = instantiated; + return instantiated; + } + } + } + type.resolvedConstraintOfDistributive = false; + return void 0; + } + function getConstraintFromConditionalType(type) { + return getConstraintOfDistributiveConditionalType(type) || getDefaultConstraintOfConditionalType(type); + } + function getConstraintOfConditionalType(type) { + return hasNonCircularBaseConstraint(type) ? getConstraintFromConditionalType(type) : void 0; + } + function getEffectiveConstraintOfIntersection(types, targetIsUnion) { + let constraints; + let hasDisjointDomainType = false; + for (const t of types) { + if (t.flags & 465829888 /* Instantiable */) { + let constraint = getConstraintOfType(t); + while (constraint && constraint.flags & (262144 /* TypeParameter */ | 4194304 /* Index */ | 16777216 /* Conditional */)) { + constraint = getConstraintOfType(constraint); + } + if (constraint) { + constraints = append(constraints, constraint); + if (targetIsUnion) { + constraints = append(constraints, t); + } + } + } else if (t.flags & 469892092 /* DisjointDomains */ || isEmptyAnonymousObjectType(t)) { + hasDisjointDomainType = true; + } + } + if (constraints && (targetIsUnion || hasDisjointDomainType)) { + if (hasDisjointDomainType) { + for (const t of types) { + if (t.flags & 469892092 /* DisjointDomains */ || isEmptyAnonymousObjectType(t)) { + constraints = append(constraints, t); + } + } + } + return getNormalizedType( + getIntersectionType(constraints, 2 /* NoConstraintReduction */), + /*writing*/ + false + ); + } + return void 0; + } + function getBaseConstraintOfType(type) { + if (type.flags & (58982400 /* InstantiableNonPrimitive */ | 3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || isGenericTupleType(type)) { + const constraint = getResolvedBaseConstraint(type); + return constraint !== noConstraintType && constraint !== circularConstraintType ? constraint : void 0; + } + return type.flags & 4194304 /* Index */ ? stringNumberSymbolType : void 0; + } + function getBaseConstraintOrType(type) { + return getBaseConstraintOfType(type) || type; + } + function hasNonCircularBaseConstraint(type) { + return getResolvedBaseConstraint(type) !== circularConstraintType; + } + function getResolvedBaseConstraint(type) { + if (type.resolvedBaseConstraint) { + return type.resolvedBaseConstraint; + } + const stack = []; + return type.resolvedBaseConstraint = getImmediateBaseConstraint(type); + function getImmediateBaseConstraint(t) { + if (!t.immediateBaseConstraint) { + if (!pushTypeResolution(t, 4 /* ImmediateBaseConstraint */)) { + return circularConstraintType; + } + let result; + const identity2 = getRecursionIdentity(t); + if (stack.length < 10 || stack.length < 50 && !contains(stack, identity2)) { + stack.push(identity2); + result = computeBaseConstraint(getSimplifiedType( + t, + /*writing*/ + false + )); + stack.pop(); + } + if (!popTypeResolution()) { + if (t.flags & 262144 /* TypeParameter */) { + const errorNode = getConstraintDeclaration(t); + if (errorNode) { + const diagnostic = error(errorNode, Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t)); + if (currentNode && !isNodeDescendantOf(errorNode, currentNode) && !isNodeDescendantOf(currentNode, errorNode)) { + addRelatedInfo(diagnostic, createDiagnosticForNode(currentNode, Diagnostics.Circularity_originates_in_type_at_this_location)); + } + } + } + result = circularConstraintType; + } + t.immediateBaseConstraint ?? (t.immediateBaseConstraint = result || noConstraintType); + } + return t.immediateBaseConstraint; + } + function getBaseConstraint(t) { + const c = getImmediateBaseConstraint(t); + return c !== noConstraintType && c !== circularConstraintType ? c : void 0; + } + function computeBaseConstraint(t) { + if (t.flags & 262144 /* TypeParameter */) { + const constraint = getConstraintFromTypeParameter(t); + return t.isThisType || !constraint ? constraint : getBaseConstraint(constraint); + } + if (t.flags & 3145728 /* UnionOrIntersection */) { + const types = t.types; + const baseTypes = []; + let different = false; + for (const type2 of types) { + const baseType = getBaseConstraint(type2); + if (baseType) { + if (baseType !== type2) { + different = true; + } + baseTypes.push(baseType); + } else { + different = true; + } + } + if (!different) { + return t; + } + return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) : void 0; + } + if (t.flags & 4194304 /* Index */) { + return stringNumberSymbolType; + } + if (t.flags & 134217728 /* TemplateLiteral */) { + const types = t.types; + const constraints = mapDefined(types, getBaseConstraint); + return constraints.length === types.length ? getTemplateLiteralType(t.texts, constraints) : stringType; + } + if (t.flags & 268435456 /* StringMapping */) { + const constraint = getBaseConstraint(t.type); + return constraint && constraint !== t.type ? getStringMappingType(t.symbol, constraint) : stringType; + } + if (t.flags & 8388608 /* IndexedAccess */) { + if (isMappedTypeGenericIndexedAccess(t)) { + return getBaseConstraint(substituteIndexedMappedType(t.objectType, t.indexType)); + } + const baseObjectType = getBaseConstraint(t.objectType); + const baseIndexType = getBaseConstraint(t.indexType); + const baseIndexedAccess = baseObjectType && baseIndexType && getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, t.accessFlags); + return baseIndexedAccess && getBaseConstraint(baseIndexedAccess); + } + if (t.flags & 16777216 /* Conditional */) { + const constraint = getConstraintFromConditionalType(t); + return constraint && getBaseConstraint(constraint); + } + if (t.flags & 33554432 /* Substitution */) { + return getBaseConstraint(getSubstitutionIntersection(t)); + } + if (isGenericTupleType(t)) { + const newElements = map(getElementTypes(t), (v, i) => { + const constraint = v.flags & 262144 /* TypeParameter */ && t.target.elementFlags[i] & 8 /* Variadic */ && getBaseConstraint(v) || v; + return constraint !== v && everyType(constraint, (c) => isArrayOrTupleType(c) && !isGenericTupleType(c)) ? constraint : v; + }); + return createTupleType(newElements, t.target.elementFlags, t.target.readonly, t.target.labeledElementDeclarations); + } + return t; + } + } + function getApparentTypeOfIntersectionType(type, thisArgument) { + if (type === thisArgument) { + return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument( + type, + thisArgument, + /*needApparentType*/ + true + )); + } + const key = `I${getTypeId(type)},${getTypeId(thisArgument)}`; + return getCachedType(key) ?? setCachedType(key, getTypeWithThisArgument( + type, + thisArgument, + /*needApparentType*/ + true + )); + } + function getResolvedTypeParameterDefault(typeParameter) { + if (!typeParameter.default) { + if (typeParameter.target) { + const targetDefault = getResolvedTypeParameterDefault(typeParameter.target); + typeParameter.default = targetDefault ? instantiateType(targetDefault, typeParameter.mapper) : noConstraintType; + } else { + typeParameter.default = resolvingDefaultType; + const defaultDeclaration = typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default); + const defaultType = defaultDeclaration ? getTypeFromTypeNode(defaultDeclaration) : noConstraintType; + if (typeParameter.default === resolvingDefaultType) { + typeParameter.default = defaultType; + } + } + } else if (typeParameter.default === resolvingDefaultType) { + typeParameter.default = circularConstraintType; + } + return typeParameter.default; + } + function getDefaultFromTypeParameter(typeParameter) { + const defaultType = getResolvedTypeParameterDefault(typeParameter); + return defaultType !== noConstraintType && defaultType !== circularConstraintType ? defaultType : void 0; + } + function hasNonCircularTypeParameterDefault(typeParameter) { + return getResolvedTypeParameterDefault(typeParameter) !== circularConstraintType; + } + function hasTypeParameterDefault(typeParameter) { + return !!(typeParameter.symbol && forEach(typeParameter.symbol.declarations, (decl) => isTypeParameterDeclaration(decl) && decl.default)); + } + function getApparentTypeOfMappedType(type) { + return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type)); + } + function getResolvedApparentTypeOfMappedType(type) { + const target = type.target ?? type; + const typeVariable = getHomomorphicTypeVariable(target); + if (typeVariable && !target.declaration.nameType) { + const modifiersType = getModifiersTypeFromMappedType(type); + const baseConstraint = isGenericMappedType(modifiersType) ? getApparentTypeOfMappedType(modifiersType) : getBaseConstraintOfType(modifiersType); + if (baseConstraint && everyType(baseConstraint, (t) => isArrayOrTupleType(t) || isArrayOrTupleOrIntersection(t))) { + return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper)); + } + } + return type; + } + function isArrayOrTupleOrIntersection(type) { + return !!(type.flags & 2097152 /* Intersection */) && every(type.types, isArrayOrTupleType); + } + function isMappedTypeGenericIndexedAccess(type) { + let objectType; + return !!(type.flags & 8388608 /* IndexedAccess */ && getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ && !isGenericMappedType(objectType) && isGenericIndexType(type.indexType) && !(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType); + } + function getApparentType(type) { + const t = type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type; + const objectFlags = getObjectFlags(t); + return objectFlags & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) : objectFlags & 4 /* Reference */ && t !== type ? getTypeWithThisArgument(t, type) : t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t, type) : t.flags & 402653316 /* StringLike */ ? globalStringType : t.flags & 296 /* NumberLike */ ? globalNumberType : t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType() : t.flags & 528 /* BooleanLike */ ? globalBooleanType : t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType() : t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType : t.flags & 4194304 /* Index */ ? stringNumberSymbolType : t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType : t; + } + function getReducedApparentType(type) { + return getReducedType(getApparentType(getReducedType(type))); + } + function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) { + var _a, _b, _c; + let singleProp; + let propSet; + let indexTypes; + const isUnion = containingType.flags & 1048576 /* Union */; + let optionalFlag; + let syntheticFlag = 4 /* SyntheticMethod */; + let checkFlags = isUnion ? 0 : 8 /* Readonly */; + let mergedInstantiations = false; + for (const current of containingType.types) { + const type = getApparentType(current); + if (!(isErrorType(type) || type.flags & 131072 /* Never */)) { + const prop = getPropertyOfType(type, name, skipObjectFunctionPropertyAugment); + const modifiers = prop ? getDeclarationModifierFlagsFromSymbol(prop) : 0; + if (prop) { + if (prop.flags & 106500 /* ClassMember */) { + optionalFlag ?? (optionalFlag = isUnion ? 0 /* None */ : 16777216 /* Optional */); + if (isUnion) { + optionalFlag |= prop.flags & 16777216 /* Optional */; + } else { + optionalFlag &= prop.flags; + } + } + if (!singleProp) { + singleProp = prop; + } else if (prop !== singleProp) { + const isInstantiation = (getTargetSymbol(prop) || prop) === (getTargetSymbol(singleProp) || singleProp); + if (isInstantiation && compareProperties(singleProp, prop, (a, b) => a === b ? -1 /* True */ : 0 /* False */) === -1 /* True */) { + mergedInstantiations = !!singleProp.parent && !!length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent)); + } else { + if (!propSet) { + propSet = /* @__PURE__ */ new Map(); + propSet.set(getSymbolId(singleProp), singleProp); + } + const id = getSymbolId(prop); + if (!propSet.has(id)) { + propSet.set(id, prop); + } + } + } + if (isUnion && isReadonlySymbol(prop)) { + checkFlags |= 8 /* Readonly */; + } else if (!isUnion && !isReadonlySymbol(prop)) { + checkFlags &= ~8 /* Readonly */; + } + checkFlags |= (!(modifiers & 6 /* NonPublicAccessibilityModifier */) ? 256 /* ContainsPublic */ : 0) | (modifiers & 4 /* Protected */ ? 512 /* ContainsProtected */ : 0) | (modifiers & 2 /* Private */ ? 1024 /* ContainsPrivate */ : 0) | (modifiers & 256 /* Static */ ? 2048 /* ContainsStatic */ : 0); + if (!isPrototypeProperty(prop)) { + syntheticFlag = 2 /* SyntheticProperty */; + } + } else if (isUnion) { + const indexInfo = !isLateBoundName(name) && getApplicableIndexInfoForName(type, name); + if (indexInfo) { + checkFlags |= 32 /* WritePartial */ | (indexInfo.isReadonly ? 8 /* Readonly */ : 0); + indexTypes = append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type); + } else if (isObjectLiteralType(type) && !(getObjectFlags(type) & 2097152 /* ContainsSpread */)) { + checkFlags |= 32 /* WritePartial */; + indexTypes = append(indexTypes, undefinedType); + } else { + checkFlags |= 16 /* ReadPartial */; + } + } + } + } + if (!singleProp || isUnion && (propSet || checkFlags & 48 /* Partial */) && checkFlags & (1024 /* ContainsPrivate */ | 512 /* ContainsProtected */) && !(propSet && getCommonDeclarationsOfSymbols(propSet.values()))) { + return void 0; + } + if (!propSet && !(checkFlags & 16 /* ReadPartial */) && !indexTypes) { + if (mergedInstantiations) { + const links = (_a = tryCast(singleProp, isTransientSymbol)) == null ? void 0 : _a.links; + const clone = createSymbolWithType(singleProp, links == null ? void 0 : links.type); + clone.parent = (_c = (_b = singleProp.valueDeclaration) == null ? void 0 : _b.symbol) == null ? void 0 : _c.parent; + clone.links.containingType = containingType; + clone.links.mapper = links == null ? void 0 : links.mapper; + clone.links.writeType = getWriteTypeOfSymbol(singleProp); + return clone; + } else { + return singleProp; + } + } + const props = propSet ? arrayFrom(propSet.values()) : [singleProp]; + let declarations; + let firstType; + let nameType; + const propTypes = []; + let writeTypes; + let firstValueDeclaration; + let hasNonUniformValueDeclaration = false; + for (const prop of props) { + if (!firstValueDeclaration) { + firstValueDeclaration = prop.valueDeclaration; + } else if (prop.valueDeclaration && prop.valueDeclaration !== firstValueDeclaration) { + hasNonUniformValueDeclaration = true; + } + declarations = addRange(declarations, prop.declarations); + const type = getTypeOfSymbol(prop); + if (!firstType) { + firstType = type; + nameType = getSymbolLinks(prop).nameType; + } + const writeType = getWriteTypeOfSymbol(prop); + if (writeTypes || writeType !== type) { + writeTypes = append(!writeTypes ? propTypes.slice() : writeTypes, writeType); + } + if (type !== firstType) { + checkFlags |= 64 /* HasNonUniformType */; + } + if (isLiteralType(type) || isPatternLiteralType(type)) { + checkFlags |= 128 /* HasLiteralType */; + } + if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) { + checkFlags |= 131072 /* HasNeverType */; + } + propTypes.push(type); + } + addRange(propTypes, indexTypes); + const result = createSymbol(4 /* Property */ | (optionalFlag ?? 0), name, syntheticFlag | checkFlags); + result.links.containingType = containingType; + if (!hasNonUniformValueDeclaration && firstValueDeclaration) { + result.valueDeclaration = firstValueDeclaration; + if (firstValueDeclaration.symbol.parent) { + result.parent = firstValueDeclaration.symbol.parent; + } + } + result.declarations = declarations; + result.links.nameType = nameType; + if (propTypes.length > 2) { + result.links.checkFlags |= 65536 /* DeferredType */; + result.links.deferralParent = containingType; + result.links.deferralConstituents = propTypes; + result.links.deferralWriteConstituents = writeTypes; + } else { + result.links.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes); + if (writeTypes) { + result.links.writeType = isUnion ? getUnionType(writeTypes) : getIntersectionType(writeTypes); + } + } + return result; + } + function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) { + var _a, _b, _c; + let property = skipObjectFunctionPropertyAugment ? (_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name) : (_b = type.propertyCache) == null ? void 0 : _b.get(name); + if (!property) { + property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment); + if (property) { + const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable()); + properties.set(name, property); + if (skipObjectFunctionPropertyAugment && !(getCheckFlags(property) & 48 /* Partial */) && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) { + const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable()); + properties2.set(name, property); + } + } + } + return property; + } + function getCommonDeclarationsOfSymbols(symbols) { + let commonDeclarations; + for (const symbol of symbols) { + if (!symbol.declarations) { + return void 0; + } + if (!commonDeclarations) { + commonDeclarations = new Set(symbol.declarations); + continue; + } + commonDeclarations.forEach((declaration) => { + if (!contains(symbol.declarations, declaration)) { + commonDeclarations.delete(declaration); + } + }); + if (commonDeclarations.size === 0) { + return void 0; + } + } + return commonDeclarations; + } + function getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment) { + const property = getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment); + return property && !(getCheckFlags(property) & 16 /* ReadPartial */) ? property : void 0; + } + function getReducedType(type) { + if (type.flags & 1048576 /* Union */ && type.objectFlags & 16777216 /* ContainsIntersections */) { + return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type)); + } else if (type.flags & 2097152 /* Intersection */) { + if (!(type.objectFlags & 16777216 /* IsNeverIntersectionComputed */)) { + type.objectFlags |= 16777216 /* IsNeverIntersectionComputed */ | (some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 33554432 /* IsNeverIntersection */ : 0); + } + return type.objectFlags & 33554432 /* IsNeverIntersection */ ? neverType : type; + } + return type; + } + function getReducedUnionType(unionType) { + const reducedTypes = sameMap(unionType.types, getReducedType); + if (reducedTypes === unionType.types) { + return unionType; + } + const reduced = getUnionType(reducedTypes); + if (reduced.flags & 1048576 /* Union */) { + reduced.resolvedReducedType = reduced; + } + return reduced; + } + function isNeverReducedProperty(prop) { + return isDiscriminantWithNeverType(prop) || isConflictingPrivateProperty(prop); + } + function isDiscriminantWithNeverType(prop) { + return !(prop.flags & 16777216 /* Optional */) && (getCheckFlags(prop) & (192 /* Discriminant */ | 131072 /* HasNeverType */)) === 192 /* Discriminant */ && !!(getTypeOfSymbol(prop).flags & 131072 /* Never */); + } + function isConflictingPrivateProperty(prop) { + return !prop.valueDeclaration && !!(getCheckFlags(prop) & 1024 /* ContainsPrivate */); + } + function isGenericReducibleType(type) { + return !!(type.flags & 1048576 /* Union */ && type.objectFlags & 16777216 /* ContainsIntersections */ && some(type.types, isGenericReducibleType) || type.flags & 2097152 /* Intersection */ && isReducibleIntersection(type)); + } + function isReducibleIntersection(type) { + const uniqueFilled = type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper)); + return getReducedType(uniqueFilled) !== uniqueFilled; + } + function elaborateNeverIntersection(errorInfo, type) { + if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 33554432 /* IsNeverIntersection */) { + const neverProp = find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType); + if (neverProp) { + return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 536870912 /* NoTypeReduction */ + ), symbolToString(neverProp)); + } + const privateProp = find(getPropertiesOfUnionOrIntersectionType(type), isConflictingPrivateProperty); + if (privateProp) { + return chainDiagnosticMessages(errorInfo, Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 536870912 /* NoTypeReduction */ + ), symbolToString(privateProp)); + } + } + return errorInfo; + } + function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) { + var _a, _b; + type = getReducedApparentType(type); + if (type.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type); + const symbol = resolved.members.get(name); + if (symbol && !includeTypeOnlyMembers && ((_a = type.symbol) == null ? void 0 : _a.flags) & 512 /* ValueModule */ && ((_b = getSymbolLinks(type.symbol).typeOnlyExportStarMap) == null ? void 0 : _b.has(name))) { + return void 0; + } + if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) { + return symbol; + } + if (skipObjectFunctionPropertyAugment) return void 0; + const functionType = resolved === anyFunctionType ? globalFunctionType : resolved.callSignatures.length ? globalCallableFunctionType : resolved.constructSignatures.length ? globalNewableFunctionType : void 0; + if (functionType) { + const symbol2 = getPropertyOfObjectType(functionType, name); + if (symbol2) { + return symbol2; + } + } + return getPropertyOfObjectType(globalObjectType, name); + } + if (type.flags & 2097152 /* Intersection */) { + const prop = getPropertyOfUnionOrIntersectionType( + type, + name, + /*skipObjectFunctionPropertyAugment*/ + true + ); + if (prop) { + return prop; + } + if (!skipObjectFunctionPropertyAugment) { + return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment); + } + return void 0; + } + if (type.flags & 1048576 /* Union */) { + return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment); + } + return void 0; + } + function getSignaturesOfStructuredType(type, kind) { + if (type.flags & 3670016 /* StructuredType */) { + const resolved = resolveStructuredTypeMembers(type); + return kind === 0 /* Call */ ? resolved.callSignatures : resolved.constructSignatures; + } + return emptyArray; + } + function getSignaturesOfType(type, kind) { + const result = getSignaturesOfStructuredType(getReducedApparentType(type), kind); + if (kind === 0 /* Call */ && !length(result) && type.flags & 1048576 /* Union */) { + if (type.arrayFallbackSignatures) { + return type.arrayFallbackSignatures; + } + let memberName; + if (everyType(type, (t) => { + var _a; + return !!((_a = t.symbol) == null ? void 0 : _a.parent) && isArrayOrTupleSymbol(t.symbol.parent) && (!memberName ? (memberName = t.symbol.escapedName, true) : memberName === t.symbol.escapedName); + })) { + const arrayArg = mapType(type, (t) => getMappedType((isReadonlyArraySymbol(t.symbol.parent) ? globalReadonlyArrayType : globalArrayType).typeParameters[0], t.mapper)); + const arrayType = createArrayType(arrayArg, someType(type, (t) => isReadonlyArraySymbol(t.symbol.parent))); + return type.arrayFallbackSignatures = getSignaturesOfType(getTypeOfPropertyOfType(arrayType, memberName), kind); + } + type.arrayFallbackSignatures = result; + } + return result; + } + function isArrayOrTupleSymbol(symbol) { + if (!symbol || !globalArrayType.symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalArrayType.symbol) || !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function isReadonlyArraySymbol(symbol) { + if (!symbol || !globalReadonlyArrayType.symbol) { + return false; + } + return !!getSymbolIfSameReference(symbol, globalReadonlyArrayType.symbol); + } + function findIndexInfo(indexInfos, keyType) { + return find(indexInfos, (info) => info.keyType === keyType); + } + function findApplicableIndexInfo(indexInfos, keyType) { + let stringIndexInfo; + let applicableInfo; + let applicableInfos; + for (const info of indexInfos) { + if (info.keyType === stringType) { + stringIndexInfo = info; + } else if (isApplicableIndexType(keyType, info.keyType)) { + if (!applicableInfo) { + applicableInfo = info; + } else { + (applicableInfos || (applicableInfos = [applicableInfo])).push(info); + } + } + } + return applicableInfos ? createIndexInfo(unknownType, getIntersectionType(map(applicableInfos, (info) => info.type)), reduceLeft( + applicableInfos, + (isReadonly, info) => isReadonly && info.isReadonly, + /*initial*/ + true + )) : applicableInfo ? applicableInfo : stringIndexInfo && isApplicableIndexType(keyType, stringType) ? stringIndexInfo : void 0; + } + function isApplicableIndexType(source, target) { + return isTypeAssignableTo(source, target) || target === stringType && isTypeAssignableTo(source, numberType) || target === numberType && (source === numericStringType || !!(source.flags & 128 /* StringLiteral */) && isNumericLiteralName(source.value)); + } + function getIndexInfosOfStructuredType(type) { + if (type.flags & 3670016 /* StructuredType */) { + const resolved = resolveStructuredTypeMembers(type); + return resolved.indexInfos; + } + return emptyArray; + } + function getIndexInfosOfType(type) { + return getIndexInfosOfStructuredType(getReducedApparentType(type)); + } + function getIndexInfoOfType(type, keyType) { + return findIndexInfo(getIndexInfosOfType(type), keyType); + } + function getIndexTypeOfType(type, keyType) { + var _a; + return (_a = getIndexInfoOfType(type, keyType)) == null ? void 0 : _a.type; + } + function getApplicableIndexInfos(type, keyType) { + return getIndexInfosOfType(type).filter((info) => isApplicableIndexType(keyType, info.keyType)); + } + function getApplicableIndexInfo(type, keyType) { + return findApplicableIndexInfo(getIndexInfosOfType(type), keyType); + } + function getApplicableIndexInfoForName(type, name) { + return getApplicableIndexInfo(type, isLateBoundName(name) ? esSymbolType : getStringLiteralType(unescapeLeadingUnderscores(name))); + } + function getTypeParametersFromDeclaration(declaration) { + var _a; + let result; + for (const node of getEffectiveTypeParameterDeclarations(declaration)) { + result = appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol)); + } + return (result == null ? void 0 : result.length) ? result : isFunctionDeclaration(declaration) ? (_a = getSignatureOfTypeTag(declaration)) == null ? void 0 : _a.typeParameters : void 0; + } + function symbolsToArray(symbols) { + const result = []; + symbols.forEach((symbol, id) => { + if (!isReservedMemberName(id)) { + result.push(symbol); + } + }); + return result; + } + function tryFindAmbientModule(moduleName, withAugmentations) { + if (isExternalModuleNameRelative(moduleName)) { + return void 0; + } + const symbol = getSymbol(globals, '"' + moduleName + '"', 512 /* ValueModule */); + return symbol && withAugmentations ? getMergedSymbol(symbol) : symbol; + } + function hasEffectiveQuestionToken(node) { + return hasQuestionToken(node) || isOptionalJSDocPropertyLikeTag(node) || isParameter(node) && isJSDocOptionalParameter(node); + } + function isOptionalParameter(node) { + if (hasEffectiveQuestionToken(node)) { + return true; + } + if (!isParameter(node)) { + return false; + } + if (node.initializer) { + const signature = getSignatureFromDeclaration(node.parent); + const parameterIndex = node.parent.parameters.indexOf(node); + Debug.assert(parameterIndex >= 0); + return parameterIndex >= getMinArgumentCount(signature, 1 /* StrongArityForUntypedJS */ | 2 /* VoidIsNonOptional */); + } + const iife = getImmediatelyInvokedFunctionExpression(node.parent); + if (iife) { + return !node.type && !node.dotDotDotToken && node.parent.parameters.indexOf(node) >= getEffectiveCallArguments(iife).length; + } + return false; + } + function isOptionalPropertyDeclaration(node) { + return isPropertyDeclaration(node) && !hasAccessorModifier(node) && node.questionToken; + } + function createTypePredicate(kind, parameterName, parameterIndex, type) { + return { kind, parameterName, parameterIndex, type }; + } + function getMinTypeArgumentCount(typeParameters) { + let minTypeArgumentCount = 0; + if (typeParameters) { + for (let i = 0; i < typeParameters.length; i++) { + if (!hasTypeParameterDefault(typeParameters[i])) { + minTypeArgumentCount = i + 1; + } + } + } + return minTypeArgumentCount; + } + function fillMissingTypeArguments(typeArguments, typeParameters, minTypeArgumentCount, isJavaScriptImplicitAny) { + const numTypeParameters = length(typeParameters); + if (!numTypeParameters) { + return []; + } + const numTypeArguments = length(typeArguments); + if (isJavaScriptImplicitAny || numTypeArguments >= minTypeArgumentCount && numTypeArguments <= numTypeParameters) { + const result = typeArguments ? typeArguments.slice() : []; + for (let i = numTypeArguments; i < numTypeParameters; i++) { + result[i] = errorType; + } + const baseDefaultType = getDefaultTypeArgumentType(isJavaScriptImplicitAny); + for (let i = numTypeArguments; i < numTypeParameters; i++) { + let defaultType = getDefaultFromTypeParameter(typeParameters[i]); + if (isJavaScriptImplicitAny && defaultType && (isTypeIdenticalTo(defaultType, unknownType) || isTypeIdenticalTo(defaultType, emptyObjectType))) { + defaultType = anyType; + } + result[i] = defaultType ? instantiateType(defaultType, createTypeMapper(typeParameters, result)) : baseDefaultType; + } + result.length = typeParameters.length; + return result; + } + return typeArguments && typeArguments.slice(); + } + function getSignatureFromDeclaration(declaration) { + const links = getNodeLinks(declaration); + if (!links.resolvedSignature) { + const parameters = []; + let flags = 0 /* None */; + let minArgumentCount = 0; + let thisParameter; + let thisTag = isInJSFile(declaration) ? getJSDocThisTag(declaration) : void 0; + let hasThisParameter = false; + const iife = getImmediatelyInvokedFunctionExpression(declaration); + const isJSConstructSignature = isJSDocConstructSignature(declaration); + const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration); + if (isUntypedSignatureInJSFile) { + flags |= 32 /* IsUntypedSignatureInJSFile */; + } + for (let i = isJSConstructSignature ? 1 : 0; i < declaration.parameters.length; i++) { + const param = declaration.parameters[i]; + if (isInJSFile(param) && isJSDocThisTag(param)) { + thisTag = param; + continue; + } + let paramSymbol = param.symbol; + const type = isJSDocParameterTag(param) ? param.typeExpression && param.typeExpression.type : param.type; + if (paramSymbol && !!(paramSymbol.flags & 4 /* Property */) && !isBindingPattern(param.name)) { + const resolvedSymbol = resolveName( + param, + paramSymbol.escapedName, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + paramSymbol = resolvedSymbol; + } + if (i === 0 && paramSymbol.escapedName === "this" /* This */) { + hasThisParameter = true; + thisParameter = param.symbol; + } else { + parameters.push(paramSymbol); + } + if (type && type.kind === 201 /* LiteralType */) { + flags |= 2 /* HasLiteralTypes */; + } + const isOptionalParameter2 = hasEffectiveQuestionToken(param) || isParameter(param) && param.initializer || isRestParameter(param) || iife && parameters.length > iife.arguments.length && !type; + if (!isOptionalParameter2) { + minArgumentCount = parameters.length; + } + } + if ((declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) && hasBindableName(declaration) && (!hasThisParameter || !thisParameter)) { + const otherKind = declaration.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; + const other = getDeclarationOfKind(getSymbolOfDeclaration(declaration), otherKind); + if (other) { + thisParameter = getAnnotatedAccessorThisParameter(other); + } + } + if (thisTag && thisTag.typeExpression) { + thisParameter = createSymbolWithType(createSymbol(1 /* FunctionScopedVariable */, "this" /* This */), getTypeFromTypeNode(thisTag.typeExpression)); + } + const hostDeclaration = isJSDocSignature(declaration) ? getEffectiveJSDocHost(declaration) : declaration; + const classType = hostDeclaration && isConstructorDeclaration(hostDeclaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(hostDeclaration.parent.symbol)) : void 0; + const typeParameters = classType ? classType.localTypeParameters : getTypeParametersFromDeclaration(declaration); + if (hasRestParameter(declaration) || isInJSFile(declaration) && maybeAddJsSyntheticRestParameter(declaration, parameters)) { + flags |= 1 /* HasRestParameter */; + } + if (isConstructorTypeNode(declaration) && hasSyntacticModifier(declaration, 64 /* Abstract */) || isConstructorDeclaration(declaration) && hasSyntacticModifier(declaration.parent, 64 /* Abstract */)) { + flags |= 4 /* Abstract */; + } + links.resolvedSignature = createSignature( + declaration, + typeParameters, + thisParameter, + parameters, + /*resolvedReturnType*/ + void 0, + /*resolvedTypePredicate*/ + void 0, + minArgumentCount, + flags + ); + } + return links.resolvedSignature; + } + function maybeAddJsSyntheticRestParameter(declaration, parameters) { + if (isJSDocSignature(declaration) || !containsArgumentsReference(declaration)) { + return false; + } + const lastParam = lastOrUndefined(declaration.parameters); + const lastParamTags = lastParam ? getJSDocParameterTags(lastParam) : getJSDocTags(declaration).filter(isJSDocParameterTag); + const lastParamVariadicType = firstDefined(lastParamTags, (p) => p.typeExpression && isJSDocVariadicType(p.typeExpression.type) ? p.typeExpression.type : void 0); + const syntheticArgsSymbol = createSymbol(3 /* Variable */, "args", 32768 /* RestParameter */); + if (lastParamVariadicType) { + syntheticArgsSymbol.links.type = createArrayType(getTypeFromTypeNode(lastParamVariadicType.type)); + } else { + syntheticArgsSymbol.links.checkFlags |= 65536 /* DeferredType */; + syntheticArgsSymbol.links.deferralParent = neverType; + syntheticArgsSymbol.links.deferralConstituents = [anyArrayType]; + syntheticArgsSymbol.links.deferralWriteConstituents = [anyArrayType]; + } + if (lastParamVariadicType) { + parameters.pop(); + } + parameters.push(syntheticArgsSymbol); + return true; + } + function getSignatureOfTypeTag(node) { + if (!(isInJSFile(node) && isFunctionLikeDeclaration(node))) return void 0; + const typeTag = getJSDocTypeTag(node); + return (typeTag == null ? void 0 : typeTag.typeExpression) && getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + } + function getParameterTypeOfTypeTag(func, parameter) { + const signature = getSignatureOfTypeTag(func); + if (!signature) return void 0; + const pos = func.parameters.indexOf(parameter); + return parameter.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos); + } + function getReturnTypeOfTypeTag(node) { + const signature = getSignatureOfTypeTag(node); + return signature && getReturnTypeOfSignature(signature); + } + function containsArgumentsReference(declaration) { + const links = getNodeLinks(declaration); + if (links.containsArgumentsReference === void 0) { + if (links.flags & 512 /* CaptureArguments */) { + links.containsArgumentsReference = true; + } else { + links.containsArgumentsReference = traverse(declaration.body); + } + } + return links.containsArgumentsReference; + function traverse(node) { + if (!node) return false; + switch (node.kind) { + case 80 /* Identifier */: + return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return node.name.kind === 167 /* ComputedPropertyName */ && traverse(node.name); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return traverse(node.expression); + case 303 /* PropertyAssignment */: + return traverse(node.initializer); + default: + return !nodeStartsNewLexicalEnvironment(node) && !isPartOfTypeNode(node) && !!forEachChild(node, traverse); + } + } + } + function getSignaturesOfSymbol(symbol) { + if (!symbol || !symbol.declarations) return emptyArray; + const result = []; + for (let i = 0; i < symbol.declarations.length; i++) { + const decl = symbol.declarations[i]; + if (!isFunctionLike(decl)) continue; + if (i > 0 && decl.body) { + const previous = symbol.declarations[i - 1]; + if (decl.parent === previous.parent && decl.kind === previous.kind && decl.pos === previous.end) { + continue; + } + } + if (isInJSFile(decl) && decl.jsDoc) { + const tags = getJSDocOverloadTags(decl); + if (length(tags)) { + for (const tag of tags) { + const jsDocSignature = tag.typeExpression; + if (jsDocSignature.type === void 0 && !isConstructorDeclaration(decl)) { + reportImplicitAny(jsDocSignature, anyType); + } + result.push(getSignatureFromDeclaration(jsDocSignature)); + } + continue; + } + } + result.push( + !isFunctionExpressionOrArrowFunction(decl) && !isObjectLiteralMethod(decl) && getSignatureOfTypeTag(decl) || getSignatureFromDeclaration(decl) + ); + } + return result; + } + function resolveExternalModuleTypeByLiteral(name) { + const moduleSym = resolveExternalModuleName(name, name); + if (moduleSym) { + const resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym); + if (resolvedModuleSymbol) { + return getTypeOfSymbol(resolvedModuleSymbol); + } + } + return anyType; + } + function getThisTypeOfSignature(signature) { + if (signature.thisParameter) { + return getTypeOfSymbol(signature.thisParameter); + } + } + function getTypePredicateOfSignature(signature) { + if (!signature.resolvedTypePredicate) { + if (signature.target) { + const targetTypePredicate = getTypePredicateOfSignature(signature.target); + signature.resolvedTypePredicate = targetTypePredicate ? instantiateTypePredicate(targetTypePredicate, signature.mapper) : noTypePredicate; + } else if (signature.compositeSignatures) { + signature.resolvedTypePredicate = getUnionOrIntersectionTypePredicate(signature.compositeSignatures, signature.compositeKind) || noTypePredicate; + } else { + const type = signature.declaration && getEffectiveReturnTypeNode(signature.declaration); + let jsdocPredicate; + if (!type) { + const jsdocSignature = getSignatureOfTypeTag(signature.declaration); + if (jsdocSignature && signature !== jsdocSignature) { + jsdocPredicate = getTypePredicateOfSignature(jsdocSignature); + } + } + if (type || jsdocPredicate) { + signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate; + } else if (signature.declaration && isFunctionLikeDeclaration(signature.declaration) && (!signature.resolvedReturnType || signature.resolvedReturnType.flags & 16 /* Boolean */) && getParameterCount(signature) > 0) { + const { declaration } = signature; + signature.resolvedTypePredicate = noTypePredicate; + signature.resolvedTypePredicate = getTypePredicateFromBody(declaration) || noTypePredicate; + } else { + signature.resolvedTypePredicate = noTypePredicate; + } + } + Debug.assert(!!signature.resolvedTypePredicate); + } + return signature.resolvedTypePredicate === noTypePredicate ? void 0 : signature.resolvedTypePredicate; + } + function createTypePredicateFromTypePredicateNode(node, signature) { + const parameterName = node.parameterName; + const type = node.type && getTypeFromTypeNode(node.type); + return parameterName.kind === 197 /* ThisType */ ? createTypePredicate( + node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, + /*parameterName*/ + void 0, + /*parameterIndex*/ + void 0, + type + ) : createTypePredicate(node.assertsModifier ? 3 /* AssertsIdentifier */ : 1 /* Identifier */, parameterName.escapedText, findIndex(signature.parameters, (p) => p.escapedName === parameterName.escapedText), type); + } + function getUnionOrIntersectionType(types, kind, unionReduction) { + return kind !== 2097152 /* Intersection */ ? getUnionType(types, unionReduction) : getIntersectionType(types); + } + function getReturnTypeOfSignature(signature) { + if (!signature.resolvedReturnType) { + if (!pushTypeResolution(signature, 3 /* ResolvedReturnType */)) { + return errorType; + } + let type = signature.target ? instantiateType(getReturnTypeOfSignature(signature.target), signature.mapper) : signature.compositeSignatures ? instantiateType(getUnionOrIntersectionType(map(signature.compositeSignatures, getReturnTypeOfSignature), signature.compositeKind, 2 /* Subtype */), signature.mapper) : getReturnTypeFromAnnotation(signature.declaration) || (nodeIsMissing(signature.declaration.body) ? anyType : getReturnTypeFromBody(signature.declaration)); + if (signature.flags & 8 /* IsInnerCallChain */) { + type = addOptionalTypeMarker(type); + } else if (signature.flags & 16 /* IsOuterCallChain */) { + type = getOptionalType(type); + } + if (!popTypeResolution()) { + if (signature.declaration) { + const typeNode = getEffectiveReturnTypeNode(signature.declaration); + if (typeNode) { + error(typeNode, Diagnostics.Return_type_annotation_circularly_references_itself); + } else if (noImplicitAny) { + const declaration = signature.declaration; + const name = getNameOfDeclaration(declaration); + if (name) { + error(name, Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, declarationNameToString(name)); + } else { + error(declaration, Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions); + } + } + } + type = anyType; + } + signature.resolvedReturnType ?? (signature.resolvedReturnType = type); + } + return signature.resolvedReturnType; + } + function getReturnTypeFromAnnotation(declaration) { + if (declaration.kind === 176 /* Constructor */) { + return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol)); + } + const typeNode = getEffectiveReturnTypeNode(declaration); + if (isJSDocSignature(declaration)) { + const root = getJSDocRoot(declaration); + if (root && isConstructorDeclaration(root.parent) && !typeNode) { + return getDeclaredTypeOfClassOrInterface(getMergedSymbol(root.parent.parent.symbol)); + } + } + if (isJSDocConstructSignature(declaration)) { + return getTypeFromTypeNode(declaration.parameters[0].type); + } + if (typeNode) { + return getTypeFromTypeNode(typeNode); + } + if (declaration.kind === 177 /* GetAccessor */ && hasBindableName(declaration)) { + const jsDocType = isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration); + if (jsDocType) { + return jsDocType; + } + const setter = getDeclarationOfKind(getSymbolOfDeclaration(declaration), 178 /* SetAccessor */); + const setterType = getAnnotatedAccessorType(setter); + if (setterType) { + return setterType; + } + } + return getReturnTypeOfTypeTag(declaration); + } + function isResolvingReturnTypeOfSignature(signature) { + return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0; + } + function getRestTypeOfSignature(signature) { + return tryGetRestTypeOfSignature(signature) || anyType; + } + function tryGetRestTypeOfSignature(signature) { + if (signatureHasRestParameter(signature)) { + const sigRestType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); + const restType = isTupleType(sigRestType) ? getRestTypeOfTupleType(sigRestType) : sigRestType; + return restType && getIndexTypeOfType(restType, numberType); + } + return void 0; + } + function getSignatureInstantiation(signature, typeArguments, isJavascript, inferredTypeParameters) { + const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, fillMissingTypeArguments(typeArguments, signature.typeParameters, getMinTypeArgumentCount(signature.typeParameters), isJavascript)); + if (inferredTypeParameters) { + const returnSignature = getSingleCallOrConstructSignature(getReturnTypeOfSignature(instantiatedSignature)); + if (returnSignature) { + const newReturnSignature = cloneSignature(returnSignature); + newReturnSignature.typeParameters = inferredTypeParameters; + const newInstantiatedSignature = cloneSignature(instantiatedSignature); + newInstantiatedSignature.resolvedReturnType = getOrCreateTypeFromSignature(newReturnSignature); + return newInstantiatedSignature; + } + } + return instantiatedSignature; + } + function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) { + const instantiations = signature.instantiations || (signature.instantiations = /* @__PURE__ */ new Map()); + const id = getTypeListId(typeArguments); + let instantiation = instantiations.get(id); + if (!instantiation) { + instantiations.set(id, instantiation = createSignatureInstantiation(signature, typeArguments)); + } + return instantiation; + } + function createSignatureInstantiation(signature, typeArguments) { + return instantiateSignature( + signature, + createSignatureTypeMapper(signature, typeArguments), + /*eraseTypeParameters*/ + true + ); + } + function createSignatureTypeMapper(signature, typeArguments) { + return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments); + } + function getErasedSignature(signature) { + return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature; + } + function createErasedSignature(signature) { + return instantiateSignature( + signature, + createTypeEraser(signature.typeParameters), + /*eraseTypeParameters*/ + true + ); + } + function getCanonicalSignature(signature) { + return signature.typeParameters ? signature.canonicalSignatureCache || (signature.canonicalSignatureCache = createCanonicalSignature(signature)) : signature; + } + function createCanonicalSignature(signature) { + return getSignatureInstantiation( + signature, + map(signature.typeParameters, (tp) => tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp), + isInJSFile(signature.declaration) + ); + } + function getImplementationSignature(signature) { + return signature.typeParameters ? signature.implementationSignatureCache || (signature.implementationSignatureCache = createImplementationSignature(signature)) : signature; + } + function createImplementationSignature(signature) { + return signature.typeParameters ? instantiateSignature(signature, createTypeMapper([], [])) : signature; + } + function getBaseSignature(signature) { + const typeParameters = signature.typeParameters; + if (typeParameters) { + if (signature.baseSignatureCache) { + return signature.baseSignatureCache; + } + const typeEraser = createTypeEraser(typeParameters); + const baseConstraintMapper = createTypeMapper(typeParameters, map(typeParameters, (tp) => getConstraintOfTypeParameter(tp) || unknownType)); + let baseConstraints = map(typeParameters, (tp) => instantiateType(tp, baseConstraintMapper) || unknownType); + for (let i = 0; i < typeParameters.length - 1; i++) { + baseConstraints = instantiateTypes(baseConstraints, baseConstraintMapper); + } + baseConstraints = instantiateTypes(baseConstraints, typeEraser); + return signature.baseSignatureCache = instantiateSignature( + signature, + createTypeMapper(typeParameters, baseConstraints), + /*eraseTypeParameters*/ + true + ); + } + return signature; + } + function getOrCreateTypeFromSignature(signature, outerTypeParameters) { + var _a; + if (!signature.isolatedSignatureType) { + const kind = (_a = signature.declaration) == null ? void 0 : _a.kind; + const isConstructor = kind === void 0 || kind === 176 /* Constructor */ || kind === 180 /* ConstructSignature */ || kind === 185 /* ConstructorType */; + const type = createObjectType(16 /* Anonymous */ | 134217728 /* SingleSignatureType */, createSymbol(16 /* Function */, "__function" /* Function */)); + if (signature.declaration && !nodeIsSynthesized(signature.declaration)) { + type.symbol.declarations = [signature.declaration]; + type.symbol.valueDeclaration = signature.declaration; + } + outerTypeParameters || (outerTypeParameters = signature.declaration && getOuterTypeParameters( + signature.declaration, + /*includeThisTypes*/ + true + )); + type.outerTypeParameters = outerTypeParameters; + type.members = emptySymbols; + type.properties = emptyArray; + type.callSignatures = !isConstructor ? [signature] : emptyArray; + type.constructSignatures = isConstructor ? [signature] : emptyArray; + type.indexInfos = emptyArray; + signature.isolatedSignatureType = type; + } + return signature.isolatedSignatureType; + } + function getIndexSymbol(symbol) { + return symbol.members ? getIndexSymbolFromSymbolTable(symbol.members) : void 0; + } + function getIndexSymbolFromSymbolTable(symbolTable) { + return symbolTable.get("__index" /* Index */); + } + function createIndexInfo(keyType, type, isReadonly, declaration) { + return { keyType, type, isReadonly, declaration }; + } + function getIndexInfosOfSymbol(symbol) { + const indexSymbol = getIndexSymbol(symbol); + return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol) : emptyArray; + } + function getIndexInfosOfIndexSymbol(indexSymbol) { + if (indexSymbol.declarations) { + const indexInfos = []; + for (const declaration of indexSymbol.declarations) { + if (declaration.parameters.length === 1) { + const parameter = declaration.parameters[0]; + if (parameter.type) { + forEachType(getTypeFromTypeNode(parameter.type), (keyType) => { + if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos, keyType)) { + indexInfos.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, hasEffectiveModifier(declaration, 8 /* Readonly */), declaration)); + } + }); + } + } + } + return indexInfos; + } + return emptyArray; + } + function isValidIndexKeyType(type) { + return !!(type.flags & (4 /* String */ | 8 /* Number */ | 4096 /* ESSymbol */)) || isPatternLiteralType(type) || !!(type.flags & 2097152 /* Intersection */) && !isGenericType(type) && some(type.types, isValidIndexKeyType); + } + function getConstraintDeclaration(type) { + return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0]; + } + function getInferredTypeParameterConstraint(typeParameter, omitTypeReferences) { + var _a; + let inferences; + if ((_a = typeParameter.symbol) == null ? void 0 : _a.declarations) { + for (const declaration of typeParameter.symbol.declarations) { + if (declaration.parent.kind === 195 /* InferType */) { + const [childTypeParameter = declaration.parent, grandParent] = walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent); + if (grandParent.kind === 183 /* TypeReference */ && !omitTypeReferences) { + const typeReference = grandParent; + const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReference); + if (typeParameters) { + const index = typeReference.typeArguments.indexOf(childTypeParameter); + if (index < typeParameters.length) { + const declaredConstraint = getConstraintOfTypeParameter(typeParameters[index]); + if (declaredConstraint) { + const mapper = makeDeferredTypeMapper( + typeParameters, + typeParameters.map((_, index2) => () => { + return getEffectiveTypeArgumentAtIndex(typeReference, typeParameters, index2); + }) + ); + const constraint = instantiateType(declaredConstraint, mapper); + if (constraint !== typeParameter) { + inferences = append(inferences, constraint); + } + } + } + } + } else if (grandParent.kind === 169 /* Parameter */ && grandParent.dotDotDotToken || grandParent.kind === 191 /* RestType */ || grandParent.kind === 202 /* NamedTupleMember */ && grandParent.dotDotDotToken) { + inferences = append(inferences, createArrayType(unknownType)); + } else if (grandParent.kind === 204 /* TemplateLiteralTypeSpan */) { + inferences = append(inferences, stringType); + } else if (grandParent.kind === 168 /* TypeParameter */ && grandParent.parent.kind === 200 /* MappedType */) { + inferences = append(inferences, stringNumberSymbolType); + } else if (grandParent.kind === 200 /* MappedType */ && grandParent.type && skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 194 /* ConditionalType */ && grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 200 /* MappedType */ && grandParent.parent.checkType.type) { + const checkMappedType2 = grandParent.parent.checkType; + const nodeType = getTypeFromTypeNode(checkMappedType2.type); + inferences = append(inferences, instantiateType(nodeType, makeUnaryTypeMapper(getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(checkMappedType2.typeParameter)), checkMappedType2.typeParameter.constraint ? getTypeFromTypeNode(checkMappedType2.typeParameter.constraint) : stringNumberSymbolType))); + } + } + } + } + return inferences && getIntersectionType(inferences); + } + function getConstraintFromTypeParameter(typeParameter) { + if (!typeParameter.constraint) { + if (typeParameter.target) { + const targetConstraint = getConstraintOfTypeParameter(typeParameter.target); + typeParameter.constraint = targetConstraint ? instantiateType(targetConstraint, typeParameter.mapper) : noConstraintType; + } else { + const constraintDeclaration = getConstraintDeclaration(typeParameter); + if (!constraintDeclaration) { + typeParameter.constraint = getInferredTypeParameterConstraint(typeParameter) || noConstraintType; + } else { + let type = getTypeFromTypeNode(constraintDeclaration); + if (type.flags & 1 /* Any */ && !isErrorType(type)) { + type = constraintDeclaration.parent.parent.kind === 200 /* MappedType */ ? stringNumberSymbolType : unknownType; + } + typeParameter.constraint = type; + } + } + } + return typeParameter.constraint === noConstraintType ? void 0 : typeParameter.constraint; + } + function getParentSymbolOfTypeParameter(typeParameter) { + const tp = getDeclarationOfKind(typeParameter.symbol, 168 /* TypeParameter */); + const host2 = isJSDocTemplateTag(tp.parent) ? getEffectiveContainerForJSDocTemplateTag(tp.parent) : tp.parent; + return host2 && getSymbolOfNode(host2); + } + function getTypeListId(types) { + let result = ""; + if (types) { + const length2 = types.length; + let i = 0; + while (i < length2) { + const startId = types[i].id; + let count = 1; + while (i + count < length2 && types[i + count].id === startId + count) { + count++; + } + if (result.length) { + result += ","; + } + result += startId; + if (count > 1) { + result += ":" + count; + } + i += count; + } + } + return result; + } + function getAliasId(aliasSymbol, aliasTypeArguments) { + return aliasSymbol ? `@${getSymbolId(aliasSymbol)}` + (aliasTypeArguments ? `:${getTypeListId(aliasTypeArguments)}` : "") : ""; + } + function getPropagatingFlagsOfTypes(types, excludeKinds) { + let result = 0; + for (const type of types) { + if (excludeKinds === void 0 || !(type.flags & excludeKinds)) { + result |= getObjectFlags(type); + } + } + return result & 458752 /* PropagatingFlags */; + } + function tryCreateTypeReference(target, typeArguments) { + if (some(typeArguments) && target === emptyGenericType) { + return unknownType; + } + return createTypeReference(target, typeArguments); + } + function createTypeReference(target, typeArguments) { + const id = getTypeListId(typeArguments); + let type = target.instantiations.get(id); + if (!type) { + type = createObjectType(4 /* Reference */, target.symbol); + target.instantiations.set(id, type); + type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments) : 0; + type.target = target; + type.resolvedTypeArguments = typeArguments; + } + return type; + } + function cloneTypeReference(source) { + const type = createTypeWithSymbol(source.flags, source.symbol); + type.objectFlags = source.objectFlags; + type.target = source.target; + type.resolvedTypeArguments = source.resolvedTypeArguments; + return type; + } + function createDeferredTypeReference(target, node, mapper, aliasSymbol, aliasTypeArguments) { + if (!aliasSymbol) { + aliasSymbol = getAliasSymbolForTypeNode(node); + const localAliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); + aliasTypeArguments = mapper ? instantiateTypes(localAliasTypeArguments, mapper) : localAliasTypeArguments; + } + const type = createObjectType(4 /* Reference */, target.symbol); + type.target = target; + type.node = node; + type.mapper = mapper; + type.aliasSymbol = aliasSymbol; + type.aliasTypeArguments = aliasTypeArguments; + return type; + } + function getTypeArguments(type) { + var _a, _b; + if (!type.resolvedTypeArguments) { + if (!pushTypeResolution(type, 5 /* ResolvedTypeArguments */)) { + return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; + } + const node = type.node; + const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + if (popTypeResolution()) { + type.resolvedTypeArguments ?? (type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments); + } else { + type.resolvedTypeArguments ?? (type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray); + error( + type.node || currentNode, + type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, + type.target.symbol && symbolToString(type.target.symbol) + ); + } + } + return type.resolvedTypeArguments; + } + function getTypeReferenceArity(type) { + return length(type.target.typeParameters); + } + function getTypeFromClassOrInterfaceReference(node, symbol) { + const type = getDeclaredTypeOfSymbol(getMergedSymbol(symbol)); + const typeParameters = type.localTypeParameters; + if (typeParameters) { + const numTypeArguments = length(node.typeArguments); + const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); + const isJs = isInJSFile(node); + const isJsImplicitAny = !noImplicitAny && isJs; + if (!isJsImplicitAny && (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length)) { + const missingAugmentsTag = isJs && isExpressionWithTypeArguments(node) && !isJSDocAugmentsTag(node.parent); + const diag2 = minTypeArgumentCount === typeParameters.length ? missingAugmentsTag ? Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_1_type_argument_s : missingAugmentsTag ? Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments; + const typeStr = typeToString( + type, + /*enclosingDeclaration*/ + void 0, + 2 /* WriteArrayAsGenericType */ + ); + error(node, diag2, typeStr, minTypeArgumentCount, typeParameters.length); + if (!isJs) { + return errorType; + } + } + if (node.kind === 183 /* TypeReference */ && isDeferredTypeReferenceNode(node, length(node.typeArguments) !== typeParameters.length)) { + return createDeferredTypeReference( + type, + node, + /*mapper*/ + void 0 + ); + } + const typeArguments = concatenate(type.outerTypeParameters, fillMissingTypeArguments(typeArgumentsFromTypeReferenceNode(node), typeParameters, minTypeArgumentCount, isJs)); + return createTypeReference(type, typeArguments); + } + return checkNoTypeArguments(node, symbol) ? type : errorType; + } + function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) { + const type = getDeclaredTypeOfSymbol(symbol); + if (type === intrinsicMarkerType) { + const typeKind = intrinsicTypeKinds.get(symbol.escapedName); + if (typeKind !== void 0 && typeArguments && typeArguments.length === 1) { + return typeKind === 4 /* NoInfer */ ? getNoInferType(typeArguments[0]) : getStringMappingType(symbol, typeArguments[0]); + } + } + const links = getSymbolLinks(symbol); + const typeParameters = links.typeParameters; + const id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments); + let instantiation = links.instantiations.get(id); + if (!instantiation) { + links.instantiations.set(id, instantiation = instantiateTypeWithAlias(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(symbol.valueDeclaration))), aliasSymbol, aliasTypeArguments)); + } + return instantiation; + } + function getTypeFromTypeAliasReference(node, symbol) { + if (getCheckFlags(symbol) & 1048576 /* Unresolved */) { + const typeArguments = typeArgumentsFromTypeReferenceNode(node); + const id = getAliasId(symbol, typeArguments); + let errorType2 = errorTypes.get(id); + if (!errorType2) { + errorType2 = createIntrinsicType( + 1 /* Any */, + "error", + /*objectFlags*/ + void 0, + `alias ${id}` + ); + errorType2.aliasSymbol = symbol; + errorType2.aliasTypeArguments = typeArguments; + errorTypes.set(id, errorType2); + } + return errorType2; + } + const type = getDeclaredTypeOfSymbol(symbol); + const typeParameters = getSymbolLinks(symbol).typeParameters; + if (typeParameters) { + const numTypeArguments = length(node.typeArguments); + const minTypeArgumentCount = getMinTypeArgumentCount(typeParameters); + if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) { + error( + node, + minTypeArgumentCount === typeParameters.length ? Diagnostics.Generic_type_0_requires_1_type_argument_s : Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, + symbolToString(symbol), + minTypeArgumentCount, + typeParameters.length + ); + return errorType; + } + const aliasSymbol = getAliasSymbolForTypeNode(node); + let newAliasSymbol = aliasSymbol && (isLocalTypeAlias(symbol) || !isLocalTypeAlias(aliasSymbol)) ? aliasSymbol : void 0; + let aliasTypeArguments; + if (newAliasSymbol) { + aliasTypeArguments = getTypeArgumentsForAliasSymbol(newAliasSymbol); + } else if (isTypeReferenceType(node)) { + const aliasSymbol2 = resolveTypeReferenceName( + node, + 2097152 /* Alias */, + /*ignoreErrors*/ + true + ); + if (aliasSymbol2 && aliasSymbol2 !== unknownSymbol) { + const resolved = resolveAlias(aliasSymbol2); + if (resolved && resolved.flags & 524288 /* TypeAlias */) { + newAliasSymbol = resolved; + aliasTypeArguments = typeArgumentsFromTypeReferenceNode(node) || (typeParameters ? [] : void 0); + } + } + } + return getTypeAliasInstantiation(symbol, typeArgumentsFromTypeReferenceNode(node), newAliasSymbol, aliasTypeArguments); + } + return checkNoTypeArguments(node, symbol) ? type : errorType; + } + function isLocalTypeAlias(symbol) { + var _a; + const declaration = (_a = symbol.declarations) == null ? void 0 : _a.find(isTypeAlias); + return !!(declaration && getContainingFunction(declaration)); + } + function getTypeReferenceName(node) { + switch (node.kind) { + case 183 /* TypeReference */: + return node.typeName; + case 233 /* ExpressionWithTypeArguments */: + const expr = node.expression; + if (isEntityNameExpression(expr)) { + return expr; + } + } + return void 0; + } + function getSymbolPath(symbol) { + return symbol.parent ? `${getSymbolPath(symbol.parent)}.${symbol.escapedName}` : symbol.escapedName; + } + function getUnresolvedSymbolForEntityName(name) { + const identifier = name.kind === 166 /* QualifiedName */ ? name.right : name.kind === 211 /* PropertyAccessExpression */ ? name.name : name; + const text = identifier.escapedText; + if (text) { + const parentSymbol = name.kind === 166 /* QualifiedName */ ? getUnresolvedSymbolForEntityName(name.left) : name.kind === 211 /* PropertyAccessExpression */ ? getUnresolvedSymbolForEntityName(name.expression) : void 0; + const path = parentSymbol ? `${getSymbolPath(parentSymbol)}.${text}` : text; + let result = unresolvedSymbols.get(path); + if (!result) { + unresolvedSymbols.set(path, result = createSymbol(524288 /* TypeAlias */, text, 1048576 /* Unresolved */)); + result.parent = parentSymbol; + result.links.declaredType = unresolvedType; + } + return result; + } + return unknownSymbol; + } + function resolveTypeReferenceName(typeReference, meaning, ignoreErrors) { + const name = getTypeReferenceName(typeReference); + if (!name) { + return unknownSymbol; + } + const symbol = resolveEntityName(name, meaning, ignoreErrors); + return symbol && symbol !== unknownSymbol ? symbol : ignoreErrors ? unknownSymbol : getUnresolvedSymbolForEntityName(name); + } + function getTypeReferenceType(node, symbol) { + if (symbol === unknownSymbol) { + return errorType; + } + symbol = getExpandoSymbol(symbol) || symbol; + if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) { + return getTypeFromClassOrInterfaceReference(node, symbol); + } + if (symbol.flags & 524288 /* TypeAlias */) { + return getTypeFromTypeAliasReference(node, symbol); + } + const res = tryGetDeclaredTypeOfSymbol(symbol); + if (res) { + return checkNoTypeArguments(node, symbol) ? getRegularTypeOfLiteralType(res) : errorType; + } + if (symbol.flags & 111551 /* Value */ && isJSDocTypeReference(node)) { + const jsdocType = getTypeFromJSDocValueReference(node, symbol); + if (jsdocType) { + return jsdocType; + } else { + resolveTypeReferenceName(node, 788968 /* Type */); + return getTypeOfSymbol(symbol); + } + } + return errorType; + } + function getTypeFromJSDocValueReference(node, symbol) { + const links = getNodeLinks(node); + if (!links.resolvedJSDocType) { + const valueType = getTypeOfSymbol(symbol); + let typeType = valueType; + if (symbol.valueDeclaration) { + const isImportTypeWithQualifier = node.kind === 205 /* ImportType */ && node.qualifier; + if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) { + typeType = getTypeReferenceType(node, valueType.symbol); + } + } + links.resolvedJSDocType = typeType; + } + return links.resolvedJSDocType; + } + function getNoInferType(type) { + return isNoInferTargetType(type) ? getOrCreateSubstitutionType(type, unknownType) : type; + } + function isNoInferTargetType(type) { + return !!(type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, isNoInferTargetType) || type.flags & 33554432 /* Substitution */ && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 /* Instantiable */ & ~33554432 /* Substitution */) && !isPatternLiteralType(type)); + } + function isNoInferType(type) { + return !!(type.flags & 33554432 /* Substitution */ && type.constraint.flags & 2 /* Unknown */); + } + function getSubstitutionType(baseType, constraint) { + return constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */ ? baseType : getOrCreateSubstitutionType(baseType, constraint); + } + function getOrCreateSubstitutionType(baseType, constraint) { + const id = `${getTypeId(baseType)}>${getTypeId(constraint)}`; + const cached = substitutionTypes.get(id); + if (cached) { + return cached; + } + const result = createType(33554432 /* Substitution */); + result.baseType = baseType; + result.constraint = constraint; + substitutionTypes.set(id, result); + return result; + } + function getSubstitutionIntersection(substitutionType) { + return isNoInferType(substitutionType) ? substitutionType.baseType : getIntersectionType([substitutionType.constraint, substitutionType.baseType]); + } + function isUnaryTupleTypeNode(node) { + return node.kind === 189 /* TupleType */ && node.elements.length === 1; + } + function getImpliedConstraint(type, checkNode, extendsNode) { + return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) : getActualTypeVariable(getTypeFromTypeNode(checkNode)) === getActualTypeVariable(type) ? getTypeFromTypeNode(extendsNode) : void 0; + } + function getConditionalFlowTypeOfType(type, node) { + let constraints; + let covariant = true; + while (node && !isStatement(node) && node.kind !== 320 /* JSDoc */) { + const parent = node.parent; + if (parent.kind === 169 /* Parameter */) { + covariant = !covariant; + } + if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent.kind === 194 /* ConditionalType */ && node === parent.trueType) { + const constraint = getImpliedConstraint(type, parent.checkType, parent.extendsType); + if (constraint) { + constraints = append(constraints, constraint); + } + } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && !parent.nameType && node === parent.type) { + const mappedType = getTypeFromTypeNode(parent); + if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) { + const typeParameter = getHomomorphicTypeVariable(mappedType); + if (typeParameter) { + const constraint = getConstraintOfTypeParameter(typeParameter); + if (constraint && everyType(constraint, isArrayOrTupleType)) { + constraints = append(constraints, getUnionType([numberType, numericStringType])); + } + } + } + } + node = parent; + } + return constraints ? getSubstitutionType(type, getIntersectionType(constraints)) : type; + } + function isJSDocTypeReference(node) { + return !!(node.flags & 16777216 /* JSDoc */) && (node.kind === 183 /* TypeReference */ || node.kind === 205 /* ImportType */); + } + function checkNoTypeArguments(node, symbol) { + if (node.typeArguments) { + error(node, Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? declarationNameToString(node.typeName) : anon); + return false; + } + return true; + } + function getIntendedTypeFromJSDocTypeReference(node) { + if (isIdentifier(node.typeName)) { + const typeArgs = node.typeArguments; + switch (node.typeName.escapedText) { + case "String": + checkNoTypeArguments(node); + return stringType; + case "Number": + checkNoTypeArguments(node); + return numberType; + case "Boolean": + checkNoTypeArguments(node); + return booleanType; + case "Void": + checkNoTypeArguments(node); + return voidType; + case "Undefined": + checkNoTypeArguments(node); + return undefinedType; + case "Null": + checkNoTypeArguments(node); + return nullType; + case "Function": + case "function": + checkNoTypeArguments(node); + return globalFunctionType; + case "array": + return (!typeArgs || !typeArgs.length) && !noImplicitAny ? anyArrayType : void 0; + case "promise": + return (!typeArgs || !typeArgs.length) && !noImplicitAny ? createPromiseType(anyType) : void 0; + case "Object": + if (typeArgs && typeArgs.length === 2) { + if (isJSDocIndexSignature(node)) { + const indexed = getTypeFromTypeNode(typeArgs[0]); + const target = getTypeFromTypeNode(typeArgs[1]); + const indexInfo = indexed === stringType || indexed === numberType ? [createIndexInfo( + indexed, + target, + /*isReadonly*/ + false + )] : emptyArray; + return createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + indexInfo + ); + } + return anyType; + } + checkNoTypeArguments(node); + return !noImplicitAny ? anyType : void 0; + } + } + } + function getTypeFromJSDocNullableTypeNode(node) { + const type = getTypeFromTypeNode(node.type); + return strictNullChecks ? getNullableType(type, 65536 /* Null */) : type; + } + function getTypeFromTypeReference(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + if (isConstTypeReference(node) && isAssertionExpression(node.parent)) { + links.resolvedSymbol = unknownSymbol; + return links.resolvedType = checkExpressionCached(node.parent.expression); + } + let symbol; + let type; + const meaning = 788968 /* Type */; + if (isJSDocTypeReference(node)) { + type = getIntendedTypeFromJSDocTypeReference(node); + if (!type) { + symbol = resolveTypeReferenceName( + node, + meaning, + /*ignoreErrors*/ + true + ); + if (symbol === unknownSymbol) { + symbol = resolveTypeReferenceName(node, meaning | 111551 /* Value */); + } else { + resolveTypeReferenceName(node, meaning); + } + type = getTypeReferenceType(node, symbol); + } + } + if (!type) { + symbol = resolveTypeReferenceName(node, meaning); + type = getTypeReferenceType(node, symbol); + } + links.resolvedSymbol = symbol; + links.resolvedType = type; + } + return links.resolvedType; + } + function typeArgumentsFromTypeReferenceNode(node) { + return map(node.typeArguments, getTypeFromTypeNode); + } + function getTypeFromTypeQueryNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const type = checkExpressionWithTypeArguments(node); + links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(type)); + } + return links.resolvedType; + } + function getTypeOfGlobalSymbol(symbol, arity) { + function getTypeDeclaration(symbol2) { + const declarations = symbol2.declarations; + if (declarations) { + for (const declaration of declarations) { + switch (declaration.kind) { + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 266 /* EnumDeclaration */: + return declaration; + } + } + } + } + if (!symbol) { + return arity ? emptyGenericType : emptyObjectType; + } + const type = getDeclaredTypeOfSymbol(symbol); + if (!(type.flags & 524288 /* Object */)) { + error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_be_a_class_or_interface_type, symbolName(symbol)); + return arity ? emptyGenericType : emptyObjectType; + } + if (length(type.typeParameters) !== arity) { + error(getTypeDeclaration(symbol), Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + return arity ? emptyGenericType : emptyObjectType; + } + return type; + } + function getGlobalValueSymbol(name, reportErrors2) { + return getGlobalSymbol(name, 111551 /* Value */, reportErrors2 ? Diagnostics.Cannot_find_global_value_0 : void 0); + } + function getGlobalTypeSymbol(name, reportErrors2) { + return getGlobalSymbol(name, 788968 /* Type */, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0); + } + function getGlobalTypeAliasSymbol(name, arity, reportErrors2) { + const symbol = getGlobalSymbol(name, 788968 /* Type */, reportErrors2 ? Diagnostics.Cannot_find_global_type_0 : void 0); + if (symbol) { + getDeclaredTypeOfSymbol(symbol); + if (length(getSymbolLinks(symbol).typeParameters) !== arity) { + const decl = symbol.declarations && find(symbol.declarations, isTypeAliasDeclaration); + error(decl, Diagnostics.Global_type_0_must_have_1_type_parameter_s, symbolName(symbol), arity); + return void 0; + } + } + return symbol; + } + function getGlobalSymbol(name, meaning, diagnostic) { + return resolveName( + /*location*/ + void 0, + name, + meaning, + diagnostic, + /*isUse*/ + false, + /*excludeGlobals*/ + false + ); + } + function getGlobalType(name, arity, reportErrors2) { + const symbol = getGlobalTypeSymbol(name, reportErrors2); + return symbol || reportErrors2 ? getTypeOfGlobalSymbol(symbol, arity) : void 0; + } + function getGlobalTypedPropertyDescriptorType() { + return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType( + "TypedPropertyDescriptor", + /*arity*/ + 1, + /*reportErrors*/ + true + ) || emptyGenericType); + } + function getGlobalTemplateStringsArrayType() { + return deferredGlobalTemplateStringsArrayType || (deferredGlobalTemplateStringsArrayType = getGlobalType( + "TemplateStringsArray", + /*arity*/ + 0, + /*reportErrors*/ + true + ) || emptyObjectType); + } + function getGlobalImportMetaType() { + return deferredGlobalImportMetaType || (deferredGlobalImportMetaType = getGlobalType( + "ImportMeta", + /*arity*/ + 0, + /*reportErrors*/ + true + ) || emptyObjectType); + } + function getGlobalImportMetaExpressionType() { + if (!deferredGlobalImportMetaExpressionType) { + const symbol = createSymbol(0 /* None */, "ImportMetaExpression"); + const importMetaType = getGlobalImportMetaType(); + const metaPropertySymbol = createSymbol(4 /* Property */, "meta", 8 /* Readonly */); + metaPropertySymbol.parent = symbol; + metaPropertySymbol.links.type = importMetaType; + const members = createSymbolTable([metaPropertySymbol]); + symbol.members = members; + deferredGlobalImportMetaExpressionType = createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); + } + return deferredGlobalImportMetaExpressionType; + } + function getGlobalImportCallOptionsType(reportErrors2) { + return deferredGlobalImportCallOptionsType || (deferredGlobalImportCallOptionsType = getGlobalType( + "ImportCallOptions", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalImportAttributesType(reportErrors2) { + return deferredGlobalImportAttributesType || (deferredGlobalImportAttributesType = getGlobalType( + "ImportAttributes", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalESSymbolConstructorSymbol(reportErrors2) { + return deferredGlobalESSymbolConstructorSymbol || (deferredGlobalESSymbolConstructorSymbol = getGlobalValueSymbol("Symbol", reportErrors2)); + } + function getGlobalESSymbolConstructorTypeSymbol(reportErrors2) { + return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors2)); + } + function getGlobalESSymbolType() { + return deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType( + "Symbol", + /*arity*/ + 0, + /*reportErrors*/ + false + )) || emptyObjectType; + } + function getGlobalPromiseType(reportErrors2) { + return deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType( + "Promise", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalPromiseLikeType(reportErrors2) { + return deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType( + "PromiseLike", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalPromiseConstructorSymbol(reportErrors2) { + return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol("Promise", reportErrors2)); + } + function getGlobalPromiseConstructorLikeType(reportErrors2) { + return deferredGlobalPromiseConstructorLikeType || (deferredGlobalPromiseConstructorLikeType = getGlobalType( + "PromiseConstructorLike", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncIterableType(reportErrors2) { + return deferredGlobalAsyncIterableType || (deferredGlobalAsyncIterableType = getGlobalType( + "AsyncIterable", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalAsyncIteratorType(reportErrors2) { + return deferredGlobalAsyncIteratorType || (deferredGlobalAsyncIteratorType = getGlobalType( + "AsyncIterator", + /*arity*/ + 3, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalAsyncIterableIteratorType(reportErrors2) { + return deferredGlobalAsyncIterableIteratorType || (deferredGlobalAsyncIterableIteratorType = getGlobalType( + "AsyncIterableIterator", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalAsyncGeneratorType(reportErrors2) { + return deferredGlobalAsyncGeneratorType || (deferredGlobalAsyncGeneratorType = getGlobalType( + "AsyncGenerator", + /*arity*/ + 3, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalIterableType(reportErrors2) { + return deferredGlobalIterableType || (deferredGlobalIterableType = getGlobalType( + "Iterable", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalIteratorType(reportErrors2) { + return deferredGlobalIteratorType || (deferredGlobalIteratorType = getGlobalType( + "Iterator", + /*arity*/ + 3, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalIterableIteratorType(reportErrors2) { + return deferredGlobalIterableIteratorType || (deferredGlobalIterableIteratorType = getGlobalType( + "IterableIterator", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalGeneratorType(reportErrors2) { + return deferredGlobalGeneratorType || (deferredGlobalGeneratorType = getGlobalType( + "Generator", + /*arity*/ + 3, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalIteratorYieldResultType(reportErrors2) { + return deferredGlobalIteratorYieldResultType || (deferredGlobalIteratorYieldResultType = getGlobalType( + "IteratorYieldResult", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalIteratorReturnResultType(reportErrors2) { + return deferredGlobalIteratorReturnResultType || (deferredGlobalIteratorReturnResultType = getGlobalType( + "IteratorReturnResult", + /*arity*/ + 1, + reportErrors2 + )) || emptyGenericType; + } + function getGlobalDisposableType(reportErrors2) { + return deferredGlobalDisposableType || (deferredGlobalDisposableType = getGlobalType( + "Disposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalAsyncDisposableType(reportErrors2) { + return deferredGlobalAsyncDisposableType || (deferredGlobalAsyncDisposableType = getGlobalType( + "AsyncDisposable", + /*arity*/ + 0, + reportErrors2 + )) || emptyObjectType; + } + function getGlobalTypeOrUndefined(name, arity = 0) { + const symbol = getGlobalSymbol( + name, + 788968 /* Type */, + /*diagnostic*/ + void 0 + ); + return symbol && getTypeOfGlobalSymbol(symbol, arity); + } + function getGlobalExtractSymbol() { + deferredGlobalExtractSymbol || (deferredGlobalExtractSymbol = getGlobalTypeAliasSymbol( + "Extract", + /*arity*/ + 2, + /*reportErrors*/ + true + ) || unknownSymbol); + return deferredGlobalExtractSymbol === unknownSymbol ? void 0 : deferredGlobalExtractSymbol; + } + function getGlobalOmitSymbol() { + deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalTypeAliasSymbol( + "Omit", + /*arity*/ + 2, + /*reportErrors*/ + true + ) || unknownSymbol); + return deferredGlobalOmitSymbol === unknownSymbol ? void 0 : deferredGlobalOmitSymbol; + } + function getGlobalAwaitedSymbol(reportErrors2) { + deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol( + "Awaited", + /*arity*/ + 1, + reportErrors2 + ) || (reportErrors2 ? unknownSymbol : void 0)); + return deferredGlobalAwaitedSymbol === unknownSymbol ? void 0 : deferredGlobalAwaitedSymbol; + } + function getGlobalBigIntType() { + return deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType( + "BigInt", + /*arity*/ + 0, + /*reportErrors*/ + false + )) || emptyObjectType; + } + function getGlobalClassDecoratorContextType(reportErrors2) { + return deferredGlobalClassDecoratorContextType ?? (deferredGlobalClassDecoratorContextType = getGlobalType( + "ClassDecoratorContext", + /*arity*/ + 1, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassMethodDecoratorContextType(reportErrors2) { + return deferredGlobalClassMethodDecoratorContextType ?? (deferredGlobalClassMethodDecoratorContextType = getGlobalType( + "ClassMethodDecoratorContext", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassGetterDecoratorContextType(reportErrors2) { + return deferredGlobalClassGetterDecoratorContextType ?? (deferredGlobalClassGetterDecoratorContextType = getGlobalType( + "ClassGetterDecoratorContext", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassSetterDecoratorContextType(reportErrors2) { + return deferredGlobalClassSetterDecoratorContextType ?? (deferredGlobalClassSetterDecoratorContextType = getGlobalType( + "ClassSetterDecoratorContext", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassAccessorDecoratorContextType(reportErrors2) { + return deferredGlobalClassAccessorDecoratorContextType ?? (deferredGlobalClassAccessorDecoratorContextType = getGlobalType( + "ClassAccessorDecoratorContext", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassAccessorDecoratorTargetType(reportErrors2) { + return deferredGlobalClassAccessorDecoratorTargetType ?? (deferredGlobalClassAccessorDecoratorTargetType = getGlobalType( + "ClassAccessorDecoratorTarget", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassAccessorDecoratorResultType(reportErrors2) { + return deferredGlobalClassAccessorDecoratorResultType ?? (deferredGlobalClassAccessorDecoratorResultType = getGlobalType( + "ClassAccessorDecoratorResult", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalClassFieldDecoratorContextType(reportErrors2) { + return deferredGlobalClassFieldDecoratorContextType ?? (deferredGlobalClassFieldDecoratorContextType = getGlobalType( + "ClassFieldDecoratorContext", + /*arity*/ + 2, + reportErrors2 + )) ?? emptyGenericType; + } + function getGlobalNaNSymbol() { + return deferredGlobalNaNSymbol || (deferredGlobalNaNSymbol = getGlobalValueSymbol( + "NaN", + /*reportErrors*/ + false + )); + } + function getGlobalRecordSymbol() { + deferredGlobalRecordSymbol || (deferredGlobalRecordSymbol = getGlobalTypeAliasSymbol( + "Record", + /*arity*/ + 2, + /*reportErrors*/ + true + ) || unknownSymbol); + return deferredGlobalRecordSymbol === unknownSymbol ? void 0 : deferredGlobalRecordSymbol; + } + function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) { + return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType; + } + function createTypedPropertyDescriptorType(propertyType) { + return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(), [propertyType]); + } + function createIterableType(iteratedType) { + return createTypeFromGenericGlobalType(getGlobalIterableType( + /*reportErrors*/ + true + ), [iteratedType]); + } + function createArrayType(elementType, readonly) { + return createTypeFromGenericGlobalType(readonly ? globalReadonlyArrayType : globalArrayType, [elementType]); + } + function getTupleElementFlags(node) { + switch (node.kind) { + case 190 /* OptionalType */: + return 2 /* Optional */; + case 191 /* RestType */: + return getRestTypeElementFlags(node); + case 202 /* NamedTupleMember */: + return node.questionToken ? 2 /* Optional */ : node.dotDotDotToken ? getRestTypeElementFlags(node) : 1 /* Required */; + default: + return 1 /* Required */; + } + } + function getRestTypeElementFlags(node) { + return getArrayElementTypeNode(node.type) ? 4 /* Rest */ : 8 /* Variadic */; + } + function getArrayOrTupleTargetType(node) { + const readonly = isReadonlyTypeOperator(node.parent); + const elementType = getArrayElementTypeNode(node); + if (elementType) { + return readonly ? globalReadonlyArrayType : globalArrayType; + } + const elementFlags = map(node.elements, getTupleElementFlags); + return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration)); + } + function memberIfLabeledElementDeclaration(member) { + return isNamedTupleMember(member) || isParameter(member) ? member : void 0; + } + function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) { + return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 188 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 189 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias)); + } + function isResolvedByTypeAlias(node) { + const parent = node.parent; + switch (parent.kind) { + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 199 /* IndexedAccessType */: + case 194 /* ConditionalType */: + case 198 /* TypeOperator */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + return isResolvedByTypeAlias(parent); + case 265 /* TypeAliasDeclaration */: + return true; + } + return false; + } + function mayResolveTypeAlias(node) { + switch (node.kind) { + case 183 /* TypeReference */: + return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node, 788968 /* Type */).flags & 524288 /* TypeAlias */); + case 186 /* TypeQuery */: + return true; + case 198 /* TypeOperator */: + return node.operator !== 158 /* UniqueKeyword */ && mayResolveTypeAlias(node.type); + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 202 /* NamedTupleMember */: + case 316 /* JSDocOptionalType */: + case 314 /* JSDocNullableType */: + case 315 /* JSDocNonNullableType */: + case 309 /* JSDocTypeExpression */: + return mayResolveTypeAlias(node.type); + case 191 /* RestType */: + return node.type.kind !== 188 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType); + case 192 /* UnionType */: + case 193 /* IntersectionType */: + return some(node.types, mayResolveTypeAlias); + case 199 /* IndexedAccessType */: + return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType); + case 194 /* ConditionalType */: + return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) || mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType); + } + return false; + } + function getTypeFromArrayOrTupleTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const target = getArrayOrTupleTargetType(node); + if (target === emptyGenericType) { + links.resolvedType = emptyObjectType; + } else if (!(node.kind === 189 /* TupleType */ && some(node.elements, (e) => !!(getTupleElementFlags(e) & 8 /* Variadic */))) && isDeferredTypeReferenceNode(node)) { + links.resolvedType = node.kind === 189 /* TupleType */ && node.elements.length === 0 ? target : createDeferredTypeReference( + target, + node, + /*mapper*/ + void 0 + ); + } else { + const elementTypes = node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); + links.resolvedType = createNormalizedTypeReference(target, elementTypes); + } + } + return links.resolvedType; + } + function isReadonlyTypeOperator(node) { + return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */; + } + function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) { + const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations); + return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget; + } + function getTupleTargetType(elementFlags, readonly, namedMemberDeclarations) { + if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) { + return readonly ? globalReadonlyArrayType : globalArrayType; + } + const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (some(namedMemberDeclarations, (node) => !!node) ? "," + map(namedMemberDeclarations, (node) => node ? getNodeId(node) : "_").join(",") : ""); + let type = tupleTypes.get(key); + if (!type) { + tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations)); + } + return type; + } + function createTupleTargetType(elementFlags, readonly, namedMemberDeclarations) { + const arity = elementFlags.length; + const minLength = countWhere(elementFlags, (f) => !!(f & (1 /* Required */ | 8 /* Variadic */))); + let typeParameters; + const properties = []; + let combinedFlags = 0; + if (arity) { + typeParameters = new Array(arity); + for (let i = 0; i < arity; i++) { + const typeParameter = typeParameters[i] = createTypeParameter(); + const flags = elementFlags[i]; + combinedFlags |= flags; + if (!(combinedFlags & 12 /* Variable */)) { + const property = createSymbol(4 /* Property */ | (flags & 2 /* Optional */ ? 16777216 /* Optional */ : 0), "" + i, readonly ? 8 /* Readonly */ : 0); + property.links.tupleLabelDeclaration = namedMemberDeclarations == null ? void 0 : namedMemberDeclarations[i]; + property.links.type = typeParameter; + properties.push(property); + } + } + } + const fixedLength = properties.length; + const lengthSymbol = createSymbol(4 /* Property */, "length", readonly ? 8 /* Readonly */ : 0); + if (combinedFlags & 12 /* Variable */) { + lengthSymbol.links.type = numberType; + } else { + const literalTypes = []; + for (let i = minLength; i <= arity; i++) literalTypes.push(getNumberLiteralType(i)); + lengthSymbol.links.type = getUnionType(literalTypes); + } + properties.push(lengthSymbol); + const type = createObjectType(8 /* Tuple */ | 4 /* Reference */); + type.typeParameters = typeParameters; + type.outerTypeParameters = void 0; + type.localTypeParameters = typeParameters; + type.instantiations = /* @__PURE__ */ new Map(); + type.instantiations.set(getTypeListId(type.typeParameters), type); + type.target = type; + type.resolvedTypeArguments = type.typeParameters; + type.thisType = createTypeParameter(); + type.thisType.isThisType = true; + type.thisType.constraint = type; + type.declaredProperties = properties; + type.declaredCallSignatures = emptyArray; + type.declaredConstructSignatures = emptyArray; + type.declaredIndexInfos = emptyArray; + type.elementFlags = elementFlags; + type.minLength = minLength; + type.fixedLength = fixedLength; + type.hasRestElement = !!(combinedFlags & 12 /* Variable */); + type.combinedFlags = combinedFlags; + type.readonly = readonly; + type.labeledElementDeclarations = namedMemberDeclarations; + return type; + } + function createNormalizedTypeReference(target, typeArguments) { + return target.objectFlags & 8 /* Tuple */ ? createNormalizedTupleType(target, typeArguments) : createTypeReference(target, typeArguments); + } + function createNormalizedTupleType(target, elementTypes) { + var _a, _b, _c, _d; + if (!(target.combinedFlags & 14 /* NonRequired */)) { + return createTypeReference(target, elementTypes); + } + if (target.combinedFlags & 8 /* Variadic */) { + const unionIndex = findIndex(elementTypes, (t, i) => !!(target.elementFlags[i] & 8 /* Variadic */ && t.flags & (131072 /* Never */ | 1048576 /* Union */))); + if (unionIndex >= 0) { + return checkCrossProductUnion(map(elementTypes, (t, i) => target.elementFlags[i] & 8 /* Variadic */ ? t : unknownType)) ? mapType(elementTypes[unionIndex], (t) => createNormalizedTupleType(target, replaceElement(elementTypes, unionIndex, t))) : errorType; + } + } + const expandedTypes = []; + const expandedFlags = []; + const expandedDeclarations = []; + let lastRequiredIndex = -1; + let firstRestIndex = -1; + let lastOptionalOrRestIndex = -1; + for (let i = 0; i < elementTypes.length; i++) { + const type = elementTypes[i]; + const flags = target.elementFlags[i]; + if (flags & 8 /* Variadic */) { + if (type.flags & 1 /* Any */) { + addElement(type, 4 /* Rest */, (_a = target.labeledElementDeclarations) == null ? void 0 : _a[i]); + } else if (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type)) { + addElement(type, 8 /* Variadic */, (_b = target.labeledElementDeclarations) == null ? void 0 : _b[i]); + } else if (isTupleType(type)) { + const elements = getElementTypes(type); + if (elements.length + expandedTypes.length >= 1e4) { + error( + currentNode, + isPartOfTypeNode(currentNode) ? Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent : Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent + ); + return errorType; + } + forEach(elements, (t, n) => { + var _a2; + return addElement(t, type.target.elementFlags[n], (_a2 = type.target.labeledElementDeclarations) == null ? void 0 : _a2[n]); + }); + } else { + addElement(isArrayLikeType(type) && getIndexTypeOfType(type, numberType) || errorType, 4 /* Rest */, (_c = target.labeledElementDeclarations) == null ? void 0 : _c[i]); + } + } else { + addElement(type, flags, (_d = target.labeledElementDeclarations) == null ? void 0 : _d[i]); + } + } + for (let i = 0; i < lastRequiredIndex; i++) { + if (expandedFlags[i] & 2 /* Optional */) expandedFlags[i] = 1 /* Required */; + } + if (firstRestIndex >= 0 && firstRestIndex < lastOptionalOrRestIndex) { + expandedTypes[firstRestIndex] = getUnionType(sameMap(expandedTypes.slice(firstRestIndex, lastOptionalOrRestIndex + 1), (t, i) => expandedFlags[firstRestIndex + i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t)); + expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex); + } + const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations); + return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget; + function addElement(type, flags, declaration) { + if (flags & 1 /* Required */) { + lastRequiredIndex = expandedFlags.length; + } + if (flags & 4 /* Rest */ && firstRestIndex < 0) { + firstRestIndex = expandedFlags.length; + } + if (flags & (2 /* Optional */ | 4 /* Rest */)) { + lastOptionalOrRestIndex = expandedFlags.length; + } + expandedTypes.push(flags & 2 /* Optional */ ? addOptionality( + type, + /*isProperty*/ + true + ) : type); + expandedFlags.push(flags); + expandedDeclarations.push(declaration); + } + } + function sliceTupleType(type, index, endSkipCount = 0) { + const target = type.target; + const endIndex = getTypeReferenceArity(type) - endSkipCount; + return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(emptyArray) : createTupleType( + getTypeArguments(type).slice(index, endIndex), + target.elementFlags.slice(index, endIndex), + /*readonly*/ + false, + target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex) + ); + } + function getKnownKeysOfTupleType(type) { + return getUnionType(append(arrayOf(type.target.fixedLength, (i) => getStringLiteralType("" + i)), getIndexType(type.target.readonly ? globalReadonlyArrayType : globalArrayType))); + } + function getStartElementCount(type, flags) { + const index = findIndex(type.elementFlags, (f) => !(f & flags)); + return index >= 0 ? index : type.elementFlags.length; + } + function getEndElementCount(type, flags) { + return type.elementFlags.length - findLastIndex(type.elementFlags, (f) => !(f & flags)) - 1; + } + function getTotalFixedElementCount(type) { + return type.fixedLength + getEndElementCount(type, 3 /* Fixed */); + } + function getElementTypes(type) { + const typeArguments = getTypeArguments(type); + const arity = getTypeReferenceArity(type); + return typeArguments.length === arity ? typeArguments : typeArguments.slice(0, arity); + } + function getTypeFromOptionalTypeNode(node) { + return addOptionality( + getTypeFromTypeNode(node.type), + /*isProperty*/ + true + ); + } + function getTypeId(type) { + return type.id; + } + function containsType(types, type) { + return binarySearch(types, type, getTypeId, compareValues) >= 0; + } + function insertType(types, type) { + const index = binarySearch(types, type, getTypeId, compareValues); + if (index < 0) { + types.splice(~index, 0, type); + return true; + } + return false; + } + function addTypeToUnion(typeSet, includes, type) { + const flags = type.flags; + if (!(flags & 131072 /* Never */)) { + includes |= flags & 473694207 /* IncludesMask */; + if (flags & 465829888 /* Instantiable */) includes |= 33554432 /* IncludesInstantiable */; + if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) includes |= 536870912 /* IncludesConstrainedTypeVariable */; + if (type === wildcardType) includes |= 8388608 /* IncludesWildcard */; + if (isErrorType(type)) includes |= 1073741824 /* IncludesError */; + if (!strictNullChecks && flags & 98304 /* Nullable */) { + if (!(getObjectFlags(type) & 65536 /* ContainsWideningType */)) includes |= 4194304 /* IncludesNonWideningType */; + } else { + const len = typeSet.length; + const index = len && type.id > typeSet[len - 1].id ? ~len : binarySearch(typeSet, type, getTypeId, compareValues); + if (index < 0) { + typeSet.splice(~index, 0, type); + } + } + } + return includes; + } + function addTypesToUnion(typeSet, includes, types) { + let lastType; + for (const type of types) { + if (type !== lastType) { + includes = type.flags & 1048576 /* Union */ ? addTypesToUnion(typeSet, includes | (isNamedUnionType(type) ? 1048576 /* Union */ : 0), type.types) : addTypeToUnion(typeSet, includes, type); + lastType = type; + } + } + return includes; + } + function removeSubtypes(types, hasObjectTypes) { + var _a; + if (types.length < 2) { + return types; + } + const id = getTypeListId(types); + const match = subtypeReductionCache.get(id); + if (match) { + return match; + } + const hasEmptyObject = hasObjectTypes && some(types, (t) => !!(t.flags & 524288 /* Object */) && !isGenericMappedType(t) && isEmptyResolvedType(resolveStructuredTypeMembers(t))); + const len = types.length; + let i = len; + let count = 0; + while (i > 0) { + i--; + const source = types[i]; + if (hasEmptyObject || source.flags & 469499904 /* StructuredOrInstantiable */) { + if (source.flags & 262144 /* TypeParameter */ && getBaseConstraintOrType(source).flags & 1048576 /* Union */) { + if (isTypeRelatedTo(source, getUnionType(map(types, (t) => t === source ? neverType : t)), strictSubtypeRelation)) { + orderedRemoveItemAt(types, i); + } + continue; + } + const keyProperty = source.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */) ? find(getPropertiesOfType(source), (p) => isUnitType(getTypeOfSymbol(p))) : void 0; + const keyPropertyType = keyProperty && getRegularTypeOfLiteralType(getTypeOfSymbol(keyProperty)); + for (const target of types) { + if (source !== target) { + if (count === 1e5) { + const estimatedCount = count / (len - i) * len; + if (estimatedCount > 1e6) { + (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "removeSubtypes_DepthLimit", { typeIds: types.map((t) => t.id) }); + error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + return void 0; + } + } + count++; + if (keyProperty && target.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) { + const t = getTypeOfPropertyOfType(target, keyProperty.escapedName); + if (t && isUnitType(t) && getRegularTypeOfLiteralType(t) !== keyPropertyType) { + continue; + } + } + if (isTypeRelatedTo(source, target, strictSubtypeRelation) && (!(getObjectFlags(getTargetType(source)) & 1 /* Class */) || !(getObjectFlags(getTargetType(target)) & 1 /* Class */) || isTypeDerivedFrom(source, target))) { + orderedRemoveItemAt(types, i); + break; + } + } + } + } + } + subtypeReductionCache.set(id, types); + return types; + } + function removeRedundantLiteralTypes(types, includes, reduceVoidUndefined) { + let i = types.length; + while (i > 0) { + i--; + const t = types[i]; + const flags = t.flags; + const remove = flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 4 /* String */ || flags & 256 /* NumberLiteral */ && includes & 8 /* Number */ || flags & 2048 /* BigIntLiteral */ && includes & 64 /* BigInt */ || flags & 8192 /* UniqueESSymbol */ && includes & 4096 /* ESSymbol */ || reduceVoidUndefined && flags & 32768 /* Undefined */ && includes & 16384 /* Void */ || isFreshLiteralType(t) && containsType(types, t.regularType); + if (remove) { + orderedRemoveItemAt(types, i); + } + } + } + function removeStringLiteralsMatchedByTemplateLiterals(types) { + const templates = filter(types, isPatternLiteralType); + if (templates.length) { + let i = types.length; + while (i > 0) { + i--; + const t = types[i]; + if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) { + orderedRemoveItemAt(types, i); + } + } + } + } + function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) { + return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template); + } + function removeConstrainedTypeVariables(types) { + const typeVariables = []; + for (const type of types) { + if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { + const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; + pushIfUnique(typeVariables, type.types[index]); + } + } + for (const typeVariable of typeVariables) { + const primitives = []; + for (const type of types) { + if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { + const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; + if (type.types[index] === typeVariable) { + insertType(primitives, type.types[1 - index]); + } + } + } + const constraint = getBaseConstraintOfType(typeVariable); + if (everyType(constraint, (t) => containsType(primitives, t))) { + let i = types.length; + while (i > 0) { + i--; + const type = types[i]; + if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */) { + const index = type.types[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; + if (type.types[index] === typeVariable && containsType(primitives, type.types[1 - index])) { + orderedRemoveItemAt(types, i); + } + } + } + insertType(types, typeVariable); + } + } + } + function isNamedUnionType(type) { + return !!(type.flags & 1048576 /* Union */ && (type.aliasSymbol || type.origin)); + } + function addNamedUnions(namedUnions, types) { + for (const t of types) { + if (t.flags & 1048576 /* Union */) { + const origin = t.origin; + if (t.aliasSymbol || origin && !(origin.flags & 1048576 /* Union */)) { + pushIfUnique(namedUnions, t); + } else if (origin && origin.flags & 1048576 /* Union */) { + addNamedUnions(namedUnions, origin.types); + } + } + } + } + function createOriginUnionOrIntersectionType(flags, types) { + const result = createOriginType(flags); + result.types = types; + return result; + } + function getUnionType(types, unionReduction = 1 /* Literal */, aliasSymbol, aliasTypeArguments, origin) { + if (types.length === 0) { + return neverType; + } + if (types.length === 1) { + return types[0]; + } + if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) { + const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L"; + const index = types[0].id < types[1].id ? 0 : 1; + const id = types[index].id + infix + types[1 - index].id + getAliasId(aliasSymbol, aliasTypeArguments); + let type = unionOfUnionTypes.get(id); + if (!type) { + type = getUnionTypeWorker( + types, + unionReduction, + aliasSymbol, + aliasTypeArguments, + /*origin*/ + void 0 + ); + unionOfUnionTypes.set(id, type); + } + return type; + } + return getUnionTypeWorker(types, unionReduction, aliasSymbol, aliasTypeArguments, origin); + } + function getUnionTypeWorker(types, unionReduction, aliasSymbol, aliasTypeArguments, origin) { + let typeSet = []; + const includes = addTypesToUnion(typeSet, 0, types); + if (unionReduction !== 0 /* None */) { + if (includes & 3 /* AnyOrUnknown */) { + return includes & 1 /* Any */ ? includes & 8388608 /* IncludesWildcard */ ? wildcardType : includes & 1073741824 /* IncludesError */ ? errorType : anyType : unknownType; + } + if (includes & 32768 /* Undefined */) { + if (typeSet.length >= 2 && typeSet[0] === undefinedType && typeSet[1] === missingType) { + orderedRemoveItemAt(typeSet, 1); + } + } + if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) { + removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */)); + } + if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) { + removeStringLiteralsMatchedByTemplateLiterals(typeSet); + } + if (includes & 536870912 /* IncludesConstrainedTypeVariable */) { + removeConstrainedTypeVariables(typeSet); + } + if (unionReduction === 2 /* Subtype */) { + typeSet = removeSubtypes(typeSet, !!(includes & 524288 /* Object */)); + if (!typeSet) { + return errorType; + } + } + if (typeSet.length === 0) { + return includes & 65536 /* Null */ ? includes & 4194304 /* IncludesNonWideningType */ ? nullType : nullWideningType : includes & 32768 /* Undefined */ ? includes & 4194304 /* IncludesNonWideningType */ ? undefinedType : undefinedWideningType : neverType; + } + } + if (!origin && includes & 1048576 /* Union */) { + const namedUnions = []; + addNamedUnions(namedUnions, types); + const reducedTypes = []; + for (const t of typeSet) { + if (!some(namedUnions, (union) => containsType(union.types, t))) { + reducedTypes.push(t); + } + } + if (!aliasSymbol && namedUnions.length === 1 && reducedTypes.length === 0) { + return namedUnions[0]; + } + const namedTypesCount = reduceLeft(namedUnions, (sum, union) => sum + union.types.length, 0); + if (namedTypesCount + reducedTypes.length === typeSet.length) { + for (const t of namedUnions) { + insertType(reducedTypes, t); + } + origin = createOriginUnionOrIntersectionType(1048576 /* Union */, reducedTypes); + } + } + const objectFlags = (includes & 36323331 /* NotPrimitiveUnion */ ? 0 : 32768 /* PrimitiveUnion */) | (includes & 2097152 /* Intersection */ ? 16777216 /* ContainsIntersections */ : 0); + return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin); + } + function getUnionOrIntersectionTypePredicate(signatures, kind) { + let last2; + const types = []; + for (const sig of signatures) { + const pred = getTypePredicateOfSignature(sig); + if (pred) { + if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) { + return void 0; + } + last2 = pred; + types.push(pred.type); + } else { + const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0; + if (returnType !== falseType && returnType !== regularFalseType) { + return void 0; + } + } + } + if (!last2) { + return void 0; + } + const compositeType = getUnionOrIntersectionType(types, kind); + return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType); + } + function typePredicateKindsMatch(a, b) { + return a.kind === b.kind && a.parameterIndex === b.parameterIndex; + } + function getUnionTypeFromSortedList(types, precomputedObjectFlags, aliasSymbol, aliasTypeArguments, origin) { + if (types.length === 0) { + return neverType; + } + if (types.length === 1) { + return types[0]; + } + const typeKey = !origin ? getTypeListId(types) : origin.flags & 1048576 /* Union */ ? `|${getTypeListId(origin.types)}` : origin.flags & 2097152 /* Intersection */ ? `&${getTypeListId(origin.types)}` : `#${origin.type.id}|${getTypeListId(types)}`; + const id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments); + let type = unionTypes.get(id); + if (!type) { + type = createType(1048576 /* Union */); + type.objectFlags = precomputedObjectFlags | getPropagatingFlagsOfTypes( + types, + /*excludeKinds*/ + 98304 /* Nullable */ + ); + type.types = types; + type.origin = origin; + type.aliasSymbol = aliasSymbol; + type.aliasTypeArguments = aliasTypeArguments; + if (types.length === 2 && types[0].flags & 512 /* BooleanLiteral */ && types[1].flags & 512 /* BooleanLiteral */) { + type.flags |= 16 /* Boolean */; + type.intrinsicName = "boolean"; + } + unionTypes.set(id, type); + } + return type; + } + function getTypeFromUnionTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const aliasSymbol = getAliasSymbolForTypeNode(node); + links.resolvedType = getUnionType(map(node.types, getTypeFromTypeNode), 1 /* Literal */, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol)); + } + return links.resolvedType; + } + function addTypeToIntersection(typeSet, includes, type) { + const flags = type.flags; + if (flags & 2097152 /* Intersection */) { + return addTypesToIntersection(typeSet, includes, type.types); + } + if (isEmptyAnonymousObjectType(type)) { + if (!(includes & 16777216 /* IncludesEmptyObject */)) { + includes |= 16777216 /* IncludesEmptyObject */; + typeSet.set(type.id.toString(), type); + } + } else { + if (flags & 3 /* AnyOrUnknown */) { + if (type === wildcardType) includes |= 8388608 /* IncludesWildcard */; + if (isErrorType(type)) includes |= 1073741824 /* IncludesError */; + } else if (strictNullChecks || !(flags & 98304 /* Nullable */)) { + if (type === missingType) { + includes |= 262144 /* IncludesMissingType */; + type = undefinedType; + } + if (!typeSet.has(type.id.toString())) { + if (type.flags & 109472 /* Unit */ && includes & 109472 /* Unit */) { + includes |= 67108864 /* NonPrimitive */; + } + typeSet.set(type.id.toString(), type); + } + } + includes |= flags & 473694207 /* IncludesMask */; + } + return includes; + } + function addTypesToIntersection(typeSet, includes, types) { + for (const type of types) { + includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type)); + } + return includes; + } + function removeRedundantSupertypes(types, includes) { + let i = types.length; + while (i > 0) { + i--; + const t = types[i]; + const remove = t.flags & 4 /* String */ && includes & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || t.flags & 8 /* Number */ && includes & 256 /* NumberLiteral */ || t.flags & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ || t.flags & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */ || t.flags & 16384 /* Void */ && includes & 32768 /* Undefined */ || isEmptyAnonymousObjectType(t) && includes & 470302716 /* DefinitelyNonNullable */; + if (remove) { + orderedRemoveItemAt(types, i); + } + } + } + function eachUnionContains(unionTypes2, type) { + for (const u of unionTypes2) { + if (!containsType(u.types, type)) { + const primitive = type.flags & 128 /* StringLiteral */ ? stringType : type.flags & (32 /* Enum */ | 256 /* NumberLiteral */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : void 0; + if (!primitive || !containsType(u.types, primitive)) { + return false; + } + } + } + return true; + } + function extractRedundantTemplateLiterals(types) { + let i = types.length; + const literals = filter(types, (t) => !!(t.flags & 128 /* StringLiteral */)); + while (i > 0) { + i--; + const t = types[i]; + if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */))) continue; + for (const t2 of literals) { + if (isTypeSubtypeOf(t2, t)) { + orderedRemoveItemAt(types, i); + break; + } else if (isPatternLiteralType(t)) { + return true; + } + } + } + return false; + } + function removeFromEach(types, flag) { + for (let i = 0; i < types.length; i++) { + types[i] = filterType(types[i], (t) => !(t.flags & flag)); + } + } + function intersectUnionsOfPrimitiveTypes(types) { + let unionTypes2; + const index = findIndex(types, (t) => !!(getObjectFlags(t) & 32768 /* PrimitiveUnion */)); + if (index < 0) { + return false; + } + let i = index + 1; + while (i < types.length) { + const t = types[i]; + if (getObjectFlags(t) & 32768 /* PrimitiveUnion */) { + (unionTypes2 || (unionTypes2 = [types[index]])).push(t); + orderedRemoveItemAt(types, i); + } else { + i++; + } + } + if (!unionTypes2) { + return false; + } + const checked = []; + const result = []; + for (const u of unionTypes2) { + for (const t of u.types) { + if (insertType(checked, t)) { + if (eachUnionContains(unionTypes2, t)) { + insertType(result, t); + } + } + } + } + types[index] = getUnionTypeFromSortedList(result, 32768 /* PrimitiveUnion */); + return true; + } + function createIntersectionType(types, objectFlags, aliasSymbol, aliasTypeArguments) { + const result = createType(2097152 /* Intersection */); + result.objectFlags = objectFlags | getPropagatingFlagsOfTypes( + types, + /*excludeKinds*/ + 98304 /* Nullable */ + ); + result.types = types; + result.aliasSymbol = aliasSymbol; + result.aliasTypeArguments = aliasTypeArguments; + return result; + } + function getIntersectionType(types, flags = 0 /* None */, aliasSymbol, aliasTypeArguments) { + const typeMembershipMap = /* @__PURE__ */ new Map(); + const includes = addTypesToIntersection(typeMembershipMap, 0, types); + const typeSet = arrayFrom(typeMembershipMap.values()); + let objectFlags = 0 /* None */; + if (includes & 131072 /* Never */) { + return contains(typeSet, silentNeverType) ? silentNeverType : neverType; + } + if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) { + return neverType; + } + if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) { + return neverType; + } + if (includes & 1 /* Any */) { + return includes & 8388608 /* IncludesWildcard */ ? wildcardType : includes & 1073741824 /* IncludesError */ ? errorType : anyType; + } + if (!strictNullChecks && includes & 98304 /* Nullable */) { + return includes & 16777216 /* IncludesEmptyObject */ ? neverType : includes & 32768 /* Undefined */ ? undefinedType : nullType; + } + if (includes & 4 /* String */ && includes & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 8 /* Number */ && includes & 256 /* NumberLiteral */ || includes & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ || includes & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */ || includes & 16384 /* Void */ && includes & 32768 /* Undefined */ || includes & 16777216 /* IncludesEmptyObject */ && includes & 470302716 /* DefinitelyNonNullable */) { + if (!(flags & 1 /* NoSupertypeReduction */)) removeRedundantSupertypes(typeSet, includes); + } + if (includes & 262144 /* IncludesMissingType */) { + typeSet[typeSet.indexOf(undefinedType)] = missingType; + } + if (typeSet.length === 0) { + return unknownType; + } + if (typeSet.length === 1) { + return typeSet[0]; + } + if (typeSet.length === 2 && !(flags & 2 /* NoConstraintReduction */)) { + const typeVarIndex = typeSet[0].flags & 8650752 /* TypeVariable */ ? 0 : 1; + const typeVariable = typeSet[typeVarIndex]; + const primitiveType = typeSet[1 - typeVarIndex]; + if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) && !isGenericStringLikeType(primitiveType) || includes & 16777216 /* IncludesEmptyObject */)) { + const constraint = getBaseConstraintOfType(typeVariable); + if (constraint && everyType(constraint, (t) => !!(t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) || isEmptyAnonymousObjectType(t))) { + if (isTypeStrictSubtypeOf(constraint, primitiveType)) { + return typeVariable; + } + if (!(constraint.flags & 1048576 /* Union */ && someType(constraint, (c) => isTypeStrictSubtypeOf(c, primitiveType)))) { + if (!isTypeStrictSubtypeOf(primitiveType, constraint)) { + return neverType; + } + } + objectFlags = 67108864 /* IsConstrainedTypeVariable */; + } + } + } + const id = getTypeListId(typeSet) + (flags & 2 /* NoConstraintReduction */ ? "*" : getAliasId(aliasSymbol, aliasTypeArguments)); + let result = intersectionTypes.get(id); + if (!result) { + if (includes & 1048576 /* Union */) { + if (intersectUnionsOfPrimitiveTypes(typeSet)) { + result = getIntersectionType(typeSet, flags, aliasSymbol, aliasTypeArguments); + } else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && t.types[0].flags & 32768 /* Undefined */))) { + const containedUndefinedType = some(typeSet, containsMissingType) ? missingType : undefinedType; + removeFromEach(typeSet, 32768 /* Undefined */); + result = getUnionType([getIntersectionType(typeSet, flags), containedUndefinedType], 1 /* Literal */, aliasSymbol, aliasTypeArguments); + } else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && (t.types[0].flags & 65536 /* Null */ || t.types[1].flags & 65536 /* Null */)))) { + removeFromEach(typeSet, 65536 /* Null */); + result = getUnionType([getIntersectionType(typeSet, flags), nullType], 1 /* Literal */, aliasSymbol, aliasTypeArguments); + } else if (typeSet.length >= 4) { + const middle = Math.floor(typeSet.length / 2); + result = getIntersectionType([getIntersectionType(typeSet.slice(0, middle), flags), getIntersectionType(typeSet.slice(middle), flags)], flags, aliasSymbol, aliasTypeArguments); + } else { + if (!checkCrossProductUnion(typeSet)) { + return errorType; + } + const constituents = getCrossProductIntersections(typeSet, flags); + const origin = some(constituents, (t) => !!(t.flags & 2097152 /* Intersection */)) && getConstituentCountOfTypes(constituents) > getConstituentCountOfTypes(typeSet) ? createOriginUnionOrIntersectionType(2097152 /* Intersection */, typeSet) : void 0; + result = getUnionType(constituents, 1 /* Literal */, aliasSymbol, aliasTypeArguments, origin); + } + } else { + result = createIntersectionType(typeSet, objectFlags, aliasSymbol, aliasTypeArguments); + } + intersectionTypes.set(id, result); + } + return result; + } + function getCrossProductUnionSize(types) { + return reduceLeft(types, (n, t) => t.flags & 1048576 /* Union */ ? n * t.types.length : t.flags & 131072 /* Never */ ? 0 : n, 1); + } + function checkCrossProductUnion(types) { + var _a; + const size = getCrossProductUnionSize(types); + if (size >= 1e5) { + (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkCrossProductUnion_DepthLimit", { typeIds: types.map((t) => t.id), size }); + error(currentNode, Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent); + return false; + } + return true; + } + function getCrossProductIntersections(types, flags) { + const count = getCrossProductUnionSize(types); + const intersections = []; + for (let i = 0; i < count; i++) { + const constituents = types.slice(); + let n = i; + for (let j = types.length - 1; j >= 0; j--) { + if (types[j].flags & 1048576 /* Union */) { + const sourceTypes = types[j].types; + const length2 = sourceTypes.length; + constituents[j] = sourceTypes[n % length2]; + n = Math.floor(n / length2); + } + } + const t = getIntersectionType(constituents, flags); + if (!(t.flags & 131072 /* Never */)) intersections.push(t); + } + return intersections; + } + function getConstituentCount(type) { + return !(type.flags & 3145728 /* UnionOrIntersection */) || type.aliasSymbol ? 1 : type.flags & 1048576 /* Union */ && type.origin ? getConstituentCount(type.origin) : getConstituentCountOfTypes(type.types); + } + function getConstituentCountOfTypes(types) { + return reduceLeft(types, (n, t) => n + getConstituentCount(t), 0); + } + function getTypeFromIntersectionTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const aliasSymbol = getAliasSymbolForTypeNode(node); + const types = map(node.types, getTypeFromTypeNode); + const emptyIndex = types.length === 2 ? types.indexOf(emptyTypeLiteralType) : -1; + const t = emptyIndex >= 0 ? types[1 - emptyIndex] : unknownType; + const noSupertypeReduction = !!(t.flags & (4 /* String */ | 8 /* Number */ | 64 /* BigInt */) || t.flags & 134217728 /* TemplateLiteral */ && isPatternLiteralType(t)); + links.resolvedType = getIntersectionType(types, noSupertypeReduction ? 1 /* NoSupertypeReduction */ : 0, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol)); + } + return links.resolvedType; + } + function createIndexType(type, indexFlags) { + const result = createType(4194304 /* Index */); + result.type = type; + result.indexFlags = indexFlags; + return result; + } + function createOriginIndexType(type) { + const result = createOriginType(4194304 /* Index */); + result.type = type; + return result; + } + function getIndexTypeForGenericType(type, indexFlags) { + return indexFlags & 1 /* StringsOnly */ ? type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(type, 1 /* StringsOnly */)) : type.resolvedIndexType || (type.resolvedIndexType = createIndexType(type, 0 /* None */)); + } + function getIndexTypeForMappedType(type, indexFlags) { + const typeParameter = getTypeParameterFromMappedType(type); + const constraintType = getConstraintTypeFromMappedType(type); + const nameType = getNameTypeFromMappedType(type.target || type); + if (!nameType && !(indexFlags & 2 /* NoIndexSignatures */)) { + return constraintType; + } + const keyTypes = []; + if (isGenericIndexType(constraintType)) { + if (isMappedTypeWithKeyofConstraintDeclaration(type)) { + return getIndexTypeForGenericType(type, indexFlags); + } + forEachType(constraintType, addMemberForKeyType); + } else if (isMappedTypeWithKeyofConstraintDeclaration(type)) { + const modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); + forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, !!(indexFlags & 1 /* StringsOnly */), addMemberForKeyType); + } else { + forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType); + } + const result = indexFlags & 2 /* NoIndexSignatures */ ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 /* Any */ | 4 /* String */))) : getUnionType(keyTypes); + if (result.flags & 1048576 /* Union */ && constraintType.flags & 1048576 /* Union */ && getTypeListId(result.types) === getTypeListId(constraintType.types)) { + return constraintType; + } + return result; + function addMemberForKeyType(keyType) { + const propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType; + keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType); + } + } + function hasDistributiveNameType(mappedType) { + const typeVariable = getTypeParameterFromMappedType(mappedType); + return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable); + function isDistributive(type) { + return type.flags & (3 /* AnyOrUnknown */ | 402784252 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true : type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? every(type.types, isDistributive) : type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) : false; + } + } + function getLiteralTypeFromPropertyName(name) { + if (isPrivateIdentifier(name)) { + return neverType; + } + if (isNumericLiteral(name)) { + return getRegularTypeOfLiteralType(checkExpression(name)); + } + if (isComputedPropertyName(name)) { + return getRegularTypeOfLiteralType(checkComputedPropertyName(name)); + } + const propertyName = getPropertyNameForPropertyNameNode(name); + if (propertyName !== void 0) { + return getStringLiteralType(unescapeLeadingUnderscores(propertyName)); + } + if (isExpression(name)) { + return getRegularTypeOfLiteralType(checkExpression(name)); + } + return neverType; + } + function getLiteralTypeFromProperty(prop, include, includeNonPublic) { + if (includeNonPublic || !(getDeclarationModifierFlagsFromSymbol(prop) & 6 /* NonPublicAccessibilityModifier */)) { + let type = getSymbolLinks(getLateBoundSymbol(prop)).nameType; + if (!type) { + const name = getNameOfDeclaration(prop.valueDeclaration); + type = prop.escapedName === "default" /* Default */ ? getStringLiteralType("default") : name && getLiteralTypeFromPropertyName(name) || (!isKnownSymbol(prop) ? getStringLiteralType(symbolName(prop)) : void 0); + } + if (type && type.flags & include) { + return type; + } + } + return neverType; + } + function isKeyTypeIncluded(keyType, include) { + return !!(keyType.flags & include || keyType.flags & 2097152 /* Intersection */ && some(keyType.types, (t) => isKeyTypeIncluded(t, include))); + } + function getLiteralTypeFromProperties(type, include, includeOrigin) { + const origin = includeOrigin && (getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */) || type.aliasSymbol) ? createOriginIndexType(type) : void 0; + const propertyTypes = map(getPropertiesOfType(type), (prop) => getLiteralTypeFromProperty(prop, include)); + const indexKeyTypes = map(getIndexInfosOfType(type), (info) => info !== enumNumberIndexInfo && isKeyTypeIncluded(info.keyType, include) ? info.keyType === stringType && include & 8 /* Number */ ? stringOrNumberType : info.keyType : neverType); + return getUnionType( + concatenate(propertyTypes, indexKeyTypes), + 1 /* Literal */, + /*aliasSymbol*/ + void 0, + /*aliasTypeArguments*/ + void 0, + origin + ); + } + function shouldDeferIndexType(type, indexFlags = 0 /* None */) { + return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType)); + } + function getIndexType(type, indexFlags = 0 /* None */) { + type = getReducedType(type); + return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? stringNumberSymbolType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === 0 /* None */); + } + function getExtractStringType(type) { + const extractTypeAlias = getGlobalExtractSymbol(); + return extractTypeAlias ? getTypeAliasInstantiation(extractTypeAlias, [type, stringType]) : stringType; + } + function getIndexTypeOrString(type) { + const indexType = getExtractStringType(getIndexType(type)); + return indexType.flags & 131072 /* Never */ ? stringType : indexType; + } + function getTypeFromTypeOperatorNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + switch (node.operator) { + case 143 /* KeyOfKeyword */: + links.resolvedType = getIndexType(getTypeFromTypeNode(node.type)); + break; + case 158 /* UniqueKeyword */: + links.resolvedType = node.type.kind === 155 /* SymbolKeyword */ ? getESSymbolLikeTypeForNode(walkUpParenthesizedTypes(node.parent)) : errorType; + break; + case 148 /* ReadonlyKeyword */: + links.resolvedType = getTypeFromTypeNode(node.type); + break; + default: + Debug.assertNever(node.operator); + } + } + return links.resolvedType; + } + function getTypeFromTemplateTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + links.resolvedType = getTemplateLiteralType( + [node.head.text, ...map(node.templateSpans, (span) => span.literal.text)], + map(node.templateSpans, (span) => getTypeFromTypeNode(span.type)) + ); + } + return links.resolvedType; + } + function getTemplateLiteralType(texts, types) { + const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 /* Never */ | 1048576 /* Union */))); + if (unionIndex >= 0) { + return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType; + } + if (contains(types, wildcardType)) { + return wildcardType; + } + const newTypes = []; + const newTexts = []; + let text = texts[0]; + if (!addSpans(texts, types)) { + return stringType; + } + if (newTypes.length === 0) { + return getStringLiteralType(text); + } + newTexts.push(text); + if (every(newTexts, (t) => t === "")) { + if (every(newTypes, (t) => !!(t.flags & 4 /* String */))) { + return stringType; + } + if (newTypes.length === 1 && isPatternLiteralType(newTypes[0])) { + return newTypes[0]; + } + } + const id = `${getTypeListId(newTypes)}|${map(newTexts, (t) => t.length).join(",")}|${newTexts.join("")}`; + let type = templateLiteralTypes.get(id); + if (!type) { + templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes)); + } + return type; + function addSpans(texts2, types2) { + for (let i = 0; i < types2.length; i++) { + const t = types2[i]; + if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) { + text += getTemplateStringForType(t) || ""; + text += texts2[i + 1]; + } else if (t.flags & 134217728 /* TemplateLiteral */) { + text += t.texts[0]; + if (!addSpans(t.texts, t.types)) return false; + text += texts2[i + 1]; + } else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) { + newTypes.push(t); + newTexts.push(text); + text = texts2[i + 1]; + } else { + return false; + } + } + return true; + } + } + function getTemplateStringForType(type) { + return type.flags & 128 /* StringLiteral */ ? type.value : type.flags & 256 /* NumberLiteral */ ? "" + type.value : type.flags & 2048 /* BigIntLiteral */ ? pseudoBigIntToString(type.value) : type.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) ? type.intrinsicName : void 0; + } + function createTemplateLiteralType(texts, types) { + const type = createType(134217728 /* TemplateLiteral */); + type.texts = texts; + type.types = types; + return type; + } + function getStringMappingType(symbol, type) { + return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, (t) => getStringMappingType(symbol, t)) : type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) : type.flags & 134217728 /* TemplateLiteral */ ? getTemplateLiteralType(...applyTemplateStringMapping(symbol, type.texts, type.types)) : ( + // Mapping> === Mapping + type.flags & 268435456 /* StringMapping */ && symbol === type.symbol ? type : type.flags & (1 /* Any */ | 4 /* String */ | 268435456 /* StringMapping */) || isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) : ( + // This handles Mapping<`${number}`> and Mapping<`${bigint}`> + isPatternLiteralPlaceholderType(type) ? getStringMappingTypeForGenericType(symbol, getTemplateLiteralType(["", ""], [type])) : type + ) + ); + } + function applyStringMapping(symbol, str) { + switch (intrinsicTypeKinds.get(symbol.escapedName)) { + case 0 /* Uppercase */: + return str.toUpperCase(); + case 1 /* Lowercase */: + return str.toLowerCase(); + case 2 /* Capitalize */: + return str.charAt(0).toUpperCase() + str.slice(1); + case 3 /* Uncapitalize */: + return str.charAt(0).toLowerCase() + str.slice(1); + } + return str; + } + function applyTemplateStringMapping(symbol, texts, types) { + switch (intrinsicTypeKinds.get(symbol.escapedName)) { + case 0 /* Uppercase */: + return [texts.map((t) => t.toUpperCase()), types.map((t) => getStringMappingType(symbol, t))]; + case 1 /* Lowercase */: + return [texts.map((t) => t.toLowerCase()), types.map((t) => getStringMappingType(symbol, t))]; + case 2 /* Capitalize */: + return [texts[0] === "" ? texts : [texts[0].charAt(0).toUpperCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types]; + case 3 /* Uncapitalize */: + return [texts[0] === "" ? texts : [texts[0].charAt(0).toLowerCase() + texts[0].slice(1), ...texts.slice(1)], texts[0] === "" ? [getStringMappingType(symbol, types[0]), ...types.slice(1)] : types]; + } + return [texts, types]; + } + function getStringMappingTypeForGenericType(symbol, type) { + const id = `${getSymbolId(symbol)},${getTypeId(type)}`; + let result = stringMappingTypes.get(id); + if (!result) { + stringMappingTypes.set(id, result = createStringMappingType(symbol, type)); + } + return result; + } + function createStringMappingType(symbol, type) { + const result = createTypeWithSymbol(268435456 /* StringMapping */, symbol); + result.type = type; + return result; + } + function createIndexedAccessType(objectType, indexType, accessFlags, aliasSymbol, aliasTypeArguments) { + const type = createType(8388608 /* IndexedAccess */); + type.objectType = objectType; + type.indexType = indexType; + type.accessFlags = accessFlags; + type.aliasSymbol = aliasSymbol; + type.aliasTypeArguments = aliasTypeArguments; + return type; + } + function isJSLiteralType(type) { + if (noImplicitAny) { + return false; + } + if (getObjectFlags(type) & 4096 /* JSLiteral */) { + return true; + } + if (type.flags & 1048576 /* Union */) { + return every(type.types, isJSLiteralType); + } + if (type.flags & 2097152 /* Intersection */) { + return some(type.types, isJSLiteralType); + } + if (type.flags & 465829888 /* Instantiable */) { + const constraint = getResolvedBaseConstraint(type); + return constraint !== type && isJSLiteralType(constraint); + } + return false; + } + function getPropertyNameFromIndex(indexType, accessNode) { + return isTypeUsableAsPropertyName(indexType) ? getPropertyNameFromType(indexType) : accessNode && isPropertyName(accessNode) ? ( + // late bound names are handled in the first branch, so here we only need to handle normal names + getPropertyNameForPropertyNameNode(accessNode) + ) : void 0; + } + function isUncalledFunctionReference(node, symbol) { + if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) { + const parent = findAncestor(node.parent, (n) => !isAccessExpression(n)) || node.parent; + if (isCallLikeExpression(parent)) { + return isCallOrNewExpression(parent) && isIdentifier(node) && hasMatchingArgument(parent, node); + } + return every(symbol.declarations, (d) => !isFunctionLike(d) || isDeprecatedDeclaration(d)); + } + return true; + } + function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) { + const accessExpression = accessNode && accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode : void 0; + const propName = accessNode && isPrivateIdentifier(accessNode) ? void 0 : getPropertyNameFromIndex(indexType, accessNode); + if (propName !== void 0) { + if (accessFlags & 256 /* Contextual */) { + return getTypeOfPropertyOfContextualType(objectType, propName) || anyType; + } + const prop = getPropertyOfType(objectType, propName); + if (prop) { + if (accessFlags & 64 /* ReportDeprecated */ && accessNode && prop.declarations && isDeprecatedSymbol(prop) && isUncalledFunctionReference(accessNode, prop)) { + const deprecatedNode = (accessExpression == null ? void 0 : accessExpression.argumentExpression) ?? (isIndexedAccessTypeNode(accessNode) ? accessNode.indexType : accessNode); + addDeprecatedSuggestion(deprecatedNode, prop.declarations, propName); + } + if (accessExpression) { + markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol)); + if (isAssignmentToReadonlyEntity(accessExpression, prop, getAssignmentTargetKind(accessExpression))) { + error(accessExpression.argumentExpression, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop)); + return void 0; + } + if (accessFlags & 8 /* CacheSymbol */) { + getNodeLinks(accessNode).resolvedSymbol = prop; + } + if (isThisPropertyAccessInConstructor(accessExpression, prop)) { + return autoType; + } + } + const propType = accessFlags & 4 /* Writing */ ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); + return accessExpression && getAssignmentTargetKind(accessExpression) !== 1 /* Definite */ ? getFlowTypeOfReference(accessExpression, propType) : accessNode && isIndexedAccessTypeNode(accessNode) && containsMissingType(propType) ? getUnionType([propType, undefinedType]) : propType; + } + if (everyType(objectType, isTupleType) && isNumericLiteralName(propName)) { + const index = +propName; + if (accessNode && everyType(objectType, (t) => !t.target.hasRestElement) && !(accessFlags & 16 /* NoTupleBoundsCheck */)) { + const indexNode = getIndexNodeForAccessExpression(accessNode); + if (isTupleType(objectType)) { + if (index < 0) { + error(indexNode, Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value); + return undefinedType; + } + error(indexNode, Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), unescapeLeadingUnderscores(propName)); + } else { + error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + } + } + if (index >= 0) { + errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType)); + return getTupleElementTypeOutOfStartCount(objectType, index, accessFlags & 1 /* IncludeUndefined */ ? missingType : void 0); + } + } + } + if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) { + if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) { + return objectType; + } + const indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType); + if (indexInfo) { + if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) { + if (accessExpression) { + if (accessFlags & 4 /* Writing */) { + error(accessExpression, Diagnostics.Type_0_is_generic_and_can_only_be_indexed_for_reading, typeToString(originalObjectType)); + } else { + error(accessExpression, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType)); + } + } + return void 0; + } + if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { + const indexNode = getIndexNodeForAccessExpression(accessNode); + error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, missingType]) : indexInfo.type; + } + errorIfWritingToReadonlyIndex(indexInfo); + if (accessFlags & 1 /* IncludeUndefined */ && !(objectType.symbol && objectType.symbol.flags & (256 /* RegularEnum */ | 128 /* ConstEnum */) && (indexType.symbol && indexType.flags & 1024 /* EnumLiteral */ && getParentOfSymbol(indexType.symbol) === objectType.symbol))) { + return getUnionType([indexInfo.type, missingType]); + } + return indexInfo.type; + } + if (indexType.flags & 131072 /* Never */) { + return neverType; + } + if (isJSLiteralType(objectType)) { + return anyType; + } + if (accessExpression && !isConstEnumObjectType(objectType)) { + if (isObjectLiteralType(objectType)) { + if (noImplicitAny && indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + diagnostics.add(createDiagnosticForNode(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType))); + return undefinedType; + } else if (indexType.flags & (8 /* Number */ | 4 /* String */)) { + const types = map(objectType.properties, (property) => { + return getTypeOfSymbol(property); + }); + return getUnionType(append(types, undefinedType)); + } + } + if (objectType.symbol === globalThisSymbol && propName !== void 0 && globalThisSymbol.exports.has(propName) && globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */) { + error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(propName), typeToString(objectType)); + } else if (noImplicitAny && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) { + if (propName !== void 0 && typeHasStaticProperty(propName, objectType)) { + const typeName = typeToString(objectType); + error(accessExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "[" + getTextOfNode(accessExpression.argumentExpression) + "]"); + } else if (getIndexTypeOfType(objectType, numberType)) { + error(accessExpression.argumentExpression, Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number); + } else { + let suggestion; + if (propName !== void 0 && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) { + if (suggestion !== void 0) { + error(accessExpression.argumentExpression, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion); + } + } else { + const suggestion2 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType); + if (suggestion2 !== void 0) { + error(accessExpression, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion2); + } else { + let errorInfo; + if (indexType.flags & 1024 /* EnumLiteral */) { + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Property_0_does_not_exist_on_type_1, + "[" + typeToString(indexType) + "]", + typeToString(objectType) + ); + } else if (indexType.flags & 8192 /* UniqueESSymbol */) { + const symbolName2 = getFullyQualifiedName(indexType.symbol, accessExpression); + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Property_0_does_not_exist_on_type_1, + "[" + symbolName2 + "]", + typeToString(objectType) + ); + } else if (indexType.flags & 128 /* StringLiteral */) { + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Property_0_does_not_exist_on_type_1, + indexType.value, + typeToString(objectType) + ); + } else if (indexType.flags & 256 /* NumberLiteral */) { + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Property_0_does_not_exist_on_type_1, + indexType.value, + typeToString(objectType) + ); + } else if (indexType.flags & (8 /* Number */ | 4 /* String */)) { + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, + typeToString(indexType), + typeToString(objectType) + ); + } + errorInfo = chainDiagnosticMessages( + errorInfo, + Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, + typeToString(fullIndexType), + typeToString(objectType) + ); + diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(accessExpression), accessExpression, errorInfo)); + } + } + } + } + return void 0; + } + } + if (isJSLiteralType(objectType)) { + return anyType; + } + if (accessNode) { + const indexNode = getIndexNodeForAccessExpression(accessNode); + if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + error(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); + } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { + error(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); + } else { + error(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); + } + } + if (isTypeAny(indexType)) { + return indexType; + } + return void 0; + function errorIfWritingToReadonlyIndex(indexInfo) { + if (indexInfo && indexInfo.isReadonly && accessExpression && (isAssignmentTarget(accessExpression) || isDeleteTarget(accessExpression))) { + error(accessExpression, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + } + } + } + function getIndexNodeForAccessExpression(accessNode) { + return accessNode.kind === 212 /* ElementAccessExpression */ ? accessNode.argumentExpression : accessNode.kind === 199 /* IndexedAccessType */ ? accessNode.indexType : accessNode.kind === 167 /* ComputedPropertyName */ ? accessNode.expression : accessNode; + } + function isPatternLiteralPlaceholderType(type) { + if (type.flags & 2097152 /* Intersection */) { + let seenPlaceholder = false; + for (const t of type.types) { + if (t.flags & (2944 /* Literal */ | 98304 /* Nullable */) || isPatternLiteralPlaceholderType(t)) { + seenPlaceholder = true; + } else if (!(t.flags & 524288 /* Object */)) { + return false; + } + } + return seenPlaceholder; + } + return !!(type.flags & (1 /* Any */ | 4 /* String */ | 8 /* Number */ | 64 /* BigInt */)) || isPatternLiteralType(type); + } + function isPatternLiteralType(type) { + return !!(type.flags & 134217728 /* TemplateLiteral */) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456 /* StringMapping */) && isPatternLiteralPlaceholderType(type.type); + } + function isGenericStringLikeType(type) { + return !!(type.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) && !isPatternLiteralType(type); + } + function isGenericType(type) { + return !!getGenericObjectFlags(type); + } + function isGenericObjectType(type) { + return !!(getGenericObjectFlags(type) & 4194304 /* IsGenericObjectType */); + } + function isGenericIndexType(type) { + return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */); + } + function getGenericObjectFlags(type) { + if (type.flags & 3145728 /* UnionOrIntersection */) { + if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) { + type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0); + } + return type.objectFlags & 12582912 /* IsGenericType */; + } + if (type.flags & 33554432 /* Substitution */) { + if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) { + type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | getGenericObjectFlags(type.baseType) | getGenericObjectFlags(type.constraint); + } + return type.objectFlags & 12582912 /* IsGenericType */; + } + return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0); + } + function getSimplifiedType(type, writing) { + return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type; + } + function distributeIndexOverObjectType(objectType, indexType, writing) { + if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !shouldDeferIndexType(objectType)) { + const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing)); + return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types); + } + } + function distributeObjectOverIndexType(objectType, indexType, writing) { + if (indexType.flags & 1048576 /* Union */) { + const types = map(indexType.types, (t) => getSimplifiedType(getIndexedAccessType(objectType, t), writing)); + return writing ? getIntersectionType(types) : getUnionType(types); + } + } + function getSimplifiedIndexedAccessType(type, writing) { + const cache = writing ? "simplifiedForWriting" : "simplifiedForReading"; + if (type[cache]) { + return type[cache] === circularConstraintType ? type : type[cache]; + } + type[cache] = circularConstraintType; + const objectType = getSimplifiedType(type.objectType, writing); + const indexType = getSimplifiedType(type.indexType, writing); + const distributedOverIndex = distributeObjectOverIndexType(objectType, indexType, writing); + if (distributedOverIndex) { + return type[cache] = distributedOverIndex; + } + if (!(indexType.flags & 465829888 /* Instantiable */)) { + const distributedOverObject = distributeIndexOverObjectType(objectType, indexType, writing); + if (distributedOverObject) { + return type[cache] = distributedOverObject; + } + } + if (isGenericTupleType(objectType) && indexType.flags & 296 /* NumberLike */) { + const elementType = getElementTypeOfSliceOfTupleType( + objectType, + indexType.flags & 8 /* Number */ ? 0 : objectType.target.fixedLength, + /*endSkipCount*/ + 0, + writing + ); + if (elementType) { + return type[cache] = elementType; + } + } + if (isGenericMappedType(objectType)) { + if (getMappedTypeNameTypeKind(objectType) !== 2 /* Remapping */) { + return type[cache] = mapType(substituteIndexedMappedType(objectType, type.indexType), (t) => getSimplifiedType(t, writing)); + } + } + return type[cache] = type; + } + function getSimplifiedConditionalType(type, writing) { + const checkType = type.checkType; + const extendsType = type.extendsType; + const trueType2 = getTrueTypeFromConditionalType(type); + const falseType2 = getFalseTypeFromConditionalType(type); + if (falseType2.flags & 131072 /* Never */ && getActualTypeVariable(trueType2) === getActualTypeVariable(checkType)) { + if (checkType.flags & 1 /* Any */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { + return getSimplifiedType(trueType2, writing); + } else if (isIntersectionEmpty(checkType, extendsType)) { + return neverType; + } + } else if (trueType2.flags & 131072 /* Never */ && getActualTypeVariable(falseType2) === getActualTypeVariable(checkType)) { + if (!(checkType.flags & 1 /* Any */) && isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { + return neverType; + } else if (checkType.flags & 1 /* Any */ || isIntersectionEmpty(checkType, extendsType)) { + return getSimplifiedType(falseType2, writing); + } + } + return type; + } + function isIntersectionEmpty(type1, type2) { + return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */); + } + function substituteIndexedMappedType(objectType, index) { + const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]); + const templateMapper = combineTypeMappers(objectType.mapper, mapper); + const instantiatedTemplateType = instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper); + const isOptional = getMappedTypeOptionality(objectType) > 0 || (isGenericType(objectType) ? getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(objectType)) > 0 : couldAccessOptionalProperty(objectType, index)); + return addOptionality( + instantiatedTemplateType, + /*isProperty*/ + true, + isOptional + ); + } + function couldAccessOptionalProperty(objectType, indexType) { + const indexConstraint = getBaseConstraintOfType(indexType); + return !!indexConstraint && some(getPropertiesOfType(objectType), (p) => !!(p.flags & 16777216 /* Optional */) && isTypeAssignableTo(getLiteralTypeFromProperty(p, 8576 /* StringOrNumberLiteralOrUnique */), indexConstraint)); + } + function getIndexedAccessType(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) { + return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType); + } + function indexTypeLessThan(indexType, limit) { + return everyType(indexType, (t) => { + if (t.flags & 384 /* StringOrNumberLiteral */) { + const propName = getPropertyNameFromType(t); + if (isNumericLiteralName(propName)) { + const index = +propName; + return index >= 0 && index < limit; + } + } + return false; + }); + } + function getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) { + if (objectType === wildcardType || indexType === wildcardType) { + return wildcardType; + } + objectType = getReducedType(objectType); + if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) { + indexType = stringType; + } + if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */) accessFlags |= 1 /* IncludeUndefined */; + if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 199 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target)) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, getTotalFixedElementCount(objectType.target))) || isGenericReducibleType(objectType))) { + if (objectType.flags & 3 /* AnyOrUnknown */) { + return objectType; + } + const persistentAccessFlags = accessFlags & 1 /* Persistent */; + const id = objectType.id + "," + indexType.id + "," + persistentAccessFlags + getAliasId(aliasSymbol, aliasTypeArguments); + let type = indexedAccessTypes.get(id); + if (!type) { + indexedAccessTypes.set(id, type = createIndexedAccessType(objectType, indexType, persistentAccessFlags, aliasSymbol, aliasTypeArguments)); + } + return type; + } + const apparentObjectType = getReducedApparentType(objectType); + if (indexType.flags & 1048576 /* Union */ && !(indexType.flags & 16 /* Boolean */)) { + const propTypes = []; + let wasMissingProp = false; + for (const t of indexType.types) { + const propType = getPropertyTypeForIndexType(objectType, apparentObjectType, t, indexType, accessNode, accessFlags | (wasMissingProp ? 128 /* SuppressNoImplicitAnyError */ : 0)); + if (propType) { + propTypes.push(propType); + } else if (!accessNode) { + return void 0; + } else { + wasMissingProp = true; + } + } + if (wasMissingProp) { + return void 0; + } + return accessFlags & 4 /* Writing */ ? getIntersectionType(propTypes, 0 /* None */, aliasSymbol, aliasTypeArguments) : getUnionType(propTypes, 1 /* Literal */, aliasSymbol, aliasTypeArguments); + } + return getPropertyTypeForIndexType(objectType, apparentObjectType, indexType, indexType, accessNode, accessFlags | 8 /* CacheSymbol */ | 64 /* ReportDeprecated */); + } + function getTypeFromIndexedAccessTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const objectType = getTypeFromTypeNode(node.objectType); + const indexType = getTypeFromTypeNode(node.indexType); + const potentialAlias = getAliasSymbolForTypeNode(node); + links.resolvedType = getIndexedAccessType(objectType, indexType, 0 /* None */, node, potentialAlias, getTypeArgumentsForAliasSymbol(potentialAlias)); + } + return links.resolvedType; + } + function getTypeFromMappedTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const type = createObjectType(32 /* Mapped */, node.symbol); + type.declaration = node; + type.aliasSymbol = getAliasSymbolForTypeNode(node); + type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(type.aliasSymbol); + links.resolvedType = type; + getConstraintTypeFromMappedType(type); + } + return links.resolvedType; + } + function getActualTypeVariable(type) { + if (type.flags & 33554432 /* Substitution */) { + return getActualTypeVariable(type.baseType); + } + if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ || type.indexType.flags & 33554432 /* Substitution */)) { + return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType)); + } + return type; + } + function isSimpleTupleType(node) { + return isTupleTypeNode(node) && length(node.elements) > 0 && !some(node.elements, (e) => isOptionalTypeNode(e) || isRestTypeNode(e) || isNamedTupleMember(e) && !!(e.questionToken || e.dotDotDotToken)); + } + function isDeferredType(type, checkTuples) { + return isGenericType(type) || checkTuples && isTupleType(type) && some(getElementTypes(type), isGenericType); + } + function getConditionalType(root, mapper, forConstraint, aliasSymbol, aliasTypeArguments) { + let result; + let extraTypes; + let tailCount = 0; + while (true) { + if (tailCount === 1e3) { + error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + return errorType; + } + const checkType = instantiateType(getActualTypeVariable(root.checkType), mapper); + const extendsType = instantiateType(root.extendsType, mapper); + if (checkType === errorType || extendsType === errorType) { + return errorType; + } + if (checkType === wildcardType || extendsType === wildcardType) { + return wildcardType; + } + const checkTypeNode = skipTypeParentheses(root.node.checkType); + const extendsTypeNode = skipTypeParentheses(root.node.extendsType); + const checkTuples = isSimpleTupleType(checkTypeNode) && isSimpleTupleType(extendsTypeNode) && length(checkTypeNode.elements) === length(extendsTypeNode.elements); + const checkTypeDeferred = isDeferredType(checkType, checkTuples); + let combinedMapper; + if (root.inferTypeParameters) { + const context = createInferenceContext( + root.inferTypeParameters, + /*signature*/ + void 0, + 0 /* None */ + ); + if (mapper) { + context.nonFixingMapper = combineTypeMappers(context.nonFixingMapper, mapper); + } + if (!checkTypeDeferred) { + inferTypes(context.inferences, checkType, extendsType, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */); + } + combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper; + } + const inferredExtendsType = combinedMapper ? instantiateType(root.extendsType, combinedMapper) : extendsType; + if (!checkTypeDeferred && !isDeferredType(inferredExtendsType, checkTuples)) { + if (!(inferredExtendsType.flags & 3 /* AnyOrUnknown */) && (checkType.flags & 1 /* Any */ || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) { + if (checkType.flags & 1 /* Any */ || forConstraint && !(inferredExtendsType.flags & 131072 /* Never */) && someType(getPermissiveInstantiation(inferredExtendsType), (t) => isTypeAssignableTo(t, getPermissiveInstantiation(checkType)))) { + (extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper)); + } + const falseType2 = getTypeFromTypeNode(root.node.falseType); + if (falseType2.flags & 16777216 /* Conditional */) { + const newRoot = falseType2.root; + if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) { + root = newRoot; + continue; + } + if (canTailRecurse(falseType2, mapper)) { + continue; + } + } + result = instantiateType(falseType2, mapper); + break; + } + if (inferredExtendsType.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) { + const trueType2 = getTypeFromTypeNode(root.node.trueType); + const trueMapper = combinedMapper || mapper; + if (canTailRecurse(trueType2, trueMapper)) { + continue; + } + result = instantiateType(trueType2, trueMapper); + break; + } + } + result = createType(16777216 /* Conditional */); + result.root = root; + result.checkType = instantiateType(root.checkType, mapper); + result.extendsType = instantiateType(root.extendsType, mapper); + result.mapper = mapper; + result.combinedMapper = combinedMapper; + result.aliasSymbol = aliasSymbol || root.aliasSymbol; + result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper); + break; + } + return extraTypes ? getUnionType(append(extraTypes, result)) : result; + function canTailRecurse(newType, newMapper) { + if (newType.flags & 16777216 /* Conditional */ && newMapper) { + const newRoot = newType.root; + if (newRoot.outerTypeParameters) { + const typeParamMapper = combineTypeMappers(newType.mapper, newMapper); + const typeArguments = map(newRoot.outerTypeParameters, (t) => getMappedType(t, typeParamMapper)); + const newRootMapper = createTypeMapper(newRoot.outerTypeParameters, typeArguments); + const newCheckType = newRoot.isDistributive ? getMappedType(newRoot.checkType, newRootMapper) : void 0; + if (!newCheckType || newCheckType === newRoot.checkType || !(newCheckType.flags & (1048576 /* Union */ | 131072 /* Never */))) { + root = newRoot; + mapper = newRootMapper; + aliasSymbol = void 0; + aliasTypeArguments = void 0; + if (newRoot.aliasSymbol) { + tailCount++; + } + return true; + } + } + } + return false; + } + } + function getTrueTypeFromConditionalType(type) { + return type.resolvedTrueType || (type.resolvedTrueType = instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.mapper)); + } + function getFalseTypeFromConditionalType(type) { + return type.resolvedFalseType || (type.resolvedFalseType = instantiateType(getTypeFromTypeNode(type.root.node.falseType), type.mapper)); + } + function getInferredTrueTypeFromConditionalType(type) { + return type.resolvedInferredTrueType || (type.resolvedInferredTrueType = type.combinedMapper ? instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.combinedMapper) : getTrueTypeFromConditionalType(type)); + } + function getInferTypeParameters(node) { + let result; + if (node.locals) { + node.locals.forEach((symbol) => { + if (symbol.flags & 262144 /* TypeParameter */) { + result = append(result, getDeclaredTypeOfSymbol(symbol)); + } + }); + } + return result; + } + function isDistributionDependent(root) { + return root.isDistributive && (isTypeParameterPossiblyReferenced(root.checkType, root.node.trueType) || isTypeParameterPossiblyReferenced(root.checkType, root.node.falseType)); + } + function getTypeFromConditionalTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const checkType = getTypeFromTypeNode(node.checkType); + const aliasSymbol = getAliasSymbolForTypeNode(node); + const aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); + const allOuterTypeParameters = getOuterTypeParameters( + node, + /*includeThisTypes*/ + true + ); + const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter(allOuterTypeParameters, (tp) => isTypeParameterPossiblyReferenced(tp, node)); + const root = { + node, + checkType, + extendsType: getTypeFromTypeNode(node.extendsType), + isDistributive: !!(checkType.flags & 262144 /* TypeParameter */), + inferTypeParameters: getInferTypeParameters(node), + outerTypeParameters, + instantiations: void 0, + aliasSymbol, + aliasTypeArguments + }; + links.resolvedType = getConditionalType( + root, + /*mapper*/ + void 0, + /*forConstraint*/ + false + ); + if (outerTypeParameters) { + root.instantiations = /* @__PURE__ */ new Map(); + root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType); + } + } + return links.resolvedType; + } + function getTypeFromInferTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + links.resolvedType = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter)); + } + return links.resolvedType; + } + function getIdentifierChain(node) { + if (isIdentifier(node)) { + return [node]; + } else { + return append(getIdentifierChain(node.left), node.right); + } + } + function getTypeFromImportTypeNode(node) { + var _a; + const links = getNodeLinks(node); + if (!links.resolvedType) { + if (!isLiteralImportTypeNode(node)) { + error(node.argument, Diagnostics.String_literal_expected); + links.resolvedSymbol = unknownSymbol; + return links.resolvedType = errorType; + } + const targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 16777216 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */; + const innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal); + if (!innerModuleSymbol) { + links.resolvedSymbol = unknownSymbol; + return links.resolvedType = errorType; + } + const isExportEquals = !!((_a = innerModuleSymbol.exports) == null ? void 0 : _a.get("export=" /* ExportEquals */)); + const moduleSymbol = resolveExternalModuleSymbol( + innerModuleSymbol, + /*dontResolveAlias*/ + false + ); + if (!nodeIsMissing(node.qualifier)) { + const nameStack = getIdentifierChain(node.qualifier); + let currentNamespace = moduleSymbol; + let current; + while (current = nameStack.shift()) { + const meaning = nameStack.length ? 1920 /* Namespace */ : targetMeaning; + const mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace)); + const symbolFromVariable = node.isTypeOf || isInJSFile(node) && isExportEquals ? getPropertyOfType( + getTypeOfSymbol(mergedResolvedSymbol), + current.escapedText, + /*skipObjectFunctionPropertyAugment*/ + false, + /*includeTypeOnlyMembers*/ + true + ) : void 0; + const symbolFromModule = node.isTypeOf ? void 0 : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning); + const next = symbolFromModule ?? symbolFromVariable; + if (!next) { + error(current, Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), declarationNameToString(current)); + return links.resolvedType = errorType; + } + getNodeLinks(current).resolvedSymbol = next; + getNodeLinks(current.parent).resolvedSymbol = next; + currentNamespace = next; + } + links.resolvedType = resolveImportSymbolType(node, links, currentNamespace, targetMeaning); + } else { + if (moduleSymbol.flags & targetMeaning) { + links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning); + } else { + const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0; + error(node, errorMessage, node.argument.literal.text); + links.resolvedSymbol = unknownSymbol; + links.resolvedType = errorType; + } + } + } + return links.resolvedType; + } + function resolveImportSymbolType(node, links, symbol, meaning) { + const resolvedSymbol = resolveSymbol(symbol); + links.resolvedSymbol = resolvedSymbol; + if (meaning === 111551 /* Value */) { + return getInstantiationExpressionType(getTypeOfSymbol(symbol), node); + } else { + return getTypeReferenceType(node, resolvedSymbol); + } + } + function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + const aliasSymbol = getAliasSymbolForTypeNode(node); + if (getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) { + links.resolvedType = emptyTypeLiteralType; + } else { + let type = createObjectType(16 /* Anonymous */, node.symbol); + type.aliasSymbol = aliasSymbol; + type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol); + if (isJSDocTypeLiteral(node) && node.isArrayType) { + type = createArrayType(type); + } + links.resolvedType = type; + } + } + return links.resolvedType; + } + function getAliasSymbolForTypeNode(node) { + let host2 = node.parent; + while (isParenthesizedTypeNode(host2) || isJSDocTypeExpression(host2) || isTypeOperatorNode(host2) && host2.operator === 148 /* ReadonlyKeyword */) { + host2 = host2.parent; + } + return isTypeAlias(host2) ? getSymbolOfDeclaration(host2) : void 0; + } + function getTypeArgumentsForAliasSymbol(symbol) { + return symbol ? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : void 0; + } + function isNonGenericObjectType(type) { + return !!(type.flags & 524288 /* Object */) && !isGenericMappedType(type); + } + function isEmptyObjectTypeOrSpreadsIntoEmptyObject(type) { + return isEmptyObjectType(type) || !!(type.flags & (65536 /* Null */ | 32768 /* Undefined */ | 528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */)); + } + function tryMergeUnionOfObjectTypeAndEmptyObject(type, readonly) { + if (!(type.flags & 1048576 /* Union */)) { + return type; + } + if (every(type.types, isEmptyObjectTypeOrSpreadsIntoEmptyObject)) { + return find(type.types, isEmptyObjectType) || emptyObjectType; + } + const firstType = find(type.types, (t) => !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t)); + if (!firstType) { + return type; + } + const secondType = find(type.types, (t) => t !== firstType && !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t)); + if (secondType) { + return type; + } + return getAnonymousPartialType(firstType); + function getAnonymousPartialType(type2) { + const members = createSymbolTable(); + for (const prop of getPropertiesOfType(type2)) { + if (getDeclarationModifierFlagsFromSymbol(prop) & (2 /* Private */ | 4 /* Protected */)) { + } else if (isSpreadableProperty(prop)) { + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + const flags = 4 /* Property */ | 16777216 /* Optional */; + const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0)); + result.links.type = isSetonlyAccessor ? undefinedType : addOptionality( + getTypeOfSymbol(prop), + /*isProperty*/ + true + ); + result.declarations = prop.declarations; + result.links.nameType = getSymbolLinks(prop).nameType; + result.links.syntheticOrigin = prop; + members.set(prop.escapedName, result); + } + } + const spread = createAnonymousType(type2.symbol, members, emptyArray, emptyArray, getIndexInfosOfType(type2)); + spread.objectFlags |= 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + return spread; + } + } + function getSpreadType(left, right, symbol, objectFlags, readonly) { + if (left.flags & 1 /* Any */ || right.flags & 1 /* Any */) { + return anyType; + } + if (left.flags & 2 /* Unknown */ || right.flags & 2 /* Unknown */) { + return unknownType; + } + if (left.flags & 131072 /* Never */) { + return right; + } + if (right.flags & 131072 /* Never */) { + return left; + } + left = tryMergeUnionOfObjectTypeAndEmptyObject(left, readonly); + if (left.flags & 1048576 /* Union */) { + return checkCrossProductUnion([left, right]) ? mapType(left, (t) => getSpreadType(t, right, symbol, objectFlags, readonly)) : errorType; + } + right = tryMergeUnionOfObjectTypeAndEmptyObject(right, readonly); + if (right.flags & 1048576 /* Union */) { + return checkCrossProductUnion([left, right]) ? mapType(right, (t) => getSpreadType(left, t, symbol, objectFlags, readonly)) : errorType; + } + if (right.flags & (528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */)) { + return left; + } + if (isGenericObjectType(left) || isGenericObjectType(right)) { + if (isEmptyObjectType(left)) { + return right; + } + if (left.flags & 2097152 /* Intersection */) { + const types = left.types; + const lastLeft = types[types.length - 1]; + if (isNonGenericObjectType(lastLeft) && isNonGenericObjectType(right)) { + return getIntersectionType(concatenate(types.slice(0, types.length - 1), [getSpreadType(lastLeft, right, symbol, objectFlags, readonly)])); + } + } + return getIntersectionType([left, right]); + } + const members = createSymbolTable(); + const skippedPrivateMembers = /* @__PURE__ */ new Set(); + const indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]); + for (const rightProp of getPropertiesOfType(right)) { + if (getDeclarationModifierFlagsFromSymbol(rightProp) & (2 /* Private */ | 4 /* Protected */)) { + skippedPrivateMembers.add(rightProp.escapedName); + } else if (isSpreadableProperty(rightProp)) { + members.set(rightProp.escapedName, getSpreadSymbol(rightProp, readonly)); + } + } + for (const leftProp of getPropertiesOfType(left)) { + if (skippedPrivateMembers.has(leftProp.escapedName) || !isSpreadableProperty(leftProp)) { + continue; + } + if (members.has(leftProp.escapedName)) { + const rightProp = members.get(leftProp.escapedName); + const rightType = getTypeOfSymbol(rightProp); + if (rightProp.flags & 16777216 /* Optional */) { + const declarations = concatenate(leftProp.declarations, rightProp.declarations); + const flags = 4 /* Property */ | leftProp.flags & 16777216 /* Optional */; + const result = createSymbol(flags, leftProp.escapedName); + const leftType = getTypeOfSymbol(leftProp); + const leftTypeWithoutUndefined = removeMissingOrUndefinedType(leftType); + const rightTypeWithoutUndefined = removeMissingOrUndefinedType(rightType); + result.links.type = leftTypeWithoutUndefined === rightTypeWithoutUndefined ? leftType : getUnionType([leftType, rightTypeWithoutUndefined], 2 /* Subtype */); + result.links.leftSpread = leftProp; + result.links.rightSpread = rightProp; + result.declarations = declarations; + result.links.nameType = getSymbolLinks(leftProp).nameType; + members.set(leftProp.escapedName, result); + } + } else { + members.set(leftProp.escapedName, getSpreadSymbol(leftProp, readonly)); + } + } + const spread = createAnonymousType(symbol, members, emptyArray, emptyArray, sameMap(indexInfos, (info) => getIndexInfoWithReadonly(info, readonly))); + spread.objectFlags |= 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */ | 2097152 /* ContainsSpread */ | objectFlags; + return spread; + } + function isSpreadableProperty(prop) { + var _a; + return !some(prop.declarations, isPrivateIdentifierClassElementDeclaration) && (!(prop.flags & (8192 /* Method */ | 32768 /* GetAccessor */ | 65536 /* SetAccessor */)) || !((_a = prop.declarations) == null ? void 0 : _a.some((decl) => isClassLike(decl.parent)))); + } + function getSpreadSymbol(prop, readonly) { + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + if (!isSetonlyAccessor && readonly === isReadonlySymbol(prop)) { + return prop; + } + const flags = 4 /* Property */ | prop.flags & 16777216 /* Optional */; + const result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0)); + result.links.type = isSetonlyAccessor ? undefinedType : getTypeOfSymbol(prop); + result.declarations = prop.declarations; + result.links.nameType = getSymbolLinks(prop).nameType; + result.links.syntheticOrigin = prop; + return result; + } + function getIndexInfoWithReadonly(info, readonly) { + return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info; + } + function createLiteralType(flags, value, symbol, regularType) { + const type = createTypeWithSymbol(flags, symbol); + type.value = value; + type.regularType = regularType || type; + return type; + } + function getFreshTypeOfLiteralType(type) { + if (type.flags & 2976 /* Freshable */) { + if (!type.freshType) { + const freshType = createLiteralType(type.flags, type.value, type.symbol, type); + freshType.freshType = freshType; + type.freshType = freshType; + } + return type.freshType; + } + return type; + } + function getRegularTypeOfLiteralType(type) { + return type.flags & 2976 /* Freshable */ ? type.regularType : type.flags & 1048576 /* Union */ ? type.regularType || (type.regularType = mapType(type, getRegularTypeOfLiteralType)) : type; + } + function isFreshLiteralType(type) { + return !!(type.flags & 2976 /* Freshable */) && type.freshType === type; + } + function getStringLiteralType(value) { + let type; + return stringLiteralTypes.get(value) || (stringLiteralTypes.set(value, type = createLiteralType(128 /* StringLiteral */, value)), type); + } + function getNumberLiteralType(value) { + let type; + return numberLiteralTypes.get(value) || (numberLiteralTypes.set(value, type = createLiteralType(256 /* NumberLiteral */, value)), type); + } + function getBigIntLiteralType(value) { + let type; + const key = pseudoBigIntToString(value); + return bigIntLiteralTypes.get(key) || (bigIntLiteralTypes.set(key, type = createLiteralType(2048 /* BigIntLiteral */, value)), type); + } + function getEnumLiteralType(value, enumId, symbol) { + let type; + const key = `${enumId}${typeof value === "string" ? "@" : "#"}${value}`; + const flags = 1024 /* EnumLiteral */ | (typeof value === "string" ? 128 /* StringLiteral */ : 256 /* NumberLiteral */); + return enumLiteralTypes.get(key) || (enumLiteralTypes.set(key, type = createLiteralType(flags, value, symbol)), type); + } + function getTypeFromLiteralTypeNode(node) { + if (node.literal.kind === 106 /* NullKeyword */) { + return nullType; + } + const links = getNodeLinks(node); + if (!links.resolvedType) { + links.resolvedType = getRegularTypeOfLiteralType(checkExpression(node.literal)); + } + return links.resolvedType; + } + function createUniqueESSymbolType(symbol) { + const type = createTypeWithSymbol(8192 /* UniqueESSymbol */, symbol); + type.escapedName = `__@${type.symbol.escapedName}@${getSymbolId(type.symbol)}`; + return type; + } + function getESSymbolLikeTypeForNode(node) { + if (isInJSFile(node) && isJSDocTypeExpression(node)) { + const host2 = getJSDocHost(node); + if (host2) { + node = getSingleVariableOfVariableStatement(host2) || host2; + } + } + if (isValidESSymbolDeclaration(node)) { + const symbol = isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node); + if (symbol) { + const links = getSymbolLinks(symbol); + return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol)); + } + } + return esSymbolType; + } + function getThisType(node) { + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + const parent = container && container.parent; + if (parent && (isClassLike(parent) || parent.kind === 264 /* InterfaceDeclaration */)) { + if (!isStatic(container) && (!isConstructorDeclaration(container) || isNodeDescendantOf(node, container.body))) { + return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(parent)).thisType; + } + } + if (parent && isObjectLiteralExpression(parent) && isBinaryExpression(parent.parent) && getAssignmentDeclarationKind(parent.parent) === 6 /* Prototype */) { + return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent.parent.left).parent).thisType; + } + const host2 = node.flags & 16777216 /* JSDoc */ ? getHostSignatureFromJSDoc(node) : void 0; + if (host2 && isFunctionExpression(host2) && isBinaryExpression(host2.parent) && getAssignmentDeclarationKind(host2.parent) === 3 /* PrototypeProperty */) { + return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host2.parent.left).parent).thisType; + } + if (isJSConstructor(container) && isNodeDescendantOf(node, container.body)) { + return getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(container)).thisType; + } + error(node, Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface); + return errorType; + } + function getTypeFromThisTypeNode(node) { + const links = getNodeLinks(node); + if (!links.resolvedType) { + links.resolvedType = getThisType(node); + } + return links.resolvedType; + } + function getTypeFromRestTypeNode(node) { + return getTypeFromTypeNode(getArrayElementTypeNode(node.type) || node.type); + } + function getArrayElementTypeNode(node) { + switch (node.kind) { + case 196 /* ParenthesizedType */: + return getArrayElementTypeNode(node.type); + case 189 /* TupleType */: + if (node.elements.length === 1) { + node = node.elements[0]; + if (node.kind === 191 /* RestType */ || node.kind === 202 /* NamedTupleMember */ && node.dotDotDotToken) { + return getArrayElementTypeNode(node.type); + } + } + break; + case 188 /* ArrayType */: + return node.elementType; + } + return void 0; + } + function getTypeFromNamedTupleTypeNode(node) { + const links = getNodeLinks(node); + return links.resolvedType || (links.resolvedType = node.dotDotDotToken ? getTypeFromRestTypeNode(node) : addOptionality( + getTypeFromTypeNode(node.type), + /*isProperty*/ + true, + !!node.questionToken + )); + } + function getTypeFromTypeNode(node) { + return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node); + } + function getTypeFromTypeNodeWorker(node) { + switch (node.kind) { + case 133 /* AnyKeyword */: + case 312 /* JSDocAllType */: + case 313 /* JSDocUnknownType */: + return anyType; + case 159 /* UnknownKeyword */: + return unknownType; + case 154 /* StringKeyword */: + return stringType; + case 150 /* NumberKeyword */: + return numberType; + case 163 /* BigIntKeyword */: + return bigintType; + case 136 /* BooleanKeyword */: + return booleanType; + case 155 /* SymbolKeyword */: + return esSymbolType; + case 116 /* VoidKeyword */: + return voidType; + case 157 /* UndefinedKeyword */: + return undefinedType; + case 106 /* NullKeyword */: + return nullType; + case 146 /* NeverKeyword */: + return neverType; + case 151 /* ObjectKeyword */: + return node.flags & 524288 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType; + case 141 /* IntrinsicKeyword */: + return intrinsicMarkerType; + case 197 /* ThisType */: + case 110 /* ThisKeyword */: + return getTypeFromThisTypeNode(node); + case 201 /* LiteralType */: + return getTypeFromLiteralTypeNode(node); + case 183 /* TypeReference */: + return getTypeFromTypeReference(node); + case 182 /* TypePredicate */: + return node.assertsModifier ? voidType : booleanType; + case 233 /* ExpressionWithTypeArguments */: + return getTypeFromTypeReference(node); + case 186 /* TypeQuery */: + return getTypeFromTypeQueryNode(node); + case 188 /* ArrayType */: + case 189 /* TupleType */: + return getTypeFromArrayOrTupleTypeNode(node); + case 190 /* OptionalType */: + return getTypeFromOptionalTypeNode(node); + case 192 /* UnionType */: + return getTypeFromUnionTypeNode(node); + case 193 /* IntersectionType */: + return getTypeFromIntersectionTypeNode(node); + case 314 /* JSDocNullableType */: + return getTypeFromJSDocNullableTypeNode(node); + case 316 /* JSDocOptionalType */: + return addOptionality(getTypeFromTypeNode(node.type)); + case 202 /* NamedTupleMember */: + return getTypeFromNamedTupleTypeNode(node); + case 196 /* ParenthesizedType */: + case 315 /* JSDocNonNullableType */: + case 309 /* JSDocTypeExpression */: + return getTypeFromTypeNode(node.type); + case 191 /* RestType */: + return getTypeFromRestTypeNode(node); + case 318 /* JSDocVariadicType */: + return getTypeFromJSDocVariadicType(node); + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 187 /* TypeLiteral */: + case 322 /* JSDocTypeLiteral */: + case 317 /* JSDocFunctionType */: + case 323 /* JSDocSignature */: + return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); + case 198 /* TypeOperator */: + return getTypeFromTypeOperatorNode(node); + case 199 /* IndexedAccessType */: + return getTypeFromIndexedAccessTypeNode(node); + case 200 /* MappedType */: + return getTypeFromMappedTypeNode(node); + case 194 /* ConditionalType */: + return getTypeFromConditionalTypeNode(node); + case 195 /* InferType */: + return getTypeFromInferTypeNode(node); + case 203 /* TemplateLiteralType */: + return getTypeFromTemplateTypeNode(node); + case 205 /* ImportType */: + return getTypeFromImportTypeNode(node); + case 80 /* Identifier */: + case 166 /* QualifiedName */: + case 211 /* PropertyAccessExpression */: + const symbol = getSymbolAtLocation(node); + return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; + default: + return errorType; + } + } + function instantiateList(items, mapper, instantiator) { + if (items && items.length) { + for (let i = 0; i < items.length; i++) { + const item = items[i]; + const mapped = instantiator(item, mapper); + if (item !== mapped) { + const result = i === 0 ? [] : items.slice(0, i); + result.push(mapped); + for (i++; i < items.length; i++) { + result.push(instantiator(items[i], mapper)); + } + return result; + } + } + } + return items; + } + function instantiateTypes(types, mapper) { + return instantiateList(types, mapper, instantiateType); + } + function instantiateSignatures(signatures, mapper) { + return instantiateList(signatures, mapper, instantiateSignature); + } + function instantiateIndexInfos(indexInfos, mapper) { + return instantiateList(indexInfos, mapper, instantiateIndexInfo); + } + function createTypeMapper(sources, targets) { + return sources.length === 1 ? makeUnaryTypeMapper(sources[0], targets ? targets[0] : anyType) : makeArrayTypeMapper(sources, targets); + } + function getMappedType(type, mapper) { + switch (mapper.kind) { + case 0 /* Simple */: + return type === mapper.source ? mapper.target : type; + case 1 /* Array */: { + const sources = mapper.sources; + const targets = mapper.targets; + for (let i = 0; i < sources.length; i++) { + if (type === sources[i]) { + return targets ? targets[i] : anyType; + } + } + return type; + } + case 2 /* Deferred */: { + const sources = mapper.sources; + const targets = mapper.targets; + for (let i = 0; i < sources.length; i++) { + if (type === sources[i]) { + return targets[i](); + } + } + return type; + } + case 3 /* Function */: + return mapper.func(type); + case 4 /* Composite */: + case 5 /* Merged */: + const t1 = getMappedType(type, mapper.mapper1); + return t1 !== type && mapper.kind === 4 /* Composite */ ? instantiateType(t1, mapper.mapper2) : getMappedType(t1, mapper.mapper2); + } + } + function makeUnaryTypeMapper(source, target) { + return Debug.attachDebugPrototypeIfDebug({ kind: 0 /* Simple */, source, target }); + } + function makeArrayTypeMapper(sources, targets) { + return Debug.attachDebugPrototypeIfDebug({ kind: 1 /* Array */, sources, targets }); + } + function makeFunctionTypeMapper(func, debugInfo) { + return Debug.attachDebugPrototypeIfDebug({ kind: 3 /* Function */, func, debugInfo: Debug.isDebugging ? debugInfo : void 0 }); + } + function makeDeferredTypeMapper(sources, targets) { + return Debug.attachDebugPrototypeIfDebug({ kind: 2 /* Deferred */, sources, targets }); + } + function makeCompositeTypeMapper(kind, mapper1, mapper2) { + return Debug.attachDebugPrototypeIfDebug({ kind, mapper1, mapper2 }); + } + function createTypeEraser(sources) { + return createTypeMapper( + sources, + /*targets*/ + void 0 + ); + } + function createBackreferenceMapper(context, index) { + const forwardInferences = context.inferences.slice(index); + return createTypeMapper(map(forwardInferences, (i) => i.typeParameter), map(forwardInferences, () => unknownType)); + } + function combineTypeMappers(mapper1, mapper2) { + return mapper1 ? makeCompositeTypeMapper(4 /* Composite */, mapper1, mapper2) : mapper2; + } + function mergeTypeMappers(mapper1, mapper2) { + return mapper1 ? makeCompositeTypeMapper(5 /* Merged */, mapper1, mapper2) : mapper2; + } + function prependTypeMapping(source, target, mapper) { + return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, makeUnaryTypeMapper(source, target), mapper); + } + function appendTypeMapping(mapper, source, target) { + return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(5 /* Merged */, mapper, makeUnaryTypeMapper(source, target)); + } + function getRestrictiveTypeParameter(tp) { + return !tp.constraint && !getConstraintDeclaration(tp) || tp.constraint === noConstraintType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol), tp.restrictiveInstantiation.constraint = noConstraintType, tp.restrictiveInstantiation); + } + function cloneTypeParameter(typeParameter) { + const result = createTypeParameter(typeParameter.symbol); + result.target = typeParameter; + return result; + } + function instantiateTypePredicate(predicate, mapper) { + return createTypePredicate(predicate.kind, predicate.parameterName, predicate.parameterIndex, instantiateType(predicate.type, mapper)); + } + function instantiateSignature(signature, mapper, eraseTypeParameters) { + let freshTypeParameters; + if (signature.typeParameters && !eraseTypeParameters) { + freshTypeParameters = map(signature.typeParameters, cloneTypeParameter); + mapper = combineTypeMappers(createTypeMapper(signature.typeParameters, freshTypeParameters), mapper); + for (const tp of freshTypeParameters) { + tp.mapper = mapper; + } + } + const result = createSignature( + signature.declaration, + freshTypeParameters, + signature.thisParameter && instantiateSymbol(signature.thisParameter, mapper), + instantiateList(signature.parameters, mapper, instantiateSymbol), + /*resolvedReturnType*/ + void 0, + /*resolvedTypePredicate*/ + void 0, + signature.minArgumentCount, + signature.flags & 167 /* PropagatingFlags */ + ); + result.target = signature; + result.mapper = mapper; + return result; + } + function instantiateSymbol(symbol, mapper) { + const links = getSymbolLinks(symbol); + if (links.type && !couldContainTypeVariables(links.type)) { + if (!(symbol.flags & 65536 /* SetAccessor */)) { + return symbol; + } + if (links.writeType && !couldContainTypeVariables(links.writeType)) { + return symbol; + } + } + if (getCheckFlags(symbol) & 1 /* Instantiated */) { + symbol = links.target; + mapper = combineTypeMappers(links.mapper, mapper); + } + const result = createSymbol(symbol.flags, symbol.escapedName, 1 /* Instantiated */ | getCheckFlags(symbol) & (8 /* Readonly */ | 4096 /* Late */ | 16384 /* OptionalParameter */ | 32768 /* RestParameter */)); + result.declarations = symbol.declarations; + result.parent = symbol.parent; + result.links.target = symbol; + result.links.mapper = mapper; + if (symbol.valueDeclaration) { + result.valueDeclaration = symbol.valueDeclaration; + } + if (links.nameType) { + result.links.nameType = links.nameType; + } + return result; + } + function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) { + const declaration = type.objectFlags & 4 /* Reference */ ? type.node : type.objectFlags & 8388608 /* InstantiationExpressionType */ ? type.node : type.symbol.declarations[0]; + const links = getNodeLinks(declaration); + const target = type.objectFlags & 4 /* Reference */ ? links.resolvedType : type.objectFlags & 64 /* Instantiated */ ? type.target : type; + let typeParameters = type.objectFlags & 134217728 /* SingleSignatureType */ ? type.outerTypeParameters : links.outerTypeParameters; + if (!typeParameters) { + let outerTypeParameters = getOuterTypeParameters( + declaration, + /*includeThisTypes*/ + true + ); + if (isJSConstructor(declaration)) { + const templateTagParameters = getTypeParametersFromDeclaration(declaration); + outerTypeParameters = addRange(outerTypeParameters, templateTagParameters); + } + typeParameters = outerTypeParameters || emptyArray; + const allDeclarations = type.objectFlags & (4 /* Reference */ | 8388608 /* InstantiationExpressionType */) ? [declaration] : type.symbol.declarations; + typeParameters = (target.objectFlags & (4 /* Reference */ | 8388608 /* InstantiationExpressionType */) || target.symbol.flags & 8192 /* Method */ || target.symbol.flags & 2048 /* TypeLiteral */) && !target.aliasTypeArguments ? filter(typeParameters, (tp) => some(allDeclarations, (d) => isTypeParameterPossiblyReferenced(tp, d))) : typeParameters; + links.outerTypeParameters = typeParameters; + } + if (typeParameters.length) { + const combinedMapper = combineTypeMappers(type.mapper, mapper); + const typeArguments = map(typeParameters, (t) => getMappedType(t, combinedMapper)); + const newAliasSymbol = aliasSymbol || type.aliasSymbol; + const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); + const id = (type.objectFlags & 134217728 /* SingleSignatureType */ ? "S" : "") + getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments); + if (!target.instantiations) { + target.instantiations = /* @__PURE__ */ new Map(); + target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target); + } + let result = target.instantiations.get(id); + if (!result) { + if (type.objectFlags & 134217728 /* SingleSignatureType */) { + result = instantiateAnonymousType(type, mapper); + target.instantiations.set(id, result); + return result; + } + const newMapper = createTypeMapper(typeParameters, typeArguments); + result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments); + target.instantiations.set(id, result); + const resultObjectFlags = getObjectFlags(result); + if (result.flags & 3899393 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) { + const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables); + if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) { + if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) { + result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0); + } else { + result.objectFlags |= !resultCouldContainTypeVariables ? 524288 /* CouldContainTypeVariablesComputed */ : 0; + } + } + } + } + return result; + } + return type; + } + function maybeTypeParameterReference(node) { + return !(node.parent.kind === 183 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName || node.parent.kind === 205 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier); + } + function isTypeParameterPossiblyReferenced(tp, node) { + if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) { + const container = tp.symbol.declarations[0].parent; + for (let n = node; n !== container; n = n.parent) { + if (!n || n.kind === 241 /* Block */ || n.kind === 194 /* ConditionalType */ && forEachChild(n.extendsType, containsReference)) { + return true; + } + } + return containsReference(node); + } + return true; + function containsReference(node2) { + switch (node2.kind) { + case 197 /* ThisType */: + return !!tp.isThisType; + case 80 /* Identifier */: + return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; + case 186 /* TypeQuery */: + const entityName = node2.exprName; + const firstIdentifier = getFirstIdentifier(entityName); + if (!isThisIdentifier(firstIdentifier)) { + const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier); + const tpDeclaration = tp.symbol.declarations[0]; + const tpScope = tpDeclaration.kind === 168 /* TypeParameter */ ? tpDeclaration.parent : ( + // Type parameter is a regular type parameter, e.g. foo + tp.isThisType ? tpDeclaration : ( + // Type parameter is the this type, and its declaration is the class declaration. + void 0 + ) + ); + if (firstIdentifierSymbol.declarations && tpScope) { + return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference); + } + } + return true; + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + return !node2.type && !!node2.body || some(node2.typeParameters, containsReference) || some(node2.parameters, containsReference) || !!node2.type && containsReference(node2.type); + } + return !!forEachChild(node2, containsReference); + } + } + function getHomomorphicTypeVariable(type) { + const constraintType = getConstraintTypeFromMappedType(type); + if (constraintType.flags & 4194304 /* Index */) { + const typeVariable = getActualTypeVariable(constraintType.type); + if (typeVariable.flags & 262144 /* TypeParameter */) { + return typeVariable; + } + } + return void 0; + } + function instantiateMappedType(type, mapper, aliasSymbol, aliasTypeArguments) { + const typeVariable = getHomomorphicTypeVariable(type); + if (typeVariable) { + const mappedTypeVariable = instantiateType(typeVariable, mapper); + if (typeVariable !== mappedTypeVariable) { + return mapTypeWithAlias(getReducedType(mappedTypeVariable), instantiateConstituent, aliasSymbol, aliasTypeArguments); + } + } + return instantiateType(getConstraintTypeFromMappedType(type), mapper) === wildcardType ? wildcardType : instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments); + function instantiateConstituent(t) { + if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) { + if (!type.declaration.nameType) { + let constraint; + if (isArrayType(t) || t.flags & 1 /* Any */ && findResolutionCycleStartIndex(typeVariable, 4 /* ImmediateBaseConstraint */) < 0 && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) { + return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper)); + } + if (isTupleType(t)) { + return instantiateMappedTupleType(t, type, typeVariable, mapper); + } + if (isArrayOrTupleOrIntersection(t)) { + return getIntersectionType(map(t.types, instantiateConstituent)); + } + } + return instantiateAnonymousType(type, prependTypeMapping(typeVariable, t, mapper)); + } + return t; + } + } + function getModifiedReadonlyState(state, modifiers) { + return modifiers & 1 /* IncludeReadonly */ ? true : modifiers & 2 /* ExcludeReadonly */ ? false : state; + } + function instantiateMappedTupleType(tupleType, mappedType, typeVariable, mapper) { + const elementFlags = tupleType.target.elementFlags; + const fixedLength = tupleType.target.fixedLength; + const fixedMapper = fixedLength ? prependTypeMapping(typeVariable, tupleType, mapper) : mapper; + const newElementTypes = map(getElementTypes(tupleType), (type, i) => { + const flags = elementFlags[i]; + return i < fixedLength ? instantiateMappedTypeTemplate(mappedType, getStringLiteralType("" + i), !!(flags & 2 /* Optional */), fixedMapper) : flags & 8 /* Variadic */ ? instantiateType(mappedType, prependTypeMapping(typeVariable, type, mapper)) : getElementTypeOfArrayType(instantiateType(mappedType, prependTypeMapping(typeVariable, createArrayType(type), mapper))) ?? unknownType; + }); + const modifiers = getMappedTypeModifiers(mappedType); + const newElementFlags = modifiers & 4 /* IncludeOptional */ ? map(elementFlags, (f) => f & 1 /* Required */ ? 2 /* Optional */ : f) : modifiers & 8 /* ExcludeOptional */ ? map(elementFlags, (f) => f & 2 /* Optional */ ? 1 /* Required */ : f) : elementFlags; + const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType)); + return contains(newElementTypes, errorType) ? errorType : createTupleType(newElementTypes, newElementFlags, newReadonly, tupleType.target.labeledElementDeclarations); + } + function instantiateMappedArrayType(arrayType, mappedType, mapper) { + const elementType = instantiateMappedTypeTemplate( + mappedType, + numberType, + /*isOptional*/ + true, + mapper + ); + return isErrorType(elementType) ? errorType : createArrayType(elementType, getModifiedReadonlyState(isReadonlyArrayType(arrayType), getMappedTypeModifiers(mappedType))); + } + function instantiateMappedTypeTemplate(type, key, isOptional, mapper) { + const templateMapper = appendTypeMapping(mapper, getTypeParameterFromMappedType(type), key); + const propType = instantiateType(getTemplateTypeFromMappedType(type.target || type), templateMapper); + const modifiers = getMappedTypeModifiers(type); + return strictNullChecks && modifiers & 4 /* IncludeOptional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType( + propType, + /*isProperty*/ + true + ) : strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) : propType; + } + function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) { + Debug.assert(type.symbol, "anonymous type must have symbol to be instantiated"); + const result = createObjectType(type.objectFlags & ~(524288 /* CouldContainTypeVariablesComputed */ | 1048576 /* CouldContainTypeVariables */) | 64 /* Instantiated */, type.symbol); + if (type.objectFlags & 32 /* Mapped */) { + result.declaration = type.declaration; + const origTypeParameter = getTypeParameterFromMappedType(type); + const freshTypeParameter = cloneTypeParameter(origTypeParameter); + result.typeParameter = freshTypeParameter; + mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper); + freshTypeParameter.mapper = mapper; + } + if (type.objectFlags & 8388608 /* InstantiationExpressionType */) { + result.node = type.node; + } + if (type.objectFlags & 134217728 /* SingleSignatureType */) { + result.outerTypeParameters = type.outerTypeParameters; + } + result.target = type; + result.mapper = mapper; + result.aliasSymbol = aliasSymbol || type.aliasSymbol; + result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); + result.objectFlags |= result.aliasTypeArguments ? getPropagatingFlagsOfTypes(result.aliasTypeArguments) : 0; + return result; + } + function getConditionalTypeInstantiation(type, mapper, forConstraint, aliasSymbol, aliasTypeArguments) { + const root = type.root; + if (root.outerTypeParameters) { + const typeArguments = map(root.outerTypeParameters, (t) => getMappedType(t, mapper)); + const id = (forConstraint ? "C" : "") + getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments); + let result = root.instantiations.get(id); + if (!result) { + const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments); + const checkType = root.checkType; + const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0; + result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments); + root.instantiations.set(id, result); + } + return result; + } + return type; + } + function instantiateType(type, mapper) { + return type && mapper ? instantiateTypeWithAlias( + type, + mapper, + /*aliasSymbol*/ + void 0, + /*aliasTypeArguments*/ + void 0 + ) : type; + } + function instantiateTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) { + var _a; + if (!couldContainTypeVariables(type)) { + return type; + } + if (instantiationDepth === 100 || instantiationCount >= 5e6) { + (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "instantiateType_DepthLimit", { typeId: type.id, instantiationDepth, instantiationCount }); + error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite); + return errorType; + } + totalInstantiationCount++; + instantiationCount++; + instantiationDepth++; + const result = instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments); + instantiationDepth--; + return result; + } + function instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments) { + const flags = type.flags; + if (flags & 262144 /* TypeParameter */) { + return getMappedType(type, mapper); + } + if (flags & 524288 /* Object */) { + const objectFlags = type.objectFlags; + if (objectFlags & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */)) { + if (objectFlags & 4 /* Reference */ && !type.node) { + const resolvedTypeArguments = type.resolvedTypeArguments; + const newTypeArguments = instantiateTypes(resolvedTypeArguments, mapper); + return newTypeArguments !== resolvedTypeArguments ? createNormalizedTypeReference(type.target, newTypeArguments) : type; + } + if (objectFlags & 1024 /* ReverseMapped */) { + return instantiateReverseMappedType(type, mapper); + } + return getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments); + } + return type; + } + if (flags & 3145728 /* UnionOrIntersection */) { + const origin = type.flags & 1048576 /* Union */ ? type.origin : void 0; + const types = origin && origin.flags & 3145728 /* UnionOrIntersection */ ? origin.types : type.types; + const newTypes = instantiateTypes(types, mapper); + if (newTypes === types && aliasSymbol === type.aliasSymbol) { + return type; + } + const newAliasSymbol = aliasSymbol || type.aliasSymbol; + const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); + return flags & 2097152 /* Intersection */ || origin && origin.flags & 2097152 /* Intersection */ ? getIntersectionType(newTypes, 0 /* None */, newAliasSymbol, newAliasTypeArguments) : getUnionType(newTypes, 1 /* Literal */, newAliasSymbol, newAliasTypeArguments); + } + if (flags & 4194304 /* Index */) { + return getIndexType(instantiateType(type.type, mapper)); + } + if (flags & 134217728 /* TemplateLiteral */) { + return getTemplateLiteralType(type.texts, instantiateTypes(type.types, mapper)); + } + if (flags & 268435456 /* StringMapping */) { + return getStringMappingType(type.symbol, instantiateType(type.type, mapper)); + } + if (flags & 8388608 /* IndexedAccess */) { + const newAliasSymbol = aliasSymbol || type.aliasSymbol; + const newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper); + return getIndexedAccessType( + instantiateType(type.objectType, mapper), + instantiateType(type.indexType, mapper), + type.accessFlags, + /*accessNode*/ + void 0, + newAliasSymbol, + newAliasTypeArguments + ); + } + if (flags & 16777216 /* Conditional */) { + return getConditionalTypeInstantiation( + type, + combineTypeMappers(type.mapper, mapper), + /*forConstraint*/ + false, + aliasSymbol, + aliasTypeArguments + ); + } + if (flags & 33554432 /* Substitution */) { + const newBaseType = instantiateType(type.baseType, mapper); + if (isNoInferType(type)) { + return getNoInferType(newBaseType); + } + const newConstraint = instantiateType(type.constraint, mapper); + if (newBaseType.flags & 8650752 /* TypeVariable */ && isGenericType(newConstraint)) { + return getSubstitutionType(newBaseType, newConstraint); + } + if (newConstraint.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(newBaseType), getRestrictiveInstantiation(newConstraint))) { + return newBaseType; + } + return newBaseType.flags & 8650752 /* TypeVariable */ ? getSubstitutionType(newBaseType, newConstraint) : getIntersectionType([newConstraint, newBaseType]); + } + return type; + } + function instantiateReverseMappedType(type, mapper) { + const innerMappedType = instantiateType(type.mappedType, mapper); + if (!(getObjectFlags(innerMappedType) & 32 /* Mapped */)) { + return type; + } + const innerIndexType = instantiateType(type.constraintType, mapper); + if (!(innerIndexType.flags & 4194304 /* Index */)) { + return type; + } + const instantiated = inferTypeForHomomorphicMappedType( + instantiateType(type.source, mapper), + innerMappedType, + innerIndexType + ); + if (instantiated) { + return instantiated; + } + return type; + } + function getPermissiveInstantiation(type) { + return type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */) ? type : type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper)); + } + function getRestrictiveInstantiation(type) { + if (type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */)) { + return type; + } + if (type.restrictiveInstantiation) { + return type.restrictiveInstantiation; + } + type.restrictiveInstantiation = instantiateType(type, restrictiveMapper); + type.restrictiveInstantiation.restrictiveInstantiation = type.restrictiveInstantiation; + return type.restrictiveInstantiation; + } + function instantiateIndexInfo(info, mapper) { + return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); + } + function isContextSensitive(node) { + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + switch (node.kind) { + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + return isContextSensitiveFunctionLikeDeclaration(node); + case 210 /* ObjectLiteralExpression */: + return some(node.properties, isContextSensitive); + case 209 /* ArrayLiteralExpression */: + return some(node.elements, isContextSensitive); + case 227 /* ConditionalExpression */: + return isContextSensitive(node.whenTrue) || isContextSensitive(node.whenFalse); + case 226 /* BinaryExpression */: + return (node.operatorToken.kind === 57 /* BarBarToken */ || node.operatorToken.kind === 61 /* QuestionQuestionToken */) && (isContextSensitive(node.left) || isContextSensitive(node.right)); + case 303 /* PropertyAssignment */: + return isContextSensitive(node.initializer); + case 217 /* ParenthesizedExpression */: + return isContextSensitive(node.expression); + case 292 /* JsxAttributes */: + return some(node.properties, isContextSensitive) || isJsxOpeningElement(node.parent) && some(node.parent.parent.children, isContextSensitive); + case 291 /* JsxAttribute */: { + const { initializer } = node; + return !!initializer && isContextSensitive(initializer); + } + case 294 /* JsxExpression */: { + const { expression } = node; + return !!expression && isContextSensitive(expression); + } + } + return false; + } + function isContextSensitiveFunctionLikeDeclaration(node) { + return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node); + } + function hasContextSensitiveReturnExpression(node) { + if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) { + return false; + } + if (node.body.kind !== 241 /* Block */) { + return isContextSensitive(node.body); + } + return !!forEachReturnStatement(node.body, (statement) => !!statement.expression && isContextSensitive(statement.expression)); + } + function isContextSensitiveFunctionOrObjectLiteralMethod(func) { + return (isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) && isContextSensitiveFunctionLikeDeclaration(func); + } + function getTypeWithoutSignatures(type) { + if (type.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type); + if (resolved.constructSignatures.length || resolved.callSignatures.length) { + const result = createObjectType(16 /* Anonymous */, type.symbol); + result.members = resolved.members; + result.properties = resolved.properties; + result.callSignatures = emptyArray; + result.constructSignatures = emptyArray; + result.indexInfos = emptyArray; + return result; + } + } else if (type.flags & 2097152 /* Intersection */) { + return getIntersectionType(map(type.types, getTypeWithoutSignatures)); + } + return type; + } + function isTypeIdenticalTo(source, target) { + return isTypeRelatedTo(source, target, identityRelation); + } + function compareTypesIdentical(source, target) { + return isTypeRelatedTo(source, target, identityRelation) ? -1 /* True */ : 0 /* False */; + } + function compareTypesAssignable(source, target) { + return isTypeRelatedTo(source, target, assignableRelation) ? -1 /* True */ : 0 /* False */; + } + function compareTypesSubtypeOf(source, target) { + return isTypeRelatedTo(source, target, subtypeRelation) ? -1 /* True */ : 0 /* False */; + } + function isTypeSubtypeOf(source, target) { + return isTypeRelatedTo(source, target, subtypeRelation); + } + function isTypeStrictSubtypeOf(source, target) { + return isTypeRelatedTo(source, target, strictSubtypeRelation); + } + function isTypeAssignableTo(source, target) { + return isTypeRelatedTo(source, target, assignableRelation); + } + function isTypeDerivedFrom(source, target) { + return source.flags & 1048576 /* Union */ ? every(source.types, (t) => isTypeDerivedFrom(t, target)) : target.flags & 1048576 /* Union */ ? some(target.types, (t) => isTypeDerivedFrom(source, t)) : source.flags & 2097152 /* Intersection */ ? some(source.types, (t) => isTypeDerivedFrom(t, target)) : source.flags & 58982400 /* InstantiableNonPrimitive */ ? isTypeDerivedFrom(getBaseConstraintOfType(source) || unknownType, target) : isEmptyAnonymousObjectType(target) ? !!(source.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */)) : target === globalObjectType ? !!(source.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */)) && !isEmptyAnonymousObjectType(source) : target === globalFunctionType ? !!(source.flags & 524288 /* Object */) && isFunctionObjectType(source) : hasBaseType(source, getTargetType(target)) || isArrayType(target) && !isReadonlyArrayType(target) && isTypeDerivedFrom(source, globalReadonlyArrayType); + } + function isTypeComparableTo(source, target) { + return isTypeRelatedTo(source, target, comparableRelation); + } + function areTypesComparable(type1, type2) { + return isTypeComparableTo(type1, type2) || isTypeComparableTo(type2, type1); + } + function checkTypeAssignableTo(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject) { + return checkTypeRelatedTo(source, target, assignableRelation, errorNode, headMessage, containingMessageChain, errorOutputObject); + } + function checkTypeAssignableToAndOptionallyElaborate(source, target, errorNode, expr, headMessage, containingMessageChain) { + return checkTypeRelatedToAndOptionallyElaborate( + source, + target, + assignableRelation, + errorNode, + expr, + headMessage, + containingMessageChain, + /*errorOutputContainer*/ + void 0 + ); + } + function checkTypeRelatedToAndOptionallyElaborate(source, target, relation, errorNode, expr, headMessage, containingMessageChain, errorOutputContainer) { + if (isTypeRelatedTo(source, target, relation)) return true; + if (!errorNode || !elaborateError(expr, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) { + return checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer); + } + return false; + } + function isOrHasGenericConditional(type) { + return !!(type.flags & 16777216 /* Conditional */ || type.flags & 2097152 /* Intersection */ && some(type.types, isOrHasGenericConditional)); + } + function elaborateError(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) { + if (!node || isOrHasGenericConditional(target)) return false; + if (!checkTypeRelatedTo( + source, + target, + relation, + /*errorNode*/ + void 0 + ) && elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) { + return true; + } + switch (node.kind) { + case 234 /* AsExpression */: + if (!isConstAssertion(node)) { + break; + } + case 294 /* JsxExpression */: + case 217 /* ParenthesizedExpression */: + return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); + case 226 /* BinaryExpression */: + switch (node.operatorToken.kind) { + case 64 /* EqualsToken */: + case 28 /* CommaToken */: + return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); + } + break; + case 210 /* ObjectLiteralExpression */: + return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); + case 209 /* ArrayLiteralExpression */: + return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer); + case 292 /* JsxAttributes */: + return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer); + case 219 /* ArrowFunction */: + return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer); + } + return false; + } + function elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) { + const callSignatures = getSignaturesOfType(source, 0 /* Call */); + const constructSignatures = getSignaturesOfType(source, 1 /* Construct */); + for (const signatures of [constructSignatures, callSignatures]) { + if (some(signatures, (s) => { + const returnType = getReturnTypeOfSignature(s); + return !(returnType.flags & (1 /* Any */ | 131072 /* Never */)) && checkTypeRelatedTo( + returnType, + target, + relation, + /*errorNode*/ + void 0 + ); + })) { + const resultObj = errorOutputContainer || {}; + checkTypeAssignableTo(source, target, node, headMessage, containingMessageChain, resultObj); + const diagnostic = resultObj.errors[resultObj.errors.length - 1]; + addRelatedInfo( + diagnostic, + createDiagnosticForNode( + node, + signatures === constructSignatures ? Diagnostics.Did_you_mean_to_use_new_with_this_expression : Diagnostics.Did_you_mean_to_call_this_expression + ) + ); + return true; + } + } + return false; + } + function elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer) { + if (isBlock(node.body)) { + return false; + } + if (some(node.parameters, hasType)) { + return false; + } + const sourceSig = getSingleCallSignature(source); + if (!sourceSig) { + return false; + } + const targetSignatures = getSignaturesOfType(target, 0 /* Call */); + if (!length(targetSignatures)) { + return false; + } + const returnExpression = node.body; + const sourceReturn = getReturnTypeOfSignature(sourceSig); + const targetReturn = getUnionType(map(targetSignatures, getReturnTypeOfSignature)); + if (!checkTypeRelatedTo( + sourceReturn, + targetReturn, + relation, + /*errorNode*/ + void 0 + )) { + const elaborated = returnExpression && elaborateError( + returnExpression, + sourceReturn, + targetReturn, + relation, + /*headMessage*/ + void 0, + containingMessageChain, + errorOutputContainer + ); + if (elaborated) { + return elaborated; + } + const resultObj = errorOutputContainer || {}; + checkTypeRelatedTo( + sourceReturn, + targetReturn, + relation, + returnExpression, + /*headMessage*/ + void 0, + containingMessageChain, + resultObj + ); + if (resultObj.errors) { + if (target.symbol && length(target.symbol.declarations)) { + addRelatedInfo( + resultObj.errors[resultObj.errors.length - 1], + createDiagnosticForNode( + target.symbol.declarations[0], + Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature + ) + ); + } + if ((getFunctionFlags(node) & 2 /* Async */) === 0 && !getTypeOfPropertyOfType(sourceReturn, "then") && checkTypeRelatedTo( + createPromiseType(sourceReturn), + targetReturn, + relation, + /*errorNode*/ + void 0 + )) { + addRelatedInfo( + resultObj.errors[resultObj.errors.length - 1], + createDiagnosticForNode( + node, + Diagnostics.Did_you_mean_to_mark_this_function_as_async + ) + ); + } + return true; + } + } + return false; + } + function getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType) { + const idx = getIndexedAccessTypeOrUndefined(target, nameType); + if (idx) { + return idx; + } + if (target.flags & 1048576 /* Union */) { + const best = getBestMatchingType(source, target); + if (best) { + return getIndexedAccessTypeOrUndefined(best, nameType); + } + } + } + function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) { + pushContextualType( + next, + sourcePropType, + /*isCache*/ + false + ); + const result = checkExpressionForMutableLocation(next, 1 /* Contextual */); + popContextualType(); + return result; + } + function elaborateElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) { + let reportedError = false; + for (const value of iterator) { + const { errorNode: prop, innerExpression: next, nameType, errorMessage } = value; + let targetPropType = getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType); + if (!targetPropType || targetPropType.flags & 8388608 /* IndexedAccess */) continue; + let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType); + if (!sourcePropType) continue; + const propName = getPropertyNameFromIndex( + nameType, + /*accessNode*/ + void 0 + ); + if (!checkTypeRelatedTo( + sourcePropType, + targetPropType, + relation, + /*errorNode*/ + void 0 + )) { + const elaborated = next && elaborateError( + next, + sourcePropType, + targetPropType, + relation, + /*headMessage*/ + void 0, + containingMessageChain, + errorOutputContainer + ); + reportedError = true; + if (!elaborated) { + const resultObj = errorOutputContainer || {}; + const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType; + if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) { + const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType)); + diagnostics.add(diag2); + resultObj.errors = [diag2]; + } else { + const targetIsOptional = !!(propName && (getPropertyOfType(target, propName) || unknownSymbol).flags & 16777216 /* Optional */); + const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216 /* Optional */); + targetPropType = removeMissingType(targetPropType, targetIsOptional); + sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional); + const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); + if (result && specificSource !== sourcePropType) { + checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); + } + } + if (resultObj.errors) { + const reportedDiag = resultObj.errors[resultObj.errors.length - 1]; + const propertyName = isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0; + const targetProp = propertyName !== void 0 ? getPropertyOfType(target, propertyName) : void 0; + let issuedElaboration = false; + if (!targetProp) { + const indexInfo = getApplicableIndexInfo(target, nameType); + if (indexInfo && indexInfo.declaration && !getSourceFileOfNode(indexInfo.declaration).hasNoDefaultLib) { + issuedElaboration = true; + addRelatedInfo(reportedDiag, createDiagnosticForNode(indexInfo.declaration, Diagnostics.The_expected_type_comes_from_this_index_signature)); + } + } + if (!issuedElaboration && (targetProp && length(targetProp.declarations) || target.symbol && length(target.symbol.declarations))) { + const targetNode = targetProp && length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0]; + if (!getSourceFileOfNode(targetNode).hasNoDefaultLib) { + addRelatedInfo( + reportedDiag, + createDiagnosticForNode( + targetNode, + Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, + propertyName && !(nameType.flags & 8192 /* UniqueESSymbol */) ? unescapeLeadingUnderscores(propertyName) : typeToString(nameType), + typeToString(target) + ) + ); + } + } + } + } + } + } + return reportedError; + } + function elaborateIterableOrArrayLikeTargetElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) { + const tupleOrArrayLikeTargetParts = filterType(target, isArrayOrTupleLikeType); + const nonTupleOrArrayLikeTargetParts = filterType(target, (t) => !isArrayOrTupleLikeType(t)); + const iterationType = nonTupleOrArrayLikeTargetParts !== neverType ? getIterationTypeOfIterable( + 13 /* ForOf */, + 0 /* Yield */, + nonTupleOrArrayLikeTargetParts, + /*errorNode*/ + void 0 + ) : void 0; + let reportedError = false; + for (let status = iterator.next(); !status.done; status = iterator.next()) { + const { errorNode: prop, innerExpression: next, nameType, errorMessage } = status.value; + let targetPropType = iterationType; + const targetIndexedPropType = tupleOrArrayLikeTargetParts !== neverType ? getBestMatchIndexedAccessTypeOrUndefined(source, tupleOrArrayLikeTargetParts, nameType) : void 0; + if (targetIndexedPropType && !(targetIndexedPropType.flags & 8388608 /* IndexedAccess */)) { + targetPropType = iterationType ? getUnionType([iterationType, targetIndexedPropType]) : targetIndexedPropType; + } + if (!targetPropType) continue; + let sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType); + if (!sourcePropType) continue; + const propName = getPropertyNameFromIndex( + nameType, + /*accessNode*/ + void 0 + ); + if (!checkTypeRelatedTo( + sourcePropType, + targetPropType, + relation, + /*errorNode*/ + void 0 + )) { + const elaborated = next && elaborateError( + next, + sourcePropType, + targetPropType, + relation, + /*headMessage*/ + void 0, + containingMessageChain, + errorOutputContainer + ); + reportedError = true; + if (!elaborated) { + const resultObj = errorOutputContainer || {}; + const specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType; + if (exactOptionalPropertyTypes && isExactOptionalPropertyMismatch(specificSource, targetPropType)) { + const diag2 = createDiagnosticForNode(prop, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target, typeToString(specificSource), typeToString(targetPropType)); + diagnostics.add(diag2); + resultObj.errors = [diag2]; + } else { + const targetIsOptional = !!(propName && (getPropertyOfType(tupleOrArrayLikeTargetParts, propName) || unknownSymbol).flags & 16777216 /* Optional */); + const sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216 /* Optional */); + targetPropType = removeMissingType(targetPropType, targetIsOptional); + sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional); + const result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); + if (result && specificSource !== sourcePropType) { + checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj); + } + } + } + } + } + return reportedError; + } + function* generateJsxAttributes(node) { + if (!length(node.properties)) return; + for (const prop of node.properties) { + if (isJsxSpreadAttribute(prop) || isHyphenatedJsxName(getTextOfJsxAttributeName(prop.name))) continue; + yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: getStringLiteralType(getTextOfJsxAttributeName(prop.name)) }; + } + } + function* generateJsxChildren(node, getInvalidTextDiagnostic) { + if (!length(node.children)) return; + let memberOffset = 0; + for (let i = 0; i < node.children.length; i++) { + const child = node.children[i]; + const nameType = getNumberLiteralType(i - memberOffset); + const elem = getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic); + if (elem) { + yield elem; + } else { + memberOffset++; + } + } + } + function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) { + switch (child.kind) { + case 294 /* JsxExpression */: + return { errorNode: child, innerExpression: child.expression, nameType }; + case 12 /* JsxText */: + if (child.containsOnlyTriviaWhiteSpaces) { + break; + } + return { errorNode: child, innerExpression: void 0, nameType, errorMessage: getInvalidTextDiagnostic() }; + case 284 /* JsxElement */: + case 285 /* JsxSelfClosingElement */: + case 288 /* JsxFragment */: + return { errorNode: child, innerExpression: child, nameType }; + default: + return Debug.assertNever(child, "Found invalid jsx child"); + } + } + function elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer) { + let result = elaborateElementwise(generateJsxAttributes(node), source, target, relation, containingMessageChain, errorOutputContainer); + let invalidTextDiagnostic; + if (isJsxOpeningElement(node.parent) && isJsxElement(node.parent.parent)) { + const containingElement = node.parent.parent; + const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); + const childrenPropName = childPropName === void 0 ? "children" : unescapeLeadingUnderscores(childPropName); + const childrenNameType = getStringLiteralType(childrenPropName); + const childrenTargetType = getIndexedAccessType(target, childrenNameType); + const validChildren = getSemanticJsxChildren(containingElement.children); + if (!length(validChildren)) { + return result; + } + const moreThanOneRealChildren = length(validChildren) > 1; + let arrayLikeTargetParts; + let nonArrayLikeTargetParts; + const iterableType = getGlobalIterableType( + /*reportErrors*/ + false + ); + if (iterableType !== emptyGenericType) { + const anyIterable = createIterableType(anyType); + arrayLikeTargetParts = filterType(childrenTargetType, (t) => isTypeAssignableTo(t, anyIterable)); + nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isTypeAssignableTo(t, anyIterable)); + } else { + arrayLikeTargetParts = filterType(childrenTargetType, isArrayOrTupleLikeType); + nonArrayLikeTargetParts = filterType(childrenTargetType, (t) => !isArrayOrTupleLikeType(t)); + } + if (moreThanOneRealChildren) { + if (arrayLikeTargetParts !== neverType) { + const realSource = createTupleType(checkJsxChildren(containingElement, 0 /* Normal */)); + const children = generateJsxChildren(containingElement, getInvalidTextualChildDiagnostic); + result = elaborateIterableOrArrayLikeTargetElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result; + } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { + result = true; + const diag2 = error( + containingElement.openingElement.tagName, + Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, + childrenPropName, + typeToString(childrenTargetType) + ); + if (errorOutputContainer && errorOutputContainer.skipLogging) { + (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); + } + } + } else { + if (nonArrayLikeTargetParts !== neverType) { + const child = validChildren[0]; + const elem = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic); + if (elem) { + result = elaborateElementwise( + function* () { + yield elem; + }(), + source, + target, + relation, + containingMessageChain, + errorOutputContainer + ) || result; + } + } else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) { + result = true; + const diag2 = error( + containingElement.openingElement.tagName, + Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, + childrenPropName, + typeToString(childrenTargetType) + ); + if (errorOutputContainer && errorOutputContainer.skipLogging) { + (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); + } + } + } + } + return result; + function getInvalidTextualChildDiagnostic() { + if (!invalidTextDiagnostic) { + const tagNameText = getTextOfNode(node.parent.tagName); + const childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); + const childrenPropName = childPropName === void 0 ? "children" : unescapeLeadingUnderscores(childPropName); + const childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName)); + const diagnostic = Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2; + invalidTextDiagnostic = { ...diagnostic, key: "!!ALREADY FORMATTED!!", message: formatMessage(diagnostic, tagNameText, childrenPropName, typeToString(childrenTargetType)) }; + } + return invalidTextDiagnostic; + } + } + function* generateLimitedTupleElements(node, target) { + const len = length(node.elements); + if (!len) return; + for (let i = 0; i < len; i++) { + if (isTupleLikeType(target) && !getPropertyOfType(target, "" + i)) continue; + const elem = node.elements[i]; + if (isOmittedExpression(elem)) continue; + const nameType = getNumberLiteralType(i); + const checkNode = getEffectiveCheckNode(elem); + yield { errorNode: checkNode, innerExpression: checkNode, nameType }; + } + } + function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) { + if (target.flags & (402784252 /* Primitive */ | 131072 /* Never */)) return false; + if (isTupleLikeType(source)) { + return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer); + } + pushContextualType( + node, + target, + /*isCache*/ + false + ); + const tupleizedType = checkArrayLiteral( + node, + 1 /* Contextual */, + /*forceTuple*/ + true + ); + popContextualType(); + if (isTupleLikeType(tupleizedType)) { + return elaborateElementwise(generateLimitedTupleElements(node, target), tupleizedType, target, relation, containingMessageChain, errorOutputContainer); + } + return false; + } + function* generateObjectLiteralElements(node) { + if (!length(node.properties)) return; + for (const prop of node.properties) { + if (isSpreadAssignment(prop)) continue; + const type = getLiteralTypeFromProperty(getSymbolOfDeclaration(prop), 8576 /* StringOrNumberLiteralOrUnique */); + if (!type || type.flags & 131072 /* Never */) { + continue; + } + switch (prop.kind) { + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 174 /* MethodDeclaration */: + case 304 /* ShorthandPropertyAssignment */: + yield { errorNode: prop.name, innerExpression: void 0, nameType: type }; + break; + case 303 /* PropertyAssignment */: + yield { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: isComputedNonLiteralName(prop.name) ? Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : void 0 }; + break; + default: + Debug.assertNever(prop); + } + } + } + function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) { + if (target.flags & (402784252 /* Primitive */ | 131072 /* Never */)) return false; + return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer); + } + function checkTypeComparableTo(source, target, errorNode, headMessage, containingMessageChain) { + return checkTypeRelatedTo(source, target, comparableRelation, errorNode, headMessage, containingMessageChain); + } + function isSignatureAssignableTo(source, target, ignoreReturnTypes) { + return compareSignaturesRelated( + source, + target, + ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0 /* None */, + /*reportErrors*/ + false, + /*errorReporter*/ + void 0, + /*incompatibleErrorReporter*/ + void 0, + compareTypesAssignable, + /*reportUnreliableMarkers*/ + void 0 + ) !== 0 /* False */; + } + function isTopSignature(s) { + if (!s.typeParameters && (!s.thisParameter || isTypeAny(getTypeOfParameter(s.thisParameter))) && s.parameters.length === 1 && signatureHasRestParameter(s)) { + const paramType = getTypeOfParameter(s.parameters[0]); + const restType = isArrayType(paramType) ? getTypeArguments(paramType)[0] : paramType; + return !!(restType.flags & (1 /* Any */ | 131072 /* Never */) && getReturnTypeOfSignature(s).flags & 3 /* AnyOrUnknown */); + } + return false; + } + function compareSignaturesRelated(source, target, checkMode, reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) { + if (source === target) { + return -1 /* True */; + } + if (!(checkMode & 16 /* StrictTopSignature */ && isTopSignature(source)) && isTopSignature(target)) { + return -1 /* True */; + } + if (checkMode & 16 /* StrictTopSignature */ && isTopSignature(source) && !isTopSignature(target)) { + return 0 /* False */; + } + const targetCount = getParameterCount(target); + const sourceHasMoreParameters = !hasEffectiveRestParameter(target) && (checkMode & 8 /* StrictArity */ ? hasEffectiveRestParameter(source) || getParameterCount(source) > targetCount : getMinArgumentCount(source) > targetCount); + if (sourceHasMoreParameters) { + if (reportErrors2 && !(checkMode & 8 /* StrictArity */)) { + errorReporter(Diagnostics.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1, getMinArgumentCount(source), targetCount); + } + return 0 /* False */; + } + if (source.typeParameters && source.typeParameters !== target.typeParameters) { + target = getCanonicalSignature(target); + source = instantiateSignatureInContextOf( + source, + target, + /*inferenceContext*/ + void 0, + compareTypes + ); + } + const sourceCount = getParameterCount(source); + const sourceRestType = getNonArrayRestType(source); + const targetRestType = getNonArrayRestType(target); + if (sourceRestType || targetRestType) { + void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers); + } + const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; + const strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 174 /* MethodDeclaration */ && kind !== 173 /* MethodSignature */ && kind !== 176 /* Constructor */; + let result = -1 /* True */; + const sourceThisType = getThisTypeOfSignature(source); + if (sourceThisType && sourceThisType !== voidType) { + const targetThisType = getThisTypeOfSignature(target); + if (targetThisType) { + const related = !strictVariance && compareTypes( + sourceThisType, + targetThisType, + /*reportErrors*/ + false + ) || compareTypes(targetThisType, sourceThisType, reportErrors2); + if (!related) { + if (reportErrors2) { + errorReporter(Diagnostics.The_this_types_of_each_signature_are_incompatible); + } + return 0 /* False */; + } + result &= related; + } + } + const paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount); + const restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1; + for (let i = 0; i < paramCount; i++) { + const sourceType = i === restIndex ? getRestOrAnyTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i); + const targetType = i === restIndex ? getRestOrAnyTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i); + if (sourceType && targetType && (sourceType !== targetType || checkMode & 8 /* StrictArity */)) { + const sourceSig = checkMode & 3 /* Callback */ || isInstantiatedGenericParameter(source, i) ? void 0 : getSingleCallSignature(getNonNullableType(sourceType)); + const targetSig = checkMode & 3 /* Callback */ || isInstantiatedGenericParameter(target, i) ? void 0 : getSingleCallSignature(getNonNullableType(targetType)); + const callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) && getTypeFacts(sourceType, 50331648 /* IsUndefinedOrNull */) === getTypeFacts(targetType, 50331648 /* IsUndefinedOrNull */); + let related = callbacks ? compareSignaturesRelated(targetSig, sourceSig, checkMode & 8 /* StrictArity */ | (strictVariance ? 2 /* StrictCallback */ : 1 /* BivariantCallback */), reportErrors2, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) : !(checkMode & 3 /* Callback */) && !strictVariance && compareTypes( + sourceType, + targetType, + /*reportErrors*/ + false + ) || compareTypes(targetType, sourceType, reportErrors2); + if (related && checkMode & 8 /* StrictArity */ && i >= getMinArgumentCount(source) && i < getMinArgumentCount(target) && compareTypes( + sourceType, + targetType, + /*reportErrors*/ + false + )) { + related = 0 /* False */; + } + if (!related) { + if (reportErrors2) { + errorReporter(Diagnostics.Types_of_parameters_0_and_1_are_incompatible, unescapeLeadingUnderscores(getParameterNameAtPosition(source, i)), unescapeLeadingUnderscores(getParameterNameAtPosition(target, i))); + } + return 0 /* False */; + } + result &= related; + } + } + if (!(checkMode & 4 /* IgnoreReturnTypes */)) { + const targetReturnType = isResolvingReturnTypeOfSignature(target) ? anyType : target.declaration && isJSConstructor(target.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(target.declaration.symbol)) : getReturnTypeOfSignature(target); + if (targetReturnType === voidType || targetReturnType === anyType) { + return result; + } + const sourceReturnType = isResolvingReturnTypeOfSignature(source) ? anyType : source.declaration && isJSConstructor(source.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(source.declaration.symbol)) : getReturnTypeOfSignature(source); + const targetTypePredicate = getTypePredicateOfSignature(target); + if (targetTypePredicate) { + const sourceTypePredicate = getTypePredicateOfSignature(source); + if (sourceTypePredicate) { + result &= compareTypePredicateRelatedTo(sourceTypePredicate, targetTypePredicate, reportErrors2, errorReporter, compareTypes); + } else if (isIdentifierTypePredicate(targetTypePredicate) || isThisTypePredicate(targetTypePredicate)) { + if (reportErrors2) { + errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source)); + } + return 0 /* False */; + } + } else { + result &= checkMode & 1 /* BivariantCallback */ && compareTypes( + targetReturnType, + sourceReturnType, + /*reportErrors*/ + false + ) || compareTypes(sourceReturnType, targetReturnType, reportErrors2); + if (!result && reportErrors2 && incompatibleErrorReporter) { + incompatibleErrorReporter(sourceReturnType, targetReturnType); + } + } + } + return result; + } + function compareTypePredicateRelatedTo(source, target, reportErrors2, errorReporter, compareTypes) { + if (source.kind !== target.kind) { + if (reportErrors2) { + errorReporter(Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard); + errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); + } + return 0 /* False */; + } + if (source.kind === 1 /* Identifier */ || source.kind === 3 /* AssertsIdentifier */) { + if (source.parameterIndex !== target.parameterIndex) { + if (reportErrors2) { + errorReporter(Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, target.parameterName); + errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); + } + return 0 /* False */; + } + } + const related = source.type === target.type ? -1 /* True */ : source.type && target.type ? compareTypes(source.type, target.type, reportErrors2) : 0 /* False */; + if (related === 0 /* False */ && reportErrors2) { + errorReporter(Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target)); + } + return related; + } + function isImplementationCompatibleWithOverload(implementation, overload) { + const erasedSource = getErasedSignature(implementation); + const erasedTarget = getErasedSignature(overload); + const sourceReturnType = getReturnTypeOfSignature(erasedSource); + const targetReturnType = getReturnTypeOfSignature(erasedTarget); + if (targetReturnType === voidType || isTypeRelatedTo(targetReturnType, sourceReturnType, assignableRelation) || isTypeRelatedTo(sourceReturnType, targetReturnType, assignableRelation)) { + return isSignatureAssignableTo( + erasedSource, + erasedTarget, + /*ignoreReturnTypes*/ + true + ); + } + return false; + } + function isEmptyResolvedType(t) { + return t !== anyFunctionType && t.properties.length === 0 && t.callSignatures.length === 0 && t.constructSignatures.length === 0 && t.indexInfos.length === 0; + } + function isEmptyObjectType(type) { + return type.flags & 524288 /* Object */ ? !isGenericMappedType(type) && isEmptyResolvedType(resolveStructuredTypeMembers(type)) : type.flags & 67108864 /* NonPrimitive */ ? true : type.flags & 1048576 /* Union */ ? some(type.types, isEmptyObjectType) : type.flags & 2097152 /* Intersection */ ? every(type.types, isEmptyObjectType) : false; + } + function isEmptyAnonymousObjectType(type) { + return !!(getObjectFlags(type) & 16 /* Anonymous */ && (type.members && isEmptyResolvedType(type) || type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && getMembersOfSymbol(type.symbol).size === 0)); + } + function isUnknownLikeUnionType(type) { + if (strictNullChecks && type.flags & 1048576 /* Union */) { + if (!(type.objectFlags & 33554432 /* IsUnknownLikeUnionComputed */)) { + const types = type.types; + type.objectFlags |= 33554432 /* IsUnknownLikeUnionComputed */ | (types.length >= 3 && types[0].flags & 32768 /* Undefined */ && types[1].flags & 65536 /* Null */ && some(types, isEmptyAnonymousObjectType) ? 67108864 /* IsUnknownLikeUnion */ : 0); + } + return !!(type.objectFlags & 67108864 /* IsUnknownLikeUnion */); + } + return false; + } + function containsUndefinedType(type) { + return !!((type.flags & 1048576 /* Union */ ? type.types[0] : type).flags & 32768 /* Undefined */); + } + function containsNonMissingUndefinedType(type) { + const candidate = type.flags & 1048576 /* Union */ ? type.types[0] : type; + return !!(candidate.flags & 32768 /* Undefined */) && candidate !== missingType; + } + function isStringIndexSignatureOnlyType(type) { + return type.flags & 524288 /* Object */ && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) || type.flags & 3145728 /* UnionOrIntersection */ && every(type.types, isStringIndexSignatureOnlyType) || false; + } + function isEnumTypeRelatedTo(source, target, errorReporter) { + const sourceSymbol = source.flags & 8 /* EnumMember */ ? getParentOfSymbol(source) : source; + const targetSymbol = target.flags & 8 /* EnumMember */ ? getParentOfSymbol(target) : target; + if (sourceSymbol === targetSymbol) { + return true; + } + if (sourceSymbol.escapedName !== targetSymbol.escapedName || !(sourceSymbol.flags & 256 /* RegularEnum */) || !(targetSymbol.flags & 256 /* RegularEnum */)) { + return false; + } + const id = getSymbolId(sourceSymbol) + "," + getSymbolId(targetSymbol); + const entry = enumRelation.get(id); + if (entry !== void 0 && !(!(entry & 4 /* Reported */) && entry & 2 /* Failed */ && errorReporter)) { + return !!(entry & 1 /* Succeeded */); + } + const targetEnumType = getTypeOfSymbol(targetSymbol); + for (const sourceProperty of getPropertiesOfType(getTypeOfSymbol(sourceSymbol))) { + if (sourceProperty.flags & 8 /* EnumMember */) { + const targetProperty = getPropertyOfType(targetEnumType, sourceProperty.escapedName); + if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) { + if (errorReporter) { + errorReporter(Diagnostics.Property_0_is_missing_in_type_1, symbolName(sourceProperty), typeToString( + getDeclaredTypeOfSymbol(targetSymbol), + /*enclosingDeclaration*/ + void 0, + 64 /* UseFullyQualifiedType */ + )); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); + } else { + enumRelation.set(id, 2 /* Failed */); + } + return false; + } + const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */)).value; + const targetValue = getEnumMemberValue(getDeclarationOfKind(targetProperty, 306 /* EnumMember */)).value; + if (sourceValue !== targetValue) { + const sourceIsString = typeof sourceValue === "string"; + const targetIsString = typeof targetValue === "string"; + if (sourceValue !== void 0 && targetValue !== void 0) { + if (!errorReporter) { + enumRelation.set(id, 2 /* Failed */); + } else { + const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue; + const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue; + errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); + } + return false; + } + if (sourceIsString || targetIsString) { + if (!errorReporter) { + enumRelation.set(id, 2 /* Failed */); + } else { + const knownStringValue = sourceValue ?? targetValue; + Debug.assert(typeof knownStringValue === "string"); + const escapedValue = `"${escapeString(knownStringValue)}"`; + errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); + } + return false; + } + } + } + } + enumRelation.set(id, 1 /* Succeeded */); + return true; + } + function isSimpleTypeRelatedTo(source, target, relation, errorReporter) { + const s = source.flags; + const t = target.flags; + if (t & 1 /* Any */ || s & 131072 /* Never */ || source === wildcardType) return true; + if (t & 2 /* Unknown */ && !(relation === strictSubtypeRelation && s & 1 /* Any */)) return true; + if (t & 131072 /* Never */) return false; + if (s & 402653316 /* StringLike */ && t & 4 /* String */) return true; + if (s & 128 /* StringLiteral */ && s & 1024 /* EnumLiteral */ && t & 128 /* StringLiteral */ && !(t & 1024 /* EnumLiteral */) && source.value === target.value) return true; + if (s & 296 /* NumberLike */ && t & 8 /* Number */) return true; + if (s & 256 /* NumberLiteral */ && s & 1024 /* EnumLiteral */ && t & 256 /* NumberLiteral */ && !(t & 1024 /* EnumLiteral */) && source.value === target.value) return true; + if (s & 2112 /* BigIntLike */ && t & 64 /* BigInt */) return true; + if (s & 528 /* BooleanLike */ && t & 16 /* Boolean */) return true; + if (s & 12288 /* ESSymbolLike */ && t & 4096 /* ESSymbol */) return true; + if (s & 32 /* Enum */ && t & 32 /* Enum */ && source.symbol.escapedName === target.symbol.escapedName && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; + if (s & 1024 /* EnumLiteral */ && t & 1024 /* EnumLiteral */) { + if (s & 1048576 /* Union */ && t & 1048576 /* Union */ && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; + if (s & 2944 /* Literal */ && t & 2944 /* Literal */ && source.value === target.value && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter)) return true; + } + if (s & 32768 /* Undefined */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & (32768 /* Undefined */ | 16384 /* Void */))) return true; + if (s & 65536 /* Null */ && (!strictNullChecks && !(t & 3145728 /* UnionOrIntersection */) || t & 65536 /* Null */)) return true; + if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */ && !(relation === strictSubtypeRelation && isEmptyAnonymousObjectType(source) && !(getObjectFlags(source) & 8192 /* FreshLiteral */))) return true; + if (relation === assignableRelation || relation === comparableRelation) { + if (s & 1 /* Any */) return true; + if (s & 8 /* Number */ && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */)) return true; + if (s & 256 /* NumberLiteral */ && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */ && source.value === target.value)) return true; + if (isUnknownLikeUnionType(target)) return true; + } + return false; + } + function isTypeRelatedTo(source, target, relation) { + if (isFreshLiteralType(source)) { + source = source.regularType; + } + if (isFreshLiteralType(target)) { + target = target.regularType; + } + if (source === target) { + return true; + } + if (relation !== identityRelation) { + if (relation === comparableRelation && !(target.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target, source, relation) || isSimpleTypeRelatedTo(source, target, relation)) { + return true; + } + } else if (!((source.flags | target.flags) & (3145728 /* UnionOrIntersection */ | 8388608 /* IndexedAccess */ | 16777216 /* Conditional */ | 33554432 /* Substitution */))) { + if (source.flags !== target.flags) return false; + if (source.flags & 67358815 /* Singleton */) return true; + } + if (source.flags & 524288 /* Object */ && target.flags & 524288 /* Object */) { + const related = relation.get(getRelationKey( + source, + target, + 0 /* None */, + relation, + /*ignoreConstraints*/ + false + )); + if (related !== void 0) { + return !!(related & 1 /* Succeeded */); + } + } + if (source.flags & 469499904 /* StructuredOrInstantiable */ || target.flags & 469499904 /* StructuredOrInstantiable */) { + return checkTypeRelatedTo( + source, + target, + relation, + /*errorNode*/ + void 0 + ); + } + return false; + } + function isIgnoredJsxProperty(source, sourceProp) { + return getObjectFlags(source) & 2048 /* JsxAttributes */ && isHyphenatedJsxName(sourceProp.escapedName); + } + function getNormalizedType(type, writing) { + while (true) { + const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) : type; + if (t === type) return t; + type = t; + } + } + function getNormalizedUnionOrIntersectionType(type, writing) { + const reduced = getReducedType(type); + if (reduced !== type) { + return reduced; + } + if (type.flags & 2097152 /* Intersection */ && shouldNormalizeIntersection(type)) { + const normalizedTypes = sameMap(type.types, (t) => getNormalizedType(t, writing)); + if (normalizedTypes !== type.types) { + return getIntersectionType(normalizedTypes); + } + } + return type; + } + function shouldNormalizeIntersection(type) { + let hasInstantiable = false; + let hasNullableOrEmpty = false; + for (const t of type.types) { + hasInstantiable || (hasInstantiable = !!(t.flags & 465829888 /* Instantiable */)); + hasNullableOrEmpty || (hasNullableOrEmpty = !!(t.flags & 98304 /* Nullable */) || isEmptyAnonymousObjectType(t)); + if (hasInstantiable && hasNullableOrEmpty) return true; + } + return false; + } + function getNormalizedTupleType(type, writing) { + const elements = getElementTypes(type); + const normalizedElements = sameMap(elements, (t) => t.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(t, writing) : t); + return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type; + } + function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) { + var _a; + let errorInfo; + let relatedInfo; + let maybeKeys; + let maybeKeysSet; + let sourceStack; + let targetStack; + let maybeCount = 0; + let sourceDepth = 0; + let targetDepth = 0; + let expandingFlags = 0 /* None */; + let overflow = false; + let overrideNextErrorInfo = 0; + let skipParentCounter = 0; + let lastSkippedInfo; + let incompatibleStack; + let relationCount = 16e6 - relation.size >> 3; + Debug.assert(relation !== identityRelation || !errorNode, "no error reporting in identity checking"); + const result = isRelatedTo( + source, + target, + 3 /* Both */, + /*reportErrors*/ + !!errorNode, + headMessage + ); + if (incompatibleStack) { + reportIncompatibleStack(); + } + if (overflow) { + const id = getRelationKey( + source, + target, + /*intersectionState*/ + 0 /* None */, + relation, + /*ignoreConstraints*/ + false + ); + relation.set(id, 4 /* Reported */ | 2 /* Failed */); + (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); + const message = relationCount <= 0 ? Diagnostics.Excessive_complexity_comparing_types_0_and_1 : Diagnostics.Excessive_stack_depth_comparing_types_0_and_1; + const diag2 = error(errorNode || currentNode, message, typeToString(source), typeToString(target)); + if (errorOutputContainer) { + (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); + } + } else if (errorInfo) { + if (containingMessageChain) { + const chain = containingMessageChain(); + if (chain) { + concatenateDiagnosticMessageChains(chain, errorInfo); + errorInfo = chain; + } + } + let relatedInformation; + if (headMessage && errorNode && !result && source.symbol) { + const links = getSymbolLinks(source.symbol); + if (links.originatingImport && !isImportCall(links.originatingImport)) { + const helpfulRetry = checkTypeRelatedTo( + getTypeOfSymbol(links.target), + target, + relation, + /*errorNode*/ + void 0 + ); + if (helpfulRetry) { + const diag3 = createDiagnosticForNode(links.originatingImport, Diagnostics.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); + relatedInformation = append(relatedInformation, diag3); + } + } + } + const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, errorInfo, relatedInformation); + if (relatedInfo) { + addRelatedInfo(diag2, ...relatedInfo); + } + if (errorOutputContainer) { + (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); + } + if (!errorOutputContainer || !errorOutputContainer.skipLogging) { + diagnostics.add(diag2); + } + } + if (errorNode && errorOutputContainer && errorOutputContainer.skipLogging && result === 0 /* False */) { + Debug.assert(!!errorOutputContainer.errors, "missed opportunity to interact with error."); + } + return result !== 0 /* False */; + function resetErrorInfo(saved) { + errorInfo = saved.errorInfo; + lastSkippedInfo = saved.lastSkippedInfo; + incompatibleStack = saved.incompatibleStack; + overrideNextErrorInfo = saved.overrideNextErrorInfo; + skipParentCounter = saved.skipParentCounter; + relatedInfo = saved.relatedInfo; + } + function captureErrorCalculationState() { + return { + errorInfo, + lastSkippedInfo, + incompatibleStack: incompatibleStack == null ? void 0 : incompatibleStack.slice(), + overrideNextErrorInfo, + skipParentCounter, + relatedInfo: relatedInfo == null ? void 0 : relatedInfo.slice() + }; + } + function reportIncompatibleError(message, ...args) { + overrideNextErrorInfo++; + lastSkippedInfo = void 0; + (incompatibleStack || (incompatibleStack = [])).push([message, ...args]); + } + function reportIncompatibleStack() { + const stack = incompatibleStack || []; + incompatibleStack = void 0; + const info = lastSkippedInfo; + lastSkippedInfo = void 0; + if (stack.length === 1) { + reportError(...stack[0]); + if (info) { + reportRelationError( + /*message*/ + void 0, + ...info + ); + } + return; + } + let path = ""; + const secondaryRootErrors = []; + while (stack.length) { + const [msg, ...args] = stack.pop(); + switch (msg.code) { + case Diagnostics.Types_of_property_0_are_incompatible.code: { + if (path.indexOf("new ") === 0) { + path = `(${path})`; + } + const str = "" + args[0]; + if (path.length === 0) { + path = `${str}`; + } else if (isIdentifierText(str, getEmitScriptTarget(compilerOptions))) { + path = `${path}.${str}`; + } else if (str[0] === "[" && str[str.length - 1] === "]") { + path = `${path}${str}`; + } else { + path = `${path}[${str}]`; + } + break; + } + case Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code: + case Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code: + case Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: + case Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: { + if (path.length === 0) { + let mappedMsg = msg; + if (msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { + mappedMsg = Diagnostics.Call_signature_return_types_0_and_1_are_incompatible; + } else if (msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) { + mappedMsg = Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible; + } + secondaryRootErrors.unshift([mappedMsg, args[0], args[1]]); + } else { + const prefix = msg.code === Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "new " : ""; + const params = msg.code === Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code || msg.code === Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ? "" : "..."; + path = `${prefix}${path}(${params})`; + } + break; + } + case Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: { + secondaryRootErrors.unshift([Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, args[0], args[1]]); + break; + } + case Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: { + secondaryRootErrors.unshift([Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, args[0], args[1], args[2]]); + break; + } + default: + return Debug.fail(`Unhandled Diagnostic: ${msg.code}`); + } + } + if (path) { + reportError( + path[path.length - 1] === ")" ? Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types : Diagnostics.The_types_of_0_are_incompatible_between_these_types, + path + ); + } else { + secondaryRootErrors.shift(); + } + for (const [msg, ...args] of secondaryRootErrors) { + const originalValue = msg.elidedInCompatabilityPyramid; + msg.elidedInCompatabilityPyramid = false; + reportError(msg, ...args); + msg.elidedInCompatabilityPyramid = originalValue; + } + if (info) { + reportRelationError( + /*message*/ + void 0, + ...info + ); + } + } + function reportError(message, ...args) { + Debug.assert(!!errorNode); + if (incompatibleStack) reportIncompatibleStack(); + if (message.elidedInCompatabilityPyramid) return; + if (skipParentCounter === 0) { + errorInfo = chainDiagnosticMessages(errorInfo, message, ...args); + } else { + skipParentCounter--; + } + } + function reportParentSkippedError(message, ...args) { + reportError(message, ...args); + skipParentCounter++; + } + function associateRelatedInfo(info) { + Debug.assert(!!errorInfo); + if (!relatedInfo) { + relatedInfo = [info]; + } else { + relatedInfo.push(info); + } + } + function reportRelationError(message, source2, target2) { + if (incompatibleStack) reportIncompatibleStack(); + const [sourceType, targetType] = getTypeNamesForErrorDisplay(source2, target2); + let generalizedSource = source2; + let generalizedSourceType = sourceType; + if (isLiteralType(source2) && !typeCouldHaveTopLevelSingletonTypes(target2)) { + generalizedSource = getBaseTypeOfLiteralType(source2); + Debug.assert(!isTypeAssignableTo(generalizedSource, target2), "generalized source shouldn't be assignable"); + generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource); + } + const targetFlags = target2.flags & 8388608 /* IndexedAccess */ && !(source2.flags & 8388608 /* IndexedAccess */) ? target2.objectType.flags : target2.flags; + if (targetFlags & 262144 /* TypeParameter */ && target2 !== markerSuperTypeForCheck && target2 !== markerSubTypeForCheck) { + const constraint = getBaseConstraintOfType(target2); + let needsOriginalSource; + if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source2, constraint)))) { + reportError( + Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, + needsOriginalSource ? sourceType : generalizedSourceType, + targetType, + typeToString(constraint) + ); + } else { + errorInfo = void 0; + reportError( + Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, + targetType, + generalizedSourceType + ); + } + } + if (!message) { + if (relation === comparableRelation) { + message = Diagnostics.Type_0_is_not_comparable_to_type_1; + } else if (sourceType === targetType) { + message = Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated; + } else if (exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) { + message = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties; + } else { + if (source2.flags & 128 /* StringLiteral */ && target2.flags & 1048576 /* Union */) { + const suggestedType = getSuggestedTypeForNonexistentStringLiteralType(source2, target2); + if (suggestedType) { + reportError(Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, generalizedSourceType, targetType, typeToString(suggestedType)); + return; + } + } + message = Diagnostics.Type_0_is_not_assignable_to_type_1; + } + } else if (message === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 && exactOptionalPropertyTypes && getExactOptionalUnassignableProperties(source2, target2).length) { + message = Diagnostics.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; + } + reportError(message, generalizedSourceType, targetType); + } + function tryElaborateErrorsForPrimitivesAndObjects(source2, target2) { + const sourceType = symbolValueDeclarationIsContextSensitive(source2.symbol) ? typeToString(source2, source2.symbol.valueDeclaration) : typeToString(source2); + const targetType = symbolValueDeclarationIsContextSensitive(target2.symbol) ? typeToString(target2, target2.symbol.valueDeclaration) : typeToString(target2); + if (globalStringType === source2 && stringType === target2 || globalNumberType === source2 && numberType === target2 || globalBooleanType === source2 && booleanType === target2 || getGlobalESSymbolType() === source2 && esSymbolType === target2) { + reportError(Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType); + } + } + function tryElaborateArrayLikeErrors(source2, target2, reportErrors2) { + if (isTupleType(source2)) { + if (source2.target.readonly && isMutableArrayOrTuple(target2)) { + if (reportErrors2) { + reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2)); + } + return false; + } + return isArrayOrTupleType(target2); + } + if (isReadonlyArrayType(source2) && isMutableArrayOrTuple(target2)) { + if (reportErrors2) { + reportError(Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source2), typeToString(target2)); + } + return false; + } + if (isTupleType(target2)) { + return isArrayType(source2); + } + return true; + } + function isRelatedToWorker(source2, target2, reportErrors2) { + return isRelatedTo(source2, target2, 3 /* Both */, reportErrors2); + } + function isRelatedTo(originalSource, originalTarget, recursionFlags = 3 /* Both */, reportErrors2 = false, headMessage2, intersectionState = 0 /* None */) { + if (originalSource === originalTarget) return -1 /* True */; + if (originalSource.flags & 524288 /* Object */ && originalTarget.flags & 402784252 /* Primitive */) { + if (relation === comparableRelation && !(originalTarget.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(originalTarget, originalSource, relation) || isSimpleTypeRelatedTo(originalSource, originalTarget, relation, reportErrors2 ? reportError : void 0)) { + return -1 /* True */; + } + if (reportErrors2) { + reportErrorResults(originalSource, originalTarget, originalSource, originalTarget, headMessage2); + } + return 0 /* False */; + } + const source2 = getNormalizedType( + originalSource, + /*writing*/ + false + ); + let target2 = getNormalizedType( + originalTarget, + /*writing*/ + true + ); + if (source2 === target2) return -1 /* True */; + if (relation === identityRelation) { + if (source2.flags !== target2.flags) return 0 /* False */; + if (source2.flags & 67358815 /* Singleton */) return -1 /* True */; + traceUnionsOrIntersectionsTooLarge(source2, target2); + return recursiveTypeRelatedTo( + source2, + target2, + /*reportErrors*/ + false, + 0 /* None */, + recursionFlags + ); + } + if (source2.flags & 262144 /* TypeParameter */ && getConstraintOfType(source2) === target2) { + return -1 /* True */; + } + if (source2.flags & 470302716 /* DefinitelyNonNullable */ && target2.flags & 1048576 /* Union */) { + const types = target2.types; + const candidate = types.length === 2 && types[0].flags & 98304 /* Nullable */ ? types[1] : types.length === 3 && types[0].flags & 98304 /* Nullable */ && types[1].flags & 98304 /* Nullable */ ? types[2] : void 0; + if (candidate && !(candidate.flags & 98304 /* Nullable */)) { + target2 = getNormalizedType( + candidate, + /*writing*/ + true + ); + if (source2 === target2) return -1 /* True */; + } + } + if (relation === comparableRelation && !(target2.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target2, source2, relation) || isSimpleTypeRelatedTo(source2, target2, relation, reportErrors2 ? reportError : void 0)) return -1 /* True */; + if (source2.flags & 469499904 /* StructuredOrInstantiable */ || target2.flags & 469499904 /* StructuredOrInstantiable */) { + const isPerformingExcessPropertyChecks = !(intersectionState & 2 /* Target */) && (isObjectLiteralType(source2) && getObjectFlags(source2) & 8192 /* FreshLiteral */); + if (isPerformingExcessPropertyChecks) { + if (hasExcessProperties(source2, target2, reportErrors2)) { + if (reportErrors2) { + reportRelationError(headMessage2, source2, originalTarget.aliasSymbol ? originalTarget : target2); + } + return 0 /* False */; + } + } + const isPerformingCommonPropertyChecks = (relation !== comparableRelation || isUnitType(source2)) && !(intersectionState & 2 /* Target */) && source2.flags & (402784252 /* Primitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && source2 !== globalObjectType && target2.flags & (524288 /* Object */ | 2097152 /* Intersection */) && isWeakType(target2) && (getPropertiesOfType(source2).length > 0 || typeHasCallOrConstructSignatures(source2)); + const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048 /* JsxAttributes */); + if (isPerformingCommonPropertyChecks && !hasCommonProperties(source2, target2, isComparingJsxAttributes)) { + if (reportErrors2) { + const sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source2); + const targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target2); + const calls = getSignaturesOfType(source2, 0 /* Call */); + const constructs = getSignaturesOfType(source2, 1 /* Construct */); + if (calls.length > 0 && isRelatedTo( + getReturnTypeOfSignature(calls[0]), + target2, + 1 /* Source */, + /*reportErrors*/ + false + ) || constructs.length > 0 && isRelatedTo( + getReturnTypeOfSignature(constructs[0]), + target2, + 1 /* Source */, + /*reportErrors*/ + false + )) { + reportError(Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString); + } else { + reportError(Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString); + } + } + return 0 /* False */; + } + traceUnionsOrIntersectionsTooLarge(source2, target2); + const skipCaching = source2.flags & 1048576 /* Union */ && source2.types.length < 4 && !(target2.flags & 1048576 /* Union */) || target2.flags & 1048576 /* Union */ && target2.types.length < 4 && !(source2.flags & 469499904 /* StructuredOrInstantiable */); + const result2 = skipCaching ? unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) : recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags); + if (result2) { + return result2; + } + } + if (reportErrors2) { + reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2); + } + return 0 /* False */; + } + function reportErrorResults(originalSource, originalTarget, source2, target2, headMessage2) { + var _a2, _b; + const sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource); + const targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget); + source2 = originalSource.aliasSymbol || sourceHasBase ? originalSource : source2; + target2 = originalTarget.aliasSymbol || targetHasBase ? originalTarget : target2; + let maybeSuppress = overrideNextErrorInfo > 0; + if (maybeSuppress) { + overrideNextErrorInfo--; + } + if (source2.flags & 524288 /* Object */ && target2.flags & 524288 /* Object */) { + const currentError = errorInfo; + tryElaborateArrayLikeErrors( + source2, + target2, + /*reportErrors*/ + true + ); + if (errorInfo !== currentError) { + maybeSuppress = !!errorInfo; + } + } + if (source2.flags & 524288 /* Object */ && target2.flags & 402784252 /* Primitive */) { + tryElaborateErrorsForPrimitivesAndObjects(source2, target2); + } else if (source2.symbol && source2.flags & 524288 /* Object */ && globalObjectType === source2) { + reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead); + } else if (getObjectFlags(source2) & 2048 /* JsxAttributes */ && target2.flags & 2097152 /* Intersection */) { + const targetTypes = target2.types; + const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode); + const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode); + if (!isErrorType(intrinsicAttributes) && !isErrorType(intrinsicClassAttributes) && (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) { + return; + } + } else { + errorInfo = elaborateNeverIntersection(errorInfo, originalTarget); + } + if (!headMessage2 && maybeSuppress) { + const savedErrorState = captureErrorCalculationState(); + reportRelationError(headMessage2, source2, target2); + let canonical; + if (errorInfo && errorInfo !== savedErrorState.errorInfo) { + canonical = { code: errorInfo.code, messageText: errorInfo.messageText }; + } + resetErrorInfo(savedErrorState); + if (canonical && errorInfo) { + errorInfo.canonicalHead = canonical; + } + lastSkippedInfo = [source2, target2]; + return; + } + reportRelationError(headMessage2, source2, target2); + if (source2.flags & 262144 /* TypeParameter */ && ((_b = (_a2 = source2.symbol) == null ? void 0 : _a2.declarations) == null ? void 0 : _b[0]) && !getConstraintOfType(source2)) { + const syntheticParam = cloneTypeParameter(source2); + syntheticParam.constraint = instantiateType(target2, makeUnaryTypeMapper(source2, syntheticParam)); + if (hasNonCircularBaseConstraint(syntheticParam)) { + const targetConstraintString = typeToString(target2, source2.symbol.declarations[0]); + associateRelatedInfo(createDiagnosticForNode(source2.symbol.declarations[0], Diagnostics.This_type_parameter_might_need_an_extends_0_constraint, targetConstraintString)); + } + } + } + function traceUnionsOrIntersectionsTooLarge(source2, target2) { + if (!tracing) { + return; + } + if (source2.flags & 3145728 /* UnionOrIntersection */ && target2.flags & 3145728 /* UnionOrIntersection */) { + const sourceUnionOrIntersection = source2; + const targetUnionOrIntersection = target2; + if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 32768 /* PrimitiveUnion */) { + return; + } + const sourceSize = sourceUnionOrIntersection.types.length; + const targetSize = targetUnionOrIntersection.types.length; + if (sourceSize * targetSize > 1e6) { + tracing.instant(tracing.Phase.CheckTypes, "traceUnionsOrIntersectionsTooLarge_DepthLimit", { + sourceId: source2.id, + sourceSize, + targetId: target2.id, + targetSize, + pos: errorNode == null ? void 0 : errorNode.pos, + end: errorNode == null ? void 0 : errorNode.end + }); + } + } + } + function getTypeOfPropertyInTypes(types, name) { + const appendPropType = (propTypes, type) => { + var _a2; + type = getApparentType(type); + const prop = type.flags & 3145728 /* UnionOrIntersection */ ? getPropertyOfUnionOrIntersectionType(type, name) : getPropertyOfObjectType(type, name); + const propType = prop && getTypeOfSymbol(prop) || ((_a2 = getApplicableIndexInfoForName(type, name)) == null ? void 0 : _a2.type) || undefinedType; + return append(propTypes, propType); + }; + return getUnionType(reduceLeft( + types, + appendPropType, + /*initial*/ + void 0 + ) || emptyArray); + } + function hasExcessProperties(source2, target2, reportErrors2) { + var _a2; + if (!isExcessPropertyCheckTarget(target2) || !noImplicitAny && getObjectFlags(target2) & 4096 /* JSLiteral */) { + return false; + } + const isComparingJsxAttributes = !!(getObjectFlags(source2) & 2048 /* JsxAttributes */); + if ((relation === assignableRelation || relation === comparableRelation) && (isTypeSubsetOf(globalObjectType, target2) || !isComparingJsxAttributes && isEmptyObjectType(target2))) { + return false; + } + let reducedTarget = target2; + let checkTypes; + if (target2.flags & 1048576 /* Union */) { + reducedTarget = findMatchingDiscriminantType(source2, target2, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target2); + checkTypes = reducedTarget.flags & 1048576 /* Union */ ? reducedTarget.types : [reducedTarget]; + } + for (const prop of getPropertiesOfType(source2)) { + if (shouldCheckAsExcessProperty(prop, source2.symbol) && !isIgnoredJsxProperty(source2, prop)) { + if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) { + if (reportErrors2) { + const errorTarget = filterType(reducedTarget, isExcessPropertyCheckTarget); + if (!errorNode) return Debug.fail(); + if (isJsxAttributes(errorNode) || isJsxOpeningLikeElement(errorNode) || isJsxOpeningLikeElement(errorNode.parent)) { + if (prop.valueDeclaration && isJsxAttribute(prop.valueDeclaration) && getSourceFileOfNode(errorNode) === getSourceFileOfNode(prop.valueDeclaration.name)) { + errorNode = prop.valueDeclaration.name; + } + const propName = symbolToString(prop); + const suggestionSymbol = getSuggestedSymbolForNonexistentJSXAttribute(propName, errorTarget); + const suggestion = suggestionSymbol ? symbolToString(suggestionSymbol) : void 0; + if (suggestion) { + reportError(Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(errorTarget), suggestion); + } else { + reportError(Diagnostics.Property_0_does_not_exist_on_type_1, propName, typeToString(errorTarget)); + } + } else { + const objectLiteralDeclaration = ((_a2 = source2.symbol) == null ? void 0 : _a2.declarations) && firstOrUndefined(source2.symbol.declarations); + let suggestion; + if (prop.valueDeclaration && findAncestor(prop.valueDeclaration, (d) => d === objectLiteralDeclaration) && getSourceFileOfNode(objectLiteralDeclaration) === getSourceFileOfNode(errorNode)) { + const propDeclaration = prop.valueDeclaration; + Debug.assertNode(propDeclaration, isObjectLiteralElementLike); + const name = propDeclaration.name; + errorNode = name; + if (isIdentifier(name)) { + suggestion = getSuggestionForNonexistentProperty(name, errorTarget); + } + } + if (suggestion !== void 0) { + reportParentSkippedError(Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, symbolToString(prop), typeToString(errorTarget), suggestion); + } else { + reportParentSkippedError(Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(prop), typeToString(errorTarget)); + } + } + } + return true; + } + if (checkTypes && !isRelatedTo(getTypeOfSymbol(prop), getTypeOfPropertyInTypes(checkTypes, prop.escapedName), 3 /* Both */, reportErrors2)) { + if (reportErrors2) { + reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(prop)); + } + return true; + } + } + } + return false; + } + function shouldCheckAsExcessProperty(prop, container) { + return prop.valueDeclaration && container.valueDeclaration && prop.valueDeclaration.parent === container.valueDeclaration; + } + function unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState) { + if (source2.flags & 1048576 /* Union */) { + if (target2.flags & 1048576 /* Union */) { + const sourceOrigin = source2.origin; + if (sourceOrigin && sourceOrigin.flags & 2097152 /* Intersection */ && target2.aliasSymbol && contains(sourceOrigin.types, target2)) { + return -1 /* True */; + } + const targetOrigin = target2.origin; + if (targetOrigin && targetOrigin.flags & 1048576 /* Union */ && source2.aliasSymbol && contains(targetOrigin.types, source2)) { + return -1 /* True */; + } + } + return relation === comparableRelation ? someTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState) : eachTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState); + } + if (target2.flags & 1048576 /* Union */) { + return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source2), target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */) && !(target2.flags & 402784252 /* Primitive */), intersectionState); + } + if (target2.flags & 2097152 /* Intersection */) { + return typeRelatedToEachType(source2, target2, reportErrors2, 2 /* Target */); + } + if (relation === comparableRelation && target2.flags & 402784252 /* Primitive */) { + const constraints = sameMap(source2.types, (t) => t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(t) || unknownType : t); + if (constraints !== source2.types) { + source2 = getIntersectionType(constraints); + if (source2.flags & 131072 /* Never */) { + return 0 /* False */; + } + if (!(source2.flags & 2097152 /* Intersection */)) { + return isRelatedTo( + source2, + target2, + 1 /* Source */, + /*reportErrors*/ + false + ) || isRelatedTo( + target2, + source2, + 1 /* Source */, + /*reportErrors*/ + false + ); + } + } + } + return someTypeRelatedToType( + source2, + target2, + /*reportErrors*/ + false, + 1 /* Source */ + ); + } + function eachTypeRelatedToSomeType(source2, target2) { + let result2 = -1 /* True */; + const sourceTypes = source2.types; + for (const sourceType of sourceTypes) { + const related = typeRelatedToSomeType( + sourceType, + target2, + /*reportErrors*/ + false, + 0 /* None */ + ); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function typeRelatedToSomeType(source2, target2, reportErrors2, intersectionState) { + const targetTypes = target2.types; + if (target2.flags & 1048576 /* Union */) { + if (containsType(targetTypes, source2)) { + return -1 /* True */; + } + if (relation !== comparableRelation && getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) { + const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType; + const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0; + return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */; + } + const match = getMatchingUnionConstituentForType(target2, source2); + if (match) { + const related = isRelatedTo( + source2, + match, + 2 /* Target */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + ); + if (related) { + return related; + } + } + } + for (const type of targetTypes) { + const related = isRelatedTo( + source2, + type, + 2 /* Target */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + ); + if (related) { + return related; + } + } + if (reportErrors2) { + const bestMatchingType = getBestMatchingType(source2, target2, isRelatedTo); + if (bestMatchingType) { + isRelatedTo( + source2, + bestMatchingType, + 2 /* Target */, + /*reportErrors*/ + true, + /*headMessage*/ + void 0, + intersectionState + ); + } + } + return 0 /* False */; + } + function typeRelatedToEachType(source2, target2, reportErrors2, intersectionState) { + let result2 = -1 /* True */; + const targetTypes = target2.types; + for (const targetType of targetTypes) { + const related = isRelatedTo( + source2, + targetType, + 2 /* Target */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function someTypeRelatedToType(source2, target2, reportErrors2, intersectionState) { + const sourceTypes = source2.types; + if (source2.flags & 1048576 /* Union */ && containsType(sourceTypes, target2)) { + return -1 /* True */; + } + const len = sourceTypes.length; + for (let i = 0; i < len; i++) { + const related = isRelatedTo( + sourceTypes[i], + target2, + 1 /* Source */, + reportErrors2 && i === len - 1, + /*headMessage*/ + void 0, + intersectionState + ); + if (related) { + return related; + } + } + return 0 /* False */; + } + function getUndefinedStrippedTargetIfNeeded(source2, target2) { + if (source2.flags & 1048576 /* Union */ && target2.flags & 1048576 /* Union */ && !(source2.types[0].flags & 32768 /* Undefined */) && target2.types[0].flags & 32768 /* Undefined */) { + return extractTypesOfKind(target2, ~32768 /* Undefined */); + } + return target2; + } + function eachTypeRelatedToType(source2, target2, reportErrors2, intersectionState) { + let result2 = -1 /* True */; + const sourceTypes = source2.types; + const undefinedStrippedTarget = getUndefinedStrippedTargetIfNeeded(source2, target2); + for (let i = 0; i < sourceTypes.length; i++) { + const sourceType = sourceTypes[i]; + if (undefinedStrippedTarget.flags & 1048576 /* Union */ && sourceTypes.length >= undefinedStrippedTarget.types.length && sourceTypes.length % undefinedStrippedTarget.types.length === 0) { + const related2 = isRelatedTo( + sourceType, + undefinedStrippedTarget.types[i % undefinedStrippedTarget.types.length], + 3 /* Both */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + ); + if (related2) { + result2 &= related2; + continue; + } + } + const related = isRelatedTo( + sourceType, + target2, + 1 /* Source */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function typeArgumentsRelatedTo(sources = emptyArray, targets = emptyArray, variances = emptyArray, reportErrors2, intersectionState) { + if (sources.length !== targets.length && relation === identityRelation) { + return 0 /* False */; + } + const length2 = sources.length <= targets.length ? sources.length : targets.length; + let result2 = -1 /* True */; + for (let i = 0; i < length2; i++) { + const varianceFlags = i < variances.length ? variances[i] : 1 /* Covariant */; + const variance = varianceFlags & 7 /* VarianceMask */; + if (variance !== 4 /* Independent */) { + const s = sources[i]; + const t = targets[i]; + let related = -1 /* True */; + if (varianceFlags & 8 /* Unmeasurable */) { + related = relation === identityRelation ? isRelatedTo( + s, + t, + 3 /* Both */, + /*reportErrors*/ + false + ) : compareTypesIdentical(s, t); + } else if (variance === 1 /* Covariant */) { + related = isRelatedTo( + s, + t, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + } else if (variance === 2 /* Contravariant */) { + related = isRelatedTo( + t, + s, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + } else if (variance === 3 /* Bivariant */) { + related = isRelatedTo( + t, + s, + 3 /* Both */, + /*reportErrors*/ + false + ); + if (!related) { + related = isRelatedTo( + s, + t, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + } + } else { + related = isRelatedTo( + s, + t, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (related) { + related &= isRelatedTo( + t, + s, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + } + } + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + } + return result2; + } + function recursiveTypeRelatedTo(source2, target2, reportErrors2, intersectionState, recursionFlags) { + var _a2, _b, _c; + if (overflow) { + return 0 /* False */; + } + const id = getRelationKey( + source2, + target2, + intersectionState, + relation, + /*ignoreConstraints*/ + false + ); + const entry = relation.get(id); + if (entry !== void 0) { + if (reportErrors2 && entry & 2 /* Failed */ && !(entry & 4 /* Reported */)) { + } else { + if (outofbandVarianceMarkerHandler) { + const saved = entry & 24 /* ReportsMask */; + if (saved & 8 /* ReportsUnmeasurable */) { + instantiateType(source2, reportUnmeasurableMapper); + } + if (saved & 16 /* ReportsUnreliable */) { + instantiateType(source2, reportUnreliableMapper); + } + } + return entry & 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */; + } + } + if (relationCount <= 0) { + overflow = true; + return 0 /* False */; + } + if (!maybeKeys) { + maybeKeys = []; + maybeKeysSet = /* @__PURE__ */ new Set(); + sourceStack = []; + targetStack = []; + } else { + if (maybeKeysSet.has(id)) { + return 3 /* Maybe */; + } + const broadestEquivalentId = id.startsWith("*") ? getRelationKey( + source2, + target2, + intersectionState, + relation, + /*ignoreConstraints*/ + true + ) : void 0; + if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) { + return 3 /* Maybe */; + } + if (sourceDepth === 100 || targetDepth === 100) { + overflow = true; + return 0 /* False */; + } + } + const maybeStart = maybeCount; + maybeKeys[maybeCount] = id; + maybeKeysSet.add(id); + maybeCount++; + const saveExpandingFlags = expandingFlags; + if (recursionFlags & 1 /* Source */) { + sourceStack[sourceDepth] = source2; + sourceDepth++; + if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source2, sourceStack, sourceDepth)) expandingFlags |= 1 /* Source */; + } + if (recursionFlags & 2 /* Target */) { + targetStack[targetDepth] = target2; + targetDepth++; + if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target2, targetStack, targetDepth)) expandingFlags |= 2 /* Target */; + } + let originalHandler; + let propagatingVarianceFlags = 0; + if (outofbandVarianceMarkerHandler) { + originalHandler = outofbandVarianceMarkerHandler; + outofbandVarianceMarkerHandler = (onlyUnreliable) => { + propagatingVarianceFlags |= onlyUnreliable ? 16 /* ReportsUnreliable */ : 8 /* ReportsUnmeasurable */; + return originalHandler(onlyUnreliable); + }; + } + let result2; + if (expandingFlags === 3 /* Both */) { + (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "recursiveTypeRelatedTo_DepthLimit", { + sourceId: source2.id, + sourceIdStack: sourceStack.map((t) => t.id), + targetId: target2.id, + targetIdStack: targetStack.map((t) => t.id), + depth: sourceDepth, + targetDepth + }); + result2 = 3 /* Maybe */; + } else { + (_b = tracing) == null ? void 0 : _b.push(tracing.Phase.CheckTypes, "structuredTypeRelatedTo", { sourceId: source2.id, targetId: target2.id }); + result2 = structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState); + (_c = tracing) == null ? void 0 : _c.pop(); + } + if (outofbandVarianceMarkerHandler) { + outofbandVarianceMarkerHandler = originalHandler; + } + if (recursionFlags & 1 /* Source */) { + sourceDepth--; + } + if (recursionFlags & 2 /* Target */) { + targetDepth--; + } + expandingFlags = saveExpandingFlags; + if (result2) { + if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) { + if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) { + resetMaybeStack( + /*markAllAsSucceeded*/ + true + ); + } else { + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); + } + } + } else { + relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); + relationCount--; + resetMaybeStack( + /*markAllAsSucceeded*/ + false + ); + } + return result2; + function resetMaybeStack(markAllAsSucceeded) { + for (let i = maybeStart; i < maybeCount; i++) { + maybeKeysSet.delete(maybeKeys[i]); + if (markAllAsSucceeded) { + relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags); + relationCount--; + } + } + maybeCount = maybeStart; + } + } + function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) { + const saveErrorInfo = captureErrorCalculationState(); + let result2 = structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo); + if (relation !== identityRelation) { + if (!result2 && (source2.flags & 2097152 /* Intersection */ || source2.flags & 262144 /* TypeParameter */ && target2.flags & 1048576 /* Union */)) { + const constraint = getEffectiveConstraintOfIntersection(source2.flags & 2097152 /* Intersection */ ? source2.types : [source2], !!(target2.flags & 1048576 /* Union */)); + if (constraint && everyType(constraint, (c) => c !== source2)) { + result2 = isRelatedTo( + constraint, + target2, + 1 /* Source */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + ); + } + } + if (result2 && !(intersectionState & 2 /* Target */) && target2.flags & 2097152 /* Intersection */ && !isGenericObjectType(target2) && source2.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { + result2 &= propertiesRelatedTo( + source2, + target2, + reportErrors2, + /*excludedProperties*/ + void 0, + /*optionalsOnly*/ + false, + 0 /* None */ + ); + if (result2 && isObjectLiteralType(source2) && getObjectFlags(source2) & 8192 /* FreshLiteral */) { + result2 &= indexSignaturesRelatedTo( + source2, + target2, + /*sourceIsPrimitive*/ + false, + reportErrors2, + 0 /* None */ + ); + } + } else if (result2 && isNonGenericObjectType(target2) && !isArrayOrTupleType(target2) && source2.flags & 2097152 /* Intersection */ && getApparentType(source2).flags & 3670016 /* StructuredType */ && !some(source2.types, (t) => t === target2 || !!(getObjectFlags(t) & 262144 /* NonInferrableType */))) { + result2 &= propertiesRelatedTo( + source2, + target2, + reportErrors2, + /*excludedProperties*/ + void 0, + /*optionalsOnly*/ + true, + intersectionState + ); + } + } + if (result2) { + resetErrorInfo(saveErrorInfo); + } + return result2; + } + function getApparentMappedTypeKeys(nameType, targetType) { + const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType)); + const mappedKeys = []; + forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType( + modifiersType, + 8576 /* StringOrNumberLiteralOrUnique */, + /*stringsOnly*/ + false, + (t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t))) + ); + return getUnionType(mappedKeys); + } + function structuredTypeRelatedToWorker(source2, target2, reportErrors2, intersectionState, saveErrorInfo) { + let result2; + let originalErrorInfo; + let varianceCheckFailed = false; + let sourceFlags = source2.flags; + const targetFlags = target2.flags; + if (relation === identityRelation) { + if (sourceFlags & 3145728 /* UnionOrIntersection */) { + let result3 = eachTypeRelatedToSomeType(source2, target2); + if (result3) { + result3 &= eachTypeRelatedToSomeType(target2, source2); + } + return result3; + } + if (sourceFlags & 4194304 /* Index */) { + return isRelatedTo( + source2.type, + target2.type, + 3 /* Both */, + /*reportErrors*/ + false + ); + } + if (sourceFlags & 8388608 /* IndexedAccess */) { + if (result2 = isRelatedTo( + source2.objectType, + target2.objectType, + 3 /* Both */, + /*reportErrors*/ + false + )) { + if (result2 &= isRelatedTo( + source2.indexType, + target2.indexType, + 3 /* Both */, + /*reportErrors*/ + false + )) { + return result2; + } + } + } + if (sourceFlags & 16777216 /* Conditional */) { + if (source2.root.isDistributive === target2.root.isDistributive) { + if (result2 = isRelatedTo( + source2.checkType, + target2.checkType, + 3 /* Both */, + /*reportErrors*/ + false + )) { + if (result2 &= isRelatedTo( + source2.extendsType, + target2.extendsType, + 3 /* Both */, + /*reportErrors*/ + false + )) { + if (result2 &= isRelatedTo( + getTrueTypeFromConditionalType(source2), + getTrueTypeFromConditionalType(target2), + 3 /* Both */, + /*reportErrors*/ + false + )) { + if (result2 &= isRelatedTo( + getFalseTypeFromConditionalType(source2), + getFalseTypeFromConditionalType(target2), + 3 /* Both */, + /*reportErrors*/ + false + )) { + return result2; + } + } + } + } + } + } + if (sourceFlags & 33554432 /* Substitution */) { + if (result2 = isRelatedTo( + source2.baseType, + target2.baseType, + 3 /* Both */, + /*reportErrors*/ + false + )) { + if (result2 &= isRelatedTo( + source2.constraint, + target2.constraint, + 3 /* Both */, + /*reportErrors*/ + false + )) { + return result2; + } + } + } + if (!(sourceFlags & 524288 /* Object */)) { + return 0 /* False */; + } + } else if (sourceFlags & 3145728 /* UnionOrIntersection */ || targetFlags & 3145728 /* UnionOrIntersection */) { + if (result2 = unionOrIntersectionRelatedTo(source2, target2, reportErrors2, intersectionState)) { + return result2; + } + if (!(sourceFlags & 465829888 /* Instantiable */ || sourceFlags & 524288 /* Object */ && targetFlags & 1048576 /* Union */ || sourceFlags & 2097152 /* Intersection */ && targetFlags & (524288 /* Object */ | 1048576 /* Union */ | 465829888 /* Instantiable */))) { + return 0 /* False */; + } + } + if (sourceFlags & (524288 /* Object */ | 16777216 /* Conditional */) && source2.aliasSymbol && source2.aliasTypeArguments && source2.aliasSymbol === target2.aliasSymbol && !(isMarkerType(source2) || isMarkerType(target2))) { + const variances = getAliasVariances(source2.aliasSymbol); + if (variances === emptyArray) { + return 1 /* Unknown */; + } + const params = getSymbolLinks(source2.aliasSymbol).typeParameters; + const minParams = getMinTypeArgumentCount(params); + const sourceTypes = fillMissingTypeArguments(source2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration)); + const targetTypes = fillMissingTypeArguments(target2.aliasTypeArguments, params, minParams, isInJSFile(source2.aliasSymbol.valueDeclaration)); + const varianceResult = relateVariances(sourceTypes, targetTypes, variances, intersectionState); + if (varianceResult !== void 0) { + return varianceResult; + } + } + if (isSingleElementGenericTupleType(source2) && !source2.target.readonly && (result2 = isRelatedTo(getTypeArguments(source2)[0], target2, 1 /* Source */)) || isSingleElementGenericTupleType(target2) && (target2.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source2) || source2)) && (result2 = isRelatedTo(source2, getTypeArguments(target2)[0], 2 /* Target */))) { + return result2; + } + if (targetFlags & 262144 /* TypeParameter */) { + if (getObjectFlags(source2) & 32 /* Mapped */ && !source2.declaration.nameType && isRelatedTo(getIndexType(target2), getConstraintTypeFromMappedType(source2), 3 /* Both */)) { + if (!(getMappedTypeModifiers(source2) & 4 /* IncludeOptional */)) { + const templateType = getTemplateTypeFromMappedType(source2); + const indexedAccessType = getIndexedAccessType(target2, getTypeParameterFromMappedType(source2)); + if (result2 = isRelatedTo(templateType, indexedAccessType, 3 /* Both */, reportErrors2)) { + return result2; + } + } + } + if (relation === comparableRelation && sourceFlags & 262144 /* TypeParameter */) { + let constraint = getConstraintOfTypeParameter(source2); + if (constraint) { + while (constraint && someType(constraint, (c) => !!(c.flags & 262144 /* TypeParameter */))) { + if (result2 = isRelatedTo( + constraint, + target2, + 1 /* Source */, + /*reportErrors*/ + false + )) { + return result2; + } + constraint = getConstraintOfTypeParameter(constraint); + } + } + return 0 /* False */; + } + } else if (targetFlags & 4194304 /* Index */) { + const targetType = target2.type; + if (sourceFlags & 4194304 /* Index */) { + if (result2 = isRelatedTo( + targetType, + source2.type, + 3 /* Both */, + /*reportErrors*/ + false + )) { + return result2; + } + } + if (isTupleType(targetType)) { + if (result2 = isRelatedTo(source2, getKnownKeysOfTupleType(targetType), 2 /* Target */, reportErrors2)) { + return result2; + } + } else { + const constraint = getSimplifiedTypeOrConstraint(targetType); + if (constraint) { + if (isRelatedTo(source2, getIndexType(constraint, target2.indexFlags | 4 /* NoReducibleCheck */), 2 /* Target */, reportErrors2) === -1 /* True */) { + return -1 /* True */; + } + } else if (isGenericMappedType(targetType)) { + const nameType = getNameTypeFromMappedType(targetType); + const constraintType = getConstraintTypeFromMappedType(targetType); + let targetKeys; + if (nameType && isMappedTypeWithKeyofConstraintDeclaration(targetType)) { + const mappedKeys = getApparentMappedTypeKeys(nameType, targetType); + targetKeys = getUnionType([mappedKeys, nameType]); + } else { + targetKeys = nameType || constraintType; + } + if (isRelatedTo(source2, targetKeys, 2 /* Target */, reportErrors2) === -1 /* True */) { + return -1 /* True */; + } + } + } + } else if (targetFlags & 8388608 /* IndexedAccess */) { + if (sourceFlags & 8388608 /* IndexedAccess */) { + if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) { + result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2); + } + if (result2) { + return result2; + } + if (reportErrors2) { + originalErrorInfo = errorInfo; + } + } + if (relation === assignableRelation || relation === comparableRelation) { + const objectType = target2.objectType; + const indexType = target2.indexType; + const baseObjectType = getBaseConstraintOfType(objectType) || objectType; + const baseIndexType = getBaseConstraintOfType(indexType) || indexType; + if (!isGenericObjectType(baseObjectType) && !isGenericIndexType(baseIndexType)) { + const accessFlags = 4 /* Writing */ | (baseObjectType !== objectType ? 2 /* NoIndexSignatures */ : 0); + const constraint = getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, accessFlags); + if (constraint) { + if (reportErrors2 && originalErrorInfo) { + resetErrorInfo(saveErrorInfo); + } + if (result2 = isRelatedTo( + source2, + constraint, + 2 /* Target */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + )) { + return result2; + } + if (reportErrors2 && originalErrorInfo && errorInfo) { + errorInfo = countMessageChainBreadth([originalErrorInfo]) <= countMessageChainBreadth([errorInfo]) ? originalErrorInfo : errorInfo; + } + } + } + } + if (reportErrors2) { + originalErrorInfo = void 0; + } + } else if (isGenericMappedType(target2) && relation !== identityRelation) { + const keysRemapped = !!target2.declaration.nameType; + const templateType = getTemplateTypeFromMappedType(target2); + const modifiers = getMappedTypeModifiers(target2); + if (!(modifiers & 8 /* ExcludeOptional */)) { + if (!keysRemapped && templateType.flags & 8388608 /* IndexedAccess */ && templateType.objectType === source2 && templateType.indexType === getTypeParameterFromMappedType(target2)) { + return -1 /* True */; + } + if (!isGenericMappedType(source2)) { + const targetKeys = keysRemapped ? getNameTypeFromMappedType(target2) : getConstraintTypeFromMappedType(target2); + const sourceKeys = getIndexType(source2, 2 /* NoIndexSignatures */); + const includeOptional = modifiers & 4 /* IncludeOptional */; + const filteredByApplicability = includeOptional ? intersectTypes(targetKeys, sourceKeys) : void 0; + if (includeOptional ? !(filteredByApplicability.flags & 131072 /* Never */) : isRelatedTo(targetKeys, sourceKeys, 3 /* Both */)) { + const templateType2 = getTemplateTypeFromMappedType(target2); + const typeParameter = getTypeParameterFromMappedType(target2); + const nonNullComponent = extractTypesOfKind(templateType2, ~98304 /* Nullable */); + if (!keysRemapped && nonNullComponent.flags & 8388608 /* IndexedAccess */ && nonNullComponent.indexType === typeParameter) { + if (result2 = isRelatedTo(source2, nonNullComponent.objectType, 2 /* Target */, reportErrors2)) { + return result2; + } + } else { + const indexingType = keysRemapped ? filteredByApplicability || targetKeys : filteredByApplicability ? getIntersectionType([filteredByApplicability, typeParameter]) : typeParameter; + const indexedAccessType = getIndexedAccessType(source2, indexingType); + if (result2 = isRelatedTo(indexedAccessType, templateType2, 3 /* Both */, reportErrors2)) { + return result2; + } + } + } + originalErrorInfo = errorInfo; + resetErrorInfo(saveErrorInfo); + } + } + } else if (targetFlags & 16777216 /* Conditional */) { + if (isDeeplyNestedType(target2, targetStack, targetDepth, 10)) { + return 3 /* Maybe */; + } + const c = target2; + if (!c.root.inferTypeParameters && !isDistributionDependent(c.root) && !(source2.flags & 16777216 /* Conditional */ && source2.root === c.root)) { + const skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType)); + const skipFalse = !skipTrue && isTypeAssignableTo(getRestrictiveInstantiation(c.checkType), getRestrictiveInstantiation(c.extendsType)); + if (result2 = skipTrue ? -1 /* True */ : isRelatedTo( + source2, + getTrueTypeFromConditionalType(c), + 2 /* Target */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + )) { + result2 &= skipFalse ? -1 /* True */ : isRelatedTo( + source2, + getFalseTypeFromConditionalType(c), + 2 /* Target */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + ); + if (result2) { + return result2; + } + } + } + } else if (targetFlags & 134217728 /* TemplateLiteral */) { + if (sourceFlags & 134217728 /* TemplateLiteral */) { + if (relation === comparableRelation) { + return templateLiteralTypesDefinitelyUnrelated(source2, target2) ? 0 /* False */ : -1 /* True */; + } + instantiateType(source2, reportUnreliableMapper); + } + if (isTypeMatchedByTemplateLiteralType(source2, target2)) { + return -1 /* True */; + } + } else if (target2.flags & 268435456 /* StringMapping */) { + if (!(source2.flags & 268435456 /* StringMapping */)) { + if (isMemberOfStringMapping(source2, target2)) { + return -1 /* True */; + } + } + } + if (sourceFlags & 8650752 /* TypeVariable */) { + if (!(sourceFlags & 8388608 /* IndexedAccess */ && targetFlags & 8388608 /* IndexedAccess */)) { + const constraint = getConstraintOfType(source2) || unknownType; + if (result2 = isRelatedTo( + constraint, + target2, + 1 /* Source */, + /*reportErrors*/ + false, + /*headMessage*/ + void 0, + intersectionState + )) { + return result2; + } else if (result2 = isRelatedTo( + getTypeWithThisArgument(constraint, source2), + target2, + 1 /* Source */, + reportErrors2 && constraint !== unknownType && !(targetFlags & sourceFlags & 262144 /* TypeParameter */), + /*headMessage*/ + void 0, + intersectionState + )) { + return result2; + } + if (isMappedTypeGenericIndexedAccess(source2)) { + const indexConstraint = getConstraintOfType(source2.indexType); + if (indexConstraint) { + if (result2 = isRelatedTo(getIndexedAccessType(source2.objectType, indexConstraint), target2, 1 /* Source */, reportErrors2)) { + return result2; + } + } + } + } + } else if (sourceFlags & 4194304 /* Index */) { + const isDeferredMappedIndex = shouldDeferIndexType(source2.type, source2.indexFlags) && getObjectFlags(source2.type) & 32 /* Mapped */; + if (result2 = isRelatedTo(stringNumberSymbolType, target2, 1 /* Source */, reportErrors2 && !isDeferredMappedIndex)) { + return result2; + } + if (isDeferredMappedIndex) { + const mappedType = source2.type; + const nameType = getNameTypeFromMappedType(mappedType); + const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType); + if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) { + return result2; + } + } + } else if (sourceFlags & 134217728 /* TemplateLiteral */ && !(targetFlags & 524288 /* Object */)) { + if (!(targetFlags & 134217728 /* TemplateLiteral */)) { + const constraint = getBaseConstraintOfType(source2); + if (constraint && constraint !== source2 && (result2 = isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2))) { + return result2; + } + } + } else if (sourceFlags & 268435456 /* StringMapping */) { + if (targetFlags & 268435456 /* StringMapping */) { + if (source2.symbol !== target2.symbol) { + return 0 /* False */; + } + if (result2 = isRelatedTo(source2.type, target2.type, 3 /* Both */, reportErrors2)) { + return result2; + } + } else { + const constraint = getBaseConstraintOfType(source2); + if (constraint && (result2 = isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2))) { + return result2; + } + } + } else if (sourceFlags & 16777216 /* Conditional */) { + if (isDeeplyNestedType(source2, sourceStack, sourceDepth, 10)) { + return 3 /* Maybe */; + } + if (targetFlags & 16777216 /* Conditional */) { + const sourceParams = source2.root.inferTypeParameters; + let sourceExtends = source2.extendsType; + let mapper; + if (sourceParams) { + const ctx = createInferenceContext( + sourceParams, + /*signature*/ + void 0, + 0 /* None */, + isRelatedToWorker + ); + inferTypes(ctx.inferences, target2.extendsType, sourceExtends, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */); + sourceExtends = instantiateType(sourceExtends, ctx.mapper); + mapper = ctx.mapper; + } + if (isTypeIdenticalTo(sourceExtends, target2.extendsType) && (isRelatedTo(source2.checkType, target2.checkType, 3 /* Both */) || isRelatedTo(target2.checkType, source2.checkType, 3 /* Both */))) { + if (result2 = isRelatedTo(instantiateType(getTrueTypeFromConditionalType(source2), mapper), getTrueTypeFromConditionalType(target2), 3 /* Both */, reportErrors2)) { + result2 &= isRelatedTo(getFalseTypeFromConditionalType(source2), getFalseTypeFromConditionalType(target2), 3 /* Both */, reportErrors2); + } + if (result2) { + return result2; + } + } + } + const defaultConstraint = getDefaultConstraintOfConditionalType(source2); + if (defaultConstraint) { + if (result2 = isRelatedTo(defaultConstraint, target2, 1 /* Source */, reportErrors2)) { + return result2; + } + } + const distributiveConstraint = !(targetFlags & 16777216 /* Conditional */) && hasNonCircularBaseConstraint(source2) ? getConstraintOfDistributiveConditionalType(source2) : void 0; + if (distributiveConstraint) { + resetErrorInfo(saveErrorInfo); + if (result2 = isRelatedTo(distributiveConstraint, target2, 1 /* Source */, reportErrors2)) { + return result2; + } + } + } else { + if (relation !== subtypeRelation && relation !== strictSubtypeRelation && isPartialMappedType(target2) && isEmptyObjectType(source2)) { + return -1 /* True */; + } + if (isGenericMappedType(target2)) { + if (isGenericMappedType(source2)) { + if (result2 = mappedTypeRelatedTo(source2, target2, reportErrors2)) { + return result2; + } + } + return 0 /* False */; + } + const sourceIsPrimitive = !!(sourceFlags & 402784252 /* Primitive */); + if (relation !== identityRelation) { + source2 = getApparentType(source2); + sourceFlags = source2.flags; + } else if (isGenericMappedType(source2)) { + return 0 /* False */; + } + if (getObjectFlags(source2) & 4 /* Reference */ && getObjectFlags(target2) & 4 /* Reference */ && source2.target === target2.target && !isTupleType(source2) && !(isMarkerType(source2) || isMarkerType(target2))) { + if (isEmptyArrayLiteralType(source2)) { + return -1 /* True */; + } + const variances = getVariances(source2.target); + if (variances === emptyArray) { + return 1 /* Unknown */; + } + const varianceResult = relateVariances(getTypeArguments(source2), getTypeArguments(target2), variances, intersectionState); + if (varianceResult !== void 0) { + return varianceResult; + } + } else if (isReadonlyArrayType(target2) ? everyType(source2, isArrayOrTupleType) : isArrayType(target2) && everyType(source2, (t) => isTupleType(t) && !t.target.readonly)) { + if (relation !== identityRelation) { + return isRelatedTo(getIndexTypeOfType(source2, numberType) || anyType, getIndexTypeOfType(target2, numberType) || anyType, 3 /* Both */, reportErrors2); + } else { + return 0 /* False */; + } + } else if (isGenericTupleType(source2) && isTupleType(target2) && !isGenericTupleType(target2)) { + const constraint = getBaseConstraintOrType(source2); + if (constraint !== source2) { + return isRelatedTo(constraint, target2, 1 /* Source */, reportErrors2); + } + } else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target2) && getObjectFlags(target2) & 8192 /* FreshLiteral */ && !isEmptyObjectType(source2)) { + return 0 /* False */; + } + if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 524288 /* Object */) { + const reportStructuralErrors = reportErrors2 && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive; + result2 = propertiesRelatedTo( + source2, + target2, + reportStructuralErrors, + /*excludedProperties*/ + void 0, + /*optionalsOnly*/ + false, + intersectionState + ); + if (result2) { + result2 &= signaturesRelatedTo(source2, target2, 0 /* Call */, reportStructuralErrors, intersectionState); + if (result2) { + result2 &= signaturesRelatedTo(source2, target2, 1 /* Construct */, reportStructuralErrors, intersectionState); + if (result2) { + result2 &= indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportStructuralErrors, intersectionState); + } + } + } + if (varianceCheckFailed && result2) { + errorInfo = originalErrorInfo || errorInfo || saveErrorInfo.errorInfo; + } else if (result2) { + return result2; + } + } + if (sourceFlags & (524288 /* Object */ | 2097152 /* Intersection */) && targetFlags & 1048576 /* Union */) { + const objectOnlyTarget = extractTypesOfKind(target2, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */); + if (objectOnlyTarget.flags & 1048576 /* Union */) { + const result3 = typeRelatedToDiscriminatedType(source2, objectOnlyTarget); + if (result3) { + return result3; + } + } + } + } + return 0 /* False */; + function countMessageChainBreadth(info) { + if (!info) return 0; + return reduceLeft(info, (value, chain) => value + 1 + countMessageChainBreadth(chain.next), 0); + } + function relateVariances(sourceTypeArguments, targetTypeArguments, variances, intersectionState2) { + if (result2 = typeArgumentsRelatedTo(sourceTypeArguments, targetTypeArguments, variances, reportErrors2, intersectionState2)) { + return result2; + } + if (some(variances, (v) => !!(v & 24 /* AllowsStructuralFallback */))) { + originalErrorInfo = void 0; + resetErrorInfo(saveErrorInfo); + return void 0; + } + const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances); + varianceCheckFailed = !allowStructuralFallback; + if (variances !== emptyArray && !allowStructuralFallback) { + if (varianceCheckFailed && !(reportErrors2 && some(variances, (v) => (v & 7 /* VarianceMask */) === 0 /* Invariant */))) { + return 0 /* False */; + } + originalErrorInfo = errorInfo; + resetErrorInfo(saveErrorInfo); + } + } + } + function mappedTypeRelatedTo(source2, target2, reportErrors2) { + const modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source2) === getMappedTypeModifiers(target2) : getCombinedMappedTypeOptionality(source2) <= getCombinedMappedTypeOptionality(target2)); + if (modifiersRelated) { + let result2; + const targetConstraint = getConstraintTypeFromMappedType(target2); + const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source2), getCombinedMappedTypeOptionality(source2) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper); + if (result2 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors2)) { + const mapper = createTypeMapper([getTypeParameterFromMappedType(source2)], [getTypeParameterFromMappedType(target2)]); + if (instantiateType(getNameTypeFromMappedType(source2), mapper) === instantiateType(getNameTypeFromMappedType(target2), mapper)) { + return result2 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source2), mapper), getTemplateTypeFromMappedType(target2), 3 /* Both */, reportErrors2); + } + } + } + return 0 /* False */; + } + function typeRelatedToDiscriminatedType(source2, target2) { + var _a2; + const sourceProperties = getPropertiesOfType(source2); + const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target2); + if (!sourcePropertiesFiltered) return 0 /* False */; + let numCombinations = 1; + for (const sourceProperty of sourcePropertiesFiltered) { + numCombinations *= countTypes(getNonMissingTypeOfSymbol(sourceProperty)); + if (numCombinations > 25) { + (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "typeRelatedToDiscriminatedType_DepthLimit", { sourceId: source2.id, targetId: target2.id, numCombinations }); + return 0 /* False */; + } + } + const sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length); + const excludedProperties = /* @__PURE__ */ new Set(); + for (let i = 0; i < sourcePropertiesFiltered.length; i++) { + const sourceProperty = sourcePropertiesFiltered[i]; + const sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty); + sourceDiscriminantTypes[i] = sourcePropertyType.flags & 1048576 /* Union */ ? sourcePropertyType.types : [sourcePropertyType]; + excludedProperties.add(sourceProperty.escapedName); + } + const discriminantCombinations = cartesianProduct(sourceDiscriminantTypes); + const matchingTypes = []; + for (const combination of discriminantCombinations) { + let hasMatch = false; + outer: + for (const type of target2.types) { + for (let i = 0; i < sourcePropertiesFiltered.length; i++) { + const sourceProperty = sourcePropertiesFiltered[i]; + const targetProperty = getPropertyOfType(type, sourceProperty.escapedName); + if (!targetProperty) continue outer; + if (sourceProperty === targetProperty) continue; + const related = propertyRelatedTo( + source2, + target2, + sourceProperty, + targetProperty, + (_) => combination[i], + /*reportErrors*/ + false, + 0 /* None */, + /*skipOptional*/ + strictNullChecks || relation === comparableRelation + ); + if (!related) { + continue outer; + } + } + pushIfUnique(matchingTypes, type, equateValues); + hasMatch = true; + } + if (!hasMatch) { + return 0 /* False */; + } + } + let result2 = -1 /* True */; + for (const type of matchingTypes) { + result2 &= propertiesRelatedTo( + source2, + type, + /*reportErrors*/ + false, + excludedProperties, + /*optionalsOnly*/ + false, + 0 /* None */ + ); + if (result2) { + result2 &= signaturesRelatedTo( + source2, + type, + 0 /* Call */, + /*reportErrors*/ + false, + 0 /* None */ + ); + if (result2) { + result2 &= signaturesRelatedTo( + source2, + type, + 1 /* Construct */, + /*reportErrors*/ + false, + 0 /* None */ + ); + if (result2 && !(isTupleType(source2) && isTupleType(type))) { + result2 &= indexSignaturesRelatedTo( + source2, + type, + /*sourceIsPrimitive*/ + false, + /*reportErrors*/ + false, + 0 /* None */ + ); + } + } + } + if (!result2) { + return result2; + } + } + return result2; + } + function excludeProperties(properties, excludedProperties) { + if (!excludedProperties || properties.length === 0) return properties; + let result2; + for (let i = 0; i < properties.length; i++) { + if (!excludedProperties.has(properties[i].escapedName)) { + if (result2) { + result2.push(properties[i]); + } + } else if (!result2) { + result2 = properties.slice(0, i); + } + } + return result2 || properties; + } + function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState) { + const targetIsOptional = strictNullChecks && !!(getCheckFlags(targetProp) & 48 /* Partial */); + const effectiveTarget = addOptionality( + getNonMissingTypeOfSymbol(targetProp), + /*isProperty*/ + false, + targetIsOptional + ); + const effectiveSource = getTypeOfSourceProperty(sourceProp); + return isRelatedTo( + effectiveSource, + effectiveTarget, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + } + function propertyRelatedTo(source2, target2, sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState, skipOptional) { + const sourcePropFlags = getDeclarationModifierFlagsFromSymbol(sourceProp); + const targetPropFlags = getDeclarationModifierFlagsFromSymbol(targetProp); + if (sourcePropFlags & 2 /* Private */ || targetPropFlags & 2 /* Private */) { + if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) { + if (reportErrors2) { + if (sourcePropFlags & 2 /* Private */ && targetPropFlags & 2 /* Private */) { + reportError(Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp)); + } else { + reportError(Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourcePropFlags & 2 /* Private */ ? source2 : target2), typeToString(sourcePropFlags & 2 /* Private */ ? target2 : source2)); + } + } + return 0 /* False */; + } + } else if (targetPropFlags & 4 /* Protected */) { + if (!isValidOverrideOf(sourceProp, targetProp)) { + if (reportErrors2) { + reportError(Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(getDeclaringClass(sourceProp) || source2), typeToString(getDeclaringClass(targetProp) || target2)); + } + return 0 /* False */; + } + } else if (sourcePropFlags & 4 /* Protected */) { + if (reportErrors2) { + reportError(Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2)); + } + return 0 /* False */; + } + if (relation === strictSubtypeRelation && isReadonlySymbol(sourceProp) && !isReadonlySymbol(targetProp)) { + return 0 /* False */; + } + const related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState); + if (!related) { + if (reportErrors2) { + reportIncompatibleError(Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp)); + } + return 0 /* False */; + } + if (!skipOptional && sourceProp.flags & 16777216 /* Optional */ && targetProp.flags & 106500 /* ClassMember */ && !(targetProp.flags & 16777216 /* Optional */)) { + if (reportErrors2) { + reportError(Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source2), typeToString(target2)); + } + return 0 /* False */; + } + return related; + } + function reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties) { + let shouldSkipElaboration = false; + if (unmatchedProperty.valueDeclaration && isNamedDeclaration(unmatchedProperty.valueDeclaration) && isPrivateIdentifier(unmatchedProperty.valueDeclaration.name) && source2.symbol && source2.symbol.flags & 32 /* Class */) { + const privateIdentifierDescription = unmatchedProperty.valueDeclaration.name.escapedText; + const symbolTableKey = getSymbolNameForPrivateIdentifier(source2.symbol, privateIdentifierDescription); + if (symbolTableKey && getPropertyOfType(source2, symbolTableKey)) { + const sourceName = factory.getDeclarationName(source2.symbol.valueDeclaration); + const targetName = factory.getDeclarationName(target2.symbol.valueDeclaration); + reportError( + Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, + diagnosticName(privateIdentifierDescription), + diagnosticName(sourceName.escapedText === "" ? anon : sourceName), + diagnosticName(targetName.escapedText === "" ? anon : targetName) + ); + return; + } + } + const props = arrayFrom(getUnmatchedProperties( + source2, + target2, + requireOptionalProperties, + /*matchDiscriminantProperties*/ + false + )); + if (!headMessage || headMessage.code !== Diagnostics.Class_0_incorrectly_implements_interface_1.code && headMessage.code !== Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code) { + shouldSkipElaboration = true; + } + if (props.length === 1) { + const propName = symbolToString( + unmatchedProperty, + /*enclosingDeclaration*/ + void 0, + 0 /* None */, + 4 /* AllowAnyNodeKind */ | 16 /* WriteComputedProps */ + ); + reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2)); + if (length(unmatchedProperty.declarations)) { + associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName)); + } + if (shouldSkipElaboration && errorInfo) { + overrideNextErrorInfo++; + } + } else if (tryElaborateArrayLikeErrors( + source2, + target2, + /*reportErrors*/ + false + )) { + if (props.length > 5) { + reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source2), typeToString(target2), map(props.slice(0, 4), (p) => symbolToString(p)).join(", "), props.length - 4); + } else { + reportError(Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source2), typeToString(target2), map(props, (p) => symbolToString(p)).join(", ")); + } + if (shouldSkipElaboration && errorInfo) { + overrideNextErrorInfo++; + } + } + } + function propertiesRelatedTo(source2, target2, reportErrors2, excludedProperties, optionalsOnly, intersectionState) { + if (relation === identityRelation) { + return propertiesIdenticalTo(source2, target2, excludedProperties); + } + let result2 = -1 /* True */; + if (isTupleType(target2)) { + if (isArrayOrTupleType(source2)) { + if (!target2.target.readonly && (isReadonlyArrayType(source2) || isTupleType(source2) && source2.target.readonly)) { + return 0 /* False */; + } + const sourceArity = getTypeReferenceArity(source2); + const targetArity = getTypeReferenceArity(target2); + const sourceRestFlag = isTupleType(source2) ? source2.target.combinedFlags & 4 /* Rest */ : 4 /* Rest */; + const targetRestFlag = target2.target.combinedFlags & 4 /* Rest */; + const sourceMinLength = isTupleType(source2) ? source2.target.minLength : 0; + const targetMinLength = target2.target.minLength; + if (!sourceRestFlag && sourceArity < targetMinLength) { + if (reportErrors2) { + reportError(Diagnostics.Source_has_0_element_s_but_target_requires_1, sourceArity, targetMinLength); + } + return 0 /* False */; + } + if (!targetRestFlag && targetArity < sourceMinLength) { + if (reportErrors2) { + reportError(Diagnostics.Source_has_0_element_s_but_target_allows_only_1, sourceMinLength, targetArity); + } + return 0 /* False */; + } + if (!targetRestFlag && (sourceRestFlag || targetArity < sourceArity)) { + if (reportErrors2) { + if (sourceMinLength < targetMinLength) { + reportError(Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, targetMinLength); + } else { + reportError(Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more, targetArity); + } + } + return 0 /* False */; + } + const sourceTypeArguments = getTypeArguments(source2); + const targetTypeArguments = getTypeArguments(target2); + const targetStartCount = getStartElementCount(target2.target, 11 /* NonRest */); + const targetEndCount = getEndElementCount(target2.target, 11 /* NonRest */); + const targetHasRestElement = target2.target.hasRestElement; + let canExcludeDiscriminants = !!excludedProperties; + for (let sourcePosition = 0; sourcePosition < sourceArity; sourcePosition++) { + const sourceFlags = isTupleType(source2) ? source2.target.elementFlags[sourcePosition] : 4 /* Rest */; + const sourcePositionFromEnd = sourceArity - 1 - sourcePosition; + const targetPosition = targetHasRestElement && sourcePosition >= targetStartCount ? targetArity - 1 - Math.min(sourcePositionFromEnd, targetEndCount) : sourcePosition; + const targetFlags = target2.target.elementFlags[targetPosition]; + if (targetFlags & 8 /* Variadic */ && !(sourceFlags & 8 /* Variadic */)) { + if (reportErrors2) { + reportError(Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target, targetPosition); + } + return 0 /* False */; + } + if (sourceFlags & 8 /* Variadic */ && !(targetFlags & 12 /* Variable */)) { + if (reportErrors2) { + reportError(Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, sourcePosition, targetPosition); + } + return 0 /* False */; + } + if (targetFlags & 1 /* Required */ && !(sourceFlags & 1 /* Required */)) { + if (reportErrors2) { + reportError(Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target, targetPosition); + } + return 0 /* False */; + } + if (canExcludeDiscriminants) { + if (sourceFlags & 12 /* Variable */ || targetFlags & 12 /* Variable */) { + canExcludeDiscriminants = false; + } + if (canExcludeDiscriminants && (excludedProperties == null ? void 0 : excludedProperties.has("" + sourcePosition))) { + continue; + } + } + const sourceType = removeMissingType(sourceTypeArguments[sourcePosition], !!(sourceFlags & targetFlags & 2 /* Optional */)); + const targetType = targetTypeArguments[targetPosition]; + const targetCheckType = sourceFlags & 8 /* Variadic */ && targetFlags & 4 /* Rest */ ? createArrayType(targetType) : removeMissingType(targetType, !!(targetFlags & 2 /* Optional */)); + const related = isRelatedTo( + sourceType, + targetCheckType, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (!related) { + if (reportErrors2 && (targetArity > 1 || sourceArity > 1)) { + if (targetHasRestElement && sourcePosition >= targetStartCount && sourcePositionFromEnd >= targetEndCount && targetStartCount !== sourceArity - targetEndCount - 1) { + reportIncompatibleError(Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, targetStartCount, sourceArity - targetEndCount - 1, targetPosition); + } else { + reportIncompatibleError(Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, sourcePosition, targetPosition); + } + } + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + if (target2.target.combinedFlags & 12 /* Variable */) { + return 0 /* False */; + } + } + const requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType(source2) && !isEmptyArrayLiteralType(source2) && !isTupleType(source2); + const unmatchedProperty = getUnmatchedProperty( + source2, + target2, + requireOptionalProperties, + /*matchDiscriminantProperties*/ + false + ); + if (unmatchedProperty) { + if (reportErrors2 && shouldReportUnmatchedPropertyError(source2, target2)) { + reportUnmatchedProperty(source2, target2, unmatchedProperty, requireOptionalProperties); + } + return 0 /* False */; + } + if (isObjectLiteralType(target2)) { + for (const sourceProp of excludeProperties(getPropertiesOfType(source2), excludedProperties)) { + if (!getPropertyOfObjectType(target2, sourceProp.escapedName)) { + const sourceType = getTypeOfSymbol(sourceProp); + if (!(sourceType.flags & 32768 /* Undefined */)) { + if (reportErrors2) { + reportError(Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target2)); + } + return 0 /* False */; + } + } + } + } + const properties = getPropertiesOfType(target2); + const numericNamesOnly = isTupleType(source2) && isTupleType(target2); + for (const targetProp of excludeProperties(properties, excludedProperties)) { + const name = targetProp.escapedName; + if (!(targetProp.flags & 4194304 /* Prototype */) && (!numericNamesOnly || isNumericLiteralName(name) || name === "length") && (!optionalsOnly || targetProp.flags & 16777216 /* Optional */)) { + const sourceProp = getPropertyOfType(source2, name); + if (sourceProp && sourceProp !== targetProp) { + const related = propertyRelatedTo(source2, target2, sourceProp, targetProp, getNonMissingTypeOfSymbol, reportErrors2, intersectionState, relation === comparableRelation); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + } + } + return result2; + } + function propertiesIdenticalTo(source2, target2, excludedProperties) { + if (!(source2.flags & 524288 /* Object */ && target2.flags & 524288 /* Object */)) { + return 0 /* False */; + } + const sourceProperties = excludeProperties(getPropertiesOfObjectType(source2), excludedProperties); + const targetProperties = excludeProperties(getPropertiesOfObjectType(target2), excludedProperties); + if (sourceProperties.length !== targetProperties.length) { + return 0 /* False */; + } + let result2 = -1 /* True */; + for (const sourceProp of sourceProperties) { + const targetProp = getPropertyOfObjectType(target2, sourceProp.escapedName); + if (!targetProp) { + return 0 /* False */; + } + const related = compareProperties(sourceProp, targetProp, isRelatedTo); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function signaturesRelatedTo(source2, target2, kind, reportErrors2, intersectionState) { + var _a2, _b; + if (relation === identityRelation) { + return signaturesIdenticalTo(source2, target2, kind); + } + if (target2 === anyFunctionType || source2 === anyFunctionType) { + return -1 /* True */; + } + const sourceIsJSConstructor = source2.symbol && isJSConstructor(source2.symbol.valueDeclaration); + const targetIsJSConstructor = target2.symbol && isJSConstructor(target2.symbol.valueDeclaration); + const sourceSignatures = getSignaturesOfType( + source2, + sourceIsJSConstructor && kind === 1 /* Construct */ ? 0 /* Call */ : kind + ); + const targetSignatures = getSignaturesOfType( + target2, + targetIsJSConstructor && kind === 1 /* Construct */ ? 0 /* Call */ : kind + ); + if (kind === 1 /* Construct */ && sourceSignatures.length && targetSignatures.length) { + const sourceIsAbstract = !!(sourceSignatures[0].flags & 4 /* Abstract */); + const targetIsAbstract = !!(targetSignatures[0].flags & 4 /* Abstract */); + if (sourceIsAbstract && !targetIsAbstract) { + if (reportErrors2) { + reportError(Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type); + } + return 0 /* False */; + } + if (!constructorVisibilitiesAreCompatible(sourceSignatures[0], targetSignatures[0], reportErrors2)) { + return 0 /* False */; + } + } + let result2 = -1 /* True */; + const incompatibleReporter = kind === 1 /* Construct */ ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn; + const sourceObjectFlags = getObjectFlags(source2); + const targetObjectFlags = getObjectFlags(target2); + if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source2.symbol === target2.symbol || sourceObjectFlags & 4 /* Reference */ && targetObjectFlags & 4 /* Reference */ && source2.target === target2.target) { + Debug.assertEqual(sourceSignatures.length, targetSignatures.length); + for (let i = 0; i < targetSignatures.length; i++) { + const related = signatureRelatedTo( + sourceSignatures[i], + targetSignatures[i], + /*erase*/ + true, + reportErrors2, + intersectionState, + incompatibleReporter(sourceSignatures[i], targetSignatures[i]) + ); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + } else if (sourceSignatures.length === 1 && targetSignatures.length === 1) { + const eraseGenerics = relation === comparableRelation; + const sourceSignature = first(sourceSignatures); + const targetSignature = first(targetSignatures); + result2 = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors2, intersectionState, incompatibleReporter(sourceSignature, targetSignature)); + if (!result2 && reportErrors2 && kind === 1 /* Construct */ && sourceObjectFlags & targetObjectFlags && (((_a2 = targetSignature.declaration) == null ? void 0 : _a2.kind) === 176 /* Constructor */ || ((_b = sourceSignature.declaration) == null ? void 0 : _b.kind) === 176 /* Constructor */)) { + const constructSignatureToString = (signature) => signatureToString( + signature, + /*enclosingDeclaration*/ + void 0, + 262144 /* WriteArrowStyleSignature */, + kind + ); + reportError(Diagnostics.Type_0_is_not_assignable_to_type_1, constructSignatureToString(sourceSignature), constructSignatureToString(targetSignature)); + reportError(Diagnostics.Types_of_construct_signatures_are_incompatible); + return result2; + } + } else { + outer: + for (const t of targetSignatures) { + const saveErrorInfo = captureErrorCalculationState(); + let shouldElaborateErrors = reportErrors2; + for (const s of sourceSignatures) { + const related = signatureRelatedTo( + s, + t, + /*erase*/ + true, + shouldElaborateErrors, + intersectionState, + incompatibleReporter(s, t) + ); + if (related) { + result2 &= related; + resetErrorInfo(saveErrorInfo); + continue outer; + } + shouldElaborateErrors = false; + } + if (shouldElaborateErrors) { + reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1, typeToString(source2), signatureToString( + t, + /*enclosingDeclaration*/ + void 0, + /*flags*/ + void 0, + kind + )); + } + return 0 /* False */; + } + } + return result2; + } + function shouldReportUnmatchedPropertyError(source2, target2) { + const typeCallSignatures = getSignaturesOfStructuredType(source2, 0 /* Call */); + const typeConstructSignatures = getSignaturesOfStructuredType(source2, 1 /* Construct */); + const typeProperties = getPropertiesOfObjectType(source2); + if ((typeCallSignatures.length || typeConstructSignatures.length) && !typeProperties.length) { + if (getSignaturesOfType(target2, 0 /* Call */).length && typeCallSignatures.length || getSignaturesOfType(target2, 1 /* Construct */).length && typeConstructSignatures.length) { + return true; + } + return false; + } + return true; + } + function reportIncompatibleCallSignatureReturn(siga, sigb) { + if (siga.parameters.length === 0 && sigb.parameters.length === 0) { + return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2)); + } + return (source2, target2) => reportIncompatibleError(Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2)); + } + function reportIncompatibleConstructSignatureReturn(siga, sigb) { + if (siga.parameters.length === 0 && sigb.parameters.length === 0) { + return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source2), typeToString(target2)); + } + return (source2, target2) => reportIncompatibleError(Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, typeToString(source2), typeToString(target2)); + } + function signatureRelatedTo(source2, target2, erase, reportErrors2, intersectionState, incompatibleReporter) { + const checkMode = relation === subtypeRelation ? 16 /* StrictTopSignature */ : relation === strictSubtypeRelation ? 16 /* StrictTopSignature */ | 8 /* StrictArity */ : 0 /* None */; + return compareSignaturesRelated(erase ? getErasedSignature(source2) : source2, erase ? getErasedSignature(target2) : target2, checkMode, reportErrors2, reportError, incompatibleReporter, isRelatedToWorker2, reportUnreliableMapper); + function isRelatedToWorker2(source3, target3, reportErrors3) { + return isRelatedTo( + source3, + target3, + 3 /* Both */, + reportErrors3, + /*headMessage*/ + void 0, + intersectionState + ); + } + } + function signaturesIdenticalTo(source2, target2, kind) { + const sourceSignatures = getSignaturesOfType(source2, kind); + const targetSignatures = getSignaturesOfType(target2, kind); + if (sourceSignatures.length !== targetSignatures.length) { + return 0 /* False */; + } + let result2 = -1 /* True */; + for (let i = 0; i < sourceSignatures.length; i++) { + const related = compareSignaturesIdentical( + sourceSignatures[i], + targetSignatures[i], + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + false, + /*ignoreReturnTypes*/ + false, + isRelatedTo + ); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) { + let result2 = -1 /* True */; + const keyType = targetInfo.keyType; + const props = source2.flags & 2097152 /* Intersection */ ? getPropertiesOfUnionOrIntersectionType(source2) : getPropertiesOfObjectType(source2); + for (const prop of props) { + if (isIgnoredJsxProperty(source2, prop)) { + continue; + } + if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), keyType)) { + const propType = getNonMissingTypeOfSymbol(prop); + const type = exactOptionalPropertyTypes || propType.flags & 32768 /* Undefined */ || keyType === numberType || !(prop.flags & 16777216 /* Optional */) ? propType : getTypeWithFacts(propType, 524288 /* NEUndefined */); + const related = isRelatedTo( + type, + targetInfo.type, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (!related) { + if (reportErrors2) { + reportError(Diagnostics.Property_0_is_incompatible_with_index_signature, symbolToString(prop)); + } + return 0 /* False */; + } + result2 &= related; + } + } + for (const info of getIndexInfosOfType(source2)) { + if (isApplicableIndexType(info.keyType, keyType)) { + const related = indexInfoRelatedTo(info, targetInfo, reportErrors2, intersectionState); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + } + return result2; + } + function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState) { + const related = isRelatedTo( + sourceInfo.type, + targetInfo.type, + 3 /* Both */, + reportErrors2, + /*headMessage*/ + void 0, + intersectionState + ); + if (!related && reportErrors2) { + if (sourceInfo.keyType === targetInfo.keyType) { + reportError(Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType)); + } else { + reportError(Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType)); + } + } + return related; + } + function indexSignaturesRelatedTo(source2, target2, sourceIsPrimitive, reportErrors2, intersectionState) { + if (relation === identityRelation) { + return indexSignaturesIdenticalTo(source2, target2); + } + const indexInfos = getIndexInfosOfType(target2); + const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType); + let result2 = -1 /* True */; + for (const targetInfo of indexInfos) { + const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState); + if (!related) { + return 0 /* False */; + } + result2 &= related; + } + return result2; + } + function typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState) { + const sourceInfo = getApplicableIndexInfo(source2, targetInfo.keyType); + if (sourceInfo) { + return indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors2, intersectionState); + } + if (!(intersectionState & 1 /* Source */) && (relation !== strictSubtypeRelation || getObjectFlags(source2) & 8192 /* FreshLiteral */) && isObjectTypeWithInferableIndex(source2)) { + return membersRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState); + } + if (reportErrors2) { + reportError(Diagnostics.Index_signature_for_type_0_is_missing_in_type_1, typeToString(targetInfo.keyType), typeToString(source2)); + } + return 0 /* False */; + } + function indexSignaturesIdenticalTo(source2, target2) { + const sourceInfos = getIndexInfosOfType(source2); + const targetInfos = getIndexInfosOfType(target2); + if (sourceInfos.length !== targetInfos.length) { + return 0 /* False */; + } + for (const targetInfo of targetInfos) { + const sourceInfo = getIndexInfoOfType(source2, targetInfo.keyType); + if (!(sourceInfo && isRelatedTo(sourceInfo.type, targetInfo.type, 3 /* Both */) && sourceInfo.isReadonly === targetInfo.isReadonly)) { + return 0 /* False */; + } + } + return -1 /* True */; + } + function constructorVisibilitiesAreCompatible(sourceSignature, targetSignature, reportErrors2) { + if (!sourceSignature.declaration || !targetSignature.declaration) { + return true; + } + const sourceAccessibility = getSelectedEffectiveModifierFlags(sourceSignature.declaration, 6 /* NonPublicAccessibilityModifier */); + const targetAccessibility = getSelectedEffectiveModifierFlags(targetSignature.declaration, 6 /* NonPublicAccessibilityModifier */); + if (targetAccessibility === 2 /* Private */) { + return true; + } + if (targetAccessibility === 4 /* Protected */ && sourceAccessibility !== 2 /* Private */) { + return true; + } + if (targetAccessibility !== 4 /* Protected */ && !sourceAccessibility) { + return true; + } + if (reportErrors2) { + reportError(Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, visibilityToString(sourceAccessibility), visibilityToString(targetAccessibility)); + } + return false; + } + } + function typeCouldHaveTopLevelSingletonTypes(type) { + if (type.flags & 16 /* Boolean */) { + return false; + } + if (type.flags & 3145728 /* UnionOrIntersection */) { + return !!forEach(type.types, typeCouldHaveTopLevelSingletonTypes); + } + if (type.flags & 465829888 /* Instantiable */) { + const constraint = getConstraintOfType(type); + if (constraint && constraint !== type) { + return typeCouldHaveTopLevelSingletonTypes(constraint); + } + } + return isUnitType(type) || !!(type.flags & 134217728 /* TemplateLiteral */) || !!(type.flags & 268435456 /* StringMapping */); + } + function getExactOptionalUnassignableProperties(source, target) { + if (isTupleType(source) && isTupleType(target)) return emptyArray; + return getPropertiesOfType(target).filter((targetProp) => isExactOptionalPropertyMismatch(getTypeOfPropertyOfType(source, targetProp.escapedName), getTypeOfSymbol(targetProp))); + } + function isExactOptionalPropertyMismatch(source, target) { + return !!source && !!target && maybeTypeOfKind(source, 32768 /* Undefined */) && !!containsMissingType(target); + } + function getExactOptionalProperties(type) { + return getPropertiesOfType(type).filter((targetProp) => containsMissingType(getTypeOfSymbol(targetProp))); + } + function getBestMatchingType(source, target, isRelatedTo = compareTypesAssignable) { + return findMatchingDiscriminantType(source, target, isRelatedTo) || findMatchingTypeReferenceOrTypeAliasReference(source, target) || findBestTypeForObjectLiteral(source, target) || findBestTypeForInvokable(source, target) || findMostOverlappyType(source, target); + } + function discriminateTypeByDiscriminableItems(target, discriminators, related) { + const types = target.types; + const include = types.map((t) => t.flags & 402784252 /* Primitive */ ? 0 /* False */ : -1 /* True */); + for (const [getDiscriminatingType, propertyName] of discriminators) { + let matched = false; + for (let i = 0; i < types.length; i++) { + if (include[i]) { + const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); + if (targetType && related(getDiscriminatingType(), targetType)) { + matched = true; + } else { + include[i] = 3 /* Maybe */; + } + } + } + for (let i = 0; i < types.length; i++) { + if (include[i] === 3 /* Maybe */) { + include[i] = matched ? 0 /* False */ : -1 /* True */; + } + } + } + const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i]), 0 /* None */) : target; + return filtered.flags & 131072 /* Never */ ? target : filtered; + } + function isWeakType(type) { + if (type.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type); + return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 && resolved.properties.length > 0 && every(resolved.properties, (p) => !!(p.flags & 16777216 /* Optional */)); + } + if (type.flags & 33554432 /* Substitution */) { + return isWeakType(type.baseType); + } + if (type.flags & 2097152 /* Intersection */) { + return every(type.types, isWeakType); + } + return false; + } + function hasCommonProperties(source, target, isComparingJsxAttributes) { + for (const prop of getPropertiesOfType(source)) { + if (isKnownProperty(target, prop.escapedName, isComparingJsxAttributes)) { + return true; + } + } + return false; + } + function getVariances(type) { + return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 /* Tuple */ ? arrayVariances : getVariancesWorker(type.symbol, type.typeParameters); + } + function getAliasVariances(symbol) { + return getVariancesWorker(symbol, getSymbolLinks(symbol).typeParameters); + } + function getVariancesWorker(symbol, typeParameters = emptyArray) { + var _a, _b; + const links = getSymbolLinks(symbol); + if (!links.variances) { + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) }); + const oldVarianceComputation = inVarianceComputation; + const saveResolutionStart = resolutionStart; + if (!inVarianceComputation) { + inVarianceComputation = true; + resolutionStart = resolutionTargets.length; + } + links.variances = emptyArray; + const variances = []; + for (const tp of typeParameters) { + const modifiers = getTypeParameterModifiers(tp); + let variance = modifiers & 16384 /* Out */ ? modifiers & 8192 /* In */ ? 0 /* Invariant */ : 1 /* Covariant */ : modifiers & 8192 /* In */ ? 2 /* Contravariant */ : void 0; + if (variance === void 0) { + let unmeasurable = false; + let unreliable = false; + const oldHandler = outofbandVarianceMarkerHandler; + outofbandVarianceMarkerHandler = (onlyUnreliable) => onlyUnreliable ? unreliable = true : unmeasurable = true; + const typeWithSuper = createMarkerType(symbol, tp, markerSuperType); + const typeWithSub = createMarkerType(symbol, tp, markerSubType); + variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 /* Covariant */ : 0) | (isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 /* Contravariant */ : 0); + if (variance === 3 /* Bivariant */ && isTypeAssignableTo(createMarkerType(symbol, tp, markerOtherType), typeWithSuper)) { + variance = 4 /* Independent */; + } + outofbandVarianceMarkerHandler = oldHandler; + if (unmeasurable || unreliable) { + if (unmeasurable) { + variance |= 8 /* Unmeasurable */; + } + if (unreliable) { + variance |= 16 /* Unreliable */; + } + } + } + variances.push(variance); + } + if (!oldVarianceComputation) { + inVarianceComputation = false; + resolutionStart = saveResolutionStart; + } + links.variances = variances; + (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) }); + } + return links.variances; + } + function createMarkerType(symbol, source, target) { + const mapper = makeUnaryTypeMapper(source, target); + const type = getDeclaredTypeOfSymbol(symbol); + if (isErrorType(type)) { + return type; + } + const result = symbol.flags & 524288 /* TypeAlias */ ? getTypeAliasInstantiation(symbol, instantiateTypes(getSymbolLinks(symbol).typeParameters, mapper)) : createTypeReference(type, instantiateTypes(type.typeParameters, mapper)); + markerTypes.add(getTypeId(result)); + return result; + } + function isMarkerType(type) { + return markerTypes.has(getTypeId(type)); + } + function getTypeParameterModifiers(tp) { + var _a; + return reduceLeft((_a = tp.symbol) == null ? void 0 : _a.declarations, (modifiers, d) => modifiers | getEffectiveModifierFlags(d), 0 /* None */) & (8192 /* In */ | 16384 /* Out */ | 4096 /* Const */); + } + function hasCovariantVoidArgument(typeArguments, variances) { + for (let i = 0; i < variances.length; i++) { + if ((variances[i] & 7 /* VarianceMask */) === 1 /* Covariant */ && typeArguments[i].flags & 16384 /* Void */) { + return true; + } + } + return false; + } + function isUnconstrainedTypeParameter(type) { + return type.flags & 262144 /* TypeParameter */ && !getConstraintOfTypeParameter(type); + } + function isNonDeferredTypeReference(type) { + return !!(getObjectFlags(type) & 4 /* Reference */) && !type.node; + } + function isTypeReferenceWithGenericArguments(type) { + return isNonDeferredTypeReference(type) && some(getTypeArguments(type), (t) => !!(t.flags & 262144 /* TypeParameter */) || isTypeReferenceWithGenericArguments(t)); + } + function getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) { + const typeParameters = []; + let constraintMarker = ""; + const sourceId = getTypeReferenceId(source, 0); + const targetId = getTypeReferenceId(target, 0); + return `${constraintMarker}${sourceId},${targetId}${postFix}`; + function getTypeReferenceId(type, depth = 0) { + let result = "" + type.target.id; + for (const t of getTypeArguments(type)) { + if (t.flags & 262144 /* TypeParameter */) { + if (ignoreConstraints || isUnconstrainedTypeParameter(t)) { + let index = typeParameters.indexOf(t); + if (index < 0) { + index = typeParameters.length; + typeParameters.push(t); + } + result += "=" + index; + continue; + } + constraintMarker = "*"; + } else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) { + result += "<" + getTypeReferenceId(t, depth + 1) + ">"; + continue; + } + result += "-" + t.id; + } + return result; + } + } + function getRelationKey(source, target, intersectionState, relation, ignoreConstraints) { + if (relation === identityRelation && source.id > target.id) { + const temp = source; + source = target; + target = temp; + } + const postFix = intersectionState ? ":" + intersectionState : ""; + return isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target) ? getGenericTypeReferenceRelationKey(source, target, postFix, ignoreConstraints) : `${source.id},${target.id}${postFix}`; + } + function forEachProperty(prop, callback) { + if (getCheckFlags(prop) & 6 /* Synthetic */) { + for (const t of prop.links.containingType.types) { + const p = getPropertyOfType(t, prop.escapedName); + const result = p && forEachProperty(p, callback); + if (result) { + return result; + } + } + return void 0; + } + return callback(prop); + } + function getDeclaringClass(prop) { + return prop.parent && prop.parent.flags & 32 /* Class */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(prop)) : void 0; + } + function getTypeOfPropertyInBaseClass(property) { + const classType = getDeclaringClass(property); + const baseClassType = classType && getBaseTypes(classType)[0]; + return baseClassType && getTypeOfPropertyOfType(baseClassType, property.escapedName); + } + function isPropertyInClassDerivedFrom(prop, baseClass) { + return forEachProperty(prop, (sp) => { + const sourceClass = getDeclaringClass(sp); + return sourceClass ? hasBaseType(sourceClass, baseClass) : false; + }); + } + function isValidOverrideOf(sourceProp, targetProp) { + return !forEachProperty(targetProp, (tp) => getDeclarationModifierFlagsFromSymbol(tp) & 4 /* Protected */ ? !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false); + } + function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) { + return forEachProperty(prop, (p) => getDeclarationModifierFlagsFromSymbol(p, writing) & 4 /* Protected */ ? !hasBaseType(checkClass, getDeclaringClass(p)) : false) ? void 0 : checkClass; + } + function isDeeplyNestedType(type, stack, depth, maxDepth = 3) { + if (depth >= maxDepth) { + if ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */) { + type = getMappedTargetWithSymbol(type); + } + if (type.flags & 2097152 /* Intersection */) { + return some(type.types, (t) => isDeeplyNestedType(t, stack, depth, maxDepth)); + } + const identity2 = getRecursionIdentity(type); + let count = 0; + let lastTypeId = 0; + for (let i = 0; i < depth; i++) { + const t = stack[i]; + if (hasMatchingRecursionIdentity(t, identity2)) { + if (t.id >= lastTypeId) { + count++; + if (count >= maxDepth) { + return true; + } + } + lastTypeId = t.id; + } + } + } + return false; + } + function getMappedTargetWithSymbol(type) { + let target; + while ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */ && (target = getModifiersTypeFromMappedType(type)) && (target.symbol || target.flags & 2097152 /* Intersection */ && some(target.types, (t) => !!t.symbol))) { + type = target; + } + return type; + } + function hasMatchingRecursionIdentity(type, identity2) { + if ((getObjectFlags(type) & 96 /* InstantiatedMapped */) === 96 /* InstantiatedMapped */) { + type = getMappedTargetWithSymbol(type); + } + if (type.flags & 2097152 /* Intersection */) { + return some(type.types, (t) => hasMatchingRecursionIdentity(t, identity2)); + } + return getRecursionIdentity(type) === identity2; + } + function getRecursionIdentity(type) { + if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) { + if (getObjectFlags(type) & 4 /* Reference */ && type.node) { + return type.node; + } + if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) { + return type.symbol; + } + if (isTupleType(type)) { + return type.target; + } + } + if (type.flags & 262144 /* TypeParameter */) { + return type.symbol; + } + if (type.flags & 8388608 /* IndexedAccess */) { + do { + type = type.objectType; + } while (type.flags & 8388608 /* IndexedAccess */); + return type; + } + if (type.flags & 16777216 /* Conditional */) { + return type.root; + } + return type; + } + function isPropertyIdenticalTo(sourceProp, targetProp) { + return compareProperties(sourceProp, targetProp, compareTypesIdentical) !== 0 /* False */; + } + function compareProperties(sourceProp, targetProp, compareTypes) { + if (sourceProp === targetProp) { + return -1 /* True */; + } + const sourcePropAccessibility = getDeclarationModifierFlagsFromSymbol(sourceProp) & 6 /* NonPublicAccessibilityModifier */; + const targetPropAccessibility = getDeclarationModifierFlagsFromSymbol(targetProp) & 6 /* NonPublicAccessibilityModifier */; + if (sourcePropAccessibility !== targetPropAccessibility) { + return 0 /* False */; + } + if (sourcePropAccessibility) { + if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) { + return 0 /* False */; + } + } else { + if ((sourceProp.flags & 16777216 /* Optional */) !== (targetProp.flags & 16777216 /* Optional */)) { + return 0 /* False */; + } + } + if (isReadonlySymbol(sourceProp) !== isReadonlySymbol(targetProp)) { + return 0 /* False */; + } + return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp)); + } + function isMatchingSignature(source, target, partialMatch) { + const sourceParameterCount = getParameterCount(source); + const targetParameterCount = getParameterCount(target); + const sourceMinArgumentCount = getMinArgumentCount(source); + const targetMinArgumentCount = getMinArgumentCount(target); + const sourceHasRestParameter = hasEffectiveRestParameter(source); + const targetHasRestParameter = hasEffectiveRestParameter(target); + if (sourceParameterCount === targetParameterCount && sourceMinArgumentCount === targetMinArgumentCount && sourceHasRestParameter === targetHasRestParameter) { + return true; + } + if (partialMatch && sourceMinArgumentCount <= targetMinArgumentCount) { + return true; + } + return false; + } + function compareSignaturesIdentical(source, target, partialMatch, ignoreThisTypes, ignoreReturnTypes, compareTypes) { + if (source === target) { + return -1 /* True */; + } + if (!isMatchingSignature(source, target, partialMatch)) { + return 0 /* False */; + } + if (length(source.typeParameters) !== length(target.typeParameters)) { + return 0 /* False */; + } + if (target.typeParameters) { + const mapper = createTypeMapper(source.typeParameters, target.typeParameters); + for (let i = 0; i < target.typeParameters.length; i++) { + const s = source.typeParameters[i]; + const t = target.typeParameters[i]; + if (!(s === t || compareTypes(instantiateType(getConstraintFromTypeParameter(s), mapper) || unknownType, getConstraintFromTypeParameter(t) || unknownType) && compareTypes(instantiateType(getDefaultFromTypeParameter(s), mapper) || unknownType, getDefaultFromTypeParameter(t) || unknownType))) { + return 0 /* False */; + } + } + source = instantiateSignature( + source, + mapper, + /*eraseTypeParameters*/ + true + ); + } + let result = -1 /* True */; + if (!ignoreThisTypes) { + const sourceThisType = getThisTypeOfSignature(source); + if (sourceThisType) { + const targetThisType = getThisTypeOfSignature(target); + if (targetThisType) { + const related = compareTypes(sourceThisType, targetThisType); + if (!related) { + return 0 /* False */; + } + result &= related; + } + } + } + const targetLen = getParameterCount(target); + for (let i = 0; i < targetLen; i++) { + const s = getTypeAtPosition(source, i); + const t = getTypeAtPosition(target, i); + const related = compareTypes(t, s); + if (!related) { + return 0 /* False */; + } + result &= related; + } + if (!ignoreReturnTypes) { + const sourceTypePredicate = getTypePredicateOfSignature(source); + const targetTypePredicate = getTypePredicateOfSignature(target); + result &= sourceTypePredicate || targetTypePredicate ? compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) : compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target)); + } + return result; + } + function compareTypePredicatesIdentical(source, target, compareTypes) { + return !(source && target && typePredicateKindsMatch(source, target)) ? 0 /* False */ : source.type === target.type ? -1 /* True */ : source.type && target.type ? compareTypes(source.type, target.type) : 0 /* False */; + } + function literalTypesWithSameBaseType(types) { + let commonBaseType; + for (const t of types) { + if (!(t.flags & 131072 /* Never */)) { + const baseType = getBaseTypeOfLiteralType(t); + commonBaseType ?? (commonBaseType = baseType); + if (baseType === t || baseType !== commonBaseType) { + return false; + } + } + } + return true; + } + function getCombinedTypeFlags(types) { + return reduceLeft(types, (flags, t) => flags | (t.flags & 1048576 /* Union */ ? getCombinedTypeFlags(t.types) : t.flags), 0); + } + function getCommonSupertype(types) { + if (types.length === 1) { + return types[0]; + } + const primaryTypes = strictNullChecks ? sameMap(types, (t) => filterType(t, (u) => !(u.flags & 98304 /* Nullable */))) : types; + const superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ? getUnionType(primaryTypes) : reduceLeft(primaryTypes, (s, t) => isTypeSubtypeOf(s, t) ? t : s); + return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & 98304 /* Nullable */); + } + function getCommonSubtype(types) { + return reduceLeft(types, (s, t) => isTypeSubtypeOf(t, s) ? t : s); + } + function isArrayType(type) { + return !!(getObjectFlags(type) & 4 /* Reference */) && (type.target === globalArrayType || type.target === globalReadonlyArrayType); + } + function isReadonlyArrayType(type) { + return !!(getObjectFlags(type) & 4 /* Reference */) && type.target === globalReadonlyArrayType; + } + function isArrayOrTupleType(type) { + return isArrayType(type) || isTupleType(type); + } + function isMutableArrayOrTuple(type) { + return isArrayType(type) && !isReadonlyArrayType(type) || isTupleType(type) && !type.target.readonly; + } + function getElementTypeOfArrayType(type) { + return isArrayType(type) ? getTypeArguments(type)[0] : void 0; + } + function isArrayLikeType(type) { + return isArrayType(type) || !(type.flags & 98304 /* Nullable */) && isTypeAssignableTo(type, anyReadonlyArrayType); + } + function isMutableArrayLikeType(type) { + return isMutableArrayOrTuple(type) || !(type.flags & (1 /* Any */ | 98304 /* Nullable */)) && isTypeAssignableTo(type, anyArrayType); + } + function getSingleBaseForNonAugmentingSubtype(type) { + if (!(getObjectFlags(type) & 4 /* Reference */) || !(getObjectFlags(type.target) & 3 /* ClassOrInterface */)) { + return void 0; + } + if (getObjectFlags(type) & 33554432 /* IdenticalBaseTypeCalculated */) { + return getObjectFlags(type) & 67108864 /* IdenticalBaseTypeExists */ ? type.cachedEquivalentBaseType : void 0; + } + type.objectFlags |= 33554432 /* IdenticalBaseTypeCalculated */; + const target = type.target; + if (getObjectFlags(target) & 1 /* Class */) { + const baseTypeNode = getBaseTypeNodeOfClass(target); + if (baseTypeNode && baseTypeNode.expression.kind !== 80 /* Identifier */ && baseTypeNode.expression.kind !== 211 /* PropertyAccessExpression */) { + return void 0; + } + } + const bases = getBaseTypes(target); + if (bases.length !== 1) { + return void 0; + } + if (getMembersOfSymbol(type.symbol).size) { + return void 0; + } + let instantiatedBase = !length(target.typeParameters) ? bases[0] : instantiateType(bases[0], createTypeMapper(target.typeParameters, getTypeArguments(type).slice(0, target.typeParameters.length))); + if (length(getTypeArguments(type)) > length(target.typeParameters)) { + instantiatedBase = getTypeWithThisArgument(instantiatedBase, last(getTypeArguments(type))); + } + type.objectFlags |= 67108864 /* IdenticalBaseTypeExists */; + return type.cachedEquivalentBaseType = instantiatedBase; + } + function isEmptyLiteralType(type) { + return strictNullChecks ? type === implicitNeverType : type === undefinedWideningType; + } + function isEmptyArrayLiteralType(type) { + const elementType = getElementTypeOfArrayType(type); + return !!elementType && isEmptyLiteralType(elementType); + } + function isTupleLikeType(type) { + let lengthType; + return isTupleType(type) || !!getPropertyOfType(type, "0") || isArrayLikeType(type) && !!(lengthType = getTypeOfPropertyOfType(type, "length")) && everyType(lengthType, (t) => !!(t.flags & 256 /* NumberLiteral */)); + } + function isArrayOrTupleLikeType(type) { + return isArrayLikeType(type) || isTupleLikeType(type); + } + function getTupleElementType(type, index) { + const propType = getTypeOfPropertyOfType(type, "" + index); + if (propType) { + return propType; + } + if (everyType(type, isTupleType)) { + return getTupleElementTypeOutOfStartCount(type, index, compilerOptions.noUncheckedIndexedAccess ? undefinedType : void 0); + } + return void 0; + } + function isNeitherUnitTypeNorNever(type) { + return !(type.flags & (109472 /* Unit */ | 131072 /* Never */)); + } + function isUnitType(type) { + return !!(type.flags & 109472 /* Unit */); + } + function isUnitLikeType(type) { + const t = getBaseConstraintOrType(type); + return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t); + } + function extractUnitType(type) { + return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type; + } + function isLiteralType(type) { + return type.flags & 16 /* Boolean */ ? true : type.flags & 1048576 /* Union */ ? type.flags & 1024 /* EnumLiteral */ ? true : every(type.types, isUnitType) : isUnitType(type); + } + function getBaseTypeOfLiteralType(type) { + return type.flags & 1056 /* EnumLike */ ? getBaseTypeOfEnumLikeType(type) : type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? stringType : type.flags & 256 /* NumberLiteral */ ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 512 /* BooleanLiteral */ ? booleanType : type.flags & 1048576 /* Union */ ? getBaseTypeOfLiteralTypeUnion(type) : type; + } + function getBaseTypeOfLiteralTypeUnion(type) { + const key = `B${getTypeId(type)}`; + return getCachedType(key) ?? setCachedType(key, mapType(type, getBaseTypeOfLiteralType)); + } + function getBaseTypeOfLiteralTypeForComparison(type) { + return type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? stringType : type.flags & (256 /* NumberLiteral */ | 32 /* Enum */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 512 /* BooleanLiteral */ ? booleanType : type.flags & 1048576 /* Union */ ? mapType(type, getBaseTypeOfLiteralTypeForComparison) : type; + } + function getWidenedLiteralType(type) { + return type.flags & 1056 /* EnumLike */ && isFreshLiteralType(type) ? getBaseTypeOfEnumLikeType(type) : type.flags & 128 /* StringLiteral */ && isFreshLiteralType(type) ? stringType : type.flags & 256 /* NumberLiteral */ && isFreshLiteralType(type) ? numberType : type.flags & 2048 /* BigIntLiteral */ && isFreshLiteralType(type) ? bigintType : type.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(type) ? booleanType : type.flags & 1048576 /* Union */ ? mapType(type, getWidenedLiteralType) : type; + } + function getWidenedUniqueESSymbolType(type) { + return type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : type.flags & 1048576 /* Union */ ? mapType(type, getWidenedUniqueESSymbolType) : type; + } + function getWidenedLiteralLikeTypeForContextualType(type, contextualType) { + if (!isLiteralOfContextualType(type, contextualType)) { + type = getWidenedUniqueESSymbolType(getWidenedLiteralType(type)); + } + return getRegularTypeOfLiteralType(type); + } + function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(type, contextualSignatureReturnType, isAsync) { + if (type && isUnitType(type)) { + const contextualType = !contextualSignatureReturnType ? void 0 : isAsync ? getPromisedTypeOfPromise(contextualSignatureReturnType) : contextualSignatureReturnType; + type = getWidenedLiteralLikeTypeForContextualType(type, contextualType); + } + return type; + } + function getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(type, contextualSignatureReturnType, kind, isAsyncGenerator) { + if (type && isUnitType(type)) { + const contextualType = !contextualSignatureReturnType ? void 0 : getIterationTypeOfGeneratorFunctionReturnType(kind, contextualSignatureReturnType, isAsyncGenerator); + type = getWidenedLiteralLikeTypeForContextualType(type, contextualType); + } + return type; + } + function isTupleType(type) { + return !!(getObjectFlags(type) & 4 /* Reference */ && type.target.objectFlags & 8 /* Tuple */); + } + function isGenericTupleType(type) { + return isTupleType(type) && !!(type.target.combinedFlags & 8 /* Variadic */); + } + function isSingleElementGenericTupleType(type) { + return isGenericTupleType(type) && type.target.elementFlags.length === 1; + } + function getRestTypeOfTupleType(type) { + return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength); + } + function getTupleElementTypeOutOfStartCount(type, index, undefinedOrMissingType2) { + return mapType(type, (t) => { + const tupleType = t; + const restType = getRestTypeOfTupleType(tupleType); + if (!restType) { + return undefinedType; + } + if (undefinedOrMissingType2 && index >= getTotalFixedElementCount(tupleType.target)) { + return getUnionType([restType, undefinedOrMissingType2]); + } + return restType; + }); + } + function getRestArrayTypeOfTupleType(type) { + const restType = getRestTypeOfTupleType(type); + return restType && createArrayType(restType); + } + function getElementTypeOfSliceOfTupleType(type, index, endSkipCount = 0, writing = false, noReductions = false) { + const length2 = getTypeReferenceArity(type) - endSkipCount; + if (index < length2) { + const typeArguments = getTypeArguments(type); + const elementTypes = []; + for (let i = index; i < length2; i++) { + const t = typeArguments[i]; + elementTypes.push(type.target.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t); + } + return writing ? getIntersectionType(elementTypes) : getUnionType(elementTypes, noReductions ? 0 /* None */ : 1 /* Literal */); + } + return void 0; + } + function isTupleTypeStructureMatching(t1, t2) { + return getTypeReferenceArity(t1) === getTypeReferenceArity(t2) && every(t1.target.elementFlags, (f, i) => (f & 12 /* Variable */) === (t2.target.elementFlags[i] & 12 /* Variable */)); + } + function isZeroBigInt({ value }) { + return value.base10Value === "0"; + } + function removeDefinitelyFalsyTypes(type) { + return filterType(type, (t) => hasTypeFacts(t, 4194304 /* Truthy */)); + } + function extractDefinitelyFalsyTypes(type) { + return mapType(type, getDefinitelyFalsyPartOfType); + } + function getDefinitelyFalsyPartOfType(type) { + return type.flags & 4 /* String */ ? emptyStringType : type.flags & 8 /* Number */ ? zeroType : type.flags & 64 /* BigInt */ ? zeroBigIntType : type === regularFalseType || type === falseType || type.flags & (16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */ | 3 /* AnyOrUnknown */) || type.flags & 128 /* StringLiteral */ && type.value === "" || type.flags & 256 /* NumberLiteral */ && type.value === 0 || type.flags & 2048 /* BigIntLiteral */ && isZeroBigInt(type) ? type : neverType; + } + function getNullableType(type, flags) { + const missing = flags & ~type.flags & (32768 /* Undefined */ | 65536 /* Null */); + return missing === 0 ? type : missing === 32768 /* Undefined */ ? getUnionType([type, undefinedType]) : missing === 65536 /* Null */ ? getUnionType([type, nullType]) : getUnionType([type, undefinedType, nullType]); + } + function getOptionalType(type, isProperty = false) { + Debug.assert(strictNullChecks); + const missingOrUndefined = isProperty ? undefinedOrMissingType : undefinedType; + return type === missingOrUndefined || type.flags & 1048576 /* Union */ && type.types[0] === missingOrUndefined ? type : getUnionType([type, missingOrUndefined]); + } + function getGlobalNonNullableTypeInstantiation(type) { + if (!deferredGlobalNonNullableTypeAlias) { + deferredGlobalNonNullableTypeAlias = getGlobalSymbol( + "NonNullable", + 524288 /* TypeAlias */, + /*diagnostic*/ + void 0 + ) || unknownSymbol; + } + return deferredGlobalNonNullableTypeAlias !== unknownSymbol ? getTypeAliasInstantiation(deferredGlobalNonNullableTypeAlias, [type]) : getIntersectionType([type, emptyObjectType]); + } + function getNonNullableType(type) { + return strictNullChecks ? getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; + } + function addOptionalTypeMarker(type) { + return strictNullChecks ? getUnionType([type, optionalType]) : type; + } + function removeOptionalTypeMarker(type) { + return strictNullChecks ? removeType(type, optionalType) : type; + } + function propagateOptionalTypeMarker(type, node, wasOptional) { + return wasOptional ? isOutermostOptionalChain(node) ? getOptionalType(type) : addOptionalTypeMarker(type) : type; + } + function getOptionalExpressionType(exprType, expression) { + return isExpressionOfOptionalChainRoot(expression) ? getNonNullableType(exprType) : isOptionalChain(expression) ? removeOptionalTypeMarker(exprType) : exprType; + } + function removeMissingType(type, isOptional) { + return exactOptionalPropertyTypes && isOptional ? removeType(type, missingType) : type; + } + function containsMissingType(type) { + return type === missingType || !!(type.flags & 1048576 /* Union */) && type.types[0] === missingType; + } + function removeMissingOrUndefinedType(type) { + return exactOptionalPropertyTypes ? removeType(type, missingType) : getTypeWithFacts(type, 524288 /* NEUndefined */); + } + function isCoercibleUnderDoubleEquals(source, target) { + return (source.flags & (8 /* Number */ | 4 /* String */ | 512 /* BooleanLiteral */)) !== 0 && (target.flags & (8 /* Number */ | 4 /* String */ | 16 /* Boolean */)) !== 0; + } + function isObjectTypeWithInferableIndex(type) { + const objectFlags = getObjectFlags(type); + return type.flags & 2097152 /* Intersection */ ? every(type.types, isObjectTypeWithInferableIndex) : !!(type.symbol && (type.symbol.flags & (4096 /* ObjectLiteral */ | 2048 /* TypeLiteral */ | 384 /* Enum */ | 512 /* ValueModule */)) !== 0 && !(type.symbol.flags & 32 /* Class */) && !typeHasCallOrConstructSignatures(type)) || !!(objectFlags & 4194304 /* ObjectRestType */) || !!(objectFlags & 1024 /* ReverseMapped */ && isObjectTypeWithInferableIndex(type.source)); + } + function createSymbolWithType(source, type) { + const symbol = createSymbol(source.flags, source.escapedName, getCheckFlags(source) & 8 /* Readonly */); + symbol.declarations = source.declarations; + symbol.parent = source.parent; + symbol.links.type = type; + symbol.links.target = source; + if (source.valueDeclaration) { + symbol.valueDeclaration = source.valueDeclaration; + } + const nameType = getSymbolLinks(source).nameType; + if (nameType) { + symbol.links.nameType = nameType; + } + return symbol; + } + function transformTypeOfMembers(type, f) { + const members = createSymbolTable(); + for (const property of getPropertiesOfObjectType(type)) { + const original = getTypeOfSymbol(property); + const updated = f(original); + members.set(property.escapedName, updated === original ? property : createSymbolWithType(property, updated)); + } + return members; + } + function getRegularTypeOfObjectLiteral(type) { + if (!(isObjectLiteralType(type) && getObjectFlags(type) & 8192 /* FreshLiteral */)) { + return type; + } + const regularType = type.regularType; + if (regularType) { + return regularType; + } + const resolved = type; + const members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral); + const regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos); + regularNew.flags = resolved.flags; + regularNew.objectFlags |= resolved.objectFlags & ~8192 /* FreshLiteral */; + type.regularType = regularNew; + return regularNew; + } + function createWideningContext(parent, propertyName, siblings) { + return { parent, propertyName, siblings, resolvedProperties: void 0 }; + } + function getSiblingsOfContext(context) { + if (!context.siblings) { + const siblings = []; + for (const type of getSiblingsOfContext(context.parent)) { + if (isObjectLiteralType(type)) { + const prop = getPropertyOfObjectType(type, context.propertyName); + if (prop) { + forEachType(getTypeOfSymbol(prop), (t) => { + siblings.push(t); + }); + } + } + } + context.siblings = siblings; + } + return context.siblings; + } + function getPropertiesOfContext(context) { + if (!context.resolvedProperties) { + const names = /* @__PURE__ */ new Map(); + for (const t of getSiblingsOfContext(context)) { + if (isObjectLiteralType(t) && !(getObjectFlags(t) & 2097152 /* ContainsSpread */)) { + for (const prop of getPropertiesOfType(t)) { + names.set(prop.escapedName, prop); + } + } + } + context.resolvedProperties = arrayFrom(names.values()); + } + return context.resolvedProperties; + } + function getWidenedProperty(prop, context) { + if (!(prop.flags & 4 /* Property */)) { + return prop; + } + const original = getTypeOfSymbol(prop); + const propContext = context && createWideningContext( + context, + prop.escapedName, + /*siblings*/ + void 0 + ); + const widened = getWidenedTypeWithContext(original, propContext); + return widened === original ? prop : createSymbolWithType(prop, widened); + } + function getUndefinedProperty(prop) { + const cached = undefinedProperties.get(prop.escapedName); + if (cached) { + return cached; + } + const result = createSymbolWithType(prop, undefinedOrMissingType); + result.flags |= 16777216 /* Optional */; + undefinedProperties.set(prop.escapedName, result); + return result; + } + function getWidenedTypeOfObjectLiteral(type, context) { + const members = createSymbolTable(); + for (const prop of getPropertiesOfObjectType(type)) { + members.set(prop.escapedName, getWidenedProperty(prop, context)); + } + if (context) { + for (const prop of getPropertiesOfContext(context)) { + if (!members.has(prop.escapedName)) { + members.set(prop.escapedName, getUndefinedProperty(prop)); + } + } + } + const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly))); + result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */); + return result; + } + function getWidenedType(type) { + return getWidenedTypeWithContext( + type, + /*context*/ + void 0 + ); + } + function getWidenedTypeWithContext(type, context) { + if (getObjectFlags(type) & 196608 /* RequiresWidening */) { + if (context === void 0 && type.widened) { + return type.widened; + } + let result; + if (type.flags & (1 /* Any */ | 98304 /* Nullable */)) { + result = anyType; + } else if (isObjectLiteralType(type)) { + result = getWidenedTypeOfObjectLiteral(type, context); + } else if (type.flags & 1048576 /* Union */) { + const unionContext = context || createWideningContext( + /*parent*/ + void 0, + /*propertyName*/ + void 0, + type.types + ); + const widenedTypes = sameMap(type.types, (t) => t.flags & 98304 /* Nullable */ ? t : getWidenedTypeWithContext(t, unionContext)); + result = getUnionType(widenedTypes, some(widenedTypes, isEmptyObjectType) ? 2 /* Subtype */ : 1 /* Literal */); + } else if (type.flags & 2097152 /* Intersection */) { + result = getIntersectionType(sameMap(type.types, getWidenedType)); + } else if (isArrayOrTupleType(type)) { + result = createTypeReference(type.target, sameMap(getTypeArguments(type), getWidenedType)); + } + if (result && context === void 0) { + type.widened = result; + } + return result || type; + } + return type; + } + function reportWideningErrorsInType(type) { + let errorReported = false; + if (getObjectFlags(type) & 65536 /* ContainsWideningType */) { + if (type.flags & 1048576 /* Union */) { + if (some(type.types, isEmptyObjectType)) { + errorReported = true; + } else { + for (const t of type.types) { + if (reportWideningErrorsInType(t)) { + errorReported = true; + } + } + } + } + if (isArrayOrTupleType(type)) { + for (const t of getTypeArguments(type)) { + if (reportWideningErrorsInType(t)) { + errorReported = true; + } + } + } + if (isObjectLiteralType(type)) { + for (const p of getPropertiesOfObjectType(type)) { + const t = getTypeOfSymbol(p); + if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { + if (!reportWideningErrorsInType(t)) { + error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); + } + errorReported = true; + } + } + } + } + return errorReported; + } + function reportImplicitAny(declaration, type, wideningKind) { + const typeAsString = typeToString(getWidenedType(type)); + if (isInJSFile(declaration) && !isCheckJsEnabledForFile(getSourceFileOfNode(declaration), compilerOptions)) { + return; + } + let diagnostic; + switch (declaration.kind) { + case 226 /* BinaryExpression */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + diagnostic = noImplicitAny ? Diagnostics.Member_0_implicitly_has_an_1_type : Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; + break; + case 169 /* Parameter */: + const param = declaration; + if (isIdentifier(param.name)) { + const originalKeywordKind = identifierToKeywordKind(param.name); + if ((isCallSignatureDeclaration(param.parent) || isMethodSignature(param.parent) || isFunctionTypeNode(param.parent)) && param.parent.parameters.includes(param) && (resolveName( + param, + param.name.escapedText, + 788968 /* Type */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ) || originalKeywordKind && isTypeNodeKind(originalKeywordKind))) { + const newName = "arg" + param.parent.parameters.indexOf(param); + const typeName = declarationNameToString(param.name) + (param.dotDotDotToken ? "[]" : ""); + errorOrSuggestion(noImplicitAny, declaration, Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, typeName); + return; + } + } + diagnostic = declaration.dotDotDotToken ? noImplicitAny ? Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage : noImplicitAny ? Diagnostics.Parameter_0_implicitly_has_an_1_type : Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; + break; + case 208 /* BindingElement */: + diagnostic = Diagnostics.Binding_element_0_implicitly_has_an_1_type; + if (!noImplicitAny) { + return; + } + break; + case 317 /* JSDocFunctionType */: + error(declaration, Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + return; + case 323 /* JSDocSignature */: + if (noImplicitAny && isJSDocOverloadTag(declaration.parent)) { + error(declaration.parent.tagName, Diagnostics.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation, typeAsString); + } + return; + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + if (noImplicitAny && !declaration.name) { + if (wideningKind === 3 /* GeneratorYield */) { + error(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); + } else { + error(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); + } + return; + } + diagnostic = !noImplicitAny ? Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage : wideningKind === 3 /* GeneratorYield */ ? Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type : Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type; + break; + case 200 /* MappedType */: + if (noImplicitAny) { + error(declaration, Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type); + } + return; + default: + diagnostic = noImplicitAny ? Diagnostics.Variable_0_implicitly_has_an_1_type : Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage; + } + errorOrSuggestion(noImplicitAny, declaration, diagnostic, declarationNameToString(getNameOfDeclaration(declaration)), typeAsString); + } + function reportErrorsFromWidening(declaration, type, wideningKind) { + addLazyDiagnostic(() => { + if (noImplicitAny && getObjectFlags(type) & 65536 /* ContainsWideningType */ && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) { + if (!reportWideningErrorsInType(type)) { + reportImplicitAny(declaration, type, wideningKind); + } + } + }); + } + function applyToParameterTypes(source, target, callback) { + const sourceCount = getParameterCount(source); + const targetCount = getParameterCount(target); + const sourceRestType = getEffectiveRestType(source); + const targetRestType = getEffectiveRestType(target); + const targetNonRestCount = targetRestType ? targetCount - 1 : targetCount; + const paramCount = sourceRestType ? targetNonRestCount : Math.min(sourceCount, targetNonRestCount); + const sourceThisType = getThisTypeOfSignature(source); + if (sourceThisType) { + const targetThisType = getThisTypeOfSignature(target); + if (targetThisType) { + callback(sourceThisType, targetThisType); + } + } + for (let i = 0; i < paramCount; i++) { + callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i)); + } + if (targetRestType) { + callback(getRestTypeAtPosition( + source, + paramCount, + /*readonly*/ + isConstTypeVariable(targetRestType) && !someType(targetRestType, isMutableArrayLikeType) + ), targetRestType); + } + } + function applyToReturnTypes(source, target, callback) { + const targetTypePredicate = getTypePredicateOfSignature(target); + if (targetTypePredicate) { + const sourceTypePredicate = getTypePredicateOfSignature(source); + if (sourceTypePredicate && typePredicateKindsMatch(sourceTypePredicate, targetTypePredicate) && sourceTypePredicate.type && targetTypePredicate.type) { + callback(sourceTypePredicate.type, targetTypePredicate.type); + return; + } + } + const targetReturnType = getReturnTypeOfSignature(target); + if (couldContainTypeVariables(targetReturnType)) { + callback(getReturnTypeOfSignature(source), targetReturnType); + } + } + function createInferenceContext(typeParameters, signature, flags, compareTypes) { + return createInferenceContextWorker(typeParameters.map(createInferenceInfo), signature, flags, compareTypes || compareTypesAssignable); + } + function cloneInferenceContext(context, extraFlags = 0) { + return context && createInferenceContextWorker(map(context.inferences, cloneInferenceInfo), context.signature, context.flags | extraFlags, context.compareTypes); + } + function createInferenceContextWorker(inferences, signature, flags, compareTypes) { + const context = { + inferences, + signature, + flags, + compareTypes, + mapper: reportUnmeasurableMapper, + // initialize to a noop mapper so the context object is available, but the underlying object shape is right upon construction + nonFixingMapper: reportUnmeasurableMapper + }; + context.mapper = makeFixingMapperForContext(context); + context.nonFixingMapper = makeNonFixingMapperForContext(context); + return context; + } + function makeFixingMapperForContext(context) { + return makeDeferredTypeMapper( + map(context.inferences, (i) => i.typeParameter), + map(context.inferences, (inference, i) => () => { + if (!inference.isFixed) { + inferFromIntraExpressionSites(context); + clearCachedInferences(context.inferences); + inference.isFixed = true; + } + return getInferredType(context, i); + }) + ); + } + function makeNonFixingMapperForContext(context) { + return makeDeferredTypeMapper( + map(context.inferences, (i) => i.typeParameter), + map(context.inferences, (_, i) => () => { + return getInferredType(context, i); + }) + ); + } + function clearCachedInferences(inferences) { + for (const inference of inferences) { + if (!inference.isFixed) { + inference.inferredType = void 0; + } + } + } + function addIntraExpressionInferenceSite(context, node, type) { + (context.intraExpressionInferenceSites ?? (context.intraExpressionInferenceSites = [])).push({ node, type }); + } + function inferFromIntraExpressionSites(context) { + if (context.intraExpressionInferenceSites) { + for (const { node, type } of context.intraExpressionInferenceSites) { + const contextualType = node.kind === 174 /* MethodDeclaration */ ? getContextualTypeForObjectLiteralMethod(node, 2 /* NoConstraints */) : getContextualType(node, 2 /* NoConstraints */); + if (contextualType) { + inferTypes(context.inferences, type, contextualType); + } + } + context.intraExpressionInferenceSites = void 0; + } + } + function createInferenceInfo(typeParameter) { + return { + typeParameter, + candidates: void 0, + contraCandidates: void 0, + inferredType: void 0, + priority: void 0, + topLevel: true, + isFixed: false, + impliedArity: void 0 + }; + } + function cloneInferenceInfo(inference) { + return { + typeParameter: inference.typeParameter, + candidates: inference.candidates && inference.candidates.slice(), + contraCandidates: inference.contraCandidates && inference.contraCandidates.slice(), + inferredType: inference.inferredType, + priority: inference.priority, + topLevel: inference.topLevel, + isFixed: inference.isFixed, + impliedArity: inference.impliedArity + }; + } + function cloneInferredPartOfContext(context) { + const inferences = filter(context.inferences, hasInferenceCandidates); + return inferences.length ? createInferenceContextWorker(map(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) : void 0; + } + function getMapperFromContext(context) { + return context && context.mapper; + } + function couldContainTypeVariables(type) { + const objectFlags = getObjectFlags(type); + if (objectFlags & 524288 /* CouldContainTypeVariablesComputed */) { + return !!(objectFlags & 1048576 /* CouldContainTypeVariables */); + } + const result = !!(type.flags & 465829888 /* Instantiable */ || type.flags & 524288 /* Object */ && !isNonGenericTopLevelType(type) && (objectFlags & 4 /* Reference */ && (type.node || some(getTypeArguments(type), couldContainTypeVariables)) || objectFlags & 134217728 /* SingleSignatureType */ && !!length(type.outerTypeParameters) || objectFlags & 16 /* Anonymous */ && type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && type.symbol.declarations || objectFlags & (32 /* Mapped */ | 1024 /* ReverseMapped */ | 4194304 /* ObjectRestType */ | 8388608 /* InstantiationExpressionType */)) || type.flags & 3145728 /* UnionOrIntersection */ && !(type.flags & 1024 /* EnumLiteral */) && !isNonGenericTopLevelType(type) && some(type.types, couldContainTypeVariables)); + if (type.flags & 3899393 /* ObjectFlagsType */) { + type.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (result ? 1048576 /* CouldContainTypeVariables */ : 0); + } + return result; + } + function isNonGenericTopLevelType(type) { + if (type.aliasSymbol && !type.aliasTypeArguments) { + const declaration = getDeclarationOfKind(type.aliasSymbol, 265 /* TypeAliasDeclaration */); + return !!(declaration && findAncestor(declaration.parent, (n) => n.kind === 307 /* SourceFile */ ? true : n.kind === 267 /* ModuleDeclaration */ ? false : "quit")); + } + return false; + } + function isTypeParameterAtTopLevel(type, tp, depth = 0) { + return !!(type === tp || type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, (t) => isTypeParameterAtTopLevel(t, tp, depth)) || depth < 3 && type.flags & 16777216 /* Conditional */ && (isTypeParameterAtTopLevel(getTrueTypeFromConditionalType(type), tp, depth + 1) || isTypeParameterAtTopLevel(getFalseTypeFromConditionalType(type), tp, depth + 1))); + } + function isTypeParameterAtTopLevelInReturnType(signature, typeParameter) { + const typePredicate = getTypePredicateOfSignature(signature); + return typePredicate ? !!typePredicate.type && isTypeParameterAtTopLevel(typePredicate.type, typeParameter) : isTypeParameterAtTopLevel(getReturnTypeOfSignature(signature), typeParameter); + } + function createEmptyObjectTypeFromStringLiteral(type) { + const members = createSymbolTable(); + forEachType(type, (t) => { + if (!(t.flags & 128 /* StringLiteral */)) { + return; + } + const name = escapeLeadingUnderscores(t.value); + const literalProp = createSymbol(4 /* Property */, name); + literalProp.links.type = anyType; + if (t.symbol) { + literalProp.declarations = t.symbol.declarations; + literalProp.valueDeclaration = t.symbol.valueDeclaration; + } + members.set(name, literalProp); + }); + const indexInfos = type.flags & 4 /* String */ ? [createIndexInfo( + stringType, + emptyObjectType, + /*isReadonly*/ + false + )] : emptyArray; + return createAnonymousType( + /*symbol*/ + void 0, + members, + emptyArray, + emptyArray, + indexInfos + ); + } + function inferTypeForHomomorphicMappedType(source, target, constraint) { + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseHomomorphicMappedCache.has(cacheKey)) { + return reverseHomomorphicMappedCache.get(cacheKey); + } + const type = createReverseMappedType(source, target, constraint); + reverseHomomorphicMappedCache.set(cacheKey, type); + return type; + } + function isPartiallyInferableType(type) { + return !(getObjectFlags(type) & 262144 /* NonInferrableType */) || isObjectLiteralType(type) && some(getPropertiesOfType(type), (prop) => isPartiallyInferableType(getTypeOfSymbol(prop))) || isTupleType(type) && some(getElementTypes(type), isPartiallyInferableType); + } + function createReverseMappedType(source, target, constraint) { + if (!(getIndexInfoOfType(source, stringType) || getPropertiesOfType(source).length !== 0 && isPartiallyInferableType(source))) { + return void 0; + } + if (isArrayType(source)) { + const elementType = inferReverseMappedType(getTypeArguments(source)[0], target, constraint); + if (!elementType) { + return void 0; + } + return createArrayType(elementType, isReadonlyArrayType(source)); + } + if (isTupleType(source)) { + const elementTypes = map(getElementTypes(source), (t) => inferReverseMappedType(t, target, constraint)); + if (!every(elementTypes, (t) => !!t)) { + return void 0; + } + const elementFlags = getMappedTypeModifiers(target) & 4 /* IncludeOptional */ ? sameMap(source.target.elementFlags, (f) => f & 2 /* Optional */ ? 1 /* Required */ : f) : source.target.elementFlags; + return createTupleType(elementTypes, elementFlags, source.target.readonly, source.target.labeledElementDeclarations); + } + const reversed = createObjectType( + 1024 /* ReverseMapped */ | 16 /* Anonymous */, + /*symbol*/ + void 0 + ); + reversed.source = source; + reversed.mappedType = target; + reversed.constraintType = constraint; + return reversed; + } + function getTypeOfReverseMappedSymbol(symbol) { + const links = getSymbolLinks(symbol); + if (!links.type) { + links.type = inferReverseMappedType(symbol.links.propertyType, symbol.links.mappedType, symbol.links.constraintType) || unknownType; + } + return links.type; + } + function inferReverseMappedTypeWorker(sourceType, target, constraint) { + const typeParameter = getIndexedAccessType(constraint.type, getTypeParameterFromMappedType(target)); + const templateType = getTemplateTypeFromMappedType(target); + const inference = createInferenceInfo(typeParameter); + inferTypes([inference], sourceType, templateType); + return getTypeFromInference(inference) || unknownType; + } + function inferReverseMappedType(source, target, constraint) { + const cacheKey = source.id + "," + target.id + "," + constraint.id; + if (reverseMappedCache.has(cacheKey)) { + return reverseMappedCache.get(cacheKey) || unknownType; + } + reverseMappedSourceStack.push(source); + reverseMappedTargetStack.push(target); + const saveExpandingFlags = reverseExpandingFlags; + if (isDeeplyNestedType(source, reverseMappedSourceStack, reverseMappedSourceStack.length, 2)) reverseExpandingFlags |= 1 /* Source */; + if (isDeeplyNestedType(target, reverseMappedTargetStack, reverseMappedTargetStack.length, 2)) reverseExpandingFlags |= 2 /* Target */; + let type; + if (reverseExpandingFlags !== 3 /* Both */) { + type = inferReverseMappedTypeWorker(source, target, constraint); + } + reverseMappedSourceStack.pop(); + reverseMappedTargetStack.pop(); + reverseExpandingFlags = saveExpandingFlags; + reverseMappedCache.set(cacheKey, type); + return type; + } + function* getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties) { + const properties = getPropertiesOfType(target); + for (const targetProp of properties) { + if (isStaticPrivateIdentifierProperty(targetProp)) { + continue; + } + if (requireOptionalProperties || !(targetProp.flags & 16777216 /* Optional */ || getCheckFlags(targetProp) & 48 /* Partial */)) { + const sourceProp = getPropertyOfType(source, targetProp.escapedName); + if (!sourceProp) { + yield targetProp; + } else if (matchDiscriminantProperties) { + const targetType = getTypeOfSymbol(targetProp); + if (targetType.flags & 109472 /* Unit */) { + const sourceType = getTypeOfSymbol(sourceProp); + if (!(sourceType.flags & 1 /* Any */ || getRegularTypeOfLiteralType(sourceType) === getRegularTypeOfLiteralType(targetType))) { + yield targetProp; + } + } + } + } + } + } + function getUnmatchedProperty(source, target, requireOptionalProperties, matchDiscriminantProperties) { + return firstOrUndefinedIterator(getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties)); + } + function tupleTypesDefinitelyUnrelated(source, target) { + return !(target.target.combinedFlags & 8 /* Variadic */) && target.target.minLength > source.target.minLength || !target.target.hasRestElement && (source.target.hasRestElement || target.target.fixedLength < source.target.fixedLength); + } + function typesDefinitelyUnrelated(source, target) { + return isTupleType(source) && isTupleType(target) ? tupleTypesDefinitelyUnrelated(source, target) : !!getUnmatchedProperty( + source, + target, + /*requireOptionalProperties*/ + false, + /*matchDiscriminantProperties*/ + true + ) && !!getUnmatchedProperty( + target, + source, + /*requireOptionalProperties*/ + false, + /*matchDiscriminantProperties*/ + false + ); + } + function getTypeFromInference(inference) { + return inference.candidates ? getUnionType(inference.candidates, 2 /* Subtype */) : inference.contraCandidates ? getIntersectionType(inference.contraCandidates) : void 0; + } + function hasSkipDirectInferenceFlag(node) { + return !!getNodeLinks(node).skipDirectInference; + } + function isFromInferenceBlockedSource(type) { + return !!(type.symbol && some(type.symbol.declarations, hasSkipDirectInferenceFlag)); + } + function templateLiteralTypesDefinitelyUnrelated(source, target) { + const sourceStart = source.texts[0]; + const targetStart = target.texts[0]; + const sourceEnd = source.texts[source.texts.length - 1]; + const targetEnd = target.texts[target.texts.length - 1]; + const startLen = Math.min(sourceStart.length, targetStart.length); + const endLen = Math.min(sourceEnd.length, targetEnd.length); + return sourceStart.slice(0, startLen) !== targetStart.slice(0, startLen) || sourceEnd.slice(sourceEnd.length - endLen) !== targetEnd.slice(targetEnd.length - endLen); + } + function isValidNumberString(s, roundTripOnly) { + if (s === "") return false; + const n = +s; + return isFinite(n) && (!roundTripOnly || "" + n === s); + } + function parseBigIntLiteralType(text) { + return getBigIntLiteralType(parseValidBigInt(text)); + } + function isMemberOfStringMapping(source, target) { + if (target.flags & 1 /* Any */) { + return true; + } + if (target.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) { + return isTypeAssignableTo(source, target); + } + if (target.flags & 268435456 /* StringMapping */) { + const mappingStack = []; + while (target.flags & 268435456 /* StringMapping */) { + mappingStack.unshift(target.symbol); + target = target.type; + } + const mappedSource = reduceLeft(mappingStack, (memo, value) => getStringMappingType(value, memo), source); + return mappedSource === source && isMemberOfStringMapping(source, target); + } + return false; + } + function isValidTypeForTemplateLiteralPlaceholder(source, target) { + if (target.flags & 2097152 /* Intersection */) { + return every(target.types, (t) => t === emptyTypeLiteralType || isValidTypeForTemplateLiteralPlaceholder(source, t)); + } + if (target.flags & 4 /* String */ || isTypeAssignableTo(source, target)) { + return true; + } + if (source.flags & 128 /* StringLiteral */) { + const value = source.value; + return !!(target.flags & 8 /* Number */ && isValidNumberString( + value, + /*roundTripOnly*/ + false + ) || target.flags & 64 /* BigInt */ && isValidBigIntString( + value, + /*roundTripOnly*/ + false + ) || target.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) && value === target.intrinsicName || target.flags & 268435456 /* StringMapping */ && isMemberOfStringMapping(getStringLiteralType(value), target) || target.flags & 134217728 /* TemplateLiteral */ && isTypeMatchedByTemplateLiteralType(source, target)); + } + if (source.flags & 134217728 /* TemplateLiteral */) { + const texts = source.texts; + return texts.length === 2 && texts[0] === "" && texts[1] === "" && isTypeAssignableTo(source.types[0], target); + } + return false; + } + function inferTypesFromTemplateLiteralType(source, target) { + return source.flags & 128 /* StringLiteral */ ? inferFromLiteralPartsToTemplateLiteral([source.value], emptyArray, target) : source.flags & 134217728 /* TemplateLiteral */ ? arraysEqual(source.texts, target.texts) ? map(source.types, (s, i) => { + return isTypeAssignableTo(getBaseConstraintOrType(s), getBaseConstraintOrType(target.types[i])) ? s : getStringLikeTypeForType(s); + }) : inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) : void 0; + } + function isTypeMatchedByTemplateLiteralType(source, target) { + const inferences = inferTypesFromTemplateLiteralType(source, target); + return !!inferences && every(inferences, (r, i) => isValidTypeForTemplateLiteralPlaceholder(r, target.types[i])); + } + function getStringLikeTypeForType(type) { + return type.flags & (1 /* Any */ | 402653316 /* StringLike */) ? type : getTemplateLiteralType(["", ""], [type]); + } + function inferFromLiteralPartsToTemplateLiteral(sourceTexts, sourceTypes, target) { + const lastSourceIndex = sourceTexts.length - 1; + const sourceStartText = sourceTexts[0]; + const sourceEndText = sourceTexts[lastSourceIndex]; + const targetTexts = target.texts; + const lastTargetIndex = targetTexts.length - 1; + const targetStartText = targetTexts[0]; + const targetEndText = targetTexts[lastTargetIndex]; + if (lastSourceIndex === 0 && sourceStartText.length < targetStartText.length + targetEndText.length || !sourceStartText.startsWith(targetStartText) || !sourceEndText.endsWith(targetEndText)) return void 0; + const remainingEndText = sourceEndText.slice(0, sourceEndText.length - targetEndText.length); + const matches = []; + let seg = 0; + let pos = targetStartText.length; + for (let i = 1; i < lastTargetIndex; i++) { + const delim = targetTexts[i]; + if (delim.length > 0) { + let s = seg; + let p = pos; + while (true) { + p = getSourceText(s).indexOf(delim, p); + if (p >= 0) break; + s++; + if (s === sourceTexts.length) return void 0; + p = 0; + } + addMatch(s, p); + pos += delim.length; + } else if (pos < getSourceText(seg).length) { + addMatch(seg, pos + 1); + } else if (seg < lastSourceIndex) { + addMatch(seg + 1, 0); + } else { + return void 0; + } + } + addMatch(lastSourceIndex, getSourceText(lastSourceIndex).length); + return matches; + function getSourceText(index) { + return index < lastSourceIndex ? sourceTexts[index] : remainingEndText; + } + function addMatch(s, p) { + const matchType = s === seg ? getStringLiteralType(getSourceText(s).slice(pos, p)) : getTemplateLiteralType( + [sourceTexts[seg].slice(pos), ...sourceTexts.slice(seg + 1, s), getSourceText(s).slice(0, p)], + sourceTypes.slice(seg, s) + ); + matches.push(matchType); + seg = s; + pos = p; + } + } + function isTupleOfSelf(typeParameter, type) { + return isTupleType(type) && getTupleElementType(type, 0) === getIndexedAccessType(typeParameter, getNumberLiteralType(0)) && !getTypeOfPropertyOfType(type, "1"); + } + function inferTypes(inferences, originalSource, originalTarget, priority = 0 /* None */, contravariant = false) { + let bivariant = false; + let propagationType; + let inferencePriority = 2048 /* MaxValue */; + let visited; + let sourceStack; + let targetStack; + let expandingFlags = 0 /* None */; + inferFromTypes(originalSource, originalTarget); + function inferFromTypes(source, target) { + if (!couldContainTypeVariables(target) || isNoInferType(target)) { + return; + } + if (source === wildcardType || source === blockedStringType) { + const savePropagationType = propagationType; + propagationType = source; + inferFromTypes(target, target); + propagationType = savePropagationType; + return; + } + if (source.aliasSymbol && source.aliasSymbol === target.aliasSymbol) { + if (source.aliasTypeArguments) { + const params = getSymbolLinks(source.aliasSymbol).typeParameters; + const minParams = getMinTypeArgumentCount(params); + const sourceTypes = fillMissingTypeArguments(source.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration)); + const targetTypes = fillMissingTypeArguments(target.aliasTypeArguments, params, minParams, isInJSFile(source.aliasSymbol.valueDeclaration)); + inferFromTypeArguments(sourceTypes, targetTypes, getAliasVariances(source.aliasSymbol)); + } + return; + } + if (source === target && source.flags & 3145728 /* UnionOrIntersection */) { + for (const t of source.types) { + inferFromTypes(t, t); + } + return; + } + if (target.flags & 1048576 /* Union */) { + const [tempSources, tempTargets] = inferFromMatchingTypes(source.flags & 1048576 /* Union */ ? source.types : [source], target.types, isTypeOrBaseIdenticalTo); + const [sources, targets] = inferFromMatchingTypes(tempSources, tempTargets, isTypeCloselyMatchedBy); + if (targets.length === 0) { + return; + } + target = getUnionType(targets); + if (sources.length === 0) { + inferWithPriority(source, target, 1 /* NakedTypeVariable */); + return; + } + source = getUnionType(sources); + } else if (target.flags & 2097152 /* Intersection */ && !every(target.types, isNonGenericObjectType)) { + if (!(source.flags & 1048576 /* Union */)) { + const [sources, targets] = inferFromMatchingTypes(source.flags & 2097152 /* Intersection */ ? source.types : [source], target.types, isTypeIdenticalTo); + if (sources.length === 0 || targets.length === 0) { + return; + } + source = getIntersectionType(sources); + target = getIntersectionType(targets); + } + } + if (target.flags & (8388608 /* IndexedAccess */ | 33554432 /* Substitution */)) { + if (isNoInferType(target)) { + return; + } + target = getActualTypeVariable(target); + } + if (target.flags & 8650752 /* TypeVariable */) { + if (isFromInferenceBlockedSource(source)) { + return; + } + const inference = getInferenceInfoForType(target); + if (inference) { + if (getObjectFlags(source) & 262144 /* NonInferrableType */ || source === nonInferrableAnyType) { + return; + } + if (!inference.isFixed) { + const candidate = propagationType || source; + if (candidate === blockedStringType) { + return; + } + if (inference.priority === void 0 || priority < inference.priority) { + inference.candidates = void 0; + inference.contraCandidates = void 0; + inference.topLevel = true; + inference.priority = priority; + } + if (priority === inference.priority) { + if (isTupleOfSelf(inference.typeParameter, candidate)) { + return; + } + if (contravariant && !bivariant) { + if (!contains(inference.contraCandidates, candidate)) { + inference.contraCandidates = append(inference.contraCandidates, candidate); + clearCachedInferences(inferences); + } + } else if (!contains(inference.candidates, candidate)) { + inference.candidates = append(inference.candidates, candidate); + clearCachedInferences(inferences); + } + } + if (!(priority & 128 /* ReturnType */) && target.flags & 262144 /* TypeParameter */ && inference.topLevel && !isTypeParameterAtTopLevel(originalTarget, target)) { + inference.topLevel = false; + clearCachedInferences(inferences); + } + } + inferencePriority = Math.min(inferencePriority, priority); + return; + } + const simplified = getSimplifiedType( + target, + /*writing*/ + false + ); + if (simplified !== target) { + inferFromTypes(source, simplified); + } else if (target.flags & 8388608 /* IndexedAccess */) { + const indexType = getSimplifiedType( + target.indexType, + /*writing*/ + false + ); + if (indexType.flags & 465829888 /* Instantiable */) { + const simplified2 = distributeIndexOverObjectType( + getSimplifiedType( + target.objectType, + /*writing*/ + false + ), + indexType, + /*writing*/ + false + ); + if (simplified2 && simplified2 !== target) { + inferFromTypes(source, simplified2); + } + } + } + } + if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target)) && !(source.node && target.node)) { + inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target)); + } else if (source.flags & 4194304 /* Index */ && target.flags & 4194304 /* Index */) { + inferFromContravariantTypes(source.type, target.type); + } else if ((isLiteralType(source) || source.flags & 4 /* String */) && target.flags & 4194304 /* Index */) { + const empty = createEmptyObjectTypeFromStringLiteral(source); + inferFromContravariantTypesWithPriority(empty, target.type, 256 /* LiteralKeyof */); + } else if (source.flags & 8388608 /* IndexedAccess */ && target.flags & 8388608 /* IndexedAccess */) { + inferFromTypes(source.objectType, target.objectType); + inferFromTypes(source.indexType, target.indexType); + } else if (source.flags & 268435456 /* StringMapping */ && target.flags & 268435456 /* StringMapping */) { + if (source.symbol === target.symbol) { + inferFromTypes(source.type, target.type); + } + } else if (source.flags & 33554432 /* Substitution */) { + inferFromTypes(source.baseType, target); + inferWithPriority(getSubstitutionIntersection(source), target, 4 /* SubstituteSource */); + } else if (target.flags & 16777216 /* Conditional */) { + invokeOnce(source, target, inferToConditionalType); + } else if (target.flags & 3145728 /* UnionOrIntersection */) { + inferToMultipleTypes(source, target.types, target.flags); + } else if (source.flags & 1048576 /* Union */) { + const sourceTypes = source.types; + for (const sourceType of sourceTypes) { + inferFromTypes(sourceType, target); + } + } else if (target.flags & 134217728 /* TemplateLiteral */) { + inferToTemplateLiteralType(source, target); + } else { + source = getReducedType(source); + if (isGenericMappedType(source) && isGenericMappedType(target)) { + invokeOnce(source, target, inferFromGenericMappedTypes); + } + if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) { + const apparentSource = getApparentType(source); + if (apparentSource !== source && !(apparentSource.flags & (524288 /* Object */ | 2097152 /* Intersection */))) { + return inferFromTypes(apparentSource, target); + } + source = apparentSource; + } + if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */)) { + invokeOnce(source, target, inferFromObjectTypes); + } + } + } + function inferWithPriority(source, target, newPriority) { + const savePriority = priority; + priority |= newPriority; + inferFromTypes(source, target); + priority = savePriority; + } + function inferFromContravariantTypesWithPriority(source, target, newPriority) { + const savePriority = priority; + priority |= newPriority; + inferFromContravariantTypes(source, target); + priority = savePriority; + } + function inferToMultipleTypesWithPriority(source, targets, targetFlags, newPriority) { + const savePriority = priority; + priority |= newPriority; + inferToMultipleTypes(source, targets, targetFlags); + priority = savePriority; + } + function invokeOnce(source, target, action) { + const key = source.id + "," + target.id; + const status = visited && visited.get(key); + if (status !== void 0) { + inferencePriority = Math.min(inferencePriority, status); + return; + } + (visited || (visited = /* @__PURE__ */ new Map())).set(key, -1 /* Circularity */); + const saveInferencePriority = inferencePriority; + inferencePriority = 2048 /* MaxValue */; + const saveExpandingFlags = expandingFlags; + (sourceStack ?? (sourceStack = [])).push(source); + (targetStack ?? (targetStack = [])).push(target); + if (isDeeplyNestedType(source, sourceStack, sourceStack.length, 2)) expandingFlags |= 1 /* Source */; + if (isDeeplyNestedType(target, targetStack, targetStack.length, 2)) expandingFlags |= 2 /* Target */; + if (expandingFlags !== 3 /* Both */) { + action(source, target); + } else { + inferencePriority = -1 /* Circularity */; + } + targetStack.pop(); + sourceStack.pop(); + expandingFlags = saveExpandingFlags; + visited.set(key, inferencePriority); + inferencePriority = Math.min(inferencePriority, saveInferencePriority); + } + function inferFromMatchingTypes(sources, targets, matches) { + let matchedSources; + let matchedTargets; + for (const t of targets) { + for (const s of sources) { + if (matches(s, t)) { + inferFromTypes(s, t); + matchedSources = appendIfUnique(matchedSources, s); + matchedTargets = appendIfUnique(matchedTargets, t); + } + } + } + return [ + matchedSources ? filter(sources, (t) => !contains(matchedSources, t)) : sources, + matchedTargets ? filter(targets, (t) => !contains(matchedTargets, t)) : targets + ]; + } + function inferFromTypeArguments(sourceTypes, targetTypes, variances) { + const count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length; + for (let i = 0; i < count; i++) { + if (i < variances.length && (variances[i] & 7 /* VarianceMask */) === 2 /* Contravariant */) { + inferFromContravariantTypes(sourceTypes[i], targetTypes[i]); + } else { + inferFromTypes(sourceTypes[i], targetTypes[i]); + } + } + } + function inferFromContravariantTypes(source, target) { + contravariant = !contravariant; + inferFromTypes(source, target); + contravariant = !contravariant; + } + function inferFromContravariantTypesIfStrictFunctionTypes(source, target) { + if (strictFunctionTypes || priority & 1024 /* AlwaysStrict */) { + inferFromContravariantTypes(source, target); + } else { + inferFromTypes(source, target); + } + } + function getInferenceInfoForType(type) { + if (type.flags & 8650752 /* TypeVariable */) { + for (const inference of inferences) { + if (type === inference.typeParameter) { + return inference; + } + } + } + return void 0; + } + function getSingleTypeVariableFromIntersectionTypes(types) { + let typeVariable; + for (const type of types) { + const t = type.flags & 2097152 /* Intersection */ && find(type.types, (t2) => !!getInferenceInfoForType(t2)); + if (!t || typeVariable && t !== typeVariable) { + return void 0; + } + typeVariable = t; + } + return typeVariable; + } + function inferToMultipleTypes(source, targets, targetFlags) { + let typeVariableCount = 0; + if (targetFlags & 1048576 /* Union */) { + let nakedTypeVariable; + const sources = source.flags & 1048576 /* Union */ ? source.types : [source]; + const matched = new Array(sources.length); + let inferenceCircularity = false; + for (const t of targets) { + if (getInferenceInfoForType(t)) { + nakedTypeVariable = t; + typeVariableCount++; + } else { + for (let i = 0; i < sources.length; i++) { + const saveInferencePriority = inferencePriority; + inferencePriority = 2048 /* MaxValue */; + inferFromTypes(sources[i], t); + if (inferencePriority === priority) matched[i] = true; + inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */; + inferencePriority = Math.min(inferencePriority, saveInferencePriority); + } + } + } + if (typeVariableCount === 0) { + const intersectionTypeVariable = getSingleTypeVariableFromIntersectionTypes(targets); + if (intersectionTypeVariable) { + inferWithPriority(source, intersectionTypeVariable, 1 /* NakedTypeVariable */); + } + return; + } + if (typeVariableCount === 1 && !inferenceCircularity) { + const unmatched = flatMap(sources, (s, i) => matched[i] ? void 0 : s); + if (unmatched.length) { + inferFromTypes(getUnionType(unmatched), nakedTypeVariable); + return; + } + } + } else { + for (const t of targets) { + if (getInferenceInfoForType(t)) { + typeVariableCount++; + } else { + inferFromTypes(source, t); + } + } + } + if (targetFlags & 2097152 /* Intersection */ ? typeVariableCount === 1 : typeVariableCount > 0) { + for (const t of targets) { + if (getInferenceInfoForType(t)) { + inferWithPriority(source, t, 1 /* NakedTypeVariable */); + } + } + } + } + function inferToMappedType(source, target, constraintType) { + if (constraintType.flags & 1048576 /* Union */ || constraintType.flags & 2097152 /* Intersection */) { + let result = false; + for (const type of constraintType.types) { + result = inferToMappedType(source, target, type) || result; + } + return result; + } + if (constraintType.flags & 4194304 /* Index */) { + const inference = getInferenceInfoForType(constraintType.type); + if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) { + const inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType); + if (inferredType) { + inferWithPriority( + inferredType, + inference.typeParameter, + getObjectFlags(source) & 262144 /* NonInferrableType */ ? 16 /* PartialHomomorphicMappedType */ : 8 /* HomomorphicMappedType */ + ); + } + } + return true; + } + if (constraintType.flags & 262144 /* TypeParameter */) { + inferWithPriority(getIndexType( + source, + /*indexFlags*/ + !!source.pattern ? 2 /* NoIndexSignatures */ : 0 /* None */ + ), constraintType, 32 /* MappedTypeConstraint */); + const extendedConstraint = getConstraintOfType(constraintType); + if (extendedConstraint && inferToMappedType(source, target, extendedConstraint)) { + return true; + } + const propTypes = map(getPropertiesOfType(source), getTypeOfSymbol); + const indexTypes = map(getIndexInfosOfType(source), (info) => info !== enumNumberIndexInfo ? info.type : neverType); + inferFromTypes(getUnionType(concatenate(propTypes, indexTypes)), getTemplateTypeFromMappedType(target)); + return true; + } + return false; + } + function inferToConditionalType(source, target) { + if (source.flags & 16777216 /* Conditional */) { + inferFromTypes(source.checkType, target.checkType); + inferFromTypes(source.extendsType, target.extendsType); + inferFromTypes(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target)); + inferFromTypes(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target)); + } else { + const targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)]; + inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 /* ContravariantConditional */ : 0); + } + } + function inferToTemplateLiteralType(source, target) { + const matches = inferTypesFromTemplateLiteralType(source, target); + const types = target.types; + if (matches || every(target.texts, (s) => s.length === 0)) { + for (let i = 0; i < types.length; i++) { + const source2 = matches ? matches[i] : neverType; + const target2 = types[i]; + if (source2.flags & 128 /* StringLiteral */ && target2.flags & 8650752 /* TypeVariable */) { + const inferenceContext = getInferenceInfoForType(target2); + const constraint = inferenceContext ? getBaseConstraintOfType(inferenceContext.typeParameter) : void 0; + if (constraint && !isTypeAny(constraint)) { + const constraintTypes = constraint.flags & 1048576 /* Union */ ? constraint.types : [constraint]; + let allTypeFlags = reduceLeft(constraintTypes, (flags, t) => flags | t.flags, 0); + if (!(allTypeFlags & 4 /* String */)) { + const str = source2.value; + if (allTypeFlags & 296 /* NumberLike */ && !isValidNumberString( + str, + /*roundTripOnly*/ + true + )) { + allTypeFlags &= ~296 /* NumberLike */; + } + if (allTypeFlags & 2112 /* BigIntLike */ && !isValidBigIntString( + str, + /*roundTripOnly*/ + true + )) { + allTypeFlags &= ~2112 /* BigIntLike */; + } + const matchingType = reduceLeft(constraintTypes, (left, right) => !(right.flags & allTypeFlags) ? left : left.flags & 4 /* String */ ? left : right.flags & 4 /* String */ ? source2 : left.flags & 134217728 /* TemplateLiteral */ ? left : right.flags & 134217728 /* TemplateLiteral */ && isTypeMatchedByTemplateLiteralType(source2, right) ? source2 : left.flags & 268435456 /* StringMapping */ ? left : right.flags & 268435456 /* StringMapping */ && str === applyStringMapping(right.symbol, str) ? source2 : left.flags & 128 /* StringLiteral */ ? left : right.flags & 128 /* StringLiteral */ && right.value === str ? right : left.flags & 8 /* Number */ ? left : right.flags & 8 /* Number */ ? getNumberLiteralType(+str) : left.flags & 32 /* Enum */ ? left : right.flags & 32 /* Enum */ ? getNumberLiteralType(+str) : left.flags & 256 /* NumberLiteral */ ? left : right.flags & 256 /* NumberLiteral */ && right.value === +str ? right : left.flags & 64 /* BigInt */ ? left : right.flags & 64 /* BigInt */ ? parseBigIntLiteralType(str) : left.flags & 2048 /* BigIntLiteral */ ? left : right.flags & 2048 /* BigIntLiteral */ && pseudoBigIntToString(right.value) === str ? right : left.flags & 16 /* Boolean */ ? left : right.flags & 16 /* Boolean */ ? str === "true" ? trueType : str === "false" ? falseType : booleanType : left.flags & 512 /* BooleanLiteral */ ? left : right.flags & 512 /* BooleanLiteral */ && right.intrinsicName === str ? right : left.flags & 32768 /* Undefined */ ? left : right.flags & 32768 /* Undefined */ && right.intrinsicName === str ? right : left.flags & 65536 /* Null */ ? left : right.flags & 65536 /* Null */ && right.intrinsicName === str ? right : left, neverType); + if (!(matchingType.flags & 131072 /* Never */)) { + inferFromTypes(matchingType, target2); + continue; + } + } + } + } + inferFromTypes(source2, target2); + } + } + } + function inferFromGenericMappedTypes(source, target) { + inferFromTypes(getConstraintTypeFromMappedType(source), getConstraintTypeFromMappedType(target)); + inferFromTypes(getTemplateTypeFromMappedType(source), getTemplateTypeFromMappedType(target)); + const sourceNameType = getNameTypeFromMappedType(source); + const targetNameType = getNameTypeFromMappedType(target); + if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType); + } + function inferFromObjectTypes(source, target) { + var _a, _b; + if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) { + inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target)); + return; + } + if (isGenericMappedType(source) && isGenericMappedType(target)) { + inferFromGenericMappedTypes(source, target); + } + if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) { + const constraintType = getConstraintTypeFromMappedType(target); + if (inferToMappedType(source, target, constraintType)) { + return; + } + } + if (!typesDefinitelyUnrelated(source, target)) { + if (isArrayOrTupleType(source)) { + if (isTupleType(target)) { + const sourceArity = getTypeReferenceArity(source); + const targetArity = getTypeReferenceArity(target); + const elementTypes = getTypeArguments(target); + const elementFlags = target.target.elementFlags; + if (isTupleType(source) && isTupleTypeStructureMatching(source, target)) { + for (let i = 0; i < targetArity; i++) { + inferFromTypes(getTypeArguments(source)[i], elementTypes[i]); + } + return; + } + const startLength = isTupleType(source) ? Math.min(source.target.fixedLength, target.target.fixedLength) : 0; + const endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3 /* Fixed */) : 0, target.target.hasRestElement ? getEndElementCount(target.target, 3 /* Fixed */) : 0); + for (let i = 0; i < startLength; i++) { + inferFromTypes(getTypeArguments(source)[i], elementTypes[i]); + } + if (!isTupleType(source) || sourceArity - startLength - endLength === 1 && source.target.elementFlags[startLength] & 4 /* Rest */) { + const restType = getTypeArguments(source)[startLength]; + for (let i = startLength; i < targetArity - endLength; i++) { + inferFromTypes(elementFlags[i] & 8 /* Variadic */ ? createArrayType(restType) : restType, elementTypes[i]); + } + } else { + const middleLength = targetArity - startLength - endLength; + if (middleLength === 2) { + if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) { + const targetInfo = getInferenceInfoForType(elementTypes[startLength]); + if (targetInfo && targetInfo.impliedArity !== void 0) { + inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]); + inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]); + } + } else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) { + const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter; + const constraint = param && getBaseConstraintOfType(param); + if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) { + const impliedArity = constraint.target.fixedLength; + inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]); + inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]); + } + } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) { + const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter; + const constraint = param && getBaseConstraintOfType(param); + if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) { + const impliedArity = constraint.target.fixedLength; + const endIndex = sourceArity - getEndElementCount(target.target, 3 /* Fixed */); + const startIndex = endIndex - impliedArity; + const trailingSlice = createTupleType( + getTypeArguments(source).slice(startIndex, endIndex), + source.target.elementFlags.slice(startIndex, endIndex), + /*readonly*/ + false, + source.target.labeledElementDeclarations && source.target.labeledElementDeclarations.slice(startIndex, endIndex) + ); + inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength, endLength + impliedArity), elementTypes[startLength]); + inferFromTypes(trailingSlice, elementTypes[startLength + 1]); + } + } + } else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) { + const endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */; + const sourceSlice = sliceTupleType(source, startLength, endLength); + inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0); + } else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) { + const restType = getElementTypeOfSliceOfTupleType(source, startLength, endLength); + if (restType) { + inferFromTypes(restType, elementTypes[startLength]); + } + } + } + for (let i = 0; i < endLength; i++) { + inferFromTypes(getTypeArguments(source)[sourceArity - i - 1], elementTypes[targetArity - i - 1]); + } + return; + } + if (isArrayType(target)) { + inferFromIndexTypes(source, target); + return; + } + } + inferFromProperties(source, target); + inferFromSignatures(source, target, 0 /* Call */); + inferFromSignatures(source, target, 1 /* Construct */); + inferFromIndexTypes(source, target); + } + } + function inferFromProperties(source, target) { + const properties = getPropertiesOfObjectType(target); + for (const targetProp of properties) { + const sourceProp = getPropertyOfType(source, targetProp.escapedName); + if (sourceProp && !some(sourceProp.declarations, hasSkipDirectInferenceFlag)) { + inferFromTypes( + removeMissingType(getTypeOfSymbol(sourceProp), !!(sourceProp.flags & 16777216 /* Optional */)), + removeMissingType(getTypeOfSymbol(targetProp), !!(targetProp.flags & 16777216 /* Optional */)) + ); + } + } + } + function inferFromSignatures(source, target, kind) { + const sourceSignatures = getSignaturesOfType(source, kind); + const sourceLen = sourceSignatures.length; + if (sourceLen > 0) { + const targetSignatures = getSignaturesOfType(target, kind); + const targetLen = targetSignatures.length; + for (let i = 0; i < targetLen; i++) { + const sourceIndex = Math.max(sourceLen - targetLen + i, 0); + inferFromSignature(getBaseSignature(sourceSignatures[sourceIndex]), getErasedSignature(targetSignatures[i])); + } + } + } + function inferFromSignature(source, target) { + if (!(source.flags & 64 /* IsNonInferrable */)) { + const saveBivariant = bivariant; + const kind = target.declaration ? target.declaration.kind : 0 /* Unknown */; + bivariant = bivariant || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 176 /* Constructor */; + applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes); + bivariant = saveBivariant; + } + applyToReturnTypes(source, target, inferFromTypes); + } + function inferFromIndexTypes(source, target) { + const priority2 = getObjectFlags(source) & getObjectFlags(target) & 32 /* Mapped */ ? 8 /* HomomorphicMappedType */ : 0; + const indexInfos = getIndexInfosOfType(target); + if (isObjectTypeWithInferableIndex(source)) { + for (const targetInfo of indexInfos) { + const propTypes = []; + for (const prop of getPropertiesOfType(source)) { + if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), targetInfo.keyType)) { + const propType = getTypeOfSymbol(prop); + propTypes.push(prop.flags & 16777216 /* Optional */ ? removeMissingOrUndefinedType(propType) : propType); + } + } + for (const info of getIndexInfosOfType(source)) { + if (isApplicableIndexType(info.keyType, targetInfo.keyType)) { + propTypes.push(info.type); + } + } + if (propTypes.length) { + inferWithPriority(getUnionType(propTypes), targetInfo.type, priority2); + } + } + } + for (const targetInfo of indexInfos) { + const sourceInfo = getApplicableIndexInfo(source, targetInfo.keyType); + if (sourceInfo) { + inferWithPriority(sourceInfo.type, targetInfo.type, priority2); + } + } + } + } + function isTypeOrBaseIdenticalTo(s, t) { + return t === missingType ? s === t : isTypeIdenticalTo(s, t) || !!(t.flags & 4 /* String */ && s.flags & 128 /* StringLiteral */ || t.flags & 8 /* Number */ && s.flags & 256 /* NumberLiteral */); + } + function isTypeCloselyMatchedBy(s, t) { + return !!(s.flags & 524288 /* Object */ && t.flags & 524288 /* Object */ && s.symbol && s.symbol === t.symbol || s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol); + } + function hasPrimitiveConstraint(type) { + const constraint = getConstraintOfTypeParameter(type); + return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 /* Conditional */ ? getDefaultConstraintOfConditionalType(constraint) : constraint, 402784252 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */); + } + function isObjectLiteralType(type) { + return !!(getObjectFlags(type) & 128 /* ObjectLiteral */); + } + function isObjectOrArrayLiteralType(type) { + return !!(getObjectFlags(type) & (128 /* ObjectLiteral */ | 16384 /* ArrayLiteral */)); + } + function unionObjectAndArrayLiteralCandidates(candidates) { + if (candidates.length > 1) { + const objectLiterals = filter(candidates, isObjectOrArrayLiteralType); + if (objectLiterals.length) { + const literalsType = getUnionType(objectLiterals, 2 /* Subtype */); + return concatenate(filter(candidates, (t) => !isObjectOrArrayLiteralType(t)), [literalsType]); + } + } + return candidates; + } + function getContravariantInference(inference) { + return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates); + } + function getCovariantInference(inference, signature) { + const candidates = unionObjectAndArrayLiteralCandidates(inference.candidates); + const primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter) || isConstTypeVariable(inference.typeParameter); + const widenLiteralTypes = !primitiveConstraint && inference.topLevel && (inference.isFixed || !isTypeParameterAtTopLevelInReturnType(signature, inference.typeParameter)); + const baseCandidates = primitiveConstraint ? sameMap(candidates, getRegularTypeOfLiteralType) : widenLiteralTypes ? sameMap(candidates, getWidenedLiteralType) : candidates; + const unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ? getUnionType(baseCandidates, 2 /* Subtype */) : getCommonSupertype(baseCandidates); + return getWidenedType(unwidenedType); + } + function getInferredType(context, index) { + const inference = context.inferences[index]; + if (!inference.inferredType) { + let inferredType; + let fallbackType; + if (context.signature) { + const inferredCovariantType = inference.candidates ? getCovariantInference(inference, context.signature) : void 0; + const inferredContravariantType = inference.contraCandidates ? getContravariantInference(inference) : void 0; + if (inferredCovariantType || inferredContravariantType) { + const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & 131072 /* Never */) && some(inference.contraCandidates, (t) => isTypeSubtypeOf(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeSubtypeOf(t, inferredCovariantType)))); + inferredType = preferCovariantType ? inferredCovariantType : inferredContravariantType; + fallbackType = preferCovariantType ? inferredContravariantType : inferredCovariantType; + } else if (context.flags & 1 /* NoDefault */) { + inferredType = silentNeverType; + } else { + const defaultType = getDefaultFromTypeParameter(inference.typeParameter); + if (defaultType) { + inferredType = instantiateType(defaultType, mergeTypeMappers(createBackreferenceMapper(context, index), context.nonFixingMapper)); + } + } + } else { + inferredType = getTypeFromInference(inference); + } + inference.inferredType = inferredType || getDefaultTypeArgumentType(!!(context.flags & 2 /* AnyDefault */)); + const constraint = getConstraintOfTypeParameter(inference.typeParameter); + if (constraint) { + const instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper); + if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) { + inference.inferredType = fallbackType && context.compareTypes(fallbackType, getTypeWithThisArgument(instantiatedConstraint, fallbackType)) ? fallbackType : instantiatedConstraint; + } + } + } + return inference.inferredType; + } + function getDefaultTypeArgumentType(isInJavaScriptFile) { + return isInJavaScriptFile ? anyType : unknownType; + } + function getInferredTypes(context) { + const result = []; + for (let i = 0; i < context.inferences.length; i++) { + result.push(getInferredType(context, i)); + } + return result; + } + function getCannotFindNameDiagnosticForName(node) { + switch (node.escapedText) { + case "document": + case "console": + return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; + case "$": + return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; + case "describe": + case "suite": + case "it": + case "test": + return compilerOptions.types ? Diagnostics.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 : Diagnostics.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; + case "process": + case "require": + case "Buffer": + case "module": + return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; + case "Bun": + return compilerOptions.types ? Diagnostics.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 : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun; + case "Map": + case "Set": + case "Promise": + case "Symbol": + case "WeakMap": + case "WeakSet": + case "Iterator": + case "AsyncIterator": + case "SharedArrayBuffer": + case "Atomics": + case "AsyncIterable": + case "AsyncIterableIterator": + case "AsyncGenerator": + case "AsyncGeneratorFunction": + case "BigInt": + case "Reflect": + case "BigInt64Array": + case "BigUint64Array": + return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later; + case "await": + if (isCallExpression(node.parent)) { + return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; + } + default: + if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { + return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; + } else { + return Diagnostics.Cannot_find_name_0; + } + } + } + function getResolvedSymbol(node) { + const links = getNodeLinks(node); + if (!links.resolvedSymbol) { + links.resolvedSymbol = !nodeIsMissing(node) && resolveName( + node, + node, + 111551 /* Value */ | 1048576 /* ExportValue */, + getCannotFindNameDiagnosticForName(node), + !isWriteOnlyAccess(node), + /*excludeGlobals*/ + false + ) || unknownSymbol; + } + return links.resolvedSymbol; + } + function isInAmbientOrTypeNode(node) { + return !!(node.flags & 33554432 /* Ambient */ || findAncestor(node, (n) => isInterfaceDeclaration(n) || isTypeAliasDeclaration(n) || isTypeLiteralNode(n))); + } + function getFlowCacheKey(node, declaredType, initialType, flowContainer) { + switch (node.kind) { + case 80 /* Identifier */: + if (!isThisInTypeQuery(node)) { + const symbol = getResolvedSymbol(node); + return symbol !== unknownSymbol ? `${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}|${getSymbolId(symbol)}` : void 0; + } + case 110 /* ThisKeyword */: + return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); + case 166 /* QualifiedName */: + const left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer); + return left && `${left}.${node.right.escapedText}`; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + const propName = getAccessedPropertyName(node); + if (propName !== void 0) { + const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); + return key && `${key}.${propName}`; + } + if (isElementAccessExpression(node) && isIdentifier(node.argumentExpression)) { + const symbol = getResolvedSymbol(node.argumentExpression); + if (isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol)) { + const key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer); + return key && `${key}.@${getSymbolId(symbol)}`; + } + } + break; + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + return `${getNodeId(node)}#${getTypeId(declaredType)}`; + } + return void 0; + } + function isMatchingReference(source, target) { + switch (target.kind) { + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + return isMatchingReference(source, target.expression); + case 226 /* BinaryExpression */: + return isAssignmentExpression(target) && isMatchingReference(source, target.left) || isBinaryExpression(target) && target.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source, target.right); + } + switch (source.kind) { + case 236 /* MetaProperty */: + return target.kind === 236 /* MetaProperty */ && source.keywordToken === target.keywordToken && source.name.escapedText === target.name.escapedText; + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + return isThisInTypeQuery(source) ? target.kind === 110 /* ThisKeyword */ : target.kind === 80 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) || (isVariableDeclaration(target) || isBindingElement(target)) && getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfDeclaration(target); + case 110 /* ThisKeyword */: + return target.kind === 110 /* ThisKeyword */; + case 108 /* SuperKeyword */: + return target.kind === 108 /* SuperKeyword */; + case 235 /* NonNullExpression */: + case 217 /* ParenthesizedExpression */: + return isMatchingReference(source.expression, target); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + const sourcePropertyName = getAccessedPropertyName(source); + if (sourcePropertyName !== void 0) { + const targetPropertyName = isAccessExpression(target) ? getAccessedPropertyName(target) : void 0; + if (targetPropertyName !== void 0) { + return targetPropertyName === sourcePropertyName && isMatchingReference(source.expression, target.expression); + } + } + if (isElementAccessExpression(source) && isElementAccessExpression(target) && isIdentifier(source.argumentExpression) && isIdentifier(target.argumentExpression)) { + const symbol = getResolvedSymbol(source.argumentExpression); + if (symbol === getResolvedSymbol(target.argumentExpression) && (isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol))) { + return isMatchingReference(source.expression, target.expression); + } + } + break; + case 166 /* QualifiedName */: + return isAccessExpression(target) && source.right.escapedText === getAccessedPropertyName(target) && isMatchingReference(source.left, target.expression); + case 226 /* BinaryExpression */: + return isBinaryExpression(source) && source.operatorToken.kind === 28 /* CommaToken */ && isMatchingReference(source.right, target); + } + return false; + } + function getAccessedPropertyName(access) { + if (isPropertyAccessExpression(access)) { + return access.name.escapedText; + } + if (isElementAccessExpression(access)) { + return tryGetElementAccessExpressionName(access); + } + if (isBindingElement(access)) { + const name = getDestructuringPropertyName(access); + return name ? escapeLeadingUnderscores(name) : void 0; + } + if (isParameter(access)) { + return "" + access.parent.parameters.indexOf(access); + } + return void 0; + } + function tryGetNameFromType(type) { + return type.flags & 8192 /* UniqueESSymbol */ ? type.escapedName : type.flags & 384 /* StringOrNumberLiteral */ ? escapeLeadingUnderscores("" + type.value) : void 0; + } + function tryGetElementAccessExpressionName(node) { + return isStringOrNumericLiteralLike(node.argumentExpression) ? escapeLeadingUnderscores(node.argumentExpression.text) : isEntityNameExpression(node.argumentExpression) ? tryGetNameFromEntityNameExpression(node.argumentExpression) : void 0; + } + function tryGetNameFromEntityNameExpression(node) { + const symbol = resolveEntityName( + node, + 111551 /* Value */, + /*ignoreErrors*/ + true + ); + if (!symbol || !(isConstantVariable(symbol) || symbol.flags & 8 /* EnumMember */)) return void 0; + const declaration = symbol.valueDeclaration; + if (declaration === void 0) return void 0; + const type = tryGetTypeFromEffectiveTypeNode(declaration); + if (type) { + const name = tryGetNameFromType(type); + if (name !== void 0) { + return name; + } + } + if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) { + const initializer = getEffectiveInitializer(declaration); + if (initializer) { + const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer); + return initializerType && tryGetNameFromType(initializerType); + } + if (isEnumMember(declaration)) { + return getTextOfPropertyName(declaration.name); + } + } + return void 0; + } + function containsMatchingReference(source, target) { + while (isAccessExpression(source)) { + source = source.expression; + if (isMatchingReference(source, target)) { + return true; + } + } + return false; + } + function optionalChainContainsReference(source, target) { + while (isOptionalChain(source)) { + source = source.expression; + if (isMatchingReference(source, target)) { + return true; + } + } + return false; + } + function isDiscriminantProperty(type, name) { + if (type && type.flags & 1048576 /* Union */) { + const prop = getUnionOrIntersectionProperty(type, name); + if (prop && getCheckFlags(prop) & 2 /* SyntheticProperty */) { + if (prop.links.isDiscriminantProperty === void 0) { + prop.links.isDiscriminantProperty = (prop.links.checkFlags & 192 /* Discriminant */) === 192 /* Discriminant */ && !isGenericType(getTypeOfSymbol(prop)); + } + return !!prop.links.isDiscriminantProperty; + } + } + return false; + } + function findDiscriminantProperties(sourceProperties, target) { + let result; + for (const sourceProperty of sourceProperties) { + if (isDiscriminantProperty(target, sourceProperty.escapedName)) { + if (result) { + result.push(sourceProperty); + continue; + } + result = [sourceProperty]; + } + } + return result; + } + function mapTypesByKeyProperty(types, name) { + const map2 = /* @__PURE__ */ new Map(); + let count = 0; + for (const type of types) { + if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) { + const discriminant = getTypeOfPropertyOfType(type, name); + if (discriminant) { + if (!isLiteralType(discriminant)) { + return void 0; + } + let duplicate = false; + forEachType(discriminant, (t) => { + const id = getTypeId(getRegularTypeOfLiteralType(t)); + const existing = map2.get(id); + if (!existing) { + map2.set(id, type); + } else if (existing !== unknownType) { + map2.set(id, unknownType); + duplicate = true; + } + }); + if (!duplicate) count++; + } + } + } + return count >= 10 && count * 2 >= types.length ? map2 : void 0; + } + function getKeyPropertyName(unionType) { + const types = unionType.types; + if (types.length < 10 || getObjectFlags(unionType) & 32768 /* PrimitiveUnion */ || countWhere(types, (t) => !!(t.flags & (524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */))) < 10) { + return void 0; + } + if (unionType.keyPropertyName === void 0) { + const keyPropertyName = forEach(types, (t) => t.flags & (524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) ? forEach(getPropertiesOfType(t), (p) => isUnitType(getTypeOfSymbol(p)) ? p.escapedName : void 0) : void 0); + const mapByKeyProperty = keyPropertyName && mapTypesByKeyProperty(types, keyPropertyName); + unionType.keyPropertyName = mapByKeyProperty ? keyPropertyName : ""; + unionType.constituentMap = mapByKeyProperty; + } + return unionType.keyPropertyName.length ? unionType.keyPropertyName : void 0; + } + function getConstituentTypeForKeyType(unionType, keyType) { + var _a; + const result = (_a = unionType.constituentMap) == null ? void 0 : _a.get(getTypeId(getRegularTypeOfLiteralType(keyType))); + return result !== unknownType ? result : void 0; + } + function getMatchingUnionConstituentForType(unionType, type) { + const keyPropertyName = getKeyPropertyName(unionType); + const propType = keyPropertyName && getTypeOfPropertyOfType(type, keyPropertyName); + return propType && getConstituentTypeForKeyType(unionType, propType); + } + function getMatchingUnionConstituentForObjectLiteral(unionType, node) { + const keyPropertyName = getKeyPropertyName(unionType); + const propNode = keyPropertyName && find(node.properties, (p) => p.symbol && p.kind === 303 /* PropertyAssignment */ && p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer)); + const propType = propNode && getContextFreeTypeOfExpression(propNode.initializer); + return propType && getConstituentTypeForKeyType(unionType, propType); + } + function isOrContainsMatchingReference(source, target) { + return isMatchingReference(source, target) || containsMatchingReference(source, target); + } + function hasMatchingArgument(expression, reference) { + if (expression.arguments) { + for (const argument of expression.arguments) { + if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) { + return true; + } + } + } + if (expression.expression.kind === 211 /* PropertyAccessExpression */ && isOrContainsMatchingReference(reference, expression.expression.expression)) { + return true; + } + return false; + } + function getFlowNodeId(flow) { + if (flow.id <= 0) { + flow.id = nextFlowId; + nextFlowId++; + } + return flow.id; + } + function typeMaybeAssignableTo(source, target) { + if (!(source.flags & 1048576 /* Union */)) { + return isTypeAssignableTo(source, target); + } + for (const t of source.types) { + if (isTypeAssignableTo(t, target)) { + return true; + } + } + return false; + } + function getAssignmentReducedType(declaredType, assignedType) { + if (declaredType === assignedType) { + return declaredType; + } + if (assignedType.flags & 131072 /* Never */) { + return assignedType; + } + const key = `A${getTypeId(declaredType)},${getTypeId(assignedType)}`; + return getCachedType(key) ?? setCachedType(key, getAssignmentReducedTypeWorker(declaredType, assignedType)); + } + function getAssignmentReducedTypeWorker(declaredType, assignedType) { + const filteredType = filterType(declaredType, (t) => typeMaybeAssignableTo(assignedType, t)); + const reducedType = assignedType.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(assignedType) ? mapType(filteredType, getFreshTypeOfLiteralType) : filteredType; + return isTypeAssignableTo(assignedType, reducedType) ? reducedType : declaredType; + } + function isFunctionObjectType(type) { + const resolved = resolveStructuredTypeMembers(type); + return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType)); + } + function getTypeFacts(type, mask) { + return getTypeFactsWorker(type, mask) & mask; + } + function hasTypeFacts(type, mask) { + return getTypeFacts(type, mask) !== 0; + } + function getTypeFactsWorker(type, callerOnlyNeeds) { + if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) { + type = getBaseConstraintOfType(type) || unknownType; + } + const flags = type.flags; + if (flags & (4 /* String */ | 268435456 /* StringMapping */)) { + return strictNullChecks ? 16317953 /* StringStrictFacts */ : 16776705 /* StringFacts */; + } + if (flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */)) { + const isEmpty = flags & 128 /* StringLiteral */ && type.value === ""; + return strictNullChecks ? isEmpty ? 12123649 /* EmptyStringStrictFacts */ : 7929345 /* NonEmptyStringStrictFacts */ : isEmpty ? 12582401 /* EmptyStringFacts */ : 16776705 /* NonEmptyStringFacts */; + } + if (flags & (8 /* Number */ | 32 /* Enum */)) { + return strictNullChecks ? 16317698 /* NumberStrictFacts */ : 16776450 /* NumberFacts */; + } + if (flags & 256 /* NumberLiteral */) { + const isZero = type.value === 0; + return strictNullChecks ? isZero ? 12123394 /* ZeroNumberStrictFacts */ : 7929090 /* NonZeroNumberStrictFacts */ : isZero ? 12582146 /* ZeroNumberFacts */ : 16776450 /* NonZeroNumberFacts */; + } + if (flags & 64 /* BigInt */) { + return strictNullChecks ? 16317188 /* BigIntStrictFacts */ : 16775940 /* BigIntFacts */; + } + if (flags & 2048 /* BigIntLiteral */) { + const isZero = isZeroBigInt(type); + return strictNullChecks ? isZero ? 12122884 /* ZeroBigIntStrictFacts */ : 7928580 /* NonZeroBigIntStrictFacts */ : isZero ? 12581636 /* ZeroBigIntFacts */ : 16775940 /* NonZeroBigIntFacts */; + } + if (flags & 16 /* Boolean */) { + return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */; + } + if (flags & 528 /* BooleanLike */) { + return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */; + } + if (flags & 524288 /* Object */) { + const possibleFacts = strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ | 7880640 /* FunctionStrictFacts */ | 7888800 /* ObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ | 16728e3 /* FunctionFacts */ | 16736160 /* ObjectFacts */; + if ((callerOnlyNeeds & possibleFacts) === 0) { + return 0; + } + return getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ? strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ : isFunctionObjectType(type) ? strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728e3 /* FunctionFacts */ : strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */; + } + if (flags & 16384 /* Void */) { + return 9830144 /* VoidFacts */; + } + if (flags & 32768 /* Undefined */) { + return 26607360 /* UndefinedFacts */; + } + if (flags & 65536 /* Null */) { + return 42917664 /* NullFacts */; + } + if (flags & 12288 /* ESSymbolLike */) { + return strictNullChecks ? 7925520 /* SymbolStrictFacts */ : 16772880 /* SymbolFacts */; + } + if (flags & 67108864 /* NonPrimitive */) { + return strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */; + } + if (flags & 131072 /* Never */) { + return 0 /* None */; + } + if (flags & 1048576 /* Union */) { + return reduceLeft(type.types, (facts, t) => facts | getTypeFactsWorker(t, callerOnlyNeeds), 0 /* None */); + } + if (flags & 2097152 /* Intersection */) { + return getIntersectionTypeFacts(type, callerOnlyNeeds); + } + return 83886079 /* UnknownFacts */; + } + function getIntersectionTypeFacts(type, callerOnlyNeeds) { + const ignoreObjects = maybeTypeOfKind(type, 402784252 /* Primitive */); + let oredFacts = 0 /* None */; + let andedFacts = 134217727 /* All */; + for (const t of type.types) { + if (!(ignoreObjects && t.flags & 524288 /* Object */)) { + const f = getTypeFactsWorker(t, callerOnlyNeeds); + oredFacts |= f; + andedFacts &= f; + } + } + return oredFacts & 8256 /* OrFactsMask */ | andedFacts & 134209471 /* AndFactsMask */; + } + function getTypeWithFacts(type, include) { + return filterType(type, (t) => hasTypeFacts(t, include)); + } + function getAdjustedTypeWithFacts(type, facts) { + const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 /* Unknown */ ? unknownUnionType : type, facts)); + if (strictNullChecks) { + switch (facts) { + case 524288 /* NEUndefined */: + return removeNullableByIntersection(reduced, 65536 /* EQUndefined */, 131072 /* EQNull */, 33554432 /* IsNull */, nullType); + case 1048576 /* NENull */: + return removeNullableByIntersection(reduced, 131072 /* EQNull */, 65536 /* EQUndefined */, 16777216 /* IsUndefined */, undefinedType); + case 2097152 /* NEUndefinedOrNull */: + case 4194304 /* Truthy */: + return mapType(reduced, (t) => hasTypeFacts(t, 262144 /* EQUndefinedOrNull */) ? getGlobalNonNullableTypeInstantiation(t) : t); + } + } + return reduced; + } + function removeNullableByIntersection(type, targetFacts, otherFacts, otherIncludesFacts, otherType) { + const facts = getTypeFacts(type, 65536 /* EQUndefined */ | 131072 /* EQNull */ | 16777216 /* IsUndefined */ | 33554432 /* IsNull */); + if (!(facts & targetFacts)) { + return type; + } + const emptyAndOtherUnion = getUnionType([emptyObjectType, otherType]); + return mapType(type, (t) => hasTypeFacts(t, targetFacts) ? getIntersectionType([t, !(facts & otherIncludesFacts) && hasTypeFacts(t, otherFacts) ? emptyAndOtherUnion : emptyObjectType]) : t); + } + function recombineUnknownType(type) { + return type === unknownUnionType ? unknownType : type; + } + function getTypeWithDefault(type, defaultExpression) { + return defaultExpression ? getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) : type; + } + function getTypeOfDestructuredProperty(type, name) { + var _a; + const nameType = getLiteralTypeFromPropertyName(name); + if (!isTypeUsableAsPropertyName(nameType)) return errorType; + const text = getPropertyNameFromType(nameType); + return getTypeOfPropertyOfType(type, text) || includeUndefinedInIndexSignature((_a = getApplicableIndexInfoForName(type, text)) == null ? void 0 : _a.type) || errorType; + } + function getTypeOfDestructuredArrayElement(type, index) { + return everyType(type, isTupleLikeType) && getTupleElementType(type, index) || includeUndefinedInIndexSignature(checkIteratedTypeOrElementType( + 65 /* Destructuring */, + type, + undefinedType, + /*errorNode*/ + void 0 + )) || errorType; + } + function includeUndefinedInIndexSignature(type) { + if (!type) return type; + return compilerOptions.noUncheckedIndexedAccess ? getUnionType([type, missingType]) : type; + } + function getTypeOfDestructuredSpreadExpression(type) { + return createArrayType(checkIteratedTypeOrElementType( + 65 /* Destructuring */, + type, + undefinedType, + /*errorNode*/ + void 0 + ) || errorType); + } + function getAssignedTypeOfBinaryExpression(node) { + const isDestructuringDefaultAssignment = node.parent.kind === 209 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) || node.parent.kind === 303 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent); + return isDestructuringDefaultAssignment ? getTypeWithDefault(getAssignedType(node), node.right) : getTypeOfExpression(node.right); + } + function isDestructuringAssignmentTarget(parent) { + return parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.left === parent || parent.parent.kind === 250 /* ForOfStatement */ && parent.parent.initializer === parent; + } + function getAssignedTypeOfArrayLiteralElement(node, element) { + return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element)); + } + function getAssignedTypeOfSpreadExpression(node) { + return getTypeOfDestructuredSpreadExpression(getAssignedType(node.parent)); + } + function getAssignedTypeOfPropertyAssignment(node) { + return getTypeOfDestructuredProperty(getAssignedType(node.parent), node.name); + } + function getAssignedTypeOfShorthandPropertyAssignment(node) { + return getTypeWithDefault(getAssignedTypeOfPropertyAssignment(node), node.objectAssignmentInitializer); + } + function getAssignedType(node) { + const { parent } = node; + switch (parent.kind) { + case 249 /* ForInStatement */: + return stringType; + case 250 /* ForOfStatement */: + return checkRightHandSideOfForOf(parent) || errorType; + case 226 /* BinaryExpression */: + return getAssignedTypeOfBinaryExpression(parent); + case 220 /* DeleteExpression */: + return undefinedType; + case 209 /* ArrayLiteralExpression */: + return getAssignedTypeOfArrayLiteralElement(parent, node); + case 230 /* SpreadElement */: + return getAssignedTypeOfSpreadExpression(parent); + case 303 /* PropertyAssignment */: + return getAssignedTypeOfPropertyAssignment(parent); + case 304 /* ShorthandPropertyAssignment */: + return getAssignedTypeOfShorthandPropertyAssignment(parent); + } + return errorType; + } + function getInitialTypeOfBindingElement(node) { + const pattern = node.parent; + const parentType = getInitialType(pattern.parent); + const type = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) : !node.dotDotDotToken ? getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) : getTypeOfDestructuredSpreadExpression(parentType); + return getTypeWithDefault(type, node.initializer); + } + function getTypeOfInitializer(node) { + const links = getNodeLinks(node); + return links.resolvedType || getTypeOfExpression(node); + } + function getInitialTypeOfVariableDeclaration(node) { + if (node.initializer) { + return getTypeOfInitializer(node.initializer); + } + if (node.parent.parent.kind === 249 /* ForInStatement */) { + return stringType; + } + if (node.parent.parent.kind === 250 /* ForOfStatement */) { + return checkRightHandSideOfForOf(node.parent.parent) || errorType; + } + return errorType; + } + function getInitialType(node) { + return node.kind === 260 /* VariableDeclaration */ ? getInitialTypeOfVariableDeclaration(node) : getInitialTypeOfBindingElement(node); + } + function isEmptyArrayAssignment(node) { + return node.kind === 260 /* VariableDeclaration */ && node.initializer && isEmptyArrayLiteral2(node.initializer) || node.kind !== 208 /* BindingElement */ && node.parent.kind === 226 /* BinaryExpression */ && isEmptyArrayLiteral2(node.parent.right); + } + function getReferenceCandidate(node) { + switch (node.kind) { + case 217 /* ParenthesizedExpression */: + return getReferenceCandidate(node.expression); + case 226 /* BinaryExpression */: + switch (node.operatorToken.kind) { + case 64 /* EqualsToken */: + case 76 /* BarBarEqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return getReferenceCandidate(node.left); + case 28 /* CommaToken */: + return getReferenceCandidate(node.right); + } + } + return node; + } + function getReferenceRoot(node) { + const { parent } = node; + return parent.kind === 217 /* ParenthesizedExpression */ || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 64 /* EqualsToken */ && parent.left === node || parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 28 /* CommaToken */ && parent.right === node ? getReferenceRoot(parent) : node; + } + function getTypeOfSwitchClause(clause) { + if (clause.kind === 296 /* CaseClause */) { + return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression)); + } + return neverType; + } + function getSwitchClauseTypes(switchStatement) { + const links = getNodeLinks(switchStatement); + if (!links.switchTypes) { + links.switchTypes = []; + for (const clause of switchStatement.caseBlock.clauses) { + links.switchTypes.push(getTypeOfSwitchClause(clause)); + } + } + return links.switchTypes; + } + function getSwitchClauseTypeOfWitnesses(switchStatement) { + if (some(switchStatement.caseBlock.clauses, (clause) => clause.kind === 296 /* CaseClause */ && !isStringLiteralLike(clause.expression))) { + return void 0; + } + const witnesses = []; + for (const clause of switchStatement.caseBlock.clauses) { + const text = clause.kind === 296 /* CaseClause */ ? clause.expression.text : void 0; + witnesses.push(text && !contains(witnesses, text) ? text : void 0); + } + return witnesses; + } + function eachTypeContainedIn(source, types) { + return source.flags & 1048576 /* Union */ ? !forEach(source.types, (t) => !contains(types, t)) : contains(types, source); + } + function isTypeSubsetOf(source, target) { + return !!(source === target || source.flags & 131072 /* Never */ || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target)); + } + function isTypeSubsetOfUnion(source, target) { + if (source.flags & 1048576 /* Union */) { + for (const t of source.types) { + if (!containsType(target.types, t)) { + return false; + } + } + return true; + } + if (source.flags & 1056 /* EnumLike */ && getBaseTypeOfEnumLikeType(source) === target) { + return true; + } + return containsType(target.types, source); + } + function forEachType(type, f) { + return type.flags & 1048576 /* Union */ ? forEach(type.types, f) : f(type); + } + function someType(type, f) { + return type.flags & 1048576 /* Union */ ? some(type.types, f) : f(type); + } + function everyType(type, f) { + return type.flags & 1048576 /* Union */ ? every(type.types, f) : f(type); + } + function everyContainedType(type, f) { + return type.flags & 3145728 /* UnionOrIntersection */ ? every(type.types, f) : f(type); + } + function filterType(type, f) { + if (type.flags & 1048576 /* Union */) { + const types = type.types; + const filtered = filter(types, f); + if (filtered === types) { + return type; + } + const origin = type.origin; + let newOrigin; + if (origin && origin.flags & 1048576 /* Union */) { + const originTypes = origin.types; + const originFiltered = filter(originTypes, (t) => !!(t.flags & 1048576 /* Union */) || f(t)); + if (originTypes.length - originFiltered.length === types.length - filtered.length) { + if (originFiltered.length === 1) { + return originFiltered[0]; + } + newOrigin = createOriginUnionOrIntersectionType(1048576 /* Union */, originFiltered); + } + } + return getUnionTypeFromSortedList( + filtered, + type.objectFlags & (32768 /* PrimitiveUnion */ | 16777216 /* ContainsIntersections */), + /*aliasSymbol*/ + void 0, + /*aliasTypeArguments*/ + void 0, + newOrigin + ); + } + return type.flags & 131072 /* Never */ || f(type) ? type : neverType; + } + function removeType(type, targetType) { + return filterType(type, (t) => t !== targetType); + } + function countTypes(type) { + return type.flags & 1048576 /* Union */ ? type.types.length : 1; + } + function mapType(type, mapper, noReductions) { + if (type.flags & 131072 /* Never */) { + return type; + } + if (!(type.flags & 1048576 /* Union */)) { + return mapper(type); + } + const origin = type.origin; + const types = origin && origin.flags & 1048576 /* Union */ ? origin.types : type.types; + let mappedTypes; + let changed = false; + for (const t of types) { + const mapped = t.flags & 1048576 /* Union */ ? mapType(t, mapper, noReductions) : mapper(t); + changed || (changed = t !== mapped); + if (mapped) { + if (!mappedTypes) { + mappedTypes = [mapped]; + } else { + mappedTypes.push(mapped); + } + } + } + return changed ? mappedTypes && getUnionType(mappedTypes, noReductions ? 0 /* None */ : 1 /* Literal */) : type; + } + function mapTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) { + return type.flags & 1048576 /* Union */ && aliasSymbol ? getUnionType(map(type.types, mapper), 1 /* Literal */, aliasSymbol, aliasTypeArguments) : mapType(type, mapper); + } + function extractTypesOfKind(type, kind) { + return filterType(type, (t) => (t.flags & kind) !== 0); + } + function replacePrimitivesWithLiterals(typeWithPrimitives, typeWithLiterals) { + if (maybeTypeOfKind(typeWithPrimitives, 4 /* String */ | 134217728 /* TemplateLiteral */ | 8 /* Number */ | 64 /* BigInt */) && maybeTypeOfKind(typeWithLiterals, 128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */ | 256 /* NumberLiteral */ | 2048 /* BigIntLiteral */)) { + return mapType(typeWithPrimitives, (t) => t.flags & 4 /* String */ ? extractTypesOfKind(typeWithLiterals, 4 /* String */ | 128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) : isPatternLiteralType(t) && !maybeTypeOfKind(typeWithLiterals, 4 /* String */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) ? extractTypesOfKind(typeWithLiterals, 128 /* StringLiteral */) : t.flags & 8 /* Number */ ? extractTypesOfKind(typeWithLiterals, 8 /* Number */ | 256 /* NumberLiteral */) : t.flags & 64 /* BigInt */ ? extractTypesOfKind(typeWithLiterals, 64 /* BigInt */ | 2048 /* BigIntLiteral */) : t); + } + return typeWithPrimitives; + } + function isIncomplete(flowType) { + return flowType.flags === 0; + } + function getTypeFromFlowType(flowType) { + return flowType.flags === 0 ? flowType.type : flowType; + } + function createFlowType(type, incomplete) { + return incomplete ? { flags: 0, type: type.flags & 131072 /* Never */ ? silentNeverType : type } : type; + } + function createEvolvingArrayType(elementType) { + const result = createObjectType(256 /* EvolvingArray */); + result.elementType = elementType; + return result; + } + function getEvolvingArrayType(elementType) { + return evolvingArrayTypes[elementType.id] || (evolvingArrayTypes[elementType.id] = createEvolvingArrayType(elementType)); + } + function addEvolvingArrayElementType(evolvingArrayType, node) { + const elementType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(getContextFreeTypeOfExpression(node))); + return isTypeSubsetOf(elementType, evolvingArrayType.elementType) ? evolvingArrayType : getEvolvingArrayType(getUnionType([evolvingArrayType.elementType, elementType])); + } + function createFinalArrayType(elementType) { + return elementType.flags & 131072 /* Never */ ? autoArrayType : createArrayType( + elementType.flags & 1048576 /* Union */ ? getUnionType(elementType.types, 2 /* Subtype */) : elementType + ); + } + function getFinalArrayType(evolvingArrayType) { + return evolvingArrayType.finalArrayType || (evolvingArrayType.finalArrayType = createFinalArrayType(evolvingArrayType.elementType)); + } + function finalizeEvolvingArrayType(type) { + return getObjectFlags(type) & 256 /* EvolvingArray */ ? getFinalArrayType(type) : type; + } + function getElementTypeOfEvolvingArrayType(type) { + return getObjectFlags(type) & 256 /* EvolvingArray */ ? type.elementType : neverType; + } + function isEvolvingArrayTypeList(types) { + let hasEvolvingArrayType = false; + for (const t of types) { + if (!(t.flags & 131072 /* Never */)) { + if (!(getObjectFlags(t) & 256 /* EvolvingArray */)) { + return false; + } + hasEvolvingArrayType = true; + } + } + return hasEvolvingArrayType; + } + function isEvolvingArrayOperationTarget(node) { + const root = getReferenceRoot(node); + const parent = root.parent; + const isLengthPushOrUnshift = isPropertyAccessExpression(parent) && (parent.name.escapedText === "length" || parent.parent.kind === 213 /* CallExpression */ && isIdentifier(parent.name) && isPushOrUnshiftIdentifier(parent.name)); + const isElementAssignment = parent.kind === 212 /* ElementAccessExpression */ && parent.expression === root && parent.parent.kind === 226 /* BinaryExpression */ && parent.parent.operatorToken.kind === 64 /* EqualsToken */ && parent.parent.left === parent && !isAssignmentTarget(parent.parent) && isTypeAssignableToKind(getTypeOfExpression(parent.argumentExpression), 296 /* NumberLike */); + return isLengthPushOrUnshift || isElementAssignment; + } + function isDeclarationWithExplicitTypeAnnotation(node) { + return (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isParameter(node)) && !!(getEffectiveTypeAnnotationNode(node) || isInJSFile(node) && hasInitializer(node) && node.initializer && isFunctionExpressionOrArrowFunction(node.initializer) && getEffectiveReturnTypeNode(node.initializer)); + } + function getExplicitTypeOfSymbol(symbol, diagnostic) { + symbol = resolveSymbol(symbol); + if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 512 /* ValueModule */)) { + return getTypeOfSymbol(symbol); + } + if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { + if (getCheckFlags(symbol) & 262144 /* Mapped */) { + const origin = symbol.links.syntheticOrigin; + if (origin && getExplicitTypeOfSymbol(origin)) { + return getTypeOfSymbol(symbol); + } + } + const declaration = symbol.valueDeclaration; + if (declaration) { + if (isDeclarationWithExplicitTypeAnnotation(declaration)) { + return getTypeOfSymbol(symbol); + } + if (isVariableDeclaration(declaration) && declaration.parent.parent.kind === 250 /* ForOfStatement */) { + const statement = declaration.parent.parent; + const expressionType = getTypeOfDottedName( + statement.expression, + /*diagnostic*/ + void 0 + ); + if (expressionType) { + const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; + return checkIteratedTypeOrElementType( + use, + expressionType, + undefinedType, + /*errorNode*/ + void 0 + ); + } + } + if (diagnostic) { + addRelatedInfo(diagnostic, createDiagnosticForNode(declaration, Diagnostics._0_needs_an_explicit_type_annotation, symbolToString(symbol))); + } + } + } + } + function getTypeOfDottedName(node, diagnostic) { + if (!(node.flags & 67108864 /* InWithStatement */)) { + switch (node.kind) { + case 80 /* Identifier */: + const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node)); + return getExplicitTypeOfSymbol(symbol, diagnostic); + case 110 /* ThisKeyword */: + return getExplicitThisType(node); + case 108 /* SuperKeyword */: + return checkSuperExpression(node); + case 211 /* PropertyAccessExpression */: { + const type = getTypeOfDottedName(node.expression, diagnostic); + if (type) { + const name = node.name; + let prop; + if (isPrivateIdentifier(name)) { + if (!type.symbol) { + return void 0; + } + prop = getPropertyOfType(type, getSymbolNameForPrivateIdentifier(type.symbol, name.escapedText)); + } else { + prop = getPropertyOfType(type, name.escapedText); + } + return prop && getExplicitTypeOfSymbol(prop, diagnostic); + } + return void 0; + } + case 217 /* ParenthesizedExpression */: + return getTypeOfDottedName(node.expression, diagnostic); + } + } + } + function getEffectsSignature(node) { + const links = getNodeLinks(node); + let signature = links.effectsSignature; + if (signature === void 0) { + let funcType; + if (isBinaryExpression(node)) { + const rightType = checkNonNullExpression(node.right); + funcType = getSymbolHasInstanceMethodOfObjectType(rightType); + } else if (node.parent.kind === 244 /* ExpressionStatement */) { + funcType = getTypeOfDottedName( + node.expression, + /*diagnostic*/ + void 0 + ); + } else if (node.expression.kind !== 108 /* SuperKeyword */) { + if (isOptionalChain(node)) { + funcType = checkNonNullType( + getOptionalExpressionType(checkExpression(node.expression), node.expression), + node.expression + ); + } else { + funcType = checkNonNullExpression(node.expression); + } + } + const signatures = getSignaturesOfType(funcType && getApparentType(funcType) || unknownType, 0 /* Call */); + const candidate = signatures.length === 1 && !signatures[0].typeParameters ? signatures[0] : some(signatures, hasTypePredicateOrNeverReturnType) ? getResolvedSignature(node) : void 0; + signature = links.effectsSignature = candidate && hasTypePredicateOrNeverReturnType(candidate) ? candidate : unknownSignature; + } + return signature === unknownSignature ? void 0 : signature; + } + function hasTypePredicateOrNeverReturnType(signature) { + return !!(getTypePredicateOfSignature(signature) || signature.declaration && (getReturnTypeFromAnnotation(signature.declaration) || unknownType).flags & 131072 /* Never */); + } + function getTypePredicateArgument(predicate, callExpression) { + if (predicate.kind === 1 /* Identifier */ || predicate.kind === 3 /* AssertsIdentifier */) { + return callExpression.arguments[predicate.parameterIndex]; + } + const invokedExpression = skipParentheses(callExpression.expression); + return isAccessExpression(invokedExpression) ? skipParentheses(invokedExpression.expression) : void 0; + } + function reportFlowControlError(node) { + const block = findAncestor(node, isFunctionOrModuleBlock); + const sourceFile = getSourceFileOfNode(node); + const span = getSpanOfTokenAtPosition(sourceFile, block.statements.pos); + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)); + } + function isReachableFlowNode(flow) { + const result = isReachableFlowNodeWorker( + flow, + /*noCacheCheck*/ + false + ); + lastFlowNode = flow; + lastFlowNodeReachable = result; + return result; + } + function isFalseExpression(expr) { + const node = skipParentheses( + expr, + /*excludeJSDocTypeAssertions*/ + true + ); + return node.kind === 97 /* FalseKeyword */ || node.kind === 226 /* BinaryExpression */ && (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) || node.operatorToken.kind === 57 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right)); + } + function isReachableFlowNodeWorker(flow, noCacheCheck) { + while (true) { + if (flow === lastFlowNode) { + return lastFlowNodeReachable; + } + const flags = flow.flags; + if (flags & 4096 /* Shared */) { + if (!noCacheCheck) { + const id = getFlowNodeId(flow); + const reachable = flowNodeReachable[id]; + return reachable !== void 0 ? reachable : flowNodeReachable[id] = isReachableFlowNodeWorker( + flow, + /*noCacheCheck*/ + true + ); + } + noCacheCheck = false; + } + if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */)) { + flow = flow.antecedent; + } else if (flags & 512 /* Call */) { + const signature = getEffectsSignature(flow.node); + if (signature) { + const predicate = getTypePredicateOfSignature(signature); + if (predicate && predicate.kind === 3 /* AssertsIdentifier */ && !predicate.type) { + const predicateArgument = flow.node.arguments[predicate.parameterIndex]; + if (predicateArgument && isFalseExpression(predicateArgument)) { + return false; + } + } + if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) { + return false; + } + } + flow = flow.antecedent; + } else if (flags & 4 /* BranchLabel */) { + return some(flow.antecedent, (f) => isReachableFlowNodeWorker( + f, + /*noCacheCheck*/ + false + )); + } else if (flags & 8 /* LoopLabel */) { + const antecedents = flow.antecedent; + if (antecedents === void 0 || antecedents.length === 0) { + return false; + } + flow = antecedents[0]; + } else if (flags & 128 /* SwitchClause */) { + const data = flow.node; + if (data.clauseStart === data.clauseEnd && isExhaustiveSwitchStatement(data.switchStatement)) { + return false; + } + flow = flow.antecedent; + } else if (flags & 1024 /* ReduceLabel */) { + lastFlowNode = void 0; + const target = flow.node.target; + const saveAntecedents = target.antecedent; + target.antecedent = flow.node.antecedents; + const result = isReachableFlowNodeWorker( + flow.antecedent, + /*noCacheCheck*/ + false + ); + target.antecedent = saveAntecedents; + return result; + } else { + return !(flags & 1 /* Unreachable */); + } + } + } + function isPostSuperFlowNode(flow, noCacheCheck) { + while (true) { + const flags = flow.flags; + if (flags & 4096 /* Shared */) { + if (!noCacheCheck) { + const id = getFlowNodeId(flow); + const postSuper = flowNodePostSuper[id]; + return postSuper !== void 0 ? postSuper : flowNodePostSuper[id] = isPostSuperFlowNode( + flow, + /*noCacheCheck*/ + true + ); + } + noCacheCheck = false; + } + if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */ | 128 /* SwitchClause */)) { + flow = flow.antecedent; + } else if (flags & 512 /* Call */) { + if (flow.node.expression.kind === 108 /* SuperKeyword */) { + return true; + } + flow = flow.antecedent; + } else if (flags & 4 /* BranchLabel */) { + return every(flow.antecedent, (f) => isPostSuperFlowNode( + f, + /*noCacheCheck*/ + false + )); + } else if (flags & 8 /* LoopLabel */) { + flow = flow.antecedent[0]; + } else if (flags & 1024 /* ReduceLabel */) { + const target = flow.node.target; + const saveAntecedents = target.antecedent; + target.antecedent = flow.node.antecedents; + const result = isPostSuperFlowNode( + flow.antecedent, + /*noCacheCheck*/ + false + ); + target.antecedent = saveAntecedents; + return result; + } else { + return !!(flags & 1 /* Unreachable */); + } + } + } + function isConstantReference(node) { + switch (node.kind) { + case 110 /* ThisKeyword */: + return true; + case 80 /* Identifier */: + if (!isThisInTypeQuery(node)) { + const symbol = getResolvedSymbol(node); + return isConstantVariable(symbol) || isParameterOrMutableLocalVariable(symbol) && !isSymbolAssigned(symbol) || !!symbol.valueDeclaration && isFunctionExpression(symbol.valueDeclaration); + } + break; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol); + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + const rootDeclaration = getRootDeclaration(node.parent); + return isParameter(rootDeclaration) || isCatchClauseVariableDeclaration(rootDeclaration) ? !isSomeSymbolAssigned(rootDeclaration) : isVariableDeclaration(rootDeclaration) && isVarConstLike2(rootDeclaration); + } + return false; + } + function getFlowTypeOfReference(reference, declaredType, initialType = declaredType, flowContainer, flowNode = ((_a) => (_a = tryCast(reference, canHaveFlowNode)) == null ? void 0 : _a.flowNode)()) { + let key; + let isKeySet = false; + let flowDepth = 0; + if (flowAnalysisDisabled) { + return errorType; + } + if (!flowNode) { + return declaredType; + } + flowInvocationCount++; + const sharedFlowStart = sharedFlowCount; + const evolvedType = getTypeFromFlowType(getTypeAtFlowNode(flowNode)); + sharedFlowCount = sharedFlowStart; + const resultType = getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType); + if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 235 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) { + return declaredType; + } + return resultType; + function getOrSetCacheKey() { + if (isKeySet) { + return key; + } + isKeySet = true; + return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer); + } + function getTypeAtFlowNode(flow) { + var _a2; + if (flowDepth === 2e3) { + (_a2 = tracing) == null ? void 0 : _a2.instant(tracing.Phase.CheckTypes, "getTypeAtFlowNode_DepthLimit", { flowId: flow.id }); + flowAnalysisDisabled = true; + reportFlowControlError(reference); + return errorType; + } + flowDepth++; + let sharedFlow; + while (true) { + const flags = flow.flags; + if (flags & 4096 /* Shared */) { + for (let i = sharedFlowStart; i < sharedFlowCount; i++) { + if (sharedFlowNodes[i] === flow) { + flowDepth--; + return sharedFlowTypes[i]; + } + } + sharedFlow = flow; + } + let type; + if (flags & 16 /* Assignment */) { + type = getTypeAtFlowAssignment(flow); + if (!type) { + flow = flow.antecedent; + continue; + } + } else if (flags & 512 /* Call */) { + type = getTypeAtFlowCall(flow); + if (!type) { + flow = flow.antecedent; + continue; + } + } else if (flags & 96 /* Condition */) { + type = getTypeAtFlowCondition(flow); + } else if (flags & 128 /* SwitchClause */) { + type = getTypeAtSwitchClause(flow); + } else if (flags & 12 /* Label */) { + if (flow.antecedent.length === 1) { + flow = flow.antecedent[0]; + continue; + } + type = flags & 4 /* BranchLabel */ ? getTypeAtFlowBranchLabel(flow) : getTypeAtFlowLoopLabel(flow); + } else if (flags & 256 /* ArrayMutation */) { + type = getTypeAtFlowArrayMutation(flow); + if (!type) { + flow = flow.antecedent; + continue; + } + } else if (flags & 1024 /* ReduceLabel */) { + const target = flow.node.target; + const saveAntecedents = target.antecedent; + target.antecedent = flow.node.antecedents; + type = getTypeAtFlowNode(flow.antecedent); + target.antecedent = saveAntecedents; + } else if (flags & 2 /* Start */) { + const container = flow.node; + if (container && container !== flowContainer && reference.kind !== 211 /* PropertyAccessExpression */ && reference.kind !== 212 /* ElementAccessExpression */ && !(reference.kind === 110 /* ThisKeyword */ && container.kind !== 219 /* ArrowFunction */)) { + flow = container.flowNode; + continue; + } + type = initialType; + } else { + type = convertAutoToAny(declaredType); + } + if (sharedFlow) { + sharedFlowNodes[sharedFlowCount] = sharedFlow; + sharedFlowTypes[sharedFlowCount] = type; + sharedFlowCount++; + } + flowDepth--; + return type; + } + } + function getInitialOrAssignedType(flow) { + const node = flow.node; + return getNarrowableTypeForReference( + node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */ ? getInitialType(node) : getAssignedType(node), + reference + ); + } + function getTypeAtFlowAssignment(flow) { + const node = flow.node; + if (isMatchingReference(reference, node)) { + if (!isReachableFlowNode(flow)) { + return unreachableNeverType; + } + if (getAssignmentTargetKind(node) === 2 /* Compound */) { + const flowType = getTypeAtFlowNode(flow.antecedent); + return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType)); + } + if (declaredType === autoType || declaredType === autoArrayType) { + if (isEmptyArrayAssignment(node)) { + return getEvolvingArrayType(neverType); + } + const assignedType = getWidenedLiteralType(getInitialOrAssignedType(flow)); + return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType; + } + const t = isInCompoundLikeAssignment(node) ? getBaseTypeOfLiteralType(declaredType) : declaredType; + if (t.flags & 1048576 /* Union */) { + return getAssignmentReducedType(t, getInitialOrAssignedType(flow)); + } + return t; + } + if (containsMatchingReference(reference, node)) { + if (!isReachableFlowNode(flow)) { + return unreachableNeverType; + } + if (isVariableDeclaration(node) && (isInJSFile(node) || isVarConstLike2(node))) { + const init = getDeclaredExpandoInitializer(node); + if (init && (init.kind === 218 /* FunctionExpression */ || init.kind === 219 /* ArrowFunction */)) { + return getTypeAtFlowNode(flow.antecedent); + } + } + return declaredType; + } + if (isVariableDeclaration(node) && node.parent.parent.kind === 249 /* ForInStatement */ && (isMatchingReference(reference, node.parent.parent.expression) || optionalChainContainsReference(node.parent.parent.expression, reference))) { + return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)))); + } + return void 0; + } + function narrowTypeByAssertion(type, expr) { + const node = skipParentheses( + expr, + /*excludeJSDocTypeAssertions*/ + true + ); + if (node.kind === 97 /* FalseKeyword */) { + return unreachableNeverType; + } + if (node.kind === 226 /* BinaryExpression */) { + if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { + return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right); + } + if (node.operatorToken.kind === 57 /* BarBarToken */) { + return getUnionType([narrowTypeByAssertion(type, node.left), narrowTypeByAssertion(type, node.right)]); + } + } + return narrowType( + type, + node, + /*assumeTrue*/ + true + ); + } + function getTypeAtFlowCall(flow) { + const signature = getEffectsSignature(flow.node); + if (signature) { + const predicate = getTypePredicateOfSignature(signature); + if (predicate && (predicate.kind === 2 /* AssertsThis */ || predicate.kind === 3 /* AssertsIdentifier */)) { + const flowType = getTypeAtFlowNode(flow.antecedent); + const type = finalizeEvolvingArrayType(getTypeFromFlowType(flowType)); + const narrowedType = predicate.type ? narrowTypeByTypePredicate( + type, + predicate, + flow.node, + /*assumeTrue*/ + true + ) : predicate.kind === 3 /* AssertsIdentifier */ && predicate.parameterIndex >= 0 && predicate.parameterIndex < flow.node.arguments.length ? narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]) : type; + return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType)); + } + if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) { + return unreachableNeverType; + } + } + return void 0; + } + function getTypeAtFlowArrayMutation(flow) { + if (declaredType === autoType || declaredType === autoArrayType) { + const node = flow.node; + const expr = node.kind === 213 /* CallExpression */ ? node.expression.expression : node.left.expression; + if (isMatchingReference(reference, getReferenceCandidate(expr))) { + const flowType = getTypeAtFlowNode(flow.antecedent); + const type = getTypeFromFlowType(flowType); + if (getObjectFlags(type) & 256 /* EvolvingArray */) { + let evolvedType2 = type; + if (node.kind === 213 /* CallExpression */) { + for (const arg of node.arguments) { + evolvedType2 = addEvolvingArrayElementType(evolvedType2, arg); + } + } else { + const indexType = getContextFreeTypeOfExpression(node.left.argumentExpression); + if (isTypeAssignableToKind(indexType, 296 /* NumberLike */)) { + evolvedType2 = addEvolvingArrayElementType(evolvedType2, node.right); + } + } + return evolvedType2 === type ? flowType : createFlowType(evolvedType2, isIncomplete(flowType)); + } + return flowType; + } + } + return void 0; + } + function getTypeAtFlowCondition(flow) { + const flowType = getTypeAtFlowNode(flow.antecedent); + const type = getTypeFromFlowType(flowType); + if (type.flags & 131072 /* Never */) { + return flowType; + } + const assumeTrue = (flow.flags & 32 /* TrueCondition */) !== 0; + const nonEvolvingType = finalizeEvolvingArrayType(type); + const narrowedType = narrowType(nonEvolvingType, flow.node, assumeTrue); + if (narrowedType === nonEvolvingType) { + return flowType; + } + return createFlowType(narrowedType, isIncomplete(flowType)); + } + function getTypeAtSwitchClause(flow) { + const expr = skipParentheses(flow.node.switchStatement.expression); + const flowType = getTypeAtFlowNode(flow.antecedent); + let type = getTypeFromFlowType(flowType); + if (isMatchingReference(reference, expr)) { + type = narrowTypeBySwitchOnDiscriminant(type, flow.node); + } else if (expr.kind === 221 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) { + type = narrowTypeBySwitchOnTypeOf(type, flow.node); + } else if (expr.kind === 112 /* TrueKeyword */) { + type = narrowTypeBySwitchOnTrue(type, flow.node); + } else { + if (strictNullChecks) { + if (optionalChainContainsReference(expr, reference)) { + type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t) => !(t.flags & (32768 /* Undefined */ | 131072 /* Never */))); + } else if (expr.kind === 221 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) { + type = narrowTypeBySwitchOptionalChainContainment(type, flow.node, (t) => !(t.flags & 131072 /* Never */ || t.flags & 128 /* StringLiteral */ && t.value === "undefined")); + } + } + const access = getDiscriminantPropertyAccess(expr, type); + if (access) { + type = narrowTypeBySwitchOnDiscriminantProperty(type, access, flow.node); + } + } + return createFlowType(type, isIncomplete(flowType)); + } + function getTypeAtFlowBranchLabel(flow) { + const antecedentTypes = []; + let subtypeReduction = false; + let seenIncomplete = false; + let bypassFlow; + for (const antecedent of flow.antecedent) { + if (!bypassFlow && antecedent.flags & 128 /* SwitchClause */ && antecedent.node.clauseStart === antecedent.node.clauseEnd) { + bypassFlow = antecedent; + continue; + } + const flowType = getTypeAtFlowNode(antecedent); + const type = getTypeFromFlowType(flowType); + if (type === declaredType && declaredType === initialType) { + return type; + } + pushIfUnique(antecedentTypes, type); + if (!isTypeSubsetOf(type, initialType)) { + subtypeReduction = true; + } + if (isIncomplete(flowType)) { + seenIncomplete = true; + } + } + if (bypassFlow) { + const flowType = getTypeAtFlowNode(bypassFlow); + const type = getTypeFromFlowType(flowType); + if (!(type.flags & 131072 /* Never */) && !contains(antecedentTypes, type) && !isExhaustiveSwitchStatement(bypassFlow.node.switchStatement)) { + if (type === declaredType && declaredType === initialType) { + return type; + } + antecedentTypes.push(type); + if (!isTypeSubsetOf(type, initialType)) { + subtypeReduction = true; + } + if (isIncomplete(flowType)) { + seenIncomplete = true; + } + } + } + return createFlowType(getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */), seenIncomplete); + } + function getTypeAtFlowLoopLabel(flow) { + const id = getFlowNodeId(flow); + const cache = flowLoopCaches[id] || (flowLoopCaches[id] = /* @__PURE__ */ new Map()); + const key2 = getOrSetCacheKey(); + if (!key2) { + return declaredType; + } + const cached = cache.get(key2); + if (cached) { + return cached; + } + for (let i = flowLoopStart; i < flowLoopCount; i++) { + if (flowLoopNodes[i] === flow && flowLoopKeys[i] === key2 && flowLoopTypes[i].length) { + return createFlowType( + getUnionOrEvolvingArrayType(flowLoopTypes[i], 1 /* Literal */), + /*incomplete*/ + true + ); + } + } + const antecedentTypes = []; + let subtypeReduction = false; + let firstAntecedentType; + for (const antecedent of flow.antecedent) { + let flowType; + if (!firstAntecedentType) { + flowType = firstAntecedentType = getTypeAtFlowNode(antecedent); + } else { + flowLoopNodes[flowLoopCount] = flow; + flowLoopKeys[flowLoopCount] = key2; + flowLoopTypes[flowLoopCount] = antecedentTypes; + flowLoopCount++; + const saveFlowTypeCache = flowTypeCache; + flowTypeCache = void 0; + flowType = getTypeAtFlowNode(antecedent); + flowTypeCache = saveFlowTypeCache; + flowLoopCount--; + const cached2 = cache.get(key2); + if (cached2) { + return cached2; + } + } + const type = getTypeFromFlowType(flowType); + pushIfUnique(antecedentTypes, type); + if (!isTypeSubsetOf(type, initialType)) { + subtypeReduction = true; + } + if (type === declaredType) { + break; + } + } + const result = getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */); + if (isIncomplete(firstAntecedentType)) { + return createFlowType( + result, + /*incomplete*/ + true + ); + } + cache.set(key2, result); + return result; + } + function getUnionOrEvolvingArrayType(types, subtypeReduction) { + if (isEvolvingArrayTypeList(types)) { + return getEvolvingArrayType(getUnionType(map(types, getElementTypeOfEvolvingArrayType))); + } + const result = recombineUnknownType(getUnionType(sameMap(types, finalizeEvolvingArrayType), subtypeReduction)); + if (result !== declaredType && result.flags & declaredType.flags & 1048576 /* Union */ && arraysEqual(result.types, declaredType.types)) { + return declaredType; + } + return result; + } + function getCandidateDiscriminantPropertyAccess(expr) { + if (isBindingPattern(reference) || isFunctionExpressionOrArrowFunction(reference) || isObjectLiteralMethod(reference)) { + if (isIdentifier(expr)) { + const symbol = getResolvedSymbol(expr); + const declaration = symbol.valueDeclaration; + if (declaration && (isBindingElement(declaration) || isParameter(declaration)) && reference === declaration.parent && !declaration.initializer && !declaration.dotDotDotToken) { + return declaration; + } + } + } else if (isAccessExpression(expr)) { + if (isMatchingReference(reference, expr.expression)) { + return expr; + } + } else if (isIdentifier(expr)) { + const symbol = getResolvedSymbol(expr); + if (isConstantVariable(symbol)) { + const declaration = symbol.valueDeclaration; + if (isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isAccessExpression(declaration.initializer) && isMatchingReference(reference, declaration.initializer.expression)) { + return declaration.initializer; + } + if (isBindingElement(declaration) && !declaration.initializer) { + const parent = declaration.parent.parent; + if (isVariableDeclaration(parent) && !parent.type && parent.initializer && (isIdentifier(parent.initializer) || isAccessExpression(parent.initializer)) && isMatchingReference(reference, parent.initializer)) { + return declaration; + } + } + } + } + return void 0; + } + function getDiscriminantPropertyAccess(expr, computedType) { + if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) { + const access = getCandidateDiscriminantPropertyAccess(expr); + if (access) { + const name = getAccessedPropertyName(access); + if (name) { + const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType; + if (isDiscriminantProperty(type, name)) { + return access; + } + } + } + } + return void 0; + } + function narrowTypeByDiscriminant(type, access, narrowType2) { + const propName = getAccessedPropertyName(access); + if (propName === void 0) { + return type; + } + const optionalChain = isOptionalChain(access); + const removeNullable = strictNullChecks && (optionalChain || isNonNullAccess(access)) && maybeTypeOfKind(type, 98304 /* Nullable */); + let propType = getTypeOfPropertyOfType(removeNullable ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type, propName); + if (!propType) { + return type; + } + propType = removeNullable && optionalChain ? getOptionalType(propType) : propType; + const narrowedPropType = narrowType2(propType); + return filterType(type, (t) => { + const discriminantType = getTypeOfPropertyOrIndexSignatureOfType(t, propName) || unknownType; + return !(discriminantType.flags & 131072 /* Never */) && !(narrowedPropType.flags & 131072 /* Never */) && areTypesComparable(narrowedPropType, discriminantType); + }); + } + function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) { + if ((operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) && type.flags & 1048576 /* Union */) { + const keyPropertyName = getKeyPropertyName(type); + if (keyPropertyName && keyPropertyName === getAccessedPropertyName(access)) { + const candidate = getConstituentTypeForKeyType(type, getTypeOfExpression(value)); + if (candidate) { + return operator === (assumeTrue ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */) ? candidate : isUnitType(getTypeOfPropertyOfType(candidate, keyPropertyName) || unknownType) ? removeType(type, candidate) : type; + } + } + } + return narrowTypeByDiscriminant(type, access, (t) => narrowTypeByEquality(t, operator, value, assumeTrue)); + } + function narrowTypeBySwitchOnDiscriminantProperty(type, access, data) { + if (data.clauseStart < data.clauseEnd && type.flags & 1048576 /* Union */ && getKeyPropertyName(type) === getAccessedPropertyName(access)) { + const clauseTypes = getSwitchClauseTypes(data.switchStatement).slice(data.clauseStart, data.clauseEnd); + const candidate = getUnionType(map(clauseTypes, (t) => getConstituentTypeForKeyType(type, t) || unknownType)); + if (candidate !== unknownType) { + return candidate; + } + } + return narrowTypeByDiscriminant(type, access, (t) => narrowTypeBySwitchOnDiscriminant(t, data)); + } + function narrowTypeByTruthiness(type, expr, assumeTrue) { + if (isMatchingReference(reference, expr)) { + return getAdjustedTypeWithFacts(type, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */); + } + if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) { + type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); + } + const access = getDiscriminantPropertyAccess(expr, type); + if (access) { + return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */)); + } + return type; + } + function isTypePresencePossible(type, propName, assumeTrue) { + const prop = getPropertyOfType(type, propName); + return prop ? !!(prop.flags & 16777216 /* Optional */ || getCheckFlags(prop) & 48 /* Partial */) || assumeTrue : !!getApplicableIndexInfoForName(type, propName) || !assumeTrue; + } + function narrowTypeByInKeyword(type, nameType, assumeTrue) { + const name = getPropertyNameFromType(nameType); + const isKnownProperty2 = someType(type, (t) => isTypePresencePossible( + t, + name, + /*assumeTrue*/ + true + )); + if (isKnownProperty2) { + return filterType(type, (t) => isTypePresencePossible(t, name, assumeTrue)); + } + if (assumeTrue) { + const recordSymbol = getGlobalRecordSymbol(); + if (recordSymbol) { + return getIntersectionType([type, getTypeAliasInstantiation(recordSymbol, [nameType, unknownType])]); + } + } + return type; + } + function narrowTypeByBooleanComparison(type, expr, bool, operator, assumeTrue) { + assumeTrue = assumeTrue !== (bool.kind === 112 /* TrueKeyword */) !== (operator !== 38 /* ExclamationEqualsEqualsToken */ && operator !== 36 /* ExclamationEqualsToken */); + return narrowType(type, expr, assumeTrue); + } + function narrowTypeByBinaryExpression(type, expr, assumeTrue) { + switch (expr.operatorToken.kind) { + case 64 /* EqualsToken */: + case 76 /* BarBarEqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return narrowTypeByTruthiness(narrowType(type, expr.right, assumeTrue), expr.left, assumeTrue); + case 35 /* EqualsEqualsToken */: + case 36 /* ExclamationEqualsToken */: + case 37 /* EqualsEqualsEqualsToken */: + case 38 /* ExclamationEqualsEqualsToken */: + const operator = expr.operatorToken.kind; + const left = getReferenceCandidate(expr.left); + const right = getReferenceCandidate(expr.right); + if (left.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(right)) { + return narrowTypeByTypeof(type, left, operator, right, assumeTrue); + } + if (right.kind === 221 /* TypeOfExpression */ && isStringLiteralLike(left)) { + return narrowTypeByTypeof(type, right, operator, left, assumeTrue); + } + if (isMatchingReference(reference, left)) { + return narrowTypeByEquality(type, operator, right, assumeTrue); + } + if (isMatchingReference(reference, right)) { + return narrowTypeByEquality(type, operator, left, assumeTrue); + } + if (strictNullChecks) { + if (optionalChainContainsReference(left, reference)) { + type = narrowTypeByOptionalChainContainment(type, operator, right, assumeTrue); + } else if (optionalChainContainsReference(right, reference)) { + type = narrowTypeByOptionalChainContainment(type, operator, left, assumeTrue); + } + } + const leftAccess = getDiscriminantPropertyAccess(left, type); + if (leftAccess) { + return narrowTypeByDiscriminantProperty(type, leftAccess, operator, right, assumeTrue); + } + const rightAccess = getDiscriminantPropertyAccess(right, type); + if (rightAccess) { + return narrowTypeByDiscriminantProperty(type, rightAccess, operator, left, assumeTrue); + } + if (isMatchingConstructorReference(left)) { + return narrowTypeByConstructor(type, operator, right, assumeTrue); + } + if (isMatchingConstructorReference(right)) { + return narrowTypeByConstructor(type, operator, left, assumeTrue); + } + if (isBooleanLiteral(right) && !isAccessExpression(left)) { + return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue); + } + if (isBooleanLiteral(left) && !isAccessExpression(right)) { + return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue); + } + break; + case 104 /* InstanceOfKeyword */: + return narrowTypeByInstanceof(type, expr, assumeTrue); + case 103 /* InKeyword */: + if (isPrivateIdentifier(expr.left)) { + return narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue); + } + const target = getReferenceCandidate(expr.right); + if (containsMissingType(type) && isAccessExpression(reference) && isMatchingReference(reference.expression, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType) && getAccessedPropertyName(reference) === getPropertyNameFromType(leftType)) { + return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); + } + } + if (isMatchingReference(reference, target)) { + const leftType = getTypeOfExpression(expr.left); + if (isTypeUsableAsPropertyName(leftType)) { + return narrowTypeByInKeyword(type, leftType, assumeTrue); + } + } + break; + case 28 /* CommaToken */: + return narrowType(type, expr.right, assumeTrue); + case 56 /* AmpersandAmpersandToken */: + return assumeTrue ? narrowType( + narrowType( + type, + expr.left, + /*assumeTrue*/ + true + ), + expr.right, + /*assumeTrue*/ + true + ) : getUnionType([narrowType( + type, + expr.left, + /*assumeTrue*/ + false + ), narrowType( + type, + expr.right, + /*assumeTrue*/ + false + )]); + case 57 /* BarBarToken */: + return assumeTrue ? getUnionType([narrowType( + type, + expr.left, + /*assumeTrue*/ + true + ), narrowType( + type, + expr.right, + /*assumeTrue*/ + true + )]) : narrowType( + narrowType( + type, + expr.left, + /*assumeTrue*/ + false + ), + expr.right, + /*assumeTrue*/ + false + ); + } + return type; + } + function narrowTypeByPrivateIdentifierInInExpression(type, expr, assumeTrue) { + const target = getReferenceCandidate(expr.right); + if (!isMatchingReference(reference, target)) { + return type; + } + Debug.assertNode(expr.left, isPrivateIdentifier); + const symbol = getSymbolForPrivateIdentifierExpression(expr.left); + if (symbol === void 0) { + return type; + } + const classSymbol = symbol.parent; + const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol); + return getNarrowedType( + type, + targetType, + assumeTrue, + /*checkDerived*/ + true + ); + } + function narrowTypeByOptionalChainContainment(type, operator, value, assumeTrue) { + const equalsOperator = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + const nullableFlags = operator === 35 /* EqualsEqualsToken */ || operator === 36 /* ExclamationEqualsToken */ ? 98304 /* Nullable */ : 32768 /* Undefined */; + const valueType = getTypeOfExpression(value); + const removeNullable = equalsOperator !== assumeTrue && everyType(valueType, (t) => !!(t.flags & nullableFlags)) || equalsOperator === assumeTrue && everyType(valueType, (t) => !(t.flags & (3 /* AnyOrUnknown */ | nullableFlags))); + return removeNullable ? getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; + } + function narrowTypeByEquality(type, operator, value, assumeTrue) { + if (type.flags & 1 /* Any */) { + return type; + } + if (operator === 36 /* ExclamationEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) { + assumeTrue = !assumeTrue; + } + const valueType = getTypeOfExpression(value); + const doubleEquals = operator === 35 /* EqualsEqualsToken */ || operator === 36 /* ExclamationEqualsToken */; + if (valueType.flags & 98304 /* Nullable */) { + if (!strictNullChecks) { + return type; + } + const facts = doubleEquals ? assumeTrue ? 262144 /* EQUndefinedOrNull */ : 2097152 /* NEUndefinedOrNull */ : valueType.flags & 65536 /* Null */ ? assumeTrue ? 131072 /* EQNull */ : 1048576 /* NENull */ : assumeTrue ? 65536 /* EQUndefined */ : 524288 /* NEUndefined */; + return getAdjustedTypeWithFacts(type, facts); + } + if (assumeTrue) { + if (!doubleEquals && (type.flags & 2 /* Unknown */ || someType(type, isEmptyAnonymousObjectType))) { + if (valueType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) || isEmptyAnonymousObjectType(valueType)) { + return valueType; + } + if (valueType.flags & 524288 /* Object */) { + return nonPrimitiveType; + } + } + const filteredType = filterType(type, (t) => areTypesComparable(t, valueType) || doubleEquals && isCoercibleUnderDoubleEquals(t, valueType)); + return replacePrimitivesWithLiterals(filteredType, valueType); + } + if (isUnitType(valueType)) { + return filterType(type, (t) => !(isUnitLikeType(t) && areTypesComparable(t, valueType))); + } + return type; + } + function narrowTypeByTypeof(type, typeOfExpr, operator, literal, assumeTrue) { + if (operator === 36 /* ExclamationEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */) { + assumeTrue = !assumeTrue; + } + const target = getReferenceCandidate(typeOfExpr.expression); + if (!isMatchingReference(reference, target)) { + if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== "undefined")) { + type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); + } + const propertyAccess = getDiscriminantPropertyAccess(target, type); + if (propertyAccess) { + return narrowTypeByDiscriminant(type, propertyAccess, (t) => narrowTypeByLiteralExpression(t, literal, assumeTrue)); + } + return type; + } + return narrowTypeByLiteralExpression(type, literal, assumeTrue); + } + function narrowTypeByLiteralExpression(type, literal, assumeTrue) { + return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */); + } + function narrowTypeBySwitchOptionalChainContainment(type, { switchStatement, clauseStart, clauseEnd }, clauseCheck) { + const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck); + return everyClauseChecks ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type; + } + function narrowTypeBySwitchOnDiscriminant(type, { switchStatement, clauseStart, clauseEnd }) { + const switchTypes = getSwitchClauseTypes(switchStatement); + if (!switchTypes.length) { + return type; + } + const clauseTypes = switchTypes.slice(clauseStart, clauseEnd); + const hasDefaultClause = clauseStart === clauseEnd || contains(clauseTypes, neverType); + if (type.flags & 2 /* Unknown */ && !hasDefaultClause) { + let groundClauseTypes; + for (let i = 0; i < clauseTypes.length; i += 1) { + const t = clauseTypes[i]; + if (t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) { + if (groundClauseTypes !== void 0) { + groundClauseTypes.push(t); + } + } else if (t.flags & 524288 /* Object */) { + if (groundClauseTypes === void 0) { + groundClauseTypes = clauseTypes.slice(0, i); + } + groundClauseTypes.push(nonPrimitiveType); + } else { + return type; + } + } + return getUnionType(groundClauseTypes === void 0 ? clauseTypes : groundClauseTypes); + } + const discriminantType = getUnionType(clauseTypes); + const caseType = discriminantType.flags & 131072 /* Never */ ? neverType : replacePrimitivesWithLiterals(filterType(type, (t) => areTypesComparable(discriminantType, t)), discriminantType); + if (!hasDefaultClause) { + return caseType; + } + const defaultType = filterType(type, (t) => !(isUnitLikeType(t) && contains(switchTypes, t.flags & 32768 /* Undefined */ ? undefinedType : getRegularTypeOfLiteralType(extractUnitType(t))))); + return caseType.flags & 131072 /* Never */ ? defaultType : getUnionType([caseType, defaultType]); + } + function narrowTypeByTypeName(type, typeName) { + switch (typeName) { + case "string": + return narrowTypeByTypeFacts(type, stringType, 1 /* TypeofEQString */); + case "number": + return narrowTypeByTypeFacts(type, numberType, 2 /* TypeofEQNumber */); + case "bigint": + return narrowTypeByTypeFacts(type, bigintType, 4 /* TypeofEQBigInt */); + case "boolean": + return narrowTypeByTypeFacts(type, booleanType, 8 /* TypeofEQBoolean */); + case "symbol": + return narrowTypeByTypeFacts(type, esSymbolType, 16 /* TypeofEQSymbol */); + case "object": + return type.flags & 1 /* Any */ ? type : getUnionType([narrowTypeByTypeFacts(type, nonPrimitiveType, 32 /* TypeofEQObject */), narrowTypeByTypeFacts(type, nullType, 131072 /* EQNull */)]); + case "function": + return type.flags & 1 /* Any */ ? type : narrowTypeByTypeFacts(type, globalFunctionType, 64 /* TypeofEQFunction */); + case "undefined": + return narrowTypeByTypeFacts(type, undefinedType, 65536 /* EQUndefined */); + } + return narrowTypeByTypeFacts(type, nonPrimitiveType, 128 /* TypeofEQHostObject */); + } + function narrowTypeByTypeFacts(type, impliedType, facts) { + return mapType(type, (t) => ( + // We first check if a constituent is a subtype of the implied type. If so, we either keep or eliminate + // the constituent based on its type facts. We use the strict subtype relation because it treats `object` + // as a subtype of `{}`, and we need the type facts check because function types are subtypes of `object`, + // but are classified as "function" according to `typeof`. + isTypeRelatedTo(t, impliedType, strictSubtypeRelation) ? hasTypeFacts(t, facts) ? t : neverType : ( + // We next check if the consituent is a supertype of the implied type. If so, we substitute the implied + // type. This handles top types like `unknown` and `{}`, and supertypes like `{ toString(): string }`. + isTypeSubtypeOf(impliedType, t) ? impliedType : ( + // Neither the constituent nor the implied type is a subtype of the other, however their domains may still + // overlap. For example, an unconstrained type parameter and type `string`. If the type facts indicate + // possible overlap, we form an intersection. Otherwise, we eliminate the constituent. + hasTypeFacts(t, facts) ? getIntersectionType([t, impliedType]) : neverType + ) + ) + )); + } + function narrowTypeBySwitchOnTypeOf(type, { switchStatement, clauseStart, clauseEnd }) { + const witnesses = getSwitchClauseTypeOfWitnesses(switchStatement); + if (!witnesses) { + return type; + } + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); + const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; + if (hasDefaultClause) { + const notEqualFacts = getNotEqualFactsFromTypeofSwitch(clauseStart, clauseEnd, witnesses); + return filterType(type, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts); + } + const clauseWitnesses = witnesses.slice(clauseStart, clauseEnd); + return getUnionType(map(clauseWitnesses, (text) => text ? narrowTypeByTypeName(type, text) : neverType)); + } + function narrowTypeBySwitchOnTrue(type, { switchStatement, clauseStart, clauseEnd }) { + const defaultIndex = findIndex(switchStatement.caseBlock.clauses, (clause) => clause.kind === 297 /* DefaultClause */); + const hasDefaultClause = clauseStart === clauseEnd || defaultIndex >= clauseStart && defaultIndex < clauseEnd; + for (let i = 0; i < clauseStart; i++) { + const clause = switchStatement.caseBlock.clauses[i]; + if (clause.kind === 296 /* CaseClause */) { + type = narrowType( + type, + clause.expression, + /*assumeTrue*/ + false + ); + } + } + if (hasDefaultClause) { + for (let i = clauseEnd; i < switchStatement.caseBlock.clauses.length; i++) { + const clause = switchStatement.caseBlock.clauses[i]; + if (clause.kind === 296 /* CaseClause */) { + type = narrowType( + type, + clause.expression, + /*assumeTrue*/ + false + ); + } + } + return type; + } + const clauses = switchStatement.caseBlock.clauses.slice(clauseStart, clauseEnd); + return getUnionType(map(clauses, (clause) => clause.kind === 296 /* CaseClause */ ? narrowType( + type, + clause.expression, + /*assumeTrue*/ + true + ) : neverType)); + } + function isMatchingConstructorReference(expr) { + return (isPropertyAccessExpression(expr) && idText(expr.name) === "constructor" || isElementAccessExpression(expr) && isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === "constructor") && isMatchingReference(reference, expr.expression); + } + function narrowTypeByConstructor(type, operator, identifier, assumeTrue) { + if (assumeTrue ? operator !== 35 /* EqualsEqualsToken */ && operator !== 37 /* EqualsEqualsEqualsToken */ : operator !== 36 /* ExclamationEqualsToken */ && operator !== 38 /* ExclamationEqualsEqualsToken */) { + return type; + } + const identifierType = getTypeOfExpression(identifier); + if (!isFunctionType(identifierType) && !isConstructorType(identifierType)) { + return type; + } + const prototypeProperty = getPropertyOfType(identifierType, "prototype"); + if (!prototypeProperty) { + return type; + } + const prototypeType = getTypeOfSymbol(prototypeProperty); + const candidate = !isTypeAny(prototypeType) ? prototypeType : void 0; + if (!candidate || candidate === globalObjectType || candidate === globalFunctionType) { + return type; + } + if (isTypeAny(type)) { + return candidate; + } + return filterType(type, (t) => isConstructedBy(t, candidate)); + function isConstructedBy(source, target) { + if (source.flags & 524288 /* Object */ && getObjectFlags(source) & 1 /* Class */ || target.flags & 524288 /* Object */ && getObjectFlags(target) & 1 /* Class */) { + return source.symbol === target.symbol; + } + return isTypeSubtypeOf(source, target); + } + } + function narrowTypeByInstanceof(type, expr, assumeTrue) { + const left = getReferenceCandidate(expr.left); + if (!isMatchingReference(reference, left)) { + if (assumeTrue && strictNullChecks && optionalChainContainsReference(left, reference)) { + return getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); + } + return type; + } + const right = expr.right; + const rightType = getTypeOfExpression(right); + if (!isTypeDerivedFrom(rightType, globalObjectType)) { + return type; + } + const signature = getEffectsSignature(expr); + const predicate = signature && getTypePredicateOfSignature(signature); + if (predicate && predicate.kind === 1 /* Identifier */ && predicate.parameterIndex === 0) { + return getNarrowedType( + type, + predicate.type, + assumeTrue, + /*checkDerived*/ + true + ); + } + if (!isTypeDerivedFrom(rightType, globalFunctionType)) { + return type; + } + const instanceType = mapType(rightType, getInstanceType); + if (isTypeAny(type) && (instanceType === globalObjectType || instanceType === globalFunctionType) || !assumeTrue && !(instanceType.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(instanceType))) { + return type; + } + return getNarrowedType( + type, + instanceType, + assumeTrue, + /*checkDerived*/ + true + ); + } + function getInstanceType(constructorType) { + const prototypePropertyType = getTypeOfPropertyOfType(constructorType, "prototype"); + if (prototypePropertyType && !isTypeAny(prototypePropertyType)) { + return prototypePropertyType; + } + const constructSignatures = getSignaturesOfType(constructorType, 1 /* Construct */); + if (constructSignatures.length) { + return getUnionType(map(constructSignatures, (signature) => getReturnTypeOfSignature(getErasedSignature(signature)))); + } + return emptyObjectType; + } + function getNarrowedType(type, candidate, assumeTrue, checkDerived) { + const key2 = type.flags & 1048576 /* Union */ ? `N${getTypeId(type)},${getTypeId(candidate)},${(assumeTrue ? 1 : 0) | (checkDerived ? 2 : 0)}` : void 0; + return getCachedType(key2) ?? setCachedType(key2, getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived)); + } + function getNarrowedTypeWorker(type, candidate, assumeTrue, checkDerived) { + if (!assumeTrue) { + if (type === candidate) { + return neverType; + } + if (checkDerived) { + return filterType(type, (t) => !isTypeDerivedFrom(t, candidate)); + } + const trueType2 = getNarrowedType( + type, + candidate, + /*assumeTrue*/ + true, + /*checkDerived*/ + false + ); + return filterType(type, (t) => !isTypeSubsetOf(t, trueType2)); + } + if (type.flags & 3 /* AnyOrUnknown */) { + return candidate; + } + if (type === candidate) { + return candidate; + } + const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf; + const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0; + const narrowedType = mapType(candidate, (c) => { + const discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName); + const matching = discriminant && getConstituentTypeForKeyType(type, discriminant); + const directlyRelated = mapType( + matching || type, + checkDerived ? (t) => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : (t) => isTypeStrictSubtypeOf(t, c) ? t : isTypeStrictSubtypeOf(c, t) ? c : isTypeSubtypeOf(t, c) ? t : isTypeSubtypeOf(c, t) ? c : neverType + ); + return directlyRelated.flags & 131072 /* Never */ ? mapType(type, (t) => maybeTypeOfKind(t, 465829888 /* Instantiable */) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType) : directlyRelated; + }); + return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]); + } + function narrowTypeByCallExpression(type, callExpression, assumeTrue) { + if (hasMatchingArgument(callExpression, reference)) { + const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0; + const predicate = signature && getTypePredicateOfSignature(signature); + if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) { + return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue); + } + } + if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) { + const callAccess = callExpression.expression; + if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) && isIdentifier(callAccess.name) && callAccess.name.escapedText === "hasOwnProperty" && callExpression.arguments.length === 1) { + const argument = callExpression.arguments[0]; + if (isStringLiteralLike(argument) && getAccessedPropertyName(reference) === escapeLeadingUnderscores(argument.text)) { + return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */); + } + } + } + return type; + } + function narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue) { + if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) { + const predicateArgument = getTypePredicateArgument(predicate, callExpression); + if (predicateArgument) { + if (isMatchingReference(reference, predicateArgument)) { + return getNarrowedType( + type, + predicate.type, + assumeTrue, + /*checkDerived*/ + false + ); + } + if (strictNullChecks && optionalChainContainsReference(predicateArgument, reference) && (assumeTrue && !hasTypeFacts(predicate.type, 65536 /* EQUndefined */) || !assumeTrue && everyType(predicate.type, isNullableType))) { + type = getAdjustedTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); + } + const access = getDiscriminantPropertyAccess(predicateArgument, type); + if (access) { + return narrowTypeByDiscriminant(type, access, (t) => getNarrowedType( + t, + predicate.type, + assumeTrue, + /*checkDerived*/ + false + )); + } + } + } + return type; + } + function narrowType(type, expr, assumeTrue) { + if (isExpressionOfOptionalChainRoot(expr) || isBinaryExpression(expr.parent) && (expr.parent.operatorToken.kind === 61 /* QuestionQuestionToken */ || expr.parent.operatorToken.kind === 78 /* QuestionQuestionEqualsToken */) && expr.parent.left === expr) { + return narrowTypeByOptionality(type, expr, assumeTrue); + } + switch (expr.kind) { + case 80 /* Identifier */: + if (!isMatchingReference(reference, expr) && inlineLevel < 5) { + const symbol = getResolvedSymbol(expr); + if (isConstantVariable(symbol)) { + const declaration = symbol.valueDeclaration; + if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) { + inlineLevel++; + const result = narrowType(type, declaration.initializer, assumeTrue); + inlineLevel--; + return result; + } + } + } + case 110 /* ThisKeyword */: + case 108 /* SuperKeyword */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return narrowTypeByTruthiness(type, expr, assumeTrue); + case 213 /* CallExpression */: + return narrowTypeByCallExpression(type, expr, assumeTrue); + case 217 /* ParenthesizedExpression */: + case 235 /* NonNullExpression */: + return narrowType(type, expr.expression, assumeTrue); + case 226 /* BinaryExpression */: + return narrowTypeByBinaryExpression(type, expr, assumeTrue); + case 224 /* PrefixUnaryExpression */: + if (expr.operator === 54 /* ExclamationToken */) { + return narrowType(type, expr.operand, !assumeTrue); + } + break; + } + return type; + } + function narrowTypeByOptionality(type, expr, assumePresent) { + if (isMatchingReference(reference, expr)) { + return getAdjustedTypeWithFacts(type, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */); + } + const access = getDiscriminantPropertyAccess(expr, type); + if (access) { + return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */)); + } + return type; + } + } + function getTypeOfSymbolAtLocation(symbol, location) { + symbol = getExportSymbolOfValueSymbolIfExported(symbol); + if (location.kind === 80 /* Identifier */ || location.kind === 81 /* PrivateIdentifier */) { + if (isRightSideOfQualifiedNameOrPropertyAccess(location)) { + location = location.parent; + } + if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) { + const type = removeOptionalTypeMarker( + isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression( + location, + /*checkMode*/ + void 0, + /*writeOnly*/ + true + ) : getTypeOfExpression(location) + ); + if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) { + return type; + } + } + } + if (isDeclarationName(location) && isSetAccessor(location.parent) && getAnnotatedAccessorTypeNode(location.parent)) { + return getWriteTypeOfAccessors(location.parent.symbol); + } + return isRightSideOfAccessExpression(location) && isWriteAccess(location.parent) ? getWriteTypeOfSymbol(symbol) : getNonMissingTypeOfSymbol(symbol); + } + function getControlFlowContainer(node) { + return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 307 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); + } + function isSymbolAssigned(symbol) { + return !isPastLastAssignment( + symbol, + /*location*/ + void 0 + ); + } + function isPastLastAssignment(symbol, location) { + const parent = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); + if (!parent) { + return false; + } + const links = getNodeLinks(parent); + if (!(links.flags & 131072 /* AssignmentsMarked */)) { + links.flags |= 131072 /* AssignmentsMarked */; + if (!hasParentWithAssignmentsMarked(parent)) { + markNodeAssignments(parent); + } + } + return !symbol.lastAssignmentPos || location && symbol.lastAssignmentPos < location.pos; + } + function isSomeSymbolAssigned(rootDeclaration) { + Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration)); + return isSomeSymbolAssignedWorker(rootDeclaration.name); + } + function isSomeSymbolAssignedWorker(node) { + if (node.kind === 80 /* Identifier */) { + return isSymbolAssigned(getSymbolOfDeclaration(node.parent)); + } + return some(node.elements, (e) => e.kind !== 232 /* OmittedExpression */ && isSomeSymbolAssignedWorker(e.name)); + } + function hasParentWithAssignmentsMarked(node) { + return !!findAncestor(node.parent, (node2) => isFunctionOrSourceFile(node2) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */)); + } + function isFunctionOrSourceFile(node) { + return isFunctionLikeDeclaration(node) || isSourceFile(node); + } + function markNodeAssignments(node) { + switch (node.kind) { + case 80 /* Identifier */: + if (isAssignmentTarget(node)) { + const symbol = getResolvedSymbol(node); + if (isParameterOrMutableLocalVariable(symbol) && symbol.lastAssignmentPos !== Number.MAX_VALUE) { + const referencingFunction = findAncestor(node, isFunctionOrSourceFile); + const declaringFunction = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); + symbol.lastAssignmentPos = referencingFunction === declaringFunction ? extendAssignmentPosition(node, symbol.valueDeclaration) : Number.MAX_VALUE; + } + } + return; + case 281 /* ExportSpecifier */: + const exportDeclaration = node.parent.parent; + if (!node.isTypeOnly && !exportDeclaration.isTypeOnly && !exportDeclaration.moduleSpecifier) { + const symbol = resolveEntityName( + node.propertyName || node.name, + 111551 /* Value */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true + ); + if (symbol && isParameterOrMutableLocalVariable(symbol)) { + symbol.lastAssignmentPos = Number.MAX_VALUE; + } + } + return; + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + return; + } + if (isTypeNode(node)) { + return; + } + forEachChild(node, markNodeAssignments); + } + function extendAssignmentPosition(node, declaration) { + let pos = node.pos; + while (node && node.pos > declaration.pos) { + switch (node.kind) { + case 243 /* VariableStatement */: + case 244 /* ExpressionStatement */: + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + case 254 /* WithStatement */: + case 255 /* SwitchStatement */: + case 258 /* TryStatement */: + case 263 /* ClassDeclaration */: + pos = node.end; + } + node = node.parent; + } + return pos; + } + function isConstantVariable(symbol) { + return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */) !== 0; + } + function isParameterOrMutableLocalVariable(symbol) { + const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration); + return !!declaration && (isParameter(declaration) || isVariableDeclaration(declaration) && (isCatchClause(declaration.parent) || isMutableLocalVariableDeclaration(declaration))); + } + function isMutableLocalVariableDeclaration(declaration) { + return !!(declaration.parent.flags & 1 /* Let */) && !(getCombinedModifierFlags(declaration) & 32 /* Export */ || declaration.parent.parent.kind === 243 /* VariableStatement */ && isGlobalSourceFile(declaration.parent.parent.parent)); + } + function parameterInitializerContainsUndefined(declaration) { + const links = getNodeLinks(declaration); + if (links.parameterInitializerContainsUndefined === void 0) { + if (!pushTypeResolution(declaration, 8 /* ParameterInitializerContainsUndefined */)) { + reportCircularityError(declaration.symbol); + return true; + } + const containsUndefined = !!hasTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */), 16777216 /* IsUndefined */); + if (!popTypeResolution()) { + reportCircularityError(declaration.symbol); + return true; + } + links.parameterInitializerContainsUndefined ?? (links.parameterInitializerContainsUndefined = containsUndefined); + } + return links.parameterInitializerContainsUndefined; + } + function removeOptionalityFromDeclaredType(declaredType, declaration) { + const removeUndefined = strictNullChecks && declaration.kind === 169 /* Parameter */ && declaration.initializer && hasTypeFacts(declaredType, 16777216 /* IsUndefined */) && !parameterInitializerContainsUndefined(declaration); + return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType; + } + function isConstraintPosition(type, node) { + const parent = node.parent; + return parent.kind === 211 /* PropertyAccessExpression */ || parent.kind === 166 /* QualifiedName */ || parent.kind === 213 /* CallExpression */ && parent.expression === node || parent.kind === 214 /* NewExpression */ && parent.expression === node || parent.kind === 212 /* ElementAccessExpression */ && parent.expression === node && !(someType(type, isGenericTypeWithoutNullableConstraint) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression))); + } + function isGenericTypeWithUnionConstraint(type) { + return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithUnionConstraint) : !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */)); + } + function isGenericTypeWithoutNullableConstraint(type) { + return type.flags & 2097152 /* Intersection */ ? some(type.types, isGenericTypeWithoutNullableConstraint) : !!(type.flags & 465829888 /* Instantiable */ && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304 /* Nullable */)); + } + function hasContextualTypeWithNoGenericTypes(node, checkMode) { + const contextualType = (isIdentifier(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node)) && !((isJsxOpeningElement(node.parent) || isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) && (checkMode && checkMode & 32 /* RestBindingElement */ ? getContextualType(node, 8 /* SkipBindingPatterns */) : getContextualType( + node, + /*contextFlags*/ + void 0 + )); + return contextualType && !isGenericType(contextualType); + } + function getNarrowableTypeForReference(type, reference, checkMode) { + if (isNoInferType(type)) { + type = type.baseType; + } + const substituteConstraints = !(checkMode && checkMode & 2 /* Inferential */) && someType(type, isGenericTypeWithUnionConstraint) && (isConstraintPosition(type, reference) || hasContextualTypeWithNoGenericTypes(reference, checkMode)); + return substituteConstraints ? mapType(type, getBaseConstraintOrType) : type; + } + function isExportOrExportExpression(location) { + return !!findAncestor(location, (n) => { + const parent = n.parent; + if (parent === void 0) { + return "quit"; + } + if (isExportAssignment(parent)) { + return parent.expression === n && isEntityNameExpression(n); + } + if (isExportSpecifier(parent)) { + return parent.name === n || parent.propertyName === n; + } + return false; + }); + } + function markLinkedReferences(location, hint, propSymbol, parentType) { + if (!canCollectSymbolAliasAccessabilityData) { + return; + } + if (location.flags & 33554432 /* Ambient */ && !isPropertySignature(location) && !isPropertyDeclaration(location)) { + return; + } + switch (hint) { + case 1 /* Identifier */: + return markIdentifierAliasReferenced(location); + case 2 /* Property */: + return markPropertyAliasReferenced(location, propSymbol, parentType); + case 3 /* ExportAssignment */: + return markExportAssignmentAliasReferenced(location); + case 4 /* Jsx */: + return markJsxAliasReferenced(location); + case 5 /* AsyncFunction */: + return markAsyncFunctionAliasReferenced(location); + case 6 /* ExportImportEquals */: + return markImportEqualsAliasReferenced(location); + case 7 /* ExportSpecifier */: + return markExportSpecifierAliasReferenced(location); + case 8 /* Decorator */: + return markDecoratorAliasReferenced(location); + case 0 /* Unspecified */: { + if (isIdentifier(location) && (isExpressionNode(location) || isShorthandPropertyAssignment(location.parent) || isImportEqualsDeclaration(location.parent) && location.parent.moduleReference === location) && shouldMarkIdentifierAliasReferenced(location)) { + if (isPropertyAccessOrQualifiedName(location.parent)) { + const left = isPropertyAccessExpression(location.parent) ? location.parent.expression : location.parent.left; + if (left !== location) return; + } + markIdentifierAliasReferenced(location); + return; + } + if (isPropertyAccessOrQualifiedName(location)) { + let topProp = location; + while (isPropertyAccessOrQualifiedName(topProp)) { + if (isPartOfTypeNode(topProp)) return; + topProp = topProp.parent; + } + return markPropertyAliasReferenced(location); + } + if (isExportAssignment(location)) { + return markExportAssignmentAliasReferenced(location); + } + if (isJsxOpeningLikeElement(location) || isJsxOpeningFragment(location)) { + return markJsxAliasReferenced(location); + } + if (isImportEqualsDeclaration(location)) { + if (isInternalModuleImportEqualsDeclaration(location) || checkExternalImportOrExportDeclaration(location)) { + return markImportEqualsAliasReferenced(location); + } + return; + } + if (isExportSpecifier(location)) { + return markExportSpecifierAliasReferenced(location); + } + if (isFunctionLikeDeclaration(location) || isMethodSignature(location)) { + markAsyncFunctionAliasReferenced(location); + } + if (!compilerOptions.emitDecoratorMetadata) { + return; + } + if (!canHaveDecorators(location) || !hasDecorators(location) || !location.modifiers || !nodeCanBeDecorated(legacyDecorators, location, location.parent, location.parent.parent)) { + return; + } + return markDecoratorAliasReferenced(location); + } + default: + Debug.assertNever(hint, `Unhandled reference hint: ${hint}`); + } + } + function markIdentifierAliasReferenced(location) { + const symbol = getResolvedSymbol(location); + if (symbol && symbol !== argumentsSymbol && symbol !== unknownSymbol && !isThisInTypeQuery(location)) { + markAliasReferenced(symbol, location); + } + } + function markPropertyAliasReferenced(location, propSymbol, parentType) { + const left = isPropertyAccessExpression(location) ? location.expression : location.left; + if (isThisIdentifier(left) || !isIdentifier(left)) { + return; + } + const parentSymbol = getResolvedSymbol(left); + if (!parentSymbol || parentSymbol === unknownSymbol) { + return; + } + if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location)) { + markAliasReferenced(parentSymbol, location); + return; + } + const leftType = parentType || checkExpressionCached(left); + if (isTypeAny(leftType) || leftType === silentNeverType) { + markAliasReferenced(parentSymbol, location); + return; + } + let prop = propSymbol; + if (!prop && !parentType) { + const right = isPropertyAccessExpression(location) ? location.name : location.right; + const lexicallyScopedSymbol = isPrivateIdentifier(right) && lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right); + const assignmentKind = getAssignmentTargetKind(location); + const apparentType = getApparentType(assignmentKind !== 0 /* None */ || isMethodAccessForCall(location) ? getWidenedType(leftType) : leftType); + prop = isPrivateIdentifier(right) ? lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(apparentType, lexicallyScopedSymbol) || void 0 : getPropertyOfType(apparentType, right.escapedText); + } + if (!(prop && (isConstEnumOrConstEnumOnlyModule(prop) || prop.flags & 8 /* EnumMember */ && location.parent.kind === 306 /* EnumMember */))) { + markAliasReferenced(parentSymbol, location); + } + return; + } + function markExportAssignmentAliasReferenced(location) { + if (isIdentifier(location.expression)) { + const id = location.expression; + const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( + id, + -1 /* All */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + location + )); + if (sym) { + markAliasReferenced(sym, id); + } + } + } + function markJsxAliasReferenced(node) { + if (!getJsxNamespaceContainerForImplicitImport(node)) { + const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.Cannot_find_name_0 : void 0; + const jsxFactoryNamespace = getJsxNamespace(node); + const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node; + let jsxFactorySym; + if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) { + jsxFactorySym = resolveName( + jsxFactoryLocation, + jsxFactoryNamespace, + 111551 /* Value */, + jsxFactoryRefErr, + /*isUse*/ + true + ); + } + if (jsxFactorySym) { + jsxFactorySym.isReferenced = -1 /* All */; + if (canCollectSymbolAliasAccessabilityData && jsxFactorySym.flags & 2097152 /* Alias */ && !getTypeOnlyAliasDeclaration(jsxFactorySym)) { + markAliasSymbolAsReferenced(jsxFactorySym); + } + } + if (isJsxOpeningFragment(node)) { + const file = getSourceFileOfNode(node); + const localJsxNamespace = getLocalJsxNamespace(file); + if (localJsxNamespace) { + resolveName( + jsxFactoryLocation, + localJsxNamespace, + 111551 /* Value */, + jsxFactoryRefErr, + /*isUse*/ + true + ); + } + } + } + return; + } + function markAsyncFunctionAliasReferenced(location) { + if (languageVersion < 2 /* ES2015 */) { + if (getFunctionFlags(location) & 2 /* Async */) { + const returnTypeNode = getEffectiveReturnTypeNode(location); + markTypeNodeAsReferenced(returnTypeNode); + } + } + } + function markImportEqualsAliasReferenced(location) { + if (hasSyntacticModifier(location, 32 /* Export */)) { + markExportAsReferenced(location); + } + } + function markExportSpecifierAliasReferenced(location) { + if (!location.parent.parent.moduleSpecifier && !location.isTypeOnly && !location.parent.parent.isTypeOnly) { + const exportedName = location.propertyName || location.name; + const symbol = resolveName( + exportedName, + exportedName.escapedText, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { + } else { + const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); + if (!target || getSymbolFlags(target) & 111551 /* Value */) { + markExportAsReferenced(location); + markIdentifierAliasReferenced(location.propertyName || location.name); + } + } + return; + } + } + function markDecoratorAliasReferenced(node) { + if (compilerOptions.emitDecoratorMetadata) { + const firstDecorator = find(node.modifiers, isDecorator); + if (!firstDecorator) { + return; + } + checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */); + switch (node.kind) { + case 263 /* ClassDeclaration */: + const constructor = getFirstConstructorWithBody(node); + if (constructor) { + for (const parameter of constructor.parameters) { + markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); + } + } + break; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const otherKind = node.kind === 177 /* GetAccessor */ ? 178 /* SetAccessor */ : 177 /* GetAccessor */; + const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(node), otherKind); + markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor)); + break; + case 174 /* MethodDeclaration */: + for (const parameter of node.parameters) { + markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); + } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(node)); + break; + case 172 /* PropertyDeclaration */: + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveTypeAnnotationNode(node)); + break; + case 169 /* Parameter */: + markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node)); + const containingSignature = node.parent; + for (const parameter of containingSignature.parameters) { + markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter)); + } + markDecoratorMedataDataTypeNodeAsReferenced(getEffectiveReturnTypeNode(containingSignature)); + break; + } + } + } + function markAliasReferenced(symbol, location) { + if (!canCollectSymbolAliasAccessabilityData) { + return; + } + if (isNonLocalAlias( + symbol, + /*excludes*/ + 111551 /* Value */ + ) && !isInTypeQuery(location)) { + const target = resolveAlias(symbol); + if (getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & (111551 /* Value */ | 1048576 /* ExportValue */)) { + if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) { + markAliasSymbolAsReferenced(symbol); + } + } + } + } + function markAliasSymbolAsReferenced(symbol) { + Debug.assert(canCollectSymbolAliasAccessabilityData); + const links = getSymbolLinks(symbol); + if (!links.referenced) { + links.referenced = true; + const node = getDeclarationOfAliasSymbol(symbol); + if (!node) return Debug.fail(); + if (isInternalModuleImportEqualsDeclaration(node)) { + if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) { + const left = getFirstIdentifier(node.moduleReference); + markIdentifierAliasReferenced(left); + } + } + } + } + function markExportAsReferenced(node) { + const symbol = getSymbolOfDeclaration(node); + const target = resolveAlias(symbol); + if (target) { + const markAlias = target === unknownSymbol || getSymbolFlags( + symbol, + /*excludeTypeOnlyMeanings*/ + true + ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target); + if (markAlias) { + markAliasSymbolAsReferenced(symbol); + } + } + } + function markEntityNameOrEntityExpressionAsReference(typeName, forDecoratorMetadata) { + if (!typeName) return; + const rootName = getFirstIdentifier(typeName); + const meaning = (typeName.kind === 80 /* Identifier */ ? 788968 /* Type */ : 1920 /* Namespace */) | 2097152 /* Alias */; + const rootSymbol = resolveName( + rootName, + rootName.escapedText, + meaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (rootSymbol && rootSymbol.flags & 2097152 /* Alias */) { + if (canCollectSymbolAliasAccessabilityData && symbolIsValue(rootSymbol) && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol)) && !getTypeOnlyAliasDeclaration(rootSymbol)) { + markAliasSymbolAsReferenced(rootSymbol); + } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { + const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); + const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration); + if (aliasDeclaration) { + addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); + } + } + } + } + function markTypeNodeAsReferenced(node) { + markEntityNameOrEntityExpressionAsReference( + node && getEntityNameFromTypeNode(node), + /*forDecoratorMetadata*/ + false + ); + } + function markDecoratorMedataDataTypeNodeAsReferenced(node) { + const entityName = getEntityNameForDecoratorMetadata(node); + if (entityName && isEntityName(entityName)) { + markEntityNameOrEntityExpressionAsReference( + entityName, + /*forDecoratorMetadata*/ + true + ); + } + } + function getNarrowedTypeOfSymbol(symbol, location, checkMode) { + var _a; + const type = getTypeOfSymbol(symbol, checkMode); + const declaration = symbol.valueDeclaration; + if (declaration) { + if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { + const parent = declaration.parent.parent; + const rootDeclaration = getRootDeclaration(parent); + if (rootDeclaration.kind === 260 /* VariableDeclaration */ && getCombinedNodeFlagsCached(rootDeclaration) & 6 /* Constant */ || rootDeclaration.kind === 169 /* Parameter */) { + const links = getNodeLinks(parent); + if (!(links.flags & 4194304 /* InCheckIdentifier */)) { + links.flags |= 4194304 /* InCheckIdentifier */; + const parentType = getTypeForBindingElementParent(parent, 0 /* Normal */); + const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType); + links.flags &= ~4194304 /* InCheckIdentifier */; + if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ && isSomeSymbolAssigned(rootDeclaration))) { + const pattern = declaration.parent; + const narrowedType = getFlowTypeOfReference( + pattern, + parentTypeConstraint, + parentTypeConstraint, + /*flowContainer*/ + void 0, + location.flowNode + ); + if (narrowedType.flags & 131072 /* Never */) { + return neverType; + } + return getBindingElementTypeFromParentType( + declaration, + narrowedType, + /*noTupleBoundsCheck*/ + true + ); + } + } + } + } + if (isParameter(declaration) && !declaration.type && !declaration.initializer && !declaration.dotDotDotToken) { + const func = declaration.parent; + if (func.parameters.length >= 2 && isContextSensitiveFunctionOrObjectLiteralMethod(func)) { + const contextualSignature = getContextualSignature(func); + if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) { + const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a = getInferenceContext(func)) == null ? void 0 : _a.nonFixingMapper)); + if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !some(func.parameters, isSomeSymbolAssigned)) { + const narrowedType = getFlowTypeOfReference( + func, + restType, + restType, + /*flowContainer*/ + void 0, + location.flowNode + ); + const index = func.parameters.indexOf(declaration) - (getThisParameter(func) ? 1 : 0); + return getIndexedAccessType(narrowedType, getNumberLiteralType(index)); + } + } + } + } + } + return type; + } + function checkIdentifierCalculateNodeCheckFlags(node, symbol) { + if (isThisInTypeQuery(node)) return; + if (symbol === argumentsSymbol) { + if (isInPropertyInitializerOrClassStaticBlock(node)) { + error(node, Diagnostics.arguments_cannot_be_referenced_in_property_initializers); + return; + } + let container = getContainingFunction(node); + if (container) { + if (languageVersion < 2 /* ES2015 */) { + if (container.kind === 219 /* ArrowFunction */) { + error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression); + } else if (hasSyntacticModifier(container, 1024 /* Async */)) { + error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method); + } + } + getNodeLinks(container).flags |= 512 /* CaptureArguments */; + while (container && isArrowFunction(container)) { + container = getContainingFunction(container); + if (container) { + getNodeLinks(container).flags |= 512 /* CaptureArguments */; + } + } + } + return; + } + const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); + const targetSymbol = resolveAliasWithDeprecationCheck(localOrExportSymbol, node); + if (isDeprecatedSymbol(targetSymbol) && isUncalledFunctionReference(node, targetSymbol) && targetSymbol.declarations) { + addDeprecatedSuggestion(node, targetSymbol.declarations, node.escapedText); + } + const declaration = localOrExportSymbol.valueDeclaration; + if (declaration && localOrExportSymbol.flags & 32 /* Class */) { + if (isClassLike(declaration) && declaration.name !== node) { + let container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + while (container.kind !== 307 /* SourceFile */ && container.parent !== declaration) { + container = getThisContainer( + container, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + } + if (container.kind !== 307 /* SourceFile */) { + getNodeLinks(declaration).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(container).flags |= 262144 /* ContainsConstructorReference */; + getNodeLinks(node).flags |= 536870912 /* ConstructorReference */; + } + } + } + checkNestedBlockScopedBinding(node, symbol); + } + function checkIdentifier(node, checkMode) { + if (isThisInTypeQuery(node)) { + return checkThisExpression(node); + } + const symbol = getResolvedSymbol(node); + if (symbol === unknownSymbol) { + return errorType; + } + checkIdentifierCalculateNodeCheckFlags(node, symbol); + if (symbol === argumentsSymbol) { + if (isInPropertyInitializerOrClassStaticBlock(node)) { + return errorType; + } + return getTypeOfSymbol(symbol); + } + if (shouldMarkIdentifierAliasReferenced(node)) { + markLinkedReferences(node, 1 /* Identifier */); + } + const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); + let declaration = localOrExportSymbol.valueDeclaration; + let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode); + const assignmentKind = getAssignmentTargetKind(node); + if (assignmentKind) { + if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { + const assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_enum : localOrExportSymbol.flags & 32 /* Class */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_class : localOrExportSymbol.flags & 1536 /* Module */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace : localOrExportSymbol.flags & 16 /* Function */ ? Diagnostics.Cannot_assign_to_0_because_it_is_a_function : localOrExportSymbol.flags & 2097152 /* Alias */ ? Diagnostics.Cannot_assign_to_0_because_it_is_an_import : Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable; + error(node, assignmentError, symbolToString(symbol)); + return errorType; + } + if (isReadonlySymbol(localOrExportSymbol)) { + if (localOrExportSymbol.flags & 3 /* Variable */) { + error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol)); + } else { + error(node, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol)); + } + return errorType; + } + } + const isAlias = localOrExportSymbol.flags & 2097152 /* Alias */; + if (localOrExportSymbol.flags & 3 /* Variable */) { + if (assignmentKind === 1 /* Definite */) { + return isInCompoundLikeAssignment(node) ? getBaseTypeOfLiteralType(type) : type; + } + } else if (isAlias) { + declaration = getDeclarationOfAliasSymbol(symbol); + } else { + return type; + } + if (!declaration) { + return type; + } + type = getNarrowableTypeForReference(type, node, checkMode); + const isParameter2 = getRootDeclaration(declaration).kind === 169 /* Parameter */; + const declarationContainer = getControlFlowContainer(declaration); + let flowContainer = getControlFlowContainer(node); + const isOuterVariable = flowContainer !== declarationContainer; + const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); + const isModuleExports = symbol.flags & 134217728 /* ModuleExports */; + const typeIsAutomatic = type === autoType || type === autoArrayType; + const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 235 /* NonNullExpression */; + while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameterOrMutableLocalVariable(localOrExportSymbol) && isPastLastAssignment(localOrExportSymbol, node))) { + flowContainer = getControlFlowContainer(flowContainer); + } + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; + const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); + const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); + if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { + if (flowType === autoType || flowType === autoArrayType) { + if (noImplicitAny) { + error(getNameOfDeclaration(declaration), Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType)); + error(node, Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType)); + } + return convertAutoToAny(flowType); + } + } else if (!assumeInitialized && !containsUndefinedType(type) && containsUndefinedType(flowType)) { + error(node, Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol)); + return type; + } + return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; + } + function isSameScopedBindingElement(node, declaration) { + if (isBindingElement(declaration)) { + const bindingElement = findAncestor(node, isBindingElement); + return bindingElement && getRootDeclaration(bindingElement) === getRootDeclaration(declaration); + } + } + function shouldMarkIdentifierAliasReferenced(node) { + var _a; + const parent = node.parent; + if (parent) { + if (isPropertyAccessExpression(parent) && parent.expression === node) { + return false; + } + if (isExportSpecifier(parent) && parent.isTypeOnly) { + return false; + } + const greatGrandparent = (_a = parent.parent) == null ? void 0 : _a.parent; + if (greatGrandparent && isExportDeclaration(greatGrandparent) && greatGrandparent.isTypeOnly) { + return false; + } + } + return true; + } + function isInsideFunctionOrInstancePropertyInitializer(node, threshold) { + return !!findAncestor(node, (n) => n === threshold ? "quit" : isFunctionLike(n) || n.parent && isPropertyDeclaration(n.parent) && !hasStaticModifier(n.parent) && n.parent.initializer === n); + } + function getPartOfForStatementContainingNode(node, container) { + return findAncestor(node, (n) => n === container ? "quit" : n === container.initializer || n === container.condition || n === container.incrementor || n === container.statement); + } + function getEnclosingIterationStatement(node) { + return findAncestor(node, (n) => !n || nodeStartsNewLexicalEnvironment(n) ? "quit" : isIterationStatement( + n, + /*lookInLabeledStatements*/ + false + )); + } + function checkNestedBlockScopedBinding(node, symbol) { + if (languageVersion >= 2 /* ES2015 */ || (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 || !symbol.valueDeclaration || isSourceFile(symbol.valueDeclaration) || symbol.valueDeclaration.parent.kind === 299 /* CatchClause */) { + return; + } + const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); + const isCaptured = isInsideFunctionOrInstancePropertyInitializer(node, container); + const enclosingIterationStatement = getEnclosingIterationStatement(container); + if (enclosingIterationStatement) { + if (isCaptured) { + let capturesBlockScopeBindingInLoopBody = true; + if (isForStatement(container)) { + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); + if (varDeclList && varDeclList.parent === container) { + const part = getPartOfForStatementContainingNode(node.parent, container); + if (part) { + const links = getNodeLinks(part); + links.flags |= 8192 /* ContainsCapturedBlockScopeBinding */; + const capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []); + pushIfUnique(capturedBindings, symbol); + if (part === container.initializer) { + capturesBlockScopeBindingInLoopBody = false; + } + } + } + } + if (capturesBlockScopeBindingInLoopBody) { + getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; + } + } + if (isForStatement(container)) { + const varDeclList = getAncestor(symbol.valueDeclaration, 261 /* VariableDeclarationList */); + if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) { + getNodeLinks(symbol.valueDeclaration).flags |= 65536 /* NeedsLoopOutParameter */; + } + } + getNodeLinks(symbol.valueDeclaration).flags |= 32768 /* BlockScopedBindingInLoop */; + } + if (isCaptured) { + getNodeLinks(symbol.valueDeclaration).flags |= 16384 /* CapturedBlockScopedBinding */; + } + } + function isBindingCapturedByNode(node, decl) { + const links = getNodeLinks(node); + return !!links && contains(links.capturedBlockScopeBindings, getSymbolOfDeclaration(decl)); + } + function isAssignedInBodyOfForStatement(node, container) { + let current = node; + while (current.parent.kind === 217 /* ParenthesizedExpression */) { + current = current.parent; + } + let isAssigned = false; + if (isAssignmentTarget(current)) { + isAssigned = true; + } else if (current.parent.kind === 224 /* PrefixUnaryExpression */ || current.parent.kind === 225 /* PostfixUnaryExpression */) { + const expr = current.parent; + isAssigned = expr.operator === 46 /* PlusPlusToken */ || expr.operator === 47 /* MinusMinusToken */; + } + if (!isAssigned) { + return false; + } + return !!findAncestor(current, (n) => n === container ? "quit" : n === container.statement); + } + function captureLexicalThis(node, container) { + getNodeLinks(node).flags |= 2 /* LexicalThis */; + if (container.kind === 172 /* PropertyDeclaration */ || container.kind === 176 /* Constructor */) { + const classNode = container.parent; + getNodeLinks(classNode).flags |= 4 /* CaptureThis */; + } else { + getNodeLinks(container).flags |= 4 /* CaptureThis */; + } + } + function findFirstSuperCall(node) { + return isSuperCall(node) ? node : isFunctionLike(node) ? void 0 : forEachChild(node, findFirstSuperCall); + } + function classDeclarationExtendsNull(classDecl) { + const classSymbol = getSymbolOfDeclaration(classDecl); + const classInstanceType = getDeclaredTypeOfSymbol(classSymbol); + const baseConstructorType = getBaseConstructorTypeOfClass(classInstanceType); + return baseConstructorType === nullWideningType; + } + function checkThisBeforeSuper(node, container, diagnosticMessage) { + const containingClassDecl = container.parent; + const baseTypeNode = getClassExtendsHeritageElement(containingClassDecl); + if (baseTypeNode && !classDeclarationExtendsNull(containingClassDecl)) { + if (canHaveFlowNode(node) && node.flowNode && !isPostSuperFlowNode( + node.flowNode, + /*noCacheCheck*/ + false + )) { + error(node, diagnosticMessage); + } + } + } + function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) { + if (isPropertyDeclaration(container) && hasStaticModifier(container) && legacyDecorators && container.initializer && textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && hasDecorators(container.parent)) { + error(thisExpression, Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class); + } + } + function checkThisExpression(node) { + const isNodeInTypeQuery = isInTypeQuery(node); + let container = getThisContainer( + node, + /*includeArrowFunctions*/ + true, + /*includeClassComputedPropertyName*/ + true + ); + let capturedByArrowFunction = false; + let thisInComputedPropertyName = false; + if (container.kind === 176 /* Constructor */) { + checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class); + } + while (true) { + if (container.kind === 219 /* ArrowFunction */) { + container = getThisContainer( + container, + /*includeArrowFunctions*/ + false, + !thisInComputedPropertyName + ); + capturedByArrowFunction = true; + } + if (container.kind === 167 /* ComputedPropertyName */) { + container = getThisContainer( + container, + !capturedByArrowFunction, + /*includeClassComputedPropertyName*/ + false + ); + thisInComputedPropertyName = true; + continue; + } + break; + } + checkThisInStaticClassFieldInitializerInDecoratedClass(node, container); + if (thisInComputedPropertyName) { + error(node, Diagnostics.this_cannot_be_referenced_in_a_computed_property_name); + } else { + switch (container.kind) { + case 267 /* ModuleDeclaration */: + error(node, Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body); + break; + case 266 /* EnumDeclaration */: + error(node, Diagnostics.this_cannot_be_referenced_in_current_location); + break; + } + } + if (!isNodeInTypeQuery && capturedByArrowFunction && languageVersion < 2 /* ES2015 */) { + captureLexicalThis(node, container); + } + const type = tryGetThisTypeAt( + node, + /*includeGlobalThis*/ + true, + container + ); + if (noImplicitThis) { + const globalThisType2 = getTypeOfSymbol(globalThisSymbol); + if (type === globalThisType2 && capturedByArrowFunction) { + error(node, Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this); + } else if (!type) { + const diag2 = error(node, Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation); + if (!isSourceFile(container)) { + const outsideThis = tryGetThisTypeAt(container); + if (outsideThis && outsideThis !== globalThisType2) { + addRelatedInfo(diag2, createDiagnosticForNode(container, Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container)); + } + } + } + } + return type || anyType; + } + function tryGetThisTypeAt(node, includeGlobalThis = true, container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + )) { + const isInJS = isInJSFile(node); + if (isFunctionLike(container) && (!isInParameterInitializerBeforeContainingFunction(node) || getThisParameter(container))) { + let thisType = getThisTypeOfDeclaration(container) || isInJS && getTypeForThisExpressionFromJSDoc(container); + if (!thisType) { + const className = getClassNameFromPrototypeMethod(container); + if (isInJS && className) { + const classSymbol = checkExpression(className).symbol; + if (classSymbol && classSymbol.members && classSymbol.flags & 16 /* Function */) { + thisType = getDeclaredTypeOfSymbol(classSymbol).thisType; + } + } else if (isJSConstructor(container)) { + thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType; + } + thisType || (thisType = getContextualThisParameterType(container)); + } + if (thisType) { + return getFlowTypeOfReference(node, thisType); + } + } + if (isClassLike(container.parent)) { + const symbol = getSymbolOfDeclaration(container.parent); + const type = isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType; + return getFlowTypeOfReference(node, type); + } + if (isSourceFile(container)) { + if (container.commonJsModuleIndicator) { + const fileSymbol = getSymbolOfDeclaration(container); + return fileSymbol && getTypeOfSymbol(fileSymbol); + } else if (container.externalModuleIndicator) { + return undefinedType; + } else if (includeGlobalThis) { + return getTypeOfSymbol(globalThisSymbol); + } + } + } + function getExplicitThisType(node) { + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + if (isFunctionLike(container)) { + const signature = getSignatureFromDeclaration(container); + if (signature.thisParameter) { + return getExplicitTypeOfSymbol(signature.thisParameter); + } + } + if (isClassLike(container.parent)) { + const symbol = getSymbolOfDeclaration(container.parent); + return isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType; + } + } + function getClassNameFromPrototypeMethod(container) { + if (container.kind === 218 /* FunctionExpression */ && isBinaryExpression(container.parent) && getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) { + return container.parent.left.expression.expression; + } else if (container.kind === 174 /* MethodDeclaration */ && container.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent) && getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) { + return container.parent.parent.left.expression; + } else if (container.kind === 218 /* FunctionExpression */ && container.parent.kind === 303 /* PropertyAssignment */ && container.parent.parent.kind === 210 /* ObjectLiteralExpression */ && isBinaryExpression(container.parent.parent.parent) && getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) { + return container.parent.parent.parent.left.expression; + } else if (container.kind === 218 /* FunctionExpression */ && isPropertyAssignment(container.parent) && isIdentifier(container.parent.name) && (container.parent.name.escapedText === "value" || container.parent.name.escapedText === "get" || container.parent.name.escapedText === "set") && isObjectLiteralExpression(container.parent.parent) && isCallExpression(container.parent.parent.parent) && container.parent.parent.parent.arguments[2] === container.parent.parent && getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + return container.parent.parent.parent.arguments[0].expression; + } else if (isMethodDeclaration(container) && isIdentifier(container.name) && (container.name.escapedText === "value" || container.name.escapedText === "get" || container.name.escapedText === "set") && isObjectLiteralExpression(container.parent) && isCallExpression(container.parent.parent) && container.parent.parent.arguments[2] === container.parent && getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) { + return container.parent.parent.arguments[0].expression; + } + } + function getTypeForThisExpressionFromJSDoc(node) { + const thisTag = getJSDocThisTag(node); + if (thisTag && thisTag.typeExpression) { + return getTypeFromTypeNode(thisTag.typeExpression); + } + const signature = getSignatureOfTypeTag(node); + if (signature) { + return getThisTypeOfSignature(signature); + } + } + function isInConstructorArgumentInitializer(node, constructorDecl) { + return !!findAncestor(node, (n) => isFunctionLikeDeclaration(n) ? "quit" : n.kind === 169 /* Parameter */ && n.parent === constructorDecl); + } + function checkSuperExpression(node) { + const isCallExpression2 = node.parent.kind === 213 /* CallExpression */ && node.parent.expression === node; + const immediateContainer = getSuperContainer( + node, + /*stopOnFunctions*/ + true + ); + let container = immediateContainer; + let needToCaptureLexicalThis = false; + let inAsyncFunction = false; + if (!isCallExpression2) { + while (container && container.kind === 219 /* ArrowFunction */) { + if (hasSyntacticModifier(container, 1024 /* Async */)) inAsyncFunction = true; + container = getSuperContainer( + container, + /*stopOnFunctions*/ + true + ); + needToCaptureLexicalThis = languageVersion < 2 /* ES2015 */; + } + if (container && hasSyntacticModifier(container, 1024 /* Async */)) inAsyncFunction = true; + } + let nodeCheckFlag = 0; + if (!container || !isLegalUsageOfSuperExpression(container)) { + const current = findAncestor(node, (n) => n === container ? "quit" : n.kind === 167 /* ComputedPropertyName */); + if (current && current.kind === 167 /* ComputedPropertyName */) { + error(node, Diagnostics.super_cannot_be_referenced_in_a_computed_property_name); + } else if (isCallExpression2) { + error(node, Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors); + } else if (!container || !container.parent || !(isClassLike(container.parent) || container.parent.kind === 210 /* ObjectLiteralExpression */)) { + error(node, Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions); + } else { + error(node, Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class); + } + return errorType; + } + if (!isCallExpression2 && immediateContainer.kind === 176 /* Constructor */) { + checkThisBeforeSuper(node, container, Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class); + } + if (isStatic(container) || isCallExpression2) { + nodeCheckFlag = 32 /* SuperStatic */; + if (!isCallExpression2 && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && (isPropertyDeclaration(container) || isClassStaticBlockDeclaration(container))) { + forEachEnclosingBlockScopeContainer(node.parent, (current) => { + if (!isSourceFile(current) || isExternalOrCommonJsModule(current)) { + getNodeLinks(current).flags |= 2097152 /* ContainsSuperPropertyInStaticInitializer */; + } + }); + } + } else { + nodeCheckFlag = 16 /* SuperInstance */; + } + getNodeLinks(node).flags |= nodeCheckFlag; + if (container.kind === 174 /* MethodDeclaration */ && inAsyncFunction) { + if (isSuperProperty(node.parent) && isAssignmentTarget(node.parent)) { + getNodeLinks(container).flags |= 256 /* MethodWithSuperPropertyAssignmentInAsync */; + } else { + getNodeLinks(container).flags |= 128 /* MethodWithSuperPropertyAccessInAsync */; + } + } + if (needToCaptureLexicalThis) { + captureLexicalThis(node.parent, container); + } + if (container.parent.kind === 210 /* ObjectLiteralExpression */) { + if (languageVersion < 2 /* ES2015 */) { + error(node, Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher); + return errorType; + } else { + return anyType; + } + } + const classLikeDeclaration = container.parent; + if (!getClassExtendsHeritageElement(classLikeDeclaration)) { + error(node, Diagnostics.super_can_only_be_referenced_in_a_derived_class); + return errorType; + } + if (classDeclarationExtendsNull(classLikeDeclaration)) { + return isCallExpression2 ? errorType : nullWideningType; + } + const classType = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(classLikeDeclaration)); + const baseClassType = classType && getBaseTypes(classType)[0]; + if (!baseClassType) { + return errorType; + } + if (container.kind === 176 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) { + error(node, Diagnostics.super_cannot_be_referenced_in_constructor_arguments); + return errorType; + } + return nodeCheckFlag === 32 /* SuperStatic */ ? getBaseConstructorTypeOfClass(classType) : getTypeWithThisArgument(baseClassType, classType.thisType); + function isLegalUsageOfSuperExpression(container2) { + if (isCallExpression2) { + return container2.kind === 176 /* Constructor */; + } else { + if (isClassLike(container2.parent) || container2.parent.kind === 210 /* ObjectLiteralExpression */) { + if (isStatic(container2)) { + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 175 /* ClassStaticBlockDeclaration */; + } else { + return container2.kind === 174 /* MethodDeclaration */ || container2.kind === 173 /* MethodSignature */ || container2.kind === 177 /* GetAccessor */ || container2.kind === 178 /* SetAccessor */ || container2.kind === 172 /* PropertyDeclaration */ || container2.kind === 171 /* PropertySignature */ || container2.kind === 176 /* Constructor */; + } + } + } + return false; + } + } + function getContainingObjectLiteral(func) { + return (func.kind === 174 /* MethodDeclaration */ || func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) && func.parent.kind === 210 /* ObjectLiteralExpression */ ? func.parent : func.kind === 218 /* FunctionExpression */ && func.parent.kind === 303 /* PropertyAssignment */ ? func.parent.parent : void 0; + } + function getThisTypeArgument(type) { + return getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : void 0; + } + function getThisTypeFromContextualType(type) { + return mapType(type, (t) => { + return t.flags & 2097152 /* Intersection */ ? forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t); + }); + } + function getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType) { + let literal = containingLiteral; + let type = contextualType; + while (type) { + const thisType = getThisTypeFromContextualType(type); + if (thisType) { + return thisType; + } + if (literal.parent.kind !== 303 /* PropertyAssignment */) { + break; + } + literal = literal.parent.parent; + type = getApparentTypeOfContextualType( + literal, + /*contextFlags*/ + void 0 + ); + } + } + function getContextualThisParameterType(func) { + if (func.kind === 219 /* ArrowFunction */) { + return void 0; + } + if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) { + const contextualSignature = getContextualSignature(func); + if (contextualSignature) { + const thisParameter = contextualSignature.thisParameter; + if (thisParameter) { + return getTypeOfSymbol(thisParameter); + } + } + } + const inJs = isInJSFile(func); + if (noImplicitThis || inJs) { + const containingLiteral = getContainingObjectLiteral(func); + if (containingLiteral) { + const contextualType = getApparentTypeOfContextualType( + containingLiteral, + /*contextFlags*/ + void 0 + ); + const thisType = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + if (thisType) { + return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral))); + } + return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral)); + } + const parent = walkUpParenthesizedExpressions(func.parent); + if (isAssignmentExpression(parent)) { + const target = parent.left; + if (isAccessExpression(target)) { + const { expression } = target; + if (inJs && isIdentifier(expression)) { + const sourceFile = getSourceFileOfNode(parent); + if (sourceFile.commonJsModuleIndicator && getResolvedSymbol(expression) === sourceFile.symbol) { + return void 0; + } + } + return getWidenedType(checkExpressionCached(expression)); + } + } + } + return void 0; + } + function getContextuallyTypedParameterType(parameter) { + const func = parameter.parent; + if (!isContextSensitiveFunctionOrObjectLiteralMethod(func)) { + return void 0; + } + const iife = getImmediatelyInvokedFunctionExpression(func); + if (iife && iife.arguments) { + const args = getEffectiveCallArguments(iife); + const indexOfParameter = func.parameters.indexOf(parameter); + if (parameter.dotDotDotToken) { + return getSpreadArgumentType( + args, + indexOfParameter, + args.length, + anyType, + /*context*/ + void 0, + 0 /* Normal */ + ); + } + const links = getNodeLinks(iife); + const cached = links.resolvedSignature; + links.resolvedSignature = anySignature; + const type = indexOfParameter < args.length ? getWidenedLiteralType(checkExpression(args[indexOfParameter])) : parameter.initializer ? void 0 : undefinedWideningType; + links.resolvedSignature = cached; + return type; + } + const contextualSignature = getContextualSignature(func); + if (contextualSignature) { + const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0); + return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ? getRestTypeAtPosition(contextualSignature, index) : tryGetTypeAtPosition(contextualSignature, index); + } + } + function getContextualTypeForVariableLikeDeclaration(declaration, contextFlags) { + const typeNode = getEffectiveTypeAnnotationNode(declaration) || (isInJSFile(declaration) ? tryGetJSDocSatisfiesTypeNode(declaration) : void 0); + if (typeNode) { + return getTypeFromTypeNode(typeNode); + } + switch (declaration.kind) { + case 169 /* Parameter */: + return getContextuallyTypedParameterType(declaration); + case 208 /* BindingElement */: + return getContextualTypeForBindingElement(declaration, contextFlags); + case 172 /* PropertyDeclaration */: + if (isStatic(declaration)) { + return getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags); + } + } + } + function getContextualTypeForBindingElement(declaration, contextFlags) { + const parent = declaration.parent.parent; + const name = declaration.propertyName || declaration.name; + const parentType = getContextualTypeForVariableLikeDeclaration(parent, contextFlags) || parent.kind !== 208 /* BindingElement */ && parent.initializer && checkDeclarationInitializer(parent, declaration.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */); + if (!parentType || isBindingPattern(name) || isComputedNonLiteralName(name)) return void 0; + if (parent.name.kind === 207 /* ArrayBindingPattern */) { + const index = indexOfNode(declaration.parent.elements, declaration); + if (index < 0) return void 0; + return getContextualTypeForElementExpression(parentType, index); + } + const nameType = getLiteralTypeFromPropertyName(name); + if (isTypeUsableAsPropertyName(nameType)) { + const text = getPropertyNameFromType(nameType); + return getTypeOfPropertyOfType(parentType, text); + } + } + function getContextualTypeForStaticPropertyDeclaration(declaration, contextFlags) { + const parentType = isExpression(declaration.parent) && getContextualType(declaration.parent, contextFlags); + if (!parentType) return void 0; + return getTypeOfPropertyOfContextualType(parentType, getSymbolOfDeclaration(declaration).escapedName); + } + function getContextualTypeForInitializerExpression(node, contextFlags) { + const declaration = node.parent; + if (hasInitializer(declaration) && node === declaration.initializer) { + const result = getContextualTypeForVariableLikeDeclaration(declaration, contextFlags); + if (result) { + return result; + } + if (!(contextFlags & 8 /* SkipBindingPatterns */) && isBindingPattern(declaration.name) && declaration.name.elements.length > 0) { + return getTypeFromBindingPattern( + declaration.name, + /*includePatternInType*/ + true, + /*reportErrors*/ + false + ); + } + } + return void 0; + } + function getContextualTypeForReturnExpression(node, contextFlags) { + const func = getContainingFunction(node); + if (func) { + let contextualReturnType = getContextualReturnType(func, contextFlags); + if (contextualReturnType) { + const functionFlags = getFunctionFlags(func); + if (functionFlags & 1 /* Generator */) { + const isAsyncGenerator = (functionFlags & 2 /* Async */) !== 0; + if (contextualReturnType.flags & 1048576 /* Union */) { + contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, type, isAsyncGenerator)); + } + const iterationReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, contextualReturnType, (functionFlags & 2 /* Async */) !== 0); + if (!iterationReturnType) { + return void 0; + } + contextualReturnType = iterationReturnType; + } + if (functionFlags & 2 /* Async */) { + const contextualAwaitedType = mapType(contextualReturnType, getAwaitedTypeNoAlias); + return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]); + } + return contextualReturnType; + } + } + return void 0; + } + function getContextualTypeForAwaitOperand(node, contextFlags) { + const contextualType = getContextualType(node, contextFlags); + if (contextualType) { + const contextualAwaitedType = getAwaitedTypeNoAlias(contextualType); + return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]); + } + return void 0; + } + function getContextualTypeForYieldOperand(node, contextFlags) { + const func = getContainingFunction(node); + if (func) { + const functionFlags = getFunctionFlags(func); + let contextualReturnType = getContextualReturnType(func, contextFlags); + if (contextualReturnType) { + const isAsyncGenerator = (functionFlags & 2 /* Async */) !== 0; + if (!node.asteriskToken && contextualReturnType.flags & 1048576 /* Union */) { + contextualReturnType = filterType(contextualReturnType, (type) => !!getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, type, isAsyncGenerator)); + } + if (node.asteriskToken) { + const iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(contextualReturnType, isAsyncGenerator); + const yieldType = (iterationTypes == null ? void 0 : iterationTypes.yieldType) ?? silentNeverType; + const returnType = getContextualType(node, contextFlags) ?? silentNeverType; + const nextType = (iterationTypes == null ? void 0 : iterationTypes.nextType) ?? unknownType; + const generatorType = createGeneratorType( + yieldType, + returnType, + nextType, + /*isAsyncGenerator*/ + false + ); + if (isAsyncGenerator) { + const asyncGeneratorType = createGeneratorType( + yieldType, + returnType, + nextType, + /*isAsyncGenerator*/ + true + ); + return getUnionType([generatorType, asyncGeneratorType]); + } + return generatorType; + } + return getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, contextualReturnType, isAsyncGenerator); + } + } + return void 0; + } + function isInParameterInitializerBeforeContainingFunction(node) { + let inBindingInitializer = false; + while (node.parent && !isFunctionLike(node.parent)) { + if (isParameter(node.parent) && (inBindingInitializer || node.parent.initializer === node)) { + return true; + } + if (isBindingElement(node.parent) && node.parent.initializer === node) { + inBindingInitializer = true; + } + node = node.parent; + } + return false; + } + function getContextualIterationType(kind, functionDecl) { + const isAsync = !!(getFunctionFlags(functionDecl) & 2 /* Async */); + const contextualReturnType = getContextualReturnType( + functionDecl, + /*contextFlags*/ + void 0 + ); + if (contextualReturnType) { + return getIterationTypeOfGeneratorFunctionReturnType(kind, contextualReturnType, isAsync) || void 0; + } + return void 0; + } + function getContextualReturnType(functionDecl, contextFlags) { + const returnType = getReturnTypeFromAnnotation(functionDecl); + if (returnType) { + return returnType; + } + const signature = getContextualSignatureForFunctionLikeDeclaration(functionDecl); + if (signature && !isResolvingReturnTypeOfSignature(signature)) { + const returnType2 = getReturnTypeOfSignature(signature); + const functionFlags = getFunctionFlags(functionDecl); + if (functionFlags & 1 /* Generator */) { + return filterType(returnType2, (t) => { + return !!(t.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 58982400 /* InstantiableNonPrimitive */)) || checkGeneratorInstantiationAssignabilityToReturnType( + t, + functionFlags, + /*errorNode*/ + void 0 + ); + }); + } + if (functionFlags & 2 /* Async */) { + return filterType(returnType2, (t) => { + return !!(t.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 58982400 /* InstantiableNonPrimitive */)) || !!getAwaitedTypeOfPromise(t); + }); + } + return returnType2; + } + const iife = getImmediatelyInvokedFunctionExpression(functionDecl); + if (iife) { + return getContextualType(iife, contextFlags); + } + return void 0; + } + function getContextualTypeForArgument(callTarget, arg) { + const args = getEffectiveCallArguments(callTarget); + const argIndex = args.indexOf(arg); + return argIndex === -1 ? void 0 : getContextualTypeForArgumentAtIndex(callTarget, argIndex); + } + function getContextualTypeForArgumentAtIndex(callTarget, argIndex) { + if (isImportCall(callTarget)) { + return argIndex === 0 ? stringType : argIndex === 1 ? getGlobalImportCallOptionsType( + /*reportErrors*/ + false + ) : anyType; + } + const signature = getNodeLinks(callTarget).resolvedSignature === resolvingSignature ? resolvingSignature : getResolvedSignature(callTarget); + if (isJsxOpeningLikeElement(callTarget) && argIndex === 0) { + return getEffectiveFirstArgumentForJsxSignature(signature, callTarget); + } + const restIndex = signature.parameters.length - 1; + return signatureHasRestParameter(signature) && argIndex >= restIndex ? getIndexedAccessType(getTypeOfSymbol(signature.parameters[restIndex]), getNumberLiteralType(argIndex - restIndex), 256 /* Contextual */) : getTypeAtPosition(signature, argIndex); + } + function getContextualTypeForDecorator(decorator) { + const signature = getDecoratorCallSignature(decorator); + return signature ? getOrCreateTypeFromSignature(signature) : void 0; + } + function getContextualTypeForSubstitutionExpression(template, substitutionExpression) { + if (template.parent.kind === 215 /* TaggedTemplateExpression */) { + return getContextualTypeForArgument(template.parent, substitutionExpression); + } + return void 0; + } + function getContextualTypeForBinaryOperand(node, contextFlags) { + const binaryExpression = node.parent; + const { left, operatorToken, right } = binaryExpression; + switch (operatorToken.kind) { + case 64 /* EqualsToken */: + case 77 /* AmpersandAmpersandEqualsToken */: + case 76 /* BarBarEqualsToken */: + case 78 /* QuestionQuestionEqualsToken */: + return node === right ? getContextualTypeForAssignmentDeclaration(binaryExpression) : void 0; + case 57 /* BarBarToken */: + case 61 /* QuestionQuestionToken */: + const type = getContextualType(binaryExpression, contextFlags); + return node === right && (type && type.pattern || !type && !isDefaultedExpandoInitializer(binaryExpression)) ? getTypeOfExpression(left) : type; + case 56 /* AmpersandAmpersandToken */: + case 28 /* CommaToken */: + return node === right ? getContextualType(binaryExpression, contextFlags) : void 0; + default: + return void 0; + } + } + function getSymbolForExpression(e) { + if (canHaveSymbol(e) && e.symbol) { + return e.symbol; + } + if (isIdentifier(e)) { + return getResolvedSymbol(e); + } + if (isPropertyAccessExpression(e)) { + const lhsType = getTypeOfExpression(e.expression); + return isPrivateIdentifier(e.name) ? tryGetPrivateIdentifierPropertyOfType(lhsType, e.name) : getPropertyOfType(lhsType, e.name.escapedText); + } + if (isElementAccessExpression(e)) { + const propType = checkExpressionCached(e.argumentExpression); + if (!isTypeUsableAsPropertyName(propType)) { + return void 0; + } + const lhsType = getTypeOfExpression(e.expression); + return getPropertyOfType(lhsType, getPropertyNameFromType(propType)); + } + return void 0; + function tryGetPrivateIdentifierPropertyOfType(type, id) { + const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(id.escapedText, id); + return lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(type, lexicallyScopedSymbol); + } + } + function getContextualTypeForAssignmentDeclaration(binaryExpression) { + var _a, _b; + const kind = getAssignmentDeclarationKind(binaryExpression); + switch (kind) { + case 0 /* None */: + case 4 /* ThisProperty */: + const lhsSymbol = getSymbolForExpression(binaryExpression.left); + const decl = lhsSymbol && lhsSymbol.valueDeclaration; + if (decl && (isPropertyDeclaration(decl) || isPropertySignature(decl))) { + const overallAnnotation = getEffectiveTypeAnnotationNode(decl); + return overallAnnotation && instantiateType(getTypeFromTypeNode(overallAnnotation), getSymbolLinks(lhsSymbol).mapper) || (isPropertyDeclaration(decl) ? decl.initializer && getTypeOfExpression(binaryExpression.left) : void 0); + } + if (kind === 0 /* None */) { + return getTypeOfExpression(binaryExpression.left); + } + return getContextualTypeForThisPropertyAssignment(binaryExpression); + case 5 /* Property */: + if (isPossiblyAliasedThisProperty(binaryExpression, kind)) { + return getContextualTypeForThisPropertyAssignment(binaryExpression); + } else if (!canHaveSymbol(binaryExpression.left) || !binaryExpression.left.symbol) { + return getTypeOfExpression(binaryExpression.left); + } else { + const decl2 = binaryExpression.left.symbol.valueDeclaration; + if (!decl2) { + return void 0; + } + const lhs = cast(binaryExpression.left, isAccessExpression); + const overallAnnotation = getEffectiveTypeAnnotationNode(decl2); + if (overallAnnotation) { + return getTypeFromTypeNode(overallAnnotation); + } else if (isIdentifier(lhs.expression)) { + const id = lhs.expression; + const parentSymbol = resolveName( + id, + id.escapedText, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (parentSymbol) { + const annotated2 = parentSymbol.valueDeclaration && getEffectiveTypeAnnotationNode(parentSymbol.valueDeclaration); + if (annotated2) { + const nameStr = getElementOrPropertyAccessName(lhs); + if (nameStr !== void 0) { + return getTypeOfPropertyOfContextualType(getTypeFromTypeNode(annotated2), nameStr); + } + } + return void 0; + } + } + return isInJSFile(decl2) || decl2 === binaryExpression.left ? void 0 : getTypeOfExpression(binaryExpression.left); + } + case 1 /* ExportsProperty */: + case 6 /* Prototype */: + case 3 /* PrototypeProperty */: + case 2 /* ModuleExports */: + let valueDeclaration; + if (kind !== 2 /* ModuleExports */) { + valueDeclaration = canHaveSymbol(binaryExpression.left) ? (_a = binaryExpression.left.symbol) == null ? void 0 : _a.valueDeclaration : void 0; + } + valueDeclaration || (valueDeclaration = (_b = binaryExpression.symbol) == null ? void 0 : _b.valueDeclaration); + const annotated = valueDeclaration && getEffectiveTypeAnnotationNode(valueDeclaration); + return annotated ? getTypeFromTypeNode(annotated) : void 0; + case 7 /* ObjectDefinePropertyValue */: + case 8 /* ObjectDefinePropertyExports */: + case 9 /* ObjectDefinePrototypeProperty */: + return Debug.fail("Does not apply"); + default: + return Debug.assertNever(kind); + } + } + function isPossiblyAliasedThisProperty(declaration, kind = getAssignmentDeclarationKind(declaration)) { + if (kind === 4 /* ThisProperty */) { + return true; + } + if (!isInJSFile(declaration) || kind !== 5 /* Property */ || !isIdentifier(declaration.left.expression)) { + return false; + } + const name = declaration.left.expression.escapedText; + const symbol = resolveName( + declaration.left, + name, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true, + /*excludeGlobals*/ + true + ); + return isThisInitializedDeclaration(symbol == null ? void 0 : symbol.valueDeclaration); + } + function getContextualTypeForThisPropertyAssignment(binaryExpression) { + if (!binaryExpression.symbol) return getTypeOfExpression(binaryExpression.left); + if (binaryExpression.symbol.valueDeclaration) { + const annotated = getEffectiveTypeAnnotationNode(binaryExpression.symbol.valueDeclaration); + if (annotated) { + const type = getTypeFromTypeNode(annotated); + if (type) { + return type; + } + } + } + const thisAccess = cast(binaryExpression.left, isAccessExpression); + if (!isObjectLiteralMethod(getThisContainer( + thisAccess.expression, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ))) { + return void 0; + } + const thisType = checkThisExpression(thisAccess.expression); + const nameStr = getElementOrPropertyAccessName(thisAccess); + return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0; + } + function isCircularMappedProperty(symbol) { + return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0); + } + function getTypeOfPropertyOfContextualType(type, name, nameType) { + return mapType( + type, + (t) => { + var _a; + if (isGenericMappedType(t) && !t.declaration.nameType) { + const constraint = getConstraintTypeFromMappedType(t); + const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint; + const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name)); + if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) { + return substituteIndexedMappedType(t, propertyNameType); + } + } else if (t.flags & 3670016 /* StructuredType */) { + const prop = getPropertyOfType(t, name); + if (prop) { + return isCircularMappedProperty(prop) ? void 0 : removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */)); + } + if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) { + const restType = getElementTypeOfSliceOfTupleType( + t, + t.target.fixedLength, + /*endSkipCount*/ + 0, + /*writing*/ + false, + /*noReductions*/ + true + ); + if (restType) { + return restType; + } + } + return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type; + } + return void 0; + }, + /*noReductions*/ + true + ); + } + function getContextualTypeForObjectLiteralMethod(node, contextFlags) { + Debug.assert(isObjectLiteralMethod(node)); + if (node.flags & 67108864 /* InWithStatement */) { + return void 0; + } + return getContextualTypeForObjectLiteralElement(node, contextFlags); + } + function getContextualTypeForObjectLiteralElement(element, contextFlags) { + const objectLiteral = element.parent; + const propertyAssignmentType = isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element, contextFlags); + if (propertyAssignmentType) { + return propertyAssignmentType; + } + const type = getApparentTypeOfContextualType(objectLiteral, contextFlags); + if (type) { + if (hasBindableName(element)) { + const symbol = getSymbolOfDeclaration(element); + return getTypeOfPropertyOfContextualType(type, symbol.escapedName, getSymbolLinks(symbol).nameType); + } + if (hasDynamicName(element)) { + const name = getNameOfDeclaration(element); + if (name && isComputedPropertyName(name)) { + const exprType = checkExpression(name.expression); + const propType = isTypeUsableAsPropertyName(exprType) && getTypeOfPropertyOfContextualType(type, getPropertyNameFromType(exprType)); + if (propType) { + return propType; + } + } + } + if (element.name) { + const nameType = getLiteralTypeFromPropertyName(element.name); + return mapType( + type, + (t) => { + var _a; + return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType)) == null ? void 0 : _a.type; + }, + /*noReductions*/ + true + ); + } + } + return void 0; + } + function getSpreadIndices(elements) { + let first2, last2; + for (let i = 0; i < elements.length; i++) { + if (isSpreadElement(elements[i])) { + first2 ?? (first2 = i); + last2 = i; + } + } + return { first: first2, last: last2 }; + } + function getContextualTypeForElementExpression(type, index, length2, firstSpreadIndex, lastSpreadIndex) { + return type && mapType( + type, + (t) => { + if (isTupleType(t)) { + if ((firstSpreadIndex === void 0 || index < firstSpreadIndex) && index < t.target.fixedLength) { + return removeMissingType(getTypeArguments(t)[index], !!(t.target.elementFlags[index] && 2 /* Optional */)); + } + const offset = length2 !== void 0 && (lastSpreadIndex === void 0 || index > lastSpreadIndex) ? length2 - index : 0; + const fixedEndLength = offset > 0 && t.target.hasRestElement ? getEndElementCount(t.target, 3 /* Fixed */) : 0; + if (offset > 0 && offset <= fixedEndLength) { + return getTypeArguments(t)[getTypeReferenceArity(t) - offset]; + } + return getElementTypeOfSliceOfTupleType( + t, + firstSpreadIndex === void 0 ? t.target.fixedLength : Math.min(t.target.fixedLength, firstSpreadIndex), + length2 === void 0 || lastSpreadIndex === void 0 ? fixedEndLength : Math.min(fixedEndLength, length2 - lastSpreadIndex), + /*writing*/ + false, + /*noReductions*/ + true + ); + } + return (!firstSpreadIndex || index < firstSpreadIndex) && getTypeOfPropertyOfContextualType(t, "" + index) || getIteratedTypeOrElementType( + 1 /* Element */, + t, + undefinedType, + /*errorNode*/ + void 0, + /*checkAssignability*/ + false + ); + }, + /*noReductions*/ + true + ); + } + function getContextualTypeForConditionalOperand(node, contextFlags) { + const conditional = node.parent; + return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional, contextFlags) : void 0; + } + function getContextualTypeForChildJsxExpression(node, child, contextFlags) { + const attributesType = getApparentTypeOfContextualType(node.openingElement.attributes, contextFlags); + const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); + if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== "")) { + return void 0; + } + const realChildren = getSemanticJsxChildren(node.children); + const childIndex = realChildren.indexOf(child); + const childFieldType = getTypeOfPropertyOfContextualType(attributesType, jsxChildrenPropertyName); + return childFieldType && (realChildren.length === 1 ? childFieldType : mapType( + childFieldType, + (t) => { + if (isArrayLikeType(t)) { + return getIndexedAccessType(t, getNumberLiteralType(childIndex)); + } else { + return t; + } + }, + /*noReductions*/ + true + )); + } + function getContextualTypeForJsxExpression(node, contextFlags) { + const exprParent = node.parent; + return isJsxAttributeLike(exprParent) ? getContextualType(node, contextFlags) : isJsxElement(exprParent) ? getContextualTypeForChildJsxExpression(exprParent, node, contextFlags) : void 0; + } + function getContextualTypeForJsxAttribute(attribute, contextFlags) { + if (isJsxAttribute(attribute)) { + const attributesType = getApparentTypeOfContextualType(attribute.parent, contextFlags); + if (!attributesType || isTypeAny(attributesType)) { + return void 0; + } + return getTypeOfPropertyOfContextualType(attributesType, getEscapedTextOfJsxAttributeName(attribute.name)); + } else { + return getContextualType(attribute.parent, contextFlags); + } + } + function isPossiblyDiscriminantValue(node) { + switch (node.kind) { + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 228 /* TemplateExpression */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 106 /* NullKeyword */: + case 80 /* Identifier */: + case 157 /* UndefinedKeyword */: + return true; + case 211 /* PropertyAccessExpression */: + case 217 /* ParenthesizedExpression */: + return isPossiblyDiscriminantValue(node.expression); + case 294 /* JsxExpression */: + return !node.expression || isPossiblyDiscriminantValue(node.expression); + } + return false; + } + function discriminateContextualTypeByObjectMembers(node, contextualType) { + const key = `D${getNodeId(node)},${getTypeId(contextualType)}`; + return getCachedType(key) ?? setCachedType( + key, + getMatchingUnionConstituentForObjectLiteral(contextualType, node) ?? discriminateTypeByDiscriminableItems( + contextualType, + concatenate( + map( + filter(node.properties, (p) => { + if (!p.symbol) { + return false; + } + if (p.kind === 303 /* PropertyAssignment */) { + return isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); + } + if (p.kind === 304 /* ShorthandPropertyAssignment */) { + return isDiscriminantProperty(contextualType, p.symbol.escapedName); + } + return false; + }), + (prop) => [() => getContextFreeTypeOfExpression(prop.kind === 303 /* PropertyAssignment */ ? prop.initializer : prop.name), prop.symbol.escapedName] + ), + map( + filter(getPropertiesOfType(contextualType), (s) => { + var _a; + return !!(s.flags & 16777216 /* Optional */) && !!((_a = node == null ? void 0 : node.symbol) == null ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); + }), + (s) => [() => undefinedType, s.escapedName] + ) + ), + isTypeAssignableTo + ) + ); + } + function discriminateContextualTypeByJSXAttributes(node, contextualType) { + const key = `D${getNodeId(node)},${getTypeId(contextualType)}`; + const cached = getCachedType(key); + if (cached) return cached; + const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node)); + return setCachedType( + key, + discriminateTypeByDiscriminableItems( + contextualType, + concatenate( + map( + filter(node.properties, (p) => !!p.symbol && p.kind === 291 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))), + (prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName] + ), + map( + filter(getPropertiesOfType(contextualType), (s) => { + var _a; + if (!(s.flags & 16777216 /* Optional */) || !((_a = node == null ? void 0 : node.symbol) == null ? void 0 : _a.members)) { + return false; + } + const element = node.parent.parent; + if (s.escapedName === jsxChildrenPropertyName && isJsxElement(element) && getSemanticJsxChildren(element.children).length) { + return false; + } + return !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); + }), + (s) => [() => undefinedType, s.escapedName] + ) + ), + isTypeAssignableTo + ) + ); + } + function getApparentTypeOfContextualType(node, contextFlags) { + const contextualType = isObjectLiteralMethod(node) ? getContextualTypeForObjectLiteralMethod(node, contextFlags) : getContextualType(node, contextFlags); + const instantiatedType = instantiateContextualType(contextualType, node, contextFlags); + if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) { + const apparentType = mapType( + instantiatedType, + // When obtaining apparent type of *contextual* type we don't want to get apparent type of mapped types. + // That would evaluate mapped types with array or tuple type constraints too eagerly + // and thus it would prevent `getTypeOfPropertyOfContextualType` from obtaining per-position contextual type for elements of array literal expressions. + // Apparent type of other mapped types is already the mapped type itself so we can just avoid calling `getApparentType` here for all mapped types. + (t) => getObjectFlags(t) & 32 /* Mapped */ ? t : getApparentType(t), + /*noReductions*/ + true + ); + return apparentType.flags & 1048576 /* Union */ && isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) : apparentType.flags & 1048576 /* Union */ && isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) : apparentType; + } + } + function instantiateContextualType(contextualType, node, contextFlags) { + if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) { + const inferenceContext = getInferenceContext(node); + if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) { + return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper); + } + if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) { + const type = instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper); + return type.flags & 1048576 /* Union */ && containsType(type.types, regularFalseType) && containsType(type.types, regularTrueType) ? filterType(type, (t) => t !== regularFalseType && t !== regularTrueType) : type; + } + } + return contextualType; + } + function instantiateInstantiableTypes(type, mapper) { + if (type.flags & 465829888 /* Instantiable */) { + return instantiateType(type, mapper); + } + if (type.flags & 1048576 /* Union */) { + return getUnionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper)), 0 /* None */); + } + if (type.flags & 2097152 /* Intersection */) { + return getIntersectionType(map(type.types, (t) => instantiateInstantiableTypes(t, mapper))); + } + return type; + } + function getContextualType(node, contextFlags) { + var _a; + if (node.flags & 67108864 /* InWithStatement */) { + return void 0; + } + const index = findContextualNode( + node, + /*includeCaches*/ + !contextFlags + ); + if (index >= 0) { + return contextualTypes[index]; + } + const { parent } = node; + switch (parent.kind) { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 208 /* BindingElement */: + return getContextualTypeForInitializerExpression(node, contextFlags); + case 219 /* ArrowFunction */: + case 253 /* ReturnStatement */: + return getContextualTypeForReturnExpression(node, contextFlags); + case 229 /* YieldExpression */: + return getContextualTypeForYieldOperand(parent, contextFlags); + case 223 /* AwaitExpression */: + return getContextualTypeForAwaitOperand(parent, contextFlags); + case 213 /* CallExpression */: + case 214 /* NewExpression */: + return getContextualTypeForArgument(parent, node); + case 170 /* Decorator */: + return getContextualTypeForDecorator(parent); + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + return isConstTypeReference(parent.type) ? getContextualType(parent, contextFlags) : getTypeFromTypeNode(parent.type); + case 226 /* BinaryExpression */: + return getContextualTypeForBinaryOperand(node, contextFlags); + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + return getContextualTypeForObjectLiteralElement(parent, contextFlags); + case 305 /* SpreadAssignment */: + return getContextualType(parent.parent, contextFlags); + case 209 /* ArrayLiteralExpression */: { + const arrayLiteral = parent; + const type = getApparentTypeOfContextualType(arrayLiteral, contextFlags); + const elementIndex = indexOfNode(arrayLiteral.elements, node); + const spreadIndices = (_a = getNodeLinks(arrayLiteral)).spreadIndices ?? (_a.spreadIndices = getSpreadIndices(arrayLiteral.elements)); + return getContextualTypeForElementExpression(type, elementIndex, arrayLiteral.elements.length, spreadIndices.first, spreadIndices.last); + } + case 227 /* ConditionalExpression */: + return getContextualTypeForConditionalOperand(node, contextFlags); + case 239 /* TemplateSpan */: + Debug.assert(parent.parent.kind === 228 /* TemplateExpression */); + return getContextualTypeForSubstitutionExpression(parent.parent, node); + case 217 /* ParenthesizedExpression */: { + if (isInJSFile(parent)) { + if (isJSDocSatisfiesExpression(parent)) { + return getTypeFromTypeNode(getJSDocSatisfiesExpressionType(parent)); + } + const typeTag = getJSDocTypeTag(parent); + if (typeTag && !isConstTypeReference(typeTag.typeExpression.type)) { + return getTypeFromTypeNode(typeTag.typeExpression.type); + } + } + return getContextualType(parent, contextFlags); + } + case 235 /* NonNullExpression */: + return getContextualType(parent, contextFlags); + case 238 /* SatisfiesExpression */: + return getTypeFromTypeNode(parent.type); + case 277 /* ExportAssignment */: + return tryGetTypeFromEffectiveTypeNode(parent); + case 294 /* JsxExpression */: + return getContextualTypeForJsxExpression(parent, contextFlags); + case 291 /* JsxAttribute */: + case 293 /* JsxSpreadAttribute */: + return getContextualTypeForJsxAttribute(parent, contextFlags); + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + return getContextualJsxElementAttributesType(parent, contextFlags); + case 301 /* ImportAttribute */: + return getContextualImportAttributeType(parent); + } + return void 0; + } + function pushCachedContextualType(node) { + pushContextualType( + node, + getContextualType( + node, + /*contextFlags*/ + void 0 + ), + /*isCache*/ + true + ); + } + function pushContextualType(node, type, isCache) { + contextualTypeNodes[contextualTypeCount] = node; + contextualTypes[contextualTypeCount] = type; + contextualIsCache[contextualTypeCount] = isCache; + contextualTypeCount++; + } + function popContextualType() { + contextualTypeCount--; + } + function findContextualNode(node, includeCaches) { + for (let i = contextualTypeCount - 1; i >= 0; i--) { + if (node === contextualTypeNodes[i] && (includeCaches || !contextualIsCache[i])) { + return i; + } + } + return -1; + } + function pushInferenceContext(node, inferenceContext) { + inferenceContextNodes[inferenceContextCount] = node; + inferenceContexts[inferenceContextCount] = inferenceContext; + inferenceContextCount++; + } + function popInferenceContext() { + inferenceContextCount--; + } + function getInferenceContext(node) { + for (let i = inferenceContextCount - 1; i >= 0; i--) { + if (isNodeDescendantOf(node, inferenceContextNodes[i])) { + return inferenceContexts[i]; + } + } + } + function getContextualImportAttributeType(node) { + return getTypeOfPropertyOfContextualType(getGlobalImportAttributesType( + /*reportErrors*/ + false + ), getNameFromImportAttribute(node)); + } + function getContextualJsxElementAttributesType(node, contextFlags) { + if (isJsxOpeningElement(node) && contextFlags !== 4 /* Completions */) { + const index = findContextualNode( + node.parent, + /*includeCaches*/ + !contextFlags + ); + if (index >= 0) { + return contextualTypes[index]; + } + } + return getContextualTypeForArgumentAtIndex(node, 0); + } + function getEffectiveFirstArgumentForJsxSignature(signature, node) { + return getJsxReferenceKind(node) !== 0 /* Component */ ? getJsxPropsTypeFromCallSignature(signature, node) : getJsxPropsTypeFromClassType(signature, node); + } + function getJsxPropsTypeFromCallSignature(sig, context) { + let propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType); + propsType = getJsxManagedAttributesFromLocatedAttributes(context, getJsxNamespaceAt(context), propsType); + const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context); + if (!isErrorType(intrinsicAttribs)) { + propsType = intersectTypes(intrinsicAttribs, propsType); + } + return propsType; + } + function getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation) { + if (sig.compositeSignatures) { + const results = []; + for (const signature of sig.compositeSignatures) { + const instance = getReturnTypeOfSignature(signature); + if (isTypeAny(instance)) { + return instance; + } + const propType = getTypeOfPropertyOfType(instance, forcedLookupLocation); + if (!propType) { + return; + } + results.push(propType); + } + return getIntersectionType(results); + } + const instanceType = getReturnTypeOfSignature(sig); + return isTypeAny(instanceType) ? instanceType : getTypeOfPropertyOfType(instanceType, forcedLookupLocation); + } + function getStaticTypeOfReferencedJsxConstructor(context) { + if (isJsxIntrinsicTagName(context.tagName)) { + const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(context); + const fakeSignature = createSignatureForJSXIntrinsic(context, result); + return getOrCreateTypeFromSignature(fakeSignature); + } + const tagType = checkExpressionCached(context.tagName); + if (tagType.flags & 128 /* StringLiteral */) { + const result = getIntrinsicAttributesTypeFromStringLiteralType(tagType, context); + if (!result) { + return errorType; + } + const fakeSignature = createSignatureForJSXIntrinsic(context, result); + return getOrCreateTypeFromSignature(fakeSignature); + } + return tagType; + } + function getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType) { + const managedSym = getJsxLibraryManagedAttributes(ns); + if (managedSym) { + const ctorType = getStaticTypeOfReferencedJsxConstructor(context); + const result = instantiateAliasOrInterfaceWithDefaults(managedSym, isInJSFile(context), ctorType, attributesType); + if (result) { + return result; + } + } + return attributesType; + } + function getJsxPropsTypeFromClassType(sig, context) { + const ns = getJsxNamespaceAt(context); + const forcedLookupLocation = getJsxElementPropertiesName(ns); + let attributesType = forcedLookupLocation === void 0 ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType) : forcedLookupLocation === "" ? getReturnTypeOfSignature(sig) : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation); + if (!attributesType) { + if (!!forcedLookupLocation && !!length(context.attributes.properties)) { + error(context, Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, unescapeLeadingUnderscores(forcedLookupLocation)); + } + return unknownType; + } + attributesType = getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType); + if (isTypeAny(attributesType)) { + return attributesType; + } else { + let apparentAttributesType = attributesType; + const intrinsicClassAttribs = getJsxType(JsxNames.IntrinsicClassAttributes, context); + if (!isErrorType(intrinsicClassAttribs)) { + const typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol); + const hostClassType = getReturnTypeOfSignature(sig); + let libraryManagedAttributeType; + if (typeParams) { + const inferredArgs = fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), isInJSFile(context)); + libraryManagedAttributeType = instantiateType(intrinsicClassAttribs, createTypeMapper(typeParams, inferredArgs)); + } else libraryManagedAttributeType = intrinsicClassAttribs; + apparentAttributesType = intersectTypes(libraryManagedAttributeType, apparentAttributesType); + } + const intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context); + if (!isErrorType(intrinsicAttribs)) { + apparentAttributesType = intersectTypes(intrinsicAttribs, apparentAttributesType); + } + return apparentAttributesType; + } + } + function getIntersectedSignatures(signatures) { + return getStrictOptionValue(compilerOptions, "noImplicitAny") ? reduceLeft( + signatures, + (left, right) => left === right || !left ? left : compareTypeParametersIdentical(left.typeParameters, right.typeParameters) ? combineSignaturesOfIntersectionMembers(left, right) : void 0 + ) : void 0; + } + function combineIntersectionThisParam(left, right, mapper) { + if (!left || !right) { + return left || right; + } + const thisType = getUnionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]); + return createSymbolWithType(left, thisType); + } + function combineIntersectionParameters(left, right, mapper) { + const leftCount = getParameterCount(left); + const rightCount = getParameterCount(right); + const longest = leftCount >= rightCount ? left : right; + const shorter = longest === left ? right : left; + const longestCount = longest === left ? leftCount : rightCount; + const eitherHasEffectiveRest = hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right); + const needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest); + const params = new Array(longestCount + (needsExtraRestElement ? 1 : 0)); + for (let i = 0; i < longestCount; i++) { + let longestParamType = tryGetTypeAtPosition(longest, i); + if (longest === right) { + longestParamType = instantiateType(longestParamType, mapper); + } + let shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType; + if (shorter === right) { + shorterParamType = instantiateType(shorterParamType, mapper); + } + const unionParamType = getUnionType([longestParamType, shorterParamType]); + const isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === longestCount - 1; + const isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter); + const leftName = i >= leftCount ? void 0 : getParameterNameAtPosition(left, i); + const rightName = i >= rightCount ? void 0 : getParameterNameAtPosition(right, i); + const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0; + const paramSymbol = createSymbol( + 1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), + paramName || `arg${i}` + ); + paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType; + params[i] = paramSymbol; + } + if (needsExtraRestElement) { + const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args"); + restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount)); + if (shorter === right) { + restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper); + } + params[longestCount] = restParamSymbol; + } + return params; + } + function combineSignaturesOfIntersectionMembers(left, right) { + const typeParams = left.typeParameters || right.typeParameters; + let paramMapper; + if (left.typeParameters && right.typeParameters) { + paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); + } + const declaration = left.declaration; + const params = combineIntersectionParameters(left, right, paramMapper); + const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper); + const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); + const result = createSignature( + declaration, + typeParams, + thisParam, + params, + /*resolvedReturnType*/ + void 0, + /*resolvedTypePredicate*/ + void 0, + minArgCount, + (left.flags | right.flags) & 167 /* PropagatingFlags */ + ); + result.compositeKind = 2097152 /* Intersection */; + result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); + if (paramMapper) { + result.mapper = left.compositeKind === 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper; + } + return result; + } + function getContextualCallSignature(type, node) { + const signatures = getSignaturesOfType(type, 0 /* Call */); + const applicableByArity = filter(signatures, (s) => !isAritySmaller(s, node)); + return applicableByArity.length === 1 ? applicableByArity[0] : getIntersectedSignatures(applicableByArity); + } + function isAritySmaller(signature, target) { + let targetParameterCount = 0; + for (; targetParameterCount < target.parameters.length; targetParameterCount++) { + const param = target.parameters[targetParameterCount]; + if (param.initializer || param.questionToken || param.dotDotDotToken || isJSDocOptionalParameter(param)) { + break; + } + } + if (target.parameters.length && parameterIsThisKeyword(target.parameters[0])) { + targetParameterCount--; + } + return !hasEffectiveRestParameter(signature) && getParameterCount(signature) < targetParameterCount; + } + function getContextualSignatureForFunctionLikeDeclaration(node) { + return isFunctionExpressionOrArrowFunction(node) || isObjectLiteralMethod(node) ? getContextualSignature(node) : void 0; + } + function getContextualSignature(node) { + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + const typeTagSignature = getSignatureOfTypeTag(node); + if (typeTagSignature) { + return typeTagSignature; + } + const type = getApparentTypeOfContextualType(node, 1 /* Signature */); + if (!type) { + return void 0; + } + if (!(type.flags & 1048576 /* Union */)) { + return getContextualCallSignature(type, node); + } + let signatureList; + const types = type.types; + for (const current of types) { + const signature = getContextualCallSignature(current, node); + if (signature) { + if (!signatureList) { + signatureList = [signature]; + } else if (!compareSignaturesIdentical( + signatureList[0], + signature, + /*partialMatch*/ + false, + /*ignoreThisTypes*/ + true, + /*ignoreReturnTypes*/ + true, + compareTypesIdentical + )) { + return void 0; + } else { + signatureList.push(signature); + } + } + } + if (signatureList) { + return signatureList.length === 1 ? signatureList[0] : createUnionSignature(signatureList[0], signatureList); + } + } + function checkGrammarRegularExpressionLiteral(node) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile) && !node.isUnterminated) { + let lastError; + scanner ?? (scanner = createScanner( + 99 /* ESNext */, + /*skipTrivia*/ + true + )); + scanner.setScriptTarget(sourceFile.languageVersion); + scanner.setLanguageVariant(sourceFile.languageVariant); + scanner.setOnError((message, length2, arg0) => { + const start = scanner.getTokenEnd(); + if (message.category === 3 /* Message */ && lastError && start === lastError.start && length2 === lastError.length) { + const error2 = createDetachedDiagnostic(sourceFile.fileName, sourceFile.text, start, length2, message, arg0); + addRelatedInfo(lastError, error2); + } else if (!lastError || start !== lastError.start) { + lastError = createFileDiagnostic(sourceFile, start, length2, message, arg0); + diagnostics.add(lastError); + } + }); + scanner.setText(sourceFile.text, node.pos, node.end - node.pos); + try { + scanner.scan(); + Debug.assert(scanner.reScanSlashToken( + /*reportErrors*/ + true + ) === 14 /* RegularExpressionLiteral */, "Expected scanner to rescan RegularExpressionLiteral"); + return !!lastError; + } finally { + scanner.setText(""); + scanner.setOnError( + /*onError*/ + void 0 + ); + } + } + return false; + } + function checkRegularExpressionLiteral(node) { + const nodeLinks2 = getNodeLinks(node); + if (!(nodeLinks2.flags & 1 /* TypeChecked */)) { + nodeLinks2.flags |= 1 /* TypeChecked */; + addLazyDiagnostic(() => checkGrammarRegularExpressionLiteral(node)); + } + return globalRegExpType; + } + function checkSpreadExpression(node, checkMode) { + if (languageVersion < 2 /* SpreadElements */) { + checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); + } + const arrayOrIterableType = checkExpression(node.expression, checkMode); + return checkIteratedTypeOrElementType(33 /* Spread */, arrayOrIterableType, undefinedType, node.expression); + } + function checkSyntheticExpression(node) { + return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; + } + function hasDefaultValue(node) { + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + } + function isSpreadIntoCallOrNew(node) { + const parent = walkUpParenthesizedExpressions(node.parent); + return isSpreadElement(parent) && isCallOrNewExpression(parent.parent); + } + function checkArrayLiteral(node, checkMode, forceTuple) { + const elements = node.elements; + const elementCount = elements.length; + const elementTypes = []; + const elementFlags = []; + pushCachedContextualType(node); + const inDestructuringPattern = isAssignmentTarget(node); + const inConstContext = isConstContext(node); + const contextualType = getApparentTypeOfContextualType( + node, + /*contextFlags*/ + void 0 + ); + const inTupleContext = isSpreadIntoCallOrNew(node) || !!contextualType && someType(contextualType, (t) => isTupleLikeType(t) || isGenericMappedType(t) && !t.nameType && !!getHomomorphicTypeVariable(t.target || t)); + let hasOmittedExpression = false; + for (let i = 0; i < elementCount; i++) { + const e = elements[i]; + if (e.kind === 230 /* SpreadElement */) { + if (languageVersion < 2 /* SpreadElements */) { + checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); + } + const spreadType = checkExpression(e.expression, checkMode, forceTuple); + if (isArrayLikeType(spreadType)) { + elementTypes.push(spreadType); + elementFlags.push(8 /* Variadic */); + } else if (inDestructuringPattern) { + const restElementType = getIndexTypeOfType(spreadType, numberType) || getIteratedTypeOrElementType( + 65 /* Destructuring */, + spreadType, + undefinedType, + /*errorNode*/ + void 0, + /*checkAssignability*/ + false + ) || unknownType; + elementTypes.push(restElementType); + elementFlags.push(4 /* Rest */); + } else { + elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression)); + elementFlags.push(4 /* Rest */); + } + } else if (exactOptionalPropertyTypes && e.kind === 232 /* OmittedExpression */) { + hasOmittedExpression = true; + elementTypes.push(undefinedOrMissingType); + elementFlags.push(2 /* Optional */); + } else { + const type = checkExpressionForMutableLocation(e, checkMode, forceTuple); + elementTypes.push(addOptionality( + type, + /*isProperty*/ + true, + hasOmittedExpression + )); + elementFlags.push(hasOmittedExpression ? 2 /* Optional */ : 1 /* Required */); + if (inTupleContext && checkMode && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(e)) { + const inferenceContext = getInferenceContext(node); + Debug.assert(inferenceContext); + addIntraExpressionInferenceSite(inferenceContext, e, type); + } + } + } + popContextualType(); + if (inDestructuringPattern) { + return createTupleType(elementTypes, elementFlags); + } + if (forceTuple || inConstContext || inTupleContext) { + return createArrayLiteralType(createTupleType( + elementTypes, + elementFlags, + /*readonly*/ + inConstContext && !(contextualType && someType(contextualType, isMutableArrayLikeType)) + )); + } + return createArrayLiteralType(createArrayType( + elementTypes.length ? getUnionType(sameMap(elementTypes, (t, i) => elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessTypeOrUndefined(t, numberType) || anyType : t), 2 /* Subtype */) : strictNullChecks ? implicitNeverType : undefinedWideningType, + inConstContext + )); + } + function createArrayLiteralType(type) { + if (!(getObjectFlags(type) & 4 /* Reference */)) { + return type; + } + let literalType = type.literalType; + if (!literalType) { + literalType = type.literalType = cloneTypeReference(type); + literalType.objectFlags |= 16384 /* ArrayLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + } + return literalType; + } + function isNumericName(name) { + switch (name.kind) { + case 167 /* ComputedPropertyName */: + return isNumericComputedName(name); + case 80 /* Identifier */: + return isNumericLiteralName(name.escapedText); + case 9 /* NumericLiteral */: + case 11 /* StringLiteral */: + return isNumericLiteralName(name.text); + default: + return false; + } + } + function isNumericComputedName(name) { + return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* NumberLike */); + } + function checkComputedPropertyName(node) { + const links = getNodeLinks(node.expression); + if (!links.resolvedType) { + if ((isTypeLiteralNode(node.parent.parent) || isClassLike(node.parent.parent) || isInterfaceDeclaration(node.parent.parent)) && isBinaryExpression(node.expression) && node.expression.operatorToken.kind === 103 /* InKeyword */ && node.parent.kind !== 177 /* GetAccessor */ && node.parent.kind !== 178 /* SetAccessor */) { + return links.resolvedType = errorType; + } + links.resolvedType = checkExpression(node.expression); + if (isPropertyDeclaration(node.parent) && !hasStaticModifier(node.parent) && isClassExpression(node.parent.parent)) { + const container = getEnclosingBlockScopeContainer(node.parent.parent); + const enclosingIterationStatement = getEnclosingIterationStatement(container); + if (enclosingIterationStatement) { + getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; + getNodeLinks(node).flags |= 32768 /* BlockScopedBindingInLoop */; + getNodeLinks(node.parent.parent).flags |= 32768 /* BlockScopedBindingInLoop */; + } + } + if (links.resolvedType.flags & 98304 /* Nullable */ || !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) && !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) { + error(node, Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any); + } + } + return links.resolvedType; + } + function isSymbolWithNumericName(symbol) { + var _a; + const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; + return isNumericLiteralName(symbol.escapedName) || firstDecl && isNamedDeclaration(firstDecl) && isNumericName(firstDecl.name); + } + function isSymbolWithSymbolName(symbol) { + var _a; + const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; + return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */); + } + function getObjectLiteralIndexInfo(node, offset, properties, keyType) { + const propTypes = []; + for (let i = offset; i < properties.length; i++) { + const prop = properties[i]; + if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) { + propTypes.push(getTypeOfSymbol(properties[i])); + } + } + const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType; + return createIndexInfo(keyType, unionType, isConstContext(node)); + } + function getImmediateAliasedSymbol(symbol) { + Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here."); + const links = getSymbolLinks(symbol); + if (!links.immediateTarget) { + const node = getDeclarationOfAliasSymbol(symbol); + if (!node) return Debug.fail(); + links.immediateTarget = getTargetOfAliasDeclaration( + node, + /*dontRecursivelyResolve*/ + true + ); + } + return links.immediateTarget; + } + function checkObjectLiteral(node, checkMode = 0 /* Normal */) { + var _a; + const inDestructuringPattern = isAssignmentTarget(node); + checkGrammarObjectLiteralExpression(node, inDestructuringPattern); + const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0; + let propertiesTable = createSymbolTable(); + let propertiesArray = []; + let spread = emptyObjectType; + pushCachedContextualType(node); + const contextualType = getApparentTypeOfContextualType( + node, + /*contextFlags*/ + void 0 + ); + const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */); + const inConstContext = isConstContext(node); + const checkFlags = inConstContext ? 8 /* Readonly */ : 0; + const isInJavascript = isInJSFile(node) && !isInJsonFile(node); + const enumTag = isInJavascript ? getJSDocEnumTag(node) : void 0; + const isJSObjectLiteral = !contextualType && isInJavascript && !enumTag; + let objectFlags = 8192 /* FreshLiteral */; + let patternWithComputedProperties = false; + let hasComputedStringProperty = false; + let hasComputedNumberProperty = false; + let hasComputedSymbolProperty = false; + for (const elem of node.properties) { + if (elem.name && isComputedPropertyName(elem.name)) { + checkComputedPropertyName(elem.name); + } + } + let offset = 0; + for (const memberDecl of node.properties) { + let member = getSymbolOfDeclaration(memberDecl); + const computedNameType = memberDecl.name && memberDecl.name.kind === 167 /* ComputedPropertyName */ ? checkComputedPropertyName(memberDecl.name) : void 0; + if (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ || isObjectLiteralMethod(memberDecl)) { + let type = memberDecl.kind === 303 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) : ( + // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring + // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`. + // we don't want to say "could not find 'a'". + memberDecl.kind === 304 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) : checkObjectLiteralMethod(memberDecl, checkMode) + ); + if (isInJavascript) { + const jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl); + if (jsDocType) { + checkTypeAssignableTo(type, jsDocType, memberDecl); + type = jsDocType; + } else if (enumTag && enumTag.typeExpression) { + checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl); + } + } + objectFlags |= getObjectFlags(type) & 458752 /* PropagatingFlags */; + const nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : void 0; + const prop = nameType ? createSymbol(4 /* Property */ | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096 /* Late */) : createSymbol(4 /* Property */ | member.flags, member.escapedName, checkFlags); + if (nameType) { + prop.links.nameType = nameType; + } + if (inDestructuringPattern) { + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + if (isOptional) { + prop.flags |= 16777216 /* Optional */; + } + } else if (contextualTypeHasPattern && !(getObjectFlags(contextualType) & 512 /* ObjectLiteralPatternWithComputedProperties */)) { + const impliedProp = getPropertyOfType(contextualType, member.escapedName); + if (impliedProp) { + prop.flags |= impliedProp.flags & 16777216 /* Optional */; + } else if (!getIndexInfoOfType(contextualType, stringType)) { + error(memberDecl.name, Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), typeToString(contextualType)); + } + } + prop.declarations = member.declarations; + prop.parent = member.parent; + if (member.valueDeclaration) { + prop.valueDeclaration = member.valueDeclaration; + } + prop.links.type = type; + prop.links.target = member; + member = prop; + allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop); + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) { + const inferenceContext = getInferenceContext(node); + Debug.assert(inferenceContext); + const inferenceNode = memberDecl.kind === 303 /* PropertyAssignment */ ? memberDecl.initializer : memberDecl; + addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); + } + } else if (memberDecl.kind === 305 /* SpreadAssignment */) { + if (languageVersion < 2 /* ObjectAssign */) { + checkExternalEmitHelpers(memberDecl, 2 /* Assign */); + } + if (propertiesArray.length > 0) { + spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext); + propertiesArray = []; + propertiesTable = createSymbolTable(); + hasComputedStringProperty = false; + hasComputedNumberProperty = false; + hasComputedSymbolProperty = false; + } + const type = getReducedType(checkExpression(memberDecl.expression, checkMode & 2 /* Inferential */)); + if (isValidSpreadType(type)) { + const mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext); + if (allPropertiesTable) { + checkSpreadPropOverrides(mergedType, allPropertiesTable, memberDecl); + } + offset = propertiesArray.length; + if (isErrorType(spread)) { + continue; + } + spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext); + } else { + error(memberDecl, Diagnostics.Spread_types_may_only_be_created_from_object_types); + spread = errorType; + } + continue; + } else { + Debug.assert(memberDecl.kind === 177 /* GetAccessor */ || memberDecl.kind === 178 /* SetAccessor */); + checkNodeDeferred(memberDecl); + } + if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) { + if (isTypeAssignableTo(computedNameType, stringNumberSymbolType)) { + if (isTypeAssignableTo(computedNameType, numberType)) { + hasComputedNumberProperty = true; + } else if (isTypeAssignableTo(computedNameType, esSymbolType)) { + hasComputedSymbolProperty = true; + } else { + hasComputedStringProperty = true; + } + if (inDestructuringPattern) { + patternWithComputedProperties = true; + } + } + } else { + propertiesTable.set(member.escapedName, member); + } + propertiesArray.push(member); + } + popContextualType(); + if (contextualTypeHasPattern) { + const rootPatternParent = findAncestor(contextualType.pattern.parent, (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */); + const spreadOrOutsideRootObject = findAncestor(node, (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */); + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { + for (const prop of getPropertiesOfType(contextualType)) { + if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { + if (!(prop.flags & 16777216 /* Optional */)) { + error(prop.valueDeclaration || ((_a = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value); + } + propertiesTable.set(prop.escapedName, prop); + propertiesArray.push(prop); + } + } + } + } + if (isErrorType(spread)) { + return errorType; + } + if (spread !== emptyObjectType) { + if (propertiesArray.length > 0) { + spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext); + propertiesArray = []; + propertiesTable = createSymbolTable(); + hasComputedStringProperty = false; + hasComputedNumberProperty = false; + } + return mapType(spread, (t) => t === emptyObjectType ? createObjectLiteralType() : t); + } + return createObjectLiteralType(); + function createObjectLiteralType() { + const indexInfos = []; + if (hasComputedStringProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, stringType)); + if (hasComputedNumberProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, numberType)); + if (hasComputedSymbolProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType)); + const result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, indexInfos); + result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + if (isJSObjectLiteral) { + result.objectFlags |= 4096 /* JSLiteral */; + } + if (patternWithComputedProperties) { + result.objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */; + } + if (inDestructuringPattern) { + result.pattern = node; + } + return result; + } + } + function isValidSpreadType(type) { + const t = removeDefinitelyFalsyTypes(mapType(type, getBaseConstraintOrType)); + return !!(t.flags & (1 /* Any */ | 67108864 /* NonPrimitive */ | 524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) || t.flags & 3145728 /* UnionOrIntersection */ && every(t.types, isValidSpreadType)); + } + function checkJsxSelfClosingElementDeferred(node) { + checkJsxOpeningLikeElementOrOpeningFragment(node); + } + function checkJsxSelfClosingElement(node, _checkMode) { + checkNodeDeferred(node); + return getJsxElementTypeAt(node) || anyType; + } + function checkJsxElementDeferred(node) { + checkJsxOpeningLikeElementOrOpeningFragment(node.openingElement); + if (isJsxIntrinsicTagName(node.closingElement.tagName)) { + getIntrinsicTagSymbol(node.closingElement); + } else { + checkExpression(node.closingElement.tagName); + } + checkJsxChildren(node); + } + function checkJsxElement(node, _checkMode) { + checkNodeDeferred(node); + return getJsxElementTypeAt(node) || anyType; + } + function checkJsxFragment(node) { + checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment); + const nodeSourceFile = getSourceFileOfNode(node); + if (getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has("jsx")) && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has("jsxfrag")) { + error( + node, + compilerOptions.jsxFactory ? Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option : Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments + ); + } + checkJsxChildren(node); + return getJsxElementTypeAt(node) || anyType; + } + function isHyphenatedJsxName(name) { + return name.includes("-"); + } + function isJsxIntrinsicTagName(tagName) { + return isIdentifier(tagName) && isIntrinsicJsxName(tagName.escapedText) || isJsxNamespacedName(tagName); + } + function checkJsxAttribute(node, checkMode) { + return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType; + } + function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) { + const attributes = openingLikeElement.attributes; + const contextualType = getContextualType(attributes, 0 /* None */); + const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0; + let attributesTable = createSymbolTable(); + let spread = emptyJsxObjectType; + let hasSpreadAnyType = false; + let typeToIntersect; + let explicitlySpecifyChildrenAttribute = false; + let objectFlags = 2048 /* JsxAttributes */; + const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(openingLikeElement)); + for (const attributeDecl of attributes.properties) { + const member = attributeDecl.symbol; + if (isJsxAttribute(attributeDecl)) { + const exprType = checkJsxAttribute(attributeDecl, checkMode); + objectFlags |= getObjectFlags(exprType) & 458752 /* PropagatingFlags */; + const attributeSymbol = createSymbol(4 /* Property */ | member.flags, member.escapedName); + attributeSymbol.declarations = member.declarations; + attributeSymbol.parent = member.parent; + if (member.valueDeclaration) { + attributeSymbol.valueDeclaration = member.valueDeclaration; + } + attributeSymbol.links.type = exprType; + attributeSymbol.links.target = member; + attributesTable.set(attributeSymbol.escapedName, attributeSymbol); + allAttributesTable == null ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol); + if (getEscapedTextOfJsxAttributeName(attributeDecl.name) === jsxChildrenPropertyName) { + explicitlySpecifyChildrenAttribute = true; + } + if (contextualType) { + const prop = getPropertyOfType(contextualType, member.escapedName); + if (prop && prop.declarations && isDeprecatedSymbol(prop) && isIdentifier(attributeDecl.name)) { + addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText); + } + } + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) { + const inferenceContext = getInferenceContext(attributes); + Debug.assert(inferenceContext); + const inferenceNode = attributeDecl.initializer.expression; + addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); + } + } else { + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); + if (attributesTable.size > 0) { + spread = getSpreadType( + spread, + createJsxAttributesType(), + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); + attributesTable = createSymbolTable(); + } + const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */)); + if (isTypeAny(exprType)) { + hasSpreadAnyType = true; + } + if (isValidSpreadType(exprType)) { + spread = getSpreadType( + spread, + exprType, + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); + if (allAttributesTable) { + checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); + } + } else { + error(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); + typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; + } + } + } + if (!hasSpreadAnyType) { + if (attributesTable.size > 0) { + spread = getSpreadType( + spread, + createJsxAttributesType(), + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); + } + } + const parent = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; + if (parent && parent.openingElement === openingLikeElement && getSemanticJsxChildren(parent.children).length > 0) { + const childrenTypes = checkJsxChildren(parent, checkMode); + if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { + if (explicitlySpecifyChildrenAttribute) { + error(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); + } + const contextualType2 = getApparentTypeOfContextualType( + openingLikeElement.attributes, + /*contextFlags*/ + void 0 + ); + const childrenContextualType = contextualType2 && getTypeOfPropertyOfContextualType(contextualType2, jsxChildrenPropertyName); + const childrenPropSymbol = createSymbol(4 /* Property */, jsxChildrenPropertyName); + childrenPropSymbol.links.type = childrenTypes.length === 1 ? childrenTypes[0] : childrenContextualType && someType(childrenContextualType, isTupleLikeType) ? createTupleType(childrenTypes) : createArrayType(getUnionType(childrenTypes)); + childrenPropSymbol.valueDeclaration = factory.createPropertySignature( + /*modifiers*/ + void 0, + unescapeLeadingUnderscores(jsxChildrenPropertyName), + /*questionToken*/ + void 0, + /*type*/ + void 0 + ); + setParent(childrenPropSymbol.valueDeclaration, attributes); + childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol; + const childPropMap = createSymbolTable(); + childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol); + spread = getSpreadType( + spread, + createAnonymousType(attributes.symbol, childPropMap, emptyArray, emptyArray, emptyArray), + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); + } + } + if (hasSpreadAnyType) { + return anyType; + } + if (typeToIntersect && spread !== emptyJsxObjectType) { + return getIntersectionType([typeToIntersect, spread]); + } + return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesType() : spread); + function createJsxAttributesType() { + objectFlags |= 8192 /* FreshLiteral */; + const result = createAnonymousType(attributes.symbol, attributesTable, emptyArray, emptyArray, emptyArray); + result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + return result; + } + } + function checkJsxChildren(node, checkMode) { + const childrenTypes = []; + for (const child of node.children) { + if (child.kind === 12 /* JsxText */) { + if (!child.containsOnlyTriviaWhiteSpaces) { + childrenTypes.push(stringType); + } + } else if (child.kind === 294 /* JsxExpression */ && !child.expression) { + continue; + } else { + childrenTypes.push(checkExpressionForMutableLocation(child, checkMode)); + } + } + return childrenTypes; + } + function checkSpreadPropOverrides(type, props, spread) { + for (const right of getPropertiesOfType(type)) { + if (!(right.flags & 16777216 /* Optional */)) { + const left = props.get(right.escapedName); + if (left) { + const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName)); + addRelatedInfo(diagnostic, createDiagnosticForNode(spread, Diagnostics.This_spread_always_overwrites_this_property)); + } + } + } + } + function checkJsxAttributes(node, checkMode) { + return createJsxAttributesTypeFromAttributesProperty(node.parent, checkMode); + } + function getJsxType(name, location) { + const namespace = getJsxNamespaceAt(location); + const exports2 = namespace && getExportsOfSymbol(namespace); + const typeSymbol = exports2 && getSymbol(exports2, name, 788968 /* Type */); + return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType; + } + function getIntrinsicTagSymbol(node) { + const links = getNodeLinks(node); + if (!links.resolvedSymbol) { + const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, node); + if (!isErrorType(intrinsicElementsType)) { + if (!isIdentifier(node.tagName) && !isJsxNamespacedName(node.tagName)) return Debug.fail(); + const propName = isJsxNamespacedName(node.tagName) ? getEscapedTextOfJsxNamespacedName(node.tagName) : node.tagName.escapedText; + const intrinsicProp = getPropertyOfType(intrinsicElementsType, propName); + if (intrinsicProp) { + links.jsxFlags |= 1 /* IntrinsicNamedElement */; + return links.resolvedSymbol = intrinsicProp; + } + const indexSymbol = getApplicableIndexSymbol(intrinsicElementsType, getStringLiteralType(unescapeLeadingUnderscores(propName))); + if (indexSymbol) { + links.jsxFlags |= 2 /* IntrinsicIndexedElement */; + return links.resolvedSymbol = indexSymbol; + } + if (getTypeOfPropertyOrIndexSignatureOfType(intrinsicElementsType, propName)) { + links.jsxFlags |= 2 /* IntrinsicIndexedElement */; + return links.resolvedSymbol = intrinsicElementsType.symbol; + } + error(node, Diagnostics.Property_0_does_not_exist_on_type_1, intrinsicTagNameToString(node.tagName), "JSX." + JsxNames.IntrinsicElements); + return links.resolvedSymbol = unknownSymbol; + } else { + if (noImplicitAny) { + error(node, Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, unescapeLeadingUnderscores(JsxNames.IntrinsicElements)); + } + return links.resolvedSymbol = unknownSymbol; + } + } + return links.resolvedSymbol; + } + function getJsxNamespaceContainerForImplicitImport(location) { + const file = location && getSourceFileOfNode(location); + const links = file && getNodeLinks(file); + if (links && links.jsxImplicitImportContainer === false) { + return void 0; + } + if (links && links.jsxImplicitImportContainer) { + return links.jsxImplicitImportContainer; + } + const runtimeImportSpecifier = getJSXRuntimeImport(getJSXImplicitImportBase(compilerOptions, file), compilerOptions); + if (!runtimeImportSpecifier) { + return void 0; + } + const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; + const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; + const specifier = getJSXRuntimeImportSpecifier(file, runtimeImportSpecifier); + const mod = resolveExternalModule(specifier || location, runtimeImportSpecifier, errorMessage, location); + const result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : void 0; + if (links) { + links.jsxImplicitImportContainer = result || false; + } + return result; + } + function getJsxNamespaceAt(location) { + const links = location && getNodeLinks(location); + if (links && links.jsxNamespace) { + return links.jsxNamespace; + } + if (!links || links.jsxNamespace !== false) { + let resolvedNamespace = getJsxNamespaceContainerForImplicitImport(location); + if (!resolvedNamespace || resolvedNamespace === unknownSymbol) { + const namespaceName = getJsxNamespace(location); + resolvedNamespace = resolveName( + location, + namespaceName, + 1920 /* Namespace */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + } + if (resolvedNamespace) { + const candidate = resolveSymbol(getSymbol(getExportsOfSymbol(resolveSymbol(resolvedNamespace)), JsxNames.JSX, 1920 /* Namespace */)); + if (candidate && candidate !== unknownSymbol) { + if (links) { + links.jsxNamespace = candidate; + } + return candidate; + } + } + if (links) { + links.jsxNamespace = false; + } + } + const s = resolveSymbol(getGlobalSymbol( + JsxNames.JSX, + 1920 /* Namespace */, + /*diagnostic*/ + void 0 + )); + if (s === unknownSymbol) { + return void 0; + } + return s; + } + function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer, jsxNamespace) { + const jsxElementAttribPropInterfaceSym = jsxNamespace && getSymbol(jsxNamespace.exports, nameOfAttribPropContainer, 788968 /* Type */); + const jsxElementAttribPropInterfaceType = jsxElementAttribPropInterfaceSym && getDeclaredTypeOfSymbol(jsxElementAttribPropInterfaceSym); + const propertiesOfJsxElementAttribPropInterface = jsxElementAttribPropInterfaceType && getPropertiesOfType(jsxElementAttribPropInterfaceType); + if (propertiesOfJsxElementAttribPropInterface) { + if (propertiesOfJsxElementAttribPropInterface.length === 0) { + return ""; + } else if (propertiesOfJsxElementAttribPropInterface.length === 1) { + return propertiesOfJsxElementAttribPropInterface[0].escapedName; + } else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) { + error(jsxElementAttribPropInterfaceSym.declarations[0], Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, unescapeLeadingUnderscores(nameOfAttribPropContainer)); + } + } + return void 0; + } + function getJsxLibraryManagedAttributes(jsxNamespace) { + return jsxNamespace && getSymbol(jsxNamespace.exports, JsxNames.LibraryManagedAttributes, 788968 /* Type */); + } + function getJsxElementTypeSymbol(jsxNamespace) { + return jsxNamespace && getSymbol(jsxNamespace.exports, JsxNames.ElementType, 788968 /* Type */); + } + function getJsxElementPropertiesName(jsxNamespace) { + return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace); + } + function getJsxElementChildrenPropertyName(jsxNamespace) { + return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace); + } + function getUninstantiatedJsxSignaturesOfType(elementType, caller) { + if (elementType.flags & 4 /* String */) { + return [anySignature]; + } else if (elementType.flags & 128 /* StringLiteral */) { + const intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller); + if (!intrinsicType) { + error(caller, Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, "JSX." + JsxNames.IntrinsicElements); + return emptyArray; + } else { + const fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType); + return [fakeSignature]; + } + } + const apparentElemType = getApparentType(elementType); + let signatures = getSignaturesOfType(apparentElemType, 1 /* Construct */); + if (signatures.length === 0) { + signatures = getSignaturesOfType(apparentElemType, 0 /* Call */); + } + if (signatures.length === 0 && apparentElemType.flags & 1048576 /* Union */) { + signatures = getUnionSignatures(map(apparentElemType.types, (t) => getUninstantiatedJsxSignaturesOfType(t, caller))); + } + return signatures; + } + function getIntrinsicAttributesTypeFromStringLiteralType(type, location) { + const intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, location); + if (!isErrorType(intrinsicElementsType)) { + const stringLiteralTypeName = type.value; + const intrinsicProp = getPropertyOfType(intrinsicElementsType, escapeLeadingUnderscores(stringLiteralTypeName)); + if (intrinsicProp) { + return getTypeOfSymbol(intrinsicProp); + } + const indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType); + if (indexSignatureType) { + return indexSignatureType; + } + return void 0; + } + return anyType; + } + function checkJsxReturnAssignableToAppropriateBound(refKind, elemInstanceType, openingLikeElement) { + if (refKind === 1 /* Function */) { + const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement); + if (sfcReturnConstraint) { + checkTypeRelatedTo(elemInstanceType, sfcReturnConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); + } + } else if (refKind === 0 /* Component */) { + const classConstraint = getJsxElementClassTypeAt(openingLikeElement); + if (classConstraint) { + checkTypeRelatedTo(elemInstanceType, classConstraint, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); + } + } else { + const sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement); + const classConstraint = getJsxElementClassTypeAt(openingLikeElement); + if (!sfcReturnConstraint || !classConstraint) { + return; + } + const combined = getUnionType([sfcReturnConstraint, classConstraint]); + checkTypeRelatedTo(elemInstanceType, combined, assignableRelation, openingLikeElement.tagName, Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain); + } + function generateInitialErrorChain() { + const componentName = getTextOfNode(openingLikeElement.tagName); + return chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics._0_cannot_be_used_as_a_JSX_component, + componentName + ); + } + } + function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node) { + var _a; + Debug.assert(isJsxIntrinsicTagName(node.tagName)); + const links = getNodeLinks(node); + if (!links.resolvedJsxElementAttributesType) { + const symbol = getIntrinsicTagSymbol(node); + if (links.jsxFlags & 1 /* IntrinsicNamedElement */) { + return links.resolvedJsxElementAttributesType = getTypeOfSymbol(symbol) || errorType; + } else if (links.jsxFlags & 2 /* IntrinsicIndexedElement */) { + const propName = isJsxNamespacedName(node.tagName) ? getEscapedTextOfJsxNamespacedName(node.tagName) : node.tagName.escapedText; + return links.resolvedJsxElementAttributesType = ((_a = getApplicableIndexInfoForName(getJsxType(JsxNames.IntrinsicElements, node), propName)) == null ? void 0 : _a.type) || errorType; + } else { + return links.resolvedJsxElementAttributesType = errorType; + } + } + return links.resolvedJsxElementAttributesType; + } + function getJsxElementClassTypeAt(location) { + const type = getJsxType(JsxNames.ElementClass, location); + if (isErrorType(type)) return void 0; + return type; + } + function getJsxElementTypeAt(location) { + return getJsxType(JsxNames.Element, location); + } + function getJsxStatelessElementTypeAt(location) { + const jsxElementType = getJsxElementTypeAt(location); + if (jsxElementType) { + return getUnionType([jsxElementType, nullType]); + } + } + function getJsxElementTypeTypeAt(location) { + const ns = getJsxNamespaceAt(location); + if (!ns) return void 0; + const sym = getJsxElementTypeSymbol(ns); + if (!sym) return void 0; + const type = instantiateAliasOrInterfaceWithDefaults(sym, isInJSFile(location)); + if (!type || isErrorType(type)) return void 0; + return type; + } + function instantiateAliasOrInterfaceWithDefaults(managedSym, inJs, ...typeArguments) { + const declaredManagedType = getDeclaredTypeOfSymbol(managedSym); + if (managedSym.flags & 524288 /* TypeAlias */) { + const params = getSymbolLinks(managedSym).typeParameters; + if (length(params) >= typeArguments.length) { + const args = fillMissingTypeArguments(typeArguments, params, typeArguments.length, inJs); + return length(args) === 0 ? declaredManagedType : getTypeAliasInstantiation(managedSym, args); + } + } + if (length(declaredManagedType.typeParameters) >= typeArguments.length) { + const args = fillMissingTypeArguments(typeArguments, declaredManagedType.typeParameters, typeArguments.length, inJs); + return createTypeReference(declaredManagedType, args); + } + return void 0; + } + function getJsxIntrinsicTagNamesAt(location) { + const intrinsics = getJsxType(JsxNames.IntrinsicElements, location); + return intrinsics ? getPropertiesOfType(intrinsics) : emptyArray; + } + function checkJsxPreconditions(errorNode) { + if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) { + error(errorNode, Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided); + } + if (getJsxElementTypeAt(errorNode) === void 0) { + if (noImplicitAny) { + error(errorNode, Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist); + } + } + } + function checkJsxOpeningLikeElementOrOpeningFragment(node) { + const isNodeOpeningLikeElement = isJsxOpeningLikeElement(node); + if (isNodeOpeningLikeElement) { + checkGrammarJsxElement(node); + } + checkJsxPreconditions(node); + markJsxAliasReferenced(node); + if (isNodeOpeningLikeElement) { + const jsxOpeningLikeNode = node; + const sig = getResolvedSignature(jsxOpeningLikeNode); + checkDeprecatedSignature(sig, node); + const elementTypeConstraint = getJsxElementTypeTypeAt(jsxOpeningLikeNode); + if (elementTypeConstraint !== void 0) { + const tagName = jsxOpeningLikeNode.tagName; + const tagType = isJsxIntrinsicTagName(tagName) ? getStringLiteralType(intrinsicTagNameToString(tagName)) : checkExpression(tagName); + checkTypeRelatedTo(tagType, elementTypeConstraint, assignableRelation, tagName, Diagnostics.Its_type_0_is_not_a_valid_JSX_element_type, () => { + const componentName = getTextOfNode(tagName); + return chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics._0_cannot_be_used_as_a_JSX_component, + componentName + ); + }); + } else { + checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(jsxOpeningLikeNode), getReturnTypeOfSignature(sig), jsxOpeningLikeNode); + } + } + } + function isKnownProperty(targetType, name, isComparingJsxAttributes) { + if (targetType.flags & 524288 /* Object */) { + if (getPropertyOfObjectType(targetType, name) || getApplicableIndexInfoForName(targetType, name) || isLateBoundName(name) && getIndexInfoOfType(targetType, stringType) || isComparingJsxAttributes && isHyphenatedJsxName(name)) { + return true; + } + } + if (targetType.flags & 33554432 /* Substitution */) { + return isKnownProperty(targetType.baseType, name, isComparingJsxAttributes); + } + if (targetType.flags & 3145728 /* UnionOrIntersection */ && isExcessPropertyCheckTarget(targetType)) { + for (const t of targetType.types) { + if (isKnownProperty(t, name, isComparingJsxAttributes)) { + return true; + } + } + } + return false; + } + function isExcessPropertyCheckTarget(type) { + return !!(type.flags & 524288 /* Object */ && !(getObjectFlags(type) & 512 /* ObjectLiteralPatternWithComputedProperties */) || type.flags & 67108864 /* NonPrimitive */ || type.flags & 33554432 /* Substitution */ && isExcessPropertyCheckTarget(type.baseType) || type.flags & 1048576 /* Union */ && some(type.types, isExcessPropertyCheckTarget) || type.flags & 2097152 /* Intersection */ && every(type.types, isExcessPropertyCheckTarget)); + } + function checkJsxExpression(node, checkMode) { + checkGrammarJsxExpression(node); + if (node.expression) { + const type = checkExpression(node.expression, checkMode); + if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) { + error(node, Diagnostics.JSX_spread_child_must_be_an_array_type); + } + return type; + } else { + return errorType; + } + } + function getDeclarationNodeFlagsFromSymbol(s) { + return s.valueDeclaration ? getCombinedNodeFlagsCached(s.valueDeclaration) : 0; + } + function isPrototypeProperty(symbol) { + if (symbol.flags & 8192 /* Method */ || getCheckFlags(symbol) & 4 /* SyntheticMethod */) { + return true; + } + if (isInJSFile(symbol.valueDeclaration)) { + const parent = symbol.valueDeclaration.parent; + return parent && isBinaryExpression(parent) && getAssignmentDeclarationKind(parent) === 3 /* PrototypeProperty */; + } + } + function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError = true) { + const errorNode = !reportError ? void 0 : node.kind === 166 /* QualifiedName */ ? node.right : node.kind === 205 /* ImportType */ ? node : node.kind === 208 /* BindingElement */ && node.propertyName ? node.propertyName : node.name; + return checkPropertyAccessibilityAtLocation(node, isSuper, writing, type, prop, errorNode); + } + function checkPropertyAccessibilityAtLocation(location, isSuper, writing, containingType, prop, errorNode) { + var _a; + const flags = getDeclarationModifierFlagsFromSymbol(prop, writing); + if (isSuper) { + if (languageVersion < 2 /* ES2015 */) { + if (symbolHasNonMethodDeclaration(prop)) { + if (errorNode) { + error(errorNode, Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword); + } + return false; + } + } + if (flags & 64 /* Abstract */) { + if (errorNode) { + error(errorNode, Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), typeToString(getDeclaringClass(prop))); + } + return false; + } + if (!(flags & 256 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) { + if (errorNode) { + error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop)); + } + return false; + } + } + if (flags & 64 /* Abstract */ && symbolHasNonMethodDeclaration(prop) && (isThisProperty(location) || isThisInitializedObjectBindingExpression(location) || isObjectBindingPattern(location.parent) && isThisInitializedDeclaration(location.parent.parent))) { + const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); + if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) { + if (errorNode) { + error(errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), getTextOfIdentifierOrLiteral(declaringClassDeclaration.name)); + } + return false; + } + } + if (!(flags & 6 /* NonPublicAccessibilityModifier */)) { + return true; + } + if (flags & 2 /* Private */) { + const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop)); + if (!isNodeWithinClass(location, declaringClassDeclaration)) { + if (errorNode) { + error(errorNode, Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(getDeclaringClass(prop))); + } + return false; + } + return true; + } + if (isSuper) { + return true; + } + let enclosingClass = forEachEnclosingClass(location, (enclosingDeclaration) => { + const enclosingClass2 = getDeclaredTypeOfSymbol(getSymbolOfDeclaration(enclosingDeclaration)); + return isClassDerivedFromDeclaringClasses(enclosingClass2, prop, writing); + }); + if (!enclosingClass) { + enclosingClass = getEnclosingClassFromThisParameter(location); + enclosingClass = enclosingClass && isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing); + if (flags & 256 /* Static */ || !enclosingClass) { + if (errorNode) { + error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || containingType)); + } + return false; + } + } + if (flags & 256 /* Static */) { + return true; + } + if (containingType.flags & 262144 /* TypeParameter */) { + containingType = containingType.isThisType ? getConstraintOfTypeParameter(containingType) : getBaseConstraintOfType(containingType); + } + if (!containingType || !hasBaseType(containingType, enclosingClass)) { + if (errorNode) { + error(errorNode, Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), typeToString(enclosingClass), typeToString(containingType)); + } + return false; + } + return true; + } + function getEnclosingClassFromThisParameter(node) { + const thisParameter = getThisParameterFromNodeContext(node); + let thisType = (thisParameter == null ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type); + if (thisType && thisType.flags & 262144 /* TypeParameter */) { + thisType = getConstraintOfTypeParameter(thisType); + } + if (thisType && getObjectFlags(thisType) & (3 /* ClassOrInterface */ | 4 /* Reference */)) { + return getTargetType(thisType); + } + return void 0; + } + function getThisParameterFromNodeContext(node) { + const thisContainer = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + return thisContainer && isFunctionLike(thisContainer) ? getThisParameter(thisContainer) : void 0; + } + function symbolHasNonMethodDeclaration(symbol) { + return !!forEachProperty(symbol, (prop) => !(prop.flags & 8192 /* Method */)); + } + function checkNonNullExpression(node) { + return checkNonNullType(checkExpression(node), node); + } + function isNullableType(type) { + return hasTypeFacts(type, 50331648 /* IsUndefinedOrNull */); + } + function getNonNullableTypeIfNeeded(type) { + return isNullableType(type) ? getNonNullableType(type) : type; + } + function reportObjectPossiblyNullOrUndefinedError(node, facts) { + const nodeText = isEntityNameExpression(node) ? entityNameToString(node) : void 0; + if (node.kind === 106 /* NullKeyword */) { + error(node, Diagnostics.The_value_0_cannot_be_used_here, "null"); + return; + } + if (nodeText !== void 0 && nodeText.length < 100) { + if (isIdentifier(node) && nodeText === "undefined") { + error(node, Diagnostics.The_value_0_cannot_be_used_here, "undefined"); + return; + } + error( + node, + facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics._0_is_possibly_null_or_undefined : Diagnostics._0_is_possibly_undefined : Diagnostics._0_is_possibly_null, + nodeText + ); + } else { + error( + node, + facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Object_is_possibly_null_or_undefined : Diagnostics.Object_is_possibly_undefined : Diagnostics.Object_is_possibly_null + ); + } + } + function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) { + error( + node, + facts & 16777216 /* IsUndefined */ ? facts & 33554432 /* IsNull */ ? Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined : Diagnostics.Cannot_invoke_an_object_which_is_possibly_null + ); + } + function checkNonNullTypeWithReporter(type, node, reportError) { + if (strictNullChecks && type.flags & 2 /* Unknown */) { + if (isEntityNameExpression(node)) { + const nodeText = entityNameToString(node); + if (nodeText.length < 100) { + error(node, Diagnostics._0_is_of_type_unknown, nodeText); + return errorType; + } + } + error(node, Diagnostics.Object_is_of_type_unknown); + return errorType; + } + const facts = getTypeFacts(type, 50331648 /* IsUndefinedOrNull */); + if (facts & 50331648 /* IsUndefinedOrNull */) { + reportError(node, facts); + const t = getNonNullableType(type); + return t.flags & (98304 /* Nullable */ | 131072 /* Never */) ? errorType : t; + } + return type; + } + function checkNonNullType(type, node) { + return checkNonNullTypeWithReporter(type, node, reportObjectPossiblyNullOrUndefinedError); + } + function checkNonNullNonVoidType(type, node) { + const nonNullType = checkNonNullType(type, node); + if (nonNullType.flags & 16384 /* Void */) { + if (isEntityNameExpression(node)) { + const nodeText = entityNameToString(node); + if (isIdentifier(node) && nodeText === "undefined") { + error(node, Diagnostics.The_value_0_cannot_be_used_here, nodeText); + return nonNullType; + } + if (nodeText.length < 100) { + error(node, Diagnostics._0_is_possibly_undefined, nodeText); + return nonNullType; + } + } + error(node, Diagnostics.Object_is_possibly_undefined); + } + return nonNullType; + } + function checkPropertyAccessExpression(node, checkMode, writeOnly) { + return node.flags & 64 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) : checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode, writeOnly); + } + function checkPropertyAccessChain(node, checkMode) { + const leftType = checkExpression(node.expression); + const nonOptionalType = getOptionalExpressionType(leftType, node.expression); + return propagateOptionalTypeMarker(checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullType(nonOptionalType, node.expression), node.name, checkMode), node, nonOptionalType !== leftType); + } + function checkQualifiedName(node, checkMode) { + const leftType = isPartOfTypeQuery(node) && isThisIdentifier(node.left) ? checkNonNullType(checkThisExpression(node.left), node.left) : checkNonNullExpression(node.left); + return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode); + } + function isMethodAccessForCall(node) { + while (node.parent.kind === 217 /* ParenthesizedExpression */) { + node = node.parent; + } + return isCallOrNewExpression(node.parent) && node.parent.expression === node; + } + function lookupSymbolForPrivateIdentifierDeclaration(propName, location) { + for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) { + const { symbol } = containingClass; + const name = getSymbolNameForPrivateIdentifier(symbol, propName); + const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name); + if (prop) { + return prop; + } + } + } + function checkGrammarPrivateIdentifierExpression(privId) { + if (!getContainingClass(privId)) { + return grammarErrorOnNode(privId, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + } + if (!isForInStatement(privId.parent)) { + if (!isExpressionNode(privId)) { + return grammarErrorOnNode(privId, Diagnostics.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); + } + const isInOperation = isBinaryExpression(privId.parent) && privId.parent.operatorToken.kind === 103 /* InKeyword */; + if (!getSymbolForPrivateIdentifierExpression(privId) && !isInOperation) { + return grammarErrorOnNode(privId, Diagnostics.Cannot_find_name_0, idText(privId)); + } + } + return false; + } + function checkPrivateIdentifierExpression(privId) { + checkGrammarPrivateIdentifierExpression(privId); + const symbol = getSymbolForPrivateIdentifierExpression(privId); + if (symbol) { + markPropertyAsReferenced( + symbol, + /*nodeForCheckWriteOnly*/ + void 0, + /*isSelfTypeAccess*/ + false + ); + } + return anyType; + } + function getSymbolForPrivateIdentifierExpression(privId) { + if (!isExpressionNode(privId)) { + return void 0; + } + const links = getNodeLinks(privId); + if (links.resolvedSymbol === void 0) { + links.resolvedSymbol = lookupSymbolForPrivateIdentifierDeclaration(privId.escapedText, privId); + } + return links.resolvedSymbol; + } + function getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) { + return getPropertyOfType(leftType, lexicallyScopedIdentifier.escapedName); + } + function checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedIdentifier) { + let propertyOnType; + const properties = getPropertiesOfType(leftType); + if (properties) { + forEach(properties, (symbol) => { + const decl = symbol.valueDeclaration; + if (decl && isNamedDeclaration(decl) && isPrivateIdentifier(decl.name) && decl.name.escapedText === right.escapedText) { + propertyOnType = symbol; + return true; + } + }); + } + const diagName = diagnosticName(right); + if (propertyOnType) { + const typeValueDecl = Debug.checkDefined(propertyOnType.valueDeclaration); + const typeClass = Debug.checkDefined(getContainingClass(typeValueDecl)); + if (lexicallyScopedIdentifier == null ? void 0 : lexicallyScopedIdentifier.valueDeclaration) { + const lexicalValueDecl = lexicallyScopedIdentifier.valueDeclaration; + const lexicalClass = getContainingClass(lexicalValueDecl); + Debug.assert(!!lexicalClass); + if (findAncestor(lexicalClass, (n) => typeClass === n)) { + const diagnostic = error( + right, + Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, + diagName, + typeToString(leftType) + ); + addRelatedInfo( + diagnostic, + createDiagnosticForNode( + lexicalValueDecl, + Diagnostics.The_shadowing_declaration_of_0_is_defined_here, + diagName + ), + createDiagnosticForNode( + typeValueDecl, + Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, + diagName + ) + ); + return true; + } + } + error( + right, + Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, + diagName, + diagnosticName(typeClass.name || anon) + ); + return true; + } + return false; + } + function isThisPropertyAccessInConstructor(node, prop) { + return (isConstructorDeclaredProperty(prop) || isThisProperty(node) && isAutoTypedProperty(prop)) && getThisContainer( + node, + /*includeArrowFunctions*/ + true, + /*includeClassComputedPropertyName*/ + false + ) === getDeclaringConstructor(prop); + } + function checkPropertyAccessExpressionOrQualifiedName(node, left, leftType, right, checkMode, writeOnly) { + const parentSymbol = getNodeLinks(left).resolvedSymbol; + const assignmentKind = getAssignmentTargetKind(node); + const apparentType = getApparentType(assignmentKind !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(leftType) : leftType); + const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType; + let prop; + if (isPrivateIdentifier(right)) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { + if (assignmentKind !== 0 /* None */) { + checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */); + } + if (assignmentKind !== 1 /* Definite */) { + checkExternalEmitHelpers(node, 524288 /* ClassPrivateFieldGet */); + } + } + const lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right); + if (assignmentKind && lexicallyScopedSymbol && lexicallyScopedSymbol.valueDeclaration && isMethodDeclaration(lexicallyScopedSymbol.valueDeclaration)) { + grammarErrorOnNode(right, Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, idText(right)); + } + if (isAnyLike) { + if (lexicallyScopedSymbol) { + return isErrorType(apparentType) ? errorType : apparentType; + } + if (getContainingClassExcludingClassDecorators(right) === void 0) { + grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + return anyType; + } + } + prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol); + if (prop === void 0) { + if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) { + return errorType; + } + const containingClass = getContainingClassExcludingClassDecorators(right); + if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) { + grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right)); + } + } else { + const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */); + if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) { + error(node, Diagnostics.Private_accessor_was_defined_without_a_getter); + } + } + } else { + if (isAnyLike) { + if (isIdentifier(left) && parentSymbol) { + markLinkedReferences( + node, + 2 /* Property */, + /*propSymbol*/ + void 0, + leftType + ); + } + return isErrorType(apparentType) ? errorType : apparentType; + } + prop = getPropertyOfType( + apparentType, + right.escapedText, + /*skipObjectFunctionPropertyAugment*/ + isConstEnumObjectType(apparentType), + /*includeTypeOnlyMembers*/ + node.kind === 166 /* QualifiedName */ + ); + } + markLinkedReferences(node, 2 /* Property */, prop, leftType); + let propType; + if (!prop) { + const indexInfo = !isPrivateIdentifier(right) && (assignmentKind === 0 /* None */ || !isGenericObjectType(leftType) || isThisTypeParameter(leftType)) ? getApplicableIndexInfoForName(apparentType, right.escapedText) : void 0; + if (!(indexInfo && indexInfo.type)) { + const isUncheckedJS = isUncheckedJSSuggestion( + node, + leftType.symbol, + /*excludeClasses*/ + true + ); + if (!isUncheckedJS && isJSLiteralType(leftType)) { + return anyType; + } + if (leftType.symbol === globalThisSymbol) { + if (globalThisSymbol.exports.has(right.escapedText) && globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */) { + error(right, Diagnostics.Property_0_does_not_exist_on_type_1, unescapeLeadingUnderscores(right.escapedText), typeToString(leftType)); + } else if (noImplicitAny) { + error(right, Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType)); + } + return anyType; + } + if (right.escapedText && !checkAndReportErrorForExtendingInterface(node)) { + reportNonexistentProperty(right, isThisTypeParameter(leftType) ? apparentType : leftType, isUncheckedJS); + } + return errorType; + } + if (indexInfo.isReadonly && (isAssignmentTarget(node) || isDeleteTarget(node))) { + error(node, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType)); + } + propType = indexInfo.type; + if (compilerOptions.noUncheckedIndexedAccess && getAssignmentTargetKind(node) !== 1 /* Definite */) { + propType = getUnionType([propType, missingType]); + } + if (compilerOptions.noPropertyAccessFromIndexSignature && isPropertyAccessExpression(node)) { + error(right, Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, unescapeLeadingUnderscores(right.escapedText)); + } + if (indexInfo.declaration && isDeprecatedDeclaration(indexInfo.declaration)) { + addDeprecatedSuggestion(right, [indexInfo.declaration], right.escapedText); + } + } else { + const targetPropSymbol = resolveAliasWithDeprecationCheck(prop, right); + if (isDeprecatedSymbol(targetPropSymbol) && isUncalledFunctionReference(node, targetPropSymbol) && targetPropSymbol.declarations) { + addDeprecatedSuggestion(right, targetPropSymbol.declarations, right.escapedText); + } + checkPropertyNotUsedBeforeDeclaration(prop, node, right); + markPropertyAsReferenced(prop, node, isSelfTypeAccess(left, parentSymbol)); + getNodeLinks(node).resolvedSymbol = prop; + checkPropertyAccessibility(node, left.kind === 108 /* SuperKeyword */, isWriteAccess(node), apparentType, prop); + if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) { + error(right, Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, idText(right)); + return errorType; + } + propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writeOnly || isWriteOnlyAccess(node) ? getWriteTypeOfSymbol(prop) : getTypeOfSymbol(prop); + } + return getFlowTypeOfAccessExpression(node, prop, propType, right, checkMode); + } + function isUncheckedJSSuggestion(node, suggestion, excludeClasses) { + var _a; + const file = getSourceFileOfNode(node); + if (file) { + if (compilerOptions.checkJs === void 0 && file.checkJsDirective === void 0 && (file.scriptKind === 1 /* JS */ || file.scriptKind === 2 /* JSX */)) { + const declarationFile = forEach(suggestion == null ? void 0 : suggestion.declarations, getSourceFileOfNode); + const suggestionHasNoExtendsOrDecorators = !(suggestion == null ? void 0 : suggestion.valueDeclaration) || !isClassLike(suggestion.valueDeclaration) || ((_a = suggestion.valueDeclaration.heritageClauses) == null ? void 0 : _a.length) || classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + suggestion.valueDeclaration + ); + return !(file !== declarationFile && !!declarationFile && isGlobalSourceFile(declarationFile)) && !(excludeClasses && suggestion && suggestion.flags & 32 /* Class */ && suggestionHasNoExtendsOrDecorators) && !(!!node && excludeClasses && isPropertyAccessExpression(node) && node.expression.kind === 110 /* ThisKeyword */ && suggestionHasNoExtendsOrDecorators); + } + } + return false; + } + function getFlowTypeOfAccessExpression(node, prop, propType, errorNode, checkMode) { + const assignmentKind = getAssignmentTargetKind(node); + if (assignmentKind === 1 /* Definite */) { + return removeMissingType(propType, !!(prop && prop.flags & 16777216 /* Optional */)); + } + if (prop && !(prop.flags & (3 /* Variable */ | 4 /* Property */ | 98304 /* Accessor */)) && !(prop.flags & 8192 /* Method */ && propType.flags & 1048576 /* Union */) && !isDuplicatedCommonJSExport(prop.declarations)) { + return propType; + } + if (propType === autoType) { + return getFlowTypeOfProperty(node, prop); + } + propType = getNarrowableTypeForReference(propType, node, checkMode); + let assumeUninitialized = false; + if (strictNullChecks && strictPropertyInitialization && isAccessExpression(node) && node.expression.kind === 110 /* ThisKeyword */) { + const declaration = prop && prop.valueDeclaration; + if (declaration && isPropertyWithoutInitializer(declaration)) { + if (!isStatic(declaration)) { + const flowContainer = getControlFlowContainer(node); + if (flowContainer.kind === 176 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 33554432 /* Ambient */)) { + assumeUninitialized = true; + } + } + } + } else if (strictNullChecks && prop && prop.valueDeclaration && isPropertyAccessExpression(prop.valueDeclaration) && getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) && getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration)) { + assumeUninitialized = true; + } + const flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType); + if (assumeUninitialized && !containsUndefinedType(propType) && containsUndefinedType(flowType)) { + error(errorNode, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); + return propType; + } + return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType; + } + function checkPropertyNotUsedBeforeDeclaration(prop, node, right) { + const { valueDeclaration } = prop; + if (!valueDeclaration || getSourceFileOfNode(node).isDeclarationFile) { + return; + } + let diagnosticMessage; + const declarationName = idText(right); + if (isInPropertyInitializerOrClassStaticBlock(node) && !isOptionalPropertyDeclaration(valueDeclaration) && !(isAccessExpression(node) && isAccessExpression(node.expression)) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right) && !(isMethodDeclaration(valueDeclaration) && getCombinedModifierFlagsCached(valueDeclaration) & 256 /* Static */) && (useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) { + diagnosticMessage = error(right, Diagnostics.Property_0_is_used_before_its_initialization, declarationName); + } else if (valueDeclaration.kind === 263 /* ClassDeclaration */ && node.parent.kind !== 183 /* TypeReference */ && !(valueDeclaration.flags & 33554432 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) { + diagnosticMessage = error(right, Diagnostics.Class_0_used_before_its_declaration, declarationName); + } + if (diagnosticMessage) { + addRelatedInfo(diagnosticMessage, createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here, declarationName)); + } + } + function isInPropertyInitializerOrClassStaticBlock(node) { + return !!findAncestor(node, (node2) => { + switch (node2.kind) { + case 172 /* PropertyDeclaration */: + return true; + case 303 /* PropertyAssignment */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 305 /* SpreadAssignment */: + case 167 /* ComputedPropertyName */: + case 239 /* TemplateSpan */: + case 294 /* JsxExpression */: + case 291 /* JsxAttribute */: + case 292 /* JsxAttributes */: + case 293 /* JsxSpreadAttribute */: + case 286 /* JsxOpeningElement */: + case 233 /* ExpressionWithTypeArguments */: + case 298 /* HeritageClause */: + return false; + case 219 /* ArrowFunction */: + case 244 /* ExpressionStatement */: + return isBlock(node2.parent) && isClassStaticBlockDeclaration(node2.parent.parent) ? true : "quit"; + default: + return isExpressionNode(node2) ? false : "quit"; + } + }); + } + function isPropertyDeclaredInAncestorClass(prop) { + if (!(prop.parent.flags & 32 /* Class */)) { + return false; + } + let classType = getTypeOfSymbol(prop.parent); + while (true) { + classType = classType.symbol && getSuperClass(classType); + if (!classType) { + return false; + } + const superProperty = getPropertyOfType(classType, prop.escapedName); + if (superProperty && superProperty.valueDeclaration) { + return true; + } + } + } + function getSuperClass(classType) { + const x = getBaseTypes(classType); + if (x.length === 0) { + return void 0; + } + return getIntersectionType(x); + } + function reportNonexistentProperty(propNode, containingType, isUncheckedJS) { + let errorInfo; + let relatedInfo; + if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) { + for (const subtype of containingType.types) { + if (!getPropertyOfType(subtype, propNode.escapedText) && !getApplicableIndexInfoForName(subtype, propNode.escapedText)) { + errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(subtype)); + break; + } + } + } + if (typeHasStaticProperty(propNode.escapedText, containingType)) { + const propName = declarationNameToString(propNode); + const typeName = typeToString(containingType); + errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + "." + propName); + } else { + const promisedType = getPromisedTypeOfPromise(containingType); + if (promisedType && getPropertyOfType(promisedType, propNode.escapedText)) { + errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Property_0_does_not_exist_on_type_1, declarationNameToString(propNode), typeToString(containingType)); + relatedInfo = createDiagnosticForNode(propNode, Diagnostics.Did_you_forget_to_use_await); + } else { + const missingProperty = declarationNameToString(propNode); + const container = typeToString(containingType); + const libSuggestion = getSuggestedLibForNonExistentProperty(missingProperty, containingType); + if (libSuggestion !== void 0) { + errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.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, missingProperty, container, libSuggestion); + } else { + const suggestion = getSuggestedSymbolForNonexistentProperty(propNode, containingType); + if (suggestion !== void 0) { + const suggestedName = symbolName(suggestion); + const message = isUncheckedJS ? Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2; + errorInfo = chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName); + relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestedName); + } else { + const diagnostic = containerSeemsToBeEmptyDomElement(containingType) ? Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : Diagnostics.Property_0_does_not_exist_on_type_1; + errorInfo = chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container); + } + } + } + } + const resultDiagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(propNode), propNode, errorInfo); + if (relatedInfo) { + addRelatedInfo(resultDiagnostic, relatedInfo); + } + addErrorOrSuggestion(!isUncheckedJS || errorInfo.code !== Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, resultDiagnostic); + } + function containerSeemsToBeEmptyDomElement(containingType) { + return compilerOptions.lib && !compilerOptions.lib.includes("dom") && everyContainedType(containingType, (type) => type.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) && isEmptyObjectType(containingType); + } + function typeHasStaticProperty(propName, containingType) { + const prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName); + return prop !== void 0 && !!prop.valueDeclaration && isStatic(prop.valueDeclaration); + } + function getSuggestedLibForNonExistentName(name) { + const missingName = diagnosticName(name); + const allFeatures = getScriptTargetFeatures(); + const typeFeatures = allFeatures.get(missingName); + return typeFeatures && firstIterator(typeFeatures.keys()); + } + function getSuggestedLibForNonExistentProperty(missingProperty, containingType) { + const container = getApparentType(containingType).symbol; + if (!container) { + return void 0; + } + const containingTypeName = symbolName(container); + const allFeatures = getScriptTargetFeatures(); + const typeFeatures = allFeatures.get(containingTypeName); + if (typeFeatures) { + for (const [libTarget, featuresOfType] of typeFeatures) { + if (contains(featuresOfType, missingProperty)) { + return libTarget; + } + } + } + } + function getSuggestedSymbolForNonexistentClassMember(name, baseType) { + return getSpellingSuggestionForName(name, getPropertiesOfType(baseType), 106500 /* ClassMember */); + } + function getSuggestedSymbolForNonexistentProperty(name, containingType) { + let props = getPropertiesOfType(containingType); + if (typeof name !== "string") { + const parent = name.parent; + if (isPropertyAccessExpression(parent)) { + props = filter(props, (prop) => isValidPropertyAccessForCompletions(parent, containingType, prop)); + } + name = idText(name); + } + return getSpellingSuggestionForName(name, props, 111551 /* Value */); + } + function getSuggestedSymbolForNonexistentJSXAttribute(name, containingType) { + const strName = isString(name) ? name : idText(name); + const properties = getPropertiesOfType(containingType); + const jsxSpecific = strName === "for" ? find(properties, (x) => symbolName(x) === "htmlFor") : strName === "class" ? find(properties, (x) => symbolName(x) === "className") : void 0; + return jsxSpecific ?? getSpellingSuggestionForName(strName, properties, 111551 /* Value */); + } + function getSuggestionForNonexistentProperty(name, containingType) { + const suggestion = getSuggestedSymbolForNonexistentProperty(name, containingType); + return suggestion && symbolName(suggestion); + } + function getSuggestionForSymbolNameLookup(symbols, name, meaning) { + const symbol = getSymbol(symbols, name, meaning); + if (symbol) return symbol; + let candidates; + if (symbols === globals) { + const primitives = mapDefined( + ["string", "number", "boolean", "object", "bigint", "symbol"], + (s) => symbols.has(s.charAt(0).toUpperCase() + s.slice(1)) ? createSymbol(524288 /* TypeAlias */, s) : void 0 + ); + candidates = primitives.concat(arrayFrom(symbols.values())); + } else { + candidates = arrayFrom(symbols.values()); + } + return getSpellingSuggestionForName(unescapeLeadingUnderscores(name), candidates, meaning); + } + function getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning) { + Debug.assert(outerName !== void 0, "outername should always be defined"); + const result = resolveNameForSymbolSuggestion( + location, + outerName, + meaning, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false, + /*excludeGlobals*/ + false + ); + return result; + } + function getSuggestedSymbolForNonexistentModule(name, targetModule) { + return targetModule.exports && getSpellingSuggestionForName(idText(name), getExportsOfModuleAsArray(targetModule), 2623475 /* ModuleMember */); + } + function getSuggestionForNonexistentIndexSignature(objectType, expr, keyedType) { + function hasProp(name) { + const prop = getPropertyOfObjectType(objectType, name); + if (prop) { + const s = getSingleCallSignature(getTypeOfSymbol(prop)); + return !!s && getMinArgumentCount(s) >= 1 && isTypeAssignableTo(keyedType, getTypeAtPosition(s, 0)); + } + return false; + } + const suggestedMethod = isAssignmentTarget(expr) ? "set" : "get"; + if (!hasProp(suggestedMethod)) { + return void 0; + } + let suggestion = tryGetPropertyAccessOrIdentifierToString(expr.expression); + if (suggestion === void 0) { + suggestion = suggestedMethod; + } else { + suggestion += "." + suggestedMethod; + } + return suggestion; + } + function getSuggestedTypeForNonexistentStringLiteralType(source, target) { + const candidates = target.types.filter((type) => !!(type.flags & 128 /* StringLiteral */)); + return getSpellingSuggestion(source.value, candidates, (type) => type.value); + } + function getSpellingSuggestionForName(name, symbols, meaning) { + return getSpellingSuggestion(name, symbols, getCandidateName); + function getCandidateName(candidate) { + const candidateName = symbolName(candidate); + if (startsWith(candidateName, '"')) { + return void 0; + } + if (candidate.flags & meaning) { + return candidateName; + } + if (candidate.flags & 2097152 /* Alias */) { + const alias = tryResolveAlias(candidate); + if (alias && alias.flags & meaning) { + return candidateName; + } + } + return void 0; + } + } + function markPropertyAsReferenced(prop, nodeForCheckWriteOnly, isSelfTypeAccess2) { + const valueDeclaration = prop && prop.flags & 106500 /* ClassMember */ && prop.valueDeclaration; + if (!valueDeclaration) { + return; + } + const hasPrivateModifier = hasEffectiveModifier(valueDeclaration, 2 /* Private */); + const hasPrivateIdentifier = prop.valueDeclaration && isNamedDeclaration(prop.valueDeclaration) && isPrivateIdentifier(prop.valueDeclaration.name); + if (!hasPrivateModifier && !hasPrivateIdentifier) { + return; + } + if (nodeForCheckWriteOnly && isWriteOnlyAccess(nodeForCheckWriteOnly) && !(prop.flags & 65536 /* SetAccessor */)) { + return; + } + if (isSelfTypeAccess2) { + const containingMethod = findAncestor(nodeForCheckWriteOnly, isFunctionLikeDeclaration); + if (containingMethod && containingMethod.symbol === prop) { + return; + } + } + (getCheckFlags(prop) & 1 /* Instantiated */ ? getSymbolLinks(prop).target : prop).isReferenced = -1 /* All */; + } + function isSelfTypeAccess(name, parent) { + return name.kind === 110 /* ThisKeyword */ || !!parent && isEntityNameExpression(name) && parent === getResolvedSymbol(getFirstIdentifier(name)); + } + function isValidPropertyAccess(node, propertyName) { + switch (node.kind) { + case 211 /* PropertyAccessExpression */: + return isValidPropertyAccessWithType(node, node.expression.kind === 108 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression))); + case 166 /* QualifiedName */: + return isValidPropertyAccessWithType( + node, + /*isSuper*/ + false, + propertyName, + getWidenedType(checkExpression(node.left)) + ); + case 205 /* ImportType */: + return isValidPropertyAccessWithType( + node, + /*isSuper*/ + false, + propertyName, + getTypeFromTypeNode(node) + ); + } + } + function isValidPropertyAccessForCompletions(node, type, property) { + return isPropertyAccessible( + node, + node.kind === 211 /* PropertyAccessExpression */ && node.expression.kind === 108 /* SuperKeyword */, + /*isWrite*/ + false, + type, + property + ); + } + function isValidPropertyAccessWithType(node, isSuper, propertyName, type) { + if (isTypeAny(type)) { + return true; + } + const prop = getPropertyOfType(type, propertyName); + return !!prop && isPropertyAccessible( + node, + isSuper, + /*isWrite*/ + false, + type, + prop + ); + } + function isPropertyAccessible(node, isSuper, isWrite, containingType, property) { + if (isTypeAny(containingType)) { + return true; + } + if (property.valueDeclaration && isPrivateIdentifierClassElementDeclaration(property.valueDeclaration)) { + const declClass = getContainingClass(property.valueDeclaration); + return !isOptionalChain(node) && !!findAncestor(node, (parent) => parent === declClass); + } + return checkPropertyAccessibilityAtLocation(node, isSuper, isWrite, containingType, property); + } + function getForInVariableSymbol(node) { + const initializer = node.initializer; + if (initializer.kind === 261 /* VariableDeclarationList */) { + const variable = initializer.declarations[0]; + if (variable && !isBindingPattern(variable.name)) { + return getSymbolOfDeclaration(variable); + } + } else if (initializer.kind === 80 /* Identifier */) { + return getResolvedSymbol(initializer); + } + return void 0; + } + function hasNumericPropertyNames(type) { + return getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, numberType); + } + function isForInVariableForNumericPropertyNames(expr) { + const e = skipParentheses(expr); + if (e.kind === 80 /* Identifier */) { + const symbol = getResolvedSymbol(e); + if (symbol.flags & 3 /* Variable */) { + let child = expr; + let node = expr.parent; + while (node) { + if (node.kind === 249 /* ForInStatement */ && child === node.statement && getForInVariableSymbol(node) === symbol && hasNumericPropertyNames(getTypeOfExpression(node.expression))) { + return true; + } + child = node; + node = node.parent; + } + } + } + return false; + } + function checkIndexedAccess(node, checkMode) { + return node.flags & 64 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) : checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode); + } + function checkElementAccessChain(node, checkMode) { + const exprType = checkExpression(node.expression); + const nonOptionalType = getOptionalExpressionType(exprType, node.expression); + return propagateOptionalTypeMarker(checkElementAccessExpression(node, checkNonNullType(nonOptionalType, node.expression), checkMode), node, nonOptionalType !== exprType); + } + function checkElementAccessExpression(node, exprType, checkMode) { + const objectType = getAssignmentTargetKind(node) !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(exprType) : exprType; + const indexExpression = node.argumentExpression; + const indexType = checkExpression(indexExpression); + if (isErrorType(objectType) || objectType === silentNeverType) { + return objectType; + } + if (isConstEnumObjectType(objectType) && !isStringLiteralLike(indexExpression)) { + error(indexExpression, Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal); + return errorType; + } + const effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType; + const assignmentTargetKind = getAssignmentTargetKind(node); + let accessFlags; + if (assignmentTargetKind === 0 /* None */) { + accessFlags = 32 /* ExpressionPosition */; + } else { + accessFlags = 4 /* Writing */ | (isGenericObjectType(objectType) && !isThisTypeParameter(objectType) ? 2 /* NoIndexSignatures */ : 0); + if (assignmentTargetKind === 2 /* Compound */) { + accessFlags |= 32 /* ExpressionPosition */; + } + } + const indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType; + return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node); + } + function callLikeExpressionMayHaveTypeArguments(node) { + return isCallOrNewExpression(node) || isTaggedTemplateExpression(node) || isJsxOpeningLikeElement(node); + } + function resolveUntypedCall(node) { + if (callLikeExpressionMayHaveTypeArguments(node)) { + forEach(node.typeArguments, checkSourceElement); + } + if (node.kind === 215 /* TaggedTemplateExpression */) { + checkExpression(node.template); + } else if (isJsxOpeningLikeElement(node)) { + checkExpression(node.attributes); + } else if (isBinaryExpression(node)) { + checkExpression(node.left); + } else if (isCallOrNewExpression(node)) { + forEach(node.arguments, (argument) => { + checkExpression(argument); + }); + } + return anySignature; + } + function resolveErrorCall(node) { + resolveUntypedCall(node); + return unknownSignature; + } + function reorderCandidates(signatures, result, callChainFlags) { + let lastParent; + let lastSymbol; + let cutoffIndex = 0; + let index; + let specializedIndex = -1; + let spliceIndex; + Debug.assert(!result.length); + for (const signature of signatures) { + const symbol = signature.declaration && getSymbolOfDeclaration(signature.declaration); + const parent = signature.declaration && signature.declaration.parent; + if (!lastSymbol || symbol === lastSymbol) { + if (lastParent && parent === lastParent) { + index = index + 1; + } else { + lastParent = parent; + index = cutoffIndex; + } + } else { + index = cutoffIndex = result.length; + lastParent = parent; + } + lastSymbol = symbol; + if (signatureHasLiteralTypes(signature)) { + specializedIndex++; + spliceIndex = specializedIndex; + cutoffIndex++; + } else { + spliceIndex = index; + } + result.splice(spliceIndex, 0, callChainFlags ? getOptionalCallSignature(signature, callChainFlags) : signature); + } + } + function isSpreadArgument(arg) { + return !!arg && (arg.kind === 230 /* SpreadElement */ || arg.kind === 237 /* SyntheticExpression */ && arg.isSpread); + } + function getSpreadArgumentIndex(args) { + return findIndex(args, isSpreadArgument); + } + function acceptsVoid(t) { + return !!(t.flags & 16384 /* Void */); + } + function acceptsVoidUndefinedUnknownOrAny(t) { + return !!(t.flags & (16384 /* Void */ | 32768 /* Undefined */ | 2 /* Unknown */ | 1 /* Any */)); + } + function hasCorrectArity(node, args, signature, signatureHelpTrailingComma = false) { + let argCount; + let callIsIncomplete = false; + let effectiveParameterCount = getParameterCount(signature); + let effectiveMinimumArguments = getMinArgumentCount(signature); + if (node.kind === 215 /* TaggedTemplateExpression */) { + argCount = args.length; + if (node.template.kind === 228 /* TemplateExpression */) { + const lastSpan = last(node.template.templateSpans); + callIsIncomplete = nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated; + } else { + const templateLiteral = node.template; + Debug.assert(templateLiteral.kind === 15 /* NoSubstitutionTemplateLiteral */); + callIsIncomplete = !!templateLiteral.isUnterminated; + } + } else if (node.kind === 170 /* Decorator */) { + argCount = getDecoratorArgumentCount(node, signature); + } else if (node.kind === 226 /* BinaryExpression */) { + argCount = 1; + } else if (isJsxOpeningLikeElement(node)) { + callIsIncomplete = node.attributes.end === node.end; + if (callIsIncomplete) { + return true; + } + argCount = effectiveMinimumArguments === 0 ? args.length : 1; + effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; + effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); + } else if (!node.arguments) { + Debug.assert(node.kind === 214 /* NewExpression */); + return getMinArgumentCount(signature) === 0; + } else { + argCount = signatureHelpTrailingComma ? args.length + 1 : args.length; + callIsIncomplete = node.arguments.end === node.end; + const spreadArgIndex = getSpreadArgumentIndex(args); + if (spreadArgIndex >= 0) { + return spreadArgIndex >= getMinArgumentCount(signature) && (hasEffectiveRestParameter(signature) || spreadArgIndex < getParameterCount(signature)); + } + } + if (!hasEffectiveRestParameter(signature) && argCount > effectiveParameterCount) { + return false; + } + if (callIsIncomplete || argCount >= effectiveMinimumArguments) { + return true; + } + for (let i = argCount; i < effectiveMinimumArguments; i++) { + const type = getTypeAtPosition(signature, i); + if (filterType(type, isInJSFile(node) && !strictNullChecks ? acceptsVoidUndefinedUnknownOrAny : acceptsVoid).flags & 131072 /* Never */) { + return false; + } + } + return true; + } + function hasCorrectTypeArgumentArity(signature, typeArguments) { + const numTypeParameters = length(signature.typeParameters); + const minTypeArgumentCount = getMinTypeArgumentCount(signature.typeParameters); + return !some(typeArguments) || typeArguments.length >= minTypeArgumentCount && typeArguments.length <= numTypeParameters; + } + function isInstantiatedGenericParameter(signature, pos) { + let type; + return !!(signature.target && (type = tryGetTypeAtPosition(signature.target, pos)) && isGenericType(type)); + } + function getSingleCallSignature(type) { + return getSingleSignature( + type, + 0 /* Call */, + /*allowMembers*/ + false + ); + } + function getSingleCallOrConstructSignature(type) { + return getSingleSignature( + type, + 0 /* Call */, + /*allowMembers*/ + false + ) || getSingleSignature( + type, + 1 /* Construct */, + /*allowMembers*/ + false + ); + } + function getSingleSignature(type, kind, allowMembers) { + if (type.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type); + if (allowMembers || resolved.properties.length === 0 && resolved.indexInfos.length === 0) { + if (kind === 0 /* Call */ && resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0) { + return resolved.callSignatures[0]; + } + if (kind === 1 /* Construct */ && resolved.constructSignatures.length === 1 && resolved.callSignatures.length === 0) { + return resolved.constructSignatures[0]; + } + } + } + return void 0; + } + function instantiateSignatureInContextOf(signature, contextualSignature, inferenceContext, compareTypes) { + const context = createInferenceContext(signature.typeParameters, signature, 0 /* None */, compareTypes); + const restType = getEffectiveRestType(contextualSignature); + const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper); + const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature; + applyToParameterTypes(sourceSignature, signature, (source, target) => { + inferTypes(context.inferences, source, target); + }); + if (!inferenceContext) { + applyToReturnTypes(contextualSignature, signature, (source, target) => { + inferTypes(context.inferences, source, target, 128 /* ReturnType */); + }); + } + return getSignatureInstantiation(signature, getInferredTypes(context), isInJSFile(contextualSignature.declaration)); + } + function inferJsxTypeArguments(node, signature, checkMode, context) { + const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node); + const checkAttrType = checkExpressionWithContextualType(node.attributes, paramType, context, checkMode); + inferTypes(context.inferences, checkAttrType, paramType); + return getInferredTypes(context); + } + function getThisArgumentType(thisArgumentNode) { + if (!thisArgumentNode) { + return voidType; + } + const thisArgumentType = checkExpression(thisArgumentNode); + return isRightSideOfInstanceofExpression(thisArgumentNode) ? thisArgumentType : isOptionalChainRoot(thisArgumentNode.parent) ? getNonNullableType(thisArgumentType) : isOptionalChain(thisArgumentNode.parent) ? removeOptionalTypeMarker(thisArgumentType) : thisArgumentType; + } + function inferTypeArguments(node, signature, args, checkMode, context) { + if (isJsxOpeningLikeElement(node)) { + return inferJsxTypeArguments(node, signature, checkMode, context); + } + if (node.kind !== 170 /* Decorator */ && node.kind !== 226 /* BinaryExpression */) { + const skipBindingPatterns = every(signature.typeParameters, (p) => !!getDefaultFromTypeParameter(p)); + const contextualType = getContextualType(node, skipBindingPatterns ? 8 /* SkipBindingPatterns */ : 0 /* None */); + if (contextualType) { + const inferenceTargetType = getReturnTypeOfSignature(signature); + if (couldContainTypeVariables(inferenceTargetType)) { + const outerContext = getInferenceContext(node); + const isFromBindingPattern = !skipBindingPatterns && getContextualType(node, 8 /* SkipBindingPatterns */) !== contextualType; + if (!isFromBindingPattern) { + const outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */)); + const instantiatedType = instantiateType(contextualType, outerMapper); + const contextualSignature = getSingleCallSignature(instantiatedType); + const inferenceSourceType = contextualSignature && contextualSignature.typeParameters ? getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) : instantiatedType; + inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */); + } + const returnContext = createInferenceContext(signature.typeParameters, signature, context.flags); + const returnSourceType = instantiateType(contextualType, outerContext && outerContext.returnMapper); + inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType); + context.returnMapper = some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : void 0; + } + } + } + const restType = getNonArrayRestType(signature); + const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; + if (restType && restType.flags & 262144 /* TypeParameter */) { + const info = find(context.inferences, (info2) => info2.typeParameter === restType); + if (info) { + info.impliedArity = findIndex(args, isSpreadArgument, argCount) < 0 ? args.length - argCount : void 0; + } + } + const thisType = getThisTypeOfSignature(signature); + if (thisType && couldContainTypeVariables(thisType)) { + const thisArgumentNode = getThisArgumentOfCall(node); + inferTypes(context.inferences, getThisArgumentType(thisArgumentNode), thisType); + } + for (let i = 0; i < argCount; i++) { + const arg = args[i]; + if (arg.kind !== 232 /* OmittedExpression */) { + const paramType = getTypeAtPosition(signature, i); + if (couldContainTypeVariables(paramType)) { + const argType = checkExpressionWithContextualType(arg, paramType, context, checkMode); + inferTypes(context.inferences, argType, paramType); + } + } + } + if (restType && couldContainTypeVariables(restType)) { + const spreadType = getSpreadArgumentType(args, argCount, args.length, restType, context, checkMode); + inferTypes(context.inferences, spreadType, restType); + } + return getInferredTypes(context); + } + function getMutableArrayOrTupleType(type) { + return type.flags & 1048576 /* Union */ ? mapType(type, getMutableArrayOrTupleType) : type.flags & 1 /* Any */ || isMutableArrayOrTuple(getBaseConstraintOfType(type) || type) ? type : isTupleType(type) ? createTupleType( + getElementTypes(type), + type.target.elementFlags, + /*readonly*/ + false, + type.target.labeledElementDeclarations + ) : createTupleType([type], [8 /* Variadic */]); + } + function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) { + const inConstContext = isConstTypeVariable(restType); + if (index >= argCount - 1) { + const arg = args[argCount - 1]; + if (isSpreadArgument(arg)) { + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpressionWithContextualType(arg.expression, restType, context, checkMode); + if (isArrayLikeType(spreadType)) { + return getMutableArrayOrTupleType(spreadType); + } + return createArrayType(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg), inConstContext); + } + } + const types = []; + const flags = []; + const names = []; + for (let i = index; i < argCount; i++) { + const arg = args[i]; + if (isSpreadArgument(arg)) { + const spreadType = arg.kind === 237 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression); + if (isArrayLikeType(spreadType)) { + types.push(spreadType); + flags.push(8 /* Variadic */); + } else { + types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 230 /* SpreadElement */ ? arg.expression : arg)); + flags.push(4 /* Rest */); + } + } else { + const contextualType = isTupleType(restType) ? getContextualTypeForElementExpression(restType, i - index, argCount - index) || unknownType : getIndexedAccessType(restType, getNumberLiteralType(i - index), 256 /* Contextual */); + const argType = checkExpressionWithContextualType(arg, contextualType, context, checkMode); + const hasPrimitiveContextualType = inConstContext || maybeTypeOfKind(contextualType, 402784252 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */); + types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType)); + flags.push(1 /* Required */); + } + if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) { + names.push(arg.tupleNameSource); + } else { + names.push(void 0); + } + } + return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names); + } + function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) { + const isJavascript = isInJSFile(signature.declaration); + const typeParameters = signature.typeParameters; + const typeArgumentTypes = fillMissingTypeArguments(map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isJavascript); + let mapper; + for (let i = 0; i < typeArgumentNodes.length; i++) { + Debug.assert(typeParameters[i] !== void 0, "Should not call checkTypeArguments with too many type arguments"); + const constraint = getConstraintOfTypeParameter(typeParameters[i]); + if (constraint) { + const errorInfo = reportErrors2 && headMessage ? () => chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Type_0_does_not_satisfy_the_constraint_1 + ) : void 0; + const typeArgumentHeadMessage = headMessage || Diagnostics.Type_0_does_not_satisfy_the_constraint_1; + if (!mapper) { + mapper = createTypeMapper(typeParameters, typeArgumentTypes); + } + const typeArgument = typeArgumentTypes[i]; + if (!checkTypeAssignableTo( + typeArgument, + getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), + reportErrors2 ? typeArgumentNodes[i] : void 0, + typeArgumentHeadMessage, + errorInfo + )) { + return void 0; + } + } + } + return typeArgumentTypes; + } + function getJsxReferenceKind(node) { + if (isJsxIntrinsicTagName(node.tagName)) { + return 2 /* Mixed */; + } + const tagType = getApparentType(checkExpression(node.tagName)); + if (length(getSignaturesOfType(tagType, 1 /* Construct */))) { + return 0 /* Component */; + } + if (length(getSignaturesOfType(tagType, 0 /* Call */))) { + return 1 /* Function */; + } + return 2 /* Mixed */; + } + function checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer) { + const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node); + const attributesType = checkExpressionWithContextualType( + node.attributes, + paramType, + /*inferenceContext*/ + void 0, + checkMode + ); + const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType; + return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate( + checkAttributesType, + paramType, + relation, + reportErrors2 ? node.tagName : void 0, + node.attributes, + /*headMessage*/ + void 0, + containingMessageChain, + errorOutputContainer + ); + function checkTagNameDoesNotExpectTooManyArguments() { + var _a; + if (getJsxNamespaceContainerForImplicitImport(node)) { + return true; + } + const tagType = (isJsxOpeningElement(node) || isJsxSelfClosingElement(node)) && !(isJsxIntrinsicTagName(node.tagName) || isJsxNamespacedName(node.tagName)) ? checkExpression(node.tagName) : void 0; + if (!tagType) { + return true; + } + const tagCallSignatures = getSignaturesOfType(tagType, 0 /* Call */); + if (!length(tagCallSignatures)) { + return true; + } + const factory2 = getJsxFactoryEntity(node); + if (!factory2) { + return true; + } + const factorySymbol = resolveEntityName( + factory2, + 111551 /* Value */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + false, + node + ); + if (!factorySymbol) { + return true; + } + const factoryType = getTypeOfSymbol(factorySymbol); + const callSignatures = getSignaturesOfType(factoryType, 0 /* Call */); + if (!length(callSignatures)) { + return true; + } + let hasFirstParamSignatures = false; + let maxParamCount = 0; + for (const sig of callSignatures) { + const firstparam = getTypeAtPosition(sig, 0); + const signaturesOfParam = getSignaturesOfType(firstparam, 0 /* Call */); + if (!length(signaturesOfParam)) continue; + for (const paramSig of signaturesOfParam) { + hasFirstParamSignatures = true; + if (hasEffectiveRestParameter(paramSig)) { + return true; + } + const paramCount = getParameterCount(paramSig); + if (paramCount > maxParamCount) { + maxParamCount = paramCount; + } + } + } + if (!hasFirstParamSignatures) { + return true; + } + let absoluteMinArgCount = Infinity; + for (const tagSig of tagCallSignatures) { + const tagRequiredArgCount = getMinArgumentCount(tagSig); + if (tagRequiredArgCount < absoluteMinArgCount) { + absoluteMinArgCount = tagRequiredArgCount; + } + } + if (absoluteMinArgCount <= maxParamCount) { + return true; + } + if (reportErrors2) { + const diag2 = createDiagnosticForNode(node.tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(node.tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount); + const tagNameDeclaration = (_a = getSymbolAtLocation(node.tagName)) == null ? void 0 : _a.valueDeclaration; + if (tagNameDeclaration) { + addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(node.tagName))); + } + if (errorOutputContainer && errorOutputContainer.skipLogging) { + (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); + } + if (!errorOutputContainer.skipLogging) { + diagnostics.add(diag2); + } + } + return false; + } + } + function getEffectiveCheckNode(argument) { + argument = skipParentheses(argument); + return isSatisfiesExpression(argument) ? skipParentheses(argument.expression) : argument; + } + function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) { + const errorOutputContainer = { errors: void 0, skipLogging: true }; + if (isJsxOpeningLikeElement(node)) { + if (!checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer)) { + Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "jsx should have errors when reporting errors"); + return errorOutputContainer.errors || emptyArray; + } + return void 0; + } + const thisType = getThisTypeOfSignature(signature); + if (thisType && thisType !== voidType && !(isNewExpression(node) || isCallExpression(node) && isSuperProperty(node.expression))) { + const thisArgumentNode = getThisArgumentOfCall(node); + const thisArgumentType = getThisArgumentType(thisArgumentNode); + const errorNode = reportErrors2 ? thisArgumentNode || node : void 0; + const headMessage2 = Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1; + if (!checkTypeRelatedTo(thisArgumentType, thisType, relation, errorNode, headMessage2, containingMessageChain, errorOutputContainer)) { + Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "this parameter should have errors when reporting errors"); + return errorOutputContainer.errors || emptyArray; + } + } + const headMessage = Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1; + const restType = getNonArrayRestType(signature); + const argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length; + for (let i = 0; i < argCount; i++) { + const arg = args[i]; + if (arg.kind !== 232 /* OmittedExpression */) { + const paramType = getTypeAtPosition(signature, i); + const argType = checkExpressionWithContextualType( + arg, + paramType, + /*inferenceContext*/ + void 0, + checkMode + ); + const regularArgType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(argType) : argType; + const checkArgType = inferenceContext ? instantiateType(regularArgType, inferenceContext.nonFixingMapper) : regularArgType; + const effectiveCheckArgumentNode = getEffectiveCheckNode(arg); + if (!checkTypeRelatedToAndOptionallyElaborate(checkArgType, paramType, relation, reportErrors2 ? effectiveCheckArgumentNode : void 0, effectiveCheckArgumentNode, headMessage, containingMessageChain, errorOutputContainer)) { + Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "parameter should have errors when reporting errors"); + maybeAddMissingAwaitInfo(arg, checkArgType, paramType); + return errorOutputContainer.errors || emptyArray; + } + } + } + if (restType) { + const spreadType = getSpreadArgumentType( + args, + argCount, + args.length, + restType, + /*context*/ + void 0, + checkMode + ); + const restArgCount = args.length - argCount; + const errorNode = !reportErrors2 ? void 0 : restArgCount === 0 ? node : restArgCount === 1 ? getEffectiveCheckNode(args[argCount]) : setTextRangePosEnd(createSyntheticExpression(node, spreadType), args[argCount].pos, args[args.length - 1].end); + if (!checkTypeRelatedTo( + spreadType, + restType, + relation, + errorNode, + headMessage, + /*containingMessageChain*/ + void 0, + errorOutputContainer + )) { + Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "rest parameter should have errors when reporting errors"); + maybeAddMissingAwaitInfo(errorNode, spreadType, restType); + return errorOutputContainer.errors || emptyArray; + } + } + return void 0; + function maybeAddMissingAwaitInfo(errorNode, source, target) { + if (errorNode && reportErrors2 && errorOutputContainer.errors && errorOutputContainer.errors.length) { + if (getAwaitedTypeOfPromise(target)) { + return; + } + const awaitedTypeOfSource = getAwaitedTypeOfPromise(source); + if (awaitedTypeOfSource && isTypeRelatedTo(awaitedTypeOfSource, target, relation)) { + addRelatedInfo(errorOutputContainer.errors[0], createDiagnosticForNode(errorNode, Diagnostics.Did_you_forget_to_use_await)); + } + } + } + } + function getThisArgumentOfCall(node) { + if (node.kind === 226 /* BinaryExpression */) { + return node.right; + } + const expression = node.kind === 213 /* CallExpression */ ? node.expression : node.kind === 215 /* TaggedTemplateExpression */ ? node.tag : node.kind === 170 /* Decorator */ && !legacyDecorators ? node.expression : void 0; + if (expression) { + const callee = skipOuterExpressions(expression); + if (isAccessExpression(callee)) { + return callee.expression; + } + } + } + function createSyntheticExpression(parent, type, isSpread, tupleNameSource) { + const result = parseNodeFactory.createSyntheticExpression(type, isSpread, tupleNameSource); + setTextRange(result, parent); + setParent(result, parent); + return result; + } + function getEffectiveCallArguments(node) { + if (node.kind === 215 /* TaggedTemplateExpression */) { + const template = node.template; + const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; + if (template.kind === 228 /* TemplateExpression */) { + forEach(template.templateSpans, (span) => { + args2.push(span.expression); + }); + } + return args2; + } + if (node.kind === 170 /* Decorator */) { + return getEffectiveDecoratorArguments(node); + } + if (node.kind === 226 /* BinaryExpression */) { + return [node.left]; + } + if (isJsxOpeningLikeElement(node)) { + return node.attributes.properties.length > 0 || isJsxOpeningElement(node) && node.parent.children.length > 0 ? [node.attributes] : emptyArray; + } + const args = node.arguments || emptyArray; + const spreadIndex = getSpreadArgumentIndex(args); + if (spreadIndex >= 0) { + const effectiveArgs = args.slice(0, spreadIndex); + for (let i = spreadIndex; i < args.length; i++) { + const arg = args[i]; + const spreadType = arg.kind === 230 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression)); + if (spreadType && isTupleType(spreadType)) { + forEach(getElementTypes(spreadType), (t, i2) => { + var _a; + const flags = spreadType.target.elementFlags[i2]; + const syntheticArg = createSyntheticExpression(arg, flags & 4 /* Rest */ ? createArrayType(t) : t, !!(flags & 12 /* Variable */), (_a = spreadType.target.labeledElementDeclarations) == null ? void 0 : _a[i2]); + effectiveArgs.push(syntheticArg); + }); + } else { + effectiveArgs.push(arg); + } + } + return effectiveArgs; + } + return args; + } + function getEffectiveDecoratorArguments(node) { + const expr = node.expression; + const signature = getDecoratorCallSignature(node); + if (signature) { + const args = []; + for (const param of signature.parameters) { + const type = getTypeOfSymbol(param); + args.push(createSyntheticExpression(expr, type)); + } + return args; + } + return Debug.fail(); + } + function getDecoratorArgumentCount(node, signature) { + return compilerOptions.experimentalDecorators ? getLegacyDecoratorArgumentCount(node, signature) : ( + // Allow the runtime to oversupply arguments to an ES decorator as long as there's at least one parameter. + Math.min(Math.max(getParameterCount(signature), 1), 2) + ); + } + function getLegacyDecoratorArgumentCount(node, signature) { + switch (node.parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return 1; + case 172 /* PropertyDeclaration */: + return hasAccessorModifier(node.parent) ? 3 : 2; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return signature.parameters.length <= 2 ? 2 : 3; + case 169 /* Parameter */: + return 3; + default: + return Debug.fail(); + } + } + function getDiagnosticSpanForCallNode(node) { + const sourceFile = getSourceFileOfNode(node); + const { start, length: length2 } = getErrorSpanForNode(sourceFile, isPropertyAccessExpression(node.expression) ? node.expression.name : node.expression); + return { start, length: length2, sourceFile }; + } + function getDiagnosticForCallNode(node, message, ...args) { + if (isCallExpression(node)) { + const { sourceFile, start, length: length2 } = getDiagnosticSpanForCallNode(node); + if ("message" in message) { + return createFileDiagnostic(sourceFile, start, length2, message, ...args); + } + return createDiagnosticForFileFromMessageChain(sourceFile, message); + } else { + if ("message" in message) { + return createDiagnosticForNode(node, message, ...args); + } + return createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), node, message); + } + } + function getErrorNodeForCallNode(callLike) { + if (isCallOrNewExpression(callLike)) { + return isPropertyAccessExpression(callLike.expression) ? callLike.expression.name : callLike.expression; + } + if (isTaggedTemplateExpression(callLike)) { + return isPropertyAccessExpression(callLike.tag) ? callLike.tag.name : callLike.tag; + } + if (isJsxOpeningLikeElement(callLike)) { + return callLike.tagName; + } + return callLike; + } + function isPromiseResolveArityError(node) { + if (!isCallExpression(node) || !isIdentifier(node.expression)) return false; + const symbol = resolveName( + node.expression, + node.expression.escapedText, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + const decl = symbol == null ? void 0 : symbol.valueDeclaration; + if (!decl || !isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !isNewExpression(decl.parent.parent) || !isIdentifier(decl.parent.parent.expression)) { + return false; + } + const globalPromiseSymbol = getGlobalPromiseConstructorSymbol( + /*reportErrors*/ + false + ); + if (!globalPromiseSymbol) return false; + const constructorSymbol = getSymbolAtLocation( + decl.parent.parent.expression, + /*ignoreErrors*/ + true + ); + return constructorSymbol === globalPromiseSymbol; + } + function getArgumentArityError(node, signatures, args, headMessage) { + var _a; + const spreadIndex = getSpreadArgumentIndex(args); + if (spreadIndex > -1) { + return createDiagnosticForNode(args[spreadIndex], Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter); + } + let min2 = Number.POSITIVE_INFINITY; + let max = Number.NEGATIVE_INFINITY; + let maxBelow = Number.NEGATIVE_INFINITY; + let minAbove = Number.POSITIVE_INFINITY; + let closestSignature; + for (const sig of signatures) { + const minParameter = getMinArgumentCount(sig); + const maxParameter = getParameterCount(sig); + if (minParameter < min2) { + min2 = minParameter; + closestSignature = sig; + } + max = Math.max(max, maxParameter); + if (minParameter < args.length && minParameter > maxBelow) maxBelow = minParameter; + if (args.length < maxParameter && maxParameter < minAbove) minAbove = maxParameter; + } + const hasRestParameter2 = some(signatures, hasEffectiveRestParameter); + const parameterRange = hasRestParameter2 ? min2 : min2 < max ? min2 + "-" + max : min2; + const isVoidPromiseError = !hasRestParameter2 && parameterRange === 1 && args.length === 0 && isPromiseResolveArityError(node); + if (isVoidPromiseError && isInJSFile(node)) { + return getDiagnosticForCallNode(node, Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments); + } + const error2 = isDecorator(node) ? hasRestParameter2 ? Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0 : Diagnostics.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0 : hasRestParameter2 ? Diagnostics.Expected_at_least_0_arguments_but_got_1 : isVoidPromiseError ? Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise : Diagnostics.Expected_0_arguments_but_got_1; + if (min2 < args.length && args.length < max) { + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, + args.length, + maxBelow, + minAbove + ); + chain = chainDiagnosticMessages(chain, headMessage); + return getDiagnosticForCallNode(node, chain); + } + return getDiagnosticForCallNode(node, Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, args.length, maxBelow, minAbove); + } else if (args.length < min2) { + let diagnostic; + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + error2, + parameterRange, + args.length + ); + chain = chainDiagnosticMessages(chain, headMessage); + diagnostic = getDiagnosticForCallNode(node, chain); + } else { + diagnostic = getDiagnosticForCallNode(node, error2, parameterRange, args.length); + } + const parameter = (_a = closestSignature == null ? void 0 : closestSignature.declaration) == null ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length]; + if (parameter) { + const messageAndArgs = isBindingPattern(parameter.name) ? [Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided] : isRestParameter(parameter) ? [Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided, idText(getFirstIdentifier(parameter.name))] : [Diagnostics.An_argument_for_0_was_not_provided, !parameter.name ? args.length : idText(getFirstIdentifier(parameter.name))]; + const parameterError = createDiagnosticForNode(parameter, ...messageAndArgs); + return addRelatedInfo(diagnostic, parameterError); + } + return diagnostic; + } else { + const errorSpan = factory.createNodeArray(args.slice(max)); + const pos = first(errorSpan).pos; + let end = last(errorSpan).end; + if (end === pos) { + end++; + } + setTextRangePosEnd(errorSpan, pos, end); + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + error2, + parameterRange, + args.length + ); + chain = chainDiagnosticMessages(chain, headMessage); + return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), errorSpan, chain); + } + return createDiagnosticForNodeArray(getSourceFileOfNode(node), errorSpan, error2, parameterRange, args.length); + } + } + function getTypeArgumentArityError(node, signatures, typeArguments, headMessage) { + const argCount = typeArguments.length; + if (signatures.length === 1) { + const sig = signatures[0]; + const min2 = getMinTypeArgumentCount(sig.typeParameters); + const max = length(sig.typeParameters); + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Expected_0_type_arguments_but_got_1, + min2 < max ? min2 + "-" + max : min2, + argCount + ); + chain = chainDiagnosticMessages(chain, headMessage); + return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); + } + return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, min2 < max ? min2 + "-" + max : min2, argCount); + } + let belowArgCount = -Infinity; + let aboveArgCount = Infinity; + for (const sig of signatures) { + const min2 = getMinTypeArgumentCount(sig.typeParameters); + const max = length(sig.typeParameters); + if (min2 > argCount) { + aboveArgCount = Math.min(aboveArgCount, min2); + } else if (max < argCount) { + belowArgCount = Math.max(belowArgCount, max); + } + } + if (belowArgCount !== -Infinity && aboveArgCount !== Infinity) { + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, + argCount, + belowArgCount, + aboveArgCount + ); + chain = chainDiagnosticMessages(chain, headMessage); + return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); + } + return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, argCount, belowArgCount, aboveArgCount); + } + if (headMessage) { + let chain = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Expected_0_type_arguments_but_got_1, + belowArgCount === -Infinity ? aboveArgCount : belowArgCount, + argCount + ); + chain = chainDiagnosticMessages(chain, headMessage); + return createDiagnosticForNodeArrayFromMessageChain(getSourceFileOfNode(node), typeArguments, chain); + } + return createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount); + } + function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, headMessage) { + const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; + const isDecorator2 = node.kind === 170 /* Decorator */; + const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); + const isInstanceof = node.kind === 226 /* BinaryExpression */; + const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; + let typeArguments; + if (!isDecorator2 && !isInstanceof && !isSuperCall(node)) { + typeArguments = node.typeArguments; + if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 108 /* SuperKeyword */) { + forEach(typeArguments, checkSourceElement); + } + } + const candidates = candidatesOutArray || []; + reorderCandidates(signatures, candidates, callChainFlags); + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); + const args = getEffectiveCallArguments(node); + const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; + let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; + let candidatesForArgumentError; + let candidateForArgumentArityError; + let candidateForTypeArgumentError; + let result; + const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; + if (candidates.length > 1) { + result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); + } + if (!result) { + result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); + } + if (result) { + return result; + } + result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode); + getNodeLinks(node).resolvedSignature = result; + if (reportErrors2) { + if (!headMessage && isInstanceof) { + headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method; + } + if (candidatesForArgumentError) { + if (candidatesForArgumentError.length === 1 || candidatesForArgumentError.length > 3) { + const last2 = candidatesForArgumentError[candidatesForArgumentError.length - 1]; + let chain; + if (candidatesForArgumentError.length > 3) { + chain = chainDiagnosticMessages(chain, Diagnostics.The_last_overload_gave_the_following_error); + chain = chainDiagnosticMessages(chain, Diagnostics.No_overload_matches_this_call); + } + if (headMessage) { + chain = chainDiagnosticMessages(chain, headMessage); + } + const diags = getSignatureApplicabilityError( + node, + args, + last2, + assignableRelation, + 0 /* Normal */, + /*reportErrors*/ + true, + () => chain, + /*inferenceContext*/ + void 0 + ); + if (diags) { + for (const d of diags) { + if (last2.declaration && candidatesForArgumentError.length > 3) { + addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here)); + } + addImplementationSuccessElaboration(last2, d); + diagnostics.add(d); + } + } else { + Debug.fail("No error for last overload signature"); + } + } else { + const allDiagnostics = []; + let max = 0; + let min2 = Number.MAX_VALUE; + let minIndex = 0; + let i = 0; + for (const c of candidatesForArgumentError) { + const chain2 = () => chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Overload_0_of_1_2_gave_the_following_error, + i + 1, + candidates.length, + signatureToString(c) + ); + const diags2 = getSignatureApplicabilityError( + node, + args, + c, + assignableRelation, + 0 /* Normal */, + /*reportErrors*/ + true, + chain2, + /*inferenceContext*/ + void 0 + ); + if (diags2) { + if (diags2.length <= min2) { + min2 = diags2.length; + minIndex = i; + } + max = Math.max(max, diags2.length); + allDiagnostics.push(diags2); + } else { + Debug.fail("No error for 3 or fewer overload signatures"); + } + i++; + } + const diags = max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics); + Debug.assert(diags.length > 0, "No errors reported for 3 or fewer overload signatures"); + let chain = chainDiagnosticMessages( + map(diags, createDiagnosticMessageChainFromDiagnostic), + Diagnostics.No_overload_matches_this_call + ); + if (headMessage) { + chain = chainDiagnosticMessages(chain, headMessage); + } + const related = [...flatMap(diags, (d) => d.relatedInformation)]; + let diag2; + if (every(diags, (d) => d.start === diags[0].start && d.length === diags[0].length && d.file === diags[0].file)) { + const { file, start, length: length2 } = diags[0]; + diag2 = { file, start, length: length2, code: chain.code, category: chain.category, messageText: chain, relatedInformation: related }; + } else { + diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node), getErrorNodeForCallNode(node), chain, related); + } + addImplementationSuccessElaboration(candidatesForArgumentError[0], diag2); + diagnostics.add(diag2); + } + } else if (candidateForArgumentArityError) { + diagnostics.add(getArgumentArityError(node, [candidateForArgumentArityError], args, headMessage)); + } else if (candidateForTypeArgumentError) { + checkTypeArguments( + candidateForTypeArgumentError, + node.typeArguments, + /*reportErrors*/ + true, + headMessage + ); + } else { + const signaturesWithCorrectTypeArgumentArity = filter(signatures, (s) => hasCorrectTypeArgumentArity(s, typeArguments)); + if (signaturesWithCorrectTypeArgumentArity.length === 0) { + diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments, headMessage)); + } else { + diagnostics.add(getArgumentArityError(node, signaturesWithCorrectTypeArgumentArity, args, headMessage)); + } + } + } + return result; + function addImplementationSuccessElaboration(failed, diagnostic) { + var _a, _b; + const oldCandidatesForArgumentError = candidatesForArgumentError; + const oldCandidateForArgumentArityError = candidateForArgumentArityError; + const oldCandidateForTypeArgumentError = candidateForTypeArgumentError; + const failedSignatureDeclarations = ((_b = (_a = failed.declaration) == null ? void 0 : _a.symbol) == null ? void 0 : _b.declarations) || emptyArray; + const isOverload = failedSignatureDeclarations.length > 1; + const implDecl = isOverload ? find(failedSignatureDeclarations, (d) => isFunctionLikeDeclaration(d) && nodeIsPresent(d.body)) : void 0; + if (implDecl) { + const candidate = getSignatureFromDeclaration(implDecl); + const isSingleNonGenericCandidate2 = !candidate.typeParameters; + if (chooseOverload([candidate], assignableRelation, isSingleNonGenericCandidate2)) { + addRelatedInfo(diagnostic, createDiagnosticForNode(implDecl, Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible)); + } + } + candidatesForArgumentError = oldCandidatesForArgumentError; + candidateForArgumentArityError = oldCandidateForArgumentArityError; + candidateForTypeArgumentError = oldCandidateForTypeArgumentError; + } + function chooseOverload(candidates2, relation, isSingleNonGenericCandidate2, signatureHelpTrailingComma2 = false) { + var _a, _b; + candidatesForArgumentError = void 0; + candidateForArgumentArityError = void 0; + candidateForTypeArgumentError = void 0; + if (isSingleNonGenericCandidate2) { + const candidate = candidates2[0]; + if (some(typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) { + return void 0; + } + if (getSignatureApplicabilityError( + node, + args, + candidate, + relation, + 0 /* Normal */, + /*reportErrors*/ + false, + /*containingMessageChain*/ + void 0, + /*inferenceContext*/ + void 0 + )) { + candidatesForArgumentError = [candidate]; + return void 0; + } + return candidate; + } + for (let candidateIndex = 0; candidateIndex < candidates2.length; candidateIndex++) { + let candidate = candidates2[candidateIndex]; + if (!hasCorrectTypeArgumentArity(candidate, typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma2)) { + continue; + } + let checkCandidate; + let inferenceContext; + if (candidate.typeParameters) { + const paramLocation = (_b = (_a = candidate.typeParameters[0].symbol.declarations) == null ? void 0 : _a[0]) == null ? void 0 : _b.parent; + const candidateParameterContext = paramLocation || (candidate.declaration && isConstructorDeclaration(candidate.declaration) ? candidate.declaration.parent : candidate.declaration); + if (candidateParameterContext && findAncestor(node, (a) => a === candidateParameterContext)) { + candidate = getImplementationSignature(candidate); + } + let typeArgumentTypes; + if (some(typeArguments)) { + typeArgumentTypes = checkTypeArguments( + candidate, + typeArguments, + /*reportErrors*/ + false + ); + if (!typeArgumentTypes) { + candidateForTypeArgumentError = candidate; + continue; + } + } else { + inferenceContext = createInferenceContext( + candidate.typeParameters, + candidate, + /*flags*/ + isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */ + ); + typeArgumentTypes = instantiateTypes(inferTypeArguments(node, candidate, args, argCheckMode | 8 /* SkipGenericFunctions */, inferenceContext), inferenceContext.nonFixingMapper); + argCheckMode |= inferenceContext.flags & 4 /* SkippedGenericFunction */ ? 8 /* SkipGenericFunctions */ : 0 /* Normal */; + } + checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters); + if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) { + candidateForArgumentArityError = checkCandidate; + continue; + } + } else { + checkCandidate = candidate; + } + if (getSignatureApplicabilityError( + node, + args, + checkCandidate, + relation, + argCheckMode, + /*reportErrors*/ + false, + /*containingMessageChain*/ + void 0, + inferenceContext + )) { + (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate); + continue; + } + if (argCheckMode) { + argCheckMode = 0 /* Normal */; + if (inferenceContext) { + const typeArgumentTypes = instantiateTypes(inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext), inferenceContext.mapper); + checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, isInJSFile(candidate.declaration), inferenceContext.inferredTypeParameters); + if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma2)) { + candidateForArgumentArityError = checkCandidate; + continue; + } + } + if (getSignatureApplicabilityError( + node, + args, + checkCandidate, + relation, + argCheckMode, + /*reportErrors*/ + false, + /*containingMessageChain*/ + void 0, + inferenceContext + )) { + (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate); + continue; + } + } + candidates2[candidateIndex] = checkCandidate; + return checkCandidate; + } + return void 0; + } + } + function getCandidateForOverloadFailure(node, candidates, args, hasCandidatesOutArray, checkMode) { + Debug.assert(candidates.length > 0); + checkNodeDeferred(node); + return hasCandidatesOutArray || candidates.length === 1 || candidates.some((c) => !!c.typeParameters) ? pickLongestCandidateSignature(node, candidates, args, checkMode) : createUnionOfSignaturesForOverloadFailure(candidates); + } + function createUnionOfSignaturesForOverloadFailure(candidates) { + const thisParameters = mapDefined(candidates, (c) => c.thisParameter); + let thisParameter; + if (thisParameters.length) { + thisParameter = createCombinedSymbolFromTypes(thisParameters, thisParameters.map(getTypeOfParameter)); + } + const { min: minArgumentCount, max: maxNonRestParam } = minAndMax(candidates, getNumNonRestParameters); + const parameters = []; + for (let i = 0; i < maxNonRestParam; i++) { + const symbols = mapDefined(candidates, (s) => signatureHasRestParameter(s) ? i < s.parameters.length - 1 ? s.parameters[i] : last(s.parameters) : i < s.parameters.length ? s.parameters[i] : void 0); + Debug.assert(symbols.length !== 0); + parameters.push(createCombinedSymbolFromTypes(symbols, mapDefined(candidates, (candidate) => tryGetTypeAtPosition(candidate, i)))); + } + const restParameterSymbols = mapDefined(candidates, (c) => signatureHasRestParameter(c) ? last(c.parameters) : void 0); + let flags = 128 /* IsSignatureCandidateForOverloadFailure */; + if (restParameterSymbols.length !== 0) { + const type = createArrayType(getUnionType(mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */)); + parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type)); + flags |= 1 /* HasRestParameter */; + } + if (candidates.some(signatureHasLiteralTypes)) { + flags |= 2 /* HasLiteralTypes */; + } + return createSignature( + candidates[0].declaration, + /*typeParameters*/ + void 0, + // Before calling this we tested for `!candidates.some(c => !!c.typeParameters)`. + thisParameter, + parameters, + /*resolvedReturnType*/ + getIntersectionType(candidates.map(getReturnTypeOfSignature)), + /*resolvedTypePredicate*/ + void 0, + minArgumentCount, + flags + ); + } + function getNumNonRestParameters(signature) { + const numParams = signature.parameters.length; + return signatureHasRestParameter(signature) ? numParams - 1 : numParams; + } + function createCombinedSymbolFromTypes(sources, types) { + return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2 /* Subtype */)); + } + function createCombinedSymbolForOverloadFailure(sources, type) { + return createSymbolWithType(first(sources), type); + } + function pickLongestCandidateSignature(node, candidates, args, checkMode) { + const bestIndex = getLongestCandidateIndex(candidates, apparentArgumentCount === void 0 ? args.length : apparentArgumentCount); + const candidate = candidates[bestIndex]; + const { typeParameters } = candidate; + if (!typeParameters) { + return candidate; + } + const typeArgumentNodes = callLikeExpressionMayHaveTypeArguments(node) ? node.typeArguments : void 0; + const instantiated = typeArgumentNodes ? createSignatureInstantiation(candidate, getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isInJSFile(node))) : inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode); + candidates[bestIndex] = instantiated; + return instantiated; + } + function getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isJs) { + const typeArguments = typeArgumentNodes.map(getTypeOfNode); + while (typeArguments.length > typeParameters.length) { + typeArguments.pop(); + } + while (typeArguments.length < typeParameters.length) { + typeArguments.push(getDefaultFromTypeParameter(typeParameters[typeArguments.length]) || getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs)); + } + return typeArguments; + } + function inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args, checkMode) { + const inferenceContext = createInferenceContext( + typeParameters, + candidate, + /*flags*/ + isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */ + ); + const typeArgumentTypes = inferTypeArguments(node, candidate, args, checkMode | 4 /* SkipContextSensitive */ | 8 /* SkipGenericFunctions */, inferenceContext); + return createSignatureInstantiation(candidate, typeArgumentTypes); + } + function getLongestCandidateIndex(candidates, argsCount) { + let maxParamsIndex = -1; + let maxParams = -1; + for (let i = 0; i < candidates.length; i++) { + const candidate = candidates[i]; + const paramCount = getParameterCount(candidate); + if (hasEffectiveRestParameter(candidate) || paramCount >= argsCount) { + return i; + } + if (paramCount > maxParams) { + maxParams = paramCount; + maxParamsIndex = i; + } + } + return maxParamsIndex; + } + function resolveCallExpression(node, candidatesOutArray, checkMode) { + if (node.expression.kind === 108 /* SuperKeyword */) { + const superType = checkSuperExpression(node.expression); + if (isTypeAny(superType)) { + for (const arg of node.arguments) { + checkExpression(arg); + } + return anySignature; + } + if (!isErrorType(superType)) { + const baseTypeNode = getEffectiveBaseTypeNode(getContainingClass(node)); + if (baseTypeNode) { + const baseConstructors = getInstantiatedConstructorsForTypeArguments(superType, baseTypeNode.typeArguments, baseTypeNode); + return resolveCall(node, baseConstructors, candidatesOutArray, checkMode, 0 /* None */); + } + } + return resolveUntypedCall(node); + } + let callChainFlags; + let funcType = checkExpression(node.expression); + if (isCallChain(node)) { + const nonOptionalType = getOptionalExpressionType(funcType, node.expression); + callChainFlags = nonOptionalType === funcType ? 0 /* None */ : isOutermostOptionalChain(node) ? 16 /* IsOuterCallChain */ : 8 /* IsInnerCallChain */; + funcType = nonOptionalType; + } else { + callChainFlags = 0 /* None */; + } + funcType = checkNonNullTypeWithReporter( + funcType, + node.expression, + reportCannotInvokePossiblyNullOrUndefinedError + ); + if (funcType === silentNeverType) { + return silentNeverSignature; + } + const apparentType = getApparentType(funcType); + if (isErrorType(apparentType)) { + return resolveErrorCall(node); + } + const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; + if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { + if (!isErrorType(funcType) && node.typeArguments) { + error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + } + return resolveUntypedCall(node); + } + if (!callSignatures.length) { + if (numConstructSignatures) { + error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + } else { + let relatedInformation; + if (node.arguments.length === 1) { + const text = getSourceFileOfNode(node).text; + if (isLineBreak(text.charCodeAt(skipTrivia( + text, + node.expression.end, + /*stopAfterLineBreak*/ + true + ) - 1))) { + relatedInformation = createDiagnosticForNode(node.expression, Diagnostics.Are_you_missing_a_semicolon); + } + } + invocationError(node.expression, apparentType, 0 /* Call */, relatedInformation); + } + return resolveErrorCall(node); + } + if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) { + skippedGenericFunction(node, checkMode); + return resolvingSignature; + } + if (callSignatures.some((sig) => isInJSFile(sig.declaration) && !!getJSDocClassTag(sig.declaration))) { + error(node, Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType)); + return resolveErrorCall(node); + } + return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags); + } + function isGenericFunctionReturningFunction(signature) { + return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature))); + } + function isUntypedFunctionCall(funcType, apparentFuncType, numCallSignatures, numConstructSignatures) { + return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144 /* TypeParameter */) || !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576 /* Union */) && !(getReducedType(apparentFuncType).flags & 131072 /* Never */) && isTypeAssignableTo(funcType, globalFunctionType); + } + function resolveNewExpression(node, candidatesOutArray, checkMode) { + let expressionType = checkNonNullExpression(node.expression); + if (expressionType === silentNeverType) { + return silentNeverSignature; + } + expressionType = getApparentType(expressionType); + if (isErrorType(expressionType)) { + return resolveErrorCall(node); + } + if (isTypeAny(expressionType)) { + if (node.typeArguments) { + error(node, Diagnostics.Untyped_function_calls_may_not_accept_type_arguments); + } + return resolveUntypedCall(node); + } + const constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */); + if (constructSignatures.length) { + if (!isConstructorAccessible(node, constructSignatures[0])) { + return resolveErrorCall(node); + } + if (someSignature(constructSignatures, (signature) => !!(signature.flags & 4 /* Abstract */))) { + error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + return resolveErrorCall(node); + } + const valueDecl = expressionType.symbol && getClassLikeDeclarationOfSymbol(expressionType.symbol); + if (valueDecl && hasSyntacticModifier(valueDecl, 64 /* Abstract */)) { + error(node, Diagnostics.Cannot_create_an_instance_of_an_abstract_class); + return resolveErrorCall(node); + } + return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */); + } + const callSignatures = getSignaturesOfType(expressionType, 0 /* Call */); + if (callSignatures.length) { + const signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); + if (!noImplicitAny) { + if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) { + error(node, Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword); + } + if (getThisTypeOfSignature(signature) === voidType) { + error(node, Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void); + } + } + return signature; + } + invocationError(node.expression, expressionType, 1 /* Construct */); + return resolveErrorCall(node); + } + function someSignature(signatures, f) { + if (isArray(signatures)) { + return some(signatures, (signature) => someSignature(signature, f)); + } + return signatures.compositeKind === 1048576 /* Union */ ? some(signatures.compositeSignatures, f) : f(signatures); + } + function typeHasProtectedAccessibleBase(target, type) { + const baseTypes = getBaseTypes(type); + if (!length(baseTypes)) { + return false; + } + const firstBase = baseTypes[0]; + if (firstBase.flags & 2097152 /* Intersection */) { + const types = firstBase.types; + const mixinFlags = findMixins(types); + let i = 0; + for (const intersectionMember of firstBase.types) { + if (!mixinFlags[i]) { + if (getObjectFlags(intersectionMember) & (1 /* Class */ | 2 /* Interface */)) { + if (intersectionMember.symbol === target) { + return true; + } + if (typeHasProtectedAccessibleBase(target, intersectionMember)) { + return true; + } + } + } + i++; + } + return false; + } + if (firstBase.symbol === target) { + return true; + } + return typeHasProtectedAccessibleBase(target, firstBase); + } + function isConstructorAccessible(node, signature) { + if (!signature || !signature.declaration) { + return true; + } + const declaration = signature.declaration; + const modifiers = getSelectedEffectiveModifierFlags(declaration, 6 /* NonPublicAccessibilityModifier */); + if (!modifiers || declaration.kind !== 176 /* Constructor */) { + return true; + } + const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(declaration.parent.symbol); + const declaringClass = getDeclaredTypeOfSymbol(declaration.parent.symbol); + if (!isNodeWithinClass(node, declaringClassDeclaration)) { + const containingClass = getContainingClass(node); + if (containingClass && modifiers & 4 /* Protected */) { + const containingType = getTypeOfNode(containingClass); + if (typeHasProtectedAccessibleBase(declaration.parent.symbol, containingType)) { + return true; + } + } + if (modifiers & 2 /* Private */) { + error(node, Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + } + if (modifiers & 4 /* Protected */) { + error(node, Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass)); + } + return false; + } + return true; + } + function invocationErrorDetails(errorTarget, apparentType, kind) { + let errorInfo; + const isCall = kind === 0 /* Call */; + const awaitedType = getAwaitedType(apparentType); + const maybeMissingAwait = awaitedType && getSignaturesOfType(awaitedType, kind).length > 0; + if (apparentType.flags & 1048576 /* Union */) { + const types = apparentType.types; + let hasSignatures = false; + for (const constituent of types) { + const signatures = getSignaturesOfType(constituent, kind); + if (signatures.length !== 0) { + hasSignatures = true; + if (errorInfo) { + break; + } + } else { + if (!errorInfo) { + errorInfo = chainDiagnosticMessages( + errorInfo, + isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, + typeToString(constituent) + ); + errorInfo = chainDiagnosticMessages( + errorInfo, + isCall ? Diagnostics.Not_all_constituents_of_type_0_are_callable : Diagnostics.Not_all_constituents_of_type_0_are_constructable, + typeToString(apparentType) + ); + } + if (hasSignatures) { + break; + } + } + } + if (!hasSignatures) { + errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + isCall ? Diagnostics.No_constituent_of_type_0_is_callable : Diagnostics.No_constituent_of_type_0_is_constructable, + typeToString(apparentType) + ); + } + if (!errorInfo) { + errorInfo = chainDiagnosticMessages( + errorInfo, + isCall ? Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other : Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, + typeToString(apparentType) + ); + } + } else { + errorInfo = chainDiagnosticMessages( + errorInfo, + isCall ? Diagnostics.Type_0_has_no_call_signatures : Diagnostics.Type_0_has_no_construct_signatures, + typeToString(apparentType) + ); + } + let headMessage = isCall ? Diagnostics.This_expression_is_not_callable : Diagnostics.This_expression_is_not_constructable; + if (isCallExpression(errorTarget.parent) && errorTarget.parent.arguments.length === 0) { + const { resolvedSymbol } = getNodeLinks(errorTarget); + if (resolvedSymbol && resolvedSymbol.flags & 32768 /* GetAccessor */) { + headMessage = Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without; + } + } + return { + messageChain: chainDiagnosticMessages(errorInfo, headMessage), + relatedMessage: maybeMissingAwait ? Diagnostics.Did_you_forget_to_use_await : void 0 + }; + } + function invocationError(errorTarget, apparentType, kind, relatedInformation) { + const { messageChain, relatedMessage: relatedInfo } = invocationErrorDetails(errorTarget, apparentType, kind); + const diagnostic = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorTarget), errorTarget, messageChain); + if (relatedInfo) { + addRelatedInfo(diagnostic, createDiagnosticForNode(errorTarget, relatedInfo)); + } + if (isCallExpression(errorTarget.parent)) { + const { start, length: length2 } = getDiagnosticSpanForCallNode(errorTarget.parent); + diagnostic.start = start; + diagnostic.length = length2; + } + diagnostics.add(diagnostic); + invocationErrorRecovery(apparentType, kind, relatedInformation ? addRelatedInfo(diagnostic, relatedInformation) : diagnostic); + } + function invocationErrorRecovery(apparentType, kind, diagnostic) { + if (!apparentType.symbol) { + return; + } + const importNode = getSymbolLinks(apparentType.symbol).originatingImport; + if (importNode && !isImportCall(importNode)) { + const sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target), kind); + if (!sigs || !sigs.length) return; + addRelatedInfo(diagnostic, createDiagnosticForNode(importNode, Diagnostics.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)); + } + } + function resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode) { + const tagType = checkExpression(node.tag); + const apparentType = getApparentType(tagType); + if (isErrorType(apparentType)) { + return resolveErrorCall(node); + } + const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; + if (isUntypedFunctionCall(tagType, apparentType, callSignatures.length, numConstructSignatures)) { + return resolveUntypedCall(node); + } + if (!callSignatures.length) { + if (isArrayLiteralExpression(node.parent)) { + const diagnostic = createDiagnosticForNode(node.tag, Diagnostics.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); + diagnostics.add(diagnostic); + return resolveErrorCall(node); + } + invocationError(node.tag, apparentType, 0 /* Call */); + return resolveErrorCall(node); + } + return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); + } + function getDiagnosticHeadMessageForDecoratorResolution(node) { + switch (node.parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression; + case 169 /* Parameter */: + return Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression; + case 172 /* PropertyDeclaration */: + return Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression; + default: + return Debug.fail(); + } + } + function resolveDecorator(node, candidatesOutArray, checkMode) { + const funcType = checkExpression(node.expression); + const apparentType = getApparentType(funcType); + if (isErrorType(apparentType)) { + return resolveErrorCall(node); + } + const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + const numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length; + if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) { + return resolveUntypedCall(node); + } + if (isPotentiallyUncalledDecorator(node, callSignatures) && !isParenthesizedExpression(node.expression)) { + const nodeStr = getTextOfNode( + node.expression, + /*includeTrivia*/ + false + ); + error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr); + return resolveErrorCall(node); + } + const headMessage = getDiagnosticHeadMessageForDecoratorResolution(node); + if (!callSignatures.length) { + const errorDetails = invocationErrorDetails(node.expression, apparentType, 0 /* Call */); + const messageChain = chainDiagnosticMessages(errorDetails.messageChain, headMessage); + const diag2 = createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(node.expression), node.expression, messageChain); + if (errorDetails.relatedMessage) { + addRelatedInfo(diag2, createDiagnosticForNode(node.expression, errorDetails.relatedMessage)); + } + diagnostics.add(diag2); + invocationErrorRecovery(apparentType, 0 /* Call */, diag2); + return resolveErrorCall(node); + } + return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */, headMessage); + } + function createSignatureForJSXIntrinsic(node, result) { + const namespace = getJsxNamespaceAt(node); + const exports2 = namespace && getExportsOfSymbol(namespace); + const typeSymbol = exports2 && getSymbol(exports2, JsxNames.Element, 788968 /* Type */); + const returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968 /* Type */, node); + const declaration = factory.createFunctionTypeNode( + /*typeParameters*/ + void 0, + [factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "props", + /*questionToken*/ + void 0, + nodeBuilder.typeToTypeNode(result, node) + )], + returnNode ? factory.createTypeReferenceNode( + returnNode, + /*typeArguments*/ + void 0 + ) : factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + const parameterSymbol = createSymbol(1 /* FunctionScopedVariable */, "props"); + parameterSymbol.links.type = result; + return createSignature( + declaration, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [parameterSymbol], + typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType, + /*resolvedTypePredicate*/ + void 0, + 1, + 0 /* None */ + ); + } + function resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode) { + if (isJsxIntrinsicTagName(node.tagName)) { + const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node); + const fakeSignature = createSignatureForJSXIntrinsic(node, result); + checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType( + node.attributes, + getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), + /*inferenceContext*/ + void 0, + 0 /* Normal */ + ), result, node.tagName, node.attributes); + if (length(node.typeArguments)) { + forEach(node.typeArguments, checkSourceElement); + diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), node.typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, 0, length(node.typeArguments))); + } + return fakeSignature; + } + const exprTypes = checkExpression(node.tagName); + const apparentType = getApparentType(exprTypes); + if (isErrorType(apparentType)) { + return resolveErrorCall(node); + } + const signatures = getUninstantiatedJsxSignaturesOfType(exprTypes, node); + if (isUntypedFunctionCall( + exprTypes, + apparentType, + signatures.length, + /*constructSignatures*/ + 0 + )) { + return resolveUntypedCall(node); + } + if (signatures.length === 0) { + error(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); + return resolveErrorCall(node); + } + return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); + } + function resolveInstanceofExpression(node, candidatesOutArray, checkMode) { + const rightType = checkExpression(node.right); + if (!isTypeAny(rightType)) { + const hasInstanceMethodType = getSymbolHasInstanceMethodOfObjectType(rightType); + if (hasInstanceMethodType) { + const apparentType = getApparentType(hasInstanceMethodType); + if (isErrorType(apparentType)) { + return resolveErrorCall(node); + } + const callSignatures = getSignaturesOfType(apparentType, 0 /* Call */); + const constructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */); + if (isUntypedFunctionCall(hasInstanceMethodType, apparentType, callSignatures.length, constructSignatures.length)) { + return resolveUntypedCall(node); + } + if (callSignatures.length) { + return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */); + } + } else if (!(typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) { + error(node.right, Diagnostics.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); + return resolveErrorCall(node); + } + } + return anySignature; + } + function isPotentiallyUncalledDecorator(decorator, signatures) { + return signatures.length && every(signatures, (signature) => signature.minArgumentCount === 0 && !signatureHasRestParameter(signature) && signature.parameters.length < getDecoratorArgumentCount(decorator, signature)); + } + function resolveSignature(node, candidatesOutArray, checkMode) { + switch (node.kind) { + case 213 /* CallExpression */: + return resolveCallExpression(node, candidatesOutArray, checkMode); + case 214 /* NewExpression */: + return resolveNewExpression(node, candidatesOutArray, checkMode); + case 215 /* TaggedTemplateExpression */: + return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); + case 170 /* Decorator */: + return resolveDecorator(node, candidatesOutArray, checkMode); + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); + case 226 /* BinaryExpression */: + return resolveInstanceofExpression(node, candidatesOutArray, checkMode); + } + Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable."); + } + function getResolvedSignature(node, candidatesOutArray, checkMode) { + const links = getNodeLinks(node); + const cached = links.resolvedSignature; + if (cached && cached !== resolvingSignature && !candidatesOutArray) { + return cached; + } + const saveResolutionStart = resolutionStart; + if (!cached) { + resolutionStart = resolutionTargets.length; + } + links.resolvedSignature = resolvingSignature; + let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */); + resolutionStart = saveResolutionStart; + if (result !== resolvingSignature) { + if (links.resolvedSignature !== resolvingSignature) { + result = links.resolvedSignature; + } + links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached; + } + return result; + } + function isJSConstructor(node) { + var _a; + if (!node || !isInJSFile(node)) { + return false; + } + const func = isFunctionDeclaration(node) || isFunctionExpression(node) ? node : (isVariableDeclaration(node) || isPropertyAssignment(node)) && node.initializer && isFunctionExpression(node.initializer) ? node.initializer : void 0; + if (func) { + if (getJSDocClassTag(node)) return true; + if (isPropertyAssignment(walkUpParenthesizedExpressions(func.parent))) return false; + const symbol = getSymbolOfDeclaration(func); + return !!((_a = symbol == null ? void 0 : symbol.members) == null ? void 0 : _a.size); + } + return false; + } + function mergeJSSymbols(target, source) { + var _a, _b; + if (source) { + const links = getSymbolLinks(source); + if (!links.inferredClassSymbol || !links.inferredClassSymbol.has(getSymbolId(target))) { + const inferred = isTransientSymbol(target) ? target : cloneSymbol(target); + inferred.exports = inferred.exports || createSymbolTable(); + inferred.members = inferred.members || createSymbolTable(); + inferred.flags |= source.flags & 32 /* Class */; + if ((_a = source.exports) == null ? void 0 : _a.size) { + mergeSymbolTable(inferred.exports, source.exports); + } + if ((_b = source.members) == null ? void 0 : _b.size) { + mergeSymbolTable(inferred.members, source.members); + } + (links.inferredClassSymbol || (links.inferredClassSymbol = /* @__PURE__ */ new Map())).set(getSymbolId(inferred), inferred); + return inferred; + } + return links.inferredClassSymbol.get(getSymbolId(target)); + } + } + function getAssignedClassSymbol(decl) { + var _a; + const assignmentSymbol = decl && getSymbolOfExpando( + decl, + /*allowDeclaration*/ + true + ); + const prototype = (_a = assignmentSymbol == null ? void 0 : assignmentSymbol.exports) == null ? void 0 : _a.get("prototype"); + const init = (prototype == null ? void 0 : prototype.valueDeclaration) && getAssignedJSPrototype(prototype.valueDeclaration); + return init ? getSymbolOfDeclaration(init) : void 0; + } + function getSymbolOfExpando(node, allowDeclaration) { + if (!node.parent) { + return void 0; + } + let name; + let decl; + if (isVariableDeclaration(node.parent) && node.parent.initializer === node) { + if (!isInJSFile(node) && !(isVarConstLike2(node.parent) && isFunctionLikeDeclaration(node))) { + return void 0; + } + name = node.parent.name; + decl = node.parent; + } else if (isBinaryExpression(node.parent)) { + const parentNode = node.parent; + const parentNodeOperator = node.parent.operatorToken.kind; + if (parentNodeOperator === 64 /* EqualsToken */ && (allowDeclaration || parentNode.right === node)) { + name = parentNode.left; + decl = name; + } else if (parentNodeOperator === 57 /* BarBarToken */ || parentNodeOperator === 61 /* QuestionQuestionToken */) { + if (isVariableDeclaration(parentNode.parent) && parentNode.parent.initializer === parentNode) { + name = parentNode.parent.name; + decl = parentNode.parent; + } else if (isBinaryExpression(parentNode.parent) && parentNode.parent.operatorToken.kind === 64 /* EqualsToken */ && (allowDeclaration || parentNode.parent.right === parentNode)) { + name = parentNode.parent.left; + decl = name; + } + if (!name || !isBindableStaticNameExpression(name) || !isSameEntityName(name, parentNode.left)) { + return void 0; + } + } + } else if (allowDeclaration && isFunctionDeclaration(node)) { + name = node.name; + decl = node; + } + if (!decl || !name || !allowDeclaration && !getExpandoInitializer(node, isPrototypeAccess(name))) { + return void 0; + } + return getSymbolOfNode(decl); + } + function getAssignedJSPrototype(node) { + if (!node.parent) { + return false; + } + let parent = node.parent; + while (parent && parent.kind === 211 /* PropertyAccessExpression */) { + parent = parent.parent; + } + if (parent && isBinaryExpression(parent) && isPrototypeAccess(parent.left) && parent.operatorToken.kind === 64 /* EqualsToken */) { + const right = getInitializerOfBinaryExpression(parent); + return isObjectLiteralExpression(right) && right; + } + } + function checkCallExpression(node, checkMode) { + var _a, _b, _c; + checkGrammarTypeArguments(node, node.typeArguments); + const signature = getResolvedSignature( + node, + /*candidatesOutArray*/ + void 0, + checkMode + ); + if (signature === resolvingSignature) { + return silentNeverType; + } + checkDeprecatedSignature(signature, node); + if (node.expression.kind === 108 /* SuperKeyword */) { + return voidType; + } + if (node.kind === 214 /* NewExpression */) { + const declaration = signature.declaration; + if (declaration && declaration.kind !== 176 /* Constructor */ && declaration.kind !== 180 /* ConstructSignature */ && declaration.kind !== 185 /* ConstructorType */ && !(isJSDocSignature(declaration) && ((_b = (_a = getJSDocRoot(declaration)) == null ? void 0 : _a.parent) == null ? void 0 : _b.kind) === 176 /* Constructor */) && !isJSDocConstructSignature(declaration) && !isJSConstructor(declaration)) { + if (noImplicitAny) { + error(node, Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type); + } + return anyType; + } + } + if (isInJSFile(node) && isCommonJsRequire(node)) { + return resolveExternalModuleTypeByLiteral(node.arguments[0]); + } + const returnType = getReturnTypeOfSignature(signature); + if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) { + return getESSymbolLikeTypeForNode(walkUpParenthesizedExpressions(node.parent)); + } + if (node.kind === 213 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 244 /* ExpressionStatement */ && returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) { + if (!isDottedName(node.expression)) { + error(node.expression, Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name); + } else if (!getEffectsSignature(node)) { + const diagnostic = error(node.expression, Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation); + getTypeOfDottedName(node.expression, diagnostic); + } + } + if (isInJSFile(node)) { + const jsSymbol = getSymbolOfExpando( + node, + /*allowDeclaration*/ + false + ); + if ((_c = jsSymbol == null ? void 0 : jsSymbol.exports) == null ? void 0 : _c.size) { + const jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, emptyArray, emptyArray, emptyArray); + jsAssignmentType.objectFlags |= 4096 /* JSLiteral */; + return getIntersectionType([returnType, jsAssignmentType]); + } + } + return returnType; + } + function checkDeprecatedSignature(signature, node) { + if (signature.flags & 128 /* IsSignatureCandidateForOverloadFailure */) return; + if (signature.declaration && signature.declaration.flags & 536870912 /* Deprecated */) { + const suggestionNode = getDeprecatedSuggestionNode(node); + const name = tryGetPropertyAccessOrIdentifierToString(getInvokedExpression(node)); + addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature)); + } + } + function getDeprecatedSuggestionNode(node) { + node = skipParentheses(node); + switch (node.kind) { + case 213 /* CallExpression */: + case 170 /* Decorator */: + case 214 /* NewExpression */: + return getDeprecatedSuggestionNode(node.expression); + case 215 /* TaggedTemplateExpression */: + return getDeprecatedSuggestionNode(node.tag); + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: + return getDeprecatedSuggestionNode(node.tagName); + case 212 /* ElementAccessExpression */: + return node.argumentExpression; + case 211 /* PropertyAccessExpression */: + return node.name; + case 183 /* TypeReference */: + const typeReference = node; + return isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference; + default: + return node; + } + } + function isSymbolOrSymbolForCall(node) { + if (!isCallExpression(node)) return false; + let left = node.expression; + if (isPropertyAccessExpression(left) && left.name.escapedText === "for") { + left = left.expression; + } + if (!isIdentifier(left) || left.escapedText !== "Symbol") { + return false; + } + const globalESSymbol = getGlobalESSymbolConstructorSymbol( + /*reportErrors*/ + false + ); + if (!globalESSymbol) { + return false; + } + return globalESSymbol === resolveName( + left, + "Symbol", + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + } + function checkImportCallExpression(node) { + checkGrammarImportCallExpression(node); + if (node.arguments.length === 0) { + return createPromiseReturnType(node, anyType); + } + const specifier = node.arguments[0]; + const specifierType = checkExpressionCached(specifier); + const optionsType = node.arguments.length > 1 ? checkExpressionCached(node.arguments[1]) : void 0; + for (let i = 2; i < node.arguments.length; ++i) { + checkExpressionCached(node.arguments[i]); + } + if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) { + error(specifier, Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType)); + } + if (optionsType) { + const importCallOptionsType = getGlobalImportCallOptionsType( + /*reportErrors*/ + true + ); + if (importCallOptionsType !== emptyObjectType) { + checkTypeAssignableTo(optionsType, getNullableType(importCallOptionsType, 32768 /* Undefined */), node.arguments[1]); + } + } + const moduleSymbol = resolveExternalModuleName(node, specifier); + if (moduleSymbol) { + const esModuleSymbol = resolveESModuleSymbol( + moduleSymbol, + specifier, + /*dontResolveAlias*/ + true, + /*suppressInteropError*/ + false + ); + if (esModuleSymbol) { + return createPromiseReturnType( + node, + getTypeWithSyntheticDefaultOnly(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier) || getTypeWithSyntheticDefaultImportType(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol, specifier) + ); + } + } + return createPromiseReturnType(node, anyType); + } + function createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol) { + const memberTable = createSymbolTable(); + const newSymbol = createSymbol(2097152 /* Alias */, "default" /* Default */); + newSymbol.parent = originalSymbol; + newSymbol.links.nameType = getStringLiteralType("default"); + newSymbol.links.aliasTarget = resolveSymbol(symbol); + memberTable.set("default" /* Default */, newSymbol); + return createAnonymousType(anonymousSymbol, memberTable, emptyArray, emptyArray, emptyArray); + } + function getTypeWithSyntheticDefaultOnly(type, symbol, originalSymbol, moduleSpecifier) { + const hasDefaultOnly = isOnlyImportedAsDefault(moduleSpecifier); + if (hasDefaultOnly && type && !isErrorType(type)) { + const synthType = type; + if (!synthType.defaultOnlyType) { + const type2 = createDefaultPropertyWrapperForModule(symbol, originalSymbol); + synthType.defaultOnlyType = type2; + } + return synthType.defaultOnlyType; + } + return void 0; + } + function getTypeWithSyntheticDefaultImportType(type, symbol, originalSymbol, moduleSpecifier) { + var _a; + if (allowSyntheticDefaultImports && type && !isErrorType(type)) { + const synthType = type; + if (!synthType.syntheticType) { + const file = (_a = originalSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); + const hasSyntheticDefault = canHaveSyntheticDefault( + file, + originalSymbol, + /*dontResolveAlias*/ + false, + moduleSpecifier + ); + if (hasSyntheticDefault) { + const anonymousSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); + const defaultContainingObject = createDefaultPropertyWrapperForModule(symbol, originalSymbol, anonymousSymbol); + anonymousSymbol.links.type = defaultContainingObject; + synthType.syntheticType = isValidSpreadType(type) ? getSpreadType( + type, + defaultContainingObject, + anonymousSymbol, + /*objectFlags*/ + 0, + /*readonly*/ + false + ) : defaultContainingObject; + } else { + synthType.syntheticType = type; + } + } + return synthType.syntheticType; + } + return type; + } + function isCommonJsRequire(node) { + if (!isRequireCall( + node, + /*requireStringLiteralLikeArgument*/ + true + )) { + return false; + } + if (!isIdentifier(node.expression)) return Debug.fail(); + const resolvedRequire = resolveName( + node.expression, + node.expression.escapedText, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (resolvedRequire === requireSymbol) { + return true; + } + if (resolvedRequire.flags & 2097152 /* Alias */) { + return false; + } + const targetDeclarationKind = resolvedRequire.flags & 16 /* Function */ ? 262 /* FunctionDeclaration */ : resolvedRequire.flags & 3 /* Variable */ ? 260 /* VariableDeclaration */ : 0 /* Unknown */; + if (targetDeclarationKind !== 0 /* Unknown */) { + const decl = getDeclarationOfKind(resolvedRequire, targetDeclarationKind); + return !!decl && !!(decl.flags & 33554432 /* Ambient */); + } + return false; + } + function checkTaggedTemplateExpression(node) { + if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments); + if (languageVersion < 2 /* TaggedTemplates */) { + checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */); + } + const signature = getResolvedSignature(node); + checkDeprecatedSignature(signature, node); + return getReturnTypeOfSignature(signature); + } + function checkAssertion(node, checkMode) { + if (node.kind === 216 /* TypeAssertionExpression */) { + const file = getSourceFileOfNode(node); + if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { + grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); + } + } + return checkAssertionWorker(node, checkMode); + } + function isValidConstAssertionArgument(node) { + switch (node.kind) { + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 228 /* TemplateExpression */: + return true; + case 217 /* ParenthesizedExpression */: + return isValidConstAssertionArgument(node.expression); + case 224 /* PrefixUnaryExpression */: + const op = node.operator; + const arg = node.operand; + return op === 41 /* MinusToken */ && (arg.kind === 9 /* NumericLiteral */ || arg.kind === 10 /* BigIntLiteral */) || op === 40 /* PlusToken */ && arg.kind === 9 /* NumericLiteral */; + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + const expr = skipParentheses(node.expression); + const symbol = isEntityNameExpression(expr) ? resolveEntityName( + expr, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) : void 0; + return !!(symbol && symbol.flags & 384 /* Enum */); + } + return false; + } + function checkAssertionWorker(node, checkMode) { + const { type, expression } = getAssertionTypeAndExpression(node); + const exprType = checkExpression(expression, checkMode); + if (isConstTypeReference(type)) { + if (!isValidConstAssertionArgument(expression)) { + error(expression, Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals); + } + return getRegularTypeOfLiteralType(exprType); + } + const links = getNodeLinks(node); + links.assertionExpressionType = exprType; + checkSourceElement(type); + checkNodeDeferred(node); + return getTypeFromTypeNode(type); + } + function getAssertionTypeAndExpression(node) { + let type; + let expression; + switch (node.kind) { + case 234 /* AsExpression */: + case 216 /* TypeAssertionExpression */: + type = node.type; + expression = node.expression; + break; + case 217 /* ParenthesizedExpression */: + type = getJSDocTypeAssertionType(node); + expression = node.expression; + break; + } + return { type, expression }; + } + function checkAssertionDeferred(node) { + const { type } = getAssertionTypeAndExpression(node); + const errNode = isParenthesizedExpression(node) ? type : node; + const links = getNodeLinks(node); + Debug.assertIsDefined(links.assertionExpressionType); + const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(links.assertionExpressionType)); + const targetType = getTypeFromTypeNode(type); + if (!isErrorType(targetType)) { + addLazyDiagnostic(() => { + const widenedType = getWidenedType(exprType); + if (!isTypeComparableTo(targetType, widenedType)) { + checkTypeComparableTo(exprType, targetType, errNode, Diagnostics.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); + } + }); + } + } + function checkNonNullChain(node) { + const leftType = checkExpression(node.expression); + const nonOptionalType = getOptionalExpressionType(leftType, node.expression); + return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType); + } + function checkNonNullAssertion(node) { + return node.flags & 64 /* OptionalChain */ ? checkNonNullChain(node) : getNonNullableType(checkExpression(node.expression)); + } + function checkExpressionWithTypeArguments(node) { + checkGrammarExpressionWithTypeArguments(node); + forEach(node.typeArguments, checkSourceElement); + if (node.kind === 233 /* ExpressionWithTypeArguments */) { + const parent = walkUpParenthesizedExpressions(node.parent); + if (parent.kind === 226 /* BinaryExpression */ && parent.operatorToken.kind === 104 /* InstanceOfKeyword */ && isNodeDescendantOf(node, parent.right)) { + error(node, Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression); + } + } + const exprType = node.kind === 233 /* ExpressionWithTypeArguments */ ? checkExpression(node.expression) : isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName); + return getInstantiationExpressionType(exprType, node); + } + function getInstantiationExpressionType(exprType, node) { + const typeArguments = node.typeArguments; + if (exprType === silentNeverType || isErrorType(exprType) || !some(typeArguments)) { + return exprType; + } + let hasSomeApplicableSignature = false; + let nonApplicableType; + const result = getInstantiatedType(exprType); + const errorType2 = hasSomeApplicableSignature ? nonApplicableType : exprType; + if (errorType2) { + diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, typeToString(errorType2))); + } + return result; + function getInstantiatedType(type) { + let hasSignatures = false; + let hasApplicableSignature = false; + const result2 = getInstantiatedTypePart(type); + hasSomeApplicableSignature || (hasSomeApplicableSignature = hasApplicableSignature); + if (hasSignatures && !hasApplicableSignature) { + nonApplicableType ?? (nonApplicableType = type); + } + return result2; + function getInstantiatedTypePart(type2) { + if (type2.flags & 524288 /* Object */) { + const resolved = resolveStructuredTypeMembers(type2); + const callSignatures = getInstantiatedSignatures(resolved.callSignatures); + const constructSignatures = getInstantiatedSignatures(resolved.constructSignatures); + hasSignatures || (hasSignatures = resolved.callSignatures.length !== 0 || resolved.constructSignatures.length !== 0); + hasApplicableSignature || (hasApplicableSignature = callSignatures.length !== 0 || constructSignatures.length !== 0); + if (callSignatures !== resolved.callSignatures || constructSignatures !== resolved.constructSignatures) { + const result3 = createAnonymousType(createSymbol(0 /* None */, "__instantiationExpression" /* InstantiationExpression */), resolved.members, callSignatures, constructSignatures, resolved.indexInfos); + result3.objectFlags |= 8388608 /* InstantiationExpressionType */; + result3.node = node; + return result3; + } + } else if (type2.flags & 58982400 /* InstantiableNonPrimitive */) { + const constraint = getBaseConstraintOfType(type2); + if (constraint) { + const instantiated = getInstantiatedTypePart(constraint); + if (instantiated !== constraint) { + return instantiated; + } + } + } else if (type2.flags & 1048576 /* Union */) { + return mapType(type2, getInstantiatedType); + } else if (type2.flags & 2097152 /* Intersection */) { + return getIntersectionType(sameMap(type2.types, getInstantiatedTypePart)); + } + return type2; + } + } + function getInstantiatedSignatures(signatures) { + const applicableSignatures = filter(signatures, (sig) => !!sig.typeParameters && hasCorrectTypeArgumentArity(sig, typeArguments)); + return sameMap(applicableSignatures, (sig) => { + const typeArgumentTypes = checkTypeArguments( + sig, + typeArguments, + /*reportErrors*/ + true + ); + return typeArgumentTypes ? getSignatureInstantiation(sig, typeArgumentTypes, isInJSFile(sig.declaration)) : sig; + }); + } + } + function checkSatisfiesExpression(node) { + checkSourceElement(node.type); + return checkSatisfiesExpressionWorker(node.expression, node.type); + } + function checkSatisfiesExpressionWorker(expression, target, checkMode) { + const exprType = checkExpression(expression, checkMode); + const targetType = getTypeFromTypeNode(target); + if (isErrorType(targetType)) { + return targetType; + } + const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */); + checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1); + return exprType; + } + function checkMetaProperty(node) { + checkGrammarMetaProperty(node); + if (node.keywordToken === 105 /* NewKeyword */) { + return checkNewTargetMetaProperty(node); + } + if (node.keywordToken === 102 /* ImportKeyword */) { + return checkImportMetaProperty(node); + } + return Debug.assertNever(node.keywordToken); + } + function checkMetaPropertyKeyword(node) { + switch (node.keywordToken) { + case 102 /* ImportKeyword */: + return getGlobalImportMetaExpressionType(); + case 105 /* NewKeyword */: + const type = checkNewTargetMetaProperty(node); + return isErrorType(type) ? errorType : createNewTargetExpressionType(type); + default: + Debug.assertNever(node.keywordToken); + } + } + function checkNewTargetMetaProperty(node) { + const container = getNewTargetContainer(node); + if (!container) { + error(node, Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, "new.target"); + return errorType; + } else if (container.kind === 176 /* Constructor */) { + const symbol = getSymbolOfDeclaration(container.parent); + return getTypeOfSymbol(symbol); + } else { + const symbol = getSymbolOfDeclaration(container); + return getTypeOfSymbol(symbol); + } + } + function checkImportMetaProperty(node) { + if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) { + if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { + error(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); + } + } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { + error(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); + } + const file = getSourceFileOfNode(node); + Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); + return node.name.escapedText === "meta" ? getGlobalImportMetaType() : errorType; + } + function getTypeOfParameter(symbol) { + const declaration = symbol.valueDeclaration; + return addOptionality( + getTypeOfSymbol(symbol), + /*isProperty*/ + false, + /*isOptional*/ + !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration)) + ); + } + function getTupleElementLabel(d, index, restParameterName = "arg") { + if (!d) { + return `${restParameterName}_${index}`; + } + Debug.assert(isIdentifier(d.name)); + return d.name.escapedText; + } + function getParameterNameAtPosition(signature, pos, overrideRestType) { + const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + if (pos < paramCount) { + return signature.parameters[pos].escapedName; + } + const restParameter = signature.parameters[paramCount] || unknownSymbol; + const restType = overrideRestType || getTypeOfSymbol(restParameter); + if (isTupleType(restType)) { + const associatedNames = restType.target.labeledElementDeclarations; + const index = pos - paramCount; + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); + } + return restParameter.escapedName; + } + function getParameterIdentifierInfoAtPosition(signature, pos) { + var _a; + if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 317 /* JSDocFunctionType */) { + return void 0; + } + const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + if (pos < paramCount) { + const param = signature.parameters[pos]; + const paramIdent = getParameterDeclarationIdentifier(param); + return paramIdent ? { + parameter: paramIdent, + parameterName: param.escapedName, + isRestParameter: false + } : void 0; + } + const restParameter = signature.parameters[paramCount] || unknownSymbol; + const restIdent = getParameterDeclarationIdentifier(restParameter); + if (!restIdent) { + return void 0; + } + const restType = getTypeOfSymbol(restParameter); + if (isTupleType(restType)) { + const associatedNames = restType.target.labeledElementDeclarations; + const index = pos - paramCount; + const associatedName = associatedNames == null ? void 0 : associatedNames[index]; + const isRestTupleElement = !!(associatedName == null ? void 0 : associatedName.dotDotDotToken); + if (associatedName) { + Debug.assert(isIdentifier(associatedName.name)); + return { parameter: associatedName.name, parameterName: associatedName.name.escapedText, isRestParameter: isRestTupleElement }; + } + return void 0; + } + if (pos === paramCount) { + return { parameter: restIdent, parameterName: restParameter.escapedName, isRestParameter: true }; + } + return void 0; + } + function getParameterDeclarationIdentifier(symbol) { + return symbol.valueDeclaration && isParameter(symbol.valueDeclaration) && isIdentifier(symbol.valueDeclaration.name) && symbol.valueDeclaration.name; + } + function isValidDeclarationForTupleLabel(d) { + return d.kind === 202 /* NamedTupleMember */ || isParameter(d) && d.name && isIdentifier(d.name); + } + function getNameableDeclarationAtPosition(signature, pos) { + const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + if (pos < paramCount) { + const decl = signature.parameters[pos].valueDeclaration; + return decl && isValidDeclarationForTupleLabel(decl) ? decl : void 0; + } + const restParameter = signature.parameters[paramCount] || unknownSymbol; + const restType = getTypeOfSymbol(restParameter); + if (isTupleType(restType)) { + const associatedNames = restType.target.labeledElementDeclarations; + const index = pos - paramCount; + return associatedNames && associatedNames[index]; + } + return restParameter.valueDeclaration && isValidDeclarationForTupleLabel(restParameter.valueDeclaration) ? restParameter.valueDeclaration : void 0; + } + function getTypeAtPosition(signature, pos) { + return tryGetTypeAtPosition(signature, pos) || anyType; + } + function tryGetTypeAtPosition(signature, pos) { + const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + if (pos < paramCount) { + return getTypeOfParameter(signature.parameters[pos]); + } + if (signatureHasRestParameter(signature)) { + const restType = getTypeOfSymbol(signature.parameters[paramCount]); + const index = pos - paramCount; + if (!isTupleType(restType) || restType.target.hasRestElement || index < restType.target.fixedLength) { + return getIndexedAccessType(restType, getNumberLiteralType(index)); + } + } + return void 0; + } + function getRestTypeAtPosition(source, pos, readonly) { + const parameterCount = getParameterCount(source); + const minArgumentCount = getMinArgumentCount(source); + const restType = getEffectiveRestType(source); + if (restType && pos >= parameterCount - 1) { + return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType)); + } + const types = []; + const flags = []; + const names = []; + for (let i = pos; i < parameterCount; i++) { + if (!restType || i < parameterCount - 1) { + types.push(getTypeAtPosition(source, i)); + flags.push(i < minArgumentCount ? 1 /* Required */ : 2 /* Optional */); + } else { + types.push(restType); + flags.push(8 /* Variadic */); + } + names.push(getNameableDeclarationAtPosition(source, i)); + } + return createTupleType(types, flags, readonly, names); + } + function getRestOrAnyTypeAtPosition(source, pos) { + const restType = getRestTypeAtPosition(source, pos); + const elementType = restType && getElementTypeOfArrayType(restType); + return elementType && isTypeAny(elementType) ? anyType : restType; + } + function getParameterCount(signature) { + const length2 = signature.parameters.length; + if (signatureHasRestParameter(signature)) { + const restType = getTypeOfSymbol(signature.parameters[length2 - 1]); + if (isTupleType(restType)) { + return length2 + restType.target.fixedLength - (restType.target.hasRestElement ? 0 : 1); + } + } + return length2; + } + function getMinArgumentCount(signature, flags) { + const strongArityForUntypedJS = flags & 1 /* StrongArityForUntypedJS */; + const voidIsNonOptional = flags & 2 /* VoidIsNonOptional */; + if (voidIsNonOptional || signature.resolvedMinArgumentCount === void 0) { + let minArgumentCount; + if (signatureHasRestParameter(signature)) { + const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); + if (isTupleType(restType)) { + const firstOptionalIndex = findIndex(restType.target.elementFlags, (f) => !(f & 1 /* Required */)); + const requiredCount = firstOptionalIndex < 0 ? restType.target.fixedLength : firstOptionalIndex; + if (requiredCount > 0) { + minArgumentCount = signature.parameters.length - 1 + requiredCount; + } + } + } + if (minArgumentCount === void 0) { + if (!strongArityForUntypedJS && signature.flags & 32 /* IsUntypedSignatureInJSFile */) { + return 0; + } + minArgumentCount = signature.minArgumentCount; + } + if (voidIsNonOptional) { + return minArgumentCount; + } + for (let i = minArgumentCount - 1; i >= 0; i--) { + const type = getTypeAtPosition(signature, i); + if (filterType(type, acceptsVoid).flags & 131072 /* Never */) { + break; + } + minArgumentCount = i; + } + signature.resolvedMinArgumentCount = minArgumentCount; + } + return signature.resolvedMinArgumentCount; + } + function hasEffectiveRestParameter(signature) { + if (signatureHasRestParameter(signature)) { + const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); + return !isTupleType(restType) || restType.target.hasRestElement; + } + return false; + } + function getEffectiveRestType(signature) { + if (signatureHasRestParameter(signature)) { + const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); + if (!isTupleType(restType)) { + return isTypeAny(restType) ? anyArrayType : restType; + } + if (restType.target.hasRestElement) { + return sliceTupleType(restType, restType.target.fixedLength); + } + } + return void 0; + } + function getNonArrayRestType(signature) { + const restType = getEffectiveRestType(signature); + return restType && !isArrayType(restType) && !isTypeAny(restType) ? restType : void 0; + } + function getTypeOfFirstParameterOfSignature(signature) { + return getTypeOfFirstParameterOfSignatureWithFallback(signature, neverType); + } + function getTypeOfFirstParameterOfSignatureWithFallback(signature, fallbackType) { + return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : fallbackType; + } + function inferFromAnnotatedParameters(signature, context, inferenceContext) { + const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + for (let i = 0; i < len; i++) { + const declaration = signature.parameters[i].valueDeclaration; + const typeNode = getEffectiveTypeAnnotationNode(declaration); + if (typeNode) { + const source = addOptionality( + getTypeFromTypeNode(typeNode), + /*isProperty*/ + false, + isOptionalDeclaration(declaration) + ); + const target = getTypeAtPosition(context, i); + inferTypes(inferenceContext.inferences, source, target); + } + } + } + function assignContextualParameterTypes(signature, context) { + if (context.typeParameters) { + if (!signature.typeParameters) { + signature.typeParameters = context.typeParameters; + } else { + return; + } + } + if (context.thisParameter) { + const parameter = signature.thisParameter; + if (!parameter || parameter.valueDeclaration && !parameter.valueDeclaration.type) { + if (!parameter) { + signature.thisParameter = createSymbolWithType( + context.thisParameter, + /*type*/ + void 0 + ); + } + assignParameterType(signature.thisParameter, getTypeOfSymbol(context.thisParameter)); + } + } + const len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); + for (let i = 0; i < len; i++) { + const parameter = signature.parameters[i]; + const declaration = parameter.valueDeclaration; + if (!getEffectiveTypeAnnotationNode(declaration)) { + let type = tryGetTypeAtPosition(context, i); + if (type && declaration.initializer) { + let initializerType = checkDeclarationInitializer(declaration, 0 /* Normal */); + if (!isTypeAssignableTo(initializerType, type) && isTypeAssignableTo(type, initializerType = widenTypeInferredFromInitializer(declaration, initializerType))) { + type = initializerType; + } + } + assignParameterType(parameter, type); + } + } + if (signatureHasRestParameter(signature)) { + const parameter = last(signature.parameters); + if (parameter.valueDeclaration ? !getEffectiveTypeAnnotationNode(parameter.valueDeclaration) : !!(getCheckFlags(parameter) & 65536 /* DeferredType */)) { + const contextualParameterType = getRestTypeAtPosition(context, len); + assignParameterType(parameter, contextualParameterType); + } + } + } + function assignNonContextualParameterTypes(signature) { + if (signature.thisParameter) { + assignParameterType(signature.thisParameter); + } + for (const parameter of signature.parameters) { + assignParameterType(parameter); + } + } + function assignParameterType(parameter, contextualType) { + const links = getSymbolLinks(parameter); + if (!links.type) { + const declaration = parameter.valueDeclaration; + links.type = addOptionality( + contextualType || (declaration ? getWidenedTypeForVariableLikeDeclaration( + declaration, + /*reportErrors*/ + true + ) : getTypeOfSymbol(parameter)), + /*isProperty*/ + false, + /*isOptional*/ + !!declaration && !declaration.initializer && isOptionalDeclaration(declaration) + ); + if (declaration && declaration.name.kind !== 80 /* Identifier */) { + if (links.type === unknownType) { + links.type = getTypeFromBindingPattern(declaration.name); + } + assignBindingElementTypes(declaration.name, links.type); + } + } else if (contextualType) { + Debug.assertEqual(links.type, contextualType, "Parameter symbol already has a cached type which differs from newly assigned type"); + } + } + function assignBindingElementTypes(pattern, parentType) { + for (const element of pattern.elements) { + if (!isOmittedExpression(element)) { + const type = getBindingElementTypeFromParentType( + element, + parentType, + /*noTupleBoundsCheck*/ + false + ); + if (element.name.kind === 80 /* Identifier */) { + getSymbolLinks(getSymbolOfDeclaration(element)).type = type; + } else { + assignBindingElementTypes(element.name, type); + } + } + } + } + function createClassDecoratorContextType(classType) { + return tryCreateTypeReference(getGlobalClassDecoratorContextType( + /*reportErrors*/ + true + ), [classType]); + } + function createClassMethodDecoratorContextType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassMethodDecoratorContextType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassGetterDecoratorContextType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassGetterDecoratorContextType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassSetterDecoratorContextType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassSetterDecoratorContextType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassAccessorDecoratorContextType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassAccessorDecoratorContextType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassFieldDecoratorContextType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassFieldDecoratorContextType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2) { + const key = `${isPrivate ? "p" : "P"}${isStatic2 ? "s" : "S"}${nameType.id}`; + let overrideType = decoratorContextOverrideTypeCache.get(key); + if (!overrideType) { + const members = createSymbolTable(); + members.set("name", createProperty("name", nameType)); + members.set("private", createProperty("private", isPrivate ? trueType : falseType)); + members.set("static", createProperty("static", isStatic2 ? trueType : falseType)); + overrideType = createAnonymousType( + /*symbol*/ + void 0, + members, + emptyArray, + emptyArray, + emptyArray + ); + decoratorContextOverrideTypeCache.set(key, overrideType); + } + return overrideType; + } + function createClassMemberDecoratorContextTypeForNode(node, thisType, valueType) { + const isStatic2 = hasStaticModifier(node); + const isPrivate = isPrivateIdentifier(node.name); + const nameType = isPrivate ? getStringLiteralType(idText(node.name)) : getLiteralTypeFromPropertyName(node.name); + const contextType = isMethodDeclaration(node) ? createClassMethodDecoratorContextType(thisType, valueType) : isGetAccessorDeclaration(node) ? createClassGetterDecoratorContextType(thisType, valueType) : isSetAccessorDeclaration(node) ? createClassSetterDecoratorContextType(thisType, valueType) : isAutoAccessorPropertyDeclaration(node) ? createClassAccessorDecoratorContextType(thisType, valueType) : isPropertyDeclaration(node) ? createClassFieldDecoratorContextType(thisType, valueType) : Debug.failBadSyntaxKind(node); + const overrideType = getClassMemberDecoratorContextOverrideType(nameType, isPrivate, isStatic2); + return getIntersectionType([contextType, overrideType]); + } + function createClassAccessorDecoratorTargetType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassAccessorDecoratorTargetType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassAccessorDecoratorResultType(thisType, valueType) { + return tryCreateTypeReference(getGlobalClassAccessorDecoratorResultType( + /*reportErrors*/ + true + ), [thisType, valueType]); + } + function createClassFieldDecoratorInitializerMutatorType(thisType, valueType) { + const thisParam = createParameter("this", thisType); + const valueParam = createParameter("value", valueType); + return createFunctionType( + /*typeParameters*/ + void 0, + thisParam, + [valueParam], + valueType, + /*typePredicate*/ + void 0, + 1 + ); + } + function createESDecoratorCallSignature(targetType, contextType, nonOptionalReturnType) { + const targetParam = createParameter("target", targetType); + const contextParam = createParameter("context", contextType); + const returnType = getUnionType([nonOptionalReturnType, voidType]); + return createCallSignature( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [targetParam, contextParam], + returnType + ); + } + function getESDecoratorCallSignature(decorator) { + const { parent } = decorator; + const links = getNodeLinks(parent); + if (!links.decoratorSignature) { + links.decoratorSignature = anySignature; + switch (parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { + const node = parent; + const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); + const contextType = createClassDecoratorContextType(targetType); + links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, targetType); + break; + } + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + const node = parent; + if (!isClassLike(node.parent)) break; + const valueType = isMethodDeclaration(node) ? getOrCreateTypeFromSignature(getSignatureFromDeclaration(node)) : getTypeOfNode(node); + const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent)); + const targetType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType; + const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType); + const returnType = isGetAccessorDeclaration(node) ? createGetterFunctionType(valueType) : isSetAccessorDeclaration(node) ? createSetterFunctionType(valueType) : valueType; + links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); + break; + } + case 172 /* PropertyDeclaration */: { + const node = parent; + if (!isClassLike(node.parent)) break; + const valueType = getTypeOfNode(node); + const thisType = hasStaticModifier(node) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent)) : getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node.parent)); + const targetType = hasAccessorModifier(node) ? createClassAccessorDecoratorTargetType(thisType, valueType) : undefinedType; + const contextType = createClassMemberDecoratorContextTypeForNode(node, thisType, valueType); + const returnType = hasAccessorModifier(node) ? createClassAccessorDecoratorResultType(thisType, valueType) : createClassFieldDecoratorInitializerMutatorType(thisType, valueType); + links.decoratorSignature = createESDecoratorCallSignature(targetType, contextType, returnType); + break; + } + } + } + return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature; + } + function getLegacyDecoratorCallSignature(decorator) { + const { parent } = decorator; + const links = getNodeLinks(parent); + if (!links.decoratorSignature) { + links.decoratorSignature = anySignature; + switch (parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: { + const node = parent; + const targetType = getTypeOfSymbol(getSymbolOfDeclaration(node)); + const targetParam = createParameter("target", targetType); + links.decoratorSignature = createCallSignature( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [targetParam], + getUnionType([targetType, voidType]) + ); + break; + } + case 169 /* Parameter */: { + const node = parent; + if (!isConstructorDeclaration(node.parent) && !(isMethodDeclaration(node.parent) || isSetAccessorDeclaration(node.parent) && isClassLike(node.parent.parent))) { + break; + } + if (getThisParameter(node.parent) === node) { + break; + } + const index = getThisParameter(node.parent) ? node.parent.parameters.indexOf(node) - 1 : node.parent.parameters.indexOf(node); + Debug.assert(index >= 0); + const targetType = isConstructorDeclaration(node.parent) ? getTypeOfSymbol(getSymbolOfDeclaration(node.parent.parent)) : getParentTypeOfClassElement(node.parent); + const keyType = isConstructorDeclaration(node.parent) ? undefinedType : getClassElementPropertyKeyType(node.parent); + const indexType = getNumberLiteralType(index); + const targetParam = createParameter("target", targetType); + const keyParam = createParameter("propertyKey", keyType); + const indexParam = createParameter("parameterIndex", indexType); + links.decoratorSignature = createCallSignature( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [targetParam, keyParam, indexParam], + voidType + ); + break; + } + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: { + const node = parent; + if (!isClassLike(node.parent)) break; + const targetType = getParentTypeOfClassElement(node); + const targetParam = createParameter("target", targetType); + const keyType = getClassElementPropertyKeyType(node); + const keyParam = createParameter("propertyKey", keyType); + const returnType = isPropertyDeclaration(node) ? voidType : createTypedPropertyDescriptorType(getTypeOfNode(node)); + const hasPropDesc = !isPropertyDeclaration(parent) || hasAccessorModifier(parent); + if (hasPropDesc) { + const descriptorType = createTypedPropertyDescriptorType(getTypeOfNode(node)); + const descriptorParam = createParameter("descriptor", descriptorType); + links.decoratorSignature = createCallSignature( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [targetParam, keyParam, descriptorParam], + getUnionType([returnType, voidType]) + ); + } else { + links.decoratorSignature = createCallSignature( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [targetParam, keyParam], + getUnionType([returnType, voidType]) + ); + } + break; + } + } + } + return links.decoratorSignature === anySignature ? void 0 : links.decoratorSignature; + } + function getDecoratorCallSignature(decorator) { + return legacyDecorators ? getLegacyDecoratorCallSignature(decorator) : getESDecoratorCallSignature(decorator); + } + function createPromiseType(promisedType) { + const globalPromiseType = getGlobalPromiseType( + /*reportErrors*/ + true + ); + if (globalPromiseType !== emptyGenericType) { + promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType; + return createTypeReference(globalPromiseType, [promisedType]); + } + return unknownType; + } + function createPromiseLikeType(promisedType) { + const globalPromiseLikeType = getGlobalPromiseLikeType( + /*reportErrors*/ + true + ); + if (globalPromiseLikeType !== emptyGenericType) { + promisedType = getAwaitedTypeNoAlias(unwrapAwaitedType(promisedType)) || unknownType; + return createTypeReference(globalPromiseLikeType, [promisedType]); + } + return unknownType; + } + function createPromiseReturnType(func, promisedType) { + const promiseType = createPromiseType(promisedType); + if (promiseType === unknownType) { + error( + func, + isImportCall(func) ? Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option + ); + return errorType; + } else if (!getGlobalPromiseConstructorSymbol( + /*reportErrors*/ + true + )) { + error( + func, + isImportCall(func) ? Diagnostics.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 : Diagnostics.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 + ); + } + return promiseType; + } + function createNewTargetExpressionType(targetType) { + const symbol = createSymbol(0 /* None */, "NewTargetExpression"); + const targetPropertySymbol = createSymbol(4 /* Property */, "target", 8 /* Readonly */); + targetPropertySymbol.parent = symbol; + targetPropertySymbol.links.type = targetType; + const members = createSymbolTable([targetPropertySymbol]); + symbol.members = members; + return createAnonymousType(symbol, members, emptyArray, emptyArray, emptyArray); + } + function getReturnTypeFromBody(func, checkMode) { + if (!func.body) { + return errorType; + } + const functionFlags = getFunctionFlags(func); + const isAsync = (functionFlags & 2 /* Async */) !== 0; + const isGenerator = (functionFlags & 1 /* Generator */) !== 0; + let returnType; + let yieldType; + let nextType; + let fallbackReturnType = voidType; + if (func.body.kind !== 241 /* Block */) { + returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */); + if (isAsync) { + returnType = unwrapAwaitedType(checkAwaitedType( + returnType, + /*withAlias*/ + false, + /*errorNode*/ + func, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + )); + } + } else if (isGenerator) { + const returnTypes = checkAndAggregateReturnExpressionTypes(func, checkMode); + if (!returnTypes) { + fallbackReturnType = neverType; + } else if (returnTypes.length > 0) { + returnType = getUnionType(returnTypes, 2 /* Subtype */); + } + const { yieldTypes, nextTypes } = checkAndAggregateYieldOperandTypes(func, checkMode); + yieldType = some(yieldTypes) ? getUnionType(yieldTypes, 2 /* Subtype */) : void 0; + nextType = some(nextTypes) ? getIntersectionType(nextTypes) : void 0; + } else { + const types = checkAndAggregateReturnExpressionTypes(func, checkMode); + if (!types) { + return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, neverType) : neverType; + } + if (types.length === 0) { + const contextualReturnType = getContextualReturnType( + func, + /*contextFlags*/ + void 0 + ); + const returnType2 = contextualReturnType && (unwrapReturnType(contextualReturnType, functionFlags) || voidType).flags & 32768 /* Undefined */ ? undefinedType : voidType; + return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, returnType2) : ( + // Async function + returnType2 + ); + } + returnType = getUnionType(types, 2 /* Subtype */); + } + if (returnType || yieldType || nextType) { + if (yieldType) reportErrorsFromWidening(func, yieldType, 3 /* GeneratorYield */); + if (returnType) reportErrorsFromWidening(func, returnType, 1 /* FunctionReturn */); + if (nextType) reportErrorsFromWidening(func, nextType, 2 /* GeneratorNext */); + if (returnType && isUnitType(returnType) || yieldType && isUnitType(yieldType) || nextType && isUnitType(nextType)) { + const contextualSignature = getContextualSignatureForFunctionLikeDeclaration(func); + const contextualType = !contextualSignature ? void 0 : contextualSignature === getSignatureFromDeclaration(func) ? isGenerator ? void 0 : returnType : instantiateContextualType( + getReturnTypeOfSignature(contextualSignature), + func, + /*contextFlags*/ + void 0 + ); + if (isGenerator) { + yieldType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(yieldType, contextualType, 0 /* Yield */, isAsync); + returnType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(returnType, contextualType, 1 /* Return */, isAsync); + nextType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(nextType, contextualType, 2 /* Next */, isAsync); + } else { + returnType = getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(returnType, contextualType, isAsync); + } + } + if (yieldType) yieldType = getWidenedType(yieldType); + if (returnType) returnType = getWidenedType(returnType); + if (nextType) nextType = getWidenedType(nextType); + } + if (isGenerator) { + return createGeneratorType( + yieldType || neverType, + returnType || fallbackReturnType, + nextType || getContextualIterationType(2 /* Next */, func) || unknownType, + isAsync + ); + } else { + return isAsync ? createPromiseType(returnType || fallbackReturnType) : returnType || fallbackReturnType; + } + } + function createGeneratorType(yieldType, returnType, nextType, isAsyncGenerator) { + const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver; + const globalGeneratorType = resolver.getGlobalGeneratorType( + /*reportErrors*/ + false + ); + yieldType = resolver.resolveIterationType( + yieldType, + /*errorNode*/ + void 0 + ) || unknownType; + returnType = resolver.resolveIterationType( + returnType, + /*errorNode*/ + void 0 + ) || unknownType; + nextType = resolver.resolveIterationType( + nextType, + /*errorNode*/ + void 0 + ) || unknownType; + if (globalGeneratorType === emptyGenericType) { + const globalType = resolver.getGlobalIterableIteratorType( + /*reportErrors*/ + false + ); + const iterationTypes = globalType !== emptyGenericType ? getIterationTypesOfGlobalIterableType(globalType, resolver) : void 0; + const iterableIteratorReturnType = iterationTypes ? iterationTypes.returnType : anyType; + const iterableIteratorNextType = iterationTypes ? iterationTypes.nextType : undefinedType; + if (isTypeAssignableTo(returnType, iterableIteratorReturnType) && isTypeAssignableTo(iterableIteratorNextType, nextType)) { + if (globalType !== emptyGenericType) { + return createTypeFromGenericGlobalType(globalType, [yieldType]); + } + resolver.getGlobalIterableIteratorType( + /*reportErrors*/ + true + ); + return emptyObjectType; + } + resolver.getGlobalGeneratorType( + /*reportErrors*/ + true + ); + return emptyObjectType; + } + return createTypeFromGenericGlobalType(globalGeneratorType, [yieldType, returnType, nextType]); + } + function checkAndAggregateYieldOperandTypes(func, checkMode) { + const yieldTypes = []; + const nextTypes = []; + const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0; + forEachYieldExpression(func.body, (yieldExpression) => { + const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType; + pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync)); + let nextType; + if (yieldExpression.asteriskToken) { + const iterationTypes = getIterationTypesOfIterable( + yieldExpressionType, + isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, + yieldExpression.expression + ); + nextType = iterationTypes && iterationTypes.nextType; + } else { + nextType = getContextualType( + yieldExpression, + /*contextFlags*/ + void 0 + ); + } + if (nextType) pushIfUnique(nextTypes, nextType); + }); + return { yieldTypes, nextTypes }; + } + function getYieldedTypeOfYieldExpression(node, expressionType, sentType, isAsync) { + const errorNode = node.expression || node; + const yieldedType = node.asteriskToken ? checkIteratedTypeOrElementType(isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, expressionType, sentType, errorNode) : expressionType; + return !isAsync ? yieldedType : getAwaitedType( + yieldedType, + errorNode, + node.asteriskToken ? Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member : Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ); + } + function getNotEqualFactsFromTypeofSwitch(start, end, witnesses) { + let facts = 0 /* None */; + for (let i = 0; i < witnesses.length; i++) { + const witness = i < start || i >= end ? witnesses[i] : void 0; + facts |= witness !== void 0 ? typeofNEFacts.get(witness) || 32768 /* TypeofNEHostObject */ : 0; + } + return facts; + } + function isExhaustiveSwitchStatement(node) { + const links = getNodeLinks(node); + if (links.isExhaustive === void 0) { + links.isExhaustive = 0; + const exhaustive = computeExhaustiveSwitchStatement(node); + if (links.isExhaustive === 0) { + links.isExhaustive = exhaustive; + } + } else if (links.isExhaustive === 0) { + links.isExhaustive = false; + } + return links.isExhaustive; + } + function computeExhaustiveSwitchStatement(node) { + if (node.expression.kind === 221 /* TypeOfExpression */) { + const witnesses = getSwitchClauseTypeOfWitnesses(node); + if (!witnesses) { + return false; + } + const operandConstraint = getBaseConstraintOrType(checkExpressionCached(node.expression.expression)); + const notEqualFacts = getNotEqualFactsFromTypeofSwitch(0, 0, witnesses); + if (operandConstraint.flags & 3 /* AnyOrUnknown */) { + return (556800 /* AllTypeofNE */ & notEqualFacts) === 556800 /* AllTypeofNE */; + } + return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts); + } + const type = checkExpressionCached(node.expression); + if (!isLiteralType(type)) { + return false; + } + const switchTypes = getSwitchClauseTypes(node); + if (!switchTypes.length || some(switchTypes, isNeitherUnitTypeNorNever)) { + return false; + } + return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes); + } + function functionHasImplicitReturn(func) { + return func.endFlowNode && isReachableFlowNode(func.endFlowNode); + } + function checkAndAggregateReturnExpressionTypes(func, checkMode) { + const functionFlags = getFunctionFlags(func); + const aggregatedTypes = []; + let hasReturnWithNoExpression = functionHasImplicitReturn(func); + let hasReturnOfTypeNever = false; + forEachReturnStatement(func.body, (returnStatement) => { + let expr = returnStatement.expression; + if (expr) { + expr = skipParentheses( + expr, + /*excludeJSDocTypeAssertions*/ + true + ); + if (functionFlags & 2 /* Async */ && expr.kind === 223 /* AwaitExpression */) { + expr = skipParentheses( + expr.expression, + /*excludeJSDocTypeAssertions*/ + true + ); + } + if (expr.kind === 213 /* CallExpression */ && expr.expression.kind === 80 /* Identifier */ && checkExpressionCached(expr.expression).symbol === getMergedSymbol(func.symbol) && (!isFunctionExpressionOrArrowFunction(func.symbol.valueDeclaration) || isConstantReference(expr.expression))) { + hasReturnOfTypeNever = true; + return; + } + let type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */); + if (functionFlags & 2 /* Async */) { + type = unwrapAwaitedType(checkAwaitedType( + type, + /*withAlias*/ + false, + func, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + )); + } + if (type.flags & 131072 /* Never */) { + hasReturnOfTypeNever = true; + } + pushIfUnique(aggregatedTypes, type); + } else { + hasReturnWithNoExpression = true; + } + }); + if (aggregatedTypes.length === 0 && !hasReturnWithNoExpression && (hasReturnOfTypeNever || mayReturnNever(func))) { + return void 0; + } + if (strictNullChecks && aggregatedTypes.length && hasReturnWithNoExpression && !(isJSConstructor(func) && aggregatedTypes.some((t) => t.symbol === func.symbol))) { + pushIfUnique(aggregatedTypes, undefinedType); + } + return aggregatedTypes; + } + function mayReturnNever(func) { + switch (func.kind) { + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return true; + case 174 /* MethodDeclaration */: + return func.parent.kind === 210 /* ObjectLiteralExpression */; + default: + return false; + } + } + function getTypePredicateFromBody(func) { + switch (func.kind) { + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return void 0; + } + const functionFlags = getFunctionFlags(func); + if (functionFlags !== 0 /* Normal */) return void 0; + let singleReturn; + if (func.body && func.body.kind !== 241 /* Block */) { + singleReturn = func.body; + } else { + const bailedEarly = forEachReturnStatement(func.body, (returnStatement) => { + if (singleReturn || !returnStatement.expression) return true; + singleReturn = returnStatement.expression; + }); + if (bailedEarly || !singleReturn || functionHasImplicitReturn(func)) return void 0; + } + return checkIfExpressionRefinesAnyParameter(func, singleReturn); + } + function checkIfExpressionRefinesAnyParameter(func, expr) { + expr = skipParentheses( + expr, + /*excludeJSDocTypeAssertions*/ + true + ); + const returnType = checkExpressionCached(expr); + if (!(returnType.flags & 16 /* Boolean */)) return void 0; + return forEach(func.parameters, (param, i) => { + const initType = getTypeOfSymbol(param.symbol); + if (!initType || initType.flags & 16 /* Boolean */ || !isIdentifier(param.name) || isSymbolAssigned(param.symbol) || isRestParameter(param)) { + return; + } + const trueType2 = checkIfExpressionRefinesParameter(func, expr, param, initType); + if (trueType2) { + return createTypePredicate(1 /* Identifier */, unescapeLeadingUnderscores(param.name.escapedText), i, trueType2); + } + }); + } + function checkIfExpressionRefinesParameter(func, expr, param, initType) { + const antecedent = expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || createFlowNode( + 2 /* Start */, + /*node*/ + void 0, + /*antecedent*/ + void 0 + ); + const trueCondition = createFlowNode(32 /* TrueCondition */, expr, antecedent); + const trueType2 = getFlowTypeOfReference(param.name, initType, initType, func, trueCondition); + if (trueType2 === initType) return void 0; + const falseCondition = createFlowNode(64 /* FalseCondition */, expr, antecedent); + const falseSubtype = getFlowTypeOfReference(param.name, initType, trueType2, func, falseCondition); + return falseSubtype.flags & 131072 /* Never */ ? trueType2 : void 0; + } + function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) { + addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics); + return; + function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() { + const functionFlags = getFunctionFlags(func); + const type = returnType && unwrapReturnType(returnType, functionFlags); + if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) { + return; + } + if (func.kind === 173 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 241 /* Block */ || !functionHasImplicitReturn(func)) { + return; + } + const hasExplicitReturn = func.flags & 1024 /* HasExplicitReturn */; + const errorNode = getEffectiveReturnTypeNode(func) || func; + if (type && type.flags & 131072 /* Never */) { + error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point); + } else if (type && !hasExplicitReturn) { + error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value); + } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) { + error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined); + } else if (compilerOptions.noImplicitReturns) { + if (!type) { + if (!hasExplicitReturn) { + return; + } + const inferredReturnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func)); + if (isUnwrappedReturnTypeUndefinedVoidOrAny(func, inferredReturnType)) { + return; + } + } + error(errorNode, Diagnostics.Not_all_code_paths_return_a_value); + } + } + } + function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) { + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + checkNodeDeferred(node); + if (isFunctionExpression(node)) { + checkCollisionsForDeclarationName(node, node.name); + } + if (checkMode && checkMode & 4 /* SkipContextSensitive */ && isContextSensitive(node)) { + if (!getEffectiveReturnTypeNode(node) && !hasContextSensitiveParameters(node)) { + const contextualSignature = getContextualSignature(node); + if (contextualSignature && couldContainTypeVariables(getReturnTypeOfSignature(contextualSignature))) { + const links = getNodeLinks(node); + if (links.contextFreeType) { + return links.contextFreeType; + } + const returnType = getReturnTypeFromBody(node, checkMode); + const returnOnlySignature = createSignature( + /*declaration*/ + void 0, + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + returnType, + /*resolvedTypePredicate*/ + void 0, + 0, + 64 /* IsNonInferrable */ + ); + const returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], emptyArray, emptyArray); + returnOnlyType.objectFlags |= 262144 /* NonInferrableType */; + return links.contextFreeType = returnOnlyType; + } + } + return anyFunctionType; + } + const hasGrammarError = checkGrammarFunctionLikeDeclaration(node); + if (!hasGrammarError && node.kind === 218 /* FunctionExpression */) { + checkGrammarForGenerator(node); + } + contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode); + return getTypeOfSymbol(getSymbolOfDeclaration(node)); + } + function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) { + const links = getNodeLinks(node); + if (!(links.flags & 64 /* ContextChecked */)) { + const contextualSignature = getContextualSignature(node); + if (!(links.flags & 64 /* ContextChecked */)) { + links.flags |= 64 /* ContextChecked */; + const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfDeclaration(node)), 0 /* Call */)); + if (!signature) { + return; + } + if (isContextSensitive(node)) { + if (contextualSignature) { + const inferenceContext = getInferenceContext(node); + let instantiatedContextualSignature; + if (checkMode && checkMode & 2 /* Inferential */) { + inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext); + const restType = getEffectiveRestType(contextualSignature); + if (restType && restType.flags & 262144 /* TypeParameter */) { + instantiatedContextualSignature = instantiateSignature(contextualSignature, inferenceContext.nonFixingMapper); + } + } + instantiatedContextualSignature || (instantiatedContextualSignature = inferenceContext ? instantiateSignature(contextualSignature, inferenceContext.mapper) : contextualSignature); + assignContextualParameterTypes(signature, instantiatedContextualSignature); + } else { + assignNonContextualParameterTypes(signature); + } + } else if (contextualSignature && !node.typeParameters && contextualSignature.parameters.length > node.parameters.length) { + const inferenceContext = getInferenceContext(node); + if (checkMode && checkMode & 2 /* Inferential */) { + inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext); + } + } + if (contextualSignature && !getReturnTypeFromAnnotation(node) && !signature.resolvedReturnType) { + const returnType = getReturnTypeFromBody(node, checkMode); + if (!signature.resolvedReturnType) { + signature.resolvedReturnType = returnType; + } + } + checkSignatureDeclaration(node); + } + } + } + function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) { + Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); + const functionFlags = getFunctionFlags(node); + const returnType = getReturnTypeFromAnnotation(node); + checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); + if (node.body) { + if (!getEffectiveReturnTypeNode(node)) { + getReturnTypeOfSignature(getSignatureFromDeclaration(node)); + } + if (node.body.kind === 241 /* Block */) { + checkSourceElement(node.body); + } else { + const exprType = checkExpression(node.body); + const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags); + if (returnOrPromisedType) { + const effectiveCheckNode = getEffectiveCheckNode(node.body); + if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */) { + const awaitedType = checkAwaitedType( + exprType, + /*withAlias*/ + false, + effectiveCheckNode, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ); + checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode); + } else { + checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode); + } + } + } + } + } + function checkArithmeticOperandType(operand, type, diagnostic, isAwaitValid = false) { + if (!isTypeAssignableTo(type, numberOrBigIntType)) { + const awaitedType = isAwaitValid && getAwaitedTypeOfPromise(type); + errorAndMaybeSuggestAwait( + operand, + !!awaitedType && isTypeAssignableTo(awaitedType, numberOrBigIntType), + diagnostic + ); + return false; + } + return true; + } + function isReadonlyAssignmentDeclaration(d) { + if (!isCallExpression(d)) { + return false; + } + if (!isBindableObjectDefinePropertyCall(d)) { + return false; + } + const objectLitType = checkExpressionCached(d.arguments[2]); + const valueType = getTypeOfPropertyOfType(objectLitType, "value"); + if (valueType) { + const writableProp = getPropertyOfType(objectLitType, "writable"); + const writableType = writableProp && getTypeOfSymbol(writableProp); + if (!writableType || writableType === falseType || writableType === regularFalseType) { + return true; + } + if (writableProp && writableProp.valueDeclaration && isPropertyAssignment(writableProp.valueDeclaration)) { + const initializer = writableProp.valueDeclaration.initializer; + const rawOriginalType = checkExpression(initializer); + if (rawOriginalType === falseType || rawOriginalType === regularFalseType) { + return true; + } + } + return false; + } + const setProp = getPropertyOfType(objectLitType, "set"); + return !setProp; + } + function isReadonlySymbol(symbol) { + return !!(getCheckFlags(symbol) & 8 /* Readonly */ || symbol.flags & 4 /* Property */ && getDeclarationModifierFlagsFromSymbol(symbol) & 8 /* Readonly */ || symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 6 /* Constant */ || symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) || symbol.flags & 8 /* EnumMember */ || some(symbol.declarations, isReadonlyAssignmentDeclaration)); + } + function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) { + var _a, _b; + if (assignmentKind === 0 /* None */) { + return false; + } + if (isReadonlySymbol(symbol)) { + if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { + const ctor = getContainingFunction(expr); + if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { + return true; + } + if (symbol.valueDeclaration) { + const isAssignmentDeclaration2 = isBinaryExpression(symbol.valueDeclaration); + const isLocalPropertyDeclaration = ctor.parent === symbol.valueDeclaration.parent; + const isLocalParameterProperty = ctor === symbol.valueDeclaration.parent; + const isLocalThisPropertyAssignment = isAssignmentDeclaration2 && ((_a = symbol.parent) == null ? void 0 : _a.valueDeclaration) === ctor.parent; + const isLocalThisPropertyAssignmentConstructorFunction = isAssignmentDeclaration2 && ((_b = symbol.parent) == null ? void 0 : _b.valueDeclaration) === ctor; + const isWriteableSymbol = isLocalPropertyDeclaration || isLocalParameterProperty || isLocalThisPropertyAssignment || isLocalThisPropertyAssignmentConstructorFunction; + return !isWriteableSymbol; + } + } + return true; + } + if (isAccessExpression(expr)) { + const node = skipParentheses(expr.expression); + if (node.kind === 80 /* Identifier */) { + const symbol2 = getNodeLinks(node).resolvedSymbol; + if (symbol2.flags & 2097152 /* Alias */) { + const declaration = getDeclarationOfAliasSymbol(symbol2); + return !!declaration && declaration.kind === 274 /* NamespaceImport */; + } + } + } + return false; + } + function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { + const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */); + if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { + error(expr, invalidReferenceMessage); + return false; + } + if (node.flags & 64 /* OptionalChain */) { + error(expr, invalidOptionalChainMessage); + return false; + } + return true; + } + function checkDeleteExpression(node) { + checkExpression(node.expression); + const expr = skipParentheses(node.expression); + if (!isAccessExpression(expr)) { + error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference); + return booleanType; + } + if (isPropertyAccessExpression(expr) && isPrivateIdentifier(expr.name)) { + error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier); + } + const links = getNodeLinks(expr); + const symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol); + if (symbol) { + if (isReadonlySymbol(symbol)) { + error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property); + } else { + checkDeleteExpressionMustBeOptional(expr, symbol); + } + } + return booleanType; + } + function checkDeleteExpressionMustBeOptional(expr, symbol) { + const type = getTypeOfSymbol(symbol); + if (strictNullChecks && !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) && !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : hasTypeFacts(type, 16777216 /* IsUndefined */))) { + error(expr, Diagnostics.The_operand_of_a_delete_operator_must_be_optional); + } + } + function checkTypeOfExpression(node) { + checkExpression(node.expression); + return typeofType; + } + function checkVoidExpression(node) { + checkNodeDeferred(node); + return undefinedWideningType; + } + function checkAwaitGrammar(node) { + let hasError = false; + const container = getContainingFunctionOrClassStaticBlock(node); + if (container && isClassStaticBlockDeclaration(container)) { + const message = isAwaitExpression(node) ? Diagnostics.await_expression_cannot_be_used_inside_a_class_static_block : Diagnostics.await_using_statements_cannot_be_used_inside_a_class_static_block; + error(node, message); + hasError = true; + } else if (!(node.flags & 65536 /* AwaitContext */)) { + if (isInTopLevelContext(node)) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + let span; + if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { + span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); + const message = isAwaitExpression(node) ? Diagnostics.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 : Diagnostics.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; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + diagnostics.add(diagnostic); + hasError = true; + } + switch (moduleKind) { + case 100 /* Node16 */: + case 199 /* NodeNext */: + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { + span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); + diagnostics.add( + createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) + ); + hasError = true; + break; + } + case 7 /* ES2022 */: + case 99 /* ESNext */: + case 200 /* Preserve */: + case 4 /* System */: + if (languageVersion >= 4 /* ES2017 */) { + break; + } + default: + span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); + const message = isAwaitExpression(node) ? Diagnostics.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 : Diagnostics.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; + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); + hasError = true; + break; + } + } + } else { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + const span = getSpanOfTokenAtPosition(sourceFile, node.pos); + const message = isAwaitExpression(node) ? Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules : Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules; + const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, message); + if (container && container.kind !== 176 /* Constructor */ && (getFunctionFlags(container) & 2 /* Async */) === 0) { + const relatedInfo = createDiagnosticForNode(container, Diagnostics.Did_you_mean_to_mark_this_function_as_async); + addRelatedInfo(diagnostic, relatedInfo); + } + diagnostics.add(diagnostic); + hasError = true; + } + } + } + if (isAwaitExpression(node) && isInParameterInitializerBeforeContainingFunction(node)) { + error(node, Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer); + hasError = true; + } + return hasError; + } + function checkAwaitExpression(node) { + addLazyDiagnostic(() => checkAwaitGrammar(node)); + const operandType = checkExpression(node.expression); + const awaitedType = checkAwaitedType( + operandType, + /*withAlias*/ + true, + node, + Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ); + if (awaitedType === operandType && !isErrorType(awaitedType) && !(operandType.flags & 3 /* AnyOrUnknown */)) { + addErrorOrSuggestion( + /*isError*/ + false, + createDiagnosticForNode(node, Diagnostics.await_has_no_effect_on_the_type_of_this_expression) + ); + } + return awaitedType; + } + function checkPrefixUnaryExpression(node) { + const operandType = checkExpression(node.operand); + if (operandType === silentNeverType) { + return silentNeverType; + } + switch (node.operand.kind) { + case 9 /* NumericLiteral */: + switch (node.operator) { + case 41 /* MinusToken */: + return getFreshTypeOfLiteralType(getNumberLiteralType(-node.operand.text)); + case 40 /* PlusToken */: + return getFreshTypeOfLiteralType(getNumberLiteralType(+node.operand.text)); + } + break; + case 10 /* BigIntLiteral */: + if (node.operator === 41 /* MinusToken */) { + return getFreshTypeOfLiteralType(getBigIntLiteralType({ + negative: true, + base10Value: parsePseudoBigInt(node.operand.text) + })); + } + } + switch (node.operator) { + case 40 /* PlusToken */: + case 41 /* MinusToken */: + case 55 /* TildeToken */: + checkNonNullType(operandType, node.operand); + if (maybeTypeOfKindConsideringBaseConstraint(operandType, 12288 /* ESSymbolLike */)) { + error(node.operand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(node.operator)); + } + if (node.operator === 40 /* PlusToken */) { + if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112 /* BigIntLike */)) { + error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); + } + return numberType; + } + return getUnaryResultType(operandType); + case 54 /* ExclamationToken */: + checkTruthinessOfType(operandType, node.operand); + const facts = getTypeFacts(operandType, 4194304 /* Truthy */ | 8388608 /* Falsy */); + return facts === 4194304 /* Truthy */ ? falseType : facts === 8388608 /* Falsy */ ? trueType : booleanType; + case 46 /* PlusPlusToken */: + case 47 /* MinusMinusToken */: + const ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type); + if (ok) { + checkReferenceExpression( + node.operand, + Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, + Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access + ); + } + return getUnaryResultType(operandType); + } + return errorType; + } + function checkPostfixUnaryExpression(node) { + const operandType = checkExpression(node.operand); + if (operandType === silentNeverType) { + return silentNeverType; + } + const ok = checkArithmeticOperandType( + node.operand, + checkNonNullType(operandType, node.operand), + Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type + ); + if (ok) { + checkReferenceExpression( + node.operand, + Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, + Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access + ); + } + return getUnaryResultType(operandType); + } + function getUnaryResultType(operandType) { + if (maybeTypeOfKind(operandType, 2112 /* BigIntLike */)) { + return isTypeAssignableToKind(operandType, 3 /* AnyOrUnknown */) || maybeTypeOfKind(operandType, 296 /* NumberLike */) ? numberOrBigIntType : bigintType; + } + return numberType; + } + function maybeTypeOfKindConsideringBaseConstraint(type, kind) { + if (maybeTypeOfKind(type, kind)) { + return true; + } + const baseConstraint = getBaseConstraintOrType(type); + return !!baseConstraint && maybeTypeOfKind(baseConstraint, kind); + } + function maybeTypeOfKind(type, kind) { + if (type.flags & kind) { + return true; + } + if (type.flags & 3145728 /* UnionOrIntersection */) { + const types = type.types; + for (const t of types) { + if (maybeTypeOfKind(t, kind)) { + return true; + } + } + } + return false; + } + function isTypeAssignableToKind(source, kind, strict) { + if (source.flags & kind) { + return true; + } + if (strict && source.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */)) { + return false; + } + return !!(kind & 296 /* NumberLike */) && isTypeAssignableTo(source, numberType) || !!(kind & 2112 /* BigIntLike */) && isTypeAssignableTo(source, bigintType) || !!(kind & 402653316 /* StringLike */) && isTypeAssignableTo(source, stringType) || !!(kind & 528 /* BooleanLike */) && isTypeAssignableTo(source, booleanType) || !!(kind & 16384 /* Void */) && isTypeAssignableTo(source, voidType) || !!(kind & 131072 /* Never */) && isTypeAssignableTo(source, neverType) || !!(kind & 65536 /* Null */) && isTypeAssignableTo(source, nullType) || !!(kind & 32768 /* Undefined */) && isTypeAssignableTo(source, undefinedType) || !!(kind & 4096 /* ESSymbol */) && isTypeAssignableTo(source, esSymbolType) || !!(kind & 67108864 /* NonPrimitive */) && isTypeAssignableTo(source, nonPrimitiveType); + } + function allTypesAssignableToKind(source, kind, strict) { + return source.flags & 1048576 /* Union */ ? every(source.types, (subType) => allTypesAssignableToKind(subType, kind, strict)) : isTypeAssignableToKind(source, kind, strict); + } + function isConstEnumObjectType(type) { + return !!(getObjectFlags(type) & 16 /* Anonymous */) && !!type.symbol && isConstEnumSymbol(type.symbol); + } + function isConstEnumSymbol(symbol) { + return (symbol.flags & 128 /* ConstEnum */) !== 0; + } + function getSymbolHasInstanceMethodOfObjectType(type) { + const hasInstancePropertyName = getPropertyNameForKnownSymbolName("hasInstance"); + if (allTypesAssignableToKind(type, 67108864 /* NonPrimitive */)) { + const hasInstanceProperty = getPropertyOfType(type, hasInstancePropertyName); + if (hasInstanceProperty) { + const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty); + if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) { + return hasInstancePropertyType; + } + } + } + } + function checkInstanceOfExpression(left, right, leftType, rightType, checkMode) { + if (leftType === silentNeverType || rightType === silentNeverType) { + return silentNeverType; + } + if (!isTypeAny(leftType) && allTypesAssignableToKind(leftType, 402784252 /* Primitive */)) { + error(left, Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter); + } + Debug.assert(isInstanceOfExpression(left.parent)); + const signature = getResolvedSignature( + left.parent, + /*candidatesOutArray*/ + void 0, + checkMode + ); + if (signature === resolvingSignature) { + return silentNeverType; + } + const returnType = getReturnTypeOfSignature(signature); + checkTypeAssignableTo(returnType, booleanType, right, Diagnostics.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); + return booleanType; + } + function hasEmptyObjectIntersection(type) { + return someType(type, (t) => t === unknownEmptyObjectType || !!(t.flags & 2097152 /* Intersection */) && isEmptyAnonymousObjectType(getBaseConstraintOrType(t))); + } + function checkInExpression(left, right, leftType, rightType) { + if (leftType === silentNeverType || rightType === silentNeverType) { + return silentNeverType; + } + if (isPrivateIdentifier(left)) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { + checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */); + } + if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) { + const isUncheckedJS = isUncheckedJSSuggestion( + left, + rightType.symbol, + /*excludeClasses*/ + true + ); + reportNonexistentProperty(left, rightType, isUncheckedJS); + } + } else { + checkTypeAssignableTo(checkNonNullType(leftType, left), stringNumberSymbolType, left); + } + if (checkTypeAssignableTo(checkNonNullType(rightType, right), nonPrimitiveType, right)) { + if (hasEmptyObjectIntersection(rightType)) { + error(right, Diagnostics.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator, typeToString(rightType)); + } + } + return booleanType; + } + function checkObjectLiteralAssignment(node, sourceType, rightIsThis) { + const properties = node.properties; + if (strictNullChecks && properties.length === 0) { + return checkNonNullType(sourceType, node); + } + for (let i = 0; i < properties.length; i++) { + checkObjectLiteralDestructuringPropertyAssignment(node, sourceType, i, properties, rightIsThis); + } + return sourceType; + } + function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis = false) { + const properties = node.properties; + const property = properties[propertyIndex]; + if (property.kind === 303 /* PropertyAssignment */ || property.kind === 304 /* ShorthandPropertyAssignment */) { + const name = property.name; + const exprType = getLiteralTypeFromPropertyName(name); + if (isTypeUsableAsPropertyName(exprType)) { + const text = getPropertyNameFromType(exprType); + const prop = getPropertyOfType(objectLiteralType, text); + if (prop) { + markPropertyAsReferenced(prop, property, rightIsThis); + checkPropertyAccessibility( + property, + /*isSuper*/ + false, + /*writing*/ + true, + objectLiteralType, + prop + ); + } + } + const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); + const type = getFlowTypeOfDestructuring(property, elementType); + return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); + } else if (property.kind === 305 /* SpreadAssignment */) { + if (propertyIndex < properties.length - 1) { + error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + } else { + if (languageVersion < 5 /* ObjectSpreadRest */) { + checkExternalEmitHelpers(property, 4 /* Rest */); + } + const nonRestNames = []; + if (allProperties) { + for (const otherProperty of allProperties) { + if (!isSpreadAssignment(otherProperty)) { + nonRestNames.push(otherProperty.name); + } + } + } + const type = getRestType(objectLiteralType, nonRestNames, objectLiteralType.symbol); + checkGrammarForDisallowedTrailingComma(allProperties, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); + return checkDestructuringAssignment(property.expression, type); + } + } else { + error(property, Diagnostics.Property_assignment_expected); + } + } + function checkArrayLiteralAssignment(node, sourceType, checkMode) { + const elements = node.elements; + if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) { + checkExternalEmitHelpers(node, 512 /* Read */); + } + const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType; + let inBoundsType = compilerOptions.noUncheckedIndexedAccess ? void 0 : possiblyOutOfBoundsType; + for (let i = 0; i < elements.length; i++) { + let type = possiblyOutOfBoundsType; + if (node.elements[i].kind === 230 /* SpreadElement */) { + type = inBoundsType = inBoundsType ?? (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType); + } + checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode); + } + return sourceType; + } + function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) { + const elements = node.elements; + const element = elements[elementIndex]; + if (element.kind !== 232 /* OmittedExpression */) { + if (element.kind !== 230 /* SpreadElement */) { + const indexType = getNumberLiteralType(elementIndex); + if (isArrayLikeType(sourceType)) { + const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); + const elementType2 = getIndexedAccessTypeOrUndefined(sourceType, indexType, accessFlags, createSyntheticExpression(element, indexType)) || errorType; + const assignedType = hasDefaultValue(element) ? getTypeWithFacts(elementType2, 524288 /* NEUndefined */) : elementType2; + const type = getFlowTypeOfDestructuring(element, assignedType); + return checkDestructuringAssignment(element, type, checkMode); + } + return checkDestructuringAssignment(element, elementType, checkMode); + } + if (elementIndex < elements.length - 1) { + error(element, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + } else { + const restExpression = element.expression; + if (restExpression.kind === 226 /* BinaryExpression */ && restExpression.operatorToken.kind === 64 /* EqualsToken */) { + error(restExpression.operatorToken, Diagnostics.A_rest_element_cannot_have_an_initializer); + } else { + checkGrammarForDisallowedTrailingComma(node.elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); + const type = everyType(sourceType, isTupleType) ? mapType(sourceType, (t) => sliceTupleType(t, elementIndex)) : createArrayType(elementType); + return checkDestructuringAssignment(restExpression, type, checkMode); + } + } + } + return void 0; + } + function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) { + let target; + if (exprOrAssignment.kind === 304 /* ShorthandPropertyAssignment */) { + const prop = exprOrAssignment; + if (prop.objectAssignmentInitializer) { + if (strictNullChecks && !hasTypeFacts(checkExpression(prop.objectAssignmentInitializer), 16777216 /* IsUndefined */)) { + sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); + } + checkBinaryLikeExpression(prop.name, prop.equalsToken, prop.objectAssignmentInitializer, checkMode); + } + target = exprOrAssignment.name; + } else { + target = exprOrAssignment; + } + if (target.kind === 226 /* BinaryExpression */ && target.operatorToken.kind === 64 /* EqualsToken */) { + checkBinaryExpression(target, checkMode); + target = target.left; + if (strictNullChecks) { + sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */); + } + } + if (target.kind === 210 /* ObjectLiteralExpression */) { + return checkObjectLiteralAssignment(target, sourceType, rightIsThis); + } + if (target.kind === 209 /* ArrayLiteralExpression */) { + return checkArrayLiteralAssignment(target, sourceType, checkMode); + } + return checkReferenceAssignment(target, sourceType, checkMode); + } + function checkReferenceAssignment(target, sourceType, checkMode) { + const targetType = checkExpression(target, checkMode); + const error2 = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access; + const optionalError = target.parent.kind === 305 /* SpreadAssignment */ ? Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access : Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access; + if (checkReferenceExpression(target, error2, optionalError)) { + checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target); + } + if (isPrivateIdentifierPropertyAccessExpression(target)) { + checkExternalEmitHelpers(target.parent, 1048576 /* ClassPrivateFieldSet */); + } + return sourceType; + } + function isSideEffectFree(node) { + node = skipParentheses(node); + switch (node.kind) { + case 80 /* Identifier */: + case 11 /* StringLiteral */: + case 14 /* RegularExpressionLiteral */: + case 215 /* TaggedTemplateExpression */: + case 228 /* TemplateExpression */: + case 15 /* NoSubstitutionTemplateLiteral */: + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + case 106 /* NullKeyword */: + case 157 /* UndefinedKeyword */: + case 218 /* FunctionExpression */: + case 231 /* ClassExpression */: + case 219 /* ArrowFunction */: + case 209 /* ArrayLiteralExpression */: + case 210 /* ObjectLiteralExpression */: + case 221 /* TypeOfExpression */: + case 235 /* NonNullExpression */: + case 285 /* JsxSelfClosingElement */: + case 284 /* JsxElement */: + return true; + case 227 /* ConditionalExpression */: + return isSideEffectFree(node.whenTrue) && isSideEffectFree(node.whenFalse); + case 226 /* BinaryExpression */: + if (isAssignmentOperator(node.operatorToken.kind)) { + return false; + } + return isSideEffectFree(node.left) && isSideEffectFree(node.right); + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + switch (node.operator) { + case 54 /* ExclamationToken */: + case 40 /* PlusToken */: + case 41 /* MinusToken */: + case 55 /* TildeToken */: + return true; + } + return false; + case 222 /* VoidExpression */: + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + default: + return false; + } + } + function isTypeEqualityComparableTo(source, target) { + return (target.flags & 98304 /* Nullable */) !== 0 || isTypeComparableTo(source, target); + } + function createCheckBinaryExpression() { + const trampoline = createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState); + return (node, checkMode) => { + const result = trampoline(node, checkMode); + Debug.assertIsDefined(result); + return result; + }; + function onEnter(node, state, checkMode) { + if (state) { + state.stackIndex++; + state.skip = false; + setLeftType( + state, + /*type*/ + void 0 + ); + setLastResult( + state, + /*type*/ + void 0 + ); + } else { + state = { + checkMode, + skip: false, + stackIndex: 0, + typeStack: [void 0, void 0] + }; + } + if (isInJSFile(node) && getAssignedExpandoInitializer(node)) { + state.skip = true; + setLastResult(state, checkExpression(node.right, checkMode)); + return state; + } + checkGrammarNullishCoalesceWithLogicalExpression(node); + const operator = node.operatorToken.kind; + if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { + state.skip = true; + setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 110 /* ThisKeyword */)); + return state; + } + return state; + } + function onLeft(left, state, _node) { + if (!state.skip) { + return maybeCheckExpression(state, left); + } + } + function onOperator(operatorToken, state, node) { + if (!state.skip) { + const leftType = getLastResult(state); + Debug.assertIsDefined(leftType); + setLeftType(state, leftType); + setLastResult( + state, + /*type*/ + void 0 + ); + const operator = operatorToken.kind; + if (isLogicalOrCoalescingBinaryOperator(operator)) { + let parent = node.parent; + while (parent.kind === 217 /* ParenthesizedExpression */ || isLogicalOrCoalescingBinaryExpression(parent)) { + parent = parent.parent; + } + if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent)) { + checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.left, leftType, isIfStatement(parent) ? parent.thenStatement : void 0); + } + checkTruthinessOfType(leftType, node.left); + } + } + } + function onRight(right, state, _node) { + if (!state.skip) { + return maybeCheckExpression(state, right); + } + } + function onExit(node, state) { + let result; + if (state.skip) { + result = getLastResult(state); + } else { + const leftType = getLeftType(state); + Debug.assertIsDefined(leftType); + const rightType = getLastResult(state); + Debug.assertIsDefined(rightType); + result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, state.checkMode, node); + } + state.skip = false; + setLeftType( + state, + /*type*/ + void 0 + ); + setLastResult( + state, + /*type*/ + void 0 + ); + state.stackIndex--; + return result; + } + function foldState(state, result, _side) { + setLastResult(state, result); + return state; + } + function maybeCheckExpression(state, node) { + if (isBinaryExpression(node)) { + return node; + } + setLastResult(state, checkExpression(node, state.checkMode)); + } + function getLeftType(state) { + return state.typeStack[state.stackIndex]; + } + function setLeftType(state, type) { + state.typeStack[state.stackIndex] = type; + } + function getLastResult(state) { + return state.typeStack[state.stackIndex + 1]; + } + function setLastResult(state, type) { + state.typeStack[state.stackIndex + 1] = type; + } + } + function checkGrammarNullishCoalesceWithLogicalExpression(node) { + const { left, operatorToken, right } = node; + if (operatorToken.kind === 61 /* QuestionQuestionToken */) { + if (isBinaryExpression(left) && (left.operatorToken.kind === 57 /* BarBarToken */ || left.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { + grammarErrorOnNode(left, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(left.operatorToken.kind), tokenToString(operatorToken.kind)); + } + if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { + grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind)); + } + } + } + function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { + const operator = operatorToken.kind; + if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { + return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); + } + let leftType; + if (isLogicalOrCoalescingBinaryOperator(operator)) { + leftType = checkTruthinessExpression(left, checkMode); + } else { + leftType = checkExpression(left, checkMode); + } + const rightType = checkExpression(right, checkMode); + return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode); + } + function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, checkMode, errorNode) { + const operator = operatorToken.kind; + switch (operator) { + case 42 /* AsteriskToken */: + case 43 /* AsteriskAsteriskToken */: + case 67 /* AsteriskEqualsToken */: + case 68 /* AsteriskAsteriskEqualsToken */: + case 44 /* SlashToken */: + case 69 /* SlashEqualsToken */: + case 45 /* PercentToken */: + case 70 /* PercentEqualsToken */: + case 41 /* MinusToken */: + case 66 /* MinusEqualsToken */: + case 48 /* LessThanLessThanToken */: + case 71 /* LessThanLessThanEqualsToken */: + case 49 /* GreaterThanGreaterThanToken */: + case 72 /* GreaterThanGreaterThanEqualsToken */: + case 50 /* GreaterThanGreaterThanGreaterThanToken */: + case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + case 52 /* BarToken */: + case 75 /* BarEqualsToken */: + case 53 /* CaretToken */: + case 79 /* CaretEqualsToken */: + case 51 /* AmpersandToken */: + case 74 /* AmpersandEqualsToken */: + if (leftType === silentNeverType || rightType === silentNeverType) { + return silentNeverType; + } + leftType = checkNonNullType(leftType, left); + rightType = checkNonNullType(rightType, right); + let suggestedOperator; + if (leftType.flags & 528 /* BooleanLike */ && rightType.flags & 528 /* BooleanLike */ && (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== void 0) { + error(errorNode || operatorToken, Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, tokenToString(operatorToken.kind), tokenToString(suggestedOperator)); + return numberType; + } else { + const leftOk = checkArithmeticOperandType( + left, + leftType, + Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, + /*isAwaitValid*/ + true + ); + const rightOk = checkArithmeticOperandType( + right, + rightType, + Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, + /*isAwaitValid*/ + true + ); + let resultType2; + if (isTypeAssignableToKind(leftType, 3 /* AnyOrUnknown */) && isTypeAssignableToKind(rightType, 3 /* AnyOrUnknown */) || // Or, if neither could be bigint, implicit coercion results in a number result + !(maybeTypeOfKind(leftType, 2112 /* BigIntLike */) || maybeTypeOfKind(rightType, 2112 /* BigIntLike */))) { + resultType2 = numberType; + } else if (bothAreBigIntLike(leftType, rightType)) { + switch (operator) { + case 50 /* GreaterThanGreaterThanGreaterThanToken */: + case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + reportOperatorError(); + break; + case 43 /* AsteriskAsteriskToken */: + case 68 /* AsteriskAsteriskEqualsToken */: + if (languageVersion < 3 /* ES2016 */) { + error(errorNode, Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later); + } + } + resultType2 = bigintType; + } else { + reportOperatorError(bothAreBigIntLike); + resultType2 = errorType; + } + if (leftOk && rightOk) { + checkAssignmentOperator(resultType2); + } + return resultType2; + } + case 40 /* PlusToken */: + case 65 /* PlusEqualsToken */: + if (leftType === silentNeverType || rightType === silentNeverType) { + return silentNeverType; + } + if (!isTypeAssignableToKind(leftType, 402653316 /* StringLike */) && !isTypeAssignableToKind(rightType, 402653316 /* StringLike */)) { + leftType = checkNonNullType(leftType, left); + rightType = checkNonNullType(rightType, right); + } + let resultType; + if (isTypeAssignableToKind( + leftType, + 296 /* NumberLike */, + /*strict*/ + true + ) && isTypeAssignableToKind( + rightType, + 296 /* NumberLike */, + /*strict*/ + true + )) { + resultType = numberType; + } else if (isTypeAssignableToKind( + leftType, + 2112 /* BigIntLike */, + /*strict*/ + true + ) && isTypeAssignableToKind( + rightType, + 2112 /* BigIntLike */, + /*strict*/ + true + )) { + resultType = bigintType; + } else if (isTypeAssignableToKind( + leftType, + 402653316 /* StringLike */, + /*strict*/ + true + ) || isTypeAssignableToKind( + rightType, + 402653316 /* StringLike */, + /*strict*/ + true + )) { + resultType = stringType; + } else if (isTypeAny(leftType) || isTypeAny(rightType)) { + resultType = isErrorType(leftType) || isErrorType(rightType) ? errorType : anyType; + } + if (resultType && !checkForDisallowedESSymbolOperand(operator)) { + return resultType; + } + if (!resultType) { + const closeEnoughKind = 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 3 /* AnyOrUnknown */; + reportOperatorError( + (left2, right2) => isTypeAssignableToKind(left2, closeEnoughKind) && isTypeAssignableToKind(right2, closeEnoughKind) + ); + return anyType; + } + if (operator === 65 /* PlusEqualsToken */) { + checkAssignmentOperator(resultType); + } + return resultType; + case 30 /* LessThanToken */: + case 32 /* GreaterThanToken */: + case 33 /* LessThanEqualsToken */: + case 34 /* GreaterThanEqualsToken */: + if (checkForDisallowedESSymbolOperand(operator)) { + leftType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(leftType, left)); + rightType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(rightType, right)); + reportOperatorErrorUnless((left2, right2) => { + if (isTypeAny(left2) || isTypeAny(right2)) { + return true; + } + const leftAssignableToNumber = isTypeAssignableTo(left2, numberOrBigIntType); + const rightAssignableToNumber = isTypeAssignableTo(right2, numberOrBigIntType); + return leftAssignableToNumber && rightAssignableToNumber || !leftAssignableToNumber && !rightAssignableToNumber && areTypesComparable(left2, right2); + }); + } + return booleanType; + case 35 /* EqualsEqualsToken */: + case 36 /* ExclamationEqualsToken */: + case 37 /* EqualsEqualsEqualsToken */: + case 38 /* ExclamationEqualsEqualsToken */: + if (!(checkMode && checkMode & 64 /* TypeOnly */)) { + if ((isLiteralExpressionOfObject(left) || isLiteralExpressionOfObject(right)) && // only report for === and !== in JS, not == or != + (!isInJSFile(left) || (operator === 37 /* EqualsEqualsEqualsToken */ || operator === 38 /* ExclamationEqualsEqualsToken */))) { + const eqType = operator === 35 /* EqualsEqualsToken */ || operator === 37 /* EqualsEqualsEqualsToken */; + error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true"); + } + checkNaNEquality(errorNode, operator, left, right); + reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2)); + } + return booleanType; + case 104 /* InstanceOfKeyword */: + return checkInstanceOfExpression(left, right, leftType, rightType, checkMode); + case 103 /* InKeyword */: + return checkInExpression(left, right, leftType, rightType); + case 56 /* AmpersandAmpersandToken */: + case 77 /* AmpersandAmpersandEqualsToken */: { + const resultType2 = hasTypeFacts(leftType, 4194304 /* Truthy */) ? getUnionType([extractDefinitelyFalsyTypes(strictNullChecks ? leftType : getBaseTypeOfLiteralType(rightType)), rightType]) : leftType; + if (operator === 77 /* AmpersandAmpersandEqualsToken */) { + checkAssignmentOperator(rightType); + } + return resultType2; + } + case 57 /* BarBarToken */: + case 76 /* BarBarEqualsToken */: { + const resultType2 = hasTypeFacts(leftType, 8388608 /* Falsy */) ? getUnionType([getNonNullableType(removeDefinitelyFalsyTypes(leftType)), rightType], 2 /* Subtype */) : leftType; + if (operator === 76 /* BarBarEqualsToken */) { + checkAssignmentOperator(rightType); + } + return resultType2; + } + case 61 /* QuestionQuestionToken */: + case 78 /* QuestionQuestionEqualsToken */: { + const resultType2 = hasTypeFacts(leftType, 262144 /* EQUndefinedOrNull */) ? getUnionType([getNonNullableType(leftType), rightType], 2 /* Subtype */) : leftType; + if (operator === 78 /* QuestionQuestionEqualsToken */) { + checkAssignmentOperator(rightType); + } + return resultType2; + } + case 64 /* EqualsToken */: + const declKind = isBinaryExpression(left.parent) ? getAssignmentDeclarationKind(left.parent) : 0 /* None */; + checkAssignmentDeclaration(declKind, rightType); + if (isAssignmentDeclaration2(declKind)) { + if (!(rightType.flags & 524288 /* Object */) || declKind !== 2 /* ModuleExports */ && declKind !== 6 /* Prototype */ && !isEmptyObjectType(rightType) && !isFunctionObjectType(rightType) && !(getObjectFlags(rightType) & 1 /* Class */)) { + checkAssignmentOperator(rightType); + } + return leftType; + } else { + checkAssignmentOperator(rightType); + return rightType; + } + case 28 /* CommaToken */: + if (!compilerOptions.allowUnreachableCode && isSideEffectFree(left) && !isIndirectCall(left.parent)) { + const sf = getSourceFileOfNode(left); + const sourceText = sf.text; + const start = skipTrivia(sourceText, left.pos); + const isInDiag2657 = sf.parseDiagnostics.some((diag2) => { + if (diag2.code !== Diagnostics.JSX_expressions_must_have_one_parent_element.code) return false; + return textSpanContainsPosition(diag2, start); + }); + if (!isInDiag2657) error(left, Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects); + } + return rightType; + default: + return Debug.fail(); + } + function bothAreBigIntLike(left2, right2) { + return isTypeAssignableToKind(left2, 2112 /* BigIntLike */) && isTypeAssignableToKind(right2, 2112 /* BigIntLike */); + } + function checkAssignmentDeclaration(kind, rightType2) { + if (kind === 2 /* ModuleExports */) { + for (const prop of getPropertiesOfObjectType(rightType2)) { + const propType = getTypeOfSymbol(prop); + if (propType.symbol && propType.symbol.flags & 32 /* Class */) { + const name = prop.escapedName; + const symbol = resolveName( + prop.valueDeclaration, + name, + 788968 /* Type */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + if ((symbol == null ? void 0 : symbol.declarations) && symbol.declarations.some(isJSDocTypedefTag)) { + addDuplicateDeclarationErrorsForSymbols(symbol, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), prop); + addDuplicateDeclarationErrorsForSymbols(prop, Diagnostics.Duplicate_identifier_0, unescapeLeadingUnderscores(name), symbol); + } + } + } + } + } + function isIndirectCall(node) { + return node.parent.kind === 217 /* ParenthesizedExpression */ && isNumericLiteral(node.left) && node.left.text === "0" && (isCallExpression(node.parent.parent) && node.parent.parent.expression === node.parent || node.parent.parent.kind === 215 /* TaggedTemplateExpression */) && // special-case for "eval" because it's the only non-access case where an indirect call actually affects behavior. + (isAccessExpression(node.right) || isIdentifier(node.right) && node.right.escapedText === "eval"); + } + function checkForDisallowedESSymbolOperand(operator2) { + const offendingSymbolOperand = maybeTypeOfKindConsideringBaseConstraint(leftType, 12288 /* ESSymbolLike */) ? left : maybeTypeOfKindConsideringBaseConstraint(rightType, 12288 /* ESSymbolLike */) ? right : void 0; + if (offendingSymbolOperand) { + error(offendingSymbolOperand, Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, tokenToString(operator2)); + return false; + } + return true; + } + function getSuggestedBooleanOperator(operator2) { + switch (operator2) { + case 52 /* BarToken */: + case 75 /* BarEqualsToken */: + return 57 /* BarBarToken */; + case 53 /* CaretToken */: + case 79 /* CaretEqualsToken */: + return 38 /* ExclamationEqualsEqualsToken */; + case 51 /* AmpersandToken */: + case 74 /* AmpersandEqualsToken */: + return 56 /* AmpersandAmpersandToken */; + default: + return void 0; + } + } + function checkAssignmentOperator(valueType) { + if (isAssignmentOperator(operator)) { + addLazyDiagnostic(checkAssignmentOperatorWorker); + } + function checkAssignmentOperatorWorker() { + let assigneeType = leftType; + if (isCompoundAssignment(operatorToken.kind) && left.kind === 211 /* PropertyAccessExpression */) { + assigneeType = checkPropertyAccessExpression( + left, + /*checkMode*/ + void 0, + /*writeOnly*/ + true + ); + } + if (checkReferenceExpression(left, Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)) { + let headMessage; + if (exactOptionalPropertyTypes && isPropertyAccessExpression(left) && maybeTypeOfKind(valueType, 32768 /* Undefined */)) { + const target = getTypeOfPropertyOfType(getTypeOfExpression(left.expression), left.name.escapedText); + if (isExactOptionalPropertyMismatch(valueType, target)) { + headMessage = Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target; + } + } + checkTypeAssignableToAndOptionallyElaborate(valueType, assigneeType, left, right, headMessage); + } + } + } + function isAssignmentDeclaration2(kind) { + var _a; + switch (kind) { + case 2 /* ModuleExports */: + return true; + case 1 /* ExportsProperty */: + case 5 /* Property */: + case 6 /* Prototype */: + case 3 /* PrototypeProperty */: + case 4 /* ThisProperty */: + const symbol = getSymbolOfNode(left); + const init = getAssignedExpandoInitializer(right); + return !!init && isObjectLiteralExpression(init) && !!((_a = symbol == null ? void 0 : symbol.exports) == null ? void 0 : _a.size); + default: + return false; + } + } + function reportOperatorErrorUnless(typesAreCompatible) { + if (!typesAreCompatible(leftType, rightType)) { + reportOperatorError(typesAreCompatible); + return true; + } + return false; + } + function reportOperatorError(isRelated) { + let wouldWorkWithAwait = false; + const errNode = errorNode || operatorToken; + if (isRelated) { + const awaitedLeftType = getAwaitedTypeNoAlias(leftType); + const awaitedRightType = getAwaitedTypeNoAlias(rightType); + wouldWorkWithAwait = !(awaitedLeftType === leftType && awaitedRightType === rightType) && !!(awaitedLeftType && awaitedRightType) && isRelated(awaitedLeftType, awaitedRightType); + } + let effectiveLeft = leftType; + let effectiveRight = rightType; + if (!wouldWorkWithAwait && isRelated) { + [effectiveLeft, effectiveRight] = getBaseTypesIfUnrelated(leftType, rightType, isRelated); + } + const [leftStr, rightStr] = getTypeNamesForErrorDisplay(effectiveLeft, effectiveRight); + if (!tryGiveBetterPrimaryError(errNode, wouldWorkWithAwait, leftStr, rightStr)) { + errorAndMaybeSuggestAwait( + errNode, + wouldWorkWithAwait, + Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2, + tokenToString(operatorToken.kind), + leftStr, + rightStr + ); + } + } + function tryGiveBetterPrimaryError(errNode, maybeMissingAwait, leftStr, rightStr) { + switch (operatorToken.kind) { + case 37 /* EqualsEqualsEqualsToken */: + case 35 /* EqualsEqualsToken */: + case 38 /* ExclamationEqualsEqualsToken */: + case 36 /* ExclamationEqualsToken */: + return errorAndMaybeSuggestAwait( + errNode, + maybeMissingAwait, + Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap, + leftStr, + rightStr + ); + default: + return void 0; + } + } + function checkNaNEquality(errorNode2, operator2, left2, right2) { + const isLeftNaN = isGlobalNaN(skipParentheses(left2)); + const isRightNaN = isGlobalNaN(skipParentheses(right2)); + if (isLeftNaN || isRightNaN) { + const err = error(errorNode2, Diagnostics.This_condition_will_always_return_0, tokenToString(operator2 === 37 /* EqualsEqualsEqualsToken */ || operator2 === 35 /* EqualsEqualsToken */ ? 97 /* FalseKeyword */ : 112 /* TrueKeyword */)); + if (isLeftNaN && isRightNaN) return; + const operatorString = operator2 === 38 /* ExclamationEqualsEqualsToken */ || operator2 === 36 /* ExclamationEqualsToken */ ? tokenToString(54 /* ExclamationToken */) : ""; + const location = isLeftNaN ? right2 : left2; + const expression = skipParentheses(location); + addRelatedInfo(err, createDiagnosticForNode(location, Diagnostics.Did_you_mean_0, `${operatorString}Number.isNaN(${isEntityNameExpression(expression) ? entityNameToString(expression) : "..."})`)); + } + } + function isGlobalNaN(expr) { + if (isIdentifier(expr) && expr.escapedText === "NaN") { + const globalNaNSymbol = getGlobalNaNSymbol(); + return !!globalNaNSymbol && globalNaNSymbol === getResolvedSymbol(expr); + } + return false; + } + } + function getBaseTypesIfUnrelated(leftType, rightType, isRelated) { + let effectiveLeft = leftType; + let effectiveRight = rightType; + const leftBase = getBaseTypeOfLiteralType(leftType); + const rightBase = getBaseTypeOfLiteralType(rightType); + if (!isRelated(leftBase, rightBase)) { + effectiveLeft = leftBase; + effectiveRight = rightBase; + } + return [effectiveLeft, effectiveRight]; + } + function checkYieldExpression(node) { + addLazyDiagnostic(checkYieldExpressionGrammar); + const func = getContainingFunction(node); + if (!func) return anyType; + const functionFlags = getFunctionFlags(func); + if (!(functionFlags & 1 /* Generator */)) { + return anyType; + } + const isAsync = (functionFlags & 2 /* Async */) !== 0; + if (node.asteriskToken) { + if (isAsync && languageVersion < 5 /* AsyncGenerators */) { + checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */); + } + if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) { + checkExternalEmitHelpers(node, 256 /* Values */); + } + } + let returnType = getReturnTypeFromAnnotation(func); + if (returnType && returnType.flags & 1048576 /* Union */) { + returnType = filterType(returnType, (t) => checkGeneratorInstantiationAssignabilityToReturnType( + t, + functionFlags, + /*errorNode*/ + void 0 + )); + } + const iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync); + const signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType; + const signatureNextType = iterationTypes && iterationTypes.nextType || anyType; + const resolvedSignatureNextType = isAsync ? getAwaitedType(signatureNextType) || anyType : signatureNextType; + const yieldExpressionType = node.expression ? checkExpression(node.expression) : undefinedWideningType; + const yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, resolvedSignatureNextType, isAsync); + if (returnType && yieldedType) { + checkTypeAssignableToAndOptionallyElaborate(yieldedType, signatureYieldType, node.expression || node, node.expression); + } + if (node.asteriskToken) { + const use = isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */; + return getIterationTypeOfIterable(use, 1 /* Return */, yieldExpressionType, node.expression) || anyType; + } else if (returnType) { + return getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, isAsync) || anyType; + } + let type = getContextualIterationType(2 /* Next */, func); + if (!type) { + type = anyType; + addLazyDiagnostic(() => { + if (noImplicitAny && !expressionResultIsUnused(node)) { + const contextualType = getContextualType( + node, + /*contextFlags*/ + void 0 + ); + if (!contextualType || isTypeAny(contextualType)) { + error(node, Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation); + } + } + }); + } + return type; + function checkYieldExpressionGrammar() { + if (!(node.flags & 16384 /* YieldContext */)) { + grammarErrorOnFirstToken(node, Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body); + } + if (isInParameterInitializerBeforeContainingFunction(node)) { + error(node, Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer); + } + } + } + function checkConditionalExpression(node, checkMode) { + const type = checkTruthinessExpression(node.condition, checkMode); + checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.condition, type, node.whenTrue); + const type1 = checkExpression(node.whenTrue, checkMode); + const type2 = checkExpression(node.whenFalse, checkMode); + return getUnionType([type1, type2], 2 /* Subtype */); + } + function isTemplateLiteralContext(node) { + const parent = node.parent; + return isParenthesizedExpression(parent) && isTemplateLiteralContext(parent) || isElementAccessExpression(parent) && parent.argumentExpression === node; + } + function checkTemplateExpression(node) { + const texts = [node.head.text]; + const types = []; + for (const span of node.templateSpans) { + const type = checkExpression(span.expression); + if (maybeTypeOfKindConsideringBaseConstraint(type, 12288 /* ESSymbolLike */)) { + error(span.expression, Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String); + } + texts.push(span.literal.text); + types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType); + } + const evaluated = node.parent.kind !== 215 /* TaggedTemplateExpression */ && evaluate(node).value; + if (evaluated) { + return getFreshTypeOfLiteralType(getStringLiteralType(evaluated)); + } + if (isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType( + node, + /*contextFlags*/ + void 0 + ) || unknownType, isTemplateLiteralContextualType)) { + return getTemplateLiteralType(texts, types); + } + return stringType; + } + function isTemplateLiteralContextualType(type) { + return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */)); + } + function getContextNode(node) { + if (isJsxAttributes(node) && !isJsxSelfClosingElement(node.parent)) { + return node.parent.parent; + } + return node; + } + function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) { + const contextNode = getContextNode(node); + pushContextualType( + contextNode, + contextualType, + /*isCache*/ + false + ); + pushInferenceContext(contextNode, inferenceContext); + const type = checkExpression(node, checkMode | 1 /* Contextual */ | (inferenceContext ? 2 /* Inferential */ : 0)); + if (inferenceContext && inferenceContext.intraExpressionInferenceSites) { + inferenceContext.intraExpressionInferenceSites = void 0; + } + const result = maybeTypeOfKind(type, 2944 /* Literal */) && isLiteralOfContextualType(type, instantiateContextualType( + contextualType, + node, + /*contextFlags*/ + void 0 + )) ? getRegularTypeOfLiteralType(type) : type; + popInferenceContext(); + popContextualType(); + return result; + } + function checkExpressionCached(node, checkMode) { + if (checkMode) { + return checkExpression(node, checkMode); + } + const links = getNodeLinks(node); + if (!links.resolvedType) { + const saveFlowLoopStart = flowLoopStart; + const saveFlowTypeCache = flowTypeCache; + flowLoopStart = flowLoopCount; + flowTypeCache = void 0; + links.resolvedType = checkExpression(node, checkMode); + flowTypeCache = saveFlowTypeCache; + flowLoopStart = saveFlowLoopStart; + } + return links.resolvedType; + } + function isTypeAssertion(node) { + node = skipParentheses( + node, + /*excludeJSDocTypeAssertions*/ + true + ); + return node.kind === 216 /* TypeAssertionExpression */ || node.kind === 234 /* AsExpression */ || isJSDocTypeAssertion(node); + } + function checkDeclarationInitializer(declaration, checkMode, contextualType) { + const initializer = getEffectiveInitializer(declaration); + if (isInJSFile(declaration)) { + const typeNode = tryGetJSDocSatisfiesTypeNode(declaration); + if (typeNode) { + return checkSatisfiesExpressionWorker(initializer, typeNode, checkMode); + } + } + const type = getQuickTypeOfExpression(initializer) || (contextualType ? checkExpressionWithContextualType( + initializer, + contextualType, + /*inferenceContext*/ + void 0, + checkMode || 0 /* Normal */ + ) : checkExpressionCached(initializer, checkMode)); + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; + } + function padTupleType(type, pattern) { + const patternElements = pattern.elements; + const elementTypes = getElementTypes(type).slice(); + const elementFlags = type.target.elementFlags.slice(); + for (let i = getTypeReferenceArity(type); i < patternElements.length; i++) { + const e = patternElements[i]; + if (i < patternElements.length - 1 || !(e.kind === 208 /* BindingElement */ && e.dotDotDotToken)) { + elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement( + e, + /*includePatternInType*/ + false, + /*reportErrors*/ + false + ) : anyType); + elementFlags.push(2 /* Optional */); + if (!isOmittedExpression(e) && !hasDefaultValue(e)) { + reportImplicitAny(e, anyType); + } + } + } + return createTupleType(elementTypes, elementFlags, type.target.readonly); + } + function widenTypeInferredFromInitializer(declaration, type) { + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); + if (isInJSFile(declaration)) { + if (isEmptyLiteralType(widened)) { + reportImplicitAny(declaration, anyType); + return anyType; + } else if (isEmptyArrayLiteralType(widened)) { + reportImplicitAny(declaration, anyArrayType); + return anyArrayType; + } + } + return widened; + } + function isLiteralOfContextualType(candidateType, contextualType) { + if (contextualType) { + if (contextualType.flags & 3145728 /* UnionOrIntersection */) { + const types = contextualType.types; + return some(types, (t) => isLiteralOfContextualType(candidateType, t)); + } + if (contextualType.flags & 58982400 /* InstantiableNonPrimitive */) { + const constraint = getBaseConstraintOfType(contextualType) || unknownType; + return maybeTypeOfKind(constraint, 4 /* String */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) || maybeTypeOfKind(constraint, 8 /* Number */) && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) || maybeTypeOfKind(constraint, 64 /* BigInt */) && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) || maybeTypeOfKind(constraint, 4096 /* ESSymbol */) && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */) || isLiteralOfContextualType(candidateType, constraint); + } + return !!(contextualType.flags & (128 /* StringLiteral */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) || contextualType.flags & 256 /* NumberLiteral */ && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) || contextualType.flags & 2048 /* BigIntLiteral */ && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) || contextualType.flags & 512 /* BooleanLiteral */ && maybeTypeOfKind(candidateType, 512 /* BooleanLiteral */) || contextualType.flags & 8192 /* UniqueESSymbol */ && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */)); + } + return false; + } + function isConstContext(node) { + const parent = node.parent; + return isAssertionExpression(parent) && isConstTypeReference(parent.type) || isJSDocTypeAssertion(parent) && isConstTypeReference(getJSDocTypeAssertionType(parent)) || isValidConstAssertionArgument(node) && isConstTypeVariable(getContextualType(node, 0 /* None */)) || (isParenthesizedExpression(parent) || isArrayLiteralExpression(parent) || isSpreadElement(parent)) && isConstContext(parent) || (isPropertyAssignment(parent) || isShorthandPropertyAssignment(parent) || isTemplateSpan(parent)) && isConstContext(parent.parent); + } + function checkExpressionForMutableLocation(node, checkMode, forceTuple) { + const type = checkExpression(node, checkMode, forceTuple); + return isConstContext(node) || isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) : isTypeAssertion(node) ? type : getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType( + getContextualType( + node, + /*contextFlags*/ + void 0 + ), + node, + /*contextFlags*/ + void 0 + )); + } + function checkPropertyAssignment(node, checkMode) { + if (node.name.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.name); + } + return checkExpressionForMutableLocation(node.initializer, checkMode); + } + function checkObjectLiteralMethod(node, checkMode) { + checkGrammarMethod(node); + if (node.name.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.name); + } + const uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); + return instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); + } + function instantiateTypeWithSingleGenericCallSignature(node, type, checkMode) { + if (checkMode && checkMode & (2 /* Inferential */ | 8 /* SkipGenericFunctions */)) { + const callSignature = getSingleSignature( + type, + 0 /* Call */, + /*allowMembers*/ + true + ); + const constructSignature = getSingleSignature( + type, + 1 /* Construct */, + /*allowMembers*/ + true + ); + const signature = callSignature || constructSignature; + if (signature && signature.typeParameters) { + const contextualType = getApparentTypeOfContextualType(node, 2 /* NoConstraints */); + if (contextualType) { + const contextualSignature = getSingleSignature( + getNonNullableType(contextualType), + callSignature ? 0 /* Call */ : 1 /* Construct */, + /*allowMembers*/ + false + ); + if (contextualSignature && !contextualSignature.typeParameters) { + if (checkMode & 8 /* SkipGenericFunctions */) { + skippedGenericFunction(node, checkMode); + return anyFunctionType; + } + const context = getInferenceContext(node); + const returnType = context.signature && getReturnTypeOfSignature(context.signature); + const returnSignature = returnType && getSingleCallOrConstructSignature(returnType); + if (returnSignature && !returnSignature.typeParameters && !every(context.inferences, hasInferenceCandidates)) { + const uniqueTypeParameters = getUniqueTypeParameters(context, signature.typeParameters); + const instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, uniqueTypeParameters); + const inferences = map(context.inferences, (info) => createInferenceInfo(info.typeParameter)); + applyToParameterTypes(instantiatedSignature, contextualSignature, (source, target) => { + inferTypes( + inferences, + source, + target, + /*priority*/ + 0, + /*contravariant*/ + true + ); + }); + if (some(inferences, hasInferenceCandidates)) { + applyToReturnTypes(instantiatedSignature, contextualSignature, (source, target) => { + inferTypes(inferences, source, target); + }); + if (!hasOverlappingInferences(context.inferences, inferences)) { + mergeInferences(context.inferences, inferences); + context.inferredTypeParameters = concatenate(context.inferredTypeParameters, uniqueTypeParameters); + return getOrCreateTypeFromSignature(instantiatedSignature); + } + } + } + return getOrCreateTypeFromSignature(instantiateSignatureInContextOf(signature, contextualSignature, context), flatMap(inferenceContexts, (c) => c && map(c.inferences, (i) => i.typeParameter)).slice()); + } + } + } + } + return type; + } + function skippedGenericFunction(node, checkMode) { + if (checkMode & 2 /* Inferential */) { + const context = getInferenceContext(node); + context.flags |= 4 /* SkippedGenericFunction */; + } + } + function hasInferenceCandidates(info) { + return !!(info.candidates || info.contraCandidates); + } + function hasInferenceCandidatesOrDefault(info) { + return !!(info.candidates || info.contraCandidates || hasTypeParameterDefault(info.typeParameter)); + } + function hasOverlappingInferences(a, b) { + for (let i = 0; i < a.length; i++) { + if (hasInferenceCandidates(a[i]) && hasInferenceCandidates(b[i])) { + return true; + } + } + return false; + } + function mergeInferences(target, source) { + for (let i = 0; i < target.length; i++) { + if (!hasInferenceCandidates(target[i]) && hasInferenceCandidates(source[i])) { + target[i] = source[i]; + } + } + } + function getUniqueTypeParameters(context, typeParameters) { + const result = []; + let oldTypeParameters; + let newTypeParameters; + for (const tp of typeParameters) { + const name = tp.symbol.escapedName; + if (hasTypeParameterByName(context.inferredTypeParameters, name) || hasTypeParameterByName(result, name)) { + const newName = getUniqueTypeParameterName(concatenate(context.inferredTypeParameters, result), name); + const symbol = createSymbol(262144 /* TypeParameter */, newName); + const newTypeParameter = createTypeParameter(symbol); + newTypeParameter.target = tp; + oldTypeParameters = append(oldTypeParameters, tp); + newTypeParameters = append(newTypeParameters, newTypeParameter); + result.push(newTypeParameter); + } else { + result.push(tp); + } + } + if (newTypeParameters) { + const mapper = createTypeMapper(oldTypeParameters, newTypeParameters); + for (const tp of newTypeParameters) { + tp.mapper = mapper; + } + } + return result; + } + function hasTypeParameterByName(typeParameters, name) { + return some(typeParameters, (tp) => tp.symbol.escapedName === name); + } + function getUniqueTypeParameterName(typeParameters, baseName) { + let len = baseName.length; + while (len > 1 && baseName.charCodeAt(len - 1) >= 48 /* _0 */ && baseName.charCodeAt(len - 1) <= 57 /* _9 */) len--; + const s = baseName.slice(0, len); + for (let index = 1; true; index++) { + const augmentedName = s + index; + if (!hasTypeParameterByName(typeParameters, augmentedName)) { + return augmentedName; + } + } + } + function getReturnTypeOfSingleNonGenericCallSignature(funcType) { + const signature = getSingleCallSignature(funcType); + if (signature && !signature.typeParameters) { + return getReturnTypeOfSignature(signature); + } + } + function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) { + const funcType = checkExpression(expr.expression); + const nonOptionalType = getOptionalExpressionType(funcType, expr.expression); + const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType); + return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType); + } + function getTypeOfExpression(node) { + const quickType = getQuickTypeOfExpression(node); + if (quickType) { + return quickType; + } + if (node.flags & 268435456 /* TypeCached */ && flowTypeCache) { + const cachedType = flowTypeCache[getNodeId(node)]; + if (cachedType) { + return cachedType; + } + } + const startInvocationCount = flowInvocationCount; + const type = checkExpression(node, 64 /* TypeOnly */); + if (flowInvocationCount !== startInvocationCount) { + const cache = flowTypeCache || (flowTypeCache = []); + cache[getNodeId(node)] = type; + setNodeFlags(node, node.flags | 268435456 /* TypeCached */); + } + return type; + } + function getQuickTypeOfExpression(node) { + let expr = skipParentheses( + node, + /*excludeJSDocTypeAssertions*/ + true + ); + if (isJSDocTypeAssertion(expr)) { + const type = getJSDocTypeAssertionType(expr); + if (!isConstTypeReference(type)) { + return getTypeFromTypeNode(type); + } + } + expr = skipParentheses(node); + if (isAwaitExpression(expr)) { + const type = getQuickTypeOfExpression(expr.expression); + return type ? getAwaitedType(type) : void 0; + } + if (isCallExpression(expr) && expr.expression.kind !== 108 /* SuperKeyword */ && !isRequireCall( + expr, + /*requireStringLiteralLikeArgument*/ + true + ) && !isSymbolOrSymbolForCall(expr)) { + return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression)); + } else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) { + return getTypeFromTypeNode(expr.type); + } else if (isLiteralExpression(node) || isBooleanLiteral(node)) { + return checkExpression(node); + } + return void 0; + } + function getContextFreeTypeOfExpression(node) { + const links = getNodeLinks(node); + if (links.contextFreeType) { + return links.contextFreeType; + } + pushContextualType( + node, + anyType, + /*isCache*/ + false + ); + const type = links.contextFreeType = checkExpression(node, 4 /* SkipContextSensitive */); + popContextualType(); + return type; + } + function checkExpression(node, checkMode, forceTuple) { + var _a, _b; + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkExpression", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); + const saveCurrentNode = currentNode; + currentNode = node; + instantiationCount = 0; + const uninstantiatedType = checkExpressionWorker(node, checkMode, forceTuple); + const type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); + if (isConstEnumObjectType(type)) { + checkConstEnumAccess(node, type); + } + currentNode = saveCurrentNode; + (_b = tracing) == null ? void 0 : _b.pop(); + return type; + } + function checkConstEnumAccess(node, type) { + const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */; + if (!ok) { + error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); + } + if (getIsolatedModules(compilerOptions)) { + Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); + const constEnumDeclaration = type.symbol.valueDeclaration; + const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath); + if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) { + error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); + } + } + } + function checkParenthesizedExpression(node, checkMode) { + if (hasJSDocNodes(node)) { + if (isJSDocSatisfiesExpression(node)) { + return checkSatisfiesExpressionWorker(node.expression, getJSDocSatisfiesExpressionType(node), checkMode); + } + if (isJSDocTypeAssertion(node)) { + return checkAssertionWorker(node, checkMode); + } + } + return checkExpression(node.expression, checkMode); + } + function checkExpressionWorker(node, checkMode, forceTuple) { + const kind = node.kind; + if (cancellationToken) { + switch (kind) { + case 231 /* ClassExpression */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + cancellationToken.throwIfCancellationRequested(); + } + } + switch (kind) { + case 80 /* Identifier */: + return checkIdentifier(node, checkMode); + case 81 /* PrivateIdentifier */: + return checkPrivateIdentifierExpression(node); + case 110 /* ThisKeyword */: + return checkThisExpression(node); + case 108 /* SuperKeyword */: + return checkSuperExpression(node); + case 106 /* NullKeyword */: + return nullWideningType; + case 15 /* NoSubstitutionTemplateLiteral */: + case 11 /* StringLiteral */: + return hasSkipDirectInferenceFlag(node) ? blockedStringType : getFreshTypeOfLiteralType(getStringLiteralType(node.text)); + case 9 /* NumericLiteral */: + checkGrammarNumericLiteral(node); + return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text)); + case 10 /* BigIntLiteral */: + checkGrammarBigIntLiteral(node); + return getFreshTypeOfLiteralType(getBigIntLiteralType({ + negative: false, + base10Value: parsePseudoBigInt(node.text) + })); + case 112 /* TrueKeyword */: + return trueType; + case 97 /* FalseKeyword */: + return falseType; + case 228 /* TemplateExpression */: + return checkTemplateExpression(node); + case 14 /* RegularExpressionLiteral */: + return checkRegularExpressionLiteral(node); + case 209 /* ArrayLiteralExpression */: + return checkArrayLiteral(node, checkMode, forceTuple); + case 210 /* ObjectLiteralExpression */: + return checkObjectLiteral(node, checkMode); + case 211 /* PropertyAccessExpression */: + return checkPropertyAccessExpression(node, checkMode); + case 166 /* QualifiedName */: + return checkQualifiedName(node, checkMode); + case 212 /* ElementAccessExpression */: + return checkIndexedAccess(node, checkMode); + case 213 /* CallExpression */: + if (node.expression.kind === 102 /* ImportKeyword */) { + return checkImportCallExpression(node); + } + case 214 /* NewExpression */: + return checkCallExpression(node, checkMode); + case 215 /* TaggedTemplateExpression */: + return checkTaggedTemplateExpression(node); + case 217 /* ParenthesizedExpression */: + return checkParenthesizedExpression(node, checkMode); + case 231 /* ClassExpression */: + return checkClassExpression(node); + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode); + case 221 /* TypeOfExpression */: + return checkTypeOfExpression(node); + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + return checkAssertion(node, checkMode); + case 235 /* NonNullExpression */: + return checkNonNullAssertion(node); + case 233 /* ExpressionWithTypeArguments */: + return checkExpressionWithTypeArguments(node); + case 238 /* SatisfiesExpression */: + return checkSatisfiesExpression(node); + case 236 /* MetaProperty */: + return checkMetaProperty(node); + case 220 /* DeleteExpression */: + return checkDeleteExpression(node); + case 222 /* VoidExpression */: + return checkVoidExpression(node); + case 223 /* AwaitExpression */: + return checkAwaitExpression(node); + case 224 /* PrefixUnaryExpression */: + return checkPrefixUnaryExpression(node); + case 225 /* PostfixUnaryExpression */: + return checkPostfixUnaryExpression(node); + case 226 /* BinaryExpression */: + return checkBinaryExpression(node, checkMode); + case 227 /* ConditionalExpression */: + return checkConditionalExpression(node, checkMode); + case 230 /* SpreadElement */: + return checkSpreadExpression(node, checkMode); + case 232 /* OmittedExpression */: + return undefinedWideningType; + case 229 /* YieldExpression */: + return checkYieldExpression(node); + case 237 /* SyntheticExpression */: + return checkSyntheticExpression(node); + case 294 /* JsxExpression */: + return checkJsxExpression(node, checkMode); + case 284 /* JsxElement */: + return checkJsxElement(node, checkMode); + case 285 /* JsxSelfClosingElement */: + return checkJsxSelfClosingElement(node, checkMode); + case 288 /* JsxFragment */: + return checkJsxFragment(node); + case 292 /* JsxAttributes */: + return checkJsxAttributes(node, checkMode); + case 286 /* JsxOpeningElement */: + Debug.fail("Shouldn't ever directly check a JsxOpeningElement"); + } + return errorType; + } + function checkTypeParameter(node) { + checkGrammarModifiers(node); + if (node.expression) { + grammarErrorOnFirstToken(node.expression, Diagnostics.Type_expected); + } + checkSourceElement(node.constraint); + checkSourceElement(node.default); + const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); + getBaseConstraintOfType(typeParameter); + if (!hasNonCircularTypeParameterDefault(typeParameter)) { + error(node.default, Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter)); + } + const constraintType = getConstraintOfTypeParameter(typeParameter); + const defaultType = getDefaultFromTypeParameter(typeParameter); + if (constraintType && defaultType) { + checkTypeAssignableTo(defaultType, getTypeWithThisArgument(instantiateType(constraintType, makeUnaryTypeMapper(typeParameter, defaultType)), defaultType), node.default, Diagnostics.Type_0_does_not_satisfy_the_constraint_1); + } + checkNodeDeferred(node); + addLazyDiagnostic(() => checkTypeNameIsReserved(node.name, Diagnostics.Type_parameter_name_cannot_be_0)); + } + function checkTypeParameterDeferred(node) { + var _a, _b; + if (isInterfaceDeclaration(node.parent) || isClassLike(node.parent) || isTypeAliasDeclaration(node.parent)) { + const typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node)); + const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */); + if (modifiers) { + const symbol = getSymbolOfDeclaration(node.parent); + if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) { + error(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); + } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) { + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); + const source = createMarkerType(symbol, typeParameter, modifiers === 16384 /* Out */ ? markerSubTypeForCheck : markerSuperTypeForCheck); + const target = createMarkerType(symbol, typeParameter, modifiers === 16384 /* Out */ ? markerSuperTypeForCheck : markerSubTypeForCheck); + const saveVarianceTypeParameter = typeParameter; + varianceTypeParameter = typeParameter; + checkTypeAssignableTo(source, target, node, Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation); + varianceTypeParameter = saveVarianceTypeParameter; + (_b = tracing) == null ? void 0 : _b.pop(); + } + } + } + } + function checkParameter(node) { + checkGrammarModifiers(node); + checkVariableLikeDeclaration(node); + const func = getContainingFunction(node); + if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) { + if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { + error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); + } + if (func.kind === 176 /* Constructor */ && isIdentifier(node.name) && node.name.escapedText === "constructor") { + error(node.name, Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name); + } + } + if (!node.initializer && isOptionalDeclaration(node) && isBindingPattern(node.name) && func.body) { + error(node, Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature); + } + if (node.name && isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) { + if (func.parameters.indexOf(node) !== 0) { + error(node, Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText); + } + if (func.kind === 176 /* Constructor */ || func.kind === 180 /* ConstructSignature */ || func.kind === 185 /* ConstructorType */) { + error(node, Diagnostics.A_constructor_cannot_have_a_this_parameter); + } + if (func.kind === 219 /* ArrowFunction */) { + error(node, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + } + if (func.kind === 177 /* GetAccessor */ || func.kind === 178 /* SetAccessor */) { + error(node, Diagnostics.get_and_set_accessors_cannot_declare_this_parameters); + } + } + if (node.dotDotDotToken && !isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) { + error(node, Diagnostics.A_rest_parameter_must_be_of_an_array_type); + } + } + function checkTypePredicate(node) { + const parent = getTypePredicateParent(node); + if (!parent) { + error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods); + return; + } + const signature = getSignatureFromDeclaration(parent); + const typePredicate = getTypePredicateOfSignature(signature); + if (!typePredicate) { + return; + } + checkSourceElement(node.type); + const { parameterName } = node; + if (typePredicate.kind === 0 /* This */ || typePredicate.kind === 2 /* AssertsThis */) { + getTypeFromThisTypeNode(parameterName); + } else { + if (typePredicate.parameterIndex >= 0) { + if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { + error(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); + } else { + if (typePredicate.type) { + const leadingError = () => chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type + ); + checkTypeAssignableTo( + typePredicate.type, + getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), + node.type, + /*headMessage*/ + void 0, + leadingError + ); + } + } + } else if (parameterName) { + let hasReportedError = false; + for (const { name } of parent.parameters) { + if (isBindingPattern(name) && checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, parameterName, typePredicate.parameterName)) { + hasReportedError = true; + break; + } + } + if (!hasReportedError) { + error(node.parameterName, Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName); + } + } + } + } + function getTypePredicateParent(node) { + switch (node.parent.kind) { + case 219 /* ArrowFunction */: + case 179 /* CallSignature */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 184 /* FunctionType */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + const parent = node.parent; + if (node === parent.type) { + return parent; + } + } + } + function checkIfTypePredicateVariableIsDeclaredInBindingPattern(pattern, predicateVariableNode, predicateVariableName) { + for (const element of pattern.elements) { + if (isOmittedExpression(element)) { + continue; + } + const name = element.name; + if (name.kind === 80 /* Identifier */ && name.escapedText === predicateVariableName) { + error(predicateVariableNode, Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName); + return true; + } else if (name.kind === 207 /* ArrayBindingPattern */ || name.kind === 206 /* ObjectBindingPattern */) { + if (checkIfTypePredicateVariableIsDeclaredInBindingPattern( + name, + predicateVariableNode, + predicateVariableName + )) { + return true; + } + } + } + } + function checkSignatureDeclaration(node) { + if (node.kind === 181 /* IndexSignature */) { + checkGrammarIndexSignature(node); + } else if (node.kind === 184 /* FunctionType */ || node.kind === 262 /* FunctionDeclaration */ || node.kind === 185 /* ConstructorType */ || node.kind === 179 /* CallSignature */ || node.kind === 176 /* Constructor */ || node.kind === 180 /* ConstructSignature */) { + checkGrammarFunctionLikeDeclaration(node); + } + const functionFlags = getFunctionFlags(node); + if (!(functionFlags & 4 /* Invalid */)) { + if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) { + checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */); + } + if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) { + checkExternalEmitHelpers(node, 64 /* Awaiter */); + } + if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) { + checkExternalEmitHelpers(node, 128 /* Generator */); + } + } + checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); + checkUnmatchedJSDocParameters(node); + forEach(node.parameters, checkParameter); + if (node.type) { + checkSourceElement(node.type); + } + addLazyDiagnostic(checkSignatureDeclarationDiagnostics); + function checkSignatureDeclarationDiagnostics() { + checkCollisionWithArgumentsInGeneratedCode(node); + let returnTypeNode = getEffectiveReturnTypeNode(node); + let returnTypeErrorLocation = returnTypeNode; + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) { + const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression)); + if (signature && signature.declaration) { + returnTypeNode = getEffectiveReturnTypeNode(signature.declaration); + returnTypeErrorLocation = typeTag.typeExpression.type; + } + } + } + if (noImplicitAny && !returnTypeNode) { + switch (node.kind) { + case 180 /* ConstructSignature */: + error(node, Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + break; + case 179 /* CallSignature */: + error(node, Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type); + break; + } + } + if (returnTypeNode && returnTypeErrorLocation) { + const functionFlags2 = getFunctionFlags(node); + if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) { + const returnType = getTypeFromTypeNode(returnTypeNode); + if (returnType === voidType) { + error(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation); + } else { + checkGeneratorInstantiationAssignabilityToReturnType(returnType, functionFlags2, returnTypeErrorLocation); + } + } else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) { + checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation); + } + } + if (node.kind !== 181 /* IndexSignature */ && node.kind !== 317 /* JSDocFunctionType */) { + registerForUnusedIdentifiersCheck(node); + } + } + } + function checkGeneratorInstantiationAssignabilityToReturnType(returnType, functionFlags, errorNode) { + const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags & 2 /* Async */) !== 0) || anyType; + const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags & 2 /* Async */) !== 0) || generatorYieldType; + const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags & 2 /* Async */) !== 0) || unknownType; + const generatorInstantiation = createGeneratorType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags & 2 /* Async */)); + return checkTypeAssignableTo(generatorInstantiation, returnType, errorNode); + } + function checkClassForDuplicateDeclarations(node) { + const instanceNames = /* @__PURE__ */ new Map(); + const staticNames = /* @__PURE__ */ new Map(); + const privateIdentifiers = /* @__PURE__ */ new Map(); + for (const member of node.members) { + if (member.kind === 176 /* Constructor */) { + for (const param of member.parameters) { + if (isParameterPropertyDeclaration(param, member) && !isBindingPattern(param.name)) { + addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */); + } + } + } else { + const isStaticMember = isStatic(member); + const name = member.name; + if (!name) { + continue; + } + const isPrivate = isPrivateIdentifier(name); + const privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0; + const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames; + const memberName = name && getEffectivePropertyNameForPropertyNameNode(name); + if (memberName) { + switch (member.kind) { + case 177 /* GetAccessor */: + addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags); + break; + case 178 /* SetAccessor */: + addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags); + break; + case 172 /* PropertyDeclaration */: + addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags); + break; + case 174 /* MethodDeclaration */: + addName(names, name, memberName, 8 /* Method */ | privateStaticFlags); + break; + } + } + } + } + function addName(names, location, name, meaning) { + const prev = names.get(name); + if (prev) { + if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) { + error(location, Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, getTextOfNode(location)); + } else { + const prevIsMethod = !!(prev & 8 /* Method */); + const isMethod = !!(meaning & 8 /* Method */); + if (prevIsMethod || isMethod) { + if (prevIsMethod !== isMethod) { + error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + } + } else if (prev & meaning & ~16 /* PrivateStatic */) { + error(location, Diagnostics.Duplicate_identifier_0, getTextOfNode(location)); + } else { + names.set(name, prev | meaning); + } + } + } else { + names.set(name, meaning); + } + } + } + function checkClassForStaticPropertyNameConflicts(node) { + for (const member of node.members) { + const memberNameNode = member.name; + const isStaticMember = isStatic(member); + if (isStaticMember && memberNameNode) { + const memberName = getEffectivePropertyNameForPropertyNameNode(memberNameNode); + switch (memberName) { + case "name": + case "length": + case "caller": + case "arguments": + if (useDefineForClassFields) { + break; + } + case "prototype": + const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; + const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); + error(memberNameNode, message, memberName, className); + break; + } + } + } + } + function checkObjectTypeForDuplicateDeclarations(node) { + const names = /* @__PURE__ */ new Map(); + for (const member of node.members) { + if (member.kind === 171 /* PropertySignature */) { + let memberName; + const name = member.name; + switch (name.kind) { + case 11 /* StringLiteral */: + case 9 /* NumericLiteral */: + memberName = name.text; + break; + case 80 /* Identifier */: + memberName = idText(name); + break; + default: + continue; + } + if (names.get(memberName)) { + error(getNameOfDeclaration(member.symbol.valueDeclaration), Diagnostics.Duplicate_identifier_0, memberName); + error(member.name, Diagnostics.Duplicate_identifier_0, memberName); + } else { + names.set(memberName, true); + } + } + } + } + function checkTypeForDuplicateIndexSignatures(node) { + if (node.kind === 264 /* InterfaceDeclaration */) { + const nodeSymbol = getSymbolOfDeclaration(node); + if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) { + return; + } + } + const indexSymbol = getIndexSymbol(getSymbolOfDeclaration(node)); + if (indexSymbol == null ? void 0 : indexSymbol.declarations) { + const indexSignatureMap = /* @__PURE__ */ new Map(); + for (const declaration of indexSymbol.declarations) { + if (declaration.parameters.length === 1 && declaration.parameters[0].type) { + forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => { + const entry = indexSignatureMap.get(getTypeId(type)); + if (entry) { + entry.declarations.push(declaration); + } else { + indexSignatureMap.set(getTypeId(type), { type, declarations: [declaration] }); + } + }); + } + } + indexSignatureMap.forEach((entry) => { + if (entry.declarations.length > 1) { + for (const declaration of entry.declarations) { + error(declaration, Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type)); + } + } + }); + } + } + function checkPropertyDeclaration(node) { + if (!checkGrammarModifiers(node) && !checkGrammarProperty(node)) checkGrammarComputedPropertyName(node.name); + checkVariableLikeDeclaration(node); + setNodeLinksForPrivateIdentifierScope(node); + if (hasSyntacticModifier(node, 64 /* Abstract */) && node.kind === 172 /* PropertyDeclaration */ && node.initializer) { + error(node, Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, declarationNameToString(node.name)); + } + } + function checkPropertySignature(node) { + if (isPrivateIdentifier(node.name)) { + error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + } + return checkPropertyDeclaration(node); + } + function checkMethodDeclaration(node) { + if (!checkGrammarMethod(node)) checkGrammarComputedPropertyName(node.name); + if (isMethodDeclaration(node) && node.asteriskToken && isIdentifier(node.name) && idText(node.name) === "constructor") { + error(node.name, Diagnostics.Class_constructor_may_not_be_a_generator); + } + checkFunctionOrMethodDeclaration(node); + if (hasSyntacticModifier(node, 64 /* Abstract */) && node.kind === 174 /* MethodDeclaration */ && node.body) { + error(node, Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, declarationNameToString(node.name)); + } + if (isPrivateIdentifier(node.name) && !getContainingClass(node)) { + error(node, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + } + setNodeLinksForPrivateIdentifierScope(node); + } + function setNodeLinksForPrivateIdentifierScope(node) { + if (isPrivateIdentifier(node.name)) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { + for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { + getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; + } + if (isClassExpression(node.parent)) { + const enclosingIterationStatement = getEnclosingIterationStatement(node.parent); + if (enclosingIterationStatement) { + getNodeLinks(node.name).flags |= 32768 /* BlockScopedBindingInLoop */; + getNodeLinks(enclosingIterationStatement).flags |= 4096 /* LoopWithCapturedBlockScopedBinding */; + } + } + } + } + } + function checkClassStaticBlockDeclaration(node) { + checkGrammarModifiers(node); + forEachChild(node, checkSourceElement); + } + function checkConstructorDeclaration(node) { + checkSignatureDeclaration(node); + if (!checkGrammarConstructorTypeParameters(node)) checkGrammarConstructorTypeAnnotation(node); + checkSourceElement(node.body); + const symbol = getSymbolOfDeclaration(node); + const firstDeclaration = getDeclarationOfKind(symbol, node.kind); + if (node === firstDeclaration) { + checkFunctionOrConstructorSymbol(symbol); + } + if (nodeIsMissing(node.body)) { + return; + } + addLazyDiagnostic(checkConstructorDeclarationDiagnostics); + return; + function isInstancePropertyWithInitializerOrPrivateIdentifierProperty(n) { + if (isPrivateIdentifierClassElementDeclaration(n)) { + return true; + } + return n.kind === 172 /* PropertyDeclaration */ && !isStatic(n) && !!n.initializer; + } + function checkConstructorDeclarationDiagnostics() { + const containingClassDecl = node.parent; + if (getClassExtendsHeritageElement(containingClassDecl)) { + captureLexicalThis(node.parent, containingClassDecl); + const classExtendsNull = classDeclarationExtendsNull(containingClassDecl); + const superCall = findFirstSuperCall(node.body); + if (superCall) { + if (classExtendsNull) { + error(superCall, Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null); + } + const superCallShouldBeRootLevel = !emitStandardClassFields && (some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) || some(node.parameters, (p) => hasSyntacticModifier(p, 31 /* ParameterPropertyModifier */))); + if (superCallShouldBeRootLevel) { + if (!superCallIsRootLevelInConstructor(superCall, node.body)) { + error(superCall, Diagnostics.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); + } else { + let superCallStatement; + for (const statement of node.body.statements) { + if (isExpressionStatement(statement) && isSuperCall(skipOuterExpressions(statement.expression))) { + superCallStatement = statement; + break; + } + if (nodeImmediatelyReferencesSuperOrThis(statement)) { + break; + } + } + if (superCallStatement === void 0) { + error(node, Diagnostics.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); + } + } + } + } else if (!classExtendsNull) { + error(node, Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call); + } + } + } + } + function superCallIsRootLevelInConstructor(superCall, body) { + const superCallParent = walkUpParenthesizedExpressions(superCall.parent); + return isExpressionStatement(superCallParent) && superCallParent.parent === body; + } + function nodeImmediatelyReferencesSuperOrThis(node) { + if (node.kind === 108 /* SuperKeyword */ || node.kind === 110 /* ThisKeyword */) { + return true; + } + if (isThisContainerOrFunctionBlock(node)) { + return false; + } + return !!forEachChild(node, nodeImmediatelyReferencesSuperOrThis); + } + function checkAccessorDeclaration(node) { + if (isIdentifier(node.name) && idText(node.name) === "constructor" && isClassLike(node.parent)) { + error(node.name, Diagnostics.Class_constructor_may_not_be_an_accessor); + } + addLazyDiagnostic(checkAccessorDeclarationDiagnostics); + checkSourceElement(node.body); + setNodeLinksForPrivateIdentifierScope(node); + function checkAccessorDeclarationDiagnostics() { + if (!checkGrammarFunctionLikeDeclaration(node) && !checkGrammarAccessor(node)) checkGrammarComputedPropertyName(node.name); + checkDecorators(node); + checkSignatureDeclaration(node); + if (node.kind === 177 /* GetAccessor */) { + if (!(node.flags & 33554432 /* Ambient */) && nodeIsPresent(node.body) && node.flags & 512 /* HasImplicitReturn */) { + if (!(node.flags & 1024 /* HasExplicitReturn */)) { + error(node.name, Diagnostics.A_get_accessor_must_return_a_value); + } + } + } + if (node.name.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.name); + } + if (hasBindableName(node)) { + const symbol = getSymbolOfDeclaration(node); + const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); + const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); + if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) { + getNodeLinks(getter).flags |= 1 /* TypeChecked */; + const getterFlags = getEffectiveModifierFlags(getter); + const setterFlags = getEffectiveModifierFlags(setter); + if ((getterFlags & 64 /* Abstract */) !== (setterFlags & 64 /* Abstract */)) { + error(getter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + error(setter.name, Diagnostics.Accessors_must_both_be_abstract_or_non_abstract); + } + if (getterFlags & 4 /* Protected */ && !(setterFlags & (4 /* Protected */ | 2 /* Private */)) || getterFlags & 2 /* Private */ && !(setterFlags & 2 /* Private */)) { + error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter); + } + } + } + const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node)); + if (node.kind === 177 /* GetAccessor */) { + checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType); + } + } + } + function checkMissingDeclaration(node) { + checkDecorators(node); + } + function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) { + if (node.typeArguments && index < node.typeArguments.length) { + return getTypeFromTypeNode(node.typeArguments[index]); + } + return getEffectiveTypeArguments(node, typeParameters)[index]; + } + function getEffectiveTypeArguments(node, typeParameters) { + return fillMissingTypeArguments(map(node.typeArguments, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isInJSFile(node)); + } + function checkTypeArgumentConstraints(node, typeParameters) { + let typeArguments; + let mapper; + let result = true; + for (let i = 0; i < typeParameters.length; i++) { + const constraint = getConstraintOfTypeParameter(typeParameters[i]); + if (constraint) { + if (!typeArguments) { + typeArguments = getEffectiveTypeArguments(node, typeParameters); + mapper = createTypeMapper(typeParameters, typeArguments); + } + result = result && checkTypeAssignableTo( + typeArguments[i], + instantiateType(constraint, mapper), + node.typeArguments[i], + Diagnostics.Type_0_does_not_satisfy_the_constraint_1 + ); + } + } + return result; + } + function getTypeParametersForTypeAndSymbol(type, symbol) { + if (!isErrorType(type)) { + return symbol.flags & 524288 /* TypeAlias */ && getSymbolLinks(symbol).typeParameters || (getObjectFlags(type) & 4 /* Reference */ ? type.target.localTypeParameters : void 0); + } + return void 0; + } + function getTypeParametersForTypeReferenceOrImport(node) { + const type = getTypeFromTypeNode(node); + if (!isErrorType(type)) { + const symbol = getNodeLinks(node).resolvedSymbol; + if (symbol) { + return getTypeParametersForTypeAndSymbol(type, symbol); + } + } + return void 0; + } + function checkTypeReferenceNode(node) { + checkGrammarTypeArguments(node, node.typeArguments); + if (node.kind === 183 /* TypeReference */ && !isInJSFile(node) && !isInJSDoc(node) && node.typeArguments && node.typeName.end !== node.typeArguments.pos) { + const sourceFile = getSourceFileOfNode(node); + if (scanTokenAtPosition(sourceFile, node.typeName.end) === 25 /* DotToken */) { + grammarErrorAtPos(node, skipTrivia(sourceFile.text, node.typeName.end), 1, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); + } + } + forEach(node.typeArguments, checkSourceElement); + checkTypeReferenceOrImport(node); + } + function checkTypeReferenceOrImport(node) { + const type = getTypeFromTypeNode(node); + if (!isErrorType(type)) { + if (node.typeArguments) { + addLazyDiagnostic(() => { + const typeParameters = getTypeParametersForTypeReferenceOrImport(node); + if (typeParameters) { + checkTypeArgumentConstraints(node, typeParameters); + } + }); + } + const symbol = getNodeLinks(node).resolvedSymbol; + if (symbol) { + if (some(symbol.declarations, (d) => isTypeDeclaration(d) && !!(d.flags & 536870912 /* Deprecated */))) { + addDeprecatedSuggestion( + getDeprecatedSuggestionNode(node), + symbol.declarations, + symbol.escapedName + ); + } + } + } + } + function getTypeArgumentConstraint(node) { + const typeReferenceNode = tryCast(node.parent, isTypeReferenceType); + if (!typeReferenceNode) return void 0; + const typeParameters = getTypeParametersForTypeReferenceOrImport(typeReferenceNode); + if (!typeParameters) return void 0; + const constraint = getConstraintOfTypeParameter(typeParameters[typeReferenceNode.typeArguments.indexOf(node)]); + return constraint && instantiateType(constraint, createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReferenceNode, typeParameters))); + } + function checkTypeQuery(node) { + getTypeFromTypeQueryNode(node); + } + function checkTypeLiteral(node) { + forEach(node.members, checkSourceElement); + addLazyDiagnostic(checkTypeLiteralDiagnostics); + function checkTypeLiteralDiagnostics() { + const type = getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node); + checkIndexConstraints(type, type.symbol); + checkTypeForDuplicateIndexSignatures(node); + checkObjectTypeForDuplicateDeclarations(node); + } + } + function checkArrayType(node) { + checkSourceElement(node.elementType); + } + function checkTupleType(node) { + let seenOptionalElement = false; + let seenRestElement = false; + for (const e of node.elements) { + let flags = getTupleElementFlags(e); + if (flags & 8 /* Variadic */) { + const type = getTypeFromTypeNode(e.type); + if (!isArrayLikeType(type)) { + error(e, Diagnostics.A_rest_element_type_must_be_an_array_type); + break; + } + if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) { + flags |= 4 /* Rest */; + } + } + if (flags & 4 /* Rest */) { + if (seenRestElement) { + grammarErrorOnNode(e, Diagnostics.A_rest_element_cannot_follow_another_rest_element); + break; + } + seenRestElement = true; + } else if (flags & 2 /* Optional */) { + if (seenRestElement) { + grammarErrorOnNode(e, Diagnostics.An_optional_element_cannot_follow_a_rest_element); + break; + } + seenOptionalElement = true; + } else if (flags & 1 /* Required */ && seenOptionalElement) { + grammarErrorOnNode(e, Diagnostics.A_required_element_cannot_follow_an_optional_element); + break; + } + } + forEach(node.elements, checkSourceElement); + getTypeFromTypeNode(node); + } + function checkUnionOrIntersectionType(node) { + forEach(node.types, checkSourceElement); + getTypeFromTypeNode(node); + } + function checkIndexedAccessIndexType(type, accessNode) { + if (!(type.flags & 8388608 /* IndexedAccess */)) { + return type; + } + const objectType = type.objectType; + const indexType = type.indexType; + const objectIndexType = isGenericMappedType(objectType) && getMappedTypeNameTypeKind(objectType) === 2 /* Remapping */ ? getIndexTypeForMappedType(objectType, 0 /* None */) : getIndexType(objectType, 0 /* None */); + const hasNumberIndexInfo = !!getIndexInfoOfType(objectType, numberType); + if (everyType(indexType, (t) => isTypeAssignableTo(t, objectIndexType) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) { + if (accessNode.kind === 212 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) { + error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType)); + } + return type; + } + if (isGenericObjectType(objectType)) { + const propertyName = getPropertyNameFromIndex(indexType, accessNode); + if (propertyName) { + const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName)); + if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) { + error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName)); + return errorType; + } + } + } + error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType)); + return errorType; + } + function checkIndexedAccessType(node) { + checkSourceElement(node.objectType); + checkSourceElement(node.indexType); + checkIndexedAccessIndexType(getTypeFromIndexedAccessTypeNode(node), node); + } + function checkMappedType(node) { + checkGrammarMappedType(node); + checkSourceElement(node.typeParameter); + checkSourceElement(node.nameType); + checkSourceElement(node.type); + if (!node.type) { + reportImplicitAny(node, anyType); + } + const type = getTypeFromMappedTypeNode(node); + const nameType = getNameTypeFromMappedType(type); + if (nameType) { + checkTypeAssignableTo(nameType, stringNumberSymbolType, node.nameType); + } else { + const constraintType = getConstraintTypeFromMappedType(type); + checkTypeAssignableTo(constraintType, stringNumberSymbolType, getEffectiveConstraintOfTypeParameter(node.typeParameter)); + } + } + function checkGrammarMappedType(node) { + var _a; + if ((_a = node.members) == null ? void 0 : _a.length) { + return grammarErrorOnNode(node.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); + } + } + function checkThisType(node) { + getTypeFromThisTypeNode(node); + } + function checkTypeOperator(node) { + checkGrammarTypeOperatorNode(node); + checkSourceElement(node.type); + } + function checkConditionalType(node) { + forEachChild(node, checkSourceElement); + } + function checkInferType(node) { + if (!findAncestor(node, (n) => n.parent && n.parent.kind === 194 /* ConditionalType */ && n.parent.extendsType === n)) { + grammarErrorOnNode(node, Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type); + } + checkSourceElement(node.typeParameter); + const symbol = getSymbolOfDeclaration(node.typeParameter); + if (symbol.declarations && symbol.declarations.length > 1) { + const links = getSymbolLinks(symbol); + if (!links.typeParametersChecked) { + links.typeParametersChecked = true; + const typeParameter = getDeclaredTypeOfTypeParameter(symbol); + const declarations = getDeclarationsOfKind(symbol, 168 /* TypeParameter */); + if (!areTypeParametersIdentical(declarations, [typeParameter], (decl) => [decl])) { + const name = symbolToString(symbol); + for (const declaration of declarations) { + error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_constraints, name); + } + } + } + } + registerForUnusedIdentifiersCheck(node); + } + function checkTemplateLiteralType(node) { + for (const span of node.templateSpans) { + checkSourceElement(span.type); + const type = getTypeFromTypeNode(span.type); + checkTypeAssignableTo(type, templateConstraintType, span.type); + } + getTypeFromTypeNode(node); + } + function checkImportType(node) { + checkSourceElement(node.argument); + if (node.attributes) { + getResolutionModeOverride(node.attributes, grammarErrorOnNode); + } + checkTypeReferenceOrImport(node); + } + function checkNamedTupleMember(node) { + if (node.dotDotDotToken && node.questionToken) { + grammarErrorOnNode(node, Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest); + } + if (node.type.kind === 190 /* OptionalType */) { + grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type); + } + if (node.type.kind === 191 /* RestType */) { + grammarErrorOnNode(node.type, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type); + } + checkSourceElement(node.type); + getTypeFromTypeNode(node); + } + function isPrivateWithinAmbient(node) { + return (hasEffectiveModifier(node, 2 /* Private */) || isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 33554432 /* Ambient */); + } + function getEffectiveDeclarationFlags(n, flagsToCheck) { + let flags = getCombinedModifierFlagsCached(n); + if (n.parent.kind !== 264 /* InterfaceDeclaration */ && n.parent.kind !== 263 /* ClassDeclaration */ && n.parent.kind !== 231 /* ClassExpression */ && n.flags & 33554432 /* Ambient */) { + const container = getEnclosingContainer(n); + if (container && container.flags & 128 /* ExportContext */ && !(flags & 128 /* Ambient */) && !(isModuleBlock(n.parent) && isModuleDeclaration(n.parent.parent) && isGlobalScopeAugmentation(n.parent.parent))) { + flags |= 32 /* Export */; + } + flags |= 128 /* Ambient */; + } + return flags & flagsToCheck; + } + function checkFunctionOrConstructorSymbol(symbol) { + addLazyDiagnostic(() => checkFunctionOrConstructorSymbolWorker(symbol)); + } + function checkFunctionOrConstructorSymbolWorker(symbol) { + function getCanonicalOverload(overloads, implementation) { + const implementationSharesContainerWithFirstOverload = implementation !== void 0 && implementation.parent === overloads[0].parent; + return implementationSharesContainerWithFirstOverload ? implementation : overloads[0]; + } + function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck2, someOverloadFlags, allOverloadFlags) { + const someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags; + if (someButNotAllOverloadFlags !== 0) { + const canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck2); + forEach(overloads, (o) => { + const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; + if (deviation & 32 /* Export */) { + error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); + } else if (deviation & 128 /* Ambient */) { + error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); + } else if (deviation & (2 /* Private */ | 4 /* Protected */)) { + error(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); + } else if (deviation & 64 /* Abstract */) { + error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); + } + }); + } + } + function checkQuestionTokenAgreementBetweenOverloads(overloads, implementation, someHaveQuestionToken2, allHaveQuestionToken2) { + if (someHaveQuestionToken2 !== allHaveQuestionToken2) { + const canonicalHasQuestionToken = hasQuestionToken(getCanonicalOverload(overloads, implementation)); + forEach(overloads, (o) => { + const deviation = hasQuestionToken(o) !== canonicalHasQuestionToken; + if (deviation) { + error(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_optional_or_required); + } + }); + } + } + const flagsToCheck = 32 /* Export */ | 128 /* Ambient */ | 2 /* Private */ | 4 /* Protected */ | 64 /* Abstract */; + let someNodeFlags = 0 /* None */; + let allNodeFlags = flagsToCheck; + let someHaveQuestionToken = false; + let allHaveQuestionToken = true; + let hasOverloads = false; + let bodyDeclaration; + let lastSeenNonAmbientDeclaration; + let previousDeclaration; + const declarations = symbol.declarations; + const isConstructor = (symbol.flags & 16384 /* Constructor */) !== 0; + function reportImplementationExpectedError(node) { + if (node.name && nodeIsMissing(node.name)) { + return; + } + let seen = false; + const subsequentNode = forEachChild(node.parent, (c) => { + if (seen) { + return c; + } else { + seen = c === node; + } + }); + if (subsequentNode && subsequentNode.pos === node.end) { + if (subsequentNode.kind === node.kind) { + const errorNode2 = subsequentNode.name || subsequentNode; + const subsequentName = subsequentNode.name; + if (node.name && subsequentName && // both are private identifiers + (isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names + isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same. + isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) { + const reportError = (node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode); + if (reportError) { + const diagnostic = isStatic(node) ? Diagnostics.Function_overload_must_be_static : Diagnostics.Function_overload_must_not_be_static; + error(errorNode2, diagnostic); + } + return; + } + if (nodeIsPresent(subsequentNode.body)) { + error(errorNode2, Diagnostics.Function_implementation_name_must_be_0, declarationNameToString(node.name)); + return; + } + } + } + const errorNode = node.name || node; + if (isConstructor) { + error(errorNode, Diagnostics.Constructor_implementation_is_missing); + } else { + if (hasSyntacticModifier(node, 64 /* Abstract */)) { + error(errorNode, Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive); + } else { + error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); + } + } + } + let duplicateFunctionDeclaration = false; + let multipleConstructorImplementation = false; + let hasNonAmbientClass = false; + const functionDeclarations = []; + if (declarations) { + for (const current of declarations) { + const node = current; + const inAmbientContext = node.flags & 33554432 /* Ambient */; + const inAmbientContextOrInterface = node.parent && (node.parent.kind === 264 /* InterfaceDeclaration */ || node.parent.kind === 187 /* TypeLiteral */) || inAmbientContext; + if (inAmbientContextOrInterface) { + previousDeclaration = void 0; + } + if ((node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */) && !inAmbientContext) { + hasNonAmbientClass = true; + } + if (node.kind === 262 /* FunctionDeclaration */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 176 /* Constructor */) { + functionDeclarations.push(node); + const currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck); + someNodeFlags |= currentNodeFlags; + allNodeFlags &= currentNodeFlags; + someHaveQuestionToken = someHaveQuestionToken || hasQuestionToken(node); + allHaveQuestionToken = allHaveQuestionToken && hasQuestionToken(node); + const bodyIsPresent = nodeIsPresent(node.body); + if (bodyIsPresent && bodyDeclaration) { + if (isConstructor) { + multipleConstructorImplementation = true; + } else { + duplicateFunctionDeclaration = true; + } + } else if ((previousDeclaration == null ? void 0 : previousDeclaration.parent) === node.parent && previousDeclaration.end !== node.pos) { + reportImplementationExpectedError(previousDeclaration); + } + if (bodyIsPresent) { + if (!bodyDeclaration) { + bodyDeclaration = node; + } + } else { + hasOverloads = true; + } + previousDeclaration = node; + if (!inAmbientContextOrInterface) { + lastSeenNonAmbientDeclaration = node; + } + } + if (isInJSFile(current) && isFunctionLike(current) && current.jsDoc) { + hasOverloads = length(getJSDocOverloadTags(current)) > 0; + } + } + } + if (multipleConstructorImplementation) { + forEach(functionDeclarations, (declaration) => { + error(declaration, Diagnostics.Multiple_constructor_implementations_are_not_allowed); + }); + } + if (duplicateFunctionDeclaration) { + forEach(functionDeclarations, (declaration) => { + error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Duplicate_function_implementation); + }); + } + if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) { + const relatedDiagnostics = filter(declarations, (d) => d.kind === 263 /* ClassDeclaration */).map((d) => createDiagnosticForNode(d, Diagnostics.Consider_adding_a_declare_modifier_to_this_class)); + forEach(declarations, (declaration) => { + const diagnostic = declaration.kind === 263 /* ClassDeclaration */ ? Diagnostics.Class_declaration_cannot_implement_overload_list_for_0 : declaration.kind === 262 /* FunctionDeclaration */ ? Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient : void 0; + if (diagnostic) { + addRelatedInfo( + error(getNameOfDeclaration(declaration) || declaration, diagnostic, symbolName(symbol)), + ...relatedDiagnostics + ); + } + }); + } + if (lastSeenNonAmbientDeclaration && !lastSeenNonAmbientDeclaration.body && !hasSyntacticModifier(lastSeenNonAmbientDeclaration, 64 /* Abstract */) && !lastSeenNonAmbientDeclaration.questionToken) { + reportImplementationExpectedError(lastSeenNonAmbientDeclaration); + } + if (hasOverloads) { + if (declarations) { + checkFlagAgreementBetweenOverloads(declarations, bodyDeclaration, flagsToCheck, someNodeFlags, allNodeFlags); + checkQuestionTokenAgreementBetweenOverloads(declarations, bodyDeclaration, someHaveQuestionToken, allHaveQuestionToken); + } + if (bodyDeclaration) { + const signatures = getSignaturesOfSymbol(symbol); + const bodySignature = getSignatureFromDeclaration(bodyDeclaration); + for (const signature of signatures) { + if (!isImplementationCompatibleWithOverload(bodySignature, signature)) { + const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration; + addRelatedInfo( + error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), + createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here) + ); + break; + } + } + } + } + } + function checkExportsOnMergedDeclarations(node) { + addLazyDiagnostic(() => checkExportsOnMergedDeclarationsWorker(node)); + } + function checkExportsOnMergedDeclarationsWorker(node) { + let symbol = node.localSymbol; + if (!symbol) { + symbol = getSymbolOfDeclaration(node); + if (!symbol.exportSymbol) { + return; + } + } + if (getDeclarationOfKind(symbol, node.kind) !== node) { + return; + } + let exportedDeclarationSpaces = 0 /* None */; + let nonExportedDeclarationSpaces = 0 /* None */; + let defaultExportedDeclarationSpaces = 0 /* None */; + for (const d of symbol.declarations) { + const declarationSpaces = getDeclarationSpaces(d); + const effectiveDeclarationFlags = getEffectiveDeclarationFlags(d, 32 /* Export */ | 2048 /* Default */); + if (effectiveDeclarationFlags & 32 /* Export */) { + if (effectiveDeclarationFlags & 2048 /* Default */) { + defaultExportedDeclarationSpaces |= declarationSpaces; + } else { + exportedDeclarationSpaces |= declarationSpaces; + } + } else { + nonExportedDeclarationSpaces |= declarationSpaces; + } + } + const nonDefaultExportedDeclarationSpaces = exportedDeclarationSpaces | nonExportedDeclarationSpaces; + const commonDeclarationSpacesForExportsAndLocals = exportedDeclarationSpaces & nonExportedDeclarationSpaces; + const commonDeclarationSpacesForDefaultAndNonDefault = defaultExportedDeclarationSpaces & nonDefaultExportedDeclarationSpaces; + if (commonDeclarationSpacesForExportsAndLocals || commonDeclarationSpacesForDefaultAndNonDefault) { + for (const d of symbol.declarations) { + const declarationSpaces = getDeclarationSpaces(d); + const name = getNameOfDeclaration(d); + if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) { + error(name, Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, declarationNameToString(name)); + } else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) { + error(name, Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, declarationNameToString(name)); + } + } + } + function getDeclarationSpaces(decl) { + let d = decl; + switch (d.kind) { + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + return 2 /* ExportType */; + case 267 /* ModuleDeclaration */: + return isAmbientModule(d) || getModuleInstanceState(d) !== 0 /* NonInstantiated */ ? 4 /* ExportNamespace */ | 1 /* ExportValue */ : 4 /* ExportNamespace */; + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 306 /* EnumMember */: + return 2 /* ExportType */ | 1 /* ExportValue */; + case 307 /* SourceFile */: + return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */; + case 277 /* ExportAssignment */: + case 226 /* BinaryExpression */: + const node2 = d; + const expression = isExportAssignment(node2) ? node2.expression : node2.right; + if (!isEntityNameExpression(expression)) { + return 1 /* ExportValue */; + } + d = expression; + case 271 /* ImportEqualsDeclaration */: + case 274 /* NamespaceImport */: + case 273 /* ImportClause */: + let result = 0 /* None */; + const target = resolveAlias(getSymbolOfDeclaration(d)); + forEach(target.declarations, (d2) => { + result |= getDeclarationSpaces(d2); + }); + return result; + case 260 /* VariableDeclaration */: + case 208 /* BindingElement */: + case 262 /* FunctionDeclaration */: + case 276 /* ImportSpecifier */: + case 80 /* Identifier */: + return 1 /* ExportValue */; + case 173 /* MethodSignature */: + case 171 /* PropertySignature */: + return 2 /* ExportType */; + default: + return Debug.failBadSyntaxKind(d); + } + } + } + function getAwaitedTypeOfPromise(type, errorNode, diagnosticMessage, ...args) { + const promisedType = getPromisedTypeOfPromise(type, errorNode); + return promisedType && getAwaitedType(promisedType, errorNode, diagnosticMessage, ...args); + } + function getPromisedTypeOfPromise(type, errorNode, thisTypeForErrorOut) { + if (isTypeAny(type)) { + return void 0; + } + const typeAsPromise = type; + if (typeAsPromise.promisedTypeOfPromise) { + return typeAsPromise.promisedTypeOfPromise; + } + if (isReferenceToType(type, getGlobalPromiseType( + /*reportErrors*/ + false + ))) { + return typeAsPromise.promisedTypeOfPromise = getTypeArguments(type)[0]; + } + if (allTypesAssignableToKind(getBaseConstraintOrType(type), 402784252 /* Primitive */ | 131072 /* Never */)) { + return void 0; + } + const thenFunction = getTypeOfPropertyOfType(type, "then"); + if (isTypeAny(thenFunction)) { + return void 0; + } + const thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : emptyArray; + if (thenSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.A_promise_must_have_a_then_method); + } + return void 0; + } + let thisTypeForError; + let candidates; + for (const thenSignature of thenSignatures) { + const thisType = getThisTypeOfSignature(thenSignature); + if (thisType && thisType !== voidType && !isTypeRelatedTo(type, thisType, subtypeRelation)) { + thisTypeForError = thisType; + } else { + candidates = append(candidates, thenSignature); + } + } + if (!candidates) { + Debug.assertIsDefined(thisTypeForError); + if (thisTypeForErrorOut) { + thisTypeForErrorOut.value = thisTypeForError; + } + if (errorNode) { + error(errorNode, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForError)); + } + return void 0; + } + const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(candidates, getTypeOfFirstParameterOfSignature)), 2097152 /* NEUndefinedOrNull */); + if (isTypeAny(onfulfilledParameterType)) { + return void 0; + } + const onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */); + if (onfulfilledParameterSignatures.length === 0) { + if (errorNode) { + error(errorNode, Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback); + } + return void 0; + } + return typeAsPromise.promisedTypeOfPromise = getUnionType(map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), 2 /* Subtype */); + } + function checkAwaitedType(type, withAlias, errorNode, diagnosticMessage, ...args) { + const awaitedType = withAlias ? getAwaitedType(type, errorNode, diagnosticMessage, ...args) : getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args); + return awaitedType || errorType; + } + function isThenableType(type) { + if (allTypesAssignableToKind(getBaseConstraintOrType(type), 402784252 /* Primitive */ | 131072 /* Never */)) { + return false; + } + const thenFunction = getTypeOfPropertyOfType(type, "then"); + return !!thenFunction && getSignaturesOfType(getTypeWithFacts(thenFunction, 2097152 /* NEUndefinedOrNull */), 0 /* Call */).length > 0; + } + function isAwaitedTypeInstantiation(type) { + var _a; + if (type.flags & 16777216 /* Conditional */) { + const awaitedSymbol = getGlobalAwaitedSymbol( + /*reportErrors*/ + false + ); + return !!awaitedSymbol && type.aliasSymbol === awaitedSymbol && ((_a = type.aliasTypeArguments) == null ? void 0 : _a.length) === 1; + } + return false; + } + function unwrapAwaitedType(type) { + return type.flags & 1048576 /* Union */ ? mapType(type, unwrapAwaitedType) : isAwaitedTypeInstantiation(type) ? type.aliasTypeArguments[0] : type; + } + function isAwaitedTypeNeeded(type) { + if (isTypeAny(type) || isAwaitedTypeInstantiation(type)) { + return false; + } + if (isGenericObjectType(type)) { + const baseConstraint = getBaseConstraintOfType(type); + if (baseConstraint ? baseConstraint.flags & 3 /* AnyOrUnknown */ || isEmptyObjectType(baseConstraint) || someType(baseConstraint, isThenableType) : maybeTypeOfKind(type, 8650752 /* TypeVariable */)) { + return true; + } + } + return false; + } + function tryCreateAwaitedType(type) { + const awaitedSymbol = getGlobalAwaitedSymbol( + /*reportErrors*/ + true + ); + if (awaitedSymbol) { + return getTypeAliasInstantiation(awaitedSymbol, [unwrapAwaitedType(type)]); + } + return void 0; + } + function createAwaitedTypeIfNeeded(type) { + if (isAwaitedTypeNeeded(type)) { + return tryCreateAwaitedType(type) ?? type; + } + Debug.assert(isAwaitedTypeInstantiation(type) || getPromisedTypeOfPromise(type) === void 0, "type provided should not be a non-generic 'promise'-like."); + return type; + } + function getAwaitedType(type, errorNode, diagnosticMessage, ...args) { + const awaitedType = getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args); + return awaitedType && createAwaitedTypeIfNeeded(awaitedType); + } + function getAwaitedTypeNoAlias(type, errorNode, diagnosticMessage, ...args) { + if (isTypeAny(type)) { + return type; + } + if (isAwaitedTypeInstantiation(type)) { + return type; + } + const typeAsAwaitable = type; + if (typeAsAwaitable.awaitedTypeOfType) { + return typeAsAwaitable.awaitedTypeOfType; + } + if (type.flags & 1048576 /* Union */) { + if (awaitedTypeStack.lastIndexOf(type.id) >= 0) { + if (errorNode) { + error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + } + return void 0; + } + const mapper = errorNode ? (constituentType) => getAwaitedTypeNoAlias(constituentType, errorNode, diagnosticMessage, ...args) : getAwaitedTypeNoAlias; + awaitedTypeStack.push(type.id); + const mapped = mapType(type, mapper); + awaitedTypeStack.pop(); + return typeAsAwaitable.awaitedTypeOfType = mapped; + } + if (isAwaitedTypeNeeded(type)) { + return typeAsAwaitable.awaitedTypeOfType = type; + } + const thisTypeForErrorOut = { value: void 0 }; + const promisedType = getPromisedTypeOfPromise( + type, + /*errorNode*/ + void 0, + thisTypeForErrorOut + ); + if (promisedType) { + if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) { + if (errorNode) { + error(errorNode, Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method); + } + return void 0; + } + awaitedTypeStack.push(type.id); + const awaitedType = getAwaitedTypeNoAlias(promisedType, errorNode, diagnosticMessage, ...args); + awaitedTypeStack.pop(); + if (!awaitedType) { + return void 0; + } + return typeAsAwaitable.awaitedTypeOfType = awaitedType; + } + if (isThenableType(type)) { + if (errorNode) { + Debug.assertIsDefined(diagnosticMessage); + let chain; + if (thisTypeForErrorOut.value) { + chain = chainDiagnosticMessages(chain, Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1, typeToString(type), typeToString(thisTypeForErrorOut.value)); + } + chain = chainDiagnosticMessages(chain, diagnosticMessage, ...args); + diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(errorNode), errorNode, chain)); + } + return void 0; + } + return typeAsAwaitable.awaitedTypeOfType = type; + } + function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) { + const returnType = getTypeFromTypeNode(returnTypeNode); + if (languageVersion >= 2 /* ES2015 */) { + if (isErrorType(returnType)) { + return; + } + const globalPromiseType = getGlobalPromiseType( + /*reportErrors*/ + true + ); + if (globalPromiseType !== emptyGenericType && !isReferenceToType(returnType, globalPromiseType)) { + reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType)); + return; + } + } else { + markLinkedReferences(node, 5 /* AsyncFunction */); + if (isErrorType(returnType)) { + return; + } + const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode); + if (promiseConstructorName === void 0) { + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType)); + return; + } + const promiseConstructorSymbol = resolveEntityName( + promiseConstructorName, + 111551 /* Value */, + /*ignoreErrors*/ + true + ); + const promiseConstructorType = promiseConstructorSymbol ? getTypeOfSymbol(promiseConstructorSymbol) : errorType; + if (isErrorType(promiseConstructorType)) { + if (promiseConstructorName.kind === 80 /* Identifier */ && promiseConstructorName.escapedText === "Promise" && getTargetType(returnType) === getGlobalPromiseType( + /*reportErrors*/ + false + )) { + error(returnTypeErrorLocation, Diagnostics.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); + } else { + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); + } + return; + } + const globalPromiseConstructorLikeType = getGlobalPromiseConstructorLikeType( + /*reportErrors*/ + true + ); + if (globalPromiseConstructorLikeType === emptyObjectType) { + reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName)); + return; + } + const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value; + const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type + ); + if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) { + return; + } + const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName); + const collidingSymbol = getSymbol(node.locals, rootName.escapedText, 111551 /* Value */); + if (collidingSymbol) { + error(collidingSymbol.valueDeclaration, Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, idText(rootName), entityNameToString(promiseConstructorName)); + return; + } + } + checkAwaitedType( + returnType, + /*withAlias*/ + false, + node, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ); + function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) { + if (returnTypeNode2 === returnTypeErrorLocation2) { + error(returnTypeErrorLocation2, message, typeName); + } else { + const diag2 = error(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type); + addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName)); + } + } + } + function checkGrammarDecorator(decorator) { + const sourceFile = getSourceFileOfNode(decorator); + if (!hasParseDiagnostics(sourceFile)) { + let node = decorator.expression; + if (isParenthesizedExpression(node)) { + return false; + } + let canHaveCallExpression = true; + let errorNode; + while (true) { + if (isExpressionWithTypeArguments(node) || isNonNullExpression(node)) { + node = node.expression; + continue; + } + if (isCallExpression(node)) { + if (!canHaveCallExpression) { + errorNode = node; + } + if (node.questionDotToken) { + errorNode = node.questionDotToken; + } + node = node.expression; + canHaveCallExpression = false; + continue; + } + if (isPropertyAccessExpression(node)) { + if (node.questionDotToken) { + errorNode = node.questionDotToken; + } + node = node.expression; + canHaveCallExpression = false; + continue; + } + if (!isIdentifier(node)) { + errorNode = node; + } + break; + } + if (errorNode) { + addRelatedInfo( + error(decorator.expression, Diagnostics.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator), + createDiagnosticForNode(errorNode, Diagnostics.Invalid_syntax_in_decorator) + ); + return true; + } + } + return false; + } + function checkDecorator(node) { + checkGrammarDecorator(node); + const signature = getResolvedSignature(node); + checkDeprecatedSignature(signature, node); + const returnType = getReturnTypeOfSignature(signature); + if (returnType.flags & 1 /* Any */) { + return; + } + const decoratorSignature = getDecoratorCallSignature(node); + if (!(decoratorSignature == null ? void 0 : decoratorSignature.resolvedReturnType)) return; + let headMessage; + const expectedReturnType = decoratorSignature.resolvedReturnType; + switch (node.parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; + break; + case 172 /* PropertyDeclaration */: + if (!legacyDecorators) { + headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; + break; + } + case 169 /* Parameter */: + headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; + break; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; + break; + default: + return Debug.failBadSyntaxKind(node.parent); + } + checkTypeAssignableTo(returnType, expectedReturnType, node.expression, headMessage); + } + function createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount = parameters.length, flags = 0 /* None */) { + const decl = factory.createFunctionTypeNode( + /*typeParameters*/ + void 0, + emptyArray, + factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + return createSignature(decl, typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags); + } + function createFunctionType(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags) { + const signature = createCallSignature(typeParameters, thisParameter, parameters, returnType, typePredicate, minArgumentCount, flags); + return getOrCreateTypeFromSignature(signature); + } + function createGetterFunctionType(type) { + return createFunctionType( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + emptyArray, + type + ); + } + function createSetterFunctionType(type) { + const valueParam = createParameter("value", type); + return createFunctionType( + /*typeParameters*/ + void 0, + /*thisParameter*/ + void 0, + [valueParam], + voidType + ); + } + function getEntityNameForDecoratorMetadata(node) { + if (node) { + switch (node.kind) { + case 193 /* IntersectionType */: + case 192 /* UnionType */: + return getEntityNameForDecoratorMetadataFromTypeList(node.types); + case 194 /* ConditionalType */: + return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]); + case 196 /* ParenthesizedType */: + case 202 /* NamedTupleMember */: + return getEntityNameForDecoratorMetadata(node.type); + case 183 /* TypeReference */: + return node.typeName; + } + } + } + function getEntityNameForDecoratorMetadataFromTypeList(types) { + let commonEntityName; + for (let typeNode of types) { + while (typeNode.kind === 196 /* ParenthesizedType */ || typeNode.kind === 202 /* NamedTupleMember */) { + typeNode = typeNode.type; + } + if (typeNode.kind === 146 /* NeverKeyword */) { + continue; + } + if (!strictNullChecks && (typeNode.kind === 201 /* LiteralType */ && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + continue; + } + const individualEntityName = getEntityNameForDecoratorMetadata(typeNode); + if (!individualEntityName) { + return void 0; + } + if (commonEntityName) { + if (!isIdentifier(commonEntityName) || !isIdentifier(individualEntityName) || commonEntityName.escapedText !== individualEntityName.escapedText) { + return void 0; + } + } else { + commonEntityName = individualEntityName; + } + } + return commonEntityName; + } + function getParameterTypeNodeForDecoratorCheck(node) { + const typeNode = getEffectiveTypeAnnotationNode(node); + return isRestParameter(node) ? getRestParameterElementType(typeNode) : typeNode; + } + function checkDecorators(node) { + if (!canHaveDecorators(node) || !hasDecorators(node) || !node.modifiers || !nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { + return; + } + const firstDecorator = find(node.modifiers, isDecorator); + if (!firstDecorator) { + return; + } + if (legacyDecorators) { + checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */); + if (node.kind === 169 /* Parameter */) { + checkExternalEmitHelpers(firstDecorator, 32 /* Param */); + } + } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) { + checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */); + if (isClassDeclaration(node)) { + if (!node.name) { + checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); + } else { + const member = getFirstTransformableStaticClassElement(node); + if (member) { + checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); + } + } + } else if (!isClassExpression(node)) { + if (isPrivateIdentifier(node.name) && (isMethodDeclaration(node) || isAccessor(node) || isAutoAccessorPropertyDeclaration(node))) { + checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */); + } + if (isComputedPropertyName(node.name)) { + checkExternalEmitHelpers(firstDecorator, 8388608 /* PropKey */); + } + } + } + markLinkedReferences(node, 8 /* Decorator */); + for (const modifier of node.modifiers) { + if (isDecorator(modifier)) { + checkDecorator(modifier); + } + } + } + function checkFunctionDeclaration(node) { + addLazyDiagnostic(checkFunctionDeclarationDiagnostics); + function checkFunctionDeclarationDiagnostics() { + checkFunctionOrMethodDeclaration(node); + checkGrammarForGenerator(node); + checkCollisionsForDeclarationName(node, node.name); + } + } + function checkJSDocTypeAliasTag(node) { + if (!node.typeExpression) { + error(node.name, Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags); + } + if (node.name) { + checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); + } + checkSourceElement(node.typeExpression); + checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); + } + function checkJSDocTemplateTag(node) { + checkSourceElement(node.constraint); + for (const tp of node.typeParameters) { + checkSourceElement(tp); + } + } + function checkJSDocTypeTag(node) { + checkSourceElement(node.typeExpression); + } + function checkJSDocSatisfiesTag(node) { + checkSourceElement(node.typeExpression); + const host2 = getEffectiveJSDocHost(node); + if (host2) { + const tags = getAllJSDocTags(host2, isJSDocSatisfiesTag); + if (length(tags) > 1) { + for (let i = 1; i < length(tags); i++) { + const tagName = tags[i].tagName; + error(tagName, Diagnostics._0_tag_already_specified, idText(tagName)); + } + } + } + } + function checkJSDocLinkLikeTag(node) { + if (node.name) { + resolveJSDocMemberName( + node.name, + /*ignoreErrors*/ + true + ); + } + } + function checkJSDocParameterTag(node) { + checkSourceElement(node.typeExpression); + } + function checkJSDocPropertyTag(node) { + checkSourceElement(node.typeExpression); + } + function checkJSDocFunctionType(node) { + addLazyDiagnostic(checkJSDocFunctionTypeImplicitAny); + checkSignatureDeclaration(node); + function checkJSDocFunctionTypeImplicitAny() { + if (!node.type && !isJSDocConstructSignature(node)) { + reportImplicitAny(node, anyType); + } + } + } + function checkJSDocThisTag(node) { + const host2 = getEffectiveJSDocHost(node); + if (host2 && isArrowFunction(host2)) { + error(node.tagName, Diagnostics.An_arrow_function_cannot_have_a_this_parameter); + } + } + function checkJSDocImportTag(node) { + checkImportAttributes(node); + } + function checkJSDocImplementsTag(node) { + const classLike = getEffectiveJSDocHost(node); + if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { + error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + } + } + function checkJSDocAugmentsTag(node) { + const classLike = getEffectiveJSDocHost(node); + if (!classLike || !isClassDeclaration(classLike) && !isClassExpression(classLike)) { + error(classLike, Diagnostics.JSDoc_0_is_not_attached_to_a_class, idText(node.tagName)); + return; + } + const augmentsTags = getJSDocTags(classLike).filter(isJSDocAugmentsTag); + Debug.assert(augmentsTags.length > 0); + if (augmentsTags.length > 1) { + error(augmentsTags[1], Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag); + } + const name = getIdentifierFromEntityNameExpression(node.class.expression); + const extend2 = getClassExtendsHeritageElement(classLike); + if (extend2) { + const className = getIdentifierFromEntityNameExpression(extend2.expression); + if (className && name.escapedText !== className.escapedText) { + error(name, Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, idText(node.tagName), idText(name), idText(className)); + } + } + } + function checkJSDocAccessibilityModifiers(node) { + const host2 = getJSDocHost(node); + if (host2 && isPrivateIdentifierClassElementDeclaration(host2)) { + error(node, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + } + } + function getIdentifierFromEntityNameExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return node; + case 211 /* PropertyAccessExpression */: + return node.name; + default: + return void 0; + } + } + function checkFunctionOrMethodDeclaration(node) { + var _a; + checkDecorators(node); + checkSignatureDeclaration(node); + const functionFlags = getFunctionFlags(node); + if (node.name && node.name.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.name); + } + if (hasBindableName(node)) { + const symbol = getSymbolOfDeclaration(node); + const localSymbol = node.localSymbol || symbol; + const firstDeclaration = (_a = localSymbol.declarations) == null ? void 0 : _a.find( + // Get first non javascript function declaration + (declaration) => declaration.kind === node.kind && !(declaration.flags & 524288 /* JavaScriptFile */) + ); + if (node === firstDeclaration) { + checkFunctionOrConstructorSymbol(localSymbol); + } + if (symbol.parent) { + checkFunctionOrConstructorSymbol(symbol); + } + } + const body = node.kind === 173 /* MethodSignature */ ? void 0 : node.body; + checkSourceElement(body); + checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node)); + addLazyDiagnostic(checkFunctionOrMethodDeclarationDiagnostics); + if (isInJSFile(node)) { + const typeTag = getJSDocTypeTag(node); + if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) { + error(typeTag.typeExpression.type, Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature); + } + } + function checkFunctionOrMethodDeclarationDiagnostics() { + if (!getEffectiveReturnTypeNode(node)) { + if (nodeIsMissing(body) && !isPrivateWithinAmbient(node)) { + reportImplicitAny(node, anyType); + } + if (functionFlags & 1 /* Generator */ && nodeIsPresent(body)) { + getReturnTypeOfSignature(getSignatureFromDeclaration(node)); + } + } + } + } + function registerForUnusedIdentifiersCheck(node) { + addLazyDiagnostic(registerForUnusedIdentifiersCheckDiagnostics); + function registerForUnusedIdentifiersCheckDiagnostics() { + const sourceFile = getSourceFileOfNode(node); + let potentiallyUnusedIdentifiers = allPotentiallyUnusedIdentifiers.get(sourceFile.path); + if (!potentiallyUnusedIdentifiers) { + potentiallyUnusedIdentifiers = []; + allPotentiallyUnusedIdentifiers.set(sourceFile.path, potentiallyUnusedIdentifiers); + } + potentiallyUnusedIdentifiers.push(node); + } + } + function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) { + for (const node of potentiallyUnusedIdentifiers) { + switch (node.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + checkUnusedClassMembers(node, addDiagnostic); + checkUnusedTypeParameters(node, addDiagnostic); + break; + case 307 /* SourceFile */: + case 267 /* ModuleDeclaration */: + case 241 /* Block */: + case 269 /* CaseBlock */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + checkUnusedLocalsAndParameters(node, addDiagnostic); + break; + case 176 /* Constructor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (node.body) { + checkUnusedLocalsAndParameters(node, addDiagnostic); + } + checkUnusedTypeParameters(node, addDiagnostic); + break; + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 265 /* TypeAliasDeclaration */: + case 264 /* InterfaceDeclaration */: + checkUnusedTypeParameters(node, addDiagnostic); + break; + case 195 /* InferType */: + checkUnusedInferTypeParameter(node, addDiagnostic); + break; + default: + Debug.assertNever(node, "Node should not have been registered for unused identifiers check"); + } + } + } + function errorUnusedLocal(declaration, name, addDiagnostic) { + const node = getNameOfDeclaration(declaration) || declaration; + const message = isTypeDeclaration(declaration) ? Diagnostics._0_is_declared_but_never_used : Diagnostics._0_is_declared_but_its_value_is_never_read; + addDiagnostic(declaration, 0 /* Local */, createDiagnosticForNode(node, message, name)); + } + function isIdentifierThatStartsWithUnderscore(node) { + return isIdentifier(node) && idText(node).charCodeAt(0) === 95 /* _ */; + } + function checkUnusedClassMembers(node, addDiagnostic) { + for (const member of node.members) { + switch (member.kind) { + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (member.kind === 178 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) { + break; + } + const symbol = getSymbolOfDeclaration(member); + if (!symbol.isReferenced && (hasEffectiveModifier(member, 2 /* Private */) || isNamedDeclaration(member) && isPrivateIdentifier(member.name)) && !(member.flags & 33554432 /* Ambient */)) { + addDiagnostic(member, 0 /* Local */, createDiagnosticForNode(member.name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol))); + } + break; + case 176 /* Constructor */: + for (const parameter of member.parameters) { + if (!parameter.symbol.isReferenced && hasSyntacticModifier(parameter, 2 /* Private */)) { + addDiagnostic(parameter, 0 /* Local */, createDiagnosticForNode(parameter.name, Diagnostics.Property_0_is_declared_but_its_value_is_never_read, symbolName(parameter.symbol))); + } + } + break; + case 181 /* IndexSignature */: + case 240 /* SemicolonClassElement */: + case 175 /* ClassStaticBlockDeclaration */: + break; + default: + Debug.fail("Unexpected class member"); + } + } + } + function checkUnusedInferTypeParameter(node, addDiagnostic) { + const { typeParameter } = node; + if (isTypeParameterUnused(typeParameter)) { + addDiagnostic(node, 1 /* Parameter */, createDiagnosticForNode(node, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(typeParameter.name))); + } + } + function checkUnusedTypeParameters(node, addDiagnostic) { + const declarations = getSymbolOfDeclaration(node).declarations; + if (!declarations || last(declarations) !== node) return; + const typeParameters = getEffectiveTypeParameterDeclarations(node); + const seenParentsWithEveryUnused = /* @__PURE__ */ new Set(); + for (const typeParameter of typeParameters) { + if (!isTypeParameterUnused(typeParameter)) continue; + const name = idText(typeParameter.name); + const { parent } = typeParameter; + if (parent.kind !== 195 /* InferType */ && parent.typeParameters.every(isTypeParameterUnused)) { + if (tryAddToSet(seenParentsWithEveryUnused, parent)) { + const sourceFile = getSourceFileOfNode(parent); + const range = isJSDocTemplateTag(parent) ? rangeOfNode(parent) : rangeOfTypeParameters(sourceFile, parent.typeParameters); + const only = parent.typeParameters.length === 1; + const messageAndArg = only ? [Diagnostics._0_is_declared_but_its_value_is_never_read, name] : [Diagnostics.All_type_parameters_are_unused]; + addDiagnostic(typeParameter, 1 /* Parameter */, createFileDiagnostic(sourceFile, range.pos, range.end - range.pos, ...messageAndArg)); + } + } else { + addDiagnostic(typeParameter, 1 /* Parameter */, createDiagnosticForNode(typeParameter, Diagnostics._0_is_declared_but_its_value_is_never_read, name)); + } + } + } + function isTypeParameterUnused(typeParameter) { + return !(getMergedSymbol(typeParameter.symbol).isReferenced & 262144 /* TypeParameter */) && !isIdentifierThatStartsWithUnderscore(typeParameter.name); + } + function addToGroup(map2, key, value, getKey) { + const keyString = String(getKey(key)); + const group2 = map2.get(keyString); + if (group2) { + group2[1].push(value); + } else { + map2.set(keyString, [key, [value]]); + } + } + function tryGetRootParameterDeclaration(node) { + return tryCast(getRootDeclaration(node), isParameter); + } + function isValidUnusedLocalDeclaration(declaration) { + if (isBindingElement(declaration)) { + if (isObjectBindingPattern(declaration.parent)) { + return !!(declaration.propertyName && isIdentifierThatStartsWithUnderscore(declaration.name)); + } + return isIdentifierThatStartsWithUnderscore(declaration.name); + } + return isAmbientModule(declaration) || (isVariableDeclaration(declaration) && isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name); + } + function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) { + const unusedImports = /* @__PURE__ */ new Map(); + const unusedDestructures = /* @__PURE__ */ new Map(); + const unusedVariables = /* @__PURE__ */ new Map(); + nodeWithLocals.locals.forEach((local) => { + if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) { + return; + } + if (local.declarations) { + for (const declaration of local.declarations) { + if (isValidUnusedLocalDeclaration(declaration)) { + continue; + } + if (isImportedDeclaration(declaration)) { + addToGroup(unusedImports, importClauseFromImported(declaration), declaration, getNodeId); + } else if (isBindingElement(declaration) && isObjectBindingPattern(declaration.parent)) { + const lastElement = last(declaration.parent.elements); + if (declaration === lastElement || !last(declaration.parent.elements).dotDotDotToken) { + addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); + } + } else if (isVariableDeclaration(declaration)) { + const blockScopeKind = getCombinedNodeFlagsCached(declaration) & 7 /* BlockScoped */; + const name = getNameOfDeclaration(declaration); + if (blockScopeKind !== 4 /* Using */ && blockScopeKind !== 6 /* AwaitUsing */ || !name || !isIdentifierThatStartsWithUnderscore(name)) { + addToGroup(unusedVariables, declaration.parent, declaration, getNodeId); + } + } else { + const parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration); + const name = local.valueDeclaration && getNameOfDeclaration(local.valueDeclaration); + if (parameter && name) { + if (!isParameterPropertyDeclaration(parameter, parameter.parent) && !parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) { + if (isBindingElement(declaration) && isArrayBindingPattern(declaration.parent)) { + addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId); + } else { + addDiagnostic(parameter, 1 /* Parameter */, createDiagnosticForNode(name, Diagnostics._0_is_declared_but_its_value_is_never_read, symbolName(local))); + } + } + } else { + errorUnusedLocal(declaration, symbolName(local), addDiagnostic); + } + } + } + } + }); + unusedImports.forEach(([importClause, unuseds]) => { + const importDecl = importClause.parent; + const nDeclarations = (importClause.name ? 1 : 0) + (importClause.namedBindings ? importClause.namedBindings.kind === 274 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length : 0); + if (nDeclarations === unuseds.length) { + addDiagnostic( + importDecl, + 0 /* Local */, + unuseds.length === 1 ? createDiagnosticForNode(importDecl, Diagnostics._0_is_declared_but_its_value_is_never_read, idText(first(unuseds).name)) : createDiagnosticForNode(importDecl, Diagnostics.All_imports_in_import_declaration_are_unused) + ); + } else { + for (const unused of unuseds) errorUnusedLocal(unused, idText(unused.name), addDiagnostic); + } + }); + unusedDestructures.forEach(([bindingPattern, bindingElements]) => { + const kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */; + if (bindingPattern.elements.length === bindingElements.length) { + if (bindingElements.length === 1 && bindingPattern.parent.kind === 260 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 261 /* VariableDeclarationList */) { + addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId); + } else { + addDiagnostic( + bindingPattern, + kind, + bindingElements.length === 1 ? createDiagnosticForNode(bindingPattern, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(bindingElements).name)) : createDiagnosticForNode(bindingPattern, Diagnostics.All_destructured_elements_are_unused) + ); + } + } else { + for (const e of bindingElements) { + addDiagnostic(e, kind, createDiagnosticForNode(e, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(e.name))); + } + } + }); + unusedVariables.forEach(([declarationList, declarations]) => { + if (declarationList.declarations.length === declarations.length) { + addDiagnostic( + declarationList, + 0 /* Local */, + declarations.length === 1 ? createDiagnosticForNode(first(declarations).name, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(first(declarations).name)) : createDiagnosticForNode(declarationList.parent.kind === 243 /* VariableStatement */ ? declarationList.parent : declarationList, Diagnostics.All_variables_are_unused) + ); + } else { + for (const decl of declarations) { + addDiagnostic(decl, 0 /* Local */, createDiagnosticForNode(decl, Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name))); + } + } + }); + } + function checkPotentialUncheckedRenamedBindingElementsInTypes() { + var _a; + for (const node of potentialUnusedRenamedBindingElementsInTypes) { + if (!((_a = getSymbolOfDeclaration(node)) == null ? void 0 : _a.isReferenced)) { + const wrappingDeclaration = walkUpBindingElementsAndPatterns(node); + Debug.assert(isPartOfParameterDeclaration(wrappingDeclaration), "Only parameter declaration should be checked here"); + const diagnostic = createDiagnosticForNode(node.name, Diagnostics._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation, declarationNameToString(node.name), declarationNameToString(node.propertyName)); + if (!wrappingDeclaration.type) { + addRelatedInfo( + diagnostic, + createFileDiagnostic(getSourceFileOfNode(wrappingDeclaration), wrappingDeclaration.end, 1, Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, declarationNameToString(node.propertyName)) + ); + } + diagnostics.add(diagnostic); + } + } + } + function bindingNameText(name) { + switch (name.kind) { + case 80 /* Identifier */: + return idText(name); + case 207 /* ArrayBindingPattern */: + case 206 /* ObjectBindingPattern */: + return bindingNameText(cast(first(name.elements), isBindingElement).name); + default: + return Debug.assertNever(name); + } + } + function isImportedDeclaration(node) { + return node.kind === 273 /* ImportClause */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 274 /* NamespaceImport */; + } + function importClauseFromImported(decl) { + return decl.kind === 273 /* ImportClause */ ? decl : decl.kind === 274 /* NamespaceImport */ ? decl.parent : decl.parent.parent; + } + function checkBlock(node) { + if (node.kind === 241 /* Block */) { + checkGrammarStatementInAmbientContext(node); + } + if (isFunctionOrModuleBlock(node)) { + const saveFlowAnalysisDisabled = flowAnalysisDisabled; + forEach(node.statements, checkSourceElement); + flowAnalysisDisabled = saveFlowAnalysisDisabled; + } else { + forEach(node.statements, checkSourceElement); + } + if (node.locals) { + registerForUnusedIdentifiersCheck(node); + } + } + function checkCollisionWithArgumentsInGeneratedCode(node) { + if (languageVersion >= 2 /* ES2015 */ || !hasRestParameter(node) || node.flags & 33554432 /* Ambient */ || nodeIsMissing(node.body)) { + return; + } + forEach(node.parameters, (p) => { + if (p.name && !isBindingPattern(p.name) && p.name.escapedText === argumentsSymbol.escapedName) { + errorSkippedOn("noEmit", p, Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters); + } + }); + } + function needCollisionCheckForIdentifier(node, identifier, name) { + if ((identifier == null ? void 0 : identifier.escapedText) !== name) { + return false; + } + if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 171 /* PropertySignature */ || node.kind === 174 /* MethodDeclaration */ || node.kind === 173 /* MethodSignature */ || node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */ || node.kind === 303 /* PropertyAssignment */) { + return false; + } + if (node.flags & 33554432 /* Ambient */) { + return false; + } + if (isImportClause(node) || isImportEqualsDeclaration(node) || isImportSpecifier(node)) { + if (isTypeOnlyImportOrExportDeclaration(node)) { + return false; + } + } + const root = getRootDeclaration(node); + if (isParameter(root) && nodeIsMissing(root.parent.body)) { + return false; + } + return true; + } + function checkIfThisIsCapturedInEnclosingScope(node) { + findAncestor(node, (current) => { + if (getNodeCheckFlags(current) & 4 /* CaptureThis */) { + const isDeclaration2 = node.kind !== 80 /* Identifier */; + if (isDeclaration2) { + error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference); + } else { + error(node, Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference); + } + return true; + } + return false; + }); + } + function checkIfNewTargetIsCapturedInEnclosingScope(node) { + findAncestor(node, (current) => { + if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) { + const isDeclaration2 = node.kind !== 80 /* Identifier */; + if (isDeclaration2) { + error(getNameOfDeclaration(node), Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference); + } else { + error(node, Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference); + } + return true; + } + return false; + }); + } + function checkCollisionWithRequireExportsInGeneratedCode(node, name) { + if (moduleKind >= 5 /* ES2015 */ && !(moduleKind >= 100 /* Node16 */ && getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + return; + } + if (!name || !needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) { + return; + } + if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1 /* Instantiated */) { + return; + } + const parent = getDeclarationContainer(node); + if (parent.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(parent)) { + errorSkippedOn("noEmit", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, declarationNameToString(name), declarationNameToString(name)); + } + } + function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) { + if (!name || languageVersion >= 4 /* ES2017 */ || !needCollisionCheckForIdentifier(node, name, "Promise")) { + return; + } + if (isModuleDeclaration(node) && getModuleInstanceState(node) !== 1 /* Instantiated */) { + return; + } + const parent = getDeclarationContainer(node); + if (parent.kind === 307 /* SourceFile */ && isExternalOrCommonJsModule(parent) && parent.flags & 4096 /* HasAsyncFunctions */) { + errorSkippedOn("noEmit", name, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, declarationNameToString(name), declarationNameToString(name)); + } + } + function recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name) { + if (languageVersion <= 8 /* ES2021 */ && (needCollisionCheckForIdentifier(node, name, "WeakMap") || needCollisionCheckForIdentifier(node, name, "WeakSet"))) { + potentialWeakMapSetCollisions.push(node); + } + } + function checkWeakMapSetCollision(node) { + const enclosingBlockScope = getEnclosingBlockScopeContainer(node); + if (getNodeCheckFlags(enclosingBlockScope) & 1048576 /* ContainsClassWithPrivateIdentifiers */) { + Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier"); + errorSkippedOn("noEmit", node, Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText); + } + } + function recordPotentialCollisionWithReflectInGeneratedCode(node, name) { + if (name && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ && needCollisionCheckForIdentifier(node, name, "Reflect")) { + potentialReflectCollisions.push(node); + } + } + function checkReflectCollision(node) { + let hasCollision = false; + if (isClassExpression(node)) { + for (const member of node.members) { + if (getNodeCheckFlags(member) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { + hasCollision = true; + break; + } + } + } else if (isFunctionExpression(node)) { + if (getNodeCheckFlags(node) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { + hasCollision = true; + } + } else { + const container = getEnclosingBlockScopeContainer(node); + if (container && getNodeCheckFlags(container) & 2097152 /* ContainsSuperPropertyInStaticInitializer */) { + hasCollision = true; + } + } + if (hasCollision) { + Debug.assert(isNamedDeclaration(node) && isIdentifier(node.name), "The target of a Reflect collision check should be an identifier"); + errorSkippedOn("noEmit", node, Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, declarationNameToString(node.name), "Reflect"); + } + } + function checkCollisionsForDeclarationName(node, name) { + if (!name) return; + checkCollisionWithRequireExportsInGeneratedCode(node, name); + checkCollisionWithGlobalPromiseInGeneratedCode(node, name); + recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name); + recordPotentialCollisionWithReflectInGeneratedCode(node, name); + if (isClassLike(node)) { + checkTypeNameIsReserved(name, Diagnostics.Class_name_cannot_be_0); + if (!(node.flags & 33554432 /* Ambient */)) { + checkClassNameCollisionWithObject(name); + } + } else if (isEnumDeclaration(node)) { + checkTypeNameIsReserved(name, Diagnostics.Enum_name_cannot_be_0); + } + } + function checkVarDeclaredNamesNotShadowed(node) { + if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isPartOfParameterDeclaration(node)) { + return; + } + const symbol = getSymbolOfDeclaration(node); + if (symbol.flags & 1 /* FunctionScopedVariable */) { + if (!isIdentifier(node.name)) return Debug.fail(); + const localDeclarationSymbol = resolveName( + node, + node.name.escapedText, + 3 /* Variable */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + ); + if (localDeclarationSymbol && localDeclarationSymbol !== symbol && localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) { + if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 7 /* BlockScoped */) { + const varDeclList = getAncestor(localDeclarationSymbol.valueDeclaration, 261 /* VariableDeclarationList */); + const container = varDeclList.parent.kind === 243 /* VariableStatement */ && varDeclList.parent.parent ? varDeclList.parent.parent : void 0; + const namesShareScope = container && (container.kind === 241 /* Block */ && isFunctionLike(container.parent) || container.kind === 268 /* ModuleBlock */ || container.kind === 267 /* ModuleDeclaration */ || container.kind === 307 /* SourceFile */); + if (!namesShareScope) { + const name = symbolToString(localDeclarationSymbol); + error(node, Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name); + } + } + } + } + } + function convertAutoToAny(type) { + return type === autoType ? anyType : type === autoArrayType ? anyArrayType : type; + } + function checkVariableLikeDeclaration(node) { + var _a; + checkDecorators(node); + if (!isBindingElement(node)) { + checkSourceElement(node.type); + } + if (!node.name) { + return; + } + if (node.name.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.name); + if (hasOnlyExpressionInitializer(node) && node.initializer) { + checkExpressionCached(node.initializer); + } + } + if (isBindingElement(node)) { + if (node.propertyName && isIdentifier(node.name) && isPartOfParameterDeclaration(node) && nodeIsMissing(getContainingFunction(node).body)) { + potentialUnusedRenamedBindingElementsInTypes.push(node); + return; + } + if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) { + checkExternalEmitHelpers(node, 4 /* Rest */); + } + if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { + checkComputedPropertyName(node.propertyName); + } + const parent = node.parent.parent; + const parentCheckMode = node.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */; + const parentType = getTypeForBindingElementParent(parent, parentCheckMode); + const name = node.propertyName || node.name; + if (parentType && !isBindingPattern(name)) { + const exprType = getLiteralTypeFromPropertyName(name); + if (isTypeUsableAsPropertyName(exprType)) { + const nameText = getPropertyNameFromType(exprType); + const property = getPropertyOfType(parentType, nameText); + if (property) { + markPropertyAsReferenced( + property, + /*nodeForCheckWriteOnly*/ + void 0, + /*isSelfTypeAccess*/ + false + ); + checkPropertyAccessibility( + node, + !!parent.initializer && parent.initializer.kind === 108 /* SuperKeyword */, + /*writing*/ + false, + parentType, + property + ); + } + } + } + } + if (isBindingPattern(node.name)) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) { + checkExternalEmitHelpers(node, 512 /* Read */); + } + forEach(node.name.elements, checkSourceElement); + } + if (node.initializer && isPartOfParameterDeclaration(node) && nodeIsMissing(getContainingFunction(node).body)) { + error(node, Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation); + return; + } + if (isBindingPattern(node.name)) { + if (isInAmbientOrTypeNode(node)) { + return; + } + const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 249 /* ForInStatement */; + const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression)); + if (needCheckInitializer || needCheckWidenedType) { + const widenedType = getWidenedTypeForVariableLikeDeclaration(node); + if (needCheckInitializer) { + const initializerType = checkExpressionCached(node.initializer); + if (strictNullChecks && needCheckWidenedType) { + checkNonNullNonVoidType(initializerType, node); + } else { + checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer); + } + } + if (needCheckWidenedType) { + if (isArrayBindingPattern(node.name)) { + checkIteratedTypeOrElementType(65 /* Destructuring */, widenedType, undefinedType, node); + } else if (strictNullChecks) { + checkNonNullNonVoidType(widenedType, node); + } + } + } + return; + } + const symbol = getSymbolOfDeclaration(node); + if (symbol.flags & 2097152 /* Alias */ && (isVariableDeclarationInitializedToBareOrAccessedRequire(node) || isBindingElementOfBareOrAccessedRequire(node))) { + checkAliasSymbol(node); + return; + } + const type = convertAutoToAny(getTypeOfSymbol(symbol)); + if (node === symbol.valueDeclaration) { + const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); + if (initializer) { + const isJSObjectLiteralInitializer = isInJSFile(node) && isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAccess(node.name)) && !!((_a = symbol.exports) == null ? void 0 : _a.size); + if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 249 /* ForInStatement */) { + const initializerType = checkExpressionCached(initializer); + checkTypeAssignableToAndOptionallyElaborate( + initializerType, + type, + node, + initializer, + /*headMessage*/ + void 0 + ); + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + if (blockScopeKind === 6 /* AwaitUsing */) { + const globalAsyncDisposableType = getGlobalAsyncDisposableType( + /*reportErrors*/ + true + ); + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.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); + } + } else if (blockScopeKind === 4 /* Using */) { + const globalDisposableType = getGlobalDisposableType( + /*reportErrors*/ + true + ); + if (globalDisposableType !== emptyObjectType) { + const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + } + } + } + } + if (symbol.declarations && symbol.declarations.length > 1) { + if (some(symbol.declarations, (d) => d !== node && isVariableLike(d) && !areDeclarationFlagsIdentical(d, node))) { + error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + } + } + } else { + const declarationType = convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(node)); + if (!isErrorType(type) && !isErrorType(declarationType) && !isTypeIdenticalTo(type, declarationType) && !(symbol.flags & 67108864 /* Assignment */)) { + errorNextVariableOrPropertyDeclarationMustHaveSameType(symbol.valueDeclaration, type, node, declarationType); + } + if (hasOnlyExpressionInitializer(node) && node.initializer) { + checkTypeAssignableToAndOptionallyElaborate( + checkExpressionCached(node.initializer), + declarationType, + node, + node.initializer, + /*headMessage*/ + void 0 + ); + } + if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) { + error(node.name, Diagnostics.All_declarations_of_0_must_have_identical_modifiers, declarationNameToString(node.name)); + } + } + if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */) { + checkExportsOnMergedDeclarations(node); + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { + checkVarDeclaredNamesNotShadowed(node); + } + checkCollisionsForDeclarationName(node, node.name); + } + } + function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) { + const nextDeclarationName = getNameOfDeclaration(nextDeclaration); + const message = nextDeclaration.kind === 172 /* PropertyDeclaration */ || nextDeclaration.kind === 171 /* PropertySignature */ ? Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2 : Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2; + const declName = declarationNameToString(nextDeclarationName); + const err = error( + nextDeclarationName, + message, + declName, + typeToString(firstType), + typeToString(nextType) + ); + if (firstDeclaration) { + addRelatedInfo(err, createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here, declName)); + } + } + function areDeclarationFlagsIdentical(left, right) { + if (left.kind === 169 /* Parameter */ && right.kind === 260 /* VariableDeclaration */ || left.kind === 260 /* VariableDeclaration */ && right.kind === 169 /* Parameter */) { + return true; + } + if (hasQuestionToken(left) !== hasQuestionToken(right)) { + return false; + } + const interestingFlags = 2 /* Private */ | 4 /* Protected */ | 1024 /* Async */ | 64 /* Abstract */ | 8 /* Readonly */ | 256 /* Static */; + return getSelectedEffectiveModifierFlags(left, interestingFlags) === getSelectedEffectiveModifierFlags(right, interestingFlags); + } + function checkVariableDeclaration(node) { + var _a, _b; + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkVariableDeclaration", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); + checkGrammarVariableDeclaration(node); + checkVariableLikeDeclaration(node); + (_b = tracing) == null ? void 0 : _b.pop(); + } + function checkBindingElement(node) { + checkGrammarBindingElement(node); + return checkVariableLikeDeclaration(node); + } + function checkVariableDeclarationList(node) { + const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; + if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) { + checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */); + } + forEach(node.declarations, checkSourceElement); + } + function checkVariableStatement(node) { + if (!checkGrammarModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList)) checkGrammarForDisallowedBlockScopedVariableStatement(node); + checkVariableDeclarationList(node.declarationList); + } + function checkExpressionStatement(node) { + checkGrammarStatementInAmbientContext(node); + checkExpression(node.expression); + } + function checkIfStatement(node) { + checkGrammarStatementInAmbientContext(node); + const type = checkTruthinessExpression(node.expression); + checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.expression, type, node.thenStatement); + checkSourceElement(node.thenStatement); + if (node.thenStatement.kind === 242 /* EmptyStatement */) { + error(node.thenStatement, Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement); + } + checkSourceElement(node.elseStatement); + } + function checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(condExpr, condType, body) { + if (!strictNullChecks) return; + bothHelper(condExpr, body); + function bothHelper(condExpr2, body2) { + condExpr2 = skipParentheses(condExpr2); + helper(condExpr2, body2); + while (isBinaryExpression(condExpr2) && (condExpr2.operatorToken.kind === 57 /* BarBarToken */ || condExpr2.operatorToken.kind === 61 /* QuestionQuestionToken */)) { + condExpr2 = skipParentheses(condExpr2.left); + helper(condExpr2, body2); + } + } + function helper(condExpr2, body2) { + const location = isLogicalOrCoalescingBinaryExpression(condExpr2) ? skipParentheses(condExpr2.right) : condExpr2; + if (isModuleExportsAccessExpression(location)) { + return; + } + if (isLogicalOrCoalescingBinaryExpression(location)) { + bothHelper(location, body2); + return; + } + const type = location === condExpr2 ? condType : checkTruthinessExpression(location); + if (type.flags & 1024 /* EnumLiteral */ && isPropertyAccessExpression(location) && (getNodeLinks(location.expression).resolvedSymbol ?? unknownSymbol).flags & 384 /* Enum */) { + error(location, Diagnostics.This_condition_will_always_return_0, !!type.value ? "true" : "false"); + return; + } + const isPropertyExpressionCast = isPropertyAccessExpression(location) && isTypeAssertion(location.expression); + if (!hasTypeFacts(type, 4194304 /* Truthy */) || isPropertyExpressionCast) return; + const callSignatures = getSignaturesOfType(type, 0 /* Call */); + const isPromise = !!getAwaitedTypeOfPromise(type); + if (callSignatures.length === 0 && !isPromise) { + return; + } + const testedNode = isIdentifier(location) ? location : isPropertyAccessExpression(location) ? location.name : void 0; + const testedSymbol = testedNode && getSymbolAtLocation(testedNode); + if (!testedSymbol && !isPromise) { + return; + } + const isUsed = testedSymbol && isBinaryExpression(condExpr2.parent) && isSymbolUsedInBinaryExpressionChain(condExpr2.parent, testedSymbol) || testedSymbol && body2 && isSymbolUsedInConditionBody(condExpr2, body2, testedNode, testedSymbol); + if (!isUsed) { + if (isPromise) { + errorAndMaybeSuggestAwait( + location, + /*maybeMissingAwait*/ + true, + Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined, + getTypeNameForErrorDisplay(type) + ); + } else { + error(location, Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead); + } + } + } + } + function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) { + return !!forEachChild(body, function check(childNode) { + if (isIdentifier(childNode)) { + const childSymbol = getSymbolAtLocation(childNode); + if (childSymbol && childSymbol === testedSymbol) { + if (isIdentifier(expr) || isIdentifier(testedNode) && isBinaryExpression(testedNode.parent)) { + return true; + } + let testedExpression = testedNode.parent; + let childExpression = childNode.parent; + while (testedExpression && childExpression) { + if (isIdentifier(testedExpression) && isIdentifier(childExpression) || testedExpression.kind === 110 /* ThisKeyword */ && childExpression.kind === 110 /* ThisKeyword */) { + return getSymbolAtLocation(testedExpression) === getSymbolAtLocation(childExpression); + } else if (isPropertyAccessExpression(testedExpression) && isPropertyAccessExpression(childExpression)) { + if (getSymbolAtLocation(testedExpression.name) !== getSymbolAtLocation(childExpression.name)) { + return false; + } + childExpression = childExpression.expression; + testedExpression = testedExpression.expression; + } else if (isCallExpression(testedExpression) && isCallExpression(childExpression)) { + childExpression = childExpression.expression; + testedExpression = testedExpression.expression; + } else { + return false; + } + } + } + } + return forEachChild(childNode, check); + }); + } + function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) { + while (isBinaryExpression(node) && node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { + const isUsed = forEachChild(node.right, function visit(child) { + if (isIdentifier(child)) { + const symbol = getSymbolAtLocation(child); + if (symbol && symbol === testedSymbol) { + return true; + } + } + return forEachChild(child, visit); + }); + if (isUsed) { + return true; + } + node = node.parent; + } + return false; + } + function checkDoStatement(node) { + checkGrammarStatementInAmbientContext(node); + checkSourceElement(node.statement); + checkTruthinessExpression(node.expression); + } + function checkWhileStatement(node) { + checkGrammarStatementInAmbientContext(node); + checkTruthinessExpression(node.expression); + checkSourceElement(node.statement); + } + function checkTruthinessOfType(type, node) { + if (type.flags & 16384 /* Void */) { + error(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); + } + return type; + } + function checkTruthinessExpression(node, checkMode) { + return checkTruthinessOfType(checkExpression(node, checkMode), node); + } + function checkForStatement(node) { + if (!checkGrammarStatementInAmbientContext(node)) { + if (node.initializer && node.initializer.kind === 261 /* VariableDeclarationList */) { + checkGrammarVariableDeclarationList(node.initializer); + } + } + if (node.initializer) { + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); + } else { + checkExpression(node.initializer); + } + } + if (node.condition) checkTruthinessExpression(node.condition); + if (node.incrementor) checkExpression(node.incrementor); + checkSourceElement(node.statement); + if (node.locals) { + registerForUnusedIdentifiersCheck(node); + } + } + function checkForOfStatement(node) { + checkGrammarForInOrForOfStatement(node); + const container = getContainingFunctionOrClassStaticBlock(node); + if (node.awaitModifier) { + if (container && isClassStaticBlockDeclaration(container)) { + grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); + } else { + const functionFlags = getFunctionFlags(container); + if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) { + checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */); + } + } + } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) { + checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); + } + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + checkVariableDeclarationList(node.initializer); + } else { + const varExpr = node.initializer; + const iteratedType = checkRightHandSideOfForOf(node); + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { + checkDestructuringAssignment(varExpr, iteratedType || errorType); + } else { + const leftType = checkExpression(varExpr); + checkReferenceExpression( + varExpr, + Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, + Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access + ); + if (iteratedType) { + checkTypeAssignableToAndOptionallyElaborate(iteratedType, leftType, varExpr, node.expression); + } + } + } + checkSourceElement(node.statement); + if (node.locals) { + registerForUnusedIdentifiersCheck(node); + } + } + function checkForInStatement(node) { + checkGrammarForInOrForOfStatement(node); + const rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression)); + if (node.initializer.kind === 261 /* VariableDeclarationList */) { + const variable = node.initializer.declarations[0]; + if (variable && isBindingPattern(variable.name)) { + error(variable.name, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + } + checkVariableDeclarationList(node.initializer); + } else { + const varExpr = node.initializer; + const leftType = checkExpression(varExpr); + if (varExpr.kind === 209 /* ArrayLiteralExpression */ || varExpr.kind === 210 /* ObjectLiteralExpression */) { + error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern); + } else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) { + error(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any); + } else { + checkReferenceExpression( + varExpr, + Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, + Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access + ); + } + } + if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) { + error(node.expression, Diagnostics.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, typeToString(rightType)); + } + checkSourceElement(node.statement); + if (node.locals) { + registerForUnusedIdentifiersCheck(node); + } + } + function checkRightHandSideOfForOf(statement) { + const use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */; + return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression); + } + function checkIteratedTypeOrElementType(use, inputType, sentType, errorNode) { + if (isTypeAny(inputType)) { + return inputType; + } + return getIteratedTypeOrElementType( + use, + inputType, + sentType, + errorNode, + /*checkAssignability*/ + true + ) || anyType; + } + function getIteratedTypeOrElementType(use, inputType, sentType, errorNode, checkAssignability) { + const allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0; + if (inputType === neverType) { + if (errorNode) { + reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables); + } + return void 0; + } + const uplevelIteration = languageVersion >= 2 /* ES2015 */; + const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration; + const possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128 /* PossiblyOutOfBounds */); + if (uplevelIteration || downlevelIteration || allowAsyncIterables) { + const iterationTypes = getIterationTypesOfIterable(inputType, use, uplevelIteration ? errorNode : void 0); + if (checkAssignability) { + if (iterationTypes) { + const diagnostic = use & 8 /* ForOfFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 : use & 32 /* SpreadFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 : use & 64 /* DestructuringFlag */ ? Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 : use & 16 /* YieldStarFlag */ ? Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0 : void 0; + if (diagnostic) { + checkTypeAssignableTo(sentType, iterationTypes.nextType, errorNode, diagnostic); + } + } + } + if (iterationTypes || uplevelIteration) { + return possibleOutOfBounds ? includeUndefinedInIndexSignature(iterationTypes && iterationTypes.yieldType) : iterationTypes && iterationTypes.yieldType; + } + } + let arrayType = inputType; + let hasStringConstituent = false; + if (use & 4 /* AllowsStringInputFlag */) { + if (arrayType.flags & 1048576 /* Union */) { + const arrayTypes = inputType.types; + const filteredTypes = filter(arrayTypes, (t) => !(t.flags & 402653316 /* StringLike */)); + if (filteredTypes !== arrayTypes) { + arrayType = getUnionType(filteredTypes, 2 /* Subtype */); + } + } else if (arrayType.flags & 402653316 /* StringLike */) { + arrayType = neverType; + } + hasStringConstituent = arrayType !== inputType; + if (hasStringConstituent) { + if (arrayType.flags & 131072 /* Never */) { + return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType; + } + } + } + if (!isArrayLikeType(arrayType)) { + if (errorNode) { + const allowsStrings = !!(use & 4 /* AllowsStringInputFlag */) && !hasStringConstituent; + const [defaultDiagnostic, maybeMissingAwait] = getIterationDiagnosticDetails(allowsStrings, downlevelIteration); + errorAndMaybeSuggestAwait( + errorNode, + maybeMissingAwait && !!getAwaitedTypeOfPromise(arrayType), + defaultDiagnostic, + typeToString(arrayType) + ); + } + return hasStringConstituent ? possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType : void 0; + } + const arrayElementType = getIndexTypeOfType(arrayType, numberType); + if (hasStringConstituent && arrayElementType) { + if (arrayElementType.flags & 402653316 /* StringLike */ && !compilerOptions.noUncheckedIndexedAccess) { + return stringType; + } + return getUnionType(possibleOutOfBounds ? [arrayElementType, stringType, undefinedType] : [arrayElementType, stringType], 2 /* Subtype */); + } + return use & 128 /* PossiblyOutOfBounds */ ? includeUndefinedInIndexSignature(arrayElementType) : arrayElementType; + function getIterationDiagnosticDetails(allowsStrings, downlevelIteration2) { + var _a; + if (downlevelIteration2) { + return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true] : [Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true]; + } + const yieldType = getIterationTypeOfIterable( + use, + 0 /* Yield */, + inputType, + /*errorNode*/ + void 0 + ); + if (yieldType) { + return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, false]; + } + if (isES2015OrLaterIterable((_a = inputType.symbol) == null ? void 0 : _a.escapedName)) { + return [Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, true]; + } + return allowsStrings ? [Diagnostics.Type_0_is_not_an_array_type_or_a_string_type, true] : [Diagnostics.Type_0_is_not_an_array_type, true]; + } + } + function isES2015OrLaterIterable(n) { + switch (n) { + case "Float32Array": + case "Float64Array": + case "Int16Array": + case "Int32Array": + case "Int8Array": + case "NodeList": + case "Uint16Array": + case "Uint32Array": + case "Uint8Array": + case "Uint8ClampedArray": + return true; + } + return false; + } + function getIterationTypeOfIterable(use, typeKind, inputType, errorNode) { + if (isTypeAny(inputType)) { + return void 0; + } + const iterationTypes = getIterationTypesOfIterable(inputType, use, errorNode); + return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(typeKind)]; + } + function createIterationTypes(yieldType = neverType, returnType = neverType, nextType = unknownType) { + if (yieldType.flags & 67359327 /* Intrinsic */ && returnType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */) && nextType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */)) { + const id = getTypeListId([yieldType, returnType, nextType]); + let iterationTypes = iterationTypesCache.get(id); + if (!iterationTypes) { + iterationTypes = { yieldType, returnType, nextType }; + iterationTypesCache.set(id, iterationTypes); + } + return iterationTypes; + } + return { yieldType, returnType, nextType }; + } + function combineIterationTypes(array) { + let yieldTypes; + let returnTypes; + let nextTypes; + for (const iterationTypes of array) { + if (iterationTypes === void 0 || iterationTypes === noIterationTypes) { + continue; + } + if (iterationTypes === anyIterationTypes) { + return anyIterationTypes; + } + yieldTypes = append(yieldTypes, iterationTypes.yieldType); + returnTypes = append(returnTypes, iterationTypes.returnType); + nextTypes = append(nextTypes, iterationTypes.nextType); + } + if (yieldTypes || returnTypes || nextTypes) { + return createIterationTypes( + yieldTypes && getUnionType(yieldTypes), + returnTypes && getUnionType(returnTypes), + nextTypes && getIntersectionType(nextTypes) + ); + } + return noIterationTypes; + } + function getCachedIterationTypes(type, cacheKey) { + return type[cacheKey]; + } + function setCachedIterationTypes(type, cacheKey, cachedTypes2) { + return type[cacheKey] = cachedTypes2; + } + function getIterationTypesOfIterable(type, use, errorNode) { + var _a, _b; + if (isTypeAny(type)) { + return anyIterationTypes; + } + if (!(type.flags & 1048576 /* Union */)) { + const errorOutputContainer = errorNode ? { errors: void 0 } : void 0; + const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer); + if (iterationTypes2 === noIterationTypes) { + if (errorNode) { + const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */)); + if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) { + addRelatedInfo(rootDiag, ...errorOutputContainer.errors); + } + } + return void 0; + } else if ((_a = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _a.length) { + for (const diag2 of errorOutputContainer.errors) { + diagnostics.add(diag2); + } + } + return iterationTypes2; + } + const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable"; + const cachedTypes2 = getCachedIterationTypes(type, cacheKey); + if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2; + let allIterationTypes; + for (const constituent of type.types) { + const errorOutputContainer = errorNode ? { errors: void 0 } : void 0; + const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer); + if (iterationTypes2 === noIterationTypes) { + if (errorNode) { + const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */)); + if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) { + addRelatedInfo(rootDiag, ...errorOutputContainer.errors); + } + } + setCachedIterationTypes(type, cacheKey, noIterationTypes); + return void 0; + } else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) { + for (const diag2 of errorOutputContainer.errors) { + diagnostics.add(diag2); + } + } + allIterationTypes = append(allIterationTypes, iterationTypes2); + } + const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes; + setCachedIterationTypes(type, cacheKey, iterationTypes); + return iterationTypes === noIterationTypes ? void 0 : iterationTypes; + } + function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) { + if (iterationTypes === noIterationTypes) return noIterationTypes; + if (iterationTypes === anyIterationTypes) return anyIterationTypes; + const { yieldType, returnType, nextType } = iterationTypes; + if (errorNode) { + getGlobalAwaitedSymbol( + /*reportErrors*/ + true + ); + } + return createIterationTypes( + getAwaitedType(yieldType, errorNode) || anyType, + getAwaitedType(returnType, errorNode) || anyType, + nextType + ); + } + function getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer) { + if (isTypeAny(type)) { + return anyIterationTypes; + } + let noCache = false; + if (use & 2 /* AllowsAsyncIterablesFlag */) { + const iterationTypes = getIterationTypesOfIterableCached(type, asyncIterationTypesResolver) || getIterationTypesOfIterableFast(type, asyncIterationTypesResolver); + if (iterationTypes) { + if (iterationTypes === noIterationTypes && errorNode) { + noCache = true; + } else { + return use & 8 /* ForOfFlag */ ? getAsyncFromSyncIterationTypes(iterationTypes, errorNode) : iterationTypes; + } + } + } + if (use & 1 /* AllowsSyncIterablesFlag */) { + let iterationTypes = getIterationTypesOfIterableCached(type, syncIterationTypesResolver) || getIterationTypesOfIterableFast(type, syncIterationTypesResolver); + if (iterationTypes) { + if (iterationTypes === noIterationTypes && errorNode) { + noCache = true; + } else { + if (use & 2 /* AllowsAsyncIterablesFlag */) { + if (iterationTypes !== noIterationTypes) { + iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); + return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); + } + } else { + return iterationTypes; + } + } + } + } + if (use & 2 /* AllowsAsyncIterablesFlag */) { + const iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode, errorOutputContainer, noCache); + if (iterationTypes !== noIterationTypes) { + return iterationTypes; + } + } + if (use & 1 /* AllowsSyncIterablesFlag */) { + let iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode, errorOutputContainer, noCache); + if (iterationTypes !== noIterationTypes) { + if (use & 2 /* AllowsAsyncIterablesFlag */) { + iterationTypes = getAsyncFromSyncIterationTypes(iterationTypes, errorNode); + return noCache ? iterationTypes : setCachedIterationTypes(type, "iterationTypesOfAsyncIterable", iterationTypes); + } else { + return iterationTypes; + } + } + } + return noIterationTypes; + } + function getIterationTypesOfIterableCached(type, resolver) { + return getCachedIterationTypes(type, resolver.iterableCacheKey); + } + function getIterationTypesOfGlobalIterableType(globalType, resolver) { + const globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) || getIterationTypesOfIterableSlow( + globalType, + resolver, + /*errorNode*/ + void 0, + /*errorOutputContainer*/ + void 0, + /*noCache*/ + false + ); + return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; + } + function getIterationTypesOfIterableFast(type, resolver) { + let globalType; + if (isReferenceToType(type, globalType = resolver.getGlobalIterableType( + /*reportErrors*/ + false + )) || isReferenceToType(type, globalType = resolver.getGlobalIterableIteratorType( + /*reportErrors*/ + false + ))) { + const [yieldType] = getTypeArguments(type); + const { returnType, nextType } = getIterationTypesOfGlobalIterableType(globalType, resolver); + return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( + yieldType, + /*errorNode*/ + void 0 + ) || yieldType, resolver.resolveIterationType( + returnType, + /*errorNode*/ + void 0 + ) || returnType, nextType)); + } + if (isReferenceToType(type, resolver.getGlobalGeneratorType( + /*reportErrors*/ + false + ))) { + const [yieldType, returnType, nextType] = getTypeArguments(type); + return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( + yieldType, + /*errorNode*/ + void 0 + ) || yieldType, resolver.resolveIterationType( + returnType, + /*errorNode*/ + void 0 + ) || returnType, nextType)); + } + } + function getPropertyNameForKnownSymbolName(symbolName2) { + const ctorType = getGlobalESSymbolConstructorSymbol( + /*reportErrors*/ + false + ); + const uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), escapeLeadingUnderscores(symbolName2)); + return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : `__@${symbolName2}`; + } + function getIterationTypesOfIterableSlow(type, resolver, errorNode, errorOutputContainer, noCache) { + const method = getPropertyOfType(type, getPropertyNameForKnownSymbolName(resolver.iteratorSymbolName)); + const methodType = method && !(method.flags & 16777216 /* Optional */) ? getTypeOfSymbol(method) : void 0; + if (isTypeAny(methodType)) { + return noCache ? anyIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes); + } + const signatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : void 0; + if (!some(signatures)) { + return noCache ? noIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes); + } + const iteratorType = getIntersectionType(map(signatures, getReturnTypeOfSignature)); + const iterationTypes = getIterationTypesOfIteratorWorker(iteratorType, resolver, errorNode, errorOutputContainer, noCache) ?? noIterationTypes; + return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes); + } + function reportTypeNotIterableError(errorNode, type, allowAsyncIterables) { + const message = allowAsyncIterables ? Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator : Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator; + const suggestAwait = ( + // for (const x of Promise<...>) or [...Promise<...>] + !!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType( + /*reportErrors*/ + false + ) !== emptyGenericType && isTypeAssignableTo(type, getGlobalAsyncIterableType( + /*reportErrors*/ + false + )) + ); + return errorAndMaybeSuggestAwait(errorNode, suggestAwait, message, typeToString(type)); + } + function getIterationTypesOfIterator(type, resolver, errorNode, errorOutputContainer) { + return getIterationTypesOfIteratorWorker( + type, + resolver, + errorNode, + errorOutputContainer, + /*noCache*/ + false + ); + } + function getIterationTypesOfIteratorWorker(type, resolver, errorNode, errorOutputContainer, noCache) { + if (isTypeAny(type)) { + return anyIterationTypes; + } + let iterationTypes = getIterationTypesOfIteratorCached(type, resolver) || getIterationTypesOfIteratorFast(type, resolver); + if (iterationTypes === noIterationTypes && errorNode) { + iterationTypes = void 0; + noCache = true; + } + iterationTypes ?? (iterationTypes = getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache)); + return iterationTypes === noIterationTypes ? void 0 : iterationTypes; + } + function getIterationTypesOfIteratorCached(type, resolver) { + return getCachedIterationTypes(type, resolver.iteratorCacheKey); + } + function getIterationTypesOfIteratorFast(type, resolver) { + const globalType = resolver.getGlobalIterableIteratorType( + /*reportErrors*/ + false + ); + if (isReferenceToType(type, globalType)) { + const [yieldType] = getTypeArguments(type); + const globalIterationTypes = getIterationTypesOfIteratorCached(globalType, resolver) || getIterationTypesOfIteratorSlow( + globalType, + resolver, + /*errorNode*/ + void 0, + /*errorOutputContainer*/ + void 0, + /*noCache*/ + false + ); + const { returnType, nextType } = globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; + return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); + } + if (isReferenceToType(type, resolver.getGlobalIteratorType( + /*reportErrors*/ + false + )) || isReferenceToType(type, resolver.getGlobalGeneratorType( + /*reportErrors*/ + false + ))) { + const [yieldType, returnType, nextType] = getTypeArguments(type); + return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); + } + } + function isIteratorResult(type, kind) { + const doneType = getTypeOfPropertyOfType(type, "done") || falseType; + return isTypeAssignableTo(kind === 0 /* Yield */ ? falseType : trueType, doneType); + } + function isYieldIteratorResult(type) { + return isIteratorResult(type, 0 /* Yield */); + } + function isReturnIteratorResult(type) { + return isIteratorResult(type, 1 /* Return */); + } + function getIterationTypesOfIteratorResult(type) { + if (isTypeAny(type)) { + return anyIterationTypes; + } + const cachedTypes2 = getCachedIterationTypes(type, "iterationTypesOfIteratorResult"); + if (cachedTypes2) { + return cachedTypes2; + } + if (isReferenceToType(type, getGlobalIteratorYieldResultType( + /*reportErrors*/ + false + ))) { + const yieldType2 = getTypeArguments(type)[0]; + return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( + yieldType2, + /*returnType*/ + void 0, + /*nextType*/ + void 0 + )); + } + if (isReferenceToType(type, getGlobalIteratorReturnResultType( + /*reportErrors*/ + false + ))) { + const returnType2 = getTypeArguments(type)[0]; + return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( + /*yieldType*/ + void 0, + returnType2, + /*nextType*/ + void 0 + )); + } + const yieldIteratorResult = filterType(type, isYieldIteratorResult); + const yieldType = yieldIteratorResult !== neverType ? getTypeOfPropertyOfType(yieldIteratorResult, "value") : void 0; + const returnIteratorResult = filterType(type, isReturnIteratorResult); + const returnType = returnIteratorResult !== neverType ? getTypeOfPropertyOfType(returnIteratorResult, "value") : void 0; + if (!yieldType && !returnType) { + return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", noIterationTypes); + } + return setCachedIterationTypes(type, "iterationTypesOfIteratorResult", createIterationTypes( + yieldType, + returnType || voidType, + /*nextType*/ + void 0 + )); + } + function getIterationTypesOfMethod(type, resolver, methodName, errorNode, errorOutputContainer) { + var _a, _b, _c, _d; + const method = getPropertyOfType(type, methodName); + if (!method && methodName !== "next") { + return void 0; + } + const methodType = method && !(methodName === "next" && method.flags & 16777216 /* Optional */) ? methodName === "next" ? getTypeOfSymbol(method) : getTypeWithFacts(getTypeOfSymbol(method), 2097152 /* NEUndefinedOrNull */) : void 0; + if (isTypeAny(methodType)) { + return methodName === "next" ? anyIterationTypes : anyIterationTypesExceptNext; + } + const methodSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : emptyArray; + if (methodSignatures.length === 0) { + if (errorNode) { + const diagnostic = methodName === "next" ? resolver.mustHaveANextMethodDiagnostic : resolver.mustBeAMethodDiagnostic; + if (errorOutputContainer) { + errorOutputContainer.errors ?? (errorOutputContainer.errors = []); + errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, diagnostic, methodName)); + } else { + error(errorNode, diagnostic, methodName); + } + } + return methodName === "next" ? noIterationTypes : void 0; + } + if ((methodType == null ? void 0 : methodType.symbol) && methodSignatures.length === 1) { + const globalGeneratorType = resolver.getGlobalGeneratorType( + /*reportErrors*/ + false + ); + const globalIteratorType = resolver.getGlobalIteratorType( + /*reportErrors*/ + false + ); + const isGeneratorMethod = ((_b = (_a = globalGeneratorType.symbol) == null ? void 0 : _a.members) == null ? void 0 : _b.get(methodName)) === methodType.symbol; + const isIteratorMethod = !isGeneratorMethod && ((_d = (_c = globalIteratorType.symbol) == null ? void 0 : _c.members) == null ? void 0 : _d.get(methodName)) === methodType.symbol; + if (isGeneratorMethod || isIteratorMethod) { + const globalType = isGeneratorMethod ? globalGeneratorType : globalIteratorType; + const { mapper } = methodType; + return createIterationTypes( + getMappedType(globalType.typeParameters[0], mapper), + getMappedType(globalType.typeParameters[1], mapper), + methodName === "next" ? getMappedType(globalType.typeParameters[2], mapper) : void 0 + ); + } + } + let methodParameterTypes; + let methodReturnTypes; + for (const signature of methodSignatures) { + if (methodName !== "throw" && some(signature.parameters)) { + methodParameterTypes = append(methodParameterTypes, getTypeAtPosition(signature, 0)); + } + methodReturnTypes = append(methodReturnTypes, getReturnTypeOfSignature(signature)); + } + let returnTypes; + let nextType; + if (methodName !== "throw") { + const methodParameterType = methodParameterTypes ? getUnionType(methodParameterTypes) : unknownType; + if (methodName === "next") { + nextType = methodParameterType; + } else if (methodName === "return") { + const resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType; + returnTypes = append(returnTypes, resolvedMethodParameterType); + } + } + let yieldType; + const methodReturnType = methodReturnTypes ? getIntersectionType(methodReturnTypes) : neverType; + const resolvedMethodReturnType = resolver.resolveIterationType(methodReturnType, errorNode) || anyType; + const iterationTypes = getIterationTypesOfIteratorResult(resolvedMethodReturnType); + if (iterationTypes === noIterationTypes) { + if (errorNode) { + if (errorOutputContainer) { + errorOutputContainer.errors ?? (errorOutputContainer.errors = []); + errorOutputContainer.errors.push(createDiagnosticForNode(errorNode, resolver.mustHaveAValueDiagnostic, methodName)); + } else { + error(errorNode, resolver.mustHaveAValueDiagnostic, methodName); + } + } + yieldType = anyType; + returnTypes = append(returnTypes, anyType); + } else { + yieldType = iterationTypes.yieldType; + returnTypes = append(returnTypes, iterationTypes.returnType); + } + return createIterationTypes(yieldType, getUnionType(returnTypes), nextType); + } + function getIterationTypesOfIteratorSlow(type, resolver, errorNode, errorOutputContainer, noCache) { + const iterationTypes = combineIterationTypes([ + getIterationTypesOfMethod(type, resolver, "next", errorNode, errorOutputContainer), + getIterationTypesOfMethod(type, resolver, "return", errorNode, errorOutputContainer), + getIterationTypesOfMethod(type, resolver, "throw", errorNode, errorOutputContainer) + ]); + return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes); + } + function getIterationTypeOfGeneratorFunctionReturnType(kind, returnType, isAsyncGenerator) { + if (isTypeAny(returnType)) { + return void 0; + } + const iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsyncGenerator); + return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(kind)]; + } + function getIterationTypesOfGeneratorFunctionReturnType(type, isAsyncGenerator) { + if (isTypeAny(type)) { + return anyIterationTypes; + } + const use = isAsyncGenerator ? 2 /* AsyncGeneratorReturnType */ : 1 /* GeneratorReturnType */; + const resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver; + return getIterationTypesOfIterable( + type, + use, + /*errorNode*/ + void 0 + ) || getIterationTypesOfIterator( + type, + resolver, + /*errorNode*/ + void 0, + /*errorOutputContainer*/ + void 0 + ); + } + function checkBreakOrContinueStatement(node) { + if (!checkGrammarStatementInAmbientContext(node)) checkGrammarBreakOrContinueStatement(node); + } + function unwrapReturnType(returnType, functionFlags) { + const isGenerator = !!(functionFlags & 1 /* Generator */); + const isAsync = !!(functionFlags & 2 /* Async */); + if (isGenerator) { + const returnIterationType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, isAsync); + if (!returnIterationType) { + return errorType; + } + return isAsync ? getAwaitedTypeNoAlias(unwrapAwaitedType(returnIterationType)) : returnIterationType; + } + return isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : returnType; + } + function isUnwrappedReturnTypeUndefinedVoidOrAny(func, returnType) { + const type = unwrapReturnType(returnType, getFunctionFlags(func)); + return !!(type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))); + } + function checkReturnStatement(node) { + if (checkGrammarStatementInAmbientContext(node)) { + return; + } + const container = getContainingFunctionOrClassStaticBlock(node); + if (container && isClassStaticBlockDeclaration(container)) { + grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block); + return; + } + if (!container) { + grammarErrorOnFirstToken(node, Diagnostics.A_return_statement_can_only_be_used_within_a_function_body); + return; + } + const signature = getSignatureFromDeclaration(container); + const returnType = getReturnTypeOfSignature(signature); + const functionFlags = getFunctionFlags(container); + if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { + const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; + if (container.kind === 178 /* SetAccessor */) { + if (node.expression) { + error(node, Diagnostics.Setters_cannot_return_a_value); + } + } else if (container.kind === 176 /* Constructor */) { + if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { + error(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); + } + } else if (getReturnTypeFromAnnotation(container)) { + const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType; + const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType( + exprType, + /*withAlias*/ + false, + node, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ) : exprType; + if (unwrappedReturnType) { + checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); + } + } + } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { + error(node, Diagnostics.Not_all_code_paths_return_a_value); + } + } + function checkWithStatement(node) { + if (!checkGrammarStatementInAmbientContext(node)) { + if (node.flags & 65536 /* AwaitContext */) { + grammarErrorOnFirstToken(node, Diagnostics.with_statements_are_not_allowed_in_an_async_function_block); + } + } + checkExpression(node.expression); + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + const start = getSpanOfTokenAtPosition(sourceFile, node.pos).start; + const end = node.statement.pos; + grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any); + } + } + function checkSwitchStatement(node) { + checkGrammarStatementInAmbientContext(node); + let firstDefaultClause; + let hasDuplicateDefaultClause = false; + const expressionType = checkExpression(node.expression); + forEach(node.caseBlock.clauses, (clause) => { + if (clause.kind === 297 /* DefaultClause */ && !hasDuplicateDefaultClause) { + if (firstDefaultClause === void 0) { + firstDefaultClause = clause; + } else { + grammarErrorOnNode(clause, Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement); + hasDuplicateDefaultClause = true; + } + } + if (clause.kind === 296 /* CaseClause */) { + addLazyDiagnostic(createLazyCaseClauseDiagnostics(clause)); + } + forEach(clause.statements, checkSourceElement); + if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) { + error(clause, Diagnostics.Fallthrough_case_in_switch); + } + function createLazyCaseClauseDiagnostics(clause2) { + return () => { + const caseType = checkExpression(clause2.expression); + if (!isTypeEqualityComparableTo(expressionType, caseType)) { + checkTypeComparableTo( + caseType, + expressionType, + clause2.expression, + /*headMessage*/ + void 0 + ); + } + }; + } + }); + if (node.caseBlock.locals) { + registerForUnusedIdentifiersCheck(node.caseBlock); + } + } + function checkLabeledStatement(node) { + if (!checkGrammarStatementInAmbientContext(node)) { + findAncestor(node.parent, (current) => { + if (isFunctionLike(current)) { + return "quit"; + } + if (current.kind === 256 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) { + grammarErrorOnNode(node.label, Diagnostics.Duplicate_label_0, getTextOfNode(node.label)); + return true; + } + return false; + }); + } + checkSourceElement(node.statement); + } + function checkThrowStatement(node) { + if (!checkGrammarStatementInAmbientContext(node)) { + if (isIdentifier(node.expression) && !node.expression.escapedText) { + grammarErrorAfterFirstToken(node, Diagnostics.Line_break_not_permitted_here); + } + } + if (node.expression) { + checkExpression(node.expression); + } + } + function checkTryStatement(node) { + checkGrammarStatementInAmbientContext(node); + checkBlock(node.tryBlock); + const catchClause = node.catchClause; + if (catchClause) { + if (catchClause.variableDeclaration) { + const declaration = catchClause.variableDeclaration; + checkVariableLikeDeclaration(declaration); + const typeNode = getEffectiveTypeAnnotationNode(declaration); + if (typeNode) { + const type = getTypeFromTypeNode(typeNode); + if (type && !(type.flags & 3 /* AnyOrUnknown */)) { + grammarErrorOnFirstToken(typeNode, Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified); + } + } else if (declaration.initializer) { + grammarErrorOnFirstToken(declaration.initializer, Diagnostics.Catch_clause_variable_cannot_have_an_initializer); + } else { + const blockLocals = catchClause.block.locals; + if (blockLocals) { + forEachKey(catchClause.locals, (caughtName) => { + const blockLocal = blockLocals.get(caughtName); + if ((blockLocal == null ? void 0 : blockLocal.valueDeclaration) && (blockLocal.flags & 2 /* BlockScopedVariable */) !== 0) { + grammarErrorOnNode(blockLocal.valueDeclaration, Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, unescapeLeadingUnderscores(caughtName)); + } + }); + } + } + } + checkBlock(catchClause.block); + } + if (node.finallyBlock) { + checkBlock(node.finallyBlock); + } + } + function checkIndexConstraints(type, symbol, isStaticIndex) { + const indexInfos = getIndexInfosOfType(type); + if (indexInfos.length === 0) { + return; + } + for (const prop of getPropertiesOfObjectType(type)) { + if (!(isStaticIndex && prop.flags & 4194304 /* Prototype */)) { + checkIndexConstraintForProperty(type, prop, getLiteralTypeFromProperty( + prop, + 8576 /* StringOrNumberLiteralOrUnique */, + /*includeNonPublic*/ + true + ), getNonMissingTypeOfSymbol(prop)); + } + } + const typeDeclaration = symbol.valueDeclaration; + if (typeDeclaration && isClassLike(typeDeclaration)) { + for (const member of typeDeclaration.members) { + if (!isStatic(member) && !hasBindableName(member)) { + const symbol2 = getSymbolOfDeclaration(member); + checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2)); + } + } + } + if (indexInfos.length > 1) { + for (const info of indexInfos) { + checkIndexConstraintForIndexSignature(type, info); + } + } + } + function checkIndexConstraintForProperty(type, prop, propNameType, propType) { + const declaration = prop.valueDeclaration; + const name = getNameOfDeclaration(declaration); + if (name && isPrivateIdentifier(name)) { + return; + } + const indexInfos = getApplicableIndexInfos(type, propNameType); + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const propDeclaration = declaration && declaration.kind === 226 /* BinaryExpression */ || name && name.kind === 167 /* ComputedPropertyName */ ? declaration : void 0; + const localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : void 0; + for (const info of indexInfos) { + const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; + const errorNode = localPropDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); + if (errorNode && !isTypeAssignableTo(propType, info.type)) { + const diagnostic = createError(errorNode, Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type)); + if (propDeclaration && errorNode !== propDeclaration) { + addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop))); + } + diagnostics.add(diagnostic); + } + } + } + function checkIndexConstraintForIndexSignature(type, checkInfo) { + const declaration = checkInfo.declaration; + const indexInfos = getApplicableIndexInfos(type, checkInfo.keyType); + const interfaceDeclaration = getObjectFlags(type) & 2 /* Interface */ ? getDeclarationOfKind(type.symbol, 264 /* InterfaceDeclaration */) : void 0; + const localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfDeclaration(declaration)) === type.symbol ? declaration : void 0; + for (const info of indexInfos) { + if (info === checkInfo) continue; + const localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfDeclaration(info.declaration)) === type.symbol ? info.declaration : void 0; + const errorNode = localCheckDeclaration || localIndexDeclaration || (interfaceDeclaration && !some(getBaseTypes(type), (base) => !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType)) ? interfaceDeclaration : void 0); + if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) { + error(errorNode, Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), typeToString(checkInfo.type), typeToString(info.keyType), typeToString(info.type)); + } + } + } + function checkTypeNameIsReserved(name, message) { + switch (name.escapedText) { + case "any": + case "unknown": + case "never": + case "number": + case "bigint": + case "boolean": + case "string": + case "symbol": + case "void": + case "object": + case "undefined": + error(name, message, name.escapedText); + } + } + function checkClassNameCollisionWithObject(name) { + if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(name).impliedNodeFormat === 1 /* CommonJS */)) { + error(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); + } + } + function checkUnmatchedJSDocParameters(node) { + const jsdocParameters = filter(getJSDocTags(node), isJSDocParameterTag); + if (!length(jsdocParameters)) return; + const isJs = isInJSFile(node); + const parameters = /* @__PURE__ */ new Set(); + const excludedParameters = /* @__PURE__ */ new Set(); + forEach(node.parameters, ({ name }, index) => { + if (isIdentifier(name)) { + parameters.add(name.escapedText); + } + if (isBindingPattern(name)) { + excludedParameters.add(index); + } + }); + const containsArguments = containsArgumentsReference(node); + if (containsArguments) { + const lastJSDocParamIndex = jsdocParameters.length - 1; + const lastJSDocParam = jsdocParameters[lastJSDocParamIndex]; + if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) { + error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name)); + } + } else { + forEach(jsdocParameters, ({ name, isNameFirst }, index) => { + if (excludedParameters.has(index) || isIdentifier(name) && parameters.has(name.escapedText)) { + return; + } + if (isQualifiedName(name)) { + if (isJs) { + error(name, Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, entityNameToString(name), entityNameToString(name.left)); + } + } else { + if (!isNameFirst) { + errorOrSuggestion(isJs, name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, idText(name)); + } + } + }); + } + } + function checkTypeParameters(typeParameterDeclarations) { + let seenDefault = false; + if (typeParameterDeclarations) { + for (let i = 0; i < typeParameterDeclarations.length; i++) { + const node = typeParameterDeclarations[i]; + checkTypeParameter(node); + addLazyDiagnostic(createCheckTypeParameterDiagnostic(node, i)); + } + } + function createCheckTypeParameterDiagnostic(node, i) { + return () => { + if (node.default) { + seenDefault = true; + checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i); + } else if (seenDefault) { + error(node, Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters); + } + for (let j = 0; j < i; j++) { + if (typeParameterDeclarations[j].symbol === node.symbol) { + error(node.name, Diagnostics.Duplicate_identifier_0, declarationNameToString(node.name)); + } + } + }; + } + } + function checkTypeParametersNotReferenced(root, typeParameters, index) { + visit(root); + function visit(node) { + if (node.kind === 183 /* TypeReference */) { + const type = getTypeFromTypeReference(node); + if (type.flags & 262144 /* TypeParameter */) { + for (let i = index; i < typeParameters.length; i++) { + if (type.symbol === getSymbolOfDeclaration(typeParameters[i])) { + error(node, Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters); + } + } + } + } + forEachChild(node, visit); + } + } + function checkTypeParameterListsIdentical(symbol) { + if (symbol.declarations && symbol.declarations.length === 1) { + return; + } + const links = getSymbolLinks(symbol); + if (!links.typeParametersChecked) { + links.typeParametersChecked = true; + const declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol); + if (!declarations || declarations.length <= 1) { + return; + } + const type = getDeclaredTypeOfSymbol(symbol); + if (!areTypeParametersIdentical(declarations, type.localTypeParameters, getEffectiveTypeParameterDeclarations)) { + const name = symbolToString(symbol); + for (const declaration of declarations) { + error(declaration.name, Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name); + } + } + } + } + function areTypeParametersIdentical(declarations, targetParameters, getTypeParameterDeclarations) { + const maxTypeArgumentCount = length(targetParameters); + const minTypeArgumentCount = getMinTypeArgumentCount(targetParameters); + for (const declaration of declarations) { + const sourceParameters = getTypeParameterDeclarations(declaration); + const numTypeParameters = sourceParameters.length; + if (numTypeParameters < minTypeArgumentCount || numTypeParameters > maxTypeArgumentCount) { + return false; + } + for (let i = 0; i < numTypeParameters; i++) { + const source = sourceParameters[i]; + const target = targetParameters[i]; + if (source.name.escapedText !== target.symbol.escapedName) { + return false; + } + const constraint = getEffectiveConstraintOfTypeParameter(source); + const sourceConstraint = constraint && getTypeFromTypeNode(constraint); + const targetConstraint = getConstraintOfTypeParameter(target); + if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) { + return false; + } + const sourceDefault = source.default && getTypeFromTypeNode(source.default); + const targetDefault = getDefaultFromTypeParameter(target); + if (sourceDefault && targetDefault && !isTypeIdenticalTo(sourceDefault, targetDefault)) { + return false; + } + } + } + return true; + } + function getFirstTransformableStaticClassElement(node) { + const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + ); + const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */; + const willTransformInitializers = !emitStandardClassFields; + if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { + for (const member of node.members) { + if (willTransformStaticElementsOfDecoratedClass && classElementOrClassElementParameterIsDecorated( + /*useLegacyDecorators*/ + false, + member, + node + )) { + return firstOrUndefined(getDecorators(node)) ?? node; + } else if (willTransformPrivateElementsOrClassStaticBlocks) { + if (isClassStaticBlockDeclaration(member)) { + return member; + } else if (isStatic(member)) { + if (isPrivateIdentifierClassElementDeclaration(member) || willTransformInitializers && isInitializedProperty(member)) { + return member; + } + } + } + } + } + } + function checkClassExpressionExternalHelpers(node) { + if (node.name) return; + const parent = walkUpOuterExpressions(node); + if (!isNamedEvaluationSource(parent)) return; + const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */; + let location; + if (willTransformESDecorators && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + location = firstOrUndefined(getDecorators(node)) ?? node; + } else { + location = getFirstTransformableStaticClassElement(node); + } + if (location) { + checkExternalEmitHelpers(location, 4194304 /* SetFunctionName */); + if ((isPropertyAssignment(parent) || isPropertyDeclaration(parent) || isBindingElement(parent)) && isComputedPropertyName(parent.name)) { + checkExternalEmitHelpers(location, 8388608 /* PropKey */); + } + } + } + function checkClassExpression(node) { + checkClassLikeDeclaration(node); + checkNodeDeferred(node); + checkClassExpressionExternalHelpers(node); + return getTypeOfSymbol(getSymbolOfDeclaration(node)); + } + function checkClassExpressionDeferred(node) { + forEach(node.members, checkSourceElement); + registerForUnusedIdentifiersCheck(node); + } + function checkClassDeclaration(node) { + const firstDecorator = find(node.modifiers, isDecorator); + if (legacyDecorators && firstDecorator && some(node.members, (p) => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) { + grammarErrorOnNode(firstDecorator, Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator); + } + if (!node.name && !hasSyntacticModifier(node, 2048 /* Default */)) { + grammarErrorOnFirstToken(node, Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name); + } + checkClassLikeDeclaration(node); + forEach(node.members, checkSourceElement); + registerForUnusedIdentifiersCheck(node); + } + function checkClassLikeDeclaration(node) { + checkGrammarClassLikeDeclaration(node); + checkDecorators(node); + checkCollisionsForDeclarationName(node, node.name); + checkTypeParameters(getEffectiveTypeParameterDeclarations(node)); + checkExportsOnMergedDeclarations(node); + const symbol = getSymbolOfDeclaration(node); + const type = getDeclaredTypeOfSymbol(symbol); + const typeWithThis = getTypeWithThisArgument(type); + const staticType = getTypeOfSymbol(symbol); + checkTypeParameterListsIdentical(symbol); + checkFunctionOrConstructorSymbol(symbol); + checkClassForDuplicateDeclarations(node); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); + if (!nodeInAmbientContext) { + checkClassForStaticPropertyNameConflicts(node); + } + const baseTypeNode = getEffectiveBaseTypeNode(node); + if (baseTypeNode) { + forEach(baseTypeNode.typeArguments, checkSourceElement); + if (languageVersion < 2 /* Classes */) { + checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */); + } + const extendsNode = getClassExtendsHeritageElement(node); + if (extendsNode && extendsNode !== baseTypeNode) { + checkExpression(extendsNode.expression); + } + const baseTypes = getBaseTypes(type); + if (baseTypes.length) { + addLazyDiagnostic(() => { + const baseType = baseTypes[0]; + const baseConstructorType = getBaseConstructorTypeOfClass(type); + const staticBaseType = getApparentType(baseConstructorType); + checkBaseTypeAccessibility(staticBaseType, baseTypeNode); + checkSourceElement(baseTypeNode.expression); + if (some(baseTypeNode.typeArguments)) { + forEach(baseTypeNode.typeArguments, checkSourceElement); + for (const constructor of getConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode)) { + if (!checkTypeArgumentConstraints(baseTypeNode, constructor.typeParameters)) { + break; + } + } + } + const baseWithThis = getTypeWithThisArgument(baseType, type.thisType); + if (!checkTypeAssignableTo( + typeWithThis, + baseWithThis, + /*errorNode*/ + void 0 + )) { + issueMemberSpecificError(node, typeWithThis, baseWithThis, Diagnostics.Class_0_incorrectly_extends_base_class_1); + } else { + checkTypeAssignableTo(staticType, getTypeWithoutSignatures(staticBaseType), node.name || node, Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1); + } + if (baseConstructorType.flags & 8650752 /* TypeVariable */) { + if (!isMixinConstructorType(staticType)) { + error(node.name || node, Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any); + } else { + const constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */); + if (constructSignatures.some((signature) => signature.flags & 4 /* Abstract */) && !hasSyntacticModifier(node, 64 /* Abstract */)) { + error(node.name || node, Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract); + } + } + } + if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) { + const constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); + if (forEach(constructors, (sig) => !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType))) { + error(baseTypeNode.expression, Diagnostics.Base_constructors_must_all_have_the_same_return_type); + } + } + checkKindsOfPropertyMemberOverrides(type, baseType); + }); + } + } + checkMembersForOverrideModifier(node, type, typeWithThis, staticType); + const implementedTypeNodes = getEffectiveImplementsTypeNodes(node); + if (implementedTypeNodes) { + for (const typeRefNode of implementedTypeNodes) { + if (!isEntityNameExpression(typeRefNode.expression) || isOptionalChain(typeRefNode.expression)) { + error(typeRefNode.expression, Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments); + } + checkTypeReferenceNode(typeRefNode); + addLazyDiagnostic(createImplementsDiagnostics(typeRefNode)); + } + } + addLazyDiagnostic(() => { + checkIndexConstraints(type, symbol); + checkIndexConstraints( + staticType, + symbol, + /*isStaticIndex*/ + true + ); + checkTypeForDuplicateIndexSignatures(node); + checkPropertyInitialization(node); + }); + function createImplementsDiagnostics(typeRefNode) { + return () => { + const t = getReducedType(getTypeFromTypeNode(typeRefNode)); + if (!isErrorType(t)) { + if (isValidBaseType(t)) { + const genericDiag = t.symbol && t.symbol.flags & 32 /* Class */ ? Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass : Diagnostics.Class_0_incorrectly_implements_interface_1; + const baseWithThis = getTypeWithThisArgument(t, type.thisType); + if (!checkTypeAssignableTo( + typeWithThis, + baseWithThis, + /*errorNode*/ + void 0 + )) { + issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag); + } + } else { + error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members); + } + } + }; + } + } + function checkMembersForOverrideModifier(node, type, typeWithThis, staticType) { + const baseTypeNode = getEffectiveBaseTypeNode(node); + const baseTypes = baseTypeNode && getBaseTypes(type); + const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0; + const baseStaticType = getBaseConstructorTypeOfClass(type); + for (const member of node.members) { + if (hasAmbientModifier(member)) { + continue; + } + if (isConstructorDeclaration(member)) { + forEach(member.parameters, (param) => { + if (isParameterPropertyDeclaration(param, member)) { + checkExistingMemberForOverrideModifier( + node, + staticType, + baseStaticType, + baseWithThis, + type, + typeWithThis, + param, + /*memberIsParameterProperty*/ + true + ); + } + }); + } + checkExistingMemberForOverrideModifier( + node, + staticType, + baseStaticType, + baseWithThis, + type, + typeWithThis, + member, + /*memberIsParameterProperty*/ + false + ); + } + } + function checkExistingMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, member, memberIsParameterProperty, reportErrors2 = true) { + const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member); + if (!declaredProp) { + return 0 /* Ok */; + } + return checkMemberForOverrideModifier( + node, + staticType, + baseStaticType, + baseWithThis, + type, + typeWithThis, + hasOverrideModifier(member), + hasAbstractModifier(member), + isStatic(member), + memberIsParameterProperty, + symbolName(declaredProp), + reportErrors2 ? member : void 0 + ); + } + function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { + const isJs = isInJSFile(node); + const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); + if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { + const memberEscapedName = escapeLeadingUnderscores(memberName); + const thisType = memberIsStatic ? staticType : typeWithThis; + const baseType = memberIsStatic ? baseStaticType : baseWithThis; + const prop = getPropertyOfType(thisType, memberEscapedName); + const baseProp = getPropertyOfType(baseType, memberEscapedName); + const baseClassName = typeToString(baseWithThis); + if (prop && !baseProp && memberHasOverrideModifier) { + if (errorNode) { + const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType); + suggestion ? error( + errorNode, + isJs ? Diagnostics.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 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, + baseClassName, + symbolToString(suggestion) + ) : error( + errorNode, + isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, + baseClassName + ); + } + return 2 /* HasInvalidOverride */; + } else if (prop && (baseProp == null ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) { + const baseHasAbstract = some(baseProp.declarations, hasAbstractModifier); + if (memberHasOverrideModifier) { + return 0 /* Ok */; + } + if (!baseHasAbstract) { + if (errorNode) { + const diag2 = memberIsParameterProperty ? isJs ? Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 : isJs ? Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 : Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0; + error(errorNode, diag2, baseClassName); + } + return 1 /* NeedsOverride */; + } else if (memberHasAbstractModifier && baseHasAbstract) { + if (errorNode) { + error(errorNode, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName); + } + return 1 /* NeedsOverride */; + } + } + } else if (memberHasOverrideModifier) { + if (errorNode) { + const className = typeToString(type); + error( + errorNode, + isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, + className + ); + } + return 2 /* HasInvalidOverride */; + } + return 0 /* Ok */; + } + function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) { + let issuedMemberError = false; + for (const member of node.members) { + if (isStatic(member)) { + continue; + } + const declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member); + if (declaredProp) { + const prop = getPropertyOfType(typeWithThis, declaredProp.escapedName); + const baseProp = getPropertyOfType(baseWithThis, declaredProp.escapedName); + if (prop && baseProp) { + const rootChain = () => chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, + symbolToString(declaredProp), + typeToString(typeWithThis), + typeToString(baseWithThis) + ); + if (!checkTypeAssignableTo( + getTypeOfSymbol(prop), + getTypeOfSymbol(baseProp), + member.name || member, + /*headMessage*/ + void 0, + rootChain + )) { + issuedMemberError = true; + } + } + } + } + if (!issuedMemberError) { + checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag); + } + } + function checkBaseTypeAccessibility(type, node) { + const signatures = getSignaturesOfType(type, 1 /* Construct */); + if (signatures.length) { + const declaration = signatures[0].declaration; + if (declaration && hasEffectiveModifier(declaration, 2 /* Private */)) { + const typeClassDeclaration = getClassLikeDeclarationOfSymbol(type.symbol); + if (!isNodeWithinClass(node, typeClassDeclaration)) { + error(node, Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol)); + } + } + } + } + function getMemberOverrideModifierStatus(node, member, memberSymbol) { + if (!member.name) { + return 0 /* Ok */; + } + const classSymbol = getSymbolOfDeclaration(node); + const type = getDeclaredTypeOfSymbol(classSymbol); + const typeWithThis = getTypeWithThisArgument(type); + const staticType = getTypeOfSymbol(classSymbol); + const baseTypeNode = getEffectiveBaseTypeNode(node); + const baseTypes = baseTypeNode && getBaseTypes(type); + const baseWithThis = (baseTypes == null ? void 0 : baseTypes.length) ? getTypeWithThisArgument(first(baseTypes), type.thisType) : void 0; + const baseStaticType = getBaseConstructorTypeOfClass(type); + const memberHasOverrideModifier = member.parent ? hasOverrideModifier(member) : hasSyntacticModifier(member, 16 /* Override */); + return checkMemberForOverrideModifier( + node, + staticType, + baseStaticType, + baseWithThis, + type, + typeWithThis, + memberHasOverrideModifier, + hasAbstractModifier(member), + isStatic(member), + /*memberIsParameterProperty*/ + false, + symbolName(memberSymbol) + ); + } + function getTargetSymbol(s) { + return getCheckFlags(s) & 1 /* Instantiated */ ? s.links.target : s; + } + function getClassOrInterfaceDeclarationsOfSymbol(symbol) { + return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */); + } + function checkKindsOfPropertyMemberOverrides(type, baseType) { + var _a, _b, _c, _d, _e; + const baseProperties = getPropertiesOfType(baseType); + const notImplementedInfo = /* @__PURE__ */ new Map(); + basePropertyCheck: for (const baseProperty of baseProperties) { + const base = getTargetSymbol(baseProperty); + if (base.flags & 4194304 /* Prototype */) { + continue; + } + const baseSymbol = getPropertyOfObjectType(type, base.escapedName); + if (!baseSymbol) { + continue; + } + const derived = getTargetSymbol(baseSymbol); + const baseDeclarationFlags = getDeclarationModifierFlagsFromSymbol(base); + Debug.assert(!!derived, "derived should point to something, even if it is the base class' declaration."); + if (derived === base) { + const derivedClassDecl = getClassLikeDeclarationOfSymbol(type.symbol); + if (baseDeclarationFlags & 64 /* Abstract */ && (!derivedClassDecl || !hasSyntacticModifier(derivedClassDecl, 64 /* Abstract */))) { + for (const otherBaseType of getBaseTypes(type)) { + if (otherBaseType === baseType) continue; + const baseSymbol2 = getPropertyOfObjectType(otherBaseType, base.escapedName); + const derivedElsewhere = baseSymbol2 && getTargetSymbol(baseSymbol2); + if (derivedElsewhere && derivedElsewhere !== base) { + continue basePropertyCheck; + } + } + const baseTypeName = typeToString(baseType); + const typeName = typeToString(type); + const basePropertyName = symbolToString(baseProperty); + const missedProperties = append((_a = notImplementedInfo.get(derivedClassDecl)) == null ? void 0 : _a.missedProperties, basePropertyName); + notImplementedInfo.set(derivedClassDecl, { baseTypeName, typeName, missedProperties }); + } + } else { + const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived); + if (baseDeclarationFlags & 2 /* Private */ || derivedDeclarationFlags & 2 /* Private */) { + continue; + } + let errorMessage; + const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */; + const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */; + if (basePropertyFlags && derivedPropertyFlags) { + if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_b = base.declarations) == null ? void 0 : _b.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_c = base.declarations) == null ? void 0 : _c.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) { + continue; + } + const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */; + const overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */; + if (overriddenInstanceProperty || overriddenInstanceAccessor) { + const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor; + error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type)); + } else if (useDefineForClassFields) { + const uninitialized = (_d = derived.declarations) == null ? void 0 : _d.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer); + if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_e = derived.declarations) == null ? void 0 : _e.some((d) => !!(d.flags & 33554432 /* Ambient */)))) { + const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol)); + const propName = uninitialized.name; + if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) { + const errorMessage2 = Diagnostics.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; + error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType)); + } + } + } + continue; + } else if (isPrototypeProperty(base)) { + if (isPrototypeProperty(derived) || derived.flags & 4 /* Property */) { + continue; + } else { + Debug.assert(!!(derived.flags & 98304 /* Accessor */)); + errorMessage = Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor; + } + } else if (base.flags & 98304 /* Accessor */) { + errorMessage = Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function; + } else { + errorMessage = Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function; + } + error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type)); + } + } + for (const [errorNode, memberInfo] of notImplementedInfo) { + if (length(memberInfo.missedProperties) === 1) { + if (isClassExpression(errorNode)) { + error(errorNode, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, first(memberInfo.missedProperties), memberInfo.baseTypeName); + } else { + error(errorNode, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, memberInfo.typeName, first(memberInfo.missedProperties), memberInfo.baseTypeName); + } + } else if (length(memberInfo.missedProperties) > 5) { + const missedProperties = map(memberInfo.missedProperties.slice(0, 4), (prop) => `'${prop}'`).join(", "); + const remainingMissedProperties = length(memberInfo.missedProperties) - 4; + if (isClassExpression(errorNode)) { + error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more, memberInfo.baseTypeName, missedProperties, remainingMissedProperties); + } else { + error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more, memberInfo.typeName, memberInfo.baseTypeName, missedProperties, remainingMissedProperties); + } + } else { + const missedProperties = map(memberInfo.missedProperties, (prop) => `'${prop}'`).join(", "); + if (isClassExpression(errorNode)) { + error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1, memberInfo.baseTypeName, missedProperties); + } else { + error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2, memberInfo.typeName, memberInfo.baseTypeName, missedProperties); + } + } + } + } + function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) { + return baseDeclarationFlags & 64 /* Abstract */ && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent); + } + function getNonInheritedProperties(type, baseTypes, properties) { + if (!length(baseTypes)) { + return properties; + } + const seen = /* @__PURE__ */ new Map(); + forEach(properties, (p) => { + seen.set(p.escapedName, p); + }); + for (const base of baseTypes) { + const properties2 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType)); + for (const prop of properties2) { + const existing = seen.get(prop.escapedName); + if (existing && prop.parent === existing.parent) { + seen.delete(prop.escapedName); + } + } + } + return arrayFrom(seen.values()); + } + function checkInheritedPropertiesAreIdentical(type, typeNode) { + const baseTypes = getBaseTypes(type); + if (baseTypes.length < 2) { + return true; + } + const seen = /* @__PURE__ */ new Map(); + forEach(resolveDeclaredMembers(type).declaredProperties, (p) => { + seen.set(p.escapedName, { prop: p, containingType: type }); + }); + let ok = true; + for (const base of baseTypes) { + const properties = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType)); + for (const prop of properties) { + const existing = seen.get(prop.escapedName); + if (!existing) { + seen.set(prop.escapedName, { prop, containingType: base }); + } else { + const isInheritedProperty = existing.containingType !== type; + if (isInheritedProperty && !isPropertyIdenticalTo(existing.prop, prop)) { + ok = false; + const typeName1 = typeToString(existing.containingType); + const typeName2 = typeToString(base); + let errorInfo = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, + symbolToString(prop), + typeName1, + typeName2 + ); + errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, typeToString(type), typeName1, typeName2); + diagnostics.add(createDiagnosticForNodeFromMessageChain(getSourceFileOfNode(typeNode), typeNode, errorInfo)); + } + } + } + } + return ok; + } + function checkPropertyInitialization(node) { + if (!strictNullChecks || !strictPropertyInitialization || node.flags & 33554432 /* Ambient */) { + return; + } + const constructor = findConstructorDeclaration(node); + for (const member of node.members) { + if (getEffectiveModifierFlags(member) & 128 /* Ambient */) { + continue; + } + if (!isStatic(member) && isPropertyWithoutInitializer(member)) { + const propName = member.name; + if (isIdentifier(propName) || isPrivateIdentifier(propName) || isComputedPropertyName(propName)) { + const type = getTypeOfSymbol(getSymbolOfDeclaration(member)); + if (!(type.flags & 3 /* AnyOrUnknown */ || containsUndefinedType(type))) { + if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) { + error(member.name, Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, declarationNameToString(propName)); + } + } + } + } + } + } + function isPropertyWithoutInitializer(node) { + return node.kind === 172 /* PropertyDeclaration */ && !hasAbstractModifier(node) && !node.exclamationToken && !node.initializer; + } + function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) { + for (const staticBlock of staticBlocks) { + if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) { + const reference = factory.createPropertyAccessExpression(factory.createThis(), propName); + setParent(reference.expression, reference); + setParent(reference, staticBlock); + reference.flowNode = staticBlock.returnFlowNode; + const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType)); + if (!containsUndefinedType(flowType)) { + return true; + } + } + } + return false; + } + function isPropertyInitializedInConstructor(propName, propType, constructor) { + const reference = isComputedPropertyName(propName) ? factory.createElementAccessExpression(factory.createThis(), propName.expression) : factory.createPropertyAccessExpression(factory.createThis(), propName); + setParent(reference.expression, reference); + setParent(reference, constructor); + reference.flowNode = constructor.returnFlowNode; + const flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType)); + return !containsUndefinedType(flowType); + } + function checkInterfaceDeclaration(node) { + if (!checkGrammarModifiers(node)) checkGrammarInterfaceDeclaration(node); + checkTypeParameters(node.typeParameters); + addLazyDiagnostic(() => { + checkTypeNameIsReserved(node.name, Diagnostics.Interface_name_cannot_be_0); + checkExportsOnMergedDeclarations(node); + const symbol = getSymbolOfDeclaration(node); + checkTypeParameterListsIdentical(symbol); + const firstInterfaceDecl = getDeclarationOfKind(symbol, 264 /* InterfaceDeclaration */); + if (node === firstInterfaceDecl) { + const type = getDeclaredTypeOfSymbol(symbol); + const typeWithThis = getTypeWithThisArgument(type); + if (checkInheritedPropertiesAreIdentical(type, node.name)) { + for (const baseType of getBaseTypes(type)) { + checkTypeAssignableTo(typeWithThis, getTypeWithThisArgument(baseType, type.thisType), node.name, Diagnostics.Interface_0_incorrectly_extends_interface_1); + } + checkIndexConstraints(type, symbol); + } + } + checkObjectTypeForDuplicateDeclarations(node); + }); + forEach(getInterfaceBaseTypeNodes(node), (heritageElement) => { + if (!isEntityNameExpression(heritageElement.expression) || isOptionalChain(heritageElement.expression)) { + error(heritageElement.expression, Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments); + } + checkTypeReferenceNode(heritageElement); + }); + forEach(node.members, checkSourceElement); + addLazyDiagnostic(() => { + checkTypeForDuplicateIndexSignatures(node); + registerForUnusedIdentifiersCheck(node); + }); + } + function checkTypeAliasDeclaration(node) { + checkGrammarModifiers(node); + checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); + checkExportsOnMergedDeclarations(node); + checkTypeParameters(node.typeParameters); + if (node.type.kind === 141 /* IntrinsicKeyword */) { + if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) { + error(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); + } + } else { + checkSourceElement(node.type); + registerForUnusedIdentifiersCheck(node); + } + } + function computeEnumMemberValues(node) { + const nodeLinks2 = getNodeLinks(node); + if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) { + nodeLinks2.flags |= 1024 /* EnumValuesComputed */; + let autoValue = 0; + let previous; + for (const member of node.members) { + const result = computeEnumMemberValue(member, autoValue, previous); + getNodeLinks(member).enumMemberValue = result; + autoValue = typeof result.value === "number" ? result.value + 1 : void 0; + previous = member; + } + } + } + function computeEnumMemberValue(member, autoValue, previous) { + if (isComputedNonLiteralName(member.name)) { + error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums); + } else { + const text = getTextOfPropertyName(member.name); + if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) { + error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name); + } + } + if (member.initializer) { + return computeConstantEnumMemberValue(member); + } + if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) { + return evaluatorResult( + /*value*/ + void 0 + ); + } + if (autoValue === void 0) { + error(member.name, Diagnostics.Enum_member_must_have_initializer); + return evaluatorResult( + /*value*/ + void 0 + ); + } + if (getIsolatedModules(compilerOptions) && (previous == null ? void 0 : previous.initializer)) { + const prevValue = getEnumMemberValue(previous); + if (!(typeof prevValue.value === "number" && !prevValue.resolvedOtherFiles)) { + error( + member.name, + Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled + ); + } + } + return evaluatorResult(autoValue); + } + function computeConstantEnumMemberValue(member) { + const isConstEnum = isEnumConst(member.parent); + const initializer = member.initializer; + const result = evaluate(initializer, member); + if (result.value !== void 0) { + if (isConstEnum && typeof result.value === "number" && !isFinite(result.value)) { + error( + initializer, + isNaN(result.value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value + ); + } else if (getIsolatedModules(compilerOptions) && typeof result.value === "string" && !result.isSyntacticallyString) { + error( + initializer, + Diagnostics._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled, + `${idText(member.parent.name)}.${getTextOfPropertyName(member.name)}` + ); + } + } else if (isConstEnum) { + error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions); + } else if (member.parent.flags & 33554432 /* Ambient */) { + error(initializer, Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression); + } else { + checkTypeAssignableTo(checkExpression(initializer), numberType, initializer, Diagnostics.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values); + } + return result; + } + function evaluateEntityNameExpression(expr, location) { + const symbol = resolveEntityName( + expr, + 111551 /* Value */, + /*ignoreErrors*/ + true + ); + if (!symbol) return evaluatorResult( + /*value*/ + void 0 + ); + if (expr.kind === 80 /* Identifier */) { + const identifier = expr; + if (isInfinityOrNaNString(identifier.escapedText) && symbol === getGlobalSymbol( + identifier.escapedText, + 111551 /* Value */, + /*diagnostic*/ + void 0 + )) { + return evaluatorResult( + +identifier.escapedText, + /*isSyntacticallyString*/ + false + ); + } + } + if (symbol.flags & 8 /* EnumMember */) { + return location ? evaluateEnumMember(expr, symbol, location) : getEnumMemberValue(symbol.valueDeclaration); + } + if (isConstantVariable(symbol)) { + const declaration = symbol.valueDeclaration; + if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) { + const result = evaluate(declaration.initializer, declaration); + if (location && getSourceFileOfNode(location) !== getSourceFileOfNode(declaration)) { + return evaluatorResult( + result.value, + /*isSyntacticallyString*/ + false, + /*resolvedOtherFiles*/ + true, + /*hasExternalReferences*/ + true + ); + } + return evaluatorResult( + result.value, + result.isSyntacticallyString, + result.resolvedOtherFiles, + /*hasExternalReferences*/ + true + ); + } + } + return evaluatorResult( + /*value*/ + void 0 + ); + } + function evaluateElementAccessExpression(expr, location) { + const root = expr.expression; + if (isEntityNameExpression(root) && isStringLiteralLike(expr.argumentExpression)) { + const rootSymbol = resolveEntityName( + root, + 111551 /* Value */, + /*ignoreErrors*/ + true + ); + if (rootSymbol && rootSymbol.flags & 384 /* Enum */) { + const name = escapeLeadingUnderscores(expr.argumentExpression.text); + const member = rootSymbol.exports.get(name); + if (member) { + Debug.assert(getSourceFileOfNode(member.valueDeclaration) === getSourceFileOfNode(rootSymbol.valueDeclaration)); + return location ? evaluateEnumMember(expr, member, location) : getEnumMemberValue(member.valueDeclaration); + } + } + } + return evaluatorResult( + /*value*/ + void 0 + ); + } + function evaluateEnumMember(expr, symbol, location) { + const declaration = symbol.valueDeclaration; + if (!declaration || declaration === location) { + error(expr, Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(symbol)); + return evaluatorResult( + /*value*/ + void 0 + ); + } + if (!isBlockScopedNameDeclaredBeforeUse(declaration, location)) { + error(expr, Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums); + return evaluatorResult( + /*value*/ + 0 + ); + } + const value = getEnumMemberValue(declaration); + if (location.parent !== declaration.parent) { + return evaluatorResult( + value.value, + value.isSyntacticallyString, + value.resolvedOtherFiles, + /*hasExternalReferences*/ + true + ); + } + return value; + } + function checkEnumDeclaration(node) { + addLazyDiagnostic(() => checkEnumDeclarationWorker(node)); + } + function checkEnumDeclarationWorker(node) { + checkGrammarModifiers(node); + checkCollisionsForDeclarationName(node, node.name); + checkExportsOnMergedDeclarations(node); + node.members.forEach(checkEnumMember); + computeEnumMemberValues(node); + const enumSymbol = getSymbolOfDeclaration(node); + const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind); + if (node === firstDeclaration) { + if (enumSymbol.declarations && enumSymbol.declarations.length > 1) { + const enumIsConst = isEnumConst(node); + forEach(enumSymbol.declarations, (decl) => { + if (isEnumDeclaration(decl) && isEnumConst(decl) !== enumIsConst) { + error(getNameOfDeclaration(decl), Diagnostics.Enum_declarations_must_all_be_const_or_non_const); + } + }); + } + let seenEnumMissingInitialInitializer = false; + forEach(enumSymbol.declarations, (declaration) => { + if (declaration.kind !== 266 /* EnumDeclaration */) { + return false; + } + const enumDeclaration = declaration; + if (!enumDeclaration.members.length) { + return false; + } + const firstEnumMember = enumDeclaration.members[0]; + if (!firstEnumMember.initializer) { + if (seenEnumMissingInitialInitializer) { + error(firstEnumMember.name, Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element); + } else { + seenEnumMissingInitialInitializer = true; + } + } + }); + } + } + function checkEnumMember(node) { + if (isPrivateIdentifier(node.name)) { + error(node, Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier); + } + if (node.initializer) { + checkExpression(node.initializer); + } + } + function getFirstNonAmbientClassOrFunctionDeclaration(symbol) { + const declarations = symbol.declarations; + if (declarations) { + for (const declaration of declarations) { + if ((declaration.kind === 263 /* ClassDeclaration */ || declaration.kind === 262 /* FunctionDeclaration */ && nodeIsPresent(declaration.body)) && !(declaration.flags & 33554432 /* Ambient */)) { + return declaration; + } + } + } + return void 0; + } + function inSameLexicalScope(node1, node2) { + const container1 = getEnclosingBlockScopeContainer(node1); + const container2 = getEnclosingBlockScopeContainer(node2); + if (isGlobalSourceFile(container1)) { + return isGlobalSourceFile(container2); + } else if (isGlobalSourceFile(container2)) { + return false; + } else { + return container1 === container2; + } + } + function checkModuleDeclaration(node) { + if (node.body) { + checkSourceElement(node.body); + if (!isGlobalScopeAugmentation(node)) { + registerForUnusedIdentifiersCheck(node); + } + } + addLazyDiagnostic(checkModuleDeclarationDiagnostics); + function checkModuleDeclarationDiagnostics() { + var _a, _b; + const isGlobalAugmentation = isGlobalScopeAugmentation(node); + const inAmbientContext = node.flags & 33554432 /* Ambient */; + if (isGlobalAugmentation && !inAmbientContext) { + error(node.name, Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context); + } + const isAmbientExternalModule = isAmbientModule(node); + const contextErrorMessage = isAmbientExternalModule ? Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file : Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module; + if (checkGrammarModuleElementContext(node, contextErrorMessage)) { + return; + } + if (!checkGrammarModifiers(node)) { + if (!inAmbientContext && node.name.kind === 11 /* StringLiteral */) { + grammarErrorOnNode(node.name, Diagnostics.Only_ambient_modules_can_use_quoted_names); + } + } + if (isIdentifier(node.name)) { + checkCollisionsForDeclarationName(node, node.name); + } + checkExportsOnMergedDeclarations(node); + const symbol = getSymbolOfDeclaration(node); + if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { + if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { + error(node.name, Diagnostics.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, isolatedModulesLikeFlagName); + } + if (((_a = symbol.declarations) == null ? void 0 : _a.length) > 1) { + const firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol); + if (firstNonAmbientClassOrFunc) { + if (getSourceFileOfNode(node) !== getSourceFileOfNode(firstNonAmbientClassOrFunc)) { + error(node.name, Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged); + } else if (node.pos < firstNonAmbientClassOrFunc.pos) { + error(node.name, Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged); + } + } + const mergedClass = getDeclarationOfKind(symbol, 263 /* ClassDeclaration */); + if (mergedClass && inSameLexicalScope(node, mergedClass)) { + getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; + } + } + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 307 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { + const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); + if (exportModifier) { + error(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + } + } + } + if (isAmbientExternalModule) { + if (isExternalModuleAugmentation(node)) { + const checkBody = isGlobalAugmentation || getSymbolOfDeclaration(node).flags & 33554432 /* Transient */; + if (checkBody && node.body) { + for (const statement of node.body.statements) { + checkModuleAugmentationElement(statement, isGlobalAugmentation); + } + } + } else if (isGlobalSourceFile(node.parent)) { + if (isGlobalAugmentation) { + error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + } else if (isExternalModuleNameRelative(getTextOfIdentifierOrLiteral(node.name))) { + error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name); + } + } else { + if (isGlobalAugmentation) { + error(node.name, Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations); + } else { + error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces); + } + } + } + } + } + function checkModuleAugmentationElement(node, isGlobalAugmentation) { + switch (node.kind) { + case 243 /* VariableStatement */: + for (const decl of node.declarationList.declarations) { + checkModuleAugmentationElement(decl, isGlobalAugmentation); + } + break; + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); + break; + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); + break; + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: + const name = node.name; + if (isBindingPattern(name)) { + for (const el of name.elements) { + checkModuleAugmentationElement(el, isGlobalAugmentation); + } + break; + } + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 262 /* FunctionDeclaration */: + case 264 /* InterfaceDeclaration */: + case 267 /* ModuleDeclaration */: + case 265 /* TypeAliasDeclaration */: + if (isGlobalAugmentation) { + return; + } + break; + } + } + function getFirstNonModuleExportsIdentifier(node) { + switch (node.kind) { + case 80 /* Identifier */: + return node; + case 166 /* QualifiedName */: + do { + node = node.left; + } while (node.kind !== 80 /* Identifier */); + return node; + case 211 /* PropertyAccessExpression */: + do { + if (isModuleExportsAccessExpression(node.expression) && !isPrivateIdentifier(node.name)) { + return node.name; + } + node = node.expression; + } while (node.kind !== 80 /* Identifier */); + return node; + } + } + function checkExternalImportOrExportDeclaration(node) { + const moduleName = getExternalModuleName(node); + if (!moduleName || nodeIsMissing(moduleName)) { + return false; + } + if (!isStringLiteral(moduleName)) { + error(moduleName, Diagnostics.String_literal_expected); + return false; + } + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + if (node.parent.kind !== 307 /* SourceFile */ && !inAmbientExternalModule) { + error( + moduleName, + node.kind === 278 /* ExportDeclaration */ ? Diagnostics.Export_declarations_are_not_permitted_in_a_namespace : Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module + ); + return false; + } + if (inAmbientExternalModule && isExternalModuleNameRelative(moduleName.text)) { + if (!isTopLevelInExternalModuleAugmentation(node)) { + error(node, Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name); + return false; + } + } + if (!isImportEqualsDeclaration(node) && node.attributes) { + const diagnostic = node.attributes.token === 118 /* WithKeyword */ ? Diagnostics.Import_attribute_values_must_be_string_literal_expressions : Diagnostics.Import_assertion_values_must_be_string_literal_expressions; + let hasError = false; + for (const attr of node.attributes.elements) { + if (!isStringLiteral(attr.value)) { + hasError = true; + error(attr.value, diagnostic); + } + } + return !hasError; + } + return true; + } + function checkAliasSymbol(node) { + var _a, _b, _c, _d; + let symbol = getSymbolOfDeclaration(node); + const target = resolveAlias(symbol); + if (target !== unknownSymbol) { + symbol = getMergedSymbol(symbol.exportSymbol || symbol); + if (isInJSFile(node) && !(target.flags & 111551 /* Value */) && !isTypeOnlyImportOrExportDeclaration(node)) { + const errorNode = isImportOrExportSpecifier(node) ? node.propertyName || node.name : isNamedDeclaration(node) ? node.name : node; + Debug.assert(node.kind !== 280 /* NamespaceExport */); + if (node.kind === 281 /* ExportSpecifier */) { + const diag2 = error(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); + const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); + if (alreadyExportedSymbol === target) { + const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); + if (exportingDeclaration) { + addRelatedInfo( + diag2, + createDiagnosticForNode( + exportingDeclaration, + Diagnostics._0_is_automatically_exported_here, + unescapeLeadingUnderscores(alreadyExportedSymbol.escapedName) + ) + ); + } + } + } else { + Debug.assert(node.kind !== 260 /* VariableDeclaration */); + const importDeclaration = findAncestor(node, or(isImportDeclaration, isImportEqualsDeclaration)); + const moduleSpecifier = (importDeclaration && ((_d = tryGetModuleSpecifierFromDeclaration(importDeclaration)) == null ? void 0 : _d.text)) ?? "..."; + const importedIdentifier = unescapeLeadingUnderscores(isIdentifier(errorNode) ? errorNode.escapedText : symbol.escapedName); + error( + errorNode, + Diagnostics._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation, + importedIdentifier, + `import("${moduleSpecifier}").${importedIdentifier}` + ); + } + return; + } + const targetFlags = getSymbolFlags(target); + const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0); + if (targetFlags & excludedMeanings) { + const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0; + error(node, message, symbolToString(symbol)); + } else if (node.kind !== 281 /* ExportSpecifier */) { + const appearsValueyToTranspiler = compilerOptions.isolatedModules && !findAncestor(node, isTypeOnlyImportOrExportDeclaration); + if (appearsValueyToTranspiler && symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */)) { + error( + node, + Diagnostics.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled, + symbolToString(symbol), + isolatedModulesLikeFlagName + ); + } + } + if (getIsolatedModules(compilerOptions) && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */)) { + const typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol); + const isType = !(targetFlags & 111551 /* Value */); + if (isType || typeOnlyAlias) { + switch (node.kind) { + case 273 /* ImportClause */: + case 276 /* ImportSpecifier */: + case 271 /* ImportEqualsDeclaration */: { + if (compilerOptions.verbatimModuleSyntax) { + Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); + const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled; + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + addTypeOnlyDeclarationRelatedInfo( + error(node, message, name), + isType ? void 0 : typeOnlyAlias, + name + ); + } + if (isType && node.kind === 271 /* ImportEqualsDeclaration */ && hasEffectiveModifier(node, 32 /* Export */)) { + error(node, Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled, isolatedModulesLikeFlagName); + } + break; + } + case 281 /* ExportSpecifier */: { + if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { + const name = idText(node.propertyName || node.name); + const diagnostic = isType ? error(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); + addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); + break; + } + } + } + } + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + } + } + if (isImportSpecifier(node)) { + const targetSymbol = resolveAliasWithDeprecationCheck(symbol, node); + if (isDeprecatedSymbol(targetSymbol) && targetSymbol.declarations) { + addDeprecatedSuggestion(node, targetSymbol.declarations, targetSymbol.escapedName); + } + } + } + } + function resolveAliasWithDeprecationCheck(symbol, location) { + if (!(symbol.flags & 2097152 /* Alias */) || isDeprecatedSymbol(symbol) || !getDeclarationOfAliasSymbol(symbol)) { + return symbol; + } + const targetSymbol = resolveAlias(symbol); + if (targetSymbol === unknownSymbol) return targetSymbol; + while (symbol.flags & 2097152 /* Alias */) { + const target = getImmediateAliasedSymbol(symbol); + if (target) { + if (target === targetSymbol) break; + if (target.declarations && length(target.declarations)) { + if (isDeprecatedSymbol(target)) { + addDeprecatedSuggestion(location, target.declarations, target.escapedName); + break; + } else { + if (symbol === targetSymbol) break; + symbol = target; + } + } + } else { + break; + } + } + return targetSymbol; + } + function checkImportBinding(node) { + checkCollisionsForDeclarationName(node, node.name); + checkAliasSymbol(node); + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + checkExternalEmitHelpers(node, 131072 /* ImportDefault */); + } + } + function checkImportAttributes(declaration) { + var _a; + const node = declaration.attributes; + if (node) { + const importAttributesType = getGlobalImportAttributesType( + /*reportErrors*/ + true + ); + if (importAttributesType !== emptyObjectType) { + checkTypeAssignableTo(getTypeFromImportAttributes(node), getNullableType(importAttributesType, 32768 /* Undefined */), node); + } + const validForTypeAttributes = isExclusivelyTypeOnlyImportOrExport(declaration); + const override = getResolutionModeOverride(node, validForTypeAttributes ? grammarErrorOnNode : void 0); + const isImportAttributes2 = declaration.attributes.token === 118 /* WithKeyword */; + if (validForTypeAttributes && override) { + return; + } + const mode = moduleKind === 199 /* NodeNext */ && declaration.moduleSpecifier && getUsageModeForExpression(declaration.moduleSpecifier); + if (mode !== 99 /* ESNext */ && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) { + const message = isImportAttributes2 ? moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve; + return grammarErrorOnNode(node, message); + } + const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly); + if (isTypeOnly) { + return grammarErrorOnNode(node, isImportAttributes2 ? Diagnostics.Import_attributes_cannot_be_used_with_type_only_imports_or_exports : Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports); + } + if (override) { + return grammarErrorOnNode(node, Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports); + } + } + } + function checkImportAttribute(node) { + return getRegularTypeOfLiteralType(checkExpressionCached(node.value)); + } + function checkImportDeclaration(node) { + if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { + return; + } + if (!checkGrammarModifiers(node) && node.modifiers) { + grammarErrorOnFirstToken(node, Diagnostics.An_import_declaration_cannot_have_modifiers); + } + if (checkExternalImportOrExportDeclaration(node)) { + const importClause = node.importClause; + if (importClause && !checkGrammarImportClause(importClause)) { + if (importClause.name) { + checkImportBinding(importClause); + } + if (importClause.namedBindings) { + if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { + checkImportBinding(importClause.namedBindings); + if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { + checkExternalEmitHelpers(node, 65536 /* ImportStar */); + } + } else { + const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier); + if (moduleExisted) { + forEach(importClause.namedBindings.elements, checkImportBinding); + } + } + } + } + } + checkImportAttributes(node); + } + function checkImportEqualsDeclaration(node) { + if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { + return; + } + checkGrammarModifiers(node); + if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { + checkImportBinding(node); + markLinkedReferences(node, 6 /* ExportImportEquals */); + if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) { + const target = resolveAlias(getSymbolOfDeclaration(node)); + if (target !== unknownSymbol) { + const targetFlags = getSymbolFlags(target); + if (targetFlags & 111551 /* Value */) { + const moduleName = getFirstIdentifier(node.moduleReference); + if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) { + error(moduleName, Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, declarationNameToString(moduleName)); + } + } + if (targetFlags & 788968 /* Type */) { + checkTypeNameIsReserved(node.name, Diagnostics.Import_name_cannot_be_0); + } + } + if (node.isTypeOnly) { + grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); + } + } else { + if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { + grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); + } + } + } + } + function checkExportDeclaration(node) { + if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { + return; + } + if (!checkGrammarModifiers(node) && hasSyntacticModifiers(node)) { + grammarErrorOnFirstToken(node, Diagnostics.An_export_declaration_cannot_have_modifiers); + } + checkGrammarExportDeclaration(node); + if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) { + if (node.exportClause && !isNamespaceExport(node.exportClause)) { + forEach(node.exportClause.elements, checkExportSpecifier); + const inAmbientExternalModule = node.parent.kind === 268 /* ModuleBlock */ && isAmbientModule(node.parent.parent); + const inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 268 /* ModuleBlock */ && !node.moduleSpecifier && node.flags & 33554432 /* Ambient */; + if (node.parent.kind !== 307 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) { + error(node, Diagnostics.Export_declarations_are_not_permitted_in_a_namespace); + } + } else { + const moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier); + if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) { + error(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); + } else if (node.exportClause) { + checkAliasSymbol(node.exportClause); + } + if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + if (node.exportClause) { + if (getESModuleInterop(compilerOptions)) { + checkExternalEmitHelpers(node, 65536 /* ImportStar */); + } + } else { + checkExternalEmitHelpers(node, 32768 /* ExportStar */); + } + } + } + } + checkImportAttributes(node); + } + function checkGrammarExportDeclaration(node) { + var _a; + if (node.isTypeOnly && ((_a = node.exportClause) == null ? void 0 : _a.kind) === 279 /* NamedExports */) { + return checkGrammarNamedImportsOrExports(node.exportClause); + } + return false; + } + function checkGrammarModuleElementContext(node, errorMessage) { + const isInAppropriateContext = node.parent.kind === 307 /* SourceFile */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 267 /* ModuleDeclaration */; + if (!isInAppropriateContext) { + grammarErrorOnFirstToken(node, errorMessage); + } + return !isInAppropriateContext; + } + function checkExportSpecifier(node) { + checkAliasSymbol(node); + if (getEmitDeclarations(compilerOptions)) { + collectLinkedAliases( + node.propertyName || node.name, + /*setVisibility*/ + true + ); + } + if (!node.parent.parent.moduleSpecifier) { + const exportedName = node.propertyName || node.name; + const symbol = resolveName( + exportedName, + exportedName.escapedText, + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) { + error(exportedName, Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, idText(exportedName)); + } else { + markLinkedReferences(node, 7 /* ExportSpecifier */); + } + } else { + if (getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && idText(node.propertyName || node.name) === "default") { + checkExternalEmitHelpers(node, 131072 /* ImportDefault */); + } + } + } + function checkExportAssignment(node) { + const illegalContextMessage = node.isExportEquals ? Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration : Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration; + if (checkGrammarModuleElementContext(node, illegalContextMessage)) { + return; + } + const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { + if (node.isExportEquals) { + error(node, Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace); + } else { + error(node, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } + return; + } + if (!checkGrammarModifiers(node) && hasEffectiveModifiers(node)) { + grammarErrorOnFirstToken(node, Diagnostics.An_export_assignment_cannot_have_modifiers); + } + const typeAnnotationNode = getEffectiveTypeAnnotationNode(node); + if (typeAnnotationNode) { + checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); + } + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); + if (node.expression.kind === 80 /* Identifier */) { + const id = node.expression; + const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( + id, + -1 /* All */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + node + )); + if (sym) { + markLinkedReferences(node, 3 /* ExportAssignment */); + const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(sym, 111551 /* Value */); + if (getSymbolFlags(sym) & 111551 /* Value */) { + checkExpressionCached(id); + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && typeOnlyDeclaration) { + error( + id, + node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration, + idText(id) + ); + } + } else if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax) { + error( + id, + node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type : Diagnostics.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type, + idText(id) + ); + } + if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) { + const nonLocalMeanings = getSymbolFlags( + sym, + /*excludeTypeOnlyMeanings*/ + false, + /*excludeLocalMeanings*/ + true + ); + if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) { + error( + id, + node.isExportEquals ? Diagnostics._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 : Diagnostics._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, + idText(id), + isolatedModulesLikeFlagName + ); + } else if (typeOnlyDeclaration && getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node)) { + addTypeOnlyDeclarationRelatedInfo( + error( + id, + node.isExportEquals ? Diagnostics._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 : Diagnostics._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, + idText(id), + isolatedModulesLikeFlagName + ), + typeOnlyDeclaration, + idText(id) + ); + } + } + } else { + checkExpressionCached(id); + } + if (getEmitDeclarations(compilerOptions)) { + collectLinkedAliases( + id, + /*setVisibility*/ + true + ); + } + } else { + checkExpressionCached(node.expression); + } + if (isIllegalExportDefaultInCJS) { + error(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + } + checkExternalModuleExports(container); + if (node.flags & 33554432 /* Ambient */ && !isEntityNameExpression(node.expression)) { + grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); + } + if (node.isExportEquals) { + if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { + grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); + } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { + grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); + } + } + } + function hasExportedMembers(moduleSymbol) { + return forEachEntry(moduleSymbol.exports, (_, id) => id !== "export="); + } + function checkExternalModuleExports(node) { + const moduleSymbol = getSymbolOfDeclaration(node); + const links = getSymbolLinks(moduleSymbol); + if (!links.exportsChecked) { + const exportEqualsSymbol = moduleSymbol.exports.get("export="); + if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) { + const declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration; + if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !isInJSFile(declaration)) { + error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements); + } + } + const exports2 = getExportsOfModule(moduleSymbol); + if (exports2) { + exports2.forEach(({ declarations, flags }, id) => { + if (id === "__export") { + return; + } + if (flags & (1920 /* Namespace */ | 384 /* Enum */)) { + return; + } + const exportedDeclarationsCount = countWhere(declarations, and(isNotOverloadAndNotAccessor, not(isInterfaceDeclaration))); + if (flags & 524288 /* TypeAlias */ && exportedDeclarationsCount <= 2) { + return; + } + if (exportedDeclarationsCount > 1) { + if (!isDuplicatedCommonJSExport(declarations)) { + for (const declaration of declarations) { + if (isNotOverload(declaration)) { + diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Cannot_redeclare_exported_variable_0, unescapeLeadingUnderscores(id))); + } + } + } + } + }); + } + links.exportsChecked = true; + } + } + function isDuplicatedCommonJSExport(declarations) { + return declarations && declarations.length > 1 && declarations.every((d) => isInJSFile(d) && isAccessExpression(d) && (isExportsIdentifier(d.expression) || isModuleExportsAccessExpression(d.expression))); + } + function checkSourceElement(node) { + if (node) { + const saveCurrentNode = currentNode; + currentNode = node; + instantiationCount = 0; + checkSourceElementWorker(node); + currentNode = saveCurrentNode; + } + } + function checkSourceElementWorker(node) { + if (canHaveJSDoc(node)) { + forEach(node.jsDoc, ({ comment, tags }) => { + checkJSDocCommentWorker(comment); + forEach(tags, (tag) => { + checkJSDocCommentWorker(tag.comment); + if (isInJSFile(node)) { + checkSourceElement(tag); + } + }); + }); + } + const kind = node.kind; + if (cancellationToken) { + switch (kind) { + case 267 /* ModuleDeclaration */: + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + case 262 /* FunctionDeclaration */: + cancellationToken.throwIfCancellationRequested(); + } + } + if (kind >= 243 /* FirstStatement */ && kind <= 259 /* LastStatement */ && canHaveFlowNode(node) && node.flowNode && !isReachableFlowNode(node.flowNode)) { + errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, Diagnostics.Unreachable_code_detected); + } + switch (kind) { + case 168 /* TypeParameter */: + return checkTypeParameter(node); + case 169 /* Parameter */: + return checkParameter(node); + case 172 /* PropertyDeclaration */: + return checkPropertyDeclaration(node); + case 171 /* PropertySignature */: + return checkPropertySignature(node); + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 179 /* CallSignature */: + case 180 /* ConstructSignature */: + case 181 /* IndexSignature */: + return checkSignatureDeclaration(node); + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + return checkMethodDeclaration(node); + case 175 /* ClassStaticBlockDeclaration */: + return checkClassStaticBlockDeclaration(node); + case 176 /* Constructor */: + return checkConstructorDeclaration(node); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return checkAccessorDeclaration(node); + case 183 /* TypeReference */: + return checkTypeReferenceNode(node); + case 182 /* TypePredicate */: + return checkTypePredicate(node); + case 186 /* TypeQuery */: + return checkTypeQuery(node); + case 187 /* TypeLiteral */: + return checkTypeLiteral(node); + case 188 /* ArrayType */: + return checkArrayType(node); + case 189 /* TupleType */: + return checkTupleType(node); + case 192 /* UnionType */: + case 193 /* IntersectionType */: + return checkUnionOrIntersectionType(node); + case 196 /* ParenthesizedType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + return checkSourceElement(node.type); + case 197 /* ThisType */: + return checkThisType(node); + case 198 /* TypeOperator */: + return checkTypeOperator(node); + case 194 /* ConditionalType */: + return checkConditionalType(node); + case 195 /* InferType */: + return checkInferType(node); + case 203 /* TemplateLiteralType */: + return checkTemplateLiteralType(node); + case 205 /* ImportType */: + return checkImportType(node); + case 202 /* NamedTupleMember */: + return checkNamedTupleMember(node); + case 328 /* JSDocAugmentsTag */: + return checkJSDocAugmentsTag(node); + case 329 /* JSDocImplementsTag */: + return checkJSDocImplementsTag(node); + case 346 /* JSDocTypedefTag */: + case 338 /* JSDocCallbackTag */: + case 340 /* JSDocEnumTag */: + return checkJSDocTypeAliasTag(node); + case 345 /* JSDocTemplateTag */: + return checkJSDocTemplateTag(node); + case 344 /* JSDocTypeTag */: + return checkJSDocTypeTag(node); + case 324 /* JSDocLink */: + case 325 /* JSDocLinkCode */: + case 326 /* JSDocLinkPlain */: + return checkJSDocLinkLikeTag(node); + case 341 /* JSDocParameterTag */: + return checkJSDocParameterTag(node); + case 348 /* JSDocPropertyTag */: + return checkJSDocPropertyTag(node); + case 317 /* JSDocFunctionType */: + checkJSDocFunctionType(node); + case 315 /* JSDocNonNullableType */: + case 314 /* JSDocNullableType */: + case 312 /* JSDocAllType */: + case 313 /* JSDocUnknownType */: + case 322 /* JSDocTypeLiteral */: + checkJSDocTypeIsInJsFile(node); + forEachChild(node, checkSourceElement); + return; + case 318 /* JSDocVariadicType */: + checkJSDocVariadicType(node); + return; + case 309 /* JSDocTypeExpression */: + return checkSourceElement(node.type); + case 333 /* JSDocPublicTag */: + case 335 /* JSDocProtectedTag */: + case 334 /* JSDocPrivateTag */: + return checkJSDocAccessibilityModifiers(node); + case 350 /* JSDocSatisfiesTag */: + return checkJSDocSatisfiesTag(node); + case 343 /* JSDocThisTag */: + return checkJSDocThisTag(node); + case 351 /* JSDocImportTag */: + return checkJSDocImportTag(node); + case 199 /* IndexedAccessType */: + return checkIndexedAccessType(node); + case 200 /* MappedType */: + return checkMappedType(node); + case 262 /* FunctionDeclaration */: + return checkFunctionDeclaration(node); + case 241 /* Block */: + case 268 /* ModuleBlock */: + return checkBlock(node); + case 243 /* VariableStatement */: + return checkVariableStatement(node); + case 244 /* ExpressionStatement */: + return checkExpressionStatement(node); + case 245 /* IfStatement */: + return checkIfStatement(node); + case 246 /* DoStatement */: + return checkDoStatement(node); + case 247 /* WhileStatement */: + return checkWhileStatement(node); + case 248 /* ForStatement */: + return checkForStatement(node); + case 249 /* ForInStatement */: + return checkForInStatement(node); + case 250 /* ForOfStatement */: + return checkForOfStatement(node); + case 251 /* ContinueStatement */: + case 252 /* BreakStatement */: + return checkBreakOrContinueStatement(node); + case 253 /* ReturnStatement */: + return checkReturnStatement(node); + case 254 /* WithStatement */: + return checkWithStatement(node); + case 255 /* SwitchStatement */: + return checkSwitchStatement(node); + case 256 /* LabeledStatement */: + return checkLabeledStatement(node); + case 257 /* ThrowStatement */: + return checkThrowStatement(node); + case 258 /* TryStatement */: + return checkTryStatement(node); + case 260 /* VariableDeclaration */: + return checkVariableDeclaration(node); + case 208 /* BindingElement */: + return checkBindingElement(node); + case 263 /* ClassDeclaration */: + return checkClassDeclaration(node); + case 264 /* InterfaceDeclaration */: + return checkInterfaceDeclaration(node); + case 265 /* TypeAliasDeclaration */: + return checkTypeAliasDeclaration(node); + case 266 /* EnumDeclaration */: + return checkEnumDeclaration(node); + case 267 /* ModuleDeclaration */: + return checkModuleDeclaration(node); + case 272 /* ImportDeclaration */: + return checkImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return checkImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return checkExportDeclaration(node); + case 277 /* ExportAssignment */: + return checkExportAssignment(node); + case 242 /* EmptyStatement */: + case 259 /* DebuggerStatement */: + checkGrammarStatementInAmbientContext(node); + return; + case 282 /* MissingDeclaration */: + return checkMissingDeclaration(node); + } + } + function checkJSDocCommentWorker(node) { + if (isArray(node)) { + forEach(node, (tag) => { + if (isJSDocLinkLike(tag)) { + checkSourceElement(tag); + } + }); + } + } + function checkJSDocTypeIsInJsFile(node) { + if (!isInJSFile(node)) { + if (isJSDocNonNullableType(node) || isJSDocNullableType(node)) { + const token = tokenToString(isJSDocNonNullableType(node) ? 54 /* ExclamationToken */ : 58 /* QuestionToken */); + const diagnostic = node.postfix ? Diagnostics._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1 : Diagnostics._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1; + const typeNode = node.type; + const type = getTypeFromTypeNode(typeNode); + grammarErrorOnNode( + node, + diagnostic, + token, + typeToString( + isJSDocNullableType(node) && !(type === neverType || type === voidType) ? getUnionType(append([type, undefinedType], node.postfix ? void 0 : nullType)) : type + ) + ); + } else { + grammarErrorOnNode(node, Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments); + } + } + } + function checkJSDocVariadicType(node) { + checkJSDocTypeIsInJsFile(node); + checkSourceElement(node.type); + const { parent } = node; + if (isParameter(parent) && isJSDocFunctionType(parent.parent)) { + if (last(parent.parent.parameters) !== parent) { + error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + } + return; + } + if (!isJSDocTypeExpression(parent)) { + error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + } + const paramTag = node.parent.parent; + if (!isJSDocParameterTag(paramTag)) { + error(node, Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature); + return; + } + const param = getParameterSymbolFromJSDoc(paramTag); + if (!param) { + return; + } + const host2 = getHostSignatureFromJSDoc(paramTag); + if (!host2 || last(host2.parameters).symbol !== param) { + error(node, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + } + } + function getTypeFromJSDocVariadicType(node) { + const type = getTypeFromTypeNode(node.type); + const { parent } = node; + const paramTag = node.parent.parent; + if (isJSDocTypeExpression(node.parent) && isJSDocParameterTag(paramTag)) { + const host2 = getHostSignatureFromJSDoc(paramTag); + const isCallbackTag = isJSDocCallbackTag(paramTag.parent.parent); + if (host2 || isCallbackTag) { + const lastParamDeclaration = isCallbackTag ? lastOrUndefined(paramTag.parent.parent.typeExpression.parameters) : lastOrUndefined(host2.parameters); + const symbol = getParameterSymbolFromJSDoc(paramTag); + if (!lastParamDeclaration || symbol && lastParamDeclaration.symbol === symbol && isRestParameter(lastParamDeclaration)) { + return createArrayType(type); + } + } + } + if (isParameter(parent) && isJSDocFunctionType(parent.parent)) { + return createArrayType(type); + } + return addOptionality(type); + } + function checkNodeDeferred(node) { + const enclosingFile = getSourceFileOfNode(node); + const links = getNodeLinks(enclosingFile); + if (!(links.flags & 1 /* TypeChecked */)) { + links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set()); + links.deferredNodes.add(node); + } else { + Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes."); + } + } + function checkDeferredNodes(context) { + const links = getNodeLinks(context); + if (links.deferredNodes) { + links.deferredNodes.forEach(checkDeferredNode); + } + links.deferredNodes = void 0; + } + function checkDeferredNode(node) { + var _a, _b; + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Check, "checkDeferredNode", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); + const saveCurrentNode = currentNode; + currentNode = node; + instantiationCount = 0; + switch (node.kind) { + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 215 /* TaggedTemplateExpression */: + case 170 /* Decorator */: + case 286 /* JsxOpeningElement */: + resolveUntypedCall(node); + break; + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + checkFunctionExpressionOrObjectLiteralMethodDeferred(node); + break; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + checkAccessorDeclaration(node); + break; + case 231 /* ClassExpression */: + checkClassExpressionDeferred(node); + break; + case 168 /* TypeParameter */: + checkTypeParameterDeferred(node); + break; + case 285 /* JsxSelfClosingElement */: + checkJsxSelfClosingElementDeferred(node); + break; + case 284 /* JsxElement */: + checkJsxElementDeferred(node); + break; + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + case 217 /* ParenthesizedExpression */: + checkAssertionDeferred(node); + break; + case 222 /* VoidExpression */: + checkExpression(node.expression); + break; + case 226 /* BinaryExpression */: + if (isInstanceOfExpression(node)) { + resolveUntypedCall(node); + } + break; + } + currentNode = saveCurrentNode; + (_b = tracing) == null ? void 0 : _b.pop(); + } + function checkSourceFile(node) { + var _a, _b; + (_a = tracing) == null ? void 0 : _a.push( + tracing.Phase.Check, + "checkSourceFile", + { path: node.path }, + /*separateBeginAndEnd*/ + true + ); + mark("beforeCheck"); + checkSourceFileWorker(node); + mark("afterCheck"); + measure("Check", "beforeCheck", "afterCheck"); + (_b = tracing) == null ? void 0 : _b.pop(); + } + function unusedIsError(kind, isAmbient) { + if (isAmbient) { + return false; + } + switch (kind) { + case 0 /* Local */: + return !!compilerOptions.noUnusedLocals; + case 1 /* Parameter */: + return !!compilerOptions.noUnusedParameters; + default: + return Debug.assertNever(kind); + } + } + function getPotentiallyUnusedIdentifiers(sourceFile) { + return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || emptyArray; + } + function checkSourceFileWorker(node) { + const links = getNodeLinks(node); + if (!(links.flags & 1 /* TypeChecked */)) { + if (skipTypeChecking(node, compilerOptions, host)) { + return; + } + checkGrammarSourceFile(node); + clear(potentialThisCollisions); + clear(potentialNewTargetCollisions); + clear(potentialWeakMapSetCollisions); + clear(potentialReflectCollisions); + clear(potentialUnusedRenamedBindingElementsInTypes); + forEach(node.statements, checkSourceElement); + checkSourceElement(node.endOfFileToken); + checkDeferredNodes(node); + if (isExternalOrCommonJsModule(node)) { + registerForUnusedIdentifiersCheck(node); + } + addLazyDiagnostic(() => { + if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) { + checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), (containingNode, kind, diag2) => { + if (!containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 33554432 /* Ambient */))) { + diagnostics.add(diag2); + } + }); + } + if (!node.isDeclarationFile) { + checkPotentialUncheckedRenamedBindingElementsInTypes(); + } + }); + if (isExternalOrCommonJsModule(node)) { + checkExternalModuleExports(node); + } + if (potentialThisCollisions.length) { + forEach(potentialThisCollisions, checkIfThisIsCapturedInEnclosingScope); + clear(potentialThisCollisions); + } + if (potentialNewTargetCollisions.length) { + forEach(potentialNewTargetCollisions, checkIfNewTargetIsCapturedInEnclosingScope); + clear(potentialNewTargetCollisions); + } + if (potentialWeakMapSetCollisions.length) { + forEach(potentialWeakMapSetCollisions, checkWeakMapSetCollision); + clear(potentialWeakMapSetCollisions); + } + if (potentialReflectCollisions.length) { + forEach(potentialReflectCollisions, checkReflectCollision); + clear(potentialReflectCollisions); + } + links.flags |= 1 /* TypeChecked */; + } + } + function getDiagnostics(sourceFile, ct) { + try { + cancellationToken = ct; + return getDiagnosticsWorker(sourceFile); + } finally { + cancellationToken = void 0; + } + } + function ensurePendingDiagnosticWorkComplete() { + for (const cb of deferredDiagnosticsCallbacks) { + cb(); + } + deferredDiagnosticsCallbacks = []; + } + function checkSourceFileWithEagerDiagnostics(sourceFile) { + ensurePendingDiagnosticWorkComplete(); + const oldAddLazyDiagnostics = addLazyDiagnostic; + addLazyDiagnostic = (cb) => cb(); + checkSourceFile(sourceFile); + addLazyDiagnostic = oldAddLazyDiagnostics; + } + function getDiagnosticsWorker(sourceFile) { + if (sourceFile) { + ensurePendingDiagnosticWorkComplete(); + const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); + const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length; + checkSourceFileWithEagerDiagnostics(sourceFile); + const semanticDiagnostics = diagnostics.getDiagnostics(sourceFile.fileName); + const currentGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); + if (currentGlobalDiagnostics !== previousGlobalDiagnostics) { + const deferredGlobalDiagnostics = relativeComplement(previousGlobalDiagnostics, currentGlobalDiagnostics, compareDiagnostics); + return concatenate(deferredGlobalDiagnostics, semanticDiagnostics); + } else if (previousGlobalDiagnosticsSize === 0 && currentGlobalDiagnostics.length > 0) { + return concatenate(currentGlobalDiagnostics, semanticDiagnostics); + } + return semanticDiagnostics; + } + forEach(host.getSourceFiles(), checkSourceFileWithEagerDiagnostics); + return diagnostics.getDiagnostics(); + } + function getGlobalDiagnostics() { + ensurePendingDiagnosticWorkComplete(); + return diagnostics.getGlobalDiagnostics(); + } + function getSymbolsInScope(location, meaning) { + if (location.flags & 67108864 /* InWithStatement */) { + return []; + } + const symbols = createSymbolTable(); + let isStaticSymbol = false; + populateSymbols(); + symbols.delete("this" /* This */); + return symbolsToArray(symbols); + function populateSymbols() { + while (location) { + if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) { + copySymbols(location.locals, meaning); + } + switch (location.kind) { + case 307 /* SourceFile */: + if (!isExternalModule(location)) break; + case 267 /* ModuleDeclaration */: + copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); + break; + case 266 /* EnumDeclaration */: + copySymbols(getSymbolOfDeclaration(location).exports, meaning & 8 /* EnumMember */); + break; + case 231 /* ClassExpression */: + const className = location.name; + if (className) { + copySymbol(location.symbol, meaning); + } + case 263 /* ClassDeclaration */: + case 264 /* InterfaceDeclaration */: + if (!isStaticSymbol) { + copySymbols(getMembersOfSymbol(getSymbolOfDeclaration(location)), meaning & 788968 /* Type */); + } + break; + case 218 /* FunctionExpression */: + const funcName = location.name; + if (funcName) { + copySymbol(location.symbol, meaning); + } + break; + } + if (introducesArgumentsExoticObject(location)) { + copySymbol(argumentsSymbol, meaning); + } + isStaticSymbol = isStatic(location); + location = location.parent; + } + copySymbols(globals, meaning); + } + function copySymbol(symbol, meaning2) { + if (getCombinedLocalAndExportSymbolFlags(symbol) & meaning2) { + const id = symbol.escapedName; + if (!symbols.has(id)) { + symbols.set(id, symbol); + } + } + } + function copySymbols(source, meaning2) { + if (meaning2) { + source.forEach((symbol) => { + copySymbol(symbol, meaning2); + }); + } + } + function copyLocallyVisibleExportSymbols(source, meaning2) { + if (meaning2) { + source.forEach((symbol) => { + if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) { + copySymbol(symbol, meaning2); + } + }); + } + } + } + function isTypeDeclarationName(name) { + return name.kind === 80 /* Identifier */ && isTypeDeclaration(name.parent) && getNameOfDeclaration(name.parent) === name; + } + function isTypeReferenceIdentifier(node) { + while (node.parent.kind === 166 /* QualifiedName */) { + node = node.parent; + } + return node.parent.kind === 183 /* TypeReference */; + } + function isInNameOfExpressionWithTypeArguments(node) { + while (node.parent.kind === 211 /* PropertyAccessExpression */) { + node = node.parent; + } + return node.parent.kind === 233 /* ExpressionWithTypeArguments */; + } + function forEachEnclosingClass(node, callback) { + let result; + let containingClass = getContainingClass(node); + while (containingClass) { + if (result = callback(containingClass)) break; + containingClass = getContainingClass(containingClass); + } + return result; + } + function isNodeUsedDuringClassInitialization(node) { + return !!findAncestor(node, (element) => { + if (isConstructorDeclaration(element) && nodeIsPresent(element.body) || isPropertyDeclaration(element)) { + return true; + } else if (isClassLike(element) || isFunctionLikeDeclaration(element)) { + return "quit"; + } + return false; + }); + } + function isNodeWithinClass(node, classDeclaration) { + return !!forEachEnclosingClass(node, (n) => n === classDeclaration); + } + function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) { + while (nodeOnRightSide.parent.kind === 166 /* QualifiedName */) { + nodeOnRightSide = nodeOnRightSide.parent; + } + if (nodeOnRightSide.parent.kind === 271 /* ImportEqualsDeclaration */) { + return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : void 0; + } + if (nodeOnRightSide.parent.kind === 277 /* ExportAssignment */) { + return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : void 0; + } + return void 0; + } + function isInRightSideOfImportOrExportAssignment(node) { + return getLeftSideOfImportEqualsOrExportAssignment(node) !== void 0; + } + function getSpecialPropertyAssignmentSymbolFromEntityName(entityName) { + const specialPropertyAssignmentKind = getAssignmentDeclarationKind(entityName.parent.parent); + switch (specialPropertyAssignmentKind) { + case 1 /* ExportsProperty */: + case 3 /* PrototypeProperty */: + return getSymbolOfNode(entityName.parent); + case 5 /* Property */: + if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) { + return void 0; + } + case 4 /* ThisProperty */: + case 2 /* ModuleExports */: + return getSymbolOfDeclaration(entityName.parent.parent); + } + } + function isImportTypeQualifierPart(node) { + let parent = node.parent; + while (isQualifiedName(parent)) { + node = parent; + parent = parent.parent; + } + if (parent && parent.kind === 205 /* ImportType */ && parent.qualifier === node) { + return parent; + } + return void 0; + } + function isThisPropertyAndThisTyped(node) { + if (node.expression.kind === 110 /* ThisKeyword */) { + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + if (isFunctionLike(container)) { + const containingLiteral = getContainingObjectLiteral(container); + if (containingLiteral) { + const contextualType = getApparentTypeOfContextualType( + containingLiteral, + /*contextFlags*/ + void 0 + ); + const type = getThisTypeOfObjectLiteralFromContextualType(containingLiteral, contextualType); + return type && !isTypeAny(type); + } + } + } + } + function getSymbolOfNameOrPropertyAccessExpression(name) { + if (isDeclarationName(name)) { + return getSymbolOfNode(name.parent); + } + if (isInJSFile(name) && name.parent.kind === 211 /* PropertyAccessExpression */ && name.parent === name.parent.parent.left) { + if (!isPrivateIdentifier(name) && !isJSDocMemberName(name) && !isThisPropertyAndThisTyped(name.parent)) { + const specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name); + if (specialPropertyAssignmentSymbol) { + return specialPropertyAssignmentSymbol; + } + } + } + if (name.parent.kind === 277 /* ExportAssignment */ && isEntityNameExpression(name)) { + const success = resolveEntityName( + name, + /*all meanings*/ + 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, + /*ignoreErrors*/ + true + ); + if (success && success !== unknownSymbol) { + return success; + } + } else if (isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) { + const importEqualsDeclaration = getAncestor(name, 271 /* ImportEqualsDeclaration */); + Debug.assert(importEqualsDeclaration !== void 0); + return getSymbolOfPartOfRightHandSideOfImportEquals( + name, + /*dontResolveAlias*/ + true + ); + } + if (isEntityName(name)) { + const possibleImportNode = isImportTypeQualifierPart(name); + if (possibleImportNode) { + getTypeFromTypeNode(possibleImportNode); + const sym = getNodeLinks(name).resolvedSymbol; + return sym === unknownSymbol ? void 0 : sym; + } + } + while (isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(name)) { + name = name.parent; + } + if (isInNameOfExpressionWithTypeArguments(name)) { + let meaning = 0 /* None */; + if (name.parent.kind === 233 /* ExpressionWithTypeArguments */) { + meaning = isPartOfTypeNode(name) ? 788968 /* Type */ : 111551 /* Value */; + if (isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) { + meaning |= 111551 /* Value */; + } + } else { + meaning = 1920 /* Namespace */; + } + meaning |= 2097152 /* Alias */; + const entityNameSymbol = isEntityNameExpression(name) ? resolveEntityName( + name, + meaning, + /*ignoreErrors*/ + true + ) : void 0; + if (entityNameSymbol) { + return entityNameSymbol; + } + } + if (name.parent.kind === 341 /* JSDocParameterTag */) { + return getParameterSymbolFromJSDoc(name.parent); + } + if (name.parent.kind === 168 /* TypeParameter */ && name.parent.parent.kind === 345 /* JSDocTemplateTag */) { + Debug.assert(!isInJSFile(name)); + const typeParameter = getTypeParameterFromJsDoc(name.parent); + return typeParameter && typeParameter.symbol; + } + if (isExpressionNode(name)) { + if (nodeIsMissing(name)) { + return void 0; + } + const isJSDoc2 = findAncestor(name, or(isJSDocLinkLike, isJSDocNameReference, isJSDocMemberName)); + const meaning = isJSDoc2 ? 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */ : 111551 /* Value */; + if (name.kind === 80 /* Identifier */) { + if (isJSXTagName(name) && isJsxIntrinsicTagName(name)) { + const symbol = getIntrinsicTagSymbol(name.parent); + return symbol === unknownSymbol ? void 0 : symbol; + } + const result = resolveEntityName( + name, + meaning, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + getHostSignatureFromJSDoc(name) + ); + if (!result && isJSDoc2) { + const container = findAncestor(name, or(isClassLike, isInterfaceDeclaration)); + if (container) { + return resolveJSDocMemberName( + name, + /*ignoreErrors*/ + true, + getSymbolOfDeclaration(container) + ); + } + } + if (result && isJSDoc2) { + const container = getJSDocHost(name); + if (container && isEnumMember(container) && container === result.valueDeclaration) { + return resolveEntityName( + name, + meaning, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + getSourceFileOfNode(container) + ) || result; + } + } + return result; + } else if (isPrivateIdentifier(name)) { + return getSymbolForPrivateIdentifierExpression(name); + } else if (name.kind === 211 /* PropertyAccessExpression */ || name.kind === 166 /* QualifiedName */) { + const links = getNodeLinks(name); + if (links.resolvedSymbol) { + return links.resolvedSymbol; + } + if (name.kind === 211 /* PropertyAccessExpression */) { + checkPropertyAccessExpression(name, 0 /* Normal */); + if (!links.resolvedSymbol) { + links.resolvedSymbol = getApplicableIndexSymbol(checkExpressionCached(name.expression), getLiteralTypeFromPropertyName(name.name)); + } + } else { + checkQualifiedName(name, 0 /* Normal */); + } + if (!links.resolvedSymbol && isJSDoc2 && isQualifiedName(name)) { + return resolveJSDocMemberName(name); + } + return links.resolvedSymbol; + } else if (isJSDocMemberName(name)) { + return resolveJSDocMemberName(name); + } + } else if (isTypeReferenceIdentifier(name)) { + const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; + const symbol = resolveEntityName( + name, + meaning, + /*ignoreErrors*/ + false, + /*dontResolveAlias*/ + true + ); + return symbol && symbol !== unknownSymbol ? symbol : getUnresolvedSymbolForEntityName(name); + } + if (name.parent.kind === 182 /* TypePredicate */) { + return resolveEntityName( + name, + /*meaning*/ + 1 /* FunctionScopedVariable */ + ); + } + return void 0; + } + function getApplicableIndexSymbol(type, keyType) { + const infos = getApplicableIndexInfos(type, keyType); + if (infos.length && type.members) { + const symbol = getIndexSymbolFromSymbolTable(resolveStructuredTypeMembers(type).members); + if (infos === getIndexInfosOfType(type)) { + return symbol; + } else if (symbol) { + const symbolLinks2 = getSymbolLinks(symbol); + const declarationList = mapDefined(infos, (i) => i.declaration); + const nodeListId = map(declarationList, getNodeId).join(","); + if (!symbolLinks2.filteredIndexSymbolCache) { + symbolLinks2.filteredIndexSymbolCache = /* @__PURE__ */ new Map(); + } + if (symbolLinks2.filteredIndexSymbolCache.has(nodeListId)) { + return symbolLinks2.filteredIndexSymbolCache.get(nodeListId); + } else { + const copy = createSymbol(131072 /* Signature */, "__index" /* Index */); + copy.declarations = mapDefined(infos, (i) => i.declaration); + copy.parent = type.aliasSymbol ? type.aliasSymbol : type.symbol ? type.symbol : getSymbolAtLocation(copy.declarations[0].parent); + symbolLinks2.filteredIndexSymbolCache.set(nodeListId, copy); + return copy; + } + } + } + } + function resolveJSDocMemberName(name, ignoreErrors, container) { + if (isEntityName(name)) { + const meaning = 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */; + let symbol = resolveEntityName( + name, + meaning, + ignoreErrors, + /*dontResolveAlias*/ + true, + getHostSignatureFromJSDoc(name) + ); + if (!symbol && isIdentifier(name) && container) { + symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(container), name.escapedText, meaning)); + } + if (symbol) { + return symbol; + } + } + const left = isIdentifier(name) ? container : resolveJSDocMemberName(name.left, ignoreErrors, container); + const right = isIdentifier(name) ? name.escapedText : name.right.escapedText; + if (left) { + const proto = left.flags & 111551 /* Value */ && getPropertyOfType(getTypeOfSymbol(left), "prototype"); + const t = proto ? getTypeOfSymbol(proto) : getDeclaredTypeOfSymbol(left); + return getPropertyOfType(t, right); + } + } + function getSymbolAtLocation(node, ignoreErrors) { + if (isSourceFile(node)) { + return isExternalModule(node) ? getMergedSymbol(node.symbol) : void 0; + } + const { parent } = node; + const grandParent = parent.parent; + if (node.flags & 67108864 /* InWithStatement */) { + return void 0; + } + if (isDeclarationNameOrImportPropertyName(node)) { + const parentSymbol = getSymbolOfDeclaration(parent); + return isImportOrExportSpecifier(node.parent) && node.parent.propertyName === node ? getImmediateAliasedSymbol(parentSymbol) : parentSymbol; + } else if (isLiteralComputedPropertyDeclarationName(node)) { + return getSymbolOfDeclaration(parent.parent); + } + if (node.kind === 80 /* Identifier */) { + if (isInRightSideOfImportOrExportAssignment(node)) { + return getSymbolOfNameOrPropertyAccessExpression(node); + } else if (parent.kind === 208 /* BindingElement */ && grandParent.kind === 206 /* ObjectBindingPattern */ && node === parent.propertyName) { + const typeOfPattern = getTypeOfNode(grandParent); + const propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText); + if (propertyDeclaration) { + return propertyDeclaration; + } + } else if (isMetaProperty(parent) && parent.name === node) { + if (parent.keywordToken === 105 /* NewKeyword */ && idText(node) === "target") { + return checkNewTargetMetaProperty(parent).symbol; + } + if (parent.keywordToken === 102 /* ImportKeyword */ && idText(node) === "meta") { + return getGlobalImportMetaExpressionType().members.get("meta"); + } + return void 0; + } + } + switch (node.kind) { + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + case 211 /* PropertyAccessExpression */: + case 166 /* QualifiedName */: + if (!isThisInTypeQuery(node)) { + return getSymbolOfNameOrPropertyAccessExpression(node); + } + case 110 /* ThisKeyword */: + const container = getThisContainer( + node, + /*includeArrowFunctions*/ + false, + /*includeClassComputedPropertyName*/ + false + ); + if (isFunctionLike(container)) { + const sig = getSignatureFromDeclaration(container); + if (sig.thisParameter) { + return sig.thisParameter; + } + } + if (isInExpressionContext(node)) { + return checkExpression(node).symbol; + } + case 197 /* ThisType */: + return getTypeFromThisTypeNode(node).symbol; + case 108 /* SuperKeyword */: + return checkExpression(node).symbol; + case 137 /* ConstructorKeyword */: + const constructorDeclaration = node.parent; + if (constructorDeclaration && constructorDeclaration.kind === 176 /* Constructor */) { + return constructorDeclaration.parent.symbol; + } + return void 0; + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + if (isExternalModuleImportEqualsDeclaration(node.parent.parent) && getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node || (node.parent.kind === 272 /* ImportDeclaration */ || node.parent.kind === 278 /* ExportDeclaration */) && node.parent.moduleSpecifier === node || isInJSFile(node) && isJSDocImportTag(node.parent) && node.parent.moduleSpecifier === node || (isInJSFile(node) && isRequireCall( + node.parent, + /*requireStringLiteralLikeArgument*/ + false + ) || isImportCall(node.parent)) || isLiteralTypeNode(node.parent) && isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent) { + return resolveExternalModuleName(node, node, ignoreErrors); + } + if (isCallExpression(parent) && isBindableObjectDefinePropertyCall(parent) && parent.arguments[1] === node) { + return getSymbolOfDeclaration(parent); + } + case 9 /* NumericLiteral */: + const objectType = isElementAccessExpression(parent) ? parent.argumentExpression === node ? getTypeOfExpression(parent.expression) : void 0 : isLiteralTypeNode(parent) && isIndexedAccessTypeNode(grandParent) ? getTypeFromTypeNode(grandParent.objectType) : void 0; + return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores(node.text)); + case 90 /* DefaultKeyword */: + case 100 /* FunctionKeyword */: + case 39 /* EqualsGreaterThanToken */: + case 86 /* ClassKeyword */: + return getSymbolOfNode(node.parent); + case 205 /* ImportType */: + return isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : void 0; + case 95 /* ExportKeyword */: + return isExportAssignment(node.parent) ? Debug.checkDefined(node.parent.symbol) : void 0; + case 102 /* ImportKeyword */: + case 105 /* NewKeyword */: + return isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : void 0; + case 104 /* InstanceOfKeyword */: + if (isBinaryExpression(node.parent)) { + const type = getTypeOfExpression(node.parent.right); + const hasInstanceMethodType = getSymbolHasInstanceMethodOfObjectType(type); + return (hasInstanceMethodType == null ? void 0 : hasInstanceMethodType.symbol) ?? type.symbol; + } + return void 0; + case 236 /* MetaProperty */: + return checkExpression(node).symbol; + case 295 /* JsxNamespacedName */: + if (isJSXTagName(node) && isJsxIntrinsicTagName(node)) { + const symbol = getIntrinsicTagSymbol(node.parent); + return symbol === unknownSymbol ? void 0 : symbol; + } + default: + return void 0; + } + } + function getIndexInfosAtLocation(node) { + if (isIdentifier(node) && isPropertyAccessExpression(node.parent) && node.parent.name === node) { + const keyType = getLiteralTypeFromPropertyName(node); + const objectType = getTypeOfExpression(node.parent.expression); + const objectTypes = objectType.flags & 1048576 /* Union */ ? objectType.types : [objectType]; + return flatMap(objectTypes, (t) => filter(getIndexInfosOfType(t), (info) => isApplicableIndexType(keyType, info.keyType))); + } + return void 0; + } + function getShorthandAssignmentValueSymbol(location) { + if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { + return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); + } + return void 0; + } + function getExportSpecifierLocalTargetSymbol(node) { + if (isExportSpecifier(node)) { + return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : resolveEntityName(node.propertyName || node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); + } else { + return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); + } + } + function getTypeOfNode(node) { + if (isSourceFile(node) && !isExternalModule(node)) { + return errorType; + } + if (node.flags & 67108864 /* InWithStatement */) { + return errorType; + } + const classDecl = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node); + const classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(classDecl.class)); + if (isPartOfTypeNode(node)) { + const typeFromTypeNode = getTypeFromTypeNode(node); + return classType ? getTypeWithThisArgument(typeFromTypeNode, classType.thisType) : typeFromTypeNode; + } + if (isExpressionNode(node)) { + return getRegularTypeOfExpression(node); + } + if (classType && !classDecl.isImplements) { + const baseType = firstOrUndefined(getBaseTypes(classType)); + return baseType ? getTypeWithThisArgument(baseType, classType.thisType) : errorType; + } + if (isTypeDeclaration(node)) { + const symbol = getSymbolOfDeclaration(node); + return getDeclaredTypeOfSymbol(symbol); + } + if (isTypeDeclarationName(node)) { + const symbol = getSymbolAtLocation(node); + return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType; + } + if (isBindingElement(node)) { + return getTypeForVariableLikeDeclaration( + node, + /*includeOptionality*/ + true, + 0 /* Normal */ + ) || errorType; + } + if (isDeclaration(node)) { + const symbol = getSymbolOfDeclaration(node); + return symbol ? getTypeOfSymbol(symbol) : errorType; + } + if (isDeclarationNameOrImportPropertyName(node)) { + const symbol = getSymbolAtLocation(node); + if (symbol) { + return getTypeOfSymbol(symbol); + } + return errorType; + } + if (isBindingPattern(node)) { + return getTypeForVariableLikeDeclaration( + node.parent, + /*includeOptionality*/ + true, + 0 /* Normal */ + ) || errorType; + } + if (isInRightSideOfImportOrExportAssignment(node)) { + const symbol = getSymbolAtLocation(node); + if (symbol) { + const declaredType = getDeclaredTypeOfSymbol(symbol); + return !isErrorType(declaredType) ? declaredType : getTypeOfSymbol(symbol); + } + } + if (isMetaProperty(node.parent) && node.parent.keywordToken === node.kind) { + return checkMetaPropertyKeyword(node.parent); + } + if (isImportAttributes(node)) { + return getGlobalImportAttributesType( + /*reportErrors*/ + false + ); + } + return errorType; + } + function getTypeOfAssignmentPattern(expr) { + Debug.assert(expr.kind === 210 /* ObjectLiteralExpression */ || expr.kind === 209 /* ArrayLiteralExpression */); + if (expr.parent.kind === 250 /* ForOfStatement */) { + const iteratedType = checkRightHandSideOfForOf(expr.parent); + return checkDestructuringAssignment(expr, iteratedType || errorType); + } + if (expr.parent.kind === 226 /* BinaryExpression */) { + const iteratedType = getTypeOfExpression(expr.parent.right); + return checkDestructuringAssignment(expr, iteratedType || errorType); + } + if (expr.parent.kind === 303 /* PropertyAssignment */) { + const node2 = cast(expr.parent.parent, isObjectLiteralExpression); + const typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node2) || errorType; + const propertyIndex = indexOfNode(node2.properties, expr.parent); + return checkObjectLiteralDestructuringPropertyAssignment(node2, typeOfParentObjectLiteral, propertyIndex); + } + const node = cast(expr.parent, isArrayLiteralExpression); + const typeOfArrayLiteral = getTypeOfAssignmentPattern(node) || errorType; + const elementType = checkIteratedTypeOrElementType(65 /* Destructuring */, typeOfArrayLiteral, undefinedType, expr.parent) || errorType; + return checkArrayLiteralDestructuringElementAssignment(node, typeOfArrayLiteral, node.elements.indexOf(expr), elementType); + } + function getPropertySymbolOfDestructuringAssignment(location) { + const typeOfObjectLiteral = getTypeOfAssignmentPattern(cast(location.parent.parent, isAssignmentPattern)); + return typeOfObjectLiteral && getPropertyOfType(typeOfObjectLiteral, location.escapedText); + } + function getRegularTypeOfExpression(expr) { + if (isRightSideOfQualifiedNameOrPropertyAccess(expr)) { + expr = expr.parent; + } + return getRegularTypeOfLiteralType(getTypeOfExpression(expr)); + } + function getParentTypeOfClassElement(node) { + const classSymbol = getSymbolOfNode(node.parent); + return isStatic(node) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol); + } + function getClassElementPropertyKeyType(element) { + const name = element.name; + switch (name.kind) { + case 80 /* Identifier */: + return getStringLiteralType(idText(name)); + case 9 /* NumericLiteral */: + case 11 /* StringLiteral */: + return getStringLiteralType(name.text); + case 167 /* ComputedPropertyName */: + const nameType = checkComputedPropertyName(name); + return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType; + default: + return Debug.fail("Unsupported property name."); + } + } + function getAugmentedPropertiesOfType(type) { + type = getApparentType(type); + const propsByName = createSymbolTable(getPropertiesOfType(type)); + const functionType = getSignaturesOfType(type, 0 /* Call */).length ? globalCallableFunctionType : getSignaturesOfType(type, 1 /* Construct */).length ? globalNewableFunctionType : void 0; + if (functionType) { + forEach(getPropertiesOfType(functionType), (p) => { + if (!propsByName.has(p.escapedName)) { + propsByName.set(p.escapedName, p); + } + }); + } + return getNamedMembers(propsByName); + } + function typeHasCallOrConstructSignatures(type) { + return getSignaturesOfType(type, 0 /* Call */).length !== 0 || getSignaturesOfType(type, 1 /* Construct */).length !== 0; + } + function getRootSymbols(symbol) { + const roots = getImmediateRootSymbols(symbol); + return roots ? flatMap(roots, getRootSymbols) : [symbol]; + } + function getImmediateRootSymbols(symbol) { + if (getCheckFlags(symbol) & 6 /* Synthetic */) { + return mapDefined(getSymbolLinks(symbol).containingType.types, (type) => getPropertyOfType(type, symbol.escapedName)); + } else if (symbol.flags & 33554432 /* Transient */) { + const { links: { leftSpread, rightSpread, syntheticOrigin } } = symbol; + return leftSpread ? [leftSpread, rightSpread] : syntheticOrigin ? [syntheticOrigin] : singleElementArray(tryGetTarget(symbol)); + } + return void 0; + } + function tryGetTarget(symbol) { + let target; + let next = symbol; + while (next = getSymbolLinks(next).target) { + target = next; + } + return target; + } + function isArgumentsLocalBinding(nodeIn) { + if (isGeneratedIdentifier(nodeIn)) return false; + const node = getParseTreeNode(nodeIn, isIdentifier); + if (!node) return false; + const parent = node.parent; + if (!parent) return false; + const isPropertyName2 = (isPropertyAccessExpression(parent) || isPropertyAssignment(parent)) && parent.name === node; + return !isPropertyName2 && getReferencedValueSymbol(node) === argumentsSymbol; + } + function isNameOfModuleOrEnumDeclaration(node) { + return isModuleOrEnumDeclaration(node.parent) && node === node.parent.name; + } + function getReferencedExportContainer(nodeIn, prefixLocals) { + var _a; + const node = getParseTreeNode(nodeIn, isIdentifier); + if (node) { + let symbol = getReferencedValueSymbol( + node, + /*startInDeclarationContainer*/ + isNameOfModuleOrEnumDeclaration(node) + ); + if (symbol) { + if (symbol.flags & 1048576 /* ExportValue */) { + const exportSymbol = getMergedSymbol(symbol.exportSymbol); + if (!prefixLocals && exportSymbol.flags & 944 /* ExportHasLocal */ && !(exportSymbol.flags & 3 /* Variable */)) { + return void 0; + } + symbol = exportSymbol; + } + const parentSymbol = getParentOfSymbol(symbol); + if (parentSymbol) { + if (parentSymbol.flags & 512 /* ValueModule */ && ((_a = parentSymbol.valueDeclaration) == null ? void 0 : _a.kind) === 307 /* SourceFile */) { + const symbolFile = parentSymbol.valueDeclaration; + const referenceFile = getSourceFileOfNode(node); + const symbolIsUmdExport = symbolFile !== referenceFile; + return symbolIsUmdExport ? void 0 : symbolFile; + } + return findAncestor(node.parent, (n) => isModuleOrEnumDeclaration(n) && getSymbolOfDeclaration(n) === parentSymbol); + } + } + } + } + function getReferencedImportDeclaration(nodeIn) { + const specifier = getIdentifierGeneratedImportReference(nodeIn); + if (specifier) { + return specifier; + } + const node = getParseTreeNode(nodeIn, isIdentifier); + if (node) { + const symbol = getReferencedValueOrAliasSymbol(node); + if (isNonLocalAlias( + symbol, + /*excludes*/ + 111551 /* Value */ + ) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) { + return getDeclarationOfAliasSymbol(symbol); + } + } + return void 0; + } + function isSymbolOfDestructuredElementOfCatchBinding(symbol) { + return symbol.valueDeclaration && isBindingElement(symbol.valueDeclaration) && walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 299 /* CatchClause */; + } + function isSymbolOfDeclarationWithCollidingName(symbol) { + if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !isSourceFile(symbol.valueDeclaration)) { + const links = getSymbolLinks(symbol); + if (links.isDeclarationWithCollidingName === void 0) { + const container = getEnclosingBlockScopeContainer(symbol.valueDeclaration); + if (isStatementWithLocals(container) || isSymbolOfDestructuredElementOfCatchBinding(symbol)) { + if (resolveName( + container.parent, + symbol.escapedName, + 111551 /* Value */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + false + )) { + links.isDeclarationWithCollidingName = true; + } else if (hasNodeCheckFlag(symbol.valueDeclaration, 16384 /* CapturedBlockScopedBinding */)) { + const isDeclaredInLoop = hasNodeCheckFlag(symbol.valueDeclaration, 32768 /* BlockScopedBindingInLoop */); + const inLoopInitializer = isIterationStatement( + container, + /*lookInLabeledStatements*/ + false + ); + const inLoopBodyBlock = container.kind === 241 /* Block */ && isIterationStatement( + container.parent, + /*lookInLabeledStatements*/ + false + ); + links.isDeclarationWithCollidingName = !isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || !inLoopInitializer && !inLoopBodyBlock); + } else { + links.isDeclarationWithCollidingName = false; + } + } + } + return links.isDeclarationWithCollidingName; + } + return false; + } + function getReferencedDeclarationWithCollidingName(nodeIn) { + if (!isGeneratedIdentifier(nodeIn)) { + const node = getParseTreeNode(nodeIn, isIdentifier); + if (node) { + const symbol = getReferencedValueSymbol(node); + if (symbol && isSymbolOfDeclarationWithCollidingName(symbol)) { + return symbol.valueDeclaration; + } + } + } + return void 0; + } + function isDeclarationWithCollidingName(nodeIn) { + const node = getParseTreeNode(nodeIn, isDeclaration); + if (node) { + const symbol = getSymbolOfDeclaration(node); + if (symbol) { + return isSymbolOfDeclarationWithCollidingName(symbol); + } + } + return false; + } + function isValueAliasDeclaration(node) { + Debug.assert(canCollectSymbolAliasAccessabilityData); + switch (node.kind) { + case 271 /* ImportEqualsDeclaration */: + return isAliasResolvedToValue(getSymbolOfDeclaration(node)); + case 273 /* ImportClause */: + case 274 /* NamespaceImport */: + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + const symbol = getSymbolOfDeclaration(node); + return !!symbol && isAliasResolvedToValue( + symbol, + /*excludeTypeOnlyValues*/ + true + ); + case 278 /* ExportDeclaration */: + const exportClause = node.exportClause; + return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration)); + case 277 /* ExportAssignment */: + return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue( + getSymbolOfDeclaration(node), + /*excludeTypeOnlyValues*/ + true + ) : true; + } + return false; + } + function isTopLevelValueImportEqualsWithEntityName(nodeIn) { + const node = getParseTreeNode(nodeIn, isImportEqualsDeclaration); + if (node === void 0 || node.parent.kind !== 307 /* SourceFile */ || !isInternalModuleImportEqualsDeclaration(node)) { + return false; + } + const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node)); + return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference); + } + function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) { + if (!symbol) { + return false; + } + const container = getSourceFileOfNode(symbol.valueDeclaration); + const fileSymbol = container && getSymbolOfDeclaration(container); + void resolveExternalModuleSymbol(fileSymbol); + const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol)); + if (target === unknownSymbol) { + return !excludeTypeOnlyValues || !getTypeOnlyAliasDeclaration(symbol); + } + return !!(getSymbolFlags( + symbol, + excludeTypeOnlyValues, + /*excludeLocalMeanings*/ + true + ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target)); + } + function isConstEnumOrConstEnumOnlyModule(s) { + return isConstEnumSymbol(s) || !!s.constEnumOnlyModule; + } + function isReferencedAliasDeclaration(node, checkChildren) { + Debug.assert(canCollectSymbolAliasAccessabilityData); + if (isAliasSymbolDeclaration(node)) { + const symbol = getSymbolOfDeclaration(node); + const links = symbol && getSymbolLinks(symbol); + if (links == null ? void 0 : links.referenced) { + return true; + } + const target = getSymbolLinks(symbol).aliasTarget; + if (target && getEffectiveModifierFlags(node) & 32 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) { + return true; + } + } + if (checkChildren) { + return !!forEachChild(node, (node2) => isReferencedAliasDeclaration(node2, checkChildren)); + } + return false; + } + function isImplementationOfOverload(node) { + if (nodeIsPresent(node.body)) { + if (isGetAccessor(node) || isSetAccessor(node)) return false; + const symbol = getSymbolOfDeclaration(node); + const signaturesOfSymbol = getSignaturesOfSymbol(symbol); + return signaturesOfSymbol.length > 1 || // If there is single signature for the symbol, it is overload if that signature isn't coming from the node + // e.g.: function foo(a: string): string; + // function foo(a: any) { // This is implementation of the overloads + // return a; + // } + signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node; + } + return false; + } + function declaredParameterTypeContainsUndefined(parameter) { + const typeNode = getNonlocalEffectiveTypeAnnotationNode(parameter); + if (!typeNode) return false; + const type = getTypeFromTypeNode(typeNode); + return containsUndefinedType(type); + } + function requiresAddingImplicitUndefined(parameter) { + return (isRequiredInitializedParameter(parameter) || isOptionalUninitializedParameterProperty(parameter)) && !declaredParameterTypeContainsUndefined(parameter); + } + function isRequiredInitializedParameter(parameter) { + return !!strictNullChecks && !isOptionalParameter(parameter) && !isJSDocParameterTag(parameter) && !!parameter.initializer && !hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */); + } + function isOptionalUninitializedParameterProperty(parameter) { + return strictNullChecks && isOptionalParameter(parameter) && (isJSDocParameterTag(parameter) || !parameter.initializer) && hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */); + } + function isExpandoFunctionDeclaration(node) { + const declaration = getParseTreeNode(node, (n) => isFunctionDeclaration(n) || isVariableDeclaration(n)); + if (!declaration) { + return false; + } + let symbol; + if (isVariableDeclaration(declaration)) { + if (declaration.type || !isInJSFile(declaration) && !isVarConstLike2(declaration)) { + return false; + } + const initializer = getDeclaredExpandoInitializer(declaration); + if (!initializer || !canHaveSymbol(initializer)) { + return false; + } + symbol = getSymbolOfDeclaration(initializer); + } else { + symbol = getSymbolOfDeclaration(declaration); + } + if (!symbol || !(symbol.flags & 16 /* Function */ | 3 /* Variable */)) { + return false; + } + return !!forEachEntry(getExportsOfSymbol(symbol), (p) => p.flags & 111551 /* Value */ && isExpandoPropertyDeclaration(p.valueDeclaration)); + } + function getPropertiesOfContainerFunction(node) { + const declaration = getParseTreeNode(node, isFunctionDeclaration); + if (!declaration) { + return emptyArray; + } + const symbol = getSymbolOfDeclaration(declaration); + return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || emptyArray; + } + function getNodeCheckFlags(node) { + var _a; + const nodeId = node.id || 0; + if (nodeId < 0 || nodeId >= nodeLinks.length) return 0; + return ((_a = nodeLinks[nodeId]) == null ? void 0 : _a.flags) || 0; + } + function hasNodeCheckFlag(node, flag) { + calculateNodeCheckFlagWorker(node, flag); + return !!(getNodeCheckFlags(node) & flag); + } + function calculateNodeCheckFlagWorker(node, flag) { + if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnsotics(getSourceFileOfNode(node), compilerOptions)) { + return; + } + const links = getNodeLinks(node); + if (links.calculatedFlags & flag) { + return; + } + switch (flag) { + case 16 /* SuperInstance */: + case 32 /* SuperStatic */: + return checkSingleSuperExpression(node); + case 128 /* MethodWithSuperPropertyAccessInAsync */: + case 256 /* MethodWithSuperPropertyAssignmentInAsync */: + case 2097152 /* ContainsSuperPropertyInStaticInitializer */: + return checkChildSuperExpressions(node); + case 512 /* CaptureArguments */: + case 8192 /* ContainsCapturedBlockScopeBinding */: + case 65536 /* NeedsLoopOutParameter */: + case 262144 /* ContainsConstructorReference */: + return checkChildIdentifiers(node); + case 536870912 /* ConstructorReference */: + return checkSingleIdentifier(node); + case 4096 /* LoopWithCapturedBlockScopedBinding */: + case 32768 /* BlockScopedBindingInLoop */: + case 16384 /* CapturedBlockScopedBinding */: + return checkContainingBlockScopeBindingUses(node); + default: + return Debug.assertNever(flag, `Unhandled node check flag calculation: ${Debug.formatNodeCheckFlags(flag)}`); + } + function forEachNodeRecursively(root, cb) { + const rootResult = cb(root, root.parent); + if (rootResult === "skip") return void 0; + if (rootResult) return rootResult; + return forEachChildRecursively(root, cb); + } + function checkSuperExpressions(node2) { + const links2 = getNodeLinks(node2); + if (links2.calculatedFlags & flag) return "skip"; + links2.calculatedFlags |= 128 /* MethodWithSuperPropertyAccessInAsync */ | 256 /* MethodWithSuperPropertyAssignmentInAsync */ | 2097152 /* ContainsSuperPropertyInStaticInitializer */; + checkSingleSuperExpression(node2); + return void 0; + } + function checkChildSuperExpressions(node2) { + forEachNodeRecursively(node2, checkSuperExpressions); + } + function checkSingleSuperExpression(node2) { + const nodeLinks2 = getNodeLinks(node2); + nodeLinks2.calculatedFlags |= 16 /* SuperInstance */ | 32 /* SuperStatic */; + if (node2.kind === 108 /* SuperKeyword */) { + checkSuperExpression(node2); + } + } + function checkIdentifiers(node2) { + const links2 = getNodeLinks(node2); + if (links2.calculatedFlags & flag) return "skip"; + links2.calculatedFlags |= 512 /* CaptureArguments */ | 8192 /* ContainsCapturedBlockScopeBinding */ | 65536 /* NeedsLoopOutParameter */ | 262144 /* ContainsConstructorReference */; + checkSingleIdentifier(node2); + return void 0; + } + function checkChildIdentifiers(node2) { + forEachNodeRecursively(node2, checkIdentifiers); + } + function isExpressionNodeOrShorthandPropertyAssignmentName(node2) { + return isExpressionNode(node2) || isShorthandPropertyAssignment(node2.parent) && (node2.parent.objectAssignmentInitializer ?? node2.parent.name) === node2; + } + function checkSingleIdentifier(node2) { + const nodeLinks2 = getNodeLinks(node2); + nodeLinks2.calculatedFlags |= 536870912 /* ConstructorReference */ | 16384 /* CapturedBlockScopedBinding */ | 32768 /* BlockScopedBindingInLoop */; + if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) { + const s = getResolvedSymbol(node2); + if (s && s !== unknownSymbol) { + checkIdentifierCalculateNodeCheckFlags(node2, s); + } + } + } + function checkBlockScopeBindings(node2) { + const links2 = getNodeLinks(node2); + if (links2.calculatedFlags & flag) return "skip"; + links2.calculatedFlags |= 4096 /* LoopWithCapturedBlockScopedBinding */ | 32768 /* BlockScopedBindingInLoop */ | 16384 /* CapturedBlockScopedBinding */; + checkSingleBlockScopeBinding(node2); + return void 0; + } + function checkContainingBlockScopeBindingUses(node2) { + const scope = getEnclosingBlockScopeContainer(isDeclarationName(node2) ? node2.parent : node2); + forEachNodeRecursively(scope, checkBlockScopeBindings); + } + function checkSingleBlockScopeBinding(node2) { + checkSingleIdentifier(node2); + if (isComputedPropertyName(node2)) { + checkComputedPropertyName(node2); + } + if (isPrivateIdentifier(node2) && isClassElement(node2.parent)) { + setNodeLinksForPrivateIdentifierScope(node2.parent); + } + } + } + function getEnumMemberValue(node) { + computeEnumMemberValues(node.parent); + return getNodeLinks(node).enumMemberValue ?? evaluatorResult( + /*value*/ + void 0 + ); + } + function canHaveConstantValue(node) { + switch (node.kind) { + case 306 /* EnumMember */: + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return true; + } + return false; + } + function getConstantValue2(node) { + if (node.kind === 306 /* EnumMember */) { + return getEnumMemberValue(node).value; + } + if (!getNodeLinks(node).resolvedSymbol) { + void checkExpressionCached(node); + } + const symbol = getNodeLinks(node).resolvedSymbol || (isEntityNameExpression(node) ? resolveEntityName( + node, + 111551 /* Value */, + /*ignoreErrors*/ + true + ) : void 0); + if (symbol && symbol.flags & 8 /* EnumMember */) { + const member = symbol.valueDeclaration; + if (isEnumConst(member.parent)) { + return getEnumMemberValue(member).value; + } + } + return void 0; + } + function isFunctionType(type) { + return !!(type.flags & 524288 /* Object */) && getSignaturesOfType(type, 0 /* Call */).length > 0; + } + function getTypeReferenceSerializationKind(typeNameIn, location) { + var _a; + const typeName = getParseTreeNode(typeNameIn, isEntityName); + if (!typeName) return 0 /* Unknown */; + if (location) { + location = getParseTreeNode(location); + if (!location) return 0 /* Unknown */; + } + let isTypeOnly = false; + if (isQualifiedName(typeName)) { + const rootValueSymbol = resolveEntityName( + getFirstIdentifier(typeName), + 111551 /* Value */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + location + ); + isTypeOnly = !!((_a = rootValueSymbol == null ? void 0 : rootValueSymbol.declarations) == null ? void 0 : _a.every(isTypeOnlyImportOrExportDeclaration)); + } + const valueSymbol = resolveEntityName( + typeName, + 111551 /* Value */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + location + ); + const resolvedValueSymbol = valueSymbol && valueSymbol.flags & 2097152 /* Alias */ ? resolveAlias(valueSymbol) : valueSymbol; + isTypeOnly || (isTypeOnly = !!(valueSymbol && getTypeOnlyAliasDeclaration(valueSymbol, 111551 /* Value */))); + const typeSymbol = resolveEntityName( + typeName, + 788968 /* Type */, + /*ignoreErrors*/ + true, + /*dontResolveAlias*/ + true, + location + ); + const resolvedTypeSymbol = typeSymbol && typeSymbol.flags & 2097152 /* Alias */ ? resolveAlias(typeSymbol) : typeSymbol; + if (!valueSymbol) { + isTypeOnly || (isTypeOnly = !!(typeSymbol && getTypeOnlyAliasDeclaration(typeSymbol, 788968 /* Type */))); + } + if (resolvedValueSymbol && resolvedValueSymbol === resolvedTypeSymbol) { + const globalPromiseSymbol = getGlobalPromiseConstructorSymbol( + /*reportErrors*/ + false + ); + if (globalPromiseSymbol && resolvedValueSymbol === globalPromiseSymbol) { + return 9 /* Promise */; + } + const constructorType = getTypeOfSymbol(resolvedValueSymbol); + if (constructorType && isConstructorType(constructorType)) { + return isTypeOnly ? 10 /* TypeWithCallSignature */ : 1 /* TypeWithConstructSignatureAndValue */; + } + } + if (!resolvedTypeSymbol) { + return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */; + } + const type = getDeclaredTypeOfSymbol(resolvedTypeSymbol); + if (isErrorType(type)) { + return isTypeOnly ? 11 /* ObjectType */ : 0 /* Unknown */; + } else if (type.flags & 3 /* AnyOrUnknown */) { + return 11 /* ObjectType */; + } else if (isTypeAssignableToKind(type, 16384 /* Void */ | 98304 /* Nullable */ | 131072 /* Never */)) { + return 2 /* VoidNullableOrNeverType */; + } else if (isTypeAssignableToKind(type, 528 /* BooleanLike */)) { + return 6 /* BooleanType */; + } else if (isTypeAssignableToKind(type, 296 /* NumberLike */)) { + return 3 /* NumberLikeType */; + } else if (isTypeAssignableToKind(type, 2112 /* BigIntLike */)) { + return 4 /* BigIntLikeType */; + } else if (isTypeAssignableToKind(type, 402653316 /* StringLike */)) { + return 5 /* StringLikeType */; + } else if (isTupleType(type)) { + return 7 /* ArrayLikeType */; + } else if (isTypeAssignableToKind(type, 12288 /* ESSymbolLike */)) { + return 8 /* ESSymbolType */; + } else if (isFunctionType(type)) { + return 10 /* TypeWithCallSignature */; + } else if (isArrayType(type)) { + return 7 /* ArrayLikeType */; + } else { + return 11 /* ObjectType */; + } + } + function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, tracker) { + const declaration = getParseTreeNode(declarationIn, isVariableLikeOrAccessor); + if (!declaration) { + return factory.createToken(133 /* AnyKeyword */); + } + const symbol = getSymbolOfDeclaration(declaration); + const type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType; + return nodeBuilder.serializeTypeForDeclaration(declaration, type, symbol, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker); + } + function isDeclarationWithPossibleInnerTypeNodeReuse(declaration) { + return isFunctionLike(declaration) || isExportAssignment(declaration) || isVariableLike(declaration); + } + function getAllAccessorDeclarationsForDeclaration(accessor) { + accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); + const otherKind = accessor.kind === 178 /* SetAccessor */ ? 177 /* GetAccessor */ : 178 /* SetAccessor */; + const otherAccessor = getDeclarationOfKind(getSymbolOfDeclaration(accessor), otherKind); + const firstAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? otherAccessor : accessor; + const secondAccessor = otherAccessor && otherAccessor.pos < accessor.pos ? accessor : otherAccessor; + const setAccessor = accessor.kind === 178 /* SetAccessor */ ? accessor : otherAccessor; + const getAccessor = accessor.kind === 177 /* GetAccessor */ ? accessor : otherAccessor; + return { + firstAccessor, + secondAccessor, + setAccessor, + getAccessor + }; + } + function getPossibleTypeNodeReuseExpression(declaration) { + return isFunctionLike(declaration) && !isSetAccessor(declaration) ? getSingleReturnExpression(declaration) : isExportAssignment(declaration) ? declaration.expression : !!declaration.initializer ? declaration.initializer : isParameter(declaration) && isSetAccessor(declaration.parent) ? getSingleReturnExpression(getAllAccessorDeclarationsForDeclaration(declaration.parent).getAccessor) : void 0; + } + function getSingleReturnExpression(declaration) { + let candidateExpr; + if (declaration && !nodeIsMissing(declaration.body)) { + if (getFunctionFlags(declaration) & 3 /* AsyncGenerator */) return void 0; + const body = declaration.body; + if (body && isBlock(body)) { + forEachReturnStatement(body, (s) => { + if (!candidateExpr) { + candidateExpr = s.expression; + } else { + candidateExpr = void 0; + return true; + } + }); + } else { + candidateExpr = body; + } + } + return candidateExpr; + } + function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, tracker) { + const signatureDeclaration = getParseTreeNode(signatureDeclarationIn, isFunctionLike); + if (!signatureDeclaration) { + return factory.createToken(133 /* AnyKeyword */); + } + return nodeBuilder.serializeReturnTypeForSignature(getSignatureFromDeclaration(signatureDeclaration), enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker); + } + function createTypeOfExpression(exprIn, enclosingDeclaration, flags, tracker) { + const expr = getParseTreeNode(exprIn, isExpression); + if (!expr) { + return factory.createToken(133 /* AnyKeyword */); + } + const type = getWidenedType(getRegularTypeOfExpression(expr)); + return nodeBuilder.expressionOrTypeToTypeNode( + expr, + type, + /*addUndefined*/ + void 0, + enclosingDeclaration, + flags | 1024 /* MultilineObjectLiterals */, + tracker + ); + } + function hasGlobalName(name) { + return globals.has(escapeLeadingUnderscores(name)); + } + function getReferencedValueSymbol(reference, startInDeclarationContainer) { + const resolvedSymbol = getNodeLinks(reference).resolvedSymbol; + if (resolvedSymbol) { + return resolvedSymbol; + } + let location = reference; + if (startInDeclarationContainer) { + const parent = reference.parent; + if (isDeclaration(parent) && reference === parent.name) { + location = getDeclarationContainer(parent); + } + } + return resolveName( + location, + reference.escapedText, + 111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true + ); + } + function getReferencedValueOrAliasSymbol(reference) { + const resolvedSymbol = getNodeLinks(reference).resolvedSymbol; + if (resolvedSymbol && resolvedSymbol !== unknownSymbol) { + return resolvedSymbol; + } + return resolveName( + reference, + reference.escapedText, + 111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */, + /*nameNotFoundMessage*/ + void 0, + /*isUse*/ + true, + /*excludeGlobals*/ + void 0 + ); + } + function getReferencedValueDeclaration(referenceIn) { + if (!isGeneratedIdentifier(referenceIn)) { + const reference = getParseTreeNode(referenceIn, isIdentifier); + if (reference) { + const symbol = getReferencedValueSymbol(reference); + if (symbol) { + return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration; + } + } + } + return void 0; + } + function getReferencedValueDeclarations(referenceIn) { + if (!isGeneratedIdentifier(referenceIn)) { + const reference = getParseTreeNode(referenceIn, isIdentifier); + if (reference) { + const symbol = getReferencedValueSymbol(reference); + if (symbol) { + return filter(getExportSymbolOfValueSymbolIfExported(symbol).declarations, (declaration) => { + switch (declaration.kind) { + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 172 /* PropertyDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 306 /* EnumMember */: + case 210 /* ObjectLiteralExpression */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 266 /* EnumDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 267 /* ModuleDeclaration */: + return true; + } + return false; + }); + } + } + } + return void 0; + } + function isLiteralConstDeclaration(node) { + if (isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike2(node)) { + return isFreshLiteralType(getTypeOfSymbol(getSymbolOfDeclaration(node))); + } + return false; + } + function literalTypeToNode(type, enclosing, tracker) { + const enumResult = type.flags & 1056 /* EnumLike */ ? nodeBuilder.symbolToExpression( + type.symbol, + 111551 /* Value */, + enclosing, + /*flags*/ + void 0, + tracker + ) : type === trueType ? factory.createTrue() : type === falseType && factory.createFalse(); + if (enumResult) return enumResult; + const literalValue = type.value; + return typeof literalValue === "object" ? factory.createBigIntLiteral(literalValue) : typeof literalValue === "string" ? factory.createStringLiteral(literalValue) : literalValue < 0 ? factory.createPrefixUnaryExpression(41 /* MinusToken */, factory.createNumericLiteral(-literalValue)) : factory.createNumericLiteral(literalValue); + } + function createLiteralConstValue(node, tracker) { + const type = getTypeOfSymbol(getSymbolOfDeclaration(node)); + return literalTypeToNode(type, node, tracker); + } + function getJsxFactoryEntity(location) { + return location ? (getJsxNamespace(location), getSourceFileOfNode(location).localJsxFactory || _jsxFactoryEntity) : _jsxFactoryEntity; + } + function getJsxFragmentFactoryEntity(location) { + if (location) { + const file = getSourceFileOfNode(location); + if (file) { + if (file.localJsxFragmentFactory) { + return file.localJsxFragmentFactory; + } + const jsxFragPragmas = file.pragmas.get("jsxfrag"); + const jsxFragPragma = isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas; + if (jsxFragPragma) { + file.localJsxFragmentFactory = parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion); + return file.localJsxFragmentFactory; + } + } + } + if (compilerOptions.jsxFragmentFactory) { + return parseIsolatedEntityName(compilerOptions.jsxFragmentFactory, languageVersion); + } + } + function getNonlocalEffectiveTypeAnnotationNode(node) { + const direct = getEffectiveTypeAnnotationNode(node); + if (direct) { + return direct; + } + if (node.kind === 169 /* Parameter */ && node.parent.kind === 178 /* SetAccessor */) { + const other = getAllAccessorDeclarationsForDeclaration(node.parent).getAccessor; + if (other) { + return getEffectiveReturnTypeNode(other); + } + } + return void 0; + } + function getNonlocalEffectiveReturnTypeAnnotationNode(node) { + const direct = getEffectiveReturnTypeNode(node); + if (direct) { + return direct; + } + if (node.kind === 177 /* GetAccessor */) { + const other = getAllAccessorDeclarationsForDeclaration(node).setAccessor; + if (other) { + const param = getSetAccessorValueParameter(other); + if (param) { + return getEffectiveTypeAnnotationNode(param); + } + } + } + return void 0; + } + function createResolver() { + return { + getReferencedExportContainer, + getReferencedImportDeclaration, + getReferencedDeclarationWithCollidingName, + isDeclarationWithCollidingName, + isValueAliasDeclaration: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node && canCollectSymbolAliasAccessabilityData ? isValueAliasDeclaration(node) : true; + }, + hasGlobalName, + isReferencedAliasDeclaration: (nodeIn, checkChildren) => { + const node = getParseTreeNode(nodeIn); + return node && canCollectSymbolAliasAccessabilityData ? isReferencedAliasDeclaration(node, checkChildren) : true; + }, + hasNodeCheckFlag: (nodeIn, flag) => { + const node = getParseTreeNode(nodeIn); + if (!node) return false; + return hasNodeCheckFlag(node, flag); + }, + isTopLevelValueImportEqualsWithEntityName, + isDeclarationVisible, + isImplementationOfOverload, + requiresAddingImplicitUndefined, + isExpandoFunctionDeclaration, + getPropertiesOfContainerFunction, + createTypeOfDeclaration, + createReturnTypeOfSignatureDeclaration, + createTypeOfExpression, + createLiteralConstValue, + isSymbolAccessible, + isEntityNameVisible, + getConstantValue: (nodeIn) => { + const node = getParseTreeNode(nodeIn, canHaveConstantValue); + return node ? getConstantValue2(node) : void 0; + }, + getEnumMemberValue: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isEnumMember); + return node ? getEnumMemberValue(node) : void 0; + }, + collectLinkedAliases, + markLinkedReferences: (nodeIn) => { + const node = getParseTreeNode(nodeIn); + return node && markLinkedReferences(node, 0 /* Unspecified */); + }, + getReferencedValueDeclaration, + getReferencedValueDeclarations, + getTypeReferenceSerializationKind, + isOptionalParameter, + isArgumentsLocalBinding, + getExternalModuleFileFromDeclaration: (nodeIn) => { + const node = getParseTreeNode(nodeIn, hasPossibleExternalModuleReference); + return node && getExternalModuleFileFromDeclaration(node); + }, + isLiteralConstDeclaration, + isLateBound: (nodeIn) => { + const node = getParseTreeNode(nodeIn, isDeclaration); + const symbol = node && getSymbolOfDeclaration(node); + return !!(symbol && getCheckFlags(symbol) & 4096 /* Late */); + }, + getJsxFactoryEntity, + getJsxFragmentFactoryEntity, + isBindingCapturedByNode: (node, decl) => { + const parseNode = getParseTreeNode(node); + const parseDecl = getParseTreeNode(decl); + return !!parseNode && !!parseDecl && (isVariableDeclaration(parseDecl) || isBindingElement(parseDecl)) && isBindingCapturedByNode(parseNode, parseDecl); + }, + getDeclarationStatementsForSourceFile: (node, flags, tracker) => { + const n = getParseTreeNode(node); + Debug.assert(n && n.kind === 307 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); + const sym = getSymbolOfDeclaration(node); + if (!sym) { + return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker); + } + resolveExternalModuleSymbol(sym); + return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker); + }, + isImportRequiredByAugmentation, + isDefinitelyReferenceToGlobalSymbolObject + }; + function isImportRequiredByAugmentation(node) { + const file = getSourceFileOfNode(node); + if (!file.symbol) return false; + const importTarget = getExternalModuleFileFromDeclaration(node); + if (!importTarget) return false; + if (importTarget === file) return false; + const exports2 = getExportsOfModule(file.symbol); + for (const s of arrayFrom(exports2.values())) { + if (s.mergeId) { + const merged = getMergedSymbol(s); + if (merged.declarations) { + for (const d of merged.declarations) { + const declFile = getSourceFileOfNode(d); + if (declFile === importTarget) { + return true; + } + } + } + } + } + return false; + } + } + function getExternalModuleFileFromDeclaration(declaration) { + const specifier = declaration.kind === 267 /* ModuleDeclaration */ ? tryCast(declaration.name, isStringLiteral) : getExternalModuleName(declaration); + const moduleSymbol = resolveExternalModuleNameWorker( + specifier, + specifier, + /*moduleNotFoundError*/ + void 0 + ); + if (!moduleSymbol) { + return void 0; + } + return getDeclarationOfKind(moduleSymbol, 307 /* SourceFile */); + } + function initializeTypeChecker() { + for (const file of host.getSourceFiles()) { + bindSourceFile(file, compilerOptions); + } + amalgamatedDuplicates = /* @__PURE__ */ new Map(); + let augmentations; + for (const file of host.getSourceFiles()) { + if (file.redirectInfo) { + continue; + } + if (!isExternalOrCommonJsModule(file)) { + const fileGlobalThisSymbol = file.locals.get("globalThis"); + if (fileGlobalThisSymbol == null ? void 0 : fileGlobalThisSymbol.declarations) { + for (const declaration of fileGlobalThisSymbol.declarations) { + diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, "globalThis")); + } + } + mergeSymbolTable(globals, file.locals); + } + if (file.jsGlobalAugmentations) { + mergeSymbolTable(globals, file.jsGlobalAugmentations); + } + if (file.patternAmbientModules && file.patternAmbientModules.length) { + patternAmbientModules = concatenate(patternAmbientModules, file.patternAmbientModules); + } + if (file.moduleAugmentations.length) { + (augmentations || (augmentations = [])).push(file.moduleAugmentations); + } + if (file.symbol && file.symbol.globalExports) { + const source = file.symbol.globalExports; + source.forEach((sourceSymbol, id) => { + if (!globals.has(id)) { + globals.set(id, sourceSymbol); + } + }); + } + } + if (augmentations) { + for (const list of augmentations) { + for (const augmentation of list) { + if (!isGlobalScopeAugmentation(augmentation.parent)) continue; + mergeModuleAugmentation(augmentation); + } + } + } + addUndefinedToGlobalsOrErrorOnRedeclaration(); + getSymbolLinks(undefinedSymbol).type = undefinedWideningType; + getSymbolLinks(argumentsSymbol).type = getGlobalType( + "IArguments", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + getSymbolLinks(unknownSymbol).type = errorType; + getSymbolLinks(globalThisSymbol).type = createObjectType(16 /* Anonymous */, globalThisSymbol); + globalArrayType = getGlobalType( + "Array", + /*arity*/ + 1, + /*reportErrors*/ + true + ); + globalObjectType = getGlobalType( + "Object", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + globalFunctionType = getGlobalType( + "Function", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + globalCallableFunctionType = strictBindCallApply && getGlobalType( + "CallableFunction", + /*arity*/ + 0, + /*reportErrors*/ + true + ) || globalFunctionType; + globalNewableFunctionType = strictBindCallApply && getGlobalType( + "NewableFunction", + /*arity*/ + 0, + /*reportErrors*/ + true + ) || globalFunctionType; + globalStringType = getGlobalType( + "String", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + globalNumberType = getGlobalType( + "Number", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + globalBooleanType = getGlobalType( + "Boolean", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + globalRegExpType = getGlobalType( + "RegExp", + /*arity*/ + 0, + /*reportErrors*/ + true + ); + anyArrayType = createArrayType(anyType); + autoArrayType = createArrayType(autoType); + if (autoArrayType === emptyObjectType) { + autoArrayType = createAnonymousType( + /*symbol*/ + void 0, + emptySymbols, + emptyArray, + emptyArray, + emptyArray + ); + } + globalReadonlyArrayType = getGlobalTypeOrUndefined( + "ReadonlyArray", + /*arity*/ + 1 + ) || globalArrayType; + anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType; + globalThisType = getGlobalTypeOrUndefined( + "ThisType", + /*arity*/ + 1 + ); + if (augmentations) { + for (const list of augmentations) { + for (const augmentation of list) { + if (isGlobalScopeAugmentation(augmentation.parent)) continue; + mergeModuleAugmentation(augmentation); + } + } + } + amalgamatedDuplicates.forEach(({ firstFile, secondFile, conflictingSymbols }) => { + if (conflictingSymbols.size < 8) { + conflictingSymbols.forEach(({ isBlockScoped, firstFileLocations, secondFileLocations }, symbolName2) => { + const message = isBlockScoped ? Diagnostics.Cannot_redeclare_block_scoped_variable_0 : Diagnostics.Duplicate_identifier_0; + for (const node of firstFileLocations) { + addDuplicateDeclarationError(node, message, symbolName2, secondFileLocations); + } + for (const node of secondFileLocations) { + addDuplicateDeclarationError(node, message, symbolName2, firstFileLocations); + } + }); + } else { + const list = arrayFrom(conflictingSymbols.keys()).join(", "); + diagnostics.add(addRelatedInfo( + createDiagnosticForNode(firstFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), + createDiagnosticForNode(secondFile, Diagnostics.Conflicts_are_in_this_file) + )); + diagnostics.add(addRelatedInfo( + createDiagnosticForNode(secondFile, Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), + createDiagnosticForNode(firstFile, Diagnostics.Conflicts_are_in_this_file) + )); + } + }); + amalgamatedDuplicates = void 0; + } + function checkExternalEmitHelpers(location, helpers) { + if (compilerOptions.importHelpers) { + const sourceFile = getSourceFileOfNode(location); + if (isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 33554432 /* Ambient */)) { + const helpersModule = resolveHelpersModule(sourceFile, location); + if (helpersModule !== unknownSymbol) { + const links = getSymbolLinks(helpersModule); + links.requestedExternalEmitHelpers ?? (links.requestedExternalEmitHelpers = 0); + if ((links.requestedExternalEmitHelpers & helpers) !== helpers) { + const uncheckedHelpers = helpers & ~links.requestedExternalEmitHelpers; + for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) { + if (uncheckedHelpers & helper) { + for (const name of getHelperNames(helper)) { + const symbol = resolveSymbol(getSymbol(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */)); + if (!symbol) { + error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name); + } else if (helper & 524288 /* ClassPrivateFieldGet */) { + if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 3)) { + error(location, Diagnostics.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, externalHelpersModuleNameText, name, 4); + } + } else if (helper & 1048576 /* ClassPrivateFieldSet */) { + if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 4)) { + error(location, Diagnostics.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, externalHelpersModuleNameText, name, 5); + } + } else if (helper & 1024 /* SpreadArray */) { + if (!some(getSignaturesOfSymbol(symbol), (signature) => getParameterCount(signature) > 2)) { + error(location, Diagnostics.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, externalHelpersModuleNameText, name, 3); + } + } + } + } + } + } + links.requestedExternalEmitHelpers |= helpers; + } + } + } + } + function getHelperNames(helper) { + switch (helper) { + case 1 /* Extends */: + return ["__extends"]; + case 2 /* Assign */: + return ["__assign"]; + case 4 /* Rest */: + return ["__rest"]; + case 8 /* Decorate */: + return legacyDecorators ? ["__decorate"] : ["__esDecorate", "__runInitializers"]; + case 16 /* Metadata */: + return ["__metadata"]; + case 32 /* Param */: + return ["__param"]; + case 64 /* Awaiter */: + return ["__awaiter"]; + case 128 /* Generator */: + return ["__generator"]; + case 256 /* Values */: + return ["__values"]; + case 512 /* Read */: + return ["__read"]; + case 1024 /* SpreadArray */: + return ["__spreadArray"]; + case 2048 /* Await */: + return ["__await"]; + case 4096 /* AsyncGenerator */: + return ["__asyncGenerator"]; + case 8192 /* AsyncDelegator */: + return ["__asyncDelegator"]; + case 16384 /* AsyncValues */: + return ["__asyncValues"]; + case 32768 /* ExportStar */: + return ["__exportStar"]; + case 65536 /* ImportStar */: + return ["__importStar"]; + case 131072 /* ImportDefault */: + return ["__importDefault"]; + case 262144 /* MakeTemplateObject */: + return ["__makeTemplateObject"]; + case 524288 /* ClassPrivateFieldGet */: + return ["__classPrivateFieldGet"]; + case 1048576 /* ClassPrivateFieldSet */: + return ["__classPrivateFieldSet"]; + case 2097152 /* ClassPrivateFieldIn */: + return ["__classPrivateFieldIn"]; + case 4194304 /* SetFunctionName */: + return ["__setFunctionName"]; + case 8388608 /* PropKey */: + return ["__propKey"]; + case 16777216 /* AddDisposableResourceAndDisposeResources */: + return ["__addDisposableResource", "__disposeResources"]; + default: + return Debug.fail("Unrecognized helper"); + } + } + function resolveHelpersModule(file, errorNode) { + const links = getNodeLinks(file); + if (!links.externalHelpersModule) { + links.externalHelpersModule = resolveExternalModule(getImportHelpersImportSpecifier(file), externalHelpersModuleNameText, Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, errorNode) || unknownSymbol; + } + return links.externalHelpersModule; + } + function checkGrammarModifiers(node) { + var _a; + const quickResult = reportObviousDecoratorErrors(node) || reportObviousModifierErrors(node); + if (quickResult !== void 0) { + return quickResult; + } + if (isParameter(node) && parameterIsThisKeyword(node)) { + return grammarErrorOnFirstToken(node, Diagnostics.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters); + } + const blockScopeKind = isVariableStatement(node) ? node.declarationList.flags & 7 /* BlockScoped */ : 0 /* None */; + let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator; + let flags = 0 /* None */; + let sawExportBeforeDecorators = false; + let hasLeadingDecorators = false; + for (const modifier of node.modifiers) { + if (isDecorator(modifier)) { + if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) { + if (node.kind === 174 /* MethodDeclaration */ && !nodeIsPresent(node.body)) { + return grammarErrorOnFirstToken(node, Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload); + } else { + return grammarErrorOnFirstToken(node, Diagnostics.Decorators_are_not_valid_here); + } + } else if (legacyDecorators && (node.kind === 177 /* GetAccessor */ || node.kind === 178 /* SetAccessor */)) { + const accessors = getAllAccessorDeclarationsForDeclaration(node); + if (hasDecorators(accessors.firstAccessor) && node === accessors.secondAccessor) { + return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name); + } + } + if (flags & ~(2080 /* ExportDefault */ | 32768 /* Decorator */)) { + return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here); + } + if (hasLeadingDecorators && flags & 98303 /* Modifier */) { + Debug.assertIsDefined(firstDecorator); + const sourceFile = getSourceFileOfNode(modifier); + if (!hasParseDiagnostics(sourceFile)) { + addRelatedInfo( + error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), + createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here) + ); + return true; + } + return false; + } + flags |= 32768 /* Decorator */; + if (!(flags & 98303 /* Modifier */)) { + hasLeadingDecorators = true; + } else if (flags & 32 /* Export */) { + sawExportBeforeDecorators = true; + } + firstDecorator ?? (firstDecorator = modifier); + } else { + if (modifier.kind !== 148 /* ReadonlyKeyword */) { + if (node.kind === 171 /* PropertySignature */ || node.kind === 173 /* MethodSignature */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_member, tokenToString(modifier.kind)); + } + if (node.kind === 181 /* IndexSignature */ && (modifier.kind !== 126 /* StaticKeyword */ || !isClassLike(node.parent))) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_index_signature, tokenToString(modifier.kind)); + } + } + if (modifier.kind !== 103 /* InKeyword */ && modifier.kind !== 147 /* OutKeyword */ && modifier.kind !== 87 /* ConstKeyword */) { + if (node.kind === 168 /* TypeParameter */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_type_parameter, tokenToString(modifier.kind)); + } + } + switch (modifier.kind) { + case 87 /* ConstKeyword */: { + if (node.kind !== 266 /* EnumDeclaration */ && node.kind !== 168 /* TypeParameter */) { + return grammarErrorOnNode(node, Diagnostics.A_class_member_cannot_have_the_0_keyword, tokenToString(87 /* ConstKeyword */)); + } + const parent = isJSDocTemplateTag(node.parent) && getEffectiveJSDocHost(node.parent) || node.parent; + if (node.kind === 168 /* TypeParameter */ && !(isFunctionLikeDeclaration(parent) || isClassLike(parent) || isFunctionTypeNode(parent) || isConstructorTypeNode(parent) || isCallSignatureDeclaration(parent) || isConstructSignatureDeclaration(parent) || isMethodSignature(parent))) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class, tokenToString(modifier.kind)); + } + break; + } + case 164 /* OverrideKeyword */: + if (flags & 16 /* Override */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "override"); + } else if (flags & 128 /* Ambient */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "override", "declare"); + } else if (flags & 8 /* Readonly */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "readonly"); + } else if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "accessor"); + } else if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "override", "async"); + } + flags |= 16 /* Override */; + lastOverride = modifier; + break; + case 125 /* PublicKeyword */: + case 124 /* ProtectedKeyword */: + case 123 /* PrivateKeyword */: + const text = visibilityToString(modifierToFlag(modifier.kind)); + if (flags & 7 /* AccessibilityModifier */) { + return grammarErrorOnNode(modifier, Diagnostics.Accessibility_modifier_already_seen); + } else if (flags & 16 /* Override */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "override"); + } else if (flags & 256 /* Static */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "static"); + } else if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "accessor"); + } else if (flags & 8 /* Readonly */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "readonly"); + } else if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "async"); + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text); + } else if (flags & 64 /* Abstract */) { + if (modifier.kind === 123 /* PrivateKeyword */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, text, "abstract"); + } else { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, text, "abstract"); + } + } else if (isPrivateIdentifierClassElementDeclaration(node)) { + return grammarErrorOnNode(modifier, Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier); + } + flags |= modifierToFlag(modifier.kind); + break; + case 126 /* StaticKeyword */: + if (flags & 256 /* Static */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "static"); + } else if (flags & 8 /* Readonly */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "readonly"); + } else if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "async"); + } else if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "accessor"); + } else if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, "static"); + } else if (node.kind === 169 /* Parameter */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "static"); + } else if (flags & 64 /* Abstract */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); + } else if (flags & 16 /* Override */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "static", "override"); + } + flags |= 256 /* Static */; + lastStatic = modifier; + break; + case 129 /* AccessorKeyword */: + if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "accessor"); + } else if (flags & 8 /* Readonly */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "readonly"); + } else if (flags & 128 /* Ambient */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "accessor", "declare"); + } else if (node.kind !== 172 /* PropertyDeclaration */) { + return grammarErrorOnNode(modifier, Diagnostics.accessor_modifier_can_only_appear_on_a_property_declaration); + } + flags |= 512 /* Accessor */; + break; + case 148 /* ReadonlyKeyword */: + if (flags & 8 /* Readonly */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "readonly"); + } else if (node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 171 /* PropertySignature */ && node.kind !== 181 /* IndexSignature */ && node.kind !== 169 /* Parameter */) { + return grammarErrorOnNode(modifier, Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature); + } else if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "readonly", "accessor"); + } + flags |= 8 /* Readonly */; + break; + case 95 /* ExportKeyword */: + if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 307 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + } + if (flags & 32 /* Export */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "export"); + } else if (flags & 128 /* Ambient */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "declare"); + } else if (flags & 64 /* Abstract */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "abstract"); + } else if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "async"); + } else if (isClassLike(node.parent)) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "export"); + } else if (node.kind === 169 /* Parameter */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "export"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "export"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "export"); + } + flags |= 32 /* Export */; + break; + case 90 /* DefaultKeyword */: + const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent; + if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { + return grammarErrorOnNode(modifier, Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "default"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "default"); + } else if (!(flags & 32 /* Export */)) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "export", "default"); + } else if (sawExportBeforeDecorators) { + return grammarErrorOnNode(firstDecorator, Diagnostics.Decorators_are_not_valid_here); + } + flags |= 2048 /* Default */; + break; + case 138 /* DeclareKeyword */: + if (flags & 128 /* Ambient */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "declare"); + } else if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); + } else if (flags & 16 /* Override */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "override"); + } else if (isClassLike(node.parent) && !isPropertyDeclaration(node)) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, "declare"); + } else if (node.kind === 169 /* Parameter */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "declare"); + } else if (blockScopeKind === 4 /* Using */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_using_declaration, "declare"); + } else if (blockScopeKind === 6 /* AwaitUsing */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_an_await_using_declaration, "declare"); + } else if (node.parent.flags & 33554432 /* Ambient */ && node.parent.kind === 268 /* ModuleBlock */) { + return grammarErrorOnNode(modifier, Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context); + } else if (isPrivateIdentifierClassElementDeclaration(node)) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "declare"); + } else if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "declare", "accessor"); + } + flags |= 128 /* Ambient */; + lastDeclare = modifier; + break; + case 128 /* AbstractKeyword */: + if (flags & 64 /* Abstract */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "abstract"); + } + if (node.kind !== 263 /* ClassDeclaration */ && node.kind !== 185 /* ConstructorType */) { + if (node.kind !== 174 /* MethodDeclaration */ && node.kind !== 172 /* PropertyDeclaration */ && node.kind !== 177 /* GetAccessor */ && node.kind !== 178 /* SetAccessor */) { + return grammarErrorOnNode(modifier, Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration); + } + if (!(node.parent.kind === 263 /* ClassDeclaration */ && hasSyntacticModifier(node.parent, 64 /* Abstract */))) { + const message = node.kind === 172 /* PropertyDeclaration */ ? Diagnostics.Abstract_properties_can_only_appear_within_an_abstract_class : Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class; + return grammarErrorOnNode(modifier, message); + } + if (flags & 256 /* Static */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "static", "abstract"); + } + if (flags & 2 /* Private */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "private", "abstract"); + } + if (flags & 1024 /* Async */ && lastAsync) { + return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); + } + if (flags & 16 /* Override */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "override"); + } + if (flags & 512 /* Accessor */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "abstract", "accessor"); + } + } + if (isNamedDeclaration(node) && node.name.kind === 81 /* PrivateIdentifier */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, "abstract"); + } + flags |= 64 /* Abstract */; + break; + case 134 /* AsyncKeyword */: + if (flags & 1024 /* Async */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, "async"); + } else if (flags & 128 /* Ambient */ || node.parent.flags & 33554432 /* Ambient */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, "async"); + } else if (node.kind === 169 /* Parameter */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_appear_on_a_parameter, "async"); + } + if (flags & 64 /* Abstract */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_cannot_be_used_with_1_modifier, "async", "abstract"); + } + flags |= 1024 /* Async */; + lastAsync = modifier; + break; + case 103 /* InKeyword */: + case 147 /* OutKeyword */: { + const inOutFlag = modifier.kind === 103 /* InKeyword */ ? 8192 /* In */ : 16384 /* Out */; + const inOutText = modifier.kind === 103 /* InKeyword */ ? "in" : "out"; + const parent = isJSDocTemplateTag(node.parent) && (getEffectiveJSDocHost(node.parent) || find((_a = getJSDocRoot(node.parent)) == null ? void 0 : _a.tags, isJSDocTypedefTag)) || node.parent; + if (node.kind !== 168 /* TypeParameter */ || parent && !(isInterfaceDeclaration(parent) || isClassLike(parent) || isTypeAliasDeclaration(parent) || isJSDocTypedefTag(parent))) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias, inOutText); + } + if (flags & inOutFlag) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_already_seen, inOutText); + } + if (inOutFlag & 8192 /* In */ && flags & 16384 /* Out */) { + return grammarErrorOnNode(modifier, Diagnostics._0_modifier_must_precede_1_modifier, "in", "out"); + } + flags |= inOutFlag; + break; + } + } + } + } + if (node.kind === 176 /* Constructor */) { + if (flags & 256 /* Static */) { + return grammarErrorOnNode(lastStatic, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "static"); + } + if (flags & 16 /* Override */) { + return grammarErrorOnNode(lastOverride, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "override"); + } + if (flags & 1024 /* Async */) { + return grammarErrorOnNode(lastAsync, Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, "async"); + } + return false; + } else if ((node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */) && flags & 128 /* Ambient */) { + return grammarErrorOnNode(lastDeclare, Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, "declare"); + } else if (node.kind === 169 /* Parameter */ && flags & 31 /* ParameterPropertyModifier */ && isBindingPattern(node.name)) { + return grammarErrorOnNode(node, Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern); + } else if (node.kind === 169 /* Parameter */ && flags & 31 /* ParameterPropertyModifier */ && node.dotDotDotToken) { + return grammarErrorOnNode(node, Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter); + } + if (flags & 1024 /* Async */) { + return checkGrammarAsyncModifier(node, lastAsync); + } + return false; + } + function reportObviousModifierErrors(node) { + if (!node.modifiers) return false; + const modifier = findFirstIllegalModifier(node); + return modifier && grammarErrorOnFirstToken(modifier, Diagnostics.Modifiers_cannot_appear_here); + } + function findFirstModifierExcept(node, allowedModifier) { + const modifier = find(node.modifiers, isModifier); + return modifier && modifier.kind !== allowedModifier ? modifier : void 0; + } + function findFirstIllegalModifier(node) { + switch (node.kind) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 181 /* IndexSignature */: + case 267 /* ModuleDeclaration */: + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 169 /* Parameter */: + case 168 /* TypeParameter */: + return void 0; + case 175 /* ClassStaticBlockDeclaration */: + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 270 /* NamespaceExportDeclaration */: + case 282 /* MissingDeclaration */: + return find(node.modifiers, isModifier); + default: + if (node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { + return void 0; + } + switch (node.kind) { + case 262 /* FunctionDeclaration */: + return findFirstModifierExcept(node, 134 /* AsyncKeyword */); + case 263 /* ClassDeclaration */: + case 185 /* ConstructorType */: + return findFirstModifierExcept(node, 128 /* AbstractKeyword */); + case 231 /* ClassExpression */: + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + return find(node.modifiers, isModifier); + case 243 /* VariableStatement */: + return node.declarationList.flags & 4 /* Using */ ? findFirstModifierExcept(node, 135 /* AwaitKeyword */) : find(node.modifiers, isModifier); + case 266 /* EnumDeclaration */: + return findFirstModifierExcept(node, 87 /* ConstKeyword */); + default: + Debug.assertNever(node); + } + } + } + function reportObviousDecoratorErrors(node) { + const decorator = findFirstIllegalDecorator(node); + return decorator && grammarErrorOnFirstToken(decorator, Diagnostics.Decorators_are_not_valid_here); + } + function findFirstIllegalDecorator(node) { + return canHaveIllegalDecorators(node) ? find(node.modifiers, isDecorator) : void 0; + } + function checkGrammarAsyncModifier(node, asyncModifier) { + switch (node.kind) { + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + return false; + } + return grammarErrorOnNode(asyncModifier, Diagnostics._0_modifier_cannot_be_used_here, "async"); + } + function checkGrammarForDisallowedTrailingComma(list, diag2 = Diagnostics.Trailing_comma_not_allowed) { + if (list && list.hasTrailingComma) { + return grammarErrorAtPos(list[0], list.end - ",".length, ",".length, diag2); + } + return false; + } + function checkGrammarTypeParameterList(typeParameters, file) { + if (typeParameters && typeParameters.length === 0) { + const start = typeParameters.pos - "<".length; + const end = skipTrivia(file.text, typeParameters.end) + ">".length; + return grammarErrorAtPos(file, start, end - start, Diagnostics.Type_parameter_list_cannot_be_empty); + } + return false; + } + function checkGrammarParameterList(parameters) { + let seenOptionalParameter = false; + const parameterCount = parameters.length; + for (let i = 0; i < parameterCount; i++) { + const parameter = parameters[i]; + if (parameter.dotDotDotToken) { + if (i !== parameterCount - 1) { + return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list); + } + if (!(parameter.flags & 33554432 /* Ambient */)) { + checkGrammarForDisallowedTrailingComma(parameters, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); + } + if (parameter.questionToken) { + return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_rest_parameter_cannot_be_optional); + } + if (parameter.initializer) { + return grammarErrorOnNode(parameter.name, Diagnostics.A_rest_parameter_cannot_have_an_initializer); + } + } else if (hasEffectiveQuestionToken(parameter)) { + seenOptionalParameter = true; + if (parameter.questionToken && parameter.initializer) { + return grammarErrorOnNode(parameter.name, Diagnostics.Parameter_cannot_have_question_mark_and_initializer); + } + } else if (seenOptionalParameter && !parameter.initializer) { + return grammarErrorOnNode(parameter.name, Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter); + } + } + } + function getNonSimpleParameters(parameters) { + return filter(parameters, (parameter) => !!parameter.initializer || isBindingPattern(parameter.name) || isRestParameter(parameter)); + } + function checkGrammarForUseStrictSimpleParameterList(node) { + if (languageVersion >= 3 /* ES2016 */) { + const useStrictDirective = node.body && isBlock(node.body) && findUseStrictPrologue(node.body.statements); + if (useStrictDirective) { + const nonSimpleParameters = getNonSimpleParameters(node.parameters); + if (length(nonSimpleParameters)) { + forEach(nonSimpleParameters, (parameter) => { + addRelatedInfo( + error(parameter, Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), + createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here) + ); + }); + const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here)); + addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2); + return true; + } + } + } + return false; + } + function checkGrammarFunctionLikeDeclaration(node) { + const file = getSourceFileOfNode(node); + return checkGrammarModifiers(node) || checkGrammarTypeParameterList(node.typeParameters, file) || checkGrammarParameterList(node.parameters) || checkGrammarArrowFunction(node, file) || isFunctionLikeDeclaration(node) && checkGrammarForUseStrictSimpleParameterList(node); + } + function checkGrammarClassLikeDeclaration(node) { + const file = getSourceFileOfNode(node); + return checkGrammarClassDeclarationHeritageClauses(node) || checkGrammarTypeParameterList(node.typeParameters, file); + } + function checkGrammarArrowFunction(node, file) { + if (!isArrowFunction(node)) { + return false; + } + if (node.typeParameters && !(length(node.typeParameters) > 1 || node.typeParameters.hasTrailingComma || node.typeParameters[0].constraint)) { + if (file && fileExtensionIsOneOf(file.fileName, [".mts" /* Mts */, ".cts" /* Cts */])) { + grammarErrorOnNode(node.typeParameters[0], Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint); + } + } + const { equalsGreaterThanToken } = node; + const startLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.pos).line; + const endLine = getLineAndCharacterOfPosition(file, equalsGreaterThanToken.end).line; + return startLine !== endLine && grammarErrorOnNode(equalsGreaterThanToken, Diagnostics.Line_terminator_not_permitted_before_arrow); + } + function checkGrammarIndexSignatureParameters(node) { + const parameter = node.parameters[0]; + if (node.parameters.length !== 1) { + if (parameter) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_must_have_exactly_one_parameter); + } else { + return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_exactly_one_parameter); + } + } + checkGrammarForDisallowedTrailingComma(node.parameters, Diagnostics.An_index_signature_cannot_have_a_trailing_comma); + if (parameter.dotDotDotToken) { + return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.An_index_signature_cannot_have_a_rest_parameter); + } + if (hasEffectiveModifiers(parameter)) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier); + } + if (parameter.questionToken) { + return grammarErrorOnNode(parameter.questionToken, Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark); + } + if (parameter.initializer) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_cannot_have_an_initializer); + } + if (!parameter.type) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_must_have_a_type_annotation); + } + const type = getTypeFromTypeNode(parameter.type); + if (someType(type, (t) => !!(t.flags & 8576 /* StringOrNumberLiteralOrUnique */)) || isGenericType(type)) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead); + } + if (!everyType(type, isValidIndexKeyType)) { + return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type); + } + if (!node.type) { + return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_a_type_annotation); + } + return false; + } + function checkGrammarIndexSignature(node) { + return checkGrammarModifiers(node) || checkGrammarIndexSignatureParameters(node); + } + function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) { + if (typeArguments && typeArguments.length === 0) { + const sourceFile = getSourceFileOfNode(node); + const start = typeArguments.pos - "<".length; + const end = skipTrivia(sourceFile.text, typeArguments.end) + ">".length; + return grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.Type_argument_list_cannot_be_empty); + } + return false; + } + function checkGrammarTypeArguments(node, typeArguments) { + return checkGrammarForDisallowedTrailingComma(typeArguments) || checkGrammarForAtLeastOneTypeArgument(node, typeArguments); + } + function checkGrammarTaggedTemplateChain(node) { + if (node.questionDotToken || node.flags & 64 /* OptionalChain */) { + return grammarErrorOnNode(node.template, Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain); + } + return false; + } + function checkGrammarHeritageClause(node) { + const types = node.types; + if (checkGrammarForDisallowedTrailingComma(types)) { + return true; + } + if (types && types.length === 0) { + const listType = tokenToString(node.token); + return grammarErrorAtPos(node, types.pos, 0, Diagnostics._0_list_cannot_be_empty, listType); + } + return some(types, checkGrammarExpressionWithTypeArguments); + } + function checkGrammarExpressionWithTypeArguments(node) { + if (isExpressionWithTypeArguments(node) && isImportKeyword(node.expression) && node.typeArguments) { + return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); + } + return checkGrammarTypeArguments(node, node.typeArguments); + } + function checkGrammarClassDeclarationHeritageClauses(node) { + let seenExtendsClause = false; + let seenImplementsClause = false; + if (!checkGrammarModifiers(node) && node.heritageClauses) { + for (const heritageClause of node.heritageClauses) { + if (heritageClause.token === 96 /* ExtendsKeyword */) { + if (seenExtendsClause) { + return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen); + } + if (seenImplementsClause) { + return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_must_precede_implements_clause); + } + if (heritageClause.types.length > 1) { + return grammarErrorOnFirstToken(heritageClause.types[1], Diagnostics.Classes_can_only_extend_a_single_class); + } + seenExtendsClause = true; + } else { + Debug.assert(heritageClause.token === 119 /* ImplementsKeyword */); + if (seenImplementsClause) { + return grammarErrorOnFirstToken(heritageClause, Diagnostics.implements_clause_already_seen); + } + seenImplementsClause = true; + } + checkGrammarHeritageClause(heritageClause); + } + } + } + function checkGrammarInterfaceDeclaration(node) { + let seenExtendsClause = false; + if (node.heritageClauses) { + for (const heritageClause of node.heritageClauses) { + if (heritageClause.token === 96 /* ExtendsKeyword */) { + if (seenExtendsClause) { + return grammarErrorOnFirstToken(heritageClause, Diagnostics.extends_clause_already_seen); + } + seenExtendsClause = true; + } else { + Debug.assert(heritageClause.token === 119 /* ImplementsKeyword */); + return grammarErrorOnFirstToken(heritageClause, Diagnostics.Interface_declaration_cannot_have_implements_clause); + } + checkGrammarHeritageClause(heritageClause); + } + } + return false; + } + function checkGrammarComputedPropertyName(node) { + if (node.kind !== 167 /* ComputedPropertyName */) { + return false; + } + const computedPropertyName = node; + if (computedPropertyName.expression.kind === 226 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 28 /* CommaToken */) { + return grammarErrorOnNode(computedPropertyName.expression, Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name); + } + return false; + } + function checkGrammarForGenerator(node) { + if (node.asteriskToken) { + Debug.assert( + node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */ || node.kind === 174 /* MethodDeclaration */ + ); + if (node.flags & 33554432 /* Ambient */) { + return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_allowed_in_an_ambient_context); + } + if (!node.body) { + return grammarErrorOnNode(node.asteriskToken, Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator); + } + } + } + function checkGrammarForInvalidQuestionMark(questionToken, message) { + return !!questionToken && grammarErrorOnNode(questionToken, message); + } + function checkGrammarForInvalidExclamationToken(exclamationToken, message) { + return !!exclamationToken && grammarErrorOnNode(exclamationToken, message); + } + function checkGrammarObjectLiteralExpression(node, inDestructuring) { + const seen = /* @__PURE__ */ new Map(); + for (const prop of node.properties) { + if (prop.kind === 305 /* SpreadAssignment */) { + if (inDestructuring) { + const expression = skipParentheses(prop.expression); + if (isArrayLiteralExpression(expression) || isObjectLiteralExpression(expression)) { + return grammarErrorOnNode(prop.expression, Diagnostics.A_rest_element_cannot_contain_a_binding_pattern); + } + } + continue; + } + const name = prop.name; + if (name.kind === 167 /* ComputedPropertyName */) { + checkGrammarComputedPropertyName(name); + } + if (prop.kind === 304 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) { + grammarErrorOnNode(prop.equalsToken, Diagnostics.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); + } + if (name.kind === 81 /* PrivateIdentifier */) { + grammarErrorOnNode(name, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies); + } + if (canHaveModifiers(prop) && prop.modifiers) { + for (const mod of prop.modifiers) { + if (isModifier(mod) && (mod.kind !== 134 /* AsyncKeyword */ || prop.kind !== 174 /* MethodDeclaration */)) { + grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); + } + } + } else if (canHaveIllegalModifiers(prop) && prop.modifiers) { + for (const mod of prop.modifiers) { + if (isModifier(mod)) { + grammarErrorOnNode(mod, Diagnostics._0_modifier_cannot_be_used_here, getTextOfNode(mod)); + } + } + } + let currentKind; + switch (prop.kind) { + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + checkGrammarForInvalidExclamationToken(prop.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context); + checkGrammarForInvalidQuestionMark(prop.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional); + if (name.kind === 9 /* NumericLiteral */) { + checkGrammarNumericLiteral(name); + } + currentKind = 4 /* PropertyAssignment */; + break; + case 174 /* MethodDeclaration */: + currentKind = 8 /* Method */; + break; + case 177 /* GetAccessor */: + currentKind = 1 /* GetAccessor */; + break; + case 178 /* SetAccessor */: + currentKind = 2 /* SetAccessor */; + break; + default: + Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind); + } + if (!inDestructuring) { + const effectiveName = getEffectivePropertyNameForPropertyNameNode(name); + if (effectiveName === void 0) { + continue; + } + const existingKind = seen.get(effectiveName); + if (!existingKind) { + seen.set(effectiveName, currentKind); + } else { + if (currentKind & 8 /* Method */ && existingKind & 8 /* Method */) { + grammarErrorOnNode(name, Diagnostics.Duplicate_identifier_0, getTextOfNode(name)); + } else if (currentKind & 4 /* PropertyAssignment */ && existingKind & 4 /* PropertyAssignment */) { + grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name, getTextOfNode(name)); + } else if (currentKind & 3 /* GetOrSetAccessor */ && existingKind & 3 /* GetOrSetAccessor */) { + if (existingKind !== 3 /* GetOrSetAccessor */ && currentKind !== existingKind) { + seen.set(effectiveName, currentKind | existingKind); + } else { + return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name); + } + } else { + return grammarErrorOnNode(name, Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name); + } + } + } + } + } + function checkGrammarJsxElement(node) { + checkGrammarJsxName(node.tagName); + checkGrammarTypeArguments(node, node.typeArguments); + const seen = /* @__PURE__ */ new Map(); + for (const attr of node.attributes.properties) { + if (attr.kind === 293 /* JsxSpreadAttribute */) { + continue; + } + const { name, initializer } = attr; + const escapedText = getEscapedTextOfJsxAttributeName(name); + if (!seen.get(escapedText)) { + seen.set(escapedText, true); + } else { + return grammarErrorOnNode(name, Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name); + } + if (initializer && initializer.kind === 294 /* JsxExpression */ && !initializer.expression) { + return grammarErrorOnNode(initializer, Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression); + } + } + } + function checkGrammarJsxName(node) { + if (isPropertyAccessExpression(node) && isJsxNamespacedName(node.expression)) { + return grammarErrorOnNode(node.expression, Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names); + } + if (isJsxNamespacedName(node) && getJSXTransformEnabled(compilerOptions) && !isIntrinsicJsxName(node.namespace.escapedText)) { + return grammarErrorOnNode(node, Diagnostics.React_components_cannot_include_JSX_namespace_names); + } + } + function checkGrammarJsxExpression(node) { + if (node.expression && isCommaSequence(node.expression)) { + return grammarErrorOnNode(node.expression, Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array); + } + } + function checkGrammarForInOrForOfStatement(forInOrOfStatement) { + if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) { + return true; + } + if (forInOrOfStatement.kind === 250 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) { + if (!(forInOrOfStatement.flags & 65536 /* AwaitContext */)) { + const sourceFile = getSourceFileOfNode(forInOrOfStatement); + if (isInTopLevelContext(forInOrOfStatement)) { + if (!hasParseDiagnostics(sourceFile)) { + if (!isEffectiveExternalModule(sourceFile, compilerOptions)) { + diagnostics.add(createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.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)); + } + switch (moduleKind) { + case 100 /* Node16 */: + case 199 /* NodeNext */: + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { + diagnostics.add( + createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level) + ); + break; + } + case 7 /* ES2022 */: + case 99 /* ESNext */: + case 4 /* System */: + if (languageVersion >= 4 /* ES2017 */) { + break; + } + default: + diagnostics.add( + createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.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) + ); + break; + } + } + } else { + if (!hasParseDiagnostics(sourceFile)) { + const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules); + const func = getContainingFunction(forInOrOfStatement); + if (func && func.kind !== 176 /* Constructor */) { + Debug.assert((getFunctionFlags(func) & 2 /* Async */) === 0, "Enclosing function should never be an async function."); + const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async); + addRelatedInfo(diagnostic, relatedInfo); + } + diagnostics.add(diagnostic); + return true; + } + } + } + } + if (isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 65536 /* AwaitContext */) && isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === "async") { + grammarErrorOnNode(forInOrOfStatement.initializer, Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async); + return false; + } + if (forInOrOfStatement.initializer.kind === 261 /* VariableDeclarationList */) { + const variableList = forInOrOfStatement.initializer; + if (!checkGrammarVariableDeclarationList(variableList)) { + const declarations = variableList.declarations; + if (!declarations.length) { + return false; + } + if (declarations.length > 1) { + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement : Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement; + return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic); + } + const firstDeclaration = declarations[0]; + if (firstDeclaration.initializer) { + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer : Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer; + return grammarErrorOnNode(firstDeclaration.name, diagnostic); + } + if (firstDeclaration.type) { + const diagnostic = forInOrOfStatement.kind === 249 /* ForInStatement */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation : Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation; + return grammarErrorOnNode(firstDeclaration, diagnostic); + } + } + } + return false; + } + function checkGrammarAccessor(accessor) { + if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) { + if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(accessor.name)) { + return grammarErrorOnNode(accessor.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); + } + if (accessor.body === void 0 && !hasSyntacticModifier(accessor, 64 /* Abstract */)) { + return grammarErrorAtPos(accessor, accessor.end - 1, ";".length, Diagnostics._0_expected, "{"); + } + } + if (accessor.body) { + if (hasSyntacticModifier(accessor, 64 /* Abstract */)) { + return grammarErrorOnNode(accessor, Diagnostics.An_abstract_accessor_cannot_have_an_implementation); + } + if (accessor.parent.kind === 187 /* TypeLiteral */ || accessor.parent.kind === 264 /* InterfaceDeclaration */) { + return grammarErrorOnNode(accessor.body, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); + } + } + if (accessor.typeParameters) { + return grammarErrorOnNode(accessor.name, Diagnostics.An_accessor_cannot_have_type_parameters); + } + if (!doesAccessorHaveCorrectParameterCount(accessor)) { + return grammarErrorOnNode( + accessor.name, + accessor.kind === 177 /* GetAccessor */ ? Diagnostics.A_get_accessor_cannot_have_parameters : Diagnostics.A_set_accessor_must_have_exactly_one_parameter + ); + } + if (accessor.kind === 178 /* SetAccessor */) { + if (accessor.type) { + return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation); + } + const parameter = Debug.checkDefined(getSetAccessorValueParameter(accessor), "Return value does not match parameter count assertion."); + if (parameter.dotDotDotToken) { + return grammarErrorOnNode(parameter.dotDotDotToken, Diagnostics.A_set_accessor_cannot_have_rest_parameter); + } + if (parameter.questionToken) { + return grammarErrorOnNode(parameter.questionToken, Diagnostics.A_set_accessor_cannot_have_an_optional_parameter); + } + if (parameter.initializer) { + return grammarErrorOnNode(accessor.name, Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer); + } + } + return false; + } + function doesAccessorHaveCorrectParameterCount(accessor) { + return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 0 : 1); + } + function getAccessorThisParameter(accessor) { + if (accessor.parameters.length === (accessor.kind === 177 /* GetAccessor */ ? 1 : 2)) { + return getThisParameter(accessor); + } + } + function checkGrammarTypeOperatorNode(node) { + if (node.operator === 158 /* UniqueKeyword */) { + if (node.type.kind !== 155 /* SymbolKeyword */) { + return grammarErrorOnNode(node.type, Diagnostics._0_expected, tokenToString(155 /* SymbolKeyword */)); + } + let parent = walkUpParenthesizedTypes(node.parent); + if (isInJSFile(parent) && isJSDocTypeExpression(parent)) { + const host2 = getJSDocHost(parent); + if (host2) { + parent = getSingleVariableOfVariableStatement(host2) || host2; + } + } + switch (parent.kind) { + case 260 /* VariableDeclaration */: + const decl = parent; + if (decl.name.kind !== 80 /* Identifier */) { + return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name); + } + if (!isVariableDeclarationInVariableStatement(decl)) { + return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement); + } + if (!(decl.parent.flags & 2 /* Const */)) { + return grammarErrorOnNode(parent.name, Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const); + } + break; + case 172 /* PropertyDeclaration */: + if (!isStatic(parent) || !hasEffectiveReadonlyModifier(parent)) { + return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly); + } + break; + case 171 /* PropertySignature */: + if (!hasSyntacticModifier(parent, 8 /* Readonly */)) { + return grammarErrorOnNode(parent.name, Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly); + } + break; + default: + return grammarErrorOnNode(node, Diagnostics.unique_symbol_types_are_not_allowed_here); + } + } else if (node.operator === 148 /* ReadonlyKeyword */) { + if (node.type.kind !== 188 /* ArrayType */ && node.type.kind !== 189 /* TupleType */) { + return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, tokenToString(155 /* SymbolKeyword */)); + } + } + } + function checkGrammarForInvalidDynamicName(node, message) { + if (isNonBindableDynamicName(node)) { + return grammarErrorOnNode(node, message); + } + } + function checkGrammarMethod(node) { + if (checkGrammarFunctionLikeDeclaration(node)) { + return true; + } + if (node.kind === 174 /* MethodDeclaration */) { + if (node.parent.kind === 210 /* ObjectLiteralExpression */) { + if (node.modifiers && !(node.modifiers.length === 1 && first(node.modifiers).kind === 134 /* AsyncKeyword */)) { + return grammarErrorOnFirstToken(node, Diagnostics.Modifiers_cannot_appear_here); + } else if (checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_object_member_cannot_be_declared_optional)) { + return true; + } else if (checkGrammarForInvalidExclamationToken(node.exclamationToken, Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)) { + return true; + } else if (node.body === void 0) { + return grammarErrorAtPos(node, node.end - 1, ";".length, Diagnostics._0_expected, "{"); + } + } + if (checkGrammarForGenerator(node)) { + return true; + } + } + if (isClassLike(node.parent)) { + if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { + return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); + } + if (node.flags & 33554432 /* Ambient */) { + return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); + } else if (node.kind === 174 /* MethodDeclaration */ && !node.body) { + return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); + } + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { + return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); + } else if (node.parent.kind === 187 /* TypeLiteral */) { + return checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type); + } + } + function checkGrammarBreakOrContinueStatement(node) { + let current = node; + while (current) { + if (isFunctionLikeOrClassStaticBlockDeclaration(current)) { + return grammarErrorOnNode(node, Diagnostics.Jump_target_cannot_cross_function_boundary); + } + switch (current.kind) { + case 256 /* LabeledStatement */: + if (node.label && current.label.escapedText === node.label.escapedText) { + const isMisplacedContinueLabel = node.kind === 251 /* ContinueStatement */ && !isIterationStatement( + current.statement, + /*lookInLabeledStatements*/ + true + ); + if (isMisplacedContinueLabel) { + return grammarErrorOnNode(node, Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement); + } + return false; + } + break; + case 255 /* SwitchStatement */: + if (node.kind === 252 /* BreakStatement */ && !node.label) { + return false; + } + break; + default: + if (isIterationStatement( + current, + /*lookInLabeledStatements*/ + false + ) && !node.label) { + return false; + } + break; + } + current = current.parent; + } + if (node.label) { + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement : Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement; + return grammarErrorOnNode(node, message); + } else { + const message = node.kind === 252 /* BreakStatement */ ? Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement : Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement; + return grammarErrorOnNode(node, message); + } + } + function checkGrammarBindingElement(node) { + if (node.dotDotDotToken) { + const elements = node.parent.elements; + if (node !== last(elements)) { + return grammarErrorOnNode(node, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); + } + checkGrammarForDisallowedTrailingComma(elements, Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma); + if (node.propertyName) { + return grammarErrorOnNode(node.name, Diagnostics.A_rest_element_cannot_have_a_property_name); + } + } + if (node.dotDotDotToken && node.initializer) { + return grammarErrorAtPos(node, node.initializer.pos - 1, 1, Diagnostics.A_rest_element_cannot_have_an_initializer); + } + } + function isStringOrNumberLiteralExpression(expr) { + return isStringOrNumericLiteralLike(expr) || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 9 /* NumericLiteral */; + } + function isBigIntLiteralExpression(expr) { + return expr.kind === 10 /* BigIntLiteral */ || expr.kind === 224 /* PrefixUnaryExpression */ && expr.operator === 41 /* MinusToken */ && expr.operand.kind === 10 /* BigIntLiteral */; + } + function isSimpleLiteralEnumReference(expr) { + if ((isPropertyAccessExpression(expr) || isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression)) && isEntityNameExpression(expr.expression)) { + return !!(checkExpressionCached(expr).flags & 1056 /* EnumLike */); + } + } + function checkAmbientInitializer(node) { + const initializer = node.initializer; + if (initializer) { + const isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) || isSimpleLiteralEnumReference(initializer) || initializer.kind === 112 /* TrueKeyword */ || initializer.kind === 97 /* FalseKeyword */ || isBigIntLiteralExpression(initializer)); + const isConstOrReadonly = isDeclarationReadonly(node) || isVariableDeclaration(node) && isVarConstLike2(node); + if (isConstOrReadonly && !node.type) { + if (isInvalidInitializer) { + return grammarErrorOnNode(initializer, Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference); + } + } else { + return grammarErrorOnNode(initializer, Diagnostics.Initializers_are_not_allowed_in_ambient_contexts); + } + } + } + function checkGrammarVariableDeclaration(node) { + const nodeFlags = getCombinedNodeFlagsCached(node); + const blockScopeKind = nodeFlags & 7 /* BlockScoped */; + if (isBindingPattern(node.name)) { + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_may_not_have_binding_patterns, "using"); + } + } + if (node.parent.parent.kind !== 249 /* ForInStatement */ && node.parent.parent.kind !== 250 /* ForOfStatement */) { + if (nodeFlags & 33554432 /* Ambient */) { + checkAmbientInitializer(node); + } else if (!node.initializer) { + if (isBindingPattern(node.name) && !isBindingPattern(node.parent)) { + return grammarErrorOnNode(node, Diagnostics.A_destructuring_declaration_must_have_an_initializer); + } + switch (blockScopeKind) { + case 6 /* AwaitUsing */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "await using"); + case 4 /* Using */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "using"); + case 2 /* Const */: + return grammarErrorOnNode(node, Diagnostics._0_declarations_must_be_initialized, "const"); + } + } + } + if (node.exclamationToken && (node.parent.parent.kind !== 243 /* VariableStatement */ || !node.type || node.initializer || nodeFlags & 33554432 /* Ambient */)) { + const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; + return grammarErrorOnNode(node.exclamationToken, message); + } + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 32 /* Export */)) { + checkESModuleMarker(node.name); + } + return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); + } + function checkESModuleMarker(name) { + if (name.kind === 80 /* Identifier */) { + if (idText(name) === "__esModule") { + return grammarErrorOnNodeSkippedOn("noEmit", name, Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules); + } + } else { + const elements = name.elements; + for (const element of elements) { + if (!isOmittedExpression(element)) { + return checkESModuleMarker(element.name); + } + } + } + return false; + } + function checkGrammarNameInLetOrConstDeclarations(name) { + if (name.kind === 80 /* Identifier */) { + if (name.escapedText === "let") { + return grammarErrorOnNode(name, Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations); + } + } else { + const elements = name.elements; + for (const element of elements) { + if (!isOmittedExpression(element)) { + checkGrammarNameInLetOrConstDeclarations(element.name); + } + } + } + return false; + } + function checkGrammarVariableDeclarationList(declarationList) { + const declarations = declarationList.declarations; + if (checkGrammarForDisallowedTrailingComma(declarationList.declarations)) { + return true; + } + if (!declarationList.declarations.length) { + return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, Diagnostics.Variable_declaration_list_cannot_be_empty); + } + const blockScopeFlags = declarationList.flags & 7 /* BlockScoped */; + if ((blockScopeFlags === 4 /* Using */ || blockScopeFlags === 6 /* AwaitUsing */) && isForInStatement(declarationList.parent)) { + return grammarErrorOnNode( + declarationList, + blockScopeFlags === 4 /* Using */ ? Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration : Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration + ); + } + if (blockScopeFlags === 6 /* AwaitUsing */) { + return checkAwaitGrammar(declarationList); + } + return false; + } + function allowLetAndConstDeclarations(parent) { + switch (parent.kind) { + case 245 /* IfStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 254 /* WithStatement */: + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + return false; + case 256 /* LabeledStatement */: + return allowLetAndConstDeclarations(parent.parent); + } + return true; + } + function checkGrammarForDisallowedBlockScopedVariableStatement(node) { + if (!allowLetAndConstDeclarations(node.parent)) { + const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; + if (blockScopeKind) { + const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); + return grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, keyword); + } + } + } + function checkGrammarMetaProperty(node) { + const escapedText = node.name.escapedText; + switch (node.keywordToken) { + case 105 /* NewKeyword */: + if (escapedText !== "target") { + return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "target"); + } + break; + case 102 /* ImportKeyword */: + if (escapedText !== "meta") { + return grammarErrorOnNode(node.name, Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, unescapeLeadingUnderscores(node.name.escapedText), tokenToString(node.keywordToken), "meta"); + } + break; + } + } + function hasParseDiagnostics(sourceFile) { + return sourceFile.parseDiagnostics.length > 0; + } + function grammarErrorOnFirstToken(node, message, ...args) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + const span = getSpanOfTokenAtPosition(sourceFile, node.pos); + diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message, ...args)); + return true; + } + return false; + } + function grammarErrorAtPos(nodeForSourceFile, start, length2, message, ...args) { + const sourceFile = getSourceFileOfNode(nodeForSourceFile); + if (!hasParseDiagnostics(sourceFile)) { + diagnostics.add(createFileDiagnostic(sourceFile, start, length2, message, ...args)); + return true; + } + return false; + } + function grammarErrorOnNodeSkippedOn(key, node, message, ...args) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + errorSkippedOn(key, node, message, ...args); + return true; + } + return false; + } + function grammarErrorOnNode(node, message, ...args) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + diagnostics.add(createDiagnosticForNode(node, message, ...args)); + return true; + } + return false; + } + function checkGrammarConstructorTypeParameters(node) { + const jsdocTypeParameters = isInJSFile(node) ? getJSDocTypeParameterDeclarations(node) : void 0; + const range = node.typeParameters || jsdocTypeParameters && firstOrUndefined(jsdocTypeParameters); + if (range) { + const pos = range.pos === range.end ? range.pos : skipTrivia(getSourceFileOfNode(node).text, range.pos); + return grammarErrorAtPos(node, pos, range.end - pos, Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration); + } + } + function checkGrammarConstructorTypeAnnotation(node) { + const type = node.type || getEffectiveReturnTypeNode(node); + if (type) { + return grammarErrorOnNode(type, Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration); + } + } + function checkGrammarProperty(node) { + if (isComputedPropertyName(node.name) && isBinaryExpression(node.name.expression) && node.name.expression.operatorToken.kind === 103 /* InKeyword */) { + return grammarErrorOnNode(node.parent.members[0], Diagnostics.A_mapped_type_may_not_declare_properties_or_methods); + } + if (isClassLike(node.parent)) { + if (isStringLiteral(node.name) && node.name.text === "constructor") { + return grammarErrorOnNode(node.name, Diagnostics.Classes_may_not_have_a_field_named_constructor); + } + if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) { + return true; + } + if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(node.name)) { + return grammarErrorOnNode(node.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher); + } + if (languageVersion < 2 /* ES2015 */ && isAutoAccessorPropertyDeclaration(node)) { + return grammarErrorOnNode(node.name, Diagnostics.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher); + } + if (isAutoAccessorPropertyDeclaration(node) && checkGrammarForInvalidQuestionMark(node.questionToken, Diagnostics.An_accessor_property_cannot_be_declared_optional)) { + return true; + } + } else if (node.parent.kind === 264 /* InterfaceDeclaration */) { + if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { + return true; + } + Debug.assertNode(node, isPropertySignature); + if (node.initializer) { + return grammarErrorOnNode(node.initializer, Diagnostics.An_interface_property_cannot_have_an_initializer); + } + } else if (isTypeLiteralNode(node.parent)) { + if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) { + return true; + } + Debug.assertNode(node, isPropertySignature); + if (node.initializer) { + return grammarErrorOnNode(node.initializer, Diagnostics.A_type_literal_property_cannot_have_an_initializer); + } + } + if (node.flags & 33554432 /* Ambient */) { + checkAmbientInitializer(node); + } + if (isPropertyDeclaration(node) && node.exclamationToken && (!isClassLike(node.parent) || !node.type || node.initializer || node.flags & 33554432 /* Ambient */ || isStatic(node) || hasAbstractModifier(node))) { + const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; + return grammarErrorOnNode(node.exclamationToken, message); + } + } + function checkGrammarTopLevelElementForRequiredDeclareModifier(node) { + if (node.kind === 264 /* InterfaceDeclaration */ || node.kind === 265 /* TypeAliasDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 278 /* ExportDeclaration */ || node.kind === 277 /* ExportAssignment */ || node.kind === 270 /* NamespaceExportDeclaration */ || hasSyntacticModifier(node, 128 /* Ambient */ | 32 /* Export */ | 2048 /* Default */)) { + return false; + } + return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier); + } + function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) { + for (const decl of file.statements) { + if (isDeclaration(decl) || decl.kind === 243 /* VariableStatement */) { + if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) { + return true; + } + } + } + return false; + } + function checkGrammarSourceFile(node) { + return !!(node.flags & 33554432 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node); + } + function checkGrammarStatementInAmbientContext(node) { + if (node.flags & 33554432 /* Ambient */) { + const links = getNodeLinks(node); + if (!links.hasReportedStatementInAmbientContext && (isFunctionLike(node.parent) || isAccessor(node.parent))) { + return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts); + } + if (node.parent.kind === 241 /* Block */ || node.parent.kind === 268 /* ModuleBlock */ || node.parent.kind === 307 /* SourceFile */) { + const links2 = getNodeLinks(node.parent); + if (!links2.hasReportedStatementInAmbientContext) { + return links2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, Diagnostics.Statements_are_not_allowed_in_ambient_contexts); + } + } else { + } + } + return false; + } + function checkGrammarNumericLiteral(node) { + const isFractional = getTextOfNode(node).includes("."); + const isScientific = node.numericLiteralFlags & 16 /* Scientific */; + if (isFractional || isScientific) { + return; + } + const value = +node.text; + if (value <= 2 ** 53 - 1) { + return; + } + addErrorOrSuggestion( + /*isError*/ + false, + createDiagnosticForNode(node, Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers) + ); + } + function checkGrammarBigIntLiteral(node) { + const literalType = isLiteralTypeNode(node.parent) || isPrefixUnaryExpression(node.parent) && isLiteralTypeNode(node.parent.parent); + if (!literalType) { + if (languageVersion < 7 /* ES2020 */) { + if (grammarErrorOnNode(node, Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) { + return true; + } + } + } + return false; + } + function grammarErrorAfterFirstToken(node, message, ...args) { + const sourceFile = getSourceFileOfNode(node); + if (!hasParseDiagnostics(sourceFile)) { + const span = getSpanOfTokenAtPosition(sourceFile, node.pos); + diagnostics.add(createFileDiagnostic( + sourceFile, + textSpanEnd(span), + /*length*/ + 0, + message, + ...args + )); + return true; + } + return false; + } + function getAmbientModules() { + if (!ambientModulesCache) { + ambientModulesCache = []; + globals.forEach((global2, sym) => { + if (ambientModuleSymbolRegex.test(sym)) { + ambientModulesCache.push(global2); + } + }); + } + return ambientModulesCache; + } + function checkGrammarImportClause(node) { + var _a; + if (node.isTypeOnly && node.name && node.namedBindings) { + return grammarErrorOnNode(node, Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both); + } + if (node.isTypeOnly && ((_a = node.namedBindings) == null ? void 0 : _a.kind) === 275 /* NamedImports */) { + return checkGrammarNamedImportsOrExports(node.namedBindings); + } + return false; + } + function checkGrammarNamedImportsOrExports(namedBindings) { + return !!forEach(namedBindings.elements, (specifier) => { + if (specifier.isTypeOnly) { + return grammarErrorOnFirstToken( + specifier, + specifier.kind === 276 /* ImportSpecifier */ ? Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement : Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement + ); + } + }); + } + function checkGrammarImportCallExpression(node) { + if (compilerOptions.verbatimModuleSyntax && moduleKind === 1 /* CommonJS */) { + return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); + } + if (moduleKind === 5 /* ES2015 */) { + return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext); + } + if (node.typeArguments) { + return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); + } + const nodeArguments = node.arguments; + if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */) { + checkGrammarForDisallowedTrailingComma(nodeArguments); + if (nodeArguments.length > 1) { + const importAttributesArgument = nodeArguments[1]; + return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext); + } + } + if (nodeArguments.length === 0 || nodeArguments.length > 2) { + return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments); + } + const spreadElement = find(nodeArguments, isSpreadElement); + if (spreadElement) { + return grammarErrorOnNode(spreadElement, Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element); + } + return false; + } + function findMatchingTypeReferenceOrTypeAliasReference(source, unionTarget) { + const sourceObjectFlags = getObjectFlags(source); + if (sourceObjectFlags & (4 /* Reference */ | 16 /* Anonymous */) && unionTarget.flags & 1048576 /* Union */) { + return find(unionTarget.types, (target) => { + if (target.flags & 524288 /* Object */) { + const overlapObjFlags = sourceObjectFlags & getObjectFlags(target); + if (overlapObjFlags & 4 /* Reference */) { + return source.target === target.target; + } + if (overlapObjFlags & 16 /* Anonymous */) { + return !!source.aliasSymbol && source.aliasSymbol === target.aliasSymbol; + } + } + return false; + }); + } + } + function findBestTypeForObjectLiteral(source, unionTarget) { + if (getObjectFlags(source) & 128 /* ObjectLiteral */ && someType(unionTarget, isArrayLikeType)) { + return find(unionTarget.types, (t) => !isArrayLikeType(t)); + } + } + function findBestTypeForInvokable(source, unionTarget) { + let signatureKind = 0 /* Call */; + const hasSignatures = getSignaturesOfType(source, signatureKind).length > 0 || (signatureKind = 1 /* Construct */, getSignaturesOfType(source, signatureKind).length > 0); + if (hasSignatures) { + return find(unionTarget.types, (t) => getSignaturesOfType(t, signatureKind).length > 0); + } + } + function findMostOverlappyType(source, unionTarget) { + let bestMatch; + if (!(source.flags & (402784252 /* Primitive */ | 406847488 /* InstantiablePrimitive */))) { + let matchingCount = 0; + for (const target of unionTarget.types) { + if (!(target.flags & (402784252 /* Primitive */ | 406847488 /* InstantiablePrimitive */))) { + const overlap = getIntersectionType([getIndexType(source), getIndexType(target)]); + if (overlap.flags & 4194304 /* Index */) { + return target; + } else if (isUnitType(overlap) || overlap.flags & 1048576 /* Union */) { + const len = overlap.flags & 1048576 /* Union */ ? countWhere(overlap.types, isUnitType) : 1; + if (len >= matchingCount) { + bestMatch = target; + matchingCount = len; + } + } + } + } + } + return bestMatch; + } + function filterPrimitivesIfContainsNonPrimitive(type) { + if (maybeTypeOfKind(type, 67108864 /* NonPrimitive */)) { + const result = filterType(type, (t) => !(t.flags & 402784252 /* Primitive */)); + if (!(result.flags & 131072 /* Never */)) { + return result; + } + } + return type; + } + function findMatchingDiscriminantType(source, target, isRelatedTo) { + if (target.flags & 1048576 /* Union */ && source.flags & (2097152 /* Intersection */ | 524288 /* Object */)) { + const match = getMatchingUnionConstituentForType(target, source); + if (match) { + return match; + } + const sourceProperties = getPropertiesOfType(source); + if (sourceProperties) { + const sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target); + if (sourcePropertiesFiltered) { + const discriminated = discriminateTypeByDiscriminableItems(target, map(sourcePropertiesFiltered, (p) => [() => getTypeOfSymbol(p), p.escapedName]), isRelatedTo); + if (discriminated !== target) { + return discriminated; + } + } + } + } + return void 0; + } + function getEffectivePropertyNameForPropertyNameNode(node) { + const name = getPropertyNameForPropertyNameNode(node); + return name ? name : isComputedPropertyName(node) ? tryGetNameFromType(getTypeOfExpression(node.expression)) : void 0; + } + function getCombinedModifierFlagsCached(node) { + if (lastGetCombinedModifierFlagsNode === node) { + return lastGetCombinedModifierFlagsResult; + } + lastGetCombinedModifierFlagsNode = node; + lastGetCombinedModifierFlagsResult = getCombinedModifierFlags(node); + return lastGetCombinedModifierFlagsResult; + } + function getCombinedNodeFlagsCached(node) { + if (lastGetCombinedNodeFlagsNode === node) { + return lastGetCombinedNodeFlagsResult; + } + lastGetCombinedNodeFlagsNode = node; + lastGetCombinedNodeFlagsResult = getCombinedNodeFlags(node); + return lastGetCombinedNodeFlagsResult; + } + function isVarConstLike2(node) { + const blockScopeKind = getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */; + return blockScopeKind === 2 /* Const */ || blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */; + } + function getJSXRuntimeImportSpecifier(file, specifierText) { + const jsxImportIndex = compilerOptions.importHelpers ? 1 : 0; + const specifier = file == null ? void 0 : file.imports[jsxImportIndex]; + if (specifier) { + Debug.assert(nodeIsSynthesized(specifier) && specifier.text === specifierText, `Expected sourceFile.imports[${jsxImportIndex}] to be the synthesized JSX runtime import`); + } + return specifier; + } + function getImportHelpersImportSpecifier(file) { + Debug.assert(compilerOptions.importHelpers, "Expected importHelpers to be enabled"); + const specifier = file.imports[0]; + Debug.assert(specifier && nodeIsSynthesized(specifier) && specifier.text === "tslib", `Expected sourceFile.imports[0] to be the synthesized tslib import`); + return specifier; + } +} +function isNotAccessor(declaration) { + return !isAccessor(declaration); +} +function isNotOverload(declaration) { + return declaration.kind !== 262 /* FunctionDeclaration */ && declaration.kind !== 174 /* MethodDeclaration */ || !!declaration.body; +} +function isDeclarationNameOrImportPropertyName(name) { + switch (name.parent.kind) { + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + return isIdentifier(name); + default: + return isDeclarationName(name); + } +} +var JsxNames; +((JsxNames2) => { + JsxNames2.JSX = "JSX"; + JsxNames2.IntrinsicElements = "IntrinsicElements"; + JsxNames2.ElementClass = "ElementClass"; + JsxNames2.ElementAttributesPropertyNameContainer = "ElementAttributesProperty"; + JsxNames2.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute"; + JsxNames2.Element = "Element"; + JsxNames2.ElementType = "ElementType"; + JsxNames2.IntrinsicAttributes = "IntrinsicAttributes"; + JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes"; + JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes"; +})(JsxNames || (JsxNames = {})); +function getIterationTypesKeyFromIterationTypeKind(typeKind) { + switch (typeKind) { + case 0 /* Yield */: + return "yieldType"; + case 1 /* Return */: + return "returnType"; + case 2 /* Next */: + return "nextType"; + } +} +function signatureHasRestParameter(s) { + return !!(s.flags & 1 /* HasRestParameter */); +} +function signatureHasLiteralTypes(s) { + return !!(s.flags & 2 /* HasLiteralTypes */); +} +function createBasicNodeBuilderModuleSpecifierResolutionHost(host) { + return { + getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "", + getCurrentDirectory: () => host.getCurrentDirectory(), + getSymlinkCache: maybeBind(host, host.getSymlinkCache), + getPackageJsonInfoCache: () => { + var _a; + return (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host); + }, + useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames), + redirectTargetsMap: host.redirectTargetsMap, + getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName), + isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName), + fileExists: (fileName) => host.fileExists(fileName), + getFileIncludeReasons: () => host.getFileIncludeReasons(), + readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0 + }; +} +var SymbolTrackerImpl = class _SymbolTrackerImpl { + constructor(context, tracker, moduleResolverHost) { + this.moduleResolverHost = void 0; + this.inner = void 0; + this.disableTrackSymbol = false; + var _a; + while (tracker instanceof _SymbolTrackerImpl) { + tracker = tracker.inner; + } + this.inner = tracker; + this.moduleResolverHost = moduleResolverHost; + this.context = context; + this.canTrackSymbol = !!((_a = this.inner) == null ? void 0 : _a.trackSymbol); + } + trackSymbol(symbol, enclosingDeclaration, meaning) { + var _a, _b; + if (((_a = this.inner) == null ? void 0 : _a.trackSymbol) && !this.disableTrackSymbol) { + if (this.inner.trackSymbol(symbol, enclosingDeclaration, meaning)) { + this.onDiagnosticReported(); + return true; + } + if (!(symbol.flags & 262144 /* TypeParameter */)) ((_b = this.context).trackedSymbols ?? (_b.trackedSymbols = [])).push([symbol, enclosingDeclaration, meaning]); + } + return false; + } + reportInaccessibleThisError() { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportInaccessibleThisError) { + this.onDiagnosticReported(); + this.inner.reportInaccessibleThisError(); + } + } + reportPrivateInBaseOfClassExpression(propertyName) { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportPrivateInBaseOfClassExpression) { + this.onDiagnosticReported(); + this.inner.reportPrivateInBaseOfClassExpression(propertyName); + } + } + reportInaccessibleUniqueSymbolError() { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportInaccessibleUniqueSymbolError) { + this.onDiagnosticReported(); + this.inner.reportInaccessibleUniqueSymbolError(); + } + } + reportCyclicStructureError() { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportCyclicStructureError) { + this.onDiagnosticReported(); + this.inner.reportCyclicStructureError(); + } + } + reportLikelyUnsafeImportRequiredError(specifier) { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportLikelyUnsafeImportRequiredError) { + this.onDiagnosticReported(); + this.inner.reportLikelyUnsafeImportRequiredError(specifier); + } + } + reportTruncationError() { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportTruncationError) { + this.onDiagnosticReported(); + this.inner.reportTruncationError(); + } + } + reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol) { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportNonlocalAugmentation) { + this.onDiagnosticReported(); + this.inner.reportNonlocalAugmentation(containingFile, parentSymbol, augmentingSymbol); + } + } + reportNonSerializableProperty(propertyName) { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportNonSerializableProperty) { + this.onDiagnosticReported(); + this.inner.reportNonSerializableProperty(propertyName); + } + } + onDiagnosticReported() { + this.context.reportedDiagnostic = true; + } + reportInferenceFallback(node) { + var _a; + if ((_a = this.inner) == null ? void 0 : _a.reportInferenceFallback) { + this.inner.reportInferenceFallback(node); + } + } +}; + +// src/compiler/visitorPublic.ts +function visitNode(node, visitor, test, lift) { + if (node === void 0) { + return node; + } + const visited = visitor(node); + let visitedNode; + if (visited === void 0) { + return void 0; + } else if (isArray(visited)) { + visitedNode = (lift || extractSingleNode)(visited); + } else { + visitedNode = visited; + } + Debug.assertNode(visitedNode, test); + return visitedNode; +} +function visitNodes2(nodes, visitor, test, start, count) { + if (nodes === void 0) { + return nodes; + } + const length2 = nodes.length; + if (start === void 0 || start < 0) { + start = 0; + } + if (count === void 0 || count > length2 - start) { + count = length2 - start; + } + let hasTrailingComma; + let pos = -1; + let end = -1; + if (start > 0 || count < length2) { + hasTrailingComma = nodes.hasTrailingComma && start + count === length2; + } else { + pos = nodes.pos; + end = nodes.end; + hasTrailingComma = nodes.hasTrailingComma; + } + const updated = visitArrayWorker(nodes, visitor, test, start, count); + if (updated !== nodes) { + const updatedArray = factory.createNodeArray(updated, hasTrailingComma); + setTextRangePosEnd(updatedArray, pos, end); + return updatedArray; + } + return nodes; +} +function visitArray(nodes, visitor, test, start, count) { + if (nodes === void 0) { + return nodes; + } + const length2 = nodes.length; + if (start === void 0 || start < 0) { + start = 0; + } + if (count === void 0 || count > length2 - start) { + count = length2 - start; + } + return visitArrayWorker(nodes, visitor, test, start, count); +} +function visitArrayWorker(nodes, visitor, test, start, count) { + let updated; + const length2 = nodes.length; + if (start > 0 || count < length2) { + updated = []; + } + for (let i = 0; i < count; i++) { + const node = nodes[i + start]; + const visited = node !== void 0 ? visitor ? visitor(node) : node : void 0; + if (updated !== void 0 || visited === void 0 || visited !== node) { + if (updated === void 0) { + updated = nodes.slice(0, i); + Debug.assertEachNode(updated, test); + } + if (visited) { + if (isArray(visited)) { + for (const visitedNode of visited) { + Debug.assertNode(visitedNode, test); + updated.push(visitedNode); + } + } else { + Debug.assertNode(visited, test); + updated.push(visited); + } + } + } + } + if (updated) { + return updated; + } + Debug.assertEachNode(nodes, test); + return nodes; +} +function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor = visitNodes2) { + context.startLexicalEnvironment(); + statements = nodesVisitor(statements, visitor, isStatement, start); + if (ensureUseStrict) statements = context.factory.ensureUseStrict(statements); + return factory.mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); +} +function visitParameterList(nodes, visitor, context, nodesVisitor = visitNodes2) { + let updated; + context.startLexicalEnvironment(); + if (nodes) { + context.setLexicalEnvironmentFlags(1 /* InParameters */, true); + updated = nodesVisitor(nodes, visitor, isParameter); + if (context.getLexicalEnvironmentFlags() & 2 /* VariablesHoistedInParameters */ && getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) { + updated = addDefaultValueAssignmentsIfNeeded(updated, context); + } + context.setLexicalEnvironmentFlags(1 /* InParameters */, false); + } + context.suspendLexicalEnvironment(); + return updated; +} +function addDefaultValueAssignmentsIfNeeded(parameters, context) { + let result; + for (let i = 0; i < parameters.length; i++) { + const parameter = parameters[i]; + const updated = addDefaultValueAssignmentIfNeeded(parameter, context); + if (result || updated !== parameter) { + if (!result) result = parameters.slice(0, i); + result[i] = updated; + } + } + if (result) { + return setTextRange(context.factory.createNodeArray(result, parameters.hasTrailingComma), parameters); + } + return parameters; +} +function addDefaultValueAssignmentIfNeeded(parameter, context) { + return parameter.dotDotDotToken ? parameter : isBindingPattern(parameter.name) ? addDefaultValueAssignmentForBindingPattern(parameter, context) : parameter.initializer ? addDefaultValueAssignmentForInitializer(parameter, parameter.name, parameter.initializer, context) : parameter; +} +function addDefaultValueAssignmentForBindingPattern(parameter, context) { + const { factory: factory2 } = context; + context.addInitializationStatement( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + parameter.name, + /*exclamationToken*/ + void 0, + parameter.type, + parameter.initializer ? factory2.createConditionalExpression( + factory2.createStrictEquality( + factory2.getGeneratedNameForNode(parameter), + factory2.createVoidZero() + ), + /*questionToken*/ + void 0, + parameter.initializer, + /*colonToken*/ + void 0, + factory2.getGeneratedNameForNode(parameter) + ) : factory2.getGeneratedNameForNode(parameter) + ) + ]) + ) + ); + return factory2.updateParameterDeclaration( + parameter, + parameter.modifiers, + parameter.dotDotDotToken, + factory2.getGeneratedNameForNode(parameter), + parameter.questionToken, + parameter.type, + /*initializer*/ + void 0 + ); +} +function addDefaultValueAssignmentForInitializer(parameter, name, initializer, context) { + const factory2 = context.factory; + context.addInitializationStatement( + factory2.createIfStatement( + factory2.createTypeCheck(factory2.cloneNode(name), "undefined"), + setEmitFlags( + setTextRange( + factory2.createBlock([ + factory2.createExpressionStatement( + setEmitFlags( + setTextRange( + factory2.createAssignment( + setEmitFlags(factory2.cloneNode(name), 96 /* NoSourceMap */), + setEmitFlags(initializer, 96 /* NoSourceMap */ | getEmitFlags(initializer) | 3072 /* NoComments */) + ), + parameter + ), + 3072 /* NoComments */ + ) + ) + ]), + parameter + ), + 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */ + ) + ) + ); + return factory2.updateParameterDeclaration( + parameter, + parameter.modifiers, + parameter.dotDotDotToken, + parameter.name, + parameter.questionToken, + parameter.type, + /*initializer*/ + void 0 + ); +} +function visitFunctionBody(node, visitor, context, nodeVisitor = visitNode) { + context.resumeLexicalEnvironment(); + const updated = nodeVisitor(node, visitor, isConciseBody); + const declarations = context.endLexicalEnvironment(); + if (some(declarations)) { + if (!updated) { + return context.factory.createBlock(declarations); + } + const block = context.factory.converters.convertToFunctionBlock(updated); + const statements = factory.mergeLexicalEnvironment(block.statements, declarations); + return context.factory.updateBlock(block, statements); + } + return updated; +} +function visitIterationBody(body, visitor, context, nodeVisitor = visitNode) { + context.startBlockScope(); + const updated = nodeVisitor(body, visitor, isStatement, context.factory.liftToBlock); + Debug.assert(updated); + const declarations = context.endBlockScope(); + if (some(declarations)) { + if (isBlock(updated)) { + declarations.push(...updated.statements); + return context.factory.updateBlock(updated, declarations); + } + declarations.push(updated); + return context.factory.createBlock(declarations); + } + return updated; +} +function visitCommaListElements(elements, visitor, discardVisitor = visitor) { + if (discardVisitor === visitor || elements.length <= 1) { + return visitNodes2(elements, visitor, isExpression); + } + let i = 0; + const length2 = elements.length; + return visitNodes2(elements, (node) => { + const discarded = i < length2 - 1; + i++; + return discarded ? discardVisitor(node) : visitor(node); + }, isExpression); +} +function visitEachChild(node, visitor, context = nullTransformationContext, nodesVisitor = visitNodes2, tokenVisitor, nodeVisitor = visitNode) { + if (node === void 0) { + return void 0; + } + const fn = visitEachChildTable[node.kind]; + return fn === void 0 ? node : fn(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor); +} +var visitEachChildTable = { + [166 /* QualifiedName */]: function visitEachChildOfQualifiedName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateQualifiedName( + node, + Debug.checkDefined(nodeVisitor(node.left, visitor, isEntityName)), + Debug.checkDefined(nodeVisitor(node.right, visitor, isIdentifier)) + ); + }, + [167 /* ComputedPropertyName */]: function visitEachChildOfComputedPropertyName(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateComputedPropertyName( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + // Signature elements + [168 /* TypeParameter */]: function visitEachChildOfTypeParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeParameterDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + nodeVisitor(node.constraint, visitor, isTypeNode), + nodeVisitor(node.default, visitor, isTypeNode) + ); + }, + [169 /* Parameter */]: function visitEachChildOfParameterDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateParameterDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, + Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression) + ); + }, + [170 /* Decorator */]: function visitEachChildOfDecorator(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDecorator( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + // Type elements + [171 /* PropertySignature */]: function visitEachChildOfPropertySignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updatePropertySignature( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, + nodeVisitor(node.type, visitor, isTypeNode) + ); + }, + [172 /* PropertyDeclaration */]: function visitEachChildOfPropertyDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updatePropertyDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + // QuestionToken and ExclamationToken are mutually exclusive in PropertyDeclaration + tokenVisitor ? nodeVisitor(node.questionToken ?? node.exclamationToken, tokenVisitor, isQuestionOrExclamationToken) : node.questionToken ?? node.exclamationToken, + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression) + ); + }, + [173 /* MethodSignature */]: function visitEachChildOfMethodSignature(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMethodSignature( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameter), + nodeVisitor(node.type, visitor, isTypeNode) + ); + }, + [174 /* MethodDeclaration */]: function visitEachChildOfMethodDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMethodDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [176 /* Constructor */]: function visitEachChildOfConstructorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructorDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [177 /* GetAccessor */]: function visitEachChildOfGetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateGetAccessorDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [178 /* SetAccessor */]: function visitEachChildOfSetAccessorDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSetAccessorDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [175 /* ClassStaticBlockDeclaration */]: function visitEachChildOfClassStaticBlockDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + context.startLexicalEnvironment(); + context.suspendLexicalEnvironment(); + return context.factory.updateClassStaticBlockDeclaration( + node, + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [179 /* CallSignature */]: function visitEachChildOfCallSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCallSignature( + node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameter), + nodeVisitor(node.type, visitor, isTypeNode) + ); + }, + [180 /* ConstructSignature */]: function visitEachChildOfConstructSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructSignature( + node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameter), + nodeVisitor(node.type, visitor, isTypeNode) + ); + }, + [181 /* IndexSignature */]: function visitEachChildOfIndexSignatureDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIndexSignature( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodesVisitor(node.parameters, visitor, isParameter), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + // Types + [182 /* TypePredicate */]: function visitEachChildOfTypePredicateNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypePredicateNode( + node, + nodeVisitor(node.assertsModifier, visitor, isAssertsKeyword), + Debug.checkDefined(nodeVisitor(node.parameterName, visitor, isIdentifierOrThisTypeNode)), + nodeVisitor(node.type, visitor, isTypeNode) + ); + }, + [183 /* TypeReference */]: function visitEachChildOfTypeReferenceNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeReferenceNode( + node, + Debug.checkDefined(nodeVisitor(node.typeName, visitor, isEntityName)), + nodesVisitor(node.typeArguments, visitor, isTypeNode) + ); + }, + [184 /* FunctionType */]: function visitEachChildOfFunctionTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateFunctionTypeNode( + node, + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameter), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [185 /* ConstructorType */]: function visitEachChildOfConstructorTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConstructorTypeNode( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.parameters, visitor, isParameter), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [186 /* TypeQuery */]: function visitEachChildOfTypeQueryNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeQueryNode( + node, + Debug.checkDefined(nodeVisitor(node.exprName, visitor, isEntityName)), + nodesVisitor(node.typeArguments, visitor, isTypeNode) + ); + }, + [187 /* TypeLiteral */]: function visitEachChildOfTypeLiteralNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeLiteralNode( + node, + nodesVisitor(node.members, visitor, isTypeElement) + ); + }, + [188 /* ArrayType */]: function visitEachChildOfArrayTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.elementType, visitor, isTypeNode)) + ); + }, + [189 /* TupleType */]: function visitEachChildOfTupleTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateTupleTypeNode( + node, + nodesVisitor(node.elements, visitor, isTypeNode) + ); + }, + [190 /* OptionalType */]: function visitEachChildOfOptionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateOptionalTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [191 /* RestType */]: function visitEachChildOfRestTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateRestTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [192 /* UnionType */]: function visitEachChildOfUnionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateUnionTypeNode( + node, + nodesVisitor(node.types, visitor, isTypeNode) + ); + }, + [193 /* IntersectionType */]: function visitEachChildOfIntersectionTypeNode(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateIntersectionTypeNode( + node, + nodesVisitor(node.types, visitor, isTypeNode) + ); + }, + [194 /* ConditionalType */]: function visitEachChildOfConditionalTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateConditionalTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.checkType, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.extendsType, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.trueType, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.falseType, visitor, isTypeNode)) + ); + }, + [195 /* InferType */]: function visitEachChildOfInferTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateInferTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)) + ); + }, + [205 /* ImportType */]: function visitEachChildOfImportTypeNode(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.argument, visitor, isTypeNode)), + nodeVisitor(node.attributes, visitor, isImportAttributes), + nodeVisitor(node.qualifier, visitor, isEntityName), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + node.isTypeOf + ); + }, + [302 /* ImportTypeAssertionContainer */]: function visitEachChildOfImportTypeAssertionContainer(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportTypeAssertionContainer( + node, + Debug.checkDefined(nodeVisitor(node.assertClause, visitor, isAssertClause)), + node.multiLine + ); + }, + [202 /* NamedTupleMember */]: function visitEachChildOfNamedTupleMember(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateNamedTupleMember( + node, + tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken) : node.questionToken, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [196 /* ParenthesizedType */]: function visitEachChildOfParenthesizedType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateParenthesizedType( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [198 /* TypeOperator */]: function visitEachChildOfTypeOperatorNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeOperatorNode( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [199 /* IndexedAccessType */]: function visitEachChildOfIndexedAccessType(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIndexedAccessTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.objectType, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.indexType, visitor, isTypeNode)) + ); + }, + [200 /* MappedType */]: function visitEachChildOfMappedType(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateMappedTypeNode( + node, + tokenVisitor ? nodeVisitor(node.readonlyToken, tokenVisitor, isReadonlyKeywordOrPlusOrMinusToken) : node.readonlyToken, + Debug.checkDefined(nodeVisitor(node.typeParameter, visitor, isTypeParameterDeclaration)), + nodeVisitor(node.nameType, visitor, isTypeNode), + tokenVisitor ? nodeVisitor(node.questionToken, tokenVisitor, isQuestionOrPlusOrMinusToken) : node.questionToken, + nodeVisitor(node.type, visitor, isTypeNode), + nodesVisitor(node.members, visitor, isTypeElement) + ); + }, + [201 /* LiteralType */]: function visitEachChildOfLiteralTypeNode(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateLiteralTypeNode( + node, + Debug.checkDefined(nodeVisitor(node.literal, visitor, isLiteralTypeLiteral)) + ); + }, + [203 /* TemplateLiteralType */]: function visitEachChildOfTemplateLiteralType(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateLiteralType( + node, + Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), + nodesVisitor(node.templateSpans, visitor, isTemplateLiteralTypeSpan) + ); + }, + [204 /* TemplateLiteralTypeSpan */]: function visitEachChildOfTemplateLiteralTypeSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateLiteralTypeSpan( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)) + ); + }, + // Binding patterns + [206 /* ObjectBindingPattern */]: function visitEachChildOfObjectBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateObjectBindingPattern( + node, + nodesVisitor(node.elements, visitor, isBindingElement) + ); + }, + [207 /* ArrayBindingPattern */]: function visitEachChildOfArrayBindingPattern(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayBindingPattern( + node, + nodesVisitor(node.elements, visitor, isArrayBindingElement) + ); + }, + [208 /* BindingElement */]: function visitEachChildOfBindingElement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateBindingElement( + node, + tokenVisitor ? nodeVisitor(node.dotDotDotToken, tokenVisitor, isDotDotDotToken) : node.dotDotDotToken, + nodeVisitor(node.propertyName, visitor, isPropertyName), + Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), + nodeVisitor(node.initializer, visitor, isExpression) + ); + }, + // Expression + [209 /* ArrayLiteralExpression */]: function visitEachChildOfArrayLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateArrayLiteralExpression( + node, + nodesVisitor(node.elements, visitor, isExpression) + ); + }, + [210 /* ObjectLiteralExpression */]: function visitEachChildOfObjectLiteralExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateObjectLiteralExpression( + node, + nodesVisitor(node.properties, visitor, isObjectLiteralElementLike) + ); + }, + [211 /* PropertyAccessExpression */]: function visitEachChildOfPropertyAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return isPropertyAccessChain(node) ? context.factory.updatePropertyAccessChain( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, + Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) + ) : context.factory.updatePropertyAccessExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.name, visitor, isMemberName)) + ); + }, + [212 /* ElementAccessExpression */]: function visitEachChildOfElementAccessExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return isElementAccessChain(node) ? context.factory.updateElementAccessChain( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, + Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) + ) : context.factory.updateElementAccessExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.argumentExpression, visitor, isExpression)) + ); + }, + [213 /* CallExpression */]: function visitEachChildOfCallExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return isCallChain(node) ? context.factory.updateCallChain( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + tokenVisitor ? nodeVisitor(node.questionDotToken, tokenVisitor, isQuestionDotToken) : node.questionDotToken, + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodesVisitor(node.arguments, visitor, isExpression) + ) : context.factory.updateCallExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodesVisitor(node.arguments, visitor, isExpression) + ); + }, + [214 /* NewExpression */]: function visitEachChildOfNewExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNewExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + nodesVisitor(node.arguments, visitor, isExpression) + ); + }, + [215 /* TaggedTemplateExpression */]: function visitEachChildOfTaggedTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTaggedTemplateExpression( + node, + Debug.checkDefined(nodeVisitor(node.tag, visitor, isExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + Debug.checkDefined(nodeVisitor(node.template, visitor, isTemplateLiteral)) + ); + }, + [216 /* TypeAssertionExpression */]: function visitEachChildOfTypeAssertionExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeAssertion( + node, + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)), + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [217 /* ParenthesizedExpression */]: function visitEachChildOfParenthesizedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateParenthesizedExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [218 /* FunctionExpression */]: function visitEachChildOfFunctionExpression(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateFunctionExpression( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [219 /* ArrowFunction */]: function visitEachChildOfArrowFunction(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateArrowFunction( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + tokenVisitor ? Debug.checkDefined(nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, isEqualsGreaterThanToken)) : node.equalsGreaterThanToken, + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [220 /* DeleteExpression */]: function visitEachChildOfDeleteExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDeleteExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [221 /* TypeOfExpression */]: function visitEachChildOfTypeOfExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeOfExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [222 /* VoidExpression */]: function visitEachChildOfVoidExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateVoidExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [223 /* AwaitExpression */]: function visitEachChildOfAwaitExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateAwaitExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [224 /* PrefixUnaryExpression */]: function visitEachChildOfPrefixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePrefixUnaryExpression( + node, + Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) + ); + }, + [225 /* PostfixUnaryExpression */]: function visitEachChildOfPostfixUnaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePostfixUnaryExpression( + node, + Debug.checkDefined(nodeVisitor(node.operand, visitor, isExpression)) + ); + }, + [226 /* BinaryExpression */]: function visitEachChildOfBinaryExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateBinaryExpression( + node, + Debug.checkDefined(nodeVisitor(node.left, visitor, isExpression)), + tokenVisitor ? Debug.checkDefined(nodeVisitor(node.operatorToken, tokenVisitor, isBinaryOperatorToken)) : node.operatorToken, + Debug.checkDefined(nodeVisitor(node.right, visitor, isExpression)) + ); + }, + [227 /* ConditionalExpression */]: function visitEachChildOfConditionalExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateConditionalExpression( + node, + Debug.checkDefined(nodeVisitor(node.condition, visitor, isExpression)), + tokenVisitor ? Debug.checkDefined(nodeVisitor(node.questionToken, tokenVisitor, isQuestionToken)) : node.questionToken, + Debug.checkDefined(nodeVisitor(node.whenTrue, visitor, isExpression)), + tokenVisitor ? Debug.checkDefined(nodeVisitor(node.colonToken, tokenVisitor, isColonToken)) : node.colonToken, + Debug.checkDefined(nodeVisitor(node.whenFalse, visitor, isExpression)) + ); + }, + [228 /* TemplateExpression */]: function visitEachChildOfTemplateExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateExpression( + node, + Debug.checkDefined(nodeVisitor(node.head, visitor, isTemplateHead)), + nodesVisitor(node.templateSpans, visitor, isTemplateSpan) + ); + }, + [229 /* YieldExpression */]: function visitEachChildOfYieldExpression(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateYieldExpression( + node, + tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, + nodeVisitor(node.expression, visitor, isExpression) + ); + }, + [230 /* SpreadElement */]: function visitEachChildOfSpreadElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSpreadElement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [231 /* ClassExpression */]: function visitEachChildOfClassExpression(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateClassExpression( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isClassElement) + ); + }, + [233 /* ExpressionWithTypeArguments */]: function visitEachChildOfExpressionWithTypeArguments(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExpressionWithTypeArguments( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode) + ); + }, + [234 /* AsExpression */]: function visitEachChildOfAsExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateAsExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [238 /* SatisfiesExpression */]: function visitEachChildOfSatisfiesExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSatisfiesExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [235 /* NonNullExpression */]: function visitEachChildOfNonNullExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return isOptionalChain(node) ? context.factory.updateNonNullChain( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ) : context.factory.updateNonNullExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [236 /* MetaProperty */]: function visitEachChildOfMetaProperty(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateMetaProperty( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + // Misc + [239 /* TemplateSpan */]: function visitEachChildOfTemplateSpan(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTemplateSpan( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.literal, visitor, isTemplateMiddleOrTemplateTail)) + ); + }, + // Element + [241 /* Block */]: function visitEachChildOfBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateBlock( + node, + nodesVisitor(node.statements, visitor, isStatement) + ); + }, + [243 /* VariableStatement */]: function visitEachChildOfVariableStatement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateVariableStatement( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.declarationList, visitor, isVariableDeclarationList)) + ); + }, + [244 /* ExpressionStatement */]: function visitEachChildOfExpressionStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExpressionStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [245 /* IfStatement */]: function visitEachChildOfIfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateIfStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.thenStatement, visitor, isStatement, context.factory.liftToBlock)), + nodeVisitor(node.elseStatement, visitor, isStatement, context.factory.liftToBlock) + ); + }, + [246 /* DoStatement */]: function visitEachChildOfDoStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateDoStatement( + node, + visitIterationBody(node.statement, visitor, context, nodeVisitor), + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [247 /* WhileStatement */]: function visitEachChildOfWhileStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateWhileStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + visitIterationBody(node.statement, visitor, context, nodeVisitor) + ); + }, + [248 /* ForStatement */]: function visitEachChildOfForStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateForStatement( + node, + nodeVisitor(node.initializer, visitor, isForInitializer), + nodeVisitor(node.condition, visitor, isExpression), + nodeVisitor(node.incrementor, visitor, isExpression), + visitIterationBody(node.statement, visitor, context, nodeVisitor) + ); + }, + [249 /* ForInStatement */]: function visitEachChildOfForInStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateForInStatement( + node, + Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + visitIterationBody(node.statement, visitor, context, nodeVisitor) + ); + }, + [250 /* ForOfStatement */]: function visitEachChildOfForOfStatement(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateForOfStatement( + node, + tokenVisitor ? nodeVisitor(node.awaitModifier, tokenVisitor, isAwaitKeyword) : node.awaitModifier, + Debug.checkDefined(nodeVisitor(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + visitIterationBody(node.statement, visitor, context, nodeVisitor) + ); + }, + [251 /* ContinueStatement */]: function visitEachChildOfContinueStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateContinueStatement( + node, + nodeVisitor(node.label, visitor, isIdentifier) + ); + }, + [252 /* BreakStatement */]: function visitEachChildOfBreakStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateBreakStatement( + node, + nodeVisitor(node.label, visitor, isIdentifier) + ); + }, + [253 /* ReturnStatement */]: function visitEachChildOfReturnStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateReturnStatement( + node, + nodeVisitor(node.expression, visitor, isExpression) + ); + }, + [254 /* WithStatement */]: function visitEachChildOfWithStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateWithStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) + ); + }, + [255 /* SwitchStatement */]: function visitEachChildOfSwitchStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSwitchStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + Debug.checkDefined(nodeVisitor(node.caseBlock, visitor, isCaseBlock)) + ); + }, + [256 /* LabeledStatement */]: function visitEachChildOfLabeledStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateLabeledStatement( + node, + Debug.checkDefined(nodeVisitor(node.label, visitor, isIdentifier)), + Debug.checkDefined(nodeVisitor(node.statement, visitor, isStatement, context.factory.liftToBlock)) + ); + }, + [257 /* ThrowStatement */]: function visitEachChildOfThrowStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateThrowStatement( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [258 /* TryStatement */]: function visitEachChildOfTryStatement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTryStatement( + node, + Debug.checkDefined(nodeVisitor(node.tryBlock, visitor, isBlock)), + nodeVisitor(node.catchClause, visitor, isCatchClause), + nodeVisitor(node.finallyBlock, visitor, isBlock) + ); + }, + [260 /* VariableDeclaration */]: function visitEachChildOfVariableDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateVariableDeclaration( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isBindingName)), + tokenVisitor ? nodeVisitor(node.exclamationToken, tokenVisitor, isExclamationToken) : node.exclamationToken, + nodeVisitor(node.type, visitor, isTypeNode), + nodeVisitor(node.initializer, visitor, isExpression) + ); + }, + [261 /* VariableDeclarationList */]: function visitEachChildOfVariableDeclarationList(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateVariableDeclarationList( + node, + nodesVisitor(node.declarations, visitor, isVariableDeclaration) + ); + }, + [262 /* FunctionDeclaration */]: function visitEachChildOfFunctionDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, tokenVisitor) { + return context.factory.updateFunctionDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifier), + tokenVisitor ? nodeVisitor(node.asteriskToken, tokenVisitor, isAsteriskToken) : node.asteriskToken, + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + visitParameterList(node.parameters, visitor, context, nodesVisitor), + nodeVisitor(node.type, visitor, isTypeNode), + visitFunctionBody(node.body, visitor, context, nodeVisitor) + ); + }, + [263 /* ClassDeclaration */]: function visitEachChildOfClassDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateClassDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.name, visitor, isIdentifier), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isClassElement) + ); + }, + [264 /* InterfaceDeclaration */]: function visitEachChildOfInterfaceDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateInterfaceDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + nodesVisitor(node.heritageClauses, visitor, isHeritageClause), + nodesVisitor(node.members, visitor, isTypeElement) + ); + }, + [265 /* TypeAliasDeclaration */]: function visitEachChildOfTypeAliasDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateTypeAliasDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + nodesVisitor(node.typeParameters, visitor, isTypeParameterDeclaration), + Debug.checkDefined(nodeVisitor(node.type, visitor, isTypeNode)) + ); + }, + [266 /* EnumDeclaration */]: function visitEachChildOfEnumDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateEnumDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + nodesVisitor(node.members, visitor, isEnumMember) + ); + }, + [267 /* ModuleDeclaration */]: function visitEachChildOfModuleDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateModuleDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleName)), + nodeVisitor(node.body, visitor, isModuleBody) + ); + }, + [268 /* ModuleBlock */]: function visitEachChildOfModuleBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateModuleBlock( + node, + nodesVisitor(node.statements, visitor, isStatement) + ); + }, + [269 /* CaseBlock */]: function visitEachChildOfCaseBlock(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateCaseBlock( + node, + nodesVisitor(node.clauses, visitor, isCaseOrDefaultClause) + ); + }, + [270 /* NamespaceExportDeclaration */]: function visitEachChildOfNamespaceExportDeclaration(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceExportDeclaration( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + [271 /* ImportEqualsDeclaration */]: function visitEachChildOfImportEqualsDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportEqualsDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + node.isTypeOnly, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + Debug.checkDefined(nodeVisitor(node.moduleReference, visitor, isModuleReference)) + ); + }, + [272 /* ImportDeclaration */]: function visitEachChildOfImportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + nodeVisitor(node.importClause, visitor, isImportClause), + Debug.checkDefined(nodeVisitor(node.moduleSpecifier, visitor, isExpression)), + nodeVisitor(node.attributes, visitor, isImportAttributes) + ); + }, + [300 /* ImportAttributes */]: function visitEachChildOfImportAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateImportAttributes( + node, + nodesVisitor(node.elements, visitor, isImportAttribute), + node.multiLine + ); + }, + [301 /* ImportAttribute */]: function visitEachChildOfImportAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportAttribute( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isImportAttributeName)), + Debug.checkDefined(nodeVisitor(node.value, visitor, isExpression)) + ); + }, + [273 /* ImportClause */]: function visitEachChildOfImportClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportClause( + node, + node.isTypeOnly, + nodeVisitor(node.name, visitor, isIdentifier), + nodeVisitor(node.namedBindings, visitor, isNamedImportBindings) + ); + }, + [274 /* NamespaceImport */]: function visitEachChildOfNamespaceImport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceImport( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + [280 /* NamespaceExport */]: function visitEachChildOfNamespaceExport(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateNamespaceExport( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + [275 /* NamedImports */]: function visitEachChildOfNamedImports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateNamedImports( + node, + nodesVisitor(node.elements, visitor, isImportSpecifier) + ); + }, + [276 /* ImportSpecifier */]: function visitEachChildOfImportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateImportSpecifier( + node, + node.isTypeOnly, + nodeVisitor(node.propertyName, visitor, isIdentifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + [277 /* ExportAssignment */]: function visitEachChildOfExportAssignment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportAssignment( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [278 /* ExportDeclaration */]: function visitEachChildOfExportDeclaration(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportDeclaration( + node, + nodesVisitor(node.modifiers, visitor, isModifierLike), + node.isTypeOnly, + nodeVisitor(node.exportClause, visitor, isNamedExportBindings), + nodeVisitor(node.moduleSpecifier, visitor, isExpression), + nodeVisitor(node.attributes, visitor, isImportAttributes) + ); + }, + [279 /* NamedExports */]: function visitEachChildOfNamedExports(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateNamedExports( + node, + nodesVisitor(node.elements, visitor, isExportSpecifier) + ); + }, + [281 /* ExportSpecifier */]: function visitEachChildOfExportSpecifier(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExportSpecifier( + node, + node.isTypeOnly, + nodeVisitor(node.propertyName, visitor, isIdentifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + // Module references + [283 /* ExternalModuleReference */]: function visitEachChildOfExternalModuleReference(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateExternalModuleReference( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + // JSX + [284 /* JsxElement */]: function visitEachChildOfJsxElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxElement( + node, + Debug.checkDefined(nodeVisitor(node.openingElement, visitor, isJsxOpeningElement)), + nodesVisitor(node.children, visitor, isJsxChild), + Debug.checkDefined(nodeVisitor(node.closingElement, visitor, isJsxClosingElement)) + ); + }, + [285 /* JsxSelfClosingElement */]: function visitEachChildOfJsxSelfClosingElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxSelfClosingElement( + node, + Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) + ); + }, + [286 /* JsxOpeningElement */]: function visitEachChildOfJsxOpeningElement(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxOpeningElement( + node, + Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)), + nodesVisitor(node.typeArguments, visitor, isTypeNode), + Debug.checkDefined(nodeVisitor(node.attributes, visitor, isJsxAttributes)) + ); + }, + [287 /* JsxClosingElement */]: function visitEachChildOfJsxClosingElement(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxClosingElement( + node, + Debug.checkDefined(nodeVisitor(node.tagName, visitor, isJsxTagNameExpression)) + ); + }, + [295 /* JsxNamespacedName */]: function forEachChildInJsxNamespacedName2(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxNamespacedName( + node, + Debug.checkDefined(nodeVisitor(node.namespace, visitor, isIdentifier)), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) + ); + }, + [288 /* JsxFragment */]: function visitEachChildOfJsxFragment(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxFragment( + node, + Debug.checkDefined(nodeVisitor(node.openingFragment, visitor, isJsxOpeningFragment)), + nodesVisitor(node.children, visitor, isJsxChild), + Debug.checkDefined(nodeVisitor(node.closingFragment, visitor, isJsxClosingFragment)) + ); + }, + [291 /* JsxAttribute */]: function visitEachChildOfJsxAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxAttribute( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isJsxAttributeName)), + nodeVisitor(node.initializer, visitor, isStringLiteralOrJsxExpression) + ); + }, + [292 /* JsxAttributes */]: function visitEachChildOfJsxAttributes(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxAttributes( + node, + nodesVisitor(node.properties, visitor, isJsxAttributeLike) + ); + }, + [293 /* JsxSpreadAttribute */]: function visitEachChildOfJsxSpreadAttribute(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxSpreadAttribute( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [294 /* JsxExpression */]: function visitEachChildOfJsxExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateJsxExpression( + node, + nodeVisitor(node.expression, visitor, isExpression) + ); + }, + // Clauses + [296 /* CaseClause */]: function visitEachChildOfCaseClause(node, visitor, context, nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCaseClause( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)), + nodesVisitor(node.statements, visitor, isStatement) + ); + }, + [297 /* DefaultClause */]: function visitEachChildOfDefaultClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateDefaultClause( + node, + nodesVisitor(node.statements, visitor, isStatement) + ); + }, + [298 /* HeritageClause */]: function visitEachChildOfHeritageClause(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateHeritageClause( + node, + nodesVisitor(node.types, visitor, isExpressionWithTypeArguments) + ); + }, + [299 /* CatchClause */]: function visitEachChildOfCatchClause(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateCatchClause( + node, + nodeVisitor(node.variableDeclaration, visitor, isVariableDeclaration), + Debug.checkDefined(nodeVisitor(node.block, visitor, isBlock)) + ); + }, + // Property assignments + [303 /* PropertyAssignment */]: function visitEachChildOfPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePropertyAssignment( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + Debug.checkDefined(nodeVisitor(node.initializer, visitor, isExpression)) + ); + }, + [304 /* ShorthandPropertyAssignment */]: function visitEachChildOfShorthandPropertyAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateShorthandPropertyAssignment( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)), + nodeVisitor(node.objectAssignmentInitializer, visitor, isExpression) + ); + }, + [305 /* SpreadAssignment */]: function visitEachChildOfSpreadAssignment(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateSpreadAssignment( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + // Enum + [306 /* EnumMember */]: function visitEachChildOfEnumMember(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updateEnumMember( + node, + Debug.checkDefined(nodeVisitor(node.name, visitor, isPropertyName)), + nodeVisitor(node.initializer, visitor, isExpression) + ); + }, + // Top-level nodes + [307 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateSourceFile( + node, + visitLexicalEnvironment(node.statements, visitor, context) + ); + }, + // Transformation nodes + [354 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + return context.factory.updatePartiallyEmittedExpression( + node, + Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) + ); + }, + [355 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + return context.factory.updateCommaListExpression( + node, + nodesVisitor(node.elements, visitor, isExpression) + ); + } +}; +function extractSingleNode(nodes) { + Debug.assert(nodes.length <= 1, "Too many nodes written to output."); + return singleOrUndefined(nodes); +} + +// src/compiler/sourcemap.ts +function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath, generatorOptions) { + var { enter, exit } = generatorOptions.extendedDiagnostics ? createTimer("Source Map", "beforeSourcemap", "afterSourcemap") : nullTimer; + var rawSources = []; + var sources = []; + var sourceToSourceIndexMap = /* @__PURE__ */ new Map(); + var sourcesContent; + var names = []; + var nameToNameIndexMap; + var mappingCharCodes = []; + var mappings = ""; + var lastGeneratedLine = 0; + var lastGeneratedCharacter = 0; + var lastSourceIndex = 0; + var lastSourceLine = 0; + var lastSourceCharacter = 0; + var lastNameIndex = 0; + var hasLast = false; + var pendingGeneratedLine = 0; + var pendingGeneratedCharacter = 0; + var pendingSourceIndex = 0; + var pendingSourceLine = 0; + var pendingSourceCharacter = 0; + var pendingNameIndex = 0; + var hasPending = false; + var hasPendingSource = false; + var hasPendingName = false; + return { + getSources: () => rawSources, + addSource, + setSourceContent, + addName, + addMapping, + appendSourceMap, + toJSON, + toString: () => JSON.stringify(toJSON()) + }; + function addSource(fileName) { + enter(); + const source = getRelativePathToDirectoryOrUrl( + sourcesDirectoryPath, + fileName, + host.getCurrentDirectory(), + host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + true + ); + let sourceIndex = sourceToSourceIndexMap.get(source); + if (sourceIndex === void 0) { + sourceIndex = sources.length; + sources.push(source); + rawSources.push(fileName); + sourceToSourceIndexMap.set(source, sourceIndex); + } + exit(); + return sourceIndex; + } + function setSourceContent(sourceIndex, content) { + enter(); + if (content !== null) { + if (!sourcesContent) sourcesContent = []; + while (sourcesContent.length < sourceIndex) { + sourcesContent.push(null); + } + sourcesContent[sourceIndex] = content; + } + exit(); + } + function addName(name) { + enter(); + if (!nameToNameIndexMap) nameToNameIndexMap = /* @__PURE__ */ new Map(); + let nameIndex = nameToNameIndexMap.get(name); + if (nameIndex === void 0) { + nameIndex = names.length; + names.push(name); + nameToNameIndexMap.set(name, nameIndex); + } + exit(); + return nameIndex; + } + function isNewGeneratedPosition(generatedLine, generatedCharacter) { + return !hasPending || pendingGeneratedLine !== generatedLine || pendingGeneratedCharacter !== generatedCharacter; + } + function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) { + return sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0 && pendingSourceIndex === sourceIndex && (pendingSourceLine > sourceLine || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter); + } + function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) { + Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack"); + Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative"); + Debug.assert(sourceIndex === void 0 || sourceIndex >= 0, "sourceIndex cannot be negative"); + Debug.assert(sourceLine === void 0 || sourceLine >= 0, "sourceLine cannot be negative"); + Debug.assert(sourceCharacter === void 0 || sourceCharacter >= 0, "sourceCharacter cannot be negative"); + enter(); + if (isNewGeneratedPosition(generatedLine, generatedCharacter) || isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter)) { + commitPendingMapping(); + pendingGeneratedLine = generatedLine; + pendingGeneratedCharacter = generatedCharacter; + hasPendingSource = false; + hasPendingName = false; + hasPending = true; + } + if (sourceIndex !== void 0 && sourceLine !== void 0 && sourceCharacter !== void 0) { + pendingSourceIndex = sourceIndex; + pendingSourceLine = sourceLine; + pendingSourceCharacter = sourceCharacter; + hasPendingSource = true; + if (nameIndex !== void 0) { + pendingNameIndex = nameIndex; + hasPendingName = true; + } + } + exit(); + } + function appendSourceMap(generatedLine, generatedCharacter, map2, sourceMapPath, start, end) { + Debug.assert(generatedLine >= pendingGeneratedLine, "generatedLine cannot backtrack"); + Debug.assert(generatedCharacter >= 0, "generatedCharacter cannot be negative"); + enter(); + const sourceIndexToNewSourceIndexMap = []; + let nameIndexToNewNameIndexMap; + const mappingIterator = decodeMappings(map2.mappings); + for (const raw of mappingIterator) { + if (end && (raw.generatedLine > end.line || raw.generatedLine === end.line && raw.generatedCharacter > end.character)) { + break; + } + if (start && (raw.generatedLine < start.line || start.line === raw.generatedLine && raw.generatedCharacter < start.character)) { + continue; + } + let newSourceIndex; + let newSourceLine; + let newSourceCharacter; + let newNameIndex; + if (raw.sourceIndex !== void 0) { + newSourceIndex = sourceIndexToNewSourceIndexMap[raw.sourceIndex]; + if (newSourceIndex === void 0) { + const rawPath = map2.sources[raw.sourceIndex]; + const relativePath = map2.sourceRoot ? combinePaths(map2.sourceRoot, rawPath) : rawPath; + const combinedPath = combinePaths(getDirectoryPath(sourceMapPath), relativePath); + sourceIndexToNewSourceIndexMap[raw.sourceIndex] = newSourceIndex = addSource(combinedPath); + if (map2.sourcesContent && typeof map2.sourcesContent[raw.sourceIndex] === "string") { + setSourceContent(newSourceIndex, map2.sourcesContent[raw.sourceIndex]); + } + } + newSourceLine = raw.sourceLine; + newSourceCharacter = raw.sourceCharacter; + if (map2.names && raw.nameIndex !== void 0) { + if (!nameIndexToNewNameIndexMap) nameIndexToNewNameIndexMap = []; + newNameIndex = nameIndexToNewNameIndexMap[raw.nameIndex]; + if (newNameIndex === void 0) { + nameIndexToNewNameIndexMap[raw.nameIndex] = newNameIndex = addName(map2.names[raw.nameIndex]); + } + } + } + const rawGeneratedLine = raw.generatedLine - (start ? start.line : 0); + const newGeneratedLine = rawGeneratedLine + generatedLine; + const rawGeneratedCharacter = start && start.line === raw.generatedLine ? raw.generatedCharacter - start.character : raw.generatedCharacter; + const newGeneratedCharacter = rawGeneratedLine === 0 ? rawGeneratedCharacter + generatedCharacter : rawGeneratedCharacter; + addMapping(newGeneratedLine, newGeneratedCharacter, newSourceIndex, newSourceLine, newSourceCharacter, newNameIndex); + } + exit(); + } + function shouldCommitMapping() { + return !hasLast || lastGeneratedLine !== pendingGeneratedLine || lastGeneratedCharacter !== pendingGeneratedCharacter || lastSourceIndex !== pendingSourceIndex || lastSourceLine !== pendingSourceLine || lastSourceCharacter !== pendingSourceCharacter || lastNameIndex !== pendingNameIndex; + } + function appendMappingCharCode(charCode) { + mappingCharCodes.push(charCode); + if (mappingCharCodes.length >= 1024) { + flushMappingBuffer(); + } + } + function commitPendingMapping() { + if (!hasPending || !shouldCommitMapping()) { + return; + } + enter(); + if (lastGeneratedLine < pendingGeneratedLine) { + do { + appendMappingCharCode(59 /* semicolon */); + lastGeneratedLine++; + } while (lastGeneratedLine < pendingGeneratedLine); + lastGeneratedCharacter = 0; + } else { + Debug.assertEqual(lastGeneratedLine, pendingGeneratedLine, "generatedLine cannot backtrack"); + if (hasLast) { + appendMappingCharCode(44 /* comma */); + } + } + appendBase64VLQ(pendingGeneratedCharacter - lastGeneratedCharacter); + lastGeneratedCharacter = pendingGeneratedCharacter; + if (hasPendingSource) { + appendBase64VLQ(pendingSourceIndex - lastSourceIndex); + lastSourceIndex = pendingSourceIndex; + appendBase64VLQ(pendingSourceLine - lastSourceLine); + lastSourceLine = pendingSourceLine; + appendBase64VLQ(pendingSourceCharacter - lastSourceCharacter); + lastSourceCharacter = pendingSourceCharacter; + if (hasPendingName) { + appendBase64VLQ(pendingNameIndex - lastNameIndex); + lastNameIndex = pendingNameIndex; + } + } + hasLast = true; + exit(); + } + function flushMappingBuffer() { + if (mappingCharCodes.length > 0) { + mappings += String.fromCharCode.apply(void 0, mappingCharCodes); + mappingCharCodes.length = 0; + } + } + function toJSON() { + commitPendingMapping(); + flushMappingBuffer(); + return { + version: 3, + file, + sourceRoot, + sources, + names, + mappings, + sourcesContent + }; + } + function appendBase64VLQ(inValue) { + if (inValue < 0) { + inValue = (-inValue << 1) + 1; + } else { + inValue = inValue << 1; + } + do { + let currentDigit = inValue & 31; + inValue = inValue >> 5; + if (inValue > 0) { + currentDigit = currentDigit | 32; + } + appendMappingCharCode(base64FormatEncode(currentDigit)); + } while (inValue > 0); + } +} +var sourceMapCommentRegExpDontCareLineStart = /\/\/[@#] source[M]appingURL=(.+)\r?\n?$/; +var sourceMapCommentRegExp = /^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/; +var whitespaceOrMapCommentRegExp = /^\s*(\/\/[@#] .*)?$/; +function decodeMappings(mappings) { + let done = false; + let pos = 0; + let generatedLine = 0; + let generatedCharacter = 0; + let sourceIndex = 0; + let sourceLine = 0; + let sourceCharacter = 0; + let nameIndex = 0; + let error; + return { + get pos() { + return pos; + }, + get error() { + return error; + }, + get state() { + return captureMapping( + /*hasSource*/ + true, + /*hasName*/ + true + ); + }, + next() { + while (!done && pos < mappings.length) { + const ch = mappings.charCodeAt(pos); + if (ch === 59 /* semicolon */) { + generatedLine++; + generatedCharacter = 0; + pos++; + continue; + } + if (ch === 44 /* comma */) { + pos++; + continue; + } + let hasSource = false; + let hasName = false; + generatedCharacter += base64VLQFormatDecode(); + if (hasReportedError()) return stopIterating(); + if (generatedCharacter < 0) return setErrorAndStopIterating("Invalid generatedCharacter found"); + if (!isSourceMappingSegmentEnd()) { + hasSource = true; + sourceIndex += base64VLQFormatDecode(); + if (hasReportedError()) return stopIterating(); + if (sourceIndex < 0) return setErrorAndStopIterating("Invalid sourceIndex found"); + if (isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Format: No entries after sourceIndex"); + sourceLine += base64VLQFormatDecode(); + if (hasReportedError()) return stopIterating(); + if (sourceLine < 0) return setErrorAndStopIterating("Invalid sourceLine found"); + if (isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Format: No entries after sourceLine"); + sourceCharacter += base64VLQFormatDecode(); + if (hasReportedError()) return stopIterating(); + if (sourceCharacter < 0) return setErrorAndStopIterating("Invalid sourceCharacter found"); + if (!isSourceMappingSegmentEnd()) { + hasName = true; + nameIndex += base64VLQFormatDecode(); + if (hasReportedError()) return stopIterating(); + if (nameIndex < 0) return setErrorAndStopIterating("Invalid nameIndex found"); + if (!isSourceMappingSegmentEnd()) return setErrorAndStopIterating("Unsupported Error Format: Entries after nameIndex"); + } + } + return { value: captureMapping(hasSource, hasName), done }; + } + return stopIterating(); + }, + [Symbol.iterator]() { + return this; + } + }; + function captureMapping(hasSource, hasName) { + return { + generatedLine, + generatedCharacter, + sourceIndex: hasSource ? sourceIndex : void 0, + sourceLine: hasSource ? sourceLine : void 0, + sourceCharacter: hasSource ? sourceCharacter : void 0, + nameIndex: hasName ? nameIndex : void 0 + }; + } + function stopIterating() { + done = true; + return { value: void 0, done: true }; + } + function setError(message) { + if (error === void 0) { + error = message; + } + } + function setErrorAndStopIterating(message) { + setError(message); + return stopIterating(); + } + function hasReportedError() { + return error !== void 0; + } + function isSourceMappingSegmentEnd() { + return pos === mappings.length || mappings.charCodeAt(pos) === 44 /* comma */ || mappings.charCodeAt(pos) === 59 /* semicolon */; + } + function base64VLQFormatDecode() { + let moreDigits = true; + let shiftCount = 0; + let value = 0; + for (; moreDigits; pos++) { + if (pos >= mappings.length) return setError("Error in decoding base64VLQFormatDecode, past the mapping string"), -1; + const currentByte = base64FormatDecode(mappings.charCodeAt(pos)); + if (currentByte === -1) return setError("Invalid character in VLQ"), -1; + moreDigits = (currentByte & 32) !== 0; + value = value | (currentByte & 31) << shiftCount; + shiftCount += 5; + } + if ((value & 1) === 0) { + value = value >> 1; + } else { + value = value >> 1; + value = -value; + } + return value; + } +} +function base64FormatEncode(value) { + return value >= 0 && value < 26 ? 65 /* A */ + value : value >= 26 && value < 52 ? 97 /* a */ + value - 26 : value >= 52 && value < 62 ? 48 /* _0 */ + value - 52 : value === 62 ? 43 /* plus */ : value === 63 ? 47 /* slash */ : Debug.fail(`${value}: not a base64 value`); +} +function base64FormatDecode(ch) { + return ch >= 65 /* A */ && ch <= 90 /* Z */ ? ch - 65 /* A */ : ch >= 97 /* a */ && ch <= 122 /* z */ ? ch - 97 /* a */ + 26 : ch >= 48 /* _0 */ && ch <= 57 /* _9 */ ? ch - 48 /* _0 */ + 52 : ch === 43 /* plus */ ? 62 : ch === 47 /* slash */ ? 63 : -1; +} + +// src/compiler/transformers/utilities.ts +function getOriginalNodeId(node) { + node = getOriginalNode(node); + return node ? getNodeId(node) : 0; +} +function containsDefaultReference(node) { + if (!node) return false; + if (!isNamedImports(node) && !isNamedExports(node)) return false; + return some(node.elements, isNamedDefaultReference); +} +function isNamedDefaultReference(e) { + return e.propertyName !== void 0 ? e.propertyName.escapedText === "default" /* Default */ : e.name.escapedText === "default" /* Default */; +} +function chainBundle(context, transformSourceFile) { + return transformSourceFileOrBundle; + function transformSourceFileOrBundle(node) { + return node.kind === 307 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + } + function transformBundle(node) { + return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); + } +} +function getExportNeedsImportStarHelper(node) { + return !!getNamespaceDeclarationNode(node); +} +function getImportNeedsImportStarHelper(node) { + if (!!getNamespaceDeclarationNode(node)) { + return true; + } + const bindings = node.importClause && node.importClause.namedBindings; + if (!bindings) { + return false; + } + if (!isNamedImports(bindings)) return false; + let defaultRefCount = 0; + for (const binding of bindings.elements) { + if (isNamedDefaultReference(binding)) { + defaultRefCount++; + } + } + return defaultRefCount > 0 && defaultRefCount !== bindings.elements.length || !!(bindings.elements.length - defaultRefCount) && isDefaultImport(node); +} +function getImportNeedsImportDefaultHelper(node) { + return !getImportNeedsImportStarHelper(node) && (isDefaultImport(node) || !!node.importClause && isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings)); +} +function collectExternalModuleInfo(context, sourceFile) { + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const externalImports = []; + const exportSpecifiers = new IdentifierNameMultiMap(); + const exportedBindings = []; + const uniqueExports = /* @__PURE__ */ new Map(); + const exportedFunctions = /* @__PURE__ */ new Set(); + let exportedNames; + let hasExportDefault = false; + let exportEquals; + let hasExportStarsToExportValues = false; + let hasImportStar = false; + let hasImportDefault = false; + for (const node of sourceFile.statements) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + externalImports.push(node); + if (!hasImportStar && getImportNeedsImportStarHelper(node)) { + hasImportStar = true; + } + if (!hasImportDefault && getImportNeedsImportDefaultHelper(node)) { + hasImportDefault = true; + } + break; + case 271 /* ImportEqualsDeclaration */: + if (node.moduleReference.kind === 283 /* ExternalModuleReference */) { + externalImports.push(node); + } + break; + case 278 /* ExportDeclaration */: + if (node.moduleSpecifier) { + if (!node.exportClause) { + externalImports.push(node); + hasExportStarsToExportValues = true; + } else { + externalImports.push(node); + if (isNamedExports(node.exportClause)) { + addExportedNamesForExportDeclaration(node); + hasImportDefault || (hasImportDefault = containsDefaultReference(node.exportClause)); + } else { + const name = node.exportClause.name; + if (!uniqueExports.get(idText(name))) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); + uniqueExports.set(idText(name), true); + exportedNames = append(exportedNames, name); + } + hasImportStar = true; + } + } + } else { + addExportedNamesForExportDeclaration(node); + } + break; + case 277 /* ExportAssignment */: + if (node.isExportEquals && !exportEquals) { + exportEquals = node; + } + break; + case 243 /* VariableStatement */: + if (hasSyntacticModifier(node, 32 /* Export */)) { + for (const decl of node.declarationList.declarations) { + exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings); + } + } + break; + case 262 /* FunctionDeclaration */: + if (hasSyntacticModifier(node, 32 /* Export */)) { + addExportedFunctionDeclaration( + node, + /*name*/ + void 0, + hasSyntacticModifier(node, 2048 /* Default */) + ); + } + break; + case 263 /* ClassDeclaration */: + if (hasSyntacticModifier(node, 32 /* Export */)) { + if (hasSyntacticModifier(node, 2048 /* Default */)) { + if (!hasExportDefault) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node)); + hasExportDefault = true; + } + } else { + const name = node.name; + if (name && !uniqueExports.get(idText(name))) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); + uniqueExports.set(idText(name), true); + exportedNames = append(exportedNames, name); + } + } + } + break; + } + } + const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(context.factory, context.getEmitHelperFactory(), sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault); + if (externalHelpersImportDeclaration) { + externalImports.unshift(externalHelpersImportDeclaration); + } + return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration }; + function addExportedNamesForExportDeclaration(node) { + for (const specifier of cast(node.exportClause, isNamedExports).elements) { + if (!uniqueExports.get(idText(specifier.name))) { + const name = specifier.propertyName || specifier.name; + if (!node.moduleSpecifier) { + exportSpecifiers.add(name, specifier); + } + const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); + if (decl) { + if (decl.kind === 262 /* FunctionDeclaration */) { + addExportedFunctionDeclaration(decl, specifier.name, specifier.name.escapedText === "default" /* Default */); + continue; + } + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); + } + uniqueExports.set(idText(specifier.name), true); + exportedNames = append(exportedNames, specifier.name); + } + } + } + function addExportedFunctionDeclaration(node, name, isDefault) { + exportedFunctions.add(node); + if (isDefault) { + if (!hasExportDefault) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name ?? context.factory.getDeclarationName(node)); + hasExportDefault = true; + } + } else { + name ?? (name = node.name); + if (!uniqueExports.get(idText(name))) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); + uniqueExports.set(idText(name), true); + } + } + } +} +function collectExportedVariableInfo(decl, uniqueExports, exportedNames, exportedBindings) { + if (isBindingPattern(decl.name)) { + for (const element of decl.name.elements) { + if (!isOmittedExpression(element)) { + exportedNames = collectExportedVariableInfo(element, uniqueExports, exportedNames, exportedBindings); + } + } + } else if (!isGeneratedIdentifier(decl.name)) { + const text = idText(decl.name); + if (!uniqueExports.get(text)) { + uniqueExports.set(text, true); + exportedNames = append(exportedNames, decl.name); + if (isLocalName(decl.name)) { + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), decl.name); + } + } + } + return exportedNames; +} +function multiMapSparseArrayAdd(map2, key, value) { + let values = map2[key]; + if (values) { + values.push(value); + } else { + map2[key] = values = [value]; + } + return values; +} +var IdentifierNameMap = class _IdentifierNameMap { + constructor() { + this._map = /* @__PURE__ */ new Map(); + } + get size() { + return this._map.size; + } + has(key) { + return this._map.has(_IdentifierNameMap.toKey(key)); + } + get(key) { + return this._map.get(_IdentifierNameMap.toKey(key)); + } + set(key, value) { + this._map.set(_IdentifierNameMap.toKey(key), value); + return this; + } + delete(key) { + var _a; + return ((_a = this._map) == null ? void 0 : _a.delete(_IdentifierNameMap.toKey(key))) ?? false; + } + clear() { + this._map.clear(); + } + values() { + return this._map.values(); + } + static toKey(name) { + if (isGeneratedPrivateIdentifier(name) || isGeneratedIdentifier(name)) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + const node = getNodeForGeneratedName(name); + const baseName = isMemberName(node) && node !== name ? _IdentifierNameMap.toKey(node) : `(generated@${getNodeId(node)})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } else { + const baseName = `(auto@${autoGenerate.id})`; + return formatGeneratedName( + /*privateName*/ + false, + autoGenerate.prefix, + baseName, + autoGenerate.suffix, + _IdentifierNameMap.toKey + ); + } + } + if (isPrivateIdentifier(name)) { + return idText(name).slice(1); + } + return idText(name); + } +}; +var IdentifierNameMultiMap = class extends IdentifierNameMap { + add(key, value) { + let values = this.get(key); + if (values) { + values.push(value); + } else { + this.set(key, values = [value]); + } + return values; + } + remove(key, value) { + const values = this.get(key); + if (values) { + unorderedRemoveItem(values, value); + if (!values.length) { + this.delete(key); + } + } + } +}; +function isSimpleCopiableExpression(expression) { + return isStringLiteralLike(expression) || expression.kind === 9 /* NumericLiteral */ || isKeyword(expression.kind) || isIdentifier(expression); +} +function isSimpleInlineableExpression(expression) { + return !isIdentifier(expression) && isSimpleCopiableExpression(expression); +} +function isCompoundAssignment(kind) { + return kind >= 65 /* FirstCompoundAssignment */ && kind <= 79 /* LastCompoundAssignment */; +} +function getNonAssignmentOperatorForCompoundAssignment(kind) { + switch (kind) { + case 65 /* PlusEqualsToken */: + return 40 /* PlusToken */; + case 66 /* MinusEqualsToken */: + return 41 /* MinusToken */; + case 67 /* AsteriskEqualsToken */: + return 42 /* AsteriskToken */; + case 68 /* AsteriskAsteriskEqualsToken */: + return 43 /* AsteriskAsteriskToken */; + case 69 /* SlashEqualsToken */: + return 44 /* SlashToken */; + case 70 /* PercentEqualsToken */: + return 45 /* PercentToken */; + case 71 /* LessThanLessThanEqualsToken */: + return 48 /* LessThanLessThanToken */; + case 72 /* GreaterThanGreaterThanEqualsToken */: + return 49 /* GreaterThanGreaterThanToken */; + case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: + return 50 /* GreaterThanGreaterThanGreaterThanToken */; + case 74 /* AmpersandEqualsToken */: + return 51 /* AmpersandToken */; + case 75 /* BarEqualsToken */: + return 52 /* BarToken */; + case 79 /* CaretEqualsToken */: + return 53 /* CaretToken */; + case 76 /* BarBarEqualsToken */: + return 57 /* BarBarToken */; + case 77 /* AmpersandAmpersandEqualsToken */: + return 56 /* AmpersandAmpersandToken */; + case 78 /* QuestionQuestionEqualsToken */: + return 61 /* QuestionQuestionToken */; + } +} +function getSuperCallFromStatement(statement) { + if (!isExpressionStatement(statement)) { + return void 0; + } + const expression = skipParentheses(statement.expression); + return isSuperCall(expression) ? expression : void 0; +} +function findSuperStatementIndexPathWorker(statements, start, indices) { + for (let i = start; i < statements.length; i += 1) { + const statement = statements[i]; + if (getSuperCallFromStatement(statement)) { + indices.unshift(i); + return true; + } else if (isTryStatement(statement) && findSuperStatementIndexPathWorker(statement.tryBlock.statements, 0, indices)) { + indices.unshift(i); + return true; + } + } + return false; +} +function findSuperStatementIndexPath(statements, start) { + const indices = []; + findSuperStatementIndexPathWorker(statements, start, indices); + return indices; +} +function getProperties(node, requireInitializer, isStatic2) { + return filter(node.members, (m) => isInitializedOrStaticProperty(m, requireInitializer, isStatic2)); +} +function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(element) { + return isStaticPropertyDeclaration(element) || isClassStaticBlockDeclaration(element); +} +function getStaticPropertiesAndClassStaticBlock(node) { + return filter(node.members, isStaticPropertyDeclarationOrClassStaticBlockDeclaration); +} +function isInitializedOrStaticProperty(member, requireInitializer, isStatic2) { + return isPropertyDeclaration(member) && (!!member.initializer || !requireInitializer) && hasStaticModifier(member) === isStatic2; +} +function isStaticPropertyDeclaration(member) { + return isPropertyDeclaration(member) && hasStaticModifier(member); +} +function isInitializedProperty(member) { + return member.kind === 172 /* PropertyDeclaration */ && member.initializer !== void 0; +} +function isNonStaticMethodOrAccessorWithPrivateName(member) { + return !isStatic(member) && (isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member)) && isPrivateIdentifier(member.name); +} +function getDecoratorsOfParameters(node) { + let decorators; + if (node) { + const parameters = node.parameters; + const firstParameterIsThis = parameters.length > 0 && parameterIsThisKeyword(parameters[0]); + const firstParameterOffset = firstParameterIsThis ? 1 : 0; + const numParameters = firstParameterIsThis ? parameters.length - 1 : parameters.length; + for (let i = 0; i < numParameters; i++) { + const parameter = parameters[i + firstParameterOffset]; + if (decorators || hasDecorators(parameter)) { + if (!decorators) { + decorators = new Array(numParameters); + } + decorators[i] = getDecorators(parameter); + } + } + } + return decorators; +} +function getAllDecoratorsOfClass(node) { + const decorators = getDecorators(node); + const parameters = getDecoratorsOfParameters(getFirstConstructorWithBody(node)); + if (!some(decorators) && !some(parameters)) { + return void 0; + } + return { + decorators, + parameters + }; +} +function getAllDecoratorsOfClassElement(member, parent, useLegacyDecorators) { + switch (member.kind) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + if (!useLegacyDecorators) { + return getAllDecoratorsOfMethod(member); + } + return getAllDecoratorsOfAccessors(member, parent); + case 174 /* MethodDeclaration */: + return getAllDecoratorsOfMethod(member); + case 172 /* PropertyDeclaration */: + return getAllDecoratorsOfProperty(member); + default: + return void 0; + } +} +function getAllDecoratorsOfAccessors(accessor, parent) { + if (!accessor.body) { + return void 0; + } + const { firstAccessor, secondAccessor, getAccessor, setAccessor } = getAllAccessorDeclarations(parent.members, accessor); + const firstAccessorWithDecorators = hasDecorators(firstAccessor) ? firstAccessor : secondAccessor && hasDecorators(secondAccessor) ? secondAccessor : void 0; + if (!firstAccessorWithDecorators || accessor !== firstAccessorWithDecorators) { + return void 0; + } + const decorators = getDecorators(firstAccessorWithDecorators); + const parameters = getDecoratorsOfParameters(setAccessor); + if (!some(decorators) && !some(parameters)) { + return void 0; + } + return { + decorators, + parameters, + getDecorators: getAccessor && getDecorators(getAccessor), + setDecorators: setAccessor && getDecorators(setAccessor) + }; +} +function getAllDecoratorsOfMethod(method) { + if (!method.body) { + return void 0; + } + const decorators = getDecorators(method); + const parameters = getDecoratorsOfParameters(method); + if (!some(decorators) && !some(parameters)) { + return void 0; + } + return { decorators, parameters }; +} +function getAllDecoratorsOfProperty(property) { + const decorators = getDecorators(property); + if (!some(decorators)) { + return void 0; + } + return { decorators }; +} +function walkUpLexicalEnvironments(env, cb) { + while (env) { + const result = cb(env); + if (result !== void 0) return result; + env = env.previous; + } +} +function newPrivateEnvironment(data) { + return { data }; +} +function getPrivateIdentifier(privateEnv, name) { + var _a, _b; + return isGeneratedPrivateIdentifier(name) ? (_a = privateEnv == null ? void 0 : privateEnv.generatedIdentifiers) == null ? void 0 : _a.get(getNodeForGeneratedName(name)) : (_b = privateEnv == null ? void 0 : privateEnv.identifiers) == null ? void 0 : _b.get(name.escapedText); +} +function setPrivateIdentifier(privateEnv, name, entry) { + if (isGeneratedPrivateIdentifier(name)) { + privateEnv.generatedIdentifiers ?? (privateEnv.generatedIdentifiers = /* @__PURE__ */ new Map()); + privateEnv.generatedIdentifiers.set(getNodeForGeneratedName(name), entry); + } else { + privateEnv.identifiers ?? (privateEnv.identifiers = /* @__PURE__ */ new Map()); + privateEnv.identifiers.set(name.escapedText, entry); + } +} +function accessPrivateIdentifier(env, name) { + return walkUpLexicalEnvironments(env, (env2) => getPrivateIdentifier(env2.privateEnv, name)); +} +function isSimpleParameter(node) { + return !node.initializer && isIdentifier(node.name); +} +function isSimpleParameterList(nodes) { + return every(nodes, isSimpleParameter); +} + +// src/compiler/transformers/destructuring.ts +function flattenDestructuringAssignment(node, visitor, context, level, needsValue, createAssignmentCallback) { + let location = node; + let value; + if (isDestructuringAssignment(node)) { + value = node.right; + while (isEmptyArrayLiteral(node.left) || isEmptyObjectLiteral(node.left)) { + if (isDestructuringAssignment(value)) { + location = node = value; + value = node.right; + } else { + return Debug.checkDefined(visitNode(value, visitor, isExpression)); + } + } + } + let expressions; + const flattenContext = { + context, + level, + downlevelIteration: !!context.getCompilerOptions().downlevelIteration, + hoistTempVariables: true, + emitExpression, + emitBindingOrAssignment, + createArrayBindingOrAssignmentPattern: (elements) => makeArrayAssignmentPattern(context.factory, elements), + createObjectBindingOrAssignmentPattern: (elements) => makeObjectAssignmentPattern(context.factory, elements), + createArrayBindingOrAssignmentElement: makeAssignmentElement, + visitor + }; + if (value) { + value = visitNode(value, visitor, isExpression); + Debug.assert(value); + if (isIdentifier(value) && bindingOrAssignmentElementAssignsToName(node, value.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node)) { + value = ensureIdentifier( + flattenContext, + value, + /*reuseIdentifierExpressions*/ + false, + location + ); + } else if (needsValue) { + value = ensureIdentifier( + flattenContext, + value, + /*reuseIdentifierExpressions*/ + true, + location + ); + } else if (nodeIsSynthesized(node)) { + location = value; + } + } + flattenBindingOrAssignmentElement( + flattenContext, + node, + value, + location, + /*skipInitializer*/ + isDestructuringAssignment(node) + ); + if (value && needsValue) { + if (!some(expressions)) { + return value; + } + expressions.push(value); + } + return context.factory.inlineExpressions(expressions) || context.factory.createOmittedExpression(); + function emitExpression(expression) { + expressions = append(expressions, expression); + } + function emitBindingOrAssignment(target, value2, location2, original) { + Debug.assertNode(target, createAssignmentCallback ? isIdentifier : isExpression); + const expression = createAssignmentCallback ? createAssignmentCallback(target, value2, location2) : setTextRange( + context.factory.createAssignment(Debug.checkDefined(visitNode(target, visitor, isExpression)), value2), + location2 + ); + expression.original = original; + emitExpression(expression); + } +} +function bindingOrAssignmentElementAssignsToName(element, escapedName) { + const target = getTargetOfBindingOrAssignmentElement(element); + if (isBindingOrAssignmentPattern(target)) { + return bindingOrAssignmentPatternAssignsToName(target, escapedName); + } else if (isIdentifier(target)) { + return target.escapedText === escapedName; + } + return false; +} +function bindingOrAssignmentPatternAssignsToName(pattern, escapedName) { + const elements = getElementsOfBindingOrAssignmentPattern(pattern); + for (const element of elements) { + if (bindingOrAssignmentElementAssignsToName(element, escapedName)) { + return true; + } + } + return false; +} +function bindingOrAssignmentElementContainsNonLiteralComputedName(element) { + const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element); + if (propertyName && isComputedPropertyName(propertyName) && !isLiteralExpression(propertyName.expression)) { + return true; + } + const target = getTargetOfBindingOrAssignmentElement(element); + return !!target && isBindingOrAssignmentPattern(target) && bindingOrAssignmentPatternContainsNonLiteralComputedName(target); +} +function bindingOrAssignmentPatternContainsNonLiteralComputedName(pattern) { + return !!forEach(getElementsOfBindingOrAssignmentPattern(pattern), bindingOrAssignmentElementContainsNonLiteralComputedName); +} +function flattenDestructuringBinding(node, visitor, context, level, rval, hoistTempVariables = false, skipInitializer) { + let pendingExpressions; + const pendingDeclarations = []; + const declarations = []; + const flattenContext = { + context, + level, + downlevelIteration: !!context.getCompilerOptions().downlevelIteration, + hoistTempVariables, + emitExpression, + emitBindingOrAssignment, + createArrayBindingOrAssignmentPattern: (elements) => makeArrayBindingPattern(context.factory, elements), + createObjectBindingOrAssignmentPattern: (elements) => makeObjectBindingPattern(context.factory, elements), + createArrayBindingOrAssignmentElement: (name) => makeBindingElement(context.factory, name), + visitor + }; + if (isVariableDeclaration(node)) { + let initializer = getInitializerOfBindingOrAssignmentElement(node); + if (initializer && (isIdentifier(initializer) && bindingOrAssignmentElementAssignsToName(node, initializer.escapedText) || bindingOrAssignmentElementContainsNonLiteralComputedName(node))) { + initializer = ensureIdentifier( + flattenContext, + Debug.checkDefined(visitNode(initializer, flattenContext.visitor, isExpression)), + /*reuseIdentifierExpressions*/ + false, + initializer + ); + node = context.factory.updateVariableDeclaration( + node, + node.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ); + } + } + flattenBindingOrAssignmentElement(flattenContext, node, rval, node, skipInitializer); + if (pendingExpressions) { + const temp = context.factory.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + if (hoistTempVariables) { + const value = context.factory.inlineExpressions(pendingExpressions); + pendingExpressions = void 0; + emitBindingOrAssignment( + temp, + value, + /*location*/ + void 0, + /*original*/ + void 0 + ); + } else { + context.hoistVariableDeclaration(temp); + const pendingDeclaration = last(pendingDeclarations); + pendingDeclaration.pendingExpressions = append( + pendingDeclaration.pendingExpressions, + context.factory.createAssignment(temp, pendingDeclaration.value) + ); + addRange(pendingDeclaration.pendingExpressions, pendingExpressions); + pendingDeclaration.value = temp; + } + } + for (const { pendingExpressions: pendingExpressions2, name, value, location, original } of pendingDeclarations) { + const variable = context.factory.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + pendingExpressions2 ? context.factory.inlineExpressions(append(pendingExpressions2, value)) : value + ); + variable.original = original; + setTextRange(variable, location); + declarations.push(variable); + } + return declarations; + function emitExpression(value) { + pendingExpressions = append(pendingExpressions, value); + } + function emitBindingOrAssignment(target, value, location, original) { + Debug.assertNode(target, isBindingName); + if (pendingExpressions) { + value = context.factory.inlineExpressions(append(pendingExpressions, value)); + pendingExpressions = void 0; + } + pendingDeclarations.push({ pendingExpressions, name: target, value, location, original }); + } +} +function flattenBindingOrAssignmentElement(flattenContext, element, value, location, skipInitializer) { + const bindingTarget = getTargetOfBindingOrAssignmentElement(element); + if (!skipInitializer) { + const initializer = visitNode(getInitializerOfBindingOrAssignmentElement(element), flattenContext.visitor, isExpression); + if (initializer) { + if (value) { + value = createDefaultValueCheck(flattenContext, value, initializer, location); + if (!isSimpleInlineableExpression(initializer) && isBindingOrAssignmentPattern(bindingTarget)) { + value = ensureIdentifier( + flattenContext, + value, + /*reuseIdentifierExpressions*/ + true, + location + ); + } + } else { + value = initializer; + } + } else if (!value) { + value = flattenContext.context.factory.createVoidZero(); + } + } + if (isObjectBindingOrAssignmentPattern(bindingTarget)) { + flattenObjectBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location); + } else if (isArrayBindingOrAssignmentPattern(bindingTarget)) { + flattenArrayBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location); + } else { + flattenContext.emitBindingOrAssignment( + bindingTarget, + value, + location, + /*original*/ + element + ); + } +} +function flattenObjectBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) { + const elements = getElementsOfBindingOrAssignmentPattern(pattern); + const numElements = elements.length; + if (numElements !== 1) { + const reuseIdentifierExpressions = !isDeclarationBindingElement(parent) || numElements !== 0; + value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location); + } + let bindingElements; + let computedTempVariables; + for (let i = 0; i < numElements; i++) { + const element = elements[i]; + if (!getRestIndicatorOfBindingOrAssignmentElement(element)) { + const propertyName = getPropertyNameOfBindingOrAssignmentElement(element); + if (flattenContext.level >= 1 /* ObjectRest */ && !(element.transformFlags & (32768 /* ContainsRestOrSpread */ | 65536 /* ContainsObjectRestOrSpread */)) && !(getTargetOfBindingOrAssignmentElement(element).transformFlags & (32768 /* ContainsRestOrSpread */ | 65536 /* ContainsObjectRestOrSpread */)) && !isComputedPropertyName(propertyName)) { + bindingElements = append(bindingElements, visitNode(element, flattenContext.visitor, isBindingOrAssignmentElement)); + } else { + if (bindingElements) { + flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); + bindingElements = void 0; + } + const rhsValue = createDestructuringPropertyAccess(flattenContext, value, propertyName); + if (isComputedPropertyName(propertyName)) { + computedTempVariables = append(computedTempVariables, rhsValue.argumentExpression); + } + flattenBindingOrAssignmentElement( + flattenContext, + element, + rhsValue, + /*location*/ + element + ); + } + } else if (i === numElements - 1) { + if (bindingElements) { + flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); + bindingElements = void 0; + } + const rhsValue = flattenContext.context.getEmitHelperFactory().createRestHelper(value, elements, computedTempVariables, pattern); + flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element); + } + } + if (bindingElements) { + flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern); + } +} +function flattenArrayBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) { + const elements = getElementsOfBindingOrAssignmentPattern(pattern); + const numElements = elements.length; + if (flattenContext.level < 1 /* ObjectRest */ && flattenContext.downlevelIteration) { + value = ensureIdentifier( + flattenContext, + setTextRange( + flattenContext.context.getEmitHelperFactory().createReadHelper( + value, + numElements > 0 && getRestIndicatorOfBindingOrAssignmentElement(elements[numElements - 1]) ? void 0 : numElements + ), + location + ), + /*reuseIdentifierExpressions*/ + false, + location + ); + } else if (numElements !== 1 && (flattenContext.level < 1 /* ObjectRest */ || numElements === 0) || every(elements, isOmittedExpression)) { + const reuseIdentifierExpressions = !isDeclarationBindingElement(parent) || numElements !== 0; + value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location); + } + let bindingElements; + let restContainingElements; + for (let i = 0; i < numElements; i++) { + const element = elements[i]; + if (flattenContext.level >= 1 /* ObjectRest */) { + if (element.transformFlags & 65536 /* ContainsObjectRestOrSpread */ || flattenContext.hasTransformedPriorElement && !isSimpleBindingOrAssignmentElement(element)) { + flattenContext.hasTransformedPriorElement = true; + const temp = flattenContext.context.factory.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + if (flattenContext.hoistTempVariables) { + flattenContext.context.hoistVariableDeclaration(temp); + } + restContainingElements = append(restContainingElements, [temp, element]); + bindingElements = append(bindingElements, flattenContext.createArrayBindingOrAssignmentElement(temp)); + } else { + bindingElements = append(bindingElements, element); + } + } else if (isOmittedExpression(element)) { + continue; + } else if (!getRestIndicatorOfBindingOrAssignmentElement(element)) { + const rhsValue = flattenContext.context.factory.createElementAccessExpression(value, i); + flattenBindingOrAssignmentElement( + flattenContext, + element, + rhsValue, + /*location*/ + element + ); + } else if (i === numElements - 1) { + const rhsValue = flattenContext.context.factory.createArraySliceCall(value, i); + flattenBindingOrAssignmentElement( + flattenContext, + element, + rhsValue, + /*location*/ + element + ); + } + } + if (bindingElements) { + flattenContext.emitBindingOrAssignment(flattenContext.createArrayBindingOrAssignmentPattern(bindingElements), value, location, pattern); + } + if (restContainingElements) { + for (const [id, element] of restContainingElements) { + flattenBindingOrAssignmentElement(flattenContext, element, id, element); + } + } +} +function isSimpleBindingOrAssignmentElement(element) { + const target = getTargetOfBindingOrAssignmentElement(element); + if (!target || isOmittedExpression(target)) return true; + const propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(element); + if (propertyName && !isPropertyNameLiteral(propertyName)) return false; + const initializer = getInitializerOfBindingOrAssignmentElement(element); + if (initializer && !isSimpleInlineableExpression(initializer)) return false; + if (isBindingOrAssignmentPattern(target)) return every(getElementsOfBindingOrAssignmentPattern(target), isSimpleBindingOrAssignmentElement); + return isIdentifier(target); +} +function createDefaultValueCheck(flattenContext, value, defaultValue, location) { + value = ensureIdentifier( + flattenContext, + value, + /*reuseIdentifierExpressions*/ + true, + location + ); + return flattenContext.context.factory.createConditionalExpression( + flattenContext.context.factory.createTypeCheck(value, "undefined"), + /*questionToken*/ + void 0, + defaultValue, + /*colonToken*/ + void 0, + value + ); +} +function createDestructuringPropertyAccess(flattenContext, value, propertyName) { + const { factory: factory2 } = flattenContext.context; + if (isComputedPropertyName(propertyName)) { + const argumentExpression = ensureIdentifier( + flattenContext, + Debug.checkDefined(visitNode(propertyName.expression, flattenContext.visitor, isExpression)), + /*reuseIdentifierExpressions*/ + false, + /*location*/ + propertyName + ); + return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); + } else if (isStringOrNumericLiteralLike(propertyName)) { + const argumentExpression = factory2.cloneNode(propertyName); + return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); + } else { + const name = flattenContext.context.factory.createIdentifier(idText(propertyName)); + return flattenContext.context.factory.createPropertyAccessExpression(value, name); + } +} +function ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location) { + if (isIdentifier(value) && reuseIdentifierExpressions) { + return value; + } else { + const temp = flattenContext.context.factory.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + if (flattenContext.hoistTempVariables) { + flattenContext.context.hoistVariableDeclaration(temp); + flattenContext.emitExpression(setTextRange(flattenContext.context.factory.createAssignment(temp, value), location)); + } else { + flattenContext.emitBindingOrAssignment( + temp, + value, + location, + /*original*/ + void 0 + ); + } + return temp; + } +} +function makeArrayBindingPattern(factory2, elements) { + Debug.assertEachNode(elements, isArrayBindingElement); + return factory2.createArrayBindingPattern(elements); +} +function makeArrayAssignmentPattern(factory2, elements) { + Debug.assertEachNode(elements, isArrayBindingOrAssignmentElement); + return factory2.createArrayLiteralExpression(map(elements, factory2.converters.convertToArrayAssignmentElement)); +} +function makeObjectBindingPattern(factory2, elements) { + Debug.assertEachNode(elements, isBindingElement); + return factory2.createObjectBindingPattern(elements); +} +function makeObjectAssignmentPattern(factory2, elements) { + Debug.assertEachNode(elements, isObjectBindingOrAssignmentElement); + return factory2.createObjectLiteralExpression(map(elements, factory2.converters.convertToObjectAssignmentElement)); +} +function makeBindingElement(factory2, name) { + return factory2.createBindingElement( + /*dotDotDotToken*/ + void 0, + /*propertyName*/ + void 0, + name + ); +} +function makeAssignmentElement(name) { + return name; +} + +// src/compiler/transformers/classThis.ts +function createClassThisAssignmentBlock(factory2, classThis, thisExpression = factory2.createThis()) { + const expression = factory2.createAssignment(classThis, thisExpression); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).classThis = classThis; + return block; +} +function isClassThisAssignmentBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isAssignmentExpression( + statement.expression, + /*excludeCompoundAssignment*/ + true + ) && isIdentifier(statement.expression.left) && ((_a = node.emitNode) == null ? void 0 : _a.classThis) === statement.expression.left && statement.expression.right.kind === 110 /* ThisKeyword */; +} +function classHasClassThisAssignment(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.classThis) && some(node.members, isClassThisAssignmentBlock); +} +function injectClassThisAssignmentIfMissing(factory2, node, classThis, thisExpression) { + if (classHasClassThisAssignment(node)) { + return node; + } + const staticBlock = createClassThisAssignmentBlock(factory2, classThis, thisExpression); + if (node.name) { + setSourceMapRange(staticBlock.body.statements[0], node.name); + } + const members = factory2.createNodeArray([staticBlock, ...node.members]); + setTextRange(members, node.members); + const updatedNode = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(updatedNode).classThis = classThis; + return updatedNode; +} + +// src/compiler/transformers/namedEvaluation.ts +function getAssignedNameOfIdentifier(factory2, name, expression) { + const original = getOriginalNode(skipOuterExpressions(expression)); + if ((isClassDeclaration(original) || isFunctionDeclaration(original)) && !original.name && hasSyntacticModifier(original, 2048 /* Default */)) { + return factory2.createStringLiteral("default"); + } + return factory2.createStringLiteralFromNode(name); +} +function getAssignedNameOfPropertyName(context, name, assignedNameText) { + const { factory: factory2 } = context; + if (assignedNameText !== void 0) { + const assignedName2 = factory2.createStringLiteral(assignedNameText); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name) || isPrivateIdentifier(name)) { + const assignedName2 = factory2.createStringLiteralFromNode(name); + return { assignedName: assignedName2, name }; + } + if (isPropertyNameLiteral(name.expression) && !isIdentifier(name.expression)) { + const assignedName2 = factory2.createStringLiteralFromNode(name.expression); + return { assignedName: assignedName2, name }; + } + const assignedName = factory2.getGeneratedNameForNode(name); + context.hoistVariableDeclaration(assignedName); + const key = context.getEmitHelperFactory().createPropKeyHelper(name.expression); + const assignment = factory2.createAssignment(assignedName, key); + const updatedName = factory2.updateComputedPropertyName(name, assignment); + return { assignedName, name: updatedName }; +} +function createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression = context.factory.createThis()) { + const { factory: factory2 } = context; + const expression = context.getEmitHelperFactory().createSetFunctionNameHelper(thisExpression, assignedName); + const statement = factory2.createExpressionStatement(expression); + const body = factory2.createBlock( + [statement], + /*multiLine*/ + false + ); + const block = factory2.createClassStaticBlockDeclaration(body); + getOrCreateEmitNode(block).assignedName = assignedName; + return block; +} +function isClassNamedEvaluationHelperBlock(node) { + var _a; + if (!isClassStaticBlockDeclaration(node) || node.body.statements.length !== 1) { + return false; + } + const statement = node.body.statements[0]; + return isExpressionStatement(statement) && isCallToHelper(statement.expression, "___setFunctionName") && statement.expression.arguments.length >= 2 && statement.expression.arguments[1] === ((_a = node.emitNode) == null ? void 0 : _a.assignedName); +} +function classHasExplicitlyAssignedName(node) { + var _a; + return !!((_a = node.emitNode) == null ? void 0 : _a.assignedName) && some(node.members, isClassNamedEvaluationHelperBlock); +} +function classHasDeclaredOrExplicitlyAssignedName(node) { + return !!node.name || classHasExplicitlyAssignedName(node); +} +function injectClassNamedEvaluationHelperBlockIfMissing(context, node, assignedName, thisExpression) { + if (classHasExplicitlyAssignedName(node)) { + return node; + } + const { factory: factory2 } = context; + const namedEvaluationBlock = createClassNamedEvaluationHelperBlock(context, assignedName, thisExpression); + if (node.name) { + setSourceMapRange(namedEvaluationBlock.body.statements[0], node.name); + } + const insertionIndex = findIndex(node.members, isClassThisAssignmentBlock) + 1; + const leading = node.members.slice(0, insertionIndex); + const trailing = node.members.slice(insertionIndex); + const members = factory2.createNodeArray([...leading, namedEvaluationBlock, ...trailing]); + setTextRange(members, node.members); + node = isClassDeclaration(node) ? factory2.updateClassDeclaration( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ) : factory2.updateClassExpression( + node, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + members + ); + getOrCreateEmitNode(node).assignedName = assignedName; + return node; +} +function finishTransformNamedEvaluation(context, expression, assignedName, ignoreEmptyStringLiteral) { + if (ignoreEmptyStringLiteral && isStringLiteral(assignedName) && isEmptyStringLiteral(assignedName)) { + return expression; + } + const { factory: factory2 } = context; + const innerExpression = skipOuterExpressions(expression); + const updatedExpression = isClassExpression(innerExpression) ? cast(injectClassNamedEvaluationHelperBlockIfMissing(context, innerExpression, assignedName), isClassExpression) : context.getEmitHelperFactory().createSetFunctionNameHelper(innerExpression, assignedName); + return factory2.restoreOuterExpressions(expression, updatedExpression); +} +function transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyAssignment( + node, + name, + initializer + ); +} +function transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.objectAssignmentInitializer); + const objectAssignmentInitializer = finishTransformNamedEvaluation(context, node.objectAssignmentInitializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateShorthandPropertyAssignment( + node, + node.name, + objectAssignmentInitializer + ); +} +function transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateVariableDeclaration( + node, + node.name, + node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateParameterDeclaration( + node, + node.modifiers, + node.dotDotDotToken, + node.name, + node.questionToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.name, node.initializer); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBindingElement( + node, + node.dotDotDotToken, + node.propertyName, + node.name, + initializer + ); +} +function transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const { assignedName, name } = getAssignedNameOfPropertyName(context, node.name, assignedNameText); + const initializer = finishTransformNamedEvaluation(context, node.initializer, assignedName, ignoreEmptyStringLiteral); + return factory2.updatePropertyDeclaration( + node, + node.modifiers, + name, + node.questionToken ?? node.exclamationToken, + node.type, + initializer + ); +} +function transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : getAssignedNameOfIdentifier(factory2, node.left, node.right); + const right = finishTransformNamedEvaluation(context, node.right, assignedName, ignoreEmptyStringLiteral); + return factory2.updateBinaryExpression( + node, + node.left, + node.operatorToken, + right + ); +} +function transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedNameText) { + const { factory: factory2 } = context; + const assignedName = assignedNameText !== void 0 ? factory2.createStringLiteral(assignedNameText) : factory2.createStringLiteral(node.isExportEquals ? "" : "default"); + const expression = finishTransformNamedEvaluation(context, node.expression, assignedName, ignoreEmptyStringLiteral); + return factory2.updateExportAssignment( + node, + node.modifiers, + expression + ); +} +function transformNamedEvaluation(context, node, ignoreEmptyStringLiteral, assignedName) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + return transformNamedEvaluationOfPropertyAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + case 304 /* ShorthandPropertyAssignment */: + return transformNamedEvaluationOfShorthandAssignmentProperty(context, node, ignoreEmptyStringLiteral, assignedName); + case 260 /* VariableDeclaration */: + return transformNamedEvaluationOfVariableDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 169 /* Parameter */: + return transformNamedEvaluationOfParameterDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 208 /* BindingElement */: + return transformNamedEvaluationOfBindingElement(context, node, ignoreEmptyStringLiteral, assignedName); + case 172 /* PropertyDeclaration */: + return transformNamedEvaluationOfPropertyDeclaration(context, node, ignoreEmptyStringLiteral, assignedName); + case 226 /* BinaryExpression */: + return transformNamedEvaluationOfAssignmentExpression(context, node, ignoreEmptyStringLiteral, assignedName); + case 277 /* ExportAssignment */: + return transformNamedEvaluationOfExportAssignment(context, node, ignoreEmptyStringLiteral, assignedName); + } +} + +// src/compiler/transformers/taggedTemplate.ts +function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) { + const tag = visitNode(node.tag, visitor, isExpression); + Debug.assert(tag); + const templateArguments = [void 0]; + const cookedStrings = []; + const rawStrings = []; + const template = node.template; + if (level === 0 /* LiftRestriction */ && !hasInvalidEscape(template)) { + return visitEachChild(node, visitor, context); + } + const { factory: factory2 } = context; + if (isNoSubstitutionTemplateLiteral(template)) { + cookedStrings.push(createTemplateCooked(factory2, template)); + rawStrings.push(getRawLiteral(factory2, template, currentSourceFile)); + } else { + cookedStrings.push(createTemplateCooked(factory2, template.head)); + rawStrings.push(getRawLiteral(factory2, template.head, currentSourceFile)); + for (const templateSpan of template.templateSpans) { + cookedStrings.push(createTemplateCooked(factory2, templateSpan.literal)); + rawStrings.push(getRawLiteral(factory2, templateSpan.literal, currentSourceFile)); + templateArguments.push(Debug.checkDefined(visitNode(templateSpan.expression, visitor, isExpression))); + } + } + const helperCall = context.getEmitHelperFactory().createTemplateObjectHelper( + factory2.createArrayLiteralExpression(cookedStrings), + factory2.createArrayLiteralExpression(rawStrings) + ); + if (isExternalModule(currentSourceFile)) { + const tempVar = factory2.createUniqueName("templateObject"); + recordTaggedTemplateString(tempVar); + templateArguments[0] = factory2.createLogicalOr( + tempVar, + factory2.createAssignment( + tempVar, + helperCall + ) + ); + } else { + templateArguments[0] = helperCall; + } + return factory2.createCallExpression( + tag, + /*typeArguments*/ + void 0, + templateArguments + ); +} +function createTemplateCooked(factory2, template) { + return template.templateFlags & 26656 /* IsInvalid */ ? factory2.createVoidZero() : factory2.createStringLiteral(template.text); +} +function getRawLiteral(factory2, node, currentSourceFile) { + let text = node.rawText; + if (text === void 0) { + Debug.assertIsDefined(currentSourceFile, "Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."); + text = getSourceTextOfNodeFromSourceFile(currentSourceFile, node); + const isLast = node.kind === 15 /* NoSubstitutionTemplateLiteral */ || node.kind === 18 /* TemplateTail */; + text = text.substring(1, text.length - (isLast ? 1 : 2)); + } + text = text.replace(/\r\n?/g, "\n"); + return setTextRange(factory2.createStringLiteral(text), node); +} + +// src/compiler/transformers/ts.ts +var USE_NEW_TYPE_METADATA_FORMAT = false; +function transformTypeScript(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + startLexicalEnvironment, + resumeLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const moduleKind = getEmitModuleKind(compilerOptions); + const legacyDecorators = !!compilerOptions.experimentalDecorators; + const typeSerializer = compilerOptions.emitDecoratorMetadata ? createRuntimeTypeSerializer(context) : void 0; + const previousOnEmitNode = context.onEmitNode; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onEmitNode = onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + let currentSourceFile; + let currentNamespace; + let currentNamespaceContainerName; + let currentLexicalScope; + let currentScopeFirstDeclarationsOfName; + let currentClassHasParameterProperties; + let enabledSubstitutions; + let applicableSubstitutions; + return transformSourceFileOrBundle; + function transformSourceFileOrBundle(node) { + if (node.kind === 308 /* Bundle */) { + return transformBundle(node); + } + return transformSourceFile(node); + } + function transformBundle(node) { + return factory2.createBundle( + node.sourceFiles.map(transformSourceFile) + ); + } + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + currentSourceFile = node; + const visited = saveStateAndInvoke(node, visitSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + currentSourceFile = void 0; + return visited; + } + function saveStateAndInvoke(node, f) { + const savedCurrentScope = currentLexicalScope; + const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; + const savedCurrentClassHasParameterProperties = currentClassHasParameterProperties; + onBeforeVisitNode(node); + const visited = f(node); + if (currentLexicalScope !== savedCurrentScope) { + currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; + } + currentLexicalScope = savedCurrentScope; + currentClassHasParameterProperties = savedCurrentClassHasParameterProperties; + return visited; + } + function onBeforeVisitNode(node) { + switch (node.kind) { + case 307 /* SourceFile */: + case 269 /* CaseBlock */: + case 268 /* ModuleBlock */: + case 241 /* Block */: + currentLexicalScope = node; + currentScopeFirstDeclarationsOfName = void 0; + break; + case 263 /* ClassDeclaration */: + case 262 /* FunctionDeclaration */: + if (hasSyntacticModifier(node, 128 /* Ambient */)) { + break; + } + if (node.name) { + recordEmittedDeclarationInScope(node); + } else { + Debug.assert(node.kind === 263 /* ClassDeclaration */ || hasSyntacticModifier(node, 2048 /* Default */)); + } + break; + } + } + function visitor(node) { + return saveStateAndInvoke(node, visitorWorker); + } + function visitorWorker(node) { + if (node.transformFlags & 1 /* ContainsTypeScript */) { + return visitTypeScript(node); + } + return node; + } + function sourceElementVisitor(node) { + return saveStateAndInvoke(node, sourceElementVisitorWorker); + } + function sourceElementVisitorWorker(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 277 /* ExportAssignment */: + case 278 /* ExportDeclaration */: + return visitElidableStatement(node); + default: + return visitorWorker(node); + } + } + function isElisionBlocked(node) { + const parsed = getParseTreeNode(node); + if (parsed === node || isExportAssignment(node)) { + return false; + } + if (!parsed || parsed.kind !== node.kind) { + return true; + } + switch (node.kind) { + case 272 /* ImportDeclaration */: + Debug.assertNode(parsed, isImportDeclaration); + if (node.importClause !== parsed.importClause) { + return true; + } + if (node.attributes !== parsed.attributes) { + return true; + } + break; + case 271 /* ImportEqualsDeclaration */: + Debug.assertNode(parsed, isImportEqualsDeclaration); + if (node.name !== parsed.name) { + return true; + } + if (node.isTypeOnly !== parsed.isTypeOnly) { + return true; + } + if (node.moduleReference !== parsed.moduleReference && (isEntityName(node.moduleReference) || isEntityName(parsed.moduleReference))) { + return true; + } + break; + case 278 /* ExportDeclaration */: + Debug.assertNode(parsed, isExportDeclaration); + if (node.exportClause !== parsed.exportClause) { + return true; + } + if (node.attributes !== parsed.attributes) { + return true; + } + break; + } + return false; + } + function visitElidableStatement(node) { + if (isElisionBlocked(node)) { + if (node.transformFlags & 1 /* ContainsTypeScript */) { + return visitEachChild(node, visitor, context); + } + return node; + } + switch (node.kind) { + case 272 /* ImportDeclaration */: + return visitImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitImportEqualsDeclaration(node); + case 277 /* ExportAssignment */: + return visitExportAssignment(node); + case 278 /* ExportDeclaration */: + return visitExportDeclaration(node); + default: + Debug.fail("Unhandled ellided statement"); + } + } + function namespaceElementVisitor(node) { + return saveStateAndInvoke(node, namespaceElementVisitorWorker); + } + function namespaceElementVisitorWorker(node) { + if (node.kind === 278 /* ExportDeclaration */ || node.kind === 272 /* ImportDeclaration */ || node.kind === 273 /* ImportClause */ || node.kind === 271 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 283 /* ExternalModuleReference */) { + return void 0; + } else if (node.transformFlags & 1 /* ContainsTypeScript */ || hasSyntacticModifier(node, 32 /* Export */)) { + return visitTypeScript(node); + } + return node; + } + function getClassElementVisitor(parent) { + return (node) => saveStateAndInvoke(node, (n) => classElementVisitorWorker(n, parent)); + } + function classElementVisitorWorker(node, parent) { + switch (node.kind) { + case 176 /* Constructor */: + return visitConstructor(node); + case 172 /* PropertyDeclaration */: + return visitPropertyDeclaration(node, parent); + case 177 /* GetAccessor */: + return visitGetAccessor(node, parent); + case 178 /* SetAccessor */: + return visitSetAccessor(node, parent); + case 174 /* MethodDeclaration */: + return visitMethodDeclaration(node, parent); + case 175 /* ClassStaticBlockDeclaration */: + return visitEachChild(node, visitor, context); + case 240 /* SemicolonClassElement */: + return node; + case 181 /* IndexSignature */: + return; + default: + return Debug.failBadSyntaxKind(node); + } + } + function getObjectLiteralElementVisitor(parent) { + return (node) => saveStateAndInvoke(node, (n) => objectLiteralElementVisitorWorker(n, parent)); + } + function objectLiteralElementVisitorWorker(node, parent) { + switch (node.kind) { + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + return visitor(node); + case 177 /* GetAccessor */: + return visitGetAccessor(node, parent); + case 178 /* SetAccessor */: + return visitSetAccessor(node, parent); + case 174 /* MethodDeclaration */: + return visitMethodDeclaration(node, parent); + default: + return Debug.failBadSyntaxKind(node); + } + } + function decoratorElidingVisitor(node) { + return isDecorator(node) ? void 0 : visitor(node); + } + function modifierElidingVisitor(node) { + return isModifier(node) ? void 0 : visitor(node); + } + function modifierVisitor(node) { + if (isDecorator(node)) return void 0; + if (modifierToFlag(node.kind) & 28895 /* TypeScriptModifier */) { + return void 0; + } else if (currentNamespace && node.kind === 95 /* ExportKeyword */) { + return void 0; + } + return node; + } + function visitTypeScript(node) { + if (isStatement(node) && hasSyntacticModifier(node, 128 /* Ambient */)) { + return factory2.createNotEmittedStatement(node); + } + switch (node.kind) { + case 95 /* ExportKeyword */: + case 90 /* DefaultKeyword */: + return currentNamespace ? void 0 : node; + case 125 /* PublicKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 128 /* AbstractKeyword */: + case 164 /* OverrideKeyword */: + case 87 /* ConstKeyword */: + case 138 /* DeclareKeyword */: + case 148 /* ReadonlyKeyword */: + case 103 /* InKeyword */: + case 147 /* OutKeyword */: + case 188 /* ArrayType */: + case 189 /* TupleType */: + case 190 /* OptionalType */: + case 191 /* RestType */: + case 187 /* TypeLiteral */: + case 182 /* TypePredicate */: + case 168 /* TypeParameter */: + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 136 /* BooleanKeyword */: + case 154 /* StringKeyword */: + case 150 /* NumberKeyword */: + case 146 /* NeverKeyword */: + case 116 /* VoidKeyword */: + case 155 /* SymbolKeyword */: + case 185 /* ConstructorType */: + case 184 /* FunctionType */: + case 186 /* TypeQuery */: + case 183 /* TypeReference */: + case 192 /* UnionType */: + case 193 /* IntersectionType */: + case 194 /* ConditionalType */: + case 196 /* ParenthesizedType */: + case 197 /* ThisType */: + case 198 /* TypeOperator */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 201 /* LiteralType */: + case 181 /* IndexSignature */: + return void 0; + case 265 /* TypeAliasDeclaration */: + return factory2.createNotEmittedStatement(node); + case 270 /* NamespaceExportDeclaration */: + return void 0; + case 264 /* InterfaceDeclaration */: + return factory2.createNotEmittedStatement(node); + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 298 /* HeritageClause */: + return visitHeritageClause(node); + case 233 /* ExpressionWithTypeArguments */: + return visitExpressionWithTypeArguments(node); + case 210 /* ObjectLiteralExpression */: + return visitObjectLiteralExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 175 /* ClassStaticBlockDeclaration */: + return Debug.fail("Class and object literal elements must be visited with their respective visitors"); + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 218 /* FunctionExpression */: + return visitFunctionExpression(node); + case 219 /* ArrowFunction */: + return visitArrowFunction(node); + case 169 /* Parameter */: + return visitParameter(node); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression(node); + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + return visitAssertionExpression(node); + case 238 /* SatisfiesExpression */: + return visitSatisfiesExpression(node); + case 213 /* CallExpression */: + return visitCallExpression(node); + case 214 /* NewExpression */: + return visitNewExpression(node); + case 215 /* TaggedTemplateExpression */: + return visitTaggedTemplateExpression(node); + case 235 /* NonNullExpression */: + return visitNonNullExpression(node); + case 266 /* EnumDeclaration */: + return visitEnumDeclaration(node); + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 260 /* VariableDeclaration */: + return visitVariableDeclaration(node); + case 267 /* ModuleDeclaration */: + return visitModuleDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitImportEqualsDeclaration(node); + case 285 /* JsxSelfClosingElement */: + return visitJsxSelfClosingElement(node); + case 286 /* JsxOpeningElement */: + return visitJsxJsxOpeningElement(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitSourceFile(node) { + const alwaysStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") && !(isExternalModule(node) && moduleKind >= 5 /* ES2015 */) && !isJsonSourceFile(node); + return factory2.updateSourceFile( + node, + visitLexicalEnvironment( + node.statements, + sourceElementVisitor, + context, + /*start*/ + 0, + alwaysStrict + ) + ); + } + function visitObjectLiteralExpression(node) { + return factory2.updateObjectLiteralExpression( + node, + visitNodes2(node.properties, getObjectLiteralElementVisitor(node), isObjectLiteralElementLike) + ); + } + function getClassFacts(node) { + let facts = 0 /* None */; + if (some(getProperties( + node, + /*requireInitializer*/ + true, + /*isStatic*/ + true + ))) facts |= 1 /* HasStaticInitializedProperties */; + const extendsClauseElement = getEffectiveBaseTypeNode(node); + if (extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */) facts |= 64 /* IsDerivedClass */; + if (classOrConstructorParameterIsDecorated(legacyDecorators, node)) facts |= 2 /* HasClassOrConstructorParameterDecorators */; + if (childIsDecorated(legacyDecorators, node)) facts |= 4 /* HasMemberDecorators */; + if (isExportOfNamespace(node)) facts |= 8 /* IsExportOfNamespace */; + else if (isDefaultExternalModuleExport(node)) facts |= 32 /* IsDefaultExternalExport */; + else if (isNamedExternalModuleExport(node)) facts |= 16 /* IsNamedExternalExport */; + return facts; + } + function hasTypeScriptClassSyntax(node) { + return !!(node.transformFlags & 8192 /* ContainsTypeScriptClassSyntax */); + } + function isClassLikeDeclarationWithTypeScriptSyntax(node) { + return hasDecorators(node) || some(node.typeParameters) || some(node.heritageClauses, hasTypeScriptClassSyntax) || some(node.members, hasTypeScriptClassSyntax); + } + function visitClassDeclaration(node) { + const facts = getClassFacts(node); + const promoteToIIFE = languageVersion <= 1 /* ES5 */ && !!(facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */); + if (!isClassLikeDeclarationWithTypeScriptSyntax(node) && !classOrConstructorParameterIsDecorated(legacyDecorators, node) && !isExportOfNamespace(node)) { + return factory2.updateClassDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.name, + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + visitNodes2(node.members, getClassElementVisitor(node), isClassElement) + ); + } + if (promoteToIIFE) { + context.startLexicalEnvironment(); + } + const moveModifiers = promoteToIIFE || facts & 8 /* IsExportOfNamespace */; + let modifiers = moveModifiers ? visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, visitor, isModifierLike); + if (facts & 2 /* HasClassOrConstructorParameterDecorators */) { + modifiers = injectClassTypeMetadata(modifiers, node); + } + const needsName = moveModifiers && !node.name || facts & 4 /* HasMemberDecorators */ || facts & 1 /* HasStaticInitializedProperties */; + const name = needsName ? node.name ?? factory2.getGeneratedNameForNode(node) : node.name; + const classDeclaration = factory2.updateClassDeclaration( + node, + modifiers, + name, + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + transformClassMembers(node) + ); + let emitFlags = getEmitFlags(node); + if (facts & 1 /* HasStaticInitializedProperties */) { + emitFlags |= 64 /* NoTrailingSourceMap */; + } + setEmitFlags(classDeclaration, emitFlags); + let statement; + if (promoteToIIFE) { + const statements = [classDeclaration]; + const closingBraceLocation = createTokenRange(skipTrivia(currentSourceFile.text, node.members.end), 20 /* CloseBraceToken */); + const localName = factory2.getInternalName(node); + const outer = factory2.createPartiallyEmittedExpression(localName); + setTextRangeEnd(outer, closingBraceLocation.end); + setEmitFlags(outer, 3072 /* NoComments */); + const returnStatement = factory2.createReturnStatement(outer); + setTextRangePos(returnStatement, closingBraceLocation.pos); + setEmitFlags(returnStatement, 3072 /* NoComments */ | 768 /* NoTokenSourceMaps */); + statements.push(returnStatement); + insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment()); + const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setInternalEmitFlags(iife, 1 /* TypeScriptClassWrapper */); + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 1 /* Let */) + ); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, node); + setSourceMapRange(varStatement, moveRangePastDecorators(node)); + startOnNewLine(varStatement); + statement = varStatement; + } else { + statement = classDeclaration; + } + if (moveModifiers) { + if (facts & 8 /* IsExportOfNamespace */) { + return [ + statement, + createExportMemberAssignmentStatement(node) + ]; + } + if (facts & 32 /* IsDefaultExternalExport */) { + return [ + statement, + factory2.createExportDefault(factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + )) + ]; + } + if (facts & 16 /* IsNamedExternalExport */) { + return [ + statement, + factory2.createExternalModuleExport(factory2.getDeclarationName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + )) + ]; + } + } + return statement; + } + function visitClassExpression(node) { + let modifiers = visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike); + if (classOrConstructorParameterIsDecorated(legacyDecorators, node)) { + modifiers = injectClassTypeMetadata(modifiers, node); + } + return factory2.updateClassExpression( + node, + modifiers, + node.name, + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + transformClassMembers(node) + ); + } + function transformClassMembers(node) { + const members = visitNodes2(node.members, getClassElementVisitor(node), isClassElement); + let newMembers; + const constructor = getFirstConstructorWithBody(node); + const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); + if (parametersWithPropertyAssignments) { + for (const parameter of parametersWithPropertyAssignments) { + const parameterProperty = factory2.createPropertyDeclaration( + /*modifiers*/ + void 0, + parameter.name, + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + setOriginalNode(parameterProperty, parameter); + newMembers = append(newMembers, parameterProperty); + } + } + if (newMembers) { + newMembers = addRange(newMembers, members); + return setTextRange( + factory2.createNodeArray(newMembers), + /*location*/ + node.members + ); + } + return members; + } + function injectClassTypeMetadata(modifiers, node) { + const metadata = getTypeMetadata(node, node); + if (some(metadata)) { + const modifiersArray = []; + addRange(modifiersArray, takeWhile(modifiers, isExportOrDefaultModifier)); + addRange(modifiersArray, filter(modifiers, isDecorator)); + addRange(modifiersArray, metadata); + addRange(modifiersArray, filter(skipWhile(modifiers, isExportOrDefaultModifier), isModifier)); + modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers); + } + return modifiers; + } + function injectClassElementTypeMetadata(modifiers, node, container) { + if (isClassLike(container) && classElementOrClassElementParameterIsDecorated(legacyDecorators, node, container)) { + const metadata = getTypeMetadata(node, container); + if (some(metadata)) { + const modifiersArray = []; + addRange(modifiersArray, filter(modifiers, isDecorator)); + addRange(modifiersArray, metadata); + addRange(modifiersArray, filter(modifiers, isModifier)); + modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers); + } + } + return modifiers; + } + function getTypeMetadata(node, container) { + if (!legacyDecorators) return void 0; + return USE_NEW_TYPE_METADATA_FORMAT ? getNewTypeMetadata(node, container) : getOldTypeMetadata(node, container); + } + function getOldTypeMetadata(node, container) { + if (typeSerializer) { + let decorators; + if (shouldAddTypeMetadata(node)) { + const typeMetadata = emitHelpers().createMetadataHelper("design:type", typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node, container)); + decorators = append(decorators, factory2.createDecorator(typeMetadata)); + } + if (shouldAddParamTypesMetadata(node)) { + const paramTypesMetadata = emitHelpers().createMetadataHelper("design:paramtypes", typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container)); + decorators = append(decorators, factory2.createDecorator(paramTypesMetadata)); + } + if (shouldAddReturnTypeMetadata(node)) { + const returnTypeMetadata = emitHelpers().createMetadataHelper("design:returntype", typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node)); + decorators = append(decorators, factory2.createDecorator(returnTypeMetadata)); + } + return decorators; + } + } + function getNewTypeMetadata(node, container) { + if (typeSerializer) { + let properties; + if (shouldAddTypeMetadata(node)) { + const typeProperty = factory2.createPropertyAssignment("type", factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [], + /*type*/ + void 0, + factory2.createToken(39 /* EqualsGreaterThanToken */), + typeSerializer.serializeTypeOfNode({ currentLexicalScope, currentNameScope: container }, node, container) + )); + properties = append(properties, typeProperty); + } + if (shouldAddParamTypesMetadata(node)) { + const paramTypeProperty = factory2.createPropertyAssignment("paramTypes", factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [], + /*type*/ + void 0, + factory2.createToken(39 /* EqualsGreaterThanToken */), + typeSerializer.serializeParameterTypesOfNode({ currentLexicalScope, currentNameScope: container }, node, container) + )); + properties = append(properties, paramTypeProperty); + } + if (shouldAddReturnTypeMetadata(node)) { + const returnTypeProperty = factory2.createPropertyAssignment("returnType", factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + [], + /*type*/ + void 0, + factory2.createToken(39 /* EqualsGreaterThanToken */), + typeSerializer.serializeReturnTypeOfNode({ currentLexicalScope, currentNameScope: container }, node) + )); + properties = append(properties, returnTypeProperty); + } + if (properties) { + const typeInfoMetadata = emitHelpers().createMetadataHelper("design:typeinfo", factory2.createObjectLiteralExpression( + properties, + /*multiLine*/ + true + )); + return [factory2.createDecorator(typeInfoMetadata)]; + } + } + } + function shouldAddTypeMetadata(node) { + const kind = node.kind; + return kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 172 /* PropertyDeclaration */; + } + function shouldAddReturnTypeMetadata(node) { + return node.kind === 174 /* MethodDeclaration */; + } + function shouldAddParamTypesMetadata(node) { + switch (node.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return getFirstConstructorWithBody(node) !== void 0; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return true; + } + return false; + } + function getExpressionForPropertyName(member, generateNameForComputedPropertyName) { + const name = member.name; + if (isPrivateIdentifier(name)) { + return factory2.createIdentifier(""); + } else if (isComputedPropertyName(name)) { + return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression; + } else if (isIdentifier(name)) { + return factory2.createStringLiteral(idText(name)); + } else { + return factory2.cloneNode(name); + } + } + function visitPropertyNameOfClassElement(member) { + const name = member.name; + if (isComputedPropertyName(name) && (!hasStaticModifier(member) && currentClassHasParameterProperties || hasDecorators(member) && legacyDecorators)) { + const expression = visitNode(name.expression, visitor, isExpression); + Debug.assert(expression); + const innerExpression = skipPartiallyEmittedExpressions(expression); + if (!isSimpleInlineableExpression(innerExpression)) { + const generatedName = factory2.getGeneratedNameForNode(name); + hoistVariableDeclaration(generatedName); + return factory2.updateComputedPropertyName(name, factory2.createAssignment(generatedName, expression)); + } + } + return Debug.checkDefined(visitNode(name, visitor, isPropertyName)); + } + function visitHeritageClause(node) { + if (node.token === 119 /* ImplementsKeyword */) { + return void 0; + } + return visitEachChild(node, visitor, context); + } + function visitExpressionWithTypeArguments(node) { + return factory2.updateExpressionWithTypeArguments( + node, + Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression)), + /*typeArguments*/ + void 0 + ); + } + function shouldEmitFunctionLikeDeclaration(node) { + return !nodeIsMissing(node.body); + } + function visitPropertyDeclaration(node, parent) { + const isAmbient = node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 64 /* Abstract */); + if (isAmbient && !(legacyDecorators && hasDecorators(node))) { + return void 0; + } + let modifiers = isClassLike(parent) ? !isAmbient ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, modifierElidingVisitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); + modifiers = injectClassElementTypeMetadata(modifiers, node, parent); + if (isAmbient) { + return factory2.updatePropertyDeclaration( + node, + concatenate(modifiers, factory2.createModifiersFromModifierFlags(128 /* Ambient */)), + Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + } + return factory2.updatePropertyDeclaration( + node, + modifiers, + visitPropertyNameOfClassElement(node), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + } + function visitConstructor(node) { + if (!shouldEmitFunctionLikeDeclaration(node)) { + return void 0; + } + return factory2.updateConstructorDeclaration( + node, + /*modifiers*/ + void 0, + visitParameterList(node.parameters, visitor, context), + transformConstructorBody(node.body, node) + ); + } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + function transformConstructorBody(body, constructor) { + const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor)); + if (!some(parametersWithPropertyAssignments)) { + return visitFunctionBody(body, visitor, context); + } + let statements = []; + resumeLexicalEnvironment(); + const prologueStatementCount = factory2.copyPrologue( + body.statements, + statements, + /*ensureUseStrict*/ + false, + visitor + ); + const superPath = findSuperStatementIndexPath(body.statements, prologueStatementCount); + const parameterPropertyAssignments = mapDefined(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment); + if (superPath.length) { + transformConstructorBodyWorker( + statements, + body.statements, + prologueStatementCount, + superPath, + /*superPathDepth*/ + 0, + parameterPropertyAssignments + ); + } else { + addRange(statements, parameterPropertyAssignments); + addRange(statements, visitNodes2(body.statements, visitor, isStatement, prologueStatementCount)); + } + statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); + const block = factory2.createBlock( + setTextRange(factory2.createNodeArray(statements), body.statements), + /*multiLine*/ + true + ); + setTextRange( + block, + /*location*/ + body + ); + setOriginalNode(block, body); + return block; + } + function transformParameterWithPropertyAssignment(node) { + const name = node.name; + if (!isIdentifier(name)) { + return void 0; + } + const propertyName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); + setEmitFlags(propertyName, 3072 /* NoComments */ | 96 /* NoSourceMap */); + const localName = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); + setEmitFlags(localName, 3072 /* NoComments */); + return startOnNewLine( + removeAllComments( + setTextRange( + setOriginalNode( + factory2.createExpressionStatement( + factory2.createAssignment( + setTextRange( + factory2.createPropertyAccessExpression( + factory2.createThis(), + propertyName + ), + node.name + ), + localName + ) + ), + node + ), + moveRangePos(node, -1) + ) + ) + ); + } + function visitMethodDeclaration(node, parent) { + if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { + return node; + } + if (!shouldEmitFunctionLikeDeclaration(node)) { + return void 0; + } + let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); + modifiers = injectClassElementTypeMetadata(modifiers, node, parent); + return factory2.updateMethodDeclaration( + node, + modifiers, + node.asteriskToken, + visitPropertyNameOfClassElement(node), + /*questionToken*/ + void 0, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + visitFunctionBody(node.body, visitor, context) + ); + } + function shouldEmitAccessorDeclaration(node) { + return !(nodeIsMissing(node.body) && hasSyntacticModifier(node, 64 /* Abstract */)); + } + function visitGetAccessor(node, parent) { + if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { + return node; + } + if (!shouldEmitAccessorDeclaration(node)) { + return void 0; + } + let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); + modifiers = injectClassElementTypeMetadata(modifiers, node, parent); + return factory2.updateGetAccessorDeclaration( + node, + modifiers, + visitPropertyNameOfClassElement(node), + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) + ); + } + function visitSetAccessor(node, parent) { + if (!(node.transformFlags & 1 /* ContainsTypeScript */)) { + return node; + } + if (!shouldEmitAccessorDeclaration(node)) { + return void 0; + } + let modifiers = isClassLike(parent) ? visitNodes2(node.modifiers, visitor, isModifierLike) : visitNodes2(node.modifiers, decoratorElidingVisitor, isModifierLike); + modifiers = injectClassElementTypeMetadata(modifiers, node, parent); + return factory2.updateSetAccessorDeclaration( + node, + modifiers, + visitPropertyNameOfClassElement(node), + visitParameterList(node.parameters, visitor, context), + visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) + ); + } + function visitFunctionDeclaration(node) { + if (!shouldEmitFunctionLikeDeclaration(node)) { + return factory2.createNotEmittedStatement(node); + } + const updated = factory2.updateFunctionDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) + ); + if (isExportOfNamespace(node)) { + const statements = [updated]; + addExportMemberAssignment(statements, node); + return statements; + } + return updated; + } + function visitFunctionExpression(node) { + if (!shouldEmitFunctionLikeDeclaration(node)) { + return factory2.createOmittedExpression(); + } + const updated = factory2.updateFunctionExpression( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + visitFunctionBody(node.body, visitor, context) || factory2.createBlock([]) + ); + return updated; + } + function visitArrowFunction(node) { + const updated = factory2.updateArrowFunction( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + node.equalsGreaterThanToken, + visitFunctionBody(node.body, visitor, context) + ); + return updated; + } + function visitParameter(node) { + if (parameterIsThisKeyword(node)) { + return void 0; + } + const updated = factory2.updateParameterDeclaration( + node, + visitNodes2(node.modifiers, (node2) => isDecorator(node2) ? visitor(node2) : void 0, isModifierLike), + node.dotDotDotToken, + Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + if (updated !== node) { + setCommentRange(updated, node); + setTextRange(updated, moveRangePastModifiers(node)); + setSourceMapRange(updated, moveRangePastModifiers(node)); + setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); + } + return updated; + } + function visitVariableStatement(node) { + if (isExportOfNamespace(node)) { + const variables = getInitializedVariables(node.declarationList); + if (variables.length === 0) { + return void 0; + } + return setTextRange( + factory2.createExpressionStatement( + factory2.inlineExpressions( + map(variables, transformInitializedVariable) + ) + ), + node + ); + } else { + return visitEachChild(node, visitor, context); + } + } + function transformInitializedVariable(node) { + const name = node.name; + if (isBindingPattern(name)) { + return flattenDestructuringAssignment( + node, + visitor, + context, + 0 /* All */, + /*needsValue*/ + false, + createNamespaceExportExpression + ); + } else { + return setTextRange( + factory2.createAssignment( + getNamespaceMemberNameWithSourceMapsAndWithoutComments(name), + Debug.checkDefined(visitNode(node.initializer, visitor, isExpression)) + ), + /*location*/ + node + ); + } + } + function visitVariableDeclaration(node) { + const updated = factory2.updateVariableDeclaration( + node, + Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + if (node.type) { + setTypeNode(updated.name, node.type); + } + return updated; + } + function visitParenthesizedExpression(node) { + const innerExpression = skipOuterExpressions(node.expression, ~6 /* Assertions */); + if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) { + const expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + return factory2.createPartiallyEmittedExpression(expression, node); + } + return visitEachChild(node, visitor, context); + } + function visitAssertionExpression(node) { + const expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + return factory2.createPartiallyEmittedExpression(expression, node); + } + function visitNonNullExpression(node) { + const expression = visitNode(node.expression, visitor, isLeftHandSideExpression); + Debug.assert(expression); + return factory2.createPartiallyEmittedExpression(expression, node); + } + function visitSatisfiesExpression(node) { + const expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + return factory2.createPartiallyEmittedExpression(expression, node); + } + function visitCallExpression(node) { + return factory2.updateCallExpression( + node, + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + /*typeArguments*/ + void 0, + visitNodes2(node.arguments, visitor, isExpression) + ); + } + function visitNewExpression(node) { + return factory2.updateNewExpression( + node, + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + /*typeArguments*/ + void 0, + visitNodes2(node.arguments, visitor, isExpression) + ); + } + function visitTaggedTemplateExpression(node) { + return factory2.updateTaggedTemplateExpression( + node, + Debug.checkDefined(visitNode(node.tag, visitor, isExpression)), + /*typeArguments*/ + void 0, + Debug.checkDefined(visitNode(node.template, visitor, isTemplateLiteral)) + ); + } + function visitJsxSelfClosingElement(node) { + return factory2.updateJsxSelfClosingElement( + node, + Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), + /*typeArguments*/ + void 0, + Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)) + ); + } + function visitJsxJsxOpeningElement(node) { + return factory2.updateJsxOpeningElement( + node, + Debug.checkDefined(visitNode(node.tagName, visitor, isJsxTagNameExpression)), + /*typeArguments*/ + void 0, + Debug.checkDefined(visitNode(node.attributes, visitor, isJsxAttributes)) + ); + } + function shouldEmitEnumDeclaration(node) { + return !isEnumConst(node) || shouldPreserveConstEnums(compilerOptions); + } + function visitEnumDeclaration(node) { + if (!shouldEmitEnumDeclaration(node)) { + return factory2.createNotEmittedStatement(node); + } + const statements = []; + let emitFlags = 4 /* AdviseOnEmitNode */; + const varAdded = addVarForEnumOrModuleDeclaration(statements, node); + if (varAdded) { + if (moduleKind !== 4 /* System */ || currentLexicalScope !== currentSourceFile) { + emitFlags |= 1024 /* NoLeadingComments */; + } + } + const parameterName = getNamespaceParameterName(node); + const containerName = getNamespaceContainerName(node); + const exportName = isExportOfNamespace(node) ? factory2.getExternalModuleOrNamespaceExportName( + currentNamespaceContainerName, + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ) : factory2.getDeclarationName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + let moduleArg = factory2.createLogicalOr( + exportName, + factory2.createAssignment( + exportName, + factory2.createObjectLiteralExpression() + ) + ); + if (isExportOfNamespace(node)) { + const localName = factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + moduleArg = factory2.createAssignment(localName, moduleArg); + } + const enumStatement = factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + parameterName + )], + /*type*/ + void 0, + transformEnumBody(node, containerName) + ), + /*typeArguments*/ + void 0, + [moduleArg] + ) + ); + setOriginalNode(enumStatement, node); + if (varAdded) { + setSyntheticLeadingComments(enumStatement, void 0); + setSyntheticTrailingComments(enumStatement, void 0); + } + setTextRange(enumStatement, node); + addEmitFlags(enumStatement, emitFlags); + statements.push(enumStatement); + return statements; + } + function transformEnumBody(node, localName) { + const savedCurrentNamespaceLocalName = currentNamespaceContainerName; + currentNamespaceContainerName = localName; + const statements = []; + startLexicalEnvironment(); + const members = map(node.members, transformEnumMember); + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + addRange(statements, members); + currentNamespaceContainerName = savedCurrentNamespaceLocalName; + return factory2.createBlock( + setTextRange( + factory2.createNodeArray(statements), + /*location*/ + node.members + ), + /*multiLine*/ + true + ); + } + function transformEnumMember(member) { + const name = getExpressionForPropertyName( + member, + /*generateNameForComputedPropertyName*/ + false + ); + const evaluated = resolver.getEnumMemberValue(member); + const valueExpression = transformEnumMemberDeclarationValue(member, evaluated == null ? void 0 : evaluated.value); + const innerAssignment = factory2.createAssignment( + factory2.createElementAccessExpression( + currentNamespaceContainerName, + name + ), + valueExpression + ); + const outerAssignment = typeof (evaluated == null ? void 0 : evaluated.value) === "string" || (evaluated == null ? void 0 : evaluated.isSyntacticallyString) ? innerAssignment : factory2.createAssignment( + factory2.createElementAccessExpression( + currentNamespaceContainerName, + innerAssignment + ), + name + ); + return setTextRange( + factory2.createExpressionStatement( + setTextRange( + outerAssignment, + member + ) + ), + member + ); + } + function transformEnumMemberDeclarationValue(member, constantValue) { + if (constantValue !== void 0) { + return typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constantValue)) : factory2.createNumericLiteral(constantValue); + } else { + enableSubstitutionForNonQualifiedEnumMembers(); + if (member.initializer) { + return Debug.checkDefined(visitNode(member.initializer, visitor, isExpression)); + } else { + return factory2.createVoidZero(); + } + } + } + function shouldEmitModuleDeclaration(nodeIn) { + const node = getParseTreeNode(nodeIn, isModuleDeclaration); + if (!node) { + return true; + } + return isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions)); + } + function recordEmittedDeclarationInScope(node) { + if (!currentScopeFirstDeclarationsOfName) { + currentScopeFirstDeclarationsOfName = /* @__PURE__ */ new Map(); + } + const name = declaredNameInScope(node); + if (!currentScopeFirstDeclarationsOfName.has(name)) { + currentScopeFirstDeclarationsOfName.set(name, node); + } + } + function isFirstEmittedDeclarationInScope(node) { + if (currentScopeFirstDeclarationsOfName) { + const name = declaredNameInScope(node); + return currentScopeFirstDeclarationsOfName.get(name) === node; + } + return true; + } + function declaredNameInScope(node) { + Debug.assertNode(node.name, isIdentifier); + return node.name.escapedText; + } + function addVarForEnumOrModuleDeclaration(statements, node) { + const varDecl = factory2.createVariableDeclaration(factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + )); + const varFlags = currentLexicalScope.kind === 307 /* SourceFile */ ? 0 /* None */ : 1 /* Let */; + const statement = factory2.createVariableStatement( + visitNodes2(node.modifiers, modifierVisitor, isModifier), + factory2.createVariableDeclarationList([varDecl], varFlags) + ); + setOriginalNode(varDecl, node); + setSyntheticLeadingComments(varDecl, void 0); + setSyntheticTrailingComments(varDecl, void 0); + setOriginalNode(statement, node); + recordEmittedDeclarationInScope(node); + if (isFirstEmittedDeclarationInScope(node)) { + if (node.kind === 266 /* EnumDeclaration */) { + setSourceMapRange(statement.declarationList, node); + } else { + setSourceMapRange(statement, node); + } + setCommentRange(statement, node); + addEmitFlags(statement, 2048 /* NoTrailingComments */); + statements.push(statement); + return true; + } + return false; + } + function visitModuleDeclaration(node) { + if (!shouldEmitModuleDeclaration(node)) { + return factory2.createNotEmittedStatement(node); + } + Debug.assertNode(node.name, isIdentifier, "A TypeScript namespace should have an Identifier name."); + enableSubstitutionForNamespaceExports(); + const statements = []; + let emitFlags = 4 /* AdviseOnEmitNode */; + const varAdded = addVarForEnumOrModuleDeclaration(statements, node); + if (varAdded) { + if (moduleKind !== 4 /* System */ || currentLexicalScope !== currentSourceFile) { + emitFlags |= 1024 /* NoLeadingComments */; + } + } + const parameterName = getNamespaceParameterName(node); + const containerName = getNamespaceContainerName(node); + const exportName = isExportOfNamespace(node) ? factory2.getExternalModuleOrNamespaceExportName( + currentNamespaceContainerName, + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ) : factory2.getDeclarationName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + let moduleArg = factory2.createLogicalOr( + exportName, + factory2.createAssignment( + exportName, + factory2.createObjectLiteralExpression() + ) + ); + if (isExportOfNamespace(node)) { + const localName = factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + moduleArg = factory2.createAssignment(localName, moduleArg); + } + const moduleStatement = factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + parameterName + )], + /*type*/ + void 0, + transformModuleBody(node, containerName) + ), + /*typeArguments*/ + void 0, + [moduleArg] + ) + ); + setOriginalNode(moduleStatement, node); + if (varAdded) { + setSyntheticLeadingComments(moduleStatement, void 0); + setSyntheticTrailingComments(moduleStatement, void 0); + } + setTextRange(moduleStatement, node); + addEmitFlags(moduleStatement, emitFlags); + statements.push(moduleStatement); + return statements; + } + function transformModuleBody(node, namespaceLocalName) { + const savedCurrentNamespaceContainerName = currentNamespaceContainerName; + const savedCurrentNamespace = currentNamespace; + const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; + currentNamespaceContainerName = namespaceLocalName; + currentNamespace = node; + currentScopeFirstDeclarationsOfName = void 0; + const statements = []; + startLexicalEnvironment(); + let statementsLocation; + let blockLocation; + if (node.body) { + if (node.body.kind === 268 /* ModuleBlock */) { + saveStateAndInvoke(node.body, (body) => addRange(statements, visitNodes2(body.statements, namespaceElementVisitor, isStatement))); + statementsLocation = node.body.statements; + blockLocation = node.body; + } else { + const result = visitModuleDeclaration(node.body); + if (result) { + if (isArray(result)) { + addRange(statements, result); + } else { + statements.push(result); + } + } + const moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body; + statementsLocation = moveRangePos(moduleBlock.statements, -1); + } + } + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + currentNamespaceContainerName = savedCurrentNamespaceContainerName; + currentNamespace = savedCurrentNamespace; + currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; + const block = factory2.createBlock( + setTextRange( + factory2.createNodeArray(statements), + /*location*/ + statementsLocation + ), + /*multiLine*/ + true + ); + setTextRange(block, blockLocation); + if (!node.body || node.body.kind !== 268 /* ModuleBlock */) { + setEmitFlags(block, getEmitFlags(block) | 3072 /* NoComments */); + } + return block; + } + function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) { + if (moduleDeclaration.body.kind === 267 /* ModuleDeclaration */) { + const recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body); + return recursiveInnerModule || moduleDeclaration.body; + } + } + function visitImportDeclaration(node) { + if (!node.importClause) { + return node; + } + if (node.importClause.isTypeOnly) { + return void 0; + } + const importClause = visitNode(node.importClause, visitImportClause, isImportClause); + return importClause ? factory2.updateImportDeclaration( + node, + /*modifiers*/ + void 0, + importClause, + node.moduleSpecifier, + node.attributes + ) : void 0; + } + function visitImportClause(node) { + Debug.assert(!node.isTypeOnly); + const name = shouldEmitAliasDeclaration(node) ? node.name : void 0; + const namedBindings = visitNode(node.namedBindings, visitNamedImportBindings, isNamedImportBindings); + return name || namedBindings ? factory2.updateImportClause( + node, + /*isTypeOnly*/ + false, + name, + namedBindings + ) : void 0; + } + function visitNamedImportBindings(node) { + if (node.kind === 274 /* NamespaceImport */) { + return shouldEmitAliasDeclaration(node) ? node : void 0; + } else { + const allowEmpty = compilerOptions.verbatimModuleSyntax; + const elements = visitNodes2(node.elements, visitImportSpecifier, isImportSpecifier); + return allowEmpty || some(elements) ? factory2.updateNamedImports(node, elements) : void 0; + } + } + function visitImportSpecifier(node) { + return !node.isTypeOnly && shouldEmitAliasDeclaration(node) ? node : void 0; + } + function visitExportAssignment(node) { + return compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node) ? visitEachChild(node, visitor, context) : void 0; + } + function visitExportDeclaration(node) { + if (node.isTypeOnly) { + return void 0; + } + if (!node.exportClause || isNamespaceExport(node.exportClause)) { + return node; + } + const allowEmpty = !!compilerOptions.verbatimModuleSyntax; + const exportClause = visitNode( + node.exportClause, + (bindings) => visitNamedExportBindings(bindings, allowEmpty), + isNamedExportBindings + ); + return exportClause ? factory2.updateExportDeclaration( + node, + /*modifiers*/ + void 0, + node.isTypeOnly, + exportClause, + node.moduleSpecifier, + node.attributes + ) : void 0; + } + function visitNamedExports(node, allowEmpty) { + const elements = visitNodes2(node.elements, visitExportSpecifier, isExportSpecifier); + return allowEmpty || some(elements) ? factory2.updateNamedExports(node, elements) : void 0; + } + function visitNamespaceExports(node) { + return factory2.updateNamespaceExport(node, Debug.checkDefined(visitNode(node.name, visitor, isIdentifier))); + } + function visitNamedExportBindings(node, allowEmpty) { + return isNamespaceExport(node) ? visitNamespaceExports(node) : visitNamedExports(node, allowEmpty); + } + function visitExportSpecifier(node) { + return !node.isTypeOnly && (compilerOptions.verbatimModuleSyntax || resolver.isValueAliasDeclaration(node)) ? node : void 0; + } + function shouldEmitImportEqualsDeclaration(node) { + return shouldEmitAliasDeclaration(node) || !isExternalModule(currentSourceFile) && resolver.isTopLevelValueImportEqualsWithEntityName(node); + } + function visitImportEqualsDeclaration(node) { + if (node.isTypeOnly) { + return void 0; + } + if (isExternalModuleImportEqualsDeclaration(node)) { + const isReferenced = shouldEmitAliasDeclaration(node); + return isReferenced ? visitEachChild(node, visitor, context) : void 0; + } + if (!shouldEmitImportEqualsDeclaration(node)) { + return void 0; + } + const moduleReference = createExpressionFromEntityName(factory2, node.moduleReference); + setEmitFlags(moduleReference, 3072 /* NoComments */ | 4096 /* NoNestedComments */); + if (isNamedExternalModuleExport(node) || !isExportOfNamespace(node)) { + return setOriginalNode( + setTextRange( + factory2.createVariableStatement( + visitNodes2(node.modifiers, modifierVisitor, isModifier), + factory2.createVariableDeclarationList([ + setOriginalNode( + factory2.createVariableDeclaration( + node.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + moduleReference + ), + node + ) + ]) + ), + node + ), + node + ); + } else { + return setOriginalNode( + createNamespaceExport( + node.name, + moduleReference, + node + ), + node + ); + } + } + function isExportOfNamespace(node) { + return currentNamespace !== void 0 && hasSyntacticModifier(node, 32 /* Export */); + } + function isExternalModuleExport(node) { + return currentNamespace === void 0 && hasSyntacticModifier(node, 32 /* Export */); + } + function isNamedExternalModuleExport(node) { + return isExternalModuleExport(node) && !hasSyntacticModifier(node, 2048 /* Default */); + } + function isDefaultExternalModuleExport(node) { + return isExternalModuleExport(node) && hasSyntacticModifier(node, 2048 /* Default */); + } + function createExportMemberAssignmentStatement(node) { + const expression = factory2.createAssignment( + factory2.getExternalModuleOrNamespaceExportName( + currentNamespaceContainerName, + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ), + factory2.getLocalName(node) + ); + setSourceMapRange(expression, createRange(node.name ? node.name.pos : node.pos, node.end)); + const statement = factory2.createExpressionStatement(expression); + setSourceMapRange(statement, createRange(-1, node.end)); + return statement; + } + function addExportMemberAssignment(statements, node) { + statements.push(createExportMemberAssignmentStatement(node)); + } + function createNamespaceExport(exportName, exportValue, location) { + return setTextRange( + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.getNamespaceMemberName( + currentNamespaceContainerName, + exportName, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ), + exportValue + ) + ), + location + ); + } + function createNamespaceExportExpression(exportName, exportValue, location) { + return setTextRange(factory2.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(exportName), exportValue), location); + } + function getNamespaceMemberNameWithSourceMapsAndWithoutComments(name) { + return factory2.getNamespaceMemberName( + currentNamespaceContainerName, + name, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + } + function getNamespaceParameterName(node) { + const name = factory2.getGeneratedNameForNode(node); + setSourceMapRange(name, node.name); + return name; + } + function getNamespaceContainerName(node) { + return factory2.getGeneratedNameForNode(node); + } + function enableSubstitutionForNonQualifiedEnumMembers() { + if ((enabledSubstitutions & 8 /* NonQualifiedEnumMembers */) === 0) { + enabledSubstitutions |= 8 /* NonQualifiedEnumMembers */; + context.enableSubstitution(80 /* Identifier */); + } + } + function enableSubstitutionForNamespaceExports() { + if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) { + enabledSubstitutions |= 2 /* NamespaceExports */; + context.enableSubstitution(80 /* Identifier */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(267 /* ModuleDeclaration */); + } + } + function isTransformedModuleDeclaration(node) { + return getOriginalNode(node).kind === 267 /* ModuleDeclaration */; + } + function isTransformedEnumDeclaration(node) { + return getOriginalNode(node).kind === 266 /* EnumDeclaration */; + } + function onEmitNode(hint, node, emitCallback) { + const savedApplicableSubstitutions = applicableSubstitutions; + const savedCurrentSourceFile = currentSourceFile; + if (isSourceFile(node)) { + currentSourceFile = node; + } + if (enabledSubstitutions & 2 /* NamespaceExports */ && isTransformedModuleDeclaration(node)) { + applicableSubstitutions |= 2 /* NamespaceExports */; + } + if (enabledSubstitutions & 8 /* NonQualifiedEnumMembers */ && isTransformedEnumDeclaration(node)) { + applicableSubstitutions |= 8 /* NonQualifiedEnumMembers */; + } + previousOnEmitNode(hint, node, emitCallback); + applicableSubstitutions = savedApplicableSubstitutions; + currentSourceFile = savedCurrentSourceFile; + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } else if (isShorthandPropertyAssignment(node)) { + return substituteShorthandPropertyAssignment(node); + } + return node; + } + function substituteShorthandPropertyAssignment(node) { + if (enabledSubstitutions & 2 /* NamespaceExports */) { + const name = node.name; + const exportedName = trySubstituteNamespaceExportedName(name); + if (exportedName) { + if (node.objectAssignmentInitializer) { + const initializer = factory2.createAssignment(exportedName, node.objectAssignmentInitializer); + return setTextRange(factory2.createPropertyAssignment(name, initializer), node); + } + return setTextRange(factory2.createPropertyAssignment(name, exportedName), node); + } + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + case 211 /* PropertyAccessExpression */: + return substitutePropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return substituteElementAccessExpression(node); + } + return node; + } + function substituteExpressionIdentifier(node) { + return trySubstituteNamespaceExportedName(node) || node; + } + function trySubstituteNamespaceExportedName(node) { + if (enabledSubstitutions & applicableSubstitutions && !isGeneratedIdentifier(node) && !isLocalName(node)) { + const container = resolver.getReferencedExportContainer( + node, + /*prefixLocals*/ + false + ); + if (container && container.kind !== 307 /* SourceFile */) { + const substitute = applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 267 /* ModuleDeclaration */ || applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 266 /* EnumDeclaration */; + if (substitute) { + return setTextRange( + factory2.createPropertyAccessExpression(factory2.getGeneratedNameForNode(container), node), + /*location*/ + node + ); + } + } + } + return void 0; + } + function substitutePropertyAccessExpression(node) { + return substituteConstantValue(node); + } + function substituteElementAccessExpression(node) { + return substituteConstantValue(node); + } + function safeMultiLineComment(value) { + return value.replace(/\*\//g, "*_/"); + } + function substituteConstantValue(node) { + const constantValue = tryGetConstEnumValue(node); + if (constantValue !== void 0) { + setConstantValue(node, constantValue); + const substitute = typeof constantValue === "string" ? factory2.createStringLiteral(constantValue) : constantValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constantValue)) : factory2.createNumericLiteral(constantValue); + if (!compilerOptions.removeComments) { + const originalNode = getOriginalNode(node, isAccessExpression); + addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, ` ${safeMultiLineComment(getTextOfNode(originalNode))} `); + } + return substitute; + } + return node; + } + function tryGetConstEnumValue(node) { + if (getIsolatedModules(compilerOptions)) { + return void 0; + } + return isPropertyAccessExpression(node) || isElementAccessExpression(node) ? resolver.getConstantValue(node) : void 0; + } + function shouldEmitAliasDeclaration(node) { + return compilerOptions.verbatimModuleSyntax || isInJSFile(node) || resolver.isReferencedAliasDeclaration(node); + } +} + +// src/compiler/transformers/classFields.ts +function transformClassFields(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + endLexicalEnvironment, + startLexicalEnvironment, + resumeLexicalEnvironment, + addBlockScopedVariable + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + const legacyDecorators = !!compilerOptions.experimentalDecorators; + const shouldTransformInitializersUsingSet = !useDefineForClassFields; + const shouldTransformInitializersUsingDefine = useDefineForClassFields && languageVersion < 9 /* ES2022 */; + const shouldTransformInitializers = shouldTransformInitializersUsingSet || shouldTransformInitializersUsingDefine; + const shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* ES2022 */; + const shouldTransformAutoAccessors = languageVersion < 99 /* ESNext */ ? -1 /* True */ : !useDefineForClassFields ? 3 /* Maybe */ : 0 /* False */; + const shouldTransformThisInStaticInitializers = languageVersion < 9 /* ES2022 */; + const shouldTransformSuperInStaticInitializers = shouldTransformThisInStaticInitializers && languageVersion >= 2 /* ES2015 */; + const shouldTransformAnything = shouldTransformInitializers || shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformAutoAccessors === -1 /* True */; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onSubstituteNode = onSubstituteNode; + const previousOnEmitNode = context.onEmitNode; + context.onEmitNode = onEmitNode; + let shouldTransformPrivateStaticElementsInFile = false; + let enabledSubstitutions; + let classAliases; + let pendingExpressions; + let pendingStatements; + let lexicalEnvironment; + const lexicalEnvironmentMap = /* @__PURE__ */ new Map(); + const noSubstitution = /* @__PURE__ */ new Set(); + let currentClassContainer; + let currentClassElement; + let shouldSubstituteThisWithClassThis = false; + let previousShouldSubstituteThisWithClassThis = false; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + lexicalEnvironment = void 0; + shouldTransformPrivateStaticElementsInFile = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); + if (!shouldTransformAnything && !shouldTransformPrivateStaticElementsInFile) { + return node; + } + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + return visited; + } + function modifierVisitor(node) { + switch (node.kind) { + case 129 /* AccessorKeyword */: + return shouldTransformAutoAccessorsInCurrentClass() ? void 0 : node; + default: + return tryCast(node, isModifier); + } + } + function visitor(node) { + if (!(node.transformFlags & 16777216 /* ContainsClassFields */) && !(node.transformFlags & 134234112 /* ContainsLexicalThisOrSuper */)) { + return node; + } + switch (node.kind) { + case 129 /* AccessorKeyword */: + return Debug.fail("Use `modifierVisitor` instead."); + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 175 /* ClassStaticBlockDeclaration */: + case 172 /* PropertyDeclaration */: + return Debug.fail("Use `classElementVisitor` instead."); + case 303 /* PropertyAssignment */: + return visitPropertyAssignment(node); + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 260 /* VariableDeclaration */: + return visitVariableDeclaration(node); + case 169 /* Parameter */: + return visitParameterDeclaration(node); + case 208 /* BindingElement */: + return visitBindingElement(node); + case 277 /* ExportAssignment */: + return visitExportAssignment(node); + case 81 /* PrivateIdentifier */: + return visitPrivateIdentifier(node); + case 211 /* PropertyAccessExpression */: + return visitPropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return visitElementAccessExpression(node); + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPreOrPostfixUnaryExpression( + node, + /*discarded*/ + false + ); + case 226 /* BinaryExpression */: + return visitBinaryExpression( + node, + /*discarded*/ + false + ); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression( + node, + /*discarded*/ + false + ); + case 213 /* CallExpression */: + return visitCallExpression(node); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 215 /* TaggedTemplateExpression */: + return visitTaggedTemplateExpression(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + return setCurrentClassElementAnd( + /*classElement*/ + void 0, + fallbackVisitor, + node + ); + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: { + return setCurrentClassElementAnd( + node, + fallbackVisitor, + node + ); + } + default: + return fallbackVisitor(node); + } + } + function fallbackVisitor(node) { + return visitEachChild(node, visitor, context); + } + function discardedValueVisitor(node) { + switch (node.kind) { + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPreOrPostfixUnaryExpression( + node, + /*discarded*/ + true + ); + case 226 /* BinaryExpression */: + return visitBinaryExpression( + node, + /*discarded*/ + true + ); + case 355 /* CommaListExpression */: + return visitCommaListExpression( + node, + /*discarded*/ + true + ); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression( + node, + /*discarded*/ + true + ); + default: + return visitor(node); + } + } + function heritageClauseVisitor(node) { + switch (node.kind) { + case 298 /* HeritageClause */: + return visitEachChild(node, heritageClauseVisitor, context); + case 233 /* ExpressionWithTypeArguments */: + return visitExpressionWithTypeArgumentsInHeritageClause(node); + default: + return visitor(node); + } + } + function assignmentTargetVisitor(node) { + switch (node.kind) { + case 210 /* ObjectLiteralExpression */: + case 209 /* ArrayLiteralExpression */: + return visitAssignmentPattern(node); + default: + return visitor(node); + } + } + function classElementVisitor(node) { + switch (node.kind) { + case 176 /* Constructor */: + return setCurrentClassElementAnd( + node, + visitConstructorDeclaration, + node + ); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + return setCurrentClassElementAnd( + node, + visitMethodOrAccessorDeclaration, + node + ); + case 172 /* PropertyDeclaration */: + return setCurrentClassElementAnd( + node, + visitPropertyDeclaration, + node + ); + case 175 /* ClassStaticBlockDeclaration */: + return setCurrentClassElementAnd( + node, + visitClassStaticBlockDeclaration, + node + ); + case 167 /* ComputedPropertyName */: + return visitComputedPropertyName(node); + case 240 /* SemicolonClassElement */: + return node; + default: + return isModifierLike(node) ? modifierVisitor(node) : visitor(node); + } + } + function propertyNameVisitor(node) { + switch (node.kind) { + case 167 /* ComputedPropertyName */: + return visitComputedPropertyName(node); + default: + return visitor(node); + } + } + function accessorFieldResultVisitor(node) { + switch (node.kind) { + case 172 /* PropertyDeclaration */: + return transformFieldInitializer(node); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return classElementVisitor(node); + default: + Debug.assertMissingNode(node, "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration"); + break; + } + } + function visitPrivateIdentifier(node) { + if (!shouldTransformPrivateElementsOrClassStaticBlocks) { + return node; + } + if (isStatement(node.parent)) { + return node; + } + return setOriginalNode(factory2.createIdentifier(""), node); + } + function transformPrivateIdentifierInInExpression(node) { + const info = accessPrivateIdentifier2(node.left); + if (info) { + const receiver = visitNode(node.right, visitor, isExpression); + return setOriginalNode( + emitHelpers().createClassPrivateFieldInHelper(info.brandCheckIdentifier, receiver), + node + ); + } + return visitEachChild(node, visitor, context); + } + function visitPropertyAssignment(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return visitEachChild(node, visitor, context); + } + function visitVariableStatement(node) { + const savedPendingStatements = pendingStatements; + pendingStatements = []; + const visitedNode = visitEachChild(node, visitor, context); + const statement = some(pendingStatements) ? [visitedNode, ...pendingStatements] : visitedNode; + pendingStatements = savedPendingStatements; + return statement; + } + function visitVariableDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return visitEachChild(node, visitor, context); + } + function visitParameterDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return visitEachChild(node, visitor, context); + } + function visitBindingElement(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return visitEachChild(node, visitor, context); + } + function visitExportAssignment(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation( + context, + node, + /*ignoreEmptyStringLiteral*/ + true, + node.isExportEquals ? "" : "default" + ); + } + return visitEachChild(node, visitor, context); + } + function injectPendingExpressions(expression) { + if (some(pendingExpressions)) { + if (isParenthesizedExpression(expression)) { + pendingExpressions.push(expression.expression); + expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions)); + } else { + pendingExpressions.push(expression); + expression = factory2.inlineExpressions(pendingExpressions); + } + pendingExpressions = void 0; + } + return expression; + } + function visitComputedPropertyName(node) { + const expression = visitNode(node.expression, visitor, isExpression); + return factory2.updateComputedPropertyName(node, injectPendingExpressions(expression)); + } + function visitConstructorDeclaration(node) { + if (currentClassContainer) { + return transformConstructor(node, currentClassContainer); + } + return fallbackVisitor(node); + } + function shouldTransformClassElementToWeakMap(node) { + if (shouldTransformPrivateElementsOrClassStaticBlocks) return true; + if (hasStaticModifier(node) && getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) return true; + return false; + } + function visitMethodOrAccessorDeclaration(node) { + Debug.assert(!hasDecorators(node)); + if (!isPrivateIdentifierClassElementDeclaration(node) || !shouldTransformClassElementToWeakMap(node)) { + return visitEachChild(node, classElementVisitor, context); + } + const info = accessPrivateIdentifier2(node.name); + Debug.assert(info, "Undeclared private name for property declaration."); + if (!info.isValid) { + return node; + } + const functionName = getHoistedFunctionName(node); + if (functionName) { + getPendingExpressions().push( + factory2.createAssignment( + functionName, + factory2.createFunctionExpression( + filter(node.modifiers, (m) => isModifier(m) && !isStaticModifier(m) && !isAccessorModifier(m)), + node.asteriskToken, + functionName, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + visitFunctionBody(node.body, visitor, context) + ) + ) + ); + } + return void 0; + } + function setCurrentClassElementAnd(classElement, visitor2, arg) { + if (classElement !== currentClassElement) { + const savedCurrentClassElement = currentClassElement; + currentClassElement = classElement; + const result = visitor2(arg); + currentClassElement = savedCurrentClassElement; + return result; + } + return visitor2(arg); + } + function getHoistedFunctionName(node) { + Debug.assert(isPrivateIdentifier(node.name)); + const info = accessPrivateIdentifier2(node.name); + Debug.assert(info, "Undeclared private name for property declaration."); + if (info.kind === "m" /* Method */) { + return info.methodName; + } + if (info.kind === "a" /* Accessor */) { + if (isGetAccessor(node)) { + return info.getterName; + } + if (isSetAccessor(node)) { + return info.setterName; + } + } + } + function tryGetClassThis() { + const lex = getClassLexicalEnvironment(); + return lex.classThis ?? lex.classConstructor ?? (currentClassContainer == null ? void 0 : currentClassContainer.name); + } + function transformAutoAccessor(node) { + const commentRange = getCommentRange(node); + const sourceMapRange = getSourceMapRange(node); + const name = node.name; + let getterName = name; + let setterName = name; + if (isComputedPropertyName(name) && !isSimpleInlineableExpression(name.expression)) { + const cacheAssignment = findComputedPropertyNameCacheAssignment(name); + if (cacheAssignment) { + getterName = factory2.updateComputedPropertyName(name, visitNode(name.expression, visitor, isExpression)); + setterName = factory2.updateComputedPropertyName(name, cacheAssignment.left); + } else { + const temp = factory2.createTempVariable(hoistVariableDeclaration); + setSourceMapRange(temp, name.expression); + const expression = visitNode(name.expression, visitor, isExpression); + const assignment = factory2.createAssignment(temp, expression); + setSourceMapRange(assignment, name.expression); + getterName = factory2.updateComputedPropertyName(name, assignment); + setterName = factory2.updateComputedPropertyName(name, temp); + } + } + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const backingField = createAccessorPropertyBackingField(factory2, node, modifiers, node.initializer); + setOriginalNode(backingField, node); + setEmitFlags(backingField, 3072 /* NoComments */); + setSourceMapRange(backingField, sourceMapRange); + const receiver = isStatic(node) ? tryGetClassThis() ?? factory2.createThis() : factory2.createThis(); + const getter = createAccessorPropertyGetRedirector(factory2, node, modifiers, getterName, receiver); + setOriginalNode(getter, node); + setCommentRange(getter, commentRange); + setSourceMapRange(getter, sourceMapRange); + const setterModifiers = factory2.createModifiersFromModifierFlags(modifiersToFlags(modifiers)); + const setter = createAccessorPropertySetRedirector(factory2, node, setterModifiers, setterName, receiver); + setOriginalNode(setter, node); + setEmitFlags(setter, 3072 /* NoComments */); + setSourceMapRange(setter, sourceMapRange); + return visitArray([backingField, getter, setter], accessorFieldResultVisitor, isClassElement); + } + function transformPrivateFieldInitializer(node) { + if (shouldTransformClassElementToWeakMap(node)) { + const info = accessPrivateIdentifier2(node.name); + Debug.assert(info, "Undeclared private name for property declaration."); + if (!info.isValid) { + return node; + } + if (info.isStatic && !shouldTransformPrivateElementsOrClassStaticBlocks) { + const statement = transformPropertyOrClassStaticBlock(node, factory2.createThis()); + if (statement) { + return factory2.createClassStaticBlockDeclaration(factory2.createBlock( + [statement], + /*multiLine*/ + true + )); + } + } + return void 0; + } + if (shouldTransformInitializersUsingSet && !isStatic(node) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */) { + return factory2.updatePropertyDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifierLike), + node.name, + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + } + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return factory2.updatePropertyDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + visitNode(node.name, propertyNameVisitor, isPropertyName), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + } + function transformPublicFieldInitializer(node) { + if (shouldTransformInitializers && !isAutoAccessorPropertyDeclaration(node)) { + const expr = getPropertyNameExpressionIfNeeded( + node.name, + /*shouldHoist*/ + !!node.initializer || useDefineForClassFields + ); + if (expr) { + getPendingExpressions().push(...flattenCommaList(expr)); + } + if (isStatic(node) && !shouldTransformPrivateElementsOrClassStaticBlocks) { + const initializerStatement = transformPropertyOrClassStaticBlock(node, factory2.createThis()); + if (initializerStatement) { + const staticBlock = factory2.createClassStaticBlockDeclaration( + factory2.createBlock([initializerStatement]) + ); + setOriginalNode(staticBlock, node); + setCommentRange(staticBlock, node); + setCommentRange(initializerStatement, { pos: -1, end: -1 }); + setSyntheticLeadingComments(initializerStatement, void 0); + setSyntheticTrailingComments(initializerStatement, void 0); + return staticBlock; + } + } + return void 0; + } + return factory2.updatePropertyDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + visitNode(node.name, propertyNameVisitor, isPropertyName), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + } + function transformFieldInitializer(node) { + Debug.assert(!hasDecorators(node), "Decorators should already have been transformed and elided."); + return isPrivateIdentifierClassElementDeclaration(node) ? transformPrivateFieldInitializer(node) : transformPublicFieldInitializer(node); + } + function shouldTransformAutoAccessorsInCurrentClass() { + return shouldTransformAutoAccessors === -1 /* True */ || shouldTransformAutoAccessors === 3 /* Maybe */ && !!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !!(lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */); + } + function visitPropertyDeclaration(node) { + if (isAutoAccessorPropertyDeclaration(node) && (shouldTransformAutoAccessorsInCurrentClass() || hasStaticModifier(node) && getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */)) { + return transformAutoAccessor(node); + } + return transformFieldInitializer(node); + } + function shouldForceDynamicThis() { + return !!currentClassElement && hasStaticModifier(currentClassElement) && isAccessor(currentClassElement) && isAutoAccessorPropertyDeclaration(getOriginalNode(currentClassElement)); + } + function ensureDynamicThisIfNeeded(node) { + if (shouldForceDynamicThis()) { + const innerExpression = skipOuterExpressions(node); + if (innerExpression.kind === 110 /* ThisKeyword */) { + noSubstitution.add(innerExpression); + } + } + } + function createPrivateIdentifierAccess(info, receiver) { + receiver = visitNode(receiver, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + return createPrivateIdentifierAccessHelper(info, receiver); + } + function createPrivateIdentifierAccessHelper(info, receiver) { + setCommentRange(receiver, moveRangePos(receiver, -1)); + switch (info.kind) { + case "a" /* Accessor */: + return emitHelpers().createClassPrivateFieldGetHelper( + receiver, + info.brandCheckIdentifier, + info.kind, + info.getterName + ); + case "m" /* Method */: + return emitHelpers().createClassPrivateFieldGetHelper( + receiver, + info.brandCheckIdentifier, + info.kind, + info.methodName + ); + case "f" /* Field */: + return emitHelpers().createClassPrivateFieldGetHelper( + receiver, + info.brandCheckIdentifier, + info.kind, + info.isStatic ? info.variableName : void 0 + ); + case "untransformed": + return Debug.fail("Access helpers should not be created for untransformed private elements"); + default: + Debug.assertNever(info, "Unknown private element type"); + } + } + function visitPropertyAccessExpression(node) { + if (isPrivateIdentifier(node.name)) { + const privateIdentifierInfo = accessPrivateIdentifier2(node.name); + if (privateIdentifierInfo) { + return setTextRange( + setOriginalNode( + createPrivateIdentifierAccess(privateIdentifierInfo, node.expression), + node + ), + node + ); + } + } + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isIdentifier(node.name) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; + if (facts & 1 /* ClassWasDecorated */) { + return visitInvalidSuperProperty(node); + } + if (classConstructor && superClassReference) { + const superProperty = factory2.createReflectGetCall( + superClassReference, + factory2.createStringLiteralFromNode(node.name), + classConstructor + ); + setOriginalNode(superProperty, node.expression); + setTextRange(superProperty, node.expression); + return superProperty; + } + } + return visitEachChild(node, visitor, context); + } + function visitElementAccessExpression(node) { + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; + if (facts & 1 /* ClassWasDecorated */) { + return visitInvalidSuperProperty(node); + } + if (classConstructor && superClassReference) { + const superProperty = factory2.createReflectGetCall( + superClassReference, + visitNode(node.argumentExpression, visitor, isExpression), + classConstructor + ); + setOriginalNode(superProperty, node.expression); + setTextRange(superProperty, node.expression); + return superProperty; + } + } + return visitEachChild(node, visitor, context); + } + function visitPreOrPostfixUnaryExpression(node, discarded) { + if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { + const operand = skipParentheses(node.operand); + if (isPrivateIdentifierPropertyAccessExpression(operand)) { + let info; + if (info = accessPrivateIdentifier2(operand.name)) { + const receiver = visitNode(operand.expression, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); + let expression = createPrivateIdentifierAccess(info, readExpression); + const temp = isPrefixUnaryExpression(node) || discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); + expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); + expression = createPrivateIdentifierAssignment( + info, + initializeExpression || readExpression, + expression, + 64 /* EqualsToken */ + ); + setOriginalNode(expression, node); + setTextRange(expression, node); + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(operand) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; + if (facts & 1 /* ClassWasDecorated */) { + const expression = visitInvalidSuperProperty(operand); + return isPrefixUnaryExpression(node) ? factory2.updatePrefixUnaryExpression(node, expression) : factory2.updatePostfixUnaryExpression(node, expression); + } + if (classConstructor && superClassReference) { + let setterName; + let getterName; + if (isPropertyAccessExpression(operand)) { + if (isIdentifier(operand.name)) { + getterName = setterName = factory2.createStringLiteralFromNode(operand.name); + } + } else { + if (isSimpleInlineableExpression(operand.argumentExpression)) { + getterName = setterName = operand.argumentExpression; + } else { + getterName = factory2.createTempVariable(hoistVariableDeclaration); + setterName = factory2.createAssignment(getterName, visitNode(operand.argumentExpression, visitor, isExpression)); + } + } + if (setterName && getterName) { + let expression = factory2.createReflectGetCall(superClassReference, getterName, classConstructor); + setTextRange(expression, operand); + const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); + expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); + expression = factory2.createReflectSetCall(superClassReference, setterName, expression, classConstructor); + setOriginalNode(expression, node); + setTextRange(expression, node); + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + } + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + return factory2.updateForStatement( + node, + visitNode(node.initializer, discardedValueVisitor, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, discardedValueVisitor, isExpression), + visitIterationBody(node.statement, visitor, context) + ); + } + function visitExpressionStatement(node) { + return factory2.updateExpressionStatement( + node, + visitNode(node.expression, discardedValueVisitor, isExpression) + ); + } + function createCopiableReceiverExpr(receiver) { + const clone = nodeIsSynthesized(receiver) ? receiver : factory2.cloneNode(receiver); + if (receiver.kind === 110 /* ThisKeyword */ && noSubstitution.has(receiver)) { + noSubstitution.add(clone); + } + if (isSimpleInlineableExpression(receiver)) { + return { readExpression: clone, initializeExpression: void 0 }; + } + const readExpression = factory2.createTempVariable(hoistVariableDeclaration); + const initializeExpression = factory2.createAssignment(readExpression, clone); + return { readExpression, initializeExpression }; + } + function visitCallExpression(node) { + var _a; + if (isPrivateIdentifierPropertyAccessExpression(node.expression) && accessPrivateIdentifier2(node.expression.name)) { + const { thisArg, target } = factory2.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion); + if (isCallChain(node)) { + return factory2.updateCallChain( + node, + factory2.createPropertyAccessChain(visitNode(target, visitor, isExpression), node.questionDotToken, "call"), + /*questionDotToken*/ + void 0, + /*typeArguments*/ + void 0, + [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] + ); + } + return factory2.updateCallExpression( + node, + factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), "call"), + /*typeArguments*/ + void 0, + [visitNode(thisArg, visitor, isExpression), ...visitNodes2(node.arguments, visitor, isExpression)] + ); + } + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.expression) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + const invocation = factory2.createFunctionCallCall( + visitNode(node.expression, visitor, isExpression), + lexicalEnvironment.data.classConstructor, + visitNodes2(node.arguments, visitor, isExpression) + ); + setOriginalNode(invocation, node); + setTextRange(invocation, node); + return invocation; + } + return visitEachChild(node, visitor, context); + } + function visitTaggedTemplateExpression(node) { + var _a; + if (isPrivateIdentifierPropertyAccessExpression(node.tag) && accessPrivateIdentifier2(node.tag.name)) { + const { thisArg, target } = factory2.createCallBinding(node.tag, hoistVariableDeclaration, languageVersion); + return factory2.updateTaggedTemplateExpression( + node, + factory2.createCallExpression( + factory2.createPropertyAccessExpression(visitNode(target, visitor, isExpression), "bind"), + /*typeArguments*/ + void 0, + [visitNode(thisArg, visitor, isExpression)] + ), + /*typeArguments*/ + void 0, + visitNode(node.template, visitor, isTemplateLiteral) + ); + } + if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.tag) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.classConstructor)) { + const invocation = factory2.createFunctionBindCall( + visitNode(node.tag, visitor, isExpression), + lexicalEnvironment.data.classConstructor, + [] + ); + setOriginalNode(invocation, node); + setTextRange(invocation, node); + return factory2.updateTaggedTemplateExpression( + node, + invocation, + /*typeArguments*/ + void 0, + visitNode(node.template, visitor, isTemplateLiteral) + ); + } + return visitEachChild(node, visitor, context); + } + function transformClassStaticBlockDeclaration(node) { + if (lexicalEnvironment) { + lexicalEnvironmentMap.set(getOriginalNode(node), lexicalEnvironment); + } + if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (isClassThisAssignmentBlock(node)) { + const result = visitNode(node.body.statements[0].expression, visitor, isExpression); + if (isAssignmentExpression( + result, + /*excludeCompoundAssignment*/ + true + ) && result.left === result.right) { + return void 0; + } + return result; + } + if (isClassNamedEvaluationHelperBlock(node)) { + return visitNode(node.body.statements[0].expression, visitor, isExpression); + } + startLexicalEnvironment(); + let statements = setCurrentClassElementAnd( + node, + (statements2) => visitNodes2(statements2, visitor, isStatement), + node.body.statements + ); + statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); + const iife = factory2.createImmediatelyInvokedArrowFunction(statements); + setOriginalNode(skipParentheses(iife.expression), node); + addEmitFlags(skipParentheses(iife.expression), 4 /* AdviseOnEmitNode */); + setOriginalNode(iife, node); + setTextRange(iife, node); + return iife; + } + } + function isAnonymousClassNeedingAssignedName(node) { + if (isClassExpression(node) && !node.name) { + const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); + if (some(staticPropertiesOrClassStaticBlocks, isClassNamedEvaluationHelperBlock)) { + return false; + } + const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || !!(getInternalEmitFlags(node) && 32 /* TransformPrivateStaticElements */)) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); + return hasTransformableStatics; + } + return false; + } + function visitBinaryExpression(node, discarded) { + if (isDestructuringAssignment(node)) { + const savedPendingExpressions = pendingExpressions; + pendingExpressions = void 0; + node = factory2.updateBinaryExpression( + node, + visitNode(node.left, assignmentTargetVisitor, isExpression), + node.operatorToken, + visitNode(node.right, visitor, isExpression) + ); + const expr = some(pendingExpressions) ? factory2.inlineExpressions(compact([...pendingExpressions, node])) : node; + pendingExpressions = savedPendingExpressions; + return expr; + } + if (isAssignmentExpression(node)) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + Debug.assertNode(node, isAssignmentExpression); + } + const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */); + if (isPrivateIdentifierPropertyAccessExpression(left)) { + const info = accessPrivateIdentifier2(left.name); + if (info) { + return setTextRange( + setOriginalNode( + createPrivateIdentifierAssignment(info, left.expression, node.right, node.operatorToken.kind), + node + ), + node + ); + } + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node.left) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; + if (facts & 1 /* ClassWasDecorated */) { + return factory2.updateBinaryExpression( + node, + visitInvalidSuperProperty(node.left), + node.operatorToken, + visitNode(node.right, visitor, isExpression) + ); + } + if (classConstructor && superClassReference) { + let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; + if (setterName) { + let expression = visitNode(node.right, visitor, isExpression); + if (isCompoundAssignment(node.operatorToken.kind)) { + let getterName = setterName; + if (!isSimpleInlineableExpression(setterName)) { + getterName = factory2.createTempVariable(hoistVariableDeclaration); + setterName = factory2.createAssignment(getterName, setterName); + } + const superPropertyGet = factory2.createReflectGetCall( + superClassReference, + getterName, + classConstructor + ); + setOriginalNode(superPropertyGet, node.left); + setTextRange(superPropertyGet, node.left); + expression = factory2.createBinaryExpression( + superPropertyGet, + getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), + expression + ); + setTextRange(expression, node); + } + const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); + if (temp) { + expression = factory2.createAssignment(temp, expression); + setTextRange(temp, node); + } + expression = factory2.createReflectSetCall( + superClassReference, + setterName, + expression, + classConstructor + ); + setOriginalNode(expression, node); + setTextRange(expression, node); + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + } + } + if (isPrivateIdentifierInExpression(node)) { + return transformPrivateIdentifierInInExpression(node); + } + return visitEachChild(node, visitor, context); + } + function visitCommaListExpression(node, discarded) { + const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); + return factory2.updateCommaListExpression(node, elements); + } + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; + const expression = visitNode(node.expression, visitorFunc, isExpression); + return factory2.updateParenthesizedExpression(node, expression); + } + function createPrivateIdentifierAssignment(info, receiver, right, operator) { + receiver = visitNode(receiver, visitor, isExpression); + right = visitNode(right, visitor, isExpression); + ensureDynamicThisIfNeeded(receiver); + if (isCompoundAssignment(operator)) { + const { readExpression, initializeExpression } = createCopiableReceiverExpr(receiver); + receiver = initializeExpression || readExpression; + right = factory2.createBinaryExpression( + createPrivateIdentifierAccessHelper(info, readExpression), + getNonAssignmentOperatorForCompoundAssignment(operator), + right + ); + } + setCommentRange(receiver, moveRangePos(receiver, -1)); + switch (info.kind) { + case "a" /* Accessor */: + return emitHelpers().createClassPrivateFieldSetHelper( + receiver, + info.brandCheckIdentifier, + right, + info.kind, + info.setterName + ); + case "m" /* Method */: + return emitHelpers().createClassPrivateFieldSetHelper( + receiver, + info.brandCheckIdentifier, + right, + info.kind, + /*f*/ + void 0 + ); + case "f" /* Field */: + return emitHelpers().createClassPrivateFieldSetHelper( + receiver, + info.brandCheckIdentifier, + right, + info.kind, + info.isStatic ? info.variableName : void 0 + ); + case "untransformed": + return Debug.fail("Access helpers should not be created for untransformed private elements"); + default: + Debug.assertNever(info, "Unknown private element type"); + } + } + function getPrivateInstanceMethodsAndAccessors(node) { + return filter(node.members, isNonStaticMethodOrAccessorWithPrivateName); + } + function getClassFacts(node) { + var _a; + let facts = 0 /* None */; + const original = getOriginalNode(node); + if (isClassLike(original) && classOrConstructorParameterIsDecorated(legacyDecorators, original)) { + facts |= 1 /* ClassWasDecorated */; + } + if (shouldTransformPrivateElementsOrClassStaticBlocks && (classHasClassThisAssignment(node) || classHasExplicitlyAssignedName(node))) { + facts |= 2 /* NeedsClassConstructorReference */; + } + let containsPublicInstanceFields = false; + let containsInitializedPublicInstanceFields = false; + let containsInstancePrivateElements = false; + let containsInstanceAutoAccessors = false; + for (const member of node.members) { + if (isStatic(member)) { + if (member.name && (isPrivateIdentifier(member.name) || isAutoAccessorPropertyDeclaration(member)) && shouldTransformPrivateElementsOrClassStaticBlocks) { + facts |= 2 /* NeedsClassConstructorReference */; + } else if (isAutoAccessorPropertyDeclaration(member) && shouldTransformAutoAccessors === -1 /* True */ && !node.name && !((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + facts |= 2 /* NeedsClassConstructorReference */; + } + if (isPropertyDeclaration(member) || isClassStaticBlockDeclaration(member)) { + if (shouldTransformThisInStaticInitializers && member.transformFlags & 16384 /* ContainsLexicalThis */) { + facts |= 8 /* NeedsSubstitutionForThisInClassStaticField */; + if (!(facts & 1 /* ClassWasDecorated */)) { + facts |= 2 /* NeedsClassConstructorReference */; + } + } + if (shouldTransformSuperInStaticInitializers && member.transformFlags & 134217728 /* ContainsLexicalSuper */) { + if (!(facts & 1 /* ClassWasDecorated */)) { + facts |= 2 /* NeedsClassConstructorReference */ | 4 /* NeedsClassSuperReference */; + } + } + } + } else if (!hasAbstractModifier(getOriginalNode(member))) { + if (isAutoAccessorPropertyDeclaration(member)) { + containsInstanceAutoAccessors = true; + containsInstancePrivateElements || (containsInstancePrivateElements = isPrivateIdentifierClassElementDeclaration(member)); + } else if (isPrivateIdentifierClassElementDeclaration(member)) { + containsInstancePrivateElements = true; + if (resolver.hasNodeCheckFlag(member, 262144 /* ContainsConstructorReference */)) { + facts |= 2 /* NeedsClassConstructorReference */; + } + } else if (isPropertyDeclaration(member)) { + containsPublicInstanceFields = true; + containsInitializedPublicInstanceFields || (containsInitializedPublicInstanceFields = !!member.initializer); + } + } + } + const willHoistInitializersToConstructor = shouldTransformInitializersUsingDefine && containsPublicInstanceFields || shouldTransformInitializersUsingSet && containsInitializedPublicInstanceFields || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstancePrivateElements || shouldTransformPrivateElementsOrClassStaticBlocks && containsInstanceAutoAccessors && shouldTransformAutoAccessors === -1 /* True */; + if (willHoistInitializersToConstructor) { + facts |= 16 /* WillHoistInitializersToConstructor */; + } + return facts; + } + function visitExpressionWithTypeArgumentsInHeritageClause(node) { + var _a; + const facts = ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts) || 0 /* None */; + if (facts & 4 /* NeedsClassSuperReference */) { + const temp = factory2.createTempVariable( + hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); + getClassLexicalEnvironment().superClassReference = temp; + return factory2.updateExpressionWithTypeArguments( + node, + factory2.createAssignment( + temp, + visitNode(node.expression, visitor, isExpression) + ), + /*typeArguments*/ + void 0 + ); + } + return visitEachChild(node, visitor, context); + } + function visitInNewClassLexicalEnvironment(node, visitor2) { + var _a; + const savedCurrentClassContainer = currentClassContainer; + const savedPendingExpressions = pendingExpressions; + const savedLexicalEnvironment = lexicalEnvironment; + currentClassContainer = node; + pendingExpressions = void 0; + startClassLexicalEnvironment(); + const shouldAlwaysTransformPrivateStaticElements = getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */; + if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldAlwaysTransformPrivateStaticElements) { + const name = getNameOfDeclaration(node); + if (name && isIdentifier(name)) { + getPrivateIdentifierEnvironment().data.className = name; + } else if ((_a = node.emitNode) == null ? void 0 : _a.assignedName) { + if (isStringLiteral(node.emitNode.assignedName)) { + if (node.emitNode.assignedName.textSourceNode && isIdentifier(node.emitNode.assignedName.textSourceNode)) { + getPrivateIdentifierEnvironment().data.className = node.emitNode.assignedName.textSourceNode; + } else if (isIdentifierText(node.emitNode.assignedName.text, languageVersion)) { + const prefixName = factory2.createIdentifier(node.emitNode.assignedName.text); + getPrivateIdentifierEnvironment().data.className = prefixName; + } + } + } + } + if (shouldTransformPrivateElementsOrClassStaticBlocks) { + const privateInstanceMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node); + if (some(privateInstanceMethodsAndAccessors)) { + getPrivateIdentifierEnvironment().data.weakSetName = createHoistedVariableForClass( + "instances", + privateInstanceMethodsAndAccessors[0].name + ); + } + } + const facts = getClassFacts(node); + if (facts) { + getClassLexicalEnvironment().facts = facts; + } + if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) { + enableSubstitutionForClassStaticThisOrSuperReference(); + } + const result = visitor2(node, facts); + endClassLexicalEnvironment(); + Debug.assert(lexicalEnvironment === savedLexicalEnvironment); + currentClassContainer = savedCurrentClassContainer; + pendingExpressions = savedPendingExpressions; + return result; + } + function visitClassDeclaration(node) { + return visitInNewClassLexicalEnvironment(node, visitClassDeclarationInNewClassLexicalEnvironment); + } + function visitClassDeclarationInNewClassLexicalEnvironment(node, facts) { + var _a, _b; + let pendingClassReferenceAssignment; + if (facts & 2 /* NeedsClassConstructorReference */) { + if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a = node.emitNode) == null ? void 0 : _a.classThis)) { + getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; + pendingClassReferenceAssignment = factory2.createAssignment(node.emitNode.classThis, factory2.getInternalName(node)); + } else { + const temp = factory2.createTempVariable( + hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); + getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp); + pendingClassReferenceAssignment = factory2.createAssignment(temp, factory2.getInternalName(node)); + } + } + if ((_b = node.emitNode) == null ? void 0 : _b.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + const isClassWithConstructorReference = resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */); + const isExport = hasSyntacticModifier(node, 32 /* Export */); + const isDefault = hasSyntacticModifier(node, 2048 /* Default */); + let modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); + const { members, prologue } = transformClassMembers(node); + const statements = []; + if (pendingClassReferenceAssignment) { + getPendingExpressions().unshift(pendingClassReferenceAssignment); + } + if (some(pendingExpressions)) { + statements.push(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))); + } + if (shouldTransformInitializersUsingSet || shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) { + const staticProperties = getStaticPropertiesAndClassStaticBlock(node); + if (some(staticProperties)) { + addPropertyOrClassStaticBlockStatements(statements, staticProperties, factory2.getInternalName(node)); + } + } + if (statements.length > 0 && isExport && isDefault) { + modifiers = visitNodes2(modifiers, (node2) => isExportOrDefaultModifier(node2) ? void 0 : node2, isModifier); + statements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + false, + factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ) + )); + } + const alias = getClassLexicalEnvironment().classConstructor; + if (isClassWithConstructorReference && alias) { + enableSubstitutionForClassAliases(); + classAliases[getOriginalNodeId(node)] = alias; + } + const classDecl = factory2.updateClassDeclaration( + node, + modifiers, + node.name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + statements.unshift(classDecl); + if (prologue) { + statements.unshift(factory2.createExpressionStatement(prologue)); + } + return statements; + } + function visitClassExpression(node) { + return visitInNewClassLexicalEnvironment(node, visitClassExpressionInNewClassLexicalEnvironment); + } + function visitClassExpressionInNewClassLexicalEnvironment(node, facts) { + var _a, _b, _c; + const isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */); + const staticPropertiesOrClassStaticBlocks = getStaticPropertiesAndClassStaticBlock(node); + const isClassWithConstructorReference = resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */); + const requiresBlockScopedVar = resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */); + let temp; + function createClassTempVar() { + var _a2; + if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_a2 = node.emitNode) == null ? void 0 : _a2.classThis)) { + return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis; + } + const temp2 = factory2.createTempVariable( + requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); + getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2); + return temp2; + } + if ((_a = node.emitNode) == null ? void 0 : _a.classThis) { + getClassLexicalEnvironment().classThis = node.emitNode.classThis; + } + if (facts & 2 /* NeedsClassConstructorReference */) { + temp ?? (temp = createClassTempVar()); + } + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes2(node.heritageClauses, heritageClauseVisitor, isHeritageClause); + const { members, prologue } = transformClassMembers(node); + const classExpression = factory2.updateClassExpression( + node, + modifiers, + node.name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + const expressions = []; + if (prologue) { + expressions.push(prologue); + } + const hasTransformableStatics = (shouldTransformPrivateElementsOrClassStaticBlocks || getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */) && some(staticPropertiesOrClassStaticBlocks, (node2) => isClassStaticBlockDeclaration(node2) || isPrivateIdentifierClassElementDeclaration(node2) || shouldTransformInitializers && isInitializedProperty(node2)); + if (hasTransformableStatics || some(pendingExpressions)) { + if (isDecoratedClassDeclaration) { + Debug.assertIsDefined(pendingStatements, "Decorated classes transformed by TypeScript are expected to be within a variable declaration."); + if (some(pendingExpressions)) { + addRange(pendingStatements, map(pendingExpressions, factory2.createExpressionStatement)); + } + if (some(staticPropertiesOrClassStaticBlocks)) { + addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, ((_b = node.emitNode) == null ? void 0 : _b.classThis) ?? factory2.getInternalName(node)); + } + if (temp) { + expressions.push(factory2.createAssignment(temp, classExpression)); + } else if (shouldTransformPrivateElementsOrClassStaticBlocks && ((_c = node.emitNode) == null ? void 0 : _c.classThis)) { + expressions.push(factory2.createAssignment(node.emitNode.classThis, classExpression)); + } else { + expressions.push(classExpression); + } + } else { + temp ?? (temp = createClassTempVar()); + if (isClassWithConstructorReference) { + enableSubstitutionForClassAliases(); + const alias = factory2.cloneNode(temp); + alias.emitNode.autoGenerate.flags &= ~8 /* ReservedInNestedScopes */; + classAliases[getOriginalNodeId(node)] = alias; + } + expressions.push(factory2.createAssignment(temp, classExpression)); + addRange(expressions, pendingExpressions); + addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp)); + expressions.push(factory2.cloneNode(temp)); + } + } else { + expressions.push(classExpression); + } + if (expressions.length > 1) { + addEmitFlags(classExpression, 131072 /* Indented */); + expressions.forEach(startOnNewLine); + } + return factory2.inlineExpressions(expressions); + } + function visitClassStaticBlockDeclaration(node) { + if (!shouldTransformPrivateElementsOrClassStaticBlocks) { + return visitEachChild(node, visitor, context); + } + return void 0; + } + function visitThisExpression(node) { + if (shouldTransformThisInStaticInitializers && currentClassElement && isClassStaticBlockDeclaration(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classThis, classConstructor } = lexicalEnvironment.data; + return classThis ?? classConstructor ?? node; + } + return node; + } + function transformClassMembers(node) { + const shouldTransformPrivateStaticElementsInClass = !!(getInternalEmitFlags(node) & 32 /* TransformPrivateStaticElements */); + if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInFile) { + for (const member of node.members) { + if (isPrivateIdentifierClassElementDeclaration(member)) { + if (shouldTransformClassElementToWeakMap(member)) { + addPrivateIdentifierToEnvironment(member, member.name, addPrivateIdentifierClassElementToEnvironment); + } else { + const privateEnv = getPrivateIdentifierEnvironment(); + setPrivateIdentifier(privateEnv, member.name, { kind: "untransformed" }); + } + } + } + if (shouldTransformPrivateElementsOrClassStaticBlocks) { + if (some(getPrivateInstanceMethodsAndAccessors(node))) { + createBrandCheckWeakSetForPrivateMethods(); + } + } + if (shouldTransformAutoAccessorsInCurrentClass()) { + for (const member of node.members) { + if (isAutoAccessorPropertyDeclaration(member)) { + const storageName = factory2.getGeneratedPrivateNameForNode( + member.name, + /*prefix*/ + void 0, + "_accessor_storage" + ); + if (shouldTransformPrivateElementsOrClassStaticBlocks || shouldTransformPrivateStaticElementsInClass && hasStaticModifier(member)) { + addPrivateIdentifierToEnvironment(member, storageName, addPrivateIdentifierPropertyDeclarationToEnvironment); + } else { + const privateEnv = getPrivateIdentifierEnvironment(); + setPrivateIdentifier(privateEnv, storageName, { kind: "untransformed" }); + } + } + } + } + } + let members = visitNodes2(node.members, classElementVisitor, isClassElement); + let syntheticConstructor; + if (!some(members, isConstructorDeclaration)) { + syntheticConstructor = transformConstructor( + /*constructor*/ + void 0, + node + ); + } + let prologue; + let syntheticStaticBlock; + if (!shouldTransformPrivateElementsOrClassStaticBlocks && some(pendingExpressions)) { + let statement = factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions)); + if (statement.transformFlags & 134234112 /* ContainsLexicalThisOrSuper */) { + const temp = factory2.createTempVariable(hoistVariableDeclaration); + const arrow = factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + [], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + factory2.createBlock([statement]) + ); + prologue = factory2.createAssignment(temp, arrow); + statement = factory2.createExpressionStatement(factory2.createCallExpression( + temp, + /*typeArguments*/ + void 0, + [] + )); + } + const block = factory2.createBlock([statement]); + syntheticStaticBlock = factory2.createClassStaticBlockDeclaration(block); + pendingExpressions = void 0; + } + if (syntheticConstructor || syntheticStaticBlock) { + let membersArray; + const classThisAssignmentBlock = find(members, isClassThisAssignmentBlock); + const classNamedEvaluationHelperBlock = find(members, isClassNamedEvaluationHelperBlock); + membersArray = append(membersArray, classThisAssignmentBlock); + membersArray = append(membersArray, classNamedEvaluationHelperBlock); + membersArray = append(membersArray, syntheticConstructor); + membersArray = append(membersArray, syntheticStaticBlock); + const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members; + membersArray = addRange(membersArray, remainingMembers); + members = setTextRange( + factory2.createNodeArray(membersArray), + /*location*/ + node.members + ); + } + return { members, prologue }; + } + function createBrandCheckWeakSetForPrivateMethods() { + const { weakSetName } = getPrivateIdentifierEnvironment().data; + Debug.assert(weakSetName, "weakSetName should be set in private identifier environment"); + getPendingExpressions().push( + factory2.createAssignment( + weakSetName, + factory2.createNewExpression( + factory2.createIdentifier("WeakSet"), + /*typeArguments*/ + void 0, + [] + ) + ) + ); + } + function transformConstructor(constructor, container) { + constructor = visitNode(constructor, visitor, isConstructorDeclaration); + if (!(lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) || !(lexicalEnvironment.data.facts & 16 /* WillHoistInitializersToConstructor */)) { + return constructor; + } + const extendsClauseElement = getEffectiveBaseTypeNode(container); + const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */); + const parameters = visitParameterList(constructor ? constructor.parameters : void 0, visitor, context); + const body = transformConstructorBody(container, constructor, isDerivedClass); + if (!body) { + return constructor; + } + if (constructor) { + Debug.assert(parameters); + return factory2.updateConstructorDeclaration( + constructor, + /*modifiers*/ + void 0, + parameters, + body + ); + } + return startOnNewLine( + setOriginalNode( + setTextRange( + factory2.createConstructorDeclaration( + /*modifiers*/ + void 0, + parameters ?? [], + body + ), + constructor || container + ), + constructor + ) + ); + } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements, constructor) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + statementOffset = superStatementIndex + 1; + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements, + constructor + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + while (statementOffset < statementsIn.length) { + const statement = statementsIn[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); + } + function transformConstructorBody(node, constructor, isDerivedClass) { + const instanceProperties = getProperties( + node, + /*requireInitializer*/ + false, + /*isStatic*/ + false + ); + let properties = instanceProperties; + if (!useDefineForClassFields) { + properties = filter(properties, (property) => !!property.initializer || isPrivateIdentifier(property.name) || hasAccessorModifier(property)); + } + const privateMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node); + const needsConstructorBody = some(properties) || some(privateMethodsAndAccessors); + if (!constructor && !needsConstructorBody) { + return visitFunctionBody( + /*node*/ + void 0, + visitor, + context + ); + } + resumeLexicalEnvironment(); + const needsSyntheticConstructor = !constructor && isDerivedClass; + let statementOffset = 0; + let statements = []; + const initializerStatements = []; + const receiver = factory2.createThis(); + addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver); + if (constructor) { + const parameterProperties = filter(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + const nonParameterProperties = filter(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor)); + addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver); + addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver); + } else { + addPropertyOrClassStaticBlockStatements(initializerStatements, properties, receiver); + } + if (constructor == null ? void 0 : constructor.body) { + statementOffset = factory2.copyPrologue( + constructor.body.statements, + statements, + /*ensureUseStrict*/ + false, + visitor + ); + const superStatementIndices = findSuperStatementIndexPath(constructor.body.statements, statementOffset); + if (superStatementIndices.length) { + transformConstructorBodyWorker( + statements, + constructor.body.statements, + statementOffset, + superStatementIndices, + /*superPathDepth*/ + 0, + initializerStatements, + constructor + ); + } else { + while (statementOffset < constructor.body.statements.length) { + const statement = constructor.body.statements[statementOffset]; + if (isParameterPropertyDeclaration(getOriginalNode(statement), constructor)) { + statementOffset++; + } else { + break; + } + } + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, statementOffset)); + } + } else { + if (needsSyntheticConstructor) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [factory2.createSpreadElement(factory2.createIdentifier("arguments"))] + ) + ) + ); + } + addRange(statements, initializerStatements); + } + statements = factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); + if (statements.length === 0 && !constructor) { + return void 0; + } + const multiLine = (constructor == null ? void 0 : constructor.body) && constructor.body.statements.length >= statements.length ? constructor.body.multiLine ?? statements.length > 0 : statements.length > 0; + return setTextRange( + factory2.createBlock( + setTextRange( + factory2.createNodeArray(statements), + /*location*/ + constructor ? constructor.body.statements : node.members + ), + multiLine + ), + /*location*/ + constructor ? constructor.body : void 0 + ); + } + function addPropertyOrClassStaticBlockStatements(statements, properties, receiver) { + for (const property of properties) { + if (isStatic(property) && !shouldTransformPrivateElementsOrClassStaticBlocks) { + continue; + } + const statement = transformPropertyOrClassStaticBlock(property, receiver); + if (!statement) { + continue; + } + statements.push(statement); + } + } + function transformPropertyOrClassStaticBlock(property, receiver) { + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : transformProperty(property, receiver); + if (!expression) { + return void 0; + } + const statement = factory2.createExpressionStatement(expression); + setOriginalNode(statement, property); + addEmitFlags(statement, getEmitFlags(property) & 3072 /* NoComments */); + setCommentRange(statement, property); + const propertyOriginalNode = getOriginalNode(property); + if (isParameter(propertyOriginalNode)) { + setSourceMapRange(statement, propertyOriginalNode); + removeAllComments(statement); + } else { + setSourceMapRange(statement, moveRangePastModifiers(property)); + } + setSyntheticLeadingComments(expression, void 0); + setSyntheticTrailingComments(expression, void 0); + if (hasAccessorModifier(propertyOriginalNode)) { + addEmitFlags(statement, 3072 /* NoComments */); + } + return statement; + } + function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) { + const expressions = []; + for (const property of propertiesOrClassStaticBlocks) { + const expression = isClassStaticBlockDeclaration(property) ? setCurrentClassElementAnd(property, transformClassStaticBlockDeclaration, property) : setCurrentClassElementAnd( + property, + () => transformProperty(property, receiver), + /*arg*/ + void 0 + ); + if (!expression) { + continue; + } + startOnNewLine(expression); + setOriginalNode(expression, property); + addEmitFlags(expression, getEmitFlags(property) & 3072 /* NoComments */); + setSourceMapRange(expression, moveRangePastModifiers(property)); + setCommentRange(expression, property); + expressions.push(expression); + } + return expressions; + } + function transformProperty(property, receiver) { + var _a; + const savedCurrentClassElement = currentClassElement; + const transformed = transformPropertyWorker(property, receiver); + if (transformed && hasStaticModifier(property) && ((_a = lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) == null ? void 0 : _a.facts)) { + setOriginalNode(transformed, property); + addEmitFlags(transformed, 4 /* AdviseOnEmitNode */); + setSourceMapRange(transformed, getSourceMapRange(property.name)); + lexicalEnvironmentMap.set(getOriginalNode(property), lexicalEnvironment); + } + currentClassElement = savedCurrentClassElement; + return transformed; + } + function transformPropertyWorker(property, receiver) { + const emitAssignment = !useDefineForClassFields; + if (isNamedEvaluation(property, isAnonymousClassNeedingAssignedName)) { + property = transformNamedEvaluation(context, property); + } + const propertyName = hasAccessorModifier(property) ? factory2.getGeneratedPrivateNameForNode(property.name) : isComputedPropertyName(property.name) && !isSimpleInlineableExpression(property.name.expression) ? factory2.updateComputedPropertyName(property.name, factory2.getGeneratedNameForNode(property.name)) : property.name; + if (hasStaticModifier(property)) { + currentClassElement = property; + } + if (isPrivateIdentifier(propertyName) && shouldTransformClassElementToWeakMap(property)) { + const privateIdentifierInfo = accessPrivateIdentifier2(propertyName); + if (privateIdentifierInfo) { + if (privateIdentifierInfo.kind === "f" /* Field */) { + if (!privateIdentifierInfo.isStatic) { + return createPrivateInstanceFieldInitializer( + factory2, + receiver, + visitNode(property.initializer, visitor, isExpression), + privateIdentifierInfo.brandCheckIdentifier + ); + } else { + return createPrivateStaticFieldInitializer( + factory2, + privateIdentifierInfo.variableName, + visitNode(property.initializer, visitor, isExpression) + ); + } + } else { + return void 0; + } + } else { + Debug.fail("Undeclared private name for property declaration."); + } + } + if ((isPrivateIdentifier(propertyName) || hasStaticModifier(property)) && !property.initializer) { + return void 0; + } + const propertyOriginalNode = getOriginalNode(property); + if (hasSyntacticModifier(propertyOriginalNode, 64 /* Abstract */)) { + return void 0; + } + let initializer = visitNode(property.initializer, visitor, isExpression); + if (isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && isIdentifier(propertyName)) { + const localName = factory2.cloneNode(propertyName); + if (initializer) { + if (isParenthesizedExpression(initializer) && isCommaExpression(initializer.expression) && isCallToHelper(initializer.expression.left, "___runInitializers") && isVoidExpression(initializer.expression.right) && isNumericLiteral(initializer.expression.right.expression)) { + initializer = initializer.expression.left; + } + initializer = factory2.inlineExpressions([initializer, localName]); + } else { + initializer = localName; + } + setEmitFlags(propertyName, 3072 /* NoComments */ | 96 /* NoSourceMap */); + setSourceMapRange(localName, propertyOriginalNode.name); + setEmitFlags(localName, 3072 /* NoComments */); + } else { + initializer ?? (initializer = factory2.createVoidZero()); + } + if (emitAssignment || isPrivateIdentifier(propertyName)) { + const memberAccess = createMemberAccessForPropertyName( + factory2, + receiver, + propertyName, + /*location*/ + propertyName + ); + addEmitFlags(memberAccess, 1024 /* NoLeadingComments */); + const expression = factory2.createAssignment(memberAccess, initializer); + return expression; + } else { + const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName; + const descriptor = factory2.createPropertyDescriptor({ value: initializer, configurable: true, writable: true, enumerable: true }); + return factory2.createObjectDefinePropertyCall(receiver, name, descriptor); + } + } + function enableSubstitutionForClassAliases() { + if ((enabledSubstitutions & 1 /* ClassAliases */) === 0) { + enabledSubstitutions |= 1 /* ClassAliases */; + context.enableSubstitution(80 /* Identifier */); + classAliases = []; + } + } + function enableSubstitutionForClassStaticThisOrSuperReference() { + if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) { + enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */; + context.enableSubstitution(110 /* ThisKeyword */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(172 /* PropertyDeclaration */); + context.enableEmitNotification(167 /* ComputedPropertyName */); + } + } + function addInstanceMethodStatements(statements, methods, receiver) { + if (!shouldTransformPrivateElementsOrClassStaticBlocks || !some(methods)) { + return; + } + const { weakSetName } = getPrivateIdentifierEnvironment().data; + Debug.assert(weakSetName, "weakSetName should be set in private identifier environment"); + statements.push( + factory2.createExpressionStatement( + createPrivateInstanceMethodInitializer(factory2, receiver, weakSetName) + ) + ); + } + function visitInvalidSuperProperty(node) { + return isPropertyAccessExpression(node) ? factory2.updatePropertyAccessExpression( + node, + factory2.createVoidZero(), + node.name + ) : factory2.updateElementAccessExpression( + node, + factory2.createVoidZero(), + visitNode(node.argumentExpression, visitor, isExpression) + ); + } + function getPropertyNameExpressionIfNeeded(name, shouldHoist) { + if (isComputedPropertyName(name)) { + const cacheAssignment = findComputedPropertyNameCacheAssignment(name); + const expression = visitNode(name.expression, visitor, isExpression); + const innerExpression = skipPartiallyEmittedExpressions(expression); + const inlinable = isSimpleInlineableExpression(innerExpression); + const alreadyTransformed = !!cacheAssignment || isAssignmentExpression(innerExpression) && isGeneratedIdentifier(innerExpression.left); + if (!alreadyTransformed && !inlinable && shouldHoist) { + const generatedName = factory2.getGeneratedNameForNode(name); + if (resolver.hasNodeCheckFlag(name, 32768 /* BlockScopedBindingInLoop */)) { + addBlockScopedVariable(generatedName); + } else { + hoistVariableDeclaration(generatedName); + } + return factory2.createAssignment(generatedName, expression); + } + return inlinable || isIdentifier(innerExpression) ? void 0 : expression; + } + } + function startClassLexicalEnvironment() { + lexicalEnvironment = { previous: lexicalEnvironment, data: void 0 }; + } + function endClassLexicalEnvironment() { + lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; + } + function getClassLexicalEnvironment() { + Debug.assert(lexicalEnvironment); + return lexicalEnvironment.data ?? (lexicalEnvironment.data = { + facts: 0 /* None */, + classConstructor: void 0, + classThis: void 0, + superClassReference: void 0 + // privateIdentifierEnvironment: undefined, + }); + } + function getPrivateIdentifierEnvironment() { + Debug.assert(lexicalEnvironment); + return lexicalEnvironment.privateEnv ?? (lexicalEnvironment.privateEnv = newPrivateEnvironment({ + className: void 0, + weakSetName: void 0 + })); + } + function getPendingExpressions() { + return pendingExpressions ?? (pendingExpressions = []); + } + function addPrivateIdentifierClassElementToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { + if (isAutoAccessorPropertyDeclaration(node)) { + addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } else if (isPropertyDeclaration(node)) { + addPrivateIdentifierPropertyDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } else if (isMethodDeclaration(node)) { + addPrivateIdentifierMethodDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } else if (isGetAccessorDeclaration(node)) { + addPrivateIdentifierGetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } else if (isSetAccessorDeclaration(node)) { + addPrivateIdentifierSetAccessorDeclarationToEnvironment(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } + } + function addPrivateIdentifierPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { + if (isStatic2) { + const brandCheckIdentifier = Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment"); + const variableName = createHoistedVariableForPrivateName(name); + setPrivateIdentifier(privateEnv, name, { + kind: "f" /* Field */, + isStatic: true, + brandCheckIdentifier, + variableName, + isValid + }); + } else { + const weakMapName = createHoistedVariableForPrivateName(name); + setPrivateIdentifier(privateEnv, name, { + kind: "f" /* Field */, + isStatic: false, + brandCheckIdentifier: weakMapName, + isValid + }); + getPendingExpressions().push(factory2.createAssignment( + weakMapName, + factory2.createNewExpression( + factory2.createIdentifier("WeakMap"), + /*typeArguments*/ + void 0, + [] + ) + )); + } + } + function addPrivateIdentifierMethodDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { + const methodName = createHoistedVariableForPrivateName(name); + const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); + setPrivateIdentifier(privateEnv, name, { + kind: "m" /* Method */, + methodName, + brandCheckIdentifier, + isStatic: isStatic2, + isValid + }); + } + function addPrivateIdentifierGetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { + const getterName = createHoistedVariableForPrivateName(name, "_get"); + const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); + if ((previousInfo == null ? void 0 : previousInfo.kind) === "a" /* Accessor */ && previousInfo.isStatic === isStatic2 && !previousInfo.getterName) { + previousInfo.getterName = getterName; + } else { + setPrivateIdentifier(privateEnv, name, { + kind: "a" /* Accessor */, + getterName, + setterName: void 0, + brandCheckIdentifier, + isStatic: isStatic2, + isValid + }); + } + } + function addPrivateIdentifierSetAccessorDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, previousInfo) { + const setterName = createHoistedVariableForPrivateName(name, "_set"); + const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); + if ((previousInfo == null ? void 0 : previousInfo.kind) === "a" /* Accessor */ && previousInfo.isStatic === isStatic2 && !previousInfo.setterName) { + previousInfo.setterName = setterName; + } else { + setPrivateIdentifier(privateEnv, name, { + kind: "a" /* Accessor */, + getterName: void 0, + setterName, + brandCheckIdentifier, + isStatic: isStatic2, + isValid + }); + } + } + function addPrivateIdentifierAutoAccessorPropertyDeclarationToEnvironment(_node, name, lex, privateEnv, isStatic2, isValid, _previousInfo) { + const getterName = createHoistedVariableForPrivateName(name, "_get"); + const setterName = createHoistedVariableForPrivateName(name, "_set"); + const brandCheckIdentifier = isStatic2 ? Debug.checkDefined(lex.classThis ?? lex.classConstructor, "classConstructor should be set in private identifier environment") : Debug.checkDefined(privateEnv.data.weakSetName, "weakSetName should be set in private identifier environment"); + setPrivateIdentifier(privateEnv, name, { + kind: "a" /* Accessor */, + getterName, + setterName, + brandCheckIdentifier, + isStatic: isStatic2, + isValid + }); + } + function addPrivateIdentifierToEnvironment(node, name, addDeclaration) { + const lex = getClassLexicalEnvironment(); + const privateEnv = getPrivateIdentifierEnvironment(); + const previousInfo = getPrivateIdentifier(privateEnv, name); + const isStatic2 = hasStaticModifier(node); + const isValid = !isReservedPrivateName(name) && previousInfo === void 0; + addDeclaration(node, name, lex, privateEnv, isStatic2, isValid, previousInfo); + } + function createHoistedVariableForClass(name, node, suffix) { + const { className } = getPrivateIdentifierEnvironment().data; + const prefix = className ? { prefix: "_", node: className, suffix: "_" } : "_"; + const identifier = typeof name === "object" ? factory2.getGeneratedNameForNode(name, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */, prefix, suffix) : typeof name === "string" ? factory2.createUniqueName(name, 16 /* Optimistic */, prefix, suffix) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0, + /*reservedInNestedScopes*/ + true, + prefix, + suffix + ); + if (resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */)) { + addBlockScopedVariable(identifier); + } else { + hoistVariableDeclaration(identifier); + } + return identifier; + } + function createHoistedVariableForPrivateName(name, suffix) { + const text = tryGetTextOfPropertyName(name); + return createHoistedVariableForClass((text == null ? void 0 : text.substring(1)) ?? name, name, suffix); + } + function accessPrivateIdentifier2(name) { + const info = accessPrivateIdentifier(lexicalEnvironment, name); + return (info == null ? void 0 : info.kind) === "untransformed" ? void 0 : info; + } + function wrapPrivateIdentifierForDestructuringTarget(node) { + const parameter = factory2.getGeneratedNameForNode(node); + const info = accessPrivateIdentifier2(node.name); + if (!info) { + return visitEachChild(node, visitor, context); + } + let receiver = node.expression; + if (isThisProperty(node) || isSuperProperty(node) || !isSimpleCopiableExpression(node.expression)) { + receiver = factory2.createTempVariable( + hoistVariableDeclaration, + /*reservedInNestedScopes*/ + true + ); + getPendingExpressions().push(factory2.createBinaryExpression(receiver, 64 /* EqualsToken */, visitNode(node.expression, visitor, isExpression))); + } + return factory2.createAssignmentTargetWrapper( + parameter, + createPrivateIdentifierAssignment( + info, + receiver, + parameter, + 64 /* EqualsToken */ + ) + ); + } + function visitDestructuringAssignmentTarget(node) { + if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) { + return visitAssignmentPattern(node); + } + if (isPrivateIdentifierPropertyAccessExpression(node)) { + return wrapPrivateIdentifierForDestructuringTarget(node); + } else if (shouldTransformSuperInStaticInitializers && currentClassElement && isSuperProperty(node) && isStaticPropertyDeclarationOrClassStaticBlock(currentClassElement) && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data)) { + const { classConstructor, superClassReference, facts } = lexicalEnvironment.data; + if (facts & 1 /* ClassWasDecorated */) { + return visitInvalidSuperProperty(node); + } else if (classConstructor && superClassReference) { + const name = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0; + if (name) { + const temp = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + return factory2.createAssignmentTargetWrapper( + temp, + factory2.createReflectSetCall( + superClassReference, + name, + temp, + classConstructor + ) + ); + } + } + } + return visitEachChild(node, visitor, context); + } + function visitAssignmentElement(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + if (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + )) { + const left = visitDestructuringAssignmentTarget(node.left); + const right = visitNode(node.right, visitor, isExpression); + return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + } + return visitDestructuringAssignmentTarget(node); + } + function visitAssignmentRestElement(node) { + if (isLeftHandSideExpression(node.expression)) { + const expression = visitDestructuringAssignmentTarget(node.expression); + return factory2.updateSpreadElement(node, expression); + } + return visitEachChild(node, visitor, context); + } + function visitArrayAssignmentElement(node) { + if (isArrayBindingOrAssignmentElement(node)) { + if (isSpreadElement(node)) return visitAssignmentRestElement(node); + if (!isOmittedExpression(node)) return visitAssignmentElement(node); + } + return visitEachChild(node, visitor, context); + } + function visitAssignmentProperty(node) { + const name = visitNode(node.name, visitor, isPropertyName); + if (isAssignmentExpression( + node.initializer, + /*excludeCompoundAssignment*/ + true + )) { + const assignmentElement = visitAssignmentElement(node.initializer); + return factory2.updatePropertyAssignment(node, name, assignmentElement); + } + if (isLeftHandSideExpression(node.initializer)) { + const assignmentElement = visitDestructuringAssignmentTarget(node.initializer); + return factory2.updatePropertyAssignment(node, name, assignmentElement); + } + return visitEachChild(node, visitor, context); + } + function visitShorthandAssignmentProperty(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node); + } + return visitEachChild(node, visitor, context); + } + function visitAssignmentRestProperty(node) { + if (isLeftHandSideExpression(node.expression)) { + const expression = visitDestructuringAssignmentTarget(node.expression); + return factory2.updateSpreadAssignment(node, expression); + } + return visitEachChild(node, visitor, context); + } + function visitObjectAssignmentElement(node) { + Debug.assertNode(node, isObjectBindingOrAssignmentElement); + if (isSpreadAssignment(node)) return visitAssignmentRestProperty(node); + if (isShorthandPropertyAssignment(node)) return visitShorthandAssignmentProperty(node); + if (isPropertyAssignment(node)) return visitAssignmentProperty(node); + return visitEachChild(node, visitor, context); + } + function visitAssignmentPattern(node) { + if (isArrayLiteralExpression(node)) { + return factory2.updateArrayLiteralExpression( + node, + visitNodes2(node.elements, visitArrayAssignmentElement, isExpression) + ); + } else { + return factory2.updateObjectLiteralExpression( + node, + visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike) + ); + } + } + function onEmitNode(hint, node, emitCallback) { + const original = getOriginalNode(node); + const lex = lexicalEnvironmentMap.get(original); + if (lex) { + const savedLexicalEnvironment = lexicalEnvironment; + const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; + lexicalEnvironment = lex; + previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; + shouldSubstituteThisWithClassThis = !isClassStaticBlockDeclaration(original) || !(getInternalEmitFlags(original) & 32 /* TransformPrivateStaticElements */); + previousOnEmitNode(hint, node, emitCallback); + shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; + previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis; + lexicalEnvironment = savedLexicalEnvironment; + return; + } + switch (node.kind) { + case 218 /* FunctionExpression */: + if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { + break; + } + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { + const savedLexicalEnvironment = lexicalEnvironment; + const savedPreviousShouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; + lexicalEnvironment = void 0; + previousShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; + shouldSubstituteThisWithClassThis = false; + previousOnEmitNode(hint, node, emitCallback); + shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; + previousShouldSubstituteThisWithClassThis = savedPreviousShouldSubstituteThisWithClassThis; + lexicalEnvironment = savedLexicalEnvironment; + return; + } + case 167 /* ComputedPropertyName */: { + const savedLexicalEnvironment = lexicalEnvironment; + const savedShouldSubstituteThisWithClassThis = shouldSubstituteThisWithClassThis; + lexicalEnvironment = lexicalEnvironment == null ? void 0 : lexicalEnvironment.previous; + shouldSubstituteThisWithClassThis = previousShouldSubstituteThisWithClassThis; + previousOnEmitNode(hint, node, emitCallback); + shouldSubstituteThisWithClassThis = savedShouldSubstituteThisWithClassThis; + lexicalEnvironment = savedLexicalEnvironment; + return; + } + } + previousOnEmitNode(hint, node, emitCallback); + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + case 110 /* ThisKeyword */: + return substituteThisExpression(node); + } + return node; + } + function substituteThisExpression(node) { + if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && (lexicalEnvironment == null ? void 0 : lexicalEnvironment.data) && !noSubstitution.has(node)) { + const { facts, classConstructor, classThis } = lexicalEnvironment.data; + const substituteThis = shouldSubstituteThisWithClassThis ? classThis ?? classConstructor : classConstructor; + if (substituteThis) { + return setTextRange( + setOriginalNode( + factory2.cloneNode(substituteThis), + node + ), + node + ); + } + if (facts & 1 /* ClassWasDecorated */ && legacyDecorators) { + return factory2.createParenthesizedExpression(factory2.createVoidZero()); + } + } + return node; + } + function substituteExpressionIdentifier(node) { + return trySubstituteClassAlias(node) || node; + } + function trySubstituteClassAlias(node) { + if (enabledSubstitutions & 1 /* ClassAliases */) { + if (resolver.hasNodeCheckFlag(node, 536870912 /* ConstructorReference */)) { + const declaration = resolver.getReferencedValueDeclaration(node); + if (declaration) { + const classAlias = classAliases[declaration.id]; + if (classAlias) { + const clone = factory2.cloneNode(classAlias); + setSourceMapRange(clone, node); + setCommentRange(clone, node); + return clone; + } + } + } + } + return void 0; + } +} +function createPrivateStaticFieldInitializer(factory2, variableName, initializer) { + return factory2.createAssignment( + variableName, + factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("value", initializer || factory2.createVoidZero()) + ]) + ); +} +function createPrivateInstanceFieldInitializer(factory2, receiver, initializer, weakMapName) { + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(weakMapName, "set"), + /*typeArguments*/ + void 0, + [receiver, initializer || factory2.createVoidZero()] + ); +} +function createPrivateInstanceMethodInitializer(factory2, receiver, weakSetName) { + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(weakSetName, "add"), + /*typeArguments*/ + void 0, + [receiver] + ); +} +function isReservedPrivateName(node) { + return !isGeneratedPrivateIdentifier(node) && node.escapedText === "#constructor"; +} +function isPrivateIdentifierInExpression(node) { + return isPrivateIdentifier(node.left) && node.operatorToken.kind === 103 /* InKeyword */; +} +function isStaticPropertyDeclaration2(node) { + return isPropertyDeclaration(node) && hasStaticModifier(node); +} +function isStaticPropertyDeclarationOrClassStaticBlock(node) { + return isClassStaticBlockDeclaration(node) || isStaticPropertyDeclaration2(node); +} + +// src/compiler/transformers/typeSerializer.ts +function createRuntimeTypeSerializer(context) { + const { + factory: factory2, + hoistVariableDeclaration + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const strictNullChecks = getStrictOptionValue(compilerOptions, "strictNullChecks"); + let currentLexicalScope; + let currentNameScope; + return { + serializeTypeNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeTypeNode, node), + serializeTypeOfNode: (serializerContext, node, container) => setSerializerContextAnd(serializerContext, serializeTypeOfNode, node, container), + serializeParameterTypesOfNode: (serializerContext, node, container) => setSerializerContextAnd(serializerContext, serializeParameterTypesOfNode, node, container), + serializeReturnTypeOfNode: (serializerContext, node) => setSerializerContextAnd(serializerContext, serializeReturnTypeOfNode, node) + }; + function setSerializerContextAnd(serializerContext, cb, node, arg) { + const savedCurrentLexicalScope = currentLexicalScope; + const savedCurrentNameScope = currentNameScope; + currentLexicalScope = serializerContext.currentLexicalScope; + currentNameScope = serializerContext.currentNameScope; + const result = arg === void 0 ? cb(node) : cb(node, arg); + currentLexicalScope = savedCurrentLexicalScope; + currentNameScope = savedCurrentNameScope; + return result; + } + function getAccessorTypeNode(node, container) { + const accessors = getAllAccessorDeclarations(container.members, node); + return accessors.setAccessor && getSetAccessorTypeAnnotationNode(accessors.setAccessor) || accessors.getAccessor && getEffectiveReturnTypeNode(accessors.getAccessor); + } + function serializeTypeOfNode(node, container) { + switch (node.kind) { + case 172 /* PropertyDeclaration */: + case 169 /* Parameter */: + return serializeTypeNode(node.type); + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + return serializeTypeNode(getAccessorTypeNode(node, container)); + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + return factory2.createIdentifier("Function"); + default: + return factory2.createVoidZero(); + } + } + function serializeParameterTypesOfNode(node, container) { + const valueDeclaration = isClassLike(node) ? getFirstConstructorWithBody(node) : isFunctionLike(node) && nodeIsPresent(node.body) ? node : void 0; + const expressions = []; + if (valueDeclaration) { + const parameters = getParametersOfDecoratedDeclaration(valueDeclaration, container); + const numParameters = parameters.length; + for (let i = 0; i < numParameters; i++) { + const parameter = parameters[i]; + if (i === 0 && isIdentifier(parameter.name) && parameter.name.escapedText === "this") { + continue; + } + if (parameter.dotDotDotToken) { + expressions.push(serializeTypeNode(getRestParameterElementType(parameter.type))); + } else { + expressions.push(serializeTypeOfNode(parameter, container)); + } + } + } + return factory2.createArrayLiteralExpression(expressions); + } + function getParametersOfDecoratedDeclaration(node, container) { + if (container && node.kind === 177 /* GetAccessor */) { + const { setAccessor } = getAllAccessorDeclarations(container.members, node); + if (setAccessor) { + return setAccessor.parameters; + } + } + return node.parameters; + } + function serializeReturnTypeOfNode(node) { + if (isFunctionLike(node) && node.type) { + return serializeTypeNode(node.type); + } else if (isAsyncFunction(node)) { + return factory2.createIdentifier("Promise"); + } + return factory2.createVoidZero(); + } + function serializeTypeNode(node) { + if (node === void 0) { + return factory2.createIdentifier("Object"); + } + node = skipTypeParentheses(node); + switch (node.kind) { + case 116 /* VoidKeyword */: + case 157 /* UndefinedKeyword */: + case 146 /* NeverKeyword */: + return factory2.createVoidZero(); + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + return factory2.createIdentifier("Function"); + case 188 /* ArrayType */: + case 189 /* TupleType */: + return factory2.createIdentifier("Array"); + case 182 /* TypePredicate */: + return node.assertsModifier ? factory2.createVoidZero() : factory2.createIdentifier("Boolean"); + case 136 /* BooleanKeyword */: + return factory2.createIdentifier("Boolean"); + case 203 /* TemplateLiteralType */: + case 154 /* StringKeyword */: + return factory2.createIdentifier("String"); + case 151 /* ObjectKeyword */: + return factory2.createIdentifier("Object"); + case 201 /* LiteralType */: + return serializeLiteralOfLiteralTypeNode(node.literal); + case 150 /* NumberKeyword */: + return factory2.createIdentifier("Number"); + case 163 /* BigIntKeyword */: + return getGlobalConstructor("BigInt", 7 /* ES2020 */); + case 155 /* SymbolKeyword */: + return getGlobalConstructor("Symbol", 2 /* ES2015 */); + case 183 /* TypeReference */: + return serializeTypeReferenceNode(node); + case 193 /* IntersectionType */: + return serializeUnionOrIntersectionConstituents( + node.types, + /*isIntersection*/ + true + ); + case 192 /* UnionType */: + return serializeUnionOrIntersectionConstituents( + node.types, + /*isIntersection*/ + false + ); + case 194 /* ConditionalType */: + return serializeUnionOrIntersectionConstituents( + [node.trueType, node.falseType], + /*isIntersection*/ + false + ); + case 198 /* TypeOperator */: + if (node.operator === 148 /* ReadonlyKeyword */) { + return serializeTypeNode(node.type); + } + break; + case 186 /* TypeQuery */: + case 199 /* IndexedAccessType */: + case 200 /* MappedType */: + case 187 /* TypeLiteral */: + case 133 /* AnyKeyword */: + case 159 /* UnknownKeyword */: + case 197 /* ThisType */: + case 205 /* ImportType */: + break; + case 312 /* JSDocAllType */: + case 313 /* JSDocUnknownType */: + case 317 /* JSDocFunctionType */: + case 318 /* JSDocVariadicType */: + case 319 /* JSDocNamepathType */: + break; + case 314 /* JSDocNullableType */: + case 315 /* JSDocNonNullableType */: + case 316 /* JSDocOptionalType */: + return serializeTypeNode(node.type); + default: + return Debug.failBadSyntaxKind(node); + } + return factory2.createIdentifier("Object"); + } + function serializeLiteralOfLiteralTypeNode(node) { + switch (node.kind) { + case 11 /* StringLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + return factory2.createIdentifier("String"); + case 224 /* PrefixUnaryExpression */: { + const operand = node.operand; + switch (operand.kind) { + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + return serializeLiteralOfLiteralTypeNode(operand); + default: + return Debug.failBadSyntaxKind(operand); + } + } + case 9 /* NumericLiteral */: + return factory2.createIdentifier("Number"); + case 10 /* BigIntLiteral */: + return getGlobalConstructor("BigInt", 7 /* ES2020 */); + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + return factory2.createIdentifier("Boolean"); + case 106 /* NullKeyword */: + return factory2.createVoidZero(); + default: + return Debug.failBadSyntaxKind(node); + } + } + function serializeUnionOrIntersectionConstituents(types, isIntersection) { + let serializedType; + for (let typeNode of types) { + typeNode = skipTypeParentheses(typeNode); + if (typeNode.kind === 146 /* NeverKeyword */) { + if (isIntersection) return factory2.createVoidZero(); + continue; + } + if (typeNode.kind === 159 /* UnknownKeyword */) { + if (!isIntersection) return factory2.createIdentifier("Object"); + continue; + } + if (typeNode.kind === 133 /* AnyKeyword */) { + return factory2.createIdentifier("Object"); + } + if (!strictNullChecks && (isLiteralTypeNode(typeNode) && typeNode.literal.kind === 106 /* NullKeyword */ || typeNode.kind === 157 /* UndefinedKeyword */)) { + continue; + } + const serializedConstituent = serializeTypeNode(typeNode); + if (isIdentifier(serializedConstituent) && serializedConstituent.escapedText === "Object") { + return serializedConstituent; + } + if (serializedType) { + if (!equateSerializedTypeNodes(serializedType, serializedConstituent)) { + return factory2.createIdentifier("Object"); + } + } else { + serializedType = serializedConstituent; + } + } + return serializedType ?? factory2.createVoidZero(); + } + function equateSerializedTypeNodes(left, right) { + return ( + // temp vars used in fallback + isGeneratedIdentifier(left) ? isGeneratedIdentifier(right) : ( + // entity names + isIdentifier(left) ? isIdentifier(right) && left.escapedText === right.escapedText : isPropertyAccessExpression(left) ? isPropertyAccessExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) && equateSerializedTypeNodes(left.name, right.name) : ( + // `void 0` + isVoidExpression(left) ? isVoidExpression(right) && isNumericLiteral(left.expression) && left.expression.text === "0" && isNumericLiteral(right.expression) && right.expression.text === "0" : ( + // `"undefined"` or `"function"` in `typeof` checks + isStringLiteral(left) ? isStringLiteral(right) && left.text === right.text : ( + // used in `typeof` checks for fallback + isTypeOfExpression(left) ? isTypeOfExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : ( + // parens in `typeof` checks with temps + isParenthesizedExpression(left) ? isParenthesizedExpression(right) && equateSerializedTypeNodes(left.expression, right.expression) : ( + // conditionals used in fallback + isConditionalExpression(left) ? isConditionalExpression(right) && equateSerializedTypeNodes(left.condition, right.condition) && equateSerializedTypeNodes(left.whenTrue, right.whenTrue) && equateSerializedTypeNodes(left.whenFalse, right.whenFalse) : ( + // logical binary and assignments used in fallback + isBinaryExpression(left) ? isBinaryExpression(right) && left.operatorToken.kind === right.operatorToken.kind && equateSerializedTypeNodes(left.left, right.left) && equateSerializedTypeNodes(left.right, right.right) : false + ) + ) + ) + ) + ) + ) + ) + ); + } + function serializeTypeReferenceNode(node) { + const kind = resolver.getTypeReferenceSerializationKind(node.typeName, currentNameScope ?? currentLexicalScope); + switch (kind) { + case 0 /* Unknown */: + if (findAncestor(node, (n) => n.parent && isConditionalTypeNode(n.parent) && (n.parent.trueType === n || n.parent.falseType === n))) { + return factory2.createIdentifier("Object"); + } + const serialized = serializeEntityNameAsExpressionFallback(node.typeName); + const temp = factory2.createTempVariable(hoistVariableDeclaration); + return factory2.createConditionalExpression( + factory2.createTypeCheck(factory2.createAssignment(temp, serialized), "function"), + /*questionToken*/ + void 0, + temp, + /*colonToken*/ + void 0, + factory2.createIdentifier("Object") + ); + case 1 /* TypeWithConstructSignatureAndValue */: + return serializeEntityNameAsExpression(node.typeName); + case 2 /* VoidNullableOrNeverType */: + return factory2.createVoidZero(); + case 4 /* BigIntLikeType */: + return getGlobalConstructor("BigInt", 7 /* ES2020 */); + case 6 /* BooleanType */: + return factory2.createIdentifier("Boolean"); + case 3 /* NumberLikeType */: + return factory2.createIdentifier("Number"); + case 5 /* StringLikeType */: + return factory2.createIdentifier("String"); + case 7 /* ArrayLikeType */: + return factory2.createIdentifier("Array"); + case 8 /* ESSymbolType */: + return getGlobalConstructor("Symbol", 2 /* ES2015 */); + case 10 /* TypeWithCallSignature */: + return factory2.createIdentifier("Function"); + case 9 /* Promise */: + return factory2.createIdentifier("Promise"); + case 11 /* ObjectType */: + return factory2.createIdentifier("Object"); + default: + return Debug.assertNever(kind); + } + } + function createCheckedValue(left, right) { + return factory2.createLogicalAnd( + factory2.createStrictInequality(factory2.createTypeOfExpression(left), factory2.createStringLiteral("undefined")), + right + ); + } + function serializeEntityNameAsExpressionFallback(node) { + if (node.kind === 80 /* Identifier */) { + const copied = serializeEntityNameAsExpression(node); + return createCheckedValue(copied, copied); + } + if (node.left.kind === 80 /* Identifier */) { + return createCheckedValue(serializeEntityNameAsExpression(node.left), serializeEntityNameAsExpression(node)); + } + const left = serializeEntityNameAsExpressionFallback(node.left); + const temp = factory2.createTempVariable(hoistVariableDeclaration); + return factory2.createLogicalAnd( + factory2.createLogicalAnd( + left.left, + factory2.createStrictInequality(factory2.createAssignment(temp, left.right), factory2.createVoidZero()) + ), + factory2.createPropertyAccessExpression(temp, node.right) + ); + } + function serializeEntityNameAsExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + const name = setParent(setTextRange(parseNodeFactory.cloneNode(node), node), node.parent); + name.original = void 0; + setParent(name, getParseTreeNode(currentLexicalScope)); + return name; + case 166 /* QualifiedName */: + return serializeQualifiedNameAsExpression(node); + } + } + function serializeQualifiedNameAsExpression(node) { + return factory2.createPropertyAccessExpression(serializeEntityNameAsExpression(node.left), node.right); + } + function getGlobalConstructorWithFallback(name) { + return factory2.createConditionalExpression( + factory2.createTypeCheck(factory2.createIdentifier(name), "function"), + /*questionToken*/ + void 0, + factory2.createIdentifier(name), + /*colonToken*/ + void 0, + factory2.createIdentifier("Object") + ); + } + function getGlobalConstructor(name, minLanguageVersion) { + return languageVersion < minLanguageVersion ? getGlobalConstructorWithFallback(name) : factory2.createIdentifier(name); + } +} + +// src/compiler/transformers/legacyDecorators.ts +function transformLegacyDecorators(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const previousOnSubstituteNode = context.onSubstituteNode; + context.onSubstituteNode = onSubstituteNode; + let classAliases; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + return visited; + } + function modifierVisitor(node) { + return isDecorator(node) ? void 0 : node; + } + function visitor(node) { + if (!(node.transformFlags & 33554432 /* ContainsDecorators */)) { + return node; + } + switch (node.kind) { + case 170 /* Decorator */: + return void 0; + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + return visitConstructorDeclaration(node); + case 174 /* MethodDeclaration */: + return visitMethodDeclaration(node); + case 178 /* SetAccessor */: + return visitSetAccessorDeclaration(node); + case 177 /* GetAccessor */: + return visitGetAccessorDeclaration(node); + case 172 /* PropertyDeclaration */: + return visitPropertyDeclaration(node); + case 169 /* Parameter */: + return visitParameterDeclaration(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitClassDeclaration(node) { + if (!(classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + true, + node + ) || childIsDecorated( + /*useLegacyDecorators*/ + true, + node + ))) { + return visitEachChild(node, visitor, context); + } + const statements = classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + true, + node + ) ? transformClassDeclarationWithClassDecorators(node, node.name) : transformClassDeclarationWithoutClassDecorators(node, node.name); + return singleOrMany(statements); + } + function decoratorContainsPrivateIdentifierInExpression(decorator) { + return !!(decorator.transformFlags & 536870912 /* ContainsPrivateIdentifierInExpression */); + } + function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) { + return some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression); + } + function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) { + for (const member of node.members) { + if (!canHaveDecorators(member)) continue; + const allDecorators = getAllDecoratorsOfClassElement( + member, + node, + /*useLegacyDecorators*/ + true + ); + if (some(allDecorators == null ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression)) return true; + if (some(allDecorators == null ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression)) return true; + } + return false; + } + function transformDecoratorsOfClassElements(node, members) { + let decorationStatements = []; + addClassElementDecorationStatements( + decorationStatements, + node, + /*isStatic*/ + false + ); + addClassElementDecorationStatements( + decorationStatements, + node, + /*isStatic*/ + true + ); + if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) { + members = setTextRange( + factory2.createNodeArray([ + ...members, + factory2.createClassStaticBlockDeclaration( + factory2.createBlock( + decorationStatements, + /*multiLine*/ + true + ) + ) + ]), + members + ); + decorationStatements = void 0; + } + return { decorationStatements, members }; + } + function transformClassDeclarationWithoutClassDecorators(node, name) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + let members = visitNodes2(node.members, visitor, isClassElement); + let decorationStatements = []; + ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); + const updated = factory2.updateClassDeclaration( + node, + modifiers, + name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + return addRange([updated], decorationStatements); + } + function transformClassDeclarationWithClassDecorators(node, name) { + const isExport = hasSyntacticModifier(node, 32 /* Export */); + const isDefault = hasSyntacticModifier(node, 2048 /* Default */); + const modifiers = visitNodes2(node.modifiers, (node2) => isExportOrDefaultModifier(node2) || isDecorator(node2) ? void 0 : node2, isModifierLike); + const location = moveRangePastModifiers(node); + const classAlias = getClassAliasIfNeeded(node); + const declName = languageVersion < 2 /* ES2015 */ ? factory2.getInternalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ) : factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + let members = visitNodes2(node.members, visitor, isClassElement); + let decorationStatements = []; + ({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members)); + const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 256 /* Static */) || isClassStaticBlockDeclaration(member)); + if (assignClassAliasInStaticBlock) { + members = setTextRange( + factory2.createNodeArray([ + factory2.createClassStaticBlockDeclaration( + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment(classAlias, factory2.createThis()) + ) + ]) + ), + ...members + ]), + members + ); + } + const classExpression = factory2.createClassExpression( + modifiers, + name && isGeneratedIdentifier(name) ? void 0 : name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + setOriginalNode(classExpression, node); + setTextRange(classExpression, location); + const varInitializer = classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression; + const varDecl = factory2.createVariableDeclaration( + declName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + varInitializer + ); + setOriginalNode(varDecl, node); + const varDeclList = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList + ); + setOriginalNode(varStatement, node); + setTextRange(varStatement, location); + setCommentRange(varStatement, node); + const statements = [varStatement]; + addRange(statements, decorationStatements); + addConstructorDecorationStatement(statements, node); + if (isExport) { + if (isDefault) { + const exportStatement = factory2.createExportDefault(declName); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExternalModuleExport(factory2.getDeclarationName(node)); + statements.push(exportStatement); + } + } + return statements; + } + function visitClassExpression(node) { + return factory2.updateClassExpression( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.name, + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + visitNodes2(node.members, visitor, isClassElement) + ); + } + function visitConstructorDeclaration(node) { + return factory2.updateConstructorDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + visitNodes2(node.parameters, visitor, isParameter), + visitNode(node.body, visitor, isBlock) + ); + } + function finishClassElement(updated, original) { + if (updated !== original) { + setCommentRange(updated, original); + setSourceMapRange(updated, moveRangePastModifiers(original)); + } + return updated; + } + function visitMethodDeclaration(node) { + return finishClassElement( + factory2.updateMethodDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.asteriskToken, + Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), + /*questionToken*/ + void 0, + /*typeParameters*/ + void 0, + visitNodes2(node.parameters, visitor, isParameter), + /*type*/ + void 0, + visitNode(node.body, visitor, isBlock) + ), + node + ); + } + function visitGetAccessorDeclaration(node) { + return finishClassElement( + factory2.updateGetAccessorDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), + visitNodes2(node.parameters, visitor, isParameter), + /*type*/ + void 0, + visitNode(node.body, visitor, isBlock) + ), + node + ); + } + function visitSetAccessorDeclaration(node) { + return finishClassElement( + factory2.updateSetAccessorDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), + visitNodes2(node.parameters, visitor, isParameter), + visitNode(node.body, visitor, isBlock) + ), + node + ); + } + function visitPropertyDeclaration(node) { + if (node.flags & 33554432 /* Ambient */ || hasSyntacticModifier(node, 128 /* Ambient */)) { + return void 0; + } + return finishClassElement( + factory2.updatePropertyDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifier), + Debug.checkDefined(visitNode(node.name, visitor, isPropertyName)), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ), + node + ); + } + function visitParameterDeclaration(node) { + const updated = factory2.updateParameterDeclaration( + node, + elideNodes(factory2, node.modifiers), + node.dotDotDotToken, + Debug.checkDefined(visitNode(node.name, visitor, isBindingName)), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + if (updated !== node) { + setCommentRange(updated, node); + setTextRange(updated, moveRangePastModifiers(node)); + setSourceMapRange(updated, moveRangePastModifiers(node)); + setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); + } + return updated; + } + function isSyntheticMetadataDecorator(node) { + return isCallToHelper(node.expression, "___metadata"); + } + function transformAllDecoratorsOfDeclaration(allDecorators) { + if (!allDecorators) { + return void 0; + } + const { false: decorators, true: metadata } = groupBy(allDecorators.decorators, isSyntheticMetadataDecorator); + const decoratorExpressions = []; + addRange(decoratorExpressions, map(decorators, transformDecorator)); + addRange(decoratorExpressions, flatMap(allDecorators.parameters, transformDecoratorsOfParameter)); + addRange(decoratorExpressions, map(metadata, transformDecorator)); + return decoratorExpressions; + } + function addClassElementDecorationStatements(statements, node, isStatic2) { + addRange(statements, map(generateClassElementDecorationExpressions(node, isStatic2), (expr) => factory2.createExpressionStatement(expr))); + } + function isDecoratedClassElement(member, isStaticElement, parent) { + return nodeOrChildIsDecorated( + /*useLegacyDecorators*/ + true, + member, + parent + ) && isStaticElement === isStatic(member); + } + function getDecoratedClassElements(node, isStatic2) { + return filter(node.members, (m) => isDecoratedClassElement(m, isStatic2, node)); + } + function generateClassElementDecorationExpressions(node, isStatic2) { + const members = getDecoratedClassElements(node, isStatic2); + let expressions; + for (const member of members) { + expressions = append(expressions, generateClassElementDecorationExpression(node, member)); + } + return expressions; + } + function generateClassElementDecorationExpression(node, member) { + const allDecorators = getAllDecoratorsOfClassElement( + member, + node, + /*useLegacyDecorators*/ + true + ); + const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators); + if (!decoratorExpressions) { + return void 0; + } + const prefix = getClassMemberPrefix(node, member); + const memberName = getExpressionForPropertyName( + member, + /*generateNameForComputedPropertyName*/ + !hasSyntacticModifier(member, 128 /* Ambient */) + ); + const descriptor = isPropertyDeclaration(member) && !hasAccessorModifier(member) ? factory2.createVoidZero() : factory2.createNull(); + const helper = emitHelpers().createDecorateHelper( + decoratorExpressions, + prefix, + memberName, + descriptor + ); + setEmitFlags(helper, 3072 /* NoComments */); + setSourceMapRange(helper, moveRangePastModifiers(member)); + return helper; + } + function addConstructorDecorationStatement(statements, node) { + const expression = generateConstructorDecorationExpression(node); + if (expression) { + statements.push(setOriginalNode(factory2.createExpressionStatement(expression), node)); + } + } + function generateConstructorDecorationExpression(node) { + const allDecorators = getAllDecoratorsOfClass(node); + const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators); + if (!decoratorExpressions) { + return void 0; + } + const classAlias = classAliases && classAliases[getOriginalNodeId(node)]; + const localName = languageVersion < 2 /* ES2015 */ ? factory2.getInternalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ) : factory2.getDeclarationName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + const decorate = emitHelpers().createDecorateHelper(decoratorExpressions, localName); + const expression = factory2.createAssignment(localName, classAlias ? factory2.createAssignment(classAlias, decorate) : decorate); + setEmitFlags(expression, 3072 /* NoComments */); + setSourceMapRange(expression, moveRangePastModifiers(node)); + return expression; + } + function transformDecorator(decorator) { + return Debug.checkDefined(visitNode(decorator.expression, visitor, isExpression)); + } + function transformDecoratorsOfParameter(decorators, parameterOffset) { + let expressions; + if (decorators) { + expressions = []; + for (const decorator of decorators) { + const helper = emitHelpers().createParamHelper( + transformDecorator(decorator), + parameterOffset + ); + setTextRange(helper, decorator.expression); + setEmitFlags(helper, 3072 /* NoComments */); + expressions.push(helper); + } + } + return expressions; + } + function getExpressionForPropertyName(member, generateNameForComputedPropertyName) { + const name = member.name; + if (isPrivateIdentifier(name)) { + return factory2.createIdentifier(""); + } else if (isComputedPropertyName(name)) { + return generateNameForComputedPropertyName && !isSimpleInlineableExpression(name.expression) ? factory2.getGeneratedNameForNode(name) : name.expression; + } else if (isIdentifier(name)) { + return factory2.createStringLiteral(idText(name)); + } else { + return factory2.cloneNode(name); + } + } + function enableSubstitutionForClassAliases() { + if (!classAliases) { + context.enableSubstitution(80 /* Identifier */); + classAliases = []; + } + } + function getClassAliasIfNeeded(node) { + if (resolver.hasNodeCheckFlag(node, 262144 /* ContainsConstructorReference */)) { + enableSubstitutionForClassAliases(); + const classAlias = factory2.createUniqueName(node.name && !isGeneratedIdentifier(node.name) ? idText(node.name) : "default"); + classAliases[getOriginalNodeId(node)] = classAlias; + hoistVariableDeclaration(classAlias); + return classAlias; + } + } + function getClassPrototype(node) { + return factory2.createPropertyAccessExpression(factory2.getDeclarationName(node), "prototype"); + } + function getClassMemberPrefix(node, member) { + return isStatic(member) ? factory2.getDeclarationName(node) : getClassPrototype(node); + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + } + return node; + } + function substituteExpressionIdentifier(node) { + return trySubstituteClassAlias(node) ?? node; + } + function trySubstituteClassAlias(node) { + if (classAliases) { + if (resolver.hasNodeCheckFlag(node, 536870912 /* ConstructorReference */)) { + const declaration = resolver.getReferencedValueDeclaration(node); + if (declaration) { + const classAlias = classAliases[declaration.id]; + if (classAlias) { + const clone = factory2.cloneNode(classAlias); + setSourceMapRange(clone, node); + setCommentRange(clone, node); + return clone; + } + } + } + } + return void 0; + } +} + +// src/compiler/transformers/esDecorators.ts +function transformESDecorators(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + startLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const languageVersion = getEmitScriptTarget(context.getCompilerOptions()); + let top; + let classInfo; + let classThis; + let classSuper; + let pendingExpressions; + let shouldTransformPrivateStaticElementsInFile; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + top = void 0; + shouldTransformPrivateStaticElementsInFile = false; + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + if (shouldTransformPrivateStaticElementsInFile) { + addInternalEmitFlags(visited, 32 /* TransformPrivateStaticElements */); + shouldTransformPrivateStaticElementsInFile = false; + } + return visited; + } + function updateState() { + classInfo = void 0; + classThis = void 0; + classSuper = void 0; + switch (top == null ? void 0 : top.kind) { + case "class": + classInfo = top.classInfo; + break; + case "class-element": + classInfo = top.next.classInfo; + classThis = top.classThis; + classSuper = top.classSuper; + break; + case "name": + const grandparent = top.next.next.next; + if ((grandparent == null ? void 0 : grandparent.kind) === "class-element") { + classInfo = grandparent.next.classInfo; + classThis = grandparent.classThis; + classSuper = grandparent.classSuper; + } + break; + } + } + function enterClass(classInfo2) { + top = { kind: "class", next: top, classInfo: classInfo2, savedPendingExpressions: pendingExpressions }; + pendingExpressions = void 0; + updateState(); + } + function exitClass() { + Debug.assert((top == null ? void 0 : top.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`); + pendingExpressions = top.savedPendingExpressions; + top = top.next; + updateState(); + } + function enterClassElement(node) { + var _a, _b; + Debug.assert((top == null ? void 0 : top.kind) === "class", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class' but got '${top == null ? void 0 : top.kind}' instead.`); + top = { kind: "class-element", next: top }; + if (isClassStaticBlockDeclaration(node) || isPropertyDeclaration(node) && hasStaticModifier(node)) { + top.classThis = (_a = top.next.classInfo) == null ? void 0 : _a.classThis; + top.classSuper = (_b = top.next.classInfo) == null ? void 0 : _b.classSuper; + } + updateState(); + } + function exitClassElement() { + var _a; + Debug.assert((top == null ? void 0 : top.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`); + Debug.assert(((_a = top.next) == null ? void 0 : _a.kind) === "class", "Incorrect value for top.next.kind.", () => { + var _a2; + return `Expected top.next.kind to be 'class' but got '${(_a2 = top.next) == null ? void 0 : _a2.kind}' instead.`; + }); + top = top.next; + updateState(); + } + function enterName() { + Debug.assert((top == null ? void 0 : top.kind) === "class-element", "Incorrect value for top.kind.", () => `Expected top.kind to be 'class-element' but got '${top == null ? void 0 : top.kind}' instead.`); + top = { kind: "name", next: top }; + updateState(); + } + function exitName() { + Debug.assert((top == null ? void 0 : top.kind) === "name", "Incorrect value for top.kind.", () => `Expected top.kind to be 'name' but got '${top == null ? void 0 : top.kind}' instead.`); + top = top.next; + updateState(); + } + function enterOther() { + if ((top == null ? void 0 : top.kind) === "other") { + Debug.assert(!pendingExpressions); + top.depth++; + } else { + top = { kind: "other", next: top, depth: 0, savedPendingExpressions: pendingExpressions }; + pendingExpressions = void 0; + updateState(); + } + } + function exitOther() { + Debug.assert((top == null ? void 0 : top.kind) === "other", "Incorrect value for top.kind.", () => `Expected top.kind to be 'other' but got '${top == null ? void 0 : top.kind}' instead.`); + if (top.depth > 0) { + Debug.assert(!pendingExpressions); + top.depth--; + } else { + pendingExpressions = top.savedPendingExpressions; + top = top.next; + updateState(); + } + } + function shouldVisitNode(node) { + return !!(node.transformFlags & 33554432 /* ContainsDecorators */) || !!classThis && !!(node.transformFlags & 16384 /* ContainsLexicalThis */) || !!classThis && !!classSuper && !!(node.transformFlags & 134217728 /* ContainsLexicalSuper */); + } + function visitor(node) { + if (!shouldVisitNode(node)) { + return node; + } + switch (node.kind) { + case 170 /* Decorator */: + return Debug.fail("Use `modifierVisitor` instead."); + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 176 /* Constructor */: + case 172 /* PropertyDeclaration */: + case 175 /* ClassStaticBlockDeclaration */: + return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); + case 169 /* Parameter */: + return visitParameterDeclaration(node); + case 226 /* BinaryExpression */: + return visitBinaryExpression( + node, + /*discarded*/ + false + ); + case 303 /* PropertyAssignment */: + return visitPropertyAssignment(node); + case 260 /* VariableDeclaration */: + return visitVariableDeclaration(node); + case 208 /* BindingElement */: + return visitBindingElement(node); + case 277 /* ExportAssignment */: + return visitExportAssignment(node); + case 110 /* ThisKeyword */: + return visitThisExpression(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 355 /* CommaListExpression */: + return visitCommaListExpression( + node, + /*discarded*/ + false + ); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression( + node, + /*discarded*/ + false + ); + case 354 /* PartiallyEmittedExpression */: + return visitPartiallyEmittedExpression( + node, + /*discarded*/ + false + ); + case 213 /* CallExpression */: + return visitCallExpression(node); + case 215 /* TaggedTemplateExpression */: + return visitTaggedTemplateExpression(node); + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPreOrPostfixUnaryExpression( + node, + /*discarded*/ + false + ); + case 211 /* PropertyAccessExpression */: + return visitPropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return visitElementAccessExpression(node); + case 167 /* ComputedPropertyName */: + return visitComputedPropertyName(node); + case 174 /* MethodDeclaration */: + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: { + enterOther(); + const result = visitEachChild(node, fallbackVisitor, context); + exitOther(); + return result; + } + default: + return visitEachChild(node, fallbackVisitor, context); + } + } + function fallbackVisitor(node) { + switch (node.kind) { + case 170 /* Decorator */: + return void 0; + default: + return visitor(node); + } + } + function modifierVisitor(node) { + switch (node.kind) { + case 170 /* Decorator */: + return void 0; + default: + return node; + } + } + function classElementVisitor(node) { + switch (node.kind) { + case 176 /* Constructor */: + return visitConstructorDeclaration(node); + case 174 /* MethodDeclaration */: + return visitMethodDeclaration(node); + case 177 /* GetAccessor */: + return visitGetAccessorDeclaration(node); + case 178 /* SetAccessor */: + return visitSetAccessorDeclaration(node); + case 172 /* PropertyDeclaration */: + return visitPropertyDeclaration(node); + case 175 /* ClassStaticBlockDeclaration */: + return visitClassStaticBlockDeclaration(node); + default: + return visitor(node); + } + } + function discardedValueVisitor(node) { + switch (node.kind) { + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPreOrPostfixUnaryExpression( + node, + /*discarded*/ + true + ); + case 226 /* BinaryExpression */: + return visitBinaryExpression( + node, + /*discarded*/ + true + ); + case 355 /* CommaListExpression */: + return visitCommaListExpression( + node, + /*discarded*/ + true + ); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression( + node, + /*discarded*/ + true + ); + default: + return visitor(node); + } + } + function getHelperVariableName(node) { + let declarationName = node.name && isIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name) : node.name && isPrivateIdentifier(node.name) && !isGeneratedIdentifier(node.name) ? idText(node.name).slice(1) : node.name && isStringLiteral(node.name) && isIdentifierText(node.name.text, 99 /* ESNext */) ? node.name.text : isClassLike(node) ? "class" : "member"; + if (isGetAccessor(node)) declarationName = `get_${declarationName}`; + if (isSetAccessor(node)) declarationName = `set_${declarationName}`; + if (node.name && isPrivateIdentifier(node.name)) declarationName = `private_${declarationName}`; + if (isStatic(node)) declarationName = `static_${declarationName}`; + return "_" + declarationName; + } + function createHelperVariable(node, suffix) { + return factory2.createUniqueName(`${getHelperVariableName(node)}_${suffix}`, 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */); + } + function createLet(name, initializer) { + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ) + ], 1 /* Let */) + ); + } + function createClassInfo(node) { + const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */); + let instanceMethodExtraInitializersName; + let staticMethodExtraInitializersName; + let hasStaticInitializers = false; + let hasNonAmbientInstanceFields = false; + let hasStaticPrivateClassElements = false; + let classThis2; + let pendingStaticInitializers; + let pendingInstanceInitializers; + if (nodeIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + const needsUniqueClassThis = some(node.members, (member) => (isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)); + classThis2 = factory2.createUniqueName( + "_classThis", + needsUniqueClassThis ? 16 /* Optimistic */ | 8 /* ReservedInNestedScopes */ : 16 /* Optimistic */ | 32 /* FileLevel */ + ); + } + for (const member of node.members) { + if (isMethodOrAccessor(member) && nodeOrChildIsDecorated( + /*useLegacyDecorators*/ + false, + member, + node + )) { + if (hasStaticModifier(member)) { + if (!staticMethodExtraInitializersName) { + staticMethodExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const initializer = emitHelpers().createRunInitializersHelper(classThis2 ?? factory2.createThis(), staticMethodExtraInitializersName); + setSourceMapRange(initializer, node.name ?? moveRangePastDecorators(node)); + pendingStaticInitializers ?? (pendingStaticInitializers = []); + pendingStaticInitializers.push(initializer); + } + } else { + if (!instanceMethodExtraInitializersName) { + instanceMethodExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + const initializer = emitHelpers().createRunInitializersHelper(factory2.createThis(), instanceMethodExtraInitializersName); + setSourceMapRange(initializer, node.name ?? moveRangePastDecorators(node)); + pendingInstanceInitializers ?? (pendingInstanceInitializers = []); + pendingInstanceInitializers.push(initializer); + } + instanceMethodExtraInitializersName ?? (instanceMethodExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)); + } + } + if (isClassStaticBlockDeclaration(member)) { + if (!isClassNamedEvaluationHelperBlock(member)) { + hasStaticInitializers = true; + } + } else if (isPropertyDeclaration(member)) { + if (hasStaticModifier(member)) { + hasStaticInitializers || (hasStaticInitializers = !!member.initializer || hasDecorators(member)); + } else { + hasNonAmbientInstanceFields || (hasNonAmbientInstanceFields = !isAmbientPropertyDeclaration(member)); + } + } + if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) { + hasStaticPrivateClassElements = true; + } + if (staticMethodExtraInitializersName && instanceMethodExtraInitializersName && hasStaticInitializers && hasNonAmbientInstanceFields && hasStaticPrivateClassElements) { + break; + } + } + return { + class: node, + classThis: classThis2, + metadataReference, + instanceMethodExtraInitializersName, + staticMethodExtraInitializersName, + hasStaticInitializers, + hasNonAmbientInstanceFields, + hasStaticPrivateClassElements, + pendingStaticInitializers, + pendingInstanceInitializers + }; + } + function transformClassLike(node) { + startLexicalEnvironment(); + if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + )) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, factory2.createStringLiteral("")); + } + const classReference = factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + false, + /*ignoreAssignedName*/ + true + ); + const classInfo2 = createClassInfo(node); + const classDefinitionStatements = []; + let leadingBlockStatements; + let trailingBlockStatements; + let syntheticConstructor; + let heritageClauses; + let shouldTransformPrivateStaticElementsInClass = false; + const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); + if (classDecorators) { + classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); + classInfo2.classExtraInitializersName = factory2.createUniqueName("_classExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */); + Debug.assertIsDefined(classInfo2.classThis); + classDefinitionStatements.push( + createLet(classInfo2.classDecoratorsName, factory2.createArrayLiteralExpression(classDecorators)), + createLet(classInfo2.classDescriptorName), + createLet(classInfo2.classExtraInitializersName, factory2.createArrayLiteralExpression()), + createLet(classInfo2.classThis) + ); + if (classInfo2.hasStaticPrivateClassElements) { + shouldTransformPrivateStaticElementsInClass = true; + shouldTransformPrivateStaticElementsInFile = true; + } + } + const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */); + const extendsElement = extendsClause && firstOrUndefined(extendsClause.types); + const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression); + if (extendsExpression) { + classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */); + const unwrapped = skipOuterExpressions(extendsExpression); + const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression; + classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression)); + const updatedExtendsElement = factory2.updateExpressionWithTypeArguments( + extendsElement, + classInfo2.classSuper, + /*typeArguments*/ + void 0 + ); + const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]); + heritageClauses = factory2.createNodeArray([updatedExtendsClause]); + } + const renamedClassThis = classInfo2.classThis ?? factory2.createThis(); + enterClass(classInfo2); + leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper)); + let members = node.members; + members = visitNodes2(members, (node2) => isConstructorDeclaration(node2) ? node2 : classElementVisitor(node2), isClassElement); + members = visitNodes2(members, (node2) => isConstructorDeclaration(node2) ? classElementVisitor(node2) : node2, isClassElement); + if (pendingExpressions) { + let outerThis; + for (let expression of pendingExpressions) { + expression = visitNode(expression, function thisVisitor(node2) { + if (!(node2.transformFlags & 16384 /* ContainsLexicalThis */)) { + return node2; + } + switch (node2.kind) { + case 110 /* ThisKeyword */: + if (!outerThis) { + outerThis = factory2.createUniqueName("_outerThis", 16 /* Optimistic */); + classDefinitionStatements.unshift(createLet(outerThis, factory2.createThis())); + } + return outerThis; + default: + return visitEachChild(node2, thisVisitor, context); + } + }, isExpression); + const statement = factory2.createExpressionStatement(expression); + leadingBlockStatements = append(leadingBlockStatements, statement); + } + pendingExpressions = void 0; + } + exitClass(); + if (some(classInfo2.pendingInstanceInitializers) && !getFirstConstructorWithBody(node)) { + const initializerStatements = prepareConstructor(node, classInfo2); + if (initializerStatements) { + const extendsClauseElement = getEffectiveBaseTypeNode(node); + const isDerivedClass = !!(extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */); + const constructorStatements = []; + if (isDerivedClass) { + const spreadArguments = factory2.createSpreadElement(factory2.createIdentifier("arguments")); + const superCall = factory2.createCallExpression( + factory2.createSuper(), + /*typeArguments*/ + void 0, + [spreadArguments] + ); + constructorStatements.push(factory2.createExpressionStatement(superCall)); + } + addRange(constructorStatements, initializerStatements); + const constructorBody = factory2.createBlock( + constructorStatements, + /*multiLine*/ + true + ); + syntheticConstructor = factory2.createConstructorDeclaration( + /*modifiers*/ + void 0, + [], + constructorBody + ); + } + } + if (classInfo2.staticMethodExtraInitializersName) { + classDefinitionStatements.push( + createLet(classInfo2.staticMethodExtraInitializersName, factory2.createArrayLiteralExpression()) + ); + } + if (classInfo2.instanceMethodExtraInitializersName) { + classDefinitionStatements.push( + createLet(classInfo2.instanceMethodExtraInitializersName, factory2.createArrayLiteralExpression()) + ); + } + if (classInfo2.memberInfos) { + forEachEntry(classInfo2.memberInfos, (memberInfo, member) => { + if (isStatic(member)) { + classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName)); + if (memberInfo.memberInitializersName) { + classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression())); + } + if (memberInfo.memberExtraInitializersName) { + classDefinitionStatements.push(createLet(memberInfo.memberExtraInitializersName, factory2.createArrayLiteralExpression())); + } + if (memberInfo.memberDescriptorName) { + classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName)); + } + } + }); + } + if (classInfo2.memberInfos) { + forEachEntry(classInfo2.memberInfos, (memberInfo, member) => { + if (!isStatic(member)) { + classDefinitionStatements.push(createLet(memberInfo.memberDecoratorsName)); + if (memberInfo.memberInitializersName) { + classDefinitionStatements.push(createLet(memberInfo.memberInitializersName, factory2.createArrayLiteralExpression())); + } + if (memberInfo.memberExtraInitializersName) { + classDefinitionStatements.push(createLet(memberInfo.memberExtraInitializersName, factory2.createArrayLiteralExpression())); + } + if (memberInfo.memberDescriptorName) { + classDefinitionStatements.push(createLet(memberInfo.memberDescriptorName)); + } + } + }); + } + leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticNonFieldDecorationStatements); + leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticNonFieldDecorationStatements); + leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.staticFieldDecorationStatements); + leadingBlockStatements = addRange(leadingBlockStatements, classInfo2.nonStaticFieldDecorationStatements); + if (classInfo2.classDescriptorName && classInfo2.classDecoratorsName && classInfo2.classExtraInitializersName && classInfo2.classThis) { + leadingBlockStatements ?? (leadingBlockStatements = []); + const valueProperty = factory2.createPropertyAssignment("value", renamedClassThis); + const classDescriptor = factory2.createObjectLiteralExpression([valueProperty]); + const classDescriptorAssignment = factory2.createAssignment(classInfo2.classDescriptorName, classDescriptor); + const classNameReference = factory2.createPropertyAccessExpression(renamedClassThis, "name"); + const esDecorateHelper2 = emitHelpers().createESDecorateHelper( + factory2.createNull(), + classDescriptorAssignment, + classInfo2.classDecoratorsName, + { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference }, + factory2.createNull(), + classInfo2.classExtraInitializersName + ); + const esDecorateStatement = factory2.createExpressionStatement(esDecorateHelper2); + setSourceMapRange(esDecorateStatement, moveRangePastDecorators(node)); + leadingBlockStatements.push(esDecorateStatement); + const classDescriptorValueReference = factory2.createPropertyAccessExpression(classInfo2.classDescriptorName, "value"); + const classThisAssignment = factory2.createAssignment(classInfo2.classThis, classDescriptorValueReference); + const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment); + leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment)); + } + leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference)); + if (some(classInfo2.pendingStaticInitializers)) { + for (const initializer of classInfo2.pendingStaticInitializers) { + const initializerStatement = factory2.createExpressionStatement(initializer); + setSourceMapRange(initializerStatement, getSourceMapRange(initializer)); + trailingBlockStatements = append(trailingBlockStatements, initializerStatement); + } + classInfo2.pendingStaticInitializers = void 0; + } + if (classInfo2.classExtraInitializersName) { + const runClassInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.classExtraInitializersName); + const runClassInitializersStatement = factory2.createExpressionStatement(runClassInitializersHelper); + setSourceMapRange(runClassInitializersStatement, node.name ?? moveRangePastDecorators(node)); + trailingBlockStatements = append(trailingBlockStatements, runClassInitializersStatement); + } + if (leadingBlockStatements && trailingBlockStatements && !classInfo2.hasStaticInitializers) { + addRange(leadingBlockStatements, trailingBlockStatements); + trailingBlockStatements = void 0; + } + const leadingStaticBlock = leadingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + leadingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock && shouldTransformPrivateStaticElementsInClass) { + setInternalEmitFlags(leadingStaticBlock, 32 /* TransformPrivateStaticElements */); + } + const trailingStaticBlock = trailingBlockStatements && factory2.createClassStaticBlockDeclaration(factory2.createBlock( + trailingBlockStatements, + /*multiLine*/ + true + )); + if (leadingStaticBlock || syntheticConstructor || trailingStaticBlock) { + const newMembers = []; + const existingNamedEvaluationHelperBlockIndex = members.findIndex(isClassNamedEvaluationHelperBlock); + if (leadingStaticBlock) { + addRange(newMembers, members, 0, existingNamedEvaluationHelperBlockIndex + 1); + newMembers.push(leadingStaticBlock); + addRange(newMembers, members, existingNamedEvaluationHelperBlockIndex + 1); + } else { + addRange(newMembers, members); + } + if (syntheticConstructor) { + newMembers.push(syntheticConstructor); + } + if (trailingStaticBlock) { + newMembers.push(trailingStaticBlock); + } + members = setTextRange(factory2.createNodeArray(newMembers), members); + } + const lexicalEnvironment = endLexicalEnvironment(); + let classExpression; + if (classDecorators) { + classExpression = factory2.createClassExpression( + /*modifiers*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + if (classInfo2.classThis) { + classExpression = injectClassThisAssignmentIfMissing(factory2, classExpression, classInfo2.classThis); + } + const classReferenceDeclaration = factory2.createVariableDeclaration( + classReference, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + classExpression + ); + const classReferenceVarDeclList = factory2.createVariableDeclarationList([classReferenceDeclaration]); + const returnExpr = classInfo2.classThis ? factory2.createAssignment(classReference, classInfo2.classThis) : classReference; + classDefinitionStatements.push( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + classReferenceVarDeclList + ), + factory2.createReturnStatement(returnExpr) + ); + } else { + classExpression = factory2.createClassExpression( + /*modifiers*/ + void 0, + node.name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + classDefinitionStatements.push(factory2.createReturnStatement(classExpression)); + } + if (shouldTransformPrivateStaticElementsInClass) { + addInternalEmitFlags(classExpression, 32 /* TransformPrivateStaticElements */); + for (const member of classExpression.members) { + if ((isPrivateIdentifierClassElementDeclaration(member) || isAutoAccessorPropertyDeclaration(member)) && hasStaticModifier(member)) { + addInternalEmitFlags(member, 32 /* TransformPrivateStaticElements */); + } + } + } + setOriginalNode(classExpression, node); + return factory2.createImmediatelyInvokedArrowFunction(factory2.mergeLexicalEnvironment(classDefinitionStatements, lexicalEnvironment)); + } + function isDecoratedClassLike(node) { + return classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + node + ) || childIsDecorated( + /*useLegacyDecorators*/ + false, + node + ); + } + function visitClassDeclaration(node) { + if (isDecoratedClassLike(node)) { + const statements = []; + const originalClass = getOriginalNode(node, isClassLike) ?? node; + const className = originalClass.name ? factory2.createStringLiteralFromNode(originalClass.name) : factory2.createStringLiteral("default"); + const isExport = hasSyntacticModifier(node, 32 /* Export */); + const isDefault = hasSyntacticModifier(node, 2048 /* Default */); + if (!node.name) { + node = injectClassNamedEvaluationHelperBlockIfMissing(context, node, className); + } + if (isExport && isDefault) { + const iife = transformClassLike(node); + if (node.name) { + const varDecl = factory2.createVariableDeclaration( + factory2.getLocalName(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDecls + ); + statements.push(varStatement); + const exportStatement = factory2.createExportDefault(factory2.getDeclarationName(node)); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } else { + const exportStatement = factory2.createExportDefault(iife); + setOriginalNode(exportStatement, node); + setCommentRange(exportStatement, getCommentRange(node)); + setSourceMapRange(exportStatement, moveRangePastDecorators(node)); + statements.push(exportStatement); + } + } else { + Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name."); + const iife = transformClassLike(node); + const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor; + const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier); + const declName = factory2.getLocalName( + node, + /*allowComments*/ + false, + /*allowSourceMaps*/ + true + ); + const varDecl = factory2.createVariableDeclaration( + declName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + iife + ); + setOriginalNode(varDecl, node); + const varDecls = factory2.createVariableDeclarationList([varDecl], 1 /* Let */); + const varStatement = factory2.createVariableStatement(modifiers, varDecls); + setOriginalNode(varStatement, node); + setCommentRange(varStatement, getCommentRange(node)); + statements.push(varStatement); + if (isExport) { + const exportStatement = factory2.createExternalModuleExport(declName); + setOriginalNode(exportStatement, node); + statements.push(exportStatement); + } + } + return singleOrMany(statements); + } else { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + enterClass( + /*classInfo*/ + void 0 + ); + const members = visitNodes2(node.members, classElementVisitor, isClassElement); + exitClass(); + return factory2.updateClassDeclaration( + node, + modifiers, + node.name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + } + } + function visitClassExpression(node) { + if (isDecoratedClassLike(node)) { + const iife = transformClassLike(node); + setOriginalNode(iife, node); + return iife; + } else { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause); + enterClass( + /*classInfo*/ + void 0 + ); + const members = visitNodes2(node.members, classElementVisitor, isClassElement); + exitClass(); + return factory2.updateClassExpression( + node, + modifiers, + node.name, + /*typeParameters*/ + void 0, + heritageClauses, + members + ); + } + } + function prepareConstructor(_parent, classInfo2) { + if (some(classInfo2.pendingInstanceInitializers)) { + const statements = []; + statements.push( + factory2.createExpressionStatement( + factory2.inlineExpressions(classInfo2.pendingInstanceInitializers) + ) + ); + classInfo2.pendingInstanceInitializers = void 0; + return statements; + } + } + function transformConstructorBodyWorker(statementsOut, statementsIn, statementOffset, superPath, superPathDepth, initializerStatements) { + const superStatementIndex = superPath[superPathDepth]; + const superStatement = statementsIn[superStatementIndex]; + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset, superStatementIndex - statementOffset)); + if (isTryStatement(superStatement)) { + const tryBlockStatements = []; + transformConstructorBodyWorker( + tryBlockStatements, + superStatement.tryBlock.statements, + /*statementOffset*/ + 0, + superPath, + superPathDepth + 1, + initializerStatements + ); + const tryBlockStatementsArray = factory2.createNodeArray(tryBlockStatements); + setTextRange(tryBlockStatementsArray, superStatement.tryBlock.statements); + statementsOut.push(factory2.updateTryStatement( + superStatement, + factory2.updateBlock(superStatement.tryBlock, tryBlockStatements), + visitNode(superStatement.catchClause, visitor, isCatchClause), + visitNode(superStatement.finallyBlock, visitor, isBlock) + )); + } else { + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex, 1)); + addRange(statementsOut, initializerStatements); + } + addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1)); + } + function visitConstructorDeclaration(node) { + enterClassElement(node); + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + const parameters = visitNodes2(node.parameters, visitor, isParameter); + let body; + if (node.body && classInfo) { + const initializerStatements = prepareConstructor(classInfo.class, classInfo); + if (initializerStatements) { + const statements = []; + const nonPrologueStart = factory2.copyPrologue( + node.body.statements, + statements, + /*ensureUseStrict*/ + false, + visitor + ); + const superStatementIndices = findSuperStatementIndexPath(node.body.statements, nonPrologueStart); + if (superStatementIndices.length > 0) { + transformConstructorBodyWorker(statements, node.body.statements, nonPrologueStart, superStatementIndices, 0, initializerStatements); + } else { + addRange(statements, initializerStatements); + addRange(statements, visitNodes2(node.body.statements, visitor, isStatement)); + } + body = factory2.createBlock( + statements, + /*multiLine*/ + true + ); + setOriginalNode(body, node.body); + setTextRange(body, node.body); + } + } + body ?? (body = visitNode(node.body, visitor, isBlock)); + exitClassElement(); + return factory2.updateConstructorDeclaration(node, modifiers, parameters, body); + } + function finishClassElement(updated, original) { + if (updated !== original) { + setCommentRange(updated, original); + setSourceMapRange(updated, moveRangePastDecorators(original)); + } + return updated; + } + function partialTransformClassElement(member, classInfo2, createDescriptor) { + let referencedName; + let name; + let initializersName; + let extraInitializersName; + let thisArg; + let descriptorName; + if (!classInfo2) { + const modifiers2 = visitNodes2(member.modifiers, modifierVisitor, isModifier); + enterName(); + name = visitPropertyName(member.name); + exitName(); + return { modifiers: modifiers2, referencedName, name, initializersName, descriptorName, thisArg }; + } + const memberDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClassElement( + member, + classInfo2.class, + /*useLegacyDecorators*/ + false + )); + const modifiers = visitNodes2(member.modifiers, modifierVisitor, isModifier); + if (memberDecorators) { + const memberDecoratorsName = createHelperVariable(member, "decorators"); + const memberDecoratorsArray = factory2.createArrayLiteralExpression(memberDecorators); + const memberDecoratorsAssignment = factory2.createAssignment(memberDecoratorsName, memberDecoratorsArray); + const memberInfo = { memberDecoratorsName }; + classInfo2.memberInfos ?? (classInfo2.memberInfos = /* @__PURE__ */ new Map()); + classInfo2.memberInfos.set(member, memberInfo); + pendingExpressions ?? (pendingExpressions = []); + pendingExpressions.push(memberDecoratorsAssignment); + const statements = isMethodOrAccessor(member) || isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? classInfo2.staticNonFieldDecorationStatements ?? (classInfo2.staticNonFieldDecorationStatements = []) : classInfo2.nonStaticNonFieldDecorationStatements ?? (classInfo2.nonStaticNonFieldDecorationStatements = []) : isPropertyDeclaration(member) && !isAutoAccessorPropertyDeclaration(member) ? isStatic(member) ? classInfo2.staticFieldDecorationStatements ?? (classInfo2.staticFieldDecorationStatements = []) : classInfo2.nonStaticFieldDecorationStatements ?? (classInfo2.nonStaticFieldDecorationStatements = []) : Debug.fail(); + const kind = isGetAccessorDeclaration(member) ? "getter" : isSetAccessorDeclaration(member) ? "setter" : isMethodDeclaration(member) ? "method" : isAutoAccessorPropertyDeclaration(member) ? "accessor" : isPropertyDeclaration(member) ? "field" : Debug.fail(); + let propertyName; + if (isIdentifier(member.name) || isPrivateIdentifier(member.name)) { + propertyName = { computed: false, name: member.name }; + } else if (isPropertyNameLiteral(member.name)) { + propertyName = { computed: true, name: factory2.createStringLiteralFromNode(member.name) }; + } else { + const expression = member.name.expression; + if (isPropertyNameLiteral(expression) && !isIdentifier(expression)) { + propertyName = { computed: true, name: factory2.createStringLiteralFromNode(expression) }; + } else { + enterName(); + ({ referencedName, name } = visitReferencedPropertyName(member.name)); + propertyName = { computed: true, name: referencedName }; + exitName(); + } + } + const context2 = { + kind, + name: propertyName, + static: isStatic(member), + private: isPrivateIdentifier(member.name), + access: { + // 15.7.3 CreateDecoratorAccessObject (kind, name) + // 2. If _kind_ is ~field~, ~method~, ~accessor~, or ~getter~, then ... + get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member), + // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ... + set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member) + }, + metadata: classInfo2.metadataReference + }; + if (isMethodOrAccessor(member)) { + const methodExtraInitializersName = isStatic(member) ? classInfo2.staticMethodExtraInitializersName : classInfo2.instanceMethodExtraInitializersName; + Debug.assertIsDefined(methodExtraInitializersName); + let descriptor; + if (isPrivateIdentifierClassElementDeclaration(member) && createDescriptor) { + descriptor = createDescriptor(member, visitNodes2(modifiers, (node) => tryCast(node, isAsyncModifier), isModifier)); + memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, "descriptor"); + descriptor = factory2.createAssignment(descriptorName, descriptor); + } + const esDecorateExpression = emitHelpers().createESDecorateHelper(factory2.createThis(), descriptor ?? factory2.createNull(), memberDecoratorsName, context2, factory2.createNull(), methodExtraInitializersName); + const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression); + setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member)); + statements.push(esDecorateStatement); + } else if (isPropertyDeclaration(member)) { + initializersName = memberInfo.memberInitializersName ?? (memberInfo.memberInitializersName = createHelperVariable(member, "initializers")); + extraInitializersName = memberInfo.memberExtraInitializersName ?? (memberInfo.memberExtraInitializersName = createHelperVariable(member, "extraInitializers")); + if (isStatic(member)) { + thisArg = classInfo2.classThis; + } + let descriptor; + if (isPrivateIdentifierClassElementDeclaration(member) && hasAccessorModifier(member) && createDescriptor) { + descriptor = createDescriptor( + member, + /*modifiers*/ + void 0 + ); + memberInfo.memberDescriptorName = descriptorName = createHelperVariable(member, "descriptor"); + descriptor = factory2.createAssignment(descriptorName, descriptor); + } + const esDecorateExpression = emitHelpers().createESDecorateHelper( + isAutoAccessorPropertyDeclaration(member) ? factory2.createThis() : factory2.createNull(), + descriptor ?? factory2.createNull(), + memberDecoratorsName, + context2, + initializersName, + extraInitializersName + ); + const esDecorateStatement = factory2.createExpressionStatement(esDecorateExpression); + setSourceMapRange(esDecorateStatement, moveRangePastDecorators(member)); + statements.push(esDecorateStatement); + } + } + if (name === void 0) { + enterName(); + name = visitPropertyName(member.name); + exitName(); + } + if (!some(modifiers) && (isMethodDeclaration(member) || isPropertyDeclaration(member))) { + setEmitFlags(name, 1024 /* NoLeadingComments */); + } + return { modifiers, referencedName, name, initializersName, extraInitializersName, descriptorName, thisArg }; + } + function visitMethodDeclaration(node) { + enterClassElement(node); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createMethodDescriptorObject); + if (descriptorName) { + exitClassElement(); + return finishClassElement(createMethodDescriptorForwarder(modifiers, name, descriptorName), node); + } else { + const parameters = visitNodes2(node.parameters, visitor, isParameter); + const body = visitNode(node.body, visitor, isBlock); + exitClassElement(); + return finishClassElement(factory2.updateMethodDeclaration( + node, + modifiers, + node.asteriskToken, + name, + /*questionToken*/ + void 0, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body + ), node); + } + } + function visitGetAccessorDeclaration(node) { + enterClassElement(node); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createGetAccessorDescriptorObject); + if (descriptorName) { + exitClassElement(); + return finishClassElement(createGetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); + } else { + const parameters = visitNodes2(node.parameters, visitor, isParameter); + const body = visitNode(node.body, visitor, isBlock); + exitClassElement(); + return finishClassElement(factory2.updateGetAccessorDeclaration( + node, + modifiers, + name, + parameters, + /*type*/ + void 0, + body + ), node); + } + } + function visitSetAccessorDeclaration(node) { + enterClassElement(node); + const { modifiers, name, descriptorName } = partialTransformClassElement(node, classInfo, createSetAccessorDescriptorObject); + if (descriptorName) { + exitClassElement(); + return finishClassElement(createSetAccessorDescriptorForwarder(modifiers, name, descriptorName), node); + } else { + const parameters = visitNodes2(node.parameters, visitor, isParameter); + const body = visitNode(node.body, visitor, isBlock); + exitClassElement(); + return finishClassElement(factory2.updateSetAccessorDeclaration(node, modifiers, name, parameters, body), node); + } + } + function visitClassStaticBlockDeclaration(node) { + enterClassElement(node); + let result; + if (isClassNamedEvaluationHelperBlock(node)) { + result = visitEachChild(node, visitor, context); + } else if (isClassThisAssignmentBlock(node)) { + const savedClassThis = classThis; + classThis = void 0; + result = visitEachChild(node, visitor, context); + classThis = savedClassThis; + } else { + node = visitEachChild(node, visitor, context); + result = node; + if (classInfo) { + classInfo.hasStaticInitializers = true; + if (some(classInfo.pendingStaticInitializers)) { + const statements = []; + for (const initializer of classInfo.pendingStaticInitializers) { + const initializerStatement = factory2.createExpressionStatement(initializer); + setSourceMapRange(initializerStatement, getSourceMapRange(initializer)); + statements.push(initializerStatement); + } + const body = factory2.createBlock( + statements, + /*multiLine*/ + true + ); + const staticBlock = factory2.createClassStaticBlockDeclaration(body); + result = [staticBlock, result]; + classInfo.pendingStaticInitializers = void 0; + } + } + } + exitClassElement(); + return result; + } + function visitPropertyDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } + enterClassElement(node); + Debug.assert(!isAmbientPropertyDeclaration(node), "Not yet implemented."); + const { modifiers, name, initializersName, extraInitializersName, descriptorName, thisArg } = partialTransformClassElement(node, classInfo, hasAccessorModifier(node) ? createAccessorPropertyDescriptorObject : void 0); + startLexicalEnvironment(); + let initializer = visitNode(node.initializer, visitor, isExpression); + if (initializersName) { + initializer = emitHelpers().createRunInitializersHelper( + thisArg ?? factory2.createThis(), + initializersName, + initializer ?? factory2.createVoidZero() + ); + } + if (isStatic(node) && classInfo && initializer) { + classInfo.hasStaticInitializers = true; + } + const declarations = endLexicalEnvironment(); + if (some(declarations)) { + initializer = factory2.createImmediatelyInvokedArrowFunction([ + ...declarations, + factory2.createReturnStatement(initializer) + ]); + } + if (classInfo) { + if (isStatic(node)) { + initializer = injectPendingInitializers( + classInfo, + /*isStatic*/ + true, + initializer + ); + if (extraInitializersName) { + classInfo.pendingStaticInitializers ?? (classInfo.pendingStaticInitializers = []); + classInfo.pendingStaticInitializers.push( + emitHelpers().createRunInitializersHelper( + classInfo.classThis ?? factory2.createThis(), + extraInitializersName + ) + ); + } + } else { + initializer = injectPendingInitializers( + classInfo, + /*isStatic*/ + false, + initializer + ); + if (extraInitializersName) { + classInfo.pendingInstanceInitializers ?? (classInfo.pendingInstanceInitializers = []); + classInfo.pendingInstanceInitializers.push( + emitHelpers().createRunInitializersHelper( + factory2.createThis(), + extraInitializersName + ) + ); + } + } + } + exitClassElement(); + if (hasAccessorModifier(node) && descriptorName) { + const commentRange = getCommentRange(node); + const sourceMapRange = getSourceMapRange(node); + const name2 = node.name; + let getterName = name2; + let setterName = name2; + if (isComputedPropertyName(name2) && !isSimpleInlineableExpression(name2.expression)) { + const cacheAssignment = findComputedPropertyNameCacheAssignment(name2); + if (cacheAssignment) { + getterName = factory2.updateComputedPropertyName(name2, visitNode(name2.expression, visitor, isExpression)); + setterName = factory2.updateComputedPropertyName(name2, cacheAssignment.left); + } else { + const temp = factory2.createTempVariable(hoistVariableDeclaration); + setSourceMapRange(temp, name2.expression); + const expression = visitNode(name2.expression, visitor, isExpression); + const assignment = factory2.createAssignment(temp, expression); + setSourceMapRange(assignment, name2.expression); + getterName = factory2.updateComputedPropertyName(name2, assignment); + setterName = factory2.updateComputedPropertyName(name2, temp); + } + } + const modifiersWithoutAccessor = visitNodes2(modifiers, (node2) => node2.kind !== 129 /* AccessorKeyword */ ? node2 : void 0, isModifier); + const backingField = createAccessorPropertyBackingField(factory2, node, modifiersWithoutAccessor, initializer); + setOriginalNode(backingField, node); + setEmitFlags(backingField, 3072 /* NoComments */); + setSourceMapRange(backingField, sourceMapRange); + setSourceMapRange(backingField.name, node.name); + const getter = createGetAccessorDescriptorForwarder(modifiersWithoutAccessor, getterName, descriptorName); + setOriginalNode(getter, node); + setCommentRange(getter, commentRange); + setSourceMapRange(getter, sourceMapRange); + const setter = createSetAccessorDescriptorForwarder(modifiersWithoutAccessor, setterName, descriptorName); + setOriginalNode(setter, node); + setEmitFlags(setter, 3072 /* NoComments */); + setSourceMapRange(setter, sourceMapRange); + return [backingField, getter, setter]; + } + return finishClassElement(factory2.updatePropertyDeclaration( + node, + modifiers, + name, + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ), node); + } + function visitThisExpression(node) { + return classThis ?? node; + } + function visitCallExpression(node) { + if (isSuperProperty(node.expression) && classThis) { + const expression = visitNode(node.expression, visitor, isExpression); + const argumentsList = visitNodes2(node.arguments, visitor, isExpression); + const invocation = factory2.createFunctionCallCall(expression, classThis, argumentsList); + setOriginalNode(invocation, node); + setTextRange(invocation, node); + return invocation; + } + return visitEachChild(node, visitor, context); + } + function visitTaggedTemplateExpression(node) { + if (isSuperProperty(node.tag) && classThis) { + const tag = visitNode(node.tag, visitor, isExpression); + const boundTag = factory2.createFunctionBindCall(tag, classThis, []); + setOriginalNode(boundTag, node); + setTextRange(boundTag, node); + const template = visitNode(node.template, visitor, isTemplateLiteral); + return factory2.updateTaggedTemplateExpression( + node, + boundTag, + /*typeArguments*/ + void 0, + template + ); + } + return visitEachChild(node, visitor, context); + } + function visitPropertyAccessExpression(node) { + if (isSuperProperty(node) && isIdentifier(node.name) && classThis && classSuper) { + const propertyName = factory2.createStringLiteralFromNode(node.name); + const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis); + setOriginalNode(superProperty, node.expression); + setTextRange(superProperty, node.expression); + return superProperty; + } + return visitEachChild(node, visitor, context); + } + function visitElementAccessExpression(node) { + if (isSuperProperty(node) && classThis && classSuper) { + const propertyName = visitNode(node.argumentExpression, visitor, isExpression); + const superProperty = factory2.createReflectGetCall(classSuper, propertyName, classThis); + setOriginalNode(superProperty, node.expression); + setTextRange(superProperty, node.expression); + return superProperty; + } + return visitEachChild(node, visitor, context); + } + function visitParameterDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } + const updated = factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + visitNode(node.name, visitor, isBindingName), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + if (updated !== node) { + setCommentRange(updated, node); + setTextRange(updated, moveRangePastModifiers(node)); + setSourceMapRange(updated, moveRangePastModifiers(node)); + setEmitFlags(updated.name, 64 /* NoTrailingSourceMap */); + } + return updated; + } + function isAnonymousClassNeedingAssignedName(node) { + return isClassExpression(node) && !node.name && isDecoratedClassLike(node); + } + function canIgnoreEmptyStringLiteralInAssignedName(node) { + const innerExpression = skipOuterExpressions(node); + return isClassExpression(innerExpression) && !innerExpression.name && !classOrConstructorParameterIsDecorated( + /*useLegacyDecorators*/ + false, + innerExpression + ); + } + function visitForStatement(node) { + return factory2.updateForStatement( + node, + visitNode(node.initializer, discardedValueVisitor, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, discardedValueVisitor, isExpression), + visitIterationBody(node.statement, visitor, context) + ); + } + function visitExpressionStatement(node) { + return visitEachChild(node, discardedValueVisitor, context); + } + function visitBinaryExpression(node, discarded) { + if (isDestructuringAssignment(node)) { + const left = visitAssignmentPattern(node.left); + const right = visitNode(node.right, visitor, isExpression); + return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + } + if (isAssignmentExpression(node)) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + return visitEachChild(node, visitor, context); + } + if (isSuperProperty(node.left) && classThis && classSuper) { + let setterName = isElementAccessExpression(node.left) ? visitNode(node.left.argumentExpression, visitor, isExpression) : isIdentifier(node.left.name) ? factory2.createStringLiteralFromNode(node.left.name) : void 0; + if (setterName) { + let expression = visitNode(node.right, visitor, isExpression); + if (isCompoundAssignment(node.operatorToken.kind)) { + let getterName = setterName; + if (!isSimpleInlineableExpression(setterName)) { + getterName = factory2.createTempVariable(hoistVariableDeclaration); + setterName = factory2.createAssignment(getterName, setterName); + } + const superPropertyGet = factory2.createReflectGetCall( + classSuper, + getterName, + classThis + ); + setOriginalNode(superPropertyGet, node.left); + setTextRange(superPropertyGet, node.left); + expression = factory2.createBinaryExpression( + superPropertyGet, + getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), + expression + ); + setTextRange(expression, node); + } + const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); + if (temp) { + expression = factory2.createAssignment(temp, expression); + setTextRange(temp, node); + } + expression = factory2.createReflectSetCall( + classSuper, + setterName, + expression, + classThis + ); + setOriginalNode(expression, node); + setTextRange(expression, node); + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + } + if (node.operatorToken.kind === 28 /* CommaToken */) { + const left = visitNode(node.left, discardedValueVisitor, isExpression); + const right = visitNode(node.right, discarded ? discardedValueVisitor : visitor, isExpression); + return factory2.updateBinaryExpression(node, left, node.operatorToken, right); + } + return visitEachChild(node, visitor, context); + } + function visitPreOrPostfixUnaryExpression(node, discarded) { + if (node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) { + const operand = skipParentheses(node.operand); + if (isSuperProperty(operand) && classThis && classSuper) { + let setterName = isElementAccessExpression(operand) ? visitNode(operand.argumentExpression, visitor, isExpression) : isIdentifier(operand.name) ? factory2.createStringLiteralFromNode(operand.name) : void 0; + if (setterName) { + let getterName = setterName; + if (!isSimpleInlineableExpression(setterName)) { + getterName = factory2.createTempVariable(hoistVariableDeclaration); + setterName = factory2.createAssignment(getterName, setterName); + } + let expression = factory2.createReflectGetCall(classSuper, getterName, classThis); + setOriginalNode(expression, node); + setTextRange(expression, node); + const temp = discarded ? void 0 : factory2.createTempVariable(hoistVariableDeclaration); + expression = expandPreOrPostfixIncrementOrDecrementExpression(factory2, node, expression, hoistVariableDeclaration, temp); + expression = factory2.createReflectSetCall(classSuper, setterName, expression, classThis); + setOriginalNode(expression, node); + setTextRange(expression, node); + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + } + return visitEachChild(node, visitor, context); + } + function visitCommaListExpression(node, discarded) { + const elements = discarded ? visitCommaListElements(node.elements, discardedValueVisitor) : visitCommaListElements(node.elements, visitor, discardedValueVisitor); + return factory2.updateCommaListExpression(node, elements); + } + function visitReferencedPropertyName(node) { + if (isPropertyNameLiteral(node) || isPrivateIdentifier(node)) { + const referencedName2 = factory2.createStringLiteralFromNode(node); + const name2 = visitNode(node, visitor, isPropertyName); + return { referencedName: referencedName2, name: name2 }; + } + if (isPropertyNameLiteral(node.expression) && !isIdentifier(node.expression)) { + const referencedName2 = factory2.createStringLiteralFromNode(node.expression); + const name2 = visitNode(node, visitor, isPropertyName); + return { referencedName: referencedName2, name: name2 }; + } + const referencedName = factory2.getGeneratedNameForNode(node); + hoistVariableDeclaration(referencedName); + const key = emitHelpers().createPropKeyHelper(visitNode(node.expression, visitor, isExpression)); + const assignment = factory2.createAssignment(referencedName, key); + const name = factory2.updateComputedPropertyName(node, injectPendingExpressions(assignment)); + return { referencedName, name }; + } + function visitPropertyName(node) { + if (isComputedPropertyName(node)) { + return visitComputedPropertyName(node); + } + return visitNode(node, visitor, isPropertyName); + } + function visitComputedPropertyName(node) { + let expression = visitNode(node.expression, visitor, isExpression); + if (!isSimpleInlineableExpression(expression)) { + expression = injectPendingExpressions(expression); + } + return factory2.updateComputedPropertyName(node, expression); + } + function visitPropertyAssignment(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } + return visitEachChild(node, visitor, context); + } + function visitVariableDeclaration(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } + return visitEachChild(node, visitor, context); + } + function visitBindingElement(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.initializer)); + } + return visitEachChild(node, visitor, context); + } + function visitDestructuringAssignmentTarget(node) { + if (isObjectLiteralExpression(node) || isArrayLiteralExpression(node)) { + return visitAssignmentPattern(node); + } + if (isSuperProperty(node) && classThis && classSuper) { + const propertyName = isElementAccessExpression(node) ? visitNode(node.argumentExpression, visitor, isExpression) : isIdentifier(node.name) ? factory2.createStringLiteralFromNode(node.name) : void 0; + if (propertyName) { + const paramName = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const expression = factory2.createAssignmentTargetWrapper( + paramName, + factory2.createReflectSetCall( + classSuper, + propertyName, + paramName, + classThis + ) + ); + setOriginalNode(expression, node); + setTextRange(expression, node); + return expression; + } + } + return visitEachChild(node, visitor, context); + } + function visitAssignmentElement(node) { + if (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + )) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.right)); + } + const assignmentTarget = visitDestructuringAssignmentTarget(node.left); + const initializer = visitNode(node.right, visitor, isExpression); + return factory2.updateBinaryExpression(node, assignmentTarget, node.operatorToken, initializer); + } else { + return visitDestructuringAssignmentTarget(node); + } + } + function visitAssignmentRestElement(node) { + if (isLeftHandSideExpression(node.expression)) { + const expression = visitDestructuringAssignmentTarget(node.expression); + return factory2.updateSpreadElement(node, expression); + } + return visitEachChild(node, visitor, context); + } + function visitArrayAssignmentElement(node) { + Debug.assertNode(node, isArrayBindingOrAssignmentElement); + if (isSpreadElement(node)) return visitAssignmentRestElement(node); + if (!isOmittedExpression(node)) return visitAssignmentElement(node); + return visitEachChild(node, visitor, context); + } + function visitAssignmentProperty(node) { + const name = visitNode(node.name, visitor, isPropertyName); + if (isAssignmentExpression( + node.initializer, + /*excludeCompoundAssignment*/ + true + )) { + const assignmentElement = visitAssignmentElement(node.initializer); + return factory2.updatePropertyAssignment(node, name, assignmentElement); + } + if (isLeftHandSideExpression(node.initializer)) { + const assignmentElement = visitDestructuringAssignmentTarget(node.initializer); + return factory2.updatePropertyAssignment(node, name, assignmentElement); + } + return visitEachChild(node, visitor, context); + } + function visitShorthandAssignmentProperty(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.objectAssignmentInitializer)); + } + return visitEachChild(node, visitor, context); + } + function visitAssignmentRestProperty(node) { + if (isLeftHandSideExpression(node.expression)) { + const expression = visitDestructuringAssignmentTarget(node.expression); + return factory2.updateSpreadAssignment(node, expression); + } + return visitEachChild(node, visitor, context); + } + function visitObjectAssignmentElement(node) { + Debug.assertNode(node, isObjectBindingOrAssignmentElement); + if (isSpreadAssignment(node)) return visitAssignmentRestProperty(node); + if (isShorthandPropertyAssignment(node)) return visitShorthandAssignmentProperty(node); + if (isPropertyAssignment(node)) return visitAssignmentProperty(node); + return visitEachChild(node, visitor, context); + } + function visitAssignmentPattern(node) { + if (isArrayLiteralExpression(node)) { + const elements = visitNodes2(node.elements, visitArrayAssignmentElement, isExpression); + return factory2.updateArrayLiteralExpression(node, elements); + } else { + const properties = visitNodes2(node.properties, visitObjectAssignmentElement, isObjectLiteralElementLike); + return factory2.updateObjectLiteralExpression(node, properties); + } + } + function visitExportAssignment(node) { + if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) { + node = transformNamedEvaluation(context, node, canIgnoreEmptyStringLiteralInAssignedName(node.expression)); + } + return visitEachChild(node, visitor, context); + } + function visitParenthesizedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; + const expression = visitNode(node.expression, visitorFunc, isExpression); + return factory2.updateParenthesizedExpression(node, expression); + } + function visitPartiallyEmittedExpression(node, discarded) { + const visitorFunc = discarded ? discardedValueVisitor : visitor; + const expression = visitNode(node.expression, visitorFunc, isExpression); + return factory2.updatePartiallyEmittedExpression(node, expression); + } + function injectPendingExpressionsCommon(pendingExpressions2, expression) { + if (some(pendingExpressions2)) { + if (expression) { + if (isParenthesizedExpression(expression)) { + pendingExpressions2.push(expression.expression); + expression = factory2.updateParenthesizedExpression(expression, factory2.inlineExpressions(pendingExpressions2)); + } else { + pendingExpressions2.push(expression); + expression = factory2.inlineExpressions(pendingExpressions2); + } + } else { + expression = factory2.inlineExpressions(pendingExpressions2); + } + } + return expression; + } + function injectPendingExpressions(expression) { + const result = injectPendingExpressionsCommon(pendingExpressions, expression); + Debug.assertIsDefined(result); + if (result !== expression) { + pendingExpressions = void 0; + } + return result; + } + function injectPendingInitializers(classInfo2, isStatic2, expression) { + const result = injectPendingExpressionsCommon(isStatic2 ? classInfo2.pendingStaticInitializers : classInfo2.pendingInstanceInitializers, expression); + if (result !== expression) { + if (isStatic2) { + classInfo2.pendingStaticInitializers = void 0; + } else { + classInfo2.pendingInstanceInitializers = void 0; + } + } + return result; + } + function transformAllDecoratorsOfDeclaration(allDecorators) { + if (!allDecorators) { + return void 0; + } + const decoratorExpressions = []; + addRange(decoratorExpressions, map(allDecorators.decorators, transformDecorator)); + return decoratorExpressions; + } + function transformDecorator(decorator) { + const expression = visitNode(decorator.expression, visitor, isExpression); + setEmitFlags(expression, 3072 /* NoComments */); + const innerExpression = skipOuterExpressions(expression); + if (isAccessExpression(innerExpression)) { + const { target, thisArg } = factory2.createCallBinding( + expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return factory2.restoreOuterExpressions(expression, factory2.createFunctionBindCall(target, thisArg, [])); + } + return expression; + } + function createDescriptorMethod(original, name, modifiers, asteriskToken, kind, parameters, body) { + const func = factory2.createFunctionExpression( + modifiers, + asteriskToken, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body ?? factory2.createBlock([]) + ); + setOriginalNode(func, original); + setSourceMapRange(func, moveRangePastDecorators(original)); + setEmitFlags(func, 3072 /* NoComments */); + const prefix = kind === "get" || kind === "set" ? kind : void 0; + const functionName = factory2.createStringLiteralFromNode( + name, + /*isSingleQuote*/ + void 0 + ); + const namedFunction = emitHelpers().createSetFunctionNameHelper(func, functionName, prefix); + const method = factory2.createPropertyAssignment(factory2.createIdentifier(kind), namedFunction); + setOriginalNode(method, original); + setSourceMapRange(method, moveRangePastDecorators(original)); + setEmitFlags(method, 3072 /* NoComments */); + return method; + } + function createMethodDescriptorObject(node, modifiers) { + return factory2.createObjectLiteralExpression([ + createDescriptorMethod( + node, + node.name, + modifiers, + node.asteriskToken, + "value", + visitNodes2(node.parameters, visitor, isParameter), + visitNode(node.body, visitor, isBlock) + ) + ]); + } + function createGetAccessorDescriptorObject(node, modifiers) { + return factory2.createObjectLiteralExpression([ + createDescriptorMethod( + node, + node.name, + modifiers, + /*asteriskToken*/ + void 0, + "get", + [], + visitNode(node.body, visitor, isBlock) + ) + ]); + } + function createSetAccessorDescriptorObject(node, modifiers) { + return factory2.createObjectLiteralExpression([ + createDescriptorMethod( + node, + node.name, + modifiers, + /*asteriskToken*/ + void 0, + "set", + visitNodes2(node.parameters, visitor, isParameter), + visitNode(node.body, visitor, isBlock) + ) + ]); + } + function createAccessorPropertyDescriptorObject(node, modifiers) { + return factory2.createObjectLiteralExpression([ + createDescriptorMethod( + node, + node.name, + modifiers, + /*asteriskToken*/ + void 0, + "get", + [], + factory2.createBlock([ + factory2.createReturnStatement( + factory2.createPropertyAccessExpression( + factory2.createThis(), + factory2.getGeneratedPrivateNameForNode(node.name) + ) + ) + ]) + ), + createDescriptorMethod( + node, + node.name, + modifiers, + /*asteriskToken*/ + void 0, + "set", + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "value" + )], + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression( + factory2.createThis(), + factory2.getGeneratedPrivateNameForNode(node.name) + ), + factory2.createIdentifier("value") + ) + ) + ]) + ) + ]); + } + function createMethodDescriptorForwarder(modifiers, name, descriptorName) { + modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); + return factory2.createGetAccessorDeclaration( + modifiers, + name, + [], + /*type*/ + void 0, + factory2.createBlock([ + factory2.createReturnStatement( + factory2.createPropertyAccessExpression( + descriptorName, + factory2.createIdentifier("value") + ) + ) + ]) + ); + } + function createGetAccessorDescriptorForwarder(modifiers, name, descriptorName) { + modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); + return factory2.createGetAccessorDeclaration( + modifiers, + name, + [], + /*type*/ + void 0, + factory2.createBlock([ + factory2.createReturnStatement( + factory2.createFunctionCallCall( + factory2.createPropertyAccessExpression( + descriptorName, + factory2.createIdentifier("get") + ), + factory2.createThis(), + [] + ) + ) + ]) + ); + } + function createSetAccessorDescriptorForwarder(modifiers, name, descriptorName) { + modifiers = visitNodes2(modifiers, (node) => isStaticModifier(node) ? node : void 0, isModifier); + return factory2.createSetAccessorDeclaration( + modifiers, + name, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "value" + )], + factory2.createBlock([ + factory2.createReturnStatement( + factory2.createFunctionCallCall( + factory2.createPropertyAccessExpression( + descriptorName, + factory2.createIdentifier("set") + ), + factory2.createThis(), + [factory2.createIdentifier("value")] + ) + ) + ]) + ); + } + function createMetadata(name, classSuper2) { + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createConditionalExpression( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + factory2.createToken(58 /* QuestionToken */), + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"), + /*typeArguments*/ + void 0, + [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()] + ), + factory2.createToken(59 /* ColonToken */), + factory2.createVoidZero() + ) + ); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([varDecl], 2 /* Const */) + ); + } + function createSymbolMetadata(target, value) { + const defineProperty = factory2.createObjectDefinePropertyCall( + target, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"), + factory2.createPropertyDescriptor( + { configurable: true, writable: true, enumerable: true, value }, + /*singleLine*/ + true + ) + ); + return setEmitFlags( + factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)), + 1 /* SingleLine */ + ); + } + function createSymbolMetadataReference(classSuper2) { + return factory2.createBinaryExpression( + factory2.createElementAccessExpression( + classSuper2, + factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata") + ), + 61 /* QuestionQuestionToken */, + factory2.createNull() + ); + } +} + +// src/compiler/transformers/es2017.ts +function transformES2017(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + resumeLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + let enabledSubstitutions; + let enclosingSuperContainerFlags = 0; + let enclosingFunctionParameterNames; + let capturedSuperProperties; + let hasSuperElementAccess; + let lexicalArgumentsBinding; + const substitutedSuperAccessors = []; + let contextFlags = 0 /* None */; + const previousOnEmitNode = context.onEmitNode; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onEmitNode = onEmitNode; + context.onSubstituteNode = onSubstituteNode; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + setContextFlag(1 /* NonTopLevel */, false); + setContextFlag(2 /* HasLexicalThis */, !isEffectiveStrictModeSourceFile(node, compilerOptions)); + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + return visited; + } + function setContextFlag(flag, val) { + contextFlags = val ? contextFlags | flag : contextFlags & ~flag; + } + function inContext(flags) { + return (contextFlags & flags) !== 0; + } + function inTopLevelContext() { + return !inContext(1 /* NonTopLevel */); + } + function inHasLexicalThisContext() { + return inContext(2 /* HasLexicalThis */); + } + function doWithContext(flags, cb, value) { + const contextFlagsToSet = flags & ~contextFlags; + if (contextFlagsToSet) { + setContextFlag( + contextFlagsToSet, + /*val*/ + true + ); + const result = cb(value); + setContextFlag( + contextFlagsToSet, + /*val*/ + false + ); + return result; + } + return cb(value); + } + function visitDefault(node) { + return visitEachChild(node, visitor, context); + } + function argumentsVisitor(node) { + switch (node.kind) { + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 176 /* Constructor */: + return node; + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: + break; + case 80 /* Identifier */: + if (lexicalArgumentsBinding && resolver.isArgumentsLocalBinding(node)) { + return lexicalArgumentsBinding; + } + break; + } + return visitEachChild(node, argumentsVisitor, context); + } + function visitor(node) { + if ((node.transformFlags & 256 /* ContainsES2017 */) === 0) { + return lexicalArgumentsBinding ? argumentsVisitor(node) : node; + } + switch (node.kind) { + case 134 /* AsyncKeyword */: + return void 0; + case 223 /* AwaitExpression */: + return visitAwaitExpression(node); + case 174 /* MethodDeclaration */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node); + case 262 /* FunctionDeclaration */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node); + case 218 /* FunctionExpression */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node); + case 219 /* ArrowFunction */: + return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node); + case 211 /* PropertyAccessExpression */: + if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { + capturedSuperProperties.add(node.name.escapedText); + } + return visitEachChild(node, visitor, context); + case 212 /* ElementAccessExpression */: + if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { + hasSuperElementAccess = true; + } + return visitEachChild(node, visitor, context); + case 177 /* GetAccessor */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitGetAccessorDeclaration, node); + case 178 /* SetAccessor */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitSetAccessorDeclaration, node); + case 176 /* Constructor */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitConstructorDeclaration, node); + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node); + default: + return visitEachChild(node, visitor, context); + } + } + function asyncBodyVisitor(node) { + if (isNodeWithPossibleHoistedDeclaration(node)) { + switch (node.kind) { + case 243 /* VariableStatement */: + return visitVariableStatementInAsyncBody(node); + case 248 /* ForStatement */: + return visitForStatementInAsyncBody(node); + case 249 /* ForInStatement */: + return visitForInStatementInAsyncBody(node); + case 250 /* ForOfStatement */: + return visitForOfStatementInAsyncBody(node); + case 299 /* CatchClause */: + return visitCatchClauseInAsyncBody(node); + case 241 /* Block */: + case 255 /* SwitchStatement */: + case 269 /* CaseBlock */: + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + case 258 /* TryStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 245 /* IfStatement */: + case 254 /* WithStatement */: + case 256 /* LabeledStatement */: + return visitEachChild(node, asyncBodyVisitor, context); + default: + return Debug.assertNever(node, "Unhandled node."); + } + } + return visitor(node); + } + function visitCatchClauseInAsyncBody(node) { + const catchClauseNames = /* @__PURE__ */ new Set(); + recordDeclarationName(node.variableDeclaration, catchClauseNames); + let catchClauseUnshadowedNames; + catchClauseNames.forEach((_, escapedName) => { + if (enclosingFunctionParameterNames.has(escapedName)) { + if (!catchClauseUnshadowedNames) { + catchClauseUnshadowedNames = new Set(enclosingFunctionParameterNames); + } + catchClauseUnshadowedNames.delete(escapedName); + } + }); + if (catchClauseUnshadowedNames) { + const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; + enclosingFunctionParameterNames = catchClauseUnshadowedNames; + const result = visitEachChild(node, asyncBodyVisitor, context); + enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames; + return result; + } else { + return visitEachChild(node, asyncBodyVisitor, context); + } + } + function visitVariableStatementInAsyncBody(node) { + if (isVariableDeclarationListWithCollidingName(node.declarationList)) { + const expression = visitVariableDeclarationListWithCollidingNames( + node.declarationList, + /*hasReceiver*/ + false + ); + return expression ? factory2.createExpressionStatement(expression) : void 0; + } + return visitEachChild(node, visitor, context); + } + function visitForInStatementInAsyncBody(node) { + return factory2.updateForInStatement( + node, + isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames( + node.initializer, + /*hasReceiver*/ + true + ) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + visitIterationBody(node.statement, asyncBodyVisitor, context) + ); + } + function visitForOfStatementInAsyncBody(node) { + return factory2.updateForOfStatement( + node, + visitNode(node.awaitModifier, visitor, isAwaitKeyword), + isVariableDeclarationListWithCollidingName(node.initializer) ? visitVariableDeclarationListWithCollidingNames( + node.initializer, + /*hasReceiver*/ + true + ) : Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + visitIterationBody(node.statement, asyncBodyVisitor, context) + ); + } + function visitForStatementInAsyncBody(node) { + const initializer = node.initializer; + return factory2.updateForStatement( + node, + isVariableDeclarationListWithCollidingName(initializer) ? visitVariableDeclarationListWithCollidingNames( + initializer, + /*hasReceiver*/ + false + ) : visitNode(node.initializer, visitor, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, visitor, isExpression), + visitIterationBody(node.statement, asyncBodyVisitor, context) + ); + } + function visitAwaitExpression(node) { + if (inTopLevelContext()) { + return visitEachChild(node, visitor, context); + } + return setOriginalNode( + setTextRange( + factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + visitNode(node.expression, visitor, isExpression) + ), + node + ), + node + ); + } + function visitConstructorDeclaration(node) { + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const updated = factory2.updateConstructorDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifier), + visitParameterList(node.parameters, visitor, context), + transformMethodBody(node) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitMethodDeclaration(node) { + let parameters; + const functionFlags = getFunctionFlags(node); + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const updated = factory2.updateMethodDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifierLike), + node.asteriskToken, + node.name, + /*questionToken*/ + void 0, + /*typeParameters*/ + void 0, + parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : transformMethodBody(node) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitGetAccessorDeclaration(node) { + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const updated = factory2.updateGetAccessorDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifierLike), + node.name, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + transformMethodBody(node) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitSetAccessorDeclaration(node) { + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const updated = factory2.updateSetAccessorDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifierLike), + node.name, + visitParameterList(node.parameters, visitor, context), + transformMethodBody(node) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitFunctionDeclaration(node) { + let parameters; + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const functionFlags = getFunctionFlags(node); + const updated = factory2.updateFunctionDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifierLike), + node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitFunctionExpression(node) { + let parameters; + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + lexicalArgumentsBinding = void 0; + const functionFlags = getFunctionFlags(node); + const updated = factory2.updateFunctionExpression( + node, + visitNodes2(node.modifiers, visitor, isModifier), + node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) + ); + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + return updated; + } + function visitArrowFunction(node) { + let parameters; + const functionFlags = getFunctionFlags(node); + return factory2.updateArrowFunction( + node, + visitNodes2(node.modifiers, visitor, isModifier), + /*typeParameters*/ + void 0, + parameters = functionFlags & 2 /* Async */ ? transformAsyncFunctionParameterList(node) : visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + node.equalsGreaterThanToken, + functionFlags & 2 /* Async */ ? transformAsyncFunctionBody(node, parameters) : visitFunctionBody(node.body, visitor, context) + ); + } + function recordDeclarationName({ name }, names) { + if (isIdentifier(name)) { + names.add(name.escapedText); + } else { + for (const element of name.elements) { + if (!isOmittedExpression(element)) { + recordDeclarationName(element, names); + } + } + } + } + function isVariableDeclarationListWithCollidingName(node) { + return !!node && isVariableDeclarationList(node) && !(node.flags & 7 /* BlockScoped */) && node.declarations.some(collidesWithParameterName); + } + function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) { + hoistVariableDeclarationList(node); + const variables = getInitializedVariables(node); + if (variables.length === 0) { + if (hasReceiver) { + return visitNode(factory2.converters.convertToAssignmentElementTarget(node.declarations[0].name), visitor, isExpression); + } + return void 0; + } + return factory2.inlineExpressions(map(variables, transformInitializedVariable)); + } + function hoistVariableDeclarationList(node) { + forEach(node.declarations, hoistVariable); + } + function hoistVariable({ name }) { + if (isIdentifier(name)) { + hoistVariableDeclaration(name); + } else { + for (const element of name.elements) { + if (!isOmittedExpression(element)) { + hoistVariable(element); + } + } + } + } + function transformInitializedVariable(node) { + const converted = setSourceMapRange( + factory2.createAssignment( + factory2.converters.convertToAssignmentElementTarget(node.name), + node.initializer + ), + node + ); + return Debug.checkDefined(visitNode(converted, visitor, isExpression)); + } + function collidesWithParameterName({ name }) { + if (isIdentifier(name)) { + return enclosingFunctionParameterNames.has(name.escapedText); + } else { + for (const element of name.elements) { + if (!isOmittedExpression(element) && collidesWithParameterName(element)) { + return true; + } + } + } + return false; + } + function transformMethodBody(node) { + Debug.assertIsDefined(node.body); + const savedCapturedSuperProperties = capturedSuperProperties; + const savedHasSuperElementAccess = hasSuperElementAccess; + capturedSuperProperties = /* @__PURE__ */ new Set(); + hasSuperElementAccess = false; + let updated = visitFunctionBody(node.body, visitor, context); + const originalMethod = getOriginalNode(node, isFunctionLikeDeclaration); + const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) && (getFunctionFlags(originalMethod) & 3 /* AsyncGenerator */) !== 3 /* AsyncGenerator */; + if (emitSuperHelpers) { + enableSubstitutionForAsyncMethodsWithSuper(); + if (capturedSuperProperties.size) { + const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); + substitutedSuperAccessors[getNodeId(variableStatement)] = true; + const statements = updated.statements.slice(); + insertStatementsAfterStandardPrologue(statements, [variableStatement]); + updated = factory2.updateBlock(updated, statements); + } + if (hasSuperElementAccess) { + if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { + addEmitHelper(updated, advancedAsyncSuperHelper); + } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { + addEmitHelper(updated, asyncSuperHelper); + } + } + } + capturedSuperProperties = savedCapturedSuperProperties; + hasSuperElementAccess = savedHasSuperElementAccess; + return updated; + } + function createCaptureArgumentsStatement() { + Debug.assert(lexicalArgumentsBinding); + const variable = factory2.createVariableDeclaration( + lexicalArgumentsBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createIdentifier("arguments") + ); + const statement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + [variable] + ); + startOnNewLine(statement); + addEmitFlags(statement, 2097152 /* CustomPrologue */); + return statement; + } + function transformAsyncFunctionParameterList(node) { + if (isSimpleParameterList(node.parameters)) { + return visitParameterList(node.parameters, visitor, context); + } + const newParameters = []; + for (const parameter of node.parameters) { + if (parameter.initializer || parameter.dotDotDotToken) { + if (node.kind === 219 /* ArrowFunction */) { + const restParameter = factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + factory2.createToken(26 /* DotDotDotToken */), + factory2.createUniqueName("args", 8 /* ReservedInNestedScopes */) + ); + newParameters.push(restParameter); + } + break; + } + const newParameter = factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.getGeneratedNameForNode(parameter.name, 8 /* ReservedInNestedScopes */) + ); + newParameters.push(newParameter); + } + const newParametersArray = factory2.createNodeArray(newParameters); + setTextRange(newParametersArray, node.parameters); + return newParametersArray; + } + function transformAsyncFunctionBody(node, outerParameters) { + const innerParameters = !isSimpleParameterList(node.parameters) ? visitParameterList(node.parameters, visitor, context) : void 0; + resumeLexicalEnvironment(); + const original = getOriginalNode(node, isFunctionLike); + const nodeType = original.type; + const promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : void 0; + const isArrowFunction2 = node.kind === 219 /* ArrowFunction */; + const savedLexicalArgumentsBinding = lexicalArgumentsBinding; + const hasLexicalArguments = resolver.hasNodeCheckFlag(node, 512 /* CaptureArguments */); + const captureLexicalArguments = hasLexicalArguments && !lexicalArgumentsBinding; + if (captureLexicalArguments) { + lexicalArgumentsBinding = factory2.createUniqueName("arguments"); + } + let argumentsExpression; + if (innerParameters) { + if (isArrowFunction2) { + const parameterBindings = []; + Debug.assert(outerParameters.length <= node.parameters.length); + for (let i = 0; i < node.parameters.length; i++) { + Debug.assert(i < outerParameters.length); + const originalParameter = node.parameters[i]; + const outerParameter = outerParameters[i]; + Debug.assertNode(outerParameter.name, isIdentifier); + if (originalParameter.initializer || originalParameter.dotDotDotToken) { + Debug.assert(i === outerParameters.length - 1); + parameterBindings.push(factory2.createSpreadElement(outerParameter.name)); + break; + } + parameterBindings.push(outerParameter.name); + } + argumentsExpression = factory2.createArrayLiteralExpression(parameterBindings); + } else { + argumentsExpression = factory2.createIdentifier("arguments"); + } + } + const savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames; + enclosingFunctionParameterNames = /* @__PURE__ */ new Set(); + for (const parameter of node.parameters) { + recordDeclarationName(parameter, enclosingFunctionParameterNames); + } + const savedCapturedSuperProperties = capturedSuperProperties; + const savedHasSuperElementAccess = hasSuperElementAccess; + if (!isArrowFunction2) { + capturedSuperProperties = /* @__PURE__ */ new Set(); + hasSuperElementAccess = false; + } + const hasLexicalThis = inHasLexicalThisContext(); + let asyncBody = transformAsyncFunctionBodyWorker(node.body); + asyncBody = factory2.updateBlock(asyncBody, factory2.mergeLexicalEnvironment(asyncBody.statements, endLexicalEnvironment())); + let result; + if (!isArrowFunction2) { + const statements = []; + statements.push( + factory2.createReturnStatement( + emitHelpers().createAwaiterHelper( + hasLexicalThis, + argumentsExpression, + promiseConstructor, + innerParameters, + asyncBody + ) + ) + ); + const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)); + if (emitSuperHelpers) { + enableSubstitutionForAsyncMethodsWithSuper(); + if (capturedSuperProperties.size) { + const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); + substitutedSuperAccessors[getNodeId(variableStatement)] = true; + insertStatementsAfterStandardPrologue(statements, [variableStatement]); + } + } + if (captureLexicalArguments) { + insertStatementsAfterStandardPrologue(statements, [createCaptureArgumentsStatement()]); + } + const block = factory2.createBlock( + statements, + /*multiLine*/ + true + ); + setTextRange(block, node.body); + if (emitSuperHelpers && hasSuperElementAccess) { + if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { + addEmitHelper(block, advancedAsyncSuperHelper); + } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { + addEmitHelper(block, asyncSuperHelper); + } + } + result = block; + } else { + result = emitHelpers().createAwaiterHelper( + hasLexicalThis, + argumentsExpression, + promiseConstructor, + innerParameters, + asyncBody + ); + if (captureLexicalArguments) { + const block = factory2.converters.convertToFunctionBlock(result); + result = factory2.updateBlock(block, factory2.mergeLexicalEnvironment(block.statements, [createCaptureArgumentsStatement()])); + } + } + enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames; + if (!isArrowFunction2) { + capturedSuperProperties = savedCapturedSuperProperties; + hasSuperElementAccess = savedHasSuperElementAccess; + lexicalArgumentsBinding = savedLexicalArgumentsBinding; + } + return result; + } + function transformAsyncFunctionBodyWorker(body, start) { + if (isBlock(body)) { + return factory2.updateBlock(body, visitNodes2(body.statements, asyncBodyVisitor, isStatement, start)); + } else { + return factory2.converters.convertToFunctionBlock(Debug.checkDefined(visitNode(body, asyncBodyVisitor, isConciseBody))); + } + } + function getPromiseConstructor(type) { + const typeName = type && getEntityNameFromTypeNode(type); + if (typeName && isEntityName(typeName)) { + const serializationKind = resolver.getTypeReferenceSerializationKind(typeName); + if (serializationKind === 1 /* TypeWithConstructSignatureAndValue */ || serializationKind === 0 /* Unknown */) { + return typeName; + } + } + return void 0; + } + function enableSubstitutionForAsyncMethodsWithSuper() { + if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { + enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); + } + } + function onEmitNode(hint, node, emitCallback) { + if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) { + const superContainerFlags = (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */) ? 128 /* MethodWithSuperPropertyAccessInAsync */ : 0) | (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) ? 256 /* MethodWithSuperPropertyAssignmentInAsync */ : 0); + if (superContainerFlags !== enclosingSuperContainerFlags) { + const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; + enclosingSuperContainerFlags = superContainerFlags; + previousOnEmitNode(hint, node, emitCallback); + enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; + return; + } + } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) { + const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; + enclosingSuperContainerFlags = 0; + previousOnEmitNode(hint, node, emitCallback); + enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; + return; + } + previousOnEmitNode(hint, node, emitCallback); + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) { + return substituteExpression(node); + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 211 /* PropertyAccessExpression */: + return substitutePropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return substituteElementAccessExpression(node); + case 213 /* CallExpression */: + return substituteCallExpression(node); + } + return node; + } + function substitutePropertyAccessExpression(node) { + if (node.expression.kind === 108 /* SuperKeyword */) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), + node.name + ), + node + ); + } + return node; + } + function substituteElementAccessExpression(node) { + if (node.expression.kind === 108 /* SuperKeyword */) { + return createSuperElementAccessInAsyncMethod( + node.argumentExpression, + node + ); + } + return node; + } + function substituteCallExpression(node) { + const expression = node.expression; + if (isSuperProperty(expression)) { + const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression); + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(argumentExpression, "call"), + /*typeArguments*/ + void 0, + [ + factory2.createThis(), + ...node.arguments + ] + ); + } + return node; + } + function isSuperContainer(node) { + const kind = node.kind; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; + } + function createSuperElementAccessInAsyncMethod(argumentExpression, location) { + if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.createCallExpression( + factory2.createUniqueName("_superIndex", 16 /* Optimistic */ | 32 /* FileLevel */), + /*typeArguments*/ + void 0, + [argumentExpression] + ), + "value" + ), + location + ); + } else { + return setTextRange( + factory2.createCallExpression( + factory2.createUniqueName("_superIndex", 16 /* Optimistic */ | 32 /* FileLevel */), + /*typeArguments*/ + void 0, + [argumentExpression] + ), + location + ); + } + } +} +function createSuperAccessVariableStatement(factory2, resolver, node, names) { + const hasBinding = resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */); + const accessors = []; + names.forEach((_, key) => { + const name = unescapeLeadingUnderscores(key); + const getterAndSetter = []; + getterAndSetter.push(factory2.createPropertyAssignment( + "get", + factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + /* parameters */ + [], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + setEmitFlags( + factory2.createPropertyAccessExpression( + setEmitFlags( + factory2.createSuper(), + 8 /* NoSubstitution */ + ), + name + ), + 8 /* NoSubstitution */ + ) + ) + )); + if (hasBinding) { + getterAndSetter.push( + factory2.createPropertyAssignment( + "set", + factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + /* parameters */ + [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "v", + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ) + ], + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + factory2.createAssignment( + setEmitFlags( + factory2.createPropertyAccessExpression( + setEmitFlags( + factory2.createSuper(), + 8 /* NoSubstitution */ + ), + name + ), + 8 /* NoSubstitution */ + ), + factory2.createIdentifier("v") + ) + ) + ) + ); + } + accessors.push( + factory2.createPropertyAssignment( + name, + factory2.createObjectLiteralExpression(getterAndSetter) + ) + ); + }); + return factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [ + factory2.createVariableDeclaration( + factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createCallExpression( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("Object"), + "create" + ), + /*typeArguments*/ + void 0, + [ + factory2.createNull(), + factory2.createObjectLiteralExpression( + accessors, + /*multiLine*/ + true + ) + ] + ) + ) + ], + 2 /* Const */ + ) + ); +} + +// src/compiler/transformers/es2018.ts +function transformES2018(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + resumeLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const previousOnEmitNode = context.onEmitNode; + context.onEmitNode = onEmitNode; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onSubstituteNode = onSubstituteNode; + let exportedVariableStatement = false; + let enabledSubstitutions; + let enclosingFunctionFlags; + let parametersWithPrecedingObjectRestOrSpread; + let enclosingSuperContainerFlags = 0; + let hierarchyFacts = 0; + let currentSourceFile; + let taggedTemplateStringDeclarations; + let capturedSuperProperties; + let hasSuperElementAccess; + const substitutedSuperAccessors = []; + return chainBundle(context, transformSourceFile); + function affectsSubtree(excludeFacts, includeFacts) { + return hierarchyFacts !== (hierarchyFacts & ~excludeFacts | includeFacts); + } + function enterSubtree(excludeFacts, includeFacts) { + const ancestorFacts = hierarchyFacts; + hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 3 /* AncestorFactsMask */; + return ancestorFacts; + } + function exitSubtree(ancestorFacts) { + hierarchyFacts = ancestorFacts; + } + function recordTaggedTemplateString(temp) { + taggedTemplateStringDeclarations = append( + taggedTemplateStringDeclarations, + factory2.createVariableDeclaration(temp) + ); + } + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + currentSourceFile = node; + const visited = visitSourceFile(node); + addEmitHelpers(visited, context.readEmitHelpers()); + currentSourceFile = void 0; + taggedTemplateStringDeclarations = void 0; + return visited; + } + function visitor(node) { + return visitorWorker( + node, + /*expressionResultIsUnused*/ + false + ); + } + function visitorWithUnusedExpressionResult(node) { + return visitorWorker( + node, + /*expressionResultIsUnused*/ + true + ); + } + function visitorNoAsyncModifier(node) { + if (node.kind === 134 /* AsyncKeyword */) { + return void 0; + } + return node; + } + function doWithHierarchyFacts(cb, value, excludeFacts, includeFacts) { + if (affectsSubtree(excludeFacts, includeFacts)) { + const ancestorFacts = enterSubtree(excludeFacts, includeFacts); + const result = cb(value); + exitSubtree(ancestorFacts); + return result; + } + return cb(value); + } + function visitDefault(node) { + return visitEachChild(node, visitor, context); + } + function visitorWorker(node, expressionResultIsUnused2) { + if ((node.transformFlags & 128 /* ContainsES2018 */) === 0) { + return node; + } + switch (node.kind) { + case 223 /* AwaitExpression */: + return visitAwaitExpression(node); + case 229 /* YieldExpression */: + return visitYieldExpression(node); + case 253 /* ReturnStatement */: + return visitReturnStatement(node); + case 256 /* LabeledStatement */: + return visitLabeledStatement(node); + case 210 /* ObjectLiteralExpression */: + return visitObjectLiteralExpression(node); + case 226 /* BinaryExpression */: + return visitBinaryExpression(node, expressionResultIsUnused2); + case 355 /* CommaListExpression */: + return visitCommaListExpression(node, expressionResultIsUnused2); + case 299 /* CatchClause */: + return visitCatchClause(node); + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 260 /* VariableDeclaration */: + return visitVariableDeclaration(node); + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + case 249 /* ForInStatement */: + return doWithHierarchyFacts( + visitDefault, + node, + 0 /* IterationStatementExcludes */, + 2 /* IterationStatementIncludes */ + ); + case 250 /* ForOfStatement */: + return visitForOfStatement( + node, + /*outermostLabeledStatement*/ + void 0 + ); + case 248 /* ForStatement */: + return doWithHierarchyFacts( + visitForStatement, + node, + 0 /* IterationStatementExcludes */, + 2 /* IterationStatementIncludes */ + ); + case 222 /* VoidExpression */: + return visitVoidExpression(node); + case 176 /* Constructor */: + return doWithHierarchyFacts( + visitConstructorDeclaration, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 174 /* MethodDeclaration */: + return doWithHierarchyFacts( + visitMethodDeclaration, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 177 /* GetAccessor */: + return doWithHierarchyFacts( + visitGetAccessorDeclaration, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 178 /* SetAccessor */: + return doWithHierarchyFacts( + visitSetAccessorDeclaration, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 262 /* FunctionDeclaration */: + return doWithHierarchyFacts( + visitFunctionDeclaration, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 218 /* FunctionExpression */: + return doWithHierarchyFacts( + visitFunctionExpression, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + case 219 /* ArrowFunction */: + return doWithHierarchyFacts( + visitArrowFunction, + node, + 2 /* ArrowFunctionExcludes */, + 0 /* ArrowFunctionIncludes */ + ); + case 169 /* Parameter */: + return visitParameter(node); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression(node, expressionResultIsUnused2); + case 215 /* TaggedTemplateExpression */: + return visitTaggedTemplateExpression(node); + case 211 /* PropertyAccessExpression */: + if (capturedSuperProperties && isPropertyAccessExpression(node) && node.expression.kind === 108 /* SuperKeyword */) { + capturedSuperProperties.add(node.name.escapedText); + } + return visitEachChild(node, visitor, context); + case 212 /* ElementAccessExpression */: + if (capturedSuperProperties && node.expression.kind === 108 /* SuperKeyword */) { + hasSuperElementAccess = true; + } + return visitEachChild(node, visitor, context); + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + return doWithHierarchyFacts( + visitDefault, + node, + 2 /* ClassOrFunctionExcludes */, + 1 /* ClassOrFunctionIncludes */ + ); + default: + return visitEachChild(node, visitor, context); + } + } + function visitAwaitExpression(node) { + if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { + return setOriginalNode( + setTextRange( + factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + emitHelpers().createAwaitHelper(visitNode(node.expression, visitor, isExpression)) + ), + /*location*/ + node + ), + node + ); + } + return visitEachChild(node, visitor, context); + } + function visitYieldExpression(node) { + if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { + if (node.asteriskToken) { + const expression = visitNode(Debug.checkDefined(node.expression), visitor, isExpression); + return setOriginalNode( + setTextRange( + factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + emitHelpers().createAwaitHelper( + factory2.updateYieldExpression( + node, + node.asteriskToken, + setTextRange( + emitHelpers().createAsyncDelegatorHelper( + setTextRange( + emitHelpers().createAsyncValuesHelper(expression), + expression + ) + ), + expression + ) + ) + ) + ), + node + ), + node + ); + } + return setOriginalNode( + setTextRange( + factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + createDownlevelAwait( + node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero() + ) + ), + node + ), + node + ); + } + return visitEachChild(node, visitor, context); + } + function visitReturnStatement(node) { + if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) { + return factory2.updateReturnStatement( + node, + createDownlevelAwait( + node.expression ? visitNode(node.expression, visitor, isExpression) : factory2.createVoidZero() + ) + ); + } + return visitEachChild(node, visitor, context); + } + function visitLabeledStatement(node) { + if (enclosingFunctionFlags & 2 /* Async */) { + const statement = unwrapInnermostStatementOfLabel(node); + if (statement.kind === 250 /* ForOfStatement */ && statement.awaitModifier) { + return visitForOfStatement(statement, node); + } + return factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock), node); + } + return visitEachChild(node, visitor, context); + } + function chunkObjectLiteralElements(elements) { + let chunkObject; + const objects = []; + for (const e of elements) { + if (e.kind === 305 /* SpreadAssignment */) { + if (chunkObject) { + objects.push(factory2.createObjectLiteralExpression(chunkObject)); + chunkObject = void 0; + } + const target = e.expression; + objects.push(visitNode(target, visitor, isExpression)); + } else { + chunkObject = append( + chunkObject, + e.kind === 303 /* PropertyAssignment */ ? factory2.createPropertyAssignment(e.name, visitNode(e.initializer, visitor, isExpression)) : visitNode(e, visitor, isObjectLiteralElementLike) + ); + } + } + if (chunkObject) { + objects.push(factory2.createObjectLiteralExpression(chunkObject)); + } + return objects; + } + function visitObjectLiteralExpression(node) { + if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + const objects = chunkObjectLiteralElements(node.properties); + if (objects.length && objects[0].kind !== 210 /* ObjectLiteralExpression */) { + objects.unshift(factory2.createObjectLiteralExpression()); + } + let expression = objects[0]; + if (objects.length > 1) { + for (let i = 1; i < objects.length; i++) { + expression = emitHelpers().createAssignHelper([expression, objects[i]]); + } + return expression; + } else { + return emitHelpers().createAssignHelper(objects); + } + } + return visitEachChild(node, visitor, context); + } + function visitExpressionStatement(node) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + function visitParenthesizedExpression(node, expressionResultIsUnused2) { + return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context); + } + function visitSourceFile(node) { + const ancestorFacts = enterSubtree( + 2 /* SourceFileExcludes */, + isEffectiveStrictModeSourceFile(node, compilerOptions) ? 0 /* StrictModeSourceFileIncludes */ : 1 /* SourceFileIncludes */ + ); + exportedVariableStatement = false; + const visited = visitEachChild(node, visitor, context); + const statement = concatenate( + visited.statements, + taggedTemplateStringDeclarations && [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList(taggedTemplateStringDeclarations) + ) + ] + ); + const result = factory2.updateSourceFile(visited, setTextRange(factory2.createNodeArray(statement), node.statements)); + exitSubtree(ancestorFacts); + return result; + } + function visitTaggedTemplateExpression(node) { + return processTaggedTemplateExpression( + context, + node, + visitor, + currentSourceFile, + recordTaggedTemplateString, + 0 /* LiftRestriction */ + ); + } + function visitBinaryExpression(node, expressionResultIsUnused2) { + if (isDestructuringAssignment(node) && containsObjectRestOrSpread(node.left)) { + return flattenDestructuringAssignment( + node, + visitor, + context, + 1 /* ObjectRest */, + !expressionResultIsUnused2 + ); + } + if (node.operatorToken.kind === 28 /* CommaToken */) { + return factory2.updateBinaryExpression( + node, + visitNode(node.left, visitorWithUnusedExpressionResult, isExpression), + node.operatorToken, + visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression) + ); + } + return visitEachChild(node, visitor, context); + } + function visitCommaListExpression(node, expressionResultIsUnused2) { + if (expressionResultIsUnused2) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + let result; + for (let i = 0; i < node.elements.length; i++) { + const element = node.elements[i]; + const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression); + if (result || visited !== element) { + result || (result = node.elements.slice(0, i)); + result.push(visited); + } + } + const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements; + return factory2.updateCommaListExpression(node, elements); + } + function visitCatchClause(node) { + if (node.variableDeclaration && isBindingPattern(node.variableDeclaration.name) && node.variableDeclaration.name.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + const name = factory2.getGeneratedNameForNode(node.variableDeclaration.name); + const updatedDecl = factory2.updateVariableDeclaration( + node.variableDeclaration, + node.variableDeclaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + name + ); + const visitedBindings = flattenDestructuringBinding(updatedDecl, visitor, context, 1 /* ObjectRest */); + let block = visitNode(node.block, visitor, isBlock); + if (some(visitedBindings)) { + block = factory2.updateBlock(block, [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + visitedBindings + ), + ...block.statements + ]); + } + return factory2.updateCatchClause( + node, + factory2.updateVariableDeclaration( + node.variableDeclaration, + name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ), + block + ); + } + return visitEachChild(node, visitor, context); + } + function visitVariableStatement(node) { + if (hasSyntacticModifier(node, 32 /* Export */)) { + const savedExportedVariableStatement = exportedVariableStatement; + exportedVariableStatement = true; + const visited = visitEachChild(node, visitor, context); + exportedVariableStatement = savedExportedVariableStatement; + return visited; + } + return visitEachChild(node, visitor, context); + } + function visitVariableDeclaration(node) { + if (exportedVariableStatement) { + const savedExportedVariableStatement = exportedVariableStatement; + exportedVariableStatement = false; + const visited = visitVariableDeclarationWorker( + node, + /*exportedVariableStatement*/ + true + ); + exportedVariableStatement = savedExportedVariableStatement; + return visited; + } + return visitVariableDeclarationWorker( + node, + /*exportedVariableStatement*/ + false + ); + } + function visitVariableDeclarationWorker(node, exportedVariableStatement2) { + if (isBindingPattern(node.name) && node.name.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + return flattenDestructuringBinding( + node, + visitor, + context, + 1 /* ObjectRest */, + /*rval*/ + void 0, + exportedVariableStatement2 + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + return factory2.updateForStatement( + node, + visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), + visitIterationBody(node.statement, visitor, context) + ); + } + function visitVoidExpression(node) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + function visitForOfStatement(node, outermostLabeledStatement) { + const ancestorFacts = enterSubtree(0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */); + if (node.initializer.transformFlags & 65536 /* ContainsObjectRestOrSpread */ || isAssignmentPattern(node.initializer) && containsObjectRestOrSpread(node.initializer)) { + node = transformForOfStatementWithObjectRest(node); + } + const result = node.awaitModifier ? transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) : factory2.restoreEnclosingLabel(visitEachChild(node, visitor, context), outermostLabeledStatement); + exitSubtree(ancestorFacts); + return result; + } + function transformForOfStatementWithObjectRest(node) { + const initializerWithoutParens = skipParentheses(node.initializer); + if (isVariableDeclarationList(initializerWithoutParens) || isAssignmentPattern(initializerWithoutParens)) { + let bodyLocation; + let statementsLocation; + const temp = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const statements = [createForOfBindingStatement(factory2, initializerWithoutParens, temp)]; + if (isBlock(node.statement)) { + addRange(statements, node.statement.statements); + bodyLocation = node.statement; + statementsLocation = node.statement.statements; + } else if (node.statement) { + append(statements, node.statement); + bodyLocation = node.statement; + statementsLocation = node.statement; + } + return factory2.updateForOfStatement( + node, + node.awaitModifier, + setTextRange( + factory2.createVariableDeclarationList( + [ + setTextRange(factory2.createVariableDeclaration(temp), node.initializer) + ], + 1 /* Let */ + ), + node.initializer + ), + node.expression, + setTextRange( + factory2.createBlock( + setTextRange(factory2.createNodeArray(statements), statementsLocation), + /*multiLine*/ + true + ), + bodyLocation + ) + ); + } + return node; + } + function convertForOfStatementHead(node, boundValue, nonUserCode) { + const value = factory2.createTempVariable(hoistVariableDeclaration); + const iteratorValueExpression = factory2.createAssignment(value, boundValue); + const iteratorValueStatement = factory2.createExpressionStatement(iteratorValueExpression); + setSourceMapRange(iteratorValueStatement, node.expression); + const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse()); + const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression); + setSourceMapRange(exitNonUserCodeStatement, node.expression); + const statements = [iteratorValueStatement, exitNonUserCodeStatement]; + const binding = createForOfBindingStatement(factory2, node.initializer, value); + statements.push(visitNode(binding, visitor, isStatement)); + let bodyLocation; + let statementsLocation; + const statement = visitIterationBody(node.statement, visitor, context); + if (isBlock(statement)) { + addRange(statements, statement.statements); + bodyLocation = statement; + statementsLocation = statement.statements; + } else { + statements.push(statement); + } + return setTextRange( + factory2.createBlock( + setTextRange(factory2.createNodeArray(statements), statementsLocation), + /*multiLine*/ + true + ), + bodyLocation + ); + } + function createDownlevelAwait(expression) { + return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression( + /*asteriskToken*/ + void 0, + emitHelpers().createAwaitHelper(expression) + ) : factory2.createAwaitExpression(expression); + } + function transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) { + const expression = visitNode(node.expression, visitor, isExpression); + const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const nonUserCode = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const done = factory2.createTempVariable(hoistVariableDeclaration); + const errorRecord = factory2.createUniqueName("e"); + const catchVariable = factory2.getGeneratedNameForNode(errorRecord); + const returnMethod = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const callValues = setTextRange(emitHelpers().createAsyncValuesHelper(expression), node.expression); + const callNext = factory2.createCallExpression( + factory2.createPropertyAccessExpression(iterator, "next"), + /*typeArguments*/ + void 0, + [] + ); + const getDone = factory2.createPropertyAccessExpression(result, "done"); + const getValue = factory2.createPropertyAccessExpression(result, "value"); + const callReturn = factory2.createFunctionCallCall(returnMethod, iterator, []); + hoistVariableDeclaration(errorRecord); + hoistVariableDeclaration(returnMethod); + const initializer = ancestorFacts & 2 /* IterationContainer */ ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), callValues]) : callValues; + const forStatement = setEmitFlags( + setTextRange( + factory2.createForStatement( + /*initializer*/ + setEmitFlags( + setTextRange( + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + nonUserCode, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createTrue() + ), + setTextRange(factory2.createVariableDeclaration( + iterator, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ), node.expression), + factory2.createVariableDeclaration(result) + ]), + node.expression + ), + 4194304 /* NoHoisting */ + ), + /*condition*/ + factory2.inlineExpressions([ + factory2.createAssignment(result, createDownlevelAwait(callNext)), + factory2.createAssignment(done, getDone), + factory2.createLogicalNot(done) + ]), + /*incrementor*/ + factory2.createAssignment(nonUserCode, factory2.createTrue()), + /*statement*/ + convertForOfStatementHead(node, getValue, nonUserCode) + ), + /*location*/ + node + ), + 512 /* NoTokenTrailingSourceMaps */ + ); + setOriginalNode(forStatement, node); + return factory2.createTryStatement( + factory2.createBlock([ + factory2.restoreEnclosingLabel( + forStatement, + outermostLabeledStatement + ) + ]), + factory2.createCatchClause( + factory2.createVariableDeclaration(catchVariable), + setEmitFlags( + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment( + errorRecord, + factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("error", catchVariable) + ]) + ) + ) + ]), + 1 /* SingleLine */ + ) + ), + factory2.createBlock([ + factory2.createTryStatement( + /*tryBlock*/ + factory2.createBlock([ + setEmitFlags( + factory2.createIfStatement( + factory2.createLogicalAnd( + factory2.createLogicalAnd( + factory2.createLogicalNot(nonUserCode), + factory2.createLogicalNot(done) + ), + factory2.createAssignment( + returnMethod, + factory2.createPropertyAccessExpression(iterator, "return") + ) + ), + factory2.createExpressionStatement(createDownlevelAwait(callReturn)) + ), + 1 /* SingleLine */ + ) + ]), + /*catchClause*/ + void 0, + /*finallyBlock*/ + setEmitFlags( + factory2.createBlock([ + setEmitFlags( + factory2.createIfStatement( + errorRecord, + factory2.createThrowStatement( + factory2.createPropertyAccessExpression(errorRecord, "error") + ) + ), + 1 /* SingleLine */ + ) + ]), + 1 /* SingleLine */ + ) + ) + ]) + ); + } + function parameterVisitor(node) { + Debug.assertNode(node, isParameter); + return visitParameter(node); + } + function visitParameter(node) { + if (parametersWithPrecedingObjectRestOrSpread == null ? void 0 : parametersWithPrecedingObjectRestOrSpread.has(node)) { + return factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + isBindingPattern(node.name) ? factory2.getGeneratedNameForNode(node) : node.name, + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ); + } + if (node.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + return factory2.updateParameterDeclaration( + node, + /*modifiers*/ + void 0, + node.dotDotDotToken, + factory2.getGeneratedNameForNode(node), + /*questionToken*/ + void 0, + /*type*/ + void 0, + visitNode(node.initializer, visitor, isExpression) + ); + } + return visitEachChild(node, visitor, context); + } + function collectParametersWithPrecedingObjectRestOrSpread(node) { + let parameters; + for (const parameter of node.parameters) { + if (parameters) { + parameters.add(parameter); + } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + parameters = /* @__PURE__ */ new Set(); + } + } + return parameters; + } + function visitConstructorDeclaration(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateConstructorDeclaration( + node, + node.modifiers, + visitParameterList(node.parameters, parameterVisitor, context), + transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitGetAccessorDeclaration(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateGetAccessorDeclaration( + node, + node.modifiers, + visitNode(node.name, visitor, isPropertyName), + visitParameterList(node.parameters, parameterVisitor, context), + /*type*/ + void 0, + transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitSetAccessorDeclaration(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateSetAccessorDeclaration( + node, + node.modifiers, + visitNode(node.name, visitor, isPropertyName), + visitParameterList(node.parameters, parameterVisitor, context), + transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitMethodDeclaration(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateMethodDeclaration( + node, + enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifierLike) : node.modifiers, + enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, + visitNode(node.name, visitor, isPropertyName), + visitNode( + /*node*/ + void 0, + visitor, + isQuestionToken + ), + /*typeParameters*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), + /*type*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitFunctionDeclaration(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateFunctionDeclaration( + node, + enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, + enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), + /*type*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitArrowFunction(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateArrowFunction( + node, + node.modifiers, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, parameterVisitor, context), + /*type*/ + void 0, + node.equalsGreaterThanToken, + transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function visitFunctionExpression(node) { + const savedEnclosingFunctionFlags = enclosingFunctionFlags; + const savedParametersWithPrecedingObjectRestOrSpread = parametersWithPrecedingObjectRestOrSpread; + enclosingFunctionFlags = getFunctionFlags(node); + parametersWithPrecedingObjectRestOrSpread = collectParametersWithPrecedingObjectRestOrSpread(node); + const updated = factory2.updateFunctionExpression( + node, + enclosingFunctionFlags & 1 /* Generator */ ? visitNodes2(node.modifiers, visitorNoAsyncModifier, isModifier) : node.modifiers, + enclosingFunctionFlags & 2 /* Async */ ? void 0 : node.asteriskToken, + node.name, + /*typeParameters*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionParameterList(node) : visitParameterList(node.parameters, parameterVisitor, context), + /*type*/ + void 0, + enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */ ? transformAsyncGeneratorFunctionBody(node) : transformFunctionBody(node) + ); + enclosingFunctionFlags = savedEnclosingFunctionFlags; + parametersWithPrecedingObjectRestOrSpread = savedParametersWithPrecedingObjectRestOrSpread; + return updated; + } + function transformAsyncGeneratorFunctionParameterList(node) { + if (isSimpleParameterList(node.parameters)) { + return visitParameterList(node.parameters, visitor, context); + } + const newParameters = []; + for (const parameter of node.parameters) { + if (parameter.initializer || parameter.dotDotDotToken) { + break; + } + const newParameter = factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.getGeneratedNameForNode(parameter.name, 8 /* ReservedInNestedScopes */) + ); + newParameters.push(newParameter); + } + const newParametersArray = factory2.createNodeArray(newParameters); + setTextRange(newParametersArray, node.parameters); + return newParametersArray; + } + function transformAsyncGeneratorFunctionBody(node) { + const innerParameters = !isSimpleParameterList(node.parameters) ? visitParameterList(node.parameters, visitor, context) : void 0; + resumeLexicalEnvironment(); + const savedCapturedSuperProperties = capturedSuperProperties; + const savedHasSuperElementAccess = hasSuperElementAccess; + capturedSuperProperties = /* @__PURE__ */ new Set(); + hasSuperElementAccess = false; + const outerStatements = []; + let asyncBody = factory2.updateBlock(node.body, visitNodes2(node.body.statements, visitor, isStatement)); + asyncBody = factory2.updateBlock(asyncBody, factory2.mergeLexicalEnvironment(asyncBody.statements, appendObjectRestAssignmentsIfNeeded(endLexicalEnvironment(), node))); + const returnStatement = factory2.createReturnStatement( + emitHelpers().createAsyncGeneratorHelper( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + factory2.createToken(42 /* AsteriskToken */), + node.name && factory2.getGeneratedNameForNode(node.name), + /*typeParameters*/ + void 0, + innerParameters ?? [], + /*type*/ + void 0, + asyncBody + ), + !!(hierarchyFacts & 1 /* HasLexicalThis */) + ) + ); + const emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) || resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)); + if (emitSuperHelpers) { + enableSubstitutionForAsyncMethodsWithSuper(); + const variableStatement = createSuperAccessVariableStatement(factory2, resolver, node, capturedSuperProperties); + substitutedSuperAccessors[getNodeId(variableStatement)] = true; + insertStatementsAfterStandardPrologue(outerStatements, [variableStatement]); + } + outerStatements.push(returnStatement); + const block = factory2.updateBlock(node.body, outerStatements); + if (emitSuperHelpers && hasSuperElementAccess) { + if (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */)) { + addEmitHelper(block, advancedAsyncSuperHelper); + } else if (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */)) { + addEmitHelper(block, asyncSuperHelper); + } + } + capturedSuperProperties = savedCapturedSuperProperties; + hasSuperElementAccess = savedHasSuperElementAccess; + return block; + } + function transformFunctionBody(node) { + resumeLexicalEnvironment(); + let statementOffset = 0; + const statements = []; + const body = visitNode(node.body, visitor, isConciseBody) ?? factory2.createBlock([]); + if (isBlock(body)) { + statementOffset = factory2.copyPrologue( + body.statements, + statements, + /*ensureUseStrict*/ + false, + visitor + ); + } + addRange(statements, appendObjectRestAssignmentsIfNeeded( + /*statements*/ + void 0, + node + )); + const leadingStatements = endLexicalEnvironment(); + if (statementOffset > 0 || some(statements) || some(leadingStatements)) { + const block = factory2.converters.convertToFunctionBlock( + body, + /*multiLine*/ + true + ); + insertStatementsAfterStandardPrologue(statements, leadingStatements); + addRange(statements, block.statements.slice(statementOffset)); + return factory2.updateBlock(block, setTextRange(factory2.createNodeArray(statements), block.statements)); + } + return body; + } + function appendObjectRestAssignmentsIfNeeded(statements, node) { + let containsPrecedingObjectRestOrSpread = false; + for (const parameter of node.parameters) { + if (containsPrecedingObjectRestOrSpread) { + if (isBindingPattern(parameter.name)) { + if (parameter.name.elements.length > 0) { + const declarations = flattenDestructuringBinding( + parameter, + visitor, + context, + 0 /* All */, + factory2.getGeneratedNameForNode(parameter) + ); + if (some(declarations)) { + const declarationList = factory2.createVariableDeclarationList(declarations); + const statement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + declarationList + ); + setEmitFlags(statement, 2097152 /* CustomPrologue */); + statements = append(statements, statement); + } + } else if (parameter.initializer) { + const name = factory2.getGeneratedNameForNode(parameter); + const initializer = visitNode(parameter.initializer, visitor, isExpression); + const assignment = factory2.createAssignment(name, initializer); + const statement = factory2.createExpressionStatement(assignment); + setEmitFlags(statement, 2097152 /* CustomPrologue */); + statements = append(statements, statement); + } + } else if (parameter.initializer) { + const name = factory2.cloneNode(parameter.name); + setTextRange(name, parameter.name); + setEmitFlags(name, 96 /* NoSourceMap */); + const initializer = visitNode(parameter.initializer, visitor, isExpression); + addEmitFlags(initializer, 96 /* NoSourceMap */ | 3072 /* NoComments */); + const assignment = factory2.createAssignment(name, initializer); + setTextRange(assignment, parameter); + setEmitFlags(assignment, 3072 /* NoComments */); + const block = factory2.createBlock([factory2.createExpressionStatement(assignment)]); + setTextRange(block, parameter); + setEmitFlags(block, 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */); + const typeCheck = factory2.createTypeCheck(factory2.cloneNode(parameter.name), "undefined"); + const statement = factory2.createIfStatement(typeCheck, block); + startOnNewLine(statement); + setTextRange(statement, parameter); + setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2097152 /* CustomPrologue */ | 3072 /* NoComments */); + statements = append(statements, statement); + } + } else if (parameter.transformFlags & 65536 /* ContainsObjectRestOrSpread */) { + containsPrecedingObjectRestOrSpread = true; + const declarations = flattenDestructuringBinding( + parameter, + visitor, + context, + 1 /* ObjectRest */, + factory2.getGeneratedNameForNode(parameter), + /*hoistTempVariables*/ + false, + /*skipInitializer*/ + true + ); + if (some(declarations)) { + const declarationList = factory2.createVariableDeclarationList(declarations); + const statement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + declarationList + ); + setEmitFlags(statement, 2097152 /* CustomPrologue */); + statements = append(statements, statement); + } + } + } + return statements; + } + function enableSubstitutionForAsyncMethodsWithSuper() { + if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) { + enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */; + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(211 /* PropertyAccessExpression */); + context.enableSubstitution(212 /* ElementAccessExpression */); + context.enableEmitNotification(263 /* ClassDeclaration */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(243 /* VariableStatement */); + } + } + function onEmitNode(hint, node, emitCallback) { + if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) { + const superContainerFlags = (resolver.hasNodeCheckFlag(node, 128 /* MethodWithSuperPropertyAccessInAsync */) ? 128 /* MethodWithSuperPropertyAccessInAsync */ : 0) | (resolver.hasNodeCheckFlag(node, 256 /* MethodWithSuperPropertyAssignmentInAsync */) ? 256 /* MethodWithSuperPropertyAssignmentInAsync */ : 0); + if (superContainerFlags !== enclosingSuperContainerFlags) { + const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; + enclosingSuperContainerFlags = superContainerFlags; + previousOnEmitNode(hint, node, emitCallback); + enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; + return; + } + } else if (enabledSubstitutions && substitutedSuperAccessors[getNodeId(node)]) { + const savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags; + enclosingSuperContainerFlags = 0; + previousOnEmitNode(hint, node, emitCallback); + enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags; + return; + } + previousOnEmitNode(hint, node, emitCallback); + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) { + return substituteExpression(node); + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 211 /* PropertyAccessExpression */: + return substitutePropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return substituteElementAccessExpression(node); + case 213 /* CallExpression */: + return substituteCallExpression(node); + } + return node; + } + function substitutePropertyAccessExpression(node) { + if (node.expression.kind === 108 /* SuperKeyword */) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */), + node.name + ), + node + ); + } + return node; + } + function substituteElementAccessExpression(node) { + if (node.expression.kind === 108 /* SuperKeyword */) { + return createSuperElementAccessInAsyncMethod( + node.argumentExpression, + node + ); + } + return node; + } + function substituteCallExpression(node) { + const expression = node.expression; + if (isSuperProperty(expression)) { + const argumentExpression = isPropertyAccessExpression(expression) ? substitutePropertyAccessExpression(expression) : substituteElementAccessExpression(expression); + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(argumentExpression, "call"), + /*typeArguments*/ + void 0, + [ + factory2.createThis(), + ...node.arguments + ] + ); + } + return node; + } + function isSuperContainer(node) { + const kind = node.kind; + return kind === 263 /* ClassDeclaration */ || kind === 176 /* Constructor */ || kind === 174 /* MethodDeclaration */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; + } + function createSuperElementAccessInAsyncMethod(argumentExpression, location) { + if (enclosingSuperContainerFlags & 256 /* MethodWithSuperPropertyAssignmentInAsync */) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.createCallExpression( + factory2.createIdentifier("_superIndex"), + /*typeArguments*/ + void 0, + [argumentExpression] + ), + "value" + ), + location + ); + } else { + return setTextRange( + factory2.createCallExpression( + factory2.createIdentifier("_superIndex"), + /*typeArguments*/ + void 0, + [argumentExpression] + ), + location + ); + } + } +} + +// src/compiler/transformers/es2019.ts +function transformES2019(context) { + const factory2 = context.factory; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + if ((node.transformFlags & 64 /* ContainsES2019 */) === 0) { + return node; + } + switch (node.kind) { + case 299 /* CatchClause */: + return visitCatchClause(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitCatchClause(node) { + if (!node.variableDeclaration) { + return factory2.updateCatchClause( + node, + factory2.createVariableDeclaration(factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + )), + visitNode(node.block, visitor, isBlock) + ); + } + return visitEachChild(node, visitor, context); + } +} + +// src/compiler/transformers/es2020.ts +function transformES2020(context) { + const { + factory: factory2, + hoistVariableDeclaration + } = context; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + if ((node.transformFlags & 32 /* ContainsES2020 */) === 0) { + return node; + } + switch (node.kind) { + case 213 /* CallExpression */: { + const updated = visitNonOptionalCallExpression( + node, + /*captureThisArg*/ + false + ); + Debug.assertNotNode(updated, isSyntheticReference); + return updated; + } + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + if (isOptionalChain(node)) { + const updated = visitOptionalExpression( + node, + /*captureThisArg*/ + false, + /*isDelete*/ + false + ); + Debug.assertNotNode(updated, isSyntheticReference); + return updated; + } + return visitEachChild(node, visitor, context); + case 226 /* BinaryExpression */: + if (node.operatorToken.kind === 61 /* QuestionQuestionToken */) { + return transformNullishCoalescingExpression(node); + } + return visitEachChild(node, visitor, context); + case 220 /* DeleteExpression */: + return visitDeleteExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function flattenChain(chain) { + Debug.assertNotNode(chain, isNonNullChain); + const links = [chain]; + while (!chain.questionDotToken && !isTaggedTemplateExpression(chain)) { + chain = cast(skipPartiallyEmittedExpressions(chain.expression), isOptionalChain); + Debug.assertNotNode(chain, isNonNullChain); + links.unshift(chain); + } + return { expression: chain.expression, chain: links }; + } + function visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete) { + const expression = visitNonOptionalExpression(node.expression, captureThisArg, isDelete); + if (isSyntheticReference(expression)) { + return factory2.createSyntheticReferenceExpression(factory2.updateParenthesizedExpression(node, expression.expression), expression.thisArg); + } + return factory2.updateParenthesizedExpression(node, expression); + } + function visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete) { + if (isOptionalChain(node)) { + return visitOptionalExpression(node, captureThisArg, isDelete); + } + let expression = visitNode(node.expression, visitor, isExpression); + Debug.assertNotNode(expression, isSyntheticReference); + let thisArg; + if (captureThisArg) { + if (!isSimpleCopiableExpression(expression)) { + thisArg = factory2.createTempVariable(hoistVariableDeclaration); + expression = factory2.createAssignment(thisArg, expression); + } else { + thisArg = expression; + } + } + expression = node.kind === 211 /* PropertyAccessExpression */ ? factory2.updatePropertyAccessExpression(node, expression, visitNode(node.name, visitor, isIdentifier)) : factory2.updateElementAccessExpression(node, expression, visitNode(node.argumentExpression, visitor, isExpression)); + return thisArg ? factory2.createSyntheticReferenceExpression(expression, thisArg) : expression; + } + function visitNonOptionalCallExpression(node, captureThisArg) { + if (isOptionalChain(node)) { + return visitOptionalExpression( + node, + captureThisArg, + /*isDelete*/ + false + ); + } + if (isParenthesizedExpression(node.expression) && isOptionalChain(skipParentheses(node.expression))) { + const expression = visitNonOptionalParenthesizedExpression( + node.expression, + /*captureThisArg*/ + true, + /*isDelete*/ + false + ); + const args = visitNodes2(node.arguments, visitor, isExpression); + if (isSyntheticReference(expression)) { + return setTextRange(factory2.createFunctionCallCall(expression.expression, expression.thisArg, args), node); + } + return factory2.updateCallExpression( + node, + expression, + /*typeArguments*/ + void 0, + args + ); + } + return visitEachChild(node, visitor, context); + } + function visitNonOptionalExpression(node, captureThisArg, isDelete) { + switch (node.kind) { + case 217 /* ParenthesizedExpression */: + return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete); + case 213 /* CallExpression */: + return visitNonOptionalCallExpression(node, captureThisArg); + default: + return visitNode(node, visitor, isExpression); + } + } + function visitOptionalExpression(node, captureThisArg, isDelete) { + const { expression, chain } = flattenChain(node); + const left = visitNonOptionalExpression( + skipPartiallyEmittedExpressions(expression), + isCallChain(chain[0]), + /*isDelete*/ + false + ); + let leftThisArg = isSyntheticReference(left) ? left.thisArg : void 0; + let capturedLeft = isSyntheticReference(left) ? left.expression : left; + let leftExpression = factory2.restoreOuterExpressions(expression, capturedLeft, 8 /* PartiallyEmittedExpressions */); + if (!isSimpleCopiableExpression(capturedLeft)) { + capturedLeft = factory2.createTempVariable(hoistVariableDeclaration); + leftExpression = factory2.createAssignment(capturedLeft, leftExpression); + } + let rightExpression = capturedLeft; + let thisArg; + for (let i = 0; i < chain.length; i++) { + const segment = chain[i]; + switch (segment.kind) { + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + if (i === chain.length - 1 && captureThisArg) { + if (!isSimpleCopiableExpression(rightExpression)) { + thisArg = factory2.createTempVariable(hoistVariableDeclaration); + rightExpression = factory2.createAssignment(thisArg, rightExpression); + } else { + thisArg = rightExpression; + } + } + rightExpression = segment.kind === 211 /* PropertyAccessExpression */ ? factory2.createPropertyAccessExpression(rightExpression, visitNode(segment.name, visitor, isIdentifier)) : factory2.createElementAccessExpression(rightExpression, visitNode(segment.argumentExpression, visitor, isExpression)); + break; + case 213 /* CallExpression */: + if (i === 0 && leftThisArg) { + if (!isGeneratedIdentifier(leftThisArg)) { + leftThisArg = factory2.cloneNode(leftThisArg); + addEmitFlags(leftThisArg, 3072 /* NoComments */); + } + rightExpression = factory2.createFunctionCallCall( + rightExpression, + leftThisArg.kind === 108 /* SuperKeyword */ ? factory2.createThis() : leftThisArg, + visitNodes2(segment.arguments, visitor, isExpression) + ); + } else { + rightExpression = factory2.createCallExpression( + rightExpression, + /*typeArguments*/ + void 0, + visitNodes2(segment.arguments, visitor, isExpression) + ); + } + break; + } + setOriginalNode(rightExpression, segment); + } + const target = isDelete ? factory2.createConditionalExpression( + createNotNullCondition( + leftExpression, + capturedLeft, + /*invert*/ + true + ), + /*questionToken*/ + void 0, + factory2.createTrue(), + /*colonToken*/ + void 0, + factory2.createDeleteExpression(rightExpression) + ) : factory2.createConditionalExpression( + createNotNullCondition( + leftExpression, + capturedLeft, + /*invert*/ + true + ), + /*questionToken*/ + void 0, + factory2.createVoidZero(), + /*colonToken*/ + void 0, + rightExpression + ); + setTextRange(target, node); + return thisArg ? factory2.createSyntheticReferenceExpression(target, thisArg) : target; + } + function createNotNullCondition(left, right, invert) { + return factory2.createBinaryExpression( + factory2.createBinaryExpression( + left, + factory2.createToken(invert ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */), + factory2.createNull() + ), + factory2.createToken(invert ? 57 /* BarBarToken */ : 56 /* AmpersandAmpersandToken */), + factory2.createBinaryExpression( + right, + factory2.createToken(invert ? 37 /* EqualsEqualsEqualsToken */ : 38 /* ExclamationEqualsEqualsToken */), + factory2.createVoidZero() + ) + ); + } + function transformNullishCoalescingExpression(node) { + let left = visitNode(node.left, visitor, isExpression); + let right = left; + if (!isSimpleCopiableExpression(left)) { + right = factory2.createTempVariable(hoistVariableDeclaration); + left = factory2.createAssignment(right, left); + } + return setTextRange( + factory2.createConditionalExpression( + createNotNullCondition(left, right), + /*questionToken*/ + void 0, + right, + /*colonToken*/ + void 0, + visitNode(node.right, visitor, isExpression) + ), + node + ); + } + function visitDeleteExpression(node) { + return isOptionalChain(skipParentheses(node.expression)) ? setOriginalNode(visitNonOptionalExpression( + node.expression, + /*captureThisArg*/ + false, + /*isDelete*/ + true + ), node) : factory2.updateDeleteExpression(node, visitNode(node.expression, visitor, isExpression)); + } +} + +// src/compiler/transformers/es2021.ts +function transformES2021(context) { + const { + hoistVariableDeclaration, + factory: factory2 + } = context; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + if ((node.transformFlags & 16 /* ContainsES2021 */) === 0) { + return node; + } + if (isLogicalOrCoalescingAssignmentExpression(node)) { + return transformLogicalAssignment(node); + } + return visitEachChild(node, visitor, context); + } + function transformLogicalAssignment(binaryExpression) { + const operator = binaryExpression.operatorToken; + const nonAssignmentOperator = getNonAssignmentOperatorForCompoundAssignment(operator.kind); + let left = skipParentheses(visitNode(binaryExpression.left, visitor, isLeftHandSideExpression)); + let assignmentTarget = left; + const right = skipParentheses(visitNode(binaryExpression.right, visitor, isExpression)); + if (isAccessExpression(left)) { + const propertyAccessTargetSimpleCopiable = isSimpleCopiableExpression(left.expression); + const propertyAccessTarget = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createTempVariable(hoistVariableDeclaration); + const propertyAccessTargetAssignment = propertyAccessTargetSimpleCopiable ? left.expression : factory2.createAssignment( + propertyAccessTarget, + left.expression + ); + if (isPropertyAccessExpression(left)) { + assignmentTarget = factory2.createPropertyAccessExpression( + propertyAccessTarget, + left.name + ); + left = factory2.createPropertyAccessExpression( + propertyAccessTargetAssignment, + left.name + ); + } else { + const elementAccessArgumentSimpleCopiable = isSimpleCopiableExpression(left.argumentExpression); + const elementAccessArgument = elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createTempVariable(hoistVariableDeclaration); + assignmentTarget = factory2.createElementAccessExpression( + propertyAccessTarget, + elementAccessArgument + ); + left = factory2.createElementAccessExpression( + propertyAccessTargetAssignment, + elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory2.createAssignment( + elementAccessArgument, + left.argumentExpression + ) + ); + } + } + return factory2.createBinaryExpression( + left, + nonAssignmentOperator, + factory2.createParenthesizedExpression( + factory2.createAssignment( + assignmentTarget, + right + ) + ) + ); + } +} + +// src/compiler/transformers/esnext.ts +function transformESNext(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + hoistVariableDeclaration, + startLexicalEnvironment, + endLexicalEnvironment + } = context; + let exportBindings; + let exportVars; + let defaultExportBinding; + let exportEqualsBinding; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + const visited = visitNode(node, visitor, isSourceFile); + addEmitHelpers(visited, context.readEmitHelpers()); + exportVars = void 0; + exportBindings = void 0; + defaultExportBinding = void 0; + return visited; + } + function visitor(node) { + if ((node.transformFlags & 4 /* ContainsESNext */) === 0) { + return node; + } + switch (node.kind) { + case 307 /* SourceFile */: + return visitSourceFile(node); + case 241 /* Block */: + return visitBlock(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitSourceFile(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + startLexicalEnvironment(); + exportBindings = new IdentifierNameMap(); + exportVars = []; + const prologueCount = countPrologueStatements(node.statements); + const topLevelStatements = []; + addRange(topLevelStatements, visitArray(node.statements, visitor, isStatement, 0, prologueCount)); + let pos = prologueCount; + while (pos < node.statements.length) { + const statement = node.statements[pos]; + if (getUsingKind(statement) !== 0 /* None */) { + if (pos > prologueCount) { + addRange(topLevelStatements, visitNodes2(node.statements, visitor, isStatement, prologueCount, pos - prologueCount)); + } + break; + } + pos++; + } + Debug.assert(pos < node.statements.length, "Should have encountered at least one 'using' statement."); + const envBinding = createEnvBinding(); + const bodyStatements = transformUsingDeclarations(node.statements, pos, node.statements.length, envBinding, topLevelStatements); + if (exportBindings.size) { + append( + topLevelStatements, + factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(arrayFrom(exportBindings.values())) + ) + ); + } + addRange(topLevelStatements, endLexicalEnvironment()); + if (exportVars.length) { + topLevelStatements.push(factory2.createVariableStatement( + factory2.createModifiersFromModifierFlags(32 /* Export */), + factory2.createVariableDeclarationList( + exportVars, + 1 /* Let */ + ) + )); + } + addRange(topLevelStatements, createDownlevelUsingStatements(bodyStatements, envBinding, usingKind === 2 /* Async */)); + if (exportEqualsBinding) { + topLevelStatements.push(factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + true, + exportEqualsBinding + )); + } + return factory2.updateSourceFile(node, topLevelStatements); + } + return visitEachChild(node, visitor, context); + } + function visitBlock(node) { + const usingKind = getUsingKindOfStatements(node.statements); + if (usingKind) { + const prologueCount = countPrologueStatements(node.statements); + const envBinding = createEnvBinding(); + return factory2.updateBlock( + node, + [ + ...visitArray(node.statements, visitor, isStatement, 0, prologueCount), + ...createDownlevelUsingStatements( + transformUsingDeclarations( + node.statements, + prologueCount, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ), + envBinding, + usingKind === 2 /* Async */ + ) + ] + ); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node) { + if (node.initializer && isUsingVariableDeclarationList(node.initializer)) { + return visitNode( + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + ), + factory2.updateForStatement( + node, + /*initializer*/ + void 0, + node.condition, + node.incrementor, + node.statement + ) + ]), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitForOfStatement(node) { + if (isUsingVariableDeclarationList(node.initializer)) { + const forInitializer = node.initializer; + const forDecl = firstOrUndefined(forInitializer.declarations) || factory2.createVariableDeclaration(factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + )); + const isAwaitUsing = getUsingKindOfVariableDeclarationList(forInitializer) === 2 /* Async */; + const temp = factory2.getGeneratedNameForNode(forDecl.name); + const usingVar = factory2.updateVariableDeclaration( + forDecl, + forDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + temp + ); + const usingVarList = factory2.createVariableDeclarationList([usingVar], isAwaitUsing ? 6 /* AwaitUsing */ : 4 /* Using */); + const usingVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + usingVarList + ); + return visitNode( + factory2.updateForOfStatement( + node, + node.awaitModifier, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(temp) + ], 2 /* Const */), + node.expression, + isBlock(node.statement) ? factory2.updateBlock(node.statement, [ + usingVarStatement, + ...node.statement.statements + ]) : factory2.createBlock( + [ + usingVarStatement, + node.statement + ], + /*multiLine*/ + true + ) + ), + visitor, + isStatement + ); + } + return visitEachChild(node, visitor, context); + } + function visitCaseOrDefaultClause(node, envBinding) { + if (getUsingKindOfStatements(node.statements) !== 0 /* None */) { + if (isCaseClause(node)) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } else { + return factory2.updateDefaultClause( + node, + transformUsingDeclarations( + node.statements, + /*start*/ + 0, + node.statements.length, + envBinding, + /*topLevelStatements*/ + void 0 + ) + ); + } + } + return visitEachChild(node, visitor, context); + } + function visitSwitchStatement(node) { + const usingKind = getUsingKindOfCaseOrDefaultClauses(node.caseBlock.clauses); + if (usingKind) { + const envBinding = createEnvBinding(); + return createDownlevelUsingStatements( + [ + factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + factory2.updateCaseBlock( + node.caseBlock, + node.caseBlock.clauses.map((clause) => visitCaseOrDefaultClause(clause, envBinding)) + ) + ) + ], + envBinding, + usingKind === 2 /* Async */ + ); + } + return visitEachChild(node, visitor, context); + } + function transformUsingDeclarations(statementsIn, start, end, envBinding, topLevelStatements) { + const statements = []; + for (let i = start; i < end; i++) { + const statement = statementsIn[i]; + const usingKind = getUsingKind(statement); + if (usingKind) { + Debug.assertNode(statement, isVariableStatement); + const declarations = []; + for (let declaration of statement.declarationList.declarations) { + if (!isIdentifier(declaration.name)) { + declarations.length = 0; + break; + } + if (isNamedEvaluation(declaration)) { + declaration = transformNamedEvaluation(context, declaration); + } + const initializer = visitNode(declaration.initializer, visitor, isExpression) ?? factory2.createVoidZero(); + declarations.push(factory2.updateVariableDeclaration( + declaration, + declaration.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createAddDisposableResourceHelper( + envBinding, + initializer, + usingKind === 2 /* Async */ + ) + )); + } + if (declarations.length) { + const varList = factory2.createVariableDeclarationList(declarations, 2 /* Const */); + setOriginalNode(varList, statement.declarationList); + setTextRange(varList, statement.declarationList); + hoistOrAppendNode(factory2.updateVariableStatement( + statement, + /*modifiers*/ + void 0, + varList + )); + continue; + } + } + const result = visitor(statement); + if (isArray(result)) { + result.forEach(hoistOrAppendNode); + } else if (result) { + hoistOrAppendNode(result); + } + } + return statements; + function hoistOrAppendNode(node) { + Debug.assertNode(node, isStatement); + append(statements, hoist(node)); + } + function hoist(node) { + if (!topLevelStatements) return node; + switch (node.kind) { + case 272 /* ImportDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 278 /* ExportDeclaration */: + case 262 /* FunctionDeclaration */: + return hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements); + case 277 /* ExportAssignment */: + return hoistExportAssignment(node); + case 263 /* ClassDeclaration */: + return hoistClassDeclaration(node); + case 243 /* VariableStatement */: + return hoistVariableStatement(node); + } + return node; + } + } + function hoistImportOrExportOrHoistedDeclaration(node, topLevelStatements) { + topLevelStatements.push(node); + return void 0; + } + function hoistExportAssignment(node) { + return node.isExportEquals ? hoistExportEquals(node) : hoistExportDefault(node); + } + function hoistExportDefault(node) { + if (defaultExportBinding) { + return node; + } + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + let expression = node.expression; + let innerExpression = skipOuterExpressions(expression); + if (isNamedEvaluation(innerExpression)) { + innerExpression = transformNamedEvaluation( + context, + innerExpression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + expression = factory2.restoreOuterExpressions(expression, innerExpression); + } + const assignment = factory2.createAssignment(defaultExportBinding, expression); + return factory2.createExpressionStatement(assignment); + } + function hoistExportEquals(node) { + if (exportEqualsBinding) { + return node; + } + exportEqualsBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistVariableDeclaration(exportEqualsBinding); + const assignment = factory2.createAssignment(exportEqualsBinding, node.expression); + return factory2.createExpressionStatement(assignment); + } + function hoistClassDeclaration(node) { + if (!node.name && defaultExportBinding) { + return node; + } + const isExported = hasSyntacticModifier(node, 32 /* Export */); + const isDefault = hasSyntacticModifier(node, 2048 /* Default */); + let expression = factory2.converters.convertToClassExpression(node); + if (node.name) { + hoistBindingIdentifier( + factory2.getLocalName(node), + isExported && !isDefault, + /*exportAlias*/ + void 0, + node + ); + expression = factory2.createAssignment(factory2.getDeclarationName(node), expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false + ); + } + setOriginalNode(expression, node); + setSourceMapRange(expression, node); + setCommentRange(expression, node); + } + if (isDefault && !defaultExportBinding) { + defaultExportBinding = factory2.createUniqueName("_default", 8 /* ReservedInNestedScopes */ | 32 /* FileLevel */ | 16 /* Optimistic */); + hoistBindingIdentifier( + defaultExportBinding, + /*isExport*/ + true, + "default", + node + ); + expression = factory2.createAssignment(defaultExportBinding, expression); + if (isNamedEvaluation(expression)) { + expression = transformNamedEvaluation( + context, + expression, + /*ignoreEmptyStringLiteral*/ + false, + "default" + ); + } + setOriginalNode(expression, node); + } + return factory2.createExpressionStatement(expression); + } + function hoistVariableStatement(node) { + let expressions; + const isExported = hasSyntacticModifier(node, 32 /* Export */); + for (const variable of node.declarationList.declarations) { + hoistBindingElement(variable, isExported, variable); + if (variable.initializer) { + expressions = append(expressions, hoistInitializedVariable(variable)); + } + } + if (expressions) { + const statement = factory2.createExpressionStatement(factory2.inlineExpressions(expressions)); + setOriginalNode(statement, node); + setCommentRange(statement, node); + setSourceMapRange(statement, node); + return statement; + } + return void 0; + } + function hoistInitializedVariable(node) { + Debug.assertIsDefined(node.initializer); + let target; + if (isIdentifier(node.name)) { + target = factory2.cloneNode(node.name); + setEmitFlags(target, getEmitFlags(target) & ~(32768 /* LocalName */ | 16384 /* ExportName */ | 65536 /* InternalName */)); + } else { + target = factory2.converters.convertToAssignmentPattern(node.name); + } + const assignment = factory2.createAssignment(target, node.initializer); + setOriginalNode(assignment, node); + setCommentRange(assignment, node); + setSourceMapRange(assignment, node); + return assignment; + } + function hoistBindingElement(node, isExportedDeclaration, original) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element, isExportedDeclaration, original); + } + } + } else { + hoistBindingIdentifier( + node.name, + isExportedDeclaration, + /*exportAlias*/ + void 0, + original + ); + } + } + function hoistBindingIdentifier(node, isExport, exportAlias, original) { + const name = isGeneratedIdentifier(node) ? node : factory2.cloneNode(node); + if (isExport) { + if (exportAlias === void 0 && !isLocalName(name)) { + const varDecl = factory2.createVariableDeclaration(name); + if (original) { + setOriginalNode(varDecl, original); + } + exportVars.push(varDecl); + return; + } + const localName = exportAlias !== void 0 ? name : void 0; + const exportName = exportAlias !== void 0 ? exportAlias : name; + const specifier = factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + localName, + exportName + ); + if (original) { + setOriginalNode(specifier, original); + } + exportBindings.set(name, specifier); + } + hoistVariableDeclaration(name); + } + function createEnvBinding() { + return factory2.createUniqueName("env"); + } + function createDownlevelUsingStatements(bodyStatements, envBinding, async) { + const statements = []; + const envObject = factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("stack", factory2.createArrayLiteralExpression()), + factory2.createPropertyAssignment("error", factory2.createVoidZero()), + factory2.createPropertyAssignment("hasError", factory2.createFalse()) + ]); + const envVar = factory2.createVariableDeclaration( + envBinding, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + envObject + ); + const envVarList = factory2.createVariableDeclarationList([envVar], 2 /* Const */); + const envVarStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + envVarList + ); + statements.push(envVarStatement); + const tryBlock = factory2.createBlock( + bodyStatements, + /*multiLine*/ + true + ); + const bodyCatchBinding = factory2.createUniqueName("e"); + const catchClause = factory2.createCatchClause( + bodyCatchBinding, + factory2.createBlock( + [ + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "error"), + bodyCatchBinding + ) + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(envBinding, "hasError"), + factory2.createTrue() + ) + ) + ], + /*multiLine*/ + true + ) + ); + let finallyBlock; + if (async) { + const result = factory2.createUniqueName("result"); + finallyBlock = factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], 2 /* Const */) + ), + factory2.createIfStatement(result, factory2.createExpressionStatement(factory2.createAwaitExpression(result))) + ], + /*multiLine*/ + true + ); + } else { + finallyBlock = factory2.createBlock( + [ + factory2.createExpressionStatement( + emitHelpers().createDisposeResourcesHelper(envBinding) + ) + ], + /*multiLine*/ + true + ); + } + const tryStatement = factory2.createTryStatement(tryBlock, catchClause, finallyBlock); + statements.push(tryStatement); + return statements; + } +} +function countPrologueStatements(statements) { + for (let i = 0; i < statements.length; i++) { + if (!isPrologueDirective(statements[i]) && !isCustomPrologue(statements[i])) { + return i; + } + } + return 0; +} +function isUsingVariableDeclarationList(node) { + return isVariableDeclarationList(node) && getUsingKindOfVariableDeclarationList(node) !== 0 /* None */; +} +function getUsingKindOfVariableDeclarationList(node) { + return (node.flags & 7 /* BlockScoped */) === 6 /* AwaitUsing */ ? 2 /* Async */ : (node.flags & 7 /* BlockScoped */) === 4 /* Using */ ? 1 /* Sync */ : 0 /* None */; +} +function getUsingKindOfVariableStatement(node) { + return getUsingKindOfVariableDeclarationList(node.declarationList); +} +function getUsingKind(statement) { + return isVariableStatement(statement) ? getUsingKindOfVariableStatement(statement) : 0 /* None */; +} +function getUsingKindOfStatements(statements) { + let result = 0 /* None */; + for (const statement of statements) { + const usingKind = getUsingKind(statement); + if (usingKind === 2 /* Async */) return 2 /* Async */; + if (usingKind > result) result = usingKind; + } + return result; +} +function getUsingKindOfCaseOrDefaultClauses(clauses) { + let result = 0 /* None */; + for (const clause of clauses) { + const usingKind = getUsingKindOfStatements(clause.statements); + if (usingKind === 2 /* Async */) return 2 /* Async */; + if (usingKind > result) result = usingKind; + } + return result; +} + +// src/compiler/transformers/jsx.ts +function transformJsx(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers + } = context; + const compilerOptions = context.getCompilerOptions(); + let currentSourceFile; + let currentFileState; + return chainBundle(context, transformSourceFile); + function getCurrentFileNameExpression() { + if (currentFileState.filenameDeclaration) { + return currentFileState.filenameDeclaration.name; + } + const declaration = factory2.createVariableDeclaration( + factory2.createUniqueName("_jsxFileName", 16 /* Optimistic */ | 32 /* FileLevel */), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createStringLiteral(currentSourceFile.fileName) + ); + currentFileState.filenameDeclaration = declaration; + return currentFileState.filenameDeclaration.name; + } + function getJsxFactoryCalleePrimitive(isStaticChildren) { + return compilerOptions.jsx === 5 /* ReactJSXDev */ ? "jsxDEV" : isStaticChildren ? "jsxs" : "jsx"; + } + function getJsxFactoryCallee(isStaticChildren) { + const type = getJsxFactoryCalleePrimitive(isStaticChildren); + return getImplicitImportForName(type); + } + function getImplicitJsxFragmentReference() { + return getImplicitImportForName("Fragment"); + } + function getImplicitImportForName(name) { + var _a, _b; + const importSource = name === "createElement" ? currentFileState.importSpecifier : getJSXRuntimeImport(currentFileState.importSpecifier, compilerOptions); + const existing = (_b = (_a = currentFileState.utilizedImplicitRuntimeImports) == null ? void 0 : _a.get(importSource)) == null ? void 0 : _b.get(name); + if (existing) { + return existing.name; + } + if (!currentFileState.utilizedImplicitRuntimeImports) { + currentFileState.utilizedImplicitRuntimeImports = /* @__PURE__ */ new Map(); + } + let specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource); + if (!specifierSourceImports) { + specifierSourceImports = /* @__PURE__ */ new Map(); + currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports); + } + const generatedName = factory2.createUniqueName(`_${name}`, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */); + const specifier = factory2.createImportSpecifier( + /*isTypeOnly*/ + false, + factory2.createIdentifier(name), + generatedName + ); + setIdentifierGeneratedImportReference(generatedName, specifier); + specifierSourceImports.set(name, specifier); + return generatedName; + } + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + currentSourceFile = node; + currentFileState = {}; + currentFileState.importSpecifier = getJSXImplicitImportBase(compilerOptions, node); + let visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + let statements = visited.statements; + if (currentFileState.filenameDeclaration) { + statements = insertStatementAfterCustomPrologue(statements.slice(), factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([currentFileState.filenameDeclaration], 2 /* Const */) + )); + } + if (currentFileState.utilizedImplicitRuntimeImports) { + for (const [importSource, importSpecifiersMap] of arrayFrom(currentFileState.utilizedImplicitRuntimeImports.entries())) { + if (isExternalModule(node)) { + const importStatement = factory2.createImportDeclaration( + /*modifiers*/ + void 0, + factory2.createImportClause( + /*isTypeOnly*/ + false, + /*name*/ + void 0, + factory2.createNamedImports(arrayFrom(importSpecifiersMap.values())) + ), + factory2.createStringLiteral(importSource), + /*attributes*/ + void 0 + ); + setParentRecursive( + importStatement, + /*incremental*/ + false + ); + statements = insertStatementAfterCustomPrologue(statements.slice(), importStatement); + } else if (isExternalOrCommonJsModule(node)) { + const requireStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + factory2.createObjectBindingPattern(arrayFrom(importSpecifiersMap.values(), (s) => factory2.createBindingElement( + /*dotDotDotToken*/ + void 0, + s.propertyName, + s.name + ))), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createCallExpression( + factory2.createIdentifier("require"), + /*typeArguments*/ + void 0, + [factory2.createStringLiteral(importSource)] + ) + ) + ], 2 /* Const */) + ); + setParentRecursive( + requireStatement, + /*incremental*/ + false + ); + statements = insertStatementAfterCustomPrologue(statements.slice(), requireStatement); + } else { + } + } + } + if (statements !== visited.statements) { + visited = factory2.updateSourceFile(visited, statements); + } + currentFileState = void 0; + return visited; + } + function visitor(node) { + if (node.transformFlags & 2 /* ContainsJsx */) { + return visitorWorker(node); + } else { + return node; + } + } + function visitorWorker(node) { + switch (node.kind) { + case 284 /* JsxElement */: + return visitJsxElement( + node, + /*isChild*/ + false + ); + case 285 /* JsxSelfClosingElement */: + return visitJsxSelfClosingElement( + node, + /*isChild*/ + false + ); + case 288 /* JsxFragment */: + return visitJsxFragment( + node, + /*isChild*/ + false + ); + case 294 /* JsxExpression */: + return visitJsxExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function transformJsxChildToExpression(node) { + switch (node.kind) { + case 12 /* JsxText */: + return visitJsxText(node); + case 294 /* JsxExpression */: + return visitJsxExpression(node); + case 284 /* JsxElement */: + return visitJsxElement( + node, + /*isChild*/ + true + ); + case 285 /* JsxSelfClosingElement */: + return visitJsxSelfClosingElement( + node, + /*isChild*/ + true + ); + case 288 /* JsxFragment */: + return visitJsxFragment( + node, + /*isChild*/ + true + ); + default: + return Debug.failBadSyntaxKind(node); + } + } + function hasProto(obj) { + return obj.properties.some( + (p) => isPropertyAssignment(p) && (isIdentifier(p.name) && idText(p.name) === "__proto__" || isStringLiteral(p.name) && p.name.text === "__proto__") + ); + } + function hasKeyAfterPropsSpread(node) { + let spread = false; + for (const elem of node.attributes.properties) { + if (isJsxSpreadAttribute(elem) && (!isObjectLiteralExpression(elem.expression) || elem.expression.properties.some(isSpreadAssignment))) { + spread = true; + } else if (spread && isJsxAttribute(elem) && isIdentifier(elem.name) && elem.name.escapedText === "key") { + return true; + } + } + return false; + } + function shouldUseCreateElement(node) { + return currentFileState.importSpecifier === void 0 || hasKeyAfterPropsSpread(node); + } + function visitJsxElement(node, isChild) { + const tagTransform = shouldUseCreateElement(node.openingElement) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX; + return tagTransform( + node.openingElement, + node.children, + isChild, + /*location*/ + node + ); + } + function visitJsxSelfClosingElement(node, isChild) { + const tagTransform = shouldUseCreateElement(node) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX; + return tagTransform( + node, + /*children*/ + void 0, + isChild, + /*location*/ + node + ); + } + function visitJsxFragment(node, isChild) { + const tagTransform = currentFileState.importSpecifier === void 0 ? visitJsxOpeningFragmentCreateElement : visitJsxOpeningFragmentJSX; + return tagTransform( + node.openingFragment, + node.children, + isChild, + /*location*/ + node + ); + } + function convertJsxChildrenToChildrenPropObject(children) { + const prop = convertJsxChildrenToChildrenPropAssignment(children); + return prop && factory2.createObjectLiteralExpression([prop]); + } + function convertJsxChildrenToChildrenPropAssignment(children) { + const nonWhitespaceChildren = getSemanticJsxChildren(children); + if (length(nonWhitespaceChildren) === 1 && !nonWhitespaceChildren[0].dotDotDotToken) { + const result2 = transformJsxChildToExpression(nonWhitespaceChildren[0]); + return result2 && factory2.createPropertyAssignment("children", result2); + } + const result = mapDefined(children, transformJsxChildToExpression); + return length(result) ? factory2.createPropertyAssignment("children", factory2.createArrayLiteralExpression(result)) : void 0; + } + function visitJsxOpeningLikeElementJSX(node, children, isChild, location) { + const tagName = getTagName(node); + const childrenProp = children && children.length ? convertJsxChildrenToChildrenPropAssignment(children) : void 0; + const keyAttr = find(node.attributes.properties, (p) => !!p.name && isIdentifier(p.name) && p.name.escapedText === "key"); + const attrs = keyAttr ? filter(node.attributes.properties, (p) => p !== keyAttr) : node.attributes.properties; + const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs, childrenProp) : factory2.createObjectLiteralExpression(childrenProp ? [childrenProp] : emptyArray); + return visitJsxOpeningLikeElementOrFragmentJSX( + tagName, + objectProperties, + keyAttr, + children || emptyArray, + isChild, + location + ); + } + function visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, children, isChild, location) { + var _a; + const nonWhitespaceChildren = getSemanticJsxChildren(children); + const isStaticChildren = length(nonWhitespaceChildren) > 1 || !!((_a = nonWhitespaceChildren[0]) == null ? void 0 : _a.dotDotDotToken); + const args = [tagName, objectProperties]; + if (keyAttr) { + args.push(transformJsxAttributeInitializer(keyAttr.initializer)); + } + if (compilerOptions.jsx === 5 /* ReactJSXDev */) { + const originalFile = getOriginalNode(currentSourceFile); + if (originalFile && isSourceFile(originalFile)) { + if (keyAttr === void 0) { + args.push(factory2.createVoidZero()); + } + args.push(isStaticChildren ? factory2.createTrue() : factory2.createFalse()); + const lineCol = getLineAndCharacterOfPosition(originalFile, location.pos); + args.push(factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("fileName", getCurrentFileNameExpression()), + factory2.createPropertyAssignment("lineNumber", factory2.createNumericLiteral(lineCol.line + 1)), + factory2.createPropertyAssignment("columnNumber", factory2.createNumericLiteral(lineCol.character + 1)) + ])); + args.push(factory2.createThis()); + } + } + const element = setTextRange( + factory2.createCallExpression( + getJsxFactoryCallee(isStaticChildren), + /*typeArguments*/ + void 0, + args + ), + location + ); + if (isChild) { + startOnNewLine(element); + } + return element; + } + function visitJsxOpeningLikeElementCreateElement(node, children, isChild, location) { + const tagName = getTagName(node); + const attrs = node.attributes.properties; + const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs) : factory2.createNull(); + const callee = currentFileState.importSpecifier === void 0 ? createJsxFactoryExpression( + factory2, + context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), + compilerOptions.reactNamespace, + // TODO: GH#18217 + node + ) : getImplicitImportForName("createElement"); + const element = createExpressionForJsxElement( + factory2, + callee, + tagName, + objectProperties, + mapDefined(children, transformJsxChildToExpression), + location + ); + if (isChild) { + startOnNewLine(element); + } + return element; + } + function visitJsxOpeningFragmentJSX(_node, children, isChild, location) { + let childrenProps; + if (children && children.length) { + const result = convertJsxChildrenToChildrenPropObject(children); + if (result) { + childrenProps = result; + } + } + return visitJsxOpeningLikeElementOrFragmentJSX( + getImplicitJsxFragmentReference(), + childrenProps || factory2.createObjectLiteralExpression([]), + /*keyAttr*/ + void 0, + children, + isChild, + location + ); + } + function visitJsxOpeningFragmentCreateElement(node, children, isChild, location) { + const element = createExpressionForJsxFragment( + factory2, + context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), + context.getEmitResolver().getJsxFragmentFactoryEntity(currentSourceFile), + compilerOptions.reactNamespace, + // TODO: GH#18217 + mapDefined(children, transformJsxChildToExpression), + node, + location + ); + if (isChild) { + startOnNewLine(element); + } + return element; + } + function transformJsxSpreadAttributeToProps(node) { + if (isObjectLiteralExpression(node.expression) && !hasProto(node.expression)) { + return sameMap(node.expression.properties, (p) => Debug.checkDefined(visitNode(p, visitor, isObjectLiteralElementLike))); + } + return factory2.createSpreadAssignment(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); + } + function transformJsxAttributesToObjectProps(attrs, children) { + const target = getEmitScriptTarget(compilerOptions); + return target && target >= 5 /* ES2018 */ ? factory2.createObjectLiteralExpression(transformJsxAttributesToProps(attrs, children)) : transformJsxAttributesToExpression(attrs, children); + } + function transformJsxAttributesToProps(attrs, children) { + const props = flatten(spanMap(attrs, isJsxSpreadAttribute, (attrs2, isSpread) => flatten(map(attrs2, (attr) => isSpread ? transformJsxSpreadAttributeToProps(attr) : transformJsxAttributeToObjectLiteralElement(attr))))); + if (children) { + props.push(children); + } + return props; + } + function transformJsxAttributesToExpression(attrs, children) { + const expressions = []; + let properties = []; + for (const attr of attrs) { + if (isJsxSpreadAttribute(attr)) { + if (isObjectLiteralExpression(attr.expression) && !hasProto(attr.expression)) { + for (const prop of attr.expression.properties) { + if (isSpreadAssignment(prop)) { + finishObjectLiteralIfNeeded(); + expressions.push(Debug.checkDefined(visitNode(prop.expression, visitor, isExpression))); + continue; + } + properties.push(Debug.checkDefined(visitNode(prop, visitor))); + } + continue; + } + finishObjectLiteralIfNeeded(); + expressions.push(Debug.checkDefined(visitNode(attr.expression, visitor, isExpression))); + continue; + } + properties.push(transformJsxAttributeToObjectLiteralElement(attr)); + } + if (children) { + properties.push(children); + } + finishObjectLiteralIfNeeded(); + if (expressions.length && !isObjectLiteralExpression(expressions[0])) { + expressions.unshift(factory2.createObjectLiteralExpression()); + } + return singleOrUndefined(expressions) || emitHelpers().createAssignHelper(expressions); + function finishObjectLiteralIfNeeded() { + if (properties.length) { + expressions.push(factory2.createObjectLiteralExpression(properties)); + properties = []; + } + } + } + function transformJsxAttributeToObjectLiteralElement(node) { + const name = getAttributeName(node); + const expression = transformJsxAttributeInitializer(node.initializer); + return factory2.createPropertyAssignment(name, expression); + } + function transformJsxAttributeInitializer(node) { + if (node === void 0) { + return factory2.createTrue(); + } + if (node.kind === 11 /* StringLiteral */) { + const singleQuote = node.singleQuote !== void 0 ? node.singleQuote : !isStringDoubleQuoted(node, currentSourceFile); + const literal = factory2.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote); + return setTextRange(literal, node); + } + if (node.kind === 294 /* JsxExpression */) { + if (node.expression === void 0) { + return factory2.createTrue(); + } + return Debug.checkDefined(visitNode(node.expression, visitor, isExpression)); + } + if (isJsxElement(node)) { + return visitJsxElement( + node, + /*isChild*/ + false + ); + } + if (isJsxSelfClosingElement(node)) { + return visitJsxSelfClosingElement( + node, + /*isChild*/ + false + ); + } + if (isJsxFragment(node)) { + return visitJsxFragment( + node, + /*isChild*/ + false + ); + } + return Debug.failBadSyntaxKind(node); + } + function visitJsxText(node) { + const fixed = fixupWhitespaceAndDecodeEntities(node.text); + return fixed === void 0 ? void 0 : factory2.createStringLiteral(fixed); + } + function fixupWhitespaceAndDecodeEntities(text) { + let acc; + let firstNonWhitespace = 0; + let lastNonWhitespace = -1; + for (let i = 0; i < text.length; i++) { + const c = text.charCodeAt(i); + if (isLineBreak(c)) { + if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) { + acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace + 1)); + } + firstNonWhitespace = -1; + } else if (!isWhiteSpaceSingleLine(c)) { + lastNonWhitespace = i; + if (firstNonWhitespace === -1) { + firstNonWhitespace = i; + } + } + } + return firstNonWhitespace !== -1 ? addLineOfJsxText(acc, text.substr(firstNonWhitespace)) : acc; + } + function addLineOfJsxText(acc, trimmedLine) { + const decoded = decodeEntities(trimmedLine); + return acc === void 0 ? decoded : acc + " " + decoded; + } + function decodeEntities(text) { + return text.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, (match, _all, _number, _digits, decimal, hex, word) => { + if (decimal) { + return utf16EncodeAsString(parseInt(decimal, 10)); + } else if (hex) { + return utf16EncodeAsString(parseInt(hex, 16)); + } else { + const ch = entities.get(word); + return ch ? utf16EncodeAsString(ch) : match; + } + }); + } + function tryDecodeEntities(text) { + const decoded = decodeEntities(text); + return decoded === text ? void 0 : decoded; + } + function getTagName(node) { + if (node.kind === 284 /* JsxElement */) { + return getTagName(node.openingElement); + } else { + const tagName = node.tagName; + if (isIdentifier(tagName) && isIntrinsicJsxName(tagName.escapedText)) { + return factory2.createStringLiteral(idText(tagName)); + } else if (isJsxNamespacedName(tagName)) { + return factory2.createStringLiteral(idText(tagName.namespace) + ":" + idText(tagName.name)); + } else { + return createExpressionFromEntityName(factory2, tagName); + } + } + } + function getAttributeName(node) { + const name = node.name; + if (isIdentifier(name)) { + const text = idText(name); + return /^[A-Za-z_]\w*$/.test(text) ? name : factory2.createStringLiteral(text); + } + return factory2.createStringLiteral(idText(name.namespace) + ":" + idText(name.name)); + } + function visitJsxExpression(node) { + const expression = visitNode(node.expression, visitor, isExpression); + return node.dotDotDotToken ? factory2.createSpreadElement(expression) : expression; + } +} +var entities = new Map(Object.entries({ + quot: 34, + amp: 38, + apos: 39, + lt: 60, + gt: 62, + nbsp: 160, + iexcl: 161, + cent: 162, + pound: 163, + curren: 164, + yen: 165, + brvbar: 166, + sect: 167, + uml: 168, + copy: 169, + ordf: 170, + laquo: 171, + not: 172, + shy: 173, + reg: 174, + macr: 175, + deg: 176, + plusmn: 177, + sup2: 178, + sup3: 179, + acute: 180, + micro: 181, + para: 182, + middot: 183, + cedil: 184, + sup1: 185, + ordm: 186, + raquo: 187, + frac14: 188, + frac12: 189, + frac34: 190, + iquest: 191, + Agrave: 192, + Aacute: 193, + Acirc: 194, + Atilde: 195, + Auml: 196, + Aring: 197, + AElig: 198, + Ccedil: 199, + Egrave: 200, + Eacute: 201, + Ecirc: 202, + Euml: 203, + Igrave: 204, + Iacute: 205, + Icirc: 206, + Iuml: 207, + ETH: 208, + Ntilde: 209, + Ograve: 210, + Oacute: 211, + Ocirc: 212, + Otilde: 213, + Ouml: 214, + times: 215, + Oslash: 216, + Ugrave: 217, + Uacute: 218, + Ucirc: 219, + Uuml: 220, + Yacute: 221, + THORN: 222, + szlig: 223, + agrave: 224, + aacute: 225, + acirc: 226, + atilde: 227, + auml: 228, + aring: 229, + aelig: 230, + ccedil: 231, + egrave: 232, + eacute: 233, + ecirc: 234, + euml: 235, + igrave: 236, + iacute: 237, + icirc: 238, + iuml: 239, + eth: 240, + ntilde: 241, + ograve: 242, + oacute: 243, + ocirc: 244, + otilde: 245, + ouml: 246, + divide: 247, + oslash: 248, + ugrave: 249, + uacute: 250, + ucirc: 251, + uuml: 252, + yacute: 253, + thorn: 254, + yuml: 255, + OElig: 338, + oelig: 339, + Scaron: 352, + scaron: 353, + Yuml: 376, + fnof: 402, + circ: 710, + tilde: 732, + Alpha: 913, + Beta: 914, + Gamma: 915, + Delta: 916, + Epsilon: 917, + Zeta: 918, + Eta: 919, + Theta: 920, + Iota: 921, + Kappa: 922, + Lambda: 923, + Mu: 924, + Nu: 925, + Xi: 926, + Omicron: 927, + Pi: 928, + Rho: 929, + Sigma: 931, + Tau: 932, + Upsilon: 933, + Phi: 934, + Chi: 935, + Psi: 936, + Omega: 937, + alpha: 945, + beta: 946, + gamma: 947, + delta: 948, + epsilon: 949, + zeta: 950, + eta: 951, + theta: 952, + iota: 953, + kappa: 954, + lambda: 955, + mu: 956, + nu: 957, + xi: 958, + omicron: 959, + pi: 960, + rho: 961, + sigmaf: 962, + sigma: 963, + tau: 964, + upsilon: 965, + phi: 966, + chi: 967, + psi: 968, + omega: 969, + thetasym: 977, + upsih: 978, + piv: 982, + ensp: 8194, + emsp: 8195, + thinsp: 8201, + zwnj: 8204, + zwj: 8205, + lrm: 8206, + rlm: 8207, + ndash: 8211, + mdash: 8212, + lsquo: 8216, + rsquo: 8217, + sbquo: 8218, + ldquo: 8220, + rdquo: 8221, + bdquo: 8222, + dagger: 8224, + Dagger: 8225, + bull: 8226, + hellip: 8230, + permil: 8240, + prime: 8242, + Prime: 8243, + lsaquo: 8249, + rsaquo: 8250, + oline: 8254, + frasl: 8260, + euro: 8364, + image: 8465, + weierp: 8472, + real: 8476, + trade: 8482, + alefsym: 8501, + larr: 8592, + uarr: 8593, + rarr: 8594, + darr: 8595, + harr: 8596, + crarr: 8629, + lArr: 8656, + uArr: 8657, + rArr: 8658, + dArr: 8659, + hArr: 8660, + forall: 8704, + part: 8706, + exist: 8707, + empty: 8709, + nabla: 8711, + isin: 8712, + notin: 8713, + ni: 8715, + prod: 8719, + sum: 8721, + minus: 8722, + lowast: 8727, + radic: 8730, + prop: 8733, + infin: 8734, + ang: 8736, + and: 8743, + or: 8744, + cap: 8745, + cup: 8746, + int: 8747, + there4: 8756, + sim: 8764, + cong: 8773, + asymp: 8776, + ne: 8800, + equiv: 8801, + le: 8804, + ge: 8805, + sub: 8834, + sup: 8835, + nsub: 8836, + sube: 8838, + supe: 8839, + oplus: 8853, + otimes: 8855, + perp: 8869, + sdot: 8901, + lceil: 8968, + rceil: 8969, + lfloor: 8970, + rfloor: 8971, + lang: 9001, + rang: 9002, + loz: 9674, + spades: 9824, + clubs: 9827, + hearts: 9829, + diams: 9830 +})); + +// src/compiler/transformers/es2016.ts +function transformES2016(context) { + const { + factory: factory2, + hoistVariableDeclaration + } = context; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + if ((node.transformFlags & 512 /* ContainsES2016 */) === 0) { + return node; + } + switch (node.kind) { + case 226 /* BinaryExpression */: + return visitBinaryExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitBinaryExpression(node) { + switch (node.operatorToken.kind) { + case 68 /* AsteriskAsteriskEqualsToken */: + return visitExponentiationAssignmentExpression(node); + case 43 /* AsteriskAsteriskToken */: + return visitExponentiationExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitExponentiationAssignmentExpression(node) { + let target; + let value; + const left = visitNode(node.left, visitor, isExpression); + const right = visitNode(node.right, visitor, isExpression); + if (isElementAccessExpression(left)) { + const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration); + const argumentExpressionTemp = factory2.createTempVariable(hoistVariableDeclaration); + target = setTextRange( + factory2.createElementAccessExpression( + setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), + setTextRange(factory2.createAssignment(argumentExpressionTemp, left.argumentExpression), left.argumentExpression) + ), + left + ); + value = setTextRange( + factory2.createElementAccessExpression( + expressionTemp, + argumentExpressionTemp + ), + left + ); + } else if (isPropertyAccessExpression(left)) { + const expressionTemp = factory2.createTempVariable(hoistVariableDeclaration); + target = setTextRange( + factory2.createPropertyAccessExpression( + setTextRange(factory2.createAssignment(expressionTemp, left.expression), left.expression), + left.name + ), + left + ); + value = setTextRange( + factory2.createPropertyAccessExpression( + expressionTemp, + left.name + ), + left + ); + } else { + target = left; + value = left; + } + return setTextRange( + factory2.createAssignment( + target, + setTextRange(factory2.createGlobalMethodCall("Math", "pow", [value, right]), node) + ), + node + ); + } + function visitExponentiationExpression(node) { + const left = visitNode(node.left, visitor, isExpression); + const right = visitNode(node.right, visitor, isExpression); + return setTextRange(factory2.createGlobalMethodCall("Math", "pow", [left, right]), node); + } +} + +// src/compiler/transformers/es2015.ts +function createSpreadSegment(kind, expression) { + return { kind, expression }; +} +function transformES2015(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + startLexicalEnvironment, + resumeLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const compilerOptions = context.getCompilerOptions(); + const resolver = context.getEmitResolver(); + const previousOnSubstituteNode = context.onSubstituteNode; + const previousOnEmitNode = context.onEmitNode; + context.onEmitNode = onEmitNode; + context.onSubstituteNode = onSubstituteNode; + let currentSourceFile; + let currentText; + let hierarchyFacts; + let taggedTemplateStringDeclarations; + function recordTaggedTemplateString(temp) { + taggedTemplateStringDeclarations = append( + taggedTemplateStringDeclarations, + factory2.createVariableDeclaration(temp) + ); + } + let convertedLoopState; + let enabledSubstitutions; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + currentSourceFile = node; + currentText = node.text; + const visited = visitSourceFile(node); + addEmitHelpers(visited, context.readEmitHelpers()); + currentSourceFile = void 0; + currentText = void 0; + taggedTemplateStringDeclarations = void 0; + hierarchyFacts = 0 /* None */; + return visited; + } + function enterSubtree(excludeFacts, includeFacts) { + const ancestorFacts = hierarchyFacts; + hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 32767 /* AncestorFactsMask */; + return ancestorFacts; + } + function exitSubtree(ancestorFacts, excludeFacts, includeFacts) { + hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts; + } + function isReturnVoidStatementInConstructorWithCapturedSuper(node) { + return (hierarchyFacts & 8192 /* ConstructorWithSuperCall */) !== 0 && node.kind === 253 /* ReturnStatement */ && !node.expression; + } + function isOrMayContainReturnCompletion(node) { + return node.transformFlags & 4194304 /* ContainsHoistedDeclarationOrCompletion */ && (isReturnStatement(node) || isIfStatement(node) || isWithStatement(node) || isSwitchStatement(node) || isCaseBlock(node) || isCaseClause(node) || isDefaultClause(node) || isTryStatement(node) || isCatchClause(node) || isLabeledStatement(node) || isIterationStatement( + node, + /*lookInLabeledStatements*/ + false + ) || isBlock(node)); + } + function shouldVisitNode(node) { + return (node.transformFlags & 1024 /* ContainsES2015 */) !== 0 || convertedLoopState !== void 0 || hierarchyFacts & 8192 /* ConstructorWithSuperCall */ && isOrMayContainReturnCompletion(node) || isIterationStatement( + node, + /*lookInLabeledStatements*/ + false + ) && shouldConvertIterationStatement(node) || (getInternalEmitFlags(node) & 1 /* TypeScriptClassWrapper */) !== 0; + } + function visitor(node) { + return shouldVisitNode(node) ? visitorWorker( + node, + /*expressionResultIsUnused*/ + false + ) : node; + } + function visitorWithUnusedExpressionResult(node) { + return shouldVisitNode(node) ? visitorWorker( + node, + /*expressionResultIsUnused*/ + true + ) : node; + } + function classWrapperStatementVisitor(node) { + if (shouldVisitNode(node)) { + const original = getOriginalNode(node); + if (isPropertyDeclaration(original) && hasStaticModifier(original)) { + const ancestorFacts = enterSubtree( + 32670 /* StaticInitializerExcludes */, + 16449 /* StaticInitializerIncludes */ + ); + const result = visitorWorker( + node, + /*expressionResultIsUnused*/ + false + ); + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + return result; + } + return visitorWorker( + node, + /*expressionResultIsUnused*/ + false + ); + } + return node; + } + function callExpressionVisitor(node) { + if (node.kind === 108 /* SuperKeyword */) { + return visitSuperKeyword( + node, + /*isExpressionOfCall*/ + true + ); + } + return visitor(node); + } + function visitorWorker(node, expressionResultIsUnused2) { + switch (node.kind) { + case 126 /* StaticKeyword */: + return void 0; + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 231 /* ClassExpression */: + return visitClassExpression(node); + case 169 /* Parameter */: + return visitParameter(node); + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 219 /* ArrowFunction */: + return visitArrowFunction(node); + case 218 /* FunctionExpression */: + return visitFunctionExpression(node); + case 260 /* VariableDeclaration */: + return visitVariableDeclaration(node); + case 80 /* Identifier */: + return visitIdentifier(node); + case 261 /* VariableDeclarationList */: + return visitVariableDeclarationList(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); + case 269 /* CaseBlock */: + return visitCaseBlock(node); + case 241 /* Block */: + return visitBlock( + node, + /*isFunctionBody*/ + false + ); + case 252 /* BreakStatement */: + case 251 /* ContinueStatement */: + return visitBreakOrContinueStatement(node); + case 256 /* LabeledStatement */: + return visitLabeledStatement(node); + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + return visitDoOrWhileStatement( + node, + /*outermostLabeledStatement*/ + void 0 + ); + case 248 /* ForStatement */: + return visitForStatement( + node, + /*outermostLabeledStatement*/ + void 0 + ); + case 249 /* ForInStatement */: + return visitForInStatement( + node, + /*outermostLabeledStatement*/ + void 0 + ); + case 250 /* ForOfStatement */: + return visitForOfStatement( + node, + /*outermostLabeledStatement*/ + void 0 + ); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 210 /* ObjectLiteralExpression */: + return visitObjectLiteralExpression(node); + case 299 /* CatchClause */: + return visitCatchClause(node); + case 304 /* ShorthandPropertyAssignment */: + return visitShorthandPropertyAssignment(node); + case 167 /* ComputedPropertyName */: + return visitComputedPropertyName(node); + case 209 /* ArrayLiteralExpression */: + return visitArrayLiteralExpression(node); + case 213 /* CallExpression */: + return visitCallExpression(node); + case 214 /* NewExpression */: + return visitNewExpression(node); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression(node, expressionResultIsUnused2); + case 226 /* BinaryExpression */: + return visitBinaryExpression(node, expressionResultIsUnused2); + case 355 /* CommaListExpression */: + return visitCommaListExpression(node, expressionResultIsUnused2); + case 15 /* NoSubstitutionTemplateLiteral */: + case 16 /* TemplateHead */: + case 17 /* TemplateMiddle */: + case 18 /* TemplateTail */: + return visitTemplateLiteral(node); + case 11 /* StringLiteral */: + return visitStringLiteral(node); + case 9 /* NumericLiteral */: + return visitNumericLiteral(node); + case 215 /* TaggedTemplateExpression */: + return visitTaggedTemplateExpression(node); + case 228 /* TemplateExpression */: + return visitTemplateExpression(node); + case 229 /* YieldExpression */: + return visitYieldExpression(node); + case 230 /* SpreadElement */: + return visitSpreadElement(node); + case 108 /* SuperKeyword */: + return visitSuperKeyword( + node, + /*isExpressionOfCall*/ + false + ); + case 110 /* ThisKeyword */: + return visitThisKeyword(node); + case 236 /* MetaProperty */: + return visitMetaProperty(node); + case 174 /* MethodDeclaration */: + return visitMethodDeclaration(node); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return visitAccessorDeclaration(node); + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 253 /* ReturnStatement */: + return visitReturnStatement(node); + case 222 /* VoidExpression */: + return visitVoidExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitSourceFile(node) { + const ancestorFacts = enterSubtree(8064 /* SourceFileExcludes */, 64 /* SourceFileIncludes */); + const prologue = []; + const statements = []; + startLexicalEnvironment(); + const statementOffset = factory2.copyPrologue( + node.statements, + prologue, + /*ensureUseStrict*/ + false, + visitor + ); + addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset)); + if (taggedTemplateStringDeclarations) { + statements.push( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList(taggedTemplateStringDeclarations) + ) + ); + } + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + insertCaptureThisForNodeIfNeeded(prologue, node); + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return factory2.updateSourceFile( + node, + setTextRange(factory2.createNodeArray(concatenate(prologue, statements)), node.statements) + ); + } + function visitSwitchStatement(node) { + if (convertedLoopState !== void 0) { + const savedAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps; + convertedLoopState.allowedNonLabeledJumps |= 2 /* Break */; + const result = visitEachChild(node, visitor, context); + convertedLoopState.allowedNonLabeledJumps = savedAllowedNonLabeledJumps; + return result; + } + return visitEachChild(node, visitor, context); + } + function visitCaseBlock(node) { + const ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */); + const updated = visitEachChild(node, visitor, context); + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function returnCapturedThis(node) { + return setOriginalNode(factory2.createReturnStatement(createCapturedThis()), node); + } + function createCapturedThis() { + return factory2.createUniqueName("_this", 16 /* Optimistic */ | 32 /* FileLevel */); + } + function visitReturnStatement(node) { + if (convertedLoopState) { + convertedLoopState.nonLocalJumps |= 8 /* Return */; + if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) { + node = returnCapturedThis(node); + } + return factory2.createReturnStatement( + factory2.createObjectLiteralExpression( + [ + factory2.createPropertyAssignment( + factory2.createIdentifier("value"), + node.expression ? Debug.checkDefined(visitNode(node.expression, visitor, isExpression)) : factory2.createVoidZero() + ) + ] + ) + ); + } else if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) { + return returnCapturedThis(node); + } + return visitEachChild(node, visitor, context); + } + function visitThisKeyword(node) { + hierarchyFacts |= 65536 /* LexicalThis */; + if (hierarchyFacts & 2 /* ArrowFunction */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) { + hierarchyFacts |= 131072 /* CapturedLexicalThis */; + } + if (convertedLoopState) { + if (hierarchyFacts & 2 /* ArrowFunction */) { + convertedLoopState.containsLexicalThis = true; + return node; + } + return convertedLoopState.thisName || (convertedLoopState.thisName = factory2.createUniqueName("this")); + } + return node; + } + function visitVoidExpression(node) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + function visitIdentifier(node) { + if (convertedLoopState) { + if (resolver.isArgumentsLocalBinding(node)) { + return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory2.createUniqueName("arguments")); + } + } + if (node.flags & 256 /* IdentifierHasExtendedUnicodeEscape */) { + return setOriginalNode( + setTextRange( + factory2.createIdentifier(unescapeLeadingUnderscores(node.escapedText)), + node + ), + node + ); + } + return node; + } + function visitBreakOrContinueStatement(node) { + if (convertedLoopState) { + const jump = node.kind === 252 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */; + const canUseBreakOrContinue = node.label && convertedLoopState.labels && convertedLoopState.labels.get(idText(node.label)) || !node.label && convertedLoopState.allowedNonLabeledJumps & jump; + if (!canUseBreakOrContinue) { + let labelMarker; + const label = node.label; + if (!label) { + if (node.kind === 252 /* BreakStatement */) { + convertedLoopState.nonLocalJumps |= 2 /* Break */; + labelMarker = "break"; + } else { + convertedLoopState.nonLocalJumps |= 4 /* Continue */; + labelMarker = "continue"; + } + } else { + if (node.kind === 252 /* BreakStatement */) { + labelMarker = `break-${label.escapedText}`; + setLabeledJump( + convertedLoopState, + /*isBreak*/ + true, + idText(label), + labelMarker + ); + } else { + labelMarker = `continue-${label.escapedText}`; + setLabeledJump( + convertedLoopState, + /*isBreak*/ + false, + idText(label), + labelMarker + ); + } + } + let returnExpression = factory2.createStringLiteral(labelMarker); + if (convertedLoopState.loopOutParameters.length) { + const outParams = convertedLoopState.loopOutParameters; + let expr; + for (let i = 0; i < outParams.length; i++) { + const copyExpr = copyOutParameter(outParams[i], 1 /* ToOutParameter */); + if (i === 0) { + expr = copyExpr; + } else { + expr = factory2.createBinaryExpression(expr, 28 /* CommaToken */, copyExpr); + } + } + returnExpression = factory2.createBinaryExpression(expr, 28 /* CommaToken */, returnExpression); + } + return factory2.createReturnStatement(returnExpression); + } + } + return visitEachChild(node, visitor, context); + } + function visitClassDeclaration(node) { + const variable = factory2.createVariableDeclaration( + factory2.getLocalName( + node, + /*allowComments*/ + true + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformClassLikeDeclarationToExpression(node) + ); + setOriginalNode(variable, node); + const statements = []; + const statement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([variable]) + ); + setOriginalNode(statement, node); + setTextRange(statement, node); + startOnNewLine(statement); + statements.push(statement); + if (hasSyntacticModifier(node, 32 /* Export */)) { + const exportStatement = hasSyntacticModifier(node, 2048 /* Default */) ? factory2.createExportDefault(factory2.getLocalName(node)) : factory2.createExternalModuleExport(factory2.getLocalName(node)); + setOriginalNode(exportStatement, statement); + statements.push(exportStatement); + } + return singleOrMany(statements); + } + function visitClassExpression(node) { + return transformClassLikeDeclarationToExpression(node); + } + function transformClassLikeDeclarationToExpression(node) { + if (node.name) { + enableSubstitutionsForBlockScopedBindings(); + } + const extendsClauseElement = getClassExtendsHeritageElement(node); + const classFunction = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + extendsClauseElement ? [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + createSyntheticSuper() + )] : [], + /*type*/ + void 0, + transformClassBody(node, extendsClauseElement) + ); + setEmitFlags(classFunction, getEmitFlags(node) & 131072 /* Indented */ | 1048576 /* ReuseTempVariableScope */); + const inner = factory2.createPartiallyEmittedExpression(classFunction); + setTextRangeEnd(inner, node.end); + setEmitFlags(inner, 3072 /* NoComments */); + const outer = factory2.createPartiallyEmittedExpression(inner); + setTextRangeEnd(outer, skipTrivia(currentText, node.pos)); + setEmitFlags(outer, 3072 /* NoComments */); + const result = factory2.createParenthesizedExpression( + factory2.createCallExpression( + outer, + /*typeArguments*/ + void 0, + extendsClauseElement ? [Debug.checkDefined(visitNode(extendsClauseElement.expression, visitor, isExpression))] : [] + ) + ); + addSyntheticLeadingComment(result, 3 /* MultiLineCommentTrivia */, "* @class "); + return result; + } + function transformClassBody(node, extendsClauseElement) { + const statements = []; + const name = factory2.getInternalName(node); + const constructorLikeName = isIdentifierANonContextualKeyword(name) ? factory2.getGeneratedNameForNode(name) : name; + startLexicalEnvironment(); + addExtendsHelperIfNeeded(statements, node, extendsClauseElement); + addConstructor(statements, node, constructorLikeName, extendsClauseElement); + addClassMembers(statements, node); + const closingBraceLocation = createTokenRange(skipTrivia(currentText, node.members.end), 20 /* CloseBraceToken */); + const outer = factory2.createPartiallyEmittedExpression(constructorLikeName); + setTextRangeEnd(outer, closingBraceLocation.end); + setEmitFlags(outer, 3072 /* NoComments */); + const statement = factory2.createReturnStatement(outer); + setTextRangePos(statement, closingBraceLocation.pos); + setEmitFlags(statement, 3072 /* NoComments */ | 768 /* NoTokenSourceMaps */); + statements.push(statement); + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + const block = factory2.createBlock( + setTextRange( + factory2.createNodeArray(statements), + /*location*/ + node.members + ), + /*multiLine*/ + true + ); + setEmitFlags(block, 3072 /* NoComments */); + return block; + } + function addExtendsHelperIfNeeded(statements, node, extendsClauseElement) { + if (extendsClauseElement) { + statements.push( + setTextRange( + factory2.createExpressionStatement( + emitHelpers().createExtendsHelper(factory2.getInternalName(node)) + ), + /*location*/ + extendsClauseElement + ) + ); + } + } + function addConstructor(statements, node, name, extendsClauseElement) { + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const ancestorFacts = enterSubtree(32662 /* ConstructorExcludes */, 73 /* ConstructorIncludes */); + const constructor = getFirstConstructorWithBody(node); + const hasSynthesizedSuper = hasSynthesizedDefaultSuperCall(constructor, extendsClauseElement !== void 0); + const constructorFunction = factory2.createFunctionDeclaration( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + name, + /*typeParameters*/ + void 0, + transformConstructorParameters(constructor, hasSynthesizedSuper), + /*type*/ + void 0, + transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) + ); + setTextRange(constructorFunction, constructor || node); + if (extendsClauseElement) { + setEmitFlags(constructorFunction, 16 /* CapturesThis */); + } + statements.push(constructorFunction); + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + } + function transformConstructorParameters(constructor, hasSynthesizedSuper) { + return visitParameterList(constructor && !hasSynthesizedSuper ? constructor.parameters : void 0, visitor, context) || []; + } + function createDefaultConstructorBody(node, isDerivedClass) { + const statements = []; + resumeLexicalEnvironment(); + factory2.mergeLexicalEnvironment(statements, endLexicalEnvironment()); + if (isDerivedClass) { + statements.push(factory2.createReturnStatement(createDefaultSuperCallOrThis())); + } + const statementsArray = factory2.createNodeArray(statements); + setTextRange(statementsArray, node.members); + const block = factory2.createBlock( + statementsArray, + /*multiLine*/ + true + ); + setTextRange(block, node); + setEmitFlags(block, 3072 /* NoComments */); + return block; + } + function isUninitializedVariableStatement(node) { + return isVariableStatement(node) && every(node.declarationList.declarations, (decl) => isIdentifier(decl.name) && !decl.initializer); + } + function containsSuperCall(node) { + if (isSuperCall(node)) { + return true; + } + if (!(node.transformFlags & 134217728 /* ContainsLexicalSuper */)) { + return false; + } + switch (node.kind) { + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: + return false; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { + const named = node; + if (isComputedPropertyName(named.name)) { + return !!forEachChild(named.name, containsSuperCall); + } + return false; + } + } + return !!forEachChild(node, containsSuperCall); + } + function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) { + const isDerivedClass = !!extendsClauseElement && skipOuterExpressions(extendsClauseElement.expression).kind !== 106 /* NullKeyword */; + if (!constructor) return createDefaultConstructorBody(node, isDerivedClass); + const prologue = []; + const statements = []; + resumeLexicalEnvironment(); + const standardPrologueEnd = factory2.copyStandardPrologue( + constructor.body.statements, + prologue, + /*statementOffset*/ + 0 + ); + if (hasSynthesizedSuper || containsSuperCall(constructor.body)) { + hierarchyFacts |= 8192 /* ConstructorWithSuperCall */; + } + addRange(statements, visitNodes2(constructor.body.statements, visitor, isStatement, standardPrologueEnd)); + const mayReplaceThis = isDerivedClass || hierarchyFacts & 8192 /* ConstructorWithSuperCall */; + addDefaultValueAssignmentsIfNeeded2(prologue, constructor); + addRestParameterIfNeeded(prologue, constructor, hasSynthesizedSuper); + insertCaptureNewTargetIfNeeded(prologue, constructor); + if (mayReplaceThis) { + insertCaptureThisForNode(prologue, constructor, createActualThis()); + } else { + insertCaptureThisForNodeIfNeeded(prologue, constructor); + } + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + if (mayReplaceThis && !isSufficientlyCoveredByReturnStatements(constructor.body)) { + statements.push(factory2.createReturnStatement(createCapturedThis())); + } + const body = factory2.createBlock( + setTextRange( + factory2.createNodeArray( + [ + ...prologue, + ...statements + ] + ), + /*location*/ + constructor.body.statements + ), + /*multiLine*/ + true + ); + setTextRange(body, constructor.body); + return simplifyConstructor(body, constructor.body, hasSynthesizedSuper); + } + function isCapturedThis(node) { + return isGeneratedIdentifier(node) && idText(node) === "_this"; + } + function isSyntheticSuper(node) { + return isGeneratedIdentifier(node) && idText(node) === "_super"; + } + function isThisCapturingVariableStatement(node) { + return isVariableStatement(node) && node.declarationList.declarations.length === 1 && isThisCapturingVariableDeclaration(node.declarationList.declarations[0]); + } + function isThisCapturingVariableDeclaration(node) { + return isVariableDeclaration(node) && isCapturedThis(node.name) && !!node.initializer; + } + function isThisCapturingAssignment(node) { + return isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + ) && isCapturedThis(node.left); + } + function isTransformedSuperCall(node) { + return isCallExpression(node) && isPropertyAccessExpression(node.expression) && isSyntheticSuper(node.expression.expression) && isIdentifier(node.expression.name) && (idText(node.expression.name) === "call" || idText(node.expression.name) === "apply") && node.arguments.length >= 1 && node.arguments[0].kind === 110 /* ThisKeyword */; + } + function isTransformedSuperCallWithFallback(node) { + return isBinaryExpression(node) && node.operatorToken.kind === 57 /* BarBarToken */ && node.right.kind === 110 /* ThisKeyword */ && isTransformedSuperCall(node.left); + } + function isImplicitSuperCall(node) { + return isBinaryExpression(node) && node.operatorToken.kind === 56 /* AmpersandAmpersandToken */ && isBinaryExpression(node.left) && node.left.operatorToken.kind === 38 /* ExclamationEqualsEqualsToken */ && isSyntheticSuper(node.left.left) && node.left.right.kind === 106 /* NullKeyword */ && isTransformedSuperCall(node.right) && idText(node.right.expression.name) === "apply"; + } + function isImplicitSuperCallWithFallback(node) { + return isBinaryExpression(node) && node.operatorToken.kind === 57 /* BarBarToken */ && node.right.kind === 110 /* ThisKeyword */ && isImplicitSuperCall(node.left); + } + function isThisCapturingTransformedSuperCallWithFallback(node) { + return isThisCapturingAssignment(node) && isTransformedSuperCallWithFallback(node.right); + } + function isThisCapturingImplicitSuperCallWithFallback(node) { + return isThisCapturingAssignment(node) && isImplicitSuperCallWithFallback(node.right); + } + function isTransformedSuperCallLike(node) { + return isTransformedSuperCall(node) || isTransformedSuperCallWithFallback(node) || isThisCapturingTransformedSuperCallWithFallback(node) || isImplicitSuperCall(node) || isImplicitSuperCallWithFallback(node) || isThisCapturingImplicitSuperCallWithFallback(node); + } + function simplifyConstructorInlineSuperInThisCaptureVariable(body) { + for (let i = 0; i < body.statements.length - 1; i++) { + const statement = body.statements[i]; + if (!isThisCapturingVariableStatement(statement)) { + continue; + } + const varDecl = statement.declarationList.declarations[0]; + if (varDecl.initializer.kind !== 110 /* ThisKeyword */) { + continue; + } + const thisCaptureStatementIndex = i; + let superCallIndex = i + 1; + while (superCallIndex < body.statements.length) { + const statement2 = body.statements[superCallIndex]; + if (isExpressionStatement(statement2)) { + if (isTransformedSuperCallLike(skipOuterExpressions(statement2.expression))) { + break; + } + } + if (isUninitializedVariableStatement(statement2)) { + superCallIndex++; + continue; + } + return body; + } + const following = body.statements[superCallIndex]; + let expression = following.expression; + if (isThisCapturingAssignment(expression)) { + expression = expression.right; + } + const newVarDecl = factory2.updateVariableDeclaration( + varDecl, + varDecl.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + expression + ); + const newDeclList = factory2.updateVariableDeclarationList(statement.declarationList, [newVarDecl]); + const newVarStatement = factory2.createVariableStatement(statement.modifiers, newDeclList); + setOriginalNode(newVarStatement, following); + setTextRange(newVarStatement, following); + const newStatements = factory2.createNodeArray([ + ...body.statements.slice(0, thisCaptureStatementIndex), + // copy statements preceding to `var _this` + ...body.statements.slice(thisCaptureStatementIndex + 1, superCallIndex), + // copy intervening temp variables + newVarStatement, + ...body.statements.slice(superCallIndex + 1) + // copy statements following `super.call(this, ...)` + ]); + setTextRange(newStatements, body.statements); + return factory2.updateBlock(body, newStatements); + } + return body; + } + function simplifyConstructorInlineSuperReturn(body, original) { + for (const statement of original.statements) { + if (statement.transformFlags & 134217728 /* ContainsLexicalSuper */ && !getSuperCallFromStatement(statement)) { + return body; + } + } + const canElideThisCapturingVariable = !(original.transformFlags & 16384 /* ContainsLexicalThis */) && !(hierarchyFacts & 65536 /* LexicalThis */) && !(hierarchyFacts & 131072 /* CapturedLexicalThis */); + for (let i = body.statements.length - 1; i > 0; i--) { + const statement = body.statements[i]; + if (isReturnStatement(statement) && statement.expression && isCapturedThis(statement.expression)) { + const preceding = body.statements[i - 1]; + let expression; + if (isExpressionStatement(preceding) && isThisCapturingTransformedSuperCallWithFallback(skipOuterExpressions(preceding.expression))) { + expression = preceding.expression; + } else if (canElideThisCapturingVariable && isThisCapturingVariableStatement(preceding)) { + const varDecl = preceding.declarationList.declarations[0]; + if (isTransformedSuperCallLike(skipOuterExpressions(varDecl.initializer))) { + expression = factory2.createAssignment( + createCapturedThis(), + varDecl.initializer + ); + } + } + if (!expression) { + break; + } + const newReturnStatement = factory2.createReturnStatement(expression); + setOriginalNode(newReturnStatement, preceding); + setTextRange(newReturnStatement, preceding); + const newStatements = factory2.createNodeArray([ + ...body.statements.slice(0, i - 1), + // copy all statements preceding `_super.call(this, ...)` + newReturnStatement, + ...body.statements.slice(i + 1) + // copy all statements following `return _this;` + ]); + setTextRange(newStatements, body.statements); + return factory2.updateBlock(body, newStatements); + } + } + return body; + } + function elideUnusedThisCaptureWorker(node) { + if (isThisCapturingVariableStatement(node)) { + const varDecl = node.declarationList.declarations[0]; + if (varDecl.initializer.kind === 110 /* ThisKeyword */) { + return void 0; + } + } else if (isThisCapturingAssignment(node)) { + return factory2.createPartiallyEmittedExpression(node.right, node); + } + switch (node.kind) { + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: + return node; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { + const named = node; + if (isComputedPropertyName(named.name)) { + return factory2.replacePropertyName(named, visitEachChild( + named.name, + elideUnusedThisCaptureWorker, + /*context*/ + void 0 + )); + } + return node; + } + } + return visitEachChild( + node, + elideUnusedThisCaptureWorker, + /*context*/ + void 0 + ); + } + function simplifyConstructorElideUnusedThisCapture(body, original) { + if (original.transformFlags & 16384 /* ContainsLexicalThis */ || hierarchyFacts & 65536 /* LexicalThis */ || hierarchyFacts & 131072 /* CapturedLexicalThis */) { + return body; + } + for (const statement of original.statements) { + if (statement.transformFlags & 134217728 /* ContainsLexicalSuper */ && !getSuperCallFromStatement(statement)) { + return body; + } + } + return factory2.updateBlock(body, visitNodes2(body.statements, elideUnusedThisCaptureWorker, isStatement)); + } + function injectSuperPresenceCheckWorker(node) { + if (isTransformedSuperCall(node) && node.arguments.length === 2 && isIdentifier(node.arguments[1]) && idText(node.arguments[1]) === "arguments") { + return factory2.createLogicalAnd( + factory2.createStrictInequality( + createSyntheticSuper(), + factory2.createNull() + ), + node + ); + } + switch (node.kind) { + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: + return node; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 174 /* MethodDeclaration */: + case 172 /* PropertyDeclaration */: { + const named = node; + if (isComputedPropertyName(named.name)) { + return factory2.replacePropertyName(named, visitEachChild( + named.name, + injectSuperPresenceCheckWorker, + /*context*/ + void 0 + )); + } + return node; + } + } + return visitEachChild( + node, + injectSuperPresenceCheckWorker, + /*context*/ + void 0 + ); + } + function complicateConstructorInjectSuperPresenceCheck(body) { + return factory2.updateBlock(body, visitNodes2(body.statements, injectSuperPresenceCheckWorker, isStatement)); + } + function simplifyConstructor(body, original, hasSynthesizedSuper) { + const inputBody = body; + body = simplifyConstructorInlineSuperInThisCaptureVariable(body); + body = simplifyConstructorInlineSuperReturn(body, original); + if (body !== inputBody) { + body = simplifyConstructorElideUnusedThisCapture(body, original); + } + if (hasSynthesizedSuper) { + body = complicateConstructorInjectSuperPresenceCheck(body); + } + return body; + } + function isSufficientlyCoveredByReturnStatements(statement) { + if (statement.kind === 253 /* ReturnStatement */) { + return true; + } else if (statement.kind === 245 /* IfStatement */) { + const ifStatement = statement; + if (ifStatement.elseStatement) { + return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) && isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement); + } + } else if (statement.kind === 241 /* Block */) { + const lastStatement = lastOrUndefined(statement.statements); + if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) { + return true; + } + } + return false; + } + function createActualThis() { + return setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */); + } + function createDefaultSuperCallOrThis() { + return factory2.createLogicalOr( + factory2.createLogicalAnd( + factory2.createStrictInequality( + createSyntheticSuper(), + factory2.createNull() + ), + factory2.createFunctionApplyCall( + createSyntheticSuper(), + createActualThis(), + factory2.createIdentifier("arguments") + ) + ), + createActualThis() + ); + } + function visitParameter(node) { + if (node.dotDotDotToken) { + return void 0; + } else if (isBindingPattern(node.name)) { + return setOriginalNode( + setTextRange( + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + factory2.getGeneratedNameForNode(node), + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ), + /*location*/ + node + ), + /*original*/ + node + ); + } else if (node.initializer) { + return setOriginalNode( + setTextRange( + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + node.name, + /*questionToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ), + /*location*/ + node + ), + /*original*/ + node + ); + } else { + return node; + } + } + function hasDefaultValueOrBindingPattern(node) { + return node.initializer !== void 0 || isBindingPattern(node.name); + } + function addDefaultValueAssignmentsIfNeeded2(statements, node) { + if (!some(node.parameters, hasDefaultValueOrBindingPattern)) { + return false; + } + let added = false; + for (const parameter of node.parameters) { + const { name, initializer, dotDotDotToken } = parameter; + if (dotDotDotToken) { + continue; + } + if (isBindingPattern(name)) { + added = insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) || added; + } else if (initializer) { + insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer); + added = true; + } + } + return added; + } + function insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) { + if (name.elements.length > 0) { + insertStatementAfterCustomPrologue( + statements, + setEmitFlags( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + flattenDestructuringBinding( + parameter, + visitor, + context, + 0 /* All */, + factory2.getGeneratedNameForNode(parameter) + ) + ) + ), + 2097152 /* CustomPrologue */ + ) + ); + return true; + } else if (initializer) { + insertStatementAfterCustomPrologue( + statements, + setEmitFlags( + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.getGeneratedNameForNode(parameter), + Debug.checkDefined(visitNode(initializer, visitor, isExpression)) + ) + ), + 2097152 /* CustomPrologue */ + ) + ); + return true; + } + return false; + } + function insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer) { + initializer = Debug.checkDefined(visitNode(initializer, visitor, isExpression)); + const statement = factory2.createIfStatement( + factory2.createTypeCheck(factory2.cloneNode(name), "undefined"), + setEmitFlags( + setTextRange( + factory2.createBlock([ + factory2.createExpressionStatement( + setEmitFlags( + setTextRange( + factory2.createAssignment( + // TODO(rbuckton): Does this need to be parented? + setEmitFlags(setParent(setTextRange(factory2.cloneNode(name), name), name.parent), 96 /* NoSourceMap */), + setEmitFlags(initializer, 96 /* NoSourceMap */ | getEmitFlags(initializer) | 3072 /* NoComments */) + ), + parameter + ), + 3072 /* NoComments */ + ) + ) + ]), + parameter + ), + 1 /* SingleLine */ | 64 /* NoTrailingSourceMap */ | 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */ + ) + ); + startOnNewLine(statement); + setTextRange(statement, parameter); + setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2097152 /* CustomPrologue */ | 3072 /* NoComments */); + insertStatementAfterCustomPrologue(statements, statement); + } + function shouldAddRestParameter(node, inConstructorWithSynthesizedSuper) { + return !!(node && node.dotDotDotToken && !inConstructorWithSynthesizedSuper); + } + function addRestParameterIfNeeded(statements, node, inConstructorWithSynthesizedSuper) { + const prologueStatements = []; + const parameter = lastOrUndefined(node.parameters); + if (!shouldAddRestParameter(parameter, inConstructorWithSynthesizedSuper)) { + return false; + } + const declarationName = parameter.name.kind === 80 /* Identifier */ ? setParent(setTextRange(factory2.cloneNode(parameter.name), parameter.name), parameter.name.parent) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + setEmitFlags(declarationName, 96 /* NoSourceMap */); + const expressionName = parameter.name.kind === 80 /* Identifier */ ? factory2.cloneNode(parameter.name) : declarationName; + const restIndex = node.parameters.length - 1; + const temp = factory2.createLoopVariable(); + prologueStatements.push( + setEmitFlags( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + declarationName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createArrayLiteralExpression([]) + ) + ]) + ), + /*location*/ + parameter + ), + 2097152 /* CustomPrologue */ + ) + ); + const forStatement = factory2.createForStatement( + setTextRange( + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + temp, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createNumericLiteral(restIndex) + ) + ]), + parameter + ), + setTextRange( + factory2.createLessThan( + temp, + factory2.createPropertyAccessExpression(factory2.createIdentifier("arguments"), "length") + ), + parameter + ), + setTextRange(factory2.createPostfixIncrement(temp), parameter), + factory2.createBlock([ + startOnNewLine( + setTextRange( + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createElementAccessExpression( + expressionName, + restIndex === 0 ? temp : factory2.createSubtract(temp, factory2.createNumericLiteral(restIndex)) + ), + factory2.createElementAccessExpression(factory2.createIdentifier("arguments"), temp) + ) + ), + /*location*/ + parameter + ) + ) + ]) + ); + setEmitFlags(forStatement, 2097152 /* CustomPrologue */); + startOnNewLine(forStatement); + prologueStatements.push(forStatement); + if (parameter.name.kind !== 80 /* Identifier */) { + prologueStatements.push( + setEmitFlags( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + flattenDestructuringBinding(parameter, visitor, context, 0 /* All */, expressionName) + ) + ), + parameter + ), + 2097152 /* CustomPrologue */ + ) + ); + } + insertStatementsAfterCustomPrologue(statements, prologueStatements); + return true; + } + function insertCaptureThisForNodeIfNeeded(statements, node) { + if (hierarchyFacts & 131072 /* CapturedLexicalThis */ && node.kind !== 219 /* ArrowFunction */) { + insertCaptureThisForNode(statements, node, factory2.createThis()); + return true; + } + return false; + } + function insertCaptureThisForNode(statements, node, initializer) { + enableSubstitutionsForCapturedThis(); + const captureThisStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + createCapturedThis(), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ) + ]) + ); + setEmitFlags(captureThisStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); + setSourceMapRange(captureThisStatement, node); + insertStatementAfterCustomPrologue(statements, captureThisStatement); + } + function insertCaptureNewTargetIfNeeded(statements, node) { + if (hierarchyFacts & 32768 /* NewTarget */) { + let newTarget; + switch (node.kind) { + case 219 /* ArrowFunction */: + return statements; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + newTarget = factory2.createVoidZero(); + break; + case 176 /* Constructor */: + newTarget = factory2.createPropertyAccessExpression( + setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), + "constructor" + ); + break; + case 262 /* FunctionDeclaration */: + case 218 /* FunctionExpression */: + newTarget = factory2.createConditionalExpression( + factory2.createLogicalAnd( + setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), + factory2.createBinaryExpression( + setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), + 104 /* InstanceOfKeyword */, + factory2.getLocalName(node) + ) + ), + /*questionToken*/ + void 0, + factory2.createPropertyAccessExpression( + setEmitFlags(factory2.createThis(), 8 /* NoSubstitution */), + "constructor" + ), + /*colonToken*/ + void 0, + factory2.createVoidZero() + ); + break; + default: + return Debug.failBadSyntaxKind(node); + } + const captureNewTargetStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + factory2.createUniqueName("_newTarget", 16 /* Optimistic */ | 32 /* FileLevel */), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + newTarget + ) + ]) + ); + setEmitFlags(captureNewTargetStatement, 3072 /* NoComments */ | 2097152 /* CustomPrologue */); + insertStatementAfterCustomPrologue(statements, captureNewTargetStatement); + } + return statements; + } + function addClassMembers(statements, node) { + for (const member of node.members) { + switch (member.kind) { + case 240 /* SemicolonClassElement */: + statements.push(transformSemicolonClassElementToStatement(member)); + break; + case 174 /* MethodDeclaration */: + statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); + break; + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const accessors = getAllAccessorDeclarations(node.members, member); + if (member === accessors.firstAccessor) { + statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node)); + } + break; + case 176 /* Constructor */: + case 175 /* ClassStaticBlockDeclaration */: + break; + default: + Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName); + break; + } + } + } + function transformSemicolonClassElementToStatement(member) { + return setTextRange(factory2.createEmptyStatement(), member); + } + function transformClassMethodDeclarationToStatement(receiver, member, container) { + const commentRange = getCommentRange(member); + const sourceMapRange = getSourceMapRange(member); + const memberFunction = transformFunctionLikeToExpression( + member, + /*location*/ + member, + /*name*/ + void 0, + container + ); + const propertyName = visitNode(member.name, visitor, isPropertyName); + Debug.assert(propertyName); + let e; + if (!isPrivateIdentifier(propertyName) && getUseDefineForClassFields(context.getCompilerOptions())) { + const name = isComputedPropertyName(propertyName) ? propertyName.expression : isIdentifier(propertyName) ? factory2.createStringLiteral(unescapeLeadingUnderscores(propertyName.escapedText)) : propertyName; + e = factory2.createObjectDefinePropertyCall(receiver, name, factory2.createPropertyDescriptor({ value: memberFunction, enumerable: false, writable: true, configurable: true })); + } else { + const memberName = createMemberAccessForPropertyName( + factory2, + receiver, + propertyName, + /*location*/ + member.name + ); + e = factory2.createAssignment(memberName, memberFunction); + } + setEmitFlags(memberFunction, 3072 /* NoComments */); + setSourceMapRange(memberFunction, sourceMapRange); + const statement = setTextRange( + factory2.createExpressionStatement(e), + /*location*/ + member + ); + setOriginalNode(statement, member); + setCommentRange(statement, commentRange); + setEmitFlags(statement, 96 /* NoSourceMap */); + return statement; + } + function transformAccessorsToStatement(receiver, accessors, container) { + const statement = factory2.createExpressionStatement(transformAccessorsToExpression( + receiver, + accessors, + container, + /*startsOnNewLine*/ + false + )); + setEmitFlags(statement, 3072 /* NoComments */); + setSourceMapRange(statement, getSourceMapRange(accessors.firstAccessor)); + return statement; + } + function transformAccessorsToExpression(receiver, { firstAccessor, getAccessor, setAccessor }, container, startsOnNewLine) { + const target = setParent(setTextRange(factory2.cloneNode(receiver), receiver), receiver.parent); + setEmitFlags(target, 3072 /* NoComments */ | 64 /* NoTrailingSourceMap */); + setSourceMapRange(target, firstAccessor.name); + const visitedAccessorName = visitNode(firstAccessor.name, visitor, isPropertyName); + Debug.assert(visitedAccessorName); + if (isPrivateIdentifier(visitedAccessorName)) { + return Debug.failBadSyntaxKind(visitedAccessorName, "Encountered unhandled private identifier while transforming ES2015."); + } + const propertyName = createExpressionForPropertyName(factory2, visitedAccessorName); + setEmitFlags(propertyName, 3072 /* NoComments */ | 32 /* NoLeadingSourceMap */); + setSourceMapRange(propertyName, firstAccessor.name); + const properties = []; + if (getAccessor) { + const getterFunction = transformFunctionLikeToExpression( + getAccessor, + /*location*/ + void 0, + /*name*/ + void 0, + container + ); + setSourceMapRange(getterFunction, getSourceMapRange(getAccessor)); + setEmitFlags(getterFunction, 1024 /* NoLeadingComments */); + const getter = factory2.createPropertyAssignment("get", getterFunction); + setCommentRange(getter, getCommentRange(getAccessor)); + properties.push(getter); + } + if (setAccessor) { + const setterFunction = transformFunctionLikeToExpression( + setAccessor, + /*location*/ + void 0, + /*name*/ + void 0, + container + ); + setSourceMapRange(setterFunction, getSourceMapRange(setAccessor)); + setEmitFlags(setterFunction, 1024 /* NoLeadingComments */); + const setter = factory2.createPropertyAssignment("set", setterFunction); + setCommentRange(setter, getCommentRange(setAccessor)); + properties.push(setter); + } + properties.push( + factory2.createPropertyAssignment("enumerable", getAccessor || setAccessor ? factory2.createFalse() : factory2.createTrue()), + factory2.createPropertyAssignment("configurable", factory2.createTrue()) + ); + const call = factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"), + /*typeArguments*/ + void 0, + [ + target, + propertyName, + factory2.createObjectLiteralExpression( + properties, + /*multiLine*/ + true + ) + ] + ); + if (startsOnNewLine) { + startOnNewLine(call); + } + return call; + } + function visitArrowFunction(node) { + if (node.transformFlags & 16384 /* ContainsLexicalThis */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) { + hierarchyFacts |= 131072 /* CapturedLexicalThis */; + } + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const ancestorFacts = enterSubtree(15232 /* ArrowFunctionExcludes */, 66 /* ArrowFunctionIncludes */); + const func = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + transformFunctionBody(node) + ); + setTextRange(func, node); + setOriginalNode(func, node); + setEmitFlags(func, 16 /* CapturesThis */); + exitSubtree(ancestorFacts, 0 /* ArrowFunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + return func; + } + function visitFunctionExpression(node) { + const ancestorFacts = getEmitFlags(node) & 524288 /* AsyncFunctionBody */ ? enterSubtree(32662 /* AsyncFunctionBodyExcludes */, 69 /* AsyncFunctionBodyIncludes */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const parameters = visitParameterList(node.parameters, visitor, context); + const body = transformFunctionBody(node); + const name = hierarchyFacts & 32768 /* NewTarget */ ? factory2.getLocalName(node) : node.name; + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + return factory2.updateFunctionExpression( + node, + /*modifiers*/ + void 0, + node.asteriskToken, + name, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body + ); + } + function visitFunctionDeclaration(node) { + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); + const parameters = visitParameterList(node.parameters, visitor, context); + const body = transformFunctionBody(node); + const name = hierarchyFacts & 32768 /* NewTarget */ ? factory2.getLocalName(node) : node.name; + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + return factory2.updateFunctionDeclaration( + node, + visitNodes2(node.modifiers, visitor, isModifier), + node.asteriskToken, + name, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body + ); + } + function transformFunctionLikeToExpression(node, location, name, container) { + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const ancestorFacts = container && isClassLike(container) && !isStatic(node) ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */) : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); + const parameters = visitParameterList(node.parameters, visitor, context); + const body = transformFunctionBody(node); + if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 262 /* FunctionDeclaration */ || node.kind === 218 /* FunctionExpression */)) { + name = factory2.getGeneratedNameForNode(node); + } + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + return setOriginalNode( + setTextRange( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + node.asteriskToken, + name, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body + ), + location + ), + /*original*/ + node + ); + } + function transformFunctionBody(node) { + let multiLine = false; + let singleLine = false; + let statementsLocation; + let closeBraceLocation; + const prologue = []; + const statements = []; + const body = node.body; + let statementOffset; + resumeLexicalEnvironment(); + if (isBlock(body)) { + statementOffset = factory2.copyStandardPrologue( + body.statements, + prologue, + 0, + /*ensureUseStrict*/ + false + ); + statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedFunction); + statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor, isHoistedVariableStatement); + } + multiLine = addDefaultValueAssignmentsIfNeeded2(statements, node) || multiLine; + multiLine = addRestParameterIfNeeded( + statements, + node, + /*inConstructorWithSynthesizedSuper*/ + false + ) || multiLine; + if (isBlock(body)) { + statementOffset = factory2.copyCustomPrologue(body.statements, statements, statementOffset, visitor); + statementsLocation = body.statements; + addRange(statements, visitNodes2(body.statements, visitor, isStatement, statementOffset)); + if (!multiLine && body.multiLine) { + multiLine = true; + } + } else { + Debug.assert(node.kind === 219 /* ArrowFunction */); + statementsLocation = moveRangeEnd(body, -1); + const equalsGreaterThanToken = node.equalsGreaterThanToken; + if (!nodeIsSynthesized(equalsGreaterThanToken) && !nodeIsSynthesized(body)) { + if (rangeEndIsOnSameLineAsRangeStart(equalsGreaterThanToken, body, currentSourceFile)) { + singleLine = true; + } else { + multiLine = true; + } + } + const expression = visitNode(body, visitor, isExpression); + const returnStatement = factory2.createReturnStatement(expression); + setTextRange(returnStatement, body); + moveSyntheticComments(returnStatement, body); + setEmitFlags(returnStatement, 768 /* NoTokenSourceMaps */ | 64 /* NoTrailingSourceMap */ | 2048 /* NoTrailingComments */); + statements.push(returnStatement); + closeBraceLocation = body; + } + factory2.mergeLexicalEnvironment(prologue, endLexicalEnvironment()); + insertCaptureNewTargetIfNeeded(prologue, node); + insertCaptureThisForNodeIfNeeded(prologue, node); + if (some(prologue)) { + multiLine = true; + } + statements.unshift(...prologue); + if (isBlock(body) && arrayIsEqualTo(statements, body.statements)) { + return body; + } + const block = factory2.createBlock(setTextRange(factory2.createNodeArray(statements), statementsLocation), multiLine); + setTextRange(block, node.body); + if (!multiLine && singleLine) { + setEmitFlags(block, 1 /* SingleLine */); + } + if (closeBraceLocation) { + setTokenSourceMapRange(block, 20 /* CloseBraceToken */, closeBraceLocation); + } + setOriginalNode(block, node.body); + return block; + } + function visitBlock(node, isFunctionBody) { + if (isFunctionBody) { + return visitEachChild(node, visitor, context); + } + const ancestorFacts = hierarchyFacts & 256 /* IterationStatement */ ? enterSubtree(7104 /* IterationStatementBlockExcludes */, 512 /* IterationStatementBlockIncludes */) : enterSubtree(6976 /* BlockExcludes */, 128 /* BlockIncludes */); + const updated = visitEachChild(node, visitor, context); + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function visitExpressionStatement(node) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + function visitParenthesizedExpression(node, expressionResultIsUnused2) { + return visitEachChild(node, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, context); + } + function visitBinaryExpression(node, expressionResultIsUnused2) { + if (isDestructuringAssignment(node)) { + return flattenDestructuringAssignment( + node, + visitor, + context, + 0 /* All */, + !expressionResultIsUnused2 + ); + } + if (node.operatorToken.kind === 28 /* CommaToken */) { + return factory2.updateBinaryExpression( + node, + Debug.checkDefined(visitNode(node.left, visitorWithUnusedExpressionResult, isExpression)), + node.operatorToken, + Debug.checkDefined(visitNode(node.right, expressionResultIsUnused2 ? visitorWithUnusedExpressionResult : visitor, isExpression)) + ); + } + return visitEachChild(node, visitor, context); + } + function visitCommaListExpression(node, expressionResultIsUnused2) { + if (expressionResultIsUnused2) { + return visitEachChild(node, visitorWithUnusedExpressionResult, context); + } + let result; + for (let i = 0; i < node.elements.length; i++) { + const element = node.elements[i]; + const visited = visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, isExpression); + if (result || visited !== element) { + result || (result = node.elements.slice(0, i)); + Debug.assert(visited); + result.push(visited); + } + } + const elements = result ? setTextRange(factory2.createNodeArray(result), node.elements) : node.elements; + return factory2.updateCommaListExpression(node, elements); + } + function isVariableStatementOfTypeScriptClassWrapper(node) { + return node.declarationList.declarations.length === 1 && !!node.declarationList.declarations[0].initializer && !!(getInternalEmitFlags(node.declarationList.declarations[0].initializer) & 1 /* TypeScriptClassWrapper */); + } + function visitVariableStatement(node) { + const ancestorFacts = enterSubtree(0 /* None */, hasSyntacticModifier(node, 32 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */); + let updated; + if (convertedLoopState && (node.declarationList.flags & 7 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) { + let assignments; + for (const decl of node.declarationList.declarations) { + hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl); + if (decl.initializer) { + let assignment; + if (isBindingPattern(decl.name)) { + assignment = flattenDestructuringAssignment( + decl, + visitor, + context, + 0 /* All */ + ); + } else { + assignment = factory2.createBinaryExpression(decl.name, 64 /* EqualsToken */, Debug.checkDefined(visitNode(decl.initializer, visitor, isExpression))); + setTextRange(assignment, decl); + } + assignments = append(assignments, assignment); + } + } + if (assignments) { + updated = setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(assignments)), node); + } else { + updated = void 0; + } + } else { + updated = visitEachChild(node, visitor, context); + } + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function visitVariableDeclarationList(node) { + if (node.flags & 7 /* BlockScoped */ || node.transformFlags & 524288 /* ContainsBindingPattern */) { + if (node.flags & 7 /* BlockScoped */) { + enableSubstitutionsForBlockScopedBindings(); + } + const declarations = visitNodes2( + node.declarations, + node.flags & 1 /* Let */ ? visitVariableDeclarationInLetDeclarationList : visitVariableDeclaration, + isVariableDeclaration + ); + const declarationList = factory2.createVariableDeclarationList(declarations); + setOriginalNode(declarationList, node); + setTextRange(declarationList, node); + setCommentRange(declarationList, node); + if (node.transformFlags & 524288 /* ContainsBindingPattern */ && (isBindingPattern(node.declarations[0].name) || isBindingPattern(last(node.declarations).name))) { + setSourceMapRange(declarationList, getRangeUnion(declarations)); + } + return declarationList; + } + return visitEachChild(node, visitor, context); + } + function getRangeUnion(declarations) { + let pos = -1, end = -1; + for (const node of declarations) { + pos = pos === -1 ? node.pos : node.pos === -1 ? pos : Math.min(pos, node.pos); + end = Math.max(end, node.end); + } + return createRange(pos, end); + } + function shouldEmitExplicitInitializerForLetDeclaration(node) { + const isCapturedInFunction = resolver.hasNodeCheckFlag(node, 16384 /* CapturedBlockScopedBinding */); + const isDeclaredInLoop = resolver.hasNodeCheckFlag(node, 32768 /* BlockScopedBindingInLoop */); + const emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0 || isCapturedInFunction && isDeclaredInLoop && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0; + const emitExplicitInitializer = !emittedAsTopLevel && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0 && (!resolver.isDeclarationWithCollidingName(node) || isDeclaredInLoop && !isCapturedInFunction && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0); + return emitExplicitInitializer; + } + function visitVariableDeclarationInLetDeclarationList(node) { + const name = node.name; + if (isBindingPattern(name)) { + return visitVariableDeclaration(node); + } + if (!node.initializer && shouldEmitExplicitInitializerForLetDeclaration(node)) { + return factory2.updateVariableDeclaration( + node, + node.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createVoidZero() + ); + } + return visitEachChild(node, visitor, context); + } + function visitVariableDeclaration(node) { + const ancestorFacts = enterSubtree(32 /* ExportedVariableStatement */, 0 /* None */); + let updated; + if (isBindingPattern(node.name)) { + updated = flattenDestructuringBinding( + node, + visitor, + context, + 0 /* All */, + /*rval*/ + void 0, + (ancestorFacts & 32 /* ExportedVariableStatement */) !== 0 + ); + } else { + updated = visitEachChild(node, visitor, context); + } + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function recordLabel(node) { + convertedLoopState.labels.set(idText(node.label), true); + } + function resetLabel(node) { + convertedLoopState.labels.set(idText(node.label), false); + } + function visitLabeledStatement(node) { + if (convertedLoopState && !convertedLoopState.labels) { + convertedLoopState.labels = /* @__PURE__ */ new Map(); + } + const statement = unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel); + return isIterationStatement( + statement, + /*lookInLabeledStatements*/ + false + ) ? visitIterationStatement( + statement, + /*outermostLabeledStatement*/ + node + ) : factory2.restoreEnclosingLabel(Debug.checkDefined(visitNode(statement, visitor, isStatement, factory2.liftToBlock)), node, convertedLoopState && resetLabel); + } + function visitIterationStatement(node, outermostLabeledStatement) { + switch (node.kind) { + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + return visitDoOrWhileStatement(node, outermostLabeledStatement); + case 248 /* ForStatement */: + return visitForStatement(node, outermostLabeledStatement); + case 249 /* ForInStatement */: + return visitForInStatement(node, outermostLabeledStatement); + case 250 /* ForOfStatement */: + return visitForOfStatement(node, outermostLabeledStatement); + } + } + function visitIterationStatementWithFacts(excludeFacts, includeFacts, node, outermostLabeledStatement, convert) { + const ancestorFacts = enterSubtree(excludeFacts, includeFacts); + const updated = convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert); + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function visitDoOrWhileStatement(node, outermostLabeledStatement) { + return visitIterationStatementWithFacts( + 0 /* DoOrWhileStatementExcludes */, + 1280 /* DoOrWhileStatementIncludes */, + node, + outermostLabeledStatement + ); + } + function visitForStatement(node, outermostLabeledStatement) { + return visitIterationStatementWithFacts( + 5056 /* ForStatementExcludes */, + 3328 /* ForStatementIncludes */, + node, + outermostLabeledStatement + ); + } + function visitEachChildOfForStatement2(node) { + return factory2.updateForStatement( + node, + visitNode(node.initializer, visitorWithUnusedExpressionResult, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, visitorWithUnusedExpressionResult, isExpression), + Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock)) + ); + } + function visitForInStatement(node, outermostLabeledStatement) { + return visitIterationStatementWithFacts( + 3008 /* ForInOrForOfStatementExcludes */, + 5376 /* ForInOrForOfStatementIncludes */, + node, + outermostLabeledStatement + ); + } + function visitForOfStatement(node, outermostLabeledStatement) { + return visitIterationStatementWithFacts( + 3008 /* ForInOrForOfStatementExcludes */, + 5376 /* ForInOrForOfStatementIncludes */, + node, + outermostLabeledStatement, + compilerOptions.downlevelIteration ? convertForOfStatementForIterable : convertForOfStatementForArray + ); + } + function convertForOfStatementHead(node, boundValue, convertedLoopBodyStatements) { + const statements = []; + const initializer = node.initializer; + if (isVariableDeclarationList(initializer)) { + if (node.initializer.flags & 7 /* BlockScoped */) { + enableSubstitutionsForBlockScopedBindings(); + } + const firstOriginalDeclaration = firstOrUndefined(initializer.declarations); + if (firstOriginalDeclaration && isBindingPattern(firstOriginalDeclaration.name)) { + const declarations = flattenDestructuringBinding( + firstOriginalDeclaration, + visitor, + context, + 0 /* All */, + boundValue + ); + const declarationList = setTextRange(factory2.createVariableDeclarationList(declarations), node.initializer); + setOriginalNode(declarationList, node.initializer); + setSourceMapRange(declarationList, createRange(declarations[0].pos, last(declarations).end)); + statements.push( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + declarationList + ) + ); + } else { + statements.push( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + setOriginalNode( + setTextRange( + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + firstOriginalDeclaration ? firstOriginalDeclaration.name : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + boundValue + ) + ]), + moveRangePos(initializer, -1) + ), + initializer + ) + ), + moveRangeEnd(initializer, -1) + ) + ); + } + } else { + const assignment = factory2.createAssignment(initializer, boundValue); + if (isDestructuringAssignment(assignment)) { + statements.push(factory2.createExpressionStatement(visitBinaryExpression( + assignment, + /*expressionResultIsUnused*/ + true + ))); + } else { + setTextRangeEnd(assignment, initializer.end); + statements.push(setTextRange(factory2.createExpressionStatement(Debug.checkDefined(visitNode(assignment, visitor, isExpression))), moveRangeEnd(initializer, -1))); + } + } + if (convertedLoopBodyStatements) { + return createSyntheticBlockForConvertedStatements(addRange(statements, convertedLoopBodyStatements)); + } else { + const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock); + Debug.assert(statement); + if (isBlock(statement)) { + return factory2.updateBlock(statement, setTextRange(factory2.createNodeArray(concatenate(statements, statement.statements)), statement.statements)); + } else { + statements.push(statement); + return createSyntheticBlockForConvertedStatements(statements); + } + } + } + function createSyntheticBlockForConvertedStatements(statements) { + return setEmitFlags( + factory2.createBlock( + factory2.createNodeArray(statements), + /*multiLine*/ + true + ), + 96 /* NoSourceMap */ | 768 /* NoTokenSourceMaps */ + ); + } + function convertForOfStatementForArray(node, outermostLabeledStatement, convertedLoopBodyStatements) { + const expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + const counter = factory2.createLoopVariable(); + const rhsReference = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + setEmitFlags(expression, 96 /* NoSourceMap */ | getEmitFlags(expression)); + const forStatement = setTextRange( + factory2.createForStatement( + /*initializer*/ + setEmitFlags( + setTextRange( + factory2.createVariableDeclarationList([ + setTextRange(factory2.createVariableDeclaration( + counter, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createNumericLiteral(0) + ), moveRangePos(node.expression, -1)), + setTextRange(factory2.createVariableDeclaration( + rhsReference, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + expression + ), node.expression) + ]), + node.expression + ), + 4194304 /* NoHoisting */ + ), + /*condition*/ + setTextRange( + factory2.createLessThan( + counter, + factory2.createPropertyAccessExpression(rhsReference, "length") + ), + node.expression + ), + /*incrementor*/ + setTextRange(factory2.createPostfixIncrement(counter), node.expression), + /*statement*/ + convertForOfStatementHead( + node, + factory2.createElementAccessExpression(rhsReference, counter), + convertedLoopBodyStatements + ) + ), + /*location*/ + node + ); + setEmitFlags(forStatement, 512 /* NoTokenTrailingSourceMaps */); + setTextRange(forStatement, node); + return factory2.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel); + } + function convertForOfStatementForIterable(node, outermostLabeledStatement, convertedLoopBodyStatements, ancestorFacts) { + const expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + const iterator = isIdentifier(expression) ? factory2.getGeneratedNameForNode(expression) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const result = isIdentifier(expression) ? factory2.getGeneratedNameForNode(iterator) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const errorRecord = factory2.createUniqueName("e"); + const catchVariable = factory2.getGeneratedNameForNode(errorRecord); + const returnMethod = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const values = setTextRange(emitHelpers().createValuesHelper(expression), node.expression); + const next = factory2.createCallExpression( + factory2.createPropertyAccessExpression(iterator, "next"), + /*typeArguments*/ + void 0, + [] + ); + hoistVariableDeclaration(errorRecord); + hoistVariableDeclaration(returnMethod); + const initializer = ancestorFacts & 1024 /* IterationContainer */ ? factory2.inlineExpressions([factory2.createAssignment(errorRecord, factory2.createVoidZero()), values]) : values; + const forStatement = setEmitFlags( + setTextRange( + factory2.createForStatement( + /*initializer*/ + setEmitFlags( + setTextRange( + factory2.createVariableDeclarationList([ + setTextRange(factory2.createVariableDeclaration( + iterator, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + initializer + ), node.expression), + factory2.createVariableDeclaration( + result, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + next + ) + ]), + node.expression + ), + 4194304 /* NoHoisting */ + ), + /*condition*/ + factory2.createLogicalNot(factory2.createPropertyAccessExpression(result, "done")), + /*incrementor*/ + factory2.createAssignment(result, next), + /*statement*/ + convertForOfStatementHead( + node, + factory2.createPropertyAccessExpression(result, "value"), + convertedLoopBodyStatements + ) + ), + /*location*/ + node + ), + 512 /* NoTokenTrailingSourceMaps */ + ); + return factory2.createTryStatement( + factory2.createBlock([ + factory2.restoreEnclosingLabel( + forStatement, + outermostLabeledStatement, + convertedLoopState && resetLabel + ) + ]), + factory2.createCatchClause( + factory2.createVariableDeclaration(catchVariable), + setEmitFlags( + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createAssignment( + errorRecord, + factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("error", catchVariable) + ]) + ) + ) + ]), + 1 /* SingleLine */ + ) + ), + factory2.createBlock([ + factory2.createTryStatement( + /*tryBlock*/ + factory2.createBlock([ + setEmitFlags( + factory2.createIfStatement( + factory2.createLogicalAnd( + factory2.createLogicalAnd( + result, + factory2.createLogicalNot( + factory2.createPropertyAccessExpression(result, "done") + ) + ), + factory2.createAssignment( + returnMethod, + factory2.createPropertyAccessExpression(iterator, "return") + ) + ), + factory2.createExpressionStatement( + factory2.createFunctionCallCall(returnMethod, iterator, []) + ) + ), + 1 /* SingleLine */ + ) + ]), + /*catchClause*/ + void 0, + /*finallyBlock*/ + setEmitFlags( + factory2.createBlock([ + setEmitFlags( + factory2.createIfStatement( + errorRecord, + factory2.createThrowStatement( + factory2.createPropertyAccessExpression(errorRecord, "error") + ) + ), + 1 /* SingleLine */ + ) + ]), + 1 /* SingleLine */ + ) + ) + ]) + ); + } + function visitObjectLiteralExpression(node) { + const properties = node.properties; + let numInitialProperties = -1, hasComputed = false; + for (let i = 0; i < properties.length; i++) { + const property = properties[i]; + if (property.transformFlags & 1048576 /* ContainsYield */ && hierarchyFacts & 4 /* AsyncFunctionBody */ || (hasComputed = Debug.checkDefined(property.name).kind === 167 /* ComputedPropertyName */)) { + numInitialProperties = i; + break; + } + } + if (numInitialProperties < 0) { + return visitEachChild(node, visitor, context); + } + const temp = factory2.createTempVariable(hoistVariableDeclaration); + const expressions = []; + const assignment = factory2.createAssignment( + temp, + setEmitFlags( + factory2.createObjectLiteralExpression( + visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), + node.multiLine + ), + hasComputed ? 131072 /* Indented */ : 0 + ) + ); + if (node.multiLine) { + startOnNewLine(assignment); + } + expressions.push(assignment); + addObjectLiteralMembers(expressions, node, temp, numInitialProperties); + expressions.push(node.multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp); + return factory2.inlineExpressions(expressions); + } + function shouldConvertPartOfIterationStatement(node) { + return resolver.hasNodeCheckFlag(node, 8192 /* ContainsCapturedBlockScopeBinding */); + } + function shouldConvertInitializerOfForStatement(node) { + return isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer); + } + function shouldConvertConditionOfForStatement(node) { + return isForStatement(node) && !!node.condition && shouldConvertPartOfIterationStatement(node.condition); + } + function shouldConvertIncrementorOfForStatement(node) { + return isForStatement(node) && !!node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor); + } + function shouldConvertIterationStatement(node) { + return shouldConvertBodyOfIterationStatement(node) || shouldConvertInitializerOfForStatement(node); + } + function shouldConvertBodyOfIterationStatement(node) { + return resolver.hasNodeCheckFlag(node, 4096 /* LoopWithCapturedBlockScopedBinding */); + } + function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) { + if (!state.hoistedLocalVariables) { + state.hoistedLocalVariables = []; + } + visit(node.name); + function visit(node2) { + if (node2.kind === 80 /* Identifier */) { + state.hoistedLocalVariables.push(node2); + } else { + for (const element of node2.elements) { + if (!isOmittedExpression(element)) { + visit(element.name); + } + } + } + } + } + function convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert) { + if (!shouldConvertIterationStatement(node)) { + let saveAllowedNonLabeledJumps; + if (convertedLoopState) { + saveAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps; + convertedLoopState.allowedNonLabeledJumps = 2 /* Break */ | 4 /* Continue */; + } + const result = convert ? convert( + node, + outermostLabeledStatement, + /*convertedLoopBodyStatements*/ + void 0, + ancestorFacts + ) : factory2.restoreEnclosingLabel( + isForStatement(node) ? visitEachChildOfForStatement2(node) : visitEachChild(node, visitor, context), + outermostLabeledStatement, + convertedLoopState && resetLabel + ); + if (convertedLoopState) { + convertedLoopState.allowedNonLabeledJumps = saveAllowedNonLabeledJumps; + } + return result; + } + const currentState = createConvertedLoopState(node); + const statements = []; + const outerConvertedLoopState = convertedLoopState; + convertedLoopState = currentState; + const initializerFunction = shouldConvertInitializerOfForStatement(node) ? createFunctionForInitializerOfForStatement(node, currentState) : void 0; + const bodyFunction = shouldConvertBodyOfIterationStatement(node) ? createFunctionForBodyOfIterationStatement(node, currentState, outerConvertedLoopState) : void 0; + convertedLoopState = outerConvertedLoopState; + if (initializerFunction) statements.push(initializerFunction.functionDeclaration); + if (bodyFunction) statements.push(bodyFunction.functionDeclaration); + addExtraDeclarationsForConvertedLoop(statements, currentState, outerConvertedLoopState); + if (initializerFunction) { + statements.push(generateCallToConvertedLoopInitializer(initializerFunction.functionName, initializerFunction.containsYield)); + } + let loop; + if (bodyFunction) { + if (convert) { + loop = convert(node, outermostLabeledStatement, bodyFunction.part, ancestorFacts); + } else { + const clone = convertIterationStatementCore(node, initializerFunction, factory2.createBlock( + bodyFunction.part, + /*multiLine*/ + true + )); + loop = factory2.restoreEnclosingLabel(clone, outermostLabeledStatement, convertedLoopState && resetLabel); + } + } else { + const clone = convertIterationStatementCore(node, initializerFunction, Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock))); + loop = factory2.restoreEnclosingLabel(clone, outermostLabeledStatement, convertedLoopState && resetLabel); + } + statements.push(loop); + return statements; + } + function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) { + switch (node.kind) { + case 248 /* ForStatement */: + return convertForStatement(node, initializerFunction, convertedLoopBody); + case 249 /* ForInStatement */: + return convertForInStatement(node, convertedLoopBody); + case 250 /* ForOfStatement */: + return convertForOfStatement(node, convertedLoopBody); + case 246 /* DoStatement */: + return convertDoStatement(node, convertedLoopBody); + case 247 /* WhileStatement */: + return convertWhileStatement(node, convertedLoopBody); + default: + return Debug.failBadSyntaxKind(node, "IterationStatement expected"); + } + } + function convertForStatement(node, initializerFunction, convertedLoopBody) { + const shouldConvertCondition = node.condition && shouldConvertPartOfIterationStatement(node.condition); + const shouldConvertIncrementor = shouldConvertCondition || node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor); + return factory2.updateForStatement( + node, + visitNode(initializerFunction ? initializerFunction.part : node.initializer, visitorWithUnusedExpressionResult, isForInitializer), + visitNode(shouldConvertCondition ? void 0 : node.condition, visitor, isExpression), + visitNode(shouldConvertIncrementor ? void 0 : node.incrementor, visitorWithUnusedExpressionResult, isExpression), + convertedLoopBody + ); + } + function convertForOfStatement(node, convertedLoopBody) { + return factory2.updateForOfStatement( + node, + /*awaitModifier*/ + void 0, + Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + convertedLoopBody + ); + } + function convertForInStatement(node, convertedLoopBody) { + return factory2.updateForInStatement( + node, + Debug.checkDefined(visitNode(node.initializer, visitor, isForInitializer)), + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + convertedLoopBody + ); + } + function convertDoStatement(node, convertedLoopBody) { + return factory2.updateDoStatement( + node, + convertedLoopBody, + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)) + ); + } + function convertWhileStatement(node, convertedLoopBody) { + return factory2.updateWhileStatement( + node, + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + convertedLoopBody + ); + } + function createConvertedLoopState(node) { + let loopInitializer; + switch (node.kind) { + case 248 /* ForStatement */: + case 249 /* ForInStatement */: + case 250 /* ForOfStatement */: + const initializer = node.initializer; + if (initializer && initializer.kind === 261 /* VariableDeclarationList */) { + loopInitializer = initializer; + } + break; + } + const loopParameters = []; + const loopOutParameters = []; + if (loopInitializer && getCombinedNodeFlags(loopInitializer) & 7 /* BlockScoped */) { + const hasCapturedBindingsInForHead = shouldConvertInitializerOfForStatement(node) || shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node); + for (const decl of loopInitializer.declarations) { + processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); + } + } + const currentState = { loopParameters, loopOutParameters }; + if (convertedLoopState) { + if (convertedLoopState.argumentsName) { + currentState.argumentsName = convertedLoopState.argumentsName; + } + if (convertedLoopState.thisName) { + currentState.thisName = convertedLoopState.thisName; + } + if (convertedLoopState.hoistedLocalVariables) { + currentState.hoistedLocalVariables = convertedLoopState.hoistedLocalVariables; + } + } + return currentState; + } + function addExtraDeclarationsForConvertedLoop(statements, state, outerState) { + let extraVariableDeclarations; + if (state.argumentsName) { + if (outerState) { + outerState.argumentsName = state.argumentsName; + } else { + (extraVariableDeclarations || (extraVariableDeclarations = [])).push( + factory2.createVariableDeclaration( + state.argumentsName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createIdentifier("arguments") + ) + ); + } + } + if (state.thisName) { + if (outerState) { + outerState.thisName = state.thisName; + } else { + (extraVariableDeclarations || (extraVariableDeclarations = [])).push( + factory2.createVariableDeclaration( + state.thisName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createIdentifier("this") + ) + ); + } + } + if (state.hoistedLocalVariables) { + if (outerState) { + outerState.hoistedLocalVariables = state.hoistedLocalVariables; + } else { + if (!extraVariableDeclarations) { + extraVariableDeclarations = []; + } + for (const identifier of state.hoistedLocalVariables) { + extraVariableDeclarations.push(factory2.createVariableDeclaration(identifier)); + } + } + } + if (state.loopOutParameters.length) { + if (!extraVariableDeclarations) { + extraVariableDeclarations = []; + } + for (const outParam of state.loopOutParameters) { + extraVariableDeclarations.push(factory2.createVariableDeclaration(outParam.outParamName)); + } + } + if (state.conditionVariable) { + if (!extraVariableDeclarations) { + extraVariableDeclarations = []; + } + extraVariableDeclarations.push(factory2.createVariableDeclaration( + state.conditionVariable, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createFalse() + )); + } + if (extraVariableDeclarations) { + statements.push(factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList(extraVariableDeclarations) + )); + } + } + function createOutVariable(p) { + return factory2.createVariableDeclaration( + p.originalName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + p.outParamName + ); + } + function createFunctionForInitializerOfForStatement(node, currentState) { + const functionName = factory2.createUniqueName("_loop_init"); + const containsYield = (node.initializer.transformFlags & 1048576 /* ContainsYield */) !== 0; + let emitFlags = 0 /* None */; + if (currentState.containsLexicalThis) emitFlags |= 16 /* CapturesThis */; + if (containsYield && hierarchyFacts & 4 /* AsyncFunctionBody */) emitFlags |= 524288 /* AsyncFunctionBody */; + const statements = []; + statements.push(factory2.createVariableStatement( + /*modifiers*/ + void 0, + node.initializer + )); + copyOutParameters(currentState.loopOutParameters, 2 /* Initializer */, 1 /* ToOutParameter */, statements); + const functionDeclaration = factory2.createVariableStatement( + /*modifiers*/ + void 0, + setEmitFlags( + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + functionName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + setEmitFlags( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + containsYield ? factory2.createToken(42 /* AsteriskToken */) : void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + void 0, + /*type*/ + void 0, + Debug.checkDefined(visitNode( + factory2.createBlock( + statements, + /*multiLine*/ + true + ), + visitor, + isBlock + )) + ), + emitFlags + ) + ) + ]), + 4194304 /* NoHoisting */ + ) + ); + const part = factory2.createVariableDeclarationList(map(currentState.loopOutParameters, createOutVariable)); + return { functionName, containsYield, functionDeclaration, part }; + } + function createFunctionForBodyOfIterationStatement(node, currentState, outerState) { + const functionName = factory2.createUniqueName("_loop"); + startLexicalEnvironment(); + const statement = visitNode(node.statement, visitor, isStatement, factory2.liftToBlock); + const lexicalEnvironment = endLexicalEnvironment(); + const statements = []; + if (shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node)) { + currentState.conditionVariable = factory2.createUniqueName("inc"); + if (node.incrementor) { + statements.push(factory2.createIfStatement( + currentState.conditionVariable, + factory2.createExpressionStatement(Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression))), + factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue())) + )); + } else { + statements.push(factory2.createIfStatement( + factory2.createLogicalNot(currentState.conditionVariable), + factory2.createExpressionStatement(factory2.createAssignment(currentState.conditionVariable, factory2.createTrue())) + )); + } + if (shouldConvertConditionOfForStatement(node)) { + statements.push(factory2.createIfStatement( + factory2.createPrefixUnaryExpression(54 /* ExclamationToken */, Debug.checkDefined(visitNode(node.condition, visitor, isExpression))), + Debug.checkDefined(visitNode(factory2.createBreakStatement(), visitor, isStatement)) + )); + } + } + Debug.assert(statement); + if (isBlock(statement)) { + addRange(statements, statement.statements); + } else { + statements.push(statement); + } + copyOutParameters(currentState.loopOutParameters, 1 /* Body */, 1 /* ToOutParameter */, statements); + insertStatementsAfterStandardPrologue(statements, lexicalEnvironment); + const loopBody = factory2.createBlock( + statements, + /*multiLine*/ + true + ); + if (isBlock(statement)) setOriginalNode(loopBody, statement); + const containsYield = (node.statement.transformFlags & 1048576 /* ContainsYield */) !== 0; + let emitFlags = 1048576 /* ReuseTempVariableScope */; + if (currentState.containsLexicalThis) emitFlags |= 16 /* CapturesThis */; + if (containsYield && (hierarchyFacts & 4 /* AsyncFunctionBody */) !== 0) emitFlags |= 524288 /* AsyncFunctionBody */; + const functionDeclaration = factory2.createVariableStatement( + /*modifiers*/ + void 0, + setEmitFlags( + factory2.createVariableDeclarationList( + [ + factory2.createVariableDeclaration( + functionName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + setEmitFlags( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + containsYield ? factory2.createToken(42 /* AsteriskToken */) : void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + currentState.loopParameters, + /*type*/ + void 0, + loopBody + ), + emitFlags + ) + ) + ] + ), + 4194304 /* NoHoisting */ + ) + ); + const part = generateCallToConvertedLoop(functionName, currentState, outerState, containsYield); + return { functionName, containsYield, functionDeclaration, part }; + } + function copyOutParameter(outParam, copyDirection) { + const source = copyDirection === 0 /* ToOriginal */ ? outParam.outParamName : outParam.originalName; + const target = copyDirection === 0 /* ToOriginal */ ? outParam.originalName : outParam.outParamName; + return factory2.createBinaryExpression(target, 64 /* EqualsToken */, source); + } + function copyOutParameters(outParams, partFlags, copyDirection, statements) { + for (const outParam of outParams) { + if (outParam.flags & partFlags) { + statements.push(factory2.createExpressionStatement(copyOutParameter(outParam, copyDirection))); + } + } + } + function generateCallToConvertedLoopInitializer(initFunctionExpressionName, containsYield) { + const call = factory2.createCallExpression( + initFunctionExpressionName, + /*typeArguments*/ + void 0, + [] + ); + const callResult = containsYield ? factory2.createYieldExpression( + factory2.createToken(42 /* AsteriskToken */), + setEmitFlags(call, 8388608 /* Iterator */) + ) : call; + return factory2.createExpressionStatement(callResult); + } + function generateCallToConvertedLoop(loopFunctionExpressionName, state, outerState, containsYield) { + const statements = []; + const isSimpleLoop = !(state.nonLocalJumps & ~4 /* Continue */) && !state.labeledNonLocalBreaks && !state.labeledNonLocalContinues; + const call = factory2.createCallExpression( + loopFunctionExpressionName, + /*typeArguments*/ + void 0, + map(state.loopParameters, (p) => p.name) + ); + const callResult = containsYield ? factory2.createYieldExpression( + factory2.createToken(42 /* AsteriskToken */), + setEmitFlags(call, 8388608 /* Iterator */) + ) : call; + if (isSimpleLoop) { + statements.push(factory2.createExpressionStatement(callResult)); + copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements); + } else { + const loopResultName = factory2.createUniqueName("state"); + const stateVariable = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [factory2.createVariableDeclaration( + loopResultName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + callResult + )] + ) + ); + statements.push(stateVariable); + copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements); + if (state.nonLocalJumps & 8 /* Return */) { + let returnStatement; + if (outerState) { + outerState.nonLocalJumps |= 8 /* Return */; + returnStatement = factory2.createReturnStatement(loopResultName); + } else { + returnStatement = factory2.createReturnStatement(factory2.createPropertyAccessExpression(loopResultName, "value")); + } + statements.push( + factory2.createIfStatement( + factory2.createTypeCheck(loopResultName, "object"), + returnStatement + ) + ); + } + if (state.nonLocalJumps & 2 /* Break */) { + statements.push( + factory2.createIfStatement( + factory2.createStrictEquality( + loopResultName, + factory2.createStringLiteral("break") + ), + factory2.createBreakStatement() + ) + ); + } + if (state.labeledNonLocalBreaks || state.labeledNonLocalContinues) { + const caseClauses = []; + processLabeledJumps( + state.labeledNonLocalBreaks, + /*isBreak*/ + true, + loopResultName, + outerState, + caseClauses + ); + processLabeledJumps( + state.labeledNonLocalContinues, + /*isBreak*/ + false, + loopResultName, + outerState, + caseClauses + ); + statements.push( + factory2.createSwitchStatement( + loopResultName, + factory2.createCaseBlock(caseClauses) + ) + ); + } + } + return statements; + } + function setLabeledJump(state, isBreak, labelText, labelMarker) { + if (isBreak) { + if (!state.labeledNonLocalBreaks) { + state.labeledNonLocalBreaks = /* @__PURE__ */ new Map(); + } + state.labeledNonLocalBreaks.set(labelText, labelMarker); + } else { + if (!state.labeledNonLocalContinues) { + state.labeledNonLocalContinues = /* @__PURE__ */ new Map(); + } + state.labeledNonLocalContinues.set(labelText, labelMarker); + } + } + function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) { + if (!table) { + return; + } + table.forEach((labelMarker, labelText) => { + const statements = []; + if (!outerLoop || outerLoop.labels && outerLoop.labels.get(labelText)) { + const label = factory2.createIdentifier(labelText); + statements.push(isBreak ? factory2.createBreakStatement(label) : factory2.createContinueStatement(label)); + } else { + setLabeledJump(outerLoop, isBreak, labelText, labelMarker); + statements.push(factory2.createReturnStatement(loopResultName)); + } + caseClauses.push(factory2.createCaseClause(factory2.createStringLiteral(labelMarker), statements)); + }); + } + function processLoopVariableDeclaration(container, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForHead) { + const name = decl.name; + if (isBindingPattern(name)) { + for (const element of name.elements) { + if (!isOmittedExpression(element)) { + processLoopVariableDeclaration(container, element, loopParameters, loopOutParameters, hasCapturedBindingsInForHead); + } + } + } else { + loopParameters.push(factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + name + )); + const needsOutParam = resolver.hasNodeCheckFlag(decl, 65536 /* NeedsLoopOutParameter */); + if (needsOutParam || hasCapturedBindingsInForHead) { + const outParamName = factory2.createUniqueName("out_" + idText(name)); + let flags = 0 /* None */; + if (needsOutParam) { + flags |= 1 /* Body */; + } + if (isForStatement(container)) { + if (container.initializer && resolver.isBindingCapturedByNode(container.initializer, decl)) { + flags |= 2 /* Initializer */; + } + if (container.condition && resolver.isBindingCapturedByNode(container.condition, decl) || container.incrementor && resolver.isBindingCapturedByNode(container.incrementor, decl)) { + flags |= 1 /* Body */; + } + } + loopOutParameters.push({ flags, originalName: name, outParamName }); + } + } + } + function addObjectLiteralMembers(expressions, node, receiver, start) { + const properties = node.properties; + const numProperties = properties.length; + for (let i = start; i < numProperties; i++) { + const property = properties[i]; + switch (property.kind) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + const accessors = getAllAccessorDeclarations(node.properties, property); + if (property === accessors.firstAccessor) { + expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine)); + } + break; + case 174 /* MethodDeclaration */: + expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); + break; + case 303 /* PropertyAssignment */: + expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine)); + break; + case 304 /* ShorthandPropertyAssignment */: + expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine)); + break; + default: + Debug.failBadSyntaxKind(node); + break; + } + } + } + function transformPropertyAssignmentToExpression(property, receiver, startsOnNewLine) { + const expression = factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + Debug.checkDefined(visitNode(property.name, visitor, isPropertyName)) + ), + Debug.checkDefined(visitNode(property.initializer, visitor, isExpression)) + ); + setTextRange(expression, property); + if (startsOnNewLine) { + startOnNewLine(expression); + } + return expression; + } + function transformShorthandPropertyAssignmentToExpression(property, receiver, startsOnNewLine) { + const expression = factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + Debug.checkDefined(visitNode(property.name, visitor, isPropertyName)) + ), + factory2.cloneNode(property.name) + ); + setTextRange(expression, property); + if (startsOnNewLine) { + startOnNewLine(expression); + } + return expression; + } + function transformObjectLiteralMethodDeclarationToExpression(method, receiver, container, startsOnNewLine) { + const expression = factory2.createAssignment( + createMemberAccessForPropertyName( + factory2, + receiver, + Debug.checkDefined(visitNode(method.name, visitor, isPropertyName)) + ), + transformFunctionLikeToExpression( + method, + /*location*/ + method, + /*name*/ + void 0, + container + ) + ); + setTextRange(expression, method); + if (startsOnNewLine) { + startOnNewLine(expression); + } + return expression; + } + function visitCatchClause(node) { + const ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */); + let updated; + Debug.assert(!!node.variableDeclaration, "Catch clause variable should always be present when downleveling ES2015."); + if (isBindingPattern(node.variableDeclaration.name)) { + const temp = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + const newVariableDeclaration = factory2.createVariableDeclaration(temp); + setTextRange(newVariableDeclaration, node.variableDeclaration); + const vars = flattenDestructuringBinding( + node.variableDeclaration, + visitor, + context, + 0 /* All */, + temp + ); + const list = factory2.createVariableDeclarationList(vars); + setTextRange(list, node.variableDeclaration); + const destructure = factory2.createVariableStatement( + /*modifiers*/ + void 0, + list + ); + updated = factory2.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure)); + } else { + updated = visitEachChild(node, visitor, context); + } + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return updated; + } + function addStatementToStartOfBlock(block, statement) { + const transformedStatements = visitNodes2(block.statements, visitor, isStatement); + return factory2.updateBlock(block, [statement, ...transformedStatements]); + } + function visitMethodDeclaration(node) { + Debug.assert(!isComputedPropertyName(node.name)); + const functionExpression = transformFunctionLikeToExpression( + node, + /*location*/ + moveRangePos(node, -1), + /*name*/ + void 0, + /*container*/ + void 0 + ); + setEmitFlags(functionExpression, 1024 /* NoLeadingComments */ | getEmitFlags(functionExpression)); + return setTextRange( + factory2.createPropertyAssignment( + node.name, + functionExpression + ), + /*location*/ + node + ); + } + function visitAccessorDeclaration(node) { + Debug.assert(!isComputedPropertyName(node.name)); + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */); + let updated; + const parameters = visitParameterList(node.parameters, visitor, context); + const body = transformFunctionBody(node); + if (node.kind === 177 /* GetAccessor */) { + updated = factory2.updateGetAccessorDeclaration(node, node.modifiers, node.name, parameters, node.type, body); + } else { + updated = factory2.updateSetAccessorDeclaration(node, node.modifiers, node.name, parameters, body); + } + exitSubtree(ancestorFacts, 229376 /* FunctionSubtreeExcludes */, 0 /* None */); + convertedLoopState = savedConvertedLoopState; + return updated; + } + function visitShorthandPropertyAssignment(node) { + return setTextRange( + factory2.createPropertyAssignment( + node.name, + visitIdentifier(factory2.cloneNode(node.name)) + ), + /*location*/ + node + ); + } + function visitComputedPropertyName(node) { + return visitEachChild(node, visitor, context); + } + function visitYieldExpression(node) { + return visitEachChild(node, visitor, context); + } + function visitArrayLiteralExpression(node) { + if (some(node.elements, isSpreadElement)) { + return transformAndSpreadElements( + node.elements, + /*isArgumentList*/ + false, + !!node.multiLine, + /*hasTrailingComma*/ + !!node.elements.hasTrailingComma + ); + } + return visitEachChild(node, visitor, context); + } + function visitCallExpression(node) { + if (getInternalEmitFlags(node) & 1 /* TypeScriptClassWrapper */) { + return visitTypeScriptClassWrapper(node); + } + const expression = skipOuterExpressions(node.expression); + if (expression.kind === 108 /* SuperKeyword */ || isSuperProperty(expression) || some(node.arguments, isSpreadElement)) { + return visitCallExpressionWithPotentialCapturedThisAssignment( + node, + /*assignToCapturedThis*/ + true + ); + } + return factory2.updateCallExpression( + node, + Debug.checkDefined(visitNode(node.expression, callExpressionVisitor, isExpression)), + /*typeArguments*/ + void 0, + visitNodes2(node.arguments, visitor, isExpression) + ); + } + function visitTypeScriptClassWrapper(node) { + const body = cast(cast(skipOuterExpressions(node.expression), isArrowFunction).body, isBlock); + const isVariableStatementWithInitializer = (stmt) => isVariableStatement(stmt) && !!first(stmt.declarationList.declarations).initializer; + const savedConvertedLoopState = convertedLoopState; + convertedLoopState = void 0; + const bodyStatements = visitNodes2(body.statements, classWrapperStatementVisitor, isStatement); + convertedLoopState = savedConvertedLoopState; + const classStatements = filter(bodyStatements, isVariableStatementWithInitializer); + const remainingStatements = filter(bodyStatements, (stmt) => !isVariableStatementWithInitializer(stmt)); + const varStatement = cast(first(classStatements), isVariableStatement); + const variable = varStatement.declarationList.declarations[0]; + const initializer = skipOuterExpressions(variable.initializer); + let aliasAssignment = tryCast(initializer, isAssignmentExpression); + if (!aliasAssignment && isBinaryExpression(initializer) && initializer.operatorToken.kind === 28 /* CommaToken */) { + aliasAssignment = tryCast(initializer.left, isAssignmentExpression); + } + const call = cast(aliasAssignment ? skipOuterExpressions(aliasAssignment.right) : initializer, isCallExpression); + const func = cast(skipOuterExpressions(call.expression), isFunctionExpression); + const funcStatements = func.body.statements; + let classBodyStart = 0; + let classBodyEnd = -1; + const statements = []; + if (aliasAssignment) { + const extendsCall = tryCast(funcStatements[classBodyStart], isExpressionStatement); + if (extendsCall) { + statements.push(extendsCall); + classBodyStart++; + } + statements.push(funcStatements[classBodyStart]); + classBodyStart++; + statements.push( + factory2.createExpressionStatement( + factory2.createAssignment( + aliasAssignment.left, + cast(variable.name, isIdentifier) + ) + ) + ); + } + while (!isReturnStatement(elementAt(funcStatements, classBodyEnd))) { + classBodyEnd--; + } + addRange(statements, funcStatements, classBodyStart, classBodyEnd); + if (classBodyEnd < -1) { + addRange(statements, funcStatements, classBodyEnd + 1); + } + const returnStatement = tryCast(elementAt(funcStatements, classBodyEnd), isReturnStatement); + for (const statement of remainingStatements) { + if (isReturnStatement(statement) && (returnStatement == null ? void 0 : returnStatement.expression) && !isIdentifier(returnStatement.expression)) { + statements.push(returnStatement); + } else { + statements.push(statement); + } + } + addRange( + statements, + classStatements, + /*start*/ + 1 + ); + return factory2.restoreOuterExpressions( + node.expression, + factory2.restoreOuterExpressions( + variable.initializer, + factory2.restoreOuterExpressions( + aliasAssignment && aliasAssignment.right, + factory2.updateCallExpression( + call, + factory2.restoreOuterExpressions( + call.expression, + factory2.updateFunctionExpression( + func, + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + func.parameters, + /*type*/ + void 0, + factory2.updateBlock( + func.body, + statements + ) + ) + ), + /*typeArguments*/ + void 0, + call.arguments + ) + ) + ) + ); + } + function visitCallExpressionWithPotentialCapturedThisAssignment(node, assignToCapturedThis) { + if (node.transformFlags & 32768 /* ContainsRestOrSpread */ || node.expression.kind === 108 /* SuperKeyword */ || isSuperProperty(skipOuterExpressions(node.expression))) { + const { target, thisArg } = factory2.createCallBinding(node.expression, hoistVariableDeclaration); + if (node.expression.kind === 108 /* SuperKeyword */) { + setEmitFlags(thisArg, 8 /* NoSubstitution */); + } + let resultingCall; + if (node.transformFlags & 32768 /* ContainsRestOrSpread */) { + resultingCall = factory2.createFunctionApplyCall( + Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), + node.expression.kind === 108 /* SuperKeyword */ ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), + transformAndSpreadElements( + node.arguments, + /*isArgumentList*/ + true, + /*multiLine*/ + false, + /*hasTrailingComma*/ + false + ) + ); + } else { + resultingCall = setTextRange( + factory2.createFunctionCallCall( + Debug.checkDefined(visitNode(target, callExpressionVisitor, isExpression)), + node.expression.kind === 108 /* SuperKeyword */ ? thisArg : Debug.checkDefined(visitNode(thisArg, visitor, isExpression)), + visitNodes2(node.arguments, visitor, isExpression) + ), + node + ); + } + if (node.expression.kind === 108 /* SuperKeyword */) { + const initializer = factory2.createLogicalOr( + resultingCall, + createActualThis() + ); + resultingCall = assignToCapturedThis ? factory2.createAssignment(createCapturedThis(), initializer) : initializer; + } + return setOriginalNode(resultingCall, node); + } + if (isSuperCall(node)) { + hierarchyFacts |= 131072 /* CapturedLexicalThis */; + } + return visitEachChild(node, visitor, context); + } + function visitNewExpression(node) { + if (some(node.arguments, isSpreadElement)) { + const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, "bind"), hoistVariableDeclaration); + return factory2.createNewExpression( + factory2.createFunctionApplyCall( + Debug.checkDefined(visitNode(target, visitor, isExpression)), + thisArg, + transformAndSpreadElements( + factory2.createNodeArray([factory2.createVoidZero(), ...node.arguments]), + /*isArgumentList*/ + true, + /*multiLine*/ + false, + /*hasTrailingComma*/ + false + ) + ), + /*typeArguments*/ + void 0, + [] + ); + } + return visitEachChild(node, visitor, context); + } + function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) { + const numElements = elements.length; + const segments = flatten( + // As we visit each element, we return one of two functions to use as the "key": + // - `visitSpanOfSpreads` for one or more contiguous `...` spread expressions, i.e. `...a, ...b` in `[1, 2, ...a, ...b]` + // - `visitSpanOfNonSpreads` for one or more contiguous non-spread elements, i.e. `1, 2`, in `[1, 2, ...a, ...b]` + spanMap(elements, partitionSpread, (partition, visitPartition, _start, end) => visitPartition(partition, multiLine, hasTrailingComma && end === numElements)) + ); + if (segments.length === 1) { + const firstSegment = segments[0]; + if (isArgumentList && !compilerOptions.downlevelIteration || isPackedArrayLiteral(firstSegment.expression) || isCallToHelper(firstSegment.expression, "___spreadArray")) { + return firstSegment.expression; + } + } + const helpers = emitHelpers(); + const startsWithSpread = segments[0].kind !== 0 /* None */; + let expression = startsWithSpread ? factory2.createArrayLiteralExpression() : segments[0].expression; + for (let i = startsWithSpread ? 0 : 1; i < segments.length; i++) { + const segment = segments[i]; + expression = helpers.createSpreadArrayHelper( + expression, + segment.expression, + segment.kind === 1 /* UnpackedSpread */ && !isArgumentList + ); + } + return expression; + } + function partitionSpread(node) { + return isSpreadElement(node) ? visitSpanOfSpreads : visitSpanOfNonSpreads; + } + function visitSpanOfSpreads(chunk) { + return map(chunk, visitExpressionOfSpread); + } + function visitExpressionOfSpread(node) { + Debug.assertNode(node, isSpreadElement); + let expression = visitNode(node.expression, visitor, isExpression); + Debug.assert(expression); + const isCallToReadHelper = isCallToHelper(expression, "___read"); + let kind = isCallToReadHelper || isPackedArrayLiteral(expression) ? 2 /* PackedSpread */ : 1 /* UnpackedSpread */; + if (compilerOptions.downlevelIteration && kind === 1 /* UnpackedSpread */ && !isArrayLiteralExpression(expression) && !isCallToReadHelper) { + expression = emitHelpers().createReadHelper( + expression, + /*count*/ + void 0 + ); + kind = 2 /* PackedSpread */; + } + return createSpreadSegment(kind, expression); + } + function visitSpanOfNonSpreads(chunk, multiLine, hasTrailingComma) { + const expression = factory2.createArrayLiteralExpression( + visitNodes2(factory2.createNodeArray(chunk, hasTrailingComma), visitor, isExpression), + multiLine + ); + return createSpreadSegment(0 /* None */, expression); + } + function visitSpreadElement(node) { + return visitNode(node.expression, visitor, isExpression); + } + function visitTemplateLiteral(node) { + return setTextRange(factory2.createStringLiteral(node.text), node); + } + function visitStringLiteral(node) { + if (node.hasExtendedUnicodeEscape) { + return setTextRange(factory2.createStringLiteral(node.text), node); + } + return node; + } + function visitNumericLiteral(node) { + if (node.numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */) { + return setTextRange(factory2.createNumericLiteral(node.text), node); + } + return node; + } + function visitTaggedTemplateExpression(node) { + return processTaggedTemplateExpression( + context, + node, + visitor, + currentSourceFile, + recordTaggedTemplateString, + 1 /* All */ + ); + } + function visitTemplateExpression(node) { + let expression = factory2.createStringLiteral(node.head.text); + for (const span of node.templateSpans) { + const args = [Debug.checkDefined(visitNode(span.expression, visitor, isExpression))]; + if (span.literal.text.length > 0) { + args.push(factory2.createStringLiteral(span.literal.text)); + } + expression = factory2.createCallExpression( + factory2.createPropertyAccessExpression(expression, "concat"), + /*typeArguments*/ + void 0, + args + ); + } + return setTextRange(expression, node); + } + function createSyntheticSuper() { + return factory2.createUniqueName("_super", 16 /* Optimistic */ | 32 /* FileLevel */); + } + function visitSuperKeyword(node, isExpressionOfCall) { + const expression = hierarchyFacts & 8 /* NonStaticClassElement */ && !isExpressionOfCall ? factory2.createPropertyAccessExpression(setOriginalNode(createSyntheticSuper(), node), "prototype") : createSyntheticSuper(); + setOriginalNode(expression, node); + setCommentRange(expression, node); + setSourceMapRange(expression, node); + return expression; + } + function visitMetaProperty(node) { + if (node.keywordToken === 105 /* NewKeyword */ && node.name.escapedText === "target") { + hierarchyFacts |= 32768 /* NewTarget */; + return factory2.createUniqueName("_newTarget", 16 /* Optimistic */ | 32 /* FileLevel */); + } + return node; + } + function onEmitNode(hint, node, emitCallback) { + if (enabledSubstitutions & 1 /* CapturedThis */ && isFunctionLike(node)) { + const ancestorFacts = enterSubtree( + 32670 /* FunctionExcludes */, + getEmitFlags(node) & 16 /* CapturesThis */ ? 65 /* FunctionIncludes */ | 16 /* CapturesThis */ : 65 /* FunctionIncludes */ + ); + previousOnEmitNode(hint, node, emitCallback); + exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */); + return; + } + previousOnEmitNode(hint, node, emitCallback); + } + function enableSubstitutionsForBlockScopedBindings() { + if ((enabledSubstitutions & 2 /* BlockScopedBindings */) === 0) { + enabledSubstitutions |= 2 /* BlockScopedBindings */; + context.enableSubstitution(80 /* Identifier */); + } + } + function enableSubstitutionsForCapturedThis() { + if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) { + enabledSubstitutions |= 1 /* CapturedThis */; + context.enableSubstitution(110 /* ThisKeyword */); + context.enableEmitNotification(176 /* Constructor */); + context.enableEmitNotification(174 /* MethodDeclaration */); + context.enableEmitNotification(177 /* GetAccessor */); + context.enableEmitNotification(178 /* SetAccessor */); + context.enableEmitNotification(219 /* ArrowFunction */); + context.enableEmitNotification(218 /* FunctionExpression */); + context.enableEmitNotification(262 /* FunctionDeclaration */); + } + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } + if (isIdentifier(node)) { + return substituteIdentifier(node); + } + return node; + } + function substituteIdentifier(node) { + if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !isInternalName(node)) { + const original = getParseTreeNode(node, isIdentifier); + if (original && isNameOfDeclarationWithCollidingName(original)) { + return setTextRange(factory2.getGeneratedNameForNode(original), node); + } + } + return node; + } + function isNameOfDeclarationWithCollidingName(node) { + switch (node.parent.kind) { + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + case 266 /* EnumDeclaration */: + case 260 /* VariableDeclaration */: + return node.parent.name === node && resolver.isDeclarationWithCollidingName(node.parent); + } + return false; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + case 110 /* ThisKeyword */: + return substituteThisKeyword(node); + } + return node; + } + function substituteExpressionIdentifier(node) { + if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !isInternalName(node)) { + const declaration = resolver.getReferencedDeclarationWithCollidingName(node); + if (declaration && !(isClassLike(declaration) && isPartOfClassBody(declaration, node))) { + return setTextRange(factory2.getGeneratedNameForNode(getNameOfDeclaration(declaration)), node); + } + } + return node; + } + function isPartOfClassBody(declaration, node) { + let currentNode = getParseTreeNode(node); + if (!currentNode || currentNode === declaration || currentNode.end <= declaration.pos || currentNode.pos >= declaration.end) { + return false; + } + const blockScope = getEnclosingBlockScopeContainer(declaration); + while (currentNode) { + if (currentNode === blockScope || currentNode === declaration) { + return false; + } + if (isClassElement(currentNode) && currentNode.parent === declaration) { + return true; + } + currentNode = currentNode.parent; + } + return false; + } + function substituteThisKeyword(node) { + if (enabledSubstitutions & 1 /* CapturedThis */ && hierarchyFacts & 16 /* CapturesThis */) { + return setTextRange(createCapturedThis(), node); + } + return node; + } + function getClassMemberPrefix(node, member) { + return isStatic(member) ? factory2.getInternalName(node) : factory2.createPropertyAccessExpression(factory2.getInternalName(node), "prototype"); + } + function hasSynthesizedDefaultSuperCall(constructor, hasExtendsClause) { + if (!constructor || !hasExtendsClause) { + return false; + } + if (some(constructor.parameters)) { + return false; + } + const statement = firstOrUndefined(constructor.body.statements); + if (!statement || !nodeIsSynthesized(statement) || statement.kind !== 244 /* ExpressionStatement */) { + return false; + } + const statementExpression = statement.expression; + if (!nodeIsSynthesized(statementExpression) || statementExpression.kind !== 213 /* CallExpression */) { + return false; + } + const callTarget = statementExpression.expression; + if (!nodeIsSynthesized(callTarget) || callTarget.kind !== 108 /* SuperKeyword */) { + return false; + } + const callArgument = singleOrUndefined(statementExpression.arguments); + if (!callArgument || !nodeIsSynthesized(callArgument) || callArgument.kind !== 230 /* SpreadElement */) { + return false; + } + const expression = callArgument.expression; + return isIdentifier(expression) && expression.escapedText === "arguments"; + } +} + +// src/compiler/transformers/generators.ts +function getInstructionName(instruction) { + switch (instruction) { + case 2 /* Return */: + return "return"; + case 3 /* Break */: + return "break"; + case 4 /* Yield */: + return "yield"; + case 5 /* YieldStar */: + return "yield*"; + case 7 /* Endfinally */: + return "endfinally"; + default: + return void 0; + } +} +function transformGenerators(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + resumeLexicalEnvironment, + endLexicalEnvironment, + hoistFunctionDeclaration, + hoistVariableDeclaration + } = context; + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const resolver = context.getEmitResolver(); + const previousOnSubstituteNode = context.onSubstituteNode; + context.onSubstituteNode = onSubstituteNode; + let renamedCatchVariables; + let renamedCatchVariableDeclarations; + let inGeneratorFunctionBody; + let inStatementContainingYield; + let blocks; + let blockOffsets; + let blockActions; + let blockStack; + let labelOffsets; + let labelExpressions; + let nextLabelId = 1; + let operations; + let operationArguments; + let operationLocations; + let state; + let blockIndex = 0; + let labelNumber = 0; + let labelNumbers; + let lastOperationWasAbrupt; + let lastOperationWasCompletion; + let clauses; + let statements; + let exceptionBlockStack; + let currentExceptionBlock; + let withBlockStack; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile || (node.transformFlags & 2048 /* ContainsGenerator */) === 0) { + return node; + } + const visited = visitEachChild(node, visitor, context); + addEmitHelpers(visited, context.readEmitHelpers()); + return visited; + } + function visitor(node) { + const transformFlags = node.transformFlags; + if (inStatementContainingYield) { + return visitJavaScriptInStatementContainingYield(node); + } else if (inGeneratorFunctionBody) { + return visitJavaScriptInGeneratorFunctionBody(node); + } else if (isFunctionLikeDeclaration(node) && node.asteriskToken) { + return visitGenerator(node); + } else if (transformFlags & 2048 /* ContainsGenerator */) { + return visitEachChild(node, visitor, context); + } else { + return node; + } + } + function visitJavaScriptInStatementContainingYield(node) { + switch (node.kind) { + case 246 /* DoStatement */: + return visitDoStatement(node); + case 247 /* WhileStatement */: + return visitWhileStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); + case 256 /* LabeledStatement */: + return visitLabeledStatement(node); + default: + return visitJavaScriptInGeneratorFunctionBody(node); + } + } + function visitJavaScriptInGeneratorFunctionBody(node) { + switch (node.kind) { + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 218 /* FunctionExpression */: + return visitFunctionExpression(node); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return visitAccessorDeclaration(node); + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 248 /* ForStatement */: + return visitForStatement(node); + case 249 /* ForInStatement */: + return visitForInStatement(node); + case 252 /* BreakStatement */: + return visitBreakStatement(node); + case 251 /* ContinueStatement */: + return visitContinueStatement(node); + case 253 /* ReturnStatement */: + return visitReturnStatement(node); + default: + if (node.transformFlags & 1048576 /* ContainsYield */) { + return visitJavaScriptContainingYield(node); + } else if (node.transformFlags & (2048 /* ContainsGenerator */ | 4194304 /* ContainsHoistedDeclarationOrCompletion */)) { + return visitEachChild(node, visitor, context); + } else { + return node; + } + } + } + function visitJavaScriptContainingYield(node) { + switch (node.kind) { + case 226 /* BinaryExpression */: + return visitBinaryExpression(node); + case 355 /* CommaListExpression */: + return visitCommaListExpression(node); + case 227 /* ConditionalExpression */: + return visitConditionalExpression(node); + case 229 /* YieldExpression */: + return visitYieldExpression(node); + case 209 /* ArrayLiteralExpression */: + return visitArrayLiteralExpression(node); + case 210 /* ObjectLiteralExpression */: + return visitObjectLiteralExpression(node); + case 212 /* ElementAccessExpression */: + return visitElementAccessExpression(node); + case 213 /* CallExpression */: + return visitCallExpression(node); + case 214 /* NewExpression */: + return visitNewExpression(node); + default: + return visitEachChild(node, visitor, context); + } + } + function visitGenerator(node) { + switch (node.kind) { + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 218 /* FunctionExpression */: + return visitFunctionExpression(node); + default: + return Debug.failBadSyntaxKind(node); + } + } + function visitFunctionDeclaration(node) { + if (node.asteriskToken) { + node = setOriginalNode( + setTextRange( + factory2.createFunctionDeclaration( + node.modifiers, + /*asteriskToken*/ + void 0, + node.name, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + transformGeneratorFunctionBody(node.body) + ), + /*location*/ + node + ), + node + ); + } else { + const savedInGeneratorFunctionBody = inGeneratorFunctionBody; + const savedInStatementContainingYield = inStatementContainingYield; + inGeneratorFunctionBody = false; + inStatementContainingYield = false; + node = visitEachChild(node, visitor, context); + inGeneratorFunctionBody = savedInGeneratorFunctionBody; + inStatementContainingYield = savedInStatementContainingYield; + } + if (inGeneratorFunctionBody) { + hoistFunctionDeclaration(node); + return void 0; + } else { + return node; + } + } + function visitFunctionExpression(node) { + if (node.asteriskToken) { + node = setOriginalNode( + setTextRange( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + node.name, + /*typeParameters*/ + void 0, + visitParameterList(node.parameters, visitor, context), + /*type*/ + void 0, + transformGeneratorFunctionBody(node.body) + ), + /*location*/ + node + ), + node + ); + } else { + const savedInGeneratorFunctionBody = inGeneratorFunctionBody; + const savedInStatementContainingYield = inStatementContainingYield; + inGeneratorFunctionBody = false; + inStatementContainingYield = false; + node = visitEachChild(node, visitor, context); + inGeneratorFunctionBody = savedInGeneratorFunctionBody; + inStatementContainingYield = savedInStatementContainingYield; + } + return node; + } + function visitAccessorDeclaration(node) { + const savedInGeneratorFunctionBody = inGeneratorFunctionBody; + const savedInStatementContainingYield = inStatementContainingYield; + inGeneratorFunctionBody = false; + inStatementContainingYield = false; + node = visitEachChild(node, visitor, context); + inGeneratorFunctionBody = savedInGeneratorFunctionBody; + inStatementContainingYield = savedInStatementContainingYield; + return node; + } + function transformGeneratorFunctionBody(body) { + const statements2 = []; + const savedInGeneratorFunctionBody = inGeneratorFunctionBody; + const savedInStatementContainingYield = inStatementContainingYield; + const savedBlocks = blocks; + const savedBlockOffsets = blockOffsets; + const savedBlockActions = blockActions; + const savedBlockStack = blockStack; + const savedLabelOffsets = labelOffsets; + const savedLabelExpressions = labelExpressions; + const savedNextLabelId = nextLabelId; + const savedOperations = operations; + const savedOperationArguments = operationArguments; + const savedOperationLocations = operationLocations; + const savedState = state; + inGeneratorFunctionBody = true; + inStatementContainingYield = false; + blocks = void 0; + blockOffsets = void 0; + blockActions = void 0; + blockStack = void 0; + labelOffsets = void 0; + labelExpressions = void 0; + nextLabelId = 1; + operations = void 0; + operationArguments = void 0; + operationLocations = void 0; + state = factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + resumeLexicalEnvironment(); + const statementOffset = factory2.copyPrologue( + body.statements, + statements2, + /*ensureUseStrict*/ + false, + visitor + ); + transformAndEmitStatements(body.statements, statementOffset); + const buildResult = build2(); + insertStatementsAfterStandardPrologue(statements2, endLexicalEnvironment()); + statements2.push(factory2.createReturnStatement(buildResult)); + inGeneratorFunctionBody = savedInGeneratorFunctionBody; + inStatementContainingYield = savedInStatementContainingYield; + blocks = savedBlocks; + blockOffsets = savedBlockOffsets; + blockActions = savedBlockActions; + blockStack = savedBlockStack; + labelOffsets = savedLabelOffsets; + labelExpressions = savedLabelExpressions; + nextLabelId = savedNextLabelId; + operations = savedOperations; + operationArguments = savedOperationArguments; + operationLocations = savedOperationLocations; + state = savedState; + return setTextRange(factory2.createBlock(statements2, body.multiLine), body); + } + function visitVariableStatement(node) { + if (node.transformFlags & 1048576 /* ContainsYield */) { + transformAndEmitVariableDeclarationList(node.declarationList); + return void 0; + } else { + if (getEmitFlags(node) & 2097152 /* CustomPrologue */) { + return node; + } + for (const variable of node.declarationList.declarations) { + hoistVariableDeclaration(variable.name); + } + const variables = getInitializedVariables(node.declarationList); + if (variables.length === 0) { + return void 0; + } + return setSourceMapRange( + factory2.createExpressionStatement( + factory2.inlineExpressions( + map(variables, transformInitializedVariable) + ) + ), + node + ); + } + } + function visitBinaryExpression(node) { + const assoc = getExpressionAssociativity(node); + switch (assoc) { + case 0 /* Left */: + return visitLeftAssociativeBinaryExpression(node); + case 1 /* Right */: + return visitRightAssociativeBinaryExpression(node); + default: + return Debug.assertNever(assoc); + } + } + function visitRightAssociativeBinaryExpression(node) { + const { left, right } = node; + if (containsYield(right)) { + let target; + switch (left.kind) { + case 211 /* PropertyAccessExpression */: + target = factory2.updatePropertyAccessExpression( + left, + cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), + left.name + ); + break; + case 212 /* ElementAccessExpression */: + target = factory2.updateElementAccessExpression(left, cacheExpression(Debug.checkDefined(visitNode(left.expression, visitor, isLeftHandSideExpression))), cacheExpression(Debug.checkDefined(visitNode(left.argumentExpression, visitor, isExpression)))); + break; + default: + target = Debug.checkDefined(visitNode(left, visitor, isExpression)); + break; + } + const operator = node.operatorToken.kind; + if (isCompoundAssignment(operator)) { + return setTextRange( + factory2.createAssignment( + target, + setTextRange( + factory2.createBinaryExpression( + cacheExpression(target), + getNonAssignmentOperatorForCompoundAssignment(operator), + Debug.checkDefined(visitNode(right, visitor, isExpression)) + ), + node + ) + ), + node + ); + } else { + return factory2.updateBinaryExpression(node, target, node.operatorToken, Debug.checkDefined(visitNode(right, visitor, isExpression))); + } + } + return visitEachChild(node, visitor, context); + } + function visitLeftAssociativeBinaryExpression(node) { + if (containsYield(node.right)) { + if (isLogicalOperator(node.operatorToken.kind)) { + return visitLogicalBinaryExpression(node); + } else if (node.operatorToken.kind === 28 /* CommaToken */) { + return visitCommaExpression(node); + } + return factory2.updateBinaryExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.left, visitor, isExpression))), node.operatorToken, Debug.checkDefined(visitNode(node.right, visitor, isExpression))); + } + return visitEachChild(node, visitor, context); + } + function visitCommaExpression(node) { + let pendingExpressions = []; + visit(node.left); + visit(node.right); + return factory2.inlineExpressions(pendingExpressions); + function visit(node2) { + if (isBinaryExpression(node2) && node2.operatorToken.kind === 28 /* CommaToken */) { + visit(node2.left); + visit(node2.right); + } else { + if (containsYield(node2) && pendingExpressions.length > 0) { + emitWorker(1 /* Statement */, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]); + pendingExpressions = []; + } + pendingExpressions.push(Debug.checkDefined(visitNode(node2, visitor, isExpression))); + } + } + } + function visitCommaListExpression(node) { + let pendingExpressions = []; + for (const elem of node.elements) { + if (isBinaryExpression(elem) && elem.operatorToken.kind === 28 /* CommaToken */) { + pendingExpressions.push(visitCommaExpression(elem)); + } else { + if (containsYield(elem) && pendingExpressions.length > 0) { + emitWorker(1 /* Statement */, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]); + pendingExpressions = []; + } + pendingExpressions.push(Debug.checkDefined(visitNode(elem, visitor, isExpression))); + } + } + return factory2.inlineExpressions(pendingExpressions); + } + function visitLogicalBinaryExpression(node) { + const resultLabel = defineLabel(); + const resultLocal = declareLocal(); + emitAssignment( + resultLocal, + Debug.checkDefined(visitNode(node.left, visitor, isExpression)), + /*location*/ + node.left + ); + if (node.operatorToken.kind === 56 /* AmpersandAmpersandToken */) { + emitBreakWhenFalse( + resultLabel, + resultLocal, + /*location*/ + node.left + ); + } else { + emitBreakWhenTrue( + resultLabel, + resultLocal, + /*location*/ + node.left + ); + } + emitAssignment( + resultLocal, + Debug.checkDefined(visitNode(node.right, visitor, isExpression)), + /*location*/ + node.right + ); + markLabel(resultLabel); + return resultLocal; + } + function visitConditionalExpression(node) { + if (containsYield(node.whenTrue) || containsYield(node.whenFalse)) { + const whenFalseLabel = defineLabel(); + const resultLabel = defineLabel(); + const resultLocal = declareLocal(); + emitBreakWhenFalse( + whenFalseLabel, + Debug.checkDefined(visitNode(node.condition, visitor, isExpression)), + /*location*/ + node.condition + ); + emitAssignment( + resultLocal, + Debug.checkDefined(visitNode(node.whenTrue, visitor, isExpression)), + /*location*/ + node.whenTrue + ); + emitBreak(resultLabel); + markLabel(whenFalseLabel); + emitAssignment( + resultLocal, + Debug.checkDefined(visitNode(node.whenFalse, visitor, isExpression)), + /*location*/ + node.whenFalse + ); + markLabel(resultLabel); + return resultLocal; + } + return visitEachChild(node, visitor, context); + } + function visitYieldExpression(node) { + const resumeLabel = defineLabel(); + const expression = visitNode(node.expression, visitor, isExpression); + if (node.asteriskToken) { + const iterator = (getEmitFlags(node.expression) & 8388608 /* Iterator */) === 0 ? setTextRange(emitHelpers().createValuesHelper(expression), node) : expression; + emitYieldStar( + iterator, + /*location*/ + node + ); + } else { + emitYield( + expression, + /*location*/ + node + ); + } + markLabel(resumeLabel); + return createGeneratorResume( + /*location*/ + node + ); + } + function visitArrayLiteralExpression(node) { + return visitElements( + node.elements, + /*leadingElement*/ + void 0, + /*location*/ + void 0, + node.multiLine + ); + } + function visitElements(elements, leadingElement, location, multiLine) { + const numInitialElements = countInitialNodesWithoutYield(elements); + let temp; + if (numInitialElements > 0) { + temp = declareLocal(); + const initialElements = visitNodes2(elements, visitor, isExpression, 0, numInitialElements); + emitAssignment( + temp, + factory2.createArrayLiteralExpression( + leadingElement ? [leadingElement, ...initialElements] : initialElements + ) + ); + leadingElement = void 0; + } + const expressions = reduceLeft(elements, reduceElement, [], numInitialElements); + return temp ? factory2.createArrayConcatCall(temp, [factory2.createArrayLiteralExpression(expressions, multiLine)]) : setTextRange( + factory2.createArrayLiteralExpression(leadingElement ? [leadingElement, ...expressions] : expressions, multiLine), + location + ); + function reduceElement(expressions2, element) { + if (containsYield(element) && expressions2.length > 0) { + const hasAssignedTemp = temp !== void 0; + if (!temp) { + temp = declareLocal(); + } + emitAssignment( + temp, + hasAssignedTemp ? factory2.createArrayConcatCall( + temp, + [factory2.createArrayLiteralExpression(expressions2, multiLine)] + ) : factory2.createArrayLiteralExpression( + leadingElement ? [leadingElement, ...expressions2] : expressions2, + multiLine + ) + ); + leadingElement = void 0; + expressions2 = []; + } + expressions2.push(Debug.checkDefined(visitNode(element, visitor, isExpression))); + return expressions2; + } + } + function visitObjectLiteralExpression(node) { + const properties = node.properties; + const multiLine = node.multiLine; + const numInitialProperties = countInitialNodesWithoutYield(properties); + const temp = declareLocal(); + emitAssignment( + temp, + factory2.createObjectLiteralExpression( + visitNodes2(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties), + multiLine + ) + ); + const expressions = reduceLeft(properties, reduceProperty, [], numInitialProperties); + expressions.push(multiLine ? startOnNewLine(setParent(setTextRange(factory2.cloneNode(temp), temp), temp.parent)) : temp); + return factory2.inlineExpressions(expressions); + function reduceProperty(expressions2, property) { + if (containsYield(property) && expressions2.length > 0) { + emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(expressions2))); + expressions2 = []; + } + const expression = createExpressionForObjectLiteralElementLike(factory2, node, property, temp); + const visited = visitNode(expression, visitor, isExpression); + if (visited) { + if (multiLine) { + startOnNewLine(visited); + } + expressions2.push(visited); + } + return expressions2; + } + } + function visitElementAccessExpression(node) { + if (containsYield(node.argumentExpression)) { + return factory2.updateElementAccessExpression(node, cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isLeftHandSideExpression))), Debug.checkDefined(visitNode(node.argumentExpression, visitor, isExpression))); + } + return visitEachChild(node, visitor, context); + } + function visitCallExpression(node) { + if (!isImportCall(node) && forEach(node.arguments, containsYield)) { + const { target, thisArg } = factory2.createCallBinding( + node.expression, + hoistVariableDeclaration, + languageVersion, + /*cacheIdentifiers*/ + true + ); + return setOriginalNode( + setTextRange( + factory2.createFunctionApplyCall( + cacheExpression(Debug.checkDefined(visitNode(target, visitor, isLeftHandSideExpression))), + thisArg, + visitElements(node.arguments) + ), + node + ), + node + ); + } + return visitEachChild(node, visitor, context); + } + function visitNewExpression(node) { + if (forEach(node.arguments, containsYield)) { + const { target, thisArg } = factory2.createCallBinding(factory2.createPropertyAccessExpression(node.expression, "bind"), hoistVariableDeclaration); + return setOriginalNode( + setTextRange( + factory2.createNewExpression( + factory2.createFunctionApplyCall( + cacheExpression(Debug.checkDefined(visitNode(target, visitor, isExpression))), + thisArg, + visitElements( + node.arguments, + /*leadingElement*/ + factory2.createVoidZero() + ) + ), + /*typeArguments*/ + void 0, + [] + ), + node + ), + node + ); + } + return visitEachChild(node, visitor, context); + } + function transformAndEmitStatements(statements2, start = 0) { + const numStatements = statements2.length; + for (let i = start; i < numStatements; i++) { + transformAndEmitStatement(statements2[i]); + } + } + function transformAndEmitEmbeddedStatement(node) { + if (isBlock(node)) { + transformAndEmitStatements(node.statements); + } else { + transformAndEmitStatement(node); + } + } + function transformAndEmitStatement(node) { + const savedInStatementContainingYield = inStatementContainingYield; + if (!inStatementContainingYield) { + inStatementContainingYield = containsYield(node); + } + transformAndEmitStatementWorker(node); + inStatementContainingYield = savedInStatementContainingYield; + } + function transformAndEmitStatementWorker(node) { + switch (node.kind) { + case 241 /* Block */: + return transformAndEmitBlock(node); + case 244 /* ExpressionStatement */: + return transformAndEmitExpressionStatement(node); + case 245 /* IfStatement */: + return transformAndEmitIfStatement(node); + case 246 /* DoStatement */: + return transformAndEmitDoStatement(node); + case 247 /* WhileStatement */: + return transformAndEmitWhileStatement(node); + case 248 /* ForStatement */: + return transformAndEmitForStatement(node); + case 249 /* ForInStatement */: + return transformAndEmitForInStatement(node); + case 251 /* ContinueStatement */: + return transformAndEmitContinueStatement(node); + case 252 /* BreakStatement */: + return transformAndEmitBreakStatement(node); + case 253 /* ReturnStatement */: + return transformAndEmitReturnStatement(node); + case 254 /* WithStatement */: + return transformAndEmitWithStatement(node); + case 255 /* SwitchStatement */: + return transformAndEmitSwitchStatement(node); + case 256 /* LabeledStatement */: + return transformAndEmitLabeledStatement(node); + case 257 /* ThrowStatement */: + return transformAndEmitThrowStatement(node); + case 258 /* TryStatement */: + return transformAndEmitTryStatement(node); + default: + return emitStatement(visitNode(node, visitor, isStatement)); + } + } + function transformAndEmitBlock(node) { + if (containsYield(node)) { + transformAndEmitStatements(node.statements); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function transformAndEmitExpressionStatement(node) { + emitStatement(visitNode(node, visitor, isStatement)); + } + function transformAndEmitVariableDeclarationList(node) { + for (const variable of node.declarations) { + const name = factory2.cloneNode(variable.name); + setCommentRange(name, variable.name); + hoistVariableDeclaration(name); + } + const variables = getInitializedVariables(node); + const numVariables = variables.length; + let variablesWritten = 0; + let pendingExpressions = []; + while (variablesWritten < numVariables) { + for (let i = variablesWritten; i < numVariables; i++) { + const variable = variables[i]; + if (containsYield(variable.initializer) && pendingExpressions.length > 0) { + break; + } + pendingExpressions.push(transformInitializedVariable(variable)); + } + if (pendingExpressions.length) { + emitStatement(factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))); + variablesWritten += pendingExpressions.length; + pendingExpressions = []; + } + } + return void 0; + } + function transformInitializedVariable(node) { + return setSourceMapRange( + factory2.createAssignment( + setSourceMapRange(factory2.cloneNode(node.name), node.name), + Debug.checkDefined(visitNode(node.initializer, visitor, isExpression)) + ), + node + ); + } + function transformAndEmitIfStatement(node) { + if (containsYield(node)) { + if (containsYield(node.thenStatement) || containsYield(node.elseStatement)) { + const endLabel = defineLabel(); + const elseLabel = node.elseStatement ? defineLabel() : void 0; + emitBreakWhenFalse( + node.elseStatement ? elseLabel : endLabel, + Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), + /*location*/ + node.expression + ); + transformAndEmitEmbeddedStatement(node.thenStatement); + if (node.elseStatement) { + emitBreak(endLabel); + markLabel(elseLabel); + transformAndEmitEmbeddedStatement(node.elseStatement); + } + markLabel(endLabel); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function transformAndEmitDoStatement(node) { + if (containsYield(node)) { + const conditionLabel = defineLabel(); + const loopLabel = defineLabel(); + beginLoopBlock( + /*continueLabel*/ + conditionLabel + ); + markLabel(loopLabel); + transformAndEmitEmbeddedStatement(node.statement); + markLabel(conditionLabel); + emitBreakWhenTrue(loopLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); + endLoopBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitDoStatement(node) { + if (inStatementContainingYield) { + beginScriptLoopBlock(); + node = visitEachChild(node, visitor, context); + endLoopBlock(); + return node; + } else { + return visitEachChild(node, visitor, context); + } + } + function transformAndEmitWhileStatement(node) { + if (containsYield(node)) { + const loopLabel = defineLabel(); + const endLabel = beginLoopBlock(loopLabel); + markLabel(loopLabel); + emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); + transformAndEmitEmbeddedStatement(node.statement); + emitBreak(loopLabel); + endLoopBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitWhileStatement(node) { + if (inStatementContainingYield) { + beginScriptLoopBlock(); + node = visitEachChild(node, visitor, context); + endLoopBlock(); + return node; + } else { + return visitEachChild(node, visitor, context); + } + } + function transformAndEmitForStatement(node) { + if (containsYield(node)) { + const conditionLabel = defineLabel(); + const incrementLabel = defineLabel(); + const endLabel = beginLoopBlock(incrementLabel); + if (node.initializer) { + const initializer = node.initializer; + if (isVariableDeclarationList(initializer)) { + transformAndEmitVariableDeclarationList(initializer); + } else { + emitStatement( + setTextRange( + factory2.createExpressionStatement( + Debug.checkDefined(visitNode(initializer, visitor, isExpression)) + ), + initializer + ) + ); + } + } + markLabel(conditionLabel); + if (node.condition) { + emitBreakWhenFalse(endLabel, Debug.checkDefined(visitNode(node.condition, visitor, isExpression))); + } + transformAndEmitEmbeddedStatement(node.statement); + markLabel(incrementLabel); + if (node.incrementor) { + emitStatement( + setTextRange( + factory2.createExpressionStatement( + Debug.checkDefined(visitNode(node.incrementor, visitor, isExpression)) + ), + node.incrementor + ) + ); + } + emitBreak(conditionLabel); + endLoopBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitForStatement(node) { + if (inStatementContainingYield) { + beginScriptLoopBlock(); + } + const initializer = node.initializer; + if (initializer && isVariableDeclarationList(initializer)) { + for (const variable of initializer.declarations) { + hoistVariableDeclaration(variable.name); + } + const variables = getInitializedVariables(initializer); + node = factory2.updateForStatement( + node, + variables.length > 0 ? factory2.inlineExpressions(map(variables, transformInitializedVariable)) : void 0, + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, visitor, isExpression), + visitIterationBody(node.statement, visitor, context) + ); + } else { + node = visitEachChild(node, visitor, context); + } + if (inStatementContainingYield) { + endLoopBlock(); + } + return node; + } + function transformAndEmitForInStatement(node) { + if (containsYield(node)) { + const obj = declareLocal(); + const keysArray = declareLocal(); + const key = declareLocal(); + const keysIndex = factory2.createLoopVariable(); + const initializer = node.initializer; + hoistVariableDeclaration(keysIndex); + emitAssignment(obj, Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); + emitAssignment(keysArray, factory2.createArrayLiteralExpression()); + emitStatement( + factory2.createForInStatement( + key, + obj, + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(keysArray, "push"), + /*typeArguments*/ + void 0, + [key] + ) + ) + ) + ); + emitAssignment(keysIndex, factory2.createNumericLiteral(0)); + const conditionLabel = defineLabel(); + const incrementLabel = defineLabel(); + const endLoopLabel = beginLoopBlock(incrementLabel); + markLabel(conditionLabel); + emitBreakWhenFalse(endLoopLabel, factory2.createLessThan(keysIndex, factory2.createPropertyAccessExpression(keysArray, "length"))); + emitAssignment(key, factory2.createElementAccessExpression(keysArray, keysIndex)); + emitBreakWhenFalse(incrementLabel, factory2.createBinaryExpression(key, 103 /* InKeyword */, obj)); + let variable; + if (isVariableDeclarationList(initializer)) { + for (const variable2 of initializer.declarations) { + hoistVariableDeclaration(variable2.name); + } + variable = factory2.cloneNode(initializer.declarations[0].name); + } else { + variable = Debug.checkDefined(visitNode(initializer, visitor, isExpression)); + Debug.assert(isLeftHandSideExpression(variable)); + } + emitAssignment(variable, key); + transformAndEmitEmbeddedStatement(node.statement); + markLabel(incrementLabel); + emitStatement(factory2.createExpressionStatement(factory2.createPostfixIncrement(keysIndex))); + emitBreak(conditionLabel); + endLoopBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitForInStatement(node) { + if (inStatementContainingYield) { + beginScriptLoopBlock(); + } + const initializer = node.initializer; + if (isVariableDeclarationList(initializer)) { + for (const variable of initializer.declarations) { + hoistVariableDeclaration(variable.name); + } + node = factory2.updateForInStatement(node, initializer.declarations[0].name, Debug.checkDefined(visitNode(node.expression, visitor, isExpression)), Debug.checkDefined(visitNode(node.statement, visitor, isStatement, factory2.liftToBlock))); + } else { + node = visitEachChild(node, visitor, context); + } + if (inStatementContainingYield) { + endLoopBlock(); + } + return node; + } + function transformAndEmitContinueStatement(node) { + const label = findContinueTarget(node.label ? idText(node.label) : void 0); + if (label > 0) { + emitBreak( + label, + /*location*/ + node + ); + } else { + emitStatement(node); + } + } + function visitContinueStatement(node) { + if (inStatementContainingYield) { + const label = findContinueTarget(node.label && idText(node.label)); + if (label > 0) { + return createInlineBreak( + label, + /*location*/ + node + ); + } + } + return visitEachChild(node, visitor, context); + } + function transformAndEmitBreakStatement(node) { + const label = findBreakTarget(node.label ? idText(node.label) : void 0); + if (label > 0) { + emitBreak( + label, + /*location*/ + node + ); + } else { + emitStatement(node); + } + } + function visitBreakStatement(node) { + if (inStatementContainingYield) { + const label = findBreakTarget(node.label && idText(node.label)); + if (label > 0) { + return createInlineBreak( + label, + /*location*/ + node + ); + } + } + return visitEachChild(node, visitor, context); + } + function transformAndEmitReturnStatement(node) { + emitReturn( + visitNode(node.expression, visitor, isExpression), + /*location*/ + node + ); + } + function visitReturnStatement(node) { + return createInlineReturn( + visitNode(node.expression, visitor, isExpression), + /*location*/ + node + ); + } + function transformAndEmitWithStatement(node) { + if (containsYield(node)) { + beginWithBlock(cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression)))); + transformAndEmitEmbeddedStatement(node.statement); + endWithBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function transformAndEmitSwitchStatement(node) { + if (containsYield(node.caseBlock)) { + const caseBlock = node.caseBlock; + const numClauses = caseBlock.clauses.length; + const endLabel = beginSwitchBlock(); + const expression = cacheExpression(Debug.checkDefined(visitNode(node.expression, visitor, isExpression))); + const clauseLabels = []; + let defaultClauseIndex = -1; + for (let i = 0; i < numClauses; i++) { + const clause = caseBlock.clauses[i]; + clauseLabels.push(defineLabel()); + if (clause.kind === 297 /* DefaultClause */ && defaultClauseIndex === -1) { + defaultClauseIndex = i; + } + } + let clausesWritten = 0; + let pendingClauses = []; + while (clausesWritten < numClauses) { + let defaultClausesSkipped = 0; + for (let i = clausesWritten; i < numClauses; i++) { + const clause = caseBlock.clauses[i]; + if (clause.kind === 296 /* CaseClause */) { + if (containsYield(clause.expression) && pendingClauses.length > 0) { + break; + } + pendingClauses.push( + factory2.createCaseClause( + Debug.checkDefined(visitNode(clause.expression, visitor, isExpression)), + [ + createInlineBreak( + clauseLabels[i], + /*location*/ + clause.expression + ) + ] + ) + ); + } else { + defaultClausesSkipped++; + } + } + if (pendingClauses.length) { + emitStatement(factory2.createSwitchStatement(expression, factory2.createCaseBlock(pendingClauses))); + clausesWritten += pendingClauses.length; + pendingClauses = []; + } + if (defaultClausesSkipped > 0) { + clausesWritten += defaultClausesSkipped; + defaultClausesSkipped = 0; + } + } + if (defaultClauseIndex >= 0) { + emitBreak(clauseLabels[defaultClauseIndex]); + } else { + emitBreak(endLabel); + } + for (let i = 0; i < numClauses; i++) { + markLabel(clauseLabels[i]); + transformAndEmitStatements(caseBlock.clauses[i].statements); + } + endSwitchBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitSwitchStatement(node) { + if (inStatementContainingYield) { + beginScriptSwitchBlock(); + } + node = visitEachChild(node, visitor, context); + if (inStatementContainingYield) { + endSwitchBlock(); + } + return node; + } + function transformAndEmitLabeledStatement(node) { + if (containsYield(node)) { + beginLabeledBlock(idText(node.label)); + transformAndEmitEmbeddedStatement(node.statement); + endLabeledBlock(); + } else { + emitStatement(visitNode(node, visitor, isStatement)); + } + } + function visitLabeledStatement(node) { + if (inStatementContainingYield) { + beginScriptLabeledBlock(idText(node.label)); + } + node = visitEachChild(node, visitor, context); + if (inStatementContainingYield) { + endLabeledBlock(); + } + return node; + } + function transformAndEmitThrowStatement(node) { + emitThrow( + Debug.checkDefined(visitNode(node.expression ?? factory2.createVoidZero(), visitor, isExpression)), + /*location*/ + node + ); + } + function transformAndEmitTryStatement(node) { + if (containsYield(node)) { + beginExceptionBlock(); + transformAndEmitEmbeddedStatement(node.tryBlock); + if (node.catchClause) { + beginCatchBlock(node.catchClause.variableDeclaration); + transformAndEmitEmbeddedStatement(node.catchClause.block); + } + if (node.finallyBlock) { + beginFinallyBlock(); + transformAndEmitEmbeddedStatement(node.finallyBlock); + } + endExceptionBlock(); + } else { + emitStatement(visitEachChild(node, visitor, context)); + } + } + function containsYield(node) { + return !!node && (node.transformFlags & 1048576 /* ContainsYield */) !== 0; + } + function countInitialNodesWithoutYield(nodes) { + const numNodes = nodes.length; + for (let i = 0; i < numNodes; i++) { + if (containsYield(nodes[i])) { + return i; + } + } + return -1; + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } + return node; + } + function substituteExpression(node) { + if (isIdentifier(node)) { + return substituteExpressionIdentifier(node); + } + return node; + } + function substituteExpressionIdentifier(node) { + if (!isGeneratedIdentifier(node) && renamedCatchVariables && renamedCatchVariables.has(idText(node))) { + const original = getOriginalNode(node); + if (isIdentifier(original) && original.parent) { + const declaration = resolver.getReferencedValueDeclaration(original); + if (declaration) { + const name = renamedCatchVariableDeclarations[getOriginalNodeId(declaration)]; + if (name) { + const clone = setParent(setTextRange(factory2.cloneNode(name), name), name.parent); + setSourceMapRange(clone, node); + setCommentRange(clone, node); + return clone; + } + } + } + } + return node; + } + function cacheExpression(node) { + if (isGeneratedIdentifier(node) || getEmitFlags(node) & 8192 /* HelperName */) { + return node; + } + const temp = factory2.createTempVariable(hoistVariableDeclaration); + emitAssignment( + temp, + node, + /*location*/ + node + ); + return temp; + } + function declareLocal(name) { + const temp = name ? factory2.createUniqueName(name) : factory2.createTempVariable( + /*recordTempVariable*/ + void 0 + ); + hoistVariableDeclaration(temp); + return temp; + } + function defineLabel() { + if (!labelOffsets) { + labelOffsets = []; + } + const label = nextLabelId; + nextLabelId++; + labelOffsets[label] = -1; + return label; + } + function markLabel(label) { + Debug.assert(labelOffsets !== void 0, "No labels were defined."); + labelOffsets[label] = operations ? operations.length : 0; + } + function beginBlock(block) { + if (!blocks) { + blocks = []; + blockActions = []; + blockOffsets = []; + blockStack = []; + } + const index = blockActions.length; + blockActions[index] = 0 /* Open */; + blockOffsets[index] = operations ? operations.length : 0; + blocks[index] = block; + blockStack.push(block); + return index; + } + function endBlock() { + const block = peekBlock(); + if (block === void 0) return Debug.fail("beginBlock was never called."); + const index = blockActions.length; + blockActions[index] = 1 /* Close */; + blockOffsets[index] = operations ? operations.length : 0; + blocks[index] = block; + blockStack.pop(); + return block; + } + function peekBlock() { + return lastOrUndefined(blockStack); + } + function peekBlockKind() { + const block = peekBlock(); + return block && block.kind; + } + function beginWithBlock(expression) { + const startLabel = defineLabel(); + const endLabel = defineLabel(); + markLabel(startLabel); + beginBlock({ + kind: 1 /* With */, + expression, + startLabel, + endLabel + }); + } + function endWithBlock() { + Debug.assert(peekBlockKind() === 1 /* With */); + const block = endBlock(); + markLabel(block.endLabel); + } + function beginExceptionBlock() { + const startLabel = defineLabel(); + const endLabel = defineLabel(); + markLabel(startLabel); + beginBlock({ + kind: 0 /* Exception */, + state: 0 /* Try */, + startLabel, + endLabel + }); + emitNop(); + return endLabel; + } + function beginCatchBlock(variable) { + Debug.assert(peekBlockKind() === 0 /* Exception */); + let name; + if (isGeneratedIdentifier(variable.name)) { + name = variable.name; + hoistVariableDeclaration(variable.name); + } else { + const text = idText(variable.name); + name = declareLocal(text); + if (!renamedCatchVariables) { + renamedCatchVariables = /* @__PURE__ */ new Map(); + renamedCatchVariableDeclarations = []; + context.enableSubstitution(80 /* Identifier */); + } + renamedCatchVariables.set(text, true); + renamedCatchVariableDeclarations[getOriginalNodeId(variable)] = name; + } + const exception = peekBlock(); + Debug.assert(exception.state < 1 /* Catch */); + const endLabel = exception.endLabel; + emitBreak(endLabel); + const catchLabel = defineLabel(); + markLabel(catchLabel); + exception.state = 1 /* Catch */; + exception.catchVariable = name; + exception.catchLabel = catchLabel; + emitAssignment(name, factory2.createCallExpression( + factory2.createPropertyAccessExpression(state, "sent"), + /*typeArguments*/ + void 0, + [] + )); + emitNop(); + } + function beginFinallyBlock() { + Debug.assert(peekBlockKind() === 0 /* Exception */); + const exception = peekBlock(); + Debug.assert(exception.state < 2 /* Finally */); + const endLabel = exception.endLabel; + emitBreak(endLabel); + const finallyLabel = defineLabel(); + markLabel(finallyLabel); + exception.state = 2 /* Finally */; + exception.finallyLabel = finallyLabel; + } + function endExceptionBlock() { + Debug.assert(peekBlockKind() === 0 /* Exception */); + const exception = endBlock(); + const state2 = exception.state; + if (state2 < 2 /* Finally */) { + emitBreak(exception.endLabel); + } else { + emitEndfinally(); + } + markLabel(exception.endLabel); + emitNop(); + exception.state = 3 /* Done */; + } + function beginScriptLoopBlock() { + beginBlock({ + kind: 3 /* Loop */, + isScript: true, + breakLabel: -1, + continueLabel: -1 + }); + } + function beginLoopBlock(continueLabel) { + const breakLabel = defineLabel(); + beginBlock({ + kind: 3 /* Loop */, + isScript: false, + breakLabel, + continueLabel + }); + return breakLabel; + } + function endLoopBlock() { + Debug.assert(peekBlockKind() === 3 /* Loop */); + const block = endBlock(); + const breakLabel = block.breakLabel; + if (!block.isScript) { + markLabel(breakLabel); + } + } + function beginScriptSwitchBlock() { + beginBlock({ + kind: 2 /* Switch */, + isScript: true, + breakLabel: -1 + }); + } + function beginSwitchBlock() { + const breakLabel = defineLabel(); + beginBlock({ + kind: 2 /* Switch */, + isScript: false, + breakLabel + }); + return breakLabel; + } + function endSwitchBlock() { + Debug.assert(peekBlockKind() === 2 /* Switch */); + const block = endBlock(); + const breakLabel = block.breakLabel; + if (!block.isScript) { + markLabel(breakLabel); + } + } + function beginScriptLabeledBlock(labelText) { + beginBlock({ + kind: 4 /* Labeled */, + isScript: true, + labelText, + breakLabel: -1 + }); + } + function beginLabeledBlock(labelText) { + const breakLabel = defineLabel(); + beginBlock({ + kind: 4 /* Labeled */, + isScript: false, + labelText, + breakLabel + }); + } + function endLabeledBlock() { + Debug.assert(peekBlockKind() === 4 /* Labeled */); + const block = endBlock(); + if (!block.isScript) { + markLabel(block.breakLabel); + } + } + function supportsUnlabeledBreak(block) { + return block.kind === 2 /* Switch */ || block.kind === 3 /* Loop */; + } + function supportsLabeledBreakOrContinue(block) { + return block.kind === 4 /* Labeled */; + } + function supportsUnlabeledContinue(block) { + return block.kind === 3 /* Loop */; + } + function hasImmediateContainingLabeledBlock(labelText, start) { + for (let j = start; j >= 0; j--) { + const containingBlock = blockStack[j]; + if (supportsLabeledBreakOrContinue(containingBlock)) { + if (containingBlock.labelText === labelText) { + return true; + } + } else { + break; + } + } + return false; + } + function findBreakTarget(labelText) { + if (blockStack) { + if (labelText) { + for (let i = blockStack.length - 1; i >= 0; i--) { + const block = blockStack[i]; + if (supportsLabeledBreakOrContinue(block) && block.labelText === labelText) { + return block.breakLabel; + } else if (supportsUnlabeledBreak(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) { + return block.breakLabel; + } + } + } else { + for (let i = blockStack.length - 1; i >= 0; i--) { + const block = blockStack[i]; + if (supportsUnlabeledBreak(block)) { + return block.breakLabel; + } + } + } + } + return 0; + } + function findContinueTarget(labelText) { + if (blockStack) { + if (labelText) { + for (let i = blockStack.length - 1; i >= 0; i--) { + const block = blockStack[i]; + if (supportsUnlabeledContinue(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) { + return block.continueLabel; + } + } + } else { + for (let i = blockStack.length - 1; i >= 0; i--) { + const block = blockStack[i]; + if (supportsUnlabeledContinue(block)) { + return block.continueLabel; + } + } + } + } + return 0; + } + function createLabel(label) { + if (label !== void 0 && label > 0) { + if (labelExpressions === void 0) { + labelExpressions = []; + } + const expression = factory2.createNumericLiteral(Number.MAX_SAFE_INTEGER); + if (labelExpressions[label] === void 0) { + labelExpressions[label] = [expression]; + } else { + labelExpressions[label].push(expression); + } + return expression; + } + return factory2.createOmittedExpression(); + } + function createInstruction(instruction) { + const literal = factory2.createNumericLiteral(instruction); + addSyntheticTrailingComment(literal, 3 /* MultiLineCommentTrivia */, getInstructionName(instruction)); + return literal; + } + function createInlineBreak(label, location) { + Debug.assertLessThan(0, label, "Invalid label"); + return setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(3 /* Break */), + createLabel(label) + ]) + ), + location + ); + } + function createInlineReturn(expression, location) { + return setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression( + expression ? [createInstruction(2 /* Return */), expression] : [createInstruction(2 /* Return */)] + ) + ), + location + ); + } + function createGeneratorResume(location) { + return setTextRange( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(state, "sent"), + /*typeArguments*/ + void 0, + [] + ), + location + ); + } + function emitNop() { + emitWorker(0 /* Nop */); + } + function emitStatement(node) { + if (node) { + emitWorker(1 /* Statement */, [node]); + } else { + emitNop(); + } + } + function emitAssignment(left, right, location) { + emitWorker(2 /* Assign */, [left, right], location); + } + function emitBreak(label, location) { + emitWorker(3 /* Break */, [label], location); + } + function emitBreakWhenTrue(label, condition, location) { + emitWorker(4 /* BreakWhenTrue */, [label, condition], location); + } + function emitBreakWhenFalse(label, condition, location) { + emitWorker(5 /* BreakWhenFalse */, [label, condition], location); + } + function emitYieldStar(expression, location) { + emitWorker(7 /* YieldStar */, [expression], location); + } + function emitYield(expression, location) { + emitWorker(6 /* Yield */, [expression], location); + } + function emitReturn(expression, location) { + emitWorker(8 /* Return */, [expression], location); + } + function emitThrow(expression, location) { + emitWorker(9 /* Throw */, [expression], location); + } + function emitEndfinally() { + emitWorker(10 /* Endfinally */); + } + function emitWorker(code, args, location) { + if (operations === void 0) { + operations = []; + operationArguments = []; + operationLocations = []; + } + if (labelOffsets === void 0) { + markLabel(defineLabel()); + } + const operationIndex = operations.length; + operations[operationIndex] = code; + operationArguments[operationIndex] = args; + operationLocations[operationIndex] = location; + } + function build2() { + blockIndex = 0; + labelNumber = 0; + labelNumbers = void 0; + lastOperationWasAbrupt = false; + lastOperationWasCompletion = false; + clauses = void 0; + statements = void 0; + exceptionBlockStack = void 0; + currentExceptionBlock = void 0; + withBlockStack = void 0; + const buildResult = buildStatements(); + return emitHelpers().createGeneratorHelper( + setEmitFlags( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + state + )], + /*type*/ + void 0, + factory2.createBlock( + buildResult, + /*multiLine*/ + buildResult.length > 0 + ) + ), + 1048576 /* ReuseTempVariableScope */ + ) + ); + } + function buildStatements() { + if (operations) { + for (let operationIndex = 0; operationIndex < operations.length; operationIndex++) { + writeOperation(operationIndex); + } + flushFinalLabel(operations.length); + } else { + flushFinalLabel(0); + } + if (clauses) { + const labelExpression = factory2.createPropertyAccessExpression(state, "label"); + const switchStatement = factory2.createSwitchStatement(labelExpression, factory2.createCaseBlock(clauses)); + return [startOnNewLine(switchStatement)]; + } + if (statements) { + return statements; + } + return []; + } + function flushLabel() { + if (!statements) { + return; + } + appendLabel( + /*markLabelEnd*/ + !lastOperationWasAbrupt + ); + lastOperationWasAbrupt = false; + lastOperationWasCompletion = false; + labelNumber++; + } + function flushFinalLabel(operationIndex) { + if (isFinalLabelReachable(operationIndex)) { + tryEnterLabel(operationIndex); + withBlockStack = void 0; + writeReturn( + /*expression*/ + void 0, + /*operationLocation*/ + void 0 + ); + } + if (statements && clauses) { + appendLabel( + /*markLabelEnd*/ + false + ); + } + updateLabelExpressions(); + } + function isFinalLabelReachable(operationIndex) { + if (!lastOperationWasCompletion) { + return true; + } + if (!labelOffsets || !labelExpressions) { + return false; + } + for (let label = 0; label < labelOffsets.length; label++) { + if (labelOffsets[label] === operationIndex && labelExpressions[label]) { + return true; + } + } + return false; + } + function appendLabel(markLabelEnd) { + if (!clauses) { + clauses = []; + } + if (statements) { + if (withBlockStack) { + for (let i = withBlockStack.length - 1; i >= 0; i--) { + const withBlock = withBlockStack[i]; + statements = [factory2.createWithStatement(withBlock.expression, factory2.createBlock(statements))]; + } + } + if (currentExceptionBlock) { + const { startLabel, catchLabel, finallyLabel, endLabel } = currentExceptionBlock; + statements.unshift( + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createPropertyAccessExpression(state, "trys"), "push"), + /*typeArguments*/ + void 0, + [ + factory2.createArrayLiteralExpression([ + createLabel(startLabel), + createLabel(catchLabel), + createLabel(finallyLabel), + createLabel(endLabel) + ]) + ] + ) + ) + ); + currentExceptionBlock = void 0; + } + if (markLabelEnd) { + statements.push( + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(state, "label"), + factory2.createNumericLiteral(labelNumber + 1) + ) + ) + ); + } + } + clauses.push( + factory2.createCaseClause( + factory2.createNumericLiteral(labelNumber), + statements || [] + ) + ); + statements = void 0; + } + function tryEnterLabel(operationIndex) { + if (!labelOffsets) { + return; + } + for (let label = 0; label < labelOffsets.length; label++) { + if (labelOffsets[label] === operationIndex) { + flushLabel(); + if (labelNumbers === void 0) { + labelNumbers = []; + } + if (labelNumbers[labelNumber] === void 0) { + labelNumbers[labelNumber] = [label]; + } else { + labelNumbers[labelNumber].push(label); + } + } + } + } + function updateLabelExpressions() { + if (labelExpressions !== void 0 && labelNumbers !== void 0) { + for (let labelNumber2 = 0; labelNumber2 < labelNumbers.length; labelNumber2++) { + const labels = labelNumbers[labelNumber2]; + if (labels !== void 0) { + for (const label of labels) { + const expressions = labelExpressions[label]; + if (expressions !== void 0) { + for (const expression of expressions) { + expression.text = String(labelNumber2); + } + } + } + } + } + } + } + function tryEnterOrLeaveBlock(operationIndex) { + if (blocks) { + for (; blockIndex < blockActions.length && blockOffsets[blockIndex] <= operationIndex; blockIndex++) { + const block = blocks[blockIndex]; + const blockAction = blockActions[blockIndex]; + switch (block.kind) { + case 0 /* Exception */: + if (blockAction === 0 /* Open */) { + if (!exceptionBlockStack) { + exceptionBlockStack = []; + } + if (!statements) { + statements = []; + } + exceptionBlockStack.push(currentExceptionBlock); + currentExceptionBlock = block; + } else if (blockAction === 1 /* Close */) { + currentExceptionBlock = exceptionBlockStack.pop(); + } + break; + case 1 /* With */: + if (blockAction === 0 /* Open */) { + if (!withBlockStack) { + withBlockStack = []; + } + withBlockStack.push(block); + } else if (blockAction === 1 /* Close */) { + withBlockStack.pop(); + } + break; + } + } + } + } + function writeOperation(operationIndex) { + tryEnterLabel(operationIndex); + tryEnterOrLeaveBlock(operationIndex); + if (lastOperationWasAbrupt) { + return; + } + lastOperationWasAbrupt = false; + lastOperationWasCompletion = false; + const opcode = operations[operationIndex]; + if (opcode === 0 /* Nop */) { + return; + } else if (opcode === 10 /* Endfinally */) { + return writeEndfinally(); + } + const args = operationArguments[operationIndex]; + if (opcode === 1 /* Statement */) { + return writeStatement(args[0]); + } + const location = operationLocations[operationIndex]; + switch (opcode) { + case 2 /* Assign */: + return writeAssign(args[0], args[1], location); + case 3 /* Break */: + return writeBreak(args[0], location); + case 4 /* BreakWhenTrue */: + return writeBreakWhenTrue(args[0], args[1], location); + case 5 /* BreakWhenFalse */: + return writeBreakWhenFalse(args[0], args[1], location); + case 6 /* Yield */: + return writeYield(args[0], location); + case 7 /* YieldStar */: + return writeYieldStar(args[0], location); + case 8 /* Return */: + return writeReturn(args[0], location); + case 9 /* Throw */: + return writeThrow(args[0], location); + } + } + function writeStatement(statement) { + if (statement) { + if (!statements) { + statements = [statement]; + } else { + statements.push(statement); + } + } + } + function writeAssign(left, right, operationLocation) { + writeStatement(setTextRange(factory2.createExpressionStatement(factory2.createAssignment(left, right)), operationLocation)); + } + function writeThrow(expression, operationLocation) { + lastOperationWasAbrupt = true; + lastOperationWasCompletion = true; + writeStatement(setTextRange(factory2.createThrowStatement(expression), operationLocation)); + } + function writeReturn(expression, operationLocation) { + lastOperationWasAbrupt = true; + lastOperationWasCompletion = true; + writeStatement( + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression( + expression ? [createInstruction(2 /* Return */), expression] : [createInstruction(2 /* Return */)] + ) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ); + } + function writeBreak(label, operationLocation) { + lastOperationWasAbrupt = true; + writeStatement( + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(3 /* Break */), + createLabel(label) + ]) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ); + } + function writeBreakWhenTrue(label, condition, operationLocation) { + writeStatement( + setEmitFlags( + factory2.createIfStatement( + condition, + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(3 /* Break */), + createLabel(label) + ]) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ), + 1 /* SingleLine */ + ) + ); + } + function writeBreakWhenFalse(label, condition, operationLocation) { + writeStatement( + setEmitFlags( + factory2.createIfStatement( + factory2.createLogicalNot(condition), + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(3 /* Break */), + createLabel(label) + ]) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ), + 1 /* SingleLine */ + ) + ); + } + function writeYield(expression, operationLocation) { + lastOperationWasAbrupt = true; + writeStatement( + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression( + expression ? [createInstruction(4 /* Yield */), expression] : [createInstruction(4 /* Yield */)] + ) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ); + } + function writeYieldStar(expression, operationLocation) { + lastOperationWasAbrupt = true; + writeStatement( + setEmitFlags( + setTextRange( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(5 /* YieldStar */), + expression + ]) + ), + operationLocation + ), + 768 /* NoTokenSourceMaps */ + ) + ); + } + function writeEndfinally() { + lastOperationWasAbrupt = true; + writeStatement( + factory2.createReturnStatement( + factory2.createArrayLiteralExpression([ + createInstruction(7 /* Endfinally */) + ]) + ) + ); + } +} + +// src/compiler/transformers/module/module.ts +function transformModule(context) { + function getTransformModuleDelegate(moduleKind2) { + switch (moduleKind2) { + case 2 /* AMD */: + return transformAMDModule; + case 3 /* UMD */: + return transformUMDModule; + default: + return transformCommonJSModule; + } + } + const { + factory: factory2, + getEmitHelperFactory: emitHelpers, + startLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const compilerOptions = context.getCompilerOptions(); + const resolver = context.getEmitResolver(); + const host = context.getEmitHost(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const moduleKind = getEmitModuleKind(compilerOptions); + const previousOnSubstituteNode = context.onSubstituteNode; + const previousOnEmitNode = context.onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.onEmitNode = onEmitNode; + context.enableSubstitution(213 /* CallExpression */); + context.enableSubstitution(215 /* TaggedTemplateExpression */); + context.enableSubstitution(80 /* Identifier */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableEmitNotification(307 /* SourceFile */); + const moduleInfoMap = []; + let currentSourceFile; + let currentModuleInfo; + const noSubstitution = []; + let needUMDDynamicImportHelper; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608 /* ContainsDynamicImport */ || isJsonSourceFile(node) && hasJsonModuleEmitEnabled(compilerOptions) && compilerOptions.outFile)) { + return node; + } + currentSourceFile = node; + currentModuleInfo = collectExternalModuleInfo(context, node); + moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; + const transformModule2 = getTransformModuleDelegate(moduleKind); + const updated = transformModule2(node); + currentSourceFile = void 0; + currentModuleInfo = void 0; + needUMDDynamicImportHelper = false; + return updated; + } + function shouldEmitUnderscoreUnderscoreESModule() { + if (hasJSFileExtension(currentSourceFile.fileName) && currentSourceFile.commonJsModuleIndicator && (!currentSourceFile.externalModuleIndicator || currentSourceFile.externalModuleIndicator === true)) { + return false; + } + if (!currentModuleInfo.exportEquals && isExternalModule(currentSourceFile)) { + return true; + } + return false; + } + function transformCommonJSModule(node) { + startLexicalEnvironment(); + const statements = []; + const ensureUseStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") || isExternalModule(currentSourceFile); + const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict && !isJsonSourceFile(node), topLevelVisitor); + if (shouldEmitUnderscoreUnderscoreESModule()) { + append(statements, createUnderscoreUnderscoreESModule()); + } + if (some(currentModuleInfo.exportedNames)) { + const chunkSize = 50; + for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) { + append( + statements, + factory2.createExpressionStatement( + reduceLeft( + currentModuleInfo.exportedNames.slice(i, i + chunkSize), + (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), + factory2.createVoidZero() + ) + ) + ); + } + } + for (const f of currentModuleInfo.exportedFunctions) { + appendExportsOfHoistedDeclaration(statements, f); + } + append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement)); + addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset)); + addExportEqualsIfNeeded( + statements, + /*emitAsReturn*/ + false + ); + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + const updated = factory2.updateSourceFile(node, setTextRange(factory2.createNodeArray(statements), node.statements)); + addEmitHelpers(updated, context.readEmitHelpers()); + return updated; + } + function transformAMDModule(node) { + const define = factory2.createIdentifier("define"); + const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); + const jsonSourceFile = isJsonSourceFile(node) && node; + const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies( + node, + /*includeNonAmdDependencies*/ + true + ); + const updated = factory2.updateSourceFile( + node, + setTextRange( + factory2.createNodeArray([ + factory2.createExpressionStatement( + factory2.createCallExpression( + define, + /*typeArguments*/ + void 0, + [ + // Add the module name (if provided). + ...moduleName ? [moduleName] : [], + // Add the dependency array argument: + // + // ["require", "exports", module1", "module2", ...] + factory2.createArrayLiteralExpression( + jsonSourceFile ? emptyArray : [ + factory2.createStringLiteral("require"), + factory2.createStringLiteral("exports"), + ...aliasedModuleNames, + ...unaliasedModuleNames + ] + ), + // Add the module body function argument: + // + // function (require, exports, module1, module2) ... + jsonSourceFile ? jsonSourceFile.statements.length ? jsonSourceFile.statements[0].expression : factory2.createObjectLiteralExpression() : factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "require" + ), + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "exports" + ), + ...importAliasNames + ], + /*type*/ + void 0, + transformAsynchronousModuleBody(node) + ) + ] + ) + ) + ]), + /*location*/ + node.statements + ) + ); + addEmitHelpers(updated, context.readEmitHelpers()); + return updated; + } + function transformUMDModule(node) { + const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies( + node, + /*includeNonAmdDependencies*/ + false + ); + const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); + const umdHeader = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "factory" + )], + /*type*/ + void 0, + setTextRange( + factory2.createBlock( + [ + factory2.createIfStatement( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("module"), "object"), + factory2.createTypeCheck(factory2.createPropertyAccessExpression(factory2.createIdentifier("module"), "exports"), "object") + ), + factory2.createBlock([ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + [ + factory2.createVariableDeclaration( + "v", + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createCallExpression( + factory2.createIdentifier("factory"), + /*typeArguments*/ + void 0, + [ + factory2.createIdentifier("require"), + factory2.createIdentifier("exports") + ] + ) + ) + ] + ), + setEmitFlags( + factory2.createIfStatement( + factory2.createStrictInequality( + factory2.createIdentifier("v"), + factory2.createIdentifier("undefined") + ), + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression(factory2.createIdentifier("module"), "exports"), + factory2.createIdentifier("v") + ) + ) + ), + 1 /* SingleLine */ + ) + ]), + factory2.createIfStatement( + factory2.createLogicalAnd( + factory2.createTypeCheck(factory2.createIdentifier("define"), "function"), + factory2.createPropertyAccessExpression(factory2.createIdentifier("define"), "amd") + ), + factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createIdentifier("define"), + /*typeArguments*/ + void 0, + [ + // Add the module name (if provided). + ...moduleName ? [moduleName] : [], + factory2.createArrayLiteralExpression([ + factory2.createStringLiteral("require"), + factory2.createStringLiteral("exports"), + ...aliasedModuleNames, + ...unaliasedModuleNames + ]), + factory2.createIdentifier("factory") + ] + ) + ) + ]) + ) + ) + ], + /*multiLine*/ + true + ), + /*location*/ + void 0 + ) + ); + const updated = factory2.updateSourceFile( + node, + setTextRange( + factory2.createNodeArray([ + factory2.createExpressionStatement( + factory2.createCallExpression( + umdHeader, + /*typeArguments*/ + void 0, + [ + // Add the module body function argument: + // + // function (require, exports) ... + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "require" + ), + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "exports" + ), + ...importAliasNames + ], + /*type*/ + void 0, + transformAsynchronousModuleBody(node) + ) + ] + ) + ) + ]), + /*location*/ + node.statements + ) + ); + addEmitHelpers(updated, context.readEmitHelpers()); + return updated; + } + function collectAsynchronousDependencies(node, includeNonAmdDependencies) { + const aliasedModuleNames = []; + const unaliasedModuleNames = []; + const importAliasNames = []; + for (const amdDependency of node.amdDependencies) { + if (amdDependency.name) { + aliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path)); + importAliasNames.push(factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + amdDependency.name + )); + } else { + unaliasedModuleNames.push(factory2.createStringLiteral(amdDependency.path)); + } + } + for (const importNode of currentModuleInfo.externalImports) { + const externalModuleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions); + const importAliasName = getLocalNameForExternalImport(factory2, importNode, currentSourceFile); + if (externalModuleName) { + if (includeNonAmdDependencies && importAliasName) { + setEmitFlags(importAliasName, 8 /* NoSubstitution */); + aliasedModuleNames.push(externalModuleName); + importAliasNames.push(factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + importAliasName + )); + } else { + unaliasedModuleNames.push(externalModuleName); + } + } + } + return { aliasedModuleNames, unaliasedModuleNames, importAliasNames }; + } + function getAMDImportExpressionForImport(node) { + if (isImportEqualsDeclaration(node) || isExportDeclaration(node) || !getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions)) { + return void 0; + } + const name = getLocalNameForExternalImport(factory2, node, currentSourceFile); + const expr = getHelperExpressionForImport(node, name); + if (expr === name) { + return void 0; + } + return factory2.createExpressionStatement(factory2.createAssignment(name, expr)); + } + function transformAsynchronousModuleBody(node) { + startLexicalEnvironment(); + const statements = []; + const statementOffset = factory2.copyPrologue( + node.statements, + statements, + /*ensureUseStrict*/ + true, + topLevelVisitor + ); + if (shouldEmitUnderscoreUnderscoreESModule()) { + append(statements, createUnderscoreUnderscoreESModule()); + } + if (some(currentModuleInfo.exportedNames)) { + append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero()))); + } + for (const f of currentModuleInfo.exportedFunctions) { + appendExportsOfHoistedDeclaration(statements, f); + } + append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement)); + if (moduleKind === 2 /* AMD */) { + addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport)); + } + addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset)); + addExportEqualsIfNeeded( + statements, + /*emitAsReturn*/ + true + ); + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + const body = factory2.createBlock( + statements, + /*multiLine*/ + true + ); + if (needUMDDynamicImportHelper) { + addEmitHelper(body, dynamicImportUMDHelper); + } + return body; + } + function addExportEqualsIfNeeded(statements, emitAsReturn) { + if (currentModuleInfo.exportEquals) { + const expressionResult = visitNode(currentModuleInfo.exportEquals.expression, visitor, isExpression); + if (expressionResult) { + if (emitAsReturn) { + const statement = factory2.createReturnStatement(expressionResult); + setTextRange(statement, currentModuleInfo.exportEquals); + setEmitFlags(statement, 768 /* NoTokenSourceMaps */ | 3072 /* NoComments */); + statements.push(statement); + } else { + const statement = factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("module"), + "exports" + ), + expressionResult + ) + ); + setTextRange(statement, currentModuleInfo.exportEquals); + setEmitFlags(statement, 3072 /* NoComments */); + statements.push(statement); + } + } + } + } + function topLevelVisitor(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + return visitTopLevelImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitTopLevelImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitTopLevelExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitTopLevelExportAssignment(node); + default: + return topLevelNestedVisitor(node); + } + } + function topLevelNestedVisitor(node) { + switch (node.kind) { + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 248 /* ForStatement */: + return visitForStatement( + node, + /*isTopLevel*/ + true + ); + case 249 /* ForInStatement */: + return visitForInStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 246 /* DoStatement */: + return visitDoStatement(node); + case 247 /* WhileStatement */: + return visitWhileStatement(node); + case 256 /* LabeledStatement */: + return visitLabeledStatement(node); + case 254 /* WithStatement */: + return visitWithStatement(node); + case 245 /* IfStatement */: + return visitIfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); + case 269 /* CaseBlock */: + return visitCaseBlock(node); + case 296 /* CaseClause */: + return visitCaseClause(node); + case 297 /* DefaultClause */: + return visitDefaultClause(node); + case 258 /* TryStatement */: + return visitTryStatement(node); + case 299 /* CatchClause */: + return visitCatchClause(node); + case 241 /* Block */: + return visitBlock(node); + default: + return visitor(node); + } + } + function visitorWorker(node, valueIsDiscarded) { + if (!(node.transformFlags & (8388608 /* ContainsDynamicImport */ | 4096 /* ContainsDestructuringAssignment */ | 268435456 /* ContainsUpdateExpressionForIdentifier */))) { + return node; + } + switch (node.kind) { + case 248 /* ForStatement */: + return visitForStatement( + node, + /*isTopLevel*/ + false + ); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression(node, valueIsDiscarded); + case 354 /* PartiallyEmittedExpression */: + return visitPartiallyEmittedExpression(node, valueIsDiscarded); + case 213 /* CallExpression */: + if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { + return visitImportCallExpression(node); + } + break; + case 226 /* BinaryExpression */: + if (isDestructuringAssignment(node)) { + return visitDestructuringAssignment(node, valueIsDiscarded); + } + break; + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded); + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + return visitorWorker( + node, + /*valueIsDiscarded*/ + false + ); + } + function discardedValueVisitor(node) { + return visitorWorker( + node, + /*valueIsDiscarded*/ + true + ); + } + function destructuringNeedsFlattening(node) { + if (isObjectLiteralExpression(node)) { + for (const elem of node.properties) { + switch (elem.kind) { + case 303 /* PropertyAssignment */: + if (destructuringNeedsFlattening(elem.initializer)) { + return true; + } + break; + case 304 /* ShorthandPropertyAssignment */: + if (destructuringNeedsFlattening(elem.name)) { + return true; + } + break; + case 305 /* SpreadAssignment */: + if (destructuringNeedsFlattening(elem.expression)) { + return true; + } + break; + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return false; + default: + Debug.assertNever(elem, "Unhandled object member kind"); + } + } + } else if (isArrayLiteralExpression(node)) { + for (const elem of node.elements) { + if (isSpreadElement(elem)) { + if (destructuringNeedsFlattening(elem.expression)) { + return true; + } + } else if (destructuringNeedsFlattening(elem)) { + return true; + } + } + } else if (isIdentifier(node)) { + return length(getExports(node)) > (isExportName(node) ? 1 : 0); + } + return false; + } + function visitDestructuringAssignment(node, valueIsDiscarded) { + if (destructuringNeedsFlattening(node.left)) { + return flattenDestructuringAssignment(node, visitor, context, 0 /* All */, !valueIsDiscarded, createAllExportExpressions); + } + return visitEachChild(node, visitor, context); + } + function visitForStatement(node, isTopLevel) { + if (isTopLevel && node.initializer && isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { + const exportStatements = appendExportsOfVariableDeclarationList( + /*statements*/ + void 0, + node.initializer, + /*isForInOrOfInitializer*/ + false + ); + if (exportStatements) { + const statements = []; + const varDeclList = visitNode(node.initializer, discardedValueVisitor, isVariableDeclarationList); + const varStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + varDeclList + ); + statements.push(varStatement); + addRange(statements, exportStatements); + const condition = visitNode(node.condition, visitor, isExpression); + const incrementor = visitNode(node.incrementor, discardedValueVisitor, isExpression); + const body = visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context); + statements.push(factory2.updateForStatement( + node, + /*initializer*/ + void 0, + condition, + incrementor, + body + )); + return statements; + } + } + return factory2.updateForStatement( + node, + visitNode(node.initializer, discardedValueVisitor, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, discardedValueVisitor, isExpression), + visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context) + ); + } + function visitForInStatement(node) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { + const exportStatements = appendExportsOfVariableDeclarationList( + /*statements*/ + void 0, + node.initializer, + /*isForInOrOfInitializer*/ + true + ); + if (some(exportStatements)) { + const initializer = visitNode(node.initializer, discardedValueVisitor, isForInitializer); + const expression = visitNode(node.expression, visitor, isExpression); + const body = visitIterationBody(node.statement, topLevelNestedVisitor, context); + const mergedBody = isBlock(body) ? factory2.updateBlock(body, [...exportStatements, ...body.statements]) : factory2.createBlock( + [...exportStatements, body], + /*multiLine*/ + true + ); + return factory2.updateForInStatement(node, initializer, expression, mergedBody); + } + } + return factory2.updateForInStatement( + node, + visitNode(node.initializer, discardedValueVisitor, isForInitializer), + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + } + function visitForOfStatement(node) { + if (isVariableDeclarationList(node.initializer) && !(node.initializer.flags & 7 /* BlockScoped */)) { + const exportStatements = appendExportsOfVariableDeclarationList( + /*statements*/ + void 0, + node.initializer, + /*isForInOrOfInitializer*/ + true + ); + const initializer = visitNode(node.initializer, discardedValueVisitor, isForInitializer); + const expression = visitNode(node.expression, visitor, isExpression); + let body = visitIterationBody(node.statement, topLevelNestedVisitor, context); + if (some(exportStatements)) { + body = isBlock(body) ? factory2.updateBlock(body, [...exportStatements, ...body.statements]) : factory2.createBlock( + [...exportStatements, body], + /*multiLine*/ + true + ); + } + return factory2.updateForOfStatement(node, node.awaitModifier, initializer, expression, body); + } + return factory2.updateForOfStatement( + node, + node.awaitModifier, + visitNode(node.initializer, discardedValueVisitor, isForInitializer), + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + } + function visitDoStatement(node) { + return factory2.updateDoStatement( + node, + visitIterationBody(node.statement, topLevelNestedVisitor, context), + visitNode(node.expression, visitor, isExpression) + ); + } + function visitWhileStatement(node) { + return factory2.updateWhileStatement( + node, + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + } + function visitLabeledStatement(node) { + return factory2.updateLabeledStatement( + node, + node.label, + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) + ); + } + function visitWithStatement(node) { + return factory2.updateWithStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) + ); + } + function visitIfStatement(node) { + return factory2.updateIfStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)), + visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) + ); + } + function visitSwitchStatement(node) { + return factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.caseBlock, topLevelNestedVisitor, isCaseBlock)) + ); + } + function visitCaseBlock(node) { + return factory2.updateCaseBlock( + node, + visitNodes2(node.clauses, topLevelNestedVisitor, isCaseOrDefaultClause) + ); + } + function visitCaseClause(node) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + visitNodes2(node.statements, topLevelNestedVisitor, isStatement) + ); + } + function visitDefaultClause(node) { + return visitEachChild(node, topLevelNestedVisitor, context); + } + function visitTryStatement(node) { + return visitEachChild(node, topLevelNestedVisitor, context); + } + function visitCatchClause(node) { + return factory2.updateCatchClause( + node, + node.variableDeclaration, + Debug.checkDefined(visitNode(node.block, topLevelNestedVisitor, isBlock)) + ); + } + function visitBlock(node) { + node = visitEachChild(node, topLevelNestedVisitor, context); + return node; + } + function visitExpressionStatement(node) { + return factory2.updateExpressionStatement( + node, + visitNode(node.expression, discardedValueVisitor, isExpression) + ); + } + function visitParenthesizedExpression(node, valueIsDiscarded) { + return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); + } + function visitPartiallyEmittedExpression(node, valueIsDiscarded) { + return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); + } + function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) { + if ((node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) { + const exportedNames = getExports(node.operand); + if (exportedNames) { + let temp; + let expression = visitNode(node.operand, visitor, isExpression); + if (isPrefixUnaryExpression(node)) { + expression = factory2.updatePrefixUnaryExpression(node, expression); + } else { + expression = factory2.updatePostfixUnaryExpression(node, expression); + if (!valueIsDiscarded) { + temp = factory2.createTempVariable(hoistVariableDeclaration); + expression = factory2.createAssignment(temp, expression); + setTextRange(expression, node); + } + expression = factory2.createComma(expression, factory2.cloneNode(node.operand)); + setTextRange(expression, node); + } + for (const exportName of exportedNames) { + noSubstitution[getNodeId(expression)] = true; + expression = createExportExpression(exportName, expression); + setTextRange(expression, node); + } + if (temp) { + noSubstitution[getNodeId(expression)] = true; + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + return visitEachChild(node, visitor, context); + } + function visitImportCallExpression(node) { + if (moduleKind === 0 /* None */ && languageVersion >= 7 /* ES2020 */) { + return visitEachChild(node, visitor, context); + } + const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions); + const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression); + const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument; + const containsLexicalThis = !!(node.transformFlags & 16384 /* ContainsLexicalThis */); + switch (compilerOptions.module) { + case 2 /* AMD */: + return createImportCallExpressionAMD(argument, containsLexicalThis); + case 3 /* UMD */: + return createImportCallExpressionUMD(argument ?? factory2.createVoidZero(), containsLexicalThis); + case 1 /* CommonJS */: + default: + return createImportCallExpressionCommonJS(argument); + } + } + function createImportCallExpressionUMD(arg, containsLexicalThis) { + needUMDDynamicImportHelper = true; + if (isSimpleCopiableExpression(arg)) { + const argClone = isGeneratedIdentifier(arg) ? arg : isStringLiteral(arg) ? factory2.createStringLiteralFromNode(arg) : setEmitFlags(setTextRange(factory2.cloneNode(arg), arg), 3072 /* NoComments */); + return factory2.createConditionalExpression( + /*condition*/ + factory2.createIdentifier("__syncRequire"), + /*questionToken*/ + void 0, + /*whenTrue*/ + createImportCallExpressionCommonJS(arg), + /*colonToken*/ + void 0, + /*whenFalse*/ + createImportCallExpressionAMD(argClone, containsLexicalThis) + ); + } else { + const temp = factory2.createTempVariable(hoistVariableDeclaration); + return factory2.createComma( + factory2.createAssignment(temp, arg), + factory2.createConditionalExpression( + /*condition*/ + factory2.createIdentifier("__syncRequire"), + /*questionToken*/ + void 0, + /*whenTrue*/ + createImportCallExpressionCommonJS( + temp, + /*isInlineable*/ + true + ), + /*colonToken*/ + void 0, + /*whenFalse*/ + createImportCallExpressionAMD(temp, containsLexicalThis) + ) + ); + } + } + function createImportCallExpressionAMD(arg, containsLexicalThis) { + const resolve = factory2.createUniqueName("resolve"); + const reject = factory2.createUniqueName("reject"); + const parameters = [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + /*name*/ + resolve + ), + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + /*name*/ + reject + ) + ]; + const body = factory2.createBlock([ + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createIdentifier("require"), + /*typeArguments*/ + void 0, + [factory2.createArrayLiteralExpression([arg || factory2.createOmittedExpression()]), resolve, reject] + ) + ) + ]); + let func; + if (languageVersion >= 2 /* ES2015 */) { + func = factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + body + ); + } else { + func = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + parameters, + /*type*/ + void 0, + body + ); + if (containsLexicalThis) { + setEmitFlags(func, 16 /* CapturesThis */); + } + } + const promise = factory2.createNewExpression( + factory2.createIdentifier("Promise"), + /*typeArguments*/ + void 0, + [func] + ); + if (getESModuleInterop(compilerOptions)) { + return factory2.createCallExpression( + factory2.createPropertyAccessExpression(promise, factory2.createIdentifier("then")), + /*typeArguments*/ + void 0, + [emitHelpers().createImportStarCallbackHelper()] + ); + } + return promise; + } + function createImportCallExpressionCommonJS(arg, isInlineable) { + const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable; + const promiseResolveCall = factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"), + /*typeArguments*/ + void 0, + /*argumentsArray*/ + needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [ + factory2.createTemplateExpression(factory2.createTemplateHead(""), [ + factory2.createTemplateSpan(arg, factory2.createTemplateTail("")) + ]) + ] : [ + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"), + /*typeArguments*/ + void 0, + [arg] + ) + ] : [] + ); + let requireCall = factory2.createCallExpression( + factory2.createIdentifier("require"), + /*typeArguments*/ + void 0, + needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : [] + ); + if (getESModuleInterop(compilerOptions)) { + requireCall = emitHelpers().createImportStarHelper(requireCall); + } + const parameters = needSyncEval ? [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + /*name*/ + "s" + ) + ] : []; + let func; + if (languageVersion >= 2 /* ES2015 */) { + func = factory2.createArrowFunction( + /*modifiers*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + parameters, + /*type*/ + void 0, + /*equalsGreaterThanToken*/ + void 0, + requireCall + ); + } else { + func = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + parameters, + /*type*/ + void 0, + factory2.createBlock([factory2.createReturnStatement(requireCall)]) + ); + } + const downleveledImport = factory2.createCallExpression( + factory2.createPropertyAccessExpression(promiseResolveCall, "then"), + /*typeArguments*/ + void 0, + [func] + ); + return downleveledImport; + } + function getHelperExpressionForExport(node, innerExpr) { + if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) { + return innerExpr; + } + if (getExportNeedsImportStarHelper(node)) { + return emitHelpers().createImportStarHelper(innerExpr); + } + return innerExpr; + } + function getHelperExpressionForImport(node, innerExpr) { + if (!getESModuleInterop(compilerOptions) || getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) { + return innerExpr; + } + if (getImportNeedsImportStarHelper(node)) { + return emitHelpers().createImportStarHelper(innerExpr); + } + if (getImportNeedsImportDefaultHelper(node)) { + return emitHelpers().createImportDefaultHelper(innerExpr); + } + return innerExpr; + } + function visitTopLevelImportDeclaration(node) { + let statements; + const namespaceDeclaration = getNamespaceDeclarationNode(node); + if (moduleKind !== 2 /* AMD */) { + if (!node.importClause) { + return setOriginalNode(setTextRange(factory2.createExpressionStatement(createRequireCall(node)), node), node); + } else { + const variables = []; + if (namespaceDeclaration && !isDefaultImport(node)) { + variables.push( + factory2.createVariableDeclaration( + factory2.cloneNode(namespaceDeclaration.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + getHelperExpressionForImport(node, createRequireCall(node)) + ) + ); + } else { + variables.push( + factory2.createVariableDeclaration( + factory2.getGeneratedNameForNode(node), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + getHelperExpressionForImport(node, createRequireCall(node)) + ) + ); + if (namespaceDeclaration && isDefaultImport(node)) { + variables.push( + factory2.createVariableDeclaration( + factory2.cloneNode(namespaceDeclaration.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.getGeneratedNameForNode(node) + ) + ); + } + } + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + variables, + languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ + ) + ), + /*location*/ + node + ), + /*original*/ + node + ) + ); + } + } else if (namespaceDeclaration && isDefaultImport(node)) { + statements = append( + statements, + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [ + setOriginalNode( + setTextRange( + factory2.createVariableDeclaration( + factory2.cloneNode(namespaceDeclaration.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.getGeneratedNameForNode(node) + ), + /*location*/ + node + ), + /*original*/ + node + ) + ], + languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ + ) + ) + ); + } + statements = appendExportsOfImportDeclaration(statements, node); + return singleOrMany(statements); + } + function createRequireCall(importNode) { + const moduleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions); + const args = []; + if (moduleName) { + args.push(moduleName); + } + return factory2.createCallExpression( + factory2.createIdentifier("require"), + /*typeArguments*/ + void 0, + args + ); + } + function visitTopLevelImportEqualsDeclaration(node) { + Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); + let statements; + if (moduleKind !== 2 /* AMD */) { + if (hasSyntacticModifier(node, 32 /* Export */)) { + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createExpressionStatement( + createExportExpression( + node.name, + createRequireCall(node) + ) + ), + node + ), + node + ) + ); + } else { + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [ + factory2.createVariableDeclaration( + factory2.cloneNode(node.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + createRequireCall(node) + ) + ], + /*flags*/ + languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ + ) + ), + node + ), + node + ) + ); + } + } else { + if (hasSyntacticModifier(node, 32 /* Export */)) { + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createExpressionStatement( + createExportExpression(factory2.getExportName(node), factory2.getLocalName(node)) + ), + node + ), + node + ) + ); + } + } + statements = appendExportsOfImportEqualsDeclaration(statements, node); + return singleOrMany(statements); + } + function visitTopLevelExportDeclaration(node) { + if (!node.moduleSpecifier) { + return void 0; + } + const generatedName = factory2.getGeneratedNameForNode(node); + if (node.exportClause && isNamedExports(node.exportClause)) { + const statements = []; + if (moduleKind !== 2 /* AMD */) { + statements.push( + setOriginalNode( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + generatedName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + createRequireCall(node) + ) + ]) + ), + /*location*/ + node + ), + /* original */ + node + ) + ); + } + for (const specifier of node.exportClause.elements) { + const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && idText(specifier.propertyName || specifier.name) === "default"; + const exportedValue = factory2.createPropertyAccessExpression( + exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName, + specifier.propertyName || specifier.name + ); + statements.push( + setOriginalNode( + setTextRange( + factory2.createExpressionStatement( + createExportExpression( + factory2.getExportName(specifier), + exportedValue, + /*location*/ + void 0, + /*liveBinding*/ + true + ) + ), + specifier + ), + specifier + ) + ); + } + return singleOrMany(statements); + } else if (node.exportClause) { + const statements = []; + statements.push( + setOriginalNode( + setTextRange( + factory2.createExpressionStatement( + createExportExpression( + factory2.cloneNode(node.exportClause.name), + getHelperExpressionForExport( + node, + moduleKind !== 2 /* AMD */ ? createRequireCall(node) : isExportNamespaceAsDefaultDeclaration(node) ? generatedName : factory2.createIdentifier(idText(node.exportClause.name)) + ) + ) + ), + node + ), + node + ) + ); + return singleOrMany(statements); + } else { + return setOriginalNode( + setTextRange( + factory2.createExpressionStatement( + emitHelpers().createExportStarHelper(moduleKind !== 2 /* AMD */ ? createRequireCall(node) : generatedName) + ), + node + ), + node + ); + } + } + function visitTopLevelExportAssignment(node) { + if (node.isExportEquals) { + return void 0; + } + return createExportStatement( + factory2.createIdentifier("default"), + visitNode(node.expression, visitor, isExpression), + /*location*/ + node, + /*allowComments*/ + true + ); + } + function visitFunctionDeclaration(node) { + let statements; + if (hasSyntacticModifier(node, 32 /* Export */)) { + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createFunctionDeclaration( + visitNodes2(node.modifiers, modifierVisitor, isModifier), + node.asteriskToken, + factory2.getDeclarationName( + node, + /*allowComments*/ + true, + /*allowSourceMaps*/ + true + ), + /*typeParameters*/ + void 0, + visitNodes2(node.parameters, visitor, isParameter), + /*type*/ + void 0, + visitEachChild(node.body, visitor, context) + ), + /*location*/ + node + ), + /*original*/ + node + ) + ); + } else { + statements = append(statements, visitEachChild(node, visitor, context)); + } + return singleOrMany(statements); + } + function visitClassDeclaration(node) { + let statements; + if (hasSyntacticModifier(node, 32 /* Export */)) { + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createClassDeclaration( + visitNodes2(node.modifiers, modifierVisitor, isModifierLike), + factory2.getDeclarationName( + node, + /*allowComments*/ + true, + /*allowSourceMaps*/ + true + ), + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + visitNodes2(node.members, visitor, isClassElement) + ), + node + ), + node + ) + ); + } else { + statements = append(statements, visitEachChild(node, visitor, context)); + } + statements = appendExportsOfHoistedDeclaration(statements, node); + return singleOrMany(statements); + } + function visitVariableStatement(node) { + let statements; + let variables; + let expressions; + if (hasSyntacticModifier(node, 32 /* Export */)) { + let modifiers; + let removeCommentsOnExpressions = false; + for (const variable of node.declarationList.declarations) { + if (isIdentifier(variable.name) && isLocalName(variable.name)) { + if (!modifiers) { + modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier); + } + if (variable.initializer) { + const updatedVariable = factory2.updateVariableDeclaration( + variable, + variable.name, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + createExportExpression( + variable.name, + visitNode(variable.initializer, visitor, isExpression) + ) + ); + variables = append(variables, updatedVariable); + } else { + variables = append(variables, variable); + } + } else if (variable.initializer) { + if (!isBindingPattern(variable.name) && (isArrowFunction(variable.initializer) || isFunctionExpression(variable.initializer) || isClassExpression(variable.initializer))) { + const expression = factory2.createAssignment( + setTextRange( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("exports"), + variable.name + ), + /*location*/ + variable.name + ), + factory2.createIdentifier(getTextOfIdentifierOrLiteral(variable.name)) + ); + const updatedVariable = factory2.createVariableDeclaration( + variable.name, + variable.exclamationToken, + variable.type, + visitNode(variable.initializer, visitor, isExpression) + ); + variables = append(variables, updatedVariable); + expressions = append(expressions, expression); + removeCommentsOnExpressions = true; + } else { + expressions = append(expressions, transformInitializedVariable(variable)); + } + } + } + if (variables) { + statements = append(statements, factory2.updateVariableStatement(node, modifiers, factory2.updateVariableDeclarationList(node.declarationList, variables))); + } + if (expressions) { + const statement = setOriginalNode(setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node), node); + if (removeCommentsOnExpressions) { + removeAllComments(statement); + } + statements = append(statements, statement); + } + } else { + statements = append(statements, visitEachChild(node, visitor, context)); + } + statements = appendExportsOfVariableStatement(statements, node); + return singleOrMany(statements); + } + function createAllExportExpressions(name, value, location) { + const exportedNames = getExports(name); + if (exportedNames) { + let expression = isExportName(name) ? value : factory2.createAssignment(name, value); + for (const exportName of exportedNames) { + setEmitFlags(expression, 8 /* NoSubstitution */); + expression = createExportExpression( + exportName, + expression, + /*location*/ + location + ); + } + return expression; + } + return factory2.createAssignment(name, value); + } + function transformInitializedVariable(node) { + if (isBindingPattern(node.name)) { + return flattenDestructuringAssignment( + visitNode(node, visitor, isInitializedVariable), + visitor, + context, + 0 /* All */, + /*needsValue*/ + false, + createAllExportExpressions + ); + } else { + return factory2.createAssignment( + setTextRange( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("exports"), + node.name + ), + /*location*/ + node.name + ), + node.initializer ? visitNode(node.initializer, visitor, isExpression) : factory2.createVoidZero() + ); + } + } + function appendExportsOfImportDeclaration(statements, decl) { + if (currentModuleInfo.exportEquals) { + return statements; + } + const importClause = decl.importClause; + if (!importClause) { + return statements; + } + const seen = new IdentifierNameMap(); + if (importClause.name) { + statements = appendExportsOfDeclaration(statements, seen, importClause); + } + const namedBindings = importClause.namedBindings; + if (namedBindings) { + switch (namedBindings.kind) { + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, seen, namedBindings); + break; + case 275 /* NamedImports */: + for (const importBinding of namedBindings.elements) { + statements = appendExportsOfDeclaration( + statements, + seen, + importBinding, + /*liveBinding*/ + true + ); + } + break; + } + } + return statements; + } + function appendExportsOfImportEqualsDeclaration(statements, decl) { + if (currentModuleInfo.exportEquals) { + return statements; + } + return appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); + } + function appendExportsOfVariableStatement(statements, node) { + return appendExportsOfVariableDeclarationList( + statements, + node.declarationList, + /*isForInOrOfInitializer*/ + false + ); + } + function appendExportsOfVariableDeclarationList(statements, node, isForInOrOfInitializer) { + if (currentModuleInfo.exportEquals) { + return statements; + } + for (const decl of node.declarations) { + statements = appendExportsOfBindingElement(statements, decl, isForInOrOfInitializer); + } + return statements; + } + function appendExportsOfBindingElement(statements, decl, isForInOrOfInitializer) { + if (currentModuleInfo.exportEquals) { + return statements; + } + if (isBindingPattern(decl.name)) { + for (const element of decl.name.elements) { + if (!isOmittedExpression(element)) { + statements = appendExportsOfBindingElement(statements, element, isForInOrOfInitializer); + } + } + } else if (!isGeneratedIdentifier(decl.name) && (!isVariableDeclaration(decl) || decl.initializer || isForInOrOfInitializer)) { + statements = appendExportsOfDeclaration(statements, new IdentifierNameMap(), decl); + } + return statements; + } + function appendExportsOfHoistedDeclaration(statements, decl) { + if (currentModuleInfo.exportEquals) { + return statements; + } + const seen = new IdentifierNameMap(); + if (hasSyntacticModifier(decl, 32 /* Export */)) { + const exportName = hasSyntacticModifier(decl, 2048 /* Default */) ? factory2.createIdentifier("default") : factory2.getDeclarationName(decl); + statements = appendExportStatement( + statements, + seen, + exportName, + factory2.getLocalName(decl), + /*location*/ + decl + ); + } + if (decl.name) { + statements = appendExportsOfDeclaration(statements, seen, decl); + } + return statements; + } + function appendExportsOfDeclaration(statements, seen, decl, liveBinding) { + const name = factory2.getDeclarationName(decl); + const exportSpecifiers = currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + for (const exportSpecifier of exportSpecifiers) { + statements = appendExportStatement( + statements, + seen, + exportSpecifier.name, + name, + /*location*/ + exportSpecifier.name, + /*allowComments*/ + void 0, + liveBinding + ); + } + } + return statements; + } + function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { + if (!seen.has(exportName)) { + seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); + } + return statements; + } + function createUnderscoreUnderscoreESModule() { + const statement = factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"), + /*typeArguments*/ + void 0, + [ + factory2.createIdentifier("exports"), + factory2.createStringLiteral("__esModule"), + factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("value", factory2.createTrue()) + ]) + ] + ) + ); + setEmitFlags(statement, 2097152 /* CustomPrologue */); + return statement; + } + function createExportStatement(name, value, location, allowComments, liveBinding) { + const statement = setTextRange(factory2.createExpressionStatement(createExportExpression( + name, + value, + /*location*/ + void 0, + liveBinding + )), location); + startOnNewLine(statement); + if (!allowComments) { + setEmitFlags(statement, 3072 /* NoComments */); + } + return statement; + } + function createExportExpression(name, value, location, liveBinding) { + return setTextRange( + liveBinding ? factory2.createCallExpression( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("Object"), + "defineProperty" + ), + /*typeArguments*/ + void 0, + [ + factory2.createIdentifier("exports"), + factory2.createStringLiteralFromNode(name), + factory2.createObjectLiteralExpression([ + factory2.createPropertyAssignment("enumerable", factory2.createTrue()), + factory2.createPropertyAssignment( + "get", + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + [], + /*type*/ + void 0, + factory2.createBlock([factory2.createReturnStatement(value)]) + ) + ) + ]) + ] + ) : factory2.createAssignment( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("exports"), + factory2.cloneNode(name) + ), + value + ), + location + ); + } + function modifierVisitor(node) { + switch (node.kind) { + case 95 /* ExportKeyword */: + case 90 /* DefaultKeyword */: + return void 0; + } + return node; + } + function onEmitNode(hint, node, emitCallback) { + if (node.kind === 307 /* SourceFile */) { + currentSourceFile = node; + currentModuleInfo = moduleInfoMap[getOriginalNodeId(currentSourceFile)]; + previousOnEmitNode(hint, node, emitCallback); + currentSourceFile = void 0; + currentModuleInfo = void 0; + } else { + previousOnEmitNode(hint, node, emitCallback); + } + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (node.id && noSubstitution[node.id]) { + return node; + } + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } else if (isShorthandPropertyAssignment(node)) { + return substituteShorthandPropertyAssignment(node); + } + return node; + } + function substituteShorthandPropertyAssignment(node) { + const name = node.name; + const exportedOrImportedName = substituteExpressionIdentifier(name); + if (exportedOrImportedName !== name) { + if (node.objectAssignmentInitializer) { + const initializer = factory2.createAssignment(exportedOrImportedName, node.objectAssignmentInitializer); + return setTextRange(factory2.createPropertyAssignment(name, initializer), node); + } + return setTextRange(factory2.createPropertyAssignment(name, exportedOrImportedName), node); + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + case 213 /* CallExpression */: + return substituteCallExpression(node); + case 215 /* TaggedTemplateExpression */: + return substituteTaggedTemplateExpression(node); + case 226 /* BinaryExpression */: + return substituteBinaryExpression(node); + } + return node; + } + function substituteCallExpression(node) { + if (isIdentifier(node.expression)) { + const expression = substituteExpressionIdentifier(node.expression); + noSubstitution[getNodeId(expression)] = true; + if (!isIdentifier(expression) && !(getEmitFlags(node.expression) & 8192 /* HelperName */)) { + return addInternalEmitFlags( + factory2.updateCallExpression( + node, + expression, + /*typeArguments*/ + void 0, + node.arguments + ), + 16 /* IndirectCall */ + ); + } + } + return node; + } + function substituteTaggedTemplateExpression(node) { + if (isIdentifier(node.tag)) { + const tag = substituteExpressionIdentifier(node.tag); + noSubstitution[getNodeId(tag)] = true; + if (!isIdentifier(tag) && !(getEmitFlags(node.tag) & 8192 /* HelperName */)) { + return addInternalEmitFlags( + factory2.updateTaggedTemplateExpression( + node, + tag, + /*typeArguments*/ + void 0, + node.template + ), + 16 /* IndirectCall */ + ); + } + } + return node; + } + function substituteExpressionIdentifier(node) { + var _a, _b; + if (getEmitFlags(node) & 8192 /* HelperName */) { + const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile); + if (externalHelpersModuleName) { + return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); + } + return node; + } else if (!(isGeneratedIdentifier(node) && !(node.emitNode.autoGenerate.flags & 64 /* AllowNameSubstitution */)) && !isLocalName(node)) { + const exportContainer = resolver.getReferencedExportContainer(node, isExportName(node)); + if (exportContainer && exportContainer.kind === 307 /* SourceFile */) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("exports"), + factory2.cloneNode(node) + ), + /*location*/ + node + ); + } + const importDeclaration = resolver.getReferencedImportDeclaration(node); + if (importDeclaration) { + if (isImportClause(importDeclaration)) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(importDeclaration.parent), + factory2.createIdentifier("default") + ), + /*location*/ + node + ); + } else if (isImportSpecifier(importDeclaration)) { + const name = importDeclaration.propertyName || importDeclaration.name; + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(name) + ), + /*location*/ + node + ); + } + } + } + return node; + } + function substituteBinaryExpression(node) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { + const exportedNames = getExports(node.left); + if (exportedNames) { + let expression = node; + for (const exportName of exportedNames) { + noSubstitution[getNodeId(expression)] = true; + expression = createExportExpression( + exportName, + expression, + /*location*/ + node + ); + } + return expression; + } + } + return node; + } + function getExports(name) { + if (!isGeneratedIdentifier(name)) { + const importDeclaration = resolver.getReferencedImportDeclaration(name); + if (importDeclaration) { + return currentModuleInfo == null ? void 0 : currentModuleInfo.exportedBindings[getOriginalNodeId(importDeclaration)]; + } + const bindingsSet = /* @__PURE__ */ new Set(); + const declarations = resolver.getReferencedValueDeclarations(name); + if (declarations) { + for (const declaration of declarations) { + const bindings = currentModuleInfo == null ? void 0 : currentModuleInfo.exportedBindings[getOriginalNodeId(declaration)]; + if (bindings) { + for (const binding of bindings) { + bindingsSet.add(binding); + } + } + } + if (bindingsSet.size) { + return arrayFrom(bindingsSet); + } + } + } else if (isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = currentModuleInfo == null ? void 0 : currentModuleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames.push(exportSpecifier.name); + } + return exportedNames; + } + } + } +} +var dynamicImportUMDHelper = { + name: "typescript:dynamicimport-sync-require", + scoped: true, + text: ` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";` +}; + +// src/compiler/transformers/module/system.ts +function transformSystemModule(context) { + const { + factory: factory2, + startLexicalEnvironment, + endLexicalEnvironment, + hoistVariableDeclaration + } = context; + const compilerOptions = context.getCompilerOptions(); + const resolver = context.getEmitResolver(); + const host = context.getEmitHost(); + const previousOnSubstituteNode = context.onSubstituteNode; + const previousOnEmitNode = context.onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.onEmitNode = onEmitNode; + context.enableSubstitution(80 /* Identifier */); + context.enableSubstitution(304 /* ShorthandPropertyAssignment */); + context.enableSubstitution(226 /* BinaryExpression */); + context.enableSubstitution(236 /* MetaProperty */); + context.enableEmitNotification(307 /* SourceFile */); + const moduleInfoMap = []; + const exportFunctionsMap = []; + const noSubstitutionMap = []; + const contextObjectMap = []; + let currentSourceFile; + let moduleInfo; + let exportFunction; + let contextObject; + let hoistedStatements; + let enclosingBlockScopedContainer; + let noSubstitution; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile || !(isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 8388608 /* ContainsDynamicImport */)) { + return node; + } + const id = getOriginalNodeId(node); + currentSourceFile = node; + enclosingBlockScopedContainer = node; + moduleInfo = moduleInfoMap[id] = collectExternalModuleInfo(context, node); + exportFunction = factory2.createUniqueName("exports"); + exportFunctionsMap[id] = exportFunction; + contextObject = contextObjectMap[id] = factory2.createUniqueName("context"); + const dependencyGroups = collectDependencyGroups(moduleInfo.externalImports); + const moduleBodyBlock = createSystemModuleBody(node, dependencyGroups); + const moduleBodyFunction = factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [ + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + exportFunction + ), + factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + contextObject + ) + ], + /*type*/ + void 0, + moduleBodyBlock + ); + const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions); + const dependencies = factory2.createArrayLiteralExpression(map(dependencyGroups, (dependencyGroup) => dependencyGroup.name)); + const updated = setEmitFlags( + factory2.updateSourceFile( + node, + setTextRange( + factory2.createNodeArray([ + factory2.createExpressionStatement( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(factory2.createIdentifier("System"), "register"), + /*typeArguments*/ + void 0, + moduleName ? [moduleName, dependencies, moduleBodyFunction] : [dependencies, moduleBodyFunction] + ) + ) + ]), + node.statements + ) + ), + 2048 /* NoTrailingComments */ + ); + if (!compilerOptions.outFile) { + moveEmitHelpers(updated, moduleBodyBlock, (helper) => !helper.scoped); + } + if (noSubstitution) { + noSubstitutionMap[id] = noSubstitution; + noSubstitution = void 0; + } + currentSourceFile = void 0; + moduleInfo = void 0; + exportFunction = void 0; + contextObject = void 0; + hoistedStatements = void 0; + enclosingBlockScopedContainer = void 0; + return updated; + } + function collectDependencyGroups(externalImports) { + const groupIndices = /* @__PURE__ */ new Map(); + const dependencyGroups = []; + for (const externalImport of externalImports) { + const externalModuleName = getExternalModuleNameLiteral(factory2, externalImport, currentSourceFile, host, resolver, compilerOptions); + if (externalModuleName) { + const text = externalModuleName.text; + const groupIndex = groupIndices.get(text); + if (groupIndex !== void 0) { + dependencyGroups[groupIndex].externalImports.push(externalImport); + } else { + groupIndices.set(text, dependencyGroups.length); + dependencyGroups.push({ + name: externalModuleName, + externalImports: [externalImport] + }); + } + } + } + return dependencyGroups; + } + function createSystemModuleBody(node, dependencyGroups) { + const statements = []; + startLexicalEnvironment(); + const ensureUseStrict = getStrictOptionValue(compilerOptions, "alwaysStrict") || isExternalModule(currentSourceFile); + const statementOffset = factory2.copyPrologue(node.statements, statements, ensureUseStrict, topLevelVisitor); + statements.push( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + "__moduleName", + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createLogicalAnd( + contextObject, + factory2.createPropertyAccessExpression(contextObject, "id") + ) + ) + ]) + ) + ); + visitNode(moduleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement); + const executeStatements = visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset); + addRange(statements, hoistedStatements); + insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment()); + const exportStarFunction = addExportStarIfNeeded(statements); + const modifiers = node.transformFlags & 2097152 /* ContainsAwait */ ? factory2.createModifiersFromModifierFlags(1024 /* Async */) : void 0; + const moduleObject = factory2.createObjectLiteralExpression( + [ + factory2.createPropertyAssignment("setters", createSettersArray(exportStarFunction, dependencyGroups)), + factory2.createPropertyAssignment( + "execute", + factory2.createFunctionExpression( + modifiers, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + /*parameters*/ + [], + /*type*/ + void 0, + factory2.createBlock( + executeStatements, + /*multiLine*/ + true + ) + ) + ) + ], + /*multiLine*/ + true + ); + statements.push(factory2.createReturnStatement(moduleObject)); + return factory2.createBlock( + statements, + /*multiLine*/ + true + ); + } + function addExportStarIfNeeded(statements) { + if (!moduleInfo.hasExportStarsToExportValues) { + return; + } + if (!some(moduleInfo.exportedNames) && moduleInfo.exportedFunctions.size === 0 && moduleInfo.exportSpecifiers.size === 0) { + let hasExportDeclarationWithExportClause = false; + for (const externalImport of moduleInfo.externalImports) { + if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) { + hasExportDeclarationWithExportClause = true; + break; + } + } + if (!hasExportDeclarationWithExportClause) { + const exportStarFunction2 = createExportStarFunction( + /*localNames*/ + void 0 + ); + statements.push(exportStarFunction2); + return exportStarFunction2.name; + } + } + const exportedNames = []; + if (moduleInfo.exportedNames) { + for (const exportedLocalName of moduleInfo.exportedNames) { + if (exportedLocalName.escapedText === "default") { + continue; + } + exportedNames.push( + factory2.createPropertyAssignment( + factory2.createStringLiteralFromNode(exportedLocalName), + factory2.createTrue() + ) + ); + } + } + for (const f of moduleInfo.exportedFunctions) { + if (hasSyntacticModifier(f, 2048 /* Default */)) { + continue; + } + Debug.assert(!!f.name); + exportedNames.push( + factory2.createPropertyAssignment( + factory2.createStringLiteralFromNode(f.name), + factory2.createTrue() + ) + ); + } + const exportedNamesStorageRef = factory2.createUniqueName("exportedNames"); + statements.push( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + exportedNamesStorageRef, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createObjectLiteralExpression( + exportedNames, + /*multiLine*/ + true + ) + ) + ]) + ) + ); + const exportStarFunction = createExportStarFunction(exportedNamesStorageRef); + statements.push(exportStarFunction); + return exportStarFunction.name; + } + function createExportStarFunction(localNames) { + const exportStarFunction = factory2.createUniqueName("exportStar"); + const m = factory2.createIdentifier("m"); + const n = factory2.createIdentifier("n"); + const exports2 = factory2.createIdentifier("exports"); + let condition = factory2.createStrictInequality(n, factory2.createStringLiteral("default")); + if (localNames) { + condition = factory2.createLogicalAnd( + condition, + factory2.createLogicalNot( + factory2.createCallExpression( + factory2.createPropertyAccessExpression(localNames, "hasOwnProperty"), + /*typeArguments*/ + void 0, + [n] + ) + ) + ); + } + return factory2.createFunctionDeclaration( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + exportStarFunction, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + m + )], + /*type*/ + void 0, + factory2.createBlock( + [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration( + exports2, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createObjectLiteralExpression([]) + ) + ]) + ), + factory2.createForInStatement( + factory2.createVariableDeclarationList([ + factory2.createVariableDeclaration(n) + ]), + m, + factory2.createBlock([ + setEmitFlags( + factory2.createIfStatement( + condition, + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createElementAccessExpression(exports2, n), + factory2.createElementAccessExpression(m, n) + ) + ) + ), + 1 /* SingleLine */ + ) + ]) + ), + factory2.createExpressionStatement( + factory2.createCallExpression( + exportFunction, + /*typeArguments*/ + void 0, + [exports2] + ) + ) + ], + /*multiLine*/ + true + ) + ); + } + function createSettersArray(exportStarFunction, dependencyGroups) { + const setters = []; + for (const group2 of dependencyGroups) { + const localName = forEach(group2.externalImports, (i) => getLocalNameForExternalImport(factory2, i, currentSourceFile)); + const parameterName = localName ? factory2.getGeneratedNameForNode(localName) : factory2.createUniqueName(""); + const statements = []; + for (const entry of group2.externalImports) { + const importVariableName = getLocalNameForExternalImport(factory2, entry, currentSourceFile); + switch (entry.kind) { + case 272 /* ImportDeclaration */: + if (!entry.importClause) { + break; + } + case 271 /* ImportEqualsDeclaration */: + Debug.assert(importVariableName !== void 0); + statements.push( + factory2.createExpressionStatement( + factory2.createAssignment(importVariableName, parameterName) + ) + ); + if (hasSyntacticModifier(entry, 32 /* Export */)) { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + exportFunction, + /*typeArguments*/ + void 0, + [ + factory2.createStringLiteral(idText(importVariableName)), + parameterName + ] + ) + ) + ); + } + break; + case 278 /* ExportDeclaration */: + Debug.assert(importVariableName !== void 0); + if (entry.exportClause) { + if (isNamedExports(entry.exportClause)) { + const properties = []; + for (const e of entry.exportClause.elements) { + properties.push( + factory2.createPropertyAssignment( + factory2.createStringLiteral(idText(e.name)), + factory2.createElementAccessExpression( + parameterName, + factory2.createStringLiteral(idText(e.propertyName || e.name)) + ) + ) + ); + } + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + exportFunction, + /*typeArguments*/ + void 0, + [factory2.createObjectLiteralExpression( + properties, + /*multiLine*/ + true + )] + ) + ) + ); + } else { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + exportFunction, + /*typeArguments*/ + void 0, + [ + factory2.createStringLiteral(idText(entry.exportClause.name)), + parameterName + ] + ) + ) + ); + } + } else { + statements.push( + factory2.createExpressionStatement( + factory2.createCallExpression( + exportStarFunction, + /*typeArguments*/ + void 0, + [parameterName] + ) + ) + ); + } + break; + } + } + setters.push( + factory2.createFunctionExpression( + /*modifiers*/ + void 0, + /*asteriskToken*/ + void 0, + /*name*/ + void 0, + /*typeParameters*/ + void 0, + [factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + parameterName + )], + /*type*/ + void 0, + factory2.createBlock( + statements, + /*multiLine*/ + true + ) + ) + ); + } + return factory2.createArrayLiteralExpression( + setters, + /*multiLine*/ + true + ); + } + function topLevelVisitor(node) { + switch (node.kind) { + case 272 /* ImportDeclaration */: + return visitImportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return visitImportEqualsDeclaration(node); + case 278 /* ExportDeclaration */: + return visitExportDeclaration(node); + case 277 /* ExportAssignment */: + return visitExportAssignment(node); + default: + return topLevelNestedVisitor(node); + } + } + function visitImportDeclaration(node) { + let statements; + if (node.importClause) { + hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile)); + } + return singleOrMany(appendExportsOfImportDeclaration(statements, node)); + } + function visitExportDeclaration(node) { + Debug.assertIsDefined(node); + return void 0; + } + function visitImportEqualsDeclaration(node) { + Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); + let statements; + hoistVariableDeclaration(getLocalNameForExternalImport(factory2, node, currentSourceFile)); + return singleOrMany(appendExportsOfImportEqualsDeclaration(statements, node)); + } + function visitExportAssignment(node) { + if (node.isExportEquals) { + return void 0; + } + const expression = visitNode(node.expression, visitor, isExpression); + return createExportStatement( + factory2.createIdentifier("default"), + expression, + /*allowComments*/ + true + ); + } + function visitFunctionDeclaration(node) { + if (hasSyntacticModifier(node, 32 /* Export */)) { + hoistedStatements = append( + hoistedStatements, + factory2.updateFunctionDeclaration( + node, + visitNodes2(node.modifiers, modifierVisitor, isModifierLike), + node.asteriskToken, + factory2.getDeclarationName( + node, + /*allowComments*/ + true, + /*allowSourceMaps*/ + true + ), + /*typeParameters*/ + void 0, + visitNodes2(node.parameters, visitor, isParameter), + /*type*/ + void 0, + visitNode(node.body, visitor, isBlock) + ) + ); + } else { + hoistedStatements = append(hoistedStatements, visitEachChild(node, visitor, context)); + } + hoistedStatements = appendExportsOfHoistedDeclaration(hoistedStatements, node); + return void 0; + } + function visitClassDeclaration(node) { + let statements; + const name = factory2.getLocalName(node); + hoistVariableDeclaration(name); + statements = append( + statements, + setTextRange( + factory2.createExpressionStatement( + factory2.createAssignment( + name, + setTextRange( + factory2.createClassExpression( + visitNodes2(node.modifiers, modifierVisitor, isModifierLike), + node.name, + /*typeParameters*/ + void 0, + visitNodes2(node.heritageClauses, visitor, isHeritageClause), + visitNodes2(node.members, visitor, isClassElement) + ), + node + ) + ) + ), + node + ) + ); + statements = appendExportsOfHoistedDeclaration(statements, node); + return singleOrMany(statements); + } + function visitVariableStatement(node) { + if (!shouldHoistVariableDeclarationList(node.declarationList)) { + return visitNode(node, visitor, isStatement); + } + let statements; + if (isVarUsing(node.declarationList) || isVarAwaitUsing(node.declarationList)) { + const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifierLike); + const declarations = []; + for (const variable of node.declarationList.declarations) { + declarations.push(factory2.updateVariableDeclaration( + variable, + factory2.getGeneratedNameForNode(variable.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + ) + )); + } + const declarationList = factory2.updateVariableDeclarationList( + node.declarationList, + declarations + ); + statements = append(statements, factory2.updateVariableStatement(node, modifiers, declarationList)); + } else { + let expressions; + const isExportedDeclaration = hasSyntacticModifier(node, 32 /* Export */); + for (const variable of node.declarationList.declarations) { + if (variable.initializer) { + expressions = append(expressions, transformInitializedVariable(variable, isExportedDeclaration)); + } else { + hoistBindingElement(variable); + } + } + if (expressions) { + statements = append(statements, setTextRange(factory2.createExpressionStatement(factory2.inlineExpressions(expressions)), node)); + } + } + statements = appendExportsOfVariableStatement( + statements, + node, + /*exportSelf*/ + false + ); + return singleOrMany(statements); + } + function hoistBindingElement(node) { + if (isBindingPattern(node.name)) { + for (const element of node.name.elements) { + if (!isOmittedExpression(element)) { + hoistBindingElement(element); + } + } + } else { + hoistVariableDeclaration(factory2.cloneNode(node.name)); + } + } + function shouldHoistVariableDeclarationList(node) { + return (getEmitFlags(node) & 4194304 /* NoHoisting */) === 0 && (enclosingBlockScopedContainer.kind === 307 /* SourceFile */ || (getOriginalNode(node).flags & 7 /* BlockScoped */) === 0); + } + function transformInitializedVariable(node, isExportedDeclaration) { + const createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment; + return isBindingPattern(node.name) ? flattenDestructuringAssignment( + node, + visitor, + context, + 0 /* All */, + /*needsValue*/ + false, + createAssignment + ) : node.initializer ? createAssignment(node.name, visitNode(node.initializer, visitor, isExpression)) : node.name; + } + function createExportedVariableAssignment(name, value, location) { + return createVariableAssignment( + name, + value, + location, + /*isExportedDeclaration*/ + true + ); + } + function createNonExportedVariableAssignment(name, value, location) { + return createVariableAssignment( + name, + value, + location, + /*isExportedDeclaration*/ + false + ); + } + function createVariableAssignment(name, value, location, isExportedDeclaration) { + hoistVariableDeclaration(factory2.cloneNode(name)); + return isExportedDeclaration ? createExportExpression(name, preventSubstitution(setTextRange(factory2.createAssignment(name, value), location))) : preventSubstitution(setTextRange(factory2.createAssignment(name, value), location)); + } + function appendExportsOfImportDeclaration(statements, decl) { + if (moduleInfo.exportEquals) { + return statements; + } + const importClause = decl.importClause; + if (!importClause) { + return statements; + } + if (importClause.name) { + statements = appendExportsOfDeclaration(statements, importClause); + } + const namedBindings = importClause.namedBindings; + if (namedBindings) { + switch (namedBindings.kind) { + case 274 /* NamespaceImport */: + statements = appendExportsOfDeclaration(statements, namedBindings); + break; + case 275 /* NamedImports */: + for (const importBinding of namedBindings.elements) { + statements = appendExportsOfDeclaration(statements, importBinding); + } + break; + } + } + return statements; + } + function appendExportsOfImportEqualsDeclaration(statements, decl) { + if (moduleInfo.exportEquals) { + return statements; + } + return appendExportsOfDeclaration(statements, decl); + } + function appendExportsOfVariableStatement(statements, node, exportSelf) { + if (moduleInfo.exportEquals) { + return statements; + } + for (const decl of node.declarationList.declarations) { + if (decl.initializer || exportSelf) { + statements = appendExportsOfBindingElement(statements, decl, exportSelf); + } + } + return statements; + } + function appendExportsOfBindingElement(statements, decl, exportSelf) { + if (moduleInfo.exportEquals) { + return statements; + } + if (isBindingPattern(decl.name)) { + for (const element of decl.name.elements) { + if (!isOmittedExpression(element)) { + statements = appendExportsOfBindingElement(statements, element, exportSelf); + } + } + } else if (!isGeneratedIdentifier(decl.name)) { + let excludeName; + if (exportSelf) { + statements = appendExportStatement(statements, decl.name, factory2.getLocalName(decl)); + excludeName = idText(decl.name); + } + statements = appendExportsOfDeclaration(statements, decl, excludeName); + } + return statements; + } + function appendExportsOfHoistedDeclaration(statements, decl) { + if (moduleInfo.exportEquals) { + return statements; + } + let excludeName; + if (hasSyntacticModifier(decl, 32 /* Export */)) { + const exportName = hasSyntacticModifier(decl, 2048 /* Default */) ? factory2.createStringLiteral("default") : decl.name; + statements = appendExportStatement(statements, exportName, factory2.getLocalName(decl)); + excludeName = getTextOfIdentifierOrLiteral(exportName); + } + if (decl.name) { + statements = appendExportsOfDeclaration(statements, decl, excludeName); + } + return statements; + } + function appendExportsOfDeclaration(statements, decl, excludeName) { + if (moduleInfo.exportEquals) { + return statements; + } + const name = factory2.getDeclarationName(decl); + const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + for (const exportSpecifier of exportSpecifiers) { + if (exportSpecifier.name.escapedText !== excludeName) { + statements = appendExportStatement(statements, exportSpecifier.name, name); + } + } + } + return statements; + } + function appendExportStatement(statements, exportName, expression, allowComments) { + statements = append(statements, createExportStatement(exportName, expression, allowComments)); + return statements; + } + function createExportStatement(name, value, allowComments) { + const statement = factory2.createExpressionStatement(createExportExpression(name, value)); + startOnNewLine(statement); + if (!allowComments) { + setEmitFlags(statement, 3072 /* NoComments */); + } + return statement; + } + function createExportExpression(name, value) { + const exportName = isIdentifier(name) ? factory2.createStringLiteralFromNode(name) : name; + setEmitFlags(value, getEmitFlags(value) | 3072 /* NoComments */); + return setCommentRange(factory2.createCallExpression( + exportFunction, + /*typeArguments*/ + void 0, + [exportName, value] + ), value); + } + function topLevelNestedVisitor(node) { + switch (node.kind) { + case 243 /* VariableStatement */: + return visitVariableStatement(node); + case 262 /* FunctionDeclaration */: + return visitFunctionDeclaration(node); + case 263 /* ClassDeclaration */: + return visitClassDeclaration(node); + case 248 /* ForStatement */: + return visitForStatement( + node, + /*isTopLevel*/ + true + ); + case 249 /* ForInStatement */: + return visitForInStatement(node); + case 250 /* ForOfStatement */: + return visitForOfStatement(node); + case 246 /* DoStatement */: + return visitDoStatement(node); + case 247 /* WhileStatement */: + return visitWhileStatement(node); + case 256 /* LabeledStatement */: + return visitLabeledStatement(node); + case 254 /* WithStatement */: + return visitWithStatement(node); + case 245 /* IfStatement */: + return visitIfStatement(node); + case 255 /* SwitchStatement */: + return visitSwitchStatement(node); + case 269 /* CaseBlock */: + return visitCaseBlock(node); + case 296 /* CaseClause */: + return visitCaseClause(node); + case 297 /* DefaultClause */: + return visitDefaultClause(node); + case 258 /* TryStatement */: + return visitTryStatement(node); + case 299 /* CatchClause */: + return visitCatchClause(node); + case 241 /* Block */: + return visitBlock(node); + default: + return visitor(node); + } + } + function visitForStatement(node, isTopLevel) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = factory2.updateForStatement( + node, + visitNode(node.initializer, isTopLevel ? visitForInitializer : discardedValueVisitor, isForInitializer), + visitNode(node.condition, visitor, isExpression), + visitNode(node.incrementor, discardedValueVisitor, isExpression), + visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context) + ); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function visitForInStatement(node) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = factory2.updateForInStatement( + node, + visitForInitializer(node.initializer), + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function visitForOfStatement(node) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = factory2.updateForOfStatement( + node, + node.awaitModifier, + visitForInitializer(node.initializer), + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function shouldHoistForInitializer(node) { + return isVariableDeclarationList(node) && shouldHoistVariableDeclarationList(node); + } + function visitForInitializer(node) { + if (shouldHoistForInitializer(node)) { + let expressions; + for (const variable of node.declarations) { + expressions = append(expressions, transformInitializedVariable( + variable, + /*isExportedDeclaration*/ + false + )); + if (!variable.initializer) { + hoistBindingElement(variable); + } + } + return expressions ? factory2.inlineExpressions(expressions) : factory2.createOmittedExpression(); + } else { + return visitNode(node, discardedValueVisitor, isForInitializer); + } + } + function visitDoStatement(node) { + return factory2.updateDoStatement( + node, + visitIterationBody(node.statement, topLevelNestedVisitor, context), + visitNode(node.expression, visitor, isExpression) + ); + } + function visitWhileStatement(node) { + return factory2.updateWhileStatement( + node, + visitNode(node.expression, visitor, isExpression), + visitIterationBody(node.statement, topLevelNestedVisitor, context) + ); + } + function visitLabeledStatement(node) { + return factory2.updateLabeledStatement( + node, + node.label, + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) + ); + } + function visitWithStatement(node) { + return factory2.updateWithStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) + ); + } + function visitIfStatement(node) { + return factory2.updateIfStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)), + visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) + ); + } + function visitSwitchStatement(node) { + return factory2.updateSwitchStatement( + node, + visitNode(node.expression, visitor, isExpression), + Debug.checkDefined(visitNode(node.caseBlock, topLevelNestedVisitor, isCaseBlock)) + ); + } + function visitCaseBlock(node) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = factory2.updateCaseBlock( + node, + visitNodes2(node.clauses, topLevelNestedVisitor, isCaseOrDefaultClause) + ); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function visitCaseClause(node) { + return factory2.updateCaseClause( + node, + visitNode(node.expression, visitor, isExpression), + visitNodes2(node.statements, topLevelNestedVisitor, isStatement) + ); + } + function visitDefaultClause(node) { + return visitEachChild(node, topLevelNestedVisitor, context); + } + function visitTryStatement(node) { + return visitEachChild(node, topLevelNestedVisitor, context); + } + function visitCatchClause(node) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = factory2.updateCatchClause( + node, + node.variableDeclaration, + Debug.checkDefined(visitNode(node.block, topLevelNestedVisitor, isBlock)) + ); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function visitBlock(node) { + const savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer; + enclosingBlockScopedContainer = node; + node = visitEachChild(node, topLevelNestedVisitor, context); + enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer; + return node; + } + function visitorWorker(node, valueIsDiscarded) { + if (!(node.transformFlags & (4096 /* ContainsDestructuringAssignment */ | 8388608 /* ContainsDynamicImport */ | 268435456 /* ContainsUpdateExpressionForIdentifier */))) { + return node; + } + switch (node.kind) { + case 248 /* ForStatement */: + return visitForStatement( + node, + /*isTopLevel*/ + false + ); + case 244 /* ExpressionStatement */: + return visitExpressionStatement(node); + case 217 /* ParenthesizedExpression */: + return visitParenthesizedExpression(node, valueIsDiscarded); + case 354 /* PartiallyEmittedExpression */: + return visitPartiallyEmittedExpression(node, valueIsDiscarded); + case 226 /* BinaryExpression */: + if (isDestructuringAssignment(node)) { + return visitDestructuringAssignment(node, valueIsDiscarded); + } + break; + case 213 /* CallExpression */: + if (isImportCall(node)) { + return visitImportCallExpression(node); + } + break; + case 224 /* PrefixUnaryExpression */: + case 225 /* PostfixUnaryExpression */: + return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded); + } + return visitEachChild(node, visitor, context); + } + function visitor(node) { + return visitorWorker( + node, + /*valueIsDiscarded*/ + false + ); + } + function discardedValueVisitor(node) { + return visitorWorker( + node, + /*valueIsDiscarded*/ + true + ); + } + function visitExpressionStatement(node) { + return factory2.updateExpressionStatement(node, visitNode(node.expression, discardedValueVisitor, isExpression)); + } + function visitParenthesizedExpression(node, valueIsDiscarded) { + return factory2.updateParenthesizedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); + } + function visitPartiallyEmittedExpression(node, valueIsDiscarded) { + return factory2.updatePartiallyEmittedExpression(node, visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, isExpression)); + } + function visitImportCallExpression(node) { + const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions); + const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression); + const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument; + return factory2.createCallExpression( + factory2.createPropertyAccessExpression( + contextObject, + factory2.createIdentifier("import") + ), + /*typeArguments*/ + void 0, + argument ? [argument] : [] + ); + } + function visitDestructuringAssignment(node, valueIsDiscarded) { + if (hasExportedReferenceInDestructuringTarget(node.left)) { + return flattenDestructuringAssignment( + node, + visitor, + context, + 0 /* All */, + !valueIsDiscarded + ); + } + return visitEachChild(node, visitor, context); + } + function hasExportedReferenceInDestructuringTarget(node) { + if (isAssignmentExpression( + node, + /*excludeCompoundAssignment*/ + true + )) { + return hasExportedReferenceInDestructuringTarget(node.left); + } else if (isSpreadElement(node)) { + return hasExportedReferenceInDestructuringTarget(node.expression); + } else if (isObjectLiteralExpression(node)) { + return some(node.properties, hasExportedReferenceInDestructuringTarget); + } else if (isArrayLiteralExpression(node)) { + return some(node.elements, hasExportedReferenceInDestructuringTarget); + } else if (isShorthandPropertyAssignment(node)) { + return hasExportedReferenceInDestructuringTarget(node.name); + } else if (isPropertyAssignment(node)) { + return hasExportedReferenceInDestructuringTarget(node.initializer); + } else if (isIdentifier(node)) { + const container = resolver.getReferencedExportContainer(node); + return container !== void 0 && container.kind === 307 /* SourceFile */; + } else { + return false; + } + } + function visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded) { + if ((node.operator === 46 /* PlusPlusToken */ || node.operator === 47 /* MinusMinusToken */) && isIdentifier(node.operand) && !isGeneratedIdentifier(node.operand) && !isLocalName(node.operand) && !isDeclarationNameOfEnumOrNamespace(node.operand)) { + const exportedNames = getExports(node.operand); + if (exportedNames) { + let temp; + let expression = visitNode(node.operand, visitor, isExpression); + if (isPrefixUnaryExpression(node)) { + expression = factory2.updatePrefixUnaryExpression(node, expression); + } else { + expression = factory2.updatePostfixUnaryExpression(node, expression); + if (!valueIsDiscarded) { + temp = factory2.createTempVariable(hoistVariableDeclaration); + expression = factory2.createAssignment(temp, expression); + setTextRange(expression, node); + } + expression = factory2.createComma(expression, factory2.cloneNode(node.operand)); + setTextRange(expression, node); + } + for (const exportName of exportedNames) { + expression = createExportExpression(exportName, preventSubstitution(expression)); + } + if (temp) { + expression = factory2.createComma(expression, temp); + setTextRange(expression, node); + } + return expression; + } + } + return visitEachChild(node, visitor, context); + } + function modifierVisitor(node) { + switch (node.kind) { + case 95 /* ExportKeyword */: + case 90 /* DefaultKeyword */: + return void 0; + } + return node; + } + function onEmitNode(hint, node, emitCallback) { + if (node.kind === 307 /* SourceFile */) { + const id = getOriginalNodeId(node); + currentSourceFile = node; + moduleInfo = moduleInfoMap[id]; + exportFunction = exportFunctionsMap[id]; + noSubstitution = noSubstitutionMap[id]; + contextObject = contextObjectMap[id]; + if (noSubstitution) { + delete noSubstitutionMap[id]; + } + previousOnEmitNode(hint, node, emitCallback); + currentSourceFile = void 0; + moduleInfo = void 0; + exportFunction = void 0; + contextObject = void 0; + noSubstitution = void 0; + } else { + previousOnEmitNode(hint, node, emitCallback); + } + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (isSubstitutionPrevented(node)) { + return node; + } + if (hint === 1 /* Expression */) { + return substituteExpression(node); + } else if (hint === 4 /* Unspecified */) { + return substituteUnspecified(node); + } + return node; + } + function substituteUnspecified(node) { + switch (node.kind) { + case 304 /* ShorthandPropertyAssignment */: + return substituteShorthandPropertyAssignment(node); + } + return node; + } + function substituteShorthandPropertyAssignment(node) { + var _a, _b; + const name = node.name; + if (!isGeneratedIdentifier(name) && !isLocalName(name)) { + const importDeclaration = resolver.getReferencedImportDeclaration(name); + if (importDeclaration) { + if (isImportClause(importDeclaration)) { + return setTextRange( + factory2.createPropertyAssignment( + factory2.cloneNode(name), + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(importDeclaration.parent), + factory2.createIdentifier("default") + ) + ), + /*location*/ + node + ); + } else if (isImportSpecifier(importDeclaration)) { + return setTextRange( + factory2.createPropertyAssignment( + factory2.cloneNode(name), + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name) + ) + ), + /*location*/ + node + ); + } + } + } + return node; + } + function substituteExpression(node) { + switch (node.kind) { + case 80 /* Identifier */: + return substituteExpressionIdentifier(node); + case 226 /* BinaryExpression */: + return substituteBinaryExpression(node); + case 236 /* MetaProperty */: + return substituteMetaProperty(node); + } + return node; + } + function substituteExpressionIdentifier(node) { + var _a, _b; + if (getEmitFlags(node) & 8192 /* HelperName */) { + const externalHelpersModuleName = getExternalHelpersModuleName(currentSourceFile); + if (externalHelpersModuleName) { + return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); + } + return node; + } + if (!isGeneratedIdentifier(node) && !isLocalName(node)) { + const importDeclaration = resolver.getReferencedImportDeclaration(node); + if (importDeclaration) { + if (isImportClause(importDeclaration)) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(importDeclaration.parent), + factory2.createIdentifier("default") + ), + /*location*/ + node + ); + } else if (isImportSpecifier(importDeclaration)) { + return setTextRange( + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name) + ), + /*location*/ + node + ); + } + } + } + return node; + } + function substituteBinaryExpression(node) { + if (isAssignmentOperator(node.operatorToken.kind) && isIdentifier(node.left) && (!isGeneratedIdentifier(node.left) || isFileLevelReservedGeneratedIdentifier(node.left)) && !isLocalName(node.left)) { + const exportedNames = getExports(node.left); + if (exportedNames) { + let expression = node; + for (const exportName of exportedNames) { + expression = createExportExpression(exportName, preventSubstitution(expression)); + } + return expression; + } + } + return node; + } + function substituteMetaProperty(node) { + if (isImportMeta(node)) { + return factory2.createPropertyAccessExpression(contextObject, factory2.createIdentifier("meta")); + } + return node; + } + function getExports(name) { + let exportedNames; + const valueDeclaration = getReferencedDeclaration(name); + if (valueDeclaration) { + const exportContainer = resolver.getReferencedExportContainer( + name, + /*prefixLocals*/ + false + ); + if (exportContainer && exportContainer.kind === 307 /* SourceFile */) { + exportedNames = append(exportedNames, factory2.getDeclarationName(valueDeclaration)); + } + exportedNames = addRange(exportedNames, moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)]); + } else if (isGeneratedIdentifier(name) && isFileLevelReservedGeneratedIdentifier(name)) { + const exportSpecifiers = moduleInfo == null ? void 0 : moduleInfo.exportSpecifiers.get(name); + if (exportSpecifiers) { + const exportedNames2 = []; + for (const exportSpecifier of exportSpecifiers) { + exportedNames2.push(exportSpecifier.name); + } + return exportedNames2; + } + } + return exportedNames; + } + function getReferencedDeclaration(name) { + if (!isGeneratedIdentifier(name)) { + const importDeclaration = resolver.getReferencedImportDeclaration(name); + if (importDeclaration) return importDeclaration; + const valueDeclaration = resolver.getReferencedValueDeclaration(name); + if (valueDeclaration && (moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(valueDeclaration)])) return valueDeclaration; + const declarations = resolver.getReferencedValueDeclarations(name); + if (declarations) { + for (const declaration of declarations) { + if (declaration !== valueDeclaration && (moduleInfo == null ? void 0 : moduleInfo.exportedBindings[getOriginalNodeId(declaration)])) return declaration; + } + } + return valueDeclaration; + } + } + function preventSubstitution(node) { + if (noSubstitution === void 0) noSubstitution = []; + noSubstitution[getNodeId(node)] = true; + return node; + } + function isSubstitutionPrevented(node) { + return noSubstitution && node.id && noSubstitution[node.id]; + } +} + +// src/compiler/transformers/module/esnextAnd2015.ts +function transformECMAScriptModule(context) { + const { + factory: factory2, + getEmitHelperFactory: emitHelpers + } = context; + const host = context.getEmitHost(); + const resolver = context.getEmitResolver(); + const compilerOptions = context.getCompilerOptions(); + const languageVersion = getEmitScriptTarget(compilerOptions); + const previousOnEmitNode = context.onEmitNode; + const previousOnSubstituteNode = context.onSubstituteNode; + context.onEmitNode = onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.enableEmitNotification(307 /* SourceFile */); + context.enableSubstitution(80 /* Identifier */); + let helperNameSubstitutions; + let currentSourceFile; + let importRequireStatements; + return chainBundle(context, transformSourceFile); + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + if (isExternalModule(node) || getIsolatedModules(compilerOptions)) { + currentSourceFile = node; + importRequireStatements = void 0; + let result = updateExternalModule(node); + currentSourceFile = void 0; + if (importRequireStatements) { + result = factory2.updateSourceFile( + result, + setTextRange(factory2.createNodeArray(insertStatementsAfterCustomPrologue(result.statements.slice(), importRequireStatements)), result.statements) + ); + } + if (!isExternalModule(node) || getEmitModuleKind(compilerOptions) === 200 /* Preserve */ || some(result.statements, isExternalModuleIndicator)) { + return result; + } + return factory2.updateSourceFile( + result, + setTextRange(factory2.createNodeArray([...result.statements, createEmptyExports(factory2)]), result.statements) + ); + } + return node; + } + function updateExternalModule(node) { + const externalHelpersImportDeclaration = createExternalHelpersImportDeclarationIfNeeded(factory2, emitHelpers(), node, compilerOptions); + if (externalHelpersImportDeclaration) { + const statements = []; + const statementOffset = factory2.copyPrologue(node.statements, statements); + append(statements, externalHelpersImportDeclaration); + addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset)); + return factory2.updateSourceFile( + node, + setTextRange(factory2.createNodeArray(statements), node.statements) + ); + } else { + return visitEachChild(node, visitor, context); + } + } + function visitor(node) { + switch (node.kind) { + case 271 /* ImportEqualsDeclaration */: + return getEmitModuleKind(compilerOptions) >= 100 /* Node16 */ ? visitImportEqualsDeclaration(node) : void 0; + case 277 /* ExportAssignment */: + return visitExportAssignment(node); + case 278 /* ExportDeclaration */: + const exportDecl = node; + return visitExportDeclaration(exportDecl); + } + return node; + } + function createRequireCall(importNode) { + const moduleName = getExternalModuleNameLiteral(factory2, importNode, Debug.checkDefined(currentSourceFile), host, resolver, compilerOptions); + const args = []; + if (moduleName) { + args.push(moduleName); + } + if (getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { + return factory2.createCallExpression( + factory2.createIdentifier("require"), + /*typeArguments*/ + void 0, + args + ); + } + if (!importRequireStatements) { + const createRequireName = factory2.createUniqueName("_createRequire", 16 /* Optimistic */ | 32 /* FileLevel */); + const importStatement = factory2.createImportDeclaration( + /*modifiers*/ + void 0, + factory2.createImportClause( + /*isTypeOnly*/ + false, + /*name*/ + void 0, + factory2.createNamedImports([ + factory2.createImportSpecifier( + /*isTypeOnly*/ + false, + factory2.createIdentifier("createRequire"), + createRequireName + ) + ]) + ), + factory2.createStringLiteral("module"), + /*attributes*/ + void 0 + ); + const requireHelperName = factory2.createUniqueName("__require", 16 /* Optimistic */ | 32 /* FileLevel */); + const requireStatement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [ + factory2.createVariableDeclaration( + requireHelperName, + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + factory2.createCallExpression( + factory2.cloneNode(createRequireName), + /*typeArguments*/ + void 0, + [ + factory2.createPropertyAccessExpression(factory2.createMetaProperty(102 /* ImportKeyword */, factory2.createIdentifier("meta")), factory2.createIdentifier("url")) + ] + ) + ) + ], + /*flags*/ + languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ + ) + ); + importRequireStatements = [importStatement, requireStatement]; + } + const name = importRequireStatements[1].declarationList.declarations[0].name; + Debug.assertNode(name, isIdentifier); + return factory2.createCallExpression( + factory2.cloneNode(name), + /*typeArguments*/ + void 0, + args + ); + } + function visitImportEqualsDeclaration(node) { + Debug.assert(isExternalModuleImportEqualsDeclaration(node), "import= for internal module references should be handled in an earlier transformer."); + let statements; + statements = append( + statements, + setOriginalNode( + setTextRange( + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + [ + factory2.createVariableDeclaration( + factory2.cloneNode(node.name), + /*exclamationToken*/ + void 0, + /*type*/ + void 0, + createRequireCall(node) + ) + ], + /*flags*/ + languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */ + ) + ), + node + ), + node + ) + ); + statements = appendExportsOfImportEqualsDeclaration(statements, node); + return singleOrMany(statements); + } + function appendExportsOfImportEqualsDeclaration(statements, node) { + if (hasSyntacticModifier(node, 32 /* Export */)) { + statements = append( + statements, + factory2.createExportDeclaration( + /*modifiers*/ + void 0, + node.isTypeOnly, + factory2.createNamedExports([factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + /*propertyName*/ + void 0, + idText(node.name) + )]) + ) + ); + } + return statements; + } + function visitExportAssignment(node) { + if (node.isExportEquals) { + if (getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { + const statement = setOriginalNode( + factory2.createExpressionStatement( + factory2.createAssignment( + factory2.createPropertyAccessExpression( + factory2.createIdentifier("module"), + "exports" + ), + node.expression + ) + ), + node + ); + return statement; + } + return void 0; + } + return node; + } + function visitExportDeclaration(node) { + if (compilerOptions.module !== void 0 && compilerOptions.module > 5 /* ES2015 */) { + return node; + } + if (!node.exportClause || !isNamespaceExport(node.exportClause) || !node.moduleSpecifier) { + return node; + } + const oldIdentifier = node.exportClause.name; + const synthName = factory2.getGeneratedNameForNode(oldIdentifier); + const importDecl = factory2.createImportDeclaration( + /*modifiers*/ + void 0, + factory2.createImportClause( + /*isTypeOnly*/ + false, + /*name*/ + void 0, + factory2.createNamespaceImport( + synthName + ) + ), + node.moduleSpecifier, + node.attributes + ); + setOriginalNode(importDecl, node.exportClause); + const exportDecl = isExportNamespaceAsDefaultDeclaration(node) ? factory2.createExportDefault(synthName) : factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports([factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + synthName, + oldIdentifier + )]) + ); + setOriginalNode(exportDecl, node); + return [importDecl, exportDecl]; + } + function onEmitNode(hint, node, emitCallback) { + if (isSourceFile(node)) { + if ((isExternalModule(node) || getIsolatedModules(compilerOptions)) && compilerOptions.importHelpers) { + helperNameSubstitutions = /* @__PURE__ */ new Map(); + } + previousOnEmitNode(hint, node, emitCallback); + helperNameSubstitutions = void 0; + } else { + previousOnEmitNode(hint, node, emitCallback); + } + } + function onSubstituteNode(hint, node) { + node = previousOnSubstituteNode(hint, node); + if (helperNameSubstitutions && isIdentifier(node) && getEmitFlags(node) & 8192 /* HelperName */) { + return substituteHelperName(node); + } + return node; + } + function substituteHelperName(node) { + const name = idText(node); + let substitution = helperNameSubstitutions.get(name); + if (!substitution) { + helperNameSubstitutions.set(name, substitution = factory2.createUniqueName(name, 16 /* Optimistic */ | 32 /* FileLevel */)); + } + return substitution; + } +} + +// src/compiler/transformers/module/node.ts +function transformNodeModule(context) { + const previousOnSubstituteNode = context.onSubstituteNode; + const previousOnEmitNode = context.onEmitNode; + const esmTransform = transformECMAScriptModule(context); + const esmOnSubstituteNode = context.onSubstituteNode; + const esmOnEmitNode = context.onEmitNode; + context.onSubstituteNode = previousOnSubstituteNode; + context.onEmitNode = previousOnEmitNode; + const cjsTransform = transformModule(context); + const cjsOnSubstituteNode = context.onSubstituteNode; + const cjsOnEmitNode = context.onEmitNode; + context.onSubstituteNode = onSubstituteNode; + context.onEmitNode = onEmitNode; + context.enableSubstitution(307 /* SourceFile */); + context.enableEmitNotification(307 /* SourceFile */); + let currentSourceFile; + return transformSourceFileOrBundle; + function onSubstituteNode(hint, node) { + if (isSourceFile(node)) { + currentSourceFile = node; + return previousOnSubstituteNode(hint, node); + } else { + if (!currentSourceFile) { + return previousOnSubstituteNode(hint, node); + } + if (currentSourceFile.impliedNodeFormat === 99 /* ESNext */) { + return esmOnSubstituteNode(hint, node); + } + return cjsOnSubstituteNode(hint, node); + } + } + function onEmitNode(hint, node, emitCallback) { + if (isSourceFile(node)) { + currentSourceFile = node; + } + if (!currentSourceFile) { + return previousOnEmitNode(hint, node, emitCallback); + } + if (currentSourceFile.impliedNodeFormat === 99 /* ESNext */) { + return esmOnEmitNode(hint, node, emitCallback); + } + return cjsOnEmitNode(hint, node, emitCallback); + } + function getModuleTransformForFile(file) { + return file.impliedNodeFormat === 99 /* ESNext */ ? esmTransform : cjsTransform; + } + function transformSourceFile(node) { + if (node.isDeclarationFile) { + return node; + } + currentSourceFile = node; + const result = getModuleTransformForFile(node)(node); + currentSourceFile = void 0; + Debug.assert(isSourceFile(result)); + return result; + } + function transformSourceFileOrBundle(node) { + return node.kind === 307 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node); + } + function transformBundle(node) { + return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); + } +} + +// src/compiler/transformers/declarations/diagnostics.ts +function canProduceDiagnostics(node) { + return isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isBindingElement(node) || isSetAccessor(node) || isGetAccessor(node) || isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isParameter(node) || isTypeParameterDeclaration(node) || isExpressionWithTypeArguments(node) || isImportEqualsDeclaration(node) || isTypeAliasDeclaration(node) || isConstructorDeclaration(node) || isIndexSignatureDeclaration(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node) || isBinaryExpression(node) || isJSDocTypeAlias(node); +} +function createGetSymbolAccessibilityDiagnosticForNodeName(node) { + if (isSetAccessor(node) || isGetAccessor(node)) { + return getAccessorNameVisibilityError; + } else if (isMethodSignature(node) || isMethodDeclaration(node)) { + return getMethodNameVisibilityError; + } else { + return createGetSymbolAccessibilityDiagnosticForNode(node); + } + function getAccessorNameVisibilityError(symbolAccessibilityResult) { + const diagnosticMessage = getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult); + return diagnosticMessage !== void 0 ? { + diagnosticMessage, + errorNode: node, + typeName: node.name + } : void 0; + } + function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { + if (isStatic(node)) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; + } else if (node.parent.kind === 263 /* ClassDeclaration */) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; + } else { + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; + } + } + function getMethodNameVisibilityError(symbolAccessibilityResult) { + const diagnosticMessage = getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult); + return diagnosticMessage !== void 0 ? { + diagnosticMessage, + errorNode: node, + typeName: node.name + } : void 0; + } + function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) { + if (isStatic(node)) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1; + } else if (node.parent.kind === 263 /* ClassDeclaration */) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1; + } else { + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1; + } + } +} +function createGetSymbolAccessibilityDiagnosticForNode(node) { + if (isVariableDeclaration(node) || isPropertyDeclaration(node) || isPropertySignature(node) || isPropertyAccessExpression(node) || isElementAccessExpression(node) || isBinaryExpression(node) || isBindingElement(node) || isConstructorDeclaration(node)) { + return getVariableDeclarationTypeVisibilityError; + } else if (isSetAccessor(node) || isGetAccessor(node)) { + return getAccessorDeclarationTypeVisibilityError; + } else if (isConstructSignatureDeclaration(node) || isCallSignatureDeclaration(node) || isMethodDeclaration(node) || isMethodSignature(node) || isFunctionDeclaration(node) || isIndexSignatureDeclaration(node)) { + return getReturnTypeVisibilityError; + } else if (isParameter(node)) { + if (isParameterPropertyDeclaration(node, node.parent) && hasSyntacticModifier(node.parent, 2 /* Private */)) { + return getVariableDeclarationTypeVisibilityError; + } + return getParameterDeclarationTypeVisibilityError; + } else if (isTypeParameterDeclaration(node)) { + return getTypeParameterConstraintVisibilityError; + } else if (isExpressionWithTypeArguments(node)) { + return getHeritageClauseVisibilityError; + } else if (isImportEqualsDeclaration(node)) { + return getImportEntityNameVisibilityError; + } else if (isTypeAliasDeclaration(node) || isJSDocTypeAlias(node)) { + return getTypeAliasDeclarationVisibilityError; + } else { + return Debug.assertNever(node, `Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind(node.kind)}`); + } + function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { + if (node.kind === 260 /* VariableDeclaration */ || node.kind === 208 /* BindingElement */) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Exported_variable_0_has_or_is_using_private_name_1; + } else if (node.kind === 172 /* PropertyDeclaration */ || node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */ || node.kind === 226 /* BinaryExpression */ || node.kind === 171 /* PropertySignature */ || node.kind === 169 /* Parameter */ && hasSyntacticModifier(node.parent, 2 /* Private */)) { + if (isStatic(node)) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1; + } else if (node.parent.kind === 263 /* ClassDeclaration */ || node.kind === 169 /* Parameter */) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1; + } else { + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1; + } + } + } + function getVariableDeclarationTypeVisibilityError(symbolAccessibilityResult) { + const diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult); + return diagnosticMessage !== void 0 ? { + diagnosticMessage, + errorNode: node, + typeName: node.name + } : void 0; + } + function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) { + let diagnosticMessage; + if (node.kind === 178 /* SetAccessor */) { + if (isStatic(node)) { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1; + } else { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1; + } + } else { + if (isStatic(node)) { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1; + } else { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1; + } + } + return { + diagnosticMessage, + errorNode: node.name, + typeName: node.name + }; + } + function getReturnTypeVisibilityError(symbolAccessibilityResult) { + let diagnosticMessage; + switch (node.kind) { + case 180 /* ConstructSignature */: + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 179 /* CallSignature */: + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 181 /* IndexSignature */: + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0; + break; + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + if (isStatic(node)) { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0; + } else if (node.parent.kind === 263 /* ClassDeclaration */) { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0; + } else { + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0; + } + break; + case 262 /* FunctionDeclaration */: + diagnosticMessage = symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named : Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 : Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0; + break; + default: + return Debug.fail("This is unknown kind for signature: " + node.kind); + } + return { + diagnosticMessage, + errorNode: node.name || node + }; + } + function getParameterDeclarationTypeVisibilityError(symbolAccessibilityResult) { + const diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult); + return diagnosticMessage !== void 0 ? { + diagnosticMessage, + errorNode: node, + typeName: node.name + } : void 0; + } + function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) { + switch (node.parent.kind) { + case 176 /* Constructor */: + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1; + case 180 /* ConstructSignature */: + case 185 /* ConstructorType */: + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; + case 179 /* CallSignature */: + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; + case 181 /* IndexSignature */: + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1; + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + if (isStatic(node.parent)) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; + } else { + return symbolAccessibilityResult.errorModuleName ? Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; + } + case 262 /* FunctionDeclaration */: + case 184 /* FunctionType */: + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1; + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + return symbolAccessibilityResult.errorModuleName ? symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ? Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named : Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 : Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1; + default: + return Debug.fail(`Unknown parent for parameter: ${Debug.formatSyntaxKind(node.parent.kind)}`); + } + } + function getTypeParameterConstraintVisibilityError() { + let diagnosticMessage; + switch (node.parent.kind) { + case 263 /* ClassDeclaration */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1; + break; + case 264 /* InterfaceDeclaration */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1; + break; + case 200 /* MappedType */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1; + break; + case 185 /* ConstructorType */: + case 180 /* ConstructSignature */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1; + break; + case 179 /* CallSignature */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1; + break; + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + if (isStatic(node.parent)) { + diagnosticMessage = Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1; + } else if (node.parent.parent.kind === 263 /* ClassDeclaration */) { + diagnosticMessage = Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1; + } else { + diagnosticMessage = Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1; + } + break; + case 184 /* FunctionType */: + case 262 /* FunctionDeclaration */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1; + break; + case 195 /* InferType */: + diagnosticMessage = Diagnostics.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1; + break; + case 265 /* TypeAliasDeclaration */: + diagnosticMessage = Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1; + break; + default: + return Debug.fail("This is unknown parent for type parameter: " + node.parent.kind); + } + return { + diagnosticMessage, + errorNode: node, + typeName: node.name + }; + } + function getHeritageClauseVisibilityError() { + let diagnosticMessage; + if (isClassDeclaration(node.parent.parent)) { + diagnosticMessage = isHeritageClause(node.parent) && node.parent.token === 119 /* ImplementsKeyword */ ? Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 : node.parent.parent.name ? Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1 : Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0; + } else { + diagnosticMessage = Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1; + } + return { + diagnosticMessage, + errorNode: node, + typeName: getNameOfDeclaration(node.parent.parent) + }; + } + function getImportEntityNameVisibilityError() { + return { + diagnosticMessage: Diagnostics.Import_declaration_0_is_using_private_name_1, + errorNode: node, + typeName: node.name + }; + } + function getTypeAliasDeclarationVisibilityError(symbolAccessibilityResult) { + return { + diagnosticMessage: symbolAccessibilityResult.errorModuleName ? Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2 : Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1, + errorNode: isJSDocTypeAlias(node) ? Debug.checkDefined(node.typeExpression) : node.type, + typeName: isJSDocTypeAlias(node) ? getNameOfDeclaration(node) : node.name + }; + } +} +function createGetIsolatedDeclarationErrors(resolver) { + const relatedSuggestionByDeclarationKind = { + [219 /* ArrowFunction */]: Diagnostics.Add_a_return_type_to_the_function_expression, + [218 /* FunctionExpression */]: Diagnostics.Add_a_return_type_to_the_function_expression, + [174 /* MethodDeclaration */]: Diagnostics.Add_a_return_type_to_the_method, + [177 /* GetAccessor */]: Diagnostics.Add_a_return_type_to_the_get_accessor_declaration, + [178 /* SetAccessor */]: Diagnostics.Add_a_type_to_parameter_of_the_set_accessor_declaration, + [262 /* FunctionDeclaration */]: Diagnostics.Add_a_return_type_to_the_function_declaration, + [180 /* ConstructSignature */]: Diagnostics.Add_a_return_type_to_the_function_declaration, + [169 /* Parameter */]: Diagnostics.Add_a_type_annotation_to_the_parameter_0, + [260 /* VariableDeclaration */]: Diagnostics.Add_a_type_annotation_to_the_variable_0, + [172 /* PropertyDeclaration */]: Diagnostics.Add_a_type_annotation_to_the_property_0, + [171 /* PropertySignature */]: Diagnostics.Add_a_type_annotation_to_the_property_0, + [277 /* ExportAssignment */]: Diagnostics.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it + }; + const errorByDeclarationKind = { + [218 /* FunctionExpression */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [262 /* FunctionDeclaration */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [219 /* ArrowFunction */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [174 /* MethodDeclaration */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [180 /* ConstructSignature */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [177 /* GetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [178 /* SetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [169 /* Parameter */]: Diagnostics.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations, + [260 /* VariableDeclaration */]: Diagnostics.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations, + [172 /* PropertyDeclaration */]: Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations, + [171 /* PropertySignature */]: Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations, + [167 /* ComputedPropertyName */]: Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations, + [305 /* SpreadAssignment */]: Diagnostics.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations, + [304 /* ShorthandPropertyAssignment */]: Diagnostics.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations, + [209 /* ArrayLiteralExpression */]: Diagnostics.Only_const_arrays_can_be_inferred_with_isolatedDeclarations, + [277 /* ExportAssignment */]: Diagnostics.Default_exports_can_t_be_inferred_with_isolatedDeclarations, + [230 /* SpreadElement */]: Diagnostics.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations + }; + return getDiagnostic; + function getDiagnostic(node) { + const heritageClause = findAncestor(node, isHeritageClause); + if (heritageClause) { + return createDiagnosticForNode(node, Diagnostics.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations); + } + if ((isPartOfTypeNode(node) || isTypeQueryNode(node.parent)) && (isEntityName(node) || isEntityNameExpression(node))) { + return createEntityInTypeNodeError(node); + } + Debug.type(node); + switch (node.kind) { + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return createAccessorTypeError(node); + case 167 /* ComputedPropertyName */: + case 304 /* ShorthandPropertyAssignment */: + case 305 /* SpreadAssignment */: + return createObjectLiteralError(node); + case 209 /* ArrayLiteralExpression */: + case 230 /* SpreadElement */: + return createArrayLiteralError(node); + case 174 /* MethodDeclaration */: + case 180 /* ConstructSignature */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 262 /* FunctionDeclaration */: + return createReturnTypeError(node); + case 208 /* BindingElement */: + return createBindingElementError(node); + case 172 /* PropertyDeclaration */: + case 260 /* VariableDeclaration */: + return createVariableOrPropertyError(node); + case 169 /* Parameter */: + return createParameterError(node); + case 303 /* PropertyAssignment */: + return createExpressionError(node.initializer); + case 231 /* ClassExpression */: + return createClassExpressionError(node); + default: + assertType(node); + return createExpressionError(node); + } + } + function findNearestDeclaration(node) { + const result = findAncestor(node, (n) => isExportAssignment(n) || isStatement(n) || isVariableDeclaration(n) || isPropertyDeclaration(n) || isParameter(n)); + if (!result) return void 0; + if (isExportAssignment(result)) return result; + if (isReturnStatement(result)) { + return findAncestor(result, (n) => isFunctionLikeDeclaration(n) && !isConstructorDeclaration(n)); + } + return isStatement(result) ? void 0 : result; + } + function createAccessorTypeError(node) { + const { getAccessor, setAccessor } = getAllAccessorDeclarations(node.symbol.declarations, node); + const targetNode = (isSetAccessor(node) ? node.parameters[0] : node) ?? node; + const diag2 = createDiagnosticForNode(targetNode, errorByDeclarationKind[node.kind]); + if (setAccessor) { + addRelatedInfo(diag2, createDiagnosticForNode(setAccessor, relatedSuggestionByDeclarationKind[setAccessor.kind])); + } + if (getAccessor) { + addRelatedInfo(diag2, createDiagnosticForNode(getAccessor, relatedSuggestionByDeclarationKind[getAccessor.kind])); + } + return diag2; + } + function addParentDeclarationRelatedInfo(node, diag2) { + const parentDeclaration = findNearestDeclaration(node); + if (parentDeclaration) { + const targetStr = isExportAssignment(parentDeclaration) || !parentDeclaration.name ? "" : getTextOfNode( + parentDeclaration.name, + /*includeTrivia*/ + false + ); + addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); + } + return diag2; + } + function createObjectLiteralError(node) { + const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); + addParentDeclarationRelatedInfo(node, diag2); + return diag2; + } + function createArrayLiteralError(node) { + const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); + addParentDeclarationRelatedInfo(node, diag2); + return diag2; + } + function createReturnTypeError(node) { + const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); + addParentDeclarationRelatedInfo(node, diag2); + addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind])); + return diag2; + } + function createBindingElementError(node) { + return createDiagnosticForNode(node, Diagnostics.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations); + } + function createVariableOrPropertyError(node) { + const diag2 = createDiagnosticForNode(node, errorByDeclarationKind[node.kind]); + const targetStr = getTextOfNode( + node.name, + /*includeTrivia*/ + false + ); + addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind], targetStr)); + return diag2; + } + function createParameterError(node) { + if (isSetAccessor(node.parent)) { + return createAccessorTypeError(node.parent); + } + const addUndefined = resolver.requiresAddingImplicitUndefined(node); + if (!addUndefined && node.initializer) { + return createExpressionError(node.initializer); + } + const message = addUndefined ? Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations : errorByDeclarationKind[node.kind]; + const diag2 = createDiagnosticForNode(node, message); + const targetStr = getTextOfNode( + node.name, + /*includeTrivia*/ + false + ); + addRelatedInfo(diag2, createDiagnosticForNode(node, relatedSuggestionByDeclarationKind[node.kind], targetStr)); + return diag2; + } + function createClassExpressionError(node) { + return createExpressionError(node, Diagnostics.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations); + } + function createEntityInTypeNodeError(node) { + const diag2 = createDiagnosticForNode(node, Diagnostics.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations, getTextOfNode( + node, + /*includeTrivia*/ + false + )); + addParentDeclarationRelatedInfo(node, diag2); + return diag2; + } + function createExpressionError(node, diagnosticMessage) { + const parentDeclaration = findNearestDeclaration(node); + let diag2; + if (parentDeclaration) { + const targetStr = isExportAssignment(parentDeclaration) || !parentDeclaration.name ? "" : getTextOfNode( + parentDeclaration.name, + /*includeTrivia*/ + false + ); + const parent = findAncestor(node.parent, (n) => isExportAssignment(n) || (isStatement(n) ? "quit" : !isParenthesizedExpression(n) && !isTypeAssertionExpression(n) && !isAsExpression(n))); + if (parentDeclaration === parent) { + diag2 = createDiagnosticForNode(node, diagnosticMessage ?? errorByDeclarationKind[parentDeclaration.kind]); + addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); + } else { + diag2 = createDiagnosticForNode(node, diagnosticMessage ?? Diagnostics.Expression_type_can_t_be_inferred_with_isolatedDeclarations); + addRelatedInfo(diag2, createDiagnosticForNode(parentDeclaration, relatedSuggestionByDeclarationKind[parentDeclaration.kind], targetStr)); + addRelatedInfo(diag2, createDiagnosticForNode(node, Diagnostics.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)); + } + } else { + diag2 = createDiagnosticForNode(node, diagnosticMessage ?? Diagnostics.Expression_type_can_t_be_inferred_with_isolatedDeclarations); + } + return diag2; + } +} + +// src/compiler/transformers/declarations.ts +function getDeclarationDiagnostics(host, resolver, file) { + const compilerOptions = host.getCompilerOptions(); + const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson); + const result = transformNodes( + resolver, + host, + factory, + compilerOptions, + file ? contains(files, file) ? [file] : emptyArray : files, + [transformDeclarations], + /*allowDtsFiles*/ + false + ); + return result.diagnostics; +} +var declarationEmitNodeBuilderFlags = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 1 /* AllowUnresolvedNames */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */; +function transformDeclarations(context) { + const throwDiagnostic = () => Debug.fail("Diagnostic emitted without context"); + let getSymbolAccessibilityDiagnostic = throwDiagnostic; + let needsDeclare = true; + let isBundledEmit = false; + let resultHasExternalModuleIndicator = false; + let needsScopeFixMarker = false; + let resultHasScopeMarker = false; + let enclosingDeclaration; + let lateMarkedStatements; + let lateStatementReplacementMap; + let suppressNewDiagnosticContexts; + const { factory: factory2 } = context; + const host = context.getEmitHost(); + const symbolTracker = { + trackSymbol, + reportInaccessibleThisError, + reportInaccessibleUniqueSymbolError, + reportCyclicStructureError, + reportPrivateInBaseOfClassExpression, + reportLikelyUnsafeImportRequiredError, + reportTruncationError, + moduleResolverHost: host, + reportNonlocalAugmentation, + reportNonSerializableProperty, + reportInferenceFallback + }; + let errorNameNode; + let errorFallbackNode; + let currentSourceFile; + let rawReferencedFiles; + let rawTypeReferenceDirectives; + let rawLibReferenceDirectives; + const resolver = context.getEmitResolver(); + const options = context.getCompilerOptions(); + const getIsolatedDeclarationError = createGetIsolatedDeclarationErrors(resolver); + const { stripInternal, isolatedDeclarations } = options; + return transformRoot; + function reportExpandoFunctionErrors(node) { + resolver.getPropertiesOfContainerFunction(node).forEach((p) => { + if (isExpandoPropertyDeclaration(p.valueDeclaration)) { + const errorTarget = isBinaryExpression(p.valueDeclaration) ? p.valueDeclaration.left : p.valueDeclaration; + context.addDiagnostic(createDiagnosticForNode( + errorTarget, + Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function + )); + } + }); + } + function reportInferenceFallback(node) { + if (!isolatedDeclarations || isSourceFileJS(currentSourceFile)) return; + if (getSourceFileOfNode(node) !== currentSourceFile) return; + if (isVariableDeclaration(node) && resolver.isExpandoFunctionDeclaration(node)) { + reportExpandoFunctionErrors(node); + } else { + context.addDiagnostic(getIsolatedDeclarationError(node)); + } + } + function handleSymbolAccessibilityError(symbolAccessibilityResult) { + if (symbolAccessibilityResult.accessibility === 0 /* Accessible */) { + if (symbolAccessibilityResult.aliasesToMakeVisible) { + if (!lateMarkedStatements) { + lateMarkedStatements = symbolAccessibilityResult.aliasesToMakeVisible; + } else { + for (const ref of symbolAccessibilityResult.aliasesToMakeVisible) { + pushIfUnique(lateMarkedStatements, ref); + } + } + } + } else if (symbolAccessibilityResult.accessibility !== 3 /* NotResolved */) { + const errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult); + if (errorInfo) { + if (errorInfo.typeName) { + context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, getTextOfNode(errorInfo.typeName), symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); + } else { + context.addDiagnostic(createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); + } + return true; + } + } + return false; + } + function trackSymbol(symbol, enclosingDeclaration2, meaning) { + if (symbol.flags & 262144 /* TypeParameter */) return false; + const issuedDiagnostic = handleSymbolAccessibilityError(resolver.isSymbolAccessible( + symbol, + enclosingDeclaration2, + meaning, + /*shouldComputeAliasToMarkVisible*/ + true + )); + return issuedDiagnostic; + } + function reportPrivateInBaseOfClassExpression(propertyName) { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic( + createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, propertyName) + ); + } + } + function errorDeclarationNameWithFallback() { + return errorNameNode ? declarationNameToString(errorNameNode) : errorFallbackNode && getNameOfDeclaration(errorFallbackNode) ? declarationNameToString(getNameOfDeclaration(errorFallbackNode)) : errorFallbackNode && isExportAssignment(errorFallbackNode) ? errorFallbackNode.isExportEquals ? "export=" : "default" : "(Missing)"; + } + function reportInaccessibleUniqueSymbolError() { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "unique symbol")); + } + } + function reportCyclicStructureError() { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, errorDeclarationNameWithFallback())); + } + } + function reportInaccessibleThisError() { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "this")); + } + } + function reportLikelyUnsafeImportRequiredError(specifier) { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier)); + } + } + function reportTruncationError() { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed)); + } + } + function reportNonlocalAugmentation(containingFile, parentSymbol, symbol) { + var _a; + const primaryDeclaration = (_a = parentSymbol.declarations) == null ? void 0 : _a.find((d) => getSourceFileOfNode(d) === containingFile); + const augmentingDeclarations = filter(symbol.declarations, (d) => getSourceFileOfNode(d) !== containingFile); + if (primaryDeclaration && augmentingDeclarations) { + for (const augmentations of augmentingDeclarations) { + context.addDiagnostic(addRelatedInfo( + createDiagnosticForNode(augmentations, Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), + createDiagnosticForNode(primaryDeclaration, Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file) + )); + } + } + } + function reportNonSerializableProperty(propertyName) { + if (errorNameNode || errorFallbackNode) { + context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, propertyName)); + } + } + function transformDeclarationsForJS(sourceFile) { + const oldDiag = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = (s) => s.errorNode && canProduceDiagnostics(s.errorNode) ? createGetSymbolAccessibilityDiagnosticForNode(s.errorNode)(s) : { + diagnosticMessage: s.errorModuleName ? Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit, + errorNode: s.errorNode || sourceFile + }; + const result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, symbolTracker); + getSymbolAccessibilityDiagnostic = oldDiag; + return result; + } + function transformRoot(node) { + if (node.kind === 307 /* SourceFile */ && node.isDeclarationFile) { + return node; + } + if (node.kind === 308 /* Bundle */) { + isBundledEmit = true; + rawReferencedFiles = []; + rawTypeReferenceDirectives = []; + rawLibReferenceDirectives = []; + let hasNoDefaultLib = false; + const bundle = factory2.createBundle( + map(node.sourceFiles, (sourceFile) => { + if (sourceFile.isDeclarationFile) return void 0; + hasNoDefaultLib = hasNoDefaultLib || sourceFile.hasNoDefaultLib; + currentSourceFile = sourceFile; + enclosingDeclaration = sourceFile; + lateMarkedStatements = void 0; + suppressNewDiagnosticContexts = false; + lateStatementReplacementMap = /* @__PURE__ */ new Map(); + getSymbolAccessibilityDiagnostic = throwDiagnostic; + needsScopeFixMarker = false; + resultHasScopeMarker = false; + collectFileReferences(sourceFile); + if (isExternalOrCommonJsModule(sourceFile) || isJsonSourceFile(sourceFile)) { + resultHasExternalModuleIndicator = false; + needsDeclare = false; + const statements = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement); + const newFile = factory2.updateSourceFile( + sourceFile, + [factory2.createModuleDeclaration( + [factory2.createModifier(138 /* DeclareKeyword */)], + factory2.createStringLiteral(getResolvedExternalModuleName(context.getEmitHost(), sourceFile)), + factory2.createModuleBlock(setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), sourceFile.statements)) + )], + /*isDeclarationFile*/ + true, + /*referencedFiles*/ + [], + /*typeReferences*/ + [], + /*hasNoDefaultLib*/ + false, + /*libReferences*/ + [] + ); + return newFile; + } + needsDeclare = true; + const updated = isSourceFileJS(sourceFile) ? factory2.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes2(sourceFile.statements, visitDeclarationStatements, isStatement); + return factory2.updateSourceFile( + sourceFile, + transformAndReplaceLatePaintedStatements(updated), + /*isDeclarationFile*/ + true, + /*referencedFiles*/ + [], + /*typeReferences*/ + [], + /*hasNoDefaultLib*/ + false, + /*libReferences*/ + [] + ); + }) + ); + const outputFilePath2 = getDirectoryPath(normalizeSlashes(getOutputPathsFor( + node, + host, + /*forceDtsPaths*/ + true + ).declarationFilePath)); + bundle.syntheticFileReferences = getReferencedFiles(outputFilePath2); + bundle.syntheticTypeReferences = getTypeReferences(); + bundle.syntheticLibReferences = getLibReferences(); + bundle.hasNoDefaultLib = hasNoDefaultLib; + return bundle; + } + needsDeclare = true; + needsScopeFixMarker = false; + resultHasScopeMarker = false; + enclosingDeclaration = node; + currentSourceFile = node; + getSymbolAccessibilityDiagnostic = throwDiagnostic; + isBundledEmit = false; + resultHasExternalModuleIndicator = false; + suppressNewDiagnosticContexts = false; + lateMarkedStatements = void 0; + lateStatementReplacementMap = /* @__PURE__ */ new Map(); + rawReferencedFiles = []; + rawTypeReferenceDirectives = []; + rawLibReferenceDirectives = []; + collectFileReferences(currentSourceFile); + let combinedStatements; + if (isSourceFileJS(currentSourceFile)) { + combinedStatements = factory2.createNodeArray(transformDeclarationsForJS(node)); + } else { + const statements = visitNodes2(node.statements, visitDeclarationStatements, isStatement); + combinedStatements = setTextRange(factory2.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), node.statements); + if (isExternalModule(node) && (!resultHasExternalModuleIndicator || needsScopeFixMarker && !resultHasScopeMarker)) { + combinedStatements = setTextRange(factory2.createNodeArray([...combinedStatements, createEmptyExports(factory2)]), combinedStatements); + } + } + const outputFilePath = getDirectoryPath(normalizeSlashes(getOutputPathsFor( + node, + host, + /*forceDtsPaths*/ + true + ).declarationFilePath)); + return factory2.updateSourceFile( + node, + combinedStatements, + /*isDeclarationFile*/ + true, + getReferencedFiles(outputFilePath), + getTypeReferences(), + node.hasNoDefaultLib, + getLibReferences() + ); + function collectFileReferences(sourceFile) { + rawReferencedFiles = concatenate(rawReferencedFiles, map(sourceFile.referencedFiles, (f) => [sourceFile, f])); + rawTypeReferenceDirectives = concatenate(rawTypeReferenceDirectives, sourceFile.typeReferenceDirectives); + rawLibReferenceDirectives = concatenate(rawLibReferenceDirectives, sourceFile.libReferenceDirectives); + } + function copyFileReferenceAsSynthetic(ref) { + const newRef = { ...ref }; + newRef.pos = -1; + newRef.end = -1; + return newRef; + } + function getTypeReferences() { + return mapDefined(rawTypeReferenceDirectives, (ref) => { + if (!ref.preserve) return void 0; + return copyFileReferenceAsSynthetic(ref); + }); + } + function getLibReferences() { + return mapDefined(rawLibReferenceDirectives, (ref) => { + if (!ref.preserve) return void 0; + return copyFileReferenceAsSynthetic(ref); + }); + } + function getReferencedFiles(outputFilePath2) { + return mapDefined(rawReferencedFiles, ([sourceFile, ref]) => { + if (!ref.preserve) return void 0; + const file = host.getSourceFileFromReference(sourceFile, ref); + if (!file) { + return void 0; + } + let declFileName; + if (file.isDeclarationFile) { + declFileName = file.fileName; + } else { + if (isBundledEmit && contains(node.sourceFiles, file)) return; + const paths = getOutputPathsFor( + file, + host, + /*forceDtsPaths*/ + true + ); + declFileName = paths.declarationFilePath || paths.jsFilePath || file.fileName; + } + if (!declFileName) return void 0; + const fileName = getRelativePathToDirectoryOrUrl( + outputFilePath2, + declFileName, + host.getCurrentDirectory(), + host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + false + ); + const newRef = copyFileReferenceAsSynthetic(ref); + newRef.fileName = fileName; + return newRef; + }); + } + } + function filterBindingPatternInitializers(name) { + if (name.kind === 80 /* Identifier */) { + return name; + } else { + if (name.kind === 207 /* ArrayBindingPattern */) { + return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement)); + } else { + return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement)); + } + } + function visitBindingElement(elem) { + if (elem.kind === 232 /* OmittedExpression */) { + return elem; + } + if (elem.propertyName && isComputedPropertyName(elem.propertyName) && isEntityNameExpression(elem.propertyName.expression)) { + checkEntityNameVisibility(elem.propertyName.expression, enclosingDeclaration); + } + return factory2.updateBindingElement( + elem, + elem.dotDotDotToken, + elem.propertyName, + filterBindingPatternInitializers(elem.name), + /*initializer*/ + void 0 + ); + } + } + function ensureParameter(p, modifierMask, type) { + let oldDiag; + if (!suppressNewDiagnosticContexts) { + oldDiag = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p); + } + const newParam = factory2.updateParameterDeclaration( + p, + maskModifiers(factory2, p, modifierMask), + p.dotDotDotToken, + filterBindingPatternInitializers(p.name), + resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(58 /* QuestionToken */) : void 0, + ensureType( + p, + type || p.type, + /*ignorePrivate*/ + true + ), + // Ignore private param props, since this type is going straight back into a param + ensureNoInitializer(p) + ); + if (!suppressNewDiagnosticContexts) { + getSymbolAccessibilityDiagnostic = oldDiag; + } + return newParam; + } + function shouldPrintWithInitializer(node) { + return canHaveLiteralInitializer(node) && !!node.initializer && resolver.isLiteralConstDeclaration(getParseTreeNode(node)); + } + function ensureNoInitializer(node) { + if (shouldPrintWithInitializer(node)) { + const unwrappedInitializer = unwrapParenthesizedExpression(node.initializer); + if (!isPrimitiveLiteralValue(unwrappedInitializer)) { + reportInferenceFallback(node); + } + return resolver.createLiteralConstValue(getParseTreeNode(node, canHaveLiteralInitializer), symbolTracker); + } + return void 0; + } + function ensureType(node, type, ignorePrivate) { + if (!ignorePrivate && hasEffectiveModifier(node, 2 /* Private */)) { + return; + } + if (shouldPrintWithInitializer(node)) { + return; + } + const shouldAddImplicitUndefined = node.kind === 169 /* Parameter */ && resolver.requiresAddingImplicitUndefined(node); + if (type && !shouldAddImplicitUndefined) { + return visitNode(type, visitDeclarationSubtree, isTypeNode); + } + errorNameNode = node.name; + let oldDiag; + if (!suppressNewDiagnosticContexts) { + oldDiag = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); + } + let typeNode; + switch (node.kind) { + case 169 /* Parameter */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: + typeNode = resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker); + break; + case 262 /* FunctionDeclaration */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 179 /* CallSignature */: + typeNode = resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker); + break; + default: + Debug.assertNever(node); + } + errorNameNode = void 0; + if (!suppressNewDiagnosticContexts) { + getSymbolAccessibilityDiagnostic = oldDiag; + } + return typeNode ?? factory2.createKeywordTypeNode(133 /* AnyKeyword */); + } + function isDeclarationAndNotVisible(node) { + node = getParseTreeNode(node); + switch (node.kind) { + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + return !resolver.isDeclarationVisible(node); + case 260 /* VariableDeclaration */: + return !getBindingNameVisible(node); + case 271 /* ImportEqualsDeclaration */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + return false; + case 175 /* ClassStaticBlockDeclaration */: + return true; + } + return false; + } + function shouldEmitFunctionProperties(input) { + var _a; + if (input.body) { + return true; + } + const overloadSignatures = (_a = input.symbol.declarations) == null ? void 0 : _a.filter((decl) => isFunctionDeclaration(decl) && !decl.body); + return !overloadSignatures || overloadSignatures.indexOf(input) === overloadSignatures.length - 1; + } + function getBindingNameVisible(elem) { + if (isOmittedExpression(elem)) { + return false; + } + if (isBindingPattern(elem.name)) { + return some(elem.name.elements, getBindingNameVisible); + } else { + return resolver.isDeclarationVisible(elem); + } + } + function updateParamsList(node, params, modifierMask) { + if (hasEffectiveModifier(node, 2 /* Private */)) { + return factory2.createNodeArray(); + } + const newParams = map(params, (p) => ensureParameter(p, modifierMask)); + if (!newParams) { + return factory2.createNodeArray(); + } + return factory2.createNodeArray(newParams, params.hasTrailingComma); + } + function updateAccessorParamsList(input, isPrivate) { + let newParams; + if (!isPrivate) { + const thisParameter = getThisParameter(input); + if (thisParameter) { + newParams = [ensureParameter(thisParameter)]; + } + } + if (isSetAccessorDeclaration(input)) { + let newValueParameter; + if (!isPrivate) { + const valueParameter = getSetAccessorValueParameter(input); + if (valueParameter) { + const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, getAllAccessorDeclarations(isObjectLiteralExpression(input.parent) ? input.parent.properties : input.parent.members, input)); + newValueParameter = ensureParameter( + valueParameter, + /*modifierMask*/ + void 0, + accessorType + ); + } + } + if (!newValueParameter) { + newValueParameter = factory2.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "value" + ); + } + newParams = append(newParams, newValueParameter); + } + return factory2.createNodeArray(newParams || emptyArray); + } + function ensureTypeParams(node, params) { + return hasEffectiveModifier(node, 2 /* Private */) ? void 0 : visitNodes2(params, visitDeclarationSubtree, isTypeParameterDeclaration); + } + function isEnclosingDeclaration(node) { + return isSourceFile(node) || isTypeAliasDeclaration(node) || isModuleDeclaration(node) || isClassDeclaration(node) || isInterfaceDeclaration(node) || isFunctionLike(node) || isIndexSignatureDeclaration(node) || isMappedTypeNode(node); + } + function checkEntityNameVisibility(entityName, enclosingDeclaration2) { + const visibilityResult = resolver.isEntityNameVisible(entityName, enclosingDeclaration2); + handleSymbolAccessibilityError(visibilityResult); + } + function preserveJsDoc(updated, original) { + if (hasJSDocNodes(updated) && hasJSDocNodes(original)) { + updated.jsDoc = original.jsDoc; + } + return setCommentRange(updated, getCommentRange(original)); + } + function rewriteModuleSpecifier(parent, input) { + if (!input) return void 0; + resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent.kind !== 267 /* ModuleDeclaration */ && parent.kind !== 205 /* ImportType */; + if (isStringLiteralLike(input)) { + if (isBundledEmit) { + const newName = getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent); + if (newName) { + return factory2.createStringLiteral(newName); + } + } + } + return input; + } + function transformImportEqualsDeclaration(decl) { + if (!resolver.isDeclarationVisible(decl)) return; + if (decl.moduleReference.kind === 283 /* ExternalModuleReference */) { + const specifier = getExternalModuleImportEqualsDeclarationExpression(decl); + return factory2.updateImportEqualsDeclaration( + decl, + decl.modifiers, + decl.isTypeOnly, + decl.name, + factory2.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier(decl, specifier)) + ); + } else { + const oldDiag = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(decl); + checkEntityNameVisibility(decl.moduleReference, enclosingDeclaration); + getSymbolAccessibilityDiagnostic = oldDiag; + return decl; + } + } + function transformImportDeclaration(decl) { + if (!decl.importClause) { + return factory2.updateImportDeclaration( + decl, + decl.modifiers, + decl.importClause, + rewriteModuleSpecifier(decl, decl.moduleSpecifier), + tryGetResolutionModeOverride(decl.attributes) + ); + } + const visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : void 0; + if (!decl.importClause.namedBindings) { + return visibleDefaultBinding && factory2.updateImportDeclaration( + decl, + decl.modifiers, + factory2.updateImportClause( + decl.importClause, + decl.importClause.isTypeOnly, + visibleDefaultBinding, + /*namedBindings*/ + void 0 + ), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), + tryGetResolutionModeOverride(decl.attributes) + ); + } + if (decl.importClause.namedBindings.kind === 274 /* NamespaceImport */) { + const namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : ( + /*namedBindings*/ + void 0 + ); + return visibleDefaultBinding || namedBindings ? factory2.updateImportDeclaration( + decl, + decl.modifiers, + factory2.updateImportClause( + decl.importClause, + decl.importClause.isTypeOnly, + visibleDefaultBinding, + namedBindings + ), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), + tryGetResolutionModeOverride(decl.attributes) + ) : void 0; + } + const bindingList = mapDefined(decl.importClause.namedBindings.elements, (b) => resolver.isDeclarationVisible(b) ? b : void 0); + if (bindingList && bindingList.length || visibleDefaultBinding) { + return factory2.updateImportDeclaration( + decl, + decl.modifiers, + factory2.updateImportClause( + decl.importClause, + decl.importClause.isTypeOnly, + visibleDefaultBinding, + bindingList && bindingList.length ? factory2.updateNamedImports(decl.importClause.namedBindings, bindingList) : void 0 + ), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), + tryGetResolutionModeOverride(decl.attributes) + ); + } + if (resolver.isImportRequiredByAugmentation(decl)) { + if (isolatedDeclarations) { + context.addDiagnostic(createDiagnosticForNode(decl, Diagnostics.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)); + } + return factory2.updateImportDeclaration( + decl, + decl.modifiers, + /*importClause*/ + void 0, + rewriteModuleSpecifier(decl, decl.moduleSpecifier), + tryGetResolutionModeOverride(decl.attributes) + ); + } + } + function tryGetResolutionModeOverride(node) { + const mode = getResolutionModeOverride(node); + return node && mode !== void 0 ? node : void 0; + } + function transformAndReplaceLatePaintedStatements(statements) { + while (length(lateMarkedStatements)) { + const i = lateMarkedStatements.shift(); + if (!isLateVisibilityPaintedStatement(i)) { + return Debug.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Debug.formatSyntaxKind(i.kind)}`); + } + const priorNeedsDeclare = needsDeclare; + needsDeclare = i.parent && isSourceFile(i.parent) && !(isExternalModule(i.parent) && isBundledEmit); + const result = transformTopLevelDeclaration(i); + needsDeclare = priorNeedsDeclare; + lateStatementReplacementMap.set(getOriginalNodeId(i), result); + } + return visitNodes2(statements, visitLateVisibilityMarkedStatements, isStatement); + function visitLateVisibilityMarkedStatements(statement) { + if (isLateVisibilityPaintedStatement(statement)) { + const key = getOriginalNodeId(statement); + if (lateStatementReplacementMap.has(key)) { + const result = lateStatementReplacementMap.get(key); + lateStatementReplacementMap.delete(key); + if (result) { + if (isArray(result) ? some(result, needsScopeMarker) : needsScopeMarker(result)) { + needsScopeFixMarker = true; + } + if (isSourceFile(statement.parent) && (isArray(result) ? some(result, isExternalModuleIndicator) : isExternalModuleIndicator(result))) { + resultHasExternalModuleIndicator = true; + } + } + return result; + } + } + return statement; + } + } + function visitDeclarationSubtree(input) { + if (shouldStripInternal(input)) return; + if (isDeclaration(input)) { + if (isDeclarationAndNotVisible(input)) return; + if (hasDynamicName(input)) { + if (isolatedDeclarations) { + if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) { + if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) { + context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations)); + return; + } else if ( + // Type declarations just need to double-check that the input computed name is an entity name expression + (isInterfaceDeclaration(input.parent) || isTypeLiteralNode(input.parent)) && !isEntityNameExpression(input.name.expression) + ) { + context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations)); + return; + } + } + } else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) { + return; + } + } + } + if (isFunctionLike(input) && resolver.isImplementationOfOverload(input)) return; + if (isSemicolonClassElement(input)) return; + let previousEnclosingDeclaration; + if (isEnclosingDeclaration(input)) { + previousEnclosingDeclaration = enclosingDeclaration; + enclosingDeclaration = input; + } + const oldDiag = getSymbolAccessibilityDiagnostic; + const canProduceDiagnostic = canProduceDiagnostics(input); + const oldWithinObjectLiteralType = suppressNewDiagnosticContexts; + let shouldEnterSuppressNewDiagnosticsContextContext = (input.kind === 187 /* TypeLiteral */ || input.kind === 200 /* MappedType */) && input.parent.kind !== 265 /* TypeAliasDeclaration */; + if (isMethodDeclaration(input) || isMethodSignature(input)) { + if (hasEffectiveModifier(input, 2 /* Private */)) { + if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input) return; + return cleanup(factory2.createPropertyDeclaration( + ensureModifiers(input), + input.name, + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + )); + } + } + if (canProduceDiagnostic && !suppressNewDiagnosticContexts) { + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input); + } + if (isTypeQueryNode(input)) { + checkEntityNameVisibility(input.exprName, enclosingDeclaration); + } + if (shouldEnterSuppressNewDiagnosticsContextContext) { + suppressNewDiagnosticContexts = true; + } + if (isProcessedComponent(input)) { + switch (input.kind) { + case 233 /* ExpressionWithTypeArguments */: { + if (isEntityName(input.expression) || isEntityNameExpression(input.expression)) { + checkEntityNameVisibility(input.expression, enclosingDeclaration); + } + const node = visitEachChild(input, visitDeclarationSubtree, context); + return cleanup(factory2.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments)); + } + case 183 /* TypeReference */: { + checkEntityNameVisibility(input.typeName, enclosingDeclaration); + const node = visitEachChild(input, visitDeclarationSubtree, context); + return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments)); + } + case 180 /* ConstructSignature */: + return cleanup(factory2.updateConstructSignature( + input, + ensureTypeParams(input, input.typeParameters), + updateParamsList(input, input.parameters), + ensureType(input, input.type) + )); + case 176 /* Constructor */: { + const ctor = factory2.createConstructorDeclaration( + /*modifiers*/ + ensureModifiers(input), + updateParamsList(input, input.parameters, 0 /* None */), + /*body*/ + void 0 + ); + return cleanup(ctor); + } + case 174 /* MethodDeclaration */: { + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + const sig = factory2.createMethodDeclaration( + ensureModifiers(input), + /*asteriskToken*/ + void 0, + input.name, + input.questionToken, + ensureTypeParams(input, input.typeParameters), + updateParamsList(input, input.parameters), + ensureType(input, input.type), + /*body*/ + void 0 + ); + return cleanup(sig); + } + case 177 /* GetAccessor */: { + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, getAllAccessorDeclarations(isObjectLiteralExpression(input.parent) ? input.parent.properties : input.parent.members, input)); + return cleanup(factory2.updateGetAccessorDeclaration( + input, + ensureModifiers(input), + input.name, + updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)), + ensureType(input, accessorType), + /*body*/ + void 0 + )); + } + case 178 /* SetAccessor */: { + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + return cleanup(factory2.updateSetAccessorDeclaration( + input, + ensureModifiers(input), + input.name, + updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)), + /*body*/ + void 0 + )); + } + case 172 /* PropertyDeclaration */: + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + return cleanup(factory2.updatePropertyDeclaration( + input, + ensureModifiers(input), + input.name, + input.questionToken, + ensureType(input, input.type), + ensureNoInitializer(input) + )); + case 171 /* PropertySignature */: + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + return cleanup(factory2.updatePropertySignature( + input, + ensureModifiers(input), + input.name, + input.questionToken, + ensureType(input, input.type) + )); + case 173 /* MethodSignature */: { + if (isPrivateIdentifier(input.name)) { + return cleanup( + /*returnValue*/ + void 0 + ); + } + return cleanup(factory2.updateMethodSignature( + input, + ensureModifiers(input), + input.name, + input.questionToken, + ensureTypeParams(input, input.typeParameters), + updateParamsList(input, input.parameters), + ensureType(input, input.type) + )); + } + case 179 /* CallSignature */: { + return cleanup( + factory2.updateCallSignature( + input, + ensureTypeParams(input, input.typeParameters), + updateParamsList(input, input.parameters), + ensureType(input, input.type) + ) + ); + } + case 181 /* IndexSignature */: { + return cleanup(factory2.updateIndexSignature( + input, + ensureModifiers(input), + updateParamsList(input, input.parameters), + visitNode(input.type, visitDeclarationSubtree, isTypeNode) || factory2.createKeywordTypeNode(133 /* AnyKeyword */) + )); + } + case 260 /* VariableDeclaration */: { + if (isBindingPattern(input.name)) { + return recreateBindingPattern(input.name); + } + shouldEnterSuppressNewDiagnosticsContextContext = true; + suppressNewDiagnosticContexts = true; + return cleanup(factory2.updateVariableDeclaration( + input, + input.name, + /*exclamationToken*/ + void 0, + ensureType(input, input.type), + ensureNoInitializer(input) + )); + } + case 168 /* TypeParameter */: { + if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) { + return cleanup(factory2.updateTypeParameterDeclaration( + input, + input.modifiers, + input.name, + /*constraint*/ + void 0, + /*defaultType*/ + void 0 + )); + } + return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); + } + case 194 /* ConditionalType */: { + const checkType = visitNode(input.checkType, visitDeclarationSubtree, isTypeNode); + const extendsType = visitNode(input.extendsType, visitDeclarationSubtree, isTypeNode); + const oldEnclosingDecl = enclosingDeclaration; + enclosingDeclaration = input.trueType; + const trueType = visitNode(input.trueType, visitDeclarationSubtree, isTypeNode); + enclosingDeclaration = oldEnclosingDecl; + const falseType = visitNode(input.falseType, visitDeclarationSubtree, isTypeNode); + Debug.assert(checkType); + Debug.assert(extendsType); + Debug.assert(trueType); + Debug.assert(falseType); + return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType)); + } + case 184 /* FunctionType */: { + return cleanup(factory2.updateFunctionTypeNode( + input, + visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), + updateParamsList(input, input.parameters), + Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) + )); + } + case 185 /* ConstructorType */: { + return cleanup(factory2.updateConstructorTypeNode( + input, + ensureModifiers(input), + visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), + updateParamsList(input, input.parameters), + Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) + )); + } + case 205 /* ImportType */: { + if (!isLiteralImportTypeNode(input)) return cleanup(input); + return cleanup(factory2.updateImportTypeNode( + input, + factory2.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), + input.attributes, + input.qualifier, + visitNodes2(input.typeArguments, visitDeclarationSubtree, isTypeNode), + input.isTypeOf + )); + } + default: + Debug.assertNever(input, `Attempted to process unhandled node kind: ${Debug.formatSyntaxKind(input.kind)}`); + } + } + if (isTupleTypeNode(input) && getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === getLineAndCharacterOfPosition(currentSourceFile, input.end).line) { + setEmitFlags(input, 1 /* SingleLine */); + } + return cleanup(visitEachChild(input, visitDeclarationSubtree, context)); + function cleanup(returnValue) { + if (returnValue && canProduceDiagnostic && hasDynamicName(input)) { + checkName(input); + } + if (isEnclosingDeclaration(input)) { + enclosingDeclaration = previousEnclosingDeclaration; + } + if (canProduceDiagnostic && !suppressNewDiagnosticContexts) { + getSymbolAccessibilityDiagnostic = oldDiag; + } + if (shouldEnterSuppressNewDiagnosticsContextContext) { + suppressNewDiagnosticContexts = oldWithinObjectLiteralType; + } + if (returnValue === input) { + return returnValue; + } + return returnValue && setOriginalNode(preserveJsDoc(returnValue, input), input); + } + } + function isPrivateMethodTypeParameter(node) { + return node.parent.kind === 174 /* MethodDeclaration */ && hasEffectiveModifier(node.parent, 2 /* Private */); + } + function visitDeclarationStatements(input) { + if (!isPreservedDeclarationStatement(input)) { + return; + } + if (shouldStripInternal(input)) return; + switch (input.kind) { + case 278 /* ExportDeclaration */: { + if (isSourceFile(input.parent)) { + resultHasExternalModuleIndicator = true; + } + resultHasScopeMarker = true; + return factory2.updateExportDeclaration( + input, + input.modifiers, + input.isTypeOnly, + input.exportClause, + rewriteModuleSpecifier(input, input.moduleSpecifier), + tryGetResolutionModeOverride(input.attributes) + ); + } + case 277 /* ExportAssignment */: { + if (isSourceFile(input.parent)) { + resultHasExternalModuleIndicator = true; + } + resultHasScopeMarker = true; + if (input.expression.kind === 80 /* Identifier */) { + return input; + } else { + const newId = factory2.createUniqueName("_default", 16 /* Optimistic */); + getSymbolAccessibilityDiagnostic = () => ({ + diagnosticMessage: Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0, + errorNode: input + }); + errorFallbackNode = input; + const varDecl = factory2.createVariableDeclaration( + newId, + /*exclamationToken*/ + void 0, + resolver.createTypeOfExpression(input.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), + /*initializer*/ + void 0 + ); + errorFallbackNode = void 0; + const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(138 /* DeclareKeyword */)] : [], factory2.createVariableDeclarationList([varDecl], 2 /* Const */)); + preserveJsDoc(statement, input); + removeAllComments(input); + return [statement, factory2.updateExportAssignment(input, input.modifiers, newId)]; + } + } + } + const result = transformTopLevelDeclaration(input); + lateStatementReplacementMap.set(getOriginalNodeId(input), result); + return input; + } + function stripExportModifiers(statement) { + if (isImportEqualsDeclaration(statement) || hasEffectiveModifier(statement, 2048 /* Default */) || !canHaveModifiers(statement)) { + return statement; + } + const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(statement) & (131071 /* All */ ^ 32 /* Export */)); + return factory2.replaceModifiers(statement, modifiers); + } + function updateModuleDeclarationAndKeyword(node, modifiers, name, body) { + const updated = factory2.updateModuleDeclaration(node, modifiers, name, body); + if (isAmbientModule(updated) || updated.flags & 32 /* Namespace */) { + return updated; + } + const fixed = factory2.createModuleDeclaration( + updated.modifiers, + updated.name, + updated.body, + updated.flags | 32 /* Namespace */ + ); + setOriginalNode(fixed, updated); + setTextRange(fixed, updated); + return fixed; + } + function transformTopLevelDeclaration(input) { + if (lateMarkedStatements) { + while (orderedRemoveItem(lateMarkedStatements, input)) ; + } + if (shouldStripInternal(input)) return; + switch (input.kind) { + case 271 /* ImportEqualsDeclaration */: { + return transformImportEqualsDeclaration(input); + } + case 272 /* ImportDeclaration */: { + return transformImportDeclaration(input); + } + } + if (isDeclaration(input) && isDeclarationAndNotVisible(input)) return; + if (isJSDocImportTag(input)) return; + if (isFunctionLike(input) && resolver.isImplementationOfOverload(input)) return; + let previousEnclosingDeclaration; + if (isEnclosingDeclaration(input)) { + previousEnclosingDeclaration = enclosingDeclaration; + enclosingDeclaration = input; + } + const canProdiceDiagnostic = canProduceDiagnostics(input); + const oldDiag = getSymbolAccessibilityDiagnostic; + if (canProdiceDiagnostic) { + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(input); + } + const previousNeedsDeclare = needsDeclare; + switch (input.kind) { + case 265 /* TypeAliasDeclaration */: { + needsDeclare = false; + const clean2 = cleanup(factory2.updateTypeAliasDeclaration( + input, + ensureModifiers(input), + input.name, + visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration), + Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode)) + )); + needsDeclare = previousNeedsDeclare; + return clean2; + } + case 264 /* InterfaceDeclaration */: { + return cleanup(factory2.updateInterfaceDeclaration( + input, + ensureModifiers(input), + input.name, + ensureTypeParams(input, input.typeParameters), + transformHeritageClauses(input.heritageClauses), + visitNodes2(input.members, visitDeclarationSubtree, isTypeElement) + )); + } + case 262 /* FunctionDeclaration */: { + const clean2 = cleanup(factory2.updateFunctionDeclaration( + input, + ensureModifiers(input), + /*asteriskToken*/ + void 0, + input.name, + ensureTypeParams(input, input.typeParameters), + updateParamsList(input, input.parameters), + ensureType(input, input.type), + /*body*/ + void 0 + )); + if (clean2 && resolver.isExpandoFunctionDeclaration(input) && shouldEmitFunctionProperties(input)) { + const props = resolver.getPropertiesOfContainerFunction(input); + if (isolatedDeclarations) { + reportExpandoFunctionErrors(input); + } + const fakespace = parseNodeFactory.createModuleDeclaration( + /*modifiers*/ + void 0, + clean2.name || factory2.createIdentifier("_default"), + factory2.createModuleBlock([]), + 32 /* Namespace */ + ); + setParent(fakespace, enclosingDeclaration); + fakespace.locals = createSymbolTable(props); + fakespace.symbol = props[0].parent; + const exportMappings = []; + let declarations = mapDefined(props, (p) => { + if (!isExpandoPropertyDeclaration(p.valueDeclaration)) { + return void 0; + } + const nameStr = unescapeLeadingUnderscores(p.escapedName); + if (!isIdentifierText(nameStr, 99 /* ESNext */)) { + return void 0; + } + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration); + const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags | -2147483648 /* NoSyntacticPrinter */, symbolTracker); + getSymbolAccessibilityDiagnostic = oldDiag; + const isNonContextualKeywordName = isStringANonContextualKeyword(nameStr); + const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p.valueDeclaration) : factory2.createIdentifier(nameStr); + if (isNonContextualKeywordName) { + exportMappings.push([name, nameStr]); + } + const varDecl = factory2.createVariableDeclaration( + name, + /*exclamationToken*/ + void 0, + type, + /*initializer*/ + void 0 + ); + return factory2.createVariableStatement(isNonContextualKeywordName ? void 0 : [factory2.createToken(95 /* ExportKeyword */)], factory2.createVariableDeclarationList([varDecl])); + }); + if (!exportMappings.length) { + declarations = mapDefined(declarations, (declaration) => factory2.replaceModifiers(declaration, 0 /* None */)); + } else { + declarations.push(factory2.createExportDeclaration( + /*modifiers*/ + void 0, + /*isTypeOnly*/ + false, + factory2.createNamedExports(map(exportMappings, ([gen, exp]) => { + return factory2.createExportSpecifier( + /*isTypeOnly*/ + false, + gen, + exp + ); + })) + )); + } + const namespaceDecl = factory2.createModuleDeclaration(ensureModifiers(input), input.name, factory2.createModuleBlock(declarations), 32 /* Namespace */); + if (!hasEffectiveModifier(clean2, 2048 /* Default */)) { + return [clean2, namespaceDecl]; + } + const modifiers = factory2.createModifiersFromModifierFlags(getEffectiveModifierFlags(clean2) & ~2080 /* ExportDefault */ | 128 /* Ambient */); + const cleanDeclaration = factory2.updateFunctionDeclaration( + clean2, + modifiers, + /*asteriskToken*/ + void 0, + clean2.name, + clean2.typeParameters, + clean2.parameters, + clean2.type, + /*body*/ + void 0 + ); + const namespaceDeclaration = factory2.updateModuleDeclaration( + namespaceDecl, + modifiers, + namespaceDecl.name, + namespaceDecl.body + ); + const exportDefaultDeclaration = factory2.createExportAssignment( + /*modifiers*/ + void 0, + /*isExportEquals*/ + false, + namespaceDecl.name + ); + if (isSourceFile(input.parent)) { + resultHasExternalModuleIndicator = true; + } + resultHasScopeMarker = true; + return [cleanDeclaration, namespaceDeclaration, exportDefaultDeclaration]; + } else { + return clean2; + } + } + case 267 /* ModuleDeclaration */: { + needsDeclare = false; + const inner = input.body; + if (inner && inner.kind === 268 /* ModuleBlock */) { + const oldNeedsScopeFix = needsScopeFixMarker; + const oldHasScopeFix = resultHasScopeMarker; + resultHasScopeMarker = false; + needsScopeFixMarker = false; + const statements = visitNodes2(inner.statements, visitDeclarationStatements, isStatement); + let lateStatements = transformAndReplaceLatePaintedStatements(statements); + if (input.flags & 33554432 /* Ambient */) { + needsScopeFixMarker = false; + } + if (!isGlobalScopeAugmentation(input) && !hasScopeMarker2(lateStatements) && !resultHasScopeMarker) { + if (needsScopeFixMarker) { + lateStatements = factory2.createNodeArray([...lateStatements, createEmptyExports(factory2)]); + } else { + lateStatements = visitNodes2(lateStatements, stripExportModifiers, isStatement); + } + } + const body = factory2.updateModuleBlock(inner, lateStatements); + needsDeclare = previousNeedsDeclare; + needsScopeFixMarker = oldNeedsScopeFix; + resultHasScopeMarker = oldHasScopeFix; + const mods = ensureModifiers(input); + return cleanup(updateModuleDeclarationAndKeyword( + input, + mods, + isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, + body + )); + } else { + needsDeclare = previousNeedsDeclare; + const mods = ensureModifiers(input); + needsDeclare = false; + visitNode(inner, visitDeclarationStatements); + const id = getOriginalNodeId(inner); + const body = lateStatementReplacementMap.get(id); + lateStatementReplacementMap.delete(id); + return cleanup(updateModuleDeclarationAndKeyword( + input, + mods, + input.name, + body + )); + } + } + case 263 /* ClassDeclaration */: { + errorNameNode = input.name; + errorFallbackNode = input; + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + const typeParameters = ensureTypeParams(input, input.typeParameters); + const ctor = getFirstConstructorWithBody(input); + let parameterProperties; + if (ctor) { + const oldDiag2 = getSymbolAccessibilityDiagnostic; + parameterProperties = compact(flatMap(ctor.parameters, (param) => { + if (!hasSyntacticModifier(param, 31 /* ParameterPropertyModifier */) || shouldStripInternal(param)) return; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(param); + if (param.name.kind === 80 /* Identifier */) { + return preserveJsDoc( + factory2.createPropertyDeclaration( + ensureModifiers(param), + param.name, + param.questionToken, + ensureType(param, param.type), + ensureNoInitializer(param) + ), + param + ); + } else { + return walkBindingPattern(param.name); + } + function walkBindingPattern(pattern) { + let elems; + for (const elem of pattern.elements) { + if (isOmittedExpression(elem)) continue; + if (isBindingPattern(elem.name)) { + elems = concatenate(elems, walkBindingPattern(elem.name)); + } + elems = elems || []; + elems.push(factory2.createPropertyDeclaration( + ensureModifiers(param), + elem.name, + /*questionOrExclamationToken*/ + void 0, + ensureType( + elem, + /*type*/ + void 0 + ), + /*initializer*/ + void 0 + )); + } + return elems; + } + })); + getSymbolAccessibilityDiagnostic = oldDiag2; + } + const hasPrivateIdentifier = some(input.members, (member) => !!member.name && isPrivateIdentifier(member.name)); + const privateIdentifier = hasPrivateIdentifier ? [ + factory2.createPropertyDeclaration( + /*modifiers*/ + void 0, + factory2.createPrivateIdentifier("#private"), + /*questionOrExclamationToken*/ + void 0, + /*type*/ + void 0, + /*initializer*/ + void 0 + ) + ] : void 0; + const memberNodes = concatenate(concatenate(privateIdentifier, parameterProperties), visitNodes2(input.members, visitDeclarationSubtree, isClassElement)); + const members = factory2.createNodeArray(memberNodes); + const extendsClause = getEffectiveBaseTypeNode(input); + if (extendsClause && !isEntityNameExpression(extendsClause.expression) && extendsClause.expression.kind !== 106 /* NullKeyword */) { + const oldId = input.name ? unescapeLeadingUnderscores(input.name.escapedText) : "default"; + const newId = factory2.createUniqueName(`${oldId}_base`, 16 /* Optimistic */); + getSymbolAccessibilityDiagnostic = () => ({ + diagnosticMessage: Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1, + errorNode: extendsClause, + typeName: input.name + }); + const varDecl = factory2.createVariableDeclaration( + newId, + /*exclamationToken*/ + void 0, + resolver.createTypeOfExpression(extendsClause.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), + /*initializer*/ + void 0 + ); + const statement = factory2.createVariableStatement(needsDeclare ? [factory2.createModifier(138 /* DeclareKeyword */)] : [], factory2.createVariableDeclarationList([varDecl], 2 /* Const */)); + const heritageClauses = factory2.createNodeArray(map(input.heritageClauses, (clause) => { + if (clause.token === 96 /* ExtendsKeyword */) { + const oldDiag2 = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(clause.types[0]); + const newClause = factory2.updateHeritageClause(clause, map(clause.types, (t) => factory2.updateExpressionWithTypeArguments(t, newId, visitNodes2(t.typeArguments, visitDeclarationSubtree, isTypeNode)))); + getSymbolAccessibilityDiagnostic = oldDiag2; + return newClause; + } + return factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(filter(clause.types, (t) => isEntityNameExpression(t.expression) || t.expression.kind === 106 /* NullKeyword */)), visitDeclarationSubtree, isExpressionWithTypeArguments)); + })); + return [ + statement, + cleanup(factory2.updateClassDeclaration( + input, + modifiers, + input.name, + typeParameters, + heritageClauses, + members + )) + ]; + } else { + const heritageClauses = transformHeritageClauses(input.heritageClauses); + return cleanup(factory2.updateClassDeclaration( + input, + modifiers, + input.name, + typeParameters, + heritageClauses, + members + )); + } + } + case 243 /* VariableStatement */: { + return cleanup(transformVariableStatement(input)); + } + case 266 /* EnumDeclaration */: { + return cleanup(factory2.updateEnumDeclaration( + input, + factory2.createNodeArray(ensureModifiers(input)), + input.name, + factory2.createNodeArray(mapDefined(input.members, (m) => { + if (shouldStripInternal(m)) return; + const enumValue = resolver.getEnumMemberValue(m); + const constValue = enumValue == null ? void 0 : enumValue.value; + if (isolatedDeclarations && m.initializer && (enumValue == null ? void 0 : enumValue.hasExternalReferences) && // This will be its own compiler error instead, so don't report. + !isComputedPropertyName(m.name)) { + context.addDiagnostic(createDiagnosticForNode(m, Diagnostics.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations)); + } + const newInitializer = constValue === void 0 ? void 0 : typeof constValue === "string" ? factory2.createStringLiteral(constValue) : constValue < 0 ? factory2.createPrefixUnaryExpression(41 /* MinusToken */, factory2.createNumericLiteral(-constValue)) : factory2.createNumericLiteral(constValue); + return preserveJsDoc(factory2.updateEnumMember(m, m.name, newInitializer), m); + })) + )); + } + } + return Debug.assertNever(input, `Unhandled top-level node in declaration emit: ${Debug.formatSyntaxKind(input.kind)}`); + function cleanup(node) { + if (isEnclosingDeclaration(input)) { + enclosingDeclaration = previousEnclosingDeclaration; + } + if (canProdiceDiagnostic) { + getSymbolAccessibilityDiagnostic = oldDiag; + } + if (input.kind === 267 /* ModuleDeclaration */) { + needsDeclare = previousNeedsDeclare; + } + if (node === input) { + return node; + } + errorFallbackNode = void 0; + errorNameNode = void 0; + return node && setOriginalNode(preserveJsDoc(node, input), input); + } + } + function transformVariableStatement(input) { + if (!forEach(input.declarationList.declarations, getBindingNameVisible)) return; + const nodes = visitNodes2(input.declarationList.declarations, visitDeclarationSubtree, isVariableDeclaration); + if (!length(nodes)) return; + const modifiers = factory2.createNodeArray(ensureModifiers(input)); + let declList; + if (isVarUsing(input.declarationList) || isVarAwaitUsing(input.declarationList)) { + declList = factory2.createVariableDeclarationList(nodes, 2 /* Const */); + setOriginalNode(declList, input.declarationList); + setTextRange(declList, input.declarationList); + setCommentRange(declList, input.declarationList); + } else { + declList = factory2.updateVariableDeclarationList(input.declarationList, nodes); + } + return factory2.updateVariableStatement(input, modifiers, declList); + } + function recreateBindingPattern(d) { + return flatten(mapDefined(d.elements, (e) => recreateBindingElement(e))); + } + function recreateBindingElement(e) { + if (e.kind === 232 /* OmittedExpression */) { + return; + } + if (e.name) { + if (!getBindingNameVisible(e)) return; + if (isBindingPattern(e.name)) { + return recreateBindingPattern(e.name); + } else { + return factory2.createVariableDeclaration( + e.name, + /*exclamationToken*/ + void 0, + ensureType( + e, + /*type*/ + void 0 + ), + /*initializer*/ + void 0 + ); + } + } + } + function checkName(node) { + let oldDiag; + if (!suppressNewDiagnosticContexts) { + oldDiag = getSymbolAccessibilityDiagnostic; + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNodeName(node); + } + errorNameNode = node.name; + Debug.assert(hasDynamicName(node)); + const decl = node; + const entityName = decl.name.expression; + checkEntityNameVisibility(entityName, enclosingDeclaration); + if (!suppressNewDiagnosticContexts) { + getSymbolAccessibilityDiagnostic = oldDiag; + } + errorNameNode = void 0; + } + function shouldStripInternal(node) { + return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile); + } + function isScopeMarker2(node) { + return isExportAssignment(node) || isExportDeclaration(node); + } + function hasScopeMarker2(statements) { + return some(statements, isScopeMarker2); + } + function ensureModifiers(node) { + const currentFlags = getEffectiveModifierFlags(node); + const newFlags = ensureModifierFlags(node); + if (currentFlags === newFlags) { + return visitArray(node.modifiers, (n) => tryCast(n, isModifier), isModifier); + } + return factory2.createModifiersFromModifierFlags(newFlags); + } + function ensureModifierFlags(node) { + let mask = 131071 /* All */ ^ (1 /* Public */ | 1024 /* Async */ | 16 /* Override */); + let additions = needsDeclare && !isAlwaysType(node) ? 128 /* Ambient */ : 0 /* None */; + const parentIsFile = node.parent.kind === 307 /* SourceFile */; + if (!parentIsFile || isBundledEmit && parentIsFile && isExternalModule(node.parent)) { + mask ^= 128 /* Ambient */; + additions = 0 /* None */; + } + return maskModifierFlags(node, mask, additions); + } + function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) { + let accessorType = getTypeAnnotationFromAccessor(node); + if (!accessorType && node !== accessors.firstAccessor) { + accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor); + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.firstAccessor); + } + if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) { + accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor); + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.secondAccessor); + } + return accessorType; + } + function transformHeritageClauses(nodes) { + return factory2.createNodeArray(filter( + map(nodes, (clause) => factory2.updateHeritageClause( + clause, + visitNodes2( + factory2.createNodeArray(filter(clause.types, (t) => { + return isEntityNameExpression(t.expression) || clause.token === 96 /* ExtendsKeyword */ && t.expression.kind === 106 /* NullKeyword */; + })), + visitDeclarationSubtree, + isExpressionWithTypeArguments + ) + )), + (clause) => clause.types && !!clause.types.length + )); + } +} +function isAlwaysType(node) { + if (node.kind === 264 /* InterfaceDeclaration */) { + return true; + } + return false; +} +function maskModifiers(factory2, node, modifierMask, modifierAdditions) { + return factory2.createModifiersFromModifierFlags(maskModifierFlags(node, modifierMask, modifierAdditions)); +} +function maskModifierFlags(node, modifierMask = 131071 /* All */ ^ 1 /* Public */, modifierAdditions = 0 /* None */) { + let flags = getEffectiveModifierFlags(node) & modifierMask | modifierAdditions; + if (flags & 2048 /* Default */ && !(flags & 32 /* Export */)) { + flags ^= 32 /* Export */; + } + if (flags & 2048 /* Default */ && flags & 128 /* Ambient */) { + flags ^= 128 /* Ambient */; + } + return flags; +} +function getTypeAnnotationFromAccessor(accessor) { + if (accessor) { + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + } +} +function canHaveLiteralInitializer(node) { + switch (node.kind) { + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return !hasEffectiveModifier(node, 2 /* Private */); + case 169 /* Parameter */: + case 260 /* VariableDeclaration */: + return true; + } + return false; +} +function isPreservedDeclarationStatement(node) { + switch (node.kind) { + case 262 /* FunctionDeclaration */: + case 267 /* ModuleDeclaration */: + case 271 /* ImportEqualsDeclaration */: + case 264 /* InterfaceDeclaration */: + case 263 /* ClassDeclaration */: + case 265 /* TypeAliasDeclaration */: + case 266 /* EnumDeclaration */: + case 243 /* VariableStatement */: + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + case 277 /* ExportAssignment */: + return true; + } + return false; +} +function isProcessedComponent(node) { + switch (node.kind) { + case 180 /* ConstructSignature */: + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 181 /* IndexSignature */: + case 260 /* VariableDeclaration */: + case 168 /* TypeParameter */: + case 233 /* ExpressionWithTypeArguments */: + case 183 /* TypeReference */: + case 194 /* ConditionalType */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 205 /* ImportType */: + return true; + } + return false; +} + +// src/compiler/transformer.ts +function getModuleTransformer(moduleKind) { + switch (moduleKind) { + case 99 /* ESNext */: + case 7 /* ES2022 */: + case 6 /* ES2020 */: + case 5 /* ES2015 */: + case 200 /* Preserve */: + return transformECMAScriptModule; + case 4 /* System */: + return transformSystemModule; + case 100 /* Node16 */: + case 199 /* NodeNext */: + return transformNodeModule; + default: + return transformModule; + } +} +var noTransformers = { scriptTransformers: emptyArray, declarationTransformers: emptyArray }; +function getTransformers(compilerOptions, customTransformers, emitOnly) { + return { + scriptTransformers: getScriptTransformers(compilerOptions, customTransformers, emitOnly), + declarationTransformers: getDeclarationTransformers(customTransformers) + }; +} +function getScriptTransformers(compilerOptions, customTransformers, emitOnly) { + if (emitOnly) return emptyArray; + const languageVersion = getEmitScriptTarget(compilerOptions); + const moduleKind = getEmitModuleKind(compilerOptions); + const useDefineForClassFields = getUseDefineForClassFields(compilerOptions); + const transformers = []; + addRange(transformers, customTransformers && map(customTransformers.before, wrapScriptTransformerFactory)); + transformers.push(transformTypeScript); + if (compilerOptions.experimentalDecorators) { + transformers.push(transformLegacyDecorators); + } + if (getJSXTransformEnabled(compilerOptions)) { + transformers.push(transformJsx); + } + if (languageVersion < 99 /* ESNext */) { + transformers.push(transformESNext); + } + if (!compilerOptions.experimentalDecorators && (languageVersion < 99 /* ESNext */ || !useDefineForClassFields)) { + transformers.push(transformESDecorators); + } + transformers.push(transformClassFields); + if (languageVersion < 8 /* ES2021 */) { + transformers.push(transformES2021); + } + if (languageVersion < 7 /* ES2020 */) { + transformers.push(transformES2020); + } + if (languageVersion < 6 /* ES2019 */) { + transformers.push(transformES2019); + } + if (languageVersion < 5 /* ES2018 */) { + transformers.push(transformES2018); + } + if (languageVersion < 4 /* ES2017 */) { + transformers.push(transformES2017); + } + if (languageVersion < 3 /* ES2016 */) { + transformers.push(transformES2016); + } + if (languageVersion < 2 /* ES2015 */) { + transformers.push(transformES2015); + transformers.push(transformGenerators); + } + transformers.push(getModuleTransformer(moduleKind)); + addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory)); + return transformers; +} +function getDeclarationTransformers(customTransformers) { + const transformers = []; + transformers.push(transformDeclarations); + addRange(transformers, customTransformers && map(customTransformers.afterDeclarations, wrapDeclarationTransformerFactory)); + return transformers; +} +function wrapCustomTransformer(transformer) { + return (node) => isBundle(node) ? transformer.transformBundle(node) : transformer.transformSourceFile(node); +} +function wrapCustomTransformerFactory(transformer, handleDefault) { + return (context) => { + const customTransformer = transformer(context); + return typeof customTransformer === "function" ? handleDefault(context, customTransformer) : wrapCustomTransformer(customTransformer); + }; +} +function wrapScriptTransformerFactory(transformer) { + return wrapCustomTransformerFactory(transformer, chainBundle); +} +function wrapDeclarationTransformerFactory(transformer) { + return wrapCustomTransformerFactory(transformer, (_, node) => node); +} +function noEmitSubstitution(_hint, node) { + return node; +} +function noEmitNotification(hint, node, callback) { + callback(hint, node); +} +function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { + var _a, _b; + const enabledSyntaxKindFeatures = new Array(357 /* Count */); + let lexicalEnvironmentVariableDeclarations; + let lexicalEnvironmentFunctionDeclarations; + let lexicalEnvironmentStatements; + let lexicalEnvironmentFlags = 0 /* None */; + let lexicalEnvironmentVariableDeclarationsStack = []; + let lexicalEnvironmentFunctionDeclarationsStack = []; + let lexicalEnvironmentStatementsStack = []; + let lexicalEnvironmentFlagsStack = []; + let lexicalEnvironmentStackOffset = 0; + let lexicalEnvironmentSuspended = false; + let blockScopedVariableDeclarationsStack = []; + let blockScopeStackOffset = 0; + let blockScopedVariableDeclarations; + let emitHelpers; + let onSubstituteNode = noEmitSubstitution; + let onEmitNode = noEmitNotification; + let state = 0 /* Uninitialized */; + const diagnostics = []; + const context = { + factory: factory2, + getCompilerOptions: () => options, + getEmitResolver: () => resolver, + // TODO: GH#18217 + getEmitHost: () => host, + // TODO: GH#18217 + getEmitHelperFactory: memoize(() => createEmitHelperFactory(context)), + startLexicalEnvironment, + suspendLexicalEnvironment, + resumeLexicalEnvironment, + endLexicalEnvironment, + setLexicalEnvironmentFlags, + getLexicalEnvironmentFlags, + hoistVariableDeclaration, + hoistFunctionDeclaration, + addInitializationStatement, + startBlockScope, + endBlockScope, + addBlockScopedVariable, + requestEmitHelper, + readEmitHelpers, + enableSubstitution, + enableEmitNotification, + isSubstitutionEnabled, + isEmitNotificationEnabled, + get onSubstituteNode() { + return onSubstituteNode; + }, + set onSubstituteNode(value) { + Debug.assert(state < 1 /* Initialized */, "Cannot modify transformation hooks after initialization has completed."); + Debug.assert(value !== void 0, "Value must not be 'undefined'"); + onSubstituteNode = value; + }, + get onEmitNode() { + return onEmitNode; + }, + set onEmitNode(value) { + Debug.assert(state < 1 /* Initialized */, "Cannot modify transformation hooks after initialization has completed."); + Debug.assert(value !== void 0, "Value must not be 'undefined'"); + onEmitNode = value; + }, + addDiagnostic(diag2) { + diagnostics.push(diag2); + } + }; + for (const node of nodes) { + disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node))); + } + mark("beforeTransform"); + const transformersWithContext = transformers.map((t) => t(context)); + const transformation = (node) => { + for (const transform of transformersWithContext) { + node = transform(node); + } + return node; + }; + state = 1 /* Initialized */; + const transformed = []; + for (const node of nodes) { + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "transformNodes", node.kind === 307 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end }); + transformed.push((allowDtsFiles ? transformation : transformRoot)(node)); + (_b = tracing) == null ? void 0 : _b.pop(); + } + state = 2 /* Completed */; + mark("afterTransform"); + measure("transformTime", "beforeTransform", "afterTransform"); + return { + transformed, + substituteNode, + emitNodeWithNotification, + isEmitNotificationEnabled, + dispose, + diagnostics + }; + function transformRoot(node) { + return node && (!isSourceFile(node) || !node.isDeclarationFile) ? transformation(node) : node; + } + function enableSubstitution(kind) { + Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); + enabledSyntaxKindFeatures[kind] |= 1 /* Substitution */; + } + function isSubstitutionEnabled(node) { + return (enabledSyntaxKindFeatures[node.kind] & 1 /* Substitution */) !== 0 && (getEmitFlags(node) & 8 /* NoSubstitution */) === 0; + } + function substituteNode(hint, node) { + Debug.assert(state < 3 /* Disposed */, "Cannot substitute a node after the result is disposed."); + return node && isSubstitutionEnabled(node) && onSubstituteNode(hint, node) || node; + } + function enableEmitNotification(kind) { + Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); + enabledSyntaxKindFeatures[kind] |= 2 /* EmitNotifications */; + } + function isEmitNotificationEnabled(node) { + return (enabledSyntaxKindFeatures[node.kind] & 2 /* EmitNotifications */) !== 0 || (getEmitFlags(node) & 4 /* AdviseOnEmitNode */) !== 0; + } + function emitNodeWithNotification(hint, node, emitCallback) { + Debug.assert(state < 3 /* Disposed */, "Cannot invoke TransformationResult callbacks after the result is disposed."); + if (node) { + if (isEmitNotificationEnabled(node)) { + onEmitNode(hint, node, emitCallback); + } else { + emitCallback(hint, node); + } + } + } + function hoistVariableDeclaration(name) { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + const decl = setEmitFlags(factory2.createVariableDeclaration(name), 128 /* NoNestedSourceMaps */); + if (!lexicalEnvironmentVariableDeclarations) { + lexicalEnvironmentVariableDeclarations = [decl]; + } else { + lexicalEnvironmentVariableDeclarations.push(decl); + } + if (lexicalEnvironmentFlags & 1 /* InParameters */) { + lexicalEnvironmentFlags |= 2 /* VariablesHoistedInParameters */; + } + } + function hoistFunctionDeclaration(func) { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + setEmitFlags(func, 2097152 /* CustomPrologue */); + if (!lexicalEnvironmentFunctionDeclarations) { + lexicalEnvironmentFunctionDeclarations = [func]; + } else { + lexicalEnvironmentFunctionDeclarations.push(func); + } + } + function addInitializationStatement(node) { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + setEmitFlags(node, 2097152 /* CustomPrologue */); + if (!lexicalEnvironmentStatements) { + lexicalEnvironmentStatements = [node]; + } else { + lexicalEnvironmentStatements.push(node); + } + } + function startLexicalEnvironment() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); + lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentVariableDeclarations; + lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFunctionDeclarations; + lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentStatements; + lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFlags; + lexicalEnvironmentStackOffset++; + lexicalEnvironmentVariableDeclarations = void 0; + lexicalEnvironmentFunctionDeclarations = void 0; + lexicalEnvironmentStatements = void 0; + lexicalEnvironmentFlags = 0 /* None */; + } + function suspendLexicalEnvironment() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is already suspended."); + lexicalEnvironmentSuspended = true; + } + function resumeLexicalEnvironment() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + Debug.assert(lexicalEnvironmentSuspended, "Lexical environment is not suspended."); + lexicalEnvironmentSuspended = false; + } + function endLexicalEnvironment() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the lexical environment during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the lexical environment after transformation has completed."); + Debug.assert(!lexicalEnvironmentSuspended, "Lexical environment is suspended."); + let statements; + if (lexicalEnvironmentVariableDeclarations || lexicalEnvironmentFunctionDeclarations || lexicalEnvironmentStatements) { + if (lexicalEnvironmentFunctionDeclarations) { + statements = [...lexicalEnvironmentFunctionDeclarations]; + } + if (lexicalEnvironmentVariableDeclarations) { + const statement = factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList(lexicalEnvironmentVariableDeclarations) + ); + setEmitFlags(statement, 2097152 /* CustomPrologue */); + if (!statements) { + statements = [statement]; + } else { + statements.push(statement); + } + } + if (lexicalEnvironmentStatements) { + if (!statements) { + statements = [...lexicalEnvironmentStatements]; + } else { + statements = [...statements, ...lexicalEnvironmentStatements]; + } + } + } + lexicalEnvironmentStackOffset--; + lexicalEnvironmentVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset]; + lexicalEnvironmentFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset]; + lexicalEnvironmentStatements = lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset]; + lexicalEnvironmentFlags = lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset]; + if (lexicalEnvironmentStackOffset === 0) { + lexicalEnvironmentVariableDeclarationsStack = []; + lexicalEnvironmentFunctionDeclarationsStack = []; + lexicalEnvironmentStatementsStack = []; + lexicalEnvironmentFlagsStack = []; + } + return statements; + } + function setLexicalEnvironmentFlags(flags, value) { + lexicalEnvironmentFlags = value ? lexicalEnvironmentFlags | flags : lexicalEnvironmentFlags & ~flags; + } + function getLexicalEnvironmentFlags() { + return lexicalEnvironmentFlags; + } + function startBlockScope() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot start a block scope during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot start a block scope after transformation has completed."); + blockScopedVariableDeclarationsStack[blockScopeStackOffset] = blockScopedVariableDeclarations; + blockScopeStackOffset++; + blockScopedVariableDeclarations = void 0; + } + function endBlockScope() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot end a block scope during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot end a block scope after transformation has completed."); + const statements = some(blockScopedVariableDeclarations) ? [ + factory2.createVariableStatement( + /*modifiers*/ + void 0, + factory2.createVariableDeclarationList( + blockScopedVariableDeclarations.map((identifier) => factory2.createVariableDeclaration(identifier)), + 1 /* Let */ + ) + ) + ] : void 0; + blockScopeStackOffset--; + blockScopedVariableDeclarations = blockScopedVariableDeclarationsStack[blockScopeStackOffset]; + if (blockScopeStackOffset === 0) { + blockScopedVariableDeclarationsStack = []; + } + return statements; + } + function addBlockScopedVariable(name) { + Debug.assert(blockScopeStackOffset > 0, "Cannot add a block scoped variable outside of an iteration body."); + (blockScopedVariableDeclarations || (blockScopedVariableDeclarations = [])).push(name); + } + function requestEmitHelper(helper) { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the transformation context during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); + Debug.assert(!helper.scoped, "Cannot request a scoped emit helper."); + if (helper.dependencies) { + for (const h of helper.dependencies) { + requestEmitHelper(h); + } + } + emitHelpers = append(emitHelpers, helper); + } + function readEmitHelpers() { + Debug.assert(state > 0 /* Uninitialized */, "Cannot modify the transformation context during initialization."); + Debug.assert(state < 2 /* Completed */, "Cannot modify the transformation context after transformation has completed."); + const helpers = emitHelpers; + emitHelpers = void 0; + return helpers; + } + function dispose() { + if (state < 3 /* Disposed */) { + for (const node of nodes) { + disposeEmitNodes(getSourceFileOfNode(getParseTreeNode(node))); + } + lexicalEnvironmentVariableDeclarations = void 0; + lexicalEnvironmentVariableDeclarationsStack = void 0; + lexicalEnvironmentFunctionDeclarations = void 0; + lexicalEnvironmentFunctionDeclarationsStack = void 0; + onSubstituteNode = void 0; + onEmitNode = void 0; + emitHelpers = void 0; + state = 3 /* Disposed */; + } + } +} +var nullTransformationContext = { + factory, + // eslint-disable-line object-shorthand + getCompilerOptions: () => ({}), + getEmitResolver: notImplemented, + getEmitHost: notImplemented, + getEmitHelperFactory: notImplemented, + startLexicalEnvironment: noop, + resumeLexicalEnvironment: noop, + suspendLexicalEnvironment: noop, + endLexicalEnvironment: returnUndefined, + setLexicalEnvironmentFlags: noop, + getLexicalEnvironmentFlags: () => 0, + hoistVariableDeclaration: noop, + hoistFunctionDeclaration: noop, + addInitializationStatement: noop, + startBlockScope: noop, + endBlockScope: returnUndefined, + addBlockScopedVariable: noop, + requestEmitHelper: noop, + readEmitHelpers: notImplemented, + enableSubstitution: noop, + enableEmitNotification: noop, + isSubstitutionEnabled: notImplemented, + isEmitNotificationEnabled: notImplemented, + onSubstituteNode: noEmitSubstitution, + onEmitNode: noEmitNotification, + addDiagnostic: noop +}; + +// src/compiler/emitter.ts +var brackets = createBracketsMap(); +function isBuildInfoFile(file) { + return fileExtensionIs(file, ".tsbuildinfo" /* TsBuildInfo */); +} +function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDtsEmit = false, onlyBuildInfo, includeBuildInfo) { + const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit); + const options = host.getCompilerOptions(); + if (options.outFile) { + if (sourceFiles.length) { + const bundle = factory.createBundle(sourceFiles); + const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); + if (result) { + return result; + } + } + } else { + if (!onlyBuildInfo) { + for (const sourceFile of sourceFiles) { + const result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile); + if (result) { + return result; + } + } + } + if (includeBuildInfo) { + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + if (buildInfoPath) return action( + { buildInfoPath }, + /*sourceFileOrBundle*/ + void 0 + ); + } + } +} +function getTsBuildInfoEmitOutputFilePath(options) { + const configFile = options.configFilePath; + if (!isIncrementalCompilation(options)) return void 0; + if (options.tsBuildInfoFile) return options.tsBuildInfoFile; + const outPath = options.outFile; + let buildInfoExtensionLess; + if (outPath) { + buildInfoExtensionLess = removeFileExtension(outPath); + } else { + if (!configFile) return void 0; + const configFileExtensionLess = removeFileExtension(configFile); + buildInfoExtensionLess = options.outDir ? options.rootDir ? resolvePath(options.outDir, getRelativePathFromDirectory( + options.rootDir, + configFileExtensionLess, + /*ignoreCase*/ + true + )) : combinePaths(options.outDir, getBaseFileName(configFileExtensionLess)) : configFileExtensionLess; + } + return buildInfoExtensionLess + ".tsbuildinfo" /* TsBuildInfo */; +} +function getOutputPathsForBundle(options, forceDtsPaths) { + const outPath = options.outFile; + const jsFilePath = options.emitDeclarationOnly ? void 0 : outPath; + const sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options); + const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) ? removeFileExtension(outPath) + ".d.ts" /* Dts */ : void 0; + const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }; +} +function getOutputPathsFor(sourceFile, host, forceDtsPaths) { + const options = host.getCompilerOptions(); + if (sourceFile.kind === 308 /* Bundle */) { + return getOutputPathsForBundle(options, forceDtsPaths); + } else { + const ownOutputFilePath = getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile.fileName, options)); + const isJsonFile = isJsonSourceFile(sourceFile); + const isJsonEmittedToSameLocation = isJsonFile && comparePaths(sourceFile.fileName, ownOutputFilePath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */; + const jsFilePath = options.emitDeclarationOnly || isJsonEmittedToSameLocation ? void 0 : ownOutputFilePath; + const sourceMapFilePath = !jsFilePath || isJsonSourceFile(sourceFile) ? void 0 : getSourceMapFilePath(jsFilePath, options); + const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) && !isJsonFile ? getDeclarationEmitOutputFilePath(sourceFile.fileName, host) : void 0; + const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; + return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath: void 0 }; + } +} +function getSourceMapFilePath(jsFilePath, options) { + return options.sourceMap && !options.inlineSourceMap ? jsFilePath + ".map" : void 0; +} +function getOutputExtension(fileName, options) { + return fileExtensionIs(fileName, ".json" /* Json */) ? ".json" /* Json */ : options.jsx === 1 /* Preserve */ && fileExtensionIsOneOf(fileName, [".jsx" /* Jsx */, ".tsx" /* Tsx */]) ? ".jsx" /* Jsx */ : fileExtensionIsOneOf(fileName, [".mts" /* Mts */, ".mjs" /* Mjs */]) ? ".mjs" /* Mjs */ : fileExtensionIsOneOf(fileName, [".cts" /* Cts */, ".cjs" /* Cjs */]) ? ".cjs" /* Cjs */ : ".js" /* Js */; +} +function getOutputPathWithoutChangingExt(inputFileName, ignoreCase, outputDir, getCommonSourceDirectory2) { + return outputDir ? resolvePath( + outputDir, + getRelativePathFromDirectory(getCommonSourceDirectory2(), inputFileName, ignoreCase) + ) : inputFileName; +} +function getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2 = () => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)) { + return getOutputDeclarationFileNameWorker(inputFileName, configFile.options, ignoreCase, getCommonSourceDirectory2); +} +function getOutputDeclarationFileNameWorker(inputFileName, options, ignoreCase, getCommonSourceDirectory2) { + return changeExtension( + getOutputPathWithoutChangingExt(inputFileName, ignoreCase, options.declarationDir || options.outDir, getCommonSourceDirectory2), + getDeclarationEmitExtensionForPath(inputFileName) + ); +} +function getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2 = () => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)) { + if (configFile.options.emitDeclarationOnly) return void 0; + const isJsonFile = fileExtensionIs(inputFileName, ".json" /* Json */); + const outputFileName = getOutputJSFileNameWorker(inputFileName, configFile.options, ignoreCase, getCommonSourceDirectory2); + return !isJsonFile || comparePaths(inputFileName, outputFileName, Debug.checkDefined(configFile.options.configFilePath), ignoreCase) !== 0 /* EqualTo */ ? outputFileName : void 0; +} +function getOutputJSFileNameWorker(inputFileName, options, ignoreCase, getCommonSourceDirectory2) { + return changeExtension( + getOutputPathWithoutChangingExt(inputFileName, ignoreCase, options.outDir, getCommonSourceDirectory2), + getOutputExtension(inputFileName, options) + ); +} +function createAddOutput() { + let outputs; + return { addOutput, getOutputs }; + function addOutput(path) { + if (path) { + (outputs || (outputs = [])).push(path); + } + } + function getOutputs() { + return outputs || emptyArray; + } +} +function getSingleOutputFileNames(configFile, addOutput) { + const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle( + configFile.options, + /*forceDtsPaths*/ + false + ); + addOutput(jsFilePath); + addOutput(sourceMapFilePath); + addOutput(declarationFilePath); + addOutput(declarationMapPath); + addOutput(buildInfoPath); +} +function getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2) { + if (isDeclarationFileName(inputFileName)) return; + const js = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); + addOutput(js); + if (fileExtensionIs(inputFileName, ".json" /* Json */)) return; + if (js && configFile.options.sourceMap) { + addOutput(`${js}.map`); + } + if (getEmitDeclarations(configFile.options)) { + const dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); + addOutput(dts); + if (configFile.options.declarationMap) { + addOutput(`${dts}.map`); + } + } +} +function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCanonicalFileName, checkSourceFilesBelongToPath) { + let commonSourceDirectory; + if (options.rootDir) { + commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory); + checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir); + } else if (options.composite && options.configFilePath) { + commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath)); + checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory); + } else { + commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles(), currentDirectory, getCanonicalFileName); + } + if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) { + commonSourceDirectory += directorySeparator; + } + return commonSourceDirectory; +} +function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) { + return getCommonSourceDirectory( + options, + () => filter(fileNames, (file) => !(options.noEmitForJsFiles && fileExtensionIsOneOf(file, supportedJSExtensionsFlat)) && !isDeclarationFileName(file)), + getDirectoryPath(normalizeSlashes(Debug.checkDefined(options.configFilePath))), + createGetCanonicalFileName(!ignoreCase) + ); +} +function getAllProjectOutputs(configFile, ignoreCase) { + const { addOutput, getOutputs } = createAddOutput(); + if (configFile.options.outFile) { + getSingleOutputFileNames(configFile, addOutput); + } else { + const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)); + for (const inputFileName of configFile.fileNames) { + getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2); + } + addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options)); + } + return getOutputs(); +} +function getFirstProjectOutput(configFile, ignoreCase) { + if (configFile.options.outFile) { + const { jsFilePath, declarationFilePath } = getOutputPathsForBundle( + configFile.options, + /*forceDtsPaths*/ + false + ); + return Debug.checkDefined(jsFilePath || declarationFilePath, `project ${configFile.options.configFilePath} expected to have at least one output`); + } + const getCommonSourceDirectory2 = memoize(() => getCommonSourceDirectoryOfConfig(configFile, ignoreCase)); + for (const inputFileName of configFile.fileNames) { + if (isDeclarationFileName(inputFileName)) continue; + const jsFilePath = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); + if (jsFilePath) return jsFilePath; + if (fileExtensionIs(inputFileName, ".json" /* Json */)) continue; + if (getEmitDeclarations(configFile.options)) { + return getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory2); + } + } + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options); + if (buildInfoPath) return buildInfoPath; + return Debug.fail(`project ${configFile.options.configFilePath} expected to have at least one output`); +} +function emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) { + return !!forceDtsEmit && !!emitOnly; +} +function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, declarationTransformers }, emitOnly, onlyBuildInfo, forceDtsEmit) { + var compilerOptions = host.getCompilerOptions(); + var sourceMapDataList = compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions) ? [] : void 0; + var emittedFilesList = compilerOptions.listEmittedFiles ? [] : void 0; + var emitterDiagnostics = createDiagnosticCollection(); + var newLine = getNewLineCharacter(compilerOptions); + var writer = createTextWriter(newLine); + var { enter, exit } = createTimer("printTime", "beforePrint", "afterPrint"); + var emitSkipped = false; + enter(); + forEachEmittedFile( + host, + emitSourceFileOrBundle, + getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit), + forceDtsEmit, + onlyBuildInfo, + !targetSourceFile + ); + exit(); + return { + emitSkipped, + diagnostics: emitterDiagnostics.getDiagnostics(), + emittedFiles: emittedFilesList, + sourceMaps: sourceMapDataList + }; + function emitSourceFileOrBundle({ jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }, sourceFileOrBundle) { + var _a, _b, _c, _d, _e, _f; + (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Emit, "emitJsFileOrBundle", { jsFilePath }); + emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath); + (_b = tracing) == null ? void 0 : _b.pop(); + (_c = tracing) == null ? void 0 : _c.push(tracing.Phase.Emit, "emitDeclarationFileOrBundle", { declarationFilePath }); + emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath); + (_d = tracing) == null ? void 0 : _d.pop(); + (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Emit, "emitBuildInfo", { buildInfoPath }); + emitBuildInfo(buildInfoPath); + (_f = tracing) == null ? void 0 : _f.pop(); + } + function emitBuildInfo(buildInfoPath) { + if (!buildInfoPath || targetSourceFile || emitSkipped) return; + if (host.isEmitBlocked(buildInfoPath)) { + emitSkipped = true; + return; + } + const buildInfo = host.getBuildInfo() || createBuildInfo( + /*program*/ + void 0 + ); + writeFile( + host, + emitterDiagnostics, + buildInfoPath, + getBuildInfoText(buildInfo), + /*writeByteOrderMark*/ + false, + /*sourceFiles*/ + void 0, + { buildInfo } + ); + emittedFilesList == null ? void 0 : emittedFilesList.push(buildInfoPath); + } + function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath) { + if (!sourceFileOrBundle || emitOnly || !jsFilePath) { + return; + } + if (host.isEmitBlocked(jsFilePath) || compilerOptions.noEmit) { + emitSkipped = true; + return; + } + (isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach( + (sourceFile) => { + if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile); + } + ); + const transform = transformNodes( + resolver, + host, + factory, + compilerOptions, + [sourceFileOrBundle], + scriptTransformers, + /*allowDtsFiles*/ + false + ); + const printerOptions = { + removeComments: compilerOptions.removeComments, + newLine: compilerOptions.newLine, + noEmitHelpers: compilerOptions.noEmitHelpers, + module: getEmitModuleKind(compilerOptions), + target: getEmitScriptTarget(compilerOptions), + sourceMap: compilerOptions.sourceMap, + inlineSourceMap: compilerOptions.inlineSourceMap, + inlineSources: compilerOptions.inlineSources, + extendedDiagnostics: compilerOptions.extendedDiagnostics + }; + const printer = createPrinter(printerOptions, { + // resolver hooks + hasGlobalName: resolver.hasGlobalName, + // transform hooks + onEmitNode: transform.emitNodeWithNotification, + isEmitNotificationEnabled: transform.isEmitNotificationEnabled, + substituteNode: transform.substituteNode + }); + Debug.assert(transform.transformed.length === 1, "Should only see one output from the transform"); + printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform, printer, compilerOptions); + transform.dispose(); + if (emittedFilesList) { + emittedFilesList.push(jsFilePath); + if (sourceMapFilePath) { + emittedFilesList.push(sourceMapFilePath); + } + } + } + function emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath) { + if (!sourceFileOrBundle || emitOnly === 0 /* Js */) return; + if (!declarationFilePath) { + if (emitOnly || compilerOptions.emitDeclarationOnly) emitSkipped = true; + return; + } + const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles; + const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson); + const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit; + filesForEmit.forEach((sourceFile) => { + if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) { + collectLinkedAliases(sourceFile); + } + }); + const declarationTransform = transformNodes( + resolver, + host, + factory, + compilerOptions, + inputListOrBundle, + declarationTransformers, + /*allowDtsFiles*/ + false + ); + if (length(declarationTransform.diagnostics)) { + for (const diagnostic of declarationTransform.diagnostics) { + emitterDiagnostics.add(diagnostic); + } + } + const declBlocked = !!declarationTransform.diagnostics && !!declarationTransform.diagnostics.length || !!host.isEmitBlocked(declarationFilePath) || !!compilerOptions.noEmit; + emitSkipped = emitSkipped || declBlocked; + if (!declBlocked || forceDtsEmit) { + Debug.assert(declarationTransform.transformed.length === 1, "Should only see one output from the decl transform"); + const printerOptions = { + removeComments: compilerOptions.removeComments, + newLine: compilerOptions.newLine, + noEmitHelpers: true, + module: compilerOptions.module, + target: compilerOptions.target, + sourceMap: emitOnly !== 2 /* BuilderSignature */ && compilerOptions.declarationMap, + inlineSourceMap: compilerOptions.inlineSourceMap, + extendedDiagnostics: compilerOptions.extendedDiagnostics, + onlyPrintJsDocStyle: true, + omitBraceSourceMapPositions: true + }; + const declarationPrinter = createPrinter(printerOptions, { + // resolver hooks + hasGlobalName: resolver.hasGlobalName, + // transform hooks + onEmitNode: declarationTransform.emitNodeWithNotification, + isEmitNotificationEnabled: declarationTransform.isEmitNotificationEnabled, + substituteNode: declarationTransform.substituteNode + }); + printSourceFileOrBundle( + declarationFilePath, + declarationMapPath, + declarationTransform, + declarationPrinter, + { + sourceMap: printerOptions.sourceMap, + sourceRoot: compilerOptions.sourceRoot, + mapRoot: compilerOptions.mapRoot, + extendedDiagnostics: compilerOptions.extendedDiagnostics + // Explicitly do not passthru either `inline` option + } + ); + if (emittedFilesList) { + emittedFilesList.push(declarationFilePath); + if (declarationMapPath) { + emittedFilesList.push(declarationMapPath); + } + } + } + declarationTransform.dispose(); + } + function collectLinkedAliases(node) { + if (isExportAssignment(node)) { + if (node.expression.kind === 80 /* Identifier */) { + resolver.collectLinkedAliases( + node.expression, + /*setVisibility*/ + true + ); + } + return; + } else if (isExportSpecifier(node)) { + resolver.collectLinkedAliases( + node.propertyName || node.name, + /*setVisibility*/ + true + ); + return; + } + forEachChild(node, collectLinkedAliases); + } + function markLinkedReferences(file) { + forEachChildRecursively(file, (n) => { + if (isImportEqualsDeclaration(n) && !(getSyntacticModifierFlags(n) & 32 /* Export */)) return "skip"; + if (isImportDeclaration(n)) return "skip"; + resolver.markLinkedReferences(n); + }); + } + function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform, printer, mapOptions) { + const sourceFileOrBundle = transform.transformed[0]; + const bundle = sourceFileOrBundle.kind === 308 /* Bundle */ ? sourceFileOrBundle : void 0; + const sourceFile = sourceFileOrBundle.kind === 307 /* SourceFile */ ? sourceFileOrBundle : void 0; + const sourceFiles = bundle ? bundle.sourceFiles : [sourceFile]; + let sourceMapGenerator; + if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) { + sourceMapGenerator = createSourceMapGenerator( + host, + getBaseFileName(normalizeSlashes(jsFilePath)), + getSourceRoot(mapOptions), + getSourceMapDirectory(mapOptions, jsFilePath, sourceFile), + mapOptions + ); + } + if (bundle) { + printer.writeBundle(bundle, writer, sourceMapGenerator); + } else { + printer.writeFile(sourceFile, writer, sourceMapGenerator); + } + let sourceMapUrlPos; + if (sourceMapGenerator) { + if (sourceMapDataList) { + sourceMapDataList.push({ + inputSourceFileNames: sourceMapGenerator.getSources(), + sourceMap: sourceMapGenerator.toJSON() + }); + } + const sourceMappingURL = getSourceMappingURL( + mapOptions, + sourceMapGenerator, + jsFilePath, + sourceMapFilePath, + sourceFile + ); + if (sourceMappingURL) { + if (!writer.isAtStartOfLine()) writer.rawWrite(newLine); + sourceMapUrlPos = writer.getTextPos(); + writer.writeComment(`//# ${"sourceMappingURL"}=${sourceMappingURL}`); + } + if (sourceMapFilePath) { + const sourceMap = sourceMapGenerator.toString(); + writeFile( + host, + emitterDiagnostics, + sourceMapFilePath, + sourceMap, + /*writeByteOrderMark*/ + false, + sourceFiles + ); + } + } else { + writer.writeLine(); + } + const text = writer.getText(); + writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform.diagnostics }); + writer.clear(); + } + function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { + return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 307 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); + } + function getSourceRoot(mapOptions) { + const sourceRoot = normalizeSlashes(mapOptions.sourceRoot || ""); + return sourceRoot ? ensureTrailingDirectorySeparator(sourceRoot) : sourceRoot; + } + function getSourceMapDirectory(mapOptions, filePath, sourceFile) { + if (mapOptions.sourceRoot) return host.getCommonSourceDirectory(); + if (mapOptions.mapRoot) { + let sourceMapDir = normalizeSlashes(mapOptions.mapRoot); + if (sourceFile) { + sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir)); + } + if (getRootLength(sourceMapDir) === 0) { + sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); + } + return sourceMapDir; + } + return getDirectoryPath(normalizePath(filePath)); + } + function getSourceMappingURL(mapOptions, sourceMapGenerator, filePath, sourceMapFilePath, sourceFile) { + if (mapOptions.inlineSourceMap) { + const sourceMapText = sourceMapGenerator.toString(); + const base64SourceMapText = base64encode(sys, sourceMapText); + return `data:application/json;base64,${base64SourceMapText}`; + } + const sourceMapFile = getBaseFileName(normalizeSlashes(Debug.checkDefined(sourceMapFilePath))); + if (mapOptions.mapRoot) { + let sourceMapDir = normalizeSlashes(mapOptions.mapRoot); + if (sourceFile) { + sourceMapDir = getDirectoryPath(getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir)); + } + if (getRootLength(sourceMapDir) === 0) { + sourceMapDir = combinePaths(host.getCommonSourceDirectory(), sourceMapDir); + return encodeURI( + getRelativePathToDirectoryOrUrl( + getDirectoryPath(normalizePath(filePath)), + // get the relative sourceMapDir path based on jsFilePath + combinePaths(sourceMapDir, sourceMapFile), + // this is where user expects to see sourceMap + host.getCurrentDirectory(), + host.getCanonicalFileName, + /*isAbsolutePathAnUrl*/ + true + ) + ); + } else { + return encodeURI(combinePaths(sourceMapDir, sourceMapFile)); + } + } + return encodeURI(sourceMapFile); + } +} +function createBuildInfo(program) { + return { program, version }; +} +function getBuildInfoText(buildInfo) { + return JSON.stringify(buildInfo); +} +function getBuildInfo(buildInfoFile, buildInfoText) { + return readJsonOrUndefined(buildInfoFile, buildInfoText); +} +var notImplementedResolver = { + hasGlobalName: notImplemented, + getReferencedExportContainer: notImplemented, + getReferencedImportDeclaration: notImplemented, + getReferencedDeclarationWithCollidingName: notImplemented, + isDeclarationWithCollidingName: notImplemented, + isValueAliasDeclaration: notImplemented, + isReferencedAliasDeclaration: notImplemented, + isTopLevelValueImportEqualsWithEntityName: notImplemented, + hasNodeCheckFlag: notImplemented, + isDeclarationVisible: notImplemented, + isLateBound: (_node) => false, + collectLinkedAliases: notImplemented, + markLinkedReferences: notImplemented, + isImplementationOfOverload: notImplemented, + requiresAddingImplicitUndefined: notImplemented, + isExpandoFunctionDeclaration: notImplemented, + getPropertiesOfContainerFunction: notImplemented, + createTypeOfDeclaration: notImplemented, + createReturnTypeOfSignatureDeclaration: notImplemented, + createTypeOfExpression: notImplemented, + createLiteralConstValue: notImplemented, + isSymbolAccessible: notImplemented, + isEntityNameVisible: notImplemented, + // Returns the constant value this property access resolves to: notImplemented, or 'undefined' for a non-constant + getConstantValue: notImplemented, + getEnumMemberValue: notImplemented, + getReferencedValueDeclaration: notImplemented, + getReferencedValueDeclarations: notImplemented, + getTypeReferenceSerializationKind: notImplemented, + isOptionalParameter: notImplemented, + isArgumentsLocalBinding: notImplemented, + getExternalModuleFileFromDeclaration: notImplemented, + isLiteralConstDeclaration: notImplemented, + getJsxFactoryEntity: notImplemented, + getJsxFragmentFactoryEntity: notImplemented, + isBindingCapturedByNode: notImplemented, + getDeclarationStatementsForSourceFile: notImplemented, + isImportRequiredByAugmentation: notImplemented, + isDefinitelyReferenceToGlobalSymbolObject: notImplemented +}; +var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({})); +var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true })); +var createPrinterWithRemoveCommentsNeverAsciiEscape = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true })); +var createPrinterWithRemoveCommentsOmitTrailingSemicolon = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true })); +function createPrinter(printerOptions = {}, handlers = {}) { + var { + hasGlobalName, + onEmitNode = noEmitNotification, + isEmitNotificationEnabled, + substituteNode = noEmitSubstitution, + onBeforeEmitNode, + onAfterEmitNode, + onBeforeEmitNodeArray, + onAfterEmitNodeArray, + onBeforeEmitToken, + onAfterEmitToken + } = handlers; + var extendedDiagnostics = !!printerOptions.extendedDiagnostics; + var omitBraceSourcePositions = !!printerOptions.omitBraceSourceMapPositions; + var newLine = getNewLineCharacter(printerOptions); + var moduleKind = getEmitModuleKind(printerOptions); + var bundledHelpers = /* @__PURE__ */ new Map(); + var currentSourceFile; + var nodeIdToGeneratedName; + var nodeIdToGeneratedPrivateName; + var autoGeneratedIdToGeneratedName; + var generatedNames; + var formattedNameTempFlagsStack; + var formattedNameTempFlags; + var privateNameTempFlagsStack; + var privateNameTempFlags; + var tempFlagsStack; + var tempFlags; + var reservedNamesStack; + var reservedNames; + var reservedPrivateNamesStack; + var reservedPrivateNames; + var preserveSourceNewlines = printerOptions.preserveSourceNewlines; + var nextListElementPos; + var writer; + var ownWriter; + var write = writeBase; + var isOwnFileEmit; + var sourceMapsDisabled = true; + var sourceMapGenerator; + var sourceMapSource; + var sourceMapSourceIndex = -1; + var mostRecentlyAddedSourceMapSource; + var mostRecentlyAddedSourceMapSourceIndex = -1; + var containerPos = -1; + var containerEnd = -1; + var declarationListContainerEnd = -1; + var currentLineMap; + var detachedCommentsInfo; + var hasWrittenComment = false; + var commentsDisabled = !!printerOptions.removeComments; + var lastSubstitution; + var currentParenthesizerRule; + var { enter: enterComment, exit: exitComment } = createTimerIf(extendedDiagnostics, "commentTime", "beforeComment", "afterComment"); + var parenthesizer = factory.parenthesizer; + var typeArgumentParenthesizerRuleSelector = { + select: (index) => index === 0 ? parenthesizer.parenthesizeLeadingTypeArgument : void 0 + }; + var emitBinaryExpression = createEmitBinaryExpression(); + reset(); + return { + // public API + printNode, + printList, + printFile, + printBundle, + // internal API + writeNode, + writeList, + writeFile: writeFile2, + writeBundle + }; + function printNode(hint, node, sourceFile) { + switch (hint) { + case 0 /* SourceFile */: + Debug.assert(isSourceFile(node), "Expected a SourceFile node."); + break; + case 2 /* IdentifierName */: + Debug.assert(isIdentifier(node), "Expected an Identifier node."); + break; + case 1 /* Expression */: + Debug.assert(isExpression(node), "Expected an Expression node."); + break; + } + switch (node.kind) { + case 307 /* SourceFile */: + return printFile(node); + case 308 /* Bundle */: + return printBundle(node); + } + writeNode(hint, node, sourceFile, beginPrint()); + return endPrint(); + } + function printList(format, nodes, sourceFile) { + writeList(format, nodes, sourceFile, beginPrint()); + return endPrint(); + } + function printBundle(bundle) { + writeBundle( + bundle, + beginPrint(), + /*sourceMapGenerator*/ + void 0 + ); + return endPrint(); + } + function printFile(sourceFile) { + writeFile2( + sourceFile, + beginPrint(), + /*sourceMapGenerator*/ + void 0 + ); + return endPrint(); + } + function writeNode(hint, node, sourceFile, output) { + const previousWriter = writer; + setWriter( + output, + /*_sourceMapGenerator*/ + void 0 + ); + print(hint, node, sourceFile); + reset(); + writer = previousWriter; + } + function writeList(format, nodes, sourceFile, output) { + const previousWriter = writer; + setWriter( + output, + /*_sourceMapGenerator*/ + void 0 + ); + if (sourceFile) { + setSourceFile(sourceFile); + } + emitList( + /*parentNode*/ + void 0, + nodes, + format + ); + reset(); + writer = previousWriter; + } + function writeBundle(bundle, output, sourceMapGenerator2) { + isOwnFileEmit = false; + const previousWriter = writer; + setWriter(output, sourceMapGenerator2); + emitShebangIfNeeded(bundle); + emitPrologueDirectivesIfNeeded(bundle); + emitHelpers(bundle); + emitSyntheticTripleSlashReferencesIfNeeded(bundle); + for (const sourceFile of bundle.sourceFiles) { + print(0 /* SourceFile */, sourceFile, sourceFile); + } + reset(); + writer = previousWriter; + } + function writeFile2(sourceFile, output, sourceMapGenerator2) { + isOwnFileEmit = true; + const previousWriter = writer; + setWriter(output, sourceMapGenerator2); + emitShebangIfNeeded(sourceFile); + emitPrologueDirectivesIfNeeded(sourceFile); + print(0 /* SourceFile */, sourceFile, sourceFile); + reset(); + writer = previousWriter; + } + function beginPrint() { + return ownWriter || (ownWriter = createTextWriter(newLine)); + } + function endPrint() { + const text = ownWriter.getText(); + ownWriter.clear(); + return text; + } + function print(hint, node, sourceFile) { + if (sourceFile) { + setSourceFile(sourceFile); + } + pipelineEmit( + hint, + node, + /*parenthesizerRule*/ + void 0 + ); + } + function setSourceFile(sourceFile) { + currentSourceFile = sourceFile; + currentLineMap = void 0; + detachedCommentsInfo = void 0; + if (sourceFile) { + setSourceMapSource(sourceFile); + } + } + function setWriter(_writer, _sourceMapGenerator) { + if (_writer && printerOptions.omitTrailingSemicolon) { + _writer = getTrailingSemicolonDeferringWriter(_writer); + } + writer = _writer; + sourceMapGenerator = _sourceMapGenerator; + sourceMapsDisabled = !writer || !sourceMapGenerator; + } + function reset() { + nodeIdToGeneratedName = []; + nodeIdToGeneratedPrivateName = []; + autoGeneratedIdToGeneratedName = []; + generatedNames = /* @__PURE__ */ new Set(); + formattedNameTempFlagsStack = []; + formattedNameTempFlags = /* @__PURE__ */ new Map(); + privateNameTempFlagsStack = []; + privateNameTempFlags = 0 /* Auto */; + tempFlagsStack = []; + tempFlags = 0 /* Auto */; + reservedNamesStack = []; + reservedNames = void 0; + reservedPrivateNamesStack = []; + reservedPrivateNames = void 0; + currentSourceFile = void 0; + currentLineMap = void 0; + detachedCommentsInfo = void 0; + setWriter( + /*output*/ + void 0, + /*_sourceMapGenerator*/ + void 0 + ); + } + function getCurrentLineMap() { + return currentLineMap || (currentLineMap = getLineStarts(Debug.checkDefined(currentSourceFile))); + } + function emit(node, parenthesizerRule) { + if (node === void 0) return; + pipelineEmit(4 /* Unspecified */, node, parenthesizerRule); + } + function emitIdentifierName(node) { + if (node === void 0) return; + pipelineEmit( + 2 /* IdentifierName */, + node, + /*parenthesizerRule*/ + void 0 + ); + } + function emitExpression(node, parenthesizerRule) { + if (node === void 0) return; + pipelineEmit(1 /* Expression */, node, parenthesizerRule); + } + function emitJsxAttributeValue(node) { + pipelineEmit(isStringLiteral(node) ? 6 /* JsxAttributeValue */ : 4 /* Unspecified */, node); + } + function beforeEmitNode(node) { + if (preserveSourceNewlines && getInternalEmitFlags(node) & 4 /* IgnoreSourceNewlines */) { + preserveSourceNewlines = false; + } + } + function afterEmitNode(savedPreserveSourceNewlines) { + preserveSourceNewlines = savedPreserveSourceNewlines; + } + function pipelineEmit(emitHint, node, parenthesizerRule) { + currentParenthesizerRule = parenthesizerRule; + const pipelinePhase = getPipelinePhase(0 /* Notification */, emitHint, node); + pipelinePhase(emitHint, node); + currentParenthesizerRule = void 0; + } + function shouldEmitComments(node) { + return !commentsDisabled && !isSourceFile(node); + } + function shouldEmitSourceMaps(node) { + return !sourceMapsDisabled && !isSourceFile(node) && !isInJsonFile(node); + } + function getPipelinePhase(phase, emitHint, node) { + switch (phase) { + case 0 /* Notification */: + if (onEmitNode !== noEmitNotification && (!isEmitNotificationEnabled || isEmitNotificationEnabled(node))) { + return pipelineEmitWithNotification; + } + case 1 /* Substitution */: + if (substituteNode !== noEmitSubstitution && (lastSubstitution = substituteNode(emitHint, node) || node) !== node) { + if (currentParenthesizerRule) { + lastSubstitution = currentParenthesizerRule(lastSubstitution); + } + return pipelineEmitWithSubstitution; + } + case 2 /* Comments */: + if (shouldEmitComments(node)) { + return pipelineEmitWithComments; + } + case 3 /* SourceMaps */: + if (shouldEmitSourceMaps(node)) { + return pipelineEmitWithSourceMaps; + } + case 4 /* Emit */: + return pipelineEmitWithHint; + default: + return Debug.assertNever(phase); + } + } + function getNextPipelinePhase(currentPhase, emitHint, node) { + return getPipelinePhase(currentPhase + 1, emitHint, node); + } + function pipelineEmitWithNotification(hint, node) { + const pipelinePhase = getNextPipelinePhase(0 /* Notification */, hint, node); + onEmitNode(hint, node, pipelinePhase); + } + function pipelineEmitWithHint(hint, node) { + onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node); + if (preserveSourceNewlines) { + const savedPreserveSourceNewlines = preserveSourceNewlines; + beforeEmitNode(node); + pipelineEmitWithHintWorker(hint, node); + afterEmitNode(savedPreserveSourceNewlines); + } else { + pipelineEmitWithHintWorker(hint, node); + } + onAfterEmitNode == null ? void 0 : onAfterEmitNode(node); + currentParenthesizerRule = void 0; + } + function pipelineEmitWithHintWorker(hint, node, allowSnippets = true) { + if (allowSnippets) { + const snippet = getSnippetElement(node); + if (snippet) { + return emitSnippetNode(hint, node, snippet); + } + } + if (hint === 0 /* SourceFile */) return emitSourceFile(cast(node, isSourceFile)); + if (hint === 2 /* IdentifierName */) return emitIdentifier(cast(node, isIdentifier)); + if (hint === 6 /* JsxAttributeValue */) return emitLiteral( + cast(node, isStringLiteral), + /*jsxAttributeEscape*/ + true + ); + if (hint === 3 /* MappedTypeParameter */) return emitMappedTypeParameter(cast(node, isTypeParameterDeclaration)); + if (hint === 7 /* ImportTypeNodeAttributes */) return emitImportTypeNodeAttributes(cast(node, isImportAttributes)); + if (hint === 5 /* EmbeddedStatement */) { + Debug.assertNode(node, isEmptyStatement); + return emitEmptyStatement( + /*isEmbeddedStatement*/ + true + ); + } + if (hint === 4 /* Unspecified */) { + switch (node.kind) { + case 16 /* TemplateHead */: + case 17 /* TemplateMiddle */: + case 18 /* TemplateTail */: + return emitLiteral( + node, + /*jsxAttributeEscape*/ + false + ); + case 80 /* Identifier */: + return emitIdentifier(node); + case 81 /* PrivateIdentifier */: + return emitPrivateIdentifier(node); + case 166 /* QualifiedName */: + return emitQualifiedName(node); + case 167 /* ComputedPropertyName */: + return emitComputedPropertyName(node); + case 168 /* TypeParameter */: + return emitTypeParameter(node); + case 169 /* Parameter */: + return emitParameter(node); + case 170 /* Decorator */: + return emitDecorator(node); + case 171 /* PropertySignature */: + return emitPropertySignature(node); + case 172 /* PropertyDeclaration */: + return emitPropertyDeclaration(node); + case 173 /* MethodSignature */: + return emitMethodSignature(node); + case 174 /* MethodDeclaration */: + return emitMethodDeclaration(node); + case 175 /* ClassStaticBlockDeclaration */: + return emitClassStaticBlockDeclaration(node); + case 176 /* Constructor */: + return emitConstructor(node); + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return emitAccessorDeclaration(node); + case 179 /* CallSignature */: + return emitCallSignature(node); + case 180 /* ConstructSignature */: + return emitConstructSignature(node); + case 181 /* IndexSignature */: + return emitIndexSignature(node); + case 182 /* TypePredicate */: + return emitTypePredicate(node); + case 183 /* TypeReference */: + return emitTypeReference(node); + case 184 /* FunctionType */: + return emitFunctionType(node); + case 185 /* ConstructorType */: + return emitConstructorType(node); + case 186 /* TypeQuery */: + return emitTypeQuery(node); + case 187 /* TypeLiteral */: + return emitTypeLiteral(node); + case 188 /* ArrayType */: + return emitArrayType(node); + case 189 /* TupleType */: + return emitTupleType(node); + case 190 /* OptionalType */: + return emitOptionalType(node); + case 192 /* UnionType */: + return emitUnionType(node); + case 193 /* IntersectionType */: + return emitIntersectionType(node); + case 194 /* ConditionalType */: + return emitConditionalType(node); + case 195 /* InferType */: + return emitInferType(node); + case 196 /* ParenthesizedType */: + return emitParenthesizedType(node); + case 233 /* ExpressionWithTypeArguments */: + return emitExpressionWithTypeArguments(node); + case 197 /* ThisType */: + return emitThisType(); + case 198 /* TypeOperator */: + return emitTypeOperator(node); + case 199 /* IndexedAccessType */: + return emitIndexedAccessType(node); + case 200 /* MappedType */: + return emitMappedType(node); + case 201 /* LiteralType */: + return emitLiteralType(node); + case 202 /* NamedTupleMember */: + return emitNamedTupleMember(node); + case 203 /* TemplateLiteralType */: + return emitTemplateType(node); + case 204 /* TemplateLiteralTypeSpan */: + return emitTemplateTypeSpan(node); + case 205 /* ImportType */: + return emitImportTypeNode(node); + case 206 /* ObjectBindingPattern */: + return emitObjectBindingPattern(node); + case 207 /* ArrayBindingPattern */: + return emitArrayBindingPattern(node); + case 208 /* BindingElement */: + return emitBindingElement(node); + case 239 /* TemplateSpan */: + return emitTemplateSpan(node); + case 240 /* SemicolonClassElement */: + return emitSemicolonClassElement(); + case 241 /* Block */: + return emitBlock(node); + case 243 /* VariableStatement */: + return emitVariableStatement(node); + case 242 /* EmptyStatement */: + return emitEmptyStatement( + /*isEmbeddedStatement*/ + false + ); + case 244 /* ExpressionStatement */: + return emitExpressionStatement(node); + case 245 /* IfStatement */: + return emitIfStatement(node); + case 246 /* DoStatement */: + return emitDoStatement(node); + case 247 /* WhileStatement */: + return emitWhileStatement(node); + case 248 /* ForStatement */: + return emitForStatement(node); + case 249 /* ForInStatement */: + return emitForInStatement(node); + case 250 /* ForOfStatement */: + return emitForOfStatement(node); + case 251 /* ContinueStatement */: + return emitContinueStatement(node); + case 252 /* BreakStatement */: + return emitBreakStatement(node); + case 253 /* ReturnStatement */: + return emitReturnStatement(node); + case 254 /* WithStatement */: + return emitWithStatement(node); + case 255 /* SwitchStatement */: + return emitSwitchStatement(node); + case 256 /* LabeledStatement */: + return emitLabeledStatement(node); + case 257 /* ThrowStatement */: + return emitThrowStatement(node); + case 258 /* TryStatement */: + return emitTryStatement(node); + case 259 /* DebuggerStatement */: + return emitDebuggerStatement(node); + case 260 /* VariableDeclaration */: + return emitVariableDeclaration(node); + case 261 /* VariableDeclarationList */: + return emitVariableDeclarationList(node); + case 262 /* FunctionDeclaration */: + return emitFunctionDeclaration(node); + case 263 /* ClassDeclaration */: + return emitClassDeclaration(node); + case 264 /* InterfaceDeclaration */: + return emitInterfaceDeclaration(node); + case 265 /* TypeAliasDeclaration */: + return emitTypeAliasDeclaration(node); + case 266 /* EnumDeclaration */: + return emitEnumDeclaration(node); + case 267 /* ModuleDeclaration */: + return emitModuleDeclaration(node); + case 268 /* ModuleBlock */: + return emitModuleBlock(node); + case 269 /* CaseBlock */: + return emitCaseBlock(node); + case 270 /* NamespaceExportDeclaration */: + return emitNamespaceExportDeclaration(node); + case 271 /* ImportEqualsDeclaration */: + return emitImportEqualsDeclaration(node); + case 272 /* ImportDeclaration */: + return emitImportDeclaration(node); + case 273 /* ImportClause */: + return emitImportClause(node); + case 274 /* NamespaceImport */: + return emitNamespaceImport(node); + case 280 /* NamespaceExport */: + return emitNamespaceExport(node); + case 275 /* NamedImports */: + return emitNamedImports(node); + case 276 /* ImportSpecifier */: + return emitImportSpecifier(node); + case 277 /* ExportAssignment */: + return emitExportAssignment(node); + case 278 /* ExportDeclaration */: + return emitExportDeclaration(node); + case 279 /* NamedExports */: + return emitNamedExports(node); + case 281 /* ExportSpecifier */: + return emitExportSpecifier(node); + case 300 /* ImportAttributes */: + return emitImportAttributes(node); + case 301 /* ImportAttribute */: + return emitImportAttribute(node); + case 282 /* MissingDeclaration */: + return; + case 283 /* ExternalModuleReference */: + return emitExternalModuleReference(node); + case 12 /* JsxText */: + return emitJsxText(node); + case 286 /* JsxOpeningElement */: + case 289 /* JsxOpeningFragment */: + return emitJsxOpeningElementOrFragment(node); + case 287 /* JsxClosingElement */: + case 290 /* JsxClosingFragment */: + return emitJsxClosingElementOrFragment(node); + case 291 /* JsxAttribute */: + return emitJsxAttribute(node); + case 292 /* JsxAttributes */: + return emitJsxAttributes(node); + case 293 /* JsxSpreadAttribute */: + return emitJsxSpreadAttribute(node); + case 294 /* JsxExpression */: + return emitJsxExpression(node); + case 295 /* JsxNamespacedName */: + return emitJsxNamespacedName(node); + case 296 /* CaseClause */: + return emitCaseClause(node); + case 297 /* DefaultClause */: + return emitDefaultClause(node); + case 298 /* HeritageClause */: + return emitHeritageClause(node); + case 299 /* CatchClause */: + return emitCatchClause(node); + case 303 /* PropertyAssignment */: + return emitPropertyAssignment(node); + case 304 /* ShorthandPropertyAssignment */: + return emitShorthandPropertyAssignment(node); + case 305 /* SpreadAssignment */: + return emitSpreadAssignment(node); + case 306 /* EnumMember */: + return emitEnumMember(node); + case 307 /* SourceFile */: + return emitSourceFile(node); + case 308 /* Bundle */: + return Debug.fail("Bundles should be printed using printBundle"); + case 309 /* JSDocTypeExpression */: + return emitJSDocTypeExpression(node); + case 310 /* JSDocNameReference */: + return emitJSDocNameReference(node); + case 312 /* JSDocAllType */: + return writePunctuation("*"); + case 313 /* JSDocUnknownType */: + return writePunctuation("?"); + case 314 /* JSDocNullableType */: + return emitJSDocNullableType(node); + case 315 /* JSDocNonNullableType */: + return emitJSDocNonNullableType(node); + case 316 /* JSDocOptionalType */: + return emitJSDocOptionalType(node); + case 317 /* JSDocFunctionType */: + return emitJSDocFunctionType(node); + case 191 /* RestType */: + case 318 /* JSDocVariadicType */: + return emitRestOrJSDocVariadicType(node); + case 319 /* JSDocNamepathType */: + return; + case 320 /* JSDoc */: + return emitJSDoc(node); + case 322 /* JSDocTypeLiteral */: + return emitJSDocTypeLiteral(node); + case 323 /* JSDocSignature */: + return emitJSDocSignature(node); + case 327 /* JSDocTag */: + case 332 /* JSDocClassTag */: + case 337 /* JSDocOverrideTag */: + return emitJSDocSimpleTag(node); + case 328 /* JSDocAugmentsTag */: + case 329 /* JSDocImplementsTag */: + return emitJSDocHeritageTag(node); + case 330 /* JSDocAuthorTag */: + case 331 /* JSDocDeprecatedTag */: + return; + case 333 /* JSDocPublicTag */: + case 334 /* JSDocPrivateTag */: + case 335 /* JSDocProtectedTag */: + case 336 /* JSDocReadonlyTag */: + return; + case 338 /* JSDocCallbackTag */: + return emitJSDocCallbackTag(node); + case 339 /* JSDocOverloadTag */: + return emitJSDocOverloadTag(node); + case 341 /* JSDocParameterTag */: + case 348 /* JSDocPropertyTag */: + return emitJSDocPropertyLikeTag(node); + case 340 /* JSDocEnumTag */: + case 342 /* JSDocReturnTag */: + case 343 /* JSDocThisTag */: + case 344 /* JSDocTypeTag */: + case 349 /* JSDocThrowsTag */: + case 350 /* JSDocSatisfiesTag */: + return emitJSDocSimpleTypedTag(node); + case 345 /* JSDocTemplateTag */: + return emitJSDocTemplateTag(node); + case 346 /* JSDocTypedefTag */: + return emitJSDocTypedefTag(node); + case 347 /* JSDocSeeTag */: + return emitJSDocSeeTag(node); + case 351 /* JSDocImportTag */: + return emitJSDocImportTag(node); + case 353 /* NotEmittedStatement */: + return; + } + if (isExpression(node)) { + hint = 1 /* Expression */; + if (substituteNode !== noEmitSubstitution) { + const substitute = substituteNode(hint, node) || node; + if (substitute !== node) { + node = substitute; + if (currentParenthesizerRule) { + node = currentParenthesizerRule(node); + } + } + } + } + } + if (hint === 1 /* Expression */) { + switch (node.kind) { + case 9 /* NumericLiteral */: + case 10 /* BigIntLiteral */: + return emitNumericOrBigIntLiteral(node); + case 11 /* StringLiteral */: + case 14 /* RegularExpressionLiteral */: + case 15 /* NoSubstitutionTemplateLiteral */: + return emitLiteral( + node, + /*jsxAttributeEscape*/ + false + ); + case 80 /* Identifier */: + return emitIdentifier(node); + case 81 /* PrivateIdentifier */: + return emitPrivateIdentifier(node); + case 209 /* ArrayLiteralExpression */: + return emitArrayLiteralExpression(node); + case 210 /* ObjectLiteralExpression */: + return emitObjectLiteralExpression(node); + case 211 /* PropertyAccessExpression */: + return emitPropertyAccessExpression(node); + case 212 /* ElementAccessExpression */: + return emitElementAccessExpression(node); + case 213 /* CallExpression */: + return emitCallExpression(node); + case 214 /* NewExpression */: + return emitNewExpression(node); + case 215 /* TaggedTemplateExpression */: + return emitTaggedTemplateExpression(node); + case 216 /* TypeAssertionExpression */: + return emitTypeAssertionExpression(node); + case 217 /* ParenthesizedExpression */: + return emitParenthesizedExpression(node); + case 218 /* FunctionExpression */: + return emitFunctionExpression(node); + case 219 /* ArrowFunction */: + return emitArrowFunction(node); + case 220 /* DeleteExpression */: + return emitDeleteExpression(node); + case 221 /* TypeOfExpression */: + return emitTypeOfExpression(node); + case 222 /* VoidExpression */: + return emitVoidExpression(node); + case 223 /* AwaitExpression */: + return emitAwaitExpression(node); + case 224 /* PrefixUnaryExpression */: + return emitPrefixUnaryExpression(node); + case 225 /* PostfixUnaryExpression */: + return emitPostfixUnaryExpression(node); + case 226 /* BinaryExpression */: + return emitBinaryExpression(node); + case 227 /* ConditionalExpression */: + return emitConditionalExpression(node); + case 228 /* TemplateExpression */: + return emitTemplateExpression(node); + case 229 /* YieldExpression */: + return emitYieldExpression(node); + case 230 /* SpreadElement */: + return emitSpreadElement(node); + case 231 /* ClassExpression */: + return emitClassExpression(node); + case 232 /* OmittedExpression */: + return; + case 234 /* AsExpression */: + return emitAsExpression(node); + case 235 /* NonNullExpression */: + return emitNonNullExpression(node); + case 233 /* ExpressionWithTypeArguments */: + return emitExpressionWithTypeArguments(node); + case 238 /* SatisfiesExpression */: + return emitSatisfiesExpression(node); + case 236 /* MetaProperty */: + return emitMetaProperty(node); + case 237 /* SyntheticExpression */: + return Debug.fail("SyntheticExpression should never be printed."); + case 282 /* MissingDeclaration */: + return; + case 284 /* JsxElement */: + return emitJsxElement(node); + case 285 /* JsxSelfClosingElement */: + return emitJsxSelfClosingElement(node); + case 288 /* JsxFragment */: + return emitJsxFragment(node); + case 352 /* SyntaxList */: + return Debug.fail("SyntaxList should not be printed"); + case 353 /* NotEmittedStatement */: + return; + case 354 /* PartiallyEmittedExpression */: + return emitPartiallyEmittedExpression(node); + case 355 /* CommaListExpression */: + return emitCommaList(node); + case 356 /* SyntheticReferenceExpression */: + return Debug.fail("SyntheticReferenceExpression should not be printed"); + } + } + if (isKeyword(node.kind)) return writeTokenNode(node, writeKeyword); + if (isTokenKind(node.kind)) return writeTokenNode(node, writePunctuation); + Debug.fail(`Unhandled SyntaxKind: ${Debug.formatSyntaxKind(node.kind)}.`); + } + function emitMappedTypeParameter(node) { + emit(node.name); + writeSpace(); + writeKeyword("in"); + writeSpace(); + emit(node.constraint); + } + function pipelineEmitWithSubstitution(hint, node) { + const pipelinePhase = getNextPipelinePhase(1 /* Substitution */, hint, node); + Debug.assertIsDefined(lastSubstitution); + node = lastSubstitution; + lastSubstitution = void 0; + pipelinePhase(hint, node); + } + function emitHelpers(node) { + let helpersEmitted = false; + const bundle = node.kind === 308 /* Bundle */ ? node : void 0; + if (bundle && moduleKind === 0 /* None */) { + return; + } + const numNodes = bundle ? bundle.sourceFiles.length : 1; + for (let i = 0; i < numNodes; i++) { + const currentNode = bundle ? bundle.sourceFiles[i] : node; + const sourceFile = isSourceFile(currentNode) ? currentNode : currentSourceFile; + const shouldSkip = printerOptions.noEmitHelpers || !!sourceFile && hasRecordedExternalHelpers(sourceFile); + const shouldBundle = isSourceFile(currentNode) && !isOwnFileEmit; + const helpers = getSortedEmitHelpers(currentNode); + if (helpers) { + for (const helper of helpers) { + if (!helper.scoped) { + if (shouldSkip) continue; + if (shouldBundle) { + if (bundledHelpers.get(helper.name)) { + continue; + } + bundledHelpers.set(helper.name, true); + } + } else if (bundle) { + continue; + } + if (typeof helper.text === "string") { + writeLines(helper.text); + } else { + writeLines(helper.text(makeFileLevelOptimisticUniqueName)); + } + helpersEmitted = true; + } + } + } + return helpersEmitted; + } + function getSortedEmitHelpers(node) { + const helpers = getEmitHelpers(node); + return helpers && stableSort(helpers, compareEmitHelpers); + } + function emitNumericOrBigIntLiteral(node) { + emitLiteral( + node, + /*jsxAttributeEscape*/ + false + ); + } + function emitLiteral(node, jsxAttributeEscape) { + const text = getLiteralTextOfNode(node, printerOptions.neverAsciiEscape, jsxAttributeEscape); + if ((printerOptions.sourceMap || printerOptions.inlineSourceMap) && (node.kind === 11 /* StringLiteral */ || isTemplateLiteralKind(node.kind))) { + writeLiteral(text); + } else { + writeStringLiteral(text); + } + } + function emitSnippetNode(hint, node, snippet) { + switch (snippet.kind) { + case 1 /* Placeholder */: + emitPlaceholder(hint, node, snippet); + break; + case 0 /* TabStop */: + emitTabStop(hint, node, snippet); + break; + } + } + function emitPlaceholder(hint, node, snippet) { + nonEscapingWrite(`\${${snippet.order}:`); + pipelineEmitWithHintWorker( + hint, + node, + /*allowSnippets*/ + false + ); + nonEscapingWrite(`}`); + } + function emitTabStop(hint, node, snippet) { + Debug.assert(node.kind === 242 /* EmptyStatement */, `A tab stop cannot be attached to a node of kind ${Debug.formatSyntaxKind(node.kind)}.`); + Debug.assert(hint !== 5 /* EmbeddedStatement */, `A tab stop cannot be attached to an embedded statement.`); + nonEscapingWrite(`$${snippet.order}`); + } + function emitIdentifier(node) { + const writeText = node.symbol ? writeSymbol : write; + writeText(getTextOfNode2( + node, + /*includeTrivia*/ + false + ), node.symbol); + emitList(node, getIdentifierTypeArguments(node), 53776 /* TypeParameters */); + } + function emitPrivateIdentifier(node) { + write(getTextOfNode2( + node, + /*includeTrivia*/ + false + )); + } + function emitQualifiedName(node) { + emitEntityName(node.left); + writePunctuation("."); + emit(node.right); + } + function emitEntityName(node) { + if (node.kind === 80 /* Identifier */) { + emitExpression(node); + } else { + emit(node); + } + } + function emitComputedPropertyName(node) { + writePunctuation("["); + emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfComputedPropertyName); + writePunctuation("]"); + } + function emitTypeParameter(node) { + emitModifierList(node, node.modifiers); + emit(node.name); + if (node.constraint) { + writeSpace(); + writeKeyword("extends"); + writeSpace(); + emit(node.constraint); + } + if (node.default) { + writeSpace(); + writeOperator("="); + writeSpace(); + emit(node.default); + } + } + function emitParameter(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + true + ); + emit(node.dotDotDotToken); + emitNodeWithWriter(node.name, writeParameter); + emit(node.questionToken); + if (node.parent && node.parent.kind === 317 /* JSDocFunctionType */ && !node.name) { + emit(node.type); + } else { + emitTypeAnnotation(node.type); + } + emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name ? node.name.end : node.modifiers ? node.modifiers.end : node.pos, node, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitDecorator(decorator) { + writePunctuation("@"); + emitExpression(decorator.expression, parenthesizer.parenthesizeLeftSideOfAccess); + } + function emitPropertySignature(node) { + emitModifierList(node, node.modifiers); + emitNodeWithWriter(node.name, writeProperty); + emit(node.questionToken); + emitTypeAnnotation(node.type); + writeTrailingSemicolon(); + } + function emitPropertyDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + true + ); + emit(node.name); + emit(node.questionToken); + emit(node.exclamationToken); + emitTypeAnnotation(node.type); + emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name.end, node); + writeTrailingSemicolon(); + } + function emitMethodSignature(node) { + emitModifierList(node, node.modifiers); + emit(node.name); + emit(node.questionToken); + emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); + } + function emitMethodDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + true + ); + emit(node.asteriskToken); + emit(node.name); + emit(node.questionToken); + emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); + } + function emitClassStaticBlockDeclaration(node) { + writeKeyword("static"); + pushNameGenerationScope(node); + emitBlockFunctionBody(node.body); + popNameGenerationScope(node); + } + function emitConstructor(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + writeKeyword("constructor"); + emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); + } + function emitAccessorDeclaration(node) { + const pos = emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + true + ); + const token = node.kind === 177 /* GetAccessor */ ? 139 /* GetKeyword */ : 153 /* SetKeyword */; + emitTokenWithComment(token, pos, writeKeyword, node); + writeSpace(); + emit(node.name); + emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); + } + function emitCallSignature(node) { + emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); + } + function emitConstructSignature(node) { + writeKeyword("new"); + writeSpace(); + emitSignatureAndBody(node, emitSignatureHead, emitEmptyFunctionBody); + } + function emitIndexSignature(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + emitParametersForIndexSignature(node, node.parameters); + emitTypeAnnotation(node.type); + writeTrailingSemicolon(); + } + function emitTemplateTypeSpan(node) { + emit(node.type); + emit(node.literal); + } + function emitSemicolonClassElement() { + writeTrailingSemicolon(); + } + function emitTypePredicate(node) { + if (node.assertsModifier) { + emit(node.assertsModifier); + writeSpace(); + } + emit(node.parameterName); + if (node.type) { + writeSpace(); + writeKeyword("is"); + writeSpace(); + emit(node.type); + } + } + function emitTypeReference(node) { + emit(node.typeName); + emitTypeArguments(node, node.typeArguments); + } + function emitFunctionType(node) { + emitSignatureAndBody(node, emitFunctionTypeHead, emitFunctionTypeBody); + } + function emitFunctionTypeHead(node) { + emitTypeParameters(node, node.typeParameters); + emitParametersForArrow(node, node.parameters); + writeSpace(); + writePunctuation("=>"); + } + function emitFunctionTypeBody(node) { + writeSpace(); + emit(node.type); + } + function emitJSDocFunctionType(node) { + writeKeyword("function"); + emitParameters(node, node.parameters); + writePunctuation(":"); + emit(node.type); + } + function emitJSDocNullableType(node) { + writePunctuation("?"); + emit(node.type); + } + function emitJSDocNonNullableType(node) { + writePunctuation("!"); + emit(node.type); + } + function emitJSDocOptionalType(node) { + emit(node.type); + writePunctuation("="); + } + function emitConstructorType(node) { + emitModifierList(node, node.modifiers); + writeKeyword("new"); + writeSpace(); + emitSignatureAndBody(node, emitFunctionTypeHead, emitFunctionTypeBody); + } + function emitTypeQuery(node) { + writeKeyword("typeof"); + writeSpace(); + emit(node.exprName); + emitTypeArguments(node, node.typeArguments); + } + function emitTypeLiteral(node) { + pushNameGenerationScope(node); + forEach(node.members, generateMemberNames); + writePunctuation("{"); + const flags = getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineTypeLiteralMembers */ : 32897 /* MultiLineTypeLiteralMembers */; + emitList(node, node.members, flags | 524288 /* NoSpaceIfEmpty */); + writePunctuation("}"); + popNameGenerationScope(node); + } + function emitArrayType(node) { + emit(node.elementType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType); + writePunctuation("["); + writePunctuation("]"); + } + function emitRestOrJSDocVariadicType(node) { + writePunctuation("..."); + emit(node.type); + } + function emitTupleType(node) { + emitTokenWithComment(23 /* OpenBracketToken */, node.pos, writePunctuation, node); + const flags = getEmitFlags(node) & 1 /* SingleLine */ ? 528 /* SingleLineTupleTypeElements */ : 657 /* MultiLineTupleTypeElements */; + emitList(node, node.elements, flags | 524288 /* NoSpaceIfEmpty */, parenthesizer.parenthesizeElementTypeOfTupleType); + emitTokenWithComment(24 /* CloseBracketToken */, node.elements.end, writePunctuation, node); + } + function emitNamedTupleMember(node) { + emit(node.dotDotDotToken); + emit(node.name); + emit(node.questionToken); + emitTokenWithComment(59 /* ColonToken */, node.name.end, writePunctuation, node); + writeSpace(); + emit(node.type); + } + function emitOptionalType(node) { + emit(node.type, parenthesizer.parenthesizeTypeOfOptionalType); + writePunctuation("?"); + } + function emitUnionType(node) { + emitList(node, node.types, 516 /* UnionTypeConstituents */, parenthesizer.parenthesizeConstituentTypeOfUnionType); + } + function emitIntersectionType(node) { + emitList(node, node.types, 520 /* IntersectionTypeConstituents */, parenthesizer.parenthesizeConstituentTypeOfIntersectionType); + } + function emitConditionalType(node) { + emit(node.checkType, parenthesizer.parenthesizeCheckTypeOfConditionalType); + writeSpace(); + writeKeyword("extends"); + writeSpace(); + emit(node.extendsType, parenthesizer.parenthesizeExtendsTypeOfConditionalType); + writeSpace(); + writePunctuation("?"); + writeSpace(); + emit(node.trueType); + writeSpace(); + writePunctuation(":"); + writeSpace(); + emit(node.falseType); + } + function emitInferType(node) { + writeKeyword("infer"); + writeSpace(); + emit(node.typeParameter); + } + function emitParenthesizedType(node) { + writePunctuation("("); + emit(node.type); + writePunctuation(")"); + } + function emitThisType() { + writeKeyword("this"); + } + function emitTypeOperator(node) { + writeTokenText(node.operator, writeKeyword); + writeSpace(); + const parenthesizerRule = node.operator === 148 /* ReadonlyKeyword */ ? parenthesizer.parenthesizeOperandOfReadonlyTypeOperator : parenthesizer.parenthesizeOperandOfTypeOperator; + emit(node.type, parenthesizerRule); + } + function emitIndexedAccessType(node) { + emit(node.objectType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType); + writePunctuation("["); + emit(node.indexType); + writePunctuation("]"); + } + function emitMappedType(node) { + const emitFlags = getEmitFlags(node); + writePunctuation("{"); + if (emitFlags & 1 /* SingleLine */) { + writeSpace(); + } else { + writeLine(); + increaseIndent(); + } + if (node.readonlyToken) { + emit(node.readonlyToken); + if (node.readonlyToken.kind !== 148 /* ReadonlyKeyword */) { + writeKeyword("readonly"); + } + writeSpace(); + } + writePunctuation("["); + pipelineEmit(3 /* MappedTypeParameter */, node.typeParameter); + if (node.nameType) { + writeSpace(); + writeKeyword("as"); + writeSpace(); + emit(node.nameType); + } + writePunctuation("]"); + if (node.questionToken) { + emit(node.questionToken); + if (node.questionToken.kind !== 58 /* QuestionToken */) { + writePunctuation("?"); + } + } + writePunctuation(":"); + writeSpace(); + emit(node.type); + writeTrailingSemicolon(); + if (emitFlags & 1 /* SingleLine */) { + writeSpace(); + } else { + writeLine(); + decreaseIndent(); + } + emitList(node, node.members, 2 /* PreserveLines */); + writePunctuation("}"); + } + function emitLiteralType(node) { + emitExpression(node.literal); + } + function emitTemplateType(node) { + emit(node.head); + emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */); + } + function emitImportTypeNode(node) { + if (node.isTypeOf) { + writeKeyword("typeof"); + writeSpace(); + } + writeKeyword("import"); + writePunctuation("("); + emit(node.argument); + if (node.attributes) { + writePunctuation(","); + writeSpace(); + pipelineEmit(7 /* ImportTypeNodeAttributes */, node.attributes); + } + writePunctuation(")"); + if (node.qualifier) { + writePunctuation("."); + emit(node.qualifier); + } + emitTypeArguments(node, node.typeArguments); + } + function emitObjectBindingPattern(node) { + writePunctuation("{"); + emitList(node, node.elements, 525136 /* ObjectBindingPatternElements */); + writePunctuation("}"); + } + function emitArrayBindingPattern(node) { + writePunctuation("["); + emitList(node, node.elements, 524880 /* ArrayBindingPatternElements */); + writePunctuation("]"); + } + function emitBindingElement(node) { + emit(node.dotDotDotToken); + if (node.propertyName) { + emit(node.propertyName); + writePunctuation(":"); + writeSpace(); + } + emit(node.name); + emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitArrayLiteralExpression(node) { + const elements = node.elements; + const preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */; + emitExpressionList(node, elements, 8914 /* ArrayLiteralExpressionElements */ | preferNewLine, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitObjectLiteralExpression(node) { + pushNameGenerationScope(node); + forEach(node.properties, generateMemberNames); + const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; + if (indentedFlag) { + increaseIndent(); + } + const preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */; + const allowTrailingComma = currentSourceFile && currentSourceFile.languageVersion >= 1 /* ES5 */ && !isJsonSourceFile(currentSourceFile) ? 64 /* AllowTrailingComma */ : 0 /* None */; + emitList(node, node.properties, 526226 /* ObjectLiteralExpressionProperties */ | allowTrailingComma | preferNewLine); + if (indentedFlag) { + decreaseIndent(); + } + popNameGenerationScope(node); + } + function emitPropertyAccessExpression(node) { + emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); + const token = node.questionDotToken || setTextRangePosEnd(factory.createToken(25 /* DotToken */), node.expression.end, node.name.pos); + const linesBeforeDot = getLinesBetweenNodes(node, node.expression, token); + const linesAfterDot = getLinesBetweenNodes(node, token, node.name); + writeLinesAndIndent( + linesBeforeDot, + /*writeSpaceIfNotIndenting*/ + false + ); + const shouldEmitDotDot = token.kind !== 29 /* QuestionDotToken */ && mayNeedDotDotForPropertyAccess(node.expression) && !writer.hasTrailingComment() && !writer.hasTrailingWhitespace(); + if (shouldEmitDotDot) { + writePunctuation("."); + } + if (node.questionDotToken) { + emit(token); + } else { + emitTokenWithComment(token.kind, node.expression.end, writePunctuation, node); + } + writeLinesAndIndent( + linesAfterDot, + /*writeSpaceIfNotIndenting*/ + false + ); + emit(node.name); + decreaseIndentIf(linesBeforeDot, linesAfterDot); + } + function mayNeedDotDotForPropertyAccess(expression) { + expression = skipPartiallyEmittedExpressions(expression); + if (isNumericLiteral(expression)) { + const text = getLiteralTextOfNode( + expression, + /*neverAsciiEscape*/ + true, + /*jsxAttributeEscape*/ + false + ); + return !(expression.numericLiteralFlags & 448 /* WithSpecifier */) && !text.includes(tokenToString(25 /* DotToken */)) && !text.includes(String.fromCharCode(69 /* E */)) && !text.includes(String.fromCharCode(101 /* e */)); + } else if (isAccessExpression(expression)) { + const constantValue = getConstantValue(expression); + return typeof constantValue === "number" && isFinite(constantValue) && constantValue >= 0 && Math.floor(constantValue) === constantValue; + } + } + function emitElementAccessExpression(node) { + emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); + emit(node.questionDotToken); + emitTokenWithComment(23 /* OpenBracketToken */, node.expression.end, writePunctuation, node); + emitExpression(node.argumentExpression); + emitTokenWithComment(24 /* CloseBracketToken */, node.argumentExpression.end, writePunctuation, node); + } + function emitCallExpression(node) { + const indirectCall = getInternalEmitFlags(node) & 16 /* IndirectCall */; + if (indirectCall) { + writePunctuation("("); + writeLiteral("0"); + writePunctuation(","); + writeSpace(); + } + emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); + if (indirectCall) { + writePunctuation(")"); + } + emit(node.questionDotToken); + emitTypeArguments(node, node.typeArguments); + emitExpressionList(node, node.arguments, 2576 /* CallExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitNewExpression(node) { + emitTokenWithComment(105 /* NewKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfNew); + emitTypeArguments(node, node.typeArguments); + emitExpressionList(node, node.arguments, 18960 /* NewExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitTaggedTemplateExpression(node) { + const indirectCall = getInternalEmitFlags(node) & 16 /* IndirectCall */; + if (indirectCall) { + writePunctuation("("); + writeLiteral("0"); + writePunctuation(","); + writeSpace(); + } + emitExpression(node.tag, parenthesizer.parenthesizeLeftSideOfAccess); + if (indirectCall) { + writePunctuation(")"); + } + emitTypeArguments(node, node.typeArguments); + writeSpace(); + emitExpression(node.template); + } + function emitTypeAssertionExpression(node) { + writePunctuation("<"); + emit(node.type); + writePunctuation(">"); + emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function emitParenthesizedExpression(node) { + const openParenPos = emitTokenWithComment(21 /* OpenParenToken */, node.pos, writePunctuation, node); + const indented = writeLineSeparatorsAndIndentBefore(node.expression, node); + emitExpression( + node.expression, + /*parenthesizerRule*/ + void 0 + ); + writeLineSeparatorsAfter(node.expression, node); + decreaseIndentIf(indented); + emitTokenWithComment(22 /* CloseParenToken */, node.expression ? node.expression.end : openParenPos, writePunctuation, node); + } + function emitFunctionExpression(node) { + generateNameIfNeeded(node.name); + emitFunctionDeclarationOrExpression(node); + } + function emitArrowFunction(node) { + emitModifierList(node, node.modifiers); + emitSignatureAndBody(node, emitArrowFunctionHead, emitArrowFunctionBody); + } + function emitArrowFunctionHead(node) { + emitTypeParameters(node, node.typeParameters); + emitParametersForArrow(node, node.parameters); + emitTypeAnnotation(node.type); + writeSpace(); + emit(node.equalsGreaterThanToken); + } + function emitArrowFunctionBody(node) { + if (isBlock(node.body)) { + emitBlockFunctionBody(node.body); + } else { + writeSpace(); + emitExpression(node.body, parenthesizer.parenthesizeConciseBodyOfArrowFunction); + } + } + function emitDeleteExpression(node) { + emitTokenWithComment(91 /* DeleteKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function emitTypeOfExpression(node) { + emitTokenWithComment(114 /* TypeOfKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function emitVoidExpression(node) { + emitTokenWithComment(116 /* VoidKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function emitAwaitExpression(node) { + emitTokenWithComment(135 /* AwaitKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function emitPrefixUnaryExpression(node) { + writeTokenText(node.operator, writeOperator); + if (shouldEmitWhitespaceBeforeOperand(node)) { + writeSpace(); + } + emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPrefixUnary); + } + function shouldEmitWhitespaceBeforeOperand(node) { + const operand = node.operand; + return operand.kind === 224 /* PrefixUnaryExpression */ && (node.operator === 40 /* PlusToken */ && (operand.operator === 40 /* PlusToken */ || operand.operator === 46 /* PlusPlusToken */) || node.operator === 41 /* MinusToken */ && (operand.operator === 41 /* MinusToken */ || operand.operator === 47 /* MinusMinusToken */)); + } + function emitPostfixUnaryExpression(node) { + emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary); + writeTokenText(node.operator, writeOperator); + } + function createEmitBinaryExpression() { + return createBinaryExpressionTrampoline( + onEnter, + onLeft, + onOperator, + onRight, + onExit, + /*foldState*/ + void 0 + ); + function onEnter(node, state) { + if (state) { + state.stackIndex++; + state.preserveSourceNewlinesStack[state.stackIndex] = preserveSourceNewlines; + state.containerPosStack[state.stackIndex] = containerPos; + state.containerEndStack[state.stackIndex] = containerEnd; + state.declarationListContainerEndStack[state.stackIndex] = declarationListContainerEnd; + const emitComments2 = state.shouldEmitCommentsStack[state.stackIndex] = shouldEmitComments(node); + const emitSourceMaps = state.shouldEmitSourceMapsStack[state.stackIndex] = shouldEmitSourceMaps(node); + onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(node); + if (emitComments2) emitCommentsBeforeNode(node); + if (emitSourceMaps) emitSourceMapsBeforeNode(node); + beforeEmitNode(node); + } else { + state = { + stackIndex: 0, + preserveSourceNewlinesStack: [void 0], + containerPosStack: [-1], + containerEndStack: [-1], + declarationListContainerEndStack: [-1], + shouldEmitCommentsStack: [false], + shouldEmitSourceMapsStack: [false] + }; + } + return state; + } + function onLeft(next, _workArea, parent) { + return maybeEmitExpression(next, parent, "left"); + } + function onOperator(operatorToken, _state, node) { + const isCommaOperator = operatorToken.kind !== 28 /* CommaToken */; + const linesBeforeOperator = getLinesBetweenNodes(node, node.left, operatorToken); + const linesAfterOperator = getLinesBetweenNodes(node, operatorToken, node.right); + writeLinesAndIndent(linesBeforeOperator, isCommaOperator); + emitLeadingCommentsOfPosition(operatorToken.pos); + writeTokenNode(operatorToken, operatorToken.kind === 103 /* InKeyword */ ? writeKeyword : writeOperator); + emitTrailingCommentsOfPosition( + operatorToken.end, + /*prefixSpace*/ + true + ); + writeLinesAndIndent( + linesAfterOperator, + /*writeSpaceIfNotIndenting*/ + true + ); + } + function onRight(next, _workArea, parent) { + return maybeEmitExpression(next, parent, "right"); + } + function onExit(node, state) { + const linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken); + const linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right); + decreaseIndentIf(linesBeforeOperator, linesAfterOperator); + if (state.stackIndex > 0) { + const savedPreserveSourceNewlines = state.preserveSourceNewlinesStack[state.stackIndex]; + const savedContainerPos = state.containerPosStack[state.stackIndex]; + const savedContainerEnd = state.containerEndStack[state.stackIndex]; + const savedDeclarationListContainerEnd = state.declarationListContainerEndStack[state.stackIndex]; + const shouldEmitComments2 = state.shouldEmitCommentsStack[state.stackIndex]; + const shouldEmitSourceMaps2 = state.shouldEmitSourceMapsStack[state.stackIndex]; + afterEmitNode(savedPreserveSourceNewlines); + if (shouldEmitSourceMaps2) emitSourceMapsAfterNode(node); + if (shouldEmitComments2) emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); + onAfterEmitNode == null ? void 0 : onAfterEmitNode(node); + state.stackIndex--; + } + } + function maybeEmitExpression(next, parent, side) { + const parenthesizerRule = side === "left" ? parenthesizer.getParenthesizeLeftSideOfBinaryForOperator(parent.operatorToken.kind) : parenthesizer.getParenthesizeRightSideOfBinaryForOperator(parent.operatorToken.kind); + let pipelinePhase = getPipelinePhase(0 /* Notification */, 1 /* Expression */, next); + if (pipelinePhase === pipelineEmitWithSubstitution) { + Debug.assertIsDefined(lastSubstitution); + next = parenthesizerRule(cast(lastSubstitution, isExpression)); + pipelinePhase = getNextPipelinePhase(1 /* Substitution */, 1 /* Expression */, next); + lastSubstitution = void 0; + } + if (pipelinePhase === pipelineEmitWithComments || pipelinePhase === pipelineEmitWithSourceMaps || pipelinePhase === pipelineEmitWithHint) { + if (isBinaryExpression(next)) { + return next; + } + } + currentParenthesizerRule = parenthesizerRule; + pipelinePhase(1 /* Expression */, next); + } + } + function emitConditionalExpression(node) { + const linesBeforeQuestion = getLinesBetweenNodes(node, node.condition, node.questionToken); + const linesAfterQuestion = getLinesBetweenNodes(node, node.questionToken, node.whenTrue); + const linesBeforeColon = getLinesBetweenNodes(node, node.whenTrue, node.colonToken); + const linesAfterColon = getLinesBetweenNodes(node, node.colonToken, node.whenFalse); + emitExpression(node.condition, parenthesizer.parenthesizeConditionOfConditionalExpression); + writeLinesAndIndent( + linesBeforeQuestion, + /*writeSpaceIfNotIndenting*/ + true + ); + emit(node.questionToken); + writeLinesAndIndent( + linesAfterQuestion, + /*writeSpaceIfNotIndenting*/ + true + ); + emitExpression(node.whenTrue, parenthesizer.parenthesizeBranchOfConditionalExpression); + decreaseIndentIf(linesBeforeQuestion, linesAfterQuestion); + writeLinesAndIndent( + linesBeforeColon, + /*writeSpaceIfNotIndenting*/ + true + ); + emit(node.colonToken); + writeLinesAndIndent( + linesAfterColon, + /*writeSpaceIfNotIndenting*/ + true + ); + emitExpression(node.whenFalse, parenthesizer.parenthesizeBranchOfConditionalExpression); + decreaseIndentIf(linesBeforeColon, linesAfterColon); + } + function emitTemplateExpression(node) { + emit(node.head); + emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */); + } + function emitYieldExpression(node) { + emitTokenWithComment(127 /* YieldKeyword */, node.pos, writeKeyword, node); + emit(node.asteriskToken); + emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsiAndDisallowedComma); + } + function emitSpreadElement(node) { + emitTokenWithComment(26 /* DotDotDotToken */, node.pos, writePunctuation, node); + emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitClassExpression(node) { + generateNameIfNeeded(node.name); + emitClassDeclarationOrExpression(node); + } + function emitExpressionWithTypeArguments(node) { + emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); + emitTypeArguments(node, node.typeArguments); + } + function emitAsExpression(node) { + emitExpression( + node.expression, + /*parenthesizerRule*/ + void 0 + ); + if (node.type) { + writeSpace(); + writeKeyword("as"); + writeSpace(); + emit(node.type); + } + } + function emitNonNullExpression(node) { + emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess); + writeOperator("!"); + } + function emitSatisfiesExpression(node) { + emitExpression( + node.expression, + /*parenthesizerRule*/ + void 0 + ); + if (node.type) { + writeSpace(); + writeKeyword("satisfies"); + writeSpace(); + emit(node.type); + } + } + function emitMetaProperty(node) { + writeToken(node.keywordToken, node.pos, writePunctuation); + writePunctuation("."); + emit(node.name); + } + function emitTemplateSpan(node) { + emitExpression(node.expression); + emit(node.literal); + } + function emitBlock(node) { + emitBlockStatements( + node, + /*forceSingleLine*/ + !node.multiLine && isEmptyBlock(node) + ); + } + function emitBlockStatements(node, forceSingleLine) { + emitTokenWithComment( + 19 /* OpenBraceToken */, + node.pos, + writePunctuation, + /*contextNode*/ + node + ); + const format = forceSingleLine || getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineBlockStatements */ : 129 /* MultiLineBlockStatements */; + emitList(node, node.statements, format); + emitTokenWithComment( + 20 /* CloseBraceToken */, + node.statements.end, + writePunctuation, + /*contextNode*/ + node, + /*indentLeading*/ + !!(format & 1 /* MultiLine */) + ); + } + function emitVariableStatement(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + emit(node.declarationList); + writeTrailingSemicolon(); + } + function emitEmptyStatement(isEmbeddedStatement) { + if (isEmbeddedStatement) { + writePunctuation(";"); + } else { + writeTrailingSemicolon(); + } + } + function emitExpressionStatement(node) { + emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfExpressionStatement); + if (!currentSourceFile || !isJsonSourceFile(currentSourceFile) || nodeIsSynthesized(node.expression)) { + writeTrailingSemicolon(); + } + } + function emitIfStatement(node) { + const openParenPos = emitTokenWithComment(101 /* IfKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + emitEmbeddedStatement(node, node.thenStatement); + if (node.elseStatement) { + writeLineOrSpace(node, node.thenStatement, node.elseStatement); + emitTokenWithComment(93 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node); + if (node.elseStatement.kind === 245 /* IfStatement */) { + writeSpace(); + emit(node.elseStatement); + } else { + emitEmbeddedStatement(node, node.elseStatement); + } + } + } + function emitWhileClause(node, startPos) { + const openParenPos = emitTokenWithComment(117 /* WhileKeyword */, startPos, writeKeyword, node); + writeSpace(); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + } + function emitDoStatement(node) { + emitTokenWithComment(92 /* DoKeyword */, node.pos, writeKeyword, node); + emitEmbeddedStatement(node, node.statement); + if (isBlock(node.statement) && !preserveSourceNewlines) { + writeSpace(); + } else { + writeLineOrSpace(node, node.statement, node.expression); + } + emitWhileClause(node, node.statement.end); + writeTrailingSemicolon(); + } + function emitWhileStatement(node) { + emitWhileClause(node, node.pos); + emitEmbeddedStatement(node, node.statement); + } + function emitForStatement(node) { + const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); + writeSpace(); + let pos = emitTokenWithComment( + 21 /* OpenParenToken */, + openParenPos, + writePunctuation, + /*contextNode*/ + node + ); + emitForBinding(node.initializer); + pos = emitTokenWithComment(27 /* SemicolonToken */, node.initializer ? node.initializer.end : pos, writePunctuation, node); + emitExpressionWithLeadingSpace(node.condition); + pos = emitTokenWithComment(27 /* SemicolonToken */, node.condition ? node.condition.end : pos, writePunctuation, node); + emitExpressionWithLeadingSpace(node.incrementor); + emitTokenWithComment(22 /* CloseParenToken */, node.incrementor ? node.incrementor.end : pos, writePunctuation, node); + emitEmbeddedStatement(node, node.statement); + } + function emitForInStatement(node) { + const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitForBinding(node.initializer); + writeSpace(); + emitTokenWithComment(103 /* InKeyword */, node.initializer.end, writeKeyword, node); + writeSpace(); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + emitEmbeddedStatement(node, node.statement); + } + function emitForOfStatement(node) { + const openParenPos = emitTokenWithComment(99 /* ForKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitWithTrailingSpace(node.awaitModifier); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitForBinding(node.initializer); + writeSpace(); + emitTokenWithComment(165 /* OfKeyword */, node.initializer.end, writeKeyword, node); + writeSpace(); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + emitEmbeddedStatement(node, node.statement); + } + function emitForBinding(node) { + if (node !== void 0) { + if (node.kind === 261 /* VariableDeclarationList */) { + emit(node); + } else { + emitExpression(node); + } + } + } + function emitContinueStatement(node) { + emitTokenWithComment(88 /* ContinueKeyword */, node.pos, writeKeyword, node); + emitWithLeadingSpace(node.label); + writeTrailingSemicolon(); + } + function emitBreakStatement(node) { + emitTokenWithComment(83 /* BreakKeyword */, node.pos, writeKeyword, node); + emitWithLeadingSpace(node.label); + writeTrailingSemicolon(); + } + function emitTokenWithComment(token, pos, writer2, contextNode, indentLeading) { + const node = getParseTreeNode(contextNode); + const isSimilarNode = node && node.kind === contextNode.kind; + const startPos = pos; + if (isSimilarNode && currentSourceFile) { + pos = skipTrivia(currentSourceFile.text, pos); + } + if (isSimilarNode && contextNode.pos !== startPos) { + const needsIndent = indentLeading && currentSourceFile && !positionsAreOnSameLine(startPos, pos, currentSourceFile); + if (needsIndent) { + increaseIndent(); + } + emitLeadingCommentsOfPosition(startPos); + if (needsIndent) { + decreaseIndent(); + } + } + if (!omitBraceSourcePositions && (token === 19 /* OpenBraceToken */ || token === 20 /* CloseBraceToken */)) { + pos = writeToken(token, pos, writer2, contextNode); + } else { + pos = writeTokenText(token, writer2, pos); + } + if (isSimilarNode && contextNode.end !== pos) { + const isJsxExprContext = contextNode.kind === 294 /* JsxExpression */; + emitTrailingCommentsOfPosition( + pos, + /*prefixSpace*/ + !isJsxExprContext, + /*forceNoNewline*/ + isJsxExprContext + ); + } + return pos; + } + function commentWillEmitNewLine(node) { + return node.kind === 2 /* SingleLineCommentTrivia */ || !!node.hasTrailingNewLine; + } + function willEmitLeadingNewLine(node) { + if (!currentSourceFile) return false; + const leadingCommentRanges = getLeadingCommentRanges(currentSourceFile.text, node.pos); + if (leadingCommentRanges) { + const parseNode = getParseTreeNode(node); + if (parseNode && isParenthesizedExpression(parseNode.parent)) { + return true; + } + } + if (some(leadingCommentRanges, commentWillEmitNewLine)) return true; + if (some(getSyntheticLeadingComments(node), commentWillEmitNewLine)) return true; + if (isPartiallyEmittedExpression(node)) { + if (node.pos !== node.expression.pos) { + if (some(getTrailingCommentRanges(currentSourceFile.text, node.expression.pos), commentWillEmitNewLine)) return true; + } + return willEmitLeadingNewLine(node.expression); + } + return false; + } + function parenthesizeExpressionForNoAsi(node) { + if (!commentsDisabled && isPartiallyEmittedExpression(node) && willEmitLeadingNewLine(node)) { + const parseNode = getParseTreeNode(node); + if (parseNode && isParenthesizedExpression(parseNode)) { + const parens = factory.createParenthesizedExpression(node.expression); + setOriginalNode(parens, node); + setTextRange(parens, parseNode); + return parens; + } + return factory.createParenthesizedExpression(node); + } + return node; + } + function parenthesizeExpressionForNoAsiAndDisallowedComma(node) { + return parenthesizeExpressionForNoAsi(parenthesizer.parenthesizeExpressionForDisallowedComma(node)); + } + function emitReturnStatement(node) { + emitTokenWithComment( + 107 /* ReturnKeyword */, + node.pos, + writeKeyword, + /*contextNode*/ + node + ); + emitExpressionWithLeadingSpace(node.expression && parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi); + writeTrailingSemicolon(); + } + function emitWithStatement(node) { + const openParenPos = emitTokenWithComment(118 /* WithKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + emitEmbeddedStatement(node, node.statement); + } + function emitSwitchStatement(node) { + const openParenPos = emitTokenWithComment(109 /* SwitchKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emitExpression(node.expression); + emitTokenWithComment(22 /* CloseParenToken */, node.expression.end, writePunctuation, node); + writeSpace(); + emit(node.caseBlock); + } + function emitLabeledStatement(node) { + emit(node.label); + emitTokenWithComment(59 /* ColonToken */, node.label.end, writePunctuation, node); + writeSpace(); + emit(node.statement); + } + function emitThrowStatement(node) { + emitTokenWithComment(111 /* ThrowKeyword */, node.pos, writeKeyword, node); + emitExpressionWithLeadingSpace(parenthesizeExpressionForNoAsi(node.expression), parenthesizeExpressionForNoAsi); + writeTrailingSemicolon(); + } + function emitTryStatement(node) { + emitTokenWithComment(113 /* TryKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emit(node.tryBlock); + if (node.catchClause) { + writeLineOrSpace(node, node.tryBlock, node.catchClause); + emit(node.catchClause); + } + if (node.finallyBlock) { + writeLineOrSpace(node, node.catchClause || node.tryBlock, node.finallyBlock); + emitTokenWithComment(98 /* FinallyKeyword */, (node.catchClause || node.tryBlock).end, writeKeyword, node); + writeSpace(); + emit(node.finallyBlock); + } + } + function emitDebuggerStatement(node) { + writeToken(89 /* DebuggerKeyword */, node.pos, writeKeyword); + writeTrailingSemicolon(); + } + function emitVariableDeclaration(node) { + var _a, _b, _c; + emit(node.name); + emit(node.exclamationToken); + emitTypeAnnotation(node.type); + emitInitializer(node.initializer, ((_a = node.type) == null ? void 0 : _a.end) ?? ((_c = (_b = node.name.emitNode) == null ? void 0 : _b.typeNode) == null ? void 0 : _c.end) ?? node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitVariableDeclarationList(node) { + if (isVarAwaitUsing(node)) { + writeKeyword("await"); + writeSpace(); + writeKeyword("using"); + } else { + const head = isLet(node) ? "let" : isVarConst(node) ? "const" : isVarUsing(node) ? "using" : "var"; + writeKeyword(head); + } + writeSpace(); + emitList(node, node.declarations, 528 /* VariableDeclarationList */); + } + function emitFunctionDeclaration(node) { + emitFunctionDeclarationOrExpression(node); + } + function emitFunctionDeclarationOrExpression(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + writeKeyword("function"); + emit(node.asteriskToken); + writeSpace(); + emitIdentifierName(node.name); + emitSignatureAndBody(node, emitSignatureHead, emitFunctionBody); + } + function emitSignatureAndBody(node, emitSignatureHead2, emitBody) { + const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; + if (indentedFlag) { + increaseIndent(); + } + pushNameGenerationScope(node); + forEach(node.parameters, generateNames); + emitSignatureHead2(node); + emitBody(node); + popNameGenerationScope(node); + if (indentedFlag) { + decreaseIndent(); + } + } + function emitFunctionBody(node) { + const body = node.body; + if (body) { + emitBlockFunctionBody(body); + } else { + writeTrailingSemicolon(); + } + } + function emitEmptyFunctionBody(_node) { + writeTrailingSemicolon(); + } + function emitSignatureHead(node) { + emitTypeParameters(node, node.typeParameters); + emitParameters(node, node.parameters); + emitTypeAnnotation(node.type); + } + function shouldEmitBlockFunctionBodyOnSingleLine(body) { + if (getEmitFlags(body) & 1 /* SingleLine */) { + return true; + } + if (body.multiLine) { + return false; + } + if (!nodeIsSynthesized(body) && currentSourceFile && !rangeIsOnSingleLine(body, currentSourceFile)) { + return false; + } + if (getLeadingLineTerminatorCount(body, firstOrUndefined(body.statements), 2 /* PreserveLines */) || getClosingLineTerminatorCount(body, lastOrUndefined(body.statements), 2 /* PreserveLines */, body.statements)) { + return false; + } + let previousStatement; + for (const statement of body.statements) { + if (getSeparatingLineTerminatorCount(previousStatement, statement, 2 /* PreserveLines */) > 0) { + return false; + } + previousStatement = statement; + } + return true; + } + function emitBlockFunctionBody(body) { + generateNames(body); + onBeforeEmitNode == null ? void 0 : onBeforeEmitNode(body); + writeSpace(); + writePunctuation("{"); + increaseIndent(); + const emitBlockFunctionBody2 = shouldEmitBlockFunctionBodyOnSingleLine(body) ? emitBlockFunctionBodyOnSingleLine : emitBlockFunctionBodyWorker; + emitBodyWithDetachedComments(body, body.statements, emitBlockFunctionBody2); + decreaseIndent(); + writeToken(20 /* CloseBraceToken */, body.statements.end, writePunctuation, body); + onAfterEmitNode == null ? void 0 : onAfterEmitNode(body); + } + function emitBlockFunctionBodyOnSingleLine(body) { + emitBlockFunctionBodyWorker( + body, + /*emitBlockFunctionBodyOnSingleLine*/ + true + ); + } + function emitBlockFunctionBodyWorker(body, emitBlockFunctionBodyOnSingleLine2) { + const statementOffset = emitPrologueDirectives(body.statements); + const pos = writer.getTextPos(); + emitHelpers(body); + if (statementOffset === 0 && pos === writer.getTextPos() && emitBlockFunctionBodyOnSingleLine2) { + decreaseIndent(); + emitList(body, body.statements, 768 /* SingleLineFunctionBodyStatements */); + increaseIndent(); + } else { + emitList( + body, + body.statements, + 1 /* MultiLineFunctionBodyStatements */, + /*parenthesizerRule*/ + void 0, + statementOffset + ); + } + } + function emitClassDeclaration(node) { + emitClassDeclarationOrExpression(node); + } + function emitClassDeclarationOrExpression(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + true + ); + emitTokenWithComment(86 /* ClassKeyword */, moveRangePastModifiers(node).pos, writeKeyword, node); + if (node.name) { + writeSpace(); + emitIdentifierName(node.name); + } + const indentedFlag = getEmitFlags(node) & 131072 /* Indented */; + if (indentedFlag) { + increaseIndent(); + } + emitTypeParameters(node, node.typeParameters); + emitList(node, node.heritageClauses, 0 /* ClassHeritageClauses */); + writeSpace(); + writePunctuation("{"); + pushNameGenerationScope(node); + forEach(node.members, generateMemberNames); + emitList(node, node.members, 129 /* ClassMembers */); + popNameGenerationScope(node); + writePunctuation("}"); + if (indentedFlag) { + decreaseIndent(); + } + } + function emitInterfaceDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + writeKeyword("interface"); + writeSpace(); + emit(node.name); + emitTypeParameters(node, node.typeParameters); + emitList(node, node.heritageClauses, 512 /* HeritageClauses */); + writeSpace(); + writePunctuation("{"); + pushNameGenerationScope(node); + forEach(node.members, generateMemberNames); + emitList(node, node.members, 129 /* InterfaceMembers */); + popNameGenerationScope(node); + writePunctuation("}"); + } + function emitTypeAliasDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + writeKeyword("type"); + writeSpace(); + emit(node.name); + emitTypeParameters(node, node.typeParameters); + writeSpace(); + writePunctuation("="); + writeSpace(); + emit(node.type); + writeTrailingSemicolon(); + } + function emitEnumDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + writeKeyword("enum"); + writeSpace(); + emit(node.name); + writeSpace(); + writePunctuation("{"); + emitList(node, node.members, 145 /* EnumMembers */); + writePunctuation("}"); + } + function emitModuleDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + if (~node.flags & 2048 /* GlobalAugmentation */) { + writeKeyword(node.flags & 32 /* Namespace */ ? "namespace" : "module"); + writeSpace(); + } + emit(node.name); + let body = node.body; + if (!body) return writeTrailingSemicolon(); + while (body && isModuleDeclaration(body)) { + writePunctuation("."); + emit(body.name); + body = body.body; + } + writeSpace(); + emit(body); + } + function emitModuleBlock(node) { + pushNameGenerationScope(node); + forEach(node.statements, generateNames); + emitBlockStatements( + node, + /*forceSingleLine*/ + isEmptyBlock(node) + ); + popNameGenerationScope(node); + } + function emitCaseBlock(node) { + emitTokenWithComment(19 /* OpenBraceToken */, node.pos, writePunctuation, node); + emitList(node, node.clauses, 129 /* CaseBlockClauses */); + emitTokenWithComment( + 20 /* CloseBraceToken */, + node.clauses.end, + writePunctuation, + node, + /*indentLeading*/ + true + ); + } + function emitImportEqualsDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + emitTokenWithComment(102 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node); + writeSpace(); + if (node.isTypeOnly) { + emitTokenWithComment(156 /* TypeKeyword */, node.pos, writeKeyword, node); + writeSpace(); + } + emit(node.name); + writeSpace(); + emitTokenWithComment(64 /* EqualsToken */, node.name.end, writePunctuation, node); + writeSpace(); + emitModuleReference(node.moduleReference); + writeTrailingSemicolon(); + } + function emitModuleReference(node) { + if (node.kind === 80 /* Identifier */) { + emitExpression(node); + } else { + emit(node); + } + } + function emitImportDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + emitTokenWithComment(102 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node); + writeSpace(); + if (node.importClause) { + emit(node.importClause); + writeSpace(); + emitTokenWithComment(161 /* FromKeyword */, node.importClause.end, writeKeyword, node); + writeSpace(); + } + emitExpression(node.moduleSpecifier); + if (node.attributes) { + emitWithLeadingSpace(node.attributes); + } + writeTrailingSemicolon(); + } + function emitImportClause(node) { + if (node.isTypeOnly) { + emitTokenWithComment(156 /* TypeKeyword */, node.pos, writeKeyword, node); + writeSpace(); + } + emit(node.name); + if (node.name && node.namedBindings) { + emitTokenWithComment(28 /* CommaToken */, node.name.end, writePunctuation, node); + writeSpace(); + } + emit(node.namedBindings); + } + function emitNamespaceImport(node) { + const asPos = emitTokenWithComment(42 /* AsteriskToken */, node.pos, writePunctuation, node); + writeSpace(); + emitTokenWithComment(130 /* AsKeyword */, asPos, writeKeyword, node); + writeSpace(); + emit(node.name); + } + function emitNamedImports(node) { + emitNamedImportsOrExports(node); + } + function emitImportSpecifier(node) { + emitImportOrExportSpecifier(node); + } + function emitExportAssignment(node) { + const nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); + writeSpace(); + if (node.isExportEquals) { + emitTokenWithComment(64 /* EqualsToken */, nextPos, writeOperator, node); + } else { + emitTokenWithComment(90 /* DefaultKeyword */, nextPos, writeKeyword, node); + } + writeSpace(); + emitExpression( + node.expression, + node.isExportEquals ? parenthesizer.getParenthesizeRightSideOfBinaryForOperator(64 /* EqualsToken */) : parenthesizer.parenthesizeExpressionOfExportDefault + ); + writeTrailingSemicolon(); + } + function emitExportDeclaration(node) { + emitDecoratorsAndModifiers( + node, + node.modifiers, + /*allowDecorators*/ + false + ); + let nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); + writeSpace(); + if (node.isTypeOnly) { + nextPos = emitTokenWithComment(156 /* TypeKeyword */, nextPos, writeKeyword, node); + writeSpace(); + } + if (node.exportClause) { + emit(node.exportClause); + } else { + nextPos = emitTokenWithComment(42 /* AsteriskToken */, nextPos, writePunctuation, node); + } + if (node.moduleSpecifier) { + writeSpace(); + const fromPos = node.exportClause ? node.exportClause.end : nextPos; + emitTokenWithComment(161 /* FromKeyword */, fromPos, writeKeyword, node); + writeSpace(); + emitExpression(node.moduleSpecifier); + } + if (node.attributes) { + emitWithLeadingSpace(node.attributes); + } + writeTrailingSemicolon(); + } + function emitImportTypeNodeAttributes(node) { + writePunctuation("{"); + writeSpace(); + writeKeyword(node.token === 132 /* AssertKeyword */ ? "assert" : "with"); + writePunctuation(":"); + writeSpace(); + const elements = node.elements; + emitList(node, elements, 526226 /* ImportAttributes */); + writeSpace(); + writePunctuation("}"); + } + function emitImportAttributes(node) { + emitTokenWithComment(node.token, node.pos, writeKeyword, node); + writeSpace(); + const elements = node.elements; + emitList(node, elements, 526226 /* ImportAttributes */); + } + function emitImportAttribute(node) { + emit(node.name); + writePunctuation(":"); + writeSpace(); + const value = node.value; + if ((getEmitFlags(value) & 1024 /* NoLeadingComments */) === 0) { + const commentRange = getCommentRange(value); + emitTrailingCommentsOfPosition(commentRange.pos); + } + emit(value); + } + function emitNamespaceExportDeclaration(node) { + let nextPos = emitTokenWithComment(95 /* ExportKeyword */, node.pos, writeKeyword, node); + writeSpace(); + nextPos = emitTokenWithComment(130 /* AsKeyword */, nextPos, writeKeyword, node); + writeSpace(); + nextPos = emitTokenWithComment(145 /* NamespaceKeyword */, nextPos, writeKeyword, node); + writeSpace(); + emit(node.name); + writeTrailingSemicolon(); + } + function emitNamespaceExport(node) { + const asPos = emitTokenWithComment(42 /* AsteriskToken */, node.pos, writePunctuation, node); + writeSpace(); + emitTokenWithComment(130 /* AsKeyword */, asPos, writeKeyword, node); + writeSpace(); + emit(node.name); + } + function emitNamedExports(node) { + emitNamedImportsOrExports(node); + } + function emitExportSpecifier(node) { + emitImportOrExportSpecifier(node); + } + function emitNamedImportsOrExports(node) { + writePunctuation("{"); + emitList(node, node.elements, 525136 /* NamedImportsOrExportsElements */); + writePunctuation("}"); + } + function emitImportOrExportSpecifier(node) { + if (node.isTypeOnly) { + writeKeyword("type"); + writeSpace(); + } + if (node.propertyName) { + emit(node.propertyName); + writeSpace(); + emitTokenWithComment(130 /* AsKeyword */, node.propertyName.end, writeKeyword, node); + writeSpace(); + } + emit(node.name); + } + function emitExternalModuleReference(node) { + writeKeyword("require"); + writePunctuation("("); + emitExpression(node.expression); + writePunctuation(")"); + } + function emitJsxElement(node) { + emit(node.openingElement); + emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */); + emit(node.closingElement); + } + function emitJsxSelfClosingElement(node) { + writePunctuation("<"); + emitJsxTagName(node.tagName); + emitTypeArguments(node, node.typeArguments); + writeSpace(); + emit(node.attributes); + writePunctuation("/>"); + } + function emitJsxFragment(node) { + emit(node.openingFragment); + emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */); + emit(node.closingFragment); + } + function emitJsxOpeningElementOrFragment(node) { + writePunctuation("<"); + if (isJsxOpeningElement(node)) { + const indented = writeLineSeparatorsAndIndentBefore(node.tagName, node); + emitJsxTagName(node.tagName); + emitTypeArguments(node, node.typeArguments); + if (node.attributes.properties && node.attributes.properties.length > 0) { + writeSpace(); + } + emit(node.attributes); + writeLineSeparatorsAfter(node.attributes, node); + decreaseIndentIf(indented); + } + writePunctuation(">"); + } + function emitJsxText(node) { + writer.writeLiteral(node.text); + } + function emitJsxClosingElementOrFragment(node) { + writePunctuation(""); + } + function emitJsxAttributes(node) { + emitList(node, node.properties, 262656 /* JsxElementAttributes */); + } + function emitJsxAttribute(node) { + emit(node.name); + emitNodeWithPrefix("=", writePunctuation, node.initializer, emitJsxAttributeValue); + } + function emitJsxSpreadAttribute(node) { + writePunctuation("{..."); + emitExpression(node.expression); + writePunctuation("}"); + } + function hasTrailingCommentsAtPosition(pos) { + let result = false; + forEachTrailingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || "", pos + 1, () => result = true); + return result; + } + function hasLeadingCommentsAtPosition(pos) { + let result = false; + forEachLeadingCommentRange((currentSourceFile == null ? void 0 : currentSourceFile.text) || "", pos + 1, () => result = true); + return result; + } + function hasCommentsAtPosition(pos) { + return hasTrailingCommentsAtPosition(pos) || hasLeadingCommentsAtPosition(pos); + } + function emitJsxExpression(node) { + var _a; + if (node.expression || !commentsDisabled && !nodeIsSynthesized(node) && hasCommentsAtPosition(node.pos)) { + const isMultiline = currentSourceFile && !nodeIsSynthesized(node) && getLineAndCharacterOfPosition(currentSourceFile, node.pos).line !== getLineAndCharacterOfPosition(currentSourceFile, node.end).line; + if (isMultiline) { + writer.increaseIndent(); + } + const end = emitTokenWithComment(19 /* OpenBraceToken */, node.pos, writePunctuation, node); + emit(node.dotDotDotToken); + emitExpression(node.expression); + emitTokenWithComment(20 /* CloseBraceToken */, ((_a = node.expression) == null ? void 0 : _a.end) || end, writePunctuation, node); + if (isMultiline) { + writer.decreaseIndent(); + } + } + } + function emitJsxNamespacedName(node) { + emitIdentifierName(node.namespace); + writePunctuation(":"); + emitIdentifierName(node.name); + } + function emitJsxTagName(node) { + if (node.kind === 80 /* Identifier */) { + emitExpression(node); + } else { + emit(node); + } + } + function emitCaseClause(node) { + emitTokenWithComment(84 /* CaseKeyword */, node.pos, writeKeyword, node); + writeSpace(); + emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); + emitCaseOrDefaultClauseRest(node, node.statements, node.expression.end); + } + function emitDefaultClause(node) { + const pos = emitTokenWithComment(90 /* DefaultKeyword */, node.pos, writeKeyword, node); + emitCaseOrDefaultClauseRest(node, node.statements, pos); + } + function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) { + const emitAsSingleStatement = statements.length === 1 && // treat synthesized nodes as located on the same line for emit purposes + (!currentSourceFile || nodeIsSynthesized(parentNode) || nodeIsSynthesized(statements[0]) || rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile)); + let format = 163969 /* CaseOrDefaultClauseStatements */; + if (emitAsSingleStatement) { + writeToken(59 /* ColonToken */, colonPos, writePunctuation, parentNode); + writeSpace(); + format &= ~(1 /* MultiLine */ | 128 /* Indented */); + } else { + emitTokenWithComment(59 /* ColonToken */, colonPos, writePunctuation, parentNode); + } + emitList(parentNode, statements, format); + } + function emitHeritageClause(node) { + writeSpace(); + writeTokenText(node.token, writeKeyword); + writeSpace(); + emitList(node, node.types, 528 /* HeritageClauseTypes */); + } + function emitCatchClause(node) { + const openParenPos = emitTokenWithComment(85 /* CatchKeyword */, node.pos, writeKeyword, node); + writeSpace(); + if (node.variableDeclaration) { + emitTokenWithComment(21 /* OpenParenToken */, openParenPos, writePunctuation, node); + emit(node.variableDeclaration); + emitTokenWithComment(22 /* CloseParenToken */, node.variableDeclaration.end, writePunctuation, node); + writeSpace(); + } + emit(node.block); + } + function emitPropertyAssignment(node) { + emit(node.name); + writePunctuation(":"); + writeSpace(); + const initializer = node.initializer; + if ((getEmitFlags(initializer) & 1024 /* NoLeadingComments */) === 0) { + const commentRange = getCommentRange(initializer); + emitTrailingCommentsOfPosition(commentRange.pos); + } + emitExpression(initializer, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitShorthandPropertyAssignment(node) { + emit(node.name); + if (node.objectAssignmentInitializer) { + writeSpace(); + writePunctuation("="); + writeSpace(); + emitExpression(node.objectAssignmentInitializer, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + } + function emitSpreadAssignment(node) { + if (node.expression) { + emitTokenWithComment(26 /* DotDotDotToken */, node.pos, writePunctuation, node); + emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + } + function emitEnumMember(node) { + emit(node.name); + emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma); + } + function emitJSDoc(node) { + write("/**"); + if (node.comment) { + const text = getTextOfJSDocComment(node.comment); + if (text) { + const lines = text.split(/\r\n?|\n/g); + for (const line of lines) { + writeLine(); + writeSpace(); + writePunctuation("*"); + writeSpace(); + write(line); + } + } + } + if (node.tags) { + if (node.tags.length === 1 && node.tags[0].kind === 344 /* JSDocTypeTag */ && !node.comment) { + writeSpace(); + emit(node.tags[0]); + } else { + emitList(node, node.tags, 33 /* JSDocComment */); + } + } + writeSpace(); + write("*/"); + } + function emitJSDocSimpleTypedTag(tag) { + emitJSDocTagName(tag.tagName); + emitJSDocTypeExpression(tag.typeExpression); + emitJSDocComment(tag.comment); + } + function emitJSDocSeeTag(tag) { + emitJSDocTagName(tag.tagName); + emit(tag.name); + emitJSDocComment(tag.comment); + } + function emitJSDocImportTag(tag) { + emitJSDocTagName(tag.tagName); + writeSpace(); + if (tag.importClause) { + emit(tag.importClause); + writeSpace(); + emitTokenWithComment(161 /* FromKeyword */, tag.importClause.end, writeKeyword, tag); + writeSpace(); + } + emitExpression(tag.moduleSpecifier); + if (tag.attributes) { + emitWithLeadingSpace(tag.attributes); + } + emitJSDocComment(tag.comment); + } + function emitJSDocNameReference(node) { + writeSpace(); + writePunctuation("{"); + emit(node.name); + writePunctuation("}"); + } + function emitJSDocHeritageTag(tag) { + emitJSDocTagName(tag.tagName); + writeSpace(); + writePunctuation("{"); + emit(tag.class); + writePunctuation("}"); + emitJSDocComment(tag.comment); + } + function emitJSDocTemplateTag(tag) { + emitJSDocTagName(tag.tagName); + emitJSDocTypeExpression(tag.constraint); + writeSpace(); + emitList(tag, tag.typeParameters, 528 /* CommaListElements */); + emitJSDocComment(tag.comment); + } + function emitJSDocTypedefTag(tag) { + emitJSDocTagName(tag.tagName); + if (tag.typeExpression) { + if (tag.typeExpression.kind === 309 /* JSDocTypeExpression */) { + emitJSDocTypeExpression(tag.typeExpression); + } else { + writeSpace(); + writePunctuation("{"); + write("Object"); + if (tag.typeExpression.isArrayType) { + writePunctuation("["); + writePunctuation("]"); + } + writePunctuation("}"); + } + } + if (tag.fullName) { + writeSpace(); + emit(tag.fullName); + } + emitJSDocComment(tag.comment); + if (tag.typeExpression && tag.typeExpression.kind === 322 /* JSDocTypeLiteral */) { + emitJSDocTypeLiteral(tag.typeExpression); + } + } + function emitJSDocCallbackTag(tag) { + emitJSDocTagName(tag.tagName); + if (tag.name) { + writeSpace(); + emit(tag.name); + } + emitJSDocComment(tag.comment); + emitJSDocSignature(tag.typeExpression); + } + function emitJSDocOverloadTag(tag) { + emitJSDocComment(tag.comment); + emitJSDocSignature(tag.typeExpression); + } + function emitJSDocSimpleTag(tag) { + emitJSDocTagName(tag.tagName); + emitJSDocComment(tag.comment); + } + function emitJSDocTypeLiteral(lit) { + emitList(lit, factory.createNodeArray(lit.jsDocPropertyTags), 33 /* JSDocComment */); + } + function emitJSDocSignature(sig) { + if (sig.typeParameters) { + emitList(sig, factory.createNodeArray(sig.typeParameters), 33 /* JSDocComment */); + } + if (sig.parameters) { + emitList(sig, factory.createNodeArray(sig.parameters), 33 /* JSDocComment */); + } + if (sig.type) { + writeLine(); + writeSpace(); + writePunctuation("*"); + writeSpace(); + emit(sig.type); + } + } + function emitJSDocPropertyLikeTag(param) { + emitJSDocTagName(param.tagName); + emitJSDocTypeExpression(param.typeExpression); + writeSpace(); + if (param.isBracketed) { + writePunctuation("["); + } + emit(param.name); + if (param.isBracketed) { + writePunctuation("]"); + } + emitJSDocComment(param.comment); + } + function emitJSDocTagName(tagName) { + writePunctuation("@"); + emit(tagName); + } + function emitJSDocComment(comment) { + const text = getTextOfJSDocComment(comment); + if (text) { + writeSpace(); + write(text); + } + } + function emitJSDocTypeExpression(typeExpression) { + if (typeExpression) { + writeSpace(); + writePunctuation("{"); + emit(typeExpression.type); + writePunctuation("}"); + } + } + function emitSourceFile(node) { + writeLine(); + const statements = node.statements; + const shouldEmitDetachedComment = statements.length === 0 || !isPrologueDirective(statements[0]) || nodeIsSynthesized(statements[0]); + if (shouldEmitDetachedComment) { + emitBodyWithDetachedComments(node, statements, emitSourceFileWorker); + return; + } + emitSourceFileWorker(node); + } + function emitSyntheticTripleSlashReferencesIfNeeded(node) { + emitTripleSlashDirectives(!!node.hasNoDefaultLib, node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []); + } + function emitTripleSlashDirectivesIfNeeded(node) { + if (node.isDeclarationFile) emitTripleSlashDirectives(node.hasNoDefaultLib, node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives); + } + function emitTripleSlashDirectives(hasNoDefaultLib, files, types, libs2) { + if (hasNoDefaultLib) { + writeComment(`/// `); + writeLine(); + } + if (currentSourceFile && currentSourceFile.moduleName) { + writeComment(`/// `); + writeLine(); + } + if (currentSourceFile && currentSourceFile.amdDependencies) { + for (const dep of currentSourceFile.amdDependencies) { + if (dep.name) { + writeComment(`/// `); + } else { + writeComment(`/// `); + } + writeLine(); + } + } + function writeDirectives(kind, directives) { + for (const directive of directives) { + const resolutionMode = directive.resolutionMode ? `resolution-mode="${directive.resolutionMode === 99 /* ESNext */ ? "import" : "require"}" ` : ""; + const preserve = directive.preserve ? `preserve="true" ` : ""; + writeComment(`/// `); + writeLine(); + } + } + writeDirectives("path", files); + writeDirectives("types", types); + writeDirectives("lib", libs2); + } + function emitSourceFileWorker(node) { + const statements = node.statements; + pushNameGenerationScope(node); + forEach(node.statements, generateNames); + emitHelpers(node); + const index = findIndex(statements, (statement) => !isPrologueDirective(statement)); + emitTripleSlashDirectivesIfNeeded(node); + emitList( + node, + statements, + 1 /* MultiLine */, + /*parenthesizerRule*/ + void 0, + index === -1 ? statements.length : index + ); + popNameGenerationScope(node); + } + function emitPartiallyEmittedExpression(node) { + const emitFlags = getEmitFlags(node); + if (!(emitFlags & 1024 /* NoLeadingComments */) && node.pos !== node.expression.pos) { + emitTrailingCommentsOfPosition(node.expression.pos); + } + emitExpression(node.expression); + if (!(emitFlags & 2048 /* NoTrailingComments */) && node.end !== node.expression.end) { + emitLeadingCommentsOfPosition(node.expression.end); + } + } + function emitCommaList(node) { + emitExpressionList( + node, + node.elements, + 528 /* CommaListElements */, + /*parenthesizerRule*/ + void 0 + ); + } + function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives) { + let needsToSetSourceFile = !!sourceFile; + for (let i = 0; i < statements.length; i++) { + const statement = statements[i]; + if (isPrologueDirective(statement)) { + const shouldEmitPrologueDirective = seenPrologueDirectives ? !seenPrologueDirectives.has(statement.expression.text) : true; + if (shouldEmitPrologueDirective) { + if (needsToSetSourceFile) { + needsToSetSourceFile = false; + setSourceFile(sourceFile); + } + writeLine(); + emit(statement); + if (seenPrologueDirectives) { + seenPrologueDirectives.add(statement.expression.text); + } + } + } else { + return i; + } + } + return statements.length; + } + function emitPrologueDirectivesIfNeeded(sourceFileOrBundle) { + if (isSourceFile(sourceFileOrBundle)) { + emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle); + } else { + const seenPrologueDirectives = /* @__PURE__ */ new Set(); + for (const sourceFile of sourceFileOrBundle.sourceFiles) { + emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives); + } + setSourceFile(void 0); + } + } + function emitShebangIfNeeded(sourceFileOrBundle) { + if (isSourceFile(sourceFileOrBundle)) { + const shebang = getShebang(sourceFileOrBundle.text); + if (shebang) { + writeComment(shebang); + writeLine(); + return true; + } + } else { + for (const sourceFile of sourceFileOrBundle.sourceFiles) { + if (emitShebangIfNeeded(sourceFile)) { + return true; + } + } + } + } + function emitNodeWithWriter(node, writer2) { + if (!node) return; + const savedWrite = write; + write = writer2; + emit(node); + write = savedWrite; + } + function emitDecoratorsAndModifiers(node, modifiers, allowDecorators) { + if (modifiers == null ? void 0 : modifiers.length) { + if (every(modifiers, isModifier)) { + return emitModifierList(node, modifiers); + } + if (every(modifiers, isDecorator)) { + if (allowDecorators) { + return emitDecoratorList(node, modifiers); + } + return node.pos; + } + onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(modifiers); + let lastMode; + let mode; + let start = 0; + let pos = 0; + let lastModifier; + while (start < modifiers.length) { + while (pos < modifiers.length) { + lastModifier = modifiers[pos]; + mode = isDecorator(lastModifier) ? "decorators" : "modifiers"; + if (lastMode === void 0) { + lastMode = mode; + } else if (mode !== lastMode) { + break; + } + pos++; + } + const textRange = { pos: -1, end: -1 }; + if (start === 0) textRange.pos = modifiers.pos; + if (pos === modifiers.length - 1) textRange.end = modifiers.end; + if (lastMode === "modifiers" || allowDecorators) { + emitNodeListItems( + emit, + node, + modifiers, + lastMode === "modifiers" ? 2359808 /* Modifiers */ : 2146305 /* Decorators */, + /*parenthesizerRule*/ + void 0, + start, + pos - start, + /*hasTrailingComma*/ + false, + textRange + ); + } + start = pos; + lastMode = mode; + pos++; + } + onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(modifiers); + if (lastModifier && !positionIsSynthesized(lastModifier.end)) { + return lastModifier.end; + } + } + return node.pos; + } + function emitModifierList(node, modifiers) { + emitList(node, modifiers, 2359808 /* Modifiers */); + const lastModifier = lastOrUndefined(modifiers); + return lastModifier && !positionIsSynthesized(lastModifier.end) ? lastModifier.end : node.pos; + } + function emitTypeAnnotation(node) { + if (node) { + writePunctuation(":"); + writeSpace(); + emit(node); + } + } + function emitInitializer(node, equalCommentStartPos, container, parenthesizerRule) { + if (node) { + writeSpace(); + emitTokenWithComment(64 /* EqualsToken */, equalCommentStartPos, writeOperator, container); + writeSpace(); + emitExpression(node, parenthesizerRule); + } + } + function emitNodeWithPrefix(prefix, prefixWriter, node, emit2) { + if (node) { + prefixWriter(prefix); + emit2(node); + } + } + function emitWithLeadingSpace(node) { + if (node) { + writeSpace(); + emit(node); + } + } + function emitExpressionWithLeadingSpace(node, parenthesizerRule) { + if (node) { + writeSpace(); + emitExpression(node, parenthesizerRule); + } + } + function emitWithTrailingSpace(node) { + if (node) { + emit(node); + writeSpace(); + } + } + function emitEmbeddedStatement(parent, node) { + if (isBlock(node) || getEmitFlags(parent) & 1 /* SingleLine */ || preserveSourceNewlines && !getLeadingLineTerminatorCount(parent, node, 0 /* None */)) { + writeSpace(); + emit(node); + } else { + writeLine(); + increaseIndent(); + if (isEmptyStatement(node)) { + pipelineEmit(5 /* EmbeddedStatement */, node); + } else { + emit(node); + } + decreaseIndent(); + } + } + function emitDecoratorList(parentNode, decorators) { + emitList(parentNode, decorators, 2146305 /* Decorators */); + const lastDecorator = lastOrUndefined(decorators); + return lastDecorator && !positionIsSynthesized(lastDecorator.end) ? lastDecorator.end : parentNode.pos; + } + function emitTypeArguments(parentNode, typeArguments) { + emitList(parentNode, typeArguments, 53776 /* TypeArguments */, typeArgumentParenthesizerRuleSelector); + } + function emitTypeParameters(parentNode, typeParameters) { + if (isFunctionLike(parentNode) && parentNode.typeArguments) { + return emitTypeArguments(parentNode, parentNode.typeArguments); + } + emitList(parentNode, typeParameters, 53776 /* TypeParameters */); + } + function emitParameters(parentNode, parameters) { + emitList(parentNode, parameters, 2576 /* Parameters */); + } + function canEmitSimpleArrowHead(parentNode, parameters) { + const parameter = singleOrUndefined(parameters); + return parameter && parameter.pos === parentNode.pos && isArrowFunction(parentNode) && !parentNode.type && !some(parentNode.modifiers) && !some(parentNode.typeParameters) && !some(parameter.modifiers) && !parameter.dotDotDotToken && !parameter.questionToken && !parameter.type && !parameter.initializer && isIdentifier(parameter.name); + } + function emitParametersForArrow(parentNode, parameters) { + if (canEmitSimpleArrowHead(parentNode, parameters)) { + emitList(parentNode, parameters, 2576 /* Parameters */ & ~2048 /* Parenthesis */); + } else { + emitParameters(parentNode, parameters); + } + } + function emitParametersForIndexSignature(parentNode, parameters) { + emitList(parentNode, parameters, 8848 /* IndexSignatureParameters */); + } + function writeDelimiter(format) { + switch (format & 60 /* DelimitersMask */) { + case 0 /* None */: + break; + case 16 /* CommaDelimited */: + writePunctuation(","); + break; + case 4 /* BarDelimited */: + writeSpace(); + writePunctuation("|"); + break; + case 32 /* AsteriskDelimited */: + writeSpace(); + writePunctuation("*"); + writeSpace(); + break; + case 8 /* AmpersandDelimited */: + writeSpace(); + writePunctuation("&"); + break; + } + } + function emitList(parentNode, children, format, parenthesizerRule, start, count) { + emitNodeList( + emit, + parentNode, + children, + format | (parentNode && getEmitFlags(parentNode) & 2 /* MultiLine */ ? 65536 /* PreferNewLine */ : 0), + parenthesizerRule, + start, + count + ); + } + function emitExpressionList(parentNode, children, format, parenthesizerRule, start, count) { + emitNodeList(emitExpression, parentNode, children, format, parenthesizerRule, start, count); + } + function emitNodeList(emit2, parentNode, children, format, parenthesizerRule, start = 0, count = children ? children.length - start : 0) { + const isUndefined = children === void 0; + if (isUndefined && format & 16384 /* OptionalIfUndefined */) { + return; + } + const isEmpty = children === void 0 || start >= children.length || count === 0; + if (isEmpty && format & 32768 /* OptionalIfEmpty */) { + onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children); + onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children); + return; + } + if (format & 15360 /* BracketsMask */) { + writePunctuation(getOpeningBracket(format)); + if (isEmpty && children) { + emitTrailingCommentsOfPosition( + children.pos, + /*prefixSpace*/ + true + ); + } + } + onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children); + if (isEmpty) { + if (format & 1 /* MultiLine */ && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) { + writeLine(); + } else if (format & 256 /* SpaceBetweenBraces */ && !(format & 524288 /* NoSpaceIfEmpty */)) { + writeSpace(); + } + } else { + emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, children.hasTrailingComma, children); + } + onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children); + if (format & 15360 /* BracketsMask */) { + if (isEmpty && children) { + emitLeadingCommentsOfPosition(children.end); + } + writePunctuation(getClosingBracket(format)); + } + } + function emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) { + const mayEmitInterveningComments = (format & 262144 /* NoInterveningComments */) === 0; + let shouldEmitInterveningComments = mayEmitInterveningComments; + const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format); + if (leadingLineTerminatorCount) { + writeLine(leadingLineTerminatorCount); + shouldEmitInterveningComments = false; + } else if (format & 256 /* SpaceBetweenBraces */) { + writeSpace(); + } + if (format & 128 /* Indented */) { + increaseIndent(); + } + const emitListItem = getEmitListItem(emit2, parenthesizerRule); + let previousSibling; + let shouldDecreaseIndentAfterEmit = false; + for (let i = 0; i < count; i++) { + const child = children[start + i]; + if (format & 32 /* AsteriskDelimited */) { + writeLine(); + writeDelimiter(format); + } else if (previousSibling) { + if (format & 60 /* DelimitersMask */ && previousSibling.end !== (parentNode ? parentNode.end : -1)) { + const previousSiblingEmitFlags = getEmitFlags(previousSibling); + if (!(previousSiblingEmitFlags & 2048 /* NoTrailingComments */)) { + emitLeadingCommentsOfPosition(previousSibling.end); + } + } + writeDelimiter(format); + const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format); + if (separatingLineTerminatorCount > 0) { + if ((format & (3 /* LinesMask */ | 128 /* Indented */)) === 0 /* SingleLine */) { + increaseIndent(); + shouldDecreaseIndentAfterEmit = true; + } + if (shouldEmitInterveningComments && format & 60 /* DelimitersMask */ && !positionIsSynthesized(child.pos)) { + const commentRange = getCommentRange(child); + emitTrailingCommentsOfPosition( + commentRange.pos, + /*prefixSpace*/ + !!(format & 512 /* SpaceBetweenSiblings */), + /*forceNoNewline*/ + true + ); + } + writeLine(separatingLineTerminatorCount); + shouldEmitInterveningComments = false; + } else if (previousSibling && format & 512 /* SpaceBetweenSiblings */) { + writeSpace(); + } + } + if (shouldEmitInterveningComments) { + const commentRange = getCommentRange(child); + emitTrailingCommentsOfPosition(commentRange.pos); + } else { + shouldEmitInterveningComments = mayEmitInterveningComments; + } + nextListElementPos = child.pos; + emitListItem(child, emit2, parenthesizerRule, i); + if (shouldDecreaseIndentAfterEmit) { + decreaseIndent(); + shouldDecreaseIndentAfterEmit = false; + } + previousSibling = child; + } + const emitFlags = previousSibling ? getEmitFlags(previousSibling) : 0; + const skipTrailingComments = commentsDisabled || !!(emitFlags & 2048 /* NoTrailingComments */); + const emitTrailingComma = hasTrailingComma && format & 64 /* AllowTrailingComma */ && format & 16 /* CommaDelimited */; + if (emitTrailingComma) { + if (previousSibling && !skipTrailingComments) { + emitTokenWithComment(28 /* CommaToken */, previousSibling.end, writePunctuation, previousSibling); + } else { + writePunctuation(","); + } + } + if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format & 60 /* DelimitersMask */ && !skipTrailingComments) { + emitLeadingCommentsOfPosition(emitTrailingComma && (childrenTextRange == null ? void 0 : childrenTextRange.end) ? childrenTextRange.end : previousSibling.end); + } + if (format & 128 /* Indented */) { + decreaseIndent(); + } + const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format, childrenTextRange); + if (closingLineTerminatorCount) { + writeLine(closingLineTerminatorCount); + } else if (format & (2097152 /* SpaceAfterList */ | 256 /* SpaceBetweenBraces */)) { + writeSpace(); + } + } + function writeLiteral(s) { + writer.writeLiteral(s); + } + function writeStringLiteral(s) { + writer.writeStringLiteral(s); + } + function writeBase(s) { + writer.write(s); + } + function writeSymbol(s, sym) { + writer.writeSymbol(s, sym); + } + function writePunctuation(s) { + writer.writePunctuation(s); + } + function writeTrailingSemicolon() { + writer.writeTrailingSemicolon(";"); + } + function writeKeyword(s) { + writer.writeKeyword(s); + } + function writeOperator(s) { + writer.writeOperator(s); + } + function writeParameter(s) { + writer.writeParameter(s); + } + function writeComment(s) { + writer.writeComment(s); + } + function writeSpace() { + writer.writeSpace(" "); + } + function writeProperty(s) { + writer.writeProperty(s); + } + function nonEscapingWrite(s) { + if (writer.nonEscapingWrite) { + writer.nonEscapingWrite(s); + } else { + writer.write(s); + } + } + function writeLine(count = 1) { + for (let i = 0; i < count; i++) { + writer.writeLine(i > 0); + } + } + function increaseIndent() { + writer.increaseIndent(); + } + function decreaseIndent() { + writer.decreaseIndent(); + } + function writeToken(token, pos, writer2, contextNode) { + return !sourceMapsDisabled ? emitTokenWithSourceMap(contextNode, token, writer2, pos, writeTokenText) : writeTokenText(token, writer2, pos); + } + function writeTokenNode(node, writer2) { + if (onBeforeEmitToken) { + onBeforeEmitToken(node); + } + writer2(tokenToString(node.kind)); + if (onAfterEmitToken) { + onAfterEmitToken(node); + } + } + function writeTokenText(token, writer2, pos) { + const tokenString = tokenToString(token); + writer2(tokenString); + return pos < 0 ? pos : pos + tokenString.length; + } + function writeLineOrSpace(parentNode, prevChildNode, nextChildNode) { + if (getEmitFlags(parentNode) & 1 /* SingleLine */) { + writeSpace(); + } else if (preserveSourceNewlines) { + const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode); + if (lines) { + writeLine(lines); + } else { + writeSpace(); + } + } else { + writeLine(); + } + } + function writeLines(text) { + const lines = text.split(/\r\n?|\n/g); + const indentation = guessIndentation(lines); + for (const lineText of lines) { + const line = indentation ? lineText.slice(indentation) : lineText; + if (line.length) { + writeLine(); + write(line); + } + } + } + function writeLinesAndIndent(lineCount, writeSpaceIfNotIndenting) { + if (lineCount) { + increaseIndent(); + writeLine(lineCount); + } else if (writeSpaceIfNotIndenting) { + writeSpace(); + } + } + function decreaseIndentIf(value1, value2) { + if (value1) { + decreaseIndent(); + } + if (value2) { + decreaseIndent(); + } + } + function getLeadingLineTerminatorCount(parentNode, firstChild, format) { + if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { + if (format & 65536 /* PreferNewLine */) { + return 1; + } + if (firstChild === void 0) { + return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1; + } + if (firstChild.pos === nextListElementPos) { + return 0; + } + if (firstChild.kind === 12 /* JsxText */) { + return 0; + } + if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(firstChild) && (!firstChild.parent || getOriginalNode(firstChild.parent) === getOriginalNode(parentNode))) { + if (preserveSourceNewlines) { + return getEffectiveLines( + (includeComments) => getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter( + firstChild.pos, + parentNode.pos, + currentSourceFile, + includeComments + ) + ); + } + return rangeStartPositionsAreOnSameLine(parentNode, firstChild, currentSourceFile) ? 0 : 1; + } + if (synthesizedNodeStartsOnNewLine(firstChild, format)) { + return 1; + } + } + return format & 1 /* MultiLine */ ? 1 : 0; + } + function getSeparatingLineTerminatorCount(previousNode, nextNode, format) { + if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { + if (previousNode === void 0 || nextNode === void 0) { + return 0; + } + if (nextNode.kind === 12 /* JsxText */) { + return 0; + } else if (currentSourceFile && !nodeIsSynthesized(previousNode) && !nodeIsSynthesized(nextNode)) { + if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) { + return getEffectiveLines( + (includeComments) => getLinesBetweenRangeEndAndRangeStart( + previousNode, + nextNode, + currentSourceFile, + includeComments + ) + ); + } else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) { + return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1; + } + return format & 65536 /* PreferNewLine */ ? 1 : 0; + } else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(nextNode, format)) { + return 1; + } + } else if (getStartsOnNewLine(nextNode)) { + return 1; + } + return format & 1 /* MultiLine */ ? 1 : 0; + } + function getClosingLineTerminatorCount(parentNode, lastChild, format, childrenTextRange) { + if (format & 2 /* PreserveLines */ || preserveSourceNewlines) { + if (format & 65536 /* PreferNewLine */) { + return 1; + } + if (lastChild === void 0) { + return !parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1; + } + if (currentSourceFile && parentNode && !positionIsSynthesized(parentNode.pos) && !nodeIsSynthesized(lastChild) && (!lastChild.parent || lastChild.parent === parentNode)) { + if (preserveSourceNewlines) { + const end = childrenTextRange && !positionIsSynthesized(childrenTextRange.end) ? childrenTextRange.end : lastChild.end; + return getEffectiveLines( + (includeComments) => getLinesBetweenPositionAndNextNonWhitespaceCharacter( + end, + parentNode.end, + currentSourceFile, + includeComments + ) + ); + } + return rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1; + } + if (synthesizedNodeStartsOnNewLine(lastChild, format)) { + return 1; + } + } + if (format & 1 /* MultiLine */ && !(format & 131072 /* NoTrailingNewLine */)) { + return 1; + } + return 0; + } + function getEffectiveLines(getLineDifference) { + Debug.assert(!!preserveSourceNewlines); + const lines = getLineDifference( + /*includeComments*/ + true + ); + if (lines === 0) { + return getLineDifference( + /*includeComments*/ + false + ); + } + return lines; + } + function writeLineSeparatorsAndIndentBefore(node, parent) { + const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent, node, 0 /* None */); + if (leadingNewlines) { + writeLinesAndIndent( + leadingNewlines, + /*writeSpaceIfNotIndenting*/ + false + ); + } + return !!leadingNewlines; + } + function writeLineSeparatorsAfter(node, parent) { + const trailingNewlines = preserveSourceNewlines && getClosingLineTerminatorCount( + parent, + node, + 0 /* None */, + /*childrenTextRange*/ + void 0 + ); + if (trailingNewlines) { + writeLine(trailingNewlines); + } + } + function synthesizedNodeStartsOnNewLine(node, format) { + if (nodeIsSynthesized(node)) { + const startsOnNewLine = getStartsOnNewLine(node); + if (startsOnNewLine === void 0) { + return (format & 65536 /* PreferNewLine */) !== 0; + } + return startsOnNewLine; + } + return (format & 65536 /* PreferNewLine */) !== 0; + } + function getLinesBetweenNodes(parent, node1, node2) { + if (getEmitFlags(parent) & 262144 /* NoIndentation */) { + return 0; + } + parent = skipSynthesizedParentheses(parent); + node1 = skipSynthesizedParentheses(node1); + node2 = skipSynthesizedParentheses(node2); + if (getStartsOnNewLine(node2)) { + return 1; + } + if (currentSourceFile && !nodeIsSynthesized(parent) && !nodeIsSynthesized(node1) && !nodeIsSynthesized(node2)) { + if (preserveSourceNewlines) { + return getEffectiveLines( + (includeComments) => getLinesBetweenRangeEndAndRangeStart( + node1, + node2, + currentSourceFile, + includeComments + ) + ); + } + return rangeEndIsOnSameLineAsRangeStart(node1, node2, currentSourceFile) ? 0 : 1; + } + return 0; + } + function isEmptyBlock(block) { + return block.statements.length === 0 && (!currentSourceFile || rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile)); + } + function skipSynthesizedParentheses(node) { + while (node.kind === 217 /* ParenthesizedExpression */ && nodeIsSynthesized(node)) { + node = node.expression; + } + return node; + } + function getTextOfNode2(node, includeTrivia) { + if (isGeneratedIdentifier(node) || isGeneratedPrivateIdentifier(node)) { + return generateName(node); + } + if (isStringLiteral(node) && node.textSourceNode) { + return getTextOfNode2(node.textSourceNode, includeTrivia); + } + const sourceFile = currentSourceFile; + const canUseSourceFile = !!sourceFile && !!node.parent && !nodeIsSynthesized(node); + if (isMemberName(node)) { + if (!canUseSourceFile || getSourceFileOfNode(node) !== getOriginalNode(sourceFile)) { + return idText(node); + } + } else if (isJsxNamespacedName(node)) { + if (!canUseSourceFile || getSourceFileOfNode(node) !== getOriginalNode(sourceFile)) { + return getTextOfJsxNamespacedName(node); + } + } else { + Debug.assertNode(node, isLiteralExpression); + if (!canUseSourceFile) { + return node.text; + } + } + return getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia); + } + function getLiteralTextOfNode(node, neverAsciiEscape, jsxAttributeEscape) { + if (node.kind === 11 /* StringLiteral */ && node.textSourceNode) { + const textSourceNode = node.textSourceNode; + if (isIdentifier(textSourceNode) || isPrivateIdentifier(textSourceNode) || isNumericLiteral(textSourceNode) || isJsxNamespacedName(textSourceNode)) { + const text = isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode2(textSourceNode); + return jsxAttributeEscape ? `"${escapeJsxAttributeString(text)}"` : neverAsciiEscape || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? `"${escapeString(text)}"` : `"${escapeNonAsciiString(text)}"`; + } else { + return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape); + } + } + const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0); + return getLiteralText(node, currentSourceFile, flags); + } + function pushNameGenerationScope(node) { + privateNameTempFlagsStack.push(privateNameTempFlags); + privateNameTempFlags = 0 /* Auto */; + reservedPrivateNamesStack.push(reservedPrivateNames); + if (node && getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { + return; + } + tempFlagsStack.push(tempFlags); + tempFlags = 0 /* Auto */; + formattedNameTempFlagsStack.push(formattedNameTempFlags); + formattedNameTempFlags = void 0; + reservedNamesStack.push(reservedNames); + } + function popNameGenerationScope(node) { + privateNameTempFlags = privateNameTempFlagsStack.pop(); + reservedPrivateNames = reservedPrivateNamesStack.pop(); + if (node && getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { + return; + } + tempFlags = tempFlagsStack.pop(); + formattedNameTempFlags = formattedNameTempFlagsStack.pop(); + reservedNames = reservedNamesStack.pop(); + } + function reserveNameInNestedScopes(name) { + if (!reservedNames || reservedNames === lastOrUndefined(reservedNamesStack)) { + reservedNames = /* @__PURE__ */ new Set(); + } + reservedNames.add(name); + } + function reservePrivateNameInNestedScopes(name) { + if (!reservedPrivateNames || reservedPrivateNames === lastOrUndefined(reservedPrivateNamesStack)) { + reservedPrivateNames = /* @__PURE__ */ new Set(); + } + reservedPrivateNames.add(name); + } + function generateNames(node) { + if (!node) return; + switch (node.kind) { + case 241 /* Block */: + forEach(node.statements, generateNames); + break; + case 256 /* LabeledStatement */: + case 254 /* WithStatement */: + case 246 /* DoStatement */: + case 247 /* WhileStatement */: + generateNames(node.statement); + break; + case 245 /* IfStatement */: + generateNames(node.thenStatement); + generateNames(node.elseStatement); + break; + case 248 /* ForStatement */: + case 250 /* ForOfStatement */: + case 249 /* ForInStatement */: + generateNames(node.initializer); + generateNames(node.statement); + break; + case 255 /* SwitchStatement */: + generateNames(node.caseBlock); + break; + case 269 /* CaseBlock */: + forEach(node.clauses, generateNames); + break; + case 296 /* CaseClause */: + case 297 /* DefaultClause */: + forEach(node.statements, generateNames); + break; + case 258 /* TryStatement */: + generateNames(node.tryBlock); + generateNames(node.catchClause); + generateNames(node.finallyBlock); + break; + case 299 /* CatchClause */: + generateNames(node.variableDeclaration); + generateNames(node.block); + break; + case 243 /* VariableStatement */: + generateNames(node.declarationList); + break; + case 261 /* VariableDeclarationList */: + forEach(node.declarations, generateNames); + break; + case 260 /* VariableDeclaration */: + case 169 /* Parameter */: + case 208 /* BindingElement */: + case 263 /* ClassDeclaration */: + generateNameIfNeeded(node.name); + break; + case 262 /* FunctionDeclaration */: + generateNameIfNeeded(node.name); + if (getEmitFlags(node) & 1048576 /* ReuseTempVariableScope */) { + forEach(node.parameters, generateNames); + generateNames(node.body); + } + break; + case 206 /* ObjectBindingPattern */: + case 207 /* ArrayBindingPattern */: + forEach(node.elements, generateNames); + break; + case 272 /* ImportDeclaration */: + generateNames(node.importClause); + break; + case 273 /* ImportClause */: + generateNameIfNeeded(node.name); + generateNames(node.namedBindings); + break; + case 274 /* NamespaceImport */: + generateNameIfNeeded(node.name); + break; + case 280 /* NamespaceExport */: + generateNameIfNeeded(node.name); + break; + case 275 /* NamedImports */: + forEach(node.elements, generateNames); + break; + case 276 /* ImportSpecifier */: + generateNameIfNeeded(node.propertyName || node.name); + break; + } + } + function generateMemberNames(node) { + if (!node) return; + switch (node.kind) { + case 303 /* PropertyAssignment */: + case 304 /* ShorthandPropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + generateNameIfNeeded(node.name); + break; + } + } + function generateNameIfNeeded(name) { + if (name) { + if (isGeneratedIdentifier(name) || isGeneratedPrivateIdentifier(name)) { + generateName(name); + } else if (isBindingPattern(name)) { + generateNames(name); + } + } + } + function generateName(name) { + const autoGenerate = name.emitNode.autoGenerate; + if ((autoGenerate.flags & 7 /* KindMask */) === 4 /* Node */) { + return generateNameCached(getNodeForGeneratedName(name), isPrivateIdentifier(name), autoGenerate.flags, autoGenerate.prefix, autoGenerate.suffix); + } else { + const autoGenerateId = autoGenerate.id; + return autoGeneratedIdToGeneratedName[autoGenerateId] || (autoGeneratedIdToGeneratedName[autoGenerateId] = makeName(name)); + } + } + function generateNameCached(node, privateName, flags, prefix, suffix) { + const nodeId = getNodeId(node); + const cache = privateName ? nodeIdToGeneratedPrivateName : nodeIdToGeneratedName; + return cache[nodeId] || (cache[nodeId] = generateNameForNode(node, privateName, flags ?? 0 /* None */, formatGeneratedNamePart(prefix, generateName), formatGeneratedNamePart(suffix))); + } + function isUniqueName(name, privateName) { + return isFileLevelUniqueNameInCurrentFile(name, privateName) && !isReservedName(name, privateName) && !generatedNames.has(name); + } + function isReservedName(name, privateName) { + let set; + let stack; + if (privateName) { + set = reservedPrivateNames; + stack = reservedPrivateNamesStack; + } else { + set = reservedNames; + stack = reservedNamesStack; + } + if (set == null ? void 0 : set.has(name)) { + return true; + } + for (let i = stack.length - 1; i >= 0; i--) { + if (set === stack[i]) { + continue; + } + set = stack[i]; + if (set == null ? void 0 : set.has(name)) { + return true; + } + } + return false; + } + function isFileLevelUniqueNameInCurrentFile(name, _isPrivate) { + return currentSourceFile ? isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true; + } + function isUniqueLocalName(name, container) { + for (let node = container; node && isNodeDescendantOf(node, container); node = node.nextContainer) { + if (canHaveLocals(node) && node.locals) { + const local = node.locals.get(escapeLeadingUnderscores(name)); + if (local && local.flags & (111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */)) { + return false; + } + } + } + return true; + } + function getTempFlags(formattedNameKey) { + switch (formattedNameKey) { + case "": + return tempFlags; + case "#": + return privateNameTempFlags; + default: + return (formattedNameTempFlags == null ? void 0 : formattedNameTempFlags.get(formattedNameKey)) ?? 0 /* Auto */; + } + } + function setTempFlags(formattedNameKey, flags) { + switch (formattedNameKey) { + case "": + tempFlags = flags; + break; + case "#": + privateNameTempFlags = flags; + break; + default: + formattedNameTempFlags ?? (formattedNameTempFlags = /* @__PURE__ */ new Map()); + formattedNameTempFlags.set(formattedNameKey, flags); + break; + } + } + function makeTempVariableName(flags, reservedInNestedScopes, privateName, prefix, suffix) { + if (prefix.length > 0 && prefix.charCodeAt(0) === 35 /* hash */) { + prefix = prefix.slice(1); + } + const key = formatGeneratedName(privateName, prefix, "", suffix); + let tempFlags2 = getTempFlags(key); + if (flags && !(tempFlags2 & flags)) { + const name = flags === 268435456 /* _i */ ? "_i" : "_n"; + const fullName = formatGeneratedName(privateName, prefix, name, suffix); + if (isUniqueName(fullName, privateName)) { + tempFlags2 |= flags; + if (privateName) { + reservePrivateNameInNestedScopes(fullName); + } else if (reservedInNestedScopes) { + reserveNameInNestedScopes(fullName); + } + setTempFlags(key, tempFlags2); + return fullName; + } + } + while (true) { + const count = tempFlags2 & 268435455 /* CountMask */; + tempFlags2++; + if (count !== 8 && count !== 13) { + const name = count < 26 ? "_" + String.fromCharCode(97 /* a */ + count) : "_" + (count - 26); + const fullName = formatGeneratedName(privateName, prefix, name, suffix); + if (isUniqueName(fullName, privateName)) { + if (privateName) { + reservePrivateNameInNestedScopes(fullName); + } else if (reservedInNestedScopes) { + reserveNameInNestedScopes(fullName); + } + setTempFlags(key, tempFlags2); + return fullName; + } + } + } + } + function makeUniqueName(baseName, checkFn = isUniqueName, optimistic, scoped, privateName, prefix, suffix) { + if (baseName.length > 0 && baseName.charCodeAt(0) === 35 /* hash */) { + baseName = baseName.slice(1); + } + if (prefix.length > 0 && prefix.charCodeAt(0) === 35 /* hash */) { + prefix = prefix.slice(1); + } + if (optimistic) { + const fullName = formatGeneratedName(privateName, prefix, baseName, suffix); + if (checkFn(fullName, privateName)) { + if (privateName) { + reservePrivateNameInNestedScopes(fullName); + } else if (scoped) { + reserveNameInNestedScopes(fullName); + } else { + generatedNames.add(fullName); + } + return fullName; + } + } + if (baseName.charCodeAt(baseName.length - 1) !== 95 /* _ */) { + baseName += "_"; + } + let i = 1; + while (true) { + const fullName = formatGeneratedName(privateName, prefix, baseName + i, suffix); + if (checkFn(fullName, privateName)) { + if (privateName) { + reservePrivateNameInNestedScopes(fullName); + } else if (scoped) { + reserveNameInNestedScopes(fullName); + } else { + generatedNames.add(fullName); + } + return fullName; + } + i++; + } + } + function makeFileLevelOptimisticUniqueName(name) { + return makeUniqueName( + name, + isFileLevelUniqueNameInCurrentFile, + /*optimistic*/ + true, + /*scoped*/ + false, + /*privateName*/ + false, + /*prefix*/ + "", + /*suffix*/ + "" + ); + } + function generateNameForModuleOrEnum(node) { + const name = getTextOfNode2(node.name); + return isUniqueLocalName(name, tryCast(node, canHaveLocals)) ? name : makeUniqueName( + name, + isUniqueName, + /*optimistic*/ + false, + /*scoped*/ + false, + /*privateName*/ + false, + /*prefix*/ + "", + /*suffix*/ + "" + ); + } + function generateNameForImportOrExportDeclaration(node) { + const expr = getExternalModuleName(node); + const baseName = isStringLiteral(expr) ? makeIdentifierFromModuleName(expr.text) : "module"; + return makeUniqueName( + baseName, + isUniqueName, + /*optimistic*/ + false, + /*scoped*/ + false, + /*privateName*/ + false, + /*prefix*/ + "", + /*suffix*/ + "" + ); + } + function generateNameForExportDefault() { + return makeUniqueName( + "default", + isUniqueName, + /*optimistic*/ + false, + /*scoped*/ + false, + /*privateName*/ + false, + /*prefix*/ + "", + /*suffix*/ + "" + ); + } + function generateNameForClassExpression() { + return makeUniqueName( + "class", + isUniqueName, + /*optimistic*/ + false, + /*scoped*/ + false, + /*privateName*/ + false, + /*prefix*/ + "", + /*suffix*/ + "" + ); + } + function generateNameForMethodOrAccessor(node, privateName, prefix, suffix) { + if (isIdentifier(node.name)) { + return generateNameCached(node.name, privateName); + } + return makeTempVariableName( + 0 /* Auto */, + /*reservedInNestedScopes*/ + false, + privateName, + prefix, + suffix + ); + } + function generateNameForNode(node, privateName, flags, prefix, suffix) { + switch (node.kind) { + case 80 /* Identifier */: + case 81 /* PrivateIdentifier */: + return makeUniqueName( + getTextOfNode2(node), + isUniqueName, + !!(flags & 16 /* Optimistic */), + !!(flags & 8 /* ReservedInNestedScopes */), + privateName, + prefix, + suffix + ); + case 267 /* ModuleDeclaration */: + case 266 /* EnumDeclaration */: + Debug.assert(!prefix && !suffix && !privateName); + return generateNameForModuleOrEnum(node); + case 272 /* ImportDeclaration */: + case 278 /* ExportDeclaration */: + Debug.assert(!prefix && !suffix && !privateName); + return generateNameForImportOrExportDeclaration(node); + case 262 /* FunctionDeclaration */: + case 263 /* ClassDeclaration */: { + Debug.assert(!prefix && !suffix && !privateName); + const name = node.name; + if (name && !isGeneratedIdentifier(name)) { + return generateNameForNode( + name, + /*privateName*/ + false, + flags, + prefix, + suffix + ); + } + return generateNameForExportDefault(); + } + case 277 /* ExportAssignment */: + Debug.assert(!prefix && !suffix && !privateName); + return generateNameForExportDefault(); + case 231 /* ClassExpression */: + Debug.assert(!prefix && !suffix && !privateName); + return generateNameForClassExpression(); + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + return generateNameForMethodOrAccessor(node, privateName, prefix, suffix); + case 167 /* ComputedPropertyName */: + return makeTempVariableName( + 0 /* Auto */, + /*reservedInNestedScopes*/ + true, + privateName, + prefix, + suffix + ); + default: + return makeTempVariableName( + 0 /* Auto */, + /*reservedInNestedScopes*/ + false, + privateName, + prefix, + suffix + ); + } + } + function makeName(name) { + const autoGenerate = name.emitNode.autoGenerate; + const prefix = formatGeneratedNamePart(autoGenerate.prefix, generateName); + const suffix = formatGeneratedNamePart(autoGenerate.suffix); + switch (autoGenerate.flags & 7 /* KindMask */) { + case 1 /* Auto */: + return makeTempVariableName(0 /* Auto */, !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), isPrivateIdentifier(name), prefix, suffix); + case 2 /* Loop */: + Debug.assertNode(name, isIdentifier); + return makeTempVariableName( + 268435456 /* _i */, + !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), + /*privateName*/ + false, + prefix, + suffix + ); + case 3 /* Unique */: + return makeUniqueName( + idText(name), + autoGenerate.flags & 32 /* FileLevel */ ? isFileLevelUniqueNameInCurrentFile : isUniqueName, + !!(autoGenerate.flags & 16 /* Optimistic */), + !!(autoGenerate.flags & 8 /* ReservedInNestedScopes */), + isPrivateIdentifier(name), + prefix, + suffix + ); + } + return Debug.fail(`Unsupported GeneratedIdentifierKind: ${Debug.formatEnum( + autoGenerate.flags & 7 /* KindMask */, + GeneratedIdentifierFlags, + /*isFlags*/ + true + )}.`); + } + function pipelineEmitWithComments(hint, node) { + const pipelinePhase = getNextPipelinePhase(2 /* Comments */, hint, node); + const savedContainerPos = containerPos; + const savedContainerEnd = containerEnd; + const savedDeclarationListContainerEnd = declarationListContainerEnd; + emitCommentsBeforeNode(node); + pipelinePhase(hint, node); + emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); + } + function emitCommentsBeforeNode(node) { + const emitFlags = getEmitFlags(node); + const commentRange = getCommentRange(node); + emitLeadingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end); + if (emitFlags & 4096 /* NoNestedComments */) { + commentsDisabled = true; + } + } + function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) { + const emitFlags = getEmitFlags(node); + const commentRange = getCommentRange(node); + if (emitFlags & 4096 /* NoNestedComments */) { + commentsDisabled = false; + } + emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); + const typeNode = getTypeNode(node); + if (typeNode) { + emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd); + } + } + function emitLeadingCommentsOfNode(node, emitFlags, pos, end) { + enterComment(); + hasWrittenComment = false; + const skipLeadingComments = pos < 0 || (emitFlags & 1024 /* NoLeadingComments */) !== 0 || node.kind === 12 /* JsxText */; + const skipTrailingComments = end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0 || node.kind === 12 /* JsxText */; + if ((pos > 0 || end > 0) && pos !== end) { + if (!skipLeadingComments) { + emitLeadingComments( + pos, + /*isEmittedNode*/ + node.kind !== 353 /* NotEmittedStatement */ + ); + } + if (!skipLeadingComments || pos >= 0 && (emitFlags & 1024 /* NoLeadingComments */) !== 0) { + containerPos = pos; + } + if (!skipTrailingComments || end >= 0 && (emitFlags & 2048 /* NoTrailingComments */) !== 0) { + containerEnd = end; + if (node.kind === 261 /* VariableDeclarationList */) { + declarationListContainerEnd = end; + } + } + } + forEach(getSyntheticLeadingComments(node), emitLeadingSynthesizedComment); + exitComment(); + } + function emitTrailingCommentsOfNode(node, emitFlags, pos, end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) { + enterComment(); + const skipTrailingComments = end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0 || node.kind === 12 /* JsxText */; + forEach(getSyntheticTrailingComments(node), emitTrailingSynthesizedComment); + if ((pos > 0 || end > 0) && pos !== end) { + containerPos = savedContainerPos; + containerEnd = savedContainerEnd; + declarationListContainerEnd = savedDeclarationListContainerEnd; + if (!skipTrailingComments && node.kind !== 353 /* NotEmittedStatement */) { + emitTrailingComments(end); + } + } + exitComment(); + } + function emitLeadingSynthesizedComment(comment) { + if (comment.hasLeadingNewline || comment.kind === 2 /* SingleLineCommentTrivia */) { + writer.writeLine(); + } + writeSynthesizedComment(comment); + if (comment.hasTrailingNewLine || comment.kind === 2 /* SingleLineCommentTrivia */) { + writer.writeLine(); + } else { + writer.writeSpace(" "); + } + } + function emitTrailingSynthesizedComment(comment) { + if (!writer.isAtStartOfLine()) { + writer.writeSpace(" "); + } + writeSynthesizedComment(comment); + if (comment.hasTrailingNewLine) { + writer.writeLine(); + } + } + function writeSynthesizedComment(comment) { + const text = formatSynthesizedComment(comment); + const lineMap = comment.kind === 3 /* MultiLineCommentTrivia */ ? computeLineStarts(text) : void 0; + writeCommentRange(text, lineMap, writer, 0, text.length, newLine); + } + function formatSynthesizedComment(comment) { + return comment.kind === 3 /* MultiLineCommentTrivia */ ? `/*${comment.text}*/` : `//${comment.text}`; + } + function emitBodyWithDetachedComments(node, detachedRange, emitCallback) { + enterComment(); + const { pos, end } = detachedRange; + const emitFlags = getEmitFlags(node); + const skipLeadingComments = pos < 0 || (emitFlags & 1024 /* NoLeadingComments */) !== 0; + const skipTrailingComments = commentsDisabled || end < 0 || (emitFlags & 2048 /* NoTrailingComments */) !== 0; + if (!skipLeadingComments) { + emitDetachedCommentsAndUpdateCommentsInfo(detachedRange); + } + exitComment(); + if (emitFlags & 4096 /* NoNestedComments */ && !commentsDisabled) { + commentsDisabled = true; + emitCallback(node); + commentsDisabled = false; + } else { + emitCallback(node); + } + enterComment(); + if (!skipTrailingComments) { + emitLeadingComments( + detachedRange.end, + /*isEmittedNode*/ + true + ); + if (hasWrittenComment && !writer.isAtStartOfLine()) { + writer.writeLine(); + } + } + exitComment(); + } + function originalNodesHaveSameParent(nodeA, nodeB) { + nodeA = getOriginalNode(nodeA); + return nodeA.parent && nodeA.parent === getOriginalNode(nodeB).parent; + } + function siblingNodePositionsAreComparable(previousNode, nextNode) { + if (nextNode.pos < previousNode.end) { + return false; + } + previousNode = getOriginalNode(previousNode); + nextNode = getOriginalNode(nextNode); + const parent = previousNode.parent; + if (!parent || parent !== nextNode.parent) { + return false; + } + const parentNodeArray = getContainingNodeArray(previousNode); + const prevNodeIndex = parentNodeArray == null ? void 0 : parentNodeArray.indexOf(previousNode); + return prevNodeIndex !== void 0 && prevNodeIndex > -1 && parentNodeArray.indexOf(nextNode) === prevNodeIndex + 1; + } + function emitLeadingComments(pos, isEmittedNode) { + hasWrittenComment = false; + if (isEmittedNode) { + if (pos === 0 && (currentSourceFile == null ? void 0 : currentSourceFile.isDeclarationFile)) { + forEachLeadingCommentToEmit(pos, emitNonTripleSlashLeadingComment); + } else { + forEachLeadingCommentToEmit(pos, emitLeadingComment); + } + } else if (pos === 0) { + forEachLeadingCommentToEmit(pos, emitTripleSlashLeadingComment); + } + } + function emitTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { + if (isTripleSlashComment(commentPos, commentEnd)) { + emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos); + } + } + function emitNonTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { + if (!isTripleSlashComment(commentPos, commentEnd)) { + emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos); + } + } + function shouldWriteComment(text, pos) { + if (printerOptions.onlyPrintJsDocStyle) { + return isJSDocLikeText(text, pos) || isPinnedComment(text, pos); + } + return true; + } + function emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) { + if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; + if (!hasWrittenComment) { + emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(), writer, rangePos, commentPos); + hasWrittenComment = true; + } + emitPos(commentPos); + writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); + emitPos(commentEnd); + if (hasTrailingNewLine) { + writer.writeLine(); + } else if (kind === 3 /* MultiLineCommentTrivia */) { + writer.writeSpace(" "); + } + } + function emitLeadingCommentsOfPosition(pos) { + if (commentsDisabled || pos === -1) { + return; + } + emitLeadingComments( + pos, + /*isEmittedNode*/ + true + ); + } + function emitTrailingComments(pos) { + forEachTrailingCommentToEmit(pos, emitTrailingComment); + } + function emitTrailingComment(commentPos, commentEnd, _kind, hasTrailingNewLine) { + if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; + if (!writer.isAtStartOfLine()) { + writer.writeSpace(" "); + } + emitPos(commentPos); + writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); + emitPos(commentEnd); + if (hasTrailingNewLine) { + writer.writeLine(); + } + } + function emitTrailingCommentsOfPosition(pos, prefixSpace, forceNoNewline) { + if (commentsDisabled) { + return; + } + enterComment(); + forEachTrailingCommentToEmit(pos, prefixSpace ? emitTrailingComment : forceNoNewline ? emitTrailingCommentOfPositionNoNewline : emitTrailingCommentOfPosition); + exitComment(); + } + function emitTrailingCommentOfPositionNoNewline(commentPos, commentEnd, kind) { + if (!currentSourceFile) return; + emitPos(commentPos); + writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); + emitPos(commentEnd); + if (kind === 2 /* SingleLineCommentTrivia */) { + writer.writeLine(); + } + } + function emitTrailingCommentOfPosition(commentPos, commentEnd, _kind, hasTrailingNewLine) { + if (!currentSourceFile) return; + emitPos(commentPos); + writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); + emitPos(commentEnd); + if (hasTrailingNewLine) { + writer.writeLine(); + } else { + writer.writeSpace(" "); + } + } + function forEachLeadingCommentToEmit(pos, cb) { + if (currentSourceFile && (containerPos === -1 || pos !== containerPos)) { + if (hasDetachedComments(pos)) { + forEachLeadingCommentWithoutDetachedComments(cb); + } else { + forEachLeadingCommentRange( + currentSourceFile.text, + pos, + cb, + /*state*/ + pos + ); + } + } + } + function forEachTrailingCommentToEmit(end, cb) { + if (currentSourceFile && (containerEnd === -1 || end !== containerEnd && end !== declarationListContainerEnd)) { + forEachTrailingCommentRange(currentSourceFile.text, end, cb); + } + } + function hasDetachedComments(pos) { + return detachedCommentsInfo !== void 0 && last(detachedCommentsInfo).nodePos === pos; + } + function forEachLeadingCommentWithoutDetachedComments(cb) { + if (!currentSourceFile) return; + const pos = last(detachedCommentsInfo).detachedCommentEndPos; + if (detachedCommentsInfo.length - 1) { + detachedCommentsInfo.pop(); + } else { + detachedCommentsInfo = void 0; + } + forEachLeadingCommentRange( + currentSourceFile.text, + pos, + cb, + /*state*/ + pos + ); + } + function emitDetachedCommentsAndUpdateCommentsInfo(range) { + const currentDetachedCommentInfo = currentSourceFile && emitDetachedComments(currentSourceFile.text, getCurrentLineMap(), writer, emitComment, range, newLine, commentsDisabled); + if (currentDetachedCommentInfo) { + if (detachedCommentsInfo) { + detachedCommentsInfo.push(currentDetachedCommentInfo); + } else { + detachedCommentsInfo = [currentDetachedCommentInfo]; + } + } + } + function emitComment(text, lineMap, writer2, commentPos, commentEnd, newLine2) { + if (!currentSourceFile || !shouldWriteComment(currentSourceFile.text, commentPos)) return; + emitPos(commentPos); + writeCommentRange(text, lineMap, writer2, commentPos, commentEnd, newLine2); + emitPos(commentEnd); + } + function isTripleSlashComment(commentPos, commentEnd) { + return !!currentSourceFile && isRecognizedTripleSlashComment(currentSourceFile.text, commentPos, commentEnd); + } + function pipelineEmitWithSourceMaps(hint, node) { + const pipelinePhase = getNextPipelinePhase(3 /* SourceMaps */, hint, node); + emitSourceMapsBeforeNode(node); + pipelinePhase(hint, node); + emitSourceMapsAfterNode(node); + } + function emitSourceMapsBeforeNode(node) { + const emitFlags = getEmitFlags(node); + const sourceMapRange = getSourceMapRange(node); + const source = sourceMapRange.source || sourceMapSource; + if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 32 /* NoLeadingSourceMap */) === 0 && sourceMapRange.pos >= 0) { + emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); + } + if (emitFlags & 128 /* NoNestedSourceMaps */) { + sourceMapsDisabled = true; + } + } + function emitSourceMapsAfterNode(node) { + const emitFlags = getEmitFlags(node); + const sourceMapRange = getSourceMapRange(node); + if (emitFlags & 128 /* NoNestedSourceMaps */) { + sourceMapsDisabled = false; + } + if (node.kind !== 353 /* NotEmittedStatement */ && (emitFlags & 64 /* NoTrailingSourceMap */) === 0 && sourceMapRange.end >= 0) { + emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); + } + } + function skipSourceTrivia(source, pos) { + return source.skipTrivia ? source.skipTrivia(pos) : skipTrivia(source.text, pos); + } + function emitPos(pos) { + if (sourceMapsDisabled || positionIsSynthesized(pos) || isJsonSourceMapSource(sourceMapSource)) { + return; + } + const { line: sourceLine, character: sourceCharacter } = getLineAndCharacterOfPosition(sourceMapSource, pos); + sourceMapGenerator.addMapping( + writer.getLine(), + writer.getColumn(), + sourceMapSourceIndex, + sourceLine, + sourceCharacter, + /*nameIndex*/ + void 0 + ); + } + function emitSourcePos(source, pos) { + if (source !== sourceMapSource) { + const savedSourceMapSource = sourceMapSource; + const savedSourceMapSourceIndex = sourceMapSourceIndex; + setSourceMapSource(source); + emitPos(pos); + resetSourceMapSource(savedSourceMapSource, savedSourceMapSourceIndex); + } else { + emitPos(pos); + } + } + function emitTokenWithSourceMap(node, token, writer2, tokenPos, emitCallback) { + if (sourceMapsDisabled || node && isInJsonFile(node)) { + return emitCallback(token, writer2, tokenPos); + } + const emitNode = node && node.emitNode; + const emitFlags = emitNode && emitNode.flags || 0 /* None */; + const range = emitNode && emitNode.tokenSourceMapRanges && emitNode.tokenSourceMapRanges[token]; + const source = range && range.source || sourceMapSource; + tokenPos = skipSourceTrivia(source, range ? range.pos : tokenPos); + if ((emitFlags & 256 /* NoTokenLeadingSourceMaps */) === 0 && tokenPos >= 0) { + emitSourcePos(source, tokenPos); + } + tokenPos = emitCallback(token, writer2, tokenPos); + if (range) tokenPos = range.end; + if ((emitFlags & 512 /* NoTokenTrailingSourceMaps */) === 0 && tokenPos >= 0) { + emitSourcePos(source, tokenPos); + } + return tokenPos; + } + function setSourceMapSource(source) { + if (sourceMapsDisabled) { + return; + } + sourceMapSource = source; + if (source === mostRecentlyAddedSourceMapSource) { + sourceMapSourceIndex = mostRecentlyAddedSourceMapSourceIndex; + return; + } + if (isJsonSourceMapSource(source)) { + return; + } + sourceMapSourceIndex = sourceMapGenerator.addSource(source.fileName); + if (printerOptions.inlineSources) { + sourceMapGenerator.setSourceContent(sourceMapSourceIndex, source.text); + } + mostRecentlyAddedSourceMapSource = source; + mostRecentlyAddedSourceMapSourceIndex = sourceMapSourceIndex; + } + function resetSourceMapSource(source, sourceIndex) { + sourceMapSource = source; + sourceMapSourceIndex = sourceIndex; + } + function isJsonSourceMapSource(sourceFile) { + return fileExtensionIs(sourceFile.fileName, ".json" /* Json */); + } +} +function createBracketsMap() { + const brackets2 = []; + brackets2[1024 /* Braces */] = ["{", "}"]; + brackets2[2048 /* Parenthesis */] = ["(", ")"]; + brackets2[4096 /* AngleBrackets */] = ["<", ">"]; + brackets2[8192 /* SquareBrackets */] = ["[", "]"]; + return brackets2; +} +function getOpeningBracket(format) { + return brackets[format & 15360 /* BracketsMask */][0]; +} +function getClosingBracket(format) { + return brackets[format & 15360 /* BracketsMask */][1]; +} +function emitListItemNoParenthesizer(node, emit, _parenthesizerRule, _index) { + emit(node); +} +function emitListItemWithParenthesizerRuleSelector(node, emit, parenthesizerRuleSelector, index) { + emit(node, parenthesizerRuleSelector.select(index)); +} +function emitListItemWithParenthesizerRule(node, emit, parenthesizerRule, _index) { + emit(node, parenthesizerRule); +} +function getEmitListItem(emit, parenthesizerRule) { + return emit.length === 1 ? emitListItemNoParenthesizer : typeof parenthesizerRule === "object" ? emitListItemWithParenthesizerRuleSelector : emitListItemWithParenthesizerRule; +} + +// src/compiler/watchUtilities.ts +function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) { + if (!host.getDirectories || !host.readDirectory) { + return void 0; + } + const cachedReadDirectoryResult = /* @__PURE__ */ new Map(); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + return { + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + fileExists, + readFile: (path, encoding) => host.readFile(path, encoding), + directoryExists: host.directoryExists && directoryExists, + getDirectories, + readDirectory, + createDirectory: host.createDirectory && createDirectory, + writeFile: host.writeFile && writeFile2, + addOrDeleteFileOrDirectory, + addOrDeleteFile, + clearCache, + realpath: host.realpath && realpath + }; + function toPath3(fileName) { + return toPath(fileName, currentDirectory, getCanonicalFileName); + } + function getCachedFileSystemEntries(rootDirPath) { + return cachedReadDirectoryResult.get(ensureTrailingDirectorySeparator(rootDirPath)); + } + function getCachedFileSystemEntriesForBaseDir(path) { + const entries = getCachedFileSystemEntries(getDirectoryPath(path)); + if (!entries) { + return entries; + } + if (!entries.sortedAndCanonicalizedFiles) { + entries.sortedAndCanonicalizedFiles = entries.files.map(getCanonicalFileName).sort(); + entries.sortedAndCanonicalizedDirectories = entries.directories.map(getCanonicalFileName).sort(); + } + return entries; + } + function getBaseNameOfFileName(fileName) { + return getBaseFileName(normalizePath(fileName)); + } + function createCachedFileSystemEntries(rootDir, rootDirPath) { + var _a; + if (!host.realpath || ensureTrailingDirectorySeparator(toPath3(host.realpath(rootDir))) === rootDirPath) { + const resultFromHost = { + files: map(host.readDirectory( + rootDir, + /*extensions*/ + void 0, + /*exclude*/ + void 0, + /*include*/ + ["*.*"] + ), getBaseNameOfFileName) || [], + directories: host.getDirectories(rootDir) || [] + }; + cachedReadDirectoryResult.set(ensureTrailingDirectorySeparator(rootDirPath), resultFromHost); + return resultFromHost; + } + if ((_a = host.directoryExists) == null ? void 0 : _a.call(host, rootDir)) { + cachedReadDirectoryResult.set(rootDirPath, false); + return false; + } + return void 0; + } + function tryReadDirectory(rootDir, rootDirPath) { + rootDirPath = ensureTrailingDirectorySeparator(rootDirPath); + const cachedResult = getCachedFileSystemEntries(rootDirPath); + if (cachedResult) { + return cachedResult; + } + try { + return createCachedFileSystemEntries(rootDir, rootDirPath); + } catch (_e) { + Debug.assert(!cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(rootDirPath))); + return void 0; + } + } + function hasEntry(entries, name) { + const index = binarySearch(entries, name, identity, compareStringsCaseSensitive); + return index >= 0; + } + function writeFile2(fileName, data, writeByteOrderMark) { + const path = toPath3(fileName); + const result = getCachedFileSystemEntriesForBaseDir(path); + if (result) { + updateFilesOfFileSystemEntry( + result, + getBaseNameOfFileName(fileName), + /*fileExists*/ + true + ); + } + return host.writeFile(fileName, data, writeByteOrderMark); + } + function fileExists(fileName) { + const path = toPath3(fileName); + const result = getCachedFileSystemEntriesForBaseDir(path); + return result && hasEntry(result.sortedAndCanonicalizedFiles, getCanonicalFileName(getBaseNameOfFileName(fileName))) || host.fileExists(fileName); + } + function directoryExists(dirPath) { + const path = toPath3(dirPath); + return cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(path)) || host.directoryExists(dirPath); + } + function createDirectory(dirPath) { + const path = toPath3(dirPath); + const result = getCachedFileSystemEntriesForBaseDir(path); + if (result) { + const baseName = getBaseNameOfFileName(dirPath); + const canonicalizedBaseName = getCanonicalFileName(baseName); + const canonicalizedDirectories = result.sortedAndCanonicalizedDirectories; + if (insertSorted(canonicalizedDirectories, canonicalizedBaseName, compareStringsCaseSensitive)) { + result.directories.push(baseName); + } + } + host.createDirectory(dirPath); + } + function getDirectories(rootDir) { + const rootDirPath = toPath3(rootDir); + const result = tryReadDirectory(rootDir, rootDirPath); + if (result) { + return result.directories.slice(); + } + return host.getDirectories(rootDir); + } + function readDirectory(rootDir, extensions, excludes, includes, depth) { + const rootDirPath = toPath3(rootDir); + const rootResult = tryReadDirectory(rootDir, rootDirPath); + let rootSymLinkResult; + if (rootResult !== void 0) { + return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath); + } + return host.readDirectory(rootDir, extensions, excludes, includes, depth); + function getFileSystemEntries(dir) { + const path = toPath3(dir); + if (path === rootDirPath) { + return rootResult || getFileSystemEntriesFromHost(dir, path); + } + const result = tryReadDirectory(dir, path); + return result !== void 0 ? result || getFileSystemEntriesFromHost(dir, path) : emptyFileSystemEntries; + } + function getFileSystemEntriesFromHost(dir, path) { + if (rootSymLinkResult && path === rootDirPath) return rootSymLinkResult; + const result = { + files: map(host.readDirectory( + dir, + /*extensions*/ + void 0, + /*exclude*/ + void 0, + /*include*/ + ["*.*"] + ), getBaseNameOfFileName) || emptyArray, + directories: host.getDirectories(dir) || emptyArray + }; + if (path === rootDirPath) rootSymLinkResult = result; + return result; + } + } + function realpath(s) { + return host.realpath ? host.realpath(s) : s; + } + function addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath) { + const existingResult = getCachedFileSystemEntries(fileOrDirectoryPath); + if (existingResult !== void 0) { + clearCache(); + return void 0; + } + const parentResult = getCachedFileSystemEntriesForBaseDir(fileOrDirectoryPath); + if (!parentResult) { + return void 0; + } + if (!host.directoryExists) { + clearCache(); + return void 0; + } + const baseName = getBaseNameOfFileName(fileOrDirectory); + const fsQueryResult = { + fileExists: host.fileExists(fileOrDirectory), + directoryExists: host.directoryExists(fileOrDirectory) + }; + if (fsQueryResult.directoryExists || hasEntry(parentResult.sortedAndCanonicalizedDirectories, getCanonicalFileName(baseName))) { + clearCache(); + } else { + updateFilesOfFileSystemEntry(parentResult, baseName, fsQueryResult.fileExists); + } + return fsQueryResult; + } + function addOrDeleteFile(fileName, filePath, eventKind) { + if (eventKind === 1 /* Changed */) { + return; + } + const parentResult = getCachedFileSystemEntriesForBaseDir(filePath); + if (parentResult) { + updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === 0 /* Created */); + } + } + function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists2) { + const canonicalizedFiles = parentResult.sortedAndCanonicalizedFiles; + const canonicalizedBaseName = getCanonicalFileName(baseName); + if (fileExists2) { + if (insertSorted(canonicalizedFiles, canonicalizedBaseName, compareStringsCaseSensitive)) { + parentResult.files.push(baseName); + } + } else { + const sortedIndex = binarySearch(canonicalizedFiles, canonicalizedBaseName, identity, compareStringsCaseSensitive); + if (sortedIndex >= 0) { + canonicalizedFiles.splice(sortedIndex, 1); + const unsortedIndex = parentResult.files.findIndex((entry) => getCanonicalFileName(entry) === canonicalizedBaseName); + parentResult.files.splice(unsortedIndex, 1); + } + } + } + function clearCache() { + cachedReadDirectoryResult.clear(); + } +} +function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedConfigFilesMap, createExtendedConfigFileWatch, toPath3) { + var _a; + const extendedConfigs = arrayToMap(((_a = options == null ? void 0 : options.configFile) == null ? void 0 : _a.extendedSourceFiles) || emptyArray, toPath3); + extendedConfigFilesMap.forEach((watcher, extendedConfigFilePath) => { + if (!extendedConfigs.has(extendedConfigFilePath)) { + watcher.projects.delete(projectPath); + watcher.close(); + } + }); + extendedConfigs.forEach((extendedConfigFileName, extendedConfigFilePath) => { + const existing = extendedConfigFilesMap.get(extendedConfigFilePath); + if (existing) { + existing.projects.add(projectPath); + } else { + extendedConfigFilesMap.set(extendedConfigFilePath, { + projects: /* @__PURE__ */ new Set([projectPath]), + watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath), + close: () => { + const existing2 = extendedConfigFilesMap.get(extendedConfigFilePath); + if (!existing2 || existing2.projects.size !== 0) return; + existing2.watcher.close(); + extendedConfigFilesMap.delete(extendedConfigFilePath); + } + }); + } + }); +} +function clearSharedExtendedConfigFileWatcher(projectPath, extendedConfigFilesMap) { + extendedConfigFilesMap.forEach((watcher) => { + if (watcher.projects.delete(projectPath)) watcher.close(); + }); +} +function cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3) { + if (!extendedConfigCache.delete(extendedConfigFilePath)) return; + extendedConfigCache.forEach(({ extendedResult }, key) => { + var _a; + if ((_a = extendedResult.extendedSourceFiles) == null ? void 0 : _a.some((extendedFile) => toPath3(extendedFile) === extendedConfigFilePath)) { + cleanExtendedConfigCache(extendedConfigCache, key, toPath3); + } + }); +} +function updateMissingFilePathsWatch(program, missingFileWatches, createMissingFileWatch) { + mutateMap( + missingFileWatches, + program.getMissingFilePaths(), + { + // Watch the missing files + createNewValue: createMissingFileWatch, + // Files that are no longer missing (e.g. because they are no longer required) + // should no longer be watched. + onDeleteValue: closeFileWatcher + } + ); +} +function updateWatchingWildcardDirectories(existingWatchedForWildcards, wildcardDirectories, watchDirectory) { + if (wildcardDirectories) { + mutateMap( + existingWatchedForWildcards, + new Map(Object.entries(wildcardDirectories)), + { + // Create new watch and recursive info + createNewValue: createWildcardDirectoryWatcher, + // Close existing watch thats not needed any more + onDeleteValue: closeFileWatcherOf, + // Close existing watch that doesnt match in the flags + onExistingValue: updateWildcardDirectoryWatcher + } + ); + } else { + clearMap(existingWatchedForWildcards, closeFileWatcherOf); + } + function createWildcardDirectoryWatcher(directory, flags) { + return { + watcher: watchDirectory(directory, flags), + flags + }; + } + function updateWildcardDirectoryWatcher(existingWatcher, flags, directory) { + if (existingWatcher.flags === flags) { + return; + } + existingWatcher.watcher.close(); + existingWatchedForWildcards.set(directory, createWildcardDirectoryWatcher(directory, flags)); + } +} +function isIgnoredFileFromWildCardWatching({ + watchedDirPath, + fileOrDirectory, + fileOrDirectoryPath, + configFileName, + options, + program, + extraFileExtensions, + currentDirectory, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + writeLog, + toPath: toPath3, + getScriptKind +}) { + const newPath = removeIgnoredPath(fileOrDirectoryPath); + if (!newPath) { + writeLog(`Project: ${configFileName} Detected ignored path: ${fileOrDirectory}`); + return true; + } + fileOrDirectoryPath = newPath; + if (fileOrDirectoryPath === watchedDirPath) return false; + if (hasExtension(fileOrDirectoryPath) && !(isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions) || isSupportedScriptKind())) { + writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`); + return true; + } + if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) { + writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`); + return true; + } + if (!program) return false; + if (options.outFile || options.outDir) return false; + if (isDeclarationFileName(fileOrDirectoryPath)) { + if (options.declarationDir) return false; + } else if (!fileExtensionIsOneOf(fileOrDirectoryPath, supportedJSExtensionsFlat)) { + return false; + } + const filePathWithoutExtension = removeFileExtension(fileOrDirectoryPath); + const realProgram = isArray(program) ? void 0 : isBuilderProgram(program) ? program.getProgramOrUndefined() : program; + const builderProgram = !realProgram && !isArray(program) ? program : void 0; + if (hasSourceFile(filePathWithoutExtension + ".ts" /* Ts */) || hasSourceFile(filePathWithoutExtension + ".tsx" /* Tsx */)) { + writeLog(`Project: ${configFileName} Detected output file: ${fileOrDirectory}`); + return true; + } + return false; + function hasSourceFile(file) { + return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file); + } + function isSupportedScriptKind() { + if (!getScriptKind) return false; + const scriptKind = getScriptKind(fileOrDirectory); + switch (scriptKind) { + case 3 /* TS */: + case 4 /* TSX */: + case 7 /* Deferred */: + case 5 /* External */: + return true; + case 1 /* JS */: + case 2 /* JSX */: + return getAllowJSCompilerOption(options); + case 6 /* JSON */: + return getResolveJsonModule(options); + case 0 /* Unknown */: + return false; + } + } +} +function isBuilderProgram(program) { + return !!program.getState; +} +function isEmittedFileOfProgram(program, file) { + if (!program) { + return false; + } + return program.isEmittedFile(file); +} +function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) { + setSysLog(watchLogLevel === 2 /* Verbose */ ? log : noop); + const plainInvokeFactory = { + watchFile: (file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options), + watchDirectory: (directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1 /* Recursive */) !== 0, options) + }; + const triggerInvokingFactory = watchLogLevel !== 0 /* None */ ? { + watchFile: createTriggerLoggingAddWatch("watchFile"), + watchDirectory: createTriggerLoggingAddWatch("watchDirectory") + } : void 0; + const factory2 = watchLogLevel === 2 /* Verbose */ ? { + watchFile: createFileWatcherWithLogging, + watchDirectory: createDirectoryWatcherWithLogging + } : triggerInvokingFactory || plainInvokeFactory; + const excludeWatcherFactory = watchLogLevel === 2 /* Verbose */ ? createExcludeWatcherWithLogging : returnNoopFileWatcher; + return { + watchFile: createExcludeHandlingAddWatch("watchFile"), + watchDirectory: createExcludeHandlingAddWatch("watchDirectory") + }; + function createExcludeHandlingAddWatch(key) { + return (file, cb, flags, options, detailInfo1, detailInfo2) => { + var _a; + return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call( + /*thisArgs*/ + void 0, + file, + cb, + flags, + options, + detailInfo1, + detailInfo2 + ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2); + }; + } + function useCaseSensitiveFileNames2() { + return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames(); + } + function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) { + log(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); + return { + close: () => log(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`) + }; + } + function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) { + log(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); + const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2); + return { + close: () => { + log(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`); + watcher.close(); + } + }; + } + function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) { + const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; + log(watchInfo); + const start = timestamp(); + const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2); + const elapsed = timestamp() - start; + log(`Elapsed:: ${elapsed}ms ${watchInfo}`); + return { + close: () => { + const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; + log(watchInfo2); + const start2 = timestamp(); + watcher.close(); + const elapsed2 = timestamp() - start2; + log(`Elapsed:: ${elapsed2}ms ${watchInfo2}`); + } + }; + } + function createTriggerLoggingAddWatch(key) { + return (file, cb, flags, options, detailInfo1, detailInfo2) => plainInvokeFactory[key].call( + /*thisArgs*/ + void 0, + file, + (...args) => { + const triggerredInfo = `${key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${args[0]} ${args[1] !== void 0 ? args[1] : ""}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)}`; + log(triggerredInfo); + const start = timestamp(); + cb.call( + /*thisArg*/ + void 0, + ...args + ); + const elapsed = timestamp() - start; + log(`Elapsed:: ${elapsed}ms ${triggerredInfo}`); + }, + flags, + options, + detailInfo1, + detailInfo2 + ); + } + function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2) { + return `WatchInfo: ${file} ${flags} ${JSON.stringify(options)} ${getDetailWatchInfo2 ? getDetailWatchInfo2(detailInfo1, detailInfo2) : detailInfo2 === void 0 ? detailInfo1 : `${detailInfo1} ${detailInfo2}`}`; + } +} +function getFallbackOptions(options) { + const fallbackPolling = options == null ? void 0 : options.fallbackPolling; + return { + watchFile: fallbackPolling !== void 0 ? fallbackPolling : 1 /* PriorityPollingInterval */ + }; +} +function closeFileWatcherOf(objWithWatcher) { + objWithWatcher.watcher.close(); +} + +// src/compiler/program.ts +function findConfigFile(searchPath, fileExists, configName = "tsconfig.json") { + return forEachAncestorDirectory(searchPath, (ancestor) => { + const fileName = combinePaths(ancestor, configName); + return fileExists(fileName) ? fileName : void 0; + }); +} +function resolveTripleslashReference(moduleName, containingFile) { + const basePath = getDirectoryPath(containingFile); + const referencedFileName = isRootedDiskPath(moduleName) ? moduleName : combinePaths(basePath, moduleName); + return normalizePath(referencedFileName); +} +function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, getCanonicalFileName) { + let commonPathComponents; + const failed = forEach(fileNames, (sourceFile) => { + const sourcePathComponents = getNormalizedPathComponents(sourceFile, currentDirectory); + sourcePathComponents.pop(); + if (!commonPathComponents) { + commonPathComponents = sourcePathComponents; + return; + } + const n = Math.min(commonPathComponents.length, sourcePathComponents.length); + for (let i = 0; i < n; i++) { + if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) { + if (i === 0) { + return true; + } + commonPathComponents.length = i; + break; + } + } + if (sourcePathComponents.length < commonPathComponents.length) { + commonPathComponents.length = sourcePathComponents.length; + } + }); + if (failed) { + return ""; + } + if (!commonPathComponents) { + return currentDirectory; + } + return getPathFromPathComponents(commonPathComponents); +} +function createCompilerHost(options, setParentNodes) { + return createCompilerHostWorker(options, setParentNodes); +} +function createGetSourceFile(readFile, setParentNodes) { + return (fileName, languageVersionOrOptions, onError) => { + let text; + try { + mark("beforeIORead"); + text = readFile(fileName); + mark("afterIORead"); + measure("I/O Read", "beforeIORead", "afterIORead"); + } catch (e) { + if (onError) { + onError(e.message); + } + text = ""; + } + return text !== void 0 ? createSourceFile(fileName, text, languageVersionOrOptions, setParentNodes) : void 0; + }; +} +function createWriteFileMeasuringIO(actualWriteFile, createDirectory, directoryExists) { + return (fileName, data, writeByteOrderMark, onError) => { + try { + mark("beforeIOWrite"); + writeFileEnsuringDirectories( + fileName, + data, + writeByteOrderMark, + actualWriteFile, + createDirectory, + directoryExists + ); + mark("afterIOWrite"); + measure("I/O Write", "beforeIOWrite", "afterIOWrite"); + } catch (e) { + if (onError) { + onError(e.message); + } + } + }; +} +function createCompilerHostWorker(options, setParentNodes, system = sys) { + const existingDirectories = /* @__PURE__ */ new Map(); + const getCanonicalFileName = createGetCanonicalFileName(system.useCaseSensitiveFileNames); + function directoryExists(directoryPath) { + if (existingDirectories.has(directoryPath)) { + return true; + } + if ((compilerHost.directoryExists || system.directoryExists)(directoryPath)) { + existingDirectories.set(directoryPath, true); + return true; + } + return false; + } + function getDefaultLibLocation() { + return getDirectoryPath(normalizePath(system.getExecutingFilePath())); + } + const newLine = getNewLineCharacter(options); + const realpath = system.realpath && ((path) => system.realpath(path)); + const compilerHost = { + getSourceFile: createGetSourceFile((fileName) => compilerHost.readFile(fileName), setParentNodes), + getDefaultLibLocation, + getDefaultLibFileName: (options2) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options2)), + writeFile: createWriteFileMeasuringIO( + (path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark), + (path) => (compilerHost.createDirectory || system.createDirectory)(path), + (path) => directoryExists(path) + ), + getCurrentDirectory: memoize(() => system.getCurrentDirectory()), + useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames, + getCanonicalFileName, + getNewLine: () => newLine, + fileExists: (fileName) => system.fileExists(fileName), + readFile: (fileName) => system.readFile(fileName), + trace: (s) => system.write(s + newLine), + directoryExists: (directoryName) => system.directoryExists(directoryName), + getEnvironmentVariable: (name) => system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : "", + getDirectories: (path) => system.getDirectories(path), + realpath, + readDirectory: (path, extensions, include, exclude, depth) => system.readDirectory(path, extensions, include, exclude, depth), + createDirectory: (d) => system.createDirectory(d), + createHash: maybeBind(system, system.createHash) + }; + return compilerHost; +} +function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) { + const originalReadFile = host.readFile; + const originalFileExists = host.fileExists; + const originalDirectoryExists = host.directoryExists; + const originalCreateDirectory = host.createDirectory; + const originalWriteFile = host.writeFile; + const readFileCache = /* @__PURE__ */ new Map(); + const fileExistsCache = /* @__PURE__ */ new Map(); + const directoryExistsCache = /* @__PURE__ */ new Map(); + const sourceFileCache = /* @__PURE__ */ new Map(); + const readFileWithCache = (fileName) => { + const key = toPath3(fileName); + const value = readFileCache.get(key); + if (value !== void 0) return value !== false ? value : void 0; + return setReadFileCache(key, fileName); + }; + const setReadFileCache = (key, fileName) => { + const newValue = originalReadFile.call(host, fileName); + readFileCache.set(key, newValue !== void 0 ? newValue : false); + return newValue; + }; + host.readFile = (fileName) => { + const key = toPath3(fileName); + const value = readFileCache.get(key); + if (value !== void 0) return value !== false ? value : void 0; + if (!fileExtensionIs(fileName, ".json" /* Json */) && !isBuildInfoFile(fileName)) { + return originalReadFile.call(host, fileName); + } + return setReadFileCache(key, fileName); + }; + const getSourceFileWithCache = getSourceFile ? (fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) => { + const key = toPath3(fileName); + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + const forImpliedNodeFormat = sourceFileCache.get(impliedNodeFormat); + const value = forImpliedNodeFormat == null ? void 0 : forImpliedNodeFormat.get(key); + if (value) return value; + const sourceFile = getSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile); + if (sourceFile && (isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */))) { + sourceFileCache.set(impliedNodeFormat, (forImpliedNodeFormat || /* @__PURE__ */ new Map()).set(key, sourceFile)); + } + return sourceFile; + } : void 0; + host.fileExists = (fileName) => { + const key = toPath3(fileName); + const value = fileExistsCache.get(key); + if (value !== void 0) return value; + const newValue = originalFileExists.call(host, fileName); + fileExistsCache.set(key, !!newValue); + return newValue; + }; + if (originalWriteFile) { + host.writeFile = (fileName, data, ...rest) => { + const key = toPath3(fileName); + fileExistsCache.delete(key); + const value = readFileCache.get(key); + if (value !== void 0 && value !== data) { + readFileCache.delete(key); + sourceFileCache.forEach((map2) => map2.delete(key)); + } else if (getSourceFileWithCache) { + sourceFileCache.forEach((map2) => { + const sourceFile = map2.get(key); + if (sourceFile && sourceFile.text !== data) { + map2.delete(key); + } + }); + } + originalWriteFile.call(host, fileName, data, ...rest); + }; + } + if (originalDirectoryExists) { + host.directoryExists = (directory) => { + const key = toPath3(directory); + const value = directoryExistsCache.get(key); + if (value !== void 0) return value; + const newValue = originalDirectoryExists.call(host, directory); + directoryExistsCache.set(key, !!newValue); + return newValue; + }; + if (originalCreateDirectory) { + host.createDirectory = (directory) => { + const key = toPath3(directory); + directoryExistsCache.delete(key); + originalCreateDirectory.call(host, directory); + }; + } + } + return { + originalReadFile, + originalFileExists, + originalDirectoryExists, + originalCreateDirectory, + originalWriteFile, + getSourceFileWithCache, + readFileWithCache + }; +} +function formatDiagnostic(diagnostic, host) { + const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine())}${host.getNewLine()}`; + if (diagnostic.file) { + const { line, character } = getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start); + const fileName = diagnostic.file.fileName; + const relativeFileName = convertToRelativePath(fileName, host.getCurrentDirectory(), (fileName2) => host.getCanonicalFileName(fileName2)); + return `${relativeFileName}(${line + 1},${character + 1}): ` + errorMessage; + } + return errorMessage; +} +var gutterStyleSequence = "\x1B[7m"; +var gutterSeparator = " "; +var resetEscapeSequence = "\x1B[0m"; +var ellipsis = "..."; +var halfIndent = " "; +var indent = " "; +function getCategoryFormat(category) { + switch (category) { + case 1 /* Error */: + return "\x1B[91m" /* Red */; + case 0 /* Warning */: + return "\x1B[93m" /* Yellow */; + case 2 /* Suggestion */: + return Debug.fail("Should never get an Info diagnostic on the command line."); + case 3 /* Message */: + return "\x1B[94m" /* Blue */; + } +} +function formatColorAndReset(text, formatStyle) { + return formatStyle + text + resetEscapeSequence; +} +function formatCodeSpan(file, start, length2, indent2, squiggleColor, host) { + const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start); + const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file, start + length2); + const lastLineInFile = getLineAndCharacterOfPosition(file, file.text.length).line; + const hasMoreThanFiveLines = lastLine - firstLine >= 4; + let gutterWidth = (lastLine + 1 + "").length; + if (hasMoreThanFiveLines) { + gutterWidth = Math.max(ellipsis.length, gutterWidth); + } + let context = ""; + for (let i = firstLine; i <= lastLine; i++) { + context += host.getNewLine(); + if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) { + context += indent2 + formatColorAndReset(ellipsis.padStart(gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine(); + i = lastLine - 1; + } + const lineStart = getPositionOfLineAndCharacter(file, i, 0); + const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length; + let lineContent = file.text.slice(lineStart, lineEnd); + lineContent = lineContent.trimEnd(); + lineContent = lineContent.replace(/\t/g, " "); + context += indent2 + formatColorAndReset((i + 1 + "").padStart(gutterWidth), gutterStyleSequence) + gutterSeparator; + context += lineContent + host.getNewLine(); + context += indent2 + formatColorAndReset("".padStart(gutterWidth), gutterStyleSequence) + gutterSeparator; + context += squiggleColor; + if (i === firstLine) { + const lastCharForLine = i === lastLine ? lastLineChar : void 0; + context += lineContent.slice(0, firstLineChar).replace(/\S/g, " "); + context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~"); + } else if (i === lastLine) { + context += lineContent.slice(0, lastLineChar).replace(/./g, "~"); + } else { + context += lineContent.replace(/./g, "~"); + } + context += resetEscapeSequence; + } + return context; +} +function formatLocation(file, start, host, color = formatColorAndReset) { + const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start); + const relativeFileName = host ? convertToRelativePath(file.fileName, host.getCurrentDirectory(), (fileName) => host.getCanonicalFileName(fileName)) : file.fileName; + let output = ""; + output += color(relativeFileName, "\x1B[96m" /* Cyan */); + output += ":"; + output += color(`${firstLine + 1}`, "\x1B[93m" /* Yellow */); + output += ":"; + output += color(`${firstLineChar + 1}`, "\x1B[93m" /* Yellow */); + return output; +} +function formatDiagnosticsWithColorAndContext(diagnostics, host) { + let output = ""; + for (const diagnostic of diagnostics) { + if (diagnostic.file) { + const { file, start } = diagnostic; + output += formatLocation(file, start, host); + output += " - "; + } + output += formatColorAndReset(diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category)); + output += formatColorAndReset(` TS${diagnostic.code}: `, "\x1B[90m" /* Grey */); + output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()); + if (diagnostic.file && diagnostic.code !== Diagnostics.File_appears_to_be_binary.code) { + output += host.getNewLine(); + output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, "", getCategoryFormat(diagnostic.category), host); + } + if (diagnostic.relatedInformation) { + output += host.getNewLine(); + for (const { file, start, length: length2, messageText } of diagnostic.relatedInformation) { + if (file) { + output += host.getNewLine(); + output += halfIndent + formatLocation(file, start, host); + output += formatCodeSpan(file, start, length2, indent, "\x1B[96m" /* Cyan */, host); + } + output += host.getNewLine(); + output += indent + flattenDiagnosticMessageText(messageText, host.getNewLine()); + } + } + output += host.getNewLine(); + } + return output; +} +function flattenDiagnosticMessageText(diag2, newLine, indent2 = 0) { + if (isString(diag2)) { + return diag2; + } else if (diag2 === void 0) { + return ""; + } + let result = ""; + if (indent2) { + result += newLine; + for (let i = 0; i < indent2; i++) { + result += " "; + } + } + result += diag2.messageText; + indent2++; + if (diag2.next) { + for (const kid of diag2.next) { + result += flattenDiagnosticMessageText(kid, newLine, indent2); + } + } + return result; +} +function getModeForFileReference(ref, containingFileMode) { + return (isString(ref) ? containingFileMode : ref.resolutionMode) || containingFileMode; +} +function getModeForResolutionAtIndex(file, index, compilerOptions) { + return getModeForUsageLocationWorker(file, getModuleNameStringLiteralAt(file, index), compilerOptions); +} +function isExclusivelyTypeOnlyImportOrExport(decl) { + var _a; + if (isExportDeclaration(decl)) { + return decl.isTypeOnly; + } + if ((_a = decl.importClause) == null ? void 0 : _a.isTypeOnly) { + return true; + } + return false; +} +function getModeForUsageLocation(file, usage, compilerOptions) { + return getModeForUsageLocationWorker(file, usage, compilerOptions); +} +function getModeForUsageLocationWorker(file, usage, compilerOptions) { + var _a; + if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent)) { + const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent); + if (isTypeOnly) { + const override = getResolutionModeOverride(usage.parent.attributes); + if (override) { + return override; + } + } + } + if (usage.parent.parent && isImportTypeNode(usage.parent.parent)) { + const override = getResolutionModeOverride(usage.parent.parent.attributes); + if (override) { + return override; + } + } + if (compilerOptions && getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { + return usage.parent.parent && isImportEqualsDeclaration(usage.parent.parent) || isRequireCall( + usage.parent, + /*requireStringLiteralLikeArgument*/ + false + ) ? 1 /* CommonJS */ : 99 /* ESNext */; + } + if (file.impliedNodeFormat === void 0) return void 0; + if (file.impliedNodeFormat !== 99 /* ESNext */) { + return isImportCall(walkUpParenthesizedExpressions(usage.parent)) ? 99 /* ESNext */ : 1 /* CommonJS */; + } + const exprParentParent = (_a = walkUpParenthesizedExpressions(usage.parent)) == null ? void 0 : _a.parent; + return exprParentParent && isImportEqualsDeclaration(exprParentParent) ? 1 /* CommonJS */ : 99 /* ESNext */; +} +function getResolutionModeOverride(node, grammarErrorOnNode) { + if (!node) return void 0; + if (length(node.elements) !== 1) { + grammarErrorOnNode == null ? void 0 : grammarErrorOnNode( + node, + node.token === 118 /* WithKeyword */ ? Diagnostics.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require : Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require + ); + return void 0; + } + const elem = node.elements[0]; + if (!isStringLiteralLike(elem.name)) return void 0; + if (elem.name.text !== "resolution-mode") { + grammarErrorOnNode == null ? void 0 : grammarErrorOnNode( + elem.name, + node.token === 118 /* WithKeyword */ ? Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_attributes : Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions + ); + return void 0; + } + if (!isStringLiteralLike(elem.value)) return void 0; + if (elem.value.text !== "import" && elem.value.text !== "require") { + grammarErrorOnNode == null ? void 0 : grammarErrorOnNode(elem.value, Diagnostics.resolution_mode_should_be_either_require_or_import); + return void 0; + } + return elem.value.text === "import" ? 99 /* ESNext */ : 1 /* CommonJS */; +} +var emptyResolution = { + resolvedModule: void 0, + resolvedTypeReferenceDirective: void 0 +}; +function getModuleResolutionName(literal) { + return literal.text; +} +var moduleResolutionNameAndModeGetter = { + getName: getModuleResolutionName, + getMode: (entry, file, compilerOptions) => getModeForUsageLocation(file, entry, compilerOptions) +}; +function createModuleResolutionLoader(containingFile, redirectedReference, options, host, cache) { + return { + nameAndMode: moduleResolutionNameAndModeGetter, + resolve: (moduleName, resolutionMode) => resolveModuleName( + moduleName, + containingFile, + options, + host, + cache, + redirectedReference, + resolutionMode + ) + }; +} +function getTypeReferenceResolutionName(entry) { + return !isString(entry) ? entry.fileName : entry; +} +var typeReferenceResolutionNameAndModeGetter = { + getName: getTypeReferenceResolutionName, + getMode: (entry, file) => getModeForFileReference(entry, file == null ? void 0 : file.impliedNodeFormat) +}; +function createTypeReferenceResolutionLoader(containingFile, redirectedReference, options, host, cache) { + return { + nameAndMode: typeReferenceResolutionNameAndModeGetter, + resolve: (typeRef, resoluionMode) => resolveTypeReferenceDirective( + typeRef, + containingFile, + options, + host, + redirectedReference, + cache, + resoluionMode + ) + }; +} +function loadWithModeAwareCache(entries, containingFile, redirectedReference, options, containingSourceFile, host, resolutionCache, createLoader) { + if (entries.length === 0) return emptyArray; + const resolutions = []; + const cache = /* @__PURE__ */ new Map(); + const loader = createLoader(containingFile, redirectedReference, options, host, resolutionCache); + for (const entry of entries) { + const name = loader.nameAndMode.getName(entry); + const mode = loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options); + const key = createModeAwareCacheKey(name, mode); + let result = cache.get(key); + if (!result) { + cache.set(key, result = loader.resolve(name, mode)); + } + resolutions.push(result); + } + return resolutions; +} +function forEachResolvedProjectReference(resolvedProjectReferences, cb) { + return forEachProjectReference( + /*projectReferences*/ + void 0, + resolvedProjectReferences, + (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent) + ); +} +function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) { + let seenResolvedRefs; + return worker( + projectReferences, + resolvedProjectReferences, + /*parent*/ + void 0 + ); + function worker(projectReferences2, resolvedProjectReferences2, parent) { + if (cbRef) { + const result = cbRef(projectReferences2, parent); + if (result) return result; + } + return forEach(resolvedProjectReferences2, (resolvedRef, index) => { + if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) { + return void 0; + } + const result = cbResolvedRef(resolvedRef, parent, index); + if (result || !resolvedRef) return result; + (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path); + return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef); + }); + } +} +var inferredTypesContainingFile = "__inferred type names__.ts"; +function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) { + const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; + return combinePaths(containingDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); +} +function getLibraryNameFromLibFileName(libFileName) { + const components = libFileName.split("."); + let path = components[1]; + let i = 2; + while (components[i] && components[i] !== "d") { + path += (i === 2 ? "/" : "-") + components[i]; + i++; + } + return "@typescript/lib-" + path; +} +function getLibNameFromLibReference(libReference) { + return toFileNameLowerCase(libReference.fileName); +} +function getLibFileNameFromLibReference(libReference) { + const libName = getLibNameFromLibReference(libReference); + return libMap.get(libName); +} +function isReferencedFile(reason) { + switch (reason == null ? void 0 : reason.kind) { + case 3 /* Import */: + case 4 /* ReferenceFile */: + case 5 /* TypeReferenceDirective */: + case 7 /* LibReferenceDirective */: + return true; + default: + return false; + } +} +function isReferenceFileLocation(location) { + return location.pos !== void 0; +} +function getReferencedFileLocation(program, ref) { + var _a, _b, _c, _d; + const file = Debug.checkDefined(program.getSourceFileByPath(ref.file)); + const { kind, index } = ref; + let pos, end, packageId; + switch (kind) { + case 3 /* Import */: + const importLiteral = getModuleNameStringLiteralAt(file, index); + packageId = (_b = (_a = program.getResolvedModuleFromModuleSpecifier(importLiteral, file)) == null ? void 0 : _a.resolvedModule) == null ? void 0 : _b.packageId; + if (importLiteral.pos === -1) return { file, packageId, text: importLiteral.text }; + pos = skipTrivia(file.text, importLiteral.pos); + end = importLiteral.end; + break; + case 4 /* ReferenceFile */: + ({ pos, end } = file.referencedFiles[index]); + break; + case 5 /* TypeReferenceDirective */: + ({ pos, end } = file.typeReferenceDirectives[index]); + packageId = (_d = (_c = program.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(file.typeReferenceDirectives[index], file)) == null ? void 0 : _c.resolvedTypeReferenceDirective) == null ? void 0 : _d.packageId; + break; + case 7 /* LibReferenceDirective */: + ({ pos, end } = file.libReferenceDirectives[index]); + break; + default: + return Debug.assertNever(kind); + } + return { file, pos, end, packageId }; +} +function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) { + if (!program || (hasChangedAutomaticTypeDirectiveNames == null ? void 0 : hasChangedAutomaticTypeDirectiveNames())) return false; + if (!arrayIsEqualTo(program.getRootFileNames(), rootFileNames)) return false; + let seenResolvedRefs; + if (!arrayIsEqualTo(program.getProjectReferences(), projectReferences, projectReferenceUptoDate)) return false; + if (program.getSourceFiles().some(sourceFileNotUptoDate)) return false; + const missingPaths = program.getMissingFilePaths(); + if (missingPaths && forEachEntry(missingPaths, fileExists)) return false; + const currentOptions = program.getCompilerOptions(); + if (!compareDataObjects(currentOptions, newOptions)) return false; + if (program.resolvedLibReferences && forEachEntry(program.resolvedLibReferences, (_value, libFileName) => hasInvalidatedLibResolutions(libFileName))) return false; + if (currentOptions.configFile && newOptions.configFile) return currentOptions.configFile.text === newOptions.configFile.text; + return true; + function sourceFileNotUptoDate(sourceFile) { + return !sourceFileVersionUptoDate(sourceFile) || hasInvalidatedResolutions(sourceFile.path); + } + function sourceFileVersionUptoDate(sourceFile) { + return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName); + } + function projectReferenceUptoDate(oldRef, newRef, index) { + return projectReferenceIsEqualTo(oldRef, newRef) && resolvedProjectReferenceUptoDate(program.getResolvedProjectReferences()[index], oldRef); + } + function resolvedProjectReferenceUptoDate(oldResolvedRef, oldRef) { + if (oldResolvedRef) { + if (contains(seenResolvedRefs, oldResolvedRef)) return true; + const refPath2 = resolveProjectReferencePath(oldRef); + const newParsedCommandLine = getParsedCommandLine(refPath2); + if (!newParsedCommandLine) return false; + if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile) return false; + if (!arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames)) return false; + (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef); + return !forEach(oldResolvedRef.references, (childResolvedRef, index) => !resolvedProjectReferenceUptoDate(childResolvedRef, oldResolvedRef.commandLine.projectReferences[index])); + } + const refPath = resolveProjectReferencePath(oldRef); + return !getParsedCommandLine(refPath); + } +} +function getConfigFileParsingDiagnostics(configFileParseResult) { + return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors; +} +function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) { + switch (getEmitModuleResolutionKind(options)) { + case 3 /* Node16 */: + case 99 /* NodeNext */: + return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0; + default: + return void 0; + } + function lookupFromPackageJson() { + const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options); + const packageJsonLocations = []; + state.failedLookupLocations = packageJsonLocations; + state.affectingLocations = packageJsonLocations; + const packageJsonScope = getPackageScopeForPath(fileName, state); + const impliedNodeFormat = (packageJsonScope == null ? void 0 : packageJsonScope.contents.packageJsonContent.type) === "module" ? 99 /* ESNext */ : 1 /* CommonJS */; + return { impliedNodeFormat, packageJsonLocations, packageJsonScope }; + } +} +var plainJSErrors = /* @__PURE__ */ new Set([ + // binder errors + Diagnostics.Cannot_redeclare_block_scoped_variable_0.code, + Diagnostics.A_module_cannot_have_multiple_default_exports.code, + Diagnostics.Another_export_default_is_here.code, + Diagnostics.The_first_export_default_is_here.code, + Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code, + Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code, + Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code, + Diagnostics.constructor_is_a_reserved_word.code, + Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code, + Diagnostics.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.code, + Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code, + Diagnostics.Invalid_use_of_0_in_strict_mode.code, + Diagnostics.A_label_is_not_allowed_here.code, + Diagnostics.with_statements_are_not_allowed_in_strict_mode.code, + // grammar errors + Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code, + Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code, + Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code, + Diagnostics.A_class_member_cannot_have_the_0_keyword.code, + Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code, + Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code, + Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, + Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code, + Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code, + Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code, + Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code, + Diagnostics.A_destructuring_declaration_must_have_an_initializer.code, + Diagnostics.A_get_accessor_cannot_have_parameters.code, + Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code, + Diagnostics.A_rest_element_cannot_have_a_property_name.code, + Diagnostics.A_rest_element_cannot_have_an_initializer.code, + Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code, + Diagnostics.A_rest_parameter_cannot_have_an_initializer.code, + Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code, + Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code, + Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.A_set_accessor_cannot_have_rest_parameter.code, + Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code, + Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code, + Diagnostics.An_export_declaration_cannot_have_modifiers.code, + Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code, + Diagnostics.An_import_declaration_cannot_have_modifiers.code, + Diagnostics.An_object_member_cannot_be_declared_optional.code, + Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code, + Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code, + Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code, + Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code, + Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code, + Diagnostics.Classes_can_only_extend_a_single_class.code, + Diagnostics.Classes_may_not_have_a_field_named_constructor.code, + Diagnostics.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.code, + Diagnostics.Duplicate_label_0.code, + Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code, + Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block.code, + Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code, + Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code, + Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code, + Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code, + Diagnostics.Jump_target_cannot_cross_function_boundary.code, + Diagnostics.Line_terminator_not_permitted_before_arrow.code, + Diagnostics.Modifiers_cannot_appear_here.code, + Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code, + Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code, + Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code, + Diagnostics.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.code, + Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code, + Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code, + Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code, + Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code, + Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code, + Diagnostics.Trailing_comma_not_allowed.code, + Diagnostics.Variable_declaration_list_cannot_be_empty.code, + Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code, + Diagnostics._0_expected.code, + Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code, + Diagnostics._0_list_cannot_be_empty.code, + Diagnostics._0_modifier_already_seen.code, + Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code, + Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code, + Diagnostics._0_modifier_cannot_appear_on_a_parameter.code, + Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code, + Diagnostics._0_modifier_cannot_be_used_here.code, + Diagnostics._0_modifier_must_precede_1_modifier.code, + Diagnostics._0_declarations_can_only_be_declared_inside_a_block.code, + Diagnostics._0_declarations_must_be_initialized.code, + Diagnostics.extends_clause_already_seen.code, + Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code, + Diagnostics.Class_constructor_may_not_be_a_generator.code, + Diagnostics.Class_constructor_may_not_be_an_accessor.code, + Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, + Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code, + // Type errors + Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code +]); +function shouldProgramCreateNewSourceFiles(program, newOptions) { + if (!program) return false; + return optionsHaveChanges(program.getCompilerOptions(), newOptions, sourceFileAffectingCompilerOptions); +} +function createCreateProgramOptions(rootNames, options, host, oldProgram, configFileParsingDiagnostics, typeScriptVersion2) { + return { + rootNames, + options, + host, + oldProgram, + configFileParsingDiagnostics, + typeScriptVersion: typeScriptVersion2 + }; +} +function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; + const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions; + const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2 } = createProgramOptions; + let { oldProgram } = createProgramOptions; + for (const option of commandLineOptionOfCustomType) { + if (hasProperty(options, option.name)) { + if (typeof options[option.name] === "string") { + throw new Error(`${option.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`); + } + } + } + const reportInvalidIgnoreDeprecations = memoize(() => createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations)); + let processingDefaultLibFiles; + let processingOtherFiles; + let files; + let symlinks; + let commonSourceDirectory; + let typeChecker; + let classifiableNames; + const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map(); + let fileReasons = createMultiMap(); + let filesWithReferencesProcessed; + let fileReasonsToChain; + let reasonToRelatedInfo; + const cachedBindAndCheckDiagnosticsForFile = {}; + const cachedDeclarationDiagnosticsForFile = {}; + let fileProcessingDiagnostics; + let automaticTypeDirectiveNames; + let automaticTypeDirectiveResolutions; + let resolvedLibReferences; + let resolvedLibProcessing; + let resolvedModules; + let resolvedModulesProcessing; + let resolvedTypeReferenceDirectiveNames; + let resolvedTypeReferenceDirectiveNamesProcessing; + let packageMap; + const maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === "number" ? options.maxNodeModuleJsDepth : 0; + let currentNodeModulesDepth = 0; + const modulesWithElidedImports = /* @__PURE__ */ new Map(); + const sourceFilesFoundSearchingNodeModules = /* @__PURE__ */ new Map(); + (_a = tracing) == null ? void 0 : _a.push( + tracing.Phase.Program, + "createProgram", + { configFilePath: options.configFilePath, rootDir: options.rootDir }, + /*separateBeginAndEnd*/ + true + ); + mark("beforeProgram"); + const host = createProgramOptions.host || createCompilerHost(options); + const configParsingHost = parseConfigHostFromCompilerHostLike(host); + let skipDefaultLib = options.noLib; + const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options)); + const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName()); + const programDiagnostics = createDiagnosticCollection(); + let lazyProgramDiagnosticExplainingFile = []; + const currentDirectory = host.getCurrentDirectory(); + const supportedExtensions = getSupportedExtensions(options); + const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions); + const hasEmitBlockingDiagnostics = /* @__PURE__ */ new Map(); + let _compilerOptionsObjectLiteralSyntax; + let _compilerOptionsPropertySyntax; + let moduleResolutionCache; + let actualResolveModuleNamesWorker; + const hasInvalidatedResolutions = host.hasInvalidatedResolutions || returnFalse; + if (host.resolveModuleNameLiterals) { + actualResolveModuleNamesWorker = host.resolveModuleNameLiterals.bind(host); + moduleResolutionCache = (_b = host.getModuleResolutionCache) == null ? void 0 : _b.call(host); + } else if (host.resolveModuleNames) { + actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile, reusedNames) => host.resolveModuleNames( + moduleNames.map(getModuleResolutionName), + containingFile, + reusedNames == null ? void 0 : reusedNames.map(getModuleResolutionName), + redirectedReference, + options2, + containingSourceFile + ).map( + (resolved) => resolved ? resolved.extension !== void 0 ? { resolvedModule: resolved } : ( + // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName. + { resolvedModule: { ...resolved, extension: extensionFromPath(resolved.resolvedFileName) } } + ) : emptyResolution + ); + moduleResolutionCache = (_c = host.getModuleResolutionCache) == null ? void 0 : _c.call(host); + } else { + moduleResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options); + actualResolveModuleNamesWorker = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( + moduleNames, + containingFile, + redirectedReference, + options2, + containingSourceFile, + host, + moduleResolutionCache, + createModuleResolutionLoader + ); + } + let actualResolveTypeReferenceDirectiveNamesWorker; + if (host.resolveTypeReferenceDirectiveReferences) { + actualResolveTypeReferenceDirectiveNamesWorker = host.resolveTypeReferenceDirectiveReferences.bind(host); + } else if (host.resolveTypeReferenceDirectives) { + actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => host.resolveTypeReferenceDirectives( + typeDirectiveNames.map(getTypeReferenceResolutionName), + containingFile, + redirectedReference, + options2, + containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat + ).map((resolvedTypeReferenceDirective) => ({ resolvedTypeReferenceDirective })); + } else { + const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( + currentDirectory, + getCanonicalFileName, + /*options*/ + void 0, + moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), + moduleResolutionCache == null ? void 0 : moduleResolutionCache.optionsToRedirectsKey + ); + actualResolveTypeReferenceDirectiveNamesWorker = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( + typeDirectiveNames, + containingFile, + redirectedReference, + options2, + containingSourceFile, + host, + typeReferenceDirectiveResolutionCache, + createTypeReferenceResolutionLoader + ); + } + const hasInvalidatedLibResolutions = host.hasInvalidatedLibResolutions || returnFalse; + let actualResolveLibrary; + if (host.resolveLibrary) { + actualResolveLibrary = host.resolveLibrary.bind(host); + } else { + const libraryResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache()); + actualResolveLibrary = (libraryName, resolveFrom, options2) => resolveLibrary(libraryName, resolveFrom, options2, host, libraryResolutionCache); + } + const packageIdToSourceFile = /* @__PURE__ */ new Map(); + let sourceFileToPackageName = /* @__PURE__ */ new Map(); + let redirectTargetsMap = createMultiMap(); + let usesUriStyleNodeCoreModules = false; + const filesByName = /* @__PURE__ */ new Map(); + let missingFileNames = /* @__PURE__ */ new Map(); + const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0; + let resolvedProjectReferences; + let projectReferenceRedirects; + let mapFromFileToProjectReferenceRedirects; + let mapFromToProjectReferenceRedirectSource; + const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect; + const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({ + compilerHost: host, + getSymlinkCache, + useSourceOfProjectReferenceRedirect, + toPath: toPath3, + getResolvedProjectReferences, + getSourceOfProjectReferenceRedirect, + forEachResolvedProjectReference: forEachResolvedProjectReference2 + }); + const readFile = host.readFile.bind(host); + (_e = tracing) == null ? void 0 : _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram }); + const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options); + (_f = tracing) == null ? void 0 : _f.pop(); + let structureIsReused; + (_g = tracing) == null ? void 0 : _g.push(tracing.Phase.Program, "tryReuseStructureFromOldProgram", {}); + structureIsReused = tryReuseStructureFromOldProgram(); + (_h = tracing) == null ? void 0 : _h.pop(); + if (structureIsReused !== 2 /* Completely */) { + processingDefaultLibFiles = []; + processingOtherFiles = []; + if (projectReferences) { + if (!resolvedProjectReferences) { + resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); + } + if (rootNames.length) { + resolvedProjectReferences == null ? void 0 : resolvedProjectReferences.forEach((parsedRef, index) => { + if (!parsedRef) return; + const out = parsedRef.commandLine.options.outFile; + if (useSourceOfProjectReferenceRedirect) { + if (out || getEmitModuleKind(parsedRef.commandLine.options) === 0 /* None */) { + for (const fileName of parsedRef.commandLine.fileNames) { + processProjectReferenceFile(fileName, { kind: 1 /* SourceFromProjectReference */, index }); + } + } + } else { + if (out) { + processProjectReferenceFile(changeExtension(out, ".d.ts"), { kind: 2 /* OutputFromProjectReference */, index }); + } else if (getEmitModuleKind(parsedRef.commandLine.options) === 0 /* None */) { + const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(parsedRef.commandLine, !host.useCaseSensitiveFileNames())); + for (const fileName of parsedRef.commandLine.fileNames) { + if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) { + processProjectReferenceFile(getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3), { kind: 2 /* OutputFromProjectReference */, index }); + } + } + } + } + }); + } + } + (_i = tracing) == null ? void 0 : _i.push(tracing.Phase.Program, "processRootFiles", { count: rootNames.length }); + forEach(rootNames, (name, index) => processRootFile( + name, + /*isDefaultLib*/ + false, + /*ignoreNoDefaultLib*/ + false, + { kind: 0 /* RootFile */, index } + )); + (_j = tracing) == null ? void 0 : _j.pop(); + automaticTypeDirectiveNames ?? (automaticTypeDirectiveNames = rootNames.length ? getAutomaticTypeDirectiveNames(options, host) : emptyArray); + automaticTypeDirectiveResolutions = createModeAwareCache(); + if (automaticTypeDirectiveNames.length) { + (_k = tracing) == null ? void 0 : _k.push(tracing.Phase.Program, "processTypeReferences", { count: automaticTypeDirectiveNames.length }); + const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; + const containingFilename = combinePaths(containingDirectory, inferredTypesContainingFile); + const resolutions = resolveTypeReferenceDirectiveNamesReusingOldState(automaticTypeDirectiveNames, containingFilename); + for (let i = 0; i < automaticTypeDirectiveNames.length; i++) { + automaticTypeDirectiveResolutions.set( + automaticTypeDirectiveNames[i], + /*mode*/ + void 0, + resolutions[i] + ); + processTypeReferenceDirective( + automaticTypeDirectiveNames[i], + /*mode*/ + void 0, + resolutions[i], + { + kind: 8 /* AutomaticTypeDirectiveFile */, + typeReference: automaticTypeDirectiveNames[i], + packageId: (_m = (_l = resolutions[i]) == null ? void 0 : _l.resolvedTypeReferenceDirective) == null ? void 0 : _m.packageId + } + ); + } + (_n = tracing) == null ? void 0 : _n.pop(); + } + if (rootNames.length && !skipDefaultLib) { + const defaultLibraryFileName = getDefaultLibraryFileName(); + if (!options.lib && defaultLibraryFileName) { + processRootFile( + defaultLibraryFileName, + /*isDefaultLib*/ + true, + /*ignoreNoDefaultLib*/ + false, + { kind: 6 /* LibFile */ } + ); + } else { + forEach(options.lib, (libFileName, index) => { + processRootFile( + pathForLibFile(libFileName), + /*isDefaultLib*/ + true, + /*ignoreNoDefaultLib*/ + false, + { kind: 6 /* LibFile */, index } + ); + }); + } + } + files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); + processingDefaultLibFiles = void 0; + processingOtherFiles = void 0; + filesWithReferencesProcessed = void 0; + } + if (oldProgram && host.onReleaseOldSourceFile) { + const oldSourceFiles = oldProgram.getSourceFiles(); + for (const oldSourceFile of oldSourceFiles) { + const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); + if (shouldCreateNewSourceFile || !newFile || newFile.impliedNodeFormat !== oldSourceFile.impliedNodeFormat || // old file wasn't redirect but new file is + oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path) { + host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path)); + } + } + if (!host.getParsedCommandLine) { + oldProgram.forEachResolvedProjectReference((resolvedProjectReference) => { + if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { + host.onReleaseOldSourceFile( + resolvedProjectReference.sourceFile, + oldProgram.getCompilerOptions(), + /*hasSourceFileByPath*/ + false + ); + } + }); + } + } + if (oldProgram && host.onReleaseParsedCommandLine) { + forEachProjectReference( + oldProgram.getProjectReferences(), + oldProgram.getResolvedProjectReferences(), + (oldResolvedRef, parent, index) => { + const oldReference = (parent == null ? void 0 : parent.commandLine.projectReferences[index]) || oldProgram.getProjectReferences()[index]; + const oldRefPath = resolveProjectReferencePath(oldReference); + if (!(projectReferenceRedirects == null ? void 0 : projectReferenceRedirects.has(toPath3(oldRefPath)))) { + host.onReleaseParsedCommandLine(oldRefPath, oldResolvedRef, oldProgram.getCompilerOptions()); + } + } + ); + } + oldProgram = void 0; + resolvedLibProcessing = void 0; + resolvedModulesProcessing = void 0; + resolvedTypeReferenceDirectiveNamesProcessing = void 0; + const program = { + getRootFileNames: () => rootNames, + getSourceFile, + getSourceFileByPath, + getSourceFiles: () => files, + getMissingFilePaths: () => missingFileNames, + getModuleResolutionCache: () => moduleResolutionCache, + getFilesByNameMap: () => filesByName, + getCompilerOptions: () => options, + getSyntacticDiagnostics, + getOptionsDiagnostics, + getGlobalDiagnostics, + getSemanticDiagnostics, + getCachedSemanticDiagnostics, + getSuggestionDiagnostics, + getDeclarationDiagnostics: getDeclarationDiagnostics2, + getBindAndCheckDiagnostics, + getProgramDiagnostics, + getTypeChecker, + getClassifiableNames, + getCommonSourceDirectory: getCommonSourceDirectory2, + emit, + getCurrentDirectory: () => currentDirectory, + getNodeCount: () => getTypeChecker().getNodeCount(), + getIdentifierCount: () => getTypeChecker().getIdentifierCount(), + getSymbolCount: () => getTypeChecker().getSymbolCount(), + getTypeCount: () => getTypeChecker().getTypeCount(), + getInstantiationCount: () => getTypeChecker().getInstantiationCount(), + getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(), + getFileProcessingDiagnostics: () => fileProcessingDiagnostics, + getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames, + getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions, + isSourceFileFromExternalLibrary, + isSourceFileDefaultLibrary, + getModeForUsageLocation: getModeForUsageLocation2, + getModeForResolutionAtIndex: getModeForResolutionAtIndex2, + getSourceFileFromReference, + getLibFileFromReference, + sourceFileToPackageName, + redirectTargetsMap, + usesUriStyleNodeCoreModules, + resolvedModules, + resolvedTypeReferenceDirectiveNames, + resolvedLibReferences, + getResolvedModule, + getResolvedModuleFromModuleSpecifier, + getResolvedTypeReferenceDirective, + getResolvedTypeReferenceDirectiveFromTypeReferenceDirective, + forEachResolvedModule, + forEachResolvedTypeReferenceDirective, + getCurrentPackagesMap: () => packageMap, + typesPackageExists, + packageBundlesTypes, + isEmittedFile, + getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics2, + getProjectReferences, + getResolvedProjectReferences, + getProjectReferenceRedirect, + getResolvedProjectReferenceToRedirect, + getResolvedProjectReferenceByPath, + forEachResolvedProjectReference: forEachResolvedProjectReference2, + isSourceOfProjectReferenceRedirect, + getRedirectReferenceForResolutionFromSourceOfProject, + emitBuildInfo, + fileExists, + readFile, + directoryExists, + getSymlinkCache, + realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host), + useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), + getCanonicalFileName, + getFileIncludeReasons: () => fileReasons, + structureIsReused, + writeFile: writeFile2 + }; + onProgramCreateComplete(); + verifyCompilerOptions(); + mark("afterProgram"); + measure("Program", "beforeProgram", "afterProgram"); + (_p = tracing) == null ? void 0 : _p.pop(); + return program; + function updateAndGetProgramDiagnostics() { + if (lazyProgramDiagnosticExplainingFile) { + fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => { + switch (diagnostic.kind) { + case 1 /* FilePreprocessingFileExplainingDiagnostic */: + return programDiagnostics.add( + createDiagnosticExplainingFile( + diagnostic.file && getSourceFileByPath(diagnostic.file), + diagnostic.fileProcessingReason, + diagnostic.diagnostic, + diagnostic.args || emptyArray + ) + ); + case 0 /* FilePreprocessingLibReferenceDiagnostic */: + return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic)); + case 2 /* ResolutionDiagnostics */: + return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d)); + default: + Debug.assertNever(diagnostic); + } + }); + lazyProgramDiagnosticExplainingFile.forEach( + ({ file, diagnostic, args }) => programDiagnostics.add( + createDiagnosticExplainingFile( + file, + /*fileProcessingReason*/ + void 0, + diagnostic, + args + ) + ) + ); + lazyProgramDiagnosticExplainingFile = void 0; + fileReasonsToChain = void 0; + reasonToRelatedInfo = void 0; + } + return programDiagnostics; + } + function filePreprocessingLibreferenceDiagnostic({ reason }) { + const { file, pos, end } = getReferencedFileLocation(program, reason); + const libReference = file.libReferenceDirectives[reason.index]; + const libName = getLibNameFromLibReference(libReference); + const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts"); + const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity); + return createFileDiagnostic( + file, + Debug.checkDefined(pos), + Debug.checkDefined(end) - pos, + suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0, + libName, + suggestion + ); + } + function getResolvedModule(file, moduleName, mode) { + var _a2; + return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode); + } + function getResolvedModuleFromModuleSpecifier(moduleSpecifier, sourceFile) { + sourceFile ?? (sourceFile = getSourceFileOfNode(moduleSpecifier)); + Debug.assertIsDefined(sourceFile, "`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."); + return getResolvedModule(sourceFile, moduleSpecifier.text, getModeForUsageLocation2(sourceFile, moduleSpecifier)); + } + function getResolvedTypeReferenceDirective(file, typeDirectiveName, mode) { + var _a2; + return (_a2 = resolvedTypeReferenceDirectiveNames == null ? void 0 : resolvedTypeReferenceDirectiveNames.get(file.path)) == null ? void 0 : _a2.get(typeDirectiveName, mode); + } + function getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeRef, sourceFile) { + return getResolvedTypeReferenceDirective(sourceFile, typeRef.fileName, typeRef.resolutionMode || sourceFile.impliedNodeFormat); + } + function forEachResolvedModule(callback, file) { + forEachResolution(resolvedModules, callback, file); + } + function forEachResolvedTypeReferenceDirective(callback, file) { + forEachResolution(resolvedTypeReferenceDirectiveNames, callback, file); + } + function forEachResolution(resolutionCache, callback, file) { + var _a2; + if (file) (_a2 = resolutionCache == null ? void 0 : resolutionCache.get(file.path)) == null ? void 0 : _a2.forEach((resolution, name, mode) => callback(resolution, name, mode, file.path)); + else resolutionCache == null ? void 0 : resolutionCache.forEach((resolutions, filePath) => resolutions.forEach((resolution, name, mode) => callback(resolution, name, mode, filePath))); + } + function getPackagesMap() { + if (packageMap) return packageMap; + packageMap = /* @__PURE__ */ new Map(); + forEachResolvedModule(({ resolvedModule }) => { + if (resolvedModule == null ? void 0 : resolvedModule.packageId) packageMap.set(resolvedModule.packageId.name, resolvedModule.extension === ".d.ts" /* Dts */ || !!packageMap.get(resolvedModule.packageId.name)); + }); + return packageMap; + } + function typesPackageExists(packageName) { + return getPackagesMap().has(getTypesPackageName(packageName)); + } + function packageBundlesTypes(packageName) { + return !!getPackagesMap().get(packageName); + } + function addResolutionDiagnostics(resolution) { + var _a2; + if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return; + (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push({ + kind: 2 /* ResolutionDiagnostics */, + diagnostics: resolution.resolutionDiagnostics + }); + } + function addResolutionDiagnosticsFromResolutionOrCache(containingFile, name, resolution, mode) { + if (host.resolveModuleNameLiterals || !host.resolveModuleNames) return addResolutionDiagnostics(resolution); + if (!moduleResolutionCache || isExternalModuleNameRelative(name)) return; + const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); + const containingDir = getDirectoryPath(containingFileName); + const redirectedReference = getRedirectReferenceForResolution(containingFile); + const fromCache = moduleResolutionCache.getFromNonRelativeNameCache(name, mode, containingDir, redirectedReference); + if (fromCache) addResolutionDiagnostics(fromCache); + } + function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) { + var _a2, _b2; + if (!moduleNames.length) return emptyArray; + const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); + const redirectedReference = getRedirectReferenceForResolution(containingFile); + (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveModuleNamesWorker", { containingFileName }); + mark("beforeResolveModule"); + const result = actualResolveModuleNamesWorker(moduleNames, containingFileName, redirectedReference, options, containingFile, reusedNames); + mark("afterResolveModule"); + measure("ResolveModule", "beforeResolveModule", "afterResolveModule"); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + return result; + } + function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile, reusedNames) { + var _a2, _b2; + if (!typeDirectiveNames.length) return []; + const containingSourceFile = !isString(containingFile) ? containingFile : void 0; + const containingFileName = !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile; + const redirectedReference = containingSourceFile && getRedirectReferenceForResolution(containingSourceFile); + (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveTypeReferenceDirectiveNamesWorker", { containingFileName }); + mark("beforeResolveTypeReference"); + const result = actualResolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFileName, redirectedReference, options, containingSourceFile, reusedNames); + mark("afterResolveTypeReference"); + measure("ResolveTypeReference", "beforeResolveTypeReference", "afterResolveTypeReference"); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + return result; + } + function getRedirectReferenceForResolution(file) { + const redirect = getResolvedProjectReferenceToRedirect(file.originalFileName); + if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect; + const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path); + if (resultFromDts) return resultFromDts; + if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0; + const realDeclarationPath = toPath3(host.realpath(file.originalFileName)); + return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath); + } + function getRedirectReferenceForResolutionFromSourceOfProject(filePath) { + const source = getSourceOfProjectReferenceRedirect(filePath); + if (isString(source)) return getResolvedProjectReferenceToRedirect(source); + if (!source) return void 0; + return forEachResolvedProjectReference2((resolvedRef) => { + const out = resolvedRef.commandLine.options.outFile; + if (!out) return void 0; + return toPath3(out) === filePath ? resolvedRef : void 0; + }); + } + function compareDefaultLibFiles(a, b) { + return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b)); + } + function getDefaultLibFilePriority(a) { + if (containsPath( + defaultLibraryPath, + a.fileName, + /*ignoreCase*/ + false + )) { + const basename = getBaseFileName(a.fileName); + if (basename === "lib.d.ts" || basename === "lib.es6.d.ts") return 0; + const name = removeSuffix(removePrefix(basename, "lib."), ".d.ts"); + const index = libs.indexOf(name); + if (index !== -1) return index + 1; + } + return libs.length + 2; + } + function toPath3(fileName) { + return toPath(fileName, currentDirectory, getCanonicalFileName); + } + function getCommonSourceDirectory2() { + if (commonSourceDirectory === void 0) { + const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program)); + commonSourceDirectory = getCommonSourceDirectory( + options, + () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName), + currentDirectory, + getCanonicalFileName, + (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2) + ); + } + return commonSourceDirectory; + } + function getClassifiableNames() { + var _a2; + if (!classifiableNames) { + getTypeChecker(); + classifiableNames = /* @__PURE__ */ new Set(); + for (const sourceFile of files) { + (_a2 = sourceFile.classifiableNames) == null ? void 0 : _a2.forEach((value) => classifiableNames.add(value)); + } + } + return classifiableNames; + } + function resolveModuleNamesReusingOldState(moduleNames, file) { + if (structureIsReused === 0 /* Not */ && !file.ambientModuleNames.length) { + return resolveModuleNamesWorker( + moduleNames, + file, + /*reusedNames*/ + void 0 + ); + } + let unknownModuleNames; + let result; + let reusedNames; + const predictedToResolveToAmbientModuleMarker = emptyResolution; + const oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName); + for (let i = 0; i < moduleNames.length; i++) { + const moduleName = moduleNames[i]; + if (file === oldSourceFile && !hasInvalidatedResolutions(file.path)) { + const oldResolution = oldProgram == null ? void 0 : oldProgram.getResolvedModule(file, moduleName.text, getModeForUsageLocation2(file, moduleName)); + if (oldResolution == null ? void 0 : oldResolution.resolvedModule) { + if (isTraceEnabled(options, host)) { + trace( + host, + oldResolution.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, + moduleName.text, + getNormalizedAbsolutePath(file.originalFileName, currentDirectory), + oldResolution.resolvedModule.resolvedFileName, + oldResolution.resolvedModule.packageId && packageIdToString(oldResolution.resolvedModule.packageId) + ); + } + (result ?? (result = new Array(moduleNames.length)))[i] = oldResolution; + (reusedNames ?? (reusedNames = [])).push(moduleName); + continue; + } + } + let resolvesToAmbientModuleInNonModifiedFile = false; + if (contains(file.ambientModuleNames, moduleName.text)) { + resolvesToAmbientModuleInNonModifiedFile = true; + if (isTraceEnabled(options, host)) { + trace(host, Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, moduleName.text, getNormalizedAbsolutePath(file.originalFileName, currentDirectory)); + } + } else { + resolvesToAmbientModuleInNonModifiedFile = moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName); + } + if (resolvesToAmbientModuleInNonModifiedFile) { + (result || (result = new Array(moduleNames.length)))[i] = predictedToResolveToAmbientModuleMarker; + } else { + (unknownModuleNames ?? (unknownModuleNames = [])).push(moduleName); + } + } + const resolutions = unknownModuleNames && unknownModuleNames.length ? resolveModuleNamesWorker(unknownModuleNames, file, reusedNames) : emptyArray; + if (!result) { + Debug.assert(resolutions.length === moduleNames.length); + return resolutions; + } + let j = 0; + for (let i = 0; i < result.length; i++) { + if (!result[i]) { + result[i] = resolutions[j]; + j++; + } + } + Debug.assert(j === resolutions.length); + return result; + function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName) { + var _a2; + const resolutionToFile = (_a2 = oldProgram == null ? void 0 : oldProgram.getResolvedModule(file, moduleName.text, getModeForUsageLocation2(file, moduleName))) == null ? void 0 : _a2.resolvedModule; + const resolvedFile = resolutionToFile && oldProgram.getSourceFile(resolutionToFile.resolvedFileName); + if (resolutionToFile && resolvedFile) { + return false; + } + const unmodifiedFile = ambientModuleNameToUnmodifiedFileName.get(moduleName.text); + if (!unmodifiedFile) { + return false; + } + if (isTraceEnabled(options, host)) { + trace(host, Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, moduleName.text, unmodifiedFile); + } + return true; + } + } + function resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectiveNames, containingFile) { + var _a2; + if (structureIsReused === 0 /* Not */) { + return resolveTypeReferenceDirectiveNamesWorker( + typeDirectiveNames, + containingFile, + /*reusedNames*/ + void 0 + ); + } + let unknownTypeReferenceDirectiveNames; + let result; + let reusedNames; + const containingSourceFile = !isString(containingFile) ? containingFile : void 0; + const oldSourceFile = !isString(containingFile) ? oldProgram && oldProgram.getSourceFile(containingFile.fileName) : void 0; + const canReuseResolutions = !isString(containingFile) ? containingFile === oldSourceFile && !hasInvalidatedResolutions(containingFile.path) : !hasInvalidatedResolutions(toPath3(containingFile)); + for (let i = 0; i < typeDirectiveNames.length; i++) { + const entry = typeDirectiveNames[i]; + if (canReuseResolutions) { + const typeDirectiveName = getTypeReferenceResolutionName(entry); + const mode = getModeForFileReference(entry, containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat); + const oldResolution = !isString(containingFile) ? oldProgram == null ? void 0 : oldProgram.getResolvedTypeReferenceDirective(containingFile, typeDirectiveName, mode) : (_a2 = oldProgram == null ? void 0 : oldProgram.getAutomaticTypeDirectiveResolutions()) == null ? void 0 : _a2.get(typeDirectiveName, mode); + if (oldResolution == null ? void 0 : oldResolution.resolvedTypeReferenceDirective) { + if (isTraceEnabled(options, host)) { + trace( + host, + oldResolution.resolvedTypeReferenceDirective.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2, + typeDirectiveName, + !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile, + oldResolution.resolvedTypeReferenceDirective.resolvedFileName, + oldResolution.resolvedTypeReferenceDirective.packageId && packageIdToString(oldResolution.resolvedTypeReferenceDirective.packageId) + ); + } + (result ?? (result = new Array(typeDirectiveNames.length)))[i] = oldResolution; + (reusedNames ?? (reusedNames = [])).push(entry); + continue; + } + } + (unknownTypeReferenceDirectiveNames ?? (unknownTypeReferenceDirectiveNames = [])).push(entry); + } + if (!unknownTypeReferenceDirectiveNames) return result || emptyArray; + const resolutions = resolveTypeReferenceDirectiveNamesWorker( + unknownTypeReferenceDirectiveNames, + containingFile, + reusedNames + ); + if (!result) { + Debug.assert(resolutions.length === typeDirectiveNames.length); + return resolutions; + } + let j = 0; + for (let i = 0; i < result.length; i++) { + if (!result[i]) { + result[i] = resolutions[j]; + j++; + } + } + Debug.assert(j === resolutions.length); + return result; + } + function canReuseProjectReferences() { + return !forEachProjectReference( + oldProgram.getProjectReferences(), + oldProgram.getResolvedProjectReferences(), + (oldResolvedRef, parent, index) => { + const newRef = (parent ? parent.commandLine.projectReferences : projectReferences)[index]; + const newResolvedRef = parseProjectReferenceConfigFile(newRef); + if (oldResolvedRef) { + return !newResolvedRef || newResolvedRef.sourceFile !== oldResolvedRef.sourceFile || !arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames); + } else { + return newResolvedRef !== void 0; + } + }, + (oldProjectReferences, parent) => { + const newReferences = parent ? getResolvedProjectReferenceByPath(parent.sourceFile.path).commandLine.projectReferences : projectReferences; + return !arrayIsEqualTo(oldProjectReferences, newReferences, projectReferenceIsEqualTo); + } + ); + } + function tryReuseStructureFromOldProgram() { + var _a2; + if (!oldProgram) { + return 0 /* Not */; + } + const oldOptions = oldProgram.getCompilerOptions(); + if (changesAffectModuleResolution(oldOptions, options)) { + return 0 /* Not */; + } + const oldRootNames = oldProgram.getRootFileNames(); + if (!arrayIsEqualTo(oldRootNames, rootNames)) { + return 0 /* Not */; + } + if (!canReuseProjectReferences()) { + return 0 /* Not */; + } + if (projectReferences) { + resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile); + } + const newSourceFiles = []; + const modifiedSourceFiles = []; + structureIsReused = 2 /* Completely */; + if (forEachEntry(oldProgram.getMissingFilePaths(), (missingFileName) => host.fileExists(missingFileName))) { + return 0 /* Not */; + } + const oldSourceFiles = oldProgram.getSourceFiles(); + let SeenPackageName; + ((SeenPackageName2) => { + SeenPackageName2[SeenPackageName2["Exists"] = 0] = "Exists"; + SeenPackageName2[SeenPackageName2["Modified"] = 1] = "Modified"; + })(SeenPackageName || (SeenPackageName = {})); + const seenPackageNames = /* @__PURE__ */ new Map(); + for (const oldSourceFile of oldSourceFiles) { + const sourceFileOptions = getCreateSourceFileOptions(oldSourceFile.fileName, moduleResolutionCache, host, options); + let newSourceFile = host.getSourceFileByPath ? host.getSourceFileByPath( + oldSourceFile.fileName, + oldSourceFile.resolvedPath, + sourceFileOptions, + /*onError*/ + void 0, + shouldCreateNewSourceFile + ) : host.getSourceFile( + oldSourceFile.fileName, + sourceFileOptions, + /*onError*/ + void 0, + shouldCreateNewSourceFile + ); + if (!newSourceFile) { + return 0 /* Not */; + } + newSourceFile.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; + newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope; + Debug.assert(!newSourceFile.redirectInfo, "Host should not return a redirect source file from `getSourceFile`"); + let fileChanged; + if (oldSourceFile.redirectInfo) { + if (newSourceFile !== oldSourceFile.redirectInfo.unredirected) { + return 0 /* Not */; + } + fileChanged = false; + newSourceFile = oldSourceFile; + } else if (oldProgram.redirectTargetsMap.has(oldSourceFile.path)) { + if (newSourceFile !== oldSourceFile) { + return 0 /* Not */; + } + fileChanged = false; + } else { + fileChanged = newSourceFile !== oldSourceFile; + } + newSourceFile.path = oldSourceFile.path; + newSourceFile.originalFileName = oldSourceFile.originalFileName; + newSourceFile.resolvedPath = oldSourceFile.resolvedPath; + newSourceFile.fileName = oldSourceFile.fileName; + const packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path); + if (packageName !== void 0) { + const prevKind = seenPackageNames.get(packageName); + const newKind = fileChanged ? 1 /* Modified */ : 0 /* Exists */; + if (prevKind !== void 0 && newKind === 1 /* Modified */ || prevKind === 1 /* Modified */) { + return 0 /* Not */; + } + seenPackageNames.set(packageName, newKind); + } + if (fileChanged) { + if (oldSourceFile.impliedNodeFormat !== newSourceFile.impliedNodeFormat) { + structureIsReused = 1 /* SafeModules */; + } else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) { + structureIsReused = 1 /* SafeModules */; + } else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) { + structureIsReused = 1 /* SafeModules */; + } else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) { + structureIsReused = 1 /* SafeModules */; + } else { + collectExternalModuleReferences(newSourceFile); + if (!arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) { + structureIsReused = 1 /* SafeModules */; + } else if (!arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) { + structureIsReused = 1 /* SafeModules */; + } else if ((oldSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 12582912 /* PermanentlySetIncrementalFlags */)) { + structureIsReused = 1 /* SafeModules */; + } else if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) { + structureIsReused = 1 /* SafeModules */; + } + } + modifiedSourceFiles.push(newSourceFile); + } else if (hasInvalidatedResolutions(oldSourceFile.path)) { + structureIsReused = 1 /* SafeModules */; + modifiedSourceFiles.push(newSourceFile); + } else { + for (const moduleName of oldSourceFile.ambientModuleNames) { + ambientModuleNameToUnmodifiedFileName.set(moduleName, oldSourceFile.fileName); + } + } + newSourceFiles.push(newSourceFile); + } + if (structureIsReused !== 2 /* Completely */) { + return structureIsReused; + } + for (const newSourceFile of modifiedSourceFiles) { + const moduleNames = getModuleNames(newSourceFile); + const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile); + (resolvedModulesProcessing ?? (resolvedModulesProcessing = /* @__PURE__ */ new Map())).set(newSourceFile.path, resolutions); + const resolutionsChanged = hasChangesInResolutions( + moduleNames, + resolutions, + (name) => oldProgram.getResolvedModule(newSourceFile, name.text, getModeForUsageLocation2(newSourceFile, name)), + moduleResolutionIsEqualTo + ); + if (resolutionsChanged) structureIsReused = 1 /* SafeModules */; + const typesReferenceDirectives = newSourceFile.typeReferenceDirectives; + const typeReferenceResolutions = resolveTypeReferenceDirectiveNamesReusingOldState(typesReferenceDirectives, newSourceFile); + (resolvedTypeReferenceDirectiveNamesProcessing ?? (resolvedTypeReferenceDirectiveNamesProcessing = /* @__PURE__ */ new Map())).set(newSourceFile.path, typeReferenceResolutions); + const typeReferenceResolutionsChanged = hasChangesInResolutions( + typesReferenceDirectives, + typeReferenceResolutions, + (name) => oldProgram.getResolvedTypeReferenceDirective(newSourceFile, getTypeReferenceResolutionName(name), getModeForFileReference(name, newSourceFile.impliedNodeFormat)), + typeDirectiveIsEqualTo + ); + if (typeReferenceResolutionsChanged) structureIsReused = 1 /* SafeModules */; + } + if (structureIsReused !== 2 /* Completely */) { + return structureIsReused; + } + if (changesAffectingProgramStructure(oldOptions, options)) { + return 1 /* SafeModules */; + } + if (oldProgram.resolvedLibReferences && forEachEntry(oldProgram.resolvedLibReferences, (resolution, libFileName) => pathForLibFileWorker(libFileName).actual !== resolution.actual)) { + return 1 /* SafeModules */; + } + if (host.hasChangedAutomaticTypeDirectiveNames) { + if (host.hasChangedAutomaticTypeDirectiveNames()) return 1 /* SafeModules */; + } else { + automaticTypeDirectiveNames = getAutomaticTypeDirectiveNames(options, host); + if (!arrayIsEqualTo(oldProgram.getAutomaticTypeDirectiveNames(), automaticTypeDirectiveNames)) return 1 /* SafeModules */; + } + missingFileNames = oldProgram.getMissingFilePaths(); + Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length); + for (const newSourceFile of newSourceFiles) { + filesByName.set(newSourceFile.path, newSourceFile); + } + const oldFilesByNameMap = oldProgram.getFilesByNameMap(); + oldFilesByNameMap.forEach((oldFile, path) => { + if (!oldFile) { + filesByName.set(path, oldFile); + return; + } + if (oldFile.path === path) { + if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) { + sourceFilesFoundSearchingNodeModules.set(oldFile.path, true); + } + return; + } + filesByName.set(path, filesByName.get(oldFile.path)); + }); + files = newSourceFiles; + fileReasons = oldProgram.getFileIncludeReasons(); + fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics(); + automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames(); + automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions(); + sourceFileToPackageName = oldProgram.sourceFileToPackageName; + redirectTargetsMap = oldProgram.redirectTargetsMap; + usesUriStyleNodeCoreModules = oldProgram.usesUriStyleNodeCoreModules; + resolvedModules = oldProgram.resolvedModules; + resolvedTypeReferenceDirectiveNames = oldProgram.resolvedTypeReferenceDirectiveNames; + resolvedLibReferences = oldProgram.resolvedLibReferences; + packageMap = oldProgram.getCurrentPackagesMap(); + return 2 /* Completely */; + } + function getEmitHost(writeFileCallback) { + return { + getCanonicalFileName, + getCommonSourceDirectory: program.getCommonSourceDirectory, + getCompilerOptions: program.getCompilerOptions, + getCurrentDirectory: () => currentDirectory, + getSourceFile: program.getSourceFile, + getSourceFileByPath: program.getSourceFileByPath, + getSourceFiles: program.getSourceFiles, + isSourceFileFromExternalLibrary, + getResolvedProjectReferenceToRedirect, + getProjectReferenceRedirect, + isSourceOfProjectReferenceRedirect, + getSymlinkCache, + writeFile: writeFileCallback || writeFile2, + isEmitBlocked, + readFile: (f) => host.readFile(f), + fileExists: (f) => { + const path = toPath3(f); + if (getSourceFileByPath(path)) return true; + if (missingFileNames.has(path)) return false; + return host.fileExists(f); + }, + realpath: maybeBind(host, host.realpath), + useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), + getBuildInfo: () => { + var _a2; + return (_a2 = program.getBuildInfo) == null ? void 0 : _a2.call(program); + }, + getSourceFileFromReference: (file, ref) => program.getSourceFileFromReference(file, ref), + redirectTargetsMap, + getFileIncludeReasons: program.getFileIncludeReasons, + createHash: maybeBind(host, host.createHash), + getModuleResolutionCache: () => program.getModuleResolutionCache(), + trace: maybeBind(host, host.trace) + }; + } + function writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data) { + host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); + } + function emitBuildInfo(writeFileCallback) { + var _a2, _b2; + Debug.assert(!options.outFile); + (_a2 = tracing) == null ? void 0 : _a2.push( + tracing.Phase.Emit, + "emitBuildInfo", + {}, + /*separateBeginAndEnd*/ + true + ); + mark("beforeEmit"); + const emitResult = emitFiles( + notImplementedResolver, + getEmitHost(writeFileCallback), + /*targetSourceFile*/ + void 0, + /*transformers*/ + noTransformers, + /*emitOnly*/ + false, + /*onlyBuildInfo*/ + true + ); + mark("afterEmit"); + measure("Emit", "beforeEmit", "afterEmit"); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + return emitResult; + } + function getResolvedProjectReferences() { + return resolvedProjectReferences; + } + function getProjectReferences() { + return projectReferences; + } + function isSourceFileFromExternalLibrary(file) { + return !!sourceFilesFoundSearchingNodeModules.get(file.path); + } + function isSourceFileDefaultLibrary(file) { + if (!file.isDeclarationFile) { + return false; + } + if (file.hasNoDefaultLib) { + return true; + } + if (!options.noLib) { + return false; + } + const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive; + if (!options.lib) { + return equalityComparer(file.fileName, getDefaultLibraryFileName()); + } else { + return some(options.lib, (libFileName) => equalityComparer(file.fileName, resolvedLibReferences.get(libFileName).actual)); + } + } + function getTypeChecker() { + return typeChecker || (typeChecker = createTypeChecker(program)); + } + function emit(sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit) { + var _a2, _b2; + (_a2 = tracing) == null ? void 0 : _a2.push( + tracing.Phase.Emit, + "emit", + { path: sourceFile == null ? void 0 : sourceFile.path }, + /*separateBeginAndEnd*/ + true + ); + const result = runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit)); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + return result; + } + function isEmitBlocked(emitFileName) { + return hasEmitBlockingDiagnostics.has(toPath3(emitFileName)); + } + function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit) { + if (!forceDtsEmit) { + const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken); + if (result) return result; + } + const typeChecker2 = getTypeChecker(); + const emitResolver = typeChecker2.getEmitResolver( + options.outFile ? void 0 : sourceFile, + cancellationToken, + emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) + ); + mark("beforeEmit"); + const emitResult = typeChecker2.runWithCancellationToken( + cancellationToken, + () => emitFiles( + emitResolver, + getEmitHost(writeFileCallback), + sourceFile, + getTransformers(options, customTransformers, emitOnly), + emitOnly, + /*onlyBuildInfo*/ + false, + forceDtsEmit + ) + ); + mark("afterEmit"); + measure("Emit", "beforeEmit", "afterEmit"); + return emitResult; + } + function getSourceFile(fileName) { + return getSourceFileByPath(toPath3(fileName)); + } + function getSourceFileByPath(path) { + return filesByName.get(path) || void 0; + } + function getDiagnosticsHelper(sourceFile, getDiagnostics, cancellationToken) { + if (sourceFile) { + return sortAndDeduplicateDiagnostics(getDiagnostics(sourceFile, cancellationToken)); + } + return sortAndDeduplicateDiagnostics(flatMap(program.getSourceFiles(), (sourceFile2) => { + if (cancellationToken) { + cancellationToken.throwIfCancellationRequested(); + } + return getDiagnostics(sourceFile2, cancellationToken); + })); + } + function getSyntacticDiagnostics(sourceFile, cancellationToken) { + return getDiagnosticsHelper(sourceFile, getSyntacticDiagnosticsForFile, cancellationToken); + } + function getSemanticDiagnostics(sourceFile, cancellationToken) { + return getDiagnosticsHelper(sourceFile, getSemanticDiagnosticsForFile, cancellationToken); + } + function getCachedSemanticDiagnostics(sourceFile) { + var _a2; + return sourceFile ? (_a2 = cachedBindAndCheckDiagnosticsForFile.perFile) == null ? void 0 : _a2.get(sourceFile.path) : cachedBindAndCheckDiagnosticsForFile.allDiagnostics; + } + function getBindAndCheckDiagnostics(sourceFile, cancellationToken) { + return getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken); + } + function getProgramDiagnostics(sourceFile) { + var _a2; + if (skipTypeChecking(sourceFile, options, program)) { + return emptyArray; + } + const programDiagnosticsInFile = updateAndGetProgramDiagnostics().getDiagnostics(sourceFile.fileName); + if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { + return programDiagnosticsInFile; + } + return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, programDiagnosticsInFile).diagnostics; + } + function getDeclarationDiagnostics2(sourceFile, cancellationToken) { + const options2 = program.getCompilerOptions(); + if (!sourceFile || options2.outFile) { + return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); + } else { + return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken); + } + } + function getSyntacticDiagnosticsForFile(sourceFile) { + if (isSourceFileJS(sourceFile)) { + if (!sourceFile.additionalSyntacticDiagnostics) { + sourceFile.additionalSyntacticDiagnostics = getJSSyntacticDiagnosticsForFile(sourceFile); + } + return concatenate(sourceFile.additionalSyntacticDiagnostics, sourceFile.parseDiagnostics); + } + return sourceFile.parseDiagnostics; + } + function runWithCancellationToken(func) { + try { + return func(); + } catch (e) { + if (e instanceof OperationCanceledException) { + typeChecker = void 0; + } + throw e; + } + } + function getSemanticDiagnosticsForFile(sourceFile, cancellationToken) { + return concatenate( + filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken), options), + getProgramDiagnostics(sourceFile) + ); + } + function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken) { + return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedBindAndCheckDiagnosticsForFile, getBindAndCheckDiagnosticsForFileNoCache); + } + function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) { + return runWithCancellationToken(() => { + if (skipTypeChecking(sourceFile, options, program)) { + return emptyArray; + } + const typeChecker2 = getTypeChecker(); + Debug.assert(!!sourceFile.bindDiagnostics); + const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; + const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options); + const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); + let bindDiagnostics = sourceFile.bindDiagnostics; + let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken); + if (isPlainJs) { + bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code)); + checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code)); + } + return getMergedBindAndCheckDiagnostics(sourceFile, !isPlainJs, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : void 0); + }); + } + function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, ...allDiagnostics) { + var _a2; + const flatDiagnostics = flatten(allDiagnostics); + if (!includeBindAndCheckDiagnostics || !((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { + return flatDiagnostics; + } + const { diagnostics, directives } = getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics); + for (const errorExpectation of directives.getUnusedExpectations()) { + diagnostics.push(createDiagnosticForRange(sourceFile, errorExpectation.range, Diagnostics.Unused_ts_expect_error_directive)); + } + return diagnostics; + } + function getDiagnosticsWithPrecedingDirectives(sourceFile, commentDirectives, flatDiagnostics) { + const directives = createCommentDirectivesMap(sourceFile, commentDirectives); + const diagnostics = flatDiagnostics.filter((diagnostic) => markPrecedingCommentDirectiveLine(diagnostic, directives) === -1); + return { diagnostics, directives }; + } + function getSuggestionDiagnostics(sourceFile, cancellationToken) { + return runWithCancellationToken(() => { + return getTypeChecker().getSuggestionDiagnostics(sourceFile, cancellationToken); + }); + } + function markPrecedingCommentDirectiveLine(diagnostic, directives) { + const { file, start } = diagnostic; + if (!file) { + return -1; + } + const lineStarts = getLineStarts(file); + let line = computeLineAndCharacterOfPosition(lineStarts, start).line - 1; + while (line >= 0) { + if (directives.markUsed(line)) { + return line; + } + const lineText = file.text.slice(lineStarts[line], lineStarts[line + 1]).trim(); + if (lineText !== "" && !/^(\s*)\/\/(.*)$/.test(lineText)) { + return -1; + } + line--; + } + return -1; + } + function getJSSyntacticDiagnosticsForFile(sourceFile) { + return runWithCancellationToken(() => { + const diagnostics = []; + walk(sourceFile, sourceFile); + forEachChildRecursively(sourceFile, walk, walkArray); + return diagnostics; + function walk(node, parent) { + switch (parent.kind) { + case 169 /* Parameter */: + case 172 /* PropertyDeclaration */: + case 174 /* MethodDeclaration */: + if (parent.questionToken === node) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); + return "skip"; + } + case 173 /* MethodSignature */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + case 260 /* VariableDeclaration */: + if (parent.type === node) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + } + switch (node.kind) { + case 273 /* ImportClause */: + if (node.isTypeOnly) { + diagnostics.push(createDiagnosticForNode2(parent, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "import type")); + return "skip"; + } + break; + case 278 /* ExportDeclaration */: + if (node.isTypeOnly) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, "export type")); + return "skip"; + } + break; + case 276 /* ImportSpecifier */: + case 281 /* ExportSpecifier */: + if (node.isTypeOnly) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, isImportSpecifier(node) ? "import...type" : "export...type")); + return "skip"; + } + break; + case 271 /* ImportEqualsDeclaration */: + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.import_can_only_be_used_in_TypeScript_files)); + return "skip"; + case 277 /* ExportAssignment */: + if (node.isExportEquals) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.export_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + break; + case 298 /* HeritageClause */: + const heritageClause = node; + if (heritageClause.token === 119 /* ImplementsKeyword */) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + break; + case 264 /* InterfaceDeclaration */: + const interfaceKeyword = tokenToString(120 /* InterfaceKeyword */); + Debug.assertIsDefined(interfaceKeyword); + diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword)); + return "skip"; + case 267 /* ModuleDeclaration */: + const moduleKeyword = node.flags & 32 /* Namespace */ ? tokenToString(145 /* NamespaceKeyword */) : tokenToString(144 /* ModuleKeyword */); + Debug.assertIsDefined(moduleKeyword); + diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword)); + return "skip"; + case 265 /* TypeAliasDeclaration */: + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)); + return "skip"; + case 176 /* Constructor */: + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + if (!node.body) { + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Signature_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + return; + case 266 /* EnumDeclaration */: + const enumKeyword = Debug.checkDefined(tokenToString(94 /* EnumKeyword */)); + diagnostics.push(createDiagnosticForNode2(node, Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword)); + return "skip"; + case 235 /* NonNullExpression */: + diagnostics.push(createDiagnosticForNode2(node, Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)); + return "skip"; + case 234 /* AsExpression */: + diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)); + return "skip"; + case 238 /* SatisfiesExpression */: + diagnostics.push(createDiagnosticForNode2(node.type, Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)); + return "skip"; + case 216 /* TypeAssertionExpression */: + Debug.fail(); + } + } + function walkArray(nodes, parent) { + if (canHaveIllegalDecorators(parent)) { + const decorator = find(parent.modifiers, isDecorator); + if (decorator) { + diagnostics.push(createDiagnosticForNode2(decorator, Diagnostics.Decorators_are_not_valid_here)); + } + } else if (canHaveDecorators(parent) && parent.modifiers) { + const decoratorIndex = findIndex(parent.modifiers, isDecorator); + if (decoratorIndex >= 0) { + if (isParameter(parent) && !options.experimentalDecorators) { + diagnostics.push(createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here)); + } else if (isClassDeclaration(parent)) { + const exportIndex = findIndex(parent.modifiers, isExportModifier); + if (exportIndex >= 0) { + const defaultIndex = findIndex(parent.modifiers, isDefaultModifier); + if (decoratorIndex > exportIndex && defaultIndex >= 0 && decoratorIndex < defaultIndex) { + diagnostics.push(createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here)); + } else if (exportIndex >= 0 && decoratorIndex < exportIndex) { + const trailingDecoratorIndex = findIndex(parent.modifiers, isDecorator, exportIndex); + if (trailingDecoratorIndex >= 0) { + diagnostics.push(addRelatedInfo( + createDiagnosticForNode2(parent.modifiers[trailingDecoratorIndex], Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export), + createDiagnosticForNode2(parent.modifiers[decoratorIndex], Diagnostics.Decorator_used_before_export_here) + )); + } + } + } + } + } + } + switch (parent.kind) { + case 263 /* ClassDeclaration */: + case 231 /* ClassExpression */: + case 174 /* MethodDeclaration */: + case 176 /* Constructor */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 218 /* FunctionExpression */: + case 262 /* FunctionDeclaration */: + case 219 /* ArrowFunction */: + if (nodes === parent.typeParameters) { + diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + case 243 /* VariableStatement */: + if (nodes === parent.modifiers) { + checkModifiers(parent.modifiers, parent.kind === 243 /* VariableStatement */); + return "skip"; + } + break; + case 172 /* PropertyDeclaration */: + if (nodes === parent.modifiers) { + for (const modifier of nodes) { + if (isModifier(modifier) && modifier.kind !== 126 /* StaticKeyword */ && modifier.kind !== 129 /* AccessorKeyword */) { + diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); + } + } + return "skip"; + } + break; + case 169 /* Parameter */: + if (nodes === parent.modifiers && some(nodes, isModifier)) { + diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + break; + case 213 /* CallExpression */: + case 214 /* NewExpression */: + case 233 /* ExpressionWithTypeArguments */: + case 285 /* JsxSelfClosingElement */: + case 286 /* JsxOpeningElement */: + case 215 /* TaggedTemplateExpression */: + if (nodes === parent.typeArguments) { + diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)); + return "skip"; + } + break; + } + } + function checkModifiers(modifiers, isConstValid) { + for (const modifier of modifiers) { + switch (modifier.kind) { + case 87 /* ConstKeyword */: + if (isConstValid) { + continue; + } + case 125 /* PublicKeyword */: + case 123 /* PrivateKeyword */: + case 124 /* ProtectedKeyword */: + case 148 /* ReadonlyKeyword */: + case 138 /* DeclareKeyword */: + case 128 /* AbstractKeyword */: + case 164 /* OverrideKeyword */: + case 103 /* InKeyword */: + case 147 /* OutKeyword */: + diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); + break; + case 126 /* StaticKeyword */: + case 95 /* ExportKeyword */: + case 90 /* DefaultKeyword */: + case 129 /* AccessorKeyword */: + } + } + } + function createDiagnosticForNodeArray2(nodes, message, ...args) { + const start = nodes.pos; + return createFileDiagnostic(sourceFile, start, nodes.end - start, message, ...args); + } + function createDiagnosticForNode2(node, message, ...args) { + return createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args); + } + }); + } + function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) { + return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedDeclarationDiagnosticsForFile, getDeclarationDiagnosticsForFileNoCache); + } + function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) { + return runWithCancellationToken(() => { + const resolver = getTypeChecker().getEmitResolver(sourceFile, cancellationToken); + return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray; + }); + } + function getAndCacheDiagnostics(sourceFile, cancellationToken, cache, getDiagnostics) { + var _a2; + const cachedResult = sourceFile ? (_a2 = cache.perFile) == null ? void 0 : _a2.get(sourceFile.path) : cache.allDiagnostics; + if (cachedResult) { + return cachedResult; + } + const result = getDiagnostics(sourceFile, cancellationToken); + if (sourceFile) { + (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result); + } else { + cache.allDiagnostics = result; + } + return result; + } + function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) { + return sourceFile.isDeclarationFile ? [] : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); + } + function getOptionsDiagnostics() { + return sortAndDeduplicateDiagnostics(concatenate( + updateAndGetProgramDiagnostics().getGlobalDiagnostics(), + getOptionsDiagnosticsOfConfigFile() + )); + } + function getOptionsDiagnosticsOfConfigFile() { + if (!options.configFile) return emptyArray; + let diagnostics = updateAndGetProgramDiagnostics().getDiagnostics(options.configFile.fileName); + forEachResolvedProjectReference2((resolvedRef) => { + diagnostics = concatenate(diagnostics, updateAndGetProgramDiagnostics().getDiagnostics(resolvedRef.sourceFile.fileName)); + }); + return diagnostics; + } + function getGlobalDiagnostics() { + return rootNames.length ? sortAndDeduplicateDiagnostics(getTypeChecker().getGlobalDiagnostics().slice()) : emptyArray; + } + function getConfigFileParsingDiagnostics2() { + return configFileParsingDiagnostics || emptyArray; + } + function processRootFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason) { + processSourceFile( + normalizePath(fileName), + isDefaultLib, + ignoreNoDefaultLib, + /*packageId*/ + void 0, + reason + ); + } + function fileReferenceIsEqualTo(a, b) { + return a.fileName === b.fileName; + } + function moduleNameIsEqualTo(a, b) { + return a.kind === 80 /* Identifier */ ? b.kind === 80 /* Identifier */ && a.escapedText === b.escapedText : b.kind === 11 /* StringLiteral */ && a.text === b.text; + } + function createSyntheticImport(text, file) { + const externalHelpersModuleReference = factory.createStringLiteral(text); + const importDecl = factory.createImportDeclaration( + /*modifiers*/ + void 0, + /*importClause*/ + void 0, + externalHelpersModuleReference + ); + addInternalEmitFlags(importDecl, 2 /* NeverApplyImportHelper */); + setParent(externalHelpersModuleReference, importDecl); + setParent(importDecl, file); + externalHelpersModuleReference.flags &= ~16 /* Synthesized */; + importDecl.flags &= ~16 /* Synthesized */; + return externalHelpersModuleReference; + } + function collectExternalModuleReferences(file) { + if (file.imports) { + return; + } + const isJavaScriptFile = isSourceFileJS(file); + const isExternalModuleFile = isExternalModule(file); + let imports; + let moduleAugmentations; + let ambientModules; + if (isJavaScriptFile || !file.isDeclarationFile && (getIsolatedModules(options) || isExternalModule(file))) { + if (options.importHelpers) { + imports = [createSyntheticImport(externalHelpersModuleNameText, file)]; + } + const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options); + if (jsxImport) { + (imports || (imports = [])).push(createSyntheticImport(jsxImport, file)); + } + } + for (const node of file.statements) { + collectModuleReferences( + node, + /*inAmbientModule*/ + false + ); + } + if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || isJavaScriptFile) { + collectDynamicImportOrRequireOrJsDocImportCalls(file); + } + file.imports = imports || emptyArray; + file.moduleAugmentations = moduleAugmentations || emptyArray; + file.ambientModuleNames = ambientModules || emptyArray; + return; + function collectModuleReferences(node, inAmbientModule) { + if (isAnyImportOrReExport(node)) { + const moduleNameExpr = getExternalModuleName(node); + if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text && (!inAmbientModule || !isExternalModuleNameRelative(moduleNameExpr.text))) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, moduleNameExpr); + if (!usesUriStyleNodeCoreModules && currentNodeModulesDepth === 0 && !file.isDeclarationFile) { + usesUriStyleNodeCoreModules = startsWith(moduleNameExpr.text, "node:"); + } + } + } else if (isModuleDeclaration(node)) { + if (isAmbientModule(node) && (inAmbientModule || hasSyntacticModifier(node, 128 /* Ambient */) || file.isDeclarationFile)) { + node.name.parent = node; + const nameText = getTextOfIdentifierOrLiteral(node.name); + if (isExternalModuleFile || inAmbientModule && !isExternalModuleNameRelative(nameText)) { + (moduleAugmentations || (moduleAugmentations = [])).push(node.name); + } else if (!inAmbientModule) { + if (file.isDeclarationFile) { + (ambientModules || (ambientModules = [])).push(nameText); + } + const body = node.body; + if (body) { + for (const statement of body.statements) { + collectModuleReferences( + statement, + /*inAmbientModule*/ + true + ); + } + } + } + } + } + } + function collectDynamicImportOrRequireOrJsDocImportCalls(file2) { + const r = /import|require/g; + while (r.exec(file2.text) !== null) { + const node = getNodeAtPosition(file2, r.lastIndex); + if (isJavaScriptFile && isRequireCall( + node, + /*requireStringLiteralLikeArgument*/ + true + )) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.arguments[0]); + } else if (isImportCall(node) && node.arguments.length >= 1 && isStringLiteralLike(node.arguments[0])) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.arguments[0]); + } else if (isLiteralImportTypeNode(node)) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.argument.literal); + } else if (isJavaScriptFile && isJSDocImportTag(node)) { + const moduleNameExpr = getExternalModuleName(node); + if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, moduleNameExpr); + } + } + } + } + function getNodeAtPosition(sourceFile, position) { + let current = sourceFile; + const getContainingChild = (child) => { + if (child.pos <= position && (position < child.end || position === child.end && child.kind === 1 /* EndOfFileToken */)) { + return child; + } + }; + while (true) { + const child = isJavaScriptFile && hasJSDocNodes(current) && forEach(current.jsDoc, getContainingChild) || forEachChild(current, getContainingChild); + if (!child) { + return current; + } + current = child; + } + } + } + function getLibFileFromReference(ref) { + var _a2; + const libFileName = getLibFileNameFromLibReference(ref); + const actualFileName = libFileName && ((_a2 = resolvedLibReferences == null ? void 0 : resolvedLibReferences.get(libFileName)) == null ? void 0 : _a2.actual); + return actualFileName !== void 0 ? getSourceFile(actualFileName) : void 0; + } + function getSourceFileFromReference(referencingFile, ref) { + return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile); + } + function getSourceFileFromReferenceWorker(fileName, getSourceFile2, fail, reason) { + if (hasExtension(fileName)) { + const canonicalFileName = host.getCanonicalFileName(fileName); + if (!options.allowNonTsExtensions && !forEach(flatten(supportedExtensionsWithJsonIfResolveJsonModule), (extension) => fileExtensionIs(canonicalFileName, extension))) { + if (fail) { + if (hasJSFileExtension(canonicalFileName)) { + fail(Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, fileName); + } else { + fail(Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, fileName, "'" + flatten(supportedExtensions).join("', '") + "'"); + } + } + return void 0; + } + const sourceFile = getSourceFile2(fileName); + if (fail) { + if (!sourceFile) { + const redirect = getProjectReferenceRedirect(fileName); + if (redirect) { + fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName); + } else { + fail(Diagnostics.File_0_not_found, fileName); + } + } else if (isReferencedFile(reason) && canonicalFileName === host.getCanonicalFileName(getSourceFileByPath(reason.file).fileName)) { + fail(Diagnostics.A_file_cannot_have_a_reference_to_itself); + } + } + return sourceFile; + } else { + const sourceFileNoExtension = options.allowNonTsExtensions && getSourceFile2(fileName); + if (sourceFileNoExtension) return sourceFileNoExtension; + if (fail && options.allowNonTsExtensions) { + fail(Diagnostics.File_0_not_found, fileName); + return void 0; + } + const sourceFileWithAddedExtension = forEach(supportedExtensions[0], (extension) => getSourceFile2(fileName + extension)); + if (fail && !sourceFileWithAddedExtension) fail(Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, fileName, "'" + flatten(supportedExtensions).join("', '") + "'"); + return sourceFileWithAddedExtension; + } + } + function processSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason) { + getSourceFileFromReferenceWorker( + fileName, + (fileName2) => findSourceFile(fileName2, isDefaultLib, ignoreNoDefaultLib, reason, packageId), + // TODO: GH#18217 + (diagnostic, ...args) => addFilePreprocessingFileExplainingDiagnostic( + /*file*/ + void 0, + reason, + diagnostic, + args + ), + reason + ); + } + function processProjectReferenceFile(fileName, reason) { + return processSourceFile( + fileName, + /*isDefaultLib*/ + false, + /*ignoreNoDefaultLib*/ + false, + /*packageId*/ + void 0, + reason + ); + } + function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) { + const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile); + if (hasExistingReasonToReportErrorOn) { + addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]); + } else { + addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]); + } + } + function createRedirectedSourceFile(redirectTarget, unredirected, fileName, path, resolvedPath, originalFileName, sourceFileOptions) { + var _a2; + const redirect = parseNodeFactory.createRedirectedSourceFile({ redirectTarget, unredirected }); + redirect.fileName = fileName; + redirect.path = path; + redirect.resolvedPath = resolvedPath; + redirect.originalFileName = originalFileName; + redirect.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; + redirect.packageJsonScope = sourceFileOptions.packageJsonScope; + sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); + return redirect; + } + function findSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { + var _a2, _b2; + (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "findSourceFile", { + fileName, + isDefaultLib: isDefaultLib || void 0, + fileIncludeKind: FileIncludeKind[reason.kind] + }); + const result = findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + return result; + } + function getCreateSourceFileOptions(fileName, moduleResolutionCache2, host2, options2) { + const result = getImpliedNodeFormatForFileWorker(getNormalizedAbsolutePath(fileName, currentDirectory), moduleResolutionCache2 == null ? void 0 : moduleResolutionCache2.getPackageJsonInfoCache(), host2, options2); + const languageVersion = getEmitScriptTarget(options2); + const setExternalModuleIndicator2 = getSetExternalModuleIndicator(options2); + return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode }; + } + function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) { + var _a2; + const path = toPath3(fileName); + if (useSourceOfProjectReferenceRedirect) { + let source = getSourceOfProjectReferenceRedirect(path); + if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) { + const realPath2 = toPath3(host.realpath(fileName)); + if (realPath2 !== path) source = getSourceOfProjectReferenceRedirect(realPath2); + } + if (source) { + const file2 = isString(source) ? findSourceFile(source, isDefaultLib, ignoreNoDefaultLib, reason, packageId) : void 0; + if (file2) addFileToFilesByName( + file2, + path, + fileName, + /*redirectedPath*/ + void 0 + ); + return file2; + } + } + const originalFileName = fileName; + if (filesByName.has(path)) { + const file2 = filesByName.get(path); + const addedReason = addFileIncludeReason( + file2 || void 0, + reason, + /*checkExisting*/ + true + ); + if (file2 && addedReason && !(options.forceConsistentCasingInFileNames === false)) { + const checkedName = file2.fileName; + const isRedirect = toPath3(checkedName) !== toPath3(fileName); + if (isRedirect) { + fileName = getProjectReferenceRedirect(fileName) || fileName; + } + const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory); + const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory); + if (checkedAbsolutePath !== inputAbsolutePath) { + reportFileNamesDifferOnlyInCasingError(fileName, file2, reason); + } + } + if (file2 && sourceFilesFoundSearchingNodeModules.get(file2.path) && currentNodeModulesDepth === 0) { + sourceFilesFoundSearchingNodeModules.set(file2.path, false); + if (!options.noResolve) { + processReferencedFiles(file2, isDefaultLib); + processTypeReferenceDirectives(file2); + } + if (!options.noLib) { + processLibReferenceDirectives(file2); + } + modulesWithElidedImports.set(file2.path, false); + processImportedModules(file2); + } else if (file2 && modulesWithElidedImports.get(file2.path)) { + if (currentNodeModulesDepth < maxNodeModuleJsDepth) { + modulesWithElidedImports.set(file2.path, false); + processImportedModules(file2); + } + } + return file2 || void 0; + } + let redirectedPath; + if (!useSourceOfProjectReferenceRedirect) { + const redirectProject = getProjectReferenceRedirectProject(fileName); + if (redirectProject) { + if (redirectProject.commandLine.options.outFile) { + return void 0; + } + const redirect = getProjectReferenceOutputName(redirectProject, fileName); + fileName = redirect; + redirectedPath = toPath3(redirect); + } + } + const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options); + const file = host.getSourceFile( + fileName, + sourceFileOptions, + (hostErrorMessage) => addFilePreprocessingFileExplainingDiagnostic( + /*file*/ + void 0, + reason, + Diagnostics.Cannot_read_file_0_Colon_1, + [fileName, hostErrorMessage] + ), + shouldCreateNewSourceFile + ); + if (packageId) { + const packageIdKey = packageIdToString(packageId); + const fileFromPackageId = packageIdToSourceFile.get(packageIdKey); + if (fileFromPackageId) { + const dupFile = createRedirectedSourceFile(fileFromPackageId, file, fileName, path, toPath3(fileName), originalFileName, sourceFileOptions); + redirectTargetsMap.add(fileFromPackageId.path, fileName); + addFileToFilesByName(dupFile, path, fileName, redirectedPath); + addFileIncludeReason( + dupFile, + reason, + /*checkExisting*/ + false + ); + sourceFileToPackageName.set(path, packageIdToPackageName(packageId)); + processingOtherFiles.push(dupFile); + return dupFile; + } else if (file) { + packageIdToSourceFile.set(packageIdKey, file); + sourceFileToPackageName.set(path, packageIdToPackageName(packageId)); + } + } + addFileToFilesByName(file, path, fileName, redirectedPath); + if (file) { + sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0); + file.fileName = fileName; + file.path = path; + file.resolvedPath = toPath3(fileName); + file.originalFileName = originalFileName; + file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0; + file.packageJsonScope = sourceFileOptions.packageJsonScope; + addFileIncludeReason( + file, + reason, + /*checkExisting*/ + false + ); + if (host.useCaseSensitiveFileNames()) { + const pathLowerCase = toFileNameLowerCase(path); + const existingFile = filesByNameIgnoreCase.get(pathLowerCase); + if (existingFile) { + reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason); + } else { + filesByNameIgnoreCase.set(pathLowerCase, file); + } + } + skipDefaultLib = skipDefaultLib || file.hasNoDefaultLib && !ignoreNoDefaultLib; + if (!options.noResolve) { + processReferencedFiles(file, isDefaultLib); + processTypeReferenceDirectives(file); + } + if (!options.noLib) { + processLibReferenceDirectives(file); + } + processImportedModules(file); + if (isDefaultLib) { + processingDefaultLibFiles.push(file); + } else { + processingOtherFiles.push(file); + } + (filesWithReferencesProcessed ?? (filesWithReferencesProcessed = /* @__PURE__ */ new Set())).add(file.path); + } + return file; + } + function addFileIncludeReason(file, reason, checkExisting) { + if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) { + fileReasons.add(file.path, reason); + return true; + } + return false; + } + function addFileToFilesByName(file, path, fileName, redirectedPath) { + if (redirectedPath) { + updateFilesByNameMap(fileName, redirectedPath, file); + updateFilesByNameMap(fileName, path, file || false); + } else { + updateFilesByNameMap(fileName, path, file); + } + } + function updateFilesByNameMap(fileName, path, file) { + filesByName.set(path, file); + if (file !== void 0) missingFileNames.delete(path); + else missingFileNames.set(path, fileName); + } + function getProjectReferenceRedirect(fileName) { + const referencedProject = getProjectReferenceRedirectProject(fileName); + return referencedProject && getProjectReferenceOutputName(referencedProject, fileName); + } + function getProjectReferenceRedirectProject(fileName) { + if (!resolvedProjectReferences || !resolvedProjectReferences.length || isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */)) { + return void 0; + } + return getResolvedProjectReferenceToRedirect(fileName); + } + function getProjectReferenceOutputName(referencedProject, fileName) { + const out = referencedProject.commandLine.options.outFile; + return out ? changeExtension(out, ".d.ts" /* Dts */) : getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames()); + } + function getResolvedProjectReferenceToRedirect(fileName) { + if (mapFromFileToProjectReferenceRedirects === void 0) { + mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map(); + forEachResolvedProjectReference2((referencedProject) => { + if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) { + referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path)); + } + }); + } + const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath3(fileName)); + return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath); + } + function forEachResolvedProjectReference2(cb) { + return forEachResolvedProjectReference(resolvedProjectReferences, cb); + } + function getSourceOfProjectReferenceRedirect(path) { + if (!isDeclarationFileName(path)) return void 0; + if (mapFromToProjectReferenceRedirectSource === void 0) { + mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map(); + forEachResolvedProjectReference2((resolvedRef) => { + const out = resolvedRef.commandLine.options.outFile; + if (out) { + const outputDts = changeExtension(out, ".d.ts" /* Dts */); + mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), true); + } else { + const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames())); + forEach(resolvedRef.commandLine.fileNames, (fileName) => { + if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) { + const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3); + mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), fileName); + } + }); + } + }); + } + return mapFromToProjectReferenceRedirectSource.get(path); + } + function isSourceOfProjectReferenceRedirect(fileName) { + return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName); + } + function getResolvedProjectReferenceByPath(projectReferencePath) { + if (!projectReferenceRedirects) { + return void 0; + } + return projectReferenceRedirects.get(projectReferencePath) || void 0; + } + function processReferencedFiles(file, isDefaultLib) { + forEach(file.referencedFiles, (ref, index) => { + processSourceFile( + resolveTripleslashReference(ref.fileName, file.fileName), + isDefaultLib, + /*ignoreNoDefaultLib*/ + false, + /*packageId*/ + void 0, + { kind: 4 /* ReferenceFile */, file: file.path, index } + ); + }); + } + function processTypeReferenceDirectives(file) { + const typeDirectives = file.typeReferenceDirectives; + if (!typeDirectives.length) return; + const resolutions = (resolvedTypeReferenceDirectiveNamesProcessing == null ? void 0 : resolvedTypeReferenceDirectiveNamesProcessing.get(file.path)) || resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectives, file); + const resolutionsInFile = createModeAwareCache(); + (resolvedTypeReferenceDirectiveNames ?? (resolvedTypeReferenceDirectiveNames = /* @__PURE__ */ new Map())).set(file.path, resolutionsInFile); + for (let index = 0; index < typeDirectives.length; index++) { + const ref = file.typeReferenceDirectives[index]; + const resolvedTypeReferenceDirective = resolutions[index]; + const fileName = ref.fileName; + resolutionsInFile.set(fileName, getModeForFileReference(ref, file.impliedNodeFormat), resolvedTypeReferenceDirective); + const mode = ref.resolutionMode || file.impliedNodeFormat; + processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: 5 /* TypeReferenceDirective */, file: file.path, index }); + } + } + function processTypeReferenceDirective(typeReferenceDirective, mode, resolution, reason) { + var _a2, _b2; + (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolution.resolvedTypeReferenceDirective, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : void 0 }); + processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason); + (_b2 = tracing) == null ? void 0 : _b2.pop(); + } + function processTypeReferenceDirectiveWorker(typeReferenceDirective, mode, resolution, reason) { + addResolutionDiagnostics(resolution); + const { resolvedTypeReferenceDirective } = resolution; + if (resolvedTypeReferenceDirective) { + if (resolvedTypeReferenceDirective.isExternalLibraryImport) currentNodeModulesDepth++; + processSourceFile( + resolvedTypeReferenceDirective.resolvedFileName, + /*isDefaultLib*/ + false, + /*ignoreNoDefaultLib*/ + false, + resolvedTypeReferenceDirective.packageId, + reason + ); + if (resolvedTypeReferenceDirective.isExternalLibraryImport) currentNodeModulesDepth--; + } else { + addFilePreprocessingFileExplainingDiagnostic( + /*file*/ + void 0, + reason, + Diagnostics.Cannot_find_type_definition_file_for_0, + [typeReferenceDirective] + ); + } + } + function pathForLibFile(libFileName) { + const existing = resolvedLibReferences == null ? void 0 : resolvedLibReferences.get(libFileName); + if (existing) return existing.actual; + const result = pathForLibFileWorker(libFileName); + (resolvedLibReferences ?? (resolvedLibReferences = /* @__PURE__ */ new Map())).set(libFileName, result); + return result.actual; + } + function pathForLibFileWorker(libFileName) { + var _a2, _b2, _c2, _d2, _e2; + const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName); + if (existing) return existing; + if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) { + const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName); + if (oldResolution) { + if (oldResolution.resolution && isTraceEnabled(options, host)) { + const libraryName2 = getLibraryNameFromLibFileName(libFileName); + const resolveFrom2 = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); + trace( + host, + oldResolution.resolution.resolvedModule ? oldResolution.resolution.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, + libraryName2, + getNormalizedAbsolutePath(resolveFrom2, currentDirectory), + (_b2 = oldResolution.resolution.resolvedModule) == null ? void 0 : _b2.resolvedFileName, + ((_c2 = oldResolution.resolution.resolvedModule) == null ? void 0 : _c2.packageId) && packageIdToString(oldResolution.resolution.resolvedModule.packageId) + ); + } + (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, oldResolution); + return oldResolution; + } + } + const libraryName = getLibraryNameFromLibFileName(libFileName); + const resolveFrom = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); + (_d2 = tracing) == null ? void 0 : _d2.push(tracing.Phase.Program, "resolveLibrary", { resolveFrom }); + mark("beforeResolveLibrary"); + const resolution = actualResolveLibrary(libraryName, resolveFrom, options, libFileName); + mark("afterResolveLibrary"); + measure("ResolveLibrary", "beforeResolveLibrary", "afterResolveLibrary"); + (_e2 = tracing) == null ? void 0 : _e2.pop(); + const result = { + resolution, + actual: resolution.resolvedModule ? resolution.resolvedModule.resolvedFileName : combinePaths(defaultLibraryPath, libFileName) + }; + (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result); + return result; + } + function processLibReferenceDirectives(file) { + forEach(file.libReferenceDirectives, (libReference, index) => { + const libFileName = getLibFileNameFromLibReference(libReference); + if (libFileName) { + processRootFile( + pathForLibFile(libFileName), + /*isDefaultLib*/ + true, + /*ignoreNoDefaultLib*/ + true, + { kind: 7 /* LibReferenceDirective */, file: file.path, index } + ); + } else { + (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({ + kind: 0 /* FilePreprocessingLibReferenceDiagnostic */, + reason: { kind: 7 /* LibReferenceDirective */, file: file.path, index } + }); + } + }); + } + function getCanonicalFileName(fileName) { + return host.getCanonicalFileName(fileName); + } + function processImportedModules(file) { + var _a2; + collectExternalModuleReferences(file); + if (file.imports.length || file.moduleAugmentations.length) { + const moduleNames = getModuleNames(file); + const resolutions = (resolvedModulesProcessing == null ? void 0 : resolvedModulesProcessing.get(file.path)) || resolveModuleNamesReusingOldState(moduleNames, file); + Debug.assert(resolutions.length === moduleNames.length); + const optionsForFile = ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; + const resolutionsInFile = createModeAwareCache(); + (resolvedModules ?? (resolvedModules = /* @__PURE__ */ new Map())).set(file.path, resolutionsInFile); + for (let index = 0; index < moduleNames.length; index++) { + const resolution = resolutions[index].resolvedModule; + const moduleName = moduleNames[index].text; + const mode = getModeForUsageLocationWorker(file, moduleNames[index], optionsForFile); + resolutionsInFile.set(moduleName, mode, resolutions[index]); + addResolutionDiagnosticsFromResolutionOrCache(file, moduleName, resolutions[index], mode); + if (!resolution) { + continue; + } + const isFromNodeModulesSearch = resolution.isExternalLibraryImport; + const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName); + const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName)); + const resolvedFileName = resolution.resolvedFileName; + if (isFromNodeModulesSearch) { + currentNodeModulesDepth++; + } + const elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth; + const shouldAddFile = resolvedFileName && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport && !(isJsFile && !getAllowJSCompilerOption(optionsForFile)) && (isInJSFile(file.imports[index]) || !(file.imports[index].flags & 16777216 /* JSDoc */)); + if (elideImport) { + modulesWithElidedImports.set(file.path, true); + } else if (shouldAddFile) { + findSourceFile( + resolvedFileName, + /*isDefaultLib*/ + false, + /*ignoreNoDefaultLib*/ + false, + { kind: 3 /* Import */, file: file.path, index }, + resolution.packageId + ); + } + if (isFromNodeModulesSearch) { + currentNodeModulesDepth--; + } + } + } + } + function checkSourceFilesBelongToPath(sourceFiles, rootDirectory) { + let allFilesBelongToPath = true; + const absoluteRootDirectoryPath = host.getCanonicalFileName(getNormalizedAbsolutePath(rootDirectory, currentDirectory)); + for (const sourceFile of sourceFiles) { + if (!sourceFile.isDeclarationFile) { + const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory)); + if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) { + addLazyProgramDiagnosticExplainingFile( + sourceFile, + Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, + [sourceFile.fileName, rootDirectory] + ); + allFilesBelongToPath = false; + } + } + } + return allFilesBelongToPath; + } + function parseProjectReferenceConfigFile(ref) { + if (!projectReferenceRedirects) { + projectReferenceRedirects = /* @__PURE__ */ new Map(); + } + const refPath = resolveProjectReferencePath(ref); + const sourceFilePath = toPath3(refPath); + const fromCache = projectReferenceRedirects.get(sourceFilePath); + if (fromCache !== void 0) { + return fromCache || void 0; + } + let commandLine; + let sourceFile; + if (host.getParsedCommandLine) { + commandLine = host.getParsedCommandLine(refPath); + if (!commandLine) { + addFileToFilesByName( + /*file*/ + void 0, + sourceFilePath, + refPath, + /*redirectedPath*/ + void 0 + ); + projectReferenceRedirects.set(sourceFilePath, false); + return void 0; + } + sourceFile = Debug.checkDefined(commandLine.options.configFile); + Debug.assert(!sourceFile.path || sourceFile.path === sourceFilePath); + addFileToFilesByName( + sourceFile, + sourceFilePath, + refPath, + /*redirectedPath*/ + void 0 + ); + } else { + const basePath = getNormalizedAbsolutePath(getDirectoryPath(refPath), currentDirectory); + sourceFile = host.getSourceFile(refPath, 100 /* JSON */); + addFileToFilesByName( + sourceFile, + sourceFilePath, + refPath, + /*redirectedPath*/ + void 0 + ); + if (sourceFile === void 0) { + projectReferenceRedirects.set(sourceFilePath, false); + return void 0; + } + commandLine = parseJsonSourceFileConfigFileContent( + sourceFile, + configParsingHost, + basePath, + /*existingOptions*/ + void 0, + refPath + ); + } + sourceFile.fileName = refPath; + sourceFile.path = sourceFilePath; + sourceFile.resolvedPath = sourceFilePath; + sourceFile.originalFileName = refPath; + const resolvedRef = { commandLine, sourceFile }; + projectReferenceRedirects.set(sourceFilePath, resolvedRef); + if (commandLine.projectReferences) { + resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile); + } + return resolvedRef; + } + function verifyCompilerOptions() { + if (options.strictPropertyInitialization && !getStrictOptionValue(options, "strictNullChecks")) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "strictPropertyInitialization", "strictNullChecks"); + } + if (options.exactOptionalPropertyTypes && !getStrictOptionValue(options, "strictNullChecks")) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "exactOptionalPropertyTypes", "strictNullChecks"); + } + if (options.isolatedModules || options.verbatimModuleSyntax) { + if (options.outFile) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "outFile", options.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules"); + } + } + if (options.isolatedDeclarations) { + if (getAllowJSCompilerOption(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "allowJs", "isolatedDeclarations"); + } + if (!getEmitDeclarations(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "isolatedDeclarations", "declaration", "composite"); + } + } + if (options.inlineSourceMap) { + if (options.sourceMap) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "sourceMap", "inlineSourceMap"); + } + if (options.mapRoot) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "mapRoot", "inlineSourceMap"); + } + } + if (options.composite) { + if (options.declaration === false) { + createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_declaration_emit, "declaration"); + } + if (options.incremental === false) { + createDiagnosticForOptionName(Diagnostics.Composite_projects_may_not_disable_incremental_compilation, "declaration"); + } + } + const outputFile = options.outFile; + if (options.tsBuildInfoFile) { + if (!isIncrementalCompilation(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "tsBuildInfoFile", "incremental", "composite"); + } + } else if (options.incremental && !outputFile && !options.configFilePath) { + programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); + } + verifyDeprecatedCompilerOptions(); + verifyProjectReferences(); + if (options.composite) { + const rootPaths = new Set(rootNames.map(toPath3)); + for (const file of files) { + if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) { + addLazyProgramDiagnosticExplainingFile( + file, + Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, + [file.fileName, options.configFilePath || ""] + ); + } + } + } + if (options.paths) { + for (const key in options.paths) { + if (!hasProperty(options.paths, key)) { + continue; + } + if (!hasZeroOrOneAsteriskCharacter(key)) { + createDiagnosticForOptionPaths( + /*onKey*/ + true, + key, + Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, + key + ); + } + if (isArray(options.paths[key])) { + const len = options.paths[key].length; + if (len === 0) { + createDiagnosticForOptionPaths( + /*onKey*/ + false, + key, + Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, + key + ); + } + for (let i = 0; i < len; i++) { + const subst = options.paths[key][i]; + const typeOfSubst = typeof subst; + if (typeOfSubst === "string") { + if (!hasZeroOrOneAsteriskCharacter(subst)) { + createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key); + } + if (!options.baseUrl && !pathIsRelative(subst) && !pathIsAbsolute(subst)) { + createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash); + } + } else { + createDiagnosticForOptionPathKeyValue(key, i, Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, subst, key, typeOfSubst); + } + } + } else { + createDiagnosticForOptionPaths( + /*onKey*/ + false, + key, + Diagnostics.Substitutions_for_pattern_0_should_be_an_array, + key + ); + } + } + } + if (!options.sourceMap && !options.inlineSourceMap) { + if (options.inlineSources) { + createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "inlineSources"); + } + if (options.sourceRoot) { + createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, "sourceRoot"); + } + } + if (options.mapRoot && !(options.sourceMap || options.declarationMap)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "mapRoot", "sourceMap", "declarationMap"); + } + if (options.declarationDir) { + if (!getEmitDeclarations(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationDir", "declaration", "composite"); + } + if (outputFile) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "declarationDir", "outFile"); + } + } + if (options.declarationMap && !getEmitDeclarations(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "declarationMap", "declaration", "composite"); + } + if (options.lib && options.noLib) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "lib", "noLib"); + } + const languageVersion = getEmitScriptTarget(options); + const firstNonAmbientExternalModuleSourceFile = find(files, (f) => isExternalModule(f) && !f.isDeclarationFile); + if (options.isolatedModules || options.verbatimModuleSyntax) { + if (options.module === 0 /* None */ && languageVersion < 2 /* ES2015 */ && options.isolatedModules) { + createDiagnosticForOptionName(Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, "isolatedModules", "target"); + } + if (options.preserveConstEnums === false) { + createDiagnosticForOptionName(Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled, options.verbatimModuleSyntax ? "verbatimModuleSyntax" : "isolatedModules", "preserveConstEnums"); + } + } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) { + const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); + programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)); + } + if (outputFile && !options.emitDeclarationOnly) { + if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) { + createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module"); + } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) { + const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); + programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile")); + } + } + if (getResolveJsonModule(options)) { + if (getEmitModuleResolutionKind(options) === 1 /* Classic */) { + createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic, "resolveJsonModule"); + } else if (!hasJsonModuleEmitEnabled(options)) { + createDiagnosticForOptionName(Diagnostics.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd, "resolveJsonModule", "module"); + } + } + if (options.outDir || // there is --outDir specified + options.rootDir || // there is --rootDir specified + options.sourceRoot || // there is --sourceRoot specified + options.mapRoot || // there is --mapRoot specified + getEmitDeclarations(options) && options.declarationDir) { + const dir = getCommonSourceDirectory2(); + if (options.outDir && dir === "" && files.some((file) => getRootLength(file.fileName) > 1)) { + createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir"); + } + } + if (options.checkJs && !getAllowJSCompilerOption(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"); + } + if (options.emitDeclarationOnly) { + if (!getEmitDeclarations(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "emitDeclarationOnly", "declaration", "composite"); + } + if (options.noEmit) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit"); + } + } + if (options.noCheck) { + if (options.noEmit) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noCheck", "noEmit"); + } + } + if (options.emitDecoratorMetadata && !options.experimentalDecorators) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"); + } + if (options.jsxFactory) { + if (options.reactNamespace) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "reactNamespace", "jsxFactory"); + } + if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFactory", inverseJsxOptionMap.get("" + options.jsx)); + } + if (!parseIsolatedEntityName(options.jsxFactory, languageVersion)) { + createOptionValueDiagnostic("jsxFactory", Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFactory); + } + } else if (options.reactNamespace && !isIdentifierText(options.reactNamespace, languageVersion)) { + createOptionValueDiagnostic("reactNamespace", Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, options.reactNamespace); + } + if (options.jsxFragmentFactory) { + if (!options.jsxFactory) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "jsxFragmentFactory", "jsxFactory"); + } + if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxFragmentFactory", inverseJsxOptionMap.get("" + options.jsx)); + } + if (!parseIsolatedEntityName(options.jsxFragmentFactory, languageVersion)) { + createOptionValueDiagnostic("jsxFragmentFactory", Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFragmentFactory); + } + } + if (options.reactNamespace) { + if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "reactNamespace", inverseJsxOptionMap.get("" + options.jsx)); + } + } + if (options.jsxImportSource) { + if (options.jsx === 2 /* React */) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, "jsxImportSource", inverseJsxOptionMap.get("" + options.jsx)); + } + } + const moduleKind = getEmitModuleKind(options); + if (options.verbatimModuleSyntax) { + if (moduleKind === 2 /* AMD */ || moduleKind === 3 /* UMD */ || moduleKind === 4 /* System */) { + createDiagnosticForOptionName(Diagnostics.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System, "verbatimModuleSyntax"); + } + } + if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly)) { + createOptionValueDiagnostic("allowImportingTsExtensions", Diagnostics.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set); + } + const moduleResolution = getEmitModuleResolutionKind(options); + if (options.resolvePackageJsonExports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonExports"); + } + if (options.resolvePackageJsonImports && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "resolvePackageJsonImports"); + } + if (options.customConditions && !moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { + createDiagnosticForOptionName(Diagnostics.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler, "customConditions"); + } + if (moduleResolution === 100 /* Bundler */ && !emitModuleKindIsNonNodeESM(moduleKind) && moduleKind !== 200 /* Preserve */) { + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later, "bundler"); + } + if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { + const moduleKindName = ModuleKind[moduleKind]; + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); + } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { + const moduleResolutionName = ModuleResolutionKind[moduleResolution]; + createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); + } + if (!options.noEmit && !options.suppressOutputPathCheck) { + const emitHost = getEmitHost(); + const emitFilesSeen = /* @__PURE__ */ new Set(); + forEachEmittedFile(emitHost, (emitFileNames) => { + if (!options.emitDeclarationOnly) { + verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen); + } + verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen); + }); + } + function verifyEmitFilePath(emitFileName, emitFilesSeen) { + if (emitFileName) { + const emitFilePath = toPath3(emitFileName); + if (filesByName.has(emitFilePath)) { + let chain; + if (!options.configFilePath) { + chain = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig + ); + } + chain = chainDiagnosticMessages(chain, Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file, emitFileName); + blockEmittingOfFile(emitFileName, createCompilerDiagnosticFromMessageChain(chain)); + } + const emitFileKey = !host.useCaseSensitiveFileNames() ? toFileNameLowerCase(emitFilePath) : emitFilePath; + if (emitFilesSeen.has(emitFileKey)) { + blockEmittingOfFile(emitFileName, createCompilerDiagnostic(Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, emitFileName)); + } else { + emitFilesSeen.add(emitFileKey); + } + } + } + } + function getIgnoreDeprecationsVersion() { + const ignoreDeprecations = options.ignoreDeprecations; + if (ignoreDeprecations) { + if (ignoreDeprecations === "5.0") { + return new Version(ignoreDeprecations); + } + reportInvalidIgnoreDeprecations(); + } + return Version.zero; + } + function checkDeprecations(deprecatedIn, stopsWorkingIn, removedIn, createDiagnostic, fn) { + const deprecatedInVersion = new Version(deprecatedIn); + const removedInVersion = new Version(removedIn); + const typescriptVersion = new Version(typeScriptVersion2 || versionMajorMinor); + const ignoreDeprecationsVersion = getIgnoreDeprecationsVersion(); + const mustBeRemoved = !(removedInVersion.compareTo(typescriptVersion) === 1 /* GreaterThan */); + const canBeSilenced = !mustBeRemoved && ignoreDeprecationsVersion.compareTo(deprecatedInVersion) === -1 /* LessThan */; + if (mustBeRemoved || canBeSilenced) { + fn((name, value, useInstead) => { + if (mustBeRemoved) { + if (value === void 0) { + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name); + } else { + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value); + } + } else { + if (value === void 0) { + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, stopsWorkingIn, deprecatedIn); + } else { + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, stopsWorkingIn, deprecatedIn); + } + } + }); + } + } + function verifyDeprecatedCompilerOptions() { + function createDiagnostic(name, value, useInstead, message, ...args) { + if (useInstead) { + const details = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Use_0_instead, + useInstead + ); + const chain = chainDiagnosticMessages(details, message, ...args); + createDiagnosticForOption( + /*onKey*/ + !value, + name, + /*option2*/ + void 0, + chain + ); + } else { + createDiagnosticForOption( + /*onKey*/ + !value, + name, + /*option2*/ + void 0, + message, + ...args + ); + } + } + checkDeprecations("5.0", "5.5", "6.0", createDiagnostic, (createDeprecatedDiagnostic) => { + if (options.target === 0 /* ES3 */) { + createDeprecatedDiagnostic("target", "ES3"); + } + if (options.noImplicitUseStrict) { + createDeprecatedDiagnostic("noImplicitUseStrict"); + } + if (options.keyofStringsOnly) { + createDeprecatedDiagnostic("keyofStringsOnly"); + } + if (options.suppressExcessPropertyErrors) { + createDeprecatedDiagnostic("suppressExcessPropertyErrors"); + } + if (options.suppressImplicitAnyIndexErrors) { + createDeprecatedDiagnostic("suppressImplicitAnyIndexErrors"); + } + if (options.noStrictGenericChecks) { + createDeprecatedDiagnostic("noStrictGenericChecks"); + } + if (options.charset) { + createDeprecatedDiagnostic("charset"); + } + if (options.out) { + createDeprecatedDiagnostic( + "out", + /*value*/ + void 0, + "outFile" + ); + } + if (options.importsNotUsedAsValues) { + createDeprecatedDiagnostic( + "importsNotUsedAsValues", + /*value*/ + void 0, + "verbatimModuleSyntax" + ); + } + if (options.preserveValueImports) { + createDeprecatedDiagnostic( + "preserveValueImports", + /*value*/ + void 0, + "verbatimModuleSyntax" + ); + } + }); + } + function verifyDeprecatedProjectReference(ref, parentFile, index) { + function createDiagnostic(_name, _value, _useInstead, message, ...args) { + createDiagnosticForReference(parentFile, index, message, ...args); + } + checkDeprecations("5.0", "5.5", "6.0", createDiagnostic, (createDeprecatedDiagnostic) => { + if (ref.prepend) { + createDeprecatedDiagnostic("prepend"); + } + }); + } + function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) { + let seenReasons; + const reasons = file && fileReasons.get(file.path); + let fileIncludeReasons; + let relatedInfo; + let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0; + let fileIncludeReasonDetails; + let redirectInfo; + let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path)); + let chain; + if (cachedChain) { + if (cachedChain.fileIncludeReasonDetails) { + seenReasons = new Set(reasons); + reasons == null ? void 0 : reasons.forEach(populateRelatedInfo); + } else { + reasons == null ? void 0 : reasons.forEach(processReason); + } + redirectInfo = cachedChain.redirectInfo; + } else { + reasons == null ? void 0 : reasons.forEach(processReason); + redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file); + } + if (fileProcessingReason) processReason(fileProcessingReason); + const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length); + if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0; + if (seenReasons && cachedChain) { + if (cachedChain.details && !processedExtraReason) { + chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray); + } else if (cachedChain.fileIncludeReasonDetails) { + if (!processedExtraReason) { + if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { + fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails; + } else { + fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length); + } + } else { + if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { + fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]]; + } else { + fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]); + } + } + } + } + if (!chain) { + if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); + chain = chainDiagnosticMessages( + redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, + diagnostic, + ...args || emptyArray + ); + } + if (file) { + if (cachedChain) { + if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) { + cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails; + } + } else { + (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo }); + } + if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next; + } + const location = locationReason && getReferencedFileLocation(program, locationReason); + return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo); + function processReason(reason) { + if (seenReasons == null ? void 0 : seenReasons.has(reason)) return; + (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason); + (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason)); + populateRelatedInfo(reason); + } + function populateRelatedInfo(reason) { + if (!locationReason && isReferencedFile(reason)) { + locationReason = reason; + } else if (locationReason !== reason) { + relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason)); + } + } + function cachedFileIncludeDetailsHasProcessedExtraReason() { + var _a2; + return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length); + } + } + function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) { + (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({ + kind: 1 /* FilePreprocessingFileExplainingDiagnostic */, + file: file && file.path, + fileProcessingReason, + diagnostic, + args + }); + } + function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) { + lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args }); + } + function getFileIncludeReasonToRelatedInformation(reason) { + let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason); + if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(reason) ?? false); + return relatedInfo || void 0; + } + function fileIncludeReasonToRelatedInformation(reason) { + if (isReferencedFile(reason)) { + const referenceLocation = getReferencedFileLocation(program, reason); + let message2; + switch (reason.kind) { + case 3 /* Import */: + message2 = Diagnostics.File_is_included_via_import_here; + break; + case 4 /* ReferenceFile */: + message2 = Diagnostics.File_is_included_via_reference_here; + break; + case 5 /* TypeReferenceDirective */: + message2 = Diagnostics.File_is_included_via_type_library_reference_here; + break; + case 7 /* LibReferenceDirective */: + message2 = Diagnostics.File_is_included_via_library_reference_here; + break; + default: + Debug.assertNever(reason); + } + return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic( + referenceLocation.file, + referenceLocation.pos, + referenceLocation.end - referenceLocation.pos, + message2 + ) : void 0; + } + if (!options.configFile) return void 0; + let configFileNode; + let message; + switch (reason.kind) { + case 0 /* RootFile */: + if (!options.configFile.configFileSpecs) return void 0; + const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory); + const matchedByFiles = getMatchedFileSpec(program, fileName); + if (matchedByFiles) { + configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles); + message = Diagnostics.File_is_matched_by_files_list_specified_here; + break; + } + const matchedByInclude = getMatchedIncludeSpec(program, fileName); + if (!matchedByInclude || !isString(matchedByInclude)) return void 0; + configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude); + message = Diagnostics.File_is_matched_by_include_pattern_specified_here; + break; + case 1 /* SourceFromProjectReference */: + case 2 /* OutputFromProjectReference */: + const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]); + const referenceInfo = forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent == null ? void 0 : parent.sourceFile) || options.configFile, index: index2 } : void 0); + if (!referenceInfo) return void 0; + const { sourceFile, index } = referenceInfo; + const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); + return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile( + sourceFile, + referencesSyntax.elements[index], + reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here + ) : void 0; + case 8 /* AutomaticTypeDirectiveFile */: + if (!options.types) return void 0; + configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference); + message = Diagnostics.File_is_entry_point_of_type_library_specified_here; + break; + case 6 /* LibFile */: + if (reason.index !== void 0) { + configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]); + message = Diagnostics.File_is_library_specified_here; + break; + } + const target = getNameOfScriptTarget(getEmitScriptTarget(options)); + configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0; + message = Diagnostics.File_is_default_library_for_target_specified_here; + break; + default: + Debug.assertNever(reason); + } + return configFileNode && createDiagnosticForNodeInSourceFile( + options.configFile, + configFileNode, + message + ); + } + function verifyProjectReferences() { + const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0; + forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent, index) => { + const ref = (parent ? parent.commandLine.projectReferences : projectReferences)[index]; + const parentFile = parent && parent.sourceFile; + verifyDeprecatedProjectReference(ref, parentFile, index); + if (!resolvedRef) { + createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path); + return; + } + const options2 = resolvedRef.commandLine.options; + if (!options2.composite || options2.noEmit) { + const inputs = parent ? parent.commandLine.fileNames : rootNames; + if (inputs.length) { + if (!options2.composite) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path); + if (options2.noEmit) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path); + } + } + if (!parent && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options2)) { + createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); + hasEmitBlockingDiagnostics.set(toPath3(buildInfoPath), true); + } + }); + } + function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, ...args) { + let needCompilerDiagnostic = true; + forEachOptionPathsSyntax((pathProp) => { + if (isObjectLiteralExpression(pathProp.initializer)) { + forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => { + const initializer = keyProps.initializer; + if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) { + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args)); + needCompilerDiagnostic = false; + } + }); + } + }); + if (needCompilerDiagnostic) { + createCompilerOptionsDiagnostic(message, ...args); + } + } + function createDiagnosticForOptionPaths(onKey, key, message, ...args) { + let needCompilerDiagnostic = true; + forEachOptionPathsSyntax((pathProp) => { + if (isObjectLiteralExpression(pathProp.initializer) && createOptionDiagnosticInObjectLiteralSyntax( + pathProp.initializer, + onKey, + key, + /*key2*/ + void 0, + message, + ...args + )) { + needCompilerDiagnostic = false; + } + }); + if (needCompilerDiagnostic) { + createCompilerOptionsDiagnostic(message, ...args); + } + } + function forEachOptionsSyntaxByName(name, callback) { + return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback); + } + function forEachOptionPathsSyntax(callback) { + return forEachOptionsSyntaxByName("paths", callback); + } + function getOptionsSyntaxByValue(name, value) { + return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0); + } + function getOptionsSyntaxByArrayElementValue(name, value) { + const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax(); + return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value); + } + function createDiagnosticForOptionName(message, option1, option2, option3) { + createDiagnosticForOption( + /*onKey*/ + true, + option1, + option2, + message, + option1, + option2, + option3 + ); + } + function createOptionValueDiagnostic(option1, message, ...args) { + createDiagnosticForOption( + /*onKey*/ + false, + option1, + /*option2*/ + void 0, + message, + ...args + ); + } + function createDiagnosticForReference(sourceFile, index, message, ...args) { + const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); + if (referencesSyntax && referencesSyntax.elements.length > index) { + programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args)); + } else { + programDiagnostics.add(createCompilerDiagnostic(message, ...args)); + } + } + function createDiagnosticForOption(onKey, option1, option2, message, ...args) { + const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax(); + const needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax || !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, ...args); + if (needCompilerDiagnostic) { + createCompilerOptionsDiagnostic(message, ...args); + } + } + function createCompilerOptionsDiagnostic(message, ...args) { + const compilerOptionsProperty = getCompilerOptionsPropertySyntax(); + if (compilerOptionsProperty) { + if ("messageText" in message) { + programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message)); + } else { + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args)); + } + } else if ("messageText" in message) { + programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message)); + } else { + programDiagnostics.add(createCompilerDiagnostic(message, ...args)); + } + } + function getCompilerOptionsObjectLiteralSyntax() { + if (_compilerOptionsObjectLiteralSyntax === void 0) { + const compilerOptionsProperty = getCompilerOptionsPropertySyntax(); + _compilerOptionsObjectLiteralSyntax = compilerOptionsProperty ? tryCast(compilerOptionsProperty.initializer, isObjectLiteralExpression) || false : false; + } + return _compilerOptionsObjectLiteralSyntax || void 0; + } + function getCompilerOptionsPropertySyntax() { + if (_compilerOptionsPropertySyntax === void 0) { + _compilerOptionsPropertySyntax = forEachPropertyAssignment( + getTsConfigObjectLiteralExpression(options.configFile), + "compilerOptions", + identity + ) || false; + } + return _compilerOptionsPropertySyntax || void 0; + } + function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, ...args) { + let needsCompilerDiagnostic = false; + forEachPropertyAssignment(objectLiteral, key1, (prop) => { + if ("messageText" in message) { + programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message)); + } else { + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args)); + } + needsCompilerDiagnostic = true; + }, key2); + return needsCompilerDiagnostic; + } + function blockEmittingOfFile(emitFileName, diag2) { + hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true); + programDiagnostics.add(diag2); + } + function isEmittedFile(file) { + if (options.noEmit) { + return false; + } + const filePath = toPath3(file); + if (getSourceFileByPath(filePath)) { + return false; + } + const out = options.outFile; + if (out) { + return isSameFile(filePath, out) || isSameFile(filePath, removeFileExtension(out) + ".d.ts" /* Dts */); + } + if (options.declarationDir && containsPath(options.declarationDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames())) { + return true; + } + if (options.outDir) { + return containsPath(options.outDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames()); + } + if (fileExtensionIsOneOf(filePath, supportedJSExtensionsFlat) || isDeclarationFileName(filePath)) { + const filePathWithoutExtension = removeFileExtension(filePath); + return !!getSourceFileByPath(filePathWithoutExtension + ".ts" /* Ts */) || !!getSourceFileByPath(filePathWithoutExtension + ".tsx" /* Tsx */); + } + return false; + } + function isSameFile(file1, file2) { + return comparePaths(file1, file2, currentDirectory, !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */; + } + function getSymlinkCache() { + if (host.getSymlinkCache) { + return host.getSymlinkCache(); + } + if (!symlinks) { + symlinks = createSymlinkCache(currentDirectory, getCanonicalFileName); + } + if (files && !symlinks.hasProcessedResolutions()) { + symlinks.setSymlinksFromResolutions(forEachResolvedModule, forEachResolvedTypeReferenceDirective, automaticTypeDirectiveResolutions); + } + return symlinks; + } + function getModeForUsageLocation2(file, usage) { + var _a2; + const optionsForFile = ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; + return getModeForUsageLocationWorker(file, usage, optionsForFile); + } + function getModeForResolutionAtIndex2(file, index) { + return getModeForUsageLocation2(file, getModuleNameStringLiteralAt(file, index)); + } +} +function updateHostForUseSourceOfProjectReferenceRedirect(host) { + let setOfDeclarationDirectories; + const originalFileExists = host.compilerHost.fileExists; + const originalDirectoryExists = host.compilerHost.directoryExists; + const originalGetDirectories = host.compilerHost.getDirectories; + const originalRealpath = host.compilerHost.realpath; + if (!host.useSourceOfProjectReferenceRedirect) return { onProgramCreateComplete: noop, fileExists }; + host.compilerHost.fileExists = fileExists; + let directoryExists; + if (originalDirectoryExists) { + directoryExists = host.compilerHost.directoryExists = (path) => { + if (originalDirectoryExists.call(host.compilerHost, path)) { + handleDirectoryCouldBeSymlink(path); + return true; + } + if (!host.getResolvedProjectReferences()) return false; + if (!setOfDeclarationDirectories) { + setOfDeclarationDirectories = /* @__PURE__ */ new Set(); + host.forEachResolvedProjectReference((ref) => { + const out = ref.commandLine.options.outFile; + if (out) { + setOfDeclarationDirectories.add(getDirectoryPath(host.toPath(out))); + } else { + const declarationDir = ref.commandLine.options.declarationDir || ref.commandLine.options.outDir; + if (declarationDir) { + setOfDeclarationDirectories.add(host.toPath(declarationDir)); + } + } + }); + } + return fileOrDirectoryExistsUsingSource( + path, + /*isFile*/ + false + ); + }; + } + if (originalGetDirectories) { + host.compilerHost.getDirectories = (path) => !host.getResolvedProjectReferences() || originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path) ? originalGetDirectories.call(host.compilerHost, path) : []; + } + if (originalRealpath) { + host.compilerHost.realpath = (s) => { + var _a; + return ((_a = host.getSymlinkCache().getSymlinkedFiles()) == null ? void 0 : _a.get(host.toPath(s))) || originalRealpath.call(host.compilerHost, s); + }; + } + return { onProgramCreateComplete, fileExists, directoryExists }; + function onProgramCreateComplete() { + host.compilerHost.fileExists = originalFileExists; + host.compilerHost.directoryExists = originalDirectoryExists; + host.compilerHost.getDirectories = originalGetDirectories; + } + function fileExists(file) { + if (originalFileExists.call(host.compilerHost, file)) return true; + if (!host.getResolvedProjectReferences()) return false; + if (!isDeclarationFileName(file)) return false; + return fileOrDirectoryExistsUsingSource( + file, + /*isFile*/ + true + ); + } + function fileExistsIfProjectReferenceDts(file) { + const source = host.getSourceOfProjectReferenceRedirect(host.toPath(file)); + return source !== void 0 ? isString(source) ? originalFileExists.call(host.compilerHost, source) : true : void 0; + } + function directoryExistsIfProjectReferenceDeclDir(dir) { + const dirPath = host.toPath(dir); + const dirPathWithTrailingDirectorySeparator = `${dirPath}${directorySeparator}`; + return forEachKey( + setOfDeclarationDirectories, + (declDirPath) => dirPath === declDirPath || // Any parent directory of declaration dir + startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) || // Any directory inside declaration dir + startsWith(dirPath, `${declDirPath}/`) + ); + } + function handleDirectoryCouldBeSymlink(directory) { + var _a; + if (!host.getResolvedProjectReferences() || containsIgnoredPath(directory)) return; + if (!originalRealpath || !directory.includes(nodeModulesPathPart)) return; + const symlinkCache = host.getSymlinkCache(); + const directoryPath = ensureTrailingDirectorySeparator(host.toPath(directory)); + if ((_a = symlinkCache.getSymlinkedDirectories()) == null ? void 0 : _a.has(directoryPath)) return; + const real = normalizePath(originalRealpath.call(host.compilerHost, directory)); + let realPath2; + if (real === directory || (realPath2 = ensureTrailingDirectorySeparator(host.toPath(real))) === directoryPath) { + symlinkCache.setSymlinkedDirectory(directoryPath, false); + return; + } + symlinkCache.setSymlinkedDirectory(directory, { + real: ensureTrailingDirectorySeparator(real), + realPath: realPath2 + }); + } + function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { + var _a; + const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); + const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); + if (result !== void 0) return result; + const symlinkCache = host.getSymlinkCache(); + const symlinkedDirectories = symlinkCache.getSymlinkedDirectories(); + if (!symlinkedDirectories) return false; + const fileOrDirectoryPath = host.toPath(fileOrDirectory); + if (!fileOrDirectoryPath.includes(nodeModulesPathPart)) return false; + if (isFile && ((_a = symlinkCache.getSymlinkedFiles()) == null ? void 0 : _a.has(fileOrDirectoryPath))) return true; + return firstDefinedIterator( + symlinkedDirectories.entries(), + ([directoryPath, symlinkedDirectory]) => { + if (!symlinkedDirectory || !startsWith(fileOrDirectoryPath, directoryPath)) return void 0; + const result2 = fileOrDirectoryExistsUsingSource2(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath)); + if (isFile && result2) { + const absolutePath = getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory()); + symlinkCache.setSymlinkedFile( + fileOrDirectoryPath, + `${symlinkedDirectory.real}${absolutePath.replace(new RegExp(directoryPath, "i"), "")}` + ); + } + return result2; + } + ) || false; + } +} +var emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0, emittedFiles: void 0, emitSkipped: true }; +function handleNoEmitOptions(program, sourceFile, writeFile2, cancellationToken) { + const options = program.getCompilerOptions(); + if (options.noEmit) { + program.getSemanticDiagnostics(sourceFile, cancellationToken); + return sourceFile || options.outFile ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile2, cancellationToken); + } + if (!options.noEmitOnError) return void 0; + let diagnostics = [ + ...program.getOptionsDiagnostics(cancellationToken), + ...program.getSyntacticDiagnostics(sourceFile, cancellationToken), + ...program.getGlobalDiagnostics(cancellationToken), + ...program.getSemanticDiagnostics(sourceFile, cancellationToken) + ]; + if (diagnostics.length === 0 && getEmitDeclarations(program.getCompilerOptions())) { + diagnostics = program.getDeclarationDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ); + } + if (!diagnostics.length) return void 0; + let emittedFiles; + if (!sourceFile && !options.outFile) { + const emitResult = program.emitBuildInfo(writeFile2, cancellationToken); + if (emitResult.diagnostics) diagnostics = [...diagnostics, ...emitResult.diagnostics]; + emittedFiles = emitResult.emittedFiles; + } + return { diagnostics, sourceMaps: void 0, emittedFiles, emitSkipped: true }; +} +function filterSemanticDiagnostics(diagnostic, option) { + return filter(diagnostic, (d) => !d.skippedOn || !option[d.skippedOn]); +} +function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host) { + return { + fileExists: (f) => directoryStructureHost.fileExists(f), + readDirectory(root, extensions, excludes, includes, depth) { + Debug.assertIsDefined(directoryStructureHost.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"); + return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth); + }, + readFile: (f) => directoryStructureHost.readFile(f), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath), + useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(), + getCurrentDirectory: () => host.getCurrentDirectory(), + onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined, + trace: host.trace ? (s) => host.trace(s) : void 0 + }; +} +function resolveProjectReferencePath(ref) { + return resolveConfigFileProjectName(ref.path); +} +function getResolutionDiagnostic(options, { extension }, { isDeclarationFile }) { + switch (extension) { + case ".ts" /* Ts */: + case ".d.ts" /* Dts */: + case ".mts" /* Mts */: + case ".d.mts" /* Dmts */: + case ".cts" /* Cts */: + case ".d.cts" /* Dcts */: + return void 0; + case ".tsx" /* Tsx */: + return needJsx(); + case ".jsx" /* Jsx */: + return needJsx() || needAllowJs(); + case ".js" /* Js */: + case ".mjs" /* Mjs */: + case ".cjs" /* Cjs */: + return needAllowJs(); + case ".json" /* Json */: + return needResolveJsonModule(); + default: + return needAllowArbitraryExtensions(); + } + function needJsx() { + return options.jsx ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set; + } + function needAllowJs() { + return getAllowJSCompilerOption(options) || !getStrictOptionValue(options, "noImplicitAny") ? void 0 : Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type; + } + function needResolveJsonModule() { + return getResolveJsonModule(options) ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used; + } + function needAllowArbitraryExtensions() { + return isDeclarationFile || options.allowArbitraryExtensions ? void 0 : Diagnostics.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set; + } +} +function getModuleNames({ imports, moduleAugmentations }) { + const res = imports.map((i) => i); + for (const aug of moduleAugmentations) { + if (aug.kind === 11 /* StringLiteral */) { + res.push(aug); + } + } + return res; +} +function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) { + if (index < imports.length) return imports[index]; + let augIndex = imports.length; + for (const aug of moduleAugmentations) { + if (aug.kind === 11 /* StringLiteral */) { + if (index === augIndex) return aug; + augIndex++; + } + } + Debug.fail("should never ask for module name at index higher than possible module name"); +} + +// src/compiler/builderState.ts +var BuilderState; +((BuilderState2) => { + function createManyToManyPathMap() { + function create2(forward, reverse, deleted) { + const map2 = { + getKeys: (v) => reverse.get(v), + getValues: (k) => forward.get(k), + keys: () => forward.keys(), + size: () => forward.size, + deleteKey: (k) => { + (deleted || (deleted = /* @__PURE__ */ new Set())).add(k); + const set = forward.get(k); + if (!set) { + return false; + } + set.forEach((v) => deleteFromMultimap(reverse, v, k)); + forward.delete(k); + return true; + }, + set: (k, vSet) => { + deleted == null ? void 0 : deleted.delete(k); + const existingVSet = forward.get(k); + forward.set(k, vSet); + existingVSet == null ? void 0 : existingVSet.forEach((v) => { + if (!vSet.has(v)) { + deleteFromMultimap(reverse, v, k); + } + }); + vSet.forEach((v) => { + if (!(existingVSet == null ? void 0 : existingVSet.has(v))) { + addToMultimap(reverse, v, k); + } + }); + return map2; + } + }; + return map2; + } + return create2( + /* @__PURE__ */ new Map(), + /* @__PURE__ */ new Map(), + /*deleted*/ + void 0 + ); + } + BuilderState2.createManyToManyPathMap = createManyToManyPathMap; + function addToMultimap(map2, k, v) { + let set = map2.get(k); + if (!set) { + set = /* @__PURE__ */ new Set(); + map2.set(k, set); + } + set.add(v); + } + function deleteFromMultimap(map2, k, v) { + const set = map2.get(k); + if (set == null ? void 0 : set.delete(v)) { + if (!set.size) { + map2.delete(k); + } + return true; + } + return false; + } + function getReferencedFilesFromImportedModuleSymbol(symbol) { + return mapDefined(symbol.declarations, (declaration) => { + var _a; + return (_a = getSourceFileOfNode(declaration)) == null ? void 0 : _a.resolvedPath; + }); + } + function getReferencedFilesFromImportLiteral(checker, importName) { + const symbol = checker.getSymbolAtLocation(importName); + return symbol && getReferencedFilesFromImportedModuleSymbol(symbol); + } + function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) { + return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName); + } + function getReferencedFiles(program, sourceFile, getCanonicalFileName) { + let referencedFiles; + if (sourceFile.imports && sourceFile.imports.length > 0) { + const checker = program.getTypeChecker(); + for (const importName of sourceFile.imports) { + const declarationSourceFilePaths = getReferencedFilesFromImportLiteral(checker, importName); + declarationSourceFilePaths == null ? void 0 : declarationSourceFilePaths.forEach(addReferencedFile); + } + } + const sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath); + if (sourceFile.referencedFiles && sourceFile.referencedFiles.length > 0) { + for (const referencedFile of sourceFile.referencedFiles) { + const referencedPath = getReferencedFileFromFileName(program, referencedFile.fileName, sourceFileDirectory, getCanonicalFileName); + addReferencedFile(referencedPath); + } + } + program.forEachResolvedTypeReferenceDirective(({ resolvedTypeReferenceDirective }) => { + if (!resolvedTypeReferenceDirective) { + return; + } + const fileName = resolvedTypeReferenceDirective.resolvedFileName; + const typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName); + addReferencedFile(typeFilePath); + }, sourceFile); + if (sourceFile.moduleAugmentations.length) { + const checker = program.getTypeChecker(); + for (const moduleName of sourceFile.moduleAugmentations) { + if (!isStringLiteral(moduleName)) continue; + const symbol = checker.getSymbolAtLocation(moduleName); + if (!symbol) continue; + addReferenceFromAmbientModule(symbol); + } + } + for (const ambientModule of program.getTypeChecker().getAmbientModules()) { + if (ambientModule.declarations && ambientModule.declarations.length > 1) { + addReferenceFromAmbientModule(ambientModule); + } + } + return referencedFiles; + function addReferenceFromAmbientModule(symbol) { + if (!symbol.declarations) { + return; + } + for (const declaration of symbol.declarations) { + const declarationSourceFile = getSourceFileOfNode(declaration); + if (declarationSourceFile && declarationSourceFile !== sourceFile) { + addReferencedFile(declarationSourceFile.resolvedPath); + } + } + } + function addReferencedFile(referencedPath) { + (referencedFiles || (referencedFiles = /* @__PURE__ */ new Set())).add(referencedPath); + } + } + function canReuseOldState(newReferencedMap, oldState) { + return oldState && !oldState.referencedMap === !newReferencedMap; + } + BuilderState2.canReuseOldState = canReuseOldState; + function createReferencedMap(options) { + return options.module !== 0 /* None */ && !options.outFile ? createManyToManyPathMap() : void 0; + } + BuilderState2.createReferencedMap = createReferencedMap; + function create(newProgram, oldState, disableUseFileVersionAsSignature) { + var _a, _b; + const fileInfos = /* @__PURE__ */ new Map(); + const options = newProgram.getCompilerOptions(); + const referencedMap = createReferencedMap(options); + const useOldState = canReuseOldState(referencedMap, oldState); + newProgram.getTypeChecker(); + for (const sourceFile of newProgram.getSourceFiles()) { + const version2 = Debug.checkDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set"); + const oldUncommittedSignature = useOldState ? (_a = oldState.oldSignatures) == null ? void 0 : _a.get(sourceFile.resolvedPath) : void 0; + const signature = oldUncommittedSignature === void 0 ? useOldState ? (_b = oldState.fileInfos.get(sourceFile.resolvedPath)) == null ? void 0 : _b.signature : void 0 : oldUncommittedSignature || void 0; + if (referencedMap) { + const newReferences = getReferencedFiles(newProgram, sourceFile, newProgram.getCanonicalFileName); + if (newReferences) { + referencedMap.set(sourceFile.resolvedPath, newReferences); + } + } + fileInfos.set(sourceFile.resolvedPath, { + version: version2, + signature, + // No need to calculate affectsGlobalScope with --out since its not used at all + affectsGlobalScope: !options.outFile ? isFileAffectingGlobalScope(sourceFile) || void 0 : void 0, + impliedFormat: sourceFile.impliedNodeFormat + }); + } + return { + fileInfos, + referencedMap, + useFileVersionAsSignature: !disableUseFileVersionAsSignature && !useOldState + }; + } + BuilderState2.create = create; + function releaseCache2(state) { + state.allFilesExcludingDefaultLibraryFile = void 0; + state.allFileNames = void 0; + } + BuilderState2.releaseCache = releaseCache2; + function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, host) { + var _a; + const result = getFilesAffectedByWithOldState( + state, + programOfThisState, + path, + cancellationToken, + host + ); + (_a = state.oldSignatures) == null ? void 0 : _a.clear(); + return result; + } + BuilderState2.getFilesAffectedBy = getFilesAffectedBy; + function getFilesAffectedByWithOldState(state, programOfThisState, path, cancellationToken, host) { + const sourceFile = programOfThisState.getSourceFileByPath(path); + if (!sourceFile) { + return emptyArray; + } + if (!updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host)) { + return [sourceFile]; + } + return (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, cancellationToken, host); + } + BuilderState2.getFilesAffectedByWithOldState = getFilesAffectedByWithOldState; + function updateSignatureOfFile(state, signature, path) { + state.fileInfos.get(path).signature = signature; + (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(path); + } + BuilderState2.updateSignatureOfFile = updateSignatureOfFile; + function computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, onNewSignature) { + programOfThisState.emit( + sourceFile, + (fileName, text, _writeByteOrderMark, _onError, sourceFiles, data) => { + Debug.assert(isDeclarationFileName(fileName), `File extension for signature expected to be dts: Got:: ${fileName}`); + onNewSignature( + computeSignatureWithDiagnostics( + programOfThisState, + sourceFile, + text, + host, + data + ), + sourceFiles + ); + }, + cancellationToken, + 2 /* BuilderSignature */, + /*customTransformers*/ + void 0, + /*forceDtsEmit*/ + true + ); + } + BuilderState2.computeDtsSignature = computeDtsSignature; + function updateShapeSignature(state, programOfThisState, sourceFile, cancellationToken, host, useFileVersionAsSignature = state.useFileVersionAsSignature) { + var _a; + if ((_a = state.hasCalledUpdateShapeSignature) == null ? void 0 : _a.has(sourceFile.resolvedPath)) return false; + const info = state.fileInfos.get(sourceFile.resolvedPath); + const prevSignature = info.signature; + let latestSignature; + if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) { + computeDtsSignature(programOfThisState, sourceFile, cancellationToken, host, (signature) => { + latestSignature = signature; + if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, 0 /* ComputedDts */); + }); + } + if (latestSignature === void 0) { + latestSignature = sourceFile.version; + if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, 2 /* UsedVersion */); + } + (state.oldSignatures || (state.oldSignatures = /* @__PURE__ */ new Map())).set(sourceFile.resolvedPath, prevSignature || false); + (state.hasCalledUpdateShapeSignature || (state.hasCalledUpdateShapeSignature = /* @__PURE__ */ new Set())).add(sourceFile.resolvedPath); + info.signature = latestSignature; + return latestSignature !== prevSignature; + } + BuilderState2.updateShapeSignature = updateShapeSignature; + function getAllDependencies(state, programOfThisState, sourceFile) { + const compilerOptions = programOfThisState.getCompilerOptions(); + if (compilerOptions.outFile) { + return getAllFileNames(state, programOfThisState); + } + if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) { + return getAllFileNames(state, programOfThisState); + } + const seenMap = /* @__PURE__ */ new Set(); + const queue = [sourceFile.resolvedPath]; + while (queue.length) { + const path = queue.pop(); + if (!seenMap.has(path)) { + seenMap.add(path); + const references = state.referencedMap.getValues(path); + if (references) { + for (const key of references.keys()) { + queue.push(key); + } + } + } + } + return arrayFrom(mapDefinedIterator(seenMap.keys(), (path) => { + var _a; + return ((_a = programOfThisState.getSourceFileByPath(path)) == null ? void 0 : _a.fileName) ?? path; + })); + } + BuilderState2.getAllDependencies = getAllDependencies; + function getAllFileNames(state, programOfThisState) { + if (!state.allFileNames) { + const sourceFiles = programOfThisState.getSourceFiles(); + state.allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles.map((file) => file.fileName); + } + return state.allFileNames; + } + function getReferencedByPaths(state, referencedFilePath) { + const keys = state.referencedMap.getKeys(referencedFilePath); + return keys ? arrayFrom(keys.keys()) : []; + } + BuilderState2.getReferencedByPaths = getReferencedByPaths; + function containsOnlyAmbientModules(sourceFile) { + for (const statement of sourceFile.statements) { + if (!isModuleWithStringLiteralName(statement)) { + return false; + } + } + return true; + } + function containsGlobalScopeAugmentation(sourceFile) { + return some(sourceFile.moduleAugmentations, (augmentation) => isGlobalScopeAugmentation(augmentation.parent)); + } + function isFileAffectingGlobalScope(sourceFile) { + return containsGlobalScopeAugmentation(sourceFile) || !isExternalOrCommonJsModule(sourceFile) && !isJsonSourceFile(sourceFile) && !containsOnlyAmbientModules(sourceFile); + } + function getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, firstSourceFile) { + if (state.allFilesExcludingDefaultLibraryFile) { + return state.allFilesExcludingDefaultLibraryFile; + } + let result; + if (firstSourceFile) addSourceFile(firstSourceFile); + for (const sourceFile of programOfThisState.getSourceFiles()) { + if (sourceFile !== firstSourceFile) { + addSourceFile(sourceFile); + } + } + state.allFilesExcludingDefaultLibraryFile = result || emptyArray; + return state.allFilesExcludingDefaultLibraryFile; + function addSourceFile(sourceFile) { + if (!programOfThisState.isSourceFileDefaultLibrary(sourceFile)) { + (result || (result = [])).push(sourceFile); + } + } + } + BuilderState2.getAllFilesExcludingDefaultLibraryFile = getAllFilesExcludingDefaultLibraryFile; + function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape) { + const compilerOptions = programOfThisState.getCompilerOptions(); + if (compilerOptions && compilerOptions.outFile) { + return [sourceFileWithUpdatedShape]; + } + return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape); + } + function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cancellationToken, host) { + if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) { + return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape); + } + const compilerOptions = programOfThisState.getCompilerOptions(); + if (compilerOptions && (getIsolatedModules(compilerOptions) || compilerOptions.outFile)) { + return [sourceFileWithUpdatedShape]; + } + const seenFileNamesMap = /* @__PURE__ */ new Map(); + seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape); + const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath); + while (queue.length > 0) { + const currentPath = queue.pop(); + if (!seenFileNamesMap.has(currentPath)) { + const currentSourceFile = programOfThisState.getSourceFileByPath(currentPath); + seenFileNamesMap.set(currentPath, currentSourceFile); + if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cancellationToken, host)) { + queue.push(...getReferencedByPaths(state, currentSourceFile.resolvedPath)); + } + } + } + return arrayFrom(mapDefinedIterator(seenFileNamesMap.values(), (value) => value)); + } +})(BuilderState || (BuilderState = {})); + +// src/compiler/builder.ts +function getBuilderFileEmit(options) { + let result = 1 /* Js */; + if (options.sourceMap) result = result | 2 /* JsMap */; + if (options.inlineSourceMap) result = result | 4 /* JsInlineMap */; + if (getEmitDeclarations(options)) result = result | 8 /* Dts */; + if (options.declarationMap) result = result | 16 /* DtsMap */; + if (options.emitDeclarationOnly) result = result & 24 /* AllDts */; + return result; +} +function getPendingEmitKind(optionsOrEmitKind, oldOptionsOrEmitKind) { + const oldEmitKind = oldOptionsOrEmitKind && (isNumber(oldOptionsOrEmitKind) ? oldOptionsOrEmitKind : getBuilderFileEmit(oldOptionsOrEmitKind)); + const emitKind = isNumber(optionsOrEmitKind) ? optionsOrEmitKind : getBuilderFileEmit(optionsOrEmitKind); + if (oldEmitKind === emitKind) return 0 /* None */; + if (!oldEmitKind || !emitKind) return emitKind; + const diff = oldEmitKind ^ emitKind; + let result = 0 /* None */; + if (diff & 7 /* AllJs */) result = emitKind & 7 /* AllJs */; + if (diff & 24 /* AllDts */) result = result | emitKind & 24 /* AllDts */; + return result; +} +function hasSameKeys(map1, map2) { + return map1 === map2 || map1 !== void 0 && map2 !== void 0 && map1.size === map2.size && !forEachKey(map1, (key) => !map2.has(key)); +} +function createBuilderProgramState(newProgram, oldState) { + var _a, _b; + const state = BuilderState.create( + newProgram, + oldState, + /*disableUseFileVersionAsSignature*/ + false + ); + state.program = newProgram; + const compilerOptions = newProgram.getCompilerOptions(); + state.compilerOptions = compilerOptions; + const outFilePath = compilerOptions.outFile; + if (!outFilePath) { + state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); + } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === oldState.compilerOptions.outFile) { + state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature); + } + state.changedFilesSet = /* @__PURE__ */ new Set(); + state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0; + const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState); + const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0; + const canCopySemanticDiagnostics = useOldState && oldState.semanticDiagnosticsPerFile && !!state.semanticDiagnosticsPerFile && !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions); + const canCopyEmitSignatures = compilerOptions.composite && (oldState == null ? void 0 : oldState.emitSignatures) && !outFilePath && !compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions); + if (useOldState) { + (_a = oldState.changedFilesSet) == null ? void 0 : _a.forEach((value) => state.changedFilesSet.add(value)); + if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) { + state.affectedFilesPendingEmit = new Map(oldState.affectedFilesPendingEmit); + state.seenAffectedFiles = /* @__PURE__ */ new Set(); + } + state.programEmitPending = oldState.programEmitPending; + } else { + state.buildInfoEmitPending = true; + } + const referencedMap = state.referencedMap; + const oldReferencedMap = useOldState ? oldState.referencedMap : void 0; + const copyDeclarationFileDiagnostics = canCopySemanticDiagnostics && !compilerOptions.skipLibCheck === !oldCompilerOptions.skipLibCheck; + const copyLibFileDiagnostics = copyDeclarationFileDiagnostics && !compilerOptions.skipDefaultLibCheck === !oldCompilerOptions.skipDefaultLibCheck; + state.fileInfos.forEach((info, sourceFilePath) => { + var _a2; + let oldInfo; + let newReferences; + if (!useOldState || // File wasn't present in old state + !(oldInfo = oldState.fileInfos.get(sourceFilePath)) || // versions dont match + oldInfo.version !== info.version || // Implied formats dont match + oldInfo.impliedFormat !== info.impliedFormat || // Referenced files changed + !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || // Referenced file was deleted in the new program + newReferences && forEachKey(newReferences, (path) => !state.fileInfos.has(path) && oldState.fileInfos.has(path))) { + addFileToChangeSet(state, sourceFilePath); + } else { + const sourceFile = newProgram.getSourceFileByPath(sourceFilePath); + const emitDiagnostics = (_a2 = oldState.emitDiagnosticsPerFile) == null ? void 0 : _a2.get(sourceFilePath); + if (emitDiagnostics) { + (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set( + sourceFilePath, + oldState.hasReusableDiagnostic ? convertToDiagnostics(emitDiagnostics, sourceFilePath, newProgram) : repopulateDiagnostics(emitDiagnostics, newProgram) + ); + } + if (canCopySemanticDiagnostics) { + if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics) return; + if (sourceFile.hasNoDefaultLib && !copyLibFileDiagnostics) return; + const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath); + if (diagnostics) { + state.semanticDiagnosticsPerFile.set( + sourceFilePath, + oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, sourceFilePath, newProgram) : repopulateDiagnostics(diagnostics, newProgram) + ); + (state.semanticDiagnosticsFromOldState ?? (state.semanticDiagnosticsFromOldState = /* @__PURE__ */ new Set())).add(sourceFilePath); + } + } + } + if (canCopyEmitSignatures) { + const oldEmitSignature = oldState.emitSignatures.get(sourceFilePath); + if (oldEmitSignature) { + (state.emitSignatures ?? (state.emitSignatures = /* @__PURE__ */ new Map())).set(sourceFilePath, getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldEmitSignature)); + } + } + }); + if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => { + if (state.fileInfos.has(sourceFilePath)) return false; + if (outFilePath || info.affectsGlobalScope) return true; + state.buildInfoEmitPending = true; + return false; + })) { + BuilderState.getAllFilesExcludingDefaultLibraryFile( + state, + newProgram, + /*firstSourceFile*/ + void 0 + ).forEach((file) => addFileToChangeSet(state, file.resolvedPath)); + } else if (oldCompilerOptions) { + const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions); + if (pendingEmitKind !== 0 /* None */) { + if (!outFilePath) { + newProgram.getSourceFiles().forEach((f) => { + if (!state.changedFilesSet.has(f.resolvedPath)) { + addToAffectedFilesPendingEmit( + state, + f.resolvedPath, + pendingEmitKind + ); + } + }); + Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size); + state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set(); + state.buildInfoEmitPending = true; + } else { + state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind; + } + } + } + return state; +} +function addFileToChangeSet(state, path) { + state.changedFilesSet.add(path); + state.buildInfoEmitPending = true; + state.programEmitPending = void 0; +} +function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) { + return !!options.declarationMap === !!oldOptions.declarationMap ? ( + // Use same format of signature + oldEmitSignature + ) : ( + // Convert to different format + isString(oldEmitSignature) ? [oldEmitSignature] : oldEmitSignature[0] + ); +} +function repopulateDiagnostics(diagnostics, newProgram) { + if (!diagnostics.length) return diagnostics; + return sameMap(diagnostics, (diag2) => { + if (isString(diag2.messageText)) return diag2; + const repopulatedChain = convertOrRepopulateDiagnosticMessageChain(diag2.messageText, diag2.file, newProgram, (chain) => { + var _a; + return (_a = chain.repopulateInfo) == null ? void 0 : _a.call(chain); + }); + return repopulatedChain === diag2.messageText ? diag2 : { ...diag2, messageText: repopulatedChain }; + }); +} +function convertOrRepopulateDiagnosticMessageChain(chain, sourceFile, newProgram, repopulateInfo) { + const info = repopulateInfo(chain); + if (info) { + return { + ...createModuleNotFoundChain(sourceFile, newProgram, info.moduleReference, info.mode, info.packageName || info.moduleReference), + next: convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo) + }; + } + const next = convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo); + return next === chain.next ? chain : { ...chain, next }; +} +function convertOrRepopulateDiagnosticMessageChainArray(array, sourceFile, newProgram, repopulateInfo) { + return sameMap(array, (chain) => convertOrRepopulateDiagnosticMessageChain(chain, sourceFile, newProgram, repopulateInfo)); +} +function convertToDiagnostics(diagnostics, diagnosticFilePath, newProgram) { + if (!diagnostics.length) return emptyArray; + let buildInfoDirectory; + return diagnostics.map((diagnostic) => { + const result = convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory); + result.reportsUnnecessary = diagnostic.reportsUnnecessary; + result.reportsDeprecated = diagnostic.reportDeprecated; + result.source = diagnostic.source; + result.skippedOn = diagnostic.skippedOn; + const { relatedInformation } = diagnostic; + result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToDiagnosticRelatedInformation(r, diagnosticFilePath, newProgram, toPathInBuildInfoDirectory)) : [] : void 0; + return result; + }); + function toPathInBuildInfoDirectory(path) { + buildInfoDirectory ?? (buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()))); + return toPath(path, buildInfoDirectory, newProgram.getCanonicalFileName); + } +} +function convertToDiagnosticRelatedInformation(diagnostic, diagnosticFilePath, newProgram, toPath3) { + const { file } = diagnostic; + const sourceFile = file !== false ? newProgram.getSourceFileByPath(file ? toPath3(file) : diagnosticFilePath) : void 0; + return { + ...diagnostic, + file: sourceFile, + messageText: isString(diagnostic.messageText) ? diagnostic.messageText : convertOrRepopulateDiagnosticMessageChain(diagnostic.messageText, sourceFile, newProgram, (chain) => chain.info) + }; +} +function releaseCache(state) { + BuilderState.releaseCache(state); + state.program = void 0; +} +function backupBuilderProgramEmitState(state) { + const outFilePath = state.compilerOptions.outFile; + Debug.assert(!state.changedFilesSet.size || outFilePath); + return { + affectedFilesPendingEmit: state.affectedFilesPendingEmit && new Map(state.affectedFilesPendingEmit), + seenEmittedFiles: state.seenEmittedFiles && new Map(state.seenEmittedFiles), + programEmitPending: state.programEmitPending, + emitSignatures: state.emitSignatures && new Map(state.emitSignatures), + outSignature: state.outSignature, + latestChangedDtsFile: state.latestChangedDtsFile, + hasChangedEmitSignature: state.hasChangedEmitSignature, + changedFilesSet: outFilePath ? new Set(state.changedFilesSet) : void 0, + buildInfoEmitPending: state.buildInfoEmitPending, + emitDiagnosticsPerFile: state.emitDiagnosticsPerFile && new Map(state.emitDiagnosticsPerFile) + }; +} +function restoreBuilderProgramEmitState(state, savedEmitState) { + state.affectedFilesPendingEmit = savedEmitState.affectedFilesPendingEmit; + state.seenEmittedFiles = savedEmitState.seenEmittedFiles; + state.programEmitPending = savedEmitState.programEmitPending; + state.emitSignatures = savedEmitState.emitSignatures; + state.outSignature = savedEmitState.outSignature; + state.latestChangedDtsFile = savedEmitState.latestChangedDtsFile; + state.hasChangedEmitSignature = savedEmitState.hasChangedEmitSignature; + state.buildInfoEmitPending = savedEmitState.buildInfoEmitPending; + state.emitDiagnosticsPerFile = savedEmitState.emitDiagnosticsPerFile; + if (savedEmitState.changedFilesSet) state.changedFilesSet = savedEmitState.changedFilesSet; +} +function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) { + Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath)); +} +function getNextAffectedFile(state, cancellationToken, host) { + var _a; + while (true) { + const { affectedFiles } = state; + if (affectedFiles) { + const seenAffectedFiles = state.seenAffectedFiles; + let affectedFilesIndex = state.affectedFilesIndex; + while (affectedFilesIndex < affectedFiles.length) { + const affectedFile = affectedFiles[affectedFilesIndex]; + if (!seenAffectedFiles.has(affectedFile.resolvedPath)) { + state.affectedFilesIndex = affectedFilesIndex; + addToAffectedFilesPendingEmit(state, affectedFile.resolvedPath, getBuilderFileEmit(state.compilerOptions)); + handleDtsMayChangeOfAffectedFile( + state, + affectedFile, + cancellationToken, + host + ); + return affectedFile; + } + affectedFilesIndex++; + } + state.changedFilesSet.delete(state.currentChangedFilePath); + state.currentChangedFilePath = void 0; + (_a = state.oldSignatures) == null ? void 0 : _a.clear(); + state.affectedFiles = void 0; + } + const nextKey = state.changedFilesSet.keys().next(); + if (nextKey.done) { + return void 0; + } + const program = Debug.checkDefined(state.program); + const compilerOptions = program.getCompilerOptions(); + if (compilerOptions.outFile) { + Debug.assert(!state.semanticDiagnosticsPerFile); + return program; + } + state.affectedFiles = BuilderState.getFilesAffectedByWithOldState( + state, + program, + nextKey.value, + cancellationToken, + host + ); + state.currentChangedFilePath = nextKey.value; + state.affectedFilesIndex = 0; + if (!state.seenAffectedFiles) state.seenAffectedFiles = /* @__PURE__ */ new Set(); + } +} +function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) { + var _a; + if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return; + if (!emitOnlyDtsFiles) return state.affectedFilesPendingEmit = void 0; + state.affectedFilesPendingEmit.forEach((emitKind, path) => { + const pending = emitKind & 7 /* AllJs */; + if (!pending) state.affectedFilesPendingEmit.delete(path); + else state.affectedFilesPendingEmit.set(path, pending); + }); +} +function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles) { + var _a; + if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return void 0; + return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path) => { + var _a2; + const affectedFile = state.program.getSourceFileByPath(path); + if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) { + state.affectedFilesPendingEmit.delete(path); + return void 0; + } + const seenKind = (_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath); + let pendingKind = getPendingEmitKind(emitKind, seenKind); + if (emitOnlyDtsFiles) pendingKind = pendingKind & 24 /* AllDts */; + if (pendingKind) return { affectedFile, emitKind: pendingKind }; + }); +} +function getNextPendingEmitDiagnosticsFile(state) { + var _a; + if (!((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) return void 0; + return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path) => { + var _a2; + const affectedFile = state.program.getSourceFileByPath(path); + if (!affectedFile || !sourceFileMayBeEmitted(affectedFile, state.program)) { + state.emitDiagnosticsPerFile.delete(path); + return void 0; + } + const seenKind = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath)) || 0 /* None */; + if (!(seenKind & 24 /* AllDts */)) return { affectedFile, diagnostics, seenKind }; + }); +} +function removeDiagnosticsOfLibraryFiles(state) { + if (!state.cleanedDiagnosticsOfLibFiles) { + state.cleanedDiagnosticsOfLibFiles = true; + const program = Debug.checkDefined(state.program); + const options = program.getCompilerOptions(); + forEach(program.getSourceFiles(), (f) => program.isSourceFileDefaultLibrary(f) && !skipTypeChecking(f, options, program) && removeSemanticDiagnosticsOf(state, f.resolvedPath)); + } +} +function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) { + removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath); + if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) { + removeDiagnosticsOfLibraryFiles(state); + BuilderState.updateShapeSignature( + state, + Debug.checkDefined(state.program), + affectedFile, + cancellationToken, + host + ); + return; + } + if (state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) return; + handleDtsMayChangeOfReferencingExportOfAffectedFile( + state, + affectedFile, + cancellationToken, + host + ); +} +function handleDtsMayChangeOf(state, path, invalidateJsFiles, cancellationToken, host) { + removeSemanticDiagnosticsOf(state, path); + if (!state.changedFilesSet.has(path)) { + const program = Debug.checkDefined(state.program); + const sourceFile = program.getSourceFileByPath(path); + if (sourceFile) { + BuilderState.updateShapeSignature( + state, + program, + sourceFile, + cancellationToken, + host, + /*useFileVersionAsSignature*/ + true + ); + if (invalidateJsFiles) { + addToAffectedFilesPendingEmit(state, path, getBuilderFileEmit(state.compilerOptions)); + } else if (getEmitDeclarations(state.compilerOptions)) { + addToAffectedFilesPendingEmit(state, path, state.compilerOptions.declarationMap ? 24 /* AllDts */ : 8 /* Dts */); + } + } + } +} +function removeSemanticDiagnosticsOf(state, path) { + if (!state.semanticDiagnosticsFromOldState) { + return true; + } + state.semanticDiagnosticsFromOldState.delete(path); + state.semanticDiagnosticsPerFile.delete(path); + return !state.semanticDiagnosticsFromOldState.size; +} +function isChangedSignature(state, path) { + const oldSignature = Debug.checkDefined(state.oldSignatures).get(path) || void 0; + const newSignature = Debug.checkDefined(state.fileInfos.get(path)).signature; + return newSignature !== oldSignature; +} +function handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host) { + var _a; + if (!((_a = state.fileInfos.get(filePath)) == null ? void 0 : _a.affectsGlobalScope)) return false; + BuilderState.getAllFilesExcludingDefaultLibraryFile( + state, + state.program, + /*firstSourceFile*/ + void 0 + ).forEach( + (file) => handleDtsMayChangeOf( + state, + file.resolvedPath, + invalidateJsFiles, + cancellationToken, + host + ) + ); + removeDiagnosticsOfLibraryFiles(state); + return true; +} +function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile, cancellationToken, host) { + var _a, _b; + if (!state.referencedMap || !state.changedFilesSet.has(affectedFile.resolvedPath)) return; + if (!isChangedSignature(state, affectedFile.resolvedPath)) return; + if (getIsolatedModules(state.compilerOptions)) { + const seenFileNamesMap = /* @__PURE__ */ new Map(); + seenFileNamesMap.set(affectedFile.resolvedPath, true); + const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath); + while (queue.length > 0) { + const currentPath = queue.pop(); + if (!seenFileNamesMap.has(currentPath)) { + seenFileNamesMap.set(currentPath, true); + if (handleDtsMayChangeOfGlobalScope( + state, + currentPath, + /*invalidateJsFiles*/ + false, + cancellationToken, + host + )) return; + handleDtsMayChangeOf( + state, + currentPath, + /*invalidateJsFiles*/ + false, + cancellationToken, + host + ); + if (isChangedSignature(state, currentPath)) { + const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath); + queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath)); + } + } + } + } + const seenFileAndExportsOfFile = /* @__PURE__ */ new Set(); + const invalidateJsFiles = !!((_a = affectedFile.symbol) == null ? void 0 : _a.exports) && !!forEachEntry( + affectedFile.symbol.exports, + (exported) => { + if ((exported.flags & 128 /* ConstEnum */) !== 0) return true; + const aliased = skipAlias(exported, state.program.getTypeChecker()); + if (aliased === exported) return false; + return (aliased.flags & 128 /* ConstEnum */) !== 0 && some(aliased.declarations, (d) => getSourceFileOfNode(d) === affectedFile); + } + ); + (_b = state.referencedMap.getKeys(affectedFile.resolvedPath)) == null ? void 0 : _b.forEach((exportedFromPath) => { + if (handleDtsMayChangeOfGlobalScope(state, exportedFromPath, invalidateJsFiles, cancellationToken, host)) return true; + const references = state.referencedMap.getKeys(exportedFromPath); + return references && forEachKey(references, (filePath) => handleDtsMayChangeOfFileAndExportsOfFile( + state, + filePath, + invalidateJsFiles, + seenFileAndExportsOfFile, + cancellationToken, + host + )); + }); +} +function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, invalidateJsFiles, seenFileAndExportsOfFile, cancellationToken, host) { + var _a; + if (!tryAddToSet(seenFileAndExportsOfFile, filePath)) return void 0; + if (handleDtsMayChangeOfGlobalScope(state, filePath, invalidateJsFiles, cancellationToken, host)) return true; + handleDtsMayChangeOf(state, filePath, invalidateJsFiles, cancellationToken, host); + (_a = state.referencedMap.getKeys(filePath)) == null ? void 0 : _a.forEach( + (referencingFilePath) => handleDtsMayChangeOfFileAndExportsOfFile( + state, + referencingFilePath, + invalidateJsFiles, + seenFileAndExportsOfFile, + cancellationToken, + host + ) + ); + return void 0; +} +function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken) { + return concatenate( + getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken), + Debug.checkDefined(state.program).getProgramDiagnostics(sourceFile) + ); +} +function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken) { + const path = sourceFile.resolvedPath; + if (state.semanticDiagnosticsPerFile) { + const cachedDiagnostics = state.semanticDiagnosticsPerFile.get(path); + if (cachedDiagnostics) { + return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions); + } + } + const diagnostics = Debug.checkDefined(state.program).getBindAndCheckDiagnostics(sourceFile, cancellationToken); + if (state.semanticDiagnosticsPerFile) { + state.semanticDiagnosticsPerFile.set(path, diagnostics); + } + return filterSemanticDiagnostics(diagnostics, state.compilerOptions); +} +function isProgramBundleEmitBuildInfo(info) { + var _a; + return !!((_a = info.options) == null ? void 0 : _a.outFile); +} +function getBuildInfo2(state) { + var _a, _b; + const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory)); + const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0; + const fileNames = []; + const fileNameToFileId = /* @__PURE__ */ new Map(); + const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath(f, currentDirectory, state.program.getCanonicalFileName))); + const root = []; + if (state.compilerOptions.outFile) { + const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => { + const fileId = toFileId(key); + tryAddRoot(key, fileId); + return value.impliedFormat ? { version: value.version, impliedFormat: value.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : value.version; + }); + const program2 = { + fileNames, + fileInfos: fileInfos2, + root, + resolvedRoot: toResolvedRoot(), + options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions), + outSignature: state.outSignature, + latestChangedDtsFile, + pendingEmit: !state.programEmitPending ? void 0 : ( + // Pending is undefined or None is encoded as undefined + state.programEmitPending === getBuilderFileEmit(state.compilerOptions) ? false : ( + // Pending emit is same as deteremined by compilerOptions + state.programEmitPending + ) + ) + // Actual value + }; + return createBuildInfo(program2); + } + let fileIdsList; + let fileNamesToFileIdListId; + let emitSignatures; + const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]) => { + var _a2, _b2; + const fileId = toFileId(key); + tryAddRoot(key, fileId); + Debug.assert(fileNames[fileId - 1] === relativeToBuildInfo(key)); + const oldSignature = (_a2 = state.oldSignatures) == null ? void 0 : _a2.get(key); + const actualSignature = oldSignature !== void 0 ? oldSignature || void 0 : value.signature; + if (state.compilerOptions.composite) { + const file = state.program.getSourceFileByPath(key); + if (!isJsonSourceFile(file) && sourceFileMayBeEmitted(file, state.program)) { + const emitSignature = (_b2 = state.emitSignatures) == null ? void 0 : _b2.get(key); + if (emitSignature !== actualSignature) { + emitSignatures = append( + emitSignatures, + emitSignature === void 0 ? fileId : ( + // There is no emit, encode as false + // fileId, signature: emptyArray if signature only differs in dtsMap option than our own compilerOptions otherwise EmitSignature + [fileId, !isString(emitSignature) && emitSignature[0] === actualSignature ? emptyArray : emitSignature] + ) + ); + } + } + } + return value.version === actualSignature ? value.affectsGlobalScope || value.impliedFormat ? ( + // If file version is same as signature, dont serialize signature + { version: value.version, signature: void 0, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } + ) : ( + // If file info only contains version and signature and both are same we can just write string + value.version + ) : actualSignature !== void 0 ? ( + // If signature is not same as version, encode signature in the fileInfo + oldSignature === void 0 ? ( + // If we havent computed signature, use fileInfo as is + value + ) : ( + // Serialize fileInfo with new updated signature + { version: value.version, signature: actualSignature, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } + ) + ) : ( + // Signature of the FileInfo is undefined, serialize it as false + { version: value.version, signature: false, affectsGlobalScope: value.affectsGlobalScope, impliedFormat: value.impliedFormat } + ); + }); + let referencedMap; + if ((_a = state.referencedMap) == null ? void 0 : _a.size()) { + referencedMap = arrayFrom(state.referencedMap.keys()).sort(compareStringsCaseSensitive).map((key) => [ + toFileId(key), + toFileIdListId(state.referencedMap.getValues(key)) + ]); + } + const semanticDiagnosticsPerFile = convertToProgramBuildInfoDiagnostics(); + let affectedFilesPendingEmit; + if ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.size) { + const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions); + const seenFiles = /* @__PURE__ */ new Set(); + for (const path of arrayFrom(state.affectedFilesPendingEmit.keys()).sort(compareStringsCaseSensitive)) { + if (tryAddToSet(seenFiles, path)) { + const file = state.program.getSourceFileByPath(path); + if (!file || !sourceFileMayBeEmitted(file, state.program)) continue; + const fileId = toFileId(path), pendingEmit = state.affectedFilesPendingEmit.get(path); + affectedFilesPendingEmit = append( + affectedFilesPendingEmit, + pendingEmit === fullEmitForOptions ? fileId : ( + // Pending full emit per options + pendingEmit === 8 /* Dts */ ? [fileId] : ( + // Pending on Dts only + [fileId, pendingEmit] + ) + ) + // Anything else + ); + } + } + } + let changeFileSet; + if (state.changedFilesSet.size) { + for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) { + changeFileSet = append(changeFileSet, toFileId(path)); + } + } + const emitDiagnosticsPerFile = convertToProgramBuildInfoEmitDiagnostics(); + const program = { + fileNames, + fileInfos, + root, + resolvedRoot: toResolvedRoot(), + options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions), + fileIdsList, + referencedMap, + semanticDiagnosticsPerFile, + emitDiagnosticsPerFile, + affectedFilesPendingEmit, + changeFileSet, + emitSignatures, + latestChangedDtsFile + }; + return createBuildInfo(program); + function relativeToBuildInfoEnsuringAbsolutePath(path) { + return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory)); + } + function relativeToBuildInfo(path) { + return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, state.program.getCanonicalFileName)); + } + function toFileId(path) { + let fileId = fileNameToFileId.get(path); + if (fileId === void 0) { + fileNames.push(relativeToBuildInfo(path)); + fileNameToFileId.set(path, fileId = fileNames.length); + } + return fileId; + } + function toFileIdListId(set) { + const fileIds = arrayFrom(set.keys(), toFileId).sort(compareValues); + const key = fileIds.join(); + let fileIdListId = fileNamesToFileIdListId == null ? void 0 : fileNamesToFileIdListId.get(key); + if (fileIdListId === void 0) { + fileIdsList = append(fileIdsList, fileIds); + (fileNamesToFileIdListId ?? (fileNamesToFileIdListId = /* @__PURE__ */ new Map())).set(key, fileIdListId = fileIdsList.length); + } + return fileIdListId; + } + function tryAddRoot(path, fileId) { + const file = state.program.getSourceFile(path); + if (!state.program.getFileIncludeReasons().get(file.path).some((r) => r.kind === 0 /* RootFile */)) return; + if (!root.length) return root.push(fileId); + const last2 = root[root.length - 1]; + const isLastStartEnd = isArray(last2); + if (isLastStartEnd && last2[1] === fileId - 1) return last2[1] = fileId; + if (isLastStartEnd || root.length === 1 || last2 !== fileId - 1) return root.push(fileId); + const lastButOne = root[root.length - 2]; + if (!isNumber(lastButOne) || lastButOne !== last2 - 1) return root.push(fileId); + root[root.length - 2] = [lastButOne, fileId]; + return root.length = root.length - 1; + } + function toResolvedRoot() { + let result; + rootFileNames.forEach((path) => { + const file = state.program.getSourceFileByPath(path); + if (file && path !== file.resolvedPath) { + result = append(result, [toFileId(file.resolvedPath), toFileId(path)]); + } + }); + return result; + } + function convertToProgramBuildInfoCompilerOptions(options) { + let result; + const { optionsNameMap } = getOptionsNameMap(); + for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) { + const optionInfo = optionsNameMap.get(name.toLowerCase()); + if (optionInfo == null ? void 0 : optionInfo.affectsBuildInfo) { + (result || (result = {}))[name] = convertToReusableCompilerOptionValue( + optionInfo, + options[name] + ); + } + } + return result; + } + function convertToReusableCompilerOptionValue(option, value) { + if (option) { + Debug.assert(option.type !== "listOrElement"); + if (option.type === "list") { + const values = value; + if (option.element.isFilePath && values.length) { + return values.map(relativeToBuildInfoEnsuringAbsolutePath); + } + } else if (option.isFilePath) { + return relativeToBuildInfoEnsuringAbsolutePath(value); + } + } + return value; + } + function convertToProgramBuildInfoDiagnostics() { + let result; + state.fileInfos.forEach((_value, key) => { + var _a2; + const value = (_a2 = state.semanticDiagnosticsPerFile) == null ? void 0 : _a2.get(key); + if (!value) { + if (!state.changedFilesSet.has(key)) result = append(result, toFileId(key)); + } else if (value.length) { + result = append(result, [ + toFileId(key), + convertToReusableDiagnostics(value, key) + ]); + } + }); + return result; + } + function convertToProgramBuildInfoEmitDiagnostics() { + var _a2; + let result; + if (!((_a2 = state.emitDiagnosticsPerFile) == null ? void 0 : _a2.size)) return result; + for (const key of arrayFrom(state.emitDiagnosticsPerFile.keys()).sort(compareStringsCaseSensitive)) { + const value = state.emitDiagnosticsPerFile.get(key); + result = append(result, [ + toFileId(key), + convertToReusableDiagnostics(value, key) + ]); + } + return result; + } + function convertToReusableDiagnostics(diagnostics, diagnosticFilePath) { + Debug.assert(!!diagnostics.length); + return diagnostics.map((diagnostic) => { + const result = convertToReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath); + result.reportsUnnecessary = diagnostic.reportsUnnecessary; + result.reportDeprecated = diagnostic.reportsDeprecated; + result.source = diagnostic.source; + result.skippedOn = diagnostic.skippedOn; + const { relatedInformation } = diagnostic; + result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToReusableDiagnosticRelatedInformation(r, diagnosticFilePath)) : [] : void 0; + return result; + }); + } + function convertToReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath) { + const { file } = diagnostic; + return { + ...diagnostic, + file: file ? file.resolvedPath === diagnosticFilePath ? void 0 : relativeToBuildInfo(file.resolvedPath) : false, + messageText: isString(diagnostic.messageText) ? diagnostic.messageText : convertToReusableDiagnosticMessageChain(diagnostic.messageText) + }; + } + function convertToReusableDiagnosticMessageChain(chain) { + if (chain.repopulateInfo) { + return { + info: chain.repopulateInfo(), + next: convertToReusableDiagnosticMessageChainArray(chain.next) + }; + } + const next = convertToReusableDiagnosticMessageChainArray(chain.next); + return next === chain.next ? chain : { ...chain, next }; + } + function convertToReusableDiagnosticMessageChainArray(array) { + if (!array) return array; + return forEach(array, (chain, index) => { + const reusable = convertToReusableDiagnosticMessageChain(chain); + if (chain === reusable) return void 0; + const result = index > 0 ? array.slice(0, index - 1) : []; + result.push(reusable); + for (let i = index + 1; i < array.length; i++) { + result.push(convertToReusableDiagnosticMessageChain(array[i])); + } + return result; + }) || array; + } +} +function getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { + let host; + let newProgram; + let oldProgram; + if (newProgramOrRootNames === void 0) { + Debug.assert(hostOrOptions === void 0); + host = oldProgramOrHost; + oldProgram = configFileParsingDiagnosticsOrOldProgram; + Debug.assert(!!oldProgram); + newProgram = oldProgram.getProgram(); + } else if (isArray(newProgramOrRootNames)) { + oldProgram = configFileParsingDiagnosticsOrOldProgram; + newProgram = createProgram({ + rootNames: newProgramOrRootNames, + options: hostOrOptions, + host: oldProgramOrHost, + oldProgram: oldProgram && oldProgram.getProgramOrUndefined(), + configFileParsingDiagnostics, + projectReferences + }); + host = oldProgramOrHost; + } else { + newProgram = newProgramOrRootNames; + host = hostOrOptions; + oldProgram = oldProgramOrHost; + configFileParsingDiagnostics = configFileParsingDiagnosticsOrOldProgram; + } + return { host, newProgram, oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || emptyArray }; +} +function getTextHandlingSourceMapForSignature(text, data) { + return (data == null ? void 0 : data.sourceMapUrlPos) !== void 0 ? text.substring(0, data.sourceMapUrlPos) : text; +} +function computeSignatureWithDiagnostics(program, sourceFile, text, host, data) { + var _a; + text = getTextHandlingSourceMapForSignature(text, data); + let sourceFileDirectory; + if ((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length) { + text += data.diagnostics.map((diagnostic) => `${locationInfo(diagnostic)}${DiagnosticCategory[diagnostic.category]}${diagnostic.code}: ${flattenDiagnosticMessageText2(diagnostic.messageText)}`).join("\n"); + } + return (host.createHash ?? generateDjb2Hash)(text); + function flattenDiagnosticMessageText2(diagnostic) { + return isString(diagnostic) ? diagnostic : diagnostic === void 0 ? "" : !diagnostic.next ? diagnostic.messageText : diagnostic.messageText + diagnostic.next.map(flattenDiagnosticMessageText2).join("\n"); + } + function locationInfo(diagnostic) { + if (diagnostic.file.resolvedPath === sourceFile.resolvedPath) return `(${diagnostic.start},${diagnostic.length})`; + if (sourceFileDirectory === void 0) sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath); + return `${ensurePathIsNonModuleName(getRelativePathFromDirectory( + sourceFileDirectory, + diagnostic.file.resolvedPath, + program.getCanonicalFileName + ))}(${diagnostic.start},${diagnostic.length})`; + } +} +function computeSignature(text, host, data) { + return (host.createHash ?? generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data)); +} +function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) { + let oldState = oldProgram && oldProgram.getState(); + if (oldState && newProgram === oldState.program && configFileParsingDiagnostics === newProgram.getConfigFileParsingDiagnostics()) { + newProgram = void 0; + oldState = void 0; + return oldProgram; + } + const state = createBuilderProgramState(newProgram, oldState); + newProgram.getBuildInfo = () => getBuildInfo2(state); + newProgram = void 0; + oldProgram = void 0; + oldState = void 0; + const getState = () => state; + const builderProgram = createRedirectedBuilderProgram(getState, configFileParsingDiagnostics); + builderProgram.getState = getState; + builderProgram.saveEmitState = () => backupBuilderProgramEmitState(state); + builderProgram.restoreEmitState = (saved) => restoreBuilderProgramEmitState(state, saved); + builderProgram.hasChangedEmitSignature = () => !!state.hasChangedEmitSignature; + builderProgram.getAllDependencies = (sourceFile) => BuilderState.getAllDependencies(state, Debug.checkDefined(state.program), sourceFile); + builderProgram.getSemanticDiagnostics = getSemanticDiagnostics; + builderProgram.emit = emit; + builderProgram.releaseProgram = () => releaseCache(state); + if (kind === 0 /* SemanticDiagnosticsBuilderProgram */) { + builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile; + } else if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { + builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile; + builderProgram.emitNextAffectedFile = emitNextAffectedFile; + builderProgram.emitBuildInfo = emitBuildInfo; + } else { + notImplemented(); + } + return builderProgram; + function emitBuildInfo(writeFile2, cancellationToken) { + if (state.buildInfoEmitPending) { + const result = Debug.checkDefined(state.program).emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken); + state.buildInfoEmitPending = false; + return result; + } + return emitSkippedWithNoDiagnostics; + } + function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { + var _a, _b, _c; + let affected = getNextAffectedFile(state, cancellationToken, host); + const programEmitKind = getBuilderFileEmit(state.compilerOptions); + let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind; + if (!affected) { + if (!state.compilerOptions.outFile) { + const pendingAffectedFile = getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles); + if (!pendingAffectedFile) { + const pendingForDiagnostics = getNextPendingEmitDiagnosticsFile(state); + if (pendingForDiagnostics) { + (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set(pendingForDiagnostics.affectedFile.resolvedPath, pendingForDiagnostics.seenKind | 24 /* AllDts */); + return { + result: { emitSkipped: true, diagnostics: pendingForDiagnostics.diagnostics }, + affected: pendingForDiagnostics.affectedFile + }; + } + if (!state.buildInfoEmitPending) return void 0; + const affected2 = state.program; + const result2 = affected2.emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken); + state.buildInfoEmitPending = false; + return { result: result2, affected: affected2 }; + } + ({ affectedFile: affected, emitKind } = pendingAffectedFile); + } else { + if (!state.programEmitPending) return void 0; + emitKind = state.programEmitPending; + if (emitOnlyDtsFiles) emitKind = emitKind & 24 /* AllDts */; + if (!emitKind) return void 0; + affected = state.program; + } + } + let emitOnly; + if (emitKind & 7 /* AllJs */) emitOnly = 0 /* Js */; + if (emitKind & 24 /* AllDts */) emitOnly = emitOnly === void 0 ? 1 /* Dts */ : void 0; + if (affected === state.program) { + state.programEmitPending = state.changedFilesSet.size ? getPendingEmitKind(programEmitKind, emitKind) : state.programEmitPending ? getPendingEmitKind(state.programEmitPending, emitKind) : void 0; + } + const result = state.program.emit( + affected === state.program ? void 0 : affected, + getWriteFileCallback(writeFile2, customTransformers), + cancellationToken, + emitOnly, + customTransformers + ); + if (affected !== state.program) { + const affectedSourceFile = affected; + state.seenAffectedFiles.add(affectedSourceFile.resolvedPath); + if (state.affectedFilesIndex !== void 0) state.affectedFilesIndex++; + state.buildInfoEmitPending = true; + const existing = ((_a = state.seenEmittedFiles) == null ? void 0 : _a.get(affectedSourceFile.resolvedPath)) || 0 /* None */; + (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, emitKind | existing); + const existingPending = ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.get(affectedSourceFile.resolvedPath)) || programEmitKind; + const pendingKind = getPendingEmitKind(existingPending, emitKind | existing); + if (pendingKind) (state.affectedFilesPendingEmit ?? (state.affectedFilesPendingEmit = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, pendingKind); + else (_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.delete(affectedSourceFile.resolvedPath); + if (result.diagnostics.length) (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, result.diagnostics); + } else { + state.changedFilesSet.clear(); + } + return { result, affected }; + } + function getWriteFileCallback(writeFile2, customTransformers) { + if (!getEmitDeclarations(state.compilerOptions)) return writeFile2 || maybeBind(host, host.writeFile); + return (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => { + var _a, _b, _c; + if (isDeclarationFileName(fileName)) { + if (!state.compilerOptions.outFile) { + Debug.assert((sourceFiles == null ? void 0 : sourceFiles.length) === 1); + let emitSignature; + if (!customTransformers) { + const file = sourceFiles[0]; + const info = state.fileInfos.get(file.resolvedPath); + if (info.signature === file.version) { + const signature = computeSignatureWithDiagnostics( + state.program, + file, + text, + host, + data + ); + if (!((_a = data == null ? void 0 : data.diagnostics) == null ? void 0 : _a.length)) emitSignature = signature; + if (signature !== file.version) { + if (host.storeSignatureInfo) (state.signatureInfo ?? (state.signatureInfo = /* @__PURE__ */ new Map())).set(file.resolvedPath, 1 /* StoredSignatureAtEmit */); + if (state.affectedFiles) { + const existing = (_b = state.oldSignatures) == null ? void 0 : _b.get(file.resolvedPath); + if (existing === void 0) (state.oldSignatures ?? (state.oldSignatures = /* @__PURE__ */ new Map())).set(file.resolvedPath, info.signature || false); + info.signature = signature; + } else { + info.signature = signature; + } + } + } + } + if (state.compilerOptions.composite) { + const filePath = sourceFiles[0].resolvedPath; + emitSignature = handleNewSignature((_c = state.emitSignatures) == null ? void 0 : _c.get(filePath), emitSignature); + if (!emitSignature) return; + (state.emitSignatures ?? (state.emitSignatures = /* @__PURE__ */ new Map())).set(filePath, emitSignature); + } + } else if (state.compilerOptions.composite) { + const newSignature = handleNewSignature( + state.outSignature, + /*newSignature*/ + void 0 + ); + if (!newSignature) return; + state.outSignature = newSignature; + } + } + if (writeFile2) writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data); + else if (host.writeFile) host.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); + else state.program.writeFile(fileName, text, writeByteOrderMark, onError, sourceFiles, data); + function handleNewSignature(oldSignatureFormat, newSignature) { + const oldSignature = !oldSignatureFormat || isString(oldSignatureFormat) ? oldSignatureFormat : oldSignatureFormat[0]; + newSignature ?? (newSignature = computeSignature(text, host, data)); + if (newSignature === oldSignature) { + if (oldSignatureFormat === oldSignature) return void 0; + else if (data) data.differsOnlyInMap = true; + else data = { differsOnlyInMap: true }; + } else { + state.hasChangedEmitSignature = true; + state.latestChangedDtsFile = fileName; + } + return newSignature; + } + }; + } + function emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { + if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { + assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile); + } + const result = handleNoEmitOptions(builderProgram, targetSourceFile, writeFile2, cancellationToken); + if (result) return result; + if (!targetSourceFile) { + if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { + let sourceMaps = []; + let emitSkipped = false; + let diagnostics; + let emittedFiles = []; + let affectedEmitResult; + while (affectedEmitResult = emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers)) { + emitSkipped = emitSkipped || affectedEmitResult.result.emitSkipped; + diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics); + emittedFiles = addRange(emittedFiles, affectedEmitResult.result.emittedFiles); + sourceMaps = addRange(sourceMaps, affectedEmitResult.result.sourceMaps); + } + return { + emitSkipped, + diagnostics: diagnostics || emptyArray, + emittedFiles, + sourceMaps + }; + } else { + clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles); + } + } + return Debug.checkDefined(state.program).emit( + targetSourceFile, + getWriteFileCallback(writeFile2, customTransformers), + cancellationToken, + emitOnlyDtsFiles, + customTransformers + ); + } + function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) { + while (true) { + const affected = getNextAffectedFile(state, cancellationToken, host); + let result; + if (!affected) return void 0; + else if (affected !== state.program) { + const affectedSourceFile = affected; + if (!ignoreSourceFile || !ignoreSourceFile(affectedSourceFile)) { + result = getSemanticDiagnosticsOfFile(state, affectedSourceFile, cancellationToken); + } + state.seenAffectedFiles.add(affectedSourceFile.resolvedPath); + state.affectedFilesIndex++; + state.buildInfoEmitPending = true; + if (!result) continue; + } else { + result = state.program.getSemanticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ); + state.changedFilesSet.clear(); + state.programEmitPending = getBuilderFileEmit(state.compilerOptions); + } + return { result, affected }; + } + } + function getSemanticDiagnostics(sourceFile, cancellationToken) { + assertSourceFileOkWithoutNextAffectedCall(state, sourceFile); + const compilerOptions = Debug.checkDefined(state.program).getCompilerOptions(); + if (compilerOptions.outFile) { + Debug.assert(!state.semanticDiagnosticsPerFile); + return Debug.checkDefined(state.program).getSemanticDiagnostics(sourceFile, cancellationToken); + } + if (sourceFile) { + return getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken); + } + while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) { + } + let diagnostics; + for (const sourceFile2 of Debug.checkDefined(state.program).getSourceFiles()) { + diagnostics = addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile2, cancellationToken)); + } + return diagnostics || emptyArray; + } +} +function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) { + var _a, _b; + const existingKind = ((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.get(affectedFilePendingEmit)) || 0 /* None */; + (state.affectedFilesPendingEmit ?? (state.affectedFilesPendingEmit = /* @__PURE__ */ new Map())).set(affectedFilePendingEmit, existingKind | kind); + (_b = state.emitDiagnosticsPerFile) == null ? void 0 : _b.delete(affectedFilePendingEmit); +} +function toBuilderStateFileInfoForMultiEmit(fileInfo) { + return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat }; +} +function toBuilderFileEmit(value, fullEmitForOptions) { + return isNumber(value) ? fullEmitForOptions : value[1] || 8 /* Dts */; +} +function toProgramEmitPending(value, options) { + return !value ? getBuilderFileEmit(options || {}) : value; +} +function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host) { + var _a, _b, _c, _d; + const program = buildInfo.program; + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); + let state; + const filePaths = (_a = program.fileNames) == null ? void 0 : _a.map(toPathInBuildInfoDirectory); + let filePathsSetList; + const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0; + if (isProgramBundleEmitBuildInfo(program)) { + const fileInfos = /* @__PURE__ */ new Map(); + program.fileInfos.forEach((fileInfo, index) => { + const path = toFilePath(index + 1); + fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo); + }); + state = { + fileInfos, + compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}, + latestChangedDtsFile, + outSignature: program.outSignature, + programEmitPending: program.pendingEmit === void 0 ? void 0 : toProgramEmitPending(program.pendingEmit, program.options) + }; + } else { + filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath))); + const fileInfos = /* @__PURE__ */ new Map(); + const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !program.options.outFile ? /* @__PURE__ */ new Map() : void 0; + program.fileInfos.forEach((fileInfo, index) => { + const path = toFilePath(index + 1); + const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo); + fileInfos.set(path, stateFileInfo); + if (emitSignatures && stateFileInfo.signature) emitSignatures.set(path, stateFileInfo.signature); + }); + (_d = program.emitSignatures) == null ? void 0 : _d.forEach((value) => { + if (isNumber(value)) emitSignatures.delete(toFilePath(value)); + else { + const key = toFilePath(value[0]); + emitSignatures.set( + key, + !isString(value[1]) && !value[1].length ? ( + // File signature is emit signature but differs in map + [emitSignatures.get(key)] + ) : value[1] + ); + } + }); + const changedFilesSet = new Set(map(program.changeFileSet, toFilePath)); + const fullEmitForOptions = program.affectedFilesPendingEmit ? getBuilderFileEmit(program.options || {}) : void 0; + state = { + fileInfos, + compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}, + referencedMap: toManyToManyPathMap(program.referencedMap, program.options ?? {}), + semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(program.semanticDiagnosticsPerFile, fileInfos, changedFilesSet), + emitDiagnosticsPerFile: toPerFileEmitDiagnostics(program.emitDiagnosticsPerFile), + hasReusableDiagnostic: true, + affectedFilesPendingEmit: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => toBuilderFileEmit(value, fullEmitForOptions)), + changedFilesSet, + latestChangedDtsFile, + emitSignatures: (emitSignatures == null ? void 0 : emitSignatures.size) ? emitSignatures : void 0 + }; + } + return { + getState: () => state, + saveEmitState: noop, + restoreEmitState: noop, + getProgram: notImplemented, + getProgramOrUndefined: returnUndefined, + releaseProgram: noop, + getCompilerOptions: () => state.compilerOptions, + getSourceFile: notImplemented, + getSourceFiles: notImplemented, + getOptionsDiagnostics: notImplemented, + getGlobalDiagnostics: notImplemented, + getConfigFileParsingDiagnostics: notImplemented, + getSyntacticDiagnostics: notImplemented, + getDeclarationDiagnostics: notImplemented, + getSemanticDiagnostics: notImplemented, + emit: notImplemented, + getAllDependencies: notImplemented, + getCurrentDirectory: notImplemented, + emitNextAffectedFile: notImplemented, + getSemanticDiagnosticsOfNextAffectedFile: notImplemented, + emitBuildInfo: notImplemented, + close: noop, + hasChangedEmitSignature: returnFalse + }; + function toPathInBuildInfoDirectory(path) { + return toPath(path, buildInfoDirectory, getCanonicalFileName); + } + function toAbsolutePath(path) { + return getNormalizedAbsolutePath(path, buildInfoDirectory); + } + function toFilePath(fileId) { + return filePaths[fileId - 1]; + } + function toFilePathsSet(fileIdsListId) { + return filePathsSetList[fileIdsListId - 1]; + } + function toManyToManyPathMap(referenceMap, options) { + const map2 = BuilderState.createReferencedMap(options); + if (!map2 || !referenceMap) return map2; + referenceMap.forEach(([fileId, fileIdListId]) => map2.set(toFilePath(fileId), toFilePathsSet(fileIdListId))); + return map2; + } + function toPerFileSemanticDiagnostics(diagnostics, fileInfos, changedFilesSet) { + const semanticDiagnostics = new Map( + mapDefinedIterator( + fileInfos.keys(), + (key) => !changedFilesSet.has(key) ? [key, emptyArray] : void 0 + ) + ); + diagnostics == null ? void 0 : diagnostics.forEach((value) => { + if (isNumber(value)) semanticDiagnostics.delete(toFilePath(value)); + else semanticDiagnostics.set(toFilePath(value[0]), value[1]); + }); + return semanticDiagnostics.size ? semanticDiagnostics : void 0; + } + function toPerFileEmitDiagnostics(diagnostics) { + return diagnostics && arrayToMap(diagnostics, (value) => toFilePath(value[0]), (value) => value[1]); + } +} +function getBuildInfoFileVersionMap(program, buildInfoPath, host) { + const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); + const fileInfos = /* @__PURE__ */ new Map(); + let rootIndex = 0; + const roots = /* @__PURE__ */ new Map(); + const resolvedRoots = new Map(program.resolvedRoot); + program.fileInfos.forEach((fileInfo, index) => { + const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName); + const version2 = isString(fileInfo) ? fileInfo : fileInfo.version; + fileInfos.set(path, version2); + if (rootIndex < program.root.length) { + const current = program.root[rootIndex]; + const fileId = index + 1; + if (isArray(current)) { + if (current[0] <= fileId && fileId <= current[1]) { + addRoot(fileId, path); + if (current[1] === fileId) rootIndex++; + } + } else if (current === fileId) { + addRoot(fileId, path); + rootIndex++; + } + } + }); + return { fileInfos, roots }; + function addRoot(fileId, path) { + const root = resolvedRoots.get(fileId); + if (root) { + roots.set(toPath(program.fileNames[root - 1], buildInfoDirectory, getCanonicalFileName), path); + } else { + roots.set(path, void 0); + } + } +} +function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) { + return { + getState: notImplemented, + saveEmitState: noop, + restoreEmitState: noop, + getProgram, + getProgramOrUndefined: () => getState().program, + releaseProgram: () => getState().program = void 0, + getCompilerOptions: () => getState().compilerOptions, + getSourceFile: (fileName) => getProgram().getSourceFile(fileName), + getSourceFiles: () => getProgram().getSourceFiles(), + getOptionsDiagnostics: (cancellationToken) => getProgram().getOptionsDiagnostics(cancellationToken), + getGlobalDiagnostics: (cancellationToken) => getProgram().getGlobalDiagnostics(cancellationToken), + getConfigFileParsingDiagnostics: () => configFileParsingDiagnostics, + getSyntacticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSyntacticDiagnostics(sourceFile, cancellationToken), + getDeclarationDiagnostics: (sourceFile, cancellationToken) => getProgram().getDeclarationDiagnostics(sourceFile, cancellationToken), + getSemanticDiagnostics: (sourceFile, cancellationToken) => getProgram().getSemanticDiagnostics(sourceFile, cancellationToken), + emit: (sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers) => getProgram().emit(sourceFile, writeFile2, cancellationToken, emitOnlyDts, customTransformers), + emitBuildInfo: (writeFile2, cancellationToken) => getProgram().emitBuildInfo(writeFile2, cancellationToken), + getAllDependencies: notImplemented, + getCurrentDirectory: () => getProgram().getCurrentDirectory(), + close: noop + }; + function getProgram() { + return Debug.checkDefined(getState().program); + } +} + +// src/compiler/builderPublic.ts +function createEmitAndSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { + return createBuilderProgram(1 /* EmitAndSemanticDiagnosticsBuilderProgram */, getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences)); +} + +// src/compiler/resolutionCache.ts +function removeIgnoredPath(path) { + if (endsWith(path, "/node_modules/.staging")) { + return removeSuffix(path, "/.staging"); + } + return some(ignoredPaths, (searchPath) => path.includes(searchPath)) ? void 0 : path; +} +function perceivedOsRootLengthForWatching(pathComponents2, length2) { + if (length2 <= 1) return 1; + let indexAfterOsRoot = 1; + let isDosStyle = pathComponents2[0].search(/[a-zA-Z]:/) === 0; + if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths + pathComponents2[1].search(/[a-zA-Z]\$$/) === 0) { + if (length2 === 2) return 2; + indexAfterOsRoot = 2; + isDosStyle = true; + } + if (isDosStyle && !pathComponents2[indexAfterOsRoot].match(/^users$/i)) { + return indexAfterOsRoot; + } + if (pathComponents2[indexAfterOsRoot].match(/^workspaces$/i)) { + return indexAfterOsRoot + 1; + } + return indexAfterOsRoot + 2; +} +function canWatchDirectoryOrFile(pathComponents2, length2) { + if (length2 === void 0) length2 = pathComponents2.length; + if (length2 <= 2) return false; + const perceivedOsRootLength = perceivedOsRootLengthForWatching(pathComponents2, length2); + return length2 > perceivedOsRootLength + 1; +} +function canWatchAtTypes(atTypes) { + return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(getDirectoryPath(atTypes)); +} +function isInDirectoryPath(dirComponents, fileOrDirComponents) { + if (fileOrDirComponents.length < fileOrDirComponents.length) return false; + for (let i = 0; i < dirComponents.length; i++) { + if (fileOrDirComponents[i] !== dirComponents[i]) return false; + } + return true; +} +function canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(fileOrDirPath) { + return canWatchDirectoryOrFile(getPathComponents(fileOrDirPath)); +} +function canWatchAffectingLocation(filePath) { + return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(filePath); +} +function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath, rootDir, rootPath, rootPathComponents, getCurrentDirectory) { + const failedLookupPathComponents = getPathComponents(failedLookupLocationPath); + failedLookupLocation = isRootedDiskPath(failedLookupLocation) ? normalizePath(failedLookupLocation) : getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory()); + const failedLookupComponents = getPathComponents(failedLookupLocation); + const perceivedOsRootLength = perceivedOsRootLengthForWatching(failedLookupPathComponents, failedLookupPathComponents.length); + if (failedLookupPathComponents.length <= perceivedOsRootLength + 1) return void 0; + const nodeModulesIndex = failedLookupPathComponents.indexOf("node_modules"); + if (nodeModulesIndex !== -1 && nodeModulesIndex + 1 <= perceivedOsRootLength + 1) return void 0; + const lastNodeModulesIndex = failedLookupPathComponents.lastIndexOf("node_modules"); + if (isInDirectoryPath(rootPathComponents, failedLookupPathComponents)) { + if (failedLookupPathComponents.length > rootPathComponents.length + 1) { + return getDirectoryOfFailedLookupWatch( + failedLookupComponents, + failedLookupPathComponents, + Math.max(rootPathComponents.length + 1, perceivedOsRootLength + 1), + lastNodeModulesIndex + ); + } else { + return { + dir: rootDir, + dirPath: rootPath, + nonRecursive: true + }; + } + } + return getDirectoryToWatchFromFailedLookupLocationDirectory( + failedLookupComponents, + failedLookupPathComponents, + failedLookupPathComponents.length - 1, + perceivedOsRootLength, + nodeModulesIndex, + rootPathComponents, + lastNodeModulesIndex + ); +} +function getDirectoryToWatchFromFailedLookupLocationDirectory(dirComponents, dirPathComponents, dirPathComponentsLength, perceivedOsRootLength, nodeModulesIndex, rootPathComponents, lastNodeModulesIndex) { + if (nodeModulesIndex !== -1) { + return getDirectoryOfFailedLookupWatch( + dirComponents, + dirPathComponents, + nodeModulesIndex + 1, + lastNodeModulesIndex + ); + } + let nonRecursive = true; + let length2 = dirPathComponentsLength; + for (let i = 0; i < dirPathComponentsLength; i++) { + if (dirPathComponents[i] !== rootPathComponents[i]) { + nonRecursive = false; + length2 = Math.max(i + 1, perceivedOsRootLength + 1); + break; + } + } + return getDirectoryOfFailedLookupWatch( + dirComponents, + dirPathComponents, + length2, + lastNodeModulesIndex, + nonRecursive + ); +} +function getDirectoryOfFailedLookupWatch(dirComponents, dirPathComponents, length2, lastNodeModulesIndex, nonRecursive) { + let packageDirLength; + if (lastNodeModulesIndex !== -1 && lastNodeModulesIndex + 1 >= length2 && lastNodeModulesIndex + 2 < dirPathComponents.length) { + if (!startsWith(dirPathComponents[lastNodeModulesIndex + 1], "@")) { + packageDirLength = lastNodeModulesIndex + 2; + } else if (lastNodeModulesIndex + 3 < dirPathComponents.length) { + packageDirLength = lastNodeModulesIndex + 3; + } + } + return { + dir: getPathFromPathComponents(dirComponents, length2), + dirPath: getPathFromPathComponents(dirPathComponents, length2), + nonRecursive, + packageDir: packageDirLength !== void 0 ? getPathFromPathComponents(dirComponents, packageDirLength) : void 0, + packageDirPath: packageDirLength !== void 0 ? getPathFromPathComponents(dirPathComponents, packageDirLength) : void 0 + }; +} +function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath, rootPath, rootPathComponents, getCurrentDirectory, filterCustomPath) { + const typeRootPathComponents = getPathComponents(typeRootPath); + if (isInDirectoryPath(rootPathComponents, typeRootPathComponents)) { + return rootPath; + } + typeRoot = isRootedDiskPath(typeRoot) ? normalizePath(typeRoot) : getNormalizedAbsolutePath(typeRoot, getCurrentDirectory()); + const toWatch = getDirectoryToWatchFromFailedLookupLocationDirectory( + getPathComponents(typeRoot), + typeRootPathComponents, + typeRootPathComponents.length, + perceivedOsRootLengthForWatching(typeRootPathComponents, typeRootPathComponents.length), + typeRootPathComponents.indexOf("node_modules"), + rootPathComponents, + typeRootPathComponents.lastIndexOf("node_modules") + ); + return toWatch && filterCustomPath(toWatch.dirPath) ? toWatch.dirPath : void 0; +} +function getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory) { + const normalized = getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()); + return !isDiskPathRoot(normalized) ? removeTrailingDirectorySeparator(normalized) : normalized; +} +function getModuleResolutionHost(resolutionHost) { + var _a; + return ((_a = resolutionHost.getCompilerHost) == null ? void 0 : _a.call(resolutionHost)) || resolutionHost; +} +function createModuleResolutionLoaderUsingGlobalCache(containingFile, redirectedReference, options, resolutionHost, moduleResolutionCache) { + return { + nameAndMode: moduleResolutionNameAndModeGetter, + resolve: (moduleName, resoluionMode) => resolveModuleNameUsingGlobalCache( + resolutionHost, + moduleResolutionCache, + moduleName, + containingFile, + options, + redirectedReference, + resoluionMode + ) + }; +} +function resolveModuleNameUsingGlobalCache(resolutionHost, moduleResolutionCache, moduleName, containingFile, compilerOptions, redirectedReference, mode) { + const host = getModuleResolutionHost(resolutionHost); + const primaryResult = resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode); + if (!resolutionHost.getGlobalCache) { + return primaryResult; + } + const globalCache = resolutionHost.getGlobalCache(); + if (globalCache !== void 0 && !isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && extensionIsTS(primaryResult.resolvedModule.extension))) { + const { resolvedModule, failedLookupLocations, affectingLocations, resolutionDiagnostics } = loadModuleFromGlobalCache( + Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), + resolutionHost.projectName, + compilerOptions, + host, + globalCache, + moduleResolutionCache + ); + if (resolvedModule) { + primaryResult.resolvedModule = resolvedModule; + primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, failedLookupLocations); + primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, affectingLocations); + primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, resolutionDiagnostics); + return primaryResult; + } + } + return primaryResult; +} +function createResolutionCache(resolutionHost, rootDirForResolution, logChangesWhenResolvingModule) { + let filesWithChangedSetOfUnresolvedImports; + let filesWithInvalidatedResolutions; + let filesWithInvalidatedNonRelativeUnresolvedImports; + const nonRelativeExternalModuleResolutions = createMultiMap(); + const resolutionsWithFailedLookups = /* @__PURE__ */ new Set(); + const resolutionsWithOnlyAffectingLocations = /* @__PURE__ */ new Set(); + const resolvedFileToResolution = /* @__PURE__ */ new Map(); + const impliedFormatPackageJsons = /* @__PURE__ */ new Map(); + let hasChangedAutomaticTypeDirectiveNames = false; + let affectingPathChecksForFile; + let affectingPathChecks; + let failedLookupChecks; + let startsWithPathChecks; + let isInDirectoryChecks; + let allModuleAndTypeResolutionsAreInvalidated = false; + const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory()); + const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost(); + const resolvedModuleNames = /* @__PURE__ */ new Map(); + const moduleResolutionCache = createModuleResolutionCache( + getCurrentDirectory(), + resolutionHost.getCanonicalFileName, + resolutionHost.getCompilationSettings() + ); + const resolvedTypeReferenceDirectives = /* @__PURE__ */ new Map(); + const typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( + getCurrentDirectory(), + resolutionHost.getCanonicalFileName, + resolutionHost.getCompilationSettings(), + moduleResolutionCache.getPackageJsonInfoCache(), + moduleResolutionCache.optionsToRedirectsKey + ); + const resolvedLibraries = /* @__PURE__ */ new Map(); + const libraryResolutionCache = createModuleResolutionCache( + getCurrentDirectory(), + resolutionHost.getCanonicalFileName, + getOptionsForLibraryResolution(resolutionHost.getCompilationSettings()), + moduleResolutionCache.getPackageJsonInfoCache() + ); + const directoryWatchesOfFailedLookups = /* @__PURE__ */ new Map(); + const fileWatchesOfAffectingLocations = /* @__PURE__ */ new Map(); + const rootDir = getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory); + const rootPath = resolutionHost.toPath(rootDir); + const rootPathComponents = getPathComponents(rootPath); + const isSymlinkCache = /* @__PURE__ */ new Map(); + const packageDirWatchers = /* @__PURE__ */ new Map(); + const dirPathToSymlinkPackageRefCount = /* @__PURE__ */ new Map(); + const typeRootsWatches = /* @__PURE__ */ new Map(); + return { + rootDirForResolution, + resolvedModuleNames, + resolvedTypeReferenceDirectives, + resolvedLibraries, + resolvedFileToResolution, + resolutionsWithFailedLookups, + resolutionsWithOnlyAffectingLocations, + directoryWatchesOfFailedLookups, + fileWatchesOfAffectingLocations, + packageDirWatchers, + dirPathToSymlinkPackageRefCount, + watchFailedLookupLocationsOfExternalModuleResolutions, + getModuleResolutionCache: () => moduleResolutionCache, + startRecordingFilesWithChangedResolutions, + finishRecordingFilesWithChangedResolutions, + // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update + // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) + startCachingPerDirectoryResolution, + finishCachingPerDirectoryResolution, + resolveModuleNameLiterals, + resolveTypeReferenceDirectiveReferences, + resolveLibrary: resolveLibrary2, + resolveSingleModuleNameWithoutWatching, + removeResolutionsFromProjectReferenceRedirects, + removeResolutionsOfFile, + hasChangedAutomaticTypeDirectiveNames: () => hasChangedAutomaticTypeDirectiveNames, + invalidateResolutionOfFile, + invalidateResolutionsOfFailedLookupLocations, + setFilesWithInvalidatedNonRelativeUnresolvedImports, + createHasInvalidatedResolutions, + isFileWithInvalidatedNonRelativeUnresolvedImports, + updateTypeRootsWatch, + closeTypeRootsWatch, + clear: clear2, + onChangesAffectModuleResolution + }; + function getResolvedModule(resolution) { + return resolution.resolvedModule; + } + function getResolvedTypeReferenceDirective(resolution) { + return resolution.resolvedTypeReferenceDirective; + } + function clear2() { + clearMap(directoryWatchesOfFailedLookups, closeFileWatcherOf); + clearMap(fileWatchesOfAffectingLocations, closeFileWatcherOf); + isSymlinkCache.clear(); + packageDirWatchers.clear(); + dirPathToSymlinkPackageRefCount.clear(); + nonRelativeExternalModuleResolutions.clear(); + closeTypeRootsWatch(); + resolvedModuleNames.clear(); + resolvedTypeReferenceDirectives.clear(); + resolvedFileToResolution.clear(); + resolutionsWithFailedLookups.clear(); + resolutionsWithOnlyAffectingLocations.clear(); + failedLookupChecks = void 0; + startsWithPathChecks = void 0; + isInDirectoryChecks = void 0; + affectingPathChecks = void 0; + affectingPathChecksForFile = void 0; + allModuleAndTypeResolutionsAreInvalidated = false; + moduleResolutionCache.clear(); + typeReferenceDirectiveResolutionCache.clear(); + moduleResolutionCache.update(resolutionHost.getCompilationSettings()); + typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); + libraryResolutionCache.clear(); + impliedFormatPackageJsons.clear(); + resolvedLibraries.clear(); + hasChangedAutomaticTypeDirectiveNames = false; + } + function onChangesAffectModuleResolution() { + allModuleAndTypeResolutionsAreInvalidated = true; + moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); + typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); + moduleResolutionCache.update(resolutionHost.getCompilationSettings()); + typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); + } + function startRecordingFilesWithChangedResolutions() { + filesWithChangedSetOfUnresolvedImports = []; + } + function finishRecordingFilesWithChangedResolutions() { + const collected = filesWithChangedSetOfUnresolvedImports; + filesWithChangedSetOfUnresolvedImports = void 0; + return collected; + } + function isFileWithInvalidatedNonRelativeUnresolvedImports(path) { + if (!filesWithInvalidatedNonRelativeUnresolvedImports) { + return false; + } + const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path); + return !!value && !!value.length; + } + function createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidatedLibResolutions) { + invalidateResolutionsOfFailedLookupLocations(); + const collected = filesWithInvalidatedResolutions; + filesWithInvalidatedResolutions = void 0; + return { + hasInvalidatedResolutions: (path) => customHasInvalidatedResolutions(path) || allModuleAndTypeResolutionsAreInvalidated || !!(collected == null ? void 0 : collected.has(path)) || isFileWithInvalidatedNonRelativeUnresolvedImports(path), + hasInvalidatedLibResolutions: (libFileName) => { + var _a; + return customHasInvalidatedLibResolutions(libFileName) || !!((_a = resolvedLibraries == null ? void 0 : resolvedLibraries.get(libFileName)) == null ? void 0 : _a.isInvalidated); + } + }; + } + function startCachingPerDirectoryResolution() { + moduleResolutionCache.isReadonly = void 0; + typeReferenceDirectiveResolutionCache.isReadonly = void 0; + libraryResolutionCache.isReadonly = void 0; + moduleResolutionCache.getPackageJsonInfoCache().isReadonly = void 0; + moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); + typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); + libraryResolutionCache.clearAllExceptPackageJsonInfoCache(); + nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); + nonRelativeExternalModuleResolutions.clear(); + isSymlinkCache.clear(); + } + function cleanupLibResolutionWatching(newProgram) { + resolvedLibraries.forEach((resolution, libFileName) => { + var _a; + if (!((_a = newProgram == null ? void 0 : newProgram.resolvedLibReferences) == null ? void 0 : _a.has(libFileName))) { + stopWatchFailedLookupLocationOfResolution( + resolution, + resolutionHost.toPath(getInferredLibraryNameResolveFrom(resolutionHost.getCompilationSettings(), getCurrentDirectory(), libFileName)), + getResolvedModule + ); + resolvedLibraries.delete(libFileName); + } + }); + } + function finishCachingPerDirectoryResolution(newProgram, oldProgram) { + filesWithInvalidatedNonRelativeUnresolvedImports = void 0; + allModuleAndTypeResolutionsAreInvalidated = false; + nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); + nonRelativeExternalModuleResolutions.clear(); + if (newProgram !== oldProgram) { + cleanupLibResolutionWatching(newProgram); + newProgram == null ? void 0 : newProgram.getSourceFiles().forEach((newFile) => { + var _a; + const expected = isExternalOrCommonJsModule(newFile) ? ((_a = newFile.packageJsonLocations) == null ? void 0 : _a.length) ?? 0 : 0; + const existing = impliedFormatPackageJsons.get(newFile.resolvedPath) ?? emptyArray; + for (let i = existing.length; i < expected; i++) { + createFileWatcherOfAffectingLocation( + newFile.packageJsonLocations[i], + /*forResolution*/ + false + ); + } + if (existing.length > expected) { + for (let i = expected; i < existing.length; i++) { + fileWatchesOfAffectingLocations.get(existing[i]).files--; + } + } + if (expected) impliedFormatPackageJsons.set(newFile.resolvedPath, newFile.packageJsonLocations); + else impliedFormatPackageJsons.delete(newFile.resolvedPath); + }); + impliedFormatPackageJsons.forEach((existing, path) => { + const newFile = newProgram == null ? void 0 : newProgram.getSourceFileByPath(path); + if (!newFile || newFile.resolvedPath !== path) { + existing.forEach((location) => fileWatchesOfAffectingLocations.get(location).files--); + impliedFormatPackageJsons.delete(path); + } + }); + } + directoryWatchesOfFailedLookups.forEach(closeDirectoryWatchesOfFailedLookup); + fileWatchesOfAffectingLocations.forEach(closeFileWatcherOfAffectingLocation); + packageDirWatchers.forEach(closePackageDirWatcher); + hasChangedAutomaticTypeDirectiveNames = false; + moduleResolutionCache.isReadonly = true; + typeReferenceDirectiveResolutionCache.isReadonly = true; + libraryResolutionCache.isReadonly = true; + moduleResolutionCache.getPackageJsonInfoCache().isReadonly = true; + isSymlinkCache.clear(); + } + function closePackageDirWatcher(watcher, packageDirPath) { + if (watcher.dirPathToWatcher.size === 0) { + packageDirWatchers.delete(packageDirPath); + } + } + function closeDirectoryWatchesOfFailedLookup(watcher, path) { + if (watcher.refCount === 0) { + directoryWatchesOfFailedLookups.delete(path); + watcher.watcher.close(); + } + } + function closeFileWatcherOfAffectingLocation(watcher, path) { + var _a; + if (watcher.files === 0 && watcher.resolutions === 0 && !((_a = watcher.symlinks) == null ? void 0 : _a.size)) { + fileWatchesOfAffectingLocations.delete(path); + watcher.watcher.close(); + } + } + function resolveNamesWithLocalCache({ + entries, + containingFile, + containingSourceFile, + redirectedReference, + options, + perFileCache, + reusedNames, + loader, + getResolutionWithResolvedFileName, + deferWatchingNonRelativeResolution, + shouldRetryResolution, + logChanges + }) { + const path = resolutionHost.toPath(containingFile); + const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path); + const resolvedModules = []; + const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); + const program = resolutionHost.getCurrentProgram(); + const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile); + const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference; + const seenNamesInFile = createModeAwareCache(); + for (const entry of entries) { + const name = loader.nameAndMode.getName(entry); + const mode = loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options); + let resolution = resolutionsInFile.get(name, mode); + if (!seenNamesInFile.has(name, mode) && (allModuleAndTypeResolutionsAreInvalidated || unmatchedRedirects || !resolution || resolution.isInvalidated || // If the name is unresolved import that was invalidated, recalculate + hasInvalidatedNonRelativeUnresolvedImport && !isExternalModuleNameRelative(name) && shouldRetryResolution(resolution))) { + const existingResolution = resolution; + resolution = loader.resolve(name, mode); + if (resolutionHost.onDiscoveredSymlink && resolutionIsSymlink(resolution)) { + resolutionHost.onDiscoveredSymlink(); + } + resolutionsInFile.set(name, mode, resolution); + if (resolution !== existingResolution) { + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution); + if (existingResolution) { + stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); + } + } + if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) { + filesWithChangedSetOfUnresolvedImports.push(path); + logChanges = false; + } + } else { + const host = getModuleResolutionHost(resolutionHost); + if (isTraceEnabled(options, host) && !seenNamesInFile.has(name, mode)) { + const resolved = getResolutionWithResolvedFileName(resolution); + trace( + host, + perFileCache === resolvedModuleNames ? (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved : (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, + name, + containingFile, + resolved == null ? void 0 : resolved.resolvedFileName, + (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId) + ); + } + } + Debug.assert(resolution !== void 0 && !resolution.isInvalidated); + seenNamesInFile.set(name, mode, true); + resolvedModules.push(resolution); + } + reusedNames == null ? void 0 : reusedNames.forEach( + (entry) => seenNamesInFile.set( + loader.nameAndMode.getName(entry), + loader.nameAndMode.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) || options), + true + ) + ); + if (resolutionsInFile.size() !== seenNamesInFile.size()) { + resolutionsInFile.forEach((resolution, name, mode) => { + if (!seenNamesInFile.has(name, mode)) { + stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName); + resolutionsInFile.delete(name, mode); + } + }); + } + return resolvedModules; + function resolutionIsEqualTo(oldResolution, newResolution) { + if (oldResolution === newResolution) { + return true; + } + if (!oldResolution || !newResolution) { + return false; + } + const oldResult = getResolutionWithResolvedFileName(oldResolution); + const newResult = getResolutionWithResolvedFileName(newResolution); + if (oldResult === newResult) { + return true; + } + if (!oldResult || !newResult) { + return false; + } + return oldResult.resolvedFileName === newResult.resolvedFileName; + } + } + function resolveTypeReferenceDirectiveReferences(typeDirectiveReferences, containingFile, redirectedReference, options, containingSourceFile, reusedNames) { + return resolveNamesWithLocalCache({ + entries: typeDirectiveReferences, + containingFile, + containingSourceFile, + redirectedReference, + options, + reusedNames, + perFileCache: resolvedTypeReferenceDirectives, + loader: createTypeReferenceResolutionLoader( + containingFile, + redirectedReference, + options, + getModuleResolutionHost(resolutionHost), + typeReferenceDirectiveResolutionCache + ), + getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective, + shouldRetryResolution: (resolution) => resolution.resolvedTypeReferenceDirective === void 0, + deferWatchingNonRelativeResolution: false + }); + } + function resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) { + return resolveNamesWithLocalCache({ + entries: moduleLiterals, + containingFile, + containingSourceFile, + redirectedReference, + options, + reusedNames, + perFileCache: resolvedModuleNames, + loader: createModuleResolutionLoaderUsingGlobalCache( + containingFile, + redirectedReference, + options, + resolutionHost, + moduleResolutionCache + ), + getResolutionWithResolvedFileName: getResolvedModule, + shouldRetryResolution: (resolution) => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension), + logChanges: logChangesWhenResolvingModule, + deferWatchingNonRelativeResolution: true + // Defer non relative resolution watch because we could be using ambient modules + }); + } + function resolveLibrary2(libraryName, resolveFrom, options, libFileName) { + const host = getModuleResolutionHost(resolutionHost); + let resolution = resolvedLibraries == null ? void 0 : resolvedLibraries.get(libFileName); + if (!resolution || resolution.isInvalidated) { + const existingResolution = resolution; + resolution = resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache); + const path = resolutionHost.toPath(resolveFrom); + watchFailedLookupLocationsOfExternalModuleResolutions( + libraryName, + resolution, + path, + getResolvedModule, + /*deferWatchingNonRelativeResolution*/ + false + ); + resolvedLibraries.set(libFileName, resolution); + if (existingResolution) { + stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolvedModule); + } + } else { + if (isTraceEnabled(options, host)) { + const resolved = getResolvedModule(resolution); + trace( + host, + (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, + libraryName, + resolveFrom, + resolved == null ? void 0 : resolved.resolvedFileName, + (resolved == null ? void 0 : resolved.packageId) && packageIdToString(resolved.packageId) + ); + } + } + return resolution; + } + function resolveSingleModuleNameWithoutWatching(moduleName, containingFile) { + var _a, _b; + const path = resolutionHost.toPath(containingFile); + const resolutionsInFile = resolvedModuleNames.get(path); + const resolution = resolutionsInFile == null ? void 0 : resolutionsInFile.get( + moduleName, + /*mode*/ + void 0 + ); + if (resolution && !resolution.isInvalidated) return resolution; + const data = (_a = resolutionHost.beforeResolveSingleModuleNameWithoutWatching) == null ? void 0 : _a.call(resolutionHost, moduleResolutionCache); + const host = getModuleResolutionHost(resolutionHost); + const result = resolveModuleName( + moduleName, + containingFile, + resolutionHost.getCompilationSettings(), + host, + moduleResolutionCache + ); + (_b = resolutionHost.afterResolveSingleModuleNameWithoutWatching) == null ? void 0 : _b.call(resolutionHost, moduleResolutionCache, moduleName, containingFile, result, data); + return result; + } + function isNodeModulesAtTypesDirectory(dirPath) { + return endsWith(dirPath, "/node_modules/@types"); + } + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution) { + var _a; + if (resolution.refCount) { + resolution.refCount++; + Debug.assertIsDefined(resolution.files); + } else { + resolution.refCount = 1; + Debug.assert(!((_a = resolution.files) == null ? void 0 : _a.size)); + if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) { + watchFailedLookupLocationOfResolution(resolution); + } else { + nonRelativeExternalModuleResolutions.add(name, resolution); + } + const resolved = getResolutionWithResolvedFileName(resolution); + if (resolved && resolved.resolvedFileName) { + const key = resolutionHost.toPath(resolved.resolvedFileName); + let resolutions = resolvedFileToResolution.get(key); + if (!resolutions) resolvedFileToResolution.set(key, resolutions = /* @__PURE__ */ new Set()); + resolutions.add(resolution); + } + } + (resolution.files ?? (resolution.files = /* @__PURE__ */ new Set())).add(filePath); + } + function watchFailedLookupLocation(failedLookupLocation, setAtRoot) { + const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); + const toWatch = getDirectoryToWatchFailedLookupLocation( + failedLookupLocation, + failedLookupLocationPath, + rootDir, + rootPath, + rootPathComponents, + getCurrentDirectory + ); + if (toWatch) { + const { dir, dirPath, nonRecursive, packageDir, packageDirPath } = toWatch; + if (dirPath === rootPath) { + Debug.assert(nonRecursive); + Debug.assert(!packageDir); + setAtRoot = true; + } else { + setDirectoryWatcher(dir, dirPath, packageDir, packageDirPath, nonRecursive); + } + } + return setAtRoot; + } + function watchFailedLookupLocationOfResolution(resolution) { + Debug.assert(!!resolution.refCount); + const { failedLookupLocations, affectingLocations, alternateResult } = resolution; + if (!(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !(affectingLocations == null ? void 0 : affectingLocations.length) && !alternateResult) return; + if ((failedLookupLocations == null ? void 0 : failedLookupLocations.length) || alternateResult) resolutionsWithFailedLookups.add(resolution); + let setAtRoot = false; + if (failedLookupLocations) { + for (const failedLookupLocation of failedLookupLocations) { + setAtRoot = watchFailedLookupLocation(failedLookupLocation, setAtRoot); + } + } + if (alternateResult) setAtRoot = watchFailedLookupLocation(alternateResult, setAtRoot); + if (setAtRoot) { + setDirectoryWatcher( + rootDir, + rootPath, + /*packageDir*/ + void 0, + /*packageDirPath*/ + void 0, + /*nonRecursive*/ + true + ); + } + watchAffectingLocationsOfResolution(resolution, !(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !alternateResult); + } + function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) { + Debug.assert(!!resolution.refCount); + const { affectingLocations } = resolution; + if (!(affectingLocations == null ? void 0 : affectingLocations.length)) return; + if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.add(resolution); + for (const affectingLocation of affectingLocations) { + createFileWatcherOfAffectingLocation( + affectingLocation, + /*forResolution*/ + true + ); + } + } + function createFileWatcherOfAffectingLocation(affectingLocation, forResolution) { + const fileWatcher = fileWatchesOfAffectingLocations.get(affectingLocation); + if (fileWatcher) { + if (forResolution) fileWatcher.resolutions++; + else fileWatcher.files++; + return; + } + let locationToWatch = affectingLocation; + let isSymlink = false; + let symlinkWatcher; + if (resolutionHost.realpath) { + locationToWatch = resolutionHost.realpath(affectingLocation); + if (affectingLocation !== locationToWatch) { + isSymlink = true; + symlinkWatcher = fileWatchesOfAffectingLocations.get(locationToWatch); + } + } + const resolutions = forResolution ? 1 : 0; + const files = forResolution ? 0 : 1; + if (!isSymlink || !symlinkWatcher) { + const watcher = { + watcher: canWatchAffectingLocation(resolutionHost.toPath(locationToWatch)) ? resolutionHost.watchAffectingFileLocation(locationToWatch, (fileName, eventKind) => { + cachedDirectoryStructureHost == null ? void 0 : cachedDirectoryStructureHost.addOrDeleteFile(fileName, resolutionHost.toPath(locationToWatch), eventKind); + invalidateAffectingFileWatcher(locationToWatch, moduleResolutionCache.getPackageJsonInfoCache().getInternalMap()); + resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations(); + }) : noopFileWatcher, + resolutions: isSymlink ? 0 : resolutions, + files: isSymlink ? 0 : files, + symlinks: void 0 + }; + fileWatchesOfAffectingLocations.set(locationToWatch, watcher); + if (isSymlink) symlinkWatcher = watcher; + } + if (isSymlink) { + Debug.assert(!!symlinkWatcher); + const watcher = { + watcher: { + close: () => { + var _a; + const symlinkWatcher2 = fileWatchesOfAffectingLocations.get(locationToWatch); + if (((_a = symlinkWatcher2 == null ? void 0 : symlinkWatcher2.symlinks) == null ? void 0 : _a.delete(affectingLocation)) && !symlinkWatcher2.symlinks.size && !symlinkWatcher2.resolutions && !symlinkWatcher2.files) { + fileWatchesOfAffectingLocations.delete(locationToWatch); + symlinkWatcher2.watcher.close(); + } + } + }, + resolutions, + files, + symlinks: void 0 + }; + fileWatchesOfAffectingLocations.set(affectingLocation, watcher); + (symlinkWatcher.symlinks ?? (symlinkWatcher.symlinks = /* @__PURE__ */ new Set())).add(affectingLocation); + } + } + function invalidateAffectingFileWatcher(path, packageJsonMap) { + var _a; + const watcher = fileWatchesOfAffectingLocations.get(path); + if (watcher == null ? void 0 : watcher.resolutions) (affectingPathChecks ?? (affectingPathChecks = /* @__PURE__ */ new Set())).add(path); + if (watcher == null ? void 0 : watcher.files) (affectingPathChecksForFile ?? (affectingPathChecksForFile = /* @__PURE__ */ new Set())).add(path); + (_a = watcher == null ? void 0 : watcher.symlinks) == null ? void 0 : _a.forEach((path2) => invalidateAffectingFileWatcher(path2, packageJsonMap)); + packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path)); + } + function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) { + const program = resolutionHost.getCurrentProgram(); + if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) { + resolutions.forEach(watchFailedLookupLocationOfResolution); + } else { + resolutions.forEach((resolution) => watchAffectingLocationsOfResolution( + resolution, + /*addToResolutionsWithOnlyAffectingLocations*/ + true + )); + } + } + function createDirectoryWatcherForPackageDir(dir, dirPath, packageDir, packageDirPath, nonRecursive) { + Debug.assert(!nonRecursive); + let isSymlink = isSymlinkCache.get(packageDirPath); + let packageDirWatcher = packageDirWatchers.get(packageDirPath); + if (isSymlink === void 0) { + const realPath2 = resolutionHost.realpath(packageDir); + isSymlink = realPath2 !== packageDir && resolutionHost.toPath(realPath2) !== packageDirPath; + isSymlinkCache.set(packageDirPath, isSymlink); + if (!packageDirWatcher) { + packageDirWatchers.set( + packageDirPath, + packageDirWatcher = { + dirPathToWatcher: /* @__PURE__ */ new Map(), + isSymlink + } + ); + } else if (packageDirWatcher.isSymlink !== isSymlink) { + packageDirWatcher.dirPathToWatcher.forEach((watcher) => { + removeDirectoryWatcher( + packageDirWatcher.isSymlink ? packageDirPath : dirPath, + /*syncDirWatcherRemove*/ + false + ); + watcher.watcher = createDirPathToWatcher(); + }); + packageDirWatcher.isSymlink = isSymlink; + } + } else { + Debug.assertIsDefined(packageDirWatcher); + Debug.assert(isSymlink === packageDirWatcher.isSymlink); + } + const forDirPath = packageDirWatcher.dirPathToWatcher.get(dirPath); + if (forDirPath) { + forDirPath.refCount++; + } else { + packageDirWatcher.dirPathToWatcher.set(dirPath, { + watcher: createDirPathToWatcher(), + refCount: 1 + }); + if (isSymlink) dirPathToSymlinkPackageRefCount.set(dirPath, (dirPathToSymlinkPackageRefCount.get(dirPath) ?? 0) + 1); + } + function createDirPathToWatcher() { + return isSymlink ? createOrAddRefToDirectoryWatchOfFailedLookups(packageDir, packageDirPath, nonRecursive) : createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive); + } + } + function setDirectoryWatcher(dir, dirPath, packageDir, packageDirPath, nonRecursive) { + if (!packageDirPath || !resolutionHost.realpath) { + createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive); + } else { + createDirectoryWatcherForPackageDir(dir, dirPath, packageDir, packageDirPath, nonRecursive); + } + } + function createOrAddRefToDirectoryWatchOfFailedLookups(dir, dirPath, nonRecursive) { + let dirWatcher = directoryWatchesOfFailedLookups.get(dirPath); + if (dirWatcher) { + Debug.assert(!!nonRecursive === !!dirWatcher.nonRecursive); + dirWatcher.refCount++; + } else { + directoryWatchesOfFailedLookups.set(dirPath, dirWatcher = { watcher: createDirectoryWatcher(dir, dirPath, nonRecursive), refCount: 1, nonRecursive }); + } + return dirWatcher; + } + function stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot, syncDirWatcherRemove) { + const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); + const toWatch = getDirectoryToWatchFailedLookupLocation( + failedLookupLocation, + failedLookupLocationPath, + rootDir, + rootPath, + rootPathComponents, + getCurrentDirectory + ); + if (toWatch) { + const { dirPath, packageDirPath } = toWatch; + if (dirPath === rootPath) { + removeAtRoot = true; + } else if (packageDirPath && resolutionHost.realpath) { + const packageDirWatcher = packageDirWatchers.get(packageDirPath); + const forDirPath = packageDirWatcher.dirPathToWatcher.get(dirPath); + forDirPath.refCount--; + if (forDirPath.refCount === 0) { + removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath, syncDirWatcherRemove); + packageDirWatcher.dirPathToWatcher.delete(dirPath); + if (packageDirWatcher.isSymlink) { + const refCount = dirPathToSymlinkPackageRefCount.get(dirPath) - 1; + if (refCount === 0) { + dirPathToSymlinkPackageRefCount.delete(dirPath); + } else { + dirPathToSymlinkPackageRefCount.set(dirPath, refCount); + } + } + if (syncDirWatcherRemove) closePackageDirWatcher(packageDirWatcher, packageDirPath); + } + } else { + removeDirectoryWatcher(dirPath, syncDirWatcherRemove); + } + } + return removeAtRoot; + } + function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName, syncDirWatcherRemove) { + Debug.checkDefined(resolution.files).delete(filePath); + resolution.refCount--; + if (resolution.refCount) { + return; + } + const resolved = getResolutionWithResolvedFileName(resolution); + if (resolved && resolved.resolvedFileName) { + const key = resolutionHost.toPath(resolved.resolvedFileName); + const resolutions = resolvedFileToResolution.get(key); + if ((resolutions == null ? void 0 : resolutions.delete(resolution)) && !resolutions.size) resolvedFileToResolution.delete(key); + } + const { failedLookupLocations, affectingLocations, alternateResult } = resolution; + if (resolutionsWithFailedLookups.delete(resolution)) { + let removeAtRoot = false; + if (failedLookupLocations) { + for (const failedLookupLocation of failedLookupLocations) { + removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot, syncDirWatcherRemove); + } + } + if (alternateResult) removeAtRoot = stopWatchFailedLookupLocation(alternateResult, removeAtRoot, syncDirWatcherRemove); + if (removeAtRoot) removeDirectoryWatcher(rootPath, syncDirWatcherRemove); + } else if (affectingLocations == null ? void 0 : affectingLocations.length) { + resolutionsWithOnlyAffectingLocations.delete(resolution); + } + if (affectingLocations) { + for (const affectingLocation of affectingLocations) { + const watcher = fileWatchesOfAffectingLocations.get(affectingLocation); + watcher.resolutions--; + if (syncDirWatcherRemove) closeFileWatcherOfAffectingLocation(watcher, affectingLocation); + } + } + } + function removeDirectoryWatcher(dirPath, syncDirWatcherRemove) { + const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath); + dirWatcher.refCount--; + if (syncDirWatcherRemove) closeDirectoryWatchesOfFailedLookup(dirWatcher, dirPath); + } + function createDirectoryWatcher(directory, dirPath, nonRecursive) { + return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, (fileOrDirectory) => { + const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory); + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); + } + scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath); + }, nonRecursive ? 0 /* None */ : 1 /* Recursive */); + } + function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName, syncDirWatcherRemove) { + const resolutions = cache.get(filePath); + if (resolutions) { + resolutions.forEach( + (resolution) => stopWatchFailedLookupLocationOfResolution( + resolution, + filePath, + getResolutionWithResolvedFileName, + syncDirWatcherRemove + ) + ); + cache.delete(filePath); + } + } + function removeResolutionsFromProjectReferenceRedirects(filePath) { + if (!fileExtensionIs(filePath, ".json" /* Json */)) return; + const program = resolutionHost.getCurrentProgram(); + if (!program) return; + const resolvedProjectReference = program.getResolvedProjectReferenceByPath(filePath); + if (!resolvedProjectReference) return; + resolvedProjectReference.commandLine.fileNames.forEach((f) => removeResolutionsOfFile(resolutionHost.toPath(f))); + } + function removeResolutionsOfFile(filePath, syncDirWatcherRemove) { + removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModule, syncDirWatcherRemove); + removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirective, syncDirWatcherRemove); + } + function invalidateResolutions(resolutions, canInvalidate) { + if (!resolutions) return false; + let invalidated = false; + resolutions.forEach((resolution) => { + if (resolution.isInvalidated || !canInvalidate(resolution)) return; + resolution.isInvalidated = invalidated = true; + for (const containingFilePath of Debug.checkDefined(resolution.files)) { + (filesWithInvalidatedResolutions ?? (filesWithInvalidatedResolutions = /* @__PURE__ */ new Set())).add(containingFilePath); + hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || endsWith(containingFilePath, inferredTypesContainingFile); + } + }); + return invalidated; + } + function invalidateResolutionOfFile(filePath) { + removeResolutionsOfFile(filePath); + const prevHasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; + if (invalidateResolutions(resolvedFileToResolution.get(filePath), returnTrue) && hasChangedAutomaticTypeDirectiveNames && !prevHasChangedAutomaticTypeDirectiveNames) { + resolutionHost.onChangedAutomaticTypeDirectiveNames(); + } + } + function setFilesWithInvalidatedNonRelativeUnresolvedImports(filesMap) { + Debug.assert(filesWithInvalidatedNonRelativeUnresolvedImports === filesMap || filesWithInvalidatedNonRelativeUnresolvedImports === void 0); + filesWithInvalidatedNonRelativeUnresolvedImports = filesMap; + } + function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) { + if (isCreatingWatchedDirectory) { + (isInDirectoryChecks || (isInDirectoryChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); + } else { + const updatedPath = removeIgnoredPath(fileOrDirectoryPath); + if (!updatedPath) return false; + fileOrDirectoryPath = updatedPath; + if (resolutionHost.fileIsOpen(fileOrDirectoryPath)) { + return false; + } + const dirOfFileOrDirectory = getDirectoryPath(fileOrDirectoryPath); + if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || isNodeModulesDirectory(fileOrDirectoryPath) || isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || isNodeModulesDirectory(dirOfFileOrDirectory)) { + (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); + (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); + } else { + if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) { + return false; + } + if (fileExtensionIs(fileOrDirectoryPath, ".map")) { + return false; + } + (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); + const packagePath = parseNodeModuleFromPath( + fileOrDirectoryPath, + /*isFolder*/ + true + ); + if (packagePath) (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(packagePath); + } + } + resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations(); + } + function invalidatePackageJsonMap() { + const packageJsonMap = moduleResolutionCache.getPackageJsonInfoCache().getInternalMap(); + if (packageJsonMap && (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks)) { + packageJsonMap.forEach((_value, path) => isInvalidatedFailedLookup(path) ? packageJsonMap.delete(path) : void 0); + } + } + function invalidateResolutionsOfFailedLookupLocations() { + var _a; + if (allModuleAndTypeResolutionsAreInvalidated) { + affectingPathChecksForFile = void 0; + invalidatePackageJsonMap(); + if (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks || affectingPathChecks) { + invalidateResolutions(resolvedLibraries, canInvalidateFailedLookupResolution); + } + failedLookupChecks = void 0; + startsWithPathChecks = void 0; + isInDirectoryChecks = void 0; + affectingPathChecks = void 0; + return true; + } + let invalidated = false; + if (affectingPathChecksForFile) { + (_a = resolutionHost.getCurrentProgram()) == null ? void 0 : _a.getSourceFiles().forEach((f) => { + if (some(f.packageJsonLocations, (location) => affectingPathChecksForFile.has(location))) { + (filesWithInvalidatedResolutions ?? (filesWithInvalidatedResolutions = /* @__PURE__ */ new Set())).add(f.path); + invalidated = true; + } + }); + affectingPathChecksForFile = void 0; + } + if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks && !affectingPathChecks) { + return invalidated; + } + invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution) || invalidated; + invalidatePackageJsonMap(); + failedLookupChecks = void 0; + startsWithPathChecks = void 0; + isInDirectoryChecks = void 0; + invalidated = invalidateResolutions(resolutionsWithOnlyAffectingLocations, canInvalidatedFailedLookupResolutionWithAffectingLocation) || invalidated; + affectingPathChecks = void 0; + return invalidated; + } + function canInvalidateFailedLookupResolution(resolution) { + var _a; + if (canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution)) return true; + if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks) return false; + return ((_a = resolution.failedLookupLocations) == null ? void 0 : _a.some((location) => isInvalidatedFailedLookup(resolutionHost.toPath(location)))) || !!resolution.alternateResult && isInvalidatedFailedLookup(resolutionHost.toPath(resolution.alternateResult)); + } + function isInvalidatedFailedLookup(locationPath) { + return (failedLookupChecks == null ? void 0 : failedLookupChecks.has(locationPath)) || firstDefinedIterator((startsWithPathChecks == null ? void 0 : startsWithPathChecks.keys()) || [], (fileOrDirectoryPath) => startsWith(locationPath, fileOrDirectoryPath) ? true : void 0) || firstDefinedIterator((isInDirectoryChecks == null ? void 0 : isInDirectoryChecks.keys()) || [], (dirPath) => locationPath.length > dirPath.length && startsWith(locationPath, dirPath) && (isDiskPathRoot(dirPath) || locationPath[dirPath.length] === directorySeparator) ? true : void 0); + } + function canInvalidatedFailedLookupResolutionWithAffectingLocation(resolution) { + var _a; + return !!affectingPathChecks && ((_a = resolution.affectingLocations) == null ? void 0 : _a.some((location) => affectingPathChecks.has(location))); + } + function closeTypeRootsWatch() { + clearMap(typeRootsWatches, closeFileWatcher); + } + function createTypeRootsWatch(typeRoot) { + return canWatchTypeRootPath(typeRoot) ? resolutionHost.watchTypeRootsDirectory(typeRoot, (fileOrDirectory) => { + const fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory); + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); + } + hasChangedAutomaticTypeDirectiveNames = true; + resolutionHost.onChangedAutomaticTypeDirectiveNames(); + const dirPath = getDirectoryToWatchFailedLookupLocationFromTypeRoot( + typeRoot, + resolutionHost.toPath(typeRoot), + rootPath, + rootPathComponents, + getCurrentDirectory, + (dirPath2) => directoryWatchesOfFailedLookups.has(dirPath2) || dirPathToSymlinkPackageRefCount.has(dirPath2) + ); + if (dirPath) { + scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath); + } + }, 1 /* Recursive */) : noopFileWatcher; + } + function updateTypeRootsWatch() { + const options = resolutionHost.getCompilationSettings(); + if (options.types) { + closeTypeRootsWatch(); + return; + } + const typeRoots = getEffectiveTypeRoots(options, { getCurrentDirectory }); + if (typeRoots) { + mutateMap( + typeRootsWatches, + new Set(typeRoots), + { + createNewValue: createTypeRootsWatch, + onDeleteValue: closeFileWatcher + } + ); + } else { + closeTypeRootsWatch(); + } + } + function canWatchTypeRootPath(typeRoot) { + if (resolutionHost.getCompilationSettings().typeRoots) return true; + return canWatchAtTypes(resolutionHost.toPath(typeRoot)); + } +} +function resolutionIsSymlink(resolution) { + var _a, _b; + return !!(((_a = resolution.resolvedModule) == null ? void 0 : _a.originalPath) || ((_b = resolution.resolvedTypeReferenceDirective) == null ? void 0 : _b.originalPath)); +} + +// src/compiler/watch.ts +var sysFormatDiagnosticsHost = sys ? { + getCurrentDirectory: () => sys.getCurrentDirectory(), + getNewLine: () => sys.newLine, + getCanonicalFileName: createGetCanonicalFileName(sys.useCaseSensitiveFileNames) +} : void 0; +function createDiagnosticReporter(system, pretty) { + const host = system === sys && sysFormatDiagnosticsHost ? sysFormatDiagnosticsHost : { + getCurrentDirectory: () => system.getCurrentDirectory(), + getNewLine: () => system.newLine, + getCanonicalFileName: createGetCanonicalFileName(system.useCaseSensitiveFileNames) + }; + if (!pretty) { + return (diagnostic) => system.write(formatDiagnostic(diagnostic, host)); + } + const diagnostics = new Array(1); + return (diagnostic) => { + diagnostics[0] = diagnostic; + system.write(formatDiagnosticsWithColorAndContext(diagnostics, host) + host.getNewLine()); + diagnostics[0] = void 0; + }; +} +function clearScreenIfNotWatchingForFileChanges(system, diagnostic, options) { + if (system.clearScreen && !options.preserveWatchOutput && !options.extendedDiagnostics && !options.diagnostics && contains(screenStartingMessageCodes, diagnostic.code)) { + system.clearScreen(); + return true; + } + return false; +} +var screenStartingMessageCodes = [ + Diagnostics.Starting_compilation_in_watch_mode.code, + Diagnostics.File_change_detected_Starting_incremental_compilation.code +]; +function getPlainDiagnosticFollowingNewLines(diagnostic, newLine) { + return contains(screenStartingMessageCodes, diagnostic.code) ? newLine + newLine : newLine; +} +function getLocaleTimeString(system) { + return !system.now ? (/* @__PURE__ */ new Date()).toLocaleTimeString() : ( + // On some systems / builds of Node, there's a non-breaking space between the time and AM/PM. + // This branch is solely for testing, so just switch it to a normal space for baseline stability. + // See: + // - https://github.com/nodejs/node/issues/45171 + // - https://github.com/nodejs/node/issues/45753 + system.now().toLocaleTimeString("en-US", { timeZone: "UTC" }).replace("\u202F", " ") + ); +} +function createWatchStatusReporter(system, pretty) { + return pretty ? (diagnostic, newLine, options) => { + clearScreenIfNotWatchingForFileChanges(system, diagnostic, options); + let output = `[${formatColorAndReset(getLocaleTimeString(system), "\x1B[90m" /* Grey */)}] `; + output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${newLine + newLine}`; + system.write(output); + } : (diagnostic, newLine, options) => { + let output = ""; + if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) { + output += newLine; + } + output += `${getLocaleTimeString(system)} - `; + output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${getPlainDiagnosticFollowingNewLines(diagnostic, newLine)}`; + system.write(output); + }; +} +function parseConfigFileWithSystem(configFileName, optionsToExtend, extendedConfigCache, watchOptionsToExtend, system, reportDiagnostic) { + const host = system; + host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic); + const result = getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend); + host.onUnRecoverableConfigFileDiagnostic = void 0; + return result; +} +function getErrorCountForSummary(diagnostics) { + return countWhere(diagnostics, (diagnostic) => diagnostic.category === 1 /* Error */); +} +function getFilesInErrorForSummary(diagnostics) { + const filesInError = filter(diagnostics, (diagnostic) => diagnostic.category === 1 /* Error */).map( + (errorDiagnostic) => { + if (errorDiagnostic.file === void 0) return; + return `${errorDiagnostic.file.fileName}`; + } + ); + return filesInError.map((fileName) => { + if (fileName === void 0) { + return void 0; + } + const diagnosticForFileName = find(diagnostics, (diagnostic) => diagnostic.file !== void 0 && diagnostic.file.fileName === fileName); + if (diagnosticForFileName !== void 0) { + const { line } = getLineAndCharacterOfPosition(diagnosticForFileName.file, diagnosticForFileName.start); + return { + fileName, + line: line + 1 + }; + } + }); +} +function getWatchErrorSummaryDiagnosticMessage(errorCount) { + return errorCount === 1 ? Diagnostics.Found_1_error_Watching_for_file_changes : Diagnostics.Found_0_errors_Watching_for_file_changes; +} +function prettyPathForFileError(error, cwd) { + const line = formatColorAndReset(":" + error.line, "\x1B[90m" /* Grey */); + if (pathIsAbsolute(error.fileName) && pathIsAbsolute(cwd)) { + return getRelativePathFromDirectory( + cwd, + error.fileName, + /*ignoreCase*/ + false + ) + line; + } + return error.fileName + line; +} +function getErrorSummaryText(errorCount, filesInError, newLine, host) { + if (errorCount === 0) return ""; + const nonNilFiles = filesInError.filter((fileInError) => fileInError !== void 0); + const distinctFileNamesWithLines = nonNilFiles.map((fileInError) => `${fileInError.fileName}:${fileInError.line}`).filter((value, index, self) => self.indexOf(value) === index); + const firstFileReference = nonNilFiles[0] && prettyPathForFileError(nonNilFiles[0], host.getCurrentDirectory()); + let messageAndArgs; + if (errorCount === 1) { + messageAndArgs = filesInError[0] !== void 0 ? [Diagnostics.Found_1_error_in_0, firstFileReference] : [Diagnostics.Found_1_error]; + } else { + messageAndArgs = distinctFileNamesWithLines.length === 0 ? [Diagnostics.Found_0_errors, errorCount] : distinctFileNamesWithLines.length === 1 ? [Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1, errorCount, firstFileReference] : [Diagnostics.Found_0_errors_in_1_files, errorCount, distinctFileNamesWithLines.length]; + } + const d = createCompilerDiagnostic(...messageAndArgs); + const suffix = distinctFileNamesWithLines.length > 1 ? createTabularErrorsDisplay(nonNilFiles, host) : ""; + return `${newLine}${flattenDiagnosticMessageText(d.messageText, newLine)}${newLine}${newLine}${suffix}`; +} +function createTabularErrorsDisplay(filesInError, host) { + const distinctFiles = filesInError.filter((value, index, self) => index === self.findIndex((file) => (file == null ? void 0 : file.fileName) === (value == null ? void 0 : value.fileName))); + if (distinctFiles.length === 0) return ""; + const numberLength = (num) => Math.log(num) * Math.LOG10E + 1; + const fileToErrorCount = distinctFiles.map((file) => [file, countWhere(filesInError, (fileInError) => fileInError.fileName === file.fileName)]); + const maxErrors = fileToErrorCount.reduce((acc, value) => Math.max(acc, value[1] || 0), 0); + const headerRow = Diagnostics.Errors_Files.message; + const leftColumnHeadingLength = headerRow.split(" ")[0].length; + const leftPaddingGoal = Math.max(leftColumnHeadingLength, numberLength(maxErrors)); + const headerPadding = Math.max(numberLength(maxErrors) - leftColumnHeadingLength, 0); + let tabularData = ""; + tabularData += " ".repeat(headerPadding) + headerRow + "\n"; + fileToErrorCount.forEach((row) => { + const [file, errorCount] = row; + const errorCountDigitsLength = Math.log(errorCount) * Math.LOG10E + 1 | 0; + const leftPadding = errorCountDigitsLength < leftPaddingGoal ? " ".repeat(leftPaddingGoal - errorCountDigitsLength) : ""; + const fileRef = prettyPathForFileError(file, host.getCurrentDirectory()); + tabularData += `${leftPadding}${errorCount} ${fileRef} +`; + }); + return tabularData; +} +function isBuilderProgram2(program) { + return !!program.getState; +} +function listFiles(program, write) { + const options = program.getCompilerOptions(); + if (options.explainFiles) { + explainFiles(isBuilderProgram2(program) ? program.getProgram() : program, write); + } else if (options.listFiles || options.listFilesOnly) { + forEach(program.getSourceFiles(), (file) => { + write(file.fileName); + }); + } +} +function explainFiles(program, write) { + var _a, _b; + const reasons = program.getFileIncludeReasons(); + const relativeFileName = (fileName) => convertToRelativePath(fileName, program.getCurrentDirectory(), program.getCanonicalFileName); + for (const file of program.getSourceFiles()) { + write(`${toFileName(file, relativeFileName)}`); + (_a = reasons.get(file.path)) == null ? void 0 : _a.forEach((reason) => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); + (_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) == null ? void 0 : _b.forEach((d) => write(` ${d.messageText}`)); + } +} +function explainIfFileIsRedirectAndImpliedFormat(file, fileNameConvertor) { + var _a; + let result; + if (file.path !== file.resolvedPath) { + (result ?? (result = [])).push(chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.File_is_output_of_project_reference_source_0, + toFileName(file.originalFileName, fileNameConvertor) + )); + } + if (file.redirectInfo) { + (result ?? (result = [])).push(chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.File_redirects_to_file_0, + toFileName(file.redirectInfo.redirectTarget, fileNameConvertor) + )); + } + if (isExternalOrCommonJsModule(file)) { + switch (file.impliedNodeFormat) { + case 99 /* ESNext */: + if (file.packageJsonScope) { + (result ?? (result = [])).push(chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.File_is_ECMAScript_module_because_0_has_field_type_with_value_module, + toFileName(last(file.packageJsonLocations), fileNameConvertor) + )); + } + break; + case 1 /* CommonJS */: + if (file.packageJsonScope) { + (result ?? (result = [])).push(chainDiagnosticMessages( + /*details*/ + void 0, + file.packageJsonScope.contents.packageJsonContent.type ? Diagnostics.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module : Diagnostics.File_is_CommonJS_module_because_0_does_not_have_field_type, + toFileName(last(file.packageJsonLocations), fileNameConvertor) + )); + } else if ((_a = file.packageJsonLocations) == null ? void 0 : _a.length) { + (result ?? (result = [])).push(chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.File_is_CommonJS_module_because_package_json_was_not_found + )); + } + break; + } + } + return result; +} +function getMatchedFileSpec(program, fileName) { + var _a; + const configFile = program.getCompilerOptions().configFile; + if (!((_a = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a.validatedFilesSpec)) return void 0; + const filePath = program.getCanonicalFileName(fileName); + const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); + const index = findIndex(configFile.configFileSpecs.validatedFilesSpec, (fileSpec) => program.getCanonicalFileName(getNormalizedAbsolutePath(fileSpec, basePath)) === filePath); + return index !== -1 ? configFile.configFileSpecs.validatedFilesSpecBeforeSubstitution[index] : void 0; +} +function getMatchedIncludeSpec(program, fileName) { + var _a, _b; + const configFile = program.getCompilerOptions().configFile; + if (!((_a = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _a.validatedIncludeSpecs)) return void 0; + if (configFile.configFileSpecs.isDefaultIncludeSpec) return true; + const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */); + const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory())); + const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames(); + const index = findIndex((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => { + if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */)) return false; + const pattern = getPatternFromSpec(includeSpec, basePath, "files"); + return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName); + }); + return index !== -1 ? configFile.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[index] : void 0; +} +function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) { + var _a, _b; + const options = program.getCompilerOptions(); + if (isReferencedFile(reason)) { + const referenceLocation = getReferencedFileLocation(program, reason); + const referenceText = isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : `"${referenceLocation.text}"`; + let message; + Debug.assert(isReferenceFileLocation(referenceLocation) || reason.kind === 3 /* Import */, "Only synthetic references are imports"); + switch (reason.kind) { + case 3 /* Import */: + if (isReferenceFileLocation(referenceLocation)) { + message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2 : Diagnostics.Imported_via_0_from_file_1; + } else if (referenceLocation.text === externalHelpersModuleNameText) { + message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions : Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions; + } else { + message = referenceLocation.packageId ? Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions : Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions; + } + break; + case 4 /* ReferenceFile */: + Debug.assert(!referenceLocation.packageId); + message = Diagnostics.Referenced_via_0_from_file_1; + break; + case 5 /* TypeReferenceDirective */: + message = referenceLocation.packageId ? Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2 : Diagnostics.Type_library_referenced_via_0_from_file_1; + break; + case 7 /* LibReferenceDirective */: + Debug.assert(!referenceLocation.packageId); + message = Diagnostics.Library_referenced_via_0_from_file_1; + break; + default: + Debug.assertNever(reason); + } + return chainDiagnosticMessages( + /*details*/ + void 0, + message, + referenceText, + toFileName(referenceLocation.file, fileNameConvertor), + referenceLocation.packageId && packageIdToString(referenceLocation.packageId) + ); + } + switch (reason.kind) { + case 0 /* RootFile */: + if (!((_a = options.configFile) == null ? void 0 : _a.configFileSpecs)) return chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Root_file_specified_for_compilation + ); + const fileName = getNormalizedAbsolutePath(program.getRootFileNames()[reason.index], program.getCurrentDirectory()); + const matchedByFiles = getMatchedFileSpec(program, fileName); + if (matchedByFiles) return chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Part_of_files_list_in_tsconfig_json + ); + const matchedByInclude = getMatchedIncludeSpec(program, fileName); + return isString(matchedByInclude) ? chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Matched_by_include_pattern_0_in_1, + matchedByInclude, + toFileName(options.configFile, fileNameConvertor) + ) : ( + // Could be additional files specified as roots or matched by default include + chainDiagnosticMessages( + /*details*/ + void 0, + matchedByInclude ? Diagnostics.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk : Diagnostics.Root_file_specified_for_compilation + ) + ); + case 1 /* SourceFromProjectReference */: + case 2 /* OutputFromProjectReference */: + const isOutput = reason.kind === 2 /* OutputFromProjectReference */; + const referencedResolvedRef = Debug.checkDefined((_b = program.getResolvedProjectReferences()) == null ? void 0 : _b[reason.index]); + return chainDiagnosticMessages( + /*details*/ + void 0, + options.outFile ? isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_1_specified : Diagnostics.Source_from_referenced_project_0_included_because_1_specified : isOutput ? Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none : Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none, + toFileName(referencedResolvedRef.sourceFile.fileName, fileNameConvertor), + options.outFile ? "--outFile" : "--out" + ); + case 8 /* AutomaticTypeDirectiveFile */: { + const messageAndArgs = options.types ? reason.packageId ? [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions, reason.typeReference] : reason.packageId ? [Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : [Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference]; + return chainDiagnosticMessages( + /*details*/ + void 0, + ...messageAndArgs + ); + } + case 6 /* LibFile */: { + if (reason.index !== void 0) return chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.Library_0_specified_in_compilerOptions, + options.lib[reason.index] + ); + const target = getNameOfScriptTarget(getEmitScriptTarget(options)); + const messageAndArgs = target ? [Diagnostics.Default_library_for_target_0, target] : [Diagnostics.Default_library]; + return chainDiagnosticMessages( + /*details*/ + void 0, + ...messageAndArgs + ); + } + default: + Debug.assertNever(reason); + } +} +function toFileName(file, fileNameConvertor) { + const fileName = isString(file) ? file : file.fileName; + return fileNameConvertor ? fileNameConvertor(fileName) : fileName; +} +function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { + const isListFilesOnly = !!program.getCompilerOptions().listFilesOnly; + const allDiagnostics = program.getConfigFileParsingDiagnostics().slice(); + const configFileParsingDiagnosticsLength = allDiagnostics.length; + addRange(allDiagnostics, program.getSyntacticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + )); + if (allDiagnostics.length === configFileParsingDiagnosticsLength) { + addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken)); + if (!isListFilesOnly) { + addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken)); + if (allDiagnostics.length === configFileParsingDiagnosticsLength) { + addRange(allDiagnostics, program.getSemanticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + )); + } + } + } + const emitResult = isListFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program.emit( + /*targetSourceFile*/ + void 0, + writeFile2, + cancellationToken, + emitOnlyDtsFiles, + customTransformers + ); + const { emittedFiles, diagnostics: emitDiagnostics } = emitResult; + addRange(allDiagnostics, emitDiagnostics); + const diagnostics = sortAndDeduplicateDiagnostics(allDiagnostics); + diagnostics.forEach(reportDiagnostic); + if (write) { + const currentDir = program.getCurrentDirectory(); + forEach(emittedFiles, (file) => { + const filepath = getNormalizedAbsolutePath(file, currentDir); + write(`TSFILE: ${filepath}`); + }); + listFiles(program, write); + } + if (reportSummary) { + reportSummary(getErrorCountForSummary(diagnostics), getFilesInErrorForSummary(diagnostics)); + } + return { + emitResult, + diagnostics + }; +} +function emitFilesAndReportErrorsAndGetExitStatus(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { + const { emitResult, diagnostics } = emitFilesAndReportErrors( + program, + reportDiagnostic, + write, + reportSummary, + writeFile2, + cancellationToken, + emitOnlyDtsFiles, + customTransformers + ); + if (emitResult.emitSkipped && diagnostics.length > 0) { + return 1 /* DiagnosticsPresent_OutputsSkipped */; + } else if (diagnostics.length > 0) { + return 2 /* DiagnosticsPresent_OutputsGenerated */; + } + return 0 /* Success */; +} +var noopFileWatcher = { close: noop }; +var returnNoopFileWatcher = () => noopFileWatcher; +function createWatchHost(system = sys, reportWatchStatus2) { + const onWatchStatusChange = reportWatchStatus2 || createWatchStatusReporter(system); + return { + onWatchStatusChange, + watchFile: maybeBind(system, system.watchFile) || returnNoopFileWatcher, + watchDirectory: maybeBind(system, system.watchDirectory) || returnNoopFileWatcher, + setTimeout: maybeBind(system, system.setTimeout) || noop, + clearTimeout: maybeBind(system, system.clearTimeout) || noop + }; +} +var WatchType = { + ConfigFile: "Config file", + ExtendedConfigFile: "Extended config file", + SourceFile: "Source file", + MissingFile: "Missing file", + WildcardDirectory: "Wild card directory", + FailedLookupLocations: "Failed Lookup Locations", + AffectingFileLocation: "File location affecting resolution", + TypeRoots: "Type roots", + ConfigFileOfReferencedProject: "Config file of referened project", + ExtendedConfigOfReferencedProject: "Extended config file of referenced project", + WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project", + PackageJson: "package.json file", + ClosedScriptInfo: "Closed Script info", + ConfigFileForInferredRoot: "Config file for the inferred project root", + NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache", + MissingSourceMapFile: "Missing source map file", + NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root", + MissingGeneratedFile: "Missing generated file", + NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation", + TypingInstallerLocationFile: "File location for typing installer", + TypingInstallerLocationDirectory: "Directory location for typing installer" +}; +function createWatchFactory(host, options) { + const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 /* Verbose */ : options.diagnostics ? 1 /* TriggerOnly */ : 0 /* None */ : 0 /* None */; + const writeLog = watchLogLevel !== 0 /* None */ ? (s) => host.trace(s) : noop; + const result = getWatchFactory(host, watchLogLevel, writeLog); + result.writeLog = writeLog; + return result; +} +function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) { + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); + const compilerHost = { + getSourceFile: createGetSourceFile( + (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding), + /*setParentNodes*/ + void 0 + ), + getDefaultLibLocation: maybeBind(host, host.getDefaultLibLocation), + getDefaultLibFileName: (options) => host.getDefaultLibFileName(options), + writeFile: createWriteFileMeasuringIO( + (path, data, writeByteOrderMark) => host.writeFile(path, data, writeByteOrderMark), + (path) => host.createDirectory(path), + (path) => host.directoryExists(path) + ), + getCurrentDirectory: memoize(() => host.getCurrentDirectory()), + useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2, + getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2), + getNewLine: () => getNewLineCharacter(getCompilerOptions()), + fileExists: (f) => host.fileExists(f), + readFile: (f) => host.readFile(f), + trace: maybeBind(host, host.trace), + directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists), + getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories), + realpath: maybeBind(host, host.realpath), + getEnvironmentVariable: maybeBind(host, host.getEnvironmentVariable) || (() => ""), + createHash: maybeBind(host, host.createHash), + readDirectory: maybeBind(host, host.readDirectory), + storeSignatureInfo: host.storeSignatureInfo, + jsDocParsingMode: host.jsDocParsingMode + }; + return compilerHost; +} +function getSourceFileVersionAsHashFromText(host, text) { + if (text.match(sourceMapCommentRegExpDontCareLineStart)) { + let lineEnd = text.length; + let lineStart = lineEnd; + for (let pos = lineEnd - 1; pos >= 0; pos--) { + const ch = text.charCodeAt(pos); + switch (ch) { + case 10 /* lineFeed */: + if (pos && text.charCodeAt(pos - 1) === 13 /* carriageReturn */) { + pos--; + } + case 13 /* carriageReturn */: + break; + default: + if (ch < 127 /* maxAsciiCharacter */ || !isLineBreak(ch)) { + lineStart = pos; + continue; + } + break; + } + const line = text.substring(lineStart, lineEnd); + if (line.match(sourceMapCommentRegExp)) { + text = text.substring(0, lineStart); + break; + } else if (!line.match(whitespaceOrMapCommentRegExp)) { + break; + } + lineEnd = lineStart; + } + } + return (host.createHash || generateDjb2Hash)(text); +} +function setGetSourceFileAsHashVersioned(compilerHost) { + const originalGetSourceFile = compilerHost.getSourceFile; + compilerHost.getSourceFile = (...args) => { + const result = originalGetSourceFile.call(compilerHost, ...args); + if (result) { + result.version = getSourceFileVersionAsHashFromText(compilerHost, result.text); + } + return result; + }; +} +function createProgramHost(system, createProgram2) { + const getDefaultLibLocation = memoize(() => getDirectoryPath(normalizePath(system.getExecutingFilePath()))); + return { + useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames, + getNewLine: () => system.newLine, + getCurrentDirectory: memoize(() => system.getCurrentDirectory()), + getDefaultLibLocation, + getDefaultLibFileName: (options) => combinePaths(getDefaultLibLocation(), getDefaultLibFileName(options)), + fileExists: (path) => system.fileExists(path), + readFile: (path, encoding) => system.readFile(path, encoding), + directoryExists: (path) => system.directoryExists(path), + getDirectories: (path) => system.getDirectories(path), + readDirectory: (path, extensions, exclude, include, depth) => system.readDirectory(path, extensions, exclude, include, depth), + realpath: maybeBind(system, system.realpath), + getEnvironmentVariable: maybeBind(system, system.getEnvironmentVariable), + trace: (s) => system.write(s + system.newLine), + createDirectory: (path) => system.createDirectory(path), + writeFile: (path, data, writeByteOrderMark) => system.writeFile(path, data, writeByteOrderMark), + createHash: maybeBind(system, system.createHash), + createProgram: createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram, + storeSignatureInfo: system.storeSignatureInfo, + now: maybeBind(system, system.now) + }; +} +function createWatchCompilerHost(system = sys, createProgram2, reportDiagnostic, reportWatchStatus2) { + const write = (s) => system.write(s + system.newLine); + const result = createProgramHost(system, createProgram2); + copyProperties(result, createWatchHost(system, reportWatchStatus2)); + result.afterProgramCreate = (builderProgram) => { + const compilerOptions = builderProgram.getCompilerOptions(); + const newLine = getNewLineCharacter(compilerOptions); + emitFilesAndReportErrors( + builderProgram, + reportDiagnostic, + write, + (errorCount) => result.onWatchStatusChange( + createCompilerDiagnostic(getWatchErrorSummaryDiagnosticMessage(errorCount), errorCount), + newLine, + compilerOptions, + errorCount + ) + ); + }; + return result; +} +function reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic) { + reportDiagnostic(diagnostic); + system.exit(1 /* DiagnosticsPresent_OutputsSkipped */); +} +function createWatchCompilerHostOfConfigFile({ + configFileName, + optionsToExtend, + watchOptionsToExtend, + extraFileExtensions, + system, + createProgram: createProgram2, + reportDiagnostic, + reportWatchStatus: reportWatchStatus2 +}) { + const diagnosticReporter = reportDiagnostic || createDiagnosticReporter(system); + const host = createWatchCompilerHost(system, createProgram2, diagnosticReporter, reportWatchStatus2); + host.onUnRecoverableConfigFileDiagnostic = (diagnostic) => reportUnrecoverableDiagnostic(system, diagnosticReporter, diagnostic); + host.configFileName = configFileName; + host.optionsToExtend = optionsToExtend; + host.watchOptionsToExtend = watchOptionsToExtend; + host.extraFileExtensions = extraFileExtensions; + return host; +} +function createWatchCompilerHostOfFilesAndCompilerOptions({ + rootFiles, + options, + watchOptions, + projectReferences, + system, + createProgram: createProgram2, + reportDiagnostic, + reportWatchStatus: reportWatchStatus2 +}) { + const host = createWatchCompilerHost(system, createProgram2, reportDiagnostic || createDiagnosticReporter(system), reportWatchStatus2); + host.rootFiles = rootFiles; + host.options = options; + host.watchOptions = watchOptions; + host.projectReferences = projectReferences; + return host; +} +function performIncrementalCompilation(input) { + const system = input.system || sys; + const host = input.host || (input.host = createIncrementalCompilerHost(input.options, system)); + const builderProgram = createIncrementalProgram(input); + const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( + builderProgram, + input.reportDiagnostic || createDiagnosticReporter(system), + (s) => host.trace && host.trace(s), + input.reportErrorSummary || input.options.pretty ? (errorCount, filesInError) => system.write(getErrorSummaryText(errorCount, filesInError, system.newLine, host)) : void 0 + ); + if (input.afterProgramEmitAndDiagnostics) input.afterProgramEmitAndDiagnostics(builderProgram); + return exitStatus; +} + +// src/compiler/watchPublic.ts +function readBuilderProgram(compilerOptions, host) { + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(compilerOptions); + if (!buildInfoPath) return void 0; + let buildInfo; + if (host.getBuildInfo) { + buildInfo = host.getBuildInfo(buildInfoPath, compilerOptions.configFilePath); + } else { + const content = host.readFile(buildInfoPath); + if (!content) return void 0; + buildInfo = getBuildInfo(buildInfoPath, content); + } + if (!buildInfo || buildInfo.version !== version || !buildInfo.program) return void 0; + return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host); +} +function createIncrementalCompilerHost(options, system = sys) { + const host = createCompilerHostWorker( + options, + /*setParentNodes*/ + void 0, + system + ); + host.createHash = maybeBind(system, system.createHash); + host.storeSignatureInfo = system.storeSignatureInfo; + setGetSourceFileAsHashVersioned(host); + changeCompilerHostLikeToUseCache(host, (fileName) => toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName)); + return host; +} +function createIncrementalProgram({ + rootNames, + options, + configFileParsingDiagnostics, + projectReferences, + host, + createProgram: createProgram2 +}) { + host = host || createIncrementalCompilerHost(options); + createProgram2 = createProgram2 || createEmitAndSemanticDiagnosticsBuilderProgram; + const oldProgram = readBuilderProgram(options, host); + return createProgram2(rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences); +} +function createWatchProgram(host) { + let builderProgram; + let updateLevel; + let missingFilesMap; + let watchedWildcardDirectories; + let timerToUpdateProgram; + let timerToInvalidateFailedLookupResolutions; + let parsedConfigs; + let sharedExtendedConfigFileWatchers; + let extendedConfigCache = host.extendedConfigCache; + let reportFileChangeDetectedOnCreateProgram = false; + const sourceFilesCache = /* @__PURE__ */ new Map(); + let missingFilePathsRequestedForRelease; + let hasChangedCompilerOptions = false; + const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames(); + const currentDirectory = host.getCurrentDirectory(); + const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host; + let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host; + let wildcardDirectories; + let configFileParsingDiagnostics; + let canConfigFileJsonReportNoInputFiles = false; + let hasChangedConfigFileParsingErrors = false; + const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2); + const directoryStructureHost = cachedDirectoryStructureHost || host; + const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost); + let newLine = updateNewLine(); + if (configFileName && host.configFileParsingResult) { + setConfigFileParsingResult(host.configFileParsingResult); + newLine = updateNewLine(); + } + reportWatchDiagnostic(Diagnostics.Starting_compilation_in_watch_mode); + if (configFileName && !host.configFileParsingResult) { + newLine = getNewLineCharacter(optionsToExtendForConfigFile); + Debug.assert(!rootFileNames); + parseConfigFile2(); + newLine = updateNewLine(); + } + Debug.assert(compilerOptions); + Debug.assert(rootFileNames); + const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions); + const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2); + writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`); + let configFileWatcher; + if (configFileName) { + configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile); + } + const compilerHost = createCompilerHostFromProgramHost(host, () => compilerOptions, directoryStructureHost); + setGetSourceFileAsHashVersioned(compilerHost); + const getNewSourceFile = compilerHost.getSourceFile; + compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath3(fileName), ...args); + compilerHost.getSourceFileByPath = getVersionedSourceFileByPath; + compilerHost.getNewLine = () => newLine; + compilerHost.fileExists = fileExists; + compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile; + compilerHost.onReleaseParsedCommandLine = onReleaseParsedCommandLine; + compilerHost.toPath = toPath3; + compilerHost.getCompilationSettings = () => compilerOptions; + compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect); + compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.FailedLookupLocations); + compilerHost.watchAffectingFileLocation = (file, cb) => watchFile2(file, cb, 2e3 /* High */, watchOptions, WatchType.AffectingFileLocation); + compilerHost.watchTypeRootsDirectory = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.TypeRoots); + compilerHost.getCachedDirectoryStructureHost = () => cachedDirectoryStructureHost; + compilerHost.scheduleInvalidateResolutionsOfFailedLookupLocations = scheduleInvalidateResolutionsOfFailedLookupLocations; + compilerHost.onInvalidatedResolution = scheduleProgramUpdate; + compilerHost.onChangedAutomaticTypeDirectiveNames = scheduleProgramUpdate; + compilerHost.fileIsOpen = returnFalse; + compilerHost.getCurrentProgram = getCurrentProgram; + compilerHost.writeLog = writeLog; + compilerHost.getParsedCommandLine = getParsedCommandLine; + const resolutionCache = createResolutionCache( + compilerHost, + configFileName ? getDirectoryPath(getNormalizedAbsolutePath(configFileName, currentDirectory)) : currentDirectory, + /*logChangesWhenResolvingModule*/ + false + ); + compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); + compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); + if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) { + compilerHost.resolveModuleNameLiterals = resolutionCache.resolveModuleNameLiterals.bind(resolutionCache); + } + compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences); + compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); + if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) { + compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache); + } + compilerHost.resolveLibrary = !host.resolveLibrary ? resolutionCache.resolveLibrary.bind(resolutionCache) : host.resolveLibrary.bind(host); + compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : () => resolutionCache.getModuleResolutionCache(); + const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives; + const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse; + const customHasInvalidLibResolutions = host.resolveLibrary ? maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : returnFalse; + builderProgram = readBuilderProgram(compilerOptions, compilerHost); + synchronizeProgram(); + watchConfigFileWildCardDirectories(); + if (configFileName) updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); + return configFileName ? { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, close, getResolutionCache } : { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, updateRootFileNames, close, getResolutionCache }; + function close() { + clearInvalidateResolutionsOfFailedLookupLocations(); + resolutionCache.clear(); + clearMap(sourceFilesCache, (value) => { + if (value && value.fileWatcher) { + value.fileWatcher.close(); + value.fileWatcher = void 0; + } + }); + if (configFileWatcher) { + configFileWatcher.close(); + configFileWatcher = void 0; + } + extendedConfigCache == null ? void 0 : extendedConfigCache.clear(); + extendedConfigCache = void 0; + if (sharedExtendedConfigFileWatchers) { + clearMap(sharedExtendedConfigFileWatchers, closeFileWatcherOf); + sharedExtendedConfigFileWatchers = void 0; + } + if (watchedWildcardDirectories) { + clearMap(watchedWildcardDirectories, closeFileWatcherOf); + watchedWildcardDirectories = void 0; + } + if (missingFilesMap) { + clearMap(missingFilesMap, closeFileWatcher); + missingFilesMap = void 0; + } + if (parsedConfigs) { + clearMap(parsedConfigs, (config) => { + var _a; + (_a = config.watcher) == null ? void 0 : _a.close(); + config.watcher = void 0; + if (config.watchedDirectories) clearMap(config.watchedDirectories, closeFileWatcherOf); + config.watchedDirectories = void 0; + }); + parsedConfigs = void 0; + } + builderProgram = void 0; + } + function getResolutionCache() { + return resolutionCache; + } + function getCurrentBuilderProgram() { + return builderProgram; + } + function getCurrentProgram() { + return builderProgram && builderProgram.getProgramOrUndefined(); + } + function synchronizeProgram() { + writeLog(`Synchronizing program`); + Debug.assert(compilerOptions); + Debug.assert(rootFileNames); + clearInvalidateResolutionsOfFailedLookupLocations(); + const program = getCurrentBuilderProgram(); + if (hasChangedCompilerOptions) { + newLine = updateNewLine(); + if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) { + resolutionCache.onChangesAffectModuleResolution(); + } + } + const { hasInvalidatedResolutions, hasInvalidatedLibResolutions } = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidLibResolutions); + const { + originalReadFile, + originalFileExists, + originalDirectoryExists, + originalCreateDirectory, + originalWriteFile, + readFileWithCache + } = changeCompilerHostLikeToUseCache(compilerHost, toPath3); + if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, (path) => getSourceVersion(path, readFileWithCache), (fileName) => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + if (hasChangedConfigFileParsingErrors) { + if (reportFileChangeDetectedOnCreateProgram) { + reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); + } + builderProgram = createProgram2( + /*rootNames*/ + void 0, + /*options*/ + void 0, + compilerHost, + builderProgram, + configFileParsingDiagnostics, + projectReferences + ); + hasChangedConfigFileParsingErrors = false; + } + } else { + if (reportFileChangeDetectedOnCreateProgram) { + reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); + } + createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions); + } + reportFileChangeDetectedOnCreateProgram = false; + if (host.afterProgramCreate && program !== builderProgram) { + host.afterProgramCreate(builderProgram); + } + compilerHost.readFile = originalReadFile; + compilerHost.fileExists = originalFileExists; + compilerHost.directoryExists = originalDirectoryExists; + compilerHost.createDirectory = originalCreateDirectory; + compilerHost.writeFile = originalWriteFile; + return builderProgram; + } + function createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions) { + writeLog("CreatingProgramWith::"); + writeLog(` roots: ${JSON.stringify(rootFileNames)}`); + writeLog(` options: ${JSON.stringify(compilerOptions)}`); + if (projectReferences) writeLog(` projectReferences: ${JSON.stringify(projectReferences)}`); + const needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram(); + hasChangedCompilerOptions = false; + hasChangedConfigFileParsingErrors = false; + resolutionCache.startCachingPerDirectoryResolution(); + compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions; + compilerHost.hasInvalidatedLibResolutions = hasInvalidatedLibResolutions; + compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; + const oldProgram = getCurrentProgram(); + builderProgram = createProgram2(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences); + resolutionCache.finishCachingPerDirectoryResolution(builderProgram.getProgram(), oldProgram); + updateMissingFilePathsWatch( + builderProgram.getProgram(), + missingFilesMap || (missingFilesMap = /* @__PURE__ */ new Map()), + watchMissingFilePath + ); + if (needsUpdateInTypeRootWatch) { + resolutionCache.updateTypeRootsWatch(); + } + if (missingFilePathsRequestedForRelease) { + for (const missingFilePath of missingFilePathsRequestedForRelease) { + if (!missingFilesMap.has(missingFilePath)) { + sourceFilesCache.delete(missingFilePath); + } + } + missingFilePathsRequestedForRelease = void 0; + } + } + function updateRootFileNames(files) { + Debug.assert(!configFileName, "Cannot update root file names with config file watch mode"); + rootFileNames = files; + scheduleProgramUpdate(); + } + function updateNewLine() { + return getNewLineCharacter(compilerOptions || optionsToExtendForConfigFile); + } + function toPath3(fileName) { + return toPath(fileName, currentDirectory, getCanonicalFileName); + } + function isFileMissingOnHost(hostSourceFile) { + return typeof hostSourceFile === "boolean"; + } + function isFilePresenceUnknownOnHost(hostSourceFile) { + return typeof hostSourceFile.version === "boolean"; + } + function fileExists(fileName) { + const path = toPath3(fileName); + if (isFileMissingOnHost(sourceFilesCache.get(path))) { + return false; + } + return directoryStructureHost.fileExists(fileName); + } + function getVersionedSourceFileByPath(fileName, path, languageVersionOrOptions, onError, shouldCreateNewSourceFile) { + const hostSourceFile = sourceFilesCache.get(path); + if (isFileMissingOnHost(hostSourceFile)) { + return void 0; + } + const impliedNodeFormat = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions.impliedNodeFormat : void 0; + if (hostSourceFile === void 0 || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile) || hostSourceFile.sourceFile.impliedNodeFormat !== impliedNodeFormat) { + const sourceFile = getNewSourceFile(fileName, languageVersionOrOptions, onError); + if (hostSourceFile) { + if (sourceFile) { + hostSourceFile.sourceFile = sourceFile; + hostSourceFile.version = sourceFile.version; + if (!hostSourceFile.fileWatcher) { + hostSourceFile.fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250 /* Low */, watchOptions, WatchType.SourceFile); + } + } else { + if (hostSourceFile.fileWatcher) { + hostSourceFile.fileWatcher.close(); + } + sourceFilesCache.set(path, false); + } + } else { + if (sourceFile) { + const fileWatcher = watchFilePath(path, fileName, onSourceFileChange, 250 /* Low */, watchOptions, WatchType.SourceFile); + sourceFilesCache.set(path, { sourceFile, version: sourceFile.version, fileWatcher }); + } else { + sourceFilesCache.set(path, false); + } + } + return sourceFile; + } + return hostSourceFile.sourceFile; + } + function nextSourceFileVersion(path) { + const hostSourceFile = sourceFilesCache.get(path); + if (hostSourceFile !== void 0) { + if (isFileMissingOnHost(hostSourceFile)) { + sourceFilesCache.set(path, { version: false }); + } else { + hostSourceFile.version = false; + } + } + } + function getSourceVersion(path, readFileWithCache) { + const hostSourceFile = sourceFilesCache.get(path); + if (!hostSourceFile) return void 0; + if (hostSourceFile.version) return hostSourceFile.version; + const text = readFileWithCache(path); + return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0; + } + function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) { + const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath); + if (hostSourceFileInfo !== void 0) { + if (isFileMissingOnHost(hostSourceFileInfo)) { + (missingFilePathsRequestedForRelease || (missingFilePathsRequestedForRelease = [])).push(oldSourceFile.path); + } else if (hostSourceFileInfo.sourceFile === oldSourceFile) { + if (hostSourceFileInfo.fileWatcher) { + hostSourceFileInfo.fileWatcher.close(); + } + sourceFilesCache.delete(oldSourceFile.resolvedPath); + if (!hasSourceFileByPath) { + resolutionCache.removeResolutionsOfFile(oldSourceFile.path); + } + } + } + } + function reportWatchDiagnostic(message) { + if (host.onWatchStatusChange) { + host.onWatchStatusChange(createCompilerDiagnostic(message), newLine, compilerOptions || optionsToExtendForConfigFile); + } + } + function hasChangedAutomaticTypeDirectiveNames() { + return resolutionCache.hasChangedAutomaticTypeDirectiveNames(); + } + function clearInvalidateResolutionsOfFailedLookupLocations() { + if (!timerToInvalidateFailedLookupResolutions) return false; + host.clearTimeout(timerToInvalidateFailedLookupResolutions); + timerToInvalidateFailedLookupResolutions = void 0; + return true; + } + function scheduleInvalidateResolutionsOfFailedLookupLocations() { + if (!host.setTimeout || !host.clearTimeout) { + return resolutionCache.invalidateResolutionsOfFailedLookupLocations(); + } + const pending = clearInvalidateResolutionsOfFailedLookupLocations(); + writeLog(`Scheduling invalidateFailedLookup${pending ? ", Cancelled earlier one" : ""}`); + timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250, "timerToInvalidateFailedLookupResolutions"); + } + function invalidateResolutionsOfFailedLookup() { + timerToInvalidateFailedLookupResolutions = void 0; + if (resolutionCache.invalidateResolutionsOfFailedLookupLocations()) { + scheduleProgramUpdate(); + } + } + function scheduleProgramUpdate() { + if (!host.setTimeout || !host.clearTimeout) { + return; + } + if (timerToUpdateProgram) { + host.clearTimeout(timerToUpdateProgram); + } + writeLog("Scheduling update"); + timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250, "timerToUpdateProgram"); + } + function scheduleProgramReload() { + Debug.assert(!!configFileName); + updateLevel = 2 /* Full */; + scheduleProgramUpdate(); + } + function updateProgramWithWatchStatus() { + timerToUpdateProgram = void 0; + reportFileChangeDetectedOnCreateProgram = true; + updateProgram(); + } + function updateProgram() { + var _a, _b, _c, _d; + switch (updateLevel) { + case 1 /* RootNamesAndUpdate */: + (_a = perfLogger) == null ? void 0 : _a.logStartUpdateProgram("PartialConfigReload"); + reloadFileNamesFromConfigFile(); + break; + case 2 /* Full */: + (_b = perfLogger) == null ? void 0 : _b.logStartUpdateProgram("FullConfigReload"); + reloadConfigFile(); + break; + default: + (_c = perfLogger) == null ? void 0 : _c.logStartUpdateProgram("SynchronizeProgram"); + synchronizeProgram(); + break; + } + (_d = perfLogger) == null ? void 0 : _d.logStopUpdateProgram("Done"); + return getCurrentBuilderProgram(); + } + function reloadFileNamesFromConfigFile() { + writeLog("Reloading new file names and options"); + Debug.assert(compilerOptions); + Debug.assert(configFileName); + updateLevel = 0 /* Update */; + rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions); + if (updateErrorForNoInputFiles(rootFileNames, getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile.configFileSpecs, configFileParsingDiagnostics, canConfigFileJsonReportNoInputFiles)) { + hasChangedConfigFileParsingErrors = true; + } + synchronizeProgram(); + } + function reloadConfigFile() { + Debug.assert(configFileName); + writeLog(`Reloading config file: ${configFileName}`); + updateLevel = 0 /* Update */; + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.clearCache(); + } + parseConfigFile2(); + hasChangedCompilerOptions = true; + synchronizeProgram(); + watchConfigFileWildCardDirectories(); + updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); + } + function parseConfigFile2() { + Debug.assert(configFileName); + setConfigFileParsingResult( + getParsedCommandLineOfConfigFile( + configFileName, + optionsToExtendForConfigFile, + parseConfigFileHost, + extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), + watchOptionsToExtend, + extraFileExtensions + ) + ); + } + function setConfigFileParsingResult(configFileParseResult) { + rootFileNames = configFileParseResult.fileNames; + compilerOptions = configFileParseResult.options; + watchOptions = configFileParseResult.watchOptions; + projectReferences = configFileParseResult.projectReferences; + wildcardDirectories = configFileParseResult.wildcardDirectories; + configFileParsingDiagnostics = getConfigFileParsingDiagnostics(configFileParseResult).slice(); + canConfigFileJsonReportNoInputFiles = canJsonReportNoInputFiles(configFileParseResult.raw); + hasChangedConfigFileParsingErrors = true; + } + function getParsedCommandLine(configFileName2) { + const configPath = toPath3(configFileName2); + let config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); + if (config) { + if (!config.updateLevel) return config.parsedCommandLine; + if (config.parsedCommandLine && config.updateLevel === 1 /* RootNamesAndUpdate */ && !host.getParsedCommandLine) { + writeLog("Reloading new file names and options"); + Debug.assert(compilerOptions); + const fileNames = getFileNamesFromConfigSpecs( + config.parsedCommandLine.options.configFile.configFileSpecs, + getNormalizedAbsolutePath(getDirectoryPath(configFileName2), currentDirectory), + compilerOptions, + parseConfigFileHost + ); + config.parsedCommandLine = { ...config.parsedCommandLine, fileNames }; + config.updateLevel = void 0; + return config.parsedCommandLine; + } + } + writeLog(`Loading config file: ${configFileName2}`); + const parsedCommandLine = host.getParsedCommandLine ? host.getParsedCommandLine(configFileName2) : getParsedCommandLineFromConfigFileHost(configFileName2); + if (config) { + config.parsedCommandLine = parsedCommandLine; + config.updateLevel = void 0; + } else { + (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine }); + } + watchReferencedProject(configFileName2, configPath, config); + return parsedCommandLine; + } + function getParsedCommandLineFromConfigFileHost(configFileName2) { + const onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic; + parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop; + const parsedCommandLine = getParsedCommandLineOfConfigFile( + configFileName2, + /*optionsToExtend*/ + void 0, + parseConfigFileHost, + extendedConfigCache || (extendedConfigCache = /* @__PURE__ */ new Map()), + watchOptionsToExtend + ); + parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic; + return parsedCommandLine; + } + function onReleaseParsedCommandLine(fileName) { + var _a; + const path = toPath3(fileName); + const config = parsedConfigs == null ? void 0 : parsedConfigs.get(path); + if (!config) return; + parsedConfigs.delete(path); + if (config.watchedDirectories) clearMap(config.watchedDirectories, closeFileWatcherOf); + (_a = config.watcher) == null ? void 0 : _a.close(); + clearSharedExtendedConfigFileWatcher(path, sharedExtendedConfigFileWatchers); + } + function watchFilePath(path, file, callback, pollingInterval, options, watchType) { + return watchFile2(file, (fileName, eventKind) => callback(fileName, eventKind, path), pollingInterval, options, watchType); + } + function onSourceFileChange(fileName, eventKind, path) { + updateCachedSystemWithFile(fileName, path, eventKind); + if (eventKind === 2 /* Deleted */ && sourceFilesCache.has(path)) { + resolutionCache.invalidateResolutionOfFile(path); + } + nextSourceFileVersion(path); + scheduleProgramUpdate(); + } + function updateCachedSystemWithFile(fileName, path, eventKind) { + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.addOrDeleteFile(fileName, path, eventKind); + } + } + function watchMissingFilePath(missingFilePath, missingFileName) { + return (parsedConfigs == null ? void 0 : parsedConfigs.has(missingFilePath)) ? noopFileWatcher : watchFilePath( + missingFilePath, + missingFileName, + onMissingFileChange, + 500 /* Medium */, + watchOptions, + WatchType.MissingFile + ); + } + function onMissingFileChange(fileName, eventKind, missingFilePath) { + updateCachedSystemWithFile(fileName, missingFilePath, eventKind); + if (eventKind === 0 /* Created */ && missingFilesMap.has(missingFilePath)) { + missingFilesMap.get(missingFilePath).close(); + missingFilesMap.delete(missingFilePath); + nextSourceFileVersion(missingFilePath); + scheduleProgramUpdate(); + } + } + function watchConfigFileWildCardDirectories() { + updateWatchingWildcardDirectories( + watchedWildcardDirectories || (watchedWildcardDirectories = /* @__PURE__ */ new Map()), + wildcardDirectories, + watchWildcardDirectory + ); + } + function watchWildcardDirectory(directory, flags) { + return watchDirectory( + directory, + (fileOrDirectory) => { + Debug.assert(configFileName); + Debug.assert(compilerOptions); + const fileOrDirectoryPath = toPath3(fileOrDirectory); + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); + } + nextSourceFileVersion(fileOrDirectoryPath); + if (isIgnoredFileFromWildCardWatching({ + watchedDirPath: toPath3(directory), + fileOrDirectory, + fileOrDirectoryPath, + configFileName, + extraFileExtensions, + options: compilerOptions, + program: getCurrentBuilderProgram() || rootFileNames, + currentDirectory, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + writeLog, + toPath: toPath3 + })) return; + if (updateLevel !== 2 /* Full */) { + updateLevel = 1 /* RootNamesAndUpdate */; + scheduleProgramUpdate(); + } + }, + flags, + watchOptions, + WatchType.WildcardDirectory + ); + } + function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions2, watchType) { + updateSharedExtendedConfigFileWatcher( + forProjectPath, + options, + sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map()), + (extendedConfigFileName, extendedConfigFilePath) => watchFile2( + extendedConfigFileName, + (_fileName, eventKind) => { + var _a; + updateCachedSystemWithFile(extendedConfigFileName, extendedConfigFilePath, eventKind); + if (extendedConfigCache) cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath3); + const projects = (_a = sharedExtendedConfigFileWatchers.get(extendedConfigFilePath)) == null ? void 0 : _a.projects; + if (!(projects == null ? void 0 : projects.size)) return; + projects.forEach((projectPath) => { + if (configFileName && toPath3(configFileName) === projectPath) { + updateLevel = 2 /* Full */; + } else { + const config = parsedConfigs == null ? void 0 : parsedConfigs.get(projectPath); + if (config) config.updateLevel = 2 /* Full */; + resolutionCache.removeResolutionsFromProjectReferenceRedirects(projectPath); + } + scheduleProgramUpdate(); + }); + }, + 2e3 /* High */, + watchOptions2, + watchType + ), + toPath3 + ); + } + function watchReferencedProject(configFileName2, configPath, commandLine) { + var _a, _b, _c, _d; + commandLine.watcher || (commandLine.watcher = watchFile2( + configFileName2, + (_fileName, eventKind) => { + updateCachedSystemWithFile(configFileName2, configPath, eventKind); + const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); + if (config) config.updateLevel = 2 /* Full */; + resolutionCache.removeResolutionsFromProjectReferenceRedirects(configPath); + scheduleProgramUpdate(); + }, + 2e3 /* High */, + ((_a = commandLine.parsedCommandLine) == null ? void 0 : _a.watchOptions) || watchOptions, + WatchType.ConfigFileOfReferencedProject + )); + updateWatchingWildcardDirectories( + commandLine.watchedDirectories || (commandLine.watchedDirectories = /* @__PURE__ */ new Map()), + (_b = commandLine.parsedCommandLine) == null ? void 0 : _b.wildcardDirectories, + (directory, flags) => { + var _a2; + return watchDirectory( + directory, + (fileOrDirectory) => { + const fileOrDirectoryPath = toPath3(fileOrDirectory); + if (cachedDirectoryStructureHost) { + cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); + } + nextSourceFileVersion(fileOrDirectoryPath); + const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); + if (!(config == null ? void 0 : config.parsedCommandLine)) return; + if (isIgnoredFileFromWildCardWatching({ + watchedDirPath: toPath3(directory), + fileOrDirectory, + fileOrDirectoryPath, + configFileName: configFileName2, + options: config.parsedCommandLine.options, + program: config.parsedCommandLine.fileNames, + currentDirectory, + useCaseSensitiveFileNames: useCaseSensitiveFileNames2, + writeLog, + toPath: toPath3 + })) return; + if (config.updateLevel !== 2 /* Full */) { + config.updateLevel = 1 /* RootNamesAndUpdate */; + scheduleProgramUpdate(); + } + }, + flags, + ((_a2 = commandLine.parsedCommandLine) == null ? void 0 : _a2.watchOptions) || watchOptions, + WatchType.WildcardDirectoryOfReferencedProject + ); + } + ); + updateExtendedConfigFilesWatches( + configPath, + (_c = commandLine.parsedCommandLine) == null ? void 0 : _c.options, + ((_d = commandLine.parsedCommandLine) == null ? void 0 : _d.watchOptions) || watchOptions, + WatchType.ExtendedConfigOfReferencedProject + ); + } +} + +// src/compiler/tsbuild.ts +function resolveConfigFileProjectName(project) { + if (fileExtensionIs(project, ".json" /* Json */)) { + return project; + } + return combinePaths(project, "tsconfig.json"); +} + +// src/compiler/tsbuildPublic.ts +var minimumDate = /* @__PURE__ */ new Date(-864e13); +var maximumDate = /* @__PURE__ */ new Date(864e13); +function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) { + const existingValue = configFileMap.get(resolved); + let newValue; + if (!existingValue) { + newValue = createT(); + configFileMap.set(resolved, newValue); + } + return existingValue || newValue; +} +function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) { + return getOrCreateValueFromConfigFileMap(configFileMap, resolved, () => /* @__PURE__ */ new Map()); +} +function getCurrentTime(host) { + return host.now ? host.now() : /* @__PURE__ */ new Date(); +} +function isCircularBuildOrder(buildOrder) { + return !!buildOrder && !!buildOrder.buildOrder; +} +function getBuildOrderFromAnyBuildOrder(anyBuildOrder) { + return isCircularBuildOrder(anyBuildOrder) ? anyBuildOrder.buildOrder : anyBuildOrder; +} +function createBuilderStatusReporter(system, pretty) { + return (diagnostic) => { + let output = pretty ? `[${formatColorAndReset(getLocaleTimeString(system), "\x1B[90m" /* Grey */)}] ` : `${getLocaleTimeString(system)} - `; + output += `${flattenDiagnosticMessageText(diagnostic.messageText, system.newLine)}${system.newLine + system.newLine}`; + system.write(output); + }; +} +function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) { + const host = createProgramHost(system, createProgram2); + host.getModifiedTime = system.getModifiedTime ? (path) => system.getModifiedTime(path) : returnUndefined; + host.setModifiedTime = system.setModifiedTime ? (path, date) => system.setModifiedTime(path, date) : noop; + host.deleteFile = system.deleteFile ? (path) => system.deleteFile(path) : noop; + host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system); + host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system); + host.now = maybeBind(system, system.now); + return host; +} +function createSolutionBuilderHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportErrorSummary2) { + const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus); + host.reportErrorSummary = reportErrorSummary2; + return host; +} +function createSolutionBuilderWithWatchHost(system = sys, createProgram2, reportDiagnostic, reportSolutionBuilderStatus, reportWatchStatus2) { + const host = createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus); + const watchHost = createWatchHost(system, reportWatchStatus2); + copyProperties(host, watchHost); + return host; +} +function getCompilerOptionsOfBuildOptions(buildOptions) { + const result = {}; + commonOptionsWithBuild.forEach((option) => { + if (hasProperty(buildOptions, option.name)) result[option.name] = buildOptions[option.name]; + }); + return result; +} +function createSolutionBuilder(host, rootNames, defaultOptions) { + return createSolutionBuilderWorker( + /*watch*/ + false, + host, + rootNames, + defaultOptions + ); +} +function createSolutionBuilderWithWatch(host, rootNames, defaultOptions, baseWatchOptions) { + return createSolutionBuilderWorker( + /*watch*/ + true, + host, + rootNames, + defaultOptions, + baseWatchOptions + ); +} +function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) { + const host = hostOrHostWithWatch; + const hostWithWatch = hostOrHostWithWatch; + const baseCompilerOptions = getCompilerOptionsOfBuildOptions(options); + const compilerHost = createCompilerHostFromProgramHost(host, () => state.projectCompilerOptions); + setGetSourceFileAsHashVersioned(compilerHost); + compilerHost.getParsedCommandLine = (fileName) => parseConfigFile(state, fileName, toResolvedConfigFilePath(state, fileName)); + compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); + compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences); + compilerHost.resolveLibrary = maybeBind(host, host.resolveLibrary); + compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); + compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); + compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache); + let moduleResolutionCache, typeReferenceDirectiveResolutionCache; + if (!compilerHost.resolveModuleNameLiterals && !compilerHost.resolveModuleNames) { + moduleResolutionCache = createModuleResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName); + compilerHost.resolveModuleNameLiterals = (moduleNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( + moduleNames, + containingFile, + redirectedReference, + options2, + containingSourceFile, + host, + moduleResolutionCache, + createModuleResolutionLoader + ); + compilerHost.getModuleResolutionCache = () => moduleResolutionCache; + } + if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) { + typeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache( + compilerHost.getCurrentDirectory(), + compilerHost.getCanonicalFileName, + /*options*/ + void 0, + moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache(), + moduleResolutionCache == null ? void 0 : moduleResolutionCache.optionsToRedirectsKey + ); + compilerHost.resolveTypeReferenceDirectiveReferences = (typeDirectiveNames, containingFile, redirectedReference, options2, containingSourceFile) => loadWithModeAwareCache( + typeDirectiveNames, + containingFile, + redirectedReference, + options2, + containingSourceFile, + host, + typeReferenceDirectiveResolutionCache, + createTypeReferenceResolutionLoader + ); + } + let libraryResolutionCache; + if (!compilerHost.resolveLibrary) { + libraryResolutionCache = createModuleResolutionCache( + compilerHost.getCurrentDirectory(), + compilerHost.getCanonicalFileName, + /*options*/ + void 0, + moduleResolutionCache == null ? void 0 : moduleResolutionCache.getPackageJsonInfoCache() + ); + compilerHost.resolveLibrary = (libraryName, resolveFrom, options2) => resolveLibrary( + libraryName, + resolveFrom, + options2, + host, + libraryResolutionCache + ); + } + compilerHost.getBuildInfo = (fileName, configFilePath) => getBuildInfo3( + state, + fileName, + toResolvedConfigFilePath(state, configFilePath), + /*modifiedTime*/ + void 0 + ); + const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(hostWithWatch, options); + const state = { + host, + hostWithWatch, + parseConfigFileHost: parseConfigHostFromCompilerHostLike(host), + write: maybeBind(host, host.trace), + // State of solution + options, + baseCompilerOptions, + rootNames, + baseWatchOptions, + resolvedConfigFilePaths: /* @__PURE__ */ new Map(), + configFileCache: /* @__PURE__ */ new Map(), + projectStatus: /* @__PURE__ */ new Map(), + extendedConfigCache: /* @__PURE__ */ new Map(), + buildInfoCache: /* @__PURE__ */ new Map(), + outputTimeStamps: /* @__PURE__ */ new Map(), + builderPrograms: /* @__PURE__ */ new Map(), + diagnostics: /* @__PURE__ */ new Map(), + projectPendingBuild: /* @__PURE__ */ new Map(), + projectErrorsReported: /* @__PURE__ */ new Map(), + compilerHost, + moduleResolutionCache, + typeReferenceDirectiveResolutionCache, + libraryResolutionCache, + // Mutable state + buildOrder: void 0, + readFileWithCache: (f) => host.readFile(f), + projectCompilerOptions: baseCompilerOptions, + cache: void 0, + allProjectBuildPending: true, + needsSummary: true, + watchAllProjectsPending: watch, + // Watch state + watch, + allWatchedWildcardDirectories: /* @__PURE__ */ new Map(), + allWatchedInputFiles: /* @__PURE__ */ new Map(), + allWatchedConfigFiles: /* @__PURE__ */ new Map(), + allWatchedExtendedConfigFiles: /* @__PURE__ */ new Map(), + allWatchedPackageJsonFiles: /* @__PURE__ */ new Map(), + filesWatched: /* @__PURE__ */ new Map(), + lastCachedPackageJsonLookups: /* @__PURE__ */ new Map(), + timerToBuildInvalidatedProject: void 0, + reportFileChangeDetected: false, + watchFile: watchFile2, + watchDirectory, + writeLog + }; + return state; +} +function toPath2(state, fileName) { + return toPath(fileName, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName); +} +function toResolvedConfigFilePath(state, fileName) { + const { resolvedConfigFilePaths } = state; + const path = resolvedConfigFilePaths.get(fileName); + if (path !== void 0) return path; + const resolvedPath = toPath2(state, fileName); + resolvedConfigFilePaths.set(fileName, resolvedPath); + return resolvedPath; +} +function isParsedCommandLine(entry) { + return !!entry.options; +} +function getCachedParsedConfigFile(state, configFilePath) { + const value = state.configFileCache.get(configFilePath); + return value && isParsedCommandLine(value) ? value : void 0; +} +function parseConfigFile(state, configFileName, configFilePath) { + const { configFileCache } = state; + const value = configFileCache.get(configFilePath); + if (value) { + return isParsedCommandLine(value) ? value : void 0; + } + mark("SolutionBuilder::beforeConfigFileParsing"); + let diagnostic; + const { parseConfigFileHost, baseCompilerOptions, baseWatchOptions, extendedConfigCache, host } = state; + let parsed; + if (host.getParsedCommandLine) { + parsed = host.getParsedCommandLine(configFileName); + if (!parsed) diagnostic = createCompilerDiagnostic(Diagnostics.File_0_not_found, configFileName); + } else { + parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = (d) => diagnostic = d; + parsed = getParsedCommandLineOfConfigFile(configFileName, baseCompilerOptions, parseConfigFileHost, extendedConfigCache, baseWatchOptions); + parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop; + } + configFileCache.set(configFilePath, parsed || diagnostic); + mark("SolutionBuilder::afterConfigFileParsing"); + measure("SolutionBuilder::Config file parsing", "SolutionBuilder::beforeConfigFileParsing", "SolutionBuilder::afterConfigFileParsing"); + return parsed; +} +function resolveProjectName(state, name) { + return resolveConfigFileProjectName(resolvePath(state.compilerHost.getCurrentDirectory(), name)); +} +function createBuildOrder(state, roots) { + const temporaryMarks = /* @__PURE__ */ new Map(); + const permanentMarks = /* @__PURE__ */ new Map(); + const circularityReportStack = []; + let buildOrder; + let circularDiagnostics; + for (const root of roots) { + visit(root); + } + return circularDiagnostics ? { buildOrder: buildOrder || emptyArray, circularDiagnostics } : buildOrder || emptyArray; + function visit(configFileName, inCircularContext) { + const projPath = toResolvedConfigFilePath(state, configFileName); + if (permanentMarks.has(projPath)) return; + if (temporaryMarks.has(projPath)) { + if (!inCircularContext) { + (circularDiagnostics || (circularDiagnostics = [])).push( + createCompilerDiagnostic( + Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, + circularityReportStack.join("\r\n") + ) + ); + } + return; + } + temporaryMarks.set(projPath, true); + circularityReportStack.push(configFileName); + const parsed = parseConfigFile(state, configFileName, projPath); + if (parsed && parsed.projectReferences) { + for (const ref of parsed.projectReferences) { + const resolvedRefPath = resolveProjectName(state, ref.path); + visit(resolvedRefPath, inCircularContext || ref.circular); + } + } + circularityReportStack.pop(); + permanentMarks.set(projPath, true); + (buildOrder || (buildOrder = [])).push(configFileName); + } +} +function getBuildOrder(state) { + return state.buildOrder || createStateBuildOrder(state); +} +function createStateBuildOrder(state) { + const buildOrder = createBuildOrder(state, state.rootNames.map((f) => resolveProjectName(state, f))); + state.resolvedConfigFilePaths.clear(); + const currentProjects = new Set( + getBuildOrderFromAnyBuildOrder(buildOrder).map( + (resolved) => toResolvedConfigFilePath(state, resolved) + ) + ); + const noopOnDelete = { onDeleteValue: noop }; + mutateMapSkippingNewValues(state.configFileCache, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.projectStatus, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.builderPrograms, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.diagnostics, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.projectPendingBuild, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.projectErrorsReported, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.buildInfoCache, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.outputTimeStamps, currentProjects, noopOnDelete); + mutateMapSkippingNewValues(state.lastCachedPackageJsonLookups, currentProjects, noopOnDelete); + if (state.watch) { + mutateMapSkippingNewValues( + state.allWatchedConfigFiles, + currentProjects, + { onDeleteValue: closeFileWatcher } + ); + state.allWatchedExtendedConfigFiles.forEach((watcher) => { + watcher.projects.forEach((project) => { + if (!currentProjects.has(project)) { + watcher.projects.delete(project); + } + }); + watcher.close(); + }); + mutateMapSkippingNewValues( + state.allWatchedWildcardDirectories, + currentProjects, + { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcherOf) } + ); + mutateMapSkippingNewValues( + state.allWatchedInputFiles, + currentProjects, + { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) } + ); + mutateMapSkippingNewValues( + state.allWatchedPackageJsonFiles, + currentProjects, + { onDeleteValue: (existingMap) => existingMap.forEach(closeFileWatcher) } + ); + } + return state.buildOrder = buildOrder; +} +function getBuildOrderFor(state, project, onlyReferences) { + const resolvedProject = project && resolveProjectName(state, project); + const buildOrderFromState = getBuildOrder(state); + if (isCircularBuildOrder(buildOrderFromState)) return buildOrderFromState; + if (resolvedProject) { + const projectPath = toResolvedConfigFilePath(state, resolvedProject); + const projectIndex = findIndex( + buildOrderFromState, + (configFileName) => toResolvedConfigFilePath(state, configFileName) === projectPath + ); + if (projectIndex === -1) return void 0; + } + const buildOrder = resolvedProject ? createBuildOrder(state, [resolvedProject]) : buildOrderFromState; + Debug.assert(!isCircularBuildOrder(buildOrder)); + Debug.assert(!onlyReferences || resolvedProject !== void 0); + Debug.assert(!onlyReferences || buildOrder[buildOrder.length - 1] === resolvedProject); + return onlyReferences ? buildOrder.slice(0, buildOrder.length - 1) : buildOrder; +} +function enableCache(state) { + if (state.cache) { + disableCache(state); + } + const { compilerHost, host } = state; + const originalReadFileWithCache = state.readFileWithCache; + const originalGetSourceFile = compilerHost.getSourceFile; + const { + originalReadFile, + originalFileExists, + originalDirectoryExists, + originalCreateDirectory, + originalWriteFile, + getSourceFileWithCache, + readFileWithCache + } = changeCompilerHostLikeToUseCache( + host, + (fileName) => toPath2(state, fileName), + (...args) => originalGetSourceFile.call(compilerHost, ...args) + ); + state.readFileWithCache = readFileWithCache; + compilerHost.getSourceFile = getSourceFileWithCache; + state.cache = { + originalReadFile, + originalFileExists, + originalDirectoryExists, + originalCreateDirectory, + originalWriteFile, + originalReadFileWithCache, + originalGetSourceFile + }; +} +function disableCache(state) { + if (!state.cache) return; + const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache, libraryResolutionCache } = state; + host.readFile = cache.originalReadFile; + host.fileExists = cache.originalFileExists; + host.directoryExists = cache.originalDirectoryExists; + host.createDirectory = cache.originalCreateDirectory; + host.writeFile = cache.originalWriteFile; + compilerHost.getSourceFile = cache.originalGetSourceFile; + state.readFileWithCache = cache.originalReadFileWithCache; + extendedConfigCache.clear(); + moduleResolutionCache == null ? void 0 : moduleResolutionCache.clear(); + typeReferenceDirectiveResolutionCache == null ? void 0 : typeReferenceDirectiveResolutionCache.clear(); + libraryResolutionCache == null ? void 0 : libraryResolutionCache.clear(); + state.cache = void 0; +} +function clearProjectStatus(state, resolved) { + state.projectStatus.delete(resolved); + state.diagnostics.delete(resolved); +} +function addProjToQueue({ projectPendingBuild }, proj, updateLevel) { + const value = projectPendingBuild.get(proj); + if (value === void 0) { + projectPendingBuild.set(proj, updateLevel); + } else if (value < updateLevel) { + projectPendingBuild.set(proj, updateLevel); + } +} +function setupInitialBuild(state, cancellationToken) { + if (!state.allProjectBuildPending) return; + state.allProjectBuildPending = false; + if (state.options.watch) reportWatchStatus(state, Diagnostics.Starting_compilation_in_watch_mode); + enableCache(state); + const buildOrder = getBuildOrderFromAnyBuildOrder(getBuildOrder(state)); + buildOrder.forEach( + (configFileName) => state.projectPendingBuild.set( + toResolvedConfigFilePath(state, configFileName), + 0 /* Update */ + ) + ); + if (cancellationToken) { + cancellationToken.throwIfCancellationRequested(); + } +} +function doneInvalidatedProject(state, projectPath) { + state.projectPendingBuild.delete(projectPath); + return state.diagnostics.has(projectPath) ? 1 /* DiagnosticsPresent_OutputsSkipped */ : 0 /* Success */; +} +function createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder) { + let updateOutputFileStampsPending = true; + return { + kind: 1 /* UpdateOutputFileStamps */, + project, + projectPath, + buildOrder, + getCompilerOptions: () => config.options, + getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), + updateOutputFileStatmps: () => { + updateOutputTimestamps(state, config, projectPath); + updateOutputFileStampsPending = false; + }, + done: () => { + if (updateOutputFileStampsPending) { + updateOutputTimestamps(state, config, projectPath); + } + mark("SolutionBuilder::Timestamps only updates"); + return doneInvalidatedProject(state, projectPath); + } + }; +} +function createBuildOrUpdateInvalidedProject(state, project, projectPath, projectIndex, config, buildOrder) { + let step = 0 /* CreateProgram */; + let program; + let buildResult; + return { + kind: 0 /* Build */, + project, + projectPath, + buildOrder, + getCompilerOptions: () => config.options, + getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), + getBuilderProgram: () => withProgramOrUndefined(identity), + getProgram: () => withProgramOrUndefined( + (program2) => program2.getProgramOrUndefined() + ), + getSourceFile: (fileName) => withProgramOrUndefined( + (program2) => program2.getSourceFile(fileName) + ), + getSourceFiles: () => withProgramOrEmptyArray( + (program2) => program2.getSourceFiles() + ), + getOptionsDiagnostics: (cancellationToken) => withProgramOrEmptyArray( + (program2) => program2.getOptionsDiagnostics(cancellationToken) + ), + getGlobalDiagnostics: (cancellationToken) => withProgramOrEmptyArray( + (program2) => program2.getGlobalDiagnostics(cancellationToken) + ), + getConfigFileParsingDiagnostics: () => withProgramOrEmptyArray( + (program2) => program2.getConfigFileParsingDiagnostics() + ), + getSyntacticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray( + (program2) => program2.getSyntacticDiagnostics(sourceFile, cancellationToken) + ), + getAllDependencies: (sourceFile) => withProgramOrEmptyArray( + (program2) => program2.getAllDependencies(sourceFile) + ), + getSemanticDiagnostics: (sourceFile, cancellationToken) => withProgramOrEmptyArray( + (program2) => program2.getSemanticDiagnostics(sourceFile, cancellationToken) + ), + getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => withProgramOrUndefined( + (program2) => program2.getSemanticDiagnosticsOfNextAffectedFile && program2.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) + ), + emit: (targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) => { + if (targetSourceFile || emitOnlyDtsFiles) { + return withProgramOrUndefined( + (program2) => { + var _a, _b; + return program2.emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a, project))); + } + ); + } + executeSteps(2 /* SemanticDiagnostics */, cancellationToken); + if (step === 4 /* EmitBuildInfo */) { + return emitBuildInfo(writeFile2, cancellationToken); + } + if (step !== 3 /* Emit */) return void 0; + return emit(writeFile2, cancellationToken, customTransformers); + }, + done + }; + function done(cancellationToken, writeFile2, customTransformers) { + executeSteps(6 /* Done */, cancellationToken, writeFile2, customTransformers); + mark("SolutionBuilder::Projects built"); + return doneInvalidatedProject(state, projectPath); + } + function withProgramOrUndefined(action) { + executeSteps(0 /* CreateProgram */); + return program && action(program); + } + function withProgramOrEmptyArray(action) { + return withProgramOrUndefined(action) || emptyArray; + } + function createProgram2() { + var _a, _b, _c; + Debug.assert(program === void 0); + if (state.options.dry) { + reportStatus(state, Diagnostics.A_non_dry_build_would_build_project_0, project); + buildResult = 1 /* Success */; + step = 5 /* QueueReferencingProjects */; + return; + } + if (state.options.verbose) reportStatus(state, Diagnostics.Building_project_0, project); + if (config.fileNames.length === 0) { + reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); + buildResult = 0 /* None */; + step = 5 /* QueueReferencingProjects */; + return; + } + const { host, compilerHost } = state; + state.projectCompilerOptions = config.options; + (_a = state.moduleResolutionCache) == null ? void 0 : _a.update(config.options); + (_b = state.typeReferenceDirectiveResolutionCache) == null ? void 0 : _b.update(config.options); + program = host.createProgram( + config.fileNames, + config.options, + compilerHost, + getOldProgram(state, projectPath, config), + getConfigFileParsingDiagnostics(config), + config.projectReferences + ); + if (state.watch) { + const internalMap = (_c = state.moduleResolutionCache) == null ? void 0 : _c.getPackageJsonInfoCache().getInternalMap(); + state.lastCachedPackageJsonLookups.set( + projectPath, + internalMap && new Set(arrayFrom( + internalMap.values(), + (data) => state.host.realpath && (isPackageJsonInfo(data) || data.directoryExists) ? state.host.realpath(combinePaths(data.packageDirectory, "package.json")) : combinePaths(data.packageDirectory, "package.json") + )) + ); + state.builderPrograms.set(projectPath, program); + } + step++; + } + function handleDiagnostics(diagnostics, errorFlags, errorType) { + if (diagnostics.length) { + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + diagnostics, + errorFlags, + errorType + )); + } else { + step++; + } + } + function getSyntaxDiagnostics(cancellationToken) { + Debug.assertIsDefined(program); + handleDiagnostics( + [ + ...program.getConfigFileParsingDiagnostics(), + ...program.getOptionsDiagnostics(cancellationToken), + ...program.getGlobalDiagnostics(cancellationToken), + ...program.getSyntacticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ) + ], + 8 /* SyntaxErrors */, + "Syntactic" + ); + } + function getSemanticDiagnostics(cancellationToken) { + handleDiagnostics( + Debug.checkDefined(program).getSemanticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ), + 16 /* TypeErrors */, + "Semantic" + ); + } + function emit(writeFileCallback, cancellationToken, customTransformers) { + var _a, _b, _c; + Debug.assertIsDefined(program); + Debug.assert(step === 3 /* Emit */); + const saved = program.saveEmitState(); + let declDiagnostics; + const reportDeclarationDiagnostics = (d) => (declDiagnostics || (declDiagnostics = [])).push(d); + const outputFiles = []; + const { emitResult } = emitFilesAndReportErrors( + program, + reportDeclarationDiagnostics, + /*write*/ + void 0, + /*reportSummary*/ + void 0, + (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }), + cancellationToken, + /*emitOnlyDtsFiles*/ + false, + customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a, project)) + ); + if (declDiagnostics) { + program.restoreEmitState(saved); + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + declDiagnostics, + 32 /* DeclarationEmitErrors */, + "Declaration file" + )); + return { + emitSkipped: true, + diagnostics: emitResult.diagnostics + }; + } + const { host, compilerHost } = state; + const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */; + const emitterDiagnostics = createDiagnosticCollection(); + const emittedOutputs = /* @__PURE__ */ new Map(); + const options = program.getCompilerOptions(); + const isIncremental = isIncrementalCompilation(options); + let outputTimeStampMap; + let now; + outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => { + const path = toPath2(state, name); + emittedOutputs.set(toPath2(state, name), name); + if (data == null ? void 0 : data.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, options, resultFlags); + const modifiedTime = (data == null ? void 0 : data.differsOnlyInMap) ? getModifiedTime(state.host, name) : void 0; + writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); + if (data == null ? void 0 : data.differsOnlyInMap) state.host.setModifiedTime(name, modifiedTime); + else if (!isIncremental && state.watch) { + (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path, now || (now = getCurrentTime(state.host))); + } + }); + finishEmit( + emitterDiagnostics, + emittedOutputs, + outputFiles.length ? outputFiles[0].name : getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()), + resultFlags + ); + return emitResult; + } + function emitBuildInfo(writeFileCallback, cancellationToken) { + Debug.assertIsDefined(program); + Debug.assert(step === 4 /* EmitBuildInfo */); + const emitResult = program.emitBuildInfo((name, text, writeByteOrderMark, onError, sourceFiles, data) => { + if (data == null ? void 0 : data.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, program.getCompilerOptions(), 2 /* DeclarationOutputUnchanged */); + if (writeFileCallback) writeFileCallback(name, text, writeByteOrderMark, onError, sourceFiles, data); + else state.compilerHost.writeFile(name, text, writeByteOrderMark, onError, sourceFiles, data); + }, cancellationToken); + if (emitResult.diagnostics.length) { + reportErrors(state, emitResult.diagnostics); + state.diagnostics.set(projectPath, [...state.diagnostics.get(projectPath), ...emitResult.diagnostics]); + buildResult = 64 /* EmitErrors */ & buildResult; + } + if (emitResult.emittedFiles && state.write) { + emitResult.emittedFiles.forEach((name) => listEmittedFile(state, config, name)); + } + afterProgramDone(state, program); + step = 5 /* QueueReferencingProjects */; + return emitResult; + } + function finishEmit(emitterDiagnostics, emittedOutputs, oldestOutputFileName, resultFlags) { + const emitDiagnostics = emitterDiagnostics.getDiagnostics(); + if (emitDiagnostics.length) { + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + emitDiagnostics, + 64 /* EmitErrors */, + "Emit" + )); + return emitDiagnostics; + } + if (state.write) { + emittedOutputs.forEach((name) => listEmittedFile(state, config, name)); + } + updateOutputTimestampsWorker(state, config, projectPath, Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs); + state.diagnostics.delete(projectPath); + state.projectStatus.set(projectPath, { + type: 1 /* UpToDate */, + oldestOutputFileName + }); + afterProgramDone(state, program); + step = 5 /* QueueReferencingProjects */; + buildResult = resultFlags; + return emitDiagnostics; + } + function executeSteps(till, cancellationToken, writeFile2, customTransformers) { + while (step <= till && step < 6 /* Done */) { + const currentStep = step; + switch (step) { + case 0 /* CreateProgram */: + createProgram2(); + break; + case 1 /* SyntaxDiagnostics */: + getSyntaxDiagnostics(cancellationToken); + break; + case 2 /* SemanticDiagnostics */: + getSemanticDiagnostics(cancellationToken); + break; + case 3 /* Emit */: + emit(writeFile2, cancellationToken, customTransformers); + break; + case 4 /* EmitBuildInfo */: + emitBuildInfo(writeFile2, cancellationToken); + break; + case 5 /* QueueReferencingProjects */: + queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult)); + step++; + break; + case 6 /* Done */: + default: + assertType(step); + } + Debug.assert(step > currentStep); + } + } +} +function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { + if (!state.projectPendingBuild.size) return void 0; + if (isCircularBuildOrder(buildOrder)) return void 0; + const { options, projectPendingBuild } = state; + for (let projectIndex = 0; projectIndex < buildOrder.length; projectIndex++) { + const project = buildOrder[projectIndex]; + const projectPath = toResolvedConfigFilePath(state, project); + const updateLevel = state.projectPendingBuild.get(projectPath); + if (updateLevel === void 0) continue; + if (reportQueue) { + reportQueue = false; + reportBuildQueue(state, buildOrder); + } + const config = parseConfigFile(state, project, projectPath); + if (!config) { + reportParseConfigFileDiagnostic(state, projectPath); + projectPendingBuild.delete(projectPath); + continue; + } + if (updateLevel === 2 /* Full */) { + watchConfigFile(state, project, projectPath, config); + watchExtendedConfigFiles(state, projectPath, config); + watchWildCardDirectories(state, project, projectPath, config); + watchInputFiles(state, project, projectPath, config); + watchPackageJsonFiles(state, project, projectPath, config); + } else if (updateLevel === 1 /* RootNamesAndUpdate */) { + config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile.configFileSpecs, getDirectoryPath(project), config.options, state.parseConfigFileHost); + updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile.configFileSpecs, config.errors, canJsonReportNoInputFiles(config.raw)); + watchInputFiles(state, project, projectPath, config); + watchPackageJsonFiles(state, project, projectPath, config); + } + const status = getUpToDateStatus(state, config, projectPath); + if (!options.force) { + if (status.type === 1 /* UpToDate */) { + verboseReportProjectStatus(state, project, status); + reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); + projectPendingBuild.delete(projectPath); + if (options.dry) { + reportStatus(state, Diagnostics.Project_0_is_up_to_date, project); + } + continue; + } + if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 14 /* UpToDateWithInputFileText */) { + reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); + return { + kind: 1 /* UpdateOutputFileStamps */, + status, + project, + projectPath, + projectIndex, + config + }; + } + } + if (status.type === 11 /* UpstreamBlocked */) { + verboseReportProjectStatus(state, project, status); + reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); + projectPendingBuild.delete(projectPath); + if (options.verbose) { + reportStatus( + state, + status.upstreamProjectBlocked ? Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors, + project, + status.upstreamProjectName + ); + } + continue; + } + if (status.type === 15 /* ContainerOnly */) { + verboseReportProjectStatus(state, project, status); + reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); + projectPendingBuild.delete(projectPath); + continue; + } + return { + kind: 0 /* Build */, + status, + project, + projectPath, + projectIndex, + config + }; + } + return void 0; +} +function createInvalidatedProjectWithInfo(state, info, buildOrder) { + verboseReportProjectStatus(state, info.project, info.status); + return info.kind !== 1 /* UpdateOutputFileStamps */ ? createBuildOrUpdateInvalidedProject( + state, + info.project, + info.projectPath, + info.projectIndex, + info.config, + buildOrder + ) : createUpdateOutputFileStampsProject( + state, + info.project, + info.projectPath, + info.config, + buildOrder + ); +} +function getNextInvalidatedProject(state, buildOrder, reportQueue) { + const info = getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue); + if (!info) return info; + return createInvalidatedProjectWithInfo(state, info, buildOrder); +} +function listEmittedFile({ write }, proj, file) { + if (write && proj.options.listEmittedFiles) { + write(`TSFILE: ${file}`); + } +} +function getOldProgram({ options, builderPrograms, compilerHost }, proj, parsed) { + if (options.force) return void 0; + const value = builderPrograms.get(proj); + if (value) return value; + return readBuilderProgram(parsed.options, compilerHost); +} +function afterProgramDone(state, program) { + if (program) { + if (state.write) listFiles(program, state.write); + if (state.host.afterProgramEmitAndDiagnostics) { + state.host.afterProgramEmitAndDiagnostics(program); + } + program.releaseProgram(); + } + state.projectCompilerOptions = state.baseCompilerOptions; +} +function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) { + const canEmitBuildInfo = program && !program.getCompilerOptions().outFile; + reportAndStoreErrors(state, resolvedPath, diagnostics); + state.projectStatus.set(resolvedPath, { type: 0 /* Unbuildable */, reason: `${errorType} errors` }); + if (canEmitBuildInfo) return { buildResult, step: 4 /* EmitBuildInfo */ }; + afterProgramDone(state, program); + return { buildResult, step: 5 /* QueueReferencingProjects */ }; +} +function isFileWatcherWithModifiedTime(value) { + return !!value.watcher; +} +function getModifiedTime2(state, fileName) { + const path = toPath2(state, fileName); + const existing = state.filesWatched.get(path); + if (state.watch && !!existing) { + if (!isFileWatcherWithModifiedTime(existing)) return existing; + if (existing.modifiedTime) return existing.modifiedTime; + } + const result = getModifiedTime(state.host, fileName); + if (state.watch) { + if (existing) existing.modifiedTime = result; + else state.filesWatched.set(path, result); + } + return result; +} +function watchFile(state, file, callback, pollingInterval, options, watchType, project) { + const path = toPath2(state, file); + const existing = state.filesWatched.get(path); + if (existing && isFileWatcherWithModifiedTime(existing)) { + existing.callbacks.push(callback); + } else { + const watcher = state.watchFile( + file, + (fileName, eventKind, modifiedTime) => { + const existing2 = Debug.checkDefined(state.filesWatched.get(path)); + Debug.assert(isFileWatcherWithModifiedTime(existing2)); + existing2.modifiedTime = modifiedTime; + existing2.callbacks.forEach((cb) => cb(fileName, eventKind, modifiedTime)); + }, + pollingInterval, + options, + watchType, + project + ); + state.filesWatched.set(path, { callbacks: [callback], watcher, modifiedTime: existing }); + } + return { + close: () => { + const existing2 = Debug.checkDefined(state.filesWatched.get(path)); + Debug.assert(isFileWatcherWithModifiedTime(existing2)); + if (existing2.callbacks.length === 1) { + state.filesWatched.delete(path); + closeFileWatcherOf(existing2); + } else { + unorderedRemoveItem(existing2.callbacks, callback); + } + } + }; +} +function getOutputTimeStampMap(state, resolvedConfigFilePath) { + if (!state.watch) return void 0; + let result = state.outputTimeStamps.get(resolvedConfigFilePath); + if (!result) state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map()); + return result; +} +function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) { + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + const existing = getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath); + const modifiedTime = getCurrentTime(state.host); + if (existing) { + existing.buildInfo = buildInfo; + existing.modifiedTime = modifiedTime; + if (!(resultFlags & 2 /* DeclarationOutputUnchanged */)) existing.latestChangedDtsTime = modifiedTime; + } else { + state.buildInfoCache.set(resolvedConfigPath, { + path: toPath2(state, buildInfoPath), + buildInfo, + modifiedTime, + latestChangedDtsTime: resultFlags & 2 /* DeclarationOutputUnchanged */ ? void 0 : modifiedTime + }); + } +} +function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) { + const path = toPath2(state, buildInfoPath); + const existing = state.buildInfoCache.get(resolvedConfigPath); + return (existing == null ? void 0 : existing.path) === path ? existing : void 0; +} +function getBuildInfo3(state, buildInfoPath, resolvedConfigPath, modifiedTime) { + const path = toPath2(state, buildInfoPath); + const existing = state.buildInfoCache.get(resolvedConfigPath); + if (existing !== void 0 && existing.path === path) { + return existing.buildInfo || void 0; + } + const value = state.readFileWithCache(buildInfoPath); + const buildInfo = value ? getBuildInfo(buildInfoPath, value) : void 0; + state.buildInfoCache.set(resolvedConfigPath, { path, buildInfo: buildInfo || false, modifiedTime: modifiedTime || missingFileModifiedTime }); + return buildInfo; +} +function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) { + const tsconfigTime = getModifiedTime2(state, configFile); + if (oldestOutputFileTime < tsconfigTime) { + return { + type: 5 /* OutOfDateWithSelf */, + outOfDateOutputFileName: oldestOutputFileName, + newerInputFileName: configFile + }; + } +} +function getUpToDateStatusWorker(state, project, resolvedPath) { + var _a, _b, _c, _d; + if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) { + return { + type: 15 /* ContainerOnly */ + }; + } + let referenceStatuses; + const force = !!state.options.force; + if (project.projectReferences) { + state.projectStatus.set(resolvedPath, { type: 12 /* ComputingUpstream */ }); + for (const ref of project.projectReferences) { + const resolvedRef = resolveProjectReferencePath(ref); + const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef); + const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath); + const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath); + if (refStatus.type === 12 /* ComputingUpstream */ || refStatus.type === 15 /* ContainerOnly */) { + continue; + } + if (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 11 /* UpstreamBlocked */) { + return { + type: 11 /* UpstreamBlocked */, + upstreamProjectName: ref.path, + upstreamProjectBlocked: refStatus.type === 11 /* UpstreamBlocked */ + }; + } + if (refStatus.type !== 1 /* UpToDate */) { + return { + type: 10 /* UpstreamOutOfDate */, + upstreamProjectName: ref.path + }; + } + if (!force) (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig }); + } + } + if (force) return { type: 16 /* ForceBuild */ }; + const { host } = state; + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options); + let oldestOutputFileName; + let oldestOutputFileTime = maximumDate; + let buildInfoTime; + let buildInfoProgram; + let buildInfoVersionMap; + if (buildInfoPath) { + const buildInfoCacheEntry2 = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath); + buildInfoTime = (buildInfoCacheEntry2 == null ? void 0 : buildInfoCacheEntry2.modifiedTime) || getModifiedTime(host, buildInfoPath); + if (buildInfoTime === missingFileModifiedTime) { + if (!buildInfoCacheEntry2) { + state.buildInfoCache.set(resolvedPath, { + path: toPath2(state, buildInfoPath), + buildInfo: false, + modifiedTime: buildInfoTime + }); + } + return { + type: 3 /* OutputMissing */, + missingOutputFileName: buildInfoPath + }; + } + const buildInfo = getBuildInfo3(state, buildInfoPath, resolvedPath, buildInfoTime); + if (!buildInfo) { + return { + type: 4 /* ErrorReadingFile */, + fileName: buildInfoPath + }; + } + if (buildInfo.program && buildInfo.version !== version) { + return { + type: 13 /* TsVersionOutputOfDate */, + version: buildInfo.version + }; + } + if (buildInfo.program) { + if (((_a = buildInfo.program.changeFileSet) == null ? void 0 : _a.length) || (!project.options.noEmit ? ((_b = buildInfo.program.affectedFilesPendingEmit) == null ? void 0 : _b.length) || ((_c = buildInfo.program.emitDiagnosticsPerFile) == null ? void 0 : _c.length) : (_d = buildInfo.program.semanticDiagnosticsPerFile) == null ? void 0 : _d.length)) { + return { + type: 7 /* OutOfDateBuildInfo */, + buildInfoFile: buildInfoPath + }; + } + if (!project.options.noEmit && getPendingEmitKind(project.options, buildInfo.program.options || {})) { + return { + type: 8 /* OutOfDateOptions */, + buildInfoFile: buildInfoPath + }; + } + buildInfoProgram = buildInfo.program; + } + oldestOutputFileTime = buildInfoTime; + oldestOutputFileName = buildInfoPath; + } + let newestInputFileName = void 0; + let newestInputFileTime = minimumDate; + let pseudoInputUpToDate = false; + const seenRoots = /* @__PURE__ */ new Set(); + for (const inputFile of project.fileNames) { + const inputTime = getModifiedTime2(state, inputFile); + if (inputTime === missingFileModifiedTime) { + return { + type: 0 /* Unbuildable */, + reason: `${inputFile} does not exist` + }; + } + const inputPath = buildInfoProgram ? toPath2(state, inputFile) : void 0; + if (buildInfoTime && buildInfoTime < inputTime) { + let version2; + let currentVersion; + if (buildInfoProgram) { + if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host); + const resolvedInputPath = buildInfoVersionMap.roots.get(inputPath); + version2 = buildInfoVersionMap.fileInfos.get(resolvedInputPath ?? inputPath); + const text = version2 ? state.readFileWithCache(resolvedInputPath ?? inputFile) : void 0; + currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0; + if (version2 && version2 === currentVersion) pseudoInputUpToDate = true; + } + if (!version2 || version2 !== currentVersion) { + return { + type: 5 /* OutOfDateWithSelf */, + outOfDateOutputFileName: buildInfoPath, + newerInputFileName: inputFile + }; + } + } + if (inputTime > newestInputFileTime) { + newestInputFileName = inputFile; + newestInputFileTime = inputTime; + } + if (buildInfoProgram) seenRoots.add(inputPath); + } + if (buildInfoProgram) { + if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host); + const existingRoot = forEachEntry( + buildInfoVersionMap.roots, + // File was root file when project was built but its not any more + (_resolved, existingRoot2) => !seenRoots.has(existingRoot2) ? existingRoot2 : void 0 + ); + if (existingRoot) { + return { + type: 9 /* OutOfDateRoots */, + buildInfoFile: buildInfoPath, + inputFile: existingRoot + }; + } + } + if (!buildInfoPath) { + const outputs = getAllProjectOutputs(project, !host.useCaseSensitiveFileNames()); + const outputTimeStampMap = getOutputTimeStampMap(state, resolvedPath); + for (const output of outputs) { + const path = toPath2(state, output); + let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path); + if (!outputTime) { + outputTime = getModifiedTime(state.host, output); + outputTimeStampMap == null ? void 0 : outputTimeStampMap.set(path, outputTime); + } + if (outputTime === missingFileModifiedTime) { + return { + type: 3 /* OutputMissing */, + missingOutputFileName: output + }; + } + if (outputTime < newestInputFileTime) { + return { + type: 5 /* OutOfDateWithSelf */, + outOfDateOutputFileName: output, + newerInputFileName: newestInputFileName + }; + } + if (outputTime < oldestOutputFileTime) { + oldestOutputFileTime = outputTime; + oldestOutputFileName = output; + } + } + } + const buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath); + let pseudoUpToDate = false; + if (referenceStatuses) { + for (const { ref, refStatus, resolvedConfig, resolvedRefPath } of referenceStatuses) { + if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) { + continue; + } + if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath)) { + return { + type: 6 /* OutOfDateWithUpstream */, + outOfDateOutputFileName: buildInfoPath, + newerProjectName: ref.path + }; + } + const newestDeclarationFileContentChangedTime = getLatestChangedDtsTime(state, resolvedConfig.options, resolvedRefPath); + if (newestDeclarationFileContentChangedTime && newestDeclarationFileContentChangedTime <= oldestOutputFileTime) { + pseudoUpToDate = true; + continue; + } + Debug.assert(oldestOutputFileName !== void 0, "Should have an oldest output filename here"); + return { + type: 6 /* OutOfDateWithUpstream */, + outOfDateOutputFileName: oldestOutputFileName, + newerProjectName: ref.path + }; + } + } + const configStatus = checkConfigFileUpToDateStatus(state, project.options.configFilePath, oldestOutputFileTime, oldestOutputFileName); + if (configStatus) return configStatus; + const extendedConfigStatus = forEach(project.options.configFile.extendedSourceFiles || emptyArray, (configFile) => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName)); + if (extendedConfigStatus) return extendedConfigStatus; + const packageJsonLookups = state.lastCachedPackageJsonLookups.get(resolvedPath); + const dependentPackageFileStatus = packageJsonLookups && forEachKey( + packageJsonLookups, + (path) => checkConfigFileUpToDateStatus(state, path, oldestOutputFileTime, oldestOutputFileName) + ); + if (dependentPackageFileStatus) return dependentPackageFileStatus; + return { + type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 14 /* UpToDateWithInputFileText */ : 1 /* UpToDate */, + newestInputFileTime, + newestInputFileName, + oldestOutputFileName + }; +} +function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) { + const refBuildInfo = state.buildInfoCache.get(resolvedRefPath); + return refBuildInfo.path === buildInfoCacheEntry.path; +} +function getUpToDateStatus(state, project, resolvedPath) { + if (project === void 0) { + return { type: 0 /* Unbuildable */, reason: "File deleted mid-build" }; + } + const prior = state.projectStatus.get(resolvedPath); + if (prior !== void 0) { + return prior; + } + mark("SolutionBuilder::beforeUpToDateCheck"); + const actual = getUpToDateStatusWorker(state, project, resolvedPath); + mark("SolutionBuilder::afterUpToDateCheck"); + measure("SolutionBuilder::Up-to-date check", "SolutionBuilder::beforeUpToDateCheck", "SolutionBuilder::afterUpToDateCheck"); + state.projectStatus.set(resolvedPath, actual); + return actual; +} +function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage, skipOutputs) { + if (proj.options.noEmit) return; + let now; + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(proj.options); + if (buildInfoPath) { + if (!(skipOutputs == null ? void 0 : skipOutputs.has(toPath2(state, buildInfoPath)))) { + if (!!state.options.verbose) reportStatus(state, verboseMessage, proj.options.configFilePath); + state.host.setModifiedTime(buildInfoPath, now = getCurrentTime(state.host)); + getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now; + } + state.outputTimeStamps.delete(projectPath); + return; + } + const { host } = state; + const outputs = getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames()); + const outputTimeStampMap = getOutputTimeStampMap(state, projectPath); + const modifiedOutputs = outputTimeStampMap ? /* @__PURE__ */ new Set() : void 0; + if (!skipOutputs || outputs.length !== skipOutputs.size) { + let reportVerbose = !!state.options.verbose; + for (const file of outputs) { + const path = toPath2(state, file); + if (skipOutputs == null ? void 0 : skipOutputs.has(path)) continue; + if (reportVerbose) { + reportVerbose = false; + reportStatus(state, verboseMessage, proj.options.configFilePath); + } + host.setModifiedTime(file, now || (now = getCurrentTime(state.host))); + if (outputTimeStampMap) { + outputTimeStampMap.set(path, now); + modifiedOutputs.add(path); + } + } + } + outputTimeStampMap == null ? void 0 : outputTimeStampMap.forEach((_value, key) => { + if (!(skipOutputs == null ? void 0 : skipOutputs.has(key)) && !modifiedOutputs.has(key)) outputTimeStampMap.delete(key); + }); +} +function getLatestChangedDtsTime(state, options, resolvedConfigPath) { + if (!options.composite) return void 0; + const entry = Debug.checkDefined(state.buildInfoCache.get(resolvedConfigPath)); + if (entry.latestChangedDtsTime !== void 0) return entry.latestChangedDtsTime || void 0; + const latestChangedDtsTime = entry.buildInfo && entry.buildInfo.program && entry.buildInfo.program.latestChangedDtsFile ? state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.program.latestChangedDtsFile, getDirectoryPath(entry.path))) : void 0; + entry.latestChangedDtsTime = latestChangedDtsTime || false; + return latestChangedDtsTime; +} +function updateOutputTimestamps(state, proj, resolvedPath) { + if (state.options.dry) { + return reportStatus(state, Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, proj.options.configFilePath); + } + updateOutputTimestampsWorker(state, proj, resolvedPath, Diagnostics.Updating_output_timestamps_of_project_0); + state.projectStatus.set(resolvedPath, { + type: 1 /* UpToDate */, + oldestOutputFileName: getFirstProjectOutput(proj, !state.host.useCaseSensitiveFileNames()) + }); +} +function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) { + if (buildResult & 124 /* AnyErrors */) return; + if (!config.options.composite) return; + for (let index = projectIndex + 1; index < buildOrder.length; index++) { + const nextProject = buildOrder[index]; + const nextProjectPath = toResolvedConfigFilePath(state, nextProject); + if (state.projectPendingBuild.has(nextProjectPath)) continue; + const nextProjectConfig = parseConfigFile(state, nextProject, nextProjectPath); + if (!nextProjectConfig || !nextProjectConfig.projectReferences) continue; + for (const ref of nextProjectConfig.projectReferences) { + const resolvedRefPath = resolveProjectName(state, ref.path); + if (toResolvedConfigFilePath(state, resolvedRefPath) !== projectPath) continue; + const status = state.projectStatus.get(nextProjectPath); + if (status) { + switch (status.type) { + case 1 /* UpToDate */: + if (buildResult & 2 /* DeclarationOutputUnchanged */) { + status.type = 2 /* UpToDateWithUpstreamTypes */; + break; + } + case 14 /* UpToDateWithInputFileText */: + case 2 /* UpToDateWithUpstreamTypes */: + if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) { + state.projectStatus.set(nextProjectPath, { + type: 6 /* OutOfDateWithUpstream */, + outOfDateOutputFileName: status.oldestOutputFileName, + newerProjectName: project + }); + } + break; + case 11 /* UpstreamBlocked */: + if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) { + clearProjectStatus(state, nextProjectPath); + } + break; + } + } + addProjToQueue(state, nextProjectPath, 0 /* Update */); + break; + } + } +} +function build(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) { + mark("SolutionBuilder::beforeBuild"); + const result = buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences); + mark("SolutionBuilder::afterBuild"); + measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); + return result; +} +function buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) { + const buildOrder = getBuildOrderFor(state, project, onlyReferences); + if (!buildOrder) return 3 /* InvalidProject_OutputsSkipped */; + setupInitialBuild(state, cancellationToken); + let reportQueue = true; + let successfulProjects = 0; + while (true) { + const invalidatedProject = getNextInvalidatedProject(state, buildOrder, reportQueue); + if (!invalidatedProject) break; + reportQueue = false; + invalidatedProject.done(cancellationToken, writeFile2, getCustomTransformers == null ? void 0 : getCustomTransformers(invalidatedProject.project)); + if (!state.diagnostics.has(invalidatedProject.projectPath)) successfulProjects++; + } + disableCache(state); + reportErrorSummary(state, buildOrder); + startWatching(state, buildOrder); + return isCircularBuildOrder(buildOrder) ? 4 /* ProjectReferenceCycle_OutputsSkipped */ : !buildOrder.some((p) => state.diagnostics.has(toResolvedConfigFilePath(state, p))) ? 0 /* Success */ : successfulProjects ? 2 /* DiagnosticsPresent_OutputsGenerated */ : 1 /* DiagnosticsPresent_OutputsSkipped */; +} +function clean(state, project, onlyReferences) { + mark("SolutionBuilder::beforeClean"); + const result = cleanWorker(state, project, onlyReferences); + mark("SolutionBuilder::afterClean"); + measure("SolutionBuilder::Clean", "SolutionBuilder::beforeClean", "SolutionBuilder::afterClean"); + return result; +} +function cleanWorker(state, project, onlyReferences) { + const buildOrder = getBuildOrderFor(state, project, onlyReferences); + if (!buildOrder) return 3 /* InvalidProject_OutputsSkipped */; + if (isCircularBuildOrder(buildOrder)) { + reportErrors(state, buildOrder.circularDiagnostics); + return 4 /* ProjectReferenceCycle_OutputsSkipped */; + } + const { options, host } = state; + const filesToDelete = options.dry ? [] : void 0; + for (const proj of buildOrder) { + const resolvedPath = toResolvedConfigFilePath(state, proj); + const parsed = parseConfigFile(state, proj, resolvedPath); + if (parsed === void 0) { + reportParseConfigFileDiagnostic(state, resolvedPath); + continue; + } + const outputs = getAllProjectOutputs(parsed, !host.useCaseSensitiveFileNames()); + if (!outputs.length) continue; + const inputFileNames = new Set(parsed.fileNames.map((f) => toPath2(state, f))); + for (const output of outputs) { + if (inputFileNames.has(toPath2(state, output))) continue; + if (host.fileExists(output)) { + if (filesToDelete) { + filesToDelete.push(output); + } else { + host.deleteFile(output); + invalidateProject(state, resolvedPath, 0 /* Update */); + } + } + } + } + if (filesToDelete) { + reportStatus(state, Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map((f) => `\r + * ${f}`).join("")); + } + return 0 /* Success */; +} +function invalidateProject(state, resolved, updateLevel) { + if (state.host.getParsedCommandLine && updateLevel === 1 /* RootNamesAndUpdate */) { + updateLevel = 2 /* Full */; + } + if (updateLevel === 2 /* Full */) { + state.configFileCache.delete(resolved); + state.buildOrder = void 0; + } + state.needsSummary = true; + clearProjectStatus(state, resolved); + addProjToQueue(state, resolved, updateLevel); + enableCache(state); +} +function invalidateProjectAndScheduleBuilds(state, resolvedPath, updateLevel) { + state.reportFileChangeDetected = true; + invalidateProject(state, resolvedPath, updateLevel); + scheduleBuildInvalidatedProject( + state, + 250, + /*changeDetected*/ + true + ); +} +function scheduleBuildInvalidatedProject(state, time, changeDetected) { + const { hostWithWatch } = state; + if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) { + return; + } + if (state.timerToBuildInvalidatedProject) { + hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject); + } + state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, time, "timerToBuildInvalidatedProject", state, changeDetected); +} +function buildNextInvalidatedProject(_timeoutType, state, changeDetected) { + mark("SolutionBuilder::beforeBuild"); + const buildOrder = buildNextInvalidatedProjectWorker(state, changeDetected); + mark("SolutionBuilder::afterBuild"); + measure("SolutionBuilder::Build", "SolutionBuilder::beforeBuild", "SolutionBuilder::afterBuild"); + if (buildOrder) reportErrorSummary(state, buildOrder); +} +function buildNextInvalidatedProjectWorker(state, changeDetected) { + state.timerToBuildInvalidatedProject = void 0; + if (state.reportFileChangeDetected) { + state.reportFileChangeDetected = false; + state.projectErrorsReported.clear(); + reportWatchStatus(state, Diagnostics.File_change_detected_Starting_incremental_compilation); + } + let projectsBuilt = 0; + const buildOrder = getBuildOrder(state); + const invalidatedProject = getNextInvalidatedProject( + state, + buildOrder, + /*reportQueue*/ + false + ); + if (invalidatedProject) { + invalidatedProject.done(); + projectsBuilt++; + while (state.projectPendingBuild.size) { + if (state.timerToBuildInvalidatedProject) return; + const info = getNextInvalidatedProjectCreateInfo( + state, + buildOrder, + /*reportQueue*/ + false + ); + if (!info) break; + if (info.kind !== 1 /* UpdateOutputFileStamps */ && (changeDetected || projectsBuilt === 5)) { + scheduleBuildInvalidatedProject( + state, + 100, + /*changeDetected*/ + false + ); + return; + } + const project = createInvalidatedProjectWithInfo(state, info, buildOrder); + project.done(); + if (info.kind !== 1 /* UpdateOutputFileStamps */) projectsBuilt++; + } + } + disableCache(state); + return buildOrder; +} +function watchConfigFile(state, resolved, resolvedPath, parsed) { + if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath)) return; + state.allWatchedConfigFiles.set( + resolvedPath, + watchFile( + state, + resolved, + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 2 /* Full */), + 2e3 /* High */, + parsed == null ? void 0 : parsed.watchOptions, + WatchType.ConfigFile, + resolved + ) + ); +} +function watchExtendedConfigFiles(state, resolvedPath, parsed) { + updateSharedExtendedConfigFileWatcher( + resolvedPath, + parsed == null ? void 0 : parsed.options, + state.allWatchedExtendedConfigFiles, + (extendedConfigFileName, extendedConfigFilePath) => watchFile( + state, + extendedConfigFileName, + () => { + var _a; + return (_a = state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)) == null ? void 0 : _a.projects.forEach((projectConfigFilePath) => invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, 2 /* Full */)); + }, + 2e3 /* High */, + parsed == null ? void 0 : parsed.watchOptions, + WatchType.ExtendedConfigFile + ), + (fileName) => toPath2(state, fileName) + ); +} +function watchWildCardDirectories(state, resolved, resolvedPath, parsed) { + if (!state.watch) return; + updateWatchingWildcardDirectories( + getOrCreateValueMapFromConfigFileMap(state.allWatchedWildcardDirectories, resolvedPath), + parsed.wildcardDirectories, + (dir, flags) => state.watchDirectory( + dir, + (fileOrDirectory) => { + var _a; + if (isIgnoredFileFromWildCardWatching({ + watchedDirPath: toPath2(state, dir), + fileOrDirectory, + fileOrDirectoryPath: toPath2(state, fileOrDirectory), + configFileName: resolved, + currentDirectory: state.compilerHost.getCurrentDirectory(), + options: parsed.options, + program: state.builderPrograms.get(resolvedPath) || ((_a = getCachedParsedConfigFile(state, resolvedPath)) == null ? void 0 : _a.fileNames), + useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames, + writeLog: (s) => state.writeLog(s), + toPath: (fileName) => toPath2(state, fileName) + })) return; + invalidateProjectAndScheduleBuilds(state, resolvedPath, 1 /* RootNamesAndUpdate */); + }, + flags, + parsed == null ? void 0 : parsed.watchOptions, + WatchType.WildcardDirectory, + resolved + ) + ); +} +function watchInputFiles(state, resolved, resolvedPath, parsed) { + if (!state.watch) return; + mutateMap( + getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), + new Set(parsed.fileNames), + { + createNewValue: (input) => watchFile( + state, + input, + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0 /* Update */), + 250 /* Low */, + parsed == null ? void 0 : parsed.watchOptions, + WatchType.SourceFile, + resolved + ), + onDeleteValue: closeFileWatcher + } + ); +} +function watchPackageJsonFiles(state, resolved, resolvedPath, parsed) { + if (!state.watch || !state.lastCachedPackageJsonLookups) return; + mutateMap( + getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), + state.lastCachedPackageJsonLookups.get(resolvedPath), + { + createNewValue: (input) => watchFile( + state, + input, + () => invalidateProjectAndScheduleBuilds(state, resolvedPath, 0 /* Update */), + 2e3 /* High */, + parsed == null ? void 0 : parsed.watchOptions, + WatchType.PackageJson, + resolved + ), + onDeleteValue: closeFileWatcher + } + ); +} +function startWatching(state, buildOrder) { + if (!state.watchAllProjectsPending) return; + mark("SolutionBuilder::beforeWatcherCreation"); + state.watchAllProjectsPending = false; + for (const resolved of getBuildOrderFromAnyBuildOrder(buildOrder)) { + const resolvedPath = toResolvedConfigFilePath(state, resolved); + const cfg = parseConfigFile(state, resolved, resolvedPath); + watchConfigFile(state, resolved, resolvedPath, cfg); + watchExtendedConfigFiles(state, resolvedPath, cfg); + if (cfg) { + watchWildCardDirectories(state, resolved, resolvedPath, cfg); + watchInputFiles(state, resolved, resolvedPath, cfg); + watchPackageJsonFiles(state, resolved, resolvedPath, cfg); + } + } + mark("SolutionBuilder::afterWatcherCreation"); + measure("SolutionBuilder::Watcher creation", "SolutionBuilder::beforeWatcherCreation", "SolutionBuilder::afterWatcherCreation"); +} +function stopWatching(state) { + clearMap(state.allWatchedConfigFiles, closeFileWatcher); + clearMap(state.allWatchedExtendedConfigFiles, closeFileWatcherOf); + clearMap(state.allWatchedWildcardDirectories, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcherOf)); + clearMap(state.allWatchedInputFiles, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcher)); + clearMap(state.allWatchedPackageJsonFiles, (watchedPacageJsonFiles) => clearMap(watchedPacageJsonFiles, closeFileWatcher)); +} +function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) { + const state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions); + return { + build: (project, cancellationToken, writeFile2, getCustomTransformers) => build(state, project, cancellationToken, writeFile2, getCustomTransformers), + clean: (project) => clean(state, project), + buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) => build( + state, + project, + cancellationToken, + writeFile2, + getCustomTransformers, + /*onlyReferences*/ + true + ), + cleanReferences: (project) => clean( + state, + project, + /*onlyReferences*/ + true + ), + getNextInvalidatedProject: (cancellationToken) => { + setupInitialBuild(state, cancellationToken); + return getNextInvalidatedProject( + state, + getBuildOrder(state), + /*reportQueue*/ + false + ); + }, + getBuildOrder: () => getBuildOrder(state), + getUpToDateStatusOfProject: (project) => { + const configFileName = resolveProjectName(state, project); + const configFilePath = toResolvedConfigFilePath(state, configFileName); + return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath); + }, + invalidateProject: (configFilePath, updateLevel) => invalidateProject(state, configFilePath, updateLevel || 0 /* Update */), + close: () => stopWatching(state) + }; +} +function relName(state, path) { + return convertToRelativePath(path, state.compilerHost.getCurrentDirectory(), state.compilerHost.getCanonicalFileName); +} +function reportStatus(state, message, ...args) { + state.host.reportSolutionBuilderStatus(createCompilerDiagnostic(message, ...args)); +} +function reportWatchStatus(state, message, ...args) { + var _a, _b; + (_b = (_a = state.hostWithWatch).onWatchStatusChange) == null ? void 0 : _b.call(_a, createCompilerDiagnostic(message, ...args), state.host.getNewLine(), state.baseCompilerOptions); +} +function reportErrors({ host }, errors) { + errors.forEach((err) => host.reportDiagnostic(err)); +} +function reportAndStoreErrors(state, proj, errors) { + reportErrors(state, errors); + state.projectErrorsReported.set(proj, true); + if (errors.length) { + state.diagnostics.set(proj, errors); + } +} +function reportParseConfigFileDiagnostic(state, proj) { + reportAndStoreErrors(state, proj, [state.configFileCache.get(proj)]); +} +function reportErrorSummary(state, buildOrder) { + if (!state.needsSummary) return; + state.needsSummary = false; + const canReportSummary = state.watch || !!state.host.reportErrorSummary; + const { diagnostics } = state; + let totalErrors = 0; + let filesInError = []; + if (isCircularBuildOrder(buildOrder)) { + reportBuildQueue(state, buildOrder.buildOrder); + reportErrors(state, buildOrder.circularDiagnostics); + if (canReportSummary) totalErrors += getErrorCountForSummary(buildOrder.circularDiagnostics); + if (canReportSummary) filesInError = [...filesInError, ...getFilesInErrorForSummary(buildOrder.circularDiagnostics)]; + } else { + buildOrder.forEach((project) => { + const projectPath = toResolvedConfigFilePath(state, project); + if (!state.projectErrorsReported.has(projectPath)) { + reportErrors(state, diagnostics.get(projectPath) || emptyArray); + } + }); + if (canReportSummary) diagnostics.forEach((singleProjectErrors) => totalErrors += getErrorCountForSummary(singleProjectErrors)); + if (canReportSummary) diagnostics.forEach((singleProjectErrors) => [...filesInError, ...getFilesInErrorForSummary(singleProjectErrors)]); + } + if (state.watch) { + reportWatchStatus(state, getWatchErrorSummaryDiagnosticMessage(totalErrors), totalErrors); + } else if (state.host.reportErrorSummary) { + state.host.reportErrorSummary(totalErrors, filesInError); + } +} +function reportBuildQueue(state, buildQueue) { + if (state.options.verbose) { + reportStatus(state, Diagnostics.Projects_in_this_build_Colon_0, buildQueue.map((s) => "\r\n * " + relName(state, s)).join("")); + } +} +function reportUpToDateStatus(state, configFileName, status) { + switch (status.type) { + case 5 /* OutOfDateWithSelf */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, + relName(state, configFileName), + relName(state, status.outOfDateOutputFileName), + relName(state, status.newerInputFileName) + ); + case 6 /* OutOfDateWithUpstream */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_output_1_is_older_than_input_2, + relName(state, configFileName), + relName(state, status.outOfDateOutputFileName), + relName(state, status.newerProjectName) + ); + case 3 /* OutputMissing */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, + relName(state, configFileName), + relName(state, status.missingOutputFileName) + ); + case 4 /* ErrorReadingFile */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_there_was_error_reading_file_1, + relName(state, configFileName), + relName(state, status.fileName) + ); + case 7 /* OutOfDateBuildInfo */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, + relName(state, configFileName), + relName(state, status.buildInfoFile) + ); + case 8 /* OutOfDateOptions */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions, + relName(state, configFileName), + relName(state, status.buildInfoFile) + ); + case 9 /* OutOfDateRoots */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more, + relName(state, configFileName), + relName(state, status.buildInfoFile), + relName(state, status.inputFile) + ); + case 1 /* UpToDate */: + if (status.newestInputFileTime !== void 0) { + return reportStatus( + state, + Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2, + relName(state, configFileName), + relName(state, status.newestInputFileName || ""), + relName(state, status.oldestOutputFileName || "") + ); + } + break; + case 2 /* UpToDateWithUpstreamTypes */: + return reportStatus( + state, + Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, + relName(state, configFileName) + ); + case 14 /* UpToDateWithInputFileText */: + return reportStatus( + state, + Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, + relName(state, configFileName) + ); + case 10 /* UpstreamOutOfDate */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, + relName(state, configFileName), + relName(state, status.upstreamProjectName) + ); + case 11 /* UpstreamBlocked */: + return reportStatus( + state, + status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, + relName(state, configFileName), + relName(state, status.upstreamProjectName) + ); + case 0 /* Unbuildable */: + return reportStatus( + state, + Diagnostics.Failed_to_parse_file_0_Colon_1, + relName(state, configFileName), + status.reason + ); + case 13 /* TsVersionOutputOfDate */: + return reportStatus( + state, + Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, + relName(state, configFileName), + status.version, + version + ); + case 16 /* ForceBuild */: + return reportStatus( + state, + Diagnostics.Project_0_is_being_forcibly_rebuilt, + relName(state, configFileName) + ); + case 15 /* ContainerOnly */: + case 12 /* ComputingUpstream */: + break; + default: + assertType(status); + } +} +function verboseReportProjectStatus(state, configFileName, status) { + if (state.options.verbose) { + reportUpToDateStatus(state, configFileName, status); + } +} + +// src/compiler/executeCommandLine.ts +function countLines(program) { + const counts2 = getCountsMap(); + forEach(program.getSourceFiles(), (file) => { + const key = getCountKey(program, file); + const lineCount = getLineStarts(file).length; + counts2.set(key, counts2.get(key) + lineCount); + }); + return counts2; +} +function getCountsMap() { + const counts2 = /* @__PURE__ */ new Map(); + counts2.set("Library", 0); + counts2.set("Definitions", 0); + counts2.set("TypeScript", 0); + counts2.set("JavaScript", 0); + counts2.set("JSON", 0); + counts2.set("Other", 0); + return counts2; +} +function getCountKey(program, file) { + if (program.isSourceFileDefaultLibrary(file)) { + return "Library"; + } else if (file.isDeclarationFile) { + return "Definitions"; + } + const path = file.path; + if (fileExtensionIsOneOf(path, supportedTSExtensionsFlat)) { + return "TypeScript"; + } else if (fileExtensionIsOneOf(path, supportedJSExtensionsFlat)) { + return "JavaScript"; + } else if (fileExtensionIs(path, ".json" /* Json */)) { + return "JSON"; + } else { + return "Other"; + } +} +function updateReportDiagnostic(sys2, existing, options) { + return shouldBePretty(sys2, options) ? createDiagnosticReporter( + sys2, + /*pretty*/ + true + ) : existing; +} +function defaultIsPretty(sys2) { + return !!sys2.writeOutputIsTTY && sys2.writeOutputIsTTY() && !sys2.getEnvironmentVariable("NO_COLOR"); +} +function shouldBePretty(sys2, options) { + if (!options || typeof options.pretty === "undefined") { + return defaultIsPretty(sys2); + } + return options.pretty; +} +function getOptionsForHelp(commandLine) { + return !!commandLine.options.all ? sort(optionDeclarations, (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter(optionDeclarations.slice(), (v) => !!v.showInSimplifiedHelpView); +} +function printVersion(sys2) { + sys2.write(getDiagnosticText(Diagnostics.Version_0, version) + sys2.newLine); +} +function createColors(sys2) { + const showColors = defaultIsPretty(sys2); + if (!showColors) { + return { + bold: (str) => str, + blue: (str) => str, + blueBackground: (str) => str, + brightWhite: (str) => str + }; + } + function bold(str) { + return `\x1B[1m${str}\x1B[22m`; + } + const isWindows = sys2.getEnvironmentVariable("OS") && sys2.getEnvironmentVariable("OS").toLowerCase().includes("windows"); + const isWindowsTerminal = sys2.getEnvironmentVariable("WT_SESSION"); + const isVSCode = sys2.getEnvironmentVariable("TERM_PROGRAM") && sys2.getEnvironmentVariable("TERM_PROGRAM") === "vscode"; + function blue(str) { + if (isWindows && !isWindowsTerminal && !isVSCode) { + return brightWhite(str); + } + return `\x1B[94m${str}\x1B[39m`; + } + const supportsRicherColors = sys2.getEnvironmentVariable("COLORTERM") === "truecolor" || sys2.getEnvironmentVariable("TERM") === "xterm-256color"; + function blueBackground(str) { + if (supportsRicherColors) { + return `\x1B[48;5;68m${str}\x1B[39;49m`; + } else { + return `\x1B[44m${str}\x1B[39;49m`; + } + } + function brightWhite(str) { + return `\x1B[97m${str}\x1B[39m`; + } + return { + bold, + blue, + brightWhite, + blueBackground + }; +} +function getDisplayNameTextOfOption(option) { + return `--${option.name}${option.shortName ? `, -${option.shortName}` : ""}`; +} +function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) { + var _a; + const text = []; + const colors = createColors(sys2); + const name = getDisplayNameTextOfOption(option); + const valueCandidates = getValueCandidate(option); + const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue( + option.defaultValueDescription, + option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type + ); + const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? void 0 : _a.call(sys2)) ?? 0; + if (terminalWidth >= 80) { + let description = ""; + if (option.description) { + description = getDiagnosticText(option.description); + } + text.push(...getPrettyOutput( + name, + description, + rightAlignOfLeft, + leftAlignOfRight, + terminalWidth, + /*colorLeft*/ + true + ), sys2.newLine); + if (showAdditionalInfoOutput(valueCandidates, option)) { + if (valueCandidates) { + text.push(...getPrettyOutput( + valueCandidates.valueType, + valueCandidates.possibleValues, + rightAlignOfLeft, + leftAlignOfRight, + terminalWidth, + /*colorLeft*/ + false + ), sys2.newLine); + } + if (defaultValueDescription) { + text.push(...getPrettyOutput( + getDiagnosticText(Diagnostics.default_Colon), + defaultValueDescription, + rightAlignOfLeft, + leftAlignOfRight, + terminalWidth, + /*colorLeft*/ + false + ), sys2.newLine); + } + } + text.push(sys2.newLine); + } else { + text.push(colors.blue(name), sys2.newLine); + if (option.description) { + const description = getDiagnosticText(option.description); + text.push(description); + } + text.push(sys2.newLine); + if (showAdditionalInfoOutput(valueCandidates, option)) { + if (valueCandidates) { + text.push(`${valueCandidates.valueType} ${valueCandidates.possibleValues}`); + } + if (defaultValueDescription) { + if (valueCandidates) text.push(sys2.newLine); + const diagType = getDiagnosticText(Diagnostics.default_Colon); + text.push(`${diagType} ${defaultValueDescription}`); + } + text.push(sys2.newLine); + } + text.push(sys2.newLine); + } + return text; + function formatDefaultValue(defaultValue, type) { + return defaultValue !== void 0 && typeof type === "object" ? arrayFrom(type.entries()).filter(([, value]) => value === defaultValue).map(([name2]) => name2).join("/") : String(defaultValue); + } + function showAdditionalInfoOutput(valueCandidates2, option2) { + const ignoreValues = ["string"]; + const ignoredDescriptions = [void 0, "false", "n/a"]; + const defaultValueDescription2 = option2.defaultValueDescription; + if (option2.category === Diagnostics.Command_line_Options) return false; + if (contains(ignoreValues, valueCandidates2 == null ? void 0 : valueCandidates2.possibleValues) && contains(ignoredDescriptions, defaultValueDescription2)) { + return false; + } + return true; + } + function getPrettyOutput(left, right, rightAlignOfLeft2, leftAlignOfRight2, terminalWidth2, colorLeft) { + const res = []; + let isFirstLine = true; + let remainRight = right; + const rightCharacterNumber = terminalWidth2 - leftAlignOfRight2; + while (remainRight.length > 0) { + let curLeft = ""; + if (isFirstLine) { + curLeft = left.padStart(rightAlignOfLeft2); + curLeft = curLeft.padEnd(leftAlignOfRight2); + curLeft = colorLeft ? colors.blue(curLeft) : curLeft; + } else { + curLeft = "".padStart(leftAlignOfRight2); + } + const curRight = remainRight.substr(0, rightCharacterNumber); + remainRight = remainRight.slice(rightCharacterNumber); + res.push(`${curLeft}${curRight}`); + isFirstLine = false; + } + return res; + } + function getValueCandidate(option2) { + if (option2.type === "object") { + return void 0; + } + return { + valueType: getValueType(option2), + possibleValues: getPossibleValues(option2) + }; + function getValueType(option3) { + Debug.assert(option3.type !== "listOrElement"); + switch (option3.type) { + case "string": + case "number": + case "boolean": + return getDiagnosticText(Diagnostics.type_Colon); + case "list": + return getDiagnosticText(Diagnostics.one_or_more_Colon); + default: + return getDiagnosticText(Diagnostics.one_of_Colon); + } + } + function getPossibleValues(option3) { + let possibleValues; + switch (option3.type) { + case "string": + case "number": + case "boolean": + possibleValues = option3.type; + break; + case "list": + case "listOrElement": + possibleValues = getPossibleValues(option3.element); + break; + case "object": + possibleValues = ""; + break; + default: + const inverted = {}; + option3.type.forEach((value, name2) => { + var _a2; + if (!((_a2 = option3.deprecatedKeys) == null ? void 0 : _a2.has(name2))) { + (inverted[value] || (inverted[value] = [])).push(name2); + } + }); + return Object.entries(inverted).map(([, synonyms]) => synonyms.join("/")).join(", "); + } + return possibleValues; + } + } +} +function generateGroupOptionOutput(sys2, optionsList) { + let maxLength = 0; + for (const option of optionsList) { + const curLength = getDisplayNameTextOfOption(option).length; + maxLength = maxLength > curLength ? maxLength : curLength; + } + const rightAlignOfLeftPart = maxLength + 2; + const leftAlignOfRightPart = rightAlignOfLeftPart + 2; + let lines = []; + for (const option of optionsList) { + const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart); + lines = [...lines, ...tmp]; + } + if (lines[lines.length - 2] !== sys2.newLine) { + lines.push(sys2.newLine); + } + return lines; +} +function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) { + let res = []; + res.push(createColors(sys2).bold(sectionName) + sys2.newLine + sys2.newLine); + if (beforeOptionsDescription) { + res.push(beforeOptionsDescription + sys2.newLine + sys2.newLine); + } + if (!subCategory) { + res = [...res, ...generateGroupOptionOutput(sys2, options)]; + if (afterOptionsDescription) { + res.push(afterOptionsDescription + sys2.newLine + sys2.newLine); + } + return res; + } + const categoryMap = /* @__PURE__ */ new Map(); + for (const option of options) { + if (!option.category) { + continue; + } + const curCategory = getDiagnosticText(option.category); + const optionsOfCurCategory = categoryMap.get(curCategory) ?? []; + optionsOfCurCategory.push(option); + categoryMap.set(curCategory, optionsOfCurCategory); + } + categoryMap.forEach((value, key) => { + res.push(`### ${key}${sys2.newLine}${sys2.newLine}`); + res = [...res, ...generateGroupOptionOutput(sys2, value)]; + }); + if (afterOptionsDescription) { + res.push(afterOptionsDescription + sys2.newLine + sys2.newLine); + } + return res; +} +function printEasyHelp(sys2, simpleOptions) { + const colors = createColors(sys2); + let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; + output.push(colors.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine); + example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory); + example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options); + example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory); + example("tsc --init", Diagnostics.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory); + example("tsc -p ./path/to/tsconfig.json", Diagnostics.Compiles_the_TypeScript_project_located_at_the_specified_path); + example("tsc --help --all", Diagnostics.An_expanded_version_of_this_information_showing_all_possible_compiler_options); + example(["tsc --noEmit", "tsc --target esnext"], Diagnostics.Compiles_the_current_project_with_additional_settings); + const cliCommands = simpleOptions.filter((opt) => opt.isCommandLineOnly || opt.category === Diagnostics.Command_line_Options); + const configOpts = simpleOptions.filter((opt) => !contains(cliCommands, opt)); + output = [ + ...output, + ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.COMMAND_LINE_FLAGS), + cliCommands, + /*subCategory*/ + false, + /*beforeOptionsDescription*/ + void 0, + /*afterOptionsDescription*/ + void 0 + ), + ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.COMMON_COMPILER_OPTIONS), + configOpts, + /*subCategory*/ + false, + /*beforeOptionsDescription*/ + void 0, + formatMessage(Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc") + ) + ]; + for (const line of output) { + sys2.write(line); + } + function example(ex, desc) { + const examples = typeof ex === "string" ? [ex] : ex; + for (const example2 of examples) { + output.push(" " + colors.blue(example2) + sys2.newLine); + } + output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine); + } +} +function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) { + let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; + output = [...output, ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.ALL_COMPILER_OPTIONS), + compilerOptions, + /*subCategory*/ + true, + /*beforeOptionsDescription*/ + void 0, + formatMessage(Diagnostics.You_can_learn_about_all_of_the_compiler_options_at_0, "https://aka.ms/tsc") + )]; + output = [...output, ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.WATCH_OPTIONS), + watchOptions, + /*subCategory*/ + false, + getDiagnosticText(Diagnostics.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon) + )]; + output = [...output, ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.BUILD_OPTIONS), + buildOptions, + /*subCategory*/ + false, + formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") + )]; + for (const line of output) { + sys2.write(line); + } +} +function printBuildHelp(sys2, buildOptions) { + let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)]; + output = [...output, ...generateSectionOptionsOutput( + sys2, + getDiagnosticText(Diagnostics.BUILD_OPTIONS), + buildOptions, + /*subCategory*/ + false, + formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") + )]; + for (const line of output) { + sys2.write(line); + } +} +function getHeader(sys2, message) { + var _a; + const colors = createColors(sys2); + const header = []; + const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? void 0 : _a.call(sys2)) ?? 0; + const tsIconLength = 5; + const tsIconFirstLine = colors.blueBackground("".padStart(tsIconLength)); + const tsIconSecondLine = colors.blueBackground(colors.brightWhite("TS ".padStart(tsIconLength))); + if (terminalWidth >= message.length + tsIconLength) { + const rightAlign = terminalWidth > 120 ? 120 : terminalWidth; + const leftAlign = rightAlign - tsIconLength; + header.push(message.padEnd(leftAlign) + tsIconFirstLine + sys2.newLine); + header.push("".padStart(leftAlign) + tsIconSecondLine + sys2.newLine); + } else { + header.push(message + sys2.newLine); + header.push(sys2.newLine); + } + return header; +} +function printHelp(sys2, commandLine) { + if (!commandLine.options.all) { + printEasyHelp(sys2, getOptionsForHelp(commandLine)); + } else { + printAllHelp(sys2, getOptionsForHelp(commandLine), optionsForBuild, optionsForWatch); + } +} +function executeCommandLineWorker(sys2, cb, commandLine) { + let reportDiagnostic = createDiagnosticReporter(sys2); + if (commandLine.options.build) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_build_must_be_the_first_command_line_argument)); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + let configFileName; + if (commandLine.options.locale) { + validateLocaleAndSetLanguage(commandLine.options.locale, sys2, commandLine.errors); + } + if (commandLine.errors.length > 0) { + commandLine.errors.forEach(reportDiagnostic); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + if (commandLine.options.init) { + writeConfigFile(sys2, reportDiagnostic, commandLine.options, commandLine.fileNames); + return sys2.exit(0 /* Success */); + } + if (commandLine.options.version) { + printVersion(sys2); + return sys2.exit(0 /* Success */); + } + if (commandLine.options.help || commandLine.options.all) { + printHelp(sys2, commandLine); + return sys2.exit(0 /* Success */); + } + if (commandLine.options.watch && commandLine.options.listFilesOnly) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "listFilesOnly")); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + if (commandLine.options.project) { + if (commandLine.fileNames.length !== 0) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + const fileOrDirectory = normalizePath(commandLine.options.project); + if (!fileOrDirectory || sys2.directoryExists(fileOrDirectory)) { + configFileName = combinePaths(fileOrDirectory, "tsconfig.json"); + if (!sys2.fileExists(configFileName)) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0, commandLine.options.project)); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + } else { + configFileName = fileOrDirectory; + if (!sys2.fileExists(configFileName)) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_specified_path_does_not_exist_Colon_0, commandLine.options.project)); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + } + } else if (commandLine.fileNames.length === 0) { + const searchPath = normalizePath(sys2.getCurrentDirectory()); + configFileName = findConfigFile(searchPath, (fileName) => sys2.fileExists(fileName)); + } + if (commandLine.fileNames.length === 0 && !configFileName) { + if (commandLine.options.showConfig) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0, normalizePath(sys2.getCurrentDirectory()))); + } else { + printVersion(sys2); + printHelp(sys2, commandLine); + } + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + const currentDirectory = sys2.getCurrentDirectory(); + const commandLineOptions = convertToOptionsWithAbsolutePaths( + commandLine.options, + (fileName) => getNormalizedAbsolutePath(fileName, currentDirectory) + ); + if (configFileName) { + const extendedConfigCache = /* @__PURE__ */ new Map(); + const configParseResult = parseConfigFileWithSystem(configFileName, commandLineOptions, extendedConfigCache, commandLine.watchOptions, sys2, reportDiagnostic); + if (commandLineOptions.showConfig) { + if (configParseResult.errors.length !== 0) { + reportDiagnostic = updateReportDiagnostic( + sys2, + reportDiagnostic, + configParseResult.options + ); + configParseResult.errors.forEach(reportDiagnostic); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + sys2.write(JSON.stringify(convertToTSConfig(configParseResult, configFileName, sys2), null, 4) + sys2.newLine); + return sys2.exit(0 /* Success */); + } + reportDiagnostic = updateReportDiagnostic( + sys2, + reportDiagnostic, + configParseResult.options + ); + if (isWatchSet(configParseResult.options)) { + if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; + return createWatchOfConfigFile( + sys2, + cb, + reportDiagnostic, + configParseResult, + commandLineOptions, + commandLine.watchOptions, + extendedConfigCache + ); + } else if (isIncrementalCompilation(configParseResult.options)) { + performIncrementalCompilation2( + sys2, + cb, + reportDiagnostic, + configParseResult + ); + } else { + performCompilation( + sys2, + cb, + reportDiagnostic, + configParseResult + ); + } + } else { + if (commandLineOptions.showConfig) { + sys2.write(JSON.stringify(convertToTSConfig(commandLine, combinePaths(currentDirectory, "tsconfig.json"), sys2), null, 4) + sys2.newLine); + return sys2.exit(0 /* Success */); + } + reportDiagnostic = updateReportDiagnostic( + sys2, + reportDiagnostic, + commandLineOptions + ); + if (isWatchSet(commandLineOptions)) { + if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; + return createWatchOfFilesAndCompilerOptions( + sys2, + cb, + reportDiagnostic, + commandLine.fileNames, + commandLineOptions, + commandLine.watchOptions + ); + } else if (isIncrementalCompilation(commandLineOptions)) { + performIncrementalCompilation2( + sys2, + cb, + reportDiagnostic, + { ...commandLine, options: commandLineOptions } + ); + } else { + performCompilation( + sys2, + cb, + reportDiagnostic, + { ...commandLine, options: commandLineOptions } + ); + } + } +} +function isBuild(commandLineArgs) { + if (commandLineArgs.length > 0 && commandLineArgs[0].charCodeAt(0) === 45 /* minus */) { + const firstOption = commandLineArgs[0].slice(commandLineArgs[0].charCodeAt(1) === 45 /* minus */ ? 2 : 1).toLowerCase(); + return firstOption === "build" || firstOption === "b"; + } + return false; +} +function executeCommandLine(system, cb, commandLineArgs) { + if (isBuild(commandLineArgs)) { + const { buildOptions, watchOptions, projects, errors } = parseBuildCommand(commandLineArgs.slice(1)); + if (buildOptions.generateCpuProfile && system.enableCPUProfiler) { + system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild( + system, + cb, + buildOptions, + watchOptions, + projects, + errors + )); + } else { + return performBuild( + system, + cb, + buildOptions, + watchOptions, + projects, + errors + ); + } + } + const commandLine = parseCommandLine(commandLineArgs, (path) => system.readFile(path)); + if (commandLine.options.generateCpuProfile && system.enableCPUProfiler) { + system.enableCPUProfiler(commandLine.options.generateCpuProfile, () => executeCommandLineWorker( + system, + cb, + commandLine + )); + } else { + return executeCommandLineWorker(system, cb, commandLine); + } +} +function reportWatchModeWithoutSysSupport(sys2, reportDiagnostic) { + if (!sys2.watchFile || !sys2.watchDirectory) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--watch")); + sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + return true; + } + return false; +} +var defaultJSDocParsingMode = 2 /* ParseForTypeErrors */; +function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors) { + const reportDiagnostic = updateReportDiagnostic( + sys2, + createDiagnosticReporter(sys2), + buildOptions + ); + if (buildOptions.locale) { + validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors); + } + if (errors.length > 0) { + errors.forEach(reportDiagnostic); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + if (buildOptions.help) { + printVersion(sys2); + printBuildHelp(sys2, buildOpts); + return sys2.exit(0 /* Success */); + } + if (projects.length === 0) { + printVersion(sys2); + printBuildHelp(sys2, buildOpts); + return sys2.exit(0 /* Success */); + } + if (!sys2.getModifiedTime || !sys2.setModifiedTime || buildOptions.clean && !sys2.deleteFile) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.The_current_host_does_not_support_the_0_option, "--build")); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } + if (buildOptions.watch) { + if (reportWatchModeWithoutSysSupport(sys2, reportDiagnostic)) return; + const buildHost2 = createSolutionBuilderWithWatchHost( + sys2, + /*createProgram*/ + void 0, + reportDiagnostic, + createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)), + createWatchStatusReporter2(sys2, buildOptions) + ); + buildHost2.jsDocParsingMode = defaultJSDocParsingMode; + const solutionPerformance2 = enableSolutionPerformance(sys2, buildOptions); + updateSolutionBuilderHost(sys2, cb, buildHost2, solutionPerformance2); + const onWatchStatusChange = buildHost2.onWatchStatusChange; + let reportBuildStatistics = false; + buildHost2.onWatchStatusChange = (d, newLine, options, errorCount) => { + onWatchStatusChange == null ? void 0 : onWatchStatusChange(d, newLine, options, errorCount); + if (reportBuildStatistics && (d.code === Diagnostics.Found_0_errors_Watching_for_file_changes.code || d.code === Diagnostics.Found_1_error_Watching_for_file_changes.code)) { + reportSolutionBuilderTimes(builder2, solutionPerformance2); + } + }; + const builder2 = createSolutionBuilderWithWatch(buildHost2, projects, buildOptions, watchOptions); + builder2.build(); + reportSolutionBuilderTimes(builder2, solutionPerformance2); + reportBuildStatistics = true; + return builder2; + } + const buildHost = createSolutionBuilderHost( + sys2, + /*createProgram*/ + void 0, + reportDiagnostic, + createBuilderStatusReporter(sys2, shouldBePretty(sys2, buildOptions)), + createReportErrorSummary(sys2, buildOptions) + ); + buildHost.jsDocParsingMode = defaultJSDocParsingMode; + const solutionPerformance = enableSolutionPerformance(sys2, buildOptions); + updateSolutionBuilderHost(sys2, cb, buildHost, solutionPerformance); + const builder = createSolutionBuilder(buildHost, projects, buildOptions); + const exitStatus = buildOptions.clean ? builder.clean() : builder.build(); + reportSolutionBuilderTimes(builder, solutionPerformance); + dumpTracingLegend(); + return sys2.exit(exitStatus); +} +function createReportErrorSummary(sys2, options) { + return shouldBePretty(sys2, options) ? (errorCount, filesInError) => sys2.write(getErrorSummaryText(errorCount, filesInError, sys2.newLine, sys2)) : void 0; +} +function performCompilation(sys2, cb, reportDiagnostic, config) { + const { fileNames, options, projectReferences } = config; + const host = createCompilerHostWorker( + options, + /*setParentNodes*/ + void 0, + sys2 + ); + host.jsDocParsingMode = defaultJSDocParsingMode; + const currentDirectory = host.getCurrentDirectory(); + const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); + changeCompilerHostLikeToUseCache(host, (fileName) => toPath(fileName, currentDirectory, getCanonicalFileName)); + enableStatisticsAndTracing( + sys2, + options, + /*isBuildMode*/ + false + ); + const programOptions = { + rootNames: fileNames, + options, + projectReferences, + host, + configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config) + }; + const program = createProgram(programOptions); + const exitStatus = emitFilesAndReportErrorsAndGetExitStatus( + program, + reportDiagnostic, + (s) => sys2.write(s + sys2.newLine), + createReportErrorSummary(sys2, options) + ); + reportStatistics( + sys2, + program, + /*solutionPerformance*/ + void 0 + ); + cb(program); + return sys2.exit(exitStatus); +} +function performIncrementalCompilation2(sys2, cb, reportDiagnostic, config) { + const { options, fileNames, projectReferences } = config; + enableStatisticsAndTracing( + sys2, + options, + /*isBuildMode*/ + false + ); + const host = createIncrementalCompilerHost(options, sys2); + host.jsDocParsingMode = defaultJSDocParsingMode; + const exitStatus = performIncrementalCompilation({ + host, + system: sys2, + rootNames: fileNames, + options, + configFileParsingDiagnostics: getConfigFileParsingDiagnostics(config), + projectReferences, + reportDiagnostic, + reportErrorSummary: createReportErrorSummary(sys2, options), + afterProgramEmitAndDiagnostics: (builderProgram) => { + reportStatistics( + sys2, + builderProgram.getProgram(), + /*solutionPerformance*/ + void 0 + ); + cb(builderProgram); + } + }); + return sys2.exit(exitStatus); +} +function updateSolutionBuilderHost(sys2, cb, buildHost, solutionPerformance) { + updateCreateProgram( + sys2, + buildHost, + /*isBuildMode*/ + true + ); + buildHost.afterProgramEmitAndDiagnostics = (program) => { + reportStatistics(sys2, program.getProgram(), solutionPerformance); + cb(program); + }; +} +function updateCreateProgram(sys2, host, isBuildMode) { + const compileUsingBuilder = host.createProgram; + host.createProgram = (rootNames, options, host2, oldProgram, configFileParsingDiagnostics, projectReferences) => { + Debug.assert(rootNames !== void 0 || options === void 0 && !!oldProgram); + if (options !== void 0) { + enableStatisticsAndTracing(sys2, options, isBuildMode); + } + return compileUsingBuilder(rootNames, options, host2, oldProgram, configFileParsingDiagnostics, projectReferences); + }; +} +function updateWatchCompilationHost(sys2, cb, watchCompilerHost) { + watchCompilerHost.jsDocParsingMode = defaultJSDocParsingMode; + updateCreateProgram( + sys2, + watchCompilerHost, + /*isBuildMode*/ + false + ); + const emitFilesUsingBuilder = watchCompilerHost.afterProgramCreate; + watchCompilerHost.afterProgramCreate = (builderProgram) => { + emitFilesUsingBuilder(builderProgram); + reportStatistics( + sys2, + builderProgram.getProgram(), + /*solutionPerformance*/ + void 0 + ); + cb(builderProgram); + }; +} +function createWatchStatusReporter2(sys2, options) { + return createWatchStatusReporter(sys2, shouldBePretty(sys2, options)); +} +function createWatchOfConfigFile(system, cb, reportDiagnostic, configParseResult, optionsToExtend, watchOptionsToExtend, extendedConfigCache) { + const watchCompilerHost = createWatchCompilerHostOfConfigFile({ + configFileName: configParseResult.options.configFilePath, + optionsToExtend, + watchOptionsToExtend, + system, + reportDiagnostic, + reportWatchStatus: createWatchStatusReporter2(system, configParseResult.options) + }); + updateWatchCompilationHost(system, cb, watchCompilerHost); + watchCompilerHost.configFileParsingResult = configParseResult; + watchCompilerHost.extendedConfigCache = extendedConfigCache; + return createWatchProgram(watchCompilerHost); +} +function createWatchOfFilesAndCompilerOptions(system, cb, reportDiagnostic, rootFiles, options, watchOptions) { + const watchCompilerHost = createWatchCompilerHostOfFilesAndCompilerOptions({ + rootFiles, + options, + watchOptions, + system, + reportDiagnostic, + reportWatchStatus: createWatchStatusReporter2(system, options) + }); + updateWatchCompilationHost(system, cb, watchCompilerHost); + return createWatchProgram(watchCompilerHost); +} +function enableSolutionPerformance(system, options) { + if (system === sys && options.extendedDiagnostics) { + enable(); + return createSolutionPerfomrance(); + } +} +function createSolutionPerfomrance() { + let statistics; + return { + addAggregateStatistic, + forEachAggregateStatistics: forEachAggreateStatistics, + clear: clear2 + }; + function addAggregateStatistic(s) { + const existing = statistics == null ? void 0 : statistics.get(s.name); + if (existing) { + if (existing.type === 2 /* memory */) existing.value = Math.max(existing.value, s.value); + else existing.value += s.value; + } else { + (statistics ?? (statistics = /* @__PURE__ */ new Map())).set(s.name, s); + } + } + function forEachAggreateStatistics(cb) { + statistics == null ? void 0 : statistics.forEach(cb); + } + function clear2() { + statistics = void 0; + } +} +function reportSolutionBuilderTimes(builder, solutionPerformance) { + if (!solutionPerformance) return; + if (!isEnabled()) { + sys.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); + return; + } + const statistics = []; + statistics.push( + { name: "Projects in scope", value: getBuildOrderFromAnyBuildOrder(builder.getBuildOrder()).length, type: 1 /* count */ } + ); + reportSolutionBuilderCountStatistic("SolutionBuilder::Projects built"); + reportSolutionBuilderCountStatistic("SolutionBuilder::Timestamps only updates"); + reportSolutionBuilderCountStatistic("SolutionBuilder::Bundles updated"); + solutionPerformance.forEachAggregateStatistics((s) => { + s.name = `Aggregate ${s.name}`; + statistics.push(s); + }); + forEachMeasure((name, duration) => { + if (isSolutionMarkOrMeasure(name)) statistics.push({ name: `${getNameFromSolutionBuilderMarkOrMeasure(name)} time`, value: duration, type: 0 /* time */ }); + }); + disable(); + enable(); + solutionPerformance.clear(); + reportAllStatistics(sys, statistics); + function reportSolutionBuilderCountStatistic(name) { + const value = getCount(name); + if (value) { + statistics.push({ name: getNameFromSolutionBuilderMarkOrMeasure(name), value, type: 1 /* count */ }); + } + } + function getNameFromSolutionBuilderMarkOrMeasure(name) { + return name.replace("SolutionBuilder::", ""); + } +} +function canReportDiagnostics(system, compilerOptions) { + return system === sys && (compilerOptions.diagnostics || compilerOptions.extendedDiagnostics); +} +function canTrace(system, compilerOptions) { + return system === sys && compilerOptions.generateTrace; +} +function enableStatisticsAndTracing(system, compilerOptions, isBuildMode) { + if (canReportDiagnostics(system, compilerOptions)) { + enable(system); + } + if (canTrace(system, compilerOptions)) { + startTracing(isBuildMode ? "build" : "project", compilerOptions.generateTrace, compilerOptions.configFilePath); + } +} +function isSolutionMarkOrMeasure(name) { + return startsWith(name, "SolutionBuilder::"); +} +function reportStatistics(sys2, program, solutionPerformance) { + var _a; + const compilerOptions = program.getCompilerOptions(); + if (canTrace(sys2, compilerOptions)) { + (_a = tracing) == null ? void 0 : _a.stopTracing(); + } + let statistics; + if (canReportDiagnostics(sys2, compilerOptions)) { + statistics = []; + const memoryUsed = sys2.getMemoryUsage ? sys2.getMemoryUsage() : -1; + reportCountStatistic("Files", program.getSourceFiles().length); + const lineCounts = countLines(program); + if (compilerOptions.extendedDiagnostics) { + for (const [key, value] of lineCounts.entries()) { + reportCountStatistic("Lines of " + key, value); + } + } else { + reportCountStatistic("Lines", reduceLeftIterator(lineCounts.values(), (sum, count) => sum + count, 0)); + } + reportCountStatistic("Identifiers", program.getIdentifierCount()); + reportCountStatistic("Symbols", program.getSymbolCount()); + reportCountStatistic("Types", program.getTypeCount()); + reportCountStatistic("Instantiations", program.getInstantiationCount()); + if (memoryUsed >= 0) { + reportStatisticalValue( + { name: "Memory used", value: memoryUsed, type: 2 /* memory */ }, + /*aggregate*/ + true + ); + } + const isPerformanceEnabled = isEnabled(); + const programTime = isPerformanceEnabled ? getDuration("Program") : 0; + const bindTime = isPerformanceEnabled ? getDuration("Bind") : 0; + const checkTime = isPerformanceEnabled ? getDuration("Check") : 0; + const emitTime = isPerformanceEnabled ? getDuration("Emit") : 0; + if (compilerOptions.extendedDiagnostics) { + const caches = program.getRelationCacheSizes(); + reportCountStatistic("Assignability cache size", caches.assignable); + reportCountStatistic("Identity cache size", caches.identity); + reportCountStatistic("Subtype cache size", caches.subtype); + reportCountStatistic("Strict subtype cache size", caches.strictSubtype); + if (isPerformanceEnabled) { + forEachMeasure((name, duration) => { + if (!isSolutionMarkOrMeasure(name)) reportTimeStatistic( + `${name} time`, + duration, + /*aggregate*/ + true + ); + }); + } + } else if (isPerformanceEnabled) { + reportTimeStatistic( + "I/O read", + getDuration("I/O Read"), + /*aggregate*/ + true + ); + reportTimeStatistic( + "I/O write", + getDuration("I/O Write"), + /*aggregate*/ + true + ); + reportTimeStatistic( + "Parse time", + programTime, + /*aggregate*/ + true + ); + reportTimeStatistic( + "Bind time", + bindTime, + /*aggregate*/ + true + ); + reportTimeStatistic( + "Check time", + checkTime, + /*aggregate*/ + true + ); + reportTimeStatistic( + "Emit time", + emitTime, + /*aggregate*/ + true + ); + } + if (isPerformanceEnabled) { + reportTimeStatistic( + "Total time", + programTime + bindTime + checkTime + emitTime, + /*aggregate*/ + false + ); + } + reportAllStatistics(sys2, statistics); + if (!isPerformanceEnabled) { + sys2.write(Diagnostics.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message + "\n"); + } else { + if (solutionPerformance) { + forEachMeasure((name) => { + if (!isSolutionMarkOrMeasure(name)) clearMeasures(name); + }); + forEachMark((name) => { + if (!isSolutionMarkOrMeasure(name)) clearMarks(name); + }); + } else { + disable(); + } + } + } + function reportStatisticalValue(s, aggregate) { + statistics.push(s); + if (aggregate) solutionPerformance == null ? void 0 : solutionPerformance.addAggregateStatistic(s); + } + function reportCountStatistic(name, count) { + reportStatisticalValue( + { name, value: count, type: 1 /* count */ }, + /*aggregate*/ + true + ); + } + function reportTimeStatistic(name, time, aggregate) { + reportStatisticalValue({ name, value: time, type: 0 /* time */ }, aggregate); + } +} +function reportAllStatistics(sys2, statistics) { + let nameSize = 0; + let valueSize = 0; + for (const s of statistics) { + if (s.name.length > nameSize) { + nameSize = s.name.length; + } + const value = statisticValue(s); + if (value.length > valueSize) { + valueSize = value.length; + } + } + for (const s of statistics) { + sys2.write(`${s.name}:`.padEnd(nameSize + 2) + statisticValue(s).toString().padStart(valueSize) + sys2.newLine); + } +} +function statisticValue(s) { + switch (s.type) { + case 1 /* count */: + return "" + s.value; + case 0 /* time */: + return (s.value / 1e3).toFixed(2) + "s"; + case 2 /* memory */: + return Math.round(s.value / 1e3) + "K"; + default: + Debug.assertNever(s.type); + } +} +function writeConfigFile(sys2, reportDiagnostic, options, fileNames) { + const currentDirectory = sys2.getCurrentDirectory(); + const file = normalizePath(combinePaths(currentDirectory, "tsconfig.json")); + if (sys2.fileExists(file)) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.A_tsconfig_json_file_is_already_defined_at_Colon_0, file)); + } else { + sys2.writeFile(file, generateTSConfig(options, fileNames, sys2.newLine)); + const output = [sys2.newLine, ...getHeader(sys2, "Created a new tsconfig.json with:")]; + output.push(getCompilerOptionsDiffValue(options, sys2.newLine) + sys2.newLine + sys2.newLine); + output.push(`You can learn more at https://aka.ms/tsconfig` + sys2.newLine); + for (const line of output) { + sys2.write(line); + } + } + return; +} + +// src/compiler/expressionToTypeNode.ts +function createSyntacticTypeNodeBuilder(options, resolver) { + const strictNullChecks = getStrictOptionValue(options, "strictNullChecks"); + return { + typeFromExpression, + serializeTypeOfDeclaration, + serializeReturnTypeForSignature, + serializeTypeOfExpression + }; + function serializeExistingTypeAnnotation(type, addUndefined) { + return type !== void 0 && (!addUndefined || type && canAddUndefined(type)) ? true : void 0; + } + function serializeTypeOfExpression(expr, context, addUndefined, preserveLiterals) { + return typeFromExpression( + expr, + context, + /*isConstContext*/ + false, + addUndefined, + preserveLiterals + ) ?? inferExpressionType(expr, context); + } + function serializeTypeOfDeclaration(node, context) { + switch (node.kind) { + case 171 /* PropertySignature */: + return serializeExistingTypeAnnotation(getEffectiveTypeAnnotationNode(node)); + case 169 /* Parameter */: + return typeFromParameter(node, context); + case 260 /* VariableDeclaration */: + return typeFromVariable(node, context); + case 172 /* PropertyDeclaration */: + return typeFromProperty(node, context); + case 208 /* BindingElement */: + return inferTypeOfDeclaration(node, context); + case 277 /* ExportAssignment */: + return serializeTypeOfExpression( + node.expression, + context, + /*addUndefined*/ + void 0, + /*preserveLiterals*/ + true + ); + case 211 /* PropertyAccessExpression */: + case 212 /* ElementAccessExpression */: + case 226 /* BinaryExpression */: + return serializeExistingTypeAnnotation(getEffectiveTypeAnnotationNode(node)) || inferTypeOfDeclaration(node, context); + case 303 /* PropertyAssignment */: + return typeFromExpression(node.initializer, context) || inferTypeOfDeclaration(node, context); + default: + Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); + } + } + function serializeReturnTypeForSignature(node, context) { + switch (node.kind) { + case 177 /* GetAccessor */: + return typeFromAccessor(node, context); + case 174 /* MethodDeclaration */: + case 262 /* FunctionDeclaration */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 179 /* CallSignature */: + case 176 /* Constructor */: + case 178 /* SetAccessor */: + case 181 /* IndexSignature */: + case 184 /* FunctionType */: + case 185 /* ConstructorType */: + case 218 /* FunctionExpression */: + case 219 /* ArrowFunction */: + case 317 /* JSDocFunctionType */: + case 323 /* JSDocSignature */: + return createReturnFromSignature(node, context); + default: + Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); + } + } + function getTypeAnnotationFromAccessor2(accessor) { + if (accessor) { + return accessor.kind === 177 /* GetAccessor */ ? getEffectiveReturnTypeNode(accessor) : accessor.parameters.length > 0 ? getEffectiveTypeAnnotationNode(accessor.parameters[0]) : void 0; + } + } + function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) { + let accessorType = getTypeAnnotationFromAccessor2(node); + if (!accessorType && node !== accessors.firstAccessor) { + accessorType = getTypeAnnotationFromAccessor2(accessors.firstAccessor); + } + if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) { + accessorType = getTypeAnnotationFromAccessor2(accessors.secondAccessor); + } + return accessorType; + } + function typeFromAccessor(node, context) { + const accessorDeclarations = resolver.getAllAccessorDeclarations(node); + const accessorType = getTypeAnnotationFromAllAccessorDeclarations(node, accessorDeclarations); + if (accessorType) { + return serializeExistingTypeAnnotation(accessorType); + } + if (accessorDeclarations.getAccessor) { + return createReturnFromSignature(accessorDeclarations.getAccessor, context); + } + return false; + } + function typeFromVariable(node, context) { + const declaredType = getEffectiveTypeAnnotationNode(node); + if (declaredType) { + return serializeExistingTypeAnnotation(declaredType); + } + let resultType; + if (node.initializer) { + if (!resolver.isExpandoFunctionDeclaration(node)) { + resultType = typeFromExpression( + node.initializer, + context, + /*isConstContext*/ + void 0, + /*requiresAddingUndefined*/ + void 0, + isVarConstLike(node) + ); + } + } + return resultType ?? inferTypeOfDeclaration(node, context); + } + function typeFromParameter(node, context) { + const parent = node.parent; + if (parent.kind === 178 /* SetAccessor */) { + return typeFromAccessor(parent, context); + } + const declaredType = getEffectiveTypeAnnotationNode(node); + const addUndefined = resolver.requiresAddingImplicitUndefined(node); + let resultType; + if (declaredType) { + resultType = serializeExistingTypeAnnotation(declaredType, addUndefined); + } else { + if (node.initializer && isIdentifier(node.name)) { + resultType = typeFromExpression( + node.initializer, + context, + /*isConstContext*/ + void 0, + addUndefined + ); + } + } + return resultType ?? inferTypeOfDeclaration(node, context); + } + function typeFromProperty(node, context) { + const declaredType = getEffectiveTypeAnnotationNode(node); + if (declaredType) { + return serializeExistingTypeAnnotation(declaredType); + } + let resultType; + if (node.initializer) { + const isReadonly = isDeclarationReadonly(node); + resultType = typeFromExpression( + node.initializer, + context, + /*isConstContext*/ + void 0, + /*requiresAddingUndefined*/ + void 0, + isReadonly + ); + } + return resultType ?? inferTypeOfDeclaration(node, context); + } + function inferTypeOfDeclaration(node, context) { + context.tracker.reportInferenceFallback(node); + return false; + } + function inferExpressionType(node, context) { + context.tracker.reportInferenceFallback(node); + return false; + } + function inferReturnTypeOfSignatureSignature(node, context) { + context.tracker.reportInferenceFallback(node); + return false; + } + function inferAccessorType(node, allAccessors, context) { + if (node.kind === 177 /* GetAccessor */) { + return createReturnFromSignature(node, context); + } else { + context.tracker.reportInferenceFallback(node); + return false; + } + } + function typeFromTypeAssertion(expression, type, context, requiresAddingUndefined) { + if (isConstTypeReference(type)) { + return typeFromExpression( + expression, + context, + /*isConstContext*/ + true, + requiresAddingUndefined + ); + } + if (requiresAddingUndefined && !canAddUndefined(type)) { + context.tracker.reportInferenceFallback(type); + } + return serializeExistingTypeAnnotation(type); + } + function typeFromExpression(node, context, isConstContext = false, requiresAddingUndefined = false, preserveLiterals = false) { + switch (node.kind) { + case 217 /* ParenthesizedExpression */: + if (isJSDocTypeAssertion(node)) { + return typeFromTypeAssertion(node.expression, getJSDocTypeAssertionType(node), context, requiresAddingUndefined); + } + return typeFromExpression(node.expression, context, isConstContext, requiresAddingUndefined); + case 80 /* Identifier */: + if (resolver.isUndefinedIdentifierExpression(node)) { + return true; + } + break; + case 106 /* NullKeyword */: + return true; + case 219 /* ArrowFunction */: + case 218 /* FunctionExpression */: + return typeFromFunctionLikeExpression(node, context); + case 216 /* TypeAssertionExpression */: + case 234 /* AsExpression */: + const asExpression = node; + return typeFromTypeAssertion(asExpression.expression, asExpression.type, context, requiresAddingUndefined); + case 224 /* PrefixUnaryExpression */: + const unaryExpression = node; + if (isPrimitiveLiteralValue(unaryExpression)) { + if (unaryExpression.operand.kind === 10 /* BigIntLiteral */) { + return typeFromPrimitiveLiteral(); + } + if (unaryExpression.operand.kind === 9 /* NumericLiteral */) { + return typeFromPrimitiveLiteral(); + } + } + break; + case 9 /* NumericLiteral */: + return typeFromPrimitiveLiteral(); + case 228 /* TemplateExpression */: + if (!isConstContext && !preserveLiterals) { + return true; + } + break; + case 15 /* NoSubstitutionTemplateLiteral */: + case 11 /* StringLiteral */: + return typeFromPrimitiveLiteral(); + case 10 /* BigIntLiteral */: + return typeFromPrimitiveLiteral(); + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + return typeFromPrimitiveLiteral(); + case 209 /* ArrayLiteralExpression */: + return typeFromArrayLiteral(node, context, isConstContext); + case 210 /* ObjectLiteralExpression */: + return typeFromObjectLiteral(node, context, isConstContext); + case 231 /* ClassExpression */: + return inferExpressionType(node, context); + } + return void 0; + } + function typeFromFunctionLikeExpression(fnNode, context) { + const returnType = serializeExistingTypeAnnotation(fnNode.type) ?? createReturnFromSignature(fnNode, context); + const typeParameters = reuseTypeParameters(fnNode.typeParameters); + const parameters = fnNode.parameters.every((p) => ensureParameter(p, context)); + return returnType && typeParameters && parameters; + } + function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) { + if (!isConstContext) { + context.tracker.reportInferenceFallback(arrayLiteral); + return false; + } + for (const element of arrayLiteral.elements) { + if (element.kind === 230 /* SpreadElement */) { + context.tracker.reportInferenceFallback(element); + return false; + } + } + return true; + } + function typeFromArrayLiteral(arrayLiteral, context, isConstContext) { + if (!canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext)) { + return false; + } + let canInferArray = true; + for (const element of arrayLiteral.elements) { + Debug.assert(element.kind !== 230 /* SpreadElement */); + if (element.kind !== 232 /* OmittedExpression */) { + canInferArray = (typeFromExpression(element, context, isConstContext) ?? inferExpressionType(element, context)) && canInferArray; + } + } + return true; + } + function canGetTypeFromObjectLiteral(objectLiteral, context) { + let result = true; + for (const prop of objectLiteral.properties) { + if (prop.flags & 262144 /* ThisNodeHasError */) { + result = false; + break; + } + if (prop.kind === 304 /* ShorthandPropertyAssignment */ || prop.kind === 305 /* SpreadAssignment */) { + context.tracker.reportInferenceFallback(prop); + result = false; + } else if (prop.name.flags & 262144 /* ThisNodeHasError */) { + result = false; + break; + } else if (prop.name.kind === 81 /* PrivateIdentifier */) { + result = false; + } else if (prop.name.kind === 167 /* ComputedPropertyName */) { + const expression = prop.name.expression; + if (!isPrimitiveLiteralValue( + expression, + /*includeBigInt*/ + false + ) && !resolver.isDefinitelyReferenceToGlobalSymbolObject(expression)) { + context.tracker.reportInferenceFallback(prop.name); + result = false; + } + } + } + return result; + } + function typeFromObjectLiteral(objectLiteral, context, isConstContext) { + if (!canGetTypeFromObjectLiteral(objectLiteral, context)) return false; + let canInferObjectLiteral = true; + for (const prop of objectLiteral.properties) { + Debug.assert(!isShorthandPropertyAssignment(prop) && !isSpreadAssignment(prop)); + const name = prop.name; + switch (prop.kind) { + case 174 /* MethodDeclaration */: + canInferObjectLiteral = !!typeFromObjectLiteralMethod(prop, name, context) && canInferObjectLiteral; + break; + case 303 /* PropertyAssignment */: + canInferObjectLiteral = !!typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext) && canInferObjectLiteral; + break; + case 178 /* SetAccessor */: + case 177 /* GetAccessor */: + canInferObjectLiteral = !!typeFromObjectLiteralAccessor(prop, name, context) && canInferObjectLiteral; + break; + } + } + return canInferObjectLiteral; + } + function typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext) { + return typeFromExpression(prop.initializer, context, isConstContext) ?? inferTypeOfDeclaration(prop, context); + } + function ensureParameter(p, context) { + return typeFromParameter(p, context); + } + function reuseTypeParameters(typeParameters) { + return (typeParameters == null ? void 0 : typeParameters.every( + (tp) => serializeExistingTypeAnnotation(tp.constraint) && serializeExistingTypeAnnotation(tp.default) + )) ?? true; + } + function typeFromObjectLiteralMethod(method, name, context) { + const returnType = createReturnFromSignature(method, context); + const typeParameters = reuseTypeParameters(method.typeParameters); + const parameters = method.parameters.every((p) => ensureParameter(p, context)); + return returnType && typeParameters && parameters; + } + function typeFromObjectLiteralAccessor(accessor, name, context) { + const allAccessors = resolver.getAllAccessorDeclarations(accessor); + const getAccessorType = allAccessors.getAccessor && getTypeAnnotationFromAccessor2(allAccessors.getAccessor); + const setAccessorType = allAccessors.setAccessor && getTypeAnnotationFromAccessor2(allAccessors.setAccessor); + if (getAccessorType !== void 0 && setAccessorType !== void 0) { + const parameters = accessor.parameters.every((p) => ensureParameter(p, context)); + if (isGetAccessor(accessor)) { + return parameters && serializeExistingTypeAnnotation(getAccessorType); + } else { + return parameters; + } + } else if (allAccessors.firstAccessor === accessor) { + const foundType = getAccessorType ?? setAccessorType; + const propertyType = foundType ? serializeExistingTypeAnnotation(foundType) : inferAccessorType(accessor, allAccessors, context); + return propertyType; + } + return false; + } + function typeFromPrimitiveLiteral() { + return true; + } + function canAddUndefined(node) { + if (!strictNullChecks) return true; + if (isKeyword(node.kind) || node.kind === 201 /* LiteralType */ || node.kind === 184 /* FunctionType */ || node.kind === 185 /* ConstructorType */ || node.kind === 188 /* ArrayType */ || node.kind === 189 /* TupleType */ || node.kind === 187 /* TypeLiteral */ || node.kind === 203 /* TemplateLiteralType */ || node.kind === 197 /* ThisType */) { + return true; + } + if (node.kind === 196 /* ParenthesizedType */) { + return canAddUndefined(node.type); + } + if (node.kind === 192 /* UnionType */ || node.kind === 193 /* IntersectionType */) { + return node.types.every(canAddUndefined); + } + return false; + } + function createReturnFromSignature(fn, context) { + let returnType; + const returnTypeNode = getEffectiveReturnTypeNode(fn); + if (returnTypeNode) { + returnType = serializeExistingTypeAnnotation(returnTypeNode); + } + if (!returnType && isValueSignatureDeclaration(fn)) { + returnType = typeFromSingleReturnExpression(fn, context); + } + return returnType ?? inferReturnTypeOfSignatureSignature(fn, context); + } + function typeFromSingleReturnExpression(declaration, context) { + let candidateExpr; + if (declaration && !nodeIsMissing(declaration.body)) { + if (getFunctionFlags(declaration) & 3 /* AsyncGenerator */) return void 0; + const body = declaration.body; + if (body && isBlock(body)) { + forEachReturnStatement(body, (s) => { + if (!candidateExpr) { + candidateExpr = s.expression; + } else { + candidateExpr = void 0; + return true; + } + }); + } else { + candidateExpr = body; + } + } + if (candidateExpr) { + return typeFromExpression(candidateExpr, context); + } + return void 0; + } +} + +// src/tsc/tsc.ts +Debug.loggingHost = { + log(_level, s) { + sys.write(`${s || ""}${sys.newLine}`); } -} catch {} -module.exports = require("./_tsc.js"); +}; +if (Debug.isDebugging) { + Debug.enableDebugInfo(); +} +if (sys.tryEnableSourceMapsForHost && /^development$/i.test(sys.getEnvironmentVariable("NODE_ENV"))) { + sys.tryEnableSourceMapsForHost(); +} +if (sys.setBlocking) { + sys.setBlocking(); +} +executeCommandLine(sys, noop, sys.args); +//# sourceMappingURL=tsc.js.map diff --git a/node_modules/typescript/lib/tsserver.js b/node_modules/typescript/lib/tsserver.js index 736fff31e..398a3a1ed 100644 --- a/node_modules/typescript/lib/tsserver.js +++ b/node_modules/typescript/lib/tsserver.js @@ -1,8 +1,621 @@ -// This file is a shim which defers loading the real module until the compile cache is enabled. -try { - const { enableCompileCache } = require("node:module"); - if (enableCompileCache) { - enableCompileCache(); - } -} catch {} -module.exports = require("./_tsserver.js"); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +"use strict"; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); + +// src/typescript/typescript.ts +var typescript_exports = {}; +__reExport(typescript_exports, require("./typescript.js")); + +// src/tsserver/common.ts +function getLogLevel(level) { + if (level) { + const l = level.toLowerCase(); + for (const name in typescript_exports.server.LogLevel) { + if (isNaN(+name) && l === name.toLowerCase()) { + return typescript_exports.server.LogLevel[name]; + } + } + } + return void 0; +} + +// src/tsserver/nodeServer.ts +function parseLoggingEnvironmentString(logEnvStr) { + if (!logEnvStr) { + return {}; + } + const logEnv = { logToFile: true }; + const args = logEnvStr.split(" "); + const len = args.length - 1; + for (let i = 0; i < len; i += 2) { + const option = args[i]; + const { value, extraPartCounter } = getEntireValue(i + 1); + i += extraPartCounter; + if (option && value) { + switch (option) { + case "-file": + logEnv.file = value; + break; + case "-level": + const level = getLogLevel(value); + logEnv.detailLevel = level !== void 0 ? level : typescript_exports.server.LogLevel.normal; + break; + case "-traceToConsole": + logEnv.traceToConsole = value.toLowerCase() === "true"; + break; + case "-logToFile": + logEnv.logToFile = value.toLowerCase() === "true"; + break; + } + } + } + return logEnv; + function getEntireValue(initialIndex) { + let pathStart = args[initialIndex]; + let extraPartCounter = 0; + if (pathStart.charCodeAt(0) === typescript_exports.CharacterCodes.doubleQuote && pathStart.charCodeAt(pathStart.length - 1) !== typescript_exports.CharacterCodes.doubleQuote) { + for (let i = initialIndex + 1; i < args.length; i++) { + pathStart += " "; + pathStart += args[i]; + extraPartCounter++; + if (pathStart.charCodeAt(pathStart.length - 1) === typescript_exports.CharacterCodes.doubleQuote) break; + } + } + return { value: (0, typescript_exports.stripQuotes)(pathStart), extraPartCounter }; + } +} +function parseServerMode() { + const mode = typescript_exports.server.findArgument("--serverMode"); + if (!mode) return void 0; + switch (mode.toLowerCase()) { + case "semantic": + return typescript_exports.LanguageServiceMode.Semantic; + case "partialsemantic": + return typescript_exports.LanguageServiceMode.PartialSemantic; + case "syntactic": + return typescript_exports.LanguageServiceMode.Syntactic; + default: + return mode; + } +} +function initializeNodeSystem() { + const sys4 = typescript_exports.Debug.checkDefined(typescript_exports.sys); + const childProcess = require("child_process"); + const fs = require("fs"); + class Logger { + constructor(logFilename, traceToConsole, level) { + this.logFilename = logFilename; + this.traceToConsole = traceToConsole; + this.level = level; + this.seq = 0; + this.inGroup = false; + this.firstInGroup = true; + this.fd = -1; + if (this.logFilename) { + try { + this.fd = fs.openSync(this.logFilename, "w"); + } catch (_) { + } + } + } + static padStringRight(str, padding) { + return (str + padding).slice(0, padding.length); + } + close() { + if (this.fd >= 0) { + fs.close(this.fd, typescript_exports.noop); + } + } + getLogFileName() { + return this.logFilename; + } + perftrc(s) { + this.msg(s, typescript_exports.server.Msg.Perf); + } + info(s) { + this.msg(s, typescript_exports.server.Msg.Info); + } + err(s) { + this.msg(s, typescript_exports.server.Msg.Err); + } + startGroup() { + this.inGroup = true; + this.firstInGroup = true; + } + endGroup() { + this.inGroup = false; + } + loggingEnabled() { + return !!this.logFilename || this.traceToConsole; + } + hasLevel(level) { + return this.loggingEnabled() && this.level >= level; + } + msg(s, type = typescript_exports.server.Msg.Err) { + var _a, _b, _c; + switch (type) { + case typescript_exports.server.Msg.Info: + (_a = typescript_exports.perfLogger) == null ? void 0 : _a.logInfoEvent(s); + break; + case typescript_exports.server.Msg.Perf: + (_b = typescript_exports.perfLogger) == null ? void 0 : _b.logPerfEvent(s); + break; + default: + (_c = typescript_exports.perfLogger) == null ? void 0 : _c.logErrEvent(s); + break; + } + if (!this.canWrite()) return; + s = `[${typescript_exports.server.nowString()}] ${s} +`; + if (!this.inGroup || this.firstInGroup) { + const prefix = Logger.padStringRight(type + " " + this.seq.toString(), " "); + s = prefix + s; + } + this.write(s, type); + if (!this.inGroup) { + this.seq++; + } + } + canWrite() { + return this.fd >= 0 || this.traceToConsole; + } + write(s, _type) { + if (this.fd >= 0) { + const buf = Buffer.from(s); + fs.writeSync( + this.fd, + buf, + 0, + buf.length, + /*position*/ + null + ); + } + if (this.traceToConsole) { + console.warn(s); + } + } + } + const libDirectory = (0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizePath)(sys4.getExecutingFilePath())); + const useWatchGuard = process.platform === "win32"; + const originalWatchDirectory = sys4.watchDirectory.bind(sys4); + const logger = createLogger(); + typescript_exports.Debug.loggingHost = { + log(level, s) { + switch (level) { + case typescript_exports.LogLevel.Error: + case typescript_exports.LogLevel.Warning: + return logger.msg(s, typescript_exports.server.Msg.Err); + case typescript_exports.LogLevel.Info: + case typescript_exports.LogLevel.Verbose: + return logger.msg(s, typescript_exports.server.Msg.Info); + } + } + }; + const pending = (0, typescript_exports.createQueue)(); + let canWrite = true; + if (useWatchGuard) { + const currentDrive = extractWatchDirectoryCacheKey( + sys4.resolvePath(sys4.getCurrentDirectory()), + /*currentDriveKey*/ + void 0 + ); + const statusCache = /* @__PURE__ */ new Map(); + sys4.watchDirectory = (path, callback, recursive, options) => { + const cacheKey = extractWatchDirectoryCacheKey(path, currentDrive); + let status = cacheKey && statusCache.get(cacheKey); + if (status === void 0) { + if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + logger.info(`${cacheKey} for path ${path} not found in cache...`); + } + try { + const args = [(0, typescript_exports.combinePaths)(libDirectory, "watchGuard.js"), path]; + if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + logger.info(`Starting ${process.execPath} with args:${typescript_exports.server.stringifyIndented(args)}`); + } + childProcess.execFileSync(process.execPath, args, { stdio: "ignore", env: { ELECTRON_RUN_AS_NODE: "1" } }); + status = true; + if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + logger.info(`WatchGuard for path ${path} returned: OK`); + } + } catch (e) { + status = false; + if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + logger.info(`WatchGuard for path ${path} returned: ${e.message}`); + } + } + if (cacheKey) { + statusCache.set(cacheKey, status); + } + } else if (logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + logger.info(`watchDirectory for ${path} uses cached drive information.`); + } + if (status) { + return watchDirectorySwallowingException(path, callback, recursive, options); + } else { + return typescript_exports.noopFileWatcher; + } + }; + } else { + sys4.watchDirectory = watchDirectorySwallowingException; + } + sys4.write = (s) => writeMessage(Buffer.from(s, "utf8")); + sys4.setTimeout = setTimeout; + sys4.clearTimeout = clearTimeout; + sys4.setImmediate = setImmediate; + sys4.clearImmediate = clearImmediate; + if (typeof global !== "undefined" && global.gc) { + sys4.gc = () => { + var _a; + return (_a = global.gc) == null ? void 0 : _a.call(global); + }; + } + let cancellationToken; + try { + const factory = require("./cancellationToken"); + cancellationToken = factory(sys4.args); + } catch (e) { + cancellationToken = typescript_exports.server.nullCancellationToken; + } + const localeStr = typescript_exports.server.findArgument("--locale"); + if (localeStr) { + (0, typescript_exports.validateLocaleAndSetLanguage)(localeStr, sys4); + } + const modeOrUnknown = parseServerMode(); + let serverMode; + let unknownServerMode; + if (modeOrUnknown !== void 0) { + if (typeof modeOrUnknown === "number") serverMode = modeOrUnknown; + else unknownServerMode = modeOrUnknown; + } + return { + args: process.argv, + logger, + cancellationToken, + serverMode, + unknownServerMode, + startSession: startNodeSession + }; + function createLogger() { + const cmdLineLogFileName = typescript_exports.server.findArgument("--logFile"); + const cmdLineVerbosity = getLogLevel(typescript_exports.server.findArgument("--logVerbosity")); + const envLogOptions = parseLoggingEnvironmentString(process.env.TSS_LOG); + const unsubstitutedLogFileName = cmdLineLogFileName ? (0, typescript_exports.stripQuotes)(cmdLineLogFileName) : envLogOptions.logToFile ? envLogOptions.file || libDirectory + "/.log" + process.pid.toString() : void 0; + const substitutedLogFileName = unsubstitutedLogFileName ? unsubstitutedLogFileName.replace("PID", process.pid.toString()) : void 0; + const logVerbosity = cmdLineVerbosity || envLogOptions.detailLevel; + return new Logger(substitutedLogFileName, envLogOptions.traceToConsole, logVerbosity); + } + function writeMessage(buf) { + if (!canWrite) { + pending.enqueue(buf); + } else { + canWrite = false; + process.stdout.write(buf, setCanWriteFlagAndWriteMessageIfNecessary); + } + } + function setCanWriteFlagAndWriteMessageIfNecessary() { + canWrite = true; + if (!pending.isEmpty()) { + writeMessage(pending.dequeue()); + } + } + function extractWatchDirectoryCacheKey(path, currentDriveKey) { + path = (0, typescript_exports.normalizeSlashes)(path); + if (isUNCPath(path)) { + const firstSlash = path.indexOf(typescript_exports.directorySeparator, 2); + return firstSlash !== -1 ? (0, typescript_exports.toFileNameLowerCase)(path.substring(0, firstSlash)) : path; + } + const rootLength = (0, typescript_exports.getRootLength)(path); + if (rootLength === 0) { + return currentDriveKey; + } + if (path.charCodeAt(1) === typescript_exports.CharacterCodes.colon && path.charCodeAt(2) === typescript_exports.CharacterCodes.slash) { + return (0, typescript_exports.toFileNameLowerCase)(path.charAt(0)); + } + if (path.charCodeAt(0) === typescript_exports.CharacterCodes.slash && path.charCodeAt(1) !== typescript_exports.CharacterCodes.slash) { + return currentDriveKey; + } + return void 0; + } + function isUNCPath(s) { + return s.length > 2 && s.charCodeAt(0) === typescript_exports.CharacterCodes.slash && s.charCodeAt(1) === typescript_exports.CharacterCodes.slash; + } + function watchDirectorySwallowingException(path, callback, recursive, options) { + try { + return originalWatchDirectory(path, callback, recursive, options); + } catch (e) { + logger.info(`Exception when creating directory watcher: ${e.message}`); + return typescript_exports.noopFileWatcher; + } + } +} +function parseEventPort(eventPortStr) { + const eventPort = eventPortStr === void 0 ? void 0 : parseInt(eventPortStr); + return eventPort !== void 0 && !isNaN(eventPort) ? eventPort : void 0; +} +function startNodeSession(options, logger, cancellationToken) { + const childProcess = require("child_process"); + const os = require("os"); + const net = require("net"); + const readline = require("readline"); + const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout, + terminal: false + }); + const _NodeTypingsInstallerAdapter = class _NodeTypingsInstallerAdapter extends typescript_exports.server.TypingsInstallerAdapter { + constructor(telemetryEnabled2, logger2, host, globalTypingsCacheLocation, typingSafeListLocation2, typesMapLocation2, npmLocation2, validateDefaultNpmLocation2, event) { + super( + telemetryEnabled2, + logger2, + host, + globalTypingsCacheLocation, + event, + _NodeTypingsInstallerAdapter.maxActiveRequestCount + ); + this.typingSafeListLocation = typingSafeListLocation2; + this.typesMapLocation = typesMapLocation2; + this.npmLocation = npmLocation2; + this.validateDefaultNpmLocation = validateDefaultNpmLocation2; + } + createInstallerProcess() { + if (this.logger.hasLevel(typescript_exports.server.LogLevel.requestTime)) { + this.logger.info("Binding..."); + } + const args = [typescript_exports.server.Arguments.GlobalCacheLocation, this.globalTypingsCacheLocation]; + if (this.telemetryEnabled) { + args.push(typescript_exports.server.Arguments.EnableTelemetry); + } + if (this.logger.loggingEnabled() && this.logger.getLogFileName()) { + args.push(typescript_exports.server.Arguments.LogFile, (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizeSlashes)(this.logger.getLogFileName())), `ti-${process.pid}.log`)); + } + if (this.typingSafeListLocation) { + args.push(typescript_exports.server.Arguments.TypingSafeListLocation, this.typingSafeListLocation); + } + if (this.typesMapLocation) { + args.push(typescript_exports.server.Arguments.TypesMapLocation, this.typesMapLocation); + } + if (this.npmLocation) { + args.push(typescript_exports.server.Arguments.NpmLocation, this.npmLocation); + } + if (this.validateDefaultNpmLocation) { + args.push(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); + } + const execArgv = []; + for (const arg of process.execArgv) { + const match = /^--((?:debug|inspect)(?:-brk)?)(?:=(\d+))?$/.exec(arg); + if (match) { + const currentPort = match[2] !== void 0 ? +match[2] : match[1].charAt(0) === "d" ? 5858 : 9229; + execArgv.push(`--${match[1]}=${currentPort + 1}`); + break; + } + } + const typingsInstaller = (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)(typescript_exports.sys.getExecutingFilePath()), "typingsInstaller.js"); + this.installer = childProcess.fork(typingsInstaller, args, { execArgv }); + this.installer.on("message", (m) => this.handleMessage(m)); + this.host.setImmediate(() => this.event({ pid: this.installer.pid }, "typingsInstallerPid")); + process.on("exit", () => { + this.installer.kill(); + }); + return this.installer; + } + }; + // This number is essentially arbitrary. Processing more than one typings request + // at a time makes sense, but having too many in the pipe results in a hang + // (see https://github.com/nodejs/node/issues/7657). + // It would be preferable to base our limit on the amount of space left in the + // buffer, but we have yet to find a way to retrieve that value. + _NodeTypingsInstallerAdapter.maxActiveRequestCount = 10; + let NodeTypingsInstallerAdapter = _NodeTypingsInstallerAdapter; + class IOSession extends typescript_exports.server.Session { + constructor() { + const event = (body, eventName) => { + this.event(body, eventName); + }; + const host = typescript_exports.sys; + const typingsInstaller = disableAutomaticTypingAcquisition ? void 0 : new NodeTypingsInstallerAdapter(telemetryEnabled, logger, host, getGlobalTypingsCacheLocation(), typingSafeListLocation, typesMapLocation, npmLocation, validateDefaultNpmLocation, event); + super({ + host, + cancellationToken, + ...options, + typingsInstaller, + byteLength: Buffer.byteLength, + hrtime: process.hrtime, + logger, + canUseEvents: true, + typesMapLocation + }); + this.eventPort = eventPort; + if (this.canUseEvents && this.eventPort) { + const s = net.connect({ port: this.eventPort }, () => { + this.eventSocket = s; + if (this.socketEventQueue) { + for (const event2 of this.socketEventQueue) { + this.writeToEventSocket(event2.body, event2.eventName); + } + this.socketEventQueue = void 0; + } + }); + } + this.constructed = true; + } + event(body, eventName) { + typescript_exports.Debug.assert(!!this.constructed, "Should only call `IOSession.prototype.event` on an initialized IOSession"); + if (this.canUseEvents && this.eventPort) { + if (!this.eventSocket) { + if (this.logger.hasLevel(typescript_exports.server.LogLevel.verbose)) { + this.logger.info(`eventPort: event "${eventName}" queued, but socket not yet initialized`); + } + (this.socketEventQueue || (this.socketEventQueue = [])).push({ body, eventName }); + return; + } else { + typescript_exports.Debug.assert(this.socketEventQueue === void 0); + this.writeToEventSocket(body, eventName); + } + } else { + super.event(body, eventName); + } + } + writeToEventSocket(body, eventName) { + this.eventSocket.write(typescript_exports.server.formatMessage(typescript_exports.server.toEvent(eventName, body), this.logger, this.byteLength, this.host.newLine), "utf8"); + } + exit() { + var _a; + this.logger.info("Exiting..."); + this.projectService.closeLog(); + (_a = typescript_exports.tracing) == null ? void 0 : _a.stopTracing(); + process.exit(0); + } + listen() { + rl.on("line", (input) => { + const message = input.trim(); + this.onMessage(message); + }); + rl.on("close", () => { + this.exit(); + }); + } + } + class IpcIOSession extends IOSession { + writeMessage(msg) { + const verboseLogging = logger.hasLevel(typescript_exports.server.LogLevel.verbose); + if (verboseLogging) { + const json = JSON.stringify(msg); + logger.info(`${msg.type}:${typescript_exports.server.indent(json)}`); + } + process.send(msg); + } + parseMessage(message) { + return message; + } + toStringMessage(message) { + return JSON.stringify(message, void 0, 2); + } + listen() { + process.on("message", (e) => { + this.onMessage(e); + }); + process.on("disconnect", () => { + this.exit(); + }); + } + } + const eventPort = parseEventPort(typescript_exports.server.findArgument("--eventPort")); + const typingSafeListLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypingSafeListLocation); + const typesMapLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypesMapLocation) || (0, typescript_exports.combinePaths)((0, typescript_exports.getDirectoryPath)(typescript_exports.sys.getExecutingFilePath()), "typesMap.json"); + const npmLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.NpmLocation); + const validateDefaultNpmLocation = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); + const disableAutomaticTypingAcquisition = typescript_exports.server.hasArgument("--disableAutomaticTypingAcquisition"); + const useNodeIpc = typescript_exports.server.hasArgument("--useNodeIpc"); + const telemetryEnabled = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.EnableTelemetry); + const commandLineTraceDir = typescript_exports.server.findArgument("--traceDirectory"); + const traceDir = commandLineTraceDir ? (0, typescript_exports.stripQuotes)(commandLineTraceDir) : process.env.TSS_TRACE; + if (traceDir) { + (0, typescript_exports.startTracing)("server", traceDir); + } + const ioSession = useNodeIpc ? new IpcIOSession() : new IOSession(); + process.on("uncaughtException", (err) => { + ioSession.logError(err, "unknown"); + }); + process.noAsar = true; + ioSession.listen(); + function getGlobalTypingsCacheLocation() { + switch (process.platform) { + case "win32": { + const basePath = process.env.LOCALAPPDATA || process.env.APPDATA || os.homedir && os.homedir() || process.env.USERPROFILE || process.env.HOMEDRIVE && process.env.HOMEPATH && (0, typescript_exports.normalizeSlashes)(process.env.HOMEDRIVE + process.env.HOMEPATH) || os.tmpdir(); + return (0, typescript_exports.combinePaths)((0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(basePath), "Microsoft/TypeScript"), typescript_exports.versionMajorMinor); + } + case "openbsd": + case "freebsd": + case "netbsd": + case "darwin": + case "linux": + case "android": { + const cacheLocation = getNonWindowsCacheLocation(process.platform === "darwin"); + return (0, typescript_exports.combinePaths)((0, typescript_exports.combinePaths)(cacheLocation, "typescript"), typescript_exports.versionMajorMinor); + } + default: + return typescript_exports.Debug.fail(`unsupported platform '${process.platform}'`); + } + } + function getNonWindowsCacheLocation(platformIsDarwin) { + if (process.env.XDG_CACHE_HOME) { + return process.env.XDG_CACHE_HOME; + } + const usersDir = platformIsDarwin ? "Users" : "home"; + const homePath = os.homedir && os.homedir() || process.env.HOME || (process.env.LOGNAME || process.env.USER) && `/${usersDir}/${process.env.LOGNAME || process.env.USER}` || os.tmpdir(); + const cacheFolder = platformIsDarwin ? "Library/Caches" : ".cache"; + return (0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(homePath), cacheFolder); + } +} + +// src/tsserver/server.ts +function findArgumentStringArray(argName) { + const arg = typescript_exports.server.findArgument(argName); + if (arg === void 0) { + return typescript_exports.emptyArray; + } + return arg.split(",").filter((name) => name !== ""); +} +function start({ args, logger, cancellationToken, serverMode, unknownServerMode, startSession: startServer }, platform) { + logger.info(`Starting TS Server`); + logger.info(`Version: ${typescript_exports.version}`); + logger.info(`Arguments: ${args.join(" ")}`); + logger.info(`Platform: ${platform} NodeVersion: ${process.version} CaseSensitive: ${typescript_exports.sys.useCaseSensitiveFileNames}`); + logger.info(`ServerMode: ${serverMode} hasUnknownServerMode: ${unknownServerMode}`); + typescript_exports.setStackTraceLimit(); + if (typescript_exports.Debug.isDebugging) { + typescript_exports.Debug.enableDebugInfo(); + } + if (typescript_exports.sys.tryEnableSourceMapsForHost && /^development$/i.test(typescript_exports.sys.getEnvironmentVariable("NODE_ENV"))) { + typescript_exports.sys.tryEnableSourceMapsForHost(); + } + console.log = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Info); + console.warn = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Err); + console.error = (...args2) => logger.msg(args2.length === 1 ? args2[0] : args2.join(", "), typescript_exports.server.Msg.Err); + startServer( + { + globalPlugins: findArgumentStringArray("--globalPlugins"), + pluginProbeLocations: findArgumentStringArray("--pluginProbeLocations"), + allowLocalPluginLoads: typescript_exports.server.hasArgument("--allowLocalPluginLoads"), + useSingleInferredProject: typescript_exports.server.hasArgument("--useSingleInferredProject"), + useInferredProjectPerProjectRoot: typescript_exports.server.hasArgument("--useInferredProjectPerProjectRoot"), + suppressDiagnosticEvents: typescript_exports.server.hasArgument("--suppressDiagnosticEvents"), + noGetErrOnBackgroundUpdate: typescript_exports.server.hasArgument("--noGetErrOnBackgroundUpdate"), + canUseWatchEvents: typescript_exports.server.hasArgument("--canUseWatchEvents"), + serverMode + }, + logger, + cancellationToken + ); +} +typescript_exports.setStackTraceLimit(); +start(initializeNodeSystem(), require("os").platform()); +//# sourceMappingURL=tsserver.js.map diff --git a/node_modules/typescript/lib/typesMap.json b/node_modules/typescript/lib/typesMap.json index fbad5a9b1..6c95ae9c4 100644 --- a/node_modules/typescript/lib/typesMap.json +++ b/node_modules/typescript/lib/typesMap.json @@ -1,497 +1,497 @@ -{ - "typesMap": { - "jquery": { - "match": "jquery(-(\\.?\\d+)+)?(\\.intellisense)?(\\.min)?\\.js$", - "types": ["jquery"] - }, - "WinJS": { - "match": "^(.*\\/winjs-[.\\d]+)\\/js\\/base\\.js$", - "exclude": [["^", 1, "/.*"]], - "types": ["winjs"] - }, - "Kendo": { - "match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$", - "exclude": [["^", 1, "/.*"]], - "types": ["kendo-ui"] - }, - "Office Nuget": { - "match": "^(.*\\/office\\/1)\\/excel-\\d+\\.debug\\.js$", - "exclude": [["^", 1, "/.*"]], - "types": ["office"] - }, - "References": { - "match": "^(.*\\/_references\\.js)$", - "exclude": [["^", 1, "$"]] - }, - "Datatables.net": { - "match": "^.*\\/(jquery\\.)?dataTables(\\.all)?(\\.min)?\\.js$", - "types": ["datatables.net"] - }, - "Ace": { - "match": "^(.*)\\/ace.js", - "exclude": [["^", 1, "/.*"]], - "types": ["ace"] - } - }, - "simpleMap": { - "accounting": "accounting", - "ace.js": "ace", - "ag-grid": "ag-grid", - "alertify": "alertify", - "alt": "alt", - "amcharts.js": "amcharts", - "amplify": "amplifyjs", - "angular": "angular", - "angular-bootstrap-lightbox": "angular-bootstrap-lightbox", - "angular-cookie": "angular-cookie", - "angular-file-upload": "angular-file-upload", - "angularfire": "angularfire", - "angular-gettext": "angular-gettext", - "angular-google-analytics": "angular-google-analytics", - "angular-local-storage": "angular-local-storage", - "angularLocalStorage": "angularLocalStorage", - "angular-scroll": "angular-scroll", - "angular-spinner": "angular-spinner", - "angular-strap": "angular-strap", - "angulartics": "angulartics", - "angular-toastr": "angular-toastr", - "angular-translate": "angular-translate", - "angular-ui-router": "angular-ui-router", - "angular-ui-tree": "angular-ui-tree", - "angular-wizard": "angular-wizard", - "async": "async", - "atmosphere": "atmosphere", - "aws-sdk": "aws-sdk", - "aws-sdk-js": "aws-sdk", - "axios": "axios", - "backbone": "backbone", - "backbone.layoutmanager": "backbone.layoutmanager", - "backbone.paginator": "backbone.paginator", - "backbone.radio": "backbone.radio", - "backbone-associations": "backbone-associations", - "backbone-relational": "backbone-relational", - "backgrid": "backgrid", - "Bacon": "baconjs", - "benchmark": "benchmark", - "blazy": "blazy", - "bliss": "blissfuljs", - "bluebird": "bluebird", - "body-parser": "body-parser", - "bootbox": "bootbox", - "bootstrap": "bootstrap", - "bootstrap-editable": "x-editable", - "bootstrap-maxlength": "bootstrap-maxlength", - "bootstrap-notify": "bootstrap-notify", - "bootstrap-slider": "bootstrap-slider", - "bootstrap-switch": "bootstrap-switch", - "bowser": "bowser", - "breeze": "breeze", - "browserify": "browserify", - "bson": "bson", - "c3": "c3", - "canvasjs": "canvasjs", - "chai": "chai", - "chalk": "chalk", - "chance": "chance", - "chartist": "chartist", - "cheerio": "cheerio", - "chokidar": "chokidar", - "chosen.jquery": "chosen", - "chroma": "chroma-js", - "ckeditor.js": "ckeditor", - "cli-color": "cli-color", - "clipboard": "clipboard", - "codemirror": "codemirror", - "colors": "colors", - "commander": "commander", - "commonmark": "commonmark", - "compression": "compression", - "confidence": "confidence", - "connect": "connect", - "Control.FullScreen": "leaflet.fullscreen", - "cookie": "cookie", - "cookie-parser": "cookie-parser", - "cookies": "cookies", - "core": "core-js", - "core-js": "core-js", - "crossfilter": "crossfilter", - "crossroads": "crossroads", - "css": "css", - "ct-ui-router-extras": "ui-router-extras", - "d3": "d3", - "dagre-d3": "dagre-d3", - "dat.gui": "dat-gui", - "debug": "debug", - "deep-diff": "deep-diff", - "Dexie": "dexie", - "dialogs": "angular-dialog-service", - "dojo.js": "dojo", - "doT": "dot", - "dragula": "dragula", - "drop": "drop", - "dropbox": "dropboxjs", - "dropzone": "dropzone", - "Dts Name": "Dts Name", - "dust-core": "dustjs-linkedin", - "easeljs": "easeljs", - "ejs": "ejs", - "ember": "ember", - "envify": "envify", - "epiceditor": "epiceditor", - "es6-promise": "es6-promise", - "ES6-Promise": "es6-promise", - "es6-shim": "es6-shim", - "expect": "expect", - "express": "express", - "express-session": "express-session", - "ext-all.js": "extjs", - "extend": "extend", - "fabric": "fabricjs", - "faker": "faker", - "fastclick": "fastclick", - "favico": "favico.js", - "featherlight": "featherlight", - "FileSaver": "FileSaver", - "fingerprint": "fingerprintjs", - "fixed-data-table": "fixed-data-table", - "flickity.pkgd": "flickity", - "flight": "flight", - "flow": "flowjs", - "Flux": "flux", - "formly": "angular-formly", - "foundation": "foundation", - "fpsmeter": "fpsmeter", - "fuse": "fuse", - "generator": "yeoman-generator", - "gl-matrix": "gl-matrix", - "globalize": "globalize", - "graceful-fs": "graceful-fs", - "gridstack": "gridstack", - "gulp": "gulp", - "gulp-rename": "gulp-rename", - "gulp-uglify": "gulp-uglify", - "gulp-util": "gulp-util", - "hammer": "hammerjs", - "handlebars": "handlebars", - "hasher": "hasher", - "he": "he", - "hello.all": "hellojs", - "highcharts.js": "highcharts", - "highlight": "highlightjs", - "history": "history", - "History": "history", - "hopscotch": "hopscotch", - "hotkeys": "angular-hotkeys", - "html2canvas": "html2canvas", - "humane": "humane", - "i18next": "i18next", - "icheck": "icheck", - "impress": "impress", - "incremental-dom": "incremental-dom", - "Inquirer": "inquirer", - "insight": "insight", - "interact": "interactjs", - "intercom": "intercomjs", - "intro": "intro.js", - "ion.rangeSlider": "ion.rangeSlider", - "ionic": "ionic", - "is": "is_js", - "iscroll": "iscroll", - "jade": "jade", - "jasmine": "jasmine", - "joint": "jointjs", - "jquery": "jquery", - "jquery.address": "jquery.address", - "jquery.are-you-sure": "jquery.are-you-sure", - "jquery.blockUI": "jquery.blockUI", - "jquery.bootstrap.wizard": "jquery.bootstrap.wizard", - "jquery.bootstrap-touchspin": "bootstrap-touchspin", - "jquery.color": "jquery.color", - "jquery.colorbox": "jquery.colorbox", - "jquery.contextMenu": "jquery.contextMenu", - "jquery.cookie": "jquery.cookie", - "jquery.customSelect": "jquery.customSelect", - "jquery.cycle.all": "jquery.cycle", - "jquery.cycle2": "jquery.cycle2", - "jquery.dataTables": "jquery.dataTables", - "jquery.dropotron": "jquery.dropotron", - "jquery.fancybox.pack.js": "fancybox", - "jquery.fancytree-all": "jquery.fancytree", - "jquery.fileupload": "jquery.fileupload", - "jquery.flot": "flot", - "jquery.form": "jquery.form", - "jquery.gridster": "jquery.gridster", - "jquery.handsontable.full": "jquery-handsontable", - "jquery.joyride": "jquery.joyride", - "jquery.jqGrid": "jqgrid", - "jquery.mmenu": "jquery.mmenu", - "jquery.mockjax": "jquery-mockjax", - "jquery.noty": "jquery.noty", - "jquery.payment": "jquery.payment", - "jquery.pjax": "jquery.pjax", - "jquery.placeholder": "jquery.placeholder", - "jquery.qrcode": "jquery.qrcode", - "jquery.qtip": "qtip2", - "jquery.raty": "raty", - "jquery.scrollTo": "jquery.scrollTo", - "jquery.signalR": "signalr", - "jquery.simplemodal": "jquery.simplemodal", - "jquery.timeago": "jquery.timeago", - "jquery.tinyscrollbar": "jquery.tinyscrollbar", - "jquery.tipsy": "jquery.tipsy", - "jquery.tooltipster": "tooltipster", - "jquery.transit": "jquery.transit", - "jquery.uniform": "jquery.uniform", - "jquery.watch": "watch", - "jquery-sortable": "jquery-sortable", - "jquery-ui": "jqueryui", - "js.cookie": "js-cookie", - "js-data": "js-data", - "js-data-angular": "js-data-angular", - "js-data-http": "js-data-http", - "jsdom": "jsdom", - "jsnlog": "jsnlog", - "json5": "json5", - "jspdf": "jspdf", - "jsrender": "jsrender", - "js-signals": "js-signals", - "jstorage": "jstorage", - "jstree": "jstree", - "js-yaml": "js-yaml", - "jszip": "jszip", - "katex": "katex", - "kefir": "kefir", - "keymaster": "keymaster", - "keypress": "keypress", - "kinetic": "kineticjs", - "knockback": "knockback", - "knockout": "knockout", - "knockout.mapping": "knockout.mapping", - "knockout.validation": "knockout.validation", - "knockout-paging": "knockout-paging", - "knockout-pre-rendered": "knockout-pre-rendered", - "ladda": "ladda", - "later": "later", - "lazy": "lazy.js", - "Leaflet.Editable": "leaflet-editable", - "leaflet.js": "leaflet", - "less": "less", - "linq": "linq", - "loading-bar": "angular-loading-bar", - "lodash": "lodash", - "log4javascript": "log4javascript", - "loglevel": "loglevel", - "lokijs": "lokijs", - "lovefield": "lovefield", - "lunr": "lunr", - "lz-string": "lz-string", - "mailcheck": "mailcheck", - "maquette": "maquette", - "marked": "marked", - "math": "mathjs", - "MathJax.js": "mathjax", - "matter": "matter-js", - "md5": "blueimp-md5", - "md5.js": "crypto-js", - "messenger": "messenger", - "method-override": "method-override", - "minimatch": "minimatch", - "minimist": "minimist", - "mithril": "mithril", - "mobile-detect": "mobile-detect", - "mocha": "mocha", - "mock-ajax": "jasmine-ajax", - "modernizr": "modernizr", - "Modernizr": "Modernizr", - "moment": "moment", - "moment-range": "moment-range", - "moment-timezone": "moment-timezone", - "mongoose": "mongoose", - "morgan": "morgan", - "mousetrap": "mousetrap", - "ms": "ms", - "mustache": "mustache", - "native.history": "history", - "nconf": "nconf", - "ncp": "ncp", - "nedb": "nedb", - "ng-cordova": "ng-cordova", - "ngDialog": "ng-dialog", - "ng-flow-standalone": "ng-flow", - "ng-grid": "ng-grid", - "ng-i18next": "ng-i18next", - "ng-table": "ng-table", - "node_redis": "redis", - "node-clone": "clone", - "node-fs-extra": "fs-extra", - "node-glob": "glob", - "Nodemailer": "nodemailer", - "node-mime": "mime", - "node-mkdirp": "mkdirp", - "node-mongodb-native": "mongodb", - "node-mysql": "mysql", - "node-open": "open", - "node-optimist": "optimist", - "node-progress": "progress", - "node-semver": "semver", - "node-tar": "tar", - "node-uuid": "node-uuid", - "node-xml2js": "xml2js", - "nopt": "nopt", - "notify": "notify", - "nouislider": "nouislider", - "npm": "npm", - "nprogress": "nprogress", - "numbro": "numbro", - "numeral": "numeraljs", - "nunjucks": "nunjucks", - "nv.d3": "nvd3", - "object-assign": "object-assign", - "oboe-browser": "oboe", - "office": "office-js", - "offline": "offline-js", - "onsenui": "onsenui", - "OpenLayers.js": "openlayers", - "openpgp": "openpgp", - "p2": "p2", - "packery.pkgd": "packery", - "page": "page", - "pako": "pako", - "papaparse": "papaparse", - "passport": "passport", - "passport-local": "passport-local", - "path": "pathjs", - "pdfkit": "pdfkit", - "peer": "peerjs", - "peg": "pegjs", - "photoswipe": "photoswipe", - "picker.js": "pickadate", - "pikaday": "pikaday", - "pixi": "pixi.js", - "platform": "platform", - "Please": "pleasejs", - "plottable": "plottable", - "polymer": "polymer", - "postal": "postal", - "preloadjs": "preloadjs", - "progress": "progress", - "purify": "dompurify", - "purl": "purl", - "q": "q", - "qs": "qs", - "qunit": "qunit", - "ractive": "ractive", - "rangy-core": "rangy", - "raphael": "raphael", - "raven": "ravenjs", - "react": "react", - "react-bootstrap": "react-bootstrap", - "react-intl": "react-intl", - "react-redux": "react-redux", - "ReactRouter": "react-router", - "ready": "domready", - "redux": "redux", - "request": "request", - "require": "require", - "restangular": "restangular", - "reveal": "reveal", - "rickshaw": "rickshaw", - "rimraf": "rimraf", - "rivets": "rivets", - "rx": "rx", - "rx.angular": "rx-angular", - "sammy": "sammyjs", - "SAT": "sat", - "sax-js": "sax", - "screenfull": "screenfull", - "seedrandom": "seedrandom", - "select2": "select2", - "selectize": "selectize", - "serve-favicon": "serve-favicon", - "serve-static": "serve-static", - "shelljs": "shelljs", - "should": "should", - "showdown": "showdown", - "sigma": "sigmajs", - "signature_pad": "signature_pad", - "sinon": "sinon", - "sjcl": "sjcl", - "slick": "slick-carousel", - "smoothie": "smoothie", - "socket.io": "socket.io", - "socket.io-client": "socket.io-client", - "sockjs": "sockjs-client", - "sortable": "angular-ui-sortable", - "soundjs": "soundjs", - "source-map": "source-map", - "spectrum": "spectrum", - "spin": "spin", - "sprintf": "sprintf", - "stampit": "stampit", - "state-machine": "state-machine", - "Stats": "stats", - "store": "storejs", - "string": "string", - "string_score": "string_score", - "strophe": "strophe", - "stylus": "stylus", - "sugar": "sugar", - "superagent": "superagent", - "svg": "svgjs", - "svg-injector": "svg-injector", - "swfobject": "swfobject", - "swig": "swig", - "swipe": "swipe", - "swiper": "swiper", - "system.js": "systemjs", - "tether": "tether", - "three": "threejs", - "through": "through", - "through2": "through2", - "timeline": "timelinejs", - "tinycolor": "tinycolor", - "tmhDynamicLocale": "angular-dynamic-locale", - "toaster": "angularjs-toaster", - "toastr": "toastr", - "tracking": "tracking", - "trunk8": "trunk8", - "turf": "turf", - "tweenjs": "tweenjs", - "TweenMax": "gsap", - "twig": "twig", - "twix": "twix", - "typeahead.bundle": "typeahead", - "typescript": "typescript", - "ui": "winjs", - "ui-bootstrap-tpls": "angular-ui-bootstrap", - "ui-grid": "ui-grid", - "uikit": "uikit", - "underscore": "underscore", - "underscore.string": "underscore.string", - "update-notifier": "update-notifier", - "url": "jsurl", - "UUID": "uuid", - "validator": "validator", - "vega": "vega", - "vex": "vex-js", - "video": "videojs", - "vue": "vue", - "vue-router": "vue-router", - "webtorrent": "webtorrent", - "when": "when", - "winston": "winston", - "wrench-js": "wrench", - "ws": "ws", - "xlsx": "xlsx", - "xml2json": "x2js", - "xmlbuilder-js": "xmlbuilder", - "xregexp": "xregexp", - "yargs": "yargs", - "yosay": "yosay", - "yui": "yui", - "yui3": "yui", - "zepto": "zepto", - "ZeroClipboard": "zeroclipboard", - "ZSchema-browser": "z-schema" - } -} +{ + "typesMap": { + "jquery": { + "match": "jquery(-(\\.?\\d+)+)?(\\.intellisense)?(\\.min)?\\.js$", + "types": ["jquery"] + }, + "WinJS": { + "match": "^(.*\\/winjs-[.\\d]+)\\/js\\/base\\.js$", + "exclude": [["^", 1, "/.*"]], + "types": ["winjs"] + }, + "Kendo": { + "match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$", + "exclude": [["^", 1, "/.*"]], + "types": ["kendo-ui"] + }, + "Office Nuget": { + "match": "^(.*\\/office\\/1)\\/excel-\\d+\\.debug\\.js$", + "exclude": [["^", 1, "/.*"]], + "types": ["office"] + }, + "References": { + "match": "^(.*\\/_references\\.js)$", + "exclude": [["^", 1, "$"]] + }, + "Datatables.net": { + "match": "^.*\\/(jquery\\.)?dataTables(\\.all)?(\\.min)?\\.js$", + "types": ["datatables.net"] + }, + "Ace": { + "match": "^(.*)\\/ace.js", + "exclude": [["^", 1, "/.*"]], + "types": ["ace"] + } + }, + "simpleMap": { + "accounting": "accounting", + "ace.js": "ace", + "ag-grid": "ag-grid", + "alertify": "alertify", + "alt": "alt", + "amcharts.js": "amcharts", + "amplify": "amplifyjs", + "angular": "angular", + "angular-bootstrap-lightbox": "angular-bootstrap-lightbox", + "angular-cookie": "angular-cookie", + "angular-file-upload": "angular-file-upload", + "angularfire": "angularfire", + "angular-gettext": "angular-gettext", + "angular-google-analytics": "angular-google-analytics", + "angular-local-storage": "angular-local-storage", + "angularLocalStorage": "angularLocalStorage", + "angular-scroll": "angular-scroll", + "angular-spinner": "angular-spinner", + "angular-strap": "angular-strap", + "angulartics": "angulartics", + "angular-toastr": "angular-toastr", + "angular-translate": "angular-translate", + "angular-ui-router": "angular-ui-router", + "angular-ui-tree": "angular-ui-tree", + "angular-wizard": "angular-wizard", + "async": "async", + "atmosphere": "atmosphere", + "aws-sdk": "aws-sdk", + "aws-sdk-js": "aws-sdk", + "axios": "axios", + "backbone": "backbone", + "backbone.layoutmanager": "backbone.layoutmanager", + "backbone.paginator": "backbone.paginator", + "backbone.radio": "backbone.radio", + "backbone-associations": "backbone-associations", + "backbone-relational": "backbone-relational", + "backgrid": "backgrid", + "Bacon": "baconjs", + "benchmark": "benchmark", + "blazy": "blazy", + "bliss": "blissfuljs", + "bluebird": "bluebird", + "body-parser": "body-parser", + "bootbox": "bootbox", + "bootstrap": "bootstrap", + "bootstrap-editable": "x-editable", + "bootstrap-maxlength": "bootstrap-maxlength", + "bootstrap-notify": "bootstrap-notify", + "bootstrap-slider": "bootstrap-slider", + "bootstrap-switch": "bootstrap-switch", + "bowser": "bowser", + "breeze": "breeze", + "browserify": "browserify", + "bson": "bson", + "c3": "c3", + "canvasjs": "canvasjs", + "chai": "chai", + "chalk": "chalk", + "chance": "chance", + "chartist": "chartist", + "cheerio": "cheerio", + "chokidar": "chokidar", + "chosen.jquery": "chosen", + "chroma": "chroma-js", + "ckeditor.js": "ckeditor", + "cli-color": "cli-color", + "clipboard": "clipboard", + "codemirror": "codemirror", + "colors": "colors", + "commander": "commander", + "commonmark": "commonmark", + "compression": "compression", + "confidence": "confidence", + "connect": "connect", + "Control.FullScreen": "leaflet.fullscreen", + "cookie": "cookie", + "cookie-parser": "cookie-parser", + "cookies": "cookies", + "core": "core-js", + "core-js": "core-js", + "crossfilter": "crossfilter", + "crossroads": "crossroads", + "css": "css", + "ct-ui-router-extras": "ui-router-extras", + "d3": "d3", + "dagre-d3": "dagre-d3", + "dat.gui": "dat-gui", + "debug": "debug", + "deep-diff": "deep-diff", + "Dexie": "dexie", + "dialogs": "angular-dialog-service", + "dojo.js": "dojo", + "doT": "dot", + "dragula": "dragula", + "drop": "drop", + "dropbox": "dropboxjs", + "dropzone": "dropzone", + "Dts Name": "Dts Name", + "dust-core": "dustjs-linkedin", + "easeljs": "easeljs", + "ejs": "ejs", + "ember": "ember", + "envify": "envify", + "epiceditor": "epiceditor", + "es6-promise": "es6-promise", + "ES6-Promise": "es6-promise", + "es6-shim": "es6-shim", + "expect": "expect", + "express": "express", + "express-session": "express-session", + "ext-all.js": "extjs", + "extend": "extend", + "fabric": "fabricjs", + "faker": "faker", + "fastclick": "fastclick", + "favico": "favico.js", + "featherlight": "featherlight", + "FileSaver": "FileSaver", + "fingerprint": "fingerprintjs", + "fixed-data-table": "fixed-data-table", + "flickity.pkgd": "flickity", + "flight": "flight", + "flow": "flowjs", + "Flux": "flux", + "formly": "angular-formly", + "foundation": "foundation", + "fpsmeter": "fpsmeter", + "fuse": "fuse", + "generator": "yeoman-generator", + "gl-matrix": "gl-matrix", + "globalize": "globalize", + "graceful-fs": "graceful-fs", + "gridstack": "gridstack", + "gulp": "gulp", + "gulp-rename": "gulp-rename", + "gulp-uglify": "gulp-uglify", + "gulp-util": "gulp-util", + "hammer": "hammerjs", + "handlebars": "handlebars", + "hasher": "hasher", + "he": "he", + "hello.all": "hellojs", + "highcharts.js": "highcharts", + "highlight": "highlightjs", + "history": "history", + "History": "history", + "hopscotch": "hopscotch", + "hotkeys": "angular-hotkeys", + "html2canvas": "html2canvas", + "humane": "humane", + "i18next": "i18next", + "icheck": "icheck", + "impress": "impress", + "incremental-dom": "incremental-dom", + "Inquirer": "inquirer", + "insight": "insight", + "interact": "interactjs", + "intercom": "intercomjs", + "intro": "intro.js", + "ion.rangeSlider": "ion.rangeSlider", + "ionic": "ionic", + "is": "is_js", + "iscroll": "iscroll", + "jade": "jade", + "jasmine": "jasmine", + "joint": "jointjs", + "jquery": "jquery", + "jquery.address": "jquery.address", + "jquery.are-you-sure": "jquery.are-you-sure", + "jquery.blockUI": "jquery.blockUI", + "jquery.bootstrap.wizard": "jquery.bootstrap.wizard", + "jquery.bootstrap-touchspin": "bootstrap-touchspin", + "jquery.color": "jquery.color", + "jquery.colorbox": "jquery.colorbox", + "jquery.contextMenu": "jquery.contextMenu", + "jquery.cookie": "jquery.cookie", + "jquery.customSelect": "jquery.customSelect", + "jquery.cycle.all": "jquery.cycle", + "jquery.cycle2": "jquery.cycle2", + "jquery.dataTables": "jquery.dataTables", + "jquery.dropotron": "jquery.dropotron", + "jquery.fancybox.pack.js": "fancybox", + "jquery.fancytree-all": "jquery.fancytree", + "jquery.fileupload": "jquery.fileupload", + "jquery.flot": "flot", + "jquery.form": "jquery.form", + "jquery.gridster": "jquery.gridster", + "jquery.handsontable.full": "jquery-handsontable", + "jquery.joyride": "jquery.joyride", + "jquery.jqGrid": "jqgrid", + "jquery.mmenu": "jquery.mmenu", + "jquery.mockjax": "jquery-mockjax", + "jquery.noty": "jquery.noty", + "jquery.payment": "jquery.payment", + "jquery.pjax": "jquery.pjax", + "jquery.placeholder": "jquery.placeholder", + "jquery.qrcode": "jquery.qrcode", + "jquery.qtip": "qtip2", + "jquery.raty": "raty", + "jquery.scrollTo": "jquery.scrollTo", + "jquery.signalR": "signalr", + "jquery.simplemodal": "jquery.simplemodal", + "jquery.timeago": "jquery.timeago", + "jquery.tinyscrollbar": "jquery.tinyscrollbar", + "jquery.tipsy": "jquery.tipsy", + "jquery.tooltipster": "tooltipster", + "jquery.transit": "jquery.transit", + "jquery.uniform": "jquery.uniform", + "jquery.watch": "watch", + "jquery-sortable": "jquery-sortable", + "jquery-ui": "jqueryui", + "js.cookie": "js-cookie", + "js-data": "js-data", + "js-data-angular": "js-data-angular", + "js-data-http": "js-data-http", + "jsdom": "jsdom", + "jsnlog": "jsnlog", + "json5": "json5", + "jspdf": "jspdf", + "jsrender": "jsrender", + "js-signals": "js-signals", + "jstorage": "jstorage", + "jstree": "jstree", + "js-yaml": "js-yaml", + "jszip": "jszip", + "katex": "katex", + "kefir": "kefir", + "keymaster": "keymaster", + "keypress": "keypress", + "kinetic": "kineticjs", + "knockback": "knockback", + "knockout": "knockout", + "knockout.mapping": "knockout.mapping", + "knockout.validation": "knockout.validation", + "knockout-paging": "knockout-paging", + "knockout-pre-rendered": "knockout-pre-rendered", + "ladda": "ladda", + "later": "later", + "lazy": "lazy.js", + "Leaflet.Editable": "leaflet-editable", + "leaflet.js": "leaflet", + "less": "less", + "linq": "linq", + "loading-bar": "angular-loading-bar", + "lodash": "lodash", + "log4javascript": "log4javascript", + "loglevel": "loglevel", + "lokijs": "lokijs", + "lovefield": "lovefield", + "lunr": "lunr", + "lz-string": "lz-string", + "mailcheck": "mailcheck", + "maquette": "maquette", + "marked": "marked", + "math": "mathjs", + "MathJax.js": "mathjax", + "matter": "matter-js", + "md5": "blueimp-md5", + "md5.js": "crypto-js", + "messenger": "messenger", + "method-override": "method-override", + "minimatch": "minimatch", + "minimist": "minimist", + "mithril": "mithril", + "mobile-detect": "mobile-detect", + "mocha": "mocha", + "mock-ajax": "jasmine-ajax", + "modernizr": "modernizr", + "Modernizr": "Modernizr", + "moment": "moment", + "moment-range": "moment-range", + "moment-timezone": "moment-timezone", + "mongoose": "mongoose", + "morgan": "morgan", + "mousetrap": "mousetrap", + "ms": "ms", + "mustache": "mustache", + "native.history": "history", + "nconf": "nconf", + "ncp": "ncp", + "nedb": "nedb", + "ng-cordova": "ng-cordova", + "ngDialog": "ng-dialog", + "ng-flow-standalone": "ng-flow", + "ng-grid": "ng-grid", + "ng-i18next": "ng-i18next", + "ng-table": "ng-table", + "node_redis": "redis", + "node-clone": "clone", + "node-fs-extra": "fs-extra", + "node-glob": "glob", + "Nodemailer": "nodemailer", + "node-mime": "mime", + "node-mkdirp": "mkdirp", + "node-mongodb-native": "mongodb", + "node-mysql": "mysql", + "node-open": "open", + "node-optimist": "optimist", + "node-progress": "progress", + "node-semver": "semver", + "node-tar": "tar", + "node-uuid": "node-uuid", + "node-xml2js": "xml2js", + "nopt": "nopt", + "notify": "notify", + "nouislider": "nouislider", + "npm": "npm", + "nprogress": "nprogress", + "numbro": "numbro", + "numeral": "numeraljs", + "nunjucks": "nunjucks", + "nv.d3": "nvd3", + "object-assign": "object-assign", + "oboe-browser": "oboe", + "office": "office-js", + "offline": "offline-js", + "onsenui": "onsenui", + "OpenLayers.js": "openlayers", + "openpgp": "openpgp", + "p2": "p2", + "packery.pkgd": "packery", + "page": "page", + "pako": "pako", + "papaparse": "papaparse", + "passport": "passport", + "passport-local": "passport-local", + "path": "pathjs", + "pdfkit": "pdfkit", + "peer": "peerjs", + "peg": "pegjs", + "photoswipe": "photoswipe", + "picker.js": "pickadate", + "pikaday": "pikaday", + "pixi": "pixi.js", + "platform": "platform", + "Please": "pleasejs", + "plottable": "plottable", + "polymer": "polymer", + "postal": "postal", + "preloadjs": "preloadjs", + "progress": "progress", + "purify": "dompurify", + "purl": "purl", + "q": "q", + "qs": "qs", + "qunit": "qunit", + "ractive": "ractive", + "rangy-core": "rangy", + "raphael": "raphael", + "raven": "ravenjs", + "react": "react", + "react-bootstrap": "react-bootstrap", + "react-intl": "react-intl", + "react-redux": "react-redux", + "ReactRouter": "react-router", + "ready": "domready", + "redux": "redux", + "request": "request", + "require": "require", + "restangular": "restangular", + "reveal": "reveal", + "rickshaw": "rickshaw", + "rimraf": "rimraf", + "rivets": "rivets", + "rx": "rx", + "rx.angular": "rx-angular", + "sammy": "sammyjs", + "SAT": "sat", + "sax-js": "sax", + "screenfull": "screenfull", + "seedrandom": "seedrandom", + "select2": "select2", + "selectize": "selectize", + "serve-favicon": "serve-favicon", + "serve-static": "serve-static", + "shelljs": "shelljs", + "should": "should", + "showdown": "showdown", + "sigma": "sigmajs", + "signature_pad": "signature_pad", + "sinon": "sinon", + "sjcl": "sjcl", + "slick": "slick-carousel", + "smoothie": "smoothie", + "socket.io": "socket.io", + "socket.io-client": "socket.io-client", + "sockjs": "sockjs-client", + "sortable": "angular-ui-sortable", + "soundjs": "soundjs", + "source-map": "source-map", + "spectrum": "spectrum", + "spin": "spin", + "sprintf": "sprintf", + "stampit": "stampit", + "state-machine": "state-machine", + "Stats": "stats", + "store": "storejs", + "string": "string", + "string_score": "string_score", + "strophe": "strophe", + "stylus": "stylus", + "sugar": "sugar", + "superagent": "superagent", + "svg": "svgjs", + "svg-injector": "svg-injector", + "swfobject": "swfobject", + "swig": "swig", + "swipe": "swipe", + "swiper": "swiper", + "system.js": "systemjs", + "tether": "tether", + "three": "threejs", + "through": "through", + "through2": "through2", + "timeline": "timelinejs", + "tinycolor": "tinycolor", + "tmhDynamicLocale": "angular-dynamic-locale", + "toaster": "angularjs-toaster", + "toastr": "toastr", + "tracking": "tracking", + "trunk8": "trunk8", + "turf": "turf", + "tweenjs": "tweenjs", + "TweenMax": "gsap", + "twig": "twig", + "twix": "twix", + "typeahead.bundle": "typeahead", + "typescript": "typescript", + "ui": "winjs", + "ui-bootstrap-tpls": "angular-ui-bootstrap", + "ui-grid": "ui-grid", + "uikit": "uikit", + "underscore": "underscore", + "underscore.string": "underscore.string", + "update-notifier": "update-notifier", + "url": "jsurl", + "UUID": "uuid", + "validator": "validator", + "vega": "vega", + "vex": "vex-js", + "video": "videojs", + "vue": "vue", + "vue-router": "vue-router", + "webtorrent": "webtorrent", + "when": "when", + "winston": "winston", + "wrench-js": "wrench", + "ws": "ws", + "xlsx": "xlsx", + "xml2json": "x2js", + "xmlbuilder-js": "xmlbuilder", + "xregexp": "xregexp", + "yargs": "yargs", + "yosay": "yosay", + "yui": "yui", + "yui3": "yui", + "zepto": "zepto", + "ZeroClipboard": "zeroclipboard", + "ZSchema-browser": "z-schema" + } +} diff --git a/node_modules/typescript/lib/typescript.d.ts b/node_modules/typescript/lib/typescript.d.ts index 60c1dec27..fbb3e4912 100644 --- a/node_modules/typescript/lib/typescript.d.ts +++ b/node_modules/typescript/lib/typescript.d.ts @@ -107,7 +107,6 @@ declare namespace ts { GetApplicableRefactors = "getApplicableRefactors", GetEditsForRefactor = "getEditsForRefactor", GetMoveToRefactoringFileSuggestions = "getMoveToRefactoringFileSuggestions", - PreparePasteEdits = "preparePasteEdits", GetPasteEdits = "getPasteEdits", OrganizeImports = "organizeImports", GetEditsForFileRename = "getEditsForFileRename", @@ -215,22 +214,6 @@ declare namespace ts { * The time spent creating or updating the auto-import program, in milliseconds. */ createAutoImportProviderProgramDurationMs?: number; - /** - * The time spent computing diagnostics, in milliseconds. - */ - diagnosticsDuration?: FileDiagnosticPerformanceData[]; - } - /** - * Time spent computing each kind of diagnostics, in milliseconds. - */ - export type DiagnosticPerformanceData = { - [Kind in DiagnosticEventKind]?: number; - }; - export interface FileDiagnosticPerformanceData extends DiagnosticPerformanceData { - /** - * The file for which the performance data is reported. - */ - file: string; } /** * Arguments for FileRequest messages. @@ -364,10 +347,6 @@ declare namespace ts { * Indicate if the file name list of the project is needed */ needFileNameList: boolean; - /** - * if true returns details about default configured project calculation - */ - needDefaultConfiguredProjectInfo?: boolean; } /** * A request to get the project information of the current file. @@ -391,17 +370,6 @@ declare namespace ts { */ projectFileName: string; } - /** - * Details about the default project for the file if tsconfig file is found - */ - export interface DefaultConfiguredProjectInfo { - /** List of config files looked and did not match because file was not part of root file names */ - notMatchedByConfig?: readonly string[]; - /** List of projects which were loaded but file was not part of the project or is file from referenced project */ - notInProject?: readonly string[]; - /** Configured project used as default */ - defaultProject?: string; - } /** * Response message body for "projectInfo" request */ @@ -419,10 +387,6 @@ declare namespace ts { * Indicates if the project has a active language service instance */ languageServiceDisabled?: boolean; - /** - * Information about default project - */ - configuredProjectInfo?: DefaultConfiguredProjectInfo; } /** * Represents diagnostic info that includes location of diagnostic in two forms @@ -515,19 +479,6 @@ declare namespace ts { files: string[]; }; } - /** - * Request to check if `pasteEdits` should be provided for a given location post copying text from that location. - */ - export interface PreparePasteEditsRequest extends FileRequest { - command: CommandTypes.PreparePasteEdits; - arguments: PreparePasteEditsRequestArgs; - } - export interface PreparePasteEditsRequestArgs extends FileRequestArgs { - copiedTextSpan: TextSpan[]; - } - export interface PreparePasteEditsResponse extends Response { - body: boolean; - } /** * Request refactorings at a given position post pasting text from some other location. */ @@ -633,7 +584,23 @@ declare namespace ts { } export interface ApplyCodeActionCommandResponse extends Response { } - export interface FileRangeRequestArgs extends FileRequestArgs, FileRange { + export interface FileRangeRequestArgs extends FileRequestArgs { + /** + * The line number for the request (1-based). + */ + startLine: number; + /** + * The character offset (on the line) for the request (1-based). + */ + startOffset: number; + /** + * The line number for the request (1-based). + */ + endLine: number; + /** + * The character offset (on the line) for the request (1-based). + */ + endOffset: number; } /** * Instances of this interface specify errorcodes on a specific location in a sourcefile. @@ -1899,7 +1866,7 @@ declare namespace ts { * List of file names for which to compute compiler errors. * The files will be checked in list order. */ - files: (string | FileRangesRequestArgs)[]; + files: string[]; /** * Delay in milliseconds to wait before starting to compute * errors for the files in the file list @@ -1920,27 +1887,6 @@ declare namespace ts { command: CommandTypes.Geterr; arguments: GeterrRequestArgs; } - export interface FileRange { - /** - * The line number for the request (1-based). - */ - startLine: number; - /** - * The character offset (on the line) for the request (1-based). - */ - startOffset: number; - /** - * The line number for the request (1-based). - */ - endLine: number; - /** - * The character offset (on the line) for the request (1-based). - */ - endOffset: number; - } - export interface FileRangesRequestArgs extends Pick { - ranges: FileRange[]; - } export type RequestCompletedEventName = "requestCompleted"; /** * Event that is sent when server have finished processing request with specified id. @@ -1951,7 +1897,6 @@ declare namespace ts { } export interface RequestCompletedEventBody { request_seq: number; - performanceData?: PerformanceData; } /** * Item of diagnostic information found in a DiagnosticEvent message. @@ -2024,12 +1969,8 @@ declare namespace ts { * An array of diagnostic information items. */ diagnostics: Diagnostic[]; - /** - * Spans where the region diagnostic was requested, if this is a region semantic diagnostic event. - */ - spans?: TextSpan[]; } - export type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag" | "regionSemanticDiag"; + export type DiagnosticEventKind = "semanticDiag" | "syntaxDiag" | "suggestionDiag"; /** * Event message for DiagnosticEventKind event types. * These events provide syntactic and semantic errors for a file. @@ -2508,7 +2449,6 @@ declare namespace ts { ES2022 = "es2022", ESNext = "esnext", Node16 = "node16", - Node18 = "node18", NodeNext = "nodenext", Preserve = "preserve", } @@ -2541,7 +2481,6 @@ declare namespace ts { ES2021 = "es2021", ES2022 = "es2022", ES2023 = "es2023", - ES2024 = "es2024", ESNext = "esnext", JSON = "json", Latest = "esnext", @@ -2571,7 +2510,6 @@ declare namespace ts { private readonly knownCachesSet; private readonly projectWatchers; private safeList; - private pendingRunRequests; private installRunCount; private inFlightRequestCount; abstract readonly typesRegistry: Map>; @@ -2698,7 +2636,6 @@ declare namespace ts { interface ServerHost extends System { watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher; watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher; - preferNonRecursiveWatch?: boolean; setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; clearTimeout(timeoutId: any): void; setImmediate(callback: (...args: any[]) => void, ...args: any[]): any; @@ -2707,18 +2644,6 @@ declare namespace ts { trace?(s: string): void; require?(initialPath: string, moduleName: string): ModuleImportResult; } - interface InstallPackageOptionsWithProject extends InstallPackageOptions { - projectName: string; - projectRootPath: Path; - } - interface ITypingsInstaller { - isKnownTypesPackageName(name: string): boolean; - installPackage(options: InstallPackageOptionsWithProject): Promise; - enqueueInstallTypingsRequest(p: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray | undefined): void; - attach(projectService: ProjectService): void; - onProjectClosed(p: Project): void; - readonly globalTypingsCacheLocation: string | undefined; - } function createInstallTypingsRequest(project: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray, cachePath?: string): DiscoverTypings; function toNormalizedPath(fileName: string): NormalizedPath; function normalizedPathToPath(normalizedPath: NormalizedPath, currentDirectory: string, getCanonicalFileName: (f: string) => string): Path; @@ -2777,7 +2702,6 @@ declare namespace ts { readonly containingProjects: Project[]; private formatSettings; private preferences; - private realpath; constructor(host: ServerHost, fileName: NormalizedPath, scriptKind: ScriptKind, hasMixedContent: boolean, path: Path, initialVersion?: number); isScriptOpen(): boolean; open(newText: string | undefined): void; @@ -2811,6 +2735,19 @@ declare namespace ts { positionToLineOffset(position: number): protocol.Location; isJavaScript(): boolean; } + interface InstallPackageOptionsWithProject extends InstallPackageOptions { + projectName: string; + projectRootPath: Path; + } + interface ITypingsInstaller { + isKnownTypesPackageName(name: string): boolean; + installPackage(options: InstallPackageOptionsWithProject): Promise; + enqueueInstallTypingsRequest(p: Project, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray | undefined): void; + attach(projectService: ProjectService): void; + onProjectClosed(p: Project): void; + readonly globalTypingsCacheLocation: string | undefined; + } + const nullTypingsInstaller: ITypingsInstaller; function allRootFilesAreJsOrDts(project: Project): boolean; function allFilesAreJsOrDts(project: Project): boolean; enum ProjectKind { @@ -2843,6 +2780,7 @@ declare namespace ts { abstract class Project implements LanguageServiceHost, ModuleResolutionHost { readonly projectKind: ProjectKind; readonly projectService: ProjectService; + private documentRegistry; private compilerOptions; compileOnSaveEnabled: boolean; protected watchOptions: WatchOptions | undefined; @@ -2851,38 +2789,41 @@ declare namespace ts { private externalFiles; private missingFilesMap; private generatedFilesMap; - private hasAddedorRemovedFiles; - private hasAddedOrRemovedSymlinks; protected languageService: LanguageService; languageServiceEnabled: boolean; readonly trace?: (s: string) => void; readonly realpath?: (path: string) => string; private builderState; + /** + * Set of files names that were updated since the last call to getChangesSinceVersion. + */ private updatedFileNames; + /** + * Set of files that was returned from the last call to getChangesSinceVersion. + */ private lastReportedFileNames; + /** + * Last version that was reported. + */ private lastReportedVersion; protected projectErrors: Diagnostic[] | undefined; - private typingsCache; - private typingWatchers; + protected isInitialLoadPending: () => boolean; private readonly cancellationToken; isNonTsProject(): boolean; isJsOnlyProject(): boolean; static resolveModule(moduleName: string, initialDir: string, host: ServerHost, log: (message: string) => void): {} | undefined; - private exportMapCache; - private changedFilesForExportMapCache; - private moduleSpecifierCache; - private symlinks; readonly jsDocParsingMode: JSDocParsingMode | undefined; isKnownTypesPackageName(name: string): boolean; installPackage(options: InstallPackageOptions): Promise; - getCompilationSettings(): CompilerOptions; - getCompilerOptions(): CompilerOptions; + private get typingsCache(); + getCompilationSettings(): ts.CompilerOptions; + getCompilerOptions(): ts.CompilerOptions; getNewLine(): string; getProjectVersion(): string; getProjectReferences(): readonly ProjectReference[] | undefined; getScriptFileNames(): string[]; private getOrCreateScriptInfoAndAttachToProject; - getScriptKind(fileName: string): ScriptKind; + getScriptKind(fileName: string): ts.ScriptKind; getScriptVersion(filename: string): string; getScriptSnapshot(filename: string): IScriptSnapshot | undefined; getCancellationToken(): HostCancellationToken; @@ -2918,16 +2859,16 @@ declare namespace ts { getProjectName(): string; protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition; getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray; - getSourceFile(path: Path): SourceFile | undefined; + getSourceFile(path: Path): ts.SourceFile | undefined; close(): void; private detachScriptInfoIfNotRoot; isClosed(): boolean; hasRoots(): boolean; getRootFiles(): NormalizedPath[]; - getRootScriptInfos(): ScriptInfo[]; + getRootScriptInfos(): ts.server.ScriptInfo[]; getScriptInfos(): ScriptInfo[]; getExcludedFiles(): readonly NormalizedPath[]; - getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[]; + getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): ts.server.NormalizedPath[]; hasConfigFile(configFilePath: NormalizedPath): boolean; containsScriptInfo(info: ScriptInfo): boolean; containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean; @@ -2941,8 +2882,6 @@ declare namespace ts { * @returns: true if set of files in the project stays the same and false - otherwise. */ updateGraph(): boolean; - private closeWatchingTypingLocations; - private onTypingInstallerWatchInvoke; protected removeExistingTypings(include: string[]): string[]; private updateGraphWorker; private detachScriptInfoFromProject; @@ -2952,18 +2891,16 @@ declare namespace ts { private isValidGeneratedFileWatcher; private clearGeneratedFileWatch; getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined; - getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined; + getScriptInfo(uncheckedFileName: string): ts.server.ScriptInfo | undefined; filesToString(writeProjectFileNames: boolean): string; - private filesToStringWorker; setCompilerOptions(compilerOptions: CompilerOptions): void; setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void; - getTypeAcquisition(): TypeAcquisition; + getTypeAcquisition(): ts.TypeAcquisition; protected removeRoot(info: ScriptInfo): void; protected enableGlobalPlugins(options: CompilerOptions): void; protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void; /** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */ refreshDiagnostics(): void; - private isDefaultProjectForOpenFiles; } /** * If a file is opened and no tsconfig (or jsconfig) is found, @@ -2983,14 +2920,13 @@ declare namespace ts { } class AutoImportProviderProject extends Project { private hostProject; - private static readonly maxDependencies; private rootFileNames; updateGraph(): boolean; hasRoots(): boolean; getScriptFileNames(): string[]; getLanguageService(): never; getHostForAutoImportProvider(): never; - getProjectReferences(): readonly ProjectReference[] | undefined; + getProjectReferences(): readonly ts.ProjectReference[] | undefined; } /** * If a file is opened, the server will look for a tsconfig (or jsconfig) @@ -3000,14 +2936,12 @@ declare namespace ts { class ConfiguredProject extends Project { readonly canonicalConfigFilePath: NormalizedPath; private projectReferences; - private compilerHost?; - private releaseParsedConfig; /** * If the project has reload from disk pending, it reloads (and then updates graph as part of that) instead of just updating the graph * @returns: true if set of files in the project stays the same and false - otherwise. */ updateGraph(): boolean; - getConfigFilePath(): NormalizedPath; + getConfigFilePath(): ts.server.NormalizedPath; getProjectReferences(): readonly ProjectReference[] | undefined; updateReferences(refs: readonly ProjectReference[] | undefined): void; /** @@ -3031,14 +2965,14 @@ declare namespace ts { compileOnSaveEnabled: boolean; excludedFiles: readonly NormalizedPath[]; updateGraph(): boolean; - getExcludedFiles(): readonly NormalizedPath[]; + getExcludedFiles(): readonly ts.server.NormalizedPath[]; } function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings; function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin; function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined; function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined; function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind; - function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind; + function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind.Unknown | ScriptKind.JS | ScriptKind.JSX | ScriptKind.TS | ScriptKind.TSX; const maxProgramSizeForNonTsFiles: number; const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground"; interface ProjectsUpdatedInBackgroundEvent { @@ -3192,7 +3126,6 @@ declare namespace ts { configFileName?: NormalizedPath; configFileErrors?: readonly Diagnostic[]; } - const nullTypingsInstaller: ITypingsInstaller; interface ProjectServiceOptions { host: ServerHost; logger: Logger; @@ -3218,8 +3151,16 @@ declare namespace ts { } class ProjectService { private readonly nodeModulesWatchers; + /** + * Contains all the deleted script info's version information so that + * it does not reset when creating script info again + * (and could have potentially collided with version where contents mismatch) + */ private readonly filenameToScriptInfoVersion; private readonly allJsFilesForOpenFileTelemetry; + /** + * maps external project file name to list of config files that were the part of this project + */ private readonly externalProjectToConfiguredProjectMap; /** * external projects (configuration and list of root files is not controlled by tsserver) @@ -3237,8 +3178,13 @@ declare namespace ts { * Open files: with value being project root path, and key being Path of the file that is open */ readonly openFiles: Map; + /** Config files looked up and cached config files for open script info */ private readonly configFileForOpenFiles; + /** Set of open script infos that are root of inferred project */ private rootOfInferredProjects; + /** + * Map of open files that are opened without complete path but have projectRoot as current directory + */ private readonly openFilesWithNonRootedDiskPath; private compilerOptionsForInferredProjects; private compilerOptionsForInferredProjectsPerProjectRoot; @@ -3246,11 +3192,18 @@ declare namespace ts { private watchOptionsForInferredProjectsPerProjectRoot; private typeAcquisitionForInferredProjects; private typeAcquisitionForInferredProjectsPerProjectRoot; + /** + * Project size for configured or external projects + */ private readonly projectToSizeMap; private readonly hostConfiguration; private safelist; private readonly legacySafelist; private pendingProjectUpdates; + /** + * All the open script info that needs recalculation of the default project, + * this also caches config file info before config file change was detected to use it in case projects are not updated yet + */ private pendingOpenFileProjectUpdates?; readonly currentDirectory: NormalizedPath; readonly toCanonicalFileName: (f: string) => string; @@ -3268,11 +3221,8 @@ declare namespace ts { readonly allowLocalPluginLoads: boolean; readonly typesMapLocation: string | undefined; readonly serverMode: LanguageServiceMode; + /** Tracks projects that we have already sent telemetry for. */ private readonly seenProjects; - private readonly sharedExtendedConfigFileWatchers; - private readonly extendedConfigCache; - private packageJsonFilesMap; - private incompleteCompletionsCache; private performanceEventHandler?; private pendingPluginEnablements?; private currentPluginEnablementPromise?; @@ -3286,9 +3236,20 @@ declare namespace ts { setCompilerOptionsForInferredProjects(projectCompilerOptions: protocol.InferredProjectCompilerOptions, projectRootPath?: string): void; findProject(projectName: string): Project | undefined; getDefaultProjectForFile(fileName: NormalizedPath, ensureProject: boolean): Project | undefined; + /** + * If there is default project calculation pending for this file, + * then it completes that calculation so that correct default project is used for the project + */ private tryGetDefaultProjectForEnsuringConfiguredProjectForFile; private doEnsureDefaultProjectForFile; getScriptInfoEnsuringProjectsUptoDate(uncheckedFileName: string): ScriptInfo | undefined; + /** + * Ensures the project structures are upto date + * This means, + * - we go through all the projects and update them if they are dirty + * - if updates reflect some change in structure or there was pending request to ensure projects for open files + * ensure that each open script info has project + */ private ensureProjectStructuresUptoDate; getFormatCodeOptions(file: NormalizedPath): FormatCodeSettings; getPreferences(file: NormalizedPath): protocol.UserPreferences; @@ -3299,32 +3260,37 @@ declare namespace ts { private delayUpdateSourceInfoProjects; private delayUpdateProjectsOfScriptInfoPath; private handleDeletedFile; - private watchWildcardDirectory; - private onWildCardDirectoryWatcherInvoke; - private delayUpdateProjectsFromParsedConfigOnConfigFileChange; - private onConfigFileChanged; private removeProject; private assignOrphanScriptInfosToInferredProject; + /** + * Remove this file from the set of open, non-configured files. + * @param info The file that has been closed or newly configured + */ private closeOpenFile; private deleteScriptInfo; private configFileExists; - private createConfigFileWatcherForParsedConfig; - private ensureConfigFileWatcherForProject; + /** + * This function tries to search for a tsconfig.json for the given file. + * This is different from the method the compiler uses because + * the compiler can assume it will always start searching in the + * current directory (the directory in which tsc was invoked). + * The server must start searching from the directory containing + * the newly opened file. + */ private forEachConfigFileLocation; + /** Get cached configFileName for scriptInfo or ancestor of open script info */ private getConfigFileNameForFileFromCache; + /** Caches the configFilename for script info or ancestor of open script info */ private setConfigFileNameForFileInCache; private printProjects; private getConfiguredProjectByCanonicalConfigFilePath; private findExternalProjectByProjectName; + /** Get a filename if the language service exceeds the maximum allowed program size; otherwise returns undefined. */ private getFilenameForExceededTotalSizeLimitForNonTsFiles; private createExternalProject; private addFilesToNonInferredProject; - private loadConfiguredProject; private updateNonInferredProjectFiles; private updateRootAndOptionsOfNonInferredProject; - private reloadFileNamesOfParsedConfig; - private setProjectForReload; - private clearSemanticCache; private getOrCreateInferredProjectForProjectRootPathIfEnabled; private getOrCreateSingleInferredProjectIfEnabled; private getOrCreateSingleInferredWithoutProjectRoot; @@ -3350,15 +3316,23 @@ declare namespace ts { private addSourceInfoToSourceMap; private addMissingSourceMapFile; setHostConfiguration(args: protocol.ConfigureRequestArguments): void; - private getWatchOptionsFromProjectWatchOptions; closeLog(): void; - private sendSourceFileChange; /** * This function rebuilds the project for every file opened by the client * This does not reload contents of open files from disk. But we could do that if needed */ reloadProjects(): void; + /** + * Remove the root of inferred project if script info is part of another project + */ private removeRootOfInferredProjectIfNowPartOfOtherProject; + /** + * This function is to update the project structure for every inferred project. + * It is called on the premise that all the configured projects are + * up to date. + * This will go through open files and assign them to inferred project if open file is not part of any other project + * After that all the inferred project graphs are updated + */ private ensureProjectForOpenFiles; /** * Open file whose contents is managed by the client @@ -3369,14 +3343,20 @@ declare namespace ts { private findExternalProjectContainingOpenScriptInfo; private getOrCreateOpenScriptInfo; private assignProjectToOpenedScriptInfo; + /** + * Finds the default configured project for given info + * For any tsconfig found, it looks into that project, if not then all its references, + * The search happens for all tsconfigs till projectRootPath + */ private tryFindDefaultConfiguredProjectForOpenScriptInfo; - private isMatchedByConfig; - private tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo; + /** + * Finds the default configured project, if found, it creates the solution projects (does not load them right away) + * with Find: finds the projects even if the project is deferredClosed + */ private tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo; private ensureProjectChildren; private cleanupConfiguredProjects; private cleanupProjectsAndScriptInfos; - private tryInvokeWildCardDirectories; openClientFileWithNormalizedPath(fileName: NormalizedPath, fileContent?: string, scriptKind?: ScriptKind, hasMixedContent?: boolean, projectRootPath?: NormalizedPath): OpenConfiguredProjectResult; private removeOrphanScriptInfos; private telemetryOnOpenFile; @@ -3388,6 +3368,7 @@ declare namespace ts { private collectChanges; closeExternalProject(uncheckedFileName: string): void; openExternalProjects(projects: protocol.ExternalProject[]): void; + /** Makes a filename safe to insert in a RegExp */ private static readonly filenameEscapeRegexp; private static escapeFilenameForRegex; resetSafeList(): void; @@ -3395,12 +3376,9 @@ declare namespace ts { private applySafeListWorker; openExternalProject(proj: protocol.ExternalProject): void; hasDeferredExtension(): boolean; - private endEnablePlugin; private enableRequestedPluginsAsync; private enableRequestedPluginsWorker; configurePlugin(args: protocol.ConfigurePluginRequestArguments): void; - private watchPackageJsonFile; - private onPackageJsonChange; } function formatMessage(msg: T, logger: Logger, byteLength: (s: string, encoding: BufferEncoding) => number, newLine: string): string; interface ServerCancellationToken extends HostCancellationToken { @@ -3408,6 +3386,10 @@ declare namespace ts { resetRequest(requestId: number): void; } const nullCancellationToken: ServerCancellationToken; + interface PendingErrorCheck { + fileName: NormalizedPath; + project: Project; + } /** @deprecated use ts.server.protocol.CommandTypes */ type CommandNames = protocol.CommandTypes; /** @deprecated use ts.server.protocol.CommandTypes */ @@ -3467,7 +3449,6 @@ declare namespace ts { constructor(opts: SessionOptions); private sendRequestCompletedEvent; private addPerformanceData; - private addDiagnosticsPerformanceData; private performanceEventHandler; private defaultEventHandler; private projectsUpdatedInBackgroundEvent; @@ -3479,8 +3460,8 @@ declare namespace ts { private semanticCheck; private syntacticCheck; private suggestionCheck; - private regionSemanticCheck; private sendDiagnosticsEvent; + /** It is the caller's responsibility to verify that `!this.suppressDiagnosticEvents`. */ private updateErrorCheck; private cleanProjects; private cleanup; @@ -3516,11 +3497,9 @@ declare namespace ts { private getDocumentHighlights; private provideInlayHints; private mapCode; - private getCopilotRelatedInfo; private setCompilerOptionsForInferredProjects; private getProjectInfo; private getProjectInfoWorker; - private getDefaultConfiguredProjectInfo; private getRenameInfo; private getProjects; private getDefaultProject; @@ -3529,6 +3508,10 @@ declare namespace ts { private toSpanGroups; private getReferences; private getFileReferences; + /** + * @param fileName is the name of the file to be opened + * @param fileContent is a version of the file content that is known to be more up to date than the one on disk + */ private openClientFile; private getPosition; private getPositionInFile; @@ -3573,7 +3556,6 @@ declare namespace ts { private getApplicableRefactors; private getEditsForRefactor; private getMoveToRefactoringFileSuggestions; - private preparePasteEdits; private getPasteEdits; private organizeImports; private getEditsForFileRename; @@ -3634,7 +3616,7 @@ declare namespace ts { readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[]; } } - const versionMajorMinor = "5.8"; + const versionMajorMinor = "5.5"; /** The version of the TypeScript compiler release */ const version: string; /** @@ -4022,11 +4004,10 @@ declare namespace ts { JSDocImportTag = 351, SyntaxList = 352, NotEmittedStatement = 353, - NotEmittedTypeElement = 354, - PartiallyEmittedExpression = 355, - CommaListExpression = 356, - SyntheticReferenceExpression = 357, - Count = 358, + PartiallyEmittedExpression = 354, + CommaListExpression = 355, + SyntheticReferenceExpression = 356, + Count = 357, FirstAssignment = 64, LastAssignment = 79, FirstCompoundAssignment = 65, @@ -4465,7 +4446,7 @@ declare namespace ts { readonly right: Identifier; } type EntityName = Identifier | QualifiedName; - type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier | BigIntLiteral; + type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier; type MemberName = Identifier | PrivateIdentifier; type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression; interface Declaration extends Node { @@ -4816,7 +4797,7 @@ declare namespace ts { readonly kind: SyntaxKind.StringLiteral; } type StringLiteralLike = StringLiteral | NoSubstitutionTemplateLiteral; - type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName | BigIntLiteral; + type PropertyNameLiteral = Identifier | StringLiteralLike | NumericLiteral | JsxNamespacedName; interface TemplateLiteralTypeNode extends TypeNode { kind: SyntaxKind.TemplateLiteralType; readonly head: TemplateHead; @@ -5138,7 +5119,7 @@ declare namespace ts { interface InstanceofExpression extends BinaryExpression { readonly operatorToken: Token; } - type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxCallLike | InstanceofExpression; + type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxOpeningLikeElement | InstanceofExpression; interface AsExpression extends Expression { readonly kind: SyntaxKind.AsExpression; readonly expression: Expression; @@ -5174,7 +5155,6 @@ declare namespace ts { readonly closingElement: JsxClosingElement; } type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement; - type JsxCallLike = JsxOpeningLikeElement | JsxOpeningFragment; type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute; type JsxAttributeName = Identifier | JsxNamespacedName; type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName; @@ -5253,9 +5233,6 @@ declare namespace ts { interface NotEmittedStatement extends Statement { readonly kind: SyntaxKind.NotEmittedStatement; } - interface NotEmittedTypeElement extends TypeElement { - readonly kind: SyntaxKind.NotEmittedTypeElement; - } /** * A list of comma-separated expressions. This node is only created by transformations. */ @@ -5540,7 +5517,7 @@ declare namespace ts { interface NamespaceExport extends NamedDeclaration { readonly kind: SyntaxKind.NamespaceExport; readonly parent: ExportDeclaration; - readonly name: ModuleExportName; + readonly name: Identifier; } interface NamespaceExportDeclaration extends DeclarationStatement, JSDocContainer { readonly kind: SyntaxKind.NamespaceExportDeclaration; @@ -5572,7 +5549,7 @@ declare namespace ts { interface ImportSpecifier extends NamedDeclaration { readonly kind: SyntaxKind.ImportSpecifier; readonly parent: NamedImports; - readonly propertyName?: ModuleExportName; + readonly propertyName?: Identifier; readonly name: Identifier; readonly isTypeOnly: boolean; } @@ -5580,10 +5557,9 @@ declare namespace ts { readonly kind: SyntaxKind.ExportSpecifier; readonly parent: NamedExports; readonly isTypeOnly: boolean; - readonly propertyName?: ModuleExportName; - readonly name: ModuleExportName; + readonly propertyName?: Identifier; + readonly name: Identifier; } - type ModuleExportName = Identifier | StringLiteral; type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier; type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier | ExportDeclaration | NamespaceExport; type TypeOnlyImportDeclaration = @@ -6038,67 +6014,19 @@ declare namespace ts { isSourceFileFromExternalLibrary(file: SourceFile): boolean; isSourceFileDefaultLibrary(file: SourceFile): boolean; /** - * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution - * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, - * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of - * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. - * Some examples: - * - * ```ts - * // tsc foo.mts --module nodenext - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension - * - * // tsc foo.cts --module nodenext - * import {} from "mod"; - * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension - * - * // tsc foo.ts --module preserve --moduleResolution bundler - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` - * // supports conditional imports/exports - * - * // tsc foo.ts --module preserve --moduleResolution node10 - * import {} from "mod"; - * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` - * // does not support conditional imports/exports - * - * // tsc foo.ts --module commonjs --moduleResolution node10 - * import type {} from "mod" with { "resolution-mode": "import" }; - * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute - * ``` + * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import + * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may + * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other + * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no + * impact on module resolution, emit, or type checking. */ getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike): ResolutionMode; /** - * Calculates the final resolution mode for an import at some index within a file's `imports` list. This function only returns a result - * when module resolution settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided - * via import attributes, which cause an `import` or `require` condition to be used during resolution regardless of module resolution - * settings. In absence of overriding attributes, and in modes that support differing resolution, the result indicates the syntax the - * usage would emit to JavaScript. Some examples: - * - * ```ts - * // tsc foo.mts --module nodenext - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension - * - * // tsc foo.cts --module nodenext - * import {} from "mod"; - * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension - * - * // tsc foo.ts --module preserve --moduleResolution bundler - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` - * // supports conditional imports/exports - * - * // tsc foo.ts --module preserve --moduleResolution node10 - * import {} from "mod"; - * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` - * // does not support conditional imports/exports - * - * // tsc foo.ts --module commonjs --moduleResolution node10 - * import type {} from "mod" with { "resolution-mode": "import" }; - * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute - * ``` + * Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode + * explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In + * `--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the + * input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns + * `undefined`, as the result would have no impact on module resolution, emit, or type checking. */ getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode; getProjectReferences(): readonly ProjectReference[] | undefined; @@ -6159,33 +6087,12 @@ declare namespace ts { getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol | undefined; getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined; getIndexInfosOfType(type: Type): readonly IndexInfo[]; - getIndexInfosOfIndexSymbol: (indexSymbol: Symbol, siblingSymbols?: Symbol[] | undefined) => IndexInfo[]; + getIndexInfosOfIndexSymbol: (indexSymbol: Symbol) => IndexInfo[]; getSignaturesOfType(type: Type, kind: SignatureKind): readonly Signature[]; getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined; getBaseTypes(type: InterfaceType): BaseType[]; getBaseTypeOfLiteralType(type: Type): Type; getWidenedType(type: Type): Type; - /** - * Gets the "awaited type" of a type. - * - * If an expression has a Promise-like type, the "awaited type" of the expression is - * derived from the type of the first argument of the fulfillment callback for that - * Promise's `then` method. If the "awaited type" is itself a Promise-like, it is - * recursively unwrapped in the same manner until a non-promise type is found. - * - * If an expression does not have a Promise-like type, its "awaited type" is the type - * of the expression. - * - * If the resulting "awaited type" is a generic object type, then it is wrapped in - * an `Awaited`. - * - * In the event the "awaited type" circularly references itself, or is a non-Promise - * object-type with a callable `then()` method, an "awaited type" cannot be determined - * and the value `undefined` will be returned. - * - * This is used to reflect the runtime behavior of the `await` keyword. - */ - getAwaitedType(type: Type): Type | undefined; getReturnTypeOfSignature(signature: Signature): Type; getNullableType(type: Type, flags: TypeFlags): Type; getNonNullableType(type: Type): Type; @@ -6278,9 +6185,7 @@ declare namespace ts { getNumberType(): Type; getNumberLiteralType(value: number): NumberLiteralType; getBigIntType(): Type; - getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType; getBooleanType(): Type; - getUnknownType(): Type; getFalseType(): Type; getTrueType(): Type; getVoidType(): Type; @@ -6340,7 +6245,6 @@ declare namespace ts { * and the operation is cancelled, then it should be discarded, otherwise it is safe to keep. */ runWithCancellationToken(token: CancellationToken, cb: (checker: TypeChecker) => T): T; - getTypeArgumentsForResolvedSignature(signature: Signature): readonly Type[] | undefined; } enum NodeBuilderFlags { None = 0, @@ -6750,11 +6654,7 @@ declare namespace ts { minLength: number; /** Number of initial required or optional elements */ fixedLength: number; - /** - * True if tuple has any rest or variadic elements - * - * @deprecated Use `.combinedFlags & ElementFlags.Variable` instead - */ + /** True if tuple has any rest or variadic elements */ hasRestElement: boolean; combinedFlags: ElementFlags; readonly: boolean; @@ -6844,15 +6744,11 @@ declare namespace ts { String = 0, Number = 1, } - type ElementWithComputedPropertyName = (ClassElement | ObjectLiteralElement) & { - name: ComputedPropertyName; - }; interface IndexInfo { keyType: Type; type: Type; isReadonly: boolean; declaration?: IndexSignatureDeclaration; - components?: ElementWithComputedPropertyName[]; } enum InferencePriority { None = 0, @@ -7023,7 +6919,6 @@ declare namespace ts { /** @deprecated */ keyofStringsOnly?: boolean; lib?: string[]; - libReplacement?: boolean; locale?: string; mapRoot?: string; maxNodeModuleJsDepth?: number; @@ -7033,7 +6928,6 @@ declare namespace ts { moduleDetection?: ModuleDetectionKind; newLine?: NewLineKind; noEmit?: boolean; - noCheck?: boolean; noEmitHelpers?: boolean; noEmitOnError?: boolean; noErrorTruncation?: boolean; @@ -7073,7 +6967,6 @@ declare namespace ts { removeComments?: boolean; resolvePackageJsonExports?: boolean; resolvePackageJsonImports?: boolean; - rewriteRelativeImportExtensions?: boolean; rootDir?: string; rootDirs?: string[]; skipLibCheck?: boolean; @@ -7085,7 +6978,6 @@ declare namespace ts { strictBindCallApply?: boolean; strictNullChecks?: boolean; strictPropertyInitialization?: boolean; - strictBuiltinIteratorReturn?: boolean; stripInternal?: boolean; /** @deprecated */ suppressExcessPropertyErrors?: boolean; @@ -7094,13 +6986,11 @@ declare namespace ts { target?: ScriptTarget; traceResolution?: boolean; useUnknownInCatchVariables?: boolean; - noUncheckedSideEffectImports?: boolean; resolveJsonModule?: boolean; types?: string[]; /** Paths used to compute primary types search locations */ typeRoots?: string[]; verbatimModuleSyntax?: boolean; - erasableSyntaxOnly?: boolean; esModuleInterop?: boolean; useDefineForClassFields?: boolean; [option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined; @@ -7132,7 +7022,6 @@ declare namespace ts { ES2022 = 7, ESNext = 99, Node16 = 100, - Node18 = 101, NodeNext = 199, Preserve = 200, } @@ -7186,7 +7075,6 @@ declare namespace ts { ES2021 = 8, ES2022 = 9, ES2023 = 10, - ES2024 = 11, ESNext = 99, JSON = 100, Latest = 99, @@ -7424,11 +7312,9 @@ declare namespace ts { TypeAssertions = 2, NonNullAssertions = 4, PartiallyEmittedExpressions = 8, - ExpressionsWithTypeArguments = 16, - Satisfies = 32, - Assertions = 38, - All = 63, - ExcludeJSDocTypeAssertion = -2147483648, + Assertions = 6, + All = 15, + ExcludeJSDocTypeAssertion = 16, } type ImmediatelyInvokedFunctionExpression = CallExpression & { readonly expression: FunctionExpression; @@ -7727,20 +7613,20 @@ declare namespace ts { updateImportAttribute(node: ImportAttribute, name: ImportAttributeName, value: Expression): ImportAttribute; createNamespaceImport(name: Identifier): NamespaceImport; updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport; - createNamespaceExport(name: ModuleExportName): NamespaceExport; - updateNamespaceExport(node: NamespaceExport, name: ModuleExportName): NamespaceExport; + createNamespaceExport(name: Identifier): NamespaceExport; + updateNamespaceExport(node: NamespaceExport, name: Identifier): NamespaceExport; createNamedImports(elements: readonly ImportSpecifier[]): NamedImports; updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports; - createImportSpecifier(isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier; - updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier; + createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; + updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier; createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment; updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment; createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, attributes?: ImportAttributes): ExportDeclaration; updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, attributes: ImportAttributes | undefined): ExportDeclaration; createNamedExports(elements: readonly ExportSpecifier[]): NamedExports; updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports; - createExportSpecifier(isTypeOnly: boolean, propertyName: string | ModuleExportName | undefined, name: string | ModuleExportName): ExportSpecifier; - updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: ModuleExportName): ExportSpecifier; + createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier; + updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier; createExternalModuleReference(expression: Expression): ExternalModuleReference; updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference; createJSDocAllType(): JSDocAllType; @@ -7870,7 +7756,6 @@ declare namespace ts { createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlags): SourceFile; updateSourceFile(node: SourceFile, statements: readonly Statement[], isDeclarationFile?: boolean, referencedFiles?: readonly FileReference[], typeReferences?: readonly FileReference[], hasNoDefaultLib?: boolean, libReferences?: readonly FileReference[]): SourceFile; createNotEmittedStatement(original: Node): NotEmittedStatement; - createNotEmittedTypeElement(): NotEmittedTypeElement; createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression; updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression; createCommaListExpression(elements: readonly Expression[]): CommaListExpression; @@ -8321,7 +8206,6 @@ declare namespace ts { readonly interactiveInlayHints?: boolean; readonly allowRenameOfImportPath?: boolean; readonly autoImportFileExcludePatterns?: string[]; - readonly autoImportSpecifierExcludeRegexes?: string[]; readonly preferTypeOnlyAutoImports?: boolean; /** * Indicates whether imports should be organized in a case-insensitive manner. @@ -8752,7 +8636,6 @@ declare namespace ts { function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration; function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration; function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration; - function isPartOfTypeOnlyImportOrExportDeclaration(node: Node): boolean; function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken; function isImportAttributeName(node: Node): node is ImportAttributeName; function isModifier(node: Node): node is Modifier; @@ -8801,7 +8684,6 @@ declare namespace ts { function isJsxAttributeLike(node: Node): node is JsxAttributeLike; function isStringLiteralOrJsxExpression(node: Node): node is StringLiteral | JsxExpression; function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement; - function isJsxCallLike(node: Node): node is JsxCallLike; function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause; /** True if node is of a kind that may contain comment text. */ function isJSDocCommentContainingNode(node: Node): boolean; @@ -9062,7 +8944,6 @@ declare namespace ts { function isExportDeclaration(node: Node): node is ExportDeclaration; function isNamedExports(node: Node): node is NamedExports; function isExportSpecifier(node: Node): node is ExportSpecifier; - function isModuleExportName(node: Node): node is ModuleExportName; function isMissingDeclaration(node: Node): node is MissingDeclaration; function isNotEmittedStatement(node: Node): node is NotEmittedStatement; function isExternalModuleReference(node: Node): node is ExternalModuleReference; @@ -9180,7 +9061,6 @@ declare namespace ts { jsDocParsingMode?: JSDocParsingMode; } function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine; - function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand; /** * Reads the config file, reports errors if any and exits if the config file cannot be found */ @@ -9235,13 +9115,6 @@ declare namespace ts { options: TypeAcquisition; errors: Diagnostic[]; }; - /** Parsed command line for build */ - interface ParsedBuildCommand { - buildOptions: BuildOptions; - watchOptions: WatchOptions | undefined; - projects: string[]; - errors: Diagnostic[]; - } type DiagnosticReporter = (diagnostic: Diagnostic) => void; /** * Reports config file diagnostics @@ -9506,43 +9379,24 @@ declare namespace ts { function getModeForResolutionAtIndex(file: SourceFile, index: number, compilerOptions: CompilerOptions): ResolutionMode; /** * Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible. - * Calculates the final resolution mode for a given module reference node. This function only returns a result when module resolution - * settings allow differing resolution between ESM imports and CJS requires, or when a mode is explicitly provided via import attributes, - * which cause an `import` or `require` condition to be used during resolution regardless of module resolution settings. In absence of - * overriding attributes, and in modes that support differing resolution, the result indicates the syntax the usage would emit to JavaScript. - * Some examples: - * - * ```ts - * // tsc foo.mts --module nodenext - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `impliedNodeFormat` set by .mts file extension - * - * // tsc foo.cts --module nodenext - * import {} from "mod"; - * // Result: CommonJS - the import emits as CJS due to `impliedNodeFormat` set by .cts file extension - * - * // tsc foo.ts --module preserve --moduleResolution bundler - * import {} from "mod"; - * // Result: ESNext - the import emits as ESM due to `--module preserve` and `--moduleResolution bundler` - * // supports conditional imports/exports - * - * // tsc foo.ts --module preserve --moduleResolution node10 - * import {} from "mod"; - * // Result: undefined - the import emits as ESM due to `--module preserve`, but `--moduleResolution node10` - * // does not support conditional imports/exports - * - * // tsc foo.ts --module commonjs --moduleResolution node10 - * import type {} from "mod" with { "resolution-mode": "import" }; - * // Result: ESNext - conditional imports/exports always supported with "resolution-mode" attribute - * ``` - * + * Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import + * attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may + * depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other + * `module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no + * impact on module resolution, emit, or type checking. * @param file The file the import or import-like reference is contained within * @param usage The module reference string * @param compilerOptions The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options * should be the options of the referenced project, not the referencing project. * @returns The final resolution mode of the import */ - function getModeForUsageLocation(file: SourceFile, usage: StringLiteralLike, compilerOptions: CompilerOptions): ResolutionMode; + function getModeForUsageLocation( + file: { + impliedNodeFormat?: ResolutionMode; + }, + usage: StringLiteralLike, + compilerOptions: CompilerOptions, + ): ModuleKind.CommonJS | ModuleKind.ESNext | undefined; function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[]; /** * A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the @@ -9768,7 +9622,6 @@ declare namespace ts { setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any; /** If provided, will be used to reset existing delayed compilation */ clearTimeout?(timeoutId: any): void; - preferNonRecursiveWatch?: boolean; } interface ProgramHost { /** @@ -9891,7 +9744,6 @@ declare namespace ts { dry?: boolean; force?: boolean; verbose?: boolean; - stopBuildOnErrors?: boolean; incremental?: boolean; assumeChangesOnlyAffectDirectDependencies?: boolean; declaration?: boolean; @@ -9969,8 +9821,6 @@ declare namespace ts { emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined; } type InvalidatedProject = UpdateOutputFileStampsProject | BuildInvalidedProject; - /** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */ - function isBuildCommand(commandLineArgs: readonly string[]): boolean; function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings; /** * Represents an immutable snapshot of a script at a specified time.Once acquired, the @@ -10245,7 +10095,6 @@ declare namespace ts { uncommentSelection(fileName: string, textRange: TextRange): TextChange[]; getSupportedCodeFixes(fileName?: string): readonly string[]; dispose(): void; - preparePasteEditsForFile(fileName: string, copiedTextRanges: TextRange[]): boolean; getPasteEdits(args: PasteEditsArgs, formatOptions: FormatCodeSettings): PasteEdits; } interface JsxClosingTagInfo { @@ -10862,10 +10711,6 @@ declare namespace ts { */ isIncomplete?: true; entries: CompletionEntry[]; - /** - * Default commit characters for the completion entries. - */ - defaultCommitCharacters?: string[]; } interface CompletionEntryDataAutoImport { /** @@ -10972,10 +10817,6 @@ declare namespace ts { * is an auto-import. */ data?: CompletionEntryData; - /** - * If this completion entry is selected, typing a commit character will cause the entry to be accepted. - */ - commitCharacters?: string[]; } interface CompletionEntryLabelDetails { /** diff --git a/node_modules/typescript/lib/typescript.js b/node_modules/typescript/lib/typescript.js index c927ce990..74ad448c6 100644 --- a/node_modules/typescript/lib/typescript.js +++ b/node_modules/typescript/lib/typescript.js @@ -86,6 +86,7 @@ __export(typescript_exports, { GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -96,7 +97,6 @@ __export(typescript_exports, { InlayHintKind: () => InlayHintKind2, InlayHints: () => ts_InlayHints_exports, InternalEmitFlags: () => InternalEmitFlags, - InternalNodeBuilderFlags: () => InternalNodeBuilderFlags, InternalSymbolName: () => InternalSymbolName, IntersectionFlags: () => IntersectionFlags, InvalidatedProjectKind: () => InvalidatedProjectKind, @@ -143,8 +143,6 @@ __export(typescript_exports, { PollingInterval: () => PollingInterval, PollingWatchKind: () => PollingWatchKind, PragmaKindFlags: () => PragmaKindFlags, - PredicateSemantics: () => PredicateSemantics, - PreparePasteEdits: () => ts_preparePasteEdits_exports, PrivateIdentifierKind: () => PrivateIdentifierKind, ProcessLevel: () => ProcessLevel, ProgramUpdateLevel: () => ProgramUpdateLevel, @@ -175,6 +173,7 @@ __export(typescript_exports, { SymbolFlags: () => SymbolFlags, SymbolFormatFlags: () => SymbolFormatFlags, SyntaxKind: () => SyntaxKind, + SyntheticSymbolKind: () => SyntheticSymbolKind, Ternary: () => Ternary, ThrottledCancellationToken: () => ThrottledCancellationToken, TokenClass: () => TokenClass, @@ -197,6 +196,7 @@ __export(typescript_exports, { WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -219,15 +219,23 @@ __export(typescript_exports, { arrayFrom: () => arrayFrom, arrayIsEqualTo: () => arrayIsEqualTo, arrayIsHomogeneous: () => arrayIsHomogeneous, + arrayIsSorted: () => arrayIsSorted, arrayOf: () => arrayOf, arrayReverseIterator: () => arrayReverseIterator, arrayToMap: () => arrayToMap, arrayToMultiMap: () => arrayToMultiMap, arrayToNumericMap: () => arrayToNumericMap, + arraysEqual: () => arraysEqual, assertType: () => assertType, assign: () => assign, + assignHelper: () => assignHelper, + asyncDelegator: () => asyncDelegator, + asyncGeneratorHelper: () => asyncGeneratorHelper, asyncSuperHelper: () => asyncSuperHelper, + asyncValues: () => asyncValues, attachFileToDiagnostics: () => attachFileToDiagnostics, + awaitHelper: () => awaitHelper, + awaiterHelper: () => awaiterHelper, base64decode: () => base64decode, base64encode: () => base64encode, binarySearch: () => binarySearch, @@ -250,16 +258,14 @@ __export(typescript_exports, { canHaveJSDoc: () => canHaveJSDoc, canHaveLocals: () => canHaveLocals, canHaveModifiers: () => canHaveModifiers, - canHaveModuleSpecifier: () => canHaveModuleSpecifier, canHaveSymbol: () => canHaveSymbol, - canIncludeBindAndCheckDiagnostics: () => canIncludeBindAndCheckDiagnostics, + canIncludeBindAndCheckDiagnsotics: () => canIncludeBindAndCheckDiagnsotics, canJsonReportNoInputFiles: () => canJsonReportNoInputFiles, canProduceDiagnostics: () => canProduceDiagnostics, canUsePropertyAccess: () => canUsePropertyAccess, canWatchAffectingLocation: () => canWatchAffectingLocation, canWatchAtTypes: () => canWatchAtTypes, canWatchDirectoryOrFile: () => canWatchDirectoryOrFile, - canWatchDirectoryOrFilePath: () => canWatchDirectoryOrFilePath, cartesianProduct: () => cartesianProduct, cast: () => cast, chainBundle: () => chainBundle, @@ -270,13 +276,16 @@ __export(typescript_exports, { changeFullExtension: () => changeFullExtension, changesAffectModuleResolution: () => changesAffectModuleResolution, changesAffectingProgramStructure: () => changesAffectingProgramStructure, - characterCodeToRegularExpressionFlag: () => characterCodeToRegularExpressionFlag, + characterToRegularExpressionFlag: () => characterToRegularExpressionFlag, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, classHasClassThisAssignment: () => classHasClassThisAssignment, classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, + classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, + classPrivateFieldInHelper: () => classPrivateFieldInHelper, + classPrivateFieldSetHelper: () => classPrivateFieldSetHelper, classicNameResolver: () => classicNameResolver, classifier: () => ts_classifier_exports, cleanExtendedConfigCache: () => cleanExtendedConfigCache, @@ -284,6 +293,7 @@ __export(typescript_exports, { clearMap: () => clearMap, clearSharedExtendedConfigFileWatcher: () => clearSharedExtendedConfigFileWatcher, climbPastPropertyAccess: () => climbPastPropertyAccess, + climbPastPropertyOrElementAccess: () => climbPastPropertyOrElementAccess, clone: () => clone, cloneCompilerOptions: () => cloneCompilerOptions, closeFileWatcher: () => closeFileWatcher, @@ -296,10 +306,12 @@ __export(typescript_exports, { commandLineOptionOfCustomType: () => commandLineOptionOfCustomType, commentPragmas: () => commentPragmas, commonOptionsWithBuild: () => commonOptionsWithBuild, + commonPackageFolders: () => commonPackageFolders, compact: () => compact, compareBooleans: () => compareBooleans, compareDataObjects: () => compareDataObjects, compareDiagnostics: () => compareDiagnostics, + compareDiagnosticsSkipRelatedInformation: () => compareDiagnosticsSkipRelatedInformation, compareEmitHelpers: () => compareEmitHelpers, compareNumberOfDirectorySeparators: () => compareNumberOfDirectorySeparators, comparePaths: () => comparePaths, @@ -313,21 +325,26 @@ __export(typescript_exports, { compareStringsCaseSensitiveUI: () => compareStringsCaseSensitiveUI, compareTextSpans: () => compareTextSpans, compareValues: () => compareValues, + compileOnSaveCommandLineOption: () => compileOnSaveCommandLineOption, compilerOptionsAffectDeclarationPath: () => compilerOptionsAffectDeclarationPath, compilerOptionsAffectEmit: () => compilerOptionsAffectEmit, compilerOptionsAffectSemanticDiagnostics: () => compilerOptionsAffectSemanticDiagnostics, compilerOptionsDidYouMeanDiagnostics: () => compilerOptionsDidYouMeanDiagnostics, compilerOptionsIndicateEsModules: () => compilerOptionsIndicateEsModules, + compose: () => compose, computeCommonSourceDirectoryOfFilenames: () => computeCommonSourceDirectoryOfFilenames, computeLineAndCharacterOfPosition: () => computeLineAndCharacterOfPosition, computeLineOfPosition: () => computeLineOfPosition, computeLineStarts: () => computeLineStarts, computePositionOfLineAndCharacter: () => computePositionOfLineAndCharacter, + computeSignature: () => computeSignature, computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics, computeSuggestionDiagnostics: () => computeSuggestionDiagnostics, computedOptions: () => computedOptions, concatenate: () => concatenate, concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains, + configDirTemplateSubstitutionOptions: () => configDirTemplateSubstitutionOptions, + configDirTemplateSubstitutionWatchOptions: () => configDirTemplateSubstitutionWatchOptions, consumesNodeCoreModules: () => consumesNodeCoreModules, contains: () => contains, containsIgnoredPath: () => containsIgnoredPath, @@ -358,11 +375,16 @@ __export(typescript_exports, { createAccessorPropertySetRedirector: () => createAccessorPropertySetRedirector, createBaseNodeFactory: () => createBaseNodeFactory, createBinaryExpressionTrampoline: () => createBinaryExpressionTrampoline, + createBindingHelper: () => createBindingHelper, + createBuildInfo: () => createBuildInfo, createBuilderProgram: () => createBuilderProgram, - createBuilderProgramUsingIncrementalBuildInfo: () => createBuilderProgramUsingIncrementalBuildInfo, + createBuilderProgramUsingProgramBuildInfo: () => createBuilderProgramUsingProgramBuildInfo, createBuilderStatusReporter: () => createBuilderStatusReporter, + createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -414,7 +436,6 @@ __export(typescript_exports, { createMemberAccessForPropertyName: () => createMemberAccessForPropertyName, createModeAwareCache: () => createModeAwareCache, createModeAwareCacheKey: () => createModeAwareCacheKey, - createModeMismatchDetails: () => createModeMismatchDetails, createModuleNotFoundChain: () => createModuleNotFoundChain, createModuleResolutionCache: () => createModuleResolutionCache, createModuleResolutionLoader: () => createModuleResolutionLoader, @@ -436,7 +457,6 @@ __export(typescript_exports, { createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape, createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon, createProgram: () => createProgram, - createProgramDiagnostics: () => createProgramDiagnostics, createProgramHost: () => createProgramHost, createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral, createQueue: () => createQueue, @@ -486,7 +506,9 @@ __export(typescript_exports, { declarationNameToString: () => declarationNameToString, decodeMappings: () => decodeMappings, decodedTextSpanIntersectsWith: () => decodedTextSpanIntersectsWith, + decorateHelper: () => decorateHelper, deduplicate: () => deduplicate, + defaultIncludeSpec: () => defaultIncludeSpec, defaultInitCompilerOptions: () => defaultInitCompilerOptions, defaultMaximumTruncationLength: () => defaultMaximumTruncationLength, diagnosticCategoryName: () => diagnosticCategoryName, @@ -497,22 +519,27 @@ __export(typescript_exports, { displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, elideNodes: () => elideNodes, + emitComments: () => emitComments, emitDetachedComments: () => emitDetachedComments, emitFiles: () => emitFiles, emitFilesAndReportErrors: () => emitFilesAndReportErrors, emitFilesAndReportErrorsAndGetExitStatus: () => emitFilesAndReportErrorsAndGetExitStatus, emitModuleKindIsNonNodeESM: () => emitModuleKindIsNonNodeESM, emitNewLineBeforeLeadingCommentOfPosition: () => emitNewLineBeforeLeadingCommentOfPosition, + emitNewLineBeforeLeadingComments: () => emitNewLineBeforeLeadingComments, + emitNewLineBeforeLeadingCommentsOfPosition: () => emitNewLineBeforeLeadingCommentsOfPosition, emitResolverSkipsTypeChecking: () => emitResolverSkipsTypeChecking, emitSkippedWithNoDiagnostics: () => emitSkippedWithNoDiagnostics, emptyArray: () => emptyArray, emptyFileSystemEntries: () => emptyFileSystemEntries, emptyMap: () => emptyMap, emptyOptions: () => emptyOptions, + emptySet: () => emptySet, endsWith: () => endsWith, ensurePathIsNonModuleName: () => ensurePathIsNonModuleName, ensureScriptKind: () => ensureScriptKind, @@ -523,6 +550,7 @@ __export(typescript_exports, { equateStringsCaseInsensitive: () => equateStringsCaseInsensitive, equateStringsCaseSensitive: () => equateStringsCaseSensitive, equateValues: () => equateValues, + esDecorateHelper: () => esDecorateHelper, escapeJsxAttributeString: () => escapeJsxAttributeString, escapeLeadingUnderscores: () => escapeLeadingUnderscores, escapeNonAsciiString: () => escapeNonAsciiString, @@ -531,14 +559,15 @@ __export(typescript_exports, { escapeTemplateSubstitution: () => escapeTemplateSubstitution, evaluatorResult: () => evaluatorResult, every: () => every, - exclusivelyPrefixedNodeCoreModules: () => exclusivelyPrefixedNodeCoreModules, executeCommandLine: () => executeCommandLine, expandPreOrPostfixIncrementOrDecrementExpression: () => expandPreOrPostfixIncrementOrDecrementExpression, explainFiles: () => explainFiles, explainIfFileIsRedirectAndImpliedFormat: () => explainIfFileIsRedirectAndImpliedFormat, exportAssignmentIsAlias: () => exportAssignmentIsAlias, + exportStarHelper: () => exportStarHelper, expressionResultIsUnused: () => expressionResultIsUnused, extend: () => extend, + extendsHelper: () => extendsHelper, extensionFromPath: () => extensionFromPath, extensionIsTS: () => extensionIsTS, extensionsNotSupportingExtensionlessResolution: () => extensionsNotSupportingExtensionlessResolution, @@ -565,6 +594,7 @@ __export(typescript_exports, { findLast: () => findLast, findLastIndex: () => findLastIndex, findListItemInfo: () => findListItemInfo, + findMap: () => findMap, findModifier: () => findModifier, findNextToken: () => findNextToken, findPackageJson: () => findPackageJson, @@ -593,10 +623,8 @@ __export(typescript_exports, { forEach: () => forEach, forEachAncestor: () => forEachAncestor, forEachAncestorDirectory: () => forEachAncestorDirectory, - forEachAncestorDirectoryStoppingAtGlobalCache: () => forEachAncestorDirectoryStoppingAtGlobalCache, forEachChild: () => forEachChild, forEachChildRecursively: () => forEachChildRecursively, - forEachDynamicImportOrRequireCall: () => forEachDynamicImportOrRequireCall, forEachEmittedFile: () => forEachEmittedFile, forEachEnclosingBlockScopeContainer: () => forEachEnclosingBlockScopeContainer, forEachEntry: () => forEachEntry, @@ -606,8 +634,6 @@ __export(typescript_exports, { forEachLeadingCommentRange: () => forEachLeadingCommentRange, forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft, forEachNameOfDefaultExport: () => forEachNameOfDefaultExport, - forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName, - forEachProjectReference: () => forEachProjectReference, forEachPropertyAssignment: () => forEachPropertyAssignment, forEachResolvedProjectReference: () => forEachResolvedProjectReference, forEachReturnStatement: () => forEachReturnStatement, @@ -616,6 +642,7 @@ __export(typescript_exports, { forEachTsConfigPropArray: () => forEachTsConfigPropArray, forEachUnique: () => forEachUnique, forEachYieldExpression: () => forEachYieldExpression, + forSomeAncestorDirectory: () => forSomeAncestorDirectory, formatColorAndReset: () => formatColorAndReset, formatDiagnostic: () => formatDiagnostic, formatDiagnostics: () => formatDiagnostics, @@ -626,8 +653,11 @@ __export(typescript_exports, { formatMessage: () => formatMessage, formatStringFromArgs: () => formatStringFromArgs, formatting: () => ts_formatting_exports, + fullTripleSlashAMDReferencePathRegEx: () => fullTripleSlashAMDReferencePathRegEx, + fullTripleSlashReferencePathRegEx: () => fullTripleSlashReferencePathRegEx, generateDjb2Hash: () => generateDjb2Hash, generateTSConfig: () => generateTSConfig, + generatorHelper: () => generatorHelper, getAdjustedReferenceLocation: () => getAdjustedReferenceLocation, getAdjustedRenameLocation: () => getAdjustedRenameLocation, getAliasDeclarationFromName: () => getAliasDeclarationFromName, @@ -639,7 +669,6 @@ __export(typescript_exports, { getAllKeys: () => getAllKeys, getAllProjectOutputs: () => getAllProjectOutputs, getAllSuperTypeNodes: () => getAllSuperTypeNodes, - getAllowImportingTsExtensions: () => getAllowImportingTsExtensions, getAllowJSCompilerOption: () => getAllowJSCompilerOption, getAllowSyntheticDefaultImports: () => getAllowSyntheticDefaultImports, getAncestor: () => getAncestor, @@ -647,6 +676,7 @@ __export(typescript_exports, { getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -687,6 +717,7 @@ __export(typescript_exports, { getContainingObjectLiteralElement: () => getContainingObjectLiteralElement, getContextualTypeFromParent: () => getContextualTypeFromParent, getContextualTypeFromParentOrAncestorTypeNode: () => getContextualTypeFromParentOrAncestorTypeNode, + getCurrentTime: () => getCurrentTime, getDeclarationDiagnostics: () => getDeclarationDiagnostics, getDeclarationEmitExtensionForPath: () => getDeclarationEmitExtensionForPath, getDeclarationEmitOutputFilePath: () => getDeclarationEmitOutputFilePath, @@ -704,7 +735,6 @@ __export(typescript_exports, { getDefaultLibFilePath: () => getDefaultLibFilePath, getDefaultLikeExportInfo: () => getDefaultLikeExportInfo, getDefaultLikeExportNameFromDeclaration: () => getDefaultLikeExportNameFromDeclaration, - getDefaultResolutionModeForFileWorker: () => getDefaultResolutionModeForFileWorker, getDiagnosticText: () => getDiagnosticText, getDiagnosticsWithinSpan: () => getDiagnosticsWithinSpan, getDirectoryPath: () => getDirectoryPath, @@ -735,7 +765,6 @@ __export(typescript_exports, { getEmitFlags: () => getEmitFlags, getEmitHelpers: () => getEmitHelpers, getEmitModuleDetectionKind: () => getEmitModuleDetectionKind, - getEmitModuleFormatOfFileWorker: () => getEmitModuleFormatOfFileWorker, getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, @@ -786,11 +815,11 @@ __export(typescript_exports, { getIdentifierGeneratedImportReference: () => getIdentifierGeneratedImportReference, getIdentifierTypeArguments: () => getIdentifierTypeArguments, getImmediatelyInvokedFunctionExpression: () => getImmediatelyInvokedFunctionExpression, - getImpliedNodeFormatForEmitWorker: () => getImpliedNodeFormatForEmitWorker, getImpliedNodeFormatForFile: () => getImpliedNodeFormatForFile, getImpliedNodeFormatForFileWorker: () => getImpliedNodeFormatForFileWorker, getImportNeedsImportDefaultHelper: () => getImportNeedsImportDefaultHelper, getImportNeedsImportStarHelper: () => getImportNeedsImportStarHelper, + getIndentSize: () => getIndentSize, getIndentString: () => getIndentString, getInferredLibraryNameResolveFrom: () => getInferredLibraryNameResolveFrom, getInitializedVariables: () => getInitializedVariables, @@ -799,7 +828,6 @@ __export(typescript_exports, { getInterfaceBaseTypeNodes: () => getInterfaceBaseTypeNodes, getInternalEmitFlags: () => getInternalEmitFlags, getInvokedExpression: () => getInvokedExpression, - getIsFileExcluded: () => getIsFileExcluded, getIsolatedModules: () => getIsolatedModules, getJSDocAugmentsTag: () => getJSDocAugmentsTag, getJSDocClassTag: () => getJSDocClassTag, @@ -828,6 +856,7 @@ __export(typescript_exports, { getJSDocSatisfiesExpressionType: () => getJSDocSatisfiesExpressionType, getJSDocSatisfiesTag: () => getJSDocSatisfiesTag, getJSDocTags: () => getJSDocTags, + getJSDocTagsNoCache: () => getJSDocTagsNoCache, getJSDocTemplateTag: () => getJSDocTemplateTag, getJSDocThisTag: () => getJSDocThisTag, getJSDocType: () => getJSDocType, @@ -847,12 +876,11 @@ __export(typescript_exports, { getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode, getLeftmostAccessExpression: () => getLeftmostAccessExpression, getLeftmostExpression: () => getLeftmostExpression, - getLibFileNameFromLibReference: () => getLibFileNameFromLibReference, - getLibNameFromLibReference: () => getLibNameFromLibReference, getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName, getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition, getLineInfo: () => getLineInfo, getLineOfLocalPosition: () => getLineOfLocalPosition, + getLineOfLocalPositionFromLineMap: () => getLineOfLocalPositionFromLineMap, getLineStartPositionForPosition: () => getLineStartPositionForPosition, getLineStarts: () => getLineStarts, getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => getLinesBetweenPositionAndNextNonWhitespaceCharacter, @@ -894,6 +922,7 @@ __export(typescript_exports, { getNameOfScriptTarget: () => getNameOfScriptTarget, getNameOrArgument: () => getNameOrArgument, getNameTable: () => getNameTable, + getNamesForExportedSymbol: () => getNamesForExportedSymbol, getNamespaceDeclarationNode: () => getNamespaceDeclarationNode, getNewLineCharacter: () => getNewLineCharacter, getNewLineKind: () => getNewLineKind, @@ -910,57 +939,62 @@ __export(typescript_exports, { getNonAssignmentOperatorForCompoundAssignment: () => getNonAssignmentOperatorForCompoundAssignment, getNonAugmentationDeclaration: () => getNonAugmentationDeclaration, getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode, - getNonIncrementalBuildInfoRoots: () => getNonIncrementalBuildInfoRoots, - getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode, getNormalizedAbsolutePath: () => getNormalizedAbsolutePath, getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot, getNormalizedPathComponents: () => getNormalizedPathComponents, getObjectFlags: () => getObjectFlags, + getOperator: () => getOperator, getOperatorAssociativity: () => getOperatorAssociativity, getOperatorPrecedence: () => getOperatorPrecedence, getOptionFromName: () => getOptionFromName, getOptionsForLibraryResolution: () => getOptionsForLibraryResolution, getOptionsNameMap: () => getOptionsNameMap, - getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue, - getOptionsSyntaxByValue: () => getOptionsSyntaxByValue, getOrCreateEmitNode: () => getOrCreateEmitNode, + getOrCreateExternalHelpersModuleNameIfNeeded: () => getOrCreateExternalHelpersModuleNameIfNeeded, getOrUpdate: () => getOrUpdate, getOriginalNode: () => getOriginalNode, getOriginalNodeId: () => getOriginalNodeId, + getOriginalSourceFile: () => getOriginalSourceFile, getOutputDeclarationFileName: () => getOutputDeclarationFileName, getOutputDeclarationFileNameWorker: () => getOutputDeclarationFileNameWorker, getOutputExtension: () => getOutputExtension, getOutputFileNames: () => getOutputFileNames, getOutputJSFileNameWorker: () => getOutputJSFileNameWorker, getOutputPathsFor: () => getOutputPathsFor, + getOutputPathsForBundle: () => getOutputPathsForBundle, getOwnEmitOutputFilePath: () => getOwnEmitOutputFilePath, getOwnKeys: () => getOwnKeys, getOwnValues: () => getOwnValues, + getPackageJsonInfo: () => getPackageJsonInfo, getPackageJsonTypesVersionsPaths: () => getPackageJsonTypesVersionsPaths, + getPackageJsonsVisibleToFile: () => getPackageJsonsVisibleToFile, getPackageNameFromTypesPackageName: () => getPackageNameFromTypesPackageName, getPackageScopeForPath: () => getPackageScopeForPath, getParameterSymbolFromJSDoc: () => getParameterSymbolFromJSDoc, + getParameterTypeNode: () => getParameterTypeNode, getParentNodeInSpan: () => getParentNodeInSpan, getParseTreeNode: () => getParseTreeNode, getParsedCommandLineOfConfigFile: () => getParsedCommandLineOfConfigFile, getPathComponents: () => getPathComponents, + getPathComponentsRelativeTo: () => getPathComponentsRelativeTo, getPathFromPathComponents: () => getPathFromPathComponents, getPathUpdater: () => getPathUpdater, getPathsBasePath: () => getPathsBasePath, getPatternFromSpec: () => getPatternFromSpec, - getPendingEmitKindWithSeen: () => getPendingEmitKindWithSeen, + getPendingEmitKind: () => getPendingEmitKind, getPositionOfLineAndCharacter: () => getPositionOfLineAndCharacter, getPossibleGenericSignatures: () => getPossibleGenericSignatures, getPossibleOriginalInputExtensionForExtension: () => getPossibleOriginalInputExtensionForExtension, - getPossibleOriginalInputPathWithoutChangingExt: () => getPossibleOriginalInputPathWithoutChangingExt, getPossibleTypeArgumentsInfo: () => getPossibleTypeArgumentsInfo, getPreEmitDiagnostics: () => getPreEmitDiagnostics, getPrecedingNonSpaceCharacterPosition: () => getPrecedingNonSpaceCharacterPosition, getPrivateIdentifier: () => getPrivateIdentifier, getProperties: () => getProperties, getProperty: () => getProperty, + getPropertyArrayElementValue: () => getPropertyArrayElementValue, getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, + getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, @@ -984,14 +1018,13 @@ __export(typescript_exports, { getResolvePackageJsonExports: () => getResolvePackageJsonExports, getResolvePackageJsonImports: () => getResolvePackageJsonImports, getResolvedExternalModuleName: () => getResolvedExternalModuleName, - getResolvedModuleFromResolution: () => getResolvedModuleFromResolution, - getResolvedTypeReferenceDirectiveFromResolution: () => getResolvedTypeReferenceDirectiveFromResolution, getRestIndicatorOfBindingOrAssignmentElement: () => getRestIndicatorOfBindingOrAssignmentElement, getRestParameterElementType: () => getRestParameterElementType, getRightMostAssignedExpression: () => getRightMostAssignedExpression, getRootDeclaration: () => getRootDeclaration, getRootDirectoryOfResolutionCache: () => getRootDirectoryOfResolutionCache, getRootLength: () => getRootLength, + getRootPathSplitLength: () => getRootPathSplitLength, getScriptKind: () => getScriptKind, getScriptKindFromFileName: () => getScriptKindFromFileName, getScriptTargetFeatures: () => getScriptTargetFeatures, @@ -1003,12 +1036,14 @@ __export(typescript_exports, { getSetAccessorValueParameter: () => getSetAccessorValueParameter, getSetExternalModuleIndicator: () => getSetExternalModuleIndicator, getShebang: () => getShebang, + getSingleInitializerOfVariableStatementOrPropertyDeclaration: () => getSingleInitializerOfVariableStatementOrPropertyDeclaration, getSingleVariableOfVariableStatement: () => getSingleVariableOfVariableStatement, getSnapshotText: () => getSnapshotText, getSnippetElement: () => getSnippetElement, getSourceFileOfModule: () => getSourceFileOfModule, getSourceFileOfNode: () => getSourceFileOfNode, getSourceFilePathInNewDir: () => getSourceFilePathInNewDir, + getSourceFilePathInNewDirWorker: () => getSourceFilePathInNewDirWorker, getSourceFileVersionAsHashFromText: () => getSourceFileVersionAsHashFromText, getSourceFilesToEmit: () => getSourceFilesToEmit, getSourceMapRange: () => getSourceMapRange, @@ -1031,6 +1066,7 @@ __export(typescript_exports, { getSwitchedType: () => getSwitchedType, getSymbolId: () => getSymbolId, getSymbolNameForPrivateIdentifier: () => getSymbolNameForPrivateIdentifier, + getSymbolParentOrFail: () => getSymbolParentOrFail, getSymbolTarget: () => getSymbolTarget, getSyntacticClassifications: () => getSyntacticClassifications, getSyntacticModifierFlags: () => getSyntacticModifierFlags, @@ -1061,6 +1097,7 @@ __export(typescript_exports, { getTouchingToken: () => getTouchingToken, getTrailingCommentRanges: () => getTrailingCommentRanges, getTrailingSemicolonDeferringWriter: () => getTrailingSemicolonDeferringWriter, + getTransformFlagsSubtreeExclusions: () => getTransformFlagsSubtreeExclusions, getTransformers: () => getTransformers, getTsBuildInfoEmitOutputFilePath: () => getTsBuildInfoEmitOutputFilePath, getTsConfigObjectLiteralExpression: () => getTsConfigObjectLiteralExpression, @@ -1088,6 +1125,7 @@ __export(typescript_exports, { hasAccessorModifier: () => hasAccessorModifier, hasAmbientModifier: () => hasAmbientModifier, hasChangesInResolutions: () => hasChangesInResolutions, + hasChildOfKind: () => hasChildOfKind, hasContextSensitiveParameters: () => hasContextSensitiveParameters, hasDecorators: () => hasDecorators, hasDocComment: () => hasDocComment, @@ -1096,7 +1134,6 @@ __export(typescript_exports, { hasEffectiveModifiers: () => hasEffectiveModifiers, hasEffectiveReadonlyModifier: () => hasEffectiveReadonlyModifier, hasExtension: () => hasExtension, - hasImplementationTSFileExtension: () => hasImplementationTSFileExtension, hasIndexSignature: () => hasIndexSignature, hasInferredType: () => hasInferredType, hasInitializer: () => hasInitializer, @@ -1124,6 +1161,7 @@ __export(typescript_exports, { hasType: () => hasType, hasTypeArguments: () => hasTypeArguments, hasZeroOrOneAsteriskCharacter: () => hasZeroOrOneAsteriskCharacter, + helperString: () => helperString, hostGetCanonicalFileName: () => hostGetCanonicalFileName, hostUsesCaseSensitiveFileNames: () => hostUsesCaseSensitiveFileNames, idText: () => idText, @@ -1133,8 +1171,9 @@ __export(typescript_exports, { identitySourceMapConsumer: () => identitySourceMapConsumer, ignoreSourceNewlines: () => ignoreSourceNewlines, ignoredPaths: () => ignoredPaths, + importDefaultHelper: () => importDefaultHelper, importFromModuleSpecifier: () => importFromModuleSpecifier, - importSyntaxAffectsModuleResolution: () => importSyntaxAffectsModuleResolution, + importStarHelper: () => importStarHelper, indexOfAnyCharCode: () => indexOfAnyCharCode, indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, @@ -1142,6 +1181,7 @@ __export(typescript_exports, { injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, + insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, insertStatementAfterCustomPrologue: () => insertStatementAfterCustomPrologue, insertStatementAfterStandardPrologue: () => insertStatementAfterStandardPrologue, @@ -1157,9 +1197,11 @@ __export(typescript_exports, { isAccessibilityModifier: () => isAccessibilityModifier, isAccessor: () => isAccessor, isAccessorModifier: () => isAccessorModifier, + isAliasSymbolDeclaration: () => isAliasSymbolDeclaration, isAliasableExpression: () => isAliasableExpression, isAmbientModule: () => isAmbientModule, isAmbientPropertyDeclaration: () => isAmbientPropertyDeclaration, + isAnonymousFunctionDefinition: () => isAnonymousFunctionDefinition, isAnyDirectorySeparator: () => isAnyDirectorySeparator, isAnyImportOrBareOrAccessedRequire: () => isAnyImportOrBareOrAccessedRequire, isAnyImportOrReExport: () => isAnyImportOrReExport, @@ -1195,7 +1237,6 @@ __export(typescript_exports, { isAwaitKeyword: () => isAwaitKeyword, isBigIntLiteral: () => isBigIntLiteral, isBinaryExpression: () => isBinaryExpression, - isBinaryLogicalOperator: () => isBinaryLogicalOperator, isBinaryOperatorToken: () => isBinaryOperatorToken, isBindableObjectDefinePropertyCall: () => isBindableObjectDefinePropertyCall, isBindableStaticAccessExpression: () => isBindableStaticAccessExpression, @@ -1215,9 +1256,9 @@ __export(typescript_exports, { isBooleanLiteral: () => isBooleanLiteral, isBreakOrContinueStatement: () => isBreakOrContinueStatement, isBreakStatement: () => isBreakStatement, - isBuildCommand: () => isBuildCommand, + isBuild: () => isBuild, isBuildInfoFile: () => isBuildInfoFile, - isBuilderProgram: () => isBuilderProgram, + isBuilderProgram: () => isBuilderProgram2, isBundle: () => isBundle, isCallChain: () => isCallChain, isCallExpression: () => isCallExpression, @@ -1236,6 +1277,7 @@ __export(typescript_exports, { isCatchClauseVariableDeclaration: () => isCatchClauseVariableDeclaration, isCatchClauseVariableDeclarationOrBindingElement: () => isCatchClauseVariableDeclarationOrBindingElement, isCheckJsEnabledForFile: () => isCheckJsEnabledForFile, + isChildOfNodeWithKind: () => isChildOfNodeWithKind, isCircularBuildOrder: () => isCircularBuildOrder, isClassDeclaration: () => isClassDeclaration, isClassElement: () => isClassElement, @@ -1247,6 +1289,7 @@ __export(typescript_exports, { isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, + isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, isCommaListExpression: () => isCommaListExpression, @@ -1289,13 +1332,16 @@ __export(typescript_exports, { isDeleteTarget: () => isDeleteTarget, isDeprecatedDeclaration: () => isDeprecatedDeclaration, isDestructuringAssignment: () => isDestructuringAssignment, + isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, + isESSymbolIdentifier: () => isESSymbolIdentifier, isEffectiveExternalModule: () => isEffectiveExternalModule, + isEffectiveModuleDeclaration: () => isEffectiveModuleDeclaration, isEffectiveStrictModeSourceFile: () => isEffectiveStrictModeSourceFile, isElementAccessChain: () => isElementAccessChain, isElementAccessExpression: () => isElementAccessExpression, @@ -1365,11 +1411,13 @@ __export(typescript_exports, { isFunctionOrModuleBlock: () => isFunctionOrModuleBlock, isFunctionSymbol: () => isFunctionSymbol, isFunctionTypeNode: () => isFunctionTypeNode, + isFutureReservedKeyword: () => isFutureReservedKeyword, isGeneratedIdentifier: () => isGeneratedIdentifier, isGeneratedPrivateIdentifier: () => isGeneratedPrivateIdentifier, isGetAccessor: () => isGetAccessor, isGetAccessorDeclaration: () => isGetAccessorDeclaration, isGetOrSetAccessorDeclaration: () => isGetOrSetAccessorDeclaration, + isGlobalDeclaration: () => isGlobalDeclaration, isGlobalScopeAugmentation: () => isGlobalScopeAugmentation, isGlobalSourceFile: () => isGlobalSourceFile, isGrammarError: () => isGrammarError, @@ -1402,7 +1450,7 @@ __export(typescript_exports, { isImportSpecifier: () => isImportSpecifier, isImportTypeAssertionContainer: () => isImportTypeAssertionContainer, isImportTypeNode: () => isImportTypeNode, - isImportable: () => isImportable, + isImportableFile: () => isImportableFile, isInComment: () => isInComment, isInCompoundLikeAssignment: () => isInCompoundLikeAssignment, isInExpressionContext: () => isInExpressionContext, @@ -1417,8 +1465,6 @@ __export(typescript_exports, { isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, isInTypeQuery: () => isInTypeQuery, - isIncrementalBuildInfo: () => isIncrementalBuildInfo, - isIncrementalBundleEmitBuildInfo: () => isIncrementalBundleEmitBuildInfo, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -1501,7 +1547,6 @@ __export(typescript_exports, { isJsxAttributeLike: () => isJsxAttributeLike, isJsxAttributeName: () => isJsxAttributeName, isJsxAttributes: () => isJsxAttributes, - isJsxCallLike: () => isJsxCallLike, isJsxChild: () => isJsxChild, isJsxClosingElement: () => isJsxClosingElement, isJsxClosingFragment: () => isJsxClosingFragment, @@ -1526,6 +1571,7 @@ __export(typescript_exports, { isLabeledStatement: () => isLabeledStatement, isLateVisibilityPaintedStatement: () => isLateVisibilityPaintedStatement, isLeftHandSideExpression: () => isLeftHandSideExpression, + isLeftHandSideOfAssignment: () => isLeftHandSideOfAssignment, isLet: () => isLet, isLineBreak: () => isLineBreak, isLiteralComputedPropertyDeclarationName: () => isLiteralComputedPropertyDeclarationName, @@ -1533,7 +1579,10 @@ __export(typescript_exports, { isLiteralExpressionOfObject: () => isLiteralExpressionOfObject, isLiteralImportTypeNode: () => isLiteralImportTypeNode, isLiteralKind: () => isLiteralKind, + isLiteralLikeAccess: () => isLiteralLikeAccess, + isLiteralLikeElementAccess: () => isLiteralLikeElementAccess, isLiteralNameOfPropertyDeclarationOrIndexAccess: () => isLiteralNameOfPropertyDeclarationOrIndexAccess, + isLiteralTypeLikeExpression: () => isLiteralTypeLikeExpression, isLiteralTypeLiteral: () => isLiteralTypeLiteral, isLiteralTypeNode: () => isLiteralTypeNode, isLocalName: () => isLocalName, @@ -1558,7 +1607,6 @@ __export(typescript_exports, { isModuleBlock: () => isModuleBlock, isModuleBody: () => isModuleBody, isModuleDeclaration: () => isModuleDeclaration, - isModuleExportName: () => isModuleExportName, isModuleExportsAccessExpression: () => isModuleExportsAccessExpression, isModuleIdentifier: () => isModuleIdentifier, isModuleName: () => isModuleName, @@ -1568,6 +1616,7 @@ __export(typescript_exports, { isModuleWithStringLiteralName: () => isModuleWithStringLiteralName, isNameOfFunctionDeclaration: () => isNameOfFunctionDeclaration, isNameOfModuleDeclaration: () => isNameOfModuleDeclaration, + isNamedClassElement: () => isNamedClassElement, isNamedDeclaration: () => isNamedDeclaration, isNamedEvaluation: () => isNamedEvaluation, isNamedEvaluationSource: () => isNamedEvaluationSource, @@ -1584,8 +1633,8 @@ __export(typescript_exports, { isNamespaceReexportDeclaration: () => isNamespaceReexportDeclaration, isNewExpression: () => isNewExpression, isNewExpressionTarget: () => isNewExpressionTarget, - isNewScopeNode: () => isNewScopeNode, isNoSubstitutionTemplateLiteral: () => isNoSubstitutionTemplateLiteral, + isNode: () => isNode, isNodeArray: () => isNodeArray, isNodeArrayMultiLine: () => isNodeArrayMultiLine, isNodeDescendantOf: () => isNodeDescendantOf, @@ -1594,11 +1643,14 @@ __export(typescript_exports, { isNodeModulesDirectory: () => isNodeModulesDirectory, isNodeWithPossibleHoistedDeclaration: () => isNodeWithPossibleHoistedDeclaration, isNonContextualKeyword: () => isNonContextualKeyword, + isNonExportDefaultModifier: () => isNonExportDefaultModifier, isNonGlobalAmbientModule: () => isNonGlobalAmbientModule, + isNonGlobalDeclaration: () => isNonGlobalDeclaration, isNonNullAccess: () => isNonNullAccess, isNonNullChain: () => isNonNullChain, isNonNullExpression: () => isNonNullExpression, isNonStaticMethodOrAccessorWithPrivateName: () => isNonStaticMethodOrAccessorWithPrivateName, + isNotEmittedOrPartiallyEmittedNode: () => isNotEmittedOrPartiallyEmittedNode, isNotEmittedStatement: () => isNotEmittedStatement, isNullishCoalesce: () => isNullishCoalesce, isNumber: () => isNumber, @@ -1614,6 +1666,7 @@ __export(typescript_exports, { isObjectLiteralMethod: () => isObjectLiteralMethod, isObjectLiteralOrClassExpressionMethodOrAccessor: () => isObjectLiteralOrClassExpressionMethodOrAccessor, isObjectTypeDeclaration: () => isObjectTypeDeclaration, + isOctalDigit: () => isOctalDigit, isOmittedExpression: () => isOmittedExpression, isOptionalChain: () => isOptionalChain, isOptionalChainRoot: () => isOptionalChainRoot, @@ -1633,7 +1686,6 @@ __export(typescript_exports, { isParseTreeNode: () => isParseTreeNode, isPartOfParameterDeclaration: () => isPartOfParameterDeclaration, isPartOfTypeNode: () => isPartOfTypeNode, - isPartOfTypeOnlyImportOrExportDeclaration: () => isPartOfTypeOnlyImportOrExportDeclaration, isPartOfTypeQuery: () => isPartOfTypeQuery, isPartiallyEmittedExpression: () => isPartiallyEmittedExpression, isPatternMatch: () => isPatternMatch, @@ -1648,6 +1700,7 @@ __export(typescript_exports, { isPrivateIdentifierClassElementDeclaration: () => isPrivateIdentifierClassElementDeclaration, isPrivateIdentifierPropertyAccessExpression: () => isPrivateIdentifierPropertyAccessExpression, isPrivateIdentifierSymbol: () => isPrivateIdentifierSymbol, + isProgramBundleEmitBuildInfo: () => isProgramBundleEmitBuildInfo, isProgramUptoDate: () => isProgramUptoDate, isPrologueDirective: () => isPrologueDirective, isPropertyAccessChain: () => isPropertyAccessChain, @@ -1660,6 +1713,7 @@ __export(typescript_exports, { isPropertyName: () => isPropertyName, isPropertyNameLiteral: () => isPropertyNameLiteral, isPropertySignature: () => isPropertySignature, + isProtoSetter: () => isProtoSetter, isPrototypeAccess: () => isPrototypeAccess, isPrototypePropertyAssignment: () => isPrototypePropertyAssignment, isPunctuation: () => isPunctuation, @@ -1669,6 +1723,7 @@ __export(typescript_exports, { isQuestionOrExclamationToken: () => isQuestionOrExclamationToken, isQuestionOrPlusOrMinusToken: () => isQuestionOrPlusOrMinusToken, isQuestionToken: () => isQuestionToken, + isRawSourceMap: () => isRawSourceMap, isReadonlyKeyword: () => isReadonlyKeyword, isReadonlyKeywordOrPlusOrMinusToken: () => isReadonlyKeywordOrPlusOrMinusToken, isRecognizedTripleSlashComment: () => isRecognizedTripleSlashComment, @@ -1690,23 +1745,24 @@ __export(typescript_exports, { isRootedDiskPath: () => isRootedDiskPath, isSameEntityName: () => isSameEntityName, isSatisfiesExpression: () => isSatisfiesExpression, + isScopeMarker: () => isScopeMarker, isSemicolonClassElement: () => isSemicolonClassElement, isSetAccessor: () => isSetAccessor, isSetAccessorDeclaration: () => isSetAccessorDeclaration, + isShebangTrivia: () => isShebangTrivia, isShiftOperatorOrHigher: () => isShiftOperatorOrHigher, isShorthandAmbientModuleSymbol: () => isShorthandAmbientModuleSymbol, isShorthandPropertyAssignment: () => isShorthandPropertyAssignment, - isSideEffectImport: () => isSideEffectImport, isSignedNumericLiteral: () => isSignedNumericLiteral, isSimpleCopiableExpression: () => isSimpleCopiableExpression, isSimpleInlineableExpression: () => isSimpleInlineableExpression, + isSimpleParameter: () => isSimpleParameter, isSimpleParameterList: () => isSimpleParameterList, isSingleOrDoubleQuote: () => isSingleOrDoubleQuote, - isSolutionConfig: () => isSolutionConfig, - isSourceElement: () => isSourceElement, isSourceFile: () => isSourceFile, isSourceFileFromLibrary: () => isSourceFileFromLibrary, isSourceFileJS: () => isSourceFileJS, + isSourceFileNotJS: () => isSourceFileNotJS, isSourceFileNotJson: () => isSourceFileNotJson, isSourceMapping: () => isSourceMapping, isSpecialPropertyDeclaration: () => isSpecialPropertyDeclaration, @@ -1719,6 +1775,7 @@ __export(typescript_exports, { isStatic: () => isStatic, isStaticModifier: () => isStaticModifier, isString: () => isString, + isStringAKeyword: () => isStringAKeyword, isStringANonContextualKeyword: () => isStringANonContextualKeyword, isStringAndEmptyAnonymousObjectIntersection: () => isStringAndEmptyAnonymousObjectIntersection, isStringDoubleQuoted: () => isStringDoubleQuoted, @@ -1731,6 +1788,7 @@ __export(typescript_exports, { isStringTextContainingNode: () => isStringTextContainingNode, isSuperCall: () => isSuperCall, isSuperKeyword: () => isSuperKeyword, + isSuperOrSuperProperty: () => isSuperOrSuperProperty, isSuperProperty: () => isSuperProperty, isSupportedSourceFileName: () => isSupportedSourceFileName, isSwitchStatement: () => isSwitchStatement, @@ -1776,6 +1834,7 @@ __export(typescript_exports, { isTypeDeclaration: () => isTypeDeclaration, isTypeElement: () => isTypeElement, isTypeKeyword: () => isTypeKeyword, + isTypeKeywordToken: () => isTypeKeywordToken, isTypeKeywordTokenOrIdentifier: () => isTypeKeywordTokenOrIdentifier, isTypeLiteralNode: () => isTypeLiteralNode, isTypeNode: () => isTypeNode, @@ -1811,6 +1870,7 @@ __export(typescript_exports, { isVariableDeclarationInitializedToRequire: () => isVariableDeclarationInitializedToRequire, isVariableDeclarationList: () => isVariableDeclarationList, isVariableLike: () => isVariableLike, + isVariableLikeOrAccessor: () => isVariableLikeOrAccessor, isVariableStatement: () => isVariableStatement, isVoidExpression: () => isVoidExpression, isWatchSet: () => isWatchSet, @@ -1829,6 +1889,10 @@ __export(typescript_exports, { libMap: () => libMap, libs: () => libs, lineBreakPart: () => lineBreakPart, + linkNamePart: () => linkNamePart, + linkPart: () => linkPart, + linkTextPart: () => linkTextPart, + listFiles: () => listFiles, loadModuleFromGlobalCache: () => loadModuleFromGlobalCache, loadWithModeAwareCache: () => loadWithModeAwareCache, makeIdentifierFromModuleName: () => makeIdentifierFromModuleName, @@ -1838,6 +1902,7 @@ __export(typescript_exports, { map: () => map, mapAllOrFail: () => mapAllOrFail, mapDefined: () => mapDefined, + mapDefinedEntries: () => mapDefinedEntries, mapDefinedIterator: () => mapDefinedIterator, mapEntries: () => mapEntries, mapIterator: () => mapIterator, @@ -1847,20 +1912,18 @@ __export(typescript_exports, { matchPatternOrExact: () => matchPatternOrExact, matchedText: () => matchedText, matchesExclude: () => matchesExclude, - matchesExcludeWorker: () => matchesExcludeWorker, - maxBy: () => maxBy, maybeBind: () => maybeBind, maybeSetLocalizedDiagnosticMessages: () => maybeSetLocalizedDiagnosticMessages, memoize: () => memoize, + memoizeCached: () => memoizeCached, memoizeOne: () => memoizeOne, + memoizeWeak: () => memoizeWeak, + metadataHelper: () => metadataHelper, min: () => min, minAndMax: () => minAndMax, missingFileModifiedTime: () => missingFileModifiedTime, modifierToFlag: () => modifierToFlag, modifiersToFlags: () => modifiersToFlags, - moduleExportNameIsDefault: () => moduleExportNameIsDefault, - moduleExportNameTextEscaped: () => moduleExportNameTextEscaped, - moduleExportNameTextUnescaped: () => moduleExportNameTextUnescaped, moduleOptionDeclaration: () => moduleOptionDeclaration, moduleResolutionIsEqualTo: () => moduleResolutionIsEqualTo, moduleResolutionNameAndModeGetter: () => moduleResolutionNameAndModeGetter, @@ -1869,7 +1932,6 @@ __export(typescript_exports, { moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules, moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier, moduleSpecifiers: () => ts_moduleSpecifiers_exports, - moduleSupportsImportAttributes: () => moduleSupportsImportAttributes, moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier, moveEmitHelpers: () => moveEmitHelpers, moveRangeEnd: () => moveRangeEnd, @@ -1888,7 +1950,6 @@ __export(typescript_exports, { noTransformers: () => noTransformers, noTruncationMaximumTruncationLength: () => noTruncationMaximumTruncationLength, nodeCanBeDecorated: () => nodeCanBeDecorated, - nodeCoreModules: () => nodeCoreModules, nodeHasName: () => nodeHasName, nodeIsDecorated: () => nodeIsDecorated, nodeIsMissing: () => nodeIsMissing, @@ -1902,11 +1963,11 @@ __export(typescript_exports, { nodePosToString: () => nodePosToString, nodeSeenTracker: () => nodeSeenTracker, nodeStartsNewLexicalEnvironment: () => nodeStartsNewLexicalEnvironment, + nodeToDisplayParts: () => nodeToDisplayParts, noop: () => noop, noopFileWatcher: () => noopFileWatcher, normalizePath: () => normalizePath, normalizeSlashes: () => normalizeSlashes, - normalizeSpans: () => normalizeSpans, not: () => not, notImplemented: () => notImplemented, notImplementedResolver: () => notImplementedResolver, @@ -1921,11 +1982,13 @@ __export(typescript_exports, { optionsForBuild: () => optionsForBuild, optionsForWatch: () => optionsForWatch, optionsHaveChanges: () => optionsHaveChanges, + optionsHaveModuleResolutionChanges: () => optionsHaveModuleResolutionChanges, or: () => or, orderedRemoveItem: () => orderedRemoveItem, orderedRemoveItemAt: () => orderedRemoveItemAt, packageIdToPackageName: () => packageIdToPackageName, packageIdToString: () => packageIdToString, + paramHelper: () => paramHelper, parameterIsThisKeyword: () => parameterIsThisKeyword, parameterNamePart: () => parameterNamePart, parseBaseNodeFactory: () => parseBaseNodeFactory, @@ -1956,8 +2019,10 @@ __export(typescript_exports, { pathIsBareSpecifier: () => pathIsBareSpecifier, pathIsRelative: () => pathIsRelative, patternText: () => patternText, + perfLogger: () => perfLogger, performIncrementalCompilation: () => performIncrementalCompilation, performance: () => ts_performance_exports, + plainJSErrors: () => plainJSErrors, positionBelongsToNode: () => positionBelongsToNode, positionIsASICandidate: () => positionIsASICandidate, positionIsSynthesized: () => positionIsSynthesized, @@ -1970,6 +2035,7 @@ __export(typescript_exports, { programContainsEsModules: () => programContainsEsModules, programContainsModules: () => programContainsModules, projectReferenceIsEqualTo: () => projectReferenceIsEqualTo, + propKeyHelper: () => propKeyHelper, propertyNamePart: () => propertyNamePart, pseudoBigIntToString: () => pseudoBigIntToString, punctuationPart: () => punctuationPart, @@ -1992,6 +2058,7 @@ __export(typescript_exports, { rangeStartPositionsAreOnSameLine: () => rangeStartPositionsAreOnSameLine, readBuilderProgram: () => readBuilderProgram, readConfigFile: () => readConfigFile, + readHelper: () => readHelper, readJson: () => readJson, readJsonConfigFile: () => readJsonConfigFile, readJsonOrUndefined: () => readJsonOrUndefined, @@ -2002,7 +2069,7 @@ __export(typescript_exports, { reducePathComponents: () => reducePathComponents, refactor: () => ts_refactor_exports, regExpEscape: () => regExpEscape, - regularExpressionFlagToCharacterCode: () => regularExpressionFlagToCharacterCode, + regularExpressionFlagToCharacter: () => regularExpressionFlagToCharacter, relativeComplement: () => relativeComplement, removeAllComments: () => removeAllComments, removeEmitHelper: () => removeEmitHelper, @@ -2010,6 +2077,7 @@ __export(typescript_exports, { removeFileExtension: () => removeFileExtension, removeIgnoredPath: () => removeIgnoredPath, removeMinAndVersionNumbers: () => removeMinAndVersionNumbers, + removeOptionality: () => removeOptionality, removePrefix: () => removePrefix, removeSuffix: () => removeSuffix, removeTrailingDirectorySeparator: () => removeTrailingDirectorySeparator, @@ -2028,17 +2096,20 @@ __export(typescript_exports, { resolveTripleslashReference: () => resolveTripleslashReference, resolveTypeReferenceDirective: () => resolveTypeReferenceDirective, resolvingEmptyArray: () => resolvingEmptyArray, + restHelper: () => restHelper, returnFalse: () => returnFalse, returnNoopFileWatcher: () => returnNoopFileWatcher, returnTrue: () => returnTrue, returnUndefined: () => returnUndefined, returnsPromise: () => returnsPromise, - rewriteModuleSpecifier: () => rewriteModuleSpecifier, + runInitializersHelper: () => runInitializersHelper, sameFlatMap: () => sameFlatMap, sameMap: () => sameMap, sameMapping: () => sameMapping, + scanShebangTrivia: () => scanShebangTrivia, scanTokenAtPosition: () => scanTokenAtPosition, scanner: () => scanner, + screenStartingMessageCodes: () => screenStartingMessageCodes, semanticDiagnosticsOptionDeclarations: () => semanticDiagnosticsOptionDeclarations, serializeCompilerOptions: () => serializeCompilerOptions, server: () => ts_server_exports4, @@ -2046,13 +2117,16 @@ __export(typescript_exports, { setCommentRange: () => setCommentRange, setConfigFileInOptions: () => setConfigFileInOptions, setConstantValue: () => setConstantValue, + setEachParent: () => setEachParent, setEmitFlags: () => setEmitFlags, + setFunctionNameHelper: () => setFunctionNameHelper, setGetSourceFileAsHashVersioned: () => setGetSourceFileAsHashVersioned, setIdentifierAutoGenerate: () => setIdentifierAutoGenerate, setIdentifierGeneratedImportReference: () => setIdentifierGeneratedImportReference, setIdentifierTypeArguments: () => setIdentifierTypeArguments, setInternalEmitFlags: () => setInternalEmitFlags, setLocalizedDiagnosticMessages: () => setLocalizedDiagnosticMessages, + setModuleDefaultHelper: () => setModuleDefaultHelper, setNodeChildren: () => setNodeChildren, setNodeFlags: () => setNodeFlags, setObjectAllocator: () => setObjectAllocator, @@ -2079,9 +2153,9 @@ __export(typescript_exports, { setValueDeclaration: () => setValueDeclaration, shouldAllowImportingTsExtension: () => shouldAllowImportingTsExtension, shouldPreserveConstEnums: () => shouldPreserveConstEnums, - shouldRewriteModuleSpecifier: () => shouldRewriteModuleSpecifier, shouldUseUriStyleNodeCoreModules: () => shouldUseUriStyleNodeCoreModules, showModuleSpecifier: () => showModuleSpecifier, + signatureHasLiteralTypes: () => signatureHasLiteralTypes, signatureHasRestParameter: () => signatureHasRestParameter, signatureToDisplayParts: () => signatureToDisplayParts, single: () => single, @@ -2090,17 +2164,18 @@ __export(typescript_exports, { singleOrMany: () => singleOrMany, singleOrUndefined: () => singleOrUndefined, skipAlias: () => skipAlias, + skipAssertions: () => skipAssertions, skipConstraint: () => skipConstraint, skipOuterExpressions: () => skipOuterExpressions, skipParentheses: () => skipParentheses, skipPartiallyEmittedExpressions: () => skipPartiallyEmittedExpressions, skipTrivia: () => skipTrivia, skipTypeChecking: () => skipTypeChecking, - skipTypeCheckingIgnoringNoCheck: () => skipTypeCheckingIgnoringNoCheck, skipTypeParentheses: () => skipTypeParentheses, skipWhile: () => skipWhile, sliceAfter: () => sliceAfter, some: () => some, + sort: () => sort, sortAndDeduplicate: () => sortAndDeduplicate, sortAndDeduplicateDiagnostics: () => sortAndDeduplicateDiagnostics, sourceFileAffectingCompilerOptions: () => sourceFileAffectingCompilerOptions, @@ -2109,6 +2184,8 @@ __export(typescript_exports, { sourceMapCommentRegExpDontCareLineStart: () => sourceMapCommentRegExpDontCareLineStart, spacePart: () => spacePart, spanMap: () => spanMap, + spreadArrayHelper: () => spreadArrayHelper, + stableSort: () => stableSort, startEndContainsRange: () => startEndContainsRange, startEndOverlapsWithStartEnd: () => startEndOverlapsWithStartEnd, startOnNewLine: () => startOnNewLine, @@ -2121,8 +2198,10 @@ __export(typescript_exports, { stringToToken: () => stringToToken, stripQuotes: () => stripQuotes, supportedDeclarationExtensions: () => supportedDeclarationExtensions, + supportedJSExtensions: () => supportedJSExtensions, supportedJSExtensionsFlat: () => supportedJSExtensionsFlat, supportedLocaleDirectories: () => supportedLocaleDirectories, + supportedTSExtensions: () => supportedTSExtensions, supportedTSExtensionsFlat: () => supportedTSExtensionsFlat, supportedTSImplementationExtensions: () => supportedTSImplementationExtensions, suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia, @@ -2131,13 +2210,16 @@ __export(typescript_exports, { symbolEscapedNameNoDefault: () => symbolEscapedNameNoDefault, symbolName: () => symbolName, symbolNameNoDefault: () => symbolNameNoDefault, + symbolPart: () => symbolPart, symbolToDisplayParts: () => symbolToDisplayParts, + syntaxMayBeASICandidate: () => syntaxMayBeASICandidate, + syntaxRequiresTrailingSemicolonOrASI: () => syntaxRequiresTrailingSemicolonOrASI, sys: () => sys, sysLog: () => sysLog, tagNamesAreEquivalent: () => tagNamesAreEquivalent, takeWhile: () => takeWhile, targetOptionDeclaration: () => targetOptionDeclaration, - targetToLibMap: () => targetToLibMap, + templateObjectHelper: () => templateObjectHelper, testFormatSettings: () => testFormatSettings, textChangeRangeIsUnchanged: () => textChangeRangeIsUnchanged, textChangeRangeNewSpan: () => textChangeRangeNewSpan, @@ -2145,10 +2227,7 @@ __export(typescript_exports, { textOrKeywordPart: () => textOrKeywordPart, textPart: () => textPart, textRangeContainsPositionInclusive: () => textRangeContainsPositionInclusive, - textRangeContainsTextSpan: () => textRangeContainsTextSpan, - textRangeIntersectsWithTextSpan: () => textRangeIntersectsWithTextSpan, textSpanContainsPosition: () => textSpanContainsPosition, - textSpanContainsTextRange: () => textSpanContainsTextRange, textSpanContainsTextSpan: () => textSpanContainsTextSpan, textSpanEnd: () => textSpanEnd, textSpanIntersection: () => textSpanIntersection, @@ -2166,9 +2245,9 @@ __export(typescript_exports, { toBuilderStateFileInfoForMultiEmit: () => toBuilderStateFileInfoForMultiEmit, toEditorSettings: () => toEditorSettings, toFileNameLowerCase: () => toFileNameLowerCase, + toLowerCase: () => toLowerCase, toPath: () => toPath, toProgramEmitPending: () => toProgramEmitPending, - toSorted: () => toSorted, tokenIsIdentifierOrKeyword: () => tokenIsIdentifierOrKeyword, tokenIsIdentifierOrKeywordOrGreaterThan: () => tokenIsIdentifierOrKeywordOrGreaterThan, tokenToString: () => tokenToString, @@ -2190,11 +2269,11 @@ __export(typescript_exports, { transformESDecorators: () => transformESDecorators, transformESNext: () => transformESNext, transformGenerators: () => transformGenerators, - transformImpliedNodeFormatDependentModule: () => transformImpliedNodeFormatDependentModule, transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, transformNamedEvaluation: () => transformNamedEvaluation, + transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, transformTypeScript: () => transformTypeScript, @@ -2221,6 +2300,7 @@ __export(typescript_exports, { tryGetPropertyNameOfBindingOrAssignmentElement: () => tryGetPropertyNameOfBindingOrAssignmentElement, tryGetSourceMappingURL: () => tryGetSourceMappingURL, tryGetTextOfPropertyName: () => tryGetTextOfPropertyName, + tryIOAndConsumeErrors: () => tryIOAndConsumeErrors, tryParseJson: () => tryParseJson, tryParsePattern: () => tryParsePattern, tryParsePatterns: () => tryParsePatterns, @@ -2231,7 +2311,6 @@ __export(typescript_exports, { tryRemoveExtension: () => tryRemoveExtension, tryRemovePrefix: () => tryRemovePrefix, tryRemoveSuffix: () => tryRemoveSuffix, - tscBuildOption: () => tscBuildOption, typeAcquisitionDeclarations: () => typeAcquisitionDeclarations, typeAliasNamePart: () => typeAliasNamePart, typeDirectiveIsEqualTo: () => typeDirectiveIsEqualTo, @@ -2243,7 +2322,7 @@ __export(typescript_exports, { unescapeLeadingUnderscores: () => unescapeLeadingUnderscores, unmangleScopedPackageName: () => unmangleScopedPackageName, unorderedRemoveItem: () => unorderedRemoveItem, - unprefixedNodeCoreModules: () => unprefixedNodeCoreModules, + unorderedRemoveItemAt: () => unorderedRemoveItemAt, unreachableCodeIsError: () => unreachableCodeIsError, unsetNodeChildren: () => unsetNodeChildren, unusedLabelIsError: () => unusedLabelIsError, @@ -2256,9 +2335,11 @@ __export(typescript_exports, { updateSharedExtendedConfigFileWatcher: () => updateSharedExtendedConfigFileWatcher, updateSourceFile: () => updateSourceFile, updateWatchingWildcardDirectories: () => updateWatchingWildcardDirectories, + usesExtensionsOnImports: () => usesExtensionsOnImports, usingSingleLineStringWriter: () => usingSingleLineStringWriter, utf16EncodeAsString: () => utf16EncodeAsString, validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage, + valuesHelper: () => valuesHelper, version: () => version, versionMajorMinor: () => versionMajorMinor, visitArray: () => visitArray, @@ -2271,6 +2352,7 @@ __export(typescript_exports, { visitNodes: () => visitNodes2, visitParameterList: () => visitParameterList, walkUpBindingElementsAndPatterns: () => walkUpBindingElementsAndPatterns, + walkUpLexicalEnvironments: () => walkUpLexicalEnvironments, walkUpOuterExpressions: () => walkUpOuterExpressions, walkUpParenthesizedExpressions: () => walkUpParenthesizedExpressions, walkUpParenthesizedTypes: () => walkUpParenthesizedTypes, @@ -2284,8 +2366,8 @@ __export(typescript_exports, { module.exports = __toCommonJS(typescript_exports); // src/compiler/corePublic.ts -var versionMajorMinor = "5.8"; -var version = "5.8.3"; +var versionMajorMinor = "5.5"; +var version = "5.5.4"; var Comparison = /* @__PURE__ */ ((Comparison3) => { Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; @@ -2296,11 +2378,12 @@ var Comparison = /* @__PURE__ */ ((Comparison3) => { // src/compiler/core.ts var emptyArray = []; var emptyMap = /* @__PURE__ */ new Map(); +var emptySet = /* @__PURE__ */ new Set(); function length(array) { - return array !== void 0 ? array.length : 0; + return array ? array.length : 0; } function forEach(array, callback) { - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const result = callback(array[i], i); if (result) { @@ -2311,7 +2394,7 @@ function forEach(array, callback) { return void 0; } function forEachRight(array, callback) { - if (array !== void 0) { + if (array) { for (let i = array.length - 1; i >= 0; i--) { const result = callback(array[i], i); if (result) { @@ -2367,13 +2450,13 @@ function intersperse(input, element) { } const result = []; for (let i = 0, n = input.length; i < n; i++) { - if (i !== 0) result.push(element); + if (i) result.push(element); result.push(input[i]); } return result; } function every(array, callback) { - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { if (!callback(array[i], i)) { return false; @@ -2420,18 +2503,30 @@ function findLastIndex(array, predicate, startIndex) { } return -1; } +function findMap(array, callback) { + for (let i = 0; i < array.length; i++) { + const result = callback(array[i], i); + if (result) { + return result; + } + } + return Debug.fail(); +} function contains(array, value, equalityComparer = equateValues) { - if (array !== void 0) { - for (let i = 0; i < array.length; i++) { - if (equalityComparer(array[i], value)) { + if (array) { + for (const v of array) { + if (equalityComparer(v, value)) { return true; } } } return false; } +function arraysEqual(a, b, equalityComparer = equateValues) { + return a.length === b.length && a.every((x, i) => equalityComparer(x, b[i])); +} function indexOfAnyCharCode(text, charCodes, start) { - for (let i = start ?? 0; i < text.length; i++) { + for (let i = start || 0; i < text.length; i++) { if (contains(charCodes, text.charCodeAt(i))) { return i; } @@ -2440,7 +2535,7 @@ function indexOfAnyCharCode(text, charCodes, start) { } function countWhere(array, predicate) { let count = 0; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const v = array[i]; if (predicate(v, i)) { @@ -2451,7 +2546,7 @@ function countWhere(array, predicate) { return count; } function filter(array, f) { - if (array !== void 0) { + if (array) { const len = array.length; let i = 0; while (i < len && f(array[i])) i++; @@ -2485,7 +2580,7 @@ function clear(array) { } function map(array, f) { let result; - if (array !== void 0) { + if (array) { result = []; for (let i = 0; i < array.length; i++) { result.push(f(array[i], i)); @@ -2499,7 +2594,7 @@ function* mapIterator(iter, mapFn) { } } function sameMap(array, f) { - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const item = array[i]; const mapped = f(item, i); @@ -2517,8 +2612,7 @@ function sameMap(array, f) { } function flatten(array) { const result = []; - for (let i = 0; i < array.length; i++) { - const v = array[i]; + for (const v of array) { if (v) { if (isArray(v)) { addRange(result, v); @@ -2531,7 +2625,7 @@ function flatten(array) { } function flatMap(array, mapfn) { let result; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const v = mapfn(array[i], i); if (v) { @@ -2543,11 +2637,11 @@ function flatMap(array, mapfn) { } } } - return result ?? emptyArray; + return result || emptyArray; } function flatMapToMutable(array, mapfn) { const result = []; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const v = mapfn(array[i], i); if (v) { @@ -2570,7 +2664,7 @@ function* flatMapIterator(iter, mapfn) { } function sameFlatMap(array, mapfn) { let result; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const item = array[i]; const mapped = mapfn(item, i); @@ -2586,7 +2680,7 @@ function sameFlatMap(array, mapfn) { } } } - return result ?? array; + return result || array; } function mapAllOrFail(array, mapFn) { const result = []; @@ -2601,7 +2695,7 @@ function mapAllOrFail(array, mapFn) { } function mapDefined(array, mapFn) { const result = []; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const mapped = mapFn(array[i], i); if (mapped !== void 0) { @@ -2619,6 +2713,22 @@ function* mapDefinedIterator(iter, mapFn) { } } } +function mapDefinedEntries(map2, f) { + if (!map2) { + return void 0; + } + const result = /* @__PURE__ */ new Map(); + map2.forEach((value, key) => { + const entry = f(key, value); + if (entry !== void 0) { + const [newKey, newValue] = entry; + if (newKey !== void 0 && newValue !== void 0) { + result.set(newKey, newValue); + } + } + }); + return result; +} function getOrUpdate(map2, key, callback) { if (map2.has(key)) { return map2.get(key); @@ -2639,7 +2749,7 @@ function* singleIterator(value) { } function spanMap(array, keyfn, mapfn) { let result; - if (array !== void 0) { + if (array) { result = []; const len = array.length; let previousKey; @@ -2671,7 +2781,7 @@ function spanMap(array, keyfn, mapfn) { return result; } function mapEntries(map2, f) { - if (map2 === void 0) { + if (!map2) { return void 0; } const result = /* @__PURE__ */ new Map(); @@ -2682,10 +2792,10 @@ function mapEntries(map2, f) { return result; } function some(array, predicate) { - if (array !== void 0) { - if (predicate !== void 0) { - for (let i = 0; i < array.length; i++) { - if (predicate(array[i])) { + if (array) { + if (predicate) { + for (const v of array) { + if (predicate(v)) { return true; } } @@ -2710,8 +2820,8 @@ function getRangesWhere(arr, pred, cb) { if (start !== void 0) cb(start, arr.length); } function concatenate(array1, array2) { - if (array2 === void 0 || array2.length === 0) return array1; - if (array1 === void 0 || array1.length === 0) return array2; + if (!some(array2)) return array1; + if (!some(array1)) return array2; return [...array1, ...array2]; } function selectIndex(_, i) { @@ -2738,8 +2848,8 @@ function deduplicateRelational(array, equalityComparer, comparer) { } function deduplicateEquality(array, equalityComparer) { const result = []; - for (let i = 0; i < array.length; i++) { - pushIfUnique(result, array[i], equalityComparer); + for (const item of array) { + pushIfUnique(result, item, equalityComparer); } return result; } @@ -2753,10 +2863,7 @@ function deduplicateSorted(array, comparer) { for (let i = 1; i < array.length; i++) { const next = array[i]; switch (comparer(next, last2)) { - // equality comparison case true: - // relational comparison - // falls through case 0 /* EqualTo */: continue; case -1 /* LessThan */: @@ -2796,10 +2903,19 @@ function insertSorted(array, insert, compare, equalityComparer, allowDuplicates) return false; } function sortAndDeduplicate(array, comparer, equalityComparer) { - return deduplicateSorted(toSorted(array, comparer), equalityComparer ?? comparer ?? compareStringsCaseSensitive); + return deduplicateSorted(sort(array, comparer), equalityComparer || comparer || compareStringsCaseSensitive); +} +function arrayIsSorted(array, comparer) { + if (array.length < 2) return true; + for (let i = 1, len = array.length; i < len; i++) { + if (comparer(array[i - 1], array[i]) === 1 /* GreaterThan */) { + return false; + } + } + return true; } function arrayIsEqualTo(array1, array2, equalityComparer = equateValues) { - if (array1 === void 0 || array2 === void 0) { + if (!array1 || !array2) { return array1 === array2; } if (array1.length !== array2.length) { @@ -2814,18 +2930,20 @@ function arrayIsEqualTo(array1, array2, equalityComparer = equateValues) { } function compact(array) { let result; - if (array !== void 0) { + if (array) { for (let i = 0; i < array.length; i++) { const v = array[i]; - if (result ?? !v) { - result ?? (result = array.slice(0, i)); + if (result || !v) { + if (!result) { + result = array.slice(0, i); + } if (v) { result.push(v); } } } } - return result ?? array; + return result || array; } function relativeComplement(arrayA, arrayB, comparer) { if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0) return arrayB; @@ -2890,7 +3008,7 @@ function pushIfUnique(array, toAdd, equalityComparer) { } } function appendIfUnique(array, toAdd, equalityComparer) { - if (array !== void 0) { + if (array) { pushIfUnique(array, toAdd, equalityComparer); return array; } else { @@ -2900,14 +3018,19 @@ function appendIfUnique(array, toAdd, equalityComparer) { function stableSortIndices(array, indices, comparer) { indices.sort((x, y) => comparer(array[x], array[y]) || compareValues(x, y)); } -function toSorted(array, comparer) { - return array.length === 0 ? emptyArray : array.slice().sort(comparer); +function sort(array, comparer) { + return array.length === 0 ? array : array.slice().sort(comparer); } function* arrayReverseIterator(array) { for (let i = array.length - 1; i >= 0; i--) { yield array[i]; } } +function stableSort(array, comparer) { + const indices = indicesOf(array); + stableSortIndices(array, indices, comparer); + return indices.map((i) => array[i]); +} function rangeEquals(array1, array2, pos, end) { while (pos < end) { if (array1[pos] !== array2[pos]) { @@ -2918,7 +3041,7 @@ function rangeEquals(array1, array2, pos, end) { return true; } var elementAt = !!Array.prototype.at ? (array, offset) => array == null ? void 0 : array.at(offset) : (array, offset) => { - if (array !== void 0) { + if (array) { offset = toOffset(array, offset); if (offset < array.length) { return array[offset]; @@ -2930,7 +3053,7 @@ function firstOrUndefined(array) { return array === void 0 || array.length === 0 ? void 0 : array[0]; } function firstOrUndefinedIterator(iter) { - if (iter !== void 0) { + if (iter) { for (const value of iter) { return value; } @@ -2955,13 +3078,13 @@ function last(array) { return array[array.length - 1]; } function singleOrUndefined(array) { - return array !== void 0 && array.length === 1 ? array[0] : void 0; + return array && array.length === 1 ? array[0] : void 0; } function single(array) { return Debug.checkDefined(singleOrUndefined(array)); } function singleOrMany(array) { - return array !== void 0 && array.length === 1 ? array[0] : array; + return array && array.length === 1 ? array[0] : array; } function replaceElement(array, index, value) { const result = array.slice(0); @@ -2975,7 +3098,7 @@ function binarySearchKey(array, key, keySelector, keyComparer, offset) { if (!some(array)) { return -1; } - let low = offset ?? 0; + let low = offset || 0; let high = array.length - 1; while (low <= high) { const middle = low + (high - low >> 1); @@ -3093,8 +3216,7 @@ function equalOwnProperties(left, right, equalityComparer = equateValues) { } function arrayToMap(array, makeKey, makeValue = identity) { const result = /* @__PURE__ */ new Map(); - for (let i = 0; i < array.length; i++) { - const value = array[i]; + for (const value of array) { const key = makeKey(value); if (key !== void 0) result.set(key, makeValue(value)); } @@ -3102,16 +3224,14 @@ function arrayToMap(array, makeKey, makeValue = identity) { } function arrayToNumericMap(array, makeKey, makeValue = identity) { const result = []; - for (let i = 0; i < array.length; i++) { - const value = array[i]; + for (const value of array) { result[makeKey(value)] = makeValue(value); } return result; } function arrayToMultiMap(values, makeKey, makeValue = identity) { const result = createMultiMap(); - for (let i = 0; i < values.length; i++) { - const value = values[i]; + for (const value of values) { result.add(makeKey(value), makeValue(value)); } return result; @@ -3121,9 +3241,8 @@ function group(values, getGroupId, resultSelector = identity) { } function groupBy(values, keySelector) { const result = {}; - if (values !== void 0) { - for (let i = 0; i < values.length; i++) { - const value = values[i]; + if (values) { + for (const value of values) { const key = `${keySelector(value)}`; const array = result[key] ?? (result[key] = []); array.push(value); @@ -3162,7 +3281,7 @@ function copyProperties(first2, second) { } } function maybeBind(obj, fn) { - return fn == null ? void 0 : fn.bind(obj); + return fn ? fn.bind(obj) : void 0; } function createMultiMap() { const map2 = /* @__PURE__ */ new Map(); @@ -3172,7 +3291,7 @@ function createMultiMap() { } function multiMapAdd(key, value) { let values = this.get(key); - if (values !== void 0) { + if (values) { values.push(value); } else { this.set(key, values = [value]); @@ -3181,7 +3300,7 @@ function multiMapAdd(key, value) { } function multiMapRemove(key, value) { const values = this.get(key); - if (values !== void 0) { + if (values) { unorderedRemoveItem(values, value); if (!values.length) { this.delete(key); @@ -3189,7 +3308,7 @@ function multiMapRemove(key, value) { } } function createQueue(items) { - const elements = (items == null ? void 0 : items.slice()) ?? []; + const elements = (items == null ? void 0 : items.slice()) || []; let headIndex = 0; function isEmpty() { return headIndex === elements.length; @@ -3240,8 +3359,13 @@ function createSet(getHashCode, equals) { const hash = getHashCode(element); if (!multiMap.has(hash)) return false; const candidates = multiMap.get(hash); - if (isArray(candidates)) return contains(candidates, element, equals); - return equals(candidates, element); + if (!isArray(candidates)) return equals(candidates, element); + for (const candidate of candidates) { + if (equals(candidate, element)) { + return true; + } + } + return false; }, add(element) { const hash = getHashCode(element); @@ -3395,6 +3519,46 @@ function memoizeOne(callback) { return value; }; } +function memoizeWeak(callback) { + const map2 = /* @__PURE__ */ new WeakMap(); + return (arg) => { + let value = map2.get(arg); + if (value === void 0 && !map2.has(arg)) { + value = callback(arg); + map2.set(arg, value); + } + return value; + }; +} +function memoizeCached(callback, cache) { + return (...args) => { + let value = cache.get(args); + if (value === void 0 && !cache.has(args)) { + value = callback(...args); + cache.set(args, value); + } + return value; + }; +} +function compose(a, b, c, d, e) { + if (!!e) { + const args = []; + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + return (t) => reduceLeft(args, (u, f) => f(u), t); + } else if (d) { + return (t) => d(c(b(a(t)))); + } else if (c) { + return (t) => c(b(a(t))); + } else if (b) { + return (t) => b(a(t)); + } else if (a) { + return (t) => a(t); + } else { + return (t) => t; + } +} var AssertionLevel = /* @__PURE__ */ ((AssertionLevel2) => { AssertionLevel2[AssertionLevel2["None"] = 0] = "None"; AssertionLevel2[AssertionLevel2["Normal"] = 1] = "Normal"; @@ -3420,12 +3584,6 @@ function compareValues(a, b) { function compareTextSpans(a, b) { return compareValues(a == null ? void 0 : a.start, b == null ? void 0 : b.start) || compareValues(a == null ? void 0 : a.length, b == null ? void 0 : b.length); } -function maxBy(arr, init, mapper) { - for (let i = 0; i < arr.length; i++) { - init = Math.max(init, mapper(arr[i])); - } - return init; -} function min(items, compare) { return reduceLeft(items, (x, y) => compare(x, y) === -1 /* LessThan */ ? x : y); } @@ -3477,8 +3635,8 @@ function setUILocale(value) { } } function compareStringsCaseSensitiveUI(a, b) { - uiComparerCaseSensitive ?? (uiComparerCaseSensitive = createUIStringComparer(uiLocale)); - return uiComparerCaseSensitive(a, b); + const comparer = uiComparerCaseSensitive || (uiComparerCaseSensitive = createUIStringComparer(uiLocale)); + return comparer(a, b); } function compareProperties(a, b, key, comparer) { return a === b ? 0 /* EqualTo */ : a === void 0 ? -1 /* LessThan */ : b === void 0 ? 1 /* GreaterThan */ : comparer(a[key], b[key]); @@ -3638,10 +3796,9 @@ function matchedText(pattern, candidate) { function findBestPatternMatch(values, getPattern, candidate) { let matchedValue; let longestMatchPrefixLength = -1; - for (let i = 0; i < values.length; i++) { - const v = values[i]; + for (const v of values) { const pattern = getPattern(v); - if (pattern.prefix.length > longestMatchPrefixLength && isPatternMatch(pattern, candidate)) { + if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) { longestMatchPrefixLength = pattern.prefix.length; matchedValue = v; } @@ -3684,7 +3841,7 @@ function singleElementArray(t) { return t === void 0 ? void 0 : [t]; } function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) { - unchanged ?? (unchanged = noop); + unchanged = unchanged || noop; let newIndex = 0; let oldIndex = 0; const newLen = newItems.length; @@ -3746,7 +3903,7 @@ function cartesianProductWorker(arrays, result, outer, index) { } } function takeWhile(array, predicate) { - if (array !== void 0) { + if (array) { const len = array.length; let index = 0; while (index < len && predicate(array[index])) { @@ -3756,7 +3913,7 @@ function takeWhile(array, predicate) { } } function skipWhile(array, predicate) { - if (array !== void 0) { + if (array) { const len = array.length; let index = 0; while (index < len && predicate(array[index])) { @@ -4052,7 +4209,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, result.push([value, name]); } } - const sorted = toSorted(result, (x, y) => compareValues(x[0], y[0])); + const sorted = stableSort(result, (x, y) => compareValues(x[0], y[0])); enumMemberCache.set(enumObject, sorted); return sorted; } @@ -4261,7 +4418,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`, Object.defineProperties(array, { __tsDebuggerDisplay: { value(defaultValue) { - defaultValue = String(defaultValue).replace(/(?:,[\s\w]+:[^,]+)+\]$/, "]"); + defaultValue = String(defaultValue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/, "]"); return `NodeArray ${defaultValue}`; } } @@ -4681,7 +4838,7 @@ m2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`; } function renderGraph() { const columnCount = columnWidths.length; - const laneCount = maxBy(nodes, 0, (n) => n.lane) + 1; + const laneCount = nodes.reduce((x, n) => Math.max(x, n.lane), 0) + 1; const lanes = fill(Array(laneCount), ""); const grid = columnWidths.map(() => Array(laneCount)); const connectors = columnWidths.map(() => fill(Array(laneCount), 0)); @@ -4804,7 +4961,7 @@ var prereleaseRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z- var prereleasePartRegExp = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i; var buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i; var buildPartRegExp = /^[a-z0-9-]+$/i; -var numericIdentifierRegExp = /^(?:0|[1-9]\d*)$/; +var numericIdentifierRegExp = /^(0|[1-9]\d*)$/; var _Version = class _Version { constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") { if (typeof major === "string") { @@ -4927,11 +5084,11 @@ var VersionRange = class _VersionRange { return formatDisjunction(this._alternatives); } }; -var logicalOrRegExp = /\|\|/; -var whitespaceRegExp = /\s+/; -var partialRegExp = /^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; +var logicalOrRegExp = /\|\|/g; +var whitespaceRegExp = /\s+/g; +var partialRegExp = /^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i; var hyphenRegExp = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i; -var rangeRegExp = /^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i; +var rangeRegExp = /^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i; function parseRange(text) { const alternatives = []; for (let range of text.trim().split(logicalOrRegExp)) { @@ -5124,6 +5281,16 @@ function tryGetNativePerformanceHooks() { } var timestamp = nativePerformanceTime ? () => nativePerformanceTime.now() : Date.now; +// src/compiler/perfLogger.ts +var etwModule; +try { + const etwModulePath = process.env.TS_ETW_MODULE_PATH ?? "./node_modules/@microsoft/typescript-etw"; + etwModule = require(etwModulePath); +} catch (e) { + etwModule = void 0; +} +var perfLogger = (etwModule == null ? void 0 : etwModule.logEvent) ? etwModule : void 0; + // src/compiler/_namespaces/ts.performance.ts var ts_performance_exports = {}; __export(ts_performance_exports, { @@ -5877,11 +6044,10 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => { SyntaxKind5[SyntaxKind5["JSDocImportTag"] = 351] = "JSDocImportTag"; SyntaxKind5[SyntaxKind5["SyntaxList"] = 352] = "SyntaxList"; SyntaxKind5[SyntaxKind5["NotEmittedStatement"] = 353] = "NotEmittedStatement"; - SyntaxKind5[SyntaxKind5["NotEmittedTypeElement"] = 354] = "NotEmittedTypeElement"; - SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 355] = "PartiallyEmittedExpression"; - SyntaxKind5[SyntaxKind5["CommaListExpression"] = 356] = "CommaListExpression"; - SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 357] = "SyntheticReferenceExpression"; - SyntaxKind5[SyntaxKind5["Count"] = 358] = "Count"; + SyntaxKind5[SyntaxKind5["PartiallyEmittedExpression"] = 354] = "PartiallyEmittedExpression"; + SyntaxKind5[SyntaxKind5["CommaListExpression"] = 355] = "CommaListExpression"; + SyntaxKind5[SyntaxKind5["SyntheticReferenceExpression"] = 356] = "SyntheticReferenceExpression"; + SyntaxKind5[SyntaxKind5["Count"] = 357] = "Count"; SyntaxKind5[SyntaxKind5["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment"; SyntaxKind5[SyntaxKind5["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment"; SyntaxKind5[SyntaxKind5["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment"; @@ -6013,21 +6179,12 @@ var RelationComparisonResult = /* @__PURE__ */ ((RelationComparisonResult3) => { RelationComparisonResult3[RelationComparisonResult3["None"] = 0] = "None"; RelationComparisonResult3[RelationComparisonResult3["Succeeded"] = 1] = "Succeeded"; RelationComparisonResult3[RelationComparisonResult3["Failed"] = 2] = "Failed"; + RelationComparisonResult3[RelationComparisonResult3["Reported"] = 4] = "Reported"; RelationComparisonResult3[RelationComparisonResult3["ReportsUnmeasurable"] = 8] = "ReportsUnmeasurable"; RelationComparisonResult3[RelationComparisonResult3["ReportsUnreliable"] = 16] = "ReportsUnreliable"; RelationComparisonResult3[RelationComparisonResult3["ReportsMask"] = 24] = "ReportsMask"; - RelationComparisonResult3[RelationComparisonResult3["ComplexityOverflow"] = 32] = "ComplexityOverflow"; - RelationComparisonResult3[RelationComparisonResult3["StackDepthOverflow"] = 64] = "StackDepthOverflow"; - RelationComparisonResult3[RelationComparisonResult3["Overflow"] = 96] = "Overflow"; return RelationComparisonResult3; })(RelationComparisonResult || {}); -var PredicateSemantics = /* @__PURE__ */ ((PredicateSemantics2) => { - PredicateSemantics2[PredicateSemantics2["None"] = 0] = "None"; - PredicateSemantics2[PredicateSemantics2["Always"] = 1] = "Always"; - PredicateSemantics2[PredicateSemantics2["Never"] = 2] = "Never"; - PredicateSemantics2[PredicateSemantics2["Sometimes"] = 3] = "Sometimes"; - return PredicateSemantics2; -})(PredicateSemantics || {}); var GeneratedIdentifierFlags = /* @__PURE__ */ ((GeneratedIdentifierFlags2) => { GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["None"] = 0] = "None"; GeneratedIdentifierFlags2[GeneratedIdentifierFlags2["Auto"] = 1] = "Auto"; @@ -6072,7 +6229,6 @@ var TokenFlags = /* @__PURE__ */ ((TokenFlags2) => { TokenFlags2[TokenFlags2["HexEscape"] = 4096] = "HexEscape"; TokenFlags2[TokenFlags2["ContainsLeadingZero"] = 8192] = "ContainsLeadingZero"; TokenFlags2[TokenFlags2["ContainsInvalidSeparator"] = 16384] = "ContainsInvalidSeparator"; - TokenFlags2[TokenFlags2["PrecedingJSDocLeadingAsterisks"] = 32768] = "PrecedingJSDocLeadingAsterisks"; TokenFlags2[TokenFlags2["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; TokenFlags2[TokenFlags2["WithSpecifier"] = 448] = "WithSpecifier"; TokenFlags2[TokenFlags2["StringLiteralFlags"] = 7176] = "StringLiteralFlags"; @@ -6197,21 +6353,17 @@ var NodeBuilderFlags = /* @__PURE__ */ ((NodeBuilderFlags2) => { NodeBuilderFlags2[NodeBuilderFlags2["AllowEmptyTuple"] = 524288] = "AllowEmptyTuple"; NodeBuilderFlags2[NodeBuilderFlags2["AllowUniqueESSymbolType"] = 1048576] = "AllowUniqueESSymbolType"; NodeBuilderFlags2[NodeBuilderFlags2["AllowEmptyIndexInfoType"] = 2097152] = "AllowEmptyIndexInfoType"; + NodeBuilderFlags2[NodeBuilderFlags2["WriteComputedProps"] = 1073741824] = "WriteComputedProps"; + NodeBuilderFlags2[NodeBuilderFlags2["NoSyntacticPrinter"] = -2147483648] = "NoSyntacticPrinter"; NodeBuilderFlags2[NodeBuilderFlags2["AllowNodeModulesRelativePaths"] = 67108864] = "AllowNodeModulesRelativePaths"; + NodeBuilderFlags2[NodeBuilderFlags2["DoNotIncludeSymbolChain"] = 134217728] = "DoNotIncludeSymbolChain"; + NodeBuilderFlags2[NodeBuilderFlags2["AllowUnresolvedNames"] = 1] = "AllowUnresolvedNames"; NodeBuilderFlags2[NodeBuilderFlags2["IgnoreErrors"] = 70221824] = "IgnoreErrors"; NodeBuilderFlags2[NodeBuilderFlags2["InObjectTypeLiteral"] = 4194304] = "InObjectTypeLiteral"; NodeBuilderFlags2[NodeBuilderFlags2["InTypeAlias"] = 8388608] = "InTypeAlias"; NodeBuilderFlags2[NodeBuilderFlags2["InInitialEntityName"] = 16777216] = "InInitialEntityName"; return NodeBuilderFlags2; })(NodeBuilderFlags || {}); -var InternalNodeBuilderFlags = /* @__PURE__ */ ((InternalNodeBuilderFlags2) => { - InternalNodeBuilderFlags2[InternalNodeBuilderFlags2["None"] = 0] = "None"; - InternalNodeBuilderFlags2[InternalNodeBuilderFlags2["WriteComputedProps"] = 1] = "WriteComputedProps"; - InternalNodeBuilderFlags2[InternalNodeBuilderFlags2["NoSyntacticPrinter"] = 2] = "NoSyntacticPrinter"; - InternalNodeBuilderFlags2[InternalNodeBuilderFlags2["DoNotIncludeSymbolChain"] = 4] = "DoNotIncludeSymbolChain"; - InternalNodeBuilderFlags2[InternalNodeBuilderFlags2["AllowUnresolvedNames"] = 8] = "AllowUnresolvedNames"; - return InternalNodeBuilderFlags2; -})(InternalNodeBuilderFlags || {}); var TypeFormatFlags = /* @__PURE__ */ ((TypeFormatFlags2) => { TypeFormatFlags2[TypeFormatFlags2["None"] = 0] = "None"; TypeFormatFlags2[TypeFormatFlags2["NoTruncation"] = 1] = "NoTruncation"; @@ -6256,6 +6408,11 @@ var SymbolAccessibility = /* @__PURE__ */ ((SymbolAccessibility2) => { SymbolAccessibility2[SymbolAccessibility2["NotResolved"] = 3] = "NotResolved"; return SymbolAccessibility2; })(SymbolAccessibility || {}); +var SyntheticSymbolKind = /* @__PURE__ */ ((SyntheticSymbolKind2) => { + SyntheticSymbolKind2[SyntheticSymbolKind2["UnionOrIntersection"] = 0] = "UnionOrIntersection"; + SyntheticSymbolKind2[SyntheticSymbolKind2["Spread"] = 1] = "Spread"; + return SyntheticSymbolKind2; +})(SyntheticSymbolKind || {}); var TypePredicateKind = /* @__PURE__ */ ((TypePredicateKind2) => { TypePredicateKind2[TypePredicateKind2["This"] = 0] = "This"; TypePredicateKind2[TypePredicateKind2["Identifier"] = 1] = "Identifier"; @@ -6421,7 +6578,6 @@ var NodeCheckFlags = /* @__PURE__ */ ((NodeCheckFlags3) => { NodeCheckFlags3[NodeCheckFlags3["ContainsClassWithPrivateIdentifiers"] = 1048576] = "ContainsClassWithPrivateIdentifiers"; NodeCheckFlags3[NodeCheckFlags3["ContainsSuperPropertyInStaticInitializer"] = 2097152] = "ContainsSuperPropertyInStaticInitializer"; NodeCheckFlags3[NodeCheckFlags3["InCheckIdentifier"] = 4194304] = "InCheckIdentifier"; - NodeCheckFlags3[NodeCheckFlags3["PartiallyTypeChecked"] = 8388608] = "PartiallyTypeChecked"; NodeCheckFlags3[NodeCheckFlags3["LazyFlags"] = 539358128] = "LazyFlags"; return NodeCheckFlags3; })(NodeCheckFlags || {}); @@ -6575,7 +6731,7 @@ var AccessFlags = /* @__PURE__ */ ((AccessFlags2) => { AccessFlags2[AccessFlags2["NoIndexSignatures"] = 2] = "NoIndexSignatures"; AccessFlags2[AccessFlags2["Writing"] = 4] = "Writing"; AccessFlags2[AccessFlags2["CacheSymbol"] = 8] = "CacheSymbol"; - AccessFlags2[AccessFlags2["AllowMissing"] = 16] = "AllowMissing"; + AccessFlags2[AccessFlags2["NoTupleBoundsCheck"] = 16] = "NoTupleBoundsCheck"; AccessFlags2[AccessFlags2["ExpressionPosition"] = 32] = "ExpressionPosition"; AccessFlags2[AccessFlags2["ReportDeprecated"] = 64] = "ReportDeprecated"; AccessFlags2[AccessFlags2["SuppressNoImplicitAnyError"] = 128] = "SuppressNoImplicitAnyError"; @@ -6734,7 +6890,6 @@ var ModuleKind = /* @__PURE__ */ ((ModuleKind3) => { ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022"; ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext"; ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16"; - ModuleKind3[ModuleKind3["Node18"] = 101] = "Node18"; ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext"; ModuleKind3[ModuleKind3["Preserve"] = 200] = "Preserve"; return ModuleKind3; @@ -6770,23 +6925,22 @@ var ScriptKind = /* @__PURE__ */ ((ScriptKind7) => { ScriptKind7[ScriptKind7["Deferred"] = 7] = "Deferred"; return ScriptKind7; })(ScriptKind || {}); -var ScriptTarget = /* @__PURE__ */ ((ScriptTarget12) => { - ScriptTarget12[ScriptTarget12["ES3"] = 0] = "ES3"; - ScriptTarget12[ScriptTarget12["ES5"] = 1] = "ES5"; - ScriptTarget12[ScriptTarget12["ES2015"] = 2] = "ES2015"; - ScriptTarget12[ScriptTarget12["ES2016"] = 3] = "ES2016"; - ScriptTarget12[ScriptTarget12["ES2017"] = 4] = "ES2017"; - ScriptTarget12[ScriptTarget12["ES2018"] = 5] = "ES2018"; - ScriptTarget12[ScriptTarget12["ES2019"] = 6] = "ES2019"; - ScriptTarget12[ScriptTarget12["ES2020"] = 7] = "ES2020"; - ScriptTarget12[ScriptTarget12["ES2021"] = 8] = "ES2021"; - ScriptTarget12[ScriptTarget12["ES2022"] = 9] = "ES2022"; - ScriptTarget12[ScriptTarget12["ES2023"] = 10] = "ES2023"; - ScriptTarget12[ScriptTarget12["ES2024"] = 11] = "ES2024"; - ScriptTarget12[ScriptTarget12["ESNext"] = 99] = "ESNext"; - ScriptTarget12[ScriptTarget12["JSON"] = 100] = "JSON"; - ScriptTarget12[ScriptTarget12["Latest"] = 99 /* ESNext */] = "Latest"; - return ScriptTarget12; +var ScriptTarget = /* @__PURE__ */ ((ScriptTarget11) => { + ScriptTarget11[ScriptTarget11["ES3"] = 0] = "ES3"; + ScriptTarget11[ScriptTarget11["ES5"] = 1] = "ES5"; + ScriptTarget11[ScriptTarget11["ES2015"] = 2] = "ES2015"; + ScriptTarget11[ScriptTarget11["ES2016"] = 3] = "ES2016"; + ScriptTarget11[ScriptTarget11["ES2017"] = 4] = "ES2017"; + ScriptTarget11[ScriptTarget11["ES2018"] = 5] = "ES2018"; + ScriptTarget11[ScriptTarget11["ES2019"] = 6] = "ES2019"; + ScriptTarget11[ScriptTarget11["ES2020"] = 7] = "ES2020"; + ScriptTarget11[ScriptTarget11["ES2021"] = 8] = "ES2021"; + ScriptTarget11[ScriptTarget11["ES2022"] = 9] = "ES2022"; + ScriptTarget11[ScriptTarget11["ES2023"] = 10] = "ES2023"; + ScriptTarget11[ScriptTarget11["ESNext"] = 99] = "ESNext"; + ScriptTarget11[ScriptTarget11["JSON"] = 100] = "JSON"; + ScriptTarget11[ScriptTarget11["Latest"] = 99 /* ESNext */] = "Latest"; + return ScriptTarget11; })(ScriptTarget || {}); var LanguageVariant = /* @__PURE__ */ ((LanguageVariant4) => { LanguageVariant4[LanguageVariant4["Standard"] = 0] = "Standard"; @@ -7059,42 +7213,43 @@ var InternalEmitFlags = /* @__PURE__ */ ((InternalEmitFlags3) => { InternalEmitFlags3[InternalEmitFlags3["TransformPrivateStaticElements"] = 32] = "TransformPrivateStaticElements"; return InternalEmitFlags3; })(InternalEmitFlags || {}); -var LanguageFeatureMinimumTarget = { - Classes: 2 /* ES2015 */, - ForOf: 2 /* ES2015 */, - Generators: 2 /* ES2015 */, - Iteration: 2 /* ES2015 */, - SpreadElements: 2 /* ES2015 */, - RestElements: 2 /* ES2015 */, - TaggedTemplates: 2 /* ES2015 */, - DestructuringAssignment: 2 /* ES2015 */, - BindingPatterns: 2 /* ES2015 */, - ArrowFunctions: 2 /* ES2015 */, - BlockScopedVariables: 2 /* ES2015 */, - ObjectAssign: 2 /* ES2015 */, - RegularExpressionFlagsUnicode: 2 /* ES2015 */, - RegularExpressionFlagsSticky: 2 /* ES2015 */, - Exponentiation: 3 /* ES2016 */, - AsyncFunctions: 4 /* ES2017 */, - ForAwaitOf: 5 /* ES2018 */, - AsyncGenerators: 5 /* ES2018 */, - AsyncIteration: 5 /* ES2018 */, - ObjectSpreadRest: 5 /* ES2018 */, - RegularExpressionFlagsDotAll: 5 /* ES2018 */, - BindinglessCatch: 6 /* ES2019 */, - BigInt: 7 /* ES2020 */, - NullishCoalesce: 7 /* ES2020 */, - OptionalChaining: 7 /* ES2020 */, - LogicalAssignment: 8 /* ES2021 */, - TopLevelAwait: 9 /* ES2022 */, - ClassFields: 9 /* ES2022 */, - PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */, - RegularExpressionFlagsHasIndices: 9 /* ES2022 */, - ShebangComments: 10 /* ES2023 */, - RegularExpressionFlagsUnicodeSets: 11 /* ES2024 */, - UsingAndAwaitUsing: 99 /* ESNext */, - ClassAndClassElementDecorators: 99 /* ESNext */ -}; +var LanguageFeatureMinimumTarget = /* @__PURE__ */ ((LanguageFeatureMinimumTarget2) => { + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Classes"] = 2 /* ES2015 */] = "Classes"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForOf"] = 2 /* ES2015 */] = "ForOf"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Generators"] = 2 /* ES2015 */] = "Generators"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Iteration"] = 2 /* ES2015 */] = "Iteration"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["SpreadElements"] = 2 /* ES2015 */] = "SpreadElements"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RestElements"] = 2 /* ES2015 */] = "RestElements"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TaggedTemplates"] = 2 /* ES2015 */] = "TaggedTemplates"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["DestructuringAssignment"] = 2 /* ES2015 */] = "DestructuringAssignment"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindingPatterns"] = 2 /* ES2015 */] = "BindingPatterns"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ArrowFunctions"] = 2 /* ES2015 */] = "ArrowFunctions"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BlockScopedVariables"] = 2 /* ES2015 */] = "BlockScopedVariables"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectAssign"] = 2 /* ES2015 */] = "ObjectAssign"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicode"] = 2 /* ES2015 */] = "RegularExpressionFlagsUnicode"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsSticky"] = 2 /* ES2015 */] = "RegularExpressionFlagsSticky"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Exponentiation"] = 3 /* ES2016 */] = "Exponentiation"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncFunctions"] = 4 /* ES2017 */] = "AsyncFunctions"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForAwaitOf"] = 5 /* ES2018 */] = "ForAwaitOf"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncGenerators"] = 5 /* ES2018 */] = "AsyncGenerators"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncIteration"] = 5 /* ES2018 */] = "AsyncIteration"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectSpreadRest"] = 5 /* ES2018 */] = "ObjectSpreadRest"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsDotAll"] = 5 /* ES2018 */] = "RegularExpressionFlagsDotAll"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindinglessCatch"] = 6 /* ES2019 */] = "BindinglessCatch"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BigInt"] = 7 /* ES2020 */] = "BigInt"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["NullishCoalesce"] = 7 /* ES2020 */] = "NullishCoalesce"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["OptionalChaining"] = 7 /* ES2020 */] = "OptionalChaining"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["LogicalAssignment"] = 8 /* ES2021 */] = "LogicalAssignment"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TopLevelAwait"] = 9 /* ES2022 */] = "TopLevelAwait"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassFields"] = 9 /* ES2022 */] = "ClassFields"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["PrivateNamesAndClassStaticBlocks"] = 9 /* ES2022 */] = "PrivateNamesAndClassStaticBlocks"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsHasIndices"] = 9 /* ES2022 */] = "RegularExpressionFlagsHasIndices"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ShebangComments"] = 99 /* ESNext */] = "ShebangComments"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["UsingAndAwaitUsing"] = 99 /* ESNext */] = "UsingAndAwaitUsing"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassAndClassElementDecorators"] = 99 /* ESNext */] = "ClassAndClassElementDecorators"; + LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicodeSets"] = 99 /* ESNext */] = "RegularExpressionFlagsUnicodeSets"; + return LanguageFeatureMinimumTarget2; +})(LanguageFeatureMinimumTarget || {}); var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => { ExternalEmitHelpers2[ExternalEmitHelpers2["Extends"] = 1] = "Extends"; ExternalEmitHelpers2[ExternalEmitHelpers2["Assign"] = 2] = "Assign"; @@ -7122,7 +7277,6 @@ var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => { ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 4194304] = "SetFunctionName"; ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 8388608] = "PropKey"; ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 16777216] = "AddDisposableResourceAndDisposeResources"; - ExternalEmitHelpers2[ExternalEmitHelpers2["RewriteRelativeImportExtension"] = 33554432] = "RewriteRelativeImportExtension"; ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper"; ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper"; ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes"; @@ -7148,11 +7302,9 @@ var OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => { OuterExpressionKinds2[OuterExpressionKinds2["TypeAssertions"] = 2] = "TypeAssertions"; OuterExpressionKinds2[OuterExpressionKinds2["NonNullAssertions"] = 4] = "NonNullAssertions"; OuterExpressionKinds2[OuterExpressionKinds2["PartiallyEmittedExpressions"] = 8] = "PartiallyEmittedExpressions"; - OuterExpressionKinds2[OuterExpressionKinds2["ExpressionsWithTypeArguments"] = 16] = "ExpressionsWithTypeArguments"; - OuterExpressionKinds2[OuterExpressionKinds2["Satisfies"] = 32] = "Satisfies"; - OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 38] = "Assertions"; - OuterExpressionKinds2[OuterExpressionKinds2["All"] = 63] = "All"; - OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = -2147483648] = "ExcludeJSDocTypeAssertion"; + OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 6] = "Assertions"; + OuterExpressionKinds2[OuterExpressionKinds2["All"] = 15] = "All"; + OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = 16] = "ExcludeJSDocTypeAssertion"; return OuterExpressionKinds2; })(OuterExpressionKinds || {}); var LexicalEnvironmentFlags = /* @__PURE__ */ ((LexicalEnvironmentFlags2) => { @@ -8024,7 +8176,6 @@ function createSystemWatchFunctions({ return generateWatchFileOptions(4 /* UseFsEvents */, 2 /* DynamicPriority */, options); case "UseFsEventsOnParentDirectory": useNonPollingWatchers2 = true; - // fall through default: return useNonPollingWatchers2 ? ( // Use notifications from FS to watch with falling back to fs.watchFile @@ -8259,7 +8410,7 @@ function patchWriteFileEnsuringDirectory(sys2) { var sys = (() => { const byteOrderMarkIndicator = "\uFEFF"; function getNodeSystem() { - const nativePattern = /^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/; + const nativePattern = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/; const _fs = require("fs"); const _path = require("path"); const _os = require("os"); @@ -8273,7 +8424,6 @@ var sys = (() => { let profilePath = "./profile.cpuprofile"; const isMacOs = process.platform === "darwin"; const isLinuxOrMacOs = process.platform === "linux" || isMacOs; - const statSyncOptions = { throwIfNoEntry: false }; const platform = _os.platform(); const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive(); const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync; @@ -8318,7 +8468,6 @@ var sys = (() => { writeFile: writeFile2, watchFile: watchFile2, watchDirectory, - preferNonRecursiveWatch: !fsSupportsRecursiveFsWatch, resolvePath: (path) => _path.resolve(path), fileExists, directoryExists, @@ -8355,9 +8504,12 @@ var sys = (() => { return process.memoryUsage().heapUsed; }, getFileSize(path) { - const stat = statSync(path); - if (stat == null ? void 0 : stat.isFile()) { - return stat.size; + try { + const stat = statSync(path); + if (stat == null ? void 0 : stat.isFile()) { + return stat.size; + } + } catch { } return 0; }, @@ -8368,7 +8520,7 @@ var sys = (() => { disableCPUProfiler, cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"), realpath, - debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay, + debugMode: !!process.env.NODE_INSPECTOR_IPC || !!process.env.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(arg)) || !!process.recordreplay, tryEnableSourceMapsForHost() { try { require("source-map-support").install(); @@ -8378,7 +8530,7 @@ var sys = (() => { setTimeout, clearTimeout, clearScreen: () => { - process.stdout.write("\x1B[2J\x1B[3J\x1B[H"); + process.stdout.write("\x1Bc"); }, setBlocking: () => { var _a; @@ -8400,11 +8552,7 @@ var sys = (() => { }; return nodeSystem; function statSync(path) { - try { - return _fs.statSync(path, statSyncOptions); - } catch { - return void 0; - } + return _fs.statSync(path, { throwIfNoEntry: false }); } function enableCPUProfiler(path, cb) { if (activeSession) { @@ -8458,8 +8606,11 @@ var sys = (() => { activeSession.post("Profiler.stop", (err, { profile }) => { var _a; if (!err) { - if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) { - profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`); + try { + if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) { + profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`); + } + } catch { } try { _fs.mkdirSync(_path.dirname(profilePath), { recursive: true }); @@ -8520,11 +8671,11 @@ var sys = (() => { callback ); } - function readFile(fileName, _encoding) { + function readFileWorker(fileName, _encoding) { let buffer; try { buffer = _fs.readFileSync(fileName); - } catch { + } catch (e) { return void 0; } let len = buffer.length; @@ -8545,7 +8696,16 @@ var sys = (() => { } return buffer.toString("utf8"); } + function readFile(fileName, _encoding) { + var _a, _b; + (_a = perfLogger) == null ? void 0 : _a.logStartReadFile(fileName); + const file = readFileWorker(fileName, _encoding); + (_b = perfLogger) == null ? void 0 : _b.logStopReadFile(); + return file; + } function writeFile2(fileName, data, writeByteOrderMark) { + var _a; + (_a = perfLogger) == null ? void 0 : _a.logEvent("WriteFile: " + fileName); if (writeByteOrderMark) { data = byteOrderMarkIndicator + data; } @@ -8566,6 +8726,8 @@ var sys = (() => { } } function getAccessibleFileSystemEntries(path) { + var _a; + (_a = perfLogger) == null ? void 0 : _a.logEvent("ReadDir: " + (path || ".")); try { const entries = _fs.readdirSync(path || ".", { withFileTypes: true }); const files = []; @@ -8578,8 +8740,12 @@ var sys = (() => { let stat; if (typeof dirent === "string" || dirent.isSymbolicLink()) { const name = combinePaths(path, entry); - stat = statSync(name); - if (!stat) { + try { + stat = statSync(name); + if (!stat) { + continue; + } + } catch (e) { continue; } } else { @@ -8594,7 +8760,7 @@ var sys = (() => { files.sort(); directories.sort(); return { files, directories }; - } catch { + } catch (e) { return emptyFileSystemEntries; } } @@ -8602,17 +8768,25 @@ var sys = (() => { return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath); } function fileSystemEntryExists(path, entryKind) { - const stat = statSync(path); - if (!stat) { - return false; - } - switch (entryKind) { - case 0 /* File */: - return stat.isFile(); - case 1 /* Directory */: - return stat.isDirectory(); - default: + const originalStackTraceLimit = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + const stat = statSync(path); + if (!stat) { return false; + } + switch (entryKind) { + case 0 /* File */: + return stat.isFile(); + case 1 /* Directory */: + return stat.isDirectory(); + default: + return false; + } + } catch (e) { + return false; + } finally { + Error.stackTraceLimit = originalStackTraceLimit; } } function fileExists(path) { @@ -8636,19 +8810,27 @@ var sys = (() => { } function getModifiedTime3(path) { var _a; - return (_a = statSync(path)) == null ? void 0 : _a.mtime; + const originalStackTraceLimit = Error.stackTraceLimit; + Error.stackTraceLimit = 0; + try { + return (_a = statSync(path)) == null ? void 0 : _a.mtime; + } catch (e) { + return void 0; + } finally { + Error.stackTraceLimit = originalStackTraceLimit; + } } function setModifiedTime(path, time) { try { _fs.utimesSync(path, time, time); - } catch { + } catch (e) { return; } } function deleteFile(path) { try { return _fs.unlinkSync(path); - } catch { + } catch (e) { return; } } @@ -8702,7 +8884,7 @@ function pathIsAbsolute(path) { return getEncodedRootLength(path) !== 0; } function pathIsRelative(path) { - return /^\.\.?(?:$|[\\/])/.test(path); + return /^\.\.?($|[\\/])/.test(path); } function pathIsBareSpecifier(path) { return !pathIsAbsolute(path) && !pathIsRelative(path); @@ -8880,105 +9062,23 @@ function resolvePath(path, ...paths) { function getNormalizedPathComponents(path, currentDirectory) { return reducePathComponents(getPathComponents(path, currentDirectory)); } -function getNormalizedAbsolutePath(path, currentDirectory) { - let rootLength = getRootLength(path); - if (rootLength === 0 && currentDirectory) { - path = combinePaths(currentDirectory, path); - rootLength = getRootLength(path); - } else { - path = normalizeSlashes(path); - } - const simpleNormalized = simpleNormalizePath(path); - if (simpleNormalized !== void 0) { - return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized; - } - const length2 = path.length; - const root = path.substring(0, rootLength); - let normalized; - let index = rootLength; - let segmentStart = index; - let normalizedUpTo = index; - let seenNonDotDotSegment = rootLength !== 0; - while (index < length2) { - segmentStart = index; - let ch = path.charCodeAt(index); - while (ch === 47 /* slash */ && index + 1 < length2) { - index++; - ch = path.charCodeAt(index); - } - if (index > segmentStart) { - normalized ?? (normalized = path.substring(0, segmentStart - 1)); - segmentStart = index; - } - let segmentEnd = path.indexOf(directorySeparator, index + 1); - if (segmentEnd === -1) { - segmentEnd = length2; - } - const segmentLength = segmentEnd - segmentStart; - if (segmentLength === 1 && path.charCodeAt(index) === 46 /* dot */) { - normalized ?? (normalized = path.substring(0, normalizedUpTo)); - } else if (segmentLength === 2 && path.charCodeAt(index) === 46 /* dot */ && path.charCodeAt(index + 1) === 46 /* dot */) { - if (!seenNonDotDotSegment) { - if (normalized !== void 0) { - normalized += normalized.length === rootLength ? ".." : "/.."; - } else { - normalizedUpTo = index + 2; - } - } else if (normalized === void 0) { - if (normalizedUpTo - 2 >= 0) { - normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2))); - } else { - normalized = path.substring(0, normalizedUpTo); - } - } else { - const lastSlash = normalized.lastIndexOf(directorySeparator); - if (lastSlash !== -1) { - normalized = normalized.substring(0, Math.max(rootLength, lastSlash)); - } else { - normalized = root; - } - if (normalized.length === rootLength) { - seenNonDotDotSegment = rootLength !== 0; - } - } - } else if (normalized !== void 0) { - if (normalized.length !== rootLength) { - normalized += directorySeparator; - } - seenNonDotDotSegment = true; - normalized += path.substring(segmentStart, segmentEnd); - } else { - seenNonDotDotSegment = true; - normalizedUpTo = segmentEnd; - } - index = segmentEnd + 1; - } - return normalized ?? (length2 > rootLength ? removeTrailingDirectorySeparator(path) : path); +function getNormalizedAbsolutePath(fileName, currentDirectory) { + return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory)); } function normalizePath(path) { path = normalizeSlashes(path); - let normalized = simpleNormalizePath(path); - if (normalized !== void 0) { - return normalized; - } - normalized = getNormalizedAbsolutePath(path, ""); - return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized; -} -function simpleNormalizePath(path) { if (!relativePathSegmentRegExp.test(path)) { return path; } - let simplified = path.replace(/\/\.\//g, "/"); - if (simplified.startsWith("./")) { - simplified = simplified.slice(2); - } + const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, ""); if (simplified !== path) { path = simplified; if (!relativePathSegmentRegExp.test(path)) { return path; } } - return void 0; + const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path))); + return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized; } function getPathWithoutRoot(pathComponents2) { if (pathComponents2.length === 0) return ""; @@ -9017,7 +9117,7 @@ function changeFullExtension(path, newExtension) { } return changeAnyExtension(path, newExtension); } -var relativePathSegmentRegExp = /\/\/|(?:^|\/)\.\.?(?:$|\/)/; +var relativePathSegmentRegExp = /(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/; function comparePathsWorker(a, b, componentComparer) { if (a === b) return 0 /* EqualTo */; if (a === void 0) return -1 /* LessThan */; @@ -9405,8 +9505,6 @@ var Diagnostics = { _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: diag(1290, 1 /* Error */, "_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: diag(1291, 1 /* Error */, "_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: diag(1292, 1 /* Error */, "_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: diag(1293, 1 /* Error */, "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'."), - This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1 /* Error */, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."), with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "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: diag(1308, 1 /* Error */, "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: diag(1309, 1 /* Error */, "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."), @@ -9421,8 +9519,8 @@ var Diagnostics = { Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1 /* Error */, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."), Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1 /* Error */, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."), Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1 /* Error */, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."), - Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1 /* Error */, "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', 'node18', or 'nodenext'."), - Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1 /* Error */, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."), + Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1 /* Error */, "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: diag(1324, 1 /* Error */, "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: diag(1325, 1 /* Error */, "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: diag(1326, 1 /* Error */, "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: diag(1327, 1 /* Error */, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."), @@ -9439,7 +9537,7 @@ var Diagnostics = { Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."), Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"), Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "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_node18_or_nodenext: diag(1343, 1 /* Error */, "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', 'node18', or 'nodenext'."), + The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1 /* Error */, "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: diag(1344, 1 /* Error */, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."), An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."), This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."), @@ -9469,7 +9567,7 @@ var Diagnostics = { 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: diag(1375, 1 /* Error */, "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: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."), _0_was_exported_here: diag(1377, 3 /* Message */, "_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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "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', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."), + 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: diag(1378, 1 /* Error */, "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: diag(1379, 1 /* Error */, "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: diag(1380, 1 /* Error */, "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: diag(1381, 1 /* Error */, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `}`?"), @@ -9520,7 +9618,7 @@ var Diagnostics = { File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"), The_file_is_in_the_program_because_Colon: diag(1430, 3 /* Message */, "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: diag(1431, 1 /* Error */, "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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1 /* Error */, "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', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."), + 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: diag(1432, 1 /* Error */, "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: diag(1433, 1 /* Error */, "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: diag(1434, 1 /* Error */, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."), Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1 /* Error */, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"), @@ -9615,24 +9713,6 @@ var Diagnostics = { This_character_cannot_be_escaped_in_a_regular_expression: diag(1535, 1 /* Error */, "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: diag(1536, 1 /* Error */, "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: diag(1537, 1 /* Error */, "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: diag(1538, 1 /* Error */, "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: diag(1539, 1 /* Error */, "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: diag( - 1540, - 2 /* Suggestion */, - "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.", - /*reportsUnnecessary*/ - void 0, - /*elidedInCompatabilityPyramid*/ - void 0, - /*reportsDeprecated*/ - true - ), - Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1541, 1 /* Error */, "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: diag(1542, 1 /* Error */, "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: diag(1543, 1 /* Error */, "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: diag(1544, 1 /* Error */, "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: diag(2200, 1 /* Error */, "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: diag(2201, 1 /* Error */, "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: diag( @@ -9887,6 +9967,7 @@ var Diagnostics = { The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method: diag(2522, 1 /* Error */, "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: diag(2523, 1 /* Error */, "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523", "'yield' expressions cannot be used in a parameter initializer."), await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, 1 /* Error */, "await_expressions_cannot_be_used_in_a_parameter_initializer_2524", "'await' expressions cannot be used in a parameter initializer."), + Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: diag(2525, 1 /* Error */, "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525", "Initializer provides no value for this binding element and the binding element has no default value."), A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface: diag(2526, 1 /* Error */, "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526", "A 'this' type is available only in a non-static member of a class or interface."), The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: diag(2527, 1 /* Error */, "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527", "The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."), A_module_cannot_have_multiple_default_exports: diag(2528, 1 /* Error */, "A_module_cannot_have_multiple_default_exports_2528", "A module cannot have multiple default exports."), @@ -10162,9 +10243,9 @@ var Diagnostics = { Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1 /* Error */, "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: diag(2819, 1 /* Error */, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."), Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1 /* Error */, "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_node18_nodenext_or_preserve: diag(2821, 1 /* Error */, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."), + Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2821, 1 /* Error */, "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: diag(2822, 1 /* Error */, "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_node18_nodenext_or_preserve: diag(2823, 1 /* Error */, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."), + Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2823, 1 /* Error */, "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: diag(2833, 1 /* Error */, "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: diag(2834, 1 /* Error */, "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: diag(2835, 1 /* Error */, "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}'?"), @@ -10184,7 +10265,7 @@ var Diagnostics = { 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: diag(2851, 1 /* Error */, "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: diag(2852, 1 /* Error */, "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: diag(2853, 1 /* Error */, "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_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "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', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."), + 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: diag(2854, 1 /* Error */, "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: diag(2855, 1 /* Error */, "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: diag(2856, 1 /* Error */, "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: diag(2857, 1 /* Error */, "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857", "Import attributes cannot be used with type-only imports or exports."), @@ -10199,18 +10280,6 @@ var Diagnostics = { Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled: diag(2866, 1 /* Error */, "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: diag(2867, 1 /* Error */, "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: diag(2868, 1 /* Error */, "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: diag(2869, 1 /* Error */, "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: diag(2870, 1 /* Error */, "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: diag(2871, 1 /* Error */, "This_expression_is_always_nullish_2871", "This expression is always nullish."), - This_kind_of_expression_is_always_truthy: diag(2872, 1 /* Error */, "This_kind_of_expression_is_always_truthy_2872", "This kind of expression is always truthy."), - This_kind_of_expression_is_always_falsy: diag(2873, 1 /* Error */, "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: diag(2874, 1 /* Error */, "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: diag(2875, 1 /* Error */, "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: diag(2876, 1 /* Error */, "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: diag(2877, 1 /* Error */, "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: diag(2878, 1 /* Error */, "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: diag(2879, 1 /* Error */, "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_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."), Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."), Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."), Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."), @@ -10287,7 +10356,7 @@ var Diagnostics = { Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1: diag(4085, 1 /* Error */, "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: diag(4091, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091", "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."), Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092", "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."), - Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected: diag(4094, 1 /* Error */, "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."), + Property_0_of_exported_class_expression_may_not_be_private_or_protected: diag(4094, 1 /* Error */, "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094", "Property '{0}' of exported class expression may not be private or protected."), Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4095, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095", "Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."), Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4096, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096", "Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."), Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4097, 1 /* Error */, "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097", "Public static method '{0}' of exported class has or is using private name '{1}'."), @@ -10320,12 +10389,11 @@ var Diagnostics = { Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "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: diag(4125, 1 /* Error */, "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: diag(4126, 1 /* Error */, "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."), - This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."), - This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."), The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."), Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."), File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."), Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."), + Failed_to_parse_file_0_Colon_1: diag(5014, 1 /* Error */, "Failed_to_parse_file_0_Colon_1_5014", "Failed to parse file '{0}': {1}."), Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."), Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "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: diag(5025, 1 /* Error */, "Unknown_compiler_option_0_Did_you_mean_1_5025", "Unknown compiler option '{0}'. Did you mean '{1}'?"), @@ -10526,6 +10594,7 @@ var Diagnostics = { Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: diag(6141, 3 /* Message */, "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141", 'Parse in strict mode and emit "use strict" for each source file.'), Module_0_was_resolved_to_1_but_jsx_is_not_set: diag(6142, 1 /* Error */, "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142", "Module '{0}' was resolved to '{1}', but '--jsx' is not set."), Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: diag(6144, 3 /* Message */, "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144", "Module '{0}' was resolved as locally declared ambient module in file '{1}'."), + Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified: diag(6145, 3 /* Message */, "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145", "Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."), Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: diag(6146, 3 /* Message */, "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146", "Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."), Resolution_for_module_0_was_found_in_cache_from_location_1: diag(6147, 3 /* Message */, "Resolution_for_module_0_was_found_in_cache_from_location_1_6147", "Resolution for module '{0}' was found in cache from location '{1}'."), Directory_0_does_not_exist_skipping_all_lookups_in_it: diag(6148, 3 /* Message */, "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148", "Directory '{0}' does not exist, skipping all lookups in it."), @@ -10767,9 +10836,6 @@ var Diagnostics = { Exiting_conditional_exports: diag(6416, 3 /* Message */, "Exiting_conditional_exports_6416", "Exiting conditional exports."), Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0: diag(6417, 3 /* Message */, "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: diag(6418, 3 /* Message */, "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: diag(6419, 3 /* Message */, "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: diag(6420, 3 /* Message */, "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: diag(6421, 3 /* Message */, "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: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"), The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."), The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."), @@ -10816,7 +10882,6 @@ var Diagnostics = { Ensure_that_casing_is_correct_in_imports: diag(6637, 3 /* Message */, "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: diag(6638, 3 /* Message */, "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: diag(6639, 3 /* Message */, "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: diag(6640, 3 /* Message */, "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: diag(6641, 3 /* Message */, "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: diag(6642, 3 /* Message */, "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: diag(6643, 3 /* Message */, "Include_sourcemap_files_inside_the_emitted_JavaScript_6643", "Include sourcemap files inside the emitted JavaScript."), @@ -10893,14 +10958,9 @@ var Diagnostics = { Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, 3 /* Message */, "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: diag(6718, 3 /* Message */, "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: diag(6719, 3 /* Message */, "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: diag(6720, 3 /* Message */, "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'."), - Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3 /* Message */, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."), Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "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: diag(6804, 3 /* Message */, "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: diag(6805, 3 /* Message */, "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: diag(6806, 3 /* Message */, "Check_side_effect_imports_6806", "Check side effect imports."), - This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1 /* Error */, "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}`."), - Enable_lib_replacement: diag(6808, 3 /* Message */, "Enable_lib_replacement_6808", "Enable lib replacement."), one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"), one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"), type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"), @@ -10951,7 +11011,7 @@ var Diagnostics = { _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: diag(7022, 1 /* Error */, "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022", "'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."), _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7023, 1 /* Error */, "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023", "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7024, 1 /* Error */, "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024", "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."), - Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation: diag(7025, 1 /* Error */, "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."), + Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation: diag(7025, 1 /* Error */, "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: diag(7026, 1 /* Error */, "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026", "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."), Unreachable_code_detected: diag( 7027, @@ -11042,7 +11102,7 @@ var Diagnostics = { Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9006, 1 /* Error */, "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: diag(9007, 1 /* Error */, "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: diag(9008, 1 /* Error */, "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: diag(9009, 1 /* Error */, "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."), + At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations: diag(9009, 1 /* Error */, "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: diag(9010, 1 /* Error */, "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: diag(9011, 1 /* Error */, "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: diag(9012, 1 /* Error */, "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012", "Property must have an explicit type annotation with --isolatedDeclarations."), @@ -11057,7 +11117,7 @@ var Diagnostics = { Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations: diag(9021, 1 /* Error */, "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: diag(9022, 1 /* Error */, "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: diag(9023, 1 /* Error */, "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: diag(9025, 1 /* Error */, "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_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations: diag(9025, 1 /* Error */, "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: diag(9026, 1 /* Error */, "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: diag(9027, 1 /* Error */, "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: diag(9028, 1 /* Error */, "Add_a_type_annotation_to_the_parameter_0_9028", "Add a type annotation to the parameter {0}."), @@ -11351,8 +11411,6 @@ var Diagnostics = { Add_all_optional_parameters: diag(95193, 3 /* Message */, "Add_all_optional_parameters_95193", "Add all optional parameters"), Wrap_in_parentheses: diag(95194, 3 /* Message */, "Wrap_in_parentheses_95194", "Wrap in parentheses"), Wrap_all_invalid_decorator_expressions_in_parentheses: diag(95195, 3 /* Message */, "Wrap_all_invalid_decorator_expressions_in_parentheses_95195", "Wrap all invalid decorator expressions in parentheses"), - Add_resolution_mode_import_attribute: diag(95196, 3 /* Message */, "Add_resolution_mode_import_attribute_95196", "Add 'resolution-mode' import attribute"), - Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it: diag(95197, 3 /* Message */, "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: diag(18004, 1 /* Error */, "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: diag(18006, 1 /* Error */, "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: diag(18007, 1 /* Error */, "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?"), @@ -11396,8 +11454,7 @@ var Diagnostics = { Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "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: diag(18054, 1 /* Error */, "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: diag(18055, 1 /* Error */, "_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: diag(18056, 1 /* Error */, "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: diag(18057, 1 /* Error */, "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'.") + Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled: diag(18056, 1 /* Error */, "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.") }; // src/compiler/scanner.ts @@ -11557,22 +11614,22 @@ var textToToken = new Map(Object.entries({ "#": 63 /* HashToken */, "`": 62 /* BacktickToken */ })); -var charCodeToRegExpFlag = /* @__PURE__ */ new Map([ - [100 /* d */, 1 /* HasIndices */], - [103 /* g */, 2 /* Global */], - [105 /* i */, 4 /* IgnoreCase */], - [109 /* m */, 8 /* Multiline */], - [115 /* s */, 16 /* DotAll */], - [117 /* u */, 32 /* Unicode */], - [118 /* v */, 64 /* UnicodeSets */], - [121 /* y */, 128 /* Sticky */] -]); +var charToRegExpFlag = new Map(Object.entries({ + d: 1 /* HasIndices */, + g: 2 /* Global */, + i: 4 /* IgnoreCase */, + m: 8 /* Multiline */, + s: 16 /* DotAll */, + u: 32 /* Unicode */, + v: 64 /* UnicodeSets */, + y: 128 /* Sticky */ +})); var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([ - [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices], - [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll], - [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode], - [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets], - [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky] + [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */], + [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */], + [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */], + [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */], + [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */] ]); var unicodeES5IdentifierStart = [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]; var unicodeES5IdentifierPart = [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]; @@ -11622,12 +11679,12 @@ function tokenToString(t) { function stringToToken(s) { return textToToken.get(s); } -var regExpFlagCharCodes = makeReverseMap(charCodeToRegExpFlag); -function regularExpressionFlagToCharacterCode(f) { - return regExpFlagCharCodes[f]; +var regExpFlagChars = makeReverseMap(charToRegExpFlag); +function regularExpressionFlagToCharacter(f) { + return regExpFlagChars[f]; } -function characterCodeToRegularExpressionFlag(ch) { - return charCodeToRegExpFlag.get(ch); +function characterToRegularExpressionFlag(c) { + return charToRegExpFlag.get(c); } function computeLineStarts(text) { const result = []; @@ -11641,7 +11698,6 @@ function computeLineStarts(text) { if (text.charCodeAt(pos) === 10 /* lineFeed */) { pos++; } - // falls through case 10 /* lineFeed */: result.push(lineStart); lineStart = pos; @@ -11665,7 +11721,7 @@ function computePositionOfLineAndCharacter(lineStarts, line, character, debugTex if (allowEdits) { line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line; } else { - Debug.fail(`Bad line number. Line: ${line}, lineStarts.length: ${lineStarts.length} , line map is correct? ${debugText !== void 0 ? arrayIsEqualTo(lineStarts, computeLineStarts(debugText)) : "unknown"}`); + Debug.fail(`Bad line number. Line: ${line}, lineStarts.length: ${lineStarts.length} , line map is correct? ${debugText !== void 0 ? arraysEqual(lineStarts, computeLineStarts(debugText)) : "unknown"}`); } } const res = lineStarts[line] + character; @@ -11744,8 +11800,6 @@ function couldStartTrivia(text, pos) { case 12 /* formFeed */: case 32 /* space */: case 47 /* slash */: - // starts of normal trivia - // falls through case 60 /* lessThan */: case 124 /* bar */: case 61 /* equals */: @@ -11769,7 +11823,6 @@ function skipTrivia(text, pos, stopAfterLineBreak, stopAtComments, inJSDoc) { if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - // falls through case 10 /* lineFeed */: pos++; if (stopAfterLineBreak) { @@ -11916,7 +11969,6 @@ function iterateCommentRanges(reduce, text, pos, trailing, cb, state, initial) { if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) { pos++; } - // falls through case 10 /* lineFeed */: pos++; if (trailing) { @@ -12101,6 +12153,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan var tokenFlags; var commentDirectives; var skipJsDocLeadingAsterisks = 0; + var asteriskSeen = false; var scriptKind = 0 /* Unknown */; var jsDocParsingMode = 0 /* ParseAll */; setText(text, start, length2); @@ -12118,7 +12171,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan hasExtendedUnicodeEscape: () => (tokenFlags & 8 /* ExtendedUnicodeEscape */) !== 0, hasPrecedingLineBreak: () => (tokenFlags & 1 /* PrecedingLineBreak */) !== 0, hasPrecedingJSDocComment: () => (tokenFlags & 2 /* PrecedingJSDocComment */) !== 0, - hasPrecedingJSDocLeadingAsterisks: () => (tokenFlags & 32768 /* PrecedingJSDocLeadingAsterisks */) !== 0, isIdentifier: () => token === 80 /* Identifier */ || token > 118 /* LastReservedWord */, isReservedWord: () => token >= 83 /* FirstReservedWord */ && token <= 118 /* LastReservedWord */, isUnterminated: () => (tokenFlags & 4 /* Unterminated */) !== 0, @@ -12153,6 +12205,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan resetTokenState, setTextPos: resetTokenState, setSkipJsDocLeadingAsterisks, + hasLeadingAsterisks, tryScan, lookAhead, scanRange @@ -12482,16 +12535,12 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (pos >= end || !isDigit(charCodeUnchecked(pos))) { return "\0"; } - // '\01', '\011' - // falls through case 49 /* _1 */: case 50 /* _2 */: case 51 /* _3 */: if (pos < end && isOctalDigit(charCodeUnchecked(pos))) { pos++; } - // '\17', '\177' - // falls through case 52 /* _4 */: case 53 /* _5 */: case 54 /* _6 */: @@ -12539,16 +12588,9 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan case 34 /* doubleQuote */: return '"'; case 117 /* u */: - if (pos < end && charCodeUnchecked(pos) === 123 /* openBrace */) { + if (flags & 17 /* ScanExtendedUnicodeEscape */ && pos < end && charCodeUnchecked(pos) === 123 /* openBrace */) { pos -= 2; - const result = scanExtendedUnicodeEscape(!!(flags & 6 /* ReportInvalidEscapeErrors */)); - if (!(flags & 17 /* AllowExtendedUnicodeEscape */)) { - tokenFlags |= 2048 /* ContainsInvalidEscape */; - if (flags & 6 /* ReportInvalidEscapeErrors */) { - error2(Diagnostics.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set, start2, pos - start2); - } - } - return result; + return scanExtendedUnicodeEscape(!!(flags & 6 /* ReportInvalidEscapeErrors */)); } for (; pos < start2 + 6; pos++) { if (!(pos < end && isHexDigit(charCodeUnchecked(pos)))) { @@ -12566,7 +12608,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan const nextStart = pos; let nextPos = pos + 2; for (; nextPos < nextStart + 6; nextPos++) { - if (!isHexDigit(charCodeUnchecked(nextPos))) { + if (!isHexDigit(charCodeUnchecked(pos))) { return escapedValueString; } } @@ -12589,13 +12631,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } tokenFlags |= 4096 /* HexEscape */; return String.fromCharCode(parseInt(text.substring(start2 + 2, pos), 16)); - // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence), - // the line terminator is interpreted to be "the empty code unit sequence". case 13 /* carriageReturn */: if (pos < end && charCodeUnchecked(pos) === 10 /* lineFeed */) { pos++; } - // falls through case 10 /* lineFeed */: case 8232 /* lineSeparator */: case 8233 /* paragraphSeparator */: @@ -12773,6 +12812,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan function scan() { fullStartPos = pos; tokenFlags = 0 /* None */; + asteriskSeen = false; while (true) { tokenStart = pos; if (pos >= end) { @@ -12888,8 +12928,8 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return pos += 2, token = 43 /* AsteriskAsteriskToken */; } pos++; - if (skipJsDocLeadingAsterisks && (tokenFlags & 32768 /* PrecedingJSDocLeadingAsterisks */) === 0 && tokenFlags & 1 /* PrecedingLineBreak */) { - tokenFlags |= 32768 /* PrecedingJSDocLeadingAsterisks */; + if (skipJsDocLeadingAsterisks && !asteriskSeen && tokenFlags & 1 /* PrecedingLineBreak */) { + asteriskSeen = true; continue; } return token = 42 /* AsteriskToken */; @@ -13026,7 +13066,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan tokenFlags |= 256 /* OctalSpecifier */; return token = checkBigIntSuffix(); } - // falls through case 49 /* _1 */: case 50 /* _2 */: case 51 /* _3 */: @@ -13363,25 +13402,24 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan pos++; let regExpFlags = 0 /* None */; while (true) { - const ch = codePointChecked(pos); + const ch = charCodeChecked(pos); if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { break; } - const size = charSize(ch); if (reportErrors2) { - const flag = characterCodeToRegularExpressionFlag(ch); + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); if (flag === void 0) { - error2(Diagnostics.Unknown_regular_expression_flag, pos, size); + error2(Diagnostics.Unknown_regular_expression_flag, pos, 1); } else if (regExpFlags & flag) { - error2(Diagnostics.Duplicate_regular_expression_flag, pos, size); + error2(Diagnostics.Duplicate_regular_expression_flag, pos, 1); } else if (((regExpFlags | flag) & 96 /* AnyUnicodeMode */) === 96 /* AnyUnicodeMode */) { - error2(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos, size); + error2(Diagnostics.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously, pos, 1); } else { regExpFlags |= flag; - checkRegularExpressionFlagAvailability(flag, size); + checkRegularExpressionFlagAvailable(flag, pos); } } - pos += size; + pos++; } if (reportErrors2) { scanRange(startOfRegExpBody, endOfRegExpBody - startOfRegExpBody, () => { @@ -13546,7 +13584,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan break; } } - // falls through case 42 /* asterisk */: case 43 /* plus */: case 63 /* question */: @@ -13577,7 +13614,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (isInGroup) { return; } - // falls through case 93 /* closeBracket */: case 125 /* closeBrace */: if (anyUnicodeModeOrNonAnnexB || ch === 41 /* closeParen */) { @@ -13598,23 +13634,22 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } function scanPatternModifiers(currFlags) { while (true) { - const ch = codePointChecked(pos); + const ch = charCodeChecked(pos); if (ch === -1 /* EOF */ || !isIdentifierPart(ch, languageVersion)) { break; } - const size = charSize(ch); - const flag = characterCodeToRegularExpressionFlag(ch); + const flag = characterToRegularExpressionFlag(String.fromCharCode(ch)); if (flag === void 0) { - error2(Diagnostics.Unknown_regular_expression_flag, pos, size); + error2(Diagnostics.Unknown_regular_expression_flag, pos, 1); } else if (currFlags & flag) { - error2(Diagnostics.Duplicate_regular_expression_flag, pos, size); + error2(Diagnostics.Duplicate_regular_expression_flag, pos, 1); } else if (!(flag & 28 /* Modifiers */)) { - error2(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, size); + error2(Diagnostics.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern, pos, 1); } else { currFlags |= flag; - checkRegularExpressionFlagAvailability(flag, size); + checkRegularExpressionFlagAvailable(flag, pos); } - pos += size; + pos++; } return currFlags; } @@ -13640,7 +13675,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan error2(Diagnostics.q_is_only_available_inside_character_class, pos - 2, 2); break; } - // falls through default: Debug.assert(scanCharacterClassEscape() || scanDecimalEscape() || scanCharacterEscape( /*atomEscape*/ @@ -13778,7 +13812,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan let start2 = pos; let operand; switch (text.slice(pos, pos + 2)) { - // TODO: don't use slice case "--": case "&&": error2(Diagnostics.Expected_a_class_set_operand); @@ -13884,7 +13917,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } start2 = pos; switch (text.slice(pos, pos + 2)) { - // TODO: don't use slice case "--": case "&&": error2(Diagnostics.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead, pos, 2); @@ -13982,7 +14014,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } } pos--; - // falls through default: return scanClassSetCharacter(); } @@ -14129,7 +14160,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return true; case 80 /* P */: isCharacterComplement = true; - // falls through case 112 /* p */: pos++; if (charCodeChecked(pos) === 123 /* openBrace */) { @@ -14205,7 +14235,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan return value; } function scanSourceCharacter() { - const size = anyUnicodeMode ? charSize(codePointChecked(pos)) : 1; + const size = anyUnicodeMode ? charSize(charCodeChecked(pos)) : 1; pos += size; return size > 0 ? text.substring(pos - size, pos) : ""; } @@ -14223,12 +14253,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan forEach(groupNameReferences, (reference) => { if (!(groupSpecifiers == null ? void 0 : groupSpecifiers.has(reference.name))) { error2(Diagnostics.There_is_no_capturing_group_named_0_in_this_regular_expression, reference.pos, reference.end - reference.pos, reference.name); - if (groupSpecifiers) { - const suggestion = getSpellingSuggestion(reference.name, groupSpecifiers, identity); - if (suggestion) { - error2(Diagnostics.Did_you_mean_0, reference.pos, reference.end - reference.pos, suggestion); - } - } } }); forEach(decimalEscapes, (escape) => { @@ -14241,10 +14265,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan } }); } - function checkRegularExpressionFlagAvailability(flag, size) { + function checkRegularExpressionFlagAvailable(flag, pos2) { const availableFrom = regExpFlagToFirstAvailableLanguageVersion.get(flag); if (availableFrom && languageVersion < availableFrom) { - error2(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos, size, getNameOfScriptTarget(availableFrom)); + error2(Diagnostics.This_regular_expression_flag_is_only_available_when_targeting_0_or_later, pos2, 1, getNameOfScriptTarget(availableFrom)); } } function appendIfCommentDirective(commentDirectives2, text2, commentDirectiveRegEx, lineStart) { @@ -14437,7 +14461,6 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan if (charCodeUnchecked(pos) === 10 /* lineFeed */) { pos++; } - // falls through case 10 /* lineFeed */: tokenFlags |= 1 /* PrecedingLineBreak */; return token = 4 /* NewLineTrivia */; @@ -14592,6 +14615,9 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan function setSkipJsDocLeadingAsterisks(skip) { skipJsDocLeadingAsterisks += skip ? 1 : -1; } + function hasLeadingAsterisks() { + return asteriskSeen; + } } function codePointAt(s, i) { return s.codePointAt(i); @@ -14642,35 +14668,28 @@ function isExternalModuleNameRelative(moduleName) { function sortAndDeduplicateDiagnostics(diagnostics) { return sortAndDeduplicate(diagnostics, compareDiagnostics, diagnosticsEqualityComparer); } -var targetToLibMap = /* @__PURE__ */ new Map([ - [99 /* ESNext */, "lib.esnext.full.d.ts"], - [11 /* ES2024 */, "lib.es2024.full.d.ts"], - [10 /* ES2023 */, "lib.es2023.full.d.ts"], - [9 /* ES2022 */, "lib.es2022.full.d.ts"], - [8 /* ES2021 */, "lib.es2021.full.d.ts"], - [7 /* ES2020 */, "lib.es2020.full.d.ts"], - [6 /* ES2019 */, "lib.es2019.full.d.ts"], - [5 /* ES2018 */, "lib.es2018.full.d.ts"], - [4 /* ES2017 */, "lib.es2017.full.d.ts"], - [3 /* ES2016 */, "lib.es2016.full.d.ts"], - [2 /* ES2015 */, "lib.es6.d.ts"] - // We don't use lib.es2015.full.d.ts due to breaking change. -]); function getDefaultLibFileName(options) { - const target = getEmitScriptTarget(options); - switch (target) { + switch (getEmitScriptTarget(options)) { case 99 /* ESNext */: - case 11 /* ES2024 */: + return "lib.esnext.full.d.ts"; case 10 /* ES2023 */: + return "lib.es2023.full.d.ts"; case 9 /* ES2022 */: + return "lib.es2022.full.d.ts"; case 8 /* ES2021 */: + return "lib.es2021.full.d.ts"; case 7 /* ES2020 */: + return "lib.es2020.full.d.ts"; case 6 /* ES2019 */: + return "lib.es2019.full.d.ts"; case 5 /* ES2018 */: + return "lib.es2018.full.d.ts"; case 4 /* ES2017 */: + return "lib.es2017.full.d.ts"; case 3 /* ES2016 */: + return "lib.es2016.full.d.ts"; case 2 /* ES2015 */: - return targetToLibMap.get(target); + return "lib.es6.d.ts"; default: return "lib.d.ts"; } @@ -14684,18 +14703,12 @@ function textSpanIsEmpty(span) { function textSpanContainsPosition(span, position) { return position >= span.start && position < textSpanEnd(span); } -function textRangeContainsPositionInclusive(range, position) { - return position >= range.pos && position <= range.end; +function textRangeContainsPositionInclusive(span, position) { + return position >= span.pos && position <= span.end; } function textSpanContainsTextSpan(span, other) { return other.start >= span.start && textSpanEnd(other) <= textSpanEnd(span); } -function textSpanContainsTextRange(span, range) { - return range.pos >= span.start && range.end <= textSpanEnd(span); -} -function textRangeContainsTextSpan(range, span) { - return span.start >= range.pos && textSpanEnd(span) <= range.end; -} function textSpanOverlapsWith(span, other) { return textSpanOverlap(span, other) !== void 0; } @@ -14717,34 +14730,11 @@ function decodedTextSpanIntersectsWith(start1, length1, start2, length2) { function textSpanIntersectsWithPosition(span, position) { return position <= textSpanEnd(span) && position >= span.start; } -function textRangeIntersectsWithTextSpan(range, span) { - return textSpanIntersectsWith(span, range.pos, range.end - range.pos); -} function textSpanIntersection(span1, span2) { const start = Math.max(span1.start, span2.start); const end = Math.min(textSpanEnd(span1), textSpanEnd(span2)); return start <= end ? createTextSpanFromBounds(start, end) : void 0; } -function normalizeSpans(spans) { - spans = spans.filter((span) => span.length > 0).sort((a, b) => { - return a.start !== b.start ? a.start - b.start : a.length - b.length; - }); - const result = []; - let i = 0; - while (i < spans.length) { - let span = spans[i]; - let j = i + 1; - while (j < spans.length && textSpanIntersectsWithTextSpan(span, spans[j])) { - const start = Math.min(span.start, spans[j].start); - const end = Math.max(textSpanEnd(span), textSpanEnd(spans[j])); - span = createTextSpanFromBounds(start, end); - j++; - } - i = j; - result.push(span); - } - return result; -} function createTextSpan(start, length2) { if (start < 0) { throw new Error("start < 0"); @@ -14862,7 +14852,7 @@ function getNodeFlags(node) { var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"]; function validateLocaleAndSetLanguage(locale, sys2, errors) { const lowerCaseLocale = locale.toLowerCase(); - const matchResult = /^([a-z]+)(?:[_-]([a-z]+))?$/.exec(lowerCaseLocale); + const matchResult = /^([a-z]+)([_-]([a-z]+))?$/.exec(lowerCaseLocale); if (!matchResult) { if (errors) { errors.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp")); @@ -14870,7 +14860,7 @@ function validateLocaleAndSetLanguage(locale, sys2, errors) { return; } const language = matchResult[1]; - const territory = matchResult[2]; + const territory = matchResult[3]; if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors)) { trySetLanguageAndTerritory( language, @@ -14894,7 +14884,7 @@ function validateLocaleAndSetLanguage(locale, sys2, errors) { let fileContents = ""; try { fileContents = sys2.readFile(filePath); - } catch { + } catch (e) { if (errors2) { errors2.push(createCompilerDiagnostic(Diagnostics.Unable_to_open_file_0, filePath)); } @@ -15293,6 +15283,13 @@ function getJSDocTags(node) { false ); } +function getJSDocTagsNoCache(node) { + return getJSDocTagsWorker( + node, + /*noCache*/ + true + ); +} function getFirstJSDocTag(node, predicate, noCache) { return find(getJSDocTagsWorker(node, noCache), predicate); } @@ -15395,6 +15392,9 @@ function isNamedExportBindings(node) { function isJSDocPropertyLikeTag(node) { return node.kind === 348 /* JSDocPropertyTag */ || node.kind === 341 /* JSDocParameterTag */; } +function isNode(node) { + return isNodeKind(node.kind); +} function isNodeKind(kind) { return kind >= 166 /* FirstNode */; } @@ -15463,9 +15463,6 @@ function isTypeOnlyExportDeclaration(node) { function isTypeOnlyImportOrExportDeclaration(node) { return isTypeOnlyImportDeclaration(node) || isTypeOnlyExportDeclaration(node); } -function isPartOfTypeOnlyImportOrExportDeclaration(node) { - return findAncestor(node, isTypeOnlyImportOrExportDeclaration) !== void 0; -} function isStringTextContainingNode(node) { return node.kind === 11 /* StringLiteral */ || isTemplateLiteralKind(node.kind); } @@ -15609,12 +15606,23 @@ function isMethodOrAccessor(node) { return false; } } +function isNamedClassElement(node) { + switch (node.kind) { + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 178 /* SetAccessor */: + case 172 /* PropertyDeclaration */: + return true; + default: + return false; + } +} function isModifierLike(node) { return isModifier(node) || isDecorator(node); } function isTypeElement(node) { const kind = node.kind; - return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */ || kind === 354 /* NotEmittedTypeElement */; + return kind === 180 /* ConstructSignature */ || kind === 179 /* CallSignature */ || kind === 171 /* PropertySignature */ || kind === 173 /* MethodSignature */ || kind === 181 /* IndexSignature */ || kind === 177 /* GetAccessor */ || kind === 178 /* SetAccessor */; } function isClassOrTypeElement(node) { return isTypeElement(node) || isClassElement(node); @@ -15676,9 +15684,7 @@ function isObjectBindingOrAssignmentElement(node) { switch (node.kind) { case 208 /* BindingElement */: case 303 /* PropertyAssignment */: - // AssignmentProperty case 304 /* ShorthandPropertyAssignment */: - // AssignmentProperty case 305 /* SpreadAssignment */: return true; } @@ -15696,17 +15702,11 @@ function isArrayBindingOrAssignmentElement(node) { switch (node.kind) { case 208 /* BindingElement */: case 232 /* OmittedExpression */: - // Elision case 230 /* SpreadElement */: - // AssignmentRestElement case 209 /* ArrayLiteralExpression */: - // ArrayAssignmentPattern case 210 /* ObjectLiteralExpression */: - // ObjectAssignmentPattern case 80 /* Identifier */: - // DestructuringAssignmentTarget case 211 /* PropertyAccessExpression */: - // DestructuringAssignmentTarget case 212 /* ElementAccessExpression */: return true; } @@ -15729,16 +15729,13 @@ function isCallLikeOrFunctionLikeExpression(node) { } function isCallLikeExpression(node) { switch (node.kind) { + case 286 /* JsxOpeningElement */: + case 285 /* JsxSelfClosingElement */: case 213 /* CallExpression */: case 214 /* NewExpression */: case 215 /* TaggedTemplateExpression */: case 170 /* Decorator */: - case 286 /* JsxOpeningElement */: - case 285 /* JsxSelfClosingElement */: - case 289 /* JsxOpeningFragment */: return true; - case 226 /* BinaryExpression */: - return node.operatorToken.kind === 104 /* InstanceOfKeyword */; default: return false; } @@ -15770,7 +15767,6 @@ function isLeftHandSideExpressionKind(kind) { case 218 /* FunctionExpression */: case 80 /* Identifier */: case 81 /* PrivateIdentifier */: - // technically this is only an Expression if it's in a `#field in expr` BinaryExpression case 14 /* RegularExpressionLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: @@ -15786,7 +15782,6 @@ function isLeftHandSideExpressionKind(kind) { case 233 /* ExpressionWithTypeArguments */: case 236 /* MetaProperty */: case 102 /* ImportKeyword */: - // technically this is only an Expression if it's in a CallExpression case 282 /* MissingDeclaration */: return true; default: @@ -15843,8 +15838,8 @@ function isExpressionKind(kind) { case 230 /* SpreadElement */: case 234 /* AsExpression */: case 232 /* OmittedExpression */: - case 356 /* CommaListExpression */: - case 355 /* PartiallyEmittedExpression */: + case 355 /* CommaListExpression */: + case 354 /* PartiallyEmittedExpression */: case 238 /* SatisfiesExpression */: return true; default: @@ -15855,6 +15850,9 @@ function isAssertionExpression(node) { const kind = node.kind; return kind === 216 /* TypeAssertionExpression */ || kind === 234 /* AsExpression */; } +function isNotEmittedOrPartiallyEmittedNode(node) { + return isNotEmittedStatement(node) || isPartiallyEmittedExpression(node); +} function isIterationStatement(node, lookInLabeledStatements) { switch (node.kind) { case 248 /* ForStatement */: @@ -16081,10 +16079,6 @@ function isJsxOpeningLikeElement(node) { const kind = node.kind; return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */; } -function isJsxCallLike(node) { - const kind = node.kind; - return kind === 286 /* JsxOpeningElement */ || kind === 285 /* JsxSelfClosingElement */ || kind === 289 /* JsxOpeningFragment */; -} function isCaseOrDefaultClause(node) { const kind = node.kind; return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */; @@ -16343,12 +16337,6 @@ function projectReferenceIsEqualTo(oldRef, newRef) { function moduleResolutionIsEqualTo(oldResolution, newResolution) { return oldResolution === newResolution || oldResolution.resolvedModule === newResolution.resolvedModule || !!oldResolution.resolvedModule && !!newResolution.resolvedModule && oldResolution.resolvedModule.isExternalLibraryImport === newResolution.resolvedModule.isExternalLibraryImport && oldResolution.resolvedModule.extension === newResolution.resolvedModule.extension && oldResolution.resolvedModule.resolvedFileName === newResolution.resolvedModule.resolvedFileName && oldResolution.resolvedModule.originalPath === newResolution.resolvedModule.originalPath && packageIdIsEqual(oldResolution.resolvedModule.packageId, newResolution.resolvedModule.packageId) && oldResolution.alternateResult === newResolution.alternateResult; } -function getResolvedModuleFromResolution(resolution) { - return resolution.resolvedModule; -} -function getResolvedTypeReferenceDirectiveFromResolution(resolution) { - return resolution.resolvedTypeReferenceDirective; -} function createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageName) { var _a; const alternateResult = (_a = host.getResolvedModule(sourceFile, moduleReference, mode)) == null ? void 0 : _a.alternateResult; @@ -16383,34 +16371,6 @@ function createModuleNotFoundChain(sourceFile, host, moduleReference, mode, pack if (result) result.repopulateInfo = () => ({ moduleReference, mode, packageName: packageName === moduleReference ? void 0 : packageName }); return result; } -function createModeMismatchDetails(currentSourceFile) { - const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); - const scope = currentSourceFile.packageJsonScope; - const targetExt = ext === ".ts" /* Ts */ ? ".mts" /* Mts */ : ext === ".js" /* Js */ ? ".mjs" /* Mjs */ : void 0; - const result = scope && !scope.contents.packageJsonContent.type ? targetExt ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, - targetExt, - combinePaths(scope.packageDirectory, "package.json") - ) : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, - combinePaths(scope.packageDirectory, "package.json") - ) : targetExt ? chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.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, - targetExt - ) : chainDiagnosticMessages( - /*details*/ - void 0, - Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module - ); - result.repopulateInfo = () => true; - return result; -} function packageIdIsEqual(a, b) { return a === b || !!a && !!b && a.name === b.name && a.subModuleName === b.subModuleName && a.version === b.version && a.peerDependencies === b.peerDependencies; } @@ -16636,13 +16596,6 @@ function getNonDecoratorTokenPosOfNode(node, sourceFile) { } return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastDecorator.end); } -function getNonModifierTokenPosOfNode(node, sourceFile) { - const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0; - if (!lastModifier) { - return getTokenPosOfNode(node, sourceFile); - } - return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end); -} function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) { return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia); } @@ -16650,16 +16603,7 @@ function isJSDocTypeExpressionOrChild(node) { return !!findAncestor(node, isJSDocTypeExpression); } function isExportNamespaceAsDefaultDeclaration(node) { - return !!(isExportDeclaration(node) && node.exportClause && isNamespaceExport(node.exportClause) && moduleExportNameIsDefault(node.exportClause.name)); -} -function moduleExportNameTextUnescaped(node) { - return node.kind === 11 /* StringLiteral */ ? node.text : unescapeLeadingUnderscores(node.escapedText); -} -function moduleExportNameTextEscaped(node) { - return node.kind === 11 /* StringLiteral */ ? escapeLeadingUnderscores(node.text) : node.escapedText; -} -function moduleExportNameIsDefault(node) { - return (node.kind === 11 /* StringLiteral */ ? node.text : node.escapedText) === "default" /* Default */; + return !!(isExportDeclaration(node) && node.exportClause && isNamespaceExport(node.exportClause) && node.exportClause.name.escapedText === "default"); } function getTextOfNodeFromSourceText(sourceText, node, includeTrivia = false) { if (nodeIsMissing(node)) { @@ -16712,11 +16656,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Iterator: new Map(Object.entries({ @@ -16725,45 +16665,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( AsyncIterator: new Map(Object.entries({ es2015: emptyArray })), - ArrayBuffer: new Map(Object.entries({ - es2024: [ - "maxByteLength", - "resizable", - "resize", - "detached", - "transfer", - "transferToFixedLength" - ] - })), Atomics: new Map(Object.entries({ - es2017: [ - "add", - "and", - "compareExchange", - "exchange", - "isLockFree", - "load", - "or", - "store", - "sub", - "wait", - "notify", - "xor" - ], - es2024: [ - "waitAsync" - ] + es2017: emptyArray })), SharedArrayBuffer: new Map(Object.entries({ - es2017: [ - "byteLength", - "slice" - ], - es2024: [ - "growable", - "maxByteLength", - "grow" - ] + es2017: emptyArray })), AsyncIterable: new Map(Object.entries({ es2018: emptyArray @@ -16785,9 +16691,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2018: [ "dotAll" - ], - es2024: [ - "unicodeSets" ] })), Reflect: new Map(Object.entries({ @@ -16834,9 +16737,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2022: [ "hasOwn" - ], - es2024: [ - "groupBy" ] })), NumberConstructor: new Map(Object.entries({ @@ -16868,9 +16768,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( "trunc", "fround", "cbrt" - ], - esnext: [ - "f16round" ] })), Map: new Map(Object.entries({ @@ -16880,25 +16777,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( "values" ] })), - MapConstructor: new Map(Object.entries({ - es2024: [ - "groupBy" - ] - })), Set: new Map(Object.entries({ es2015: [ "entries", "keys", "values" - ], - esnext: [ - "union", - "intersection", - "difference", - "symmetricDifference", - "isSubsetOf", - "isSupersetOf", - "isDisjointFrom" ] })), PromiseConstructor: new Map(Object.entries({ @@ -16913,9 +16796,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2021: [ "any" - ], - es2024: [ - "withResolvers" ] })), Symbol: new Map(Object.entries({ @@ -16982,7 +16862,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( es2022: [ "at" ], - es2024: [ + esnext: [ "isWellFormed", "toWellFormed" ] @@ -17027,11 +16907,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( SymbolConstructor: new Map(Object.entries({ es2020: [ "matchAll" - ], - esnext: [ - "metadata", - "dispose", - "asyncDispose" ] })), DataView: new Map(Object.entries({ @@ -17040,10 +16915,6 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( "setBigUint64", "getBigInt64", "getBigUint64" - ], - esnext: [ - "setFloat16", - "getFloat16" ] })), BigInt: new Map(Object.entries({ @@ -17062,11 +16933,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Uint8Array: new Map(Object.entries({ @@ -17075,11 +16942,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Uint8ClampedArray: new Map(Object.entries({ @@ -17088,11 +16951,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Int16Array: new Map(Object.entries({ @@ -17101,11 +16960,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Uint16Array: new Map(Object.entries({ @@ -17114,11 +16969,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Int32Array: new Map(Object.entries({ @@ -17127,11 +16978,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Uint32Array: new Map(Object.entries({ @@ -17140,27 +16987,16 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), - Float16Array: new Map(Object.entries({ - esnext: emptyArray - })), Float32Array: new Map(Object.entries({ es2022: [ "at" ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Float64Array: new Map(Object.entries({ @@ -17169,11 +17005,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), BigInt64Array: new Map(Object.entries({ @@ -17183,11 +17015,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), BigUint64Array: new Map(Object.entries({ @@ -17197,11 +17025,7 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize( ], es2023: [ "findLastIndex", - "findLast", - "toReversed", - "toSorted", - "toSpliced", - "with" + "findLast" ] })), Error: new Map(Object.entries({ @@ -17329,7 +17153,7 @@ function getNonAugmentationDeclaration(symbol) { return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d))); } function isCommonJSContainingModuleKind(kind) { - return kind === 1 /* CommonJS */ || 100 /* Node16 */ <= kind && kind <= 199 /* NodeNext */; + return kind === 1 /* CommonJS */ || kind === 100 /* Node16 */ || kind === 199 /* NodeNext */; } function isEffectiveExternalModule(node, compilerOptions) { return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator; @@ -17492,7 +17316,6 @@ function tryGetTextOfPropertyName(name) { return ((_a = name.emitNode) == null ? void 0 : _a.autoGenerate) ? void 0 : name.escapedText; case 11 /* StringLiteral */: case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: return escapeLeadingUnderscores(name.text); case 167 /* ComputedPropertyName */: @@ -17659,8 +17482,6 @@ function getErrorSpanForNode(sourceFile, node) { } return getSpanOfTokenAtPosition(sourceFile, pos2); } - // This list is a work in progress. Add missing node kinds to improve their error - // spans. case 260 /* VariableDeclaration */: case 208 /* BindingElement */: case 263 /* ClassDeclaration */: @@ -17803,12 +17624,12 @@ function getJSDocCommentRanges(node, text) { return filter(commentRanges, (comment) => comment.end <= node.end && // Due to parse errors sometime empty parameter may get comments assigned to it that end up not in parameter range text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ && text.charCodeAt(comment.pos + 3) !== 47 /* slash */); } -var fullTripleSlashReferencePathRegEx = /^\/\/\/\s*/; -var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^\/\/\/\s*/; -var fullTripleSlashLibReferenceRegEx = /^\/\/\/\s*/; -var fullTripleSlashAMDReferencePathRegEx = /^\/\/\/\s*/; -var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*/; -var defaultLibReferenceRegEx = /^\/\/\/\s*/; +var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*/; +var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*/; +var fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*/; +var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*/; +var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*/; +var defaultLibReferenceRegEx = /^(\/\/\/\s*/; function isPartOfTypeNode(node) { if (182 /* FirstTypeNode */ <= node.kind && node.kind <= 205 /* LastTypeNode */) { return true; @@ -17832,8 +17653,6 @@ function isPartOfTypeNode(node) { return isPartOfTypeExpressionWithTypeArguments(node); case 168 /* TypeParameter */: return node.parent.kind === 200 /* MappedType */ || node.parent.kind === 195 /* InferType */; - // Identifiers and qualified names may be type nodes, depending on their context. Climb - // above them to find the lowest container case 80 /* Identifier */: if (node.parent.kind === 166 /* QualifiedName */ && node.parent.right === node) { node = node.parent; @@ -17841,7 +17660,6 @@ function isPartOfTypeNode(node) { node = node.parent; } Debug.assert(node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */ || node.kind === 211 /* PropertyAccessExpression */, "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'."); - // falls through case 166 /* QualifiedName */: case 211 /* PropertyAccessExpression */: case 110 /* ThisKeyword */: { @@ -17894,6 +17712,15 @@ function isPartOfTypeNode(node) { function isPartOfTypeExpressionWithTypeArguments(node) { return isJSDocImplementsTag(node.parent) || isJSDocAugmentsTag(node.parent) || isHeritageClause(node.parent) && !isExpressionWithTypeArgumentsInClassExtendsClause(node); } +function isChildOfNodeWithKind(node, kind) { + while (node) { + if (node.kind === kind) { + return true; + } + node = node.parent; + } + return false; +} function forEachReturnStatement(body, visitor) { return traverse(body); function traverse(node) { @@ -17983,6 +17810,9 @@ function isVariableLike(node) { } return false; } +function isVariableLikeOrAccessor(node) { + return isVariableLike(node) || isAccessor(node); +} function isVariableDeclarationInVariableStatement(node) { return node.parent.kind === 261 /* VariableDeclarationList */ && node.parent.parent.kind === 243 /* VariableStatement */; } @@ -18043,6 +17873,9 @@ function forEachPropertyAssignment(objectLiteral, key, callback, key2) { return key === propName || key2 && key2 === propName ? callback(property) : void 0; }); } +function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) { + return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); +} function getTsConfigObjectLiteralExpression(tsConfigSourceFile) { if (tsConfigSourceFile && tsConfigSourceFile.statements.length) { const expression = tsConfigSourceFile.statements[0].expression; @@ -18104,7 +17937,6 @@ function getThisContainer(node, includeArrowFunctions, includeClassComputedPrope if (!includeArrowFunctions) { continue; } - // falls through case 262 /* FunctionDeclaration */: case 218 /* FunctionExpression */: case 267 /* ModuleDeclaration */: @@ -18127,8 +17959,6 @@ function getThisContainer(node, includeArrowFunctions, includeClassComputedPrope } function isThisContainerOrFunctionBlock(node) { switch (node.kind) { - // Arrow functions use the same scope, but may do so in a "delayed" manner - // For example, `const getThis = () => this` may be before a super() call in a derived constructor case 219 /* ArrowFunction */: case 262 /* FunctionDeclaration */: case 218 /* FunctionExpression */: @@ -18195,7 +18025,6 @@ function getSuperContainer(node, stopOnFunctions) { if (!stopOnFunctions) { continue; } - // falls through case 172 /* PropertyDeclaration */: case 171 /* PropertySignature */: case 174 /* MethodDeclaration */: @@ -18228,6 +18057,9 @@ function getImmediatelyInvokedFunctionExpression(func) { } } } +function isSuperOrSuperProperty(node) { + return node.kind === 108 /* SuperKeyword */ || isSuperProperty(node); +} function isSuperProperty(node) { const kind = node.kind; return (kind === 211 /* PropertyAccessExpression */ || kind === 212 /* ElementAccessExpression */) && node.expression.kind === 108 /* SuperKeyword */; @@ -18249,7 +18081,6 @@ function getEntityNameFromTypeNode(node) { return node.typeName; case 233 /* ExpressionWithTypeArguments */: return isEntityNameExpression(node.expression) ? node.expression : void 0; - // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s. case 80 /* Identifier */: case 166 /* QualifiedName */: return node; @@ -18265,8 +18096,6 @@ function getInvokedExpression(node) { return node.tagName; case 226 /* BinaryExpression */: return node.right; - case 289 /* JsxOpeningFragment */: - return node; default: return node.expression; } @@ -18416,7 +18245,6 @@ function isExpressionNode(node) { if (node.parent.kind === 186 /* TypeQuery */ || isJSDocLinkLike(node.parent) || isJSDocNameReference(node.parent) || isJSDocMemberName(node.parent) || isJSXTagName(node)) { return true; } - // falls through case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: @@ -18505,6 +18333,9 @@ function isFullSourceFile(sourceFile) { function isSourceFileJS(file) { return isInJSFile(file); } +function isSourceFileNotJS(file) { + return !isInJSFile(file); +} function isInJSFile(node) { return !!node && !!(node.flags & 524288 /* JavaScriptFile */); } @@ -18806,23 +18637,6 @@ function isFunctionSymbol(symbol) { const decl = symbol.valueDeclaration; return decl.kind === 262 /* FunctionDeclaration */ || isVariableDeclaration(decl) && decl.initializer && isFunctionLike(decl.initializer); } -function canHaveModuleSpecifier(node) { - switch (node == null ? void 0 : node.kind) { - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - case 272 /* ImportDeclaration */: - case 278 /* ExportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 273 /* ImportClause */: - case 280 /* NamespaceExport */: - case 274 /* NamespaceImport */: - case 281 /* ExportSpecifier */: - case 276 /* ImportSpecifier */: - case 205 /* ImportType */: - return true; - } - return false; -} function tryGetModuleSpecifierFromDeclaration(node) { var _a, _b; switch (node.kind) { @@ -18871,17 +18685,12 @@ function tryGetImportFromModuleSpecifier(node) { false ) ? node.parent : void 0; case 201 /* LiteralType */: - if (!isStringLiteral(node)) { - break; - } + Debug.assert(isStringLiteral(node)); return tryCast(node.parent.parent, isImportTypeNode); default: return void 0; } } -function shouldRewriteModuleSpecifier(specifier, compilerOptions) { - return !!compilerOptions.rewriteRelativeImportExtensions && pathIsRelative(specifier) && !isDeclarationFileName(specifier) && hasTSFileExtension(specifier); -} function getExternalModuleName(node) { switch (node.kind) { case 272 /* ImportDeclaration */: @@ -18926,15 +18735,17 @@ function forEachImportClauseDeclaration(node, action) { } } function hasQuestionToken(node) { - switch (node.kind) { - case 169 /* Parameter */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 304 /* ShorthandPropertyAssignment */: - case 303 /* PropertyAssignment */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - return node.questionToken !== void 0; + if (node) { + switch (node.kind) { + case 169 /* Parameter */: + case 174 /* MethodDeclaration */: + case 173 /* MethodSignature */: + case 304 /* ShorthandPropertyAssignment */: + case 303 /* PropertyAssignment */: + case 172 /* PropertyDeclaration */: + case 171 /* PropertySignature */: + return node.questionToken !== void 0; + } } return false; } @@ -19307,7 +19118,7 @@ function skipTypeParentheses(node) { return node; } function skipParentheses(node, excludeJSDocTypeAssertions) { - const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */; + const flags = excludeJSDocTypeAssertions ? 1 /* Parentheses */ | 16 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */; return skipOuterExpressions(node, flags); } function isDeleteTarget(node) { @@ -19334,7 +19145,6 @@ function getDeclarationFromName(name) { case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: if (isComputedPropertyName(parent2)) return parent2.parent; - // falls through case 80 /* Identifier */: if (isDeclaration(parent2)) { return parent2.name === name ? parent2 : void 0; @@ -19381,6 +19191,12 @@ function isIdentifierName(node) { } return false; } +function isAliasSymbolDeclaration(node) { + if (node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node)) { + return true; + } + return isInJSFile(node) && (isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isPropertyAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableExpression(node.parent.right)); +} function getAliasDeclarationFromName(node) { switch (node.parent.kind) { case 273 /* ImportClause */: @@ -19474,10 +19290,17 @@ function isContextualKeyword(token) { function isNonContextualKeyword(token) { return isKeyword(token) && !isContextualKeyword(token); } +function isFutureReservedKeyword(token) { + return 119 /* FirstFutureReservedWord */ <= token && token <= 127 /* LastFutureReservedWord */; +} function isStringANonContextualKeyword(name) { const token = stringToToken(name); return token !== void 0 && isNonContextualKeyword(token); } +function isStringAKeyword(name) { + const token = stringToToken(name); + return token !== void 0 && isKeyword(token); +} function isIdentifierANonContextualKeyword(node) { const originalKeywordKind = identifierToKeywordKind(node); return !!originalKeywordKind && !isContextualKeyword(originalKeywordKind); @@ -19505,7 +19328,6 @@ function getFunctionFlags(node) { if (node.asteriskToken) { flags |= 1 /* Generator */; } - // falls through case 219 /* ArrowFunction */: if (hasSyntacticModifier(node, 1024 /* Async */)) { flags |= 2 /* Async */; @@ -19552,7 +19374,6 @@ function getPropertyNameForPropertyNameNode(name) { case 11 /* StringLiteral */: case 15 /* NoSubstitutionTemplateLiteral */: case 9 /* NumericLiteral */: - case 10 /* BigIntLiteral */: return escapeLeadingUnderscores(name.text); case 167 /* ComputedPropertyName */: const nameExpression = name.expression; @@ -19588,6 +19409,9 @@ function getTextOfIdentifierOrLiteral(node) { function getEscapedTextOfIdentifierOrLiteral(node) { return isMemberName(node) ? node.escapedText : isJsxNamespacedName(node) ? getEscapedTextOfJsxNamespacedName(node) : escapeLeadingUnderscores(node.text); } +function getPropertyNameForUniqueESSymbol(symbol) { + return `__@${getSymbolId(symbol)}@${symbol.escapedName}`; +} function getSymbolNameForPrivateIdentifier(containingClassSymbol, description3) { return `__#${getSymbolId(containingClassSymbol)}@${description3}`; } @@ -19597,6 +19421,9 @@ function isKnownSymbol(symbol) { function isPrivateIdentifierSymbol(symbol) { return startsWith(symbol.escapedName, "__#"); } +function isESSymbolIdentifier(node) { + return node.kind === 80 /* Identifier */ && node.escapedText === "Symbol"; +} function isProtoSetter(node) { return isIdentifier(node) ? idText(node) === "__proto__" : isStringLiteral(node) && node.text === "__proto__"; } @@ -19686,6 +19513,9 @@ function nodeStartsNewLexicalEnvironment(node) { function nodeIsSynthesized(range) { return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end); } +function getOriginalSourceFile(sourceFile) { + return getParseTreeNode(sourceFile, isSourceFile) || sourceFile; +} var Associativity = /* @__PURE__ */ ((Associativity2) => { Associativity2[Associativity2["Left"] = 0] = "Left"; Associativity2[Associativity2["Right"] = 1] = "Right"; @@ -19776,7 +19606,7 @@ var OperatorPrecedence = /* @__PURE__ */ ((OperatorPrecedence2) => { })(OperatorPrecedence || {}); function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { switch (nodeKind) { - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return 0 /* Comma */; case 230 /* SpreadElement */: return 1 /* Spread */; @@ -19808,7 +19638,6 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { default: return getBinaryOperatorPrecedence(operatorKind); } - // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? case 216 /* TypeAssertionExpression */: case 235 /* NonNullExpression */: case 224 /* PrefixUnaryExpression */: @@ -19989,9 +19818,9 @@ function containsInvalidEscapeFlag(node) { function hasInvalidEscape(template) { return template && !!(isNoSubstitutionTemplateLiteral(template) ? containsInvalidEscapeFlag(template) : containsInvalidEscapeFlag(template.head) || some(template.templateSpans, (span) => containsInvalidEscapeFlag(span.literal))); } -var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\u2028\u2029\u0085]/g; -var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\u2028\u2029\u0085]/g; -var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g; +var doubleQuoteEscapedCharsRegExp = /[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var singleQuoteEscapedCharsRegExp = /[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g; +var backtickQuoteEscapedCharsRegExp = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g; var escapedCharsMap = new Map(Object.entries({ " ": "\\t", "\v": "\\v", @@ -20311,12 +20140,6 @@ function getDeclarationEmitExtensionForPath(path) { function getPossibleOriginalInputExtensionForExtension(path) { return fileExtensionIsOneOf(path, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path, [`.d.json.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */]; } -function getPossibleOriginalInputPathWithoutChangingExt(filePath, ignoreCase, outputDir, getCommonSourceDirectory2) { - return outputDir ? resolvePath( - getCommonSourceDirectory2(), - getRelativePathFromDirectory(outputDir, filePath, ignoreCase) - ) : filePath; -} function getPathsBasePath(options, host) { var _a; if (!options.paths) return void 0; @@ -20852,6 +20675,9 @@ function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node) { function isAssignmentExpression(node, excludeCompoundAssignment) { return isBinaryExpression(node) && (excludeCompoundAssignment ? node.operatorToken.kind === 64 /* EqualsToken */ : isAssignmentOperator(node.operatorToken.kind)) && isLeftHandSideExpression(node.left); } +function isLeftHandSideOfAssignment(node) { + return isAssignmentExpression(node.parent) && node.parent.left === node; +} function isDestructuringAssignment(node) { if (isAssignmentExpression( node, @@ -21105,6 +20931,9 @@ function moveRangePastModifiers(node) { const lastModifier = canHaveModifiers(node) ? lastOrUndefined(node.modifiers) : void 0; return lastModifier && !positionIsSynthesized(lastModifier.end) ? moveRangePos(node, lastModifier.end) : moveRangePastDecorators(node); } +function isCollapsedRange(range) { + return range.pos === range.end; +} function createTokenRange(pos, token) { return createRange(pos, pos + tokenToString(token).length); } @@ -21190,12 +21019,6 @@ function getLinesBetweenPositionAndNextNonWhitespaceCharacter(pos, stopPos, sour ); return getLinesBetweenPositions(sourceFile, pos, Math.min(stopPos, nextPos)); } -function rangeContainsRange(r1, r2) { - return startEndContainsRange(r1.pos, r1.end, r2); -} -function startEndContainsRange(start, end, range) { - return start <= range.pos && end >= range.end; -} function getPreviousNonWhitespacePosition(pos, stopPos = 0, sourceFile) { while (pos-- > stopPos) { if (!isWhiteSpaceLike(sourceFile.text.charCodeAt(pos))) { @@ -21280,9 +21103,6 @@ function accessKind(node) { return node === parent2.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent2.parent); case 209 /* ArrayLiteralExpression */: return accessKind(parent2); - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - return node === parent2.initializer ? 1 /* Write */ : 0 /* Read */; default: return 0 /* Read */; } @@ -21355,6 +21175,9 @@ function getClassLikeDeclarationOfSymbol(symbol) { function getObjectFlags(type) { return type.flags & 3899393 /* ObjectFlagsType */ ? type.objectFlags : 0; } +function forSomeAncestorDirectory(directory, callback) { + return !!forEachAncestorDirectory(directory, (d) => callback(d) ? true : void 0); +} function isUMDExportSymbol(symbol) { return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && isNamespaceExportDeclaration(symbol.declarations[0]); } @@ -21375,11 +21198,11 @@ function getLastChild(node) { }); return lastChild; } -function addToSeen(seen, key) { +function addToSeen(seen, key, value = true) { if (seen.has(key)) { return false; } - seen.add(key); + seen.set(key, value); return true; } function isObjectTypeDeclaration(node) { @@ -21455,12 +21278,11 @@ function getLeftmostExpression(node, stopAtCallExpressions) { if (stopAtCallExpressions) { return node; } - // falls through case 234 /* AsExpression */: case 212 /* ElementAccessExpression */: case 211 /* PropertyAccessExpression */: case 235 /* NonNullExpression */: - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: case 238 /* SatisfiesExpression */: node = node.expression; continue; @@ -21555,7 +21377,7 @@ function setObjectAllocator(alloc) { forEach(objectAllocatorPatchers, (fn) => fn(objectAllocator)); } function formatStringFromArgs(text, args) { - return text.replace(/\{(\d+)\}/g, (_match, index) => "" + Debug.checkDefined(args[+index])); + return text.replace(/{(\d+)}/g, (_match, index) => "" + Debug.checkDefined(args[+index])); } var localizedDiagnosticMessages; function setLocalizedDiagnosticMessages(messages) { @@ -21829,8 +21651,8 @@ function walkTreeForJSXTags(node) { function isFileModuleFromUsingJSXTag(file) { return !file.isDeclarationFile ? walkTreeForJSXTags(file) : void 0; } -function isFileForcedToBeModuleByFormat(file, options) { - return (getImpliedNodeFormatForEmitWorker(file, options) === 99 /* ESNext */ || fileExtensionIsOneOf(file.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */, ".mjs" /* Mjs */, ".mts" /* Mts */])) && !file.isDeclarationFile ? true : void 0; +function isFileForcedToBeModuleByFormat(file) { + return (file.impliedNodeFormat === 99 /* ESNext */ || fileExtensionIsOneOf(file.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */, ".mjs" /* Mjs */, ".mts" /* Mts */])) && !file.isDeclarationFile ? true : void 0; } function getSetExternalModuleIndicator(options) { switch (getEmitModuleDetectionKind(options)) { @@ -21849,35 +21671,25 @@ function getSetExternalModuleIndicator(options) { } checks.push(isFileForcedToBeModuleByFormat); const combined = or(...checks); - const callback = (file) => void (file.externalModuleIndicator = combined(file, options)); + const callback = (file) => void (file.externalModuleIndicator = combined(file)); return callback; } } -function importSyntaxAffectsModuleResolution(options) { - const moduleResolution = getEmitModuleResolutionKind(options); - return 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || getResolvePackageJsonExports(options) || getResolvePackageJsonImports(options); -} function createComputedCompilerOptions(options) { return options; } -var _computedOptions = createComputedCompilerOptions({ - allowImportingTsExtensions: { - dependencies: ["rewriteRelativeImportExtensions"], - computeValue: (compilerOptions) => { - return !!(compilerOptions.allowImportingTsExtensions || compilerOptions.rewriteRelativeImportExtensions); - } - }, +var computedOptions = createComputedCompilerOptions({ target: { dependencies: ["module"], computeValue: (compilerOptions) => { const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target; - return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 101 /* Node18 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */); + return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */); } }, module: { dependencies: ["target"], computeValue: (compilerOptions) => { - return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */; + return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */; } }, moduleResolution: { @@ -21885,12 +21697,11 @@ var _computedOptions = createComputedCompilerOptions({ computeValue: (compilerOptions) => { let moduleResolution = compilerOptions.moduleResolution; if (moduleResolution === void 0) { - switch (_computedOptions.module.computeValue(compilerOptions)) { + switch (computedOptions.module.computeValue(compilerOptions)) { case 1 /* CommonJS */: moduleResolution = 2 /* Node10 */; break; case 100 /* Node16 */: - case 101 /* Node18 */: moduleResolution = 3 /* Node16 */; break; case 199 /* NodeNext */: @@ -21910,11 +21721,7 @@ var _computedOptions = createComputedCompilerOptions({ moduleDetection: { dependencies: ["module", "target"], computeValue: (compilerOptions) => { - if (compilerOptions.moduleDetection !== void 0) { - return compilerOptions.moduleDetection; - } - const moduleKind = _computedOptions.module.computeValue(compilerOptions); - return 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */; + return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */); } }, isolatedModules: { @@ -21929,9 +21736,8 @@ var _computedOptions = createComputedCompilerOptions({ if (compilerOptions.esModuleInterop !== void 0) { return compilerOptions.esModuleInterop; } - switch (_computedOptions.module.computeValue(compilerOptions)) { + switch (computedOptions.module.computeValue(compilerOptions)) { case 100 /* Node16 */: - case 101 /* Node18 */: case 199 /* NodeNext */: case 200 /* Preserve */: return true; @@ -21945,13 +21751,13 @@ var _computedOptions = createComputedCompilerOptions({ if (compilerOptions.allowSyntheticDefaultImports !== void 0) { return compilerOptions.allowSyntheticDefaultImports; } - return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; + return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; } }, resolvePackageJsonExports: { dependencies: ["moduleResolution"], computeValue: (compilerOptions) => { - const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); + const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions); if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { return false; } @@ -21970,7 +21776,7 @@ var _computedOptions = createComputedCompilerOptions({ resolvePackageJsonImports: { dependencies: ["moduleResolution", "resolvePackageJsonExports"], computeValue: (compilerOptions) => { - const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions); + const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions); if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) { return false; } @@ -21992,7 +21798,7 @@ var _computedOptions = createComputedCompilerOptions({ if (compilerOptions.resolveJsonModule !== void 0) { return compilerOptions.resolveJsonModule; } - return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; + return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */; } }, declaration: { @@ -22004,7 +21810,7 @@ var _computedOptions = createComputedCompilerOptions({ preserveConstEnums: { dependencies: ["isolatedModules", "verbatimModuleSyntax"], computeValue: (compilerOptions) => { - return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions)); + return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions)); } }, incremental: { @@ -22016,7 +21822,7 @@ var _computedOptions = createComputedCompilerOptions({ declarationMap: { dependencies: ["declaration", "composite"], computeValue: (compilerOptions) => { - return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions)); + return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions)); } }, allowJs: { @@ -22028,7 +21834,7 @@ var _computedOptions = createComputedCompilerOptions({ useDefineForClassFields: { dependencies: ["target", "module"], computeValue: (compilerOptions) => { - return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; + return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields; } }, noImplicitAny: { @@ -22067,12 +21873,6 @@ var _computedOptions = createComputedCompilerOptions({ return getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); } }, - strictBuiltinIteratorReturn: { - dependencies: ["strict"], - computeValue: (compilerOptions) => { - return getStrictOptionValue(compilerOptions, "strictBuiltinIteratorReturn"); - } - }, alwaysStrict: { dependencies: ["strict"], computeValue: (compilerOptions) => { @@ -22086,24 +21886,22 @@ var _computedOptions = createComputedCompilerOptions({ } } }); -var computedOptions = _computedOptions; -var getAllowImportingTsExtensions = _computedOptions.allowImportingTsExtensions.computeValue; -var getEmitScriptTarget = _computedOptions.target.computeValue; -var getEmitModuleKind = _computedOptions.module.computeValue; -var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue; -var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue; -var getIsolatedModules = _computedOptions.isolatedModules.computeValue; -var getESModuleInterop = _computedOptions.esModuleInterop.computeValue; -var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue; -var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue; -var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue; -var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue; -var getEmitDeclarations = _computedOptions.declaration.computeValue; -var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue; -var isIncrementalCompilation = _computedOptions.incremental.computeValue; -var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue; -var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue; -var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue; +var getEmitScriptTarget = computedOptions.target.computeValue; +var getEmitModuleKind = computedOptions.module.computeValue; +var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue; +var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue; +var getIsolatedModules = computedOptions.isolatedModules.computeValue; +var getESModuleInterop = computedOptions.esModuleInterop.computeValue; +var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue; +var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue; +var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue; +var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue; +var getEmitDeclarations = computedOptions.declaration.computeValue; +var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue; +var isIncrementalCompilation = computedOptions.incremental.computeValue; +var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue; +var getAllowJSCompilerOption = computedOptions.allowJs.computeValue; +var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue; function emitModuleKindIsNonNodeESM(moduleKind) { return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */; } @@ -22125,9 +21923,6 @@ function unusedLabelIsError(options) { function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) { return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */; } -function moduleSupportsImportAttributes(moduleKind) { - return 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */ || moduleKind === 99 /* ESNext */; -} function getStrictOptionValue(compilerOptions, flag) { return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag]; } @@ -22156,12 +21951,7 @@ function getJSXTransformEnabled(options) { function getJSXImplicitImportBase(compilerOptions, file) { const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get("jsximportsource"); const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas; - const jsxRuntimePragmas = file == null ? void 0 : file.pragmas.get("jsxruntime"); - const jsxRuntimePragma = isArray(jsxRuntimePragmas) ? jsxRuntimePragmas[jsxRuntimePragmas.length - 1] : jsxRuntimePragmas; - if ((jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "classic") { - return void 0; - } - return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma || (jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "automatic" ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0; + return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0; } function getJSXRuntimeImport(base, options) { return base ? `${base}/${options.jsx === 5 /* ReactJSXDev */ ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0; @@ -22405,7 +22195,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa if (visited.has(canonicalPath)) return; visited.set(canonicalPath, true); const { files, directories } = getFileSystemEntries(path2); - for (const current of toSorted(files, compareStringsCaseSensitive)) { + for (const current of sort(files, compareStringsCaseSensitive)) { const name = combinePaths(path2, current); const absoluteName = combinePaths(absolutePath, current); if (extensions && !fileExtensionIsOneOf(name, extensions)) continue; @@ -22425,7 +22215,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa return; } } - for (const current of toSorted(directories, compareStringsCaseSensitive)) { + for (const current of sort(directories, compareStringsCaseSensitive)) { const name = combinePaths(path2, current); const absoluteName = combinePaths(absolutePath, current); if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) && (!excludeRegex || !excludeRegex.test(absoluteName))) { @@ -22521,9 +22311,6 @@ function hasJSFileExtension(fileName) { function hasTSFileExtension(fileName) { return some(supportedTSExtensionsFlat, (extension) => fileExtensionIs(fileName, extension)); } -function hasImplementationTSFileExtension(fileName) { - return some(supportedTSImplementationExtensions, (extension) => fileExtensionIs(fileName, extension)) && !isDeclarationFileName(fileName); -} var ModuleSpecifierEnding = /* @__PURE__ */ ((ModuleSpecifierEnding2) => { ModuleSpecifierEnding2[ModuleSpecifierEnding2["Minimal"] = 0] = "Minimal"; ModuleSpecifierEnding2[ModuleSpecifierEnding2["Index"] = 1] = "Index"; @@ -22651,33 +22438,8 @@ function tryParsePattern(pattern) { suffix: pattern.substr(indexOfStar + 1) }; } -var parsedPatternsCache = /* @__PURE__ */ new WeakMap(); function tryParsePatterns(paths) { - let result = parsedPatternsCache.get(paths); - if (result !== void 0) { - return result; - } - let matchableStringSet; - let patterns; - const pathList = getOwnKeys(paths); - for (const path of pathList) { - const patternOrStr = tryParsePattern(path); - if (patternOrStr === void 0) { - continue; - } else if (typeof patternOrStr === "string") { - (matchableStringSet ?? (matchableStringSet = /* @__PURE__ */ new Set())).add(patternOrStr); - } else { - (patterns ?? (patterns = [])).push(patternOrStr); - } - } - parsedPatternsCache.set( - paths, - result = { - matchableStringSet, - patterns - } - ); - return result; + return mapDefined(getOwnKeys(paths), (path) => tryParsePattern(path)); } function positionIsSynthesized(pos) { return !(pos >= 0); @@ -22705,13 +22467,15 @@ var emptyFileSystemEntries = { files: emptyArray, directories: emptyArray }; -function matchPatternOrExact(parsedPatterns, candidate) { - const { matchableStringSet, patterns } = parsedPatterns; - if (matchableStringSet == null ? void 0 : matchableStringSet.has(candidate)) { - return candidate; - } - if (patterns === void 0 || patterns.length === 0) { - return void 0; +function matchPatternOrExact(patternOrStrings, candidate) { + const patterns = []; + for (const patternOrString of patternOrStrings) { + if (patternOrString === candidate) { + return candidate; + } + if (!isString(patternOrString)) { + patterns.push(patternOrString); + } } return findBestPatternMatch(patterns, (_) => _, candidate); } @@ -22754,27 +22518,9 @@ function rangeOfTypeParameters(sourceFile, typeParameters) { return { pos, end }; } function skipTypeChecking(sourceFile, options, host) { - return skipTypeCheckingWorker( - sourceFile, - options, - host, - /*ignoreNoCheck*/ - false - ); + return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnsotics(sourceFile, options); } -function skipTypeCheckingIgnoringNoCheck(sourceFile, options, host) { - return skipTypeCheckingWorker( - sourceFile, - options, - host, - /*ignoreNoCheck*/ - true - ); -} -function skipTypeCheckingWorker(sourceFile, options, host, ignoreNoCheck) { - return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib || !ignoreNoCheck && options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnostics(sourceFile, options); -} -function canIncludeBindAndCheckDiagnostics(sourceFile, options) { +function canIncludeBindAndCheckDiagnsotics(sourceFile, options) { if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false; if (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */ || sourceFile.scriptKind === 5 /* External */) return true; const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; @@ -22788,7 +22534,6 @@ function isJsonEqual(a, b) { function parsePseudoBigInt(stringValue) { let log2Base; switch (stringValue.charCodeAt(1)) { - // "x" in "0x123" case 98 /* b */: case 66 /* B */: log2Base = 1; @@ -22878,7 +22623,7 @@ function isValidBigIntString(s, roundTripOnly) { return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) })); } function isValidTypeOnlyAliasUseSite(useSite) { - return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); + return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite)); } function isShorthandPropertyNameUseSite(useSite) { return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite; @@ -22949,6 +22694,14 @@ function setParent(child, parent2) { } return child; } +function setEachParent(children, parent2) { + if (children) { + for (const child of children) { + setParent(child, parent2); + } + } + return children; +} function setParentRecursive(rootNode, incremental) { if (!rootNode) return rootNode; forEachChildRecursively(rootNode, isJSDocNode(rootNode) ? bindParentToChildIgnoringJSDoc : bindParentToChild); @@ -23036,7 +22789,7 @@ function getContainingNodeArray(node) { return parent2.types; case 189 /* TupleType */: case 209 /* ArrayLiteralExpression */: - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: case 275 /* NamedImports */: case 279 /* NamedExports */: return parent2.elements; @@ -23092,7 +22845,7 @@ function isFunctionExpressionOrArrowFunction(node) { return node.kind === 218 /* FunctionExpression */ || node.kind === 219 /* ArrowFunction */; } function escapeSnippetText(text) { - return text.replace(/\$/g, () => "\\$"); + return text.replace(/\$/gm, () => "\\$"); } function isNumericLiteralName(name) { return (+name).toString() === name; @@ -23151,6 +22904,10 @@ function getNodeModulePathParts(fullPath) { fileNameIndex = partStart; return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex, topLevelPackageNameIndex, packageRootIndex, fileNameIndex } : void 0; } +function getParameterTypeNode(parameter) { + var _a; + return parameter.kind === 341 /* JSDocParameterTag */ ? (_a = parameter.typeExpression) == null ? void 0 : _a.type : parameter.type; +} function isTypeDeclaration(node) { switch (node.kind) { case 168 /* TypeParameter */: @@ -23271,105 +23028,6 @@ function replaceFirstStar(s, replacement) { function getNameFromImportAttribute(node) { return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text); } -function isSourceElement(node) { - switch (node.kind) { - case 168 /* TypeParameter */: - case 169 /* Parameter */: - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 185 /* ConstructorType */: - case 184 /* FunctionType */: - case 179 /* CallSignature */: - case 180 /* ConstructSignature */: - case 181 /* IndexSignature */: - case 174 /* MethodDeclaration */: - case 173 /* MethodSignature */: - case 175 /* ClassStaticBlockDeclaration */: - case 176 /* Constructor */: - case 177 /* GetAccessor */: - case 178 /* SetAccessor */: - case 183 /* TypeReference */: - case 182 /* TypePredicate */: - case 186 /* TypeQuery */: - case 187 /* TypeLiteral */: - case 188 /* ArrayType */: - case 189 /* TupleType */: - case 192 /* UnionType */: - case 193 /* IntersectionType */: - case 196 /* ParenthesizedType */: - case 190 /* OptionalType */: - case 191 /* RestType */: - case 197 /* ThisType */: - case 198 /* TypeOperator */: - case 194 /* ConditionalType */: - case 195 /* InferType */: - case 203 /* TemplateLiteralType */: - case 205 /* ImportType */: - case 202 /* NamedTupleMember */: - case 328 /* JSDocAugmentsTag */: - case 329 /* JSDocImplementsTag */: - case 346 /* JSDocTypedefTag */: - case 338 /* JSDocCallbackTag */: - case 340 /* JSDocEnumTag */: - case 345 /* JSDocTemplateTag */: - case 344 /* JSDocTypeTag */: - case 324 /* JSDocLink */: - case 325 /* JSDocLinkCode */: - case 326 /* JSDocLinkPlain */: - case 341 /* JSDocParameterTag */: - case 348 /* JSDocPropertyTag */: - case 317 /* JSDocFunctionType */: - case 315 /* JSDocNonNullableType */: - case 314 /* JSDocNullableType */: - case 312 /* JSDocAllType */: - case 313 /* JSDocUnknownType */: - case 322 /* JSDocTypeLiteral */: - case 318 /* JSDocVariadicType */: - case 309 /* JSDocTypeExpression */: - case 333 /* JSDocPublicTag */: - case 335 /* JSDocProtectedTag */: - case 334 /* JSDocPrivateTag */: - case 350 /* JSDocSatisfiesTag */: - case 343 /* JSDocThisTag */: - case 199 /* IndexedAccessType */: - case 200 /* MappedType */: - case 262 /* FunctionDeclaration */: - case 241 /* Block */: - case 268 /* ModuleBlock */: - case 243 /* VariableStatement */: - case 244 /* ExpressionStatement */: - case 245 /* IfStatement */: - case 246 /* DoStatement */: - case 247 /* WhileStatement */: - case 248 /* ForStatement */: - case 249 /* ForInStatement */: - case 250 /* ForOfStatement */: - case 251 /* ContinueStatement */: - case 252 /* BreakStatement */: - case 253 /* ReturnStatement */: - case 254 /* WithStatement */: - case 255 /* SwitchStatement */: - case 256 /* LabeledStatement */: - case 257 /* ThrowStatement */: - case 258 /* TryStatement */: - case 260 /* VariableDeclaration */: - case 208 /* BindingElement */: - case 263 /* ClassDeclaration */: - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - case 266 /* EnumDeclaration */: - case 267 /* ModuleDeclaration */: - case 272 /* ImportDeclaration */: - case 271 /* ImportEqualsDeclaration */: - case 278 /* ExportDeclaration */: - case 277 /* ExportAssignment */: - case 242 /* EmptyStatement */: - case 259 /* DebuggerStatement */: - case 282 /* MissingDeclaration */: - return true; - } - return false; -} function evaluatorResult(value, isSyntacticallyString = false, resolvedOtherFiles = false, hasExternalReferences = false) { return { value, isSyntacticallyString, resolvedOtherFiles, hasExternalReferences }; } @@ -23575,7 +23233,6 @@ function createNameResolver({ switch (location.kind) { case 307 /* SourceFile */: if (!isExternalOrCommonJsModule(location)) break; - // falls through case 267 /* ModuleDeclaration */: const moduleExports = ((_a = getSymbolOfDeclaration(location)) == null ? void 0 : _a.exports) || emptySymbols; if (location.kind === 307 /* SourceFile */ || isModuleDeclaration(location) && location.flags & 33554432 /* Ambient */ && !isGlobalScopeAugmentation(location)) { @@ -23659,14 +23316,6 @@ function createNameResolver({ } } break; - // It is not legal to reference a class's own type parameters from a computed property name that - // belongs to the class. For example: - // - // function foo() { return '' } - // class C { // <-- Class's own type parameter T - // [foo()]() { } // <-- Reference to T from class's own computed property - // } - // case 167 /* ComputedPropertyName */: grandparent = location.parent.parent; if (isClassLike(grandparent) || grandparent.kind === 264 /* InterfaceDeclaration */) { @@ -23682,7 +23331,6 @@ function createNameResolver({ if (getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */) { break; } - // falls through case 174 /* MethodDeclaration */: case 176 /* Constructor */: case 177 /* GetAccessor */: @@ -23925,189 +23573,12 @@ function hasInferredType(node) { case 260 /* VariableDeclaration */: case 277 /* ExportAssignment */: case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - case 341 /* JSDocParameterTag */: - case 348 /* JSDocPropertyTag */: return true; default: assertType(node); return false; } } -function isSideEffectImport(node) { - const ancestor = findAncestor(node, isImportDeclaration); - return !!ancestor && !ancestor.importClause; -} -var unprefixedNodeCoreModulesList = [ - "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" -]; -var unprefixedNodeCoreModules = new Set(unprefixedNodeCoreModulesList); -var exclusivelyPrefixedNodeCoreModules = /* @__PURE__ */ new Set([ - "node:sea", - "node:sqlite", - "node:test", - "node:test/reporters" -]); -var nodeCoreModules = /* @__PURE__ */ new Set([ - ...unprefixedNodeCoreModulesList, - ...unprefixedNodeCoreModulesList.map((name) => `node:${name}`), - ...exclusivelyPrefixedNodeCoreModules -]); -function forEachDynamicImportOrRequireCall(file, includeTypeSpaceImports, requireStringLiteralLikeArgument, cb) { - const isJavaScriptFile = isInJSFile(file); - const r = /import|require/g; - while (r.exec(file.text) !== null) { - const node = getNodeAtPosition( - file, - r.lastIndex, - /*includeJSDoc*/ - includeTypeSpaceImports - ); - if (isJavaScriptFile && isRequireCall(node, requireStringLiteralLikeArgument)) { - cb(node, node.arguments[0]); - } else if (isImportCall(node) && node.arguments.length >= 1 && (!requireStringLiteralLikeArgument || isStringLiteralLike(node.arguments[0]))) { - cb(node, node.arguments[0]); - } else if (includeTypeSpaceImports && isLiteralImportTypeNode(node)) { - cb(node, node.argument.literal); - } else if (includeTypeSpaceImports && isJSDocImportTag(node)) { - const moduleNameExpr = getExternalModuleName(node); - if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) { - cb(node, moduleNameExpr); - } - } - } -} -function getNodeAtPosition(sourceFile, position, includeJSDoc) { - const isJavaScriptFile = isInJSFile(sourceFile); - let current = sourceFile; - const getContainingChild = (child) => { - if (child.pos <= position && (position < child.end || position === child.end && child.kind === 1 /* EndOfFileToken */)) { - return child; - } - }; - while (true) { - const child = isJavaScriptFile && includeJSDoc && hasJSDocNodes(current) && forEach(current.jsDoc, getContainingChild) || forEachChild(current, getContainingChild); - if (!child) { - return current; - } - current = child; - } -} -function isNewScopeNode(node) { - return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node); -} -function getLibNameFromLibReference(libReference) { - return toFileNameLowerCase(libReference.fileName); -} -function getLibFileNameFromLibReference(libReference) { - const libName = getLibNameFromLibReference(libReference); - return libMap.get(libName); -} -function forEachResolvedProjectReference(resolvedProjectReferences, cb) { - return forEachProjectReference( - /*projectReferences*/ - void 0, - resolvedProjectReferences, - (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2) - ); -} -function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) { - let seenResolvedRefs; - return worker( - projectReferences, - resolvedProjectReferences, - /*parent*/ - void 0 - ); - function worker(projectReferences2, resolvedProjectReferences2, parent2) { - if (cbRef) { - const result = cbRef(projectReferences2, parent2); - if (result) return result; - } - let skipChildren; - return forEach( - resolvedProjectReferences2, - (resolvedRef, index) => { - if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) { - (skipChildren ?? (skipChildren = /* @__PURE__ */ new Set())).add(resolvedRef); - return void 0; - } - const result = cbResolvedRef(resolvedRef, parent2, index); - if (result || !resolvedRef) return result; - (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path); - } - ) || forEach( - resolvedProjectReferences2, - (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0 - ); - } -} -function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) { - return optionsObject && getPropertyArrayElementValue(optionsObject, name, value); -} -function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) { - return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0); -} -function getOptionsSyntaxByValue(optionsObject, name, value) { - return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0); -} -function forEachOptionsSyntaxByName(optionsObject, name, callback) { - return forEachPropertyAssignment(optionsObject, name, callback); -} // src/compiler/factory/baseNodeFactory.ts function createBaseNodeFactory() { @@ -24431,7 +23902,6 @@ function createParenthesizerRules(factory2) { function parenthesizeConstituentTypeOfUnionType(type) { switch (type.kind) { case 192 /* UnionType */: - // Not strictly necessary, but a union containing a union should have been flattened case 193 /* IntersectionType */: return factory2.createParenthesizedType(type); } @@ -25213,7 +24683,6 @@ function createNodeFactory(flags, baseFactory2) { createSyntheticExpression, createSyntaxList: createSyntaxList3, createNotEmittedStatement, - createNotEmittedTypeElement, createPartiallyEmittedExpression, updatePartiallyEmittedExpression, createCommaListExpression, @@ -25886,11 +25355,7 @@ function createNodeFactory(flags, baseFactory2) { node.modifiers = asNodeArray(modifiers); node.parameters = createNodeArray(parameters); node.body = body; - if (!node.body) { - node.transformFlags = 1 /* ContainsTypeScript */; - } else { - node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */; - } + node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */; node.typeParameters = void 0; node.type = void 0; node.typeArguments = void 0; @@ -26725,8 +26190,6 @@ function createNodeFactory(flags, baseFactory2) { node.colonToken = colonToken ?? createToken(59 /* ColonToken */); node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse); node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse); - node.flowNodeWhenFalse = void 0; - node.flowNodeWhenTrue = void 0; return node; } function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) { @@ -28242,7 +27705,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createPartiallyEmittedExpression(expression, original) { - const node = createBaseNode(355 /* PartiallyEmittedExpression */); + const node = createBaseNode(354 /* PartiallyEmittedExpression */); node.expression = expression; node.original = original; node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */; @@ -28252,9 +27715,6 @@ function createNodeFactory(flags, baseFactory2) { function updatePartiallyEmittedExpression(node, expression) { return node.expression !== expression ? update(createPartiallyEmittedExpression(expression, node.original), node) : node; } - function createNotEmittedTypeElement() { - return createBaseNode(354 /* NotEmittedTypeElement */); - } function flattenCommaElements(node) { if (nodeIsSynthesized(node) && !isParseTreeNode(node) && !node.original && !node.emitNode && !node.id) { if (isCommaListExpression(node)) { @@ -28267,7 +27727,7 @@ function createNodeFactory(flags, baseFactory2) { return node; } function createCommaListExpression(elements) { - const node = createBaseNode(356 /* CommaListExpression */); + const node = createBaseNode(355 /* CommaListExpression */); node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements)); node.transformFlags |= propagateChildrenFlags(node.elements); return node; @@ -28276,7 +27736,7 @@ function createNodeFactory(flags, baseFactory2) { return node.elements !== elements ? update(createCommaListExpression(elements), node) : node; } function createSyntheticReferenceExpression(expression, thisArg) { - const node = createBaseNode(357 /* SyntheticReferenceExpression */); + const node = createBaseNode(356 /* SyntheticReferenceExpression */); node.expression = expression; node.thisArg = thisArg; node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg); @@ -28521,16 +27981,14 @@ function createNodeFactory(flags, baseFactory2) { return updateSatisfiesExpression(outerExpression, expression, outerExpression.type); case 235 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression); - case 233 /* ExpressionWithTypeArguments */: - return updateExpressionWithTypeArguments(outerExpression, expression, outerExpression.typeArguments); - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression); } } function isIgnorableParen(node) { return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node)); } - function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63 /* All */) { + function restoreOuterExpressions(outerExpression, innerExpression, kinds = 15 /* All */) { if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) { return updateOuterExpression( outerExpression, @@ -28576,7 +28034,7 @@ function createNodeFactory(flags, baseFactory2) { } } function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) { - const callee = skipOuterExpressions(expression, 63 /* All */); + const callee = skipOuterExpressions(expression, 15 /* All */); let thisArg; let target; if (isSuperProperty(callee)) { @@ -29068,7 +28526,7 @@ function getTransformFlagsSubtreeExclusions(kind) { case 216 /* TypeAssertionExpression */: case 238 /* SatisfiesExpression */: case 234 /* AsExpression */: - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: case 217 /* ParenthesizedExpression */: case 108 /* SuperKeyword */: return -2147483648 /* OuterExpressionExcludes */; @@ -29441,9 +28899,7 @@ function createEmitHelperFactory(context) { createClassPrivateFieldInHelper, // 'using' helpers createAddDisposableResourceHelper, - createDisposeResourcesHelper, - // --rewriteRelativeImportExtensions helpers - createRewriteRelativeImportExtensionsHelper + createDisposeResourcesHelper }; function getUnscopedHelperName(name) { return setEmitFlags(factory2.createIdentifier(name), 8192 /* HelperName */ | 4 /* AdviseOnEmitNode */); @@ -29932,15 +29388,6 @@ function createEmitHelperFactory(context) { [envBinding] ); } - function createRewriteRelativeImportExtensionsHelper(expression) { - context.requestEmitHelper(rewriteRelativeImportExtensionsHelper); - return factory2.createCallExpression( - getUnscopedHelperName("__rewriteRelativeImportExtension"), - /*typeArguments*/ - void 0, - context.getCompilerOptions().jsx === 1 /* Preserve */ ? [expression, factory2.createTrue()] : [expression] - ); - } } function compareEmitHelpers(x, y) { if (x === y) return 0 /* EqualTo */; @@ -30075,7 +29522,7 @@ var asyncGeneratorHelper = { var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } @@ -30257,8 +29704,8 @@ var generatorHelper = { priority: 6, text: ` var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); @@ -30321,23 +29768,13 @@ var importStarHelper = { dependencies: [createBindingHelper, setModuleDefaultHelper], priority: 2, text: ` - 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 __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 importDefaultHelper = { name: "typescript:commonjsimportdefault", @@ -30431,22 +29868,17 @@ var disposeResourcesHelper = { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } - var r, s = 0; function next() { - while (r = env.stack.pop()) { + while (env.stack.length) { + var rec = env.stack.pop(); try { - if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); - if (r.dispose) { - var result = r.dispose.call(r.value); - if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - else s |= 1; + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } catch (e) { fail(e); } } - if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); if (env.hasError) throw env.error; } return next(); @@ -30456,20 +29888,6 @@ var disposeResourcesHelper = { return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });` }; -var rewriteRelativeImportExtensionsHelper = { - name: "typescript:rewriteRelativeImportExtensions", - importName: "__rewriteRelativeImportExtension", - scoped: false, - text: ` - var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { - if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { - return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { - return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); - }); - } - return path; - };` -}; var asyncSuperHelper = { name: "typescript:async-super", scoped: true, @@ -30812,10 +30230,10 @@ function isSyntheticExpression(node) { return node.kind === 237 /* SyntheticExpression */; } function isPartiallyEmittedExpression(node) { - return node.kind === 355 /* PartiallyEmittedExpression */; + return node.kind === 354 /* PartiallyEmittedExpression */; } function isCommaListExpression(node) { - return node.kind === 356 /* CommaListExpression */; + return node.kind === 355 /* CommaListExpression */; } function isTemplateSpan(node) { return node.kind === 239 /* TemplateSpan */; @@ -30961,9 +30379,6 @@ function isNamedExports(node) { function isExportSpecifier(node) { return node.kind === 281 /* ExportSpecifier */; } -function isModuleExportName(node) { - return node.kind === 80 /* Identifier */ || node.kind === 11 /* StringLiteral */; -} function isMissingDeclaration(node) { return node.kind === 282 /* MissingDeclaration */; } @@ -30971,7 +30386,7 @@ function isNotEmittedStatement(node) { return node.kind === 353 /* NotEmittedStatement */; } function isSyntheticReference(node) { - return node.kind === 357 /* SyntheticReferenceExpression */; + return node.kind === 356 /* SyntheticReferenceExpression */; } function isExternalModuleReference(node) { return node.kind === 283 /* ExternalModuleReference */; @@ -31348,6 +30763,17 @@ function createForOfBindingStatement(factory2, node, boundValue) { ); } } +function insertLeadingStatement(factory2, dest, source) { + if (isBlock(dest)) { + return factory2.updateBlock(dest, setTextRange(factory2.createNodeArray([source, ...dest.statements]), dest.statements)); + } else { + return factory2.createBlock( + factory2.createNodeArray([dest, source]), + /*multiLine*/ + true + ); + } +} function createExpressionFromEntityName(factory2, node) { if (isQualifiedName(node)) { const left = createExpressionFromEntityName(factory2, node.left); @@ -31579,34 +31005,32 @@ function getJSDocTypeAssertionType(node) { Debug.assertIsDefined(type); return type; } -function isOuterExpression(node, kinds = 63 /* All */) { +function isOuterExpression(node, kinds = 15 /* All */) { switch (node.kind) { case 217 /* ParenthesizedExpression */: - if (kinds & -2147483648 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { + if (kinds & 16 /* ExcludeJSDocTypeAssertion */ && isJSDocTypeAssertion(node)) { return false; } return (kinds & 1 /* Parentheses */) !== 0; case 216 /* TypeAssertionExpression */: case 234 /* AsExpression */: - return (kinds & 2 /* TypeAssertions */) !== 0; - case 238 /* SatisfiesExpression */: - return (kinds & (2 /* TypeAssertions */ | 32 /* Satisfies */)) !== 0; case 233 /* ExpressionWithTypeArguments */: - return (kinds & 16 /* ExpressionsWithTypeArguments */) !== 0; + case 238 /* SatisfiesExpression */: + return (kinds & 2 /* TypeAssertions */) !== 0; case 235 /* NonNullExpression */: return (kinds & 4 /* NonNullAssertions */) !== 0; - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0; } return false; } -function skipOuterExpressions(node, kinds = 63 /* All */) { +function skipOuterExpressions(node, kinds = 15 /* All */) { while (isOuterExpression(node, kinds)) { node = node.expression; } return node; } -function walkUpOuterExpressions(node, kinds = 63 /* All */) { +function walkUpOuterExpressions(node, kinds = 15 /* All */) { let parent2 = node.parent; while (isOuterExpression(parent2, kinds)) { parent2 = parent2.parent; @@ -31614,6 +31038,9 @@ function walkUpOuterExpressions(node, kinds = 63 /* All */) { } return parent2; } +function skipAssertions(node) { + return skipOuterExpressions(node, 6 /* Assertions */); +} function startOnNewLine(node) { return setStartsOnNewLine( node, @@ -31633,21 +31060,23 @@ function hasRecordedExternalHelpers(sourceFile) { } function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault) { if (compilerOptions.importHelpers && isEffectiveExternalModule(sourceFile, compilerOptions)) { + let namedBindings; const moduleKind = getEmitModuleKind(compilerOptions); - const impliedModuleKind = getImpliedNodeFormatForEmitWorker(sourceFile, compilerOptions); - const helpers = getImportedHelpers(sourceFile); - if (moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */ || impliedModuleKind === 99 /* ESNext */ || impliedModuleKind === void 0 && moduleKind === 200 /* Preserve */) { + if (moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */ || sourceFile.impliedNodeFormat === 99 /* ESNext */) { + const helpers = getEmitHelpers(sourceFile); if (helpers) { const helperNames = []; for (const helper of helpers) { - const importName = helper.importName; - if (importName) { - pushIfUnique(helperNames, importName); + if (!helper.scoped) { + const importName = helper.importName; + if (importName) { + pushIfUnique(helperNames, importName); + } } } if (some(helperNames)) { helperNames.sort(compareStringsCaseSensitive); - const namedBindings = nodeFactory.createNamedImports( + namedBindings = nodeFactory.createNamedImports( map(helperNames, (name) => isFileLevelUniqueName(sourceFile, name) ? nodeFactory.createImportSpecifier( /*isTypeOnly*/ false, @@ -31664,63 +31093,64 @@ function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFacto const parseNode = getOriginalNode(sourceFile, isSourceFile); const emitNode = getOrCreateEmitNode(parseNode); emitNode.externalHelpers = true; - const externalHelpersImportDeclaration = nodeFactory.createImportDeclaration( - /*modifiers*/ - void 0, - nodeFactory.createImportClause( - /*isTypeOnly*/ - false, - /*name*/ - void 0, - namedBindings - ), - nodeFactory.createStringLiteral(externalHelpersModuleNameText), - /*attributes*/ - void 0 - ); - addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); - return externalHelpersImportDeclaration; } } } else { - const externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, helpers, hasExportStarsToExportValues, hasImportStar || hasImportDefault); + const externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar || hasImportDefault); if (externalHelpersModuleName) { - const externalHelpersImportDeclaration = nodeFactory.createImportEqualsDeclaration( - /*modifiers*/ - void 0, + namedBindings = nodeFactory.createNamespaceImport(externalHelpersModuleName); + } + } + if (namedBindings) { + const externalHelpersImportDeclaration = nodeFactory.createImportDeclaration( + /*modifiers*/ + void 0, + nodeFactory.createImportClause( /*isTypeOnly*/ false, - externalHelpersModuleName, - nodeFactory.createExternalModuleReference(nodeFactory.createStringLiteral(externalHelpersModuleNameText)) - ); - addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); - return externalHelpersImportDeclaration; - } + /*name*/ + void 0, + namedBindings + ), + nodeFactory.createStringLiteral(externalHelpersModuleNameText), + /*attributes*/ + void 0 + ); + addInternalEmitFlags(externalHelpersImportDeclaration, 2 /* NeverApplyImportHelper */); + return externalHelpersImportDeclaration; } } } -function getImportedHelpers(sourceFile) { - return filter(getEmitHelpers(sourceFile), (helper) => !helper.scoped); -} -function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, helpers, hasExportStarsToExportValues, hasImportStarOrImportDefault) { - const externalHelpersModuleName = getExternalHelpersModuleName(node); - if (externalHelpersModuleName) { - return externalHelpersModuleName; - } - const create = some(helpers) || (hasExportStarsToExportValues || getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault) && getEmitModuleFormatOfFileWorker(node, compilerOptions) < 4 /* System */; - if (create) { - const parseNode = getOriginalNode(node, isSourceFile); - const emitNode = getOrCreateEmitNode(parseNode); - return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory2.createUniqueName(externalHelpersModuleNameText)); +function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, hasExportStarsToExportValues, hasImportStarOrImportDefault) { + if (compilerOptions.importHelpers && isEffectiveExternalModule(node, compilerOptions)) { + const externalHelpersModuleName = getExternalHelpersModuleName(node); + if (externalHelpersModuleName) { + return externalHelpersModuleName; + } + const moduleKind = getEmitModuleKind(compilerOptions); + let create = (hasExportStarsToExportValues || getESModuleInterop(compilerOptions) && hasImportStarOrImportDefault) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || node.impliedNodeFormat === 1 /* CommonJS */); + if (!create) { + const helpers = getEmitHelpers(node); + if (helpers) { + for (const helper of helpers) { + if (!helper.scoped) { + create = true; + break; + } + } + } + } + if (create) { + const parseNode = getOriginalNode(node, isSourceFile); + const emitNode = getOrCreateEmitNode(parseNode); + return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory2.createUniqueName(externalHelpersModuleNameText)); + } } } function getLocalNameForExternalImport(factory2, node, sourceFile) { const namespaceDeclaration = getNamespaceDeclarationNode(node); if (namespaceDeclaration && !isDefaultImport(node) && !isExportNamespaceAsDefaultDeclaration(node)) { const name = namespaceDeclaration.name; - if (name.kind === 11 /* StringLiteral */) { - return factory2.getGeneratedNameForNode(node); - } return isGeneratedIdentifier(name) ? name : factory2.createIdentifier(getSourceTextOfNodeFromSourceFile(sourceFile, name) || idText(name)); } if (node.kind === 272 /* ImportDeclaration */ && node.importClause) { @@ -31913,6 +31343,10 @@ function isQuestionOrPlusOrMinusToken(node) { function isModuleName(node) { return isIdentifier(node) || isStringLiteral(node); } +function isLiteralTypeLikeExpression(node) { + const kind = node.kind; + return kind === 106 /* NullKeyword */ || kind === 112 /* TrueKeyword */ || kind === 97 /* FalseKeyword */ || isLiteralExpression(node) || isPrefixUnaryExpression(node); +} function isExponentiationOperator(kind) { return kind === 43 /* AsteriskAsteriskToken */; } @@ -32034,13 +31468,10 @@ var BinaryExpressionState; switch (currentState) { case enter: if (machine.onLeft) return left; - // falls through case left: if (machine.onOperator) return operator; - // falls through case operator: if (machine.onRight) return right; - // falls through case right: return exit; case exit: @@ -32101,6 +31532,10 @@ function isExportOrDefaultModifier(node) { const kind = node.kind; return isExportOrDefaultKeywordKind(kind); } +function isNonExportDefaultModifier(node) { + const kind = node.kind; + return isModifierKind(kind) && !isExportOrDefaultKeywordKind(kind); +} function elideNodes(factory2, nodes) { if (nodes === void 0) return void 0; if (nodes.length === 0) return nodes; @@ -32668,7 +32103,7 @@ var forEachChildTable = { [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.modifiers); }, - [356 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { + [355 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.elements); }, [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) { @@ -32764,7 +32199,7 @@ var forEachChildTable = { [331 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag, [337 /* JSDocOverrideTag */]: forEachChildInJSDocTag, [351 /* JSDocImportTag */]: forEachChildInJSDocImportTag, - [355 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression + [354 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression }; function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) { return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type); @@ -32876,7 +32311,7 @@ function setExternalModuleIndicator(sourceFile) { sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile); } function createSourceFile(fileName, sourceText, languageVersionOrOptions, setParentNodes = false, scriptKind) { - var _a, _b; + var _a, _b, _c, _d; (_a = tracing) == null ? void 0 : _a.push( tracing.Phase.Parse, "createSourceFile", @@ -32886,6 +32321,7 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar ); mark("beforeParse"); let result; + (_b = perfLogger) == null ? void 0 : _b.logStartParseSourceFile(fileName); const { languageVersion, setExternalModuleIndicator: overrideSetExternalModuleIndicator, @@ -32921,9 +32357,10 @@ function createSourceFile(fileName, sourceText, languageVersionOrOptions, setPar jsDocParsingMode ); } + (_c = perfLogger) == null ? void 0 : _c.logStopParseSourceFile(); mark("afterParse"); measure("Parse", "beforeParse", "afterParse"); - (_b = tracing) == null ? void 0 : _b.pop(); + (_d = tracing) == null ? void 0 : _d.pop(); return result; } function parseIsolatedEntityName(text, languageVersion) { @@ -33134,7 +32571,6 @@ var Parser; expression2 = parseLiteralNode(); break; } - // falls through default: expression2 = parseObjectLiteralExpression(); break; @@ -33864,7 +33300,7 @@ var Parser; function createIdentifier(isIdentifier3, diagnosticMessage, privateIdentifierDiagnosticMessage) { if (isIdentifier3) { identifierCount++; - const pos = scanner2.hasPrecedingJSDocLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos(); + const pos = scanner2.hasLeadingAsterisks() ? scanner2.getTokenStart() : getNodePos(); const originalKeywordKind = token(); const text = internIdentifier(scanner2.getTokenValue()); const hasExtendedUnicodeEscape = scanner2.hasExtendedUnicodeEscape(); @@ -33912,13 +33348,13 @@ var Parser; return createIdentifier(tokenIsIdentifierOrKeyword(token())); } function isLiteralPropertyName() { - return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */; + return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */; } function isImportAttributeName2() { return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */; } function parsePropertyNameWorker(allowComputedPropertyNames) { - if (token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */) { + if (token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */) { const node = parseLiteralNode(); node.text = internIdentifier(node.text); return node; @@ -33976,12 +33412,10 @@ var Parser; case 90 /* DefaultKeyword */: return nextTokenCanFollowDefaultKeyword(); case 126 /* StaticKeyword */: - nextToken(); - return canFollowModifier(); case 139 /* GetKeyword */: case 153 /* SetKeyword */: nextToken(); - return canFollowGetOrSetKeyword(); + return canFollowModifier(); default: return nextTokenIsOnSameLineAndCanFollowModifier(); } @@ -33999,9 +33433,6 @@ var Parser; function canFollowModifier() { return token() === 23 /* OpenBracketToken */ || token() === 19 /* OpenBraceToken */ || token() === 42 /* AsteriskToken */ || token() === 26 /* DotDotDotToken */ || isLiteralPropertyName(); } - function canFollowGetOrSetKeyword() { - return token() === 23 /* OpenBracketToken */ || isLiteralPropertyName(); - } function nextTokenCanFollowDefaultKeyword() { nextToken(); return token() === 86 /* ClassKeyword */ || token() === 100 /* FunctionKeyword */ || token() === 120 /* InterfaceKeyword */ || token() === 60 /* AtToken */ || token() === 128 /* AbstractKeyword */ && lookAhead(nextTokenIsClassKeywordOnSameLine) || token() === 134 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine); @@ -34061,7 +33492,6 @@ var Parser; case 25 /* DotToken */: return true; } - // falls through case 11 /* ArgumentExpressions */: return token() === 26 /* DotDotDotToken */ || isStartOfExpression(); case 16 /* Parameters */: @@ -34083,9 +33513,6 @@ var Parser; if (token() === 161 /* FromKeyword */ && lookAhead(nextTokenIsStringLiteral)) { return false; } - if (token() === 11 /* StringLiteral */) { - return true; - } return tokenIsIdentifierOrKeyword(token()); case 13 /* JsxAttributes */: return tokenIsIdentifierOrKeyword(token()) || token() === 19 /* OpenBraceToken */; @@ -34095,7 +33522,6 @@ var Parser; return true; case 26 /* Count */: return Debug.fail("ParsingContext.Count used as a context"); - // Not a real context, only a marker. default: Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'."); } @@ -34412,7 +33838,6 @@ var Parser; case 3 /* SwitchClauseStatements */: return parseErrorAtCurrentToken(Diagnostics.Statement_expected); case 18 /* RestProperties */: - // fallthrough case 4 /* TypeMembers */: return parseErrorAtCurrentToken(Diagnostics.Property_or_signature_expected); case 5 /* ClassMembers */: @@ -34460,7 +33885,6 @@ var Parser; return parseErrorAtCurrentToken(Diagnostics.Identifier_expected); case 26 /* Count */: return Debug.fail("ParsingContext.Count used as a context"); - // Not a real context, only a marker. default: Debug.assertNever(context); } @@ -35385,12 +34809,10 @@ var Parser; return tryParse(parseKeywordAndNoDot) || parseTypeReference(); case 67 /* AsteriskEqualsToken */: scanner2.reScanAsteriskEqualsToken(); - // falls through case 42 /* AsteriskToken */: return parseJSDocAllType(); case 61 /* QuestionQuestionToken */: scanner2.reScanQuestionToken(); - // falls through case 58 /* QuestionToken */: return parseJSDocUnknownOrNullableType(); case 100 /* FunctionKeyword */: @@ -36268,7 +35690,6 @@ var Parser; if (isAwaitExpression2()) { return parseAwaitExpression(); } - // falls through default: return parseUpdateExpression(); } @@ -36288,8 +35709,6 @@ var Parser; if (languageVariant !== 1 /* JSX */) { return false; } - // We are in JSX context and the token is part of JSXElement. - // falls through default: return true; } @@ -36863,16 +36282,10 @@ var Parser; } function canFollowTypeArgumentsInExpression() { switch (token()) { - // These tokens can follow a type argument list in a call expression. case 21 /* OpenParenToken */: - // foo( case 15 /* NoSubstitutionTemplateLiteral */: - // foo `...` case 16 /* TemplateHead */: return true; - // A type argument list followed by `<` never makes sense, and a type argument list followed - // by `>` is ambiguous with a (re-scanned) `>>` operator, so we disqualify both. Also, in - // this context, `+` and `-` are unary operators, not binary operators. case 30 /* LessThanToken */: case 32 /* GreaterThanToken */: case 40 /* PlusToken */: @@ -36890,7 +36303,6 @@ var Parser; false ); } - // falls through case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 11 /* StringLiteral */: @@ -37394,27 +36806,6 @@ var Parser; return isUsingDeclaration(); case 135 /* AwaitKeyword */: return isAwaitUsingDeclaration(); - // 'declare', 'module', 'namespace', 'interface'* and 'type' are all legal JavaScript identifiers; - // however, an identifier cannot be followed by another identifier on the same line. This is what we - // count on to parse out the respective declarations. For instance, we exploit this to say that - // - // namespace n - // - // can be none other than the beginning of a namespace declaration, but need to respect that JavaScript sees - // - // namespace - // n - // - // as the identifier 'namespace' on one line followed by the identifier 'n' on another. - // We need to look one token ahead to see if it permissible to try parsing a declaration. - // - // *Note*: 'interface' is actually a strict mode reserved word. So while - // - // "use strict" - // interface - // I {} - // - // could be legal, it would add complexity for very little gain. case 120 /* InterfaceKeyword */: case 156 /* TypeKeyword */: return nextTokenIsIdentifierOnSameLine(); @@ -37487,9 +36878,6 @@ var Parser; case 111 /* ThrowKeyword */: case 113 /* TryKeyword */: case 89 /* DebuggerKeyword */: - // 'catch' and 'finally' do not actually indicate that the code is part of a statement, - // however, we say they are here so that we may gracefully parse them and error later. - // falls through case 85 /* CatchKeyword */: case 98 /* FinallyKeyword */: return true; @@ -37628,8 +37016,6 @@ var Parser; case 111 /* ThrowKeyword */: return parseThrowStatement(); case 113 /* TryKeyword */: - // Include 'catch' and 'finally' for error recovery. - // falls through case 85 /* CatchKeyword */: case 98 /* FinallyKeyword */: return parseTryStatement(); @@ -38048,15 +37434,10 @@ var Parser; } switch (token()) { case 21 /* OpenParenToken */: - // Method declaration case 30 /* LessThanToken */: - // Generic Method declaration case 54 /* ExclamationToken */: - // Non-null assertion on property name case 59 /* ColonToken */: - // Type Annotation for declaration case 64 /* EqualsToken */: - // Initializer for declaration case 58 /* QuestionToken */: return true; default: @@ -38197,7 +37578,7 @@ var Parser; if (isIndexSignature()) { return parseIndexSignatureDeclaration(pos, hasJSDoc, modifiers); } - if (tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 10 /* BigIntLiteral */ || token() === 42 /* AsteriskToken */ || token() === 23 /* OpenBracketToken */) { + if (tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */ || token() === 9 /* NumericLiteral */ || token() === 42 /* AsteriskToken */ || token() === 23 /* OpenBracketToken */) { const isAmbient = some(modifiers, isDeclareModifier); if (isAmbient) { for (const m of modifiers) { @@ -38580,12 +37961,6 @@ var Parser; const name = parseIdentifier(); return finishNode(factory2.createNamespaceImport(name), pos); } - function canParseModuleExportName() { - return tokenIsIdentifierOrKeyword(token()) || token() === 11 /* StringLiteral */; - } - function parseModuleExportName(parseName) { - return token() === 11 /* StringLiteral */ ? parseLiteralNode() : parseName(); - } function parseNamedImportsOrExports(kind) { const pos = getNodePos(); const node = kind === 275 /* NamedImports */ ? factory2.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)) : factory2.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 19 /* OpenBraceToken */, 20 /* CloseBraceToken */)); @@ -38606,51 +37981,42 @@ var Parser; let isTypeOnly = false; let propertyName; let canParseAsKeyword = true; - let name = parseModuleExportName(parseIdentifierName); - if (name.kind === 80 /* Identifier */ && name.escapedText === "type") { + let name = parseIdentifierName(); + if (name.escapedText === "type") { if (token() === 130 /* AsKeyword */) { const firstAs = parseIdentifierName(); if (token() === 130 /* AsKeyword */) { const secondAs = parseIdentifierName(); - if (canParseModuleExportName()) { + if (tokenIsIdentifierOrKeyword(token())) { isTypeOnly = true; propertyName = firstAs; - name = parseModuleExportName(parseNameWithKeywordCheck); + name = parseNameWithKeywordCheck(); canParseAsKeyword = false; } else { propertyName = name; name = secondAs; canParseAsKeyword = false; } - } else if (canParseModuleExportName()) { + } else if (tokenIsIdentifierOrKeyword(token())) { propertyName = name; canParseAsKeyword = false; - name = parseModuleExportName(parseNameWithKeywordCheck); + name = parseNameWithKeywordCheck(); } else { isTypeOnly = true; name = firstAs; } - } else if (canParseModuleExportName()) { + } else if (tokenIsIdentifierOrKeyword(token())) { isTypeOnly = true; - name = parseModuleExportName(parseNameWithKeywordCheck); + name = parseNameWithKeywordCheck(); } } if (canParseAsKeyword && token() === 130 /* AsKeyword */) { propertyName = name; parseExpected(130 /* AsKeyword */); - name = parseModuleExportName(parseNameWithKeywordCheck); + name = parseNameWithKeywordCheck(); } - if (kind === 276 /* ImportSpecifier */) { - if (name.kind !== 80 /* Identifier */) { - parseErrorAt(skipTrivia(sourceText, name.pos), name.end, Diagnostics.Identifier_expected); - name = setTextRangePosEnd(createMissingNode( - 80 /* Identifier */, - /*reportAtCurrentPosition*/ - false - ), name.pos, name.pos); - } else if (checkIdentifierIsKeyword) { - parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); - } + if (kind === 276 /* ImportSpecifier */ && checkIdentifierIsKeyword) { + parseErrorAt(checkIdentifierStart, checkIdentifierEnd, Diagnostics.Identifier_expected); } const node = kind === 276 /* ImportSpecifier */ ? factory2.createImportSpecifier(isTypeOnly, propertyName, name) : factory2.createExportSpecifier(isTypeOnly, propertyName, name); return finishNode(node, pos); @@ -38662,7 +38028,7 @@ var Parser; } } function parseNamespaceExport(pos) { - return finishNode(factory2.createNamespaceExport(parseModuleExportName(parseIdentifierName)), pos); + return finishNode(factory2.createNamespaceExport(parseIdentifierName()), pos); } function parseExportDeclaration(pos, hasJSDoc, modifiers) { const savedAwaitContext = inAwaitContext(); @@ -38963,7 +38329,6 @@ var Parser; linkEnd = scanner2.getTokenEnd(); break; } - // fallthrough if it's not a {@link sequence default: state = 2 /* SavingComments */; pushComment(scanner2.getTokenText()); @@ -39222,8 +38587,6 @@ var Parser; indent3 += 1; break; } - // record the * as a comment - // falls through default: if (state !== 3 /* SavingBackticks */) { state = 2 /* SavingComments */; @@ -39482,7 +38845,6 @@ var Parser; const node = factory2.createExpressionWithTypeArguments(expression, typeArguments); const res = finishNode(node, pos); if (usedBrace) { - skipWhitespace(); parseExpected(20 /* CloseBraceToken */); } return res; @@ -40196,10 +39558,9 @@ function getDeclarationFileExtension(fileName) { return standardExtension; } if (fileExtensionIs(fileName, ".ts" /* Ts */)) { - const baseName = getBaseFileName(fileName); - const index = baseName.lastIndexOf(".d."); + const index = getBaseFileName(fileName).lastIndexOf(".d."); if (index >= 0) { - return baseName.substring(index); + return fileName.substring(index); } } return void 0; @@ -40306,7 +39667,6 @@ function processPragmasIntoFields(context, reportDiagnostic) { case "jsximportsource": case "jsxruntime": return; - // Accessed directly default: Debug.fail("Unhandled pragma kind"); } @@ -40321,8 +39681,8 @@ function getNamedArgRegEx(name) { namedArgRegExCache.set(name, result); return result; } -var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/m; -var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m; +var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im; +var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im; function extractPragmas(pragmas, range, text) { const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text); if (tripleSlash) { @@ -40363,7 +39723,7 @@ function extractPragmas(pragmas, range, text) { return addPragmaForMatch(pragmas, range, 2 /* SingleLine */, singleLine); } if (range.kind === 3 /* MultiLineCommentTrivia */) { - const multiLinePragmaRegEx = /@(\S+)(\s+(?:\S.*)?)?$/gm; + const multiLinePragmaRegEx = /@(\S+)(\s+.*)?$/gim; let multiLineMatch; while (multiLineMatch = multiLinePragmaRegEx.exec(text)) { addPragmaForMatch(pragmas, range, 4 /* MultiLine */, multiLineMatch); @@ -40444,7 +39804,6 @@ var libEntries = [ ["es2021", "lib.es2021.d.ts"], ["es2022", "lib.es2022.d.ts"], ["es2023", "lib.es2023.d.ts"], - ["es2024", "lib.es2024.d.ts"], ["esnext", "lib.esnext.d.ts"], // Host only ["dom", "lib.dom.d.ts"], @@ -40467,7 +39826,6 @@ var libEntries = [ ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"], ["es2016.array.include", "lib.es2016.array.include.d.ts"], ["es2016.intl", "lib.es2016.intl.d.ts"], - ["es2017.arraybuffer", "lib.es2017.arraybuffer.d.ts"], ["es2017.date", "lib.es2017.date.d.ts"], ["es2017.object", "lib.es2017.object.d.ts"], ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"], @@ -40500,18 +39858,12 @@ var libEntries = [ ["es2022.error", "lib.es2022.error.d.ts"], ["es2022.intl", "lib.es2022.intl.d.ts"], ["es2022.object", "lib.es2022.object.d.ts"], + ["es2022.sharedmemory", "lib.es2022.sharedmemory.d.ts"], ["es2022.string", "lib.es2022.string.d.ts"], ["es2022.regexp", "lib.es2022.regexp.d.ts"], ["es2023.array", "lib.es2023.array.d.ts"], ["es2023.collection", "lib.es2023.collection.d.ts"], ["es2023.intl", "lib.es2023.intl.d.ts"], - ["es2024.arraybuffer", "lib.es2024.arraybuffer.d.ts"], - ["es2024.collection", "lib.es2024.collection.d.ts"], - ["es2024.object", "lib.es2024.object.d.ts"], - ["es2024.promise", "lib.es2024.promise.d.ts"], - ["es2024.regexp", "lib.es2024.regexp.d.ts"], - ["es2024.sharedmemory", "lib.es2024.sharedmemory.d.ts"], - ["es2024.string", "lib.es2024.string.d.ts"], ["esnext.array", "lib.es2023.array.d.ts"], ["esnext.collection", "lib.esnext.collection.d.ts"], ["esnext.symbol", "lib.es2019.symbol.d.ts"], @@ -40520,16 +39872,13 @@ var libEntries = [ ["esnext.disposable", "lib.esnext.disposable.d.ts"], ["esnext.bigint", "lib.es2020.bigint.d.ts"], ["esnext.string", "lib.es2022.string.d.ts"], - ["esnext.promise", "lib.es2024.promise.d.ts"], + ["esnext.promise", "lib.esnext.promise.d.ts"], ["esnext.weakref", "lib.es2021.weakref.d.ts"], ["esnext.decorators", "lib.esnext.decorators.d.ts"], - ["esnext.object", "lib.es2024.object.d.ts"], + ["esnext.object", "lib.esnext.object.d.ts"], ["esnext.array", "lib.esnext.array.d.ts"], - ["esnext.regexp", "lib.es2024.regexp.d.ts"], - ["esnext.string", "lib.es2024.string.d.ts"], - ["esnext.iterator", "lib.esnext.iterator.d.ts"], - ["esnext.promise", "lib.esnext.promise.d.ts"], - ["esnext.float16", "lib.esnext.float16.d.ts"], + ["esnext.regexp", "lib.esnext.regexp.d.ts"], + ["esnext.string", "lib.esnext.string.d.ts"], ["decorators", "lib.decorators.d.ts"], ["decorators.legacy", "lib.decorators.legacy.d.ts"] ]; @@ -40708,6 +40057,7 @@ var commonOptionsWithBuild = [ name: "generateTrace", type: "string", isFilePath: true, + isCommandLineOnly: true, paramType: Diagnostics.DIRECTORY, category: Diagnostics.Compiler_Diagnostics, description: Diagnostics.Generates_an_event_trace_and_a_list_of_types @@ -40773,25 +40123,6 @@ var commonOptionsWithBuild = [ description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript, defaultValueDescription: false }, - { - name: "noCheck", - type: "boolean", - showInSimplifiedHelpView: false, - category: Diagnostics.Compiler_Diagnostics, - description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported, - transpileOptionValue: true, - defaultValueDescription: false - // Not setting affectsSemanticDiagnostics or affectsBuildInfo because we dont want all diagnostics to go away, its handled in builder - }, - { - name: "noEmit", - type: "boolean", - showInSimplifiedHelpView: true, - category: Diagnostics.Emit, - description: Diagnostics.Disable_emitting_files_from_a_compilation, - transpileOptionValue: void 0, - defaultValueDescription: false - }, { name: "assumeChangesOnlyAffectDirectDependencies", type: "boolean", @@ -40827,7 +40158,6 @@ var targetOptionDeclaration = { es2021: 8 /* ES2021 */, es2022: 9 /* ES2022 */, es2023: 10 /* ES2023 */, - es2024: 11 /* ES2024 */, esnext: 99 /* ESNext */ })), affectsSourceFile: true, @@ -40856,7 +40186,6 @@ var moduleOptionDeclaration = { es2022: 7 /* ES2022 */, esnext: 99 /* ESNext */, node16: 100 /* Node16 */, - node18: 101 /* Node18 */, nodenext: 199 /* NodeNext */, preserve: 200 /* Preserve */ })), @@ -40907,6 +40236,15 @@ var commandOptionsWithoutBuild = [ paramType: Diagnostics.FILE_OR_DIRECTORY, description: Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json }, + { + name: "build", + type: "boolean", + shortName: "b", + showInSimplifiedHelpView: true, + category: Diagnostics.Command_line_Options, + description: Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, + defaultValueDescription: false + }, { name: "showConfig", type: "boolean", @@ -41049,6 +40387,29 @@ var commandOptionsWithoutBuild = [ defaultValueDescription: false, description: Diagnostics.Disable_emitting_comments }, + { + name: "noCheck", + type: "boolean", + showInSimplifiedHelpView: false, + category: Diagnostics.Compiler_Diagnostics, + description: Diagnostics.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported, + transpileOptionValue: true, + defaultValueDescription: false, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, + extraValidation() { + return [Diagnostics.Unknown_compiler_option_0, "noCheck"]; + } + }, + { + name: "noEmit", + type: "boolean", + showInSimplifiedHelpView: true, + category: Diagnostics.Emit, + description: Diagnostics.Disable_emitting_files_from_a_compilation, + transpileOptionValue: void 0, + defaultValueDescription: false + }, { name: "importHelpers", type: "boolean", @@ -41109,23 +40470,6 @@ var commandOptionsWithoutBuild = [ affectsBuildInfo: true, affectsSemanticDiagnostics: true }, - { - name: "erasableSyntaxOnly", - type: "boolean", - category: Diagnostics.Interop_Constraints, - description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript, - defaultValueDescription: false, - affectsBuildInfo: true, - affectsSemanticDiagnostics: true - }, - { - name: "libReplacement", - type: "boolean", - affectsProgramStructure: true, - category: Diagnostics.Language_and_Environment, - description: Diagnostics.Enable_lib_replacement, - defaultValueDescription: true - }, // Strict Type Checks { name: "strict", @@ -41190,16 +40534,6 @@ var commandOptionsWithoutBuild = [ description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor, defaultValueDescription: Diagnostics.false_unless_strict_is_set }, - { - name: "strictBuiltinIteratorReturn", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - strictFlag: true, - category: Diagnostics.Type_Checking, - description: Diagnostics.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any, - defaultValueDescription: Diagnostics.false_unless_strict_is_set - }, { name: "noImplicitThis", type: "boolean", @@ -41448,15 +40782,6 @@ var commandOptionsWithoutBuild = [ defaultValueDescription: false, transpileOptionValue: void 0 }, - { - name: "rewriteRelativeImportExtensions", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files, - defaultValueDescription: false - }, { name: "resolvePackageJsonExports", type: "boolean", @@ -41484,15 +40809,6 @@ var commandOptionsWithoutBuild = [ category: Diagnostics.Modules, description: Diagnostics.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports }, - { - name: "noUncheckedSideEffectImports", - type: "boolean", - affectsSemanticDiagnostics: true, - affectsBuildInfo: true, - category: Diagnostics.Modules, - description: Diagnostics.Check_side_effect_imports, - defaultValueDescription: false - }, // Source Maps { name: "sourceRoot", @@ -41917,17 +41233,7 @@ var commandLineOptionOfCustomType = optionDeclarations.filter(isCommandLineOptio function isCommandLineOptionOfCustomType(option) { return !isString(option.type); } -var tscBuildOption = { - name: "build", - type: "boolean", - shortName: "b", - showInSimplifiedHelpView: true, - category: Diagnostics.Command_line_Options, - description: Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date, - defaultValueDescription: false -}; var optionsForBuild = [ - tscBuildOption, { name: "verbose", shortName: "v", @@ -41958,13 +41264,6 @@ var optionsForBuild = [ description: Diagnostics.Delete_the_outputs_of_all_projects, type: "boolean", defaultValueDescription: false - }, - { - name: "stopBuildOnErrors", - category: Diagnostics.Command_line_Options, - description: Diagnostics.Skip_building_downstream_projects_on_error_in_upstream_project, - type: "boolean", - defaultValueDescription: false } ]; var buildOpts = [ @@ -42066,14 +41365,8 @@ function getOptionName(option) { } function createUnknownOptionError(unknownOption, diagnostics, unknownOptionErrorText, node, sourceFile) { var _a; - const otherOption = (_a = diagnostics.alternateMode) == null ? void 0 : _a.getOptionsNameMap().optionsNameMap.get(unknownOption.toLowerCase()); - if (otherOption) { - return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic( - sourceFile, - node, - otherOption !== tscBuildOption ? diagnostics.alternateMode.diagnostic : Diagnostics.Option_build_must_be_the_first_command_line_argument, - unknownOption - ); + if ((_a = diagnostics.alternateMode) == null ? void 0 : _a.getOptionsNameMap().optionsNameMap.has(unknownOption.toLowerCase())) { + return createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.alternateMode.diagnostic, unknownOption); } const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName); return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption); @@ -42208,7 +41501,6 @@ function parseOptionValue(args, i, diagnostics, opt, options, errors) { case "listOrElement": Debug.fail("listOrElement not supported here"); break; - // If not a primitive, the possible types are specified in what is effectively a map of options. default: options[opt.name] = parseCustomTypeOption(opt, args[i], errors); i++; @@ -42262,10 +41554,10 @@ var buildOptionsDidYouMeanDiagnostics = { unknownDidYouMeanDiagnostic: Diagnostics.Unknown_build_option_0_Did_you_mean_1, optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1 }; -function parseBuildCommand(commandLine) { +function parseBuildCommand(args) { const { options, watchOptions, fileNames: projects, errors } = parseCommandLineWorker( buildOptionsDidYouMeanDiagnostics, - commandLine + args ); const buildOptions = options; if (projects.length === 0) { @@ -42549,7 +41841,6 @@ function convertToJson(sourceFile, rootExpression, errors, returnValue, jsonConv return false; case 106 /* NullKeyword */: return null; - // eslint-disable-line no-restricted-syntax case 11 /* StringLiteral */: if (!isDoubleQuotedString(valueExpression)) { errors.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected)); @@ -42643,7 +41934,7 @@ function convertToTSConfig(configParseResult, configFileName, host) { const providedKeys = new Set(optionMap.keys()); const impliedCompilerOptions = {}; for (const option in computedOptions) { - if (!providedKeys.has(option) && optionDependsOn(option, providedKeys)) { + if (!providedKeys.has(option) && some(computedOptions[option].dependencies, (dep) => providedKeys.has(dep))) { const implied = computedOptions[option].computeValue(configParseResult.options); const defaultValue = computedOptions[option].computeValue({}); if (implied !== defaultValue) { @@ -42654,19 +41945,10 @@ function convertToTSConfig(configParseResult, configFileName, host) { assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions))); return config; } -function optionDependsOn(option, dependsOn) { - const seen = /* @__PURE__ */ new Set(); - return optionDependsOnRecursive(option); - function optionDependsOnRecursive(option2) { - var _a; - if (addToSeen(seen, option2)) { - return some((_a = computedOptions[option2]) == null ? void 0 : _a.dependencies, (dep) => dependsOn.has(dep) || optionDependsOnRecursive(dep)); - } - return false; - } -} function optionMapToObject(optionMap) { - return Object.fromEntries(optionMap); + return { + ...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {}) + }; } function filterSameAsDefaultInclude(specs) { if (!length(specs)) return void 0; @@ -43040,6 +42322,8 @@ function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, exis validatedFilesSpecBeforeSubstitution, validatedIncludeSpecsBeforeSubstitution, validatedExcludeSpecsBeforeSubstitution, + pathPatterns: void 0, + // Initialized on first use isDefaultIncludeSpec }; } @@ -43178,9 +42462,6 @@ function getErrorForNoInputFiles({ includeSpecs, excludeSpecs }, configFileName) function shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles, resolutionStack) { return fileNames.length === 0 && canJsonReportNoInutFiles && (!resolutionStack || resolutionStack.length === 0); } -function isSolutionConfig(config) { - return !config.fileNames.length && hasProperty(config.raw, "references"); -} function canJsonReportNoInputFiles(raw) { return !hasProperty(raw, "files") && !hasProperty(raw, "references"); } @@ -43222,7 +42503,7 @@ function parseConfig(json, sourceFile, host, basePath, configFileName, resolutio if (ownConfig.raw.compileOnSave === void 0 && result.compileOnSave) ownConfig.raw.compileOnSave = result.compileOnSave; if (sourceFile && result.extendedSourceFiles) sourceFile.extendedSourceFiles = arrayFrom(result.extendedSourceFiles.keys()); ownConfig.options = assign(result.options, ownConfig.options); - ownConfig.watchOptions = ownConfig.watchOptions && result.watchOptions ? assignWatchOptions(result, ownConfig.watchOptions) : ownConfig.watchOptions || result.watchOptions; + ownConfig.watchOptions = ownConfig.watchOptions && result.watchOptions ? assign(result.watchOptions, ownConfig.watchOptions) : ownConfig.watchOptions || result.watchOptions; } return ownConfig; function applyExtendedConfig(result, extendedConfigPath) { @@ -43246,14 +42527,9 @@ function parseConfig(json, sourceFile, host, basePath, configFileName, resolutio result.compileOnSave = extendsRaw.compileOnSave; } assign(result.options, extendedConfig.options); - result.watchOptions = result.watchOptions && extendedConfig.watchOptions ? assignWatchOptions(result, extendedConfig.watchOptions) : result.watchOptions || extendedConfig.watchOptions; + result.watchOptions = result.watchOptions && extendedConfig.watchOptions ? assign({}, result.watchOptions, extendedConfig.watchOptions) : result.watchOptions || extendedConfig.watchOptions; } } - function assignWatchOptions(result, watchOptions) { - if (result.watchOptionsCopied) return assign(result.watchOptions, watchOptions); - result.watchOptionsCopied = true; - return assign({}, result.watchOptions, watchOptions); - } } function parseOwnConfigOfJson(json, host, basePath, configFileName, errors) { if (hasProperty(json, "excludes")) { @@ -43540,7 +42816,7 @@ function convertJsonOptionOfCustomType(opt, value, errors, valueExpression, sour function convertJsonOptionOfListType(option, values, basePath, errors, propertyAssignment, valueExpression, sourceFile) { return filter(map(values, (v, index) => convertJsonOption(option.element, v, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v); } -var invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/; +var invalidTrailingRecursionPattern = /(^|\/)\*\*\/?$/; var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/; function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions = emptyArray) { basePath = normalizePath(basePath); @@ -43775,7 +43051,6 @@ function getOptionValueWithEmptyStrings(value, option) { return typeof value === "boolean" ? value : ""; case "listOrElement": if (!isArray(value)) return getOptionValueWithEmptyStrings(value, option.element); - // fall through to list case "list": const elementType = option.element; return isArray(value) ? mapDefined(value, (v) => getOptionValueWithEmptyStrings(v, elementType)) : ""; @@ -44296,7 +43571,7 @@ function getConditions(options, resolutionMode) { } function resolvePackageNameToPackageJson(packageName, containingDirectory, options, host, cache) { const moduleResolutionState = getTemporaryModuleResolutionState(cache == null ? void 0 : cache.getPackageJsonInfoCache(), host, options); - return forEachAncestorDirectoryStoppingAtGlobalCache(host, containingDirectory, (ancestorDirectory) => { + return forEachAncestorDirectory(containingDirectory, (ancestorDirectory) => { if (getBaseFileName(ancestorDirectory) !== "node_modules") { const nodeModulesFolder = combinePaths(ancestorDirectory, "node_modules"); const candidate = combinePaths(nodeModulesFolder, packageName); @@ -44675,6 +43950,7 @@ function resolveModuleNameFromCache(moduleName, containingFile, cache, mode) { ); } function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) { + var _a, _b, _c; const traceEnabled = isTraceEnabled(compilerOptions, host); if (redirectedReference) { compilerOptions = redirectedReference.commandLine.options; @@ -44703,6 +43979,7 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, host, ca trace(host, Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ModuleResolutionKind[moduleResolution]); } } + (_a = perfLogger) == null ? void 0 : _a.logStartResolveModule(moduleName); switch (moduleResolution) { case 3 /* Node16 */: result = node16ModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode); @@ -44722,6 +43999,8 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, host, ca default: return Debug.fail(`Unexpected moduleResolution: ${moduleResolution}`); } + if (result && result.resolvedModule) (_b = perfLogger) == null ? void 0 : _b.logInfoEvent(`Module "${moduleName}" resolved to "${result.resolvedModule.resolvedFileName}"`); + (_c = perfLogger) == null ? void 0 : _c.logStopResolveModule(result && result.resolvedModule ? "" + result.resolvedModule.resolvedFileName : "null"); if (cache && !cache.isReadonly) { cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference).set(moduleName, resolutionMode, result); if (!isExternalModuleNameRelative(moduleName)) { @@ -44752,7 +44031,8 @@ function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, co } } function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) { - const { baseUrl, paths } = state.compilerOptions; + var _a; + const { baseUrl, paths, configFile } = state.compilerOptions; if (paths && !pathIsRelative(moduleName)) { if (state.traceEnabled) { if (baseUrl) { @@ -44761,7 +44041,7 @@ function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state trace(state.host, Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName); } const baseDirectory = getPathsBasePath(state.compilerOptions, state.host); - const pathPatterns = tryParsePatterns(paths); + const pathPatterns = (configFile == null ? void 0 : configFile.configFileSpecs) ? (_a = configFile.configFileSpecs).pathPatterns || (_a.pathPatterns = tryParsePatterns(paths)) : void 0; return tryLoadModuleUsingPaths( extensions, moduleName, @@ -45073,28 +44353,25 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory, return toSearchResult({ resolved, isExternalLibraryImport: pathContainsNodeModules(resolved.path) }); } if (!isExternalModuleNameRelative(moduleName)) { + let resolved2; if (features & 2 /* Imports */ && startsWith(moduleName, "#")) { - const resolved3 = loadModuleFromImports(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); - if (resolved3) { - return resolved3.value && { value: { resolved: resolved3.value, isExternalLibraryImport: false } }; - } + resolved2 = loadModuleFromImports(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); } - if (features & 4 /* SelfName */) { - const resolved3 = loadModuleFromSelfNameReference(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); - if (resolved3) { - return resolved3.value && { value: { resolved: resolved3.value, isExternalLibraryImport: false } }; - } + if (!resolved2 && features & 4 /* SelfName */) { + resolved2 = loadModuleFromSelfNameReference(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); } - if (moduleName.includes(":")) { + if (!resolved2) { + if (moduleName.includes(":")) { + if (traceEnabled) { + trace(host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); + } + return void 0; + } if (traceEnabled) { - trace(host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); + trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); } - return void 0; - } - if (traceEnabled) { - trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions2)); + resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); } - let resolved2 = loadModuleFromNearestNodeModulesDirectory(extensions2, moduleName, containingDirectory, state2, cache, redirectedReference); if (extensions2 & 4 /* Declaration */) { resolved2 ?? (resolved2 = resolveFromTypeRoot(moduleName, state2)); } @@ -45222,11 +44499,10 @@ function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecor } return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state); } -function loadFileNameFromPackageJsonField(extensions, candidate, packageJsonValue, onlyRecordFailures, state) { +function loadFileNameFromPackageJsonField(extensions, candidate, onlyRecordFailures, state) { if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) { const result = tryFile(candidate, onlyRecordFailures, state); - const ext = tryExtractTSExtension(candidate); - return result !== void 0 ? { path: candidate, ext, resolvedUsingTsExtension: packageJsonValue ? !endsWith(packageJsonValue, ext) : void 0 } : void 0; + return result !== void 0 ? { path: candidate, ext: tryExtractTSExtension(candidate), resolvedUsingTsExtension: void 0 } : void 0; } if (state.isConfigLookup && extensions === 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */)) { const result = tryFile(candidate, onlyRecordFailures, state); @@ -45296,7 +44572,9 @@ function tryFileLookup(fileName, onlyRecordFailures, state) { } function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) { const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0; - return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state); + const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent; + const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state); + return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state); } function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache, resolveJs) { if (!resolveJs && packageJsonInfo.contents.resolvedEntrypoints !== void 0) { @@ -45314,7 +44592,8 @@ function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options, host, cache /*onlyRecordFailures*/ false, loadPackageJsonMainState, - packageJsonInfo + packageJsonInfo.contents.packageJsonContent, + getVersionPathsOfPackageJsonInfo(packageJsonInfo, loadPackageJsonMainState) ); entrypoints = append(entrypoints, mainResolution == null ? void 0 : mainResolution.path); if (features & 8 /* Exports */ && packageJsonInfo.contents.packageJsonContent.exports) { @@ -45385,7 +44664,6 @@ function loadEntrypointsFromExportMap(scope, exports2, state, extensions) { const result = loadFileNameFromPackageJsonField( extensions, finalPath, - target, /*onlyRecordFailures*/ false, state @@ -45429,17 +44707,22 @@ function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) resolvedPackageDirectory: false }; } -function getPackageScopeForPath(directory, state) { - return forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - directory, - (dir) => getPackageJsonInfo( - dir, +function getPackageScopeForPath(fileName, state) { + const parts = getPathComponents(fileName); + parts.pop(); + while (parts.length > 0) { + const pkg = getPackageJsonInfo( + getPathFromPathComponents(parts), /*onlyRecordFailures*/ false, state - ) - ); + ); + if (pkg) { + return pkg; + } + parts.pop(); + } + return void 0; } function getVersionPathsOfPackageJsonInfo(packageJsonInfo, state) { if (packageJsonInfo.contents.versionPaths === void 0) { @@ -45517,25 +44800,17 @@ function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) { (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath); } } -function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) { - const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state); +function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) { let packageFile; - if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) { + if (jsonContent) { if (state.isConfigLookup) { - packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state); + packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state); } else { - packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0; + packageFile = extensions & 4 /* Declaration */ && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 /* ImplementationFiles */ | 4 /* Declaration */) && readPackageJsonMainField(jsonContent, candidate, state) || void 0; } } const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => { - const fromFile = loadFileNameFromPackageJsonField( - extensions2, - candidate2, - /*packageJsonValue*/ - void 0, - onlyRecordFailures2, - state2 - ); + const fromFile = loadFileNameFromPackageJsonField(extensions2, candidate2, onlyRecordFailures2, state2); if (fromFile) { return noPackageId(fromFile); } @@ -45543,7 +44818,7 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail const features = state2.features; const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField; state2.candidateIsFromPackageJsonField = true; - if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") { + if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") { state2.features &= ~32 /* EsmMode */; } const result = nodeLoadModuleByRelativeName( @@ -45571,8 +44846,17 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail if (state.traceEnabled) { trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, moduleName); } - const pathPatterns = tryParsePatterns(versionPaths.paths); - const result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, pathPatterns, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state); + const result = tryLoadModuleUsingPaths( + extensions, + moduleName, + candidate, + versionPaths.paths, + /*pathPatterns*/ + void 0, + loader, + onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, + state + ); if (result) { return removeIgnoredPackageId(result.value); } @@ -45601,7 +44885,7 @@ function noKeyStartsWithDot(obj) { } function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache, redirectedReference) { var _a, _b; - const directoryPath = getNormalizedAbsolutePath(directory, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); const scope = getPackageScopeForPath(directoryPath, state); if (!scope || !scope.contents.packageJsonContent.exports) { return void 0; @@ -45635,7 +44919,7 @@ function loadModuleFromExports(scope, extensions, subpath, state, cache, redirec mainExport = scope.contents.packageJsonContent.exports["."]; } if (mainExport) { - const loadModuleFromTargetExportOrImport = getLoadModuleFromTargetExportOrImport( + const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport( extensions, state, cache, @@ -45645,7 +44929,7 @@ function loadModuleFromExports(scope, extensions, subpath, state, cache, redirec /*isImports*/ false ); - return loadModuleFromTargetExportOrImport( + return loadModuleFromTargetImportOrExport( mainExport, "", /*pattern*/ @@ -45663,7 +44947,7 @@ function loadModuleFromExports(scope, extensions, subpath, state, cache, redirec void 0 ); } - const result = loadModuleFromExportsOrImports( + const result = loadModuleFromImportsOrExports( extensions, state, cache, @@ -45697,7 +44981,7 @@ function loadModuleFromImports(extensions, moduleName, directory, state, cache, void 0 ); } - const directoryPath = getNormalizedAbsolutePath(directory, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); + const directoryPath = getNormalizedAbsolutePath(combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); const scope = getPackageScopeForPath(directoryPath, state); if (!scope) { if (state.traceEnabled) { @@ -45717,7 +45001,7 @@ function loadModuleFromImports(extensions, moduleName, directory, state, cache, void 0 ); } - const result = loadModuleFromExportsOrImports( + const result = loadModuleFromImportsOrExports( extensions, state, cache, @@ -45744,19 +45028,19 @@ function comparePatternKeys(a, b) { const bPatternIndex = b.indexOf("*"); const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLenA > baseLenB) return -1 /* LessThan */; - if (baseLenB > baseLenA) return 1 /* GreaterThan */; - if (aPatternIndex === -1) return 1 /* GreaterThan */; - if (bPatternIndex === -1) return -1 /* LessThan */; - if (a.length > b.length) return -1 /* LessThan */; - if (b.length > a.length) return 1 /* GreaterThan */; - return 0 /* EqualTo */; + if (baseLenA > baseLenB) return -1; + if (baseLenB > baseLenA) return 1; + if (aPatternIndex === -1) return 1; + if (bPatternIndex === -1) return -1; + if (a.length > b.length) return -1; + if (b.length > a.length) return 1; + return 0; } -function loadModuleFromExportsOrImports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) { - const loadModuleFromTargetExportOrImport = getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports); +function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) { + const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports); if (!endsWith(moduleName, directorySeparator) && !moduleName.includes("*") && hasProperty(lookupTable, moduleName)) { const target = lookupTable[moduleName]; - return loadModuleFromTargetExportOrImport( + return loadModuleFromTargetImportOrExport( target, /*subpath*/ "", @@ -45765,13 +45049,13 @@ function loadModuleFromExportsOrImports(extensions, state, cache, redirectedRefe moduleName ); } - const expandingKeys = toSorted(filter(getOwnKeys(lookupTable), (k) => hasOneAsterisk(k) || endsWith(k, "/")), comparePatternKeys); + const expandingKeys = sort(filter(getOwnKeys(lookupTable), (k) => hasOneAsterisk(k) || endsWith(k, "/")), comparePatternKeys); for (const potentialTarget of expandingKeys) { if (state.features & 16 /* ExportsPatternTrailers */ && matchesPatternWithTrailer(potentialTarget, moduleName)) { const target = lookupTable[potentialTarget]; const starPos = potentialTarget.indexOf("*"); const subpath = moduleName.substring(potentialTarget.substring(0, starPos).length, moduleName.length - (potentialTarget.length - 1 - starPos)); - return loadModuleFromTargetExportOrImport( + return loadModuleFromTargetImportOrExport( target, subpath, /*pattern*/ @@ -45781,7 +45065,7 @@ function loadModuleFromExportsOrImports(extensions, state, cache, redirectedRefe } else if (endsWith(potentialTarget, "*") && startsWith(moduleName, potentialTarget.substring(0, potentialTarget.length - 1))) { const target = lookupTable[potentialTarget]; const subpath = moduleName.substring(potentialTarget.length - 1); - return loadModuleFromTargetExportOrImport( + return loadModuleFromTargetImportOrExport( target, subpath, /*pattern*/ @@ -45791,7 +45075,7 @@ function loadModuleFromExportsOrImports(extensions, state, cache, redirectedRefe } else if (startsWith(moduleName, potentialTarget)) { const target = lookupTable[potentialTarget]; const subpath = moduleName.substring(potentialTarget.length); - return loadModuleFromTargetExportOrImport( + return loadModuleFromTargetImportOrExport( target, subpath, /*pattern*/ @@ -45811,10 +45095,9 @@ function hasOneAsterisk(patternKey) { const firstStar = patternKey.indexOf("*"); return firstStar !== -1 && firstStar === patternKey.lastIndexOf("*"); } -function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) { - return loadModuleFromTargetExportOrImport; - function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) { - var _a, _b; +function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) { + return loadModuleFromTargetImportOrExport; + function loadModuleFromTargetImportOrExport(target, subpath, pattern, key) { if (typeof target === "string") { if (!pattern && subpath.length > 0 && !endsWith(target, "/")) { if (state.traceEnabled) { @@ -45843,8 +45126,6 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec redirectedReference, state.conditions ); - (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray); - (_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray); return toSearchResult( result.resolvedModule ? { path: result.resolvedModule.resolvedFileName, @@ -45894,7 +45175,6 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, finalPath, - target, /*onlyRecordFailures*/ false, state @@ -45906,7 +45186,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec if (condition === "default" || state.conditions.includes(condition) || isApplicableVersionedTypesKey(state.conditions, condition)) { traceIfEnabled(state, Diagnostics.Matched_0_condition_1, isImports ? "imports" : "exports", condition); const subTarget = target[condition]; - const result = loadModuleFromTargetExportOrImport(subTarget, subpath, pattern, key); + const result = loadModuleFromTargetImportOrExport(subTarget, subpath, pattern, key); if (result) { traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition); traceIfEnabled(state, Diagnostics.Exiting_conditional_exports); @@ -45931,7 +45211,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec ); } for (const elem of target) { - const result = loadModuleFromTargetExportOrImport(elem, subpath, pattern, key); + const result = loadModuleFromTargetImportOrExport(elem, subpath, pattern, key); if (result) { return result; } @@ -45954,20 +45234,20 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec void 0 ); function toAbsolutePath(path) { - var _a2, _b2; + var _a, _b; if (path === void 0) return path; - return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)); + return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)); } function combineDirectoryPath(root, dir) { return ensureTrailingDirectorySeparator(combinePaths(root, dir)); } function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) { - var _a2, _b2, _c, _d; + var _a, _b, _c, _d; if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) { const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) }); const commonSourceDirGuesses = []; if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) { - const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName)); + const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName)); commonSourceDirGuesses.push(commonDir); } else if (state.requestContainingDirectory) { const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts")); @@ -46007,8 +45287,6 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField( extensions, possibleInputWithInputExtension, - /*packageJsonValue*/ - void 0, /*onlyRecordFailures*/ false, state @@ -46023,8 +45301,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec } return void 0; function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) { - var _a3, _b3; - const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess; + var _a2, _b2; + const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess; const candidateDirectories = []; if (state.compilerOptions.declarationDir) { candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir))); @@ -46071,7 +45349,7 @@ function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directo ); } function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { - const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ || state.conditions.includes("import") ? 99 /* ESNext */ : 1 /* CommonJS */; + const mode = state.features === 0 ? void 0 : state.features & 32 /* EsmMode */ ? 99 /* ESNext */ : 1 /* CommonJS */; const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */); const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */); if (priorityExtensions) { @@ -46084,30 +45362,17 @@ function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, return lookup(secondaryExtensions); } function lookup(extensions2) { - return forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - normalizeSlashes(directory), - (ancestorDirectory) => { - if (getBaseFileName(ancestorDirectory) !== "node_modules") { - const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, ancestorDirectory, redirectedReference, state); - if (resolutionFromCache) { - return resolutionFromCache; - } - return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference)); + return forEachAncestorDirectory(normalizeSlashes(directory), (ancestorDirectory) => { + if (getBaseFileName(ancestorDirectory) !== "node_modules") { + const resolutionFromCache = tryFindNonRelativeModuleNameInCache(cache, moduleName, mode, ancestorDirectory, redirectedReference, state); + if (resolutionFromCache) { + return resolutionFromCache; } + return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions2, moduleName, ancestorDirectory, state, typesScopeOnly, cache, redirectedReference)); } - ); + }); } } -function forEachAncestorDirectoryStoppingAtGlobalCache(host, directory, callback) { - var _a; - const globalCache = (_a = host == null ? void 0 : host.getGlobalTypingsCacheLocation) == null ? void 0 : _a.call(host); - return forEachAncestorDirectory(directory, (ancestorDirectory) => { - const result = callback(ancestorDirectory); - if (result !== void 0) return result; - if (ancestorDirectory === globalCache) return false; - }) || void 0; -} function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) { const nodeModulesFolder = combinePaths(directory, "node_modules"); const nodeModulesFolderExists = directoryProbablyExists(nodeModulesFolder, state.host); @@ -46149,7 +45414,8 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node candidate, !nodeModulesDirectoryExists, state, - packageInfo + packageInfo.contents.packageJsonContent, + getVersionPathsOfPackageJsonInfo(packageInfo, state) ); return withPackageId(packageInfo, fromDirectory, state); } @@ -46159,9 +45425,10 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node candidate2, onlyRecordFailures, state2, - packageInfo + packageInfo && packageInfo.contents.packageJsonContent, + packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2) ); - if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) { + if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32 /* EsmMode */) { pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2); } return withPackageId(packageInfo, pathAndExtension, state2); @@ -46181,8 +45448,17 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node trace(state.host, Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, version, rest); } const packageDirectoryExists = nodeModulesDirectoryExists && directoryProbablyExists(packageDirectory, state.host); - const pathPatterns = tryParsePatterns(versionPaths.paths); - const fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, versionPaths.paths, pathPatterns, loader, !packageDirectoryExists, state); + const fromPaths = tryLoadModuleUsingPaths( + extensions, + rest, + packageDirectory, + versionPaths.paths, + /*pathPatterns*/ + void 0, + loader, + !packageDirectoryExists, + state + ); if (fromPaths) { return fromPaths.value; } @@ -46190,6 +45466,7 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node return loader(extensions, candidate, !nodeModulesDirectoryExists, state); } function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) { + pathPatterns || (pathPatterns = tryParsePatterns(paths)); const matchedPattern = matchPatternOrExact(pathPatterns, moduleName); if (matchedPattern) { const matchedStar = isString(matchedPattern) ? void 0 : matchedText(matchedPattern, moduleName); @@ -46301,32 +45578,28 @@ function classicNameResolver(moduleName, containingFile, compilerOptions, host, return { value: resolvedUsingSettings }; } if (!isExternalModuleNameRelative(moduleName)) { - const resolved2 = forEachAncestorDirectoryStoppingAtGlobalCache( - state.host, - containingDirectory, - (directory) => { - const resolutionFromCache = tryFindNonRelativeModuleNameInCache( - cache, - moduleName, - /*mode*/ - void 0, - directory, - redirectedReference, - state - ); - if (resolutionFromCache) { - return resolutionFromCache; - } - const searchName = normalizePath(combinePaths(directory, moduleName)); - return toSearchResult(loadModuleFromFileNoPackageId( - extensions, - searchName, - /*onlyRecordFailures*/ - false, - state - )); + const resolved2 = forEachAncestorDirectory(containingDirectory, (directory) => { + const resolutionFromCache = tryFindNonRelativeModuleNameInCache( + cache, + moduleName, + /*mode*/ + void 0, + directory, + redirectedReference, + state + ); + if (resolutionFromCache) { + return resolutionFromCache; } - ); + const searchName = normalizePath(combinePaths(directory, moduleName)); + return toSearchResult(loadModuleFromFileNoPackageId( + extensions, + searchName, + /*onlyRecordFailures*/ + false, + state + )); + }); if (resolved2) return resolved2; if (extensions & (1 /* TypeScript */ | 4 /* Declaration */)) { let resolved3 = loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state); @@ -46369,7 +45642,7 @@ function resolveFromTypeRoot(moduleName, state) { } } function shouldAllowImportingTsExtension(compilerOptions, fromFileName) { - return getAllowImportingTsExtensions(compilerOptions) || !!fromFileName && isDeclarationFileName(fromFileName); + return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName); } function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) { const traceEnabled = isTraceEnabled(compilerOptions, host); @@ -46460,24 +45733,20 @@ function getModuleInstanceStateCached(node, visited = /* @__PURE__ */ new Map()) } function getModuleInstanceStateWorker(node, visited) { switch (node.kind) { - // 1. interface declarations, type alias declarations case 264 /* InterfaceDeclaration */: case 265 /* TypeAliasDeclaration */: return 0 /* NonInstantiated */; - // 2. const enum declarations case 266 /* EnumDeclaration */: if (isEnumConst(node)) { return 2 /* ConstEnumOnly */; } break; - // 3. non-exported import declarations case 272 /* ImportDeclaration */: case 271 /* ImportEqualsDeclaration */: if (!hasSyntacticModifier(node, 32 /* Export */)) { return 0 /* NonInstantiated */; } break; - // 4. Export alias declarations pointing at only uninstantiated modules or things uninstantiated modules contain case 278 /* ExportDeclaration */: const exportDeclaration = node; if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 279 /* NamedExports */) { @@ -46494,7 +45763,6 @@ function getModuleInstanceStateWorker(node, visited) { return state; } break; - // 5. other uninstantiated module declarations. case 268 /* ModuleBlock */: { let state = 0 /* NonInstantiated */; forEachChild(node, (n) => { @@ -46525,9 +45793,6 @@ function getModuleInstanceStateWorker(node, visited) { } function getModuleInstanceStateForAliasTarget(specifier, visited) { const name = specifier.propertyName || specifier.name; - if (name.kind !== 80 /* Identifier */) { - return 1 /* Instantiated */; - } let p = specifier.parent; while (p) { if (isBlock(p) || isModuleBlock(p) || isSourceFile(p)) { @@ -46580,8 +45845,11 @@ function createFlowNode(flags, node, antecedent) { } var binder = /* @__PURE__ */ createBinder(); function bindSourceFile(file, options) { + var _a, _b; mark("beforeBind"); + (_a = perfLogger) == null ? void 0 : _a.logStartBindFile("" + file.fileName); binder(file, options); + (_b = perfLogger) == null ? void 0 : _b.logStopBindFile(); mark("afterBind"); measure("Bind", "beforeBind", "afterBind"); } @@ -46607,13 +45875,12 @@ function createBinder() { var preSwitchCaseFlow; var activeLabelList; var hasExplicitReturn; - var inReturnPosition; var hasFlowEffects; var emitFlags; var inStrictMode; var inAssignmentPattern = false; var symbolCount = 0; - var Symbol48; + var Symbol47; var classifiableNames; var unreachableFlow = createFlowNode( 1 /* Unreachable */, @@ -46642,7 +45909,7 @@ function createBinder() { inStrictMode = bindInStrictMode(file, opts); classifiableNames = /* @__PURE__ */ new Set(); symbolCount = 0; - Symbol48 = objectAllocator.getSymbolConstructor(); + Symbol47 = objectAllocator.getSymbolConstructor(); Debug.attachFlowNodeDebugInfo(unreachableFlow); Debug.attachFlowNodeDebugInfo(reportedUnreachableFlow); if (!file.locals) { @@ -46680,7 +45947,6 @@ function createBinder() { currentExceptionTarget = void 0; activeLabelList = void 0; hasExplicitReturn = false; - inReturnPosition = false; hasFlowEffects = false; inAssignmentPattern = false; emitFlags = 0 /* None */; @@ -46694,7 +45960,7 @@ function createBinder() { } function createSymbol(flags, name) { symbolCount++; - return new Symbol48(flags, name); + return new Symbol47(flags, name); } function addDeclarationToSymbol(symbol, node, symbolFlags) { symbol.flags |= symbolFlags; @@ -46783,7 +46049,7 @@ function createBinder() { } function declareSymbol(symbolTable, parent3, node, includes, excludes, isReplaceableByMethod, isComputedName) { Debug.assert(isComputedName || !hasDynamicName(node)); - const isDefaultExport = hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) && moduleExportNameIsDefault(node.name); + const isDefaultExport = hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) && node.name.escapedText === "default"; const name = isComputedName ? "__computed" /* Computed */ : isDefaultExport && parent3 ? "default" /* Default */ : getDeclarationName(node); let symbol; if (name === void 0) { @@ -46917,8 +46183,6 @@ function createBinder() { const saveContainer = container; const saveThisParentContainer = thisParentContainer; const savedBlockScopeContainer = blockScopeContainer; - const savedInReturnPosition = inReturnPosition; - if (node.kind === 219 /* ArrowFunction */ && node.body.kind !== 241 /* Block */) inReturnPosition = true; if (containerFlags & 1 /* IsContainer */) { if (node.kind !== 219 /* ArrowFunction */) { thisParentContainer = container; @@ -46996,7 +46260,6 @@ function createBinder() { } else { bindChildren(node); } - inReturnPosition = savedInReturnPosition; container = saveContainer; thisParentContainer = saveThisParentContainer; blockScopeContainer = savedBlockScopeContainer; @@ -47018,9 +46281,6 @@ function createBinder() { const saveInAssignmentPattern = inAssignmentPattern; inAssignmentPattern = false; if (checkUnreachable(node)) { - if (canHaveFlowNode(node) && node.flowNode) { - node.flowNode = void 0; - } bindEachChild(node); bindJSDoc(node); inAssignmentPattern = saveInAssignmentPattern; @@ -47113,7 +46373,6 @@ function createBinder() { case 351 /* JSDocImportTag */: bindJSDocImportTag(node); break; - // In source files and blocks, bind functions first to match hoisting that occurs at runtime case 307 /* SourceFile */: { bindEachFunctionsFirst(node.statements); bind(node.endOfFileToken); @@ -47134,7 +46393,6 @@ function createBinder() { case 303 /* PropertyAssignment */: case 230 /* SpreadElement */: inAssignmentPattern = saveInAssignmentPattern; - // falls through default: bindEachChild(node); break; @@ -47156,7 +46414,6 @@ function createBinder() { if (isJSDocTypeAssertion(expr)) { return false; } - // fallthrough case 235 /* NonNullExpression */: return isNarrowingExpression(expr.expression); case 226 /* BinaryExpression */: @@ -47216,9 +46473,7 @@ function createBinder() { case 36 /* ExclamationEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: case 38 /* ExclamationEqualsEqualsToken */: - const left = skipParentheses(expr.left); - const right = skipParentheses(expr.right); - return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right)); + return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right)); case 104 /* InstanceOfKeyword */: return isNarrowableOperand(expr.left); case 103 /* InKeyword */: @@ -47410,16 +46665,13 @@ function createBinder() { function bindForStatement(node) { const preLoopLabel = setContinueTarget(node, createLoopLabel()); const preBodyLabel = createBranchLabel(); - const preIncrementorLabel = createBranchLabel(); const postLoopLabel = createBranchLabel(); bind(node.initializer); addAntecedent(preLoopLabel, currentFlow); currentFlow = preLoopLabel; bindCondition(node.condition, preBodyLabel, postLoopLabel); currentFlow = finishFlowLabel(preBodyLabel); - bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel); - addAntecedent(preIncrementorLabel, currentFlow); - currentFlow = finishFlowLabel(preIncrementorLabel); + bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel); bind(node.incrementor); addAntecedent(preLoopLabel, currentFlow); currentFlow = finishFlowLabel(postLoopLabel); @@ -47456,10 +46708,7 @@ function createBinder() { currentFlow = finishFlowLabel(postIfLabel); } function bindReturnOrThrow(node) { - const savedInReturnPosition = inReturnPosition; - inReturnPosition = true; bind(node.expression); - inReturnPosition = savedInReturnPosition; if (node.kind === 253 /* ReturnStatement */) { hasExplicitReturn = true; if (currentReturnTarget) { @@ -47820,16 +47069,10 @@ function createBinder() { hasFlowEffects = false; bindCondition(node.condition, trueLabel, falseLabel); currentFlow = finishFlowLabel(trueLabel); - if (inReturnPosition) { - node.flowNodeWhenTrue = currentFlow; - } bind(node.questionToken); bind(node.whenTrue); addAntecedent(postExpressionLabel, currentFlow); currentFlow = finishFlowLabel(falseLabel); - if (inReturnPosition) { - node.flowNodeWhenFalse = currentFlow; - } bind(node.colonToken); bind(node.whenFalse); addAntecedent(postExpressionLabel, currentFlow); @@ -47903,8 +47146,6 @@ function createBinder() { } function bindJSDocImportTag(node) { bind(node.tagName); - bind(node.moduleSpecifier); - bind(node.attributes); if (typeof node.comment !== "string") { bindEach(node.comment); } @@ -48002,10 +47243,6 @@ function createBinder() { } function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) { switch (container.kind) { - // Modules, source files, and classes need specialized handling for how their - // members are declared (for example, a member of a class will go into a specific - // symbol table depending on if it is static or not). We defer to specialized - // handlers to take care of declaring these child members. case 267 /* ModuleDeclaration */: return declareModuleMember(node, symbolFlags, symbolExcludes); case 307 /* SourceFile */: @@ -48147,7 +47384,6 @@ function createBinder() { declareModuleMember(node, symbolFlags, symbolExcludes); break; } - // falls through default: Debug.assertNode(blockScopeContainer, canHaveLocals); if (!blockScopeContainer.locals) { @@ -48468,7 +47704,6 @@ function createBinder() { } function bindWorker(node) { switch (node.kind) { - /* Strict mode checks */ case 80 /* Identifier */: if (node.flags & 4096 /* IdentifierIsInJSDocNamespace */) { let parentNode = node.parent; @@ -48478,7 +47713,6 @@ function createBinder() { bindBlockScopedDeclaration(parentNode, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */); break; } - // falls through case 110 /* ThisKeyword */: if (currentFlow && (isExpression(node) || parent2.kind === 304 /* ShorthandPropertyAssignment */)) { node.flowNode = currentFlow; @@ -48567,7 +47801,6 @@ function createBinder() { return; case 182 /* TypePredicate */: break; - // Binding the children will handle everything case 168 /* TypeParameter */: return bindTypeParameter(node); case 169 /* Parameter */: @@ -48632,7 +47865,6 @@ function createBinder() { return bindObjectDefinePrototypeProperty(node); case 0 /* None */: break; - // Nothing to do default: return Debug.fail("Unknown call expression assignment declaration kind"); } @@ -48640,7 +47872,6 @@ function createBinder() { bindCallExpression(node); } break; - // Members of classes, interfaces, and modules case 231 /* ClassExpression */: case 263 /* ClassDeclaration */: inStrictMode = true; @@ -48653,12 +47884,10 @@ function createBinder() { return bindEnumDeclaration(node); case 267 /* ModuleDeclaration */: return bindModuleDeclaration(node); - // Jsx-attributes case 292 /* JsxAttributes */: return bindJsxAttributes(node); case 291 /* JsxAttribute */: return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */); - // Imports and exports case 271 /* ImportEqualsDeclaration */: case 274 /* NamespaceImport */: case 276 /* ImportSpecifier */: @@ -48679,7 +47908,6 @@ function createBinder() { if (!isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) { return; } - // falls through case 268 /* ModuleBlock */: return updateStrictModeStatementList(node.statements); case 341 /* JSDocParameterTag */: @@ -48689,7 +47917,6 @@ function createBinder() { if (node.parent.kind !== 322 /* JSDocTypeLiteral */) { break; } - // falls through case 348 /* JSDocPropertyTag */: const propTag = node; const flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 316 /* JSDocOptionalType */ ? 4 /* Property */ | 16777216 /* Optional */ : 4 /* Property */; @@ -48902,7 +48129,6 @@ function createBinder() { declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */); } break; - // Namespaces are not allowed in javascript files, so do nothing here case 267 /* ModuleDeclaration */: break; default: @@ -49303,25 +48529,21 @@ function createBinder() { const reportError = ( // report error on all statements except empty ones isStatementButNotDeclaration(node) && node.kind !== 242 /* EmptyStatement */ || // report error on class declarations - node.kind === 263 /* ClassDeclaration */ || // report errors on enums with preserved emit - isEnumDeclarationWithPreservedEmit(node, options) || // report error on instantiated modules + node.kind === 263 /* ClassDeclaration */ || // report error on instantiated modules or const-enums only modules if preserveConstEnums is set node.kind === 267 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node) ); if (reportError) { currentFlow = reportedUnreachableFlow; if (!options.allowUnreachableCode) { const isError = unreachableCodeIsError(options) && !(node.flags & 33554432 /* Ambient */) && (!isVariableStatement(node) || !!(getCombinedNodeFlags(node.declarationList) & 7 /* BlockScoped */) || node.declarationList.declarations.some((d) => !!d.initializer)); - eachUnreachableRange(node, options, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); + eachUnreachableRange(node, (start, end) => errorOrSuggestionOnRange(isError, start, end, Diagnostics.Unreachable_code_detected)); } } } return true; } } -function isEnumDeclarationWithPreservedEmit(node, options) { - return node.kind === 266 /* EnumDeclaration */ && (!isEnumConst(node) || shouldPreserveConstEnums(options)); -} -function eachUnreachableRange(node, options, cb) { +function eachUnreachableRange(node, cb) { if (isStatement(node) && isExecutableStatement(node) && isBlock(node.parent)) { const { statements } = node.parent; const slice = sliceAfter(statements, node); @@ -49329,22 +48551,22 @@ function eachUnreachableRange(node, options, cb) { } else { cb(node, node); } - function isExecutableStatement(s) { - return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && // `var x;` may declare a variable used above - !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); - } - function isPurelyTypeDeclaration(s) { - switch (s.kind) { - case 264 /* InterfaceDeclaration */: - case 265 /* TypeAliasDeclaration */: - return true; - case 267 /* ModuleDeclaration */: - return getModuleInstanceState(s) !== 1 /* Instantiated */; - case 266 /* EnumDeclaration */: - return !isEnumDeclarationWithPreservedEmit(s, options); - default: - return false; - } +} +function isExecutableStatement(s) { + return !isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !isEnumDeclaration(s) && // `var x;` may declare a variable used above + !(isVariableStatement(s) && !(getCombinedNodeFlags(s) & 7 /* BlockScoped */) && s.declarationList.declarations.some((d) => !d.initializer)); +} +function isPurelyTypeDeclaration(s) { + switch (s.kind) { + case 264 /* InterfaceDeclaration */: + case 265 /* TypeAliasDeclaration */: + return true; + case 267 /* ModuleDeclaration */: + return getModuleInstanceState(s) !== 1 /* Instantiated */; + case 266 /* EnumDeclaration */: + return hasSyntacticModifier(s, 4096 /* Const */); + default: + return false; } } function isExportsOrModuleExportsOrAlias(sourceFile, node) { @@ -49399,7 +48621,6 @@ function getContainerFlags(node) { if (isObjectLiteralOrClassExpressionMethodOrAccessor(node)) { return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethodOrAccessor */; } - // falls through case 176 /* Constructor */: case 262 /* FunctionDeclaration */: case 173 /* MethodSignature */: @@ -49614,28 +48835,6 @@ __export(ts_moduleSpecifiers_exports, { }); // src/compiler/moduleSpecifiers.ts -var stringToRegex = memoizeOne((pattern) => { - try { - let slash = pattern.indexOf("/"); - if (slash !== 0) { - return new RegExp(pattern); - } - const lastSlash = pattern.lastIndexOf("/"); - if (slash === lastSlash) { - return new RegExp(pattern); - } - while ((slash = pattern.indexOf("/", slash + 1)) !== lastSlash) { - if (pattern[slash - 1] !== "\\") { - return new RegExp(pattern); - } - } - const flags = pattern.substring(lastSlash + 1).replace(/[^iu]/g, ""); - pattern = pattern.substring(1, lastSlash); - return new RegExp(pattern, flags); - } catch { - return void 0; - } -}); var RelativePreference = /* @__PURE__ */ ((RelativePreference2) => { RelativePreference2[RelativePreference2["Relative"] = 0] = "Relative"; RelativePreference2[RelativePreference2["NonRelative"] = 1] = "NonRelative"; @@ -49643,16 +48842,13 @@ var RelativePreference = /* @__PURE__ */ ((RelativePreference2) => { RelativePreference2[RelativePreference2["ExternalNonRelative"] = 3] = "ExternalNonRelative"; return RelativePreference2; })(RelativePreference || {}); -function getModuleSpecifierPreferences({ importModuleSpecifierPreference, importModuleSpecifierEnding, autoImportSpecifierExcludeRegexes }, host, compilerOptions, importingSourceFile, oldImportSpecifier) { +function getModuleSpecifierPreferences({ importModuleSpecifierPreference, importModuleSpecifierEnding }, compilerOptions, importingSourceFile, oldImportSpecifier) { const filePreferredEnding = getPreferredEnding(); return { - excludeRegexes: autoImportSpecifierExcludeRegexes, relativePreference: oldImportSpecifier !== void 0 ? isExternalModuleNameRelative(oldImportSpecifier) ? 0 /* Relative */ : 1 /* NonRelative */ : importModuleSpecifierPreference === "relative" ? 0 /* Relative */ : importModuleSpecifierPreference === "non-relative" ? 1 /* NonRelative */ : importModuleSpecifierPreference === "project-relative" ? 3 /* ExternalNonRelative */ : 2 /* Shortest */, getAllowedEndingsInPreferredOrder: (syntaxImpliedNodeFormat) => { - const impliedNodeFormat = getDefaultResolutionModeForFile(importingSourceFile, host, compilerOptions); - const preferredEnding = syntaxImpliedNodeFormat !== impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; - const moduleResolution = getEmitModuleResolutionKind(compilerOptions); - if ((syntaxImpliedNodeFormat ?? impliedNodeFormat) === 99 /* ESNext */ && 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) { + const preferredEnding = syntaxImpliedNodeFormat !== importingSourceFile.impliedNodeFormat ? getPreferredEnding(syntaxImpliedNodeFormat) : filePreferredEnding; + if ((syntaxImpliedNodeFormat ?? importingSourceFile.impliedNodeFormat) === 99 /* ESNext */) { if (shouldAllowImportingTsExtension(compilerOptions, importingSourceFile.fileName)) { return [3 /* TsExtension */, 2 /* JsExtension */]; } @@ -49683,19 +48879,19 @@ function getModuleSpecifierPreferences({ importModuleSpecifierPreference, import } return getModuleSpecifierEndingPreference( importModuleSpecifierEnding, - resolutionMode ?? getDefaultResolutionModeForFile(importingSourceFile, host, compilerOptions), + resolutionMode ?? importingSourceFile.impliedNodeFormat, compilerOptions, isFullSourceFile(importingSourceFile) ? importingSourceFile : void 0 ); } } function updateModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, oldImportSpecifier, options = {}) { - const res = getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getModuleSpecifierPreferences({}, host, compilerOptions, importingSourceFile, oldImportSpecifier), {}, options); + const res = getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getModuleSpecifierPreferences({}, compilerOptions, importingSourceFile, oldImportSpecifier), {}, options); if (res === oldImportSpecifier) return void 0; return res; } function getModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, options = {}) { - return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getModuleSpecifierPreferences({}, host, compilerOptions, importingSourceFile), {}, options); + return getModuleSpecifierWorker(compilerOptions, importingSourceFile, importingSourceFileName, toFileName2, host, getModuleSpecifierPreferences({}, compilerOptions, importingSourceFile), {}, options); } function getNodeModulesPackageName(compilerOptions, importingSourceFile, nodeModulesFileName, host, preferences, options = {}) { const info = getInfo(importingSourceFile.fileName, host); @@ -49725,7 +48921,7 @@ function getModuleSpecifierWorker(compilerOptions, importingSourceFile, importin /*packageNameOnly*/ void 0, options.overrideImportMode - )) || getLocalModuleSpecifier(toFileName2, info, compilerOptions, host, options.overrideImportMode || getDefaultResolutionModeForFile(importingSourceFile, host, compilerOptions), preferences); + )) || getLocalModuleSpecifier(toFileName2, info, compilerOptions, host, options.overrideImportMode || importingSourceFile.impliedNodeFormat, preferences); } function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences, options = {}) { const result = tryGetModuleSpecifiersFromCacheWorker( @@ -49763,13 +48959,7 @@ function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSo function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { let computedWithoutCache = false; const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker); - if (ambient) { - return { - kind: "ambient", - moduleSpecifiers: !(forAutoImport && isExcludedByRegex(ambient, userPreferences.autoImportSpecifierExcludeRegexes)) ? [ambient] : emptyArray, - computedWithoutCache - }; - } + if (ambient) return { kind: "ambient", moduleSpecifiers: [ambient], computedWithoutCache }; let [kind, specifiers, moduleSourceFile, modulePaths, cache] = tryGetModuleSpecifiersFromCacheWorker( moduleSymbol, importingSourceFile, @@ -49793,7 +48983,7 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, result.kind, modulePaths, result.moduleSpecifiers); return result; } -function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName, compilerOptions, host, preferences, options = {}) { +function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName, compilerOptions, host, options = {}) { const info = getInfo(importingFile.fileName, host); const importMode = options.overrideImportMode ?? importingFile.impliedNodeFormat; return getLocalModuleSpecifier( @@ -49802,21 +48992,17 @@ function getLocalModuleSpecifierBetweenFileNames(importingFile, targetFileName, compilerOptions, host, importMode, - getModuleSpecifierPreferences(preferences, host, compilerOptions, importingFile) + getModuleSpecifierPreferences({}, compilerOptions, importingFile) ); } function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) { const info = getInfo(importingSourceFile.fileName, host); - const preferences = getModuleSpecifierPreferences(userPreferences, host, compilerOptions, importingSourceFile); + const preferences = getModuleSpecifierPreferences(userPreferences, compilerOptions, importingSourceFile); const existingSpecifier = isFullSourceFile(importingSourceFile) && forEach(modulePaths, (modulePath) => forEach( host.getFileIncludeReasons().get(toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), (reason) => { if (reason.kind !== 3 /* Import */ || reason.file !== importingSourceFile.path) return void 0; - const existingMode = host.getModeForResolutionAtIndex(importingSourceFile, reason.index); - const targetMode = options.overrideImportMode ?? host.getDefaultResolutionModeForFile(importingSourceFile); - if (existingMode !== targetMode && existingMode !== void 0 && targetMode !== void 0) { - return void 0; - } + if (importingSourceFile.impliedNodeFormat && importingSourceFile.impliedNodeFormat !== getModeForResolutionAtIndex(importingSourceFile, reason.index, compilerOptions)) return void 0; const specifier = getModuleNameStringLiteralAt(importingSourceFile, reason.index).text; return preferences.relativePreference !== 1 /* NonRelative */ || !pathIsRelative(specifier) ? specifier : void 0; } @@ -49841,44 +49027,38 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi void 0, options.overrideImportMode ) : void 0; - if (specifier && !(forAutoImport && isExcludedByRegex(specifier, preferences.excludeRegexes))) { - nodeModulesSpecifiers = append(nodeModulesSpecifiers, specifier); - if (modulePath.isRedirect) { - return { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true }; - } - } - const local = getLocalModuleSpecifier( - modulePath.path, - info, - compilerOptions, - host, - options.overrideImportMode || importingSourceFile.impliedNodeFormat, - preferences, - /*pathsOnly*/ - modulePath.isRedirect || !!specifier - ); - if (!local || forAutoImport && isExcludedByRegex(local, preferences.excludeRegexes)) { - continue; + nodeModulesSpecifiers = append(nodeModulesSpecifiers, specifier); + if (specifier && modulePath.isRedirect) { + return { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true }; } - if (modulePath.isRedirect) { - redirectPathsSpecifiers = append(redirectPathsSpecifiers, local); - } else if (pathIsBareSpecifier(local)) { - if (pathContainsNodeModules(local)) { + if (!specifier) { + const local = getLocalModuleSpecifier( + modulePath.path, + info, + compilerOptions, + host, + options.overrideImportMode || importingSourceFile.impliedNodeFormat, + preferences, + /*pathsOnly*/ + modulePath.isRedirect + ); + if (!local) { + continue; + } + if (modulePath.isRedirect) { + redirectPathsSpecifiers = append(redirectPathsSpecifiers, local); + } else if (pathIsBareSpecifier(local)) { + if (pathContainsNodeModules(local)) { + relativeSpecifiers = append(relativeSpecifiers, local); + } else { + pathsSpecifiers = append(pathsSpecifiers, local); + } + } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) { relativeSpecifiers = append(relativeSpecifiers, local); - } else { - pathsSpecifiers = append(pathsSpecifiers, local); } - } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) { - relativeSpecifiers = append(relativeSpecifiers, local); } } - return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? { kind: "paths", moduleSpecifiers: pathsSpecifiers, computedWithoutCache: true } : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? { kind: "redirect", moduleSpecifiers: redirectPathsSpecifiers, computedWithoutCache: true } : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true } : { kind: "relative", moduleSpecifiers: relativeSpecifiers ?? emptyArray, computedWithoutCache: true }; -} -function isExcludedByRegex(moduleSpecifier, excludeRegexes) { - return some(excludeRegexes, (pattern) => { - var _a; - return !!((_a = stringToRegex(pattern)) == null ? void 0 : _a.test(moduleSpecifier)); - }); + return (pathsSpecifiers == null ? void 0 : pathsSpecifiers.length) ? { kind: "paths", moduleSpecifiers: pathsSpecifiers, computedWithoutCache: true } : (redirectPathsSpecifiers == null ? void 0 : redirectPathsSpecifiers.length) ? { kind: "redirect", moduleSpecifiers: redirectPathsSpecifiers, computedWithoutCache: true } : (nodeModulesSpecifiers == null ? void 0 : nodeModulesSpecifiers.length) ? { kind: "node_modules", moduleSpecifiers: nodeModulesSpecifiers, computedWithoutCache: true } : { kind: "relative", moduleSpecifiers: Debug.checkDefined(relativeSpecifiers), computedWithoutCache: true }; } function getInfo(importingSourceFileName, host) { importingSourceFileName = getNormalizedAbsolutePath(importingSourceFileName, host.getCurrentDirectory()); @@ -49891,7 +49071,7 @@ function getInfo(importingSourceFileName, host) { canonicalSourceDirectory: getCanonicalFileName(sourceDirectory) }; } -function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { getAllowedEndingsInPreferredOrder: getAllowedEndingsInPrefererredOrder, relativePreference, excludeRegexes }, pathsOnly) { +function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, importMode, { getAllowedEndingsInPreferredOrder: getAllowedEndingsInPrefererredOrder, relativePreference }, pathsOnly) { const { baseUrl, paths, rootDirs } = compilerOptions; if (pathsOnly && !paths) { return void 0; @@ -49907,15 +49087,8 @@ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, im if (!relativeToBaseUrl) { return pathsOnly ? void 0 : relativePath; } - const fromPackageJsonImports = pathsOnly ? void 0 : tryGetModuleNameFromPackageJsonImports( - moduleFileName, - sourceDirectory, - compilerOptions, - host, - importMode, - prefersTsExtension(allowedEndings) - ); - const fromPaths = pathsOnly || fromPackageJsonImports === void 0 ? paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, baseDirectory, getCanonicalFileName, host, compilerOptions) : void 0; + const fromPackageJsonImports = pathsOnly ? void 0 : tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, compilerOptions, host, importMode); + const fromPaths = pathsOnly || fromPackageJsonImports === void 0 ? paths && tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions) : void 0; if (pathsOnly) { return fromPaths; } @@ -49923,14 +49096,6 @@ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, im if (!maybeNonRelative) { return relativePath; } - const relativeIsExcluded = isExcludedByRegex(relativePath, excludeRegexes); - const nonRelativeIsExcluded = isExcludedByRegex(maybeNonRelative, excludeRegexes); - if (!relativeIsExcluded && nonRelativeIsExcluded) { - return relativePath; - } - if (relativeIsExcluded && !nonRelativeIsExcluded) { - return maybeNonRelative; - } if (relativePreference === 1 /* NonRelative */ && !pathIsRelative(maybeNonRelative)) { return maybeNonRelative; } @@ -49971,11 +49136,9 @@ function getNearestAncestorDirectoryWithPackageJson(host, fileName) { if (host.getNearestAncestorDirectoryWithPackageJson) { return host.getNearestAncestorDirectoryWithPackageJson(fileName); } - return forEachAncestorDirectoryStoppingAtGlobalCache( - host, - fileName, - (directory) => host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0 - ); + return forEachAncestorDirectory(fileName, (directory) => { + return host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0; + }); } function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) { var _a; @@ -49993,29 +49156,25 @@ function forEachFileNameOfModule(importingFileName, importedFileName, host, pref } const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath(); const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd); - const result = symlinkedDirectories && forEachAncestorDirectoryStoppingAtGlobalCache( - host, - getDirectoryPath(fullImportedFileName), - (realPathDirectory) => { - const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath(realPathDirectory, cwd, getCanonicalFileName))); - if (!symlinkDirectories) return void 0; - if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) { - return false; - } - return forEach(targets, (target) => { - if (!startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) { - return; - } - const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName); - for (const symlinkDirectory of symlinkDirectories) { - const option = resolvePath(symlinkDirectory, relative); - const result2 = cb(option, target === referenceRedirect); - shouldFilterIgnoredPaths = true; - if (result2) return result2; - } - }); + const result = symlinkedDirectories && forEachAncestorDirectory(getDirectoryPath(fullImportedFileName), (realPathDirectory) => { + const symlinkDirectories = symlinkedDirectories.get(ensureTrailingDirectorySeparator(toPath(realPathDirectory, cwd, getCanonicalFileName))); + if (!symlinkDirectories) return void 0; + if (startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) { + return false; } - ); + return forEach(targets, (target) => { + if (!startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) { + return; + } + const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName); + for (const symlinkDirectory of symlinkDirectories) { + const option = resolvePath(symlinkDirectory, relative); + const result2 = cb(option, target === referenceRedirect); + shouldFilterIgnoredPaths = true; + if (result2) return result2; + } + }); + }); return result || (preferSymlinks ? forEach(targets, (p) => shouldFilterIgnoredPaths && containsIgnoredPath(p) ? void 0 : cb(p, p === referenceRedirect)) : void 0); } function getAllModulePaths(info, importedFileName, host, preferences, compilerOptions, options = {}) { @@ -50051,7 +49210,7 @@ function getAllModulePathsWorker(info, importedFileName, host, compilerOptions, if (cache && links && host.readFile && !pathContainsNodeModules(info.importingSourceFileName)) { Debug.type(host); const state = getTemporaryModuleResolutionState(cache.getPackageJsonInfoCache(), host, {}); - const packageJson = getPackageScopeForPath(getDirectoryPath(info.importingSourceFileName), state); + const packageJson = getPackageScopeForPath(info.importingSourceFileName, state); if (packageJson) { const toResolve = getAllRuntimeDependencies(packageJson.contents.packageJsonContent); for (const depName of toResolve || emptyArray) { @@ -50144,11 +49303,10 @@ function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) { return ambientModuleDeclare.name.text; } } -function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, baseDirectory, getCanonicalFileName, host, compilerOptions) { +function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, host, compilerOptions) { for (const key in paths) { for (const patternText2 of paths[key]) { - const normalized = normalizePath(patternText2); - const pattern = getRelativePathIfInSameVolume(normalized, baseDirectory, getCanonicalFileName) ?? normalized; + const pattern = normalizePath(patternText2); const indexOfStar = pattern.indexOf("*"); const candidates = allowedEndings.map((ending) => ({ ending, @@ -50177,7 +49335,7 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, bas return ending !== 0 /* Minimal */ || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host); } } -function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions, mode, isImports, preferTsExtension) { +function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, exports2, conditions, mode, isImports) { if (typeof exports2 === "string") { const ignoreCase = !hostUsesCaseSensitiveFileNames(host); const getCommonSourceDirectory2 = () => host.getCommonSourceDirectory(); @@ -50189,7 +49347,6 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac void 0 ); const extensionSwappedTarget = hasTSFileExtension(targetFilePath) ? removeFileExtension(targetFilePath) + tryGetJSExtensionForFile(targetFilePath, options) : void 0; - const canTryTsExtension = preferTsExtension && hasImplementationTSFileExtension(targetFilePath); switch (mode) { case 0 /* Exact */: if (extensionSwappedTarget && comparePaths(extensionSwappedTarget, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || comparePaths(targetFilePath, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || outputFile && comparePaths(outputFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */ || declarationFile && comparePaths(declarationFile, pathOrPattern, ignoreCase) === 0 /* EqualTo */) { @@ -50197,19 +49354,6 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac } break; case 1 /* Directory */: - if (canTryTsExtension && containsPath(targetFilePath, pathOrPattern, ignoreCase)) { - const fragment = getRelativePathFromDirectory( - pathOrPattern, - targetFilePath, - /*ignoreCase*/ - false - ); - return { moduleFileToTry: getNormalizedAbsolutePath( - combinePaths(combinePaths(packageName, exports2), fragment), - /*currentDirectory*/ - void 0 - ) }; - } if (extensionSwappedTarget && containsPath(pathOrPattern, extensionSwappedTarget, ignoreCase)) { const fragment = getRelativePathFromDirectory( pathOrPattern, @@ -50223,7 +49367,7 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac void 0 ) }; } - if (!canTryTsExtension && containsPath(pathOrPattern, targetFilePath, ignoreCase)) { + if (containsPath(pathOrPattern, targetFilePath, ignoreCase)) { const fragment = getRelativePathFromDirectory( pathOrPattern, targetFilePath, @@ -50246,12 +49390,12 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac return { moduleFileToTry: combinePaths(packageName, fragment) }; } if (declarationFile && containsPath(pathOrPattern, declarationFile, ignoreCase)) { - const fragment = changeFullExtension(getRelativePathFromDirectory( + const fragment = getRelativePathFromDirectory( pathOrPattern, declarationFile, /*ignoreCase*/ false - ), getJSExtensionForFile(declarationFile, options)); + ); return { moduleFileToTry: combinePaths(packageName, fragment) }; } break; @@ -50259,15 +49403,11 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac const starPos = pathOrPattern.indexOf("*"); const leadingSlice = pathOrPattern.slice(0, starPos); const trailingSlice = pathOrPattern.slice(starPos + 1); - if (canTryTsExtension && startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { - const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length); - return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; - } if (extensionSwappedTarget && startsWith(extensionSwappedTarget, leadingSlice, ignoreCase) && endsWith(extensionSwappedTarget, trailingSlice, ignoreCase)) { const starReplacement = extensionSwappedTarget.slice(leadingSlice.length, extensionSwappedTarget.length - trailingSlice.length); return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; } - if (!canTryTsExtension && startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { + if (startsWith(targetFilePath, leadingSlice, ignoreCase) && endsWith(targetFilePath, trailingSlice, ignoreCase)) { const starReplacement = targetFilePath.slice(leadingSlice.length, targetFilePath.length - trailingSlice.length); return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; } @@ -50277,19 +49417,17 @@ function tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, pac } if (declarationFile && startsWith(declarationFile, leadingSlice, ignoreCase) && endsWith(declarationFile, trailingSlice, ignoreCase)) { const starReplacement = declarationFile.slice(leadingSlice.length, declarationFile.length - trailingSlice.length); - const substituted = replaceFirstStar(packageName, starReplacement); - const jsExtension = tryGetJSExtensionForFile(declarationFile, options); - return jsExtension ? { moduleFileToTry: changeFullExtension(substituted, jsExtension) } : void 0; + return { moduleFileToTry: replaceFirstStar(packageName, starReplacement) }; } break; } } else if (Array.isArray(exports2)) { - return forEach(exports2, (e) => tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, e, conditions, mode, isImports, preferTsExtension)); + return forEach(exports2, (e) => tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, e, conditions, mode, isImports)); } else if (typeof exports2 === "object" && exports2 !== null) { for (const key of getOwnKeys(exports2)) { if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) { const subTarget = exports2[key]; - const result = tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode, isImports, preferTsExtension); + const result = tryGetModuleNameFromExportsOrImports(options, host, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode, isImports); if (result) { return result; } @@ -50317,8 +49455,6 @@ function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirec conditions, mode, /*isImports*/ - false, - /*preferTsExtension*/ false ); }); @@ -50333,12 +49469,10 @@ function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirec conditions, 0 /* Exact */, /*isImports*/ - false, - /*preferTsExtension*/ false ); } -function tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, options, host, importMode, preferTsExtension) { +function tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, options, host, importMode) { var _a, _b, _c; if (!host.readFile || !getResolvePackageJsonImports(options)) { return void 0; @@ -50371,8 +49505,7 @@ function tryGetModuleNameFromPackageJsonImports(moduleFileName, sourceDirectory, conditions, mode, /*isImports*/ - true, - preferTsExtension + true ); })) == null ? void 0 : _c.moduleFileToTry; } @@ -50399,7 +49532,7 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileNa if (!parts) { return void 0; } - const preferences = getModuleSpecifierPreferences(userPreferences, host, options, importingSourceFile); + const preferences = getModuleSpecifierPreferences(userPreferences, options, importingSourceFile); const allowedEndings = preferences.getAllowedEndingsInPreferredOrder(); let moduleSpecifier = path; let isPackageRootPath = false; @@ -50449,20 +49582,12 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileNa const cachedPackageJson = (_b = (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host)) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath); if (isPackageJsonInfo(cachedPackageJson) || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) { const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || tryParseJson(host.readFile(packageJsonPath)); - const importMode = overrideMode || getDefaultResolutionModeForFile(importingSourceFile, host, options); + const importMode = overrideMode || importingSourceFile.impliedNodeFormat; if (getResolvePackageJsonExports(options)) { const nodeModulesDirectoryName2 = packageRootPath.substring(parts.topLevelPackageNameIndex + 1); const packageName2 = getPackageNameFromTypesPackageName(nodeModulesDirectoryName2); const conditions = getConditions(options, importMode); - const fromExports = (packageJsonContent == null ? void 0 : packageJsonContent.exports) ? tryGetModuleNameFromExports( - options, - host, - path, - packageRootPath, - packageName2, - packageJsonContent.exports, - conditions - ) : void 0; + const fromExports = (packageJsonContent == null ? void 0 : packageJsonContent.exports) ? tryGetModuleNameFromExports(options, host, path, packageRootPath, packageName2, packageJsonContent.exports, conditions) : void 0; if (fromExports) { return { ...fromExports, verbatimFromExports: true }; } @@ -50477,8 +49602,6 @@ function tryGetModuleNameAsNodeModule({ path, isRedirect }, { getCanonicalFileNa subModuleName, versionPaths.paths, allowedEndings, - packageRootPath, - getCanonicalFileName, host, options ); @@ -50609,13 +49732,6 @@ function getRelativePathIfInSameVolume(path, directoryPath, getCanonicalFileName function isPathRelativeToParent(path) { return startsWith(path, ".."); } -function getDefaultResolutionModeForFile(file, host, compilerOptions) { - return isFullSourceFile(file) ? host.getDefaultResolutionModeForFile(file) : getDefaultResolutionModeForFileWorker(file, compilerOptions); -} -function prefersTsExtension(allowedEndings) { - const tsPriority = allowedEndings.indexOf(3 /* TsExtension */); - return tsPriority > -1 && tsPriority < allowedEndings.indexOf(2 /* JsExtension */); -} // src/compiler/checker.ts var ambientModuleSymbolRegex = /^".+"$/; @@ -50772,9 +49888,9 @@ function createTypeChecker(host) { }; var cancellationToken; var scanner2; - var Symbol48 = objectAllocator.getSymbolConstructor(); + var Symbol47 = objectAllocator.getSymbolConstructor(); var Type29 = objectAllocator.getTypeConstructor(); - var Signature13 = objectAllocator.getSignatureConstructor(); + var Signature14 = objectAllocator.getSignatureConstructor(); var typeCount = 0; var symbolCount = 0; var totalInstantiationCount = 0; @@ -50797,16 +49913,24 @@ function createTypeChecker(host) { var strictFunctionTypes = getStrictOptionValue(compilerOptions, "strictFunctionTypes"); var strictBindCallApply = getStrictOptionValue(compilerOptions, "strictBindCallApply"); var strictPropertyInitialization = getStrictOptionValue(compilerOptions, "strictPropertyInitialization"); - var strictBuiltinIteratorReturn = getStrictOptionValue(compilerOptions, "strictBuiltinIteratorReturn"); var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny"); var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis"); var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables"); var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes; - var noUncheckedSideEffectImports = !!compilerOptions.noUncheckedSideEffectImports; var checkBinaryExpression = createCheckBinaryExpression(); var emitResolver = createResolver(); var nodeBuilder = createNodeBuilder(); - var syntacticNodeBuilder = createSyntacticTypeNodeBuilder(compilerOptions, nodeBuilder.syntacticBuilderResolver); + var syntacticNodeBuilder = createSyntacticTypeNodeBuilder(compilerOptions, { + isEntityNameVisible, + isExpandoFunctionDeclaration, + getAllAccessorDeclarations: getAllAccessorDeclarationsForDeclaration, + requiresAddingImplicitUndefined, + isUndefinedIdentifierExpression(node) { + Debug.assert(isExpressionNode(node)); + return getSymbolAtLocation(node) === undefinedSymbol; + }, + isDefinitelyReferenceToGlobalSymbolObject + }); var evaluate = createEvaluator({ evaluateElementAccessExpression, evaluateEntityNameExpression @@ -50907,7 +50031,6 @@ function createTypeChecker(host) { getBaseTypeOfLiteralType, getWidenedType, getWidenedLiteralType, - fillMissingTypeArguments, getTypeFromTypeNode: (nodeIn) => { const node = getParseTreeNode(nodeIn, isTypeNode); return node ? getTypeFromTypeNode(node) : errorType; @@ -50923,7 +50046,6 @@ function createTypeChecker(host) { getNonOptionalType: removeOptionalTypeMarker, getTypeArguments, typeToTypeNode: nodeBuilder.typeToTypeNode, - typePredicateToTypePredicateNode: nodeBuilder.typePredicateToTypePredicateNode, indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration, signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration, symbolToEntityName: nodeBuilder.symbolToEntityName, @@ -51089,6 +50211,13 @@ function createTypeChecker(host) { /*withAugmentations*/ true ), + tryFindAmbientModuleWithoutAugmentations: (moduleName) => { + return tryFindAmbientModule( + moduleName, + /*withAugmentations*/ + false + ); + }, getApparentType, getUnionType, isTypeAssignableTo, @@ -51102,8 +50231,6 @@ function createTypeChecker(host) { getNumberType: () => numberType, getNumberLiteralType, getBigIntType: () => bigintType, - getBigIntLiteralType, - getUnknownType: () => unknownType, createPromiseType, createArrayType, getElementTypeOfArrayType, @@ -51124,13 +50251,13 @@ function createTypeChecker(host) { /*reportErrors*/ false ), - getAnyAsyncIterableType: () => { + getAsyncIterableType: () => { const type = getGlobalAsyncIterableType( /*reportErrors*/ false ); if (type === emptyGenericType) return void 0; - return createTypeReference(type, [anyType, anyType, anyType]); + return type; }, isSymbolAccessible, isArrayType, @@ -51220,13 +50347,8 @@ function createTypeChecker(host) { getMemberOverrideModifierStatus, isTypeParameterPossiblyReferenced, typeHasCallOrConstructSignatures, - getSymbolFlags, - getTypeArgumentsForResolvedSignature + getSymbolFlags }; - function getTypeArgumentsForResolvedSignature(signature) { - if (signature.mapper === void 0) return void 0; - return instantiateTypes((signature.target || signature).typeParameters, signature.mapper); - } function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) { const candidatesSet = /* @__PURE__ */ new Set(); const candidates = []; @@ -51470,15 +50592,6 @@ function createTypeChecker(host) { emptyArray ); emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */; - var emptyFreshJsxObjectType = createAnonymousType( - /*symbol*/ - void 0, - emptySymbols, - emptyArray, - emptyArray, - emptyArray - ); - emptyFreshJsxObjectType.objectFlags |= 2048 /* JsxAttributes */ | 8192 /* FreshLiteral */ | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, "__type" /* Type */); emptyTypeLiteralSymbol.members = createSymbolTable(); var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, emptyArray, emptyArray, emptyArray); @@ -51603,12 +50716,6 @@ function createTypeChecker(host) { /*isReadonly*/ true ); - var anyBaseTypeIndexInfo = createIndexInfo( - stringType, - anyType, - /*isReadonly*/ - false - ); var iterationTypesCache = /* @__PURE__ */ new Map(); var noIterationTypes = { get yieldType() { @@ -51622,6 +50729,8 @@ function createTypeChecker(host) { } }; var anyIterationTypes = createIterationTypes(anyType, anyType, anyType); + var anyIterationTypesExceptNext = createIterationTypes(anyType, anyType, unknownType); + var defaultIterationTypes = createIterationTypes(neverType, anyType, undefinedType); var asyncIterationTypesResolver = { iterableCacheKey: "iterationTypesOfAsyncIterable", iteratorCacheKey: "iterationTypesOfAsyncIterator", @@ -51629,9 +50738,7 @@ function createTypeChecker(host) { getGlobalIteratorType: getGlobalAsyncIteratorType, getGlobalIterableType: getGlobalAsyncIterableType, getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType, - getGlobalIteratorObjectType: getGlobalAsyncIteratorObjectType, getGlobalGeneratorType: getGlobalAsyncGeneratorType, - getGlobalBuiltinIteratorTypes: getGlobalBuiltinAsyncIteratorTypes, resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member), mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method, mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method, @@ -51644,9 +50751,7 @@ function createTypeChecker(host) { getGlobalIteratorType, getGlobalIterableType, getGlobalIterableIteratorType, - getGlobalIteratorObjectType, getGlobalGeneratorType, - getGlobalBuiltinIteratorTypes, resolveIterationType: (type, _errorNode) => type, mustHaveANextMethodDiagnostic: Diagnostics.An_iterator_must_have_a_next_method, mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_iterator_must_be_a_method, @@ -51684,16 +50789,12 @@ function createTypeChecker(host) { var deferredGlobalIterableType; var deferredGlobalIteratorType; var deferredGlobalIterableIteratorType; - var deferredGlobalIteratorObjectType; var deferredGlobalGeneratorType; var deferredGlobalIteratorYieldResultType; var deferredGlobalIteratorReturnResultType; var deferredGlobalAsyncIterableType; var deferredGlobalAsyncIteratorType; var deferredGlobalAsyncIterableIteratorType; - var deferredGlobalBuiltinIteratorTypes; - var deferredGlobalBuiltinAsyncIteratorTypes; - var deferredGlobalAsyncIteratorObjectType; var deferredGlobalAsyncGeneratorType; var deferredGlobalTemplateStringsArrayType; var deferredGlobalImportMetaType; @@ -51729,7 +50830,6 @@ function createTypeChecker(host) { var contextualTypes = []; var contextualIsCache = []; var contextualTypeCount = 0; - var contextualBindingPatterns = []; var inferenceContextNodes = []; var inferenceContexts = []; var inferenceContextCount = 0; @@ -51963,7 +51063,7 @@ function createTypeChecker(host) { } function createSymbol(flags, name, checkFlags) { symbolCount++; - const symbol = new Symbol48(flags | 33554432 /* Transient */, name); + const symbol = new Symbol47(flags | 33554432 /* Transient */, name); symbol.links = new SymbolLinks(); symbol.links.checkFlags = checkFlags || 0 /* None */; return symbol; @@ -52047,7 +51147,7 @@ function createTypeChecker(host) { } if (source.exports) { if (!target.exports) target.exports = createSymbolTable(); - mergeSymbolTable(target.exports, source.exports, unidirectional, target); + mergeSymbolTable(target.exports, source.exports, unidirectional); } if (!unidirectional) { recordMergedSymbol(target, source); @@ -52127,14 +51227,10 @@ function createTypeChecker(host) { mergeSymbolTable(combined, second); return combined; } - function mergeSymbolTable(target, source, unidirectional = false, mergedParent) { + function mergeSymbolTable(target, source, unidirectional = false) { source.forEach((sourceSymbol, id) => { const targetSymbol = target.get(id); - const merged = targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol); - if (mergedParent && targetSymbol) { - merged.parent = mergedParent; - } - target.set(id, merged); + target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol)); }); } function mergeModuleAugmentation(moduleName) { @@ -52152,8 +51248,6 @@ function createTypeChecker(host) { moduleName, moduleName, moduleNotFoundError, - /*ignoreErrors*/ - false, /*isForAugmentation*/ true ); @@ -52572,7 +51666,6 @@ function createTypeChecker(host) { if (isEntityNameExpression(node.expression)) { return node.expression; } - // falls through default: return void 0; } @@ -52648,9 +51741,9 @@ function createTypeChecker(host) { const containerKind = grandparent.parent.kind; if (containerKind === 264 /* InterfaceDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) { error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name)); - } else if (isClassLike(grandparent.parent) && heritageKind === 96 /* ExtendsKeyword */) { + } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 96 /* ExtendsKeyword */) { error2(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name)); - } else if (isClassLike(grandparent.parent) && heritageKind === 119 /* ImplementsKeyword */) { + } else if (containerKind === 263 /* ClassDeclaration */ && heritageKind === 119 /* ImplementsKeyword */) { error2(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name)); } } else { @@ -52791,9 +51884,9 @@ function createTypeChecker(host) { } } function getDeclarationOfAliasSymbol(symbol) { - return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration); + return symbol.declarations && findLast(symbol.declarations, isAliasSymbolDeclaration2); } - function isAliasSymbolDeclaration(node) { + function isAliasSymbolDeclaration2(node) { return node.kind === 271 /* ImportEqualsDeclaration */ || node.kind === 270 /* NamespaceExportDeclaration */ || node.kind === 273 /* ImportClause */ && !!node.name || node.kind === 274 /* NamespaceImport */ || node.kind === 280 /* NamespaceExport */ || node.kind === 276 /* ImportSpecifier */ || node.kind === 281 /* ExportSpecifier */ || node.kind === 277 /* ExportAssignment */ && exportAssignmentIsAlias(node) || isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) || isAccessExpression(node) && isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 64 /* EqualsToken */ && isAliasableOrJsExpression(node.parent.right) || node.kind === 304 /* ShorthandPropertyAssignment */ || node.kind === 303 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer) || node.kind === 260 /* VariableDeclaration */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node) || node.kind === 208 /* BindingElement */ && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent); } function isAliasableOrJsExpression(e) { @@ -52837,7 +51930,7 @@ function createTypeChecker(host) { const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */; const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type; const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here; - const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : moduleExportNameTextUnescaped(typeOnlyDeclaration.name); + const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText); addRelatedInfo(error2(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name)); } } @@ -52862,37 +51955,22 @@ function createTypeChecker(host) { function isSyntacticDefault(node) { return isExportAssignment(node) && !node.isExportEquals || hasSyntacticModifier(node, 2048 /* Default */) || isExportSpecifier(node) || isNamespaceExport(node); } - function getEmitSyntaxForModuleSpecifierExpression(usage) { - return isStringLiteralLike(usage) ? host.getEmitSyntaxForUsageLocation(getSourceFileOfNode(usage), usage) : void 0; + function getUsageModeForExpression(usage) { + return isStringLiteralLike(usage) ? host.getModeForUsageLocation(getSourceFileOfNode(usage), usage) : void 0; } function isESMFormatImportImportingCommonjsFormatFile(usageMode, targetMode) { return usageMode === 99 /* ESNext */ && targetMode === 1 /* CommonJS */; } - function isOnlyImportableAsDefault(usage, resolvedModule) { - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - const usageMode = getEmitSyntaxForModuleSpecifierExpression(usage); - if (usageMode === 99 /* ESNext */) { - resolvedModule ?? (resolvedModule = resolveExternalModuleName( - usage, - usage, - /*ignoreErrors*/ - true - )); - const targetFile = resolvedModule && getSourceFileOfModule(resolvedModule); - return targetFile && (isJsonSourceFile(targetFile) || getDeclarationFileExtension(targetFile.fileName) === ".d.json.ts"); - } - } - return false; + function isOnlyImportedAsDefault(usage) { + const usageMode = getUsageModeForExpression(usage); + return usageMode === 99 /* ESNext */ && endsWith(usage.text, ".json" /* Json */); } function canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, usage) { - const usageMode = file && getEmitSyntaxForModuleSpecifierExpression(usage); - if (file && usageMode !== void 0) { - const targetMode = host.getImpliedNodeFormatForEmit(file); - if (usageMode === 99 /* ESNext */ && targetMode === 1 /* CommonJS */ && 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - return true; - } - if (usageMode === 99 /* ESNext */ && targetMode === 99 /* ESNext */) { - return false; + const usageMode = file && getUsageModeForExpression(usage); + if (file && usageMode !== void 0 && 100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { + const result = isESMFormatImportImportingCommonjsFormatFile(usageMode, file.impliedNodeFormat); + if (usageMode === 99 /* ESNext */ || result) { + return result; } } if (!allowSyntheticDefaultImports) { @@ -52951,7 +52029,7 @@ function createTypeChecker(host) { if (!specifier) { return exportDefaultSymbol; } - const hasDefaultOnly = isOnlyImportableAsDefault(specifier, moduleSymbol); + const hasDefaultOnly = isOnlyImportedAsDefault(specifier); const hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, specifier); if (!exportDefaultSymbol && !hasSyntheticDefault && !hasDefaultOnly) { if (hasExportAssignmentSymbol(moduleSymbol) && !allowSyntheticDefaultImports) { @@ -53090,12 +52168,12 @@ function createTypeChecker(host) { if (valueSymbol.exports) result.exports = new Map(valueSymbol.exports); return result; } - function getExportOfModule(symbol, nameText, specifier, dontResolveAlias) { + function getExportOfModule(symbol, name, specifier, dontResolveAlias) { var _a; if (symbol.flags & 1536 /* Module */) { - const exportSymbol = getExportsOfSymbol(symbol).get(nameText); + const exportSymbol = getExportsOfSymbol(symbol).get(name.escapedText); const resolved = resolveSymbol(exportSymbol, dontResolveAlias); - const exportStarDeclaration = (_a = getSymbolLinks(symbol).typeOnlyExportStarMap) == null ? void 0 : _a.get(nameText); + const exportStarDeclaration = (_a = getSymbolLinks(symbol).typeOnlyExportStarMap) == null ? void 0 : _a.get(name.escapedText); markSymbolOfAliasDeclarationIfTypeOnly( specifier, exportSymbol, @@ -53103,7 +52181,7 @@ function createTypeChecker(host) { /*overwriteEmpty*/ false, exportStarDeclaration, - nameText + name.escapedText ); return resolved; } @@ -53121,11 +52199,10 @@ function createTypeChecker(host) { const moduleSpecifier = getExternalModuleRequireArgument(node) || node.moduleSpecifier; const moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); const name = !isPropertyAccessExpression(specifier) && specifier.propertyName || specifier.name; - if (!isIdentifier(name) && name.kind !== 11 /* StringLiteral */) { + if (!isIdentifier(name)) { return void 0; } - const nameText = moduleExportNameTextEscaped(name); - const suppressInteropError = nameText === "default" /* Default */ && allowSyntheticDefaultImports; + const suppressInteropError = name.escapedText === "default" /* Default */ && allowSyntheticDefaultImports; const targetSymbol = resolveESModuleSymbol( moduleSymbol, moduleSpecifier, @@ -53134,7 +52211,7 @@ function createTypeChecker(host) { suppressInteropError ); if (targetSymbol) { - if (nameText || name.kind === 11 /* StringLiteral */) { + if (name.escapedText) { if (isShorthandAmbientModuleSymbol(moduleSymbol)) { return moduleSymbol; } @@ -53142,25 +52219,23 @@ function createTypeChecker(host) { if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports.get("export=" /* ExportEquals */)) { symbolFromVariable = getPropertyOfType( getTypeOfSymbol(targetSymbol), - nameText, + name.escapedText, /*skipObjectFunctionPropertyAugment*/ true ); } else { - symbolFromVariable = getPropertyOfVariable(targetSymbol, nameText); + symbolFromVariable = getPropertyOfVariable(targetSymbol, name.escapedText); } symbolFromVariable = resolveSymbol(symbolFromVariable, dontResolveAlias); - let symbolFromModule = getExportOfModule(targetSymbol, nameText, specifier, dontResolveAlias); - if (symbolFromModule === void 0 && nameText === "default" /* Default */) { + let symbolFromModule = getExportOfModule(targetSymbol, name, specifier, dontResolveAlias); + if (symbolFromModule === void 0 && name.escapedText === "default" /* Default */) { const file = (_a = moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - if (isOnlyImportableAsDefault(moduleSpecifier, moduleSymbol) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { + if (isOnlyImportedAsDefault(moduleSpecifier) || canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias, moduleSpecifier)) { symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias); } } const symbol = symbolFromModule && symbolFromVariable && symbolFromModule !== symbolFromVariable ? combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) : symbolFromModule || symbolFromVariable; - if (isImportOrExportSpecifier(specifier) && isOnlyImportableAsDefault(moduleSpecifier, moduleSymbol) && nameText !== "default" /* Default */) { - error2(name, Diagnostics.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0, ModuleKind[moduleKind]); - } else if (!symbol) { + if (!symbol) { errorNoModuleMemberSymbol(moduleSymbol, targetSymbol, node, name); } return symbol; @@ -53171,7 +52246,7 @@ function createTypeChecker(host) { var _a; const moduleName = getFullyQualifiedName(moduleSymbol, node); const declarationName = declarationNameToString(name); - const suggestion = isIdentifier(name) ? getSuggestedSymbolForNonexistentModule(name, targetSymbol) : void 0; + const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol); if (suggestion !== void 0) { const suggestionName = symbolToString(suggestion); const diagnostic = error2(name, Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName); @@ -53193,7 +52268,7 @@ function createTypeChecker(host) { } function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) { var _a, _b; - const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(moduleExportNameTextEscaped(name)); + const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name.escapedText); const exports2 = moduleSymbol.exports; if (localSymbol) { const exportedEqualsSymbol = exports2 == null ? void 0 : exports2.get("export=" /* ExportEquals */); @@ -53225,7 +52300,7 @@ function createTypeChecker(host) { } } function getTargetOfImportSpecifier(node, dontResolveAlias) { - if (isImportSpecifier(node) && moduleExportNameIsDefault(node.propertyName || node.name)) { + if (isImportSpecifier(node) && idText(node.propertyName || node.name) === "default" /* Default */) { const specifier = getModuleSpecifierForImportOrExport(node); const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); if (moduleSymbol) { @@ -53269,23 +52344,19 @@ function createTypeChecker(host) { } } function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) { - const name = node.propertyName || node.name; - if (moduleExportNameIsDefault(name)) { + if (idText(node.propertyName || node.name) === "default" /* Default */) { const specifier = getModuleSpecifierForImportOrExport(node); const moduleSymbol = specifier && resolveExternalModuleName(node, specifier); if (moduleSymbol) { return getTargetofModuleDefault(moduleSymbol, node, !!dontResolveAlias); } } - const resolved = node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node, dontResolveAlias) : name.kind === 11 /* StringLiteral */ ? void 0 : ( - // Skip for invalid syntax like this: export { "x" } - resolveEntityName( - name, - meaning, - /*ignoreErrors*/ - false, - dontResolveAlias - ) + const resolved = node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node, dontResolveAlias) : resolveEntityName( + node.propertyName || node.name, + meaning, + /*ignoreErrors*/ + false, + dontResolveAlias ); markSymbolOfAliasDeclarationIfTypeOnly( node, @@ -53733,14 +52804,14 @@ function createTypeChecker(host) { function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) { const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; - return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors); + return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage); } - function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) { - return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : void 0, isForAugmentation) : void 0; + function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation = false) { + return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0; } function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) { var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; - if (errorNode && startsWith(moduleReference, "@types/")) { + if (startsWith(moduleReference, "@types/")) { const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1; const withoutAtTypePrefix = removePrefix(moduleReference, "@types/"); error2(errorNode, diag2, withoutAtTypePrefix, moduleReference); @@ -53754,23 +52825,23 @@ function createTypeChecker(host) { return ambientModule; } const currentSourceFile = getSourceFileOfNode(location); - const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall( + const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isInJSFile(location) && isJSDocImportTag(location) ? location.moduleSpecifier : void 0) || (isVariableDeclaration(location) && location.initializer && isRequireCall( location.initializer, /*requireStringLiteralLikeArgument*/ true - ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression); - const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile); + ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, isImportDeclaration)) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression) || ((_f = findAncestor(location, isExportDeclaration)) == null ? void 0 : _f.moduleSpecifier); + const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat; const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); - const resolvedModule = (_f = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _f.resolvedModule; - const resolutionDiagnostic = errorNode && resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); + const resolvedModule = (_g = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _g.resolvedModule; + const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); if (sourceFile) { if (resolutionDiagnostic) { error2(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName); } if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) { - const importOrExport = ((_g = findAncestor(location, isImportDeclaration)) == null ? void 0 : _g.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); - if (errorNode && importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { + const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) { error2( errorNode, Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead, @@ -53778,44 +52849,14 @@ function createTypeChecker(host) { ); } } else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) { - const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); - if (errorNode && !((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { + const importOrExport = ((_i = findAncestor(location, isImportDeclaration)) == null ? void 0 : _i.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration)); + if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) { const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference)); error2(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension); } - } else if (compilerOptions.rewriteRelativeImportExtensions && !(location.flags & 33554432 /* Ambient */) && !isDeclarationFileName(moduleReference) && !isLiteralImportTypeNode(location) && !isPartOfTypeOnlyImportOrExportDeclaration(location)) { - const shouldRewrite = shouldRewriteModuleSpecifier(moduleReference, compilerOptions); - if (!resolvedModule.resolvedUsingTsExtension && shouldRewrite) { - error2( - errorNode, - Diagnostics.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0, - getRelativePathFromFile(getNormalizedAbsolutePath(currentSourceFile.fileName, host.getCurrentDirectory()), resolvedModule.resolvedFileName, hostGetCanonicalFileName(host)) - ); - } else if (resolvedModule.resolvedUsingTsExtension && !shouldRewrite && sourceFileMayBeEmitted(sourceFile, host)) { - error2( - errorNode, - Diagnostics.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, - getAnyExtensionFromPath(moduleReference) - ); - } else if (resolvedModule.resolvedUsingTsExtension && shouldRewrite) { - const redirect = host.getResolvedProjectReferenceToRedirect(sourceFile.path); - if (redirect) { - const ignoreCase = !host.useCaseSensitiveFileNames(); - const ownRootDir = host.getCommonSourceDirectory(); - const otherRootDir = getCommonSourceDirectoryOfConfig(redirect.commandLine, ignoreCase); - const rootDirPath = getRelativePathFromDirectory(ownRootDir, otherRootDir, ignoreCase); - const outDirPath = getRelativePathFromDirectory(compilerOptions.outDir || ownRootDir, redirect.commandLine.options.outDir || otherRootDir, ignoreCase); - if (rootDirPath !== outDirPath) { - error2( - errorNode, - Diagnostics.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 - ); - } - } - } } if (sourceFile.symbol) { - if (errorNode && resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { + if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) { errorOnImplicitAnyModule( /*isError*/ false, @@ -53826,7 +52867,7 @@ function createTypeChecker(host) { moduleReference ); } - if (errorNode && (moduleKind === 100 /* Node16 */ || moduleKind === 101 /* Node18 */)) { + if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) { const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration); const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l)); if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) { @@ -53836,20 +52877,57 @@ function createTypeChecker(host) { let diagnosticDetails; const ext = tryGetExtensionFromPath2(currentSourceFile.fileName); if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) { - diagnosticDetails = createModeMismatchDetails(currentSourceFile); + const scope = currentSourceFile.packageJsonScope; + const targetExt = ext === ".ts" /* Ts */ ? ".mts" /* Mts */ : ext === ".js" /* Js */ ? ".mjs" /* Mjs */ : void 0; + if (scope && !scope.contents.packageJsonContent.type) { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1, + targetExt, + combinePaths(scope.packageDirectory, "package.json") + ); + } else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0, + combinePaths(scope.packageDirectory, "package.json") + ); + } + } else { + if (targetExt) { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.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, + targetExt + ); + } else { + diagnosticDetails = chainDiagnosticMessages( + /*details*/ + void 0, + Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module + ); + } + } } - const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_i = overrideHost.importClause) == null ? void 0 : _i.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.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; diagnostics.add(createDiagnosticForNodeFromMessageChain( getSourceFileOfNode(errorNode), errorNode, - chainDiagnosticMessages(diagnosticDetails, message, moduleReference) + chainDiagnosticMessages( + diagnosticDetails, + Diagnostics.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, + moduleReference + ) )); } } } return getMergedSymbol(sourceFile.symbol); } - if (errorNode && moduleNotFoundError && !isSideEffectImport(errorNode)) { + if (moduleNotFoundError) { error2(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName); } return void 0; @@ -53864,9 +52942,6 @@ function createTypeChecker(host) { return getMergedSymbol(pattern.symbol); } } - if (!errorNode) { - return void 0; - } if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) { if (isForAugmentation) { const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented; @@ -53934,9 +53009,6 @@ function createTypeChecker(host) { } } function errorOnImplicitAnyModule(isError, errorNode, sourceFile, mode, { packageId, resolvedFileName }, moduleReference) { - if (isSideEffectImport(errorNode)) { - return; - } let errorInfo; if (!isExternalModuleNameRelative(moduleReference) && packageId) { errorInfo = createModuleNotFoundChain(sourceFile, host, moduleReference, mode, packageId.name); @@ -54002,7 +53074,7 @@ function createTypeChecker(host) { return cloneTypeAsModuleType(symbol, defaultOnlyType, referenceParent); } const targetFile = (_a = moduleSymbol == null ? void 0 : moduleSymbol.declarations) == null ? void 0 : _a.find(isSourceFile); - const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getEmitSyntaxForModuleSpecifierExpression(reference), host.getImpliedNodeFormatForEmit(targetFile)); + const isEsmCjsRef = targetFile && isESMFormatImportImportingCommonjsFormatFile(getUsageModeForExpression(reference), targetFile.impliedNodeFormat); if (getESModuleInterop(compilerOptions) || isEsmCjsRef) { let sigs = getSignaturesOfStructuredType(type, 0 /* Call */); if (!sigs || !sigs.length) { @@ -54469,7 +53541,6 @@ function createTypeChecker(host) { if (!isExternalOrCommonJsModule(location)) { break; } - // falls through case 267 /* ModuleDeclaration */: const sym = getSymbolOfDeclaration(location); if (result = callback( @@ -54523,7 +53594,7 @@ function createTypeChecker(host) { const links = getSymbolLinks(symbol); const cache = links.accessibleChainCache || (links.accessibleChainCache = /* @__PURE__ */ new Map()); const firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, (_, __, ___, node) => node); - const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation ? getNodeId(firstRelevantLocation) : 0}|${meaning}`; + const key = `${useOnlyExternalAliasing ? 0 : 1}|${firstRelevantLocation && getNodeId(firstRelevantLocation)}|${meaning}`; if (cache.has(key)) { return cache.get(key); } @@ -54866,7 +53937,6 @@ function createTypeChecker(host) { } function symbolToString(symbol, enclosingDeclaration, meaning, flags = 4 /* AllowAnyNodeKind */, writer) { let nodeFlags = 70221824 /* IgnoreErrors */; - let internalNodeFlags = 0 /* None */; if (flags & 2 /* UseOnlyExternalAliasing */) { nodeFlags |= 128 /* UseOnlyExternalAliasing */; } @@ -54877,15 +53947,15 @@ function createTypeChecker(host) { nodeFlags |= 16384 /* UseAliasDefinedOutsideCurrentScope */; } if (flags & 32 /* DoNotIncludeSymbolChain */) { - internalNodeFlags |= 4 /* DoNotIncludeSymbolChain */; + nodeFlags |= 134217728 /* DoNotIncludeSymbolChain */; } if (flags & 16 /* WriteComputedProps */) { - internalNodeFlags |= 1 /* WriteComputedProps */; + nodeFlags |= 1073741824 /* WriteComputedProps */; } const builder = flags & 4 /* AllowAnyNodeKind */ ? nodeBuilder.symbolToNode : nodeBuilder.symbolToEntityName; return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker); function symbolToStringWorker(writer2) { - const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags, internalNodeFlags); + const entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); const printer = (enclosingDeclaration == null ? void 0 : enclosingDeclaration.kind) === 307 /* SourceFile */ ? createPrinterWithRemoveCommentsNeverAsciiEscape() : createPrinterWithRemoveComments(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); printer.writeNode( @@ -54922,13 +53992,7 @@ function createTypeChecker(host) { } function typeToString(type, enclosingDeclaration, flags = 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */, writer = createTextWriter("")) { const noTruncation = compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */; - const typeNode = nodeBuilder.typeToTypeNode( - type, - enclosingDeclaration, - toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | (noTruncation ? 1 /* NoTruncation */ : 0 /* None */), - /*internalFlags*/ - void 0 - ); + const typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | (noTruncation ? 1 /* NoTruncation */ : 0)); if (typeNode === void 0) return Debug.fail("should always get typenode"); const printer = type !== unresolvedType ? createPrinterWithRemoveComments() : createPrinterWithDefaults(); const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration); @@ -54976,213 +54040,32 @@ function createTypeChecker(host) { return getTypeFromTypeNode(node); } function createNodeBuilder() { - const syntacticBuilderResolver = { - evaluateEntityNameExpression, - isExpandoFunctionDeclaration, - hasLateBindableName, - shouldRemoveDeclaration(context, node) { - return !(context.internalFlags & 8 /* AllowUnresolvedNames */ && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1 /* Any */); - }, - createRecoveryBoundary(context) { - return createRecoveryBoundary(context); - }, - isDefinitelyReferenceToGlobalSymbolObject, - getAllAccessorDeclarations: getAllAccessorDeclarationsForDeclaration, - requiresAddingImplicitUndefined(declaration, symbol, enclosingDeclaration) { - var _a; - switch (declaration.kind) { - case 172 /* PropertyDeclaration */: - case 171 /* PropertySignature */: - case 348 /* JSDocPropertyTag */: - symbol ?? (symbol = getSymbolOfDeclaration(declaration)); - const type = getTypeOfSymbol(symbol); - return !!(symbol.flags & 4 /* Property */ && symbol.flags & 16777216 /* Optional */ && isOptionalDeclaration(declaration) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type)); - case 169 /* Parameter */: - case 341 /* JSDocParameterTag */: - return requiresAddingImplicitUndefined(declaration, enclosingDeclaration); - default: - Debug.assertNever(declaration); - } - }, - isOptionalParameter, - isUndefinedIdentifierExpression(node) { - Debug.assert(isExpressionNode(node)); - return getSymbolAtLocation(node) === undefinedSymbol; - }, - isEntityNameVisible(context, entityName, shouldComputeAliasToMakeVisible) { - return isEntityNameVisible(entityName, context.enclosingDeclaration, shouldComputeAliasToMakeVisible); - }, - serializeExistingTypeNode(context, typeNode, addUndefined) { - return serializeExistingTypeNode(context, typeNode, !!addUndefined); - }, - serializeReturnTypeForSignature(syntacticContext, signatureDeclaration, symbol) { - const context = syntacticContext; - const signature = getSignatureFromDeclaration(signatureDeclaration); - symbol ?? (symbol = getSymbolOfDeclaration(signatureDeclaration)); - const returnType = context.enclosingSymbolTypes.get(getSymbolId(symbol)) ?? instantiateType(getReturnTypeOfSignature(signature), context.mapper); - return serializeInferredReturnTypeForSignature(context, signature, returnType); - }, - serializeTypeOfExpression(syntacticContext, expr) { - const context = syntacticContext; - const type = instantiateType(getWidenedType(getRegularTypeOfExpression(expr)), context.mapper); - return typeToTypeNodeHelper(type, context); - }, - serializeTypeOfDeclaration(syntacticContext, declaration, symbol) { - var _a; - const context = syntacticContext; - symbol ?? (symbol = getSymbolOfDeclaration(declaration)); - let type = (_a = context.enclosingSymbolTypes) == null ? void 0 : _a.get(getSymbolId(symbol)); - if (type === void 0) { - type = symbol.flags & 98304 /* Accessor */ && declaration.kind === 178 /* SetAccessor */ ? instantiateType(getWriteTypeOfSymbol(symbol), context.mapper) : symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType; - } - const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration); - if (addUndefinedForParameter) { - type = getOptionalType(type); - } - return serializeInferredTypeForDeclaration(symbol, context, type); - }, - serializeNameOfParameter(context, parameter) { - return parameterToParameterDeclarationName(getSymbolOfDeclaration(parameter), parameter, context); - }, - serializeEntityName(syntacticContext, node) { - const context = syntacticContext; - const symbol = getSymbolAtLocation( - node, - /*ignoreErrors*/ - true - ); - if (!symbol) return void 0; - if (!isValueSymbolAccessible(symbol, context.enclosingDeclaration)) return void 0; - return symbolToExpression(symbol, context, 111551 /* Value */ | 1048576 /* ExportValue */); - }, - serializeTypeName(context, node, isTypeOf, typeArguments) { - return serializeTypeName(context, node, isTypeOf, typeArguments); - }, - getJsDocPropertyOverride(syntacticContext, jsDocTypeLiteral, jsDocProperty) { - const context = syntacticContext; - const name = isIdentifier(jsDocProperty.name) ? jsDocProperty.name : jsDocProperty.name.right; - const typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode2(context, jsDocTypeLiteral), name.escapedText); - const overrideTypeNode = typeViaParent && jsDocProperty.typeExpression && getTypeFromTypeNode2(context, jsDocProperty.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : void 0; - return overrideTypeNode; - }, - enterNewScope(context, node) { - if (isFunctionLike(node) || isJSDocSignature(node)) { - const signature = getSignatureFromDeclaration(node); - return enterNewScope(context, node, signature.parameters, signature.typeParameters); - } else { - const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))]; - return enterNewScope( - context, - node, - /*expandedParams*/ - void 0, - typeParameters - ); - } - }, - markNodeReuse(context, range, location) { - return setTextRange2(context, range, location); - }, - trackExistingEntityName(context, node) { - return trackExistingEntityName(node, context); - }, - trackComputedName(context, accessExpression) { - trackComputedName(accessExpression, context.enclosingDeclaration, context); - }, - getModuleSpecifierOverride(syntacticContext, parent2, lit) { - const context = syntacticContext; - if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) { - let name = lit.text; - const originalName = name; - const nodeSymbol = getNodeLinks(parent2).resolvedSymbol; - const meaning = parent2.isTypeOf ? 111551 /* Value */ : 788968 /* Type */; - const parentSymbol = nodeSymbol && isSymbolAccessible( - nodeSymbol, - context.enclosingDeclaration, - meaning, - /*shouldComputeAliasesToMakeVisible*/ - false - ).accessibility === 0 /* Accessible */ && lookupSymbolChain( - nodeSymbol, - context, - meaning, - /*yieldModuleSymbol*/ - true - )[0]; - if (parentSymbol && isExternalModuleSymbol(parentSymbol)) { - name = getSpecifierForModuleSymbol(parentSymbol, context); - } else { - const targetFile = getExternalModuleFileFromDeclaration(parent2); - if (targetFile) { - name = getSpecifierForModuleSymbol(targetFile.symbol, context); - } - } - if (name.includes("/node_modules/")) { - context.encounteredError = true; - if (context.tracker.reportLikelyUnsafeImportRequiredError) { - context.tracker.reportLikelyUnsafeImportRequiredError(name); - } - } - if (name !== originalName) { - return name; - } - } - }, - canReuseTypeNode(context, typeNode) { - return canReuseTypeNode(context, typeNode); - }, - canReuseTypeNodeAnnotation(syntacticContext, node, existing, symbol, requiresAddingUndefined) { - var _a; - const context = syntacticContext; - if (context.enclosingDeclaration === void 0) return false; - symbol ?? (symbol = getSymbolOfDeclaration(node)); - let type = (_a = context.enclosingSymbolTypes) == null ? void 0 : _a.get(getSymbolId(symbol)); - if (type === void 0) { - if (symbol.flags & 98304 /* Accessor */) { - type = node.kind === 178 /* SetAccessor */ ? getWriteTypeOfSymbol(symbol) : getTypeOfAccessors(symbol); - } else if (isValueSignatureDeclaration(node)) { - type = getReturnTypeOfSignature(getSignatureFromDeclaration(node)); - } else { - type = getTypeOfSymbol(symbol); - } - } - let annotationType = getTypeFromTypeNodeWithoutContext(existing); - if (isErrorType(annotationType)) { - return true; - } - if (requiresAddingUndefined && annotationType) { - annotationType = addOptionality(annotationType, !isParameter(node)); - } - return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type); - } - }; return { - syntacticBuilderResolver, - typeToTypeNode: (type, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeToTypeNodeHelper(type, context)), - typePredicateToTypePredicateNode: (typePredicate, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => typePredicateToTypePredicateNodeHelper(typePredicate, context)), - serializeTypeForExpression: (expr, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeTypeOfExpression(expr, context)), - serializeTypeForDeclaration: (declaration, symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeTypeOfDeclaration(declaration, symbol, context)), - serializeReturnTypeForSignature: (signature, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => syntacticNodeBuilder.serializeReturnTypeForSignature(signature, getSymbolOfDeclaration(signature), context)), - indexInfoToIndexSignatureDeclaration: (indexInfo, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => indexInfoToIndexSignatureDeclarationHelper( + typeToTypeNode: (type, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => typeToTypeNodeHelper(type, context)), + typePredicateToTypePredicateNode: (typePredicate, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => typePredicateToTypePredicateNodeHelper(typePredicate, context)), + expressionOrTypeToTypeNode: (expr, type, addUndefined, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => expressionOrTypeToTypeNode(context, expr, type, addUndefined)), + serializeTypeForDeclaration: (declaration, type, symbol, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => serializeTypeForDeclaration(context, declaration, type, symbol)), + serializeReturnTypeForSignature: (signature, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => serializeReturnTypeForSignature(context, signature)), + indexInfoToIndexSignatureDeclaration: (indexInfo, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => indexInfoToIndexSignatureDeclarationHelper( indexInfo, context, /*typeNode*/ void 0 )), - signatureToSignatureDeclaration: (signature, kind, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => signatureToSignatureDeclarationHelper(signature, kind, context)), - symbolToEntityName: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToName( + signatureToSignatureDeclaration: (signature, kind, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => signatureToSignatureDeclarationHelper(signature, kind, context)), + symbolToEntityName: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => symbolToName( symbol, context, meaning, /*expectsIdentifier*/ false )), - symbolToExpression: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToExpression(symbol, context, meaning)), - symbolToTypeParameterDeclarations: (symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeParametersToTypeParameterDeclarations(symbol, context)), - symbolToParameterDeclaration: (symbol, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToParameterDeclaration(symbol, context)), - typeParameterToDeclaration: (parameter, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => typeParameterToDeclaration(parameter, context)), - symbolTableToDeclarationStatements: (symbolTable, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolTableToDeclarationStatements(symbolTable, context)), - symbolToNode: (symbol, meaning, enclosingDeclaration, flags, internalFlags, tracker) => withContext2(enclosingDeclaration, flags, internalFlags, tracker, (context) => symbolToNode(symbol, context, meaning)) + symbolToExpression: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => symbolToExpression(symbol, context, meaning)), + symbolToTypeParameterDeclarations: (symbol, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => typeParametersToTypeParameterDeclarations(symbol, context)), + symbolToParameterDeclaration: (symbol, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => symbolToParameterDeclaration(symbol, context)), + typeParameterToDeclaration: (parameter, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => typeParameterToDeclaration(parameter, context)), + symbolTableToDeclarationStatements: (symbolTable, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => symbolTableToDeclarationStatements(symbolTable, context)), + symbolToNode: (symbol, meaning, enclosingDeclaration, flags, tracker) => withContext2(enclosingDeclaration, flags, tracker, (context) => symbolToNode(symbol, context, meaning)) }; function getTypeFromTypeNode2(context, node, noMappedTypes) { const type = getTypeFromTypeNodeWithoutContext(node); @@ -55198,20 +54081,72 @@ function createTypeChecker(host) { if (!location) { return range; } - let original = range.original; - while (original && original !== location) { - original = original.original; + if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) { + return setOriginalNode(range, location); } - if (!original) { - setOriginalNode(range, location); + return setTextRange(setOriginalNode(range, location), location); + } + function expressionOrTypeToTypeNode(context, expr, type, addUndefined) { + const oldFlags = context.flags; + if (expr && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeTypeOfExpression(expr, context, addUndefined); } - if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(getOriginalNode(location))) { - return setTextRange(range, location); + context.flags |= -2147483648 /* NoSyntacticPrinter */; + const result = expressionOrTypeToTypeNodeHelper(context, expr, type, addUndefined); + context.flags = oldFlags; + return result; + } + function expressionOrTypeToTypeNodeHelper(context, expr, type, addUndefined) { + if (expr) { + const typeNode = isAssertionExpression(expr) ? expr.type : isJSDocTypeAssertion(expr) ? getJSDocTypeAssertionType(expr) : void 0; + if (typeNode && !isConstTypeReference(typeNode)) { + const result = tryReuseExistingTypeNode(context, typeNode, type, expr.parent, addUndefined); + if (result) { + return result; + } + } } - return range; + if (addUndefined) { + type = getOptionalType(type); + } + return typeToTypeNodeHelper(type, context); + } + function tryReuseExistingTypeNode(context, typeNode, type, host2, addUndefined) { + const originalType = type; + if (addUndefined) { + type = getOptionalType(type, !isParameter(host2)); + } + const clone2 = tryReuseExistingNonParameterTypeNode(context, typeNode, type, host2); + if (clone2) { + if (addUndefined && containsNonMissingUndefinedType(type) && !someType(getTypeFromTypeNode2(context, typeNode), (t) => !!(t.flags & 32768 /* Undefined */))) { + return factory.createUnionTypeNode([clone2, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + return clone2; + } + if (addUndefined && originalType !== type) { + const cloneMissingUndefined = tryReuseExistingNonParameterTypeNode(context, typeNode, originalType, host2); + if (cloneMissingUndefined) { + return factory.createUnionTypeNode([cloneMissingUndefined, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + } + return void 0; + } + function tryReuseExistingNonParameterTypeNode(context, existing, type, host2 = context.enclosingDeclaration, annotationType = getTypeFromTypeNode2( + context, + existing, + /*noMappedTypes*/ + true + )) { + if (annotationType && typeNodeIsEquivalentToType(host2, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type)) { + const result = tryReuseExistingTypeNodeHelper(context, existing); + if (result) { + return result; + } + } + return void 0; } function symbolToNode(symbol, context, meaning) { - if (context.internalFlags & 1 /* WriteComputedProps */) { + if (context.flags & 1073741824 /* WriteComputedProps */) { if (symbol.valueDeclaration) { const name = getNameOfDeclaration(symbol.valueDeclaration); if (name && isComputedPropertyName(name)) return name; @@ -55224,16 +54159,14 @@ function createTypeChecker(host) { } return symbolToExpression(symbol, context, meaning); } - function withContext2(enclosingDeclaration, flags, internalFlags, tracker, cb) { - const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : (internalFlags || 0 /* None */) & 4 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; + function withContext2(enclosingDeclaration, flags, tracker, cb) { + const moduleResolverHost = (tracker == null ? void 0 : tracker.trackSymbol) ? tracker.moduleResolverHost : flags & 134217728 /* DoNotIncludeSymbolChain */ ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : void 0; const context = { enclosingDeclaration, enclosingFile: enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration), flags: flags || 0 /* None */, - internalFlags: internalFlags || 0 /* None */, tracker: void 0, encounteredError: false, - suppressReportInferenceFallback: false, reportedDiagnostic: false, visitedTypes: void 0, symbolDepth: void 0, @@ -55252,7 +54185,6 @@ function createTypeChecker(host) { typeParameterNames: void 0, typeParameterNamesByText: void 0, typeParameterNamesByTextNextNameCount: void 0, - enclosingSymbolTypes: /* @__PURE__ */ new Map(), mapper: void 0 }; context.tracker = new SymbolTrackerImpl(context, tracker, moduleResolverHost); @@ -55262,36 +54194,14 @@ function createTypeChecker(host) { } return context.encounteredError ? void 0 : resultingNode; } - function addSymbolTypeToContext(context, symbol, type) { - const id = getSymbolId(symbol); - const oldType = context.enclosingSymbolTypes.get(id); - context.enclosingSymbolTypes.set(id, type); - return restore; - function restore() { - if (oldType) { - context.enclosingSymbolTypes.set(id, oldType); - } else { - context.enclosingSymbolTypes.delete(id); - } - } - } - function saveRestoreFlags(context) { - const flags = context.flags; - const internalFlags = context.internalFlags; - return restore; - function restore() { - context.flags = flags; - context.internalFlags = internalFlags; - } - } function checkTruncationLength(context) { if (context.truncating) return context.truncating; return context.truncating = context.approximateLength > (context.flags & 1 /* NoTruncation */ ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength); } function typeToTypeNodeHelper(type, context) { - const restoreFlags = saveRestoreFlags(context); + const savedFlags = context.flags; const typeNode = typeToTypeNodeWorker(type, context); - restoreFlags(); + context.flags = savedFlags; return typeNode; } function typeToTypeNodeWorker(type, context) { @@ -55686,8 +54596,8 @@ function createTypeChecker(host) { if (isInstantiationExpressionType) { const instantiationExpressionType = type2; const existing = instantiationExpressionType.node; - if (isTypeQueryNode(existing) && getTypeFromTypeNode2(context, existing) === type2) { - const typeNode = syntacticNodeBuilder.tryReuseExistingTypeNode(context, existing); + if (isTypeQueryNode(existing)) { + const typeNode = tryReuseExistingNonParameterTypeNode(context, existing, type2); if (typeNode) { return typeNode; } @@ -55724,7 +54634,7 @@ function createTypeChecker(host) { function shouldWriteTypeOfFunctionSymbol() { var _a3; const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method - some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration))); + some(symbol.declarations, (declaration) => isStatic(declaration)); const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */)); if (isStaticMethodSymbol || isNonLocalFunctionSymbol) { @@ -55745,7 +54655,7 @@ function createTypeChecker(host) { context.symbolDepth = /* @__PURE__ */ new Map(); } const links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration); - const key = `${getTypeId(type2)}|${context.flags}|${context.internalFlags}`; + const key = `${getTypeId(type2)}|${context.flags}`; if (links) { links.serializedTypes || (links.serializedTypes = /* @__PURE__ */ new Map()); } @@ -55851,10 +54761,10 @@ function createTypeChecker(host) { } return typeToTypeNodeHelper(getIntersectionType(types), context); } - const restoreFlags = saveRestoreFlags(context); + const savedFlags = context.flags; context.flags |= 4194304 /* InObjectTypeLiteral */; const members = createTypeNodesFromResolvedType(resolved); - restoreFlags(); + context.flags = savedFlags; const typeLiteralNode = factory.createTypeLiteralNode(members); context.approximateLength += 2; setEmitFlags(typeLiteralNode, context.flags & 1024 /* MultilineObjectLiterals */ ? 0 : 1 /* SingleLine */); @@ -55917,51 +54827,23 @@ function createTypeChecker(host) { } while (i < length2 && getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent2); if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) { const typeArgumentSlice = mapToTypeNodes(typeArguments.slice(start, i), context); - const restoreFlags2 = saveRestoreFlags(context); + const flags2 = context.flags; context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; const ref = symbolToTypeNode(parent2, context, 788968 /* Type */, typeArgumentSlice); - restoreFlags2(); + context.flags = flags2; resultType = !resultType ? ref : appendReferenceToType(resultType, ref); } } } let typeArgumentNodes; if (typeArguments.length > 0) { - let typeParameterCount = 0; - if (type2.target.typeParameters) { - typeParameterCount = Math.min(type2.target.typeParameters.length, typeArguments.length); - if (isReferenceToType2(type2, getGlobalIterableType( - /*reportErrors*/ - false - )) || isReferenceToType2(type2, getGlobalIterableIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType2(type2, getGlobalAsyncIterableType( - /*reportErrors*/ - false - )) || isReferenceToType2(type2, getGlobalAsyncIterableIteratorType( - /*reportErrors*/ - false - ))) { - if (!type2.node || !isTypeReferenceNode(type2.node) || !type2.node.typeArguments || type2.node.typeArguments.length < typeParameterCount) { - while (typeParameterCount > 0) { - const typeArgument = typeArguments[typeParameterCount - 1]; - const typeParameter = type2.target.typeParameters[typeParameterCount - 1]; - const defaultType = getDefaultFromTypeParameter(typeParameter); - if (!defaultType || !isTypeIdenticalTo(typeArgument, defaultType)) { - break; - } - typeParameterCount--; - } - } - } - } + const typeParameterCount = (type2.target.typeParameters || emptyArray).length; typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context); } - const restoreFlags = saveRestoreFlags(context); + const flags = context.flags; context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */; const finalRef = symbolToTypeNode(type2.symbol, context, 788968 /* Type */, typeArgumentNodes); - restoreFlags(); + context.flags = flags; return !resultType ? finalRef : appendReferenceToType(resultType, finalRef); } } @@ -56027,43 +54909,8 @@ function createTypeChecker(host) { ids.unshift(state); return ids; } - function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) { - if (indexInfo.components) { - const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => { - var _a2; - return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible( - e.name.expression, - context2.enclosingDeclaration, - /*shouldComputeAliasToMakeVisible*/ - false - )) == null ? void 0 : _a2.accessibility) === 0 /* Accessible */); - }); - if (allComponentComputedNamesSerializable) { - const newComponents = filter(indexInfo.components, (e) => { - return !hasLateBindableName(e); - }); - return map(newComponents, (e) => { - trackComputedName(e.name.expression, context2.enclosingDeclaration, context2); - return setTextRange2( - context2, - factory.createPropertySignature( - indexInfo.isReadonly ? [factory.createModifier(148 /* ReadonlyKeyword */)] : void 0, - e.name, - (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0, - typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2) - ), - e - ); - }); - } - } - return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)]; - } function createTypeNodesFromResolvedType(resolvedType) { if (checkTruncationLength(context)) { - if (context.flags & 1 /* NoTruncation */) { - return [addSyntheticTrailingComment(factory.createNotEmittedTypeElement(), 3 /* MultiLineCommentTrivia */, "elided")]; - } return [factory.createPropertySignature( /*modifiers*/ void 0, @@ -56083,7 +54930,7 @@ function createTypeChecker(host) { typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context)); } for (const info of resolvedType.indexInfos) { - typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); + typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0)); } const properties = resolvedType.properties; if (!properties) { @@ -56101,20 +54948,15 @@ function createTypeChecker(host) { } } if (checkTruncationLength(context) && i + 2 < properties.length - 1) { - if (context.flags & 1 /* NoTruncation */) { - const typeElement = typeElements.pop(); - typeElements.push(addSyntheticTrailingComment(typeElement, 3 /* MultiLineCommentTrivia */, `... ${properties.length - i} more elided ...`)); - } else { - typeElements.push(factory.createPropertySignature( - /*modifiers*/ - void 0, - `... ${properties.length - i} more ...`, - /*questionToken*/ - void 0, - /*type*/ - void 0 - )); - } + typeElements.push(factory.createPropertySignature( + /*modifiers*/ + void 0, + `... ${properties.length - i} more ...`, + /*questionToken*/ + void 0, + /*type*/ + void 0 + )); addPropertyToElementList(properties[properties.length - 1], context, typeElements); break; } @@ -56132,7 +54974,7 @@ function createTypeChecker(host) { void 0 ); } - return addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "elided"); + return factory.createKeywordTypeNode(133 /* AnyKeyword */); } function shouldUsePlaceholderForProperty(propertySymbol, context) { var _a; @@ -56182,13 +55024,12 @@ function createTypeChecker(host) { if (propertySymbol.flags & 98304 /* Accessor */) { const writeType = getWriteTypeOfSymbol(propertySymbol); if (propertyType !== writeType && !isErrorType(propertyType) && !isErrorType(writeType)) { - const symbolMapper = getSymbolLinks(propertySymbol).mapper; const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */); const getterSignature = getSignatureFromDeclaration(getterDeclaration); typeElements.push( setCommentRange2( context, - signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(getterSignature, symbolMapper) : getterSignature, 177 /* GetAccessor */, context, { name: propertyName }), + signatureToSignatureDeclarationHelper(getterSignature, 177 /* GetAccessor */, context, { name: propertyName }), getterDeclaration ) ); @@ -56197,7 +55038,7 @@ function createTypeChecker(host) { typeElements.push( setCommentRange2( context, - signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(setterSignature, symbolMapper) : setterSignature, 178 /* SetAccessor */, context, { name: propertyName }), + signatureToSignatureDeclarationHelper(setterSignature, 178 /* SetAccessor */, context, { name: propertyName }), setterDeclaration ) ); @@ -56209,7 +55050,7 @@ function createTypeChecker(host) { const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */); for (const signature of signatures) { const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 173 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken }); - typeElements.push(preserveCommentsOn(methodDeclaration, signature.declaration || propertySymbol.valueDeclaration)); + typeElements.push(preserveCommentsOn(methodDeclaration)); } if (signatures.length || !optionalToken) { return; @@ -56244,8 +55085,8 @@ function createTypeChecker(host) { optionalToken, propertyTypeNode ); - typeElements.push(preserveCommentsOn(propertySignature, propertySymbol.valueDeclaration)); - function preserveCommentsOn(node, range) { + typeElements.push(preserveCommentsOn(propertySignature)); + function preserveCommentsOn(node) { var _a2; const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 348 /* JSDocPropertyTag */); if (jsdocPropertyTag) { @@ -56253,8 +55094,8 @@ function createTypeChecker(host) { if (commentText) { setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]); } - } else if (range) { - setCommentRange2(context, node, range); + } else if (propertySymbol.valueDeclaration) { + setCommentRange2(context, node, propertySymbol.valueDeclaration); } return node; } @@ -56269,17 +55110,15 @@ function createTypeChecker(host) { if (some(types)) { if (checkTruncationLength(context)) { if (!isBareList) { - return [ - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, "elided") : factory.createTypeReferenceNode( - "...", - /*typeArguments*/ - void 0 - ) - ]; + return [factory.createTypeReferenceNode( + "...", + /*typeArguments*/ + void 0 + )]; } else if (types.length > 2) { return [ typeToTypeNodeHelper(types[0], context), - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, `... ${types.length - 2} more elided ...`) : factory.createTypeReferenceNode( + factory.createTypeReferenceNode( `... ${types.length - 2} more ...`, /*typeArguments*/ void 0 @@ -56295,13 +55134,11 @@ function createTypeChecker(host) { for (const type of types) { i++; if (checkTruncationLength(context) && i + 2 < types.length - 1) { - result.push( - context.flags & 1 /* NoTruncation */ ? addSyntheticLeadingComment(factory.createKeywordTypeNode(133 /* AnyKeyword */), 3 /* MultiLineCommentTrivia */, `... ${types.length - i} more elided ...`) : factory.createTypeReferenceNode( - `... ${types.length - i} more ...`, - /*typeArguments*/ - void 0 - ) - ); + result.push(factory.createTypeReferenceNode( + `... ${types.length - i} more ...`, + /*typeArguments*/ + void 0 + )); const typeNode2 = typeToTypeNodeHelper(types[types.length - 1], context); if (typeNode2) { result.push(typeNode2); @@ -56318,7 +55155,7 @@ function createTypeChecker(host) { } } if (seenNames) { - const restoreFlags = saveRestoreFlags(context); + const saveContextFlags = context.flags; context.flags |= 64 /* UseFullyQualifiedType */; seenNames.forEach((types2) => { if (!arrayIsHomogeneous(types2, ([a], [b]) => typesAreSameReference(a, b))) { @@ -56327,7 +55164,7 @@ function createTypeChecker(host) { } } }); - restoreFlags(); + context.flags = saveContextFlags; } return result; } @@ -56379,19 +55216,19 @@ function createTypeChecker(host) { } else { typeParameters = signature.typeParameters && signature.typeParameters.map((parameter) => typeParameterToDeclaration(parameter, context)); } - const restoreFlags = saveRestoreFlags(context); + const flags = context.flags; context.flags &= ~256 /* SuppressAnyReturnType */; const parameters = (some(expandedParams, (p) => p !== expandedParams[expandedParams.length - 1] && !!(getCheckFlags(p) & 32768 /* RestParameter */)) ? signature.parameters : expandedParams).map((parameter) => symbolToParameterDeclaration(parameter, context, kind === 176 /* Constructor */)); const thisParameter = context.flags & 33554432 /* OmitThisParameter */ ? void 0 : tryGetThisParameterDeclaration(signature, context); if (thisParameter) { parameters.unshift(thisParameter); } - restoreFlags(); + context.flags = flags; const returnTypeNode = serializeReturnTypeForSignature(context, signature); let modifiers = options == null ? void 0 : options.modifiers; if (kind === 185 /* ConstructorType */ && signature.flags & 4 /* Abstract */) { - const flags = modifiersToFlags(modifiers); - modifiers = factory.createModifiersFromModifierFlags(flags | 64 /* Abstract */); + const flags2 = modifiersToFlags(modifiers); + modifiers = factory.createModifiersFromModifierFlags(flags2 | 64 /* Abstract */); } const node = kind === 179 /* CallSignature */ ? factory.createCallSignature(typeParameters, parameters, returnTypeNode) : kind === 180 /* ConstructSignature */ ? factory.createConstructSignature(typeParameters, parameters, returnTypeNode) : kind === 173 /* MethodSignature */ ? factory.createMethodSignature(modifiers, (options == null ? void 0 : options.name) ?? factory.createIdentifier(""), options == null ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) : kind === 174 /* MethodDeclaration */ ? factory.createMethodDeclaration( modifiers, @@ -56471,85 +55308,14 @@ function createTypeChecker(host) { cleanup == null ? void 0 : cleanup(); return node; } - function createRecoveryBoundary(context) { - if (cancellationToken && cancellationToken.throwIfCancellationRequested) { - cancellationToken.throwIfCancellationRequested(); - } - let trackedSymbols; - let unreportedErrors; - let hadError = false; - const oldTracker = context.tracker; - const oldTrackedSymbols = context.trackedSymbols; - context.trackedSymbols = void 0; - const oldEncounteredError = context.encounteredError; - context.tracker = new SymbolTrackerImpl(context, { - ...oldTracker.inner, - reportCyclicStructureError() { - markError(() => oldTracker.reportCyclicStructureError()); - }, - reportInaccessibleThisError() { - markError(() => oldTracker.reportInaccessibleThisError()); - }, - reportInaccessibleUniqueSymbolError() { - markError(() => oldTracker.reportInaccessibleUniqueSymbolError()); - }, - reportLikelyUnsafeImportRequiredError(specifier) { - markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier)); - }, - reportNonSerializableProperty(name) { - markError(() => oldTracker.reportNonSerializableProperty(name)); - }, - reportPrivateInBaseOfClassExpression(propertyName) { - markError(() => oldTracker.reportPrivateInBaseOfClassExpression(propertyName)); - }, - trackSymbol(sym, decl, meaning) { - (trackedSymbols ?? (trackedSymbols = [])).push([sym, decl, meaning]); - return false; - }, - moduleResolverHost: context.tracker.moduleResolverHost - }, context.tracker.moduleResolverHost); - return { - startRecoveryScope, - finalizeBoundary, - markError, - hadError: () => hadError - }; - function markError(unreportedError) { - hadError = true; - if (unreportedError) { - (unreportedErrors ?? (unreportedErrors = [])).push(unreportedError); - } - } - function startRecoveryScope() { - const trackedSymbolsTop = (trackedSymbols == null ? void 0 : trackedSymbols.length) ?? 0; - const unreportedErrorsTop = (unreportedErrors == null ? void 0 : unreportedErrors.length) ?? 0; - return () => { - hadError = false; - if (trackedSymbols) { - trackedSymbols.length = trackedSymbolsTop; - } - if (unreportedErrors) { - unreportedErrors.length = unreportedErrorsTop; - } - }; - } - function finalizeBoundary() { - context.tracker = oldTracker; - context.trackedSymbols = oldTrackedSymbols; - context.encounteredError = oldEncounteredError; - unreportedErrors == null ? void 0 : unreportedErrors.forEach((fn) => fn()); - if (hadError) { - return false; - } - trackedSymbols == null ? void 0 : trackedSymbols.forEach( - ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( - symbol, - enclosingDeclaration, - meaning - ) - ); - return true; - } + function isNewScopeNode(node) { + return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node); + } + function getTypeParametersInScope(node) { + return isFunctionLike(node) || isJSDocSignature(node) ? getSignatureFromDeclaration(node).typeParameters : isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))]; + } + function getParametersInScope(node) { + return isFunctionLike(node) || isJSDocSignature(node) ? getSignatureFromDeclaration(node).parameters : void 0; } function enterNewScope(context, declaration, expandedParams, typeParameters, originalParameters, mapper) { const cleanupContext = cloneNodeBuilderContext(context); @@ -56682,17 +55448,17 @@ function createTypeChecker(host) { } } function typeParameterToDeclarationWithConstraint(type, context, constraintNode) { - const restoreFlags = saveRestoreFlags(context); + const savedContextFlags = context.flags; context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; const modifiers = factory.createModifiersFromModifierFlags(getTypeParameterModifiers(type)); const name = typeParameterToName(type, context); const defaultParameter = getDefaultFromTypeParameter(type); const defaultParameterNode = defaultParameter && typeToTypeNodeHelper(defaultParameter, context); - restoreFlags(); + context.flags = savedContextFlags; return factory.createTypeParameterDeclaration(modifiers, name, constraintNode, defaultParameterNode); } function typeToTypeNodeHelperWithPossibleReusableTypeNode(type, typeNode, context) { - return typeNode && getTypeFromTypeNode2(context, typeNode) === type && syntacticNodeBuilder.tryReuseExistingTypeNode(context, typeNode) || typeToTypeNodeHelper(type, context); + return typeNode && tryReuseExistingNonParameterTypeNode(context, typeNode, type) || typeToTypeNodeHelper(type, context); } function typeParameterToDeclaration(type, context, constraint = getConstraintOfTypeParameter(type)) { const constraintNode = constraint && typeToTypeNodeHelperWithPossibleReusableTypeNode(constraint, getConstraintDeclaration(type), context); @@ -56773,7 +55539,7 @@ function createTypeChecker(host) { if (!context.tracker.canTrackSymbol) return; const firstIdentifier = getFirstIdentifier(accessExpression); const name = resolveName( - enclosingDeclaration, + firstIdentifier, firstIdentifier.escapedText, 111551 /* Value */ | 1048576 /* ExportValue */, /*nameNotFoundMessage*/ @@ -56783,19 +55549,6 @@ function createTypeChecker(host) { ); if (name) { context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */); - } else { - const fallback = resolveName( - firstIdentifier, - firstIdentifier.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (fallback) { - context.tracker.trackSymbol(fallback, enclosingDeclaration, 111551 /* Value */); - } } } function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) { @@ -56805,7 +55558,7 @@ function createTypeChecker(host) { function lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol) { let chain; const isTypeParameter = symbol.flags & 262144 /* TypeParameter */; - if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64 /* UseFullyQualifiedType */) && !(context.internalFlags & 4 /* DoNotIncludeSymbolChain */)) { + if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64 /* UseFullyQualifiedType */) && !(context.flags & 134217728 /* DoNotIncludeSymbolChain */)) { chain = Debug.checkDefined(getSymbolChain( symbol, meaning, @@ -56941,10 +55694,8 @@ function createTypeChecker(host) { } return getSourceFileOfNode(getNonAugmentationDeclaration(symbol)).fileName; } - const enclosingDeclaration = getOriginalNode(context.enclosingDeclaration); - const originalModuleSpecifier = canHaveModuleSpecifier(enclosingDeclaration) ? tryGetModuleSpecifierFromDeclaration(enclosingDeclaration) : void 0; const contextFile = context.enclosingFile; - const resolutionMode = overrideImportMode || originalModuleSpecifier && host.getModeForUsageLocation(contextFile, originalModuleSpecifier) || contextFile && host.getDefaultResolutionModeForFile(contextFile); + const resolutionMode = overrideImportMode || (contextFile == null ? void 0 : contextFile.impliedNodeFormat); const cacheKey = createModeAwareCacheKey(contextFile.path, resolutionMode); const links = getSymbolLinks(symbol); let specifier = links.specifierCache && links.specifierCache.get(cacheKey); @@ -57327,82 +56078,82 @@ function createTypeChecker(host) { } return enclosingDeclaration; } - function serializeInferredTypeForDeclaration(symbol, context, type) { - if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === context.enclosingFile))) { - context.flags |= 1048576 /* AllowUniqueESSymbolType */; - } - const result = typeToTypeNodeHelper(type, context); - return result; - } function serializeTypeForDeclaration(context, declaration, type, symbol) { - var _a; - let result; - const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration); - const decl = declaration ?? symbol.valueDeclaration ?? getDeclarationWithTypeAnnotation(symbol) ?? ((_a = symbol.declarations) == null ? void 0 : _a[0]); - if (decl) { - const restore = addSymbolTypeToContext(context, symbol, type); - if (isAccessor(decl)) { - result = syntacticNodeBuilder.serializeTypeOfAccessor(decl, symbol, context); - } else if (hasInferredType(decl) && !nodeIsSynthesized(decl) && !(getObjectFlags(type) & 196608 /* RequiresWidening */)) { - result = syntacticNodeBuilder.serializeTypeOfDeclaration(decl, symbol, context); + var _a, _b; + const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration); + const enclosingDeclaration = context.enclosingDeclaration; + const oldFlags = context.flags; + if (declaration && hasInferredType(declaration) && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeTypeOfDeclaration(declaration, context); + } + context.flags |= -2147483648 /* NoSyntacticPrinter */; + if (enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */)) { + const declWithExistingAnnotation = declaration && getNonlocalEffectiveTypeAnnotationNode(declaration) ? declaration : getDeclarationWithTypeAnnotation(symbol); + if (declWithExistingAnnotation && !isFunctionLikeDeclaration(declWithExistingAnnotation) && !isGetAccessorDeclaration(declWithExistingAnnotation)) { + const existing = getNonlocalEffectiveTypeAnnotationNode(declWithExistingAnnotation); + const addUndefined = addUndefinedForParameter || !!(symbol.flags & 4 /* Property */ && symbol.flags & 16777216 /* Optional */ && isOptionalDeclaration(declWithExistingAnnotation) && ((_a = symbol.links) == null ? void 0 : _a.mappedType) && containsNonMissingUndefinedType(type)); + const result2 = !isTypePredicateNode(existing) && tryReuseExistingTypeNode(context, existing, type, declWithExistingAnnotation, addUndefined); + if (result2) { + context.flags = oldFlags; + return result2; + } } - restore(); } - if (!result) { - if (addUndefinedForParameter) { - type = getOptionalType(type); - } - result = serializeInferredTypeForDeclaration(symbol, context, type); + if (type.flags & 8192 /* UniqueESSymbol */ && type.symbol === symbol && (!context.enclosingDeclaration || some(symbol.declarations, (d) => getSourceFileOfNode(d) === getSourceFileOfNode(context.enclosingDeclaration)))) { + context.flags |= 1048576 /* AllowUniqueESSymbolType */; } - return result ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); + const decl = declaration ?? symbol.valueDeclaration ?? ((_b = symbol.declarations) == null ? void 0 : _b[0]); + const expr = decl && isDeclarationWithPossibleInnerTypeNodeReuse(decl) ? getPossibleTypeNodeReuseExpression(decl) : void 0; + const result = expressionOrTypeToTypeNode(context, expr, type, addUndefinedForParameter); + context.flags = oldFlags; + return result; } function typeNodeIsEquivalentToType(annotatedDeclaration, type, typeFromTypeNode) { if (typeFromTypeNode === type) { return true; } - if (!annotatedDeclaration) { - return false; - } - if ((isPropertySignature(annotatedDeclaration) || isPropertyDeclaration(annotatedDeclaration)) && annotatedDeclaration.questionToken) { - return getTypeWithFacts(type, 524288 /* NEUndefined */) === typeFromTypeNode; - } - if (isParameter(annotatedDeclaration) && hasEffectiveQuestionToken(annotatedDeclaration)) { + if (annotatedDeclaration && (isParameter(annotatedDeclaration) || isPropertySignature(annotatedDeclaration) || isPropertyDeclaration(annotatedDeclaration)) && annotatedDeclaration.questionToken) { return getTypeWithFacts(type, 524288 /* NEUndefined */) === typeFromTypeNode; } return false; } function serializeReturnTypeForSignature(context, signature) { const suppressAny = context.flags & 256 /* SuppressAnyReturnType */; - const restoreFlags = saveRestoreFlags(context); + const flags = context.flags; if (suppressAny) context.flags &= ~256 /* SuppressAnyReturnType */; let returnTypeNode; const returnType = getReturnTypeOfSignature(signature); - if (!(suppressAny && isTypeAny(returnType))) { - if (signature.declaration && !nodeIsSynthesized(signature.declaration)) { - const declarationSymbol = getSymbolOfDeclaration(signature.declaration); - const restore = addSymbolTypeToContext(context, declarationSymbol, returnType); - returnTypeNode = syntacticNodeBuilder.serializeReturnTypeForSignature(signature.declaration, declarationSymbol, context); - restore(); + if (returnType && !(suppressAny && isTypeAny(returnType))) { + if (signature.declaration && !(context.flags & -2147483648 /* NoSyntacticPrinter */)) { + syntacticNodeBuilder.serializeReturnTypeForSignature(signature.declaration, context); } - if (!returnTypeNode) { - returnTypeNode = serializeInferredReturnTypeForSignature(context, signature, returnType); - } - } - if (!returnTypeNode && !suppressAny) { + context.flags |= -2147483648 /* NoSyntacticPrinter */; + returnTypeNode = serializeReturnTypeForSignatureWorker(context, signature); + } else if (!suppressAny) { returnTypeNode = factory.createKeywordTypeNode(133 /* AnyKeyword */); } - restoreFlags(); + context.flags = flags; return returnTypeNode; } - function serializeInferredReturnTypeForSignature(context, signature, returnType) { - const oldSuppressReportInferenceFallback = context.suppressReportInferenceFallback; - context.suppressReportInferenceFallback = true; + function serializeReturnTypeForSignatureWorker(context, signature) { const typePredicate = getTypePredicateOfSignature(signature); - const returnTypeNode = typePredicate ? typePredicateToTypePredicateNodeHelper(context.mapper ? instantiateTypePredicate(typePredicate, context.mapper) : typePredicate, context) : typeToTypeNodeHelper(returnType, context); - context.suppressReportInferenceFallback = oldSuppressReportInferenceFallback; - return returnTypeNode; + const type = getReturnTypeOfSignature(signature); + if (context.enclosingDeclaration && (!isErrorType(type) || context.flags & 1 /* AllowUnresolvedNames */) && signature.declaration && !nodeIsSynthesized(signature.declaration)) { + const annotation = getNonlocalEffectiveReturnTypeAnnotationNode(signature.declaration); + if (annotation) { + const result = tryReuseExistingTypeNode(context, annotation, type, context.enclosingDeclaration); + if (result) { + return result; + } + } + } + if (typePredicate) { + return typePredicateToTypePredicateNodeHelper(typePredicate, context); + } + const expr = signature.declaration && getPossibleTypeNodeReuseExpression(signature.declaration); + return expressionOrTypeToTypeNode(context, expr, type); } - function trackExistingEntityName(node, context, enclosingDeclaration = context.enclosingDeclaration) { + function trackExistingEntityName(node, context) { let introducesError = false; const leftmost = getFirstIdentifier(node); if (isInJSFile(node) && (isExportsIdentifier(leftmost) || isModuleExportsAccessExpression(leftmost.parent) || isQualifiedName(leftmost.parent) && isModuleIdentifier(leftmost.parent.left) && isExportsIdentifier(leftmost.parent.right))) { @@ -57453,7 +56204,7 @@ function createTypeChecker(host) { if ( // Check for unusable parameters symbols symAtLocation === unknownSymbol || // If the symbol is not found, but was not found in the original scope either we probably have an error, don't reuse the node - symAtLocation === void 0 && sym !== void 0 || // If the symbol is found both in declaration scope and in current scope then it should point to the same reference + symAtLocation === void 0 && sym !== void 0 || // If the symbol is found both in declaration scope and in current scope then it shoudl point to the same reference symAtLocation && sym && !getSymbolIfSameReference(getExportSymbolOfValueSymbolIfExported(symAtLocation), sym) ) { if (symAtLocation !== unknownSymbol) { @@ -57461,8 +56212,6 @@ function createTypeChecker(host) { } introducesError = true; return { introducesError, node, sym }; - } else { - sym = symAtLocation; } } if (sym) { @@ -57474,7 +56223,7 @@ function createTypeChecker(host) { if (!(sym.flags & 262144 /* TypeParameter */) && // Type parameters are visible in the current context if they are are resolvable !isDeclarationName(node) && isSymbolAccessible( sym, - enclosingDeclaration, + context.enclosingDeclaration, meaning, /*shouldComputeAliasesToMakeVisible*/ false @@ -57482,7 +56231,7 @@ function createTypeChecker(host) { context.tracker.reportInferenceFallback(node); introducesError = true; } else { - context.tracker.trackSymbol(sym, enclosingDeclaration, meaning); + context.tracker.trackSymbol(sym, context.enclosingDeclaration, meaning); } return { introducesError, node: attachSymbolToLeftmostIdentifier(node) }; } @@ -57500,7 +56249,10 @@ function createTypeChecker(host) { /*context*/ void 0 ); - return setTextRange2(context, updated, node2); + if (updated !== node2) { + setTextRange2(context, updated, node2); + } + return updated; } } function serializeTypeName(context, node, isTypeOf, typeArguments) { @@ -57523,15 +56275,6 @@ function createTypeChecker(host) { return symbolToTypeNode(resolvedSymbol, context, meaning, typeArguments); } function canReuseTypeNode(context, existing) { - const type = getTypeFromTypeNode2( - context, - existing, - /*noMappedTypes*/ - true - ); - if (!type) { - return false; - } if (isInJSFile(existing)) { if (isLiteralImportTypeNode(existing)) { void getTypeFromImportTypeNode(existing); @@ -57541,16 +56284,29 @@ function createTypeChecker(host) { !(length(existing.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol)))); } } + if (isThisTypeNode(existing)) { + if (context.mapper === void 0) return true; + const type = getTypeFromTypeNode2( + context, + existing, + /*noMappedTypes*/ + true + ); + return !!type; + } if (isTypeReferenceNode(existing)) { if (isConstTypeReference(existing)) return false; + const type = getTypeFromTypeReference(existing); const symbol = getNodeLinks(existing).resolvedSymbol; if (!symbol) return false; if (symbol.flags & 262144 /* TypeParameter */) { - const declaredType = getDeclaredTypeOfSymbol(symbol); - return !(context.mapper && getMappedType(declaredType, context.mapper) !== declaredType); + const type2 = getDeclaredTypeOfSymbol(symbol); + if (context.mapper && getMappedType(type2, context.mapper) !== type2) { + return false; + } } if (isInJSDoc(existing)) { - return existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) && !getIntendedTypeFromJSDocTypeReference(existing) && !!(symbol.flags & 788968 /* Type */); + return existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) && !getIntendedTypeFromJSDocTypeReference(existing) && symbol.flags & 788968 /* Type */; } } if (isTypeOperatorNode(existing) && existing.operator === 158 /* UniqueKeyword */ && existing.type.kind === 155 /* SymbolKeyword */) { @@ -57559,15 +56315,511 @@ function createTypeChecker(host) { } return true; } - function serializeExistingTypeNode(context, typeNode, addUndefined) { + function serializeExistingTypeNode(context, typeNode) { const type = getTypeFromTypeNode2(context, typeNode); - if (addUndefined && !someType(type, (t) => !!(t.flags & 32768 /* Undefined */)) && canReuseTypeNode(context, typeNode)) { - const clone2 = syntacticNodeBuilder.tryReuseExistingTypeNode(context, typeNode); - if (clone2) { - return factory.createUnionTypeNode([clone2, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + return typeToTypeNodeHelper(type, context); + } + function tryReuseExistingTypeNodeHelper(context, existing) { + if (cancellationToken && cancellationToken.throwIfCancellationRequested) { + cancellationToken.throwIfCancellationRequested(); + } + let hadError = false; + const { finalizeBoundary, startRecoveryScope } = createRecoveryBoundary(); + const transformed = visitNode(existing, visitExistingNodeTreeSymbols, isTypeNode); + if (!finalizeBoundary()) { + return void 0; + } + context.approximateLength += existing.end - existing.pos; + return transformed; + function visitExistingNodeTreeSymbols(node) { + if (hadError) return node; + const recover = startRecoveryScope(); + const onExitNewScope = isNewScopeNode(node) ? onEnterNewScope(node) : void 0; + const result = visitExistingNodeTreeSymbolsWorker(node); + onExitNewScope == null ? void 0 : onExitNewScope(); + if (hadError) { + if (isTypeNode(node) && !isTypePredicateNode(node)) { + recover(); + return serializeExistingTypeNode(context, node); + } + return node; + } + return result ? setTextRange2(context, result, node) : void 0; + } + function createRecoveryBoundary() { + let trackedSymbols; + let unreportedErrors; + const oldTracker = context.tracker; + const oldTrackedSymbols = context.trackedSymbols; + context.trackedSymbols = void 0; + const oldEncounteredError = context.encounteredError; + context.tracker = new SymbolTrackerImpl(context, { + ...oldTracker.inner, + reportCyclicStructureError() { + markError(() => oldTracker.reportCyclicStructureError()); + }, + reportInaccessibleThisError() { + markError(() => oldTracker.reportInaccessibleThisError()); + }, + reportInaccessibleUniqueSymbolError() { + markError(() => oldTracker.reportInaccessibleUniqueSymbolError()); + }, + reportLikelyUnsafeImportRequiredError(specifier) { + markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier)); + }, + reportNonSerializableProperty(name) { + markError(() => oldTracker.reportNonSerializableProperty(name)); + }, + trackSymbol(sym, decl, meaning) { + (trackedSymbols ?? (trackedSymbols = [])).push([sym, decl, meaning]); + return false; + }, + moduleResolverHost: context.tracker.moduleResolverHost + }, context.tracker.moduleResolverHost); + return { + startRecoveryScope: startRecoveryScope2, + finalizeBoundary: finalizeBoundary2 + }; + function markError(unreportedError) { + hadError = true; + (unreportedErrors ?? (unreportedErrors = [])).push(unreportedError); + } + function startRecoveryScope2() { + const trackedSymbolsTop = (trackedSymbols == null ? void 0 : trackedSymbols.length) ?? 0; + const unreportedErrorsTop = (unreportedErrors == null ? void 0 : unreportedErrors.length) ?? 0; + return () => { + hadError = false; + if (trackedSymbols) { + trackedSymbols.length = trackedSymbolsTop; + } + if (unreportedErrors) { + unreportedErrors.length = unreportedErrorsTop; + } + }; + } + function finalizeBoundary2() { + context.tracker = oldTracker; + context.trackedSymbols = oldTrackedSymbols; + context.encounteredError = oldEncounteredError; + unreportedErrors == null ? void 0 : unreportedErrors.forEach((fn) => fn()); + if (hadError) { + return false; + } + trackedSymbols == null ? void 0 : trackedSymbols.forEach( + ([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol( + symbol, + enclosingDeclaration, + meaning + ) + ); + return true; + } + } + function onEnterNewScope(node) { + return enterNewScope(context, node, getParametersInScope(node), getTypeParametersInScope(node)); + } + function tryVisitSimpleTypeNode(node) { + const innerNode = skipTypeParentheses(node); + switch (innerNode.kind) { + case 183 /* TypeReference */: + return tryVisitTypeReference(innerNode); + case 186 /* TypeQuery */: + return tryVisitTypeQuery(innerNode); + case 199 /* IndexedAccessType */: + return tryVisitIndexedAccess(innerNode); + case 198 /* TypeOperator */: + const typeOperatorNode = innerNode; + if (typeOperatorNode.operator === 143 /* KeyOfKeyword */) { + return tryVisitKeyOf(typeOperatorNode); + } + } + return visitNode(node, visitExistingNodeTreeSymbols, isTypeNode); + } + function tryVisitIndexedAccess(node) { + const resultObjectType = tryVisitSimpleTypeNode(node.objectType); + if (resultObjectType === void 0) { + return void 0; + } + return factory.updateIndexedAccessTypeNode(node, resultObjectType, visitNode(node.indexType, visitExistingNodeTreeSymbols, isTypeNode)); + } + function tryVisitKeyOf(node) { + Debug.assertEqual(node.operator, 143 /* KeyOfKeyword */); + const type = tryVisitSimpleTypeNode(node.type); + if (type === void 0) { + return void 0; + } + return factory.updateTypeOperatorNode(node, type); + } + function tryVisitTypeQuery(node) { + const { introducesError, node: exprName } = trackExistingEntityName(node.exprName, context); + if (!introducesError) { + return factory.updateTypeQueryNode( + node, + exprName, + visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode) + ); + } + const serializedName = serializeTypeName( + context, + node.exprName, + /*isTypeOf*/ + true + ); + if (serializedName) { + return setTextRange2(context, serializedName, node.exprName); + } + } + function tryVisitTypeReference(node) { + if (canReuseTypeNode(context, node)) { + const { introducesError, node: newName } = trackExistingEntityName(node.typeName, context); + const typeArguments = visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode); + if (!introducesError) { + const updated = factory.updateTypeReferenceNode( + node, + newName, + typeArguments + ); + return setTextRange2(context, updated, node); + } else { + const serializedName = serializeTypeName( + context, + node.typeName, + /*isTypeOf*/ + false, + typeArguments + ); + if (serializedName) { + return setTextRange2(context, serializedName, node.typeName); + } + } + } + } + function visitExistingNodeTreeSymbolsWorker(node) { + if (isJSDocTypeExpression(node)) { + return visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode); + } + if (isJSDocAllType(node) || node.kind === 319 /* JSDocNamepathType */) { + return factory.createKeywordTypeNode(133 /* AnyKeyword */); + } + if (isJSDocUnknownType(node)) { + return factory.createKeywordTypeNode(159 /* UnknownKeyword */); + } + if (isJSDocNullableType(node)) { + return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createLiteralTypeNode(factory.createNull())]); + } + if (isJSDocOptionalType(node)) { + return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + } + if (isJSDocNonNullableType(node)) { + return visitNode(node.type, visitExistingNodeTreeSymbols); + } + if (isJSDocVariadicType(node)) { + return factory.createArrayTypeNode(visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); + } + if (isJSDocTypeLiteral(node)) { + return factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (t) => { + const name = visitNode(isIdentifier(t.name) ? t.name : t.name.right, visitExistingNodeTreeSymbols, isIdentifier); + const typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode2(context, node), name.escapedText); + const overrideTypeNode = typeViaParent && t.typeExpression && getTypeFromTypeNode2(context, t.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : void 0; + return factory.createPropertySignature( + /*modifiers*/ + void 0, + name, + t.isBracketed || t.typeExpression && isJSDocOptionalType(t.typeExpression.type) ? factory.createToken(58 /* QuestionToken */) : void 0, + overrideTypeNode || t.typeExpression && visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + })); + } + if (isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "") { + return setOriginalNode(factory.createKeywordTypeNode(133 /* AnyKeyword */), node); + } + if ((isExpressionWithTypeArguments(node) || isTypeReferenceNode(node)) && isJSDocIndexSignature(node)) { + return factory.createTypeLiteralNode([factory.createIndexSignature( + /*modifiers*/ + void 0, + [factory.createParameterDeclaration( + /*modifiers*/ + void 0, + /*dotDotDotToken*/ + void 0, + "x", + /*questionToken*/ + void 0, + visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols, isTypeNode) + )], + visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols, isTypeNode) + )]); + } + if (isJSDocFunctionType(node)) { + if (isJSDocConstructSignature(node)) { + let newTypeNode; + return factory.createConstructorTypeNode( + /*modifiers*/ + void 0, + visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), + mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === "new" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration( + /*modifiers*/ + void 0, + getEffectiveDotDotDotForParameter(p), + setTextRange2(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), + factory.cloneNode(p.questionToken), + visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), + /*initializer*/ + void 0 + )), + visitNode(newTypeNode || node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + } else { + return factory.createFunctionTypeNode( + visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), + map(node.parameters, (p, i) => factory.createParameterDeclaration( + /*modifiers*/ + void 0, + getEffectiveDotDotDotForParameter(p), + setTextRange2(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), + factory.cloneNode(p.questionToken), + visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), + /*initializer*/ + void 0 + )), + visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) + ); + } + } + if (isThisTypeNode(node)) { + if (canReuseTypeNode(context, node)) { + return node; + } + hadError = true; + return node; + } + if (isTypeParameterDeclaration(node)) { + return factory.updateTypeParameterDeclaration( + node, + visitNodes2(node.modifiers, visitExistingNodeTreeSymbols, isModifier), + setTextRange2(context, typeParameterToName(getDeclaredTypeOfSymbol(getSymbolOfDeclaration(node)), context), node), + visitNode(node.constraint, visitExistingNodeTreeSymbols, isTypeNode), + visitNode(node.default, visitExistingNodeTreeSymbols, isTypeNode) + ); + } + if (isIndexedAccessTypeNode(node)) { + const result = tryVisitIndexedAccess(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + if (isTypeReferenceNode(node)) { + const result = tryVisitTypeReference(node); + if (result) { + return result; + } + hadError = true; + return node; + } + if (isLiteralImportTypeNode(node)) { + const nodeSymbol = getNodeLinks(node).resolvedSymbol; + if (isInJSDoc(node) && nodeSymbol && // The import type resolved using jsdoc fallback logic + (!node.isTypeOf && !(nodeSymbol.flags & 788968 /* Type */) || // The import type had type arguments autofilled by js fallback logic + !(length(node.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol))))) { + return setTextRange2(context, typeToTypeNodeHelper(getTypeFromTypeNode2(context, node), context), node); + } + return factory.updateImportTypeNode( + node, + factory.updateLiteralTypeNode(node.argument, rewriteModuleSpecifier(node, node.argument.literal)), + visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes), + visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName), + visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode), + node.isTypeOf + ); + } + if (isNamedDeclaration(node) && node.name.kind === 167 /* ComputedPropertyName */ && !isLateBindableName(node.name)) { + if (!hasDynamicName(node)) { + return visitEachChild2(node, visitExistingNodeTreeSymbols); + } + if (!(context.flags & 1 /* AllowUnresolvedNames */ && isEntityNameExpression(node.name.expression) && checkComputedPropertyName(node.name).flags & 1 /* Any */)) { + return void 0; + } + } + if (isFunctionLike(node) && !node.type || isPropertyDeclaration(node) && !node.type && !node.initializer || isPropertySignature(node) && !node.type && !node.initializer || isParameter(node) && !node.type && !node.initializer) { + let visited = visitEachChild2(node, visitExistingNodeTreeSymbols); + if (visited === node) { + visited = setTextRange2(context, factory.cloneNode(node), node); + } + visited.type = factory.createKeywordTypeNode(133 /* AnyKeyword */); + if (isParameter(node)) { + visited.modifiers = void 0; + } + return visited; + } + if (isTypeQueryNode(node)) { + const result = tryVisitTypeQuery(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + if (isComputedPropertyName(node) && isEntityNameExpression(node.expression)) { + const { node: result, introducesError } = trackExistingEntityName(node.expression, context); + if (!introducesError) { + return factory.updateComputedPropertyName(node, result); + } else { + const type = getWidenedType(getRegularTypeOfExpression(node.expression)); + const computedPropertyNameType = typeToTypeNodeHelper(type, context); + let literal; + if (isLiteralTypeNode(computedPropertyNameType)) { + literal = computedPropertyNameType.literal; + } else { + const evaluated = evaluateEntityNameExpression(node.expression); + const literalNode = typeof evaluated.value === "string" ? factory.createStringLiteral( + evaluated.value, + /*isSingleQuote*/ + void 0 + ) : typeof evaluated.value === "number" ? factory.createNumericLiteral( + evaluated.value, + /*numericLiteralFlags*/ + 0 + ) : void 0; + if (!literalNode) { + if (isImportTypeNode(computedPropertyNameType)) { + trackComputedName(node.expression, context.enclosingDeclaration, context); + } + return node; + } + literal = literalNode; + } + if (literal.kind === 11 /* StringLiteral */ && isIdentifierText(literal.text, getEmitScriptTarget(compilerOptions))) { + return factory.createIdentifier(literal.text); + } + if (literal.kind === 9 /* NumericLiteral */ && !literal.text.startsWith("-")) { + return literal; + } + return factory.updateComputedPropertyName(node, literal); + } + } + if (isTypePredicateNode(node)) { + let parameterName; + if (isIdentifier(node.parameterName)) { + const { node: result, introducesError } = trackExistingEntityName(node.parameterName, context); + hadError = hadError || introducesError; + parameterName = result; + } else { + parameterName = factory.cloneNode(node.parameterName); + } + return factory.updateTypePredicateNode(node, factory.cloneNode(node.assertsModifier), parameterName, visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); + } + if (isTupleTypeNode(node) || isTypeLiteralNode(node) || isMappedTypeNode(node)) { + const visited = visitEachChild2(node, visitExistingNodeTreeSymbols); + const clone2 = setTextRange2(context, visited === node ? factory.cloneNode(node) : visited, node); + const flags = getEmitFlags(clone2); + setEmitFlags(clone2, flags | (context.flags & 1024 /* MultilineObjectLiterals */ && isTypeLiteralNode(node) ? 0 : 1 /* SingleLine */)); + return clone2; + } + if (isStringLiteral(node) && !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */) && !node.singleQuote) { + const clone2 = factory.cloneNode(node); + clone2.singleQuote = true; + return clone2; + } + if (isConditionalTypeNode(node)) { + const checkType = visitNode(node.checkType, visitExistingNodeTreeSymbols, isTypeNode); + const disposeScope = onEnterNewScope(node); + const extendType = visitNode(node.extendsType, visitExistingNodeTreeSymbols, isTypeNode); + const trueType2 = visitNode(node.trueType, visitExistingNodeTreeSymbols, isTypeNode); + disposeScope(); + const falseType2 = visitNode(node.falseType, visitExistingNodeTreeSymbols, isTypeNode); + return factory.updateConditionalTypeNode( + node, + checkType, + extendType, + trueType2, + falseType2 + ); + } + if (isTypeOperatorNode(node)) { + if (node.operator === 158 /* UniqueKeyword */ && node.type.kind === 155 /* SymbolKeyword */) { + if (!canReuseTypeNode(context, node)) { + hadError = true; + return node; + } + } else if (node.operator === 143 /* KeyOfKeyword */) { + const result = tryVisitKeyOf(node); + if (!result) { + hadError = true; + return node; + } + return result; + } + } + return visitEachChild2(node, visitExistingNodeTreeSymbols); + function visitEachChild2(node2, visitor) { + const nonlocalNode = !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(node2); + return visitEachChild( + node2, + visitor, + /*context*/ + void 0, + nonlocalNode ? visitNodesWithoutCopyingPositions : void 0 + ); + } + function visitNodesWithoutCopyingPositions(nodes, visitor, test, start, count) { + let result = visitNodes2(nodes, visitor, test, start, count); + if (result) { + if (result.pos !== -1 || result.end !== -1) { + if (result === nodes) { + result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma); + } + setTextRangePosEnd(result, -1, -1); + } + } + return result; + } + function getEffectiveDotDotDotForParameter(p) { + return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(26 /* DotDotDotToken */) : void 0); + } + function getNameForJSDocFunctionParameter(p, index) { + return p.name && isIdentifier(p.name) && p.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`; + } + function rewriteModuleSpecifier(parent2, lit) { + if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) { + let name = lit.text; + const nodeSymbol = getNodeLinks(node).resolvedSymbol; + const meaning = parent2.isTypeOf ? 111551 /* Value */ : 788968 /* Type */; + const parentSymbol = nodeSymbol && isSymbolAccessible( + nodeSymbol, + context.enclosingDeclaration, + meaning, + /*shouldComputeAliasesToMakeVisible*/ + false + ).accessibility === 0 /* Accessible */ && lookupSymbolChain( + nodeSymbol, + context, + meaning, + /*yieldModuleSymbol*/ + true + )[0]; + if (parentSymbol && isExternalModuleSymbol(parentSymbol)) { + name = getSpecifierForModuleSymbol(parentSymbol, context); + } else { + const targetFile = getExternalModuleFileFromDeclaration(parent2); + if (targetFile) { + name = getSpecifierForModuleSymbol(targetFile.symbol, context); + } + } + if (name.includes("/node_modules/")) { + context.encounteredError = true; + if (context.tracker.reportLikelyUnsafeImportRequiredError) { + context.tracker.reportLikelyUnsafeImportRequiredError(name); + } + } + if (name !== lit.text) { + return setOriginalNode(factory.createStringLiteral(name), lit); + } + } + return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral); } } - return typeToTypeNodeHelper(type, context); } function symbolTableToDeclarationStatements(symbolTable, context) { var _a; @@ -57737,10 +56989,9 @@ function createTypeChecker(host) { if (index >= 0) { const exportDecl = statements[index]; const replacements = mapDefined(exportDecl.exportClause.elements, (e) => { - if (!e.propertyName && e.name.kind !== 11 /* StringLiteral */) { - const name = e.name; + if (!e.propertyName) { const indices = indicesOf(statements); - const associatedIndices = filter(indices, (i) => nodeHasName(statements[i], name)); + const associatedIndices = filter(indices, (i) => nodeHasName(statements[i], e.name)); if (length(associatedIndices) && every(associatedIndices, (i) => canHaveExportModifier(statements[i]))) { for (const index2 of associatedIndices) { statements[index2] = addExportModifier(statements[index2]); @@ -57819,9 +57070,7 @@ function createTypeChecker(host) { const skipMembershipCheck = !isPrivate; if (skipMembershipCheck || !!length(symbol.declarations) && some(symbol.declarations, (d) => !!findAncestor(d, (n) => n === enclosingDeclaration))) { const scopeCleanup = cloneNodeBuilderContext(context); - context.tracker.pushErrorFallbackNode(find(symbol.declarations, (d) => getSourceFileOfNode(d) === context.enclosingFile)); serializeSymbolWorker(symbol, isPrivate, propertyAsAlias); - context.tracker.popErrorFallbackNode(); scopeCleanup(); } } @@ -58040,11 +57289,17 @@ function createTypeChecker(host) { const typeParamDecls = map(typeParams, (p) => typeParameterToDeclaration(p, context)); const jsdocAliasDecl = (_a2 = symbol.declarations) == null ? void 0 : _a2.find(isJSDocTypeAlias); const commentText = getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : void 0); - const restoreFlags = saveRestoreFlags(context); + const oldFlags = context.flags; context.flags |= 8388608 /* InTypeAlias */; const oldEnclosingDecl = context.enclosingDeclaration; context.enclosingDeclaration = jsdocAliasDecl; - const typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression && isJSDocTypeExpression(jsdocAliasDecl.typeExpression) && syntacticNodeBuilder.tryReuseExistingTypeNode(context, jsdocAliasDecl.typeExpression.type) || typeToTypeNodeHelper(aliasType, context); + const typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression && isJSDocTypeExpression(jsdocAliasDecl.typeExpression) && tryReuseExistingNonParameterTypeNode( + context, + jsdocAliasDecl.typeExpression.type, + aliasType, + /*host*/ + void 0 + ) || typeToTypeNodeHelper(aliasType, context); addResult( setSyntheticLeadingComments( factory.createTypeAliasDeclaration( @@ -58058,7 +57313,7 @@ function createTypeChecker(host) { ), modifierFlags ); - restoreFlags(); + context.flags = oldFlags; context.enclosingDeclaration = oldEnclosingDecl; } function serializeInterface(symbol, symbolName2, modifierFlags) { @@ -58277,7 +57532,7 @@ function createTypeChecker(host) { } return cleanup(factory.createExpressionWithTypeArguments( expr, - map(e.typeArguments, (a) => syntacticNodeBuilder.tryReuseExistingTypeNode(context, a) || typeToTypeNodeHelper(getTypeFromTypeNode2(context, a), context)) + map(e.typeArguments, (a) => tryReuseExistingNonParameterTypeNode(context, a, getTypeFromTypeNode2(context, a)) || typeToTypeNodeHelper(getTypeFromTypeNode2(context, a), context)) )); function cleanup(result2) { context.enclosingDeclaration = oldEnclosing; @@ -58370,7 +57625,7 @@ function createTypeChecker(host) { function getSomeTargetNameFromDeclarations(declarations) { return firstDefined(declarations, (d) => { if (isImportSpecifier(d) || isExportSpecifier(d)) { - return moduleExportNameTextUnescaped(d.propertyName || d.name); + return idText(d.propertyName || d.name); } if (isBinaryExpression(d) || isExportAssignment(d)) { const expression = isExportAssignment(d) ? d.expression : d.right; @@ -58378,7 +57633,7 @@ function createTypeChecker(host) { return idText(expression.name); } } - if (isAliasSymbolDeclaration(d)) { + if (isAliasSymbolDeclaration2(d)) { const name = getNameOfDeclaration(d); if (name && isIdentifier(name)) { return idText(name); @@ -58388,7 +57643,7 @@ function createTypeChecker(host) { }); } function serializeAsAlias(symbol, localName, modifierFlags) { - var _a2, _b, _c, _d, _e; + var _a2, _b, _c, _d, _e, _f; const node = getDeclarationOfAliasSymbol(symbol); if (!node) return Debug.fail(); const target = getMergedSymbol(getTargetOfAliasDeclaration( @@ -58473,7 +57728,6 @@ function createTypeChecker(host) { ); break; } - // else fall through and treat commonjs require just like import= case 271 /* ImportEqualsDeclaration */: if (target.escapedName === "export=" /* ExportEquals */ && some(target.declarations, (d) => isSourceFile(d) && isJsonSourceFile(d))) { serializeMaybeAliasAssignment(symbol); @@ -58587,11 +57841,8 @@ function createTypeChecker(host) { } case 281 /* ExportSpecifier */: const specifier = node.parent.parent.moduleSpecifier; - if (specifier) { - const propertyName = node.propertyName; - if (propertyName && moduleExportNameIsDefault(propertyName)) { - verbatimTargetName = "default" /* Default */; - } + if (specifier && ((_f = node.propertyName) == null ? void 0 : _f.escapedText) === "default" /* Default */) { + verbatimTargetName = "default" /* Default */; } serializeExportSpecifier( unescapeLeadingUnderscores(symbol.escapedName), @@ -58764,7 +58015,7 @@ function createTypeChecker(host) { } function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) { return function serializePropertySymbol(p, isStatic2, baseType) { - var _a2, _b, _c, _d, _e, _f; + var _a2, _b, _c, _d, _e; const modifierFlags = getDeclarationModifierFlagsFromSymbol(p); const isPrivate = !!(modifierFlags & 2 /* Private */); if (isStatic2 && p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) { @@ -58794,7 +58045,6 @@ function createTypeChecker(host) { }); Debug.assert(!!setter); const paramSymbol = isFunctionLikeDeclaration(setter) ? getSignatureFromDeclaration(setter).parameters[0] : void 0; - const setterDeclaration = (_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor); result.push(setTextRange2( context, factory.createSetAccessorDeclaration( @@ -58808,28 +58058,39 @@ function createTypeChecker(host) { paramSymbol ? parameterToParameterDeclarationName(paramSymbol, getEffectiveParameterDeclaration(paramSymbol), context) : "value", /*questionToken*/ void 0, - isPrivate ? void 0 : serializeTypeForDeclaration(context, setterDeclaration, getWriteTypeOfSymbol(p), p) + isPrivate ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getWriteTypeOfSymbol(p), + p + ) )], /*body*/ void 0 ), - setterDeclaration ?? firstPropertyLikeDecl + ((_b = p.declarations) == null ? void 0 : _b.find(isSetAccessor)) || firstPropertyLikeDecl )); } if (p.flags & 32768 /* GetAccessor */) { const isPrivate2 = modifierFlags & 2 /* Private */; - const getterDeclaration = (_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor); result.push(setTextRange2( context, factory.createGetAccessorDeclaration( factory.createModifiersFromModifierFlags(flag), name, [], - isPrivate2 ? void 0 : serializeTypeForDeclaration(context, getterDeclaration, getTypeOfSymbol(p), p), + isPrivate2 ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getTypeOfSymbol(p), + p + ), /*body*/ void 0 ), - getterDeclaration ?? firstPropertyLikeDecl + ((_c = p.declarations) == null ? void 0 : _c.find(isGetAccessor)) || firstPropertyLikeDecl )); } return result; @@ -58840,13 +58101,19 @@ function createTypeChecker(host) { factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 8 /* Readonly */ : 0) | flag), name, p.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0, - isPrivate ? void 0 : serializeTypeForDeclaration(context, (_d = p.declarations) == null ? void 0 : _d.find(isSetAccessorDeclaration), getWriteTypeOfSymbol(p), p), + isPrivate ? void 0 : serializeTypeForDeclaration( + context, + /*declaration*/ + void 0, + getWriteTypeOfSymbol(p), + p + ), // TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357 // interface members can't have initializers, however class members _can_ /*initializer*/ void 0 ), - ((_e = p.declarations) == null ? void 0 : _e.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl + ((_d = p.declarations) == null ? void 0 : _d.find(or(isPropertyDeclaration, isVariableDeclaration))) || firstPropertyLikeDecl ); } if (p.flags & (8192 /* Method */ | 16 /* Function */)) { @@ -58864,7 +58131,7 @@ function createTypeChecker(host) { /*initializer*/ void 0 ), - ((_f = p.declarations) == null ? void 0 : _f.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0] + ((_e = p.declarations) == null ? void 0 : _e.find(isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0] ); } const results2 = []; @@ -58907,7 +58174,7 @@ function createTypeChecker(host) { return []; } if (baseSigs.length === signatures.length) { - let failed2 = false; + let failed = false; for (let i = 0; i < baseSigs.length; i++) { if (!compareSignaturesIdentical( signatures[i], @@ -58920,11 +58187,11 @@ function createTypeChecker(host) { true, compareTypesIdentical )) { - failed2 = true; + failed = true; break; } } - if (!failed2) { + if (!failed) { return []; } } @@ -59052,10 +58319,10 @@ function createTypeChecker(host) { } function getNameCandidateWorker(symbol, localName) { if (localName === "default" /* Default */ || localName === "__class" /* Class */ || localName === "__function" /* Function */) { - const restoreFlags = saveRestoreFlags(context); + const flags = context.flags; context.flags |= 16777216 /* InInitialEntityName */; const nameCandidate = getNameOfSymbolAsWritten(symbol, context); - restoreFlags(); + context.flags = flags; localName = nameCandidate.length > 0 && isSingleOrDoubleQuote(nameCandidate.charCodeAt(0)) ? stripQuotes(nameCandidate) : nameCandidate; } if (localName === "default" /* Default */) { @@ -59063,7 +58330,7 @@ function createTypeChecker(host) { } else if (localName === "export=" /* ExportEquals */) { localName = "_exports"; } - localName = isIdentifierText(localName, languageVersion) && !isStringANonContextualKeyword(localName) ? localName : "_" + localName.replace(/[^a-z0-9]/gi, "_"); + localName = isIdentifierText(localName, languageVersion) && !isStringANonContextualKeyword(localName) ? localName : "_" + localName.replace(/[^a-zA-Z0-9]/g, "_"); return localName; } function getInternalSymbolName(symbol, localName) { @@ -59230,7 +58497,6 @@ function createTypeChecker(host) { if (isBindingPattern(node.name) && !node.name.elements.length) { return false; } - // falls through case 267 /* ModuleDeclaration */: case 263 /* ClassDeclaration */: case 264 /* InterfaceDeclaration */: @@ -59255,8 +58521,6 @@ function createTypeChecker(host) { if (hasEffectiveModifier(node, 2 /* Private */ | 4 /* Protected */)) { return false; } - // Public properties/methods are visible if its parents are visible, so: - // falls through case 176 /* Constructor */: case 180 /* ConstructSignature */: case 179 /* CallSignature */: @@ -59274,20 +58538,14 @@ function createTypeChecker(host) { case 196 /* ParenthesizedType */: case 202 /* NamedTupleMember */: return isDeclarationVisible(node.parent); - // Default binding, import specifier and namespace import is visible - // only on demand so by default it is not visible case 273 /* ImportClause */: case 274 /* NamespaceImport */: case 276 /* ImportSpecifier */: return false; - // Type parameters are always visible case 168 /* TypeParameter */: - // Source file and namespace export are always visible - // falls through case 307 /* SourceFile */: case 270 /* NamespaceExportDeclaration */: return true; - // Export assignments do not create name bindings outside the module case 277 /* ExportAssignment */: return false; default: @@ -59297,7 +58555,7 @@ function createTypeChecker(host) { } function collectLinkedAliases(node, setVisibility) { let exportSymbol; - if (node.kind !== 11 /* StringLiteral */ && node.parent && node.parent.kind === 277 /* ExportAssignment */) { + if (node.parent && node.parent.kind === 277 /* ExportAssignment */) { exportSymbol = resolveName( node, node, @@ -59582,7 +58840,6 @@ function createTypeChecker(host) { } else if (strictNullChecks && pattern.parent.initializer && !hasTypeFacts(getTypeOfInitializer(pattern.parent.initializer), 65536 /* EQUndefined */)) { parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */); } - const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* AllowMissing */ : 0); let type; if (pattern.kind === 206 /* ObjectBindingPattern */) { if (declaration.dotDotDotToken) { @@ -59601,7 +58858,7 @@ function createTypeChecker(host) { } else { const name = declaration.propertyName || declaration.name; const indexType = getLiteralTypeFromPropertyName(name); - const declaredType = getIndexedAccessType(parentType, indexType, accessFlags, name); + const declaredType = getIndexedAccessType(parentType, indexType, 32 /* ExpressionPosition */, name); type = getFlowTypeOfDestructuring(declaration, declaredType); } } else { @@ -59612,6 +58869,7 @@ function createTypeChecker(host) { type = everyType(baseConstraint, isTupleType) ? mapType(baseConstraint, (t) => sliceTupleType(t, index)) : createArrayType(elementType); } else if (isArrayLikeType(parentType)) { const indexType = getNumberLiteralType(index); + const accessFlags = 32 /* ExpressionPosition */ | (noTupleBoundsCheck || hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0); const declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType; type = getFlowTypeOfDestructuring(declaration, declaredType); } else { @@ -60097,7 +59355,7 @@ function createTypeChecker(host) { /*reportErrors*/ false ) : unknownType; - return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType))); + return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType))); } if (isBindingPattern(element.name)) { return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2); @@ -60131,6 +59389,7 @@ function createTypeChecker(host) { const flags = 4 /* Property */ | (e.initializer ? 16777216 /* Optional */ : 0); const symbol = createSymbol(flags, text); symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors2); + symbol.links.bindingElement = e; members.set(symbol.escapedName, symbol); }); const result = createAnonymousType( @@ -60167,10 +59426,7 @@ function createTypeChecker(host) { return result; } function getTypeFromBindingPattern(pattern, includePatternInType = false, reportErrors2 = false) { - if (includePatternInType) contextualBindingPatterns.push(pattern); - const result = pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); - if (includePatternInType) contextualBindingPatterns.pop(); - return result; + return pattern.kind === 206 /* ObjectBindingPattern */ ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors2) : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors2); } function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors2) { return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration( @@ -60251,18 +59507,18 @@ function createTypeChecker(host) { } return false; } - function getTypeOfVariableOrParameterOrProperty(symbol) { + function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) { const links = getSymbolLinks(symbol); if (!links.type) { - const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol); - if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) { + const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode); + if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) { links.type = type; } return type; } return links.type; } - function getTypeOfVariableOrParameterOrPropertyWorker(symbol) { + function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) { if (symbol.flags & 4194304 /* Prototype */) { return getTypeOfPrototypeProperty(symbol); } @@ -60297,6 +59553,9 @@ function createTypeChecker(host) { if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { return getTypeOfFuncClassEnumModule(symbol); } + if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) { + return errorType; + } return reportCircularityError(symbol); } let type; @@ -60334,6 +59593,9 @@ function createTypeChecker(host) { if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) { return getTypeOfFuncClassEnumModule(symbol); } + if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) { + return type; + } return reportCircularityError(symbol); } return type; @@ -60375,7 +59637,7 @@ function createTypeChecker(host) { const getter = getDeclarationOfKind(symbol, 177 /* GetAccessor */); const setter = getDeclarationOfKind(symbol, 178 /* SetAccessor */); const accessor = tryCast(getDeclarationOfKind(symbol, 172 /* PropertyDeclaration */), isAutoAccessorPropertyDeclaration); - let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && getWidenedTypeForVariableLikeDeclaration( + let type = getter && isInJSFile(getter) && getTypeForDeclarationFromJSDocComment(getter) || getAnnotatedAccessorType(getter) || getAnnotatedAccessorType(setter) || getAnnotatedAccessorType(accessor) || getter && getter.body && getReturnTypeFromBody(getter) || accessor && accessor.initializer && getWidenedTypeForVariableLikeDeclaration( accessor, /*reportErrors*/ true @@ -60562,7 +59824,7 @@ function createTypeChecker(host) { } return getTypeOfSymbol(symbol); } - function getTypeOfSymbol(symbol) { + function getTypeOfSymbol(symbol, checkMode) { const checkFlags = getCheckFlags(symbol); if (checkFlags & 65536 /* DeferredType */) { return getTypeOfSymbolWithDeferredType(symbol); @@ -60577,7 +59839,7 @@ function createTypeChecker(host) { return getTypeOfReverseMappedSymbol(symbol); } if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) { - return getTypeOfVariableOrParameterOrProperty(symbol); + return getTypeOfVariableOrParameterOrProperty(symbol, checkMode); } if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) { return getTypeOfFuncClassEnumModule(symbol); @@ -60596,17 +59858,6 @@ function createTypeChecker(host) { function getNonMissingTypeOfSymbol(symbol) { return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */)); } - function isReferenceToSomeType(type, targets) { - if (type === void 0 || (getObjectFlags(type) & 4 /* Reference */) === 0) { - return false; - } - for (const target of targets) { - if (type.target === target) { - return true; - } - } - return false; - } function isReferenceToType2(type, target) { return type !== void 0 && target !== void 0 && (getObjectFlags(type) & 4 /* Reference */) !== 0 && type.target === target; } @@ -60646,8 +59897,7 @@ function createTypeChecker(host) { if (!node) { return void 0; } - const kind = node.kind; - switch (kind) { + switch (node.kind) { case 263 /* ClassDeclaration */: case 231 /* ClassExpression */: case 264 /* InterfaceDeclaration */: @@ -60669,19 +59919,13 @@ function createTypeChecker(host) { case 200 /* MappedType */: case 194 /* ConditionalType */: { const outerTypeParameters = getOuterTypeParameters(node, includeThisTypes); - if ((kind === 218 /* FunctionExpression */ || kind === 219 /* ArrowFunction */ || isObjectLiteralMethod(node)) && isContextSensitive(node)) { - const signature = firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfDeclaration(node)), 0 /* Call */)); - if (signature && signature.typeParameters) { - return [...outerTypeParameters || emptyArray, ...signature.typeParameters]; - } - } - if (kind === 200 /* MappedType */) { + if (node.kind === 200 /* MappedType */) { return append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))); - } else if (kind === 194 /* ConditionalType */) { + } else if (node.kind === 194 /* ConditionalType */) { return concatenate(outerTypeParameters, getInferTypeParameters(node)); } const outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, getEffectiveTypeParameterDeclarations(node)); - const thisType = includeThisTypes && (kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; + const thisType = includeThisTypes && (node.kind === 263 /* ClassDeclaration */ || node.kind === 231 /* ClassExpression */ || node.kind === 264 /* InterfaceDeclaration */ || isJSConstructor(node)) && getDeclaredTypeOfClassOrInterface(getSymbolOfDeclaration(node)).thisType; return thisType ? append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters; } case 341 /* JSDocParameterTag */: @@ -61035,9 +60279,6 @@ function createTypeChecker(host) { links.instantiations = /* @__PURE__ */ new Map(); links.instantiations.set(getTypeListId(typeParameters), type); } - if (type === intrinsicMarkerType && symbol.escapedName === "BuiltinIteratorReturn") { - type = getBuiltinIteratorReturnType(); - } } else { type = errorType; if (declaration.kind === 340 /* JSDocEnumTag */) { @@ -61231,20 +60472,11 @@ function createTypeChecker(host) { return type; } function isLateBindableName(node) { - return isLateBindableAST(node) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(node.argumentExpression)); - } - function isLateBindableIndexSignature(node) { - return isLateBindableAST(node) && isTypeUsableAsIndexSignature(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(node.argumentExpression)); - } - function isLateBindableAST(node) { if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) { return false; } const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression; - return isEntityNameExpression(expr); - } - function isTypeUsableAsIndexSignature(type) { - return isTypeAssignableTo(type, stringNumberSymbolType); + return isEntityNameExpression(expr) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr)); } function isLateBoundName(name) { return name.charCodeAt(0) === 95 /* _ */ && name.charCodeAt(1) === 95 /* _ */ && name.charCodeAt(2) === 64 /* at */; @@ -61253,10 +60485,6 @@ function createTypeChecker(host) { const name = getNameOfDeclaration(node); return !!name && isLateBindableName(name); } - function hasLateBindableIndexSignature(node) { - const name = getNameOfDeclaration(node); - return !!name && isLateBindableIndexSignature(name); - } function hasBindableName(node) { return !hasDynamicName(node) || hasLateBindableName(node); } @@ -61310,24 +60538,6 @@ function createTypeChecker(host) { } return links.resolvedSymbol; } - function lateBindIndexSignature(parent2, earlySymbols, lateSymbols, decl) { - let indexSymbol = lateSymbols.get("__index" /* Index */); - if (!indexSymbol) { - const early = earlySymbols == null ? void 0 : earlySymbols.get("__index" /* Index */); - if (!early) { - indexSymbol = createSymbol(0 /* None */, "__index" /* Index */, 4096 /* Late */); - } else { - indexSymbol = cloneSymbol(early); - indexSymbol.links.checkFlags |= 4096 /* Late */; - } - lateSymbols.set("__index" /* Index */, indexSymbol); - } - if (!indexSymbol.declarations) { - indexSymbol.declarations = [decl]; - } else if (!decl.symbol.isReplaceableByMethod) { - indexSymbol.declarations.push(decl); - } - } function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) { const links = getSymbolLinks(symbol); if (!links[resolutionKind]) { @@ -61342,8 +60552,6 @@ function createTypeChecker(host) { if (isStatic2 === hasStaticModifier(member)) { if (hasLateBindableName(member)) { lateBindMember(symbol, earlySymbols, lateSymbols, member); - } else if (hasLateBindableIndexSignature(member)) { - lateBindIndexSignature(symbol, earlySymbols, lateSymbols, member); } } } @@ -61452,7 +60660,12 @@ function createTypeChecker(host) { addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType)); callSignatures = concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */)); constructSignatures = concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */)); - const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo]; + const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo( + stringType, + anyType, + /*isReadonly*/ + false + )]; indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType))); } } @@ -61469,7 +60682,7 @@ function createTypeChecker(host) { resolveObjectTypeMembers(type, source, typeParameters, paddedTypeArguments); } function createSignature(declaration, typeParameters, thisParameter, parameters, resolvedReturnType, resolvedTypePredicate, minArgumentCount, flags) { - const sig = new Signature13(checker, flags); + const sig = new Signature14(checker, flags); sig.declaration = declaration; sig.typeParameters = typeParameters; sig.parameters = parameters; @@ -61530,18 +60743,18 @@ function createTypeChecker(host) { function getExpandedParameters(sig, skipUnionExpanding) { if (signatureHasRestParameter(sig)) { const restIndex = sig.parameters.length - 1; - const restSymbol = sig.parameters[restIndex]; - const restType = getTypeOfSymbol(restSymbol); + const restName = sig.parameters[restIndex].escapedName; + const restType = getTypeOfSymbol(sig.parameters[restIndex]); if (isTupleType(restType)) { - return [expandSignatureParametersWithTupleMembers(restType, restIndex, restSymbol)]; + return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)]; } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) { - return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restSymbol)); + return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName)); } } return [sig.parameters]; - function expandSignatureParametersWithTupleMembers(restType, restIndex, restSymbol) { + function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) { const elementTypes = getTypeArguments(restType); - const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restSymbol); + const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName); const restParams = map(elementTypes, (t, i) => { const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType); const flags = restType.target.elementFlags[i]; @@ -61552,29 +60765,19 @@ function createTypeChecker(host) { }); return concatenate(sig.parameters.slice(0, restIndex), restParams); } - function getUniqAssociatedNamesFromTupleType(type, restSymbol) { - const names = map(type.target.labeledElementDeclarations, (labeledElement, i) => getTupleElementLabel(labeledElement, i, type.target.elementFlags[i], restSymbol)); - if (names) { - const duplicates = []; - const uniqueNames = /* @__PURE__ */ new Set(); - for (let i = 0; i < names.length; i++) { - const name = names[i]; - if (!tryAddToSet(uniqueNames, name)) { - duplicates.push(i); - } - } - const counters = /* @__PURE__ */ new Map(); - for (const i of duplicates) { - let counter = counters.get(names[i]) ?? 1; - let name; - while (!tryAddToSet(uniqueNames, name = `${names[i]}_${counter}`)) { - counter++; - } - names[i] = name; - counters.set(names[i], counter + 1); + function getUniqAssociatedNamesFromTupleType(type, restName) { + const associatedNamesMap = /* @__PURE__ */ new Map(); + return map(type.target.labeledElementDeclarations, (labeledElement, i) => { + const name = getTupleElementLabel(labeledElement, i, restName); + const prevCounter = associatedNamesMap.get(name); + if (prevCounter === void 0) { + associatedNamesMap.set(name, 1); + return name; + } else { + associatedNamesMap.set(name, prevCounter + 1); + return `${name}_${prevCounter}`; } - } - return names; + }); } } function getDefaultConstructSignatures(classType) { @@ -61796,13 +60999,8 @@ function createTypeChecker(host) { if (left.typeParameters && right.typeParameters) { paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); } - let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */); const declaration = left.declaration; const params = combineUnionParameters(left, right, paramMapper); - const lastParam = lastOrUndefined(params); - if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) { - flags |= 1 /* HasRestParameter */; - } const thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper); const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); const result = createSignature( @@ -61815,7 +61013,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - flags + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 1048576 /* Union */; result.compositeSignatures = concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -61978,12 +61176,17 @@ function createTypeChecker(host) { members = createSymbolTable(getNamedOrIndexSignatureMembers(members)); addInheritedMembers(members, getPropertiesOfType(baseConstructorType)); } else if (baseConstructorType === anyType) { - baseConstructorIndexInfo = anyBaseTypeIndexInfo; + baseConstructorIndexInfo = createIndexInfo( + stringType, + anyType, + /*isReadonly*/ + false + ); } } const indexSymbol = getIndexSymbolFromSymbolTable(members); if (indexSymbol) { - indexInfos = getIndexInfosOfIndexSymbol(indexSymbol, arrayFrom(members.values())); + indexInfos = getIndexInfosOfIndexSymbol(indexSymbol); } else { if (baseConstructorIndexInfo) { indexInfos = append(indexInfos, baseConstructorIndexInfo); @@ -63521,11 +62724,8 @@ function createTypeChecker(host) { true ); } - function getTypeParametersForMapper(signature) { - return sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp); - } function createSignatureTypeMapper(signature, typeArguments) { - return createTypeMapper(getTypeParametersForMapper(signature), typeArguments); + return createTypeMapper(sameMap(signature.typeParameters, (tp) => tp.mapper ? instantiateType(tp, tp.mapper) : tp), typeArguments); } function getErasedSignature(signature) { return signature.typeParameters ? signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) : signature; @@ -63602,71 +62802,33 @@ function createTypeChecker(host) { return signature.isolatedSignatureType; } function getIndexSymbol(symbol) { - return symbol.members ? getIndexSymbolFromSymbolTable(getMembersOfSymbol(symbol)) : void 0; + return symbol.members ? getIndexSymbolFromSymbolTable(symbol.members) : void 0; } function getIndexSymbolFromSymbolTable(symbolTable) { return symbolTable.get("__index" /* Index */); } - function createIndexInfo(keyType, type, isReadonly, declaration, components) { - return { keyType, type, isReadonly, declaration, components }; + function createIndexInfo(keyType, type, isReadonly, declaration) { + return { keyType, type, isReadonly, declaration }; } function getIndexInfosOfSymbol(symbol) { const indexSymbol = getIndexSymbol(symbol); - return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol, arrayFrom(getMembersOfSymbol(symbol).values())) : emptyArray; + return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol) : emptyArray; } - function getIndexInfosOfIndexSymbol(indexSymbol, siblingSymbols = indexSymbol.parent ? arrayFrom(getMembersOfSymbol(indexSymbol.parent).values()) : void 0) { + function getIndexInfosOfIndexSymbol(indexSymbol) { if (indexSymbol.declarations) { const indexInfos = []; - let hasComputedNumberProperty = false; - let readonlyComputedNumberProperty = true; - let hasComputedSymbolProperty = false; - let readonlyComputedSymbolProperty = true; - let hasComputedStringProperty = false; - let readonlyComputedStringProperty = true; - const computedPropertySymbols = []; for (const declaration of indexSymbol.declarations) { - if (isIndexSignatureDeclaration(declaration)) { - if (declaration.parameters.length === 1) { - const parameter = declaration.parameters[0]; - if (parameter.type) { - forEachType(getTypeFromTypeNode(parameter.type), (keyType) => { - if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos, keyType)) { - indexInfos.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, hasEffectiveModifier(declaration, 8 /* Readonly */), declaration)); - } - }); - } - } - } else if (hasLateBindableIndexSignature(declaration)) { - const declName = isBinaryExpression(declaration) ? declaration.left : declaration.name; - const keyType = isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName); - if (findIndexInfo(indexInfos, keyType)) { - continue; - } - if (isTypeAssignableTo(keyType, stringNumberSymbolType)) { - if (isTypeAssignableTo(keyType, numberType)) { - hasComputedNumberProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedNumberProperty = false; - } - } else if (isTypeAssignableTo(keyType, esSymbolType)) { - hasComputedSymbolProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedSymbolProperty = false; - } - } else { - hasComputedStringProperty = true; - if (!hasEffectiveReadonlyModifier(declaration)) { - readonlyComputedStringProperty = false; + if (declaration.parameters.length === 1) { + const parameter = declaration.parameters[0]; + if (parameter.type) { + forEachType(getTypeFromTypeNode(parameter.type), (keyType) => { + if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos, keyType)) { + indexInfos.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, hasEffectiveModifier(declaration, 8 /* Readonly */), declaration)); } - } - computedPropertySymbols.push(declaration.symbol); + }); } } } - const allPropertySymbols = concatenate(computedPropertySymbols, filter(siblingSymbols, (s) => s !== indexSymbol)); - if (hasComputedStringProperty && !findIndexInfo(indexInfos, stringType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedStringProperty, 0, allPropertySymbols, stringType)); - if (hasComputedNumberProperty && !findIndexInfo(indexInfos, numberType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedNumberProperty, 0, allPropertySymbols, numberType)); - if (hasComputedSymbolProperty && !findIndexInfo(indexInfos, esSymbolType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedSymbolProperty, 0, allPropertySymbols, esSymbolType)); return indexInfos; } return emptyArray; @@ -63824,14 +62986,14 @@ function createTypeChecker(host) { var _a, _b; if (!type.resolvedTypeArguments) { if (!pushTypeResolution(type, 5 /* ResolvedTypeArguments */)) { - return concatenate(type.target.outerTypeParameters, (_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; + return ((_a = type.target.localTypeParameters) == null ? void 0 : _a.map(() => errorType)) || emptyArray; } const node = type.node; const typeArguments = !node ? emptyArray : node.kind === 183 /* TypeReference */ ? concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments2(node, type.target.localTypeParameters)) : node.kind === 188 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : map(node.elements, getTypeFromTypeNode); if (popTypeResolution()) { type.resolvedTypeArguments ?? (type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments); } else { - type.resolvedTypeArguments ?? (type.resolvedTypeArguments = concatenate(type.target.outerTypeParameters, ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray)); + type.resolvedTypeArguments ?? (type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) == null ? void 0 : _b.map(() => errorType)) || emptyArray); error2( type.node || currentNode, type.target.symbol ? Diagnostics.Type_arguments_for_0_circularly_reference_themselves : Diagnostics.Tuple_type_arguments_circularly_reference_themselves, @@ -64121,9 +63283,6 @@ function createTypeChecker(host) { case "Number": checkNoTypeArguments(node); return numberType; - case "BigInt": - checkNoTypeArguments(node); - return bigintType; case "Boolean": checkNoTypeArguments(node); return booleanType; @@ -64285,18 +63444,6 @@ function createTypeChecker(host) { const symbol = getGlobalTypeSymbol(name, reportErrors2); return symbol || reportErrors2 ? getTypeOfGlobalSymbol(symbol, arity) : void 0; } - function getGlobalBuiltinTypes(typeNames, arity) { - let types; - for (const typeName of typeNames) { - types = append(types, getGlobalType( - typeName, - arity, - /*reportErrors*/ - false - )); - } - return types ?? emptyArray; - } function getGlobalTypedPropertyDescriptorType() { return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType( "TypedPropertyDescriptor", @@ -64399,7 +63546,7 @@ function createTypeChecker(host) { return deferredGlobalAsyncIterableType || (deferredGlobalAsyncIterableType = getGlobalType( "AsyncIterable", /*arity*/ - 3, + 1, reportErrors2 )) || emptyGenericType; } @@ -64415,18 +63562,7 @@ function createTypeChecker(host) { return deferredGlobalAsyncIterableIteratorType || (deferredGlobalAsyncIterableIteratorType = getGlobalType( "AsyncIterableIterator", /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getGlobalBuiltinAsyncIteratorTypes() { - return deferredGlobalBuiltinAsyncIteratorTypes ?? (deferredGlobalBuiltinAsyncIteratorTypes = getGlobalBuiltinTypes(["ReadableStreamAsyncIterator"], 1)); - } - function getGlobalAsyncIteratorObjectType(reportErrors2) { - return deferredGlobalAsyncIteratorObjectType || (deferredGlobalAsyncIteratorObjectType = getGlobalType( - "AsyncIteratorObject", - /*arity*/ - 3, + 1, reportErrors2 )) || emptyGenericType; } @@ -64442,7 +63578,7 @@ function createTypeChecker(host) { return deferredGlobalIterableType || (deferredGlobalIterableType = getGlobalType( "Iterable", /*arity*/ - 3, + 1, reportErrors2 )) || emptyGenericType; } @@ -64458,21 +63594,7 @@ function createTypeChecker(host) { return deferredGlobalIterableIteratorType || (deferredGlobalIterableIteratorType = getGlobalType( "IterableIterator", /*arity*/ - 3, - reportErrors2 - )) || emptyGenericType; - } - function getBuiltinIteratorReturnType() { - return strictBuiltinIteratorReturn ? undefinedType : anyType; - } - function getGlobalBuiltinIteratorTypes() { - return deferredGlobalBuiltinIteratorTypes ?? (deferredGlobalBuiltinIteratorTypes = getGlobalBuiltinTypes(["ArrayIterator", "MapIterator", "SetIterator", "StringIterator"], 1)); - } - function getGlobalIteratorObjectType(reportErrors2) { - return deferredGlobalIteratorObjectType || (deferredGlobalIteratorObjectType = getGlobalType( - "IteratorObject", - /*arity*/ - 3, + 1, reportErrors2 )) || emptyGenericType; } @@ -64654,7 +63776,7 @@ function createTypeChecker(host) { return createTypeFromGenericGlobalType(getGlobalIterableType( /*reportErrors*/ true - ), [iteratedType, voidType, undefinedType]); + ), [iteratedType]); } function createArrayType(elementType, readonly) { return createTypeFromGenericGlobalType(readonly ? globalReadonlyArrayType : globalArrayType, [elementType]); @@ -65318,12 +64440,6 @@ function createTypeChecker(host) { function eachUnionContains(unionTypes2, type) { for (const u of unionTypes2) { if (!containsType(u.types, type)) { - if (type === missingType) { - return containsType(u.types, undefinedType); - } - if (type === undefinedType) { - return containsType(u.types, missingType); - } const primitive = type.flags & 128 /* StringLiteral */ ? stringType : type.flags & (32 /* Enum */ | 256 /* NumberLiteral */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : void 0; if (!primitive || !containsType(u.types, primitive)) { return false; @@ -65380,13 +64496,6 @@ function createTypeChecker(host) { for (const t of u.types) { if (insertType(checked, t)) { if (eachUnionContains(unionTypes2, t)) { - if (t === undefinedType && result.length && result[0] === missingType) { - continue; - } - if (t === missingType && result.length && result[0] === undefinedType) { - result[0] = missingType; - continue; - } insertType(result, t); } } @@ -65471,7 +64580,7 @@ function createTypeChecker(host) { } else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && (t.types[0].flags & 65536 /* Null */ || t.types[1].flags & 65536 /* Null */)))) { removeFromEach(typeSet, 65536 /* Null */); result = getUnionType([getIntersectionType(typeSet, flags), nullType], 1 /* Literal */, aliasSymbol, aliasTypeArguments); - } else if (typeSet.length >= 3 && types.length > 2) { + } else if (typeSet.length >= 4) { const middle = Math.floor(typeSet.length / 2); result = getIntersectionType([getIntersectionType(typeSet.slice(0, middle), flags), getIntersectionType(typeSet.slice(middle), flags)], flags, aliasSymbol, aliasTypeArguments); } else { @@ -65867,7 +64976,7 @@ function createTypeChecker(host) { } if (everyType(objectType, isTupleType) && isNumericLiteralName(propName)) { const index = +propName; - if (accessNode && everyType(objectType, (t) => !(t.target.combinedFlags & 12 /* Variable */)) && !(accessFlags & 16 /* AllowMissing */)) { + if (accessNode && everyType(objectType, (t) => !t.target.hasRestElement) && !(accessFlags & 16 /* NoTupleBoundsCheck */)) { const indexNode = getIndexNodeForAccessExpression(accessNode); if (isTupleType(objectType)) { if (index < 0) { @@ -66006,21 +65115,17 @@ function createTypeChecker(host) { return void 0; } } - if (accessFlags & 16 /* AllowMissing */ && isObjectLiteralType2(objectType)) { - return undefinedType; - } if (isJSLiteralType(objectType)) { return anyType; } if (accessNode) { const indexNode = getIndexNodeForAccessExpression(accessNode); - if (indexNode.kind !== 10 /* BigIntLiteral */ && indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { + if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) { error2(indexNode, Diagnostics.Property_0_does_not_exist_on_type_1, "" + indexType.value, typeToString(objectType)); } else if (indexType.flags & (4 /* String */ | 8 /* Number */)) { error2(indexNode, Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType)); } else { - const typeString = indexNode.kind === 10 /* BigIntLiteral */ ? "bigint" : typeToString(indexType); - error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeString); + error2(indexNode, Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType)); } } if (isTypeAny(indexType)) { @@ -66513,7 +65618,7 @@ function createTypeChecker(host) { const links = getNodeLinks(node); if (!links.resolvedType) { const aliasSymbol = getAliasSymbolForTypeNode(node); - if (!node.symbol || getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) { + if (getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) { links.resolvedType = emptyTypeLiteralType; } else { let type = createObjectType(16 /* Anonymous */, node.symbol); @@ -66677,7 +65782,7 @@ function createTypeChecker(host) { return result; } function getIndexInfoWithReadonly(info, readonly) { - return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info; + return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info; } function createLiteralType(flags, value, symbol, regularType) { const type = createTypeWithSymbol(flags, symbol); @@ -66905,9 +66010,6 @@ function createTypeChecker(host) { return getTypeFromTemplateTypeNode(node); case 205 /* ImportType */: return getTypeFromImportTypeNode(node); - // This function assumes that an identifier, qualified name, or property access expression is a type expression - // Callers should first ensure this by calling `isPartOfTypeNode` - // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s. case 80 /* Identifier */: case 166 /* QualifiedName */: case 211 /* PropertyAccessExpression */: @@ -67155,7 +66257,6 @@ function createTypeChecker(host) { return !!tp.isThisType; case 80 /* Identifier */: return !tp.isThisType && isPartOfTypeNode(node2) && maybeTypeParameterReference(node2) && getTypeFromTypeNodeWorker(node2) === tp; - // use worker because we're looking for === equality case 186 /* TypeQuery */: const entityName = node2.exprName; const firstIdentifier = getFirstIdentifier(entityName); @@ -67436,7 +66537,7 @@ function createTypeChecker(host) { return type.restrictiveInstantiation; } function instantiateIndexInfo(info, mapper) { - return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components); + return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration); } function isContextSensitive(node) { Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node)); @@ -67575,7 +66676,6 @@ function createTypeChecker(host) { if (!isConstAssertion(node)) { break; } - // fallthrough case 294 /* JsxExpression */: case 217 /* ParenthesizedExpression */: return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer); @@ -68286,7 +67386,7 @@ function createTypeChecker(host) { } const id = getSymbolId(sourceSymbol) + "," + getSymbolId(targetSymbol); const entry = enumRelation.get(id); - if (entry !== void 0 && !(entry & 2 /* Failed */ && errorReporter)) { + if (entry !== void 0 && !(!(entry & 4 /* Reported */) && entry & 2 /* Failed */ && errorReporter)) { return !!(entry & 1 /* Succeeded */); } const targetEnumType = getTypeOfSymbol(targetSymbol); @@ -68301,8 +67401,10 @@ function createTypeChecker(host) { void 0, 64 /* UseFullyQualifiedType */ )); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); + } else { + enumRelation.set(id, 2 /* Failed */); } - enumRelation.set(id, 2 /* Failed */); return false; } const sourceValue = getEnumMemberValue(getDeclarationOfKind(sourceProperty, 306 /* EnumMember */)).value; @@ -68311,22 +67413,26 @@ function createTypeChecker(host) { const sourceIsString = typeof sourceValue === "string"; const targetIsString = typeof targetValue === "string"; if (sourceValue !== void 0 && targetValue !== void 0) { - if (errorReporter) { + if (!errorReporter) { + enumRelation.set(id, 2 /* Failed */); + } else { const escapedSource = sourceIsString ? `"${escapeString(sourceValue)}"` : sourceValue; const escapedTarget = targetIsString ? `"${escapeString(targetValue)}"` : targetValue; errorReporter(Diagnostics.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given, symbolName(targetSymbol), symbolName(targetProperty), escapedTarget, escapedSource); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); } - enumRelation.set(id, 2 /* Failed */); return false; } if (sourceIsString || targetIsString) { - if (errorReporter) { + if (!errorReporter) { + enumRelation.set(id, 2 /* Failed */); + } else { const knownStringValue = sourceValue ?? targetValue; Debug.assert(typeof knownStringValue === "string"); const escapedValue = `"${escapeString(knownStringValue)}"`; errorReporter(Diagnostics.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value, symbolName(targetSymbol), symbolName(targetProperty), escapedValue); + enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */); } - enumRelation.set(id, 2 /* Failed */); return false; } } @@ -68484,7 +67590,7 @@ function createTypeChecker(host) { /*ignoreConstraints*/ false ); - relation.set(id, 2 /* Failed */ | (relationCount <= 0 ? 32 /* ComplexityOverflow */ : 64 /* StackDepthOverflow */)); + relation.set(id, 4 /* Reported */ | 2 /* Failed */); (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", { sourceId: source.id, targetId: target.id, depth: sourceDepth, targetDepth }); const message = relationCount <= 0 ? Diagnostics.Excessive_complexity_comparing_types_0_and_1 : Diagnostics.Excessive_stack_depth_comparing_types_0_and_1; const diag2 = error2(errorNode || currentNode, message, typeToString(source), typeToString(target)); @@ -68671,7 +67777,7 @@ function createTypeChecker(host) { const [sourceType, targetType] = getTypeNamesForErrorDisplay(source2, target2); let generalizedSource = source2; let generalizedSourceType = sourceType; - if (!(target2.flags & 131072 /* Never */) && isLiteralType(source2) && !typeCouldHaveTopLevelSingletonTypes(target2)) { + if (isLiteralType(source2) && !typeCouldHaveTopLevelSingletonTypes(target2)) { generalizedSource = getBaseTypeOfLiteralType(source2); Debug.assert(!isTypeAssignableTo(generalizedSource, target2), "generalized source shouldn't be assignable"); generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource); @@ -69337,7 +68443,7 @@ function createTypeChecker(host) { ); const entry = relation.get(id); if (entry !== void 0) { - if (reportErrors2 && entry & 2 /* Failed */ && !(entry & 96 /* Overflow */)) { + if (reportErrors2 && entry & 2 /* Failed */ && !(entry & 4 /* Reported */)) { } else { if (outofbandVarianceMarkerHandler) { const saved = entry & 24 /* ReportsMask */; @@ -69348,11 +68454,6 @@ function createTypeChecker(host) { instantiateType(source2, reportUnreliableMapper); } } - if (reportErrors2 && entry & 96 /* Overflow */) { - const message = entry & 32 /* ComplexityOverflow */ ? Diagnostics.Excessive_complexity_comparing_types_0_and_1 : Diagnostics.Excessive_stack_depth_comparing_types_0_and_1; - reportError(message, typeToString(source2), typeToString(target2)); - overrideNextErrorInfo++; - } return entry & 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */; } } @@ -69450,7 +68551,7 @@ function createTypeChecker(host) { } } } else { - relation.set(id, 2 /* Failed */ | propagatingVarianceFlags); + relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags); relationCount--; resetMaybeStack( /*markAllAsSucceeded*/ @@ -70343,7 +69444,7 @@ function createTypeChecker(host) { const sourceArity = getTypeReferenceArity(source2); const targetArity = getTypeReferenceArity(target2); const sourceRestFlag = isTupleType(source2) ? source2.target.combinedFlags & 4 /* Rest */ : 4 /* Rest */; - const targetHasRestElement = !!(target2.target.combinedFlags & 12 /* Variable */); + const targetRestFlag = target2.target.combinedFlags & 4 /* Rest */; const sourceMinLength = isTupleType(source2) ? source2.target.minLength : 0; const targetMinLength = target2.target.minLength; if (!sourceRestFlag && sourceArity < targetMinLength) { @@ -70352,13 +69453,13 @@ function createTypeChecker(host) { } return 0 /* False */; } - if (!targetHasRestElement && targetArity < sourceMinLength) { + if (!targetRestFlag && targetArity < sourceMinLength) { if (reportErrors2) { reportError(Diagnostics.Source_has_0_element_s_but_target_allows_only_1, sourceMinLength, targetArity); } return 0 /* False */; } - if (!targetHasRestElement && (sourceRestFlag || targetArity < sourceArity)) { + if (!targetRestFlag && (sourceRestFlag || targetArity < sourceArity)) { if (reportErrors2) { if (sourceMinLength < targetMinLength) { reportError(Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, targetMinLength); @@ -70372,6 +69473,7 @@ function createTypeChecker(host) { const targetTypeArguments = getTypeArguments(target2); const targetStartCount = getStartElementCount(target2.target, 11 /* NonRest */); const targetEndCount = getEndElementCount(target2.target, 11 /* NonRest */); + const targetHasRestElement = target2.target.hasRestElement; let canExcludeDiscriminants = !!excludedProperties; for (let sourcePosition = 0; sourcePosition < sourceArity; sourcePosition++) { const sourceFlags = isTupleType(source2) ? source2.target.elementFlags[sourcePosition] : 4 /* Rest */; @@ -70831,7 +69933,7 @@ function createTypeChecker(host) { for (let i = 0; i < types.length; i++) { if (include[i]) { const targetType = getTypeOfPropertyOrIndexSignatureOfType(types[i], propertyName); - if (targetType && someType(getDiscriminatingType(), (t) => !!related(t, targetType))) { + if (targetType && related(getDiscriminatingType(), targetType)) { matched = true; } else { include[i] = 3 /* Maybe */; @@ -71567,7 +70669,7 @@ function createTypeChecker(host) { } } } - const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components))); + const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly))); result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */); return result; } @@ -71611,7 +70713,6 @@ function createTypeChecker(host) { return type; } function reportWideningErrorsInType(type) { - var _a; let errorReported = false; if (getObjectFlags(type) & 65536 /* ContainsWideningType */) { if (type.flags & 1048576 /* Union */) { @@ -71619,28 +70720,27 @@ function createTypeChecker(host) { errorReported = true; } else { for (const t of type.types) { - errorReported || (errorReported = reportWideningErrorsInType(t)); + if (reportWideningErrorsInType(t)) { + errorReported = true; + } } } - } else if (isArrayOrTupleType(type)) { + } + if (isArrayOrTupleType(type)) { for (const t of getTypeArguments(type)) { - errorReported || (errorReported = reportWideningErrorsInType(t)); + if (reportWideningErrorsInType(t)) { + errorReported = true; + } } - } else if (isObjectLiteralType2(type)) { + } + if (isObjectLiteralType2(type)) { for (const p of getPropertiesOfObjectType(type)) { const t = getTypeOfSymbol(p); if (getObjectFlags(t) & 65536 /* ContainsWideningType */) { - errorReported = reportWideningErrorsInType(t); - if (!errorReported) { - const valueDeclaration = (_a = p.declarations) == null ? void 0 : _a.find((d) => { - var _a2; - return ((_a2 = d.symbol.valueDeclaration) == null ? void 0 : _a2.parent) === type.symbol.valueDeclaration; - }); - if (valueDeclaration) { - error2(valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); - errorReported = true; - } + if (!reportWideningErrorsInType(t)) { + error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t))); } + errorReported = true; } } } @@ -71703,7 +70803,7 @@ function createTypeChecker(host) { case 219 /* ArrowFunction */: if (noImplicitAny && !declaration.name) { if (wideningKind === 3 /* GeneratorYield */) { - error2(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation, typeAsString); + error2(declaration, Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString); } else { error2(declaration, Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString); } @@ -71721,37 +70821,11 @@ function createTypeChecker(host) { } errorOrSuggestion(noImplicitAny, declaration, diagnostic, declarationNameToString(getNameOfDeclaration(declaration)), typeAsString); } - function shouldReportErrorsFromWideningWithContextualSignature(declaration, wideningKind) { - const signature = getContextualSignatureForFunctionLikeDeclaration(declaration); - if (!signature) { - return true; - } - let returnType = getReturnTypeOfSignature(signature); - const flags = getFunctionFlags(declaration); - switch (wideningKind) { - case 1 /* FunctionReturn */: - if (flags & 1 /* Generator */) { - returnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, !!(flags & 2 /* Async */)) ?? returnType; - } else if (flags & 2 /* Async */) { - returnType = getAwaitedTypeNoAlias(returnType) ?? returnType; - } - return isGenericType(returnType); - case 3 /* GeneratorYield */: - const yieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, !!(flags & 2 /* Async */)); - return !!yieldType && isGenericType(yieldType); - case 2 /* GeneratorNext */: - const nextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, !!(flags & 2 /* Async */)); - return !!nextType && isGenericType(nextType); - } - return false; - } function reportErrorsFromWidening(declaration, type, wideningKind) { addLazyDiagnostic(() => { - if (noImplicitAny && getObjectFlags(type) & 65536 /* ContainsWideningType */) { - if (!wideningKind || isFunctionLikeDeclaration(declaration) && shouldReportErrorsFromWideningWithContextualSignature(declaration, wideningKind)) { - if (!reportWideningErrorsInType(type)) { - reportImplicitAny(declaration, type, wideningKind); - } + if (noImplicitAny && getObjectFlags(type) & 65536 /* ContainsWideningType */ && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) { + if (!reportWideningErrorsInType(type)) { + reportImplicitAny(declaration, type, wideningKind); } } }); @@ -72045,7 +71119,7 @@ function createTypeChecker(host) { return firstOrUndefinedIterator(getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties)); } function tupleTypesDefinitelyUnrelated(source, target) { - return !(target.target.combinedFlags & 8 /* Variadic */) && target.target.minLength > source.target.minLength || !(target.target.combinedFlags & 12 /* Variable */) && (!!(source.target.combinedFlags & 12 /* Variable */) || target.target.fixedLength < source.target.fixedLength); + return !(target.target.combinedFlags & 8 /* Variadic */) && target.target.minLength > source.target.minLength || !target.target.hasRestElement && (source.target.hasRestElement || target.target.fixedLength < source.target.fixedLength); } function typesDefinitelyUnrelated(source, target) { return isTupleType(source) && isTupleType(target) ? tupleTypesDefinitelyUnrelated(source, target) : !!getUnmatchedProperty( @@ -72134,7 +71208,7 @@ function createTypeChecker(host) { return false; } function inferTypesFromTemplateLiteralType(source, target) { - return source.flags & 128 /* StringLiteral */ ? inferFromLiteralPartsToTemplateLiteral([source.value], emptyArray, target) : source.flags & 134217728 /* TemplateLiteral */ ? arrayIsEqualTo(source.texts, target.texts) ? map(source.types, (s, i) => { + return source.flags & 128 /* StringLiteral */ ? inferFromLiteralPartsToTemplateLiteral([source.value], emptyArray, target) : source.flags & 134217728 /* TemplateLiteral */ ? arraysEqual(source.texts, target.texts) ? map(source.types, (s, i) => { return isTypeAssignableTo(getBaseConstraintOrType(s), getBaseConstraintOrType(target.types[i])) ? s : getStringLikeTypeForType(s); }) : inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) : void 0; } @@ -72663,7 +71737,7 @@ function createTypeChecker(host) { return; } const startLength = isTupleType(source) ? Math.min(source.target.fixedLength, target.target.fixedLength) : 0; - const endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3 /* Fixed */) : 0, target.target.combinedFlags & 12 /* Variable */ ? getEndElementCount(target.target, 3 /* Fixed */) : 0); + const endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3 /* Fixed */) : 0, target.target.hasRestElement ? getEndElementCount(target.target, 3 /* Fixed */) : 0); for (let i = 0; i < startLength; i++) { inferFromTypes(getTypeArguments(source)[i], elementTypes[i]); } @@ -72684,7 +71758,7 @@ function createTypeChecker(host) { } else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) { const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter; const constraint = param && getBaseConstraintOfType(param); - if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) { + if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) { const impliedArity = constraint.target.fixedLength; inferFromTypes(sliceTupleType(source, startLength, sourceArity - (startLength + impliedArity)), elementTypes[startLength]); inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]); @@ -72692,7 +71766,7 @@ function createTypeChecker(host) { } else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) { const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter; const constraint = param && getBaseConstraintOfType(param); - if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) { + if (constraint && isTupleType(constraint) && !constraint.target.hasRestElement) { const impliedArity = constraint.target.fixedLength; const endIndex = sourceArity - getEndElementCount(target.target, 3 /* Fixed */); const startIndex = endIndex - impliedArity; @@ -72844,7 +71918,7 @@ function createTypeChecker(host) { const inferredCovariantType = inference.candidates ? getCovariantInference(inference, context.signature) : void 0; const inferredContravariantType = inference.contraCandidates ? getContravariantInference(inference) : void 0; if (inferredCovariantType || inferredContravariantType) { - const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & (131072 /* Never */ | 1 /* Any */)) && some(inference.contraCandidates, (t) => isTypeAssignableTo(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeAssignableTo(t, inferredCovariantType)))); + const preferCovariantType = inferredCovariantType && (!inferredContravariantType || !(inferredCovariantType.flags & 131072 /* Never */) && some(inference.contraCandidates, (t) => isTypeSubtypeOf(inferredCovariantType, t)) && every(context.inferences, (other) => other !== inference && getConstraintOfTypeParameter(other.typeParameter) !== inference.typeParameter || every(other.candidates, (t) => isTypeSubtypeOf(t, inferredCovariantType)))); inferredType = preferCovariantType ? inferredCovariantType : inferredContravariantType; fallbackType = preferCovariantType ? inferredContravariantType : inferredCovariantType; } else if (context.flags & 1 /* NoDefault */) { @@ -72921,7 +71995,6 @@ function createTypeChecker(host) { if (isCallExpression(node.parent)) { return Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function; } - // falls through default: if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { return Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer; @@ -72955,7 +72028,6 @@ function createTypeChecker(host) { const symbol = getResolvedSymbol(node); return symbol !== unknownSymbol ? `${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}|${getSymbolId(symbol)}` : void 0; } - // falls through case 110 /* ThisKeyword */: return `0|${flowContainer ? getNodeId(flowContainer) : "-1"}|${getTypeId(declaredType)}|${getTypeId(initialType)}`; case 235 /* NonNullExpression */: @@ -73009,7 +72081,6 @@ function createTypeChecker(host) { return target.kind === 108 /* SuperKeyword */; case 235 /* NonNullExpression */: case 217 /* ParenthesizedExpression */: - case 238 /* SatisfiesExpression */: return isMatchingReference(source.expression, target); case 211 /* PropertyAccessExpression */: case 212 /* ElementAccessExpression */: @@ -73234,9 +72305,6 @@ function createTypeChecker(host) { return isTypeAssignableTo(assignedType, reducedType) ? reducedType : declaredType; } function isFunctionObjectType(type) { - if (getObjectFlags(type) & 256 /* EvolvingArray */) { - return false; - } const resolved = resolveStructuredTypeMembers(type); return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType)); } @@ -74304,7 +73372,7 @@ function createTypeChecker(host) { return getEvolvingArrayType(getUnionType(map(types, getElementTypeOfEvolvingArrayType))); } const result = recombineUnknownType(getUnionType(sameMap(types, finalizeEvolvingArrayType), subtypeReduction)); - if (result !== declaredType && result.flags & declaredType.flags & 1048576 /* Union */ && arrayIsEqualTo(result.types, declaredType.types)) { + if (result !== declaredType && result.flags & declaredType.flags & 1048576 /* Union */ && arraysEqual(result.types, declaredType.types)) { return declaredType; } return result; @@ -74510,9 +73578,6 @@ function createTypeChecker(host) { break; case 28 /* CommaToken */: return narrowType(type, expr.right, assumeTrue); - // Ordinarily we won't see && and || expressions in control flow analysis because the Binder breaks those - // expressions down to individual conditional control flows. However, we may encounter them when analyzing - // aliased conditional expressions. case 56 /* AmpersandAmpersandToken */: return assumeTrue ? narrowType( narrowType( @@ -74860,7 +73925,6 @@ function createTypeChecker(host) { if (checkDerived) { return filterType(type, (t) => !isTypeDerivedFrom(t, candidate)); } - type = type.flags & 2 /* Unknown */ ? unknownUnionType : type; const trueType2 = getNarrowedType( type, candidate, @@ -74869,7 +73933,7 @@ function createTypeChecker(host) { /*checkDerived*/ false ); - return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2))); + return filterType(type, (t) => !isTypeSubsetOf(t, trueType2)); } if (type.flags & 3 /* AnyOrUnknown */) { return candidate; @@ -74957,7 +74021,6 @@ function createTypeChecker(host) { } } } - // falls through case 110 /* ThisKeyword */: case 108 /* SuperKeyword */: case 211 /* PropertyAccessExpression */: @@ -74967,7 +74030,6 @@ function createTypeChecker(host) { return narrowTypeByCallExpression(type, expr, assumeTrue); case 217 /* ParenthesizedExpression */: case 235 /* NonNullExpression */: - case 238 /* SatisfiesExpression */: return narrowType(type, expr.expression, assumeTrue); case 226 /* BinaryExpression */: return narrowTypeByBinaryExpression(type, expr, assumeTrue); @@ -75019,12 +74081,6 @@ function createTypeChecker(host) { function getControlFlowContainer(node) { return findAncestor(node.parent, (node2) => isFunctionLike(node2) && !getImmediatelyInvokedFunctionExpression(node2) || node2.kind === 268 /* ModuleBlock */ || node2.kind === 307 /* SourceFile */ || node2.kind === 172 /* PropertyDeclaration */); } - function isSymbolAssignedDefinitely(symbol) { - if (symbol.lastAssignmentPos !== void 0) { - return symbol.lastAssignmentPos < 0; - } - return isSymbolAssigned(symbol) && symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0; - } function isSymbolAssigned(symbol) { return !isPastLastAssignment( symbol, @@ -75044,7 +74100,7 @@ function createTypeChecker(host) { markNodeAssignments(parent2); } } - return !symbol.lastAssignmentPos || location && Math.abs(symbol.lastAssignmentPos) < location.pos; + return !symbol.lastAssignmentPos || location && symbol.lastAssignmentPos < location.pos; } function isSomeSymbolAssigned(rootDeclaration) { Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration)); @@ -75065,28 +74121,20 @@ function createTypeChecker(host) { function markNodeAssignments(node) { switch (node.kind) { case 80 /* Identifier */: - const assigmentTarget = getAssignmentTargetKind(node); - if (assigmentTarget !== 0 /* None */) { + if (isAssignmentTarget(node)) { const symbol = getResolvedSymbol(node); - const hasDefiniteAssignment = assigmentTarget === 1 /* Definite */ || symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0; - if (isParameterOrMutableLocalVariable(symbol)) { - if (symbol.lastAssignmentPos === void 0 || Math.abs(symbol.lastAssignmentPos) !== Number.MAX_VALUE) { - const referencingFunction = findAncestor(node, isFunctionOrSourceFile); - const declaringFunction = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); - symbol.lastAssignmentPos = referencingFunction === declaringFunction ? extendAssignmentPosition(node, symbol.valueDeclaration) : Number.MAX_VALUE; - } - if (hasDefiniteAssignment && symbol.lastAssignmentPos > 0) { - symbol.lastAssignmentPos *= -1; - } + if (isParameterOrMutableLocalVariable(symbol) && symbol.lastAssignmentPos !== Number.MAX_VALUE) { + const referencingFunction = findAncestor(node, isFunctionOrSourceFile); + const declaringFunction = findAncestor(symbol.valueDeclaration, isFunctionOrSourceFile); + symbol.lastAssignmentPos = referencingFunction === declaringFunction ? extendAssignmentPosition(node, symbol.valueDeclaration) : Number.MAX_VALUE; } } return; case 281 /* ExportSpecifier */: const exportDeclaration = node.parent.parent; - const name = node.propertyName || node.name; - if (!node.isTypeOnly && !exportDeclaration.isTypeOnly && !exportDeclaration.moduleSpecifier && name.kind !== 11 /* StringLiteral */) { + if (!node.isTypeOnly && !exportDeclaration.isTypeOnly && !exportDeclaration.moduleSpecifier) { const symbol = resolveEntityName( - name, + node.propertyName || node.name, 111551 /* Value */, /*ignoreErrors*/ true, @@ -75094,8 +74142,7 @@ function createTypeChecker(host) { true ); if (symbol && isParameterOrMutableLocalVariable(symbol)) { - const sign = symbol.lastAssignmentPos !== void 0 && symbol.lastAssignmentPos < 0 ? -1 : 1; - symbol.lastAssignmentPos = sign * Number.MAX_VALUE; + symbol.lastAssignmentPos = Number.MAX_VALUE; } } return; @@ -75328,16 +74375,15 @@ function createTypeChecker(host) { } function markJsxAliasReferenced(node) { if (!getJsxNamespaceContainerForImplicitImport(node)) { - const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0; + const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.Cannot_find_name_0 : void 0; const jsxFactoryNamespace = getJsxNamespace(node); const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node; - const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */; let jsxFactorySym; if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) { jsxFactorySym = resolveName( jsxFactoryLocation, jsxFactoryNamespace, - shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, + 111551 /* Value */, jsxFactoryRefErr, /*isUse*/ true @@ -75351,13 +74397,12 @@ function createTypeChecker(host) { } if (isJsxOpeningFragment(node)) { const file = getSourceFileOfNode(node); - const entity = getJsxFactoryEntity(file); - if (entity) { - const localJsxNamespace = getFirstIdentifier(entity).escapedText; + const localJsxNamespace = getLocalJsxNamespace(file); + if (localJsxNamespace) { resolveName( jsxFactoryLocation, localJsxNamespace, - shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, + 111551 /* Value */, jsxFactoryRefErr, /*isUse*/ true @@ -75383,9 +74428,6 @@ function createTypeChecker(host) { function markExportSpecifierAliasReferenced(location) { if (!location.parent.parent.moduleSpecifier && !location.isTypeOnly && !location.parent.parent.isTypeOnly) { const exportedName = location.propertyName || location.name; - if (exportedName.kind === 11 /* StringLiteral */) { - return; - } const symbol = resolveName( exportedName, exportedName.escapedText, @@ -75400,7 +74442,7 @@ function createTypeChecker(host) { const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol); if (!target || getSymbolFlags(target) & 111551 /* Value */) { markExportAsReferenced(location); - markIdentifierAliasReferenced(exportedName); + markIdentifierAliasReferenced(location.propertyName || location.name); } } return; @@ -75516,7 +74558,7 @@ function createTypeChecker(host) { markAliasSymbolAsReferenced(rootSymbol); } else if (forDecoratorMetadata && getIsolatedModules(compilerOptions) && getEmitModuleKind(compilerOptions) >= 5 /* ES2015 */ && !symbolIsValue(rootSymbol) && !some(rootSymbol.declarations, isTypeOnlyImportOrExportDeclaration)) { const diag2 = error2(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled); - const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration); + const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration2); if (aliasDeclaration) { addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName))); } @@ -75540,9 +74582,9 @@ function createTypeChecker(host) { ); } } - function getNarrowedTypeOfSymbol(symbol, location) { + function getNarrowedTypeOfSymbol(symbol, location, checkMode) { var _a; - const type = getTypeOfSymbol(symbol); + const type = getTypeOfSymbol(symbol, checkMode); const declaration = symbol.valueDeclaration; if (declaration) { if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) { @@ -75681,11 +74723,7 @@ function createTypeChecker(host) { } const localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol); let declaration = localOrExportSymbol.valueDeclaration; - const immediateDeclaration = declaration; - if (declaration && declaration.kind === 208 /* BindingElement */ && contains(contextualBindingPatterns, declaration.parent) && findAncestor(node, (parent2) => parent2 === declaration.parent)) { - return nonInferrableAnyType; - } - let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node); + let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode); const assignmentKind = getAssignmentTargetKind(node); if (assignmentKind) { if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) { @@ -75727,8 +74765,7 @@ function createTypeChecker(host) { while (flowContainer !== declarationContainer && (flowContainer.kind === 218 /* FunctionExpression */ || flowContainer.kind === 219 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameterOrMutableLocalVariable(localOrExportSymbol) && isPastLastAssignment(localOrExportSymbol, node))) { flowContainer = getControlFlowContainer(flowContainer); } - const isNeverInitialized = immediateDeclaration && isVariableDeclaration(immediateDeclaration) && !immediateDeclaration.initializer && !immediateDeclaration.exclamationToken && isMutableLocalVariableDeclaration(immediateDeclaration) && !isSymbolAssignedDefinitely(symbol); - const assumeInitialized = isParameter2 || isAlias || isOuterVariable && !isNeverInitialized || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; + const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 281 /* ExportSpecifier */) || node.parent.kind === 235 /* NonNullExpression */ || declaration.kind === 260 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */; const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type); const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer); if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) { @@ -76633,108 +75670,46 @@ function createTypeChecker(host) { function isCircularMappedProperty(symbol) { return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0); } - function isExcludedMappedPropertyName(constraint, propertyNameType) { - if (constraint.flags & 16777216 /* Conditional */) { - const type = constraint; - return !!(getReducedType(getTrueTypeFromConditionalType(type)).flags & 131072 /* Never */) && getActualTypeVariable(getFalseTypeFromConditionalType(type)) === getActualTypeVariable(type.checkType) && isTypeAssignableTo(propertyNameType, type.extendsType); - } - if (constraint.flags & 2097152 /* Intersection */) { - return some(constraint.types, (t) => isExcludedMappedPropertyName(t, propertyNameType)); - } - return false; - } function getTypeOfPropertyOfContextualType(type, name, nameType) { return mapType( type, (t) => { - if (t.flags & 2097152 /* Intersection */) { - let types; - let indexInfoCandidates; - let ignoreIndexInfos = false; - for (const constituentType of t.types) { - if (!(constituentType.flags & 524288 /* Object */)) { - continue; - } - if (isGenericMappedType(constituentType) && getMappedTypeNameTypeKind(constituentType) !== 2 /* Remapping */) { - const substitutedType = getIndexedMappedTypeSubstitutedTypeOfContextualType(constituentType, name, nameType); - types = appendContextualPropertyTypeConstituent(types, substitutedType); - continue; - } - const propertyType = getTypeOfConcretePropertyOfContextualType(constituentType, name); - if (!propertyType) { - if (!ignoreIndexInfos) { - indexInfoCandidates = append(indexInfoCandidates, constituentType); - } - continue; - } - ignoreIndexInfos = true; - indexInfoCandidates = void 0; - types = appendContextualPropertyTypeConstituent(types, propertyType); + var _a; + if (isGenericMappedType(t) && !t.declaration.nameType) { + const constraint = getConstraintTypeFromMappedType(t); + const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint; + const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name)); + if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) { + return substituteIndexedMappedType(t, propertyNameType); + } + } else if (t.flags & 3670016 /* StructuredType */) { + const prop = getPropertyOfType(t, name); + if (prop) { + return isCircularMappedProperty(prop) ? void 0 : removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */)); } - if (indexInfoCandidates) { - for (const candidate of indexInfoCandidates) { - const indexInfoType = getTypeFromIndexInfosOfContextualType(candidate, name, nameType); - types = appendContextualPropertyTypeConstituent(types, indexInfoType); + if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) { + const restType = getElementTypeOfSliceOfTupleType( + t, + t.target.fixedLength, + /*endSkipCount*/ + 0, + /*writing*/ + false, + /*noReductions*/ + true + ); + if (restType) { + return restType; } } - if (!types) { - return; - } - if (types.length === 1) { - return types[0]; - } - return getIntersectionType(types); - } - if (!(t.flags & 524288 /* Object */)) { - return; + return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type; } - return isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */ ? getIndexedMappedTypeSubstitutedTypeOfContextualType(t, name, nameType) : getTypeOfConcretePropertyOfContextualType(t, name) ?? getTypeFromIndexInfosOfContextualType(t, name, nameType); + return void 0; }, /*noReductions*/ true ); } - function appendContextualPropertyTypeConstituent(types, type) { - return type ? append(types, type.flags & 1 /* Any */ ? unknownType : type) : types; - } - function getIndexedMappedTypeSubstitutedTypeOfContextualType(type, name, nameType) { - const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name)); - const constraint = getConstraintTypeFromMappedType(type); - if (type.nameType && isExcludedMappedPropertyName(type.nameType, propertyNameType) || isExcludedMappedPropertyName(constraint, propertyNameType)) { - return; - } - const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint; - if (!isTypeAssignableTo(propertyNameType, constraintOfConstraint)) { - return; - } - return substituteIndexedMappedType(type, propertyNameType); - } - function getTypeOfConcretePropertyOfContextualType(type, name) { - const prop = getPropertyOfType(type, name); - if (!prop || isCircularMappedProperty(prop)) { - return; - } - return removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */)); - } - function getTypeFromIndexInfosOfContextualType(type, name, nameType) { - var _a; - if (isTupleType(type) && isNumericLiteralName(name) && +name >= 0) { - const restType = getElementTypeOfSliceOfTupleType( - type, - type.target.fixedLength, - /*endSkipCount*/ - 0, - /*writing*/ - false, - /*noReductions*/ - true - ); - if (restType) { - return restType; - } - } - return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(type), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type; - } function getContextualTypeForObjectLiteralMethod(node, contextFlags) { Debug.assert(isObjectLiteralMethod(node)); if (node.flags & 67108864 /* InWithStatement */) { @@ -76798,7 +75773,7 @@ function createTypeChecker(host) { return removeMissingType(getTypeArguments(t)[index], !!(t.target.elementFlags[index] && 2 /* Optional */)); } const offset = length2 !== void 0 && (lastSpreadIndex === void 0 || index > lastSpreadIndex) ? length2 - index : 0; - const fixedEndLength = offset > 0 && t.target.combinedFlags & 12 /* Variable */ ? getEndElementCount(t.target, 3 /* Fixed */) : 0; + const fixedEndLength = offset > 0 && t.target.hasRestElement ? getEndElementCount(t.target, 3 /* Fixed */) : 0; if (offset > 0 && offset <= fixedEndLength) { return getTypeArguments(t)[getTypeReferenceArity(t) - offset]; } @@ -77147,7 +76122,7 @@ function createTypeChecker(host) { return getContextualTypeForArgumentAtIndex(node, 0); } function getEffectiveFirstArgumentForJsxSignature(signature, node) { - return isJsxOpeningFragment(node) || getJsxReferenceKind(node) !== 0 /* Component */ ? getJsxPropsTypeFromCallSignature(signature, node) : getJsxPropsTypeFromClassType(signature, node); + return getJsxReferenceKind(node) !== 0 /* Component */ ? getJsxPropsTypeFromCallSignature(signature, node) : getJsxPropsTypeFromClassType(signature, node); } function getJsxPropsTypeFromCallSignature(sig, context) { let propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType); @@ -77178,7 +76153,6 @@ function createTypeChecker(host) { return isTypeAny(instanceType) ? instanceType : getTypeOfPropertyOfType(instanceType, forcedLookupLocation); } function getStaticTypeOfReferencedJsxConstructor(context) { - if (isJsxOpeningFragment(context)) return getJSXFragmentType(context); if (isJsxIntrinsicTagName(context.tagName)) { const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(context); const fakeSignature = createSignatureForJSXIntrinsic(context, result); @@ -77278,14 +76252,13 @@ function createTypeChecker(host) { const paramName = leftName === rightName ? leftName : !leftName ? rightName : !rightName ? leftName : void 0; const paramSymbol = createSymbol( 1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), - paramName || `arg${i}`, - isRestParam ? 32768 /* RestParameter */ : isOptional ? 16384 /* OptionalParameter */ : 0 + paramName || `arg${i}` ); paramSymbol.links.type = isRestParam ? createArrayType(unionParamType) : unionParamType; params[i] = paramSymbol; } if (needsExtraRestElement) { - const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args", 32768 /* RestParameter */); + const restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, "args"); restParamSymbol.links.type = createArrayType(getTypeAtPosition(shorter, longestCount)); if (shorter === right) { restParamSymbol.links.type = instantiateType(restParamSymbol.links.type, mapper); @@ -77300,13 +76273,8 @@ function createTypeChecker(host) { if (left.typeParameters && right.typeParameters) { paramMapper = createTypeMapper(right.typeParameters, left.typeParameters); } - let flags = (left.flags | right.flags) & (167 /* PropagatingFlags */ & ~1 /* HasRestParameter */); const declaration = left.declaration; const params = combineIntersectionParameters(left, right, paramMapper); - const lastParam = lastOrUndefined(params); - if (lastParam && getCheckFlags(lastParam) & 32768 /* RestParameter */) { - flags |= 1 /* HasRestParameter */; - } const thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper); const minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount); const result = createSignature( @@ -77319,7 +76287,7 @@ function createTypeChecker(host) { /*resolvedTypePredicate*/ void 0, minArgCount, - flags + (left.flags | right.flags) & 167 /* PropagatingFlags */ ); result.compositeKind = 2097152 /* Intersection */; result.compositeSignatures = concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]); @@ -77438,7 +76406,7 @@ function createTypeChecker(host) { return globalRegExpType; } function checkSpreadExpression(node, checkMode) { - if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) { + if (languageVersion < 2 /* SpreadElements */) { checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } const arrayOrIterableType = checkExpression(node.expression, checkMode); @@ -77448,7 +76416,7 @@ function createTypeChecker(host) { return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type; } function hasDefaultValue(node) { - return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 303 /* PropertyAssignment */ && hasDefaultValue(node.initializer) || node.kind === 304 /* ShorthandPropertyAssignment */ && !!node.objectAssignmentInitializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; + return node.kind === 208 /* BindingElement */ && !!node.initializer || node.kind === 226 /* BinaryExpression */ && node.operatorToken.kind === 64 /* EqualsToken */; } function isSpreadIntoCallOrNew(node) { const parent2 = walkUpParenthesizedExpressions(node.parent); @@ -77472,7 +76440,7 @@ function createTypeChecker(host) { for (let i = 0; i < elementCount; i++) { const e = elements[i]; if (e.kind === 230 /* SpreadElement */) { - if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) { + if (languageVersion < 2 /* SpreadElements */) { checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */); } const spreadType = checkExpression(e.expression, checkMode, forceTuple); @@ -77591,33 +76559,16 @@ function createTypeChecker(host) { const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */); } - function isSymbolWithComputedName(symbol) { - var _a; - const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0]; - return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name); - } - function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) { - var _a; + function getObjectLiteralIndexInfo(node, offset, properties, keyType) { const propTypes = []; - let components; for (let i = offset; i < properties.length; i++) { const prop = properties[i]; if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) { propTypes.push(getTypeOfSymbol(properties[i])); - if (isSymbolWithComputedName(properties[i])) { - components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]); - } } } const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType; - return createIndexInfo( - keyType, - unionType, - isReadonly, - /*declaration*/ - void 0, - components - ); + return createIndexInfo(keyType, unionType, isConstContext(node)); } function getImmediateAliasedSymbol(symbol) { Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here."); @@ -77634,6 +76585,7 @@ function createTypeChecker(host) { return links.immediateTarget; } function checkObjectLiteral(node, checkMode = 0 /* Normal */) { + var _a; const inDestructuringPattern = isAssignmentTarget(node); checkGrammarObjectLiteralExpression(node, inDestructuringPattern); const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0; @@ -77688,8 +76640,11 @@ function createTypeChecker(host) { if (nameType) { prop.links.nameType = nameType; } - if (inDestructuringPattern && hasDefaultValue(memberDecl)) { - prop.flags |= 16777216 /* Optional */; + if (inDestructuringPattern) { + const isOptional = memberDecl.kind === 303 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer) || memberDecl.kind === 304 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer; + if (isOptional) { + prop.flags |= 16777216 /* Optional */; + } } else if (contextualTypeHasPattern && !(getObjectFlags(contextualType) & 512 /* ObjectLiteralPatternWithComputedProperties */)) { const impliedProp = getPropertyOfType(contextualType, member.escapedName); if (impliedProp) { @@ -77714,7 +76669,7 @@ function createTypeChecker(host) { addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type); } } else if (memberDecl.kind === 305 /* SpreadAssignment */) { - if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) { + if (languageVersion < 2 /* ObjectAssign */) { checkExternalEmitHelpers(memberDecl, 2 /* Assign */); } if (propertiesArray.length > 0) { @@ -77764,6 +76719,21 @@ function createTypeChecker(host) { propertiesArray.push(member); } popContextualType(); + if (contextualTypeHasPattern) { + const rootPatternParent = findAncestor(contextualType.pattern.parent, (n) => n.kind === 260 /* VariableDeclaration */ || n.kind === 226 /* BinaryExpression */ || n.kind === 169 /* Parameter */); + const spreadOrOutsideRootObject = findAncestor(node, (n) => n === rootPatternParent || n.kind === 305 /* SpreadAssignment */); + if (spreadOrOutsideRootObject.kind !== 305 /* SpreadAssignment */) { + for (const prop of getPropertiesOfType(contextualType)) { + if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) { + if (!(prop.flags & 16777216 /* Optional */)) { + error2(prop.valueDeclaration || ((_a = tryCast(prop, isTransientSymbol)) == null ? void 0 : _a.links.bindingElement), Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value); + } + propertiesTable.set(prop.escapedName, prop); + propertiesArray.push(prop); + } + } + } + } if (isErrorType(spread)) { return errorType; } @@ -77780,10 +76750,9 @@ function createTypeChecker(host) { return createObjectLiteralType(); function createObjectLiteralType() { const indexInfos = []; - const isReadonly = isConstContext(node); - if (hasComputedStringProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, stringType)); - if (hasComputedNumberProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, numberType)); - if (hasComputedSymbolProperty) indexInfos.push(getObjectLiteralIndexInfo(isReadonly, offset, propertiesArray, esSymbolType)); + if (hasComputedStringProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, stringType)); + if (hasComputedNumberProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, numberType)); + if (hasComputedSymbolProperty) indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType)); const result = createAnonymousType(node.symbol, propertiesTable, emptyArray, emptyArray, indexInfos); result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; if (isJSObjectLiteral) { @@ -77832,8 +76801,7 @@ function createTypeChecker(host) { ); } checkJsxChildren(node); - const jsxElementType = getJsxElementTypeAt(node); - return isErrorType(jsxElementType) ? anyType : jsxElementType; + return getJsxElementTypeAt(node) || anyType; } function isHyphenatedJsxName(name) { return name.includes("-"); @@ -77845,6 +76813,8 @@ function createTypeChecker(host) { return node.initializer ? checkExpressionForMutableLocation(node.initializer, checkMode) : trueType; } function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode = 0 /* Normal */) { + const attributes = openingLikeElement.attributes; + const contextualType = getContextualType2(attributes, 0 /* None */); const allAttributesTable = strictNullChecks ? createSymbolTable() : void 0; let attributesTable = createSymbolTable(); let spread = emptyJsxObjectType; @@ -77853,105 +76823,96 @@ function createTypeChecker(host) { let explicitlySpecifyChildrenAttribute = false; let objectFlags = 2048 /* JsxAttributes */; const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(openingLikeElement)); - const isJsxOpenFragment = isJsxOpeningFragment(openingLikeElement); - let attributesSymbol; - let attributeParent = openingLikeElement; - if (!isJsxOpenFragment) { - const attributes = openingLikeElement.attributes; - attributesSymbol = attributes.symbol; - attributeParent = attributes; - const contextualType = getContextualType2(attributes, 0 /* None */); - for (const attributeDecl of attributes.properties) { - const member = attributeDecl.symbol; - if (isJsxAttribute(attributeDecl)) { - const exprType = checkJsxAttribute(attributeDecl, checkMode); - objectFlags |= getObjectFlags(exprType) & 458752 /* PropagatingFlags */; - const attributeSymbol = createSymbol(4 /* Property */ | member.flags, member.escapedName); - attributeSymbol.declarations = member.declarations; - attributeSymbol.parent = member.parent; - if (member.valueDeclaration) { - attributeSymbol.valueDeclaration = member.valueDeclaration; - } - attributeSymbol.links.type = exprType; - attributeSymbol.links.target = member; - attributesTable.set(attributeSymbol.escapedName, attributeSymbol); - allAttributesTable == null ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol); - if (getEscapedTextOfJsxAttributeName(attributeDecl.name) === jsxChildrenPropertyName) { - explicitlySpecifyChildrenAttribute = true; - } - if (contextualType) { - const prop = getPropertyOfType(contextualType, member.escapedName); - if (prop && prop.declarations && isDeprecatedSymbol(prop) && isIdentifier(attributeDecl.name)) { - addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText); - } - } - if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) { - const inferenceContext = getInferenceContext(attributes); - Debug.assert(inferenceContext); - const inferenceNode = attributeDecl.initializer.expression; - addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); - } - } else { - Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); - if (attributesTable.size > 0) { - spread = getSpreadType( - spread, - createJsxAttributesTypeHelper(), - attributes.symbol, - objectFlags, - /*readonly*/ - false - ); - attributesTable = createSymbolTable(); - } - const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */)); - if (isTypeAny(exprType)) { - hasSpreadAnyType = true; - } - if (isValidSpreadType(exprType)) { - spread = getSpreadType( - spread, - exprType, - attributes.symbol, - objectFlags, - /*readonly*/ - false - ); - if (allAttributesTable) { - checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); - } - } else { - error2(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); - typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; + for (const attributeDecl of attributes.properties) { + const member = attributeDecl.symbol; + if (isJsxAttribute(attributeDecl)) { + const exprType = checkJsxAttribute(attributeDecl, checkMode); + objectFlags |= getObjectFlags(exprType) & 458752 /* PropagatingFlags */; + const attributeSymbol = createSymbol(4 /* Property */ | member.flags, member.escapedName); + attributeSymbol.declarations = member.declarations; + attributeSymbol.parent = member.parent; + if (member.valueDeclaration) { + attributeSymbol.valueDeclaration = member.valueDeclaration; + } + attributeSymbol.links.type = exprType; + attributeSymbol.links.target = member; + attributesTable.set(attributeSymbol.escapedName, attributeSymbol); + allAttributesTable == null ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol); + if (getEscapedTextOfJsxAttributeName(attributeDecl.name) === jsxChildrenPropertyName) { + explicitlySpecifyChildrenAttribute = true; + } + if (contextualType) { + const prop = getPropertyOfType(contextualType, member.escapedName); + if (prop && prop.declarations && isDeprecatedSymbol(prop) && isIdentifier(attributeDecl.name)) { + addDeprecatedSuggestion(attributeDecl.name, prop.declarations, attributeDecl.name.escapedText); } } - } - if (!hasSpreadAnyType) { + if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && isContextSensitive(attributeDecl)) { + const inferenceContext = getInferenceContext(attributes); + Debug.assert(inferenceContext); + const inferenceNode = attributeDecl.initializer.expression; + addIntraExpressionInferenceSite(inferenceContext, inferenceNode, exprType); + } + } else { + Debug.assert(attributeDecl.kind === 293 /* JsxSpreadAttribute */); if (attributesTable.size > 0) { spread = getSpreadType( spread, - createJsxAttributesTypeHelper(), + createJsxAttributesType(), attributes.symbol, objectFlags, /*readonly*/ false ); + attributesTable = createSymbolTable(); } + const exprType = getReducedType(checkExpression(attributeDecl.expression, checkMode & 2 /* Inferential */)); + if (isTypeAny(exprType)) { + hasSpreadAnyType = true; + } + if (isValidSpreadType(exprType)) { + spread = getSpreadType( + spread, + exprType, + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); + if (allAttributesTable) { + checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl); + } + } else { + error2(attributeDecl.expression, Diagnostics.Spread_types_may_only_be_created_from_object_types); + typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType; + } + } + } + if (!hasSpreadAnyType) { + if (attributesTable.size > 0) { + spread = getSpreadType( + spread, + createJsxAttributesType(), + attributes.symbol, + objectFlags, + /*readonly*/ + false + ); } } - const parent2 = openingLikeElement.parent; - if ((isJsxElement(parent2) && parent2.openingElement === openingLikeElement || isJsxFragment(parent2) && parent2.openingFragment === openingLikeElement) && getSemanticJsxChildren(parent2.children).length > 0) { + const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0; + if (parent2 && parent2.openingElement === openingLikeElement && getSemanticJsxChildren(parent2.children).length > 0) { const childrenTypes = checkJsxChildren(parent2, checkMode); if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") { if (explicitlySpecifyChildrenAttribute) { - error2(attributeParent, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); + error2(attributes, Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, unescapeLeadingUnderscores(jsxChildrenPropertyName)); } - const contextualType = isJsxOpeningElement(openingLikeElement) ? getApparentTypeOfContextualType( + const contextualType2 = getApparentTypeOfContextualType( openingLikeElement.attributes, /*contextFlags*/ void 0 - ) : void 0; - const childrenContextualType = contextualType && getTypeOfPropertyOfContextualType(contextualType, jsxChildrenPropertyName); + ); + const childrenContextualType = contextualType2 && getTypeOfPropertyOfContextualType(contextualType2, jsxChildrenPropertyName); const childrenPropSymbol = createSymbol(4 /* Property */, jsxChildrenPropertyName); childrenPropSymbol.links.type = childrenTypes.length === 1 ? childrenTypes[0] : childrenContextualType && someType(childrenContextualType, isTupleLikeType) ? createTupleType(childrenTypes) : createArrayType(getUnionType(childrenTypes)); childrenPropSymbol.valueDeclaration = factory.createPropertySignature( @@ -77963,14 +76924,14 @@ function createTypeChecker(host) { /*type*/ void 0 ); - setParent(childrenPropSymbol.valueDeclaration, attributeParent); + setParent(childrenPropSymbol.valueDeclaration, attributes); childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol; const childPropMap = createSymbolTable(); childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol); spread = getSpreadType( spread, - createAnonymousType(attributesSymbol, childPropMap, emptyArray, emptyArray, emptyArray), - attributesSymbol, + createAnonymousType(attributes.symbol, childPropMap, emptyArray, emptyArray, emptyArray), + attributes.symbol, objectFlags, /*readonly*/ false @@ -77983,17 +76944,14 @@ function createTypeChecker(host) { if (typeToIntersect && spread !== emptyJsxObjectType) { return getIntersectionType([typeToIntersect, spread]); } - return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesTypeHelper() : spread); - function createJsxAttributesTypeHelper() { + return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesType() : spread); + function createJsxAttributesType() { objectFlags |= 8192 /* FreshLiteral */; - return createJsxAttributesType(objectFlags, attributesSymbol, attributesTable); + const result = createAnonymousType(attributes.symbol, attributesTable, emptyArray, emptyArray, emptyArray); + result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; + return result; } } - function createJsxAttributesType(objectFlags, attributesSymbol, attributesTable) { - const result = createAnonymousType(attributesSymbol, attributesTable, emptyArray, emptyArray, emptyArray); - result.objectFlags |= objectFlags | 8192 /* FreshLiteral */ | 128 /* ObjectLiteral */ | 131072 /* ContainsObjectOrArrayLiteral */; - return result; - } function checkJsxChildren(node, checkMode) { const childrenTypes = []; for (const child of node.children) { @@ -78075,7 +77033,7 @@ function createTypeChecker(host) { return void 0; } const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */; - const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.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; + const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations; const specifier = getJSXRuntimeImportSpecifier(file, runtimeImportSpecifier); const mod = resolveExternalModule(specifier || location, runtimeImportSpecifier, errorMessage, location); const result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : void 0; @@ -78152,9 +77110,6 @@ function createTypeChecker(host) { return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace); } function getJsxElementChildrenPropertyName(jsxNamespace) { - if (compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */) { - return "children"; - } return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace); } function getUninstantiatedJsxSignaturesOfType(elementType, caller) { @@ -78302,10 +77257,10 @@ function createTypeChecker(host) { } checkJsxPreconditions(node); markJsxAliasReferenced(node); - const sig = getResolvedSignature(node); - checkDeprecatedSignature(sig, node); if (isNodeOpeningLikeElement) { const jsxOpeningLikeNode = node; + const sig = getResolvedSignature(jsxOpeningLikeNode); + checkDeprecatedSignature(sig, node); const elementTypeConstraint = getJsxElementTypeTypeAt(jsxOpeningLikeNode); if (elementTypeConstraint !== void 0) { const tagName = jsxOpeningLikeNode.tagName; @@ -78454,21 +77409,8 @@ function createTypeChecker(host) { function getEnclosingClassFromThisParameter(node) { const thisParameter = getThisParameterFromNodeContext(node); let thisType = (thisParameter == null ? void 0 : thisParameter.type) && getTypeFromTypeNode(thisParameter.type); - if (thisType) { - if (thisType.flags & 262144 /* TypeParameter */) { - thisType = getConstraintOfTypeParameter(thisType); - } - } else { - const thisContainer = getThisContainer( - node, - /*includeArrowFunctions*/ - false, - /*includeClassComputedPropertyName*/ - false - ); - if (isFunctionLike(thisContainer)) { - thisType = getContextualThisParameterType(thisContainer); - } + if (thisType && thisType.flags & 262144 /* TypeParameter */) { + thisType = getConstraintOfTypeParameter(thisType); } if (thisType && getObjectFlags(thisType) & (3 /* ClassOrInterface */ | 4 /* Reference */)) { return getTargetType(thisType); @@ -78706,7 +77648,7 @@ function createTypeChecker(host) { const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType; let prop; if (isPrivateIdentifier(right)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { if (assignmentKind !== 0 /* None */) { checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */); } @@ -78938,13 +77880,6 @@ function createTypeChecker(host) { return getIntersectionType(x); } function reportNonexistentProperty(propNode, containingType, isUncheckedJS) { - const links = getNodeLinks(propNode); - const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set()); - const key = `${getTypeId(containingType)}|${isUncheckedJS}`; - if (cache.has(key)) { - return; - } - cache.add(key); let errorInfo; let relatedInfo; if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 402784252 /* Primitive */)) { @@ -78991,7 +77926,7 @@ function createTypeChecker(host) { addErrorOrSuggestion(!isUncheckedJS || errorInfo.code !== Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, resultDiagnostic); } function containerSeemsToBeEmptyDomElement(containingType) { - return compilerOptions.lib && !compilerOptions.lib.includes("dom") && everyContainedType(containingType, (type) => type.symbol && /^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) && isEmptyObjectType(containingType); + return compilerOptions.lib && !compilerOptions.lib.includes("dom") && everyContainedType(containingType, (type) => type.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) && isEmptyObjectType(containingType); } function typeHasStaticProperty(propName, containingType) { const prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName); @@ -79336,7 +78271,6 @@ function createTypeChecker(host) { return !!(t.flags & (16384 /* Void */ | 32768 /* Undefined */ | 2 /* Unknown */ | 1 /* Any */)); } function hasCorrectArity(node, args, signature, signatureHelpTrailingComma = false) { - if (isJsxOpeningFragment(node)) return true; let argCount; let callIsIncomplete = false; let effectiveParameterCount = getParameterCount(signature); @@ -79433,7 +78367,7 @@ function createTypeChecker(host) { return void 0; } function instantiateSignatureInContextOf(signature, contextualSignature, inferenceContext, compareTypes) { - const context = createInferenceContext(getTypeParametersForMapper(signature), signature, 0 /* None */, compareTypes); + const context = createInferenceContext(signature.typeParameters, signature, 0 /* None */, compareTypes); const restType = getEffectiveRestType(contextualSignature); const mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper); const sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature; @@ -79610,9 +78544,9 @@ function createTypeChecker(host) { } return 2 /* Mixed */; } - function checkApplicableSignatureForJsxCallLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer) { + function checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer) { const paramType = getEffectiveFirstArgumentForJsxSignature(signature, node); - const attributesType = isJsxOpeningFragment(node) ? createJsxAttributesTypeFromAttributesProperty(node) : checkExpressionWithContextualType( + const attributesType = checkExpressionWithContextualType( node.attributes, paramType, /*inferenceContext*/ @@ -79624,8 +78558,8 @@ function createTypeChecker(host) { checkAttributesType, paramType, relation, - reportErrors2 ? isJsxOpeningFragment(node) ? node : node.tagName : void 0, - isJsxOpeningFragment(node) ? void 0 : node.attributes, + reportErrors2 ? node.tagName : void 0, + node.attributes, /*headMessage*/ void 0, containingMessageChain, @@ -79696,11 +78630,10 @@ function createTypeChecker(host) { return true; } if (reportErrors2) { - const tagName = node.tagName; - const diag2 = createDiagnosticForNode(tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount); - const tagNameDeclaration = (_a = getSymbolAtLocation(tagName)) == null ? void 0 : _a.valueDeclaration; + const diag2 = createDiagnosticForNode(node.tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(node.tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount); + const tagNameDeclaration = (_a = getSymbolAtLocation(node.tagName)) == null ? void 0 : _a.valueDeclaration; if (tagNameDeclaration) { - addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(tagName))); + addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(node.tagName))); } if (errorOutputContainer && errorOutputContainer.skipLogging) { (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2); @@ -79713,13 +78646,13 @@ function createTypeChecker(host) { } } function getEffectiveCheckNode(argument) { - const flags = isInJSFile(argument) ? 1 /* Parentheses */ | 32 /* Satisfies */ | -2147483648 /* ExcludeJSDocTypeAssertion */ : 1 /* Parentheses */ | 32 /* Satisfies */; - return skipOuterExpressions(argument, flags); + argument = skipParentheses(argument); + return isSatisfiesExpression(argument) ? skipParentheses(argument.expression) : argument; } function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) { const errorOutputContainer = { errors: void 0, skipLogging: true }; - if (isJsxCallLike(node)) { - if (!checkApplicableSignatureForJsxCallLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer)) { + if (isJsxOpeningLikeElement(node)) { + if (!checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors2, containingMessageChain, errorOutputContainer)) { Debug.assert(!reportErrors2 || !!errorOutputContainer.errors, "jsx should have errors when reporting errors"); return errorOutputContainer.errors || emptyArray; } @@ -79819,9 +78752,6 @@ function createTypeChecker(host) { return result; } function getEffectiveCallArguments(node) { - if (isJsxOpeningFragment(node)) { - return [createSyntheticExpression(node, emptyFreshJsxObjectType)]; - } if (node.kind === 215 /* TaggedTemplateExpression */) { const template = node.template; const args2 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())]; @@ -80106,32 +79036,25 @@ function createTypeChecker(host) { const isTaggedTemplate = node.kind === 215 /* TaggedTemplateExpression */; const isDecorator2 = node.kind === 170 /* Decorator */; const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node); - const isJsxOpenFragment = isJsxOpeningFragment(node); const isInstanceof = node.kind === 226 /* BinaryExpression */; const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray; - let candidatesForArgumentError; - let candidateForArgumentArityError; - let candidateForTypeArgumentError; - let result; - let argCheckMode = 0 /* Normal */; - let candidates = []; let typeArguments; - if (!isDecorator2 && !isInstanceof && !isSuperCall(node) && !isJsxOpenFragment) { + if (!isDecorator2 && !isInstanceof && !isSuperCall(node)) { typeArguments = node.typeArguments; if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 108 /* SuperKeyword */) { forEach(typeArguments, checkSourceElement); } } - candidates = candidatesOutArray || []; + const candidates = candidatesOutArray || []; reorderCandidates(signatures, candidates, callChainFlags); - if (!isJsxOpenFragment) { - Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); - } + Debug.assert(candidates.length, "Revert #54442 and add a testcase with whatever triggered this"); const args = getEffectiveCallArguments(node); const isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters; - if (!isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive)) { - argCheckMode = 4 /* SkipContextSensitive */; - } + let argCheckMode = !isDecorator2 && !isSingleNonGenericCandidate && some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */; + let candidatesForArgumentError; + let candidateForArgumentArityError; + let candidateForTypeArgumentError; + let result; const signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 213 /* CallExpression */ && node.arguments.hasTrailingComma; if (candidates.length > 1) { result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); @@ -80139,16 +79062,11 @@ function createTypeChecker(host) { if (!result) { result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma); } - const links = getNodeLinks(node); - if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) { - Debug.assert(links.resolvedSignature); - return links.resolvedSignature; - } if (result) { return result; } result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode); - links.resolvedSignature = result; + getNodeLinks(node).resolvedSignature = result; if (reportErrors2) { if (!headMessage && isInstanceof) { headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method; @@ -80256,7 +79174,7 @@ function createTypeChecker(host) { true, headMessage ); - } else if (!isJsxOpenFragment) { + } else { const signaturesWithCorrectTypeArgumentArity = filter(signatures, (s) => hasCorrectTypeArgumentArity(s, typeArguments)); if (signaturesWithCorrectTypeArgumentArity.length === 0) { diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments, headMessage)); @@ -80266,12 +79184,12 @@ function createTypeChecker(host) { } } return result; - function addImplementationSuccessElaboration(failed2, diagnostic) { + function addImplementationSuccessElaboration(failed, diagnostic) { var _a, _b; const oldCandidatesForArgumentError = candidatesForArgumentError; const oldCandidateForArgumentArityError = candidateForArgumentArityError; const oldCandidateForTypeArgumentError = candidateForTypeArgumentError; - const failedSignatureDeclarations = ((_b = (_a = failed2.declaration) == null ? void 0 : _a.symbol) == null ? void 0 : _b.declarations) || emptyArray; + const failedSignatureDeclarations = ((_b = (_a = failed.declaration) == null ? void 0 : _a.symbol) == null ? void 0 : _b.declarations) || emptyArray; const isOverload2 = failedSignatureDeclarations.length > 1; const implDecl = isOverload2 ? find(failedSignatureDeclarations, (d) => isFunctionLikeDeclaration(d) && nodeIsPresent(d.body)) : void 0; if (implDecl) { @@ -80904,55 +79822,24 @@ function createTypeChecker(host) { 0 /* None */ ); } - function getJSXFragmentType(node) { - const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node)); - if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType; - const jsxFragmentFactoryName = getJsxNamespace(node); - const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null"; - if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType; - const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */; - const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0; - const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName( - node, - jsxFragmentFactoryName, - shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */, - /*nameNotFoundMessage*/ - jsxFactoryRefErr, - /*isUse*/ - true - ); - if (jsxFactorySymbol === void 0) return sourceFileLinks.jsxFragmentType = errorType; - if (jsxFactorySymbol.escapedName === ReactNames.Fragment) return sourceFileLinks.jsxFragmentType = getTypeOfSymbol(jsxFactorySymbol); - const resolvedAlias = (jsxFactorySymbol.flags & 2097152 /* Alias */) === 0 ? jsxFactorySymbol : resolveAlias(jsxFactorySymbol); - const reactExports = jsxFactorySymbol && getExportsOfSymbol(resolvedAlias); - const typeSymbol = reactExports && getSymbol2(reactExports, ReactNames.Fragment, 2 /* BlockScopedVariable */); - const type = typeSymbol && getTypeOfSymbol(typeSymbol); - return sourceFileLinks.jsxFragmentType = type === void 0 ? errorType : type; - } function resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode) { - const isJsxOpenFragment = isJsxOpeningFragment(node); - let exprTypes; - if (!isJsxOpenFragment) { - if (isJsxIntrinsicTagName(node.tagName)) { - const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node); - const fakeSignature = createSignatureForJSXIntrinsic(node, result); - checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType( - node.attributes, - getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), - /*inferenceContext*/ - void 0, - 0 /* Normal */ - ), result, node.tagName, node.attributes); - if (length(node.typeArguments)) { - forEach(node.typeArguments, checkSourceElement); - diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), node.typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, 0, length(node.typeArguments))); - } - return fakeSignature; + if (isJsxIntrinsicTagName(node.tagName)) { + const result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node); + const fakeSignature = createSignatureForJSXIntrinsic(node, result); + checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType( + node.attributes, + getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), + /*inferenceContext*/ + void 0, + 0 /* Normal */ + ), result, node.tagName, node.attributes); + if (length(node.typeArguments)) { + forEach(node.typeArguments, checkSourceElement); + diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), node.typeArguments, Diagnostics.Expected_0_type_arguments_but_got_1, 0, length(node.typeArguments))); } - exprTypes = checkExpression(node.tagName); - } else { - exprTypes = getJSXFragmentType(node); + return fakeSignature; } + const exprTypes = checkExpression(node.tagName); const apparentType = getApparentType(exprTypes); if (isErrorType(apparentType)) { return resolveErrorCall(node); @@ -80968,11 +79855,7 @@ function createTypeChecker(host) { return resolveUntypedCall(node); } if (signatures.length === 0) { - if (isJsxOpenFragment) { - error2(node, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node)); - } else { - error2(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); - } + error2(node.tagName, Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, getTextOfNode(node.tagName)); return resolveErrorCall(node); } return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */); @@ -81014,7 +79897,6 @@ function createTypeChecker(host) { return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode); case 170 /* Decorator */: return resolveDecorator(node, candidatesOutArray, checkMode); - case 289 /* JsxOpeningFragment */: case 286 /* JsxOpeningElement */: case 285 /* JsxSelfClosingElement */: return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode); @@ -81034,9 +79916,12 @@ function createTypeChecker(host) { resolutionStart = resolutionTargets.length; } links.resolvedSignature = resolvingSignature; - const result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */); + let result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */); resolutionStart = saveResolutionStart; if (result !== resolvingSignature) { + if (links.resolvedSignature !== resolvingSignature) { + result = links.resolvedSignature; + } links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached; } return result; @@ -81302,7 +80187,7 @@ function createTypeChecker(host) { return createAnonymousType(anonymousSymbol, memberTable, emptyArray, emptyArray, emptyArray); } function getTypeWithSyntheticDefaultOnly(type, symbol, originalSymbol, moduleSpecifier) { - const hasDefaultOnly = isOnlyImportableAsDefault(moduleSpecifier); + const hasDefaultOnly = isOnlyImportedAsDefault(moduleSpecifier); if (hasDefaultOnly && type && !isErrorType(type)) { const synthType = type; if (!synthType.defaultOnlyType) { @@ -81380,7 +80265,7 @@ function createTypeChecker(host) { } function checkTaggedTemplateExpression(node) { if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments); - if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) { + if (languageVersion < 2 /* TaggedTemplates */) { checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */); } const signature = getResolvedSignature(node); @@ -81393,11 +80278,6 @@ function createTypeChecker(host) { if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) { grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead); } - if (compilerOptions.erasableSyntaxOnly) { - const start = skipTrivia(file.text, node.pos); - const end = node.expression.pos; - diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled)); - } } return checkAssertionWorker(node, checkMode); } @@ -81504,17 +80384,9 @@ function createTypeChecker(host) { if (exprType === silentNeverType || isErrorType(exprType) || !some(typeArguments)) { return exprType; } - const links = getNodeLinks(node); - if (!links.instantiationExpressionTypes) { - links.instantiationExpressionTypes = /* @__PURE__ */ new Map(); - } - if (links.instantiationExpressionTypes.has(exprType.id)) { - return links.instantiationExpressionTypes.get(exprType.id); - } let hasSomeApplicableSignature = false; let nonApplicableType; const result = getInstantiatedType(exprType); - links.instantiationExpressionTypes.set(exprType.id, result); const errorType2 = hasSomeApplicableSignature ? nonApplicableType : exprType; if (errorType2) { diagnostics.add(createDiagnosticForNodeArray(getSourceFileOfNode(node), typeArguments, Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable, typeToString(errorType2))); @@ -81620,12 +80492,12 @@ function createTypeChecker(host) { } } function checkImportMetaProperty(node) { - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { + if (moduleKind === 100 /* Node16 */ || moduleKind === 199 /* NodeNext */) { if (getSourceFileOfNode(node).impliedNodeFormat !== 99 /* ESNext */) { error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output); } } else if (moduleKind < 6 /* ES2020 */ && moduleKind !== 4 /* System */) { - error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext); + error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext); } const file = getSourceFileOfNode(node); Debug.assert(!!(file.flags & 8388608 /* PossiblyContainsImportMeta */), "Containing file is missing import meta node flag."); @@ -81641,45 +80513,14 @@ function createTypeChecker(host) { !!declaration && (hasInitializer(declaration) || isOptionalDeclaration(declaration)) ); } - function getTupleElementLabelFromBindingElement(node, index, elementFlags) { - switch (node.name.kind) { - case 80 /* Identifier */: { - const name = node.name.escapedText; - if (node.dotDotDotToken) { - return elementFlags & 12 /* Variable */ ? name : `${name}_${index}`; - } else { - return elementFlags & 3 /* Fixed */ ? name : `${name}_n`; - } - } - case 207 /* ArrayBindingPattern */: { - if (node.dotDotDotToken) { - const elements = node.name.elements; - const lastElement = tryCast(lastOrUndefined(elements), isBindingElement); - const elementCount = elements.length - ((lastElement == null ? void 0 : lastElement.dotDotDotToken) ? 1 : 0); - if (index < elementCount) { - const element = elements[index]; - if (isBindingElement(element)) { - return getTupleElementLabelFromBindingElement(element, index, elementFlags); - } - } else if (lastElement == null ? void 0 : lastElement.dotDotDotToken) { - return getTupleElementLabelFromBindingElement(lastElement, index - elementCount, elementFlags); - } - } - break; - } - } - return `arg_${index}`; - } - function getTupleElementLabel(d, index = 0, elementFlags = 3 /* Fixed */, restSymbol) { + function getTupleElementLabel(d, index, restParameterName = "arg") { if (!d) { - const restParameter = tryCast(restSymbol == null ? void 0 : restSymbol.valueDeclaration, isParameter); - return restParameter ? getTupleElementLabelFromBindingElement(restParameter, index, elementFlags) : `${(restSymbol == null ? void 0 : restSymbol.escapedName) ?? "arg"}_${index}`; + return `${restParameterName}_${index}`; } Debug.assert(isIdentifier(d.name)); return d.name.escapedText; } function getParameterNameAtPosition(signature, pos, overrideRestType) { - var _a; const paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0); if (pos < paramCount) { return signature.parameters[pos].escapedName; @@ -81687,11 +80528,9 @@ function createTypeChecker(host) { const restParameter = signature.parameters[paramCount] || unknownSymbol; const restType = overrideRestType || getTypeOfSymbol(restParameter); if (isTupleType(restType)) { - const tupleType = restType.target; + const associatedNames = restType.target.labeledElementDeclarations; const index = pos - paramCount; - const associatedName = (_a = tupleType.labeledElementDeclarations) == null ? void 0 : _a[index]; - const elementFlags = tupleType.elementFlags[index]; - return getTupleElementLabel(associatedName, index, elementFlags, restParameter); + return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName); } return restParameter.escapedName; } @@ -81764,7 +80603,7 @@ function createTypeChecker(host) { if (signatureHasRestParameter(signature)) { const restType = getTypeOfSymbol(signature.parameters[paramCount]); const index = pos - paramCount; - if (!isTupleType(restType) || restType.target.combinedFlags & 12 /* Variable */ || index < restType.target.fixedLength) { + if (!isTupleType(restType) || restType.target.hasRestElement || index < restType.target.fixedLength) { return getIndexedAccessType(restType, getNumberLiteralType(index)); } } @@ -81802,7 +80641,7 @@ function createTypeChecker(host) { if (signatureHasRestParameter(signature)) { const restType = getTypeOfSymbol(signature.parameters[length2 - 1]); if (isTupleType(restType)) { - return length2 + restType.target.fixedLength - (restType.target.combinedFlags & 12 /* Variable */ ? 0 : 1); + return length2 + restType.target.fixedLength - (restType.target.hasRestElement ? 0 : 1); } } return length2; @@ -81845,7 +80684,7 @@ function createTypeChecker(host) { function hasEffectiveRestParameter(signature) { if (signatureHasRestParameter(signature)) { const restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]); - return !isTupleType(restType) || !!(restType.target.combinedFlags & 12 /* Variable */); + return !isTupleType(restType) || restType.target.hasRestElement; } return false; } @@ -81855,7 +80694,7 @@ function createTypeChecker(host) { if (!isTupleType(restType)) { return isTypeAny(restType) ? anyArrayType : restType; } - if (restType.target.combinedFlags & 12 /* Variable */) { + if (restType.target.hasRestElement) { return sliceTupleType(restType, restType.target.fixedLength); } } @@ -82369,15 +81208,30 @@ function createTypeChecker(host) { /*errorNode*/ void 0 ) || unknownType; + nextType = resolver.resolveIterationType( + nextType, + /*errorNode*/ + void 0 + ) || unknownType; if (globalGeneratorType === emptyGenericType) { - const globalIterableIteratorType = resolver.getGlobalIterableIteratorType( + const globalType = resolver.getGlobalIterableIteratorType( /*reportErrors*/ false ); - if (globalIterableIteratorType !== emptyGenericType) { - return createTypeFromGenericGlobalType(globalIterableIteratorType, [yieldType, returnType, nextType]); + const iterationTypes = globalType !== emptyGenericType ? getIterationTypesOfGlobalIterableType(globalType, resolver) : void 0; + const iterableIteratorReturnType = iterationTypes ? iterationTypes.returnType : anyType; + const iterableIteratorNextType = iterationTypes ? iterationTypes.nextType : undefinedType; + if (isTypeAssignableTo(returnType, iterableIteratorReturnType) && isTypeAssignableTo(iterableIteratorNextType, nextType)) { + if (globalType !== emptyGenericType) { + return createTypeFromGenericGlobalType(globalType, [yieldType]); + } + resolver.getGlobalIterableIteratorType( + /*reportErrors*/ + true + ); + return emptyObjectType; } - resolver.getGlobalIterableIteratorType( + resolver.getGlobalGeneratorType( /*reportErrors*/ true ); @@ -82454,7 +81308,7 @@ function createTypeChecker(host) { } return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts); } - const type = getBaseConstraintOrType(checkExpressionCached(node.expression)); + const type = checkExpressionCached(node.expression); if (!isLiteralType(type)) { return false; } @@ -82569,7 +81423,7 @@ function createTypeChecker(host) { }); } function checkIfExpressionRefinesParameter(func, expr, param, initType) { - const antecedent = canHaveFlowNode(expr) && expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || createFlowNode( + const antecedent = expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || createFlowNode( 2 /* Start */, /*node*/ void 0, @@ -82717,7 +81571,19 @@ function createTypeChecker(host) { const exprType = checkExpression(node.body); const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags); if (returnOrPromisedType) { - checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType); + const effectiveCheckNode = getEffectiveCheckNode(node.body); + if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */) { + const awaitedType = checkAwaitedType( + exprType, + /*withAlias*/ + false, + effectiveCheckNode, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ); + checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode); + } else { + checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode); + } } } } @@ -82771,7 +81637,7 @@ function createTypeChecker(host) { } if (isReadonlySymbol(symbol)) { if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) { - const ctor = getControlFlowContainer(expr); + const ctor = getContainingFunction(expr); if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) { return true; } @@ -82800,7 +81666,7 @@ function createTypeChecker(host) { return false; } function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) { - const node = skipOuterExpressions(expr, 38 /* Assertions */ | 1 /* Parentheses */); + const node = skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */); if (node.kind !== 80 /* Identifier */ && !isAccessExpression(node)) { error2(expr, invalidReferenceMessage); return false; @@ -82867,7 +81733,6 @@ function createTypeChecker(host) { } switch (moduleKind) { case 100 /* Node16 */: - case 101 /* Node18 */: case 199 /* NodeNext */: if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); @@ -82877,7 +81742,6 @@ function createTypeChecker(host) { hasError = true; break; } - // fallthrough case 7 /* ES2022 */: case 99 /* ESNext */: case 200 /* Preserve */: @@ -82885,10 +81749,9 @@ function createTypeChecker(host) { if (languageVersion >= 4 /* ES2017 */) { break; } - // fallthrough default: span ?? (span = getSpanOfTokenAtPosition(sourceFile, node.pos)); - const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher; + const message = isAwaitExpression(node) ? Diagnostics.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 : Diagnostics.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; diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message)); hasError = true; break; @@ -83094,7 +81957,7 @@ function createTypeChecker(host) { return silentNeverType; } if (isPrivateIdentifier(left)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */); } if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) { @@ -83148,14 +82011,14 @@ function createTypeChecker(host) { ); } } - const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */ | (hasDefaultValue(property) ? 16 /* AllowMissing */ : 0), name); + const elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name); const type = getFlowTypeOfDestructuring(property, elementType); return checkDestructuringAssignment(property.kind === 304 /* ShorthandPropertyAssignment */ ? property : property.initializer, type); } else if (property.kind === 305 /* SpreadAssignment */) { if (propertyIndex < properties.length - 1) { error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern); } else { - if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) { + if (languageVersion < 5 /* ObjectSpreadRest */) { checkExternalEmitHelpers(property, 4 /* Rest */); } const nonRestNames = []; @@ -83176,7 +82039,7 @@ function createTypeChecker(host) { } function checkArrayLiteralAssignment(node, sourceType, checkMode) { const elements = node.elements; - if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) { + if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType; @@ -83197,7 +82060,7 @@ function createTypeChecker(host) { if (element.kind !== 230 /* SpreadElement */) { const indexType = getNumberLiteralType(elementIndex); if (isArrayLikeType(sourceType)) { - const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* AllowMissing */ : 0); + const accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0); const elementType2 = getIndexedAccessTypeOrUndefined(sourceType, indexType, accessFlags, createSyntheticExpression(element, indexType)) || errorType; const assignedType = hasDefaultValue(element) ? getTypeWithFacts(elementType2, 524288 /* NEUndefined */) : elementType2; const type = getFlowTypeOfDestructuring(element, assignedType); @@ -83303,13 +82166,9 @@ function createTypeChecker(host) { return true; } return false; - // Some forms listed here for clarity case 222 /* VoidExpression */: - // Explicit opt-out case 216 /* TypeAssertionExpression */: - // Not SEF, but can produce useful type warnings case 234 /* AsExpression */: - // Not SEF, but can produce useful type warnings default: return false; } @@ -83351,7 +82210,7 @@ function createTypeChecker(host) { setLastResult(state, checkExpression(node.right, checkMode)); return state; } - checkNullishCoalesceOperands(node); + checkGrammarNullishCoalesceWithLogicalExpression(node); const operator = node.operatorToken.kind; if (operator === 64 /* EqualsToken */ && (node.left.kind === 210 /* ObjectLiteralExpression */ || node.left.kind === 209 /* ArrayLiteralExpression */)) { state.skip = true; @@ -83384,9 +82243,7 @@ function createTypeChecker(host) { if (operator === 56 /* AmpersandAmpersandToken */ || isIfStatement(parent2)) { checkTestingKnownTruthyCallableOrAwaitableOrEnumMemberType(node.left, leftType, isIfStatement(parent2) ? parent2.thenStatement : void 0); } - if (isBinaryLogicalOperator(operator)) { - checkTruthinessOfType(leftType, node.left); - } + checkTruthinessOfType(leftType, node.left); } } } @@ -83443,7 +82300,7 @@ function createTypeChecker(host) { state.typeStack[state.stackIndex + 1] = type; } } - function checkNullishCoalesceOperands(node) { + function checkGrammarNullishCoalesceWithLogicalExpression(node) { const { left, operatorToken, right } = node; if (operatorToken.kind === 61 /* QuestionQuestionToken */) { if (isBinaryExpression(left) && (left.operatorToken.kind === 57 /* BarBarToken */ || left.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { @@ -83452,67 +82309,15 @@ function createTypeChecker(host) { if (isBinaryExpression(right) && (right.operatorToken.kind === 57 /* BarBarToken */ || right.operatorToken.kind === 56 /* AmpersandAmpersandToken */)) { grammarErrorOnNode(right, Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, tokenToString(right.operatorToken.kind), tokenToString(operatorToken.kind)); } - const leftTarget = skipOuterExpressions(left, 63 /* All */); - const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget); - if (nullishSemantics !== 3 /* Sometimes */) { - if (node.parent.kind === 226 /* BinaryExpression */) { - error2(leftTarget, Diagnostics.This_binary_expression_is_never_nullish_Are_you_missing_parentheses); - } else { - if (nullishSemantics === 1 /* Always */) { - error2(leftTarget, Diagnostics.This_expression_is_always_nullish); - } else { - error2(leftTarget, Diagnostics.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish); - } - } - } } } - function getSyntacticNullishnessSemantics(node) { - node = skipOuterExpressions(node); - switch (node.kind) { - case 223 /* AwaitExpression */: - case 213 /* CallExpression */: - case 215 /* TaggedTemplateExpression */: - case 212 /* ElementAccessExpression */: - case 236 /* MetaProperty */: - case 214 /* NewExpression */: - case 211 /* PropertyAccessExpression */: - case 229 /* YieldExpression */: - case 110 /* ThisKeyword */: - return 3 /* Sometimes */; - case 226 /* BinaryExpression */: - switch (node.operatorToken.kind) { - case 64 /* EqualsToken */: - case 61 /* QuestionQuestionToken */: - case 78 /* QuestionQuestionEqualsToken */: - case 57 /* BarBarToken */: - case 76 /* BarBarEqualsToken */: - case 56 /* AmpersandAmpersandToken */: - case 77 /* AmpersandAmpersandEqualsToken */: - return 3 /* Sometimes */; - case 28 /* CommaToken */: - return getSyntacticNullishnessSemantics(node.right); - } - return 2 /* Never */; - case 227 /* ConditionalExpression */: - return getSyntacticNullishnessSemantics(node.whenTrue) | getSyntacticNullishnessSemantics(node.whenFalse); - case 106 /* NullKeyword */: - return 1 /* Always */; - case 80 /* Identifier */: - if (getResolvedSymbol(node) === undefinedSymbol) { - return 1 /* Always */; - } - return 3 /* Sometimes */; - } - return 2 /* Never */; - } function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) { const operator = operatorToken.kind; if (operator === 64 /* EqualsToken */ && (left.kind === 210 /* ObjectLiteralExpression */ || left.kind === 209 /* ArrayLiteralExpression */)) { return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 110 /* ThisKeyword */); } let leftType; - if (isBinaryLogicalOperator(operator)) { + if (isLogicalOrCoalescingBinaryOperator(operator)) { leftType = checkTruthinessExpression(left, checkMode); } else { leftType = checkExpression(left, checkMode); @@ -83592,29 +82397,6 @@ function createTypeChecker(host) { } if (leftOk && rightOk) { checkAssignmentOperator(resultType2); - switch (operator) { - case 48 /* LessThanLessThanToken */: - case 71 /* LessThanLessThanEqualsToken */: - case 49 /* GreaterThanGreaterThanToken */: - case 72 /* GreaterThanGreaterThanEqualsToken */: - case 50 /* GreaterThanGreaterThanGreaterThanToken */: - case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: - const rhsEval = evaluate(right); - if (typeof rhsEval.value === "number" && Math.abs(rhsEval.value) >= 32) { - errorOrSuggestion( - isEnumMember(walkUpParenthesizedExpressions(right.parent.parent)), - // elevate from suggestion to error within an enum member - errorNode || operatorToken, - Diagnostics.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2, - getTextOfNode(left), - tokenToString(operator), - rhsEval.value % 32 - ); - } - break; - default: - break; - } } return resultType2; } @@ -83954,10 +82736,10 @@ function createTypeChecker(host) { } const isAsync = (functionFlags & 2 /* Async */) !== 0; if (node.asteriskToken) { - if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) { + if (isAsync && languageVersion < 5 /* AsyncGenerators */) { checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */); } - if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) { + if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 256 /* Values */); } } @@ -83973,8 +82755,9 @@ function createTypeChecker(host) { const iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync); const signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType; const signatureNextType = iterationTypes && iterationTypes.nextType || anyType; + const resolvedSignatureNextType = isAsync ? getAwaitedType(signatureNextType) || anyType : signatureNextType; const yieldExpressionType = node.expression ? checkExpression(node.expression) : undefinedWideningType; - const yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, signatureNextType, isAsync); + const yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, resolvedSignatureNextType, isAsync); if (returnType && yieldedType) { checkTypeAssignableToAndOptionallyElaborate(yieldedType, signatureYieldType, node.expression || node, node.expression); } @@ -84116,56 +82899,9 @@ function createTypeChecker(host) { void 0, checkMode || 0 /* Normal */ ) : checkExpressionCached(initializer, checkMode)); - if (isParameter(isBindingElement(declaration) ? walkUpBindingElementsAndPatterns(declaration) : declaration)) { - if (declaration.name.kind === 206 /* ObjectBindingPattern */ && isObjectLiteralType2(type)) { - return padObjectLiteralType(type, declaration.name); - } - if (declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type)) { - return padTupleType(type, declaration.name); - } - } - return type; - } - function padObjectLiteralType(type, pattern) { - let missingElements; - for (const e of pattern.elements) { - if (e.initializer) { - const name = getPropertyNameFromBindingElement(e); - if (name && !getPropertyOfType(type, name)) { - missingElements = append(missingElements, e); - } - } - } - if (!missingElements) { - return type; - } - const members = createSymbolTable(); - for (const prop of getPropertiesOfObjectType(type)) { - members.set(prop.escapedName, prop); - } - for (const e of missingElements) { - const symbol = createSymbol(4 /* Property */ | 16777216 /* Optional */, getPropertyNameFromBindingElement(e)); - symbol.links.type = getTypeFromBindingElement( - e, - /*includePatternInType*/ - false, - /*reportErrors*/ - false - ); - members.set(symbol.escapedName, symbol); - } - const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, getIndexInfosOfType(type)); - result.objectFlags = type.objectFlags; - return result; - } - function getPropertyNameFromBindingElement(e) { - const exprType = getLiteralTypeFromPropertyName(e.propertyName || e.name); - return isTypeUsableAsPropertyName(exprType) ? getPropertyNameFromType(exprType) : void 0; + return isParameter(declaration) && declaration.name.kind === 207 /* ArrayBindingPattern */ && isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ? padTupleType(type, declaration.name) : type; } function padTupleType(type, pattern) { - if (type.target.combinedFlags & 12 /* Variable */ || getTypeReferenceArity(type) >= pattern.elements.length) { - return type; - } const patternElements = pattern.elements; const elementTypes = getElementTypes(type).slice(); const elementFlags = type.target.elementFlags.slice(); @@ -84188,7 +82924,7 @@ function createTypeChecker(host) { return createTupleType(elementTypes, elementFlags, type.target.readonly); } function widenTypeInferredFromInitializer(declaration, type) { - const widened = getWidenedLiteralTypeForInitializer(declaration, type); + const widened = getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); if (isInJSFile(declaration)) { if (isEmptyLiteralType(widened)) { reportImplicitAny(declaration, anyType); @@ -84200,9 +82936,6 @@ function createTypeChecker(host) { } return widened; } - function getWidenedLiteralTypeForInitializer(declaration, type) { - return getCombinedNodeFlagsCached(declaration) & 6 /* Constant */ || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type); - } function isLiteralOfContextualType(candidateType, contextualType) { if (contextualType) { if (contextualType.flags & 3145728 /* UnionOrIntersection */) { @@ -84477,17 +83210,7 @@ function createTypeChecker(host) { if (!ok) { error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query); } - if (compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax && ok && !resolveName( - node, - getFirstIdentifier(node), - 2097152 /* Alias */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - false, - /*excludeGlobals*/ - true - )) { + if (getIsolatedModules(compilerOptions)) { Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */)); const constEnumDeclaration = type.symbol.valueDeclaration; const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath); @@ -84562,7 +83285,6 @@ function createTypeChecker(host) { if (node.expression.kind === 102 /* ImportKeyword */) { return checkImportCallExpression(node); } - // falls through case 214 /* NewExpression */: return checkCallExpression(node, checkMode); case 215 /* TaggedTemplateExpression */: @@ -84651,7 +83373,7 @@ function createTypeChecker(host) { const modifiers = getTypeParameterModifiers(typeParameter) & (8192 /* In */ | 16384 /* Out */); if (modifiers) { const symbol = getSymbolOfDeclaration(node.parent); - if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (16 /* Anonymous */ | 32 /* Mapped */))) { + if (isTypeAliasDeclaration(node.parent) && !(getObjectFlags(getDeclaredTypeOfSymbol(symbol)) & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */))) { error2(node, Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types); } else if (modifiers === 8192 /* In */ || modifiers === 16384 /* Out */) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.CheckTypes, "checkTypeParameterDeferred", { parent: getTypeId(getDeclaredTypeOfSymbol(symbol)), id: getTypeId(typeParameter) }); @@ -84671,9 +83393,6 @@ function createTypeChecker(host) { checkVariableLikeDeclaration(node); const func = getContainingFunction(node); if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) { - if (compilerOptions.erasableSyntaxOnly) { - error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) { error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation); } @@ -84715,7 +83434,9 @@ function createTypeChecker(host) { } checkSourceElement(node.type); const { parameterName } = node; - if (typePredicate.kind !== 0 /* This */ && typePredicate.kind !== 2 /* AssertsThis */) { + if (typePredicate.kind === 0 /* This */ || typePredicate.kind === 2 /* AssertsThis */) { + getTypeFromThisTypeNode(parameterName); + } else { if (typePredicate.parameterIndex >= 0) { if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) { error2(parameterName, Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter); @@ -84793,13 +83514,13 @@ function createTypeChecker(host) { } const functionFlags = getFunctionFlags(node); if (!(functionFlags & 4 /* Invalid */)) { - if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) { + if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) { checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */); } - if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) { + if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) { checkExternalEmitHelpers(node, 64 /* Awaiter */); } - if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) { + if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) { checkExternalEmitHelpers(node, 128 /* Generator */); } } @@ -84935,7 +83656,6 @@ function createTypeChecker(host) { if (useDefineForClassFields) { break; } - // fall through case "prototype": const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1; const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node)); @@ -84982,17 +83702,15 @@ function createTypeChecker(host) { if (indexSymbol == null ? void 0 : indexSymbol.declarations) { const indexSignatureMap = /* @__PURE__ */ new Map(); for (const declaration of indexSymbol.declarations) { - if (isIndexSignatureDeclaration(declaration)) { - if (declaration.parameters.length === 1 && declaration.parameters[0].type) { - forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => { - const entry = indexSignatureMap.get(getTypeId(type)); - if (entry) { - entry.declarations.push(declaration); - } else { - indexSignatureMap.set(getTypeId(type), { type, declarations: [declaration] }); - } - }); - } + if (declaration.parameters.length === 1 && declaration.parameters[0].type) { + forEachType(getTypeFromTypeNode(declaration.parameters[0].type), (type) => { + const entry = indexSignatureMap.get(getTypeId(type)); + if (entry) { + entry.declarations.push(declaration); + } else { + indexSignatureMap.set(getTypeId(type), { type, declarations: [declaration] }); + } + }); } } indexSignatureMap.forEach((entry) => { @@ -85034,7 +83752,7 @@ function createTypeChecker(host) { } function setNodeLinksForPrivateIdentifierScope(node) { if (isPrivateIdentifier(node.name)) { - if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) { + if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) { for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) { getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */; } @@ -85453,20 +84171,16 @@ function createTypeChecker(host) { const someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags; if (someButNotAllOverloadFlags !== 0) { const canonicalFlags = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck2); - group(overloads, (o) => getSourceFileOfNode(o).fileName).forEach((overloadsInFile) => { - const canonicalFlagsForFile = getEffectiveDeclarationFlags(getCanonicalOverload(overloadsInFile, implementation), flagsToCheck2); - for (const o of overloadsInFile) { - const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; - const deviationInFile = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlagsForFile; - if (deviationInFile & 32 /* Export */) { - error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); - } else if (deviationInFile & 128 /* Ambient */) { - error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); - } else if (deviation & (2 /* Private */ | 4 /* Protected */)) { - error2(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); - } else if (deviation & 64 /* Abstract */) { - error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); - } + forEach(overloads, (o) => { + const deviation = getEffectiveDeclarationFlags(o, flagsToCheck2) ^ canonicalFlags; + if (deviation & 32 /* Export */) { + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported); + } else if (deviation & 128 /* Ambient */) { + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient); + } else if (deviation & (2 /* Private */ | 4 /* Protected */)) { + error2(getNameOfDeclaration(o) || o, Diagnostics.Overload_signatures_must_all_be_public_private_or_protected); + } else if (deviation & 64 /* Abstract */) { + error2(getNameOfDeclaration(o), Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract); } }); } @@ -85681,8 +84395,6 @@ function createTypeChecker(host) { switch (d.kind) { case 264 /* InterfaceDeclaration */: case 265 /* TypeAliasDeclaration */: - // A jsdoc typedef and callback are, by definition, type aliases. - // falls through case 346 /* JSDocTypedefTag */: case 338 /* JSDocCallbackTag */: case 340 /* JSDocEnumTag */: @@ -85703,8 +84415,6 @@ function createTypeChecker(host) { return 1 /* ExportValue */; } d = expression; - // The below options all declare an Alias, which is allowed to merge with other values within the importing module. - // falls through case 271 /* ImportEqualsDeclaration */: case 274 /* NamespaceImport */: case 273 /* ImportClause */: @@ -85718,7 +84428,6 @@ function createTypeChecker(host) { case 208 /* BindingElement */: case 262 /* FunctionDeclaration */: case 276 /* ImportSpecifier */: - // https://github.com/Microsoft/TypeScript/pull/7591 case 80 /* Identifier */: return 1 /* ExportValue */; case 173 /* MethodSignature */: @@ -86067,7 +84776,6 @@ function createTypeChecker(host) { headMessage = Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1; break; } - // falls through case 169 /* Parameter */: headMessage = Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any; break; @@ -86174,7 +84882,7 @@ function createTypeChecker(host) { if (node.kind === 169 /* Parameter */) { checkExternalEmitHelpers(firstDecorator, 32 /* Param */); } - } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) { + } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) { checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */); if (isClassDeclaration(node)) { if (!node.name) { @@ -86607,7 +85315,7 @@ function createTypeChecker(host) { if (!wrappingDeclaration.type) { addRelatedInfo( diagnostic, - createFileDiagnostic(getSourceFileOfNode(wrappingDeclaration), wrappingDeclaration.end, 0, Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, declarationNameToString(node.propertyName)) + createFileDiagnostic(getSourceFileOfNode(wrappingDeclaration), wrappingDeclaration.end, 1, Diagnostics.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here, declarationNameToString(node.propertyName)) ); } diagnostics.add(diagnostic); @@ -86706,7 +85414,7 @@ function createTypeChecker(host) { }); } function checkCollisionWithRequireExportsInGeneratedCode(node, name) { - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) >= 5 /* ES2015 */) { + if (moduleKind >= 5 /* ES2015 */ && !(moduleKind >= 100 /* Node16 */ && getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return; } if (!name || !needCollisionCheckForIdentifier(node, name, "require") && !needCollisionCheckForIdentifier(node, name, "exports")) { @@ -86840,7 +85548,7 @@ function createTypeChecker(host) { potentialUnusedRenamedBindingElementsInTypes.push(node); return; } - if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) { + if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) { checkExternalEmitHelpers(node, 4 /* Rest */); } if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) { @@ -86876,7 +85584,7 @@ function createTypeChecker(host) { } } if (isBindingPattern(node.name)) { - if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) { + if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) { checkExternalEmitHelpers(node, 512 /* Read */); } forEach(node.name.elements, checkSourceElement); @@ -86916,9 +85624,6 @@ function createTypeChecker(host) { checkAliasSymbol(node); return; } - if (node.name.kind === 10 /* BigIntLiteral */) { - error2(node.name, Diagnostics.A_bigint_literal_cannot_be_used_as_a_property_name); - } const type = convertAutoToAny(getTypeOfSymbol(symbol)); if (node === symbol.valueDeclaration) { const initializer = hasOnlyExpressionInitializer(node) && getEffectiveInitializer(node); @@ -86946,7 +85651,7 @@ function createTypeChecker(host) { ); if (globalAsyncDisposableType !== emptyObjectType && globalDisposableType !== emptyObjectType) { const optionalDisposableType = getUnionType([globalAsyncDisposableType, globalDisposableType, nullType, undefinedType]); - checkTypeAssignableTo(widenTypeForVariableLikeDeclaration(initializerType, node), optionalDisposableType, initializer, Diagnostics.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); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.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); } } else if (blockScopeKind === 4 /* Using */) { const globalDisposableType = getGlobalDisposableType( @@ -86955,7 +85660,7 @@ function createTypeChecker(host) { ); if (globalDisposableType !== emptyObjectType) { const optionalDisposableType = getUnionType([globalDisposableType, nullType, undefinedType]); - checkTypeAssignableTo(widenTypeForVariableLikeDeclaration(initializerType, node), optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); + checkTypeAssignableTo(initializerType, optionalDisposableType, initializer, Diagnostics.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined); } } } @@ -87030,7 +85735,7 @@ function createTypeChecker(host) { } function checkVariableDeclarationList(node) { const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */; - if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) { + if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) { checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */); } forEach(node.declarations, checkSourceElement); @@ -87073,7 +85778,7 @@ function createTypeChecker(host) { bothHelper(location, body2); return; } - const type = location === condExpr2 ? condType : checkExpression(location); + const type = location === condExpr2 ? condType : checkTruthinessExpression(location); if (type.flags & 1024 /* EnumLiteral */ && isPropertyAccessExpression(location) && (getNodeLinks(location.expression).resolvedSymbol ?? unknownSymbol).flags & 384 /* Enum */) { error2(location, Diagnostics.This_condition_will_always_return_0, !!type.value ? "true" : "false"); return; @@ -87168,51 +85873,9 @@ function createTypeChecker(host) { function checkTruthinessOfType(type, node) { if (type.flags & 16384 /* Void */) { error2(node, Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness); - } else { - const semantics = getSyntacticTruthySemantics(node); - if (semantics !== 3 /* Sometimes */) { - error2( - node, - semantics === 1 /* Always */ ? Diagnostics.This_kind_of_expression_is_always_truthy : Diagnostics.This_kind_of_expression_is_always_falsy - ); - } } return type; } - function getSyntacticTruthySemantics(node) { - node = skipOuterExpressions(node); - switch (node.kind) { - case 9 /* NumericLiteral */: - if (node.text === "0" || node.text === "1") { - return 3 /* Sometimes */; - } - return 1 /* Always */; - case 209 /* ArrayLiteralExpression */: - case 219 /* ArrowFunction */: - case 10 /* BigIntLiteral */: - case 231 /* ClassExpression */: - case 218 /* FunctionExpression */: - case 284 /* JsxElement */: - case 285 /* JsxSelfClosingElement */: - case 210 /* ObjectLiteralExpression */: - case 14 /* RegularExpressionLiteral */: - return 1 /* Always */; - case 222 /* VoidExpression */: - case 106 /* NullKeyword */: - return 2 /* Never */; - case 15 /* NoSubstitutionTemplateLiteral */: - case 11 /* StringLiteral */: - return !!node.text ? 1 /* Always */ : 2 /* Never */; - case 227 /* ConditionalExpression */: - return getSyntacticTruthySemantics(node.whenTrue) | getSyntacticTruthySemantics(node.whenFalse); - case 80 /* Identifier */: - if (getResolvedSymbol(node) === undefinedSymbol) { - return 2 /* Never */; - } - return 3 /* Sometimes */; - } - return 3 /* Sometimes */; - } function checkTruthinessExpression(node, checkMode) { return checkTruthinessOfType(checkExpression(node, checkMode), node); } @@ -87244,11 +85907,11 @@ function createTypeChecker(host) { grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block); } else { const functionFlags = getFunctionFlags(container); - if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) { + if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) { checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */); } } - } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) { + } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) { checkExternalEmitHelpers(node, 256 /* ForOfIncludes */); } if (node.initializer.kind === 261 /* VariableDeclarationList */) { @@ -87481,7 +86144,7 @@ function createTypeChecker(host) { return anyIterationTypes; } if (!(type.flags & 1048576 /* Union */)) { - const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0; + const errorOutputContainer = errorNode ? { errors: void 0 } : void 0; const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer); if (iterationTypes2 === noIterationTypes) { if (errorNode) { @@ -87595,21 +86258,30 @@ function createTypeChecker(host) { function getIterationTypesOfIterableCached(type, resolver) { return getCachedIterationTypes(type, resolver.iterableCacheKey); } - function getIterationTypesOfIterableFast(type, resolver) { - if (isReferenceToType2(type, resolver.getGlobalIterableType( - /*reportErrors*/ - false - )) || isReferenceToType2(type, resolver.getGlobalIteratorObjectType( - /*reportErrors*/ + function getIterationTypesOfGlobalIterableType(globalType, resolver) { + const globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) || getIterationTypesOfIterableSlow( + globalType, + resolver, + /*errorNode*/ + void 0, + /*errorOutputContainer*/ + void 0, + /*noCache*/ false - )) || isReferenceToType2(type, resolver.getGlobalIterableIteratorType( + ); + return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; + } + function getIterationTypesOfIterableFast(type, resolver) { + let globalType; + if (isReferenceToType2(type, globalType = resolver.getGlobalIterableType( /*reportErrors*/ false - )) || isReferenceToType2(type, resolver.getGlobalGeneratorType( + )) || isReferenceToType2(type, globalType = resolver.getGlobalIterableIteratorType( /*reportErrors*/ false ))) { - const [yieldType, returnType, nextType] = getTypeArguments(type); + const [yieldType] = getTypeArguments(type); + const { returnType, nextType } = getIterationTypesOfGlobalIterableType(globalType, resolver); return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( yieldType, /*errorNode*/ @@ -87620,10 +86292,11 @@ function createTypeChecker(host) { void 0 ) || returnType, nextType)); } - if (isReferenceToSomeType(type, resolver.getGlobalBuiltinIteratorTypes())) { - const [yieldType] = getTypeArguments(type); - const returnType = getBuiltinIteratorReturnType(); - const nextType = unknownType; + if (isReferenceToType2(type, resolver.getGlobalGeneratorType( + /*reportErrors*/ + false + ))) { + const [yieldType, returnType, nextType] = getTypeArguments(type); return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(resolver.resolveIterationType( yieldType, /*errorNode*/ @@ -87649,27 +86322,11 @@ function createTypeChecker(host) { if (isTypeAny(methodType)) { return noCache ? anyIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes); } - const allSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : void 0; - const validSignatures = filter(allSignatures, (sig) => getMinArgumentCount(sig) === 0); - if (!some(validSignatures)) { - if (errorNode && some(allSignatures)) { - checkTypeAssignableTo( - type, - resolver.getGlobalIterableType( - /*reportErrors*/ - true - ), - errorNode, - /*headMessage*/ - void 0, - /*containingMessageChain*/ - void 0, - errorOutputContainer - ); - } + const signatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : void 0; + if (!some(signatures)) { return noCache ? noIterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes); } - const iteratorType = getIntersectionType(map(validSignatures, getReturnTypeOfSignature)); + const iteratorType = getIntersectionType(map(signatures, getReturnTypeOfSignature)); const iterationTypes = getIterationTypesOfIteratorWorker(iteratorType, resolver, errorNode, errorOutputContainer, noCache) ?? noIterationTypes; return noCache ? iterationTypes : setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes); } @@ -87680,10 +86337,10 @@ function createTypeChecker(host) { !!getAwaitedTypeOfPromise(type) || !allowAsyncIterables && isForOfStatement(errorNode.parent) && errorNode.parent.expression === errorNode && getGlobalAsyncIterableType( /*reportErrors*/ false - ) !== emptyGenericType && isTypeAssignableTo(type, createTypeFromGenericGlobalType(getGlobalAsyncIterableType( + ) !== emptyGenericType && isTypeAssignableTo(type, getGlobalAsyncIterableType( /*reportErrors*/ false - ), [anyType, anyType, anyType])) + )) ); return errorAndMaybeSuggestAwait(errorNode, suggestAwait, message, typeToString(type)); } @@ -87713,13 +86370,26 @@ function createTypeChecker(host) { return getCachedIterationTypes(type, resolver.iteratorCacheKey); } function getIterationTypesOfIteratorFast(type, resolver) { - if (isReferenceToType2(type, resolver.getGlobalIterableIteratorType( + const globalType = resolver.getGlobalIterableIteratorType( /*reportErrors*/ false - )) || isReferenceToType2(type, resolver.getGlobalIteratorType( - /*reportErrors*/ - false - )) || isReferenceToType2(type, resolver.getGlobalIteratorObjectType( + ); + if (isReferenceToType2(type, globalType)) { + const [yieldType] = getTypeArguments(type); + const globalIterationTypes = getIterationTypesOfIteratorCached(globalType, resolver) || getIterationTypesOfIteratorSlow( + globalType, + resolver, + /*errorNode*/ + void 0, + /*errorOutputContainer*/ + void 0, + /*noCache*/ + false + ); + const { returnType, nextType } = globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes; + return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); + } + if (isReferenceToType2(type, resolver.getGlobalIteratorType( /*reportErrors*/ false )) || isReferenceToType2(type, resolver.getGlobalGeneratorType( @@ -87729,12 +86399,6 @@ function createTypeChecker(host) { const [yieldType, returnType, nextType] = getTypeArguments(type); return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); } - if (isReferenceToSomeType(type, resolver.getGlobalBuiltinIteratorTypes())) { - const [yieldType] = getTypeArguments(type); - const returnType = getBuiltinIteratorReturnType(); - const nextType = unknownType; - return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType)); - } } function isIteratorResult(type, kind) { const doneType = getTypeOfPropertyOfType(type, "done") || falseType; @@ -87802,7 +86466,7 @@ function createTypeChecker(host) { } const methodType = method && !(methodName === "next" && method.flags & 16777216 /* Optional */) ? methodName === "next" ? getTypeOfSymbol(method) : getTypeWithFacts(getTypeOfSymbol(method), 2097152 /* NEUndefinedOrNull */) : void 0; if (isTypeAny(methodType)) { - return anyIterationTypes; + return methodName === "next" ? anyIterationTypes : anyIterationTypesExceptNext; } const methodSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : emptyArray; if (methodSignatures.length === 0) { @@ -87947,6 +86611,7 @@ function createTypeChecker(host) { } const signature = getSignatureFromDeclaration(container); const returnType = getReturnTypeOfSignature(signature); + const functionFlags = getFunctionFlags(container); if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) { const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType; if (container.kind === 178 /* SetAccessor */) { @@ -87954,57 +86619,26 @@ function createTypeChecker(host) { error2(node, Diagnostics.Setters_cannot_return_a_value); } } else if (container.kind === 176 /* Constructor */) { - const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType; - if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) { + if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) { error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class); } } else if (getReturnTypeFromAnnotation(container)) { - const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(container)) ?? returnType; - checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType); + const unwrappedReturnType = unwrapReturnType(returnType, functionFlags) ?? returnType; + const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType( + exprType, + /*withAlias*/ + false, + node, + Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member + ) : exprType; + if (unwrappedReturnType) { + checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression); + } } } else if (container.kind !== 176 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) { error2(node, Diagnostics.Not_all_code_paths_return_a_value); } } - function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) { - const excludeJSDocTypeAssertions = isInJSFile(node); - const functionFlags = getFunctionFlags(container); - if (expr) { - const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions); - if (isConditionalExpression(unwrappedExpr)) { - checkReturnExpression( - container, - unwrappedReturnType, - node, - unwrappedExpr.whenTrue, - checkExpression(unwrappedExpr.whenTrue), - /*inConditionalExpression*/ - true - ); - checkReturnExpression( - container, - unwrappedReturnType, - node, - unwrappedExpr.whenFalse, - checkExpression(unwrappedExpr.whenFalse), - /*inConditionalExpression*/ - true - ); - return; - } - } - const inReturnStatement = node.kind === 253 /* ReturnStatement */; - const unwrappedExprType = functionFlags & 2 /* Async */ ? checkAwaitedType( - exprType, - /*withAlias*/ - false, - node, - Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member - ) : exprType; - const effectiveExpr = expr && getEffectiveCheckNode(expr); - const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr; - checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr); - } function checkWithStatement(node) { if (!checkGrammarStatementInAmbientContext(node)) { if (node.flags & 65536 /* AwaitContext */) { @@ -88136,7 +86770,7 @@ function createTypeChecker(host) { const typeDeclaration = symbol.valueDeclaration; if (typeDeclaration && isClassLike(typeDeclaration)) { for (const member of typeDeclaration.members) { - if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) { + if (!isStatic(member) && !hasBindableName(member)) { const symbol2 = getSymbolOfDeclaration(member); checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2)); } @@ -88201,7 +86835,7 @@ function createTypeChecker(host) { } } function checkClassNameCollisionWithObject(name) { - if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && host.getEmitModuleFormatOfFile(getSourceFileOfNode(name)) < 5 /* ES2015 */) { + if (languageVersion >= 1 /* ES5 */ && name.escapedText === "Object" && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(name).impliedNodeFormat === 1 /* CommonJS */)) { error2(name, Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ModuleKind[moduleKind]); } } @@ -88335,12 +86969,12 @@ function createTypeChecker(host) { return true; } function getFirstTransformableStaticClassElement(node) { - const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated( + const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated( /*useLegacyDecorators*/ false, node ); - const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators; + const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */; const willTransformInitializers = !emitStandardClassFields; if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) { for (const member of node.members) { @@ -88367,7 +87001,7 @@ function createTypeChecker(host) { if (node.name) return; const parent2 = walkUpOuterExpressions(node); if (!isNamedEvaluationSource(parent2)) return; - const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators; + const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */; let location; if (willTransformESDecorators && classOrConstructorParameterIsDecorated( /*useLegacyDecorators*/ @@ -88427,7 +87061,7 @@ function createTypeChecker(host) { const baseTypeNode = getEffectiveBaseTypeNode(node); if (baseTypeNode) { forEach(baseTypeNode.typeArguments, checkSourceElement); - if (languageVersion < LanguageFeatureMinimumTarget.Classes) { + if (languageVersion < 2 /* Classes */) { checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */); } const extendsNode = getClassExtendsHeritageElement(node); @@ -88580,29 +87214,23 @@ function createTypeChecker(host) { hasAbstractModifier(member), isStatic(member), memberIsParameterProperty, - declaredProp, + symbolName(declaredProp), reportErrors2 ? member : void 0 ); } - function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) { + function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, memberName, errorNode) { const isJs = isInJSFile(node); const nodeInAmbientContext = !!(node.flags & 33554432 /* Ambient */); - if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) { - error2( - errorNode, - isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic - ); - return 2 /* HasInvalidOverride */; - } if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) { + const memberEscapedName = escapeLeadingUnderscores(memberName); const thisType = memberIsStatic ? staticType : typeWithThis; const baseType = memberIsStatic ? baseStaticType : baseWithThis; - const prop = getPropertyOfType(thisType, member.escapedName); - const baseProp = getPropertyOfType(baseType, member.escapedName); + const prop = getPropertyOfType(thisType, memberEscapedName); + const baseProp = getPropertyOfType(baseType, memberEscapedName); const baseClassName = typeToString(baseWithThis); if (prop && !baseProp && memberHasOverrideModifier) { if (errorNode) { - const suggestion = getSuggestedSymbolForNonexistentClassMember(symbolName(member), baseType); + const suggestion = getSuggestedSymbolForNonexistentClassMember(memberName, baseType); suggestion ? error2( errorNode, isJs ? Diagnostics.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 : Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, @@ -88719,7 +87347,7 @@ function createTypeChecker(host) { isStatic(member), /*memberIsParameterProperty*/ false, - memberSymbol + symbolName(memberSymbol) ); } function getTargetSymbol(s) { @@ -88940,9 +87568,6 @@ function createTypeChecker(host) { } function checkInterfaceDeclaration(node) { if (!checkGrammarModifiers(node)) checkGrammarInterfaceDeclaration(node); - if (!allowBlockDeclarations(node.parent)) { - grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "interface"); - } checkTypeParameters(node.typeParameters); addLazyDiagnostic(() => { checkTypeNameIsReserved(node.name, Diagnostics.Interface_name_cannot_be_0); @@ -88977,15 +87602,10 @@ function createTypeChecker(host) { function checkTypeAliasDeclaration(node) { checkGrammarModifiers(node); checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0); - if (!allowBlockDeclarations(node.parent)) { - grammarErrorOnNode(node, Diagnostics._0_declarations_can_only_be_declared_inside_a_block, "type"); - } checkExportsOnMergedDeclarations(node); checkTypeParameters(node.typeParameters); if (node.type.kind === 141 /* IntrinsicKeyword */) { - const typeParameterCount = length(node.typeParameters); - const valid = typeParameterCount === 0 ? node.name.escapedText === "BuiltinIteratorReturn" : typeParameterCount === 1 && intrinsicTypeKinds.has(node.name.escapedText); - if (!valid) { + if (!intrinsicTypeKinds.has(node.name.escapedText) || length(node.typeParameters) !== 1) { error2(node.type, Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types); } } else { @@ -89186,9 +87806,6 @@ function createTypeChecker(host) { checkCollisionsForDeclarationName(node, node.name); checkExportsOnMergedDeclarations(node); node.members.forEach(checkEnumMember); - if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) { - error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } computeEnumMemberValues(node); const enumSymbol = getSymbolOfDeclaration(node); const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind); @@ -89278,21 +87895,10 @@ function createTypeChecker(host) { } if (isIdentifier(node.name)) { checkCollisionsForDeclarationName(node, node.name); - if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) { - const sourceFile = getSourceFileOfNode(node); - const pos = getNonModifierTokenPosOfNode(node); - const span = getSpanOfTokenAtPosition(sourceFile, pos); - suggestionDiagnostics.add( - createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead) - ); - } } checkExportsOnMergedDeclarations(node); const symbol = getSymbolOfDeclaration(node); if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) { - if (compilerOptions.erasableSyntaxOnly) { - error2(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) { error2(node.name, Diagnostics.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, isolatedModulesLikeFlagName); } @@ -89310,7 +87916,7 @@ function createTypeChecker(host) { getNodeLinks(node).flags |= 2048 /* LexicalModuleMergesWithClass */; } } - if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 307 /* SourceFile */ && host.getEmitModuleFormatOfFile(node.parent) === 1 /* CommonJS */) { + if (compilerOptions.verbatimModuleSyntax && node.parent.kind === 307 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || node.parent.impliedNodeFormat === 1 /* CommonJS */)) { const exportModifier = (_b = node.modifiers) == null ? void 0 : _b.find((m) => m.kind === 95 /* ExportKeyword */); if (exportModifier) { error2(exportModifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); @@ -89353,8 +87959,6 @@ function createTypeChecker(host) { grammarErrorOnFirstToken(node, Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations); break; case 271 /* ImportEqualsDeclaration */: - if (isInternalModuleImportEqualsDeclaration(node)) break; - // falls through case 272 /* ImportDeclaration */: grammarErrorOnFirstToken(node, Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module); break; @@ -89367,7 +87971,6 @@ function createTypeChecker(host) { } break; } - // falls through case 263 /* ClassDeclaration */: case 266 /* EnumDeclaration */: case 262 /* FunctionDeclaration */: @@ -89435,16 +88038,6 @@ function createTypeChecker(host) { } return true; } - function checkModuleExportName(name, allowStringLiteral = true) { - if (name === void 0 || name.kind !== 11 /* StringLiteral */) { - return; - } - if (!allowStringLiteral) { - grammarErrorOnNode(name, Diagnostics.Identifier_expected); - } else if (moduleKind === 5 /* ES2015 */ || moduleKind === 6 /* ES2020 */) { - grammarErrorOnNode(name, Diagnostics.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020); - } - } function checkAliasSymbol(node) { var _a, _b, _c, _d; let symbol = getSymbolOfDeclaration(node); @@ -89456,7 +88049,7 @@ function createTypeChecker(host) { Debug.assert(node.kind !== 280 /* NamespaceExport */); if (node.kind === 281 /* ExportSpecifier */) { const diag2 = error2(errorNode, Diagnostics.Types_cannot_appear_in_export_declarations_in_JavaScript_files); - const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get(moduleExportNameTextEscaped(node.propertyName || node.name)); + const alreadyExportedSymbol = (_b = (_a = getSourceFileOfNode(node).symbol) == null ? void 0 : _a.exports) == null ? void 0 : _b.get((node.propertyName || node.name).escapedText); if (alreadyExportedSymbol === target) { const exportingDeclaration = (_c = alreadyExportedSymbol.declarations) == null ? void 0 : _c.find(isJSDocNode); if (exportingDeclaration) { @@ -89511,7 +88104,7 @@ function createTypeChecker(host) { if (compilerOptions.verbatimModuleSyntax) { Debug.assertIsDefined(node.name, "An ImportClause with a symbol should have a name"); const message = compilerOptions.verbatimModuleSyntax && isInternalModuleImportEqualsDeclaration(node) ? Diagnostics.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled : isType ? Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled : Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled; - const name = moduleExportNameTextUnescaped(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); + const name = idText(node.kind === 276 /* ImportSpecifier */ ? node.propertyName || node.name : node.name); addTypeOnlyDeclarationRelatedInfo( error2(node, message, name), isType ? void 0 : typeOnlyAlias, @@ -89525,7 +88118,7 @@ function createTypeChecker(host) { } case 281 /* ExportSpecifier */: { if (compilerOptions.verbatimModuleSyntax || getSourceFileOfNode(typeOnlyAlias) !== getSourceFileOfNode(node)) { - const name = moduleExportNameTextUnescaped(node.propertyName || node.name); + const name = idText(node.propertyName || node.name); const diagnostic = isType ? error2(node, Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type, isolatedModulesLikeFlagName) : error2(node, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled, name, isolatedModulesLikeFlagName); addTypeOnlyDeclarationRelatedInfo(diagnostic, isType ? void 0 : typeOnlyAlias, name); break; @@ -89533,17 +88126,8 @@ function createTypeChecker(host) { } } } - if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { + if (compilerOptions.verbatimModuleSyntax && node.kind !== 271 /* ImportEqualsDeclaration */ && !isInJSFile(node) && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); - } else if (moduleKind === 200 /* Preserve */ && node.kind !== 271 /* ImportEqualsDeclaration */ && node.kind !== 260 /* VariableDeclaration */ && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { - error2(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve); - } - if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) { - const constEnumDeclaration = target.valueDeclaration; - const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath); - if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) { - error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName); - } } } if (isImportSpecifier(node)) { @@ -89582,11 +88166,8 @@ function createTypeChecker(host) { function checkImportBinding(node) { checkCollisionsForDeclarationName(node, node.name); checkAliasSymbol(node); - if (node.kind === 276 /* ImportSpecifier */) { - checkModuleExportName(node.propertyName); - if (moduleExportNameIsDefault(node.propertyName || node.name) && getESModuleInterop(compilerOptions) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */) { - checkExternalEmitHelpers(node, 131072 /* ImportDefault */); - } + if (node.kind === 276 /* ImportSpecifier */ && idText(node.propertyName || node.name) === "default" && getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { + checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } function checkImportAttributes(declaration) { @@ -89606,20 +88187,10 @@ function createTypeChecker(host) { if (validForTypeAttributes && override) { return; } - if (!moduleSupportsImportAttributes(moduleKind)) { - return grammarErrorOnNode( - node, - isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve - ); - } - if (moduleKind === 199 /* NodeNext */ && !isImportAttributes2) { - return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert); - } - if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1 /* CommonJS */) { - return grammarErrorOnNode( - node, - isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls - ); + const mode = moduleKind === 199 /* NodeNext */ && declaration.moduleSpecifier && getUsageModeForExpression(declaration.moduleSpecifier); + if (mode !== 99 /* ESNext */ && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) { + const message = isImportAttributes2 ? moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 /* NodeNext */ ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve; + return grammarErrorOnNode(node, message); } const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly); if (isTypeOnly) { @@ -89641,7 +88212,6 @@ function createTypeChecker(host) { grammarErrorOnFirstToken(node, Diagnostics.An_import_declaration_cannot_have_modifiers); } if (checkExternalImportOrExportDeclaration(node)) { - let resolvedModule; const importClause = node.importClause; if (importClause && !checkGrammarImportClause(importClause)) { if (importClause.name) { @@ -89650,39 +88220,25 @@ function createTypeChecker(host) { if (importClause.namedBindings) { if (importClause.namedBindings.kind === 274 /* NamespaceImport */) { checkImportBinding(importClause.namedBindings); - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && getESModuleInterop(compilerOptions)) { + if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); } } else { - resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier); - if (resolvedModule) { + const moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier); + if (moduleExisted) { forEach(importClause.namedBindings.elements, checkImportBinding); } } } - if (!importClause.isTypeOnly && 101 /* Node18 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) { - error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]); - } - } else if (noUncheckedSideEffectImports && !importClause) { - void resolveExternalModuleName(node, node.moduleSpecifier); } } checkImportAttributes(node); } - function hasTypeJsonImportAttribute(node) { - return !!node.attributes && node.attributes.elements.some((attr) => { - var _a; - return getTextOfIdentifierOrLiteral(attr.name) === "type" && ((_a = tryCast(attr.value, isStringLiteralLike)) == null ? void 0 : _a.text) === "json"; - }); - } function checkImportEqualsDeclaration(node) { if (checkGrammarModuleElementContext(node, isInJSFile(node) ? Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module : Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)) { return; } checkGrammarModifiers(node); - if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) { - error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) { checkImportBinding(node); markLinkedReferences(node, 6 /* ExportImportEquals */); @@ -89704,7 +88260,7 @@ function createTypeChecker(host) { grammarErrorOnNode(node, Diagnostics.An_import_alias_cannot_use_import_type); } } else { - if (5 /* ES2015 */ <= moduleKind && moduleKind <= 99 /* ESNext */ && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { + if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && getSourceFileOfNode(node).impliedNodeFormat === void 0 && !node.isTypeOnly && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead); } } @@ -89732,9 +88288,8 @@ function createTypeChecker(host) { error2(node.moduleSpecifier, Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol)); } else if (node.exportClause) { checkAliasSymbol(node.exportClause); - checkModuleExportName(node.exportClause.name); } - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */) { + if (moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { if (node.exportClause) { if (getESModuleInterop(compilerOptions)) { checkExternalEmitHelpers(node, 65536 /* ImportStar */); @@ -89763,9 +88318,6 @@ function createTypeChecker(host) { } function checkExportSpecifier(node) { checkAliasSymbol(node); - const hasModuleSpecifier = node.parent.parent.moduleSpecifier !== void 0; - checkModuleExportName(node.propertyName, hasModuleSpecifier); - checkModuleExportName(node.name); if (getEmitDeclarations(compilerOptions)) { collectLinkedAliases( node.propertyName || node.name, @@ -89773,11 +88325,8 @@ function createTypeChecker(host) { true ); } - if (!hasModuleSpecifier) { + if (!node.parent.parent.moduleSpecifier) { const exportedName = node.propertyName || node.name; - if (exportedName.kind === 11 /* StringLiteral */) { - return; - } const symbol = resolveName( exportedName, exportedName.escapedText, @@ -89793,7 +88342,7 @@ function createTypeChecker(host) { markLinkedReferences(node, 7 /* ExportSpecifier */); } } else { - if (getESModuleInterop(compilerOptions) && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && moduleExportNameIsDefault(node.propertyName || node.name)) { + if (getESModuleInterop(compilerOptions) && moduleKind !== 4 /* System */ && (moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && idText(node.propertyName || node.name) === "default") { checkExternalEmitHelpers(node, 131072 /* ImportDefault */); } } @@ -89803,9 +88352,6 @@ function createTypeChecker(host) { if (checkGrammarModuleElementContext(node, illegalContextMessage)) { return; } - if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) { - error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled); - } const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent; if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) { if (node.isExportEquals) { @@ -89822,7 +88368,7 @@ function createTypeChecker(host) { if (typeAnnotationNode) { checkTypeAssignableTo(checkExpressionCached(node.expression), getTypeFromTypeNode(typeAnnotationNode), node.expression); } - const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */; + const isIllegalExportDefaultInCJS = !node.isExportEquals && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */); if (node.expression.kind === 80 /* Identifier */) { const id = node.expression; const sym = getExportSymbolOfValueSymbolIfExported(resolveEntityName( @@ -89902,7 +88448,7 @@ function createTypeChecker(host) { grammarErrorOnNode(node.expression, Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context); } if (node.isExportEquals) { - if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && (node.flags & 33554432 /* Ambient */ && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && host.getImpliedNodeFormatForEmit(getSourceFileOfNode(node)) !== 1 /* CommonJS */)) { + if (moduleKind >= 5 /* ES2015 */ && moduleKind !== 200 /* Preserve */ && (node.flags & 33554432 /* Ambient */ && getSourceFileOfNode(node).impliedNodeFormat === 99 /* ESNext */ || !(node.flags & 33554432 /* Ambient */) && getSourceFileOfNode(node).impliedNodeFormat !== 1 /* CommonJS */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead); } else if (moduleKind === 4 /* System */ && !(node.flags & 33554432 /* Ambient */)) { grammarErrorOnNode(node, Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system); @@ -89963,9 +88509,6 @@ function createTypeChecker(host) { } } function checkSourceElementWorker(node) { - if (getNodeCheckFlags(node) & 8388608 /* PartiallyTypeChecked */) { - return; - } if (canHaveJSDoc(node)) { forEach(node.jsDoc, ({ comment, tags }) => { checkJSDocCommentWorker(comment); @@ -90070,7 +88613,6 @@ function createTypeChecker(host) { return checkJSDocPropertyTag(node); case 317 /* JSDocFunctionType */: checkJSDocFunctionType(node); - // falls through case 315 /* JSDocNonNullableType */: case 314 /* JSDocNullableType */: case 312 /* JSDocAllType */: @@ -90310,21 +88852,19 @@ function createTypeChecker(host) { currentNode = saveCurrentNode; (_b = tracing) == null ? void 0 : _b.pop(); } - function checkSourceFile(node, nodesToCheck) { + function checkSourceFile(node) { var _a, _b; (_a = tracing) == null ? void 0 : _a.push( tracing.Phase.Check, - nodesToCheck ? "checkSourceFileNodes" : "checkSourceFile", + "checkSourceFile", { path: node.path }, /*separateBeginAndEnd*/ true ); - const beforeMark = nodesToCheck ? "beforeCheckNodes" : "beforeCheck"; - const afterMark = nodesToCheck ? "afterCheckNodes" : "afterCheck"; - mark(beforeMark); - nodesToCheck ? checkSourceFileNodesWorker(node, nodesToCheck) : checkSourceFileWorker(node); - mark(afterMark); - measure("Check", beforeMark, afterMark); + mark("beforeCheck"); + checkSourceFileWorker(node); + mark("afterCheck"); + measure("Check", "beforeCheck", "afterCheck"); (_b = tracing) == null ? void 0 : _b.pop(); } function unusedIsError(kind, isAmbient) { @@ -90355,13 +88895,6 @@ function createTypeChecker(host) { clear(potentialWeakMapSetCollisions); clear(potentialReflectCollisions); clear(potentialUnusedRenamedBindingElementsInTypes); - if (links.flags & 8388608 /* PartiallyTypeChecked */) { - potentialThisCollisions = links.potentialThisCollisions; - potentialNewTargetCollisions = links.potentialNewTargetCollisions; - potentialWeakMapSetCollisions = links.potentialWeakMapSetCollisions; - potentialReflectCollisions = links.potentialReflectCollisions; - potentialUnusedRenamedBindingElementsInTypes = links.potentialUnusedRenamedBindingElementsInTypes; - } forEach(node.statements, checkSourceElement); checkSourceElement(node.endOfFileToken); checkDeferredNodes(node); @@ -90402,38 +88935,10 @@ function createTypeChecker(host) { links.flags |= 1 /* TypeChecked */; } } - function checkSourceFileNodesWorker(file, nodes) { - const links = getNodeLinks(file); - if (!(links.flags & 1 /* TypeChecked */)) { - if (skipTypeChecking(file, compilerOptions, host)) { - return; - } - checkGrammarSourceFile(file); - clear(potentialThisCollisions); - clear(potentialNewTargetCollisions); - clear(potentialWeakMapSetCollisions); - clear(potentialReflectCollisions); - clear(potentialUnusedRenamedBindingElementsInTypes); - forEach(nodes, checkSourceElement); - checkDeferredNodes(file); - (links.potentialThisCollisions || (links.potentialThisCollisions = [])).push(...potentialThisCollisions); - (links.potentialNewTargetCollisions || (links.potentialNewTargetCollisions = [])).push(...potentialNewTargetCollisions); - (links.potentialWeakMapSetCollisions || (links.potentialWeakMapSetCollisions = [])).push(...potentialWeakMapSetCollisions); - (links.potentialReflectCollisions || (links.potentialReflectCollisions = [])).push(...potentialReflectCollisions); - (links.potentialUnusedRenamedBindingElementsInTypes || (links.potentialUnusedRenamedBindingElementsInTypes = [])).push( - ...potentialUnusedRenamedBindingElementsInTypes - ); - links.flags |= 8388608 /* PartiallyTypeChecked */; - for (const node of nodes) { - const nodeLinks2 = getNodeLinks(node); - nodeLinks2.flags |= 8388608 /* PartiallyTypeChecked */; - } - } - } - function getDiagnostics2(sourceFile, ct, nodesToCheck) { + function getDiagnostics2(sourceFile, ct) { try { cancellationToken = ct; - return getDiagnosticsWorker(sourceFile, nodesToCheck); + return getDiagnosticsWorker(sourceFile); } finally { cancellationToken = void 0; } @@ -90444,23 +88949,20 @@ function createTypeChecker(host) { } deferredDiagnosticsCallbacks = []; } - function checkSourceFileWithEagerDiagnostics(sourceFile, nodesToCheck) { + function checkSourceFileWithEagerDiagnostics(sourceFile) { ensurePendingDiagnosticWorkComplete(); const oldAddLazyDiagnostics = addLazyDiagnostic; addLazyDiagnostic = (cb) => cb(); - checkSourceFile(sourceFile, nodesToCheck); + checkSourceFile(sourceFile); addLazyDiagnostic = oldAddLazyDiagnostics; } - function getDiagnosticsWorker(sourceFile, nodesToCheck) { + function getDiagnosticsWorker(sourceFile) { if (sourceFile) { ensurePendingDiagnosticWorkComplete(); const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length; - checkSourceFileWithEagerDiagnostics(sourceFile, nodesToCheck); + checkSourceFileWithEagerDiagnostics(sourceFile); const semanticDiagnostics = diagnostics.getDiagnostics(sourceFile.fileName); - if (nodesToCheck) { - return semanticDiagnostics; - } const currentGlobalDiagnostics = diagnostics.getGlobalDiagnostics(); if (currentGlobalDiagnostics !== previousGlobalDiagnostics) { const deferredGlobalDiagnostics = relativeComplement(previousGlobalDiagnostics, currentGlobalDiagnostics, compareDiagnostics); @@ -90470,7 +88972,7 @@ function createTypeChecker(host) { } return semanticDiagnostics; } - forEach(host.getSourceFiles(), (file) => checkSourceFileWithEagerDiagnostics(file)); + forEach(host.getSourceFiles(), checkSourceFileWithEagerDiagnostics); return diagnostics.getDiagnostics(); } function getGlobalDiagnostics() { @@ -90494,7 +88996,6 @@ function createTypeChecker(host) { switch (location.kind) { case 307 /* SourceFile */: if (!isExternalModule(location)) break; - // falls through case 267 /* ModuleDeclaration */: copyLocallyVisibleExportSymbols(getSymbolOfDeclaration(location).exports, meaning & 2623475 /* ModuleMember */); break; @@ -90506,9 +89007,6 @@ function createTypeChecker(host) { if (className) { copySymbol(location.symbol, meaning); } - // this fall-through is necessary because we would like to handle - // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration. - // falls through case 263 /* ClassDeclaration */: case 264 /* InterfaceDeclaration */: if (!isStaticSymbol) { @@ -90617,7 +89115,6 @@ function createTypeChecker(host) { if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) { return void 0; } - // falls through case 4 /* ThisProperty */: case 2 /* ModuleExports */: return getSymbolOfDeclaration(entityName.parent.parent); @@ -90797,13 +89294,13 @@ function createTypeChecker(host) { } else if (isJSDocMemberName(name)) { return resolveJSDocMemberName(name); } - } else if (isEntityName(name) && isTypeReferenceIdentifier(name)) { + } else if (isTypeReferenceIdentifier(name)) { const meaning = name.parent.kind === 183 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */; const symbol = resolveEntityName( name, meaning, /*ignoreErrors*/ - true, + false, /*dontResolveAlias*/ true ); @@ -90813,9 +89310,7 @@ function createTypeChecker(host) { return resolveEntityName( name, /*meaning*/ - 1 /* FunctionScopedVariable */, - /*ignoreErrors*/ - true + 1 /* FunctionScopedVariable */ ); } return void 0; @@ -90913,7 +89408,6 @@ function createTypeChecker(host) { if (!isThisInTypeQuery(node)) { return getSymbolOfNameOrPropertyAccessExpression(node); } - // falls through case 110 /* ThisKeyword */: const container = getThisContainer( node, @@ -90931,7 +89425,6 @@ function createTypeChecker(host) { if (isInExpressionContext(node)) { return checkExpression(node).symbol; } - // falls through case 197 /* ThisType */: return getTypeFromThisTypeNode(node).symbol; case 108 /* SuperKeyword */: @@ -90954,7 +89447,6 @@ function createTypeChecker(host) { if (isCallExpression(parent2) && isBindableObjectDefinePropertyCall(parent2) && parent2.arguments[1] === node) { return getSymbolOfDeclaration(parent2); } - // falls through case 9 /* NumericLiteral */: const objectType = isElementAccessExpression(parent2) ? parent2.argumentExpression === node ? getTypeOfExpression(parent2.expression) : void 0 : isLiteralTypeNode(parent2) && isIndexedAccessTypeNode(grandParent) ? getTypeFromTypeNode(grandParent.objectType) : void 0; return objectType && getPropertyOfType(objectType, escapeLeadingUnderscores(node.text)); @@ -90984,7 +89476,6 @@ function createTypeChecker(host) { const symbol = getIntrinsicTagSymbol(node.parent); return symbol === unknownSymbol ? void 0 : symbol; } - // falls through default: return void 0; } @@ -91000,34 +89491,15 @@ function createTypeChecker(host) { } function getShorthandAssignmentValueSymbol(location) { if (location && location.kind === 304 /* ShorthandPropertyAssignment */) { - return resolveEntityName( - location.name, - 111551 /* Value */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); + return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */); } return void 0; } function getExportSpecifierLocalTargetSymbol(node) { if (isExportSpecifier(node)) { - const name = node.propertyName || node.name; - return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : name.kind === 11 /* StringLiteral */ ? void 0 : ( - // Skip for invalid syntax like this: export { "x" } - resolveEntityName( - name, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ) - ); + return node.parent.parent.moduleSpecifier ? getExternalModuleMember(node.parent.parent, node) : resolveEntityName(node.propertyName || node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } else { - return resolveEntityName( - node, - 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, - /*ignoreErrors*/ - true - ); + return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */); } } function getTypeOfNode(node) { @@ -91371,7 +89843,7 @@ function createTypeChecker(host) { } function isReferencedAliasDeclaration(node, checkChildren) { Debug.assert(canCollectSymbolAliasAccessabilityData); - if (isAliasSymbolDeclaration(node)) { + if (isAliasSymbolDeclaration2(node)) { const symbol = getSymbolOfDeclaration(node); const links = symbol && getSymbolLinks(symbol); if (links == null ? void 0 : links.referenced) { @@ -91405,19 +89877,13 @@ function createTypeChecker(host) { const typeNode = getNonlocalEffectiveTypeAnnotationNode(parameter); if (!typeNode) return false; const type = getTypeFromTypeNode(typeNode); - return isErrorType(type) || containsUndefinedType(type); + return containsUndefinedType(type); } - function requiresAddingImplicitUndefined(parameter, enclosingDeclaration) { - return (isRequiredInitializedParameter(parameter, enclosingDeclaration) || isOptionalUninitializedParameterProperty(parameter)) && !declaredParameterTypeContainsUndefined(parameter); + function requiresAddingImplicitUndefined(parameter) { + return (isRequiredInitializedParameter(parameter) || isOptionalUninitializedParameterProperty(parameter)) && !declaredParameterTypeContainsUndefined(parameter); } - function isRequiredInitializedParameter(parameter, enclosingDeclaration) { - if (!strictNullChecks || isOptionalParameter(parameter) || isJSDocParameterTag(parameter) || !parameter.initializer) { - return false; - } - if (hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */)) { - return !!enclosingDeclaration && isFunctionLikeDeclaration(enclosingDeclaration); - } - return true; + function isRequiredInitializedParameter(parameter) { + return !!strictNullChecks && !isOptionalParameter(parameter) && !isJSDocParameterTag(parameter) && !!parameter.initializer && !hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */); } function isOptionalUninitializedParameterProperty(parameter) { return strictNullChecks && isOptionalParameter(parameter) && (isJSDocParameterTag(parameter) || !parameter.initializer) && hasSyntacticModifier(parameter, 31 /* ParameterPropertyModifier */); @@ -91464,7 +89930,7 @@ function createTypeChecker(host) { return !!(getNodeCheckFlags(node) & flag); } function calculateNodeCheckFlagWorker(node, flag) { - if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnostics(getSourceFileOfNode(node), compilerOptions)) { + if (!compilerOptions.noCheck && canIncludeBindAndCheckDiagnsotics(getSourceFileOfNode(node), compilerOptions)) { return; } const links = getNodeLinks(node); @@ -91531,14 +89997,11 @@ function createTypeChecker(host) { } function checkSingleIdentifier(node2) { const nodeLinks2 = getNodeLinks(node2); - nodeLinks2.calculatedFlags |= 536870912 /* ConstructorReference */; - if (isIdentifier(node2)) { - nodeLinks2.calculatedFlags |= 32768 /* BlockScopedBindingInLoop */ | 16384 /* CapturedBlockScopedBinding */; - if (isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) { - const s = getResolvedSymbol(node2); - if (s && s !== unknownSymbol) { - checkIdentifierCalculateNodeCheckFlags(node2, s); - } + nodeLinks2.calculatedFlags |= 536870912 /* ConstructorReference */ | 16384 /* CapturedBlockScopedBinding */ | 32768 /* BlockScopedBindingInLoop */; + if (isIdentifier(node2) && isExpressionNodeOrShorthandPropertyAssignmentName(node2) && !(isPropertyAccessExpression(node2.parent) && node2.parent.name === node2)) { + const s = getResolvedSymbol(node2); + if (s && s !== unknownSymbol) { + checkIdentifierCalculateNodeCheckFlags(node2, s); } } } @@ -91691,13 +90154,17 @@ function createTypeChecker(host) { return 11 /* ObjectType */; } } - function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, internalFlags, tracker) { - const declaration = getParseTreeNode(declarationIn, hasInferredType); + function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, tracker) { + const declaration = getParseTreeNode(declarationIn, isVariableLikeOrAccessor); if (!declaration) { return factory.createToken(133 /* AnyKeyword */); } const symbol = getSymbolOfDeclaration(declaration); - return nodeBuilder.serializeTypeForDeclaration(declaration, symbol, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); + const type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */)) ? getWidenedLiteralType(getTypeOfSymbol(symbol)) : errorType; + return nodeBuilder.serializeTypeForDeclaration(declaration, type, symbol, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker); + } + function isDeclarationWithPossibleInnerTypeNodeReuse(declaration) { + return isFunctionLike(declaration) || isExportAssignment(declaration) || isVariableLike(declaration); } function getAllAccessorDeclarationsForDeclaration(accessor) { accessor = getParseTreeNode(accessor, isGetOrSetAccessorDeclaration); @@ -91714,19 +90181,51 @@ function createTypeChecker(host) { getAccessor }; } - function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, internalFlags, tracker) { + function getPossibleTypeNodeReuseExpression(declaration) { + return isFunctionLike(declaration) && !isSetAccessor(declaration) ? getSingleReturnExpression(declaration) : isExportAssignment(declaration) ? declaration.expression : !!declaration.initializer ? declaration.initializer : isParameter(declaration) && isSetAccessor(declaration.parent) ? getSingleReturnExpression(getAllAccessorDeclarationsForDeclaration(declaration.parent).getAccessor) : void 0; + } + function getSingleReturnExpression(declaration) { + let candidateExpr; + if (declaration && !nodeIsMissing(declaration.body)) { + if (getFunctionFlags(declaration) & 3 /* AsyncGenerator */) return void 0; + const body = declaration.body; + if (body && isBlock(body)) { + forEachReturnStatement(body, (s) => { + if (!candidateExpr) { + candidateExpr = s.expression; + } else { + candidateExpr = void 0; + return true; + } + }); + } else { + candidateExpr = body; + } + } + return candidateExpr; + } + function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, tracker) { const signatureDeclaration = getParseTreeNode(signatureDeclarationIn, isFunctionLike); if (!signatureDeclaration) { return factory.createToken(133 /* AnyKeyword */); } - return nodeBuilder.serializeReturnTypeForSignature(signatureDeclaration, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); + return nodeBuilder.serializeReturnTypeForSignature(getSignatureFromDeclaration(signatureDeclaration), enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker); } - function createTypeOfExpression(exprIn, enclosingDeclaration, flags, internalFlags, tracker) { + function createTypeOfExpression(exprIn, enclosingDeclaration, flags, tracker) { const expr = getParseTreeNode(exprIn, isExpression); if (!expr) { return factory.createToken(133 /* AnyKeyword */); } - return nodeBuilder.serializeTypeForExpression(expr, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, internalFlags, tracker); + const type = getWidenedType(getRegularTypeOfExpression(expr)); + return nodeBuilder.expressionOrTypeToTypeNode( + expr, + type, + /*addUndefined*/ + void 0, + enclosingDeclaration, + flags | 1024 /* MultilineObjectLiterals */, + tracker + ); } function hasGlobalName(name) { return globals.has(escapeLeadingUnderscores(name)); @@ -91830,8 +90329,6 @@ function createTypeChecker(host) { enclosing, /*flags*/ void 0, - /*internalFlags*/ - void 0, tracker ) : type === trueType ? factory.createTrue() : type === falseType && factory.createFalse(); if (enumResult) return enumResult; @@ -91877,6 +90374,22 @@ function createTypeChecker(host) { } return void 0; } + function getNonlocalEffectiveReturnTypeAnnotationNode(node) { + const direct = getEffectiveReturnTypeNode(node); + if (direct) { + return direct; + } + if (node.kind === 177 /* GetAccessor */) { + const other = getAllAccessorDeclarationsForDeclaration(node).setAccessor; + if (other) { + const param = getSetAccessorValueParameter(other); + if (param) { + return getEffectiveTypeAnnotationNode(param); + } + } + } + return void 0; + } function createResolver() { return { getReferencedExportContainer, @@ -91944,86 +90457,18 @@ function createTypeChecker(host) { const parseDecl = getParseTreeNode(decl); return !!parseNode && !!parseDecl && (isVariableDeclaration(parseDecl) || isBindingElement(parseDecl)) && isBindingCapturedByNode(parseNode, parseDecl); }, - getDeclarationStatementsForSourceFile: (node, flags, internalFlags, tracker) => { + getDeclarationStatementsForSourceFile: (node, flags, tracker) => { const n = getParseTreeNode(node); Debug.assert(n && n.kind === 307 /* SourceFile */, "Non-sourcefile node passed into getDeclarationsForSourceFile"); const sym = getSymbolOfDeclaration(node); if (!sym) { - return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, internalFlags, tracker); + return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker); } resolveExternalModuleSymbol(sym); - return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, internalFlags, tracker); + return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker); }, isImportRequiredByAugmentation, - isDefinitelyReferenceToGlobalSymbolObject, - createLateBoundIndexSignatures: (cls, enclosing, flags, internalFlags, tracker) => { - const sym = cls.symbol; - const staticInfos = getIndexInfosOfType(getTypeOfSymbol(sym)); - const instanceIndexSymbol = getIndexSymbol(sym); - const instanceInfos = instanceIndexSymbol && getIndexInfosOfIndexSymbol(instanceIndexSymbol, arrayFrom(getMembersOfSymbol(sym).values())); - let result; - for (const infoList of [staticInfos, instanceInfos]) { - if (!length(infoList)) continue; - result || (result = []); - for (const info of infoList) { - if (info.declaration) continue; - if (info === anyBaseTypeIndexInfo) continue; - if (info.components) { - const allComponentComputedNamesSerializable = every(info.components, (e) => { - var _a; - return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible( - e.name.expression, - enclosing, - /*shouldComputeAliasToMakeVisible*/ - false - )) == null ? void 0 : _a.accessibility) === 0 /* Accessible */); - }); - if (allComponentComputedNamesSerializable) { - const newComponents = filter(info.components, (e) => { - return !hasLateBindableName(e); - }); - result.push(...map(newComponents, (e) => { - trackComputedName(e.name.expression); - const mods = infoList === staticInfos ? [factory.createModifier(126 /* StaticKeyword */)] : void 0; - return factory.createPropertyDeclaration( - append(mods, info.isReadonly ? factory.createModifier(148 /* ReadonlyKeyword */) : void 0), - e.name, - (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0, - nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker), - /*initializer*/ - void 0 - ); - })); - continue; - } - } - const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker); - if (node && infoList === staticInfos) { - (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */)); - } - if (node) { - result.push(node); - } - } - } - return result; - function trackComputedName(accessExpression) { - if (!tracker.trackSymbol) return; - const firstIdentifier = getFirstIdentifier(accessExpression); - const name = resolveName( - firstIdentifier, - firstIdentifier.escapedText, - 111551 /* Value */ | 1048576 /* ExportValue */, - /*nameNotFoundMessage*/ - void 0, - /*isUse*/ - true - ); - if (name) { - tracker.trackSymbol(name, enclosing, 111551 /* Value */); - } - } - } + isDefinitelyReferenceToGlobalSymbolObject }; function isImportRequiredByAugmentation(node) { const file = getSourceFileOfNode(node); @@ -92326,8 +90771,6 @@ function createTypeChecker(host) { return ["__propKey"]; case 16777216 /* AddDisposableResourceAndDisposeResources */: return ["__addDisposableResource", "__disposeResources"]; - case 33554432 /* RewriteRelativeImportExtension */: - return ["__rewriteRelativeImportExtension"]; default: return Debug.fail("Unrecognized helper"); } @@ -92503,7 +90946,7 @@ function createTypeChecker(host) { break; case 95 /* ExportKeyword */: if (compilerOptions.verbatimModuleSyntax && !(node.flags & 33554432 /* Ambient */) && node.kind !== 265 /* TypeAliasDeclaration */ && node.kind !== 264 /* InterfaceDeclaration */ && // ModuleDeclaration needs to be checked that it is uninstantiated later - node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 307 /* SourceFile */ && host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) === 1 /* CommonJS */) { + node.kind !== 267 /* ModuleDeclaration */ && node.parent.kind === 307 /* SourceFile */ && (moduleKind === 1 /* CommonJS */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */)) { return grammarErrorOnNode(modifier, Diagnostics.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (flags & 32 /* Export */) { @@ -93010,13 +91453,6 @@ function createTypeChecker(host) { if (name.kind === 9 /* NumericLiteral */) { checkGrammarNumericLiteral(name); } - if (name.kind === 10 /* BigIntLiteral */) { - addErrorOrSuggestion( - /*isError*/ - true, - createDiagnosticForNode(name, Diagnostics.A_bigint_literal_cannot_be_used_as_a_property_name) - ); - } currentKind = 4 /* PropertyAssignment */; break; case 174 /* MethodDeclaration */: @@ -93104,7 +91540,6 @@ function createTypeChecker(host) { } switch (moduleKind) { case 100 /* Node16 */: - case 101 /* Node18 */: case 199 /* NodeNext */: if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) { diagnostics.add( @@ -93112,18 +91547,15 @@ function createTypeChecker(host) { ); break; } - // fallthrough case 7 /* ES2022 */: case 99 /* ESNext */: - case 200 /* Preserve */: case 4 /* System */: if (languageVersion >= 4 /* ES2017 */) { break; } - // fallthrough default: diagnostics.add( - createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher) + createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.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) ); break; } @@ -93267,7 +91699,7 @@ function createTypeChecker(host) { } } function checkGrammarForInvalidDynamicName(node, message) { - if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) { + if (isNonBindableDynamicName(node)) { return grammarErrorOnNode(node, message); } } @@ -93423,7 +91855,7 @@ function createTypeChecker(host) { const message = node.initializer ? Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions : !node.type ? Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations : Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context; return grammarErrorOnNode(node.exclamationToken, message); } - if (host.getEmitModuleFormatOfFile(getSourceFileOfNode(node)) < 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 32 /* Export */)) { + if ((moduleKind < 5 /* ES2015 */ || getSourceFileOfNode(node).impliedNodeFormat === 1 /* CommonJS */) && moduleKind !== 4 /* System */ && !(node.parent.parent.flags & 33554432 /* Ambient */) && hasSyntacticModifier(node.parent.parent, 32 /* Export */)) { checkESModuleMarker(node.name); } return !!blockScopeKind && checkGrammarNameInLetOrConstDeclarations(node.name); @@ -93478,7 +91910,7 @@ function createTypeChecker(host) { } return false; } - function allowBlockDeclarations(parent2) { + function allowLetAndConstDeclarations(parent2) { switch (parent2.kind) { case 245 /* IfStatement */: case 246 /* DoStatement */: @@ -93489,12 +91921,12 @@ function createTypeChecker(host) { case 250 /* ForOfStatement */: return false; case 256 /* LabeledStatement */: - return allowBlockDeclarations(parent2.parent); + return allowLetAndConstDeclarations(parent2.parent); } return true; } function checkGrammarForDisallowedBlockScopedVariableStatement(node) { - if (!allowBlockDeclarations(node.parent)) { + if (!allowLetAndConstDeclarations(node.parent)) { const blockScopeKind = getCombinedNodeFlagsCached(node.declarationList) & 7 /* BlockScoped */; if (blockScopeKind) { const keyword = blockScopeKind === 1 /* Let */ ? "let" : blockScopeKind === 2 /* Const */ ? "const" : blockScopeKind === 4 /* Using */ ? "using" : blockScopeKind === 6 /* AwaitUsing */ ? "await using" : Debug.fail("Unknown BlockScope flag"); @@ -93726,17 +92158,17 @@ function createTypeChecker(host) { return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled); } if (moduleKind === 5 /* ES2015 */) { - return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext); + return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext); } if (node.typeArguments) { return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments); } const nodeArguments = node.arguments; - if (!(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && moduleKind !== 99 /* ESNext */ && moduleKind !== 200 /* Preserve */) { + if (moduleKind !== 99 /* ESNext */ && moduleKind !== 199 /* NodeNext */ && moduleKind !== 100 /* Node16 */) { checkGrammarForDisallowedTrailingComma(nodeArguments); if (nodeArguments.length > 1) { const importAttributesArgument = nodeArguments[1]; - return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve); + return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext); } } if (nodeArguments.length === 0 || nodeArguments.length > 2) { @@ -93875,7 +92307,7 @@ function isDeclarationNameOrImportPropertyName(name) { switch (name.parent.kind) { case 276 /* ImportSpecifier */: case 281 /* ExportSpecifier */: - return isIdentifier(name) || name.kind === 11 /* StringLiteral */; + return isIdentifier(name); default: return isDeclarationName(name); } @@ -93893,10 +92325,6 @@ var JsxNames; JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes"; JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes"; })(JsxNames || (JsxNames = {})); -var ReactNames; -((ReactNames2) => { - ReactNames2.Fragment = "Fragment"; -})(ReactNames || (ReactNames = {})); function getIterationTypesKeyFromIterationTypeKind(typeKind) { switch (typeKind) { case 0 /* Yield */: @@ -93922,16 +92350,13 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) { var _a; return (_a = host.getPackageJsonInfoCache) == null ? void 0 : _a.call(host); }, - useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), + useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames), redirectTargetsMap: host.redirectTargetsMap, getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName), isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName), fileExists: (fileName) => host.fileExists(fileName), getFileIncludeReasons: () => host.getFileIncludeReasons(), - readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0, - getDefaultResolutionModeForFile: (file) => host.getDefaultResolutionModeForFile(file), - getModeForResolutionAtIndex: (file, index) => host.getModeForResolutionAtIndex(file, index), - getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation) + readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0 }; } var SymbolTrackerImpl = class _SymbolTrackerImpl { @@ -94020,19 +92445,10 @@ var SymbolTrackerImpl = class _SymbolTrackerImpl { } reportInferenceFallback(node) { var _a; - if (((_a = this.inner) == null ? void 0 : _a.reportInferenceFallback) && !this.context.suppressReportInferenceFallback) { - this.onDiagnosticReported(); + if ((_a = this.inner) == null ? void 0 : _a.reportInferenceFallback) { this.inner.reportInferenceFallback(node); } } - pushErrorFallbackNode(node) { - var _a, _b; - return (_b = (_a = this.inner) == null ? void 0 : _a.pushErrorFallbackNode) == null ? void 0 : _b.call(_a, node); - } - popErrorFallbackNode() { - var _a, _b; - return (_b = (_a = this.inner) == null ? void 0 : _a.popErrorFallbackNode) == null ? void 0 : _b.call(_a); - } }; // src/compiler/visitorPublic.ts @@ -95134,7 +93550,7 @@ var visitEachChildTable = { return context.factory.updateImportSpecifier( node, node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isModuleExportName), + nodeVisitor(node.propertyName, visitor, isIdentifier), Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, @@ -95165,8 +93581,8 @@ var visitEachChildTable = { return context.factory.updateExportSpecifier( node, node.isTypeOnly, - nodeVisitor(node.propertyName, visitor, isModuleExportName), - Debug.checkDefined(nodeVisitor(node.name, visitor, isModuleExportName)) + nodeVisitor(node.propertyName, visitor, isIdentifier), + Debug.checkDefined(nodeVisitor(node.name, visitor, isIdentifier)) ); }, // Module references @@ -95311,13 +93727,13 @@ var visitEachChildTable = { ); }, // Transformation nodes - [355 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { + [354 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) { return context.factory.updatePartiallyEmittedExpression( node, Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression)) ); }, - [356 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { + [355 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) { return context.factory.updateCommaListExpression( node, nodesVisitor(node.elements, visitor, isExpression) @@ -95882,7 +94298,7 @@ function containsDefaultReference(node) { return some(node.elements, isNamedDefaultReference); } function isNamedDefaultReference(e) { - return moduleExportNameIsDefault(e.propertyName || e.name); + return e.propertyName !== void 0 ? e.propertyName.escapedText === "default" /* Default */ : e.name.escapedText === "default" /* Default */; } function chainBundle(context, transformSourceFile) { return transformSourceFileOrBundle; @@ -95958,10 +94374,9 @@ function collectExternalModuleInfo(context, sourceFile) { hasImportDefault || (hasImportDefault = containsDefaultReference(node.exportClause)); } else { const name = node.exportClause.name; - const nameText = moduleExportNameTextUnescaped(name); - if (!uniqueExports.get(nameText)) { + if (!uniqueExports.get(idText(name))) { multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports.set(nameText, true); + uniqueExports.set(idText(name), true); exportedNames = append(exportedNames, name); } hasImportStar = true; @@ -96019,29 +94434,26 @@ function collectExternalModuleInfo(context, sourceFile) { return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration }; function addExportedNamesForExportDeclaration(node) { for (const specifier of cast(node.exportClause, isNamedExports).elements) { - const specifierNameText = moduleExportNameTextUnescaped(specifier.name); - if (!uniqueExports.get(specifierNameText)) { + if (!uniqueExports.get(idText(specifier.name))) { const name = specifier.propertyName || specifier.name; - if (name.kind !== 11 /* StringLiteral */) { - if (!node.moduleSpecifier) { - exportSpecifiers.add(name, specifier); - } - const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); - if (decl) { - if (decl.kind === 262 /* FunctionDeclaration */) { - addExportedFunctionDeclaration(decl, specifier.name, moduleExportNameIsDefault(specifier.name)); - continue; - } - multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); + if (!node.moduleSpecifier) { + exportSpecifiers.add(name, specifier); + } + const decl = resolver.getReferencedImportDeclaration(name) || resolver.getReferencedValueDeclaration(name); + if (decl) { + if (decl.kind === 262 /* FunctionDeclaration */) { + addExportedFunctionDeclaration(decl, specifier.name, specifier.name.escapedText === "default" /* Default */); + continue; } + multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name); } - uniqueExports.set(specifierNameText, true); + uniqueExports.set(idText(specifier.name), true); exportedNames = append(exportedNames, specifier.name); } } } function addExportedFunctionDeclaration(node, name, isDefault) { - exportedFunctions.add(getOriginalNode(node, isFunctionDeclaration)); + exportedFunctions.add(node); if (isDefault) { if (!hasExportDefault) { multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name ?? context.factory.getDeclarationName(node)); @@ -96049,10 +94461,9 @@ function collectExternalModuleInfo(context, sourceFile) { } } else { name ?? (name = node.name); - const nameText = moduleExportNameTextUnescaped(name); - if (!uniqueExports.get(nameText)) { + if (!uniqueExports.get(idText(name))) { multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name); - uniqueExports.set(nameText, true); + uniqueExports.set(idText(name), true); } } } @@ -96272,9 +94683,9 @@ function getDecoratorsOfParameters(node) { } return decorators; } -function getAllDecoratorsOfClass(node, useLegacyDecorators) { +function getAllDecoratorsOfClass(node) { const decorators = getDecorators(node); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(getFirstConstructorWithBody(node)) : void 0; + const parameters = getDecoratorsOfParameters(getFirstConstructorWithBody(node)); if (!some(decorators) && !some(parameters)) { return void 0; } @@ -96288,27 +94699,18 @@ function getAllDecoratorsOfClassElement(member, parent2, useLegacyDecorators) { case 177 /* GetAccessor */: case 178 /* SetAccessor */: if (!useLegacyDecorators) { - return getAllDecoratorsOfMethod( - member, - /*useLegacyDecorators*/ - false - ); + return getAllDecoratorsOfMethod(member); } - return getAllDecoratorsOfAccessors( - member, - parent2, - /*useLegacyDecorators*/ - true - ); + return getAllDecoratorsOfAccessors(member, parent2); case 174 /* MethodDeclaration */: - return getAllDecoratorsOfMethod(member, useLegacyDecorators); + return getAllDecoratorsOfMethod(member); case 172 /* PropertyDeclaration */: return getAllDecoratorsOfProperty(member); default: return void 0; } } -function getAllDecoratorsOfAccessors(accessor, parent2, useLegacyDecorators) { +function getAllDecoratorsOfAccessors(accessor, parent2) { if (!accessor.body) { return void 0; } @@ -96318,7 +94720,7 @@ function getAllDecoratorsOfAccessors(accessor, parent2, useLegacyDecorators) { return void 0; } const decorators = getDecorators(firstAccessorWithDecorators); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(setAccessor) : void 0; + const parameters = getDecoratorsOfParameters(setAccessor); if (!some(decorators) && !some(parameters)) { return void 0; } @@ -96329,12 +94731,12 @@ function getAllDecoratorsOfAccessors(accessor, parent2, useLegacyDecorators) { setDecorators: setAccessor && getDecorators(setAccessor) }; } -function getAllDecoratorsOfMethod(method, useLegacyDecorators) { +function getAllDecoratorsOfMethod(method) { if (!method.body) { return void 0; } const decorators = getDecorators(method); - const parameters = useLegacyDecorators ? getDecoratorsOfParameters(method) : void 0; + const parameters = getDecoratorsOfParameters(method); if (!some(decorators) && !some(parameters)) { return void 0; } @@ -96379,13 +94781,6 @@ function isSimpleParameter(node) { function isSimpleParameterList(nodes) { return every(nodes, isSimpleParameter); } -function rewriteModuleSpecifier(node, compilerOptions) { - if (!node || !isStringLiteral(node) || !shouldRewriteModuleSpecifier(node.text, compilerOptions)) { - return node; - } - const updatedText = changeExtension(node.text, getOutputExtension(node.text, compilerOptions)); - return updatedText !== node.text ? setOriginalNode(setTextRange(factory.createStringLiteral(updatedText, node.singleQuote), node), node) : node; -} // src/compiler/transformers/destructuring.ts var FlattenLevel = /* @__PURE__ */ ((FlattenLevel2) => { @@ -96784,7 +95179,7 @@ function createDestructuringPropertyAccess(flattenContext, value, propertyName) propertyName ); return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); - } else if (isStringOrNumericLiteralLike(propertyName) || isBigIntLiteral(propertyName)) { + } else if (isStringOrNumericLiteralLike(propertyName)) { const argumentExpression = factory2.cloneNode(propertyName); return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression); } else { @@ -97209,7 +95604,8 @@ function transformTypeScript(context) { let currentNamespaceContainerName; let currentLexicalScope; let currentScopeFirstDeclarationsOfName; - let enabledSubstitutions = 0 /* None */; + let currentClassHasParameterProperties; + let enabledSubstitutions; let applicableSubstitutions; return transformSourceFileOrBundle; function transformSourceFileOrBundle(node) { @@ -97236,12 +95632,14 @@ function transformTypeScript(context) { function saveStateAndInvoke(node, f) { const savedCurrentScope = currentLexicalScope; const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName; + const savedCurrentClassHasParameterProperties = currentClassHasParameterProperties; onBeforeVisitNode(node); const visited = f(node); if (currentLexicalScope !== savedCurrentScope) { currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName; } currentLexicalScope = savedCurrentScope; + currentClassHasParameterProperties = savedCurrentClassHasParameterProperties; return visited; } function onBeforeVisitNode(node) { @@ -97439,8 +95837,6 @@ function transformTypeScript(context) { case 148 /* ReadonlyKeyword */: case 103 /* InKeyword */: case 147 /* OutKeyword */: - // TypeScript accessibility and readonly modifiers are elided - // falls through case 188 /* ArrayType */: case 189 /* TupleType */: case 190 /* OptionalType */: @@ -97469,8 +95865,6 @@ function transformTypeScript(context) { case 199 /* IndexedAccessType */: case 200 /* MappedType */: case 201 /* LiteralType */: - // TypeScript type nodes are elided. - // falls through case 181 /* IndexSignature */: return void 0; case 265 /* TypeAliasDeclaration */: @@ -97878,7 +96272,7 @@ function transformTypeScript(context) { } function visitPropertyNameOfClassElement(member) { const name = member.name; - if (legacyDecorators && isComputedPropertyName(name) && hasDecorators(member)) { + if (isComputedPropertyName(name) && (!hasStaticModifier(member) && currentClassHasParameterProperties || hasDecorators(member) && legacyDecorators)) { const expression = visitNode(name.expression, visitor, isExpression); Debug.assert(expression); const innerExpression = skipPartiallyEmittedExpressions(expression); @@ -98253,7 +96647,7 @@ function transformTypeScript(context) { return updated; } function visitParenthesizedExpression(node) { - const innerExpression = skipOuterExpressions(node.expression, ~(38 /* Assertions */ | 16 /* ExpressionsWithTypeArguments */)); + const innerExpression = skipOuterExpressions(node.expression, ~6 /* Assertions */); if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) { const expression = visitNode(node.expression, visitor, isExpression); Debug.assert(expression); @@ -98714,14 +97108,7 @@ function transformTypeScript(context) { return void 0; } if (!node.exportClause || isNamespaceExport(node.exportClause)) { - return factory2.updateExportDeclaration( - node, - node.modifiers, - node.isTypeOnly, - node.exportClause, - node.moduleSpecifier, - node.attributes - ); + return node; } const allowEmpty = !!compilerOptions.verbatimModuleSyntax; const exportClause = visitNode( @@ -98760,10 +97147,8 @@ function transformTypeScript(context) { return void 0; } if (isExternalModuleImportEqualsDeclaration(node)) { - if (!shouldEmitAliasDeclaration(node)) { - return void 0; - } - return visitEachChild(node, visitor, context); + const isReferenced = shouldEmitAliasDeclaration(node); + return isReferenced ? visitEachChild(node, visitor, context) : void 0; } if (!shouldEmitImportEqualsDeclaration(node)) { return void 0; @@ -99030,7 +97415,7 @@ function transformClassFields(context) { const previousOnEmitNode = context.onEmitNode; context.onEmitNode = onEmitNode; let shouldTransformPrivateStaticElementsInFile = false; - let enabledSubstitutions = 0 /* None */; + let enabledSubstitutions; let classAliases; let pendingExpressions; let pendingStatements; @@ -99068,6 +97453,8 @@ function transformClassFields(context) { return node; } switch (node.kind) { + case 129 /* AccessorKeyword */: + return Debug.fail("Use `modifierVisitor` instead."); case 263 /* ClassDeclaration */: return visitClassDeclaration(node); case 231 /* ClassExpression */: @@ -99162,7 +97549,7 @@ function transformClassFields(context) { /*discarded*/ true ); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ @@ -100480,7 +98867,6 @@ function transformClassFields(context) { addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, statementOffset)); } function transformConstructorBody(node, constructor, isDerivedClass) { - var _a; const instanceProperties = getProperties( node, /*requireInitializer*/ @@ -100574,12 +98960,12 @@ function transformClassFields(context) { setTextRange( factory2.createNodeArray(statements), /*location*/ - ((_a = constructor == null ? void 0 : constructor.body) == null ? void 0 : _a.statements) ?? node.members + constructor ? constructor.body.statements : node.members ), multiLine ), /*location*/ - constructor == null ? void 0 : constructor.body + constructor ? constructor.body : void 0 ); } function addPropertyOrClassStaticBlockStatements(statements, properties, receiver) { @@ -101102,7 +99488,6 @@ function transformClassFields(context) { if (isArrowFunction(original) || getEmitFlags(node) & 524288 /* AsyncFunctionBody */) { break; } - // falls through case 262 /* FunctionDeclaration */: case 176 /* Constructor */: case 177 /* GetAccessor */: @@ -101378,7 +99763,6 @@ function createRuntimeTypeSerializer(context) { case 197 /* ThisType */: case 205 /* ImportType */: break; - // handle JSDoc types from an invalid parse case 312 /* JSDocAllType */: case 313 /* JSDocUnknownType */: case 317 /* JSDocFunctionType */: @@ -101978,11 +100362,7 @@ function transformLegacyDecorators(context) { } } function generateConstructorDecorationExpression(node) { - const allDecorators = getAllDecoratorsOfClass( - node, - /*useLegacyDecorators*/ - true - ); + const allDecorators = getAllDecoratorsOfClass(node); const decoratorExpressions = transformAllDecoratorsOfDeclaration(allDecorators); if (!decoratorExpressions) { return void 0; @@ -102228,7 +100608,6 @@ function transformESDecorators(context) { return Debug.fail("Not supported outside of a class. Use 'classElementVisitor' instead."); case 169 /* Parameter */: return visitParameterDeclaration(node); - // Support NamedEvaluation to ensure the correct class name for class expressions. case 226 /* BinaryExpression */: return visitBinaryExpression( node, @@ -102249,7 +100628,7 @@ function transformESDecorators(context) { return visitForStatement(node); case 244 /* ExpressionStatement */: return visitExpressionStatement(node); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ @@ -102261,7 +100640,7 @@ function transformESDecorators(context) { /*discarded*/ false ); - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression( node, /*discarded*/ @@ -102285,7 +100664,6 @@ function transformESDecorators(context) { case 167 /* ComputedPropertyName */: return visitComputedPropertyName(node); case 174 /* MethodDeclaration */: - // object literal methods and accessors case 178 /* SetAccessor */: case 177 /* GetAccessor */: case 218 /* FunctionExpression */: @@ -102348,7 +100726,7 @@ function transformESDecorators(context) { /*discarded*/ true ); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression( node, /*discarded*/ @@ -102494,11 +100872,7 @@ function transformESDecorators(context) { let syntheticConstructor; let heritageClauses; let shouldTransformPrivateStaticElementsInClass = false; - const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass( - node, - /*useLegacyDecorators*/ - false - )); + const classDecorators = transformAllDecoratorsOfDeclaration(getAllDecoratorsOfClass(node)); if (classDecorators) { classInfo2.classDecoratorsName = factory2.createUniqueName("_classDecorators", 16 /* Optimistic */ | 32 /* FileLevel */); classInfo2.classDescriptorName = factory2.createUniqueName("_classDescriptor", 16 /* Optimistic */ | 32 /* FileLevel */); @@ -103971,7 +102345,7 @@ function transformES2017(context) { const resolver = context.getEmitResolver(); const compilerOptions = context.getCompilerOptions(); const languageVersion = getEmitScriptTarget(compilerOptions); - let enabledSubstitutions = 0 /* None */; + let enabledSubstitutions; let enclosingSuperContainerFlags = 0; let enclosingFunctionParameterNames; let capturedSuperProperties; @@ -104846,7 +103220,7 @@ function transformES2018(context) { const previousOnSubstituteNode = context.onSubstituteNode; context.onSubstituteNode = onSubstituteNode; let exportedVariableStatement = false; - let enabledSubstitutions = 0 /* None */; + let enabledSubstitutions; let enclosingFunctionFlags; let parametersWithPrecedingObjectRestOrSpread; let enclosingSuperContainerFlags = 0; @@ -104934,7 +103308,7 @@ function transformES2018(context) { return visitObjectLiteralExpression(node); case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 299 /* CatchClause */: return visitCatchClause(node); @@ -107595,7 +105969,7 @@ function transformJsx(context) { const name = node.name; if (isIdentifier(name)) { const text = idText(name); - return /^[A-Z_]\w*$/i.test(text) ? name : factory2.createStringLiteral(text); + return /^[A-Za-z_]\w*$/.test(text) ? name : factory2.createStringLiteral(text); } return factory2.createStringLiteral(idText(name.namespace) + ":" + idText(name.name)); } @@ -107981,7 +106355,7 @@ function transformES2015(context) { ); } let convertedLoopState; - let enabledSubstitutions = 0 /* None */; + let enabledSubstitutions; return chainBundle(context, transformSourceFile); function transformSourceFile(node) { if (node.isDeclarationFile) { @@ -108074,7 +106448,6 @@ function transformES2015(context) { switch (node.kind) { case 126 /* StaticKeyword */: return void 0; - // elide static keyword case 263 /* ClassDeclaration */: return visitClassDeclaration(node); case 231 /* ClassExpression */: @@ -108153,7 +106526,7 @@ function transformES2015(context) { return visitParenthesizedExpression(node, expressionResultIsUnused2); case 226 /* BinaryExpression */: return visitBinaryExpression(node, expressionResultIsUnused2); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression(node, expressionResultIsUnused2); case 15 /* NoSubstitutionTemplateLiteral */: case 16 /* TemplateHead */: @@ -108537,14 +106910,12 @@ function transformES2015(context) { return false; } switch (node.kind) { - // stop at function boundaries case 219 /* ArrowFunction */: case 218 /* FunctionExpression */: case 262 /* FunctionDeclaration */: case 176 /* Constructor */: case 175 /* ClassStaticBlockDeclaration */: return false; - // only step into computed property names for class and object literal elements case 177 /* GetAccessor */: case 178 /* SetAccessor */: case 174 /* MethodDeclaration */: @@ -108753,14 +107124,12 @@ function transformES2015(context) { return factory2.createPartiallyEmittedExpression(node.right, node); } switch (node.kind) { - // stop at function boundaries case 219 /* ArrowFunction */: case 218 /* FunctionExpression */: case 262 /* FunctionDeclaration */: case 176 /* Constructor */: case 175 /* ClassStaticBlockDeclaration */: return node; - // only step into computed property names for class and object literal elements case 177 /* GetAccessor */: case 178 /* SetAccessor */: case 174 /* MethodDeclaration */: @@ -108806,14 +107175,12 @@ function transformES2015(context) { ); } switch (node.kind) { - // stop at function boundaries case 219 /* ArrowFunction */: case 218 /* FunctionExpression */: case 262 /* FunctionDeclaration */: case 176 /* Constructor */: case 175 /* ClassStaticBlockDeclaration */: return node; - // only step into computed property names for class and object literal elements case 177 /* GetAccessor */: case 178 /* SetAccessor */: case 174 /* MethodDeclaration */: @@ -109726,7 +108093,7 @@ function transformES2015(context) { statement, /*outermostLabeledStatement*/ node - ) : factory2.restoreEnclosingLabel(visitNode(statement, visitor, isStatement, factory2.liftToBlock) ?? setTextRange(factory2.createEmptyStatement(), statement), node, convertedLoopState && resetLabel); + ) : factory2.restoreEnclosingLabel(Debug.checkDefined(visitNode(statement, visitor, isStatement, factory2.liftToBlock)), node, convertedLoopState && resetLabel); } function visitIterationStatement(node, outermostLabeledStatement) { switch (node.kind) { @@ -111445,7 +109812,7 @@ function transformGenerators(context) { switch (node.kind) { case 226 /* BinaryExpression */: return visitBinaryExpression(node); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return visitCommaListExpression(node); case 227 /* ConditionalExpression */: return visitConditionalExpression(node); @@ -113341,7 +111708,6 @@ function transformModule(context) { const moduleInfoMap = []; let currentSourceFile; let currentModuleInfo; - let importsAndRequiresToRewriteOrShim; const noSubstitution = []; let needUMDDynamicImportHelper; return chainBundle(context, transformSourceFile); @@ -113352,20 +111718,6 @@ function transformModule(context) { currentSourceFile = node; currentModuleInfo = collectExternalModuleInfo(context, node); moduleInfoMap[getOriginalNodeId(node)] = currentModuleInfo; - if (compilerOptions.rewriteRelativeImportExtensions) { - forEachDynamicImportOrRequireCall( - node, - /*includeTypeSpaceImports*/ - false, - /*requireStringLiteralLikeArgument*/ - false, - (node2) => { - if (!isStringLiteralLike(node2.arguments[0]) || shouldRewriteModuleSpecifier(node2.arguments[0].text, compilerOptions)) { - importsAndRequiresToRewriteOrShim = append(importsAndRequiresToRewriteOrShim, node2); - } - } - ); - } const transformModule2 = getTransformModuleDelegate(moduleKind); const updated = transformModule2(node); currentSourceFile = void 0; @@ -113398,7 +111750,7 @@ function transformModule(context) { factory2.createExpressionStatement( reduceLeft( currentModuleInfo.exportedNames.slice(i, i + chunkSize), - (prev, nextId) => nextId.kind === 11 /* StringLiteral */ ? factory2.createAssignment(factory2.createElementAccessExpression(factory2.createIdentifier("exports"), factory2.createStringLiteral(nextId.text)), prev) : factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), + (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero() ) ) @@ -113721,10 +112073,7 @@ function transformModule(context) { append(statements, createUnderscoreUnderscoreESModule()); } if (some(currentModuleInfo.exportedNames)) { - append( - statements, - factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => nextId.kind === 11 /* StringLiteral */ ? factory2.createAssignment(factory2.createElementAccessExpression(factory2.createIdentifier("exports"), factory2.createStringLiteral(nextId.text)), prev) : factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())) - ); + append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero()))); } for (const f of currentModuleInfo.exportedFunctions) { appendExportsOfHoistedDeclaration(statements, f); @@ -113837,7 +112186,7 @@ function transformModule(context) { } } function visitorWorker(node, valueIsDiscarded) { - if (!(node.transformFlags & (8388608 /* ContainsDynamicImport */ | 4096 /* ContainsDestructuringAssignment */ | 268435456 /* ContainsUpdateExpressionForIdentifier */)) && !(importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length)) { + if (!(node.transformFlags & (8388608 /* ContainsDynamicImport */ | 4096 /* ContainsDestructuringAssignment */ | 268435456 /* ContainsUpdateExpressionForIdentifier */))) { return node; } switch (node.kind) { @@ -113851,17 +112200,11 @@ function transformModule(context) { return visitExpressionStatement(node); case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); case 213 /* CallExpression */: - const needsRewrite = node === firstOrUndefined(importsAndRequiresToRewriteOrShim); - if (needsRewrite) { - importsAndRequiresToRewriteOrShim.shift(); - } - if (isImportCall(node) && host.shouldTransformImportCall(currentSourceFile)) { - return visitImportCallExpression(node, needsRewrite); - } else if (needsRewrite) { - return shimOrRewriteImportOrRequireCall(node); + if (isImportCall(node) && currentSourceFile.impliedNodeFormat === void 0) { + return visitImportCallExpression(node); } break; case 226 /* BinaryExpression */: @@ -114053,7 +112396,7 @@ function transformModule(context) { return factory2.updateLabeledStatement( node, node.label, - visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? setTextRange(factory2.createEmptyStatement(), node.statement) + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) ); } function visitWithStatement(node) { @@ -114067,7 +112410,7 @@ function transformModule(context) { return factory2.updateIfStatement( node, visitNode(node.expression, visitor, isExpression), - visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createBlock([]), + Debug.checkDefined(visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)), visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ); } @@ -114153,27 +112496,13 @@ function transformModule(context) { } return visitEachChild(node, visitor, context); } - function shimOrRewriteImportOrRequireCall(node) { - return factory2.updateCallExpression( - node, - node.expression, - /*typeArguments*/ - void 0, - visitNodes2(node.arguments, (arg) => { - if (arg === node.arguments[0]) { - return isStringLiteralLike(arg) ? rewriteModuleSpecifier(arg, compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(arg); - } - return visitor(arg); - }, isExpression) - ); - } - function visitImportCallExpression(node, rewriteOrShim) { + function visitImportCallExpression(node) { if (moduleKind === 0 /* None */ && languageVersion >= 7 /* ES2020 */) { return visitEachChild(node, visitor, context); } const externalModuleName = getExternalModuleNameLiteral(factory2, node, currentSourceFile, host, resolver, compilerOptions); const firstArgument = visitNode(firstOrUndefined(node.arguments), visitor, isExpression); - const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument && rewriteOrShim ? isStringLiteral(firstArgument) ? rewriteModuleSpecifier(firstArgument, compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(firstArgument) : firstArgument; + const argument = externalModuleName && (!firstArgument || !isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument; const containsLexicalThis = !!(node.transformFlags & 16384 /* ContainsLexicalThis */); switch (compilerOptions.module) { case 2 /* AMD */: @@ -114504,7 +112833,7 @@ function transformModule(context) { const moduleName = getExternalModuleNameLiteral(factory2, importNode, currentSourceFile, host, resolver, compilerOptions); const args = []; if (moduleName) { - args.push(rewriteModuleSpecifier(moduleName, compilerOptions)); + args.push(moduleName); } return factory2.createCallExpression( factory2.createIdentifier("require"), @@ -114615,16 +112944,17 @@ function transformModule(context) { ); } for (const specifier of node.exportClause.elements) { - const specifierName = specifier.propertyName || specifier.name; - const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && moduleExportNameIsDefault(specifierName); - const target = exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName; - const exportedValue = specifierName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, specifierName) : factory2.createPropertyAccessExpression(target, specifierName); + const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && idText(specifier.propertyName || specifier.name) === "default"; + const exportedValue = factory2.createPropertyAccessExpression( + exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName, + specifier.propertyName || specifier.name + ); statements.push( setOriginalNode( setTextRange( factory2.createExpressionStatement( createExportExpression( - specifier.name.kind === 11 /* StringLiteral */ ? factory2.cloneNode(specifier.name) : factory2.getExportName(specifier), + factory2.getExportName(specifier), exportedValue, /*location*/ void 0, @@ -114649,7 +112979,7 @@ function transformModule(context) { factory2.cloneNode(node.exportClause.name), getHelperExpressionForExport( node, - moduleKind !== 2 /* AMD */ ? createRequireCall2(node) : isExportNamespaceAsDefaultDeclaration(node) ? generatedName : node.exportClause.name.kind === 11 /* StringLiteral */ ? generatedName : factory2.createIdentifier(idText(node.exportClause.name)) + moduleKind !== 2 /* AMD */ ? createRequireCall2(node) : isExportNamespaceAsDefaultDeclaration(node) ? generatedName : factory2.createIdentifier(idText(node.exportClause.name)) ) ) ), @@ -114979,13 +113309,10 @@ function transformModule(context) { return statements; } function appendExportStatement(statements, seen, exportName, expression, location, allowComments, liveBinding) { - if (exportName.kind !== 11 /* StringLiteral */) { - if (seen.has(exportName)) { - return statements; - } + if (!seen.has(exportName)) { seen.set(exportName, true); + statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); } - statements = append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding)); return statements; } function createUnderscoreUnderscoreESModule() { @@ -115055,10 +113382,7 @@ function transformModule(context) { ]) ] ) : factory2.createAssignment( - name.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression( - factory2.createIdentifier("exports"), - factory2.cloneNode(name) - ) : factory2.createPropertyAccessExpression( + factory2.createPropertyAccessExpression( factory2.createIdentifier("exports"), factory2.cloneNode(name) ), @@ -115194,9 +113518,11 @@ function transformModule(context) { ); } else if (isImportSpecifier(importDeclaration)) { const name = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); return setTextRange( - name.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(name)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(name)), + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(name) + ), /*location*/ node ); @@ -115484,7 +113810,7 @@ function transformSystemModule(context) { const exportedNames = []; if (moduleInfo.exportedNames) { for (const exportedLocalName of moduleInfo.exportedNames) { - if (moduleExportNameIsDefault(exportedLocalName)) { + if (exportedLocalName.escapedText === "default") { continue; } exportedNames.push( @@ -115631,7 +113957,6 @@ function transformSystemModule(context) { if (!entry.importClause) { break; } - // falls through case 271 /* ImportEqualsDeclaration */: Debug.assert(importVariableName !== void 0); statements.push( @@ -115663,10 +113988,10 @@ function transformSystemModule(context) { for (const e of entry.exportClause.elements) { properties.push( factory2.createPropertyAssignment( - factory2.createStringLiteral(moduleExportNameTextUnescaped(e.name)), + factory2.createStringLiteral(idText(e.name)), factory2.createElementAccessExpression( parameterName, - factory2.createStringLiteral(moduleExportNameTextUnescaped(e.propertyName || e.name)) + factory2.createStringLiteral(idText(e.propertyName || e.name)) ) ) ); @@ -115693,7 +114018,7 @@ function transformSystemModule(context) { /*typeArguments*/ void 0, [ - factory2.createStringLiteral(moduleExportNameTextUnescaped(entry.exportClause.name)), + factory2.createStringLiteral(idText(entry.exportClause.name)), parameterName ] ) @@ -116033,7 +114358,7 @@ function transformSystemModule(context) { const exportSpecifiers = moduleInfo.exportSpecifiers.get(name); if (exportSpecifiers) { for (const exportSpecifier of exportSpecifiers) { - if (moduleExportNameTextUnescaped(exportSpecifier.name) !== excludeName) { + if (exportSpecifier.name.escapedText !== excludeName) { statements = appendExportStatement(statements, exportSpecifier.name, name); } } @@ -116185,7 +114510,7 @@ function transformSystemModule(context) { return factory2.updateLabeledStatement( node, node.label, - visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createExpressionStatement(factory2.createIdentifier("")) + Debug.checkDefined(visitNode(node.statement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)) ); } function visitWithStatement(node) { @@ -116199,7 +114524,7 @@ function transformSystemModule(context) { return factory2.updateIfStatement( node, visitNode(node.expression, visitor, isExpression), - visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ?? factory2.createBlock([]), + Debug.checkDefined(visitNode(node.thenStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock)), visitNode(node.elseStatement, topLevelNestedVisitor, isStatement, factory2.liftToBlock) ); } @@ -116266,7 +114591,7 @@ function transformSystemModule(context) { return visitExpressionStatement(node); case 217 /* ParenthesizedExpression */: return visitParenthesizedExpression(node, valueIsDiscarded); - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return visitPartiallyEmittedExpression(node, valueIsDiscarded); case 226 /* BinaryExpression */: if (isDestructuringAssignment(node)) { @@ -116454,12 +114779,13 @@ function transformSystemModule(context) { node ); } else if (isImportSpecifier(importDeclaration)) { - const importedName = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); return setTextRange( factory2.createPropertyAssignment( factory2.cloneNode(name), - importedName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(importedName)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(importedName)) + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name) + ) ), /*location*/ node @@ -116502,10 +114828,11 @@ function transformSystemModule(context) { node ); } else if (isImportSpecifier(importDeclaration)) { - const importedName = importDeclaration.propertyName || importDeclaration.name; - const target = factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration); return setTextRange( - importedName.kind === 11 /* StringLiteral */ ? factory2.createElementAccessExpression(target, factory2.cloneNode(importedName)) : factory2.createPropertyAccessExpression(target, factory2.cloneNode(importedName)), + factory2.createPropertyAccessExpression( + factory2.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) == null ? void 0 : _a.parent) == null ? void 0 : _b.parent) || importDeclaration), + factory2.cloneNode(importDeclaration.propertyName || importDeclaration.name) + ), /*location*/ node ); @@ -116599,8 +114926,6 @@ function transformECMAScriptModule(context) { context.onSubstituteNode = onSubstituteNode; context.enableEmitNotification(307 /* SourceFile */); context.enableSubstitution(80 /* Identifier */); - const noSubstitution = /* @__PURE__ */ new Set(); - let importsAndRequiresToRewriteOrShim; let helperNameSubstitutions; let currentSourceFile; let importRequireStatements; @@ -116612,22 +114937,7 @@ function transformECMAScriptModule(context) { if (isExternalModule(node) || getIsolatedModules(compilerOptions)) { currentSourceFile = node; importRequireStatements = void 0; - if (compilerOptions.rewriteRelativeImportExtensions && (currentSourceFile.flags & 4194304 /* PossiblyContainsDynamicImport */ || isInJSFile(node))) { - forEachDynamicImportOrRequireCall( - node, - /*includeTypeSpaceImports*/ - false, - /*requireStringLiteralLikeArgument*/ - false, - (node2) => { - if (!isStringLiteralLike(node2.arguments[0]) || shouldRewriteModuleSpecifier(node2.arguments[0].text, compilerOptions)) { - importsAndRequiresToRewriteOrShim = append(importsAndRequiresToRewriteOrShim, node2); - } - } - ); - } let result = updateExternalModule(node); - addEmitHelpers(result, context.readEmitHelpers()); currentSourceFile = void 0; if (importRequireStatements) { result = factory2.updateSourceFile( @@ -116650,7 +114960,7 @@ function transformECMAScriptModule(context) { if (externalHelpersImportDeclaration) { const statements = []; const statementOffset = factory2.copyPrologue(node.statements, statements); - addRange(statements, visitArray([externalHelpersImportDeclaration], visitor, isStatement)); + append(statements, externalHelpersImportDeclaration); addRange(statements, visitNodes2(node.statements, visitor, isStatement, statementOffset)); return factory2.updateSourceFile( node, @@ -116669,52 +114979,14 @@ function transformECMAScriptModule(context) { case 278 /* ExportDeclaration */: const exportDecl = node; return visitExportDeclaration(exportDecl); - case 272 /* ImportDeclaration */: - return visitImportDeclaration(node); - case 213 /* CallExpression */: - if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) { - return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift()); - } - // fallthrough - default: - if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) { - return visitEachChild(node, visitor, context); - } } return node; } - function visitImportDeclaration(node) { - if (!compilerOptions.rewriteRelativeImportExtensions) { - return node; - } - const updatedModuleSpecifier = rewriteModuleSpecifier(node.moduleSpecifier, compilerOptions); - if (updatedModuleSpecifier === node.moduleSpecifier) { - return node; - } - return factory2.updateImportDeclaration( - node, - node.modifiers, - node.importClause, - updatedModuleSpecifier, - node.attributes - ); - } - function visitImportOrRequireCall(node) { - return factory2.updateCallExpression( - node, - node.expression, - node.typeArguments, - [ - isStringLiteralLike(node.arguments[0]) ? rewriteModuleSpecifier(node.arguments[0], compilerOptions) : emitHelpers().createRewriteRelativeImportExtensionsHelper(node.arguments[0]), - ...node.arguments.slice(1) - ] - ); - } function createRequireCall2(importNode) { const moduleName = getExternalModuleNameLiteral(factory2, importNode, Debug.checkDefined(currentSourceFile), host, resolver, compilerOptions); const args = []; if (moduleName) { - args.push(rewriteModuleSpecifier(moduleName, compilerOptions)); + args.push(moduleName); } if (getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { return factory2.createCallExpression( @@ -116859,16 +115131,11 @@ function transformECMAScriptModule(context) { return node; } function visitExportDeclaration(node) { - const updatedModuleSpecifier = rewriteModuleSpecifier(node.moduleSpecifier, compilerOptions); - if (compilerOptions.module !== void 0 && compilerOptions.module > 5 /* ES2015 */ || !node.exportClause || !isNamespaceExport(node.exportClause) || !node.moduleSpecifier) { - return !node.moduleSpecifier || updatedModuleSpecifier === node.moduleSpecifier ? node : factory2.updateExportDeclaration( - node, - node.modifiers, - node.isTypeOnly, - node.exportClause, - updatedModuleSpecifier, - node.attributes - ); + if (compilerOptions.module !== void 0 && compilerOptions.module > 5 /* ES2015 */) { + return node; + } + if (!node.exportClause || !isNamespaceExport(node.exportClause) || !node.moduleSpecifier) { + return node; } const oldIdentifier = node.exportClause.name; const synthName = factory2.getGeneratedNameForNode(oldIdentifier); @@ -116884,7 +115151,7 @@ function transformECMAScriptModule(context) { synthName ) ), - updatedModuleSpecifier, + node.moduleSpecifier, node.attributes ); setOriginalNode(importDecl, node.exportClause); @@ -116908,9 +115175,7 @@ function transformECMAScriptModule(context) { if ((isExternalModule(node) || getIsolatedModules(compilerOptions)) && compilerOptions.importHelpers) { helperNameSubstitutions = /* @__PURE__ */ new Map(); } - currentSourceFile = node; previousOnEmitNode(hint, node, emitCallback); - currentSourceFile = void 0; helperNameSubstitutions = void 0; } else { previousOnEmitNode(hint, node, emitCallback); @@ -116918,34 +115183,23 @@ function transformECMAScriptModule(context) { } function onSubstituteNode(hint, node) { node = previousOnSubstituteNode(hint, node); - if (node.id && noSubstitution.has(node.id)) { - return node; - } - if (isIdentifier(node) && getEmitFlags(node) & 8192 /* HelperName */) { + if (helperNameSubstitutions && isIdentifier(node) && getEmitFlags(node) & 8192 /* HelperName */) { return substituteHelperName(node); } return node; } function substituteHelperName(node) { - const externalHelpersModuleName = currentSourceFile && getExternalHelpersModuleName(currentSourceFile); - if (externalHelpersModuleName) { - noSubstitution.add(getNodeId(node)); - return factory2.createPropertyAccessExpression(externalHelpersModuleName, node); - } - if (helperNameSubstitutions) { - const name = idText(node); - let substitution = helperNameSubstitutions.get(name); - if (!substitution) { - helperNameSubstitutions.set(name, substitution = factory2.createUniqueName(name, 16 /* Optimistic */ | 32 /* FileLevel */)); - } - return substitution; + const name = idText(node); + let substitution = helperNameSubstitutions.get(name); + if (!substitution) { + helperNameSubstitutions.set(name, substitution = factory2.createUniqueName(name, 16 /* Optimistic */ | 32 /* FileLevel */)); } - return node; + return substitution; } } -// src/compiler/transformers/module/impliedNodeFormatDependent.ts -function transformImpliedNodeFormatDependentModule(context) { +// src/compiler/transformers/module/node.ts +function transformNodeModule(context) { const previousOnSubstituteNode = context.onSubstituteNode; const previousOnEmitNode = context.onEmitNode; const esmTransform = transformECMAScriptModule(context); @@ -116956,7 +115210,6 @@ function transformImpliedNodeFormatDependentModule(context) { const cjsTransform = transformModule(context); const cjsOnSubstituteNode = context.onSubstituteNode; const cjsOnEmitNode = context.onEmitNode; - const getEmitModuleFormatOfFile2 = (file) => context.getEmitHost().getEmitModuleFormatOfFile(file); context.onSubstituteNode = onSubstituteNode; context.onEmitNode = onEmitNode; context.enableSubstitution(307 /* SourceFile */); @@ -116971,7 +115224,7 @@ function transformImpliedNodeFormatDependentModule(context) { if (!currentSourceFile) { return previousOnSubstituteNode(hint, node); } - if (getEmitModuleFormatOfFile2(currentSourceFile) >= 5 /* ES2015 */) { + if (currentSourceFile.impliedNodeFormat === 99 /* ESNext */) { return esmOnSubstituteNode(hint, node); } return cjsOnSubstituteNode(hint, node); @@ -116984,13 +115237,13 @@ function transformImpliedNodeFormatDependentModule(context) { if (!currentSourceFile) { return previousOnEmitNode(hint, node, emitCallback); } - if (getEmitModuleFormatOfFile2(currentSourceFile) >= 5 /* ES2015 */) { + if (currentSourceFile.impliedNodeFormat === 99 /* ESNext */) { return esmOnEmitNode(hint, node, emitCallback); } return cjsOnEmitNode(hint, node, emitCallback); } function getModuleTransformForFile(file) { - return getEmitModuleFormatOfFile2(file) >= 5 /* ES2015 */ ? esmTransform : cjsTransform; + return file.impliedNodeFormat === 99 /* ESNext */ ? esmTransform : cjsTransform; } function transformSourceFile(node) { if (node.isDeclarationFile) { @@ -117290,8 +115543,8 @@ function createGetIsolatedDeclarationErrors(resolver) { [219 /* ArrowFunction */]: Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, [174 /* MethodDeclaration */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, [180 /* ConstructSignature */]: Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, - [177 /* GetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations, - [178 /* SetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations, + [177 /* GetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, + [178 /* SetAccessor */]: Diagnostics.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations, [169 /* Parameter */]: Diagnostics.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations, [260 /* VariableDeclaration */]: Diagnostics.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations, [172 /* PropertyDeclaration */]: Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations, @@ -117412,11 +115665,11 @@ function createGetIsolatedDeclarationErrors(resolver) { if (isSetAccessor(node.parent)) { return createAccessorTypeError(node.parent); } - const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent); + const addUndefined = resolver.requiresAddingImplicitUndefined(node); if (!addUndefined && node.initializer) { return createExpressionError(node.initializer); } - const message = addUndefined ? Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations : errorByDeclarationKind[node.kind]; + const message = addUndefined ? Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations : errorByDeclarationKind[node.kind]; const diag2 = createDiagnosticForNode(node, message); const targetStr = getTextOfNode( node.name, @@ -117467,19 +115720,19 @@ function createGetIsolatedDeclarationErrors(resolver) { function getDeclarationDiagnostics(host, resolver, file) { const compilerOptions = host.getCompilerOptions(); const files = filter(getSourceFilesToEmit(host, file), isSourceFileNotJson); - return contains(files, file) ? transformNodes( + const result = transformNodes( resolver, host, factory, compilerOptions, - [file], + file ? contains(files, file) ? [file] : emptyArray : files, [transformDeclarations], /*allowDtsFiles*/ false - ).diagnostics : void 0; + ); + return result.diagnostics; } -var declarationEmitNodeBuilderFlags = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */; -var declarationEmitInternalNodeBuilderFlags = 8 /* AllowUnresolvedNames */; +var declarationEmitNodeBuilderFlags = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 1 /* AllowUnresolvedNames */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */; function transformDeclarations(context) { const throwDiagnostic = () => Debug.fail("Diagnostic emitted without context"); let getSymbolAccessibilityDiagnostic = throwDiagnostic; @@ -117494,7 +115747,6 @@ function transformDeclarations(context) { let suppressNewDiagnosticContexts; const { factory: factory2 } = context; const host = context.getEmitHost(); - let restoreFallbackNode = () => void 0; const symbolTracker = { trackSymbol, reportInaccessibleThisError, @@ -117506,19 +115758,7 @@ function transformDeclarations(context) { moduleResolverHost: host, reportNonlocalAugmentation, reportNonSerializableProperty, - reportInferenceFallback, - pushErrorFallbackNode(node) { - const currentFallback = errorFallbackNode; - const currentRestore = restoreFallbackNode; - restoreFallbackNode = () => { - restoreFallbackNode = currentRestore; - errorFallbackNode = currentFallback; - }; - errorFallbackNode = node; - }, - popErrorFallbackNode() { - restoreFallbackNode(); - } + reportInferenceFallback }; let errorNameNode; let errorFallbackNode; @@ -117589,10 +115829,7 @@ function transformDeclarations(context) { function reportPrivateInBaseOfClassExpression(propertyName) { if (errorNameNode || errorFallbackNode) { context.addDiagnostic( - addRelatedInfo( - createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected, propertyName), - ...isVariableDeclaration((errorNameNode || errorFallbackNode).parent) ? [createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Add_a_type_annotation_to_the_variable_0, errorDeclarationNameWithFallback())] : [] - ) + createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, propertyName) ); } } @@ -117648,7 +115885,7 @@ function transformDeclarations(context) { diagnosticMessage: s.errorModuleName ? Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit : Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit, errorNode: s.errorNode || sourceFile }; - const result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); + const result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, symbolTracker); getSymbolAccessibilityDiagnostic = oldDiag; return result; } @@ -117855,7 +116092,7 @@ function transformDeclarations(context) { ); } } - function ensureParameter(p, modifierMask) { + function ensureParameter(p, modifierMask, type) { let oldDiag; if (!suppressNewDiagnosticContexts) { oldDiag = getSymbolAccessibilityDiagnostic; @@ -117869,6 +116106,7 @@ function transformDeclarations(context) { resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(58 /* QuestionToken */) : void 0, ensureType( p, + type || p.type, /*ignorePrivate*/ true ), @@ -117893,34 +116131,44 @@ function transformDeclarations(context) { } return void 0; } - function ensureType(node, ignorePrivate) { + function ensureType(node, type, ignorePrivate) { if (!ignorePrivate && hasEffectiveModifier(node, 2 /* Private */)) { return; } if (shouldPrintWithInitializer(node)) { return; } - if (!isExportAssignment(node) && !isBindingElement(node) && node.type && (!isParameter(node) || !resolver.requiresAddingImplicitUndefined(node, enclosingDeclaration))) { - return visitNode(node.type, visitDeclarationSubtree, isTypeNode); + const shouldAddImplicitUndefined = node.kind === 169 /* Parameter */ && resolver.requiresAddingImplicitUndefined(node); + if (type && !shouldAddImplicitUndefined) { + return visitNode(type, visitDeclarationSubtree, isTypeNode); } - const oldErrorNameNode = errorNameNode; errorNameNode = node.name; let oldDiag; if (!suppressNewDiagnosticContexts) { oldDiag = getSymbolAccessibilityDiagnostic; - if (canProduceDiagnostics(node)) { - getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); - } + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(node); } let typeNode; - if (hasInferredType(node)) { - typeNode = resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - } else if (isFunctionLike(node)) { - typeNode = resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - } else { - Debug.assertNever(node); + switch (node.kind) { + case 169 /* Parameter */: + case 171 /* PropertySignature */: + case 172 /* PropertyDeclaration */: + case 208 /* BindingElement */: + case 260 /* VariableDeclaration */: + typeNode = resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker); + break; + case 262 /* FunctionDeclaration */: + case 180 /* ConstructSignature */: + case 173 /* MethodSignature */: + case 174 /* MethodDeclaration */: + case 177 /* GetAccessor */: + case 179 /* CallSignature */: + typeNode = resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker); + break; + default: + Debug.assertNever(node); } - errorNameNode = oldErrorNameNode; + errorNameNode = void 0; if (!suppressNewDiagnosticContexts) { getSymbolAccessibilityDiagnostic = oldDiag; } @@ -117936,7 +116184,6 @@ function transformDeclarations(context) { case 265 /* TypeAliasDeclaration */: case 266 /* EnumDeclaration */: return !resolver.isDeclarationVisible(node); - // The following should be doing their own visibility checks based on filtering their members case 260 /* VariableDeclaration */: return !getBindingNameVisible(node); case 271 /* ImportEqualsDeclaration */: @@ -117990,7 +116237,13 @@ function transformDeclarations(context) { if (!isPrivate) { const valueParameter = getSetAccessorValueParameter(input); if (valueParameter) { - newValueParameter = ensureParameter(valueParameter); + const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, getAllAccessorDeclarations(isObjectLiteralExpression(input.parent) ? input.parent.properties : input.parent.members, input)); + newValueParameter = ensureParameter( + valueParameter, + /*modifierMask*/ + void 0, + accessorType + ); } } if (!newValueParameter) { @@ -118022,7 +116275,7 @@ function transformDeclarations(context) { } return setCommentRange(updated, getCommentRange(original)); } - function rewriteModuleSpecifier2(parent2, input) { + function rewriteModuleSpecifier(parent2, input) { if (!input) return void 0; resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || parent2.kind !== 267 /* ModuleDeclaration */ && parent2.kind !== 205 /* ImportType */; if (isStringLiteralLike(input)) { @@ -118044,7 +116297,7 @@ function transformDeclarations(context) { decl.modifiers, decl.isTypeOnly, decl.name, - factory2.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier2(decl, specifier)) + factory2.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier(decl, specifier)) ); } else { const oldDiag = getSymbolAccessibilityDiagnostic; @@ -118060,7 +116313,7 @@ function transformDeclarations(context) { decl, decl.modifiers, decl.importClause, - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), tryGetResolutionModeOverride(decl.attributes) ); } @@ -118076,7 +116329,7 @@ function transformDeclarations(context) { /*namedBindings*/ void 0 ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), tryGetResolutionModeOverride(decl.attributes) ); } @@ -118094,7 +116347,7 @@ function transformDeclarations(context) { visibleDefaultBinding, namedBindings ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), tryGetResolutionModeOverride(decl.attributes) ) : void 0; } @@ -118109,7 +116362,7 @@ function transformDeclarations(context) { visibleDefaultBinding, bindingList && bindingList.length ? factory2.updateNamedImports(decl.importClause.namedBindings, bindingList) : void 0 ), - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), tryGetResolutionModeOverride(decl.attributes) ); } @@ -118122,7 +116375,7 @@ function transformDeclarations(context) { decl.modifiers, /*importClause*/ void 0, - rewriteModuleSpecifier2(decl, decl.moduleSpecifier), + rewriteModuleSpecifier(decl, decl.moduleSpecifier), tryGetResolutionModeOverride(decl.attributes) ); } @@ -118241,7 +116494,7 @@ function transformDeclarations(context) { input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), - ensureType(input) + ensureType(input, input.type) )); case 176 /* Constructor */: { const ctor = factory2.createConstructorDeclaration( @@ -118268,7 +116521,7 @@ function transformDeclarations(context) { input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), - ensureType(input), + ensureType(input, input.type), /*body*/ void 0 ); @@ -118281,12 +116534,13 @@ function transformDeclarations(context) { void 0 ); } + const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, getAllAccessorDeclarations(isObjectLiteralExpression(input.parent) ? input.parent.properties : input.parent.members, input)); return cleanup(factory2.updateGetAccessorDeclaration( input, ensureModifiers(input), input.name, updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)), - ensureType(input), + ensureType(input, accessorType), /*body*/ void 0 )); @@ -118319,7 +116573,7 @@ function transformDeclarations(context) { ensureModifiers(input), input.name, input.questionToken, - ensureType(input), + ensureType(input, input.type), ensureNoInitializer(input) )); case 171 /* PropertySignature */: @@ -118334,7 +116588,7 @@ function transformDeclarations(context) { ensureModifiers(input), input.name, input.questionToken, - ensureType(input) + ensureType(input, input.type) )); case 173 /* MethodSignature */: { if (isPrivateIdentifier(input.name)) { @@ -118350,7 +116604,7 @@ function transformDeclarations(context) { input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), - ensureType(input) + ensureType(input, input.type) )); } case 179 /* CallSignature */: { @@ -118359,7 +116613,7 @@ function transformDeclarations(context) { input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), - ensureType(input) + ensureType(input, input.type) ) ); } @@ -118382,7 +116636,7 @@ function transformDeclarations(context) { input.name, /*exclamationToken*/ void 0, - ensureType(input), + ensureType(input, input.type), ensureNoInitializer(input) )); } @@ -118435,7 +116689,7 @@ function transformDeclarations(context) { if (!isLiteralImportTypeNode(input)) return cleanup(input); return cleanup(factory2.updateImportTypeNode( input, - factory2.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier2(input, input.argument.literal)), + factory2.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.attributes, input.qualifier, visitNodes2(input.typeArguments, visitDeclarationSubtree, isTypeNode), @@ -118488,7 +116742,7 @@ function transformDeclarations(context) { input.modifiers, input.isTypeOnly, input.exportClause, - rewriteModuleSpecifier2(input, input.moduleSpecifier), + rewriteModuleSpecifier(input, input.moduleSpecifier), tryGetResolutionModeOverride(input.attributes) ); } @@ -118506,12 +116760,11 @@ function transformDeclarations(context) { errorNode: input }); errorFallbackNode = input; - const type = ensureType(input); const varDecl = factory2.createVariableDeclaration( newId, /*exclamationToken*/ void 0, - type, + resolver.createTypeOfExpression(input.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), /*initializer*/ void 0 ); @@ -118608,7 +116861,7 @@ function transformDeclarations(context) { input.name, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), - ensureType(input), + ensureType(input, input.type), /*body*/ void 0 )); @@ -118637,7 +116890,7 @@ function transformDeclarations(context) { return void 0; } getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration); - const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags | 2 /* NoSyntacticPrinter */, symbolTracker); + const type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace, declarationEmitNodeBuilderFlags | -2147483648 /* NoSyntacticPrinter */, symbolTracker); getSymbolAccessibilityDiagnostic = oldDiag; const isNonContextualKeywordName = isStringANonContextualKeyword(nameStr); const name = isNonContextualKeywordName ? factory2.getGeneratedNameForNode(p.valueDeclaration) : factory2.createIdentifier(nameStr); @@ -118739,7 +116992,7 @@ function transformDeclarations(context) { return cleanup(updateModuleDeclarationAndKeyword( input, mods, - isExternalModuleAugmentation(input) ? rewriteModuleSpecifier2(input, input.name) : input.name, + isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, body )); } else { @@ -118776,7 +117029,7 @@ function transformDeclarations(context) { ensureModifiers(param), param.name, param.questionToken, - ensureType(param), + ensureType(param, param.type), ensureNoInitializer(param) ), param @@ -118797,7 +117050,11 @@ function transformDeclarations(context) { elem.name, /*questionOrExclamationToken*/ void 0, - ensureType(elem), + ensureType( + elem, + /*type*/ + void 0 + ), /*initializer*/ void 0 )); @@ -118821,8 +117078,7 @@ function transformDeclarations(context) { void 0 ) ] : void 0; - const lateIndexes = resolver.createLateBoundIndexSignatures(input, enclosingDeclaration, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker); - const memberNodes = concatenate(concatenate(concatenate(privateIdentifier, lateIndexes), parameterProperties), visitNodes2(input.members, visitDeclarationSubtree, isClassElement)); + const memberNodes = concatenate(concatenate(privateIdentifier, parameterProperties), visitNodes2(input.members, visitDeclarationSubtree, isClassElement)); const members = factory2.createNodeArray(memberNodes); const extendsClause = getEffectiveBaseTypeNode(input); if (extendsClause && !isEntityNameExpression(extendsClause.expression) && extendsClause.expression.kind !== 106 /* NullKeyword */) { @@ -118837,7 +117093,7 @@ function transformDeclarations(context) { newId, /*exclamationToken*/ void 0, - resolver.createTypeOfExpression(extendsClause.expression, input, declarationEmitNodeBuilderFlags, declarationEmitInternalNodeBuilderFlags, symbolTracker), + resolver.createTypeOfExpression(extendsClause.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), /*initializer*/ void 0 ); @@ -118948,7 +117204,11 @@ function transformDeclarations(context) { e.name, /*exclamationToken*/ void 0, - ensureType(e), + ensureType( + e, + /*type*/ + void 0 + ), /*initializer*/ void 0 ); @@ -118998,6 +117258,18 @@ function transformDeclarations(context) { } return maskModifierFlags(node, mask2, additions); } + function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) { + let accessorType = getTypeAnnotationFromAccessor(node); + if (!accessorType && node !== accessors.firstAccessor) { + accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor); + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.firstAccessor); + } + if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) { + accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor); + getSymbolAccessibilityDiagnostic = createGetSymbolAccessibilityDiagnosticForNode(accessors.secondAccessor); + } + return accessorType; + } function transformHeritageClauses(nodes) { return factory2.createNodeArray(filter( map(nodes, (clause) => factory2.updateHeritageClause( @@ -119033,6 +117305,11 @@ function maskModifierFlags(node, modifierMask = 131071 /* All */ ^ 1 /* Public * } return flags; } +function getTypeAnnotationFromAccessor(accessor) { + if (accessor) { + return accessor.kind === 177 /* GetAccessor */ ? accessor.type : accessor.parameters.length > 0 ? accessor.parameters[0].type : void 0; + } +} function canHaveLiteralInitializer(node) { switch (node.kind) { case 172 /* PropertyDeclaration */: @@ -119089,19 +117366,17 @@ function isProcessedComponent(node) { // src/compiler/transformer.ts function getModuleTransformer(moduleKind) { switch (moduleKind) { - case 200 /* Preserve */: - return transformECMAScriptModule; case 99 /* ESNext */: case 7 /* ES2022 */: case 6 /* ES2020 */: case 5 /* ES2015 */: - case 100 /* Node16 */: - case 101 /* Node18 */: - case 199 /* NodeNext */: - case 1 /* CommonJS */: - return transformImpliedNodeFormatDependentModule; + case 200 /* Preserve */: + return transformECMAScriptModule; case 4 /* System */: return transformSystemModule; + case 100 /* Node16 */: + case 199 /* NodeNext */: + return transformNodeModule; default: return transformModule; } @@ -119189,7 +117464,7 @@ function noEmitNotification(hint, node, callback) { } function transformNodes(resolver, host, factory2, options, nodes, transformers, allowDtsFiles) { var _a, _b; - const enabledSyntaxKindFeatures = new Array(358 /* Count */); + const enabledSyntaxKindFeatures = new Array(357 /* Count */); let lexicalEnvironmentVariableDeclarations; let lexicalEnvironmentFunctionDeclarations; let lexicalEnvironmentStatements; @@ -119525,16 +117800,16 @@ function isBuildInfoFile(file) { function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDtsEmit = false, onlyBuildInfo, includeBuildInfo) { const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit); const options = host.getCompilerOptions(); - if (!onlyBuildInfo) { - if (options.outFile) { - if (sourceFiles.length) { - const bundle = factory.createBundle(sourceFiles); - const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); - if (result) { - return result; - } + if (options.outFile) { + if (sourceFiles.length) { + const bundle = factory.createBundle(sourceFiles); + const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); + if (result) { + return result; } - } else { + } + } else { + if (!onlyBuildInfo) { for (const sourceFile of sourceFiles) { const result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile); if (result) { @@ -119542,19 +117817,19 @@ function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDt } } } - } - if (includeBuildInfo) { - const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); - if (buildInfoPath) return action( - { buildInfoPath }, - /*sourceFileOrBundle*/ - void 0 - ); + if (includeBuildInfo) { + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + if (buildInfoPath) return action( + { buildInfoPath }, + /*sourceFileOrBundle*/ + void 0 + ); + } } } function getTsBuildInfoEmitOutputFilePath(options) { const configFile = options.configFilePath; - if (!canEmitTsBuildInfo(options)) return void 0; + if (!isIncrementalCompilation(options)) return void 0; if (options.tsBuildInfoFile) return options.tsBuildInfoFile; const outPath = options.outFile; let buildInfoExtensionLess; @@ -119572,16 +117847,14 @@ function getTsBuildInfoEmitOutputFilePath(options) { } return buildInfoExtensionLess + ".tsbuildinfo" /* TsBuildInfo */; } -function canEmitTsBuildInfo(options) { - return isIncrementalCompilation(options) || !!options.tscBuild; -} function getOutputPathsForBundle(options, forceDtsPaths) { const outPath = options.outFile; const jsFilePath = options.emitDeclarationOnly ? void 0 : outPath; const sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options); const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) ? removeFileExtension(outPath) + ".d.ts" /* Dts */ : void 0; const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; - return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath }; + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }; } function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const options = host.getCompilerOptions(); @@ -119595,7 +117868,7 @@ function getOutputPathsFor(sourceFile, host, forceDtsPaths) { const sourceMapFilePath = !jsFilePath || isJsonSourceFile(sourceFile) ? void 0 : getSourceMapFilePath(jsFilePath, options); const declarationFilePath = forceDtsPaths || getEmitDeclarations(options) && !isJsonFile ? getDeclarationEmitOutputFilePath(sourceFile.fileName, host) : void 0; const declarationMapPath = declarationFilePath && getAreDeclarationMapsEnabled(options) ? declarationFilePath + ".map" : void 0; - return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath }; + return { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath: void 0 }; } } function getSourceMapFilePath(jsFilePath, options) { @@ -119644,7 +117917,7 @@ function createAddOutput() { } } function getSingleOutputFileNames(configFile, addOutput) { - const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle( + const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle( configFile.options, /*forceDtsPaths*/ false @@ -119653,6 +117926,7 @@ function getSingleOutputFileNames(configFile, addOutput) { addOutput(sourceMapFilePath); addOutput(declarationFilePath); addOutput(declarationMapPath); + addOutput(buildInfoPath); } function getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2) { if (isDeclarationFileName(inputFileName)) return; @@ -119703,8 +117977,8 @@ function getAllProjectOutputs(configFile, ignoreCase) { for (const inputFileName of configFile.fileNames) { getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory2); } + addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options)); } - addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options)); return getOutputs(); } function getOutputFileNames(commandLine, inputFileName, ignoreCase) { @@ -119744,7 +118018,7 @@ function getFirstProjectOutput(configFile, ignoreCase) { function emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) { return !!forceDtsEmit && !!emitOnly; } -function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, declarationTransformers }, emitOnly, onlyBuildInfo, forceDtsEmit, skipBuildInfo) { +function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, declarationTransformers }, emitOnly, onlyBuildInfo, forceDtsEmit) { var compilerOptions = host.getCompilerOptions(); var sourceMapDataList = compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions) ? [] : void 0; var emittedFilesList = compilerOptions.listEmittedFiles ? [] : void 0; @@ -119760,7 +118034,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit), forceDtsEmit, onlyBuildInfo, - !targetSourceFile && !skipBuildInfo + !targetSourceFile ); exit(); return { @@ -119782,12 +118056,15 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla (_f = tracing) == null ? void 0 : _f.pop(); } function emitBuildInfo(buildInfoPath) { - if (!buildInfoPath || targetSourceFile) return; + if (!buildInfoPath || targetSourceFile || emitSkipped) return; if (host.isEmitBlocked(buildInfoPath)) { emitSkipped = true; return; } - const buildInfo = host.getBuildInfo() || { version }; + const buildInfo = host.getBuildInfo() || createBuildInfo( + /*program*/ + void 0 + ); writeFile( host, emitterDiagnostics, @@ -119811,7 +118088,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla } (isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach( (sourceFile) => { - if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile); + if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile); } ); const transform2 = transformNodes( @@ -119829,7 +118106,6 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla newLine: compilerOptions.newLine, noEmitHelpers: compilerOptions.noEmitHelpers, module: getEmitModuleKind(compilerOptions), - moduleResolution: getEmitModuleResolutionKind(compilerOptions), target: getEmitScriptTarget(compilerOptions), sourceMap: compilerOptions.sourceMap, inlineSourceMap: compilerOptions.inlineSourceMap, @@ -119864,7 +118140,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson); const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit; filesForEmit.forEach((sourceFile) => { - if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) { + if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnsotics(sourceFile, compilerOptions)) { collectLinkedAliases(sourceFile); } }); @@ -119892,7 +118168,6 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla newLine: compilerOptions.newLine, noEmitHelpers: true, module: compilerOptions.module, - moduleResolution: compilerOptions.moduleResolution, target: compilerOptions.target, sourceMap: emitOnly !== 2 /* BuilderSignature */ && compilerOptions.declarationMap, inlineSourceMap: compilerOptions.inlineSourceMap, @@ -119908,7 +118183,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla isEmitNotificationEnabled: declarationTransform.isEmitNotificationEnabled, substituteNode: declarationTransform.substituteNode }); - const dtsWritten = printSourceFileOrBundle( + printSourceFileOrBundle( declarationFilePath, declarationMapPath, declarationTransform, @@ -119922,7 +118197,7 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla } ); if (emittedFilesList) { - if (dtsWritten) emittedFilesList.push(declarationFilePath); + emittedFilesList.push(declarationFilePath); if (declarationMapPath) { emittedFilesList.push(declarationMapPath); } @@ -119951,7 +118226,6 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla forEachChild(node, collectLinkedAliases); } function markLinkedReferences(file) { - if (isSourceFileJS(file)) return; forEachChildRecursively(file, (n) => { if (isImportEqualsDeclaration(n) && !(getSyntacticModifierFlags(n) & 32 /* Export */)) return "skip"; if (isImportDeclaration(n)) return "skip"; @@ -120014,10 +118288,8 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla writer.writeLine(); } const text = writer.getText(); - const data = { sourceMapUrlPos, diagnostics: transform2.diagnostics }; - writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data); + writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform2.diagnostics }); writer.clear(); - return !data.skippedDtsWrite; } function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) { return (mapOptions.sourceMap || mapOptions.inlineSourceMap) && (sourceFileOrBundle.kind !== 307 /* SourceFile */ || !fileExtensionIs(sourceFileOrBundle.fileName, ".json" /* Json */)); @@ -120073,6 +118345,9 @@ function emitFiles(resolver, host, targetSourceFile, { scriptTransformers, decla return encodeURI(sourceMapFile); } } +function createBuildInfo(program) { + return { program, version }; +} function getBuildInfoText(buildInfo) { return JSON.stringify(buildInfo); } @@ -120118,8 +118393,7 @@ var notImplementedResolver = { isBindingCapturedByNode: notImplemented, getDeclarationStatementsForSourceFile: notImplemented, isImportRequiredByAugmentation: notImplemented, - isDefinitelyReferenceToGlobalSymbolObject: notImplemented, - createLateBoundIndexSignatures: notImplemented + isDefinitelyReferenceToGlobalSymbolObject: notImplemented }; var createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({})); var createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true })); @@ -120404,7 +118678,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (onEmitNode !== noEmitNotification && (!isEmitNotificationEnabled || isEmitNotificationEnabled(node))) { return pipelineEmitWithNotification; } - // falls through case 1 /* Substitution */: if (substituteNode !== noEmitSubstitution && (lastSubstitution = substituteNode(emitHint, node) || node) !== node) { if (currentParenthesizerRule) { @@ -120412,17 +118685,14 @@ function createPrinter(printerOptions = {}, handlers = {}) { } return pipelineEmitWithSubstitution; } - // falls through case 2 /* Comments */: if (shouldEmitComments(node)) { return pipelineEmitWithComments; } - // falls through case 3 /* SourceMaps */: if (shouldEmitSourceMaps(node)) { return pipelineEmitWithSourceMaps; } - // falls through case 4 /* Emit */: return pipelineEmitWithHint; default: @@ -120474,7 +118744,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { } if (hint === 4 /* Unspecified */) { switch (node.kind) { - // Pseudo-literals case 16 /* TemplateHead */: case 17 /* TemplateMiddle */: case 18 /* TemplateTail */: @@ -120483,26 +118752,20 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*jsxAttributeEscape*/ false ); - // Identifiers case 80 /* Identifier */: return emitIdentifier(node); - // PrivateIdentifiers case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - // Parse tree nodes - // Names case 166 /* QualifiedName */: return emitQualifiedName(node); case 167 /* ComputedPropertyName */: return emitComputedPropertyName(node); - // Signature elements case 168 /* TypeParameter */: return emitTypeParameter(node); case 169 /* Parameter */: return emitParameter(node); case 170 /* Decorator */: return emitDecorator(node); - // Type members case 171 /* PropertySignature */: return emitPropertySignature(node); case 172 /* PropertyDeclaration */: @@ -120524,7 +118787,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitConstructSignature(node); case 181 /* IndexSignature */: return emitIndexSignature(node); - // Types case 182 /* TypePredicate */: return emitTypePredicate(node); case 183 /* TypeReference */: @@ -120543,7 +118805,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitTupleType(node); case 190 /* OptionalType */: return emitOptionalType(node); - // SyntaxKind.RestType is handled below case 192 /* UnionType */: return emitUnionType(node); case 193 /* IntersectionType */: @@ -120574,19 +118835,16 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitTemplateTypeSpan(node); case 205 /* ImportType */: return emitImportTypeNode(node); - // Binding patterns case 206 /* ObjectBindingPattern */: return emitObjectBindingPattern(node); case 207 /* ArrayBindingPattern */: return emitArrayBindingPattern(node); case 208 /* BindingElement */: return emitBindingElement(node); - // Misc case 239 /* TemplateSpan */: return emitTemplateSpan(node); case 240 /* SemicolonClassElement */: return emitSemicolonClassElement(); - // Statements case 241 /* Block */: return emitBlock(node); case 243 /* VariableStatement */: @@ -120628,7 +118886,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitTryStatement(node); case 259 /* DebuggerStatement */: return emitDebuggerStatement(node); - // Declarations case 260 /* VariableDeclaration */: return emitVariableDeclaration(node); case 261 /* VariableDeclarationList */: @@ -120679,10 +118936,8 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitImportAttribute(node); case 282 /* MissingDeclaration */: return; - // Module references case 283 /* ExternalModuleReference */: return emitExternalModuleReference(node); - // JSX (non-expression) case 12 /* JsxText */: return emitJsxText(node); case 286 /* JsxOpeningElement */: @@ -120701,7 +118956,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitJsxExpression(node); case 295 /* JsxNamespacedName */: return emitJsxNamespacedName(node); - // Clauses case 296 /* CaseClause */: return emitCaseClause(node); case 297 /* DefaultClause */: @@ -120710,22 +118964,18 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitHeritageClause(node); case 299 /* CatchClause */: return emitCatchClause(node); - // Property assignments case 303 /* PropertyAssignment */: return emitPropertyAssignment(node); case 304 /* ShorthandPropertyAssignment */: return emitShorthandPropertyAssignment(node); case 305 /* SpreadAssignment */: return emitSpreadAssignment(node); - // Enum case 306 /* EnumMember */: return emitEnumMember(node); - // Top-level nodes case 307 /* SourceFile */: return emitSourceFile(node); case 308 /* Bundle */: return Debug.fail("Bundles should be printed using printBundle"); - // JSDoc nodes (only used in codefixes currently) case 309 /* JSDocTypeExpression */: return emitJSDocTypeExpression(node); case 310 /* JSDocNameReference */: @@ -120763,7 +119013,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { case 330 /* JSDocAuthorTag */: case 331 /* JSDocDeprecatedTag */: return; - // SyntaxKind.JSDocClassTag (see JSDocTag, above) case 333 /* JSDocPublicTag */: case 334 /* JSDocPrivateTag */: case 335 /* JSDocProtectedTag */: @@ -120773,7 +119022,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitJSDocCallbackTag(node); case 339 /* JSDocOverloadTag */: return emitJSDocOverloadTag(node); - // SyntaxKind.JSDocEnumTag (see below) case 341 /* JSDocParameterTag */: case 348 /* JSDocPropertyTag */: return emitJSDocPropertyLikeTag(node); @@ -120792,10 +119040,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { return emitJSDocSeeTag(node); case 351 /* JSDocImportTag */: return emitJSDocImportTag(node); - // SyntaxKind.JSDocPropertyTag (see JSDocParameterTag, above) - // Transformation nodes case 353 /* NotEmittedStatement */: - case 354 /* NotEmittedTypeElement */: return; } if (isExpression(node)) { @@ -120813,7 +119058,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { } if (hint === 1 /* Expression */) { switch (node.kind) { - // Literals case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: return emitNumericOrBigIntLiteral(node); @@ -120825,12 +119069,10 @@ function createPrinter(printerOptions = {}, handlers = {}) { /*jsxAttributeEscape*/ false ); - // Identifiers case 80 /* Identifier */: return emitIdentifier(node); case 81 /* PrivateIdentifier */: return emitPrivateIdentifier(node); - // Expressions case 209 /* ArrayLiteralExpression */: return emitArrayLiteralExpression(node); case 210 /* ObjectLiteralExpression */: @@ -120893,24 +119135,21 @@ function createPrinter(printerOptions = {}, handlers = {}) { return Debug.fail("SyntheticExpression should never be printed."); case 282 /* MissingDeclaration */: return; - // JSX case 284 /* JsxElement */: return emitJsxElement(node); case 285 /* JsxSelfClosingElement */: return emitJsxSelfClosingElement(node); case 288 /* JsxFragment */: return emitJsxFragment(node); - // Synthesized list case 352 /* SyntaxList */: return Debug.fail("SyntaxList should not be printed"); - // Transformation nodes case 353 /* NotEmittedStatement */: return; - case 355 /* PartiallyEmittedExpression */: + case 354 /* PartiallyEmittedExpression */: return emitPartiallyEmittedExpression(node); - case 356 /* CommaListExpression */: + case 355 /* CommaListExpression */: return emitCommaList(node); - case 357 /* SyntheticReferenceExpression */: + case 356 /* SyntheticReferenceExpression */: return Debug.fail("SyntheticReferenceExpression should not be printed"); } } @@ -120971,7 +119210,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } function getSortedEmitHelpers(node) { const helpers = getEmitHelpers(node); - return helpers && toSorted(helpers, compareEmitHelpers); + return helpers && stableSort(helpers, compareEmitHelpers); } function emitNumericOrBigIntLiteral(node) { emitLiteral( @@ -120981,13 +119220,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { ); } function emitLiteral(node, jsxAttributeEscape) { - const text = getLiteralTextOfNode( - node, - /*sourceFile*/ - void 0, - printerOptions.neverAsciiEscape, - jsxAttributeEscape - ); + const text = getLiteralTextOfNode(node, printerOptions.neverAsciiEscape, jsxAttributeEscape); if ((printerOptions.sourceMap || printerOptions.inlineSourceMap) && (node.kind === 11 /* StringLiteral */ || isTemplateLiteralKind(node.kind))) { writeLiteral(text); } else { @@ -121468,8 +119701,6 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (isNumericLiteral(expression)) { const text = getLiteralTextOfNode( expression, - /*sourceFile*/ - void 0, /*neverAsciiEscape*/ true, /*jsxAttributeEscape*/ @@ -122001,88 +120232,15 @@ function createPrinter(printerOptions = {}, handlers = {}) { return false; } function parenthesizeExpressionForNoAsi(node) { - if (!commentsDisabled) { - switch (node.kind) { - case 355 /* PartiallyEmittedExpression */: - if (willEmitLeadingNewLine(node)) { - const parseNode = getParseTreeNode(node); - if (parseNode && isParenthesizedExpression(parseNode)) { - const parens = factory.createParenthesizedExpression(node.expression); - setOriginalNode(parens, node); - setTextRange(parens, parseNode); - return parens; - } - return factory.createParenthesizedExpression(node); - } - return factory.updatePartiallyEmittedExpression( - node, - parenthesizeExpressionForNoAsi(node.expression) - ); - case 211 /* PropertyAccessExpression */: - return factory.updatePropertyAccessExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.name - ); - case 212 /* ElementAccessExpression */: - return factory.updateElementAccessExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.argumentExpression - ); - case 213 /* CallExpression */: - return factory.updateCallExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.typeArguments, - node.arguments - ); - case 215 /* TaggedTemplateExpression */: - return factory.updateTaggedTemplateExpression( - node, - parenthesizeExpressionForNoAsi(node.tag), - node.typeArguments, - node.template - ); - case 225 /* PostfixUnaryExpression */: - return factory.updatePostfixUnaryExpression( - node, - parenthesizeExpressionForNoAsi(node.operand) - ); - case 226 /* BinaryExpression */: - return factory.updateBinaryExpression( - node, - parenthesizeExpressionForNoAsi(node.left), - node.operatorToken, - node.right - ); - case 227 /* ConditionalExpression */: - return factory.updateConditionalExpression( - node, - parenthesizeExpressionForNoAsi(node.condition), - node.questionToken, - node.whenTrue, - node.colonToken, - node.whenFalse - ); - case 234 /* AsExpression */: - return factory.updateAsExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.type - ); - case 238 /* SatisfiesExpression */: - return factory.updateSatisfiesExpression( - node, - parenthesizeExpressionForNoAsi(node.expression), - node.type - ); - case 235 /* NonNullExpression */: - return factory.updateNonNullExpression( - node, - parenthesizeExpressionForNoAsi(node.expression) - ); + if (!commentsDisabled && isPartiallyEmittedExpression(node) && willEmitLeadingNewLine(node)) { + const parseNode = getParseTreeNode(node); + if (parseNode && isParenthesizedExpression(parseNode)) { + const parens = factory.createParenthesizedExpression(node.expression); + setOriginalNode(parens, node); + setTextRange(parens, parseNode); + return parens; } + return factory.createParenthesizedExpression(node); } return node; } @@ -122764,7 +120922,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (node.comment) { const text = getTextOfJSDocComment(node.comment); if (text) { - const lines = text.split(/\r\n?|\n/); + const lines = text.split(/\r\n?|\n/g); for (const line of lines) { writeLine(); writeSpace(); @@ -123191,7 +121349,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { if (isFunctionLike(parentNode) && parentNode.typeArguments) { return emitTypeArguments(parentNode, parentNode.typeArguments); } - emitList(parentNode, typeParameters, 53776 /* TypeParameters */ | (isArrowFunction(parentNode) ? 64 /* AllowTrailingComma */ : 0 /* None */)); + emitList(parentNode, typeParameters, 53776 /* TypeParameters */); } function emitParameters(parentNode, parameters) { emitList(parentNode, parameters, 2576 /* Parameters */); @@ -123459,7 +121617,7 @@ function createPrinter(printerOptions = {}, handlers = {}) { } } function writeLines(text) { - const lines = text.split(/\r\n?|\n/); + const lines = text.split(/\r\n?|\n/g); const indentation = guessIndentation(lines); for (const lineText of lines) { const line = indentation ? lineText.slice(indentation) : lineText; @@ -123684,18 +121842,18 @@ function createPrinter(printerOptions = {}, handlers = {}) { } return getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia); } - function getLiteralTextOfNode(node, sourceFile = currentSourceFile, neverAsciiEscape, jsxAttributeEscape) { + function getLiteralTextOfNode(node, neverAsciiEscape, jsxAttributeEscape) { if (node.kind === 11 /* StringLiteral */ && node.textSourceNode) { const textSourceNode = node.textSourceNode; if (isIdentifier(textSourceNode) || isPrivateIdentifier(textSourceNode) || isNumericLiteral(textSourceNode) || isJsxNamespacedName(textSourceNode)) { const text = isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode2(textSourceNode); return jsxAttributeEscape ? `"${escapeJsxAttributeString(text)}"` : neverAsciiEscape || getEmitFlags(node) & 16777216 /* NoAsciiEscaping */ ? `"${escapeString(text)}"` : `"${escapeNonAsciiString(text)}"`; } else { - return getLiteralTextOfNode(textSourceNode, getSourceFileOfNode(textSourceNode), neverAsciiEscape, jsxAttributeEscape); + return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape); } } const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0); - return getLiteralText(node, sourceFile, flags); + return getLiteralText(node, currentSourceFile, flags); } function pushNameGenerationScope(node) { privateNameTempFlagsStack.push(privateNameTempFlags); @@ -124696,7 +122854,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi } try { return createCachedFileSystemEntries(rootDir, rootDirPath); - } catch { + } catch (_e) { Debug.assert(!cachedReadDirectoryResult.has(ensureTrailingDirectorySeparator(rootDirPath))); return void 0; } @@ -124785,12 +122943,6 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi function realpath(s) { return host.realpath ? host.realpath(s) : s; } - function clearFirstAncestorEntry(fileOrDirectoryPath) { - forEachAncestorDirectory( - getDirectoryPath(fileOrDirectoryPath), - (ancestor) => cachedReadDirectoryResult.delete(ensureTrailingDirectorySeparator(ancestor)) ? true : void 0 - ); - } function addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath) { const existingResult = getCachedFileSystemEntries(fileOrDirectoryPath); if (existingResult !== void 0) { @@ -124799,7 +122951,6 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi } const parentResult = getCachedFileSystemEntriesForBaseDir(fileOrDirectoryPath); if (!parentResult) { - clearFirstAncestorEntry(fileOrDirectoryPath); return void 0; } if (!host.directoryExists) { @@ -124825,8 +122976,6 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi const parentResult = getCachedFileSystemEntriesForBaseDir(filePath); if (parentResult) { updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === 0 /* Created */); - } else { - clearFirstAncestorEntry(filePath); } } function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists2) { @@ -124985,7 +123134,7 @@ function isIgnoredFileFromWildCardWatching({ } return false; function hasSourceFile(file) { - return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.state.fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file); + return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file); } function isSupportedScriptKind() { if (!getScriptKind2) return false; @@ -125006,6 +123155,9 @@ function isIgnoredFileFromWildCardWatching({ } } } +function isBuilderProgram(program) { + return !!program.getState; +} function isEmittedFileOfProgram(program, file) { if (!program) { return false; @@ -125140,7 +123292,7 @@ function resolveTripleslashReference(moduleName, containingFile) { } function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, getCanonicalFileName) { let commonPathComponents; - const failed2 = forEach(fileNames, (sourceFile) => { + const failed = forEach(fileNames, (sourceFile) => { const sourcePathComponents = getNormalizedPathComponents(sourceFile, currentDirectory); sourcePathComponents.pop(); if (!commonPathComponents) { @@ -125161,7 +123313,7 @@ function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, ge commonPathComponents.length = sourcePathComponents.length; } }); - if (failed2) { + if (failed) { return ""; } if (!commonPathComponents) { @@ -125530,6 +123682,7 @@ function getModeForUsageLocation(file, usage, compilerOptions) { return getModeForUsageLocationWorker(file, usage, compilerOptions); } function getModeForUsageLocationWorker(file, usage, compilerOptions) { + var _a; if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent)) { const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent); if (isTypeOnly) { @@ -125545,28 +123698,19 @@ function getModeForUsageLocationWorker(file, usage, compilerOptions) { return override; } } - if (compilerOptions && importSyntaxAffectsModuleResolution(compilerOptions)) { - return getEmitSyntaxForUsageLocationWorker(file, usage, compilerOptions); + if (compilerOptions && getEmitModuleKind(compilerOptions) === 200 /* Preserve */) { + return usage.parent.parent && isImportEqualsDeclaration(usage.parent.parent) || isRequireCall( + usage.parent, + /*requireStringLiteralLikeArgument*/ + false + ) ? 1 /* CommonJS */ : 99 /* ESNext */; } -} -function getEmitSyntaxForUsageLocationWorker(file, usage, compilerOptions) { - var _a; - if (!compilerOptions) { - return void 0; + if (file.impliedNodeFormat === void 0) return void 0; + if (file.impliedNodeFormat !== 99 /* ESNext */) { + return isImportCall(walkUpParenthesizedExpressions(usage.parent)) ? 99 /* ESNext */ : 1 /* CommonJS */; } const exprParentParent = (_a = walkUpParenthesizedExpressions(usage.parent)) == null ? void 0 : _a.parent; - if (exprParentParent && isImportEqualsDeclaration(exprParentParent) || isRequireCall( - usage.parent, - /*requireStringLiteralLikeArgument*/ - false - )) { - return 1 /* CommonJS */; - } - if (isImportCall(walkUpParenthesizedExpressions(usage.parent))) { - return shouldTransformImportCallWorker(file, compilerOptions) ? 1 /* CommonJS */ : 99 /* ESNext */; - } - const fileEmitMode = getEmitModuleFormatOfFileWorker(file, compilerOptions); - return fileEmitMode === 1 /* CommonJS */ ? 1 /* CommonJS */ : emitModuleKindIsNonNodeESM(fileEmitMode) || fileEmitMode === 200 /* Preserve */ ? 99 /* ESNext */ : void 0; + return exprParentParent && isImportEqualsDeclaration(exprParentParent) ? 1 /* CommonJS */ : 99 /* ESNext */; } function getResolutionModeOverride(node, grammarErrorOnNode) { if (!node) return void 0; @@ -125623,7 +123767,7 @@ function getTypeReferenceResolutionName(entry) { } var typeReferenceResolutionNameAndModeGetter = { getName: getTypeReferenceResolutionName, - getMode: (entry, file, compilerOptions) => getModeForFileReference(entry, file && getDefaultResolutionModeForFileWorker(file, compilerOptions)) + getMode: (entry, file) => getModeForFileReference(entry, file == null ? void 0 : file.impliedNodeFormat) }; function createTypeReferenceResolutionLoader(containingFile, redirectedReference, options, host, cache) { return { @@ -125656,6 +123800,38 @@ function loadWithModeAwareCache(entries, containingFile, redirectedReference, op } return resolutions; } +function forEachResolvedProjectReference(resolvedProjectReferences, cb) { + return forEachProjectReference( + /*projectReferences*/ + void 0, + resolvedProjectReferences, + (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2) + ); +} +function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) { + let seenResolvedRefs; + return worker( + projectReferences, + resolvedProjectReferences, + /*parent*/ + void 0 + ); + function worker(projectReferences2, resolvedProjectReferences2, parent2) { + if (cbRef) { + const result = cbRef(projectReferences2, parent2); + if (result) return result; + } + return forEach(resolvedProjectReferences2, (resolvedRef, index) => { + if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) { + return void 0; + } + const result = cbResolvedRef(resolvedRef, parent2, index); + if (result || !resolvedRef) return result; + (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path); + return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef); + }); + } +} var inferredTypesContainingFile = "__inferred type names__.ts"; function getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName) { const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; @@ -125671,6 +123847,13 @@ function getLibraryNameFromLibFileName(libFileName) { } return "@typescript/lib-" + path; } +function getLibNameFromLibReference(libReference) { + return toFileNameLowerCase(libReference.fileName); +} +function getLibFileNameFromLibReference(libReference) { + const libName = getLibNameFromLibReference(libReference); + return libMap.get(libName); +} function isReferencedFile(reason) { switch (reason == null ? void 0 : reason.kind) { case 3 /* Import */: @@ -125744,13 +123927,7 @@ function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile) return false; if (!arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames)) return false; (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef); - return !forEach( - oldResolvedRef.references, - (childResolvedRef, index) => !resolvedProjectReferenceUptoDate( - childResolvedRef, - oldResolvedRef.commandLine.projectReferences[index] - ) - ); + return !forEach(oldResolvedRef.references, (childResolvedRef, index) => !resolvedProjectReferenceUptoDate(childResolvedRef, oldResolvedRef.commandLine.projectReferences[index])); } const refPath = resolveProjectReferencePath(oldRef); return !getParsedCommandLine(refPath); @@ -125764,15 +123941,19 @@ function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, optio return typeof result === "object" ? result.impliedNodeFormat : result; } function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) { - const moduleResolution = getEmitModuleResolutionKind(options); - const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName); - return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0; + switch (getEmitModuleResolutionKind(options)) { + case 3 /* Node16 */: + case 99 /* NodeNext */: + return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0; + default: + return void 0; + } function lookupFromPackageJson() { const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options); const packageJsonLocations = []; state.failedLookupLocations = packageJsonLocations; state.affectingLocations = packageJsonLocations; - const packageJsonScope = getPackageScopeForPath(getDirectoryPath(fileName), state); + const packageJsonScope = getPackageScopeForPath(fileName, state); const impliedNodeFormat = (packageJsonScope == null ? void 0 : packageJsonScope.contents.packageJsonContent.type) === "module" ? 99 /* ESNext */ : 1 /* CommonJS */; return { impliedNodeFormat, packageJsonLocations, packageJsonScope }; } @@ -125888,13 +124069,11 @@ function createCreateProgramOptions(rootNames, options, host, oldProgram, config typeScriptVersion: typeScriptVersion3 }; } -function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) { +function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) { var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; - let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions; - const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3, host: createProgramOptionsHost } = _createProgramOptions; - let { oldProgram } = _createProgramOptions; - _createProgramOptions = void 0; - _rootNamesOrOptions = void 0; + const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions; + const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3 } = createProgramOptions; + let { oldProgram } = createProgramOptions; for (const option of commandLineOptionOfCustomType) { if (hasProperty(options, option.name)) { if (typeof options[option.name] === "string") { @@ -125907,12 +124086,17 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi let processingOtherFiles; let files; let symlinks; + let commonSourceDirectory; let typeChecker; let classifiableNames; + const ambientModuleNameToUnmodifiedFileName = /* @__PURE__ */ new Map(); + let fileReasons = createMultiMap(); let filesWithReferencesProcessed; - let cachedBindAndCheckDiagnosticsForFile; - let cachedDeclarationDiagnosticsForFile; - const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax); + let fileReasonsToChain; + let reasonToRelatedInfo; + const cachedBindAndCheckDiagnosticsForFile = {}; + const cachedDeclarationDiagnosticsForFile = {}; + let fileProcessingDiagnostics; let automaticTypeDirectiveNames; let automaticTypeDirectiveResolutions; let resolvedLibReferences; @@ -125934,12 +124118,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi true ); mark("beforeProgram"); - const host = createProgramOptionsHost || createCompilerHost(options); + const host = createProgramOptions.host || createCompilerHost(options); const configParsingHost = parseConfigHostFromCompilerHostLike(host); let skipDefaultLib = options.noLib; const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options)); const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName()); - let skipVerifyCompilerOptions = false; + const programDiagnostics = createDiagnosticCollection(); + let lazyProgramDiagnosticExplainingFile = []; const currentDirectory = host.getCurrentDirectory(); const supportedExtensions = getSupportedExtensions(options); const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions); @@ -126022,7 +124207,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const packageIdToSourceFile = /* @__PURE__ */ new Map(); let sourceFileToPackageName = /* @__PURE__ */ new Map(); let redirectTargetsMap = createMultiMap(); - let usesUriStyleNodeCoreModules; + let usesUriStyleNodeCoreModules = false; const filesByName = /* @__PURE__ */ new Map(); let missingFileNames = /* @__PURE__ */ new Map(); const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0; @@ -126142,7 +124327,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi }); } } - files = toSorted(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); + files = stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles); processingDefaultLibFiles = void 0; processingOtherFiles = void 0; filesWithReferencesProcessed = void 0; @@ -126153,7 +124338,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const newFile = getSourceFileByPath(oldSourceFile.resolvedPath); if (shouldCreateNewSourceFile || !newFile || newFile.impliedNodeFormat !== oldSourceFile.impliedNodeFormat || // old file wasn't redirect but new file is oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path) { - host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path), newFile); + host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path)); } } if (!host.getParsedCommandLine) { @@ -126163,9 +124348,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi resolvedProjectReference.sourceFile, oldProgram.getCompilerOptions(), /*hasSourceFileByPath*/ - false, - /*newSourceFileByResolvedPath*/ - void 0 + false ); } }); @@ -126217,13 +124400,12 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi getTypeCount: () => getTypeChecker().getTypeCount(), getInstantiationCount: () => getTypeChecker().getInstantiationCount(), getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(), - getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(), + getFileProcessingDiagnostics: () => fileProcessingDiagnostics, getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames, getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions, isSourceFileFromExternalLibrary, isSourceFileDefaultLibrary, getModeForUsageLocation: getModeForUsageLocation2, - getEmitSyntaxForUsageLocation, getModeForResolutionAtIndex: getModeForResolutionAtIndex2, getSourceFileFromReference, getLibFileFromReference, @@ -126233,7 +124415,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi resolvedModules, resolvedTypeReferenceDirectiveNames, resolvedLibReferences, - getProgramDiagnosticsContainer: () => programDiagnostics, getResolvedModule, getResolvedModuleFromModuleSpecifier, getResolvedTypeReferenceDirective, @@ -126253,11 +124434,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi forEachResolvedProjectReference: forEachResolvedProjectReference2, isSourceOfProjectReferenceRedirect, getRedirectReferenceForResolutionFromSourceOfProject, - getCompilerOptionsForFile, - getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2, - getEmitModuleFormatOfFile: getEmitModuleFormatOfFile2, - getImpliedNodeFormatForEmit: getImpliedNodeFormatForEmit2, - shouldTransformImportCall, emitBuildInfo, fileExists, readFile, @@ -126266,19 +124442,69 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host), useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), getCanonicalFileName, - getFileIncludeReasons: () => programDiagnostics.getFileReasons(), + getFileIncludeReasons: () => fileReasons, structureIsReused, - writeFile: writeFile2, - getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation) + writeFile: writeFile2 }; onProgramCreateComplete(); - if (!skipVerifyCompilerOptions) { - verifyCompilerOptions(); - } + verifyCompilerOptions(); mark("afterProgram"); measure("Program", "beforeProgram", "afterProgram"); (_p = tracing) == null ? void 0 : _p.pop(); return program; + function updateAndGetProgramDiagnostics() { + if (lazyProgramDiagnosticExplainingFile) { + fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => { + switch (diagnostic.kind) { + case 1 /* FilePreprocessingFileExplainingDiagnostic */: + return programDiagnostics.add( + createDiagnosticExplainingFile( + diagnostic.file && getSourceFileByPath(diagnostic.file), + diagnostic.fileProcessingReason, + diagnostic.diagnostic, + diagnostic.args || emptyArray + ) + ); + case 0 /* FilePreprocessingLibReferenceDiagnostic */: + return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic)); + case 2 /* ResolutionDiagnostics */: + return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d)); + default: + Debug.assertNever(diagnostic); + } + }); + lazyProgramDiagnosticExplainingFile.forEach( + ({ file, diagnostic, args }) => programDiagnostics.add( + createDiagnosticExplainingFile( + file, + /*fileProcessingReason*/ + void 0, + diagnostic, + args + ) + ) + ); + lazyProgramDiagnosticExplainingFile = void 0; + fileReasonsToChain = void 0; + reasonToRelatedInfo = void 0; + } + return programDiagnostics; + } + function filePreprocessingLibreferenceDiagnostic({ reason }) { + const { file, pos, end } = getReferencedFileLocation(program, reason); + const libReference = file.libReferenceDirectives[reason.index]; + const libName = getLibNameFromLibReference(libReference); + const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts"); + const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity); + return createFileDiagnostic( + file, + Debug.checkDefined(pos), + Debug.checkDefined(end) - pos, + suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0, + libName, + suggestion + ); + } function getResolvedModule(file, moduleName, mode) { var _a2; return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode); @@ -126293,11 +124519,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return (_a2 = resolvedTypeReferenceDirectiveNames == null ? void 0 : resolvedTypeReferenceDirectiveNames.get(file.path)) == null ? void 0 : _a2.get(typeDirectiveName, mode); } function getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(typeRef, sourceFile) { - return getResolvedTypeReferenceDirective( - sourceFile, - typeRef.fileName, - getModeForTypeReferenceDirectiveInFile(typeRef, sourceFile) - ); + return getResolvedTypeReferenceDirective(sourceFile, typeRef.fileName, typeRef.resolutionMode || sourceFile.impliedNodeFormat); } function forEachResolvedModule(callback, file) { forEachResolution(resolvedModules, callback, file); @@ -126327,7 +124549,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi function addResolutionDiagnostics(resolution) { var _a2; if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length)) return; - programDiagnostics.addFileProcessingDiagnostic({ + (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push({ kind: 2 /* ResolutionDiagnostics */, diagnostics: resolution.resolutionDiagnostics }); @@ -126343,18 +124565,12 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) { var _a2, _b2; + if (!moduleNames.length) return emptyArray; const containingFileName = getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory); const redirectedReference = getRedirectReferenceForResolution(containingFile); (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveModuleNamesWorker", { containingFileName }); mark("beforeResolveModule"); - const result = actualResolveModuleNamesWorker( - moduleNames, - containingFileName, - redirectedReference, - options, - containingFile, - reusedNames - ); + const result = actualResolveModuleNamesWorker(moduleNames, containingFileName, redirectedReference, options, containingFile, reusedNames); mark("afterResolveModule"); measure("ResolveModule", "beforeResolveModule", "afterResolveModule"); (_b2 = tracing) == null ? void 0 : _b2.pop(); @@ -126362,19 +124578,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile, reusedNames) { var _a2, _b2; + if (!typeDirectiveNames.length) return []; const containingSourceFile = !isString(containingFile) ? containingFile : void 0; const containingFileName = !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile; const redirectedReference = containingSourceFile && getRedirectReferenceForResolution(containingSourceFile); (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "resolveTypeReferenceDirectiveNamesWorker", { containingFileName }); mark("beforeResolveTypeReference"); - const result = actualResolveTypeReferenceDirectiveNamesWorker( - typeDirectiveNames, - containingFileName, - redirectedReference, - options, - containingSourceFile, - reusedNames - ); + const result = actualResolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFileName, redirectedReference, options, containingSourceFile, reusedNames); mark("afterResolveTypeReference"); measure("ResolveTypeReference", "beforeResolveTypeReference", "afterResolveTypeReference"); (_b2 = tracing) == null ? void 0 : _b2.pop(); @@ -126421,19 +124631,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return toPath(fileName, currentDirectory, getCanonicalFileName); } function getCommonSourceDirectory2() { - let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory(); - if (commonSourceDirectory !== void 0) { - return commonSourceDirectory; + if (commonSourceDirectory === void 0) { + const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program)); + commonSourceDirectory = getCommonSourceDirectory( + options, + () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName), + currentDirectory, + getCanonicalFileName, + (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2) + ); } - const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program)); - commonSourceDirectory = getCommonSourceDirectory( - options, - () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName), - currentDirectory, - getCanonicalFileName, - (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2) - ); - programDiagnostics.setCommonSourceDirectory(commonSourceDirectory); return commonSourceDirectory; } function getClassifiableNames() { @@ -126447,108 +124654,144 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } return classifiableNames; } - function resolveModuleNamesReusingOldState(moduleNames, containingFile) { - return resolveNamesReusingOldState({ - entries: moduleNames, - containingFile, - containingSourceFile: containingFile, - redirectedReference: getRedirectReferenceForResolution(containingFile), - nameAndModeGetter: moduleResolutionNameAndModeGetter, - resolutionWorker: resolveModuleNamesWorker, - getResolutionFromOldProgram: (name, mode) => oldProgram == null ? void 0 : oldProgram.getResolvedModule(containingFile, name, mode), - getResolved: getResolvedModuleFromResolution, - canReuseResolutionsInFile: () => containingFile === (oldProgram == null ? void 0 : oldProgram.getSourceFile(containingFile.fileName)) && !hasInvalidatedResolutions(containingFile.path), - resolveToOwnAmbientModule: true - }); - } - function resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectiveNames, containingFile) { - const containingSourceFile = !isString(containingFile) ? containingFile : void 0; - return resolveNamesReusingOldState({ - entries: typeDirectiveNames, - containingFile, - containingSourceFile, - redirectedReference: containingSourceFile && getRedirectReferenceForResolution(containingSourceFile), - nameAndModeGetter: typeReferenceResolutionNameAndModeGetter, - resolutionWorker: resolveTypeReferenceDirectiveNamesWorker, - getResolutionFromOldProgram: (name, mode) => { - var _a2; - return containingSourceFile ? oldProgram == null ? void 0 : oldProgram.getResolvedTypeReferenceDirective(containingSourceFile, name, mode) : (_a2 = oldProgram == null ? void 0 : oldProgram.getAutomaticTypeDirectiveResolutions()) == null ? void 0 : _a2.get(name, mode); - }, - getResolved: getResolvedTypeReferenceDirectiveFromResolution, - canReuseResolutionsInFile: () => containingSourceFile ? containingSourceFile === (oldProgram == null ? void 0 : oldProgram.getSourceFile(containingSourceFile.fileName)) && !hasInvalidatedResolutions(containingSourceFile.path) : !hasInvalidatedResolutions(toPath3(containingFile)) - }); - } - function resolveNamesReusingOldState({ - entries, - containingFile, - containingSourceFile, - redirectedReference, - nameAndModeGetter, - resolutionWorker, - getResolutionFromOldProgram, - getResolved, - canReuseResolutionsInFile, - resolveToOwnAmbientModule - }) { - if (!entries.length) return emptyArray; - if (structureIsReused === 0 /* Not */ && (!resolveToOwnAmbientModule || !containingSourceFile.ambientModuleNames.length)) { - return resolutionWorker( - entries, - containingFile, + function resolveModuleNamesReusingOldState(moduleNames, file) { + if (structureIsReused === 0 /* Not */ && !file.ambientModuleNames.length) { + return resolveModuleNamesWorker( + moduleNames, + file, /*reusedNames*/ void 0 ); } - let unknownEntries; - let unknownEntryIndices; + let unknownModuleNames; let result; let reusedNames; - const reuseResolutions = canReuseResolutionsInFile(); - for (let i = 0; i < entries.length; i++) { - const entry = entries[i]; - if (reuseResolutions) { - const name = nameAndModeGetter.getName(entry); - const mode = nameAndModeGetter.getMode(entry, containingSourceFile, (redirectedReference == null ? void 0 : redirectedReference.commandLine.options) ?? options); - const oldResolution = getResolutionFromOldProgram(name, mode); - const oldResolved = oldResolution && getResolved(oldResolution); - if (oldResolved) { + const predictedToResolveToAmbientModuleMarker = emptyResolution; + const oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName); + for (let i = 0; i < moduleNames.length; i++) { + const moduleName = moduleNames[i]; + if (file === oldSourceFile && !hasInvalidatedResolutions(file.path)) { + const oldResolution = oldProgram == null ? void 0 : oldProgram.getResolvedModule(file, moduleName.text, getModeForUsageLocation2(file, moduleName)); + if (oldResolution == null ? void 0 : oldResolution.resolvedModule) { if (isTraceEnabled(options, host)) { trace( host, - resolutionWorker === resolveModuleNamesWorker ? oldResolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : oldResolved.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2, - name, - containingSourceFile ? getNormalizedAbsolutePath(containingSourceFile.originalFileName, currentDirectory) : containingFile, - oldResolved.resolvedFileName, - oldResolved.packageId && packageIdToString(oldResolved.packageId) + oldResolution.resolvedModule.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, + moduleName.text, + getNormalizedAbsolutePath(file.originalFileName, currentDirectory), + oldResolution.resolvedModule.resolvedFileName, + oldResolution.resolvedModule.packageId && packageIdToString(oldResolution.resolvedModule.packageId) ); } - (result ?? (result = new Array(entries.length)))[i] = oldResolution; - (reusedNames ?? (reusedNames = [])).push(entry); + (result ?? (result = new Array(moduleNames.length)))[i] = oldResolution; + (reusedNames ?? (reusedNames = [])).push(moduleName); continue; } } - if (resolveToOwnAmbientModule) { - const name = nameAndModeGetter.getName(entry); - if (contains(containingSourceFile.ambientModuleNames, name)) { + let resolvesToAmbientModuleInNonModifiedFile = false; + if (contains(file.ambientModuleNames, moduleName.text)) { + resolvesToAmbientModuleInNonModifiedFile = true; + if (isTraceEnabled(options, host)) { + trace(host, Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, moduleName.text, getNormalizedAbsolutePath(file.originalFileName, currentDirectory)); + } + } else { + resolvesToAmbientModuleInNonModifiedFile = moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName); + } + if (resolvesToAmbientModuleInNonModifiedFile) { + (result || (result = new Array(moduleNames.length)))[i] = predictedToResolveToAmbientModuleMarker; + } else { + (unknownModuleNames ?? (unknownModuleNames = [])).push(moduleName); + } + } + const resolutions = unknownModuleNames && unknownModuleNames.length ? resolveModuleNamesWorker(unknownModuleNames, file, reusedNames) : emptyArray; + if (!result) { + Debug.assert(resolutions.length === moduleNames.length); + return resolutions; + } + let j = 0; + for (let i = 0; i < result.length; i++) { + if (!result[i]) { + result[i] = resolutions[j]; + j++; + } + } + Debug.assert(j === resolutions.length); + return result; + function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName) { + var _a2; + const resolutionToFile = (_a2 = oldProgram == null ? void 0 : oldProgram.getResolvedModule(file, moduleName.text, getModeForUsageLocation2(file, moduleName))) == null ? void 0 : _a2.resolvedModule; + const resolvedFile = resolutionToFile && oldProgram.getSourceFile(resolutionToFile.resolvedFileName); + if (resolutionToFile && resolvedFile) { + return false; + } + const unmodifiedFile = ambientModuleNameToUnmodifiedFileName.get(moduleName.text); + if (!unmodifiedFile) { + return false; + } + if (isTraceEnabled(options, host)) { + trace(host, Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, moduleName.text, unmodifiedFile); + } + return true; + } + } + function resolveTypeReferenceDirectiveNamesReusingOldState(typeDirectiveNames, containingFile) { + var _a2; + if (structureIsReused === 0 /* Not */) { + return resolveTypeReferenceDirectiveNamesWorker( + typeDirectiveNames, + containingFile, + /*reusedNames*/ + void 0 + ); + } + let unknownTypeReferenceDirectiveNames; + let result; + let reusedNames; + const containingSourceFile = !isString(containingFile) ? containingFile : void 0; + const oldSourceFile = !isString(containingFile) ? oldProgram && oldProgram.getSourceFile(containingFile.fileName) : void 0; + const canReuseResolutions = !isString(containingFile) ? containingFile === oldSourceFile && !hasInvalidatedResolutions(containingFile.path) : !hasInvalidatedResolutions(toPath3(containingFile)); + for (let i = 0; i < typeDirectiveNames.length; i++) { + const entry = typeDirectiveNames[i]; + if (canReuseResolutions) { + const typeDirectiveName = getTypeReferenceResolutionName(entry); + const mode = getModeForFileReference(entry, containingSourceFile == null ? void 0 : containingSourceFile.impliedNodeFormat); + const oldResolution = !isString(containingFile) ? oldProgram == null ? void 0 : oldProgram.getResolvedTypeReferenceDirective(containingFile, typeDirectiveName, mode) : (_a2 = oldProgram == null ? void 0 : oldProgram.getAutomaticTypeDirectiveResolutions()) == null ? void 0 : _a2.get(typeDirectiveName, mode); + if (oldResolution == null ? void 0 : oldResolution.resolvedTypeReferenceDirective) { if (isTraceEnabled(options, host)) { trace( host, - Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, - name, - getNormalizedAbsolutePath(containingSourceFile.originalFileName, currentDirectory) + oldResolution.resolvedTypeReferenceDirective.packageId ? Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2, + typeDirectiveName, + !isString(containingFile) ? getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile, + oldResolution.resolvedTypeReferenceDirective.resolvedFileName, + oldResolution.resolvedTypeReferenceDirective.packageId && packageIdToString(oldResolution.resolvedTypeReferenceDirective.packageId) ); } - (result ?? (result = new Array(entries.length)))[i] = emptyResolution; + (result ?? (result = new Array(typeDirectiveNames.length)))[i] = oldResolution; + (reusedNames ?? (reusedNames = [])).push(entry); continue; } } - (unknownEntries ?? (unknownEntries = [])).push(entry); - (unknownEntryIndices ?? (unknownEntryIndices = [])).push(i); + (unknownTypeReferenceDirectiveNames ?? (unknownTypeReferenceDirectiveNames = [])).push(entry); + } + if (!unknownTypeReferenceDirectiveNames) return result || emptyArray; + const resolutions = resolveTypeReferenceDirectiveNamesWorker( + unknownTypeReferenceDirectiveNames, + containingFile, + reusedNames + ); + if (!result) { + Debug.assert(resolutions.length === typeDirectiveNames.length); + return resolutions; + } + let j = 0; + for (let i = 0; i < result.length; i++) { + if (!result[i]) { + result[i] = resolutions[j]; + j++; + } } - if (!unknownEntries) return result; - const resolutions = resolutionWorker(unknownEntries, containingFile, reusedNames); - if (!result) return resolutions; - resolutions.forEach((resolution, index) => result[unknownEntryIndices[index]] = resolution); + Debug.assert(j === resolutions.length); return result; } function canReuseProjectReferences() { @@ -126677,6 +124920,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } else if (hasInvalidatedResolutions(oldSourceFile.path)) { structureIsReused = 1 /* SafeModules */; modifiedSourceFiles.push(newSourceFile); + } else { + for (const moduleName of oldSourceFile.ambientModuleNames) { + ambientModuleNameToUnmodifiedFileName.set(moduleName, oldSourceFile.fileName); + } } newSourceFiles.push(newSourceFile); } @@ -126687,11 +124934,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const moduleNames = getModuleNames(newSourceFile); const resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile); (resolvedModulesProcessing ?? (resolvedModulesProcessing = /* @__PURE__ */ new Map())).set(newSourceFile.path, resolutions); - const optionsForFile = getCompilerOptionsForFile(newSourceFile); const resolutionsChanged = hasChangesInResolutions( moduleNames, resolutions, - (name) => oldProgram.getResolvedModule(newSourceFile, name.text, getModeForUsageLocationWorker(newSourceFile, name, optionsForFile)), + (name) => oldProgram.getResolvedModule(newSourceFile, name.text, getModeForUsageLocation2(newSourceFile, name)), moduleResolutionIsEqualTo ); if (resolutionsChanged) structureIsReused = 1 /* SafeModules */; @@ -126701,11 +124947,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const typeReferenceResolutionsChanged = hasChangesInResolutions( typesReferenceDirectives, typeReferenceResolutions, - (name) => oldProgram.getResolvedTypeReferenceDirective( - newSourceFile, - getTypeReferenceResolutionName(name), - getModeForTypeReferenceDirectiveInFile(name, newSourceFile) - ), + (name) => oldProgram.getResolvedTypeReferenceDirective(newSourceFile, getTypeReferenceResolutionName(name), getModeForFileReference(name, newSourceFile.impliedNodeFormat)), typeDirectiveIsEqualTo ); if (typeReferenceResolutionsChanged) structureIsReused = 1 /* SafeModules */; @@ -126744,10 +124986,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } filesByName.set(path, filesByName.get(oldFile.path)); }); - const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations); - programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical); - skipVerifyCompilerOptions = isConfigIdentical; files = newSourceFiles; + fileReasons = oldProgram.getFileIncludeReasons(); + fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics(); automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames(); automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions(); sourceFileToPackageName = oldProgram.sourceFileToPackageName; @@ -126775,10 +125016,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi getSymlinkCache, writeFile: writeFileCallback || writeFile2, isEmitBlocked, - shouldTransformImportCall, - getEmitModuleFormatOfFile: getEmitModuleFormatOfFile2, - getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2, - getModeForResolutionAtIndex: getModeForResolutionAtIndex2, readFile: (f) => host.readFile(f), fileExists: (f) => { const path = toPath3(f); @@ -126797,8 +125034,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi getFileIncludeReasons: program.getFileIncludeReasons, createHash: maybeBind(host, host.createHash), getModuleResolutionCache: () => program.getModuleResolutionCache(), - trace: maybeBind(host, host.trace), - getGlobalTypingsCacheLocation: program.getGlobalTypingsCacheLocation + trace: maybeBind(host, host.trace) }; } function writeFile2(fileName, text, writeByteOrderMark, onError, sourceFiles, data) { @@ -126806,6 +125042,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } function emitBuildInfo(writeFileCallback) { var _a2, _b2; + Debug.assert(!options.outFile); (_a2 = tracing) == null ? void 0 : _a2.push( tracing.Phase.Emit, "emitBuildInfo", @@ -126847,23 +125084,20 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi if (file.hasNoDefaultLib) { return true; } - if (options.noLib) { + if (!options.noLib) { return false; } const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive; if (!options.lib) { return equalityComparer(file.fileName, getDefaultLibraryFileName()); } else { - return some(options.lib, (libFileName) => { - const resolvedLib = resolvedLibReferences.get(libFileName); - return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual); - }); + return some(options.lib, (libFileName) => equalityComparer(file.fileName, resolvedLibReferences.get(libFileName).actual)); } } function getTypeChecker() { return typeChecker || (typeChecker = createTypeChecker(program)); } - function emit(sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit, skipBuildInfo) { + function emit(sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit) { var _a2, _b2; (_a2 = tracing) == null ? void 0 : _a2.push( tracing.Phase.Emit, @@ -126872,25 +125106,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi /*separateBeginAndEnd*/ true ); - const result = runWithCancellationToken( - () => emitWorker( - program, - sourceFile, - writeFileCallback, - cancellationToken, - emitOnly, - transformers, - forceDtsEmit, - skipBuildInfo - ) - ); + const result = runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnly, transformers, forceDtsEmit)); (_b2 = tracing) == null ? void 0 : _b2.pop(); return result; } function isEmitBlocked(emitFileName) { return hasEmitBlockingDiagnostics.has(toPath3(emitFileName)); } - function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit, skipBuildInfo) { + function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit) { if (!forceDtsEmit) { const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken); if (result) return result; @@ -126912,8 +125135,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi emitOnly, /*onlyBuildInfo*/ false, - forceDtsEmit, - skipBuildInfo + forceDtsEmit ) ); mark("afterEmit"); @@ -126940,37 +125162,34 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi function getSyntacticDiagnostics(sourceFile, cancellationToken) { return getDiagnosticsHelper(sourceFile, getSyntacticDiagnosticsForFile, cancellationToken); } - function getSemanticDiagnostics(sourceFile, cancellationToken, nodesToCheck) { - return getDiagnosticsHelper( - sourceFile, - (sourceFile2, cancellationToken2) => getSemanticDiagnosticsForFile(sourceFile2, cancellationToken2, nodesToCheck), - cancellationToken - ); + function getSemanticDiagnostics(sourceFile, cancellationToken) { + return getDiagnosticsHelper(sourceFile, getSemanticDiagnosticsForFile, cancellationToken); } function getCachedSemanticDiagnostics(sourceFile) { - return cachedBindAndCheckDiagnosticsForFile == null ? void 0 : cachedBindAndCheckDiagnosticsForFile.get(sourceFile.path); + var _a2; + return sourceFile ? (_a2 = cachedBindAndCheckDiagnosticsForFile.perFile) == null ? void 0 : _a2.get(sourceFile.path) : cachedBindAndCheckDiagnosticsForFile.allDiagnostics; } function getBindAndCheckDiagnostics(sourceFile, cancellationToken) { - return getBindAndCheckDiagnosticsForFile( - sourceFile, - cancellationToken, - /*nodesToCheck*/ - void 0 - ); + return getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken); } function getProgramDiagnostics(sourceFile) { var _a2; if (skipTypeChecking(sourceFile, options, program)) { return emptyArray; } - const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName); + const programDiagnosticsInFile = updateAndGetProgramDiagnostics().getDiagnostics(sourceFile.fileName); if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { return programDiagnosticsInFile; } return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, programDiagnosticsInFile).diagnostics; } function getDeclarationDiagnostics2(sourceFile, cancellationToken) { - return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken); + const options2 = program.getCompilerOptions(); + if (!sourceFile || options2.outFile) { + return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); + } else { + return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken); + } } function getSyntacticDiagnosticsForFile(sourceFile) { if (isSourceFileJS(sourceFile)) { @@ -126991,26 +125210,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi throw e; } } - function getSemanticDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck) { + function getSemanticDiagnosticsForFile(sourceFile, cancellationToken) { return concatenate( - filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck), options), + filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken), options), getProgramDiagnostics(sourceFile) ); } - function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken, nodesToCheck) { - if (nodesToCheck) { - return getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken, nodesToCheck); - } - let result = cachedBindAndCheckDiagnosticsForFile == null ? void 0 : cachedBindAndCheckDiagnosticsForFile.get(sourceFile.path); - if (!result) { - (cachedBindAndCheckDiagnosticsForFile ?? (cachedBindAndCheckDiagnosticsForFile = /* @__PURE__ */ new Map())).set( - sourceFile.path, - result = getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) - ); - } - return result; + function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken) { + return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedBindAndCheckDiagnosticsForFile, getBindAndCheckDiagnosticsForFileNoCache); } - function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken, nodesToCheck) { + function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) { return runWithCancellationToken(() => { if (skipTypeChecking(sourceFile, options, program)) { return emptyArray; @@ -127018,34 +125227,24 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const typeChecker2 = getTypeChecker(); Debug.assert(!!sourceFile.bindDiagnostics); const isJs = sourceFile.scriptKind === 1 /* JS */ || sourceFile.scriptKind === 2 /* JSX */; - const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); const isCheckJs = isJs && isCheckJsEnabledForFile(sourceFile, options); + const isPlainJs = isPlainJsFile(sourceFile, options.checkJs); let bindDiagnostics = sourceFile.bindDiagnostics; - let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken, nodesToCheck); + let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken); if (isPlainJs) { bindDiagnostics = filter(bindDiagnostics, (d) => plainJSErrors.has(d.code)); checkDiagnostics = filter(checkDiagnostics, (d) => plainJSErrors.has(d.code)); } - return getMergedBindAndCheckDiagnostics( - sourceFile, - !isPlainJs, - !!nodesToCheck, - bindDiagnostics, - checkDiagnostics, - isCheckJs ? sourceFile.jsDocDiagnostics : void 0 - ); + return getMergedBindAndCheckDiagnostics(sourceFile, !isPlainJs, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : void 0); }); } - function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, partialCheck, ...allDiagnostics) { + function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, ...allDiagnostics) { var _a2; const flatDiagnostics = flatten(allDiagnostics); if (!includeBindAndCheckDiagnostics || !((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) { return flatDiagnostics; } const { diagnostics, directives } = getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics); - if (partialCheck) { - return diagnostics; - } for (const errorExpectation of directives.getUnusedExpectations()) { diagnostics.push(createDiagnosticForRange(sourceFile, errorExpectation.range, Diagnostics.Unused_ts_expect_error_directive)); } @@ -127073,7 +125272,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return line; } const lineText = file.text.slice(lineStarts[line], lineStarts[line + 1]).trim(); - if (lineText !== "" && !/^\s*\/\/.*$/.test(lineText)) { + if (lineText !== "" && !/^(\s*)\/\/(.*)$/.test(lineText)) { return -1; } line--; @@ -127095,7 +125294,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi diagnostics.push(createDiagnosticForNode2(node, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?")); return "skip"; } - // falls through case 173 /* MethodSignature */: case 176 /* Constructor */: case 177 /* GetAccessor */: @@ -127227,7 +125425,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi diagnostics.push(createDiagnosticForNodeArray2(nodes, Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)); return "skip"; } - // falls through case 243 /* VariableStatement */: if (nodes === parent2.modifiers) { checkModifiers(parent2.modifiers, parent2.kind === 243 /* VariableStatement */); @@ -127270,8 +125467,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi if (isConstValid) { continue; } - // to report error, - // falls through case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -127283,7 +125478,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi case 147 /* OutKeyword */: diagnostics.push(createDiagnosticForNode2(modifier, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, tokenToString(modifier.kind))); break; - // These are all legal modifiers. case 126 /* StaticKeyword */: case 95 /* ExportKeyword */: case 90 /* DefaultKeyword */: @@ -127301,14 +125495,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi }); } function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) { - let result = cachedDeclarationDiagnosticsForFile == null ? void 0 : cachedDeclarationDiagnosticsForFile.get(sourceFile.path); - if (!result) { - (cachedDeclarationDiagnosticsForFile ?? (cachedDeclarationDiagnosticsForFile = /* @__PURE__ */ new Map())).set( - sourceFile.path, - result = getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) - ); - } - return result; + return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedDeclarationDiagnosticsForFile, getDeclarationDiagnosticsForFileNoCache); } function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) { return runWithCancellationToken(() => { @@ -127316,20 +125503,34 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray; }); } + function getAndCacheDiagnostics(sourceFile, cancellationToken, cache, getDiagnostics2) { + var _a2; + const cachedResult = sourceFile ? (_a2 = cache.perFile) == null ? void 0 : _a2.get(sourceFile.path) : cache.allDiagnostics; + if (cachedResult) { + return cachedResult; + } + const result = getDiagnostics2(sourceFile, cancellationToken); + if (sourceFile) { + (cache.perFile || (cache.perFile = /* @__PURE__ */ new Map())).set(sourceFile.path, result); + } else { + cache.allDiagnostics = result; + } + return result; + } function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) { - return sourceFile.isDeclarationFile ? emptyArray : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); + return sourceFile.isDeclarationFile ? [] : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken); } function getOptionsDiagnostics() { return sortAndDeduplicateDiagnostics(concatenate( - programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(), + updateAndGetProgramDiagnostics().getGlobalDiagnostics(), getOptionsDiagnosticsOfConfigFile() )); } function getOptionsDiagnosticsOfConfigFile() { if (!options.configFile) return emptyArray; - let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options.configFile.fileName); + let diagnostics = updateAndGetProgramDiagnostics().getDiagnostics(options.configFile.fileName); forEachResolvedProjectReference2((resolvedRef) => { - diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName)); + diagnostics = concatenate(diagnostics, updateAndGetProgramDiagnostics().getDiagnostics(resolvedRef.sourceFile.fileName)); }); return diagnostics; } @@ -127397,21 +125598,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi ); } if (file.flags & 4194304 /* PossiblyContainsDynamicImport */ || isJavaScriptFile) { - forEachDynamicImportOrRequireCall( - file, - /*includeTypeSpaceImports*/ - true, - /*requireStringLiteralLikeArgument*/ - true, - (node, moduleSpecifier) => { - setParentRecursive( - node, - /*incremental*/ - false - ); - imports = append(imports, moduleSpecifier); - } - ); + collectDynamicImportOrRequireOrJsDocImportCalls(file); } file.imports = imports || emptyArray; file.moduleAugmentations = moduleAugmentations || emptyArray; @@ -127428,11 +125615,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi ); imports = append(imports, moduleNameExpr); if (!usesUriStyleNodeCoreModules && currentNodeModulesDepth === 0 && !file.isDeclarationFile) { - if (startsWith(moduleNameExpr.text, "node:") && !exclusivelyPrefixedNodeCoreModules.has(moduleNameExpr.text)) { - usesUriStyleNodeCoreModules = true; - } else if (usesUriStyleNodeCoreModules === void 0 && unprefixedNodeCoreModules.has(moduleNameExpr.text)) { - usesUriStyleNodeCoreModules = false; - } + usesUriStyleNodeCoreModules = startsWith(moduleNameExpr.text, "node:"); } } } else if (isModuleDeclaration(node)) { @@ -127459,6 +125642,63 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } } } + function collectDynamicImportOrRequireOrJsDocImportCalls(file2) { + const r = /import|require/g; + while (r.exec(file2.text) !== null) { + const node = getNodeAtPosition(file2, r.lastIndex); + if (isJavaScriptFile && isRequireCall( + node, + /*requireStringLiteralLikeArgument*/ + true + )) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.arguments[0]); + } else if (isImportCall(node) && node.arguments.length >= 1 && isStringLiteralLike(node.arguments[0])) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.arguments[0]); + } else if (isLiteralImportTypeNode(node)) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, node.argument.literal); + } else if (isJavaScriptFile && isJSDocImportTag(node)) { + const moduleNameExpr = getExternalModuleName(node); + if (moduleNameExpr && isStringLiteral(moduleNameExpr) && moduleNameExpr.text) { + setParentRecursive( + node, + /*incremental*/ + false + ); + imports = append(imports, moduleNameExpr); + } + } + } + } + function getNodeAtPosition(sourceFile, position) { + let current = sourceFile; + const getContainingChild = (child) => { + if (child.pos <= position && (position < child.end || position === child.end && child.kind === 1 /* EndOfFileToken */)) { + return child; + } + }; + while (true) { + const child = isJavaScriptFile && hasJSDocNodes(current) && forEach(current.jsDoc, getContainingChild) || forEachChild(current, getContainingChild); + if (!child) { + return current; + } + current = child; + } + } } function getLibFileFromReference(ref) { var _a2; @@ -127536,7 +125776,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi ); } function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) { - const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile); + const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile); if (hasExistingReasonToReportErrorOn) { addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]); } else { @@ -127723,7 +125963,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } function addFileIncludeReason(file, reason, checkExisting) { if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) { - programDiagnostics.getFileReasons().add(file.path, reason); + fileReasons.add(file.path, reason); return true; } return false; @@ -127824,15 +126064,11 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const ref = file.typeReferenceDirectives[index]; const resolvedTypeReferenceDirective = resolutions[index]; const fileName = ref.fileName; - const mode = getModeForTypeReferenceDirectiveInFile(ref, file); - resolutionsInFile.set(fileName, mode, resolvedTypeReferenceDirective); + resolutionsInFile.set(fileName, getModeForFileReference(ref, file.impliedNodeFormat), resolvedTypeReferenceDirective); + const mode = ref.resolutionMode || file.impliedNodeFormat; processTypeReferenceDirective(fileName, mode, resolvedTypeReferenceDirective, { kind: 5 /* TypeReferenceDirective */, file: file.path, index }); } } - function getCompilerOptionsForFile(file) { - var _a2; - return ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; - } function processTypeReferenceDirective(typeReferenceDirective, mode, resolution, reason) { var _a2, _b2; (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "processTypeReferenceDirective", { directive: typeReferenceDirective, hasResolved: !!resolution.resolvedTypeReferenceDirective, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : void 0 }); @@ -127875,16 +126111,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi var _a2, _b2, _c2, _d2, _e2; const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName); if (existing) return existing; - if (options.libReplacement === false) { - const result2 = { - resolution: { - resolvedModule: void 0 - }, - actual: combinePaths(defaultLibraryPath, libFileName) - }; - (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2); - return result2; - } if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) { const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName); if (oldResolution) { @@ -127932,7 +126158,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi { kind: 7 /* LibReferenceDirective */, file: file.path, index } ); } else { - programDiagnostics.addFileProcessingDiagnostic({ + (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({ kind: 0 /* FilePreprocessingLibReferenceDiagnostic */, reason: { kind: 7 /* LibReferenceDirective */, file: file.path, index } }); @@ -127943,12 +126169,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return host.getCanonicalFileName(fileName); } function processImportedModules(file) { + var _a2; collectExternalModuleReferences(file); if (file.imports.length || file.moduleAugmentations.length) { const moduleNames = getModuleNames(file); const resolutions = (resolvedModulesProcessing == null ? void 0 : resolvedModulesProcessing.get(file.path)) || resolveModuleNamesReusingOldState(moduleNames, file); Debug.assert(resolutions.length === moduleNames.length); - const optionsForFile = getCompilerOptionsForFile(file); + const optionsForFile = ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; const resolutionsInFile = createModeAwareCache(); (resolvedModules ?? (resolvedModules = /* @__PURE__ */ new Map())).set(file.path, resolutionsInFile); for (let index = 0; index < moduleNames.length; index++) { @@ -127995,11 +126222,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi if (!sourceFile.isDeclarationFile) { const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory)); if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) { - programDiagnostics.addLazyConfigDiagnostic( + addLazyProgramDiagnosticExplainingFile( sourceFile, Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, - sourceFile.fileName, - rootDirectory + [sourceFile.fileName, rootDirectory] ); allFilesBelongToPath = false; } @@ -128113,8 +126339,12 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } } const outputFile = options.outFile; - if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); + if (options.tsBuildInfoFile) { + if (!isIncrementalCompilation(options)) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "tsBuildInfoFile", "incremental", "composite"); + } + } else if (options.incremental && !outputFile && !options.configFilePath) { + programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)); } verifyDeprecatedCompilerOptions(); verifyProjectReferences(); @@ -128122,11 +126352,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const rootPaths = new Set(rootNames.map(toPath3)); for (const file of files) { if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) { - programDiagnostics.addLazyConfigDiagnostic( + addLazyProgramDiagnosticExplainingFile( file, Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, - file.fileName, - options.configFilePath || "" + [file.fileName, options.configFilePath || ""] ); } } @@ -128217,14 +126446,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) { const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); - programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)); + programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)); } if (outputFile && !options.emitDeclarationOnly) { if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) { createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module"); } else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) { const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator); - programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile")); + programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile")); } } if (getResolveJsonModule(options)) { @@ -128251,6 +126480,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi if (!getEmitDeclarations(options)) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, "emitDeclarationOnly", "declaration", "composite"); } + if (options.noEmit) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "emitDeclarationOnly", "noEmit"); + } + } + if (options.noCheck) { + if (options.noEmit) { + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noCheck", "noEmit"); + } } if (options.emitDecoratorMetadata && !options.experimentalDecorators) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators"); @@ -128295,7 +126532,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi createDiagnosticForOptionName(Diagnostics.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System, "verbatimModuleSyntax"); } } - if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly || options.rewriteRelativeImportExtensions)) { + if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly)) { createOptionValueDiagnostic("allowImportingTsExtensions", Diagnostics.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set); } const moduleResolution = getEmitModuleResolutionKind(options); @@ -128313,8 +126550,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } if (ModuleKind[moduleKind] && (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) && !(3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */)) { const moduleKindName = ModuleKind[moduleKind]; - const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16"; - createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName); + createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName); } else if (ModuleResolutionKind[moduleResolution] && (3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */) && !(100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */)) { const moduleResolutionName = ModuleResolutionKind[moduleResolution]; createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName); @@ -128363,7 +126599,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } return Version.zero; } - function checkDeprecations(deprecatedIn, removedIn, createDiagnostic, fn) { + function checkDeprecations(deprecatedIn, stopsWorkingIn, removedIn, createDiagnostic, fn) { const deprecatedInVersion = new Version(deprecatedIn); const removedInVersion = new Version(removedIn); const typescriptVersion = new Version(typeScriptVersion3 || versionMajorMinor); @@ -128380,9 +126616,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } } else { if (value === void 0) { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn); + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, stopsWorkingIn, deprecatedIn); } else { - createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn); + createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, stopsWorkingIn, deprecatedIn); } } }); @@ -128418,7 +126654,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi ); } } - checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => { + checkDeprecations("5.0", "5.5", "6.0", createDiagnostic, (createDeprecatedDiagnostic) => { if (options.target === 0 /* ES3 */) { createDeprecatedDiagnostic("target", "ES3"); } @@ -128470,14 +126706,96 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi function createDiagnostic(_name, _value, _useInstead, message, ...args) { createDiagnosticForReference(parentFile, index, message, ...args); } - checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => { + checkDeprecations("5.0", "5.5", "6.0", createDiagnostic, (createDeprecatedDiagnostic) => { if (ref.prepend) { createDeprecatedDiagnostic("prepend"); } }); } + function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) { + let seenReasons; + const reasons = file && fileReasons.get(file.path); + let fileIncludeReasons; + let relatedInfo; + let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0; + let fileIncludeReasonDetails; + let redirectInfo; + let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path)); + let chain; + if (cachedChain) { + if (cachedChain.fileIncludeReasonDetails) { + seenReasons = new Set(reasons); + reasons == null ? void 0 : reasons.forEach(populateRelatedInfo); + } else { + reasons == null ? void 0 : reasons.forEach(processReason); + } + redirectInfo = cachedChain.redirectInfo; + } else { + reasons == null ? void 0 : reasons.forEach(processReason); + redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file); + } + if (fileProcessingReason) processReason(fileProcessingReason); + const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length); + if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0; + if (seenReasons && cachedChain) { + if (cachedChain.details && !processedExtraReason) { + chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray); + } else if (cachedChain.fileIncludeReasonDetails) { + if (!processedExtraReason) { + if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { + fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails; + } else { + fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length); + } + } else { + if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { + fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]]; + } else { + fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]); + } + } + } + } + if (!chain) { + if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); + chain = chainDiagnosticMessages( + redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, + diagnostic, + ...args || emptyArray + ); + } + if (file) { + if (cachedChain) { + if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) { + cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails; + } + } else { + (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo }); + } + if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next; + } + const location = locationReason && getReferencedFileLocation(program, locationReason); + return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo); + function processReason(reason) { + if (seenReasons == null ? void 0 : seenReasons.has(reason)) return; + (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason); + (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason)); + populateRelatedInfo(reason); + } + function populateRelatedInfo(reason) { + if (!locationReason && isReferencedFile(reason)) { + locationReason = reason; + } else if (locationReason !== reason) { + relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason)); + } + } + function cachedFileIncludeDetailsHasProcessedExtraReason() { + var _a2; + return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length); + } + } function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) { - programDiagnostics.addFileProcessingDiagnostic({ + (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({ kind: 1 /* FilePreprocessingFileExplainingDiagnostic */, file: file && file.path, fileProcessingReason, @@ -128485,33 +126803,118 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi args }); } - function verifyProjectReferences() { - const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0; - forEachProjectReference( - projectReferences, - resolvedProjectReferences, - (resolvedRef, parent2, index) => { - const ref = (parent2 ? parent2.commandLine.projectReferences : projectReferences)[index]; - const parentFile = parent2 && parent2.sourceFile; - verifyDeprecatedProjectReference(ref, parentFile, index); - if (!resolvedRef) { - createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path); - return; + function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) { + lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args }); + } + function getFileIncludeReasonToRelatedInformation(reason) { + let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason); + if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(reason) ?? false); + return relatedInfo || void 0; + } + function fileIncludeReasonToRelatedInformation(reason) { + if (isReferencedFile(reason)) { + const referenceLocation = getReferencedFileLocation(program, reason); + let message2; + switch (reason.kind) { + case 3 /* Import */: + message2 = Diagnostics.File_is_included_via_import_here; + break; + case 4 /* ReferenceFile */: + message2 = Diagnostics.File_is_included_via_reference_here; + break; + case 5 /* TypeReferenceDirective */: + message2 = Diagnostics.File_is_included_via_type_library_reference_here; + break; + case 7 /* LibReferenceDirective */: + message2 = Diagnostics.File_is_included_via_library_reference_here; + break; + default: + Debug.assertNever(reason); + } + return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic( + referenceLocation.file, + referenceLocation.pos, + referenceLocation.end - referenceLocation.pos, + message2 + ) : void 0; + } + if (!options.configFile) return void 0; + let configFileNode; + let message; + switch (reason.kind) { + case 0 /* RootFile */: + if (!options.configFile.configFileSpecs) return void 0; + const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory); + const matchedByFiles = getMatchedFileSpec(program, fileName); + if (matchedByFiles) { + configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles); + message = Diagnostics.File_is_matched_by_files_list_specified_here; + break; } - const options2 = resolvedRef.commandLine.options; - if (!options2.composite || options2.noEmit) { - const inputs = parent2 ? parent2.commandLine.fileNames : rootNames; - if (inputs.length) { - if (!options2.composite) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path); - if (options2.noEmit) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path); - } + const matchedByInclude = getMatchedIncludeSpec(program, fileName); + if (!matchedByInclude || !isString(matchedByInclude)) return void 0; + configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude); + message = Diagnostics.File_is_matched_by_include_pattern_specified_here; + break; + case 1 /* SourceFromProjectReference */: + case 2 /* OutputFromProjectReference */: + const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]); + const referenceInfo = forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0); + if (!referenceInfo) return void 0; + const { sourceFile, index } = referenceInfo; + const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); + return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile( + sourceFile, + referencesSyntax.elements[index], + reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here + ) : void 0; + case 8 /* AutomaticTypeDirectiveFile */: + if (!options.types) return void 0; + configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference); + message = Diagnostics.File_is_entry_point_of_type_library_specified_here; + break; + case 6 /* LibFile */: + if (reason.index !== void 0) { + configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]); + message = Diagnostics.File_is_library_specified_here; + break; } - if (!parent2 && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options2)) { - createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); - hasEmitBlockingDiagnostics.set(toPath3(buildInfoPath), true); + const target = getNameOfScriptTarget(getEmitScriptTarget(options)); + configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0; + message = Diagnostics.File_is_default_library_for_target_specified_here; + break; + default: + Debug.assertNever(reason); + } + return configFileNode && createDiagnosticForNodeInSourceFile( + options.configFile, + configFileNode, + message + ); + } + function verifyProjectReferences() { + const buildInfoPath = !options.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options) : void 0; + forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent2, index) => { + const ref = (parent2 ? parent2.commandLine.projectReferences : projectReferences)[index]; + const parentFile = parent2 && parent2.sourceFile; + verifyDeprecatedProjectReference(ref, parentFile, index); + if (!resolvedRef) { + createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path); + return; + } + const options2 = resolvedRef.commandLine.options; + if (!options2.composite || options2.noEmit) { + const inputs = parent2 ? parent2.commandLine.fileNames : rootNames; + if (inputs.length) { + if (!options2.composite) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path); + if (options2.noEmit) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path); } } - ); + if (!parent2 && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options2)) { + createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); + hasEmitBlockingDiagnostics.set(toPath3(buildInfoPath), true); + } + }); } function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, ...args) { let needCompilerDiagnostic = true; @@ -128520,7 +126923,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => { const initializer = keyProps.initializer; if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args)); + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args)); needCompilerDiagnostic = false; } }); @@ -128549,8 +126952,18 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi createCompilerOptionsDiagnostic(message, ...args); } } + function forEachOptionsSyntaxByName(name, callback) { + return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback); + } function forEachOptionPathsSyntax(callback) { - return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback); + return forEachOptionsSyntaxByName("paths", callback); + } + function getOptionsSyntaxByValue(name, value) { + return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0); + } + function getOptionsSyntaxByArrayElementValue(name, value) { + const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax(); + return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value); } function createDiagnosticForOptionName(message, option1, option2, option3) { createDiagnosticForOption( @@ -128578,9 +126991,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi function createDiagnosticForReference(sourceFile, index, message, ...args) { const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); if (referencesSyntax && referencesSyntax.elements.length > index) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args)); + programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args)); } else { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args)); + programDiagnostics.add(createCompilerDiagnostic(message, ...args)); } } function createDiagnosticForOption(onKey, option1, option2, message, ...args) { @@ -128594,14 +127007,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi const compilerOptionsProperty = getCompilerOptionsPropertySyntax(); if (compilerOptionsProperty) { if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message)); + programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message)); } else { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args)); + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args)); } } else if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message)); + programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message)); } else { - programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args)); + programDiagnostics.add(createCompilerDiagnostic(message, ...args)); } } function getCompilerOptionsObjectLiteralSyntax() { @@ -128625,9 +127038,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi let needsCompilerDiagnostic = false; forEachPropertyAssignment(objectLiteral, key1, (prop) => { if ("messageText" in message) { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message)); + programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message)); } else { - programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args)); + programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args)); } needsCompilerDiagnostic = true; }, key2); @@ -128635,7 +127048,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi } function blockEmittingOfFile(emitFileName, diag2) { hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true); - programDiagnostics.addConfigDiagnostic(diag2); + programDiagnostics.add(diag2); } function isEmittedFile(file) { if (options.noEmit) { @@ -128677,56 +127090,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi return symlinks; } function getModeForUsageLocation2(file, usage) { - return getModeForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); - } - function getEmitSyntaxForUsageLocation(file, usage) { - return getEmitSyntaxForUsageLocationWorker(file, usage, getCompilerOptionsForFile(file)); + var _a2; + const optionsForFile = ((_a2 = getRedirectReferenceForResolution(file)) == null ? void 0 : _a2.commandLine.options) || options; + return getModeForUsageLocationWorker(file, usage, optionsForFile); } function getModeForResolutionAtIndex2(file, index) { return getModeForUsageLocation2(file, getModuleNameStringLiteralAt(file, index)); } - function getDefaultResolutionModeForFile2(sourceFile) { - return getDefaultResolutionModeForFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getImpliedNodeFormatForEmit2(sourceFile) { - return getImpliedNodeFormatForEmitWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getEmitModuleFormatOfFile2(sourceFile) { - return getEmitModuleFormatOfFileWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function shouldTransformImportCall(sourceFile) { - return shouldTransformImportCallWorker(sourceFile, getCompilerOptionsForFile(sourceFile)); - } - function getModeForTypeReferenceDirectiveInFile(ref, sourceFile) { - return ref.resolutionMode || getDefaultResolutionModeForFile2(sourceFile); - } -} -function shouldTransformImportCallWorker(sourceFile, options) { - const moduleKind = getEmitModuleKind(options); - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || moduleKind === 200 /* Preserve */) { - return false; - } - return getEmitModuleFormatOfFileWorker(sourceFile, options) < 5 /* ES2015 */; -} -function getEmitModuleFormatOfFileWorker(sourceFile, options) { - return getImpliedNodeFormatForEmitWorker(sourceFile, options) ?? getEmitModuleKind(options); -} -function getImpliedNodeFormatForEmitWorker(sourceFile, options) { - var _a, _b; - const moduleKind = getEmitModuleKind(options); - if (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */) { - return sourceFile.impliedNodeFormat; - } - if (sourceFile.impliedNodeFormat === 1 /* CommonJS */ && (((_a = sourceFile.packageJsonScope) == null ? void 0 : _a.contents.packageJsonContent.type) === "commonjs" || fileExtensionIsOneOf(sourceFile.fileName, [".cjs" /* Cjs */, ".cts" /* Cts */]))) { - return 1 /* CommonJS */; - } - if (sourceFile.impliedNodeFormat === 99 /* ESNext */ && (((_b = sourceFile.packageJsonScope) == null ? void 0 : _b.contents.packageJsonContent.type) === "module" || fileExtensionIsOneOf(sourceFile.fileName, [".mjs" /* Mjs */, ".mts" /* Mts */]))) { - return 99 /* ESNext */; - } - return void 0; -} -function getDefaultResolutionModeForFileWorker(sourceFile, options) { - return importSyntaxAffectsModuleResolution(options) ? getImpliedNodeFormatForEmitWorker(sourceFile, options) : void 0; } function updateHostForUseSourceOfProjectReferenceRedirect(host) { let setOfDeclarationDirectories; @@ -128854,7 +127224,8 @@ var emitSkippedWithNoDiagnostics = { diagnostics: emptyArray, sourceMaps: void 0 function handleNoEmitOptions(program, sourceFile, writeFile2, cancellationToken) { const options = program.getCompilerOptions(); if (options.noEmit) { - return sourceFile ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile2, cancellationToken); + program.getSemanticDiagnostics(sourceFile, cancellationToken); + return sourceFile || options.outFile ? emitSkippedWithNoDiagnostics : program.emitBuildInfo(writeFile2, cancellationToken); } if (!options.noEmitOnError) return void 0; let diagnostics = [ @@ -128872,7 +127243,7 @@ function handleNoEmitOptions(program, sourceFile, writeFile2, cancellationToken) } if (!diagnostics.length) return void 0; let emittedFiles; - if (!sourceFile) { + if (!sourceFile && !options.outFile) { const emitResult = program.emitBuildInfo(writeFile2, cancellationToken); if (emitResult.diagnostics) diagnostics = [...diagnostics, ...emitResult.diagnostics]; emittedFiles = emitResult.emittedFiles; @@ -128958,293 +127329,6 @@ function getModuleNameStringLiteralAt({ imports, moduleAugmentations }, index) { Debug.fail("should never ask for module name at index higher than possible module name"); } -// src/compiler/programDiagnostics.ts -function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) { - let computedDiagnostics; - let fileReasons = createMultiMap(); - let fileProcessingDiagnostics; - let commonSourceDirectory; - let configDiagnostics; - let lazyConfigDiagnostics; - let fileReasonsToChain; - let reasonToRelatedInfo; - return { - addConfigDiagnostic(diag2) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2); - }, - addLazyConfigDiagnostic(file, message, ...args) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (lazyConfigDiagnostics ?? (lazyConfigDiagnostics = [])).push({ file, diagnostic: message, args }); - }, - addFileProcessingDiagnostic(diag2) { - Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics"); - (fileProcessingDiagnostics ?? (fileProcessingDiagnostics = [])).push(diag2); - }, - setCommonSourceDirectory(directory) { - commonSourceDirectory = directory; - }, - reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) { - fileReasons = oldProgramDiagnostics.getFileReasons(); - fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics(); - if (isConfigIdentical) { - commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory(); - configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics(); - lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics(); - } - }, - getFileProcessingDiagnostics() { - return fileProcessingDiagnostics; - }, - getFileReasons() { - return fileReasons; - }, - getCommonSourceDirectory() { - return commonSourceDirectory; - }, - getConfigDiagnostics() { - return configDiagnostics; - }, - getLazyConfigDiagnostics() { - return lazyConfigDiagnostics; - }, - getCombinedDiagnostics(program) { - if (computedDiagnostics) { - return computedDiagnostics; - } - computedDiagnostics = createDiagnosticCollection(); - configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d)); - fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => { - switch (diagnostic.kind) { - case 1 /* FilePreprocessingFileExplainingDiagnostic */: - return computedDiagnostics.add( - createDiagnosticExplainingFile( - program, - diagnostic.file && program.getSourceFileByPath(diagnostic.file), - diagnostic.fileProcessingReason, - diagnostic.diagnostic, - diagnostic.args || emptyArray - ) - ); - case 0 /* FilePreprocessingLibReferenceDiagnostic */: - return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic)); - case 2 /* ResolutionDiagnostics */: - return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d)); - default: - Debug.assertNever(diagnostic); - } - }); - lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach( - ({ file, diagnostic, args }) => computedDiagnostics.add( - createDiagnosticExplainingFile( - program, - file, - /*fileProcessingReason*/ - void 0, - diagnostic, - args - ) - ) - ); - fileReasonsToChain = void 0; - reasonToRelatedInfo = void 0; - return computedDiagnostics; - } - }; - function filePreprocessingLibreferenceDiagnostic(program, { reason }) { - const { file, pos, end } = getReferencedFileLocation(program, reason); - const libReference = file.libReferenceDirectives[reason.index]; - const libName = getLibNameFromLibReference(libReference); - const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts"); - const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity); - return createFileDiagnostic( - file, - Debug.checkDefined(pos), - Debug.checkDefined(end) - pos, - suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0, - libName, - suggestion - ); - } - function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) { - let seenReasons; - let fileIncludeReasons; - let relatedInfo; - let fileIncludeReasonDetails; - let redirectInfo; - let chain; - const reasons = file && fileReasons.get(file.path); - let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0; - let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path)); - if (cachedChain) { - if (cachedChain.fileIncludeReasonDetails) { - seenReasons = new Set(reasons); - reasons == null ? void 0 : reasons.forEach(populateRelatedInfo); - } else { - reasons == null ? void 0 : reasons.forEach(processReason); - } - redirectInfo = cachedChain.redirectInfo; - } else { - reasons == null ? void 0 : reasons.forEach(processReason); - redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file)); - } - if (fileProcessingReason) processReason(fileProcessingReason); - const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length); - if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1) seenReasons = void 0; - if (seenReasons && cachedChain) { - if (cachedChain.details && !processedExtraReason) { - chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args ?? emptyArray); - } else if (cachedChain.fileIncludeReasonDetails) { - if (!processedExtraReason) { - if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { - fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails; - } else { - fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length); - } - } else { - if (!cachedFileIncludeDetailsHasProcessedExtraReason()) { - fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]]; - } else { - fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]); - } - } - } - } - if (!chain) { - if (!fileIncludeReasonDetails) fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon); - chain = chainDiagnosticMessages( - redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails, - diagnostic, - ...args || emptyArray - ); - } - if (file) { - if (cachedChain) { - if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) { - cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails; - } - } else { - (fileReasonsToChain ?? (fileReasonsToChain = /* @__PURE__ */ new Map())).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo }); - } - if (!cachedChain.details && !processedExtraReason) cachedChain.details = chain.next; - } - const location = locationReason && getReferencedFileLocation(program, locationReason); - return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo); - function processReason(reason) { - if (seenReasons == null ? void 0 : seenReasons.has(reason)) return; - (seenReasons ?? (seenReasons = /* @__PURE__ */ new Set())).add(reason); - (fileIncludeReasons ?? (fileIncludeReasons = [])).push(fileIncludeReasonToDiagnostics(program, reason)); - populateRelatedInfo(reason); - } - function populateRelatedInfo(reason) { - if (!locationReason && isReferencedFile(reason)) { - locationReason = reason; - } else if (locationReason !== reason) { - relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason)); - } - } - function cachedFileIncludeDetailsHasProcessedExtraReason() { - var _a; - return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length); - } - } - function getFileIncludeReasonToRelatedInformation(program, reason) { - let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason); - if (relatedInfo === void 0) (reasonToRelatedInfo ?? (reasonToRelatedInfo = /* @__PURE__ */ new Map())).set(reason, relatedInfo = fileIncludeReasonToRelatedInformation(program, reason) ?? false); - return relatedInfo || void 0; - } - function fileIncludeReasonToRelatedInformation(program, reason) { - if (isReferencedFile(reason)) { - const referenceLocation = getReferencedFileLocation(program, reason); - let message2; - switch (reason.kind) { - case 3 /* Import */: - message2 = Diagnostics.File_is_included_via_import_here; - break; - case 4 /* ReferenceFile */: - message2 = Diagnostics.File_is_included_via_reference_here; - break; - case 5 /* TypeReferenceDirective */: - message2 = Diagnostics.File_is_included_via_type_library_reference_here; - break; - case 7 /* LibReferenceDirective */: - message2 = Diagnostics.File_is_included_via_library_reference_here; - break; - default: - Debug.assertNever(reason); - } - return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic( - referenceLocation.file, - referenceLocation.pos, - referenceLocation.end - referenceLocation.pos, - message2 - ) : void 0; - } - const currentDirectory = program.getCurrentDirectory(); - const rootNames = program.getRootFileNames(); - const options = program.getCompilerOptions(); - if (!options.configFile) return void 0; - let configFileNode; - let message; - switch (reason.kind) { - case 0 /* RootFile */: - if (!options.configFile.configFileSpecs) return void 0; - const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory); - const matchedByFiles = getMatchedFileSpec(program, fileName); - if (matchedByFiles) { - configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles); - message = Diagnostics.File_is_matched_by_files_list_specified_here; - break; - } - const matchedByInclude = getMatchedIncludeSpec(program, fileName); - if (!matchedByInclude || !isString(matchedByInclude)) return void 0; - configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude); - message = Diagnostics.File_is_matched_by_include_pattern_specified_here; - break; - case 1 /* SourceFromProjectReference */: - case 2 /* OutputFromProjectReference */: - const resolvedProjectReferences = program.getResolvedProjectReferences(); - const projectReferences = program.getProjectReferences(); - const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]); - const referenceInfo = forEachProjectReference( - projectReferences, - resolvedProjectReferences, - (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options.configFile, index: index2 } : void 0 - ); - if (!referenceInfo) return void 0; - const { sourceFile, index } = referenceInfo; - const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0); - return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile( - sourceFile, - referencesSyntax.elements[index], - reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here - ) : void 0; - case 8 /* AutomaticTypeDirectiveFile */: - if (!options.types) return void 0; - configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference); - message = Diagnostics.File_is_entry_point_of_type_library_specified_here; - break; - case 6 /* LibFile */: - if (reason.index !== void 0) { - configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options.lib[reason.index]); - message = Diagnostics.File_is_library_specified_here; - break; - } - const target = getNameOfScriptTarget(getEmitScriptTarget(options)); - configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0; - message = Diagnostics.File_is_default_library_for_target_specified_here; - break; - default: - Debug.assertNever(reason); - } - return configFileNode && createDiagnosticForNodeInSourceFile( - options.configFile, - configFileNode, - message - ); - } -} - // src/compiler/builderState.ts function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) { const outputFiles = []; @@ -129624,30 +127708,20 @@ var BuilderFileEmit = /* @__PURE__ */ ((BuilderFileEmit2) => { BuilderFileEmit2[BuilderFileEmit2["Js"] = 1] = "Js"; BuilderFileEmit2[BuilderFileEmit2["JsMap"] = 2] = "JsMap"; BuilderFileEmit2[BuilderFileEmit2["JsInlineMap"] = 4] = "JsInlineMap"; - BuilderFileEmit2[BuilderFileEmit2["DtsErrors"] = 8] = "DtsErrors"; - BuilderFileEmit2[BuilderFileEmit2["DtsEmit"] = 16] = "DtsEmit"; - BuilderFileEmit2[BuilderFileEmit2["DtsMap"] = 32] = "DtsMap"; - BuilderFileEmit2[BuilderFileEmit2["Dts"] = 24] = "Dts"; + BuilderFileEmit2[BuilderFileEmit2["Dts"] = 8] = "Dts"; + BuilderFileEmit2[BuilderFileEmit2["DtsMap"] = 16] = "DtsMap"; BuilderFileEmit2[BuilderFileEmit2["AllJs"] = 7] = "AllJs"; - BuilderFileEmit2[BuilderFileEmit2["AllDtsEmit"] = 48] = "AllDtsEmit"; - BuilderFileEmit2[BuilderFileEmit2["AllDts"] = 56] = "AllDts"; - BuilderFileEmit2[BuilderFileEmit2["All"] = 63] = "All"; + BuilderFileEmit2[BuilderFileEmit2["AllDts"] = 24] = "AllDts"; + BuilderFileEmit2[BuilderFileEmit2["All"] = 31] = "All"; return BuilderFileEmit2; })(BuilderFileEmit || {}); -function isBuilderProgramStateWithDefinedProgram(state) { - return state.program !== void 0; -} -function toBuilderProgramStateWithDefinedProgram(state) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - return state; -} function getBuilderFileEmit(options) { let result = 1 /* Js */; if (options.sourceMap) result = result | 2 /* JsMap */; if (options.inlineSourceMap) result = result | 4 /* JsInlineMap */; - if (getEmitDeclarations(options)) result = result | 24 /* Dts */; - if (options.declarationMap) result = result | 32 /* DtsMap */; - if (options.emitDeclarationOnly) result = result & 56 /* AllDts */; + if (getEmitDeclarations(options)) result = result | 8 /* Dts */; + if (options.declarationMap) result = result | 16 /* DtsMap */; + if (options.emitDeclarationOnly) result = result & 24 /* AllDts */; return result; } function getPendingEmitKind(optionsOrEmitKind, oldOptionsOrEmitKind) { @@ -129658,8 +127732,7 @@ function getPendingEmitKind(optionsOrEmitKind, oldOptionsOrEmitKind) { const diff = oldEmitKind ^ emitKind; let result = 0 /* None */; if (diff & 7 /* AllJs */) result = emitKind & 7 /* AllJs */; - if (diff & 8 /* DtsErrors */) result = result | emitKind & 8 /* DtsErrors */; - if (diff & 48 /* AllDtsEmit */) result = result | emitKind & 48 /* AllDtsEmit */; + if (diff & 24 /* AllDts */) result = result | emitKind & 24 /* AllDts */; return result; } function hasSameKeys(map1, map2) { @@ -129677,18 +127750,17 @@ function createBuilderProgramState(newProgram, oldState) { const compilerOptions = newProgram.getCompilerOptions(); state.compilerOptions = compilerOptions; const outFilePath = compilerOptions.outFile; - state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); - if (outFilePath && compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === oldState.compilerOptions.outFile) { + if (!outFilePath) { + state.semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); + } else if (compilerOptions.composite && (oldState == null ? void 0 : oldState.outSignature) && outFilePath === oldState.compilerOptions.outFile) { state.outSignature = oldState.outSignature && getEmitSignatureFromOldSignature(compilerOptions, oldState.compilerOptions, oldState.outSignature); } state.changedFilesSet = /* @__PURE__ */ new Set(); state.latestChangedDtsFile = compilerOptions.composite ? oldState == null ? void 0 : oldState.latestChangedDtsFile : void 0; - state.checkPending = state.compilerOptions.noCheck ? true : void 0; const useOldState = BuilderState.canReuseOldState(state.referencedMap, oldState); const oldCompilerOptions = useOldState ? oldState.compilerOptions : void 0; - let canCopySemanticDiagnostics = useOldState && !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions); + const canCopySemanticDiagnostics = useOldState && oldState.semanticDiagnosticsPerFile && !!state.semanticDiagnosticsPerFile && !compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions); const canCopyEmitSignatures = compilerOptions.composite && (oldState == null ? void 0 : oldState.emitSignatures) && !outFilePath && !compilerOptionsAffectDeclarationPath(compilerOptions, oldState.compilerOptions); - let canCopyEmitDiagnostics = true; if (useOldState) { (_a = oldState.changedFilesSet) == null ? void 0 : _a.forEach((value) => state.changedFilesSet.add(value)); if (!outFilePath && ((_b = oldState.affectedFilesPendingEmit) == null ? void 0 : _b.size)) { @@ -129696,13 +127768,8 @@ function createBuilderProgramState(newProgram, oldState) { state.seenAffectedFiles = /* @__PURE__ */ new Set(); } state.programEmitPending = oldState.programEmitPending; - if (outFilePath && state.changedFilesSet.size) { - canCopySemanticDiagnostics = false; - canCopyEmitDiagnostics = false; - } - state.hasErrorsFromOldState = oldState.hasErrors; } else { - state.buildInfoEmitPending = isIncrementalCompilation(compilerOptions); + state.buildInfoEmitPending = true; } const referencedMap = state.referencedMap; const oldReferencedMap = useOldState ? oldState.referencedMap : void 0; @@ -129718,10 +127785,10 @@ function createBuilderProgramState(newProgram, oldState) { oldInfo.impliedFormat !== info.impliedFormat || // Referenced files changed !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) || // Referenced file was deleted in the new program newReferences && forEachKey(newReferences, (path) => !state.fileInfos.has(path) && oldState.fileInfos.has(path))) { - addFileToChangeSet(sourceFilePath); + addFileToChangeSet(state, sourceFilePath); } else { const sourceFile = newProgram.getSourceFileByPath(sourceFilePath); - const emitDiagnostics = canCopyEmitDiagnostics ? (_a2 = oldState.emitDiagnosticsPerFile) == null ? void 0 : _a2.get(sourceFilePath) : void 0; + const emitDiagnostics = (_a2 = oldState.emitDiagnosticsPerFile) == null ? void 0 : _a2.get(sourceFilePath); if (emitDiagnostics) { (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set( sourceFilePath, @@ -129750,16 +127817,16 @@ function createBuilderProgramState(newProgram, oldState) { }); if (useOldState && forEachEntry(oldState.fileInfos, (info, sourceFilePath) => { if (state.fileInfos.has(sourceFilePath)) return false; - if (info.affectsGlobalScope) return true; + if (outFilePath || info.affectsGlobalScope) return true; state.buildInfoEmitPending = true; - return !!outFilePath; + return false; })) { BuilderState.getAllFilesExcludingDefaultLibraryFile( state, newProgram, /*firstSourceFile*/ void 0 - ).forEach((file) => addFileToChangeSet(file.resolvedPath)); + ).forEach((file) => addFileToChangeSet(state, file.resolvedPath)); } else if (oldCompilerOptions) { const pendingEmitKind = compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions) ? getBuilderFileEmit(compilerOptions) : getPendingEmitKind(compilerOptions, oldCompilerOptions); if (pendingEmitKind !== 0 /* None */) { @@ -129775,26 +127842,18 @@ function createBuilderProgramState(newProgram, oldState) { }); Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size); state.seenAffectedFiles = state.seenAffectedFiles || /* @__PURE__ */ new Set(); - } else if (!state.changedFilesSet.size) { + state.buildInfoEmitPending = true; + } else { state.programEmitPending = state.programEmitPending ? state.programEmitPending | pendingEmitKind : pendingEmitKind; } - state.buildInfoEmitPending = true; } } - if (useOldState && state.semanticDiagnosticsPerFile.size !== state.fileInfos.size && oldState.checkPending !== state.checkPending) state.buildInfoEmitPending = true; return state; - function addFileToChangeSet(path) { - state.changedFilesSet.add(path); - if (outFilePath) { - canCopySemanticDiagnostics = false; - canCopyEmitDiagnostics = false; - state.semanticDiagnosticsFromOldState = void 0; - state.semanticDiagnosticsPerFile.clear(); - state.emitDiagnosticsPerFile = void 0; - } - state.buildInfoEmitPending = true; - state.programEmitPending = void 0; - } +} +function addFileToChangeSet(state, path) { + state.changedFilesSet.add(path); + state.buildInfoEmitPending = true; + state.programEmitPending = void 0; } function getEmitSignatureFromOldSignature(options, oldOptions, oldEmitSignature) { return !!options.declarationMap === !!oldOptions.declarationMap ? ( @@ -129818,12 +127877,7 @@ function repopulateDiagnostics(diagnostics, newProgram) { } function convertOrRepopulateDiagnosticMessageChain(chain, sourceFile, newProgram, repopulateInfo) { const info = repopulateInfo(chain); - if (info === true) { - return { - ...createModeMismatchDetails(sourceFile), - next: convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo) - }; - } else if (info) { + if (info) { return { ...createModuleNotFoundChain(sourceFile, newProgram, info.moduleReference, info.mode, info.packageName || info.moduleReference), next: convertOrRepopulateDiagnosticMessageChainArray(chain.next, sourceFile, newProgram, repopulateInfo) @@ -129866,6 +127920,34 @@ function releaseCache(state) { BuilderState.releaseCache(state); state.program = void 0; } +function backupBuilderProgramEmitState(state) { + const outFilePath = state.compilerOptions.outFile; + Debug.assert(!state.changedFilesSet.size || outFilePath); + return { + affectedFilesPendingEmit: state.affectedFilesPendingEmit && new Map(state.affectedFilesPendingEmit), + seenEmittedFiles: state.seenEmittedFiles && new Map(state.seenEmittedFiles), + programEmitPending: state.programEmitPending, + emitSignatures: state.emitSignatures && new Map(state.emitSignatures), + outSignature: state.outSignature, + latestChangedDtsFile: state.latestChangedDtsFile, + hasChangedEmitSignature: state.hasChangedEmitSignature, + changedFilesSet: outFilePath ? new Set(state.changedFilesSet) : void 0, + buildInfoEmitPending: state.buildInfoEmitPending, + emitDiagnosticsPerFile: state.emitDiagnosticsPerFile && new Map(state.emitDiagnosticsPerFile) + }; +} +function restoreBuilderProgramEmitState(state, savedEmitState) { + state.affectedFilesPendingEmit = savedEmitState.affectedFilesPendingEmit; + state.seenEmittedFiles = savedEmitState.seenEmittedFiles; + state.programEmitPending = savedEmitState.programEmitPending; + state.emitSignatures = savedEmitState.emitSignatures; + state.outSignature = savedEmitState.outSignature; + state.latestChangedDtsFile = savedEmitState.latestChangedDtsFile; + state.hasChangedEmitSignature = savedEmitState.hasChangedEmitSignature; + state.buildInfoEmitPending = savedEmitState.buildInfoEmitPending; + state.emitDiagnosticsPerFile = savedEmitState.emitDiagnosticsPerFile; + if (savedEmitState.changedFilesSet) state.changedFilesSet = savedEmitState.changedFilesSet; +} function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) { Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath)); } @@ -129880,11 +127962,7 @@ function getNextAffectedFile(state, cancellationToken, host) { const affectedFile = affectedFiles[affectedFilesIndex]; if (!seenAffectedFiles.has(affectedFile.resolvedPath)) { state.affectedFilesIndex = affectedFilesIndex; - addToAffectedFilesPendingEmit( - state, - affectedFile.resolvedPath, - getBuilderFileEmit(state.compilerOptions) - ); + addToAffectedFilesPendingEmit(state, affectedFile.resolvedPath, getBuilderFileEmit(state.compilerOptions)); handleDtsMayChangeOfAffectedFile( state, affectedFile, @@ -129904,11 +127982,15 @@ function getNextAffectedFile(state, cancellationToken, host) { if (nextKey.done) { return void 0; } - const compilerOptions = state.program.getCompilerOptions(); - if (compilerOptions.outFile) return state.program; + const program = Debug.checkDefined(state.program); + const compilerOptions = program.getCompilerOptions(); + if (compilerOptions.outFile) { + Debug.assert(!state.semanticDiagnosticsPerFile); + return program; + } state.affectedFiles = BuilderState.getFilesAffectedByWithOldState( state, - state.program, + program, nextKey.value, cancellationToken, host @@ -129918,34 +128000,17 @@ function getNextAffectedFile(state, cancellationToken, host) { if (!state.seenAffectedFiles) state.seenAffectedFiles = /* @__PURE__ */ new Set(); } } -function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) { - var _a, _b; - if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size) && !state.programEmitPending) return; - if (!emitOnlyDtsFiles && !isForDtsErrors) { - state.affectedFilesPendingEmit = void 0; - state.programEmitPending = void 0; - } - (_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.forEach((emitKind, path) => { - const pending = !isForDtsErrors ? emitKind & 7 /* AllJs */ : emitKind & (7 /* AllJs */ | 48 /* AllDtsEmit */); +function clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles) { + var _a; + if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return; + if (!emitOnlyDtsFiles) return state.affectedFilesPendingEmit = void 0; + state.affectedFilesPendingEmit.forEach((emitKind, path) => { + const pending = emitKind & 7 /* AllJs */; if (!pending) state.affectedFilesPendingEmit.delete(path); else state.affectedFilesPendingEmit.set(path, pending); }); - if (state.programEmitPending) { - const pending = !isForDtsErrors ? state.programEmitPending & 7 /* AllJs */ : state.programEmitPending & (7 /* AllJs */ | 48 /* AllDtsEmit */); - if (!pending) state.programEmitPending = void 0; - else state.programEmitPending = pending; - } } -function getPendingEmitKindWithSeen(optionsOrEmitKind, seenOldOptionsOrEmitKind, emitOnlyDtsFiles, isForDtsErrors) { - let pendingKind = getPendingEmitKind(optionsOrEmitKind, seenOldOptionsOrEmitKind); - if (emitOnlyDtsFiles) pendingKind = pendingKind & 56 /* AllDts */; - if (isForDtsErrors) pendingKind = pendingKind & 8 /* DtsErrors */; - return pendingKind; -} -function getBuilderFileEmitAllDts(isForDtsErrors) { - return !isForDtsErrors ? 56 /* AllDts */ : 8 /* DtsErrors */; -} -function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) { +function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles) { var _a; if (!((_a = state.affectedFilesPendingEmit) == null ? void 0 : _a.size)) return void 0; return forEachEntry(state.affectedFilesPendingEmit, (emitKind, path) => { @@ -129956,16 +128021,12 @@ function getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles, isForDtsErrors) return void 0; } const seenKind = (_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath); - const pendingKind = getPendingEmitKindWithSeen( - emitKind, - seenKind, - emitOnlyDtsFiles, - isForDtsErrors - ); + let pendingKind = getPendingEmitKind(emitKind, seenKind); + if (emitOnlyDtsFiles) pendingKind = pendingKind & 24 /* AllDts */; if (pendingKind) return { affectedFile, emitKind: pendingKind }; }); } -function getNextPendingEmitDiagnosticsFile(state, isForDtsErrors) { +function getNextPendingEmitDiagnosticsFile(state) { var _a; if (!((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) return void 0; return forEachEntry(state.emitDiagnosticsPerFile, (diagnostics, path) => { @@ -129976,14 +128037,15 @@ function getNextPendingEmitDiagnosticsFile(state, isForDtsErrors) { return void 0; } const seenKind = ((_a2 = state.seenEmittedFiles) == null ? void 0 : _a2.get(affectedFile.resolvedPath)) || 0 /* None */; - if (!(seenKind & getBuilderFileEmitAllDts(isForDtsErrors))) return { affectedFile, diagnostics, seenKind }; + if (!(seenKind & 24 /* AllDts */)) return { affectedFile, diagnostics, seenKind }; }); } function removeDiagnosticsOfLibraryFiles(state) { if (!state.cleanedDiagnosticsOfLibFiles) { state.cleanedDiagnosticsOfLibFiles = true; - const options = state.program.getCompilerOptions(); - forEach(state.program.getSourceFiles(), (f) => state.program.isSourceFileDefaultLibrary(f) && !skipTypeCheckingIgnoringNoCheck(f, options, state.program) && removeSemanticDiagnosticsOf(state, f.resolvedPath)); + const program = Debug.checkDefined(state.program); + const options = program.getCompilerOptions(); + forEach(program.getSourceFiles(), (f) => program.isSourceFileDefaultLibrary(f) && !skipTypeChecking(f, options, program) && removeSemanticDiagnosticsOf(state, f.resolvedPath)); } } function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, host) { @@ -129992,7 +128054,7 @@ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken removeDiagnosticsOfLibraryFiles(state); BuilderState.updateShapeSignature( state, - state.program, + Debug.checkDefined(state.program), affectedFile, cancellationToken, host @@ -130010,11 +128072,12 @@ function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken function handleDtsMayChangeOf(state, path, invalidateJsFiles, cancellationToken, host) { removeSemanticDiagnosticsOf(state, path); if (!state.changedFilesSet.has(path)) { - const sourceFile = state.program.getSourceFileByPath(path); + const program = Debug.checkDefined(state.program); + const sourceFile = program.getSourceFileByPath(path); if (sourceFile) { BuilderState.updateShapeSignature( state, - state.program, + program, sourceFile, cancellationToken, host, @@ -130022,17 +128085,9 @@ function handleDtsMayChangeOf(state, path, invalidateJsFiles, cancellationToken, true ); if (invalidateJsFiles) { - addToAffectedFilesPendingEmit( - state, - path, - getBuilderFileEmit(state.compilerOptions) - ); + addToAffectedFilesPendingEmit(state, path, getBuilderFileEmit(state.compilerOptions)); } else if (getEmitDeclarations(state.compilerOptions)) { - addToAffectedFilesPendingEmit( - state, - path, - state.compilerOptions.declarationMap ? 56 /* AllDts */ : 24 /* Dts */ - ); + addToAffectedFilesPendingEmit(state, path, state.compilerOptions.declarationMap ? 24 /* AllDts */ : 8 /* Dts */); } } } @@ -130099,7 +128154,7 @@ function handleDtsMayChangeOfReferencingExportOfAffectedFile(state, affectedFile host ); if (isChangedSignature(state, currentPath)) { - const currentSourceFile = state.program.getSourceFileByPath(currentPath); + const currentSourceFile = Debug.checkDefined(state.program).getSourceFileByPath(currentPath); queue.push(...BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath)); } } @@ -130145,79 +128200,38 @@ function handleDtsMayChangeOfFileAndExportsOfFile(state, filePath, invalidateJsF ); return void 0; } -function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) { - if (state.compilerOptions.noCheck) return emptyArray; +function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken) { return concatenate( - getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile), - state.program.getProgramDiagnostics(sourceFile) + getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken), + Debug.checkDefined(state.program).getProgramDiagnostics(sourceFile) ); } -function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken, semanticDiagnosticsPerFile) { - semanticDiagnosticsPerFile ?? (semanticDiagnosticsPerFile = state.semanticDiagnosticsPerFile); +function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken) { const path = sourceFile.resolvedPath; - const cachedDiagnostics = semanticDiagnosticsPerFile.get(path); - if (cachedDiagnostics) { - return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions); + if (state.semanticDiagnosticsPerFile) { + const cachedDiagnostics = state.semanticDiagnosticsPerFile.get(path); + if (cachedDiagnostics) { + return filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions); + } + } + const diagnostics = Debug.checkDefined(state.program).getBindAndCheckDiagnostics(sourceFile, cancellationToken); + if (state.semanticDiagnosticsPerFile) { + state.semanticDiagnosticsPerFile.set(path, diagnostics); } - const diagnostics = state.program.getBindAndCheckDiagnostics(sourceFile, cancellationToken); - semanticDiagnosticsPerFile.set(path, diagnostics); - state.buildInfoEmitPending = true; return filterSemanticDiagnostics(diagnostics, state.compilerOptions); } -function isIncrementalBundleEmitBuildInfo(info) { +function isProgramBundleEmitBuildInfo(info) { var _a; return !!((_a = info.options) == null ? void 0 : _a.outFile); } -function isIncrementalBuildInfo(info) { - return !!info.fileNames; -} -function isNonIncrementalBuildInfo(info) { - return !isIncrementalBuildInfo(info) && !!info.root; -} -function ensureHasErrorsForState(state) { - if (state.hasErrors !== void 0) return; - if (isIncrementalCompilation(state.compilerOptions)) { - state.hasErrors = !some(state.program.getSourceFiles(), (f) => { - var _a, _b; - const bindAndCheckDiagnostics = state.semanticDiagnosticsPerFile.get(f.resolvedPath); - return bindAndCheckDiagnostics === void 0 || // Missing semantic diagnostics in cache will be encoded in buildInfo - !!bindAndCheckDiagnostics.length || // cached semantic diagnostics will be encoded in buildInfo - !!((_b = (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(f.resolvedPath)) == null ? void 0 : _b.length); - }) && (hasSyntaxOrGlobalErrors(state) || some(state.program.getSourceFiles(), (f) => !!state.program.getProgramDiagnostics(f).length)); - } else { - state.hasErrors = some(state.program.getSourceFiles(), (f) => { - var _a, _b; - const bindAndCheckDiagnostics = state.semanticDiagnosticsPerFile.get(f.resolvedPath); - return !!(bindAndCheckDiagnostics == null ? void 0 : bindAndCheckDiagnostics.length) || // If has semantic diagnostics - !!((_b = (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(f.resolvedPath)) == null ? void 0 : _b.length); - }) || hasSyntaxOrGlobalErrors(state); - } -} -function hasSyntaxOrGlobalErrors(state) { - return !!state.program.getConfigFileParsingDiagnostics().length || !!state.program.getSyntacticDiagnostics().length || !!state.program.getOptionsDiagnostics().length || !!state.program.getGlobalDiagnostics().length; -} -function getBuildInfoEmitPending(state) { - ensureHasErrorsForState(state); - return state.buildInfoEmitPending ?? (state.buildInfoEmitPending = !!state.hasErrorsFromOldState !== !!state.hasErrors); -} function getBuildInfo2(state) { var _a, _b; - const currentDirectory = state.program.getCurrentDirectory(); + const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory)); const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0; const fileNames = []; const fileNameToFileId = /* @__PURE__ */ new Map(); const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath(f, currentDirectory, state.program.getCanonicalFileName))); - ensureHasErrorsForState(state); - if (!isIncrementalCompilation(state.compilerOptions)) { - const buildInfo2 = { - root: arrayFrom(rootFileNames, (r) => relativeToBuildInfo(r)), - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version - }; - return buildInfo2; - } const root = []; if (state.compilerOptions.outFile) { const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => { @@ -130225,15 +128239,12 @@ function getBuildInfo2(state) { tryAddRoot(key, fileId); return value.impliedFormat ? { version: value.version, impliedFormat: value.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : value.version; }); - const buildInfo2 = { + const program2 = { fileNames, fileInfos: fileInfos2, root, resolvedRoot: toResolvedRoot(), - options: toIncrementalBuildInfoCompilerOptions(state.compilerOptions), - semanticDiagnosticsPerFile: !state.changedFilesSet.size ? toIncrementalBuildInfoDiagnostics() : void 0, - emitDiagnosticsPerFile: toIncrementalBuildInfoEmitDiagnostics(), - changeFileSet: toChangeFileSet(), + options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions), outSignature: state.outSignature, latestChangedDtsFile, pendingEmit: !state.programEmitPending ? void 0 : ( @@ -130242,13 +128253,10 @@ function getBuildInfo2(state) { // Pending emit is same as deteremined by compilerOptions state.programEmitPending ) - ), + ) // Actual value - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version }; - return buildInfo2; + return createBuildInfo(program2); } let fileIdsList; let fileNamesToFileIdListId; @@ -130303,7 +128311,7 @@ function getBuildInfo2(state) { toFileIdListId(state.referencedMap.getValues(key)) ]); } - const semanticDiagnosticsPerFile = toIncrementalBuildInfoDiagnostics(); + const semanticDiagnosticsPerFile = convertToProgramBuildInfoDiagnostics(); let affectedFilesPendingEmit; if ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.size) { const fullEmitForOptions = getBuilderFileEmit(state.compilerOptions); @@ -130317,7 +128325,7 @@ function getBuildInfo2(state) { affectedFilesPendingEmit, pendingEmit === fullEmitForOptions ? fileId : ( // Pending full emit per options - pendingEmit === 24 /* Dts */ ? [fileId] : ( + pendingEmit === 8 /* Dts */ ? [fileId] : ( // Pending on Dts only [fileId, pendingEmit] ) @@ -130327,25 +128335,29 @@ function getBuildInfo2(state) { } } } - const buildInfo = { + let changeFileSet; + if (state.changedFilesSet.size) { + for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) { + changeFileSet = append(changeFileSet, toFileId(path)); + } + } + const emitDiagnosticsPerFile = convertToProgramBuildInfoEmitDiagnostics(); + const program = { fileNames, - fileIdsList, fileInfos, root, resolvedRoot: toResolvedRoot(), - options: toIncrementalBuildInfoCompilerOptions(state.compilerOptions), + options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions), + fileIdsList, referencedMap, semanticDiagnosticsPerFile, - emitDiagnosticsPerFile: toIncrementalBuildInfoEmitDiagnostics(), - changeFileSet: toChangeFileSet(), + emitDiagnosticsPerFile, affectedFilesPendingEmit, + changeFileSet, emitSignatures, - latestChangedDtsFile, - errors: state.hasErrors ? true : void 0, - checkPending: state.checkPending, - version + latestChangedDtsFile }; - return buildInfo; + return createBuildInfo(program); function relativeToBuildInfoEnsuringAbsolutePath(path) { return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory)); } @@ -130393,13 +128405,13 @@ function getBuildInfo2(state) { }); return result; } - function toIncrementalBuildInfoCompilerOptions(options) { + function convertToProgramBuildInfoCompilerOptions(options) { let result; const { optionsNameMap } = getOptionsNameMap(); for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) { const optionInfo = optionsNameMap.get(name.toLowerCase()); if (optionInfo == null ? void 0 : optionInfo.affectsBuildInfo) { - (result || (result = {}))[name] = toReusableCompilerOptionValue( + (result || (result = {}))[name] = convertToReusableCompilerOptionValue( optionInfo, options[name] ); @@ -130407,7 +128419,7 @@ function getBuildInfo2(state) { } return result; } - function toReusableCompilerOptionValue(option, value) { + function convertToReusableCompilerOptionValue(option, value) { if (option) { Debug.assert(option.type !== "listOrElement"); if (option.type === "list") { @@ -130421,22 +128433,23 @@ function getBuildInfo2(state) { } return value; } - function toIncrementalBuildInfoDiagnostics() { + function convertToProgramBuildInfoDiagnostics() { let result; state.fileInfos.forEach((_value, key) => { - const value = state.semanticDiagnosticsPerFile.get(key); + var _a2; + const value = (_a2 = state.semanticDiagnosticsPerFile) == null ? void 0 : _a2.get(key); if (!value) { if (!state.changedFilesSet.has(key)) result = append(result, toFileId(key)); } else if (value.length) { result = append(result, [ toFileId(key), - toReusableDiagnostic(value, key) + convertToReusableDiagnostics(value, key) ]); } }); return result; } - function toIncrementalBuildInfoEmitDiagnostics() { + function convertToProgramBuildInfoEmitDiagnostics() { var _a2; let result; if (!((_a2 = state.emitDiagnosticsPerFile) == null ? void 0 : _a2.size)) return result; @@ -130444,64 +128457,55 @@ function getBuildInfo2(state) { const value = state.emitDiagnosticsPerFile.get(key); result = append(result, [ toFileId(key), - toReusableDiagnostic(value, key) + convertToReusableDiagnostics(value, key) ]); } return result; } - function toReusableDiagnostic(diagnostics, diagnosticFilePath) { + function convertToReusableDiagnostics(diagnostics, diagnosticFilePath) { Debug.assert(!!diagnostics.length); return diagnostics.map((diagnostic) => { - const result = toReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath); + const result = convertToReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath); result.reportsUnnecessary = diagnostic.reportsUnnecessary; result.reportDeprecated = diagnostic.reportsDeprecated; result.source = diagnostic.source; result.skippedOn = diagnostic.skippedOn; const { relatedInformation } = diagnostic; - result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => toReusableDiagnosticRelatedInformation(r, diagnosticFilePath)) : [] : void 0; + result.relatedInformation = relatedInformation ? relatedInformation.length ? relatedInformation.map((r) => convertToReusableDiagnosticRelatedInformation(r, diagnosticFilePath)) : [] : void 0; return result; }); } - function toReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath) { + function convertToReusableDiagnosticRelatedInformation(diagnostic, diagnosticFilePath) { const { file } = diagnostic; return { ...diagnostic, file: file ? file.resolvedPath === diagnosticFilePath ? void 0 : relativeToBuildInfo(file.resolvedPath) : false, - messageText: isString(diagnostic.messageText) ? diagnostic.messageText : toReusableDiagnosticMessageChain(diagnostic.messageText) + messageText: isString(diagnostic.messageText) ? diagnostic.messageText : convertToReusableDiagnosticMessageChain(diagnostic.messageText) }; } - function toReusableDiagnosticMessageChain(chain) { + function convertToReusableDiagnosticMessageChain(chain) { if (chain.repopulateInfo) { return { info: chain.repopulateInfo(), - next: toReusableDiagnosticMessageChainArray(chain.next) + next: convertToReusableDiagnosticMessageChainArray(chain.next) }; } - const next = toReusableDiagnosticMessageChainArray(chain.next); + const next = convertToReusableDiagnosticMessageChainArray(chain.next); return next === chain.next ? chain : { ...chain, next }; } - function toReusableDiagnosticMessageChainArray(array) { + function convertToReusableDiagnosticMessageChainArray(array) { if (!array) return array; return forEach(array, (chain, index) => { - const reusable = toReusableDiagnosticMessageChain(chain); + const reusable = convertToReusableDiagnosticMessageChain(chain); if (chain === reusable) return void 0; const result = index > 0 ? array.slice(0, index - 1) : []; result.push(reusable); for (let i = index + 1; i < array.length; i++) { - result.push(toReusableDiagnosticMessageChain(array[i])); + result.push(convertToReusableDiagnosticMessageChain(array[i])); } return result; }) || array; } - function toChangeFileSet() { - let changeFileSet; - if (state.changedFilesSet.size) { - for (const path of arrayFrom(state.changedFilesSet.keys()).sort(compareStringsCaseSensitive)) { - changeFileSet = append(changeFileSet, toFileId(path)); - } - } - return changeFileSet; - } } var BuilderProgramKind = /* @__PURE__ */ ((BuilderProgramKind2) => { BuilderProgramKind2[BuilderProgramKind2["SemanticDiagnosticsBuilderProgram"] = 0] = "SemanticDiagnosticsBuilderProgram"; @@ -130565,27 +128569,25 @@ function computeSignature(text, host, data) { return (host.createHash ?? generateDjb2Hash)(getTextHandlingSourceMapForSignature(text, data)); } function createBuilderProgram(kind, { newProgram, host, oldProgram, configFileParsingDiagnostics }) { - let oldState = oldProgram && oldProgram.state; + let oldState = oldProgram && oldProgram.getState(); if (oldState && newProgram === oldState.program && configFileParsingDiagnostics === newProgram.getConfigFileParsingDiagnostics()) { newProgram = void 0; oldState = void 0; return oldProgram; } const state = createBuilderProgramState(newProgram, oldState); - newProgram.getBuildInfo = () => getBuildInfo2(toBuilderProgramStateWithDefinedProgram(state)); + newProgram.getBuildInfo = () => getBuildInfo2(state); newProgram = void 0; oldProgram = void 0; oldState = void 0; - const builderProgram = createRedirectedBuilderProgram(state, configFileParsingDiagnostics); - builderProgram.state = state; + const getState = () => state; + const builderProgram = createRedirectedBuilderProgram(getState, configFileParsingDiagnostics); + builderProgram.getState = getState; + builderProgram.saveEmitState = () => backupBuilderProgramEmitState(state); + builderProgram.restoreEmitState = (saved) => restoreBuilderProgramEmitState(state, saved); builderProgram.hasChangedEmitSignature = () => !!state.hasChangedEmitSignature; - builderProgram.getAllDependencies = (sourceFile) => BuilderState.getAllDependencies( - state, - Debug.checkDefined(state.program), - sourceFile - ); + builderProgram.getAllDependencies = (sourceFile) => BuilderState.getAllDependencies(state, Debug.checkDefined(state.program), sourceFile); builderProgram.getSemanticDiagnostics = getSemanticDiagnostics; - builderProgram.getDeclarationDiagnostics = getDeclarationDiagnostics2; builderProgram.emit = emit; builderProgram.releaseProgram = () => releaseCache(state); if (kind === 0 /* SemanticDiagnosticsBuilderProgram */) { @@ -130599,145 +128601,76 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa } return builderProgram; function emitBuildInfo(writeFile2, cancellationToken) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (getBuildInfoEmitPending(state)) { - const result = state.program.emitBuildInfo( - writeFile2 || maybeBind(host, host.writeFile), - cancellationToken - ); + if (state.buildInfoEmitPending) { + const result = Debug.checkDefined(state.program).emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken); state.buildInfoEmitPending = false; return result; } return emitSkippedWithNoDiagnostics; } - function emitNextAffectedFileOrDtsErrors(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, isForDtsErrors) { - var _a, _b, _c, _d; - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); + function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { + var _a, _b, _c; let affected = getNextAffectedFile(state, cancellationToken, host); const programEmitKind = getBuilderFileEmit(state.compilerOptions); - let emitKind = !isForDtsErrors ? emitOnlyDtsFiles ? programEmitKind & 56 /* AllDts */ : programEmitKind : 8 /* DtsErrors */; + let emitKind = emitOnlyDtsFiles ? programEmitKind & 24 /* AllDts */ : programEmitKind; if (!affected) { if (!state.compilerOptions.outFile) { - const pendingAffectedFile = getNextAffectedFilePendingEmit( - state, - emitOnlyDtsFiles, - isForDtsErrors - ); - if (pendingAffectedFile) { - ({ affectedFile: affected, emitKind } = pendingAffectedFile); - } else { - const pendingForDiagnostics = getNextPendingEmitDiagnosticsFile( - state, - isForDtsErrors - ); + const pendingAffectedFile = getNextAffectedFilePendingEmit(state, emitOnlyDtsFiles); + if (!pendingAffectedFile) { + const pendingForDiagnostics = getNextPendingEmitDiagnosticsFile(state); if (pendingForDiagnostics) { - (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set( - pendingForDiagnostics.affectedFile.resolvedPath, - pendingForDiagnostics.seenKind | getBuilderFileEmitAllDts(isForDtsErrors) - ); + (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set(pendingForDiagnostics.affectedFile.resolvedPath, pendingForDiagnostics.seenKind | 24 /* AllDts */); return { result: { emitSkipped: true, diagnostics: pendingForDiagnostics.diagnostics }, affected: pendingForDiagnostics.affectedFile }; } + if (!state.buildInfoEmitPending) return void 0; + const affected2 = state.program; + const result2 = affected2.emitBuildInfo(writeFile2 || maybeBind(host, host.writeFile), cancellationToken); + state.buildInfoEmitPending = false; + return { result: result2, affected: affected2 }; } + ({ affectedFile: affected, emitKind } = pendingAffectedFile); } else { - if (state.programEmitPending) { - emitKind = getPendingEmitKindWithSeen( - state.programEmitPending, - state.seenProgramEmit, - emitOnlyDtsFiles, - isForDtsErrors - ); - if (emitKind) affected = state.program; - } - if (!affected && ((_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.size)) { - const seenKind = state.seenProgramEmit || 0 /* None */; - if (!(seenKind & getBuilderFileEmitAllDts(isForDtsErrors))) { - state.seenProgramEmit = getBuilderFileEmitAllDts(isForDtsErrors) | seenKind; - const diagnostics = []; - state.emitDiagnosticsPerFile.forEach((d) => addRange(diagnostics, d)); - return { - result: { emitSkipped: true, diagnostics }, - affected: state.program - }; - } - } - } - if (!affected) { - if (isForDtsErrors || !getBuildInfoEmitPending(state)) return void 0; - const affected2 = state.program; - const result2 = affected2.emitBuildInfo( - writeFile2 || maybeBind(host, host.writeFile), - cancellationToken - ); - state.buildInfoEmitPending = false; - return { result: result2, affected: affected2 }; + if (!state.programEmitPending) return void 0; + emitKind = state.programEmitPending; + if (emitOnlyDtsFiles) emitKind = emitKind & 24 /* AllDts */; + if (!emitKind) return void 0; + affected = state.program; } } let emitOnly; if (emitKind & 7 /* AllJs */) emitOnly = 0 /* Js */; - if (emitKind & 56 /* AllDts */) emitOnly = emitOnly === void 0 ? 1 /* Dts */ : void 0; - const result = !isForDtsErrors ? state.program.emit( + if (emitKind & 24 /* AllDts */) emitOnly = emitOnly === void 0 ? 1 /* Dts */ : void 0; + if (affected === state.program) { + state.programEmitPending = state.changedFilesSet.size ? getPendingEmitKind(programEmitKind, emitKind) : state.programEmitPending ? getPendingEmitKind(state.programEmitPending, emitKind) : void 0; + } + const result = state.program.emit( affected === state.program ? void 0 : affected, getWriteFileCallback(writeFile2, customTransformers), cancellationToken, emitOnly, - customTransformers, - /*forceDtsEmit*/ - void 0, - /*skipBuildInfo*/ - true - ) : { - emitSkipped: true, - diagnostics: state.program.getDeclarationDiagnostics( - affected === state.program ? void 0 : affected, - cancellationToken - ) - }; + customTransformers + ); if (affected !== state.program) { const affectedSourceFile = affected; state.seenAffectedFiles.add(affectedSourceFile.resolvedPath); if (state.affectedFilesIndex !== void 0) state.affectedFilesIndex++; state.buildInfoEmitPending = true; - const existing = ((_b = state.seenEmittedFiles) == null ? void 0 : _b.get(affectedSourceFile.resolvedPath)) || 0 /* None */; + const existing = ((_a = state.seenEmittedFiles) == null ? void 0 : _a.get(affectedSourceFile.resolvedPath)) || 0 /* None */; (state.seenEmittedFiles ?? (state.seenEmittedFiles = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, emitKind | existing); - const existingPending = ((_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.get(affectedSourceFile.resolvedPath)) || programEmitKind; + const existingPending = ((_b = state.affectedFilesPendingEmit) == null ? void 0 : _b.get(affectedSourceFile.resolvedPath)) || programEmitKind; const pendingKind = getPendingEmitKind(existingPending, emitKind | existing); if (pendingKind) (state.affectedFilesPendingEmit ?? (state.affectedFilesPendingEmit = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, pendingKind); - else (_d = state.affectedFilesPendingEmit) == null ? void 0 : _d.delete(affectedSourceFile.resolvedPath); + else (_c = state.affectedFilesPendingEmit) == null ? void 0 : _c.delete(affectedSourceFile.resolvedPath); if (result.diagnostics.length) (state.emitDiagnosticsPerFile ?? (state.emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set(affectedSourceFile.resolvedPath, result.diagnostics); } else { state.changedFilesSet.clear(); - state.programEmitPending = state.changedFilesSet.size ? getPendingEmitKind(programEmitKind, emitKind) : state.programEmitPending ? getPendingEmitKind(state.programEmitPending, emitKind) : void 0; - state.seenProgramEmit = emitKind | (state.seenProgramEmit || 0 /* None */); - setEmitDiagnosticsPerFile(result.diagnostics); - state.buildInfoEmitPending = true; } return { result, affected }; } - function setEmitDiagnosticsPerFile(diagnostics) { - let emitDiagnosticsPerFile; - diagnostics.forEach((d) => { - if (!d.file) return; - let diagnostics2 = emitDiagnosticsPerFile == null ? void 0 : emitDiagnosticsPerFile.get(d.file.resolvedPath); - if (!diagnostics2) (emitDiagnosticsPerFile ?? (emitDiagnosticsPerFile = /* @__PURE__ */ new Map())).set(d.file.resolvedPath, diagnostics2 = []); - diagnostics2.push(d); - }); - if (emitDiagnosticsPerFile) state.emitDiagnosticsPerFile = emitDiagnosticsPerFile; - } - function emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - return emitNextAffectedFileOrDtsErrors( - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers, - /*isForDtsErrors*/ - false - ); - } function getWriteFileCallback(writeFile2, customTransformers) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); if (!getEmitDeclarations(state.compilerOptions)) return writeFile2 || maybeBind(host, host.writeFile); return (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => { var _a, _b, _c; @@ -130772,7 +128705,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa if (state.compilerOptions.composite) { const filePath = sourceFiles[0].resolvedPath; emitSignature = handleNewSignature((_c = state.emitSignatures) == null ? void 0 : _c.get(filePath), emitSignature); - if (!emitSignature) return data.skippedDtsWrite = true; + if (!emitSignature) return; (state.emitSignatures ?? (state.emitSignatures = /* @__PURE__ */ new Map())).set(filePath, emitSignature); } } else if (state.compilerOptions.composite) { @@ -130781,7 +128714,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa /*newSignature*/ void 0 ); - if (!newSignature) return data.skippedDtsWrite = true; + if (!newSignature) return; state.outSignature = newSignature; } } @@ -130804,7 +128737,6 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa }; } function emit(targetSourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile); } @@ -130817,12 +128749,7 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa let diagnostics; let emittedFiles = []; let affectedEmitResult; - while (affectedEmitResult = emitNextAffectedFile( - writeFile2, - cancellationToken, - emitOnlyDtsFiles, - customTransformers - )) { + while (affectedEmitResult = emitNextAffectedFile(writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers)) { emitSkipped = emitSkipped || affectedEmitResult.result.emitSkipped; diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics); emittedFiles = addRange(emittedFiles, affectedEmitResult.result.emittedFiles); @@ -130835,82 +128762,23 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa sourceMaps }; } else { - clearAffectedFilesPendingEmit( - state, - emitOnlyDtsFiles, - /*isForDtsErrors*/ - false - ); + clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles); } } - const emitResult = state.program.emit( + return Debug.checkDefined(state.program).emit( targetSourceFile, getWriteFileCallback(writeFile2, customTransformers), cancellationToken, emitOnlyDtsFiles, customTransformers ); - handleNonEmitBuilderWithEmitOrDtsErrors( - targetSourceFile, - emitOnlyDtsFiles, - /*isForDtsErrors*/ - false, - emitResult.diagnostics - ); - return emitResult; - } - function handleNonEmitBuilderWithEmitOrDtsErrors(targetSourceFile, emitOnlyDtsFiles, isForDtsErrors, diagnostics) { - if (!targetSourceFile && kind !== 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - clearAffectedFilesPendingEmit(state, emitOnlyDtsFiles, isForDtsErrors); - setEmitDiagnosticsPerFile(diagnostics); - } - } - function getDeclarationDiagnostics2(sourceFile, cancellationToken) { - var _a; - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); - if (kind === 1 /* EmitAndSemanticDiagnosticsBuilderProgram */) { - assertSourceFileOkWithoutNextAffectedCall(state, sourceFile); - let affectedEmitResult; - let diagnostics; - while (affectedEmitResult = emitNextAffectedFileOrDtsErrors( - /*writeFile*/ - void 0, - cancellationToken, - /*emitOnlyDtsFiles*/ - void 0, - /*customTransformers*/ - void 0, - /*isForDtsErrors*/ - true - )) { - if (!sourceFile) diagnostics = addRange(diagnostics, affectedEmitResult.result.diagnostics); - } - return (!sourceFile ? diagnostics : (_a = state.emitDiagnosticsPerFile) == null ? void 0 : _a.get(sourceFile.resolvedPath)) || emptyArray; - } else { - const result = state.program.getDeclarationDiagnostics(sourceFile, cancellationToken); - handleNonEmitBuilderWithEmitOrDtsErrors( - sourceFile, - /*emitOnlyDtsFiles*/ - void 0, - /*isForDtsErrors*/ - true, - result - ); - return result; - } } function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); while (true) { const affected = getNextAffectedFile(state, cancellationToken, host); let result; - if (!affected) { - if (state.checkPending && !state.compilerOptions.noCheck) { - state.checkPending = void 0; - state.buildInfoEmitPending = true; - } - return void 0; - } else if (affected !== state.program) { + if (!affected) return void 0; + else if (affected !== state.program) { const affectedSourceFile = affected; if (!ignoreSourceFile || !ignoreSourceFile(affectedSourceFile)) { result = getSemanticDiagnosticsOfFile(state, affectedSourceFile, cancellationToken); @@ -130920,48 +128788,33 @@ function createBuilderProgram(kind, { newProgram, host, oldProgram, configFilePa state.buildInfoEmitPending = true; if (!result) continue; } else { - let diagnostics; - const semanticDiagnosticsPerFile = /* @__PURE__ */ new Map(); - state.program.getSourceFiles().forEach( - (sourceFile) => diagnostics = addRange( - diagnostics, - getSemanticDiagnosticsOfFile( - state, - sourceFile, - cancellationToken, - semanticDiagnosticsPerFile - ) - ) + result = state.program.getSemanticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken ); - state.semanticDiagnosticsPerFile = semanticDiagnosticsPerFile; - result = diagnostics || emptyArray; state.changedFilesSet.clear(); state.programEmitPending = getBuilderFileEmit(state.compilerOptions); - if (!state.compilerOptions.noCheck) state.checkPending = void 0; - state.buildInfoEmitPending = true; } return { result, affected }; } } function getSemanticDiagnostics(sourceFile, cancellationToken) { - Debug.assert(isBuilderProgramStateWithDefinedProgram(state)); assertSourceFileOkWithoutNextAffectedCall(state, sourceFile); + const compilerOptions = Debug.checkDefined(state.program).getCompilerOptions(); + if (compilerOptions.outFile) { + Debug.assert(!state.semanticDiagnosticsPerFile); + return Debug.checkDefined(state.program).getSemanticDiagnostics(sourceFile, cancellationToken); + } if (sourceFile) { return getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken); } - while (true) { - const affectedResult = getSemanticDiagnosticsOfNextAffectedFile(cancellationToken); - if (!affectedResult) break; - if (affectedResult.affected === state.program) return affectedResult.result; + while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) { } let diagnostics; - for (const sourceFile2 of state.program.getSourceFiles()) { + for (const sourceFile2 of Debug.checkDefined(state.program).getSourceFiles()) { diagnostics = addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile2, cancellationToken)); } - if (state.checkPending && !state.compilerOptions.noCheck) { - state.checkPending = void 0; - state.buildInfoEmitPending = true; - } return diagnostics || emptyArray; } } @@ -130975,49 +128828,44 @@ function toBuilderStateFileInfoForMultiEmit(fileInfo) { return isString(fileInfo) ? { version: fileInfo, signature: fileInfo, affectsGlobalScope: void 0, impliedFormat: void 0 } : isString(fileInfo.signature) ? fileInfo : { version: fileInfo.version, signature: fileInfo.signature === false ? void 0 : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat }; } function toBuilderFileEmit(value, fullEmitForOptions) { - return isNumber(value) ? fullEmitForOptions : value[1] || 24 /* Dts */; + return isNumber(value) ? fullEmitForOptions : value[1] || 8 /* Dts */; } function toProgramEmitPending(value, options) { return !value ? getBuilderFileEmit(options || {}) : value; } -function createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host) { +function createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host) { var _a, _b, _c, _d; + const program = buildInfo.program; const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); let state; - const filePaths = (_a = buildInfo.fileNames) == null ? void 0 : _a.map(toPathInBuildInfoDirectory); + const filePaths = (_a = program.fileNames) == null ? void 0 : _a.map(toPathInBuildInfoDirectory); let filePathsSetList; - const latestChangedDtsFile = buildInfo.latestChangedDtsFile ? toAbsolutePath(buildInfo.latestChangedDtsFile) : void 0; - const fileInfos = /* @__PURE__ */ new Map(); - const changedFilesSet = new Set(map(buildInfo.changeFileSet, toFilePath)); - if (isIncrementalBundleEmitBuildInfo(buildInfo)) { - buildInfo.fileInfos.forEach((fileInfo, index) => { + const latestChangedDtsFile = program.latestChangedDtsFile ? toAbsolutePath(program.latestChangedDtsFile) : void 0; + if (isProgramBundleEmitBuildInfo(program)) { + const fileInfos = /* @__PURE__ */ new Map(); + program.fileInfos.forEach((fileInfo, index) => { const path = toFilePath(index + 1); fileInfos.set(path, isString(fileInfo) ? { version: fileInfo, signature: void 0, affectsGlobalScope: void 0, impliedFormat: void 0 } : fileInfo); }); state = { fileInfos, - compilerOptions: buildInfo.options ? convertToOptionsWithAbsolutePaths(buildInfo.options, toAbsolutePath) : {}, - semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(buildInfo.semanticDiagnosticsPerFile), - emitDiagnosticsPerFile: toPerFileEmitDiagnostics(buildInfo.emitDiagnosticsPerFile), - hasReusableDiagnostic: true, - changedFilesSet, + compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}, latestChangedDtsFile, - outSignature: buildInfo.outSignature, - programEmitPending: buildInfo.pendingEmit === void 0 ? void 0 : toProgramEmitPending(buildInfo.pendingEmit, buildInfo.options), - hasErrors: buildInfo.errors, - checkPending: buildInfo.checkPending + outSignature: program.outSignature, + programEmitPending: program.pendingEmit === void 0 ? void 0 : toProgramEmitPending(program.pendingEmit, program.options) }; } else { - filePathsSetList = (_b = buildInfo.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath))); - const emitSignatures = ((_c = buildInfo.options) == null ? void 0 : _c.composite) && !buildInfo.options.outFile ? /* @__PURE__ */ new Map() : void 0; - buildInfo.fileInfos.forEach((fileInfo, index) => { + filePathsSetList = (_b = program.fileIdsList) == null ? void 0 : _b.map((fileIds) => new Set(fileIds.map(toFilePath))); + const fileInfos = /* @__PURE__ */ new Map(); + const emitSignatures = ((_c = program.options) == null ? void 0 : _c.composite) && !program.options.outFile ? /* @__PURE__ */ new Map() : void 0; + program.fileInfos.forEach((fileInfo, index) => { const path = toFilePath(index + 1); const stateFileInfo = toBuilderStateFileInfoForMultiEmit(fileInfo); fileInfos.set(path, stateFileInfo); if (emitSignatures && stateFileInfo.signature) emitSignatures.set(path, stateFileInfo.signature); }); - (_d = buildInfo.emitSignatures) == null ? void 0 : _d.forEach((value) => { + (_d = program.emitSignatures) == null ? void 0 : _d.forEach((value) => { if (isNumber(value)) emitSignatures.delete(toFilePath(value)); else { const key = toFilePath(value[0]); @@ -131030,24 +128878,25 @@ function createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, ); } }); - const fullEmitForOptions = buildInfo.affectedFilesPendingEmit ? getBuilderFileEmit(buildInfo.options || {}) : void 0; + const changedFilesSet = new Set(map(program.changeFileSet, toFilePath)); + const fullEmitForOptions = program.affectedFilesPendingEmit ? getBuilderFileEmit(program.options || {}) : void 0; state = { fileInfos, - compilerOptions: buildInfo.options ? convertToOptionsWithAbsolutePaths(buildInfo.options, toAbsolutePath) : {}, - referencedMap: toManyToManyPathMap(buildInfo.referencedMap, buildInfo.options ?? {}), - semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(buildInfo.semanticDiagnosticsPerFile), - emitDiagnosticsPerFile: toPerFileEmitDiagnostics(buildInfo.emitDiagnosticsPerFile), + compilerOptions: program.options ? convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {}, + referencedMap: toManyToManyPathMap(program.referencedMap, program.options ?? {}), + semanticDiagnosticsPerFile: toPerFileSemanticDiagnostics(program.semanticDiagnosticsPerFile, fileInfos, changedFilesSet), + emitDiagnosticsPerFile: toPerFileEmitDiagnostics(program.emitDiagnosticsPerFile), hasReusableDiagnostic: true, + affectedFilesPendingEmit: program.affectedFilesPendingEmit && arrayToMap(program.affectedFilesPendingEmit, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => toBuilderFileEmit(value, fullEmitForOptions)), changedFilesSet, - affectedFilesPendingEmit: buildInfo.affectedFilesPendingEmit && arrayToMap(buildInfo.affectedFilesPendingEmit, (value) => toFilePath(isNumber(value) ? value : value[0]), (value) => toBuilderFileEmit(value, fullEmitForOptions)), latestChangedDtsFile, - emitSignatures: (emitSignatures == null ? void 0 : emitSignatures.size) ? emitSignatures : void 0, - hasErrors: buildInfo.errors, - checkPending: buildInfo.checkPending + emitSignatures: (emitSignatures == null ? void 0 : emitSignatures.size) ? emitSignatures : void 0 }; } return { - state, + getState: () => state, + saveEmitState: noop, + restoreEmitState: noop, getProgram: notImplemented, getProgramOrUndefined: returnUndefined, releaseProgram: noop, @@ -131087,7 +128936,7 @@ function createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, referenceMap.forEach(([fileId, fileIdListId]) => map2.set(toFilePath(fileId), toFilePathsSet(fileIdListId))); return map2; } - function toPerFileSemanticDiagnostics(diagnostics) { + function toPerFileSemanticDiagnostics(diagnostics, fileInfos, changedFilesSet) { const semanticDiagnostics = new Map( mapDefinedIterator( fileInfos.keys(), @@ -131098,7 +128947,7 @@ function createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, if (isNumber(value)) semanticDiagnostics.delete(toFilePath(value)); else semanticDiagnostics.set(toFilePath(value[0]), value[1]); }); - return semanticDiagnostics; + return semanticDiagnostics.size ? semanticDiagnostics : void 0; } function toPerFileEmitDiagnostics(diagnostics) { return diagnostics && arrayToMap(diagnostics, (value) => toFilePath(value[0]), (value) => value[1]); @@ -131139,19 +128988,15 @@ function getBuildInfoFileVersionMap(program, buildInfoPath, host) { } } } -function getNonIncrementalBuildInfoRoots(buildInfo, buildInfoPath, host) { - if (!isNonIncrementalBuildInfo(buildInfo)) return void 0; - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); - const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); - return buildInfo.root.map((r) => toPath(r, buildInfoDirectory, getCanonicalFileName)); -} -function createRedirectedBuilderProgram(state, configFileParsingDiagnostics) { +function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) { return { - state: void 0, + getState: notImplemented, + saveEmitState: noop, + restoreEmitState: noop, getProgram, - getProgramOrUndefined: () => state.program, - releaseProgram: () => state.program = void 0, - getCompilerOptions: () => state.compilerOptions, + getProgramOrUndefined: () => getState().program, + releaseProgram: () => getState().program = void 0, + getCompilerOptions: () => getState().compilerOptions, getSourceFile: (fileName) => getProgram().getSourceFile(fileName), getSourceFiles: () => getProgram().getSourceFiles(), getOptionsDiagnostics: (cancellationToken) => getProgram().getOptionsDiagnostics(cancellationToken), @@ -131167,50 +129012,20 @@ function createRedirectedBuilderProgram(state, configFileParsingDiagnostics) { close: noop }; function getProgram() { - return Debug.checkDefined(state.program); + return Debug.checkDefined(getState().program); } } // src/compiler/builderPublic.ts function createSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { - return createBuilderProgram( - 0 /* SemanticDiagnosticsBuilderProgram */, - getBuilderCreationParameters( - newProgramOrRootNames, - hostOrOptions, - oldProgramOrHost, - configFileParsingDiagnosticsOrOldProgram, - configFileParsingDiagnostics, - projectReferences - ) - ); + return createBuilderProgram(0 /* SemanticDiagnosticsBuilderProgram */, getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences)); } function createEmitAndSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { - return createBuilderProgram( - 1 /* EmitAndSemanticDiagnosticsBuilderProgram */, - getBuilderCreationParameters( - newProgramOrRootNames, - hostOrOptions, - oldProgramOrHost, - configFileParsingDiagnosticsOrOldProgram, - configFileParsingDiagnostics, - projectReferences - ) - ); + return createBuilderProgram(1 /* EmitAndSemanticDiagnosticsBuilderProgram */, getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences)); } function createAbstractBuilder(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) { - const { newProgram, configFileParsingDiagnostics: newConfigFileParsingDiagnostics } = getBuilderCreationParameters( - newProgramOrRootNames, - hostOrOptions, - oldProgramOrHost, - configFileParsingDiagnosticsOrOldProgram, - configFileParsingDiagnostics, - projectReferences - ); - return createRedirectedBuilderProgram( - { program: newProgram, compilerOptions: newProgram.getCompilerOptions() }, - newConfigFileParsingDiagnostics - ); + const { newProgram, configFileParsingDiagnostics: newConfigFileParsingDiagnostics } = getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences); + return createRedirectedBuilderProgram(() => ({ program: newProgram, compilerOptions: newProgram.getCompilerOptions() }), newConfigFileParsingDiagnostics); } // src/compiler/resolutionCache.ts @@ -131223,9 +129038,9 @@ function removeIgnoredPath(path) { function perceivedOsRootLengthForWatching(pathComponents2, length2) { if (length2 <= 1) return 1; let indexAfterOsRoot = 1; - let isDosStyle = pathComponents2[0].search(/[a-z]:/i) === 0; + let isDosStyle = pathComponents2[0].search(/[a-zA-Z]:/) === 0; if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths - pathComponents2[1].search(/[a-z]\$$/i) === 0) { + pathComponents2[1].search(/[a-zA-Z]\$$/) === 0) { if (length2 === 2) return 2; indexAfterOsRoot = 2; isDosStyle = true; @@ -131244,9 +129059,6 @@ function canWatchDirectoryOrFile(pathComponents2, length2) { const perceivedOsRootLength = perceivedOsRootLengthForWatching(pathComponents2, length2); return length2 > perceivedOsRootLength + 1; } -function canWatchDirectoryOrFilePath(path) { - return canWatchDirectoryOrFile(getPathComponents(path)); -} function canWatchAtTypes(atTypes) { return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(getDirectoryPath(atTypes)); } @@ -131258,12 +129070,12 @@ function isInDirectoryPath(dirComponents, fileOrDirComponents) { return true; } function canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(fileOrDirPath) { - return canWatchDirectoryOrFilePath(fileOrDirPath); + return canWatchDirectoryOrFile(getPathComponents(fileOrDirPath)); } function canWatchAffectingLocation(filePath) { return canWatchAffectedPackageJsonOrNodeModulesOfAtTypes(filePath); } -function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath, rootDir, rootPath, rootPathComponents, isRootWatchable, getCurrentDirectory, preferNonRecursiveWatch) { +function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath, rootDir, rootPath, rootPathComponents, getCurrentDirectory) { const failedLookupPathComponents = getPathComponents(failedLookupLocationPath); failedLookupLocation = isRootedDiskPath(failedLookupLocation) ? normalizePath(failedLookupLocation) : getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory()); const failedLookupComponents = getPathComponents(failedLookupLocation); @@ -131272,7 +129084,7 @@ function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLoo const nodeModulesIndex = failedLookupPathComponents.indexOf("node_modules"); if (nodeModulesIndex !== -1 && nodeModulesIndex + 1 <= perceivedOsRootLength + 1) return void 0; const lastNodeModulesIndex = failedLookupPathComponents.lastIndexOf("node_modules"); - if (isRootWatchable && isInDirectoryPath(rootPathComponents, failedLookupPathComponents)) { + if (isInDirectoryPath(rootPathComponents, failedLookupPathComponents)) { if (failedLookupPathComponents.length > rootPathComponents.length + 1) { return getDirectoryOfFailedLookupWatch( failedLookupComponents, @@ -131295,11 +129107,10 @@ function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLoo perceivedOsRootLength, nodeModulesIndex, rootPathComponents, - lastNodeModulesIndex, - preferNonRecursiveWatch + lastNodeModulesIndex ); } -function getDirectoryToWatchFromFailedLookupLocationDirectory(dirComponents, dirPathComponents, dirPathComponentsLength, perceivedOsRootLength, nodeModulesIndex, rootPathComponents, lastNodeModulesIndex, preferNonRecursiveWatch) { +function getDirectoryToWatchFromFailedLookupLocationDirectory(dirComponents, dirPathComponents, dirPathComponentsLength, perceivedOsRootLength, nodeModulesIndex, rootPathComponents, lastNodeModulesIndex) { if (nodeModulesIndex !== -1) { return getDirectoryOfFailedLookupWatch( dirComponents, @@ -131310,13 +129121,11 @@ function getDirectoryToWatchFromFailedLookupLocationDirectory(dirComponents, dir } let nonRecursive = true; let length2 = dirPathComponentsLength; - if (!preferNonRecursiveWatch) { - for (let i = 0; i < dirPathComponentsLength; i++) { - if (dirPathComponents[i] !== rootPathComponents[i]) { - nonRecursive = false; - length2 = Math.max(i + 1, perceivedOsRootLength + 1); - break; - } + for (let i = 0; i < dirPathComponentsLength; i++) { + if (dirPathComponents[i] !== rootPathComponents[i]) { + nonRecursive = false; + length2 = Math.max(i + 1, perceivedOsRootLength + 1); + break; } } return getDirectoryOfFailedLookupWatch( @@ -131344,9 +129153,9 @@ function getDirectoryOfFailedLookupWatch(dirComponents, dirPathComponents, lengt packageDirPath: packageDirLength !== void 0 ? getPathFromPathComponents(dirPathComponents, packageDirLength) : void 0 }; } -function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath, rootPath, rootPathComponents, isRootWatchable, getCurrentDirectory, preferNonRecursiveWatch, filterCustomPath) { +function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath, rootPath, rootPathComponents, getCurrentDirectory, filterCustomPath) { const typeRootPathComponents = getPathComponents(typeRootPath); - if (isRootWatchable && isInDirectoryPath(rootPathComponents, typeRootPathComponents)) { + if (isInDirectoryPath(rootPathComponents, typeRootPathComponents)) { return rootPath; } typeRoot = isRootedDiskPath(typeRoot) ? normalizePath(typeRoot) : getNormalizedAbsolutePath(typeRoot, getCurrentDirectory()); @@ -131357,8 +129166,7 @@ function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootP perceivedOsRootLengthForWatching(typeRootPathComponents, typeRootPathComponents.length), typeRootPathComponents.indexOf("node_modules"), rootPathComponents, - typeRootPathComponents.lastIndexOf("node_modules"), - preferNonRecursiveWatch + typeRootPathComponents.lastIndexOf("node_modules") ); return toWatch && filterCustomPath(toWatch.dirPath) ? toWatch.dirPath : void 0; } @@ -131366,6 +129174,9 @@ function getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirec const normalized = getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()); return !isDiskPathRoot(normalized) ? removeTrailingDirectorySeparator(normalized) : normalized; } +function getRootPathSplitLength(rootPath) { + return rootPath.split(directorySeparator).length - (hasTrailingDirectorySeparator(rootPath) ? 1 : 0); +} function getModuleResolutionHost(resolutionHost) { var _a; return ((_a = resolutionHost.getCompilerHost) == null ? void 0 : _a.call(resolutionHost)) || resolutionHost; @@ -131387,10 +129198,10 @@ function createModuleResolutionLoaderUsingGlobalCache(containingFile, redirected function resolveModuleNameUsingGlobalCache(resolutionHost, moduleResolutionCache, moduleName, containingFile, compilerOptions, redirectedReference, mode) { const host = getModuleResolutionHost(resolutionHost); const primaryResult = resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode); - if (!resolutionHost.getGlobalTypingsCacheLocation) { + if (!resolutionHost.getGlobalCache) { return primaryResult; } - const globalCache = resolutionHost.getGlobalTypingsCacheLocation(); + const globalCache = resolutionHost.getGlobalCache(); if (globalCache !== void 0 && !isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && extensionIsTS(primaryResult.resolvedModule.extension))) { const { resolvedModule, failedLookupLocations, affectingLocations, resolutionDiagnostics } = loadModuleFromGlobalCache( Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), @@ -131414,7 +129225,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW let filesWithChangedSetOfUnresolvedImports; let filesWithInvalidatedResolutions; let filesWithInvalidatedNonRelativeUnresolvedImports; - const nonRelativeExternalModuleResolutions = /* @__PURE__ */ new Set(); + const nonRelativeExternalModuleResolutions = createMultiMap(); const resolutionsWithFailedLookups = /* @__PURE__ */ new Set(); const resolutionsWithOnlyAffectingLocations = /* @__PURE__ */ new Set(); const resolvedFileToResolution = /* @__PURE__ */ new Map(); @@ -131454,7 +129265,6 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW const rootDir = getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory); const rootPath = resolutionHost.toPath(rootDir); const rootPathComponents = getPathComponents(rootPath); - const isRootWatchable = canWatchDirectoryOrFile(rootPathComponents); const isSymlinkCache = /* @__PURE__ */ new Map(); const packageDirWatchers = /* @__PURE__ */ new Map(); const dirPathToSymlinkPackageRefCount = /* @__PURE__ */ new Map(); @@ -131496,6 +129306,12 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW clear: clear2, onChangesAffectModuleResolution }; + function getResolvedModule(resolution) { + return resolution.resolvedModule; + } + function getResolvedTypeReferenceDirective(resolution) { + return resolution.resolvedTypeReferenceDirective; + } function clear2() { clearMap(directoryWatchesOfFailedLookups, closeFileWatcherOf); clearMap(fileWatchesOfAffectingLocations, closeFileWatcherOf); @@ -131566,7 +129382,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); libraryResolutionCache.clearAllExceptPackageJsonInfoCache(); - watchFailedLookupLocationOfNonRelativeModuleResolutions(); + nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); + nonRelativeExternalModuleResolutions.clear(); isSymlinkCache.clear(); } function cleanupLibResolutionWatching(newProgram) { @@ -131576,7 +129393,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW stopWatchFailedLookupLocationOfResolution( resolution, resolutionHost.toPath(getInferredLibraryNameResolveFrom(resolutionHost.getCompilationSettings(), getCurrentDirectory(), libFileName)), - getResolvedModuleFromResolution + getResolvedModule ); resolvedLibraries.delete(libFileName); } @@ -131585,12 +129402,13 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW function finishCachingPerDirectoryResolution(newProgram, oldProgram) { filesWithInvalidatedNonRelativeUnresolvedImports = void 0; allModuleAndTypeResolutionsAreInvalidated = false; - watchFailedLookupLocationOfNonRelativeModuleResolutions(); + nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); + nonRelativeExternalModuleResolutions.clear(); if (newProgram !== oldProgram) { cleanupLibResolutionWatching(newProgram); newProgram == null ? void 0 : newProgram.getSourceFiles().forEach((newFile) => { var _a; - const expected = ((_a = newFile.packageJsonLocations) == null ? void 0 : _a.length) ?? 0; + const expected = isExternalOrCommonJsModule(newFile) ? ((_a = newFile.packageJsonLocations) == null ? void 0 : _a.length) ?? 0 : 0; const existing = impliedFormatPackageJsons.get(newFile.resolvedPath) ?? emptyArray; for (let i = existing.length; i < expected; i++) { createFileWatcherOfAffectingLocation( @@ -131755,7 +129573,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW getModuleResolutionHost(resolutionHost), typeReferenceDirectiveResolutionCache ), - getResolutionWithResolvedFileName: getResolvedTypeReferenceDirectiveFromResolution, + getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective, shouldRetryResolution: (resolution) => resolution.resolvedTypeReferenceDirective === void 0, deferWatchingNonRelativeResolution: false }); @@ -131776,7 +129594,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW resolutionHost, moduleResolutionCache ), - getResolutionWithResolvedFileName: getResolvedModuleFromResolution, + getResolutionWithResolvedFileName: getResolvedModule, shouldRetryResolution: (resolution) => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension), logChanges: logChangesWhenResolvingModule, deferWatchingNonRelativeResolution: true @@ -131794,17 +129612,17 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW libraryName, resolution, path, - getResolvedModuleFromResolution, + getResolvedModule, /*deferWatchingNonRelativeResolution*/ false ); resolvedLibraries.set(libFileName, resolution); if (existingResolution) { - stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolvedModuleFromResolution); + stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolvedModule); } } else { if (isTraceEnabled(options, host)) { - const resolved = getResolvedModuleFromResolution(resolution); + const resolved = getResolvedModule(resolution); trace( host, (resolved == null ? void 0 : resolved.resolvedFileName) ? resolved.packageId ? Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, @@ -131843,20 +129661,27 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW return endsWith(dirPath, "/node_modules/@types"); } function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution) { - (resolution.files ?? (resolution.files = /* @__PURE__ */ new Set())).add(filePath); - if (resolution.files.size !== 1) return; - if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) { - watchFailedLookupLocationOfResolution(resolution); - } else { - nonRelativeExternalModuleResolutions.add(resolution); - } - const resolved = getResolutionWithResolvedFileName(resolution); - if (resolved && resolved.resolvedFileName) { - const key = resolutionHost.toPath(resolved.resolvedFileName); - let resolutions = resolvedFileToResolution.get(key); - if (!resolutions) resolvedFileToResolution.set(key, resolutions = /* @__PURE__ */ new Set()); - resolutions.add(resolution); + var _a; + if (resolution.refCount) { + resolution.refCount++; + Debug.assertIsDefined(resolution.files); + } else { + resolution.refCount = 1; + Debug.assert(!((_a = resolution.files) == null ? void 0 : _a.size)); + if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) { + watchFailedLookupLocationOfResolution(resolution); + } else { + nonRelativeExternalModuleResolutions.add(name, resolution); + } + const resolved = getResolutionWithResolvedFileName(resolution); + if (resolved && resolved.resolvedFileName) { + const key = resolutionHost.toPath(resolved.resolvedFileName); + let resolutions = resolvedFileToResolution.get(key); + if (!resolutions) resolvedFileToResolution.set(key, resolutions = /* @__PURE__ */ new Set()); + resolutions.add(resolution); + } } + (resolution.files ?? (resolution.files = /* @__PURE__ */ new Set())).add(filePath); } function watchFailedLookupLocation(failedLookupLocation, setAtRoot) { const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); @@ -131866,9 +129691,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW rootDir, rootPath, rootPathComponents, - isRootWatchable, - getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch + getCurrentDirectory ); if (toWatch) { const { dir, dirPath, nonRecursive, packageDir, packageDirPath } = toWatch; @@ -131883,8 +129706,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW return setAtRoot; } function watchFailedLookupLocationOfResolution(resolution) { - var _a; - Debug.assert(!!((_a = resolution.files) == null ? void 0 : _a.size)); + Debug.assert(!!resolution.refCount); const { failedLookupLocations, affectingLocations, alternateResult } = resolution; if (!(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !(affectingLocations == null ? void 0 : affectingLocations.length) && !alternateResult) return; if ((failedLookupLocations == null ? void 0 : failedLookupLocations.length) || alternateResult) resolutionsWithFailedLookups.add(resolution); @@ -131910,8 +129732,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW watchAffectingLocationsOfResolution(resolution, !(failedLookupLocations == null ? void 0 : failedLookupLocations.length) && !alternateResult); } function watchAffectingLocationsOfResolution(resolution, addToResolutionsWithOnlyAffectingLocations) { - var _a; - Debug.assert(!!((_a = resolution.files) == null ? void 0 : _a.size)); + Debug.assert(!!resolution.refCount); const { affectingLocations } = resolution; if (!(affectingLocations == null ? void 0 : affectingLocations.length)) return; if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.add(resolution); @@ -131985,9 +129806,17 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW (_a = watcher == null ? void 0 : watcher.symlinks) == null ? void 0 : _a.forEach((path2) => invalidateAffectingFileWatcher(path2, packageJsonMap)); packageJsonMap == null ? void 0 : packageJsonMap.delete(resolutionHost.toPath(path)); } - function watchFailedLookupLocationOfNonRelativeModuleResolutions() { - nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfResolution); - nonRelativeExternalModuleResolutions.clear(); + function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) { + const program = resolutionHost.getCurrentProgram(); + if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) { + resolutions.forEach(watchFailedLookupLocationOfResolution); + } else { + resolutions.forEach((resolution) => watchAffectingLocationsOfResolution( + resolution, + /*addToResolutionsWithOnlyAffectingLocations*/ + true + )); + } } function createDirectoryWatcherForPackageDir(dir, dirPath, packageDir, packageDirPath, nonRecursive) { Debug.assert(!nonRecursive); @@ -132007,7 +129836,11 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW ); } else if (packageDirWatcher.isSymlink !== isSymlink) { packageDirWatcher.dirPathToWatcher.forEach((watcher) => { - removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath); + removeDirectoryWatcher( + packageDirWatcher.isSymlink ? packageDirPath : dirPath, + /*syncDirWatcherRemove*/ + false + ); watcher.watcher = createDirPathToWatcher(); }); packageDirWatcher.isSymlink = isSymlink; @@ -132047,7 +129880,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW } return dirWatcher; } - function stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot) { + function stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot, syncDirWatcherRemove) { const failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation); const toWatch = getDirectoryToWatchFailedLookupLocation( failedLookupLocation, @@ -132055,9 +129888,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW rootDir, rootPath, rootPathComponents, - isRootWatchable, - getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch + getCurrentDirectory ); if (toWatch) { const { dirPath, packageDirPath } = toWatch; @@ -132068,7 +129899,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW const forDirPath = packageDirWatcher.dirPathToWatcher.get(dirPath); forDirPath.refCount--; if (forDirPath.refCount === 0) { - removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath); + removeDirectoryWatcher(packageDirWatcher.isSymlink ? packageDirPath : dirPath, syncDirWatcherRemove); packageDirWatcher.dirPathToWatcher.delete(dirPath); if (packageDirWatcher.isSymlink) { const refCount = dirPathToSymlinkPackageRefCount.get(dirPath) - 1; @@ -132078,17 +129909,20 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW dirPathToSymlinkPackageRefCount.set(dirPath, refCount); } } + if (syncDirWatcherRemove) closePackageDirWatcher(packageDirWatcher, packageDirPath); } } else { - removeDirectoryWatcher(dirPath); + removeDirectoryWatcher(dirPath, syncDirWatcherRemove); } } return removeAtRoot; } - function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) { + function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName, syncDirWatcherRemove) { Debug.checkDefined(resolution.files).delete(filePath); - if (resolution.files.size) return; - resolution.files = void 0; + resolution.refCount--; + if (resolution.refCount) { + return; + } const resolved = getResolutionWithResolvedFileName(resolution); if (resolved && resolved.resolvedFileName) { const key = resolutionHost.toPath(resolved.resolvedFileName); @@ -132100,11 +129934,11 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW let removeAtRoot = false; if (failedLookupLocations) { for (const failedLookupLocation of failedLookupLocations) { - removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot); + removeAtRoot = stopWatchFailedLookupLocation(failedLookupLocation, removeAtRoot, syncDirWatcherRemove); } } - if (alternateResult) removeAtRoot = stopWatchFailedLookupLocation(alternateResult, removeAtRoot); - if (removeAtRoot) removeDirectoryWatcher(rootPath); + if (alternateResult) removeAtRoot = stopWatchFailedLookupLocation(alternateResult, removeAtRoot, syncDirWatcherRemove); + if (removeAtRoot) removeDirectoryWatcher(rootPath, syncDirWatcherRemove); } else if (affectingLocations == null ? void 0 : affectingLocations.length) { resolutionsWithOnlyAffectingLocations.delete(resolution); } @@ -132112,12 +129946,14 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW for (const affectingLocation of affectingLocations) { const watcher = fileWatchesOfAffectingLocations.get(affectingLocation); watcher.resolutions--; + if (syncDirWatcherRemove) closeFileWatcherOfAffectingLocation(watcher, affectingLocation); } } } - function removeDirectoryWatcher(dirPath) { + function removeDirectoryWatcher(dirPath, syncDirWatcherRemove) { const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath); dirWatcher.refCount--; + if (syncDirWatcherRemove) closeDirectoryWatchesOfFailedLookup(dirWatcher, dirPath); } function createDirectoryWatcher(directory, dirPath, nonRecursive) { return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, (fileOrDirectory) => { @@ -132128,14 +129964,15 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath); }, nonRecursive ? 0 /* None */ : 1 /* Recursive */); } - function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) { + function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName, syncDirWatcherRemove) { const resolutions = cache.get(filePath); if (resolutions) { resolutions.forEach( (resolution) => stopWatchFailedLookupLocationOfResolution( resolution, filePath, - getResolutionWithResolvedFileName + getResolutionWithResolvedFileName, + syncDirWatcherRemove ) ); cache.delete(filePath); @@ -132149,9 +129986,9 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW if (!resolvedProjectReference) return; resolvedProjectReference.commandLine.fileNames.forEach((f) => removeResolutionsOfFile(resolutionHost.toPath(f))); } - function removeResolutionsOfFile(filePath) { - removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModuleFromResolution); - removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirectiveFromResolution); + function removeResolutionsOfFile(filePath, syncDirWatcherRemove) { + removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModule, syncDirWatcherRemove); + removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirective, syncDirWatcherRemove); } function invalidateResolutions(resolutions, canInvalidate) { if (!resolutions) return false; @@ -132199,7 +130036,6 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW return false; } (failedLookupChecks || (failedLookupChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); - (startsWithPathChecks || (startsWithPathChecks = /* @__PURE__ */ new Set())).add(fileOrDirectoryPath); const packagePath = parseNodeModuleFromPath( fileOrDirectoryPath, /*isFolder*/ @@ -132281,9 +130117,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW resolutionHost.toPath(typeRoot), rootPath, rootPathComponents, - isRootWatchable, getCurrentDirectory, - resolutionHost.preferNonRecursiveWatch, (dirPath2) => directoryWatchesOfFailedLookups.has(dirPath2) || dirPathToSymlinkPackageRefCount.has(dirPath2) ); if (dirPath) { @@ -132449,7 +130283,7 @@ function createTabularErrorsDisplay(filesInError, host) { if (distinctFiles.length === 0) return ""; const numberLength = (num) => Math.log(num) * Math.LOG10E + 1; const fileToErrorCount = distinctFiles.map((file) => [file, countWhere(filesInError, (fileInError) => fileInError.fileName === file.fileName)]); - const maxErrors = maxBy(fileToErrorCount, 0, (value) => value[1]); + const maxErrors = fileToErrorCount.reduce((acc, value) => Math.max(acc, value[1] || 0), 0); const headerRow = Diagnostics.Errors_Files.message; const leftColumnHeadingLength = headerRow.split(" ")[0].length; const leftPaddingGoal = Math.max(leftColumnHeadingLength, numberLength(maxErrors)); @@ -132466,13 +130300,13 @@ function createTabularErrorsDisplay(filesInError, host) { }); return tabularData; } -function isBuilderProgram(program) { - return !!program.state; +function isBuilderProgram2(program) { + return !!program.getState; } function listFiles(program, write) { const options = program.getCompilerOptions(); if (options.explainFiles) { - explainFiles(isBuilderProgram(program) ? program.getProgram() : program, write); + explainFiles(isBuilderProgram2(program) ? program.getProgram() : program, write); } else if (options.listFiles || options.listFilesOnly) { forEach(program.getSourceFiles(), (file) => { write(file.fileName); @@ -132486,10 +130320,10 @@ function explainFiles(program, write) { for (const file of program.getSourceFiles()) { write(`${toFileName(file, relativeFileName)}`); (_a = reasons.get(file.path)) == null ? void 0 : _a.forEach((reason) => write(` ${fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText}`)); - (_b = explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file), relativeFileName)) == null ? void 0 : _b.forEach((d) => write(` ${d.messageText}`)); + (_b = explainIfFileIsRedirectAndImpliedFormat(file, relativeFileName)) == null ? void 0 : _b.forEach((d) => write(` ${d.messageText}`)); } } -function explainIfFileIsRedirectAndImpliedFormat(file, options, fileNameConvertor) { +function explainIfFileIsRedirectAndImpliedFormat(file, fileNameConvertor) { var _a; let result; if (file.path !== file.resolvedPath) { @@ -132509,7 +130343,7 @@ function explainIfFileIsRedirectAndImpliedFormat(file, options, fileNameConverto )); } if (isExternalOrCommonJsModule(file)) { - switch (getImpliedNodeFormatForEmitWorker(file, options)) { + switch (file.impliedNodeFormat) { case 99 /* ESNext */: if (file.packageJsonScope) { (result ?? (result = [])).push(chainDiagnosticMessages( @@ -132677,7 +130511,7 @@ function toFileName(file, fileNameConvertor) { return fileNameConvertor ? fileNameConvertor(fileName) : fileName; } function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers) { - const options = program.getCompilerOptions(); + const isListFilesOnly = !!program.getCompilerOptions().listFilesOnly; const allDiagnostics = program.getConfigFileParsingDiagnostics().slice(); const configFileParsingDiagnosticsLength = allDiagnostics.length; addRange(allDiagnostics, program.getSyntacticDiagnostics( @@ -132687,7 +130521,7 @@ function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummar )); if (allDiagnostics.length === configFileParsingDiagnosticsLength) { addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken)); - if (!options.listFilesOnly) { + if (!isListFilesOnly) { addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken)); if (allDiagnostics.length === configFileParsingDiagnosticsLength) { addRange(allDiagnostics, program.getSemanticDiagnostics( @@ -132696,16 +130530,9 @@ function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummar cancellationToken )); } - if (options.noEmit && getEmitDeclarations(options) && allDiagnostics.length === configFileParsingDiagnosticsLength) { - addRange(allDiagnostics, program.getDeclarationDiagnostics( - /*sourceFile*/ - void 0, - cancellationToken - )); - } } } - const emitResult = options.listFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program.emit( + const emitResult = isListFilesOnly ? { emitSkipped: true, diagnostics: emptyArray } : program.emit( /*targetSourceFile*/ void 0, writeFile2, @@ -132713,12 +130540,13 @@ function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummar emitOnlyDtsFiles, customTransformers ); - addRange(allDiagnostics, emitResult.diagnostics); + const { emittedFiles, diagnostics: emitDiagnostics } = emitResult; + addRange(allDiagnostics, emitDiagnostics); const diagnostics = sortAndDeduplicateDiagnostics(allDiagnostics); diagnostics.forEach(reportDiagnostic); if (write) { const currentDir = program.getCurrentDirectory(); - forEach(emitResult.emittedFiles, (file) => { + forEach(emittedFiles, (file) => { const filepath = getNormalizedAbsolutePath(file, currentDir); write(`TSFILE: ${filepath}`); }); @@ -132759,8 +130587,7 @@ function createWatchHost(system = sys, reportWatchStatus2) { watchFile: maybeBind(system, system.watchFile) || returnNoopFileWatcher, watchDirectory: maybeBind(system, system.watchDirectory) || returnNoopFileWatcher, setTimeout: maybeBind(system, system.setTimeout) || noop, - clearTimeout: maybeBind(system, system.clearTimeout) || noop, - preferNonRecursiveWatch: system.preferNonRecursiveWatch + clearTimeout: maybeBind(system, system.clearTimeout) || noop }; } var WatchType = { @@ -132837,7 +130664,6 @@ function getSourceFileVersionAsHashFromText(host, text) { if (pos && text.charCodeAt(pos - 1) === 13 /* carriageReturn */) { pos--; } - // falls through case 13 /* carriageReturn */: break; default: @@ -132980,8 +130806,8 @@ function readBuilderProgram(compilerOptions, host) { if (!content) return void 0; buildInfo = getBuildInfo(buildInfoPath, content); } - if (!buildInfo || buildInfo.version !== version || !isIncrementalBuildInfo(buildInfo)) return void 0; - return createBuilderProgramUsingIncrementalBuildInfo(buildInfo, buildInfoPath, host); + if (!buildInfo || buildInfo.version !== version || !buildInfo.program) return void 0; + return createBuilderProgramUsingProgramBuildInfo(buildInfo, buildInfoPath, host); } function createIncrementalCompilerHost(options, system = sys) { const host = createCompilerHostWorker( @@ -133039,7 +130865,6 @@ function createWatchProgram(host) { let updateLevel; let missingFilesMap; let watchedWildcardDirectories; - let staleWatches = /* @__PURE__ */ new Map([[void 0, void 0]]); let timerToUpdateProgram; let timerToInvalidateFailedLookupResolutions; let parsedConfigs; @@ -133093,7 +130918,6 @@ function createWatchProgram(host) { compilerHost.toPath = toPath3; compilerHost.getCompilationSettings = () => compilerOptions; compilerHost.useSourceOfProjectReferenceRedirect = maybeBind(host, host.useSourceOfProjectReferenceRedirect); - compilerHost.preferNonRecursiveWatch = host.preferNonRecursiveWatch; compilerHost.watchDirectoryOfFailedLookupLocation = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.FailedLookupLocations); compilerHost.watchAffectingFileLocation = (file, cb) => watchFile2(file, cb, 2e3 /* High */, watchOptions, WatchType.AffectingFileLocation); compilerHost.watchTypeRootsDirectory = (dir, cb, flags) => watchDirectory(dir, cb, flags, watchOptions, WatchType.TypeRoots); @@ -133128,6 +130952,8 @@ function createWatchProgram(host) { const customHasInvalidLibResolutions = host.resolveLibrary ? maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : returnFalse; builderProgram = readBuilderProgram(compilerOptions, compilerHost); synchronizeProgram(); + watchConfigFileWildCardDirectories(); + if (configFileName) updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); return configFileName ? { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, close, getResolutionCache } : { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, updateRootFileNames, close, getResolutionCache }; function close() { clearInvalidateResolutionsOfFailedLookupLocations(); @@ -133230,16 +131056,6 @@ function createWatchProgram(host) { compilerHost.directoryExists = originalDirectoryExists; compilerHost.createDirectory = originalCreateDirectory; compilerHost.writeFile = originalWriteFile; - staleWatches == null ? void 0 : staleWatches.forEach((configFile, configPath) => { - if (!configPath) { - watchConfigFileWildCardDirectories(); - if (configFileName) updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); - } else { - const config = parsedConfigs == null ? void 0 : parsedConfigs.get(configPath); - if (config) watchReferencedProject(configFile, configPath, config); - } - }); - staleWatches = void 0; return builderProgram; } function createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions) { @@ -133413,17 +131229,22 @@ function createWatchProgram(host) { updateProgram(); } function updateProgram() { + var _a, _b, _c, _d; switch (updateLevel) { case 1 /* RootNamesAndUpdate */: + (_a = perfLogger) == null ? void 0 : _a.logStartUpdateProgram("PartialConfigReload"); reloadFileNamesFromConfigFile(); break; case 2 /* Full */: + (_b = perfLogger) == null ? void 0 : _b.logStartUpdateProgram("FullConfigReload"); reloadConfigFile(); break; default: + (_c = perfLogger) == null ? void 0 : _c.logStartUpdateProgram("SynchronizeProgram"); synchronizeProgram(); break; } + (_d = perfLogger) == null ? void 0 : _d.logStopUpdateProgram("Done"); return getCurrentBuilderProgram(); } function reloadFileNamesFromConfigFile() { @@ -133432,13 +131253,7 @@ function createWatchProgram(host) { Debug.assert(configFileName); updateLevel = 0 /* Update */; rootFileNames = getFileNamesFromConfigSpecs(compilerOptions.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions); - if (updateErrorForNoInputFiles( - rootFileNames, - getNormalizedAbsolutePath(configFileName, currentDirectory), - compilerOptions.configFile.configFileSpecs, - configFileParsingDiagnostics, - canConfigFileJsonReportNoInputFiles - )) { + if (updateErrorForNoInputFiles(rootFileNames, getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile.configFileSpecs, configFileParsingDiagnostics, canConfigFileJsonReportNoInputFiles)) { hasChangedConfigFileParsingErrors = true; } synchronizeProgram(); @@ -133452,8 +131267,9 @@ function createWatchProgram(host) { } parseConfigFile2(); hasChangedCompilerOptions = true; - (staleWatches ?? (staleWatches = /* @__PURE__ */ new Map())).set(void 0, void 0); synchronizeProgram(); + watchConfigFileWildCardDirectories(); + updateExtendedConfigFilesWatches(toPath3(configFileName), compilerOptions, watchOptions, WatchType.ExtendedConfigFile); } function parseConfigFile2() { Debug.assert(configFileName); @@ -133505,7 +131321,7 @@ function createWatchProgram(host) { } else { (parsedConfigs || (parsedConfigs = /* @__PURE__ */ new Map())).set(configPath, config = { parsedCommandLine }); } - (staleWatches ?? (staleWatches = /* @__PURE__ */ new Map())).set(configPath, configFileName2); + watchReferencedProject(configFileName2, configPath, config); return parsedCommandLine; } function getParsedCommandLineFromConfigFileHost(configFileName2) { @@ -133710,17 +131526,16 @@ var UpToDateStatusType = /* @__PURE__ */ ((UpToDateStatusType2) => { UpToDateStatusType2[UpToDateStatusType2["ErrorReadingFile"] = 4] = "ErrorReadingFile"; UpToDateStatusType2[UpToDateStatusType2["OutOfDateWithSelf"] = 5] = "OutOfDateWithSelf"; UpToDateStatusType2[UpToDateStatusType2["OutOfDateWithUpstream"] = 6] = "OutOfDateWithUpstream"; - UpToDateStatusType2[UpToDateStatusType2["OutOfDateBuildInfoWithPendingEmit"] = 7] = "OutOfDateBuildInfoWithPendingEmit"; - UpToDateStatusType2[UpToDateStatusType2["OutOfDateBuildInfoWithErrors"] = 8] = "OutOfDateBuildInfoWithErrors"; - UpToDateStatusType2[UpToDateStatusType2["OutOfDateOptions"] = 9] = "OutOfDateOptions"; - UpToDateStatusType2[UpToDateStatusType2["OutOfDateRoots"] = 10] = "OutOfDateRoots"; - UpToDateStatusType2[UpToDateStatusType2["UpstreamOutOfDate"] = 11] = "UpstreamOutOfDate"; - UpToDateStatusType2[UpToDateStatusType2["UpstreamBlocked"] = 12] = "UpstreamBlocked"; - UpToDateStatusType2[UpToDateStatusType2["ComputingUpstream"] = 13] = "ComputingUpstream"; - UpToDateStatusType2[UpToDateStatusType2["TsVersionOutputOfDate"] = 14] = "TsVersionOutputOfDate"; - UpToDateStatusType2[UpToDateStatusType2["UpToDateWithInputFileText"] = 15] = "UpToDateWithInputFileText"; - UpToDateStatusType2[UpToDateStatusType2["ContainerOnly"] = 16] = "ContainerOnly"; - UpToDateStatusType2[UpToDateStatusType2["ForceBuild"] = 17] = "ForceBuild"; + UpToDateStatusType2[UpToDateStatusType2["OutOfDateBuildInfo"] = 7] = "OutOfDateBuildInfo"; + UpToDateStatusType2[UpToDateStatusType2["OutOfDateOptions"] = 8] = "OutOfDateOptions"; + UpToDateStatusType2[UpToDateStatusType2["OutOfDateRoots"] = 9] = "OutOfDateRoots"; + UpToDateStatusType2[UpToDateStatusType2["UpstreamOutOfDate"] = 10] = "UpstreamOutOfDate"; + UpToDateStatusType2[UpToDateStatusType2["UpstreamBlocked"] = 11] = "UpstreamBlocked"; + UpToDateStatusType2[UpToDateStatusType2["ComputingUpstream"] = 12] = "ComputingUpstream"; + UpToDateStatusType2[UpToDateStatusType2["TsVersionOutputOfDate"] = 13] = "TsVersionOutputOfDate"; + UpToDateStatusType2[UpToDateStatusType2["UpToDateWithInputFileText"] = 14] = "UpToDateWithInputFileText"; + UpToDateStatusType2[UpToDateStatusType2["ContainerOnly"] = 15] = "ContainerOnly"; + UpToDateStatusType2[UpToDateStatusType2["ForceBuild"] = 16] = "ForceBuild"; return UpToDateStatusType2; })(UpToDateStatusType || {}); function resolveConfigFileProjectName(project) { @@ -133732,6 +131547,7 @@ function resolveConfigFileProjectName(project) { // src/compiler/tsbuildPublic.ts var minimumDate = /* @__PURE__ */ new Date(-864e13); +var maximumDate = /* @__PURE__ */ new Date(864e13); function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) { const existingValue = configFileMap.get(resolved); let newValue; @@ -133786,7 +131602,6 @@ function getCompilerOptionsOfBuildOptions(buildOptions) { commonOptionsWithBuild.forEach((option) => { if (hasProperty(buildOptions, option.name)) result[option.name] = buildOptions[option.name]; }); - result.tscBuild = true; return result; } function createSolutionBuilder(host, rootNames, defaultOptions) { @@ -134190,7 +132005,7 @@ function createUpdateOutputFileStampsProject(state, project, projectPath, config } }; } -function createBuildOrUpdateInvalidedProject(state, project, projectPath, projectIndex, config, status, buildOrder) { +function createBuildOrUpdateInvalidedProject(state, project, projectPath, projectIndex, config, buildOrder) { let step = 0 /* CreateProgram */; let program; let buildResult; @@ -134241,13 +132056,17 @@ function createBuildOrUpdateInvalidedProject(state, project, projectPath, projec } ); } - executeSteps(0 /* CreateProgram */, cancellationToken); + executeSteps(2 /* SemanticDiagnostics */, cancellationToken); + if (step === 4 /* EmitBuildInfo */) { + return emitBuildInfo(writeFile2, cancellationToken); + } + if (step !== 3 /* Emit */) return void 0; return emit(writeFile2, cancellationToken, customTransformers); }, done }; function done(cancellationToken, writeFile2, customTransformers) { - executeSteps(3 /* Done */, cancellationToken, writeFile2, customTransformers); + executeSteps(6 /* Done */, cancellationToken, writeFile2, customTransformers); mark("SolutionBuilder::Projects built"); return doneInvalidatedProject(state, projectPath); } @@ -134264,14 +132083,14 @@ function createBuildOrUpdateInvalidedProject(state, project, projectPath, projec if (state.options.dry) { reportStatus(state, Diagnostics.A_non_dry_build_would_build_project_0, project); buildResult = 1 /* Success */; - step = 2 /* QueueReferencingProjects */; + step = 5 /* QueueReferencingProjects */; return; } if (state.options.verbose) reportStatus(state, Diagnostics.Building_project_0, project); if (config.fileNames.length === 0) { reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); buildResult = 0 /* None */; - step = 2 /* QueueReferencingProjects */; + step = 5 /* QueueReferencingProjects */; return; } const { host, compilerHost } = state; @@ -134299,98 +132118,185 @@ function createBuildOrUpdateInvalidedProject(state, project, projectPath, projec } step++; } + function handleDiagnostics(diagnostics, errorFlags, errorType) { + if (diagnostics.length) { + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + diagnostics, + errorFlags, + errorType + )); + } else { + step++; + } + } + function getSyntaxDiagnostics(cancellationToken) { + Debug.assertIsDefined(program); + handleDiagnostics( + [ + ...program.getConfigFileParsingDiagnostics(), + ...program.getOptionsDiagnostics(cancellationToken), + ...program.getGlobalDiagnostics(cancellationToken), + ...program.getSyntacticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ) + ], + 8 /* SyntaxErrors */, + "Syntactic" + ); + } + function getSemanticDiagnostics(cancellationToken) { + handleDiagnostics( + Debug.checkDefined(program).getSemanticDiagnostics( + /*sourceFile*/ + void 0, + cancellationToken + ), + 16 /* TypeErrors */, + "Semantic" + ); + } function emit(writeFileCallback, cancellationToken, customTransformers) { var _a, _b, _c; Debug.assertIsDefined(program); - Debug.assert(step === 1 /* Emit */); - const { host, compilerHost } = state; - const emittedOutputs = /* @__PURE__ */ new Map(); - const options = program.getCompilerOptions(); - const isIncremental = isIncrementalCompilation(options); - let outputTimeStampMap; - let now; - const { emitResult, diagnostics } = emitFilesAndReportErrors( + Debug.assert(step === 3 /* Emit */); + const saved = program.saveEmitState(); + let declDiagnostics; + const reportDeclarationDiagnostics = (d) => (declDiagnostics || (declDiagnostics = [])).push(d); + const outputFiles = []; + const { emitResult } = emitFilesAndReportErrors( program, - (d) => host.reportDiagnostic(d), - state.write, + reportDeclarationDiagnostics, + /*write*/ + void 0, /*reportSummary*/ void 0, - (name, text, writeByteOrderMark, onError, sourceFiles, data) => { - var _a2; - const path = toPath2(state, name); - emittedOutputs.set(toPath2(state, name), name); - if (data == null ? void 0 : data.buildInfo) { - now || (now = getCurrentTime(state.host)); - const isChangedSignature2 = (_a2 = program.hasChangedEmitSignature) == null ? void 0 : _a2.call(program); - const existing = getBuildInfoCacheEntry(state, name, projectPath); - if (existing) { - existing.buildInfo = data.buildInfo; - existing.modifiedTime = now; - if (isChangedSignature2) existing.latestChangedDtsTime = now; - } else { - state.buildInfoCache.set(projectPath, { - path: toPath2(state, name), - buildInfo: data.buildInfo, - modifiedTime: now, - latestChangedDtsTime: isChangedSignature2 ? now : void 0 - }); - } - } - const modifiedTime = (data == null ? void 0 : data.differsOnlyInMap) ? getModifiedTime(state.host, name) : void 0; - (writeFileCallback || compilerHost.writeFile)( - name, - text, - writeByteOrderMark, - onError, - sourceFiles, - data - ); - if (data == null ? void 0 : data.differsOnlyInMap) state.host.setModifiedTime(name, modifiedTime); - else if (!isIncremental && state.watch) { - (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path, now || (now = getCurrentTime(state.host))); - } - }, + (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => outputFiles.push({ name, text, writeByteOrderMark, data }), cancellationToken, /*emitOnlyDtsFiles*/ - void 0, + false, customTransformers || ((_b = (_a = state.host).getCustomTransformers) == null ? void 0 : _b.call(_a, project)) ); - if ((!options.noEmitOnError || !diagnostics.length) && (emittedOutputs.size || status.type !== 8 /* OutOfDateBuildInfoWithErrors */)) { - updateOutputTimestampsWorker(state, config, projectPath, Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs); + if (declDiagnostics) { + program.restoreEmitState(saved); + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + declDiagnostics, + 32 /* DeclarationEmitErrors */, + "Declaration file" + )); + return { + emitSkipped: true, + diagnostics: emitResult.diagnostics + }; } - state.projectErrorsReported.set(projectPath, true); - buildResult = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */; - if (!diagnostics.length) { - state.diagnostics.delete(projectPath); - state.projectStatus.set(projectPath, { - type: 1 /* UpToDate */, - oldestOutputFileName: firstOrUndefinedIterator(emittedOutputs.values()) ?? getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()) - }); - } else { - state.diagnostics.set(projectPath, diagnostics); - state.projectStatus.set(projectPath, { type: 0 /* Unbuildable */, reason: `it had errors` }); - buildResult |= 4 /* AnyErrors */; + const { host, compilerHost } = state; + const resultFlags = ((_c = program.hasChangedEmitSignature) == null ? void 0 : _c.call(program)) ? 0 /* None */ : 2 /* DeclarationOutputUnchanged */; + const emitterDiagnostics = createDiagnosticCollection(); + const emittedOutputs = /* @__PURE__ */ new Map(); + const options = program.getCompilerOptions(); + const isIncremental = isIncrementalCompilation(options); + let outputTimeStampMap; + let now; + outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => { + const path = toPath2(state, name); + emittedOutputs.set(toPath2(state, name), name); + if (data == null ? void 0 : data.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, options, resultFlags); + const modifiedTime = (data == null ? void 0 : data.differsOnlyInMap) ? getModifiedTime(state.host, name) : void 0; + writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); + if (data == null ? void 0 : data.differsOnlyInMap) state.host.setModifiedTime(name, modifiedTime); + else if (!isIncremental && state.watch) { + (outputTimeStampMap || (outputTimeStampMap = getOutputTimeStampMap(state, projectPath))).set(path, now || (now = getCurrentTime(state.host))); + } + }); + finishEmit( + emitterDiagnostics, + emittedOutputs, + outputFiles.length ? outputFiles[0].name : getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()), + resultFlags + ); + return emitResult; + } + function emitBuildInfo(writeFileCallback, cancellationToken) { + Debug.assertIsDefined(program); + Debug.assert(step === 4 /* EmitBuildInfo */); + const emitResult = program.emitBuildInfo((name, text, writeByteOrderMark, onError, sourceFiles, data) => { + if (data == null ? void 0 : data.buildInfo) setBuildInfo(state, data.buildInfo, projectPath, program.getCompilerOptions(), 2 /* DeclarationOutputUnchanged */); + if (writeFileCallback) writeFileCallback(name, text, writeByteOrderMark, onError, sourceFiles, data); + else state.compilerHost.writeFile(name, text, writeByteOrderMark, onError, sourceFiles, data); + }, cancellationToken); + if (emitResult.diagnostics.length) { + reportErrors(state, emitResult.diagnostics); + state.diagnostics.set(projectPath, [...state.diagnostics.get(projectPath), ...emitResult.diagnostics]); + buildResult = 64 /* EmitErrors */ & buildResult; + } + if (emitResult.emittedFiles && state.write) { + emitResult.emittedFiles.forEach((name) => listEmittedFile(state, config, name)); } afterProgramDone(state, program); - step = 2 /* QueueReferencingProjects */; + step = 5 /* QueueReferencingProjects */; return emitResult; } + function finishEmit(emitterDiagnostics, emittedOutputs, oldestOutputFileName, resultFlags) { + const emitDiagnostics = emitterDiagnostics.getDiagnostics(); + if (emitDiagnostics.length) { + ({ buildResult, step } = buildErrors( + state, + projectPath, + program, + config, + emitDiagnostics, + 64 /* EmitErrors */, + "Emit" + )); + return emitDiagnostics; + } + if (state.write) { + emittedOutputs.forEach((name) => listEmittedFile(state, config, name)); + } + updateOutputTimestampsWorker(state, config, projectPath, Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs); + state.diagnostics.delete(projectPath); + state.projectStatus.set(projectPath, { + type: 1 /* UpToDate */, + oldestOutputFileName + }); + afterProgramDone(state, program); + step = 5 /* QueueReferencingProjects */; + buildResult = resultFlags; + return emitDiagnostics; + } function executeSteps(till, cancellationToken, writeFile2, customTransformers) { - while (step <= till && step < 3 /* Done */) { + while (step <= till && step < 6 /* Done */) { const currentStep = step; switch (step) { case 0 /* CreateProgram */: createProgram2(); break; - case 1 /* Emit */: + case 1 /* SyntaxDiagnostics */: + getSyntaxDiagnostics(cancellationToken); + break; + case 2 /* SemanticDiagnostics */: + getSemanticDiagnostics(cancellationToken); + break; + case 3 /* Emit */: emit(writeFile2, cancellationToken, customTransformers); break; - case 2 /* QueueReferencingProjects */: + case 4 /* EmitBuildInfo */: + emitBuildInfo(writeFile2, cancellationToken); + break; + case 5 /* QueueReferencingProjects */: queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult)); step++; break; - // Should never be done - case 3 /* Done */: + case 6 /* Done */: default: assertType(step); } @@ -134425,13 +132331,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { watchPackageJsonFiles(state, project, projectPath, config); } else if (updateLevel === 1 /* RootNamesAndUpdate */) { config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile.configFileSpecs, getDirectoryPath(project), config.options, state.parseConfigFileHost); - updateErrorForNoInputFiles( - config.fileNames, - project, - config.options.configFile.configFileSpecs, - config.errors, - canJsonReportNoInputFiles(config.raw) - ); + updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile.configFileSpecs, config.errors, canJsonReportNoInputFiles(config.raw)); watchInputFiles(state, project, projectPath, config); watchPackageJsonFiles(state, project, projectPath, config); } @@ -134446,7 +132346,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { } continue; } - if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 15 /* UpToDateWithInputFileText */) { + if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 14 /* UpToDateWithInputFileText */) { reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); return { kind: 1 /* UpdateOutputFileStamps */, @@ -134458,7 +132358,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { }; } } - if (status.type === 12 /* UpstreamBlocked */) { + if (status.type === 11 /* UpstreamBlocked */) { verboseReportProjectStatus(state, project, status); reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); projectPendingBuild.delete(projectPath); @@ -134472,7 +132372,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) { } continue; } - if (status.type === 16 /* ContainerOnly */) { + if (status.type === 15 /* ContainerOnly */) { verboseReportProjectStatus(state, project, status); reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config)); projectPendingBuild.delete(projectPath); @@ -134497,7 +132397,6 @@ function createInvalidatedProjectWithInfo(state, info, buildOrder) { info.projectPath, info.projectIndex, info.config, - info.status, buildOrder ) : createUpdateOutputFileStampsProject( state, @@ -134512,6 +132411,11 @@ function getNextInvalidatedProject(state, buildOrder, reportQueue) { if (!info) return info; return createInvalidatedProjectWithInfo(state, info, buildOrder); } +function listEmittedFile({ write }, proj, file) { + if (write && proj.options.listEmittedFiles) { + write(`TSFILE: ${file}`); + } +} function getOldProgram({ options, builderPrograms, compilerHost }, proj, parsed) { if (options.force) return void 0; const value = builderPrograms.get(proj); @@ -134520,6 +132424,7 @@ function getOldProgram({ options, builderPrograms, compilerHost }, proj, parsed) } function afterProgramDone(state, program) { if (program) { + if (state.write) listFiles(program, state.write); if (state.host.afterProgramEmitAndDiagnostics) { state.host.afterProgramEmitAndDiagnostics(program); } @@ -134527,6 +132432,14 @@ function afterProgramDone(state, program) { } state.projectCompilerOptions = state.baseCompilerOptions; } +function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) { + const canEmitBuildInfo = program && !program.getCompilerOptions().outFile; + reportAndStoreErrors(state, resolvedPath, diagnostics); + state.projectStatus.set(resolvedPath, { type: 0 /* Unbuildable */, reason: `${errorType} errors` }); + if (canEmitBuildInfo) return { buildResult, step: 4 /* EmitBuildInfo */ }; + afterProgramDone(state, program); + return { buildResult, step: 5 /* QueueReferencingProjects */ }; +} function isFileWatcherWithModifiedTime(value) { return !!value.watcher; } @@ -134584,6 +132497,23 @@ function getOutputTimeStampMap(state, resolvedConfigFilePath) { if (!result) state.outputTimeStamps.set(resolvedConfigFilePath, result = /* @__PURE__ */ new Map()); return result; } +function setBuildInfo(state, buildInfo, resolvedConfigPath, options, resultFlags) { + const buildInfoPath = getTsBuildInfoEmitOutputFilePath(options); + const existing = getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath); + const modifiedTime = getCurrentTime(state.host); + if (existing) { + existing.buildInfo = buildInfo; + existing.modifiedTime = modifiedTime; + if (!(resultFlags & 2 /* DeclarationOutputUnchanged */)) existing.latestChangedDtsTime = modifiedTime; + } else { + state.buildInfoCache.set(resolvedConfigPath, { + path: toPath2(state, buildInfoPath), + buildInfo, + modifiedTime, + latestChangedDtsTime: resultFlags & 2 /* DeclarationOutputUnchanged */ ? void 0 : modifiedTime + }); + } +} function getBuildInfoCacheEntry(state, buildInfoPath, resolvedConfigPath) { const path = toPath2(state, buildInfoPath); const existing = state.buildInfoCache.get(resolvedConfigPath); @@ -134611,103 +132541,99 @@ function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, } } function getUpToDateStatusWorker(state, project, resolvedPath) { - var _a, _b, _c, _d, _e; - if (isSolutionConfig(project)) return { type: 16 /* ContainerOnly */ }; + var _a, _b, _c, _d; + if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) { + return { + type: 15 /* ContainerOnly */ + }; + } let referenceStatuses; const force = !!state.options.force; if (project.projectReferences) { - state.projectStatus.set(resolvedPath, { type: 13 /* ComputingUpstream */ }); + state.projectStatus.set(resolvedPath, { type: 12 /* ComputingUpstream */ }); for (const ref of project.projectReferences) { const resolvedRef = resolveProjectReferencePath(ref); const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef); const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath); const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath); - if (refStatus.type === 13 /* ComputingUpstream */ || refStatus.type === 16 /* ContainerOnly */) { + if (refStatus.type === 12 /* ComputingUpstream */ || refStatus.type === 15 /* ContainerOnly */) { continue; } - if (state.options.stopBuildOnErrors && (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 12 /* UpstreamBlocked */)) { + if (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 11 /* UpstreamBlocked */) { return { - type: 12 /* UpstreamBlocked */, + type: 11 /* UpstreamBlocked */, upstreamProjectName: ref.path, - upstreamProjectBlocked: refStatus.type === 12 /* UpstreamBlocked */ + upstreamProjectBlocked: refStatus.type === 11 /* UpstreamBlocked */ + }; + } + if (refStatus.type !== 1 /* UpToDate */) { + return { + type: 10 /* UpstreamOutOfDate */, + upstreamProjectName: ref.path }; } if (!force) (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig }); } } - if (force) return { type: 17 /* ForceBuild */ }; + if (force) return { type: 16 /* ForceBuild */ }; const { host } = state; const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options); - const isIncremental = isIncrementalCompilation(project.options); - let buildInfoCacheEntry = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath); - const buildInfoTime = (buildInfoCacheEntry == null ? void 0 : buildInfoCacheEntry.modifiedTime) || getModifiedTime(host, buildInfoPath); - if (buildInfoTime === missingFileModifiedTime) { - if (!buildInfoCacheEntry) { - state.buildInfoCache.set(resolvedPath, { - path: toPath2(state, buildInfoPath), - buildInfo: false, - modifiedTime: buildInfoTime - }); - } - return { - type: 3 /* OutputMissing */, - missingOutputFileName: buildInfoPath - }; - } - const buildInfo = getBuildInfo3(state, buildInfoPath, resolvedPath, buildInfoTime); - if (!buildInfo) { - return { - type: 4 /* ErrorReadingFile */, - fileName: buildInfoPath - }; - } - const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0; - if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version) { - return { - type: 14 /* TsVersionOutputOfDate */, - version: buildInfo.version - }; - } - if (!project.options.noCheck && (buildInfo.errors || // TODO: syntax errors???? - buildInfo.checkPending)) { - return { - type: 8 /* OutOfDateBuildInfoWithErrors */, - buildInfoFile: buildInfoPath - }; - } - if (incrementalBuildInfo) { - if (!project.options.noCheck && (((_a = incrementalBuildInfo.changeFileSet) == null ? void 0 : _a.length) || ((_b = incrementalBuildInfo.semanticDiagnosticsPerFile) == null ? void 0 : _b.length) || getEmitDeclarations(project.options) && ((_c = incrementalBuildInfo.emitDiagnosticsPerFile) == null ? void 0 : _c.length))) { + let oldestOutputFileName; + let oldestOutputFileTime = maximumDate; + let buildInfoTime; + let buildInfoProgram; + let buildInfoVersionMap; + if (buildInfoPath) { + const buildInfoCacheEntry2 = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath); + buildInfoTime = (buildInfoCacheEntry2 == null ? void 0 : buildInfoCacheEntry2.modifiedTime) || getModifiedTime(host, buildInfoPath); + if (buildInfoTime === missingFileModifiedTime) { + if (!buildInfoCacheEntry2) { + state.buildInfoCache.set(resolvedPath, { + path: toPath2(state, buildInfoPath), + buildInfo: false, + modifiedTime: buildInfoTime + }); + } return { - type: 8 /* OutOfDateBuildInfoWithErrors */, - buildInfoFile: buildInfoPath + type: 3 /* OutputMissing */, + missingOutputFileName: buildInfoPath }; } - if (!project.options.noEmit && (((_d = incrementalBuildInfo.changeFileSet) == null ? void 0 : _d.length) || ((_e = incrementalBuildInfo.affectedFilesPendingEmit) == null ? void 0 : _e.length) || incrementalBuildInfo.pendingEmit !== void 0)) { + const buildInfo = getBuildInfo3(state, buildInfoPath, resolvedPath, buildInfoTime); + if (!buildInfo) { return { - type: 7 /* OutOfDateBuildInfoWithPendingEmit */, - buildInfoFile: buildInfoPath + type: 4 /* ErrorReadingFile */, + fileName: buildInfoPath }; } - if ((!project.options.noEmit || project.options.noEmit && getEmitDeclarations(project.options)) && getPendingEmitKindWithSeen( - project.options, - incrementalBuildInfo.options || {}, - /*emitOnlyDtsFiles*/ - void 0, - !!project.options.noEmit - )) { + if (buildInfo.program && buildInfo.version !== version) { return { - type: 9 /* OutOfDateOptions */, - buildInfoFile: buildInfoPath + type: 13 /* TsVersionOutputOfDate */, + version: buildInfo.version }; } + if (buildInfo.program) { + if (((_a = buildInfo.program.changeFileSet) == null ? void 0 : _a.length) || (!project.options.noEmit ? ((_b = buildInfo.program.affectedFilesPendingEmit) == null ? void 0 : _b.length) || ((_c = buildInfo.program.emitDiagnosticsPerFile) == null ? void 0 : _c.length) : (_d = buildInfo.program.semanticDiagnosticsPerFile) == null ? void 0 : _d.length)) { + return { + type: 7 /* OutOfDateBuildInfo */, + buildInfoFile: buildInfoPath + }; + } + if (!project.options.noEmit && getPendingEmitKind(project.options, buildInfo.program.options || {})) { + return { + type: 8 /* OutOfDateOptions */, + buildInfoFile: buildInfoPath + }; + } + buildInfoProgram = buildInfo.program; + } + oldestOutputFileTime = buildInfoTime; + oldestOutputFileName = buildInfoPath; } - let oldestOutputFileTime = buildInfoTime; - let oldestOutputFileName = buildInfoPath; let newestInputFileName = void 0; let newestInputFileTime = minimumDate; let pseudoInputUpToDate = false; const seenRoots = /* @__PURE__ */ new Set(); - let buildInfoVersionMap; for (const inputFile of project.fileNames) { const inputTime = getModifiedTime2(state, inputFile); if (inputTime === missingFileModifiedTime) { @@ -134716,12 +132642,12 @@ function getUpToDateStatusWorker(state, project, resolvedPath) { reason: `${inputFile} does not exist` }; } - const inputPath = toPath2(state, inputFile); - if (buildInfoTime < inputTime) { + const inputPath = buildInfoProgram ? toPath2(state, inputFile) : void 0; + if (buildInfoTime && buildInfoTime < inputTime) { let version2; let currentVersion; - if (incrementalBuildInfo) { - if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(incrementalBuildInfo, buildInfoPath, host); + if (buildInfoProgram) { + if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host); const resolvedInputPath = buildInfoVersionMap.roots.get(inputPath); version2 = buildInfoVersionMap.fileInfos.get(resolvedInputPath ?? inputPath); const text = version2 ? state.readFileWithCache(resolvedInputPath ?? inputFile) : void 0; @@ -134740,34 +132666,27 @@ function getUpToDateStatusWorker(state, project, resolvedPath) { newestInputFileName = inputFile; newestInputFileTime = inputTime; } - seenRoots.add(inputPath); + if (buildInfoProgram) seenRoots.add(inputPath); } - let existingRoot; - if (incrementalBuildInfo) { - if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(incrementalBuildInfo, buildInfoPath, host); - existingRoot = forEachEntry( + if (buildInfoProgram) { + if (!buildInfoVersionMap) buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host); + const existingRoot = forEachEntry( buildInfoVersionMap.roots, // File was root file when project was built but its not any more (_resolved, existingRoot2) => !seenRoots.has(existingRoot2) ? existingRoot2 : void 0 ); - } else { - existingRoot = forEach( - getNonIncrementalBuildInfoRoots(buildInfo, buildInfoPath, host), - (root) => !seenRoots.has(root) ? root : void 0 - ); - } - if (existingRoot) { - return { - type: 10 /* OutOfDateRoots */, - buildInfoFile: buildInfoPath, - inputFile: existingRoot - }; + if (existingRoot) { + return { + type: 9 /* OutOfDateRoots */, + buildInfoFile: buildInfoPath, + inputFile: existingRoot + }; + } } - if (!isIncremental) { + if (!buildInfoPath) { const outputs = getAllProjectOutputs(project, !host.useCaseSensitiveFileNames()); const outputTimeStampMap = getOutputTimeStampMap(state, resolvedPath); for (const output of outputs) { - if (output === buildInfoPath) continue; const path = toPath2(state, output); let outputTime = outputTimeStampMap == null ? void 0 : outputTimeStampMap.get(path); if (!outputTime) { @@ -134793,13 +132712,14 @@ function getUpToDateStatusWorker(state, project, resolvedPath) { } } } + const buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath); let pseudoUpToDate = false; if (referenceStatuses) { for (const { ref, refStatus, resolvedConfig, resolvedRefPath } of referenceStatuses) { if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) { continue; } - if (hasSameBuildInfo(state, buildInfoCacheEntry ?? (buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath)), resolvedRefPath)) { + if (buildInfoCacheEntry && hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath)) { return { type: 6 /* OutOfDateWithUpstream */, outOfDateOutputFileName: buildInfoPath, @@ -134830,7 +132750,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) { ); if (dependentPackageFileStatus) return dependentPackageFileStatus; return { - type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 15 /* UpToDateWithInputFileText */ : 1 /* UpToDate */, + type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 14 /* UpToDateWithInputFileText */ : 1 /* UpToDate */, newestInputFileTime, newestInputFileName, oldestOutputFileName @@ -134842,7 +132762,7 @@ function hasSameBuildInfo(state, buildInfoCacheEntry, resolvedRefPath) { } function getUpToDateStatus(state, project, resolvedPath) { if (project === void 0) { - return { type: 0 /* Unbuildable */, reason: "config file deleted mid-build" }; + return { type: 0 /* Unbuildable */, reason: "File deleted mid-build" }; } const prior = state.projectStatus.get(resolvedPath); if (prior !== void 0) { @@ -134859,8 +132779,7 @@ function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage, if (proj.options.noEmit) return; let now; const buildInfoPath = getTsBuildInfoEmitOutputFilePath(proj.options); - const isIncremental = isIncrementalCompilation(proj.options); - if (buildInfoPath && isIncremental) { + if (buildInfoPath) { if (!(skipOutputs == null ? void 0 : skipOutputs.has(toPath2(state, buildInfoPath)))) { if (!!state.options.verbose) reportStatus(state, verboseMessage, proj.options.configFilePath); state.host.setModifiedTime(buildInfoPath, now = getCurrentTime(state.host)); @@ -134883,8 +132802,7 @@ function updateOutputTimestampsWorker(state, proj, projectPath, verboseMessage, reportStatus(state, verboseMessage, proj.options.configFilePath); } host.setModifiedTime(file, now || (now = getCurrentTime(state.host))); - if (file === buildInfoPath) getBuildInfoCacheEntry(state, buildInfoPath, projectPath).modifiedTime = now; - else if (outputTimeStampMap) { + if (outputTimeStampMap) { outputTimeStampMap.set(path, now); modifiedOutputs.add(path); } @@ -134898,7 +132816,7 @@ function getLatestChangedDtsTime(state, options, resolvedConfigPath) { if (!options.composite) return void 0; const entry = Debug.checkDefined(state.buildInfoCache.get(resolvedConfigPath)); if (entry.latestChangedDtsTime !== void 0) return entry.latestChangedDtsTime || void 0; - const latestChangedDtsTime = entry.buildInfo && isIncrementalBuildInfo(entry.buildInfo) && entry.buildInfo.latestChangedDtsFile ? state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.latestChangedDtsFile, getDirectoryPath(entry.path))) : void 0; + const latestChangedDtsTime = entry.buildInfo && entry.buildInfo.program && entry.buildInfo.program.latestChangedDtsFile ? state.host.getModifiedTime(getNormalizedAbsolutePath(entry.buildInfo.program.latestChangedDtsFile, getDirectoryPath(entry.path))) : void 0; entry.latestChangedDtsTime = latestChangedDtsTime || false; return latestChangedDtsTime; } @@ -134913,7 +132831,7 @@ function updateOutputTimestamps(state, proj, resolvedPath) { }); } function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) { - if (state.options.stopBuildOnErrors && buildResult & 4 /* AnyErrors */) return; + if (buildResult & 124 /* AnyErrors */) return; if (!config.options.composite) return; for (let index = projectIndex + 1; index < buildOrder.length; index++) { const nextProject = buildOrder[index]; @@ -134932,8 +132850,7 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con status.type = 2 /* UpToDateWithUpstreamTypes */; break; } - // falls through - case 15 /* UpToDateWithInputFileText */: + case 14 /* UpToDateWithInputFileText */: case 2 /* UpToDateWithUpstreamTypes */: if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) { state.projectStatus.set(nextProjectPath, { @@ -134943,7 +132860,7 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con }); } break; - case 12 /* UpstreamBlocked */: + case 11 /* UpstreamBlocked */: if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) { clearProjectStatus(state, nextProjectPath); } @@ -135362,28 +133279,21 @@ function reportUpToDateStatus(state, configFileName, status) { relName(state, configFileName), relName(state, status.fileName) ); - case 7 /* OutOfDateBuildInfoWithPendingEmit */: + case 7 /* OutOfDateBuildInfo */: return reportStatus( state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted, relName(state, configFileName), relName(state, status.buildInfoFile) ); - case 8 /* OutOfDateBuildInfoWithErrors */: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors, - relName(state, configFileName), - relName(state, status.buildInfoFile) - ); - case 9 /* OutOfDateOptions */: + case 8 /* OutOfDateOptions */: return reportStatus( state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions, relName(state, configFileName), relName(state, status.buildInfoFile) ); - case 10 /* OutOfDateRoots */: + case 9 /* OutOfDateRoots */: return reportStatus( state, Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more, @@ -135408,20 +133318,20 @@ function reportUpToDateStatus(state, configFileName, status) { Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, relName(state, configFileName) ); - case 15 /* UpToDateWithInputFileText */: + case 14 /* UpToDateWithInputFileText */: return reportStatus( state, Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files, relName(state, configFileName) ); - case 11 /* UpstreamOutOfDate */: + case 10 /* UpstreamOutOfDate */: return reportStatus( state, Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, relName(state, configFileName), relName(state, status.upstreamProjectName) ); - case 12 /* UpstreamBlocked */: + case 11 /* UpstreamBlocked */: return reportStatus( state, status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, @@ -135431,11 +133341,11 @@ function reportUpToDateStatus(state, configFileName, status) { case 0 /* Unbuildable */: return reportStatus( state, - Diagnostics.Project_0_is_out_of_date_because_1, + Diagnostics.Failed_to_parse_file_0_Colon_1, relName(state, configFileName), status.reason ); - case 14 /* TsVersionOutputOfDate */: + case 13 /* TsVersionOutputOfDate */: return reportStatus( state, Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, @@ -135443,16 +133353,14 @@ function reportUpToDateStatus(state, configFileName, status) { status.version, version ); - case 17 /* ForceBuild */: + case 16 /* ForceBuild */: return reportStatus( state, Diagnostics.Project_0_is_being_forcibly_rebuilt, relName(state, configFileName) ); - case 16 /* ContainerOnly */: - // Don't report status on "solution" projects - // falls through - case 13 /* ComputingUpstream */: + case 15 /* ContainerOnly */: + case 12 /* ComputingUpstream */: break; default: assertType(status); @@ -135524,7 +133432,7 @@ function shouldBePretty(sys2, options) { return options.pretty; } function getOptionsForHelp(commandLine) { - return !!commandLine.options.all ? toSorted(optionDeclarations.concat(tscBuildOption), (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter(optionDeclarations.concat(tscBuildOption), (v) => !!v.showInSimplifiedHelpView); + return !!commandLine.options.all ? sort(optionDeclarations, (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter(optionDeclarations.slice(), (v) => !!v.showInSimplifiedHelpView); } function printVersion(sys2) { sys2.write(getDiagnosticText(Diagnostics.Version_0, version) + sys2.newLine); @@ -135848,7 +133756,7 @@ function printAllHelp(sys2, compilerOptions, buildOptions, watchOptions) { output = [...output, ...generateSectionOptionsOutput( sys2, getDiagnosticText(Diagnostics.BUILD_OPTIONS), - filter(buildOptions, (option) => option !== tscBuildOption), + buildOptions, /*subCategory*/ false, formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") @@ -135862,7 +133770,7 @@ function printBuildHelp(sys2, buildOptions) { output = [...output, ...generateSectionOptionsOutput( sys2, getDiagnosticText(Diagnostics.BUILD_OPTIONS), - filter(buildOptions, (option) => option !== tscBuildOption), + buildOptions, /*subCategory*/ false, formatMessage(Diagnostics.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, "https://aka.ms/tsc-composite-builds") @@ -135899,6 +133807,10 @@ function printHelp(sys2, commandLine) { } function executeCommandLineWorker(sys2, cb, commandLine) { let reportDiagnostic = createDiagnosticReporter(sys2); + if (commandLine.options.build) { + reportDiagnostic(createCompilerDiagnostic(Diagnostics.Option_build_must_be_the_first_command_line_argument)); + return sys2.exit(1 /* DiagnosticsPresent_OutputsSkipped */); + } let configFileName; if (commandLine.options.locale) { validateLocaleAndSetLanguage(commandLine.options.locale, sys2, commandLine.errors); @@ -136044,16 +133956,16 @@ function executeCommandLineWorker(sys2, cb, commandLine) { } } } -function isBuildCommand(commandLineArgs) { +function isBuild(commandLineArgs) { if (commandLineArgs.length > 0 && commandLineArgs[0].charCodeAt(0) === 45 /* minus */) { const firstOption = commandLineArgs[0].slice(commandLineArgs[0].charCodeAt(1) === 45 /* minus */ ? 2 : 1).toLowerCase(); - return firstOption === tscBuildOption.name || firstOption === tscBuildOption.shortName; + return firstOption === "build" || firstOption === "b"; } return false; } function executeCommandLine(system, cb, commandLineArgs) { - if (isBuildCommand(commandLineArgs)) { - const { buildOptions, watchOptions, projects, errors } = parseBuildCommand(commandLineArgs); + if (isBuild(commandLineArgs)) { + const { buildOptions, watchOptions, projects, errors } = parseBuildCommand(commandLineArgs.slice(1)); if (buildOptions.generateCpuProfile && system.enableCPUProfiler) { system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild( system, @@ -136565,517 +134477,39 @@ function writeConfigFile(sys2, reportDiagnostic, options, fileNames) { } // src/compiler/expressionToTypeNode.ts -function syntacticResult(type, reportFallback = true) { - return { type, reportFallback }; -} -var notImplemented2 = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - false -); -var alreadyReported = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - false -); -var failed = syntacticResult( - /*type*/ - void 0, - /*reportFallback*/ - true -); function createSyntacticTypeNodeBuilder(options, resolver) { const strictNullChecks = getStrictOptionValue(options, "strictNullChecks"); return { + typeFromExpression, serializeTypeOfDeclaration, serializeReturnTypeForSignature, - serializeTypeOfExpression, - serializeTypeOfAccessor, - tryReuseExistingTypeNode(context, existing) { - if (!resolver.canReuseTypeNode(context, existing)) { - return void 0; - } - return tryReuseExistingTypeNode(context, existing); - } + serializeTypeOfExpression }; - function reuseNode(context, node, range = node) { - return node === void 0 ? void 0 : resolver.markNodeReuse(context, node.flags & 16 /* Synthesized */ ? node : factory.cloneNode(node), range ?? node); - } - function tryReuseExistingTypeNode(context, existing) { - const { finalizeBoundary, startRecoveryScope, hadError, markError } = resolver.createRecoveryBoundary(context); - const transformed = visitNode(existing, visitExistingNodeTreeSymbols, isTypeNode); - if (!finalizeBoundary()) { - return void 0; - } - context.approximateLength += existing.end - existing.pos; - return transformed; - function visitExistingNodeTreeSymbols(node) { - if (hadError()) return node; - const recover = startRecoveryScope(); - const onExitNewScope = isNewScopeNode(node) ? resolver.enterNewScope(context, node) : void 0; - const result = visitExistingNodeTreeSymbolsWorker(node); - onExitNewScope == null ? void 0 : onExitNewScope(); - if (hadError()) { - if (isTypeNode(node) && !isTypePredicateNode(node)) { - recover(); - return resolver.serializeExistingTypeNode(context, node); - } - return node; - } - return result ? resolver.markNodeReuse(context, result, node) : void 0; - } - function tryVisitSimpleTypeNode(node) { - const innerNode = skipTypeParentheses(node); - switch (innerNode.kind) { - case 183 /* TypeReference */: - return tryVisitTypeReference(innerNode); - case 186 /* TypeQuery */: - return tryVisitTypeQuery(innerNode); - case 199 /* IndexedAccessType */: - return tryVisitIndexedAccess(innerNode); - case 198 /* TypeOperator */: - const typeOperatorNode = innerNode; - if (typeOperatorNode.operator === 143 /* KeyOfKeyword */) { - return tryVisitKeyOf(typeOperatorNode); - } - } - return visitNode(node, visitExistingNodeTreeSymbols, isTypeNode); - } - function tryVisitIndexedAccess(node) { - const resultObjectType = tryVisitSimpleTypeNode(node.objectType); - if (resultObjectType === void 0) { - return void 0; - } - return factory.updateIndexedAccessTypeNode(node, resultObjectType, visitNode(node.indexType, visitExistingNodeTreeSymbols, isTypeNode)); - } - function tryVisitKeyOf(node) { - Debug.assertEqual(node.operator, 143 /* KeyOfKeyword */); - const type = tryVisitSimpleTypeNode(node.type); - if (type === void 0) { - return void 0; - } - return factory.updateTypeOperatorNode(node, type); - } - function tryVisitTypeQuery(node) { - const { introducesError, node: exprName } = resolver.trackExistingEntityName(context, node.exprName); - if (!introducesError) { - return factory.updateTypeQueryNode( - node, - exprName, - visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode) - ); - } - const serializedName = resolver.serializeTypeName( - context, - node.exprName, - /*isTypeOf*/ - true - ); - if (serializedName) { - return resolver.markNodeReuse(context, serializedName, node.exprName); - } - } - function tryVisitTypeReference(node) { - if (resolver.canReuseTypeNode(context, node)) { - const { introducesError, node: newName } = resolver.trackExistingEntityName(context, node.typeName); - const typeArguments = visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode); - if (!introducesError) { - const updated = factory.updateTypeReferenceNode( - node, - newName, - typeArguments - ); - return resolver.markNodeReuse(context, updated, node); - } else { - const serializedName = resolver.serializeTypeName( - context, - node.typeName, - /*isTypeOf*/ - false, - typeArguments - ); - if (serializedName) { - return resolver.markNodeReuse(context, serializedName, node.typeName); - } - } - } - } - function visitExistingNodeTreeSymbolsWorker(node) { - var _a; - if (isJSDocTypeExpression(node)) { - return visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode); - } - if (isJSDocAllType(node) || node.kind === 319 /* JSDocNamepathType */) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - if (isJSDocUnknownType(node)) { - return factory.createKeywordTypeNode(159 /* UnknownKeyword */); - } - if (isJSDocNullableType(node)) { - return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createLiteralTypeNode(factory.createNull())]); - } - if (isJSDocOptionalType(node)) { - return factory.createUnionTypeNode([visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode), factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - if (isJSDocNonNullableType(node)) { - return visitNode(node.type, visitExistingNodeTreeSymbols); - } - if (isJSDocVariadicType(node)) { - return factory.createArrayTypeNode(visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); - } - if (isJSDocTypeLiteral(node)) { - return factory.createTypeLiteralNode(map(node.jsDocPropertyTags, (t) => { - const name = visitNode(isIdentifier(t.name) ? t.name : t.name.right, visitExistingNodeTreeSymbols, isIdentifier); - const overrideTypeNode = resolver.getJsDocPropertyOverride(context, node, t); - return factory.createPropertySignature( - /*modifiers*/ - void 0, - name, - t.isBracketed || t.typeExpression && isJSDocOptionalType(t.typeExpression.type) ? factory.createToken(58 /* QuestionToken */) : void 0, - overrideTypeNode || t.typeExpression && visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - })); - } - if (isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "") { - return setOriginalNode(factory.createKeywordTypeNode(133 /* AnyKeyword */), node); - } - if ((isExpressionWithTypeArguments(node) || isTypeReferenceNode(node)) && isJSDocIndexSignature(node)) { - return factory.createTypeLiteralNode([factory.createIndexSignature( - /*modifiers*/ - void 0, - [factory.createParameterDeclaration( - /*modifiers*/ - void 0, - /*dotDotDotToken*/ - void 0, - "x", - /*questionToken*/ - void 0, - visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols, isTypeNode) - )], - visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols, isTypeNode) - )]); - } - if (isJSDocFunctionType(node)) { - if (isJSDocConstructSignature(node)) { - let newTypeNode; - return factory.createConstructorTypeNode( - /*modifiers*/ - void 0, - visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), - mapDefined(node.parameters, (p, i) => p.name && isIdentifier(p.name) && p.name.escapedText === "new" ? (newTypeNode = p.type, void 0) : factory.createParameterDeclaration( - /*modifiers*/ - void 0, - getEffectiveDotDotDotForParameter(p), - resolver.markNodeReuse(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), - factory.cloneNode(p.questionToken), - visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), - /*initializer*/ - void 0 - )), - visitNode(newTypeNode || node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - } else { - return factory.createFunctionTypeNode( - visitNodes2(node.typeParameters, visitExistingNodeTreeSymbols, isTypeParameterDeclaration), - map(node.parameters, (p, i) => factory.createParameterDeclaration( - /*modifiers*/ - void 0, - getEffectiveDotDotDotForParameter(p), - resolver.markNodeReuse(context, factory.createIdentifier(getNameForJSDocFunctionParameter(p, i)), p), - factory.cloneNode(p.questionToken), - visitNode(p.type, visitExistingNodeTreeSymbols, isTypeNode), - /*initializer*/ - void 0 - )), - visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode) || factory.createKeywordTypeNode(133 /* AnyKeyword */) - ); - } - } - if (isThisTypeNode(node)) { - if (resolver.canReuseTypeNode(context, node)) { - return node; - } - markError(); - return node; - } - if (isTypeParameterDeclaration(node)) { - const { node: newName } = resolver.trackExistingEntityName(context, node.name); - return factory.updateTypeParameterDeclaration( - node, - visitNodes2(node.modifiers, visitExistingNodeTreeSymbols, isModifier), - // resolver.markNodeReuse(context, typeParameterToName(getDeclaredTypeOfSymbol(getSymbolOfDeclaration(node)), context), node), - newName, - visitNode(node.constraint, visitExistingNodeTreeSymbols, isTypeNode), - visitNode(node.default, visitExistingNodeTreeSymbols, isTypeNode) - ); - } - if (isIndexedAccessTypeNode(node)) { - const result = tryVisitIndexedAccess(node); - if (!result) { - markError(); - return node; - } - return result; - } - if (isTypeReferenceNode(node)) { - const result = tryVisitTypeReference(node); - if (result) { - return result; - } - markError(); - return node; - } - if (isLiteralImportTypeNode(node)) { - if (((_a = node.attributes) == null ? void 0 : _a.token) === 132 /* AssertKeyword */) { - markError(); - return node; - } - if (!resolver.canReuseTypeNode(context, node)) { - return resolver.serializeExistingTypeNode(context, node); - } - const specifier = rewriteModuleSpecifier2(node, node.argument.literal); - const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier; - return factory.updateImportTypeNode( - node, - literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal), - visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes), - visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName), - visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode), - node.isTypeOf - ); - } - if (isNamedDeclaration(node) && node.name.kind === 167 /* ComputedPropertyName */ && !resolver.hasLateBindableName(node)) { - if (!hasDynamicName(node)) { - return visitEachChild2(node, visitExistingNodeTreeSymbols); - } - if (resolver.shouldRemoveDeclaration(context, node)) { - return void 0; - } - } - if (isFunctionLike(node) && !node.type || isPropertyDeclaration(node) && !node.type && !node.initializer || isPropertySignature(node) && !node.type && !node.initializer || isParameter(node) && !node.type && !node.initializer) { - let visited = visitEachChild2(node, visitExistingNodeTreeSymbols); - if (visited === node) { - visited = resolver.markNodeReuse(context, factory.cloneNode(node), node); - } - visited.type = factory.createKeywordTypeNode(133 /* AnyKeyword */); - if (isParameter(node)) { - visited.modifiers = void 0; - } - return visited; - } - if (isTypeQueryNode(node)) { - const result = tryVisitTypeQuery(node); - if (!result) { - markError(); - return node; - } - return result; - } - if (isComputedPropertyName(node) && isEntityNameExpression(node.expression)) { - const { node: result, introducesError } = resolver.trackExistingEntityName(context, node.expression); - if (!introducesError) { - return factory.updateComputedPropertyName(node, result); - } else { - const computedPropertyNameType = resolver.serializeTypeOfExpression(context, node.expression); - let literal; - if (isLiteralTypeNode(computedPropertyNameType)) { - literal = computedPropertyNameType.literal; - } else { - const evaluated = resolver.evaluateEntityNameExpression(node.expression); - const literalNode = typeof evaluated.value === "string" ? factory.createStringLiteral( - evaluated.value, - /*isSingleQuote*/ - void 0 - ) : typeof evaluated.value === "number" ? factory.createNumericLiteral( - evaluated.value, - /*numericLiteralFlags*/ - 0 - ) : void 0; - if (!literalNode) { - if (isImportTypeNode(computedPropertyNameType)) { - resolver.trackComputedName(context, node.expression); - } - return node; - } - literal = literalNode; - } - if (literal.kind === 11 /* StringLiteral */ && isIdentifierText(literal.text, getEmitScriptTarget(options))) { - return factory.createIdentifier(literal.text); - } - if (literal.kind === 9 /* NumericLiteral */ && !literal.text.startsWith("-")) { - return literal; - } - return factory.updateComputedPropertyName(node, literal); - } - } - if (isTypePredicateNode(node)) { - let parameterName; - if (isIdentifier(node.parameterName)) { - const { node: result, introducesError } = resolver.trackExistingEntityName(context, node.parameterName); - if (introducesError) markError(); - parameterName = result; - } else { - parameterName = factory.cloneNode(node.parameterName); - } - return factory.updateTypePredicateNode(node, factory.cloneNode(node.assertsModifier), parameterName, visitNode(node.type, visitExistingNodeTreeSymbols, isTypeNode)); - } - if (isTupleTypeNode(node) || isTypeLiteralNode(node) || isMappedTypeNode(node)) { - const visited = visitEachChild2(node, visitExistingNodeTreeSymbols); - const clone2 = resolver.markNodeReuse(context, visited === node ? factory.cloneNode(node) : visited, node); - const flags = getEmitFlags(clone2); - setEmitFlags(clone2, flags | (context.flags & 1024 /* MultilineObjectLiterals */ && isTypeLiteralNode(node) ? 0 : 1 /* SingleLine */)); - return clone2; - } - if (isStringLiteral(node) && !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */) && !node.singleQuote) { - const clone2 = factory.cloneNode(node); - clone2.singleQuote = true; - return clone2; - } - if (isConditionalTypeNode(node)) { - const checkType = visitNode(node.checkType, visitExistingNodeTreeSymbols, isTypeNode); - const disposeScope = resolver.enterNewScope(context, node); - const extendType = visitNode(node.extendsType, visitExistingNodeTreeSymbols, isTypeNode); - const trueType = visitNode(node.trueType, visitExistingNodeTreeSymbols, isTypeNode); - disposeScope(); - const falseType = visitNode(node.falseType, visitExistingNodeTreeSymbols, isTypeNode); - return factory.updateConditionalTypeNode( - node, - checkType, - extendType, - trueType, - falseType - ); - } - if (isTypeOperatorNode(node)) { - if (node.operator === 158 /* UniqueKeyword */ && node.type.kind === 155 /* SymbolKeyword */) { - if (!resolver.canReuseTypeNode(context, node)) { - markError(); - return node; - } - } else if (node.operator === 143 /* KeyOfKeyword */) { - const result = tryVisitKeyOf(node); - if (!result) { - markError(); - return node; - } - return result; - } - } - return visitEachChild2(node, visitExistingNodeTreeSymbols); - function visitEachChild2(node2, visitor) { - const nonlocalNode = !context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(node2); - return visitEachChild( - node2, - visitor, - /*context*/ - void 0, - nonlocalNode ? visitNodesWithoutCopyingPositions : void 0 - ); - } - function visitNodesWithoutCopyingPositions(nodes, visitor, test, start, count) { - let result = visitNodes2(nodes, visitor, test, start, count); - if (result) { - if (result.pos !== -1 || result.end !== -1) { - if (result === nodes) { - result = factory.createNodeArray(nodes.slice(), nodes.hasTrailingComma); - } - setTextRangePosEnd(result, -1, -1); - } - } - return result; - } - function getEffectiveDotDotDotForParameter(p) { - return p.dotDotDotToken || (p.type && isJSDocVariadicType(p.type) ? factory.createToken(26 /* DotDotDotToken */) : void 0); - } - function getNameForJSDocFunctionParameter(p, index) { - return p.name && isIdentifier(p.name) && p.name.escapedText === "this" ? "this" : getEffectiveDotDotDotForParameter(p) ? `args` : `arg${index}`; - } - function rewriteModuleSpecifier2(parent2, lit) { - const newName = resolver.getModuleSpecifierOverride(context, parent2, lit); - return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit; - } - } - } - function serializeExistingTypeNode(typeNode, context, addUndefined) { - if (!typeNode) return void 0; - let result; - if ((!addUndefined || canAddUndefined(typeNode)) && resolver.canReuseTypeNode(context, typeNode)) { - result = tryReuseExistingTypeNode(context, typeNode); - if (result !== void 0) { - result = addUndefinedIfNeeded( - result, - addUndefined, - /*owner*/ - void 0, - context - ); - } - } - return result; - } - function serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, requiresAddingUndefined, useFallback = requiresAddingUndefined !== void 0) { - if (!declaredType) return void 0; - if (!resolver.canReuseTypeNodeAnnotation(context, node, declaredType, symbol, requiresAddingUndefined)) { - if (!requiresAddingUndefined || !resolver.canReuseTypeNodeAnnotation( - context, - node, - declaredType, - symbol, - /*requiresAddingUndefined*/ - false - )) { - return void 0; - } - } - let result; - if (!requiresAddingUndefined || canAddUndefined(declaredType)) { - result = serializeExistingTypeNode(declaredType, context, requiresAddingUndefined); - } - if (result !== void 0 || !useFallback) { - return result; - } - context.tracker.reportInferenceFallback(node); - return resolver.serializeExistingTypeNode(context, declaredType, requiresAddingUndefined) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function serializeExistingTypeNodeWithFallback(typeNode, context, addUndefined, targetNode) { - if (!typeNode) return void 0; - const result = serializeExistingTypeNode(typeNode, context, addUndefined); - if (result !== void 0) { - return result; - } - context.tracker.reportInferenceFallback(targetNode ?? typeNode); - return resolver.serializeExistingTypeNode(context, typeNode, addUndefined) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - function serializeTypeOfAccessor(accessor, symbol, context) { - return typeFromAccessor(accessor, symbol, context) ?? inferAccessorType(accessor, resolver.getAllAccessorDeclarations(accessor), context, symbol); + function serializeExistingTypeAnnotation(type, addUndefined) { + return type !== void 0 && (!addUndefined || type && canAddUndefined(type)) ? true : void 0; } function serializeTypeOfExpression(expr, context, addUndefined, preserveLiterals) { - const result = typeFromExpression( + return typeFromExpression( expr, context, /*isConstContext*/ false, addUndefined, preserveLiterals - ); - return result.type !== void 0 ? result.type : inferExpressionType(expr, context, result.reportFallback); + ) ?? inferExpressionType(expr, context); } - function serializeTypeOfDeclaration(node, symbol, context) { + function serializeTypeOfDeclaration(node, context) { switch (node.kind) { + case 171 /* PropertySignature */: + return serializeExistingTypeAnnotation(getEffectiveTypeAnnotationNode(node)); case 169 /* Parameter */: - case 341 /* JSDocParameterTag */: - return typeFromParameter(node, symbol, context); + return typeFromParameter(node, context); case 260 /* VariableDeclaration */: - return typeFromVariable(node, symbol, context); - case 171 /* PropertySignature */: - case 348 /* JSDocPropertyTag */: + return typeFromVariable(node, context); case 172 /* PropertyDeclaration */: - return typeFromProperty(node, symbol, context); + return typeFromProperty(node, context); case 208 /* BindingElement */: - return inferTypeOfDeclaration(node, symbol, context); + return inferTypeOfDeclaration(node, context); case 277 /* ExportAssignment */: return serializeTypeOfExpression( node.expression, @@ -137088,39 +134522,17 @@ function createSyntacticTypeNodeBuilder(options, resolver) { case 211 /* PropertyAccessExpression */: case 212 /* ElementAccessExpression */: case 226 /* BinaryExpression */: - return typeFromExpandoProperty(node, symbol, context); + return serializeExistingTypeAnnotation(getEffectiveTypeAnnotationNode(node)) || inferTypeOfDeclaration(node, context); case 303 /* PropertyAssignment */: - case 304 /* ShorthandPropertyAssignment */: - return typeFromPropertyAssignment(node, symbol, context); + return typeFromExpression(node.initializer, context) || inferTypeOfDeclaration(node, context); default: Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); } } - function typeFromPropertyAssignment(node, symbol, context) { - const typeAnnotation = getEffectiveTypeAnnotationNode(node); - let result; - if (typeAnnotation && resolver.canReuseTypeNodeAnnotation(context, node, typeAnnotation, symbol)) { - result = serializeExistingTypeNode(typeAnnotation, context); - } - if (!result && node.kind === 303 /* PropertyAssignment */) { - const initializer = node.initializer; - const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 /* AsExpression */ || initializer.kind === 216 /* TypeAssertionExpression */ ? initializer.type : void 0; - if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) { - result = serializeExistingTypeNode(assertionNode, context); - } - } - return result ?? inferTypeOfDeclaration( - node, - symbol, - context, - /*reportFallback*/ - false - ); - } - function serializeReturnTypeForSignature(node, symbol, context) { + function serializeReturnTypeForSignature(node, context) { switch (node.kind) { case 177 /* GetAccessor */: - return serializeTypeOfAccessor(node, symbol, context); + return typeFromAccessor(node, context); case 174 /* MethodDeclaration */: case 262 /* FunctionDeclaration */: case 180 /* ConstructSignature */: @@ -137135,45 +134547,45 @@ function createSyntacticTypeNodeBuilder(options, resolver) { case 219 /* ArrowFunction */: case 317 /* JSDocFunctionType */: case 323 /* JSDocSignature */: - return createReturnFromSignature(node, symbol, context); + return createReturnFromSignature(node, context); default: Debug.assertNever(node, `Node needs to be an inferrable node, found ${Debug.formatSyntaxKind(node.kind)}`); } } - function getTypeAnnotationFromAccessor(accessor) { + function getTypeAnnotationFromAccessor2(accessor) { if (accessor) { - return accessor.kind === 177 /* GetAccessor */ ? isInJSFile(accessor) && getJSDocType(accessor) || getEffectiveReturnTypeNode(accessor) : getEffectiveSetAccessorTypeAnnotationNode(accessor); + return accessor.kind === 177 /* GetAccessor */ ? getEffectiveReturnTypeNode(accessor) : accessor.parameters.length > 0 ? getEffectiveTypeAnnotationNode(accessor.parameters[0]) : void 0; } } function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) { - let accessorType = getTypeAnnotationFromAccessor(node); + let accessorType = getTypeAnnotationFromAccessor2(node); if (!accessorType && node !== accessors.firstAccessor) { - accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor); + accessorType = getTypeAnnotationFromAccessor2(accessors.firstAccessor); } if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) { - accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor); + accessorType = getTypeAnnotationFromAccessor2(accessors.secondAccessor); } return accessorType; } - function typeFromAccessor(node, symbol, context) { + function typeFromAccessor(node, context) { const accessorDeclarations = resolver.getAllAccessorDeclarations(node); const accessorType = getTypeAnnotationFromAllAccessorDeclarations(node, accessorDeclarations); - if (accessorType && !isTypePredicateNode(accessorType)) { - return withNewScope(context, node, () => serializeTypeAnnotationOfDeclaration(accessorType, context, node, symbol) ?? inferTypeOfDeclaration(node, symbol, context)); + if (accessorType) { + return serializeExistingTypeAnnotation(accessorType); } if (accessorDeclarations.getAccessor) { - return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(accessorDeclarations.getAccessor, symbol, context)); + return createReturnFromSignature(accessorDeclarations.getAccessor, context); } - return void 0; + return false; } - function typeFromVariable(node, symbol, context) { - var _a; + function typeFromVariable(node, context) { const declaredType = getEffectiveTypeAnnotationNode(node); - let resultType = failed; if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol)); - } else if (node.initializer && (((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 || countWhere(symbol.declarations, isVariableDeclaration) === 1)) { - if (!resolver.isExpandoFunctionDeclaration(node) && !isContextuallyTyped(node)) { + return serializeExistingTypeAnnotation(declaredType); + } + let resultType; + if (node.initializer) { + if (!resolver.isExpandoFunctionDeclaration(node)) { resultType = typeFromExpression( node.initializer, context, @@ -137185,119 +134597,71 @@ function createSyntacticTypeNodeBuilder(options, resolver) { ); } } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); + return resultType ?? inferTypeOfDeclaration(node, context); } - function typeFromParameter(node, symbol, context) { + function typeFromParameter(node, context) { const parent2 = node.parent; if (parent2.kind === 178 /* SetAccessor */) { - return serializeTypeOfAccessor( - parent2, - /*symbol*/ - void 0, - context - ); + return typeFromAccessor(parent2, context); } const declaredType = getEffectiveTypeAnnotationNode(node); - const addUndefined = resolver.requiresAddingImplicitUndefined(node, symbol, context.enclosingDeclaration); - let resultType = failed; + const addUndefined = resolver.requiresAddingImplicitUndefined(node); + let resultType; if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, addUndefined)); - } else if (isParameter(node) && node.initializer && isIdentifier(node.name) && !isContextuallyTyped(node)) { - resultType = typeFromExpression( - node.initializer, - context, - /*isConstContext*/ - void 0, - addUndefined - ); - } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); - } - function typeFromExpandoProperty(node, symbol, context) { - const declaredType = getEffectiveTypeAnnotationNode(node); - let result; - if (declaredType) { - result = serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol); - } - const oldSuppressReportInferenceFallback = context.suppressReportInferenceFallback; - context.suppressReportInferenceFallback = true; - const resultType = result ?? inferTypeOfDeclaration( - node, - symbol, - context, - /*reportFallback*/ - false - ); - context.suppressReportInferenceFallback = oldSuppressReportInferenceFallback; - return resultType; - } - function typeFromProperty(node, symbol, context) { - const declaredType = getEffectiveTypeAnnotationNode(node); - const requiresAddingUndefined = resolver.requiresAddingImplicitUndefined(node, symbol, context.enclosingDeclaration); - let resultType = failed; - if (declaredType) { - resultType = syntacticResult(serializeTypeAnnotationOfDeclaration(declaredType, context, node, symbol, requiresAddingUndefined)); + resultType = serializeExistingTypeAnnotation(declaredType, addUndefined); } else { - const initializer = isPropertyDeclaration(node) ? node.initializer : void 0; - if (initializer && !isContextuallyTyped(node)) { - const isReadonly = isDeclarationReadonly(node); + if (node.initializer && isIdentifier(node.name)) { resultType = typeFromExpression( - initializer, + node.initializer, context, /*isConstContext*/ void 0, - requiresAddingUndefined, - isReadonly + addUndefined ); } } - return resultType.type !== void 0 ? resultType.type : inferTypeOfDeclaration(node, symbol, context, resultType.reportFallback); + return resultType ?? inferTypeOfDeclaration(node, context); } - function inferTypeOfDeclaration(node, symbol, context, reportFallback = true) { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); + function typeFromProperty(node, context) { + const declaredType = getEffectiveTypeAnnotationNode(node); + if (declaredType) { + return serializeExistingTypeAnnotation(declaredType); } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); + let resultType; + if (node.initializer) { + const isReadonly = isDeclarationReadonly(node); + resultType = typeFromExpression( + node.initializer, + context, + /*isConstContext*/ + void 0, + /*requiresAddingUndefined*/ + void 0, + isReadonly + ); } - return resolver.serializeTypeOfDeclaration(context, node, symbol); + return resultType ?? inferTypeOfDeclaration(node, context); } - function inferExpressionType(node, context, reportFallback = true, requiresAddingUndefined) { - Debug.assert(!requiresAddingUndefined); - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - return resolver.serializeTypeOfExpression(context, node) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); + function inferTypeOfDeclaration(node, context) { + context.tracker.reportInferenceFallback(node); + return false; } - function inferReturnTypeOfSignatureSignature(node, context, symbol, reportFallback) { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - if (context.noInferenceFallback === true) { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - return resolver.serializeReturnTypeForSignature(context, node, symbol) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); + function inferExpressionType(node, context) { + context.tracker.reportInferenceFallback(node); + return false; + } + function inferReturnTypeOfSignatureSignature(node, context) { + context.tracker.reportInferenceFallback(node); + return false; } - function inferAccessorType(node, allAccessors, context, symbol, reportFallback = true) { + function inferAccessorType(node, allAccessors, context) { if (node.kind === 177 /* GetAccessor */) { - return createReturnFromSignature(node, symbol, context, reportFallback); + return createReturnFromSignature(node, context); } else { - if (reportFallback) { - context.tracker.reportInferenceFallback(node); - } - const result = allAccessors.getAccessor && createReturnFromSignature(allAccessors.getAccessor, symbol, context, reportFallback); - return result ?? resolver.serializeTypeOfDeclaration(context, node, symbol) ?? factory.createKeywordTypeNode(133 /* AnyKeyword */); + context.tracker.reportInferenceFallback(node); + return false; } } - function withNewScope(context, node, fn) { - const cleanup = resolver.enterNewScope(context, node); - const result = fn(); - cleanup(); - return result; - } function typeFromTypeAssertion(expression, type, context, requiresAddingUndefined) { if (isConstTypeReference(type)) { return typeFromExpression( @@ -137308,7 +134672,10 @@ function createSyntacticTypeNodeBuilder(options, resolver) { requiresAddingUndefined ); } - return syntacticResult(serializeExistingTypeNodeWithFallback(type, context, requiresAddingUndefined)); + if (requiresAddingUndefined && !canAddUndefined(type)) { + context.tracker.reportInferenceFallback(type); + } + return serializeExistingTypeAnnotation(type); } function typeFromExpression(node, context, isConstContext = false, requiresAddingUndefined = false, preserveLiterals = false) { switch (node.kind) { @@ -137319,19 +134686,14 @@ function createSyntacticTypeNodeBuilder(options, resolver) { return typeFromExpression(node.expression, context, isConstContext, requiresAddingUndefined); case 80 /* Identifier */: if (resolver.isUndefinedIdentifierExpression(node)) { - return syntacticResult(createUndefinedTypeNode()); + return true; } break; case 106 /* NullKeyword */: - if (strictNullChecks) { - return syntacticResult(addUndefinedIfNeeded(factory.createLiteralTypeNode(factory.createNull()), requiresAddingUndefined, node, context)); - } else { - return syntacticResult(factory.createKeywordTypeNode(133 /* AnyKeyword */)); - } + return true; case 219 /* ArrowFunction */: case 218 /* FunctionExpression */: - Debug.type(node); - return withNewScope(context, node, () => typeFromFunctionLikeExpression(node, context)); + return typeFromFunctionLikeExpression(node, context); case 216 /* TypeAssertionExpression */: case 234 /* AsExpression */: const asExpression = node; @@ -137339,76 +134701,43 @@ function createSyntacticTypeNodeBuilder(options, resolver) { case 224 /* PrefixUnaryExpression */: const unaryExpression = node; if (isPrimitiveLiteralValue(unaryExpression)) { - return typeFromPrimitiveLiteral( - unaryExpression.operator === 40 /* PlusToken */ ? unaryExpression.operand : unaryExpression, - unaryExpression.operand.kind === 10 /* BigIntLiteral */ ? 163 /* BigIntKeyword */ : 150 /* NumberKeyword */, - context, - isConstContext || preserveLiterals, - requiresAddingUndefined - ); + if (unaryExpression.operand.kind === 10 /* BigIntLiteral */) { + return typeFromPrimitiveLiteral(); + } + if (unaryExpression.operand.kind === 9 /* NumericLiteral */) { + return typeFromPrimitiveLiteral(); + } } break; - case 209 /* ArrayLiteralExpression */: - return typeFromArrayLiteral(node, context, isConstContext, requiresAddingUndefined); - case 210 /* ObjectLiteralExpression */: - return typeFromObjectLiteral(node, context, isConstContext, requiresAddingUndefined); - case 231 /* ClassExpression */: - return syntacticResult(inferExpressionType( - node, - context, - /*reportFallback*/ - true, - requiresAddingUndefined - )); + case 9 /* NumericLiteral */: + return typeFromPrimitiveLiteral(); case 228 /* TemplateExpression */: if (!isConstContext && !preserveLiterals) { - return syntacticResult(factory.createKeywordTypeNode(154 /* StringKeyword */)); + return true; } break; - default: - let typeKind; - let primitiveNode = node; - switch (node.kind) { - case 9 /* NumericLiteral */: - typeKind = 150 /* NumberKeyword */; - break; - case 15 /* NoSubstitutionTemplateLiteral */: - primitiveNode = factory.createStringLiteral(node.text); - typeKind = 154 /* StringKeyword */; - break; - case 11 /* StringLiteral */: - typeKind = 154 /* StringKeyword */; - break; - case 10 /* BigIntLiteral */: - typeKind = 163 /* BigIntKeyword */; - break; - case 112 /* TrueKeyword */: - case 97 /* FalseKeyword */: - typeKind = 136 /* BooleanKeyword */; - break; - } - if (typeKind) { - return typeFromPrimitiveLiteral(primitiveNode, typeKind, context, isConstContext || preserveLiterals, requiresAddingUndefined); - } + case 15 /* NoSubstitutionTemplateLiteral */: + case 11 /* StringLiteral */: + return typeFromPrimitiveLiteral(); + case 10 /* BigIntLiteral */: + return typeFromPrimitiveLiteral(); + case 112 /* TrueKeyword */: + case 97 /* FalseKeyword */: + return typeFromPrimitiveLiteral(); + case 209 /* ArrayLiteralExpression */: + return typeFromArrayLiteral(node, context, isConstContext); + case 210 /* ObjectLiteralExpression */: + return typeFromObjectLiteral(node, context, isConstContext); + case 231 /* ClassExpression */: + return inferExpressionType(node, context); } - return failed; + return void 0; } function typeFromFunctionLikeExpression(fnNode, context) { - const returnType = createReturnFromSignature( - fnNode, - /*symbol*/ - void 0, - context - ); - const typeParameters = reuseTypeParameters(fnNode.typeParameters, context); - const parameters = fnNode.parameters.map((p) => ensureParameter(p, context)); - return syntacticResult( - factory.createFunctionTypeNode( - typeParameters, - parameters, - returnType - ) - ); + const returnType = serializeExistingTypeAnnotation(fnNode.type) ?? createReturnFromSignature(fnNode, context); + const typeParameters = reuseTypeParameters(fnNode.typeParameters); + const parameters = fnNode.parameters.every((p) => ensureParameter(p, context)); + return returnType && typeParameters && parameters; } function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) { if (!isConstContext) { @@ -137423,38 +134752,18 @@ function createSyntacticTypeNodeBuilder(options, resolver) { } return true; } - function typeFromArrayLiteral(arrayLiteral, context, isConstContext, requiresAddingUndefined) { + function typeFromArrayLiteral(arrayLiteral, context, isConstContext) { if (!canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext)) { - if (requiresAddingUndefined || isDeclaration(walkUpParenthesizedExpressions(arrayLiteral).parent)) { - return alreadyReported; - } - return syntacticResult(inferExpressionType( - arrayLiteral, - context, - /*reportFallback*/ - false, - requiresAddingUndefined - )); + return false; } - const oldNoInferenceFallback = context.noInferenceFallback; - context.noInferenceFallback = true; - const elementTypesInfo = []; + let canInferArray = true; for (const element of arrayLiteral.elements) { Debug.assert(element.kind !== 230 /* SpreadElement */); - if (element.kind === 232 /* OmittedExpression */) { - elementTypesInfo.push( - createUndefinedTypeNode() - ); - } else { - const expressionType = typeFromExpression(element, context, isConstContext); - const elementType = expressionType.type !== void 0 ? expressionType.type : inferExpressionType(element, context, expressionType.reportFallback); - elementTypesInfo.push(elementType); + if (element.kind !== 232 /* OmittedExpression */) { + canInferArray = (typeFromExpression(element, context, isConstContext) ?? inferExpressionType(element, context)) && canInferArray; } } - const tupleType = factory.createTupleTypeNode(elementTypesInfo); - tupleType.emitNode = { flags: 1, autoGenerate: void 0, internalFlags: 0 }; - context.noInferenceFallback = oldNoInferenceFallback; - return notImplemented2; + return true; } function canGetTypeFromObjectLiteral(objectLiteral, context) { let result = true; @@ -137485,213 +134794,64 @@ function createSyntacticTypeNodeBuilder(options, resolver) { } return result; } - function typeFromObjectLiteral(objectLiteral, context, isConstContext, requiresAddingUndefined) { - if (!canGetTypeFromObjectLiteral(objectLiteral, context)) { - if (requiresAddingUndefined || isDeclaration(walkUpParenthesizedExpressions(objectLiteral).parent)) { - return alreadyReported; - } - return syntacticResult(inferExpressionType( - objectLiteral, - context, - /*reportFallback*/ - false, - requiresAddingUndefined - )); - } - const oldNoInferenceFallback = context.noInferenceFallback; - context.noInferenceFallback = true; - const properties = []; - const oldFlags = context.flags; - context.flags |= 4194304 /* InObjectTypeLiteral */; + function typeFromObjectLiteral(objectLiteral, context, isConstContext) { + if (!canGetTypeFromObjectLiteral(objectLiteral, context)) return false; + let canInferObjectLiteral = true; for (const prop of objectLiteral.properties) { Debug.assert(!isShorthandPropertyAssignment(prop) && !isSpreadAssignment(prop)); const name = prop.name; - let newProp; switch (prop.kind) { case 174 /* MethodDeclaration */: - newProp = withNewScope(context, prop, () => typeFromObjectLiteralMethod(prop, name, context, isConstContext)); + canInferObjectLiteral = !!typeFromObjectLiteralMethod(prop, name, context) && canInferObjectLiteral; break; case 303 /* PropertyAssignment */: - newProp = typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext); + canInferObjectLiteral = !!typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext) && canInferObjectLiteral; break; case 178 /* SetAccessor */: case 177 /* GetAccessor */: - newProp = typeFromObjectLiteralAccessor(prop, name, context); + canInferObjectLiteral = !!typeFromObjectLiteralAccessor(prop, name, context) && canInferObjectLiteral; break; } - if (newProp) { - setCommentRange(newProp, prop); - properties.push(newProp); - } - } - context.flags = oldFlags; - const typeNode = factory.createTypeLiteralNode(properties); - if (!(context.flags & 1024 /* MultilineObjectLiterals */)) { - setEmitFlags(typeNode, 1 /* SingleLine */); } - context.noInferenceFallback = oldNoInferenceFallback; - return notImplemented2; + return canInferObjectLiteral; } function typeFromObjectLiteralPropertyAssignment(prop, name, context, isConstContext) { - const modifiers = isConstContext ? [factory.createModifier(148 /* ReadonlyKeyword */)] : []; - const expressionResult = typeFromExpression(prop.initializer, context, isConstContext); - const typeNode = expressionResult.type !== void 0 ? expressionResult.type : inferTypeOfDeclaration( - prop, - /*symbol*/ - void 0, - context, - expressionResult.reportFallback - ); - return factory.createPropertySignature( - modifiers, - reuseNode(context, name), - /*questionToken*/ - void 0, - typeNode - ); + return typeFromExpression(prop.initializer, context, isConstContext) ?? inferTypeOfDeclaration(prop, context); } function ensureParameter(p, context) { - return factory.updateParameterDeclaration( - p, - [], - reuseNode(context, p.dotDotDotToken), - resolver.serializeNameOfParameter(context, p), - resolver.isOptionalParameter(p) ? factory.createToken(58 /* QuestionToken */) : void 0, - typeFromParameter( - p, - /*symbol*/ - void 0, - context - ), - // Ignore private param props, since this type is going straight back into a param - /*initializer*/ - void 0 - ); + return typeFromParameter(p, context); } - function reuseTypeParameters(typeParameters, context) { - return typeParameters == null ? void 0 : typeParameters.map((tp) => { - var _a; - const { node: tpName } = resolver.trackExistingEntityName(context, tp.name); - return factory.updateTypeParameterDeclaration( - tp, - (_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)), - tpName, - serializeExistingTypeNodeWithFallback(tp.constraint, context), - serializeExistingTypeNodeWithFallback(tp.default, context) - ); - }); + function reuseTypeParameters(typeParameters) { + return (typeParameters == null ? void 0 : typeParameters.every( + (tp) => serializeExistingTypeAnnotation(tp.constraint) && serializeExistingTypeAnnotation(tp.default) + )) ?? true; } - function typeFromObjectLiteralMethod(method, name, context, isConstContext) { - const returnType = createReturnFromSignature( - method, - /*symbol*/ - void 0, - context - ); - const typeParameters = reuseTypeParameters(method.typeParameters, context); - const parameters = method.parameters.map((p) => ensureParameter(p, context)); - if (isConstContext) { - return factory.createPropertySignature( - [factory.createModifier(148 /* ReadonlyKeyword */)], - reuseNode(context, name), - reuseNode(context, method.questionToken), - factory.createFunctionTypeNode( - typeParameters, - parameters, - returnType - ) - ); - } else { - if (isIdentifier(name) && name.escapedText === "new") { - name = factory.createStringLiteral("new"); - } - return factory.createMethodSignature( - [], - reuseNode(context, name), - reuseNode(context, method.questionToken), - typeParameters, - parameters, - returnType - ); - } + function typeFromObjectLiteralMethod(method, name, context) { + const returnType = createReturnFromSignature(method, context); + const typeParameters = reuseTypeParameters(method.typeParameters); + const parameters = method.parameters.every((p) => ensureParameter(p, context)); + return returnType && typeParameters && parameters; } function typeFromObjectLiteralAccessor(accessor, name, context) { const allAccessors = resolver.getAllAccessorDeclarations(accessor); - const getAccessorType = allAccessors.getAccessor && getTypeAnnotationFromAccessor(allAccessors.getAccessor); - const setAccessorType = allAccessors.setAccessor && getTypeAnnotationFromAccessor(allAccessors.setAccessor); + const getAccessorType = allAccessors.getAccessor && getTypeAnnotationFromAccessor2(allAccessors.getAccessor); + const setAccessorType = allAccessors.setAccessor && getTypeAnnotationFromAccessor2(allAccessors.setAccessor); if (getAccessorType !== void 0 && setAccessorType !== void 0) { - return withNewScope(context, accessor, () => { - const parameters = accessor.parameters.map((p) => ensureParameter(p, context)); - if (isGetAccessor(accessor)) { - return factory.updateGetAccessorDeclaration( - accessor, - [], - reuseNode(context, name), - parameters, - serializeExistingTypeNodeWithFallback(getAccessorType, context), - /*body*/ - void 0 - ); - } else { - return factory.updateSetAccessorDeclaration( - accessor, - [], - reuseNode(context, name), - parameters, - /*body*/ - void 0 - ); - } - }); - } else if (allAccessors.firstAccessor === accessor) { - const foundType = getAccessorType ? withNewScope(context, allAccessors.getAccessor, () => serializeExistingTypeNodeWithFallback(getAccessorType, context)) : setAccessorType ? withNewScope(context, allAccessors.setAccessor, () => serializeExistingTypeNodeWithFallback(setAccessorType, context)) : void 0; - const propertyType = foundType ?? inferAccessorType( - accessor, - allAccessors, - context, - /*symbol*/ - void 0 - ); - const propertySignature = factory.createPropertySignature( - allAccessors.setAccessor === void 0 ? [factory.createModifier(148 /* ReadonlyKeyword */)] : [], - reuseNode(context, name), - /*questionToken*/ - void 0, - propertyType - ); - return propertySignature; - } - } - function createUndefinedTypeNode() { - if (strictNullChecks) { - return factory.createKeywordTypeNode(157 /* UndefinedKeyword */); - } else { - return factory.createKeywordTypeNode(133 /* AnyKeyword */); - } - } - function typeFromPrimitiveLiteral(node, baseType, context, preserveLiterals, requiresAddingUndefined) { - let result; - if (preserveLiterals) { - if (node.kind === 224 /* PrefixUnaryExpression */ && node.operator === 40 /* PlusToken */) { - result = factory.createLiteralTypeNode(reuseNode(context, node.operand)); + const parameters = accessor.parameters.every((p) => ensureParameter(p, context)); + if (isGetAccessor(accessor)) { + return parameters && serializeExistingTypeAnnotation(getAccessorType); + } else { + return parameters; } - result = factory.createLiteralTypeNode(reuseNode(context, node)); - } else { - result = factory.createKeywordTypeNode(baseType); + } else if (allAccessors.firstAccessor === accessor) { + const foundType = getAccessorType ?? setAccessorType; + const propertyType = foundType ? serializeExistingTypeAnnotation(foundType) : inferAccessorType(accessor, allAccessors, context); + return propertyType; } - return syntacticResult(addUndefinedIfNeeded(result, requiresAddingUndefined, node, context)); + return false; } - function addUndefinedIfNeeded(node, addUndefined, owner, context) { - const parentDeclaration = owner && walkUpParenthesizedExpressions(owner).parent; - const optionalDeclaration = parentDeclaration && isDeclaration(parentDeclaration) && isOptionalDeclaration(parentDeclaration); - if (!strictNullChecks || !(addUndefined || optionalDeclaration)) return node; - if (!canAddUndefined(node)) { - context.tracker.reportInferenceFallback(node); - } - if (isUnionTypeNode(node)) { - return factory.createUnionTypeNode([...node.types, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); - } - return factory.createUnionTypeNode([node, factory.createKeywordTypeNode(157 /* UndefinedKeyword */)]); + function typeFromPrimitiveLiteral() { + return true; } function canAddUndefined(node) { if (!strictNullChecks) return true; @@ -137706,28 +134866,24 @@ function createSyntacticTypeNodeBuilder(options, resolver) { } return false; } - function createReturnFromSignature(fn, symbol, context, reportFallback = true) { - let returnType = failed; - const returnTypeNode = isJSDocConstructSignature(fn) ? getEffectiveTypeAnnotationNode(fn.parameters[0]) : getEffectiveReturnTypeNode(fn); + function createReturnFromSignature(fn, context) { + let returnType; + const returnTypeNode = getEffectiveReturnTypeNode(fn); if (returnTypeNode) { - returnType = syntacticResult(serializeTypeAnnotationOfDeclaration(returnTypeNode, context, fn, symbol)); - } else if (isValueSignatureDeclaration(fn)) { + returnType = serializeExistingTypeAnnotation(returnTypeNode); + } + if (!returnType && isValueSignatureDeclaration(fn)) { returnType = typeFromSingleReturnExpression(fn, context); } - return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, symbol, reportFallback && returnType.reportFallback && !returnTypeNode); + return returnType ?? inferReturnTypeOfSignatureSignature(fn, context); } function typeFromSingleReturnExpression(declaration, context) { let candidateExpr; if (declaration && !nodeIsMissing(declaration.body)) { - const flags = getFunctionFlags(declaration); - if (flags & 3 /* AsyncGenerator */) return failed; + if (getFunctionFlags(declaration) & 3 /* AsyncGenerator */) return void 0; const body = declaration.body; if (body && isBlock(body)) { forEachReturnStatement(body, (s) => { - if (s.parent !== body) { - candidateExpr = void 0; - return true; - } if (!candidateExpr) { candidateExpr = s.expression; } else { @@ -137740,21 +134896,9 @@ function createSyntacticTypeNodeBuilder(options, resolver) { } } if (candidateExpr) { - if (isContextuallyTyped(candidateExpr)) { - const type = isJSDocTypeAssertion(candidateExpr) ? getJSDocTypeAssertionType(candidateExpr) : isAsExpression(candidateExpr) || isTypeAssertionExpression(candidateExpr) ? candidateExpr.type : void 0; - if (type && !isConstTypeReference(type)) { - return syntacticResult(serializeExistingTypeNode(type, context)); - } - } else { - return typeFromExpression(candidateExpr, context); - } + return typeFromExpression(candidateExpr, context); } - return failed; - } - function isContextuallyTyped(node) { - return findAncestor(node.parent, (n) => { - return isCallExpression(n) || !isFunctionLikeDeclaration(n) && !!getEffectiveTypeAnnotationNode(n) || isJsxElement(n) || isJsxExpression(n); - }); + return void 0; } } @@ -137766,7 +134910,10 @@ __export(ts_JsTyping_exports, { isTypingUpToDate: () => isTypingUpToDate, loadSafeList: () => loadSafeList, loadTypesMap: () => loadTypesMap, + nodeCoreModuleList: () => nodeCoreModuleList, + nodeCoreModules: () => nodeCoreModules, nonRelativeModuleNameForTypingCache: () => nonRelativeModuleNameForTypingCache, + prefixedNodeCoreModuleList: () => prefixedNodeCoreModuleList, renderPackageNameValidationFailure: () => renderPackageNameValidationFailure, validatePackageName: () => validatePackageName }); @@ -137814,6 +134961,58 @@ function isTypingUpToDate(cachedTyping, availableTypingVersions) { const availableVersion = new Version(getProperty(availableTypingVersions, `ts${versionMajorMinor}`) || getProperty(availableTypingVersions, "latest")); return availableVersion.compareTo(cachedTyping.version) <= 0; } +var unprefixedNodeCoreModuleList = [ + "assert", + "assert/strict", + "async_hooks", + "buffer", + "child_process", + "cluster", + "console", + "constants", + "crypto", + "dgram", + "diagnostics_channel", + "dns", + "dns/promises", + "domain", + "events", + "fs", + "fs/promises", + "http", + "https", + "http2", + "inspector", + "module", + "net", + "os", + "path", + "perf_hooks", + "process", + "punycode", + "querystring", + "readline", + "repl", + "stream", + "stream/promises", + "string_decoder", + "timers", + "timers/promises", + "tls", + "trace_events", + "tty", + "url", + "util", + "util/types", + "v8", + "vm", + "wasi", + "worker_threads", + "zlib" +]; +var prefixedNodeCoreModuleList = unprefixedNodeCoreModuleList.map((name) => `node:${name}`); +var nodeCoreModuleList = [...unprefixedNodeCoreModuleList, ...prefixedNodeCoreModuleList]; +var nodeCoreModules = new Set(nodeCoreModuleList); function nonRelativeModuleNameForTypingCache(moduleName) { return nodeCoreModules.has(moduleName) ? "node" : moduleName; } @@ -138048,7 +135247,6 @@ function renderPackageNameValidationFailureWorker(typing, result, name, isScopeN return `'${typing}':: ${kind} name '${name}' contains non URI safe characters`; case 0 /* Ok */: return Debug.fail(); - // Shouldn't have called this. default: Debug.assertNever(result); } @@ -138425,7 +135623,6 @@ function getMeaningFromDeclaration(node) { case 277 /* ExportAssignment */: case 278 /* ExportDeclaration */: return 7 /* All */; - // An external module can be a Value case 307 /* SourceFile */: return 4 /* Namespace */ | 1 /* Value */; } @@ -138734,7 +135931,6 @@ function getNodeKind(node) { return isFunctionExpression(right) ? "method" /* memberFunctionElement */ : "property" /* memberVariableElement */; case 4 /* ThisProperty */: return "property" /* memberVariableElement */; - // property case 5 /* Property */: return isFunctionExpression(right) ? "method" /* memberFunctionElement */ : "property" /* memberVariableElement */; case 6 /* Prototype */: @@ -138772,6 +135968,9 @@ function getLineStartPositionForPosition(position, sourceFile) { const line = sourceFile.getLineAndCharacterOfPosition(position).line; return lineStarts[line]; } +function rangeContainsRange(r1, r2) { + return startEndContainsRange(r1.pos, r1.end, r2); +} function rangeContainsRangeExclusive(r1, r2) { return rangeContainsPositionExclusive(r1, r2.pos) && rangeContainsPositionExclusive(r1, r2.end); } @@ -138781,6 +135980,9 @@ function rangeContainsPosition(r, pos) { function rangeContainsPositionExclusive(r, pos) { return r.pos < pos && pos < r.end; } +function startEndContainsRange(start, end, range) { + return start <= range.pos && end >= range.end; +} function rangeContainsStartEnd(range, start, end) { return range.pos <= start && range.end >= end; } @@ -138822,7 +136024,6 @@ function isCompletedNode(n, sourceFile) { if (!n.arguments) { return true; } - // falls through case 213 /* CallExpression */: case 217 /* ParenthesizedExpression */: case 196 /* ParenthesizedType */: @@ -139551,19 +136752,16 @@ function getPossibleTypeArgumentsInfo(tokenIn, sourceFile) { token = findPrecedingMatchingToken(token, 23 /* OpenBracketToken */, sourceFile); if (!token) return void 0; break; - // Valid tokens in a type name. Skip. case 28 /* CommaToken */: nTypeArguments++; break; case 39 /* EqualsGreaterThanToken */: - // falls through case 80 /* Identifier */: case 11 /* StringLiteral */: case 9 /* NumericLiteral */: case 10 /* BigIntLiteral */: case 112 /* TrueKeyword */: case 97 /* FalseKeyword */: - // falls through case 114 /* TypeOfKeyword */: case 96 /* ExtendsKeyword */: case 143 /* KeyOfKeyword */: @@ -139800,7 +136998,7 @@ function createModuleSpecifierResolutionHost(program, host) { fileExists: (fileName) => program.fileExists(fileName), getCurrentDirectory: () => host.getCurrentDirectory(), readFile: maybeBind(host, host.readFile), - useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames) || program.useCaseSensitiveFileNames, + useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames), getSymlinkCache: maybeBind(host, host.getSymlinkCache) || program.getSymlinkCache, getModuleSpecifierCache: maybeBind(host, host.getModuleSpecifierCache), getPackageJsonInfoCache: () => { @@ -139813,9 +137011,7 @@ function createModuleSpecifierResolutionHost(program, host) { isSourceOfProjectReferenceRedirect: (fileName) => program.isSourceOfProjectReferenceRedirect(fileName), getNearestAncestorDirectoryWithPackageJson: maybeBind(host, host.getNearestAncestorDirectoryWithPackageJson), getFileIncludeReasons: () => program.getFileIncludeReasons(), - getCommonSourceDirectory: () => program.getCommonSourceDirectory(), - getDefaultResolutionModeForFile: (file) => program.getDefaultResolutionModeForFile(file), - getModeForResolutionAtIndex: (file, index) => program.getModeForResolutionAtIndex(file, index) + getCommonSourceDirectory: () => program.getCommonSourceDirectory() }; } function getModuleSpecifierResolverHost(program, host) { @@ -139914,7 +137110,7 @@ function insertImports(changes, sourceFile, imports, blankLineBetween, preferenc const importKindPredicate = decl.kind === 243 /* VariableStatement */ ? isRequireVariableStatement : isAnyImportSyntax; const existingImportStatements = filter(sourceFile.statements, importKindPredicate); const { comparer, isSorted } = ts_OrganizeImports_exports.getOrganizeImportsStringComparerWithDetection(existingImportStatements, preferences); - const sortedNewImports = isArray(imports) ? toSorted(imports, (a, b) => ts_OrganizeImports_exports.compareImportsOrRequireStatements(a, b, comparer)) : [imports]; + const sortedNewImports = isArray(imports) ? stableSort(imports, (a, b) => ts_OrganizeImports_exports.compareImportsOrRequireStatements(a, b, comparer)) : [imports]; if (!(existingImportStatements == null ? void 0 : existingImportStatements.length)) { if (isFullSourceFile(sourceFile)) { changes.insertNodesAtTopOfFile(sourceFile, sortedNewImports, blankLineBetween); @@ -140277,6 +137473,13 @@ function signatureToDisplayParts(typechecker, signature, enclosingDeclaration, f ); }); } +function nodeToDisplayParts(node, enclosingDeclaration) { + const file = enclosingDeclaration.getSourceFile(); + return mapToDisplayParts((writer) => { + const printer = createPrinterWithRemoveCommentsOmitTrailingSemicolon(); + printer.writeNode(4 /* Unspecified */, node, file, writer); + }); +} function isImportOrExportSpecifierName(location) { return !!location.parent && isImportOrExportSpecifier(location.parent) && location.parent.propertyName === location; } @@ -140517,7 +137720,7 @@ function getTypeNodeIfAccessible(type, enclosingScope, program, host) { const checker = program.getTypeChecker(); let typeIsAccessible = true; const notAccessible = () => typeIsAccessible = false; - const res = checker.typeToTypeNode(type, enclosingScope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */, { + const res = checker.typeToTypeNode(type, enclosingScope, 1 /* NoTruncation */, { trackSymbol: (symbol, declaration, meaning) => { typeIsAccessible = typeIsAccessible && checker.isSymbolAccessible( symbol, @@ -140652,33 +137855,28 @@ function tryAndIgnoreErrors(cb) { function tryIOAndConsumeErrors(host, toApply, ...args) { return tryAndIgnoreErrors(() => toApply && toApply.apply(host, args)); } -function findPackageJsons(startDirectory, host) { +function findPackageJsons(startDirectory, host, stopDirectory) { const paths = []; - forEachAncestorDirectoryStoppingAtGlobalCache( - host, - startDirectory, - (ancestor) => { - const currentConfigPath = combinePaths(ancestor, "package.json"); - if (tryFileExists(host, currentConfigPath)) { - paths.push(currentConfigPath); - } + forEachAncestorDirectory(startDirectory, (ancestor) => { + if (ancestor === stopDirectory) { + return true; } - ); + const currentConfigPath = combinePaths(ancestor, "package.json"); + if (tryFileExists(host, currentConfigPath)) { + paths.push(currentConfigPath); + } + }); return paths; } function findPackageJson(directory, host) { let packageJson; - forEachAncestorDirectoryStoppingAtGlobalCache( - host, - directory, - (ancestor) => { - if (ancestor === "node_modules") return true; - packageJson = findConfigFile(ancestor, (f) => tryFileExists(host, f), "package.json"); - if (packageJson) { - return true; - } + forEachAncestorDirectory(directory, (ancestor) => { + if (ancestor === "node_modules") return true; + packageJson = findConfigFile(ancestor, (f) => tryFileExists(host, f), "package.json"); + if (packageJson) { + return true; } - ); + }); return packageJson; } function getPackageJsonsVisibleToFile(fileName, host) { @@ -140686,19 +137884,15 @@ function getPackageJsonsVisibleToFile(fileName, host) { return []; } const packageJsons = []; - forEachAncestorDirectoryStoppingAtGlobalCache( - host, - getDirectoryPath(fileName), - (ancestor) => { - const packageJsonFileName = combinePaths(ancestor, "package.json"); - if (host.fileExists(packageJsonFileName)) { - const info = createPackageJsonInfo(packageJsonFileName, host); - if (info) { - packageJsons.push(info); - } + forEachAncestorDirectory(getDirectoryPath(fileName), (ancestor) => { + const packageJsonFileName = combinePaths(ancestor, "package.json"); + if (host.fileExists(packageJsonFileName)) { + const info = createPackageJsonInfo(packageJsonFileName, host); + if (info) { + packageJsons.push(info); } } - ); + }); return packageJsons; } function createPackageJsonInfo(fileName, host) { @@ -140755,7 +137949,7 @@ function createPackageJsonImportFilter(fromFile, preferences, host) { let sourceFileCache; return { allowsImportingAmbientModule, - getSourceFileInfo, + allowsImportingSourceFile, allowsImportingSpecifier }; function moduleSpecifierIsCoveredByPackageJson(specifier) { @@ -140794,9 +137988,9 @@ function createPackageJsonImportFilter(fromFile, preferences, host) { ambientModuleCache.set(moduleSymbol, result); return result; } - function getSourceFileInfo(sourceFile, moduleSpecifierResolutionHost) { + function allowsImportingSourceFile(sourceFile, moduleSpecifierResolutionHost) { if (!packageJsons.length) { - return { importable: true, packageName: void 0 }; + return true; } if (!sourceFileCache) { sourceFileCache = /* @__PURE__ */ new Map(); @@ -140806,14 +138000,12 @@ function createPackageJsonImportFilter(fromFile, preferences, host) { return cached; } } - const packageName = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost); - if (!packageName) { - const result2 = { importable: true, packageName }; - sourceFileCache.set(sourceFile, result2); - return result2; + const moduleSpecifier = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost); + if (!moduleSpecifier) { + sourceFileCache.set(sourceFile, true); + return true; } - const importable = moduleSpecifierIsCoveredByPackageJson(packageName); - const result = { importable, packageName }; + const result = moduleSpecifierIsCoveredByPackageJson(moduleSpecifier); sourceFileCache.set(sourceFile, result); return result; } @@ -140827,7 +138019,7 @@ function createPackageJsonImportFilter(fromFile, preferences, host) { return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier); } function isAllowedCoreNodeModulesImport(moduleSpecifier) { - if (isFullSourceFile(fromFile) && isSourceFileJS(fromFile) && nodeCoreModules.has(moduleSpecifier)) { + if (isFullSourceFile(fromFile) && isSourceFileJS(fromFile) && ts_JsTyping_exports.nodeCoreModules.has(moduleSpecifier)) { if (usesNodeCoreModules === void 0) { usesNodeCoreModules = consumesNodeCoreModules(fromFile); } @@ -140864,7 +138056,7 @@ function createPackageJsonImportFilter(fromFile, preferences, host) { } } function consumesNodeCoreModules(sourceFile) { - return some(sourceFile.imports, ({ text }) => nodeCoreModules.has(text)); + return some(sourceFile.imports, ({ text }) => ts_JsTyping_exports.nodeCoreModules.has(text)); } function isInsideNodeModules(fileOrDirectory) { return contains(getPathComponents(fileOrDirectory), "node_modules"); @@ -140923,12 +138115,36 @@ function mapOneOrMany(valueOrArray, f, resultSelector = identity) { function firstOrOnly(valueOrArray) { return isArray(valueOrArray) ? first(valueOrArray) : valueOrArray; } +function getNamesForExportedSymbol(symbol, scriptTarget) { + if (needsNameFromDeclaration(symbol)) { + const fromDeclaration = getDefaultLikeExportNameFromDeclaration(symbol); + if (fromDeclaration) return fromDeclaration; + const fileNameCase = moduleSymbolToValidIdentifier( + getSymbolParentOrFail(symbol), + scriptTarget, + /*forceCapitalize*/ + false + ); + const capitalized = moduleSymbolToValidIdentifier( + getSymbolParentOrFail(symbol), + scriptTarget, + /*forceCapitalize*/ + true + ); + if (fileNameCase === capitalized) return fileNameCase; + return [fileNameCase, capitalized]; + } + return symbol.name; +} function getNameForExportedSymbol(symbol, scriptTarget, preferCapitalized) { - if (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */) { + if (needsNameFromDeclaration(symbol)) { return getDefaultLikeExportNameFromDeclaration(symbol) || moduleSymbolToValidIdentifier(getSymbolParentOrFail(symbol), scriptTarget, !!preferCapitalized); } return symbol.name; } +function needsNameFromDeclaration(symbol) { + return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */); +} function getDefaultLikeExportNameFromDeclaration(symbol) { return firstDefined(symbol.declarations, (d) => { var _a, _b, _c; @@ -140938,13 +138154,7 @@ function getDefaultLikeExportNameFromDeclaration(symbol) { if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) { return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text; } - const name = (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text; - if (name) { - return name; - } - if (symbol.parent && !isExternalModuleSymbol(symbol.parent)) { - return symbol.parent.getName(); - } + return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text; }); } function getSymbolParentOrFail(symbol) { @@ -140963,7 +138173,7 @@ function moduleSymbolToValidIdentifier(moduleSymbol, target, forceCapitalize) { return moduleSpecifierToValidIdentifier(removeFileExtension(stripQuotes(moduleSymbol.name)), target, forceCapitalize); } function moduleSpecifierToValidIdentifier(moduleSpecifier, target, forceCapitalize) { - const baseName = getBaseFileName(removeSuffix(removeFileExtension(moduleSpecifier), "/index")); + const baseName = getBaseFileName(removeSuffix(moduleSpecifier, "/index")); let res = ""; let lastCharWasValid = true; const firstCharCode = baseName.charCodeAt(0); @@ -141002,20 +138212,25 @@ function stringContainsAt(haystack, needle, startIndex) { function startsWithUnderscore(name) { return name.charCodeAt(0) === 95 /* _ */; } +function isGlobalDeclaration(declaration) { + return !isNonGlobalDeclaration(declaration); +} +function isNonGlobalDeclaration(declaration) { + const sourceFile = declaration.getSourceFile(); + if (!sourceFile.externalModuleIndicator && !sourceFile.commonJsModuleIndicator) { + return false; + } + return isInJSFile(declaration) || !findAncestor(declaration, (d) => isModuleDeclaration(d) && isGlobalScopeAugmentation(d)); +} function isDeprecatedDeclaration(decl) { return !!(getCombinedNodeFlagsAlwaysIncludeJSDoc(decl) & 65536 /* Deprecated */); } function shouldUseUriStyleNodeCoreModules(file, program) { - let decisionFromFile; - for (const node of file.imports) { - if (nodeCoreModules.has(node.text) && !exclusivelyPrefixedNodeCoreModules.has(node.text)) { - if (startsWith(node.text, "node:")) { - return true; - } else { - decisionFromFile = false; - } + const decisionFromFile = firstDefined(file.imports, (node) => { + if (ts_JsTyping_exports.nodeCoreModules.has(node.text)) { + return startsWith(node.text, "node:"); } - } + }); return decisionFromFile ?? program.usesUriStyleNodeCoreModules; } function getNewLineKind(newLineCharacter) { @@ -141102,13 +138317,9 @@ function fileShouldUseJavaScriptRequire(file, program, host, preferRequire) { if (!hasJSFileExtension(fileName)) { return false; } - const compilerOptions = typeof file === "string" ? program.getCompilerOptions() : program.getCompilerOptionsForFile(file); + const compilerOptions = program.getCompilerOptions(); const moduleKind = getEmitModuleKind(compilerOptions); - const sourceFileLike = typeof file === "string" ? { - fileName: file, - impliedNodeFormat: getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), (_a = program.getPackageJsonInfoCache) == null ? void 0 : _a.call(program), host, compilerOptions) - } : file; - const impliedNodeFormat = getImpliedNodeFormatForEmitWorker(sourceFileLike, compilerOptions); + const impliedNodeFormat = typeof file === "string" ? getImpliedNodeFormatForFile(toPath(file, host.getCurrentDirectory(), hostGetCanonicalFileName(host)), (_a = program.getPackageJsonInfoCache) == null ? void 0 : _a.call(program), host, compilerOptions) : file.impliedNodeFormat; if (impliedNodeFormat === 99 /* ESNext */) { return false; } @@ -141175,7 +138386,6 @@ var ExportKind = /* @__PURE__ */ ((ExportKind3) => { ExportKind3[ExportKind3["Default"] = 1] = "Default"; ExportKind3[ExportKind3["ExportEquals"] = 2] = "ExportEquals"; ExportKind3[ExportKind3["UMD"] = 3] = "UMD"; - ExportKind3[ExportKind3["Module"] = 4] = "Module"; return ExportKind3; })(ExportKind || {}); function createCacheableExportInfoMap(host) { @@ -141221,7 +138431,6 @@ function createCacheableExportInfoMap(host) { const namedSymbol = isDefault && getLocalSymbolForExportDefault(symbol) || symbol; const names = exportKind === 0 /* Named */ || isExternalModuleSymbol(namedSymbol) ? unescapeLeadingUnderscores(symbolTableKey) : getNamesForExportedSymbol( namedSymbol, - checker, /*scriptTarget*/ void 0 ); @@ -141366,64 +138575,45 @@ function createCacheableExportInfoMap(host) { return !packageDeepestNodeModulesPath || startsWith(info.moduleFileName, packageDeepestNodeModulesPath); } } -function isImportable(program, fromFile, toFile, toModule, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) { +function isImportableFile(program, from, to, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) { var _a; - if (!toFile) { - let useNodePrefix; - const moduleName = stripQuotes(toModule.name); - if (nodeCoreModules.has(moduleName) && (useNodePrefix = shouldUseUriStyleNodeCoreModules(fromFile, program)) !== void 0) { - return useNodePrefix === startsWith(moduleName, "node:"); - } - return !packageJsonFilter || packageJsonFilter.allowsImportingAmbientModule(toModule, moduleSpecifierResolutionHost) || fileContainsPackageImport(fromFile, moduleName); - } - Debug.assertIsDefined(toFile); - if (fromFile === toFile) return false; - const cachedResult = moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.get(fromFile.path, toFile.path, preferences, {}); + if (from === to) return false; + const cachedResult = moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.get(from.path, to.path, preferences, {}); if ((cachedResult == null ? void 0 : cachedResult.isBlockedByPackageJsonDependencies) !== void 0) { - return !cachedResult.isBlockedByPackageJsonDependencies || !!cachedResult.packageName && fileContainsPackageImport(fromFile, cachedResult.packageName); + return !cachedResult.isBlockedByPackageJsonDependencies; } const getCanonicalFileName = hostGetCanonicalFileName(moduleSpecifierResolutionHost); const globalTypingsCache = (_a = moduleSpecifierResolutionHost.getGlobalTypingsCacheLocation) == null ? void 0 : _a.call(moduleSpecifierResolutionHost); const hasImportablePath = !!ts_moduleSpecifiers_exports.forEachFileNameOfModule( - fromFile.fileName, - toFile.fileName, + from.fileName, + to.fileName, moduleSpecifierResolutionHost, /*preferSymlinks*/ false, (toPath3) => { - const file = program.getSourceFile(toPath3); - return (file === toFile || !file) && isImportablePath( - fromFile.fileName, - toPath3, - getCanonicalFileName, - globalTypingsCache, - moduleSpecifierResolutionHost - ); + const toFile = program.getSourceFile(toPath3); + return (toFile === to || !toFile) && isImportablePath(from.fileName, toPath3, getCanonicalFileName, globalTypingsCache); } ); if (packageJsonFilter) { - const importInfo = hasImportablePath ? packageJsonFilter.getSourceFileInfo(toFile, moduleSpecifierResolutionHost) : void 0; - moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.setBlockedByPackageJsonDependencies(fromFile.path, toFile.path, preferences, {}, importInfo == null ? void 0 : importInfo.packageName, !(importInfo == null ? void 0 : importInfo.importable)); - return !!(importInfo == null ? void 0 : importInfo.importable) || hasImportablePath && !!(importInfo == null ? void 0 : importInfo.packageName) && fileContainsPackageImport(fromFile, importInfo.packageName); + const isAutoImportable = hasImportablePath && packageJsonFilter.allowsImportingSourceFile(to, moduleSpecifierResolutionHost); + moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.setBlockedByPackageJsonDependencies(from.path, to.path, preferences, {}, !isAutoImportable); + return isAutoImportable; } return hasImportablePath; } -function fileContainsPackageImport(sourceFile, packageName) { - return sourceFile.imports && sourceFile.imports.some((i) => i.text === packageName || i.text.startsWith(packageName + "/")); -} -function isImportablePath(fromPath, toPath3, getCanonicalFileName, globalCachePath, host) { - const toNodeModules = forEachAncestorDirectoryStoppingAtGlobalCache( - host, - toPath3, - (ancestor) => getBaseFileName(ancestor) === "node_modules" ? ancestor : void 0 - ); +function isImportablePath(fromPath, toPath3, getCanonicalFileName, globalCachePath) { + const toNodeModules = forEachAncestorDirectory(toPath3, (ancestor) => getBaseFileName(ancestor) === "node_modules" ? ancestor : void 0); const toNodeModulesParent = toNodeModules && getDirectoryPath(getCanonicalFileName(toNodeModules)); return toNodeModulesParent === void 0 || startsWith(getCanonicalFileName(fromPath), toNodeModulesParent) || !!globalCachePath && startsWith(getCanonicalFileName(globalCachePath), toNodeModulesParent); } function forEachExternalModuleToImportFrom(program, host, preferences, useAutoImportProvider, cb) { var _a, _b; const useCaseSensitiveFileNames2 = hostUsesCaseSensitiveFileNames(host); - const excludePatterns = preferences.autoImportFileExcludePatterns && getIsExcludedPatterns(preferences, useCaseSensitiveFileNames2); + const excludePatterns = preferences.autoImportFileExcludePatterns && mapDefined(preferences.autoImportFileExcludePatterns, (spec) => { + const pattern = getSubPatternFromSpec(spec, "", "exclude"); + return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames2) : void 0; + }); forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), excludePatterns, host, (module2, file) => cb( module2, file, @@ -141456,17 +138646,25 @@ function forEachExternalModuleToImportFrom(program, host, preferences, useAutoIm (_b = host.log) == null ? void 0 : _b.call(host, `forEachExternalModuleToImportFrom autoImportProvider: ${timestamp() - start}`); } } -function getIsExcludedPatterns(preferences, useCaseSensitiveFileNames2) { - return mapDefined(preferences.autoImportFileExcludePatterns, (spec) => { - const pattern = getSubPatternFromSpec(spec, "", "exclude"); - return pattern ? getRegexFromPattern(pattern, useCaseSensitiveFileNames2) : void 0; - }); -} function forEachExternalModule(checker, allSourceFiles, excludePatterns, host, cb) { - var _a; - const isExcluded = excludePatterns && getIsExcluded(excludePatterns, host); + var _a, _b; + const realpathsWithSymlinks = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath(); + const isExcluded = excludePatterns && (({ fileName, path }) => { + if (excludePatterns.some((p) => p.test(fileName))) return true; + if ((realpathsWithSymlinks == null ? void 0 : realpathsWithSymlinks.size) && pathContainsNodeModules(fileName)) { + let dir = getDirectoryPath(fileName); + return forEachAncestorDirectory(getDirectoryPath(path), (dirPath) => { + const symlinks = realpathsWithSymlinks.get(ensureTrailingDirectorySeparator(dirPath)); + if (symlinks) { + return symlinks.some((s) => excludePatterns.some((p) => p.test(fileName.replace(dir, s)))); + } + dir = getDirectoryPath(dir); + }) ?? false; + } + return false; + }); for (const ambient of checker.getAmbientModules()) { - if (!ambient.name.includes("*") && !(excludePatterns && ((_a = ambient.declarations) == null ? void 0 : _a.every((d) => isExcluded(d.getSourceFile()))))) { + if (!ambient.name.includes("*") && !(excludePatterns && ((_b = ambient.declarations) == null ? void 0 : _b.every((d) => isExcluded(d.getSourceFile()))))) { cb( ambient, /*sourceFile*/ @@ -141480,32 +138678,6 @@ function forEachExternalModule(checker, allSourceFiles, excludePatterns, host, c } } } -function getIsExcluded(excludePatterns, host) { - var _a; - const realpathsWithSymlinks = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath(); - return ({ fileName, path }) => { - if (excludePatterns.some((p) => p.test(fileName))) return true; - if ((realpathsWithSymlinks == null ? void 0 : realpathsWithSymlinks.size) && pathContainsNodeModules(fileName)) { - let dir = getDirectoryPath(fileName); - return forEachAncestorDirectoryStoppingAtGlobalCache( - host, - getDirectoryPath(path), - (dirPath) => { - const symlinks = realpathsWithSymlinks.get(ensureTrailingDirectorySeparator(dirPath)); - if (symlinks) { - return symlinks.some((s) => excludePatterns.some((p) => p.test(fileName.replace(dir, s)))); - } - dir = getDirectoryPath(dir); - } - ) ?? false; - } - return false; - }; -} -function getIsFileExcluded(host, preferences) { - if (!preferences.autoImportFileExcludePatterns) return () => false; - return getIsExcluded(getIsExcludedPatterns(preferences, hostUsesCaseSensitiveFileNames(host)), host); -} function getExportInfoMap(importingFile, host, program, preferences, cancellationToken) { var _a, _b, _c, _d, _e; const start = timestamp(); @@ -141536,7 +138708,7 @@ function getExportInfoMap(importingFile, host, program, preferences, cancellatio true, (moduleSymbol, moduleFile, program2, isFromPackageJson) => { if (++moduleCount % 100 === 0) cancellationToken == null ? void 0 : cancellationToken.throwIfCancellationRequested(); - const seenExports = /* @__PURE__ */ new Set(); + const seenExports = /* @__PURE__ */ new Map(); const checker = program2.getTypeChecker(); const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker); if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) { @@ -141576,29 +138748,17 @@ function getExportInfoMap(importingFile, host, program, preferences, cancellatio } function getDefaultLikeExportInfo(moduleSymbol, checker) { const exportEquals = checker.resolveExternalModuleSymbol(moduleSymbol); - if (exportEquals !== moduleSymbol) { - const defaultExport2 = checker.tryGetMemberInModuleExports("default" /* Default */, exportEquals); - if (defaultExport2) return { symbol: defaultExport2, exportKind: 1 /* Default */ }; - return { symbol: exportEquals, exportKind: 2 /* ExportEquals */ }; - } + if (exportEquals !== moduleSymbol) return { symbol: exportEquals, exportKind: 2 /* ExportEquals */ }; const defaultExport = checker.tryGetMemberInModuleExports("default" /* Default */, moduleSymbol); if (defaultExport) return { symbol: defaultExport, exportKind: 1 /* Default */ }; } function isImportableSymbol(symbol, checker) { return !checker.isUndefinedSymbol(symbol) && !checker.isUnknownSymbol(symbol) && !isKnownSymbol(symbol) && !isPrivateIdentifierSymbol(symbol); } -function getNamesForExportedSymbol(defaultExport, checker, scriptTarget) { - let names; - forEachNameOfDefaultExport(defaultExport, checker, scriptTarget, (name, capitalizedName) => { - names = capitalizedName ? [name, capitalizedName] : name; - return true; - }); - return Debug.checkDefined(names); -} -function forEachNameOfDefaultExport(defaultExport, checker, scriptTarget, cb) { +function forEachNameOfDefaultExport(defaultExport, checker, compilerOptions, preferCapitalizedNames, cb) { let chain; let current = defaultExport; - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); while (current) { const fromDeclaration = getDefaultLikeExportNameFromDeclaration(current); if (fromDeclaration) { @@ -141615,20 +138775,7 @@ function forEachNameOfDefaultExport(defaultExport, checker, scriptTarget, cb) { } for (const symbol of chain ?? emptyArray) { if (symbol.parent && isExternalModuleSymbol(symbol.parent)) { - const final = cb( - moduleSymbolToValidIdentifier( - symbol.parent, - scriptTarget, - /*forceCapitalize*/ - false - ), - moduleSymbolToValidIdentifier( - symbol.parent, - scriptTarget, - /*forceCapitalize*/ - true - ) - ); + const final = cb(moduleSymbolToValidIdentifier(symbol.parent, getEmitScriptTarget(compilerOptions), preferCapitalizedNames)); if (final) return final; } } @@ -141871,7 +139018,6 @@ function canFollow(keyword1, keyword2) { case 126 /* StaticKeyword */: case 129 /* AccessorKeyword */: return true; - // Allow things like "public get", "public constructor" and "public static". default: return false; } @@ -142295,8 +139441,8 @@ function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) } } function tryClassifyTripleSlashComment(start, width) { - const tripleSlashXMLCommentRegEx = /^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m; - const attributeRegex = /(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g; + const tripleSlashXMLCommentRegEx = /^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im; + const attributeRegex = /(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img; const text = sourceFile.text.substr(start, width); const match = tripleSlashXMLCommentRegEx.exec(text); if (!match) { @@ -142682,7 +139828,6 @@ var DocumentHighlights; if (statement.kind === 251 /* ContinueStatement */) { return false; } - // falls through case 248 /* ForStatement */: case 249 /* ForInStatement */: case 250 /* ForOfStatement */: @@ -142728,9 +139873,10 @@ var DocumentHighlights; return [...nodes, container]; } return nodes; - // Syntactically invalid positions that the parser might produce anyway - default: + case 210 /* ObjectLiteralExpression */: return void 0; + default: + Debug.assertNever(container, "Invalid container kind."); } } function pushKeywordIf(keywordList, token, ...expected) { @@ -144011,7 +141157,7 @@ function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImpo } // src/services/sourcemaps.ts -var base64UrlRegExp = /^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/; +var base64UrlRegExp = /^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/; function getSourceMapper(host) { const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames()); const currentDirectory = host.getCurrentDirectory(); @@ -144155,7 +141301,7 @@ function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) { program.getSemanticDiagnostics(sourceFile, cancellationToken); const diags = []; const checker = program.getTypeChecker(); - const isCommonJSFile = program.getImpliedNodeFormatForEmit(sourceFile) === 1 /* CommonJS */ || fileExtensionIsOneOf(sourceFile.fileName, [".cts" /* Cts */, ".cjs" /* Cjs */]); + const isCommonJSFile = sourceFile.impliedNodeFormat === 1 /* CommonJS */ || fileExtensionIsOneOf(sourceFile.fileName, [".cts" /* Cts */, ".cjs" /* Cjs */]); if (!isCommonJSFile && sourceFile.commonJsModuleIndicator && (programContainsEsModules(program) || compilerOptionsIndicateEsModules(program.getCompilerOptions())) && containsTopLevelCommonjs(sourceFile)) { diags.push(createDiagnosticForNode(getErrorNodeFromCommonJsIndicator(sourceFile.commonJsModuleIndicator), Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module)); } @@ -144176,8 +141322,7 @@ function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) { } addRange(diags, sourceFile.bindSuggestionDiagnostics); addRange(diags, program.getSuggestionDiagnostics(sourceFile, cancellationToken)); - diags.sort((d1, d2) => d1.start - d2.start); - return diags; + return diags.sort((d1, d2) => d1.start - d2.start); function check(node) { if (isJsFile) { if (canBeConvertedToClass(node, checker)) { @@ -144308,10 +141453,8 @@ function isFixablePromiseArgument(arg, checker) { if (functionFlags & 1 /* Generator */) { return false; } - // falls through case 219 /* ArrowFunction */: visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true); - // falls through case 106 /* NullKeyword */: return true; case 80 /* Identifier */: @@ -144425,7 +141568,6 @@ function transpileWorker(input, transpileOptions, declaration) { options.isolatedDeclarations = true; } else { options.declaration = false; - options.declarationMap = false; } const newLine = getNewLineCharacter(options); const compilerHost = { @@ -144621,8 +141763,7 @@ function getContainers(declaration) { } container = getContainerNode(container); } - containers.reverse(); - return containers; + return containers.reverse(); } function compareNavigateToItems(i1, i2) { return compareValues(i1.matchKind, i2.matchKind) || compareStringsCaseSensitiveUI(i1.name, i2.name); @@ -144984,7 +142125,6 @@ function addChildrenRecursively(node) { Debug.assertNever(special); } } - // falls through default: if (hasJSDocNodes(node)) { forEach(node.jsDoc, (jsDoc) => { @@ -145147,7 +142287,6 @@ function isSynthesized(node) { return !!(node.flags & 16 /* Synthesized */); } function isOwnChild(n, parent2) { - if (n.parent === void 0) return false; const par = isModuleBlock(n.parent) ? n.parent.parent : n.parent; return par === parent2.node || contains(parent2.additionalNodes, par); } @@ -145404,12 +142543,13 @@ function isFunctionOrClassExpression(node) { } function cleanText(text) { text = text.length > maxLength ? text.substring(0, maxLength) + "..." : text; - return text.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g, ""); + return text.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g, ""); } // src/services/_namespaces/ts.refactor.ts var ts_refactor_exports = {}; __export(ts_refactor_exports, { + addExportToChanges: () => addExportToChanges, addExportsInOldFile: () => addExportsInOldFile, addImportsForMovedSymbols: () => addImportsForMovedSymbols, addNewFileToTsconfig: () => addNewFileToTsconfig, @@ -145421,8 +142561,13 @@ __export(ts_refactor_exports, { convertStringOrTemplateLiteral: () => ts_refactor_convertStringOrTemplateLiteral_exports, convertToOptionalChainExpression: () => ts_refactor_convertToOptionalChainExpression_exports, createNewFileName: () => createNewFileName, + deleteMovedStatements: () => deleteMovedStatements, + deleteUnusedImports: () => deleteUnusedImports, + deleteUnusedOldImports: () => deleteUnusedOldImports, doChangeNamedToNamespaceOrDefault: () => doChangeNamedToNamespaceOrDefault, extractSymbol: () => ts_refactor_extractSymbol_exports, + filterImport: () => filterImport, + forEachImportInStatement: () => forEachImportInStatement, generateGetAccessorAndSetAccessor: () => ts_refactor_generateGetAccessorAndSetAccessor_exports, getApplicableRefactors: () => getApplicableRefactors, getEditsForRefactor: () => getEditsForRefactor, @@ -145430,12 +142575,16 @@ __export(ts_refactor_exports, { getIdentifierForNode: () => getIdentifierForNode, getNewStatementsAndRemoveFromOldFile: () => getNewStatementsAndRemoveFromOldFile, getStatementsToMove: () => getStatementsToMove, + getTopLevelDeclarationStatement: () => getTopLevelDeclarationStatement, getUsageInfo: () => getUsageInfo, inferFunctionReturnType: () => ts_refactor_inferFunctionReturnType_exports, - isInImport: () => isInImport, isRefactorErrorInfo: () => isRefactorErrorInfo, + isTopLevelDeclaration: () => isTopLevelDeclaration, + moduleSpecifierFromImport: () => moduleSpecifierFromImport, + nameOfTopLevelDeclaration: () => nameOfTopLevelDeclaration, refactorKindBeginsWith: () => refactorKindBeginsWith, - registerRefactor: () => registerRefactor + registerRefactor: () => registerRefactor, + updateImportsInOtherFiles: () => updateImportsInOtherFiles }); // src/services/refactorProvider.ts @@ -145579,7 +142728,6 @@ function changeExport(exportingSourceFile, { wasDefault, exportNode, exportName changes.replaceNode(exportingSourceFile, exportNode, factory.createExportDefault(Debug.checkDefined(decl.initializer, "Initializer was previously known to be present"))); break; } - // falls through case 266 /* EnumDeclaration */: case 265 /* TypeAliasDeclaration */: case 267 /* ModuleDeclaration */: @@ -145870,9 +143018,9 @@ function doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, toConve const namespaceImportName = namespaceNameConflicts ? getUniqueName(preferredName, sourceFile) : preferredName; const neededNamedImports = /* @__PURE__ */ new Set(); for (const element of toConvert.elements) { - const propertyName = element.propertyName || element.name; + const propertyName = (element.propertyName || element.name).text; ts_FindAllReferences_exports.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, (id) => { - const access = propertyName.kind === 11 /* StringLiteral */ ? factory.createElementAccessExpression(factory.createIdentifier(namespaceImportName), factory.cloneNode(propertyName)) : factory.createPropertyAccessExpression(factory.createIdentifier(namespaceImportName), factory.cloneNode(propertyName)); + const access = factory.createPropertyAccessExpression(factory.createIdentifier(namespaceImportName), propertyName); if (isShorthandPropertyAssignment(id.parent)) { changes.replaceNode(sourceFile, id.parent, factory.createPropertyAssignment(id.text, access)); } else if (isExportSpecifier(id.parent)) { @@ -145888,7 +143036,7 @@ function doChangeNamedToNamespaceOrDefault(sourceFile, program, changes, toConve shouldUseDefault ? factory.createIdentifier(namespaceImportName) : factory.createNamespaceImport(factory.createIdentifier(namespaceImportName)) ); if (neededNamedImports.size && isImportDeclaration(importDecl)) { - const newNamedImports = arrayFrom(neededNamedImports.values(), (element) => factory.createImportSpecifier(element.isTypeOnly, element.propertyName && factory.cloneNode(element.propertyName), factory.cloneNode(element.name))); + const newNamedImports = arrayFrom(neededNamedImports.values(), (element) => factory.createImportSpecifier(element.isTypeOnly, element.propertyName && factory.createIdentifier(element.propertyName.text), factory.createIdentifier(element.name.text))); changes.insertNodeAfter(sourceFile, toConvert.parent.parent, createImport( importDecl, /*defaultImportName*/ @@ -146064,7 +143212,7 @@ function flattenTypeLiteralNodeReference(checker, selection) { } if (isIntersectionTypeNode(selection)) { const result = []; - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); for (const type of selection.types) { const flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type); if (!flattenedTypeMembers || !flattenedTypeMembers.every((type2) => type2.name && addToSeen(seen, getNameFromPropertyName(type2.name)))) { @@ -146439,7 +143587,7 @@ function updateImportsInOtherFiles(changes, program, host, oldFile, movedSymbols deleteUnusedImports(sourceFile, importNode, changes, shouldMove); const pathToTargetFileWithExtension = resolvePath(getDirectoryPath(getNormalizedAbsolutePath(oldFile.fileName, program.getCurrentDirectory())), targetFileName); if (getStringComparer(!program.useCaseSensitiveFileNames())(pathToTargetFileWithExtension, sourceFile.fileName) === 0 /* EqualTo */) return; - const newModuleSpecifier = ts_moduleSpecifiers_exports.getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.fileName, pathToTargetFileWithExtension, createModuleSpecifierResolutionHost(program, host)); + const newModuleSpecifier = getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.fileName, pathToTargetFileWithExtension, createModuleSpecifierResolutionHost(program, host)); const newImportDeclaration = filterImport(importNode, makeStringLiteral(newModuleSpecifier, quotePreference), shouldMove); if (newImportDeclaration) changes.insertNodeAfter(sourceFile, statement, newImportDeclaration); const ns = getNamespaceLikeImport(importNode); @@ -146686,7 +143834,6 @@ function getNamesToExportInCommonJS(decl) { case 262 /* FunctionDeclaration */: case 263 /* ClassDeclaration */: return [decl.name.text]; - // TODO: GH#18217 case 243 /* VariableStatement */: return mapDefined(decl.declarationList.declarations, (d) => isIdentifier(d.name) ? d.name.text : void 0); case 267 /* ModuleDeclaration */: @@ -146851,7 +143998,7 @@ function isPureImport(node) { return false; } } -function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PURE__ */ new Set(), enclosingRange) { +function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PURE__ */ new Set()) { var _a; const movedSymbols = /* @__PURE__ */ new Set(); const oldImportsNeededByTargetFile = /* @__PURE__ */ new Map(); @@ -146867,23 +144014,24 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR } const unusedImportsFromOldFile = /* @__PURE__ */ new Set(); for (const statement of toMove) { - forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => { - if (!some(symbol.declarations)) { + forEachReference(statement, checker, (symbol, isValidTypeOnlyUseSite) => { + if (!symbol.declarations || isGlobalType(checker, symbol)) { return; } if (existingTargetLocals.has(skipAlias(symbol, checker))) { unusedImportsFromOldFile.add(symbol); return; } - const importedDeclaration = find(symbol.declarations, isInImport); - if (importedDeclaration) { - const prevIsTypeOnly = oldImportsNeededByTargetFile.get(symbol); - oldImportsNeededByTargetFile.set(symbol, [ - prevIsTypeOnly === void 0 ? isValidTypeOnlyUseSite : prevIsTypeOnly && isValidTypeOnlyUseSite, - tryCast(importedDeclaration, (d) => isImportSpecifier(d) || isImportClause(d) || isNamespaceImport(d) || isImportEqualsDeclaration(d) || isBindingElement(d) || isVariableDeclaration(d)) - ]); - } else if (!movedSymbols.has(symbol) && every(symbol.declarations, (decl) => isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile)) { - targetFileImportsFromOldFile.set(symbol, isValidTypeOnlyUseSite); + for (const decl of symbol.declarations) { + if (isInImport(decl)) { + const prevIsTypeOnly = oldImportsNeededByTargetFile.get(symbol); + oldImportsNeededByTargetFile.set(symbol, [ + prevIsTypeOnly === void 0 ? isValidTypeOnlyUseSite : prevIsTypeOnly && isValidTypeOnlyUseSite, + tryCast(decl, (d) => isImportSpecifier(d) || isImportClause(d) || isNamespaceImport(d) || isImportEqualsDeclaration(d) || isBindingElement(d) || isVariableDeclaration(d)) + ]); + } else if (isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile && !movedSymbols.has(symbol)) { + targetFileImportsFromOldFile.set(symbol, isValidTypeOnlyUseSite); + } } }); } @@ -146896,7 +144044,7 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR if (jsxNamespaceSymbol && !!(statement.transformFlags & 2 /* ContainsJsx */)) { unusedImportsFromOldFile.delete(jsxNamespaceSymbol); } - forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => { + forEachReference(statement, checker, (symbol, isValidTypeOnlyUseSite) => { if (movedSymbols.has(symbol)) oldFileImportsFromTargetFile.set(symbol, isValidTypeOnlyUseSite); unusedImportsFromOldFile.delete(symbol); }); @@ -146917,6 +144065,16 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR return !!jsxNamespaceSymbol2 && some(jsxNamespaceSymbol2.declarations, isInImport) ? jsxNamespaceSymbol2 : void 0; } } +function isGlobalType(checker, symbol) { + return !!checker.resolveName( + symbol.name, + /*location*/ + void 0, + 788968 /* Type */, + /*excludeGlobals*/ + false + ); +} function makeUniqueFilename(proposedFilename, extension, inDirectory, host) { let newFilename = proposedFilename; for (let i = 1; ; i++) { @@ -146928,12 +144086,9 @@ function makeUniqueFilename(proposedFilename, extension, inDirectory, host) { function inferNewFileName(importsFromNewFile, movedSymbols) { return forEachKey(importsFromNewFile, symbolNameNoDefault) || forEachKey(movedSymbols, symbolNameNoDefault) || "newFile"; } -function forEachReference(node, checker, enclosingRange, onReference) { +function forEachReference(node, checker, onReference) { node.forEachChild(function cb(node2) { if (isIdentifier(node2) && !isDeclarationName(node2)) { - if (enclosingRange && !rangeContainsRange(enclosingRange, node2)) { - return; - } const sym = checker.getSymbolAtLocation(node2); if (sym) onReference(sym, isValidTypeOnlyAliasUseSite(node2)); } else { @@ -147096,18 +144251,12 @@ function getExistingLocals(sourceFile, statements, checker) { } } for (const statement of statements) { - forEachReference( - statement, - checker, - /*enclosingRange*/ - void 0, - (s) => { - const symbol = skipAlias(s, checker); - if (symbol.valueDeclaration && getSourceFileOfNode(symbol.valueDeclaration).path === sourceFile.path) { - existingLocals.add(symbol); - } + forEachReference(statement, checker, (s) => { + const symbol = skipAlias(s, checker); + if (symbol.valueDeclaration && getSourceFileOfNode(symbol.valueDeclaration).path === sourceFile.path) { + existingLocals.add(symbol); } - ); + }); } return existingLocals; } @@ -147135,9 +144284,6 @@ function addTargetFileImports(oldFile, importsToCopy, targetFileImportsFromOldFi const targetSymbol = skipAlias(symbol, checker); if (checker.isUnknownSymbol(targetSymbol)) { importAdder.addVerbatimImport(Debug.checkDefined(declaration ?? findAncestor((_a = symbol.declarations) == null ? void 0 : _a[0], isAnyImportOrRequireStatement))); - } else if (targetSymbol.parent === void 0) { - Debug.assert(declaration !== void 0, "expected module symbol to have a declaration"); - importAdder.addImportForModuleSymbol(symbol, isValidTypeOnlyUseSite, declaration); } else { importAdder.addImportFromExportedSymbol(targetSymbol, isValidTypeOnlyUseSite, declaration); } @@ -147202,12 +144348,7 @@ registerRefactor(refactorName4, { const { references, declaration, replacement } = info; const edits = ts_textChanges_exports.ChangeTracker.with(context, (tracker) => { for (const node of references) { - const closestStringIdentifierParent = isStringLiteral(replacement) && isIdentifier(node) && walkUpParenthesizedExpressions(node.parent); - if (closestStringIdentifierParent && isTemplateSpan(closestStringIdentifierParent) && !isTaggedTemplateExpression(closestStringIdentifierParent.parent.parent)) { - replaceTemplateStringVariableWithLiteral(tracker, file, closestStringIdentifierParent, replacement); - } else { - tracker.replaceNode(file, node, getReplacementExpression(node, replacement)); - } + tracker.replaceNode(file, node, getReplacementExpression(node, replacement)); } tracker.delete(file, declaration); }); @@ -147296,19 +144437,6 @@ function getReplacementExpression(reference, replacement) { } return replacement; } -function replaceTemplateStringVariableWithLiteral(tracker, sourceFile, reference, replacement) { - const templateExpression = reference.parent; - const index = templateExpression.templateSpans.indexOf(reference); - const prevNode = index === 0 ? templateExpression.head : templateExpression.templateSpans[index - 1]; - tracker.replaceRangeWithText( - sourceFile, - { - pos: prevNode.getEnd() - 2, - end: reference.literal.getStart() + 1 - }, - replacement.text.replace(/\\/g, "\\\\").replace(/`/g, "\\`") - ); -} // src/services/refactors/moveToNewFile.ts var refactorName5 = "Move to a new file"; @@ -148141,7 +145269,6 @@ function entryToFunctionCall(entry) { const functionReference = entry.node; const parent2 = functionReference.parent; switch (parent2.kind) { - // foo(...) or super(...) or new Foo(...) case 213 /* CallExpression */: case 214 /* NewExpression */: const callOrNewExpression = tryCast(parent2, isCallOrNewExpression); @@ -148149,7 +145276,6 @@ function entryToFunctionCall(entry) { return callOrNewExpression; } break; - // x.foo(...) case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) { @@ -148159,7 +145285,6 @@ function entryToFunctionCall(entry) { } } break; - // x["foo"](...) case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) { @@ -148178,14 +145303,12 @@ function entryToAccessExpression(entry) { const reference = entry.node; const parent2 = reference.parent; switch (parent2.kind) { - // `C.foo` case 211 /* PropertyAccessExpression */: const propertyAccessExpression = tryCast(parent2, isPropertyAccessExpression); if (propertyAccessExpression && propertyAccessExpression.expression === reference) { return propertyAccessExpression; } break; - // `C["foo"]` case 212 /* ElementAccessExpression */: const elementAccessExpression = tryCast(parent2, isElementAccessExpression); if (elementAccessExpression && elementAccessExpression.expression === reference) { @@ -149278,13 +146401,11 @@ function getRangeToExtract2(sourceFile, span, invoked = true) { forEachChild(n, check); } }); - // falls through case 263 /* ClassDeclaration */: case 262 /* FunctionDeclaration */: if (isSourceFile(node2.parent) && node2.parent.externalModuleIndicator === void 0) { (errors2 || (errors2 = [])).push(createDiagnosticForNode(node2, Messages.functionWillNotBeVisibleInTheNewScope)); } - // falls through case 231 /* ClassExpression */: case 218 /* FunctionExpression */: case 174 /* MethodDeclaration */: @@ -149524,7 +146645,7 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame if (!isJS) { let type = checker.getTypeOfSymbolAtLocation(usage.symbol, usage.node); type = checker.getBaseTypeOfLiteralType(type); - typeNode = ts_codefix_exports.typeToAutoImportableTypeNode(checker, importAdder, type, scope, scriptTarget, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); + typeNode = ts_codefix_exports.typeToAutoImportableTypeNode(checker, importAdder, type, scope, scriptTarget, 1 /* NoTruncation */); } const paramDecl = factory.createParameterDeclaration( /*modifiers*/ @@ -149544,8 +146665,8 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame callArguments.push(factory.createIdentifier(name)); }); const typeParametersAndDeclarations = arrayFrom(typeParameterUsages.values(), (type) => ({ type, declaration: getFirstDeclarationBeforePosition(type, context.startPosition) })); - typeParametersAndDeclarations.sort(compareTypesByDeclarationOrder); - const typeParameters = typeParametersAndDeclarations.length === 0 ? void 0 : mapDefined(typeParametersAndDeclarations, ({ declaration }) => declaration); + const sortedTypeParametersAndDeclarations = typeParametersAndDeclarations.sort(compareTypesByDeclarationOrder); + const typeParameters = sortedTypeParametersAndDeclarations.length === 0 ? void 0 : mapDefined(sortedTypeParametersAndDeclarations, ({ declaration }) => declaration); const callTypeArguments = typeParameters !== void 0 ? typeParameters.map((decl) => factory.createTypeReferenceNode( decl.name, /*typeArguments*/ @@ -149553,7 +146674,7 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame )) : void 0; if (isExpression(node) && !isJS) { const contextualType = checker.getContextualType(node); - returnType = checker.typeToTypeNode(contextualType, scope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); + returnType = checker.typeToTypeNode(contextualType, scope, 1 /* NoTruncation */); } const { body, returnValueProperty } = transformFunctionBody(node, exposedVariableDeclarations, writes, substitutions, !!(range.facts & 1 /* HasReturn */)); suppressLeadingAndTrailingTrivia(body); @@ -149593,8 +146714,7 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame checker.typeToTypeNode( checker.getTypeAtLocation(range.thisNode), scope, - 1 /* NoTruncation */, - 8 /* AllowUnresolvedNames */ + 1 /* NoTruncation */ ), /*initializer*/ void 0 @@ -149691,8 +146811,7 @@ function extractFunctionInScope(node, scope, { usages: usagesInScope, typeParame const variableType = checker.typeToTypeNode( checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(variableDeclaration)), scope, - 1 /* NoTruncation */, - 8 /* AllowUnresolvedNames */ + 1 /* NoTruncation */ ); typeElements.push(factory.createPropertySignature( /*modifiers*/ @@ -149823,7 +146942,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont const file = scope.getSourceFile(); const localNameText = getIdentifierForNode(node, scope, checker, file); const isJS = isInJSFile(scope); - let variableType = isJS || !checker.isContextSensitive(node) ? void 0 : checker.typeToTypeNode(checker.getContextualType(node), scope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); + let variableType = isJS || !checker.isContextSensitive(node) ? void 0 : checker.typeToTypeNode(checker.getContextualType(node), scope, 1 /* NoTruncation */); let initializer = transformConstantInitializer(skipParentheses(node), substitutions); ({ variableType, initializer } = transformFunctionInitializerAndType(variableType, initializer)); suppressLeadingAndTrailingTrivia(initializer); @@ -149948,13 +147067,13 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont } else { const paramType = checker.getTypeAtLocation(p); if (paramType === checker.getAnyType()) hasAny = true; - parameters.push(factory.updateParameterDeclaration(p, p.modifiers, p.dotDotDotToken, p.name, p.questionToken, p.type || checker.typeToTypeNode(paramType, scope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */), p.initializer)); + parameters.push(factory.updateParameterDeclaration(p, p.modifiers, p.dotDotDotToken, p.name, p.questionToken, p.type || checker.typeToTypeNode(paramType, scope, 1 /* NoTruncation */), p.initializer)); } } if (hasAny) return { variableType: variableType2, initializer: initializer2 }; variableType2 = void 0; if (isArrowFunction(initializer2)) { - initializer2 = factory.updateArrowFunction(initializer2, canHaveModifiers(node) ? getModifiers(node) : void 0, initializer2.typeParameters, parameters, initializer2.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */), initializer2.equalsGreaterThanToken, initializer2.body); + initializer2 = factory.updateArrowFunction(initializer2, canHaveModifiers(node) ? getModifiers(node) : void 0, initializer2.typeParameters, parameters, initializer2.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1 /* NoTruncation */), initializer2.equalsGreaterThanToken, initializer2.body); } else { if (functionSignature && !!functionSignature.thisParameter) { const firstParameter = firstOrUndefined(parameters); @@ -149971,7 +147090,7 @@ function extractConstantInScope(node, scope, { substitutions }, rangeFacts, cont "this", /*questionToken*/ void 0, - checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */) + checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */) ) ); } @@ -150580,31 +147699,11 @@ function getInfo4(context) { return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) }; } const typeChecker = context.program.getTypeChecker(); - let returnType; - if (typeChecker.isImplementationOfOverload(declaration)) { - const signatures = typeChecker.getTypeAtLocation(declaration).getCallSignatures(); - if (signatures.length > 1) { - returnType = typeChecker.getUnionType(mapDefined(signatures, (s) => s.getReturnType())); - } - } - if (!returnType) { - const signature = typeChecker.getSignatureFromDeclaration(declaration); - if (signature) { - const typePredicate = typeChecker.getTypePredicateOfSignature(signature); - if (typePredicate && typePredicate.type) { - const typePredicateTypeNode = typeChecker.typePredicateToTypePredicateNode(typePredicate, declaration, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); - if (typePredicateTypeNode) { - return { declaration, returnTypeNode: typePredicateTypeNode }; - } - } else { - returnType = typeChecker.getReturnTypeOfSignature(signature); - } - } - } + const returnType = tryGetReturnType(typeChecker, declaration); if (!returnType) { return { error: getLocaleSpecificMessage(Diagnostics.Could_not_determine_function_return_type) }; } - const returnTypeNode = typeChecker.typeToTypeNode(returnType, declaration, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); + const returnTypeNode = typeChecker.typeToTypeNode(returnType, declaration, 1 /* NoTruncation */); if (returnTypeNode) { return { declaration, returnTypeNode }; } @@ -150620,6 +147719,18 @@ function isConvertibleDeclaration(node) { return false; } } +function tryGetReturnType(typeChecker, node) { + if (typeChecker.isImplementationOfOverload(node)) { + const signatures = typeChecker.getTypeAtLocation(node).getCallSignatures(); + if (signatures.length > 1) { + return typeChecker.getUnionType(mapDefined(signatures, (s) => s.getReturnType())); + } + } + const signature = typeChecker.getSignatureFromDeclaration(node); + if (signature) { + return typeChecker.getReturnTypeOfSignature(signature); + } +} // src/services/classifier2020.ts var TokenEncodingConsts = /* @__PURE__ */ ((TokenEncodingConsts2) => { @@ -151111,7 +148222,6 @@ var SymbolObject = class { if (context) { if (isGetAccessor(context)) { if (!this.contextualGetAccessorDocumentationComment) { - this.contextualGetAccessorDocumentationComment = emptyArray; this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isGetAccessor), checker); } if (length(this.contextualGetAccessorDocumentationComment)) { @@ -151120,7 +148230,6 @@ var SymbolObject = class { } if (isSetAccessor(context)) { if (!this.contextualSetAccessorDocumentationComment) { - this.contextualSetAccessorDocumentationComment = emptyArray; this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter(this.declarations, isSetAccessor), checker); } if (length(this.contextualSetAccessorDocumentationComment)) { @@ -151141,7 +148250,6 @@ var SymbolObject = class { if (context) { if (isGetAccessor(context)) { if (!this.contextualGetAccessorTags) { - this.contextualGetAccessorTags = emptyArray; this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isGetAccessor), checker); } if (length(this.contextualGetAccessorTags)) { @@ -151150,7 +148258,6 @@ var SymbolObject = class { } if (isSetAccessor(context)) { if (!this.contextualSetAccessorTags) { - this.contextualSetAccessorTags = emptyArray; this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(filter(this.declarations, isSetAccessor), checker); } if (length(this.contextualSetAccessorTags)) { @@ -151463,7 +148570,6 @@ var SourceFileObject = class extends NodeObject { if (!hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) { break; } - // falls through case 260 /* VariableDeclaration */: case 208 /* BindingElement */: { const decl = node; @@ -151475,7 +148581,6 @@ var SourceFileObject = class extends NodeObject { visit(decl.initializer); } } - // falls through case 306 /* EnumMember */: case 172 /* PropertyDeclaration */: case 171 /* PropertySignature */: @@ -151510,7 +148615,6 @@ var SourceFileObject = class extends NodeObject { if (getAssignmentDeclarationKind(node) !== 0 /* None */) { addDeclaration(node); } - // falls through default: forEachChild(node, visit); } @@ -151758,8 +148862,7 @@ var invalidOperationsInSyntacticMode = [ "getNavigateToItems", "getRenameInfo", "findRenameLocations", - "getApplicableRefactors", - "preparePasteEditsForFile" + "getApplicableRefactors" ]; function createLanguageService(host, documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory(), host.jsDocParsingMode), syntaxOnlyOrLanguageServiceMode) { var _a; @@ -151875,8 +148978,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h resolveLibrary: maybeBind(host, host.resolveLibrary), useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect), getParsedCommandLine, - jsDocParsingMode: host.jsDocParsingMode, - getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation) + jsDocParsingMode: host.jsDocParsingMode }; const originalGetSourceFile = compilerHost.getSourceFile; const { getSourceFileWithCache } = changeCompilerHostLikeToUseCache( @@ -151948,18 +149050,13 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h if (host.getParsedCommandLine) { (_a3 = host.onReleaseParsedCommandLine) == null ? void 0 : _a3.call(host, configFileName, oldResolvedRef, oldOptions); } else if (oldResolvedRef) { - releaseOldSourceFile(oldResolvedRef.sourceFile, oldOptions); + onReleaseOldSourceFile(oldResolvedRef.sourceFile, oldOptions); } } - function releaseOldSourceFile(oldSourceFile, oldOptions) { + function onReleaseOldSourceFile(oldSourceFile, oldOptions) { const oldSettingsKey = documentRegistry.getKeyForCompilationSettings(oldOptions); documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind, oldSourceFile.impliedNodeFormat); } - function onReleaseOldSourceFile(oldSourceFile, oldOptions, hasSourceFileByPath, newSourceFileByResolvedPath) { - var _a3; - releaseOldSourceFile(oldSourceFile, oldOptions); - (_a3 = host.onReleaseOldSourceFile) == null ? void 0 : _a3.call(host, oldSourceFile, oldOptions, hasSourceFileByPath, newSourceFileByResolvedPath); - } function getOrCreateSourceFile(fileName, languageVersionOrOptions, onError, shouldCreateNewSourceFile) { return getOrCreateSourceFileByPath(fileName, toPath(fileName, currentDirectory, getCanonicalFileName), languageVersionOrOptions, onError, shouldCreateNewSourceFile); } @@ -152070,108 +149167,6 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h const declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile, cancellationToken); return [...semanticDiagnostics, ...declarationDiagnostics]; } - function getRegionSemanticDiagnostics(fileName, ranges) { - synchronizeHostData(); - const sourceFile = getValidSourceFile(fileName); - const options = program.getCompilerOptions(); - if (skipTypeChecking(sourceFile, options, program) || !canIncludeBindAndCheckDiagnostics(sourceFile, options) || program.getCachedSemanticDiagnostics(sourceFile)) { - return void 0; - } - const nodes = getNodesForRanges(sourceFile, ranges); - if (!nodes) { - return void 0; - } - const checkedSpans = normalizeSpans(nodes.map((node) => createTextSpanFromBounds(node.getFullStart(), node.getEnd()))); - const semanticDiagnostics = program.getSemanticDiagnostics(sourceFile, cancellationToken, nodes); - return { - diagnostics: semanticDiagnostics.slice(), - spans: checkedSpans - }; - } - function getNodesForRanges(file, ranges) { - const nodes = []; - const spans = normalizeSpans(ranges.map((range) => createTextSpanFromRange(range))); - for (const span of spans) { - const nodesForSpan = getNodesForSpan(file, span); - if (!nodesForSpan) { - return void 0; - } - nodes.push(...nodesForSpan); - } - if (!nodes.length) { - return void 0; - } - return nodes; - } - function getNodesForSpan(file, span) { - if (textSpanContainsTextRange(span, file)) { - return void 0; - } - const endToken = findTokenOnLeftOfPosition(file, textSpanEnd(span)) || file; - const enclosingNode = findAncestor(endToken, (node) => textRangeContainsTextSpan(node, span)); - const nodes = []; - chooseOverlappingNodes(span, enclosingNode, nodes); - if (file.end === span.start + span.length) { - nodes.push(file.endOfFileToken); - } - if (some(nodes, isSourceFile)) { - return void 0; - } - return nodes; - } - function chooseOverlappingNodes(span, node, result) { - if (!nodeOverlapsWithSpan(node, span)) { - return false; - } - if (textSpanContainsTextRange(span, node)) { - addSourceElement(node, result); - return true; - } - if (isBlockLike(node)) { - return chooseOverlappingBlockLike(span, node, result); - } - if (isClassLike(node)) { - return chooseOverlappingClassLike(span, node, result); - } - addSourceElement(node, result); - return true; - } - function nodeOverlapsWithSpan(node, span) { - const spanEnd = span.start + span.length; - return node.pos < spanEnd && node.end > span.start; - } - function addSourceElement(node, result) { - while (node.parent && !isSourceElement(node)) { - node = node.parent; - } - result.push(node); - } - function chooseOverlappingBlockLike(span, node, result) { - const childResult = []; - const stmts = node.statements.filter((stmt) => chooseOverlappingNodes(span, stmt, childResult)); - if (stmts.length === node.statements.length) { - addSourceElement(node, result); - return true; - } - result.push(...childResult); - return false; - } - function chooseOverlappingClassLike(span, node, result) { - var _a2, _b, _c; - const overlaps = (n) => textRangeIntersectsWithTextSpan(n, span); - if (((_a2 = node.modifiers) == null ? void 0 : _a2.some(overlaps)) || node.name && overlaps(node.name) || ((_b = node.typeParameters) == null ? void 0 : _b.some(overlaps)) || ((_c = node.heritageClauses) == null ? void 0 : _c.some(overlaps))) { - addSourceElement(node, result); - return true; - } - const childResult = []; - const members = node.members.filter((member) => chooseOverlappingNodes(span, member, childResult)); - if (members.length === node.members.length) { - addSourceElement(node, result); - return true; - } - result.push(...childResult); - return false; - } function getSuggestionDiagnostics(fileName) { synchronizeHostData(); return computeSuggestionDiagnostics(getValidSourceFile(fileName), program, cancellationToken); @@ -152252,14 +149247,6 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h tags }; } - function preparePasteEditsForFile(fileName, copiedTextRange) { - synchronizeHostData(); - return ts_preparePasteEdits_exports.preparePasteEdits( - getValidSourceFile(fileName), - copiedTextRange, - program.getTypeChecker() - ); - } function getPasteEdits(args, formatOptions) { synchronizeHostData(); return ts_PasteEdits_exports.pasteEditsProvider( @@ -152408,7 +149395,6 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h case 197 /* ThisType */: case 80 /* Identifier */: break; - // Cant create the text span default: return void 0; } @@ -152514,28 +149500,27 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h } return []; } - function getCodeFixesAtPosition(fileName, start, end, errorCodes68, formatOptions, preferences = emptyOptions) { + function getCodeFixesAtPosition(fileName, start, end, errorCodes67, formatOptions, preferences = emptyOptions) { synchronizeHostData(); const sourceFile = getValidSourceFile(fileName); const span = createTextSpanFromBounds(start, end); const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host); - return flatMap(deduplicate(errorCodes68, equateValues, compareValues), (errorCode) => { + return flatMap(deduplicate(errorCodes67, equateValues, compareValues), (errorCode) => { cancellationToken.throwIfCancellationRequested(); return ts_codefix_exports.getFixes({ errorCode, sourceFile, span, program, host, cancellationToken, formatContext, preferences }); }); } - function getCombinedCodeFix(scope, fixId56, formatOptions, preferences = emptyOptions) { + function getCombinedCodeFix(scope, fixId55, formatOptions, preferences = emptyOptions) { synchronizeHostData(); Debug.assert(scope.type === "file"); const sourceFile = getValidSourceFile(scope.fileName); const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host); - return ts_codefix_exports.getAllFixes({ fixId: fixId56, sourceFile, program, host, cancellationToken, formatContext, preferences }); + return ts_codefix_exports.getAllFixes({ fixId: fixId55, sourceFile, program, host, cancellationToken, formatContext, preferences }); } function organizeImports2(args, formatOptions, preferences = emptyOptions) { synchronizeHostData(); Debug.assert(args.type === "file"); const sourceFile = getValidSourceFile(args.fileName); - if (containsParseError(sourceFile)) return emptyArray; const formatContext = ts_formatting_exports.getFormatContext(formatOptions, host); const mode = args.mode ?? (args.skipDestructiveCodeActions ? "SortAndCombine" /* SortAndCombine */ : "All" /* All */); return ts_OrganizeImports_exports.organizeImports(sourceFile, formatContext, host, program, preferences, mode); @@ -152878,7 +149863,7 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&"); } function getTodoCommentsRegExp() { - const singleLineCommentStart = /(?:\/{2,}\s*)/.source; + const singleLineCommentStart = /(?:\/\/+\s*)/.source; const multiLineCommentStart = /(?:\/\*+\s*)/.source; const anyNumberOfSpacesAndAsterisksAtStartOfLine = /(?:^(?:\s|\*)*)/.source; const preamble = "(" + anyNumberOfSpacesAndAsterisksAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")"; @@ -152996,7 +149981,6 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h cleanupSemanticCache, getSyntacticDiagnostics, getSemanticDiagnostics, - getRegionSemanticDiagnostics, getSuggestionDiagnostics, getCompilerOptionsDiagnostics, getSyntacticClassifications: getSyntacticClassifications2, @@ -153062,7 +150046,6 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h uncommentSelection, provideInlayHints: provideInlayHints2, getSupportedCodeFixes, - preparePasteEditsForFile, getPasteEdits, mapCode: mapCode2 }; @@ -153127,7 +150110,6 @@ function getContainingObjectLiteralElementWorker(node) { if (node.parent.kind === 167 /* ComputedPropertyName */) { return isObjectLiteralElement(node.parent.parent) ? node.parent.parent : void 0; } - // falls through case 80 /* Identifier */: return isObjectLiteralElement(node.parent) && (node.parent.parent.kind === 210 /* ObjectLiteralExpression */ || node.parent.parent.kind === 292 /* JsxAttributes */) && node.parent.name === node ? node.parent : void 0; } @@ -153282,7 +150264,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (isFunctionBlock(node)) { return spanInFunctionBlock(node); } - // falls through case 268 /* ModuleBlock */: return spanInBlock(node); case 299 /* CatchClause */: @@ -153331,7 +150312,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (getModuleInstanceState(node) !== 1 /* Instantiated */) { return void 0; } - // falls through case 263 /* ClassDeclaration */: case 266 /* EnumDeclaration */: case 306 /* EnumMember */: @@ -153344,11 +150324,9 @@ function spanInSourceFileAtLocation(sourceFile, position) { case 206 /* ObjectBindingPattern */: case 207 /* ArrayBindingPattern */: return spanInBindingPattern(node); - // No breakpoint in interface, type alias case 264 /* InterfaceDeclaration */: case 265 /* TypeAliasDeclaration */: return void 0; - // Tokens: case 27 /* SemicolonToken */: case 1 /* EndOfFileToken */: return spanInNodeIfStartsOnSameLine(findPrecedingToken(node.pos, sourceFile)); @@ -153369,7 +150347,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { case 32 /* GreaterThanToken */: case 30 /* LessThanToken */: return spanInGreaterThanOrLessThanToken(node); - // Keywords: case 117 /* WhileKeyword */: return spanInWhileKeyword(node); case 93 /* ElseKeyword */: @@ -153520,13 +150497,10 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (getModuleInstanceState(block.parent) !== 1 /* Instantiated */) { return void 0; } - // Set on parent if on same line otherwise on first statement - // falls through case 247 /* WhileStatement */: case 245 /* IfStatement */: case 249 /* ForInStatement */: return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]); - // Set span on previous token if it starts on same line otherwise on the first statement of the block case 248 /* ForStatement */: case 250 /* ForOfStatement */: return spanInNodeIfStartsOnSameLine(findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]); @@ -153592,7 +150566,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (getModuleInstanceState(node2.parent.parent) !== 1 /* Instantiated */) { return void 0; } - // falls through case 266 /* EnumDeclaration */: case 263 /* ClassDeclaration */: return textSpan(node2); @@ -153600,7 +150573,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { if (isFunctionBlock(node2.parent)) { return textSpan(node2); } - // falls through case 299 /* CatchClause */: return spanInNode(lastOrUndefined(node2.parent.statements)); case 269 /* CaseBlock */: @@ -153613,7 +150585,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { case 206 /* ObjectBindingPattern */: const bindingPattern = node2.parent; return spanInNode(lastOrUndefined(bindingPattern.elements) || bindingPattern); - // Default to parent node default: if (isArrayLiteralOrObjectLiteralDestructuringPattern(node2.parent)) { const objectLiteral = node2.parent; @@ -153663,7 +150634,6 @@ function spanInSourceFileAtLocation(sourceFile, position) { case 214 /* NewExpression */: case 217 /* ParenthesizedExpression */: return spanInPreviousNode(node2); - // Default to parent node default: return spanInNode(node2.parent); } @@ -154173,16 +151143,19 @@ __export(ts_codefix_exports, { createFileTextChanges: () => createFileTextChanges, createImportAdder: () => createImportAdder, createImportSpecifierResolver: () => createImportSpecifierResolver, + createJsonPropertyAssignment: () => createJsonPropertyAssignment, createMissingMemberNodes: () => createMissingMemberNodes, createSignatureDeclarationFromCallExpression: () => createSignatureDeclarationFromCallExpression, createSignatureDeclarationFromSignature: () => createSignatureDeclarationFromSignature, createStubbedBody: () => createStubbedBody, eachDiagnostic: () => eachDiagnostic, findAncestorMatchingSpan: () => findAncestorMatchingSpan, + findJsonProperty: () => findJsonProperty, generateAccessorFromProperty: () => generateAccessorFromProperty, getAccessorConvertiblePropertyAtPosition: () => getAccessorConvertiblePropertyAtPosition, getAllFixes: () => getAllFixes, getAllSupers: () => getAllSupers, + getArgumentTypesAndTypeParameters: () => getArgumentTypesAndTypeParameters, getFixes: () => getFixes, getImportCompletionAction: () => getImportCompletionAction, getImportKind: () => getImportKind, @@ -154197,10 +151170,7 @@ __export(ts_codefix_exports, { setJsonCompilerOptionValue: () => setJsonCompilerOptionValue, setJsonCompilerOptionValues: () => setJsonCompilerOptionValues, tryGetAutoImportableReferenceFromTypeNode: () => tryGetAutoImportableReferenceFromTypeNode, - typeNodeToAutoImportableTypeNode: () => typeNodeToAutoImportableTypeNode, - typePredicateToAutoImportableTypeNode: () => typePredicateToAutoImportableTypeNode, - typeToAutoImportableTypeNode: () => typeToAutoImportableTypeNode, - typeToMinimizedReferenceType: () => typeToMinimizedReferenceType + typeToAutoImportableTypeNode: () => typeToAutoImportableTypeNode }); // src/services/codeFixProvider.ts @@ -154217,14 +151187,14 @@ function createCodeFixActionWithoutFixAll(fixName8, changes, description3) { void 0 ); } -function createCodeFixAction(fixName8, changes, description3, fixId56, fixAllDescription, command) { - return createCodeFixActionWorker(fixName8, diagnosticToString(description3), changes, fixId56, diagnosticToString(fixAllDescription), command); +function createCodeFixAction(fixName8, changes, description3, fixId55, fixAllDescription, command) { + return createCodeFixActionWorker(fixName8, diagnosticToString(description3), changes, fixId55, diagnosticToString(fixAllDescription), command); } -function createCodeFixActionMaybeFixAll(fixName8, changes, description3, fixId56, fixAllDescription, command) { - return createCodeFixActionWorker(fixName8, diagnosticToString(description3), changes, fixId56, fixAllDescription && diagnosticToString(fixAllDescription), command); +function createCodeFixActionMaybeFixAll(fixName8, changes, description3, fixId55, fixAllDescription, command) { + return createCodeFixActionWorker(fixName8, diagnosticToString(description3), changes, fixId55, fixAllDescription && diagnosticToString(fixAllDescription), command); } -function createCodeFixActionWorker(fixName8, description3, changes, fixId56, fixAllDescription, command) { - return { fixName: fixName8, description: description3, changes, fixId: fixId56, fixAllDescription, commands: command ? [command] : void 0 }; +function createCodeFixActionWorker(fixName8, description3, changes, fixId55, fixAllDescription, command) { + return { fixName: fixName8, description: description3, changes, fixId: fixId55, fixAllDescription, commands: command ? [command] : void 0 }; } function registerCodeFix(reg) { for (const error2 of reg.errorCodes) { @@ -154232,9 +151202,9 @@ function registerCodeFix(reg) { errorCodeToFixes.add(String(error2), reg); } if (reg.fixIds) { - for (const fixId56 of reg.fixIds) { - Debug.assert(!fixIdToRegistration.has(fixId56)); - fixIdToRegistration.set(fixId56, reg); + for (const fixId55 of reg.fixIds) { + Debug.assert(!fixIdToRegistration.has(fixId55)); + fixIdToRegistration.set(fixId55, reg); } } } @@ -154243,15 +151213,15 @@ function getSupportedErrorCodes() { return errorCodeToFixesArray ?? (errorCodeToFixesArray = arrayFrom(errorCodeToFixes.keys())); } function removeFixIdIfFixAllUnavailable(registration, diagnostics) { - const { errorCodes: errorCodes68 } = registration; + const { errorCodes: errorCodes67 } = registration; let maybeFixableDiagnostics = 0; for (const diag2 of diagnostics) { - if (contains(errorCodes68, diag2.code)) maybeFixableDiagnostics++; + if (contains(errorCodes67, diag2.code)) maybeFixableDiagnostics++; if (maybeFixableDiagnostics > 1) break; } const fixAllUnavailable = maybeFixableDiagnostics < 2; - return ({ fixId: fixId56, fixAllDescription, ...action }) => { - return fixAllUnavailable ? action : { ...action, fixId: fixId56, fixAllDescription }; + return ({ fixId: fixId55, fixAllDescription, ...action }) => { + return fixAllUnavailable ? action : { ...action, fixId: fixId55, fixAllDescription }; }; } function getFixes(context) { @@ -154268,14 +151238,14 @@ function createCombinedCodeActions(changes, commands) { function createFileTextChanges(fileName, textChanges2) { return { fileName, textChanges: textChanges2 }; } -function codeFixAll(context, errorCodes68, use) { +function codeFixAll(context, errorCodes67, use) { const commands = []; - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => eachDiagnostic(context, errorCodes68, (diag2) => use(t, diag2, commands))); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => eachDiagnostic(context, errorCodes67, (diag2) => use(t, diag2, commands))); return createCombinedCodeActions(changes, commands.length === 0 ? void 0 : commands); } -function eachDiagnostic(context, errorCodes68, cb) { +function eachDiagnostic(context, errorCodes67, cb) { for (const diag2 of getDiagnostics(context)) { - if (contains(errorCodes68, diag2.code)) { + if (contains(errorCodes67, diag2.code)) { cb(diag2); } } @@ -154586,7 +151556,7 @@ function isInsideAwaitableBody(node) { function makeChange3(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) { if (isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) { const exprType = checker.getTypeAtLocation(insertionSite); - const asyncIter = checker.getAnyAsyncIterableType(); + const asyncIter = checker.getAsyncIterableType(); if (asyncIter && checker.isTypeAssignableTo(exprType, asyncIter)) { const forOf = insertionSite.parent; changeTracker.replaceNode(sourceFile, forOf, factory.updateForOfStatement(forOf, factory.createToken(135 /* AwaitKeyword */), forOf.initializer, forOf.expression, forOf.statement)); @@ -154789,99 +151759,19 @@ function makeChange6(changeTracker, sourceFile, pos) { changeTracker.replaceNode(sourceFile, decorator.expression, replacement); } -// src/services/codefixes/addMissingResolutionModeImportAttribute.ts -var fixId7 = "addMissingResolutionModeImportAttribute"; -var errorCodes7 = [ - Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code, - Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code -]; -registerCodeFix({ - errorCodes: errorCodes7, - getCodeActions: function getCodeActionsToAddMissingResolutionModeImportAttribute(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange7(t, context.sourceFile, context.span.start, context.program, context.host, context.preferences)); - return [createCodeFixAction(fixId7, changes, Diagnostics.Add_resolution_mode_import_attribute, fixId7, Diagnostics.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]; - }, - fixIds: [fixId7], - getAllCodeActions: (context) => codeFixAll(context, errorCodes7, (changes, diag2) => makeChange7(changes, diag2.file, diag2.start, context.program, context.host, context.preferences)) -}); -function makeChange7(changeTracker, sourceFile, pos, program, host, preferences) { - var _a, _b, _c; - const token = getTokenAtPosition(sourceFile, pos); - const importNode = findAncestor(token, or(isImportDeclaration, isImportTypeNode)); - Debug.assert(!!importNode, "Expected position to be owned by an ImportDeclaration or ImportType."); - const useSingleQuotes = getQuotePreference(sourceFile, preferences) === 0 /* Single */; - const moduleSpecifier = tryGetModuleSpecifierFromDeclaration(importNode); - const canUseImportMode = !moduleSpecifier || ((_a = resolveModuleName( - moduleSpecifier.text, - sourceFile.fileName, - program.getCompilerOptions(), - host, - program.getModuleResolutionCache(), - /*redirectedReference*/ - void 0, - 99 /* ESNext */ - ).resolvedModule) == null ? void 0 : _a.resolvedFileName) === ((_c = (_b = program.getResolvedModuleFromModuleSpecifier( - moduleSpecifier, - sourceFile - )) == null ? void 0 : _b.resolvedModule) == null ? void 0 : _c.resolvedFileName); - const attributes = importNode.attributes ? factory.updateImportAttributes( - importNode.attributes, - factory.createNodeArray([ - ...importNode.attributes.elements, - factory.createImportAttribute( - factory.createStringLiteral("resolution-mode", useSingleQuotes), - factory.createStringLiteral(canUseImportMode ? "import" : "require", useSingleQuotes) - ) - ], importNode.attributes.elements.hasTrailingComma), - importNode.attributes.multiLine - ) : factory.createImportAttributes( - factory.createNodeArray([ - factory.createImportAttribute( - factory.createStringLiteral("resolution-mode", useSingleQuotes), - factory.createStringLiteral(canUseImportMode ? "import" : "require", useSingleQuotes) - ) - ]) - ); - if (importNode.kind === 272 /* ImportDeclaration */) { - changeTracker.replaceNode( - sourceFile, - importNode, - factory.updateImportDeclaration( - importNode, - importNode.modifiers, - importNode.importClause, - importNode.moduleSpecifier, - attributes - ) - ); - } else { - changeTracker.replaceNode( - sourceFile, - importNode, - factory.updateImportTypeNode( - importNode, - importNode.argument, - attributes, - importNode.qualifier, - importNode.typeArguments - ) - ); - } -} - // src/services/codefixes/addNameToNamelessParameter.ts -var fixId8 = "addNameToNamelessParameter"; -var errorCodes8 = [Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code]; +var fixId7 = "addNameToNamelessParameter"; +var errorCodes7 = [Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code]; registerCodeFix({ - errorCodes: errorCodes8, + errorCodes: errorCodes7, getCodeActions: function getCodeActionsToAddNameToNamelessParameter(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange8(t, context.sourceFile, context.span.start)); - return [createCodeFixAction(fixId8, changes, Diagnostics.Add_parameter_name, fixId8, Diagnostics.Add_names_to_all_parameters_without_names)]; + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange7(t, context.sourceFile, context.span.start)); + return [createCodeFixAction(fixId7, changes, Diagnostics.Add_parameter_name, fixId7, Diagnostics.Add_names_to_all_parameters_without_names)]; }, - fixIds: [fixId8], - getAllCodeActions: (context) => codeFixAll(context, errorCodes8, (changes, diag2) => makeChange8(changes, diag2.file, diag2.start)) + fixIds: [fixId7], + getAllCodeActions: (context) => codeFixAll(context, errorCodes7, (changes, diag2) => makeChange7(changes, diag2.file, diag2.start)) }); -function makeChange8(changeTracker, sourceFile, start) { +function makeChange7(changeTracker, sourceFile, start) { const token = getTokenAtPosition(sourceFile, start); const param = token.parent; if (!isParameter(param)) { @@ -154922,13 +151812,13 @@ function tryGetNextParam(sourceFile, param) { // src/services/codefixes/addOptionalPropertyUndefined.ts var addOptionalPropertyUndefined = "addOptionalPropertyUndefined"; -var errorCodes9 = [ +var errorCodes8 = [ Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code, Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code, Diagnostics.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.code ]; registerCodeFix({ - errorCodes: errorCodes9, + errorCodes: errorCodes8, getCodeActions(context) { const typeChecker = context.program.getTypeChecker(); const toAdd = getPropertiesToAdd(context.sourceFile, context.span, typeChecker); @@ -154999,18 +151889,18 @@ function addUndefinedToOptionalProperty(changes, toAdd) { } // src/services/codefixes/annotateWithTypeFromJSDoc.ts -var fixId9 = "annotateWithTypeFromJSDoc"; -var errorCodes10 = [Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code]; +var fixId8 = "annotateWithTypeFromJSDoc"; +var errorCodes9 = [Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code]; registerCodeFix({ - errorCodes: errorCodes10, + errorCodes: errorCodes9, getCodeActions(context) { const decl = getDeclaration(context.sourceFile, context.span.start); if (!decl) return; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange8(t, context.sourceFile, decl)); - return [createCodeFixAction(fixId9, changes, Diagnostics.Annotate_with_type_from_JSDoc, fixId9, Diagnostics.Annotate_everything_with_types_from_JSDoc)]; + return [createCodeFixAction(fixId8, changes, Diagnostics.Annotate_with_type_from_JSDoc, fixId8, Diagnostics.Annotate_everything_with_types_from_JSDoc)]; }, - fixIds: [fixId9], - getAllCodeActions: (context) => codeFixAll(context, errorCodes10, (changes, diag2) => { + fixIds: [fixId8], + getAllCodeActions: (context) => codeFixAll(context, errorCodes9, (changes, diag2) => { const decl = getDeclaration(diag2.file, diag2.start); if (decl) doChange8(changes, diag2.file, decl); }) @@ -155167,16 +152057,16 @@ function transformJSDocIndexSignature(node) { } // src/services/codefixes/convertFunctionToEs6Class.ts -var fixId10 = "convertFunctionToEs6Class"; -var errorCodes11 = [Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code]; +var fixId9 = "convertFunctionToEs6Class"; +var errorCodes10 = [Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code]; registerCodeFix({ - errorCodes: errorCodes11, + errorCodes: errorCodes10, getCodeActions(context) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange9(t, context.sourceFile, context.span.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions())); - return [createCodeFixAction(fixId10, changes, Diagnostics.Convert_function_to_an_ES2015_class, fixId10, Diagnostics.Convert_all_constructor_functions_to_classes)]; + return [createCodeFixAction(fixId9, changes, Diagnostics.Convert_function_to_an_ES2015_class, fixId9, Diagnostics.Convert_all_constructor_functions_to_classes)]; }, - fixIds: [fixId10], - getAllCodeActions: (context) => codeFixAll(context, errorCodes11, (changes, err) => doChange9(changes, err.file, err.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions())) + fixIds: [fixId9], + getAllCodeActions: (context) => codeFixAll(context, errorCodes10, (changes, err) => doChange9(changes, err.file, err.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions())) }); function doChange9(changes, sourceFile, position, checker, preferences, compilerOptions) { const ctorSymbol = checker.getSymbolAtLocation(getTokenAtPosition(sourceFile, position)); @@ -155448,18 +152338,18 @@ function tryGetPropertyName(node, compilerOptions, quotePreference) { } // src/services/codefixes/convertToAsyncFunction.ts -var fixId11 = "convertToAsyncFunction"; -var errorCodes12 = [Diagnostics.This_may_be_converted_to_an_async_function.code]; +var fixId10 = "convertToAsyncFunction"; +var errorCodes11 = [Diagnostics.This_may_be_converted_to_an_async_function.code]; var codeActionSucceeded = true; registerCodeFix({ - errorCodes: errorCodes12, + errorCodes: errorCodes11, getCodeActions(context) { codeActionSucceeded = true; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => convertToAsyncFunction(t, context.sourceFile, context.span.start, context.program.getTypeChecker())); - return codeActionSucceeded ? [createCodeFixAction(fixId11, changes, Diagnostics.Convert_to_async_function, fixId11, Diagnostics.Convert_all_to_async_functions)] : []; + return codeActionSucceeded ? [createCodeFixAction(fixId10, changes, Diagnostics.Convert_to_async_function, fixId10, Diagnostics.Convert_all_to_async_functions)] : []; }, - fixIds: [fixId11], - getAllCodeActions: (context) => codeFixAll(context, errorCodes12, (changes, err) => convertToAsyncFunction(changes, err.file, err.start, context.program.getTypeChecker())) + fixIds: [fixId10], + getAllCodeActions: (context) => codeFixAll(context, errorCodes11, (changes, err) => convertToAsyncFunction(changes, err.file, err.start, context.program.getTypeChecker())) }); function convertToAsyncFunction(changes, sourceFile, position, checker) { const tokenAtPosition = getTokenAtPosition(sourceFile, position); @@ -156258,7 +153148,6 @@ function convertStatement(sourceFile, statement, checker, changes, identifiers, } } } - // falls through default: return false; } @@ -156358,8 +153247,6 @@ function tryChangeModuleExportsObject(object, useSitesToUnqualify) { switch (prop.kind) { case 177 /* GetAccessor */: case 178 /* SetAccessor */: - // TODO: Maybe we should handle this? See fourslash test `refactorConvertToEs6Module_export_object_shorthand.ts`. - // falls through case 304 /* ShorthandPropertyAssignment */: case 305 /* SpreadAssignment */: return void 0; @@ -156441,7 +153328,6 @@ function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualif return exportConst(); } } - // falls through case 219 /* ArrowFunction */: return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify); case 231 /* ClassExpression */: @@ -156490,7 +153376,6 @@ function convertSingleImport(name, moduleSpecifier, checker, identifiers, target )]); } } - // falls through -- object destructuring has an interesting pattern and must be a variable declaration case 207 /* ArrayBindingPattern */: { const tmp = makeUniqueName(moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers); return convertedImports([ @@ -156664,19 +153549,19 @@ function convertedImports(newImports, useSitesToUnqualify) { } // src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts -var fixId12 = "correctQualifiedNameToIndexedAccessType"; -var errorCodes13 = [Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code]; +var fixId11 = "correctQualifiedNameToIndexedAccessType"; +var errorCodes12 = [Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code]; registerCodeFix({ - errorCodes: errorCodes13, + errorCodes: errorCodes12, getCodeActions(context) { const qualifiedName = getQualifiedName(context.sourceFile, context.span.start); if (!qualifiedName) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange10(t, context.sourceFile, qualifiedName)); const newText = `${qualifiedName.left.text}["${qualifiedName.right.text}"]`; - return [createCodeFixAction(fixId12, changes, [Diagnostics.Rewrite_as_the_indexed_access_type_0, newText], fixId12, Diagnostics.Rewrite_all_as_indexed_access_types)]; + return [createCodeFixAction(fixId11, changes, [Diagnostics.Rewrite_as_the_indexed_access_type_0, newText], fixId11, Diagnostics.Rewrite_all_as_indexed_access_types)]; }, - fixIds: [fixId12], - getAllCodeActions: (context) => codeFixAll(context, errorCodes13, (changes, diag2) => { + fixIds: [fixId11], + getAllCodeActions: (context) => codeFixAll(context, errorCodes12, (changes, diag2) => { const q = getQualifiedName(diag2.file, diag2.start); if (q) { doChange10(changes, diag2.file, q); @@ -156702,20 +153587,20 @@ function doChange10(changeTracker, sourceFile, qualifiedName) { } // src/services/codefixes/convertToTypeOnlyExport.ts -var errorCodes14 = [Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code]; -var fixId13 = "convertToTypeOnlyExport"; +var errorCodes13 = [Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code]; +var fixId12 = "convertToTypeOnlyExport"; registerCodeFix({ - errorCodes: errorCodes14, + errorCodes: errorCodes13, getCodeActions: function getCodeActionsToConvertToTypeOnlyExport(context) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => fixSingleExportDeclaration(t, getExportSpecifierForDiagnosticSpan(context.span, context.sourceFile), context)); if (changes.length) { - return [createCodeFixAction(fixId13, changes, Diagnostics.Convert_to_type_only_export, fixId13, Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]; + return [createCodeFixAction(fixId12, changes, Diagnostics.Convert_to_type_only_export, fixId12, Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]; } }, - fixIds: [fixId13], + fixIds: [fixId12], getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyExport(context) { - const fixedExportDeclarations = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes14, (changes, diag2) => { + const fixedExportDeclarations = /* @__PURE__ */ new Map(); + return codeFixAll(context, errorCodes13, (changes, diag2) => { const exportSpecifier = getExportSpecifierForDiagnosticSpan(diag2, context.sourceFile); if (exportSpecifier && addToSeen(fixedExportDeclarations, getNodeId(exportSpecifier.parent.parent))) { fixSingleExportDeclaration(changes, exportSpecifier, context); @@ -156774,18 +153659,18 @@ function getTypeExportSpecifiers(originExportSpecifier, context) { ); return filter(exportClause.elements, (element) => { var _a; - return element === originExportSpecifier || ((_a = findDiagnosticForNode(element, diagnostics)) == null ? void 0 : _a.code) === errorCodes14[0]; + return element === originExportSpecifier || ((_a = findDiagnosticForNode(element, diagnostics)) == null ? void 0 : _a.code) === errorCodes13[0]; }); } // src/services/codefixes/convertToTypeOnlyImport.ts -var errorCodes15 = [ +var errorCodes14 = [ Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code, Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code ]; -var fixId14 = "convertToTypeOnlyImport"; +var fixId13 = "convertToTypeOnlyImport"; registerCodeFix({ - errorCodes: errorCodes15, + errorCodes: errorCodes14, getCodeActions: function getCodeActionsToConvertToTypeOnlyImport(context) { var _a; const declaration = getDeclaration2(context.sourceFile, context.span.start); @@ -156793,15 +153678,15 @@ registerCodeFix({ const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration)); const importDeclarationChanges = declaration.kind === 276 /* ImportSpecifier */ && isImportDeclaration(declaration.parent.parent.parent) && canConvertImportDeclarationForSpecifier(declaration, context.sourceFile, context.program) ? ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange11(t, context.sourceFile, declaration.parent.parent.parent)) : void 0; const mainAction = createCodeFixAction( - fixId14, + fixId13, changes, declaration.kind === 276 /* ImportSpecifier */ ? [Diagnostics.Use_type_0, ((_a = declaration.propertyName) == null ? void 0 : _a.text) ?? declaration.name.text] : Diagnostics.Use_import_type, - fixId14, + fixId13, Diagnostics.Fix_all_with_type_only_imports ); if (some(importDeclarationChanges)) { return [ - createCodeFixActionWithoutFixAll(fixId14, importDeclarationChanges, Diagnostics.Use_import_type), + createCodeFixActionWithoutFixAll(fixId13, importDeclarationChanges, Diagnostics.Use_import_type), mainAction ]; } @@ -156809,10 +153694,10 @@ registerCodeFix({ } return void 0; }, - fixIds: [fixId14], + fixIds: [fixId13], getAllCodeActions: function getAllCodeActionsToConvertToTypeOnlyImport(context) { const fixedImportDeclarations = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes15, (changes, diag2) => { + return codeFixAll(context, errorCodes14, (changes, diag2) => { const errorDeclaration = getDeclaration2(diag2.file, diag2.start); if ((errorDeclaration == null ? void 0 : errorDeclaration.kind) === 272 /* ImportDeclaration */ && !fixedImportDeclarations.has(errorDeclaration)) { doChange11(changes, diag2.file, errorDeclaration); @@ -156945,11 +153830,11 @@ function doChange11(changes, sourceFile, declaration) { } // src/services/codefixes/convertTypedefToType.ts -var fixId15 = "convertTypedefToType"; -var errorCodes16 = [Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type.code]; +var fixId14 = "convertTypedefToType"; +var errorCodes15 = [Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type.code]; registerCodeFix({ - fixIds: [fixId15], - errorCodes: errorCodes16, + fixIds: [fixId14], + errorCodes: errorCodes15, getCodeActions(context) { const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); const node = getTokenAtPosition( @@ -156961,10 +153846,10 @@ registerCodeFix({ if (changes.length > 0) { return [ createCodeFixAction( - fixId15, + fixId14, changes, Diagnostics.Convert_typedef_to_TypeScript_type, - fixId15, + fixId14, Diagnostics.Convert_all_typedef_to_TypeScript_types ) ]; @@ -156972,7 +153857,7 @@ registerCodeFix({ }, getAllCodeActions: (context) => codeFixAll( context, - errorCodes16, + errorCodes15, (changes, diag2) => { const newLineCharacter = getNewLineOrDefaultFromHost(context.host, context.formatContext.options); const node = getTokenAtPosition(diag2.file, diag2.start); @@ -157028,7 +153913,7 @@ function getLeftAndRightSiblings(typedefNode) { function findEndOfTextBetween(jsDocComment, from, to) { const comment = jsDocComment.getText().substring(from - jsDocComment.getStart(), to - jsDocComment.getStart()); for (let i = comment.length; i > 0; i--) { - if (!/[*/\s]/.test(comment.substring(i - 1, i))) { + if (!/[*/\s]/g.test(comment.substring(i - 1, i))) { return from + i; } } @@ -157115,10 +154000,10 @@ function getJSDocTypedefNodes(node) { } // src/services/codefixes/convertLiteralTypeToMappedType.ts -var fixId16 = "convertLiteralTypeToMappedType"; -var errorCodes17 = [Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code]; +var fixId15 = "convertLiteralTypeToMappedType"; +var errorCodes16 = [Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code]; registerCodeFix({ - errorCodes: errorCodes17, + errorCodes: errorCodes16, getCodeActions: function getCodeActionsToConvertLiteralTypeToMappedType(context) { const { sourceFile, span } = context; const info = getInfo5(sourceFile, span.start); @@ -157127,10 +154012,10 @@ registerCodeFix({ } const { name, constraint } = info; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange13(t, sourceFile, info)); - return [createCodeFixAction(fixId16, changes, [Diagnostics.Convert_0_to_1_in_0, constraint, name], fixId16, Diagnostics.Convert_all_type_literals_to_mapped_type)]; + return [createCodeFixAction(fixId15, changes, [Diagnostics.Convert_0_to_1_in_0, constraint, name], fixId15, Diagnostics.Convert_all_type_literals_to_mapped_type)]; }, - fixIds: [fixId16], - getAllCodeActions: (context) => codeFixAll(context, errorCodes17, (changes, diag2) => { + fixIds: [fixId15], + getAllCodeActions: (context) => codeFixAll(context, errorCodes16, (changes, diag2) => { const info = getInfo5(diag2.file, diag2.start); if (info) { doChange13(changes, diag2.file, info); @@ -157176,25 +154061,25 @@ function doChange13(changes, sourceFile, { container, typeNode, constraint, name } // src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts -var errorCodes18 = [ +var errorCodes17 = [ Diagnostics.Class_0_incorrectly_implements_interface_1.code, Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code ]; -var fixId17 = "fixClassIncorrectlyImplementsInterface"; +var fixId16 = "fixClassIncorrectlyImplementsInterface"; registerCodeFix({ - errorCodes: errorCodes18, + errorCodes: errorCodes17, getCodeActions(context) { const { sourceFile, span } = context; const classDeclaration = getClass(sourceFile, span.start); return mapDefined(getEffectiveImplementsTypeNodes(classDeclaration), (implementedTypeNode) => { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingDeclarations(context, implementedTypeNode, sourceFile, classDeclaration, t, context.preferences)); - return changes.length === 0 ? void 0 : createCodeFixAction(fixId17, changes, [Diagnostics.Implement_interface_0, implementedTypeNode.getText(sourceFile)], fixId17, Diagnostics.Implement_all_unimplemented_interfaces); + return changes.length === 0 ? void 0 : createCodeFixAction(fixId16, changes, [Diagnostics.Implement_interface_0, implementedTypeNode.getText(sourceFile)], fixId16, Diagnostics.Implement_all_unimplemented_interfaces); }); }, - fixIds: [fixId17], + fixIds: [fixId16], getAllCodeActions(context) { - const seenClassDeclarations = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes18, (changes, diag2) => { + const seenClassDeclarations = /* @__PURE__ */ new Map(); + return codeFixAll(context, errorCodes17, (changes, diag2) => { const classDeclaration = getClass(diag2.file, diag2.start); if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) { for (const implementedTypeNode of getEffectiveImplementsTypeNodes(classDeclaration)) { @@ -157235,8 +154120,6 @@ function addMissingDeclarations(context, implementedTypeNode, sourceFile, classD classDeclaration, /*flags*/ void 0, - /*internalFlags*/ - void 0, getNoopSymbolTrackerWithResolver(context) )); } @@ -157260,7 +154143,7 @@ function getHeritageClauseSymbolTable(classDeclaration, checker) { // src/services/codefixes/importFixes.ts var importFixName = "import"; var importFixId = "fixMissingImport"; -var errorCodes19 = [ +var errorCodes18 = [ Diagnostics.Cannot_find_name_0.code, Diagnostics.Cannot_find_name_0_Did_you_mean_1.code, Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, @@ -157279,12 +154162,10 @@ var errorCodes19 = [ Diagnostics.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.code, Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code, Diagnostics.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.code, - Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code, - Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code, - Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code + Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code ]; registerCodeFix({ - errorCodes: errorCodes19, + errorCodes: errorCodes18, getCodeActions(context) { const { errorCode, preferences, sourceFile, span, program } = context; const info = getFixInfos( @@ -157320,7 +154201,7 @@ registerCodeFix({ host, cancellationToken ); - eachDiagnostic(context, errorCodes19, (diag2) => importAdder.addImportFromDiagnostic(diag2, context)); + eachDiagnostic(context, errorCodes18, (diag2) => importAdder.addImportFromDiagnostic(diag2, context)); return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, importAdder.writeFixes)); } }); @@ -157343,7 +154224,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre const removeExisting = /* @__PURE__ */ new Set(); const verbatimImports = /* @__PURE__ */ new Set(); const newImports = /* @__PURE__ */ new Map(); - return { addImportFromDiagnostic, addImportFromExportedSymbol, addImportForModuleSymbol, writeFixes, hasFixes, addImportForUnresolvedIdentifier, addImportForNonExistentExport, removeExistingImport, addVerbatimImport }; + return { addImportFromDiagnostic, addImportFromExportedSymbol, writeFixes, hasFixes, addImportForUnresolvedIdentifier, addImportForNonExistentExport, removeExistingImport, addVerbatimImport }; function addVerbatimImport(declaration) { verbatimImports.add(declaration); } @@ -157358,8 +154239,8 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre addImport(first(info)); } function addImportFromExportedSymbol(exportedSymbol, isValidTypeOnlyUseSite, referenceImport) { - var _a, _b; - const moduleSymbol = Debug.checkDefined(exportedSymbol.parent, "Expected exported symbol to have module symbol as parent"); + var _a; + const moduleSymbol = Debug.checkDefined(exportedSymbol.parent); const symbolName2 = getNameForExportedSymbol(exportedSymbol, getEmitScriptTarget(compilerOptions)); const checker = program.getTypeChecker(); const symbol = checker.getMergedSymbol(skipAlias(exportedSymbol, checker)); @@ -157375,14 +154256,10 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre preferences, cancellationToken ); - if (!exportInfo) { - Debug.assert((_a = preferences.autoImportFileExcludePatterns) == null ? void 0 : _a.length); - return; - } const useRequire = shouldUseRequire(sourceFile, program); let fix = getImportFixForSymbol( sourceFile, - exportInfo, + Debug.checkDefined(exportInfo), program, /*position*/ void 0, @@ -157392,92 +154269,13 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre preferences ); if (fix) { - const localName = ((_b = tryCast(referenceImport == null ? void 0 : referenceImport.name, isIdentifier)) == null ? void 0 : _b.text) ?? symbolName2; - let addAsTypeOnly; - let propertyName; + const localName = ((_a = tryCast(referenceImport == null ? void 0 : referenceImport.name, isIdentifier)) == null ? void 0 : _a.text) ?? symbolName2; if (referenceImport && isTypeOnlyImportDeclaration(referenceImport) && (fix.kind === 3 /* AddNew */ || fix.kind === 2 /* AddToExisting */) && fix.addAsTypeOnly === 1 /* Allowed */) { - addAsTypeOnly = 2 /* Required */; - } - if (exportedSymbol.name !== localName) { - propertyName = exportedSymbol.name; + fix = { ...fix, addAsTypeOnly: 2 /* Required */ }; } - fix = { - ...fix, - ...addAsTypeOnly === void 0 ? {} : { addAsTypeOnly }, - ...propertyName === void 0 ? {} : { propertyName } - }; addImport({ fix, symbolName: localName ?? symbolName2, errorIdentifierText: void 0 }); } } - function addImportForModuleSymbol(symbolAlias, isValidTypeOnlyUseSite, referenceImport) { - var _a, _b, _c; - const checker = program.getTypeChecker(); - const moduleSymbol = checker.getAliasedSymbol(symbolAlias); - Debug.assert(moduleSymbol.flags & 1536 /* Module */, "Expected symbol to be a module"); - const moduleSpecifierResolutionHost = createModuleSpecifierResolutionHost(program, host); - const moduleSpecifierResult = ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo( - moduleSymbol, - checker, - compilerOptions, - sourceFile, - moduleSpecifierResolutionHost, - preferences, - /*options*/ - void 0, - /*forAutoImport*/ - true - ); - const useRequire = shouldUseRequire(sourceFile, program); - let addAsTypeOnly = getAddAsTypeOnly( - isValidTypeOnlyUseSite, - /*isForNewImportDeclaration*/ - true, - /*symbol*/ - void 0, - symbolAlias.flags, - program.getTypeChecker(), - compilerOptions - ); - addAsTypeOnly = addAsTypeOnly === 1 /* Allowed */ && isTypeOnlyImportDeclaration(referenceImport) ? 2 /* Required */ : 1 /* Allowed */; - const importKind = isImportDeclaration(referenceImport) ? isDefaultImport(referenceImport) ? 1 /* Default */ : 2 /* Namespace */ : isImportSpecifier(referenceImport) ? 0 /* Named */ : isImportClause(referenceImport) && !!referenceImport.name ? 1 /* Default */ : 2 /* Namespace */; - const exportInfo = [{ - symbol: symbolAlias, - moduleSymbol, - moduleFileName: (_c = (_b = (_a = moduleSymbol.declarations) == null ? void 0 : _a[0]) == null ? void 0 : _b.getSourceFile()) == null ? void 0 : _c.fileName, - exportKind: 4 /* Module */, - targetFlags: symbolAlias.flags, - isFromPackageJson: false - }]; - const existingFix = getImportFixForSymbol( - sourceFile, - exportInfo, - program, - /*position*/ - void 0, - !!isValidTypeOnlyUseSite, - useRequire, - host, - preferences - ); - let fix; - if (existingFix && importKind !== 2 /* Namespace */) { - fix = { - ...existingFix, - addAsTypeOnly, - importKind - }; - } else { - fix = { - kind: 3 /* AddNew */, - moduleSpecifierKind: existingFix !== void 0 ? existingFix.moduleSpecifierKind : moduleSpecifierResult.kind, - moduleSpecifier: existingFix !== void 0 ? existingFix.moduleSpecifier : first(moduleSpecifierResult.moduleSpecifiers), - importKind, - addAsTypeOnly, - useRequire - }; - } - addImport({ fix, symbolName: symbolAlias.name, errorIdentifierText: void 0 }); - } function addImportForNonExistentExport(exportName, exportingFileName, exportKind, exportedMeanings, isImportUsageValidAsTypeOnly) { const exportingSourceFile = program.getSourceFile(exportingFileName); const useRequire = shouldUseRequire(sourceFile, program); @@ -157508,10 +154306,9 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre sourceFile, exportingFileName, compilerOptions, - createModuleSpecifierResolutionHost(program, host), - preferences + createModuleSpecifierResolutionHost(program, host) ); - const importKind = getImportKind(futureExportingSourceFile, exportKind, program); + const importKind = getImportKind(futureExportingSourceFile, exportKind, compilerOptions); const addAsTypeOnly = getAddAsTypeOnly( isImportUsageValidAsTypeOnly, /*isForNewImportDeclaration*/ @@ -157540,7 +154337,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre removeExisting.add(declaration); } function addImport(info) { - var _a, _b, _c; + var _a, _b; const { fix, symbolName: symbolName2 } = info; switch (fix.kind) { case 0 /* UseNamespace */: @@ -157550,40 +154347,40 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre importType.push(fix); break; case 2 /* AddToExisting */: { - const { importClauseOrBindingPattern, importKind, addAsTypeOnly, propertyName } = fix; + const { importClauseOrBindingPattern, importKind, addAsTypeOnly } = fix; let entry = addToExisting.get(importClauseOrBindingPattern); if (!entry) { addToExisting.set(importClauseOrBindingPattern, entry = { importClauseOrBindingPattern, defaultImport: void 0, namedImports: /* @__PURE__ */ new Map() }); } if (importKind === 0 /* Named */) { - const prevTypeOnly = (_a = entry == null ? void 0 : entry.namedImports.get(symbolName2)) == null ? void 0 : _a.addAsTypeOnly; - entry.namedImports.set(symbolName2, { addAsTypeOnly: reduceAddAsTypeOnlyValues(prevTypeOnly, addAsTypeOnly), propertyName }); + const prevValue = entry == null ? void 0 : entry.namedImports.get(symbolName2); + entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly)); } else { Debug.assert(entry.defaultImport === void 0 || entry.defaultImport.name === symbolName2, "(Add to Existing) Default import should be missing or match symbolName"); entry.defaultImport = { name: symbolName2, - addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) + addAsTypeOnly: reduceAddAsTypeOnlyValues((_a = entry.defaultImport) == null ? void 0 : _a.addAsTypeOnly, addAsTypeOnly) }; } break; } case 3 /* AddNew */: { - const { moduleSpecifier, importKind, useRequire, addAsTypeOnly, propertyName } = fix; + const { moduleSpecifier, importKind, useRequire, addAsTypeOnly } = fix; const entry = getNewImportEntry(moduleSpecifier, importKind, useRequire, addAsTypeOnly); Debug.assert(entry.useRequire === useRequire, "(Add new) Tried to add an `import` and a `require` for the same module"); switch (importKind) { case 1 /* Default */: Debug.assert(entry.defaultImport === void 0 || entry.defaultImport.name === symbolName2, "(Add new) Default import should be missing or match symbolName"); - entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_c = entry.defaultImport) == null ? void 0 : _c.addAsTypeOnly, addAsTypeOnly) }; + entry.defaultImport = { name: symbolName2, addAsTypeOnly: reduceAddAsTypeOnlyValues((_b = entry.defaultImport) == null ? void 0 : _b.addAsTypeOnly, addAsTypeOnly) }; break; case 0 /* Named */: const prevValue = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2); - entry.namedImports.set(symbolName2, [reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly), propertyName]); + entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue, addAsTypeOnly)); break; case 3 /* CommonJS */: if (compilerOptions.verbatimModuleSyntax) { const prevValue2 = (entry.namedImports || (entry.namedImports = /* @__PURE__ */ new Map())).get(symbolName2); - entry.namedImports.set(symbolName2, [reduceAddAsTypeOnlyValues(prevValue2, addAsTypeOnly), propertyName]); + entry.namedImports.set(symbolName2, reduceAddAsTypeOnlyValues(prevValue2, addAsTypeOnly)); } else { Debug.assert(entry.namespaceLikeImport === void 0 || entry.namespaceLikeImport.name === symbolName2, "Namespacelike import shoudl be missing or match symbolName"); entry.namespaceLikeImport = { importKind, name: symbolName2, addAsTypeOnly }; @@ -157644,7 +154441,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre function writeFixes(changeTracker, oldFileQuotePreference) { var _a, _b; let quotePreference; - if (sourceFile.imports !== void 0 && sourceFile.imports.length === 0 && oldFileQuotePreference !== void 0) { + if (isFullSourceFile(sourceFile) && sourceFile.imports.length === 0 && oldFileQuotePreference !== void 0) { quotePreference = oldFileQuotePreference; } else { quotePreference = getQuotePreference(sourceFile, preferences); @@ -157737,7 +154534,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre sourceFile, importClauseOrBindingPattern, defaultImport, - arrayFrom(namedImports.entries(), ([name, { addAsTypeOnly, propertyName }]) => ({ addAsTypeOnly, propertyName, name })), + arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })), importSpecifiersToRemoveWhileAdding, preferences ); @@ -157750,7 +154547,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre moduleSpecifier, quotePreference, defaultImport, - namedImports && arrayFrom(namedImports.entries(), ([name, [addAsTypeOnly, propertyName]]) => ({ addAsTypeOnly, propertyName, name })), + namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })), namespaceLikeImport, compilerOptions, preferences @@ -157851,7 +154648,7 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre } function createImportSpecifierResolver(importingFile, program, host, preferences) { const packageJsonImportFilter = createPackageJsonImportFilter(importingFile, preferences, host); - const importMap = createExistingImportMap(importingFile, program); + const importMap = createExistingImportMap(program.getTypeChecker(), importingFile, program.getCompilerOptions()); return { getModuleSpecifierForBestExportInfo }; function getModuleSpecifierForBestExportInfo(exportInfo, position, isValidTypeOnlyUseSite, fromCacheOnly) { const { fixes, computedWithoutCacheCount } = getImportFixes( @@ -157921,13 +154718,8 @@ function codeFixActionToCodeAction({ description: description3, changes, command } function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, moduleSymbol, preferCapitalized, program, host, preferences, cancellationToken) { const getChecker = createGetChecker(program, host); - const isFileExcluded = preferences.autoImportFileExcludePatterns && getIsFileExcluded(host, preferences); - const mergedModuleSymbol = program.getTypeChecker().getMergedSymbol(moduleSymbol); - const moduleSourceFile = isFileExcluded && mergedModuleSymbol.declarations && getDeclarationOfKind(mergedModuleSymbol, 307 /* SourceFile */); - const moduleSymbolExcluded = moduleSourceFile && isFileExcluded(moduleSourceFile); return getExportInfoMap(importingFile, host, program, preferences, cancellationToken).search(importingFile.path, preferCapitalized, (name) => name === symbolName2, (info) => { - const checker = getChecker(info[0].isFromPackageJson); - if (checker.getMergedSymbol(skipAlias(info[0].symbol, checker)) === symbol && (moduleSymbolExcluded || info.some((i) => checker.getMergedSymbol(i.moduleSymbol) === moduleSymbol || i.symbol.parent === moduleSymbol))) { + if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol && info.some((i) => i.moduleSymbol === moduleSymbol || i.symbol.parent === moduleSymbol)) { return info; } }); @@ -157959,7 +154751,7 @@ function getSingleExportInfoForSymbol(symbol, symbolName2, moduleSymbol, program } } } -function getImportFixes(exportInfos, usagePosition, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences, importMap = isFullSourceFile(sourceFile) ? createExistingImportMap(sourceFile, program) : void 0, fromCacheOnly) { +function getImportFixes(exportInfos, usagePosition, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences, importMap = isFullSourceFile(sourceFile) ? createExistingImportMap(program.getTypeChecker(), sourceFile, program.getCompilerOptions()) : void 0, fromCacheOnly) { const checker = program.getTypeChecker(); const existingImports = importMap ? flatMap(exportInfos, importMap.getImportsForExportInfo) : emptyArray; const useNamespace = usagePosition !== void 0 && tryUseExistingNamespaceImport(existingImports, usagePosition); @@ -158074,8 +154866,7 @@ function tryAddToExistingImport(existingImports, isValidTypeOnlyUseSite, checker }; } } -function createExistingImportMap(importingFile, program) { - const checker = program.getTypeChecker(); +function createExistingImportMap(checker, importingFile, compilerOptions) { let importMap; for (const moduleSpecifier of importingFile.imports) { const i = importFromModuleSpecifier(moduleSpecifier); @@ -158096,7 +154887,7 @@ function createExistingImportMap(importingFile, program) { const matchingDeclarations = importMap == null ? void 0 : importMap.get(getSymbolId(moduleSymbol)); if (!matchingDeclarations) return emptyArray; if (isSourceFileJS(importingFile) && !(targetFlags & 111551 /* Value */) && !every(matchingDeclarations, isJSDocImportTag)) return emptyArray; - const importKind = getImportKind(importingFile, exportKind, program); + const importKind = getImportKind(importingFile, exportKind, compilerOptions); return matchingDeclarations.map((declaration) => ({ declaration, importKind, symbol, targetFlags })); } }; @@ -158111,8 +154902,8 @@ function shouldUseRequire(sourceFile, program) { if (compilerOptions.configFile) { return getEmitModuleKind(compilerOptions) < 5 /* ES2015 */; } - if (getImpliedNodeFormatForEmit(sourceFile, program) === 1 /* CommonJS */) return true; - if (getImpliedNodeFormatForEmit(sourceFile, program) === 99 /* ESNext */) return false; + if (sourceFile.impliedNodeFormat === 1 /* CommonJS */) return true; + if (sourceFile.impliedNodeFormat === 99 /* ESNext */) return false; for (const otherFile of program.getSourceFiles()) { if (otherFile === sourceFile || !isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile)) continue; if (otherFile.commonJsModuleIndicator && !otherFile.externalModuleIndicator) return true; @@ -158164,13 +154955,20 @@ function getNewImportFixes(program, sourceFile, usagePosition, isValidTypeOnlyUs if (!importedSymbolHasValueMeaning && isJs && usagePosition !== void 0) { return { kind: 1 /* JsdocTypeImport */, moduleSpecifierKind, moduleSpecifier, usagePosition, exportInfo: exportInfo2, isReExport: i > 0 }; } - const importKind = getImportKind(sourceFile, exportInfo2.exportKind, program); + const importKind = getImportKind(sourceFile, exportInfo2.exportKind, compilerOptions); let qualification; if (usagePosition !== void 0 && importKind === 3 /* CommonJS */ && exportInfo2.exportKind === 0 /* Named */) { const exportEquals = checker.resolveExternalModuleSymbol(exportInfo2.moduleSymbol); let namespacePrefix; if (exportEquals !== exportInfo2.moduleSymbol) { - namespacePrefix = forEachNameOfDefaultExport(exportEquals, checker, getEmitScriptTarget(compilerOptions), identity); + namespacePrefix = forEachNameOfDefaultExport( + exportEquals, + checker, + compilerOptions, + /*preferCapitalizedNames*/ + false, + identity + ); } namespacePrefix || (namespacePrefix = moduleSymbolToValidIdentifier( exportInfo2.moduleSymbol, @@ -158234,7 +155032,7 @@ function getFixInfos(context, errorCode, pos, useAutoImportProvider) { } function sortFixInfo(fixes, sourceFile, program, packageJsonImportFilter, host, preferences) { const _toPath = (fileName) => toPath(fileName, host.getCurrentDirectory(), hostGetCanonicalFileName(host)); - return toSorted(fixes, (a, b) => compareBooleans(!!a.isJsxNamespaceFix, !!b.isJsxNamespaceFix) || compareValues(a.fix.kind, b.fix.kind) || compareModuleSpecifiers(a.fix, b.fix, sourceFile, program, preferences, packageJsonImportFilter.allowsImportingSpecifier, _toPath)); + return sort(fixes, (a, b) => compareBooleans(!!a.isJsxNamespaceFix, !!b.isJsxNamespaceFix) || compareValues(a.fix.kind, b.fix.kind) || compareModuleSpecifiers(a.fix, b.fix, sourceFile, program, preferences, packageJsonImportFilter.allowsImportingSpecifier, _toPath)); } function getFixInfosWithoutDiagnostic(context, symbolToken, useAutoImportProvider) { const info = getFixesInfoForNonUMDImport(context, symbolToken, useAutoImportProvider); @@ -158343,8 +155141,8 @@ function getUmdSymbol(token, checker) { } return void 0; } -function getImportKind(importingFile, exportKind, program, forceImportKeyword) { - if (program.getCompilerOptions().verbatimModuleSyntax && getEmitModuleFormatOfFile(importingFile, program) === 1 /* CommonJS */) { +function getImportKind(importingFile, exportKind, compilerOptions, forceImportKeyword) { + if (compilerOptions.verbatimModuleSyntax && (getEmitModuleKind(compilerOptions) === 1 /* CommonJS */ || importingFile.impliedNodeFormat === 1 /* CommonJS */)) { return 3 /* CommonJS */; } switch (exportKind) { @@ -158353,20 +155151,18 @@ function getImportKind(importingFile, exportKind, program, forceImportKeyword) { case 1 /* Default */: return 1 /* Default */; case 2 /* ExportEquals */: - return getExportEqualsImportKind(importingFile, program.getCompilerOptions(), !!forceImportKeyword); + return getExportEqualsImportKind(importingFile, compilerOptions, !!forceImportKeyword); case 3 /* UMD */: - return getUmdImportKind(importingFile, program, !!forceImportKeyword); - case 4 /* Module */: - return 2 /* Namespace */; + return getUmdImportKind(importingFile, compilerOptions, !!forceImportKeyword); default: return Debug.assertNever(exportKind); } } -function getUmdImportKind(importingFile, program, forceImportKeyword) { - if (getAllowSyntheticDefaultImports(program.getCompilerOptions())) { +function getUmdImportKind(importingFile, compilerOptions, forceImportKeyword) { + if (getAllowSyntheticDefaultImports(compilerOptions)) { return 1 /* Default */; } - const moduleKind = getEmitModuleKind(program.getCompilerOptions()); + const moduleKind = getEmitModuleKind(compilerOptions); switch (moduleKind) { case 2 /* AMD */: case 1 /* CommonJS */: @@ -158384,9 +155180,8 @@ function getUmdImportKind(importingFile, program, forceImportKeyword) { case 200 /* Preserve */: return 2 /* Namespace */; case 100 /* Node16 */: - case 101 /* Node18 */: case 199 /* NodeNext */: - return getImpliedNodeFormatForEmit(importingFile, program) === 99 /* ESNext */ ? 2 /* Namespace */ : 3 /* CommonJS */; + return importingFile.impliedNodeFormat === 99 /* ESNext */ ? 2 /* Namespace */ : 3 /* CommonJS */; default: return Debug.assertNever(moduleKind, `Unexpected moduleKind ${moduleKind}`); } @@ -158459,7 +155254,7 @@ function getExportInfos(symbolName2, isJsxTagName, currentTokenMeaning, cancella }); function addSymbol(moduleSymbol, toFile, exportedSymbol, exportKind, program2, isFromPackageJson) { const moduleSpecifierResolutionHost = getModuleSpecifierResolutionHost(isFromPackageJson); - if (isImportable(program2, fromFile, toFile, moduleSymbol, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache)) { + if (toFile && isImportableFile(program2, fromFile, toFile, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) || !toFile && packageJsonFilter.allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost)) { const checker = program2.getTypeChecker(); originalSymbolToExportInfos.add(getUniqueSymbolId(exportedSymbol, checker).toString(), { symbol: exportedSymbol, moduleSymbol, moduleFileName: toFile == null ? void 0 : toFile.fileName, exportKind, targetFlags: skipAlias(exportedSymbol, checker).flags, isFromPackageJson }); } @@ -158469,7 +155264,7 @@ function getExportInfos(symbolName2, isJsxTagName, currentTokenMeaning, cancella cancellationToken.throwIfCancellationRequested(); const compilerOptions = program2.getCompilerOptions(); const defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker); - if (defaultInfo && symbolFlagsHaveMeaning(checker.getSymbolFlags(defaultInfo.symbol), currentTokenMeaning) && forEachNameOfDefaultExport(defaultInfo.symbol, checker, getEmitScriptTarget(compilerOptions), (name, capitalizedName) => (isJsxTagName ? capitalizedName ?? name : name) === symbolName2)) { + if (defaultInfo && symbolFlagsHaveMeaning(checker.getSymbolFlags(defaultInfo.symbol), currentTokenMeaning) && forEachNameOfDefaultExport(defaultInfo.symbol, checker, compilerOptions, isJsxTagName, (name) => name === symbolName2)) { addSymbol(moduleSymbol, sourceFile, defaultInfo.symbol, defaultInfo.exportKind, program2, isFromPackageJson); } const exportSymbolWithIdenticalName = checker.tryGetMemberInModuleExportsAndProperties(symbolName2, moduleSymbol); @@ -158654,7 +155449,8 @@ function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImpor ...namedImports.map((i) => factory.createBindingElement( /*dotDotDotToken*/ void 0, - i.propertyName, + /*propertyName*/ + void 0, i.name )) ]) @@ -158665,7 +155461,12 @@ function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImpor addElementToBindingPattern(clause, defaultImport.name, "default"); } for (const specifier of namedImports) { - addElementToBindingPattern(clause, specifier.name, specifier.propertyName); + addElementToBindingPattern( + clause, + specifier.name, + /*propertyName*/ + void 0 + ); } return; } @@ -158677,11 +155478,12 @@ function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImpor } if (namedImports.length) { const { specifierComparer, isSorted } = ts_OrganizeImports_exports.getNamedImportSpecifierComparerWithDetection(clause.parent, preferences, sourceFile); - const newSpecifiers = toSorted( + const newSpecifiers = stableSort( namedImports.map( (namedImport) => factory.createImportSpecifier( (!clause.isTypeOnly || promoteFromTypeOnly2) && shouldUseTypeOnly(namedImport, preferences), - namedImport.propertyName === void 0 ? void 0 : factory.createIdentifier(namedImport.propertyName), + /*propertyName*/ + void 0, factory.createIdentifier(namedImport.name) ) ), @@ -158693,7 +155495,7 @@ function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImpor clause.namedBindings, factory.updateNamedImports( clause.namedBindings, - toSorted([...existingSpecifiers.filter((s) => !removeExistingImportSpecifiers.has(s)), ...newSpecifiers], specifierComparer) + stableSort([...existingSpecifiers.filter((s) => !removeExistingImportSpecifiers.has(s)), ...newSpecifiers], specifierComparer) ) ); } else if ((existingSpecifiers == null ? void 0 : existingSpecifiers.length) && isSorted !== false) { @@ -158776,7 +155578,8 @@ function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImp namedImports == null ? void 0 : namedImports.map( (namedImport) => factory.createImportSpecifier( !topLevelTypeOnly && shouldUseTypeOnly(namedImport, preferences), - namedImport.propertyName === void 0 ? void 0 : factory.createIdentifier(namedImport.propertyName), + /*propertyName*/ + void 0, factory.createIdentifier(namedImport.name) ) ), @@ -158814,10 +155617,11 @@ function getNewRequires(moduleSpecifier, quotePreference, defaultImport, namedIm const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference); let statements; if (defaultImport || (namedImports == null ? void 0 : namedImports.length)) { - const bindingElements = (namedImports == null ? void 0 : namedImports.map(({ name, propertyName }) => factory.createBindingElement( + const bindingElements = (namedImports == null ? void 0 : namedImports.map(({ name }) => factory.createBindingElement( /*dotDotDotToken*/ void 0, - propertyName, + /*propertyName*/ + void 0, name ))) || []; if (defaultImport) { @@ -158861,16 +155665,10 @@ function createConstEqualsRequireDeclaration(name, quotedModuleSpecifier) { function symbolFlagsHaveMeaning(flags, meaning) { return meaning === 7 /* All */ ? true : meaning & 1 /* Value */ ? !!(flags & 111551 /* Value */) : meaning & 2 /* Type */ ? !!(flags & 788968 /* Type */) : meaning & 4 /* Namespace */ ? !!(flags & 1920 /* Namespace */) : false; } -function getImpliedNodeFormatForEmit(file, program) { - return isFullSourceFile(file) ? program.getImpliedNodeFormatForEmit(file) : getImpliedNodeFormatForEmitWorker(file, program.getCompilerOptions()); -} -function getEmitModuleFormatOfFile(file, program) { - return isFullSourceFile(file) ? program.getEmitModuleFormatOfFile(file) : getEmitModuleFormatOfFileWorker(file, program.getCompilerOptions()); -} // src/services/codefixes/fixAddMissingConstraint.ts -var fixId18 = "addMissingConstraint"; -var errorCodes20 = [ +var fixId17 = "addMissingConstraint"; +var errorCodes19 = [ // We want errors this could be attached to: // Diagnostics.This_type_parameter_probably_needs_an_extends_0_constraint Diagnostics.Type_0_is_not_comparable_to_type_1.code, @@ -158883,20 +155681,20 @@ var errorCodes20 = [ Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code ]; registerCodeFix({ - errorCodes: errorCodes20, + errorCodes: errorCodes19, getCodeActions(context) { const { sourceFile, span, program, preferences, host } = context; const info = getInfo6(program, sourceFile, span); if (info === void 0) return; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingConstraint(t, program, preferences, host, sourceFile, info)); - return [createCodeFixAction(fixId18, changes, Diagnostics.Add_extends_constraint, fixId18, Diagnostics.Add_extends_constraint_to_all_type_parameters)]; + return [createCodeFixAction(fixId17, changes, Diagnostics.Add_extends_constraint, fixId17, Diagnostics.Add_extends_constraint_to_all_type_parameters)]; }, - fixIds: [fixId18], + fixIds: [fixId17], getAllCodeActions: (context) => { const { program, preferences, host } = context; - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => { - eachDiagnostic(context, errorCodes20, (diag2) => { + eachDiagnostic(context, errorCodes19, (diag2) => { const info = getInfo6(program, diag2.file, createTextSpan(diag2.start, diag2.length)); if (info) { if (addToSeen(seen, getNodeId(info.declaration))) { @@ -158945,8 +155743,6 @@ function addMissingConstraint(changes, program, preferences, host, sourceFile, i scriptTarget, /*flags*/ void 0, - /*internalFlags*/ - void 0, tracker ); if (typeNode) { @@ -158978,7 +155774,7 @@ function tryGetConstraintType(checker, node) { var fixName = "fixOverrideModifier"; var fixAddOverrideId = "fixAddOverrideModifier"; var fixRemoveOverrideId = "fixRemoveOverrideModifier"; -var errorCodes21 = [ +var errorCodes20 = [ Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code, Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code, Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code, @@ -159042,19 +155838,19 @@ var errorCodeFixIdMap = { } }; registerCodeFix({ - errorCodes: errorCodes21, + errorCodes: errorCodes20, getCodeActions: function getCodeActionsToFixOverrideModifierIssues(context) { const { errorCode, span } = context; const info = errorCodeFixIdMap[errorCode]; if (!info) return emptyArray; - const { descriptions, fixId: fixId56, fixAllDescriptions } = info; + const { descriptions, fixId: fixId55, fixAllDescriptions } = info; const changes = ts_textChanges_exports.ChangeTracker.with(context, (changes2) => dispatchChanges(changes2, context, errorCode, span.start)); return [ - createCodeFixActionMaybeFixAll(fixName, changes, descriptions, fixId56, fixAllDescriptions) + createCodeFixActionMaybeFixAll(fixName, changes, descriptions, fixId55, fixAllDescriptions) ]; }, fixIds: [fixName, fixAddOverrideId, fixRemoveOverrideId], - getAllCodeActions: (context) => codeFixAll(context, errorCodes21, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes20, (changes, diag2) => { const { code, start } = diag2; const info = errorCodeFixIdMap[code]; if (!info || info.fixId !== context.fixId) { @@ -159130,20 +155926,20 @@ function findContainerClassElementLike(sourceFile, pos) { } // src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts -var fixId19 = "fixNoPropertyAccessFromIndexSignature"; -var errorCodes22 = [ +var fixId18 = "fixNoPropertyAccessFromIndexSignature"; +var errorCodes21 = [ Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code ]; registerCodeFix({ - errorCodes: errorCodes22, - fixIds: [fixId19], + errorCodes: errorCodes21, + fixIds: [fixId18], getCodeActions(context) { const { sourceFile, span, preferences } = context; const property = getPropertyAccessExpression(sourceFile, span.start); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange14(t, context.sourceFile, property, preferences)); - return [createCodeFixAction(fixId19, changes, [Diagnostics.Use_element_access_for_0, property.name.text], fixId19, Diagnostics.Use_element_access_for_all_undeclared_properties)]; + return [createCodeFixAction(fixId18, changes, [Diagnostics.Use_element_access_for_0, property.name.text], fixId18, Diagnostics.Use_element_access_for_all_undeclared_properties)]; }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes22, (changes, diag2) => doChange14(changes, diag2.file, getPropertyAccessExpression(diag2.file, diag2.start), context.preferences)) + getAllCodeActions: (context) => codeFixAll(context, errorCodes21, (changes, diag2) => doChange14(changes, diag2.file, getPropertyAccessExpression(diag2.file, diag2.start), context.preferences)) }); function doChange14(changes, sourceFile, node, preferences) { const quotePreference = getQuotePreference(sourceFile, preferences); @@ -159159,20 +155955,20 @@ function getPropertyAccessExpression(sourceFile, pos) { } // src/services/codefixes/fixImplicitThis.ts -var fixId20 = "fixImplicitThis"; -var errorCodes23 = [Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code]; +var fixId19 = "fixImplicitThis"; +var errorCodes22 = [Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code]; registerCodeFix({ - errorCodes: errorCodes23, + errorCodes: errorCodes22, getCodeActions: function getCodeActionsToFixImplicitThis(context) { const { sourceFile, program, span } = context; let diagnostic; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => { diagnostic = doChange15(t, sourceFile, span.start, program.getTypeChecker()); }); - return diagnostic ? [createCodeFixAction(fixId20, changes, diagnostic, fixId20, Diagnostics.Fix_all_implicit_this_errors)] : emptyArray; + return diagnostic ? [createCodeFixAction(fixId19, changes, diagnostic, fixId19, Diagnostics.Fix_all_implicit_this_errors)] : emptyArray; }, - fixIds: [fixId20], - getAllCodeActions: (context) => codeFixAll(context, errorCodes23, (changes, diag2) => { + fixIds: [fixId19], + getAllCodeActions: (context) => codeFixAll(context, errorCodes22, (changes, diag2) => { doChange15(changes, diag2.file, diag2.start, context.program.getTypeChecker()); }) }); @@ -159217,25 +156013,25 @@ function doChange15(changes, sourceFile, pos, checker) { } // src/services/codefixes/fixImportNonExportedMember.ts -var fixId21 = "fixImportNonExportedMember"; -var errorCodes24 = [ +var fixId20 = "fixImportNonExportedMember"; +var errorCodes23 = [ Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code ]; registerCodeFix({ - errorCodes: errorCodes24, - fixIds: [fixId21], + errorCodes: errorCodes23, + fixIds: [fixId20], getCodeActions(context) { const { sourceFile, span, program } = context; const info = getInfo7(sourceFile, span.start, program); if (info === void 0) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange16(t, program, info)); - return [createCodeFixAction(fixId21, changes, [Diagnostics.Export_0_from_module_1, info.exportName.node.text, info.moduleSpecifier], fixId21, Diagnostics.Export_all_referenced_locals)]; + return [createCodeFixAction(fixId20, changes, [Diagnostics.Export_0_from_module_1, info.exportName.node.text, info.moduleSpecifier], fixId20, Diagnostics.Export_all_referenced_locals)]; }, getAllCodeActions(context) { const { program } = context; return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => { const exports2 = /* @__PURE__ */ new Map(); - eachDiagnostic(context, errorCodes24, (diag2) => { + eachDiagnostic(context, errorCodes23, (diag2) => { const info = getInfo7(diag2.file, diag2.start, program); if (info === void 0) return void 0; const { exportName, node, moduleSourceFile } = info; @@ -159375,20 +156171,20 @@ function getNodeOfSymbol(symbol) { } // src/services/codefixes/fixIncorrectNamedTupleSyntax.ts -var fixId22 = "fixIncorrectNamedTupleSyntax"; -var errorCodes25 = [ +var fixId21 = "fixIncorrectNamedTupleSyntax"; +var errorCodes24 = [ Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code, Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code ]; registerCodeFix({ - errorCodes: errorCodes25, + errorCodes: errorCodes24, getCodeActions: function getCodeActionsToFixIncorrectNamedTupleSyntax(context) { const { sourceFile, span } = context; const namedTupleMember = getNamedTupleMember(sourceFile, span.start); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange17(t, sourceFile, namedTupleMember)); - return [createCodeFixAction(fixId22, changes, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels, fixId22, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]; + return [createCodeFixAction(fixId21, changes, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels, fixId21, Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]; }, - fixIds: [fixId22] + fixIds: [fixId21] }); function getNamedTupleMember(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); @@ -159423,8 +156219,8 @@ function doChange17(changes, sourceFile, namedTupleMember) { } // src/services/codefixes/fixSpelling.ts -var fixId23 = "fixSpelling"; -var errorCodes26 = [ +var fixId22 = "fixSpelling"; +var errorCodes25 = [ Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, Diagnostics.Cannot_find_name_0_Did_you_mean_1.code, @@ -159441,7 +156237,7 @@ var errorCodes26 = [ Diagnostics.Type_0_is_not_assignable_to_type_1.code ]; registerCodeFix({ - errorCodes: errorCodes26, + errorCodes: errorCodes25, getCodeActions(context) { const { sourceFile, errorCode } = context; const info = getInfo8(sourceFile, context.span.start, context, errorCode); @@ -159449,10 +156245,10 @@ registerCodeFix({ const { node, suggestedSymbol } = info; const target = getEmitScriptTarget(context.host.getCompilationSettings()); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange18(t, sourceFile, node, suggestedSymbol, target)); - return [createCodeFixAction("spelling", changes, [Diagnostics.Change_spelling_to_0, symbolName(suggestedSymbol)], fixId23, Diagnostics.Fix_all_detected_spelling_errors)]; + return [createCodeFixAction("spelling", changes, [Diagnostics.Change_spelling_to_0, symbolName(suggestedSymbol)], fixId22, Diagnostics.Fix_all_detected_spelling_errors)]; }, - fixIds: [fixId23], - getAllCodeActions: (context) => codeFixAll(context, errorCodes26, (changes, diag2) => { + fixIds: [fixId22], + getAllCodeActions: (context) => codeFixAll(context, errorCodes25, (changes, diag2) => { const info = getInfo8(diag2.file, diag2.start, context, diag2.code); const target = getEmitScriptTarget(context.host.getCompilationSettings()); if (info) doChange18(changes, context.sourceFile, info.node, info.suggestedSymbol, target); @@ -159541,17 +156337,17 @@ function getResolvedSourceFileFromImportDeclaration(context, importDeclaration, } // src/services/codefixes/returnValueCorrect.ts -var fixId24 = "returnValueCorrect"; +var fixId23 = "returnValueCorrect"; var fixIdAddReturnStatement = "fixAddReturnStatement"; var fixRemoveBracesFromArrowFunctionBody = "fixRemoveBracesFromArrowFunctionBody"; var fixIdWrapTheBlockWithParen = "fixWrapTheBlockWithParen"; -var errorCodes27 = [ +var errorCodes26 = [ Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code, Diagnostics.Type_0_is_not_assignable_to_type_1.code, Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code ]; registerCodeFix({ - errorCodes: errorCodes27, + errorCodes: errorCodes26, fixIds: [fixIdAddReturnStatement, fixRemoveBracesFromArrowFunctionBody, fixIdWrapTheBlockWithParen], getCodeActions: function getCodeActionsToCorrectReturnValue(context) { const { program, sourceFile, span: { start }, errorCode } = context; @@ -159566,7 +156362,7 @@ registerCodeFix({ return [getActionForfixWrapTheBlockWithParen(context, info.declaration, info.expression)]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes27, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes26, (changes, diag2) => { const info = getInfo9(context.program.getTypeChecker(), diag2.file, diag2.start, diag2.code); if (!info) return void 0; switch (context.fixId) { @@ -159765,7 +156561,7 @@ function wrapBlockWithParen(changes, sourceFile, declaration, expression) { } function getActionForfixAddReturnStatement(context, expression, statement) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addReturnStatement(t, context.sourceFile, expression, statement)); - return createCodeFixAction(fixId24, changes, Diagnostics.Add_a_return_statement, fixIdAddReturnStatement, Diagnostics.Add_all_missing_return_statement); + return createCodeFixAction(fixId23, changes, Diagnostics.Add_a_return_statement, fixIdAddReturnStatement, Diagnostics.Add_all_missing_return_statement); } function getActionForFixRemoveBracesFromArrowFunctionBody(context, declaration, expression, commentSource) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => removeBlockBodyBrace( @@ -159777,11 +156573,11 @@ function getActionForFixRemoveBracesFromArrowFunctionBody(context, declaration, /*withParen*/ false )); - return createCodeFixAction(fixId24, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues); + return createCodeFixAction(fixId23, changes, Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues); } function getActionForfixWrapTheBlockWithParen(context, declaration, expression) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => wrapBlockWithParen(t, context.sourceFile, declaration, expression)); - return createCodeFixAction(fixId24, changes, Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, fixIdWrapTheBlockWithParen, Diagnostics.Wrap_all_object_literal_with_parentheses); + return createCodeFixAction(fixId23, changes, Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, fixIdWrapTheBlockWithParen, Diagnostics.Wrap_all_object_literal_with_parentheses); } // src/services/codefixes/fixAddMissingMember.ts @@ -159789,18 +156585,17 @@ var fixMissingMember = "fixMissingMember"; var fixMissingProperties = "fixMissingProperties"; var fixMissingAttributes = "fixMissingAttributes"; var fixMissingFunctionDeclaration = "fixMissingFunctionDeclaration"; -var errorCodes28 = [ +var errorCodes27 = [ Diagnostics.Property_0_does_not_exist_on_type_1.code, Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code, Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code, Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code, Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code, Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code, - Diagnostics.Cannot_find_name_0.code, - Diagnostics.Type_0_does_not_satisfy_the_expected_type_1.code + Diagnostics.Cannot_find_name_0.code ]; registerCodeFix({ - errorCodes: errorCodes28, + errorCodes: errorCodes27, getCodeActions(context) { const typeChecker = context.program.getTypeChecker(); const info = getInfo10(context.sourceFile, context.span.start, context.errorCode, typeChecker, context.program); @@ -159827,21 +156622,21 @@ registerCodeFix({ }, fixIds: [fixMissingMember, fixMissingFunctionDeclaration, fixMissingProperties, fixMissingAttributes], getAllCodeActions: (context) => { - const { program, fixId: fixId56 } = context; + const { program, fixId: fixId55 } = context; const checker = program.getTypeChecker(); - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); const typeDeclToMembers = /* @__PURE__ */ new Map(); return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => { - eachDiagnostic(context, errorCodes28, (diag2) => { + eachDiagnostic(context, errorCodes27, (diag2) => { const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program); - if (info === void 0) return; - const nodeId = getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 /* ObjectLiteral */ ? info.identifier || getNodeId(info.token) : info.token.text); - if (!addToSeen(seen, nodeId)) return; - if (fixId56 === fixMissingFunctionDeclaration && (info.kind === 2 /* Function */ || info.kind === 5 /* Signature */)) { + if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 /* ObjectLiteral */ ? info.identifier : info.token.text))) { + return; + } + if (fixId55 === fixMissingFunctionDeclaration && (info.kind === 2 /* Function */ || info.kind === 5 /* Signature */)) { addFunctionDeclaration(changes, context, info); - } else if (fixId56 === fixMissingProperties && info.kind === 3 /* ObjectLiteral */) { + } else if (fixId55 === fixMissingProperties && info.kind === 3 /* ObjectLiteral */) { addObjectLiteralProperties(changes, context, info); - } else if (fixId56 === fixMissingAttributes && info.kind === 4 /* JsxAttributes */) { + } else if (fixId55 === fixMissingAttributes && info.kind === 4 /* JsxAttributes */) { addJsxAttributes(changes, context, info); } else { if (info.kind === 1 /* Enum */) { @@ -159880,7 +156675,7 @@ registerCodeFix({ } }); function getInfo10(sourceFile, tokenPos, errorCode, checker, program) { - var _a, _b; + var _a; const token = getTokenAtPosition(sourceFile, tokenPos); const parent2 = token.parent; if (errorCode === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) { @@ -159893,7 +156688,7 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) { if (!(param && isParameter(param) && isIdentifier(param.name))) return void 0; const properties = arrayFrom(checker.getUnmatchedProperties( checker.getTypeAtLocation(parent2), - checker.getParameterType(signature, argIndex).getNonNullableType(), + checker.getParameterType(signature, argIndex), /*requireOptionalProperties*/ false, /*matchDiscriminantProperties*/ @@ -159902,25 +156697,23 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) { if (!length(properties)) return void 0; return { kind: 3 /* ObjectLiteral */, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 }; } - if (token.kind === 19 /* OpenBraceToken */ || isSatisfiesExpression(parent2) || isReturnStatement(parent2)) { - const expression = (isSatisfiesExpression(parent2) || isReturnStatement(parent2)) && parent2.expression ? parent2.expression : parent2; - if (isObjectLiteralExpression(expression)) { - const targetType = isSatisfiesExpression(parent2) ? checker.getTypeFromTypeNode(parent2.type) : checker.getContextualType(expression) || checker.getTypeAtLocation(expression); - const properties = arrayFrom(checker.getUnmatchedProperties( - checker.getTypeAtLocation(parent2), - targetType.getNonNullableType(), - /*requireOptionalProperties*/ - false, - /*matchDiscriminantProperties*/ - false - )); - if (!length(properties)) return void 0; - return { kind: 3 /* ObjectLiteral */, token: parent2, identifier: void 0, properties, parentDeclaration: expression, indentation: isReturnStatement(expression.parent) || isYieldExpression(expression.parent) ? 0 : void 0 }; - } + if (token.kind === 19 /* OpenBraceToken */ && isObjectLiteralExpression(parent2)) { + const targetType = checker.getContextualType(parent2) || checker.getTypeAtLocation(parent2); + const properties = arrayFrom(checker.getUnmatchedProperties( + checker.getTypeAtLocation(parent2), + targetType, + /*requireOptionalProperties*/ + false, + /*matchDiscriminantProperties*/ + false + )); + if (!length(properties)) return void 0; + const identifier = ""; + return { kind: 3 /* ObjectLiteral */, token: parent2, identifier, properties, parentDeclaration: parent2 }; } if (!isMemberName(token)) return void 0; if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) { - const targetType = (_a = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _a.getNonNullableType(); + const targetType = checker.getContextualType(token) || checker.getTypeAtLocation(token); const properties = arrayFrom(checker.getUnmatchedProperties( checker.getTypeAtLocation(parent2.initializer), targetType, @@ -159939,7 +156732,7 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) { return { kind: 4 /* JsxAttributes */, token, attributes, parentDeclaration: token.parent }; } if (isIdentifier(token)) { - const type = (_b = checker.getContextualType(token)) == null ? void 0 : _b.getNonNullableType(); + const type = (_a = checker.getContextualType(token)) == null ? void 0 : _a.getNonNullableType(); if (type && getObjectFlags(type) & 16 /* Anonymous */) { const signature = firstOrUndefined(checker.getSignaturesOfType(type, 0 /* Call */)); if (signature === void 0) return void 0; @@ -159957,7 +156750,7 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) { const moduleDeclaration = find(symbol.declarations, isModuleDeclaration); const moduleDeclarationSourceFile = moduleDeclaration == null ? void 0 : moduleDeclaration.getSourceFile(); if (moduleDeclaration && moduleDeclarationSourceFile && !isSourceFileFromLibrary(program, moduleDeclarationSourceFile)) { - return { kind: 2 /* Function */, token, call: parent2.parent, sourceFile: moduleDeclarationSourceFile, modifierFlags: 32 /* Export */, parentDeclaration: moduleDeclaration }; + return { kind: 2 /* Function */, token, call: parent2.parent, sourceFile, modifierFlags: 32 /* Export */, parentDeclaration: moduleDeclaration }; } const moduleSourceFile = find(symbol.declarations, isSourceFile); if (sourceFile.commonJsModuleIndicator) return void 0; @@ -160057,15 +156850,14 @@ function getTypeNode2(checker, node, token) { const binaryExpression = token.parent.parent; const otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left; const widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression))); - typeNode = checker.typeToTypeNode(widenedType, node, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */); + typeNode = checker.typeToTypeNode(widenedType, node, 1 /* NoTruncation */); } else { const contextualType = checker.getContextualType(token.parent); typeNode = contextualType ? checker.typeToTypeNode( contextualType, /*enclosingDeclaration*/ void 0, - 1 /* NoTruncation */, - 8 /* AllowUnresolvedNames */ + 1 /* NoTruncation */ ) : void 0; } return typeNode || factory.createKeywordTypeNode(133 /* AnyKeyword */); @@ -160260,9 +157052,8 @@ function tryGetValueFromType(context, checker, importAdder, quotePreference, typ } if (type.flags & 1056 /* EnumLike */) { const enumMember = type.symbol.exports ? firstOrUndefinedIterator(type.symbol.exports.values()) : type.symbol; - const symbol = type.symbol.parent && type.symbol.parent.flags & 256 /* RegularEnum */ ? type.symbol.parent : type.symbol; const name = checker.symbolToExpression( - symbol, + type.symbol.parent ? type.symbol.parent : type.symbol, 111551 /* Value */, /*enclosingDeclaration*/ void 0, @@ -160388,9 +157179,7 @@ function createPropertyNameFromSymbol(symbol, target, quotePreference, checker) 111551 /* Value */, /*enclosingDeclaration*/ void 0, - /*flags*/ - void 0, - 1 /* WriteComputedProps */ + 1073741824 /* WriteComputedProps */ ); if (prop && isComputedPropertyName(prop)) return prop; } @@ -160413,17 +157202,17 @@ function findScope(node) { } // src/services/codefixes/fixAddMissingNewOperator.ts -var fixId25 = "addMissingNewOperator"; -var errorCodes29 = [Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code]; +var fixId24 = "addMissingNewOperator"; +var errorCodes28 = [Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code]; registerCodeFix({ - errorCodes: errorCodes29, + errorCodes: errorCodes28, getCodeActions(context) { const { sourceFile, span } = context; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingNewOperator(t, sourceFile, span)); - return [createCodeFixAction(fixId25, changes, Diagnostics.Add_missing_new_operator_to_call, fixId25, Diagnostics.Add_missing_new_operator_to_all_calls)]; + return [createCodeFixAction(fixId24, changes, Diagnostics.Add_missing_new_operator_to_call, fixId24, Diagnostics.Add_missing_new_operator_to_all_calls)]; }, - fixIds: [fixId25], - getAllCodeActions: (context) => codeFixAll(context, errorCodes29, (changes, diag2) => addMissingNewOperator(changes, context.sourceFile, diag2)) + fixIds: [fixId24], + getAllCodeActions: (context) => codeFixAll(context, errorCodes28, (changes, diag2) => addMissingNewOperator(changes, context.sourceFile, diag2)) }); function addMissingNewOperator(changes, sourceFile, span) { const call = cast(findAncestorMatchingSpan2(sourceFile, span), isCallExpression); @@ -160442,9 +157231,9 @@ function findAncestorMatchingSpan2(sourceFile, span) { // src/services/codefixes/fixAddMissingParam.ts var addMissingParamFixId = "addMissingParam"; var addOptionalParamFixId = "addOptionalParam"; -var errorCodes30 = [Diagnostics.Expected_0_arguments_but_got_1.code]; +var errorCodes29 = [Diagnostics.Expected_0_arguments_but_got_1.code]; registerCodeFix({ - errorCodes: errorCodes30, + errorCodes: errorCodes29, fixIds: [addMissingParamFixId, addOptionalParamFixId], getCodeActions(context) { const info = getInfo11(context.sourceFile, context.program, context.span.start); @@ -160477,7 +157266,7 @@ registerCodeFix({ } return actions2; }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes30, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes29, (changes, diag2) => { const info = getInfo11(context.sourceFile, context.program, diag2.start); if (info) { const { declarations, newParameters, newOptionalParameters } = info; @@ -160563,7 +157352,7 @@ function tryGetName2(node) { } } function typeToTypeNode(checker, type, enclosingDeclaration) { - return checker.typeToTypeNode(checker.getWidenedType(type), enclosingDeclaration, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */) ?? factory.createKeywordTypeNode(159 /* UnknownKeyword */); + return checker.typeToTypeNode(checker.getWidenedType(type), enclosingDeclaration, 1 /* NoTruncation */) ?? factory.createKeywordTypeNode(159 /* UnknownKeyword */); } function doChange19(changes, program, preferences, host, declarations, newParameters) { const scriptTarget = getEmitScriptTarget(program.getCompilerOptions()); @@ -160680,19 +157469,17 @@ function getParameterType(importAdder, typeNode, scriptTarget) { var fixName2 = "fixCannotFindModule"; var fixIdInstallTypesPackage = "installTypesPackage"; var errorCodeCannotFindModule = Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code; -var errorCannotFindImplicitJsxImport = Diagnostics.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.code; -var errorCodes31 = [ +var errorCodes30 = [ errorCodeCannotFindModule, - Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code, - errorCannotFindImplicitJsxImport + Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code ]; registerCodeFix({ - errorCodes: errorCodes31, + errorCodes: errorCodes30, getCodeActions: function getCodeActionsToFixNotFoundModule(context) { - const { host, sourceFile, span: { start }, errorCode } = context; - const packageName = errorCode === errorCannotFindImplicitJsxImport ? getJSXImplicitImportBase(context.program.getCompilerOptions(), sourceFile) : tryGetImportedPackageName(sourceFile, start); + const { host, sourceFile, span: { start } } = context; + const packageName = tryGetImportedPackageName(sourceFile, start); if (packageName === void 0) return void 0; - const typesPackageName = getTypesPackageNameToInstall(packageName, host, errorCode); + const typesPackageName = getTypesPackageNameToInstall(packageName, host, context.errorCode); return typesPackageName === void 0 ? [] : [createCodeFixAction( fixName2, /*changes*/ @@ -160705,7 +157492,7 @@ registerCodeFix({ }, fixIds: [fixIdInstallTypesPackage], getAllCodeActions: (context) => { - return codeFixAll(context, errorCodes31, (_changes, diag2, commands) => { + return codeFixAll(context, errorCodes30, (_changes, diag2, commands) => { const packageName = tryGetImportedPackageName(diag2.file, diag2.start); if (packageName === void 0) return void 0; switch (context.fixId) { @@ -160734,11 +157521,11 @@ function tryGetImportedPackageName(sourceFile, pos) { } function getTypesPackageNameToInstall(packageName, host, diagCode) { var _a; - return diagCode === errorCodeCannotFindModule ? nodeCoreModules.has(packageName) ? "@types/node" : void 0 : ((_a = host.isKnownTypesPackageName) == null ? void 0 : _a.call(host, packageName)) ? getTypesPackageName(packageName) : void 0; + return diagCode === errorCodeCannotFindModule ? ts_JsTyping_exports.nodeCoreModules.has(packageName) ? "@types/node" : void 0 : ((_a = host.isKnownTypesPackageName) == null ? void 0 : _a.call(host, packageName)) ? getTypesPackageName(packageName) : void 0; } // src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts -var errorCodes32 = [ +var errorCodes31 = [ Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code, @@ -160746,18 +157533,18 @@ var errorCodes32 = [ Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code ]; -var fixId26 = "fixClassDoesntImplementInheritedAbstractMember"; +var fixId25 = "fixClassDoesntImplementInheritedAbstractMember"; registerCodeFix({ - errorCodes: errorCodes32, + errorCodes: errorCodes31, getCodeActions: function getCodeActionsToFixClassNotImplementingInheritedMembers(context) { const { sourceFile, span } = context; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => addMissingMembers(getClass2(sourceFile, span.start), sourceFile, context, t, context.preferences)); - return changes.length === 0 ? void 0 : [createCodeFixAction(fixId26, changes, Diagnostics.Implement_inherited_abstract_class, fixId26, Diagnostics.Implement_all_inherited_abstract_classes)]; + return changes.length === 0 ? void 0 : [createCodeFixAction(fixId25, changes, Diagnostics.Implement_inherited_abstract_class, fixId25, Diagnostics.Implement_all_inherited_abstract_classes)]; }, - fixIds: [fixId26], + fixIds: [fixId25], getAllCodeActions: function getAllCodeActionsToFixClassDoesntImplementInheritedAbstractMember(context) { - const seenClassDeclarations = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes32, (changes, diag2) => { + const seenClassDeclarations = /* @__PURE__ */ new Map(); + return codeFixAll(context, errorCodes31, (changes, diag2) => { const classDeclaration = getClass2(diag2.file, diag2.start); if (addToSeen(seenClassDeclarations, getNodeId(classDeclaration))) { addMissingMembers(classDeclaration, context.sourceFile, context, changes, context.preferences); @@ -160784,23 +157571,23 @@ function symbolPointsToNonPrivateAndAbstractMember(symbol) { } // src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts -var fixId27 = "classSuperMustPrecedeThisAccess"; -var errorCodes33 = [Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code]; +var fixId26 = "classSuperMustPrecedeThisAccess"; +var errorCodes32 = [Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code]; registerCodeFix({ - errorCodes: errorCodes33, + errorCodes: errorCodes32, getCodeActions(context) { const { sourceFile, span } = context; const nodes = getNodes(sourceFile, span.start); if (!nodes) return void 0; const { constructor, superCall } = nodes; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange20(t, sourceFile, constructor, superCall)); - return [createCodeFixAction(fixId27, changes, Diagnostics.Make_super_call_the_first_statement_in_the_constructor, fixId27, Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]; + return [createCodeFixAction(fixId26, changes, Diagnostics.Make_super_call_the_first_statement_in_the_constructor, fixId26, Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]; }, - fixIds: [fixId27], + fixIds: [fixId26], getAllCodeActions(context) { const { sourceFile } = context; - const seenClasses = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes33, (changes, diag2) => { + const seenClasses = /* @__PURE__ */ new Map(); + return codeFixAll(context, errorCodes32, (changes, diag2) => { const nodes = getNodes(diag2.file, diag2.start); if (!nodes) return; const { constructor, superCall } = nodes; @@ -160826,18 +157613,18 @@ function findSuperCall(n) { } // src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts -var fixId28 = "constructorForDerivedNeedSuperCall"; -var errorCodes34 = [Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code]; +var fixId27 = "constructorForDerivedNeedSuperCall"; +var errorCodes33 = [Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code]; registerCodeFix({ - errorCodes: errorCodes34, + errorCodes: errorCodes33, getCodeActions(context) { const { sourceFile, span } = context; const ctr = getNode(sourceFile, span.start); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange21(t, sourceFile, ctr)); - return [createCodeFixAction(fixId28, changes, Diagnostics.Add_missing_super_call, fixId28, Diagnostics.Add_all_missing_super_calls)]; + return [createCodeFixAction(fixId27, changes, Diagnostics.Add_missing_super_call, fixId27, Diagnostics.Add_all_missing_super_calls)]; }, - fixIds: [fixId28], - getAllCodeActions: (context) => codeFixAll(context, errorCodes34, (changes, diag2) => doChange21(changes, context.sourceFile, getNode(diag2.file, diag2.start))) + fixIds: [fixId27], + getAllCodeActions: (context) => codeFixAll(context, errorCodes33, (changes, diag2) => doChange21(changes, context.sourceFile, getNode(diag2.file, diag2.start))) }); function getNode(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); @@ -160857,9 +157644,9 @@ function doChange21(changes, sourceFile, ctr) { // src/services/codefixes/fixEnableJsxFlag.ts var fixID = "fixEnableJsxFlag"; -var errorCodes35 = [Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code]; +var errorCodes34 = [Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code]; registerCodeFix({ - errorCodes: errorCodes35, + errorCodes: errorCodes34, getCodeActions: function getCodeActionsToFixEnableJsxFlag(context) { const { configFile } = context.program.getCompilerOptions(); if (configFile === void 0) { @@ -160871,7 +157658,7 @@ registerCodeFix({ ]; }, fixIds: [fixID], - getAllCodeActions: (context) => codeFixAll(context, errorCodes35, (changes) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes34, (changes) => { const { configFile } = context.program.getCompilerOptions(); if (configFile === void 0) { return void 0; @@ -160884,23 +157671,23 @@ function doChange22(changeTracker, configFile) { } // src/services/codefixes/fixNaNEquality.ts -var fixId29 = "fixNaNEquality"; -var errorCodes36 = [ +var fixId28 = "fixNaNEquality"; +var errorCodes35 = [ Diagnostics.This_condition_will_always_return_0.code ]; registerCodeFix({ - errorCodes: errorCodes36, + errorCodes: errorCodes35, getCodeActions(context) { const { sourceFile, span, program } = context; const info = getInfo12(program, sourceFile, span); if (info === void 0) return; const { suggestion, expression, arg } = info; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange23(t, sourceFile, arg, expression)); - return [createCodeFixAction(fixId29, changes, [Diagnostics.Use_0, suggestion], fixId29, Diagnostics.Use_Number_isNaN_in_all_conditions)]; + return [createCodeFixAction(fixId28, changes, [Diagnostics.Use_0, suggestion], fixId28, Diagnostics.Use_Number_isNaN_in_all_conditions)]; }, - fixIds: [fixId29], + fixIds: [fixId28], getAllCodeActions: (context) => { - return codeFixAll(context, errorCodes36, (changes, diag2) => { + return codeFixAll(context, errorCodes35, (changes, diag2) => { const info = getInfo12(context.program, diag2.file, createTextSpan(diag2.start, diag2.length)); if (info) { doChange23(changes, diag2.file, info.arg, info.expression); @@ -160942,9 +157729,9 @@ function getSuggestion(messageText) { // src/services/codefixes/fixModuleAndTargetOptions.ts registerCodeFix({ errorCodes: [ - Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code, - Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code, - Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code + Diagnostics.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.code, + Diagnostics.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.code, + Diagnostics.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.code ], getCodeActions: function getCodeActionsToFixModuleAndTarget(context) { const compilerOptions = context.program.getCompilerOptions(); @@ -160980,20 +157767,20 @@ registerCodeFix({ }); // src/services/codefixes/fixPropertyAssignment.ts -var fixId30 = "fixPropertyAssignment"; -var errorCodes37 = [ +var fixId29 = "fixPropertyAssignment"; +var errorCodes36 = [ Diagnostics.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.code ]; registerCodeFix({ - errorCodes: errorCodes37, - fixIds: [fixId30], + errorCodes: errorCodes36, + fixIds: [fixId29], getCodeActions(context) { const { sourceFile, span } = context; const property = getProperty2(sourceFile, span.start); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange24(t, context.sourceFile, property)); - return [createCodeFixAction(fixId30, changes, [Diagnostics.Change_0_to_1, "=", ":"], fixId30, [Diagnostics.Switch_each_misused_0_to_1, "=", ":"])]; + return [createCodeFixAction(fixId29, changes, [Diagnostics.Change_0_to_1, "=", ":"], fixId29, [Diagnostics.Switch_each_misused_0_to_1, "=", ":"])]; }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes37, (changes, diag2) => doChange24(changes, diag2.file, getProperty2(diag2.file, diag2.start))) + getAllCodeActions: (context) => codeFixAll(context, errorCodes36, (changes, diag2) => doChange24(changes, diag2.file, getProperty2(diag2.file, diag2.start))) }); function doChange24(changes, sourceFile, node) { changes.replaceNode(sourceFile, node, factory.createPropertyAssignment(node.name, node.objectAssignmentInitializer)); @@ -161003,20 +157790,20 @@ function getProperty2(sourceFile, pos) { } // src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts -var fixId31 = "extendsInterfaceBecomesImplements"; -var errorCodes38 = [Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code]; +var fixId30 = "extendsInterfaceBecomesImplements"; +var errorCodes37 = [Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code]; registerCodeFix({ - errorCodes: errorCodes38, + errorCodes: errorCodes37, getCodeActions(context) { const { sourceFile } = context; const nodes = getNodes2(sourceFile, context.span.start); if (!nodes) return void 0; const { extendsToken, heritageClauses } = nodes; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChanges2(t, sourceFile, extendsToken, heritageClauses)); - return [createCodeFixAction(fixId31, changes, Diagnostics.Change_extends_to_implements, fixId31, Diagnostics.Change_all_extended_interfaces_to_implements)]; + return [createCodeFixAction(fixId30, changes, Diagnostics.Change_extends_to_implements, fixId30, Diagnostics.Change_all_extended_interfaces_to_implements)]; }, - fixIds: [fixId31], - getAllCodeActions: (context) => codeFixAll(context, errorCodes38, (changes, diag2) => { + fixIds: [fixId30], + getAllCodeActions: (context) => codeFixAll(context, errorCodes37, (changes, diag2) => { const nodes = getNodes2(diag2.file, diag2.start); if (nodes) doChanges2(changes, diag2.file, nodes.extendsToken, nodes.heritageClauses); }) @@ -161043,15 +157830,15 @@ function doChanges2(changes, sourceFile, extendsToken, heritageClauses) { } // src/services/codefixes/fixForgottenThisPropertyAccess.ts -var fixId32 = "forgottenThisPropertyAccess"; +var fixId31 = "forgottenThisPropertyAccess"; var didYouMeanStaticMemberCode = Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code; -var errorCodes39 = [ +var errorCodes38 = [ Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code, Diagnostics.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.code, didYouMeanStaticMemberCode ]; registerCodeFix({ - errorCodes: errorCodes39, + errorCodes: errorCodes38, getCodeActions(context) { const { sourceFile } = context; const info = getInfo13(sourceFile, context.span.start, context.errorCode); @@ -161059,10 +157846,10 @@ registerCodeFix({ return void 0; } const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange25(t, sourceFile, info)); - return [createCodeFixAction(fixId32, changes, [Diagnostics.Add_0_to_unresolved_variable, info.className || "this"], fixId32, Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]; + return [createCodeFixAction(fixId31, changes, [Diagnostics.Add_0_to_unresolved_variable, info.className || "this"], fixId31, Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]; }, - fixIds: [fixId32], - getAllCodeActions: (context) => codeFixAll(context, errorCodes39, (changes, diag2) => { + fixIds: [fixId31], + getAllCodeActions: (context) => codeFixAll(context, errorCodes38, (changes, diag2) => { const info = getInfo13(diag2.file, diag2.start, diag2.code); if (info) doChange25(changes, context.sourceFile, info); }) @@ -161081,12 +157868,12 @@ function doChange25(changes, sourceFile, { node, className }) { // src/services/codefixes/fixInvalidJsxCharacters.ts var fixIdExpression = "fixInvalidJsxCharacters_expression"; var fixIdHtmlEntity = "fixInvalidJsxCharacters_htmlEntity"; -var errorCodes40 = [ +var errorCodes39 = [ Diagnostics.Unexpected_token_Did_you_mean_or_gt.code, Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code ]; registerCodeFix({ - errorCodes: errorCodes40, + errorCodes: errorCodes39, fixIds: [fixIdExpression, fixIdHtmlEntity], getCodeActions(context) { const { sourceFile, preferences, span } = context; @@ -161112,7 +157899,7 @@ registerCodeFix({ ]; }, getAllCodeActions(context) { - return codeFixAll(context, errorCodes40, (changes, diagnostic) => doChange26(changes, context.preferences, diagnostic.file, diagnostic.start, context.fixId === fixIdHtmlEntity)); + return codeFixAll(context, errorCodes39, (changes, diagnostic) => doChange26(changes, context.preferences, diagnostic.file, diagnostic.start, context.fixId === fixIdHtmlEntity)); } }); var htmlEntity = { @@ -161134,12 +157921,12 @@ function doChange26(changes, preferences, sourceFile, start, useHtmlEntity) { // src/services/codefixes/fixUnmatchedParameter.ts var deleteUnmatchedParameter = "deleteUnmatchedParameter"; var renameUnmatchedParameter = "renameUnmatchedParameter"; -var errorCodes41 = [ +var errorCodes40 = [ Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code ]; registerCodeFix({ fixIds: [deleteUnmatchedParameter, renameUnmatchedParameter], - errorCodes: errorCodes41, + errorCodes: errorCodes40, getCodeActions: function getCodeActionsToFixUnmatchedParameter(context) { const { sourceFile, span } = context; const actions2 = []; @@ -161154,7 +157941,7 @@ registerCodeFix({ getAllCodeActions: function getAllCodeActionsToFixUnmatchedParameter(context) { const tagsToSignature = /* @__PURE__ */ new Map(); return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => { - eachDiagnostic(context, errorCodes41, ({ file, start }) => { + eachDiagnostic(context, errorCodes40, ({ file, start }) => { const info = getInfo14(file, start); if (info) { tagsToSignature.set(info.signature, append(tagsToSignature.get(info.signature), info.jsDocParameterTag)); @@ -161217,10 +158004,10 @@ function getInfo14(sourceFile, pos) { } // src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts -var fixId33 = "fixUnreferenceableDecoratorMetadata"; -var errorCodes42 = [Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code]; +var fixId32 = "fixUnreferenceableDecoratorMetadata"; +var errorCodes41 = [Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code]; registerCodeFix({ - errorCodes: errorCodes42, + errorCodes: errorCodes41, getCodeActions: (context) => { const importDeclaration = getImportDeclaration(context.sourceFile, context.program, context.span.start); if (!importDeclaration) return; @@ -161228,14 +158015,14 @@ registerCodeFix({ const typeOnlyChanges = ts_textChanges_exports.ChangeTracker.with(context, (t) => doTypeOnlyImportChange(t, context.sourceFile, importDeclaration, context.program)); let actions2; if (namespaceChanges.length) { - actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId33, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import)); + actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, namespaceChanges, Diagnostics.Convert_named_imports_to_namespace_import)); } if (typeOnlyChanges.length) { - actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId33, typeOnlyChanges, Diagnostics.Use_import_type)); + actions2 = append(actions2, createCodeFixActionWithoutFixAll(fixId32, typeOnlyChanges, Diagnostics.Use_import_type)); } return actions2; }, - fixIds: [fixId33] + fixIds: [fixId32] }); function getImportDeclaration(sourceFile, program, start) { const identifier = tryCast(getTokenAtPosition(sourceFile, start), isIdentifier); @@ -161272,7 +158059,7 @@ var fixIdPrefix = "unusedIdentifier_prefix"; var fixIdDelete = "unusedIdentifier_delete"; var fixIdDeleteImports = "unusedIdentifier_deleteImports"; var fixIdInfer = "unusedIdentifier_infer"; -var errorCodes43 = [ +var errorCodes42 = [ Diagnostics._0_is_declared_but_its_value_is_never_read.code, Diagnostics._0_is_declared_but_never_used.code, Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code, @@ -161282,7 +158069,7 @@ var errorCodes43 = [ Diagnostics.All_type_parameters_are_unused.code ]; registerCodeFix({ - errorCodes: errorCodes43, + errorCodes: errorCodes42, getCodeActions(context) { const { errorCode, sourceFile, program, cancellationToken } = context; const checker = program.getTypeChecker(); @@ -161371,7 +158158,7 @@ registerCodeFix({ const { sourceFile, program, cancellationToken } = context; const checker = program.getTypeChecker(); const sourceFiles = program.getSourceFiles(); - return codeFixAll(context, errorCodes43, (changes, diag2) => { + return codeFixAll(context, errorCodes42, (changes, diag2) => { const token = getTokenAtPosition(sourceFile, diag2.start); switch (context.fixId) { case fixIdPrefix: @@ -161413,8 +158200,6 @@ registerCodeFix({ break; } else if (canDeleteEntireVariableStatement(sourceFile, token)) { deleteEntireVariableStatement(changes, sourceFile, token.parent); - } else if (isIdentifier(token) && isFunctionDeclaration(token.parent)) { - deleteFunctionLikeDeclaration(changes, sourceFile, token.parent); } else { tryDeleteDeclaration( sourceFile, @@ -161613,18 +158398,18 @@ function deleteFunctionLikeDeclaration(changes, sourceFile, node) { } // src/services/codefixes/fixUnreachableCode.ts -var fixId34 = "fixUnreachableCode"; -var errorCodes44 = [Diagnostics.Unreachable_code_detected.code]; +var fixId33 = "fixUnreachableCode"; +var errorCodes43 = [Diagnostics.Unreachable_code_detected.code]; registerCodeFix({ - errorCodes: errorCodes44, + errorCodes: errorCodes43, getCodeActions(context) { const syntacticDiagnostics = context.program.getSyntacticDiagnostics(context.sourceFile, context.cancellationToken); if (syntacticDiagnostics.length) return; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange27(t, context.sourceFile, context.span.start, context.span.length, context.errorCode)); - return [createCodeFixAction(fixId34, changes, Diagnostics.Remove_unreachable_code, fixId34, Diagnostics.Remove_all_unreachable_code)]; + return [createCodeFixAction(fixId33, changes, Diagnostics.Remove_unreachable_code, fixId33, Diagnostics.Remove_all_unreachable_code)]; }, - fixIds: [fixId34], - getAllCodeActions: (context) => codeFixAll(context, errorCodes44, (changes, diag2) => doChange27(changes, diag2.file, diag2.start, diag2.length, diag2.code)) + fixIds: [fixId33], + getAllCodeActions: (context) => codeFixAll(context, errorCodes43, (changes, diag2) => doChange27(changes, diag2.file, diag2.start, diag2.length, diag2.code)) }); function doChange27(changes, sourceFile, start, length2, errorCode) { const token = getTokenAtPosition(sourceFile, start); @@ -161651,7 +158436,6 @@ function doChange27(changes, sourceFile, start, length2, errorCode) { } return; } - // falls through case 247 /* WhileStatement */: case 248 /* ForStatement */: changes.delete(sourceFile, container); @@ -161676,16 +158460,16 @@ function lastWhere(a, pred) { } // src/services/codefixes/fixUnusedLabel.ts -var fixId35 = "fixUnusedLabel"; -var errorCodes45 = [Diagnostics.Unused_label.code]; +var fixId34 = "fixUnusedLabel"; +var errorCodes44 = [Diagnostics.Unused_label.code]; registerCodeFix({ - errorCodes: errorCodes45, + errorCodes: errorCodes44, getCodeActions(context) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange28(t, context.sourceFile, context.span.start)); - return [createCodeFixAction(fixId35, changes, Diagnostics.Remove_unused_label, fixId35, Diagnostics.Remove_all_unused_labels)]; + return [createCodeFixAction(fixId34, changes, Diagnostics.Remove_unused_label, fixId34, Diagnostics.Remove_all_unused_labels)]; }, - fixIds: [fixId35], - getAllCodeActions: (context) => codeFixAll(context, errorCodes45, (changes, diag2) => doChange28(changes, diag2.file, diag2.start)) + fixIds: [fixId34], + getAllCodeActions: (context) => codeFixAll(context, errorCodes44, (changes, diag2) => doChange28(changes, diag2.file, diag2.start)) }); function doChange28(changes, sourceFile, start) { const token = getTokenAtPosition(sourceFile, start); @@ -161704,13 +158488,13 @@ function doChange28(changes, sourceFile, start) { // src/services/codefixes/fixJSDocTypes.ts var fixIdPlain = "fixJSDocTypes_plain"; var fixIdNullable = "fixJSDocTypes_nullable"; -var errorCodes46 = [ +var errorCodes45 = [ Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code, Diagnostics._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code, Diagnostics._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code ]; registerCodeFix({ - errorCodes: errorCodes46, + errorCodes: errorCodes45, getCodeActions(context) { const { sourceFile } = context; const checker = context.program.getTypeChecker(); @@ -161723,20 +158507,20 @@ registerCodeFix({ actions2.push(fix(type, fixIdNullable, Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)); } return actions2; - function fix(type2, fixId56, fixAllDescription) { + function fix(type2, fixId55, fixAllDescription) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange29(t, sourceFile, typeNode, type2, checker)); - return createCodeFixAction("jdocTypes", changes, [Diagnostics.Change_0_to_1, original, checker.typeToString(type2)], fixId56, fixAllDescription); + return createCodeFixAction("jdocTypes", changes, [Diagnostics.Change_0_to_1, original, checker.typeToString(type2)], fixId55, fixAllDescription); } }, fixIds: [fixIdPlain, fixIdNullable], getAllCodeActions(context) { - const { fixId: fixId56, program, sourceFile } = context; + const { fixId: fixId55, program, sourceFile } = context; const checker = program.getTypeChecker(); - return codeFixAll(context, errorCodes46, (changes, err) => { + return codeFixAll(context, errorCodes45, (changes, err) => { const info = getInfo15(err.file, err.start, checker); if (!info) return; const { typeNode, type } = info; - const fixedType = typeNode.kind === 314 /* JSDocNullableType */ && fixId56 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; + const fixedType = typeNode.kind === 314 /* JSDocNullableType */ && fixId55 === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type; doChange29(changes, sourceFile, typeNode, fixedType, checker); }); } @@ -161792,21 +158576,21 @@ function getType(checker, node) { } // src/services/codefixes/fixMissingCallParentheses.ts -var fixId36 = "fixMissingCallParentheses"; -var errorCodes47 = [ +var fixId35 = "fixMissingCallParentheses"; +var errorCodes46 = [ Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code ]; registerCodeFix({ - errorCodes: errorCodes47, - fixIds: [fixId36], + errorCodes: errorCodes46, + fixIds: [fixId35], getCodeActions(context) { const { sourceFile, span } = context; const callName = getCallName(sourceFile, span.start); if (!callName) return; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange30(t, context.sourceFile, callName)); - return [createCodeFixAction(fixId36, changes, Diagnostics.Add_missing_call_parentheses, fixId36, Diagnostics.Add_all_missing_call_parentheses)]; + return [createCodeFixAction(fixId35, changes, Diagnostics.Add_missing_call_parentheses, fixId35, Diagnostics.Add_all_missing_call_parentheses)]; }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes47, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes46, (changes, diag2) => { const callName = getCallName(diag2.file, diag2.start); if (callName) doChange30(changes, diag2.file, callName); }) @@ -161830,14 +158614,14 @@ function getCallName(sourceFile, start) { } // src/services/codefixes/fixMissingTypeAnnotationOnExports.ts -var fixId37 = "fixMissingTypeAnnotationOnExports"; +var fixId36 = "fixMissingTypeAnnotationOnExports"; var addAnnotationFix = "add-annotation"; var addInlineTypeAssertion = "add-type-assertion"; var extractExpression = "extract-expression"; -var errorCodes48 = [ +var errorCodes47 = [ Diagnostics.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code, Diagnostics.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code, - Diagnostics.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code, + Diagnostics.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code, Diagnostics.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code, Diagnostics.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code, Diagnostics.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code, @@ -161853,7 +158637,7 @@ var errorCodes48 = [ Diagnostics.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code, Diagnostics.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code, Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code, - Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code, + Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code, Diagnostics.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code, Diagnostics.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code ]; @@ -161871,11 +158655,10 @@ var canHaveTypeAnnotation = /* @__PURE__ */ new Set([ 206 /* ObjectBindingPattern */, 207 /* ArrayBindingPattern */ ]); -var declarationEmitNodeBuilderFlags2 = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */; -var declarationEmitInternalNodeBuilderFlags2 = 1 /* WriteComputedProps */; +var declarationEmitNodeBuilderFlags2 = 1024 /* MultilineObjectLiterals */ | 2048 /* WriteClassExpressionAsTypeLiteral */ | 4096 /* UseTypeOfFunction */ | 8 /* UseStructuralFallback */ | 524288 /* AllowEmptyTuple */ | 4 /* GenerateNamesForShadowedTypeParams */ | 1 /* NoTruncation */ | 1073741824 /* WriteComputedProps */; registerCodeFix({ - errorCodes: errorCodes48, - fixIds: [fixId37], + errorCodes: errorCodes47, + fixIds: [fixId36], getCodeActions(context) { const fixes = []; addCodeAction(addAnnotationFix, fixes, context, 0 /* Full */, (f) => f.addTypeAnnotation(context.span)); @@ -161889,7 +158672,7 @@ registerCodeFix({ }, getAllCodeActions: (context) => { const changes = withContext(context, 0 /* Full */, (f) => { - eachDiagnostic(context, errorCodes48, (diag2) => { + eachDiagnostic(context, errorCodes47, (diag2) => { f.addTypeAnnotation(diag2); }); }); @@ -161903,7 +158686,7 @@ function addCodeAction(fixName8, fixes, context, typePrintMode, cb) { fixName8, changes.textChanges, changes.result, - fixId37, + fixId36, Diagnostics.Add_all_missing_type_annotations )); } @@ -162465,25 +159248,7 @@ function withContext(context, typePrintMode, cb) { if (typePrintMode === 1 /* Relative */) { return relativeType(node); } - let type; - if (isValueSignatureDeclaration(node)) { - const signature = typeChecker.getSignatureFromDeclaration(node); - if (signature) { - const typePredicate = typeChecker.getTypePredicateOfSignature(signature); - if (typePredicate) { - if (!typePredicate.type) { - return emptyInferenceResult; - } - return { - typeNode: typePredicateToTypeNode(typePredicate, findAncestor(node, isDeclaration) ?? sourceFile, getFlags(typePredicate.type)), - mutatedTarget: false - }; - } - type = typeChecker.getReturnTypeOfSignature(signature); - } - } else { - type = typeChecker.getTypeAtLocation(node); - } + let type = isValueSignatureDeclaration(node) ? tryGetReturnType2(node) : typeChecker.getTypeAtLocation(node); if (!type) { return emptyInferenceResult; } @@ -162497,17 +159262,14 @@ function withContext(context, typePrintMode, cb) { } type = widenedType; } - const enclosingDeclaration = findAncestor(node, isDeclaration) ?? sourceFile; - if (isParameter(node) && typeChecker.requiresAddingImplicitUndefined(node, enclosingDeclaration)) { + if (isParameter(node) && typeChecker.requiresAddingImplicitUndefined(node)) { type = typeChecker.getUnionType([typeChecker.getUndefinedType(), type], 0 /* None */); } + const flags = (isVariableDeclaration(node) || isPropertyDeclaration(node) && hasSyntacticModifier(node, 256 /* Static */ | 8 /* Readonly */)) && type.flags & 8192 /* UniqueESSymbol */ ? 1048576 /* AllowUniqueESSymbolType */ : 0 /* None */; return { - typeNode: typeToTypeNode2(type, enclosingDeclaration, getFlags(type)), + typeNode: typeToTypeNode2(type, findAncestor(node, isDeclaration) ?? sourceFile, flags), mutatedTarget: false }; - function getFlags(type2) { - return (isVariableDeclaration(node) || isPropertyDeclaration(node) && hasSyntacticModifier(node, 256 /* Static */ | 8 /* Readonly */)) && type2.flags & 8192 /* UniqueESSymbol */ ? 1048576 /* AllowUniqueESSymbolType */ : 0 /* None */; - } } function createTypeOfFromEntityNameExpression(node) { return factory.createTypeQueryNode(getSynthesizedDeepClone(node)); @@ -162659,7 +159421,7 @@ function withContext(context, typePrintMode, cb) { } function typeToTypeNode2(type, enclosingDeclaration, flags = 0 /* None */) { let isTruncated = false; - const minimizedTypeNode = typeToMinimizedReferenceType(typeChecker, type, enclosingDeclaration, declarationEmitNodeBuilderFlags2 | flags, declarationEmitInternalNodeBuilderFlags2, { + const result2 = typeToAutoImportableTypeNode(typeChecker, importAdder, type, enclosingDeclaration, scriptTarget, declarationEmitNodeBuilderFlags2 | flags, { moduleResolverHost: program, trackSymbol() { return true; @@ -162668,24 +159430,13 @@ function withContext(context, typePrintMode, cb) { isTruncated = true; } }); - if (!minimizedTypeNode) { - return void 0; - } - const result2 = typeNodeToAutoImportableTypeNode(minimizedTypeNode, importAdder, scriptTarget); return isTruncated ? factory.createKeywordTypeNode(133 /* AnyKeyword */) : result2; } - function typePredicateToTypeNode(typePredicate, enclosingDeclaration, flags = 0 /* None */) { - let isTruncated = false; - const result2 = typePredicateToAutoImportableTypeNode(typeChecker, importAdder, typePredicate, enclosingDeclaration, scriptTarget, declarationEmitNodeBuilderFlags2 | flags, declarationEmitInternalNodeBuilderFlags2, { - moduleResolverHost: program, - trackSymbol() { - return true; - }, - reportTruncationError() { - isTruncated = true; - } - }); - return isTruncated ? factory.createKeywordTypeNode(133 /* AnyKeyword */) : result2; + function tryGetReturnType2(node) { + const signature = typeChecker.getSignatureFromDeclaration(node); + if (signature) { + return typeChecker.getReturnTypeOfSignature(signature); + } } function addTypeToVariableLike(decl) { const { typeNode } = inferType(decl); @@ -162727,26 +159478,26 @@ function withContext(context, typePrintMode, cb) { } // src/services/codefixes/fixAwaitInSyncFunction.ts -var fixId38 = "fixAwaitInSyncFunction"; -var errorCodes49 = [ +var fixId37 = "fixAwaitInSyncFunction"; +var errorCodes48 = [ Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code, Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code ]; registerCodeFix({ - errorCodes: errorCodes49, + errorCodes: errorCodes48, getCodeActions(context) { const { sourceFile, span } = context; const nodes = getNodes3(sourceFile, span.start); if (!nodes) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange31(t, sourceFile, nodes)); - return [createCodeFixAction(fixId38, changes, Diagnostics.Add_async_modifier_to_containing_function, fixId38, Diagnostics.Add_all_missing_async_modifiers)]; + return [createCodeFixAction(fixId37, changes, Diagnostics.Add_async_modifier_to_containing_function, fixId37, Diagnostics.Add_all_missing_async_modifiers)]; }, - fixIds: [fixId38], + fixIds: [fixId37], getAllCodeActions: function getAllCodeActionsToFixAwaitInSyncFunction(context) { - const seen = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes49, (changes, diag2) => { + const seen = /* @__PURE__ */ new Map(); + return codeFixAll(context, errorCodes48, (changes, diag2) => { const nodes = getNodes3(diag2.file, diag2.start); if (!nodes || !addToSeen(seen, getNodeId(nodes.insertBefore))) return; doChange31(changes, context.sourceFile, nodes); @@ -162799,21 +159550,21 @@ function doChange31(changes, sourceFile, { insertBefore, returnType }) { } // src/services/codefixes/fixPropertyOverrideAccessor.ts -var errorCodes50 = [ +var errorCodes49 = [ Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code, Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code ]; -var fixId39 = "fixPropertyOverrideAccessor"; +var fixId38 = "fixPropertyOverrideAccessor"; registerCodeFix({ - errorCodes: errorCodes50, + errorCodes: errorCodes49, getCodeActions(context) { const edits = doChange32(context.sourceFile, context.span.start, context.span.length, context.errorCode, context); if (edits) { - return [createCodeFixAction(fixId39, edits, Diagnostics.Generate_get_and_set_accessors, fixId39, Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]; + return [createCodeFixAction(fixId38, edits, Diagnostics.Generate_get_and_set_accessors, fixId38, Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]; } }, - fixIds: [fixId39], - getAllCodeActions: (context) => codeFixAll(context, errorCodes50, (changes, diag2) => { + fixIds: [fixId38], + getAllCodeActions: (context) => codeFixAll(context, errorCodes49, (changes, diag2) => { const edits = doChange32(diag2.file, diag2.start, diag2.length, diag2.code, context); if (edits) { for (const edit of edits) { @@ -162849,8 +159600,8 @@ function doChange32(file, start, length2, code, context) { } // src/services/codefixes/inferFromUsage.ts -var fixId40 = "inferFromUsage"; -var errorCodes51 = [ +var fixId39 = "inferFromUsage"; +var errorCodes50 = [ // Variable declarations Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code, // Variable uses @@ -162884,7 +159635,7 @@ var errorCodes51 = [ Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code ]; registerCodeFix({ - errorCodes: errorCodes51, + errorCodes: errorCodes50, getCodeActions(context) { const { sourceFile, program, span: { start }, errorCode, cancellationToken, host, preferences } = context; const token = getTokenAtPosition(sourceFile, start); @@ -162904,13 +159655,13 @@ registerCodeFix({ ); }); const name = declaration && getNameOfDeclaration(declaration); - return !name || changes.length === 0 ? void 0 : [createCodeFixAction(fixId40, changes, [getDiagnostic(errorCode, token), getTextOfNode(name)], fixId40, Diagnostics.Infer_all_types_from_usage)]; + return !name || changes.length === 0 ? void 0 : [createCodeFixAction(fixId39, changes, [getDiagnostic(errorCode, token), getTextOfNode(name)], fixId39, Diagnostics.Infer_all_types_from_usage)]; }, - fixIds: [fixId40], + fixIds: [fixId39], getAllCodeActions(context) { const { sourceFile, program, cancellationToken, host, preferences } = context; const markSeen = nodeSeenTracker(); - return codeFixAll(context, errorCodes51, (changes, err) => { + return codeFixAll(context, errorCodes50, (changes, err) => { doChange33(changes, sourceFile, getTokenAtPosition(err.file, err.start), err.code, program, cancellationToken, markSeen, host, preferences); }); } @@ -162920,7 +159671,6 @@ function getDiagnostic(errorCode, token) { case Diagnostics.Parameter_0_implicitly_has_an_1_type.code: case Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code: return isSetAccessorDeclaration(getContainingFunction(token)) ? Diagnostics.Infer_type_of_0_from_usage : Diagnostics.Infer_parameter_types_from_usage; - // TODO: GH#18217 case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code: case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code: return Diagnostics.Infer_parameter_types_from_usage; @@ -162959,7 +159709,6 @@ function doChange33(changes, sourceFile, token, errorCode, program, cancellation const importAdder = createImportAdder(sourceFile, program, preferences, host); errorCode = mapSuggestionDiagnostic(errorCode); switch (errorCode) { - // Variable and Property declarations case Diagnostics.Member_0_implicitly_has_an_1_type.code: case Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code: if (isVariableDeclaration(parent2) && markSeen(parent2) || isPropertyDeclaration(parent2) || isPropertySignature(parent2)) { @@ -163000,14 +159749,12 @@ function doChange33(changes, sourceFile, token, errorCode, program, cancellation } let declaration; switch (errorCode) { - // Parameter declarations case Diagnostics.Parameter_0_implicitly_has_an_1_type.code: if (isSetAccessorDeclaration(containingFunction)) { annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken); declaration = containingFunction; break; } - // falls through case Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code: if (markSeen(containingFunction)) { const param = cast(parent2, isParameter); @@ -163015,7 +159762,6 @@ function doChange33(changes, sourceFile, token, errorCode, program, cancellation declaration = param; } break; - // Get Accessor declarations case Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code: case Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code: if (isGetAccessorDeclaration(containingFunction) && isIdentifier(containingFunction.name)) { @@ -163023,14 +159769,12 @@ function doChange33(changes, sourceFile, token, errorCode, program, cancellation declaration = containingFunction; } break; - // Set Accessor declarations case Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code: if (isSetAccessorDeclaration(containingFunction)) { annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken); declaration = containingFunction; } break; - // Function 'this' case Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code: if (ts_textChanges_exports.isThisTypeAnnotatable(containingFunction) && markSeen(containingFunction)) { annotateThis(changes, sourceFile, containingFunction, program, host, cancellationToken); @@ -163412,7 +160156,6 @@ function inferTypeFromReferences(program, references, cancellationToken) { break; } } - // falls through default: return inferTypeFromContextualType(node, usage); } @@ -163440,25 +160183,16 @@ function inferTypeFromReferences(program, references, cancellationToken) { } function inferTypeFromBinaryExpression(node, parent2, usage) { switch (parent2.operatorToken.kind) { - // ExponentiationOperator case 43 /* AsteriskAsteriskToken */: - // MultiplicativeOperator - // falls through case 42 /* AsteriskToken */: case 44 /* SlashToken */: case 45 /* PercentToken */: - // ShiftOperator - // falls through case 48 /* LessThanLessThanToken */: case 49 /* GreaterThanGreaterThanToken */: case 50 /* GreaterThanGreaterThanGreaterThanToken */: - // BitwiseOperator - // falls through case 51 /* AmpersandToken */: case 52 /* BarToken */: case 53 /* CaretToken */: - // CompoundAssignmentOperator - // falls through case 66 /* MinusEqualsToken */: case 68 /* AsteriskAsteriskEqualsToken */: case 67 /* AsteriskEqualsToken */: @@ -163470,11 +160204,7 @@ function inferTypeFromReferences(program, references, cancellationToken) { case 71 /* LessThanLessThanEqualsToken */: case 73 /* GreaterThanGreaterThanGreaterThanEqualsToken */: case 72 /* GreaterThanGreaterThanEqualsToken */: - // AdditiveOperator - // falls through case 41 /* MinusToken */: - // RelationalOperator - // falls through case 30 /* LessThanToken */: case 33 /* LessThanEqualsToken */: case 32 /* GreaterThanToken */: @@ -163500,7 +160230,6 @@ function inferTypeFromReferences(program, references, cancellationToken) { usage.isNumberOrString = true; } break; - // AssignmentOperators case 64 /* EqualsToken */: case 35 /* EqualsEqualsToken */: case 37 /* EqualsEqualsEqualsToken */: @@ -163516,7 +160245,6 @@ function inferTypeFromReferences(program, references, cancellationToken) { usage.isString = true; } break; - // LogicalOperator Or NullishCoalescing case 57 /* BarBarToken */: case 61 /* QuestionQuestionToken */: if (node === parent2.left && (node.parent.parent.kind === 260 /* VariableDeclaration */ || isAssignmentExpression( @@ -163864,13 +160592,13 @@ function inferTypeFromReferences(program, references, cancellationToken) { } // src/services/codefixes/fixReturnTypeInAsyncFunction.ts -var fixId41 = "fixReturnTypeInAsyncFunction"; -var errorCodes52 = [ +var fixId40 = "fixReturnTypeInAsyncFunction"; +var errorCodes51 = [ Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code ]; registerCodeFix({ - errorCodes: errorCodes52, - fixIds: [fixId41], + errorCodes: errorCodes51, + fixIds: [fixId40], getCodeActions: function getCodeActionsToFixReturnTypeInAsyncFunction(context) { const { sourceFile, program, span } = context; const checker = program.getTypeChecker(); @@ -163881,14 +160609,14 @@ registerCodeFix({ const { returnTypeNode, returnType, promisedTypeNode, promisedType } = info; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange34(t, sourceFile, returnTypeNode, promisedTypeNode)); return [createCodeFixAction( - fixId41, + fixId40, changes, [Diagnostics.Replace_0_with_Promise_1, checker.typeToString(returnType), checker.typeToString(promisedType)], - fixId41, + fixId40, Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions )]; }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes52, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes51, (changes, diag2) => { const info = getInfo16(diag2.file, context.program.getTypeChecker(), diag2.start); if (info) { doChange34(changes, diag2.file, info.returnTypeNode, info.promisedTypeNode); @@ -163924,13 +160652,13 @@ function doChange34(changes, sourceFile, returnTypeNode, promisedTypeNode) { // src/services/codefixes/disableJsDiagnostics.ts var fixName4 = "disableJsDiagnostics"; -var fixId42 = "disableJsDiagnostics"; -var errorCodes53 = mapDefined(Object.keys(Diagnostics), (key) => { +var fixId41 = "disableJsDiagnostics"; +var errorCodes52 = mapDefined(Object.keys(Diagnostics), (key) => { const diag2 = Diagnostics[key]; return diag2.category === 1 /* Error */ ? diag2.code : void 0; }); registerCodeFix({ - errorCodes: errorCodes53, + errorCodes: errorCodes52, getCodeActions: function getCodeActionsToDisableJsDiagnostics(context) { const { sourceFile, program, span, host, formatContext } = context; if (!isInJSFile(sourceFile) || !isCheckJsEnabledForFile(sourceFile, program.getCompilerOptions())) { @@ -163951,21 +160679,21 @@ registerCodeFix({ ) ]; if (ts_textChanges_exports.isValidLocationToAddComment(sourceFile, span.start)) { - fixes.unshift(createCodeFixAction(fixName4, ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange9(t, sourceFile, span.start)), Diagnostics.Ignore_this_error_message, fixId42, Diagnostics.Add_ts_ignore_to_all_error_messages)); + fixes.unshift(createCodeFixAction(fixName4, ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange8(t, sourceFile, span.start)), Diagnostics.Ignore_this_error_message, fixId41, Diagnostics.Add_ts_ignore_to_all_error_messages)); } return fixes; }, - fixIds: [fixId42], + fixIds: [fixId41], getAllCodeActions: (context) => { const seenLines = /* @__PURE__ */ new Set(); - return codeFixAll(context, errorCodes53, (changes, diag2) => { + return codeFixAll(context, errorCodes52, (changes, diag2) => { if (ts_textChanges_exports.isValidLocationToAddComment(diag2.file, diag2.start)) { - makeChange9(changes, diag2.file, diag2.start, seenLines); + makeChange8(changes, diag2.file, diag2.start, seenLines); } }); } }); -function makeChange9(changes, sourceFile, position, seenLines) { +function makeChange8(changes, sourceFile, position, seenLines) { const { line: lineNumber } = getLineAndCharacterOfPosition(sourceFile, position); if (!seenLines || tryAddToSet(seenLines, lineNumber)) { changes.insertCommentBeforeLine(sourceFile, lineNumber, position, " @ts-ignore"); @@ -164021,11 +160749,12 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con const optional = !!(symbol.flags & 16777216 /* Optional */); const ambient = !!(enclosingDeclaration.flags & 33554432 /* Ambient */) || isAmbient; const quotePreference = getQuotePreference(sourceFile, preferences); - const flags = 1 /* NoTruncation */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0 /* None */); switch (kind) { case 171 /* PropertySignature */: case 172 /* PropertyDeclaration */: - let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, 8 /* AllowUnresolvedNames */, getNoopSymbolTrackerWithResolver(context)); + let flags = 1 /* NoTruncation */; + flags |= quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0; + let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)); if (importAdder) { const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget); if (importableReference) { @@ -164048,8 +160777,7 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con let typeNode2 = checker.typeToTypeNode( type, enclosingDeclaration, - flags, - /*internalFlags*/ + /*flags*/ void 0, getNoopSymbolTrackerWithResolver(context) ); @@ -164106,9 +160834,6 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con break; } for (const signature of signatures) { - if (signature.declaration && signature.declaration.flags & 33554432 /* Ambient */) { - continue; - } outputMethod(quotePreference, signature, modifiers, createName(declarationName)); } if (!ambient) { @@ -164183,7 +160908,7 @@ function createSignatureDeclarationFromSignature(kind, context, quotePreference, const scriptTarget = getEmitScriptTarget(program.getCompilerOptions()); const isJs = isInJSFile(enclosingDeclaration); const flags = 1 /* NoTruncation */ | 256 /* SuppressAnyReturnType */ | 524288 /* AllowEmptyTuple */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0 /* None */); - const signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, 8 /* AllowUnresolvedNames */, getNoopSymbolTrackerWithResolver(context)); + const signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context)); if (!signatureDeclaration) { return void 0; } @@ -164284,7 +161009,6 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder contextNode, scriptTarget, 1 /* NoTruncation */, - 8 /* AllowUnresolvedNames */, tracker ); const modifiers = modifierFlags ? factory.createNodeArray(factory.createModifiersFromModifierFlags(modifierFlags)) : void 0; @@ -164303,8 +161027,6 @@ function createSignatureDeclarationFromCallExpression(kind, context, importAdder contextNode, /*flags*/ void 0, - /*internalFlags*/ - void 0, tracker ); switch (kind) { @@ -164374,67 +161096,16 @@ function createTypeParametersForArguments(checker, argumentTypeParameters, typeA function createTypeParameterName(index) { return 84 /* T */ + index <= 90 /* Z */ ? String.fromCharCode(84 /* T */ + index) : `T${index}`; } -function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, scriptTarget, flags, internalFlags, tracker) { - const typeNode = checker.typeToTypeNode(type, contextNode, flags, internalFlags, tracker); - if (!typeNode) { - return void 0; - } - return typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget); -} -function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) { - const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget); - if (importableReference) { - importSymbols(importAdder, importableReference.symbols); - typeNode = importableReference.typeNode; - } - return getSynthesizedDeepClone(typeNode); -} -function endOfRequiredTypeParameters(checker, type) { - Debug.assert(type.typeArguments); - const fullTypeArguments = type.typeArguments; - const target = type.target; - for (let cutoff = 0; cutoff < fullTypeArguments.length; cutoff++) { - const typeArguments = fullTypeArguments.slice(0, cutoff); - const filledIn = checker.fillMissingTypeArguments( - typeArguments, - target.typeParameters, - cutoff, - /*isJavaScriptImplicitAny*/ - false - ); - if (filledIn.every((fill, i) => fill === fullTypeArguments[i])) { - return cutoff; - } - } - return fullTypeArguments.length; -} -function typeToMinimizedReferenceType(checker, type, contextNode, flags, internalFlags, tracker) { - let typeNode = checker.typeToTypeNode(type, contextNode, flags, internalFlags, tracker); - if (!typeNode) { - return void 0; - } - if (isTypeReferenceNode(typeNode)) { - const genericType = type; - if (genericType.typeArguments && typeNode.typeArguments) { - const cutoff = endOfRequiredTypeParameters(checker, genericType); - if (cutoff < typeNode.typeArguments.length) { - const newTypeArguments = factory.createNodeArray(typeNode.typeArguments.slice(0, cutoff)); - typeNode = factory.updateTypeReferenceNode(typeNode, typeNode.typeName, newTypeArguments); - } - } - } - return typeNode; -} -function typePredicateToAutoImportableTypeNode(checker, importAdder, typePredicate, contextNode, scriptTarget, flags, internalFlags, tracker) { - let typePredicateNode = checker.typePredicateToTypePredicateNode(typePredicate, contextNode, flags, internalFlags, tracker); - if ((typePredicateNode == null ? void 0 : typePredicateNode.type) && isImportTypeNode(typePredicateNode.type)) { - const importableReference = tryGetAutoImportableReferenceFromTypeNode(typePredicateNode.type, scriptTarget); +function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, scriptTarget, flags, tracker) { + let typeNode = checker.typeToTypeNode(type, contextNode, flags, tracker); + if (typeNode && isImportTypeNode(typeNode)) { + const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget); if (importableReference) { importSymbols(importAdder, importableReference.symbols); - typePredicateNode = factory.updateTypePredicateNode(typePredicateNode, typePredicateNode.assertsModifier, typePredicateNode.parameterName, importableReference.typeNode); + typeNode = importableReference.typeNode; } } - return getSynthesizedDeepClone(typePredicateNode); + return getSynthesizedDeepClone(typeNode); } function typeContainsTypeParameter(type) { if (type.isUnionOrIntersection()) { @@ -164442,7 +161113,7 @@ function typeContainsTypeParameter(type) { } return type.flags & 262144 /* TypeParameter */; } -function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, internalFlags, tracker) { +function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, contextNode, scriptTarget, flags, tracker) { const argumentTypeNodes = []; const argumentTypeParameters = /* @__PURE__ */ new Map(); for (let i = 0; i < instanceTypes.length; i += 1) { @@ -164454,13 +161125,13 @@ function getArgumentTypesAndTypeParameters(checker, importAdder, instanceTypes, continue; } const widenedInstanceType = checker.getBaseTypeOfLiteralType(instanceType); - const argumentTypeNode = typeToAutoImportableTypeNode(checker, importAdder, widenedInstanceType, contextNode, scriptTarget, flags, internalFlags, tracker); + const argumentTypeNode = typeToAutoImportableTypeNode(checker, importAdder, widenedInstanceType, contextNode, scriptTarget, flags, tracker); if (!argumentTypeNode) { continue; } argumentTypeNodes.push(argumentTypeNode); const argumentTypeParameter = getFirstTypeParameterName(instanceType); - const instanceTypeConstraint = instanceType.isTypeParameter() && instanceType.constraint && !isAnonymousObjectConstraintType(instanceType.constraint) ? typeToAutoImportableTypeNode(checker, importAdder, instanceType.constraint, contextNode, scriptTarget, flags, internalFlags, tracker) : void 0; + const instanceTypeConstraint = instanceType.isTypeParameter() && instanceType.constraint && !isAnonymousObjectConstraintType(instanceType.constraint) ? typeToAutoImportableTypeNode(checker, importAdder, instanceType.constraint, contextNode, scriptTarget, flags, tracker) : void 0; if (argumentTypeParameter) { argumentTypeParameters.set(argumentTypeParameter, { argumentType: instanceType, constraint: instanceTypeConstraint }); } @@ -164560,7 +161231,7 @@ function createMethodImplementingSignatures(checker, context, enclosingDeclarati function getReturnTypeFromSignatures(signatures, checker, context, enclosingDeclaration) { if (length(signatures)) { const type = checker.getUnionType(map(signatures, checker.getReturnTypeOfSignature)); - return checker.typeToTypeNode(type, enclosingDeclaration, 1 /* NoTruncation */, 8 /* AllowUnresolvedNames */, getNoopSymbolTrackerWithResolver(context)); + return checker.typeToTypeNode(type, enclosingDeclaration, 1 /* NoTruncation */, getNoopSymbolTrackerWithResolver(context)); } } function createStubbedMethod(modifiers, name, optional, typeParameters, parameters, returnType, quotePreference, body) { @@ -165016,9 +161687,9 @@ var fixName6 = "strictClassInitialization"; var fixIdAddDefiniteAssignmentAssertions = "addMissingPropertyDefiniteAssignmentAssertions"; var fixIdAddUndefinedType = "addMissingPropertyUndefinedType"; var fixIdAddInitializer = "addMissingPropertyInitializer"; -var errorCodes54 = [Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code]; +var errorCodes53 = [Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code]; registerCodeFix({ - errorCodes: errorCodes54, + errorCodes: errorCodes53, getCodeActions: function getCodeActionsForStrictClassInitializationErrors(context) { const info = getInfo17(context.sourceFile, context.span.start); if (!info) return; @@ -165030,7 +161701,7 @@ registerCodeFix({ }, fixIds: [fixIdAddDefiniteAssignmentAssertions, fixIdAddUndefinedType, fixIdAddInitializer], getAllCodeActions: (context) => { - return codeFixAll(context, errorCodes54, (changes, diag2) => { + return codeFixAll(context, errorCodes53, (changes, diag2) => { const info = getInfo17(diag2.file, diag2.start); if (!info) return; switch (context.fixId) { @@ -165153,28 +161824,28 @@ function getDefaultValueFromType(checker, type) { } // src/services/codefixes/requireInTs.ts -var fixId43 = "requireInTs"; -var errorCodes55 = [Diagnostics.require_call_may_be_converted_to_an_import.code]; +var fixId42 = "requireInTs"; +var errorCodes54 = [Diagnostics.require_call_may_be_converted_to_an_import.code]; registerCodeFix({ - errorCodes: errorCodes55, + errorCodes: errorCodes54, getCodeActions(context) { - const info = getInfo18(context.sourceFile, context.program, context.span.start, context.preferences); + const info = getInfo18(context.sourceFile, context.program, context.span.start); if (!info) { return void 0; } const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange35(t, context.sourceFile, info)); - return [createCodeFixAction(fixId43, changes, Diagnostics.Convert_require_to_import, fixId43, Diagnostics.Convert_all_require_to_import)]; + return [createCodeFixAction(fixId42, changes, Diagnostics.Convert_require_to_import, fixId42, Diagnostics.Convert_all_require_to_import)]; }, - fixIds: [fixId43], - getAllCodeActions: (context) => codeFixAll(context, errorCodes55, (changes, diag2) => { - const info = getInfo18(diag2.file, context.program, diag2.start, context.preferences); + fixIds: [fixId42], + getAllCodeActions: (context) => codeFixAll(context, errorCodes54, (changes, diag2) => { + const info = getInfo18(diag2.file, context.program, diag2.start); if (info) { doChange35(changes, context.sourceFile, info); } }) }); function doChange35(changes, sourceFile, info) { - const { allowSyntheticDefaults, defaultImportName, namedImports, statement, moduleSpecifier } = info; + const { allowSyntheticDefaults, defaultImportName, namedImports, statement, required } = info; changes.replaceNode( sourceFile, statement, @@ -165184,7 +161855,7 @@ function doChange35(changes, sourceFile, info) { /*isTypeOnly*/ false, defaultImportName, - factory.createExternalModuleReference(moduleSpecifier) + factory.createExternalModuleReference(required) ) : factory.createImportDeclaration( /*modifiers*/ void 0, @@ -165194,13 +161865,13 @@ function doChange35(changes, sourceFile, info) { defaultImportName, namedImports ), - moduleSpecifier, + required, /*attributes*/ void 0 ) ); } -function getInfo18(sourceFile, program, pos, preferences) { +function getInfo18(sourceFile, program, pos) { const { parent: parent2 } = getTokenAtPosition(sourceFile, pos); if (!isRequireCall( parent2, @@ -165210,17 +161881,15 @@ function getInfo18(sourceFile, program, pos, preferences) { Debug.failBadSyntaxKind(parent2); } const decl = cast(parent2.parent, isVariableDeclaration); - const quotePreference = getQuotePreference(sourceFile, preferences); const defaultImportName = tryCast(decl.name, isIdentifier); const namedImports = isObjectBindingPattern(decl.name) ? tryCreateNamedImportsFromObjectBindingPattern(decl.name) : void 0; if (defaultImportName || namedImports) { - const moduleSpecifier = first(parent2.arguments); return { allowSyntheticDefaults: getAllowSyntheticDefaultImports(program.getCompilerOptions()), defaultImportName, namedImports, statement: cast(decl.parent.parent, isVariableStatement), - moduleSpecifier: isNoSubstitutionTemplateLiteral(moduleSpecifier) ? factory.createStringLiteral(moduleSpecifier.text, quotePreference === 0 /* Single */) : moduleSpecifier + required: first(parent2.arguments) }; } } @@ -165243,19 +161912,19 @@ function tryCreateNamedImportsFromObjectBindingPattern(node) { } // src/services/codefixes/useDefaultImport.ts -var fixId44 = "useDefaultImport"; -var errorCodes56 = [Diagnostics.Import_may_be_converted_to_a_default_import.code]; +var fixId43 = "useDefaultImport"; +var errorCodes55 = [Diagnostics.Import_may_be_converted_to_a_default_import.code]; registerCodeFix({ - errorCodes: errorCodes56, + errorCodes: errorCodes55, getCodeActions(context) { const { sourceFile, span: { start } } = context; const info = getInfo19(sourceFile, start); if (!info) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange36(t, sourceFile, info, context.preferences)); - return [createCodeFixAction(fixId44, changes, Diagnostics.Convert_to_default_import, fixId44, Diagnostics.Convert_all_to_default_imports)]; + return [createCodeFixAction(fixId43, changes, Diagnostics.Convert_to_default_import, fixId43, Diagnostics.Convert_all_to_default_imports)]; }, - fixIds: [fixId44], - getAllCodeActions: (context) => codeFixAll(context, errorCodes56, (changes, diag2) => { + fixIds: [fixId43], + getAllCodeActions: (context) => codeFixAll(context, errorCodes55, (changes, diag2) => { const info = getInfo19(diag2.file, diag2.start); if (info) doChange36(changes, diag2.file, info, context.preferences); }) @@ -165282,24 +161951,24 @@ function doChange36(changes, sourceFile, info, preferences) { } // src/services/codefixes/useBigintLiteral.ts -var fixId45 = "useBigintLiteral"; -var errorCodes57 = [ +var fixId44 = "useBigintLiteral"; +var errorCodes56 = [ Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code ]; registerCodeFix({ - errorCodes: errorCodes57, + errorCodes: errorCodes56, getCodeActions: function getCodeActionsToUseBigintLiteral(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange10(t, context.sourceFile, context.span)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange9(t, context.sourceFile, context.span)); if (changes.length > 0) { - return [createCodeFixAction(fixId45, changes, Diagnostics.Convert_to_a_bigint_numeric_literal, fixId45, Diagnostics.Convert_all_to_bigint_numeric_literals)]; + return [createCodeFixAction(fixId44, changes, Diagnostics.Convert_to_a_bigint_numeric_literal, fixId44, Diagnostics.Convert_all_to_bigint_numeric_literals)]; } }, - fixIds: [fixId45], + fixIds: [fixId44], getAllCodeActions: (context) => { - return codeFixAll(context, errorCodes57, (changes, diag2) => makeChange10(changes, diag2.file, diag2)); + return codeFixAll(context, errorCodes56, (changes, diag2) => makeChange9(changes, diag2.file, diag2)); } }); -function makeChange10(changeTracker, sourceFile, span) { +function makeChange9(changeTracker, sourceFile, span) { const numericLiteral = tryCast(getTokenAtPosition(sourceFile, span.start), isNumericLiteral); if (!numericLiteral) { return; @@ -165310,18 +161979,18 @@ function makeChange10(changeTracker, sourceFile, span) { // src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts var fixIdAddMissingTypeof = "fixAddModuleReferTypeMissingTypeof"; -var fixId46 = fixIdAddMissingTypeof; -var errorCodes58 = [Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code]; +var fixId45 = fixIdAddMissingTypeof; +var errorCodes57 = [Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code]; registerCodeFix({ - errorCodes: errorCodes58, + errorCodes: errorCodes57, getCodeActions: function getCodeActionsToAddMissingTypeof(context) { const { sourceFile, span } = context; const importType = getImportTypeNode(sourceFile, span.start); const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange37(t, sourceFile, importType)); - return [createCodeFixAction(fixId46, changes, Diagnostics.Add_missing_typeof, fixId46, Diagnostics.Add_missing_typeof)]; + return [createCodeFixAction(fixId45, changes, Diagnostics.Add_missing_typeof, fixId45, Diagnostics.Add_missing_typeof)]; }, - fixIds: [fixId46], - getAllCodeActions: (context) => codeFixAll(context, errorCodes58, (changes, diag2) => doChange37(changes, context.sourceFile, getImportTypeNode(diag2.file, diag2.start))) + fixIds: [fixId45], + getAllCodeActions: (context) => codeFixAll(context, errorCodes57, (changes, diag2) => doChange37(changes, context.sourceFile, getImportTypeNode(diag2.file, diag2.start))) }); function getImportTypeNode(sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); @@ -165344,9 +162013,9 @@ function doChange37(changes, sourceFile, importType) { // src/services/codefixes/wrapJsxInFragment.ts var fixID2 = "wrapJsxInFragment"; -var errorCodes59 = [Diagnostics.JSX_expressions_must_have_one_parent_element.code]; +var errorCodes58 = [Diagnostics.JSX_expressions_must_have_one_parent_element.code]; registerCodeFix({ - errorCodes: errorCodes59, + errorCodes: errorCodes58, getCodeActions: function getCodeActionsToWrapJsxInFragment(context) { const { sourceFile, span } = context; const node = findNodeToFix(sourceFile, span.start); @@ -165355,7 +162024,7 @@ registerCodeFix({ return [createCodeFixAction(fixID2, changes, Diagnostics.Wrap_in_JSX_fragment, fixID2, Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]; }, fixIds: [fixID2], - getAllCodeActions: (context) => codeFixAll(context, errorCodes59, (changes, diag2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes58, (changes, diag2) => { const node = findNodeToFix(context.sourceFile, diag2.start); if (!node) return void 0; doChange38(changes, context.sourceFile, node); @@ -165394,18 +162063,18 @@ function flattenInvalidBinaryExpr(node) { } // src/services/codefixes/wrapDecoratorInParentheses.ts -var fixId47 = "wrapDecoratorInParentheses"; -var errorCodes60 = [Diagnostics.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code]; +var fixId46 = "wrapDecoratorInParentheses"; +var errorCodes59 = [Diagnostics.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code]; registerCodeFix({ - errorCodes: errorCodes60, + errorCodes: errorCodes59, getCodeActions: function getCodeActionsToWrapDecoratorExpressionInParentheses(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange11(t, context.sourceFile, context.span.start)); - return [createCodeFixAction(fixId47, changes, Diagnostics.Wrap_in_parentheses, fixId47, Diagnostics.Wrap_all_invalid_decorator_expressions_in_parentheses)]; + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange10(t, context.sourceFile, context.span.start)); + return [createCodeFixAction(fixId46, changes, Diagnostics.Wrap_in_parentheses, fixId46, Diagnostics.Wrap_all_invalid_decorator_expressions_in_parentheses)]; }, - fixIds: [fixId47], - getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, diag2) => makeChange11(changes, diag2.file, diag2.start)) + fixIds: [fixId46], + getAllCodeActions: (context) => codeFixAll(context, errorCodes59, (changes, diag2) => makeChange10(changes, diag2.file, diag2.start)) }); -function makeChange11(changeTracker, sourceFile, pos) { +function makeChange10(changeTracker, sourceFile, pos) { const token = getTokenAtPosition(sourceFile, pos); const decorator = findAncestor(token, isDecorator); Debug.assert(!!decorator, "Expected position to be owned by a decorator."); @@ -165414,20 +162083,20 @@ function makeChange11(changeTracker, sourceFile, pos) { } // src/services/codefixes/convertToMappedObjectType.ts -var fixId48 = "fixConvertToMappedObjectType"; -var errorCodes61 = [Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code]; +var fixId47 = "fixConvertToMappedObjectType"; +var errorCodes60 = [Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code]; registerCodeFix({ - errorCodes: errorCodes61, + errorCodes: errorCodes60, getCodeActions: function getCodeActionsToConvertToMappedTypeObject(context) { const { sourceFile, span } = context; const info = getInfo20(sourceFile, span.start); if (!info) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange39(t, sourceFile, info)); const name = idText(info.container.name); - return [createCodeFixAction(fixId48, changes, [Diagnostics.Convert_0_to_mapped_object_type, name], fixId48, [Diagnostics.Convert_0_to_mapped_object_type, name])]; + return [createCodeFixAction(fixId47, changes, [Diagnostics.Convert_0_to_mapped_object_type, name], fixId47, [Diagnostics.Convert_0_to_mapped_object_type, name])]; }, - fixIds: [fixId48], - getAllCodeActions: (context) => codeFixAll(context, errorCodes61, (changes, diag2) => { + fixIds: [fixId47], + getAllCodeActions: (context) => codeFixAll(context, errorCodes60, (changes, diag2) => { const info = getInfo20(diag2.file, diag2.start); if (info) doChange39(changes, diag2.file, info); }) @@ -165472,12 +162141,12 @@ function doChange39(changes, sourceFile, { indexSignature, container }) { } // src/services/codefixes/removeAccidentalCallParentheses.ts -var fixId49 = "removeAccidentalCallParentheses"; -var errorCodes62 = [ +var fixId48 = "removeAccidentalCallParentheses"; +var errorCodes61 = [ Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code ]; registerCodeFix({ - errorCodes: errorCodes62, + errorCodes: errorCodes61, getCodeActions(context) { const callExpression = findAncestor(getTokenAtPosition(context.sourceFile, context.span.start), isCallExpression); if (!callExpression) { @@ -165486,30 +162155,30 @@ registerCodeFix({ const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => { t.deleteRange(context.sourceFile, { pos: callExpression.expression.end, end: callExpression.end }); }); - return [createCodeFixActionWithoutFixAll(fixId49, changes, Diagnostics.Remove_parentheses)]; + return [createCodeFixActionWithoutFixAll(fixId48, changes, Diagnostics.Remove_parentheses)]; }, - fixIds: [fixId49] + fixIds: [fixId48] }); // src/services/codefixes/removeUnnecessaryAwait.ts -var fixId50 = "removeUnnecessaryAwait"; -var errorCodes63 = [ +var fixId49 = "removeUnnecessaryAwait"; +var errorCodes62 = [ Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code ]; registerCodeFix({ - errorCodes: errorCodes63, + errorCodes: errorCodes62, getCodeActions: function getCodeActionsToRemoveUnnecessaryAwait(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange12(t, context.sourceFile, context.span)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange11(t, context.sourceFile, context.span)); if (changes.length > 0) { - return [createCodeFixAction(fixId50, changes, Diagnostics.Remove_unnecessary_await, fixId50, Diagnostics.Remove_all_unnecessary_uses_of_await)]; + return [createCodeFixAction(fixId49, changes, Diagnostics.Remove_unnecessary_await, fixId49, Diagnostics.Remove_all_unnecessary_uses_of_await)]; } }, - fixIds: [fixId50], + fixIds: [fixId49], getAllCodeActions: (context) => { - return codeFixAll(context, errorCodes63, (changes, diag2) => makeChange12(changes, diag2.file, diag2)); + return codeFixAll(context, errorCodes62, (changes, diag2) => makeChange11(changes, diag2.file, diag2)); } }); -function makeChange12(changeTracker, sourceFile, span) { +function makeChange11(changeTracker, sourceFile, span) { const awaitKeyword = tryCast(getTokenAtPosition(sourceFile, span.start), (node) => node.kind === 135 /* AwaitKeyword */); const awaitExpression = awaitKeyword && tryCast(awaitKeyword.parent, isAwaitExpression); if (!awaitExpression) { @@ -165534,20 +162203,20 @@ function makeChange12(changeTracker, sourceFile, span) { } // src/services/codefixes/splitTypeOnlyImport.ts -var errorCodes64 = [Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code]; -var fixId51 = "splitTypeOnlyImport"; +var errorCodes63 = [Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code]; +var fixId50 = "splitTypeOnlyImport"; registerCodeFix({ - errorCodes: errorCodes64, - fixIds: [fixId51], + errorCodes: errorCodes63, + fixIds: [fixId50], getCodeActions: function getCodeActionsToSplitTypeOnlyImport(context) { const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => { return splitTypeOnlyImport(t, getImportDeclaration2(context.sourceFile, context.span), context); }); if (changes.length) { - return [createCodeFixAction(fixId51, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId51, Diagnostics.Split_all_invalid_type_only_imports)]; + return [createCodeFixAction(fixId50, changes, Diagnostics.Split_into_two_separate_import_declarations, fixId50, Diagnostics.Split_all_invalid_type_only_imports)]; } }, - getAllCodeActions: (context) => codeFixAll(context, errorCodes64, (changes, error2) => { + getAllCodeActions: (context) => codeFixAll(context, errorCodes63, (changes, error2) => { splitTypeOnlyImport(changes, getImportDeclaration2(context.sourceFile, error2), context); }) }); @@ -165596,22 +162265,22 @@ function splitTypeOnlyImport(changes, importDeclaration, context) { } // src/services/codefixes/convertConstToLet.ts -var fixId52 = "fixConvertConstToLet"; -var errorCodes65 = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code]; +var fixId51 = "fixConvertConstToLet"; +var errorCodes64 = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code]; registerCodeFix({ - errorCodes: errorCodes65, + errorCodes: errorCodes64, getCodeActions: function getCodeActionsToConvertConstToLet(context) { const { sourceFile, span, program } = context; const info = getInfo21(sourceFile, span.start, program); if (info === void 0) return; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange40(t, sourceFile, info.token)); - return [createCodeFixActionMaybeFixAll(fixId52, changes, Diagnostics.Convert_const_to_let, fixId52, Diagnostics.Convert_all_const_to_let)]; + return [createCodeFixActionMaybeFixAll(fixId51, changes, Diagnostics.Convert_const_to_let, fixId51, Diagnostics.Convert_all_const_to_let)]; }, getAllCodeActions: (context) => { const { program } = context; - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => { - eachDiagnostic(context, errorCodes65, (diag2) => { + eachDiagnostic(context, errorCodes64, (diag2) => { const info = getInfo21(diag2.file, diag2.start, program); if (info) { if (addToSeen(seen, getSymbolId(info.symbol))) { @@ -165622,7 +162291,7 @@ registerCodeFix({ }); })); }, - fixIds: [fixId52] + fixIds: [fixId51] }); function getInfo21(sourceFile, pos, program) { var _a; @@ -165640,26 +162309,26 @@ function doChange40(changes, sourceFile, token) { } // src/services/codefixes/fixExpectedComma.ts -var fixId53 = "fixExpectedComma"; +var fixId52 = "fixExpectedComma"; var expectedErrorCode = Diagnostics._0_expected.code; -var errorCodes66 = [expectedErrorCode]; +var errorCodes65 = [expectedErrorCode]; registerCodeFix({ - errorCodes: errorCodes66, + errorCodes: errorCodes65, getCodeActions(context) { const { sourceFile } = context; const info = getInfo22(sourceFile, context.span.start, context.errorCode); if (!info) return void 0; const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange41(t, sourceFile, info)); return [createCodeFixAction( - fixId53, + fixId52, changes, [Diagnostics.Change_0_to_1, ";", ","], - fixId53, + fixId52, [Diagnostics.Change_0_to_1, ";", ","] )]; }, - fixIds: [fixId53], - getAllCodeActions: (context) => codeFixAll(context, errorCodes66, (changes, diag2) => { + fixIds: [fixId52], + getAllCodeActions: (context) => codeFixAll(context, errorCodes65, (changes, diag2) => { const info = getInfo22(diag2.file, diag2.start, diag2.code); if (info) doChange41(changes, context.sourceFile, info); }) @@ -165675,25 +162344,25 @@ function doChange41(changes, sourceFile, { node }) { // src/services/codefixes/fixAddVoidToPromise.ts var fixName7 = "addVoidToPromise"; -var fixId54 = "addVoidToPromise"; -var errorCodes67 = [ +var fixId53 = "addVoidToPromise"; +var errorCodes66 = [ Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code, Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code ]; registerCodeFix({ - errorCodes: errorCodes67, - fixIds: [fixId54], + errorCodes: errorCodes66, + fixIds: [fixId53], getCodeActions(context) { - const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange13(t, context.sourceFile, context.span, context.program)); + const changes = ts_textChanges_exports.ChangeTracker.with(context, (t) => makeChange12(t, context.sourceFile, context.span, context.program)); if (changes.length > 0) { - return [createCodeFixAction(fixName7, changes, Diagnostics.Add_void_to_Promise_resolved_without_a_value, fixId54, Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]; + return [createCodeFixAction(fixName7, changes, Diagnostics.Add_void_to_Promise_resolved_without_a_value, fixId53, Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]; } }, getAllCodeActions(context) { - return codeFixAll(context, errorCodes67, (changes, diag2) => makeChange13(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set())); + return codeFixAll(context, errorCodes66, (changes, diag2) => makeChange12(changes, diag2.file, diag2, context.program, /* @__PURE__ */ new Set())); } }); -function makeChange13(changes, sourceFile, span, program, seen) { +function makeChange12(changes, sourceFile, span, program, seen) { const node = getTokenAtPosition(sourceFile, span.start); if (!isIdentifier(node) || !isCallExpression(node.parent) || node.parent.expression !== node || node.parent.arguments.length !== 0) return; const checker = program.getTypeChecker(); @@ -165754,7 +162423,6 @@ __export(ts_Completions_exports, { getCompletionEntryDetails: () => getCompletionEntryDetails, getCompletionEntrySymbol: () => getCompletionEntrySymbol, getCompletionsAtPosition: () => getCompletionsAtPosition, - getDefaultCommitCharacters: () => getDefaultCommitCharacters, getPropertiesForObjectExpression: () => getPropertiesForObjectExpression, moduleSpecifierResolutionCacheAttemptLimit: () => moduleSpecifierResolutionCacheAttemptLimit, moduleSpecifierResolutionLimit: () => moduleSpecifierResolutionLimit @@ -165785,8 +162453,6 @@ var SortText = { return sortText + "1"; } }; -var allCommitCharacters = [".", ",", ";"]; -var noCommaCommitCharacters = [".", ";"]; var CompletionSource = /* @__PURE__ */ ((CompletionSource2) => { CompletionSource2["ThisProperty"] = "ThisProperty/"; CompletionSource2["ClassMemberSnippet"] = "ClassMemberSnippet/"; @@ -165848,9 +162514,9 @@ function originIsComputedPropertyName(origin) { return !!(origin && origin.kind & 512 /* ComputedPropertyName */); } function resolvingModuleSpecifiers(logPrefix, host, resolver, program, position, preferences, isForImportStatementCompletion, isValidTypeOnlyUseSite, cb) { - var _a, _b, _c, _d; + var _a, _b, _c; const start = timestamp(); - const needsFullResolution = isForImportStatementCompletion || getResolvePackageJsonExports(program.getCompilerOptions()) || ((_a = preferences.autoImportSpecifierExcludeRegexes) == null ? void 0 : _a.length); + const needsFullResolution = isForImportStatementCompletion || moduleResolutionSupportsPackageJsonExportsAndImports(getEmitModuleResolutionKind(program.getCompilerOptions())); let skippedAny = false; let ambientCount = 0; let resolvedCount = 0; @@ -165863,9 +162529,9 @@ function resolvingModuleSpecifiers(logPrefix, host, resolver, program, position, resolvedBeyondLimit: () => resolvedCount > moduleSpecifierResolutionLimit }); const hitRateMessage = cacheAttemptCount ? ` (${(resolvedFromCacheCount / cacheAttemptCount * 100).toFixed(1)}% hit rate)` : ""; - (_b = host.log) == null ? void 0 : _b.call(host, `${logPrefix}: resolved ${resolvedCount} module specifiers, plus ${ambientCount} ambient and ${resolvedFromCacheCount} from cache${hitRateMessage}`); - (_c = host.log) == null ? void 0 : _c.call(host, `${logPrefix}: response is ${skippedAny ? "incomplete" : "complete"}`); - (_d = host.log) == null ? void 0 : _d.call(host, `${logPrefix}: ${timestamp() - start}`); + (_a = host.log) == null ? void 0 : _a.call(host, `${logPrefix}: resolved ${resolvedCount} module specifiers, plus ${ambientCount} ambient and ${resolvedFromCacheCount} from cache${hitRateMessage}`); + (_b = host.log) == null ? void 0 : _b.call(host, `${logPrefix}: response is ${skippedAny ? "incomplete" : "complete"}`); + (_c = host.log) == null ? void 0 : _c.call(host, `${logPrefix}: ${timestamp() - start}`); return result; function tryResolve(exportInfo, isFromAmbientModule) { if (isFromAmbientModule) { @@ -165889,12 +162555,6 @@ function resolvingModuleSpecifiers(logPrefix, host, resolver, program, position, return result2 || (needsFullResolution ? "failed" : "skipped"); } } -function getDefaultCommitCharacters(isNewIdentifierLocation) { - if (isNewIdentifierLocation) { - return []; - } - return allCommitCharacters; -} function getCompletionsAtPosition(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) { var _a; const { previousToken } = getRelevantTokens(position, sourceFile); @@ -165903,17 +162563,7 @@ function getCompletionsAtPosition(host, program, log, sourceFile, position, pref } if (triggerCharacter === " ") { if (preferences.includeCompletionsForImportStatements && preferences.includeCompletionsWithInsertText) { - return { - isGlobalCompletion: true, - isMemberCompletion: false, - isNewIdentifierLocation: true, - isIncomplete: true, - entries: [], - defaultCommitCharacters: getDefaultCommitCharacters( - /*isNewIdentifierLocation*/ - true - ) - }; + return { isGlobalCompletion: true, isMemberCompletion: false, isNewIdentifierLocation: true, isIncomplete: true, entries: [] }; } return void 0; } @@ -166067,16 +162717,7 @@ function continuePreviousIncompleteResponse(cache, file, location, program, host return previousResponse; } function jsdocCompletionInfo(entries) { - return { - isGlobalCompletion: false, - isMemberCompletion: false, - isNewIdentifierLocation: false, - entries, - defaultCommitCharacters: getDefaultCommitCharacters( - /*isNewIdentifierLocation*/ - false - ) - }; + return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: false, entries }; } function getJSDocParameterCompletions(sourceFile, position, checker, options, preferences, tagNameOnly) { const currentToken = getTokenAtPosition(sourceFile, position); @@ -166304,12 +162945,10 @@ function getJSDocParamAnnotation(paramName, initializer, dotDotDotToken, isJs, i const printer = isSnippet ? createSnippetPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target }) : createPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target }); setEmitFlags(typeNode, 1 /* SingleLine */); @@ -166349,8 +162988,7 @@ function specificKeywordCompletionInfo(entries, isNewIdentifierLocation) { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation, - entries: entries.slice(), - defaultCommitCharacters: getDefaultCommitCharacters(isNewIdentifierLocation) + entries: entries.slice() }; } function keywordCompletionData(keywordFilters, filterOutTsOnlyKeywords, isNewIdentifierLocation) { @@ -166391,8 +163029,7 @@ function completionInfoFromData(sourceFile, host, program, compilerOptions, log, importStatementCompletion, insideJsDocTagTypeExpression, symbolToSortTextMap, - hasUnresolvedAutoImports, - defaultCommitCharacters + hasUnresolvedAutoImports } = completionData; let literals = completionData.literals; const checker = program.getTypeChecker(); @@ -166509,8 +163146,7 @@ function completionInfoFromData(sourceFile, host, program, compilerOptions, log, isMemberCompletion: isMemberCompletionKind(completionKind), isNewIdentifierLocation, optionalReplacementSpan: getOptionalReplacementSpan(location), - entries, - defaultCommitCharacters: defaultCommitCharacters ?? getDefaultCommitCharacters(isNewIdentifierLocation) + entries }; } function isCheckedFile(sourceFile, compilerOptions) { @@ -166568,7 +163204,6 @@ function getExhaustiveCaseSnippets(caseBlock, sourceFile, preferences, options, const printer = createSnippetPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target, newLine: getNewLineKind(newLineChar) }); @@ -166676,17 +163311,7 @@ function getJsxClosingTagCompletion(location, sourceFile) { kindModifiers: void 0, sortText: SortText.LocationPriority }; - return { - isGlobalCompletion: false, - isMemberCompletion: true, - isNewIdentifierLocation: false, - optionalReplacementSpan: replacementSpan, - entries: [entry], - defaultCommitCharacters: getDefaultCommitCharacters( - /*isNewIdentifierLocation*/ - false - ) - }; + return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: false, optionalReplacementSpan: replacementSpan, entries: [entry] }; } return; } @@ -166703,8 +163328,7 @@ function getJSCompletionEntries(sourceFile, position, uniqueNames, target, entri kind: "warning" /* warning */, kindModifiers: "", sortText: SortText.JavascriptIdentifiers, - isFromUncheckedFile: true, - commitCharacters: [] + isFromUncheckedFile: true }, compareCompletionEntries); } }); @@ -166713,13 +163337,7 @@ function completionNameForLiteral(sourceFile, preferences, literal) { return typeof literal === "object" ? pseudoBigIntToString(literal) + "n" : isString(literal) ? quote(sourceFile, preferences, literal) : JSON.stringify(literal); } function createCompletionEntryForLiteral(sourceFile, preferences, literal) { - return { - name: completionNameForLiteral(sourceFile, preferences, literal), - kind: "string" /* string */, - kindModifiers: "" /* none */, - sortText: SortText.LocationPriority, - commitCharacters: [] - }; + return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: "string" /* string */, kindModifiers: "" /* none */, sortText: SortText.LocationPriority }; } function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) { var _a, _b; @@ -166772,7 +163390,7 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, if (originIsResolvedExport(origin)) { sourceDisplay = [textPart(origin.moduleSpecifier)]; if (importStatementCompletion) { - ({ insertText, replacementSpan } = getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, program, preferences)); + ({ insertText, replacementSpan } = getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences)); isSnippet = preferences.includeCompletionsWithSnippetText ? true : void 0; } } @@ -166842,29 +163460,15 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, hasAction = !importStatementCompletion; } const parentNamedImportOrExport = findAncestor(location, isNamedImportsOrExports); - if (parentNamedImportOrExport) { - const languageVersion = getEmitScriptTarget(host.getCompilationSettings()); - if (!isIdentifierText(name, languageVersion)) { - insertText = quotePropertyName(sourceFile, preferences, name); - if (parentNamedImportOrExport.kind === 275 /* NamedImports */) { - scanner.setText(sourceFile.text); - scanner.resetTokenState(position); - if (!(scanner.scan() === 130 /* AsKeyword */ && scanner.scan() === 80 /* Identifier */)) { - insertText += " as " + generateIdentifierForArbitraryString(name, languageVersion); - } - } - } else if (parentNamedImportOrExport.kind === 275 /* NamedImports */) { - const possibleToken = stringToToken(name); - if (possibleToken && (possibleToken === 135 /* AwaitKeyword */ || isNonContextualKeyword(possibleToken))) { - insertText = `${name} as ${name}_`; - } + if ((parentNamedImportOrExport == null ? void 0 : parentNamedImportOrExport.kind) === 275 /* NamedImports */) { + const possibleToken = stringToToken(name); + if (parentNamedImportOrExport && possibleToken && (possibleToken === 135 /* AwaitKeyword */ || isNonContextualKeyword(possibleToken))) { + insertText = `${name} as ${name}_`; } } - const kind = ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location); - const commitCharacters = kind === "warning" /* warning */ || kind === "string" /* string */ ? [] : void 0; return { name, - kind, + kind: ts_SymbolDisplay_exports.getSymbolKind(typeChecker, symbol, location), kindModifiers: ts_SymbolDisplay_exports.getSymbolModifiers(typeChecker, symbol), sortText, source, @@ -166879,27 +163483,9 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken, isPackageJsonImport: originIsPackageJsonImport(origin) || void 0, isImportStatementCompletion: !!importStatementCompletion || void 0, data, - commitCharacters, ...includeSymbol ? { symbol } : void 0 }; } -function generateIdentifierForArbitraryString(text, languageVersion) { - let needsUnderscore = false; - let identifier = ""; - let ch; - for (let i = 0; i < text.length; i += ch !== void 0 && ch >= 65536 ? 2 : 1) { - ch = text.codePointAt(i); - if (ch !== void 0 && (i === 0 ? isIdentifierStart(ch, languageVersion) : isIdentifierPart(ch, languageVersion))) { - if (needsUnderscore) identifier += "_"; - identifier += String.fromCodePoint(ch); - needsUnderscore = false; - } else { - needsUnderscore = true; - } - } - if (needsUnderscore) identifier += "_"; - return identifier || "_"; -} function isClassLikeMemberCompletion(symbol, location, sourceFile) { if (isInJSFile(location)) { return false; @@ -166920,7 +163506,6 @@ function getEntryForMemberCompletion(host, program, options, preferences, name, const printer = createSnippetPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: false, newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext == null ? void 0 : formatContext.options)) @@ -167071,7 +163656,6 @@ function getEntryForObjectLiteralMethodCompletion(symbol, name, enclosingDeclara const printer = createSnippetPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: false, newLine: getNewLineKind(getNewLineOrDefaultFromHost(host, formatContext == null ? void 0 : formatContext.options)) @@ -167092,7 +163676,6 @@ function getEntryForObjectLiteralMethodCompletion(symbol, name, enclosingDeclara const signaturePrinter = createPrinter({ removeComments: true, module: options.module, - moduleResolution: options.moduleResolution, target: options.target, omitTrailingSemicolon: true }); @@ -167142,14 +163725,7 @@ function createObjectLiteralMethod(symbol, enclosingDeclaration, sourceFile, pro if (signatures.length !== 1) { return void 0; } - const typeNode = checker.typeToTypeNode( - effectiveType, - enclosingDeclaration, - builderFlags, - /*internalFlags*/ - void 0, - ts_codefix_exports.getNoopSymbolTrackerWithResolver({ program, host }) - ); + const typeNode = checker.typeToTypeNode(effectiveType, enclosingDeclaration, builderFlags, ts_codefix_exports.getNoopSymbolTrackerWithResolver({ program, host })); if (!typeNode || !isFunctionTypeNode(typeNode)) { return void 0; } @@ -167269,7 +163845,7 @@ function createSnippetPrinter(printerOptions) { { ...formatContext, options: formatOptions } ); }); - const allChanges = escapes ? toSorted(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes; + const allChanges = escapes ? stableSort(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes; return ts_textChanges_exports.applyChanges(syntheticFile.text, allChanges); } function printNode(hint, node, sourceFile) { @@ -167305,7 +163881,7 @@ function createSnippetPrinter(printerOptions) { 0, { ...formatContext, options: formatOptions } ); - const allChanges = escapes ? toSorted(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes; + const allChanges = escapes ? stableSort(concatenate(changes, escapes), (a, b) => compareTextSpans(a.span, b.span)) : changes; return ts_textChanges_exports.applyChanges(syntheticFile.text, allChanges); } } @@ -167361,7 +163937,7 @@ function completionEntryDataToSymbolOriginInfo(data, completionName, moduleSymbo }; return unresolvedOrigin; } -function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, program, preferences) { +function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) { const replacementSpan = importStatementCompletion.replacementSpan; const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier)); const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */; @@ -167369,7 +163945,7 @@ function getInsertTextAndReplacementSpanForImportCompletion(name, importStatemen const importKind = ts_codefix_exports.getImportKind( sourceFile, exportKind, - program, + options, /*forceImportKeyword*/ true ); @@ -167413,7 +163989,7 @@ function getSourceFromOrigin(origin) { } function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) { const start = timestamp(); - const closestSymbolDeclaration = getClosestSymbolDeclaration(contextToken, location); + const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location); const useSemicolons = probablyUsesSemicolons(sourceFile); const typeChecker = program.getTypeChecker(); const uniques = /* @__PURE__ */ new Map(); @@ -167483,26 +164059,15 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con if (isExportAssignment(location.parent)) { return true; } - if (tryCast(closestSymbolDeclaration, isVariableDeclaration) && symbol.valueDeclaration === closestSymbolDeclaration) { + if (tryCast(variableOrParameterDeclaration, isVariableDeclaration) && symbol.valueDeclaration === variableOrParameterDeclaration) { return false; } const symbolDeclaration = symbol.valueDeclaration ?? ((_a = symbol.declarations) == null ? void 0 : _a[0]); - if (closestSymbolDeclaration && symbolDeclaration) { - if (isParameter(closestSymbolDeclaration) && isParameter(symbolDeclaration)) { - const parameters = closestSymbolDeclaration.parent.parameters; - if (symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < parameters.end) { - return false; - } - } else if (isTypeParameterDeclaration(closestSymbolDeclaration) && isTypeParameterDeclaration(symbolDeclaration)) { - if (closestSymbolDeclaration === symbolDeclaration && (contextToken == null ? void 0 : contextToken.kind) === 96 /* ExtendsKeyword */) { - return false; - } - if (isInTypeParameterDefault(contextToken) && !isInferTypeNode(closestSymbolDeclaration.parent)) { - const typeParameters = closestSymbolDeclaration.parent.typeParameters; - if (typeParameters && symbolDeclaration.pos >= closestSymbolDeclaration.pos && symbolDeclaration.pos < typeParameters.end) { - return false; - } - } + if (variableOrParameterDeclaration && symbolDeclaration && (isTypeParameterDeclaration(variableOrParameterDeclaration) && isTypeParameterDeclaration(symbolDeclaration) || isParameter(variableOrParameterDeclaration) && isParameter(symbolDeclaration))) { + const symbolDeclarationPos = symbolDeclaration.pos; + const parameters = isParameter(variableOrParameterDeclaration) ? variableOrParameterDeclaration.parent.parameters : isInferTypeNode(variableOrParameterDeclaration.parent) ? void 0 : variableOrParameterDeclaration.parent.typeParameters; + if (symbolDeclarationPos >= variableOrParameterDeclaration.pos && parameters && symbolDeclarationPos < parameters.end) { + return false; } } const symbolOrigin = skipAlias(symbol, typeChecker); @@ -167528,16 +164093,7 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con function getLabelCompletionAtPosition(node) { const entries = getLabelStatementCompletions(node); if (entries.length) { - return { - isGlobalCompletion: false, - isMemberCompletion: false, - isNewIdentifierLocation: false, - entries, - defaultCommitCharacters: getDefaultCommitCharacters( - /*isNewIdentifierLocation*/ - false - ) - }; + return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: false, entries }; } } function getLabelStatementCompletions(node) { @@ -167819,7 +164375,6 @@ function getContextualType(previousToken, position, sourceFile, checker) { switch (parent2.kind) { case 260 /* VariableDeclaration */: return checker.getContextualType(parent2.initializer); - // TODO: GH#18217 case 226 /* BinaryExpression */: return checker.getTypeAtLocation(parent2.left); case 291 /* JsxAttribute */: @@ -167925,7 +164480,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, let keywordFilters = 0 /* None */; let isNewIdentifierLocation = false; let flags = 0 /* None */; - let defaultCommitCharacters; if (contextToken) { const importStatementCompletionInfo = getImportStatementCompletionInfo(contextToken, sourceFile); if (importStatementCompletionInfo.keywordCompletion) { @@ -167945,7 +164499,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } if (!importStatementCompletionInfo.replacementSpan && isCompletionListBlocker(contextToken)) { log("Returning an empty list because completion was requested in an invalid position."); - return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, computeCommitCharactersAndIsNewIdentifier().isNewIdentifierLocation) : void 0; + return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierDefinitionLocation()) : void 0; } let parent2 = contextToken.parent; if (contextToken.kind === 25 /* DotToken */ || contextToken.kind === 29 /* QuestionDotToken */) { @@ -168006,7 +164560,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, if (!binaryExpressionMayBeOpenTag(parent2)) { break; } - // falls through case 285 /* JsxSelfClosingElement */: case 284 /* JsxElement */: case 286 /* JsxOpeningElement */: @@ -168048,7 +164601,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, let importSpecifierResolver; const symbolToOriginInfoMap = []; const symbolToSortTextMap = []; - const seenPropertySymbols = /* @__PURE__ */ new Set(); + const seenPropertySymbols = /* @__PURE__ */ new Map(); const isTypeOnlyLocation = isTypeOnlyCompletion(); const getModuleSpecifierResolutionHost = memoizeOne((isFromPackageJson) => { return createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host); @@ -168105,8 +164658,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, isRightOfDotOrQuestionDot: isRightOfDot || isRightOfQuestionDot, importStatementCompletion, hasUnresolvedAutoImports, - flags, - defaultCommitCharacters + flags }; function isTagWithTypeExpression(tag) { switch (tag.kind) { @@ -168141,10 +164693,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const isRhsOfImportDeclaration = isInRightSideOfInternalImportEqualsDeclaration(node); if (isEntityName(node) || isImportType || isPropertyAccessExpression(node)) { const isNamespaceName = isModuleDeclaration(node.parent); - if (isNamespaceName) { - isNewIdentifierLocation = true; - defaultCommitCharacters = []; - } + if (isNamespaceName) isNewIdentifierLocation = true; let symbol = typeChecker.getSymbolAtLocation(node); if (symbol) { symbol = skipAlias(symbol, typeChecker); @@ -168214,13 +164763,9 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } } function addTypeProperties(type, insertAwait, insertQuestionDot) { - if (type.getStringIndexType()) { - isNewIdentifierLocation = true; - defaultCommitCharacters = []; - } + isNewIdentifierLocation = !!type.getStringIndexType(); if (isRightOfQuestionDot && some(type.getCallSignatures())) { isNewIdentifierLocation = true; - defaultCommitCharacters ?? (defaultCommitCharacters = allCommitCharacters); } const propertyAccess = node.kind === 205 /* ImportType */ ? node : node.parent; if (inCheckedFile) { @@ -168359,7 +164904,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, function getGlobalCompletions() { keywordFilters = tryGetFunctionLikeBodyCompletionContainer(contextToken) ? 5 /* FunctionLikeBodyKeywords */ : 1 /* All */; completionKind = 1 /* Global */; - ({ isNewIdentifierLocation, defaultCommitCharacters } = computeCommitCharactersAndIsNewIdentifier()); + isNewIdentifierLocation = isNewIdentifierDefinitionLocation(); if (previousToken !== contextToken) { Debug.assert(!!previousToken, "Expected 'contextToken' to be defined when different from 'previousToken'."); } @@ -168521,11 +165066,18 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } ); function isImportableExportInfo(info) { - return isImportable( + const moduleFile = tryCast(info.moduleSymbol.valueDeclaration, isSourceFile); + if (!moduleFile) { + const moduleName = stripQuotes(info.moduleSymbol.name); + if (ts_JsTyping_exports.nodeCoreModules.has(moduleName) && startsWith(moduleName, "node:") !== shouldUseUriStyleNodeCoreModules(sourceFile, program)) { + return false; + } + return packageJsonFilter ? packageJsonFilter.allowsImportingAmbientModule(info.moduleSymbol, getModuleSpecifierResolutionHost(info.isFromPackageJson)) : true; + } + return isImportableFile( info.isFromPackageJson ? packageJsonAutoImportProvider : program, sourceFile, - tryCast(info.moduleSymbol.valueDeclaration, isSourceFile), - info.moduleSymbol, + moduleFile, preferences, packageJsonFilter, getModuleSpecifierResolutionHost(info.isFromPackageJson), @@ -168618,121 +165170,41 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, } return false; } - function computeCommitCharactersAndIsNewIdentifier() { + function isNewIdentifierDefinitionLocation() { if (contextToken) { const containingNodeKind = contextToken.parent.kind; const tokenKind = keywordForNode(contextToken); switch (tokenKind) { case 28 /* CommaToken */: - switch (containingNodeKind) { - case 213 /* CallExpression */: - // func( a, | - case 214 /* NewExpression */: { - const expression = contextToken.parent.expression; - if (getLineAndCharacterOfPosition(sourceFile, expression.end).line !== getLineAndCharacterOfPosition(sourceFile, position).line) { - return { defaultCommitCharacters: noCommaCommitCharacters, isNewIdentifierLocation: true }; - } - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: true }; - } - case 226 /* BinaryExpression */: - return { defaultCommitCharacters: noCommaCommitCharacters, isNewIdentifierLocation: true }; - case 176 /* Constructor */: - // constructor( a, | /* public, protected, private keywords are allowed here, so show completion */ - case 184 /* FunctionType */: - // var x: (s: string, list| - case 210 /* ObjectLiteralExpression */: - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; - case 209 /* ArrayLiteralExpression */: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 226 /* BinaryExpression */ || containingNodeKind === 184 /* FunctionType */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 21 /* OpenParenToken */: - switch (containingNodeKind) { - case 213 /* CallExpression */: - // func( | - case 214 /* NewExpression */: { - const expression = contextToken.parent.expression; - if (getLineAndCharacterOfPosition(sourceFile, expression.end).line !== getLineAndCharacterOfPosition(sourceFile, position).line) { - return { defaultCommitCharacters: noCommaCommitCharacters, isNewIdentifierLocation: true }; - } - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: true }; - } - case 217 /* ParenthesizedExpression */: - return { defaultCommitCharacters: noCommaCommitCharacters, isNewIdentifierLocation: true }; - case 176 /* Constructor */: - // constructor( | - case 196 /* ParenthesizedType */: - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 213 /* CallExpression */ || containingNodeKind === 176 /* Constructor */ || containingNodeKind === 214 /* NewExpression */ || containingNodeKind === 217 /* ParenthesizedExpression */ || containingNodeKind === 196 /* ParenthesizedType */; case 23 /* OpenBracketToken */: - switch (containingNodeKind) { - case 209 /* ArrayLiteralExpression */: - // [ | - case 181 /* IndexSignature */: - // [ | : string ] - case 189 /* TupleType */: - // [ | : string ] - case 167 /* ComputedPropertyName */: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 209 /* ArrayLiteralExpression */ || containingNodeKind === 181 /* IndexSignature */ || containingNodeKind === 167 /* ComputedPropertyName */; case 144 /* ModuleKeyword */: - // module | case 145 /* NamespaceKeyword */: - // namespace | case 102 /* ImportKeyword */: - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; + return true; case 25 /* DotToken */: - switch (containingNodeKind) { - case 267 /* ModuleDeclaration */: - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 267 /* ModuleDeclaration */; case 19 /* OpenBraceToken */: - switch (containingNodeKind) { - case 263 /* ClassDeclaration */: - // class A { | - case 210 /* ObjectLiteralExpression */: - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 263 /* ClassDeclaration */ || containingNodeKind === 210 /* ObjectLiteralExpression */; case 64 /* EqualsToken */: - switch (containingNodeKind) { - case 260 /* VariableDeclaration */: - // const x = a| - case 226 /* BinaryExpression */: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: true }; - default: - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; - } + return containingNodeKind === 260 /* VariableDeclaration */ || containingNodeKind === 226 /* BinaryExpression */; case 16 /* TemplateHead */: - return { - defaultCommitCharacters: allCommitCharacters, - isNewIdentifierLocation: containingNodeKind === 228 /* TemplateExpression */ - // `aa ${| - }; + return containingNodeKind === 228 /* TemplateExpression */; case 17 /* TemplateMiddle */: - return { - defaultCommitCharacters: allCommitCharacters, - isNewIdentifierLocation: containingNodeKind === 239 /* TemplateSpan */ - // `aa ${10} dd ${| - }; + return containingNodeKind === 239 /* TemplateSpan */; case 134 /* AsyncKeyword */: - return containingNodeKind === 174 /* MethodDeclaration */ || containingNodeKind === 304 /* ShorthandPropertyAssignment */ ? { defaultCommitCharacters: [], isNewIdentifierLocation: true } : { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; + return containingNodeKind === 174 /* MethodDeclaration */ || containingNodeKind === 304 /* ShorthandPropertyAssignment */; case 42 /* AsteriskToken */: - return containingNodeKind === 174 /* MethodDeclaration */ ? { defaultCommitCharacters: [], isNewIdentifierLocation: true } : { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; + return containingNodeKind === 174 /* MethodDeclaration */; } if (isClassMemberCompletionKeyword(tokenKind)) { - return { defaultCommitCharacters: [], isNewIdentifierLocation: true }; + return true; } } - return { defaultCommitCharacters: allCommitCharacters, isNewIdentifierLocation: false }; + return false; } function isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) { return (isRegularExpressionLiteral(contextToken2) || isStringTextContainingNode(contextToken2)) && (rangeContainsPositionExclusive(contextToken2, position) || position === contextToken2.end && (!!contextToken2.isUnterminated || isRegularExpressionLiteral(contextToken2))); @@ -168842,7 +165314,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, completionKind = 3 /* MemberLike */; isNewIdentifierLocation = false; const exports2 = typeChecker.getExportsAndPropertiesOfModule(moduleSpecifierSymbol); - const existing = new Set(namedImportsOrExports.elements.filter((n) => !isCurrentlyEditingNode(n)).map((n) => moduleExportNameTextEscaped(n.propertyName || n.name))); + const existing = new Set(namedImportsOrExports.elements.filter((n) => !isCurrentlyEditingNode(n)).map((n) => (n.propertyName || n.name).escapedText)); const uniques = exports2.filter((e) => e.escapedName !== "default" /* Default */ && !existing.has(e.escapedName)); symbols = concatenate(symbols, uniques); if (!uniques.length) { @@ -168960,7 +165432,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, const parent2 = contextToken2.parent; switch (contextToken2.kind) { case 32 /* GreaterThanToken */: - // End of a type argument list case 31 /* LessThanSlashToken */: case 44 /* SlashToken */: case 80 /* Identifier */: @@ -168983,9 +165454,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return parent2.parent.parent; } break; - // The context token is the closing } or " of an attribute, which means - // its parent is a JsxExpression, whose parent is a JsxAttribute, - // whose parent is a JsxOpeningLikeElement case 11 /* StringLiteral */: if (parent2 && (parent2.kind === 291 /* JsxAttribute */ || parent2.kind === 293 /* JsxSpreadAttribute */)) { return parent2.parent.parent; @@ -169020,18 +165488,14 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, isClassLike(parent2) && !!parent2.typeParameters && parent2.typeParameters.end >= contextToken2.pos; case 25 /* DotToken */: return containingNodeKind === 207 /* ArrayBindingPattern */; - // var [.| case 59 /* ColonToken */: return containingNodeKind === 208 /* BindingElement */; - // var {x :html| case 23 /* OpenBracketToken */: return containingNodeKind === 207 /* ArrayBindingPattern */; - // var [x| case 21 /* OpenParenToken */: return containingNodeKind === 299 /* CatchClause */ || isFunctionLikeButNotConstructor(containingNodeKind); case 19 /* OpenBraceToken */: return containingNodeKind === 266 /* EnumDeclaration */; - // enum a { | case 30 /* LessThanToken */: return containingNodeKind === 263 /* ClassDeclaration */ || // class A< | containingNodeKind === 231 /* ClassExpression */ || // var C = class D< | @@ -169042,7 +165506,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, return containingNodeKind === 172 /* PropertyDeclaration */ && !isClassLike(parent2.parent); case 26 /* DotDotDotToken */: return containingNodeKind === 169 /* Parameter */ || !!parent2.parent && parent2.parent.kind === 207 /* ArrayBindingPattern */; - // var [...z| case 125 /* PublicKeyword */: case 123 /* PrivateKeyword */: case 124 /* ProtectedKeyword */: @@ -169053,7 +165516,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position, case 153 /* SetKeyword */: return !isFromObjectTypeDeclaration(contextToken2); case 80 /* Identifier */: { - if ((containingNodeKind === 276 /* ImportSpecifier */ || containingNodeKind === 281 /* ExportSpecifier */) && contextToken2 === parent2.name && contextToken2.text === "type") { + if (containingNodeKind === 276 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") { return false; } const ancestorVariableDeclaration = findAncestor( @@ -169269,7 +165732,6 @@ function tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile) const { parent: parent2 } = contextToken; switch (contextToken.kind) { case 19 /* OpenBraceToken */: - // const x = { | case 28 /* CommaToken */: if (isObjectLiteralExpression(parent2) || isObjectBindingPattern(parent2)) { return parent2; @@ -169343,9 +165805,6 @@ function getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, js if (isIdentifierText(name, target, jsxIdentifierExpected ? 1 /* JSX */ : 0 /* Standard */) || symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) { return validNameResult; } - if (symbol.flags & 2097152 /* Alias */) { - return { name, needsConvertPropertyAccess: true }; - } switch (kind) { case 3 /* MemberLike */: return originIsComputedPropertyName(origin) ? { name: origin.symbolName, needsConvertPropertyAccess: false } : void 0; @@ -169487,13 +165946,7 @@ function getJsDocTagAtPosition(node, position) { } function getPropertiesForObjectExpression(contextualType, completionsType, obj, checker) { const hasCompletionsType = completionsType && completionsType !== contextualType; - const promiseFilteredContextualType = checker.getUnionType( - filter( - contextualType.flags & 1048576 /* Union */ ? contextualType.types : [contextualType], - (t) => !checker.getPromisedTypeOfPromise(t) - ) - ); - const type = hasCompletionsType && !(completionsType.flags & 3 /* AnyOrUnknown */) ? checker.getUnionType([promiseFilteredContextualType, completionsType]) : promiseFilteredContextualType; + const type = hasCompletionsType && !(completionsType.flags & 3 /* AnyOrUnknown */) ? checker.getUnionType([contextualType, completionsType]) : contextualType; const properties = getApparentProperties(type, obj, checker); return type.isClass() && containsNonPublicProperties(properties) ? [] : hasCompletionsType ? filter(properties, hasDeclarationOtherThanSelf) : properties; function hasDeclarationOtherThanSelf(member) { @@ -169547,11 +166000,9 @@ function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken case 64 /* EqualsToken */: return void 0; case 27 /* SemicolonToken */: - // class c {getValue(): number; | } case 20 /* CloseBraceToken */: return isFromObjectTypeDeclaration(location) && location.parent.name === location ? location.parent.parent : tryCast(location, isObjectTypeDeclaration); case 19 /* OpenBraceToken */: - // class c { | case 28 /* CommaToken */: return tryCast(contextToken.parent, isObjectTypeDeclaration); default: @@ -169785,37 +166236,20 @@ function isModuleSpecifierMissingOrEmpty(specifier) { if (nodeIsMissing(specifier)) return true; return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text); } -function getClosestSymbolDeclaration(contextToken, location) { +function getVariableOrParameterDeclaration(contextToken, location) { if (!contextToken) return; - let closestDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent)); - if (!closestDeclaration) { - closestDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node)); - } - return closestDeclaration; -} -function isInTypeParameterDefault(contextToken) { - if (!contextToken) { - return false; - } - let node = contextToken; - let parent2 = contextToken.parent; - while (parent2) { - if (isTypeParameterDeclaration(parent2)) { - return parent2.default === node || node.kind === 64 /* EqualsToken */; - } - node = parent2; - parent2 = parent2.parent; - } - return false; + const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent)); + const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node)); + return possiblyParameterDeclaration || possiblyVariableDeclaration; } function isArrowFunctionBody(node) { return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/; node.kind === 39 /* EqualsGreaterThanToken */); } -function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Set()) { +function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules = /* @__PURE__ */ new Map()) { return nonAliasCanBeReferencedAtTypeLocation(symbol) || nonAliasCanBeReferencedAtTypeLocation(skipAlias(symbol.exportSymbol || symbol, checker)); function nonAliasCanBeReferencedAtTypeLocation(symbol2) { - return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules, symbol2) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules)); + return !!(symbol2.flags & 788968 /* Type */) || checker.isUnknownSymbol(symbol2) || !!(symbol2.flags & 1536 /* Module */) && addToSeen(seenModules, getSymbolId(symbol2)) && checker.getExportsOfModule(symbol2).some((e) => symbolCanBeReferencedAtTypeLocation(e, checker, seenModules)); } } function isDeprecated(symbol, checker) { @@ -169887,7 +166321,7 @@ function createNameAndKindSet() { } function getStringLiteralCompletions(sourceFile, position, contextToken, options, host, program, log, preferences, includeSymbol) { if (isInReferenceComment(sourceFile, position)) { - const entries = getTripleSlashReferenceCompletion(sourceFile, position, program, host, createModuleSpecifierResolutionHost(program, host)); + const entries = getTripleSlashReferenceCompletion(sourceFile, position, options, host); return entries && convertPathCompletions(entries); } if (isInString(sourceFile, position, contextToken)) { @@ -169945,14 +166379,7 @@ function convertStringLiteralCompletions(completion, contextToken, sourceFile, h void 0, includeSymbol ); - return { - isGlobalCompletion: false, - isMemberCompletion: true, - isNewIdentifierLocation: completion.hasIndexSignature, - optionalReplacementSpan, - entries, - defaultCommitCharacters: getDefaultCommitCharacters(completion.hasIndexSignature) - }; + return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: completion.hasIndexSignature, optionalReplacementSpan, entries }; } case 2 /* Types */: { const quoteChar = contextToken.kind === 15 /* NoSubstitutionTemplateLiteral */ ? 96 /* backtick */ : startsWith(getTextOfNode(contextToken), "'") ? 39 /* singleQuote */ : 34 /* doubleQuote */; @@ -169961,17 +166388,9 @@ function convertStringLiteralCompletions(completion, contextToken, sourceFile, h kindModifiers: "" /* none */, kind: "string" /* string */, sortText: SortText.LocationPriority, - replacementSpan: getReplacementSpanForContextToken(contextToken, position), - commitCharacters: [] + replacementSpan: getReplacementSpanForContextToken(contextToken, position) })); - return { - isGlobalCompletion: false, - isMemberCompletion: false, - isNewIdentifierLocation: completion.isNewIdentifier, - optionalReplacementSpan, - entries, - defaultCommitCharacters: getDefaultCommitCharacters(completion.isNewIdentifier) - }; + return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: completion.isNewIdentifier, optionalReplacementSpan, entries }; } default: return Debug.assertNever(completion); @@ -170002,13 +166421,7 @@ function convertPathCompletions(pathCompletions) { const isGlobalCompletion = false; const isNewIdentifierLocation = true; const entries = pathCompletions.map(({ name, kind, span, extension }) => ({ name, kind, kindModifiers: kindModifiersFromExtension(extension), sortText: SortText.LocationPriority, replacementSpan: span })); - return { - isGlobalCompletion, - isMemberCompletion: false, - isNewIdentifierLocation, - entries, - defaultCommitCharacters: getDefaultCommitCharacters(isNewIdentifierLocation) - }; + return { isGlobalCompletion, isMemberCompletion: false, isNewIdentifierLocation, entries }; } function kindModifiersFromExtension(extension) { switch (extension) { @@ -170074,7 +166487,6 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, program, const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 291 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile, typeChecker); return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */); } - // falls through (is `require("")` or `require(""` or `import("")`) case 272 /* ImportDeclaration */: case 278 /* ExportDeclaration */: case 283 /* ExternalModuleReference */: @@ -170088,21 +166500,6 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, program, } const literals = contextualTypes.types.filter((literal) => !tracker.hasValue(literal.value)); return { kind: 2 /* Types */, types: literals, isNewIdentifier: false }; - case 276 /* ImportSpecifier */: - case 281 /* ExportSpecifier */: - const specifier = parent2; - if (specifier.propertyName && node !== specifier.propertyName) { - return; - } - const namedImportsOrExports = specifier.parent; - const { moduleSpecifier } = namedImportsOrExports.kind === 275 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent; - if (!moduleSpecifier) return; - const moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier); - if (!moduleSpecifierSymbol) return; - const exports2 = typeChecker.getExportsAndPropertiesOfModule(moduleSpecifierSymbol); - const existing = new Set(namedImportsOrExports.elements.map((n) => moduleExportNameTextEscaped(n.propertyName || n.name))); - const uniques = exports2.filter((e) => e.escapedName !== "default" /* Default */ && !existing.has(e.escapedName)); - return { kind: 1 /* Properties */, symbols: uniques, hasIndexSignature: false }; default: return fromContextualType() || fromContextualType(0 /* None */); } @@ -170160,7 +166557,7 @@ function getAlreadyUsedTypesInStringLiteralUnion(union, current) { } function getStringLiteralCompletionsFromSignature(call, arg, argumentInfo, checker) { let isNewIdentifier = false; - const uniques = /* @__PURE__ */ new Set(); + const uniques = /* @__PURE__ */ new Map(); const editingArgument = isJsxOpeningLikeElement(call) ? Debug.checkDefined(findAncestor(arg.parent, isJsxAttribute)) : arg; const candidates = checker.getCandidateSignaturesForStringLiteralCompletions(call, editingArgument); const types = flatMap(candidates, (candidate) => { @@ -170200,7 +166597,7 @@ function stringLiteralCompletionsForObjectLiteral(checker, objectLiteralExpressi hasIndexSignature: hasIndexSignature(contextualType) }; } -function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Set()) { +function getStringLiteralTypes(type, uniques = /* @__PURE__ */ new Map()) { if (!type) return emptyArray; type = skipConstraint(type); return type.isUnion() ? flatMap(type.types, (t) => getStringLiteralTypes(t, uniques)) : type.isStringLiteral() && !(type.flags & 1024 /* EnumLiteral */) && addToSeen(uniques, type.value) ? [type] : emptyArray; @@ -170231,9 +166628,8 @@ function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, prog const scriptDirectory = getDirectoryPath(scriptPath); const compilerOptions = program.getCompilerOptions(); const typeChecker = program.getTypeChecker(); - const moduleSpecifierResolutionHost = createModuleSpecifierResolutionHost(program, host); const extensionOptions = getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile, typeChecker, preferences, mode); - return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, program, host, moduleSpecifierResolutionHost, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, program, host, moduleSpecifierResolutionHost, extensionOptions); + return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && !compilerOptions.paths && (isRootedDiskPath(literalValue) || isUrl(literalValue)) ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, mode, compilerOptions, host, extensionOptions, typeChecker); } function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile, typeChecker, preferences, resolutionMode) { return { @@ -170244,17 +166640,15 @@ function getExtensionOptions(compilerOptions, referenceKind, importingSourceFile resolutionMode }; } -function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, program, host, moduleSpecifierResolutionHost, scriptPath, extensionOptions) { - const compilerOptions = program.getCompilerOptions(); +function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, extensionOptions) { if (compilerOptions.rootDirs) { return getCompletionEntriesForDirectoryFragmentWithRootDirs( compilerOptions.rootDirs, literalValue, scriptDirectory, extensionOptions, - program, + compilerOptions, host, - moduleSpecifierResolutionHost, scriptPath ); } else { @@ -170262,9 +166656,7 @@ function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, p literalValue, scriptDirectory, extensionOptions, - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ true, scriptPath @@ -170290,8 +166682,7 @@ function getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ign compareStringsCaseSensitive ); } -function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment, scriptDirectory, extensionOptions, program, host, moduleSpecifierResolutionHost, exclude) { - const compilerOptions = program.getCompilerOptions(); +function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment, scriptDirectory, extensionOptions, compilerOptions, host, exclude) { const basePath = compilerOptions.project || host.getCurrentDirectory(); const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames()); const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase); @@ -170300,9 +166691,7 @@ function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment fragment, baseDirectory, extensionOptions, - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ true, exclude @@ -170310,7 +166699,7 @@ function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment (itemA, itemB) => itemA.name === itemB.name && itemA.kind === itemB.kind && itemA.extension === itemB.extension ); } -function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, extensionOptions, program, host, moduleSpecifierResolutionHost, moduleSpecifierIsRelative, exclude, result = createNameAndKindSet()) { +function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, extensionOptions, host, moduleSpecifierIsRelative, exclude, result = createNameAndKindSet()) { var _a; if (fragment === void 0) { fragment = ""; @@ -170335,7 +166724,7 @@ function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, ext if (versionPaths) { const packageDirectory = getDirectoryPath(packageJsonPath); const pathInPackage = absolutePath.slice(ensureTrailingDirectorySeparator(packageDirectory).length); - if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, program, host, moduleSpecifierResolutionHost, versionPaths)) { + if (addCompletionEntriesFromPaths(result, pathInPackage, packageDirectory, extensionOptions, host, versionPaths)) { return result; } } @@ -170361,9 +166750,9 @@ function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, ext } const { name, extension } = getFilenameWithExtensionOption( getBaseFileName(filePath), - program, + host.getCompilationSettings(), extensionOptions, - /*isExportsOrImportsWildcard*/ + /*isExportsWildcard*/ false ); result.add(nameAndKind(name, "script" /* scriptElement */, extension)); @@ -170380,7 +166769,7 @@ function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, ext } return result; } -function getFilenameWithExtensionOption(name, program, extensionOptions, isExportsOrImportsWildcard) { +function getFilenameWithExtensionOption(name, compilerOptions, extensionOptions, isExportsWildcard) { const nonJsResult = ts_moduleSpecifiers_exports.tryGetRealFileNameForNonJsDeclarationFileName(name); if (nonJsResult) { return { name: nonJsResult, extension: tryGetExtensionFromPath2(nonJsResult) }; @@ -170388,29 +166777,28 @@ function getFilenameWithExtensionOption(name, program, extensionOptions, isExpor if (extensionOptions.referenceKind === 0 /* Filename */) { return { name, extension: tryGetExtensionFromPath2(name) }; } - let allowedEndings = ts_moduleSpecifiers_exports.getModuleSpecifierPreferences( + let allowedEndings = getModuleSpecifierPreferences( { importModuleSpecifierEnding: extensionOptions.endingPreference }, - program, - program.getCompilerOptions(), + compilerOptions, extensionOptions.importingSourceFile ).getAllowedEndingsInPreferredOrder(extensionOptions.resolutionMode); - if (isExportsOrImportsWildcard) { + if (isExportsWildcard) { allowedEndings = allowedEndings.filter((e) => e !== 0 /* Minimal */ && e !== 1 /* Index */); } if (allowedEndings[0] === 3 /* TsExtension */) { if (fileExtensionIsOneOf(name, supportedTSImplementationExtensions)) { return { name, extension: tryGetExtensionFromPath2(name) }; } - const outputExtension2 = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, program.getCompilerOptions()); + const outputExtension2 = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, compilerOptions); return outputExtension2 ? { name: changeExtension(name, outputExtension2), extension: outputExtension2 } : { name, extension: tryGetExtensionFromPath2(name) }; } - if (!isExportsOrImportsWildcard && (allowedEndings[0] === 0 /* Minimal */ || allowedEndings[0] === 1 /* Index */) && fileExtensionIsOneOf(name, [".js" /* Js */, ".jsx" /* Jsx */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */])) { + if (!isExportsWildcard && (allowedEndings[0] === 0 /* Minimal */ || allowedEndings[0] === 1 /* Index */) && fileExtensionIsOneOf(name, [".js" /* Js */, ".jsx" /* Jsx */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".d.ts" /* Dts */])) { return { name: removeFileExtension(name), extension: tryGetExtensionFromPath2(name) }; } - const outputExtension = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, program.getCompilerOptions()); + const outputExtension = ts_moduleSpecifiers_exports.tryGetJSExtensionForFile(name, compilerOptions); return outputExtension ? { name: changeExtension(name, outputExtension), extension: outputExtension } : { name, extension: tryGetExtensionFromPath2(name) }; } -function addCompletionEntriesFromPaths(result, fragment, baseDirectory, extensionOptions, program, host, moduleSpecifierResolutionHost, paths) { +function addCompletionEntriesFromPaths(result, fragment, baseDirectory, extensionOptions, host, paths) { const getPatternsForKey = (key) => paths[key]; const comparePaths2 = (a, b) => { const patternA = tryParsePattern(a); @@ -170419,43 +166807,39 @@ function addCompletionEntriesFromPaths(result, fragment, baseDirectory, extensio const lengthB = typeof patternB === "object" ? patternB.prefix.length : b.length; return compareValues(lengthB, lengthA); }; - return addCompletionEntriesFromPathsOrExportsOrImports( + return addCompletionEntriesFromPathsOrExports( result, /*isExports*/ false, - /*isImports*/ - false, fragment, baseDirectory, extensionOptions, - program, host, - moduleSpecifierResolutionHost, getOwnKeys(paths), getPatternsForKey, comparePaths2 ); } -function addCompletionEntriesFromPathsOrExportsOrImports(result, isExports, isImports, fragment, baseDirectory, extensionOptions, program, host, moduleSpecifierResolutionHost, keys, getPatternsForKey, comparePaths2) { +function addCompletionEntriesFromPathsOrExports(result, isExports, fragment, baseDirectory, extensionOptions, host, keys, getPatternsForKey, comparePaths2) { let pathResults = []; let matchedPath; for (const key of keys) { if (key === ".") continue; - const keyWithoutLeadingDotSlash = key.replace(/^\.\//, "") + ((isExports || isImports) && endsWith(key, "/") ? "*" : ""); + const keyWithoutLeadingDotSlash = key.replace(/^\.\//, ""); const patterns = getPatternsForKey(key); if (patterns) { const pathPattern = tryParsePattern(keyWithoutLeadingDotSlash); if (!pathPattern) continue; const isMatch = typeof pathPattern === "object" && isPatternMatch(pathPattern, fragment); - const isLongestMatch = isMatch && (matchedPath === void 0 || comparePaths2(keyWithoutLeadingDotSlash, matchedPath) === -1 /* LessThan */); + const isLongestMatch = isMatch && (matchedPath === void 0 || comparePaths2(key, matchedPath) === -1 /* LessThan */); if (isLongestMatch) { - matchedPath = keyWithoutLeadingDotSlash; + matchedPath = key; pathResults = pathResults.filter((r) => !r.matchedPattern); } - if (typeof pathPattern === "string" || matchedPath === void 0 || comparePaths2(keyWithoutLeadingDotSlash, matchedPath) !== 1 /* GreaterThan */) { + if (typeof pathPattern === "string" || matchedPath === void 0 || comparePaths2(key, matchedPath) !== 1 /* GreaterThan */) { pathResults.push({ matchedPattern: isMatch, - results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost).map(({ name, kind, extension }) => nameAndKind(name, kind, extension)) + results: getCompletionsForPathMapping(keyWithoutLeadingDotSlash, patterns, fragment, baseDirectory, extensionOptions, isExports && isMatch, host).map(({ name, kind, extension }) => nameAndKind(name, kind, extension)) }); } } @@ -170463,9 +166847,7 @@ function addCompletionEntriesFromPathsOrExportsOrImports(result, isExports, isIm pathResults.forEach((pathResult) => pathResult.results.forEach((r) => result.add(r))); return matchedPath !== void 0; } -function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, program, host, moduleSpecifierResolutionHost, extensionOptions) { - const typeChecker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); +function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, compilerOptions, host, extensionOptions, typeChecker) { const { baseUrl, paths } = compilerOptions; const result = createNameAndKindSet(); const moduleResolution = getEmitModuleResolutionKind(compilerOptions); @@ -170475,9 +166857,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p fragment, absolute, extensionOptions, - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ false, /*exclude*/ @@ -170487,7 +166867,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p } if (paths) { const absolute = getPathsBasePath(compilerOptions, host); - addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, program, host, moduleSpecifierResolutionHost, paths); + addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions, host, paths); } const fragmentDirectory = getFragmentDirectory(fragment); for (const ambientName of getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker)) { @@ -170498,7 +166878,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p void 0 )); } - getCompletionEntriesFromTypings(program, host, moduleSpecifierResolutionHost, scriptPath, fragmentDirectory, extensionOptions, result); + getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, fragmentDirectory, extensionOptions, result); if (moduleResolutionUsesNodeModules(moduleResolution)) { let foundGlobal = false; if (fragmentDirectory === void 0) { @@ -170516,26 +166896,6 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p } } if (!foundGlobal) { - const resolvePackageJsonExports = getResolvePackageJsonExports(compilerOptions); - const resolvePackageJsonImports = getResolvePackageJsonImports(compilerOptions); - let seenPackageScope = false; - const importsLookup = (directory) => { - if (resolvePackageJsonImports && !seenPackageScope) { - const packageFile = combinePaths(directory, "package.json"); - if (seenPackageScope = tryFileExists(host, packageFile)) { - const packageJson = readJson(packageFile, host); - exportsOrImportsLookup( - packageJson.imports, - fragment, - directory, - /*isExports*/ - false, - /*isImports*/ - true - ); - } - } - }; let ancestorLookup = (ancestor) => { const nodeModules = combinePaths(ancestor, "node_modules"); if (tryDirectoryExists(host, nodeModules)) { @@ -170543,9 +166903,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p fragment, nodeModules, extensionOptions, - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ false, /*exclude*/ @@ -170553,77 +166911,57 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p result ); } - importsLookup(ancestor); }; - if (fragmentDirectory && resolvePackageJsonExports) { - const nodeModulesDirectoryOrImportsLookup = ancestorLookup; + if (fragmentDirectory && getResolvePackageJsonExports(compilerOptions)) { + const nodeModulesDirectoryLookup = ancestorLookup; ancestorLookup = (ancestor) => { const components = getPathComponents(fragment); components.shift(); let packagePath = components.shift(); if (!packagePath) { - return nodeModulesDirectoryOrImportsLookup(ancestor); + return nodeModulesDirectoryLookup(ancestor); } if (startsWith(packagePath, "@")) { const subName = components.shift(); if (!subName) { - return nodeModulesDirectoryOrImportsLookup(ancestor); + return nodeModulesDirectoryLookup(ancestor); } packagePath = combinePaths(packagePath, subName); } - if (resolvePackageJsonImports && startsWith(packagePath, "#")) { - return importsLookup(ancestor); - } const packageDirectory = combinePaths(ancestor, "node_modules", packagePath); const packageFile = combinePaths(packageDirectory, "package.json"); if (tryFileExists(host, packageFile)) { const packageJson = readJson(packageFile, host); - const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); - exportsOrImportsLookup( - packageJson.exports, - fragmentSubpath, - packageDirectory, - /*isExports*/ - true, - /*isImports*/ - false - ); - return; + const exports2 = packageJson.exports; + if (exports2) { + if (typeof exports2 !== "object" || exports2 === null) { + return; + } + const keys = getOwnKeys(exports2); + const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : ""); + const conditions = getConditions(compilerOptions, mode); + addCompletionEntriesFromPathsOrExports( + result, + /*isExports*/ + true, + fragmentSubpath, + packageDirectory, + extensionOptions, + host, + keys, + (key) => singleElementArray(getPatternFromFirstMatchingCondition(exports2[key], conditions)), + comparePatternKeys + ); + return; + } } - return nodeModulesDirectoryOrImportsLookup(ancestor); + return nodeModulesDirectoryLookup(ancestor); }; } - forEachAncestorDirectoryStoppingAtGlobalCache(host, scriptPath, ancestorLookup); + forEachAncestorDirectory(scriptPath, ancestorLookup); } } return arrayFrom(result.values()); - function exportsOrImportsLookup(lookupTable, fragment2, baseDirectory, isExports, isImports) { - if (typeof lookupTable !== "object" || lookupTable === null) { - return; - } - const keys = getOwnKeys(lookupTable); - const conditions = getConditions(compilerOptions, mode); - addCompletionEntriesFromPathsOrExportsOrImports( - result, - isExports, - isImports, - fragment2, - baseDirectory, - extensionOptions, - program, - host, - moduleSpecifierResolutionHost, - keys, - (key) => { - const pattern = getPatternFromFirstMatchingCondition(lookupTable[key], conditions); - if (pattern === void 0) { - return void 0; - } - return singleElementArray(endsWith(key, "/") && endsWith(pattern, "/") ? pattern + "*" : pattern); - }, - comparePatternKeys - ); - } } function getPatternFromFirstMatchingCondition(target, conditions) { if (typeof target === "string") { @@ -170641,28 +166979,25 @@ function getPatternFromFirstMatchingCondition(target, conditions) { function getFragmentDirectory(fragment) { return containsSlash(fragment) ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0; } -function getCompletionsForPathMapping(path, patterns, fragment, packageDirectory, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost) { - const parsedPath = tryParsePattern(path); - if (!parsedPath) { - return emptyArray; - } - if (typeof parsedPath === "string") { - return justPathMappingName(path, "script" /* scriptElement */); +function getCompletionsForPathMapping(path, patterns, fragment, packageDirectory, extensionOptions, isExportsWildcard, host) { + if (!endsWith(path, "*")) { + return !path.includes("*") ? justPathMappingName(path, "script" /* scriptElement */) : emptyArray; } - const remainingFragment = tryRemovePrefix(fragment, parsedPath.prefix); + const pathPrefix = path.slice(0, path.length - 1); + const remainingFragment = tryRemovePrefix(fragment, pathPrefix); if (remainingFragment === void 0) { - const starIsFullPathComponent = endsWith(path, "/*"); - return starIsFullPathComponent ? justPathMappingName(parsedPath.prefix, "directory" /* directory */) : flatMap(patterns, (pattern) => { + const starIsFullPathComponent = path[path.length - 2] === "/"; + return starIsFullPathComponent ? justPathMappingName(pathPrefix, "directory" /* directory */) : flatMap(patterns, (pattern) => { var _a; - return (_a = getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost)) == null ? void 0 : _a.map(({ name, ...rest }) => ({ name: parsedPath.prefix + name + parsedPath.suffix, ...rest })); + return (_a = getModulesForPathsPattern("", packageDirectory, pattern, extensionOptions, isExportsWildcard, host)) == null ? void 0 : _a.map(({ name, ...rest }) => ({ name: pathPrefix + name, ...rest })); }); } - return flatMap(patterns, (pattern) => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost)); + return flatMap(patterns, (pattern) => getModulesForPathsPattern(remainingFragment, packageDirectory, pattern, extensionOptions, isExportsWildcard, host)); function justPathMappingName(name, kind) { return startsWith(name, fragment) ? [{ name: removeTrailingDirectorySeparator(name), kind, extension: void 0 }] : emptyArray; } } -function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensionOptions, isExports, isImports, program, host, moduleSpecifierResolutionHost) { +function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensionOptions, isExportsWildcard, host) { if (!host.readDirectory) { return void 0; } @@ -170675,67 +167010,35 @@ function getModulesForPathsPattern(fragment, packageDirectory, pattern, extensio const normalizedPrefixBase = hasTrailingDirectorySeparator(parsed.prefix) ? "" : getBaseFileName(normalizedPrefix); const fragmentHasPath = containsSlash(fragment); const fragmentDirectory = fragmentHasPath ? hasTrailingDirectorySeparator(fragment) ? fragment : getDirectoryPath(fragment) : void 0; - const getCommonSourceDirectory2 = () => moduleSpecifierResolutionHost.getCommonSourceDirectory(); - const ignoreCase = !hostUsesCaseSensitiveFileNames(moduleSpecifierResolutionHost); - const outDir = program.getCompilerOptions().outDir; - const declarationDir = program.getCompilerOptions().declarationDir; const expandedPrefixDirectory = fragmentHasPath ? combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory; - const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); - const possibleInputBaseDirectoryForOutDir = isImports && outDir && getPossibleOriginalInputPathWithoutChangingExt(baseDirectory, ignoreCase, outDir, getCommonSourceDirectory2); - const possibleInputBaseDirectoryForDeclarationDir = isImports && declarationDir && getPossibleOriginalInputPathWithoutChangingExt(baseDirectory, ignoreCase, declarationDir, getCommonSourceDirectory2); const normalizedSuffix = normalizePath(parsed.suffix); const declarationExtension = normalizedSuffix && getDeclarationEmitExtensionForPath("_" + normalizedSuffix); - const inputExtension = normalizedSuffix ? getPossibleOriginalInputExtensionForExtension("_" + normalizedSuffix) : void 0; - const matchingSuffixes = [ - declarationExtension && changeExtension(normalizedSuffix, declarationExtension), - ...inputExtension ? inputExtension.map((ext) => changeExtension(normalizedSuffix, ext)) : [], - normalizedSuffix - ].filter(isString); + const matchingSuffixes = declarationExtension ? [changeExtension(normalizedSuffix, declarationExtension), normalizedSuffix] : [normalizedSuffix]; + const baseDirectory = normalizePath(combinePaths(packageDirectory, expandedPrefixDirectory)); + const completePrefix = fragmentHasPath ? baseDirectory : ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase; const includeGlobs = normalizedSuffix ? matchingSuffixes.map((suffix) => "**/*" + suffix) : ["./*"]; - const isExportsOrImportsWildcard = (isExports || isImports) && endsWith(pattern, "/*"); - let matches = getMatchesWithPrefix(baseDirectory); - if (possibleInputBaseDirectoryForOutDir) { - matches = concatenate(matches, getMatchesWithPrefix(possibleInputBaseDirectoryForOutDir)); - } - if (possibleInputBaseDirectoryForDeclarationDir) { - matches = concatenate(matches, getMatchesWithPrefix(possibleInputBaseDirectoryForDeclarationDir)); - } - if (!normalizedSuffix) { - matches = concatenate(matches, getDirectoryMatches(baseDirectory)); - if (possibleInputBaseDirectoryForOutDir) { - matches = concatenate(matches, getDirectoryMatches(possibleInputBaseDirectoryForOutDir)); - } - if (possibleInputBaseDirectoryForDeclarationDir) { - matches = concatenate(matches, getDirectoryMatches(possibleInputBaseDirectoryForDeclarationDir)); - } - } - return matches; - function getMatchesWithPrefix(directory) { - const completePrefix = fragmentHasPath ? directory : ensureTrailingDirectorySeparator(directory) + normalizedPrefixBase; - return mapDefined(tryReadDirectory( - host, - directory, - extensionOptions.extensionsToSearch, - /*exclude*/ - void 0, - includeGlobs - ), (match) => { - const trimmedWithPattern = trimPrefixAndSuffix(match, completePrefix); - if (trimmedWithPattern) { - if (containsSlash(trimmedWithPattern)) { - return directoryResult(getPathComponents(removeLeadingDirectorySeparator(trimmedWithPattern))[1]); - } - const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, program, extensionOptions, isExportsOrImportsWildcard); - return nameAndKind(name, "script" /* scriptElement */, extension); + const matches = mapDefined(tryReadDirectory( + host, + baseDirectory, + extensionOptions.extensionsToSearch, + /*exclude*/ + void 0, + includeGlobs + ), (match) => { + const trimmedWithPattern = trimPrefixAndSuffix(match); + if (trimmedWithPattern) { + if (containsSlash(trimmedWithPattern)) { + return directoryResult(getPathComponents(removeLeadingDirectorySeparator(trimmedWithPattern))[1]); } - }); - } - function getDirectoryMatches(directoryName) { - return mapDefined(tryGetDirectories(host, directoryName), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir)); - } - function trimPrefixAndSuffix(path, prefix) { + const { name, extension } = getFilenameWithExtensionOption(trimmedWithPattern, host.getCompilationSettings(), extensionOptions, isExportsWildcard); + return nameAndKind(name, "script" /* scriptElement */, extension); + } + }); + const directories = normalizedSuffix ? emptyArray : mapDefined(tryGetDirectories(host, baseDirectory), (dir) => dir === "node_modules" ? void 0 : directoryResult(dir)); + return [...matches, ...directories]; + function trimPrefixAndSuffix(path) { return firstDefined(matchingSuffixes, (suffix) => { - const inner = withoutStartAndEnd(normalizePath(path), prefix, suffix); + const inner = withoutStartAndEnd(normalizePath(path), completePrefix, suffix); return inner === void 0 ? void 0 : removeLeadingDirectorySeparator(inner); }); } @@ -170755,8 +167058,7 @@ function getAmbientModuleCompletions(fragment, fragmentDirectory, checker) { } return nonRelativeModuleNames; } -function getTripleSlashReferenceCompletion(sourceFile, position, program, host, moduleSpecifierResolutionHost) { - const compilerOptions = program.getCompilerOptions(); +function getTripleSlashReferenceCompletion(sourceFile, position, compilerOptions, host) { const token = getTokenAtPosition(sourceFile, position); const commentRanges = getLeadingCommentRanges(sourceFile.text, token.pos); const range = commentRanges && find(commentRanges, (commentRange) => position >= commentRange.pos && position <= commentRange.end); @@ -170774,17 +167076,14 @@ function getTripleSlashReferenceCompletion(sourceFile, position, program, host, toComplete, scriptPath, getExtensionOptions(compilerOptions, 0 /* Filename */, sourceFile), - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ true, sourceFile.path - ) : kind === "types" ? getCompletionEntriesFromTypings(program, host, moduleSpecifierResolutionHost, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile)) : Debug.fail(); + ) : kind === "types" ? getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions, 1 /* ModuleSpecifier */, sourceFile)) : Debug.fail(); return addReplacementSpans(toComplete, range.pos + prefix.length, arrayFrom(names.values())); } -function getCompletionEntriesFromTypings(program, host, moduleSpecifierResolutionHost, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) { - const options = program.getCompilerOptions(); +function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result = createNameAndKindSet()) { const seen = /* @__PURE__ */ new Map(); const typeRoots = tryAndIgnoreErrors(() => getEffectiveTypeRoots(options, host)) || emptyArray; for (const root of typeRoots) { @@ -170818,9 +167117,7 @@ function getCompletionEntriesFromTypings(program, host, moduleSpecifierResolutio remainingFragment, baseDirectory, extensionOptions, - program, host, - moduleSpecifierResolutionHost, /*moduleSpecifierIsRelative*/ false, /*exclude*/ @@ -170890,9 +167187,11 @@ __export(ts_FindAllReferences_exports, { getImplementationsAtPosition: () => getImplementationsAtPosition, getImportOrExportSymbol: () => getImportOrExportSymbol, getReferenceEntriesForNode: () => getReferenceEntriesForNode, + getTextSpanOfEntry: () => getTextSpanOfEntry, isContextWithStartAndEndNode: () => isContextWithStartAndEndNode, isDeclarationOfSymbol: () => isDeclarationOfSymbol, isWriteAccessForReference: () => isWriteAccessForReference, + nodeEntry: () => nodeEntry, toContextSpan: () => toContextSpan, toHighlightSpan: () => toHighlightSpan, toReferenceEntry: () => toReferenceEntry, @@ -170966,7 +167265,6 @@ function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, { break; case 80 /* Identifier */: break; - // TODO: GH#23879 case 271 /* ImportEqualsDeclaration */: handleNamespaceImport( direct, @@ -171157,12 +167455,12 @@ function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, c } for (const element of namedBindings.elements) { const { name, propertyName } = element; - if (!isNameMatch(moduleExportNameTextEscaped(propertyName || name))) { + if (!isNameMatch((propertyName || name).escapedText)) { continue; } if (propertyName) { singleReferences.push(propertyName); - if (!isForRename || moduleExportNameTextEscaped(name) === exportSymbol.escapedName) { + if (!isForRename || name.escapedText === exportSymbol.escapedName) { addSearch(name, checker.getSymbolAtLocation(name)); } } else { @@ -171573,7 +167871,7 @@ function getImplementationsAtPosition(program, cancellationToken, sourceFiles, s referenceEntries = entries && [...entries]; } else if (entries) { const queue = createQueue(entries); - const seenNodes = /* @__PURE__ */ new Set(); + const seenNodes = /* @__PURE__ */ new Map(); while (!queue.isEmpty()) { const entry = queue.dequeue(); if (!addToSeen(seenNodes, getNodeId(entry.node))) { @@ -171861,7 +168159,6 @@ function declarationIsWriteAccess(decl) { case 306 /* EnumMember */: case 281 /* ExportSpecifier */: case 273 /* ImportClause */: - // default import case 271 /* ImportEqualsDeclaration */: case 276 /* ImportSpecifier */: case 264 /* InterfaceDeclaration */: @@ -172248,7 +168545,6 @@ var Core; Debug.assert(node.parent.name === node); return 2 /* Class */; } - // falls through default: return 0 /* None */; } @@ -172422,8 +168718,8 @@ var Core; function shouldAddSingleReference(singleRef, state) { if (!hasMatchingMeaning(singleRef, state)) return false; if (state.options.use !== 2 /* Rename */) return true; - if (!isIdentifier(singleRef) && !isImportOrExportSpecifier(singleRef.parent)) return false; - return !(isImportOrExportSpecifier(singleRef.parent) && moduleExportNameIsDefault(singleRef)); + if (!isIdentifier(singleRef)) return false; + return !(isImportOrExportSpecifier(singleRef.parent) && singleRef.escapedText === "default" /* Default */); } function searchForImportedSymbol(symbol, state) { if (!symbol.declarations) return; @@ -172580,13 +168876,12 @@ var Core; if (isJSDocMemberName(node.parent)) { return true; } - // falls through I guess case 80 /* Identifier */: return node.text.length === searchSymbolName.length; case 15 /* NoSubstitutionTemplateLiteral */: case 11 /* StringLiteral */: { const str = node; - return str.text.length === searchSymbolName.length && (isLiteralNameOfPropertyDeclarationOrIndexAccess(str) || isNameOfModuleDeclaration(node) || isExpressionOfExternalModuleImportEqualsDeclaration(node) || isCallExpression(node.parent) && isBindableObjectDefinePropertyCall(node.parent) && node.parent.arguments[1] === node || isImportOrExportSpecifier(node.parent)); + return (isLiteralNameOfPropertyDeclarationOrIndexAccess(str) || isNameOfModuleDeclaration(node) || isExpressionOfExternalModuleImportEqualsDeclaration(node) || isCallExpression(node.parent) && isBindableObjectDefinePropertyCall(node.parent) && node.parent.arguments[1] === node) && str.text.length === searchSymbolName.length; } case 9 /* NumericLiteral */: return isLiteralNameOfPropertyDeclarationOrIndexAccess(node) && node.text.length === searchSymbolName.length; @@ -172652,7 +168947,7 @@ var Core; return; } if (isExportSpecifier(parent2)) { - Debug.assert(referenceLocation.kind === 80 /* Identifier */ || referenceLocation.kind === 11 /* StringLiteral */); + Debug.assert(referenceLocation.kind === 80 /* Identifier */); getReferencesAtExportSpecifier(referenceLocation, referenceSymbol, parent2, search, state, addReferencesHere); return; } @@ -172702,7 +168997,7 @@ var Core; return; } if (!propertyName) { - if (!(state.options.use === 2 /* Rename */ && moduleExportNameIsDefault(name))) { + if (!(state.options.use === 2 /* Rename */ && name.escapedText === "default" /* Default */)) { addRef(); } } else if (referenceLocation === propertyName) { @@ -172718,7 +169013,7 @@ var Core; } } if (!isForRenameWithPrefixAndSuffixText(state.options) || alwaysGetReferences) { - const isDefaultExport = moduleExportNameIsDefault(referenceLocation) || moduleExportNameIsDefault(exportSpecifier.name); + const isDefaultExport = referenceLocation.escapedText === "default" || exportSpecifier.name.escapedText === "default"; const exportKind = isDefaultExport ? 1 /* Default */ : 0 /* Named */; const exportSymbol = Debug.checkDefined(exportSpecifier.symbol); const exportInfo = getExportInfo(exportSymbol, exportKind, state.checker); @@ -172904,7 +169199,7 @@ var Core; } else { addIfImplementation(body); } - } else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) { + } else if (isAssertionExpression(typeHavingNode)) { addIfImplementation(typeHavingNode.expression); } } @@ -173006,7 +169301,6 @@ var Core; searchSpaceNode = searchSpaceNode.parent; break; } - // falls through case 172 /* PropertyDeclaration */: case 171 /* PropertySignature */: case 176 /* Constructor */: @@ -173019,12 +169313,9 @@ var Core; if (isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) { return void 0; } - // falls through case 262 /* FunctionDeclaration */: case 218 /* FunctionExpression */: break; - // Computed properties in classes are not handled here because references to this are illegal, - // so there is no point finding references to them. default: return void 0; } @@ -173225,10 +169516,10 @@ var Core; } } function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) { - const seen = /* @__PURE__ */ new Set(); + const seen = /* @__PURE__ */ new Map(); return recur(symbol); function recur(symbol2) { - if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, symbol2)) return; + if (!(symbol2.flags & (32 /* Class */ | 64 /* Interface */)) || !addToSeen(seen, getSymbolId(symbol2))) return; return firstDefined(symbol2.declarations, (declaration) => firstDefined(getAllSuperTypeNodes(declaration), (typeReference) => { const type = checker.getTypeAtLocation(typeReference); const propertySymbol = type && type.symbol && checker.getPropertyOfType(type, propertyName); @@ -173322,6 +169613,7 @@ var Core; var ts_GoToDefinition_exports = {}; __export(ts_GoToDefinition_exports, { createDefinitionInfo: () => createDefinitionInfo, + findReferenceInPosition: () => findReferenceInPosition, getDefinitionAndBoundSpan: () => getDefinitionAndBoundSpan, getDefinitionAtPosition: () => getDefinitionAtPosition, getReferenceAtPosition: () => getReferenceAtPosition, @@ -173343,10 +169635,7 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles const { parent: parent2 } = node; const typeChecker = program.getTypeChecker(); if (node.kind === 164 /* OverrideKeyword */ || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) { - const def = getDefinitionFromOverriddenMember(typeChecker, node); - if (def !== void 0 || node.kind !== 164 /* OverrideKeyword */) { - return def || emptyArray; - } + return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray; } if (isJumpStatementTarget(node)) { const label = getTargetLabel(node.parent, node.text); @@ -173360,11 +169649,13 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles )] : void 0; } switch (node.kind) { + case 107 /* ReturnKeyword */: + const functionDeclaration = findAncestor(node.parent, (n) => isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n)); + return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0; case 90 /* DefaultKeyword */: if (!isDefaultClause(node.parent)) { break; } - // falls through case 84 /* CaseKeyword */: const switchStatement = findAncestor(node.parent, isSwitchStatement); if (switchStatement) { @@ -173372,14 +169663,15 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles } break; } - let findFunctionDecl; - switch (node.kind) { - case 107 /* ReturnKeyword */: - case 135 /* AwaitKeyword */: - case 127 /* YieldKeyword */: - findFunctionDecl = isFunctionLikeDeclaration; - const functionDeclaration = findAncestor(node, findFunctionDecl); - return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0; + if (node.kind === 135 /* AwaitKeyword */) { + const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n)); + const isAsyncFunction2 = functionDeclaration && some(functionDeclaration.modifiers, (node2) => node2.kind === 134 /* AsyncKeyword */); + return isAsyncFunction2 ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0; + } + if (node.kind === 127 /* YieldKeyword */) { + const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n)); + const isGeneratorFunction = functionDeclaration && functionDeclaration.asteriskToken; + return isGeneratorFunction ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0; } if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) { const classDecl = node.parent.parent; @@ -173429,9 +169721,6 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles }]; } } - if (isModifier(node) && (isClassElement(parent2) || isNamedDeclaration(parent2))) { - symbol = parent2.symbol; - } if (!symbol) { return concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker)); } @@ -173439,13 +169728,12 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles const calledDeclaration = tryGetSignatureDeclaration(typeChecker, node); if (calledDeclaration && !(isJsxOpeningLikeElement(node.parent) && isJsxConstructorLike(calledDeclaration))) { const sigInfo = createDefinitionFromSignatureDeclaration(typeChecker, calledDeclaration, failedAliasResolution); - let declarationFilter = (d) => d !== calledDeclaration; if (typeChecker.getRootSymbols(symbol).some((s) => symbolMatchesSignature(s, calledDeclaration))) { - if (!isConstructorDeclaration(calledDeclaration)) return [sigInfo]; - declarationFilter = (d) => d !== calledDeclaration && (isClassDeclaration(d) || isClassExpression(d)); + return [sigInfo]; + } else { + const defs = getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, calledDeclaration) || emptyArray; + return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo]; } - const defs = getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, declarationFilter) || emptyArray; - return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo]; } if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) { const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration); @@ -173628,16 +169916,12 @@ function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) { false ); } - let { symbol, failedAliasResolution } = getSymbol( + const { symbol, failedAliasResolution } = getSymbol( node, typeChecker, /*stopAtAlias*/ false ); - if (isModifier(node) && (isClassElement(node.parent) || isNamedDeclaration(node.parent))) { - symbol = node.parent.symbol; - failedAliasResolution = false; - } if (!symbol) return void 0; const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node); const returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker); @@ -173686,7 +169970,7 @@ function getSymbol(node, checker, stopAtAlias) { return { symbol, failedAliasResolution }; } function shouldSkipAlias(node, declaration) { - if (node.kind !== 80 /* Identifier */ && (node.kind !== 11 /* StringLiteral */ || !isImportOrExportSpecifier(node.parent))) { + if (node.kind !== 80 /* Identifier */) { return false; } if (node.parent === declaration) { @@ -173706,9 +169990,9 @@ function isExpandoDeclaration(node) { }); return !!containingAssignment && getAssignmentDeclarationKind(containingAssignment) === 5 /* Property */; } -function getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, declarationFilter) { - const filteredDeclarations = declarationFilter !== void 0 ? filter(symbol.declarations, declarationFilter) : symbol.declarations; - const signatureDefinition = !declarationFilter && (getConstructSignatureDefinition() || getCallSignatureDefinition()); +function getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, excludeDeclaration) { + const filteredDeclarations = filter(symbol.declarations, (d) => d !== excludeDeclaration); + const signatureDefinition = getConstructSignatureDefinition() || getCallSignatureDefinition(); if (signatureDefinition) { return signatureDefinition; } @@ -173815,8 +170099,6 @@ function isDefinitionVisible(checker, declaration) { case 178 /* SetAccessor */: case 174 /* MethodDeclaration */: if (hasEffectiveModifier(declaration, 2 /* Private */)) return false; - // Public properties/methods are visible if its parents are visible, so: - // falls through case 176 /* Constructor */: case 303 /* PropertyAssignment */: case 304 /* ShorthandPropertyAssignment */: @@ -174020,8 +170302,11 @@ function provideInlayHints(context) { if (!args || !args.length) { return; } - const signature = checker.getResolvedSignature(expr); - if (signature === void 0) return; + const candidates = []; + const signature = checker.getResolvedSignatureForSignatureHelp(expr, candidates); + if (!signature || !candidates.length) { + return; + } let signatureParamPos = 0; for (const originalArg of args) { const arg = skipParentheses(originalArg); @@ -174113,14 +170398,6 @@ function provideInlayHints(context) { if (!signature) { return; } - const typePredicate = checker.getTypePredicateOfSignature(signature); - if (typePredicate == null ? void 0 : typePredicate.type) { - const hintParts2 = typePredicateToInlayHintParts(typePredicate); - if (hintParts2) { - addTypeHints(hintParts2, getTypeAnnotationPosition(decl)); - return; - } - } const returnType = checker.getReturnTypeOfSignature(signature); if (isModuleReferenceType(returnType)) { return; @@ -174142,24 +170419,22 @@ function provideInlayHints(context) { if (!signature) { return; } - let pos = 0; - for (const param of node.parameters) { - if (isHintableDeclaration(param)) { - addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]); + for (let i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) { + const param = node.parameters[i]; + if (!isHintableDeclaration(param)) { + continue; } - if (parameterIsThisKeyword(param)) { + const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param); + if (effectiveTypeAnnotation) { continue; } - pos++; + const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]); + if (!typeHints) { + continue; + } + addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end); } } - function addParameterTypeHint(node, symbol) { - const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node); - if (effectiveTypeAnnotation || symbol === void 0) return; - const typeHints = getParameterDeclarationTypeHints(symbol); - if (typeHints === void 0) return; - addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end); - } function getParameterDeclarationTypeHints(symbol) { const valueDeclaration = symbol.valueDeclaration; if (!valueDeclaration || !isParameter(valueDeclaration)) { @@ -174191,26 +170466,6 @@ function provideInlayHints(context) { ); }); } - function printTypePredicateInSingleLine(typePredicate) { - const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; - const printer = createPrinterWithRemoveComments(); - return usingSingleLineStringWriter((writer) => { - const typePredicateNode = checker.typePredicateToTypePredicateNode( - typePredicate, - /*enclosingDeclaration*/ - void 0, - flags - ); - Debug.assertIsDefined(typePredicateNode, "should always get typePredicateNode"); - printer.writeNode( - 4 /* Unspecified */, - typePredicateNode, - /*sourceFile*/ - file, - writer - ); - }); - } function typeToInlayHintParts(type) { if (!shouldUseInteractiveInlayHints(preferences)) { return printTypeInSingleLine(type); @@ -174222,46 +170477,29 @@ function provideInlayHints(context) { void 0, flags ); - Debug.assertIsDefined(typeNode, "should always get typeNode"); - return getInlayHintDisplayParts(typeNode); - } - function typePredicateToInlayHintParts(typePredicate) { - if (!shouldUseInteractiveInlayHints(preferences)) { - return printTypePredicateInSingleLine(typePredicate); - } - const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; - const typeNode = checker.typePredicateToTypePredicateNode( - typePredicate, - /*enclosingDeclaration*/ - void 0, - flags - ); Debug.assertIsDefined(typeNode, "should always get typenode"); - return getInlayHintDisplayParts(typeNode); - } - function getInlayHintDisplayParts(node) { const parts = []; - visitForDisplayParts(node); + visitForDisplayParts(typeNode); return parts; - function visitForDisplayParts(node2) { + function visitForDisplayParts(node) { var _a, _b; - if (!node2) { + if (!node) { return; } - const tokenString = tokenToString(node2.kind); + const tokenString = tokenToString(node.kind); if (tokenString) { parts.push({ text: tokenString }); return; } - if (isLiteralExpression(node2)) { - parts.push({ text: getLiteralText2(node2) }); + if (isLiteralExpression(node)) { + parts.push({ text: getLiteralText2(node) }); return; } - switch (node2.kind) { + switch (node.kind) { case 80 /* Identifier */: - Debug.assertNode(node2, isIdentifier); - const identifierText = idText(node2); - const name = node2.symbol && node2.symbol.declarations && node2.symbol.declarations.length && getNameOfDeclaration(node2.symbol.declarations[0]); + Debug.assertNode(node, isIdentifier); + const identifierText = idText(node); + const name = node.symbol && node.symbol.declarations && node.symbol.declarations.length && getNameOfDeclaration(node.symbol.declarations[0]); if (name) { parts.push(getNodeDisplayPart(identifierText, name)); } else { @@ -174269,331 +170507,331 @@ function provideInlayHints(context) { } break; case 166 /* QualifiedName */: - Debug.assertNode(node2, isQualifiedName); - visitForDisplayParts(node2.left); + Debug.assertNode(node, isQualifiedName); + visitForDisplayParts(node.left); parts.push({ text: "." }); - visitForDisplayParts(node2.right); + visitForDisplayParts(node.right); break; case 182 /* TypePredicate */: - Debug.assertNode(node2, isTypePredicateNode); - if (node2.assertsModifier) { + Debug.assertNode(node, isTypePredicateNode); + if (node.assertsModifier) { parts.push({ text: "asserts " }); } - visitForDisplayParts(node2.parameterName); - if (node2.type) { + visitForDisplayParts(node.parameterName); + if (node.type) { parts.push({ text: " is " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 183 /* TypeReference */: - Debug.assertNode(node2, isTypeReferenceNode); - visitForDisplayParts(node2.typeName); - if (node2.typeArguments) { + Debug.assertNode(node, isTypeReferenceNode); + visitForDisplayParts(node.typeName); + if (node.typeArguments) { parts.push({ text: "<" }); - visitDisplayPartList(node2.typeArguments, ", "); + visitDisplayPartList(node.typeArguments, ", "); parts.push({ text: ">" }); } break; case 168 /* TypeParameter */: - Debug.assertNode(node2, isTypeParameterDeclaration); - if (node2.modifiers) { - visitDisplayPartList(node2.modifiers, " "); + Debug.assertNode(node, isTypeParameterDeclaration); + if (node.modifiers) { + visitDisplayPartList(node.modifiers, " "); } - visitForDisplayParts(node2.name); - if (node2.constraint) { + visitForDisplayParts(node.name); + if (node.constraint) { parts.push({ text: " extends " }); - visitForDisplayParts(node2.constraint); + visitForDisplayParts(node.constraint); } - if (node2.default) { + if (node.default) { parts.push({ text: " = " }); - visitForDisplayParts(node2.default); + visitForDisplayParts(node.default); } break; case 169 /* Parameter */: - Debug.assertNode(node2, isParameter); - if (node2.modifiers) { - visitDisplayPartList(node2.modifiers, " "); + Debug.assertNode(node, isParameter); + if (node.modifiers) { + visitDisplayPartList(node.modifiers, " "); } - if (node2.dotDotDotToken) { + if (node.dotDotDotToken) { parts.push({ text: "..." }); } - visitForDisplayParts(node2.name); - if (node2.questionToken) { + visitForDisplayParts(node.name); + if (node.questionToken) { parts.push({ text: "?" }); } - if (node2.type) { + if (node.type) { parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 185 /* ConstructorType */: - Debug.assertNode(node2, isConstructorTypeNode); + Debug.assertNode(node, isConstructorTypeNode); parts.push({ text: "new " }); - visitParametersAndTypeParameters(node2); + visitParametersAndTypeParameters(node); parts.push({ text: " => " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); break; case 186 /* TypeQuery */: - Debug.assertNode(node2, isTypeQueryNode); + Debug.assertNode(node, isTypeQueryNode); parts.push({ text: "typeof " }); - visitForDisplayParts(node2.exprName); - if (node2.typeArguments) { + visitForDisplayParts(node.exprName); + if (node.typeArguments) { parts.push({ text: "<" }); - visitDisplayPartList(node2.typeArguments, ", "); + visitDisplayPartList(node.typeArguments, ", "); parts.push({ text: ">" }); } break; case 187 /* TypeLiteral */: - Debug.assertNode(node2, isTypeLiteralNode); + Debug.assertNode(node, isTypeLiteralNode); parts.push({ text: "{" }); - if (node2.members.length) { + if (node.members.length) { parts.push({ text: " " }); - visitDisplayPartList(node2.members, "; "); + visitDisplayPartList(node.members, "; "); parts.push({ text: " " }); } parts.push({ text: "}" }); break; case 188 /* ArrayType */: - Debug.assertNode(node2, isArrayTypeNode); - visitForDisplayParts(node2.elementType); + Debug.assertNode(node, isArrayTypeNode); + visitForDisplayParts(node.elementType); parts.push({ text: "[]" }); break; case 189 /* TupleType */: - Debug.assertNode(node2, isTupleTypeNode); + Debug.assertNode(node, isTupleTypeNode); parts.push({ text: "[" }); - visitDisplayPartList(node2.elements, ", "); + visitDisplayPartList(node.elements, ", "); parts.push({ text: "]" }); break; case 202 /* NamedTupleMember */: - Debug.assertNode(node2, isNamedTupleMember); - if (node2.dotDotDotToken) { + Debug.assertNode(node, isNamedTupleMember); + if (node.dotDotDotToken) { parts.push({ text: "..." }); } - visitForDisplayParts(node2.name); - if (node2.questionToken) { + visitForDisplayParts(node.name); + if (node.questionToken) { parts.push({ text: "?" }); } parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); break; case 190 /* OptionalType */: - Debug.assertNode(node2, isOptionalTypeNode); - visitForDisplayParts(node2.type); + Debug.assertNode(node, isOptionalTypeNode); + visitForDisplayParts(node.type); parts.push({ text: "?" }); break; case 191 /* RestType */: - Debug.assertNode(node2, isRestTypeNode); + Debug.assertNode(node, isRestTypeNode); parts.push({ text: "..." }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); break; case 192 /* UnionType */: - Debug.assertNode(node2, isUnionTypeNode); - visitDisplayPartList(node2.types, " | "); + Debug.assertNode(node, isUnionTypeNode); + visitDisplayPartList(node.types, " | "); break; case 193 /* IntersectionType */: - Debug.assertNode(node2, isIntersectionTypeNode); - visitDisplayPartList(node2.types, " & "); + Debug.assertNode(node, isIntersectionTypeNode); + visitDisplayPartList(node.types, " & "); break; case 194 /* ConditionalType */: - Debug.assertNode(node2, isConditionalTypeNode); - visitForDisplayParts(node2.checkType); + Debug.assertNode(node, isConditionalTypeNode); + visitForDisplayParts(node.checkType); parts.push({ text: " extends " }); - visitForDisplayParts(node2.extendsType); + visitForDisplayParts(node.extendsType); parts.push({ text: " ? " }); - visitForDisplayParts(node2.trueType); + visitForDisplayParts(node.trueType); parts.push({ text: " : " }); - visitForDisplayParts(node2.falseType); + visitForDisplayParts(node.falseType); break; case 195 /* InferType */: - Debug.assertNode(node2, isInferTypeNode); + Debug.assertNode(node, isInferTypeNode); parts.push({ text: "infer " }); - visitForDisplayParts(node2.typeParameter); + visitForDisplayParts(node.typeParameter); break; case 196 /* ParenthesizedType */: - Debug.assertNode(node2, isParenthesizedTypeNode); + Debug.assertNode(node, isParenthesizedTypeNode); parts.push({ text: "(" }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); parts.push({ text: ")" }); break; case 198 /* TypeOperator */: - Debug.assertNode(node2, isTypeOperatorNode); - parts.push({ text: `${tokenToString(node2.operator)} ` }); - visitForDisplayParts(node2.type); + Debug.assertNode(node, isTypeOperatorNode); + parts.push({ text: `${tokenToString(node.operator)} ` }); + visitForDisplayParts(node.type); break; case 199 /* IndexedAccessType */: - Debug.assertNode(node2, isIndexedAccessTypeNode); - visitForDisplayParts(node2.objectType); + Debug.assertNode(node, isIndexedAccessTypeNode); + visitForDisplayParts(node.objectType); parts.push({ text: "[" }); - visitForDisplayParts(node2.indexType); + visitForDisplayParts(node.indexType); parts.push({ text: "]" }); break; case 200 /* MappedType */: - Debug.assertNode(node2, isMappedTypeNode); + Debug.assertNode(node, isMappedTypeNode); parts.push({ text: "{ " }); - if (node2.readonlyToken) { - if (node2.readonlyToken.kind === 40 /* PlusToken */) { + if (node.readonlyToken) { + if (node.readonlyToken.kind === 40 /* PlusToken */) { parts.push({ text: "+" }); - } else if (node2.readonlyToken.kind === 41 /* MinusToken */) { + } else if (node.readonlyToken.kind === 41 /* MinusToken */) { parts.push({ text: "-" }); } parts.push({ text: "readonly " }); } parts.push({ text: "[" }); - visitForDisplayParts(node2.typeParameter); - if (node2.nameType) { + visitForDisplayParts(node.typeParameter); + if (node.nameType) { parts.push({ text: " as " }); - visitForDisplayParts(node2.nameType); + visitForDisplayParts(node.nameType); } parts.push({ text: "]" }); - if (node2.questionToken) { - if (node2.questionToken.kind === 40 /* PlusToken */) { + if (node.questionToken) { + if (node.questionToken.kind === 40 /* PlusToken */) { parts.push({ text: "+" }); - } else if (node2.questionToken.kind === 41 /* MinusToken */) { + } else if (node.questionToken.kind === 41 /* MinusToken */) { parts.push({ text: "-" }); } parts.push({ text: "?" }); } parts.push({ text: ": " }); - if (node2.type) { - visitForDisplayParts(node2.type); + if (node.type) { + visitForDisplayParts(node.type); } parts.push({ text: "; }" }); break; case 201 /* LiteralType */: - Debug.assertNode(node2, isLiteralTypeNode); - visitForDisplayParts(node2.literal); + Debug.assertNode(node, isLiteralTypeNode); + visitForDisplayParts(node.literal); break; case 184 /* FunctionType */: - Debug.assertNode(node2, isFunctionTypeNode); - visitParametersAndTypeParameters(node2); + Debug.assertNode(node, isFunctionTypeNode); + visitParametersAndTypeParameters(node); parts.push({ text: " => " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); break; case 205 /* ImportType */: - Debug.assertNode(node2, isImportTypeNode); - if (node2.isTypeOf) { + Debug.assertNode(node, isImportTypeNode); + if (node.isTypeOf) { parts.push({ text: "typeof " }); } parts.push({ text: "import(" }); - visitForDisplayParts(node2.argument); - if (node2.assertions) { + visitForDisplayParts(node.argument); + if (node.assertions) { parts.push({ text: ", { assert: " }); - visitDisplayPartList(node2.assertions.assertClause.elements, ", "); + visitDisplayPartList(node.assertions.assertClause.elements, ", "); parts.push({ text: " }" }); } parts.push({ text: ")" }); - if (node2.qualifier) { + if (node.qualifier) { parts.push({ text: "." }); - visitForDisplayParts(node2.qualifier); + visitForDisplayParts(node.qualifier); } - if (node2.typeArguments) { + if (node.typeArguments) { parts.push({ text: "<" }); - visitDisplayPartList(node2.typeArguments, ", "); + visitDisplayPartList(node.typeArguments, ", "); parts.push({ text: ">" }); } break; case 171 /* PropertySignature */: - Debug.assertNode(node2, isPropertySignature); - if ((_a = node2.modifiers) == null ? void 0 : _a.length) { - visitDisplayPartList(node2.modifiers, " "); + Debug.assertNode(node, isPropertySignature); + if ((_a = node.modifiers) == null ? void 0 : _a.length) { + visitDisplayPartList(node.modifiers, " "); parts.push({ text: " " }); } - visitForDisplayParts(node2.name); - if (node2.questionToken) { + visitForDisplayParts(node.name); + if (node.questionToken) { parts.push({ text: "?" }); } - if (node2.type) { + if (node.type) { parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 181 /* IndexSignature */: - Debug.assertNode(node2, isIndexSignatureDeclaration); + Debug.assertNode(node, isIndexSignatureDeclaration); parts.push({ text: "[" }); - visitDisplayPartList(node2.parameters, ", "); + visitDisplayPartList(node.parameters, ", "); parts.push({ text: "]" }); - if (node2.type) { + if (node.type) { parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 173 /* MethodSignature */: - Debug.assertNode(node2, isMethodSignature); - if ((_b = node2.modifiers) == null ? void 0 : _b.length) { - visitDisplayPartList(node2.modifiers, " "); + Debug.assertNode(node, isMethodSignature); + if ((_b = node.modifiers) == null ? void 0 : _b.length) { + visitDisplayPartList(node.modifiers, " "); parts.push({ text: " " }); } - visitForDisplayParts(node2.name); - if (node2.questionToken) { + visitForDisplayParts(node.name); + if (node.questionToken) { parts.push({ text: "?" }); } - visitParametersAndTypeParameters(node2); - if (node2.type) { + visitParametersAndTypeParameters(node); + if (node.type) { parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 179 /* CallSignature */: - Debug.assertNode(node2, isCallSignatureDeclaration); - visitParametersAndTypeParameters(node2); - if (node2.type) { + Debug.assertNode(node, isCallSignatureDeclaration); + visitParametersAndTypeParameters(node); + if (node.type) { parts.push({ text: ": " }); - visitForDisplayParts(node2.type); + visitForDisplayParts(node.type); } break; case 207 /* ArrayBindingPattern */: - Debug.assertNode(node2, isArrayBindingPattern); + Debug.assertNode(node, isArrayBindingPattern); parts.push({ text: "[" }); - visitDisplayPartList(node2.elements, ", "); + visitDisplayPartList(node.elements, ", "); parts.push({ text: "]" }); break; case 206 /* ObjectBindingPattern */: - Debug.assertNode(node2, isObjectBindingPattern); + Debug.assertNode(node, isObjectBindingPattern); parts.push({ text: "{" }); - if (node2.elements.length) { + if (node.elements.length) { parts.push({ text: " " }); - visitDisplayPartList(node2.elements, ", "); + visitDisplayPartList(node.elements, ", "); parts.push({ text: " " }); } parts.push({ text: "}" }); break; case 208 /* BindingElement */: - Debug.assertNode(node2, isBindingElement); - visitForDisplayParts(node2.name); + Debug.assertNode(node, isBindingElement); + visitForDisplayParts(node.name); break; case 224 /* PrefixUnaryExpression */: - Debug.assertNode(node2, isPrefixUnaryExpression); - parts.push({ text: tokenToString(node2.operator) }); - visitForDisplayParts(node2.operand); + Debug.assertNode(node, isPrefixUnaryExpression); + parts.push({ text: tokenToString(node.operator) }); + visitForDisplayParts(node.operand); break; case 203 /* TemplateLiteralType */: - Debug.assertNode(node2, isTemplateLiteralTypeNode); - visitForDisplayParts(node2.head); - node2.templateSpans.forEach(visitForDisplayParts); + Debug.assertNode(node, isTemplateLiteralTypeNode); + visitForDisplayParts(node.head); + node.templateSpans.forEach(visitForDisplayParts); break; case 16 /* TemplateHead */: - Debug.assertNode(node2, isTemplateHead); - parts.push({ text: getLiteralText2(node2) }); + Debug.assertNode(node, isTemplateHead); + parts.push({ text: getLiteralText2(node) }); break; case 204 /* TemplateLiteralTypeSpan */: - Debug.assertNode(node2, isTemplateLiteralTypeSpan); - visitForDisplayParts(node2.type); - visitForDisplayParts(node2.literal); + Debug.assertNode(node, isTemplateLiteralTypeSpan); + visitForDisplayParts(node.type); + visitForDisplayParts(node.literal); break; case 17 /* TemplateMiddle */: - Debug.assertNode(node2, isTemplateMiddle); - parts.push({ text: getLiteralText2(node2) }); + Debug.assertNode(node, isTemplateMiddle); + parts.push({ text: getLiteralText2(node) }); break; case 18 /* TemplateTail */: - Debug.assertNode(node2, isTemplateTail); - parts.push({ text: getLiteralText2(node2) }); + Debug.assertNode(node, isTemplateTail); + parts.push({ text: getLiteralText2(node) }); break; case 197 /* ThisType */: - Debug.assertNode(node2, isThisTypeNode); + Debug.assertNode(node, isThisTypeNode); parts.push({ text: "this" }); break; default: - Debug.failBadSyntaxKind(node2); + Debug.failBadSyntaxKind(node); } } function visitParametersAndTypeParameters(signatureDeclaration) { @@ -174607,22 +170845,22 @@ function provideInlayHints(context) { parts.push({ text: ")" }); } function visitDisplayPartList(nodes, separator) { - nodes.forEach((node2, index) => { + nodes.forEach((node, index) => { if (index > 0) { parts.push({ text: separator }); } - visitForDisplayParts(node2); + visitForDisplayParts(node); }); } - function getLiteralText2(node2) { - switch (node2.kind) { + function getLiteralText2(node) { + switch (node.kind) { case 11 /* StringLiteral */: - return quotePreference === 0 /* Single */ ? `'${escapeString(node2.text, 39 /* singleQuote */)}'` : `"${escapeString(node2.text, 34 /* doubleQuote */)}"`; + return quotePreference === 0 /* Single */ ? `'${escapeString(node.text, 39 /* singleQuote */)}'` : `"${escapeString(node.text, 34 /* doubleQuote */)}"`; case 16 /* TemplateHead */: case 17 /* TemplateMiddle */: case 18 /* TemplateTail */: { - const rawText = node2.rawText ?? escapeTemplateSubstitution(escapeString(node2.text, 96 /* backtick */)); - switch (node2.kind) { + const rawText = node.rawText ?? escapeTemplateSubstitution(escapeString(node.text, 96 /* backtick */)); + switch (node.kind) { case 16 /* TemplateHead */: return "`" + rawText + "${"; case 17 /* TemplateMiddle */: @@ -174632,7 +170870,7 @@ function provideInlayHints(context) { } } } - return node2.text; + return node.text; } } function isUndefined(name) { @@ -174778,7 +171016,7 @@ function getJsDocCommentsFromDeclarations(declarations, checker) { return flatten(intersperse(parts, [lineBreakPart()])); } function isIdenticalListOfDisplayParts(parts1, parts2) { - return arrayIsEqualTo(parts1, parts2, (p1, p2) => p1.kind === p2.kind && p1.text === p2.text); + return arraysEqual(parts1, parts2, (p1, p2) => p1.kind === p2.kind && p1.text === p2.text); } function getCommentHavingNodes(declaration) { switch (declaration.kind) { @@ -174792,7 +171030,6 @@ function getCommentHavingNodes(declaration) { if (isJSDocOverloadTag(declaration.parent)) { return [declaration.parent.parent]; } - // falls through default: return getJSDocCommentsAndTags(declaration); } @@ -175142,10 +171379,9 @@ ${content} parsedNodes.push({ sourceFile: sourceFile2, body: bod }); } } - parsedNodes.sort( + const { body } = parsedNodes.sort( (a, b) => a.sourceFile.parseDiagnostics.length - b.sourceFile.parseDiagnostics.length - ); - const { body } = parsedNodes[0]; + )[0]; return body; } function placeNodeGroup(originalFile, changeTracker, changes, focusLocations) { @@ -175294,6 +171530,7 @@ var ts_OrganizeImports_exports = {}; __export(ts_OrganizeImports_exports, { compareImportsOrRequireStatements: () => compareImportsOrRequireStatements, compareModuleSpecifiers: () => compareModuleSpecifiers2, + getDetectionLists: () => getDetectionLists, getImportDeclarationInsertionIndex: () => getImportDeclarationInsertionIndex, getImportSpecifierInsertionIndex: () => getImportSpecifierInsertionIndex, getNamedImportSpecifierComparerWithDetection: () => getNamedImportSpecifierComparerWithDetection, @@ -175349,7 +171586,7 @@ function organizeImports(sourceFile, formatContext, host, program, preferences, } setEmitFlags(oldImportDecls[0], 1024 /* NoLeadingComments */); const oldImportGroups = shouldCombine ? group(oldImportDecls, (importDecl) => getExternalModuleName2(importDecl.moduleSpecifier)) : [oldImportDecls]; - const sortedImportGroups = shouldSort ? toSorted(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer.moduleSpecifierComparer ?? defaultComparer)) : oldImportGroups; + const sortedImportGroups = shouldSort ? stableSort(oldImportGroups, (group1, group2) => compareModuleSpecifiersWorker(group1[0].moduleSpecifier, group2[0].moduleSpecifier, comparer.moduleSpecifierComparer ?? defaultComparer)) : oldImportGroups; const newImportDecls = flatMap(sortedImportGroups, (importGroup) => getExternalModuleName2(importGroup[0].moduleSpecifier) || importGroup[0].moduleSpecifier === void 0 ? coalesce(importGroup) : importGroup); if (newImportDecls.length === 0) { changeTracker.deleteNodes( @@ -175384,7 +171621,7 @@ function organizeImports(sourceFile, formatContext, host, program, preferences, const processImportsOfSameModuleSpecifier = (importGroup) => { if (shouldRemove) importGroup = removeUnusedImports(importGroup, sourceFile, program); if (shouldCombine) importGroup = coalesceImportsWorker(importGroup, detectedModuleCaseComparer, specifierComparer, sourceFile); - if (shouldSort) importGroup = toSorted(importGroup, (s1, s2) => compareImportsOrRequireStatements(s1, s2, detectedModuleCaseComparer)); + if (shouldSort) importGroup = stableSort(importGroup, (s1, s2) => compareImportsOrRequireStatements(s1, s2, detectedModuleCaseComparer)); return importGroup; }; organizeDeclsWorker(oldImportDecls, processImportsOfSameModuleSpecifier); @@ -175560,7 +171797,7 @@ function coalesceImportsWorker(importGroup, comparer, specifierComparer, sourceF const importGroupsByAttributes = groupBy(importGroup, (decl) => { if (decl.attributes) { let attrs = decl.attributes.token + " "; - for (const x of toSorted(decl.attributes.elements, (x2, y) => compareStringsCaseSensitive(x2.name.text, y.name.text))) { + for (const x of sort(decl.attributes.elements, (x2, y) => compareStringsCaseSensitive(x2.name.text, y.name.text))) { attrs += x.name.text + ":"; attrs += isStringLiteralLike(x.value) ? `"${x.value.text}"` : x.value.getText() + " "; } @@ -175585,7 +171822,7 @@ function coalesceImportsWorker(importGroup, comparer, specifierComparer, sourceF ); continue; } - const sortedNamespaceImports = toSorted(namespaceImports, (i1, i2) => comparer(i1.importClause.namedBindings.name.text, i2.importClause.namedBindings.name.text)); + const sortedNamespaceImports = stableSort(namespaceImports, (i1, i2) => comparer(i1.importClause.namedBindings.name.text, i2.importClause.namedBindings.name.text)); for (const namespaceImport of sortedNamespaceImports) { coalescedImports.push( updateImportDeclarationAndClause( @@ -175620,7 +171857,7 @@ function coalesceImportsWorker(importGroup, comparer, specifierComparer, sourceF } newImportSpecifiers.push(...getNewImportSpecifiers(namedImports)); const sortedImportSpecifiers = factory.createNodeArray( - toSorted(newImportSpecifiers, specifierComparer), + stableSort(newImportSpecifiers, specifierComparer), firstNamedImport == null ? void 0 : firstNamedImport.importClause.namedBindings.elements.hasTrailingComma ); const newNamedImports = sortedImportSpecifiers.length === 0 ? newDefaultImport ? void 0 : factory.createNamedImports(emptyArray) : firstNamedImport ? factory.updateNamedImports(firstNamedImport.importClause.namedBindings, sortedImportSpecifiers) : factory.createNamedImports(sortedImportSpecifiers); @@ -175668,7 +171905,7 @@ function coalesceExportsWorker(exportGroup, specifierComparer) { } const newExportSpecifiers = []; newExportSpecifiers.push(...flatMap(exportGroup2, (i) => i.exportClause && isNamedExports(i.exportClause) ? i.exportClause.elements : emptyArray)); - const sortedExportSpecifiers = toSorted(newExportSpecifiers, specifierComparer); + const sortedExportSpecifiers = stableSort(newExportSpecifiers, specifierComparer); const exportDecl = exportGroup2[0]; coalescedExports.push( factory.updateExportDeclaration( @@ -175746,7 +171983,7 @@ function hasModuleDeclarationMatchingSpecifier(sourceFile, moduleSpecifier) { return isString(moduleSpecifierText) && some(sourceFile.moduleAugmentations, (moduleName) => isStringLiteral(moduleName) && moduleName.text === moduleSpecifierText); } function getNewImportSpecifiers(namedImports) { - return flatMap(namedImports, (namedImport) => map(tryGetNamedBindingElements(namedImport), (importSpecifier) => importSpecifier.name && importSpecifier.propertyName && moduleExportNameTextEscaped(importSpecifier.name) === moduleExportNameTextEscaped(importSpecifier.propertyName) ? factory.updateImportSpecifier( + return flatMap(namedImports, (namedImport) => map(tryGetNamedBindingElements(namedImport), (importSpecifier) => importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText ? factory.updateImportSpecifier( importSpecifier, importSpecifier.isTypeOnly, /*propertyName*/ @@ -175956,8 +172193,7 @@ function collectElements(sourceFile, cancellationToken) { const res = []; addNodeOutliningSpans(sourceFile, cancellationToken, res); addRegionOutliningSpans(sourceFile, res); - res.sort((span1, span2) => span1.textSpan.start - span2.textSpan.start); - return res; + return res.sort((span1, span2) => span1.textSpan.start - span2.textSpan.start); } function addNodeOutliningSpans(sourceFile, cancellationToken, out) { let depthRemaining = 40; @@ -176023,11 +172259,11 @@ function addRegionOutliningSpans(sourceFile, out) { for (const currentLineStart of lineStarts) { const lineEnd = sourceFile.getLineEndOfPosition(currentLineStart); const lineText = sourceFile.text.substring(currentLineStart, lineEnd); - const result = parseRegionDelimiter(lineText); + const result = isRegionDelimiter(lineText); if (!result || isInComment(sourceFile, currentLineStart)) { continue; } - if (result.isStart) { + if (!result[1]) { const span = createTextSpanFromBounds(sourceFile.text.indexOf("//", currentLineStart), lineEnd); regions.push(createOutliningSpan( span, @@ -176035,7 +172271,7 @@ function addRegionOutliningSpans(sourceFile, out) { span, /*autoCollapse*/ false, - result.name || "#region" + result[2] || "#region" )); } else { const region = regions.pop(); @@ -176047,18 +172283,14 @@ function addRegionOutliningSpans(sourceFile, out) { } } } -var regionDelimiterRegExp = /^#(end)?region(.*)\r?$/; -function parseRegionDelimiter(lineText) { +var regionDelimiterRegExp = /^#(end)?region(?:\s+(.*))?(?:\r)?$/; +function isRegionDelimiter(lineText) { lineText = lineText.trimStart(); if (!startsWith(lineText, "//")) { return null; } lineText = lineText.slice(2).trim(); - const result = regionDelimiterRegExp.exec(lineText); - if (result) { - return { isStart: !result[1], name: result[2].trim() }; - } - return void 0; + return regionDelimiterRegExp.exec(lineText); } function addOutliningForLeadingCommentsForPos(pos, sourceFile, cancellationToken, out) { const comments = getLeadingCommentRanges(sourceFile.text, pos); @@ -176072,7 +172304,7 @@ function addOutliningForLeadingCommentsForPos(pos, sourceFile, cancellationToken switch (kind) { case 2 /* SingleLineCommentTrivia */: const commentText = sourceText.slice(pos2, end); - if (parseRegionDelimiter(commentText)) { + if (isRegionDelimiter(commentText)) { combineAndAddMultipleSingleLineComments(); singleLineCommentCount = 0; break; @@ -176130,7 +172362,6 @@ function getOutliningSpanForNode(n, sourceFile) { const node = findChildOfKind(tryStatement, 98 /* FinallyKeyword */, sourceFile); if (node) return spanForNode(node); } - // falls through default: return createOutliningSpan(createTextSpanFromNode(n, sourceFile), "code" /* Code */); } @@ -176605,6 +172836,9 @@ function getArgumentOrParameterListInfo(node, position, sourceFile, checker) { if (!info) return void 0; const { list, argumentIndex } = info; const argumentCount = getArgumentCount(checker, list); + if (argumentIndex !== 0) { + Debug.assertLessThan(argumentIndex, argumentCount); + } const argumentsSpan = getApplicableSpanForArguments(list, sourceFile); return { list, argumentIndex, argumentCount, argumentsSpan }; } @@ -176877,6 +173111,9 @@ function createSignatureHelpItems(candidates, resolvedSignature, { isTypeParamet void 0 ) : emptyArray; const items = map(candidates, (candidateSignature) => getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, typeChecker, enclosingDeclaration, sourceFile)); + if (argumentIndex !== 0) { + Debug.assertLessThan(argumentIndex, argumentCount); + } let selectedItemIndex = 0; let itemsSeen = 0; for (let i = 0; i < items.length; i++) { @@ -177881,7 +174118,6 @@ __export(ts_textChanges_exports, { assignPositionsToNode: () => assignPositionsToNode, createWriter: () => createWriter, deleteNode: () => deleteNode, - getAdjustedEndPosition: () => getAdjustedEndPosition, isThisTypeAnnotatable: () => isThisTypeAnnotatable, isValidLocationToAddComment: () => isValidLocationToAddComment }); @@ -178381,10 +174617,7 @@ var ChangeTracker = class _ChangeTracker { getInsertNodeAtStartInsertOptions(sourceFile, node, indentation) { const members = getMembersOrProperties(node); const isEmpty = members.length === 0; - const isFirstInsertion = !this.classesWithNodesInsertedAtStart.has(getNodeId(node)); - if (isFirstInsertion) { - this.classesWithNodesInsertedAtStart.set(getNodeId(node), { node, sourceFile }); - } + const isFirstInsertion = addToSeen(this.classesWithNodesInsertedAtStart, getNodeId(node), { node, sourceFile }); const insertTrailingComma = isObjectLiteralExpression(node) && (!isJsonSourceFile(sourceFile) || !isEmpty); const insertLeadingComma = isObjectLiteralExpression(node) && isJsonSourceFile(sourceFile) && isEmpty && !isFirstInsertion; return { @@ -178694,7 +174927,7 @@ var changesToText; function getTextChangesFromChanges(changes, newLineCharacter, formatContext, validate) { return mapDefined(group(changes, (c) => c.sourceFile.path), (changesInFile) => { const sourceFile = changesInFile[0].sourceFile; - const normalized = toSorted(changesInFile, (a, b) => a.range.pos - b.range.pos || a.range.end - b.range.end); + const normalized = stableSort(changesInFile, (a, b) => a.range.pos - b.range.pos || a.range.end - b.range.end); for (let i = 0; i < normalized.length - 1; i++) { Debug.assert(normalized[i].range.end <= normalized[i + 1].range.pos, "Changes overlap", () => `${JSON.stringify(normalized[i].range)} and ${JSON.stringify(normalized[i + 1].range)}`); } @@ -179960,34 +176193,19 @@ function isBinaryOpContext(context) { case 193 /* IntersectionType */: case 238 /* SatisfiesExpression */: return true; - // equals in binding elements: function foo([[x, y] = [1, 2]]) case 208 /* BindingElement */: - // equals in type X = ... - // falls through case 265 /* TypeAliasDeclaration */: - // equal in import a = module('a'); - // falls through case 271 /* ImportEqualsDeclaration */: - // equal in export = 1 - // falls through case 277 /* ExportAssignment */: - // equal in let a = 0 - // falls through case 260 /* VariableDeclaration */: - // equal in p = 0 - // falls through case 169 /* Parameter */: case 306 /* EnumMember */: case 172 /* PropertyDeclaration */: case 171 /* PropertySignature */: return context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - // "in" keyword in for (let x in []) { } case 249 /* ForInStatement */: - // "in" keyword in [P in keyof T]: T[P] - // falls through case 168 /* TypeParameter */: return context.currentTokenSpan.kind === 103 /* InKeyword */ || context.nextTokenSpan.kind === 103 /* InKeyword */ || context.currentTokenSpan.kind === 64 /* EqualsToken */ || context.nextTokenSpan.kind === 64 /* EqualsToken */; - // Technically, "of" is not a binary operator, but format it the same way as "in" case 250 /* ForOfStatement */: return context.currentTokenSpan.kind === 165 /* OfKeyword */ || context.nextTokenSpan.kind === 165 /* OfKeyword */; } @@ -180051,20 +176269,12 @@ function isFunctionDeclContext(context) { case 262 /* FunctionDeclaration */: case 174 /* MethodDeclaration */: case 173 /* MethodSignature */: - // case SyntaxKind.MemberFunctionDeclaration: - // falls through case 177 /* GetAccessor */: case 178 /* SetAccessor */: - // case SyntaxKind.MethodSignature: - // falls through case 179 /* CallSignature */: case 218 /* FunctionExpression */: case 176 /* Constructor */: case 219 /* ArrowFunction */: - // case SyntaxKind.ConstructorDeclaration: - // case SyntaxKind.SimpleArrowFunctionExpression: - // case SyntaxKind.ParenthesizedArrowFunctionExpression: - // falls through case 264 /* InterfaceDeclaration */: return true; } @@ -180124,9 +176334,6 @@ function isControlDeclContext(context) { case 258 /* TryStatement */: case 246 /* DoStatement */: case 254 /* WithStatement */: - // TODO - // case SyntaxKind.ElseClause: - // falls through case 299 /* CatchClause */: return true; default: @@ -180294,9 +176501,6 @@ function isSemicolonDeletionContext(context) { if (startLine === endLine) { return nextTokenKind === 20 /* CloseBraceToken */ || nextTokenKind === 1 /* EndOfFileToken */; } - if (nextTokenKind === 27 /* SemicolonToken */ && context.currentTokenSpan.kind === 27 /* SemicolonToken */) { - return true; - } if (nextTokenKind === 240 /* SemicolonClassElement */ || nextTokenKind === 27 /* SemicolonToken */) { return false; } @@ -180758,7 +176962,6 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt if (node.asteriskToken) { return 42 /* AsteriskToken */; } - // falls through case 172 /* PropertyDeclaration */: case 169 /* Parameter */: const name = getNameOfDeclaration(node); @@ -180771,10 +176974,6 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt return { getIndentationForComment: (kind, tokenIndentation, container) => { switch (kind) { - // preceding comment to the token that closes the indentation scope inherits the indentation from the scope - // .. { - // // comment - // } case 20 /* CloseBraceToken */: case 24 /* CloseBracketToken */: case 22 /* CloseParenToken */: @@ -180804,7 +177003,6 @@ function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delt }; function shouldAddDelta(line, kind, container) { switch (kind) { - // open and close brace, 'else' and 'while' (in do statement) tokens has indentation of the parent case 19 /* OpenBraceToken */: case 20 /* CloseBraceToken */: case 22 /* CloseParenToken */: @@ -181962,48 +178160,6 @@ var SmartIndenter; } })(SmartIndenter || (SmartIndenter = {})); -// src/services/_namespaces/ts.preparePasteEdits.ts -var ts_preparePasteEdits_exports = {}; -__export(ts_preparePasteEdits_exports, { - preparePasteEdits: () => preparePasteEdits -}); - -// src/services/preparePasteEdits.ts -function preparePasteEdits(sourceFile, copiedFromRange, checker) { - let shouldProvidePasteEdits = false; - copiedFromRange.forEach((range) => { - const enclosingNode = findAncestor( - getTokenAtPosition(sourceFile, range.pos), - (ancestorNode) => rangeContainsRange(ancestorNode, range) - ); - if (!enclosingNode) return; - forEachChild(enclosingNode, function checkNameResolution(node) { - var _a; - if (shouldProvidePasteEdits) return; - if (isIdentifier(node) && rangeContainsPosition(range, node.getStart(sourceFile))) { - const resolvedSymbol = checker.resolveName( - node.text, - node, - -1 /* All */, - /*excludeGlobals*/ - false - ); - if (resolvedSymbol && resolvedSymbol.declarations) { - for (const decl of resolvedSymbol.declarations) { - if (isInImport(decl) || !!(node.text && sourceFile.symbol && ((_a = sourceFile.symbol.exports) == null ? void 0 : _a.has(node.escapedText)))) { - shouldProvidePasteEdits = true; - return; - } - } - } - } - node.forEachChild(checkNameResolution); - }); - if (shouldProvidePasteEdits) return; - }); - return shouldProvidePasteEdits; -} - // src/services/_namespaces/ts.PasteEdits.ts var ts_PasteEdits_exports = {}; __export(ts_PasteEdits_exports, { @@ -182011,25 +178167,24 @@ __export(ts_PasteEdits_exports, { }); // src/services/pasteEdits.ts -var fixId55 = "providePostPasteEdits"; +var fixId54 = "providePostPasteEdits"; function pasteEditsProvider(targetFile, pastedText, pasteLocations, copiedFrom, host, preferences, formatContext, cancellationToken) { const changes = ts_textChanges_exports.ChangeTracker.with({ host, formatContext, preferences }, (changeTracker) => pasteEdits(targetFile, pastedText, pasteLocations, copiedFrom, host, preferences, formatContext, cancellationToken, changeTracker)); - return { edits: changes, fixId: fixId55 }; + return { edits: changes, fixId: fixId54 }; } function pasteEdits(targetFile, pastedText, pasteLocations, copiedFrom, host, preferences, formatContext, cancellationToken, changes) { let actualPastedText; if (pastedText.length !== pasteLocations.length) { - actualPastedText = pastedText.length === 1 ? pastedText[0] : pastedText.join(getNewLineOrDefaultFromHost(formatContext.host, formatContext.options)); + actualPastedText = pastedText.length === 1 ? pastedText : [pastedText.join("\n")]; } const statements = []; let newText = targetFile.text; for (let i = pasteLocations.length - 1; i >= 0; i--) { const { pos, end } = pasteLocations[i]; - newText = actualPastedText ? newText.slice(0, pos) + actualPastedText + newText.slice(end) : newText.slice(0, pos) + pastedText[i] + newText.slice(end); + newText = actualPastedText ? newText.slice(0, pos) + actualPastedText[0] + newText.slice(end) : newText.slice(0, pos) + pastedText[i] + newText.slice(end); } - let importAdder; Debug.checkDefined(host.runWithTemporaryFileUpdate).call(host, targetFile.fileName, newText, (updatedProgram, originalProgram, updatedFile) => { - importAdder = ts_codefix_exports.createImportAdder(updatedFile, updatedProgram, preferences, host); + const importAdder = ts_codefix_exports.createImportAdder(updatedFile, updatedProgram, preferences, host); if (copiedFrom == null ? void 0 : copiedFrom.range) { Debug.assert(copiedFrom.range.length === pastedText.length); copiedFrom.range.forEach((copy) => { @@ -182042,13 +178197,11 @@ function pasteEdits(targetFile, pastedText, pasteLocations, copiedFrom, host, pr } statements.push(...statementsInSourceFile.slice(startNodeIndex, endNodeIndex === -1 ? statementsInSourceFile.length : endNodeIndex + 1)); }); - Debug.assertIsDefined(originalProgram, "no original program found"); - const originalProgramTypeChecker = originalProgram.getTypeChecker(); - const usageInfoRange = getUsageInfoRangeForPasteEdits(copiedFrom); - const usage = getUsageInfo(copiedFrom.file, statements, originalProgramTypeChecker, getExistingLocals(updatedFile, statements, originalProgramTypeChecker), usageInfoRange); + const usage = getUsageInfo(copiedFrom.file, statements, originalProgram.getTypeChecker(), getExistingLocals(updatedFile, statements, originalProgram.getTypeChecker())); + Debug.assertIsDefined(originalProgram); const useEsModuleSyntax = !fileShouldUseJavaScriptRequire(targetFile.fileName, originalProgram, host, !!copiedFrom.file.commonJsModuleIndicator); addExportsInOldFile(copiedFrom.file, usage.targetFileImportsFromOldFile, changes, useEsModuleSyntax); - addTargetFileImports(copiedFrom.file, usage.oldImportsNeededByTargetFile, usage.targetFileImportsFromOldFile, originalProgramTypeChecker, updatedProgram, importAdder); + addTargetFileImports(copiedFrom.file, usage.oldImportsNeededByTargetFile, usage.targetFileImportsFromOldFile, originalProgram.getTypeChecker(), updatedProgram, importAdder); } else { const context = { sourceFile: updatedFile, @@ -182058,62 +178211,34 @@ function pasteEdits(targetFile, pastedText, pasteLocations, copiedFrom, host, pr preferences, formatContext }; - let offset = 0; - pasteLocations.forEach((location, i) => { - const oldTextLength = location.end - location.pos; - const textToBePasted = actualPastedText ?? pastedText[i]; - const startPos = location.pos + offset; - const endPos = startPos + textToBePasted.length; - const range = { pos: startPos, end: endPos }; - offset += textToBePasted.length - oldTextLength; - const enclosingNode = findAncestor( - getTokenAtPosition(context.sourceFile, range.pos), - (ancestorNode) => rangeContainsRange(ancestorNode, range) - ); - if (!enclosingNode) return; - forEachChild(enclosingNode, function importUnresolvedIdentifiers(node) { - const isImportCandidate = isIdentifier(node) && rangeContainsPosition(range, node.getStart(updatedFile)) && !(updatedProgram == null ? void 0 : updatedProgram.getTypeChecker().resolveName( - node.text, + forEachChild(updatedFile, function cb(node) { + if (isIdentifier(node) && !(originalProgram == null ? void 0 : originalProgram.getTypeChecker().resolveName( + node.text, + node, + -1 /* All */, + /*excludeGlobals*/ + false + ))) { + importAdder.addImportForUnresolvedIdentifier( + context, node, - -1 /* All */, - /*excludeGlobals*/ - false - )); - if (isImportCandidate) { - return importAdder.addImportForUnresolvedIdentifier( - context, - node, - /*useAutoImportProvider*/ - true - ); - } - node.forEachChild(importUnresolvedIdentifiers); - }); + /*useAutoImportProvider*/ + true + ); + } + node.forEachChild(cb); }); } importAdder.writeFixes(changes, getQuotePreference(copiedFrom ? copiedFrom.file : targetFile, preferences)); }); - if (!importAdder.hasFixes()) { - return; - } pasteLocations.forEach((paste, i) => { changes.replaceRangeWithText( targetFile, { pos: paste.pos, end: paste.end }, - actualPastedText ?? pastedText[i] + actualPastedText ? actualPastedText[0] : pastedText[i] ); }); } -function getUsageInfoRangeForPasteEdits({ file: sourceFile, range }) { - const pos = range[0].pos; - const end = range[range.length - 1].end; - const startToken = getTokenAtPosition(sourceFile, pos); - const endToken = findTokenOnLeftOfPosition(sourceFile, pos) ?? getTokenAtPosition(sourceFile, end); - return { - pos: isIdentifier(startToken) && pos <= startToken.getStart(sourceFile) ? startToken.getFullStart() : pos, - end: isIdentifier(endToken) && end === endToken.getEnd() ? ts_textChanges_exports.getAdjustedEndPosition(sourceFile, endToken, {}) : end - }; -} // src/server/_namespaces/ts.ts var ts_exports2 = {}; @@ -182168,6 +178293,7 @@ __export(ts_exports2, { GoToDefinition: () => ts_GoToDefinition_exports, HighlightSpanKind: () => HighlightSpanKind, IdentifierNameMap: () => IdentifierNameMap, + IdentifierNameMultiMap: () => IdentifierNameMultiMap, ImportKind: () => ImportKind, ImportsNotUsedAsValues: () => ImportsNotUsedAsValues, IndentStyle: () => IndentStyle, @@ -182178,7 +178304,6 @@ __export(ts_exports2, { InlayHintKind: () => InlayHintKind2, InlayHints: () => ts_InlayHints_exports, InternalEmitFlags: () => InternalEmitFlags, - InternalNodeBuilderFlags: () => InternalNodeBuilderFlags, InternalSymbolName: () => InternalSymbolName, IntersectionFlags: () => IntersectionFlags, InvalidatedProjectKind: () => InvalidatedProjectKind, @@ -182225,8 +178350,6 @@ __export(ts_exports2, { PollingInterval: () => PollingInterval, PollingWatchKind: () => PollingWatchKind, PragmaKindFlags: () => PragmaKindFlags, - PredicateSemantics: () => PredicateSemantics, - PreparePasteEdits: () => ts_preparePasteEdits_exports, PrivateIdentifierKind: () => PrivateIdentifierKind, ProcessLevel: () => ProcessLevel, ProgramUpdateLevel: () => ProgramUpdateLevel, @@ -182257,6 +178380,7 @@ __export(ts_exports2, { SymbolFlags: () => SymbolFlags, SymbolFormatFlags: () => SymbolFormatFlags, SyntaxKind: () => SyntaxKind, + SyntheticSymbolKind: () => SyntheticSymbolKind, Ternary: () => Ternary, ThrottledCancellationToken: () => ThrottledCancellationToken, TokenClass: () => TokenClass, @@ -182279,6 +178403,7 @@ __export(ts_exports2, { WatchLogLevel: () => WatchLogLevel, WatchType: () => WatchType, accessPrivateIdentifier: () => accessPrivateIdentifier, + addDisposableResourceHelper: () => addDisposableResourceHelper, addEmitFlags: () => addEmitFlags, addEmitHelper: () => addEmitHelper, addEmitHelpers: () => addEmitHelpers, @@ -182301,15 +178426,23 @@ __export(ts_exports2, { arrayFrom: () => arrayFrom, arrayIsEqualTo: () => arrayIsEqualTo, arrayIsHomogeneous: () => arrayIsHomogeneous, + arrayIsSorted: () => arrayIsSorted, arrayOf: () => arrayOf, arrayReverseIterator: () => arrayReverseIterator, arrayToMap: () => arrayToMap, arrayToMultiMap: () => arrayToMultiMap, arrayToNumericMap: () => arrayToNumericMap, + arraysEqual: () => arraysEqual, assertType: () => assertType, assign: () => assign, + assignHelper: () => assignHelper, + asyncDelegator: () => asyncDelegator, + asyncGeneratorHelper: () => asyncGeneratorHelper, asyncSuperHelper: () => asyncSuperHelper, + asyncValues: () => asyncValues, attachFileToDiagnostics: () => attachFileToDiagnostics, + awaitHelper: () => awaitHelper, + awaiterHelper: () => awaiterHelper, base64decode: () => base64decode, base64encode: () => base64encode, binarySearch: () => binarySearch, @@ -182332,16 +178465,14 @@ __export(ts_exports2, { canHaveJSDoc: () => canHaveJSDoc, canHaveLocals: () => canHaveLocals, canHaveModifiers: () => canHaveModifiers, - canHaveModuleSpecifier: () => canHaveModuleSpecifier, canHaveSymbol: () => canHaveSymbol, - canIncludeBindAndCheckDiagnostics: () => canIncludeBindAndCheckDiagnostics, + canIncludeBindAndCheckDiagnsotics: () => canIncludeBindAndCheckDiagnsotics, canJsonReportNoInputFiles: () => canJsonReportNoInputFiles, canProduceDiagnostics: () => canProduceDiagnostics, canUsePropertyAccess: () => canUsePropertyAccess, canWatchAffectingLocation: () => canWatchAffectingLocation, canWatchAtTypes: () => canWatchAtTypes, canWatchDirectoryOrFile: () => canWatchDirectoryOrFile, - canWatchDirectoryOrFilePath: () => canWatchDirectoryOrFilePath, cartesianProduct: () => cartesianProduct, cast: () => cast, chainBundle: () => chainBundle, @@ -182352,13 +178483,16 @@ __export(ts_exports2, { changeFullExtension: () => changeFullExtension, changesAffectModuleResolution: () => changesAffectModuleResolution, changesAffectingProgramStructure: () => changesAffectingProgramStructure, - characterCodeToRegularExpressionFlag: () => characterCodeToRegularExpressionFlag, + characterToRegularExpressionFlag: () => characterToRegularExpressionFlag, childIsDecorated: () => childIsDecorated, classElementOrClassElementParameterIsDecorated: () => classElementOrClassElementParameterIsDecorated, classHasClassThisAssignment: () => classHasClassThisAssignment, classHasDeclaredOrExplicitlyAssignedName: () => classHasDeclaredOrExplicitlyAssignedName, classHasExplicitlyAssignedName: () => classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated: () => classOrConstructorParameterIsDecorated, + classPrivateFieldGetHelper: () => classPrivateFieldGetHelper, + classPrivateFieldInHelper: () => classPrivateFieldInHelper, + classPrivateFieldSetHelper: () => classPrivateFieldSetHelper, classicNameResolver: () => classicNameResolver, classifier: () => ts_classifier_exports, cleanExtendedConfigCache: () => cleanExtendedConfigCache, @@ -182366,6 +178500,7 @@ __export(ts_exports2, { clearMap: () => clearMap, clearSharedExtendedConfigFileWatcher: () => clearSharedExtendedConfigFileWatcher, climbPastPropertyAccess: () => climbPastPropertyAccess, + climbPastPropertyOrElementAccess: () => climbPastPropertyOrElementAccess, clone: () => clone, cloneCompilerOptions: () => cloneCompilerOptions, closeFileWatcher: () => closeFileWatcher, @@ -182378,10 +178513,12 @@ __export(ts_exports2, { commandLineOptionOfCustomType: () => commandLineOptionOfCustomType, commentPragmas: () => commentPragmas, commonOptionsWithBuild: () => commonOptionsWithBuild, + commonPackageFolders: () => commonPackageFolders, compact: () => compact, compareBooleans: () => compareBooleans, compareDataObjects: () => compareDataObjects, compareDiagnostics: () => compareDiagnostics, + compareDiagnosticsSkipRelatedInformation: () => compareDiagnosticsSkipRelatedInformation, compareEmitHelpers: () => compareEmitHelpers, compareNumberOfDirectorySeparators: () => compareNumberOfDirectorySeparators, comparePaths: () => comparePaths, @@ -182395,21 +178532,26 @@ __export(ts_exports2, { compareStringsCaseSensitiveUI: () => compareStringsCaseSensitiveUI, compareTextSpans: () => compareTextSpans, compareValues: () => compareValues, + compileOnSaveCommandLineOption: () => compileOnSaveCommandLineOption, compilerOptionsAffectDeclarationPath: () => compilerOptionsAffectDeclarationPath, compilerOptionsAffectEmit: () => compilerOptionsAffectEmit, compilerOptionsAffectSemanticDiagnostics: () => compilerOptionsAffectSemanticDiagnostics, compilerOptionsDidYouMeanDiagnostics: () => compilerOptionsDidYouMeanDiagnostics, compilerOptionsIndicateEsModules: () => compilerOptionsIndicateEsModules, + compose: () => compose, computeCommonSourceDirectoryOfFilenames: () => computeCommonSourceDirectoryOfFilenames, computeLineAndCharacterOfPosition: () => computeLineAndCharacterOfPosition, computeLineOfPosition: () => computeLineOfPosition, computeLineStarts: () => computeLineStarts, computePositionOfLineAndCharacter: () => computePositionOfLineAndCharacter, + computeSignature: () => computeSignature, computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics, computeSuggestionDiagnostics: () => computeSuggestionDiagnostics, computedOptions: () => computedOptions, concatenate: () => concatenate, concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains, + configDirTemplateSubstitutionOptions: () => configDirTemplateSubstitutionOptions, + configDirTemplateSubstitutionWatchOptions: () => configDirTemplateSubstitutionWatchOptions, consumesNodeCoreModules: () => consumesNodeCoreModules, contains: () => contains, containsIgnoredPath: () => containsIgnoredPath, @@ -182440,11 +178582,16 @@ __export(ts_exports2, { createAccessorPropertySetRedirector: () => createAccessorPropertySetRedirector, createBaseNodeFactory: () => createBaseNodeFactory, createBinaryExpressionTrampoline: () => createBinaryExpressionTrampoline, + createBindingHelper: () => createBindingHelper, + createBuildInfo: () => createBuildInfo, createBuilderProgram: () => createBuilderProgram, - createBuilderProgramUsingIncrementalBuildInfo: () => createBuilderProgramUsingIncrementalBuildInfo, + createBuilderProgramUsingProgramBuildInfo: () => createBuilderProgramUsingProgramBuildInfo, createBuilderStatusReporter: () => createBuilderStatusReporter, + createCacheWithRedirects: () => createCacheWithRedirects, createCacheableExportInfoMap: () => createCacheableExportInfoMap, createCachedDirectoryStructureHost: () => createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock: () => createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock: () => createClassThisAssignmentBlock, createClassifier: () => createClassifier, createCommentDirectivesMap: () => createCommentDirectivesMap, createCompilerDiagnostic: () => createCompilerDiagnostic, @@ -182496,7 +178643,6 @@ __export(ts_exports2, { createMemberAccessForPropertyName: () => createMemberAccessForPropertyName, createModeAwareCache: () => createModeAwareCache, createModeAwareCacheKey: () => createModeAwareCacheKey, - createModeMismatchDetails: () => createModeMismatchDetails, createModuleNotFoundChain: () => createModuleNotFoundChain, createModuleResolutionCache: () => createModuleResolutionCache, createModuleResolutionLoader: () => createModuleResolutionLoader, @@ -182518,7 +178664,6 @@ __export(ts_exports2, { createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape, createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon, createProgram: () => createProgram, - createProgramDiagnostics: () => createProgramDiagnostics, createProgramHost: () => createProgramHost, createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral, createQueue: () => createQueue, @@ -182568,7 +178713,9 @@ __export(ts_exports2, { declarationNameToString: () => declarationNameToString, decodeMappings: () => decodeMappings, decodedTextSpanIntersectsWith: () => decodedTextSpanIntersectsWith, + decorateHelper: () => decorateHelper, deduplicate: () => deduplicate, + defaultIncludeSpec: () => defaultIncludeSpec, defaultInitCompilerOptions: () => defaultInitCompilerOptions, defaultMaximumTruncationLength: () => defaultMaximumTruncationLength, diagnosticCategoryName: () => diagnosticCategoryName, @@ -182579,22 +178726,27 @@ __export(ts_exports2, { displayPart: () => displayPart, displayPartsToString: () => displayPartsToString, disposeEmitNodes: () => disposeEmitNodes, + disposeResourcesHelper: () => disposeResourcesHelper, documentSpansEqual: () => documentSpansEqual, dumpTracingLegend: () => dumpTracingLegend, elementAt: () => elementAt, elideNodes: () => elideNodes, + emitComments: () => emitComments, emitDetachedComments: () => emitDetachedComments, emitFiles: () => emitFiles, emitFilesAndReportErrors: () => emitFilesAndReportErrors, emitFilesAndReportErrorsAndGetExitStatus: () => emitFilesAndReportErrorsAndGetExitStatus, emitModuleKindIsNonNodeESM: () => emitModuleKindIsNonNodeESM, emitNewLineBeforeLeadingCommentOfPosition: () => emitNewLineBeforeLeadingCommentOfPosition, + emitNewLineBeforeLeadingComments: () => emitNewLineBeforeLeadingComments, + emitNewLineBeforeLeadingCommentsOfPosition: () => emitNewLineBeforeLeadingCommentsOfPosition, emitResolverSkipsTypeChecking: () => emitResolverSkipsTypeChecking, emitSkippedWithNoDiagnostics: () => emitSkippedWithNoDiagnostics, emptyArray: () => emptyArray, emptyFileSystemEntries: () => emptyFileSystemEntries, emptyMap: () => emptyMap, emptyOptions: () => emptyOptions, + emptySet: () => emptySet, endsWith: () => endsWith, ensurePathIsNonModuleName: () => ensurePathIsNonModuleName, ensureScriptKind: () => ensureScriptKind, @@ -182605,6 +178757,7 @@ __export(ts_exports2, { equateStringsCaseInsensitive: () => equateStringsCaseInsensitive, equateStringsCaseSensitive: () => equateStringsCaseSensitive, equateValues: () => equateValues, + esDecorateHelper: () => esDecorateHelper, escapeJsxAttributeString: () => escapeJsxAttributeString, escapeLeadingUnderscores: () => escapeLeadingUnderscores, escapeNonAsciiString: () => escapeNonAsciiString, @@ -182613,14 +178766,15 @@ __export(ts_exports2, { escapeTemplateSubstitution: () => escapeTemplateSubstitution, evaluatorResult: () => evaluatorResult, every: () => every, - exclusivelyPrefixedNodeCoreModules: () => exclusivelyPrefixedNodeCoreModules, executeCommandLine: () => executeCommandLine, expandPreOrPostfixIncrementOrDecrementExpression: () => expandPreOrPostfixIncrementOrDecrementExpression, explainFiles: () => explainFiles, explainIfFileIsRedirectAndImpliedFormat: () => explainIfFileIsRedirectAndImpliedFormat, exportAssignmentIsAlias: () => exportAssignmentIsAlias, + exportStarHelper: () => exportStarHelper, expressionResultIsUnused: () => expressionResultIsUnused, extend: () => extend, + extendsHelper: () => extendsHelper, extensionFromPath: () => extensionFromPath, extensionIsTS: () => extensionIsTS, extensionsNotSupportingExtensionlessResolution: () => extensionsNotSupportingExtensionlessResolution, @@ -182647,6 +178801,7 @@ __export(ts_exports2, { findLast: () => findLast, findLastIndex: () => findLastIndex, findListItemInfo: () => findListItemInfo, + findMap: () => findMap, findModifier: () => findModifier, findNextToken: () => findNextToken, findPackageJson: () => findPackageJson, @@ -182675,10 +178830,8 @@ __export(ts_exports2, { forEach: () => forEach, forEachAncestor: () => forEachAncestor, forEachAncestorDirectory: () => forEachAncestorDirectory, - forEachAncestorDirectoryStoppingAtGlobalCache: () => forEachAncestorDirectoryStoppingAtGlobalCache, forEachChild: () => forEachChild, forEachChildRecursively: () => forEachChildRecursively, - forEachDynamicImportOrRequireCall: () => forEachDynamicImportOrRequireCall, forEachEmittedFile: () => forEachEmittedFile, forEachEnclosingBlockScopeContainer: () => forEachEnclosingBlockScopeContainer, forEachEntry: () => forEachEntry, @@ -182688,8 +178841,6 @@ __export(ts_exports2, { forEachLeadingCommentRange: () => forEachLeadingCommentRange, forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft, forEachNameOfDefaultExport: () => forEachNameOfDefaultExport, - forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName, - forEachProjectReference: () => forEachProjectReference, forEachPropertyAssignment: () => forEachPropertyAssignment, forEachResolvedProjectReference: () => forEachResolvedProjectReference, forEachReturnStatement: () => forEachReturnStatement, @@ -182698,6 +178849,7 @@ __export(ts_exports2, { forEachTsConfigPropArray: () => forEachTsConfigPropArray, forEachUnique: () => forEachUnique, forEachYieldExpression: () => forEachYieldExpression, + forSomeAncestorDirectory: () => forSomeAncestorDirectory, formatColorAndReset: () => formatColorAndReset, formatDiagnostic: () => formatDiagnostic, formatDiagnostics: () => formatDiagnostics, @@ -182708,8 +178860,11 @@ __export(ts_exports2, { formatMessage: () => formatMessage, formatStringFromArgs: () => formatStringFromArgs, formatting: () => ts_formatting_exports, + fullTripleSlashAMDReferencePathRegEx: () => fullTripleSlashAMDReferencePathRegEx, + fullTripleSlashReferencePathRegEx: () => fullTripleSlashReferencePathRegEx, generateDjb2Hash: () => generateDjb2Hash, generateTSConfig: () => generateTSConfig, + generatorHelper: () => generatorHelper, getAdjustedReferenceLocation: () => getAdjustedReferenceLocation, getAdjustedRenameLocation: () => getAdjustedRenameLocation, getAliasDeclarationFromName: () => getAliasDeclarationFromName, @@ -182721,7 +178876,6 @@ __export(ts_exports2, { getAllKeys: () => getAllKeys, getAllProjectOutputs: () => getAllProjectOutputs, getAllSuperTypeNodes: () => getAllSuperTypeNodes, - getAllowImportingTsExtensions: () => getAllowImportingTsExtensions, getAllowJSCompilerOption: () => getAllowJSCompilerOption, getAllowSyntheticDefaultImports: () => getAllowSyntheticDefaultImports, getAncestor: () => getAncestor, @@ -182729,6 +178883,7 @@ __export(ts_exports2, { getAreDeclarationMapsEnabled: () => getAreDeclarationMapsEnabled, getAssignedExpandoInitializer: () => getAssignedExpandoInitializer, getAssignedName: () => getAssignedName, + getAssignedNameOfIdentifier: () => getAssignedNameOfIdentifier, getAssignmentDeclarationKind: () => getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind: () => getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind: () => getAssignmentTargetKind, @@ -182769,6 +178924,7 @@ __export(ts_exports2, { getContainingObjectLiteralElement: () => getContainingObjectLiteralElement, getContextualTypeFromParent: () => getContextualTypeFromParent, getContextualTypeFromParentOrAncestorTypeNode: () => getContextualTypeFromParentOrAncestorTypeNode, + getCurrentTime: () => getCurrentTime, getDeclarationDiagnostics: () => getDeclarationDiagnostics, getDeclarationEmitExtensionForPath: () => getDeclarationEmitExtensionForPath, getDeclarationEmitOutputFilePath: () => getDeclarationEmitOutputFilePath, @@ -182786,7 +178942,6 @@ __export(ts_exports2, { getDefaultLibFilePath: () => getDefaultLibFilePath, getDefaultLikeExportInfo: () => getDefaultLikeExportInfo, getDefaultLikeExportNameFromDeclaration: () => getDefaultLikeExportNameFromDeclaration, - getDefaultResolutionModeForFileWorker: () => getDefaultResolutionModeForFileWorker, getDiagnosticText: () => getDiagnosticText, getDiagnosticsWithinSpan: () => getDiagnosticsWithinSpan, getDirectoryPath: () => getDirectoryPath, @@ -182817,7 +178972,6 @@ __export(ts_exports2, { getEmitFlags: () => getEmitFlags, getEmitHelpers: () => getEmitHelpers, getEmitModuleDetectionKind: () => getEmitModuleDetectionKind, - getEmitModuleFormatOfFileWorker: () => getEmitModuleFormatOfFileWorker, getEmitModuleKind: () => getEmitModuleKind, getEmitModuleResolutionKind: () => getEmitModuleResolutionKind, getEmitScriptTarget: () => getEmitScriptTarget, @@ -182868,11 +179022,11 @@ __export(ts_exports2, { getIdentifierGeneratedImportReference: () => getIdentifierGeneratedImportReference, getIdentifierTypeArguments: () => getIdentifierTypeArguments, getImmediatelyInvokedFunctionExpression: () => getImmediatelyInvokedFunctionExpression, - getImpliedNodeFormatForEmitWorker: () => getImpliedNodeFormatForEmitWorker, getImpliedNodeFormatForFile: () => getImpliedNodeFormatForFile, getImpliedNodeFormatForFileWorker: () => getImpliedNodeFormatForFileWorker, getImportNeedsImportDefaultHelper: () => getImportNeedsImportDefaultHelper, getImportNeedsImportStarHelper: () => getImportNeedsImportStarHelper, + getIndentSize: () => getIndentSize, getIndentString: () => getIndentString, getInferredLibraryNameResolveFrom: () => getInferredLibraryNameResolveFrom, getInitializedVariables: () => getInitializedVariables, @@ -182881,7 +179035,6 @@ __export(ts_exports2, { getInterfaceBaseTypeNodes: () => getInterfaceBaseTypeNodes, getInternalEmitFlags: () => getInternalEmitFlags, getInvokedExpression: () => getInvokedExpression, - getIsFileExcluded: () => getIsFileExcluded, getIsolatedModules: () => getIsolatedModules, getJSDocAugmentsTag: () => getJSDocAugmentsTag, getJSDocClassTag: () => getJSDocClassTag, @@ -182910,6 +179063,7 @@ __export(ts_exports2, { getJSDocSatisfiesExpressionType: () => getJSDocSatisfiesExpressionType, getJSDocSatisfiesTag: () => getJSDocSatisfiesTag, getJSDocTags: () => getJSDocTags, + getJSDocTagsNoCache: () => getJSDocTagsNoCache, getJSDocTemplateTag: () => getJSDocTemplateTag, getJSDocThisTag: () => getJSDocThisTag, getJSDocType: () => getJSDocType, @@ -182929,12 +179083,11 @@ __export(ts_exports2, { getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode, getLeftmostAccessExpression: () => getLeftmostAccessExpression, getLeftmostExpression: () => getLeftmostExpression, - getLibFileNameFromLibReference: () => getLibFileNameFromLibReference, - getLibNameFromLibReference: () => getLibNameFromLibReference, getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName, getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition, getLineInfo: () => getLineInfo, getLineOfLocalPosition: () => getLineOfLocalPosition, + getLineOfLocalPositionFromLineMap: () => getLineOfLocalPositionFromLineMap, getLineStartPositionForPosition: () => getLineStartPositionForPosition, getLineStarts: () => getLineStarts, getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => getLinesBetweenPositionAndNextNonWhitespaceCharacter, @@ -182976,6 +179129,7 @@ __export(ts_exports2, { getNameOfScriptTarget: () => getNameOfScriptTarget, getNameOrArgument: () => getNameOrArgument, getNameTable: () => getNameTable, + getNamesForExportedSymbol: () => getNamesForExportedSymbol, getNamespaceDeclarationNode: () => getNamespaceDeclarationNode, getNewLineCharacter: () => getNewLineCharacter, getNewLineKind: () => getNewLineKind, @@ -182992,57 +179146,62 @@ __export(ts_exports2, { getNonAssignmentOperatorForCompoundAssignment: () => getNonAssignmentOperatorForCompoundAssignment, getNonAugmentationDeclaration: () => getNonAugmentationDeclaration, getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode, - getNonIncrementalBuildInfoRoots: () => getNonIncrementalBuildInfoRoots, - getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode, getNormalizedAbsolutePath: () => getNormalizedAbsolutePath, getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot, getNormalizedPathComponents: () => getNormalizedPathComponents, getObjectFlags: () => getObjectFlags, + getOperator: () => getOperator, getOperatorAssociativity: () => getOperatorAssociativity, getOperatorPrecedence: () => getOperatorPrecedence, getOptionFromName: () => getOptionFromName, getOptionsForLibraryResolution: () => getOptionsForLibraryResolution, getOptionsNameMap: () => getOptionsNameMap, - getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue, - getOptionsSyntaxByValue: () => getOptionsSyntaxByValue, getOrCreateEmitNode: () => getOrCreateEmitNode, + getOrCreateExternalHelpersModuleNameIfNeeded: () => getOrCreateExternalHelpersModuleNameIfNeeded, getOrUpdate: () => getOrUpdate, getOriginalNode: () => getOriginalNode, getOriginalNodeId: () => getOriginalNodeId, + getOriginalSourceFile: () => getOriginalSourceFile, getOutputDeclarationFileName: () => getOutputDeclarationFileName, getOutputDeclarationFileNameWorker: () => getOutputDeclarationFileNameWorker, getOutputExtension: () => getOutputExtension, getOutputFileNames: () => getOutputFileNames, getOutputJSFileNameWorker: () => getOutputJSFileNameWorker, getOutputPathsFor: () => getOutputPathsFor, + getOutputPathsForBundle: () => getOutputPathsForBundle, getOwnEmitOutputFilePath: () => getOwnEmitOutputFilePath, getOwnKeys: () => getOwnKeys, getOwnValues: () => getOwnValues, + getPackageJsonInfo: () => getPackageJsonInfo, getPackageJsonTypesVersionsPaths: () => getPackageJsonTypesVersionsPaths, + getPackageJsonsVisibleToFile: () => getPackageJsonsVisibleToFile, getPackageNameFromTypesPackageName: () => getPackageNameFromTypesPackageName, getPackageScopeForPath: () => getPackageScopeForPath, getParameterSymbolFromJSDoc: () => getParameterSymbolFromJSDoc, + getParameterTypeNode: () => getParameterTypeNode, getParentNodeInSpan: () => getParentNodeInSpan, getParseTreeNode: () => getParseTreeNode, getParsedCommandLineOfConfigFile: () => getParsedCommandLineOfConfigFile, getPathComponents: () => getPathComponents, + getPathComponentsRelativeTo: () => getPathComponentsRelativeTo, getPathFromPathComponents: () => getPathFromPathComponents, getPathUpdater: () => getPathUpdater, getPathsBasePath: () => getPathsBasePath, getPatternFromSpec: () => getPatternFromSpec, - getPendingEmitKindWithSeen: () => getPendingEmitKindWithSeen, + getPendingEmitKind: () => getPendingEmitKind, getPositionOfLineAndCharacter: () => getPositionOfLineAndCharacter, getPossibleGenericSignatures: () => getPossibleGenericSignatures, getPossibleOriginalInputExtensionForExtension: () => getPossibleOriginalInputExtensionForExtension, - getPossibleOriginalInputPathWithoutChangingExt: () => getPossibleOriginalInputPathWithoutChangingExt, getPossibleTypeArgumentsInfo: () => getPossibleTypeArgumentsInfo, getPreEmitDiagnostics: () => getPreEmitDiagnostics, getPrecedingNonSpaceCharacterPosition: () => getPrecedingNonSpaceCharacterPosition, getPrivateIdentifier: () => getPrivateIdentifier, getProperties: () => getProperties, getProperty: () => getProperty, + getPropertyArrayElementValue: () => getPropertyArrayElementValue, getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode, + getPropertyNameForUniqueESSymbol: () => getPropertyNameForUniqueESSymbol, getPropertyNameFromType: () => getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement: () => getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement: () => getPropertySymbolFromBindingElement, @@ -183066,14 +179225,13 @@ __export(ts_exports2, { getResolvePackageJsonExports: () => getResolvePackageJsonExports, getResolvePackageJsonImports: () => getResolvePackageJsonImports, getResolvedExternalModuleName: () => getResolvedExternalModuleName, - getResolvedModuleFromResolution: () => getResolvedModuleFromResolution, - getResolvedTypeReferenceDirectiveFromResolution: () => getResolvedTypeReferenceDirectiveFromResolution, getRestIndicatorOfBindingOrAssignmentElement: () => getRestIndicatorOfBindingOrAssignmentElement, getRestParameterElementType: () => getRestParameterElementType, getRightMostAssignedExpression: () => getRightMostAssignedExpression, getRootDeclaration: () => getRootDeclaration, getRootDirectoryOfResolutionCache: () => getRootDirectoryOfResolutionCache, getRootLength: () => getRootLength, + getRootPathSplitLength: () => getRootPathSplitLength, getScriptKind: () => getScriptKind, getScriptKindFromFileName: () => getScriptKindFromFileName, getScriptTargetFeatures: () => getScriptTargetFeatures, @@ -183085,12 +179243,14 @@ __export(ts_exports2, { getSetAccessorValueParameter: () => getSetAccessorValueParameter, getSetExternalModuleIndicator: () => getSetExternalModuleIndicator, getShebang: () => getShebang, + getSingleInitializerOfVariableStatementOrPropertyDeclaration: () => getSingleInitializerOfVariableStatementOrPropertyDeclaration, getSingleVariableOfVariableStatement: () => getSingleVariableOfVariableStatement, getSnapshotText: () => getSnapshotText, getSnippetElement: () => getSnippetElement, getSourceFileOfModule: () => getSourceFileOfModule, getSourceFileOfNode: () => getSourceFileOfNode, getSourceFilePathInNewDir: () => getSourceFilePathInNewDir, + getSourceFilePathInNewDirWorker: () => getSourceFilePathInNewDirWorker, getSourceFileVersionAsHashFromText: () => getSourceFileVersionAsHashFromText, getSourceFilesToEmit: () => getSourceFilesToEmit, getSourceMapRange: () => getSourceMapRange, @@ -183113,6 +179273,7 @@ __export(ts_exports2, { getSwitchedType: () => getSwitchedType, getSymbolId: () => getSymbolId, getSymbolNameForPrivateIdentifier: () => getSymbolNameForPrivateIdentifier, + getSymbolParentOrFail: () => getSymbolParentOrFail, getSymbolTarget: () => getSymbolTarget, getSyntacticClassifications: () => getSyntacticClassifications, getSyntacticModifierFlags: () => getSyntacticModifierFlags, @@ -183143,6 +179304,7 @@ __export(ts_exports2, { getTouchingToken: () => getTouchingToken, getTrailingCommentRanges: () => getTrailingCommentRanges, getTrailingSemicolonDeferringWriter: () => getTrailingSemicolonDeferringWriter, + getTransformFlagsSubtreeExclusions: () => getTransformFlagsSubtreeExclusions, getTransformers: () => getTransformers, getTsBuildInfoEmitOutputFilePath: () => getTsBuildInfoEmitOutputFilePath, getTsConfigObjectLiteralExpression: () => getTsConfigObjectLiteralExpression, @@ -183170,6 +179332,7 @@ __export(ts_exports2, { hasAccessorModifier: () => hasAccessorModifier, hasAmbientModifier: () => hasAmbientModifier, hasChangesInResolutions: () => hasChangesInResolutions, + hasChildOfKind: () => hasChildOfKind, hasContextSensitiveParameters: () => hasContextSensitiveParameters, hasDecorators: () => hasDecorators, hasDocComment: () => hasDocComment, @@ -183178,7 +179341,6 @@ __export(ts_exports2, { hasEffectiveModifiers: () => hasEffectiveModifiers, hasEffectiveReadonlyModifier: () => hasEffectiveReadonlyModifier, hasExtension: () => hasExtension, - hasImplementationTSFileExtension: () => hasImplementationTSFileExtension, hasIndexSignature: () => hasIndexSignature, hasInferredType: () => hasInferredType, hasInitializer: () => hasInitializer, @@ -183206,6 +179368,7 @@ __export(ts_exports2, { hasType: () => hasType, hasTypeArguments: () => hasTypeArguments, hasZeroOrOneAsteriskCharacter: () => hasZeroOrOneAsteriskCharacter, + helperString: () => helperString, hostGetCanonicalFileName: () => hostGetCanonicalFileName, hostUsesCaseSensitiveFileNames: () => hostUsesCaseSensitiveFileNames, idText: () => idText, @@ -183215,8 +179378,9 @@ __export(ts_exports2, { identitySourceMapConsumer: () => identitySourceMapConsumer, ignoreSourceNewlines: () => ignoreSourceNewlines, ignoredPaths: () => ignoredPaths, + importDefaultHelper: () => importDefaultHelper, importFromModuleSpecifier: () => importFromModuleSpecifier, - importSyntaxAffectsModuleResolution: () => importSyntaxAffectsModuleResolution, + importStarHelper: () => importStarHelper, indexOfAnyCharCode: () => indexOfAnyCharCode, indexOfNode: () => indexOfNode, indicesOf: () => indicesOf, @@ -183224,6 +179388,7 @@ __export(ts_exports2, { injectClassNamedEvaluationHelperBlockIfMissing: () => injectClassNamedEvaluationHelperBlockIfMissing, injectClassThisAssignmentIfMissing: () => injectClassThisAssignmentIfMissing, insertImports: () => insertImports, + insertLeadingStatement: () => insertLeadingStatement, insertSorted: () => insertSorted, insertStatementAfterCustomPrologue: () => insertStatementAfterCustomPrologue, insertStatementAfterStandardPrologue: () => insertStatementAfterStandardPrologue, @@ -183239,9 +179404,11 @@ __export(ts_exports2, { isAccessibilityModifier: () => isAccessibilityModifier, isAccessor: () => isAccessor, isAccessorModifier: () => isAccessorModifier, + isAliasSymbolDeclaration: () => isAliasSymbolDeclaration, isAliasableExpression: () => isAliasableExpression, isAmbientModule: () => isAmbientModule, isAmbientPropertyDeclaration: () => isAmbientPropertyDeclaration, + isAnonymousFunctionDefinition: () => isAnonymousFunctionDefinition, isAnyDirectorySeparator: () => isAnyDirectorySeparator, isAnyImportOrBareOrAccessedRequire: () => isAnyImportOrBareOrAccessedRequire, isAnyImportOrReExport: () => isAnyImportOrReExport, @@ -183277,7 +179444,6 @@ __export(ts_exports2, { isAwaitKeyword: () => isAwaitKeyword, isBigIntLiteral: () => isBigIntLiteral, isBinaryExpression: () => isBinaryExpression, - isBinaryLogicalOperator: () => isBinaryLogicalOperator, isBinaryOperatorToken: () => isBinaryOperatorToken, isBindableObjectDefinePropertyCall: () => isBindableObjectDefinePropertyCall, isBindableStaticAccessExpression: () => isBindableStaticAccessExpression, @@ -183297,9 +179463,9 @@ __export(ts_exports2, { isBooleanLiteral: () => isBooleanLiteral, isBreakOrContinueStatement: () => isBreakOrContinueStatement, isBreakStatement: () => isBreakStatement, - isBuildCommand: () => isBuildCommand, + isBuild: () => isBuild, isBuildInfoFile: () => isBuildInfoFile, - isBuilderProgram: () => isBuilderProgram, + isBuilderProgram: () => isBuilderProgram2, isBundle: () => isBundle, isCallChain: () => isCallChain, isCallExpression: () => isCallExpression, @@ -183318,6 +179484,7 @@ __export(ts_exports2, { isCatchClauseVariableDeclaration: () => isCatchClauseVariableDeclaration, isCatchClauseVariableDeclarationOrBindingElement: () => isCatchClauseVariableDeclarationOrBindingElement, isCheckJsEnabledForFile: () => isCheckJsEnabledForFile, + isChildOfNodeWithKind: () => isChildOfNodeWithKind, isCircularBuildOrder: () => isCircularBuildOrder, isClassDeclaration: () => isClassDeclaration, isClassElement: () => isClassElement, @@ -183329,6 +179496,7 @@ __export(ts_exports2, { isClassOrTypeElement: () => isClassOrTypeElement, isClassStaticBlockDeclaration: () => isClassStaticBlockDeclaration, isClassThisAssignmentBlock: () => isClassThisAssignmentBlock, + isCollapsedRange: () => isCollapsedRange, isColonToken: () => isColonToken, isCommaExpression: () => isCommaExpression, isCommaListExpression: () => isCommaListExpression, @@ -183371,13 +179539,16 @@ __export(ts_exports2, { isDeleteTarget: () => isDeleteTarget, isDeprecatedDeclaration: () => isDeprecatedDeclaration, isDestructuringAssignment: () => isDestructuringAssignment, + isDiagnosticWithLocation: () => isDiagnosticWithLocation, isDiskPathRoot: () => isDiskPathRoot, isDoStatement: () => isDoStatement, isDocumentRegistryEntry: () => isDocumentRegistryEntry, isDotDotDotToken: () => isDotDotDotToken, isDottedName: () => isDottedName, isDynamicName: () => isDynamicName, + isESSymbolIdentifier: () => isESSymbolIdentifier, isEffectiveExternalModule: () => isEffectiveExternalModule, + isEffectiveModuleDeclaration: () => isEffectiveModuleDeclaration, isEffectiveStrictModeSourceFile: () => isEffectiveStrictModeSourceFile, isElementAccessChain: () => isElementAccessChain, isElementAccessExpression: () => isElementAccessExpression, @@ -183447,11 +179618,13 @@ __export(ts_exports2, { isFunctionOrModuleBlock: () => isFunctionOrModuleBlock, isFunctionSymbol: () => isFunctionSymbol, isFunctionTypeNode: () => isFunctionTypeNode, + isFutureReservedKeyword: () => isFutureReservedKeyword, isGeneratedIdentifier: () => isGeneratedIdentifier, isGeneratedPrivateIdentifier: () => isGeneratedPrivateIdentifier, isGetAccessor: () => isGetAccessor, isGetAccessorDeclaration: () => isGetAccessorDeclaration, isGetOrSetAccessorDeclaration: () => isGetOrSetAccessorDeclaration, + isGlobalDeclaration: () => isGlobalDeclaration, isGlobalScopeAugmentation: () => isGlobalScopeAugmentation, isGlobalSourceFile: () => isGlobalSourceFile, isGrammarError: () => isGrammarError, @@ -183484,7 +179657,7 @@ __export(ts_exports2, { isImportSpecifier: () => isImportSpecifier, isImportTypeAssertionContainer: () => isImportTypeAssertionContainer, isImportTypeNode: () => isImportTypeNode, - isImportable: () => isImportable, + isImportableFile: () => isImportableFile, isInComment: () => isInComment, isInCompoundLikeAssignment: () => isInCompoundLikeAssignment, isInExpressionContext: () => isInExpressionContext, @@ -183499,8 +179672,6 @@ __export(ts_exports2, { isInTemplateString: () => isInTemplateString, isInTopLevelContext: () => isInTopLevelContext, isInTypeQuery: () => isInTypeQuery, - isIncrementalBuildInfo: () => isIncrementalBuildInfo, - isIncrementalBundleEmitBuildInfo: () => isIncrementalBundleEmitBuildInfo, isIncrementalCompilation: () => isIncrementalCompilation, isIndexSignatureDeclaration: () => isIndexSignatureDeclaration, isIndexedAccessTypeNode: () => isIndexedAccessTypeNode, @@ -183583,7 +179754,6 @@ __export(ts_exports2, { isJsxAttributeLike: () => isJsxAttributeLike, isJsxAttributeName: () => isJsxAttributeName, isJsxAttributes: () => isJsxAttributes, - isJsxCallLike: () => isJsxCallLike, isJsxChild: () => isJsxChild, isJsxClosingElement: () => isJsxClosingElement, isJsxClosingFragment: () => isJsxClosingFragment, @@ -183608,6 +179778,7 @@ __export(ts_exports2, { isLabeledStatement: () => isLabeledStatement, isLateVisibilityPaintedStatement: () => isLateVisibilityPaintedStatement, isLeftHandSideExpression: () => isLeftHandSideExpression, + isLeftHandSideOfAssignment: () => isLeftHandSideOfAssignment, isLet: () => isLet, isLineBreak: () => isLineBreak, isLiteralComputedPropertyDeclarationName: () => isLiteralComputedPropertyDeclarationName, @@ -183615,7 +179786,10 @@ __export(ts_exports2, { isLiteralExpressionOfObject: () => isLiteralExpressionOfObject, isLiteralImportTypeNode: () => isLiteralImportTypeNode, isLiteralKind: () => isLiteralKind, + isLiteralLikeAccess: () => isLiteralLikeAccess, + isLiteralLikeElementAccess: () => isLiteralLikeElementAccess, isLiteralNameOfPropertyDeclarationOrIndexAccess: () => isLiteralNameOfPropertyDeclarationOrIndexAccess, + isLiteralTypeLikeExpression: () => isLiteralTypeLikeExpression, isLiteralTypeLiteral: () => isLiteralTypeLiteral, isLiteralTypeNode: () => isLiteralTypeNode, isLocalName: () => isLocalName, @@ -183640,7 +179814,6 @@ __export(ts_exports2, { isModuleBlock: () => isModuleBlock, isModuleBody: () => isModuleBody, isModuleDeclaration: () => isModuleDeclaration, - isModuleExportName: () => isModuleExportName, isModuleExportsAccessExpression: () => isModuleExportsAccessExpression, isModuleIdentifier: () => isModuleIdentifier, isModuleName: () => isModuleName, @@ -183650,6 +179823,7 @@ __export(ts_exports2, { isModuleWithStringLiteralName: () => isModuleWithStringLiteralName, isNameOfFunctionDeclaration: () => isNameOfFunctionDeclaration, isNameOfModuleDeclaration: () => isNameOfModuleDeclaration, + isNamedClassElement: () => isNamedClassElement, isNamedDeclaration: () => isNamedDeclaration, isNamedEvaluation: () => isNamedEvaluation, isNamedEvaluationSource: () => isNamedEvaluationSource, @@ -183666,8 +179840,8 @@ __export(ts_exports2, { isNamespaceReexportDeclaration: () => isNamespaceReexportDeclaration, isNewExpression: () => isNewExpression, isNewExpressionTarget: () => isNewExpressionTarget, - isNewScopeNode: () => isNewScopeNode, isNoSubstitutionTemplateLiteral: () => isNoSubstitutionTemplateLiteral, + isNode: () => isNode, isNodeArray: () => isNodeArray, isNodeArrayMultiLine: () => isNodeArrayMultiLine, isNodeDescendantOf: () => isNodeDescendantOf, @@ -183676,11 +179850,14 @@ __export(ts_exports2, { isNodeModulesDirectory: () => isNodeModulesDirectory, isNodeWithPossibleHoistedDeclaration: () => isNodeWithPossibleHoistedDeclaration, isNonContextualKeyword: () => isNonContextualKeyword, + isNonExportDefaultModifier: () => isNonExportDefaultModifier, isNonGlobalAmbientModule: () => isNonGlobalAmbientModule, + isNonGlobalDeclaration: () => isNonGlobalDeclaration, isNonNullAccess: () => isNonNullAccess, isNonNullChain: () => isNonNullChain, isNonNullExpression: () => isNonNullExpression, isNonStaticMethodOrAccessorWithPrivateName: () => isNonStaticMethodOrAccessorWithPrivateName, + isNotEmittedOrPartiallyEmittedNode: () => isNotEmittedOrPartiallyEmittedNode, isNotEmittedStatement: () => isNotEmittedStatement, isNullishCoalesce: () => isNullishCoalesce, isNumber: () => isNumber, @@ -183696,6 +179873,7 @@ __export(ts_exports2, { isObjectLiteralMethod: () => isObjectLiteralMethod, isObjectLiteralOrClassExpressionMethodOrAccessor: () => isObjectLiteralOrClassExpressionMethodOrAccessor, isObjectTypeDeclaration: () => isObjectTypeDeclaration, + isOctalDigit: () => isOctalDigit, isOmittedExpression: () => isOmittedExpression, isOptionalChain: () => isOptionalChain, isOptionalChainRoot: () => isOptionalChainRoot, @@ -183715,7 +179893,6 @@ __export(ts_exports2, { isParseTreeNode: () => isParseTreeNode, isPartOfParameterDeclaration: () => isPartOfParameterDeclaration, isPartOfTypeNode: () => isPartOfTypeNode, - isPartOfTypeOnlyImportOrExportDeclaration: () => isPartOfTypeOnlyImportOrExportDeclaration, isPartOfTypeQuery: () => isPartOfTypeQuery, isPartiallyEmittedExpression: () => isPartiallyEmittedExpression, isPatternMatch: () => isPatternMatch, @@ -183730,6 +179907,7 @@ __export(ts_exports2, { isPrivateIdentifierClassElementDeclaration: () => isPrivateIdentifierClassElementDeclaration, isPrivateIdentifierPropertyAccessExpression: () => isPrivateIdentifierPropertyAccessExpression, isPrivateIdentifierSymbol: () => isPrivateIdentifierSymbol, + isProgramBundleEmitBuildInfo: () => isProgramBundleEmitBuildInfo, isProgramUptoDate: () => isProgramUptoDate, isPrologueDirective: () => isPrologueDirective, isPropertyAccessChain: () => isPropertyAccessChain, @@ -183742,6 +179920,7 @@ __export(ts_exports2, { isPropertyName: () => isPropertyName, isPropertyNameLiteral: () => isPropertyNameLiteral, isPropertySignature: () => isPropertySignature, + isProtoSetter: () => isProtoSetter, isPrototypeAccess: () => isPrototypeAccess, isPrototypePropertyAssignment: () => isPrototypePropertyAssignment, isPunctuation: () => isPunctuation, @@ -183751,6 +179930,7 @@ __export(ts_exports2, { isQuestionOrExclamationToken: () => isQuestionOrExclamationToken, isQuestionOrPlusOrMinusToken: () => isQuestionOrPlusOrMinusToken, isQuestionToken: () => isQuestionToken, + isRawSourceMap: () => isRawSourceMap, isReadonlyKeyword: () => isReadonlyKeyword, isReadonlyKeywordOrPlusOrMinusToken: () => isReadonlyKeywordOrPlusOrMinusToken, isRecognizedTripleSlashComment: () => isRecognizedTripleSlashComment, @@ -183772,23 +179952,24 @@ __export(ts_exports2, { isRootedDiskPath: () => isRootedDiskPath, isSameEntityName: () => isSameEntityName, isSatisfiesExpression: () => isSatisfiesExpression, + isScopeMarker: () => isScopeMarker, isSemicolonClassElement: () => isSemicolonClassElement, isSetAccessor: () => isSetAccessor, isSetAccessorDeclaration: () => isSetAccessorDeclaration, + isShebangTrivia: () => isShebangTrivia, isShiftOperatorOrHigher: () => isShiftOperatorOrHigher, isShorthandAmbientModuleSymbol: () => isShorthandAmbientModuleSymbol, isShorthandPropertyAssignment: () => isShorthandPropertyAssignment, - isSideEffectImport: () => isSideEffectImport, isSignedNumericLiteral: () => isSignedNumericLiteral, isSimpleCopiableExpression: () => isSimpleCopiableExpression, isSimpleInlineableExpression: () => isSimpleInlineableExpression, + isSimpleParameter: () => isSimpleParameter, isSimpleParameterList: () => isSimpleParameterList, isSingleOrDoubleQuote: () => isSingleOrDoubleQuote, - isSolutionConfig: () => isSolutionConfig, - isSourceElement: () => isSourceElement, isSourceFile: () => isSourceFile, isSourceFileFromLibrary: () => isSourceFileFromLibrary, isSourceFileJS: () => isSourceFileJS, + isSourceFileNotJS: () => isSourceFileNotJS, isSourceFileNotJson: () => isSourceFileNotJson, isSourceMapping: () => isSourceMapping, isSpecialPropertyDeclaration: () => isSpecialPropertyDeclaration, @@ -183801,6 +179982,7 @@ __export(ts_exports2, { isStatic: () => isStatic, isStaticModifier: () => isStaticModifier, isString: () => isString, + isStringAKeyword: () => isStringAKeyword, isStringANonContextualKeyword: () => isStringANonContextualKeyword, isStringAndEmptyAnonymousObjectIntersection: () => isStringAndEmptyAnonymousObjectIntersection, isStringDoubleQuoted: () => isStringDoubleQuoted, @@ -183813,6 +179995,7 @@ __export(ts_exports2, { isStringTextContainingNode: () => isStringTextContainingNode, isSuperCall: () => isSuperCall, isSuperKeyword: () => isSuperKeyword, + isSuperOrSuperProperty: () => isSuperOrSuperProperty, isSuperProperty: () => isSuperProperty, isSupportedSourceFileName: () => isSupportedSourceFileName, isSwitchStatement: () => isSwitchStatement, @@ -183858,6 +180041,7 @@ __export(ts_exports2, { isTypeDeclaration: () => isTypeDeclaration, isTypeElement: () => isTypeElement, isTypeKeyword: () => isTypeKeyword, + isTypeKeywordToken: () => isTypeKeywordToken, isTypeKeywordTokenOrIdentifier: () => isTypeKeywordTokenOrIdentifier, isTypeLiteralNode: () => isTypeLiteralNode, isTypeNode: () => isTypeNode, @@ -183893,6 +180077,7 @@ __export(ts_exports2, { isVariableDeclarationInitializedToRequire: () => isVariableDeclarationInitializedToRequire, isVariableDeclarationList: () => isVariableDeclarationList, isVariableLike: () => isVariableLike, + isVariableLikeOrAccessor: () => isVariableLikeOrAccessor, isVariableStatement: () => isVariableStatement, isVoidExpression: () => isVoidExpression, isWatchSet: () => isWatchSet, @@ -183911,6 +180096,10 @@ __export(ts_exports2, { libMap: () => libMap, libs: () => libs, lineBreakPart: () => lineBreakPart, + linkNamePart: () => linkNamePart, + linkPart: () => linkPart, + linkTextPart: () => linkTextPart, + listFiles: () => listFiles, loadModuleFromGlobalCache: () => loadModuleFromGlobalCache, loadWithModeAwareCache: () => loadWithModeAwareCache, makeIdentifierFromModuleName: () => makeIdentifierFromModuleName, @@ -183920,6 +180109,7 @@ __export(ts_exports2, { map: () => map, mapAllOrFail: () => mapAllOrFail, mapDefined: () => mapDefined, + mapDefinedEntries: () => mapDefinedEntries, mapDefinedIterator: () => mapDefinedIterator, mapEntries: () => mapEntries, mapIterator: () => mapIterator, @@ -183929,20 +180119,18 @@ __export(ts_exports2, { matchPatternOrExact: () => matchPatternOrExact, matchedText: () => matchedText, matchesExclude: () => matchesExclude, - matchesExcludeWorker: () => matchesExcludeWorker, - maxBy: () => maxBy, maybeBind: () => maybeBind, maybeSetLocalizedDiagnosticMessages: () => maybeSetLocalizedDiagnosticMessages, memoize: () => memoize, + memoizeCached: () => memoizeCached, memoizeOne: () => memoizeOne, + memoizeWeak: () => memoizeWeak, + metadataHelper: () => metadataHelper, min: () => min, minAndMax: () => minAndMax, missingFileModifiedTime: () => missingFileModifiedTime, modifierToFlag: () => modifierToFlag, modifiersToFlags: () => modifiersToFlags, - moduleExportNameIsDefault: () => moduleExportNameIsDefault, - moduleExportNameTextEscaped: () => moduleExportNameTextEscaped, - moduleExportNameTextUnescaped: () => moduleExportNameTextUnescaped, moduleOptionDeclaration: () => moduleOptionDeclaration, moduleResolutionIsEqualTo: () => moduleResolutionIsEqualTo, moduleResolutionNameAndModeGetter: () => moduleResolutionNameAndModeGetter, @@ -183951,7 +180139,6 @@ __export(ts_exports2, { moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules, moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier, moduleSpecifiers: () => ts_moduleSpecifiers_exports, - moduleSupportsImportAttributes: () => moduleSupportsImportAttributes, moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier, moveEmitHelpers: () => moveEmitHelpers, moveRangeEnd: () => moveRangeEnd, @@ -183970,7 +180157,6 @@ __export(ts_exports2, { noTransformers: () => noTransformers, noTruncationMaximumTruncationLength: () => noTruncationMaximumTruncationLength, nodeCanBeDecorated: () => nodeCanBeDecorated, - nodeCoreModules: () => nodeCoreModules, nodeHasName: () => nodeHasName, nodeIsDecorated: () => nodeIsDecorated, nodeIsMissing: () => nodeIsMissing, @@ -183984,11 +180170,11 @@ __export(ts_exports2, { nodePosToString: () => nodePosToString, nodeSeenTracker: () => nodeSeenTracker, nodeStartsNewLexicalEnvironment: () => nodeStartsNewLexicalEnvironment, + nodeToDisplayParts: () => nodeToDisplayParts, noop: () => noop, noopFileWatcher: () => noopFileWatcher, normalizePath: () => normalizePath, normalizeSlashes: () => normalizeSlashes, - normalizeSpans: () => normalizeSpans, not: () => not, notImplemented: () => notImplemented, notImplementedResolver: () => notImplementedResolver, @@ -184003,11 +180189,13 @@ __export(ts_exports2, { optionsForBuild: () => optionsForBuild, optionsForWatch: () => optionsForWatch, optionsHaveChanges: () => optionsHaveChanges, + optionsHaveModuleResolutionChanges: () => optionsHaveModuleResolutionChanges, or: () => or, orderedRemoveItem: () => orderedRemoveItem, orderedRemoveItemAt: () => orderedRemoveItemAt, packageIdToPackageName: () => packageIdToPackageName, packageIdToString: () => packageIdToString, + paramHelper: () => paramHelper, parameterIsThisKeyword: () => parameterIsThisKeyword, parameterNamePart: () => parameterNamePart, parseBaseNodeFactory: () => parseBaseNodeFactory, @@ -184038,8 +180226,10 @@ __export(ts_exports2, { pathIsBareSpecifier: () => pathIsBareSpecifier, pathIsRelative: () => pathIsRelative, patternText: () => patternText, + perfLogger: () => perfLogger, performIncrementalCompilation: () => performIncrementalCompilation, performance: () => ts_performance_exports, + plainJSErrors: () => plainJSErrors, positionBelongsToNode: () => positionBelongsToNode, positionIsASICandidate: () => positionIsASICandidate, positionIsSynthesized: () => positionIsSynthesized, @@ -184052,6 +180242,7 @@ __export(ts_exports2, { programContainsEsModules: () => programContainsEsModules, programContainsModules: () => programContainsModules, projectReferenceIsEqualTo: () => projectReferenceIsEqualTo, + propKeyHelper: () => propKeyHelper, propertyNamePart: () => propertyNamePart, pseudoBigIntToString: () => pseudoBigIntToString, punctuationPart: () => punctuationPart, @@ -184074,6 +180265,7 @@ __export(ts_exports2, { rangeStartPositionsAreOnSameLine: () => rangeStartPositionsAreOnSameLine, readBuilderProgram: () => readBuilderProgram, readConfigFile: () => readConfigFile, + readHelper: () => readHelper, readJson: () => readJson, readJsonConfigFile: () => readJsonConfigFile, readJsonOrUndefined: () => readJsonOrUndefined, @@ -184084,7 +180276,7 @@ __export(ts_exports2, { reducePathComponents: () => reducePathComponents, refactor: () => ts_refactor_exports, regExpEscape: () => regExpEscape, - regularExpressionFlagToCharacterCode: () => regularExpressionFlagToCharacterCode, + regularExpressionFlagToCharacter: () => regularExpressionFlagToCharacter, relativeComplement: () => relativeComplement, removeAllComments: () => removeAllComments, removeEmitHelper: () => removeEmitHelper, @@ -184092,6 +180284,7 @@ __export(ts_exports2, { removeFileExtension: () => removeFileExtension, removeIgnoredPath: () => removeIgnoredPath, removeMinAndVersionNumbers: () => removeMinAndVersionNumbers, + removeOptionality: () => removeOptionality, removePrefix: () => removePrefix, removeSuffix: () => removeSuffix, removeTrailingDirectorySeparator: () => removeTrailingDirectorySeparator, @@ -184110,17 +180303,20 @@ __export(ts_exports2, { resolveTripleslashReference: () => resolveTripleslashReference, resolveTypeReferenceDirective: () => resolveTypeReferenceDirective, resolvingEmptyArray: () => resolvingEmptyArray, + restHelper: () => restHelper, returnFalse: () => returnFalse, returnNoopFileWatcher: () => returnNoopFileWatcher, returnTrue: () => returnTrue, returnUndefined: () => returnUndefined, returnsPromise: () => returnsPromise, - rewriteModuleSpecifier: () => rewriteModuleSpecifier, + runInitializersHelper: () => runInitializersHelper, sameFlatMap: () => sameFlatMap, sameMap: () => sameMap, sameMapping: () => sameMapping, + scanShebangTrivia: () => scanShebangTrivia, scanTokenAtPosition: () => scanTokenAtPosition, scanner: () => scanner, + screenStartingMessageCodes: () => screenStartingMessageCodes, semanticDiagnosticsOptionDeclarations: () => semanticDiagnosticsOptionDeclarations, serializeCompilerOptions: () => serializeCompilerOptions, server: () => ts_server_exports3, @@ -184128,13 +180324,16 @@ __export(ts_exports2, { setCommentRange: () => setCommentRange, setConfigFileInOptions: () => setConfigFileInOptions, setConstantValue: () => setConstantValue, + setEachParent: () => setEachParent, setEmitFlags: () => setEmitFlags, + setFunctionNameHelper: () => setFunctionNameHelper, setGetSourceFileAsHashVersioned: () => setGetSourceFileAsHashVersioned, setIdentifierAutoGenerate: () => setIdentifierAutoGenerate, setIdentifierGeneratedImportReference: () => setIdentifierGeneratedImportReference, setIdentifierTypeArguments: () => setIdentifierTypeArguments, setInternalEmitFlags: () => setInternalEmitFlags, setLocalizedDiagnosticMessages: () => setLocalizedDiagnosticMessages, + setModuleDefaultHelper: () => setModuleDefaultHelper, setNodeChildren: () => setNodeChildren, setNodeFlags: () => setNodeFlags, setObjectAllocator: () => setObjectAllocator, @@ -184161,9 +180360,9 @@ __export(ts_exports2, { setValueDeclaration: () => setValueDeclaration, shouldAllowImportingTsExtension: () => shouldAllowImportingTsExtension, shouldPreserveConstEnums: () => shouldPreserveConstEnums, - shouldRewriteModuleSpecifier: () => shouldRewriteModuleSpecifier, shouldUseUriStyleNodeCoreModules: () => shouldUseUriStyleNodeCoreModules, showModuleSpecifier: () => showModuleSpecifier, + signatureHasLiteralTypes: () => signatureHasLiteralTypes, signatureHasRestParameter: () => signatureHasRestParameter, signatureToDisplayParts: () => signatureToDisplayParts, single: () => single, @@ -184172,17 +180371,18 @@ __export(ts_exports2, { singleOrMany: () => singleOrMany, singleOrUndefined: () => singleOrUndefined, skipAlias: () => skipAlias, + skipAssertions: () => skipAssertions, skipConstraint: () => skipConstraint, skipOuterExpressions: () => skipOuterExpressions, skipParentheses: () => skipParentheses, skipPartiallyEmittedExpressions: () => skipPartiallyEmittedExpressions, skipTrivia: () => skipTrivia, skipTypeChecking: () => skipTypeChecking, - skipTypeCheckingIgnoringNoCheck: () => skipTypeCheckingIgnoringNoCheck, skipTypeParentheses: () => skipTypeParentheses, skipWhile: () => skipWhile, sliceAfter: () => sliceAfter, some: () => some, + sort: () => sort, sortAndDeduplicate: () => sortAndDeduplicate, sortAndDeduplicateDiagnostics: () => sortAndDeduplicateDiagnostics, sourceFileAffectingCompilerOptions: () => sourceFileAffectingCompilerOptions, @@ -184191,6 +180391,8 @@ __export(ts_exports2, { sourceMapCommentRegExpDontCareLineStart: () => sourceMapCommentRegExpDontCareLineStart, spacePart: () => spacePart, spanMap: () => spanMap, + spreadArrayHelper: () => spreadArrayHelper, + stableSort: () => stableSort, startEndContainsRange: () => startEndContainsRange, startEndOverlapsWithStartEnd: () => startEndOverlapsWithStartEnd, startOnNewLine: () => startOnNewLine, @@ -184203,8 +180405,10 @@ __export(ts_exports2, { stringToToken: () => stringToToken, stripQuotes: () => stripQuotes, supportedDeclarationExtensions: () => supportedDeclarationExtensions, + supportedJSExtensions: () => supportedJSExtensions, supportedJSExtensionsFlat: () => supportedJSExtensionsFlat, supportedLocaleDirectories: () => supportedLocaleDirectories, + supportedTSExtensions: () => supportedTSExtensions, supportedTSExtensionsFlat: () => supportedTSExtensionsFlat, supportedTSImplementationExtensions: () => supportedTSImplementationExtensions, suppressLeadingAndTrailingTrivia: () => suppressLeadingAndTrailingTrivia, @@ -184213,13 +180417,16 @@ __export(ts_exports2, { symbolEscapedNameNoDefault: () => symbolEscapedNameNoDefault, symbolName: () => symbolName, symbolNameNoDefault: () => symbolNameNoDefault, + symbolPart: () => symbolPart, symbolToDisplayParts: () => symbolToDisplayParts, + syntaxMayBeASICandidate: () => syntaxMayBeASICandidate, + syntaxRequiresTrailingSemicolonOrASI: () => syntaxRequiresTrailingSemicolonOrASI, sys: () => sys, sysLog: () => sysLog, tagNamesAreEquivalent: () => tagNamesAreEquivalent, takeWhile: () => takeWhile, targetOptionDeclaration: () => targetOptionDeclaration, - targetToLibMap: () => targetToLibMap, + templateObjectHelper: () => templateObjectHelper, testFormatSettings: () => testFormatSettings, textChangeRangeIsUnchanged: () => textChangeRangeIsUnchanged, textChangeRangeNewSpan: () => textChangeRangeNewSpan, @@ -184227,10 +180434,7 @@ __export(ts_exports2, { textOrKeywordPart: () => textOrKeywordPart, textPart: () => textPart, textRangeContainsPositionInclusive: () => textRangeContainsPositionInclusive, - textRangeContainsTextSpan: () => textRangeContainsTextSpan, - textRangeIntersectsWithTextSpan: () => textRangeIntersectsWithTextSpan, textSpanContainsPosition: () => textSpanContainsPosition, - textSpanContainsTextRange: () => textSpanContainsTextRange, textSpanContainsTextSpan: () => textSpanContainsTextSpan, textSpanEnd: () => textSpanEnd, textSpanIntersection: () => textSpanIntersection, @@ -184248,9 +180452,9 @@ __export(ts_exports2, { toBuilderStateFileInfoForMultiEmit: () => toBuilderStateFileInfoForMultiEmit, toEditorSettings: () => toEditorSettings, toFileNameLowerCase: () => toFileNameLowerCase, + toLowerCase: () => toLowerCase, toPath: () => toPath, toProgramEmitPending: () => toProgramEmitPending, - toSorted: () => toSorted, tokenIsIdentifierOrKeyword: () => tokenIsIdentifierOrKeyword, tokenIsIdentifierOrKeywordOrGreaterThan: () => tokenIsIdentifierOrKeywordOrGreaterThan, tokenToString: () => tokenToString, @@ -184272,11 +180476,11 @@ __export(ts_exports2, { transformESDecorators: () => transformESDecorators, transformESNext: () => transformESNext, transformGenerators: () => transformGenerators, - transformImpliedNodeFormatDependentModule: () => transformImpliedNodeFormatDependentModule, transformJsx: () => transformJsx, transformLegacyDecorators: () => transformLegacyDecorators, transformModule: () => transformModule, transformNamedEvaluation: () => transformNamedEvaluation, + transformNodeModule: () => transformNodeModule, transformNodes: () => transformNodes, transformSystemModule: () => transformSystemModule, transformTypeScript: () => transformTypeScript, @@ -184303,6 +180507,7 @@ __export(ts_exports2, { tryGetPropertyNameOfBindingOrAssignmentElement: () => tryGetPropertyNameOfBindingOrAssignmentElement, tryGetSourceMappingURL: () => tryGetSourceMappingURL, tryGetTextOfPropertyName: () => tryGetTextOfPropertyName, + tryIOAndConsumeErrors: () => tryIOAndConsumeErrors, tryParseJson: () => tryParseJson, tryParsePattern: () => tryParsePattern, tryParsePatterns: () => tryParsePatterns, @@ -184313,7 +180518,6 @@ __export(ts_exports2, { tryRemoveExtension: () => tryRemoveExtension, tryRemovePrefix: () => tryRemovePrefix, tryRemoveSuffix: () => tryRemoveSuffix, - tscBuildOption: () => tscBuildOption, typeAcquisitionDeclarations: () => typeAcquisitionDeclarations, typeAliasNamePart: () => typeAliasNamePart, typeDirectiveIsEqualTo: () => typeDirectiveIsEqualTo, @@ -184325,7 +180529,7 @@ __export(ts_exports2, { unescapeLeadingUnderscores: () => unescapeLeadingUnderscores, unmangleScopedPackageName: () => unmangleScopedPackageName, unorderedRemoveItem: () => unorderedRemoveItem, - unprefixedNodeCoreModules: () => unprefixedNodeCoreModules, + unorderedRemoveItemAt: () => unorderedRemoveItemAt, unreachableCodeIsError: () => unreachableCodeIsError, unsetNodeChildren: () => unsetNodeChildren, unusedLabelIsError: () => unusedLabelIsError, @@ -184338,9 +180542,11 @@ __export(ts_exports2, { updateSharedExtendedConfigFileWatcher: () => updateSharedExtendedConfigFileWatcher, updateSourceFile: () => updateSourceFile, updateWatchingWildcardDirectories: () => updateWatchingWildcardDirectories, + usesExtensionsOnImports: () => usesExtensionsOnImports, usingSingleLineStringWriter: () => usingSingleLineStringWriter, utf16EncodeAsString: () => utf16EncodeAsString, validateLocaleAndSetLanguage: () => validateLocaleAndSetLanguage, + valuesHelper: () => valuesHelper, version: () => version, versionMajorMinor: () => versionMajorMinor, visitArray: () => visitArray, @@ -184353,6 +180559,7 @@ __export(ts_exports2, { visitNodes: () => visitNodes2, visitParameterList: () => visitParameterList, walkUpBindingElementsAndPatterns: () => walkUpBindingElementsAndPatterns, + walkUpLexicalEnvironments: () => walkUpLexicalEnvironments, walkUpOuterExpressions: () => walkUpOuterExpressions, walkUpParenthesizedExpressions: () => walkUpParenthesizedExpressions, walkUpParenthesizedTypes: () => walkUpParenthesizedTypes, @@ -184505,19 +180712,20 @@ __export(ts_server_exports3, { LogLevel: () => LogLevel2, Msg: () => Msg, OpenFileInfoTelemetryEvent: () => OpenFileInfoTelemetryEvent, - Project: () => Project2, + Project: () => Project3, ProjectInfoTelemetryEvent: () => ProjectInfoTelemetryEvent, ProjectKind: () => ProjectKind, ProjectLanguageServiceStateEvent: () => ProjectLanguageServiceStateEvent, ProjectLoadingFinishEvent: () => ProjectLoadingFinishEvent, ProjectLoadingStartEvent: () => ProjectLoadingStartEvent, - ProjectService: () => ProjectService2, + ProjectService: () => ProjectService3, ProjectsUpdatedInBackgroundEvent: () => ProjectsUpdatedInBackgroundEvent, ScriptInfo: () => ScriptInfo, ScriptVersionCache: () => ScriptVersionCache, Session: () => Session3, TextStorage: () => TextStorage, ThrottledOperations: () => ThrottledOperations, + TypingsCache: () => TypingsCache, TypingsInstallerAdapter: () => TypingsInstallerAdapter, allFilesAreJsOrDts: () => allFilesAreJsOrDts, allRootFilesAreJsOrDts: () => allRootFilesAreJsOrDts, @@ -184536,10 +180744,10 @@ __export(ts_server_exports3, { createSortedArray: () => createSortedArray2, emptyArray: () => emptyArray2, findArgument: () => findArgument, + forEachResolvedProjectReferenceProject: () => forEachResolvedProjectReferenceProject, formatDiagnosticToProtocol: () => formatDiagnosticToProtocol, formatMessage: () => formatMessage2, getBaseConfigFileName: () => getBaseConfigFileName, - getDetailWatchInfo: () => getDetailWatchInfo, getLocationInNewDocument: () => getLocationInNewDocument, hasArgument: () => hasArgument, hasNoTypeScriptSource: () => hasNoTypeScriptSource, @@ -184562,8 +180770,7 @@ __export(ts_server_exports3, { nullCancellationToken: () => nullCancellationToken, nullTypingsInstaller: () => nullTypingsInstaller, protocol: () => ts_server_protocol_exports, - scriptInfoIsContainedByBackgroundProject: () => scriptInfoIsContainedByBackgroundProject, - scriptInfoIsContainedByDeferredClosedProject: () => scriptInfoIsContainedByDeferredClosedProject, + removeSorted: () => removeSorted, stringifyIndented: () => stringifyIndented, toEvent: () => toEvent, toNormalizedPath: () => toNormalizedPath, @@ -184630,6 +180837,7 @@ var TypingsInstaller = class { this.missingTypingsSet = /* @__PURE__ */ new Set(); this.knownCachesSet = /* @__PURE__ */ new Set(); this.projectWatchers = /* @__PURE__ */ new Map(); + /** @internal */ this.pendingRunRequests = []; this.installRunCount = 1; this.inFlightRequestCount = 0; @@ -185104,11 +181312,14 @@ var ThrottledOperations = class _ThrottledOperations { return this.pendingTimeouts.delete(operationId); } static run(operationId, self, cb) { + var _a, _b; + (_a = perfLogger) == null ? void 0 : _a.logStartScheduledOperation(operationId); self.pendingTimeouts.delete(operationId); if (self.logger) { self.logger.info(`Running: ${operationId}`); } cb(); + (_b = perfLogger) == null ? void 0 : _b.logStopScheduledOperation(); } }; var GcTimer = class _GcTimer { @@ -185124,7 +181335,9 @@ var GcTimer = class _GcTimer { this.timerId = this.host.setTimeout(_GcTimer.run, this.delay, this); } static run(self) { + var _a, _b; self.timerId = void 0; + (_a = perfLogger) == null ? void 0 : _a.logStartScheduledOperation("GC collect"); const log = self.logger.hasLevel(2 /* requestTime */); const before = log && self.host.getMemoryUsage(); self.host.gc(); @@ -185132,12 +181345,26 @@ var GcTimer = class _GcTimer { const after = self.host.getMemoryUsage(); self.logger.perftrc(`GC::before ${before}, after ${after}`); } + (_b = perfLogger) == null ? void 0 : _b.logStopScheduledOperation(); } }; function getBaseConfigFileName(configFilePath) { const base = getBaseFileName(configFilePath); return base === "tsconfig.json" || base === "jsconfig.json" ? base : void 0; } +function removeSorted(array, remove, compare) { + if (!array || array.length === 0) { + return; + } + if (array[0] === remove) { + array.splice(0, 1); + return; + } + const removeIndex = binarySearch(array, remove, identity, compare); + if (removeIndex >= 0) { + array.splice(removeIndex, 1); + } +} // src/server/_namespaces/ts.server.protocol.ts var ts_server_protocol_exports = {}; @@ -185152,7 +181379,7 @@ __export(ts_server_protocol_exports, { NewLineKind: () => NewLineKind2, OrganizeImportsMode: () => OrganizeImportsMode, PollingWatchKind: () => PollingWatchKind2, - ScriptTarget: () => ScriptTarget11, + ScriptTarget: () => ScriptTarget10, SemicolonPreference: () => SemicolonPreference, WatchDirectoryKind: () => WatchDirectoryKind2, WatchFileKind: () => WatchFileKind2 @@ -185249,7 +181476,6 @@ var CommandTypes = /* @__PURE__ */ ((CommandTypes2) => { CommandTypes2["GetApplicableRefactors"] = "getApplicableRefactors"; CommandTypes2["GetEditsForRefactor"] = "getEditsForRefactor"; CommandTypes2["GetMoveToRefactoringFileSuggestions"] = "getMoveToRefactoringFileSuggestions"; - CommandTypes2["PreparePasteEdits"] = "preparePasteEdits"; CommandTypes2["GetPasteEdits"] = "getPasteEdits"; CommandTypes2["GetEditsForRefactorFull"] = "getEditsForRefactor-full"; CommandTypes2["OrganizeImports"] = "organizeImports"; @@ -185273,7 +181499,6 @@ var CommandTypes = /* @__PURE__ */ ((CommandTypes2) => { CommandTypes2["ProvideInlayHints"] = "provideInlayHints"; CommandTypes2["WatchChange"] = "watchChange"; CommandTypes2["MapCode"] = "mapCode"; - CommandTypes2["CopilotRelated"] = "copilotRelated"; return CommandTypes2; })(CommandTypes || {}); var WatchFileKind2 = /* @__PURE__ */ ((WatchFileKind3) => { @@ -185326,7 +181551,6 @@ var ModuleKind2 = /* @__PURE__ */ ((ModuleKind3) => { ModuleKind3["ES2022"] = "es2022"; ModuleKind3["ESNext"] = "esnext"; ModuleKind3["Node16"] = "node16"; - ModuleKind3["Node18"] = "node18"; ModuleKind3["NodeNext"] = "nodenext"; ModuleKind3["Preserve"] = "preserve"; return ModuleKind3; @@ -185346,25 +181570,24 @@ var NewLineKind2 = /* @__PURE__ */ ((NewLineKind3) => { NewLineKind3["Lf"] = "Lf"; return NewLineKind3; })(NewLineKind2 || {}); -var ScriptTarget11 = /* @__PURE__ */ ((ScriptTarget12) => { - ScriptTarget12["ES3"] = "es3"; - ScriptTarget12["ES5"] = "es5"; - ScriptTarget12["ES6"] = "es6"; - ScriptTarget12["ES2015"] = "es2015"; - ScriptTarget12["ES2016"] = "es2016"; - ScriptTarget12["ES2017"] = "es2017"; - ScriptTarget12["ES2018"] = "es2018"; - ScriptTarget12["ES2019"] = "es2019"; - ScriptTarget12["ES2020"] = "es2020"; - ScriptTarget12["ES2021"] = "es2021"; - ScriptTarget12["ES2022"] = "es2022"; - ScriptTarget12["ES2023"] = "es2023"; - ScriptTarget12["ES2024"] = "es2024"; - ScriptTarget12["ESNext"] = "esnext"; - ScriptTarget12["JSON"] = "json"; - ScriptTarget12["Latest"] = "esnext" /* ESNext */; - return ScriptTarget12; -})(ScriptTarget11 || {}); +var ScriptTarget10 = /* @__PURE__ */ ((ScriptTarget11) => { + ScriptTarget11["ES3"] = "es3"; + ScriptTarget11["ES5"] = "es5"; + ScriptTarget11["ES6"] = "es6"; + ScriptTarget11["ES2015"] = "es2015"; + ScriptTarget11["ES2016"] = "es2016"; + ScriptTarget11["ES2017"] = "es2017"; + ScriptTarget11["ES2018"] = "es2018"; + ScriptTarget11["ES2019"] = "es2019"; + ScriptTarget11["ES2020"] = "es2020"; + ScriptTarget11["ES2021"] = "es2021"; + ScriptTarget11["ES2022"] = "es2022"; + ScriptTarget11["ES2023"] = "es2023"; + ScriptTarget11["ESNext"] = "esnext"; + ScriptTarget11["JSON"] = "json"; + ScriptTarget11["Latest"] = "esnext" /* ESNext */; + return ScriptTarget11; +})(ScriptTarget10 || {}); { } @@ -185804,6 +182027,13 @@ var ScriptInfo = class { isOrphan() { return this.deferredDelete || !forEach(this.containingProjects, (p) => !p.isOrphan()); } + /** @internal */ + isContainedByBackgroundProject() { + return some( + this.containingProjects, + isBackgroundProject + ); + } /** * @param line 1 based index */ @@ -185841,18 +182071,102 @@ function failIfInvalidLocation(location) { Debug.assert(location.line > 0, `Expected line to be non-${location.line === 0 ? "zero" : "negative"}`); Debug.assert(location.offset > 0, `Expected offset to be non-${location.offset === 0 ? "zero" : "negative"}`); } -function scriptInfoIsContainedByBackgroundProject(info) { - return some( - info.containingProjects, - isBackgroundProject - ); + +// src/server/typingsCache.ts +var nullTypingsInstaller = { + isKnownTypesPackageName: returnFalse, + // Should never be called because we never provide a types registry. + installPackage: notImplemented, + enqueueInstallTypingsRequest: noop, + attach: noop, + onProjectClosed: noop, + globalTypingsCacheLocation: void 0 + // TODO: GH#18217 +}; +function setIsEqualTo(arr1, arr2) { + if (arr1 === arr2) { + return true; + } + if ((arr1 || emptyArray2).length === 0 && (arr2 || emptyArray2).length === 0) { + return true; + } + const set = /* @__PURE__ */ new Map(); + let unique = 0; + for (const v of arr1) { + if (set.get(v) !== true) { + set.set(v, true); + unique++; + } + } + for (const v of arr2) { + const isSet = set.get(v); + if (isSet === void 0) { + return false; + } + if (isSet === true) { + set.set(v, false); + unique--; + } + } + return unique === 0; } -function scriptInfoIsContainedByDeferredClosedProject(info) { - return some( - info.containingProjects, - isProjectDeferredClose - ); +function typeAcquisitionChanged(opt1, opt2) { + return opt1.enable !== opt2.enable || !setIsEqualTo(opt1.include, opt2.include) || !setIsEqualTo(opt1.exclude, opt2.exclude); } +function compilerOptionsChanged(opt1, opt2) { + return getAllowJSCompilerOption(opt1) !== getAllowJSCompilerOption(opt2); +} +function unresolvedImportsChanged(imports1, imports2) { + if (imports1 === imports2) { + return false; + } + return !arrayIsEqualTo(imports1, imports2); +} +var TypingsCache = class { + constructor(installer) { + this.installer = installer; + this.perProjectCache = /* @__PURE__ */ new Map(); + } + isKnownTypesPackageName(name) { + return this.installer.isKnownTypesPackageName(name); + } + installPackage(options) { + return this.installer.installPackage(options); + } + enqueueInstallTypingsForProject(project, unresolvedImports, forceRefresh) { + const typeAcquisition = project.getTypeAcquisition(); + if (!typeAcquisition || !typeAcquisition.enable) { + return; + } + const entry = this.perProjectCache.get(project.getProjectName()); + if (forceRefresh || !entry || typeAcquisitionChanged(typeAcquisition, entry.typeAcquisition) || compilerOptionsChanged(project.getCompilationSettings(), entry.compilerOptions) || unresolvedImportsChanged(unresolvedImports, entry.unresolvedImports)) { + this.perProjectCache.set(project.getProjectName(), { + compilerOptions: project.getCompilationSettings(), + typeAcquisition, + typings: entry ? entry.typings : emptyArray2, + unresolvedImports, + poisoned: true + }); + this.installer.enqueueInstallTypingsRequest(project, typeAcquisition, unresolvedImports); + } + } + updateTypingsForProject(projectName, compilerOptions, typeAcquisition, unresolvedImports, newTypings) { + const typings = sort(newTypings); + this.perProjectCache.set(projectName, { + compilerOptions, + typeAcquisition, + typings, + unresolvedImports, + poisoned: false + }); + return !typeAcquisition || !typeAcquisition.enable ? emptyArray2 : typings; + } + onProjectClosed(project) { + if (this.perProjectCache.delete(project.getProjectName())) { + this.installer.onProjectClosed(project); + } + } +}; // src/server/project.ts var ProjectKind = /* @__PURE__ */ ((ProjectKind2) => { @@ -185928,50 +182242,12 @@ function hasNoTypeScriptSource(fileNames) { function isGeneratedFileWatcher(watch) { return watch.generatedFilePath !== void 0; } -function setIsEqualTo(arr1, arr2) { - if (arr1 === arr2) { - return true; - } - if ((arr1 || emptyArray2).length === 0 && (arr2 || emptyArray2).length === 0) { - return true; - } - const set = /* @__PURE__ */ new Map(); - let unique = 0; - for (const v of arr1) { - if (set.get(v) !== true) { - set.set(v, true); - unique++; - } - } - for (const v of arr2) { - const isSet = set.get(v); - if (isSet === void 0) { - return false; - } - if (isSet === true) { - set.set(v, false); - unique--; - } - } - return unique === 0; -} -function typeAcquisitionChanged(opt1, opt2) { - return opt1.enable !== opt2.enable || !setIsEqualTo(opt1.include, opt2.include) || !setIsEqualTo(opt1.exclude, opt2.exclude); -} -function compilerOptionsChanged(opt1, opt2) { - return getAllowJSCompilerOption(opt1) !== getAllowJSCompilerOption(opt2); -} -function unresolvedImportsChanged(imports1, imports2) { - if (imports1 === imports2) { - return false; - } - return !arrayIsEqualTo(imports1, imports2); -} -var Project2 = class _Project { +var Project3 = class _Project { /** @internal */ - constructor(projectName, projectKind, projectService, hasExplicitListOfFiles, lastFileExceededProgramSize, compilerOptions, compileOnSaveEnabled, watchOptions, directoryStructureHost, currentDirectory) { + constructor(projectName, projectKind, projectService, documentRegistry, hasExplicitListOfFiles, lastFileExceededProgramSize, compilerOptions, compileOnSaveEnabled, watchOptions, directoryStructureHost, currentDirectory) { this.projectKind = projectKind; this.projectService = projectService; + this.documentRegistry = documentRegistry; this.compilerOptions = compilerOptions; this.compileOnSaveEnabled = compileOnSaveEnabled; this.watchOptions = watchOptions; @@ -185986,7 +182262,9 @@ var Project2 = class _Project { * @internal */ this.cachedUnresolvedImportsPerFile = /* @__PURE__ */ new Map(); + /** @internal */ this.hasAddedorRemovedFiles = false; + /** @internal */ this.hasAddedOrRemovedSymlinks = false; /** * Last version that was reported. @@ -186006,12 +182284,12 @@ var Project2 = class _Project { * @internal */ this.projectStateVersion = 0; - /** @internal */ - this.initialLoadPending = false; + this.isInitialLoadPending = returnFalse; /** @internal */ this.dirty = false; /** @internal */ this.typingFiles = emptyArray2; + /** @internal */ this.moduleSpecifierCache = createModuleSpecifierCache(this); /** @internal */ this.createHash = maybeBind(this.projectService.host, this.projectService.host.createHash); @@ -186019,7 +182297,6 @@ var Project2 = class _Project { this.globalCacheResolutionModuleName = ts_JsTyping_exports.nonRelativeModuleNameForTypingCache; /** @internal */ this.updateFromProjectInProgress = false; - projectService.logger.info(`Creating ${ProjectKind[projectKind]}Project: ${projectName}, currentDirectory: ${currentDirectory}`); this.projectName = projectName; this.directoryStructureHost = directoryStructureHost; this.currentDirectory = this.projectService.getNormalizedAbsolutePath(currentDirectory); @@ -186058,18 +182335,13 @@ var Project2 = class _Project { this.trace = (s) => host.trace(s); } this.realpath = maybeBind(host, host.realpath); - this.preferNonRecursiveWatch = this.projectService.canUseWatchEvents || host.preferNonRecursiveWatch; this.resolutionCache = createResolutionCache( this, this.currentDirectory, /*logChangesWhenResolvingModule*/ true ); - this.languageService = createLanguageService( - this, - this.projectService.documentRegistry, - this.projectService.serverMode - ); + this.languageService = createLanguageService(this, this.documentRegistry, this.projectService.serverMode); if (lastFileExceededProgramSize) { this.disableLanguageService(lastFileExceededProgramSize); } @@ -186136,14 +182408,17 @@ var Project2 = class _Project { return { pluginConfigEntry, resolvedModule, errorLogs }; } isKnownTypesPackageName(name) { - return this.projectService.typingsInstaller.isKnownTypesPackageName(name); + return this.typingsCache.isKnownTypesPackageName(name); } installPackage(options) { - return this.projectService.typingsInstaller.installPackage({ ...options, projectName: this.projectName, projectRootPath: this.toPath(this.currentDirectory) }); + return this.typingsCache.installPackage({ ...options, projectName: this.projectName, projectRootPath: this.toPath(this.currentDirectory) }); } /** @internal */ getGlobalTypingsCacheLocation() { - return this.getTypeAcquisition().enable ? this.projectService.typingsInstaller.globalTypingsCacheLocation : void 0; + return this.getGlobalCache(); + } + get typingsCache() { + return this.projectService.typingsCache; } /** @internal */ getSymlinkCache() { @@ -186249,7 +182524,7 @@ var Project2 = class _Project { } fileExists(file) { const path = this.toPath(file); - return !!this.projectService.getScriptInfoForPath(path) || !this.isWatchedMissingFile(path) && this.directoryStructureHost.fileExists(file); + return !this.isWatchedMissingFile(path) && this.directoryStructureHost.fileExists(file); } /** @internal */ resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames) { @@ -186358,6 +182633,10 @@ var Project2 = class _Project { this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this); } /** @internal */ + getGlobalCache() { + return this.getTypeAcquisition().enable ? this.projectService.typingsInstaller.globalTypingsCacheLocation : void 0; + } + /** @internal */ fileIsOpen(filePath) { return this.projectService.openFiles.has(filePath); } @@ -186512,13 +182791,13 @@ var Project2 = class _Project { return this.projectName; } removeLocalTypingsFromTypeAcquisition(newTypeAcquisition) { - if (!newTypeAcquisition.enable || !newTypeAcquisition.include) { + if (!newTypeAcquisition || !newTypeAcquisition.include) { return newTypeAcquisition; } return { ...newTypeAcquisition, include: this.removeExistingTypings(newTypeAcquisition.include) }; } getExternalFiles(updateLevel) { - return toSorted(flatMap(this.plugins, (plugin) => { + return sort(flatMap(this.plugins, (plugin) => { if (typeof plugin.module.getExternalFiles !== "function") return; try { return plugin.module.getExternalFiles(this, updateLevel || 0 /* Update */); @@ -186543,8 +182822,7 @@ var Project2 = class _Project { } close() { var _a; - if (this.typingsCache) this.projectService.typingsInstaller.onProjectClosed(this); - this.typingsCache = void 0; + this.projectService.typingsCache.onProjectClosed(this); this.closeWatchingTypingLocations(); this.cleanupProgram(); forEach(this.externalFiles, (externalFile) => this.detachScriptInfoIfNotRoot(externalFile)); @@ -186760,12 +183038,19 @@ var Project2 = class _Project { } /** @internal */ onAutoImportProviderSettingsChanged() { - this.markAutoImportProviderAsDirty(); + var _a; + if (this.autoImportProviderHost === false) { + this.autoImportProviderHost = void 0; + } else { + (_a = this.autoImportProviderHost) == null ? void 0 : _a.markAsDirty(); + } } /** @internal */ onPackageJsonChange() { this.moduleSpecifierCache.clear(); - this.markAutoImportProviderAsDirty(); + if (this.autoImportProviderHost) { + this.autoImportProviderHost.markAsDirty(); + } } /** @internal */ onFileAddedOrRemoved(isSymlink) { @@ -186779,12 +183064,6 @@ var Project2 = class _Project { this.hasAddedOrRemovedSymlinks = true; } /** @internal */ - onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath, newSourceFileByResolvedPath) { - if (!newSourceFileByResolvedPath || oldSourceFile.resolvedPath === oldSourceFile.path && newSourceFileByResolvedPath.resolvedPath !== oldSourceFile.path) { - this.detachScriptInfoFromProject(oldSourceFile.fileName, hasSourceFileByPath); - } - } - /** @internal */ updateFromProject() { updateProjectIfDirty(this); } @@ -186793,8 +183072,9 @@ var Project2 = class _Project { * @returns: true if set of files in the project stays the same and false - otherwise. */ updateGraph() { - var _a, _b; + var _a, _b, _c, _d; (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "updateGraph", { name: this.projectName, kind: ProjectKind[this.projectKind] }); + (_b = perfLogger) == null ? void 0 : _b.logStartUpdateGraph(); this.resolutionCache.startRecordingFilesWithChangedResolutions(); const hasNewProgram = this.updateGraphWorker(); const hasAddedorRemovedFiles = this.hasAddedorRemovedFiles; @@ -186808,7 +183088,7 @@ var Project2 = class _Project { if (hasNewProgram || changedFiles.length) { this.lastCachedUnresolvedImportsList = getUnresolvedImports(this.program, this.cachedUnresolvedImportsPerFile); } - this.enqueueInstallTypingsForProject(hasAddedorRemovedFiles); + this.projectService.typingsCache.enqueueInstallTypingsForProject(this, this.lastCachedUnresolvedImportsList, hasAddedorRemovedFiles); } else { this.lastCachedUnresolvedImportsList = void 0; } @@ -186822,33 +183102,12 @@ var Project2 = class _Project { if (isFirstProgramLoad) { this.getPackageJsonAutoImportProvider(); } - (_b = tracing) == null ? void 0 : _b.pop(); + (_c = perfLogger) == null ? void 0 : _c.logStopUpdateGraph(); + (_d = tracing) == null ? void 0 : _d.pop(); return !hasNewProgram; } /** @internal */ - enqueueInstallTypingsForProject(forceRefresh) { - const typeAcquisition = this.getTypeAcquisition(); - if (!typeAcquisition || !typeAcquisition.enable || this.projectService.typingsInstaller === nullTypingsInstaller) { - return; - } - const entry = this.typingsCache; - if (forceRefresh || !entry || typeAcquisitionChanged(typeAcquisition, entry.typeAcquisition) || compilerOptionsChanged(this.getCompilationSettings(), entry.compilerOptions) || unresolvedImportsChanged(this.lastCachedUnresolvedImportsList, entry.unresolvedImports)) { - this.typingsCache = { - compilerOptions: this.getCompilationSettings(), - typeAcquisition, - unresolvedImports: this.lastCachedUnresolvedImportsList - }; - this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this, typeAcquisition, this.lastCachedUnresolvedImportsList); - } - } - /** @internal */ - updateTypingFiles(compilerOptions, typeAcquisition, unresolvedImports, newTypings) { - this.typingsCache = { - compilerOptions, - typeAcquisition, - unresolvedImports - }; - const typingFiles = !typeAcquisition || !typeAcquisition.enable ? emptyArray2 : toSorted(newTypings); + updateTypingFiles(typingFiles) { if (enumerateInsertsAndDeletes( typingFiles, this.typingFiles, @@ -186862,10 +183121,12 @@ var Project2 = class _Project { this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this); } } + /** @internal */ closeWatchingTypingLocations() { if (this.typingWatchers) clearMap(this.typingWatchers, closeFileWatcher); this.typingWatchers = void 0; } + /** @internal */ onTypingInstallerWatchInvoke() { this.typingWatchers.isInvoked = true; this.projectService.updateTypingsForProject({ projectName: this.getProjectName(), kind: ActionInvalidate }); @@ -186887,15 +183148,14 @@ var Project2 = class _Project { const canonicalPath = this.toPath(path); toRemove.delete(canonicalPath); if (!this.typingWatchers.has(canonicalPath)) { - const watchType = typingsWatcherType === "FileWatcher" /* FileWatcher */ ? WatchType.TypingInstallerLocationFile : WatchType.TypingInstallerLocationDirectory; this.typingWatchers.set( canonicalPath, - canWatchDirectoryOrFilePath(canonicalPath) ? typingsWatcherType === "FileWatcher" /* FileWatcher */ ? this.projectService.watchFactory.watchFile( + typingsWatcherType === "FileWatcher" /* FileWatcher */ ? this.projectService.watchFactory.watchFile( path, () => !this.typingWatchers.isInvoked ? this.onTypingInstallerWatchInvoke() : this.writeLog(`TypingWatchers already invoked`), 2e3 /* High */, this.projectService.getWatchOptions(this), - watchType, + WatchType.TypingInstallerLocationFile, this ) : this.projectService.watchFactory.watchDirectory( path, @@ -186907,9 +183167,9 @@ var Project2 = class _Project { }, 1 /* Recursive */, this.projectService.getWatchOptions(this), - watchType, + WatchType.TypingInstallerLocationDirectory, this - ) : (this.writeLog(`Skipping watcher creation at ${path}:: ${getDetailWatchInfo(watchType, this)}`), noopFileWatcher) + ) ); } }; @@ -186944,9 +183204,8 @@ var Project2 = class _Project { return this.program; } removeExistingTypings(include) { - if (!include.length) return include; - const existing = getAutomaticTypeDirectiveNames(this.getCompilerOptions(), this); - return filter(include, (i) => !existing.includes(i)); + const existing = getAutomaticTypeDirectiveNames(this.getCompilerOptions(), this.directoryStructureHost); + return include.filter((i) => !existing.includes(i)); } updateGraphWorker() { var _a, _b; @@ -186970,6 +183229,30 @@ var Project2 = class _Project { let hasNewProgram = false; if (this.program && (!oldProgram || this.program !== oldProgram && this.program.structureIsReused !== 2 /* Completely */)) { hasNewProgram = true; + if (oldProgram) { + for (const f of oldProgram.getSourceFiles()) { + const newFile = this.program.getSourceFileByPath(f.resolvedPath); + if (!newFile || f.resolvedPath === f.path && newFile.resolvedPath !== f.path) { + this.detachScriptInfoFromProject( + f.fileName, + !!this.program.getSourceFileByPath(f.path), + /*syncDirWatcherRemove*/ + true + ); + } + } + oldProgram.forEachResolvedProjectReference((resolvedProjectReference) => { + if (!this.program.getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) { + this.detachScriptInfoFromProject( + resolvedProjectReference.sourceFile.fileName, + /*noRemoveResolution*/ + void 0, + /*syncDirWatcherRemove*/ + true + ); + } + }); + } this.rootFilesMap.forEach((value, path) => { var _a2; const file = this.program.getSourceFileByPath(path); @@ -187094,12 +183377,12 @@ var Project2 = class _Project { sendPerformanceEvent(kind, durationMs) { this.projectService.sendPerformanceEvent(kind, durationMs); } - detachScriptInfoFromProject(uncheckedFileName, noRemoveResolution) { + detachScriptInfoFromProject(uncheckedFileName, noRemoveResolution, syncDirWatcherRemove) { const scriptInfoToDetach = this.projectService.getScriptInfo(uncheckedFileName); if (scriptInfoToDetach) { scriptInfoToDetach.detachFromProject(this); if (!noRemoveResolution) { - this.resolutionCache.removeResolutionsOfFile(scriptInfoToDetach.path); + this.resolutionCache.removeResolutionsOfFile(scriptInfoToDetach.path, syncDirWatcherRemove); } } } @@ -187199,8 +183482,9 @@ var Project2 = class _Project { false ); } + /** @internal */ filesToStringWorker(writeProjectFileNames, writeFileExplaination, writeFileVersionAndText) { - if (this.initialLoadPending) return " Files (0) InitialLoadPending\n"; + if (this.isInitialLoadPending()) return " Files (0) InitialLoadPending\n"; if (!this.program) return " Files (0) NoProgram\n"; const sourceFiles = this.program.getSourceFiles(); let strBuilder = ` Files (${sourceFiles.length}) @@ -187287,7 +183571,7 @@ var Project2 = class _Project { fileName, isSourceOfProjectReferenceRedirect })) : (files) => arrayFrom(files.keys()); - if (!this.initialLoadPending) { + if (!this.isInitialLoadPending()) { updateProjectIfDirty(this); } const info = { @@ -187451,7 +183735,7 @@ var Project2 = class _Project { } /** @internal */ getNearestAncestorDirectoryWithPackageJson(fileName) { - return this.projectService.getNearestAncestorDirectoryWithPackageJson(fileName, this); + return this.projectService.getNearestAncestorDirectoryWithPackageJson(fileName); } /** @internal */ getPackageJsonsForAutoImport(rootDir) { @@ -187522,11 +183806,7 @@ var Project2 = class _Project { if (dependencySelection) { (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "getPackageJsonAutoImportProvider"); const start = timestamp(); - this.autoImportProviderHost = AutoImportProviderProject.create( - dependencySelection, - this, - this.getHostForAutoImportProvider() - ) ?? false; + this.autoImportProviderHost = AutoImportProviderProject.create(dependencySelection, this, this.getHostForAutoImportProvider(), this.documentRegistry); if (this.autoImportProviderHost) { updateProjectIfDirty(this.autoImportProviderHost); this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider", timestamp() - start); @@ -187536,6 +183816,7 @@ var Project2 = class _Project { (_c = tracing) == null ? void 0 : _c.pop(); } } + /** @internal */ isDefaultProjectForOpenFiles() { return !!forEachEntry( this.projectService.openFiles, @@ -187553,12 +183834,11 @@ var Project2 = class _Project { /** @internal */ getNoDtsResolutionProject(rootFile) { Debug.assert(this.projectService.serverMode === 0 /* Semantic */); - this.noDtsResolutionProject ?? (this.noDtsResolutionProject = new AuxiliaryProject(this)); + if (!this.noDtsResolutionProject) { + this.noDtsResolutionProject = new AuxiliaryProject(this.projectService, this.documentRegistry, this.getCompilerOptionsForNoDtsResolutionProject(), this.currentDirectory); + } if (this.noDtsResolutionProject.rootFile !== rootFile) { - this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject( - this.noDtsResolutionProject, - [rootFile] - ); + this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject, [rootFile]); this.noDtsResolutionProject.rootFile = rootFile; } return this.noDtsResolutionProject; @@ -187568,13 +183848,13 @@ var Project2 = class _Project { var _a, _b, _c, _d; const originalProgram = this.program; const rootSourceFile = Debug.checkDefined((_a = this.program) == null ? void 0 : _a.getSourceFile(rootFile), "Expected file to be part of program"); - const originalText = Debug.checkDefined(rootSourceFile.getFullText()); + const originalText = Debug.checkDefined(rootSourceFile.getText()); (_b = this.getScriptInfo(rootFile)) == null ? void 0 : _b.editContent(0, originalText.length, updatedText); this.updateGraph(); try { cb(this.program, originalProgram, (_c = this.program) == null ? void 0 : _c.getSourceFile(rootFile)); } finally { - (_d = this.getScriptInfo(rootFile)) == null ? void 0 : _d.editContent(0, updatedText.length, originalText); + (_d = this.getScriptInfo(rootFile)) == null ? void 0 : _d.editContent(0, this.program.getSourceFile(rootFile).getText().length, originalText); } } /** @internal */ @@ -187618,15 +183898,17 @@ function extractUnresolvedImportsFromSourceFile(program, file, ambientModules, c return unresolvedImports || emptyArray2; }); } -var InferredProject2 = class extends Project2 { +var InferredProject2 = class extends Project3 { /** @internal */ - constructor(projectService, compilerOptions, watchOptions, projectRootPath, currentDirectory, typeAcquisition) { + constructor(projectService, documentRegistry, compilerOptions, watchOptions, projectRootPath, currentDirectory, typeAcquisition) { super( projectService.newInferredProjectName(), 0 /* Inferred */, projectService, - /*hasExplicitListOfFiles*/ - false, + documentRegistry, + // TODO: GH#18217 + /*files*/ + void 0, /*lastFileExceededProgramSize*/ void 0, compilerOptions, @@ -187710,23 +183992,24 @@ var InferredProject2 = class extends Project2 { }; } }; -var AuxiliaryProject = class extends Project2 { - constructor(hostProject) { +var AuxiliaryProject = class extends Project3 { + constructor(projectService, documentRegistry, compilerOptions, currentDirectory) { super( - hostProject.projectService.newAuxiliaryProjectName(), + projectService.newAuxiliaryProjectName(), 4 /* Auxiliary */, - hostProject.projectService, + projectService, + documentRegistry, /*hasExplicitListOfFiles*/ false, /*lastFileExceededProgramSize*/ void 0, - hostProject.getCompilerOptionsForNoDtsResolutionProject(), + compilerOptions, /*compileOnSaveEnabled*/ false, /*watchOptions*/ void 0, - hostProject.projectService.host, - hostProject.currentDirectory + projectService.host, + currentDirectory ); } isOrphan() { @@ -187736,13 +184019,14 @@ var AuxiliaryProject = class extends Project2 { return; } }; -var _AutoImportProviderProject = class _AutoImportProviderProject extends Project2 { +var _AutoImportProviderProject = class _AutoImportProviderProject extends Project3 { /** @internal */ - constructor(hostProject, initialRootNames, compilerOptions) { + constructor(hostProject, initialRootNames, documentRegistry, compilerOptions) { super( hostProject.projectService.newAutoImportProviderProjectName(), 3 /* AutoImportProvider */, hostProject.projectService, + documentRegistry, /*hasExplicitListOfFiles*/ false, /*lastFileExceededProgramSize*/ @@ -187782,7 +184066,7 @@ var _AutoImportProviderProject = class _AutoImportProviderProject extends Projec if (dependencyNames) { const symlinkCache = hostProject.getSymlinkCache(); for (const name of arrayFrom(dependencyNames.keys())) { - if (dependencySelection === 2 /* Auto */ && dependenciesAdded >= this.maxDependencies) { + if (dependencySelection === 2 /* Auto */ && dependenciesAdded > this.maxDependencies) { hostProject.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`); return emptyArray; } @@ -187903,7 +184187,7 @@ var _AutoImportProviderProject = class _AutoImportProviderProject extends Projec } } /** @internal */ - static create(dependencySelection, hostProject, host) { + static create(dependencySelection, hostProject, host, documentRegistry) { if (dependencySelection === 0 /* Off */) { return void 0; } @@ -187915,7 +184199,7 @@ var _AutoImportProviderProject = class _AutoImportProviderProject extends Projec if (!rootNames.length) { return void 0; } - return new _AutoImportProviderProject(hostProject, rootNames, compilerOptions); + return new _AutoImportProviderProject(hostProject, rootNames, documentRegistry, compilerOptions); } /** @internal */ isEmpty() { @@ -187935,7 +184219,7 @@ var _AutoImportProviderProject = class _AutoImportProviderProject extends Projec this.getCompilationSettings() ); } - this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this, rootFileNames); + this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this, rootFileNames); this.rootFileNames = rootFileNames; const oldProgram = this.getCurrentProgram(); const hasSameSetOfFiles = super.updateGraph(); @@ -187991,6 +184275,7 @@ var _AutoImportProviderProject = class _AutoImportProviderProject extends Projec return (_a = this.hostProject.getCurrentProgram()) == null ? void 0 : _a.getModuleResolutionCache(); } }; +/** @internal */ _AutoImportProviderProject.maxDependencies = 10; /** @internal */ _AutoImportProviderProject.compilerOptionsOverrides = { @@ -188002,13 +184287,14 @@ _AutoImportProviderProject.compilerOptionsOverrides = { noLib: true }; var AutoImportProviderProject = _AutoImportProviderProject; -var ConfiguredProject2 = class extends Project2 { +var ConfiguredProject2 = class extends Project3 { /** @internal */ - constructor(configFileName, canonicalConfigFilePath, projectService, cachedDirectoryStructureHost, pendingUpdateReason) { + constructor(configFileName, canonicalConfigFilePath, projectService, documentRegistry, cachedDirectoryStructureHost, pendingUpdateReason) { super( configFileName, 1 /* Configured */, projectService, + documentRegistry, /*hasExplicitListOfFiles*/ false, /*lastFileExceededProgramSize*/ @@ -188026,7 +184312,9 @@ var ConfiguredProject2 = class extends Project2 { /** @internal */ this.openFileWatchTriggered = /* @__PURE__ */ new Map(); /** @internal */ - this.initialLoadPending = true; + this.canConfigFileJsonReportNoInputFiles = false; + /** @internal */ + this.isInitialLoadPending = returnTrue; /** @internal */ this.sendLoadingProjectFinish = false; this.pendingUpdateLevel = 2 /* Full */; @@ -188046,7 +184334,7 @@ var ConfiguredProject2 = class extends Project2 { } /** @internal */ getParsedCommandLine(fileName) { - const configFileName = toNormalizedPath(fileName); + const configFileName = asNormalizedPath(normalizePath(fileName)); const canonicalConfigFilePath = asNormalizedPath(this.projectService.toCanonicalFileName(configFileName)); let configFileExistenceInfo = this.projectService.configFileExistenceInfoCache.get(canonicalConfigFilePath); if (!configFileExistenceInfo) { @@ -188060,8 +184348,9 @@ var ConfiguredProject2 = class extends Project2 { } /** @internal */ onReleaseParsedCommandLine(fileName) { - this.releaseParsedConfig(asNormalizedPath(this.projectService.toCanonicalFileName(toNormalizedPath(fileName)))); + this.releaseParsedConfig(asNormalizedPath(this.projectService.toCanonicalFileName(asNormalizedPath(normalizePath(fileName))))); } + /** @internal */ releaseParsedConfig(canonicalConfigFilePath) { this.projectService.stopWatchingWildCards(canonicalConfigFilePath, this); this.projectService.releaseParsedConfig(canonicalConfigFilePath, this); @@ -188073,7 +184362,7 @@ var ConfiguredProject2 = class extends Project2 { updateGraph() { if (this.deferredClose) return false; const isDirty = this.dirty; - this.initialLoadPending = false; + this.isInitialLoadPending = returnFalse; const updateLevel = this.pendingUpdateLevel; this.pendingUpdateLevel = 0 /* Update */; let result; @@ -188125,7 +184414,7 @@ var ConfiguredProject2 = class extends Project2 { } /** @internal */ setPotentialProjectReference(canonicalConfigPath) { - Debug.assert(this.initialLoadPending); + Debug.assert(this.isInitialLoadPending()); (this.potentialProjectReferences || (this.potentialProjectReferences = /* @__PURE__ */ new Set())).add(canonicalConfigPath); } /** @internal */ @@ -188189,6 +184478,10 @@ var ConfiguredProject2 = class extends Project2 { super.markAsDirty(); } /** @internal */ + isSolution() { + return this.getRootFilesMap().size === 0 && !this.canConfigFileJsonReportNoInputFiles; + } + /** @internal */ isOrphan() { return !!this.deferredClose; } @@ -188196,24 +184489,18 @@ var ConfiguredProject2 = class extends Project2 { return getEffectiveTypeRoots(this.getCompilationSettings(), this) || []; } /** @internal */ - updateErrorOnNoInputFiles(parsedCommandLine) { - this.parsedCommandLine = parsedCommandLine; - updateErrorForNoInputFiles( - parsedCommandLine.fileNames, - this.getConfigFilePath(), - this.getCompilerOptions().configFile.configFileSpecs, - this.projectErrors, - canJsonReportNoInputFiles(parsedCommandLine.raw) - ); + updateErrorOnNoInputFiles(fileNames) { + updateErrorForNoInputFiles(fileNames, this.getConfigFilePath(), this.getCompilerOptions().configFile.configFileSpecs, this.projectErrors, this.canConfigFileJsonReportNoInputFiles); } }; -var ExternalProject = class extends Project2 { +var ExternalProject = class extends Project3 { /** @internal */ - constructor(externalProjectName, projectService, compilerOptions, lastFileExceededProgramSize, compileOnSaveEnabled, projectFilePath, watchOptions) { + constructor(externalProjectName, projectService, documentRegistry, compilerOptions, lastFileExceededProgramSize, compileOnSaveEnabled, projectFilePath, watchOptions) { super( externalProjectName, 2 /* External */, projectService, + documentRegistry, /*hasExplicitListOfFiles*/ true, lastFileExceededProgramSize, @@ -188413,35 +184700,10 @@ function findProjectByName(projectName, projects) { } } } -var nullTypingsInstaller = { - isKnownTypesPackageName: returnFalse, - // Should never be called because we never provide a types registry. - installPackage: notImplemented, - enqueueInstallTypingsRequest: noop, - attach: noop, - onProjectClosed: noop, - globalTypingsCacheLocation: void 0 - // TODO: GH#18217 -}; var noopConfigFileWatcher = { close: noop }; function getConfigFileNameFromCache(info, cache) { - if (!cache) return void 0; - const configFileForOpenFile = cache.get(info.path); - if (configFileForOpenFile === void 0) return void 0; - if (!isAncestorConfigFileInfo(info)) { - return isString(configFileForOpenFile) || !configFileForOpenFile ? configFileForOpenFile : ( - // direct result - configFileForOpenFile.get( - /*key*/ - false - ) - ); - } else { - return configFileForOpenFile && !isString(configFileForOpenFile) ? ( - // Map with fileName as key - configFileForOpenFile.get(info.fileName) - ) : void 0; - } + if (!cache || isAncestorConfigFileInfo(info)) return void 0; + return cache.get(info.path); } function isOpenScriptInfo(infoOrFileNameOrConfig) { return !!infoOrFileNameOrConfig.containingProjects; @@ -188450,159 +184712,125 @@ function isAncestorConfigFileInfo(infoOrFileNameOrConfig) { return !!infoOrFileNameOrConfig.configFileInfo; } var ConfiguredProjectLoadKind = /* @__PURE__ */ ((ConfiguredProjectLoadKind2) => { - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["FindOptimized"] = 0] = "FindOptimized"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Find"] = 1] = "Find"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["CreateReplayOptimized"] = 2] = "CreateReplayOptimized"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["CreateReplay"] = 3] = "CreateReplay"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["CreateOptimized"] = 4] = "CreateOptimized"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Create"] = 5] = "Create"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["ReloadOptimized"] = 6] = "ReloadOptimized"; - ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Reload"] = 7] = "Reload"; + ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Find"] = 0] = "Find"; + ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Create"] = 1] = "Create"; + ConfiguredProjectLoadKind2[ConfiguredProjectLoadKind2["Reload"] = 2] = "Reload"; return ConfiguredProjectLoadKind2; })(ConfiguredProjectLoadKind || {}); -function toConfiguredProjectLoadOptimized(kind) { - return kind - 1; -} -function forEachAncestorProjectLoad(info, project, cb, kind, reason, allowDeferredClosed, reloadedProjects, searchOnlyPotentialSolution, delayReloadedConfiguredProjects) { - var _a; +function forEachAncestorProject(info, project, cb, kind, reason, allowDeferredClosed, reloadedProjects, delayReloadedConfiguredProjects) { while (true) { - if (project.parsedCommandLine && (searchOnlyPotentialSolution && !project.parsedCommandLine.options.composite || // Currently disableSolutionSearching is shared for finding solution/project when - // - loading solution for find all references - // - trying to find default project - project.parsedCommandLine.options.disableSolutionSearching)) return; - const configFileName = project.projectService.getConfigFileNameForFile( - { - fileName: project.getConfigFilePath(), - path: info.path, - configFileInfo: true, - isForDefaultProject: !searchOnlyPotentialSolution - }, - kind <= 3 /* CreateReplay */ - ); + if (!project.isInitialLoadPending() && (!project.getCompilerOptions().composite || project.getCompilerOptions().disableSolutionSearching)) return; + const configFileName = project.projectService.getConfigFileNameForFile({ + fileName: project.getConfigFilePath(), + path: info.path, + configFileInfo: true + }, kind === 0 /* Find */); if (!configFileName) return; const ancestor = project.projectService.findCreateOrReloadConfiguredProject( configFileName, kind, reason, allowDeferredClosed, - !searchOnlyPotentialSolution ? info.fileName : void 0, - // Config Diag event for project if its for default project + /*triggerFile*/ + void 0, reloadedProjects, - searchOnlyPotentialSolution, - // Delay load if we are searching for solution + /*delayLoad*/ + true, delayReloadedConfiguredProjects ); if (!ancestor) return; - if (!ancestor.project.parsedCommandLine && ((_a = project.parsedCommandLine) == null ? void 0 : _a.options.composite)) { + if (ancestor.project.isInitialLoadPending() && project.getCompilerOptions().composite) { ancestor.project.setPotentialProjectReference(project.canonicalConfigFilePath); } - const result = cb(ancestor); + const result = cb(ancestor.project); if (result) return result; project = ancestor.project; } } -function forEachResolvedProjectReferenceProjectLoad(project, parentConfig, cb, kind, reason, allowDeferredClosed, reloadedProjects, seenResolvedRefs) { - const loadKind = parentConfig.options.disableReferencedProjectLoad ? 0 /* FindOptimized */ : kind; - let children; - return forEach( - parentConfig.projectReferences, - (ref) => { - var _a; - const childConfigName = toNormalizedPath(resolveProjectReferencePath(ref)); - const childCanonicalConfigPath = asNormalizedPath(project.projectService.toCanonicalFileName(childConfigName)); - const seenValue = seenResolvedRefs == null ? void 0 : seenResolvedRefs.get(childCanonicalConfigPath); - if (seenValue !== void 0 && seenValue >= loadKind) return void 0; - const configFileExistenceInfo = project.projectService.configFileExistenceInfoCache.get(childCanonicalConfigPath); - let childConfig = loadKind === 0 /* FindOptimized */ ? (configFileExistenceInfo == null ? void 0 : configFileExistenceInfo.exists) || ((_a = project.resolvedChildConfigs) == null ? void 0 : _a.has(childCanonicalConfigPath)) ? configFileExistenceInfo.config.parsedCommandLine : void 0 : project.getParsedCommandLine(childConfigName); - if (childConfig && loadKind !== kind && loadKind > 2 /* CreateReplayOptimized */) { - childConfig = project.getParsedCommandLine(childConfigName); - } - if (!childConfig) return void 0; - const childProject = project.projectService.findConfiguredProjectByProjectName(childConfigName, allowDeferredClosed); - if (loadKind === 2 /* CreateReplayOptimized */ && !configFileExistenceInfo && !childProject) return void 0; - switch (loadKind) { - case 6 /* ReloadOptimized */: - if (childProject) childProject.projectService.reloadConfiguredProjectOptimized(childProject, reason, reloadedProjects); - // falls through - case 4 /* CreateOptimized */: - (project.resolvedChildConfigs ?? (project.resolvedChildConfigs = /* @__PURE__ */ new Set())).add(childCanonicalConfigPath); - // falls through - case 2 /* CreateReplayOptimized */: - case 0 /* FindOptimized */: - if (childProject || loadKind !== 0 /* FindOptimized */) { - const result = cb( - configFileExistenceInfo ?? project.projectService.configFileExistenceInfoCache.get(childCanonicalConfigPath), - childProject, - childConfigName, - reason, - project, - childCanonicalConfigPath - ); - if (result) return result; - } - break; - default: - Debug.assertNever(loadKind); - } - (seenResolvedRefs ?? (seenResolvedRefs = /* @__PURE__ */ new Map())).set(childCanonicalConfigPath, loadKind); - (children ?? (children = [])).push(childConfig); +function forEachResolvedProjectReferenceProject(project, fileName, cb, kind, reason, allowDeferredClosed, triggerFile, reloadedProjects) { + var _a; + const resolvedRefs = (_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(); + if (!resolvedRefs) return void 0; + const possibleDefaultRef = fileName ? project.getResolvedProjectReferenceToRedirect(fileName) : void 0; + if (possibleDefaultRef) { + const configFileName = toNormalizedPath(possibleDefaultRef.sourceFile.fileName); + const child = project.projectService.findConfiguredProjectByProjectName( + configFileName, + allowDeferredClosed + ); + if (child) { + const result = callbackWithProjectFoundUsingFind(child); + if (result) return result; + } else if (kind !== 0 /* Find */) { + const result = forEachResolvedProjectReferenceProjectWorker( + resolvedRefs, + project.getCompilerOptions(), + (ref, loadKind) => possibleDefaultRef === ref ? callback(ref, loadKind) : void 0, + kind, + project.projectService + ); + if (result) return result; } - ) || forEach( - children, - (childConfig) => childConfig.projectReferences && forEachResolvedProjectReferenceProjectLoad( - project, - childConfig, - cb, + } + return forEachResolvedProjectReferenceProjectWorker( + resolvedRefs, + project.getCompilerOptions(), + (ref, loadKind) => possibleDefaultRef !== ref ? callback(ref, loadKind) : void 0, + kind, + project.projectService + ); + function callback(ref, loadKind) { + const result = project.projectService.findCreateOrReloadConfiguredProject( + toNormalizedPath(ref.sourceFile.fileName), loadKind, reason, allowDeferredClosed, - reloadedProjects, - seenResolvedRefs - ) - ); -} -function updateProjectFoundUsingFind(project, kind, triggerFile, reason, reloadedProjects) { - let sentConfigFileDiag = false; - let configFileExistenceInfo; - switch (kind) { - case 2 /* CreateReplayOptimized */: - case 3 /* CreateReplay */: - if (useConfigFileExistenceInfoForOptimizedLoading(project)) { - configFileExistenceInfo = project.projectService.configFileExistenceInfoCache.get(project.canonicalConfigFilePath); - } - break; - case 4 /* CreateOptimized */: - configFileExistenceInfo = configFileExistenceInfoForOptimizedLoading(project); - if (configFileExistenceInfo) break; - // falls through - case 5 /* Create */: - sentConfigFileDiag = updateConfiguredProject(project, triggerFile); - break; - case 6 /* ReloadOptimized */: - project.projectService.reloadConfiguredProjectOptimized(project, reason, reloadedProjects); - configFileExistenceInfo = configFileExistenceInfoForOptimizedLoading(project); - if (configFileExistenceInfo) break; - // falls through - case 7 /* Reload */: - sentConfigFileDiag = project.projectService.reloadConfiguredProjectClearingSemanticCache( - project, - reason, - reloadedProjects - ); - break; - case 0 /* FindOptimized */: - case 1 /* Find */: - break; - default: - Debug.assertNever(kind); + triggerFile, + reloadedProjects + ); + return result && (loadKind === kind ? cb(result.project, result.sentConfigFileDiag) : callbackWithProjectFoundUsingFind(result.project)); + } + function callbackWithProjectFoundUsingFind(child) { + let sentConfigFileDiag = false; + switch (kind) { + case 1 /* Create */: + sentConfigFileDiag = updateConfiguredProject(child, triggerFile); + break; + case 2 /* Reload */: + sentConfigFileDiag = child.projectService.reloadConfiguredProjectClearingSemanticCache(child, reason, reloadedProjects); + break; + case 0 /* Find */: + break; + default: + Debug.assertNever(kind); + } + const result = cb(child, sentConfigFileDiag); + if (result) return result; } - return { project, sentConfigFileDiag, configFileExistenceInfo, reason }; +} +function forEachResolvedProjectReferenceProjectWorker(resolvedProjectReferences, parentOptions, cb, kind, projectService, seenResolvedRefs) { + const loadKind = parentOptions.disableReferencedProjectLoad ? 0 /* Find */ : kind; + return forEach(resolvedProjectReferences, (ref) => { + if (!ref) return void 0; + const configFileName = toNormalizedPath(ref.sourceFile.fileName); + const canonicalPath = projectService.toCanonicalFileName(configFileName); + const seenValue = seenResolvedRefs == null ? void 0 : seenResolvedRefs.get(canonicalPath); + if (seenValue !== void 0 && seenValue >= loadKind) { + return void 0; + } + const result = cb(ref, loadKind); + if (result) { + return result; + } + (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Map())).set(canonicalPath, loadKind); + return ref.references && forEachResolvedProjectReferenceProjectWorker(ref.references, ref.commandLine.options, cb, loadKind, projectService, seenResolvedRefs); + }); } function forEachPotentialProjectReference(project, cb) { - return project.initialLoadPending ? (project.potentialProjectReferences && forEachKey(project.potentialProjectReferences, cb)) ?? (project.resolvedChildConfigs && forEachKey(project.resolvedChildConfigs, cb)) : void 0; + return project.potentialProjectReferences && forEachKey(project.potentialProjectReferences, cb); } function forEachAnyProjectReferenceKind(project, cb, cbProjectRef, cbPotentialProjectRef) { - return project.getCurrentProgram() ? project.forEachResolvedProjectReference(cb) : project.initialLoadPending ? forEachPotentialProjectReference(project, cbPotentialProjectRef) : forEach(project.getProjectReferences(), cbProjectRef); + return project.getCurrentProgram() ? project.forEachResolvedProjectReference(cb) : project.isInitialLoadPending() ? forEachPotentialProjectReference(project, cbPotentialProjectRef) : forEach(project.getProjectReferences(), cbProjectRef); } function callbackRefProject(project, cb, refPath) { const refProject = refPath && project.projectService.configuredProjects.get(refPath); @@ -188652,27 +184880,6 @@ function updateConfiguredProject(project, triggerFile) { } return false; } -function configFileExistenceInfoForOptimizedLoading(project) { - const configFileName = toNormalizedPath(project.getConfigFilePath()); - const configFileExistenceInfo = project.projectService.ensureParsedConfigUptoDate( - configFileName, - project.canonicalConfigFilePath, - project.projectService.configFileExistenceInfoCache.get(project.canonicalConfigFilePath), - project - ); - const parsedCommandLine = configFileExistenceInfo.config.parsedCommandLine; - project.parsedCommandLine = parsedCommandLine; - project.resolvedChildConfigs = void 0; - project.updateReferences(parsedCommandLine.projectReferences); - if (useConfigFileExistenceInfoForOptimizedLoading(project)) return configFileExistenceInfo; -} -function useConfigFileExistenceInfoForOptimizedLoading(project) { - return !!project.parsedCommandLine && (!!project.parsedCommandLine.options.composite || // If solution, no need to load it to determine if file belongs to it - !!isSolutionConfig(project.parsedCommandLine)); -} -function configFileExistenceInfoForOptimizedReplay(project) { - return useConfigFileExistenceInfoForOptimizedLoading(project) ? project.projectService.configFileExistenceInfoCache.get(project.canonicalConfigFilePath) : void 0; -} function fileOpenReason(info) { return `Creating possible configured project for ${info.fileName} to open`; } @@ -188691,11 +184898,8 @@ function createProjectNameFactoryWithCounter(nameFactory) { function getHostWatcherMap() { return { idToCallbacks: /* @__PURE__ */ new Map(), pathToId: /* @__PURE__ */ new Map() }; } -function getCanUseWatchEvents(service, canUseWatchEvents) { - return !!canUseWatchEvents && !!service.eventHandler && !!service.session; -} function createWatchFactoryHostUsingWatchEvents(service, canUseWatchEvents) { - if (!getCanUseWatchEvents(service, canUseWatchEvents)) return void 0; + if (!canUseWatchEvents || !service.eventHandler || !service.session) return void 0; const watchedFiles = getHostWatcherMap(); const watchedDirectories = getHostWatcherMap(); const watchedDirectoriesRecursive = getHostWatcherMap(); @@ -188794,7 +184998,7 @@ var _ProjectService = class _ProjectService { */ this.filenameToScriptInfoVersion = /* @__PURE__ */ new Map(); // Set of all '.js' files ever opened. - this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new Set(); + this.allJsFilesForOpenFileTelemetry = /* @__PURE__ */ new Map(); /** * maps external project file name to list of config files that were the part of this project */ @@ -188853,7 +185057,9 @@ var _ProjectService = class _ProjectService { this.pendingEnsureProjectForOpenFiles = false; /** Tracks projects that we have already sent telemetry for. */ this.seenProjects = /* @__PURE__ */ new Map(); + /** @internal */ this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map(); + /** @internal */ this.extendedConfigCache = /* @__PURE__ */ new Map(); /** @internal */ this.baseline = noop; @@ -188891,27 +185097,20 @@ var _ProjectService = class _ProjectService { this.toCanonicalFileName = createGetCanonicalFileName(this.host.useCaseSensitiveFileNames); this.globalCacheLocationDirectoryPath = this.typingsInstaller.globalTypingsCacheLocation ? ensureTrailingDirectorySeparator(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)) : void 0; this.throttledOperations = new ThrottledOperations(this.host, this.logger); - this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`); - this.logger.info(`libs Location:: ${getDirectoryPath(this.host.getExecutingFilePath())}`); - this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`); if (this.typesMapLocation) { this.loadTypesMap(); } else { this.logger.info("No types map provided; using the default"); } this.typingsInstaller.attach(this); + this.typingsCache = new TypingsCache(this.typingsInstaller); this.hostConfiguration = { formatCodeOptions: getDefaultFormatCodeSettings(this.host.newLine), preferences: emptyOptions, hostInfo: "Unknown host", extraFileExtensions: [] }; - this.documentRegistry = createDocumentRegistryInternal( - this.host.useCaseSensitiveFileNames, - this.currentDirectory, - this.jsDocParsingMode, - this - ); + this.documentRegistry = createDocumentRegistryInternal(this.host.useCaseSensitiveFileNames, this.currentDirectory, this.jsDocParsingMode, this); const watchLogLevel = this.logger.hasLevel(3 /* verbose */) ? 2 /* Verbose */ : this.logger.loggingEnabled() ? 1 /* TriggerOnly */ : 0 /* None */; const log = watchLogLevel !== 0 /* None */ ? (s) => this.logger.info(s) : noop; this.packageJsonCache = createPackageJsonCache(this); @@ -188924,7 +185123,6 @@ var _ProjectService = class _ProjectService { log, getDetailWatchInfo ); - this.canUseWatchEvents = getCanUseWatchEvents(this, opts.canUseWatchEvents); (_a = opts.incrementalVerifier) == null ? void 0 : _a.call(opts, this); } toPath(fileName) { @@ -188998,15 +185196,12 @@ var _ProjectService = class _ProjectService { } switch (response.kind) { case ActionSet: - project.updateTypingFiles( - response.compilerOptions, - response.typeAcquisition, - response.unresolvedImports, - response.typings - ); + project.updateTypingFiles(this.typingsCache.updateTypingsForProject(response.projectName, response.compilerOptions, response.typeAcquisition, response.unresolvedImports, response.typings)); return; case ActionInvalidate: - project.enqueueInstallTypingsForProject( + this.typingsCache.enqueueInstallTypingsForProject( + project, + project.lastCachedUnresolvedImportsList, /*forceRefresh*/ true ); @@ -189198,7 +185393,7 @@ var _ProjectService = class _ProjectService { if ((_a = this.pendingOpenFileProjectUpdates) == null ? void 0 : _a.delete(scriptInfo.path)) { this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo( scriptInfo, - 5 /* Create */ + 1 /* Create */ ); if (scriptInfo.isOrphan()) { this.assignOrphanScriptInfoToInferredProject(scriptInfo, this.openFiles.get(scriptInfo.path)); @@ -189319,17 +185514,65 @@ var _ProjectService = class _ProjectService { } /** * This is to watch whenever files are added or removed to the wildcard directories + * + * @internal */ watchWildcardDirectory(directory, flags, configFileName, config) { let watcher = this.watchFactory.watchDirectory( directory, - (fileOrDirectory) => this.onWildCardDirectoryWatcherInvoke( - directory, - configFileName, - config, - result, - fileOrDirectory - ), + (fileOrDirectory) => { + const fileOrDirectoryPath = this.toPath(fileOrDirectory); + const fsResult = config.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); + if (getBaseFileName(fileOrDirectoryPath) === "package.json" && !isInsideNodeModules(fileOrDirectoryPath) && (fsResult && fsResult.fileExists || !fsResult && this.host.fileExists(fileOrDirectory))) { + const file = this.getNormalizedAbsolutePath(fileOrDirectory); + this.logger.info(`Config: ${configFileName} Detected new package.json: ${file}`); + this.packageJsonCache.addOrUpdate(file, fileOrDirectoryPath); + this.watchPackageJsonFile(file, fileOrDirectoryPath, result); + } + const configuredProjectForConfig = this.findConfiguredProjectByProjectName(configFileName); + if (isIgnoredFileFromWildCardWatching({ + watchedDirPath: this.toPath(directory), + fileOrDirectory, + fileOrDirectoryPath, + configFileName, + extraFileExtensions: this.hostConfiguration.extraFileExtensions, + currentDirectory: this.currentDirectory, + options: config.parsedCommandLine.options, + program: (configuredProjectForConfig == null ? void 0 : configuredProjectForConfig.getCurrentProgram()) || config.parsedCommandLine.fileNames, + useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames, + writeLog: (s) => this.logger.info(s), + toPath: (s) => this.toPath(s), + getScriptKind: configuredProjectForConfig ? (fileName) => configuredProjectForConfig.getScriptKind(fileName) : void 0 + })) return; + if (config.updateLevel !== 2 /* Full */) config.updateLevel = 1 /* RootNamesAndUpdate */; + config.projects.forEach((watchWildcardDirectories, projectCanonicalPath) => { + var _a; + if (!watchWildcardDirectories) return; + const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath); + if (!project) return; + if (configuredProjectForConfig !== project && this.getHostPreferences().includeCompletionsForModuleExports) { + const path = this.toPath(configFileName); + if (find((_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path)) { + project.markAutoImportProviderAsDirty(); + } + } + const updateLevel = configuredProjectForConfig === project ? 1 /* RootNamesAndUpdate */ : 0 /* Update */; + if (project.pendingUpdateLevel > updateLevel) return; + if (this.openFiles.has(fileOrDirectoryPath)) { + const info = Debug.checkDefined(this.getScriptInfoForPath(fileOrDirectoryPath)); + if (info.isAttached(project)) { + const loadLevelToSet = Math.max(updateLevel, project.openFileWatchTriggered.get(fileOrDirectoryPath) || 0 /* Update */); + project.openFileWatchTriggered.set(fileOrDirectoryPath, loadLevelToSet); + } else { + project.pendingUpdateLevel = updateLevel; + this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); + } + } else { + project.pendingUpdateLevel = updateLevel; + this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); + } + }); + }, flags, this.getWatchOptionsFromProjectWatchOptions(config.parsedCommandLine.watchOptions, getDirectoryPath(configFileName)), WatchType.WildcardDirectory, @@ -189352,102 +185595,35 @@ var _ProjectService = class _ProjectService { }; return result; } - onWildCardDirectoryWatcherInvoke(directory, configFileName, config, wildCardWatcher, fileOrDirectory) { - const fileOrDirectoryPath = this.toPath(fileOrDirectory); - const fsResult = config.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); - if (getBaseFileName(fileOrDirectoryPath) === "package.json" && !isInsideNodeModules(fileOrDirectoryPath) && (fsResult && fsResult.fileExists || !fsResult && this.host.fileExists(fileOrDirectory))) { - const file = this.getNormalizedAbsolutePath(fileOrDirectory); - this.logger.info(`Config: ${configFileName} Detected new package.json: ${file}`); - this.packageJsonCache.addOrUpdate(file, fileOrDirectoryPath); - this.watchPackageJsonFile(file, fileOrDirectoryPath, wildCardWatcher); - } - if (!(fsResult == null ? void 0 : fsResult.fileExists)) { - this.sendSourceFileChange(fileOrDirectoryPath); - } - const configuredProjectForConfig = this.findConfiguredProjectByProjectName(configFileName); - if (isIgnoredFileFromWildCardWatching({ - watchedDirPath: this.toPath(directory), - fileOrDirectory, - fileOrDirectoryPath, - configFileName, - extraFileExtensions: this.hostConfiguration.extraFileExtensions, - currentDirectory: this.currentDirectory, - options: config.parsedCommandLine.options, - program: (configuredProjectForConfig == null ? void 0 : configuredProjectForConfig.getCurrentProgram()) || config.parsedCommandLine.fileNames, - useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames, - writeLog: (s) => this.logger.info(s), - toPath: (s) => this.toPath(s), - getScriptKind: configuredProjectForConfig ? (fileName) => configuredProjectForConfig.getScriptKind(fileName) : void 0 - })) return; - if (config.updateLevel !== 2 /* Full */) config.updateLevel = 1 /* RootNamesAndUpdate */; - config.projects.forEach((watchWildcardDirectories, projectCanonicalPath) => { - var _a; - if (!watchWildcardDirectories) return; - const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath); - if (!project) return; - if (configuredProjectForConfig !== project && this.getHostPreferences().includeCompletionsForModuleExports) { - const path = this.toPath(configFileName); - if (find((_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path)) { - project.markAutoImportProviderAsDirty(); - } - } - const updateLevel = configuredProjectForConfig === project ? 1 /* RootNamesAndUpdate */ : 0 /* Update */; - if (project.pendingUpdateLevel > updateLevel) return; - if (this.openFiles.has(fileOrDirectoryPath)) { - const info = Debug.checkDefined(this.getScriptInfoForPath(fileOrDirectoryPath)); - if (info.isAttached(project)) { - const loadLevelToSet = Math.max(updateLevel, project.openFileWatchTriggered.get(fileOrDirectoryPath) || 0 /* Update */); - project.openFileWatchTriggered.set(fileOrDirectoryPath, loadLevelToSet); - } else { - project.pendingUpdateLevel = updateLevel; - this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); - } - } else { - project.pendingUpdateLevel = updateLevel; - this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(project); - } - }); - } + /** @internal */ delayUpdateProjectsFromParsedConfigOnConfigFileChange(canonicalConfigFilePath, loadReason) { const configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); if (!(configFileExistenceInfo == null ? void 0 : configFileExistenceInfo.config)) return false; let scheduledAnyProjectUpdate = false; configFileExistenceInfo.config.updateLevel = 2 /* Full */; - configFileExistenceInfo.config.cachedDirectoryStructureHost.clearCache(); configFileExistenceInfo.config.projects.forEach((_watchWildcardDirectories, projectCanonicalPath) => { - var _a, _b, _c; + var _a; const project = this.getConfiguredProjectByCanonicalConfigFilePath(projectCanonicalPath); if (!project) return; scheduledAnyProjectUpdate = true; if (projectCanonicalPath === canonicalConfigFilePath) { - if (project.initialLoadPending) return; + if (project.isInitialLoadPending()) return; project.pendingUpdateLevel = 2 /* Full */; project.pendingUpdateReason = loadReason; this.delayUpdateProjectGraph(project); project.markAutoImportProviderAsDirty(); } else { - if (project.initialLoadPending) { - (_b = (_a = this.configFileExistenceInfoCache.get(projectCanonicalPath)) == null ? void 0 : _a.openFilesImpactedByConfigFile) == null ? void 0 : _b.forEach((path2) => { - var _a2; - if (!((_a2 = this.pendingOpenFileProjectUpdates) == null ? void 0 : _a2.has(path2))) { - (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map())).set( - path2, - this.configFileForOpenFiles.get(path2) - ); - } - }); - return; - } const path = this.toPath(canonicalConfigFilePath); project.resolutionCache.removeResolutionsFromProjectReferenceRedirects(path); this.delayUpdateProjectGraph(project); - if (this.getHostPreferences().includeCompletionsForModuleExports && find((_c = project.getCurrentProgram()) == null ? void 0 : _c.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path)) { + if (this.getHostPreferences().includeCompletionsForModuleExports && find((_a = project.getCurrentProgram()) == null ? void 0 : _a.getResolvedProjectReferences(), (ref) => (ref == null ? void 0 : ref.sourceFile.path) === path)) { project.markAutoImportProviderAsDirty(); } } }); return scheduledAnyProjectUpdate; } + /** @internal */ onConfigFileChanged(configFileName, canonicalConfigFilePath, eventKind) { const configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); const project = this.getConfiguredProjectByCanonicalConfigFilePath(canonicalConfigFilePath); @@ -189466,6 +185642,7 @@ var _ProjectService = class _ProjectService { canonicalConfigFilePath, "Change in config file detected" ); + const updatedProjects = new Set(project ? [project] : void 0); this.openFiles.forEach((_projectRootPath, path) => { var _a, _b; const configFileForOpenFile = this.configFileForOpenFiles.get(path); @@ -189478,9 +185655,16 @@ var _ProjectService = class _ProjectService { false ); if (!newConfigFileNameForInfo) return; + const projectForInfo = this.findConfiguredProjectByProjectName(newConfigFileNameForInfo) ?? this.createConfiguredProject( + newConfigFileNameForInfo, + `Change in config file ${configFileName} detected, ${fileOpenReason(info)}` + ); if (!((_b = this.pendingOpenFileProjectUpdates) == null ? void 0 : _b.has(path))) { (this.pendingOpenFileProjectUpdates ?? (this.pendingOpenFileProjectUpdates = /* @__PURE__ */ new Map())).set(path, configFileForOpenFile); } + if (tryAddToSet(updatedProjects, projectForInfo) && projectForInfo.isInitialLoadPending()) { + this.delayUpdateProjectGraph(projectForInfo); + } }); this.delayEnsureProjectForOpenFiles(); } @@ -189652,7 +185836,7 @@ var _ProjectService = class _ProjectService { configFileExists(configFileName, canonicalConfigFilePath, info) { const configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); let openFilesImpactedByConfigFile; - if (this.openFiles.has(info.path) && (!isAncestorConfigFileInfo(info) || info.isForDefaultProject)) { + if (this.openFiles.has(info.path) && !isAncestorConfigFileInfo(info)) { if (configFileExistenceInfo) (configFileExistenceInfo.openFilesImpactedByConfigFile ?? (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Set())).add(info.path); else (openFilesImpactedByConfigFile = /* @__PURE__ */ new Set()).add(info.path); } @@ -189661,6 +185845,7 @@ var _ProjectService = class _ProjectService { this.configFileExistenceInfoCache.set(canonicalConfigFilePath, { exists, openFilesImpactedByConfigFile }); return exists; } + /** @internal */ createConfigFileWatcherForParsedConfig(configFileName, canonicalConfigFilePath, forProject) { var _a, _b; const configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); @@ -189674,9 +185859,6 @@ var _ProjectService = class _ProjectService { forProject ); } - this.ensureConfigFileWatcherForProject(configFileExistenceInfo, forProject); - } - ensureConfigFileWatcherForProject(configFileExistenceInfo, forProject) { const projects = configFileExistenceInfo.config.projects; projects.set(forProject.canonicalConfigFilePath, projects.get(forProject.canonicalConfigFilePath) || false); } @@ -189691,7 +185873,7 @@ var _ProjectService = class _ProjectService { Debug.checkDefined(configFileExistenceInfo.watcher); if ((_c = configFileExistenceInfo.openFilesImpactedByConfigFile) == null ? void 0 : _c.size) { if (configFileExistenceInfo.inferredProjectRoots) { - if (!canWatchDirectoryOrFilePath(getDirectoryPath(canonicalConfigFilePath))) { + if (!canWatchDirectoryOrFile(getPathComponents(getDirectoryPath(canonicalConfigFilePath)))) { configFileExistenceInfo.watcher.close(); configFileExistenceInfo.watcher = noopConfigFileWatcher; } @@ -189754,7 +185936,7 @@ var _ProjectService = class _ProjectService { configFileExistenceInfo.inferredProjectRoots = (configFileExistenceInfo.inferredProjectRoots ?? 0) + 1; } (configFileExistenceInfo.openFilesImpactedByConfigFile ?? (configFileExistenceInfo.openFilesImpactedByConfigFile = /* @__PURE__ */ new Set())).add(info.path); - configFileExistenceInfo.watcher || (configFileExistenceInfo.watcher = canWatchDirectoryOrFilePath(getDirectoryPath(canonicalConfigFilePath)) ? this.watchFactory.watchFile( + configFileExistenceInfo.watcher || (configFileExistenceInfo.watcher = canWatchDirectoryOrFile(getPathComponents(getDirectoryPath(canonicalConfigFilePath))) ? this.watchFactory.watchFile( configFileName, (_filename, eventKind) => this.onConfigFileChanged(configFileName, canonicalConfigFilePath, eventKind), 2e3 /* High */, @@ -189782,48 +185964,34 @@ var _ProjectService = class _ProjectService { let searchPath = asNormalizedPath(getDirectoryPath(info.fileName)); const isSearchPathInProjectRoot = () => containsPath(projectRootPath, searchPath, this.currentDirectory, !this.host.useCaseSensitiveFileNames); const anySearchPathOk = !projectRootPath || !isSearchPathInProjectRoot(); - let searchTsconfig = true; - let searchJsconfig = true; - if (isAncestorConfigFileInfo(info)) { - if (endsWith(info.fileName, "tsconfig.json")) searchTsconfig = false; - else searchTsconfig = searchJsconfig = false; - } + let searchInDirectory = !isAncestorConfigFileInfo(info); do { - const canonicalSearchPath = normalizedPathToPath(searchPath, this.currentDirectory, this.toCanonicalFileName); - if (searchTsconfig) { + if (searchInDirectory) { + const canonicalSearchPath = normalizedPathToPath(searchPath, this.currentDirectory, this.toCanonicalFileName); const tsconfigFileName = asNormalizedPath(combinePaths(searchPath, "tsconfig.json")); - const result = action(combinePaths(canonicalSearchPath, "tsconfig.json"), tsconfigFileName); + let result = action(combinePaths(canonicalSearchPath, "tsconfig.json"), tsconfigFileName); if (result) return tsconfigFileName; - } - if (searchJsconfig) { const jsconfigFileName = asNormalizedPath(combinePaths(searchPath, "jsconfig.json")); - const result = action(combinePaths(canonicalSearchPath, "jsconfig.json"), jsconfigFileName); + result = action(combinePaths(canonicalSearchPath, "jsconfig.json"), jsconfigFileName); if (result) return jsconfigFileName; - } - if (isNodeModulesDirectory(canonicalSearchPath)) { - break; + if (isNodeModulesDirectory(canonicalSearchPath)) { + break; + } } const parentPath = asNormalizedPath(getDirectoryPath(searchPath)); if (parentPath === searchPath) break; searchPath = parentPath; - searchTsconfig = searchJsconfig = true; + searchInDirectory = true; } while (anySearchPathOk || isSearchPathInProjectRoot()); return void 0; } /** @internal */ findDefaultConfiguredProject(info) { var _a; - return (_a = this.findDefaultConfiguredProjectWorker( + return info.isScriptOpen() ? (_a = this.tryFindDefaultConfiguredProjectForOpenScriptInfo( info, - 1 /* Find */ - )) == null ? void 0 : _a.defaultProject; - } - /** @internal */ - findDefaultConfiguredProjectWorker(info, kind) { - return info.isScriptOpen() ? this.tryFindDefaultConfiguredProjectForOpenScriptInfo( - info, - kind - ) : void 0; + 0 /* Find */ + )) == null ? void 0 : _a.defaultProject : void 0; } /** Get cached configFileName for scriptInfo or ancestor of open script info */ getConfigFileNameForFileFromCache(info, lookInPendingFilesForValue) { @@ -189836,19 +186004,8 @@ var _ProjectService = class _ProjectService { /** Caches the configFilename for script info or ancestor of open script info */ setConfigFileNameForFileInCache(info, configFileName) { if (!this.openFiles.has(info.path)) return; - const config = configFileName || false; - if (!isAncestorConfigFileInfo(info)) { - this.configFileForOpenFiles.set(info.path, config); - } else { - let configFileForOpenFile = this.configFileForOpenFiles.get(info.path); - if (!configFileForOpenFile || isString(configFileForOpenFile)) { - this.configFileForOpenFiles.set( - info.path, - configFileForOpenFile = (/* @__PURE__ */ new Map()).set(false, configFileForOpenFile) - ); - } - configFileForOpenFile.set(info.fileName, config); - } + if (isAncestorConfigFileInfo(info)) return; + this.configFileForOpenFiles.set(info.path, configFileName || false); } /** * This function tries to search for a tsconfig.json for the given file. @@ -189928,6 +186085,7 @@ var _ProjectService = class _ProjectService { const project = new ExternalProject( projectFileName, this, + this.documentRegistry, compilerOptions, /*lastFileExceededProgramSize*/ this.getFilenameForExceededTotalSizeLimitForNonTsFiles(projectFileName, compilerOptions, files, externalFilePropertyReader), @@ -189998,6 +186156,7 @@ var _ProjectService = class _ProjectService { createConfiguredProject(configFileName, reason) { var _a; (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.Session, "createConfiguredProject", { configFilePath: configFileName }); + this.logger.info(`Creating configuration project ${configFileName}`); const canonicalConfigFilePath = asNormalizedPath(this.toCanonicalFileName(configFileName)); let configFileExistenceInfo = this.configFileExistenceInfoCache.get(canonicalConfigFilePath); if (!configFileExistenceInfo) { @@ -190016,6 +186175,7 @@ var _ProjectService = class _ProjectService { configFileName, canonicalConfigFilePath, this, + this.documentRegistry, configFileExistenceInfo.config.cachedDirectoryStructureHost, reason ); @@ -190026,12 +186186,14 @@ var _ProjectService = class _ProjectService { } /** * Read the config file of the project, and update the project root file names. + * + * @internal */ loadConfiguredProject(project, reason) { var _a, _b; (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "loadConfiguredProject", { configFilePath: project.canonicalConfigFilePath }); this.sendProjectLoadingStartEvent(project, reason); - const configFilename = toNormalizedPath(project.getConfigFilePath()); + const configFilename = asNormalizedPath(normalizePath(project.getConfigFilePath())); const configFileExistenceInfo = this.ensureParsedConfigUptoDate( configFilename, project.canonicalConfigFilePath, @@ -190049,7 +186211,7 @@ var _ProjectService = class _ProjectService { configHasExcludeProperty: parsedCommandLine.raw.exclude !== void 0 }; } - project.parsedCommandLine = parsedCommandLine; + project.canConfigFileJsonReportNoInputFiles = canJsonReportNoInputFiles(parsedCommandLine.raw); project.setProjectErrors(parsedCommandLine.options.configFile.parseDiagnostics); project.updateReferences(parsedCommandLine.projectReferences); const lastFileExceededProgramSize = this.getFilenameForExceededTotalSizeLimitForNonTsFiles(project.canonicalConfigFilePath, compilerOptions, parsedCommandLine.fileNames, fileNamePropertyReader); @@ -190071,19 +186233,12 @@ var _ProjectService = class _ProjectService { ensureParsedConfigUptoDate(configFilename, canonicalConfigFilePath, configFileExistenceInfo, forProject) { var _a, _b, _c; if (configFileExistenceInfo.config) { + if (!configFileExistenceInfo.config.updateLevel) return configFileExistenceInfo; if (configFileExistenceInfo.config.updateLevel === 1 /* RootNamesAndUpdate */) { this.reloadFileNamesOfParsedConfig(configFilename, configFileExistenceInfo.config); - } - if (!configFileExistenceInfo.config.updateLevel) { - this.ensureConfigFileWatcherForProject(configFileExistenceInfo, forProject); return configFileExistenceInfo; } } - if (!configFileExistenceInfo.exists && configFileExistenceInfo.config) { - configFileExistenceInfo.config.updateLevel = void 0; - this.ensureConfigFileWatcherForProject(configFileExistenceInfo, forProject); - return configFileExistenceInfo; - } const cachedDirectoryStructureHost = ((_a = configFileExistenceInfo.config) == null ? void 0 : _a.cachedDirectoryStructureHost) || createCachedDirectoryStructureHost(this.host, this.host.getCurrentDirectory(), this.host.useCaseSensitiveFileNames); const configFileContent = tryReadFile(configFilename, (fileName) => this.host.readFile(fileName)); const configFile = parseJsonText(configFilename, isString(configFileContent) ? configFileContent : ""); @@ -190278,18 +186433,15 @@ var _ProjectService = class _ProjectService { * @internal */ reloadFileNamesOfConfiguredProject(project) { - const config = this.reloadFileNamesOfParsedConfig(project.getConfigFilePath(), this.configFileExistenceInfoCache.get(project.canonicalConfigFilePath).config); - project.updateErrorOnNoInputFiles(config); - this.updateNonInferredProjectFiles( - project, - config.fileNames.concat(project.getExternalFiles(1 /* RootNamesAndUpdate */)), - fileNamePropertyReader - ); + const fileNames = this.reloadFileNamesOfParsedConfig(project.getConfigFilePath(), this.configFileExistenceInfoCache.get(project.canonicalConfigFilePath).config); + project.updateErrorOnNoInputFiles(fileNames); + this.updateNonInferredProjectFiles(project, fileNames.concat(project.getExternalFiles(1 /* RootNamesAndUpdate */)), fileNamePropertyReader); project.markAsDirty(); return project.updateGraph(); } + /** @internal */ reloadFileNamesOfParsedConfig(configFileName, config) { - if (config.updateLevel === void 0) return config.parsedCommandLine; + if (config.updateLevel === void 0) return config.parsedCommandLine.fileNames; Debug.assert(config.updateLevel === 1 /* RootNamesAndUpdate */); const configFileSpecs = config.parsedCommandLine.options.configFile.configFileSpecs; const fileNames = getFileNamesFromConfigSpecs( @@ -190300,42 +186452,30 @@ var _ProjectService = class _ProjectService { this.hostConfiguration.extraFileExtensions ); config.parsedCommandLine = { ...config.parsedCommandLine, fileNames }; - config.updateLevel = void 0; - return config.parsedCommandLine; + return fileNames; } /** @internal */ - setFileNamesOfAutoImportProviderOrAuxillaryProject(project, fileNames) { + setFileNamesOfAutpImportProviderOrAuxillaryProject(project, fileNames) { this.updateNonInferredProjectFiles(project, fileNames, fileNamePropertyReader); } /** @internal */ - reloadConfiguredProjectOptimized(project, reason, reloadedProjects) { - if (reloadedProjects.has(project)) return; - reloadedProjects.set(project, 6 /* ReloadOptimized */); - if (!project.initialLoadPending) { - this.setProjectForReload(project, 2 /* Full */, reason); - } - } - /** @internal */ reloadConfiguredProjectClearingSemanticCache(project, reason, reloadedProjects) { - if (reloadedProjects.get(project) === 7 /* Reload */) return false; - reloadedProjects.set(project, 7 /* Reload */); + if (!tryAddToSet(reloadedProjects, project)) return false; this.clearSemanticCache(project); this.reloadConfiguredProject(project, reloadReason(reason)); return true; } - setProjectForReload(project, updateLevel, reason) { - if (updateLevel === 2 /* Full */) this.clearSemanticCache(project); - project.pendingUpdateReason = reason && reloadReason(reason); - project.pendingUpdateLevel = updateLevel; - } /** * Read the config file of the project again by clearing the cache and update the project graph * * @internal */ reloadConfiguredProject(project, reason) { - project.initialLoadPending = false; - this.setProjectForReload(project, 0 /* Update */); + project.isInitialLoadPending = returnFalse; + project.pendingUpdateReason = void 0; + project.pendingUpdateLevel = 0 /* Update */; + const host = project.getCachedDirectoryStructureHost(); + host.clearCache(); this.loadConfiguredProject(project, reason); updateWithTriggerFile( project, @@ -190344,6 +186484,7 @@ var _ProjectService = class _ProjectService { true ); } + /** @internal */ clearSemanticCache(project) { project.originalConfiguredProjects = void 0; project.resolutionCache.clear(); @@ -190405,11 +186546,9 @@ var _ProjectService = class _ProjectService { return this.inferredProjects[0]; } return this.createInferredProject( - this.currentDirectory, + "", /*isSingleInferredProject*/ - true, - /*projectRootPath*/ - void 0 + true ); } getOrCreateSingleInferredWithoutProjectRoot(currentDirectory) { @@ -190420,13 +186559,7 @@ var _ProjectService = class _ProjectService { return inferredProject; } } - return this.createInferredProject( - currentDirectory, - /*isSingleInferredProject*/ - false, - /*projectRootPath*/ - void 0 - ); + return this.createInferredProject(currentDirectory); } createInferredProject(currentDirectory, isSingleInferredProject, projectRootPath) { const compilerOptions = projectRootPath && this.compilerOptionsForInferredProjectsPerProjectRoot.get(projectRootPath) || this.compilerOptionsForInferredProjects; @@ -190443,14 +186576,7 @@ var _ProjectService = class _ProjectService { typeAcquisition = this.typeAcquisitionForInferredProjects; } watchOptionsAndErrors = watchOptionsAndErrors || void 0; - const project = new InferredProject2( - this, - compilerOptions, - watchOptionsAndErrors == null ? void 0 : watchOptionsAndErrors.watchOptions, - projectRootPath, - currentDirectory, - typeAcquisition - ); + const project = new InferredProject2(this, this.documentRegistry, compilerOptions, watchOptionsAndErrors == null ? void 0 : watchOptionsAndErrors.watchOptions, projectRootPath, currentDirectory, typeAcquisition); project.setProjectErrors(watchOptionsAndErrors == null ? void 0 : watchOptionsAndErrors.errors); if (isSingleInferredProject) { this.inferredProjects.unshift(project); @@ -190935,6 +187061,7 @@ Dynamic files must always be opened with service's current directory or service getWatchOptions(project) { return this.getWatchOptionsFromProjectWatchOptions(project.getWatchOptions(), project.getCurrentDirectory()); } + /** @internal */ getWatchOptionsFromProjectWatchOptions(projectOptions, basePath) { const hostWatchOptions = !this.hostConfiguration.beforeSubstitution ? this.hostConfiguration.watchOptions : handleWatchOptionsConfigDirTemplateSubstitution( this.hostConfiguration.beforeSubstitution, @@ -190945,34 +187072,20 @@ Dynamic files must always be opened with service's current directory or service closeLog() { this.logger.close(); } - sendSourceFileChange(inPath) { + /** + * This function rebuilds the project for every file opened by the client + * This does not reload contents of open files from disk. But we could do that if needed + */ + reloadProjects() { + this.logger.info("reload projects."); this.filenameToScriptInfo.forEach((info) => { if (this.openFiles.has(info.path)) return; if (!info.fileWatcher) return; - const eventKind = memoize( - () => this.host.fileExists(info.fileName) ? info.deferredDelete ? 0 /* Created */ : 1 /* Changed */ : 2 /* Deleted */ - ); - if (inPath) { - if (isScriptInfoWatchedFromNodeModules(info) || !info.path.startsWith(inPath)) return; - if (eventKind() === 2 /* Deleted */ && info.deferredDelete) return; - this.logger.info(`Invoking sourceFileChange on ${info.fileName}:: ${eventKind()}`); - } this.onSourceFileChanged( info, - eventKind() + this.host.fileExists(info.fileName) ? info.deferredDelete ? 0 /* Created */ : 1 /* Changed */ : 2 /* Deleted */ ); }); - } - /** - * This function rebuilds the project for every file opened by the client - * This does not reload contents of open files from disk. But we could do that if needed - */ - reloadProjects() { - this.logger.info("reload projects."); - this.sendSourceFileChange( - /*inPath*/ - void 0 - ); this.pendingProjectUpdates.forEach((_project, projectName) => { this.throttledOperations.cancel(projectName); this.pendingProjectUpdates.delete(projectName); @@ -190981,23 +187094,25 @@ Dynamic files must always be opened with service's current directory or service this.pendingOpenFileProjectUpdates = void 0; this.pendingEnsureProjectForOpenFiles = false; this.configFileExistenceInfoCache.forEach((info) => { - if (info.config) { - info.config.updateLevel = 2 /* Full */; - info.config.cachedDirectoryStructureHost.clearCache(); - } + if (info.config) info.config.updateLevel = 2 /* Full */; }); this.configFileForOpenFiles.clear(); this.externalProjects.forEach((project) => { this.clearSemanticCache(project); project.updateGraph(); }); - const reloadedConfiguredProjects = /* @__PURE__ */ new Map(); + const reloadedConfiguredProjects = /* @__PURE__ */ new Set(); const delayReloadedConfiguredProjects = /* @__PURE__ */ new Set(); this.externalProjectToConfiguredProjectMap.forEach((projects, externalProjectName) => { const reason = `Reloading configured project in external project: ${externalProjectName}`; projects.forEach((project) => { if (this.getHostPreferences().lazyConfiguredProjectsFromExternalProject) { - this.reloadConfiguredProjectOptimized(project, reason, reloadedConfiguredProjects); + if (!project.isInitialLoadPending()) { + this.clearSemanticCache(project); + project.pendingUpdateLevel = 2 /* Full */; + project.pendingUpdateReason = reloadReason(reason); + } + delayReloadedConfiguredProjects.add(project); } else { this.reloadConfiguredProjectClearingSemanticCache( project, @@ -191012,12 +187127,12 @@ Dynamic files must always be opened with service's current directory or service if (find(info.containingProjects, isExternalProject)) return; this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo( info, - 7 /* Reload */, + 2 /* Reload */, reloadedConfiguredProjects, delayReloadedConfiguredProjects ); }); - delayReloadedConfiguredProjects.forEach((p) => reloadedConfiguredProjects.set(p, 7 /* Reload */)); + delayReloadedConfiguredProjects.forEach((p) => reloadedConfiguredProjects.add(p)); this.inferredProjects.forEach((project) => this.clearSemanticCache(project)); this.ensureProjectForOpenFiles(); this.cleanupProjectsAndScriptInfos( @@ -191059,7 +187174,7 @@ Dynamic files must always be opened with service's current directory or service pendingOpenFileProjectUpdates == null ? void 0 : pendingOpenFileProjectUpdates.forEach( (_config, path) => this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo( this.getScriptInfoForPath(path), - 5 /* Create */ + 1 /* Create */ ) ); this.openFiles.forEach((projectRootPath, path) => { @@ -191115,18 +187230,23 @@ Dynamic files must always be opened with service's current directory or service } configuredProject = this.createConfiguredProject(configFileName, `Creating project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location: " + location.fileName : ""}`); } - const result = this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo( - originalFileInfo, - 5 /* Create */, - updateProjectFoundUsingFind( + updateProjectIfDirty(configuredProject); + const projectContainsOriginalInfo = (project2) => { + const info = this.getScriptInfo(fileName); + return info && project2.containsScriptInfo(info) && !project2.isSourceOfProjectReferenceRedirect(info.path); + }; + if (configuredProject.isSolution() || !projectContainsOriginalInfo(configuredProject)) { + configuredProject = forEachResolvedProjectReferenceProject( configuredProject, - 4 /* CreateOptimized */ - ), - (project2) => `Creating project referenced in solution ${project2.projectName} to find possible configured project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location: " + location.fileName : ""}` - ); - if (!result.defaultProject) return void 0; - if (result.defaultProject === project) return originalLocation; - addOriginalConfiguredProject(result.defaultProject); + fileName, + (child) => projectContainsOriginalInfo(child) ? child : void 0, + 1 /* Create */, + `Creating project referenced in solution ${configuredProject.projectName} to find possible configured project for original file: ${originalFileInfo.fileName}${location !== originalLocation ? " for location: " + location.fileName : ""}` + ); + if (!configuredProject) return void 0; + if (configuredProject === project) return originalLocation; + } + addOriginalConfiguredProject(configuredProject); const originalScriptInfo = this.getScriptInfo(fileName); if (!originalScriptInfo || !originalScriptInfo.containingProjects.length) return void 0; originalScriptInfo.containingProjects.forEach((project2) => { @@ -191175,7 +187295,7 @@ Dynamic files must always be opened with service's current directory or service if (!project && this.serverMode === 0 /* Semantic */) { const result = this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo( info, - 5 /* Create */ + 1 /* Create */ ); if (result) { retainProjects = result.seenProjects; @@ -191188,8 +187308,8 @@ Dynamic files must always be opened with service's current directory or service } info.containingProjects.forEach(updateProjectIfDirty); if (info.isOrphan()) { - retainProjects == null ? void 0 : retainProjects.forEach((kind, project2) => { - if (kind !== 4 /* CreateOptimized */ && !sentConfigDiag.has(project2)) this.sendConfigFileDiagEvent( + retainProjects == null ? void 0 : retainProjects.forEach((project2) => { + if (!sentConfigDiag.has(project2)) this.sendConfigFileDiagEvent( project2, info.fileName, /*force*/ @@ -191209,49 +187329,30 @@ Dynamic files must always be opened with service's current directory or service * - Reload - if the project doesnt exist, it creates one. If not delayLoad, the project is reloaded clearing semantic cache * @internal */ - findCreateOrReloadConfiguredProject(configFileName, kind, reason, allowDeferredClosed, triggerFile, reloadedProjects, delayLoad, delayReloadedConfiguredProjects, projectForConfigFile) { - let project = projectForConfigFile ?? this.findConfiguredProjectByProjectName(configFileName, allowDeferredClosed); + findCreateOrReloadConfiguredProject(configFileName, kind, reason, allowDeferredClosed, triggerFile, reloadedProjects, delayLoad, delayReloadedConfiguredProjects) { + let project = this.findConfiguredProjectByProjectName(configFileName, allowDeferredClosed); let sentConfigFileDiag = false; - let configFileExistenceInfo; switch (kind) { - case 0 /* FindOptimized */: - case 1 /* Find */: - case 3 /* CreateReplay */: + case 0 /* Find */: if (!project) return; break; - case 2 /* CreateReplayOptimized */: - if (!project) return; - configFileExistenceInfo = configFileExistenceInfoForOptimizedReplay(project); - break; - case 4 /* CreateOptimized */: - case 5 /* Create */: + case 1 /* Create */: project ?? (project = this.createConfiguredProject(configFileName, reason)); - if (!delayLoad) { - ({ sentConfigFileDiag, configFileExistenceInfo } = updateProjectFoundUsingFind( - project, - kind, - triggerFile - )); - } + sentConfigFileDiag = !delayLoad && updateConfiguredProject(project, triggerFile); break; - case 6 /* ReloadOptimized */: - project ?? (project = this.createConfiguredProject(configFileName, reloadReason(reason))); - project.projectService.reloadConfiguredProjectOptimized(project, reason, reloadedProjects); - configFileExistenceInfo = configFileExistenceInfoForOptimizedLoading(project); - if (configFileExistenceInfo) break; - // falls through - case 7 /* Reload */: + case 2 /* Reload */: project ?? (project = this.createConfiguredProject(configFileName, reloadReason(reason))); sentConfigFileDiag = !delayReloadedConfiguredProjects && this.reloadConfiguredProjectClearingSemanticCache(project, reason, reloadedProjects); if (delayReloadedConfiguredProjects && !delayReloadedConfiguredProjects.has(project) && !reloadedProjects.has(project)) { - this.setProjectForReload(project, 2 /* Full */, reason); + project.pendingUpdateLevel = 2 /* Full */; + project.pendingUpdateReason = reloadReason(reason); delayReloadedConfiguredProjects.add(project); } break; default: Debug.assertNever(kind); } - return { project, sentConfigFileDiag, configFileExistenceInfo, reason }; + return { project, sentConfigFileDiag }; } /** * Finds the default configured project for given info @@ -191259,167 +187360,54 @@ Dynamic files must always be opened with service's current directory or service * The search happens for all tsconfigs till projectRootPath */ tryFindDefaultConfiguredProjectForOpenScriptInfo(info, kind, allowDeferredClosed, reloadedProjects) { - const configFileName = this.getConfigFileNameForFile(info, kind <= 3 /* CreateReplay */); + const configFileName = this.getConfigFileNameForFile(info, kind === 0 /* Find */); if (!configFileName) return; - const optimizedKind = toConfiguredProjectLoadOptimized(kind); const result = this.findCreateOrReloadConfiguredProject( configFileName, - optimizedKind, + kind, fileOpenReason(info), allowDeferredClosed, info.fileName, reloadedProjects ); - return result && this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo( - info, - kind, - result, - (project) => `Creating project referenced in solution ${project.projectName} to find possible configured project for ${info.fileName} to open`, - allowDeferredClosed, - reloadedProjects - ); - } - isMatchedByConfig(configFileName, config, info) { - if (config.fileNames.some((rootName) => this.toPath(rootName) === info.path)) return true; - if (isSupportedSourceFileName( - info.fileName, - config.options, - this.hostConfiguration.extraFileExtensions - )) return false; - const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = config.options.configFile.configFileSpecs; - const basePath = toNormalizedPath(getNormalizedAbsolutePath(getDirectoryPath(configFileName), this.currentDirectory)); - if (validatedFilesSpec == null ? void 0 : validatedFilesSpec.some((fileSpec) => this.toPath(getNormalizedAbsolutePath(fileSpec, basePath)) === info.path)) return true; - if (!(validatedIncludeSpecs == null ? void 0 : validatedIncludeSpecs.length)) return false; - if (matchesExcludeWorker( - info.fileName, - validatedExcludeSpecs, - this.host.useCaseSensitiveFileNames, - this.currentDirectory, - basePath - )) return false; - return validatedIncludeSpecs == null ? void 0 : validatedIncludeSpecs.some((includeSpec) => { - const pattern = getPatternFromSpec(includeSpec, basePath, "files"); - return !!pattern && getRegexFromPattern(`(${pattern})$`, this.host.useCaseSensitiveFileNames).test(info.fileName); - }); - } - tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(info, kind, initialConfigResult, referencedProjectReason, allowDeferredClosed, reloadedProjects) { - const infoIsOpenScriptInfo = isOpenScriptInfo(info); - const optimizedKind = toConfiguredProjectLoadOptimized(kind); - const seenProjects = /* @__PURE__ */ new Map(); - let seenConfigs; - const sentConfigDiag = /* @__PURE__ */ new Set(); + if (!result) return; + const seenProjects = /* @__PURE__ */ new Set(); + const sentConfigDiag = new Set(result.sentConfigFileDiag ? [result.project] : void 0); let defaultProject; let possiblyDefault; - let tsconfigOfDefault; - let tsconfigOfPossiblyDefault; - tryFindDefaultConfiguredProject(initialConfigResult); + tryFindDefaultConfiguredProject(result.project); return { defaultProject: defaultProject ?? possiblyDefault, - tsconfigProject: tsconfigOfDefault ?? tsconfigOfPossiblyDefault, sentConfigDiag, - seenProjects, - seenConfigs + seenProjects }; - function tryFindDefaultConfiguredProject(result) { - return isDefaultProjectOptimized(result, result.project) ?? tryFindDefaultConfiguredProjectFromReferences(result.project) ?? tryFindDefaultConfiguredProjectFromAncestor(result.project); + function tryFindDefaultConfiguredProject(project) { + return isDefaultProject(project) ? defaultProject : tryFindDefaultConfiguredProjectFromReferences(project); } - function isDefaultConfigFileExistenceInfo(configFileExistenceInfo, project, childConfigName, reason, tsconfigProject, canonicalConfigFilePath) { - if (project) { - if (seenProjects.has(project)) return; - seenProjects.set(project, optimizedKind); - } else { - if (seenConfigs == null ? void 0 : seenConfigs.has(canonicalConfigFilePath)) return; - (seenConfigs ?? (seenConfigs = /* @__PURE__ */ new Set())).add(canonicalConfigFilePath); - } - if (!tsconfigProject.projectService.isMatchedByConfig( - childConfigName, - configFileExistenceInfo.config.parsedCommandLine, - info - )) { - if (tsconfigProject.languageServiceEnabled) { - tsconfigProject.projectService.watchWildcards( - childConfigName, - configFileExistenceInfo, - tsconfigProject - ); - } - return; - } - const result = project ? updateProjectFoundUsingFind( - project, - kind, - info.fileName, - reason, - reloadedProjects - ) : tsconfigProject.projectService.findCreateOrReloadConfiguredProject( - childConfigName, - kind, - reason, - allowDeferredClosed, - info.fileName, - reloadedProjects - ); - if (!result) { - Debug.assert(kind === 3 /* CreateReplay */); - return void 0; - } - seenProjects.set(result.project, optimizedKind); - if (result.sentConfigFileDiag) sentConfigDiag.add(result.project); - return isDefaultProject(result.project, tsconfigProject); - } - function isDefaultProject(project, tsconfigProject) { - if (seenProjects.get(project) === kind) return; - seenProjects.set(project, kind); - const scriptInfo = infoIsOpenScriptInfo ? info : project.projectService.getScriptInfo(info.fileName); - const projectWithInfo = scriptInfo && project.containsScriptInfo(scriptInfo); - if (projectWithInfo && !project.isSourceOfProjectReferenceRedirect(scriptInfo.path)) { - tsconfigOfDefault = tsconfigProject; - return defaultProject = project; - } - if (!possiblyDefault && infoIsOpenScriptInfo && projectWithInfo) { - tsconfigOfPossiblyDefault = tsconfigProject; - possiblyDefault = project; - } - } - function isDefaultProjectOptimized(result, tsconfigProject) { - if (result.sentConfigFileDiag) sentConfigDiag.add(result.project); - return result.configFileExistenceInfo ? isDefaultConfigFileExistenceInfo( - result.configFileExistenceInfo, - result.project, - toNormalizedPath(result.project.getConfigFilePath()), - result.reason, - result.project, - result.project.canonicalConfigFilePath - ) : isDefaultProject(result.project, tsconfigProject); + function isDefaultProject(project) { + if (!tryAddToSet(seenProjects, project)) return; + const projectWithInfo = project.containsScriptInfo(info); + if (projectWithInfo && !project.isSourceOfProjectReferenceRedirect(info.path)) return defaultProject = project; + possiblyDefault ?? (possiblyDefault = projectWithInfo ? project : void 0); } function tryFindDefaultConfiguredProjectFromReferences(project) { - return project.parsedCommandLine && forEachResolvedProjectReferenceProjectLoad( + return forEachResolvedProjectReferenceProject( project, - project.parsedCommandLine, - isDefaultConfigFileExistenceInfo, - optimizedKind, - referencedProjectReason(project), + info.path, + (child, sentConfigFileDiag) => { + if (sentConfigFileDiag) sentConfigDiag.add(child); + return isDefaultProject(child); + }, + kind, + `Creating project referenced in solution ${project.projectName} to find possible configured project for ${info.fileName} to open`, allowDeferredClosed, + info.fileName, reloadedProjects ); } - function tryFindDefaultConfiguredProjectFromAncestor(project) { - return infoIsOpenScriptInfo ? forEachAncestorProjectLoad( - // If not in referenced projects, try ancestors and its references - info, - project, - tryFindDefaultConfiguredProject, - optimizedKind, - `Creating possible configured project for ${info.fileName} to open`, - allowDeferredClosed, - reloadedProjects, - /*searchOnlyPotentialSolution*/ - false - ) : void 0; - } } tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(info, kind, reloadedProjects, delayReloadedConfiguredProjects) { - const allowDeferredClosed = kind === 1 /* Find */; + const allowDeferredClosed = kind === 0 /* Find */; const result = this.tryFindDefaultConfiguredProjectForOpenScriptInfo( info, kind, @@ -191427,20 +187415,18 @@ Dynamic files must always be opened with service's current directory or service reloadedProjects ); if (!result) return; - const { defaultProject, tsconfigProject, seenProjects } = result; + const { defaultProject, seenProjects } = result; if (defaultProject) { - forEachAncestorProjectLoad( + forEachAncestorProject( info, - tsconfigProject, + defaultProject, (ancestor) => { - seenProjects.set(ancestor.project, kind); + seenProjects.add(ancestor); }, kind, `Creating project possibly referencing default composite project ${defaultProject.getProjectName()} of open file ${info.fileName}`, allowDeferredClosed, reloadedProjects, - /*searchOnlyPotentialSolution*/ - true, delayReloadedConfiguredProjects ); } @@ -191448,12 +187434,12 @@ Dynamic files must always be opened with service's current directory or service } /** @internal */ loadAncestorProjectTree(forProjects) { - forProjects ?? (forProjects = new Set( - mapDefinedIterator(this.configuredProjects.entries(), ([key, project]) => !project.initialLoadPending ? key : void 0) - )); + forProjects = forProjects || mapDefinedEntries( + this.configuredProjects, + (key, project) => !project.isInitialLoadPending() ? [key, true] : void 0 + ); const seenProjects = /* @__PURE__ */ new Set(); - const currentConfiguredProjects = arrayFrom(this.configuredProjects.values()); - for (const project of currentConfiguredProjects) { + for (const project of arrayFrom(this.configuredProjects.values())) { if (forEachPotentialProjectReference(project, (potentialRefPath) => forProjects.has(potentialRefPath))) { updateProjectIfDirty(project); } @@ -191499,38 +187485,8 @@ Dynamic files must always be opened with service's current directory or service } this.removeOrphanScriptInfos(); } - tryInvokeWildCardDirectories(info) { - this.configFileExistenceInfoCache.forEach((configFileExistenceInfo, config) => { - var _a, _b; - if (!((_a = configFileExistenceInfo.config) == null ? void 0 : _a.parsedCommandLine) || contains( - configFileExistenceInfo.config.parsedCommandLine.fileNames, - info.fileName, - !this.host.useCaseSensitiveFileNames ? equateStringsCaseInsensitive : equateStringsCaseSensitive - )) { - return; - } - (_b = configFileExistenceInfo.config.watchedDirectories) == null ? void 0 : _b.forEach((watcher, directory) => { - if (containsPath(directory, info.fileName, !this.host.useCaseSensitiveFileNames)) { - this.logger.info(`Invoking ${config}:: wildcard for open scriptInfo:: ${info.fileName}`); - this.onWildCardDirectoryWatcherInvoke( - directory, - config, - configFileExistenceInfo.config, - watcher.watcher, - info.fileName - ); - } - }); - }); - } openClientFileWithNormalizedPath(fileName, fileContent, scriptKind, hasMixedContent, projectRootPath) { - const existing = this.getScriptInfoForPath(normalizedPathToPath( - fileName, - projectRootPath ? this.getNormalizedAbsolutePath(projectRootPath) : this.currentDirectory, - this.toCanonicalFileName - )); const info = this.getOrCreateOpenScriptInfo(fileName, fileContent, scriptKind, hasMixedContent, projectRootPath); - if (!existing && info && !info.isDynamic) this.tryInvokeWildCardDirectories(info); const { retainProjects, ...result } = this.assignProjectToOpenedScriptInfo(info); this.cleanupProjectsAndScriptInfos( retainProjects, @@ -191555,8 +187511,7 @@ Dynamic files must always be opened with service's current directory or service ); } }; - toRetainConfiguredProjects == null ? void 0 : toRetainConfiguredProjects.forEach((_, project) => retainConfiguredProject(project)); - if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects; + toRetainConfiguredProjects == null ? void 0 : toRetainConfiguredProjects.forEach(retainConfiguredProject); this.inferredProjects.forEach(markOriginalProjectsAsUsed); this.externalProjects.forEach(markOriginalProjectsAsUsed); this.externalProjectToConfiguredProjectMap.forEach((projects, externalProjectName) => { @@ -191564,26 +187519,22 @@ Dynamic files must always be opened with service's current directory or service projects.forEach(retainConfiguredProject); } }); - if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects; - forEachEntry(this.openFiles, (_projectRootPath, path) => { + this.openFiles.forEach((_projectRootPath, path) => { if (openFilesWithRetainedConfiguredProject == null ? void 0 : openFilesWithRetainedConfiguredProject.has(path)) return; const info = this.getScriptInfoForPath(path); if (find(info.containingProjects, isExternalProject)) return; const result = this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo( info, - 1 /* Find */ + 0 /* Find */ ); if (result == null ? void 0 : result.defaultProject) { - result == null ? void 0 : result.seenProjects.forEach((_, project) => retainConfiguredProject(project)); - if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects; + result == null ? void 0 : result.seenProjects.forEach(retainConfiguredProject); } }); - if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects; - forEachEntry(this.configuredProjects, (project) => { + this.configuredProjects.forEach((project) => { if (toRemoveConfiguredProjects.has(project)) { if (isPendingUpdate(project) || forEachReferencedProject(project, isRetained)) { retainConfiguredProject(project); - if (!toRemoveConfiguredProjects.size) return toRemoveConfiguredProjects; } } }); @@ -191605,7 +187556,7 @@ Dynamic files must always be opened with service's current directory or service const toRemoveScriptInfos = new Map(this.filenameToScriptInfo); this.filenameToScriptInfo.forEach((info) => { if (info.deferredDelete) return; - if (!info.isScriptOpen() && info.isOrphan() && !scriptInfoIsContainedByDeferredClosedProject(info) && !scriptInfoIsContainedByBackgroundProject(info)) { + if (!info.isScriptOpen() && info.isOrphan() && !info.isContainedByBackgroundProject()) { if (!info.sourceMapFilePath) return; let sourceInfos; if (isString(info.sourceMapFilePath)) { @@ -191682,16 +187633,10 @@ Dynamic files must always be opened with service's current directory or service } /** @internal */ applyChangesInOpenFiles(openFiles, changedFiles, closedFiles) { - let existingOpenScriptInfos; let openScriptInfos; let assignOrphanScriptInfosToInferredProject = false; if (openFiles) { for (const file of openFiles) { - (existingOpenScriptInfos ?? (existingOpenScriptInfos = [])).push(this.getScriptInfoForPath(normalizedPathToPath( - toNormalizedPath(file.fileName), - file.projectRootPath ? this.getNormalizedAbsolutePath(file.projectRootPath) : this.currentDirectory, - this.toCanonicalFileName - ))); const info = this.getOrCreateOpenScriptInfo( toNormalizedPath(file.fileName), file.content, @@ -191719,18 +187664,10 @@ Dynamic files must always be opened with service's current directory or service } } let retainProjects; - forEach( - existingOpenScriptInfos, - (existing, index) => !existing && openScriptInfos[index] && !openScriptInfos[index].isDynamic ? this.tryInvokeWildCardDirectories(openScriptInfos[index]) : void 0 - ); - openScriptInfos == null ? void 0 : openScriptInfos.forEach( - (info) => { - var _a; - return (_a = this.assignProjectToOpenedScriptInfo(info).retainProjects) == null ? void 0 : _a.forEach( - (kind, p) => (retainProjects ?? (retainProjects = /* @__PURE__ */ new Map())).set(p, kind) - ); - } - ); + openScriptInfos == null ? void 0 : openScriptInfos.forEach((info) => { + var _a; + return (_a = this.assignProjectToOpenedScriptInfo(info).retainProjects) == null ? void 0 : _a.forEach((p) => (retainProjects ?? (retainProjects = /* @__PURE__ */ new Set())).add(p)); + }); if (assignOrphanScriptInfosToInferredProject) { this.assignOrphanScriptInfosToInferredProject(); } @@ -191946,7 +187883,7 @@ Dynamic files must always be opened with service's current directory or service if (cleanupAfter) { this.cleanupConfiguredProjects( configuredProjects, - /* @__PURE__ */ new Set([proj.projectFileName]) + new Set(proj.projectFileName) ); this.printProjects(); } @@ -191969,12 +187906,12 @@ Dynamic files must always be opened with service's current directory or service return; } this.logger.info(`Enabling plugin ${pluginConfigEntry.name} from candidate paths: ${searchPaths.join(",")}`); - if (!pluginConfigEntry.name || isExternalModuleNameRelative(pluginConfigEntry.name) || /[\\/]\.\.?(?:$|[\\/])/.test(pluginConfigEntry.name)) { + if (!pluginConfigEntry.name || isExternalModuleNameRelative(pluginConfigEntry.name) || /[\\/]\.\.?($|[\\/])/.test(pluginConfigEntry.name)) { this.logger.info(`Skipped loading plugin ${pluginConfigEntry.name || JSON.stringify(pluginConfigEntry)} because only package name is allowed plugin name`); return; } if (this.host.importPlugin) { - const importPromise = Project2.importServicePluginAsync( + const importPromise = Project3.importServicePluginAsync( pluginConfigEntry, searchPaths, this.host, @@ -191988,7 +187925,7 @@ Dynamic files must always be opened with service's current directory or service } this.endEnablePlugin( project, - Project2.importServicePluginSync( + Project3.importServicePluginSync( pluginConfigEntry, searchPaths, this.host, @@ -191998,6 +187935,7 @@ Dynamic files must always be opened with service's current directory or service } /** * Performs the remaining steps of enabling a plugin after its module has been instantiated. + * @internal */ endEnablePlugin(project, { pluginConfigEntry, resolvedModule, errorLogs }) { var _a; @@ -192084,11 +188022,9 @@ Dynamic files must always be opened with service's current directory or service const result = []; const processDirectory = (directory) => { switch (packageJsonCache.directoryHasPackageJson(directory)) { - // Sync and check same directory again case 3 /* Maybe */: - packageJsonCache.searchDirectoryAndAncestors(directory, project); + packageJsonCache.searchDirectoryAndAncestors(directory); return processDirectory(directory); - // Check package.json case -1 /* True */: const packageJsonFileName = combinePaths(directory, "package.json"); this.watchPackageJsonFile(packageJsonFileName, this.toPath(packageJsonFileName), project); @@ -192099,30 +188035,23 @@ Dynamic files must always be opened with service's current directory or service return true; } }; - forEachAncestorDirectoryStoppingAtGlobalCache( - project, - getDirectoryPath(fileName), - processDirectory - ); + forEachAncestorDirectory(getDirectoryPath(fileName), processDirectory); return result; } /** @internal */ - getNearestAncestorDirectoryWithPackageJson(fileName, project) { - return forEachAncestorDirectoryStoppingAtGlobalCache( - project, - fileName, - (directory) => { - switch (this.packageJsonCache.directoryHasPackageJson(directory)) { - case -1 /* True */: - return directory; - case 0 /* False */: - return void 0; - case 3 /* Maybe */: - return this.host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0; - } + getNearestAncestorDirectoryWithPackageJson(fileName) { + return forEachAncestorDirectory(fileName, (directory) => { + switch (this.packageJsonCache.directoryHasPackageJson(directory)) { + case -1 /* True */: + return directory; + case 0 /* False */: + return void 0; + case 3 /* Maybe */: + return this.host.fileExists(combinePaths(directory, "package.json")) ? directory : void 0; } - ); + }); } + /** @internal */ watchPackageJsonFile(file, path, project) { Debug.assert(project !== void 0); let result = (this.packageJsonFilesMap ?? (this.packageJsonFilesMap = /* @__PURE__ */ new Map())).get(path); @@ -192163,6 +188092,7 @@ Dynamic files must always be opened with service's current directory or service result.projects.add(project); (project.packageJsonWatches ?? (project.packageJsonWatches = /* @__PURE__ */ new Set())).add(result); } + /** @internal */ onPackageJsonChange(result) { result.projects.forEach((project) => { var _a; @@ -192187,7 +188117,7 @@ Dynamic files must always be opened with service's current directory or service }; /** Makes a filename safe to insert in a RegExp */ _ProjectService.filenameEscapeRegexp = /[-/\\^$*+?.()|[\]{}]/g; -var ProjectService2 = _ProjectService; +var ProjectService3 = _ProjectService; function createIncompleteCompletionsCache() { let info; return { @@ -192231,8 +188161,6 @@ function createModuleSpecifierCache(host) { kind, modulePaths, moduleSpecifiers, - /*packageName*/ - void 0, /*isBlockedByPackageJsonDependencies*/ false )); @@ -192263,19 +188191,16 @@ function createModuleSpecifierCache(host) { modulePaths, /*moduleSpecifiers*/ void 0, - /*packageName*/ - void 0, /*isBlockedByPackageJsonDependencies*/ void 0 )); } }, - setBlockedByPackageJsonDependencies(fromFileName, toFileName2, preferences, options, packageName, isBlockedByPackageJsonDependencies) { + setBlockedByPackageJsonDependencies(fromFileName, toFileName2, preferences, options, isBlockedByPackageJsonDependencies) { const cache2 = ensureCache(fromFileName, preferences, options); const info = cache2.get(toFileName2); if (info) { info.isBlockedByPackageJsonDependencies = isBlockedByPackageJsonDependencies; - info.packageName = packageName; } else { cache2.set(toFileName2, createInfo( /*kind*/ @@ -192284,7 +188209,6 @@ function createModuleSpecifierCache(host) { void 0, /*moduleSpecifiers*/ void 0, - packageName, isBlockedByPackageJsonDependencies )); } @@ -192314,8 +188238,8 @@ function createModuleSpecifierCache(host) { function key(fromFileName, preferences, options) { return `${fromFileName},${preferences.importModuleSpecifierEnding},${preferences.importModuleSpecifierPreference},${options.overrideImportMode}`; } - function createInfo(kind, modulePaths, moduleSpecifiers, packageName, isBlockedByPackageJsonDependencies) { - return { kind, modulePaths, moduleSpecifiers, packageName, isBlockedByPackageJsonDependencies }; + function createInfo(kind, modulePaths, moduleSpecifiers, isBlockedByPackageJsonDependencies) { + return { kind, modulePaths, moduleSpecifiers, isBlockedByPackageJsonDependencies }; } } @@ -192334,23 +188258,19 @@ function createPackageJsonCache(host) { return packageJsons.get(host.toPath(combinePaths(directory, "package.json"))) || void 0; }, directoryHasPackageJson: (directory) => directoryHasPackageJson(host.toPath(directory)), - searchDirectoryAndAncestors: (directory, project) => { - forEachAncestorDirectoryStoppingAtGlobalCache( - project, - directory, - (ancestor) => { - const ancestorPath = host.toPath(ancestor); - if (directoryHasPackageJson(ancestorPath) !== 3 /* Maybe */) { - return true; - } - const packageJsonFileName = combinePaths(ancestor, "package.json"); - if (tryFileExists(host, packageJsonFileName)) { - addOrUpdate(packageJsonFileName, combinePaths(ancestorPath, "package.json")); - } else { - directoriesWithoutPackageJson.set(ancestorPath, true); - } + searchDirectoryAndAncestors: (directory) => { + forEachAncestorDirectory(directory, (ancestor) => { + const ancestorPath = host.toPath(ancestor); + if (directoryHasPackageJson(ancestorPath) !== 3 /* Maybe */) { + return true; } - ); + const packageJsonFileName = combinePaths(ancestor, "package.json"); + if (tryFileExists(host, packageJsonFileName)) { + addOrUpdate(packageJsonFileName, combinePaths(ancestorPath, "package.json")); + } else { + directoriesWithoutPackageJson.set(ancestorPath, true); + } + }); } }; function addOrUpdate(fileName, path) { @@ -192471,12 +188391,11 @@ var MultistepOperation = class { } complete() { if (this.requestId !== void 0) { - this.operationHost.sendRequestCompletedEvent(this.requestId, this.performanceData); + this.operationHost.sendRequestCompletedEvent(this.requestId); this.requestId = void 0; } this.setTimerHandle(void 0); this.setImmediateId(void 0); - this.performanceData = void 0; } immediate(actionType, action) { const requestId = this.requestId; @@ -192484,7 +188403,7 @@ var MultistepOperation = class { this.setImmediateId( this.operationHost.getServerHost().setImmediate(() => { this.immediateId = void 0; - this.operationHost.executeWithRequestId(requestId, () => this.executeAction(action), this.performanceData); + this.operationHost.executeWithRequestId(requestId, () => this.executeAction(action)); }, actionType) ); } @@ -192495,7 +188414,7 @@ var MultistepOperation = class { this.operationHost.getServerHost().setTimeout( () => { this.timerHandle = void 0; - this.operationHost.executeWithRequestId(requestId, () => this.executeAction(action), this.performanceData); + this.operationHost.executeWithRequestId(requestId, () => this.executeAction(action)); }, ms, actionType @@ -192524,7 +188443,6 @@ var MultistepOperation = class { this.operationHost.logError(e, `delayed processing of request ${this.requestId}`); } } - this.performanceData = this.operationHost.getPerformanceData(); if (stop || !this.hasPendingWork()) { this.complete(); } @@ -192571,13 +188489,8 @@ function getRenameLocationsWorker(projects, defaultProject, initialLocation, fin projects, defaultProject, initialLocation, - getDefinitionLocation( - defaultProject, - initialLocation, - /*isForRename*/ - true - ), - mapDefinitionInProject, + /*isForRename*/ + true, (project, position) => project.getLanguageService().findRenameLocations(position.fileName, position.pos, findInStrings, findInComments, preferences), (renameLocation, cb) => cb(documentSpanLocation(renameLocation)) ); @@ -192614,13 +188527,8 @@ function getReferencesWorker(projects, defaultProject, initialLocation, useCaseS projects, defaultProject, initialLocation, - getDefinitionLocation( - defaultProject, - initialLocation, - /*isForRename*/ - false - ), - mapDefinitionInProject, + /*isForRename*/ + false, (project, position) => { logger.info(`Finding references to ${position.fileName} position ${position.pos} in project ${project.getProjectName()}`); return project.getLanguageService().findReferences(position.fileName, position.pos); @@ -192715,7 +188623,7 @@ function forEachProjectInProjects(projects, path, cb) { }); } } -function getPerProjectReferences(projects, defaultProject, initialLocation, defaultDefinition, mapDefinitionInProject2, getResultsForPosition, forPositionInResult) { +function getPerProjectReferences(projects, defaultProject, initialLocation, isForRename, getResultsForPosition, forPositionInResult) { const resultsMap = /* @__PURE__ */ new Map(); const queue = createQueue(); queue.enqueue({ project: defaultProject, location: initialLocation }); @@ -192725,6 +188633,7 @@ function getPerProjectReferences(projects, defaultProject, initialLocation, defa }); const projectService = defaultProject.projectService; const cancellationToken = defaultProject.getCancellationToken(); + const defaultDefinition = getDefinitionLocation(defaultProject, initialLocation, isForRename); const getGeneratedDefinition = memoize( () => defaultProject.isSourceOfProjectReferenceRedirect(defaultDefinition.fileName) ? defaultDefinition : defaultProject.getLanguageService().getSourceMapper().tryGetGeneratedPosition(defaultDefinition) ); @@ -192752,7 +188661,7 @@ function getPerProjectReferences(projects, defaultProject, initialLocation, defa projectService.forEachEnabledProject((project) => { if (cancellationToken.isCancellationRequested()) return; if (resultsMap.has(project)) return; - const location = mapDefinitionInProject2(defaultDefinition, project, getGeneratedDefinition, getSourceDefinition); + const location = mapDefinitionInProject(defaultDefinition, project, getGeneratedDefinition, getSourceDefinition); if (location) { queue.enqueue({ project, location }); } @@ -192765,7 +188674,7 @@ function getPerProjectReferences(projects, defaultProject, initialLocation, defa return resultsMap; function searchPosition(project, location) { const projectResults = getResultsForPosition(project, location); - if (!projectResults || !forPositionInResult) return projectResults; + if (!projectResults) return void 0; for (const result of projectResults) { forPositionInResult(result, (position) => { const originalLocation = projectService.getOriginalLocationEnsuringConfiguredProject(project, position); @@ -192791,14 +188700,10 @@ function getPerProjectReferences(projects, defaultProject, initialLocation, defa return projectResults; } } -function mapDefinitionInProjectIfFileInProject(definition, project) { +function mapDefinitionInProject(definition, project, getGeneratedDefinition, getSourceDefinition) { if (project.containsFile(toNormalizedPath(definition.fileName)) && !isLocationProjectReferenceRedirect(project, definition)) { return definition; } -} -function mapDefinitionInProject(definition, project, getGeneratedDefinition, getSourceDefinition) { - const result = mapDefinitionInProjectIfFileInProject(definition, project); - if (result) return result; const generatedDefinition = getGeneratedDefinition(); if (generatedDefinition && project.containsFile(toNormalizedPath(generatedDefinition.fileName))) return generatedDefinition; const sourceDefinition = getSourceDefinition(); @@ -192858,8 +188763,7 @@ var invalidPartialSemanticModeCommands = [ "prepareCallHierarchy" /* PrepareCallHierarchy */, "provideCallHierarchyIncomingCalls" /* ProvideCallHierarchyIncomingCalls */, "provideCallHierarchyOutgoingCalls" /* ProvideCallHierarchyOutgoingCalls */, - "getPasteEdits" /* GetPasteEdits */, - "copilotRelated" /* CopilotRelated */ + "getPasteEdits" /* GetPasteEdits */ ]; var invalidSyntacticModeCommands = [ ...invalidPartialSemanticModeCommands, @@ -192887,15 +188791,11 @@ var invalidSyntacticModeCommands = [ "navto" /* Navto */, "navto-full" /* NavtoFull */, "documentHighlights" /* DocumentHighlights */, - "documentHighlights-full" /* DocumentHighlightsFull */, - "preparePasteEdits" /* PreparePasteEdits */ + "documentHighlights-full" /* DocumentHighlightsFull */ ]; var Session3 = class _Session { constructor(opts) { this.changeSeq = 0; - // Minimum number of lines for attempting to use region diagnostics for a file. - /** @internal */ - this.regionDiagLineCountThreshold = 500; this.handlers = new Map(Object.entries({ // TODO(jakebailey): correctly type the handlers ["status" /* Status */]: () => { @@ -192996,10 +188896,7 @@ var Session3 = class _Session { }, ["exit" /* Exit */]: () => { this.exit(); - return this.notRequired( - /*request*/ - void 0 - ); + return this.notRequired(); }, ["definition" /* Definition */]: (request) => { return this.requiredResponse(this.getDefinition( @@ -193091,7 +188988,7 @@ var Session3 = class _Session { // TODO: GH#18217 request.arguments.projectRootPath ? toNormalizedPath(request.arguments.projectRootPath) : void 0 ); - return this.notRequired(request); + return this.notRequired(); }, ["quickinfo" /* Quickinfo */]: (request) => { return this.requiredResponse(this.getQuickInfoWorker( @@ -193241,39 +189138,41 @@ var Session3 = class _Session { }, ["geterr" /* Geterr */]: (request) => { this.errorCheck.startNew((next) => this.getDiagnostics(next, request.arguments.delay, request.arguments.files)); - return this.notRequired( - /*request*/ - void 0 - ); + return this.notRequired(); }, ["geterrForProject" /* GeterrForProject */]: (request) => { this.errorCheck.startNew((next) => this.getDiagnosticsForProject(next, request.arguments.delay, request.arguments.file)); - return this.notRequired( - /*request*/ - void 0 - ); + return this.notRequired(); }, ["change" /* Change */]: (request) => { this.change(request.arguments); - return this.notRequired(request); + return this.notRequired(); }, ["configure" /* Configure */]: (request) => { this.projectService.setHostConfiguration(request.arguments); - return this.notRequired(request); + this.doOutput( + /*info*/ + void 0, + "configure" /* Configure */, + request.seq, + /*success*/ + true + ); + return this.notRequired(); }, ["reload" /* Reload */]: (request) => { - this.reload(request.arguments); + this.reload(request.arguments, request.seq); return this.requiredResponse({ reloadFinished: true }); }, ["saveto" /* Saveto */]: (request) => { const savetoArgs = request.arguments; this.saveToTmp(savetoArgs.file, savetoArgs.tmpfile); - return this.notRequired(request); + return this.notRequired(); }, ["close" /* Close */]: (request) => { const closeArgs = request.arguments; this.closeClientFile(closeArgs.file); - return this.notRequired(request); + return this.notRequired(); }, ["navto" /* Navto */]: (request) => { return this.requiredResponse(this.getNavigateToItems( @@ -193355,9 +189254,9 @@ var Session3 = class _Session { ["projectInfo" /* ProjectInfo */]: (request) => { return this.requiredResponse(this.getProjectInfo(request.arguments)); }, - ["reloadProjects" /* ReloadProjects */]: (request) => { + ["reloadProjects" /* ReloadProjects */]: () => { this.projectService.reloadProjects(); - return this.notRequired(request); + return this.notRequired(); }, ["jsxClosingTag" /* JsxClosingTag */]: (request) => { return this.requiredResponse(this.getJsxClosingTag(request.arguments)); @@ -193412,9 +189311,6 @@ var Session3 = class _Session { ["getMoveToRefactoringFileSuggestions" /* GetMoveToRefactoringFileSuggestions */]: (request) => { return this.requiredResponse(this.getMoveToRefactoringFileSuggestions(request.arguments)); }, - ["preparePasteEdits" /* PreparePasteEdits */]: (request) => { - return this.requiredResponse(this.preparePasteEdits(request.arguments)); - }, ["getPasteEdits" /* GetPasteEdits */]: (request) => { return this.requiredResponse(this.getPasteEdits(request.arguments)); }, @@ -193455,7 +189351,15 @@ var Session3 = class _Session { }, ["configurePlugin" /* ConfigurePlugin */]: (request) => { this.configurePlugin(request.arguments); - return this.notRequired(request); + this.doOutput( + /*info*/ + void 0, + "configurePlugin" /* ConfigurePlugin */, + request.seq, + /*success*/ + true + ); + return this.notRequired(); }, ["selectionRange" /* SelectionRange */]: (request) => { return this.requiredResponse(this.getSmartSelectionRange( @@ -193541,9 +189445,6 @@ var Session3 = class _Session { }, ["mapCode" /* MapCode */]: (request) => { return this.requiredResponse(this.mapCode(request.arguments)); - }, - ["copilotRelated" /* CopilotRelated */]: () => { - return this.requiredResponse(this.getCopilotRelatedInfo()); } })); this.host = opts.host; @@ -193558,12 +189459,11 @@ var Session3 = class _Session { const { throttleWaitMilliseconds } = opts; this.eventHandler = this.canUseEvents ? opts.eventHandler || ((event) => this.defaultEventHandler(event)) : void 0; const multistepOperationHost = { - executeWithRequestId: (requestId, action, performanceData) => this.executeWithRequestId(requestId, action, performanceData), + executeWithRequestId: (requestId, action) => this.executeWithRequestId(requestId, action), getCurrentRequestId: () => this.currentRequestId, - getPerformanceData: () => this.performanceData, getServerHost: () => this.host, logError: (err, cmd) => this.logError(err, cmd), - sendRequestCompletedEvent: (requestId, performanceData) => this.sendRequestCompletedEvent(requestId, performanceData), + sendRequestCompletedEvent: (requestId) => this.sendRequestCompletedEvent(requestId), isCancellationRequested: () => this.cancellationToken.isCancellationRequested() }; this.errorCheck = new MultistepOperation(multistepOperationHost); @@ -193586,7 +189486,7 @@ var Session3 = class _Session { canUseWatchEvents: opts.canUseWatchEvents, incrementalVerifier: opts.incrementalVerifier }; - this.projectService = new ProjectService2(settings); + this.projectService = new ProjectService3(settings); this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)); this.gcTimer = new GcTimer( this.host, @@ -193615,14 +189515,8 @@ var Session3 = class _Session { Debug.assertNever(this.projectService.serverMode); } } - sendRequestCompletedEvent(requestId, performanceData) { - this.event( - { - request_seq: requestId, - performanceData: performanceData && toProtocolPerformanceData(performanceData) - }, - "requestCompleted" - ); + sendRequestCompletedEvent(requestId) { + this.event({ request_seq: requestId }, "requestCompleted"); } addPerformanceData(key, value) { if (!this.performanceData) { @@ -193630,15 +189524,6 @@ var Session3 = class _Session { } this.performanceData[key] = (this.performanceData[key] ?? 0) + value; } - addDiagnosticsPerformanceData(file, kind, duration) { - var _a, _b; - if (!this.performanceData) { - this.performanceData = {}; - } - let fileDiagnosticDuration = (_a = this.performanceData.diagnosticsDuration) == null ? void 0 : _a.get(file); - if (!fileDiagnosticDuration) ((_b = this.performanceData).diagnosticsDuration ?? (_b.diagnosticsDuration = /* @__PURE__ */ new Map())).set(file, fileDiagnosticDuration = {}); - fileDiagnosticDuration[kind] = duration; - } performanceEventHandler(event) { switch (event.kind) { case "UpdateGraph": @@ -193781,21 +189666,23 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter this.writeMessage(msg); } writeMessage(msg) { + var _a; const msgText = formatMessage2(msg, this.logger, this.byteLength, this.host.newLine); + (_a = perfLogger) == null ? void 0 : _a.logEvent(`Response message size: ${msgText.length}`); this.host.write(msgText); } event(body, eventName) { this.send(toEvent(eventName, body)); } /** @internal */ - doOutput(info, cmdName, reqSeq, success, performanceData, message) { + doOutput(info, cmdName, reqSeq, success, message) { const res = { seq: 0, type: "response", command: cmdName, request_seq: reqSeq, success, - performanceData: performanceData && toProtocolPerformanceData(performanceData) + performanceData: this.performanceData }; if (success) { let metadata; @@ -193825,70 +189712,32 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter } semanticCheck(file, project) { var _a, _b; - const diagnosticsStartTime = timestamp(); (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "semanticCheck", { file, configFilePath: project.canonicalConfigFilePath }); const diags = isDeclarationFileInJSOnlyNonConfiguredProject(project, file) ? emptyArray2 : project.getLanguageService().getSemanticDiagnostics(file).filter((d) => !!d.file); - this.sendDiagnosticsEvent(file, project, diags, "semanticDiag", diagnosticsStartTime); + this.sendDiagnosticsEvent(file, project, diags, "semanticDiag"); (_b = tracing) == null ? void 0 : _b.pop(); } syntacticCheck(file, project) { var _a, _b; - const diagnosticsStartTime = timestamp(); (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "syntacticCheck", { file, configFilePath: project.canonicalConfigFilePath }); - this.sendDiagnosticsEvent(file, project, project.getLanguageService().getSyntacticDiagnostics(file), "syntaxDiag", diagnosticsStartTime); + this.sendDiagnosticsEvent(file, project, project.getLanguageService().getSyntacticDiagnostics(file), "syntaxDiag"); (_b = tracing) == null ? void 0 : _b.pop(); } suggestionCheck(file, project) { var _a, _b; - const diagnosticsStartTime = timestamp(); (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "suggestionCheck", { file, configFilePath: project.canonicalConfigFilePath }); - this.sendDiagnosticsEvent(file, project, project.getLanguageService().getSuggestionDiagnostics(file), "suggestionDiag", diagnosticsStartTime); + this.sendDiagnosticsEvent(file, project, project.getLanguageService().getSuggestionDiagnostics(file), "suggestionDiag"); (_b = tracing) == null ? void 0 : _b.pop(); } - regionSemanticCheck(file, project, ranges) { - var _a, _b, _c; - const diagnosticsStartTime = timestamp(); - (_a = tracing) == null ? void 0 : _a.push(tracing.Phase.Session, "regionSemanticCheck", { file, configFilePath: project.canonicalConfigFilePath }); - let diagnosticsResult; - if (!this.shouldDoRegionCheck(file) || !(diagnosticsResult = project.getLanguageService().getRegionSemanticDiagnostics(file, ranges))) { - (_b = tracing) == null ? void 0 : _b.pop(); - return; - } - this.sendDiagnosticsEvent(file, project, diagnosticsResult.diagnostics, "regionSemanticDiag", diagnosticsStartTime, diagnosticsResult.spans); - (_c = tracing) == null ? void 0 : _c.pop(); - return; - } - // We should only do the region-based semantic check if we think it would be - // considerably faster than a whole-file semantic check. - /** @internal */ - shouldDoRegionCheck(file) { - var _a; - const lineCount = (_a = this.projectService.getScriptInfoForNormalizedPath(file)) == null ? void 0 : _a.textStorage.getLineInfo().getLineCount(); - return !!(lineCount && lineCount >= this.regionDiagLineCountThreshold); - } - sendDiagnosticsEvent(file, project, diagnostics, kind, diagnosticsStartTime, spans) { + sendDiagnosticsEvent(file, project, diagnostics, kind) { try { - const scriptInfo = Debug.checkDefined(project.getScriptInfo(file)); - const duration = timestamp() - diagnosticsStartTime; - const body = { - file, - diagnostics: diagnostics.map((diag2) => formatDiag(file, project, diag2)), - spans: spans == null ? void 0 : spans.map((span) => toProtocolTextSpan(span, scriptInfo)) - }; - this.event( - body, - kind - ); - this.addDiagnosticsPerformanceData(file, kind, duration); + this.event({ file, diagnostics: diagnostics.map((diag2) => formatDiag(file, project, diag2)) }, kind); } catch (err) { this.logError(err, kind); } } /** It is the caller's responsibility to verify that `!this.suppressDiagnosticEvents`. */ updateErrorCheck(next, checkList, ms, requireOpen = true) { - if (checkList.length === 0) { - return; - } Debug.assert(!this.suppressDiagnosticEvents); const seq = this.changeSeq; const followMs = Math.min(ms, 200); @@ -193896,36 +189745,20 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const goNext = () => { index++; if (checkList.length > index) { - return next.delay("checkOne", followMs, checkOne); + next.delay("checkOne", followMs, checkOne); } }; - const doSemanticCheck = (fileName, project) => { - this.semanticCheck(fileName, project); - if (this.changeSeq !== seq) { - return; - } - if (this.getPreferences(fileName).disableSuggestions) { - return goNext(); - } - next.immediate("suggestionCheck", () => { - this.suggestionCheck(fileName, project); - goNext(); - }); - }; const checkOne = () => { if (this.changeSeq !== seq) { return; } - let ranges; let item = checkList[index]; if (isString(item)) { item = this.toPendingErrorCheck(item); - } else if ("ranges" in item) { - ranges = item.ranges; - item = this.toPendingErrorCheck(item.file); - } - if (!item) { - return goNext(); + if (!item) { + goNext(); + return; + } } const { fileName, project } = item; updateProjectIfDirty(project); @@ -193937,21 +189770,23 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter return; } if (project.projectService.serverMode !== 0 /* Semantic */) { - return goNext(); + goNext(); + return; } - if (ranges) { - return next.immediate("regionSemanticCheck", () => { - const scriptInfo = this.projectService.getScriptInfoForNormalizedPath(fileName); - if (scriptInfo) { - this.regionSemanticCheck(fileName, project, ranges.map((range) => this.getRange({ file: fileName, ...range }, scriptInfo))); - } - if (this.changeSeq !== seq) { - return; - } - next.immediate("semanticCheck", () => doSemanticCheck(fileName, project)); + next.immediate("semanticCheck", () => { + this.semanticCheck(fileName, project); + if (this.changeSeq !== seq) { + return; + } + if (this.getPreferences(fileName).disableSuggestions) { + goNext(); + return; + } + next.immediate("suggestionCheck", () => { + this.suggestionCheck(fileName, project); + goNext(); }); - } - next.immediate("semanticCheck", () => doSemanticCheck(fileName, project)); + }); }; if (checkList.length > index && this.changeSeq === seq) { next.delay("checkOne", ms, checkOne); @@ -194188,7 +190023,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const packageDirectory = fileName.substring(0, nodeModulesPathParts.packageRootIndex); const packageJsonCache = (_a2 = project.getModuleResolutionCache()) == null ? void 0 : _a2.getPackageJsonInfoCache(); const compilerOptions = project.getCompilationSettings(); - const packageJson = getPackageScopeForPath(getNormalizedAbsolutePath(packageDirectory, project.getCurrentDirectory()), getTemporaryModuleResolutionState(packageJsonCache, project, compilerOptions)); + const packageJson = getPackageScopeForPath(getNormalizedAbsolutePath(packageDirectory + "/package.json", project.getCurrentDirectory()), getTemporaryModuleResolutionState(packageJsonCache, project, compilerOptions)); if (!packageJson) return void 0; const entrypoints = getEntrypointsFromPackageJsonInfo( packageJson, @@ -194491,11 +190326,6 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const changes = languageService.mapCode(file, args.mapping.contents, focusLocations, formatOptions, preferences); return this.mapTextChangesToCodeEdits(changes); } - getCopilotRelatedInfo() { - return { - relatedFiles: [] - }; - } setCompilerOptionsForInferredProjects(args) { this.projectService.setCompilerOptionsForInferredProjects(args.options, args.projectRootPath); } @@ -194504,12 +190334,11 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter args.file, args.projectFileName, args.needFileNameList, - args.needDefaultConfiguredProjectInfo, /*excludeConfigFiles*/ false ); } - getProjectInfoWorker(uncheckedFileName, projectFileName, needFileNameList, needDefaultConfiguredProjectInfo, excludeConfigFiles) { + getProjectInfoWorker(uncheckedFileName, projectFileName, needFileNameList, excludeConfigFiles) { const { project } = this.getFileAndProjectWorker(uncheckedFileName, projectFileName); updateProjectIfDirty(project); const projectInfo = { @@ -194519,38 +190348,10 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter /*excludeFilesFromExternalLibraries*/ false, excludeConfigFiles - ) : void 0, - configuredProjectInfo: needDefaultConfiguredProjectInfo ? this.getDefaultConfiguredProjectInfo(uncheckedFileName) : void 0 + ) : void 0 }; return projectInfo; } - getDefaultConfiguredProjectInfo(uncheckedFileName) { - var _a; - const info = this.projectService.getScriptInfo(uncheckedFileName); - if (!info) return; - const result = this.projectService.findDefaultConfiguredProjectWorker( - info, - 3 /* CreateReplay */ - ); - if (!result) return void 0; - let notMatchedByConfig; - let notInProject; - result.seenProjects.forEach((kind, project) => { - if (project !== result.defaultProject) { - if (kind !== 3 /* CreateReplay */) { - (notMatchedByConfig ?? (notMatchedByConfig = [])).push(toNormalizedPath(project.getConfigFilePath())); - } else { - (notInProject ?? (notInProject = [])).push(toNormalizedPath(project.getConfigFilePath())); - } - } - }); - (_a = result.seenConfigs) == null ? void 0 : _a.forEach((config) => (notMatchedByConfig ?? (notMatchedByConfig = [])).push(config)); - return { - notMatchedByConfig, - notInProject, - defaultProject: result.defaultProject && toNormalizedPath(result.defaultProject.getConfigFilePath()) - }; - } getRenameInfo(args) { const { file, project } = this.getFileAndProject(args); const position = this.getPositionInFile(args, file); @@ -194667,35 +190468,27 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter } getFileReferences(args, simplifiedResult) { const projects = this.getProjects(args); - const fileName = toNormalizedPath(args.file); - const preferences = this.getPreferences(fileName); - const initialLocation = { fileName, pos: 0 }; - const perProjectResults = getPerProjectReferences( + const fileName = args.file; + const preferences = this.getPreferences(toNormalizedPath(fileName)); + const references = []; + const seen = createDocumentSpanSet(this.host.useCaseSensitiveFileNames); + forEachProjectInProjects( projects, - this.getDefaultProject(args), - initialLocation, - initialLocation, - mapDefinitionInProjectIfFileInProject, + /*path*/ + void 0, (project) => { - this.logger.info(`Finding references to file ${fileName} in project ${project.getProjectName()}`); - return project.getLanguageService().getFileReferences(fileName); - } - ); - let references; - if (isArray(perProjectResults)) { - references = perProjectResults; - } else { - references = []; - const seen = createDocumentSpanSet(this.host.useCaseSensitiveFileNames); - perProjectResults.forEach((projectOutputs) => { - for (const referenceEntry of projectOutputs) { - if (!seen.has(referenceEntry)) { - references.push(referenceEntry); - seen.add(referenceEntry); + if (project.getCancellationToken().isCancellationRequested()) return; + const projectOutputs = project.getLanguageService().getFileReferences(fileName); + if (projectOutputs) { + for (const referenceEntry of projectOutputs) { + if (!seen.has(referenceEntry)) { + references.push(referenceEntry); + seen.add(referenceEntry); + } } } - }); - } + } + ); if (!simplifiedResult) return references; const refs = references.map((entry) => referenceEntryToReferencesResponseItem(this.projectService, entry, preferences)); return { @@ -194914,12 +190707,42 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const prefix = args.prefix || ""; const entries = mapDefined(completions.entries, (entry) => { if (completions.isMemberCompletion || startsWith(entry.name.toLowerCase(), prefix.toLowerCase())) { - const convertedSpan = entry.replacementSpan ? toProtocolTextSpan(entry.replacementSpan, scriptInfo) : void 0; + const { + name, + kind: kind2, + kindModifiers, + sortText, + insertText, + filterText, + replacementSpan, + hasAction, + source, + sourceDisplay, + labelDetails, + isSnippet, + isRecommended, + isPackageJsonImport, + isImportStatementCompletion, + data + } = entry; + const convertedSpan = replacementSpan ? toProtocolTextSpan(replacementSpan, scriptInfo) : void 0; return { - ...entry, + name, + kind: kind2, + kindModifiers, + sortText, + insertText, + filterText, replacementSpan: convertedSpan, - hasAction: entry.hasAction || void 0, - symbol: void 0 + isSnippet, + hasAction: hasAction || void 0, + source, + sourceDisplay, + labelDetails, + isRecommended, + isPackageJsonImport, + isImportStatementCompletion, + data }; } }); @@ -195042,12 +190865,12 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const project = this.projectService.tryGetDefaultProjectForFile(fileName); return project && { fileName, project }; } - getDiagnostics(next, delay, fileArgs) { + getDiagnostics(next, delay, fileNames) { if (this.suppressDiagnosticEvents) { return; } - if (fileArgs.length > 0) { - this.updateErrorCheck(next, fileArgs, delay); + if (fileNames.length > 0) { + this.updateErrorCheck(next, fileNames, delay); } } change(args) { @@ -195068,13 +190891,22 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter ); } } - reload(args) { + reload(args, reqSeq) { const file = toNormalizedPath(args.file); const tempFileName = args.tmpfile === void 0 ? void 0 : toNormalizedPath(args.tmpfile); const info = this.projectService.getScriptInfoForNormalizedPath(file); if (info) { this.changeSeq++; - info.reloadFromFile(tempFileName); + if (info.reloadFromFile(tempFileName)) { + this.doOutput( + /*info*/ + void 0, + "reload" /* Reload */, + reqSeq, + /*success*/ + true + ); + } } } saveToTmp(fileName, tempFileName) { @@ -195287,13 +191119,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter const scriptInfo = project.getScriptInfoForNormalizedPath(file); return project.getLanguageService().getMoveToRefactoringFileSuggestions(file, this.extractPositionOrRange(args, scriptInfo), this.getPreferences(file)); } - preparePasteEdits(args) { - const { file, project } = this.getFileAndProject(args); - return project.getLanguageService().preparePasteEditsForFile(file, args.copiedTextSpan.map((copies) => this.getRange({ file, startLine: copies.start.line, startOffset: copies.start.offset, endLine: copies.end.line, endOffset: copies.end.offset }, this.projectService.getScriptInfoForNormalizedPath(file)))); - } getPasteEdits(args) { const { file, project } = this.getFileAndProject(args); - if (isDynamicFileName(file)) return void 0; const copiedFrom = args.copiedFrom ? { file: args.copiedFrom.file, range: args.copiedFrom.spans.map((copies) => this.getRange({ file: args.copiedFrom.file, startLine: copies.start.line, startOffset: copies.start.offset, endLine: copies.end.line, endOffset: copies.end.offset }, project.getScriptInfoForNormalizedPath(toNormalizedPath(args.copiedFrom.file)))) } : void 0; const result = project.getLanguageService().getPasteEdits( { @@ -195356,26 +191183,27 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter try { codeActions = project.getLanguageService().getCodeFixesAtPosition(file, startPosition, endPosition, args.errorCodes, this.getFormatOptions(file), this.getPreferences(file)); } catch (e) { - const error2 = e instanceof Error ? e : new Error(e); const ls = project.getLanguageService(); const existingDiagCodes = [ ...ls.getSyntacticDiagnostics(file), ...ls.getSemanticDiagnostics(file), ...ls.getSuggestionDiagnostics(file) - ].filter((d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length)).map((d) => d.code); + ].map( + (d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length) && d.code + ); const badCode = args.errorCodes.find((c) => !existingDiagCodes.includes(c)); if (badCode !== void 0) { - error2.message += ` -Additional information: BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")})`; + e.message = `BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")}); could have caused this error: +${e.message}`; } - throw error2; + throw e; } return simplifiedResult ? codeActions.map((codeAction) => this.mapCodeFixAction(codeAction)) : codeActions; } - getCombinedCodeFix({ scope, fixId: fixId56 }, simplifiedResult) { + getCombinedCodeFix({ scope, fixId: fixId55 }, simplifiedResult) { Debug.assert(scope.type === "file"); const { file, project } = this.getFileAndProject(scope.args); - const res = project.getLanguageService().getCombinedCodeFix({ type: "file", fileName: file }, fixId56, this.getFormatOptions(file), this.getPreferences(file)); + const res = project.getLanguageService().getCombinedCodeFix({ type: "file", fileName: file }, fixId55, this.getFormatOptions(file), this.getPreferences(file)); if (simplifiedResult) { return { changes: this.mapTextChangesToCodeEdits(res.changes), commands: res.commands }; } else { @@ -195414,11 +191242,11 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range mapCodeAction({ description: description3, changes, commands }) { return { description: description3, changes: this.mapTextChangesToCodeEdits(changes), commands }; } - mapCodeFixAction({ fixName: fixName8, description: description3, changes, commands, fixId: fixId56, fixAllDescription }) { - return { fixName: fixName8, description: description3, changes: this.mapTextChangesToCodeEdits(changes), commands, fixId: fixId56, fixAllDescription }; + mapCodeFixAction({ fixName: fixName8, description: description3, changes, commands, fixId: fixId55, fixAllDescription }) { + return { fixName: fixName8, description: description3, changes: this.mapTextChangesToCodeEdits(changes), commands, fixId: fixId55, fixAllDescription }; } - mapPasteEditsAction({ edits, fixId: fixId56 }) { - return { edits: this.mapTextChangesToCodeEdits(edits), fixId: fixId56 }; + mapPasteEditsAction({ edits, fixId: fixId55 }) { + return { edits: this.mapTextChangesToCodeEdits(edits), fixId: fixId55 }; } mapTextChangesToCodeEdits(textChanges2) { return textChanges2.map((change) => this.mapTextChangeToCodeEdit(change)); @@ -195457,14 +191285,16 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range void 0, /*needFileNameList*/ true, - /*needDefaultConfiguredProjectInfo*/ - void 0, /*excludeConfigFiles*/ true ); - if (languageServiceDisabled) return; + if (languageServiceDisabled) { + return; + } const fileNamesInProject = fileNames.filter((value) => !value.includes("lib.d.ts")); - if (fileNamesInProject.length === 0) return; + if (fileNamesInProject.length === 0) { + return; + } const highPriorityFiles = []; const mediumPriorityFiles = []; const lowPriorityFiles = []; @@ -195625,20 +191455,11 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range } exit() { } - notRequired(request) { - if (request) this.doOutput( - /*info*/ - void 0, - request.command, - request.seq, - /*success*/ - true, - this.performanceData - ); - return { responseRequired: false, performanceData: this.performanceData }; + notRequired() { + return { responseRequired: false }; } requiredResponse(response) { - return { response, responseRequired: true, performanceData: this.performanceData }; + return { response, responseRequired: true }; } addProtocolHandler(command, handler) { if (this.handlers.has(command)) { @@ -195656,27 +191477,18 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range this.currentRequestId = void 0; this.cancellationToken.resetRequest(requestId); } - // eslint-disable-line @typescript-eslint/unified-signatures - executeWithRequestId(requestId, f, perfomanceData) { - const currentPerformanceData = this.performanceData; + executeWithRequestId(requestId, f) { try { - this.performanceData = perfomanceData; this.setCurrentRequest(requestId); return f(); } finally { this.resetCurrentRequest(requestId); - this.performanceData = currentPerformanceData; } } executeCommand(request) { const handler = this.handlers.get(request.command); if (handler) { - const response = this.executeWithRequestId( - request.seq, - () => handler(request), - /*perfomanceData*/ - void 0 - ); + const response = this.executeWithRequestId(request.seq, () => handler(request)); this.projectService.enableRequestedPlugins(); return response; } else { @@ -195688,18 +191500,16 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range request.seq, /*success*/ false, - /*performanceData*/ - void 0, `Unrecognized JSON command: ${request.command}` ); return { responseRequired: false }; } } onMessage(message) { - var _a, _b, _c, _d, _e, _f, _g; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; this.gcTimer.scheduleCollect(); + this.performanceData = void 0; let start; - const currentPerformanceData = this.performanceData; if (this.logger.hasLevel(2 /* requestTime */)) { start = this.hrtime(); if (this.logger.hasLevel(3 /* verbose */)) { @@ -195712,15 +191522,16 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range request = this.parseMessage(message); relevantFile = request.arguments && request.arguments.file ? request.arguments : void 0; (_a = tracing) == null ? void 0 : _a.instant(tracing.Phase.Session, "request", { seq: request.seq, command: request.command }); - (_b = tracing) == null ? void 0 : _b.push( + (_b = perfLogger) == null ? void 0 : _b.logStartCommand("" + request.command, this.toStringMessage(message).substring(0, 100)); + (_c = tracing) == null ? void 0 : _c.push( tracing.Phase.Session, "executeCommand", { seq: request.seq, command: request.command }, /*separateBeginAndEnd*/ true ); - const { response, responseRequired, performanceData } = this.executeCommand(request); - (_c = tracing) == null ? void 0 : _c.pop(); + const { response, responseRequired } = this.executeCommand(request); + (_d = tracing) == null ? void 0 : _d.pop(); if (this.logger.hasLevel(2 /* requestTime */)) { const elapsedTime = hrTimeToMilliseconds(this.hrtime(start)).toFixed(4); if (responseRequired) { @@ -195729,15 +191540,15 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range this.logger.perftrc(`${request.seq}::${request.command}: async elapsed time (in milliseconds) ${elapsedTime}`); } } - (_d = tracing) == null ? void 0 : _d.instant(tracing.Phase.Session, "response", { seq: request.seq, command: request.command, success: !!response }); + (_e = perfLogger) == null ? void 0 : _e.logStopCommand("" + request.command, "Success"); + (_f = tracing) == null ? void 0 : _f.instant(tracing.Phase.Session, "response", { seq: request.seq, command: request.command, success: !!response }); if (response) { this.doOutput( response, request.command, request.seq, /*success*/ - true, - performanceData + true ); } else if (responseRequired) { this.doOutput( @@ -195747,26 +191558,26 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range request.seq, /*success*/ false, - performanceData, "No content available." ); } } catch (err) { - (_e = tracing) == null ? void 0 : _e.popAll(); + (_g = tracing) == null ? void 0 : _g.popAll(); if (err instanceof OperationCanceledException) { - (_f = tracing) == null ? void 0 : _f.instant(tracing.Phase.Session, "commandCanceled", { seq: request == null ? void 0 : request.seq, command: request == null ? void 0 : request.command }); + (_h = perfLogger) == null ? void 0 : _h.logStopCommand("" + (request && request.command), "Canceled: " + err); + (_i = tracing) == null ? void 0 : _i.instant(tracing.Phase.Session, "commandCanceled", { seq: request == null ? void 0 : request.seq, command: request == null ? void 0 : request.command }); this.doOutput( { canceled: true }, request.command, request.seq, /*success*/ - true, - this.performanceData + true ); return; } this.logErrorWorker(err, this.toStringMessage(message), relevantFile); - (_g = tracing) == null ? void 0 : _g.instant(tracing.Phase.Session, "commandError", { seq: request == null ? void 0 : request.seq, command: request == null ? void 0 : request.command, message: err.message }); + (_j = perfLogger) == null ? void 0 : _j.logStopCommand("" + (request && request.command), "Error: " + err); + (_k = tracing) == null ? void 0 : _k.instant(tracing.Phase.Session, "commandError", { seq: request == null ? void 0 : request.seq, command: request == null ? void 0 : request.command, message: err.message }); this.doOutput( /*info*/ void 0, @@ -195774,11 +191585,8 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range request ? request.seq : 0, /*success*/ false, - this.performanceData, "Error processing request. " + err.message + "\n" + err.stack ); - } finally { - this.performanceData = currentPerformanceData; } } parseMessage(message) { @@ -195800,10 +191608,6 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range return this.projectService.getHostPreferences(); } }; -function toProtocolPerformanceData(performanceData) { - const diagnosticsDuration = performanceData.diagnosticsDuration && arrayFrom(performanceData.diagnosticsDuration, ([file, data]) => ({ ...data, file })); - return { ...performanceData, diagnosticsDuration }; -} function toProtocolTextSpan(textSpan, scriptInfo) { return { start: scriptInfo.positionToLineOffset(textSpan.start), @@ -196375,7 +192179,6 @@ var LineNode = class _LineNode { } } walk(rangeStart, rangeLength, walkFns) { - if (this.children.length === 0) return; let childIndex = 0; let childCharCount = this.children[childIndex].charCount(); let adjustedStart = rangeStart; @@ -196785,19 +192588,20 @@ __export(ts_server_exports4, { LogLevel: () => LogLevel2, Msg: () => Msg, OpenFileInfoTelemetryEvent: () => OpenFileInfoTelemetryEvent, - Project: () => Project2, + Project: () => Project3, ProjectInfoTelemetryEvent: () => ProjectInfoTelemetryEvent, ProjectKind: () => ProjectKind, ProjectLanguageServiceStateEvent: () => ProjectLanguageServiceStateEvent, ProjectLoadingFinishEvent: () => ProjectLoadingFinishEvent, ProjectLoadingStartEvent: () => ProjectLoadingStartEvent, - ProjectService: () => ProjectService2, + ProjectService: () => ProjectService3, ProjectsUpdatedInBackgroundEvent: () => ProjectsUpdatedInBackgroundEvent, ScriptInfo: () => ScriptInfo, ScriptVersionCache: () => ScriptVersionCache, Session: () => Session3, TextStorage: () => TextStorage, ThrottledOperations: () => ThrottledOperations, + TypingsCache: () => TypingsCache, TypingsInstallerAdapter: () => TypingsInstallerAdapter, allFilesAreJsOrDts: () => allFilesAreJsOrDts, allRootFilesAreJsOrDts: () => allRootFilesAreJsOrDts, @@ -196816,10 +192620,10 @@ __export(ts_server_exports4, { createSortedArray: () => createSortedArray2, emptyArray: () => emptyArray2, findArgument: () => findArgument, + forEachResolvedProjectReferenceProject: () => forEachResolvedProjectReferenceProject, formatDiagnosticToProtocol: () => formatDiagnosticToProtocol, formatMessage: () => formatMessage2, getBaseConfigFileName: () => getBaseConfigFileName, - getDetailWatchInfo: () => getDetailWatchInfo, getLocationInNewDocument: () => getLocationInNewDocument, hasArgument: () => hasArgument, hasNoTypeScriptSource: () => hasNoTypeScriptSource, @@ -196842,8 +192646,7 @@ __export(ts_server_exports4, { nullCancellationToken: () => nullCancellationToken, nullTypingsInstaller: () => nullTypingsInstaller, protocol: () => ts_server_protocol_exports, - scriptInfoIsContainedByBackgroundProject: () => scriptInfoIsContainedByBackgroundProject, - scriptInfoIsContainedByDeferredClosedProject: () => scriptInfoIsContainedByDeferredClosedProject, + removeSorted: () => removeSorted, stringifyIndented: () => stringifyIndented, toEvent: () => toEvent, toNormalizedPath: () => toNormalizedPath, @@ -196921,6 +192724,7 @@ if (typeof console !== "undefined") { GoToDefinition, HighlightSpanKind, IdentifierNameMap, + IdentifierNameMultiMap, ImportKind, ImportsNotUsedAsValues, IndentStyle, @@ -196931,7 +192735,6 @@ if (typeof console !== "undefined") { InlayHintKind, InlayHints, InternalEmitFlags, - InternalNodeBuilderFlags, InternalSymbolName, IntersectionFlags, InvalidatedProjectKind, @@ -196978,8 +192781,6 @@ if (typeof console !== "undefined") { PollingInterval, PollingWatchKind, PragmaKindFlags, - PredicateSemantics, - PreparePasteEdits, PrivateIdentifierKind, ProcessLevel, ProgramUpdateLevel, @@ -197010,6 +192811,7 @@ if (typeof console !== "undefined") { SymbolFlags, SymbolFormatFlags, SyntaxKind, + SyntheticSymbolKind, Ternary, ThrottledCancellationToken, TokenClass, @@ -197032,6 +192834,7 @@ if (typeof console !== "undefined") { WatchLogLevel, WatchType, accessPrivateIdentifier, + addDisposableResourceHelper, addEmitFlags, addEmitHelper, addEmitHelpers, @@ -197054,15 +192857,23 @@ if (typeof console !== "undefined") { arrayFrom, arrayIsEqualTo, arrayIsHomogeneous, + arrayIsSorted, arrayOf, arrayReverseIterator, arrayToMap, arrayToMultiMap, arrayToNumericMap, + arraysEqual, assertType, assign, + assignHelper, + asyncDelegator, + asyncGeneratorHelper, asyncSuperHelper, + asyncValues, attachFileToDiagnostics, + awaitHelper, + awaiterHelper, base64decode, base64encode, binarySearch, @@ -197085,16 +192896,14 @@ if (typeof console !== "undefined") { canHaveJSDoc, canHaveLocals, canHaveModifiers, - canHaveModuleSpecifier, canHaveSymbol, - canIncludeBindAndCheckDiagnostics, + canIncludeBindAndCheckDiagnsotics, canJsonReportNoInputFiles, canProduceDiagnostics, canUsePropertyAccess, canWatchAffectingLocation, canWatchAtTypes, canWatchDirectoryOrFile, - canWatchDirectoryOrFilePath, cartesianProduct, cast, chainBundle, @@ -197105,13 +192914,16 @@ if (typeof console !== "undefined") { changeFullExtension, changesAffectModuleResolution, changesAffectingProgramStructure, - characterCodeToRegularExpressionFlag, + characterToRegularExpressionFlag, childIsDecorated, classElementOrClassElementParameterIsDecorated, classHasClassThisAssignment, classHasDeclaredOrExplicitlyAssignedName, classHasExplicitlyAssignedName, classOrConstructorParameterIsDecorated, + classPrivateFieldGetHelper, + classPrivateFieldInHelper, + classPrivateFieldSetHelper, classicNameResolver, classifier, cleanExtendedConfigCache, @@ -197119,6 +192931,7 @@ if (typeof console !== "undefined") { clearMap, clearSharedExtendedConfigFileWatcher, climbPastPropertyAccess, + climbPastPropertyOrElementAccess, clone, cloneCompilerOptions, closeFileWatcher, @@ -197131,10 +192944,12 @@ if (typeof console !== "undefined") { commandLineOptionOfCustomType, commentPragmas, commonOptionsWithBuild, + commonPackageFolders, compact, compareBooleans, compareDataObjects, compareDiagnostics, + compareDiagnosticsSkipRelatedInformation, compareEmitHelpers, compareNumberOfDirectorySeparators, comparePaths, @@ -197148,21 +192963,26 @@ if (typeof console !== "undefined") { compareStringsCaseSensitiveUI, compareTextSpans, compareValues, + compileOnSaveCommandLineOption, compilerOptionsAffectDeclarationPath, compilerOptionsAffectEmit, compilerOptionsAffectSemanticDiagnostics, compilerOptionsDidYouMeanDiagnostics, compilerOptionsIndicateEsModules, + compose, computeCommonSourceDirectoryOfFilenames, computeLineAndCharacterOfPosition, computeLineOfPosition, computeLineStarts, computePositionOfLineAndCharacter, + computeSignature, computeSignatureWithDiagnostics, computeSuggestionDiagnostics, computedOptions, concatenate, concatenateDiagnosticMessageChains, + configDirTemplateSubstitutionOptions, + configDirTemplateSubstitutionWatchOptions, consumesNodeCoreModules, contains, containsIgnoredPath, @@ -197193,11 +193013,16 @@ if (typeof console !== "undefined") { createAccessorPropertySetRedirector, createBaseNodeFactory, createBinaryExpressionTrampoline, + createBindingHelper, + createBuildInfo, createBuilderProgram, - createBuilderProgramUsingIncrementalBuildInfo, + createBuilderProgramUsingProgramBuildInfo, createBuilderStatusReporter, + createCacheWithRedirects, createCacheableExportInfoMap, createCachedDirectoryStructureHost, + createClassNamedEvaluationHelperBlock, + createClassThisAssignmentBlock, createClassifier, createCommentDirectivesMap, createCompilerDiagnostic, @@ -197249,7 +193074,6 @@ if (typeof console !== "undefined") { createMemberAccessForPropertyName, createModeAwareCache, createModeAwareCacheKey, - createModeMismatchDetails, createModuleNotFoundChain, createModuleResolutionCache, createModuleResolutionLoader, @@ -197271,7 +193095,6 @@ if (typeof console !== "undefined") { createPrinterWithRemoveCommentsNeverAsciiEscape, createPrinterWithRemoveCommentsOmitTrailingSemicolon, createProgram, - createProgramDiagnostics, createProgramHost, createPropertyNameNodeForIdentifierOrLiteral, createQueue, @@ -197321,7 +193144,9 @@ if (typeof console !== "undefined") { declarationNameToString, decodeMappings, decodedTextSpanIntersectsWith, + decorateHelper, deduplicate, + defaultIncludeSpec, defaultInitCompilerOptions, defaultMaximumTruncationLength, diagnosticCategoryName, @@ -197332,22 +193157,27 @@ if (typeof console !== "undefined") { displayPart, displayPartsToString, disposeEmitNodes, + disposeResourcesHelper, documentSpansEqual, dumpTracingLegend, elementAt, elideNodes, + emitComments, emitDetachedComments, emitFiles, emitFilesAndReportErrors, emitFilesAndReportErrorsAndGetExitStatus, emitModuleKindIsNonNodeESM, emitNewLineBeforeLeadingCommentOfPosition, + emitNewLineBeforeLeadingComments, + emitNewLineBeforeLeadingCommentsOfPosition, emitResolverSkipsTypeChecking, emitSkippedWithNoDiagnostics, emptyArray, emptyFileSystemEntries, emptyMap, emptyOptions, + emptySet, endsWith, ensurePathIsNonModuleName, ensureScriptKind, @@ -197358,6 +193188,7 @@ if (typeof console !== "undefined") { equateStringsCaseInsensitive, equateStringsCaseSensitive, equateValues, + esDecorateHelper, escapeJsxAttributeString, escapeLeadingUnderscores, escapeNonAsciiString, @@ -197366,14 +193197,15 @@ if (typeof console !== "undefined") { escapeTemplateSubstitution, evaluatorResult, every, - exclusivelyPrefixedNodeCoreModules, executeCommandLine, expandPreOrPostfixIncrementOrDecrementExpression, explainFiles, explainIfFileIsRedirectAndImpliedFormat, exportAssignmentIsAlias, + exportStarHelper, expressionResultIsUnused, extend, + extendsHelper, extensionFromPath, extensionIsTS, extensionsNotSupportingExtensionlessResolution, @@ -197400,6 +193232,7 @@ if (typeof console !== "undefined") { findLast, findLastIndex, findListItemInfo, + findMap, findModifier, findNextToken, findPackageJson, @@ -197428,10 +193261,8 @@ if (typeof console !== "undefined") { forEach, forEachAncestor, forEachAncestorDirectory, - forEachAncestorDirectoryStoppingAtGlobalCache, forEachChild, forEachChildRecursively, - forEachDynamicImportOrRequireCall, forEachEmittedFile, forEachEnclosingBlockScopeContainer, forEachEntry, @@ -197441,8 +193272,6 @@ if (typeof console !== "undefined") { forEachLeadingCommentRange, forEachNameInAccessChainWalkingLeft, forEachNameOfDefaultExport, - forEachOptionsSyntaxByName, - forEachProjectReference, forEachPropertyAssignment, forEachResolvedProjectReference, forEachReturnStatement, @@ -197451,6 +193280,7 @@ if (typeof console !== "undefined") { forEachTsConfigPropArray, forEachUnique, forEachYieldExpression, + forSomeAncestorDirectory, formatColorAndReset, formatDiagnostic, formatDiagnostics, @@ -197461,8 +193291,11 @@ if (typeof console !== "undefined") { formatMessage, formatStringFromArgs, formatting, + fullTripleSlashAMDReferencePathRegEx, + fullTripleSlashReferencePathRegEx, generateDjb2Hash, generateTSConfig, + generatorHelper, getAdjustedReferenceLocation, getAdjustedRenameLocation, getAliasDeclarationFromName, @@ -197474,7 +193307,6 @@ if (typeof console !== "undefined") { getAllKeys, getAllProjectOutputs, getAllSuperTypeNodes, - getAllowImportingTsExtensions, getAllowJSCompilerOption, getAllowSyntheticDefaultImports, getAncestor, @@ -197482,6 +193314,7 @@ if (typeof console !== "undefined") { getAreDeclarationMapsEnabled, getAssignedExpandoInitializer, getAssignedName, + getAssignedNameOfIdentifier, getAssignmentDeclarationKind, getAssignmentDeclarationPropertyAccessKind, getAssignmentTargetKind, @@ -197522,6 +193355,7 @@ if (typeof console !== "undefined") { getContainingObjectLiteralElement, getContextualTypeFromParent, getContextualTypeFromParentOrAncestorTypeNode, + getCurrentTime, getDeclarationDiagnostics, getDeclarationEmitExtensionForPath, getDeclarationEmitOutputFilePath, @@ -197539,7 +193373,6 @@ if (typeof console !== "undefined") { getDefaultLibFilePath, getDefaultLikeExportInfo, getDefaultLikeExportNameFromDeclaration, - getDefaultResolutionModeForFileWorker, getDiagnosticText, getDiagnosticsWithinSpan, getDirectoryPath, @@ -197570,7 +193403,6 @@ if (typeof console !== "undefined") { getEmitFlags, getEmitHelpers, getEmitModuleDetectionKind, - getEmitModuleFormatOfFileWorker, getEmitModuleKind, getEmitModuleResolutionKind, getEmitScriptTarget, @@ -197621,11 +193453,11 @@ if (typeof console !== "undefined") { getIdentifierGeneratedImportReference, getIdentifierTypeArguments, getImmediatelyInvokedFunctionExpression, - getImpliedNodeFormatForEmitWorker, getImpliedNodeFormatForFile, getImpliedNodeFormatForFileWorker, getImportNeedsImportDefaultHelper, getImportNeedsImportStarHelper, + getIndentSize, getIndentString, getInferredLibraryNameResolveFrom, getInitializedVariables, @@ -197634,7 +193466,6 @@ if (typeof console !== "undefined") { getInterfaceBaseTypeNodes, getInternalEmitFlags, getInvokedExpression, - getIsFileExcluded, getIsolatedModules, getJSDocAugmentsTag, getJSDocClassTag, @@ -197663,6 +193494,7 @@ if (typeof console !== "undefined") { getJSDocSatisfiesExpressionType, getJSDocSatisfiesTag, getJSDocTags, + getJSDocTagsNoCache, getJSDocTemplateTag, getJSDocThisTag, getJSDocType, @@ -197682,12 +193514,11 @@ if (typeof console !== "undefined") { getLeadingCommentRangesOfNode, getLeftmostAccessExpression, getLeftmostExpression, - getLibFileNameFromLibReference, - getLibNameFromLibReference, getLibraryNameFromLibFileName, getLineAndCharacterOfPosition, getLineInfo, getLineOfLocalPosition, + getLineOfLocalPositionFromLineMap, getLineStartPositionForPosition, getLineStarts, getLinesBetweenPositionAndNextNonWhitespaceCharacter, @@ -197729,6 +193560,7 @@ if (typeof console !== "undefined") { getNameOfScriptTarget, getNameOrArgument, getNameTable, + getNamesForExportedSymbol, getNamespaceDeclarationNode, getNewLineCharacter, getNewLineKind, @@ -197745,57 +193577,62 @@ if (typeof console !== "undefined") { getNonAssignmentOperatorForCompoundAssignment, getNonAugmentationDeclaration, getNonDecoratorTokenPosOfNode, - getNonIncrementalBuildInfoRoots, - getNonModifierTokenPosOfNode, getNormalizedAbsolutePath, getNormalizedAbsolutePathWithoutRoot, getNormalizedPathComponents, getObjectFlags, + getOperator, getOperatorAssociativity, getOperatorPrecedence, getOptionFromName, getOptionsForLibraryResolution, getOptionsNameMap, - getOptionsSyntaxByArrayElementValue, - getOptionsSyntaxByValue, getOrCreateEmitNode, + getOrCreateExternalHelpersModuleNameIfNeeded, getOrUpdate, getOriginalNode, getOriginalNodeId, + getOriginalSourceFile, getOutputDeclarationFileName, getOutputDeclarationFileNameWorker, getOutputExtension, getOutputFileNames, getOutputJSFileNameWorker, getOutputPathsFor, + getOutputPathsForBundle, getOwnEmitOutputFilePath, getOwnKeys, getOwnValues, + getPackageJsonInfo, getPackageJsonTypesVersionsPaths, + getPackageJsonsVisibleToFile, getPackageNameFromTypesPackageName, getPackageScopeForPath, getParameterSymbolFromJSDoc, + getParameterTypeNode, getParentNodeInSpan, getParseTreeNode, getParsedCommandLineOfConfigFile, getPathComponents, + getPathComponentsRelativeTo, getPathFromPathComponents, getPathUpdater, getPathsBasePath, getPatternFromSpec, - getPendingEmitKindWithSeen, + getPendingEmitKind, getPositionOfLineAndCharacter, getPossibleGenericSignatures, getPossibleOriginalInputExtensionForExtension, - getPossibleOriginalInputPathWithoutChangingExt, getPossibleTypeArgumentsInfo, getPreEmitDiagnostics, getPrecedingNonSpaceCharacterPosition, getPrivateIdentifier, getProperties, getProperty, + getPropertyArrayElementValue, getPropertyAssignmentAliasLikeExpression, getPropertyNameForPropertyNameNode, + getPropertyNameForUniqueESSymbol, getPropertyNameFromType, getPropertyNameOfBindingOrAssignmentElement, getPropertySymbolFromBindingElement, @@ -197819,14 +193656,13 @@ if (typeof console !== "undefined") { getResolvePackageJsonExports, getResolvePackageJsonImports, getResolvedExternalModuleName, - getResolvedModuleFromResolution, - getResolvedTypeReferenceDirectiveFromResolution, getRestIndicatorOfBindingOrAssignmentElement, getRestParameterElementType, getRightMostAssignedExpression, getRootDeclaration, getRootDirectoryOfResolutionCache, getRootLength, + getRootPathSplitLength, getScriptKind, getScriptKindFromFileName, getScriptTargetFeatures, @@ -197838,12 +193674,14 @@ if (typeof console !== "undefined") { getSetAccessorValueParameter, getSetExternalModuleIndicator, getShebang, + getSingleInitializerOfVariableStatementOrPropertyDeclaration, getSingleVariableOfVariableStatement, getSnapshotText, getSnippetElement, getSourceFileOfModule, getSourceFileOfNode, getSourceFilePathInNewDir, + getSourceFilePathInNewDirWorker, getSourceFileVersionAsHashFromText, getSourceFilesToEmit, getSourceMapRange, @@ -197866,6 +193704,7 @@ if (typeof console !== "undefined") { getSwitchedType, getSymbolId, getSymbolNameForPrivateIdentifier, + getSymbolParentOrFail, getSymbolTarget, getSyntacticClassifications, getSyntacticModifierFlags, @@ -197896,6 +193735,7 @@ if (typeof console !== "undefined") { getTouchingToken, getTrailingCommentRanges, getTrailingSemicolonDeferringWriter, + getTransformFlagsSubtreeExclusions, getTransformers, getTsBuildInfoEmitOutputFilePath, getTsConfigObjectLiteralExpression, @@ -197923,6 +193763,7 @@ if (typeof console !== "undefined") { hasAccessorModifier, hasAmbientModifier, hasChangesInResolutions, + hasChildOfKind, hasContextSensitiveParameters, hasDecorators, hasDocComment, @@ -197931,7 +193772,6 @@ if (typeof console !== "undefined") { hasEffectiveModifiers, hasEffectiveReadonlyModifier, hasExtension, - hasImplementationTSFileExtension, hasIndexSignature, hasInferredType, hasInitializer, @@ -197959,6 +193799,7 @@ if (typeof console !== "undefined") { hasType, hasTypeArguments, hasZeroOrOneAsteriskCharacter, + helperString, hostGetCanonicalFileName, hostUsesCaseSensitiveFileNames, idText, @@ -197968,8 +193809,9 @@ if (typeof console !== "undefined") { identitySourceMapConsumer, ignoreSourceNewlines, ignoredPaths, + importDefaultHelper, importFromModuleSpecifier, - importSyntaxAffectsModuleResolution, + importStarHelper, indexOfAnyCharCode, indexOfNode, indicesOf, @@ -197977,6 +193819,7 @@ if (typeof console !== "undefined") { injectClassNamedEvaluationHelperBlockIfMissing, injectClassThisAssignmentIfMissing, insertImports, + insertLeadingStatement, insertSorted, insertStatementAfterCustomPrologue, insertStatementAfterStandardPrologue, @@ -197992,9 +193835,11 @@ if (typeof console !== "undefined") { isAccessibilityModifier, isAccessor, isAccessorModifier, + isAliasSymbolDeclaration, isAliasableExpression, isAmbientModule, isAmbientPropertyDeclaration, + isAnonymousFunctionDefinition, isAnyDirectorySeparator, isAnyImportOrBareOrAccessedRequire, isAnyImportOrReExport, @@ -198030,7 +193875,6 @@ if (typeof console !== "undefined") { isAwaitKeyword, isBigIntLiteral, isBinaryExpression, - isBinaryLogicalOperator, isBinaryOperatorToken, isBindableObjectDefinePropertyCall, isBindableStaticAccessExpression, @@ -198050,7 +193894,7 @@ if (typeof console !== "undefined") { isBooleanLiteral, isBreakOrContinueStatement, isBreakStatement, - isBuildCommand, + isBuild, isBuildInfoFile, isBuilderProgram, isBundle, @@ -198071,6 +193915,7 @@ if (typeof console !== "undefined") { isCatchClauseVariableDeclaration, isCatchClauseVariableDeclarationOrBindingElement, isCheckJsEnabledForFile, + isChildOfNodeWithKind, isCircularBuildOrder, isClassDeclaration, isClassElement, @@ -198082,6 +193927,7 @@ if (typeof console !== "undefined") { isClassOrTypeElement, isClassStaticBlockDeclaration, isClassThisAssignmentBlock, + isCollapsedRange, isColonToken, isCommaExpression, isCommaListExpression, @@ -198124,13 +193970,16 @@ if (typeof console !== "undefined") { isDeleteTarget, isDeprecatedDeclaration, isDestructuringAssignment, + isDiagnosticWithLocation, isDiskPathRoot, isDoStatement, isDocumentRegistryEntry, isDotDotDotToken, isDottedName, isDynamicName, + isESSymbolIdentifier, isEffectiveExternalModule, + isEffectiveModuleDeclaration, isEffectiveStrictModeSourceFile, isElementAccessChain, isElementAccessExpression, @@ -198200,11 +194049,13 @@ if (typeof console !== "undefined") { isFunctionOrModuleBlock, isFunctionSymbol, isFunctionTypeNode, + isFutureReservedKeyword, isGeneratedIdentifier, isGeneratedPrivateIdentifier, isGetAccessor, isGetAccessorDeclaration, isGetOrSetAccessorDeclaration, + isGlobalDeclaration, isGlobalScopeAugmentation, isGlobalSourceFile, isGrammarError, @@ -198237,7 +194088,7 @@ if (typeof console !== "undefined") { isImportSpecifier, isImportTypeAssertionContainer, isImportTypeNode, - isImportable, + isImportableFile, isInComment, isInCompoundLikeAssignment, isInExpressionContext, @@ -198252,8 +194103,6 @@ if (typeof console !== "undefined") { isInTemplateString, isInTopLevelContext, isInTypeQuery, - isIncrementalBuildInfo, - isIncrementalBundleEmitBuildInfo, isIncrementalCompilation, isIndexSignatureDeclaration, isIndexedAccessTypeNode, @@ -198336,7 +194185,6 @@ if (typeof console !== "undefined") { isJsxAttributeLike, isJsxAttributeName, isJsxAttributes, - isJsxCallLike, isJsxChild, isJsxClosingElement, isJsxClosingFragment, @@ -198361,6 +194209,7 @@ if (typeof console !== "undefined") { isLabeledStatement, isLateVisibilityPaintedStatement, isLeftHandSideExpression, + isLeftHandSideOfAssignment, isLet, isLineBreak, isLiteralComputedPropertyDeclarationName, @@ -198368,7 +194217,10 @@ if (typeof console !== "undefined") { isLiteralExpressionOfObject, isLiteralImportTypeNode, isLiteralKind, + isLiteralLikeAccess, + isLiteralLikeElementAccess, isLiteralNameOfPropertyDeclarationOrIndexAccess, + isLiteralTypeLikeExpression, isLiteralTypeLiteral, isLiteralTypeNode, isLocalName, @@ -198393,7 +194245,6 @@ if (typeof console !== "undefined") { isModuleBlock, isModuleBody, isModuleDeclaration, - isModuleExportName, isModuleExportsAccessExpression, isModuleIdentifier, isModuleName, @@ -198403,6 +194254,7 @@ if (typeof console !== "undefined") { isModuleWithStringLiteralName, isNameOfFunctionDeclaration, isNameOfModuleDeclaration, + isNamedClassElement, isNamedDeclaration, isNamedEvaluation, isNamedEvaluationSource, @@ -198419,8 +194271,8 @@ if (typeof console !== "undefined") { isNamespaceReexportDeclaration, isNewExpression, isNewExpressionTarget, - isNewScopeNode, isNoSubstitutionTemplateLiteral, + isNode, isNodeArray, isNodeArrayMultiLine, isNodeDescendantOf, @@ -198429,11 +194281,14 @@ if (typeof console !== "undefined") { isNodeModulesDirectory, isNodeWithPossibleHoistedDeclaration, isNonContextualKeyword, + isNonExportDefaultModifier, isNonGlobalAmbientModule, + isNonGlobalDeclaration, isNonNullAccess, isNonNullChain, isNonNullExpression, isNonStaticMethodOrAccessorWithPrivateName, + isNotEmittedOrPartiallyEmittedNode, isNotEmittedStatement, isNullishCoalesce, isNumber, @@ -198449,6 +194304,7 @@ if (typeof console !== "undefined") { isObjectLiteralMethod, isObjectLiteralOrClassExpressionMethodOrAccessor, isObjectTypeDeclaration, + isOctalDigit, isOmittedExpression, isOptionalChain, isOptionalChainRoot, @@ -198468,7 +194324,6 @@ if (typeof console !== "undefined") { isParseTreeNode, isPartOfParameterDeclaration, isPartOfTypeNode, - isPartOfTypeOnlyImportOrExportDeclaration, isPartOfTypeQuery, isPartiallyEmittedExpression, isPatternMatch, @@ -198483,6 +194338,7 @@ if (typeof console !== "undefined") { isPrivateIdentifierClassElementDeclaration, isPrivateIdentifierPropertyAccessExpression, isPrivateIdentifierSymbol, + isProgramBundleEmitBuildInfo, isProgramUptoDate, isPrologueDirective, isPropertyAccessChain, @@ -198495,6 +194351,7 @@ if (typeof console !== "undefined") { isPropertyName, isPropertyNameLiteral, isPropertySignature, + isProtoSetter, isPrototypeAccess, isPrototypePropertyAssignment, isPunctuation, @@ -198504,6 +194361,7 @@ if (typeof console !== "undefined") { isQuestionOrExclamationToken, isQuestionOrPlusOrMinusToken, isQuestionToken, + isRawSourceMap, isReadonlyKeyword, isReadonlyKeywordOrPlusOrMinusToken, isRecognizedTripleSlashComment, @@ -198525,23 +194383,24 @@ if (typeof console !== "undefined") { isRootedDiskPath, isSameEntityName, isSatisfiesExpression, + isScopeMarker, isSemicolonClassElement, isSetAccessor, isSetAccessorDeclaration, + isShebangTrivia, isShiftOperatorOrHigher, isShorthandAmbientModuleSymbol, isShorthandPropertyAssignment, - isSideEffectImport, isSignedNumericLiteral, isSimpleCopiableExpression, isSimpleInlineableExpression, + isSimpleParameter, isSimpleParameterList, isSingleOrDoubleQuote, - isSolutionConfig, - isSourceElement, isSourceFile, isSourceFileFromLibrary, isSourceFileJS, + isSourceFileNotJS, isSourceFileNotJson, isSourceMapping, isSpecialPropertyDeclaration, @@ -198554,6 +194413,7 @@ if (typeof console !== "undefined") { isStatic, isStaticModifier, isString, + isStringAKeyword, isStringANonContextualKeyword, isStringAndEmptyAnonymousObjectIntersection, isStringDoubleQuoted, @@ -198566,6 +194426,7 @@ if (typeof console !== "undefined") { isStringTextContainingNode, isSuperCall, isSuperKeyword, + isSuperOrSuperProperty, isSuperProperty, isSupportedSourceFileName, isSwitchStatement, @@ -198611,6 +194472,7 @@ if (typeof console !== "undefined") { isTypeDeclaration, isTypeElement, isTypeKeyword, + isTypeKeywordToken, isTypeKeywordTokenOrIdentifier, isTypeLiteralNode, isTypeNode, @@ -198646,6 +194508,7 @@ if (typeof console !== "undefined") { isVariableDeclarationInitializedToRequire, isVariableDeclarationList, isVariableLike, + isVariableLikeOrAccessor, isVariableStatement, isVoidExpression, isWatchSet, @@ -198664,6 +194527,10 @@ if (typeof console !== "undefined") { libMap, libs, lineBreakPart, + linkNamePart, + linkPart, + linkTextPart, + listFiles, loadModuleFromGlobalCache, loadWithModeAwareCache, makeIdentifierFromModuleName, @@ -198673,6 +194540,7 @@ if (typeof console !== "undefined") { map, mapAllOrFail, mapDefined, + mapDefinedEntries, mapDefinedIterator, mapEntries, mapIterator, @@ -198682,20 +194550,18 @@ if (typeof console !== "undefined") { matchPatternOrExact, matchedText, matchesExclude, - matchesExcludeWorker, - maxBy, maybeBind, maybeSetLocalizedDiagnosticMessages, memoize, + memoizeCached, memoizeOne, + memoizeWeak, + metadataHelper, min, minAndMax, missingFileModifiedTime, modifierToFlag, modifiersToFlags, - moduleExportNameIsDefault, - moduleExportNameTextEscaped, - moduleExportNameTextUnescaped, moduleOptionDeclaration, moduleResolutionIsEqualTo, moduleResolutionNameAndModeGetter, @@ -198704,7 +194570,6 @@ if (typeof console !== "undefined") { moduleResolutionUsesNodeModules, moduleSpecifierToValidIdentifier, moduleSpecifiers, - moduleSupportsImportAttributes, moduleSymbolToValidIdentifier, moveEmitHelpers, moveRangeEnd, @@ -198723,7 +194588,6 @@ if (typeof console !== "undefined") { noTransformers, noTruncationMaximumTruncationLength, nodeCanBeDecorated, - nodeCoreModules, nodeHasName, nodeIsDecorated, nodeIsMissing, @@ -198737,11 +194601,11 @@ if (typeof console !== "undefined") { nodePosToString, nodeSeenTracker, nodeStartsNewLexicalEnvironment, + nodeToDisplayParts, noop, noopFileWatcher, normalizePath, normalizeSlashes, - normalizeSpans, not, notImplemented, notImplementedResolver, @@ -198756,11 +194620,13 @@ if (typeof console !== "undefined") { optionsForBuild, optionsForWatch, optionsHaveChanges, + optionsHaveModuleResolutionChanges, or, orderedRemoveItem, orderedRemoveItemAt, packageIdToPackageName, packageIdToString, + paramHelper, parameterIsThisKeyword, parameterNamePart, parseBaseNodeFactory, @@ -198791,8 +194657,10 @@ if (typeof console !== "undefined") { pathIsBareSpecifier, pathIsRelative, patternText, + perfLogger, performIncrementalCompilation, performance, + plainJSErrors, positionBelongsToNode, positionIsASICandidate, positionIsSynthesized, @@ -198805,6 +194673,7 @@ if (typeof console !== "undefined") { programContainsEsModules, programContainsModules, projectReferenceIsEqualTo, + propKeyHelper, propertyNamePart, pseudoBigIntToString, punctuationPart, @@ -198827,6 +194696,7 @@ if (typeof console !== "undefined") { rangeStartPositionsAreOnSameLine, readBuilderProgram, readConfigFile, + readHelper, readJson, readJsonConfigFile, readJsonOrUndefined, @@ -198837,7 +194707,7 @@ if (typeof console !== "undefined") { reducePathComponents, refactor, regExpEscape, - regularExpressionFlagToCharacterCode, + regularExpressionFlagToCharacter, relativeComplement, removeAllComments, removeEmitHelper, @@ -198845,6 +194715,7 @@ if (typeof console !== "undefined") { removeFileExtension, removeIgnoredPath, removeMinAndVersionNumbers, + removeOptionality, removePrefix, removeSuffix, removeTrailingDirectorySeparator, @@ -198863,17 +194734,20 @@ if (typeof console !== "undefined") { resolveTripleslashReference, resolveTypeReferenceDirective, resolvingEmptyArray, + restHelper, returnFalse, returnNoopFileWatcher, returnTrue, returnUndefined, returnsPromise, - rewriteModuleSpecifier, + runInitializersHelper, sameFlatMap, sameMap, sameMapping, + scanShebangTrivia, scanTokenAtPosition, scanner, + screenStartingMessageCodes, semanticDiagnosticsOptionDeclarations, serializeCompilerOptions, server, @@ -198881,13 +194755,16 @@ if (typeof console !== "undefined") { setCommentRange, setConfigFileInOptions, setConstantValue, + setEachParent, setEmitFlags, + setFunctionNameHelper, setGetSourceFileAsHashVersioned, setIdentifierAutoGenerate, setIdentifierGeneratedImportReference, setIdentifierTypeArguments, setInternalEmitFlags, setLocalizedDiagnosticMessages, + setModuleDefaultHelper, setNodeChildren, setNodeFlags, setObjectAllocator, @@ -198914,9 +194791,9 @@ if (typeof console !== "undefined") { setValueDeclaration, shouldAllowImportingTsExtension, shouldPreserveConstEnums, - shouldRewriteModuleSpecifier, shouldUseUriStyleNodeCoreModules, showModuleSpecifier, + signatureHasLiteralTypes, signatureHasRestParameter, signatureToDisplayParts, single, @@ -198925,17 +194802,18 @@ if (typeof console !== "undefined") { singleOrMany, singleOrUndefined, skipAlias, + skipAssertions, skipConstraint, skipOuterExpressions, skipParentheses, skipPartiallyEmittedExpressions, skipTrivia, skipTypeChecking, - skipTypeCheckingIgnoringNoCheck, skipTypeParentheses, skipWhile, sliceAfter, some, + sort, sortAndDeduplicate, sortAndDeduplicateDiagnostics, sourceFileAffectingCompilerOptions, @@ -198944,6 +194822,8 @@ if (typeof console !== "undefined") { sourceMapCommentRegExpDontCareLineStart, spacePart, spanMap, + spreadArrayHelper, + stableSort, startEndContainsRange, startEndOverlapsWithStartEnd, startOnNewLine, @@ -198956,8 +194836,10 @@ if (typeof console !== "undefined") { stringToToken, stripQuotes, supportedDeclarationExtensions, + supportedJSExtensions, supportedJSExtensionsFlat, supportedLocaleDirectories, + supportedTSExtensions, supportedTSExtensionsFlat, supportedTSImplementationExtensions, suppressLeadingAndTrailingTrivia, @@ -198966,13 +194848,16 @@ if (typeof console !== "undefined") { symbolEscapedNameNoDefault, symbolName, symbolNameNoDefault, + symbolPart, symbolToDisplayParts, + syntaxMayBeASICandidate, + syntaxRequiresTrailingSemicolonOrASI, sys, sysLog, tagNamesAreEquivalent, takeWhile, targetOptionDeclaration, - targetToLibMap, + templateObjectHelper, testFormatSettings, textChangeRangeIsUnchanged, textChangeRangeNewSpan, @@ -198980,10 +194865,7 @@ if (typeof console !== "undefined") { textOrKeywordPart, textPart, textRangeContainsPositionInclusive, - textRangeContainsTextSpan, - textRangeIntersectsWithTextSpan, textSpanContainsPosition, - textSpanContainsTextRange, textSpanContainsTextSpan, textSpanEnd, textSpanIntersection, @@ -199001,9 +194883,9 @@ if (typeof console !== "undefined") { toBuilderStateFileInfoForMultiEmit, toEditorSettings, toFileNameLowerCase, + toLowerCase, toPath, toProgramEmitPending, - toSorted, tokenIsIdentifierOrKeyword, tokenIsIdentifierOrKeywordOrGreaterThan, tokenToString, @@ -199025,11 +194907,11 @@ if (typeof console !== "undefined") { transformESDecorators, transformESNext, transformGenerators, - transformImpliedNodeFormatDependentModule, transformJsx, transformLegacyDecorators, transformModule, transformNamedEvaluation, + transformNodeModule, transformNodes, transformSystemModule, transformTypeScript, @@ -199056,6 +194938,7 @@ if (typeof console !== "undefined") { tryGetPropertyNameOfBindingOrAssignmentElement, tryGetSourceMappingURL, tryGetTextOfPropertyName, + tryIOAndConsumeErrors, tryParseJson, tryParsePattern, tryParsePatterns, @@ -199066,7 +194949,6 @@ if (typeof console !== "undefined") { tryRemoveExtension, tryRemovePrefix, tryRemoveSuffix, - tscBuildOption, typeAcquisitionDeclarations, typeAliasNamePart, typeDirectiveIsEqualTo, @@ -199078,7 +194960,7 @@ if (typeof console !== "undefined") { unescapeLeadingUnderscores, unmangleScopedPackageName, unorderedRemoveItem, - unprefixedNodeCoreModules, + unorderedRemoveItemAt, unreachableCodeIsError, unsetNodeChildren, unusedLabelIsError, @@ -199091,9 +194973,11 @@ if (typeof console !== "undefined") { updateSharedExtendedConfigFileWatcher, updateSourceFile, updateWatchingWildcardDirectories, + usesExtensionsOnImports, usingSingleLineStringWriter, utf16EncodeAsString, validateLocaleAndSetLanguage, + valuesHelper, version, versionMajorMinor, visitArray, @@ -199106,6 +194990,7 @@ if (typeof console !== "undefined") { visitNodes, visitParameterList, walkUpBindingElementsAndPatterns, + walkUpLexicalEnvironments, walkUpOuterExpressions, walkUpParenthesizedExpressions, walkUpParenthesizedTypes, diff --git a/node_modules/typescript/lib/typingsInstaller.js b/node_modules/typescript/lib/typingsInstaller.js index ba3994e48..3b2d0e0ee 100644 --- a/node_modules/typescript/lib/typingsInstaller.js +++ b/node_modules/typescript/lib/typingsInstaller.js @@ -1,8 +1,236 @@ -// This file is a shim which defers loading the real module until the compile cache is enabled. -try { - const { enableCompileCache } = require("node:module"); - if (enableCompileCache) { - enableCompileCache(); - } -} catch {} -module.exports = require("./_typingsInstaller.js"); +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + + +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/typingsInstaller/nodeTypingsInstaller.ts +var nodeTypingsInstaller_exports = {}; +__export(nodeTypingsInstaller_exports, { + NodeTypingsInstaller: () => NodeTypingsInstaller +}); +module.exports = __toCommonJS(nodeTypingsInstaller_exports); +var fs = __toESM(require("fs")); +var path = __toESM(require("path")); + +// src/typescript/typescript.ts +var typescript_exports = {}; +__reExport(typescript_exports, require("./typescript.js")); + +// src/typingsInstaller/nodeTypingsInstaller.ts +var FileLog = class { + constructor(logFile) { + this.logFile = logFile; + this.isEnabled = () => { + return typeof this.logFile === "string"; + }; + this.writeLine = (text) => { + if (typeof this.logFile !== "string") return; + try { + fs.appendFileSync(this.logFile, `[${typescript_exports.server.nowString()}] ${text}${typescript_exports.sys.newLine}`); + } catch (e) { + this.logFile = void 0; + } + }; + } +}; +function getDefaultNPMLocation(processName, validateDefaultNpmLocation2, host) { + if (path.basename(processName).indexOf("node") === 0) { + const npmPath = path.join(path.dirname(process.argv[0]), "npm"); + if (!validateDefaultNpmLocation2) { + return npmPath; + } + if (host.fileExists(npmPath)) { + return `"${npmPath}"`; + } + } + return "npm"; +} +function loadTypesRegistryFile(typesRegistryFilePath, host, log2) { + if (!host.fileExists(typesRegistryFilePath)) { + if (log2.isEnabled()) { + log2.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); + } + return /* @__PURE__ */ new Map(); + } + try { + const content = JSON.parse(host.readFile(typesRegistryFilePath)); + return new Map(Object.entries(content.entries)); + } catch (e) { + if (log2.isEnabled()) { + log2.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${e.message}, ${e.stack}`); + } + return /* @__PURE__ */ new Map(); + } +} +var typesRegistryPackageName = "types-registry"; +function getTypesRegistryFileLocation(globalTypingsCacheLocation2) { + return (0, typescript_exports.combinePaths)((0, typescript_exports.normalizeSlashes)(globalTypingsCacheLocation2), `node_modules/${typesRegistryPackageName}/index.json`); +} +var NodeTypingsInstaller = class extends typescript_exports.server.typingsInstaller.TypingsInstaller { + constructor(globalTypingsCacheLocation2, typingSafeListLocation2, typesMapLocation2, npmLocation2, validateDefaultNpmLocation2, throttleLimit, log2) { + const libDirectory = (0, typescript_exports.getDirectoryPath)((0, typescript_exports.normalizePath)(typescript_exports.sys.getExecutingFilePath())); + super( + typescript_exports.sys, + globalTypingsCacheLocation2, + typingSafeListLocation2 ? (0, typescript_exports.toPath)(typingSafeListLocation2, "", (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)) : (0, typescript_exports.toPath)("typingSafeList.json", libDirectory, (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)), + typesMapLocation2 ? (0, typescript_exports.toPath)(typesMapLocation2, "", (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)) : (0, typescript_exports.toPath)("typesMap.json", libDirectory, (0, typescript_exports.createGetCanonicalFileName)(typescript_exports.sys.useCaseSensitiveFileNames)), + throttleLimit, + log2 + ); + this.npmPath = npmLocation2 !== void 0 ? npmLocation2 : getDefaultNPMLocation(process.argv[0], validateDefaultNpmLocation2, this.installTypingHost); + if (this.npmPath.includes(" ") && this.npmPath[0] !== `"`) { + this.npmPath = `"${this.npmPath}"`; + } + if (this.log.isEnabled()) { + this.log.writeLine(`Process id: ${process.pid}`); + this.log.writeLine(`NPM location: ${this.npmPath} (explicit '${typescript_exports.server.Arguments.NpmLocation}' ${npmLocation2 === void 0 ? "not " : ""} provided)`); + this.log.writeLine(`validateDefaultNpmLocation: ${validateDefaultNpmLocation2}`); + } + ({ execSync: this.nodeExecSync } = require("child_process")); + this.ensurePackageDirectoryExists(globalTypingsCacheLocation2); + try { + if (this.log.isEnabled()) { + this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); + } + this.execSyncAndLog(`${this.npmPath} install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`, { cwd: globalTypingsCacheLocation2 }); + if (this.log.isEnabled()) { + this.log.writeLine(`Updated ${typesRegistryPackageName} npm package`); + } + } catch (e) { + if (this.log.isEnabled()) { + this.log.writeLine(`Error updating ${typesRegistryPackageName} package: ${e.message}`); + } + this.delayedInitializationError = { + kind: "event::initializationFailed", + message: e.message, + stack: e.stack + }; + } + this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation2), this.installTypingHost, this.log); + } + handleRequest(req) { + if (this.delayedInitializationError) { + this.sendResponse(this.delayedInitializationError); + this.delayedInitializationError = void 0; + } + super.handleRequest(req); + } + sendResponse(response) { + if (this.log.isEnabled()) { + this.log.writeLine(`Sending response:${typescript_exports.server.stringifyIndented(response)}`); + } + process.send(response); + if (this.log.isEnabled()) { + this.log.writeLine(`Response has been sent.`); + } + } + installWorker(requestId, packageNames, cwd, onRequestCompleted) { + if (this.log.isEnabled()) { + this.log.writeLine(`#${requestId} with cwd: ${cwd} arguments: ${JSON.stringify(packageNames)}`); + } + const start = Date.now(); + const hasError = typescript_exports.server.typingsInstaller.installNpmPackages(this.npmPath, typescript_exports.version, packageNames, (command) => this.execSyncAndLog(command, { cwd })); + if (this.log.isEnabled()) { + this.log.writeLine(`npm install #${requestId} took: ${Date.now() - start} ms`); + } + onRequestCompleted(!hasError); + } + /** Returns 'true' in case of error. */ + execSyncAndLog(command, options) { + if (this.log.isEnabled()) { + this.log.writeLine(`Exec: ${command}`); + } + try { + const stdout = this.nodeExecSync(command, { ...options, encoding: "utf-8" }); + if (this.log.isEnabled()) { + this.log.writeLine(` Succeeded. stdout:${indent(typescript_exports.sys.newLine, stdout)}`); + } + return false; + } catch (error) { + const { stdout, stderr } = error; + this.log.writeLine(` Failed. stdout:${indent(typescript_exports.sys.newLine, stdout)}${typescript_exports.sys.newLine} stderr:${indent(typescript_exports.sys.newLine, stderr)}`); + return true; + } + } +}; +var logFilePath = typescript_exports.server.findArgument(typescript_exports.server.Arguments.LogFile); +var globalTypingsCacheLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.GlobalCacheLocation); +var typingSafeListLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypingSafeListLocation); +var typesMapLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.TypesMapLocation); +var npmLocation = typescript_exports.server.findArgument(typescript_exports.server.Arguments.NpmLocation); +var validateDefaultNpmLocation = typescript_exports.server.hasArgument(typescript_exports.server.Arguments.ValidateDefaultNpmLocation); +var log = new FileLog(logFilePath); +if (log.isEnabled()) { + process.on("uncaughtException", (e) => { + log.writeLine(`Unhandled exception: ${e} at ${e.stack}`); + }); +} +process.on("disconnect", () => { + if (log.isEnabled()) { + log.writeLine(`Parent process has exited, shutting down...`); + } + process.exit(0); +}); +var installer; +process.on("message", (req) => { + installer ?? (installer = new NodeTypingsInstaller( + globalTypingsCacheLocation, + typingSafeListLocation, + typesMapLocation, + npmLocation, + validateDefaultNpmLocation, + /*throttleLimit*/ + 5, + log + )); + installer.handleRequest(req); +}); +function indent(newline, str) { + return str && str.length ? `${newline} ` + str.replace(/\r?\n/, `${newline} `) : ""; +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + NodeTypingsInstaller +}); +//# sourceMappingURL=typingsInstaller.js.map diff --git a/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json b/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json index 1ebc7b131..b22244527 100644 --- a/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "所有编译器选项", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "“{0}”修饰符不能与导入声明一起使用。", "A_0_parameter_must_be_the_first_parameter_2680": "“{0}”参数必须是第一个参数。", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "JSDoc“@template”标记不能跟在“@typedef”、“@callback”或“@overload”标记后面", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc \"@typedef\" 注释不能包含多个 \"@type\" 标记。", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "“bigint”文本不能用作属性名称。", "A_bigint_literal_cannot_use_exponential_notation_1352": "BigInt 字面量中不能使用指数符号。", "A_bigint_literal_must_be_an_integer_1353": "BigInt 字面量必须是整数。", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "绑定模式参数在实现签名中不能为可选参数。", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "\"break\" 语句只能在封闭迭代或 switch 语句内使用。", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "\"break\" 语句只能跳转到封闭语句的标签。", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "字符类不得包含保留的双标点符号。你是否想要使用反斜杠对其进行转义?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "字符类范围不能由另一个字符类绑定。", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "类只能实现具有可选类型参数的标识符/限定名称。", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "类只能实现具有静态已知成员的对象类型或对象类型的交集。", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "类无法扩展“{0}”这样的基元类型。类只能扩展可构造值。", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "类无法实现类似于“{0}”的基元类型。它只能实现其他命名对象类型。", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "不带 \"default\" 修饰符的类声明必须具有名称。", "A_class_member_cannot_have_the_0_keyword_1248": "类成员不可具有“{0}”关键字。", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "计算属性名中不允许逗号表达式。", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "构造函数不可具有 \"this\" 参数。", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "\"continue\" 语句只能在封闭迭代语句内使用。", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "\"continue\" 语句只能跳转到封闭迭代语句的标签。", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "如果没有“导入类型”,则无法导入声明文件。是否要改为导入实现文件“{0}”?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "不能在已有的环境上下文中使用 \"declare\" 修饰符。", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "修饰器仅可修饰方法实现,而不可修饰重载。", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "\"default\" 子句在 \"switch\" 语句中只能出现一次。", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "默认导出必须位于文件或模块声明的顶层。", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "此上下文中不允许明确的赋值断言 \"!\"。", "A_destructuring_declaration_must_have_an_initializer_1182": "析构声明必须具有初始化表达式。", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "ES5 中的动态导入调用需要“Promise”构造函数。请确保对 “Promise” 构造函数进行了声明或在 “--lib” 选项中包含了 “ES2015”。", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3 中的动态导入调用需要 “Promise” 构造函数。请确保对 “Promise” 构造函数进行了声明或在 “--lib” 选项中包含了 “ES2015”。", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "动态导入调用返回 “Promise”。请确保具有对 “Promise” 的声明或在 “--lib” 选项中包含了 “ES2015”。", "A_file_cannot_have_a_reference_to_itself_1006": "文件不能引用自身。", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "返回“从不”的函数不能具有可访问的终结点。", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "使用 'new' 关键字调用的函数的 'this' 类型不能为 'void'。", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "其声明类型不为 \"undefined\"、\"void\" 或 \"any\" 的函数必须返回值。", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "其声明类型不为 \"void\" 或 \"any\" 的函数必须返回值。", "A_generator_cannot_have_a_void_type_annotation_2505": "生成器不能具有 \"void\" 类型批注。", "A_get_accessor_cannot_have_parameters_1054": "\"get\" 访问器不能具有参数。", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "Get 访问器必须至少具有与 Setter 相同的可访问性", @@ -62,9 +55,9 @@ "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_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "命名空间声明不能位于与之合并的类或函数前", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空间声明只允许位于命名空间或模块的顶层。", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "不应使用 \"module\" 关键字声明 \"namespace\" 声明。请改用 \"namespace\" 关键字。", "A_non_dry_build_would_build_project_0_6357": "非 -dry 生成将生成项目“{0}”", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 生成将删除以下文件: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "非 dry 生成将更新项目 '{0}' 的输出", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "非 dry 生成将更新项目 '{0}' 的输出的时间戳", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "只允许在函数或构造函数实现中使用参数初始化表达式。", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "不能使用 rest 参数声明参数属性。", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "当派生类包含初始化属性、参数属性或专用标识符时,“super” 调用必须是构造函数中用来引用 “super” 或 “this” 的第一个语句。", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "基于 \"this\" 的类型防护与基于参数的类型防护不兼容。", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "\"this\" 类型仅在类或接口的非静态成员中可用。", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "启用“verbatimModuleSyntax”时,不能对 CommonJS 模块中的值声明使用顶级“export”修饰符。", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "已在“{0}”中定义了 \"tsconfig.json\" 文件。", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "元组成员不能既是可选的又是 rest。", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "不能使用负值为元组类型编制索引。", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "只允许在生成器正文中使用 \"yield\" 表达式。", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "无法通过 super 表达式访问“{1}”类中的“{0}”抽象方法。", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "抽象方法只能出现在抽象类中。", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "抽象属性只能出现在抽象类中。", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "不能在构造函数中访问类“{1}”中的抽象属性“{0}”。", "Accessibility_modifier_already_seen_1028": "已看到可访问性修饰符。", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "访问器仅在面向 ECMAScript 5 和更高版本时可用。", "Accessors_must_both_be_abstract_or_non_abstract_2676": "两个取值函数必须都是抽象的或都是非抽象的。", "Add_0_to_unresolved_variable_90008": "将“{0}.”添加到未解析的变量", "Add_a_return_statement_95111": "添加 return 语句", - "Add_a_return_type_to_the_function_declaration_9031": "将返回类型添加到函数声明。", - "Add_a_return_type_to_the_function_expression_9030": "将返回类型添加到函数表达式。", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "将返回类型添加到 get 访问器声明。", - "Add_a_return_type_to_the_method_9034": "向方法添加返回类型", - "Add_a_type_annotation_to_the_parameter_0_9028": "向参数 {0} 添加类型注释。", - "Add_a_type_annotation_to_the_property_0_9029": "向属性 {0} 添加类型注释。", - "Add_a_type_annotation_to_the_variable_0_9027": "向变量 {0} 添加类型注释。", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "将类型添加到 set 访问器声明的参数。", "Add_all_missing_async_modifiers_95041": "添加所有缺失的 \"async\" 修饰符", "Add_all_missing_attributes_95168": "添加所有缺少的属性", "Add_all_missing_call_parentheses_95068": "添加所有缺失的调用括号", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "添加所有缺少的导入", "Add_all_missing_members_95022": "添加所有缺少的成员", "Add_all_missing_override_modifiers_95162": "添加所有缺失的 \"override\" 修饰符", - "Add_all_missing_parameters_95190": "添加所有缺少的参数", "Add_all_missing_properties_95166": "添加所有缺少的属性", "Add_all_missing_return_statement_95114": "添加所有缺少的 return 语句", "Add_all_missing_super_calls_95039": "添加所有缺失的 super() 调用", - "Add_all_missing_type_annotations_90067": "添加所有缺少的类型注释", - "Add_all_optional_parameters_95193": "添加所有可选参数", - "Add_annotation_of_type_0_90062": "添加类型为“{0}”的注释", "Add_async_modifier_to_containing_function_90029": "将异步修饰符添加到包含函数", "Add_await_95083": "添加 \"await\"", "Add_await_to_initializer_for_0_95084": "将 \"await\" 添加到 \"{0}\" 的初始值设定项", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "将初始化表达式添加到未初始化的所有属性", "Add_missing_attributes_95167": "添加缺少的属性", "Add_missing_call_parentheses_95067": "添加缺失的调用括号", - "Add_missing_comma_for_object_member_completion_0_95187": "为对象成员完成“{0}”添加缺少的逗号。", "Add_missing_enum_member_0_95063": "添加缺少的枚举成员 \"{0}\"", "Add_missing_function_declaration_0_95156": "添加缺少的函数声明 \"{0}\"", "Add_missing_new_operator_to_all_calls_95072": "将缺少的 \"new\" 运算符添加到所有调用", "Add_missing_new_operator_to_call_95071": "将缺少的 \"new\" 运算符添加到调用", - "Add_missing_parameter_to_0_95188": "将缺少的参数添加到“{0}”", - "Add_missing_parameters_to_0_95189": "将缺少的参数添加到“{0}”", "Add_missing_properties_95165": "添加缺少的属性", "Add_missing_super_call_90001": "添加缺失的 \"super()\" 调用", "Add_missing_typeof_95052": "添加缺少的 \"typeof\"", "Add_names_to_all_parameters_without_names_95073": "为没有名称的所有参数添加名称", - "Add_optional_parameter_to_0_95191": "将可选参数添加到“{0}”", - "Add_optional_parameters_to_0_95192": "将可选参数添加到“{0}”", "Add_or_remove_braces_in_an_arrow_function_95058": "添加或删除箭头函数中的大括号", "Add_override_modifier_95160": "添加 \"override\" 修饰符", "Add_parameter_name_90034": "添加参数名称", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "将限定符添加到匹配成员名称的所有未解析变量", - "Add_resolution_mode_import_attribute_95196": "添加 \"resolution-mode\" 导入属性", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "向所有需要 \"resolution-mode\" 导入属性的仅类型导入添加该属性", - "Add_return_type_0_90063": "添加返回类型“{0}”", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "将 satisfies 和类型断言添加到此表达式 (satisfies T as T) 以使类型显式。", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "使用“{0}”添加 satisfies 和内联类型断言", "Add_to_all_uncalled_decorators_95044": "将 \"()\" 添加到所有未调用的修饰器", "Add_ts_ignore_to_all_error_messages_95042": "将 \"@ts-ignore\" 添加到所有错误消息", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "使用索引访问时,将 “undefined” 添加到类型。", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "允许从不带默认输出的模块中默认输入。这不会影响代码发出,只是类型检查。", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "当模块没有默认导出时,允许“从 y 导入 x”。", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "允许每个项目从 tslib 导入帮助程序函数一次,而不是将它们包含在每个文件中。", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "允许导入包含 TypeScript 文件扩展名。需要设置“--moduleResolution bundler”以及“--noEmit”或“--emitDeclarationOnly”。", "Allow_javascript_files_to_be_compiled_6102": "允许编译 JavaScript 文件。", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "允许在解析模块时将多个文件夹视为一个文件夹。", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "已包含的文件名 \"{0}\" 仅大小写与文件名 \"{1}\" 不同。", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "未提供与此绑定模式匹配的自变量。", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "算术操作数必须为类型 \"any\"、\"number\"、\"bigint\" 或枚举类型。", "An_arrow_function_cannot_have_a_this_parameter_2730": "箭头函数不能包含 \"this\" 参数。", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "ES5 中的异步函数或方法需要“Promise”构造函数。请确保对 “Promise” 构造函数进行了声明或在 “--lib” 选项中包含了 “ES2015”。", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 中的异步函数或方法需要 “Promise” 构造函数。请确保具有一个 “Promise” 构造函数的声明,或在 “--lib” 选项中包含了 “ES2015”。", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "异步函数或方法必须返回 “Promise”。请确保具有对 “Promise” 的声明或在 “--lib” 选项中包含了 “ES2015”。", "An_async_iterator_must_have_a_next_method_2519": "异步迭代器必须具有 \"next()\" 方法。", "An_element_access_expression_should_take_an_argument_1011": "元素访问表达式应采用参数。", @@ -239,22 +207,17 @@ "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_namespace_or_module_1233": "导出声明只能在命名空间或模块的顶层使用。", "An_export_declaration_cannot_have_modifiers_1193": "导出声明不能有修饰符。", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "启用“verbatimModuleSyntax”,但“{0}”解析为仅类型声明时,“export =”声明必须引用实际值。", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "启用“verbatimModuleSyntax”时,“export =”声明必须引用值,但“{0}”仅引用类型。", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "启用“verbatimModuleSyntax”,但“{0}”解析为仅类型声明时,“export default”必须引用实际值。", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "启用“verbatimModuleSyntax”时,“export default”必须引用一个值,但“{0}”只引用了一个类型。", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "无法测试 \"void\" 类型的表达式的真实性。", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "扩展的 Unicode 转义值必须介于(含) 0x0 和 0x10FFFF 之间。", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "标识符或关键字不能紧跟在数字字面量之后。", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "不能在环境上下文中声明实现。", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "导入别名不能引用使用 \"export type\" 导出的声明。", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "导入别名不能引用使用 \"import type\" 导入的声明。", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "启用“verbatimModuleSyntax”时,导入别名无法解析为类型或仅类型声明。", "An_import_alias_cannot_use_import_type_1392": "导入别名不能使用“导入类型”", "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_namespace_or_module_1232": "导入声明只能在命名空间或模块的顶层使用。", "An_import_declaration_cannot_have_modifiers_1191": "导入声明不能有修饰符。", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "启用“allowImportingTsExtensions”时,导入路径只能以“{0}”扩展名结尾。", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "导入路径不能以“{0}”扩展名结束。考虑改为导入“{1}”。", "An_index_signature_cannot_have_a_rest_parameter_1017": "索引签名不能包含 rest 参数。", "An_index_signature_cannot_have_a_trailing_comma_1025": "索引签名不能包含尾随逗号。", "An_index_signature_must_have_a_type_annotation_1021": "索引签名必须具有类型批注。", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "实例化表达式不能后跟属性访问。", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "接口只能扩展具有可选类型参数的标识符/限定名称。", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "接口只能扩展使用静态已知成员的对象类型或对象类型的交集。", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "接口无法扩展“{0}”这样的基元类型。它只能扩展其他命名对象类型。", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "接口无法扩展基元类型,如“{0}”;接口只能扩展命名类型和类", "An_interface_property_cannot_have_an_initializer_1246": "接口函数不能具有初始化表达式。", "An_iterator_must_have_a_next_method_2489": "迭代器必须具有 \"next()\" 方法。", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "将 @jsx 杂注与 JSX 片段一起使用时,需要使用 @jsxFrag 杂注。", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "对象文本不能具有多个名称相同的属性。", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "对象文字不能包含具有相同名称的属性和访问器。", "An_object_member_cannot_be_declared_optional_1162": "对象成员无法声明为可选。", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "对象的“[Symbol.hasInstance]”方法必须返回布尔值,这样它才能在“instanceof”表达式的右侧使用。", "An_optional_chain_cannot_contain_private_identifiers_18030": "可选链不能包含专用标识符。", "An_optional_element_cannot_follow_a_rest_element_1266": "可选元素不能跟在 rest 元素之后。", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "此容器隐藏了 \"this\" 的外部值。", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "重载签名无法声明为生成器。", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "乘方表达式的左侧不允许存在具有“{0}”运算符的一元表达式。请考虑用括号将表达式括起。", "Annotate_everything_with_types_from_JSDoc_95043": "使用 JSDoc 中的类型批注所有内容", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "注释命名空间中属性 expando 函数的类型", "Annotate_with_type_from_JSDoc_95009": "通过 JSDoc 类型批注", "Another_export_default_is_here_2753": "这里是其他导出默认值。", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "任何可能匹配多个字符的 Unicode 属性仅在设置 Unicode Sets (v) 标志时可用。", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "可能匹配多个字符的任何内容在被否定的字符类中无效。", "Are_you_missing_a_semicolon_2734": "是否缺少分号?", "Argument_expression_expected_1135": "应为参数表达式。", "Argument_for_0_option_must_be_Colon_1_6046": "“{0}”选项的参数必须为 {1}。", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "类型为“{0}”的参数不能分配给类型为“{1}”且 “exactOptionalPropertyTypes: true” 的参数。请考虑将 “undefined” 添加到目标属性的类型。", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "未提供 rest 形参“{0}”的实参。", "Array_element_destructuring_pattern_expected_1181": "应为数组元素析构模式。", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "无法使用 --isolatedDeclarations 推断具有分布元素的数组。", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "断言要求使用显式类型注释声明调用目标中的每个名称。", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "断言要求调用目标为标识符或限定名。", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "--isolatedDeclarations 不支持将属性分配给不声明它们的函数。为分配给此函数的属性添加显式声明。", "Asterisk_Slash_expected_1010": "应为 \"*/\"。", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一个访问器必须具有带有 --isolatedDeclarations 的显式类型注释。", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全局范围的扩大仅可直接嵌套在外部模块中或环境模块声明中。", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "全局范围的扩大应具有 \"declare\" 修饰符,除非它们显示在已有的环境上下文中。", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "项目“{0}”中启用了键入内容的自动发现。使用缓存位置“{2}”运行模块“{1}”的额外解决传递。", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "无法在类静态块内使用 await 表达式。", "BUILD_OPTIONS_6919": "生成选项", "Backwards_Compatibility_6253": "向后兼容性", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "基类表达式无法引用类类型参数。", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "目标低于 ES2020 时,BigInt 字面量不可用。", "Binary_digit_expected_1177": "需要二进制数字。", "Binding_element_0_implicitly_has_an_1_type_7031": "绑定元素“{0}”隐式具有“{1}”类型。", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "绑定元素不能直接使用 --isolatedDeclarations 导出。", "Block_scoped_variable_0_used_before_its_declaration_2448": "声明之前已使用的块范围变量“{0}”。", "Build_a_composite_project_in_the_working_directory_6925": "在工作目录中生成复合项目。", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "生成所有项目,包括那些似乎是最新的项目。", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "生成一个或多个项目及其依赖项(如果已过期)", "Build_option_0_requires_a_value_of_type_1_5073": "生成选项 \"{0}\" 需要类型 {1} 的值。", "Building_project_0_6358": "正在生成项目“{0}”...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "内置迭代器实例化时,“TReturn”类型为“undefined”而不是“any”。", "COMMAND_LINE_FLAGS_6921": "命令行标记", "COMMON_COMMANDS_6916": "常见命令", "COMMON_COMPILER_OPTIONS_6920": "常见编译器选项", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "调用签名返回类型 \"{0}\" 和 \"{1}\" 不兼容。", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "缺少返回类型批注的调用签名隐式具有返回类型 \"any\"。", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "没有参数的调用签名具有不兼容的返回类型 \"{0}\" 和 \"{1}\"。", + "Call_target_does_not_contain_any_signatures_2346": "调用目标不包含任何签名。", "Can_only_convert_logical_AND_access_chains_95142": "仅可转换逻辑 AND 访问链", "Can_only_convert_named_export_95164": "只能转换已命名的导出", "Can_only_convert_property_with_modifier_95137": "只能转换带修饰符的属性", - "Can_only_convert_string_concatenations_and_string_literals_95154": "只能转换字符串串联和字符串文本", + "Can_only_convert_string_concatenation_95154": "只能转换字符串串联", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "无法访问“{0}.{1}”,因为“{0}”是类型,不是命名空间。是否要使用“{0}[\"{1}\"]”检索“{0}”中“{1}”属性的类型?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "启用“{1}”时,无法从没有限定的其他文件访问“{0}”。请改用“{2}”。", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "启用“{0}”时,无法访问环境常量枚举。", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "提供 \"--isolatedModules\" 标志时,无法访问环境常量枚举。", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "不可将“{0}”构造函数类型分配给“{1}”构造函数类型。", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "无法将抽象构造函数类型分配给非抽象构造函数类型。", "Cannot_assign_to_0_because_it_is_a_class_2629": "无法为“{0}”赋值,因为它是类。", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "找不到“{0}”的库定义。", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "找不到“{0}”的库定义。你是指“{1}”?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "找不到模块“{0}”。请考虑使用 \"--resolveJsonModule\" 导入带 \".json\" 扩展的模块。", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "找不到模块“{0}”。你的意思是要将 \"moduleResolution\" 选项设置为 \"nodenext\",还是要将别名添加到 \"paths\" 选项中?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "找不到模块“{0}”。你的意思是要将 \"moduleResolution\" 选项设置为 \"node\",还是要将别名添加到 \"paths\" 选项中?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "找不到模块“{0}”或其相应的类型声明。", "Cannot_find_name_0_2304": "找不到名称“{0}”。", "Cannot_find_name_0_Did_you_mean_1_2552": "找不到名称“{0}”。你是否指的是“{1}”?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "找不到名称“{0}”。你是否要在异步函数中写入此内容?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "找不到名称“{0}”。是否需要更改目标库? 请尝试将 “lib” 编译器选项更改为“{1}”或更高版本。", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "找不到名称“{0}”。是否需要更改目标库? 请尝试更改 “lib” 编译器选项以包括 “dom”。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "找不到名称“{0}”。你是否需要安装 Bun 的类型定义?请尝试运行 `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_2868": "找不到名称“{0}”。你是否需要安装 Bun 的类型定义?请尝试运行 `npm i --save-dev @types/bun`,然后将 \"bun\" 添加到 tsconfig 的 types 字段。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "找不到名称 \"{0}\"。是否需要安装测试运行器的类型定义? 请尝试使用 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "找不到名称“{0}”。是否需要安装测试运行器的类型定义? 请尝试使用 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`,然后将 “jest” 或 “mocha” 添加到 tsconfig 中的类型字段。。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "找不到名称 \"{0}\"。是否需要安装 jQuery 的类型定义? 请尝试使用 `npm i --save-dev @types/jquery`。", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "无法迭代值,因为其迭代器的 \"next\" 方法需要类型 \"{1}\",但数组析构将始终发送 \"{0}\"。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "无法迭代值,因为其迭代器的 \"next\" 方法需要类型 \"{1}\",但数组扩张将始终发送 \"{0}\"。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "无法迭代值,因为其迭代器的 \"next\" 方法需要类型 \"{1}\",但 for-of 将始终发送 \"{0}\"。", - "Cannot_move_statements_to_the_selected_file_95183": "无法将语句移动到所选文件", - "Cannot_move_to_file_selected_file_is_invalid_95179": "无法移动到文件,所选文件无效", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "无法为项目“{0}”添加前缀,因为它未设置 \"outFile\"", "Cannot_read_file_0_5083": "无法读取文件“{0}”。", "Cannot_read_file_0_Colon_1_5012": "无法读取文件“{0}”: {1}。", "Cannot_redeclare_block_scoped_variable_0_2451": "无法重新声明块范围变量“{0}”。", "Cannot_redeclare_exported_variable_0_2323": "无法重新声明导出的变量“{0}”。", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "无法在 catch 子句中重新声明标识符“{0}”。", "Cannot_start_a_function_call_in_a_type_annotation_1441": "无法在类型注释中启动函数调用。", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "无法更新项目 \"{0}\" 的输出,因为读取文件 \"{1}\" 时出错", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "无法使用 JSX,除非提供了 \"--jsx\" 标志。", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "启用“{0}”时,不能对类型或仅类型命名空间使用“export import”。", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "在提供 “--isolatedModules” 标志时,无法在类型或仅类型命名空间上使用“导出导入”。", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "当 \"--module\" 为 \"none\" 时无法使用导入、导出或模块扩大。", "Cannot_use_namespace_0_as_a_type_2709": "不能将命名空间“{0}”用作类型。", "Cannot_use_namespace_0_as_a_value_2708": "不能将命名空间“{0}”用作值。", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "将 \"extends\" 改为 \"implements\"", "Change_spelling_to_0_90022": "将拼写更改为“{0}”", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "检查是否有已声明但未在构造函数中设置的类属性。", - "Check_side_effect_imports_6806": "检查副作用导入。", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "检查 “bind”、“call” 和 “apply” 方法的参数是否与原始函数匹配。", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "检查“{0}”是否是“{1}”-“{2}”的最长匹配前缀。", "Circular_definition_of_import_alias_0_2303": "导入别名“{0}”的循环定义。", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "类声明无法实现“{0}”的重载列表。", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "类声明不能有多个 “@augments” 或 “@extends” 标记。", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "类修饰器不能与静态专用标识符一起使用。请考虑删除实验性修饰器。", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "父类定义的类字段“{0}”无法通过 super 在子类中访问。", "Class_name_cannot_be_0_2414": "类名不能为“{0}”。", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "使用模块 {0} 将目标设置为 ES5 时,类名称不能为 \"Object\"。", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "类静态侧“{0}”错误扩展基类静态侧“{1}”。", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "命令行选项", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "编译给定了其配置文件路径或带 \"tsconfig.json\" 的文件夹路径的项目。", "Compiler_Diagnostics_6251": "编译器诊断", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "无法为编译器选项“{0}”提供空字符串。", "Compiler_option_0_expects_an_argument_6044": "编译器选项“{0}”需要参数。", "Compiler_option_0_may_not_be_used_with_build_5094": "编译器选项“--{0}”不能与 “--build” 一起使用。", "Compiler_option_0_may_only_be_used_with_build_5093": "编译器选项“--{0}”只能与 “--build” 一起使用。", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "复合项目可能不会禁用声明发出。", "Composite_projects_may_not_disable_incremental_compilation_6379": "复合项目不能禁用增量编译。", "Computed_from_the_list_of_input_files_6911": "从输入文件列表计算", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "计算属性必须是数字或字符串文本、变量或带 --isolatedDeclarations 的虚线表达式。", "Computed_property_names_are_not_allowed_in_enums_1164": "枚举中不允许计算属性名。", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "不能使用 --isolatedDeclarations 推断类或对象文本上的计算属性名称。", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "含字符串值成员的枚举中不允许使用计算值。", "Concatenate_and_emit_output_to_single_file_6001": "连接输出并将其发出到单个文件。", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "解析导入时除特定于解析程序的默认值外要设置的条件。", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "“{1}”和“{2}”处找到的“{0}”的定义具有冲突。考虑安装此库的特定版本以解决冲突。", "Conflicts_are_in_this_file_6201": "此文件中存在冲突。", "Consider_adding_a_declare_modifier_to_this_class_6506": "请考虑向此类添加 “declare” 修饰符。", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "构造签名返回类型 \"{0}\" 和 \"{1}\" 不兼容。", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "将“{0}”转换为映射对象类型", "Convert_all_const_to_let_95102": "将所有 'const' 转换为 'let'", "Convert_all_constructor_functions_to_classes_95045": "将所有构造函数都转换为类", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "将不用作值的所有导入转换为仅类型导入", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "将所有无效字符转换为 HTML 实体代码", "Convert_all_re_exported_types_to_type_only_exports_1365": "将所有重新导出的类型转换为仅类型导出", "Convert_all_require_to_import_95048": "将所有 \"require\" 转换为 \"import\"", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "全部转换为 BigInt 数字字面量", "Convert_all_to_default_imports_95035": "全部转换为默认导入", "Convert_all_type_literals_to_mapped_type_95021": "将所有类型文本转换为映射类型", - "Convert_all_typedef_to_TypeScript_types_95177": "将所有 typedef 转换为 TypeScript 类型。", "Convert_arrow_function_or_function_expression_95122": "转换箭头函数或函数表达式", "Convert_const_to_let_95093": "将 \"const\" 转换为 \"let\"", "Convert_default_export_to_named_export_95061": "将默认导出转换为命名导出", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "转换为可选链表达式", "Convert_to_template_string_95096": "转换为模板字符串", "Convert_to_type_only_export_1364": "转换为仅类型导出", - "Convert_typedef_to_TypeScript_type_95176": "将 typedef 转换为 TypeScript 类型。", + "Convert_to_type_only_import_1373": "转换为仅类型导入", "Corrupted_locale_file_0_6051": "区域设置文件 {0} 已损坏。", "Could_not_convert_to_anonymous_function_95153": "无法转换为匿名函数", "Could_not_convert_to_arrow_function_95151": "无法转换为箭头函数", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "找不到名称“{0}”。你是否是指“{1}”?", "Could_not_find_namespace_import_or_named_imports_95132": "找不到命名空间导入或已命名的导入", "Could_not_find_property_for_which_to_generate_accessor_95135": "找不到要为其生成访问器的属性", - "Could_not_find_variable_to_inline_95185": "找不到要内联的变量。", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "无法解析具有表达式的路径“{0}”: {1}。", "Could_not_write_file_0_Colon_1_5033": "无法写入文件“{0}”: {1}。", "Create_source_map_files_for_emitted_JavaScript_files_6694": "为发出的 JavaScript 文件创建源映射文件。", "Create_sourcemaps_for_d_ts_files_6614": "为 d.ts 文件创建源映射。", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "使用工作目录中的建议设置创建 tsconfig.json。", "DIRECTORY_6038": "目录", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "字符类中不允许使用十进制转义序列和反向引用。", - "Decimals_with_leading_zeros_are_not_allowed_1489": "不允许使用带前导零的小数。", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "该声明扩充了另一文件中的声明。这无法被序列化。", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "为此文件发出的声明需要保留此导入以进行扩充。--isolatedDeclarations 不支持此功能。", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此文件的声明发出要求使用专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此文件的声明发出要求使用模块 \"{1}\" 中的专用名称 \"{0}\"。显式类型注释可能取消阻止声明发出。", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "为此参数发出的声明要求将未定义隐式添加到其类型。--isolatedDeclarations 不支持此功能。", "Declaration_expected_1146": "应为声明。", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "声明名称与内置全局标识符“{0}”冲突。", "Declaration_or_statement_expected_1128": "应为声明或语句。", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "声明静态属性“{0}”", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "装饰器函数返回类型“{0}”不可分配到类型“{1}”。", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "装饰器函数返回类型为“{0}”,但预期为“void”或“any”。", - "Decorator_used_before_export_here_1486": "此处“导出”之前使用的修饰器。", "Decorators_are_not_valid_here_1206": "修饰器在此处无效。", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "不能向多个同名的 get/set 访问器应用修饰器。", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "如果修饰器也出现在“导出”之前,则它们可能不会出现在“export”或“export default”之后。", + "Decorators_may_not_be_applied_to_this_parameters_1433": "修饰器不能应用于 “this” 参数。", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "修饰器必须位于属性声明的名称和所有关键字之前。", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "将 catch 子句变量默认为 “unknown” 而不是 “any”。", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "模块的默认导出具有或正在使用专用名称“{0}”。", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "无法使用 --isolatedDeclarations 推断默认导出。", "Default_library_1424": "默认库", "Default_library_for_target_0_1425": "目标 \"{0}\" 的默认库", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "以下标识符的定义与另一个文件中的定义冲突: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "在生成的代码中禁用擦除 “const enum” 声明。", "Disable_error_reporting_for_unreachable_code_6603": "对无法访问的代码禁用错误报告。", "Disable_error_reporting_for_unused_labels_6604": "对未使用的标签禁用错误报告。", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "禁用完整类型检查(仅报告关键分析和发出错误)。", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "在已编译输出中禁用生成自定义帮助程序函数(如 “__extends”)。", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "禁用包括任何库文件(包括默认的 lib.d.ts)。", "Disable_loading_referenced_projects_6235": "禁止加载引用的项目。", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "禁止 “import”、“require” 或 “” 扩展 TypeScript 应添加到项目的文件数。", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "不允许对同一文件采用大小不一致的引用。", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "请勿将三斜杠引用或导入的模块添加到已编译文件列表中。", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "不允许不属于 ECMAScript 的运行时构造。", "Do_not_emit_comments_to_output_6009": "请勿将注释发出到输出。", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "请勿对具有 \"@internal\" 注释的代码发出声明。", "Do_not_emit_outputs_6010": "请勿发出输出。", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "不报告有关不可访问的代码的错误。", "Do_not_report_errors_on_unused_labels_6074": "不报告有关未使用的标签的错误。", "Do_not_resolve_the_real_path_of_symlinks_6013": "不要解析 symlink 的真实路径。", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "不要转换或省略任何未标记为仅类型的导入或导出,确保它们是根据“模块”设置以输出文件格式编写的。", "Do_not_truncate_error_messages_6165": "请勿删除错误消息。", "Duplicate_function_implementation_2393": "函数实现重复。", "Duplicate_identifier_0_2300": "标识符“{0}”重复。", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "类型“{0}”的索引签名重复。", "Duplicate_label_0_1114": "标签“{0}”重复。", "Duplicate_property_0_2718": "重复的属性 \"{0}\"。", - "Duplicate_regular_expression_flag_1500": "正则表达式标志重复。", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "动态导入的说明符类型必须是 \"string\",但此处类型是 \"{0}\"。", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅当将“--module”标记设置为“es2020”、“es2022”、“esnext”、“commonjs”、“amd”、“system”、“umd”、“node16”、“node18”或“nodenext”时,才支持动态导入。", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "动态导入只能接受模块说明符和可选的特性集作为参数", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "仅当“--module”选项设置为“esnext”、“node16”、“node18”、“nodenext”或“preserve”时,动态导入才支持第二个参数。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "当“module”设置为“preserve”时,CommonJS 模块中不允许使用 ESM 语法。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "启用“verbatimModuleSyntax”时,CommonJS 模块中不允许使用 ESM 语法。", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "“{0}.{1}”的每个声明的值不同,其中应为“{2}”,但给出的是“{3}”。", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "仅在将 “--module” 标记设置为 “es2020”、“es2022”、“esnext”、“commonjs”、“amd”、“system”、“umd”、“node16” 或 “nodenext” 时,才支持动态导入。", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "动态导入只能接受模块说明符和可选断言作为参数", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "只有当 “--module” 选项设置为 “esnext”、 “node16” 或 “nodenext” 时,动态导入才支持第二个参数。", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "联合类型 \"{0}\" 的每个成员都有构造签名,但这些签名都不能互相兼容。", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "联合类型 \"{0}\" 的每个成员都有签名,但这些签名都不能互相兼容。", "Editor_Support_6249": "编辑器支持", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "在已检查类型的 JavaScript 文件中启用错误报告。", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "在未读取局部变量时启用错误报告。", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "在 “this” 的类型为 “any” 时启用错误报告。", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "启用对旧实验性修饰器的实验性支持。", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "启用导入具有任何扩展名的文件,前提是存在声明文件。", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "为 TC39 暂存 2 草稿修饰器启用实验性支持。", "Enable_importing_json_files_6689": "启用导入 .json 文件。", - "Enable_lib_replacement_6808": "启用 lib 替换。", "Enable_project_compilation_6302": "启用项目编译", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "对函数启用严格的 \"bind\"、\"call\" 和 \"apply\" 方法。", "Enable_strict_checking_of_function_types_6186": "对函数类型启用严格检查。", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "确保导入中的大小写正确。", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "确保可以安全地转译每个文件,而无需依赖其他导入。", "Ensure_use_strict_is_always_emitted_6605": "请确保始终发出 “se strict”。", - "Entering_conditional_exports_6413": "正在输入条件导出。", "Entry_point_for_implicit_type_library_0_1420": "隐式类型库 \"{0}\" 的入口点", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "隐式类型库 \"{0}\" 的入口点,具有 packageId \"{1}\"", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "在 compilerOptions 中指定的类型库 \"{0}\" 的入口点", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "枚举声明只能与命名空间或其他枚举声明合并。", "Enum_declarations_must_all_be_const_or_non_const_2473": "枚举声明必须全为常数或非常数。", "Enum_member_expected_1132": "应为枚举成员。", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "启用“isolatedModules”时,非文本数值成员之后的枚举成员必须具有初始值设定项。", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "枚举成员初始值设定项必须可计算,而不引用具有 --isolatedDeclarations 的外部符号。", "Enum_member_must_have_initializer_1061": "枚举成员必须具有初始化表达式。", "Enum_name_cannot_be_0_2431": "枚举名不能为“{0}”。", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "枚举类型“{0}”包含具有不是文本的初始值设定项的成员。", "Errors_Files_6041": "错误文件", - "Escape_sequence_0_is_not_allowed_1488": "不允许转义序列“{0}”。", "Examples_Colon_0_6026": "示例: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "比较类型“{0}”和“{1}”的复杂性过高。", "Excessive_stack_depth_comparing_types_0_and_1_2321": "与类型“{0}”和“{1}”相比,堆栈深度过高。", - "Exiting_conditional_exports_6416": "正在退出条件导出。", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "应为 {0}-{1} 类型参数;请为这些参数添加 \"@extends\" 标记。", "Expected_0_arguments_but_got_1_2554": "应有 {0} 个参数,但获得 {1} 个。", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "应为 {0} 个参数,但得到的却是 {1} 个。你是否忘了将类型参数中的 \"void\" 包含到 \"Promise\"?", "Expected_0_type_arguments_but_got_1_2558": "应有 {0} 个类型参数,但获得 {1} 个。", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "应为 {0} 类型参数;请为这些参数添加 \"@extends\" 标记。", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "应为 1 个参数,但得到 0。“new Promise()” 需要 JSDoc 提示才能生成可在没有参数的情况下调用的 “resolve”。", - "Expected_a_Unicode_property_name_1523": "应为 Unicode 属性名称。", - "Expected_a_Unicode_property_name_or_value_1527": "应为 Unicode 属性名称或值。", - "Expected_a_Unicode_property_value_1525": "应为 Unicode 属性值。", - "Expected_a_capturing_group_name_1514": "应为捕获组名称。", - "Expected_a_class_set_operand_1520": "应为类集操作数。", "Expected_at_least_0_arguments_but_got_1_2555": "应有至少 {0} 个参数,但获得 {1} 个。", "Expected_corresponding_JSX_closing_tag_for_0_17002": "“{0}”预期的相应 JSX 结束标记。", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "预期的 JSX 片段的相应结束标记。", "Expected_for_property_initializer_1442": "属性初始化表达式应有 \"=\"。", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "\"package.json\" 中 \"{0}\" 字段的类型应为 \"{1}\",但实际为 \"{2}\" 。", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "对修饰器的实验支持功能在将来的版本中可能更改。在 \"tsconfig\" 或 \"jsconfig\" 中设置 \"experimentalDecorators\" 选项以删除此警告。", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "显示指定了模块解析类型:“{0}”。", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "除非 \"target\" 选项设置为 \"es2016\" 或更高版本,否则不能对 \"bigint\" 值执行求幂运算。", "Export_0_from_module_1_90059": "从模块“{1}”导出“{0}”", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "导出的变量“{0}”具有或正在使用专用名称“{1}”。", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "模块扩大中不允许导出和导出分配。", "Expression_expected_1109": "应为表达式。", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "表达式必须括在括号中才能用作修饰器。", "Expression_or_comma_expected_1137": "应为表达式或逗号。", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "表达式生成的元组类型太大,无法表示。", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "表达式生成的联合类型过于复杂,无法表示。", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "表达式解析为 \"_super\",编译器使用 \"_super\" 获取基类引用。", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "表达式解析为编辑器用于捕获 \"new.target\" 元属性引用的变量声明 \"_newTarget\"。", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "表达式解析为编译器用于捕获 \"this\" 引用的变量声明 \"_this\"。", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "无法使用 --isolatedDeclarations 推断表达式类型。", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "Extends 子句不能包含具有 --isolatedDeclarations 的表达式。", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "推断类型“{0}”的 Extends 子句具有或正在使用专用名称“{1}”。", - "Extract_base_class_to_variable_90064": "将基类提取到变量", - "Extract_binding_expressions_to_variable_90066": "将绑定表达式提取到变量", "Extract_constant_95006": "提取常数", - "Extract_default_export_to_variable_90065": "将默认导出提取到变量", "Extract_function_95005": "提取函数", "Extract_to_0_in_1_95004": "提取到 {1} 中的 {0}", "Extract_to_0_in_1_scope_95008": "提取到 {1} 范围中的 {0}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "提取到接口", "Extract_to_type_alias_95078": "提取到类型别名", "Extract_to_typedef_95079": "提取到类型引用", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "提取到变量并替换为“{0} 为 typeof {0}”", "Extract_type_95077": "提取类型", "FILE_6035": "文件", "FILE_OR_DIRECTORY_6040": "文件或目录", - "Failed_to_find_peerDependency_0_6283": "找不到 peerDependency“{0}”。", - "Failed_to_resolve_under_condition_0_6415": "无法在条件“{0}”下解析。", + "Failed_to_parse_file_0_Colon_1_5014": "未能分析文件“{0}”: {1}。", "Fallthrough_case_in_switch_7029": "switch 语句中的 Fallthrough 情况。", "File_0_does_not_exist_6096": "文件“{0}”不存在。", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "根据前面缓存的查找,文件“{0}”不存在。", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "文件“{0}”存在 - 将其用作名称解析结果。", "File_0_exists_according_to_earlier_cached_lookups_6239": "根据前面缓存的查找,文件“{0}”存在。", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "文件“{0}”存在 - 将其用作名称解析结果。", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "文件“{0}”具有不受支持的扩展名。仅支持 {1} 扩展名。", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "文件“{0}”的扩展名不受支持,正在跳过。", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "文件 \"{0}\" 是 JavaScript 文件。你是想启用 \"allowJs\" 选项吗?", "File_0_is_not_a_module_2306": "文件“{0}”不是模块。", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "文件 \"{0}\" 不在项目 \"{1}\" 的文件列表中。项目必须列出所有文件,或使用 \"include\" 模式。", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "文件“{0}”不在 \"rootDir\"“{1}”下。\"rootDir\" 应包含所有源文件。", "File_0_not_found_6053": "找不到文件“{0}”。", "File_Management_6245": "文件管理", - "File_appears_to_be_binary_1490": "文件似乎是二进制文件。", "File_change_detected_Starting_incremental_compilation_6032": "检测到文件更改。正在启动增量编译...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "文件是 CommonJS 模块,因为“{0}”没有字段 “type”", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "文件是 CommonJS 模块,因为“{0}”具有值不是 “module” 的字段 “type”", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "文件是项目引用源 \"{0}\" 的输出", "File_is_source_from_referenced_project_specified_here_1416": "文件源自此处指定的引用项目。", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "文件名“{0}”仅在大小写方面与包含的文件名“{1}”不同。", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "文件名“{0}”具有“{1}”扩展 - 改为查找“{2}”。", "File_name_0_has_a_1_extension_stripping_it_6132": "文件名“{0}”的扩展名为“{1}”,请去除它。", "File_redirects_to_file_0_1429": "文件重定向到文件 \"{0}\"", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "文件规范不能包含出现在递归目录通配符(\"*\"): “{0}”后的父目录(\"..\")。", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "修复可能缺少 \"await\" 的所有表达式", "Fix_all_implicit_this_errors_95107": "修复所有 implicit-'this' 错误", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "修复所有错误的异步函数返回类型", - "Fix_all_with_type_only_imports_95182": "使用仅类型导入修复所有问题", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "无法在类静态块内使用 for...await 循环。", "Found_0_errors_6217": "找到 {0} 个错误。", "Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 个错误。注意文件更改。", "Found_0_errors_in_1_files_6261": "在 {1} 个文件中找到 {0} 个错误。", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "在同一文件中找到 {0} 个错误,起始位置为: {1}", "Found_1_error_6216": "找到 1 个错误。", "Found_1_error_Watching_for_file_changes_6193": "找到 1 个错误。注意文件更改。", - "Found_1_error_in_0_6259": "在 {0} 中找到 1 个错误", + "Found_1_error_in_1_6259": "在 {1} 中找到 1 个错误", "Found_package_json_at_0_6099": "在“{0}”处找到了 \"package.json\"。", - "Found_peerDependency_0_with_1_version_6282": "找到具有“{1}”版本的 peerDependency“{0}”。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "面向“ES5”时,在严格模式下,块内不允许函数声明。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "面向“ES5”时,在严格模式下,块内不允许函数声明。类定义自动处于严格模式。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "面向“ES5”时,在严格模式下,块内不允许函数声明。模块自动处于严格模式。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。类定义自动处于严格模式。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "面向 \"ES3\" 或 \"ES5\" 时,在严格模式下,块内不允许函数声明。模块自动处于严格模式。", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "缺少返回类型批注的函数表达式隐式具有“{0}”返回类型。", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "函数实现缺失或未立即出现在声明之后。", "Function_implementation_name_must_be_0_2389": "函数实现名称必须为“{0}”。", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "由于函数不具有返回类型批注并且在它的一个返回表达式中得到直接或间接引用,因此它隐式具有返回类型 \"any\"。", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "函数缺少结束 return 语句,返回类型不包括 \"undefined\"。", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "函数必须具有带有 --isolatedDeclarations 的显式返回类型注释。", "Function_not_implemented_95159": "未实现函数。", "Function_overload_must_be_static_2387": "函数重载必须为静态。", "Function_overload_must_not_be_static_2388": "函数重载不能为静态。", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "生成事件跟踪和类型列表。", "Generates_corresponding_d_ts_file_6002": "生成相应的 \".d.ts\" 文件。", "Generates_corresponding_map_file_6043": "生成相应的 \".map\" 文件。", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "生成器隐式具有 yield 类型 ‘{0}’。请考虑提供一个返回类型注释。", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "生成器隐式具有产出类型 \"{0}\" ,因为它不生成任何值。请考虑提供一个返回类型注释。", "Generators_are_not_allowed_in_an_ambient_context_1221": "不允许在环境上下文中使用生成器。", "Generic_type_0_requires_1_type_argument_s_2314": "泛型类型“{0}”需要 {1} 个类型参数。", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "泛型类型“{0}”需要介于 {1} 和 {2} 类型参数之间。", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "应为标识符。", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "应为标识符。转换 ECMAScript 模块时,\"__esModule\" 保留为导出标记。", "Identifier_or_string_literal_expected_1478": "应为标识符或字符串字面量。", - "Identifier_string_literal_or_number_literal_expected_1496": "应为标识符、字符串文本或数字文本。", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "如果“{0}”包实际上公开此模块,请考虑发送拉取请求以修正“https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}”", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "如果“{0}”包实际公开了此模块,请尝试添加包含 `declare module‘{1}';` 的新声明(.d.ts)文件", "Ignore_this_error_message_90019": "忽略此错误信息", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "实现接口“{0}”", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "导出的类“{0}”的 Implements 子句具有或正在使用专用名称“{1}”。", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "\"symbol\" 到 \"string\" 的隐式转换将在运行时失败。请考虑在 \"String(...)\" 中包装此表达式。", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "导入“{0}”与此文件中使用的全局值冲突,因此在启用“isolatedModules”时必须使用仅类型导入进行声明。", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "导入“{0}”与本地值冲突,因此在启用“isolatedModules”时必须使用仅类型导入进行声明。", "Import_0_from_1_90013": "从“{1}”导入“{0}”", "Import_assertion_values_must_be_string_literal_expressions_2837": "导入断言值必须为字符串字面量表达式。", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "不允许在编译到 commonJS“require”调用的语句导入断言。", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "仅当“--module”选项设置为“esnext”、“node18”、“nodenext”或“preserve”时,才支持导入断言。", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "不允许在转译到 commonjs “require” 调用的语句导入断言。", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "仅在将 “--module” 选项设置为 “esnext” 或 “nodenext” 时,才支持导入断言。", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "导入断言不能用于仅类型导入或导出。", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "导入断言已被导入属性替换。使用 “with” 而不是 “assert”。", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "面向 ECMAScript 模块时,不能使用导入分配。请考虑改用 \"import * as ns from \"mod\"\"、\"import {a} from \"mod\"\"、\"import d from \"mod\"\" 或另一种模块格式。", - "Import_attribute_values_must_be_string_literal_expressions_2858": "导入属性值必须为字符串字面量表达式。", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "不允许在编译到 commonJS“require” 调用的语句导入属性。", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "仅当“--module”选项设置为“esnext”、“node18”、“nodenext”或“preserve”时,才支持导入属性。", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "导入属性不能用于仅类型导入或导出。", "Import_declaration_0_is_using_private_name_1_4000": "导入声明“{0}”使用的是专用名称“{1}”。", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "导入声明与“{0}”的局部声明冲突。", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "命名空间中的导入声明不能引用模块。", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入,以按照 compilerOptions 中指定的方式导入 \"importHelpers\"", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "通过 {0} 从具有 packageId \"{2}\" 的文件 \"{1}\" 导入,以导入 \"jsx\" 和 \"jsxs\" 工厂函数", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "当 ‘module’ 设置为 ‘{0}’ 时,将 JSON 文件导入 ECMAScript 模块需要 ‘type: “json”’ 导入属性。", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "模块扩大中不允许导入。请考虑将它们移动到封闭的外部模块。", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "在环境枚举声明中,成员初始化表达式必须是常数表达式。", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "在包含多个声明的枚举中,只有一个声明可以省略其第一个枚举元素的初始化表达式。", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在发出的 JavaScript 中包括源映射文件。", "Includes_imports_of_types_referenced_by_0_90054": "包含由“{0}”引用的类型的导入", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch,-w 将开始监视当前项目的文件更改。设置后,可以使用以下内容配置监视模式:", - "Incomplete_quantifier_Digit_expected_1505": "限定符不完整。应为数字。", "Index_signature_for_type_0_is_missing_in_type_1_2329": "类型“{1}”中缺少类型“{0}”的索引签名。", "Index_signature_in_type_0_only_permits_reading_2542": "类型“{0}”中的索引签名仅允许读取。", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "合并声明“{0}”中的单独声明必须全为导出或全为局部声明。", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "根据使用情况推断参数类型", "Infer_this_type_of_0_from_usage_95080": "从用法中推断出 \"{0}\" 的 \"this\" 类型", "Infer_type_of_0_from_usage_95011": "根据使用情况推断“{0}”的类型", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "--isolatedDeclarations 不支持从类表达式推理。", "Initialize_property_0_in_the_constructor_90020": "初始化构造函数中的属性“{0}”", "Initialize_static_property_0_90021": "初始化静态属性“{0}”", "Initializer_for_property_0_2811": "属性“{0}”的初始化表达式", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "实例成员变量“{0}”的初始化表达式不能引用构造函数中声明的标识符“{1}”。", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "初始化表达式没有为此绑定元素提供此任何值,且该绑定元素没有默认值。", "Initializers_are_not_allowed_in_ambient_contexts_1039": "不允许在环境上下文中使用初始化表达式。", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "初始化 TypeScript 项目并创建 tsconfig.json 文件。", - "Inline_variable_95184": "内联变量", "Insert_command_line_options_and_files_from_a_file_6030": "从文件插入命令行选项和文件。", "Install_0_95014": "安装“{0}”", "Install_all_missing_types_packages_95033": "安装缺少的所有类型包", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "扩大中的模块名无效,找不到模块“{0}”。", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "新表达式中的可选链无效。是否要调用“{0}()”?", "Invalid_reference_directive_syntax_1084": "\"reference\" 指令语法无效。", - "Invalid_syntax_in_decorator_1498": "修饰器中的语法无效。", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "“{0}”的使用无效。它不能在类静态块内使用。", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "“{0}”的使用无效。模块自动处于严格模式。", "Invalid_use_of_0_in_strict_mode_1100": "严格模式下“{0}”的使用无效。", - "Invalid_value_for_ignoreDeprecations_5103": "“--ignoreDeprecations”的值无效。", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "\"jsxFactory\" 的值无效。“{0}”不是有效的标识符或限定名称。", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "\"jsxFragmentFactory\" 的值无效。“{0}”不是有效的标识符或限定名称。", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "\"--reactNamespace\" 的值无效。“{0}”不是有效的标识符。", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "其元素类型 \"{0}\" 不是有效的 JSX 元素。", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "其实例类型 \"{0}\" 不是有效的 JSX 元素。", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "其返回类型 \"{0}\" 不是有效的 JSX 元素。", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "其类型“{0}”不是有效的 JSX 元素类型。", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc \"@{0} {1}\" 不匹配 \"extends {2}\" 子句。", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc \"@{0}\" 未附加到类。", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc \"...\" 可能仅出现在签名的最后一个参数中。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc \"@param\" 标记具有名称 \"{0}\",但不存在具有该名称的参数。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc \"@param\" 标记的名称为“{0}”,但该名称没有参数。如果它为数组类型,将匹配 \"arguments\"。", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef 可以转换为 TypeScript 类型。", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc \"@typedef\" 标记应具有类型注释,或其后跟有 \"@property\" 或 \"@member\" 标记。", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedef 可以转换为 TypeScript 类型。", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc 类型只能在文档注释内部使用。", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc 类型可能会移到 TypeScript 类型。", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "只能为 JSX 属性分配非空“表达式”。", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "包含类型定义来源的文件夹列表。", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "根文件夹列表,其组合内容表示在运行时的项目结构。", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "正在从根目录“{1}”加载“{0}”,候选位置“{2}”。", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "正在从 \"node_modules\" 文件夹加载模块“{0}”,目标文件类型: {1}。", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "正在将模块作为文件/文件夹进行加载,候选模块位置“{0}”,目标文件类型: {1}。", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "正在从 \"node_modules\" 文件夹加载模块“{0}”,目标文件类型“{1}”。", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "正在将模块作为文件/文件夹进行加载,候选模块位置“{0}”,目标文件类型“{1}”。", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "区域设置必须采用 <语言> 或 <语言>-<区域> 形式。例如“{0}”或“{1}”。", "Log_paths_used_during_the_moduleResolution_process_6706": "在 “moduleResolution” 进程期间使用的日志路径。", "Longest_matching_prefix_for_0_is_1_6108": "“{0}”的最长匹配前缀为“{1}”。", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "使 keyof 仅返回字符串,而不是字符串、数字或符号。旧版选项。", "Make_super_call_the_first_statement_in_the_constructor_90002": "在构造函数中,使 \"super()\" 调用第一个语句", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "映射的对象类型隐式地含有 \"any\" 模板类型。", - "Mark_array_literal_as_const_90070": "将数组文字标记为常量", "Matched_0_condition_1_6403": "匹配的“{0}”条件“{1}”。", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "默认情况下匹配包括模式 “**/*”", "Matched_by_include_pattern_0_in_1_1407": "通过在 \"{1}\" 中的包含模式 \"{0}\" 匹配", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "方法“{0}”不能具有实现,因为它标记为抽象。", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "导出接口的方法“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "导出接口的方法“{0}”具有或正在使用专用名称“{1}”。", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "方法必须具有带有 --isolatedDeclarations 的显式返回类型注释。", "Method_not_implemented_95158": "方法未实现。", "Modifiers_cannot_appear_here_1184": "修饰符不能出现在此处。", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "模块 \"{0}\" 只能在使用 \"{1}\" 标志时进行默认导入", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "模块 \"{0}\" 没有导出的成员 \"{1}\"。你是想改用 \"import {1} from {0}\" 吗?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "模块“{0}”被具有相同名称的局部声明隐藏。", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "模块“{0}”使用 \"export =\" 且无法与 \"export *\" 一起使用。", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "模块“{0}”解析为“{1}”中声明的环境模块,因为未修改此文件。", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "模块“{0}”解析为文件“{1}”中本地声明的环境模块。", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "模块“{0}”已解析为“{1}”,但未设置“--allowArbitraryExtensions”。", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "模块“{0}”已解析为“{1}”,但尚未设置 \"--jsx\"。", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "模块 \"{0}\" 已解析为 \"{1}\",但未使用 \"--resolveJsonModule\"。", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "模块声明名称只能使用 ' 或 \" 引用字符串。", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "使用 \"rootDirs\" 的模块解析失败。", "Modules_6244": "模块", "Move_labeled_tuple_element_modifiers_to_labels_95117": "将已标记的元组元素修饰符移至标签", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "将默认导出中的表达式移动到变量,并向其添加类型注释。", "Move_to_a_new_file_95049": "移动到新的文件", - "Move_to_file_95178": "移动到文件", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "不允许使用多个连续的数字分隔符。", "Multiple_constructor_implementations_are_not_allowed_2392": "不允许存在多个构造函数实现。", "NEWLINE_6061": "换行符", "Name_is_not_valid_95136": "名称无效", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "命名捕获组仅在面向“ES2018”或更高版本时可用。", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "名称相同的命名捕获组必须彼此排斥。", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "当 ‘module’ 设置为 ‘{0}’ 时,不允许从 JSON 文件到 ECMAScript 模块中的命名导入。", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "“{1}”和“{2}”类型的命名属性“{0}”不完全相同。", "Namespace_0_has_no_exported_member_1_2694": "命名空间“{0}”没有已导出的成员“{1}”。", "Namespace_must_be_given_a_name_1437": "必须为命名空间指定名称。", "Namespace_name_cannot_be_0_2819": "命名空间名称不能为“{0}”。", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "启用“{0}”时,全局脚本文件中不允许使用命名空间。如果此文件不是全局脚本,请将“moduleDetection”设置为“force”或添加空的“export {}”语句。", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "修饰器和修饰符都不能应用于“this”参数。", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "没有任何基构造函数具有指定数量的类型参数。", "No_constituent_of_type_0_is_callable_2755": "不可调用 \"{0}\" 类型的任何组成部分。", "No_constituent_of_type_0_is_constructable_2759": "不可构造 \"{0}\" 类型的任何组成部分。", @@ -1083,19 +969,14 @@ "No_overload_matches_this_call_2769": "没有与此调用匹配的重载。", "No_type_could_be_extracted_from_this_type_node_95134": "无法从该类型节点中提取任何类型", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "速记属性 \"{0}\" 的范围内不存在任何值。请声明一个值或提供一个初始值设定项。", - "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象类“{0}”不会实现继承自“{2}”类的抽象成员 {1}。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "非抽象类“{0}”缺少“{1}”的以下成员的实现: {2}。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "非抽象类“{0}”缺少“{1}”的以下成员的实现: {2} 和 {3} 等。", + "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象类“{0}”不会实现继承自“{2}”类的抽象成员“{1}”。", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "非抽象类表达式不会实现继承自“{1}”类的抽象成员“{0}”。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "非抽象类表达式缺少“{0}”的以下成员的实现: {1}。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "非抽象类表达式缺少“{0}”的以下成员的实现: {1} 和 {2} 等。", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "非 null 断言只能在 TypeScript 文件中使用。", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "未设置 \"baseUrl\" 时,不允许使用非相对路径。是否忘记了前导 \"./\"?", "Non_simple_parameter_declared_here_1348": "此处声明了非简单参数。", "Not_all_code_paths_return_a_value_7030": "并非所有代码路径都返回值。", "Not_all_constituents_of_type_0_are_callable_2756": "\"{0}\" 类型的部分要素不可调用。", "Not_all_constituents_of_type_0_are_constructable_2760": "\"{0}\" 类型的部分要素不可构造。", - "Numbers_out_of_order_in_quantifier_1506": "数字在限定符中顺序不对。", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "绝对值大于或等于 2^53 的数值文本过大,无法用整数准确表示。", "Numeric_separators_are_not_allowed_here_6188": "此处不允许使用数字分隔符。", "Object_is_of_type_unknown_2571": "对象的类型为 \"unknown\"。", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "对象字面量只能指定已知属性,并且“{0}”不在类型“{1}”中。", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "对象字面量只能指定已知的属性,但“{0}”中不存在类型“{1}”。是否要写入 {2}?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "对象字面量的属性“{0}”隐式含有“{1}”类型。", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "无法使用 --isolatedDeclarations 推断包含速记属性的对象。", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "无法使用 --isolatedDeclarations 推断包含传播赋值的对象。", "Octal_digit_expected_1178": "需要八进制数字。", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "字符类中不允许使用八进制转义序列和反向引用。如果这是转义序列,请改用语法“{0}”。", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "不允许使用八进制转义序列。请使用语法“{0}”。", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "不允许使用八进制文字。请使用语法“{0}”。", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "“{0}.{1}”的一个值是字符串“{2}”,另一个值被假定为未知数值。", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "八进制文本类型必须使用 ES2015 语法。请使用语法“{0}”。", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "枚举成员初始值设定项中不允许有八进制文本。请使用语法“{0}”。", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "严格模式下不允许使用八进制文本。", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "当面向 ECMAScript 5 及更高版本时,不能使用八进制文本。请使用语法“{0}”。", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "\"for...in\" 语句中只允许单个变量声明。", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "\"for...of\" 语句中只允许单个变量声明。", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "使用 \"new\" 关键字只能调用 void 函数。", "Only_ambient_modules_can_use_quoted_names_1035": "仅环境模块可使用带引号的名称。", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "--{0} 旁仅支持 \"amd\" 和 \"system\" 模块。", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "只能使用 --isolatedDeclarations 推断常量数组。", "Only_emit_d_ts_declaration_files_6014": "仅发出 \".d.ts\" 声明文件。 ", + "Only_named_exports_may_use_export_type_1383": "只有已命名的导出可使用“导出类型”。", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "只有数字枚举可具有计算成员,但此表达式的类型为“{0}”。如果不需要全面性检查,请考虑改用对象文本。", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "仅输出 d.ts 文件,而不输出 JavaScript 文件。", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "通过 \"super\" 关键字只能访问基类的公共方法和受保护方法。", "Operator_0_cannot_be_applied_to_type_1_2736": "运算符 \"{0}\" 不能应用于类型 \"{1}\"。", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "运算符“{0}”不能应用于类型“{1}”和“{2}”。", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "运算符不得混合在字符类中。改为将其包装在嵌套类中。", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "在编辑时选择项目退出多项目引用检查。", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "选项“{0}={1}”已删除。请从配置中删除它。", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "选项“{0}={1}”已弃用,并将停止在 TypeScript {2} 中运行。指定 compilerOption“ignoreDeprecations”:“{3}”以使此错误静音。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "选项“{0}”只能在 \"tsconfig.json\" 文件中指定,或者在命令行上设置为 \"false\" 或 \"null\"。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "选项“{0}”只能在 \"tsconfig.json\" 文件中指定或在命令行上设置为 \"null\"。", - "Option_0_can_only_be_specified_on_command_line_6266": "选项“{0}”只能在命令行上指定。", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "仅当提供了选项 \"--inlineSourceMap\" 或选项 \"--sourceMap\" 时,才能使用选项“{0}”。", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "只有在“moduleResolution”设置为“node16”、“nodenext”或“bundler”时,才能使用选项“{0}”。", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "只有在“module”设置为“preserve”或“es2015”或更高版本时,才能使用选项“{0}”。", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "选项 \"jsx\" 为“{1}”时,不能指定选项“{0}”。", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "选项 \"target\" 为 \"ES3\" 时,不能指定选项 \"{0}\"。", "Option_0_cannot_be_specified_with_option_1_5053": "选项“{0}”不能与选项“{1}”同时指定。", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "无法在不指定选项“{1}”的情况下指定选项“{0}”。", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "无法在不指定选项 {1} 或选项 {2} 的情况下指定选项 {0}。", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "选项“{0}”已删除。请从配置中删除它。", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "选项“{0}”已弃用,并将停止在 TypeScript {1} 中运行。指定 compilerOption“ignoreDeprecations”:“{2}”以使此错误静音。", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "选项“{0}”是冗余选项,不能与选项“{1}”同时指定。", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "只有在设置“noEmit”或“emitDeclarationOnly”时,才能使用选项“allowImportingTsExtensions”。", "Option_build_must_be_the_first_command_line_argument_6369": "选项 '--build' 必须是第一个命令行参数。", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "选项 “--incremental” 只能使用 tsconfig 指定,在发出到单个文件时指定,或在指定了选项 “--tsBuildInfoFile” 时指定。", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "选项 \"isolatedModules\" 只可在提供了选项 \"--module\" 或者选项 \"target\" 是 \"ES2015\" 或更高版本时使用。", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "当选项“module”设置为“{1}”时,选项“moduleResolution”必须设置为“{0}”(或保留为未指定)。", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "当选项“moduleResolution”设置为“{1}”时,选项“module”必须设置为“{0}”。", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "启用“{0}”时,无法禁用选项“preserveConstEnums”。", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "启用 \"isolatedModules\" 时,无法禁用选项 \"preserveConstEnums\"。", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "选项 \"preserveValueImports\" 只能在 \"module\" 设置为 \"es2015\" 或更高版本时使用。", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "选项 \"project\" 在命令行上不能与源文件混合使用。", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "当“moduleResolution”设置为“classic”时,无法指定选项“--resolveJsonModule”。", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "当“module”设置为“none”、“system”或“umd”时,无法指定选项“--resolveJsonModule”。", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "当“module”设置为“UMD”、“AMD”或“System”时,不能使用选项“verbatimModuleSyntax”。", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "仅当模块代码生成为 \"commonjs\"、\"amd\"、\"es2015\" 或 \"esNext\" 时,才能指定选项 \"--resolveJsonModule\"。", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "在没有 \"node\" 模块解析策略的情况下,无法指定选项 \"-resolveJsonModule\"。", "Options_0_and_1_cannot_be_combined_6370": "选项“{0}”与“{1}”不能组合在一起。", "Options_Colon_6027": "选项:", "Output_Formatting_6256": "输出格式设置", "Output_compiler_performance_information_after_building_6615": "生成后输出编译器性能信息。", "Output_directory_for_generated_declaration_files_6166": "已生成声明文件的输出目录。", + "Output_file_0_from_project_1_does_not_exist_6309": "来自项目“{1}”的输出文件“{0}”不存在", "Output_file_0_has_not_been_built_from_source_file_1_6305": "未从源文件“{1}”生成输出文件“{0}”。", "Output_from_referenced_project_0_included_because_1_specified_1411": "由于指定了 \"{1}\",因此包含了引用的项目 \"{0}\" 的输出", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "由于已将 \"--module\" 指定为 \"none\",因此包含了引用的项目 \"{0}\" 的输出", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "应为参数声明。", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "参数具有名称,但不具有类型。你是想使用 \"{0}: {1}\" 吗?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "参数修饰符只能在 TypeScript 文件中使用。", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "参数必须具有带有 --isolatedDeclarations 的显式类型注释。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "导出类中的公共 setter“{0}”的参数类型具有或正在使用私有模块“{2}”中的名称“{1}”。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "导出类中的公共 setter“{0}”的参数类型具有或正在使用专用名称“{1}”。", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "导出类中的公共静态 setter“{0}”的参数类型具有或正在使用私有模块“{2}”中的名称“{1}”。", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "编译后打印已发出文件的名称。", "Print_this_message_6017": "打印此消息。", "Private_accessor_was_defined_without_a_getter_2806": "定义了专用访问器,但没有 Getter。", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "必须在封闭类中声明私有字段“{0}”。", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "不允许在变量声明中使用专用标识符。", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "不允许在类主体之外使用专用标识符。", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "专用标识符仅允许在类主体中使用,并且只能用作类成员声明的一部分、属性访问或用在 \"in\" 表达式的左侧", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "专用标识符仅在面向 ECMAScript 2015 和更高版本时可用。", "Private_identifiers_cannot_be_used_as_parameters_18009": "不能将专用标识符用作参数。", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "不能在类型参数上访问专用或受保护的成员 \"{0}\"。", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "无法生成项目“{0}”,因为其依赖项“{1}”有错误", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "无法生成项目 \"{0}\" ,因为未生成其依赖项 \"{1}\"", "Project_0_is_being_forcibly_rebuilt_6388": "正在强制重新生成项目“{0}”", - "Project_0_is_out_of_date_because_1_6420": "由于 {1},项目“{0}”已过期。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "由于 buildinfo 文件“{1}”指示文件“{2}”曾是编译的根文件,但不再是了,因此项目“{0}”已过期。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "由于 buildinfo 文件“{1}”指示程序需要报告错误,因此项目“{0}”已过期。", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "项目“{0}”已过期,因为 buildinfo 文件“{1}”指示某些更改未发出", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "由于 buildinfo 文件“{1}”指示 compilerOptions 中存在更改,因此项目“{0}”已过期", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "项目“{0}”已过期,因为其依赖项“{1}”已过期", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "项目“{0}”已过期,因为输出“{1}”早于输入“{2}”", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "项目“{0}”已过期,因为输出文件“{1}”不存在", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "项目 \"{0}\" 已过期,因为其输出是使用与当前版本 \"{2}\" 不同的版本 \"{1}\" 生成的", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "项目 \"{0}\" 已过期,因为其依赖项 \"{1}\" 的输出已更改", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "项目“{0}”已过期,因为读取文件“{1}”时出错", "Project_0_is_up_to_date_6361": "“{0}”项目已是最新", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "项目“{0}”是最新的,因为最新的输入“{1}”早于输出“{2}”", @@ -1252,7 +1117,7 @@ "Projects_6255": "项目", "Projects_in_this_build_Colon_0_6355": "此生成中的项目: {0}", "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "只有在面向 ECMAScript 2015 及更高版本时,才可使用带有 \"accessor\" 修饰符的属性。", - "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表达式,因为它标记为摘要。", + "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "属性“{0}”不能具有初始化表杰式,因为它标记为摘要。", "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "属性“{0}”来自索引签名,因此必须使用[“{0}”]访问它。", "Property_0_does_not_exist_on_type_1_2339": "类型“{1}”上不存在属性“{0}”。", "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551": "属性“{0}”在类型“{1}”上不存在。你是否指的是“{2}”?", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "属性 \"{0}\" 在其初始化前已被使用。", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "类型“{1}”上不存在属性“{0}”。你是否是指“{2}”?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX 展开特性的“{0}”属性不能分配给目标属性。", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "导出匿名类类型的属性“{0}”可能不是私有或受保护的属性。", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "导出类表达式的属性“{0}”可能不是私密或受保护的属性。", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "导出接口的属性“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "导出接口的属性“{0}”具有或正在使用专用名称“{1}”。", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "类型“{1}”的属性“{0}”不能赋给“{2}”索引类型“{3}”。", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "属性 \"{0}\" 将覆盖 \"{1}\" 中的基属性。如果是有意的,请添加初始值设定项。否则,请添加 \"declare\" 修饰符或删除多余的声明。", "Property_assignment_expected_1136": "应为属性分配。", "Property_destructuring_pattern_expected_1180": "应为属性析构模式。", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "属性必须具有带有 --isolatedDeclarations 的显式类型注释。", "Property_or_signature_expected_1131": "应为属性或签名。", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "属性值只能是字符串、数字、\"true\"、\"false\"、\"null\"、对象或数组等类型的字面量。", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "以“ES5”设为目标时,对“for-of”、传播和析构中的可迭代项提供完全支持。", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "以 \"ES5\" 或 \"ES3\" 设为目标时,对 \"for-of\"、传播和析构中的可迭代项提供完全支持。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "导出类的公共方法“{0}”具有或正在使用外部模块“{2}”中的名称“{1}”,但不能为其命名。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "导出类的公共方法“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "导出类的公共方法“{0}”具有或正在使用专用名称“{1}”。", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "在未读取函数参数时引发错误。", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "对具有隐式 \"any\" 类型的表达式和声明引发错误。", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "在带隐式“any\" 类型的 \"this\" 表达式上引发错误。", - "Range_out_of_order_in_character_class_1517": "字符类中的范围顺序不对。", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "启用“{0}”时重新导出类型需要使用“导出类型”。", - "React_components_cannot_include_JSX_namespace_names_2639": "React 组件不能包含 JSX 命名空间名称", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "提供 \"--isolatedModules\" 标志时,需要使用 \"export type\" 才能重新导出类型。", "Redirect_output_structure_to_the_directory_6006": "将输出结构重定向到目录。", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "减少 TypeScript 自动加载的项目数。", "Referenced_project_0_may_not_disable_emit_6310": "引用的项目“{0}”可能不会禁用发出。", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "引用的项目“{0}”必须拥有设置 \"composite\": true。", "Referenced_via_0_from_file_1_1400": "通过 \"{0}\" 从文件 \"{1}\" 引用", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "当 \"--moduleResolution\" 为 \"node16\" 或 \"nodenext\" 时,相对导入路径需要 ECMAScript 导入中的显式文件扩展名。请考虑将扩展名添加到导入路径中。", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "当“--moduleResolution”为“node16” 或“nodenext”时,相对导入路径需要 ECMAScript 导入中的显式文件扩展名。你是想使用 \"{0}\" 吗?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "当 “--moduleResolution” 为 “node16” 或 “nodenext” 时,相对导入路径需要 EcmaScript 导入中的显式文件扩展名。请考虑将扩展名添加到导入路径中。", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "当 “--moduleResolution” 为 “node16” 或 “nodenext” 时,相对导入路径需要 EcmaScript 导入中的显式文件扩展名。你是否指的是“{0}”?", "Remove_a_list_of_directories_from_the_watch_process_6628": "从监视进程中删除目录列表。", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "从监视模式的处理中删除文件列表。", "Remove_all_unnecessary_override_modifiers_95163": "删除所有不必要的 \"override\" 修饰符", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": ".js 文件中的报表出错。", "Report_errors_on_unused_locals_6134": "报告未使用的局部变量上的错误。", "Report_errors_on_unused_parameters_6135": "报告未使用的参数上的错误。", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "导出时需要足够的注释,以便其他工具可以轻松生成声明文件。", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "要求索引签名中有未声明的属性以使用元素访问。", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "所需的类型参数可能不遵循可选类型参数。", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "在位置“{1}”的缓存中找到模块“{0}”的解析。", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "在位置“{1}”的缓存中找到类型引用指令“{0}”的解析。", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "解析非相对名称失败;正在尝试禁用新式节点解析功能,以查看 npm 库是否需要配置更新。", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "解析非相对名称失败;正在尝试“--moduleResolution 捆绑程序”,以查看项目是否可能需要配置更新。", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只将 \"keyof\" 解析为字符串值的属性名称(不含数字或符号)。", - "Resolved_under_condition_0_6414": "已在条件“{0}”下解析。", "Resolving_in_0_mode_with_conditions_1_6402": "正在 {0} 模式下解析,条件为 {1}。", "Resolving_module_0_from_1_6086": "======== 正在从“{1}”解析模块“{0}”。========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "正在相对于基 URL“{1}”-“{2}”解析模块名“{0}”。", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 正在解析类型引用指令“{0}”,包含文件“{1}”,未设置根目录。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 正在解析类型引用指令“{0}”,未设置包含文件,根目录“{1}”。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 正在解析类型引用指令“{0}”,未设置包含文件,未设置根目录。========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "正在解析指定自定义 typeRoots 的程序的类型引用指令,跳过在“node_modules”文件夹中查找。", "Resolving_with_primary_search_path_0_6121": "正在使用主搜索路径“{0}”解析。", "Rest_parameter_0_implicitly_has_an_any_type_7019": "Rest 参数“{0}”隐式具有 \"any[]\" 类型。", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "Rest 参数 \"{0}\" 隐式具有 \"any[]\" 类型,但可从用法中推断出更好的类型。", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "正在重用旧程序“{1}”中类型引用指令“{0}”的解析,已成功将其解析为包 ID 为“{3}”的“{2}”。", "Rewrite_all_as_indexed_access_types_95034": "全部重写为索引访问类型", "Rewrite_as_the_indexed_access_type_0_90026": "重写为索引访问类型“{0}”", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "将相对导入路径中的 ‘.ts’、‘.tsx’、‘.mts’ 和 ‘.cts’ 文件扩展名改写为其在输出文件中的 JavaScript 等效项。", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "由于左操作数永远不会为空,因此 ?? 的右操作数无法访问。", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "无法确定根目录,正在跳过主搜索路径。", "Root_file_specified_for_compilation_1427": "为编译指定的根文件", "STRATEGY_6039": "策略", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "保存 .tsbuildinfo 文件以允许项目增量编译。", "Saw_non_matching_condition_0_6405": "看到了不匹配的条件“{0}”。", "Scoped_package_detected_looking_in_0_6182": "检测到范围包,请在“{0}”中查看", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "正在搜索所有上级 node_modules 目录以查找回退扩展: {0}。", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "正在搜索所有上级 node_modules 目录以查找首选扩展: {0}。", "Selection_is_not_a_valid_statement_or_statements_95155": "所选内容不是有效的语句", "Selection_is_not_a_valid_type_node_95133": "所选内容不是有效的类型节点", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "为发出的 JavaScript 设置 JavaScript 语言版本并包含兼容的库声明。", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "显示详细的诊断信息。", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "显示将生成(如果指定有 '--clean',则删除)什么", "Signature_0_must_be_a_type_predicate_1224": "签名“{0}”必须为类型谓词。", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "签名声明只能在 TypeScript 文件中使用。", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "跳过在上游项目出错时生成下游项目。", "Skip_type_checking_all_d_ts_files_6693": "跳过对所有 .d.ts 文件的类型检查。", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "跳过 TypeScript 附带的类型检查 .d.ts 文件。", "Skip_type_checking_of_declaration_files_6012": "跳过声明文件的类型检查。", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "正在跳过看起来像绝对 URI、目标文件类型的模块“{0}”: {1}。", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "正在跳过项目“{0}”的生成,因为其依赖项“{1}”有错误", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "即将跳过项目 \"{0}\" 的生成,因为未生成其依赖项 \"{1}\"", "Source_from_referenced_project_0_included_because_1_specified_1414": "由于指定了 \"{1}\",因此包含了引用的项目 \"{0}\" 的源", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "由于已将 \"--module\" 指定为 \"none\",因此包含了引用的项目 \"{0}\" 的源", "Source_has_0_element_s_but_target_allows_only_1_2619": "源具有 {0} 个元素,但目标仅允许 {1} 个。", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "指定 TypeScript 监视模式的工作方式。", "Specify_library_files_to_be_included_in_the_compilation_6079": "指定要在编译中包括的库文件。", "Specify_module_code_generation_6016": "指定模块代码生成。", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "指定模块解析策略: \"node\" (Node.js)或 \"classic\" (TypeScript pre-1.6)。", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "指定使用 “jsx: react-jsx*” 时用于导入 JSX 中心函数的模块说明符。", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "指定多个行为类似于 “./node_modules/@types” 的文件夹。", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "指定对从中继承设置的基本配置文件的一个或多个路径或节点模块引用。", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "静态成员不能引用类类型参数。", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "静态属性“{0}”与构造函数“{1}”的内置属性函数“{0}”冲突。", "String_literal_expected_1141": "应为字符串字面量。", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "当“--module”标志设置为“es2015”或“es2020”时,不支持字符串文本导入和导出名称。", "String_literal_with_double_quotes_expected_1327": "应为带双引号的字符串字面量。", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "使用颜色和上下文风格化错误和消息(实验)。", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "当有减号时,子空间标志必须存在。", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "后续属性声明必须属于同一类型。属性“{0}”的类型必须为“{1}”,但此处却为类型“{2}”。", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "后续变量声明必须属于同一类型。变量“{0}”必须属于类型“{1}”,但此处却为类型“{2}”。", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "模式“{1}”的替换“{0}”类型不正确,应为 \"string\",实际为“{2}”。", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "可选链中不允许使用带有标记的模板表达式。", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "目标仅允许 {0} 个元素,但源中的元素可能更多。", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "目标仅允许 {0} 个元素,但源中的元素可能不够。", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "目标签名提供的自变量太少。预期为 {0} 个或更多,但实际为 {1} 个。", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "\"{0}\" 修饰符只能在 TypeScript 文件中使用。", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "“{0}”运算符不能应用于类型 \"symbol\"。", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "“{0}”运算符不允许用于布尔类型。请考虑改用“{1}”。", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "异步迭代器的 \"{0}\" 属性必须是方法。", "The_0_property_of_an_iterator_must_be_a_method_2767": "迭代器的 \"{0}\" 属性必须是方法。", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "\"Object\" 类型可分配给极少数其他类型。是否想要改用“任意”类型?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "不能同时设置 Unicode (u) 标志和 Unicode Sets (v) 标志。", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "无法在 ES5 中的箭头函数中引用 \"arguments\" 对象。请考虑使用标准函数表达式。", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "无法在 ES5 中的异步函数或方法中引用 \"arguments\" 对象。请考虑使用标准函数或方法。", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "ES3 和 ES5 中的箭头函数不能引用 \"arguments\" 对象。请考虑使用标准函数表达式。", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "ES3 和 ES5 中的异步函数或方法不能引用“参数”对象。请考虑使用标准函数或方法。", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "\"if\" 语句的正文不能为空语句。", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "针对此实现的调用已成功,但重载的实现签名在外部不可见。", "The_character_set_of_the_input_files_6163": "输入文件的字符集。", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全局类型 \"JSX.{0}\" 不可具有多个属性。", "The_implementation_signature_is_declared_here_2750": "在此处声明实现签名。", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "将生成到 CommonJS 输出的文件中不允许 'import.meta' 元属性。", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "仅当“--module”选项为“es2020”、“es2022”、“esnext”、“system”、“node16”、“node18”或“nodenext”时,才允许使用“import.meta”元属性。", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "仅当 “--module” 选项为 “es2020”、“es2022”、“esnext”、“system”、“node16” 或 “nodenext” 时,才允许使用 “import.meta” 元属性。", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "如果没有引用 \"{1}\",则无法命名 \"{0}\" 的推断类型。这很可能不可移植。需要类型注释。", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "推断类型“{0}”引用的类型具有无法简单序列化的循环结构。必须具有类型注释。", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "“{0}”的推断类型引用不可访问的“{1}”类型。需要类型批注。", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "此节点的推断类型超出编译器将序列化的最大长度。需要显式类型注释。", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "\"using\" 声明的初始值设定项必须是具有 \"[Symbol.dispose]()\" 方法的对象,或为 \"null\" 或 \"undefined\"。", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "\"await using\" 声明的初始值设定项必须是具有 \"[Symbol.asyncDispose]()\" 或 \"[Symbol.dispose]5D;()\" 方法的对象,或者是 \"null\" 或 \"undefined\"。", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "由于属性“{1}”存在于多个要素中,但在某些要素中是专用属性,因此已将交集“{0}”缩减为“绝不”。", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "由于属性“{1}”在某些要素中具有存在冲突的类型,因此已将交集“{0}”缩减为“绝不”。", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "\"intrinsic\" 关键字只能用于声明编译器提供的内部类型。", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "最后一个重载给出了以下错误。", "The_last_overload_is_declared_here_2771": "在此处声明最后一个重载。", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "\"for...in\" 语句的左侧不能为析构模式。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "\"for...in\" 语句的左侧不能是 \"using\" 声明。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "\"for...in\" 语句的左侧不能是 \"await using\" 声明。", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "\"for...in\" 语句的左侧不能使用类型批注。", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "\"for…in\" 语句的左侧不能是可选属性访问。", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "\"for...in\" 语句的左侧必须是变量或属性访问。", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算术运算左侧必须是 \"any\"、\"number\"、\"bigint\" 或枚举类型。", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "赋值表达式的左侧不能是可选属性访问。", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "赋值表达式的左侧必须是变量或属性访问。", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "\"instanceof\" 表达式的左侧必须可分配给右侧 \"[Symbol.hasInstance]\" 方法的第一个自变量。", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "\"instanceof\" 表达式左侧必须是 \"any\" 类型、对象类型或类型参数。", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "向用户显示消息时所用的区域设置(例如,\"en-us\")", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "用于搜索 node_modules 和加载 JavaScript 文件的最大依赖项深度。", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "项目根不明确,但需要解析文件“{1}”中的导出映射项“{0}”。提供 `rootDir` 编译器选项以消除歧义。", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "项目根不明确,但仍需要解析文件“{1}”中的导入映射项“{0}”。提供 `rootDir` 编译器选项以消除歧义。", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "无法在此类中的类型 \"{1}\" 上访问属性 \"{0}\",因为具有相同拼写的另一个专用标识符隐藏了它。", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "\"Get\" 访问器的返回类型必须可分配给其 \"Set\" 访问器类型", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "参数修饰器函数的返回类型必须为 \"void\" 或 \"any\"。", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "属性修饰器函数的返回类型必须为 \"void\" 或 \"any\"。", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "异步函数的返回类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。 ", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "异步函数或方法的返回类型必须为全局 Promise 类型。", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "异步函数或方法的返回类型必须为全局 Promise 类型。你是否是指写入 \"Promise<{0}>\"?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "\"for...in\" 语句右侧必须是 \"any\" 类型、对象类型或类型参数,但此处的类型为“{0}”。", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算术运算右侧必须是 \"any\"、\"number\"、\"bigint\" 或枚举类型。", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "\"instanceof\" 表达式的右侧必须是类型 \"any\"、类、函数或其他可分配给 \"Function\" 接口类型的类型,或者是具有 \"Symbol.hasInstance\" 方法的对象类型。", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "\"instanceof\" 表达式的右侧不能是实例化表达式。", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "\"instanceof\" 表达式的右侧必须属于类型 \"any\",或属于可分配给 \"Function\" 接口类型的类型。", "The_root_value_of_a_0_file_must_be_an_object_5092": "“{0}”文件的根值必须是一个对象。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "运行时将使用 {1} 个自变量调用修饰器,但修饰器需要 {0} 个。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "运行时将使用 {1} 个自变量调用修饰器,但修饰器至少需要 {0} 个。", "The_shadowing_declaration_of_0_is_defined_here_18017": "在此处定义了“{0}”的阴影声明", "The_signature_0_of_1_is_deprecated_6387": "“{1}”的签名“{0}”已弃用。", "The_specified_path_does_not_exist_Colon_0_5058": "指定的路径不存在:“{0}”。", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "在将 “export type” 用在其导出语句上时,不能在已命名导出上使用 “type” 修饰符。", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "在将 “import type” 用在其导入语句上时,不能在已命名导入上使用 “type” 修饰符。。", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "函数声明的类型必须与函数的签名匹配。", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "如果没有“resolution-mode”断言(这是不稳定的功能),则无法命名此表达式的类型。请使用夜间 TypeScript 来消除此错误。请尝试使用“npm install -D typescript@next”进行更新。", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "无法序列化此节点的类型,因为无法序列化其属性“{0}”。", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "异步迭代器的 \"{0}()\" 方法返回的类型必须是具有 \"value\" 属性的类型的承诺。", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "迭代器的 \"{0}()\" 方法返回的类型必须具有 \"value\" 属性。", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "\"for...in\" 语句的变量声明不能有初始化表达式。", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "\"for...of\" 语句的变量声明不能有初始化表达式。", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "不支持 \"with\" 语句。\"with\" 程序块中的所有符号都将具有类型 \"any\"。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "“{0}”处有类型,但无法在当前 \"moduleResolution\" 设置下解析此结果。请考虑更新到 \"node16\"、\"nodenext\" 或 \"bundler\"。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "“{0}”处有类型,但在遵守 package.json \"exports\" 时无法解析此结果。“{1}”库可能需要更新其 package.json 或键入。", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "此正则表达式中没有名为“{0}”的捕获组。", - "There_is_nothing_available_for_repetition_1507": "没有可重复的内容。", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "此 JSX 标记要求 ‘{0}’ 在范围内,但找不到它。", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "此 JSX 标记要求模块路径 ‘{0}’ 存在,但找不到任何路径。请确保已安装相应包的类型。", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 标记的 \"{0}\" 属性需要 \"{1}\" 类型的子级,但提供了多个子级。", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 标记的 \"{0}\" 属性需要类型 \"{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_only_0_capturing_groups_in_this_r_1533": "此向后引用指的是一个不存在的组。此正则表达式中只有 {0} 个捕获组。", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "此二进制表达式永远不会为 null。是否缺少括号?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "不能在正则表达式中转义此字符。", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "此比较似乎是无意的,因为类型“{0}”和“{1}”没有重叠。", "This_condition_will_always_return_0_2845": "此条件将始终返回“{0}”。", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此条件将始终返回“{0}”,因为 JavaScript 按引用而不是值比较对象。", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "此条件将始终返回 true,因为此“{0}”已始终定义。", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "此条件将始终返回 true,因为始终定义了函数。你是想改为调用它吗?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "此构造函数可能会转换为类声明。", - "This_expression_is_always_nullish_2871": "此表达式始终为 null。", "This_expression_is_not_callable_2349": "此表达式不可调用。", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "此表达式是 \"get\" 访问器,因此不可调用。你想在不使用 \"()\" 的情况下使用它吗?", "This_expression_is_not_constructable_2351": "此表达式不可构造。", "This_file_already_has_a_default_export_95130": "此文件已具有默认导出", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "重写此导入路径并不安全,因为它会解析为另一个项目,并且项目的输出文件之间的相对路径与其输入文件之间的相对路径不同。", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "此导入使用 ‘{0}’ 扩展解析为输入 TypeScript 文件,但不会在发出期间重写,因为它不是相对路径。", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "此导入从不用作值,必须使用 \"import type\" ,因为 \"importsNotUsedAsValues\" 设置为 \"error\"。", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "这是正在扩充的声明。请考虑将扩充声明移到同一个文件中。", - "This_kind_of_expression_is_always_falsy_2873": "这种表达式的结果始终为 false。", - "This_kind_of_expression_is_always_truthy_2872": "这种表达式的结果始终为 true。", "This_may_be_converted_to_an_async_function_80006": "可将此转换为异步函数。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "此成员不能具有带 “@override” 标记的 JSDoc 注释,因为未在基类“{0}”中对其进行声明。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "此成员不能具有带 “override” 标记的 JSDoc 注释,因为未在基类“{0}”中对其进行声明。你是否指的是“{1}”?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "此成员不能具有带 “@override” 标记的 JSDoc 注释,因为所包含的类“{0}”不会扩展其他类。", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "此成员不能拥有带有 ‘@overrid’ 标记的 JSDoc 注释,因为其名称是动态的。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "此成员不能有 \"override\" 修饰符,因为它未在基类 \"{0}\" 中声明。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "此成员不能有 “override” 修饰符,因为它未在基类“{0}”中声明。你是否指的是“{1}”?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "此成员不能有 \"override\" 修饰符,因为它的包含类 \"{0}\" 不扩展其他类。", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "此成员不能具有 “override” 修饰符,因为其名称是动态的。", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "此成员必须具有带 “@override” 标记的 JSDoc 注释,因为它会替代基类“{0}”中的成员。", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "此成员必须有 \"override\" 修饰符,因为它替代基类 \"{0}\" 中的一个成员。", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "此成员必须有 \"override\" 修饰符,因为它替代基类 \"{0}\" 中声明的一个抽象方法。", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "只能通过启用 \"{0}\" 标志并引用其默认导出,使用 ECMAScript 导入/导出来引用此模块。", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "此模块是使用 “export =” 声明的,只能在使用“{0}”标志时用于默认导入。", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "可以简化此操作。此班次与 `{0} {1} {2}` 相同。", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "此重载隐式返回类型“{0}”,因为它缺少返回类型批注。", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "此重载签名与其实现签名不兼容。", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "此参数不允许与 \"use strict\" 指令一起使用。", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此参数属性必须具有带 “@override” 标记的 JSDoc 注释,因为它将替代基类“{0}”中的成员。", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "此参数属性必须具有 “override” 修饰符,因为它会替代基类“{0}”中的成员。", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "此正则表达式标志不能在子模式内切换。", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "此正则表达式标志仅在面向“{0}”或更高版本时可用。", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "重写此相对导入路径并不安全,因为它看起来像文件名,但实际上解析为 ‘{0}’。", "This_spread_always_overwrites_this_property_2785": "此扩张将始终覆盖此属性。", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "启用 “erasableSyntaxOnly” 时,不允许使用此语法。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此语法保留在扩展名为 .mts 或 .cts 的文件中。请添加尾随逗号或显式约束。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此语法保留在扩展名为 .mts 或 .cts 的文件中。请改用 `as` 表达式。", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "此语法需要一个导入的帮助程序,但找不到模块“{0}”。", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "若要将此文件转换为 ECMAScript 模块,请将其文件扩展名更改为“{0}”,或将字段“\"type\": \"module\"”添加到“{1}”。", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "若要将此文件转换为 ECMAScript 模块,请将其文件扩展名更改为“{0}”,或者使用“{ \"type\": \"module\" }”创建本地 package.json 文件。", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "若要将此文件转换为 ECMAScript 模块,请使用“{ \"type\": \"module\" }”创建本地 package.json 文件。", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”时,且“target”选项设置为“es2017”或更高版本时,才允许使用顶级“await”表达式。", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”且“target”选项设置为“es2017”或更高时,才允许使用顶级“await using”语句。", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "仅当 “module” 选项设置为 “es2022”、“esnext”、“system”、“node16” 或 “nodenext”,且 “target” 选项设置为 “es2017” 或更高版本时,才允许使用顶级 “await” 表达式。", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 文件中的顶级声明必须以 \"declare\" 或 \"export\" 修饰符开头。", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "仅当“module”选项设置为“es2022”、“esnext”、“system”、“node16”、“node18”、“nodenext”或“preserve”时,且“target”选项设置为“es2017”或更高版本时,才允许使用顶级“for await”循环。", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "仅当 “module” 选项设置为 “es2022”、“esnext”、“system”、“node16” 或 “nodenext”,且 “target” 选项设置为 “es2017” 或更高版本时,才允许使用顶级 “for await” 循环。", "Trailing_comma_not_allowed_1009": "不允许使用尾随逗号。", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "将每个文件转换为单独的模块(类似 \"ts.transpileModule\")。", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "尝试使用 `npm i --save-dev @types/{1}` (如果存在),或者添加一个包含 `declare module '{0}';` 的新声明(.d.ts)文件", "Trying_other_entries_in_rootDirs_6110": "正在尝试 \"rootDirs\" 中的其他条目。", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "正在尝试替换“{0}”,候选模块位置:“{1}”。", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "元组成员必须全部具有或全部不具有名称。", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "长度为 \"{1}\" 的元组类型 \"{0}\" 在索引 \"{2}\" 处没有元素。", "Tuple_type_arguments_circularly_reference_themselves_4110": "元组类型参数循环引用自身。", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "只有在使用 \"--downlevelIteration\" 标志或 \"--target\" 为 \"es2015\" 或更高版本时,才能循环访问类型“{0}”。", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "类型“{0}”没有匹配的类型“{1}”的索引签名。", "Type_0_has_no_properties_in_common_with_type_1_2559": "类型“{0}”与类型“{1}”不具有相同的属性。", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "类型“{0}”没有类型参数列表适用的签名。", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "类型“{0}”是泛型的,只能编制索引以供读取。", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "类型“{0}”缺少类型“{1}”中的以下属性: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "类型“{0}”缺少类型“{1}”的以下属性: {2} 及其他 {3} 项。", "Type_0_is_not_a_constructor_function_type_2507": "类型“{0}”不是构造函数类型。", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "类型“{0}”不是 ES5 中有效的异步函数返回类型,因为它不引用与 Promise 兼容的构造函数值。", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "类型“{0}”不是 ES5/ES3 中的有效异步函数返回类型,因为其未引用与 Promise 相符的构造函数值。", "Type_0_is_not_an_array_type_2461": "类型“{0}”不是数组类型。", "Type_0_is_not_an_array_type_or_a_string_type_2495": "类型“{0}”不是数组类型或字符串类型。", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "类型“{0}”不是数组类型或字符串类型,或者没有返回迭代器的 \"[Symbol.iterator]()\" 方法。", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "类型“{0}”不可分配给类型“{1}”。你的意思是“{2}”?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "类型“{0}”无法分配给类型“{1}”。存在具有此名称的两种不同类型,但它们是不相关的。", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "类型“{0}”不能分配给类型“{1}”,如方差批注所示。", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "根据计算枚举成员值的要求,类型“{0}”不能分配给类型“{1}”。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "类型 “{0}” 不能分配给“exactOptionalPropertyTypes: true”的类型 “{1}”。请考虑将 “undefined” 添加到目标属性的类型。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "类型 “{0}” 不能分配给“exactOptionalPropertyTypes: true”的类型 “{1}”。请考虑将 “undefined” 添加到目标类型。。", "Type_0_is_not_comparable_to_type_1_2678": "类型“{0}”不可与类型“{1}”进行比较。", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "应为类型参数。", "Type_argument_list_cannot_be_empty_1099": "类型参数列表不能为空。", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "类型参数只能在 TypeScript 文件中使用。", + "Type_arguments_cannot_be_used_here_1342": "无法在此处使用类型参数。", "Type_arguments_for_0_circularly_reference_themselves_4109": "\"{0}\" 的类型参数循环引用自身。", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "类型断言表达式只能在 TypeScript 文件中使用。", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "源中位置 {0} 的类型与目标中位置 {1} 的类型不兼容。", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "源中位置 {0} 到 {1} 的类型与目标中位置 {2} 的类型不兼容。", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "包含专用名称“{0}”的类型不能与 --isolatedDeclarations 一起使用。", "Type_declaration_files_to_be_included_in_compilation_6124": "要包含在编译中类型声明文件。", "Type_expected_1110": "应为类型。", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "类型导入断言应恰好有一个键 - \"resolution-mode\" - 值为 \"import\" 或 \"require\"。", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "类型导入属性应只有一个键 \"resolution-mode\",值为 \"import\" 或 \"require\"。", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "从 CommonJS 模块导入 ECMAScript 模块的类型导入必须具有 \"resolution-mode\" 属性。", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "类型实例化过深,且可能无限。", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "类型在其自身的 \"then\" 方法的 fulfillment 回调中被直接或间接引用。", "Type_library_referenced_via_0_from_file_1_1402": "通过 \"{0}\" 从文件 \"{1}\" 引用了库类型", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "\"yield*\" 操作数的迭代元素的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "属性“{0}”的类型在已映射的类型“{1}”中循环引用其自身。", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "异步生成器中 \"yield\" 操作数的类型必须是有效承诺,或不得包含可调用的 \"then\" 成员。", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "从 CommonJS 模块导入 ECMAScript 模块的仅类型导入必须具有 \"resolution-mode\" 属性。", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "此导入产生的类型。无法调用或构造命名空间样式的导入,这类导入将在运行时导致失败。请考虑改为使用默认导入或此处需要的导入。", "Type_parameter_0_has_a_circular_constraint_2313": "类型参数“{0}”具有循环约束。", "Type_parameter_0_has_a_circular_default_2716": "类型参数“{0}”具有循环默认值。", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "作为表达式调用时,无法解析方法修饰器的签名。", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "作为表达式调用时,无法解析参数修饰器的签名。", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "作为表达式调用时,无法解析属性修饰器的签名。", - "Undetermined_character_escape_1513": "不确定的字符转义。", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "意外的“{0}”。你是否想要使用反斜杠对其进行转义?", "Unexpected_end_of_text_1126": "文本意外结束。", "Unexpected_keyword_or_identifier_1434": "意外的关键字或标识符。", "Unexpected_token_1012": "意外的标记。", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "意外的标记。你是想使用 `{'>'}` 还是 `>`?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "意外的标记。你是想使用 `{'}'}` 还是 `}`?", "Unexpected_token_expected_1179": "意外标记。应为 \"{\"。", - "Unicode_escape_sequence_cannot_appear_here_17021": "Unicode 转义序列不能显示在此处。", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "仅当设置了 Unicode (u) 标志或 Unicode Sets (v) 标志时,Unicode 转义序列才可用。", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "仅当设置了 Unicode (u) 标志或 Unicode Sets (v) 标志时,Unicode 属性值表达式才可用。", - "Unknown_Unicode_property_name_1524": "未知的 Unicode 属性名称。", - "Unknown_Unicode_property_name_or_value_1529": "未知的 Unicode 属性名称或值。", - "Unknown_Unicode_property_value_1526": "未知的 Unicode 属性值。", "Unknown_build_option_0_5072": "未知的生成选项 \"{0}\"。", "Unknown_build_option_0_Did_you_mean_1_5077": "未知的生成选项 \"{0}\"。你是想使用 \"{1}\" 吗?", "Unknown_compiler_option_0_5023": "未知的编译器选项“{0}”。", "Unknown_compiler_option_0_Did_you_mean_1_5025": "未知的编译器选项 \"{0}\"。你是想使用 \"{1}\" 吗?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "未知的关键字或标识符。你是不是指“{0}”?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "未知的 \"excludes\" 选项。你的意思是 \"exclude\"?", - "Unknown_regular_expression_flag_1499": "未知的正则表达式标志。", "Unknown_type_acquisition_option_0_17010": "未知类型获取选项“{0}”。", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "未知的类型获取选项 \"{0}\"。你是想使用 \"{1}\" 吗?", "Unknown_watch_option_0_5078": "未知观察选项 \"{0}\"。", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "未使用的标签。", "Unused_ts_expect_error_directive_2578": "未使用的 \"@ts-expect-error\" 指令。", "Update_import_from_0_90058": "从“{0}”更新导入", - "Update_modifiers_of_0_90061": "更新“{0}”的修饰符", + "Updating_output_of_project_0_6373": "正在更新项目 \"{0}\" 的输出…", "Updating_output_timestamps_of_project_0_6359": "正在更新项目“{0}”的输出时间戳...", "Updating_unchanged_output_timestamps_of_project_0_6371": "正在更新项目 \"{0}\" 未更改的输出时间戳…", "Use_0_95174": "使用 `{0}`", - "Use_0_instead_5106": "请改用“{0}”。", "Use_Number_isNaN_in_all_conditions_95175": "在所有条件下使用 `Number.isNaN`。", "Use_element_access_for_0_95145": "对“{0}”使用元素访问", "Use_element_access_for_all_undeclared_properties_95146": "对所有未声明的属性使用元素访问。", - "Use_import_type_95180": "使用 \"import type\"", "Use_synthetic_default_member_95016": "使用综合的“默认”成员。", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "解析包导入时,请使用 package.json \"exports\" 字段。", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "解析导入时,请使用 package.json \"import\" 字段。", - "Use_type_0_95181": "使用 \"type {0}\"", "Using_0_subpath_1_with_target_2_6404": "将“{0}”子路径“{1}”与目标“{2}”一起使用", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "使用 JSX 片段需要片段工厂 ‘{0}’ 在范围内,但找不到它。", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "仅 ECMAScript 5 和更高版本支持在 \"for...of\" 语句中使用字符串。", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "使用 --build,-b 将使 tsc 的行为更像生成业务流程协调程序,而非编译器。这可用于触发生成复合项目,你可以在 {0} 详细了解这些项目", "Using_compiler_options_of_project_reference_redirect_0_6215": "使用项目引用重定向“{0}”的编译器选项。", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "应为变量声明。", "Variable_declaration_list_cannot_be_empty_1123": "变量声明列表不能为空。", "Variable_declaration_not_allowed_at_this_location_1440": "此位置不允许使用变量声明。", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "变量必须具有带有 --isolatedDeclarations 的显式类型注释。", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "具有多个声明的变量不能内联。", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "源中位置 {0} 的可变元素与目标中位置 {1} 的元素不匹配。", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "仅对象、函数、构造函数、映射类型的类型别名支持方差注释。", "Version_0_6029": "版本 {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "进行类型检查时,请考虑 “null” 和 “undefined”。", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "是否在监视模式下保留过时的控制台输出,而不是清除屏幕。", "Wrap_all_invalid_characters_in_an_expression_container_95109": "包装表达式容器中的所有无效字符", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "将所有无效的修饰器表达式括在括号中", "Wrap_all_object_literal_with_parentheses_95116": "用括号括起所有对象字面量", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "将所有没有父级的 JSX 包装在 JSX 片段中", "Wrap_in_JSX_fragment_95120": "包装在 JSX 片段中", - "Wrap_in_parentheses_95194": "用括号括起来", "Wrap_invalid_character_in_an_expression_container_95108": "包装表达式容器中的无效字符", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "用括号括起以下应为对象字面量的内容", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "你可以在 {0} 了解编译器选项的所有内容", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "“{0}”和“{1}”索引签名不兼容。", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "不能在不使用括号的情况下混用 \"{0}\" 和 \"{1}\" 操作。", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "“{0}”被指定了两次。将覆盖名为“{0}”的特性。", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "类型末尾的“{0}”不是有效的 TypeScript 语法。是否要写入“{1}”?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "类型开头的“{0}”不是有效的 TypeScript 语法。是否要写入“{1}”?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "只能通过启用 \"esModuleInterop\" 标志并使用默认导入来导入“{0}”。", "_0_can_only_be_imported_by_using_a_default_import_2595": "仅可使用默认导入来导入“{0}”。", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "只能通过使用 \"require\" 调用或启用 \"esModuleInterop\" 标志并使用默认导入来导入“{0}”。", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "只能使用 \"require\" 调用或使用默认导入来导入“{0}”。", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "仅可使用 \"import {1} = require({2})\" 或默认导入来导入“{0}”。", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "仅可使用 \"import {1} = require({2})\" 或通过启用 \"esModuleInterop\" 标志并使用默认导入来导入“{0}”。", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "无法在 \"--isolatedModules\" 下编译“{0}”,因为它被视为全局脚本文件。请添加导入、导出或空的 \"export {}\" 语句来使它成为模块。", "_0_cannot_be_used_as_a_JSX_component_2786": "“{0}”不能用作 JSX 组件。", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "\"{0}\" 是使用 \"export type\" 导出的,因此不能用作值。", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "\"{0}\" 是使用 \"import type\" 导入的,因此不能用作值。", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "\"{0}\" 组件不接受文本作为子元素。JSX 中的文本类型为 \"string\",但 \"{1}\" 的预期类型为 \"{2}\"。", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "“{0}”可以使用与“{1}”无关的任意类型进行实例化。", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "“{0}”声明只能在块的内部声明。", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "\"{0}\" 声明只能在 TypeScript 文件中使用。", - "_0_declarations_may_not_have_binding_patterns_1492": "“{0}”声明可能没有绑定模式。", - "_0_declarations_must_be_initialized_1155": "必须初始化“{0}”声明。", "_0_expected_1005": "应为“{0}”。", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "“{0}”具有字符串类型,但在启用 \"isolatedModules\" 时必须具有语法上可识别的字符串语法。", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "“{0}”没有导出的成员“{1}”。你是否指的是“{2}”?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "\"{0}\" 隐式具有 \"{1}\" 返回类型,但可以从用法中推断出更好的类型。", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "由于“{0}'”不具有返回类型批注并且在它的一个返回表达式中得到直接或间接引用,因此它隐式具有返回类型 \"any\"。", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "“{0}”索引类型“{1}”不能分配给“{2}”索引类型“{3}”。", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "“{0}”是基元,但“{1}”是包装器对象。如可能首选使用“{0}”。", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "“{0}”是一种类型,无法在 JavaScript 文件中导入。请在 JSDoc 类型批注中使用“{1}”。", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "“{0}”是一种类型,必须在启用 \"verbatimModuleSyntax\" 时使用仅类型导入进行导入。", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" 是一种类型,在同时启用了 \"preserveValueImports\" 和 \"isolatedModules\" 时,必须使用仅类型导入进行导入。", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "“{0}”是“{1}”的未使用重命名。是否打算将其用作类型批注?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" 可赋给 \"{1}\" 类型的约束,但可以使用约束 \"{2}\" 的其他子类型实例化 \"{1}\"。", "_0_is_automatically_exported_here_18044": "“{0}”自动导出到此处。", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "“{0}”列表不能为空。", "_0_modifier_already_seen_1030": "已看到“{0}”修饰符。", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "“{0}”修饰符只能出现在类、接口或类型别名的类型参数上", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "“{0}”修饰符只能出现在函数、方法或类的类型参数上", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "“{0}”修饰符不能出现在构造函数声明中。", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "“{0}”修饰符不可出现在模块或命名空间元素上。", "_0_modifier_cannot_appear_on_a_parameter_1090": "“{0}”修饰符不能出现在参数中。", "_0_modifier_cannot_appear_on_a_type_member_1070": "“{0}”修饰符不可出现在类型成员上。", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "“{0}”修饰符不能出现在类型参数上", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "“{0}”修饰符不能出现在 \"using\" 声明中。", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "“{0}”修饰符不能出现在 \"await using\" 声明中。", "_0_modifier_cannot_appear_on_an_index_signature_1071": "“{0}”修饰符不可出现在索引签名上。", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "“{0}”修饰符不能出现在此类型的类元素上。", "_0_modifier_cannot_be_used_here_1042": "“{0}”修饰符不能在此处使用。", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "“{0}”修饰符不能与“{1}”修饰符一起使用。", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "“{0}”修饰符不能与专用标识符一起使用。", "_0_modifier_must_precede_1_modifier_1029": "“{0}”修饰符必须位于“{1}”修饰符之前。", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "“\\{0}”后面必须是括在大括号中的 Unicode 属性值表达式。", "_0_needs_an_explicit_type_annotation_2782": "\"{0}\" 需要显式类型注释。", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "“{0}”仅指类型,但在此用作命名空间。", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "“{0}”仅表示类型,但在此处却作为值使用。", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "“{0}” 仅指类型,但在此处用作值。是否需要更改目标库? 请尝试将 “lib” 编译器选项更改为 es2015 或更高版本。", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "“{0}”指 UMD 全局,但当前文件是模块。请考虑改为添加导入。", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "“{0}”表示值,但在此处用作类型。是否指“类型 {0}”?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "“{0}”解析为一个类型,并且在启用“{1}”后重新导出之前,必须在此文件中标记为仅类型。请考虑使用导入“{0}”的 \"import type\"。", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "“{0}”解析为一个类型,并且在启用“{1}”后重新导出之前,必须在此文件中标记为仅类型。请考虑使用 \"export type { {0} as default }\"。", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "“{0}”解析为仅类型声明,并且必须在启用 \"verbatimModuleSyntax\" 时使用仅类型导入进行导入。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "“{0}”解析为仅类型声明,并且在启用“{1}”后重新导出之前,必须在此文件中标记为仅类型。请考虑使用导入“{0}”的 \"import type\"。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "“{0}”解析为仅类型声明,并且在启用“{1}”后重新导出之前,必须在此文件中标记为仅类型。请考虑使用 \"export type { {0} as default }\"。", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "“{0}”解析为仅类型声明,并且在启用“{1}”时必须使用仅类型重新导出进行重新导出。", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "\"{0}\" 解析为仅类型声明,并且在同时启用了 \"preserveValueImports\" 和 \"isolatedModules\" 时,必须使用仅类型导入进行导入。", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "\"{0}\" 解析为仅类型声明,并且在启用 \"isolatedModules\" 时必须使用仅类型重新导出进行重新导出。", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "应在 config json 文件的 “compilerOptions” 对象中设置 “{0}”", "_0_tag_already_specified_1223": "已指定“{0}”标记。", "_0_was_also_declared_here_6203": "此处也声明了 \"{0}\"。", @@ -1999,22 +1780,19 @@ "and_here_6204": "并在这里。", "arguments_cannot_be_referenced_in_property_initializers_2815": "无法在属性初始化表达式中引用 \"arguments\"。", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "“auto”: 将带有导入、导出、import.meta、jsx (带有 jsx: react-jsx)或 esm 格式(带模块: node16+)的文件视为模块。", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "\"await\" 表达式不能在类静态块内使用。", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "仅当文件是模块时,才允许在该文件的顶层使用 \"await\" 表达式,但此文件没有导入或导出。请考虑添加空的 \"export {}\" 以将此文件变为模块。", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "仅允许在异步函数和模块顶级使用 \"await\" 表达式。", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "不能在参数初始化表达式中使用 \"await\" 表达式。", "await_has_no_effect_on_the_type_of_this_expression_80007": "\"await\" 对此表达式的类型没有影响。", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "只有当文件是模块时,才允许在该文件的顶层使用 \"await using\" 语句,但此文件没有导入或导出。可考虑添加空的 \"export {}\" 将此文件变为模块。", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "\"await using\" 语句仅允许在异步函数和顶级模块中使用。", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "\"await using\" 语句不能在类静态块内使用。", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "\"baseUrl\" 选项设置为“{0}”,可使用此值解析非相关模块名称“{1}”。", - "c_must_be_followed_by_an_ASCII_letter_1512": "\"\\c\" 后面必须有一个 ASCII 字母。", "can_only_be_used_at_the_start_of_a_file_18026": "\"#!\" 只能用在文件的开头。", "case_or_default_expected_1130": "应为 \"case\" 或 \"default\"。", "catch_or_finally_expected_1472": "应为 “catch” 或 “finally”。", + "const_declarations_can_only_be_declared_inside_a_block_1156": "\"const\" 声明只能在块的内部声明。", + "const_declarations_must_be_initialized_1155": "必须初始化 \"const\" 声明。", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "\"const\" 枚举成员初始化表达式的求值结果为非有限值。", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "\"const\" 枚举成员初始化表达式的求值结果为不允许使用的值 \"NaN\"。", - "const_enum_member_initializers_must_be_constant_expressions_2474": "const 枚举成员初始值设定项必须是常量表达式。", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "常量枚举成员初始值设定项只能包含字面量值和其他计算的枚举值。", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "\"const\" 枚举仅可在属性、索引访问表达式、导入声明的右侧、导出分配或类型查询中使用。", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "“构造函数”不能用作参数属性名称。", "constructor_is_a_reserved_word_18012": "\"#constructor\" 是保留字。", @@ -2033,14 +1811,13 @@ "file_6025": "文件", "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”循环。可考虑添加空的“export {}”将此文件变为模块。", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "仅允许在异步函数和模块顶层使用“for await”循环。", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "\"for await\" 循环不能在类静态块内使用。", "get_and_set_accessors_cannot_declare_this_parameters_2784": "\"get\" 和 \"set\" 访问器无法声明 \"this\" 参数。", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "如果指定了 \"files\",则为 \"[]\",否则为\"[\"**/*\"]5D;\"", "implements_clause_already_seen_1175": "已看到 \"implements\" 子句。", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "\"implements\" 子句只能在 TypeScript 文件中使用。", "import_can_only_be_used_in_TypeScript_files_8002": "\"import ... =\" 只能在 TypeScript 文件中使用。", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "仅条件类型的 \"extends\" 子句中才允许 \"infer\" 声明。", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "\"\\k\" 后面必须有一个括在尖括号中的捕获组名称。", + "let_declarations_can_only_be_declared_inside_a_block_1157": "\"let\" 声明只能在块的内部声明。", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "\"let\" 不能用作 \"let\" 或 \"const\" 声明中的名称。", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "module === 'AMD' 或 'UMD' 或 'System' 或 'ES6',然后 'Classic', 否则为 'Node'", "module_system_or_esModuleInterop_6904": "module === \"system\" 或 esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package. json\" 没有与版本 \"{0}\" 匹配的 \"typesVersions\" 项。", "package_json_had_a_falsy_0_field_6220": "\"package. json\" 具有错误的 \"{0}\" 字段。", "package_json_has_0_field_1_that_references_2_6101": "\"package.json\" 具有引用“{2}”的“{0}”字段“{1}”。", - "package_json_has_a_peerDependencies_field_6281": "\"package.json\" 具有 \"peerDependencies\" 字段。", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "\"package. json\" 具有 \"typesVersions\" 项 \"{0}\",它不是有效的 semver 范围。", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "\"package. json\" 具有与编译器版本 \"{1}\" 匹配的 \"typesVersions\" 项 \"{0}\",它需要与模块名称 \"{2}\" 匹配的模式。", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "\"package. json\" 具有 \"typesVersions\" 字段,它具有特定于版本的路径映射。", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.json 作用域 '{0}' 的说明符 '{1}' 的目标类型无效", "package_json_scope_0_has_no_imports_defined_6273": "package.json 作用域 '{0}' 未定义导入。", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "指定了 \"paths“ 选项,正在查找模式以匹配模块名“{0}”。", - "q_is_only_available_inside_character_class_1511": "\"\\q\" 仅在字符类内可用。", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "\"\\q\" 后面必须是括在大括号中的字符串替代项。", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "\"readonly\" 修饰符仅可出现在属性声明或索引签名中。", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "仅允许对数组和元组字面量类型使用 \"readonly\" 类型修饰符。", "require_call_may_be_converted_to_an_import_80005": "可将 \"require\" 调用转换为 import 语句。", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "仅当“moduleResolution”为“node16”或“nodenext”时才支持“resolution-mode”断言。", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "“resolution-mode”断言不稳定。请使用夜间 TypeScript 消除此错误。请尝试使用“npm install -D typescript@next”进行更新。", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "只能为仅类型导入设置 \"resolution-mode\"。", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "\"resolution-mode\" 是类型导入断言的唯一有效密钥。", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "\"resolution-mode\" 是类型导入属性的唯一有效键。", "resolution_mode_should_be_either_require_or_import_1453": "“resolution-mode”应为“require”或“import”。", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "设置了 \"rootDirs\" 选项,可将其用于解析相对模块名称“{0}”。", "super_can_only_be_referenced_in_a_derived_class_2335": "只能在派生类中引用 \"super\"。", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "不能在计算属性名中引用 \"this\"。", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "不能在模块或命名空间体中引用 \"this\"。", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "不能在静态属性初始化表达式中引用 \"this\"。", + "this_cannot_be_referenced_in_constructor_arguments_2333": "不能在构造函数参数中引用 \"this\"。", "this_cannot_be_referenced_in_current_location_2332": "不能在当前位置引用 \"this\"。", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "\"this\" 隐式具有类型 \"any\",因为它没有类型注释。", "true_for_ES2022_and_above_including_ESNext_6930": "对于 ES2022 及更高版本为 `true`,包括 ESNext。", "true_if_composite_false_otherwise_6909": "如果为 \"composite\",则为 \"true\",否则为 \"false\"", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "当 \"moduleResolution\" 为 \"node16\"、\"nodenext \"或 \"bundler\" 时为 `true`;否则为 `false`。", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript 编译器", "type_Colon_6902": "类型:", "unique_symbol_types_are_not_allowed_here_1335": "此处不允许使用 \"unique symbol\" 类型。", diff --git a/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json b/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json index b88f2f4b5..b53887e8c 100644 --- a/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +++ b/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json @@ -2,20 +2,14 @@ "ALL_COMPILER_OPTIONS_6917": "所有編譯器選項", "A_0_modifier_cannot_be_used_with_an_import_declaration_1079": "'{0}' 修飾元無法與匯入宣告並用。", "A_0_parameter_must_be_the_first_parameter_2680": "'{0}' 參數必須為第一個參數。", - "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039": "JSDoc '@template' 標籤不能接在 '@typedef'、'@callback' 或 '@overload' 標籤後面", "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033": "JSDoc '@typedef' 註解不能包含多個 '@type' 標籤。", - "A_bigint_literal_cannot_be_used_as_a_property_name_1539": "無法使用 'bigint' 常值做為屬性名稱。", "A_bigint_literal_cannot_use_exponential_notation_1352": "Bigint 常值不可使用指數標記法。", "A_bigint_literal_must_be_an_integer_1353": "Bigint 常值必須為整數。", "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463": "實作簽章中不得省略繫結模式參數。", "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105": "'break' 陳述式只可在封入的反覆項目或 switch 陳述式內使用。", "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116": "'break' 陳述式只可跳至封入之陳述式的標籤。", - "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522": "字元類別不得包含保留的雙標點符號。您是要使用反斜線將其逸出嗎?", - "A_character_class_range_must_not_be_bounded_by_another_character_class_1516": "字元類別範圍不得被另一個字元類別限制。", "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500": "類別只能實作具有選擇性型別引數的識別碼/限定名稱。", "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422": "類別只能使用靜態已知成員來實作物件類型或物件類型的交集。", - "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863": "無法延伸基本類型的類別,例如 '{0}'。類別只能延伸可建構值。", - "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864": "無法實作基本類型的類別,例如 '{0}'。該類別只能實作其他具名物件類型。", "A_class_declaration_without_the_default_modifier_must_have_a_name_1211": "不具 'default' 修飾元的類別宣告必須要有名稱。", "A_class_member_cannot_have_the_0_keyword_1248": "類別成員不能含有 '{0}' 關鍵字。", "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171": "計算的屬性名稱中不可有逗點運算式。", @@ -33,7 +27,6 @@ "A_constructor_cannot_have_a_this_parameter_2681": "建構函式不能含有 'this' 參數。", "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104": "'continue' 陳述式只可在封入的反覆項目陳述式內使用。", "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115": "'continue' 陳述式只可跳至封入之反覆項目陳述式的標籤。", - "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846": "沒有 'import type' 就無法匯入宣告檔案。您是否想要改為匯入實作檔案 '{0}'?", "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038": "不得在現有環境內容中使用 'declare' 修飾元。", "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249": "一個裝飾項目只能裝飾一項方法實作,而不能多載。", "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113": "'default' 子句在 'switch' 陳述式中不得出現一次以上。", @@ -41,12 +34,12 @@ "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258": "預設匯出必須位於檔案或模組宣告的最上層。", "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255": "此內容不允許明確的指派判斷提示 '!'。", "A_destructuring_declaration_must_have_an_initializer_1182": "解構宣告中必須包含初始設定式。", - "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712": "ES5 中的動態匯入呼叫需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 '--lib' 選項中包括 'ES2015'。", + "A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712": "ES5/ES3 中的動態匯入呼叫需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 '--lib' 選項中包括 'ES2015'。", "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711": "動態匯入呼叫傳回 'Promise'。請確認您有 'Promise' 的宣告,或在 '--lib' 選項中包括 'ES2015'。", "A_file_cannot_have_a_reference_to_itself_1006": "檔案不得參考自己。", "A_function_returning_never_cannot_have_a_reachable_end_point_2534": "會傳回 'never' 的功能不得具有可聯繫的端點。", "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679": "透過 'new' 關鍵字呼叫的函式不能含有為 'viod' 的 'this' 類型。", - "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355": "若函式的宣告類型既不是 'undefined'、'void' 也不是 'any',則必須傳回值。", + "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355": "若函式的宣告類型既不是 'void' 也不是 'any',則必須傳回值。", "A_generator_cannot_have_a_void_type_annotation_2505": "產生器不得有 'void' 類型註釋。", "A_get_accessor_cannot_have_parameters_1054": "'get' 存取子不得有參數。", "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808": "get 存取子必須至少要跟 setter 一樣可供存取", @@ -62,9 +55,9 @@ "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_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "命名空間宣告的位置不得先於其要合併的類別或函式。", "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空間宣告只允許在命名空間或模組的頂層。", - "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "不應該使用 'module' 關鍵字宣告 'namespace' 宣告。請改為使用 'namespace' 關鍵字。", "A_non_dry_build_would_build_project_0_6357": "非 -dry 組建會建置專案 '{0}'", "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 組建會刪除下列檔案: {0}", + "A_non_dry_build_would_update_output_of_project_0_6375": "非 DRY 組建將會更新專案 '{0}' 的輸出", "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "非 DRY 組建將會更新專案 '{0}' 輸出的時間戳記", "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371": "只有函式或建構函式實作才可使用參數初始設定式。", "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317": "無法使用剩餘參數宣告參數屬性。", @@ -99,7 +92,6 @@ "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376": "當衍生類別包含已初始化的屬性、參數屬性或私人識別碼時,'super' 呼叫必須為建構函式中第一個參照 'super' 或 'this' 的陳述式。", "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518": "以 'this' 為基礎的類型成立條件,和以參數為基礎的類型成立條件不相容。", "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 類型只適用於類別或介面的非靜態成員。", - "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287": "啟用 'verbatimModuleSyntax' 時,CommonJS 模組中的值宣告不得使用最上層 'export' 修飾元。", "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' 檔案已定義於: '{0}'。", "A_tuple_member_cannot_be_both_optional_and_rest_5085": "元組成員不能同時為選用及待用。", "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "元組類型無法以負值編製索引。", @@ -115,21 +107,12 @@ "A_yield_expression_is_only_allowed_in_a_generator_body_1163": "只有產生器主體才允許 'yield' 運算式。", "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513": "無法透過 super 運算式存取類別 '{1}' 中的抽象方法 '{0}'。", "Abstract_methods_can_only_appear_within_an_abstract_class_1244": "抽象方法只可出現在抽象類別中。", - "Abstract_properties_can_only_appear_within_an_abstract_class_1253": "抽象方法只可出現在抽象屬性中。", "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715": "無法從建構函式存取類別 '{1}' 中的抽象屬性 '{0}'。", "Accessibility_modifier_already_seen_1028": "已有存取範圍修飾元。", "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056": "只有當目標為 ECMAScript 5 及更高版本時,才可使用存取子。", "Accessors_must_both_be_abstract_or_non_abstract_2676": "存取子必須兩者均為抽象或非抽象。", "Add_0_to_unresolved_variable_90008": "對未解析的變數新增 '{0}.'", "Add_a_return_statement_95111": "新增 return 陳述式", - "Add_a_return_type_to_the_function_declaration_9031": "新增傳回類型到函數宣告。", - "Add_a_return_type_to_the_function_expression_9030": "新增傳回類型到函數運算式。", - "Add_a_return_type_to_the_get_accessor_declaration_9032": "新增傳回類型至 get 存取子宣告。", - "Add_a_return_type_to_the_method_9034": "新增傳回類型至方法", - "Add_a_type_annotation_to_the_parameter_0_9028": "新增類型註釋至參數 {0}。", - "Add_a_type_annotation_to_the_property_0_9029": "新增類型註釋至屬性 {0}。", - "Add_a_type_annotation_to_the_variable_0_9027": "新增類型註釋至變數 {0}。", - "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033": "將類型新增至集合存取子宣告的參數。", "Add_all_missing_async_modifiers_95041": "新增缺少的所有 'async' 修飾元", "Add_all_missing_attributes_95168": "新增所有遺失的屬性", "Add_all_missing_call_parentheses_95068": "新增所有缺少的呼叫括號", @@ -137,13 +120,9 @@ "Add_all_missing_imports_95064": "新增所有缺少的匯入", "Add_all_missing_members_95022": "新增遺漏的所有成員", "Add_all_missing_override_modifiers_95162": "新增所有缺少的 'override' 修飾元", - "Add_all_missing_parameters_95190": "新增所有遺失的參數", "Add_all_missing_properties_95166": "新增所有遺失的屬性", "Add_all_missing_return_statement_95114": "新增所有遺漏的 return 陳述式", "Add_all_missing_super_calls_95039": "新增缺少的所有 super 呼叫", - "Add_all_missing_type_annotations_90067": "新增所有遺失的類型註釋", - "Add_all_optional_parameters_95193": "新增所有選用參數", - "Add_annotation_of_type_0_90062": "新增類型 '{0}' 的註釋", "Add_async_modifier_to_containing_function_90029": "將 async 修飾元新增至包含的函式", "Add_await_95083": "新增 'await'", "Add_await_to_initializer_for_0_95084": "將 'await' 新增至 '{0}' 的初始設定式", @@ -162,28 +141,18 @@ "Add_initializers_to_all_uninitialized_properties_95027": "為所有未初始化的屬性新增初始設定式", "Add_missing_attributes_95167": "新增遺失的屬性", "Add_missing_call_parentheses_95067": "新增缺少的呼叫括號", - "Add_missing_comma_for_object_member_completion_0_95187": "為物件成員完成 '{0}' 新增遺漏的逗號。", "Add_missing_enum_member_0_95063": "新增缺少的列舉成員 '{0}'", "Add_missing_function_declaration_0_95156": "新增缺少的函式宣告 '{0}'", "Add_missing_new_operator_to_all_calls_95072": "將缺少的 'new' 運算子新增至所有呼叫", "Add_missing_new_operator_to_call_95071": "缺少的 'new' 運算子新增至呼叫", - "Add_missing_parameter_to_0_95188": "新增遺失的參數至 '{0}'", - "Add_missing_parameters_to_0_95189": "新增遺失的參數至 '{0}'", "Add_missing_properties_95165": "新增遺失的屬性", "Add_missing_super_call_90001": "新增遺漏的 'super()' 呼叫", "Add_missing_typeof_95052": "新增遺漏的 'typeof'", "Add_names_to_all_parameters_without_names_95073": "將名稱新增至所有沒有名稱的參數", - "Add_optional_parameter_to_0_95191": "新增選用參數至 '{0}'", - "Add_optional_parameters_to_0_95192": "將選用參數新增至 '{0}'", "Add_or_remove_braces_in_an_arrow_function_95058": "在箭號函式中新增或移除大括號", "Add_override_modifier_95160": "新增 'override' 修飾元", "Add_parameter_name_90034": "新增參數名稱", "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037": "對所有比對成員名稱的未解析變數新增限定詞", - "Add_resolution_mode_import_attribute_95196": "新增 'resolution-mode' 匯入屬性", - "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197": "將 'resolution-mode' 匯入屬性新增至所有需要該屬性的僅限類型匯入", - "Add_return_type_0_90063": "新增傳回類型 '{0}'", - "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035": "在此運算式中新增 satisfies 和類型判斷提示 (將 T 視為 T),使類型明確顯示。", - "Add_satisfies_and_an_inline_type_assertion_with_0_90068": "新增 satisfies 和具有 '{0}' 的內嵌類型判斷提示", "Add_to_all_uncalled_decorators_95044": "為所有未呼叫的裝飾項目新增 '()'", "Add_ts_ignore_to_all_error_messages_95042": "為所有錯誤訊息新增 '@ts-ignore'", "Add_undefined_to_a_type_when_accessed_using_an_index_6674": "使用索引進行存取時,將 'undefined' 新增至類型。", @@ -208,7 +177,6 @@ "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011": "允許從沒有預設匯出的模組進行預設匯入。這不會影響程式碼發出,僅為類型檢查。", "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601": "當模組沒有預設匯出時,允許 'import x from y'。", "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639": "允許每個專案只從 tslib 匯入協助程式函式,而不是每個檔案都包含這些函式。", - "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407": "允許匯入包含 TypeScript 延伸模組。需要設定 '--moduleResolution bundler' 和 '--noEmit' 或 '--emitDeclarationOnly'。", "Allow_javascript_files_to_be_compiled_6102": "允許編譯 JavaScript 檔案。", "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691": "在解析模組時,允許將多個資料夾視為一個資料夾。", "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261": "已包含的檔案名稱 '{0}' 與檔案名稱 '{1}' 僅大小寫不同。", @@ -224,7 +192,7 @@ "An_argument_matching_this_binding_pattern_was_not_provided_6211": "未提供符合此繫結模式的引數。", "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356": "算術運算元必須屬於 'any'、'number'、'bigint' 或列舉類型。", "An_arrow_function_cannot_have_a_this_parameter_2730": "箭號函式不可具有 'this' 參數。", - "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705": "ES5 中的非同步函式或方法需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 '--lib' 選項中包括 'ES2015'。", + "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705": "ES5/ES3 中的非同步函式或方法需要 'Promise' 建構函式。請確認您有 'Promise' 建構函式的宣告,或在 '--lib' 選項中包括 'ES2015'。", "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697": "非同步函式或方法必須傳回 'Promise'。請確定您有 'Promise' 的宣告或在 '--lib' 選項中包括 'ES2015'。", "An_async_iterator_must_have_a_next_method_2519": "非同步迭代器必須有 'next()' 方法。", "An_element_access_expression_should_take_an_argument_1011": "項目存取運算式應接受一個引數。", @@ -239,22 +207,17 @@ "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_namespace_or_module_1233": "匯出宣告只能在命名空間或模組的頂層使用。", "An_export_declaration_cannot_have_modifiers_1193": "匯出宣告不得有修飾元。", - "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283": "啟用 'verbatimModuleSyntax' 時,'export =' 宣告必須參考真實的值,但 '{0}' 解析僅限類型的宣告。", - "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282": "啟用 'verbatimModuleSyntax' 時,'export =' 宣告必須參考值,但 '{0}' 僅參考類型。", - "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285": "啟用 'verbatimModuleSyntax' 時,'export default' 必須參考真實的值,但 '{0}' 解析僅限類型的宣告。", - "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284": "啟用 'verbatimModuleSyntax' 時,'export default' 宣告必須參考值,但 '{0}' 僅參考類型。", "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345": "無法對 'void' 類型的運算式測試真實性。", "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198": "擴充的 Unicode 逸出值必須介於 0x0 與 0x10FFFF (不含) 之間。", "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351": "識別碼或關鍵字不可直接接在數字常值後面。", "An_implementation_cannot_be_declared_in_ambient_contexts_1183": "不得在環境內容中宣告實作。", "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379": "匯入別名不能參考使用 'export type' 匯出的宣告。", "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380": "匯入別名不能參考使用 'import type' 匯入的宣告。", - "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288": "啟用 'verbatimModuleSyntax' 時,無法解析匯入別名為類型或僅類型的宣告。", "An_import_alias_cannot_use_import_type_1392": "匯入別名不能使用 'import type'", "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_namespace_or_module_1232": "匯入宣告只能在命名空間或模組的頂層使用。", "An_import_declaration_cannot_have_modifiers_1191": "匯入宣告不得有修飾元。", - "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097": "當 'allowImportingTsExtensions' 啟用時,匯入路徑只能以 '{0}' 延伸模組結尾。", + "An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691": "匯入路徑的結尾不得為 '{0}' 副檔名。請考慮改為匯入 '{1}'。", "An_index_signature_cannot_have_a_rest_parameter_1017": "索引簽章不得有剩餘參數。", "An_index_signature_cannot_have_a_trailing_comma_1025": "索引簽章結尾不可有逗號。", "An_index_signature_must_have_a_type_annotation_1021": "索引簽章必須有類型註釋。", @@ -268,7 +231,7 @@ "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477": "具現化運算式後面不能接著屬性存取。", "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "介面只能擴充具有選擇性型別引數的識別碼/限定名稱。", "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "介面只能延伸物件類型或具有靜態已知成員的物件類型交集。", - "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840": "無法延伸基本類型的介面,例如 '{0}'。其只能延伸其他具名物件類型。", + "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "介面無法延伸基本類型,例如 '{0}';介面只能延伸命名類型和類別", "An_interface_property_cannot_have_an_initializer_1246": "介面屬性不得有初始設定式。", "An_iterator_must_have_a_next_method_2489": "迭代器必須要有 'next()' 方法。", "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "在 JSX 片段使用 @jsx pragma 時,必須有 @jsxFrag pragma。", @@ -276,18 +239,14 @@ "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117": "物件常值不能有多個相同名稱的屬性。", "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119": "物件常值不得有同名的屬性與存取子。", "An_object_member_cannot_be_declared_optional_1162": "不得將物件成員宣告為選擇性。", - "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861": "物件的 '[Symbol.hasInstance]' 方法必須傳回布林值,才能用於 『instanceof』 運算式的右側。", "An_optional_chain_cannot_contain_private_identifiers_18030": "選擇性鏈結不能包含私人識別碼。", "An_optional_element_cannot_follow_a_rest_element_1266": "選擇性元素不能跟在 REST 元素之後。", "An_outer_value_of_this_is_shadowed_by_this_container_2738": "此容器已陰影 'this' 的外部值。", "An_overload_signature_cannot_be_declared_as_a_generator_1222": "不可將多載簽章宣告為產生器。", "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006": "乘冪運算式左邊不允許具 '{0}' 運算子的一元運算式。請考慮以括弧括住運算式。", "Annotate_everything_with_types_from_JSDoc_95043": "標註具備 JSDoc 之類型的所有項目 ", - "Annotate_types_of_properties_expando_function_in_a_namespace_90071": "為命名空間中的屬性 expando 函式類型加上標註", "Annotate_with_type_from_JSDoc_95009": "為來自 JSDoc 的類型標註", "Another_export_default_is_here_2753": "其他匯出預設位於此處。", - "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528": "只有在設定 Unicode 設定 (v) 旗標時,才能使用任何可能比對超過一個字元的 Unicode 屬性。", - "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518": "在否定字元類別中,任何可能比對超過一個字元的專案都無效。", "Are_you_missing_a_semicolon_2734": "缺少分號嗎?", "Argument_expression_expected_1135": "必須是引數運算式。", "Argument_for_0_option_must_be_Colon_1_6046": "'{0}' 選項的引數必須是: {1}。", @@ -296,15 +255,13 @@ "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379": "類型 '{0}' 的引數無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}' 的參數。請考慮將 'undefined' 新增到目標屬性的類型。", "Arguments_for_the_rest_parameter_0_were_not_provided_6236": "未提供其餘參數 '{0}' 的引數。", "Array_element_destructuring_pattern_expected_1181": "必須是陣列項目解構模式。", - "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018": "具有擴張元素的陣列無法使用 --isolatedDeclarations 推斷。", "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775": "判斷提示要求必須以明確的型別註解宣告呼叫目標中的每個名稱。", "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776": "判斷提示要求呼叫目標必須為識別碼或限定名稱。", - "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023": "在未宣告的情況下,--isolatedDeclarations 不支援指派屬性給函式。新增指派給此函式之屬性的明確宣告。", "Asterisk_Slash_expected_1010": "必須是 '*/'。", - "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009": "至少一個存取子必須有具備 --isolatedDeclarations 的明確型別註釋。", "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669": "全域範圍的增強指定只能在外部模組宣告或環境模組宣告直接巢狀。", "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670": "除非全域範圍的增強指定已顯示在環境內容中,否則應含有 'declare' 修飾元。", "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140": "專案 '{0}' 中已啟用鍵入的自動探索。正在使用快取位置 '{2}' 執行模組 '{1}' 的額外解析傳遞。", + "Await_expression_cannot_be_used_inside_a_class_static_block_18037": "Await 運算式無法在類別靜態區塊內使用。", "BUILD_OPTIONS_6919": "建置選項", "Backwards_Compatibility_6253": "回溯相容性", "Base_class_expressions_cannot_reference_class_type_parameters_2562": "基底類別運算式無法參考類別型別參數。", @@ -314,14 +271,12 @@ "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737": "當目標低於 ES2020 時,無法使用 BigInt 常值。", "Binary_digit_expected_1177": "必須是二進位數字。", "Binding_element_0_implicitly_has_an_1_type_7031": "繫結元素 '{0}' 隱含擁有 '{1}' 類型。", - "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019": "無法使用 --isolatedDeclarations 直接匯出繫結元素。", "Block_scoped_variable_0_used_before_its_declaration_2448": "已在其宣告之前使用區塊範圍變數 '{0}'。", "Build_a_composite_project_in_the_working_directory_6925": "在工作目錄中建置複合專案。", "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636": "建置包括似乎已是最新狀態的所有專案。", "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364": "若已過期,則建置一或多個專案及其相依性", "Build_option_0_requires_a_value_of_type_1_5073": "組建選項 '{0}' 需要 {1} 類型的值。", "Building_project_0_6358": "正在建置專案 '{0}'...", - "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720": "內建 iterators 會以 'undefined' 而非 'any' 的 'TReturn' 類型具現化。", "COMMAND_LINE_FLAGS_6921": "命令列旗標", "COMMON_COMMANDS_6916": "一般命令", "COMMON_COMPILER_OPTIONS_6920": "一般編譯器選項", @@ -329,13 +284,13 @@ "Call_signature_return_types_0_and_1_are_incompatible_2202": "呼叫簽章傳回型別 '{0}' 與 '{1}' 不相容。", "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020": "缺少傳回型別註解的呼叫簽章隱含了 'any' 傳回型別。", "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204": "無引數呼叫簽章的傳回型別 '{0}' 與 '{1}' 不相容。", + "Call_target_does_not_contain_any_signatures_2346": "呼叫目標未包含任何特徵標記。", "Can_only_convert_logical_AND_access_chains_95142": "只可轉換邏輯 AND 存取鏈結", "Can_only_convert_named_export_95164": "只能轉換具名匯出", "Can_only_convert_property_with_modifier_95137": "只能轉換具有修飾元的屬性", - "Can_only_convert_string_concatenations_and_string_literals_95154": "只能轉換字串串連和字串常值", + "Can_only_convert_string_concatenation_95154": "只能轉換字串串連", "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713": "因為 '{0}' 是類型而非命名空間,所以無法存取 '{0}.{1}'。您要在 '{0}' 中使用 '{0}[\"{1}\"]' 擷取屬性 '{1}' 的類型嗎?", - "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281": "啟用 '{1}' 時,無法從另一個不具備資格的檔案存取 '{0}'。請改用 '{2}'。", - "Cannot_access_ambient_const_enums_when_0_is_enabled_2748": "啟用 '{0}' 時,無法存取環境連續列舉。", + "Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748": "當提供 '--isolatedModules' 旗標時,則無法存取環境常數列舉。", "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672": "無法將 '{0}' 建構函式類型指派至 '{1}' 建構函式類型。", "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517": "無法將抽象建構函式類型指派給非抽象建構函式類型。", "Cannot_assign_to_0_because_it_is_a_class_2629": "無法指派至 '{0}',因為其為類別。", @@ -362,7 +317,7 @@ "Cannot_find_lib_definition_for_0_2726": "找不到 '{0}' 的程式庫定義。", "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727": "找不到 '{0}' 的程式庫定義。您是指 '{1}' 嗎?", "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "找不到模組 '{0}'。建議使用 '--resolveJsonModule',匯入副檔名為 '.json' 的模組。", - "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "找不到模組 '{0}'。您是要將 'moduleResolution' 選項設為 'nodenext',或是要將別名新增至 'paths' 選項?", + "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792": "找不到模組 '{0}'。您是要將 'moduleResolution' 選項設為 'node',或是要將別名新增至 'paths' 選項嗎?", "Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "找不到模組 '{0}' 或其對應的型別宣告。", "Cannot_find_name_0_2304": "找不到名稱 '{0}'。", "Cannot_find_name_0_Did_you_mean_1_2552": "找不到名稱 '{0}'。您指的是 '{1}' 嗎?", @@ -371,8 +326,6 @@ "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311": "找不到名稱 '{0}'。您是否想要在非同步函數中寫入此專案?", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583": "找不到名稱「{0}」。要變更您的目標程式庫嗎? 請嘗試將 'lib' 編譯器選項變更為「{1}」或更新版本。", "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584": "找不到名稱「{0}」。要變更您的目標程式庫嗎? 請嘗試將 'lib' 編譯器選項變更為包含 'dom'。", - "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867": "找不到名稱 '{0}'。需要為 Bun 安裝類型定義嗎?請嘗試 `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_2868": "找不到名稱 '{0}'。需要為 Bun 安裝類型定義嗎?請嘗試 `npm i --save-dev @types/bun`,然後將 'bun' 新增至 tsconfig 中的類型欄位。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582": "找不到名稱 '{0}'。需要安裝測試執行器的型別定義嗎? 請嘗試 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593": "找不到名稱「{0}」。需要為測試執行器安裝類型定義嗎? 請嘗試 `npm i --save-dev @types/jest` 或 `npm i --save-dev @types/mocha`,然後將 `jest` 或 `mocha` 新增至 tsconfig 中的類型欄位。", "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581": "找不到名稱 '{0}'。需要安裝 jQuery 的型別定義嗎? 請嘗試 `npm i --save-dev @types/jquery`。", @@ -392,16 +345,16 @@ "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765": "因為值的迭代器 'next' 方法需要類型 '{1}',但陣列解構永遠會傳送 '{0}',所以無法逐一查看值。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764": "因為值的迭代器 'next' 方法需要類型 '{1}',但陣列擴張永遠會傳送 '{0}',所以無法逐一查看值。", "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763": "因為值的迭代器 'next' 方法需要類型 '{1}',但 for-of 永遠會傳送 '{0}',所以無法逐一查看值。", - "Cannot_move_statements_to_the_selected_file_95183": "無法將陳述式移動至選取的檔案", - "Cannot_move_to_file_selected_file_is_invalid_95179": "無法移動至檔案,選取的檔案無效", + "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308": "因為專案 '{0}' 未設定 'outFile',所以無法於其前面加上任何內容", "Cannot_read_file_0_5083": "無法讀取檔案 '{0}'。", "Cannot_read_file_0_Colon_1_5012": "無法讀取檔案 '{0}': {1}。", "Cannot_redeclare_block_scoped_variable_0_2451": "無法重新宣告區塊範圍變數 '{0}'。", "Cannot_redeclare_exported_variable_0_2323": "無法重新宣告匯出的變數 '{0}'。", "Cannot_redeclare_identifier_0_in_catch_clause_2492": "無法在 Catch 子句中重新宣告識別碼 '{0}'。", "Cannot_start_a_function_call_in_a_type_annotation_1441": "無法在類型註釋中啟動函式呼叫。", + "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376": "因為讀取檔案 '{1}' 時發生錯誤,所以無法更新專案 '{0}' 的輸出", "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004": "除非有提供 '--jsx' 旗標,否則無法使用 JSX。", - "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269": "啟用 '{0}' 時,無法在類型或僅類型命名空間上使用 'export import'。", + "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269": "提供 '--isolatedModules' 旗標時,無法在類型或僅類型命名空間上使用 'export import'。", "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148": "當 '--module' 為 'none' 時,無法使用匯入、匯出或模組增強指定。", "Cannot_use_namespace_0_as_a_type_2709": "不得使用命名空間 '{0}' 作為類型。", "Cannot_use_namespace_0_as_a_value_2708": "不得使用命名空間 '{0}' 作為值。", @@ -418,7 +371,6 @@ "Change_extends_to_implements_90003": "將 [延伸] 變更至 [實作]5D;", "Change_spelling_to_0_90022": "將拼字變更為 '{0}'", "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700": "檢查是否已宣告但未在建構函式中設定的類別屬性。", - "Check_side_effect_imports_6806": "檢查副作用匯入。", "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697": "檢查 'bind'、'call' 和 'apply' 方法的引數是否與原始函式相符。", "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104": "檢查 '{0}' 是否為 '{1}' - '{2}' 的最長相符前置詞。", "Circular_definition_of_import_alias_0_2303": "匯入別名 '{0}' 的循環定義。", @@ -436,7 +388,6 @@ "Class_declaration_cannot_implement_overload_list_for_0_2813": "類別宣告無法為 '{0}' 實作多載清單。", "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "類別宣告不能有一個以上的 `@augments` 或 `@extends` 標籤。", "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "類別裝飾項目無法與靜態私人識別碼一起使用。請考慮移除實驗性裝飾項目。", - "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855": "父類別所定義的類別欄位 '{0}' 無法透過超級在子類別中存取。", "Class_name_cannot_be_0_2414": "類別名稱不得為 '{0}'。", "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725": "當目標為具有模組 {0} 的 ES5 時,類別名稱不可為 'Object'。", "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417": "類別靜態端 '{0}' 不正確地擴充基底類別靜態端 '{1}'。", @@ -446,7 +397,6 @@ "Command_line_Options_6171": "命令列選項", "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020": "當路徑為專案組態檔或為 'tsconfig.json' 所在的資料夾時編譯專案。", "Compiler_Diagnostics_6251": "編譯器診斷", - "Compiler_option_0_cannot_be_given_an_empty_string_18051": "編譯器選項 '{0}' 無法指定空字串。", "Compiler_option_0_expects_an_argument_6044": "編譯器選項 '{0}' 必須要有一個引數。", "Compiler_option_0_may_not_be_used_with_build_5094": "編譯器選項 '--{0}' 不能與 '--build' 一起使用。", "Compiler_option_0_may_only_be_used_with_build_5093": "編譯器選項 '--{0}' 只能與 '--build' 一起使用。", @@ -460,12 +410,10 @@ "Composite_projects_may_not_disable_declaration_emit_6304": "複合式專案可能未停用宣告發出。", "Composite_projects_may_not_disable_incremental_compilation_6379": "複合專案可能不會停用累加編譯。", "Computed_from_the_list_of_input_files_6911": "從輸入檔案清單計算", - "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014": "計算屬性必須是具有 --isolatedDeclarations 的數字或字串常值、變數或點狀運算式。", "Computed_property_names_are_not_allowed_in_enums_1164": "列舉中不能有計算的屬性名稱。", - "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038": "無法使用 --isolatedDeclarations 推斷類別或物件常值上的計算屬性名稱。", "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553": "具有字串值成員的列舉中不允許計算值。", "Concatenate_and_emit_output_to_single_file_6001": "串連並發出輸出至單一檔案。", - "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410": "解析匯入時,除了解析程式特定預設值之外,還需要設定的條件。", + "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090": "在 '{1}' 和 '{2}' 找到衝突的 '{0}' 定義。請考慮安裝此程式庫的特定版本以解決衝突。", "Conflicts_are_in_this_file_6201": "此檔案中有衝突。", "Consider_adding_a_declare_modifier_to_this_class_6506": "請考慮將 'declare' 修飾元加入此類別。", "Construct_signature_return_types_0_and_1_are_incompatible_2203": "建構簽章傳回型別 '{0}' 與 '{1}' 不相容。", @@ -485,6 +433,7 @@ "Convert_0_to_mapped_object_type_95055": "將 '{0}' 轉換為對應的物件類型", "Convert_all_const_to_let_95102": "將所有 'const' 轉換為 'let'", "Convert_all_constructor_functions_to_classes_95045": "將所有建構函式轉換為類別", + "Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374": "將所有未作為值使用的匯入轉換為僅限類型的匯入", "Convert_all_invalid_characters_to_HTML_entity_code_95101": "將所有無效字元轉換為 HTML 實體代碼", "Convert_all_re_exported_types_to_type_only_exports_1365": "將所有重新匯出的類型轉換為僅限類型的匯出", "Convert_all_require_to_import_95048": "將所有 'require' 轉換至 'import'", @@ -492,7 +441,6 @@ "Convert_all_to_bigint_numeric_literals_95092": "全部轉換為 Bigint 數字常值", "Convert_all_to_default_imports_95035": "全部轉換為預設匯入", "Convert_all_type_literals_to_mapped_type_95021": "將所有類型常值轉換成相對應的類型", - "Convert_all_typedef_to_TypeScript_types_95177": "轉換所有 typedef 為 TypeScript 類型。", "Convert_arrow_function_or_function_expression_95122": "轉換箭頭函式或函式運算式", "Convert_const_to_let_95093": "將 'const' 轉換為 'let'", "Convert_default_export_to_named_export_95061": "將預設匯出轉換為具名匯出", @@ -517,7 +465,7 @@ "Convert_to_optional_chain_expression_95139": "轉換為選擇性鏈結運算式", "Convert_to_template_string_95096": "轉換為範本字串", "Convert_to_type_only_export_1364": "轉換為僅限類型的匯出", - "Convert_typedef_to_TypeScript_type_95176": "轉換 typedef 為 TypeScript 類型。", + "Convert_to_type_only_import_1373": "轉換為僅限類型的匯入", "Corrupted_locale_file_0_6051": "地區設定檔 {0} 已損毀。", "Could_not_convert_to_anonymous_function_95153": "無法轉換成匿名函式", "Could_not_convert_to_arrow_function_95151": "無法轉換成箭頭函式", @@ -532,20 +480,15 @@ "Could_not_find_name_0_Did_you_mean_1_2570": "找不到名稱 '{0}'。您是不是指 '{1}'?", "Could_not_find_namespace_import_or_named_imports_95132": "找不到命名空間匯入或具名匯入", "Could_not_find_property_for_which_to_generate_accessor_95135": "找不到要為其產生存取子的屬性", - "Could_not_find_variable_to_inline_95185": "找不到要內嵌的變數。", "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231": "無法解析具有下列延伸模組的路徑 '{0}': {1}。", "Could_not_write_file_0_Colon_1_5033": "無法編寫檔案 '{0}': {1}。", "Create_source_map_files_for_emitted_JavaScript_files_6694": "建立發出 JavaScript 檔案的來源對應檔。", "Create_sourcemaps_for_d_ts_files_6614": "為 d.ts 檔案建立 sourcemap。", "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926": "使用建議設定在工作目錄中建立 tsconfig.json。", "DIRECTORY_6038": "目錄", - "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537": "字元類別中不允許小數點逸出序列和反向參考。", - "Decimals_with_leading_zeros_are_not_allowed_1489": "不允許前置為零的小數點。", "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232": "宣告會讓另一個檔案中的宣告增加。這無法序列化。", - "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026": "此檔案發出的宣告需要保留此匯入,以進行增強。該情況不受 --isolatedDeclarations 支援。", "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005": "此檔案的宣告發出必須使用私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。", "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006": "此檔案的宣告發出必須使用來自模組 '{1}' 的私人名稱 '{0}'。明確的型別註解可能會解除封鎖宣告發出。", - "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025": "此參數發出的宣告需要隱含地新增未定義值至其類型。此情況不受 --isolatedDeclarations 支援。", "Declaration_expected_1146": "必須是宣告。", "Declaration_name_conflicts_with_built_in_global_identifier_0_2397": "宣告名稱與內建全域識別碼 '{0}' 衝突。", "Declaration_or_statement_expected_1128": "必須是宣告或陳述式。", @@ -561,14 +504,12 @@ "Declare_static_property_0_90027": "宣告靜態屬性 '{0}'", "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270": "裝飾項目函式傳回類型 '{0}' 無法指派給類型 '{1}'。", "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271": "裝飾項目函式傳回類型是 '{0}',但必須是 'void' 或 'any'。", - "Decorator_used_before_export_here_1486": "在此處「匯出」之前使用的裝飾項目。", "Decorators_are_not_valid_here_1206": "裝飾項目在此處無效。", "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207": "無法將裝飾項目套用至多個同名的 get/set 存取子。", - "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038": "如果裝飾項目也出現在 'export' 之前,就不能出現在 'export' 或 'export default' 後。", + "Decorators_may_not_be_applied_to_this_parameters_1433": "裝飾項目無法套用至 'this' 參數。", "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436": "裝飾項目必須在屬性宣告的名稱和所有關鍵詞之前。", "Default_catch_clause_variables_as_unknown_instead_of_any_6803": "預設 catch 子句變數為 'unknown' 而非 'any'。", "Default_export_of_the_module_has_or_is_using_private_name_0_4082": "模組的預設匯出具有或正在使用私用名稱 '{0}'。", - "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037": "無法使用 --isolatedDeclarations 推斷預設匯出。", "Default_library_1424": "預設程式庫", "Default_library_for_target_0_1425": "目標 '{0}' 的預設程式庫", "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200": "下列識別碼的定義與其他檔案中的定義衝突: {0}", @@ -600,7 +541,6 @@ "Disable_erasing_const_enum_declarations_in_generated_code_6682": "停用在產生的程式碼中抹除 'const enum' 宣告。", "Disable_error_reporting_for_unreachable_code_6603": "停用無法執行到的程式碼錯誤報告。", "Disable_error_reporting_for_unused_labels_6604": "停用未使用標籤的錯誤報表。", - "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805": "停用完整類型檢查 (只回報重要剖析和發出錯誤訊息)。", "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661": "停用在編譯輸出中產生自訂的協助程式函式,例如 '__extends'。", "Disable_including_any_library_files_including_the_default_lib_d_ts_6670": "停用包括任何程式庫檔案,包括預設的 lib.d.ts。", "Disable_loading_referenced_projects_6235": "停用載入參考的專案。", @@ -618,7 +558,6 @@ "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "不允許 import'、'require' 或 '' 擴充 TypeScript 應該加入專案的檔案數目。", "Disallow_inconsistently_cased_references_to_the_same_file_6078": "不允許相同檔案大小寫不一致的參考。", "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "不要在編譯後的檔案清單中新增三道斜線的參考或匯入的模組。", - "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "不允許不屬於ECMAScript一部分的運行時間建構。", "Do_not_emit_comments_to_output_6009": "請勿將註解發出到輸出。", "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "請勿發出包含 '@internal' 註釋的程式碼宣告。", "Do_not_emit_outputs_6010": "請勿發出輸出。", @@ -630,7 +569,6 @@ "Do_not_report_errors_on_unreachable_code_6077": "請勿回報無法執行到之程式碼的錯誤。", "Do_not_report_errors_on_unused_labels_6074": "請勿回報未使用之標籤的錯誤。", "Do_not_resolve_the_real_path_of_symlinks_6013": "請勿解析符號連結的真實路徑。", - "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804": "請勿轉換或省略任何未標示為僅限類型的匯入或匯出,請確保其是以輸出檔案的格式並根據 'module' 設定所撰寫。", "Do_not_truncate_error_messages_6165": "不要截斷錯誤訊息。", "Duplicate_function_implementation_2393": "函式實作重複。", "Duplicate_identifier_0_2300": "識別碼 '{0}' 重複。", @@ -645,14 +583,10 @@ "Duplicate_index_signature_for_type_0_2374": "類型 '{0}' 的索引簽章重複。", "Duplicate_label_0_1114": "標籤 '{0}' 重複。", "Duplicate_property_0_2718": "屬性 '{0}' 重複。", - "Duplicate_regular_expression_flag_1500": "重複的規則運算式旗標。", "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036": "動態匯入的指定名稱必須屬於類型 'string',但這裡的類型為 '{0}'。", - "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16'、'node18' 或 'nodenext',才支援動態匯入。", - "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450": "動態匯入只接受模組指定名稱和一系列選擇性屬性來做為引數", - "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324": "當 '--module' 選項設定為 'esnext'、'node16'、'node18'、'nodenext' 或 'preserve' 時,動態匯入只支援第二個引數。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293": "當 'module' 設定為 'preserve' 時,CommonJS 模組中不允許 ESM 語法。", - "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286": "啟用 'verbatimModuleSyntax' 時,CommonJS 模組中不允許 ESM 語法。", - "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125": "'{0}.{1}' 的每個宣告值不同,其中應該要有 '{2}',但只包含 '{3}'。", + "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323": "只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16' 或 'nodenext',才支援動態匯入。", + "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450": "動態匯入只能接受模組指定名稱和選擇性判斷提示來做為引數", + "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324": "當 '--module' 選項設定為 'esnext'、'node16' 或 'nodenext' 時,動態匯入只支援第二個引數。", "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762": "等位型別 '{0}' 的每個成員都有建構簽章,但這些簽章都互不相容。", "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758": "等位型別 '{0}' 的每個成員都有簽章,但這些簽章都互不相容。", "Editor_Support_6249": "編輯器支援", @@ -679,10 +613,8 @@ "Enable_error_reporting_in_type_checked_JavaScript_files_6609": "在已完成型別檢查的 JavaScript 檔案中啟用錯誤報表。", "Enable_error_reporting_when_local_variables_aren_t_read_6675": "當未讀取區域變數時,啟用錯誤報吿。", "Enable_error_reporting_when_this_is_given_the_type_any_6668": "為 'this' 指定類型 'any' 時,啟用錯誤報表。", - "Enable_experimental_support_for_legacy_experimental_decorators_6630": "啟用舊版實驗性裝飾項目的實驗性支援。", - "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "啟用匯入具有任何延伸模組的檔案,並存在宣告檔案即可。", + "Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630": "啟用 TC39 第 2 階段草稿裝飾項目的實驗性支援。", "Enable_importing_json_files_6689": "啟用匯入 json 檔案。", - "Enable_lib_replacement_6808": "啟用連結庫取代。", "Enable_project_compilation_6302": "啟用專案編譯", "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "對函式啟用嚴格的 'bind'、'call' 及 'apply' 方法。", "Enable_strict_checking_of_function_types_6186": "啟用嚴格檢查函式類型。", @@ -700,7 +632,6 @@ "Ensure_that_casing_is_correct_in_imports_6637": "請確認 Imports 中的大小寫正確。", "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645": "確保每個檔案都可安全地轉譯,而不依賴其他匯入。", "Ensure_use_strict_is_always_emitted_6605": "確保永遠發出 'use strict'。", - "Entering_conditional_exports_6413": "正在進入條件式匯出。", "Entry_point_for_implicit_type_library_0_1420": "隱含型別程式庫 '{0}' 的進入點", "Entry_point_for_implicit_type_library_0_with_packageId_1_1421": "具有 packageId '{1}' 的隱含型別程式庫 '{0}' 進入點", "Entry_point_of_type_library_0_specified_in_compilerOptions_1417": "在 CompilerOptions 中指定的型別程式庫 '{0}' 進入點", @@ -709,32 +640,24 @@ "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567": "列舉宣告只能與命名空間或其他列舉宣告合併。", "Enum_declarations_must_all_be_const_or_non_const_2473": "列舉宣告必須都是 const 或非 const。", "Enum_member_expected_1132": "必須是列舉成員。", - "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056": "啟用 'isolatedModules' 時,跟隨非常值數值成員的列舉成員必須有初始設定式。", - "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020": "列舉成員初始設定式必須是可計算,且不參考具有 --isolatedDeclarations 的外部符號。", "Enum_member_must_have_initializer_1061": "列舉成員必須有初始設定式。", "Enum_name_cannot_be_0_2431": "列舉名稱不得為 '{0}'。", + "Enum_type_0_has_members_with_initializers_that_are_not_literals_2535": "列舉類型 '{0}' 有初始設定式非常值的成員。", "Errors_Files_6041": "錯誤檔案", - "Escape_sequence_0_is_not_allowed_1488": "不允許逸出序列 '{0}'。", "Examples_Colon_0_6026": "範例: {0}", - "Excessive_complexity_comparing_types_0_and_1_2859": "過度複雜性比較類型 '{0}' 和 '{1}'。", "Excessive_stack_depth_comparing_types_0_and_1_2321": "比較類型 '{0}' 與 '{1}' 的堆疊深度過深。", - "Exiting_conditional_exports_6416": "正在退出條件式匯出。", "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027": "必須是 {0}-{1} 型別引數; 請提供有 '@ extends' 標記的這類型引數。", "Expected_0_arguments_but_got_1_2554": "應有 {0} 個引數,但得到 {1} 個。", "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794": "應為 {0} 個引數,但現有 {1} 個。是否忘記將型別引數中的 'void' 納入 'Promise' 中?", "Expected_0_type_arguments_but_got_1_2558": "應有 {0} 個型別引數,但得到 {1} 個。", "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026": "必須是 {0} 型別引數; 請提供有 '@ extends' 標記的這類引數。", "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810": "需要 1 個引數,但得到 0。'new Promise()' 需要 JSDoc 提示,才能產生可以呼叫而不含引數的 'resolve'。", - "Expected_a_Unicode_property_name_1523": "必須是 Unicode 屬性名稱。", - "Expected_a_Unicode_property_name_or_value_1527": "必須是 Unicode 屬性名稱或值。", - "Expected_a_Unicode_property_value_1525": "必須是 Unicode 屬性值。", - "Expected_a_capturing_group_name_1514": "必須是擷取群組名稱。", - "Expected_a_class_set_operand_1520": "必須是類別集運算元。", "Expected_at_least_0_arguments_but_got_1_2555": "至少應有 {0} 個引數,但得到 {1} 個。", "Expected_corresponding_JSX_closing_tag_for_0_17002": "'{0}' 需要對應的 JSX 結尾標記。", "Expected_corresponding_closing_tag_for_JSX_fragment_17015": "JSX 片段必須有對應的結尾標記。", "Expected_for_property_initializer_1442": "屬性初始設定式必須是 '='。", "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105": "在 'package.json' 中 '{0}' 欄位的類型必須為 '{1}',但取得 '{2}'。", + "Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219": "裝飾項目的實驗性支援是未來版本中可能會變更的功能。在 'tsconfig' 或 'jsconfig' 中設定 'experimentalDecorators' 選項可移除此警告。", "Explicitly_specified_module_resolution_kind_Colon_0_6087": "明確指定的模組解析種類: '{0}'。", "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791": "'target' 選項必須設定為 'es2016' 或更新版本,才可以對 'bigint' 值執行乘冪運算。", "Export_0_from_module_1_90059": "從模組 '{1}' 匯出 '{0}'", @@ -751,20 +674,13 @@ "Exported_variable_0_has_or_is_using_private_name_1_4025": "匯出的變數 '{0}' 具有或使用私用名稱 '{1}'。", "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666": "模組增強指定中不允許匯出及匯出指派。", "Expression_expected_1109": "必須是運算式。", - "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497": "表達式必須包含在括弧內,才能做為裝飾項目使用。", "Expression_or_comma_expected_1137": "必須是運算式或逗號。", "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800": "運算式產生的元組類型太大而無法表示。", "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590": "運算式產生的等位型別過於複雜而無法表示。", "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402": "運算式會解析成 '_super',而編譯器會使用其來擷取基底類別參考。", "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544": "運算式將解析成變數宣告 '_newTarget',而供編譯器用來擷取 'new.target' 中繼屬性參考。", "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400": "運算式會解析成變數宣告 '_this',而編譯器會使用此宣告來擷取 'this' 參考 。", - "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013": "無法使用 --isolatedDeclarations 推斷運算式類型。", - "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021": "擴充子句不能包含具有 --isolatedDeclarations 的運算式。", - "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085": "推斷類型 '{0}' 的 'Extends' 子句包含或使用了私人名稱 '{1}'。", - "Extract_base_class_to_variable_90064": "擷取基底類別至變數", - "Extract_binding_expressions_to_variable_90066": "將繫結運算式擷取至變數", "Extract_constant_95006": "擷取常數", - "Extract_default_export_to_variable_90065": "擷取預設匯出至變數", "Extract_function_95005": "擷取函式", "Extract_to_0_in_1_95004": "擷取至 {1} 中的 {0}", "Extract_to_0_in_1_scope_95008": "擷取至 {1} 範圍中的 {0}", @@ -772,25 +688,23 @@ "Extract_to_interface_95090": "擷取至介面", "Extract_to_type_alias_95078": "擷取至類型別名", "Extract_to_typedef_95079": "擷取至 typedef", - "Extract_to_variable_and_replace_with_0_as_typeof_0_90069": "擷取至變數,並以 '{0} as typeof {0}' 取代", "Extract_type_95077": "擷取類型", "FILE_6035": "檔案", "FILE_OR_DIRECTORY_6040": "檔案或目錄", - "Failed_to_find_peerDependency_0_6283": "找不到 peerDependency '{0}'。", - "Failed_to_resolve_under_condition_0_6415": "在條件 '{0}' 下解析失敗。", + "Failed_to_parse_file_0_Colon_1_5014": "無法剖析檔案 '{0}': {1}。", "Fallthrough_case_in_switch_7029": "參數中的 fallthrough 案例。", "File_0_does_not_exist_6096": "檔案 '{0}' 不存在。", "File_0_does_not_exist_according_to_earlier_cached_lookups_6240": "根據之前快取的查閱,檔案 '{0}' 不存在。", + "File_0_exist_use_it_as_a_name_resolution_result_6097": "檔案 '{0}' 存在 - 將其作為名稱解析結果使用。", "File_0_exists_according_to_earlier_cached_lookups_6239": "根據之前快取的查閱,檔案 '{0}' 存在。", - "File_0_exists_use_it_as_a_name_resolution_result_6097": "檔案 '{0}' 存在 - 將其做為名稱解析結果使用。", "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054": "不支援檔案 '{0}' 的副檔名。支援的副檔名只有 {1}。", + "File_0_has_an_unsupported_extension_so_skipping_it_6081": "因為不支援檔案 '{0}' 的副檔名,所以將其跳過。", "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504": "檔案 '{0}' 為 JavaScript 檔案。您是要啟用 'allowJs' 選項嗎?", "File_0_is_not_a_module_2306": "檔案 '{0}' 不是模組。", "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307": "檔案 '{0}' 未列於專案 '{1}' 的檔案清單內。專案必須列出所有檔案,或使用 'include' 模式。", "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059": "檔案 '{0}' 不在 'rootDir' '{1}' 之下。'rootDir' 必須包含所有原始程式檔。", "File_0_not_found_6053": "找不到檔案 '{0}'。", "File_Management_6245": "檔案管理", - "File_appears_to_be_binary_1490": "檔案顯示為二進位。", "File_change_detected_Starting_incremental_compilation_6032": "偵測到檔案變更。正在啟動累加編譯...", "File_is_CommonJS_module_because_0_does_not_have_field_type_1460": "檔案是 CommonJS 模組,因為 '{0}' 沒有 \"type\" 欄位", "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459": "檔案是 CommonJS 模組,因為 '{0}' 具有值不是 \"module\" 的 \"type\" 欄位", @@ -810,7 +724,6 @@ "File_is_output_of_project_reference_source_0_1428": "檔案是專案參考來源 '{0}' 的輸出", "File_is_source_from_referenced_project_specified_here_1416": "檔案是此處指定參考專案的來源。", "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149": "檔案名稱 '{0}' 與包含的檔案名稱 '{1}' 只差在大小寫。", - "File_name_0_has_a_1_extension_looking_up_2_instead_6262": "檔案名稱 '{0}' 具有 '{1}' 延伸模組 - 改為查詢 '{2}'。", "File_name_0_has_a_1_extension_stripping_it_6132": "檔案名稱 '{0}' 的副檔名為 '{1}'。正予以移除。", "File_redirects_to_file_0_1429": "檔案會重新導向檔案 '{0}'", "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065": "檔案規格不得包含出現在遞迴目錄萬用字元 ('**') 之後的父目錄 ('..'): '{0}'。", @@ -820,25 +733,23 @@ "Fix_all_expressions_possibly_missing_await_95085": "修正所有可能缺少 'await' 的運算式", "Fix_all_implicit_this_errors_95107": "修正所有隱含 'this' 的錯誤", "Fix_all_incorrect_return_type_of_an_async_functions_90037": "修正非同步函式所有不正確的傳回型別", - "Fix_all_with_type_only_imports_95182": "使用僅限類型匯入來修正所有問題", + "For_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' 迴圈無法在類別靜態區塊內使用。", "Found_0_errors_6217": "找到 {0} 個錯誤。", "Found_0_errors_Watching_for_file_changes_6194": "找到 {0} 個錯誤。正在監看檔案變更。", "Found_0_errors_in_1_files_6261": "在 {1} 檔案中發現 {0} 個錯誤。", "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260": "在同一個檔案中發現 {0} 個錯誤,開始位置: {1}", "Found_1_error_6216": "找到 1 個錯誤。", "Found_1_error_Watching_for_file_changes_6193": "找到 1 個錯誤。正在監看檔案變更。", - "Found_1_error_in_0_6259": "在 {0} 找到 1 個錯誤", + "Found_1_error_in_1_6259": "在 {1} 找到 1 個錯誤", "Found_package_json_at_0_6099": "在 '{0}' 找到 'package.json'。", - "Found_peerDependency_0_with_1_version_6282": "找到版本為 '{1}' 的 peerDependency '{0}'。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250": "以 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251": "以 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。類別定義會自動進入 strict 模式。", - "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252": "以 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。模組會自動進入 strict 模式。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250": "以 'ES3' 或 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251": "以 'ES3' 或 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。類別定義會自動進入 strict 模式。", + "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252": "以 'ES3' 或 'ES5' 為目標時,strict 模式下的區塊中不允許函式宣告。模組會自動進入 strict 模式。", "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011": "缺少傳回型別註解的函式運算式隱含了 '{0}' 傳回型別。", "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391": "遺漏函式實作,或函式實作未緊接在宣告之後。", "Function_implementation_name_must_be_0_2389": "函式實作名稱必須是 '{0}'。", "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024": "函式因為沒有傳回型別註解,並在其中一個傳回運算式中直接或間接參考了自己,所以隱含了傳回型別 'any'。", "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366": "函式缺少結束 return 陳述式,且傳回類型不包括 'undefined'。", - "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007": "函式必須有具備 --isolatedDeclarations 的明確傳回型別註解。", "Function_not_implemented_95159": "未實作函式。", "Function_overload_must_be_static_2387": "函式多載必須為靜態。", "Function_overload_must_not_be_static_2388": "函式多載不可為靜態。", @@ -854,7 +765,7 @@ "Generates_an_event_trace_and_a_list_of_types_6237": "產生事件追蹤與類型清單。", "Generates_corresponding_d_ts_file_6002": "產生對應的 '.d.ts' 檔案。", "Generates_corresponding_map_file_6043": "產生對應的 '.map' 檔案。", - "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025": "產生器隱含的 yield 類型為 '{0}'。請考慮提供傳回型別註解。", + "Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025": "因為產生器未產生任何值,所以其隱含產生類型 '{0}'。請考慮提供傳回型別註解。", "Generators_are_not_allowed_in_an_ambient_context_1221": "環境內容中不允許產生器。", "Generic_type_0_requires_1_type_argument_s_2314": "泛型類型 '{0}' 需要 {1} 個型別引數。", "Generic_type_0_requires_between_1_and_2_type_arguments_2707": "泛型型別 '{0}' 需要介於 {1} 和 {2} 之間的型別引數。", @@ -874,7 +785,6 @@ "Identifier_expected_1003": "必須是識別碼。", "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "必須有識別碼。'__esModule' 已保留為轉換 ECMAScript 模組時匯出的標記。", "Identifier_or_string_literal_expected_1478": "需要識別碼或字串常值。", - "Identifier_string_literal_or_number_literal_expected_1496": "必須是識別碼、字串常值或數字常值。", "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "如果「{0}」套件實際上公開了此模組,請考慮傳送提取要求以修改 「https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}」", "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "如果 '{0}' 套件的確公開了此模組,請嘗試新增包含 `declare module '{1}';` 的宣告 (.d.ts) 檔案。", "Ignore_this_error_message_90019": "略過此錯誤訊息", @@ -885,19 +795,12 @@ "Implement_interface_0_90006": "實作介面 '{0}'", "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019": "匯出類別 '{0}' 的 Implements 子句具有或使用私用名稱 '{1}'。", "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731": "在執行階段中無法將 'symbol' 隱含轉換為 'string'。請考慮將此運算式包裝在 'String(...)' 中。", - "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866": "匯入 '{0}' 會與此檔案中使用的全域值發生衝突,因此在啟用 'isolatedModules' 時,必須使用僅限類型的匯入宣告。", - "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865": "匯入 '{0}' 會與本機值發生衝突,因此在啟用 'isolatedModules' 時,必須使用僅限類型的匯入宣告。", "Import_0_from_1_90013": "從 \"{1}\" 匯入 '{0}'", "Import_assertion_values_must_be_string_literal_expressions_2837": "匯入判斷提示值必須是字串常值運算式。", - "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "編譯為 CommonJS 'require' 呼叫的陳述式上不允許匯入判斷提示。", - "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "只有當 '--module' 選項設定為 'esnext'、'node18'、'nodenext' 或 'preserve' 時,才支援匯入判斷提示。", + "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836": "轉換為 commonjs 'require' 呼叫的陳述式上不允許匯入判斷提示。", + "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821": "只有當 '--module' 選項設定為 'esnext' 時,才支援匯入判斷提示。", "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "匯入判斷提示不能與僅限類型的匯入或匯出搭配使用。", - "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880": "匯入宣告已由匯入屬性取代。使用 『with』 而非 'assert'。", "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "當目標為 ECMAScript 模組時,無法使用匯入指派。請考慮改用 'import * as ns from \"mod\"'、'import {a} from \"mod\"'、'import d from \"mod\"' 或其他模組格式。", - "Import_attribute_values_must_be_string_literal_expressions_2858": "匯入屬性值必須是字串常值運算式。", - "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "編譯為 CommonJS 'require' 呼叫的陳述式上不允許匯入屬性。", - "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823": "只有當 '--module' 選項設定為 'esnext'、'node18'、'nodenext' 或 'preserve’ 時,才支援匯入屬性。", - "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857": "匯入屬性不能與僅限類型的匯入或匯出搭配使用。", "Import_declaration_0_is_using_private_name_1_4000": "匯入宣告 '{0}' 使用私用名稱 '{1}'。", "Import_declaration_conflicts_with_local_declaration_of_0_2440": "匯入宣告與 '{0}' 的區域宣告衝突。", "Import_declarations_in_a_namespace_cannot_reference_a_module_1147": "命名空間中的匯入宣告不得參考模組。", @@ -912,7 +815,6 @@ "Imported_via_0_from_file_1_with_packageId_2_1394": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入", "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入,以 CompilerOptions 指定的方式匯入 'ImportHelpers'", "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398": "透過 {0} 從檔案 '{1}' (packageId 為 '{2}') 匯入,匯入 'jsx' 和 'jsxs' 處理站函式", - "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543": "當 'module' 設定為 '{0}' 時,匯入 JSON 檔案至 ECMAScript 模組需要 'type: \"json\"' 匯入屬性。", "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667": "模組增強指定中不允許匯入。請考慮將其移至封入外部模組。", "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066": "在環境列舉宣告中,成員初始設定式必須是常數運算式。", "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432": "在具有多個宣告的列舉中,只有一個宣告可以在其第一個列舉項目中省略初始設定式。", @@ -922,7 +824,6 @@ "Include_sourcemap_files_inside_the_emitted_JavaScript_6643": "在發出的 JavaScript 中包含 sourcemap 檔案。", "Includes_imports_of_types_referenced_by_0_90054": "包括 '{0}' 參考的類型匯入", "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914": "包括 --watch、-w 會開始監看目前專案是否有檔案變更。設定之後,您便可以使用以下來設定監看式模式:", - "Incomplete_quantifier_Digit_expected_1505": "不完整的數量詞。必須是數字。", "Index_signature_for_type_0_is_missing_in_type_1_2329": "類型 '{0}' 的索引簽章在類型 '{1}' 中遺失。", "Index_signature_in_type_0_only_permits_reading_2542": "類型 '{0}' 中的索引簽章只允許讀取。", "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395": "合併宣告 '{0}' 中的個別宣告必須全部匯出或全在本機上。", @@ -931,14 +832,13 @@ "Infer_parameter_types_from_usage_95012": "從使用方式推斷參數類型", "Infer_this_type_of_0_from_usage_95080": "從使用方式推斷 '{0}' 的 'this' 類型", "Infer_type_of_0_from_usage_95011": "從使用方式推斷 '{0}' 的類型", - "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022": "--isolatedDeclarations 不支援來自類別運算式的推斷。", "Initialize_property_0_in_the_constructor_90020": "將建構函式中的屬性 '{0}' 初始化", "Initialize_static_property_0_90021": "將靜態屬性 '{0}' 初始化", "Initializer_for_property_0_2811": "屬性 '{0}' 的初始設定式", "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301": "執行個體成員變數 '{0}' 的初始設定式不得參考建構函式中所宣告的識別碼 '{1}'。", + "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525": "初始設定式未提供任何值給這個繫結項目,且該繫結項目沒有預設值。", "Initializers_are_not_allowed_in_ambient_contexts_1039": "環境內容中不得有初始設定式。", "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070": "初始化 TypeScript 專案並建立 tsconfig.json 檔案。", - "Inline_variable_95184": "內嵌變數", "Insert_command_line_options_and_files_from_a_file_6030": "從檔案插入命令列選項與檔案。", "Install_0_95014": "安裝 '{0}'", "Install_all_missing_types_packages_95033": "安裝缺少的所有類型套件", @@ -955,11 +855,9 @@ "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "增強指定中的模組名稱無效,找不到模組 '{0}'。", "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "新運算式的選擇性鏈結無效。您想要呼叫 '{0}()' 嗎?", "Invalid_reference_directive_syntax_1084": "無效的 'reference' 指示詞語法。", - "Invalid_syntax_in_decorator_1498": "裝飾項目中無效的語法。", "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "'{0}' 的使用無效。不能在類別靜態區塊內使用。", "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "'{0}' 的用法無效。模組會自動採用 strict 模式。", "Invalid_use_of_0_in_strict_mode_1100": "在 strict 模式中使用 '{0}' 無效。", - "Invalid_value_for_ignoreDeprecations_5103": "'--ignoreDeprecations' 的值無效。", "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067": "'jsxFactory' 的值無效。'{0}' 不是有效的識別碼或限定名稱。", "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035": "'jsxFragmentFactory' 的值無效。'{0}' 不是有效的識別碼或限定名稱。", "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059": "'--reactNamespace' 的值無效。'{0}' 不是有效的識別碼。", @@ -967,15 +865,12 @@ "Its_element_type_0_is_not_a_valid_JSX_element_2789": "其元素類型 '{0}' 不是有效的 JSX 元素。", "Its_instance_type_0_is_not_a_valid_JSX_element_2788": "其執行個體類型 '{0}' 不是有效的 JSX 元素。", "Its_return_type_0_is_not_a_valid_JSX_element_2787": "其傳回型別 '{0}' 不是有效的 JSX 元素。", - "Its_type_0_is_not_a_valid_JSX_element_type_18053": "其類型 '{0}' 不是有效的 JSX 元素類型。", "JSDoc_0_1_does_not_match_the_extends_2_clause_8023": "JSDoc '@{0} {1}' 不符合 'extends {2}' 子句。", "JSDoc_0_is_not_attached_to_a_class_8022": "JSDoc ''@{0}' 未連結到類別。", "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028": "JSDoc '...' 只能出現在特徵標記的最後一個參數中。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024": "JSDoc '@param' 標記的名稱為 '{0}',但沒有為該名稱的參數。", "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029": "JSDoc '@param' 標籤的名稱為 '{0}',但沒有任何參數使用該名稱。如有陣列類型,則會與 'arguments' 相符。", - "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009": "JSDoc typedef 可以轉換成 TypeScript 類型。", "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021": "JSDoc '@typedef' 標記應具有類型註解,或者其後接著 '@property' 或 '@member' 標記。", - "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010": "JSDoc typedefs 可以轉換成 TypeScript 類型。", "JSDoc_types_can_only_be_used_inside_documentation_comments_8020": "JSDoc 類型只能在文件註解中使用。", "JSDoc_types_may_be_moved_to_TypeScript_types_80004": "JSDoc 類型可移為 TypeScript 類型。", "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000": "只能將非空白的 'expression' 指派給 JSX 屬性。", @@ -1005,8 +900,8 @@ "List_of_folders_to_include_type_definitions_from_6161": "要包含之類型定義所屬資料夾的清單。", "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168": "資料夾的清單。這些資料夾內所含的合併內容代表了專案在執行階段時的結果。", "Loading_0_from_the_root_dir_1_candidate_location_2_6109": "正在從根目錄 '{1}',候選位置 '{2}' 載入 '{0}'。", - "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098": "正在從 'node_modules' 資料夾載入模組 '{0}',目標檔案類型: {1}。", - "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095": "正在將模組載入為檔案/資料夾,候選模組位置 '{0}',目標檔案類型: {1}。", + "Loading_module_0_from_node_modules_folder_target_file_type_1_6098": "正在從 'node_modules' 資料夾載入模組 '{0}',目標檔案類型 '{1}'。", + "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095": "正在將模組載入為檔案/資料夾,候選模組位置 '{0}',目標檔案類型 '{1}'。", "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048": "地區設定的格式必須是 <語言> 或 <語言>-<國家/地區>。例如 '{0}' 或 '{1}'。", "Log_paths_used_during_the_moduleResolution_process_6706": "在 'moduleResolution' 處理序期間使用的記錄檔路徑。", "Longest_matching_prefix_for_0_is_1_6108": "符合 '{0}' 的前置詞最長為 '{1}'。", @@ -1015,7 +910,6 @@ "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "僅讓 keyof 傳回字串,而不是單一字串、數字或符號。舊版選項。", "Make_super_call_the_first_statement_in_the_constructor_90002": "使 'super()' 呼叫成為建構函式中的第一個陳述式", "Mapped_object_type_implicitly_has_an_any_template_type_7039": "對應的物件類型隱含具有 'any' 範本類型。", - "Mark_array_literal_as_const_90070": "標記陣列常值為常數", "Matched_0_condition_1_6403": "符合 '{0}' 條件 '{1}'。", "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "依預設比對包含模式 '**/*'", "Matched_by_include_pattern_0_in_1_1407": "依 '{1}' 中的包含模式 '{0}' 比對", @@ -1027,7 +921,6 @@ "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245": "因為方法 '{0}' 已標記為抽象,所以不可具有實作。", "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101": "匯出介面的方法 '{0}' 具有或使用私用模組 '{2}' 的名稱 '{1}'。", "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102": "匯出介面的方法 '{0}' 具有或使用私用名稱 '{1}'。", - "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008": "方法必須有具備 --isolatedDeclarations 的明確傳回型別註解。", "Method_not_implemented_95158": "未實作方法。", "Modifiers_cannot_appear_here_1184": "此處不得出現修飾元。", "Module_0_can_only_be_default_imported_using_the_1_flag_1259": "模組 '{0}' 只能依預設使用 '{1}' 旗標匯入", @@ -1043,8 +936,8 @@ "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614": "模組 '{0}' 沒有匯出的成員 '{1}'。您是要改用 'import {1} from {0}' 嗎?", "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437": "同名的區域宣告隱藏了模組 '{0}'。", "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498": "模組 '{0}' 使用 'export =',因而無法以 'export *' 的方式使用。", + "Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145": "此檔案未修改,因此模組 '{0}' 已解析為在 '{1}' 中所宣告的環境模組。", "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144": "模組 '{0}' 在檔案 '{1}' 中已解析為本機宣告的環境模組。", - "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263": "模組 '{0}' 已解析為 '{1}',但是尚未設定 '--allowArbitraryExtensions'。", "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142": "模組 '{0}' 已解析為 '{1}',但未設定 '--jsx'。", "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042": "模組 '{0}' 已解析為 '{1}',但未使用 '--resolveJsonModule'。", "Module_declaration_names_may_only_use_or_quoted_strings_1443": "模組宣告名稱只能使用 ' 或 \" 引用的字串。", @@ -1056,22 +949,15 @@ "Module_resolution_using_rootDirs_has_failed_6111": "使用 'rootDirs' 解析模組失敗。", "Modules_6244": "模組", "Move_labeled_tuple_element_modifiers_to_labels_95117": "將標記的元組元素修飾元移至標籤", - "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036": "將預設匯出中的運算式移動到變數,並在其中新增類型註釋。", "Move_to_a_new_file_95049": "移至新檔", - "Move_to_file_95178": "移動至檔案", "Multiple_consecutive_numeric_separators_are_not_permitted_6189": "不允許多個連續的數字分隔符號。", "Multiple_constructor_implementations_are_not_allowed_2392": "不允許多個建構函式實作。", "NEWLINE_6061": "新行", "Name_is_not_valid_95136": "名稱無效", - "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503": "只有以 'ES2018' 或更新版本為目標時,才可以使用具名擷取群組。", - "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515": "具有相同名稱的命名擷取群組必須互相排除。", - "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544": "當 'module' 設定為 '{0}' 時,不允許從 JSON 檔案具名匯入 ECMAScript 模組。", "Named_property_0_of_types_1_and_2_are_not_identical_2319": "類型 '{1}' 及 '{2}' 的具名屬性 '{0}' 不一致。", "Namespace_0_has_no_exported_member_1_2694": "命名空間 '{0}' 沒有匯出的成員 '{1}'。", "Namespace_must_be_given_a_name_1437": "必須為命名空間指定名稱。", "Namespace_name_cannot_be_0_2819": "命名空間名稱不得為 '{0}'。", - "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280": "啟用 '{0}' 時,在全域指令碼檔案中不允許命名空間。如果此檔案不是預定為全域指令碼,將 'moduleDetection' 設定為 'force',或新增空白的 'export {}' 陳述式。", - "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433": "裝飾項目和修飾元都無法套用至 'this' 參數。", "No_base_constructor_has_the_specified_number_of_type_arguments_2508": "沒有任何基底建構函式具有指定的類型引數數量。", "No_constituent_of_type_0_is_callable_2755": "無法呼叫 '{0}' 類型的任何構件。", "No_constituent_of_type_0_is_constructable_2759": "無法建構 '{0}' 類型的任何構件。", @@ -1084,18 +970,13 @@ "No_type_could_be_extracted_from_this_type_node_95134": "無法從此類型節點擷取任何類型", "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004": "速記屬性 '{0}' 的範圍中不存在任何值。請宣告一個值或提供初始設定式。", "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515": "非抽象類別 '{0}' 未實作從類別 '{2}' 繼承而來的抽象成員 '{1}'。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654": "下列 '{1}' 成員缺少非抽象類別 '{0}' 的實作: {2}。", - "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655": "下列 '{1}' 成員缺少非抽象類別 '{0}' 的實作: {2} 和 {3} 等。", "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653": "非抽象類別運算式未實作從類別 '{1}' 繼承而來的抽象成員 '{0}'。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656": "下列 '{0}' 成員缺少非抽象類別運算式的實作: {1}。", - "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650": "下列 '{0}' 成員缺少非抽象類別運算式的實作: {1} 和 {2} 等。", "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013": "非 Null 的判斷提示只可用於 TypeScript 檔案中。", "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090": "未設定 'baseUrl' 時,不得使用非相對路徑。是否忘記使用前置 './'?", "Non_simple_parameter_declared_here_1348": "非簡易參數已宣告於此處。", "Not_all_code_paths_return_a_value_7030": "部分程式碼路徑並未傳回值。", "Not_all_constituents_of_type_0_are_callable_2756": "'{0}' 類型的構件並非都可呼叫。", "Not_all_constituents_of_type_0_are_constructable_2760": "'{0}' 類型的構件並非都可構建。", - "Numbers_out_of_order_in_quantifier_1506": "數字在數量詞中失序。", "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008": "絕對值等於或大於 2^53 的數字常值過大,無法準確地表示為整數。", "Numeric_separators_are_not_allowed_here_6188": "這裡不允許數字分隔符號。", "Object_is_of_type_unknown_2571": "物件的類型為 '未知'。", @@ -1105,57 +986,46 @@ "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353": "物件常值只可指定已知的屬性,且類型 '{1}' 中沒有 '{0}'。", "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561": "物件常值只會指定已知的屬性,但類型 '{1}' 中沒有 '{0}'。您是否想要寫入 '{2}'?", "Object_literal_s_property_0_implicitly_has_an_1_type_7018": "物件常值的屬性 '{0}' 隱含了 '{1}' 類型。", - "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016": "無法使用 --isolatedDeclarations 推斷包含速記屬性的物件。", - "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015": "無法使用 --isolatedDeclarations 推斷包含擴張作業的物件。", "Octal_digit_expected_1178": "必須是八進位數字。", - "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536": "字元類別中不允許八進位逸出序列和反向參考。如果要做為逸出序列,請改用語法 '{0}'。", - "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487": "不允許八進位逸出序列。請使用語法 '{0}'。", - "Octal_literals_are_not_allowed_Use_the_syntax_0_1121": "不允許八進位常值。請使用語法 '{0}'。", - "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126": "'{0}.{1}' 的一個值是字串 '{2}',另一個值假設為未知的數值。", + "Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017": "八進位的常值類型必須使用 ES2015 語法。請使用語法 '{0}'。", + "Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018": "列舉成員初始設定式中不允許八進位常值。請使用語法 '{0}'。", + "Octal_literals_are_not_allowed_in_strict_mode_1121": "strict 模式中不允許八進位常值。", + "Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085": "當目標為 ECMAScript 5 及更高版本時,不可使用八進位的常值。請使用語法 '{0}'。", "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091": "'for...in' 陳述式中只可包含一個變數宣告。", "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188": "'for...of' 陳述式只能包含一個變數宣告。", "Only_a_void_function_can_be_called_with_the_new_keyword_2350": "只有 void 函式可以使用 'new' 關鍵字進行呼叫。", "Only_ambient_modules_can_use_quoted_names_1035": "只有環境模組可以使用括以引號的名稱。", "Only_amd_and_system_modules_are_supported_alongside_0_6082": "只有 'amd' 與 'system' 模組連同受支援 --{0}。", - "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017": "僅常數陣列可以使用 --isolatedDeclarations 推斷。", "Only_emit_d_ts_declaration_files_6014": "只發出 '.d.ts' 宣告檔案。", + "Only_named_exports_may_use_export_type_1383": "只有具名的匯出可以使用 'export type'。", + "Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033": "只有數值列舉才可以有計算成員,但此運算式的類型為 '{0}'。若您不需要詳細檢查,請考慮改用物件常值。", "Only_output_d_ts_files_and_not_JavaScript_files_6623": "只輸出 d.ts 檔案,而不是 JavaScript 檔案。", "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340": "只有基底類別之公開且受保護的方法,才可透過 'super' 關鍵字存取。", "Operator_0_cannot_be_applied_to_type_1_2736": "無法將運算子 '{0}' 套用至類型 '{1}'。", "Operator_0_cannot_be_applied_to_types_1_and_2_2365": "無法將運算子 '{0}' 套用至類型 '{1}' 和 '{2}'。", - "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519": "運算子不得混合在字元類別中。改為將運算子包裝在巢狀類別中。", "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619": "在編輯時從多專案參考檢查選擇一個專案。", - "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108": "已移除選項 '{0}={1}'。請將該選項從您的設定中移除。", - "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107": "選項 '{0}={1}' 已被取代,將在 TypeScript {2} 中停止運作。指定 compilerOption '\"ignoreDeprecations\": \"{3}\"' 以沉默此錯誤。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230": "只能在 'tsconfig.json' 檔案中指定 '{0}' 選項,或在命令列上將其設定為 'false' 或 'null'。", "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064": "只能在 'tsconfig.json' 檔案中指定 '{0}' 選項,或在命令列上將其設定為 'null'。", - "Option_0_can_only_be_specified_on_command_line_6266": "選項 '{0}' 只能在命令列中指定。", "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051": "只有在已提供選項 '--inlineSourceMap' 或選項 '--sourceMap' 時,才可使用選項 '{0}'。", - "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098": "只有當 'moduleResolution' 設定為 'node16'、'nodenext' 或 'bundler' 時,才可以使用選項 '{0}'。", - "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095": "只有當 'module' 設定為 'preserve'、'es2015' 或更新版本時,才能使用 '{0}' 選項。", "Option_0_cannot_be_specified_when_option_jsx_is_1_5089": "當選項 'jsx' 為 '{1}' 時,無法指定選項 '{0}'。", + "Option_0_cannot_be_specified_when_option_target_is_ES3_5048": "當選項 'target' 為 'ES3' 時,無法指定選項 '{0}'。", "Option_0_cannot_be_specified_with_option_1_5053": "不得同時指定選項 '{0}' 與選項 '{1}'。", "Option_0_cannot_be_specified_without_specifying_option_1_5052": "必須指定選項 '{1}' 才可指定選項 '{0}'。", "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069": "指定選項 '{0}' 時,必須指定選項 '{1}' 或選項 '{2}'。", - "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102": "已移除選項 '{0}'。請將該選項從您的設定中移除。", - "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101": "選項 '{0}' 已被取代,將在 TypeScript {1} 中停止運作。指定 compilerOption '\"ignoreDeprecations\": \"{2}\"' 以沉默此錯誤。", - "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104": "選項 '{0}' 為多餘且不得與選項 '{1}'一起指定。", - "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096": "僅在已設定 'noEmit' 或 'emitDeclarationOnly' 時,才能使用選項 'allowImportingTsExtensions'。", "Option_build_must_be_the_first_command_line_argument_6369": "選項 '--build' 必須是第一個命令列引數。", "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074": "只有在使用 tsconfig、發出至單一檔案,或指定 '--tsBuildInfoFile' 選項時,才可指定 '--incremental'選項。", "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047": "只有在提供選項 '--module' 或是 'target' 為 'ES2015' 或更高項目時,才可使用選項 'isolatedModules'。", - "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109": "當選項 'module' 設定為 '{1}' 時,選項 'moduleResolution' 必須設定為 '{0}' (或保留為未指定)。", - "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110": "當選項 'moduleResolution' 設定為 '{1}' 時,選項 'module' 必須設定為 '{0}'。", - "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091": "啟用 '{0}' 時,無法停用選項 'preserveConstEnums'。", + "Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091": "啟用 'isolatedModules' 時,無法停用選項 'preserveConstEnums'。", + "Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095": "只有當 'module' 設定為 'es2015' 或更高版本時,才能使用 'preserveValueImports' 選項。", "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042": "在命令列上,'project' 選項不得與原始程式檔並用。", - "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070": "當 'moduleResolution' 設定為 'classic' 時,不得指定 '--resolveJsonModule' 選項。", - "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071": "當 'module' 設定為 'none'、'system' 或 'umd' 時,不得指定 '--resolveJsonModule' 選項。", - "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105": "當 'module' 設定為 'UMD'、'AMD' 或 'System' 時,無法使用選項 'verbatimModuleSyntax'。", + "Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071": "只有在模組程式碼產生為 'commonjs'、'amd'、'es2015' 或 'esNext' 時,才可指定選項 '--resolveJsonModule'。", + "Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070": "指定選項 '-resolveJsonModule' 時,不可沒有 'node' 模組解析策略。", "Options_0_and_1_cannot_be_combined_6370": "無法合併選項 '{0}' 與 '{1}'。", "Options_Colon_6027": "選項:", "Output_Formatting_6256": "輸出格式", "Output_compiler_performance_information_after_building_6615": "在組建後輸出編譯器效能資訊。", "Output_directory_for_generated_declaration_files_6166": "所產生之宣告檔案的輸出目錄。", + "Output_file_0_from_project_1_does_not_exist_6309": "沒有來自專案 '{1}' 的輸出檔 '{0}'", "Output_file_0_has_not_been_built_from_source_file_1_6305": "輸出檔 '{0}' 並非從原始程式檔 '{1}' 建置。", "Output_from_referenced_project_0_included_because_1_specified_1411": "因為指定了 '{1}',所以包含參考的專案 '{0}' 輸出", "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412": "因為 '--module' 指定為 'none',所以包含參考的專案 '{0}' 輸出", @@ -1198,7 +1068,6 @@ "Parameter_declaration_expected_1138": "必須是參數宣告。", "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051": "參數具有名稱但沒有類型。您是指 '{0}: {1}' 嗎?", "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012": "參數修飾元只可用於 TypeScript 檔案中。", - "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011": "參數必須有具備 --isolatedDeclarations 的明確類型註釋。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036": "匯出類別中公用 setter '{0}' 的參數類型具有或是正在使用私用模組 '{2}' 中的名稱 '{1}'。", "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037": "匯出類別中公用 setter '{0}' 的參數類型具有或正在使用私用名稱 '{1}'。", "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034": "匯出類別中公用靜態 setter '{0}' 的參數類型具有或正在使用私用模組 '{2}' 中的名稱 '{1}'。", @@ -1224,25 +1093,21 @@ "Print_the_names_of_emitted_files_after_a_compilation_6652": "在編譯後列印已發出檔案的名稱。", "Print_this_message_6017": "列印這則訊息。", "Private_accessor_was_defined_without_a_getter_2806": "私人存取子已在不使用 getter 的情況下定義。", - "Private_field_0_must_be_declared_in_an_enclosing_class_1111": "私人欄位 '{0}' 必須在封閉類別中宣告。", "Private_identifiers_are_not_allowed_in_variable_declarations_18029": "變數宣告中不允許私人識別碼。", "Private_identifiers_are_not_allowed_outside_class_bodies_18016": "不允許私人識別碼位於類別主體外。", "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451": "私人識別碼只能在類別主體中使用,且只能做為類別成員宣告、屬性存取或 'in' 運算式左側的一部分使用", "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028": "只有當目標為 ECMAScript 2015 及更新版本時,才可使用私人識別碼。", "Private_identifiers_cannot_be_used_as_parameters_18009": "私人識別碼不可用作為參數。", "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105": "無法在型別參數上存取私人或受保護的成員 '{0}'。", - "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", - "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", + "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "因為專案 '{0}' 的相依性 '{1}' 發生錯誤,所以無法建置該專案", + "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "因為未建置專案 '{0}' 的相依性 '{1}',所以無法建置該專案", "Project_0_is_being_forcibly_rebuilt_6388": "正在強制重建專案 '{0}'", - "Project_0_is_out_of_date_because_1_6420": "由於 {1},專案 '{0}' 已過期。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412": "專案 '{0}' 已過期,因為 buildinfo 檔案 '{1}' 表示檔案 '{2}' 曾經是編譯的根檔案,但已不再是。", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419": "專案 '{0}' 已過期,因為 buildinfo 檔案 '{1}' 指出程式需要報告錯誤。", "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "因為 buildinfo 檔案 '{1}' 指出某些變更並未發出,所以專案 '{0}' 已過期", - "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406": "專案 '{0}' 已過期,因為 buildinfo 檔案 '{1}' 表示 compilerOptions 中有變更", "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "因為專案 '{0}' 的相依性 '{1}' 已過期,所以該專案已過期", "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "因為輸出 '{1}' 早於輸入 '{2}',所以專案 '{0}' 已過期", "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "因為輸出檔案 '{1}' 不存在,所以專案 '{0}' 已過期", "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "因為專案 '{0}' 的輸出使用版本 '{1}' 產生而成,與目前的版本 '{2}' 不同,所以該專案已過期", + "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "因為專案 '{0}' 的相依性 '{1}' 輸出已變更,所以該專案已過期", "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401": "專案 '{0}' 已過期,因為讀取檔案 '{1}' 時發生錯誤", "Project_0_is_up_to_date_6361": "專案 '{0}' 為最新狀態", "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "因為最新的輸入 '{1}' 早於最舊的輸出 '{2}',所以專案 '{0}' 為最新狀態", @@ -1284,7 +1149,7 @@ "Property_0_is_used_before_its_initialization_2729": "將屬性 '{0}' 初始化前已使用該屬性。", "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568": "類型 '{1}' 可能不存在屬性 '{0}'。您指的是 '{2}' 嗎?", "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606": "JSX 擴張屬性 (Attribute) 的屬性 (Property) '{0}' 不可指派給目標屬性 (Property)。", - "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094": "匯出之匿名類別類型的屬性 '{0}' 不可為私人或受保護的。", + "Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094": "匯出之類別運算式的屬性 '{0}' 可能為私人或受保護。", "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032": "匯出介面的屬性 '{0}' 具有或使用私用模組 '{2}' 中的名稱 '{1}'。", "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033": "匯出介面的屬性 '{0}' 具有或使用私用名稱 '{1}'。", "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411": "類型 '{1}' 的屬性 '{0}' 不可指派給 '{2}' 索引類型 '{3}'。", @@ -1292,10 +1157,9 @@ "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612": "屬性 '{0}' 將會覆寫 '{1}' 中的基底屬性。如果是故意覆寫的,請新增初始設定式。否則,請新增 'declare' 修飾元或移除多餘的宣告。", "Property_assignment_expected_1136": "必須是屬性指派。", "Property_destructuring_pattern_expected_1180": "必須是屬性解構模式。", - "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012": "屬性必須有具備 --isolatedDeclarations 的明確類型註釋。", "Property_or_signature_expected_1131": "必須是屬性或簽章。", "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328": "屬性值僅能為字串常值、數值常值、'true'、'false'、'null'、物件常值或陣列常值。", - "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179": "當目標為 'ES5' 時,為 'for-of'、擴張及解構中的可疊代物件提供完整的支援。", + "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179": "當目標為 'ES5' 或 'ES3' 時,為 'for-of'、擴張及解構提供完整的支援。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098": "匯出類別的公用方法 '{0}' 具有或使用外部模組 {2} 的名稱 '{1}',但無法命名。", "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099": "匯出類別的公用方法 '{0}' 具有或使用私用模組 '{2}' 的名稱 '{1}'。", "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100": "匯出類別的公用方法 '{0}' 具有或使用私用名稱 '{1}'。", @@ -1312,16 +1176,14 @@ "Raise_an_error_when_a_function_parameter_isn_t_read_6676": "當函式參數未讀取時引發錯誤。", "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052": "當運算式及宣告包含隱含的 'any' 類型時顯示錯誤。", "Raise_error_on_this_expressions_with_an_implied_any_type_6115": "對具有隱含 'any' 類型的 'this' 運算式引發錯誤。", - "Range_out_of_order_in_character_class_1517": "字元類別中的範圍失序。", - "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205": "啟用 '{0}' 時重新匯出類型需要使用 'export type'。", - "React_components_cannot_include_JSX_namespace_names_2639": "React 元件不得包含 JSX 命名空間名稱", + "Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205": "提供 '--isolatedModules' 旗標時,必須使用 'export type' 重新匯出類型。", "Redirect_output_structure_to_the_directory_6006": "將輸出結構重新導向至目錄。", "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617": "減少 TypeScript 自動載入的專案數目。", "Referenced_project_0_may_not_disable_emit_6310": "參考的專案 '{0}' 不得停用發出。", "Referenced_project_0_must_have_setting_composite_Colon_true_6306": "參考的專案 '{0}' 之設定 \"composite\" 必須為 true。", "Referenced_via_0_from_file_1_1400": "透過 '{0}' 從檔案 '{1}' 參考", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834": "當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 ECMAScript 匯入中需要明確的副檔名。建議為匯入路徑新增副檔名。", - "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835": "當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 ECMAScript 匯入中需要明確的副檔名。您是指 '{0}' 嗎?", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834": "當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。請考慮將副檔名新增到匯入路徑。", + "Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835": "當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。您是 指 '{0}' 嗎?", "Remove_a_list_of_directories_from_the_watch_process_6628": "從監看處理序移除目錄清單。", "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629": "從監視模式的處理移除檔案清單。", "Remove_all_unnecessary_override_modifiers_95163": "移除所有不必要的 'override' 修飾元", @@ -1356,15 +1218,11 @@ "Report_errors_in_js_files_8019": "報告 .js 檔案中的錯誤。", "Report_errors_on_unused_locals_6134": "回報未使用之區域變數的錯誤。", "Report_errors_on_unused_parameters_6135": "回報未使用之參數的錯誤。", - "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719": "匯出時需要足夠的註釋,讓其他工具可以簡單地產生宣告檔案。", "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717": "需要來自索引簽章的未宣告屬性,才能使用元素存取。", "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必要型別參數可能未遵循選擇性型別參數。", "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "從位置 '{1}' 的快取中找到模組 '{0}' 的解析。", "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "從位置 '{0}' 的快取記憶體找到類型參照指示詞 '{1}'。", - "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277": "解析非相對名稱失敗; 嘗試停用新式節點解析功能,以查看 npm 程式庫是否需要更新設定。", - "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279": "解析非相對名稱失敗; 嘗試使用 '--moduleResolution bundler' 查看專案是否可能需要更新設定。", "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只將 'keyof' 解析為字串值的屬性名稱 (無任何數字或符號)。", - "Resolved_under_condition_0_6414": "已在條件 '{0}' 下解析。", "Resolving_in_0_mode_with_conditions_1_6402": "正在以條件 {1} 在 {0} 模式中解析。", "Resolving_module_0_from_1_6086": "======== 正在從 '{1}' 解析模組 '{0}'。========", "Resolving_module_name_0_relative_to_base_url_1_2_6094": "正在解析與基底 URL '{1}' 相對的模組名稱 '{0}' - '{2}'。", @@ -1374,7 +1232,6 @@ "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123": "======== 正在解析類型參考指示詞 '{0}',包含檔案 '{1}',未設定根目錄。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127": "======== 正在解析類型參考指示詞 '{0}',未設定包含檔案,根目錄 '{1}'。========", "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128": "======== 正在解析類型參考指示詞 '{0}',未設定包含檔案,未設定根目錄。 ========", - "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265": "正在解析指定自訂 typeRoots 程式的類型參考指示詞,並跳過 'node_modules' 資料夾中的查詢。", "Resolving_with_primary_search_path_0_6121": "正在解析主要搜尋路徑 '{0}'。", "Rest_parameter_0_implicitly_has_an_any_type_7019": "剩餘參數 '{0}' 隱含了 'any[]' 類型。", "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047": "其餘參數 '{0}' 隱含 'any[]' 類型,但可從使用方式推斷更適合的類型。", @@ -1419,16 +1276,12 @@ "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391": "在舊程式的 '{1}' 中重複使用類型參考指示詞 '{0}' 的解析,已成功將其解析為套件識別碼為 '{3}' 的 '{2}'。", "Rewrite_all_as_indexed_access_types_95034": "將全部重寫為經過編製索引的存取類型", "Rewrite_as_the_indexed_access_type_0_90026": "重寫為索引存取類型 '{0}'", - "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421": "將相對匯入路徑中的 '.ts'、'.tsx'、'.mts'、'.cts' 檔案副檔名重寫為輸出檔案中的 JavaScript 對應檔名。", - "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869": "?? 的右運算元無法連線,因為左運算元永遠不會是 nullish。", "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122": "無法判斷根目錄,將略過主要搜尋路徑。", "Root_file_specified_for_compilation_1427": "為編譯指定的根檔案", "STRATEGY_6039": "策略", "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642": "儲存 .tsbuildinfo 檔案,以允許對專案進行累加編譯。", "Saw_non_matching_condition_0_6405": "儲存不相符條件 '{0}'。", "Scoped_package_detected_looking_in_0_6182": "偵測到範圍套件,正於 '{0}' 尋找", - "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418": "正在搜尋所有上階 node_modules 目錄,以取得後援延伸模組: {0}。", - "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417": "正在搜尋所有上階 node_modules 目錄,以取得慣用延伸模組: {0}。", "Selection_is_not_a_valid_statement_or_statements_95155": "選取項目非有效的一或多個陳述式", "Selection_is_not_a_valid_type_node_95133": "選取範圍不是有效的類型節點", "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705": "為發出的 JavaScript 設定 JavaScript 語言版本,並包含相容的程式庫宣告。", @@ -1442,14 +1295,11 @@ "Show_verbose_diagnostic_information_6150": "顯示詳細診斷資訊。", "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367": "顯示將會建置 (或刪除 - 若是指定有 '--clean') 的內容", "Signature_0_must_be_a_type_predicate_1224": "簽章 '{0}' 必須是型別述詞。", - "Signature_declarations_can_only_be_used_in_TypeScript_files_8017": "簽章宣告僅能在 TypeScript 檔案中使用。", - "Skip_building_downstream_projects_on_error_in_upstream_project_6640": "上游專案發生錯誤時,略過建置下游專案。", "Skip_type_checking_all_d_ts_files_6693": "略過所有 .d.ts 檔案的型別檢查。", "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692": "略過 TypeScript 中包含 .d.ts 檔案的型別檢查。", "Skip_type_checking_of_declaration_files_6012": "跳過宣告檔案的類型檢查。", - "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "Skipping build of project '{0}' because its dependency '{1}' has errors", - "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", - "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164": "正在跳過看起來像絕對 URI 的模組 '{0}',目標檔案類型: {1}。", + "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362": "因為專案 '{0}' 的相依性 '{1}' 發生錯誤,所以跳過建置該專案", + "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382": "因為未建置專案 '{0}' 的相依性 '{1}',所以正在跳過該專案的組建", "Source_from_referenced_project_0_included_because_1_specified_1414": "因為指定了 '{1}',所以包含參考的專案 '{0}' 來源", "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415": "因為 '--module' 指定為 'none',所以包含參考的專案 '{0}' 來源", "Source_has_0_element_s_but_target_allows_only_1_2619": "來源具有 {0} 個元素,但目標只允許 {1} 個。", @@ -1472,6 +1322,7 @@ "Specify_how_the_TypeScript_watch_mode_works_6715": "指定 TypeScript 監看式模式的運作方式。", "Specify_library_files_to_be_included_in_the_compilation_6079": "請指定要併入編譯中的程式庫檔案。", "Specify_module_code_generation_6016": "指定模組程式碼產生。", + "Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069": "指定模組解決方案策略: 'node' (Node.js) 或 'classic' (TypeScript 1.6 前)。", "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649": "指定使用 'jsx: react-jsx*' 時,用來匯入 JSX Factory 函式的模組指定名稱。", "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710": "指定多個資料夾,其作用類似 './node_modules/@types'。", "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633": "指定一或多個路徑或節點模組參考至繼承設定的基礎設定檔。", @@ -1509,10 +1360,8 @@ "Static_members_cannot_reference_class_type_parameters_2302": "靜態成員不得參考類別類型參數。", "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699": "靜態屬性 '{0}' 與建構函式 '{1}' 的內建屬性 'Function.{0}' 相衝突。", "String_literal_expected_1141": "必須是字串常值。", - "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057": "當 '--module' 旗標設定為 'es2015' 或 'es2020' 時,不支援字串常值匯入和匯出名稱。", "String_literal_with_double_quotes_expected_1327": "應有具雙引號的字串常值。", "Stylize_errors_and_messages_using_color_and_context_experimental_6073": "使用色彩及內容來設計錯誤與訊息的風格 (實驗)。", - "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504": "當有減號時,必須有子模式旗標。", "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717": "後續的屬性宣告必須具有相同的類型。屬性 '{0}' 的類型必須是 '{1}',但此處卻是類型 '{2}'。", "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403": "後續的變數宣告必須具有相同的類型。變數 '{0}' 的類型必須是 '{1}' 但卻是 '{2}'。", "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064": "模式 '{1}' 的替代 '{0}' 類型不正確,必須為 'string',但得到 '{2}'。", @@ -1531,16 +1380,14 @@ "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358": "選擇性鏈結中不允許已標記的範本運算式。", "Target_allows_only_0_element_s_but_source_may_have_more_2621": "目標只允許 {0} 個元素,但來源的元素可能較多。", "Target_requires_0_element_s_but_source_may_have_fewer_2620": "目標需要 {0} 個元素,但來源的元素可能較少。", - "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849": "目標特徵標記提供的引數過少。應有 {0} 個或更多,但只取得 {1} 個。", "The_0_modifier_can_only_be_used_in_TypeScript_files_8009": "'{0}' 修飾元只可用於 TypeScript 檔案中。", "The_0_operator_cannot_be_applied_to_type_symbol_2469": "無法將 '{0}' 運算子套用至類型 'symbol'。", "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447": "布林類型不允許有 '{0}' 運算子。請考慮改用 '{1}'。", "The_0_property_of_an_async_iterator_must_be_a_method_2768": "非同步迭代器的 '{0}' 屬性必須為方法。", "The_0_property_of_an_iterator_must_be_a_method_2767": "迭代器的 '{0}' 屬性必須為方法。", "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696": "'Object' 類型可指派給極少數的其他類型。要改用 'any' 類型嗎?", - "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502": "無法同時設定 Unicode (u) 旗標和 Unicode Sets (v) 旗標。", - "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496": "在 ES5 中,箭號函式內無法參考 'arguments' 物件。建議使用標準函式運算式。", - "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522": "在 ES5 中,非同步函式或方法無法參考 'arguments' 物件。建議使用標準函式或方法。", + "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "無法在 ES3 和 ES5 的箭號函式中參考 'arguments' 物件。請考慮使用標準函式運算式。", + "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "在 ES3 與 ES5 的非同步函式或方法中,無法參考 'arguments' 物件。請考慮使用標準函式或方法。", "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' 陳述式的主體不能是空白陳述式。", "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793": "對此實作的呼叫會成功,但多載的實作簽章未向外部顯示。", "The_character_set_of_the_input_files_6163": "輸入檔的字元集。", @@ -1562,13 +1409,11 @@ "The_global_type_JSX_0_may_not_have_more_than_one_property_2608": "全域類型 'JSX.{0}' 的屬性不得超過一個。", "The_implementation_signature_is_declared_here_2750": "實作簽章宣告於此處。", "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470": "將會組建至 CommonJS 輸出的檔案中不允許 'import.meta' 中繼屬性。", - "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、'node16'、'node18' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。", + "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343": "只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、, 'node16' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。", "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742": "'{0}' 的推斷類型無法在沒有 '{1}' 參考的情況下命名。其可能非可攜式。必須有型別註解。", "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088": "'{0}' 的推斷型別參考了具有迴圈結構且不是可完整序列化的型別。必須有型別註解。", "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527": "'{0}' 的推斷型別參考了無法存取的 '{1}' 型別。必須有型別註解。", "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056": "此節點的推斷型別超過編譯器將序列化的長度上限。需要明確的型別註解。", - "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850": "'using' 宣告的初始設定式必須是具備 '[Symbol.dispose]()' 方法的物件,或是 'null' 或 'undefined'。", - "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851": "'await using' 宣告的初始設定式必須是具備 '[Symbol.asyncDispose]()' 方法或 '[Symbol.dispose]5D;()' 方法的物件,或是 'null' 或 'undefined'。", "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032": "因為屬性 '{1}' 存在於多個部分,而且在某些部分為私人性質,所以交集 '{0}' 已縮減為 'never'。", "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031": "因為屬性 '{1}' 在某些部分有衝突的類型,所以交集 '{0}' 已縮減為 'never'。", "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795": "'intrinsic' 關鍵字只可用於宣告編譯器提供的內建類型。", @@ -1576,8 +1421,6 @@ "The_last_overload_gave_the_following_error_2770": "最後一個多載出現下列錯誤。", "The_last_overload_is_declared_here_2771": "最後一個多載宣告於此處。", "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491": "'for...in' 陳述式的左側不得為解構模式。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493": "'for...in' 陳述式左側不可為 'using' 宣告。", - "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494": "'for...in' 陳述式左側不可為 'await using' 宣告。", "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404": "'for...in' 陳述式左側不得使用類型註釋。", "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780": "'for...in' 陳述式的左側不可為選擇性屬性存取。", "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406": "'for...in' 陳述式的左邊必須是變數或屬性存取。", @@ -1589,7 +1432,6 @@ "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "算術運算的左側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。", "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "指派運算式的左側不可為選擇性屬性存取。", "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "指派運算式的左邊必須是變數或屬性存取。", - "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860": "'instanceof' 運算式的左側必須可指派至右側 '[Symbol.hasInstance]' 方法的第一個引數。", "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' 運算式左側必須是類型 'any'、物件類型或型別參數。", "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "對使用者顯示訊息時所使用的地區設定 (例如 'zh-tw')", "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "在 node_modules 及載入 JavaScript 檔案下搜尋時的最大相依性深度。", @@ -1603,18 +1445,15 @@ "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209": "專案根目錄模棱兩可,但需要用以解決檔案 '{1}' 中的匯出對應項目 '{0}'。請提供 'rootDir' 編譯器選項來釐清。", "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210": "專案根目錄模稜兩可,但需要在檔案 '{1}' 中解析匯入對應項目 '{0}'。請提供 'rootDir' 編譯器選項來釐清。", "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014": "無法在此類別內的類型 '{1}' 上存取屬性 '{0}',原因是另一個拼字相同的私人識別碼已將其陰影。", + "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380": "'get' 存取子的傳回型別必須可指派給其 'set' 存取子類型", "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237": "參數裝飾項目函式的傳回型別必須是 'void' 或 'any'。", "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236": "屬性裝飾項目函式的傳回型別必須是 'void' 或 'any'。", "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058": "非同步函式的傳回型別必須是有效的 Promise,或不得包含可呼叫的 'then' 成員。", - "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065": "非同步函式或方法的傳回類型必須為全域 Promise 類型。", "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "非同步函式或方法的傳回型別,必須為全域 Promise 類型。是否要寫入 'Promise<{0}>'?", "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' 陳述式的右方必須是類型 'any'、物件類型或型別參數,但此處為類型 '{0}'。", "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "算術運算的右側內容必須屬於 'any'、'number'、'bigint' 或列舉類型。", - "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359": "'instanceof' 運算式右側必須為 'any' 類型、類別、函式或其他可指派至 'Function' 介面型別的型別,或是具備 'Symbol.hasInstance' 方法的物件類型。", - "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848": "'instanceof' 運算式右側不可為具現化運算式。", + "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' 運算式的右側必須是 'any' 類型,或是可指派給 'Function' 介面類型的類型。", "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' 檔案的根值必須是物件。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278": "執行階段會以 {1} 個引數叫用裝飾項目,但裝飾項目需要 {0} 個。", - "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279": "執行階段會以 {1} 個引數叫用裝飾項目,但裝飾項目至少需要 {0} 個。", "The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' 的隱蔽宣告定義於此處", "The_signature_0_of_1_is_deprecated_6387": "'{1}' 的特徵標記 '{0}' 已淘汰。", "The_specified_path_does_not_exist_Colon_0_5058": "指定的路徑不存在: '{0}'。", @@ -1627,6 +1466,7 @@ "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "[類型修飾元] 無法在 [匯出類型]5D; 於其匯出陳述式上使用時,在命名的匯出上使用。", "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "[類型修飾元] 無法在 [匯入類型]5D; 於其匯入陳述式上使用時,在命名的匯入上使用。", "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "函式宣告的類型必須與函式的簽章相符。", + "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "沒有 'resolution-mode' 判斷提示,就無法命名此運算式的類型,這是不穩定的功能。請使用夜間 TypeScript 將此錯誤設為靜音。請嘗試使用 'npm install -D typescript@next' 更新。", "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "無法將此節點的類型序列化,因為無法將其屬性 '{0}' 序列化。", "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "非同步迭代器 '{0}()' 方法所傳回的類型,對具有 'value' 屬性的類型必須為 Promise。", "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "迭代器 '{0}()' 方法所傳回的類型必須具有 'value' 屬性。", @@ -1636,59 +1476,37 @@ "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189": "'for...in' 陳述式的變數宣告不得有初始設定式。", "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190": "'for...of' 陳述式的變數宣告不得有初始設定式。", "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "不支援 'with' 陳述式。'with' 區塊中的所有符號都會有類型 'any'。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280": "'{0}' 具有型別,不過在目前的 'moduleResolution' 設定下,無法解析此結果。建議更新為 'node16'、'nodenext' 或 'bundler'。", - "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278": "'{0}' 具有型別,不過在採用 package.json \"exports\" 的狀態下,無法解析此結果。'{1}' 程式庫可能需要更新其 package.json 或輸入。", - "There_is_no_capturing_group_named_0_in_this_regular_expression_1532": "此規則運算式中沒有名為 '{0}' 的擷取群組。", - "There_is_nothing_available_for_repetition_1507": "沒有可重複的內容。", - "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874": "此 JSX 標籤需要 '{0}' 在範圍內,但無法找到。", - "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875": "此 JSX 標籤需要模組路徑 '{0}' 存在,但無法找到。請確定您已安裝適當的套件類型。", "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "此 JSX 標籤的 '{0}' 屬性只能有一個 '{1}' 類型的子系,但提供的子系卻有多個。", "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "此 JSX 標籤的 '{0}' 屬性需要必須有多個子系的類型 '{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_only_0_capturing_groups_in_this_r_1533": "此反向參考參照的群組不存在。此規則運算式中只有 {0} 個擷取群組。", - "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870": "此二進位運算式一律不會是 nullish。是否缺少括弧?", - "This_character_cannot_be_escaped_in_a_regular_expression_1535": "此字元無法在規則運算式中逸出。", "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "此比較似乎是無意的,因為類型 '{0}' 和 '{1}' 沒有重疊。", "This_condition_will_always_return_0_2845": "此條件一律傳回 '{0}'。", "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "此條件一律會傳回 '{0}',因為 JavaScript 會依參照而非值比較物件。", "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "因為此 '{0}' 一律會被定義,所以此條件一律傳回 True。", "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "因為永遠會定義此函式,所以此條件永遠會傳回 true。您是要改為呼叫該條件嗎?", "This_constructor_function_may_be_converted_to_a_class_declaration_80002": "此建構函式可轉換為類別宣告。", - "This_expression_is_always_nullish_2871": "此運算式一律為 nullish.", "This_expression_is_not_callable_2349": "無法呼叫此運算式。", "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234": "因為此運算式為 'get' 存取子,所以無法呼叫。要在沒有 '()' 的情況下,使用該運算式嗎?", "This_expression_is_not_constructable_2351": "無法建構此運算式。", "This_file_already_has_a_default_export_95130": "此檔案已有預設匯出", - "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878": "重寫此匯入路徑並不安全,因為其解析到另一個專案,而專案輸出檔案之間的相對路徑與其輸入檔案之間的相對路徑不同。", - "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877": "這個匯入使用 '{0}' 副檔名來解析到輸入的 TypeScript 檔案,但在發出時不會重寫,因為其不是相對路徑。", + "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371": "因為 'importsNotUsedAsValues' 設為 'error',所以永遠不會使用此匯入作為值,且必須使用 'import type'。", "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233": "此宣告正在增加中。請考慮將正在增加的宣告移至相同的檔案中。", - "This_kind_of_expression_is_always_falsy_2873": "此種運算式的值一律為 false。", - "This_kind_of_expression_is_always_truthy_2872": "此種運算式的值一律為 true。", "This_may_be_converted_to_an_async_function_80006": "這可以轉換為非同步函式。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "此成員不能包含具有 'override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?", "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為包含此成員的類別 '{0}' 並未延伸另一個類別。", - "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為其名稱為動態。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "因為此成員並未在基底類別 '{0}' 中宣告,所以其不得具有 'override' 修飾元。", "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "此成員不能具有 'override' 修飾元,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?", "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "因為此成員包含的類別 '{0}' 並未延伸其他類別,所以其不得具有 'override' 修飾元。", - "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127": "此成員的名稱為動態,因此不能有 『override』 修飾元。", "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119": "此成員必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{0}' 中的成員。", "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114": "因為此成員會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。", "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116": "因為此成員會覆寫基底類別 '{0}' 中宣告的抽象方法,所以其必須具有 'override' 修飾元。", "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497": "只能以 ECMAScript 匯入/匯出來參考此模組,方法為開啟 '{0}' 旗標並參考其預設匯出。", "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594": "此模組使用 'export =' 宣告,只能在使用 '{0}' 旗標時搭配預設匯入使用。", - "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807": "此作業可簡化。此班次與 `{0} {1} {2}` 完全相同。", - "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012": "由於缺少傳回型別註解,故此多載會隱含傳回 '{0}' 型別。", "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394": "此多載簽章與其實作簽章不相容。", "This_parameter_is_not_allowed_with_use_strict_directive_1346": "不允許此參數搭配 'use strict' 指示詞使用。", "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120": "此參數屬性必須包含具有 '@override' 標籤的 JSDoc 註解,因為其會覆寫基底類別 '{0}' 中的成員。", "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115": "因為此參數屬性會覆寫基底類別 '{0}' 中的成員,所以其必須具有 'override' 修飾元。", - "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509": "無法在子模式內切換此規則運算式旗標。", - "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "只有以 '{0}' 或更新版本作為目標時,才能使用規則運算式旗標。", - "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "此相對匯入路徑在重寫時是不安全的,因為其看起來像檔案名稱,但實際上解析為 \"{0}\"。", "This_spread_always_overwrites_this_property_2785": "此展開會永遠覆寫此屬性。", - "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "啟用 'erasableSyntaxOnly' 時,不允許使用此語法。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "此語法是保留在具有 mts 或 cts 副檔名的檔案中。新增尾端逗號或明確條件約束。", "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "此語法會保留在具有 mts 或 cts 副檔名的檔案中。請改用 `as` 運算式。", "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "此語法需要已匯入的協助程式,但找不到模組 '{0}'。", @@ -1700,15 +1518,15 @@ "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481": "若要將此檔案轉換為 ECMAScript 模組,請將其副檔名變更為 '{0}',或將欄位 `\"type\": \"module\"` 新增至 '{1}'。", "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480": "若要將此檔案轉換為 ECMAScript 模組,請將其副檔名變更為 '{0}',或使用 `{ \"type\": \"module\" }` 建立本機 package.json 檔案。", "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483": "若要將此檔案轉換為 ECMAScript 模組,請建立具有 `{ \"type\": \"module\" }` 的本機 package.json 檔案。", - "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。", - "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854": "只有當 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',且 'target' 選項設為 'es2017' 或更高版本時,才能在最上層使用 'await using' 陳述式。", + "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "只有在 'module' 選項設定為 'es2022'、'esnext'、'system'、'node16' 或 'nodenext',而且 'target' 選項設定為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。", "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": ".d.ts 檔案中的最上層宣告必須以 'declare' 或 'export' 修飾元開頭。", - "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16'、'node18'、'nodenext' 或 'preserve',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。", + "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432": "只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16' 或 'nodenext',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。", "Trailing_comma_not_allowed_1009": "尾端不得為逗號。", "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153": "以個別模組的形式轉換每個檔案的語言 (類似於 'ts.transpileModule')。", "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035": "如有 `npm i --save-dev @types/{1}`,請嘗試使用,或新增包含 `declare module '{0}';` 的宣告 (.d.ts) 檔案", "Trying_other_entries_in_rootDirs_6110": "正在嘗試 'rootDirs' 中的其他項目。", "Trying_substitution_0_candidate_module_location_Colon_1_6093": "正在嘗試替代 '{0}',候選模組位置: '{1}'。", + "Tuple_members_must_all_have_names_or_all_not_have_names_5084": "元組成員必須全數有名稱或都沒有名稱。", "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493": "長度為 '{1}' 的元組類型 '{0}' 在索引 '{2}' 沒有項目。", "Tuple_type_arguments_circularly_reference_themselves_4110": "元組類型引數會循環參考自身。", "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802": "只有使用 '--downlevelIteration' 旗標或 'es2015' 或更新版本的 '--target' 時,才能逐一查看類型 '{0}'。", @@ -1721,11 +1539,10 @@ "Type_0_has_no_matching_index_signature_for_type_1_2537": "類型 '{0}' 沒有與類型 '{1}' 相符的索引簽章。", "Type_0_has_no_properties_in_common_with_type_1_2559": "類型 '{0}' 與類型 '{1}' 沒有任何共通的屬性。", "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635": "類型 '{0}' 沒有適用類型引數清單的簽章。", - "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862": "類型 '{0}' 為泛型型別,只能針對讀取編製索引。", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739": "類型 '{0}' 在類型 '{1}' 中缺少下列屬性: {2}", "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740": "類型 '{0}' 在類型 '{1}' 中缺少下列屬性: {2},以及另外 {3} 個。", "Type_0_is_not_a_constructor_function_type_2507": "類型 '{0}' 不是建構函式類型。", - "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055": "在 ES5 中,'{0}' 型別並非有效的非同步傳回型別,因為其不會參考與 Promise 相容的建構函式值。", + "Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055": "類型 '{0}' 不是 ES5/ES3 中的有效非同步函式傳回型別,因為它不是指與 Promise 相容的建構函式值。", "Type_0_is_not_an_array_type_2461": "類型 '{0}' 不是陣列類型。", "Type_0_is_not_an_array_type_or_a_string_type_2495": "類型 '{0}' 不是陣列類型或字串類型。", "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549": "類型 '{0}' 不是陣列類型或字串類型,或沒有會傳回迭代器的 '[Symbol.iterator]()' 方法。", @@ -1734,7 +1551,6 @@ "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820": "不得將類型 '{0}' 指派給類型 '{1}'。您指的是 '{2}' 嗎?", "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719": "無法將類型 '{0}' 指派給類型 '{1}'。有兩種使用此名稱的不同類型存在,但彼此並不相關。", "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636": "無法將型別 '{0}' 指派給型別 '{1}',如變異數註釋所隱含。", - "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033": "無法將類型 '{0}' 指派給計算之列舉成員值所需的 '{1}'。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標屬性的類型。", "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "類型 '{0}' 無法指派給類型為具有 'exactOptionalPropertyTypes: true' 的類型 '{1}'。請考慮將 'undefined' 新增到目標的類型。", "Type_0_is_not_comparable_to_type_1_2678": "類型 '{0}' 無法和類型 '{1}' 比較。", @@ -1754,16 +1570,14 @@ "Type_argument_expected_1140": "必須是型別引數。", "Type_argument_list_cannot_be_empty_1099": "型別引數清單不得為空白。", "Type_arguments_can_only_be_used_in_TypeScript_files_8011": "類型引數只可用於 TypeScript 檔案中。", + "Type_arguments_cannot_be_used_here_1342": "此處不得使用型別引數。", "Type_arguments_for_0_circularly_reference_themselves_4109": "'{0}' 的類型引數會循環參考自身。", "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016": "類型判斷提示運算式只可用於 TypeScript 檔案中。", "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626": "來源中位於 {0} 的類型與目標中位於 {1} 的類型不相容。", "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627": "來源中位於 {0} 到 {1} 的類型與目標中位於 {2} 的類型不相容。", - "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039": "型別如包含私人名稱 '{0}',則無法搭配 --isolatedDeclarations 使用。", "Type_declaration_files_to_be_included_in_compilation_6124": "要包含在編譯內的類型宣告檔案。", "Type_expected_1110": "必須是類型。", "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456": "輸入匯入判斷提示應該只有一個索引鍵 - 'resolution-mode' - 值為 'import' 或 'require'。", - "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464": "型別匯入屬性應只有一個索引鍵 'resolution-mode',且值為 'import' 或 'require'。", - "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542": "從 CommonJS 模組匯入 ECMAScript 模組的類型必須有 'resolution-mode' 屬性。", "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589": "類型具現化過深,可能會有無限深度。", "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062": "類型在其本身 'then' 方法的完成回撥中直接或間接受到參考。", "Type_library_referenced_via_0_from_file_1_1402": "透過 '{0}' 從檔案 '{1}' 參考的型別程式庫", @@ -1774,7 +1588,6 @@ "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322": "'yield*' 運算元的反覆項目類型必須是有效的 Promise,或不得包含可呼叫的 'then' 成員。", "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615": "屬性 '{0}' 的類型在對應的類型 '{1}' 中會循環參考自己。", "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321": "非同步產生器中的 'yield' 運算元類型必須是有效的 Promise,或不得包含可呼叫的 'then' 成員。", - "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541": "從 CommonJS 模組進行僅限類型匯入 ECMAScript 模組時,必須有 'resolution-mode' 屬性。", "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038": "類型源自此匯入。無法呼叫或建構命名空間樣式的匯入,而且可能會在執行階段導致失敗。請考慮改用預設匯入或於此處匯入 require。", "Type_parameter_0_has_a_circular_constraint_2313": "類型參數 '{0}' 具有循環條件約束。", "Type_parameter_0_has_a_circular_default_2716": "型別參數 '{0}' 包含循環的預設值。", @@ -1810,8 +1623,6 @@ "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241": "無法解析以運算式形式呼叫之方法裝飾項目的簽章。", "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239": "無法解析以運算式形式呼叫之參數裝飾項目的簽章。", "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240": "無法解析以運算式形式呼叫之屬性裝飾項目的簽章。", - "Undetermined_character_escape_1513": "未定字元逸出。", - "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508": "未預期的 '{0}'。您是要使用反斜線將其逸出嗎?", "Unexpected_end_of_text_1126": "未預期的文字結尾。", "Unexpected_keyword_or_identifier_1434": "未預期的關鍵字或識別碼。", "Unexpected_token_1012": "未預期的語彙基元。", @@ -1820,19 +1631,12 @@ "Unexpected_token_Did_you_mean_or_gt_1382": "未預期的語彙基元。您是指 `{'>'}` 或 `>` 嗎?", "Unexpected_token_Did_you_mean_or_rbrace_1381": "未預期的語彙基元。您是指 `{'}'}` 或 `}` 嗎?", "Unexpected_token_expected_1179": "未預期的語彙基元。必須是 '{'。", - "Unicode_escape_sequence_cannot_appear_here_17021": "此處不可出現 Unicode 逸出序列。", - "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538": "只有在設定 Unicode (u) 旗標或 Unicode Sets (v) 旗標後,才能使用 Unicode 逸出序列。", - "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530": "只有在設定 Unicode (u) 旗標或 Unicode Sets (v) 旗標後,才能使用 Unicode 屬性值運算式。", - "Unknown_Unicode_property_name_1524": "未知的 Unicode 屬性名稱。", - "Unknown_Unicode_property_name_or_value_1529": "未知的 Unicode 屬性名稱或值。", - "Unknown_Unicode_property_value_1526": "未知的 Unicode 屬性值。", "Unknown_build_option_0_5072": "未知的組建選項 '{0}'。", "Unknown_build_option_0_Did_you_mean_1_5077": "未知的組建選項 '{0}'。您是指 '{1}' 嗎?", "Unknown_compiler_option_0_5023": "不明的編譯器選項 '{0}'。", "Unknown_compiler_option_0_Did_you_mean_1_5025": "未知的編譯器選項 '{0}'。您是指 '{1}' 嗎?", "Unknown_keyword_or_identifier_Did_you_mean_0_1435": "未知的關鍵字或識別碼。您是不是指 '{0}'?", "Unknown_option_excludes_Did_you_mean_exclude_6114": "選項 'excludes' 未知。您是指 'exclude' 嗎?", - "Unknown_regular_expression_flag_1499": "未知的規則運算式旗標。", "Unknown_type_acquisition_option_0_17010": "未知的類型取得選項 '{0}'。", "Unknown_type_acquisition_option_0_Did_you_mean_1_17018": "未知的類型擷取選項 '{0}'。您是指 '{1}' 嗎?", "Unknown_watch_option_0_5078": "未知的監看選項 '{0}'。", @@ -1847,21 +1651,15 @@ "Unused_label_7028": "未使用的標籤。", "Unused_ts_expect_error_directive_2578": "未使用的 '@ts-expect-error' 指示詞。", "Update_import_from_0_90058": "從 \"{0}\" 更新匯入", - "Update_modifiers_of_0_90061": "更新 '{0}' 的修飾元", + "Updating_output_of_project_0_6373": "正在更新專案 '{0}' 的輸出...", "Updating_output_timestamps_of_project_0_6359": "正在更新專案 '{0}' 的輸出時間戳記...", "Updating_unchanged_output_timestamps_of_project_0_6371": "正在更新專案 '{0}' 的未更變輸出時間戳記...", "Use_0_95174": "使用 `{0}`。", - "Use_0_instead_5106": "請改用 '{0}'。", "Use_Number_isNaN_in_all_conditions_95175": "在所有條件中都使用 'Number.isNaN'。", "Use_element_access_for_0_95145": "對 '{0}' 使用元素存取", "Use_element_access_for_all_undeclared_properties_95146": "對所有未宣告的屬性使用元素存取。", - "Use_import_type_95180": "請使用 'import type'", "Use_synthetic_default_member_95016": "使用綜合 'default' 成員。", - "Use_the_package_json_exports_field_when_resolving_package_imports_6408": "解析套件匯入時,請使用 package.json 'exports' 欄位。", - "Use_the_package_json_imports_field_when_resolving_imports_6409": "解析匯入時,請使用 package.json 'imports' 欄位。", - "Use_type_0_95181": "請使用 'type {0}'", "Using_0_subpath_1_with_target_2_6404": "使用 '{0}' 子路徑 '{1}' 與目標 '{2}'。", - "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879": "使用 JSX 片段需要片段中心 '{0}' 在範圍內,但無法找到。", "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494": "只有在 ECMAScript 5 及更高版本中,才可在 'for...of' 陳述式中使用字串。", "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915": "使用 --build、-b 會讓 tsc 的行為較編譯器更像是建置協調器。這可用於觸發建置複合專案,您可以在以下位置深入了解: {0}", "Using_compiler_options_of_project_reference_redirect_0_6215": "正在使用專案參考重新導向 '{0}' 的編譯器選項。", @@ -1876,8 +1674,6 @@ "Variable_declaration_expected_1134": "必須是變數宣告。", "Variable_declaration_list_cannot_be_empty_1123": "變數宣告清單不得為空白。", "Variable_declaration_not_allowed_at_this_location_1440": "此位置不允許變數宣告。", - "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010": "變數必須有具備 --isolatedDeclarations 的明確型別註釋。", - "Variables_with_multiple_declarations_cannot_be_inlined_95186": "無法內嵌有多個宣告的變數。", "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625": "來源中位於 {0} 的可變元素與目標中位於 {1} 的元素不相符。", "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637": "只有物件、函式、建構函式和對應類型的類型別名才支援差異註釋。", "Version_0_6029": "版本 {0}", @@ -1891,11 +1687,9 @@ "When_type_checking_take_into_account_null_and_undefined_6699": "當型別檢查時,請將 'null' 和 'undefined' 納入考慮。", "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "是否要將已過期的主控台輸出,維持在監看模式下,而非清除螢幕。", "Wrap_all_invalid_characters_in_an_expression_container_95109": "將所有無效字元包裝在運算式容器中", - "Wrap_all_invalid_decorator_expressions_in_parentheses_95195": "將所有無效的裝飾項目運算式以括弧包住", "Wrap_all_object_literal_with_parentheses_95116": "使用括弧括住所有物件常值", "Wrap_all_unparented_JSX_in_JSX_fragment_95121": "將所有無上層 JSX 包裝至 JSX 片段中", "Wrap_in_JSX_fragment_95120": "包裝至 JSX 片段中", - "Wrap_in_parentheses_95194": "以括弧包住", "Wrap_invalid_character_in_an_expression_container_95108": "包裝在運算式容器中的字元無效", "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113": "使用括弧括住下列必須是物件常值的主體", "You_can_learn_about_all_of_the_compiler_options_at_0_6913": "您可以在以下位置了解所有編譯器選項: {0}", @@ -1908,25 +1702,20 @@ "_0_and_1_index_signatures_are_incompatible_2330": "'{0}' 和 '{1}' 索引簽章不相容。", "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076": "'{0}' 與 '{1}' 作業無法在沒有括號的情況下同時使用。", "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710": "'{0}' 指定了兩次。將會覆寫名為 '{0}' 的屬性。", - "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019": "型別以 '{0}' 作為結尾,並非有效的 TypeScript 語法。您是要寫入 '{1}' 嗎?", - "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020": "型別以 '{0}' 作為開頭,並非有效的 TypeScript 語法。您是要寫入 '{1}' 嗎?", "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596": "只能透過開啟 'esModuleInterop' 旗標並使用預設匯入來匯入 '{0}'。", "_0_can_only_be_imported_by_using_a_default_import_2595": "只能使用預設匯入來匯入 '{0}'。", "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598": "只能使用 'require' 呼叫,或透過開啟 'esModuleInterop' 旗標並使用預設匯入,來匯入 '{0}'。", "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597": "只能使用 'require' 呼叫或預設匯入來匯入 '{0}'。", "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616": "只能使用 'import {1} = require({2})' 或預設匯入來匯入 '{0}'。", "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617": "只能使用 'import {1} = require({2})',或透過開啟 'esModuleInterop' 旗標並使用預設匯入,來匯入 '{0}'。", + "_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208": "因為系統將 '{0}' 視為全域指令檔,所以無法在 '--isolatedModules' 下編譯。請新增匯入、匯出或空白的 'export {}' 陳述式,使其成為模組。", "_0_cannot_be_used_as_a_JSX_component_2786": "'{0}' 不能用作 JSX 元件。", "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362": "因為 '{0}' 是使用 'export type' 匯出的,所以無法作為值使用。", "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361": "因為 '{0}' 是使用 'import type' 匯入的,所以無法作為值使用。", "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747": "'{0}' 元件不接受文字作為子項目。JSX 中的文字具有類型 'string',但 '{1}' 需要的類型為 '{2}'。", "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082": "'{0}' 可以使用與 '{1}' 無關的任意類型來具現化。", - "_0_declarations_can_only_be_declared_inside_a_block_1156": "只能在區塊內宣告 '{0}' 宣告。", "_0_declarations_can_only_be_used_in_TypeScript_files_8006": "'{0}' 宣告只可用於 TypeScript 檔案中。", - "_0_declarations_may_not_have_binding_patterns_1492": "'{0}' 宣告可能沒有繫結模式。", - "_0_declarations_must_be_initialized_1155": "必須初始化 '{0}' 宣告。", "_0_expected_1005": "必須是 '{0}'。", - "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055": "'{0}' 具有字串型別,但在啟用 'isolatedModules' 的狀態下,其語法必須是可辨識的字串語法。", "_0_has_no_exported_member_named_1_Did_you_mean_2_2724": "'{0}' 沒有任何名稱為 '{1}' 的已匯出成員。您是指 '{2}' 嗎?", "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050": "'{0}' 隱含 '{1}' 傳回型別,但可從使用方式推斷更適合的類型。", "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023": "'{0}' 因為沒有傳回型別註解,且在其中一個傳回運算式中直接或間接參考了自己,所以隱含了傳回型別 'any'。", @@ -1935,7 +1724,7 @@ "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' 索引類型 '{1}' 無法指派給 '{2}' 索引類型 '{3}'。", "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' 為基元,但 '{1}' 為包裝函式物件。建議盡可能使用 '{0}'。", "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042": "'{0}' 為類型,無法匯入 JavaScript 檔案。在 JSDoc 類型註釋中使用 '{1}'。", - "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484": "'{0}' 為型別,且在啟用 'verbatimModuleSyntax' 的狀態下,必須透過僅限型別的匯入作業匯入。", + "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' 是類型,而且當 'preserveValueImports' 和 'isolatedModules' 都啟用時,必須使用僅類型匯入來匯入。", "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' 是未使用的 '{1}' 重新命名。您是否想要使用它作為類型註釋?", "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' 可指派給 '{1}' 類型的條件約束,但可能會將 '{1}' 以不同的條件約束 '{2}' 子類型來具現化。", "_0_is_automatically_exported_here_18044": "'{0}' 會自動匯出到此處。", @@ -1958,14 +1747,11 @@ "_0_list_cannot_be_empty_1097": "'{0}' 清單不得為空白。", "_0_modifier_already_seen_1030": "已有 '{0}' 修飾元。", "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274": "'{0}' 修飾元只能出現在類別、介面或型別別名的型別參數上", - "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277": "'{0}' 修飾元只能出現在方法或類別,或是函式的型別參數中。", "_0_modifier_cannot_appear_on_a_constructor_declaration_1089": "建構函式宣告不得有 '{0}' 修飾元。", "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044": "模組或命名空間元素不能有 '{0}' 修飾元。", "_0_modifier_cannot_appear_on_a_parameter_1090": "參數不得有 '{0}' 修飾元。", "_0_modifier_cannot_appear_on_a_type_member_1070": "類型成員不能有 '{0}' 修飾元。", "_0_modifier_cannot_appear_on_a_type_parameter_1273": "型別參數上不能出現 '{0}' 修飾元", - "_0_modifier_cannot_appear_on_a_using_declaration_1491": "'{0}' 修飾元不可出現在 'using' 宣告中。", - "_0_modifier_cannot_appear_on_an_await_using_declaration_1495": "'{0}' 修飾元不可出現在 'await using' 宣告中。", "_0_modifier_cannot_appear_on_an_index_signature_1071": "索引簽章不能有 '{0}' 修飾元。", "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031": "不得在此種類別項目中使用 '{0}' 修飾元。", "_0_modifier_cannot_be_used_here_1042": "無法在此處使用 '{0}' 修飾元。", @@ -1973,7 +1759,6 @@ "_0_modifier_cannot_be_used_with_1_modifier_1243": "'{0}' 修飾元無法與 '{1}' 修飾元並用。", "_0_modifier_cannot_be_used_with_a_private_identifier_18019": "'{0}' 修飾元不可搭配私人識別碼一起使用。", "_0_modifier_must_precede_1_modifier_1029": "'{0}' 修飾元必須在 '{1}' 修飾元之前。", - "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531": "'\\{0}' 後必須是以大括弧括住的 Unicode 屬性值運算式。", "_0_needs_an_explicit_type_annotation_2782": "'{0}' 需要明確的型別註解。", "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702": "'{0}' 只參考類型,但在這裡用作命名空間。", "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693": "'{0}' 只會參考類型,但此處將其用為值。", @@ -1981,12 +1766,8 @@ "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585": "「{0}」僅指一種類型,但在此卻作為值使用。要變更您的目標程式庫嗎? 請嘗試將 `lib` 編譯器選項變更為 es2015 或更新版本。", "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686": "'{0}' 指的是全域的 UMD,但目前的檔案為模組。請考慮改為新增匯入。", "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749": "'{0}' 為值,但在此處卻作為類型使用。您是否是指 'typeof {0}'?", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291": "'{0}' 會解析為宣告,且在啟用 '{1}' 的狀態下,必須先在此檔案中必須標記為僅限型別,才可重新匯出。建議使用匯入了 '{0}' 的 'import type'。", - "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292": "'{0}' 會解析為宣告,且在啟用 '{1}' 的狀態下,必須先在此檔案中必須標記為僅限型別,才可重新匯出。建議使用 'export type { {0} as default }'。", - "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485": "'{0}' 會解析為僅限型別的宣告,且在啟用 'verbatimModuleSyntax' 的狀態下,必須透過僅限型別的匯入作業匯入。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289": "'{0}' 會解析為僅限型別的宣告,且在啟用 '{1}' 的狀態下,必須先在此檔案中必須標記為僅限型別,才可重新匯出。建議使用匯入了 '{0}' 的 'import type'。", - "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290": "'{0}' 會解析為僅限型別的宣告,且在啟用 '{1}' 的狀態下,必須先在此檔案中必須標記為僅限型別,才可重新匯出。建議使用 'export type { {0} as default }'。", - "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448": "'{0}' 會解析為僅限型別的宣告,且在啟用 '{1}' 的狀態下,必須透過僅限型別的重新匯出作業重新匯出。", + "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446": "'{0}' 解析為僅類型宣告,而且當 'preserveValueImports' 和 'isolatedModules' 都啟用時,必須使用僅類型匯入來匯入。", + "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448": "'{0}' 解析為僅類型宣告,而且必須在啟用 'isolatedModules' 時,使用僅類型重新匯出來重新匯出。", "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258": "'{0}' 應該在設定 json 檔案的 'compilerOptions' 物件內設定。", "_0_tag_already_specified_1223": "已指定 '{0}' 標記。", "_0_was_also_declared_here_6203": "'{0}' 也已宣告於此處。", @@ -1999,22 +1780,19 @@ "and_here_6204": "及此處。", "arguments_cannot_be_referenced_in_property_initializers_2815": "屬性初始設定式中不得參考 'arguments'。", "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 處理具有 imports、exports、import.meta, jsx (具有 jsx: react-jsx) 的檔案,或以 esm 格式 (具有 module: node16+) 作為模組。", - "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 運算式無法在類別靜態區塊內使用。", "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "當檔案為模組時,只允許 'await' 運算式位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。", "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308": "只允許在非同步函式中與模組的最上層使用 'await' 運算式。", "await_expressions_cannot_be_used_in_a_parameter_initializer_2524": "'await' 運算式不得用於參數初始設定式。", "await_has_no_effect_on_the_type_of_this_expression_80007": "'await' 對此運算式的類型沒有作用。", - "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853": "當檔案為模組時,僅能在檔案最上層使用 'await using' 陳述式,但此檔案沒有任何匯入或匯出。建議新增空白的 'export {}',讓此檔案成為模組。", - "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852": "'await using' 陳述式僅能在非同步函式內,以及模組的最上層使用。", - "await_using_statements_cannot_be_used_inside_a_class_static_block_18054": "'await using' 陳述式無法在類別靜態區塊內使用。", "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106": "'baseUrl' 選項已設為 '{0}'。此值將用於解析非相對的模組名稱 '{1}'。", - "c_must_be_followed_by_an_ASCII_letter_1512": "'\\c' 後必須是 ASCII 字母。", "can_only_be_used_at_the_start_of_a_file_18026": "'#!' 只能用於檔案開頭。", "case_or_default_expected_1130": "必須是 'case' 或 'default'。", "catch_or_finally_expected_1472": "必須是 'catch' 或 'finally'。", + "const_declarations_can_only_be_declared_inside_a_block_1156": "只能在區塊內宣告 'const' 宣告。", + "const_declarations_must_be_initialized_1155": "'const' 宣告必須初始化。", "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477": "'const' 列舉成員初始設定式已評估為非有限值。", "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478": "'const' 列舉成員初始設定式已評估為不允許的值 'NaN'。", - "const_enum_member_initializers_must_be_constant_expressions_2474": "常數列舉成員初始設定式必須為常數運算式。", + "const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474": "常數列舉成員初始設定式只能包含常值與其他計算列舉值。", "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475": "'const' 列舉只可用於屬性或索引存取運算式中,或用於匯入宣告、匯出指派或類型查詢的右側。", "constructor_cannot_be_used_as_a_parameter_property_name_2398": "'constructor' 不能作為參數屬性名稱使用。", "constructor_is_a_reserved_word_18012": "'#constructor' 為保留字。", @@ -2033,14 +1811,13 @@ "file_6025": "檔案", "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' 迴圈位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。", "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103": "只允許在非同步函式中與模組的最上層使用 'for await' 迴圈。", - "for_await_loops_cannot_be_used_inside_a_class_static_block_18038": "'for await' 迴圈無法在類別靜態區塊內使用。", "get_and_set_accessors_cannot_declare_this_parameters_2784": "'get' 和 'set' 存取子不可宣告 'this' 參數。", "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908": "如果指定 `files`,則為 `[]`,否則為 `[\"**/*\"]5D;`", "implements_clause_already_seen_1175": "已經有 'implements' 子句。", "implements_clauses_can_only_be_used_in_TypeScript_files_8005": "'implements' 子句只可用於 TypeScript 檔案中。", "import_can_only_be_used_in_TypeScript_files_8002": "'import ... =' 只可用於 TypeScript 檔案中。", "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338": "只允許在條件式類型的 'extends' 子句中使用 'infer' 宣告。", - "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510": "'\\k' 後必須是以角括弧括住的擷取群組名稱。", + "let_declarations_can_only_be_declared_inside_a_block_1157": "只能在區塊內宣告 'let' 宣告。", "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480": "'let' 或 'const' 宣告中不得使用 'let' 作為名稱。", "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010": "模組 === `AMD` 或 `UMD` 或 `System` 或 `ES6`,則為 `Classic`,否則為 `Node`", "module_system_or_esModuleInterop_6904": "模組 === \"system\" 或 esModuleInterop", @@ -2055,7 +1832,6 @@ "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' 沒有任何符合 '{0}' 版本的 'typesVersions' 項目。", "package_json_had_a_falsy_0_field_6220": "'package.json' 具有假的 '{0}' 欄位。", "package_json_has_0_field_1_that_references_2_6101": "'package.json' 有參考 '{2}' 的 '{0}' 欄位 '{1}'。", - "package_json_has_a_peerDependencies_field_6281": "'package.json' 具有 'peerDependencies' 欄位。", "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209": "'package.json' 具有 'typesVersions' 項目 '{0}',其非有效的 SemVer 範圍。", "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208": "'package.json' 具有符合編譯器版本 '{1}' 的 'typesVersions' 項目 '{0}',要尋找符合模組名稱 '{2}' 的模式。", "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206": "'package.json' 具有限定版本路徑對應的 'typesVersions' 欄位。", @@ -2063,14 +1839,13 @@ "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275": "package.js 範圍 '{0}' 對指定名稱 '{1}' 的目標具有無效類型", "package_json_scope_0_has_no_imports_defined_6273": "package.js 範圍 '{0}' 沒有定義的匯入。", "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091": "'paths' 選項已指定,將尋找符合模組名稱 '{0}' 的模式。", - "q_is_only_available_inside_character_class_1511": "'\\q' 僅可在字元類別中使用。", - "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521": "'\\q' 後必須是字串 (可選擇以大括弧括住該字串)。", "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "'readonly' 修飾元只能出現在屬性宣告或索引簽章。", "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "'readonly' 類型修飾元只可用於陣列與元組常值類型。", "require_call_may_be_converted_to_an_import_80005": "'require' 呼叫可能會轉換為匯入。", + "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "只有當 'moduleResolution' 為 'node16' 或 'nodenext' 時,才支援 'resolution-mode' 判斷提示。", + "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "'resolution-mode' 判斷提示不穩定。使用夜間 TypeScript 將此錯誤設為靜音。請嘗試使用 'npm install -D typescript@next' 更新。", "resolution_mode_can_only_be_set_for_type_only_imports_1454": "只能針對僅限輸入的匯入設定 'resolution-mode'。", "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "'resolution-mode' 是輸入匯入判斷提示唯一有效的索引鍵。", - "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463": "'resolution-mode' 是型別匯入屬性唯一有效的索引鍵。", "resolution_mode_should_be_either_require_or_import_1453": "`resolution-mode` 應該是 `require` 或 `import`。", "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107": "'rootDirs' 選項已設定。該選項將用於解析相對的模組名稱 '{0}'。", "super_can_only_be_referenced_in_a_derived_class_2335": "只有衍生類別中才可參考 'super'。", @@ -2086,11 +1861,11 @@ "this_cannot_be_referenced_in_a_computed_property_name_2465": "計算的屬性名稱中不得參考 'this'。", "this_cannot_be_referenced_in_a_module_or_namespace_body_2331": "模組或命名空間主體中不得參考 'this'。", "this_cannot_be_referenced_in_a_static_property_initializer_2334": "靜態屬性初始設定式中不得參考 'this'。", + "this_cannot_be_referenced_in_constructor_arguments_2333": "建構函式引數中不得參考 'this'。", "this_cannot_be_referenced_in_current_location_2332": "目前的位置中不得參考 'this'。", "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683": "因為 'this' 沒有型別註解,所以隱含具有類型 'any'。", "true_for_ES2022_and_above_including_ESNext_6930": "ES2022 及以上為 true,包括 ESNext。", "true_if_composite_false_otherwise_6909": "如果為 `composite`,則為 `true`,否則為 `false`", - "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411": "當 'moduleResolution' 為 'node16'、'nodenext' 或 'bundler' 時,為 `true`; 否則為 `false`。", "tsc_Colon_The_TypeScript_Compiler_6922": "tsc: TypeScript 編譯器", "type_Colon_6902": "輸入:", "unique_symbol_types_are_not_allowed_here_1335": "這裡不允許 'unique symbol' 型別。", diff --git a/node_modules/typescript/package.json b/node_modules/typescript/package.json index 282058f44..5bf538ba3 100644 --- a/node_modules/typescript/package.json +++ b/node_modules/typescript/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "5.8.3", + "version": "5.5.4", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ @@ -13,11 +13,11 @@ "javascript" ], "bugs": { - "url": "https://github.com/microsoft/TypeScript/issues" + "url": "https://github.com/Microsoft/TypeScript/issues" }, "repository": { "type": "git", - "url": "https://github.com/microsoft/TypeScript.git" + "url": "https://github.com/Microsoft/TypeScript.git" }, "main": "./lib/typescript.js", "typings": "./lib/typescript.d.ts", @@ -39,49 +39,45 @@ "!**/.gitattributes" ], "devDependencies": { - "@dprint/formatter": "^0.4.1", - "@dprint/typescript": "0.93.3", + "@dprint/formatter": "^0.3.0", + "@dprint/typescript": "0.91.0", "@esfx/canceltoken": "^1.0.0", - "@eslint/js": "^9.17.0", - "@octokit/rest": "^21.0.2", - "@types/chai": "^4.3.20", - "@types/diff": "^5.2.3", + "@octokit/rest": "^20.1.1", + "@types/chai": "^4.3.16", + "@types/microsoft__typescript-etw": "^0.1.3", "@types/minimist": "^1.2.5", - "@types/mocha": "^10.0.10", + "@types/mocha": "^10.0.6", "@types/ms": "^0.7.34", "@types/node": "latest", "@types/source-map-support": "^0.5.10", - "@types/which": "^3.0.4", - "@typescript-eslint/rule-tester": "^8.18.1", - "@typescript-eslint/type-utils": "^8.18.1", - "@typescript-eslint/utils": "^8.18.1", - "azure-devops-node-api": "^14.1.0", - "c8": "^10.1.3", - "chai": "^4.5.0", + "@types/which": "^3.0.3", + "@typescript-eslint/eslint-plugin": "^7.11.0", + "@typescript-eslint/parser": "^7.11.0", + "@typescript-eslint/utils": "^7.11.0", + "azure-devops-node-api": "^13.0.0", + "c8": "^9.1.0", + "chai": "^4.4.1", "chalk": "^4.1.2", "chokidar": "^3.6.0", "diff": "^5.2.0", - "dprint": "^0.47.6", - "esbuild": "^0.24.0", - "eslint": "^9.17.0", - "eslint-formatter-autolinkable-stylish": "^1.4.0", - "eslint-plugin-regexp": "^2.7.0", - "fast-xml-parser": "^4.5.1", - "glob": "^10.4.5", - "globals": "^15.13.0", - "hereby": "^1.10.0", - "jsonc-parser": "^3.3.1", - "knip": "^5.41.0", + "dprint": "^0.46.1", + "esbuild": "^0.21.4", + "eslint": "^8.57.0", + "eslint-formatter-autolinkable-stylish": "^1.3.0", + "eslint-plugin-local": "^4.2.2", + "fast-xml-parser": "^4.4.0", + "glob": "^10.4.1", + "hereby": "^1.8.9", + "jsonc-parser": "^3.2.1", "minimist": "^1.2.8", - "mocha": "^10.8.2", + "mocha": "^10.4.0", "mocha-fivemat-progress-reporter": "^0.1.0", - "monocart-coverage-reports": "^2.11.4", "ms": "^2.1.3", - "playwright": "^1.49.1", + "node-fetch": "^3.3.2", + "playwright": "^1.44.1", "source-map-support": "^0.5.21", - "tslib": "^2.8.1", - "typescript": "^5.7.2", - "typescript-eslint": "^8.18.1", + "tslib": "^2.6.2", + "typescript": "^5.4.5", "which": "^3.0.1" }, "overrides": { @@ -97,7 +93,6 @@ "clean": "hereby clean", "gulp": "hereby", "lint": "hereby lint", - "knip": "hereby knip", "format": "dprint fmt", "setup-hooks": "node scripts/link-hooks.mjs" }, @@ -107,6 +102,7 @@ "path": false, "crypto": false, "buffer": false, + "@microsoft/typescript-etw": false, "source-map-support": false, "inspector": false, "perf_hooks": false @@ -116,5 +112,5 @@ "node": "20.1.0", "npm": "8.19.4" }, - "gitHead": "68cead182cc24afdc3f1ce7c8ff5853aba14b65a" + "gitHead": "c8a7d589e647e19c94150d9892909f3aa93e48eb" } diff --git a/node_modules/undici-types/LICENSE b/node_modules/undici-types/LICENSE deleted file mode 100644 index e7323bb52..000000000 --- a/node_modules/undici-types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Matteo Collina and Undici 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/undici-types/balanced-pool.d.ts b/node_modules/undici-types/balanced-pool.d.ts index 7f930f410..d1e937587 100644 --- a/node_modules/undici-types/balanced-pool.d.ts +++ b/node_modules/undici-types/balanced-pool.d.ts @@ -4,8 +4,6 @@ import { URL } from 'url' export default BalancedPool -type BalancedPoolConnectOptions = Omit; - declare class BalancedPool extends Dispatcher { constructor(url: string | string[] | URL | URL[], options?: Pool.Options); @@ -17,13 +15,4 @@ declare class BalancedPool extends Dispatcher { closed: boolean; /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ destroyed: boolean; - - // Override dispatcher APIs. - override connect( - options: BalancedPoolConnectOptions - ): Promise; - override connect( - options: BalancedPoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void; } diff --git a/node_modules/undici-types/client.d.ts b/node_modules/undici-types/client.d.ts index d0a5379f3..74948b15f 100644 --- a/node_modules/undici-types/client.d.ts +++ b/node_modules/undici-types/client.d.ts @@ -3,8 +3,6 @@ import { TlsOptions } from 'tls' import Dispatcher from './dispatcher' import buildConnector from "./connector"; -type ClientConnectOptions = Omit; - /** * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default. */ @@ -16,15 +14,6 @@ export class Client extends Dispatcher { closed: boolean; /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */ destroyed: boolean; - - // Override dispatcher APIs. - override connect( - options: ClientConnectOptions - ): Promise; - override connect( - options: ClientConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void; } export declare namespace Client { @@ -88,7 +77,7 @@ export declare namespace Client { */ allowH2?: boolean; /** - * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame. + * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overriden by a SETTINGS remote frame. * @default 100 */ maxConcurrentStreams?: number diff --git a/node_modules/undici-types/diagnostics-channel.d.ts b/node_modules/undici-types/diagnostics-channel.d.ts index a037d1e0b..85d448239 100644 --- a/node_modules/undici-types/diagnostics-channel.d.ts +++ b/node_modules/undici-types/diagnostics-channel.d.ts @@ -9,7 +9,8 @@ declare namespace DiagnosticsChannel { completed: boolean; method?: Dispatcher.HttpMethod; path: string; - headers: any; + headers: string; + addHeader(key: string, value: string): Request; } interface Response { statusCode: number; diff --git a/node_modules/undici-types/dispatcher.d.ts b/node_modules/undici-types/dispatcher.d.ts index 1b4c9c74a..816db19d2 100644 --- a/node_modules/undici-types/dispatcher.d.ts +++ b/node_modules/undici-types/dispatcher.d.ts @@ -18,9 +18,6 @@ declare class Dispatcher extends EventEmitter { /** Starts two-way communications with the requested resource. */ connect(options: Dispatcher.ConnectOptions): Promise; connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void; - /** Compose a chain of dispatchers */ - compose(dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher; - compose(...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher; /** Performs an HTTP request. */ request(options: Dispatcher.RequestOptions): Promise; request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void; @@ -96,8 +93,6 @@ declare class Dispatcher extends EventEmitter { } declare namespace Dispatcher { - export interface ComposedDispatcher extends Dispatcher {} - export type DispatcherComposeInterceptor = (dispatch: Dispatcher['dispatch']) => Dispatcher['dispatch']; export interface DispatchOptions { origin?: string | URL; path: string; @@ -105,7 +100,7 @@ declare namespace Dispatcher { /** Default: `null` */ body?: string | Buffer | Uint8Array | Readable | null | FormData; /** Default: `null` */ - headers?: IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null; + headers?: IncomingHttpHeaders | string[] | null; /** Query string params to be embedded in the request URL. Default: `null` */ query?: Record; /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */ @@ -126,7 +121,6 @@ declare namespace Dispatcher { expectContinue?: boolean; } export interface ConnectOptions { - origin: string | URL; path: string; /** Default: `null` */ headers?: IncomingHttpHeaders | string[] | null; @@ -136,8 +130,6 @@ declare namespace Dispatcher { opaque?: unknown; /** Default: 0 */ maxRedirections?: number; - /** Default: false */ - redirectionLimitReached?: boolean; /** Default: `null` */ responseHeader?: 'raw' | null; } @@ -148,8 +140,6 @@ declare namespace Dispatcher { signal?: AbortSignal | EventEmitter | null; /** Default: 0 */ maxRedirections?: number; - /** Default: false */ - redirectionLimitReached?: boolean; /** Default: `null` */ onInfo?: (info: { statusCode: number, headers: Record }) => void; /** Default: `null` */ @@ -173,8 +163,6 @@ declare namespace Dispatcher { signal?: AbortSignal | EventEmitter | null; /** Default: 0 */ maxRedirections?: number; - /** Default: false */ - redirectionLimitReached?: boolean; /** Default: `null` */ responseHeader?: 'raw' | null; } @@ -217,15 +205,13 @@ declare namespace Dispatcher { export type StreamFactory = (data: StreamFactoryData) => Writable; export interface DispatchHandlers { /** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */ - onConnect?(abort: (err?: Error) => void): void; + onConnect?(abort: () => void): void; /** Invoked when an error has occurred. */ onError?(err: Error): void; /** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */ onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void; - /** Invoked when response is received, before headers have been read. **/ - onResponseStarted?(): void; /** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */ - onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean; + onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void): boolean; /** Invoked when response payload data is received. */ onData?(chunk: Buffer): boolean; /** Invoked when response payload and trailers have been received and the request has completed. */ @@ -240,11 +226,10 @@ declare namespace Dispatcher { * @link https://fetch.spec.whatwg.org/#body-mixin */ interface BodyMixin { - readonly body?: never; + readonly body?: never; // throws on node v16.6.0 readonly bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; - bytes(): Promise; formData(): Promise; json(): Promise; text(): Promise; diff --git a/node_modules/undici-types/env-http-proxy-agent.d.ts b/node_modules/undici-types/env-http-proxy-agent.d.ts deleted file mode 100644 index d6509dc67..000000000 --- a/node_modules/undici-types/env-http-proxy-agent.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import Agent from './agent' -import Dispatcher from './dispatcher' - -export default EnvHttpProxyAgent - -declare class EnvHttpProxyAgent extends Dispatcher { - constructor(opts?: EnvHttpProxyAgent.Options) - - dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean; -} - -declare namespace EnvHttpProxyAgent { - export interface Options extends Agent.Options { - /** Overrides the value of the HTTP_PROXY environment variable */ - httpProxy?: string; - /** Overrides the value of the HTTPS_PROXY environment variable */ - httpsProxy?: string; - /** Overrides the value of the NO_PROXY environment variable */ - noProxy?: string; - } -} diff --git a/node_modules/undici-types/errors.d.ts b/node_modules/undici-types/errors.d.ts index f6fb73b5a..7923ddd97 100644 --- a/node_modules/undici-types/errors.d.ts +++ b/node_modules/undici-types/errors.d.ts @@ -125,25 +125,4 @@ declare namespace Errors { name: 'ResponseExceededMaxSizeError'; code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE'; } - - export class RequestRetryError extends UndiciError { - constructor ( - message: string, - statusCode: number, - headers?: IncomingHttpHeaders | string[] | null, - body?: null | Record | string - ); - name: 'RequestRetryError'; - code: 'UND_ERR_REQ_RETRY'; - statusCode: number; - data: { - count: number; - }; - headers: Record; - } - - export class SecureProxyConnectionError extends UndiciError { - name: 'SecureProxyConnectionError'; - code: 'UND_ERR_PRX_TLS'; - } } diff --git a/node_modules/undici-types/eventsource.d.ts b/node_modules/undici-types/eventsource.d.ts deleted file mode 100644 index deccd7300..000000000 --- a/node_modules/undici-types/eventsource.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { MessageEvent, ErrorEvent } from './websocket' -import Dispatcher from './dispatcher' - -import { - EventListenerOptions, - AddEventListenerOptions, - EventListenerOrEventListenerObject -} from './patch' - -interface EventSourceEventMap { - error: ErrorEvent - message: MessageEvent - open: Event -} - -interface EventSource extends EventTarget { - close(): void - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 - onerror: (this: EventSource, ev: ErrorEvent) => any - onmessage: (this: EventSource, ev: MessageEvent) => any - onopen: (this: EventSource, ev: Event) => any - readonly readyState: 0 | 1 | 2 - readonly url: string - readonly withCredentials: boolean - - addEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | AddEventListenerOptions - ): void - addEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | AddEventListenerOptions - ): void - removeEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | EventListenerOptions - ): void - removeEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | EventListenerOptions - ): void -} - -export declare const EventSource: { - prototype: EventSource - new (url: string | URL, init?: EventSourceInit): EventSource - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 -} - -interface EventSourceInit { - withCredentials?: boolean, - dispatcher?: Dispatcher -} diff --git a/node_modules/undici-types/fetch.d.ts b/node_modules/undici-types/fetch.d.ts index 7e94375ec..fa4619c91 100644 --- a/node_modules/undici-types/fetch.d.ts +++ b/node_modules/undici-types/fetch.d.ts @@ -27,29 +27,12 @@ export type BodyInit = | null | string -export class BodyMixin { +export interface BodyMixin { readonly body: ReadableStream | null readonly bodyUsed: boolean readonly arrayBuffer: () => Promise readonly blob: () => Promise - /** - * @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments. - * It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows: - * - * @example - * ```js - * import { Busboy } from '@fastify/busboy' - * import { Readable } from 'node:stream' - * - * const response = await fetch('...') - * const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } }) - * - * // handle events emitted from `busboy` - * - * Readable.fromWeb(response.body).pipe(busboy) - * ``` - */ readonly formData: () => Promise readonly json: () => Promise readonly text: () => Promise @@ -85,7 +68,7 @@ export declare class Headers implements SpecIterable<[string, string]> { readonly keys: () => SpecIterableIterator readonly values: () => SpecIterableIterator readonly entries: () => SpecIterableIterator<[string, string]> - readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]> + readonly [Symbol.iterator]: () => SpecIterator<[string, string]> } export type RequestCache = @@ -122,10 +105,10 @@ export interface RequestInit { method?: string keepalive?: boolean headers?: HeadersInit - body?: BodyInit | null + body?: BodyInit redirect?: RequestRedirect integrity?: string - signal?: AbortSignal | null + signal?: AbortSignal credentials?: RequestCredentials mode?: RequestMode referrer?: string @@ -152,7 +135,7 @@ export type RequestRedirect = 'error' | 'follow' | 'manual' export type RequestDuplex = 'half' -export declare class Request extends BodyMixin { +export declare class Request implements BodyMixin { constructor (input: RequestInfo, init?: RequestInit) readonly cache: RequestCache @@ -163,14 +146,22 @@ export declare class Request extends BodyMixin { readonly method: string readonly mode: RequestMode readonly redirect: RequestRedirect - readonly referrer: string - readonly referrerPolicy: ReferrerPolicy + readonly referrerPolicy: string readonly url: string readonly keepalive: boolean readonly signal: AbortSignal readonly duplex: RequestDuplex + readonly body: ReadableStream | null + readonly bodyUsed: boolean + + readonly arrayBuffer: () => Promise + readonly blob: () => Promise + readonly formData: () => Promise + readonly json: () => Promise + readonly text: () => Promise + readonly clone: () => Request } @@ -190,7 +181,7 @@ export type ResponseType = export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308 -export declare class Response extends BodyMixin { +export declare class Response implements BodyMixin { constructor (body?: BodyInit, init?: ResponseInit) readonly headers: Headers @@ -201,6 +192,15 @@ export declare class Response extends BodyMixin { readonly url: string readonly redirected: boolean + readonly body: ReadableStream | null + readonly bodyUsed: boolean + + readonly arrayBuffer: () => Promise + readonly blob: () => Promise + readonly formData: () => Promise + readonly json: () => Promise + readonly text: () => Promise + readonly clone: () => Response static error (): Response diff --git a/node_modules/undici-types/filereader.d.ts b/node_modules/undici-types/filereader.d.ts index d1c0f9ef7..f05d231b2 100644 --- a/node_modules/undici-types/filereader.d.ts +++ b/node_modules/undici-types/filereader.d.ts @@ -1,7 +1,7 @@ /// import { Blob } from 'buffer' -import { DOMException, EventInit } from './patch' +import { DOMException, Event, EventInit, EventTarget } from './patch' export declare class FileReader { __proto__: EventTarget & FileReader diff --git a/node_modules/undici-types/formdata.d.ts b/node_modules/undici-types/formdata.d.ts index e676b11ec..df29a572d 100644 --- a/node_modules/undici-types/formdata.d.ts +++ b/node_modules/undici-types/formdata.d.ts @@ -2,7 +2,7 @@ /// import { File } from './file' -import { SpecIterableIterator } from './fetch' +import { SpecIterator, SpecIterableIterator } from './fetch' /** * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs. diff --git a/node_modules/undici-types/handlers.d.ts b/node_modules/undici-types/handlers.d.ts index afcda9a3e..eb4f5a9e8 100644 --- a/node_modules/undici-types/handlers.d.ts +++ b/node_modules/undici-types/handlers.d.ts @@ -1,15 +1,9 @@ import Dispatcher from "./dispatcher"; -export declare class RedirectHandler implements Dispatcher.DispatchHandlers { - constructor( - dispatch: Dispatcher, - maxRedirections: number, - opts: Dispatcher.DispatchOptions, - handler: Dispatcher.DispatchHandlers, - redirectionLimitReached: boolean - ); +export declare class RedirectHandler implements Dispatcher.DispatchHandlers{ + constructor (dispatch: Dispatcher, maxRedirections: number, opts: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers) } -export declare class DecoratorHandler implements Dispatcher.DispatchHandlers { - constructor(handler: Dispatcher.DispatchHandlers); +export declare class DecoratorHandler implements Dispatcher.DispatchHandlers{ + constructor (handler: Dispatcher.DispatchHandlers) } diff --git a/node_modules/undici-types/index.d.ts b/node_modules/undici-types/index.d.ts index f6be35cd9..4589845b4 100644 --- a/node_modules/undici-types/index.d.ts +++ b/node_modules/undici-types/index.d.ts @@ -14,15 +14,9 @@ import MockPool from'./mock-pool' import MockAgent from'./mock-agent' import mockErrors from'./mock-errors' import ProxyAgent from'./proxy-agent' -import EnvHttpProxyAgent from './env-http-proxy-agent' -import RetryHandler from'./retry-handler' -import RetryAgent from'./retry-agent' import { request, pipeline, stream, connect, upgrade } from './api' -import interceptors from './interceptors' -export * from './util' export * from './cookies' -export * from './eventsource' export * from './fetch' export * from './file' export * from './filereader' @@ -33,7 +27,7 @@ export * from './content-type' export * from './cache' export { Interceptable } from './mock-interceptor' -export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent } +export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler } export default Undici declare namespace Undici { @@ -41,8 +35,7 @@ declare namespace Undici { var Pool: typeof import('./pool').default; var RedirectHandler: typeof import ('./handlers').RedirectHandler var DecoratorHandler: typeof import ('./handlers').DecoratorHandler - var RetryHandler: typeof import ('./retry-handler').default - var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor + var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor var BalancedPool: typeof import('./balanced-pool').default; var Client: typeof import('./client').default; var buildConnector: typeof import('./connector').default; @@ -67,5 +60,4 @@ declare namespace Undici { var File: typeof import('./file').File; var FileReader: typeof import('./filereader').FileReader; var caches: typeof import('./cache').caches; - var interceptors: typeof import('./interceptors').default; } diff --git a/node_modules/undici-types/interceptors.d.ts b/node_modules/undici-types/interceptors.d.ts index 24166b61f..047ac175d 100644 --- a/node_modules/undici-types/interceptors.d.ts +++ b/node_modules/undici-types/interceptors.d.ts @@ -1,17 +1,5 @@ import Dispatcher from "./dispatcher"; -import RetryHandler from "./retry-handler"; -export default Interceptors; +type RedirectInterceptorOpts = { maxRedirections?: number } -declare namespace Interceptors { - export type DumpInterceptorOpts = { maxSize?: number } - export type RetryInterceptorOpts = RetryHandler.RetryOptions - export type RedirectInterceptorOpts = { maxRedirections?: number } - export type ResponseErrorInterceptorOpts = { throwOnError: boolean } - - export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor -} +export declare function createRedirectInterceptor (opts: RedirectInterceptorOpts): Dispatcher.DispatchInterceptor diff --git a/node_modules/undici-types/mock-interceptor.d.ts b/node_modules/undici-types/mock-interceptor.d.ts index 33f3f14d1..6b3961c04 100644 --- a/node_modules/undici-types/mock-interceptor.d.ts +++ b/node_modules/undici-types/mock-interceptor.d.ts @@ -71,11 +71,11 @@ declare namespace MockInterceptor { export interface MockResponseCallbackOptions { path: string; + origin: string; method: string; - headers?: Headers | Record; - origin?: string; - body?: BodyInit | Dispatcher.DispatchOptions['body'] | null; - maxRedirections?: number; + body?: BodyInit | Dispatcher.DispatchOptions['body']; + headers: Headers | Record; + maxRedirections: number; } export type MockResponseDataHandler = ( diff --git a/node_modules/undici-types/package.json b/node_modules/undici-types/package.json index d2f33bc7e..be7aa4cd5 100644 --- a/node_modules/undici-types/package.json +++ b/node_modules/undici-types/package.json @@ -1,6 +1,6 @@ { "name": "undici-types", - "version": "6.21.0", + "version": "5.26.5", "description": "A stand-alone types package for Undici", "homepage": "https://undici.nodejs.org", "bugs": { diff --git a/node_modules/undici-types/patch.d.ts b/node_modules/undici-types/patch.d.ts index 4ac38450e..3871acfeb 100644 --- a/node_modules/undici-types/patch.d.ts +++ b/node_modules/undici-types/patch.d.ts @@ -6,6 +6,44 @@ export type DOMException = typeof globalThis extends { DOMException: infer T } ? T : any +export type EventTarget = typeof globalThis extends { EventTarget: infer T } + ? T + : { + addEventListener( + type: string, + listener: any, + options?: any, + ): void + dispatchEvent(event: Event): boolean + removeEventListener( + type: string, + listener: any, + options?: any | boolean, + ): void + } + +export type Event = typeof globalThis extends { Event: infer T } + ? T + : { + readonly bubbles: boolean + cancelBubble: () => void + readonly cancelable: boolean + readonly composed: boolean + composedPath(): [EventTarget?] + readonly currentTarget: EventTarget | null + readonly defaultPrevented: boolean + readonly eventPhase: 0 | 2 + readonly isTrusted: boolean + preventDefault(): void + returnValue: boolean + readonly srcElement: EventTarget | null + stopImmediatePropagation(): void + stopPropagation(): void + readonly target: EventTarget | null + readonly timeStamp: number + readonly type: string + } + export interface EventInit { bubbles?: boolean cancelable?: boolean diff --git a/node_modules/undici-types/pool.d.ts b/node_modules/undici-types/pool.d.ts index bad5ba030..7747d4826 100644 --- a/node_modules/undici-types/pool.d.ts +++ b/node_modules/undici-types/pool.d.ts @@ -5,8 +5,6 @@ import Dispatcher from "./dispatcher"; export default Pool -type PoolConnectOptions = Omit; - declare class Pool extends Dispatcher { constructor(url: string | URL, options?: Pool.Options) /** `true` after `pool.close()` has been called. */ @@ -15,15 +13,6 @@ declare class Pool extends Dispatcher { destroyed: boolean; /** Aggregate stats for a Pool. */ readonly stats: TPoolStats; - - // Override dispatcher APIs. - override connect( - options: PoolConnectOptions - ): Promise; - override connect( - options: PoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void; } declare namespace Pool { diff --git a/node_modules/undici-types/proxy-agent.d.ts b/node_modules/undici-types/proxy-agent.d.ts index 32e3acbda..96b26381c 100644 --- a/node_modules/undici-types/proxy-agent.d.ts +++ b/node_modules/undici-types/proxy-agent.d.ts @@ -1,7 +1,9 @@ import Agent from './agent' import buildConnector from './connector'; +import Client from './client' import Dispatcher from './dispatcher' import { IncomingHttpHeaders } from './header' +import Pool from './pool' export default ProxyAgent diff --git a/node_modules/undici-types/readable.d.ts b/node_modules/undici-types/readable.d.ts index c4f052af0..4549a8c87 100644 --- a/node_modules/undici-types/readable.d.ts +++ b/node_modules/undici-types/readable.d.ts @@ -25,11 +25,6 @@ declare class BodyReadable extends Readable { */ blob(): Promise - /** Consumes and returns the body as an Uint8Array - * https://fetch.spec.whatwg.org/#dom-body-bytes - */ - bytes(): Promise - /** Consumes and returns the body as an ArrayBuffer * https://fetch.spec.whatwg.org/#dom-body-arraybuffer */ @@ -49,8 +44,9 @@ declare class BodyReadable extends Readable { */ readonly bodyUsed: boolean - /** - * If body is null, it should return null as the body + /** Throws on node 16.6.0 + * + * If body is null, it should return null as the body * * If body is not null, should return the body as a ReadableStream * diff --git a/node_modules/undici-types/retry-agent.d.ts b/node_modules/undici-types/retry-agent.d.ts deleted file mode 100644 index 963cea99e..000000000 --- a/node_modules/undici-types/retry-agent.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Dispatcher from './dispatcher' -import RetryHandler from './retry-handler' - -export default RetryAgent - -declare class RetryAgent extends Dispatcher { - constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions) -} diff --git a/node_modules/undici-types/retry-handler.d.ts b/node_modules/undici-types/retry-handler.d.ts deleted file mode 100644 index e44b207c2..000000000 --- a/node_modules/undici-types/retry-handler.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -import Dispatcher from "./dispatcher"; - -export default RetryHandler; - -declare class RetryHandler implements Dispatcher.DispatchHandlers { - constructor( - options: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }, - retryHandlers: RetryHandler.RetryHandlers - ); -} - -declare namespace RetryHandler { - export type RetryState = { counter: number; }; - - export type RetryContext = { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - } - - export type OnRetryCallback = (result?: Error | null) => void; - - export type RetryCallback = ( - err: Error, - context: { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - }, - callback: OnRetryCallback - ) => number | null; - - export interface RetryOptions { - /** - * Callback to be invoked on every retry iteration. - * It receives the error, current state of the retry object and the options object - * passed when instantiating the retry handler. - * - * @type {RetryCallback} - * @memberof RetryOptions - */ - retry?: RetryCallback; - /** - * Maximum number of retries to allow. - * - * @type {number} - * @memberof RetryOptions - * @default 5 - */ - maxRetries?: number; - /** - * Max number of milliseconds allow between retries - * - * @type {number} - * @memberof RetryOptions - * @default 30000 - */ - maxTimeout?: number; - /** - * Initial number of milliseconds to wait before retrying for the first time. - * - * @type {number} - * @memberof RetryOptions - * @default 500 - */ - minTimeout?: number; - /** - * Factior to multiply the timeout factor between retries. - * - * @type {number} - * @memberof RetryOptions - * @default 2 - */ - timeoutFactor?: number; - /** - * It enables to automatically infer timeout between retries based on the `Retry-After` header. - * - * @type {boolean} - * @memberof RetryOptions - * @default true - */ - retryAfter?: boolean; - /** - * HTTP methods to retry. - * - * @type {Dispatcher.HttpMethod[]} - * @memberof RetryOptions - * @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'], - */ - methods?: Dispatcher.HttpMethod[]; - /** - * Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc. - * - * @type {string[]} - * @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE'] - */ - errorCodes?: string[]; - /** - * HTTP status codes to be retried. - * - * @type {number[]} - * @memberof RetryOptions - * @default [500, 502, 503, 504, 429], - */ - statusCodes?: number[]; - } - - export interface RetryHandlers { - dispatch: Dispatcher["dispatch"]; - handler: Dispatcher.DispatchHandlers; - } -} diff --git a/node_modules/undici-types/util.d.ts b/node_modules/undici-types/util.d.ts deleted file mode 100644 index 77cf1473a..000000000 --- a/node_modules/undici-types/util.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export namespace util { - /** - * Retrieves a header name and returns its lowercase value. - * @param value Header name - */ - export function headerNameToString(value: string | Buffer): string; - - /** - * Receives a header object and returns the parsed value. - * @param headers Header object - * @param obj Object to specify a proxy object. Used to assign parsed values. - * @returns If `obj` is specified, it is equivalent to `obj`. - */ - export function parseHeaders( - headers: (Buffer | string | (Buffer | string)[])[], - obj?: Record - ): Record; -} diff --git a/node_modules/undici-types/webidl.d.ts b/node_modules/undici-types/webidl.d.ts index fd83b68af..40cfe064f 100644 --- a/node_modules/undici-types/webidl.d.ts +++ b/node_modules/undici-types/webidl.d.ts @@ -5,7 +5,7 @@ */ type Converter = (object: unknown) => T -type SequenceConverter = (object: unknown, iterable?: IterableIterator) => T[] +type SequenceConverter = (object: unknown) => T[] type RecordConverter = (object: unknown) => Record @@ -62,31 +62,20 @@ interface WebidlUtil { * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint */ IntegerPart (N: number): number - - /** - * Stringifies {@param V} - */ - Stringify (V: any): string - - /** - * Mark a value as uncloneable for Node.js. - * This is only effective in some newer Node.js versions. - */ - markAsUncloneable (V: any): void } interface WebidlConverters { /** * @see https://webidl.spec.whatwg.org/#es-DOMString */ - DOMString (V: unknown, prefix: string, argument: string, opts?: { + DOMString (V: unknown, opts?: { legacyNullToEmptyString: boolean }): string /** * @see https://webidl.spec.whatwg.org/#es-ByteString */ - ByteString (V: unknown, prefix: string, argument: string): string + ByteString (V: unknown): string /** * @see https://webidl.spec.whatwg.org/#es-USVString @@ -210,7 +199,7 @@ export interface Webidl { */ dictionaryConverter (converters: { key: string, - defaultValue?: () => unknown, + defaultValue?: unknown, required?: boolean, converter: (...args: unknown[]) => unknown, allowedValues?: unknown[] @@ -224,5 +213,8 @@ export interface Webidl { converter: Converter ): (V: unknown) => ReturnType | null - argumentLengthCheck (args: { length: number }, min: number, context: string): void + argumentLengthCheck (args: { length: number }, min: number, context: { + header: string + message?: string + }): void } diff --git a/node_modules/undici-types/websocket.d.ts b/node_modules/undici-types/websocket.d.ts index dfdd8156c..15a357d36 100644 --- a/node_modules/undici-types/websocket.d.ts +++ b/node_modules/undici-types/websocket.d.ts @@ -3,6 +3,8 @@ import type { Blob } from 'buffer' import type { MessagePort } from 'worker_threads' import { + EventTarget, + Event, EventInit, EventListenerOptions, AddEventListenerOptions, @@ -15,7 +17,7 @@ export type BinaryType = 'blob' | 'arraybuffer' interface WebSocketEventMap { close: CloseEvent - error: ErrorEvent + error: Event message: MessageEvent open: Event } @@ -122,27 +124,6 @@ export declare const MessageEvent: { new(type: string, eventInitDict?: MessageEventInit): MessageEvent } -interface ErrorEventInit extends EventInit { - message?: string - filename?: string - lineno?: number - colno?: number - error?: any -} - -interface ErrorEvent extends Event { - readonly message: string - readonly filename: string - readonly lineno: number - readonly colno: number - readonly error: any -} - -export declare const ErrorEvent: { - prototype: ErrorEvent - new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent -} - interface WebSocketInit { protocols?: string | string[], dispatcher?: Dispatcher, diff --git a/node_modules/undici/lib/cookies/index.js b/node_modules/undici/lib/cookies/index.js index f867b197a..c9c1f28ee 100644 --- a/node_modules/undici/lib/cookies/index.js +++ b/node_modules/undici/lib/cookies/index.js @@ -1,7 +1,7 @@ 'use strict' const { parseSetCookie } = require('./parse') -const { stringify } = require('./util') +const { stringify, getHeadersList } = require('./util') const { webidl } = require('../fetch/webidl') const { Headers } = require('../fetch/headers') @@ -77,13 +77,14 @@ function getSetCookies (headers) { webidl.brandCheck(headers, Headers, { strict: false }) - const cookies = headers.getSetCookie() + const cookies = getHeadersList(headers).cookies if (!cookies) { return [] } - return cookies.map((pair) => parseSetCookie(pair)) + // In older versions of undici, cookies is a list of name:value. + return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair)) } /** diff --git a/node_modules/undici/lib/cookies/util.js b/node_modules/undici/lib/cookies/util.js index be3ccbeba..2290329fe 100644 --- a/node_modules/undici/lib/cookies/util.js +++ b/node_modules/undici/lib/cookies/util.js @@ -1,9 +1,8 @@ 'use strict' -/** - * @param {string} value - * @returns {boolean} - */ +const assert = require('assert') +const { kHeadersList } = require('../core/symbols') + function isCTLExcludingHtab (value) { if (value.length === 0) { return false @@ -264,11 +263,29 @@ function stringify (cookie) { return out.join('; ') } +let kHeadersListNode + +function getHeadersList (headers) { + if (headers[kHeadersList]) { + return headers[kHeadersList] + } + + if (!kHeadersListNode) { + kHeadersListNode = Object.getOwnPropertySymbols(headers).find( + (symbol) => symbol.description === 'headers list' + ) + + assert(kHeadersListNode, 'Headers cannot be parsed') + } + + const headersList = headers[kHeadersListNode] + assert(headersList) + + return headersList +} + module.exports = { isCTLExcludingHtab, - validateCookieName, - validateCookiePath, - validateCookieValue, - toIMFDate, - stringify + stringify, + getHeadersList } diff --git a/node_modules/undici/lib/fetch/body.js b/node_modules/undici/lib/fetch/body.js index 4afcfdfbc..fd8481b79 100644 --- a/node_modules/undici/lib/fetch/body.js +++ b/node_modules/undici/lib/fetch/body.js @@ -22,14 +22,6 @@ const { isUint8Array, isArrayBuffer } = require('util/types') const { File: UndiciFile } = require('./file') const { parseMIMEType, serializeAMimeType } = require('./dataURL') -let random -try { - const crypto = require('node:crypto') - random = (max) => crypto.randomInt(0, max) -} catch { - random = (max) => Math.floor(Math.random(max)) -} - let ReadableStream = globalThis.ReadableStream /** @type {globalThis['File']} */ @@ -115,7 +107,7 @@ function extractBody (object, keepalive = false) { // Set source to a copy of the bytes held by object. source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength)) } else if (util.isFormDataLike(object)) { - const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}` + const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}` const prefix = `--${boundary}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */ diff --git a/node_modules/undici/lib/fetch/headers.js b/node_modules/undici/lib/fetch/headers.js index fcab73296..2f1c0be5a 100644 --- a/node_modules/undici/lib/fetch/headers.js +++ b/node_modules/undici/lib/fetch/headers.js @@ -10,7 +10,6 @@ const { isValidHeaderName, isValidHeaderValue } = require('./util') -const util = require('util') const { webidl } = require('./webidl') const assert = require('assert') @@ -564,9 +563,6 @@ Object.defineProperties(Headers.prototype, { [Symbol.toStringTag]: { value: 'Headers', configurable: true - }, - [util.inspect.custom]: { - enumerable: false } }) diff --git a/node_modules/undici/lib/pool.js b/node_modules/undici/lib/pool.js index 86b29d442..e3cd3399e 100644 --- a/node_modules/undici/lib/pool.js +++ b/node_modules/undici/lib/pool.js @@ -73,20 +73,6 @@ class Pool extends PoolBase { ? { ...options.interceptors } : undefined this[kFactory] = factory - - this.on('connectionError', (origin, targets, error) => { - // If a connection error occurs, we remove the client from the pool, - // and emit a connectionError event. They will not be re-used. - // Fixes https://github.com/nodejs/undici/issues/3895 - for (const target of targets) { - // Do not use kRemoveClient here, as it will close the client, - // but the client cannot be closed in this state. - const idx = this[kClients].indexOf(target) - if (idx !== -1) { - this[kClients].splice(idx, 1) - } - } - }) } [kGetDispatcher] () { diff --git a/node_modules/undici/package.json b/node_modules/undici/package.json index 738688d95..65a2d9833 100644 --- a/node_modules/undici/package.json +++ b/node_modules/undici/package.json @@ -1,6 +1,6 @@ { "name": "undici", - "version": "5.29.0", + "version": "5.28.4", "description": "An HTTP/1.1 client, written from scratch for Node.js", "homepage": "https://undici.nodejs.org", "bugs": { diff --git a/node_modules/update-browserslist-db/index.d.ts b/node_modules/update-browserslist-db/index.d.ts index 7ae5acd34..05ef411af 100644 --- a/node_modules/update-browserslist-db/index.d.ts +++ b/node_modules/update-browserslist-db/index.d.ts @@ -1,6 +1,6 @@ /** * Run update and print output to terminal. */ -declare function updateDb(print?: (str: string) => void): void +declare function updateDb(print?: (str: string) => void): Promise export = updateDb diff --git a/node_modules/update-browserslist-db/index.js b/node_modules/update-browserslist-db/index.js index d4bb295cf..f13c6e664 100644 --- a/node_modules/update-browserslist-db/index.js +++ b/node_modules/update-browserslist-db/index.js @@ -1,7 +1,7 @@ -let { execSync } = require('child_process') -let escalade = require('escalade/sync') let { existsSync, readFileSync, writeFileSync } = require('fs') +let { execSync } = require('child_process') let { join } = require('path') +let escalade = require('escalade/sync') let pico = require('picocolors') const { detectEOL, detectIndent } = require('./utils') @@ -42,12 +42,11 @@ function detectLockfile() { let lockfileShrinkwrap = join(packageDir, 'npm-shrinkwrap.json') let lockfileYarn = join(packageDir, 'yarn.lock') let lockfilePnpm = join(packageDir, 'pnpm-lock.yaml') - let lockfileBun = join(packageDir, 'bun.lock') - let lockfileBunBinary = join(packageDir, 'bun.lockb') + let lockfileBun = join(packageDir, 'bun.lockb') if (existsSync(lockfilePnpm)) { return { file: lockfilePnpm, mode: 'pnpm' } - } else if (existsSync(lockfileBun) || existsSync(lockfileBunBinary)) { + } else if (existsSync(lockfileBun)) { return { file: lockfileBun, mode: 'bun' } } else if (existsSync(lockfileNpm)) { return { file: lockfileNpm, mode: 'npm' } @@ -323,8 +322,11 @@ module.exports = function updateDB(print = defaultPrint) { ) } else { print( - pico.gray( - 'Problem with browser list retrieval.\n' + + pico.red( + '\n' + + listError.stack + + '\n\n' + + 'Problem with browser list retrieval.\n' + 'Target browser changes won’t be shown.\n' ) ) diff --git a/node_modules/update-browserslist-db/package.json b/node_modules/update-browserslist-db/package.json index f22190284..6a577f789 100644 --- a/node_modules/update-browserslist-db/package.json +++ b/node_modules/update-browserslist-db/package.json @@ -1,6 +1,6 @@ { "name": "update-browserslist-db", - "version": "1.1.3", + "version": "1.1.0", "description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config", "keywords": [ "caniuse", @@ -30,8 +30,8 @@ "./package.json": "./package.json" }, "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" diff --git a/node_modules/uuid/CHANGELOG.md b/node_modules/uuid/CHANGELOG.md index f811b8a0c..7519d19d8 100644 --- a/node_modules/uuid/CHANGELOG.md +++ b/node_modules/uuid/CHANGELOG.md @@ -2,118 +2,228 @@ 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. -## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16) +### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08) + +### Bug Fixes +- lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536) + +### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04) + +### Bug Fixes + +- support expo>=39.0.0 ([#515](https://github.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://github.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#375](https://github.com/uuidjs/uuid/issues/375) + +## [8.3.0](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) (2020-07-27) ### Features -* rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338) +- add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4)), closes [#475](https://github.com/uuidjs/uuid/issues/475) [#478](https://github.com/uuidjs/uuid/issues/478) [#480](https://github.com/uuidjs/uuid/issues/480) [#481](https://github.com/uuidjs/uuid/issues/481) [#180](https://github.com/uuidjs/uuid/issues/180) -### [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19) +## [8.2.0](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0) (2020-06-23) - -## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28) +### Features +- improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5)) +- remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c)), closes [#437](https://github.com/uuidjs/uuid/issues/437) +- support jspm ([#473](https://github.com/uuidjs/uuid/issues/473)) ([e9f2587](https://github.com/uuidjs/uuid/commit/e9f2587a92575cac31bc1d4ae944e17c09756659)) ### Bug Fixes -* typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877)) +- prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8)) + +## [8.1.0](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0) (2020-05-20) +### Features +- improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d)) +- optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2)) - -## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28) +### Bug Fixes + +- export package.json required by react-native and bundlers ([#449](https://github.com/uuidjs/uuid/issues/449)) ([be1c8fe](https://github.com/uuidjs/uuid/commit/be1c8fe9a3206c358e0059b52fafd7213aa48a52)), closes [ai/nanoevents#44](https://github.com/ai/nanoevents/issues/44#issuecomment-602010343) [#444](https://github.com/uuidjs/uuid/issues/444) + +## [8.0.0](https://github.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) (2020-04-29) + +### ⚠ BREAKING CHANGES +- For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export. + + ```diff + -import uuid from 'uuid'; + -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869' + +import { v4 as uuidv4 } from 'uuid'; + +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' + ``` + +- Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported. + + Instead use the named exports that this module exports. + + For ECMAScript Modules (ESM): + + ```diff + -import uuidv4 from 'uuid/v4'; + +import { v4 as uuidv4 } from 'uuid'; + uuidv4(); + ``` + + For CommonJS: + + ```diff + -const uuidv4 = require('uuid/v4'); + +const { v4: uuidv4 } = require('uuid'); + uuidv4(); + ``` + +### Features + +- native Node.js ES Modules (wrapper approach) ([#423](https://github.com/uuidjs/uuid/issues/423)) ([2d9f590](https://github.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#245](https://github.com/uuidjs/uuid/issues/245) [#419](https://github.com/uuidjs/uuid/issues/419) [#342](https://github.com/uuidjs/uuid/issues/342) +- remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba)) ### Bug Fixes -* fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2)) +- add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0)) + +### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31) +### Bug Fixes +- make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#408](https://github.com/uuidjs/uuid/issues/408) - -# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22) +### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04) +### Bug Fixes + +- make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c)) +- simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7)) +- update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4)) + +### [7.0.1](https://github.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25) ### Bug Fixes -* assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc)) -* fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4)) -* Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331)) -* mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c)) +- clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc)) +- provide browser versions independent from module system ([#380](https://github.com/uuidjs/uuid/issues/380)) ([4344a22](https://github.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753)), closes [#378](https://github.com/uuidjs/uuid/issues/378) + +## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24) + +### ⚠ BREAKING CHANGES + +- The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed. +- Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants. +- Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function. +- Remove support for generating v3 and v5 UUIDs in Node.js<4.x +- Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers. ### Features -* enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182)) +- add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c)), closes [#345](https://github.com/uuidjs/uuid/issues/345) +- add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555)) +- ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b)) +- hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0)) +- remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173) +- remove support for pre Node.js v4 Buffer API ([#356](https://github.com/uuidjs/uuid/issues/356)) ([b59b5c5](https://github.com/uuidjs/uuid/commit/b59b5c5ecad271c5453f1a156f011671f6d35627)) +- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([c37a518](https://github.com/uuidjs/uuid/commit/c37a518e367ac4b6d0aa62dba1bc6ce9e85020f7)), closes [#338](https://github.com/uuidjs/uuid/issues/338) +### Bug Fixes - -## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16) +- add deep-require proxies for local testing and adjust tests ([#365](https://github.com/uuidjs/uuid/issues/365)) ([7fedc79](https://github.com/uuidjs/uuid/commit/7fedc79ac8fda4bfd1c566c7f05ef4ac13b2db48)) +- add note about removal of default export ([#372](https://github.com/uuidjs/uuid/issues/372)) ([12749b7](https://github.com/uuidjs/uuid/commit/12749b700eb49db8a9759fd306d8be05dbfbd58c)), closes [#370](https://github.com/uuidjs/uuid/issues/370) +- deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23)) + +## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16) + +### Features + +- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338) +## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19) ### Bug Fixes -* use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) +- no longer run ci tests on node v4 +- upgrade dependencies +## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28) +### Bug Fixes - -# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16) +- typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877)) +## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28) ### Bug Fixes -* remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824)) -* use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) +- fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2)) + +# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22) + +### Bug Fixes +- assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc)) +- fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4)) +- Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331)) +- mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c)) ### Features -* Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726)) +- enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182)) +## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16) + +### Bug Fixes + +- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) + +# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16) + +### Bug Fixes + +- remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824)) +- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) + +### Features + +- Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726)) # [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17) ### Bug Fixes -* (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183) -* Fix typo (#178) -* Simple typo fix (#165) +- (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183) +- Fix typo (#178) +- Simple typo fix (#165) ### Features -* v5 support in CLI (#197) -* V5 support (#188) +- v5 support in CLI (#197) +- V5 support (#188) # 3.0.1 (2016-11-28) -* split uuid versions into separate files - +- split uuid versions into separate files # 3.0.0 (2016-11-17) -* remove .parse and .unparse - +- remove .parse and .unparse # 2.0.0 -* Removed uuid.BufferClass - +- Removed uuid.BufferClass # 1.4.0 -* Improved module context detection -* Removed public RNG functions - +- Improved module context detection +- Removed public RNG functions # 1.3.2 -* Improve tests and handling of v1() options (Issue #24) -* Expose RNG option to allow for perf testing with different generators - +- Improve tests and handling of v1() options (Issue #24) +- Expose RNG option to allow for perf testing with different generators # 1.3.0 -* Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)! -* Support for node.js crypto API -* De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code +- Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)! +- Support for node.js crypto API +- De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code diff --git a/node_modules/uuid/CONTRIBUTING.md b/node_modules/uuid/CONTRIBUTING.md new file mode 100644 index 000000000..4a4503d02 --- /dev/null +++ b/node_modules/uuid/CONTRIBUTING.md @@ -0,0 +1,18 @@ +# Contributing + +Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss improvements to this library! + +## Testing + +```shell +npm test +``` + +## Releasing + +Releases are supposed to be done from master, version bumping is automated through [`standard-version`](https://github.com/conventional-changelog/standard-version): + +```shell +npm run release -- --dry-run # verify output manually +npm run release # follow the instructions from the output of this command +``` diff --git a/node_modules/uuid/LICENSE.md b/node_modules/uuid/LICENSE.md index 8c84e3986..393416836 100644 --- a/node_modules/uuid/LICENSE.md +++ b/node_modules/uuid/LICENSE.md @@ -1,21 +1,9 @@ The MIT License (MIT) -Copyright (c) 2010-2016 Robert Kieffer and other contributors +Copyright (c) 2010-2020 Robert Kieffer 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: +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. diff --git a/node_modules/uuid/README.md b/node_modules/uuid/README.md index 1752e4751..ed27e5760 100644 --- a/node_modules/uuid/README.md +++ b/node_modules/uuid/README.md @@ -2,275 +2,504 @@ -- This file is auto-generated from README_js.md. Changes should be made there. --> -# uuid [![Build Status](https://secure.travis-ci.org/kelektiv/node-uuid.svg?branch=master)](http://travis-ci.org/kelektiv/node-uuid) # +# uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser) -Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS. +For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs -Features: +- **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs +- **Cross-platform** - Support for ... + - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds) + - Node 8, 10, 12, 14 + - Chrome, Safari, Firefox, Edge, IE 11 browsers + - Webpack and rollup.js module bundlers + - [React Native / Expo](#react-native--expo) +- **Secure** - Cryptographically-strong random values +- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers +- **CLI** - Includes the [`uuid` command line](#command-line) utility -* Support for version 1, 3, 4 and 5 UUIDs -* Cross-platform -* Uses cryptographically-strong random number APIs (when available) -* Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883)) +**Upgrading from `uuid@3.x`?** Your code is probably okay, but check out [Upgrading From `uuid@3.x`](#upgrading-from-uuid3x) for details. -[**Deprecation warning**: The use of `require('uuid')` is deprecated and will not be -supported after version 3.x of this module. Instead, use `require('uuid/[v1|v3|v4|v5]')` as shown in the examples below.] +## Quickstart -## Quickstart - CommonJS (Recommended) +To create a random UUID... + +**1. Install** ```shell npm install uuid ``` -Then generate your uuid version of choice ... - -Version 1 (timestamp): +**2. Create a UUID** (ES6 module syntax) ```javascript -const uuidv1 = require('uuid/v1'); -uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d' - +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' ``` -Version 3 (namespace): +... or using CommonJS syntax: ```javascript -const uuidv3 = require('uuid/v3'); +const { v4: uuidv4 } = require('uuid'); +uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' +``` -// ... using predefined DNS namespace (for domain names) -uuidv3('hello.example.com', uuidv3.DNS); // ⇨ '9125a8dc-52ee-365b-a5aa-81b0b3681cf6' +For timestamp UUIDs, namespace UUIDs, and other options read on ... -// ... using predefined URL namespace (for, well, URLs) -uuidv3('http://example.com/hello', uuidv3.URL); // ⇨ 'c6235813-3ba4-3801-ae84-e0a6ebb7d138' +## API Summary -// ... using a custom namespace -// -// Note: Custom namespaces should be a UUID string specific to your application! -// E.g. the one here was generated using this modules `uuid` CLI. -const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; -uuidv3('Hello, World!', MY_NAMESPACE); // ⇨ 'e8b5a51d-11c8-3310-a6ab-367563f20686' +| | | | +| --- | --- | --- | +| [`uuid.NIL`](#uuidnil) | The nil UUID string (all zeros) | New in `uuid@8.3` | +| [`uuid.parse()`](#uuidparsestr) | Convert UUID string to array of bytes | New in `uuid@8.3` | +| [`uuid.stringify()`](#uuidstringifyarr-offset) | Convert array of bytes to UUID string | New in `uuid@8.3` | +| [`uuid.v1()`](#uuidv1options-buffer-offset) | Create a version 1 (timestamp) UUID | | +| [`uuid.v3()`](#uuidv3name-namespace-buffer-offset) | Create a version 3 (namespace w/ MD5) UUID | | +| [`uuid.v4()`](#uuidv4options-buffer-offset) | Create a version 4 (random) UUID | | +| [`uuid.v5()`](#uuidv5name-namespace-buffer-offset) | Create a version 5 (namespace w/ SHA-1) UUID | | +| [`uuid.validate()`](#uuidvalidatestr) | Test a string to see if it is a valid UUID | New in `uuid@8.3` | +| [`uuid.version()`](#uuidversionstr) | Detect RFC version of a UUID | New in `uuid@8.3` | -``` +## API + +### uuid.NIL -Version 4 (random): +The nil UUID string (all zeros). + +Example: ```javascript -const uuidv4 = require('uuid/v4'); -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' +import { NIL as NIL_UUID } from 'uuid'; +NIL_UUID; // ⇨ '00000000-0000-0000-0000-000000000000' ``` -Version 5 (namespace): +### uuid.parse(str) -```javascript -const uuidv5 = require('uuid/v5'); +Convert UUID string to array of bytes -// ... using predefined DNS namespace (for domain names) -uuidv5('hello.example.com', uuidv5.DNS); // ⇨ 'fdda765f-fc57-5604-a269-52a7df8164ec' +| | | +| --------- | ---------------------------------------- | +| `str` | A valid UUID `String` | +| _returns_ | `Uint8Array[16]` | +| _throws_ | `TypeError` if `str` is not a valid UUID | -// ... using predefined URL namespace (for, well, URLs) -uuidv5('http://example.com/hello', uuidv5.URL); // ⇨ '3bbcee75-cecc-5b56-8031-b6641c1ed1f1' +Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. -// ... using a custom namespace -// -// Note: Custom namespaces should be a UUID string specific to your application! -// E.g. the one here was generated using this modules `uuid` CLI. -const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; -uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681' +Example: + +```javascript +import { parse as uuidParse } from 'uuid'; +// Parse a UUID +const bytes = uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); + +// Convert to hex strings to show byte order (for documentation purposes) +[...bytes].map((v) => v.toString(16).padStart(2, '0')); // ⇨ + // [ + // '6e', 'c0', 'bd', '7f', + // '11', 'c0', '43', 'da', + // '97', '5e', '2a', '8a', + // 'd9', 'eb', 'ae', '0b' + // ] ``` -## API +### uuid.stringify(arr[, offset]) -### Version 1 +Convert array of bytes to UUID string -```javascript -const uuidv1 = require('uuid/v1'); +| | | +| -------------- | ---------------------------------------------------------------------------- | +| `arr` | `Array`-like collection of 16 values (starting from `offset`) between 0-255. | +| [`offset` = 0] | `Number` Starting index in the Array | +| _returns_ | `String` | +| _throws_ | `TypeError` if a valid UUID string cannot be generated | -// Incantations -uuidv1(); -uuidv1(options); -uuidv1(options, buffer, offset); -``` +Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. -Generate and return a RFC4122 v1 (timestamp-based) UUID. +Example: -* `options` - (Object) Optional uuid state to apply. Properties may include: +```javascript +import { stringify as uuidStringify } from 'uuid'; + +const uuidBytes = [ + 0x6e, + 0xc0, + 0xbd, + 0x7f, + 0x11, + 0xc0, + 0x43, + 0xda, + 0x97, + 0x5e, + 0x2a, + 0x8a, + 0xd9, + 0xeb, + 0xae, + 0x0b, +]; + +uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b' +``` - * `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1. - * `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used. - * `msecs` - (Number) Time in milliseconds since unix Epoch. Default: The current time is used. - * `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2. +### uuid.v1([options[, buffer[, offset]]]) -* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. -* `offset` - (Number) Starting index in `buffer` at which to begin writing. +Create an RFC version 1 (timestamp) UUID -Returns `buffer`, if specified, otherwise the string form of the UUID +| | | +| --- | --- | +| [`options`] | `Object` with one or more of the following properties: | +| [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) | +| [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff | +| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | +| [`options.nsecs`] | RFC "timestamp" field (`Number` of nanseconds to add to `msecs`, should be 0-10,000) | +| [`options.random`] | `Array` of 16 random bytes (0-255) | +| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | +| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | +| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | +| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | +| _throws_ | `Error` if more than 10M UUIDs/sec are requested | Note: The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. -Example: Generate string UUID with fully-specified options +Note: `options.random` and `options.rng` are only meaningful on the very first call to `v1()`, where they may be passed to initialize the internal `node` and `clockseq` fields. + +Example: ```javascript +import { v1 as uuidv1 } from 'uuid'; + +uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d' +``` + +Example using `options`: + +```javascript +import { v1 as uuidv1 } from 'uuid'; + const v1options = { node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], clockseq: 0x1234, msecs: new Date('2011-11-01').getTime(), - nsecs: 5678 + nsecs: 5678, }; uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab' - ``` -Example: In-place generation of two binary IDs +### uuid.v3(name, namespace[, buffer[, offset]]) + +Create an RFC version 3 (namespace w/ MD5) UUID + +API is identical to `v5()`, but uses "v3" instead. + +⚠️ Note: Per the RFC, "_If backward compatibility is not an issue, SHA-1 [Version 5] is preferred_." + +### uuid.v4([options[, buffer[, offset]]]) + +Create an RFC version 4 (random) UUID + +| | | +| --- | --- | +| [`options`] | `Object` with one or more of the following properties: | +| [`options.random`] | `Array` of 16 random bytes (0-255) | +| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | +| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | +| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | +| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | + +Example: ```javascript -// Generate two ids in an array -const arr = new Array(); -uuidv1(null, arr, 0); // ⇨ - // [ - // 44, 94, 164, 192, 64, 103, - // 17, 233, 146, 52, 155, 29, - // 235, 77, 59, 125 - // ] -uuidv1(null, arr, 16); // ⇨ - // [ - // 44, 94, 164, 192, 64, 103, 17, 233, - // 146, 52, 155, 29, 235, 77, 59, 125, - // 44, 94, 164, 193, 64, 103, 17, 233, - // 146, 52, 155, 29, 235, 77, 59, 125 - // ] +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' ``` -### Version 3 +Example using predefined `random` values: ```javascript -const uuidv3 = require('uuid/v3'); +import { v4 as uuidv4 } from 'uuid'; -// Incantations -uuidv3(name, namespace); -uuidv3(name, namespace, buffer); -uuidv3(name, namespace, buffer, offset); +const v4options = { + random: [ + 0x10, + 0x91, + 0x56, + 0xbe, + 0xc4, + 0xfb, + 0xc1, + 0xea, + 0x71, + 0xb4, + 0xef, + 0xe1, + 0x67, + 0x1c, + 0x58, + 0x36, + ], +}; +uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' ``` -Generate and return a RFC4122 v3 UUID. +### uuid.v5(name, namespace[, buffer[, offset]]) -* `name` - (String | Array[]) "name" to create UUID with -* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values -* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. -* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0 +Create an RFC version 5 (namespace w/ SHA-1) UUID -Returns `buffer`, if specified, otherwise the string form of the UUID +| | | +| --- | --- | +| `name` | `String \| Array` | +| `namespace` | `String \| Array[16]` Namespace UUID | +| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | +| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | +| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | -Example: +Note: The RFC `DNS` and `URL` namespaces are available as `v5.DNS` and `v5.URL`. + +Example with custom namespace: ```javascript -uuidv3('hello world', MY_NAMESPACE); // ⇨ '042ffd34-d989-321c-ad06-f60826172424' +import { v5 as uuidv5 } from 'uuid'; +// Define a custom namespace. Readers, create your own using something like +// https://www.uuidgenerator.net/ +const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; + +uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681' ``` -### Version 4 +Example with RFC `URL` namespace: ```javascript -const uuidv4 = require('uuid/v4') +import { v5 as uuidv5 } from 'uuid'; -// Incantations -uuidv4(); -uuidv4(options); -uuidv4(options, buffer, offset); +uuidv5('https://www.w3.org/', uuidv5.URL); // ⇨ 'c106a26a-21bb-5538-8bf2-57095d1976c1' ``` -Generate and return a RFC4122 v4 UUID. +### uuid.validate(str) -* `options` - (Object) Optional uuid state to apply. Properties may include: - * `random` - (Number[16]) Array of 16 numbers (0-255) to use in place of randomly generated values - * `rng` - (Function) Random # generator function that returns an Array[16] of byte values (0-255) -* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. -* `offset` - (Number) Starting index in `buffer` at which to begin writing. +Test a string to see if it is a valid UUID -Returns `buffer`, if specified, otherwise the string form of the UUID +| | | +| --------- | --------------------------------------------------- | +| `str` | `String` to validate | +| _returns_ | `true` if string is a valid UUID, `false` otherwise | -Example: Generate string UUID with predefined `random` values +Example: ```javascript -const v4options = { - random: [ - 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, - 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36 - ] -}; -uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' +import { validate as uuidValidate } from 'uuid'; +uuidValidate('not a UUID'); // ⇨ false +uuidValidate('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ true ``` -Example: Generate two IDs in a single buffer +Using `validate` and `version` together it is possible to do per-version validation, e.g. validate for only v4 UUIds. ```javascript -const buffer = new Array(); -uuidv4(null, buffer, 0); // ⇨ - // [ - // 155, 29, 235, 77, 59, - // 125, 75, 173, 155, 221, - // 43, 13, 123, 61, 203, - // 109 - // ] -uuidv4(null, buffer, 16); // ⇨ - // [ - // 155, 29, 235, 77, 59, 125, 75, 173, - // 155, 221, 43, 13, 123, 61, 203, 109, - // 27, 157, 107, 205, 187, 253, 75, 45, - // 155, 93, 171, 141, 251, 189, 75, 237 - // ] +import { version as uuidVersion } from 'uuid'; +import { validate as uuidValidate } from 'uuid'; -``` +function uuidValidateV4(uuid) { + return uuidValidate(uuid) && uuidVersion(uuid) === 4; +} -### Version 5 +const v1Uuid = 'd9428888-122b-11e1-b85c-61cd3cbb3210'; +const v4Uuid = '109156be-c4fb-41ea-b1b4-efe1671c5836'; -```javascript -const uuidv5 = require('uuid/v5'); - -// Incantations -uuidv5(name, namespace); -uuidv5(name, namespace, buffer); -uuidv5(name, namespace, buffer, offset); +uuidValidateV4(v4Uuid); // ⇨ true +uuidValidateV4(v1Uuid); // ⇨ false ``` -Generate and return a RFC4122 v5 UUID. +### uuid.version(str) -* `name` - (String | Array[]) "name" to create UUID with -* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values -* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written. -* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0 +Detect RFC version of a UUID -Returns `buffer`, if specified, otherwise the string form of the UUID +| | | +| --------- | ---------------------------------------- | +| `str` | A valid UUID `String` | +| _returns_ | `Number` The RFC version of the UUID | +| _throws_ | `TypeError` if `str` is not a valid UUID | Example: ```javascript -uuidv5('hello world', MY_NAMESPACE); // ⇨ '9f282611-e0fd-5650-8953-89c8e342da0b' +import { version as uuidVersion } from 'uuid'; +uuidVersion('45637ec4-c85f-11ea-87d0-0242ac130003'); // ⇨ 1 +uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4 ``` ## Command Line -UUIDs can be generated from the command line with the `uuid` command. +UUIDs can be generated from the command line using `uuid`. ```shell $ uuid ddeb27fb-d9a0-4624-be4d-4615062daed4 +``` + +The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details: -$ uuid v1 -02d37060-d446-11e7-a9fa-7bdae751ebe1 +```shell +$ uuid --help + +Usage: + uuid + uuid v1 + uuid v3 + uuid v4 + uuid v5 + uuid --help + +Note: may be "URL" or "DNS" to use the corresponding UUIDs +defined by RFC4122 ``` -Type `uuid --help` for usage details +## ECMAScript Modules + +This library comes with [ECMAScript Modules](https://www.ecma-international.org/ecma-262/6.0/#sec-modules) (ESM) support for Node.js versions that support it ([example](./examples/node-esmodules/)) as well as bundlers like [rollup.js](https://rollupjs.org/guide/en/#tree-shaking) ([example](./examples/browser-rollup/)) and [webpack](https://webpack.js.org/guides/tree-shaking/) ([example](./examples/browser-webpack/)) (targeting both, Node.js and browser environments). + +```javascript +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' +``` -## Testing +To run the examples you must first create a dist build of this library in the module root: ```shell -npm test +npm run build +``` + +## CDN Builds + +### ECMAScript Modules + +To load this module directly into modern browsers that [support loading ECMAScript Modules](https://caniuse.com/#feat=es6-module) you can make use of [jspm](https://jspm.org/): + +```html + +``` + +### UMD + +To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs: + +**Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**: + +```html + +``` + +**Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**: + +```html + ``` +**Using [cdnjs](https://cdnjs.com/libraries/uuid)**: + +```html + +``` + +These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method: + +```html + +``` + +Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively. + +## "getRandomValues() not supported" + +This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill: + +### React Native / Expo + +1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme) +1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point: + +```javascript +import 'react-native-get-random-values'; +import { v4 as uuidv4 } from 'uuid'; +``` + +Note: If you are using Expo, you must be using at least `react-native-get-random-values@1.5.0` and `expo@39.0.0`. + +### Web Workers / Service Workers (Edge <= 18) + +[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please). + +## Upgrading From `uuid@7.x` + +### Only Named Exports Supported When Using with Node.js ESM + +`uuid@7.x` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports. + +Instead of doing: + +```javascript +import uuid from 'uuid'; +uuid.v4(); +``` + +you will now have to use the named exports: + +```javascript +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); +``` + +### Deep Requires No Longer Supported + +Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7.x`](#deep-requires-now-deprecated) are no longer supported. + +## Upgrading From `uuid@3.x` + +"_Wait... what happened to `uuid@4.x` - `uuid@6.x`?!?_" + +In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped. + +### Deep Requires Now Deprecated + +`uuid@3.x` encouraged the use of deep requires to minimize the bundle size of browser builds: + +```javascript +const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED! +uuidv4(); +``` + +As of `uuid@7.x` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax: + +```javascript +import { v4 as uuidv4 } from 'uuid'; +uuidv4(); +``` + +... or for CommonJS: + +```javascript +const { v4: uuidv4 } = require('uuid'); +uuidv4(); +``` + +### Default Export Removed + +`uuid@3.x` was exporting the Version 4 UUID method as a default export: + +```javascript +const uuid = require('uuid'); // <== REMOVED! +``` + +This usage pattern was already discouraged in `uuid@3.x` and has been removed in `uuid@7.x`. + ---- Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/index.js b/node_modules/uuid/dist/esm-browser/index.js new file mode 100644 index 000000000..1db6f6d25 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/index.js @@ -0,0 +1,9 @@ +export { default as v1 } from './v1.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as NIL } from './nil.js'; +export { default as version } from './version.js'; +export { default as validate } from './validate.js'; +export { default as stringify } from './stringify.js'; +export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/md5.js b/node_modules/uuid/dist/esm-browser/md5.js new file mode 100644 index 000000000..8b5d46a7e --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/md5.js @@ -0,0 +1,215 @@ +/* + * Browser-compatible JavaScript MD5 + * + * Modification of JavaScript MD5 + * https://github.com/blueimp/JavaScript-MD5 + * + * Copyright 2011, Sebastian Tschan + * https://blueimp.net + * + * Licensed under the MIT license: + * https://opensource.org/licenses/MIT + * + * Based on + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for more info. + */ +function md5(bytes) { + if (typeof bytes === 'string') { + var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = new Uint8Array(msg.length); + + for (var i = 0; i < msg.length; ++i) { + bytes[i] = msg.charCodeAt(i); + } + } + + return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); +} +/* + * Convert an array of little-endian words to an array of bytes + */ + + +function md5ToHexEncodedArray(input) { + var output = []; + var length32 = input.length * 32; + var hexTab = '0123456789abcdef'; + + for (var i = 0; i < length32; i += 8) { + var x = input[i >> 5] >>> i % 32 & 0xff; + var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); + output.push(hex); + } + + return output; +} +/** + * Calculate output length with padding and bit length + */ + + +function getOutputLength(inputLength8) { + return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; +} +/* + * Calculate the MD5 of an array of little-endian words, and a bit length. + */ + + +function wordsToMd5(x, len) { + /* append padding */ + x[len >> 5] |= 0x80 << len % 32; + x[getOutputLength(len) - 1] = len; + var a = 1732584193; + var b = -271733879; + var c = -1732584194; + var d = 271733878; + + for (var i = 0; i < x.length; i += 16) { + var olda = a; + var oldb = b; + var oldc = c; + var oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + + return [a, b, c, d]; +} +/* + * Convert an array bytes to an array of little-endian words + * Characters >255 have their high-byte silently ignored. + */ + + +function bytesToWords(input) { + if (input.length === 0) { + return []; + } + + var length8 = input.length * 8; + var output = new Uint32Array(getOutputLength(length8)); + + for (var i = 0; i < length8; i += 8) { + output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; + } + + return output; +} +/* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + + +function safeAdd(x, y) { + var lsw = (x & 0xffff) + (y & 0xffff); + var msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return msw << 16 | lsw & 0xffff; +} +/* + * Bitwise rotate a 32-bit number to the left. + */ + + +function bitRotateLeft(num, cnt) { + return num << cnt | num >>> 32 - cnt; +} +/* + * These functions implement the four basic operations the algorithm uses. + */ + + +function md5cmn(q, a, b, x, s, t) { + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); +} + +function md5ff(a, b, c, d, x, s, t) { + return md5cmn(b & c | ~b & d, a, b, x, s, t); +} + +function md5gg(a, b, c, d, x, s, t) { + return md5cmn(b & d | c & ~d, a, b, x, s, t); +} + +function md5hh(a, b, c, d, x, s, t) { + return md5cmn(b ^ c ^ d, a, b, x, s, t); +} + +function md5ii(a, b, c, d, x, s, t) { + return md5cmn(c ^ (b | ~d), a, b, x, s, t); +} + +export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/nil.js b/node_modules/uuid/dist/esm-browser/nil.js new file mode 100644 index 000000000..b36324c2a --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/nil.js @@ -0,0 +1 @@ +export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/parse.js b/node_modules/uuid/dist/esm-browser/parse.js new file mode 100644 index 000000000..7c5b1d5a6 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/parse.js @@ -0,0 +1,35 @@ +import validate from './validate.js'; + +function parse(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + var v; + var arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/regex.js b/node_modules/uuid/dist/esm-browser/regex.js new file mode 100644 index 000000000..3da8673a5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/regex.js @@ -0,0 +1 @@ +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/rng.js b/node_modules/uuid/dist/esm-browser/rng.js new file mode 100644 index 000000000..8abbf2ea5 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/rng.js @@ -0,0 +1,19 @@ +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +var getRandomValues; +var rnds8 = new Uint8Array(16); +export default function rng() { + // lazy load so that environments that need to polyfill have a chance to do so + if (!getRandomValues) { + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); + + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + } + + return getRandomValues(rnds8); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/sha1.js b/node_modules/uuid/dist/esm-browser/sha1.js new file mode 100644 index 000000000..940548baa --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/sha1.js @@ -0,0 +1,96 @@ +// Adapted from Chris Veness' SHA1 code at +// http://www.movable-type.co.uk/scripts/sha1.html +function f(s, x, y, z) { + switch (s) { + case 0: + return x & y ^ ~x & z; + + case 1: + return x ^ y ^ z; + + case 2: + return x & y ^ x & z ^ y & z; + + case 3: + return x ^ y ^ z; + } +} + +function ROTL(x, n) { + return x << n | x >>> 32 - n; +} + +function sha1(bytes) { + var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + + if (typeof bytes === 'string') { + var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = []; + + for (var i = 0; i < msg.length; ++i) { + bytes.push(msg.charCodeAt(i)); + } + } else if (!Array.isArray(bytes)) { + // Convert Array-like to Array + bytes = Array.prototype.slice.call(bytes); + } + + bytes.push(0x80); + var l = bytes.length / 4 + 2; + var N = Math.ceil(l / 16); + var M = new Array(N); + + for (var _i = 0; _i < N; ++_i) { + var arr = new Uint32Array(16); + + for (var j = 0; j < 16; ++j) { + arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; + } + + M[_i] = arr; + } + + M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; + + for (var _i2 = 0; _i2 < N; ++_i2) { + var W = new Uint32Array(80); + + for (var t = 0; t < 16; ++t) { + W[t] = M[_i2][t]; + } + + for (var _t = 16; _t < 80; ++_t) { + W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); + } + + var a = H[0]; + var b = H[1]; + var c = H[2]; + var d = H[3]; + var e = H[4]; + + for (var _t2 = 0; _t2 < 80; ++_t2) { + var s = Math.floor(_t2 / 20); + var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + + H[0] = H[0] + a >>> 0; + H[1] = H[1] + b >>> 0; + H[2] = H[2] + c >>> 0; + H[3] = H[3] + d >>> 0; + H[4] = H[4] + e >>> 0; + } + + return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; +} + +export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/stringify.js b/node_modules/uuid/dist/esm-browser/stringify.js new file mode 100644 index 000000000..310211158 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/stringify.js @@ -0,0 +1,30 @@ +import validate from './validate.js'; +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +var byteToHex = []; + +for (var i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v1.js b/node_modules/uuid/dist/esm-browser/v1.js new file mode 100644 index 000000000..1a22591ef --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v1.js @@ -0,0 +1,95 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +var _nodeId; + +var _clockseq; // Previous uuid creation time + + +var _lastMSecs = 0; +var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + var i = buf && offset || 0; + var b = buf || new Array(16); + options = options || {}; + var node = options.node || _nodeId; + var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + var seedBytes = options.random || (options.rng || rng)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (var n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || stringify(b); +} + +export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v3.js b/node_modules/uuid/dist/esm-browser/v3.js new file mode 100644 index 000000000..c9ab9a4cd --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v3.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import md5 from './md5.js'; +var v3 = v35('v3', 0x30, md5); +export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v35.js b/node_modules/uuid/dist/esm-browser/v35.js new file mode 100644 index 000000000..31dd8a1c8 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v35.js @@ -0,0 +1,64 @@ +import stringify from './stringify.js'; +import parse from './parse.js'; + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + var bytes = []; + + for (var i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function (name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = parse(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + var bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (var i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return stringify(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v4.js b/node_modules/uuid/dist/esm-browser/v4.js new file mode 100644 index 000000000..404810a48 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v4.js @@ -0,0 +1,24 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; + +function v4(options, buf, offset) { + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (var i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return stringify(rnds); +} + +export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v5.js b/node_modules/uuid/dist/esm-browser/v5.js new file mode 100644 index 000000000..c08d96ba0 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v5.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import sha1 from './sha1.js'; +var v5 = v35('v5', 0x50, sha1); +export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/validate.js b/node_modules/uuid/dist/esm-browser/validate.js new file mode 100644 index 000000000..f1cdc7af4 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/validate.js @@ -0,0 +1,7 @@ +import REGEX from './regex.js'; + +function validate(uuid) { + return typeof uuid === 'string' && REGEX.test(uuid); +} + +export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/version.js b/node_modules/uuid/dist/esm-browser/version.js new file mode 100644 index 000000000..77530e9cb --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/version.js @@ -0,0 +1,11 @@ +import validate from './validate.js'; + +function version(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/index.js b/node_modules/uuid/dist/esm-node/index.js new file mode 100644 index 000000000..1db6f6d25 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/index.js @@ -0,0 +1,9 @@ +export { default as v1 } from './v1.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as NIL } from './nil.js'; +export { default as version } from './version.js'; +export { default as validate } from './validate.js'; +export { default as stringify } from './stringify.js'; +export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/md5.js b/node_modules/uuid/dist/esm-node/md5.js new file mode 100644 index 000000000..4d68b040f --- /dev/null +++ b/node_modules/uuid/dist/esm-node/md5.js @@ -0,0 +1,13 @@ +import crypto from 'crypto'; + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return crypto.createHash('md5').update(bytes).digest(); +} + +export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/nil.js b/node_modules/uuid/dist/esm-node/nil.js new file mode 100644 index 000000000..b36324c2a --- /dev/null +++ b/node_modules/uuid/dist/esm-node/nil.js @@ -0,0 +1 @@ +export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/parse.js b/node_modules/uuid/dist/esm-node/parse.js new file mode 100644 index 000000000..6421c5d5a --- /dev/null +++ b/node_modules/uuid/dist/esm-node/parse.js @@ -0,0 +1,35 @@ +import validate from './validate.js'; + +function parse(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/regex.js b/node_modules/uuid/dist/esm-node/regex.js new file mode 100644 index 000000000..3da8673a5 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/regex.js @@ -0,0 +1 @@ +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/rng.js b/node_modules/uuid/dist/esm-node/rng.js new file mode 100644 index 000000000..80062449a --- /dev/null +++ b/node_modules/uuid/dist/esm-node/rng.js @@ -0,0 +1,12 @@ +import crypto from 'crypto'; +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; +export default function rng() { + if (poolPtr > rnds8Pool.length - 16) { + crypto.randomFillSync(rnds8Pool); + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/sha1.js b/node_modules/uuid/dist/esm-node/sha1.js new file mode 100644 index 000000000..e23850b44 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/sha1.js @@ -0,0 +1,13 @@ +import crypto from 'crypto'; + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return crypto.createHash('sha1').update(bytes).digest(); +} + +export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/stringify.js b/node_modules/uuid/dist/esm-node/stringify.js new file mode 100644 index 000000000..f9bca1202 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/stringify.js @@ -0,0 +1,29 @@ +import validate from './validate.js'; +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v1.js b/node_modules/uuid/dist/esm-node/v1.js new file mode 100644 index 000000000..ebf81acb7 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v1.js @@ -0,0 +1,95 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || rng)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || stringify(b); +} + +export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v3.js b/node_modules/uuid/dist/esm-node/v3.js new file mode 100644 index 000000000..09063b860 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v3.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import md5 from './md5.js'; +const v3 = v35('v3', 0x30, md5); +export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v35.js b/node_modules/uuid/dist/esm-node/v35.js new file mode 100644 index 000000000..22f6a1960 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v35.js @@ -0,0 +1,64 @@ +import stringify from './stringify.js'; +import parse from './parse.js'; + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function (name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = parse(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return stringify(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v4.js b/node_modules/uuid/dist/esm-node/v4.js new file mode 100644 index 000000000..efad926f6 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v4.js @@ -0,0 +1,24 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; + +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return stringify(rnds); +} + +export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v5.js b/node_modules/uuid/dist/esm-node/v5.js new file mode 100644 index 000000000..e87fe317d --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v5.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import sha1 from './sha1.js'; +const v5 = v35('v5', 0x50, sha1); +export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/validate.js b/node_modules/uuid/dist/esm-node/validate.js new file mode 100644 index 000000000..f1cdc7af4 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/validate.js @@ -0,0 +1,7 @@ +import REGEX from './regex.js'; + +function validate(uuid) { + return typeof uuid === 'string' && REGEX.test(uuid); +} + +export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/version.js b/node_modules/uuid/dist/esm-node/version.js new file mode 100644 index 000000000..77530e9cb --- /dev/null +++ b/node_modules/uuid/dist/esm-node/version.js @@ -0,0 +1,11 @@ +import validate from './validate.js'; + +function version(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/index.js b/node_modules/uuid/dist/index.js new file mode 100644 index 000000000..bf13b103c --- /dev/null +++ b/node_modules/uuid/dist/index.js @@ -0,0 +1,79 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "v1", { + enumerable: true, + get: function () { + return _v.default; + } +}); +Object.defineProperty(exports, "v3", { + enumerable: true, + get: function () { + return _v2.default; + } +}); +Object.defineProperty(exports, "v4", { + enumerable: true, + get: function () { + return _v3.default; + } +}); +Object.defineProperty(exports, "v5", { + enumerable: true, + get: function () { + return _v4.default; + } +}); +Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function () { + return _nil.default; + } +}); +Object.defineProperty(exports, "version", { + enumerable: true, + get: function () { + return _version.default; + } +}); +Object.defineProperty(exports, "validate", { + enumerable: true, + get: function () { + return _validate.default; + } +}); +Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function () { + return _stringify.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _parse.default; + } +}); + +var _v = _interopRequireDefault(require("./v1.js")); + +var _v2 = _interopRequireDefault(require("./v3.js")); + +var _v3 = _interopRequireDefault(require("./v4.js")); + +var _v4 = _interopRequireDefault(require("./v5.js")); + +var _nil = _interopRequireDefault(require("./nil.js")); + +var _version = _interopRequireDefault(require("./version.js")); + +var _validate = _interopRequireDefault(require("./validate.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +var _parse = _interopRequireDefault(require("./parse.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/uuid/dist/md5-browser.js b/node_modules/uuid/dist/md5-browser.js new file mode 100644 index 000000000..7a4582ace --- /dev/null +++ b/node_modules/uuid/dist/md5-browser.js @@ -0,0 +1,223 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +/* + * Browser-compatible JavaScript MD5 + * + * Modification of JavaScript MD5 + * https://github.com/blueimp/JavaScript-MD5 + * + * Copyright 2011, Sebastian Tschan + * https://blueimp.net + * + * Licensed under the MIT license: + * https://opensource.org/licenses/MIT + * + * Based on + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for more info. + */ +function md5(bytes) { + if (typeof bytes === 'string') { + const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = new Uint8Array(msg.length); + + for (let i = 0; i < msg.length; ++i) { + bytes[i] = msg.charCodeAt(i); + } + } + + return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); +} +/* + * Convert an array of little-endian words to an array of bytes + */ + + +function md5ToHexEncodedArray(input) { + const output = []; + const length32 = input.length * 32; + const hexTab = '0123456789abcdef'; + + for (let i = 0; i < length32; i += 8) { + const x = input[i >> 5] >>> i % 32 & 0xff; + const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); + output.push(hex); + } + + return output; +} +/** + * Calculate output length with padding and bit length + */ + + +function getOutputLength(inputLength8) { + return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; +} +/* + * Calculate the MD5 of an array of little-endian words, and a bit length. + */ + + +function wordsToMd5(x, len) { + /* append padding */ + x[len >> 5] |= 0x80 << len % 32; + x[getOutputLength(len) - 1] = len; + let a = 1732584193; + let b = -271733879; + let c = -1732584194; + let d = 271733878; + + for (let i = 0; i < x.length; i += 16) { + const olda = a; + const oldb = b; + const oldc = c; + const oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + + return [a, b, c, d]; +} +/* + * Convert an array bytes to an array of little-endian words + * Characters >255 have their high-byte silently ignored. + */ + + +function bytesToWords(input) { + if (input.length === 0) { + return []; + } + + const length8 = input.length * 8; + const output = new Uint32Array(getOutputLength(length8)); + + for (let i = 0; i < length8; i += 8) { + output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; + } + + return output; +} +/* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + + +function safeAdd(x, y) { + const lsw = (x & 0xffff) + (y & 0xffff); + const msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return msw << 16 | lsw & 0xffff; +} +/* + * Bitwise rotate a 32-bit number to the left. + */ + + +function bitRotateLeft(num, cnt) { + return num << cnt | num >>> 32 - cnt; +} +/* + * These functions implement the four basic operations the algorithm uses. + */ + + +function md5cmn(q, a, b, x, s, t) { + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); +} + +function md5ff(a, b, c, d, x, s, t) { + return md5cmn(b & c | ~b & d, a, b, x, s, t); +} + +function md5gg(a, b, c, d, x, s, t) { + return md5cmn(b & d | c & ~d, a, b, x, s, t); +} + +function md5hh(a, b, c, d, x, s, t) { + return md5cmn(b ^ c ^ d, a, b, x, s, t); +} + +function md5ii(a, b, c, d, x, s, t) { + return md5cmn(c ^ (b | ~d), a, b, x, s, t); +} + +var _default = md5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/md5.js b/node_modules/uuid/dist/md5.js new file mode 100644 index 000000000..824d48167 --- /dev/null +++ b/node_modules/uuid/dist/md5.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/nil.js b/node_modules/uuid/dist/nil.js new file mode 100644 index 000000000..7ade577b2 --- /dev/null +++ b/node_modules/uuid/dist/nil.js @@ -0,0 +1,8 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/parse.js b/node_modules/uuid/dist/parse.js new file mode 100644 index 000000000..4c69fc39e --- /dev/null +++ b/node_modules/uuid/dist/parse.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/regex.js b/node_modules/uuid/dist/regex.js new file mode 100644 index 000000000..1ef91d64c --- /dev/null +++ b/node_modules/uuid/dist/regex.js @@ -0,0 +1,8 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/rng-browser.js b/node_modules/uuid/dist/rng-browser.js new file mode 100644 index 000000000..91faeae6d --- /dev/null +++ b/node_modules/uuid/dist/rng-browser.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +let getRandomValues; +const rnds8 = new Uint8Array(16); + +function rng() { + // lazy load so that environments that need to polyfill have a chance to do so + if (!getRandomValues) { + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); + + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + } + + return getRandomValues(rnds8); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/rng.js b/node_modules/uuid/dist/rng.js new file mode 100644 index 000000000..3507f9377 --- /dev/null +++ b/node_modules/uuid/dist/rng.js @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1-browser.js b/node_modules/uuid/dist/sha1-browser.js new file mode 100644 index 000000000..24cbcedca --- /dev/null +++ b/node_modules/uuid/dist/sha1-browser.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +// Adapted from Chris Veness' SHA1 code at +// http://www.movable-type.co.uk/scripts/sha1.html +function f(s, x, y, z) { + switch (s) { + case 0: + return x & y ^ ~x & z; + + case 1: + return x ^ y ^ z; + + case 2: + return x & y ^ x & z ^ y & z; + + case 3: + return x ^ y ^ z; + } +} + +function ROTL(x, n) { + return x << n | x >>> 32 - n; +} + +function sha1(bytes) { + const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + + if (typeof bytes === 'string') { + const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = []; + + for (let i = 0; i < msg.length; ++i) { + bytes.push(msg.charCodeAt(i)); + } + } else if (!Array.isArray(bytes)) { + // Convert Array-like to Array + bytes = Array.prototype.slice.call(bytes); + } + + bytes.push(0x80); + const l = bytes.length / 4 + 2; + const N = Math.ceil(l / 16); + const M = new Array(N); + + for (let i = 0; i < N; ++i) { + const arr = new Uint32Array(16); + + for (let j = 0; j < 16; ++j) { + arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3]; + } + + M[i] = arr; + } + + M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; + + for (let i = 0; i < N; ++i) { + const W = new Uint32Array(80); + + for (let t = 0; t < 16; ++t) { + W[t] = M[i][t]; + } + + for (let t = 16; t < 80; ++t) { + W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); + } + + let a = H[0]; + let b = H[1]; + let c = H[2]; + let d = H[3]; + let e = H[4]; + + for (let t = 0; t < 80; ++t) { + const s = Math.floor(t / 20); + const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + + H[0] = H[0] + a >>> 0; + H[1] = H[1] + b >>> 0; + H[2] = H[2] + c >>> 0; + H[3] = H[3] + d >>> 0; + H[4] = H[4] + e >>> 0; + } + + return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; +} + +var _default = sha1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1.js b/node_modules/uuid/dist/sha1.js new file mode 100644 index 000000000..03bdd63ce --- /dev/null +++ b/node_modules/uuid/dist/sha1.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/stringify.js b/node_modules/uuid/dist/stringify.js new file mode 100644 index 000000000..b8e751940 --- /dev/null +++ b/node_modules/uuid/dist/stringify.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuid.min.js b/node_modules/uuid/dist/umd/uuid.min.js new file mode 100644 index 000000000..639ca2f2d --- /dev/null +++ b/node_modules/uuid/dist/umd/uuid.min.js @@ -0,0 +1 @@ +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<>5]|=(255&r[t/8])<>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidNIL.min.js b/node_modules/uuid/dist/umd/uuidNIL.min.js new file mode 100644 index 000000000..30b28a7e0 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidNIL.min.js @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidParse.min.js b/node_modules/uuid/dist/umd/uuidParse.min.js new file mode 100644 index 000000000..d48ea6af5 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidParse.min.js @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidStringify.min.js b/node_modules/uuid/dist/umd/uuidStringify.min.js new file mode 100644 index 000000000..fd39adc33 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidStringify.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidValidate.min.js b/node_modules/uuid/dist/umd/uuidValidate.min.js new file mode 100644 index 000000000..378e5b902 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidValidate.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){return"string"==typeof t&&e.test(t)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidVersion.min.js b/node_modules/uuid/dist/umd/uuidVersion.min.js new file mode 100644 index 000000000..274bb090d --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidVersion.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv1.min.js b/node_modules/uuid/dist/umd/uuidv1.min.js new file mode 100644 index 000000000..2622889a2 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv1.min.js @@ -0,0 +1 @@ +!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv3.min.js b/node_modules/uuid/dist/umd/uuidv3.min.js new file mode 100644 index 000000000..8d37b62d7 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv3.min.js @@ -0,0 +1 @@ +!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<>5]|=(255&n[t/8])<1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv5.min.js b/node_modules/uuid/dist/umd/uuidv5.min.js new file mode 100644 index 000000000..ba6fc63da --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv5.min.js @@ -0,0 +1 @@ +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).uuidv5=e()}(this,(function(){"use strict";var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function e(e){return"string"==typeof e&&r.test(e)}for(var t=[],n=0;n<256;++n)t.push((n+256).toString(16).substr(1));function a(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function o(r,e){return r<>>32-e}return function(r,n,a){function o(r,o,i,f){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+r.length);if(s.set(o),s.set(r,o.length),(s=a(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){f=f||0;for(var u=0;u<16;++u)i[f+u]=s[u];return i}return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!e(a))throw TypeError("Stringified UUID is invalid");return a}(s)}try{o.name=r}catch(r){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=[];for(var i=0;i>>0;A=U,U=w,w=o(b,30)>>>0,b=g,g=C}t[0]=t[0]+g>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+w>>>0,t[3]=t[3]+U>>>0,t[4]=t[4]+A>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))})); \ No newline at end of file diff --git a/node_modules/uuid/dist/uuid-bin.js b/node_modules/uuid/dist/uuid-bin.js new file mode 100644 index 000000000..50a7a9f17 --- /dev/null +++ b/node_modules/uuid/dist/uuid-bin.js @@ -0,0 +1,85 @@ +"use strict"; + +var _assert = _interopRequireDefault(require("assert")); + +var _v = _interopRequireDefault(require("./v1.js")); + +var _v2 = _interopRequireDefault(require("./v3.js")); + +var _v3 = _interopRequireDefault(require("./v4.js")); + +var _v4 = _interopRequireDefault(require("./v5.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122'); +} + +const args = process.argv.slice(2); + +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} + +const version = args.shift() || 'v4'; + +switch (version) { + case 'v1': + console.log((0, _v.default)()); + break; + + case 'v3': + { + const name = args.shift(); + let namespace = args.shift(); + (0, _assert.default)(name != null, 'v3 name not specified'); + (0, _assert.default)(namespace != null, 'v3 namespace not specified'); + + if (namespace === 'URL') { + namespace = _v2.default.URL; + } + + if (namespace === 'DNS') { + namespace = _v2.default.DNS; + } + + console.log((0, _v2.default)(name, namespace)); + break; + } + + case 'v4': + console.log((0, _v3.default)()); + break; + + case 'v5': + { + const name = args.shift(); + let namespace = args.shift(); + (0, _assert.default)(name != null, 'v5 name not specified'); + (0, _assert.default)(namespace != null, 'v5 namespace not specified'); + + if (namespace === 'URL') { + namespace = _v4.default.URL; + } + + if (namespace === 'DNS') { + namespace = _v4.default.DNS; + } + + console.log((0, _v4.default)(name, namespace)); + break; + } + + default: + usage(); + process.exit(1); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/v1.js b/node_modules/uuid/dist/v1.js new file mode 100644 index 000000000..abb9b3d16 --- /dev/null +++ b/node_modules/uuid/dist/v1.js @@ -0,0 +1,107 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(require("./rng.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.default)(b); +} + +var _default = v1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v3.js b/node_modules/uuid/dist/v3.js new file mode 100644 index 000000000..6b47ff517 --- /dev/null +++ b/node_modules/uuid/dist/v3.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(require("./v35.js")); + +var _md = _interopRequireDefault(require("./md5.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v35.js b/node_modules/uuid/dist/v35.js new file mode 100644 index 000000000..f784c6337 --- /dev/null +++ b/node_modules/uuid/dist/v35.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = _default; +exports.URL = exports.DNS = void 0; + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +var _parse = _interopRequireDefault(require("./parse.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.default)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/v4.js b/node_modules/uuid/dist/v4.js new file mode 100644 index 000000000..838ce0b28 --- /dev/null +++ b/node_modules/uuid/dist/v4.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(require("./rng.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + options = options || {}; + + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return (0, _stringify.default)(rnds); +} + +var _default = v4; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v5.js b/node_modules/uuid/dist/v5.js new file mode 100644 index 000000000..99d615e09 --- /dev/null +++ b/node_modules/uuid/dist/v5.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(require("./v35.js")); + +var _sha = _interopRequireDefault(require("./sha1.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/validate.js b/node_modules/uuid/dist/validate.js new file mode 100644 index 000000000..fd052157d --- /dev/null +++ b/node_modules/uuid/dist/validate.js @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _regex = _interopRequireDefault(require("./regex.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/version.js b/node_modules/uuid/dist/version.js new file mode 100644 index 000000000..b72949cdb --- /dev/null +++ b/node_modules/uuid/dist/version.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +var _default = version; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json index efc07b8f6..f0ab3711e 100644 --- a/node_modules/uuid/package.json +++ b/node_modules/uuid/package.json @@ -1,6 +1,6 @@ { "name": "uuid", - "version": "3.4.0", + "version": "8.3.2", "description": "RFC4122 (v1, v4, and v5) UUIDs", "commitlint": { "extends": [ @@ -14,28 +14,100 @@ ], "license": "MIT", "bin": { - "uuid": "./bin/uuid" + "uuid": "./dist/bin/uuid" }, + "sideEffects": false, + "main": "./dist/index.js", + "exports": { + ".": { + "node": { + "module": "./dist/esm-node/index.js", + "require": "./dist/index.js", + "import": "./wrapper.mjs" + }, + "default": "./dist/esm-browser/index.js" + }, + "./package.json": "./package.json" + }, + "module": "./dist/esm-node/index.js", + "browser": { + "./dist/md5.js": "./dist/md5-browser.js", + "./dist/rng.js": "./dist/rng-browser.js", + "./dist/sha1.js": "./dist/sha1-browser.js", + "./dist/esm-node/index.js": "./dist/esm-browser/index.js" + }, + "files": [ + "CHANGELOG.md", + "CONTRIBUTING.md", + "LICENSE.md", + "README.md", + "dist", + "wrapper.mjs" + ], "devDependencies": { - "@commitlint/cli": "~8.2.0", - "@commitlint/config-conventional": "~8.2.0", - "eslint": "~6.4.0", - "husky": "~3.0.5", - "mocha": "6.2.0", - "runmd": "1.2.1", - "standard-version": "7.0.0" + "@babel/cli": "7.11.6", + "@babel/core": "7.11.6", + "@babel/preset-env": "7.11.5", + "@commitlint/cli": "11.0.0", + "@commitlint/config-conventional": "11.0.0", + "@rollup/plugin-node-resolve": "9.0.0", + "babel-eslint": "10.1.0", + "bundlewatch": "0.3.1", + "eslint": "7.10.0", + "eslint-config-prettier": "6.12.0", + "eslint-config-standard": "14.1.1", + "eslint-plugin-import": "2.22.1", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-prettier": "3.1.4", + "eslint-plugin-promise": "4.2.1", + "eslint-plugin-standard": "4.0.1", + "husky": "4.3.0", + "jest": "25.5.4", + "lint-staged": "10.4.0", + "npm-run-all": "4.1.5", + "optional-dev-dependency": "2.0.1", + "prettier": "2.1.2", + "random-seed": "0.3.0", + "rollup": "2.28.2", + "rollup-plugin-terser": "7.0.2", + "runmd": "1.3.2", + "standard-version": "9.0.0" + }, + "optionalDevDependencies": { + "@wdio/browserstack-service": "6.4.0", + "@wdio/cli": "6.4.0", + "@wdio/jasmine-framework": "6.4.0", + "@wdio/local-runner": "6.4.0", + "@wdio/spec-reporter": "6.4.0", + "@wdio/static-server-service": "6.4.0", + "@wdio/sync": "6.4.0" }, "scripts": { - "lint": "eslint .", - "test": "npm run lint && mocha test/test.js", + "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build", + "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build", + "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test", + "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test", + "lint": "npm run eslint:check && npm run prettier:check", + "eslint:check": "eslint src/ test/ examples/ *.js", + "eslint:fix": "eslint --fix src/ test/ examples/ *.js", + "pretest": "[ -n $CI ] || npm run build", + "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/", + "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**", + "test:browser": "wdio run ./wdio.conf.js", + "pretest:node": "npm run build", + "test:node": "npm-run-all --parallel examples:node:**", + "test:pack": "./scripts/testpack.sh", + "pretest:benchmark": "npm run build", + "test:benchmark": "cd examples/benchmark && npm install && npm test", + "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'", + "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'", + "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", "md": "runmd --watch --output=README.md README_js.md", - "release": "standard-version", - "prepare": "runmd --output=README.md README_js.md" - }, - "browser": { - "./lib/rng.js": "./lib/rng-browser.js", - "./lib/sha1.js": "./lib/sha1-browser.js", - "./lib/md5.js": "./lib/md5-browser.js" + "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )", + "docs:diff": "npm run docs && git diff --quiet README.md", + "build": "./scripts/build.sh", + "prepack": "npm run build", + "release": "standard-version --no-verify" }, "repository": { "type": "git", @@ -43,7 +115,21 @@ }, "husky": { "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*.{js,jsx,json,md}": [ + "prettier --write" + ], + "*.{js,jsx}": [ + "eslint --fix" + ] + }, + "standard-version": { + "scripts": { + "postchangelog": "prettier --write CHANGELOG.md" } } } diff --git a/node_modules/uuid/wrapper.mjs b/node_modules/uuid/wrapper.mjs new file mode 100644 index 000000000..c31e9cef4 --- /dev/null +++ b/node_modules/uuid/wrapper.mjs @@ -0,0 +1,10 @@ +import uuid from './dist/index.js'; +export const v1 = uuid.v1; +export const v3 = uuid.v3; +export const v4 = uuid.v4; +export const v5 = uuid.v5; +export const NIL = uuid.NIL; +export const version = uuid.version; +export const validate = uuid.validate; +export const stringify = uuid.stringify; +export const parse = uuid.parse; diff --git a/node_modules/which-typed-array/.eslintrc b/node_modules/which-typed-array/.eslintrc index 35d40f11c..8b2ada071 100644 --- a/node_modules/which-typed-array/.eslintrc +++ b/node_modules/which-typed-array/.eslintrc @@ -5,6 +5,5 @@ "rules": { "max-statements-per-line": [2, { "max": 2 }], - "no-extra-parens": 0, }, } diff --git a/node_modules/which-typed-array/CHANGELOG.md b/node_modules/which-typed-array/CHANGELOG.md index c5474db03..e030db634 100644 --- a/node_modules/which-typed-array/CHANGELOG.md +++ b/node_modules/which-typed-array/CHANGELOG.md @@ -5,43 +5,6 @@ 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). -## [v1.1.19](https://github.com/inspect-js/which-typed-array/compare/v1.1.18...v1.1.19) - 2025-03-08 - -### Commits - -- [Refactor] use `get-proto`, improve types [`e05d535`](https://github.com/inspect-js/which-typed-array/commit/e05d535fe4e4c4e674937718fe1cae90abff3606) -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`0dade9c`](https://github.com/inspect-js/which-typed-array/commit/0dade9c4c334f37ed14083a35724eea56a496991) -- [Deps] update `call-bound`, `for-each` [`490791a`](https://github.com/inspect-js/which-typed-array/commit/490791af49605390f9805660492976f86c64feb1) -- [Tests] skip `npm ls` in older nodes [`f83aaca`](https://github.com/inspect-js/which-typed-array/commit/f83aaca6b6634ce795f8caf9a1e14ab15d35161c) -- [Dev Deps] update `@ljharb/tsconfig` [`63c4795`](https://github.com/inspect-js/which-typed-array/commit/63c479564e5f3cb022c784ffe505673597341aab) - -## [v1.1.18](https://github.com/inspect-js/which-typed-array/compare/v1.1.17...v1.1.18) - 2024-12-18 - -### Commits - -- [types] improve types [`4b57173`](https://github.com/inspect-js/which-typed-array/commit/4b5717349976578c6b48966d581687df5dcc2e9b) -- [Dev Deps] update `@types/tape` [`81853b0`](https://github.com/inspect-js/which-typed-array/commit/81853b075c018538859a5533578be654fafecdae) - -## [v1.1.17](https://github.com/inspect-js/which-typed-array/compare/v1.1.16...v1.1.17) - 2024-12-18 - -### Commits - -- [types] improve types [`86bc612`](https://github.com/inspect-js/which-typed-array/commit/86bc61207e5970c2c7e13cdda4ccdeb0981ac40b) -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/tsconfig`, `@types/tape` [`2e9bed6`](https://github.com/inspect-js/which-typed-array/commit/2e9bed67f1d623b176b1a7f06c5eab006c21cf96) -- [Deps] update `call-bind`, `gopd` [`34579df`](https://github.com/inspect-js/which-typed-array/commit/34579df639e35ceb3a7e54f8e680a4077a950b8b) -- [Refactor] use `call-bound` directly [`2a2d84e`](https://github.com/inspect-js/which-typed-array/commit/2a2d84e91045266841ddb47afe594899bae2f483) - -## [v1.1.16](https://github.com/inspect-js/which-typed-array/compare/v1.1.15...v1.1.16) - 2024-11-27 - -### Commits - -- [actions] split out node 10-20, and 20+ [`8e289a9`](https://github.com/inspect-js/which-typed-array/commit/8e289a9665a32f7ea267c3ffed7451b154adbe26) -- [Dev Deps] update `@arethetypeswrong/cli`, `@ljharb/eslint-config`, `@types/node`, `@types/tape`, `auto-changelog`, `tape` [`3d4a678`](https://github.com/inspect-js/which-typed-array/commit/3d4a67872d0dbecb755e63ba4101e9ec030a5e7e) -- [Tests] replace `aud` with `npm audit` [`6fbada9`](https://github.com/inspect-js/which-typed-array/commit/6fbada976743192db47000e47eefc07708713ea0) -- [types] add an additional overload [`db5a791`](https://github.com/inspect-js/which-typed-array/commit/db5a791642cd8b4d78fe4ed4da151c4543ee0840) -- [Dev Deps] remove an unused DT package [`6bfff4c`](https://github.com/inspect-js/which-typed-array/commit/6bfff4c3b0c415cb32cd12be6fab3cbbe9e10e13) -- [Dev Deps] add missing peer dep [`05fd582`](https://github.com/inspect-js/which-typed-array/commit/05fd582a703cd68ee7613af0ef2c45546ea5d2ba) - ## [v1.1.15](https://github.com/inspect-js/which-typed-array/compare/v1.1.14...v1.1.15) - 2024-03-10 ### Commits diff --git a/node_modules/which-typed-array/index.d.ts b/node_modules/which-typed-array/index.d.ts index 0f87a20ac..052bf4103 100644 --- a/node_modules/which-typed-array/index.d.ts +++ b/node_modules/which-typed-array/index.d.ts @@ -15,11 +15,10 @@ declare function whichTypedArray(value: Float32Array): 'Float32Array'; declare function whichTypedArray(value: Float64Array): 'Float64Array'; declare function whichTypedArray(value: BigInt64Array): 'BigInt64Array'; declare function whichTypedArray(value: BigUint64Array): 'BigUint64Array'; -declare function whichTypedArray(value: whichTypedArray.TypedArray): whichTypedArray.TypedArrayName; declare function whichTypedArray(value: unknown): false | null; declare namespace whichTypedArray { - export type TypedArrayName = + type TypedArrayName = | 'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' @@ -32,20 +31,20 @@ declare namespace whichTypedArray { | 'BigInt64Array' | 'BigUint64Array'; - export type TypedArray = - | Int8Array - | Uint8Array - | Uint8ClampedArray - | Int16Array - | Uint16Array - | Int32Array - | Uint32Array - | Float32Array - | Float64Array - | BigInt64Array - | BigUint64Array; + type TypedArray = + | Int8Array + | Uint8Array + | Uint8ClampedArray + | Int16Array + | Uint16Array + | Int32Array + | Uint32Array + | Float32Array + | Float64Array + | BigInt64Array + | BigUint64Array; - export type TypedArrayConstructor = + type TypedArrayConstructor = | Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor diff --git a/node_modules/which-typed-array/index.js b/node_modules/which-typed-array/index.js index eb7516945..1a6edc547 100644 --- a/node_modules/which-typed-array/index.js +++ b/node_modules/which-typed-array/index.js @@ -3,10 +3,10 @@ var forEach = require('for-each'); var availableTypedArrays = require('available-typed-arrays'); var callBind = require('call-bind'); -var callBound = require('call-bound'); +var callBound = require('call-bind/callBound'); var gOPD = require('gopd'); -var getProto = require('get-proto'); +/** @type {(O: object) => string} */ var $toString = callBound('Object.prototype.toString'); var hasToStringTag = require('has-tostringtag/shams')(); @@ -14,6 +14,7 @@ var g = typeof globalThis === 'undefined' ? global : globalThis; var typedArrays = availableTypedArrays(); var $slice = callBound('String.prototype.slice'); +var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof'); /** @type {(array: readonly T[], value: unknown) => number} */ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) { @@ -25,18 +26,18 @@ var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(ar return -1; }; -/** @typedef {import('./types').Getter} Getter */ -/** @type {import('./types').Cache} */ +/** @typedef {(receiver: import('.').TypedArray) => string | typeof Uint8Array.prototype.slice.call | typeof Uint8Array.prototype.set.call} Getter */ +/** @type {{ [k in `\$${import('.').TypedArrayName}`]?: Getter } & { __proto__: null }} */ var cache = { __proto__: null }; -if (hasToStringTag && gOPD && getProto) { +if (hasToStringTag && gOPD && getPrototypeOf) { forEach(typedArrays, function (typedArray) { var arr = new g[typedArray](); - if (Symbol.toStringTag in arr && getProto) { - var proto = getProto(arr); + if (Symbol.toStringTag in arr) { + var proto = getPrototypeOf(arr); // @ts-expect-error TS won't narrow inside a closure var descriptor = gOPD(proto, Symbol.toStringTag); - if (!descriptor && proto) { - var superProto = getProto(proto); + if (!descriptor) { + var superProto = getPrototypeOf(proto); // @ts-expect-error TS won't narrow inside a closure descriptor = gOPD(superProto, Symbol.toStringTag); } @@ -49,12 +50,8 @@ if (hasToStringTag && gOPD && getProto) { var arr = new g[typedArray](); var fn = arr.slice || arr.set; if (fn) { - cache[ - /** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray) - ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ ( - // @ts-expect-error TODO FIXME - callBind(fn) - ); + // @ts-expect-error TODO: fix + cache['$' + typedArray] = callBind(fn); } }); } @@ -63,14 +60,15 @@ if (hasToStringTag && gOPD && getProto) { var tryTypedArrays = function tryAllTypedArrays(value) { /** @type {ReturnType} */ var found = false; forEach( - /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache), + // eslint-disable-next-line no-extra-parens + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache), /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, typedArray) { if (!found) { try { - // @ts-expect-error a throw is fine here + // @ts-expect-error TODO: fix if ('$' + getter(value) === typedArray) { - found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1)); + found = $slice(typedArray, 1); } } catch (e) { /**/ } } @@ -83,13 +81,14 @@ var tryTypedArrays = function tryAllTypedArrays(value) { var trySlices = function tryAllSlices(value) { /** @type {ReturnType} */ var found = false; forEach( - /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache), - /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) { + // eslint-disable-next-line no-extra-parens + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache), + /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) { if (!found) { try { - // @ts-expect-error a throw is fine here + // @ts-expect-error TODO: fix getter(value); - found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1)); + found = $slice(name, 1); } catch (e) { /**/ } } } diff --git a/node_modules/which-typed-array/package.json b/node_modules/which-typed-array/package.json index 769af0d36..5bcab5f74 100644 --- a/node_modules/which-typed-array/package.json +++ b/node_modules/which-typed-array/package.json @@ -1,6 +1,6 @@ { "name": "which-typed-array", - "version": "1.1.19", + "version": "1.1.15", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com", @@ -29,7 +29,7 @@ "test": "npm run tests-only && npm run test:harmony", "tests-only": "nyc tape test", "test:harmony": "nyc node --harmony --es-staging test", - "posttest": "npx npm@'>=10.2' audit --production", + "posttest": "aud --production", "lint": "eslint --ext=js,mjs .", "postlint": "tsc -p . && attw -P", "version": "auto-changelog && git add CHANGELOG.md", @@ -61,26 +61,25 @@ ], "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", "has-tostringtag": "^1.0.2" }, "devDependencies": { - "@arethetypeswrong/cli": "^0.17.4", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.3.2", + "@arethetypeswrong/cli": "^0.15.1", + "@ljharb/eslint-config": "^21.1.0", + "@ljharb/tsconfig": "^0.2.0", "@types/call-bind": "^1.0.5", "@types/for-each": "^0.3.3", "@types/gopd": "^1.0.3", "@types/is-callable": "^1.1.2", "@types/make-arrow-function": "^1.2.2", "@types/make-generator-function": "^2.0.3", - "@types/tape": "^5.8.1", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", + "@types/node": "^20.11.25", + "@types/tape": "^5.6.4", + "aud": "^2.0.4", + "auto-changelog": "^2.4.0", "eslint": "=8.8.0", "in-publish": "^2.0.1", "is-callable": "^1.2.7", @@ -89,7 +88,7 @@ "npmignore": "^0.3.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", + "tape": "^5.7.5", "typescript": "next" }, "testling": { @@ -123,8 +122,7 @@ }, "publishConfig": { "ignore": [ - ".github/workflows", - "types.d.ts" + ".github/workflows" ] } } diff --git a/node_modules/which-typed-array/tsconfig.json b/node_modules/which-typed-array/tsconfig.json index dcdc3b08a..6716d81ce 100644 --- a/node_modules/which-typed-array/tsconfig.json +++ b/node_modules/which-typed-array/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@ljharb/tsconfig", "compilerOptions": { - "target": "ESNext", + "target": "ES2021", }, "exclude": [ "coverage" diff --git a/package-lock.json b/package-lock.json index 2a81b31a6..b3cfecb36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,8 @@ "@actions/core": "^1.10.0", "@actions/github": "^4.0.0", "actions-secret-parser": "^1.0.4", - "azure-actions-appservice-rest": "^1.3.16", - "azure-actions-utility": "^1.0.5", + "azure-actions-appservice-rest": "^1.3.13", + "azure-actions-utility": "^1.0.3", "azure-actions-webclient": "^1.1.1" }, "devDependencies": { @@ -26,20 +26,18 @@ } }, "node_modules/@actions/core": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", - "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", - "license": "MIT", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz", + "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==", "dependencies": { - "@actions/exec": "^1.1.1", - "@actions/http-client": "^2.0.1" + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" } }, "node_modules/@actions/exec": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", - "license": "MIT", "dependencies": { "@actions/io": "^1.0.1" } @@ -48,7 +46,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/@actions/github/-/github-4.0.0.tgz", "integrity": "sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==", - "license": "MIT", "dependencies": { "@actions/http-client": "^1.0.8", "@octokit/core": "^3.0.0", @@ -60,16 +57,14 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz", "integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==", - "license": "MIT", "dependencies": { "tunnel": "0.0.6" } }, "node_modules/@actions/http-client": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz", - "integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==", - "license": "MIT", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.1.tgz", + "integrity": "sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==", "dependencies": { "tunnel": "^0.0.6", "undici": "^5.25.4" @@ -78,15 +73,13 @@ "node_modules/@actions/io": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz", - "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==", - "license": "MIT" + "integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==" }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -96,47 +89,43 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.0.tgz", - "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.2.tgz", + "integrity": "sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz", - "integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.0", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.27.3", - "@babel/helpers": "^7.27.6", - "@babel/parser": "^7.28.0", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.0", - "@babel/types": "^7.28.0", + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -152,32 +141,29 @@ } }, "node_modules/@babel/generator": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.0.tgz", - "integrity": "sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", + "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.28.0", - "@babel/types": "^7.28.0", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" + "@babel/types": "^7.25.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", + "@babel/compat-data": "^7.25.2", + "@babel/helper-validator-option": "^7.24.8", + "browserslist": "^4.23.1", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -185,40 +171,29 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz", - "integrity": "sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.27.3" + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" }, "engines": { "node": ">=6.9.0" @@ -228,67 +203,160 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", + "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", + "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", + "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", - "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.0.tgz", + "integrity": "sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.6" + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.0" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/highlight": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.3.tgz", + "integrity": "sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.28.0" + "@babel/types": "^7.25.2" }, "bin": { "parser": "bin/babel-parser.js" @@ -302,7 +370,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -315,7 +382,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -328,7 +394,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -336,44 +401,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", - "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -386,7 +418,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -395,13 +426,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", - "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", + "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -415,7 +445,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -428,7 +457,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -441,7 +469,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -454,7 +481,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -467,7 +493,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -480,7 +505,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -488,28 +512,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -521,13 +528,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", - "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz", + "integrity": "sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" + "@babel/helper-plugin-utils": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -537,48 +543,46 @@ } }, "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.0.tgz", - "integrity": "sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==", + "version": "7.25.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.3.tgz", + "integrity": "sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.0", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.0", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.0", - "debug": "^4.3.1" + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.25.0", + "@babel/parser": "^7.25.3", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.2", + "debug": "^4.3.1", + "globals": "^11.1.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", + "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" }, "engines": { "node": ">=6.9.0" @@ -588,15 +592,13 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -609,7 +611,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -619,7 +620,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", - "license": "MIT", "engines": { "node": ">=14" } @@ -629,7 +629,6 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -646,7 +645,6 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -656,7 +654,6 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -674,7 +671,6 @@ "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/reporters": "^29.7.0", @@ -722,7 +718,6 @@ "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.7.0", "@jest/types": "^29.6.3", @@ -738,7 +733,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.7.0", "jest-snapshot": "^29.7.0" @@ -752,7 +746,6 @@ "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3" }, @@ -765,7 +758,6 @@ "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@sinonjs/fake-timers": "^10.0.2", @@ -783,7 +775,6 @@ "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -799,7 +790,6 @@ "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, - "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.7.0", @@ -843,7 +833,6 @@ "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, - "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -856,7 +845,6 @@ "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", @@ -871,7 +859,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/types": "^29.6.3", @@ -887,7 +874,6 @@ "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "graceful-fs": "^4.2.9", @@ -903,7 +889,6 @@ "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.6.3", @@ -930,7 +915,6 @@ "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", @@ -944,14 +928,17 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, - "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -959,24 +946,30 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==", + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -986,7 +979,6 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3" } @@ -995,7 +987,6 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", - "license": "MIT", "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", @@ -1010,7 +1001,6 @@ "version": "6.0.12", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "is-plain-object": "^5.0.0", @@ -1021,7 +1011,6 @@ "version": "4.8.0", "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", - "license": "MIT", "dependencies": { "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", @@ -1031,14 +1020,12 @@ "node_modules/@octokit/openapi-types": { "version": "12.11.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==", - "license": "MIT" + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.21.3", "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.40.0" }, @@ -1050,7 +1037,6 @@ "version": "4.15.1", "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.15.1.tgz", "integrity": "sha512-4gQg4ySoW7ktKB0Mf38fHzcSffVZd6mT5deJQtpqkuPuAqzlED5AJTeW8Uk7dPRn7KaOlWcXB0MedTFJU1j4qA==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.13.0", "deprecation": "^2.3.1" @@ -1063,7 +1049,6 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", - "license": "MIT", "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.1.0", @@ -1077,7 +1062,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", - "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", @@ -1088,7 +1072,6 @@ "version": "6.41.0", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", - "license": "MIT", "dependencies": { "@octokit/openapi-types": "^12.11.0" } @@ -1097,15 +1080,13 @@ "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -1115,7 +1096,6 @@ "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.0" } @@ -1124,36 +1104,31 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -1163,11 +1138,10 @@ } }, "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } @@ -1177,18 +1151,16 @@ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", - "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.20.7" } @@ -1198,7 +1170,6 @@ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -1207,15 +1178,13 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -1225,45 +1194,40 @@ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } }, "node_modules/@types/jest": { - "version": "29.5.14", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", - "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", "dev": true, - "license": "MIT", "dependencies": { "expect": "^29.0.0", "pretty-format": "^29.0.0" } }, "node_modules/@types/node": { - "version": "20.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.8.tgz", - "integrity": "sha512-HzbgCY53T6bfu4tT7Aq3TvViJyHjLjPNaAS3HOuMc9pw97KHsUtXNX4L+wu59g1WnjsZSko35MbEqnO58rihhw==", + "version": "20.14.13", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.13.tgz", + "integrity": "sha512-+bHoGiZb8UiQ0+WEtmph2IWQCjIqg8MDZMAV+ppRRhUZnquF5mQkP/9vpSwJClEiSM/C7fZZExPzfU0vJTyp8w==", "dev": true, - "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~5.26.4" } }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", "dev": true, - "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -1272,21 +1236,18 @@ "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "license": "ISC" + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "version": "8.12.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", + "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", "dev": true, - "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -1295,11 +1256,10 @@ } }, "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.3.tgz", + "integrity": "sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==", "dev": true, - "license": "MIT", "dependencies": { "acorn": "^8.11.0" }, @@ -1311,7 +1271,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/actions-secret-parser/-/actions-secret-parser-1.0.4.tgz", "integrity": "sha512-gDAB8GK2Vj9CN5r97DZlmpxqrMcpAGKGWiIY3hpFhJMieLpl3K3ocVR49/Q4ANaA5a/2wNRE3Qng+x0K8mkmkQ==", - "license": "MIT", "dependencies": { "@actions/core": "^1.1.10", "jsonpath": "^1.0.2", @@ -1324,7 +1283,6 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -1339,7 +1297,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz", "integrity": "sha512-WJ70OI4jCaMy52vGa/ypFSKFb/TrYNPaQ2xco5nUwE0C5H8piume/uAZNNdXXiMQ6DbRmiE7l8oNBHu05ZKkrw==", - "license": "MIT", "dependencies": { "ansi-wrap": "0.1.0" }, @@ -1352,7 +1309,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -1362,7 +1318,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1377,7 +1332,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1387,7 +1341,6 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1401,7 +1354,6 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1410,7 +1362,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/archiver/-/archiver-2.1.1.tgz", "integrity": "sha512-01psM0DMD3YItvhnAXZODfsViaeDidrJwfne3lsoVrbyYa/xFQwTbVjY+2WlEBm7qH1fCsyxAA1SgNr/XenTlQ==", - "license": "MIT", "dependencies": { "archiver-utils": "^1.3.0", "async": "^2.0.0", @@ -1429,7 +1380,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-1.3.0.tgz", "integrity": "sha512-h+hTREBXcW5e1L9RihGXdH4PHHdGipG/jE2sMZrqIH6BmZAxeGU5IWjVsKhokdCSWX7km6Kkh406zZNEElHFPQ==", - "license": "MIT", "dependencies": { "glob": "^7.0.0", "graceful-fs": "^4.1.0", @@ -1446,15 +1396,13 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } @@ -1463,7 +1411,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1472,7 +1419,6 @@ "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "license": "MIT", "dependencies": { "lodash": "^4.17.14" } @@ -1481,7 +1427,6 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/async-array-reduce/-/async-array-reduce-0.2.1.tgz", "integrity": "sha512-/ywTADOcaEnwiAnOEi0UB/rAcIq5bTFfCV9euv3jLYFUMmy6KvKccTQUnLlp8Ensmfj43wHSmbGiPqjsZ6RhNA==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1495,14 +1440,12 @@ "type": "individual", "url": "https://paulmillr.com/funding/" } - ], - "license": "MIT" + ] }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -1514,10 +1457,9 @@ } }, "node_modules/azure-actions-appservice-rest": { - "version": "1.3.29", - "resolved": "https://registry.npmjs.org/azure-actions-appservice-rest/-/azure-actions-appservice-rest-1.3.29.tgz", - "integrity": "sha512-UWEyHoBi1ve3hFLeLpfCHKUKR8AIUSABD8F5YK9Zc8nHqFshKNsBIEgE55MvMmmAkV3cynhNJi8/Ns1Cr/ktXw==", - "license": "MIT", + "version": "1.3.16", + "resolved": "https://registry.npmjs.org/azure-actions-appservice-rest/-/azure-actions-appservice-rest-1.3.16.tgz", + "integrity": "sha512-mJkAIumv4mXZzXHprsCeVD8wme2qfATVCsSfuVshBqyt1unJaNIugsEGChcSW98g5aZ87bpB0wj+RkzF8FpQ6g==", "dependencies": { "@actions/core": "^1.1.10", "@actions/io": "^1.0.1", @@ -1533,16 +1475,23 @@ "node_modules/azure-actions-appservice-rest/node_modules/@types/node": { "version": "14.18.63", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==", - "license": "MIT" + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + }, + "node_modules/azure-actions-appservice-rest/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } }, "node_modules/azure-actions-utility": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/azure-actions-utility/-/azure-actions-utility-1.0.5.tgz", - "integrity": "sha512-xnJEg/k5G/Dzrqt8e+lXYuKLJppxxTAxnnoxU+LBS6ajgxwXel1Z+QQf38cbNsfalpWnKGNB1K/TBgUHkyWLoQ==", - "license": "MIT", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/azure-actions-utility/-/azure-actions-utility-1.0.3.tgz", + "integrity": "sha512-lLaarW71FBhSEvuN+UEQ4vidLDfcCl67wW6Zu95g+/rgeohRF/5vuVsABLtGmcw7eIjxMoDDfR3SSbBf5rvBKg==", "dependencies": { - "@actions/core": "^1.1.10", + "@actions/core": "^1.1.1", "@actions/io": "^1.0.1", "archiver": "^2.1.1", "decompress-zip": "^0.3.0", @@ -1557,7 +1506,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/azure-actions-webclient/-/azure-actions-webclient-1.1.1.tgz", "integrity": "sha512-g5/3fGp/8OHhfDixkZMnZ/ZNdh+WxXVgYBJx+jdRbRxRz7o1wxuRh5Rw3qJ8Zmz3H8NjAVVrVGQ9U8pgcZfGCQ==", - "license": "MIT", "dependencies": { "@actions/core": "^1.1.3", "@actions/exec": "^1.0.1", @@ -1574,7 +1522,6 @@ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", @@ -1596,7 +1543,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1613,7 +1559,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -1630,7 +1575,6 @@ "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -1642,27 +1586,23 @@ } }, "node_modules/babel-preset-current-node-syntax": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", - "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-import-attributes": "^7.24.7", - "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5" + "@babel/plugin-syntax-top-level-await": "^7.8.3" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -1673,7 +1613,6 @@ "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, - "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" @@ -1688,8 +1627,7 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", @@ -1708,20 +1646,17 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==", - "license": "Apache-2.0" + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" }, "node_modules/binary": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", "integrity": "sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==", - "license": "MIT", "dependencies": { "buffers": "~0.1.1", "chainsaw": "~0.1.0" @@ -1734,7 +1669,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "license": "MIT", "dependencies": { "readable-stream": "^2.3.5", "safe-buffer": "^5.1.1" @@ -1743,14 +1677,12 @@ "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "license": "MIT" + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" }, "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "license": "MIT", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1761,7 +1693,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -1770,9 +1701,9 @@ } }, "node_modules/browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", + "version": "4.23.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz", + "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==", "dev": true, "funding": [ { @@ -1788,12 +1719,11 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" + "caniuse-lite": "^1.0.30001640", + "electron-to-chromium": "^1.4.820", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.1.0" }, "bin": { "browserslist": "cli.js" @@ -1807,7 +1737,6 @@ "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, - "license": "MIT", "dependencies": { "fast-json-stable-stringify": "2.x" }, @@ -1820,7 +1749,6 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } @@ -1843,7 +1771,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -1853,7 +1780,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "license": "MIT", "dependencies": { "buffer-alloc-unsafe": "^1.1.0", "buffer-fill": "^1.0.0" @@ -1862,14 +1788,12 @@ "node_modules/buffer-alloc-unsafe": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "license": "MIT" + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" }, "node_modules/buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", "engines": { "node": "*" } @@ -1877,15 +1801,13 @@ "node_modules/buffer-fill": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "license": "MIT" + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/buffers": { "version": "0.1.1", @@ -1896,44 +1818,15 @@ } }, "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "license": "MIT", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dependencies": { - "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -1947,7 +1840,6 @@ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -1957,15 +1849,14 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", + "version": "1.0.30001646", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001646.tgz", + "integrity": "sha512-dRg00gudiBDDTmUhClSdv3hqRfpbOnU28IpI1T6PBTLWa+kOj0681C8uML3PifYfREuBrVjDGhL3adYpBT6spw==", "dev": true, "funding": [ { @@ -1980,14 +1871,12 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/chainsaw": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", "integrity": "sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==", - "license": "MIT/X11", "dependencies": { "traverse": ">=0.3.0 <0.4" }, @@ -2000,7 +1889,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -2017,7 +1905,6 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -2033,24 +1920,21 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/cjs-module-lexer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", - "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", - "dev": true, - "license": "MIT" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -2064,7 +1948,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "license": "MIT", "engines": { "node": ">=0.8" } @@ -2072,15 +1955,13 @@ "node_modules/clone-stats": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==", - "license": "MIT" + "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==" }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, - "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -2090,15 +1971,13 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -2110,14 +1989,12 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/compress-commons": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-1.2.2.tgz", "integrity": "sha512-SLTU8iWWmcORfUN+4351Z2aZXKJe1tr0jSilPMCZlLPzpdTXnkBW1LevW/MfuANBKJek8Xu9ggqrtVmQrChLtg==", - "license": "MIT", "dependencies": { "buffer-crc32": "^0.2.1", "crc32-stream": "^2.0.0", @@ -2131,21 +2008,18 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/copy": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/copy/-/copy-0.3.2.tgz", "integrity": "sha512-drDFuUZctIuvSuvL9dOF/v5GxrwB1Q8eMIRlYONC0lSMEq+L2xabXP3jme8cQFdDO8cgP8JsuYhQg7JtTwezmg==", - "license": "MIT", "dependencies": { "async-each": "^1.0.0", "bluebird": "^3.4.1", @@ -2173,14 +2047,12 @@ "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, "node_modules/crc": { "version": "3.8.0", "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", - "license": "MIT", "dependencies": { "buffer": "^5.1.0" } @@ -2189,7 +2061,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-2.0.0.tgz", "integrity": "sha512-UjZSqFCbn+jZUHJIh6Y3vMF7EJLcJWNm4tKDf2peJRwlZKHvkkvOMTvAei6zjU9gO1xONVr3rRFw0gixm2eUng==", - "license": "MIT", "dependencies": { "crc": "^3.4.4", "readable-stream": "^2.0.0" @@ -2203,7 +2074,6 @@ "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -2224,15 +2094,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -2243,13 +2111,12 @@ } }, "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", + "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", "dev": true, - "license": "MIT", "dependencies": { - "ms": "^2.1.3" + "ms": "2.1.2" }, "engines": { "node": ">=6.0" @@ -2264,7 +2131,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/decompress-zip/-/decompress-zip-0.3.3.tgz", "integrity": "sha512-/fy1L4s+4jujqj3kNptWjilFw3E6De8U6XUFvqmh4npN3Vsypm3oT2V0bXcmbBWS+5j5tr4okYaFrOmyZkszEg==", - "license": "MIT", "dependencies": { "binary": "^0.3.0", "graceful-fs": "^4.1.3", @@ -2284,14 +2150,12 @@ "node_modules/decompress-zip/node_modules/isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "license": "MIT" + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" }, "node_modules/decompress-zip/node_modules/readable-stream": { "version": "1.1.14", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.1", @@ -2302,15 +2166,13 @@ "node_modules/decompress-zip/node_modules/string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "license": "MIT" + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" }, "node_modules/dedent": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.6.0.tgz", - "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", "dev": true, - "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -2323,15 +2185,13 @@ "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==", - "license": "MIT" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2340,7 +2200,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -2357,7 +2216,6 @@ "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", - "license": "MIT", "dependencies": { "is-descriptor": "^0.1.0" }, @@ -2368,15 +2226,13 @@ "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "license": "ISC" + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" }, "node_modules/detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2386,7 +2242,6 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } @@ -2396,38 +2251,21 @@ "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/electron-to-chromium": { - "version": "1.5.185", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.185.tgz", - "integrity": "sha512-dYOZfUk57hSMPePoIQ1fZWl1Fkj+OshhEVuPacNKWzC1efe56OsHY3l/jCfiAgIICOU3VgOIdoq7ahg7r7n6MQ==", - "dev": true, - "license": "ISC" + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz", + "integrity": "sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==", + "dev": true }, "node_modules/emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -2439,14 +2277,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dependencies": { "once": "^1.4.0" } @@ -2456,16 +2292,17 @@ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } }, "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, "engines": { "node": ">= 0.4" } @@ -2474,29 +2311,15 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, "engines": { "node": ">= 0.4" } }, "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -2506,7 +2329,6 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2515,7 +2337,6 @@ "version": "1.14.3", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "license": "BSD-2-Clause", "dependencies": { "esprima": "^4.0.1", "estraverse": "^4.2.0", @@ -2537,7 +2358,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -2550,7 +2370,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -2559,7 +2378,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -2569,7 +2387,6 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -2601,7 +2418,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-1.2.2.tgz", "integrity": "sha512-rtmc+cjLZqnu9dSYosX9EWmSJhTwpACgJQTfj4hgg2JjOD/6SIQalZrt4a3aQeh++oNxkazcaxrhPUj6+g5G/Q==", - "license": "MIT", "dependencies": { "os-homedir": "^1.0.1" }, @@ -2614,7 +2430,6 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.7.0", "jest-get-type": "^29.6.3", @@ -2630,7 +2445,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "license": "MIT", "dependencies": { "is-extendable": "^0.1.0" }, @@ -2642,21 +2456,18 @@ "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, - "license": "MIT" + "dev": true }, "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==", - "license": "MIT" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -2665,7 +2476,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/file-contents/-/file-contents-0.3.2.tgz", "integrity": "sha512-7xaJjA+9eTve2l1FzoagBX26tICgaTwLPAY9vi/FDutEUKNeBR4YYvvQ8bgxuYJb09edaAQoEGIa6Juim88dpQ==", - "license": "MIT", "dependencies": { "define-property": "^0.2.5", "extend-shallow": "^2.0.1", @@ -2688,7 +2498,6 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/file-stat/-/file-stat-0.2.3.tgz", "integrity": "sha512-wjHoKZzas90Jl1XOBfLnNGc5gl9JTm7sTceuoO4P3OdadlCz1ELrOxYmiamqLJP4S8+phD7wzW8S1oBj+8vnBQ==", - "license": "MIT", "dependencies": { "fs-exists-sync": "^0.1.0", "graceful-fs": "^4.1.4", @@ -2704,7 +2513,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2717,7 +2525,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -2727,37 +2534,27 @@ } }, "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "is-callable": "^1.1.3" } }, "node_modules/fs": { "version": "0.0.1-security", "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", - "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==", - "license": "ISC" + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, "node_modules/fs-exists-sync": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz", "integrity": "sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2765,8 +2562,7 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { "version": "2.3.3", @@ -2774,7 +2570,6 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -2787,7 +2582,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -2797,7 +2591,6 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -2807,27 +2600,20 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" }, "engines": { "node": ">= 0.4" @@ -2841,30 +2627,15 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -2877,7 +2648,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2897,7 +2667,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", "integrity": "sha512-JDYOvfxio/t42HKdxkAYaCiBN7oYiuxykOxKxdaUW5Qn0zaYN3gRQWolrwdnf0shM9/EP0ebuuTmyoXNr1cC5w==", - "license": "ISC", "dependencies": { "is-glob": "^2.0.0" } @@ -2906,7 +2675,6 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-0.2.3.tgz", "integrity": "sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==", - "license": "MIT", "dependencies": { "global-prefix": "^0.1.4", "is-windows": "^0.2.0" @@ -2919,7 +2687,6 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-0.1.5.tgz", "integrity": "sha512-gOPiyxcD9dJGCEArAhF4Hd0BAqvAe/JzERP7tYumE4yIkmIedPUVXcJFWbV3/p/ovIIvKjkrTk+f1UVkq7vvbw==", - "license": "MIT", "dependencies": { "homedir-polyfill": "^1.0.0", "ini": "^1.3.4", @@ -2934,7 +2701,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -2942,13 +2708,21 @@ "which": "bin/which" } }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=4" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2957,15 +2731,13 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2974,7 +2746,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/has-glob/-/has-glob-0.1.1.tgz", "integrity": "sha512-WMHzb7oCwDcMDngWy0b+viLjED8zvSi5d4/YdBetADHX/rLH+noJaRTytuyN6thTxxM7lK+FloogQHHdOOR+7g==", - "license": "MIT", "dependencies": { "is-glob": "^2.0.1" }, @@ -2986,7 +2757,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -2994,11 +2764,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "engines": { "node": ">= 0.4" }, @@ -3010,7 +2790,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -3025,7 +2804,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -3037,7 +2815,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", - "license": "MIT", "dependencies": { "parse-passwd": "^1.0.0" }, @@ -3049,15 +2826,13 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -3079,15 +2854,13 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "BSD-3-Clause" + ] }, "node_modules/import-local": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, - "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -3107,7 +2880,6 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -3117,7 +2889,6 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -3126,20 +2897,17 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, "node_modules/is-absolute": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.2.6.tgz", "integrity": "sha512-7Kr05z5LkcOpoMvxHN1PC11WbPabdNFmMYYo0eZvWu3BfVS0T03yoqYDczoCBx17xqk2x1XAZrcKiFVL88jxlQ==", - "license": "MIT", "dependencies": { "is-relative": "^0.2.1", "is-windows": "^0.2.0" @@ -3152,7 +2920,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", - "license": "MIT", "dependencies": { "hasown": "^2.0.0" }, @@ -3161,13 +2928,12 @@ } }, "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "license": "MIT", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -3180,20 +2946,17 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3202,11 +2965,10 @@ } }, "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz", + "integrity": "sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==", "dev": true, - "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -3221,7 +2983,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", - "license": "MIT", "dependencies": { "hasown": "^2.0.0" }, @@ -3233,7 +2994,6 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", - "license": "MIT", "dependencies": { "is-accessor-descriptor": "^1.0.1", "is-data-descriptor": "^1.0.1" @@ -3246,7 +3006,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3255,7 +3014,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", "integrity": "sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3265,7 +3023,6 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -3275,21 +3032,16 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/is-generator-function": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", - "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", - "license": "MIT", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", "dependencies": { - "call-bound": "^1.0.3", - "get-proto": "^1.0.0", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" + "has-tostringtag": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -3302,7 +3054,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", "integrity": "sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg==", - "license": "MIT", "dependencies": { "is-extglob": "^1.0.0" }, @@ -3315,7 +3066,6 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -3324,34 +3074,14 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-relative": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.2.1.tgz", "integrity": "sha512-9AMzjRmLqcue629b4ezEVSK6kJsYJlUIhMcygmYORUgwUNJiavHcC3HkaGx0XYpyVKQSOqFbMEZmW42cY87sYw==", - "license": "MIT", "dependencies": { "is-unc-path": "^0.1.1" }, @@ -3364,7 +3094,6 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -3373,12 +3102,11 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", + "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", "dependencies": { - "which-typed-array": "^1.1.16" + "which-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -3391,7 +3119,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-0.1.2.tgz", "integrity": "sha512-HhLc5VDMH4pu3oMtIuunz/DFQUIoR561kMME3U3Afhj8b7vH085vkIkemrz1kLXCEIuoMAmO3yVmafWdSbGW8w==", - "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.0" }, @@ -3402,14 +3129,12 @@ "node_modules/is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", - "license": "MIT" + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" }, "node_modules/is-valid-glob": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-0.3.0.tgz", "integrity": "sha512-CvG8EtJZ8FyzVOGPzrDorzyN65W1Ld8BVnqshRCah6pFIsprGx3dKgFtjLn/Vw9kGqR4OlR84U7yhT9ZVTyWIQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3418,7 +3143,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-0.2.0.tgz", "integrity": "sha512-n67eJYmXbniZB7RF4I/FTjK1s6RPOCTxhYrVYLRaCt3lF0mpWZPKr3T2LSZAqyjQsxR2qMmGYXXzK0YWwcPM1Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3426,20 +3150,17 @@ "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/isobject": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "license": "MIT", "dependencies": { "isarray": "1.0.0" }, @@ -3452,7 +3173,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=8" } @@ -3462,7 +3182,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -3475,11 +3194,10 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3492,7 +3210,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -3507,7 +3224,6 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -3522,7 +3238,6 @@ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -3536,7 +3251,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -3563,7 +3277,6 @@ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, - "license": "MIT", "dependencies": { "execa": "^5.0.0", "jest-util": "^29.7.0", @@ -3578,7 +3291,6 @@ "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/expect": "^29.7.0", @@ -3610,7 +3322,6 @@ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.7.0", "@jest/test-result": "^29.7.0", @@ -3644,7 +3355,6 @@ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.7.0", @@ -3690,7 +3400,6 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.6.3", @@ -3706,7 +3415,6 @@ "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, - "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -3719,7 +3427,6 @@ "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "chalk": "^4.0.0", @@ -3736,7 +3443,6 @@ "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -3754,7 +3460,6 @@ "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -3764,7 +3469,6 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/graceful-fs": "^4.1.3", @@ -3790,7 +3494,6 @@ "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^29.6.3", "pretty-format": "^29.7.0" @@ -3804,7 +3507,6 @@ "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.7.0", @@ -3820,7 +3522,6 @@ "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^29.6.3", @@ -3841,7 +3542,6 @@ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -3856,7 +3556,6 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -3874,7 +3573,6 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, - "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } @@ -3884,7 +3582,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -3905,7 +3602,6 @@ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, - "license": "MIT", "dependencies": { "jest-regex-util": "^29.6.3", "jest-snapshot": "^29.7.0" @@ -3919,7 +3615,6 @@ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^29.7.0", "@jest/environment": "^29.7.0", @@ -3952,7 +3647,6 @@ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^29.7.0", "@jest/fake-timers": "^29.7.0", @@ -3986,7 +3680,6 @@ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -4014,11 +3707,10 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4031,7 +3723,6 @@ "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "@types/node": "*", @@ -4049,7 +3740,6 @@ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.6.3", "camelcase": "^6.2.0", @@ -4067,7 +3757,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -4080,7 +3769,6 @@ "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^29.7.0", "@jest/types": "^29.6.3", @@ -4100,7 +3788,6 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "jest-util": "^29.7.0", @@ -4116,7 +3803,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4131,15 +3817,13 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -4149,31 +3833,28 @@ } }, "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=6" + "node": ">=4" } }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -4185,7 +3866,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/jsonpath/-/jsonpath-1.1.1.tgz", "integrity": "sha512-l6Cg7jRpixfbgoWgkrl77dgEj8RPvND0wMH6TwQmi9Qs4TFfS9u5cUFnbeKTwj5ga5Y3BTGGNI28k117LJ009w==", - "license": "MIT", "dependencies": { "esprima": "1.2.2", "static-eval": "2.0.2", @@ -4208,7 +3888,6 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "license": "MIT", "dependencies": { "is-buffer": "^1.1.5" }, @@ -4221,7 +3900,6 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4230,7 +3908,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", - "license": "MIT", "dependencies": { "set-getter": "^0.1.0" }, @@ -4242,7 +3919,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", - "license": "MIT", "dependencies": { "readable-stream": "^2.0.5" }, @@ -4255,7 +3931,6 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4264,7 +3939,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "license": "MIT", "dependencies": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" @@ -4277,15 +3951,13 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -4296,21 +3968,18 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "license": "MIT" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/log-ok": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/log-ok/-/log-ok-0.1.1.tgz", "integrity": "sha512-cc8VrkS6C+9TFuYAwuHpshrcrGRAv7d0tUJ0GdM72ZBlKXtlgjUZF84O+OhQUdiVHoF7U/nVxwpjOdwUJ8d3Vg==", - "license": "MIT", "dependencies": { "ansi-green": "^0.1.1", "success-symbol": "^0.1.0" @@ -4324,7 +3993,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -4334,7 +4002,6 @@ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, - "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -4346,11 +4013,10 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4362,15 +4028,13 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -4379,7 +4043,6 @@ "version": "0.4.4", "resolved": "https://registry.npmjs.org/matched/-/matched-0.4.4.tgz", "integrity": "sha512-zpasnbB5vQkvb0nfcKV0zEoGgMtV7atlWR1Vk3E8tEKh6EicMseKtVV+5vc+zsZwvDlcNMKlKK/CVOEeAalYRQ==", - "license": "MIT", "dependencies": { "arr-union": "^3.1.0", "async-array-reduce": "^0.2.0", @@ -4395,28 +4058,17 @@ "node": ">= 0.12.0" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", + "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -4430,7 +4082,6 @@ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4439,7 +4090,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -4451,7 +4101,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4460,7 +4109,6 @@ "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "license": "MIT", "dependencies": { "minimist": "^1.2.6" }, @@ -4471,28 +4119,24 @@ "node_modules/mkpath": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/mkpath/-/mkpath-0.1.0.tgz", - "integrity": "sha512-bauHShmaxVQiEvlrAPWxSPn8spSL8gDVRl11r8vLT4r/KdnknLqtqwQbToZ2Oa8sJkExYY1z6/d+X7pNiqo4yg==", - "license": "MIT" + "integrity": "sha512-bauHShmaxVQiEvlrAPWxSPn8spSL8gDVRl11r8vLT4r/KdnknLqtqwQbToZ2Oa8sJkExYY1z6/d+X7pNiqo4yg==" }, "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "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, - "license": "MIT" + "dev": true }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -4512,21 +4156,18 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "dev": true }, "node_modules/node-stream-zip": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==", - "license": "MIT", "engines": { "node": ">=0.12.0" }, @@ -4539,7 +4180,6 @@ "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", - "license": "ISC", "dependencies": { "abbrev": "1" }, @@ -4551,7 +4191,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", - "license": "MIT", "dependencies": { "remove-trailing-separator": "^1.0.1" }, @@ -4564,7 +4203,6 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -4573,10 +4211,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", "engines": { "node": ">= 0.4" }, @@ -4588,7 +4225,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", "dependencies": { "wrappy": "1" } @@ -4598,7 +4234,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -4613,7 +4248,6 @@ "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "license": "MIT", "dependencies": { "deep-is": "~0.1.3", "fast-levenshtein": "~2.0.6", @@ -4630,7 +4264,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4640,7 +4273,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -4656,7 +4288,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -4669,7 +4300,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -4685,7 +4315,6 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4695,7 +4324,6 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -4713,7 +4341,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4722,7 +4349,6 @@ "version": "0.12.7", "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", - "license": "MIT", "dependencies": { "process": "^0.11.1", "util": "^0.10.3" @@ -4733,7 +4359,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -4742,7 +4367,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4752,7 +4376,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -4761,37 +4384,32 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/path/node_modules/inherits": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "license": "ISC" + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" }, "node_modules/path/node_modules/util": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "license": "MIT", "dependencies": { "inherits": "2.0.3" } }, "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -4800,11 +4418,10 @@ } }, "node_modules/pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } @@ -4814,7 +4431,6 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -4823,10 +4439,9 @@ } }, "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", "engines": { "node": ">= 0.4" } @@ -4844,7 +4459,6 @@ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", @@ -4859,7 +4473,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -4871,7 +4484,6 @@ "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -4879,15 +4491,13 @@ "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "license": "MIT" + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -4910,27 +4520,24 @@ "type": "opencollective", "url": "https://opencollective.com/fast-check" } - ], - "license": "MIT" + ] }, "node_modules/q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", "deprecated": "You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.\n\n(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)", - "license": "MIT", "engines": { "node": ">=0.6.0", "teleport": ">=0.2.0" } }, "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "license": "BSD-3-Clause", + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.3.tgz", + "integrity": "sha512-AWJm14H1vVaO/iNZ4/hO+HyaTehuy9nRqVdkTqlJt0HWvBiBIEXFmb4C0DGeYo3Xes9rrEW+TxHsaigCbN5ICQ==", "dependencies": { - "side-channel": "^1.1.0" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -4944,7 +4551,6 @@ "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "license": "MIT", "engines": { "node": ">=0.4.x" } @@ -4953,14 +4559,12 @@ "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -4974,8 +4578,7 @@ "node_modules/remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", - "license": "ISC" + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==" }, "node_modules/replace-ext": { "version": "0.0.1", @@ -4990,28 +4593,23 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, - "license": "MIT", "dependencies": { - "is-core-module": "^2.16.0", + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, - "engines": { - "node": ">= 0.4" - }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -5021,7 +4619,6 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -5033,7 +4630,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", "integrity": "sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==", - "license": "MIT", "dependencies": { "expand-tilde": "^1.2.2", "global-modules": "^0.2.3" @@ -5047,17 +4643,15 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve.exports": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", - "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -5065,38 +4659,18 @@ "node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/sax": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", - "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", - "license": "ISC" + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -5105,7 +4679,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -5122,7 +4695,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", - "license": "MIT", "dependencies": { "to-object-path": "^0.3.0" }, @@ -5135,7 +4707,6 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -5148,7 +4719,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5157,7 +4727,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", "integrity": "sha512-Ny0KN4dyT8ZSCE0frtcbAJGoM/HTArpyPkeli1/00aYfm0sbD/Gk/4x7N2DP9QKGpBsiQH7n6rpm1L79RtviEQ==", - "license": "BSD*", "bin": { "shjs": "bin/shjs" }, @@ -5166,69 +4735,14 @@ } }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", "dependencies": { - "call-bound": "^1.0.2", + "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" }, "engines": { "node": ">= 0.4" @@ -5241,22 +4755,19 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5266,7 +4777,6 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "devOptional": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -5276,7 +4786,6 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -5286,15 +4795,13 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -5306,7 +4813,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.0.2.tgz", "integrity": "sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==", - "license": "MIT", "dependencies": { "escodegen": "^1.8.1" } @@ -5315,7 +4821,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" } @@ -5325,7 +4830,6 @@ "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -5339,7 +4843,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -5354,7 +4857,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -5367,7 +4869,6 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -5376,7 +4877,6 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/strip-bom-buffer/-/strip-bom-buffer-0.1.1.tgz", "integrity": "sha512-dbIOX/cOLFgLH/2ofd7n78uPD3uPkXyt3P1IgaVoGiPYEdOnb7D1mawyhOTXyYWva1kCuRxJY5FkMsVKYlZRRg==", - "license": "MIT", "dependencies": { "is-buffer": "^1.1.0", "is-utf8": "^0.2.0" @@ -5389,7 +4889,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-0.1.2.tgz", "integrity": "sha512-3DgNqQFTfOwWgxn3cXsa6h/WRgFa7dVb6/7YqwfJlBpLSSQbiU1VhaBNRKmtLI59CHjc9awLp9yGJREu7AnaMQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5399,7 +4898,6 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -5409,7 +4907,6 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -5421,7 +4918,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/success-symbol/-/success-symbol-0.1.0.tgz", "integrity": "sha512-7S6uOTxPklNGxOSbDIg4KlVLBQw1UiGVyfCUYgYxrZUKRblUkmGj7r8xlfQoFudvqLv6Ap5gd76/IIFfI9JG2A==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5431,7 +4927,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5444,7 +4939,6 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5456,7 +4950,6 @@ "version": "1.6.2", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "license": "MIT", "dependencies": { "bl": "^1.0.0", "buffer-alloc": "^1.2.0", @@ -5475,7 +4968,6 @@ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -5489,7 +4981,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -5499,54 +4990,26 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/to-buffer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.1.tgz", - "integrity": "sha512-tB82LpAIWjhLYbqjx3X4zEeHN6M8CiuOEy2JY8SEQVdYRe3CCHOFaqrBW1doLDrfpWhplcW7BL+bO3/6S3pcDQ==", - "license": "MIT", - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/to-buffer/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "license": "MIT" - }, - "node_modules/to-buffer/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/to-file": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/to-file/-/to-file-0.2.0.tgz", "integrity": "sha512-xLyYVRKJQTwy2tKMOLD0M0yL+YSZVgMAzkaY9hh7GhzgBBHSIWARDkgPx8krPPm0mW5CgoIFsQEdKRFOyIRdqg==", - "license": "MIT", "dependencies": { "define-property": "^0.2.5", "extend-shallow": "^2.0.1", @@ -5565,7 +5028,6 @@ "version": "0.2.4", "resolved": "https://registry.npmjs.org/file-contents/-/file-contents-0.2.4.tgz", "integrity": "sha512-PEz7U6YlXr+dvWCtW63DUY1LUTHOVs1rv4s1/I/39dpvvidQqMSTY6JklazQS60MMoI/ztpo5kMlpdvGagvLbA==", - "license": "MIT", "dependencies": { "extend-shallow": "^2.0.0", "file-stat": "^0.1.0", @@ -5583,7 +5045,6 @@ "version": "0.2.7", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", "integrity": "sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5592,7 +5053,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/file-stat/-/file-stat-0.1.3.tgz", "integrity": "sha512-f72m4132aOd5DVtREdDX8I0Dd7Zf/3PiUYYvn4BFCxfsLqj6r8joBZzrRlfvsNvxhADw+jpEa0AnWPII9H0Fbg==", - "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "lazy-cache": "^0.2.3", @@ -5606,7 +5066,6 @@ "version": "0.2.7", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-0.2.7.tgz", "integrity": "sha512-gkX52wvU/R8DVMMt78ATVPFMJqfW8FPz1GZ1sVHBVQHmu/WvhIWE4cE1GBzhJNFicDeYhnwp6Rl35BcAIM3YOQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5615,7 +5074,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", - "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -5628,7 +5086,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -5640,7 +5097,6 @@ "version": "0.0.3", "resolved": "https://registry.npmjs.org/touch/-/touch-0.0.3.tgz", "integrity": "sha512-/LQ54KM9rPf3rGXGo2UPQWx3ol242Zg6Whq27H5DEmZhCJo+pm9N5BzRGepO9vTVhYxpXJdcc1+3uaYt9NyeKg==", - "license": "ISC", "dependencies": { "nopt": "~1.0.10" }, @@ -5652,7 +5108,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==", - "license": "MIT", "dependencies": { "abbrev": "1" }, @@ -5666,14 +5121,12 @@ "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/traverse": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", "integrity": "sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==", - "license": "MIT/X11", "engines": { "node": "*" } @@ -5683,7 +5136,6 @@ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", "dev": true, - "license": "MIT", "dependencies": { "bs-logger": "0.x", "fast-json-stable-stringify": "2.x", @@ -5723,11 +5175,10 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -5740,7 +5191,6 @@ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, - "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -5783,7 +5233,6 @@ "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "license": "MIT", "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } @@ -5792,7 +5241,6 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "license": "MIT", "dependencies": { "prelude-ls": "~1.1.2" }, @@ -5805,7 +5253,6 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -5815,7 +5262,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -5823,25 +5269,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/typed-rest-client": { "version": "1.8.11", "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz", "integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==", - "license": "MIT", "dependencies": { "qs": "^6.9.1", "tunnel": "0.0.6", @@ -5849,11 +5280,10 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -5866,7 +5296,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5874,14 +5303,12 @@ "node_modules/underscore": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", - "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==", - "license": "MIT" + "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" }, "node_modules/undici": { - "version": "5.29.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", - "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", - "license": "MIT", + "version": "5.28.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz", + "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==", "dependencies": { "@fastify/busboy": "^2.0.0" }, @@ -5890,22 +5317,20 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true }, "node_modules/universal-user-agent": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz", - "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==", - "license": "ISC" + "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==" }, "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", + "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", "dev": true, "funding": [ { @@ -5921,10 +5346,9 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -5937,7 +5361,6 @@ "version": "0.12.5", "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", @@ -5949,32 +5372,27 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "license": "MIT", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/v8-to-istanbul": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, - "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -5988,7 +5406,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz", "integrity": "sha512-Ci3wnR2uuSAWFMSglZuB8Z2apBdtOyz8CV7dC6/U1XbltXBC+IuutUkXQISz01P+US2ouBuesSbV6zILZ6BuzQ==", - "license": "MIT", "dependencies": { "clone": "^1.0.0", "clone-stats": "^0.0.1", @@ -6003,7 +5420,6 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -6011,14 +5427,12 @@ "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -6029,7 +5443,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -6041,17 +5454,14 @@ } }, "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "license": "MIT", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", "has-tostringtag": "^1.0.2" }, "engines": { @@ -6065,7 +5475,6 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6075,7 +5484,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -6091,15 +5499,13 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, - "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -6112,7 +5518,6 @@ "version": "0.4.23", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "license": "MIT", "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" @@ -6125,7 +5530,6 @@ "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "license": "MIT", "engines": { "node": ">=4.0" } @@ -6135,7 +5539,6 @@ "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.31.tgz", "integrity": "sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==", "deprecated": "Deprecated due to CVE-2021-21366 resolved in 0.5.0", - "license": "(LGPL-2.0 or MIT)", "engines": { "node": ">=0.1" } @@ -6144,7 +5547,6 @@ "version": "0.0.27", "resolved": "https://registry.npmjs.org/xpath/-/xpath-0.0.27.tgz", "integrity": "sha512-fg03WRxtkCV6ohClePNAECYsmpKKTv5L8y/X3Dn1hQrec3POx2jHZ/0P2qQ6HvsrU1BmeqXcof3NGGueG6LxwQ==", - "license": "MIT", "engines": { "node": ">=0.6.0" } @@ -6153,7 +5555,6 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", "engines": { "node": ">=0.4" } @@ -6163,7 +5564,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -6172,15 +5572,13 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -6199,7 +5597,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -6209,7 +5606,6 @@ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -6219,7 +5615,6 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -6231,7 +5626,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-1.2.0.tgz", "integrity": "sha512-2olrDUuPM4NvRIgGPhvrp84f7/HmWR6RiQrgwFF2VctmnssFiogtYL3DcA8Vl2bsSmju79sVXe38TsII7JleUg==", - "license": "MIT", "dependencies": { "archiver-utils": "^1.3.0", "compress-commons": "^1.2.0", diff --git a/package.json b/package.json index 178af6a8c..9e6d6b369 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@actions/github": "^4.0.0", "actions-secret-parser": "^1.0.4", "azure-actions-appservice-rest": "^1.3.16", - "azure-actions-utility": "^1.0.5", + "azure-actions-utility": "^1.0.3", "azure-actions-webclient": "^1.1.1" } -} \ No newline at end of file +} diff --git a/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts b/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts index 5b2c51199..ca9939233 100644 --- a/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts +++ b/src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts @@ -39,8 +39,7 @@ export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider { case PackageType.folder: let tempPackagePath = utility.generateTemporaryFolderOrZipPath(`${process.env.RUNNER_TEMP}`, false); - // exluding release.zip while creating zip for deployment. - webPackage = await zipUtility.archiveFolderWithExcludePatterns(webPackage, "", tempPackagePath, ['release.zip']) as string; + webPackage = await zipUtility.archiveFolder(webPackage, "", tempPackagePath) as string; core.debug("Compressed folder into zip " + webPackage); core.debug("Initiated deployment via kudu service for webapp package : "+ webPackage); this.actionParams.type = "zip";